@getlupa/client 1.3.9 → 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.
@@ -7658,8 +7658,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7658
7658
  resetHighlightIndex
7659
7659
  };
7660
7660
  });
7661
- const _hoisted_1$19 = { id: "lupa-search-box-input-container" };
7662
- const _hoisted_2$N = { class: "lupa-input-clear" };
7661
+ const _hoisted_1$1a = { id: "lupa-search-box-input-container" };
7662
+ const _hoisted_2$O = { class: "lupa-input-clear" };
7663
7663
  const _hoisted_3$A = { id: "lupa-search-box-input" };
7664
7664
  const _hoisted_4$r = ["value"];
7665
7665
  const _hoisted_5$f = ["placeholder"];
@@ -7667,7 +7667,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7667
7667
  key: 0,
7668
7668
  class: "lupa-close-label"
7669
7669
  };
7670
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7670
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
7671
7671
  __name: "SearchBoxInput",
7672
7672
  props: {
7673
7673
  options: {},
@@ -7744,8 +7744,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7744
7744
  };
7745
7745
  __expose({ focus });
7746
7746
  return (_ctx, _cache) => {
7747
- return openBlock(), createElementBlock("div", _hoisted_1$19, [
7748
- createBaseVNode("div", _hoisted_2$N, [
7747
+ return openBlock(), createElementBlock("div", _hoisted_1$1a, [
7748
+ createBaseVNode("div", _hoisted_2$O, [
7749
7749
  createBaseVNode("div", {
7750
7750
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
7751
7751
  onClick: clear2
@@ -7784,7 +7784,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7784
7784
  };
7785
7785
  }
7786
7786
  });
7787
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7787
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7788
7788
  __name: "SearchBoxMoreResults",
7789
7789
  props: {
7790
7790
  labels: {},
@@ -7816,9 +7816,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7816
7816
  };
7817
7817
  }
7818
7818
  });
7819
- const _hoisted_1$18 = { class: "lupa-search-box-history-item" };
7820
- const _hoisted_2$M = { class: "lupa-search-box-history-item-content" };
7821
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7819
+ const _hoisted_1$19 = { class: "lupa-search-box-history-item" };
7820
+ const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
7821
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7822
7822
  __name: "SearchBoxHistoryItem",
7823
7823
  props: {
7824
7824
  item: {},
@@ -7834,8 +7834,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7834
7834
  emit2("click", { query: props.item });
7835
7835
  };
7836
7836
  return (_ctx, _cache) => {
7837
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
7838
- createBaseVNode("div", _hoisted_2$M, [
7837
+ return openBlock(), createElementBlock("div", _hoisted_1$19, [
7838
+ createBaseVNode("div", _hoisted_2$N, [
7839
7839
  createBaseVNode("div", {
7840
7840
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
7841
7841
  onClick: click2
@@ -7849,11 +7849,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7849
7849
  };
7850
7850
  }
7851
7851
  });
7852
- const _hoisted_1$17 = {
7852
+ const _hoisted_1$18 = {
7853
7853
  key: 0,
7854
7854
  class: "lupa-search-box-history-panel"
7855
7855
  };
7856
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7856
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7857
7857
  __name: "SearchBoxHistoryPanel",
7858
7858
  props: {
7859
7859
  options: {}
@@ -7894,9 +7894,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7894
7894
  }
7895
7895
  };
7896
7896
  return (_ctx, _cache) => {
7897
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$17, [
7897
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$18, [
7898
7898
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
7899
- return openBlock(), createBlock(_sfc_main$1f, {
7899
+ return openBlock(), createBlock(_sfc_main$1g, {
7900
7900
  key: item,
7901
7901
  item,
7902
7902
  highlighted: index === highlightIndex.value,
@@ -7912,8 +7912,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7912
7912
  };
7913
7913
  }
7914
7914
  });
7915
- const _hoisted_1$16 = ["innerHTML"];
7916
- const _hoisted_2$L = {
7915
+ const _hoisted_1$17 = ["innerHTML"];
7916
+ const _hoisted_2$M = {
7917
7917
  key: 1,
7918
7918
  "data-cy": "lupa-suggestion-value",
7919
7919
  class: "lupa-suggestion-value"
@@ -7931,7 +7931,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7931
7931
  class: "lupa-suggestion-facet-value",
7932
7932
  "data-cy": "lupa-suggestion-facet-value"
7933
7933
  };
7934
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
7934
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7935
7935
  __name: "SearchBoxSuggestion",
7936
7936
  props: {
7937
7937
  suggestion: {},
@@ -7967,7 +7967,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7967
7967
  class: "lupa-suggestion-value",
7968
7968
  "data-cy": "lupa-suggestion-value",
7969
7969
  innerHTML: _ctx.suggestion.displayHighlight
7970
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(_ctx.suggestion.display), 1)),
7970
+ }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(_ctx.suggestion.display), 1)),
7971
7971
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
7972
7972
  createBaseVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
7973
7973
  createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -7976,11 +7976,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7976
7976
  };
7977
7977
  }
7978
7978
  });
7979
- const _hoisted_1$15 = {
7979
+ const _hoisted_1$16 = {
7980
7980
  id: "lupa-search-box-suggestions",
7981
7981
  "data-cy": "lupa-search-box-suggestions"
7982
7982
  };
7983
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
7983
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
7984
7984
  __name: "SearchBoxSuggestions",
7985
7985
  props: {
7986
7986
  items: {},
@@ -8040,9 +8040,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8040
8040
  });
8041
8041
  });
8042
8042
  return (_ctx, _cache) => {
8043
- return openBlock(), createElementBlock("div", _hoisted_1$15, [
8043
+ return openBlock(), createElementBlock("div", _hoisted_1$16, [
8044
8044
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8045
- return openBlock(), createBlock(_sfc_main$1d, {
8045
+ return openBlock(), createBlock(_sfc_main$1e, {
8046
8046
  key: getSuggestionKey(item),
8047
8047
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8048
8048
  suggestion: item,
@@ -8070,7 +8070,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8070
8070
  }, timeout);
8071
8071
  };
8072
8072
  };
8073
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8073
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8074
8074
  __name: "SearchBoxSuggestionsWrapper",
8075
8075
  props: {
8076
8076
  panel: {},
@@ -8111,7 +8111,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8111
8111
  };
8112
8112
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8113
8113
  return (_ctx, _cache) => {
8114
- return openBlock(), createBlock(_sfc_main$1c, {
8114
+ return openBlock(), createBlock(_sfc_main$1d, {
8115
8115
  items: searchResult.value,
8116
8116
  highlight: _ctx.panel.highlight,
8117
8117
  queryKey: _ctx.panel.queryKey,
@@ -8189,8 +8189,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8189
8189
  });
8190
8190
  return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
8191
8191
  });
8192
- const _hoisted_1$14 = ["src"];
8193
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8192
+ const _hoisted_1$15 = ["src"];
8193
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8194
8194
  __name: "ProductImage",
8195
8195
  props: {
8196
8196
  item: {},
@@ -8238,12 +8238,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8238
8238
  class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
8239
8239
  src: finalUrl.value,
8240
8240
  onError: replaceWithPlaceholder
8241
- }, null, 42, _hoisted_1$14)
8241
+ }, null, 42, _hoisted_1$15)
8242
8242
  ], 2);
8243
8243
  };
8244
8244
  }
8245
8245
  });
8246
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8246
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8247
8247
  __name: "SearchBoxProductImage",
8248
8248
  props: {
8249
8249
  item: {},
@@ -8251,7 +8251,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8251
8251
  },
8252
8252
  setup(__props) {
8253
8253
  return (_ctx, _cache) => {
8254
- return openBlock(), createBlock(_sfc_main$1a, {
8254
+ return openBlock(), createBlock(_sfc_main$1b, {
8255
8255
  item: _ctx.item,
8256
8256
  options: _ctx.options,
8257
8257
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -8260,12 +8260,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8260
8260
  };
8261
8261
  }
8262
8262
  });
8263
- const _hoisted_1$13 = ["innerHTML"];
8264
- const _hoisted_2$K = {
8263
+ const _hoisted_1$14 = ["innerHTML"];
8264
+ const _hoisted_2$L = {
8265
8265
  key: 1,
8266
8266
  class: "lupa-search-box-product-title"
8267
8267
  };
8268
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8268
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8269
8269
  __name: "SearchBoxProductTitle",
8270
8270
  props: {
8271
8271
  item: {},
@@ -8285,18 +8285,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8285
8285
  key: 0,
8286
8286
  class: "lupa-search-box-product-title",
8287
8287
  innerHTML: title.value
8288
- }, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, [
8288
+ }, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, [
8289
8289
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
8290
8290
  ]));
8291
8291
  };
8292
8292
  }
8293
8293
  });
8294
- const _hoisted_1$12 = ["innerHTML"];
8295
- const _hoisted_2$J = {
8294
+ const _hoisted_1$13 = ["innerHTML"];
8295
+ const _hoisted_2$K = {
8296
8296
  key: 1,
8297
8297
  class: "lupa-search-box-product-description"
8298
8298
  };
8299
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8299
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8300
8300
  __name: "SearchBoxProductDescription",
8301
8301
  props: {
8302
8302
  item: {},
@@ -8316,12 +8316,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8316
8316
  key: 0,
8317
8317
  class: "lupa-search-box-product-description",
8318
8318
  innerHTML: description.value
8319
- }, null, 8, _hoisted_1$12)) : (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(description.value), 1));
8319
+ }, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(description.value), 1));
8320
8320
  };
8321
8321
  }
8322
8322
  });
8323
- const _hoisted_1$11 = { class: "lupa-search-box-product-price" };
8324
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8323
+ const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
8324
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8325
8325
  __name: "SearchBoxProductPrice",
8326
8326
  props: {
8327
8327
  item: {},
@@ -8339,14 +8339,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8339
8339
  );
8340
8340
  });
8341
8341
  return (_ctx, _cache) => {
8342
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
8342
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
8343
8343
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
8344
8344
  ]);
8345
8345
  };
8346
8346
  }
8347
8347
  });
8348
- const _hoisted_1$10 = { class: "lupa-search-box-product-regular-price" };
8349
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8348
+ const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
8349
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8350
8350
  __name: "SearchBoxProductRegularPrice",
8351
8351
  props: {
8352
8352
  item: {},
@@ -8364,16 +8364,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8364
8364
  );
8365
8365
  });
8366
8366
  return (_ctx, _cache) => {
8367
- return openBlock(), createElementBlock("div", _hoisted_1$10, toDisplayString(price.value), 1);
8367
+ return openBlock(), createElementBlock("div", _hoisted_1$11, toDisplayString(price.value), 1);
8368
8368
  };
8369
8369
  }
8370
8370
  });
8371
- const _hoisted_1$$ = ["innerHTML"];
8372
- const _hoisted_2$I = { key: 0 };
8371
+ const _hoisted_1$10 = ["innerHTML"];
8372
+ const _hoisted_2$J = { key: 0 };
8373
8373
  const _hoisted_3$y = { key: 1 };
8374
8374
  const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
8375
8375
  const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
8376
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8376
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8377
8377
  __name: "SearchBoxProductCustom",
8378
8378
  props: {
8379
8379
  item: {},
@@ -8399,11 +8399,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8399
8399
  key: 0,
8400
8400
  class: [className.value, "lupa-search-box-product-custom"],
8401
8401
  innerHTML: text.value
8402
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$)) : (openBlock(), createElementBlock("div", mergeProps({
8402
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (openBlock(), createElementBlock("div", mergeProps({
8403
8403
  key: 1,
8404
8404
  class: [className.value, "lupa-search-box-product-custom"]
8405
8405
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8406
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$I, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
8406
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
8407
8407
  createBaseVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
8408
8408
  createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
8409
8409
  ]))
@@ -8411,8 +8411,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8411
8411
  };
8412
8412
  }
8413
8413
  });
8414
- const _hoisted_1$_ = ["innerHTML"];
8415
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8414
+ const _hoisted_1$$ = ["innerHTML"];
8415
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8416
8416
  __name: "SearchBoxProductCustomHtml",
8417
8417
  props: {
8418
8418
  item: {},
@@ -8432,7 +8432,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8432
8432
  return openBlock(), createElementBlock("div", mergeProps({
8433
8433
  class: className.value,
8434
8434
  innerHTML: text.value
8435
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$_);
8435
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
8436
8436
  };
8437
8437
  }
8438
8438
  });
@@ -8627,10 +8627,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8627
8627
  setLoading
8628
8628
  };
8629
8629
  });
8630
- const _hoisted_1$Z = { class: "lupa-search-box-add-to-cart-wrapper" };
8631
- const _hoisted_2$H = { class: "lupa-search-box-product-addtocart" };
8630
+ const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
8631
+ const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
8632
8632
  const _hoisted_3$x = ["onClick", "disabled"];
8633
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8633
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8634
8634
  __name: "SearchBoxProductAddToCart",
8635
8635
  props: {
8636
8636
  item: {},
@@ -8657,8 +8657,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8657
8657
  loading.value = false;
8658
8658
  });
8659
8659
  return (_ctx, _cache) => {
8660
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
8661
- createBaseVNode("div", _hoisted_2$H, [
8660
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
8661
+ createBaseVNode("div", _hoisted_2$I, [
8662
8662
  createBaseVNode("button", {
8663
8663
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
8664
8664
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -8673,17 +8673,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8673
8673
  });
8674
8674
  const __default__$4 = {
8675
8675
  components: {
8676
- SearchBoxProductImage: _sfc_main$19,
8677
- SearchBoxProductTitle: _sfc_main$18,
8678
- SearchBoxProductDescription: _sfc_main$17,
8679
- SearchBoxProductPrice: _sfc_main$16,
8680
- SearchBoxProductRegularPrice: _sfc_main$15,
8681
- SearchBoxProductCustom: _sfc_main$14,
8682
- SearchBoxProductCustomHtml: _sfc_main$13,
8683
- SearchBoxProductAddToCart: _sfc_main$12
8676
+ SearchBoxProductImage: _sfc_main$1a,
8677
+ SearchBoxProductTitle: _sfc_main$19,
8678
+ SearchBoxProductDescription: _sfc_main$18,
8679
+ SearchBoxProductPrice: _sfc_main$17,
8680
+ SearchBoxProductRegularPrice: _sfc_main$16,
8681
+ SearchBoxProductCustom: _sfc_main$15,
8682
+ SearchBoxProductCustomHtml: _sfc_main$14,
8683
+ SearchBoxProductAddToCart: _sfc_main$13
8684
8684
  }
8685
8685
  };
8686
- const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8686
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8687
8687
  __name: "SearchBoxProductElement",
8688
8688
  props: {
8689
8689
  item: {},
@@ -8797,14 +8797,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8797
8797
  };
8798
8798
  return { trackSearch, trackResults, trackEvent };
8799
8799
  });
8800
- const _hoisted_1$Y = ["href"];
8801
- const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
8800
+ const _hoisted_1$Z = ["href"];
8801
+ const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
8802
8802
  const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
8803
8803
  const _hoisted_4$o = {
8804
8804
  key: 0,
8805
8805
  class: "lupa-search-box-product-add-to-cart-section"
8806
8806
  };
8807
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8807
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8808
8808
  __name: "SearchBoxProduct",
8809
8809
  props: {
8810
8810
  item: {},
@@ -8897,9 +8897,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8897
8897
  href: link.value,
8898
8898
  onClick: handleClick
8899
8899
  }, [
8900
- createBaseVNode("div", _hoisted_2$G, [
8900
+ createBaseVNode("div", _hoisted_2$H, [
8901
8901
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
8902
- return openBlock(), createBlock(_sfc_main$11, {
8902
+ return openBlock(), createBlock(_sfc_main$12, {
8903
8903
  class: "lupa-search-box-product-element",
8904
8904
  item: _ctx.item,
8905
8905
  element,
@@ -8911,7 +8911,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8911
8911
  ]),
8912
8912
  createBaseVNode("div", _hoisted_3$w, [
8913
8913
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
8914
- return openBlock(), createBlock(_sfc_main$11, {
8914
+ return openBlock(), createBlock(_sfc_main$12, {
8915
8915
  class: "lupa-search-box-product-element",
8916
8916
  item: _ctx.item,
8917
8917
  element,
@@ -8922,7 +8922,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8922
8922
  }), 128))
8923
8923
  ]),
8924
8924
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
8925
- createVNode(_sfc_main$11, {
8925
+ createVNode(_sfc_main$12, {
8926
8926
  class: "lupa-search-box-product-element",
8927
8927
  item: _ctx.item,
8928
8928
  element: addToCartElement.value,
@@ -8931,12 +8931,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8931
8931
  isInStock: isInStock.value
8932
8932
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
8933
8933
  ])) : createCommentVNode("", true)
8934
- ], 10, _hoisted_1$Y);
8934
+ ], 10, _hoisted_1$Z);
8935
8935
  };
8936
8936
  }
8937
8937
  });
8938
- const _hoisted_1$X = { id: "lupa-search-box-products" };
8939
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8938
+ const _hoisted_1$Y = { id: "lupa-search-box-products" };
8939
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8940
8940
  __name: "SearchBoxProducts",
8941
8941
  props: {
8942
8942
  items: {},
@@ -8956,7 +8956,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8956
8956
  return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
8957
8957
  });
8958
8958
  return (_ctx, _cache) => {
8959
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
8959
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
8960
8960
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
8961
8961
  return renderSlot(_ctx.$slots, "productCard", {
8962
8962
  key: index,
@@ -8968,7 +8968,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8968
8968
  onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
8969
8969
  });
8970
8970
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
8971
- return openBlock(), createBlock(_sfc_main$10, {
8971
+ return openBlock(), createBlock(_sfc_main$11, {
8972
8972
  key: index,
8973
8973
  item,
8974
8974
  panelOptions: _ctx.panelOptions,
@@ -8982,7 +8982,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8982
8982
  };
8983
8983
  }
8984
8984
  });
8985
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8985
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8986
8986
  __name: "SearchBoxProductsWrapper",
8987
8987
  props: {
8988
8988
  panel: {},
@@ -9034,7 +9034,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9034
9034
  const getItemsDebounced = debounce$1(getItems, props.debounce);
9035
9035
  return (_ctx, _cache) => {
9036
9036
  var _a, _b;
9037
- return openBlock(), createBlock(_sfc_main$$, {
9037
+ return openBlock(), createBlock(_sfc_main$10, {
9038
9038
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9039
9039
  panelOptions: _ctx.panel,
9040
9040
  labels: _ctx.labels,
@@ -9052,11 +9052,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9052
9052
  };
9053
9053
  }
9054
9054
  });
9055
- const _hoisted_1$W = {
9055
+ const _hoisted_1$X = {
9056
9056
  key: 0,
9057
9057
  id: "lupa-search-box-panel"
9058
9058
  };
9059
- const _hoisted_2$F = {
9059
+ const _hoisted_2$G = {
9060
9060
  class: "lupa-main-panel",
9061
9061
  "data-cy": "lupa-main-panel"
9062
9062
  };
@@ -9067,11 +9067,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9067
9067
  };
9068
9068
  const __default__$3 = {
9069
9069
  components: {
9070
- SearchBoxSuggestionsWrapper: _sfc_main$1b,
9071
- SearchBoxProductsWrapper: _sfc_main$_
9070
+ SearchBoxSuggestionsWrapper: _sfc_main$1c,
9071
+ SearchBoxProductsWrapper: _sfc_main$$
9072
9072
  }
9073
9073
  };
9074
- const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9074
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9075
9075
  __name: "SearchBoxMainPanel",
9076
9076
  props: {
9077
9077
  options: {},
@@ -9185,8 +9185,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9185
9185
  ref_key: "panelContainer",
9186
9186
  ref: panelContainer
9187
9187
  }, [
9188
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
9189
- createBaseVNode("div", _hoisted_2$F, [
9188
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
9189
+ createBaseVNode("div", _hoisted_2$G, [
9190
9190
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
9191
9191
  return openBlock(), createElementBlock("div", {
9192
9192
  key: index,
@@ -9218,13 +9218,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9218
9218
  ], 10, _hoisted_3$v);
9219
9219
  }), 128))
9220
9220
  ]),
9221
- createVNode(_sfc_main$1g, {
9221
+ createVNode(_sfc_main$1h, {
9222
9222
  labels: labels.value,
9223
9223
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
9224
9224
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
9225
9225
  }, null, 8, ["labels", "showTotalCount"])
9226
9226
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
9227
- createVNode(_sfc_main$1e, {
9227
+ createVNode(_sfc_main$1f, {
9228
9228
  options: _ctx.options.history,
9229
9229
  history: history.value,
9230
9230
  onGoToResults: handleGoToResults,
@@ -9249,9 +9249,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9249
9249
  const elements = getElements(triggers);
9250
9250
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
9251
9251
  };
9252
- const _hoisted_1$V = { id: "lupa-search-box" };
9253
- const _hoisted_2$E = { class: "lupa-search-box-wrapper" };
9254
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9252
+ const _hoisted_1$W = { id: "lupa-search-box" };
9253
+ const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
9254
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9255
9255
  __name: "SearchBox",
9256
9256
  props: {
9257
9257
  options: {},
@@ -9484,9 +9484,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9484
9484
  };
9485
9485
  return (_ctx, _cache) => {
9486
9486
  var _a2;
9487
- return openBlock(), createElementBlock("div", _hoisted_1$V, [
9488
- createBaseVNode("div", _hoisted_2$E, [
9489
- createVNode(_sfc_main$1h, {
9487
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
9488
+ createBaseVNode("div", _hoisted_2$F, [
9489
+ createVNode(_sfc_main$1i, {
9490
9490
  options: inputOptions.value,
9491
9491
  suggestedValue: suggestedValue.value,
9492
9492
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -9497,7 +9497,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9497
9497
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
9498
9498
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
9499
9499
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
9500
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$Z, {
9500
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
9501
9501
  key: 0,
9502
9502
  options: panelOptions.value,
9503
9503
  inputValue: inputValue.value,
@@ -9584,11 +9584,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9584
9584
  }
9585
9585
  return searchParams;
9586
9586
  };
9587
- const _hoisted_1$U = {
9587
+ const _hoisted_1$V = {
9588
9588
  key: 0,
9589
9589
  id: "lupa-search-results-did-you-mean"
9590
9590
  };
9591
- const _hoisted_2$D = {
9591
+ const _hoisted_2$E = {
9592
9592
  key: 0,
9593
9593
  "data-cy": "suggested-search-text-label"
9594
9594
  };
@@ -9597,7 +9597,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9597
9597
  "data-cy": "did-you-mean-label"
9598
9598
  };
9599
9599
  const _hoisted_4$m = { key: 1 };
9600
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
9600
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9601
9601
  __name: "SearchResultsDidYouMean",
9602
9602
  props: {
9603
9603
  labels: {}
@@ -9629,8 +9629,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9629
9629
  paramStore.goToResults({ searchText, facet });
9630
9630
  };
9631
9631
  return (_ctx, _cache) => {
9632
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
9633
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
9632
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
9633
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
9634
9634
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
9635
9635
  return openBlock(), createElementBlock("span", { key: index }, [
9636
9636
  createBaseVNode("span", {
@@ -9655,12 +9655,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9655
9655
  };
9656
9656
  }
9657
9657
  });
9658
- const _hoisted_1$T = {
9658
+ const _hoisted_1$U = {
9659
9659
  key: 0,
9660
9660
  class: "lupa-search-results-summary"
9661
9661
  };
9662
- const _hoisted_2$C = ["innerHTML"];
9663
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
9662
+ const _hoisted_2$D = ["innerHTML"];
9663
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9664
9664
  __name: "SearchResultsSummary",
9665
9665
  props: {
9666
9666
  label: {},
@@ -9675,8 +9675,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9675
9675
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
9676
9676
  });
9677
9677
  return (_ctx, _cache) => {
9678
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$T, [
9679
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$C),
9678
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
9679
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
9680
9680
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
9681
9681
  key: 0,
9682
9682
  class: "lupa-filter-clear",
@@ -9687,18 +9687,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9687
9687
  };
9688
9688
  }
9689
9689
  });
9690
- const _hoisted_1$S = {
9690
+ const _hoisted_1$T = {
9691
9691
  key: 0,
9692
9692
  class: "lupa-result-page-title",
9693
9693
  "data-cy": "lupa-result-page-title"
9694
9694
  };
9695
- const _hoisted_2$B = { key: 0 };
9695
+ const _hoisted_2$C = { key: 0 };
9696
9696
  const _hoisted_3$t = {
9697
9697
  key: 1,
9698
9698
  class: "lupa-results-total-count"
9699
9699
  };
9700
9700
  const _hoisted_4$l = ["innerHTML"];
9701
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
9701
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9702
9702
  __name: "SearchResultsTitle",
9703
9703
  props: {
9704
9704
  options: {},
@@ -9733,12 +9733,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9733
9733
  });
9734
9734
  return (_ctx, _cache) => {
9735
9735
  return openBlock(), createElementBlock("div", null, [
9736
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
9736
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
9737
9737
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
9738
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9738
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9739
9739
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
9740
9740
  ])) : createCommentVNode("", true),
9741
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$W, {
9741
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
9742
9742
  key: 1,
9743
9743
  label: summaryLabel.value
9744
9744
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -9751,8 +9751,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9751
9751
  };
9752
9752
  }
9753
9753
  });
9754
- const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
9755
- const _hoisted_2$A = {
9754
+ const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
9755
+ const _hoisted_2$B = {
9756
9756
  class: "lupa-current-filter-label",
9757
9757
  "data-cy": "lupa-current-filter-label"
9758
9758
  };
@@ -9760,7 +9760,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9760
9760
  class: "lupa-current-filter-value",
9761
9761
  "data-cy": "lupa-current-filter-value"
9762
9762
  };
9763
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
9763
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
9764
9764
  __name: "CurrentFilterDisplay",
9765
9765
  props: {
9766
9766
  filter: {}
@@ -9772,19 +9772,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9772
9772
  emit2("remove", { filter: props.filter });
9773
9773
  };
9774
9774
  return (_ctx, _cache) => {
9775
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
9775
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
9776
9776
  createBaseVNode("div", {
9777
9777
  class: "lupa-current-filter-action",
9778
9778
  onClick: handleClick
9779
9779
  }, "⨉"),
9780
- createBaseVNode("div", _hoisted_2$A, toDisplayString(_ctx.filter.label) + ": ", 1),
9780
+ createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
9781
9781
  createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
9782
9782
  ]);
9783
9783
  };
9784
9784
  }
9785
9785
  });
9786
- const _hoisted_1$Q = { class: "lupa-filter-title-text" };
9787
- const _hoisted_2$z = {
9786
+ const _hoisted_1$R = { class: "lupa-filter-title-text" };
9787
+ const _hoisted_2$A = {
9788
9788
  key: 0,
9789
9789
  class: "lupa-filter-count"
9790
9790
  };
@@ -9793,7 +9793,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9793
9793
  class: "filter-values"
9794
9794
  };
9795
9795
  const _hoisted_4$k = { class: "lupa-current-filter-list" };
9796
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
9796
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9797
9797
  __name: "CurrentFilters",
9798
9798
  props: {
9799
9799
  options: {},
@@ -9848,9 +9848,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9848
9848
  class: "lupa-current-filter-title",
9849
9849
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
9850
9850
  }, [
9851
- createBaseVNode("div", _hoisted_1$Q, [
9851
+ createBaseVNode("div", _hoisted_1$R, [
9852
9852
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
9853
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$z, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9853
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9854
9854
  ]),
9855
9855
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
9856
9856
  key: 0,
@@ -9860,7 +9860,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9860
9860
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
9861
9861
  createBaseVNode("div", _hoisted_4$k, [
9862
9862
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
9863
- return openBlock(), createBlock(_sfc_main$U, {
9863
+ return openBlock(), createBlock(_sfc_main$V, {
9864
9864
  key: filter.key + "_" + filter.value,
9865
9865
  filter,
9866
9866
  onRemove: handleRemove
@@ -9877,8 +9877,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9877
9877
  };
9878
9878
  }
9879
9879
  });
9880
- const _hoisted_1$P = ["href"];
9881
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
9880
+ const _hoisted_1$Q = ["href"];
9881
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9882
9882
  __name: "CategoryFilterItem",
9883
9883
  props: {
9884
9884
  options: {},
@@ -9915,20 +9915,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9915
9915
  "data-cy": "lupa-child-category-item",
9916
9916
  href: urlLink.value,
9917
9917
  onClick: handleNavigation
9918
- }, toDisplayString(title.value), 9, _hoisted_1$P)
9918
+ }, toDisplayString(title.value), 9, _hoisted_1$Q)
9919
9919
  ], 2);
9920
9920
  };
9921
9921
  }
9922
9922
  });
9923
- const _hoisted_1$O = {
9923
+ const _hoisted_1$P = {
9924
9924
  class: "lupa-category-filter",
9925
9925
  "data-cy": "lupa-category-filter"
9926
9926
  };
9927
- const _hoisted_2$y = { class: "lupa-category-back" };
9927
+ const _hoisted_2$z = { class: "lupa-category-back" };
9928
9928
  const _hoisted_3$q = ["href"];
9929
9929
  const _hoisted_4$j = ["href"];
9930
9930
  const _hoisted_5$c = { class: "lupa-child-category-list" };
9931
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
9931
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9932
9932
  __name: "CategoryFilter",
9933
9933
  props: {
9934
9934
  options: {}
@@ -10014,8 +10014,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10014
10014
  };
10015
10015
  __expose({ fetch: fetch2 });
10016
10016
  return (_ctx, _cache) => {
10017
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
10018
- createBaseVNode("div", _hoisted_2$y, [
10017
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
10018
+ createBaseVNode("div", _hoisted_2$z, [
10019
10019
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
10020
10020
  key: 0,
10021
10021
  "data-cy": "lupa-category-back",
@@ -10035,7 +10035,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10035
10035
  ], 2),
10036
10036
  createBaseVNode("div", _hoisted_5$c, [
10037
10037
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10038
- return openBlock(), createBlock(_sfc_main$S, {
10038
+ return openBlock(), createBlock(_sfc_main$T, {
10039
10039
  key: getCategoryKey(child),
10040
10040
  item: child,
10041
10041
  options: _ctx.options
@@ -10046,11 +10046,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10046
10046
  };
10047
10047
  }
10048
10048
  });
10049
- const _hoisted_1$N = {
10049
+ const _hoisted_1$O = {
10050
10050
  class: "lupa-search-result-facet-term-values",
10051
10051
  "data-cy": "lupa-search-result-facet-term-values"
10052
10052
  };
10053
- const _hoisted_2$x = ["placeholder"];
10053
+ const _hoisted_2$y = ["placeholder"];
10054
10054
  const _hoisted_3$p = { class: "lupa-terms-list" };
10055
10055
  const _hoisted_4$i = ["onClick"];
10056
10056
  const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
@@ -10062,7 +10062,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10062
10062
  };
10063
10063
  const _hoisted_9$1 = { key: 0 };
10064
10064
  const _hoisted_10$1 = { key: 1 };
10065
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10065
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10066
10066
  __name: "TermFacet",
10067
10067
  props: {
10068
10068
  options: {},
@@ -10131,14 +10131,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10131
10131
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
10132
10132
  };
10133
10133
  return (_ctx, _cache) => {
10134
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
10134
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
10135
10135
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
10136
10136
  key: 0,
10137
10137
  class: "lupa-term-filter",
10138
10138
  "data-cy": "lupa-term-filter",
10139
10139
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
10140
10140
  placeholder: _ctx.options.labels.facetFilter
10141
- }, null, 8, _hoisted_2$x)), [
10141
+ }, null, 8, _hoisted_2$y)), [
10142
10142
  [vModelText, termFilter.value]
10143
10143
  ]) : createCommentVNode("", true),
10144
10144
  createBaseVNode("div", _hoisted_3$p, [
@@ -11149,8 +11149,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11149
11149
  m.render = function(e, t, r, i, n, o) {
11150
11150
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
11151
11151
  }, m.__file = "src/Slider.vue";
11152
- const _hoisted_1$M = { class: "lupa-search-result-facet-stats-values" };
11153
- const _hoisted_2$w = {
11152
+ const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
11153
+ const _hoisted_2$x = {
11154
11154
  key: 0,
11155
11155
  class: "lupa-stats-facet-summary"
11156
11156
  };
@@ -11177,7 +11177,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11177
11177
  key: 2,
11178
11178
  class: "lupa-stats-slider-wrapper"
11179
11179
  };
11180
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
11180
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11181
11181
  __name: "StatsFacet",
11182
11182
  props: {
11183
11183
  options: {},
@@ -11325,8 +11325,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11325
11325
  innerSliderRange.value = value;
11326
11326
  };
11327
11327
  return (_ctx, _cache) => {
11328
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
11329
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$w, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
11328
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
11329
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
11330
11330
  createBaseVNode("div", null, [
11331
11331
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11332
11332
  createBaseVNode("div", _hoisted_5$a, [
@@ -11389,8 +11389,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11389
11389
  };
11390
11390
  }
11391
11391
  });
11392
- const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
11393
- const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
11392
+ const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
11393
+ const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
11394
11394
  const _hoisted_3$n = { class: "lupa-term-label" };
11395
11395
  const _hoisted_4$g = {
11396
11396
  key: 0,
@@ -11400,7 +11400,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11400
11400
  key: 0,
11401
11401
  class: "lupa-facet-level"
11402
11402
  };
11403
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
11403
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11404
11404
  __name: "HierarchyFacetLevel",
11405
11405
  props: {
11406
11406
  options: {},
@@ -11446,12 +11446,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11446
11446
  "data-cy": "lupa-facet-term",
11447
11447
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
11448
11448
  }, [
11449
- createBaseVNode("div", _hoisted_1$L, [
11449
+ createBaseVNode("div", _hoisted_1$M, [
11450
11450
  createBaseVNode("span", {
11451
11451
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
11452
11452
  }, null, 2)
11453
11453
  ]),
11454
- createBaseVNode("div", _hoisted_2$v, [
11454
+ createBaseVNode("div", _hoisted_2$w, [
11455
11455
  createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11456
11456
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11457
11457
  ])
@@ -11472,13 +11472,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11472
11472
  };
11473
11473
  }
11474
11474
  });
11475
- const _hoisted_1$K = {
11475
+ const _hoisted_1$L = {
11476
11476
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
11477
11477
  "data-cy": "lupa-search-result-facet-term-values"
11478
11478
  };
11479
- const _hoisted_2$u = { key: 0 };
11479
+ const _hoisted_2$v = { key: 0 };
11480
11480
  const _hoisted_3$m = ["placeholder"];
11481
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
11481
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11482
11482
  __name: "HierarchyFacet",
11483
11483
  props: {
11484
11484
  options: {},
@@ -11528,8 +11528,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11528
11528
  showAll.value = true;
11529
11529
  };
11530
11530
  return (_ctx, _cache) => {
11531
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
11532
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
11531
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
11532
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
11533
11533
  withDirectives(createBaseVNode("input", {
11534
11534
  class: "lupa-term-filter",
11535
11535
  "data-cy": "lupa-term-filter",
@@ -11540,7 +11540,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11540
11540
  ])
11541
11541
  ])) : createCommentVNode("", true),
11542
11542
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11543
- return openBlock(), createBlock(_sfc_main$O, {
11543
+ return openBlock(), createBlock(_sfc_main$P, {
11544
11544
  key: item.title,
11545
11545
  options: _ctx.options,
11546
11546
  item,
@@ -11560,20 +11560,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11560
11560
  };
11561
11561
  }
11562
11562
  });
11563
- const _hoisted_1$J = { class: "lupa-facet-label-text" };
11564
- const _hoisted_2$t = {
11563
+ const _hoisted_1$K = { class: "lupa-facet-label-text" };
11564
+ const _hoisted_2$u = {
11565
11565
  key: 0,
11566
11566
  class: "lupa-facet-content",
11567
11567
  "data-cy": "lupa-facet-content"
11568
11568
  };
11569
11569
  const __default__$2 = {
11570
11570
  components: {
11571
- TermFacet: _sfc_main$Q,
11572
- StatsFacet: _sfc_main$P,
11573
- HierarchyFacet: _sfc_main$N
11571
+ TermFacet: _sfc_main$R,
11572
+ StatsFacet: _sfc_main$Q,
11573
+ HierarchyFacet: _sfc_main$O
11574
11574
  }
11575
11575
  };
11576
- const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11576
+ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11577
11577
  __name: "FacetDisplay",
11578
11578
  props: {
11579
11579
  options: {},
@@ -11684,12 +11684,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11684
11684
  "data-cy": "lupa-search-result-facet-label",
11685
11685
  onClick: toggleFacet
11686
11686
  }, [
11687
- createBaseVNode("div", _hoisted_1$J, toDisplayString(facet.value.label), 1),
11687
+ createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
11688
11688
  createBaseVNode("div", {
11689
11689
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
11690
11690
  }, null, 2)
11691
11691
  ], 2),
11692
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
11692
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
11693
11693
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
11694
11694
  facet: facet.value,
11695
11695
  currentFilters: currentFilters.value[facet.value.key],
@@ -11707,12 +11707,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11707
11707
  };
11708
11708
  }
11709
11709
  }));
11710
- const _hoisted_1$I = { class: "lupa-search-result-facet-section" };
11711
- const _hoisted_2$s = {
11710
+ const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
11711
+ const _hoisted_2$t = {
11712
11712
  key: 0,
11713
11713
  class: "lupa-facets-title"
11714
11714
  };
11715
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
11715
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
11716
11716
  __name: "FacetList",
11717
11717
  props: {
11718
11718
  options: {},
@@ -11746,14 +11746,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11746
11746
  };
11747
11747
  return (_ctx, _cache) => {
11748
11748
  var _a;
11749
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
11750
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11749
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
11750
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11751
11751
  createBaseVNode("div", {
11752
11752
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
11753
11753
  }, [
11754
11754
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
11755
11755
  var _a2;
11756
- return openBlock(), createBlock(_sfc_main$M, {
11756
+ return openBlock(), createBlock(_sfc_main$N, {
11757
11757
  key: facet.key,
11758
11758
  facet,
11759
11759
  currentFilters: currentFiltersValue.value,
@@ -11768,8 +11768,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11768
11768
  };
11769
11769
  }
11770
11770
  });
11771
- const _hoisted_1$H = { class: "lupa-search-result-facets" };
11772
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
11771
+ const _hoisted_1$I = { class: "lupa-search-result-facets" };
11772
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11773
11773
  __name: "Facets",
11774
11774
  props: {
11775
11775
  options: {},
@@ -11815,8 +11815,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11815
11815
  paramStore.removeParameters({ paramsToRemove: [param] });
11816
11816
  };
11817
11817
  return (_ctx, _cache) => {
11818
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
11819
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$L, {
11818
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
11819
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
11820
11820
  key: 0,
11821
11821
  options: _ctx.options,
11822
11822
  facets: regularFacets.value,
@@ -11830,11 +11830,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11830
11830
  };
11831
11831
  }
11832
11832
  });
11833
- const _hoisted_1$G = {
11833
+ const _hoisted_1$H = {
11834
11834
  id: "lupa-search-result-filters",
11835
11835
  class: "lupa-search-result-filters"
11836
11836
  };
11837
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
11837
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11838
11838
  __name: "SearchResultsFilters",
11839
11839
  props: {
11840
11840
  options: {},
@@ -11863,19 +11863,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11863
11863
  __expose({ fetch: fetch2 });
11864
11864
  return (_ctx, _cache) => {
11865
11865
  var _a;
11866
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
11867
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$T, {
11866
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
11867
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
11868
11868
  key: 0,
11869
11869
  options: _ctx.options.currentFilters,
11870
11870
  expandable: (_a = _ctx.expandable) != null ? _a : false
11871
11871
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
11872
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$R, {
11872
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
11873
11873
  key: 1,
11874
11874
  options: _ctx.options.categories,
11875
11875
  ref_key: "categoryFilters",
11876
11876
  ref: categoryFilters
11877
11877
  }, null, 8, ["options"])) : createCommentVNode("", true),
11878
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
11878
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
11879
11879
  key: 2,
11880
11880
  options: _ctx.options.facets
11881
11881
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -11883,11 +11883,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11883
11883
  };
11884
11884
  }
11885
11885
  });
11886
- const _hoisted_1$F = {
11886
+ const _hoisted_1$G = {
11887
11887
  key: 0,
11888
11888
  class: "lupa-mobile-filter-sidebar"
11889
11889
  };
11890
- const _hoisted_2$r = ["onClick"];
11890
+ const _hoisted_2$s = ["onClick"];
11891
11891
  const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
11892
11892
  const _hoisted_4$f = { class: "lupa-sidebar-top" };
11893
11893
  const _hoisted_5$8 = { class: "lupa-sidebar-title" };
@@ -11896,7 +11896,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11896
11896
  class: "lupa-sidebar-filter-count"
11897
11897
  };
11898
11898
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
11899
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
11899
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11900
11900
  __name: "MobileFilterSidebar",
11901
11901
  props: {
11902
11902
  options: {}
@@ -11922,11 +11922,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11922
11922
  searchResultStore.setSidebarState({ visible: false });
11923
11923
  };
11924
11924
  return (_ctx, _cache) => {
11925
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
11925
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
11926
11926
  createBaseVNode("div", {
11927
11927
  class: "lupa-sidebar-close",
11928
11928
  onClick: withModifiers(handleMobileToggle, ["stop"])
11929
- }, null, 8, _hoisted_2$r),
11929
+ }, null, 8, _hoisted_2$s),
11930
11930
  createBaseVNode("div", _hoisted_3$l, [
11931
11931
  createBaseVNode("div", _hoisted_4$f, [
11932
11932
  createBaseVNode("div", _hoisted_5$8, [
@@ -11939,7 +11939,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11939
11939
  })
11940
11940
  ]),
11941
11941
  createBaseVNode("div", _hoisted_7$4, [
11942
- createVNode(_sfc_main$J, {
11942
+ createVNode(_sfc_main$K, {
11943
11943
  options: _ctx.options,
11944
11944
  expandable: isActiveFiltersExpanded.value
11945
11945
  }, null, 8, ["options", "expandable"])
@@ -11949,14 +11949,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11949
11949
  };
11950
11950
  }
11951
11951
  });
11952
- const _hoisted_1$E = { id: "lupa-search-results-breadcrumbs" };
11953
- const _hoisted_2$q = ["href", "onClick"];
11952
+ const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
11953
+ const _hoisted_2$r = ["href", "onClick"];
11954
11954
  const _hoisted_3$k = {
11955
11955
  key: 1,
11956
11956
  class: "lupa-search-results-breadcrumb-text"
11957
11957
  };
11958
11958
  const _hoisted_4$e = { key: 2 };
11959
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
11959
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11960
11960
  __name: "SearchResultsBreadcrumbs",
11961
11961
  props: {
11962
11962
  breadcrumbs: {}
@@ -11981,7 +11981,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11981
11981
  handleRoutingEvent(link, event, hasEventRouting.value);
11982
11982
  };
11983
11983
  return (_ctx, _cache) => {
11984
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
11984
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
11985
11985
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
11986
11986
  return openBlock(), createElementBlock("span", {
11987
11987
  class: "lupa-search-results-breadcrumb",
@@ -11995,7 +11995,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11995
11995
  var _a;
11996
11996
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
11997
11997
  }
11998
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
11998
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
11999
11999
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
12000
12000
  ]);
12001
12001
  }), 128))
@@ -12003,11 +12003,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12003
12003
  };
12004
12004
  }
12005
12005
  });
12006
- const _hoisted_1$D = {
12006
+ const _hoisted_1$E = {
12007
12007
  id: "lupa-search-result-filters",
12008
12008
  class: "lupa-search-result-filters"
12009
12009
  };
12010
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
12010
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12011
12011
  __name: "FiltersTopDropdown",
12012
12012
  props: {
12013
12013
  options: {}
@@ -12015,8 +12015,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12015
12015
  setup(__props) {
12016
12016
  return (_ctx, _cache) => {
12017
12017
  var _a;
12018
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
12019
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
12018
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
12019
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
12020
12020
  key: 0,
12021
12021
  options: _ctx.options.facets,
12022
12022
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -12026,8 +12026,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12026
12026
  };
12027
12027
  }
12028
12028
  });
12029
- const _hoisted_1$C = { id: "lupa-search-results-layout-selection" };
12030
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
12029
+ const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
12030
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12031
12031
  __name: "SearchResultsLayoutSelection",
12032
12032
  setup(__props) {
12033
12033
  const searchResultStore = useSearchResultStore();
@@ -12038,7 +12038,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12038
12038
  searchResultStore.setLayout(layout2);
12039
12039
  };
12040
12040
  return (_ctx, _cache) => {
12041
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
12041
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
12042
12042
  createBaseVNode("div", {
12043
12043
  class: normalizeClass([
12044
12044
  "lupa-layout-selection-grid",
@@ -12060,11 +12060,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12060
12060
  };
12061
12061
  }
12062
12062
  });
12063
- const _hoisted_1$B = {
12063
+ const _hoisted_1$C = {
12064
12064
  key: 0,
12065
12065
  class: "lupa-mobile-toggle-filter-count"
12066
12066
  };
12067
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
12067
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12068
12068
  __name: "SearchResultsMobileToggle",
12069
12069
  props: {
12070
12070
  label: {},
@@ -12082,17 +12082,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12082
12082
  onClick: handleMobileToggle
12083
12083
  }, [
12084
12084
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
12085
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$B, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12085
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12086
12086
  ], 2);
12087
12087
  };
12088
12088
  }
12089
12089
  });
12090
- const _hoisted_1$A = {
12090
+ const _hoisted_1$B = {
12091
12091
  key: 0,
12092
12092
  id: "lupa-search-results-page-select",
12093
12093
  "data-cy": "lupa-search-results-page-select"
12094
12094
  };
12095
- const _hoisted_2$p = {
12095
+ const _hoisted_2$q = {
12096
12096
  key: 0,
12097
12097
  class: "lupa-page-number-separator"
12098
12098
  };
@@ -12101,7 +12101,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12101
12101
  key: 0,
12102
12102
  class: "lupa-page-number-separator"
12103
12103
  };
12104
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
12104
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12105
12105
  __name: "SearchResultsPageSelect",
12106
12106
  props: {
12107
12107
  lastPageLabel: {},
@@ -12163,7 +12163,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12163
12163
  }
12164
12164
  };
12165
12165
  return (_ctx, _cache) => {
12166
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
12166
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
12167
12167
  showBack.value ? (openBlock(), createElementBlock("div", {
12168
12168
  key: 0,
12169
12169
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -12174,7 +12174,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12174
12174
  class: "lupa-page-number lupa-page-number-first",
12175
12175
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
12176
12176
  }, " 1 "),
12177
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, "...")) : createCommentVNode("", true)
12177
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, "...")) : createCommentVNode("", true)
12178
12178
  ], 64)) : createCommentVNode("", true),
12179
12179
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
12180
12180
  return openBlock(), createElementBlock("div", {
@@ -12207,13 +12207,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12207
12207
  };
12208
12208
  }
12209
12209
  });
12210
- const _hoisted_1$z = {
12210
+ const _hoisted_1$A = {
12211
12211
  id: "lupa-search-results-page-size",
12212
12212
  "data-cy": "lupa-search-results-page-size"
12213
12213
  };
12214
- const _hoisted_2$o = { id: "lupa-select" };
12214
+ const _hoisted_2$p = { id: "lupa-select" };
12215
12215
  const _hoisted_3$i = { class: "lupa-select-label" };
12216
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
12216
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12217
12217
  __name: "SearchResultsPageSize",
12218
12218
  props: {
12219
12219
  label: {},
@@ -12230,8 +12230,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12230
12230
  });
12231
12231
  };
12232
12232
  return (_ctx, _cache) => {
12233
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
12234
- createBaseVNode("div", _hoisted_2$o, [
12233
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
12234
+ createBaseVNode("div", _hoisted_2$p, [
12235
12235
  createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
12236
12236
  createBaseVNode("select", {
12237
12237
  class: "lupa-select-dropdown",
@@ -12249,14 +12249,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12249
12249
  };
12250
12250
  }
12251
12251
  });
12252
- const _hoisted_1$y = {
12252
+ const _hoisted_1$z = {
12253
12253
  id: "lupa-search-results-sort",
12254
12254
  class: "lupa-search-results-sort"
12255
12255
  };
12256
- const _hoisted_2$n = { id: "lupa-select" };
12256
+ const _hoisted_2$o = { id: "lupa-select" };
12257
12257
  const _hoisted_3$h = { class: "lupa-select-label" };
12258
12258
  const _hoisted_4$c = ["value"];
12259
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
12259
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12260
12260
  __name: "SearchResultsSort",
12261
12261
  props: {
12262
12262
  options: {},
@@ -12303,8 +12303,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12303
12303
  previousKey.value = selectedKey.value;
12304
12304
  };
12305
12305
  return (_ctx, _cache) => {
12306
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
12307
- createBaseVNode("div", _hoisted_2$n, [
12306
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
12307
+ createBaseVNode("div", _hoisted_2$o, [
12308
12308
  createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
12309
12309
  withDirectives(createBaseVNode("select", {
12310
12310
  class: "lupa-select-dropdown",
@@ -12327,14 +12327,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12327
12327
  };
12328
12328
  }
12329
12329
  });
12330
- const _hoisted_1$x = { class: "lupa-toolbar-left" };
12331
- const _hoisted_2$m = { key: 1 };
12330
+ const _hoisted_1$y = { class: "lupa-toolbar-left" };
12331
+ const _hoisted_2$n = { key: 1 };
12332
12332
  const _hoisted_3$g = { key: 3 };
12333
12333
  const _hoisted_4$b = { key: 5 };
12334
12334
  const _hoisted_5$7 = { class: "lupa-toolbar-right" };
12335
12335
  const _hoisted_6$4 = { key: 1 };
12336
12336
  const _hoisted_7$3 = { key: 3 };
12337
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
12337
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12338
12338
  __name: "SearchResultsToolbar",
12339
12339
  props: {
12340
12340
  options: {},
@@ -12433,15 +12433,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12433
12433
  id: "lupa-search-results-toolbar",
12434
12434
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
12435
12435
  }, [
12436
- createBaseVNode("div", _hoisted_1$x, [
12437
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$F, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$m)),
12438
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$W, {
12436
+ createBaseVNode("div", _hoisted_1$y, [
12437
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n)),
12438
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
12439
12439
  key: 2,
12440
12440
  label: searchSummaryLabel.value,
12441
12441
  clearable: unref(hasAnyFilter) && showFilterClear.value,
12442
12442
  onClear: handleClearAll
12443
12443
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
12444
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
12444
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
12445
12445
  key: 4,
12446
12446
  options: paginationOptions.value.pageSelect,
12447
12447
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -12449,16 +12449,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12449
12449
  }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
12450
12450
  ]),
12451
12451
  createBaseVNode("div", _hoisted_5$7, [
12452
- createVNode(_sfc_main$E, {
12452
+ createVNode(_sfc_main$F, {
12453
12453
  label: optionsValue.value.labels.mobileFilterButton,
12454
12454
  "show-filter-count": showMobileFilterCount.value
12455
12455
  }, null, 8, ["label", "show-filter-count"]),
12456
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
12456
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
12457
12457
  key: 0,
12458
12458
  options: paginationOptions.value.pageSize,
12459
12459
  label: paginationOptions.value.labels.pageSize
12460
12460
  }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
12461
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
12461
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
12462
12462
  key: 2,
12463
12463
  options: sortOptions.value,
12464
12464
  callbacks: callbacks.value
@@ -12468,14 +12468,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12468
12468
  };
12469
12469
  }
12470
12470
  });
12471
- const _hoisted_1$w = { class: "lupa-badge-title" };
12472
- const _hoisted_2$l = ["src"];
12471
+ const _hoisted_1$x = { class: "lupa-badge-title" };
12472
+ const _hoisted_2$m = ["src"];
12473
12473
  const _hoisted_3$f = { key: 1 };
12474
12474
  const _hoisted_4$a = {
12475
12475
  key: 0,
12476
12476
  class: "lupa-badge-full-text"
12477
12477
  };
12478
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
12478
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12479
12479
  __name: "SearchResultGeneratedBadge",
12480
12480
  props: {
12481
12481
  options: {},
@@ -12508,11 +12508,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12508
12508
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
12509
12509
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
12510
12510
  }, [
12511
- createBaseVNode("span", _hoisted_1$w, [
12511
+ createBaseVNode("span", _hoisted_1$x, [
12512
12512
  image.value ? (openBlock(), createElementBlock("img", {
12513
12513
  key: 0,
12514
12514
  src: image.value
12515
- }, null, 8, _hoisted_2$l)) : createCommentVNode("", true),
12515
+ }, null, 8, _hoisted_2$m)) : createCommentVNode("", true),
12516
12516
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
12517
12517
  ]),
12518
12518
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -12520,8 +12520,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12520
12520
  };
12521
12521
  }
12522
12522
  });
12523
- const _hoisted_1$v = { class: "lupa-generated-badges" };
12524
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
12523
+ const _hoisted_1$w = { class: "lupa-generated-badges" };
12524
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12525
12525
  __name: "SearchResultGeneratedBadges",
12526
12526
  props: {
12527
12527
  options: {}
@@ -12547,9 +12547,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12547
12547
  })).filter((b) => Boolean(b.id));
12548
12548
  });
12549
12549
  return (_ctx, _cache) => {
12550
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
12550
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
12551
12551
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
12552
- return openBlock(), createBlock(_sfc_main$z, {
12552
+ return openBlock(), createBlock(_sfc_main$A, {
12553
12553
  key: badge.id,
12554
12554
  badge,
12555
12555
  options: _ctx.options
@@ -12559,8 +12559,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12559
12559
  };
12560
12560
  }
12561
12561
  });
12562
- const _hoisted_1$u = ["innerHTML"];
12563
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
12562
+ const _hoisted_1$v = ["innerHTML"];
12563
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12564
12564
  __name: "CustomBadge",
12565
12565
  props: {
12566
12566
  badge: {}
@@ -12579,12 +12579,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12579
12579
  return openBlock(), createElementBlock("div", {
12580
12580
  class: normalizeClass(className.value),
12581
12581
  innerHTML: text.value
12582
- }, null, 10, _hoisted_1$u);
12582
+ }, null, 10, _hoisted_1$v);
12583
12583
  };
12584
12584
  }
12585
12585
  });
12586
- const _hoisted_1$t = { class: "lupa-text-badges" };
12587
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
12586
+ const _hoisted_1$u = { class: "lupa-text-badges" };
12587
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12588
12588
  __name: "TextBadge",
12589
12589
  props: {
12590
12590
  badge: {}
@@ -12599,7 +12599,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12599
12599
  return badges.value.slice(0, props.badge.maxItems);
12600
12600
  });
12601
12601
  return (_ctx, _cache) => {
12602
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
12602
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
12603
12603
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12604
12604
  return openBlock(), createElementBlock("div", {
12605
12605
  class: "lupa-badge lupa-text-badge",
@@ -12610,9 +12610,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12610
12610
  };
12611
12611
  }
12612
12612
  });
12613
- const _hoisted_1$s = { class: "lupa-image-badges" };
12614
- const _hoisted_2$k = ["src"];
12615
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
12613
+ const _hoisted_1$t = { class: "lupa-image-badges" };
12614
+ const _hoisted_2$l = ["src"];
12615
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12616
12616
  __name: "ImageBadge",
12617
12617
  props: {
12618
12618
  badge: {}
@@ -12632,7 +12632,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12632
12632
  return `${props.badge.rootImageUrl}${src}`;
12633
12633
  };
12634
12634
  return (_ctx, _cache) => {
12635
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
12635
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
12636
12636
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12637
12637
  return openBlock(), createElementBlock("div", {
12638
12638
  class: "lupa-badge lupa-image-badge",
@@ -12640,22 +12640,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12640
12640
  }, [
12641
12641
  createBaseVNode("img", {
12642
12642
  src: getImageUrl(item)
12643
- }, null, 8, _hoisted_2$k)
12643
+ }, null, 8, _hoisted_2$l)
12644
12644
  ]);
12645
12645
  }), 128))
12646
12646
  ]);
12647
12647
  };
12648
12648
  }
12649
12649
  });
12650
- const _hoisted_1$r = { id: "lupa-search-results-badges" };
12650
+ const _hoisted_1$s = { id: "lupa-search-results-badges" };
12651
12651
  const __default__$1 = {
12652
12652
  components: {
12653
- CustomBadge: _sfc_main$x,
12654
- TextBadge: _sfc_main$w,
12655
- ImageBadge: _sfc_main$v
12653
+ CustomBadge: _sfc_main$y,
12654
+ TextBadge: _sfc_main$x,
12655
+ ImageBadge: _sfc_main$w
12656
12656
  }
12657
12657
  };
12658
- const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12658
+ const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12659
12659
  __name: "SearchResultsBadgeWrapper",
12660
12660
  props: {
12661
12661
  position: {},
@@ -12701,7 +12701,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12701
12701
  }
12702
12702
  };
12703
12703
  return (_ctx, _cache) => {
12704
- return openBlock(), createElementBlock("div", _hoisted_1$r, [
12704
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
12705
12705
  createBaseVNode("div", {
12706
12706
  id: "lupa-badges",
12707
12707
  class: normalizeClass(anchorPosition.value)
@@ -12712,7 +12712,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12712
12712
  badge
12713
12713
  }, null, 8, ["badge"]);
12714
12714
  }), 128)),
12715
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$y, {
12715
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$z, {
12716
12716
  key: 0,
12717
12717
  options: _ctx.options
12718
12718
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -12721,7 +12721,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12721
12721
  };
12722
12722
  }
12723
12723
  }));
12724
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
12724
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12725
12725
  __name: "SearchResultsProductImage",
12726
12726
  props: {
12727
12727
  item: {},
@@ -12729,7 +12729,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12729
12729
  },
12730
12730
  setup(__props) {
12731
12731
  return (_ctx, _cache) => {
12732
- return openBlock(), createBlock(_sfc_main$1a, {
12732
+ return openBlock(), createBlock(_sfc_main$1b, {
12733
12733
  item: _ctx.item,
12734
12734
  options: _ctx.options,
12735
12735
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -12738,14 +12738,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12738
12738
  };
12739
12739
  }
12740
12740
  });
12741
- const _hoisted_1$q = ["innerHTML"];
12742
- const _hoisted_2$j = ["title"];
12741
+ const _hoisted_1$r = ["innerHTML"];
12742
+ const _hoisted_2$k = ["title"];
12743
12743
  const _hoisted_3$e = {
12744
12744
  key: 0,
12745
12745
  class: "lupa-search-results-product-title-text"
12746
12746
  };
12747
12747
  const _hoisted_4$9 = ["href"];
12748
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
12748
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12749
12749
  __name: "SearchResultsProductTitle",
12750
12750
  props: {
12751
12751
  item: {},
@@ -12778,7 +12778,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12778
12778
  class: "lupa-search-results-product-title",
12779
12779
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12780
12780
  innerHTML: title.value
12781
- }, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
12781
+ }, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
12782
12782
  key: 1,
12783
12783
  class: "lupa-search-results-product-title",
12784
12784
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -12791,12 +12791,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12791
12791
  class: "lupa-search-results-product-title-text lupa-title-link",
12792
12792
  onClick: handleNavigation
12793
12793
  }, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
12794
- ], 12, _hoisted_2$j));
12794
+ ], 12, _hoisted_2$k));
12795
12795
  };
12796
12796
  }
12797
12797
  });
12798
- const _hoisted_1$p = ["innerHTML"];
12799
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
12798
+ const _hoisted_1$q = ["innerHTML"];
12799
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12800
12800
  __name: "SearchResultsProductDescription",
12801
12801
  props: {
12802
12802
  item: {},
@@ -12820,7 +12820,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12820
12820
  class: "lupa-search-results-product-description",
12821
12821
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12822
12822
  innerHTML: description.value
12823
- }, null, 12, _hoisted_1$p)) : (openBlock(), createElementBlock("div", {
12823
+ }, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
12824
12824
  key: 1,
12825
12825
  class: "lupa-search-results-product-description",
12826
12826
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -12828,15 +12828,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12828
12828
  };
12829
12829
  }
12830
12830
  });
12831
- const _hoisted_1$o = { id: "lupa-search-results-rating" };
12832
- const _hoisted_2$i = { class: "lupa-ratings" };
12831
+ const _hoisted_1$p = { id: "lupa-search-results-rating" };
12832
+ const _hoisted_2$j = { class: "lupa-ratings" };
12833
12833
  const _hoisted_3$d = { class: "lupa-ratings-base" };
12834
12834
  const _hoisted_4$8 = ["innerHTML"];
12835
12835
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
12836
12836
  const _hoisted_6$3 = ["innerHTML"];
12837
12837
  const _hoisted_7$2 = ["href"];
12838
12838
  const STAR_COUNT = 5;
12839
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
12839
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12840
12840
  __name: "SearchResultsProductRating",
12841
12841
  props: {
12842
12842
  item: {},
@@ -12867,8 +12867,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12867
12867
  return generateLink(props.options.links.ratingDetails, props.item);
12868
12868
  });
12869
12869
  return (_ctx, _cache) => {
12870
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
12871
- createBaseVNode("div", _hoisted_2$i, [
12870
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
12871
+ createBaseVNode("div", _hoisted_2$j, [
12872
12872
  createBaseVNode("div", _hoisted_3$d, [
12873
12873
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
12874
12874
  return openBlock(), createElementBlock("div", {
@@ -12901,11 +12901,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12901
12901
  };
12902
12902
  }
12903
12903
  });
12904
- const _hoisted_1$n = {
12904
+ const _hoisted_1$o = {
12905
12905
  class: "lupa-search-results-product-regular-price",
12906
12906
  "data-cy": "lupa-search-results-product-regular-price"
12907
12907
  };
12908
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
12908
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12909
12909
  __name: "SearchResultsProductRegularPrice",
12910
12910
  props: {
12911
12911
  item: {},
@@ -12923,15 +12923,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12923
12923
  );
12924
12924
  });
12925
12925
  return (_ctx, _cache) => {
12926
- return openBlock(), createElementBlock("div", _hoisted_1$n, toDisplayString(price.value), 1);
12926
+ return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
12927
12927
  };
12928
12928
  }
12929
12929
  });
12930
- const _hoisted_1$m = {
12930
+ const _hoisted_1$n = {
12931
12931
  class: "lupa-search-results-product-price",
12932
12932
  "data-cy": "lupa-search-results-product-price"
12933
12933
  };
12934
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
12934
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
12935
12935
  __name: "SearchResultsProductPrice",
12936
12936
  props: {
12937
12937
  item: {},
@@ -12949,16 +12949,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12949
12949
  );
12950
12950
  });
12951
12951
  return (_ctx, _cache) => {
12952
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
12952
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
12953
12953
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
12954
12954
  ]);
12955
12955
  };
12956
12956
  }
12957
12957
  });
12958
- const _hoisted_1$l = { class: "lupa-search-results-add-to-cart-wrapper" };
12959
- const _hoisted_2$h = { class: "lupa-search-results-product-addtocart" };
12958
+ const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
12959
+ const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
12960
12960
  const _hoisted_3$c = ["onClick", "disabled"];
12961
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
12961
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
12962
12962
  __name: "SearchResultsProductAddToCart",
12963
12963
  props: {
12964
12964
  item: {},
@@ -12985,8 +12985,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12985
12985
  loading.value = false;
12986
12986
  });
12987
12987
  return (_ctx, _cache) => {
12988
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
12989
- createBaseVNode("div", _hoisted_2$h, [
12988
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
12989
+ createBaseVNode("div", _hoisted_2$i, [
12990
12990
  createBaseVNode("button", {
12991
12991
  onClick: withModifiers(handleClick, ["stop"]),
12992
12992
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -12998,12 +12998,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12998
12998
  };
12999
12999
  }
13000
13000
  });
13001
- const _hoisted_1$k = ["innerHTML"];
13002
- const _hoisted_2$g = { key: 0 };
13001
+ const _hoisted_1$l = ["innerHTML"];
13002
+ const _hoisted_2$h = { key: 0 };
13003
13003
  const _hoisted_3$b = { key: 1 };
13004
13004
  const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
13005
13005
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
13006
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
13006
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
13007
13007
  __name: "SearchResultsProductCustom",
13008
13008
  props: {
13009
13009
  item: {},
@@ -13041,11 +13041,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13041
13041
  key: 0,
13042
13042
  class: className.value,
13043
13043
  innerHTML: text.value
13044
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k)) : (openBlock(), createElementBlock("div", mergeProps({
13044
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (openBlock(), createElementBlock("div", mergeProps({
13045
13045
  key: 1,
13046
13046
  class: className.value
13047
13047
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
13048
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
13048
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
13049
13049
  createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
13050
13050
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
13051
13051
  ]))
@@ -13053,8 +13053,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13053
13053
  };
13054
13054
  }
13055
13055
  });
13056
- const _hoisted_1$j = ["innerHTML"];
13057
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
13056
+ const _hoisted_1$k = ["innerHTML"];
13057
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
13058
13058
  __name: "SearchResultsProductCustomHtmlElement",
13059
13059
  props: {
13060
13060
  item: {},
@@ -13078,15 +13078,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13078
13078
  return openBlock(), createElementBlock("div", mergeProps({
13079
13079
  class: className.value,
13080
13080
  innerHTML: text.value
13081
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$j);
13081
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
13082
13082
  };
13083
13083
  }
13084
13084
  });
13085
- const _hoisted_1$i = { id: "lupa-search-results-rating" };
13086
- const _hoisted_2$f = ["innerHTML"];
13085
+ const _hoisted_1$j = { id: "lupa-search-results-rating" };
13086
+ const _hoisted_2$g = ["innerHTML"];
13087
13087
  const _hoisted_3$a = { class: "lupa-ratings" };
13088
13088
  const _hoisted_4$6 = ["href"];
13089
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
13089
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
13090
13090
  __name: "SearchResultsProductSingleStarRating",
13091
13091
  props: {
13092
13092
  item: {},
@@ -13114,11 +13114,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13114
13114
  return RATING_STAR_HTML;
13115
13115
  });
13116
13116
  return (_ctx, _cache) => {
13117
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
13117
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
13118
13118
  createBaseVNode("div", {
13119
13119
  innerHTML: star.value,
13120
13120
  class: "lupa-rating lupa-rating-highlighted"
13121
- }, null, 8, _hoisted_2$f),
13121
+ }, null, 8, _hoisted_2$g),
13122
13122
  createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
13123
13123
  createBaseVNode("a", {
13124
13124
  href: ratingLink.value,
@@ -13130,19 +13130,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13130
13130
  });
13131
13131
  const __default__ = {
13132
13132
  components: {
13133
- SearchResultsProductImage: _sfc_main$t,
13134
- SearchResultsProductTitle: _sfc_main$s,
13135
- SearchResultsProductDescription: _sfc_main$r,
13136
- SearchResultsProductRating: _sfc_main$q,
13137
- SearchResultsProductRegularPrice: _sfc_main$p,
13138
- SearchResultsProductPrice: _sfc_main$o,
13139
- SearchResultsProductAddToCart: _sfc_main$n,
13140
- SearchResultsProductCustom: _sfc_main$m,
13141
- SearchResultsProductCustomHtmlElement: _sfc_main$l,
13142
- SearchResultsProductSingleStarRating: _sfc_main$k
13143
- }
13144
- };
13145
- const _sfc_main$j = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13133
+ SearchResultsProductImage: _sfc_main$u,
13134
+ SearchResultsProductTitle: _sfc_main$t,
13135
+ SearchResultsProductDescription: _sfc_main$s,
13136
+ SearchResultsProductRating: _sfc_main$r,
13137
+ SearchResultsProductRegularPrice: _sfc_main$q,
13138
+ SearchResultsProductPrice: _sfc_main$p,
13139
+ SearchResultsProductAddToCart: _sfc_main$o,
13140
+ SearchResultsProductCustom: _sfc_main$n,
13141
+ SearchResultsProductCustomHtmlElement: _sfc_main$m,
13142
+ SearchResultsProductSingleStarRating: _sfc_main$l
13143
+ }
13144
+ };
13145
+ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13146
13146
  __name: "SearchResultsProductCardElement",
13147
13147
  props: {
13148
13148
  item: {},
@@ -13212,13 +13212,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13212
13212
  };
13213
13213
  }
13214
13214
  }));
13215
- const _hoisted_1$h = ["href"];
13216
- const _hoisted_2$e = {
13215
+ const _hoisted_1$i = ["href"];
13216
+ const _hoisted_2$f = {
13217
13217
  key: 0,
13218
13218
  class: "lupa-out-of-stock"
13219
13219
  };
13220
13220
  const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
13221
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
13221
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13222
13222
  __name: "SearchResultsProductCard",
13223
13223
  props: {
13224
13224
  product: {},
@@ -13363,7 +13363,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13363
13363
  class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
13364
13364
  onClick: handleClick
13365
13365
  }, [
13366
- createVNode(_sfc_main$u, { options: badgesOptions.value }, null, 8, ["options"]),
13366
+ createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
13367
13367
  createBaseVNode("div", {
13368
13368
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
13369
13369
  }, [
@@ -13373,7 +13373,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13373
13373
  onClick: handleNavigation
13374
13374
  }, [
13375
13375
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
13376
- return openBlock(), createBlock(_sfc_main$j, {
13376
+ return openBlock(), createBlock(_sfc_main$k, {
13377
13377
  class: "lupa-search-results-product-element",
13378
13378
  item: _ctx.product,
13379
13379
  element,
@@ -13383,16 +13383,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13383
13383
  link: link.value
13384
13384
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
13385
13385
  }), 128)),
13386
- createVNode(_sfc_main$u, {
13386
+ createVNode(_sfc_main$v, {
13387
13387
  options: badgesOptions.value,
13388
13388
  position: "image",
13389
13389
  class: "lupa-image-badges"
13390
13390
  }, null, 8, ["options"]),
13391
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$e, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13392
- ], 8, _hoisted_1$h),
13391
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13392
+ ], 8, _hoisted_1$i),
13393
13393
  createBaseVNode("div", _hoisted_3$9, [
13394
13394
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
13395
- return openBlock(), createBlock(_sfc_main$j, {
13395
+ return openBlock(), createBlock(_sfc_main$k, {
13396
13396
  class: "lupa-search-results-product-element",
13397
13397
  item: _ctx.product,
13398
13398
  element,
@@ -13410,7 +13410,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13410
13410
  class: normalizeClass("lupa-element-group-" + group)
13411
13411
  }, [
13412
13412
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
13413
- return openBlock(), createBlock(_sfc_main$j, {
13413
+ return openBlock(), createBlock(_sfc_main$k, {
13414
13414
  class: "lupa-search-results-product-element",
13415
13415
  item: _ctx.product,
13416
13416
  element,
@@ -13428,11 +13428,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13428
13428
  };
13429
13429
  }
13430
13430
  });
13431
- const _hoisted_1$g = {
13431
+ const _hoisted_1$h = {
13432
13432
  id: "lupa-search-results-similar-queries",
13433
13433
  "data-cy": "lupa-search-results-similar-queries"
13434
13434
  };
13435
- const _hoisted_2$d = { class: "lupa-similar-queries-label" };
13435
+ const _hoisted_2$e = { class: "lupa-similar-queries-label" };
13436
13436
  const _hoisted_3$8 = {
13437
13437
  class: "lupa-similar-query-label",
13438
13438
  "data-cy": "lupa-similar-query-label"
@@ -13444,7 +13444,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13444
13444
  class: "lupa-products",
13445
13445
  "data-cy": "lupa-products"
13446
13446
  };
13447
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
13447
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13448
13448
  __name: "SearchResultsSimilarQueries",
13449
13449
  props: {
13450
13450
  labels: {},
@@ -13474,8 +13474,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13474
13474
  paramsStore.goToResults({ searchText, facet });
13475
13475
  };
13476
13476
  return (_ctx, _cache) => {
13477
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
13478
- createBaseVNode("div", _hoisted_2$d, toDisplayString(_ctx.labels.similarQueries), 1),
13477
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
13478
+ createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarQueries), 1),
13479
13479
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
13480
13480
  return openBlock(), createElementBlock("div", { key: index }, [
13481
13481
  createBaseVNode("div", _hoisted_3$8, [
@@ -13494,7 +13494,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13494
13494
  ]),
13495
13495
  createBaseVNode("div", _hoisted_7$1, [
13496
13496
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
13497
- return openBlock(), createBlock(_sfc_main$i, {
13497
+ return openBlock(), createBlock(_sfc_main$j, {
13498
13498
  style: normalizeStyle(_ctx.columnSize),
13499
13499
  key: getDocumentKey(index2, product),
13500
13500
  product,
@@ -13508,15 +13508,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13508
13508
  };
13509
13509
  }
13510
13510
  });
13511
- const _hoisted_1$f = {
13511
+ const _hoisted_1$g = {
13512
13512
  key: 0,
13513
13513
  class: "lupa-results-additional-panel"
13514
13514
  };
13515
- const _hoisted_2$c = {
13515
+ const _hoisted_2$d = {
13516
13516
  class: "lupa-results-additional-panel-items",
13517
13517
  "data-cy": "lupa-results-additional-panel-items"
13518
13518
  };
13519
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
13519
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
13520
13520
  __name: "AdditionalPanel",
13521
13521
  props: {
13522
13522
  panel: {},
@@ -13588,10 +13588,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13588
13588
  handleQueryChange();
13589
13589
  });
13590
13590
  return (_ctx, _cache) => {
13591
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
13592
- createBaseVNode("div", _hoisted_2$c, [
13591
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
13592
+ createBaseVNode("div", _hoisted_2$d, [
13593
13593
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
13594
- return openBlock(), createBlock(_sfc_main$i, {
13594
+ return openBlock(), createBlock(_sfc_main$j, {
13595
13595
  key: index,
13596
13596
  product: item,
13597
13597
  options: _ctx.panel,
@@ -13609,11 +13609,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13609
13609
  };
13610
13610
  }
13611
13611
  });
13612
- const _hoisted_1$e = {
13612
+ const _hoisted_1$f = {
13613
13613
  key: 0,
13614
13614
  class: "lupa-results-additional-panels"
13615
13615
  };
13616
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
13616
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
13617
13617
  __name: "AdditionalPanels",
13618
13618
  props: {
13619
13619
  options: {},
@@ -13630,9 +13630,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13630
13630
  return locationPanels.value.length > 0;
13631
13631
  });
13632
13632
  return (_ctx, _cache) => {
13633
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
13633
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
13634
13634
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
13635
- return openBlock(), createBlock(_sfc_main$g, {
13635
+ return openBlock(), createBlock(_sfc_main$h, {
13636
13636
  key: panel.queryKey,
13637
13637
  panel,
13638
13638
  options: _ctx.sdkOptions
@@ -13649,21 +13649,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13649
13649
  }
13650
13650
  return target;
13651
13651
  };
13652
- const _sfc_main$e = {};
13653
- const _hoisted_1$d = { class: "lupa-spinner-wrapper" };
13654
- const _hoisted_2$b = { class: "lupa-spinner" };
13652
+ const _sfc_main$f = {};
13653
+ const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
13654
+ const _hoisted_2$c = { class: "lupa-spinner" };
13655
13655
  function _sfc_render(_ctx, _cache) {
13656
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
13657
- createBaseVNode("div", _hoisted_2$b, [
13656
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
13657
+ createBaseVNode("div", _hoisted_2$c, [
13658
13658
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
13659
13659
  return createBaseVNode("div", { key: x });
13660
13660
  }), 64))
13661
13661
  ])
13662
13662
  ]);
13663
13663
  }
13664
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render]]);
13665
- const _hoisted_1$c = { id: "lupa-search-results-products" };
13666
- const _hoisted_2$a = {
13664
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
13665
+ const _hoisted_1$d = { id: "lupa-search-results-products" };
13666
+ const _hoisted_2$b = {
13667
13667
  class: "lupa-products",
13668
13668
  "data-cy": "lupa-products"
13669
13669
  };
@@ -13678,7 +13678,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13678
13678
  "data-cy": "lupa-no-results"
13679
13679
  };
13680
13680
  const _hoisted_5$3 = { key: 4 };
13681
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
13681
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13682
13682
  __name: "SearchResultsProducts",
13683
13683
  props: {
13684
13684
  options: {},
@@ -13769,23 +13769,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13769
13769
  };
13770
13770
  return (_ctx, _cache) => {
13771
13771
  var _a;
13772
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
13772
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
13773
13773
  unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
13774
13774
  key: 0,
13775
13775
  class: "lupa-loader"
13776
13776
  })) : createCommentVNode("", true),
13777
13777
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
13778
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
13778
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
13779
13779
  key: 0,
13780
13780
  options: (_a = _ctx.options.filters) != null ? _a : {}
13781
13781
  }, null, 8, ["options"])) : createCommentVNode("", true),
13782
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
13782
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
13783
13783
  key: 1,
13784
13784
  class: "lupa-toolbar-mobile",
13785
13785
  options: _ctx.options,
13786
13786
  "pagination-location": "top"
13787
13787
  }, null, 8, ["options"])) : createCommentVNode("", true),
13788
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$T, {
13788
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$U, {
13789
13789
  key: 2,
13790
13790
  class: normalizeClass(currentFiltersClass.value),
13791
13791
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -13793,18 +13793,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13793
13793
  expandable: !desktopFiltersExpanded.value
13794
13794
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
13795
13795
  ], 64)) : createCommentVNode("", true),
13796
- createVNode(_sfc_main$f, {
13796
+ createVNode(_sfc_main$g, {
13797
13797
  options: _ctx.options,
13798
13798
  location: "top",
13799
13799
  sdkOptions: _ctx.options.options
13800
13800
  }, null, 8, ["options", "sdkOptions"]),
13801
13801
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
13802
- createVNode(_sfc_main$A, {
13802
+ createVNode(_sfc_main$B, {
13803
13803
  class: "lupa-toolbar-top",
13804
13804
  options: _ctx.options,
13805
13805
  "pagination-location": "top"
13806
13806
  }, null, 8, ["options"]),
13807
- createBaseVNode("div", _hoisted_2$a, [
13807
+ createBaseVNode("div", _hoisted_2$b, [
13808
13808
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
13809
13809
  return renderSlot(_ctx.$slots, "productCard", {
13810
13810
  style: normalizeStyle(columnSize.value),
@@ -13813,7 +13813,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13813
13813
  options: productCardOptions.value
13814
13814
  });
13815
13815
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
13816
- return openBlock(), createBlock(_sfc_main$i, {
13816
+ return openBlock(), createBlock(_sfc_main$j, {
13817
13817
  style: normalizeStyle(columnSize.value),
13818
13818
  key: getProductKeyAction(index, product),
13819
13819
  product,
@@ -13829,12 +13829,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13829
13829
  onClick: goToFirstPage
13830
13830
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
13831
13831
  ])) : createCommentVNode("", true),
13832
- createVNode(_sfc_main$A, {
13832
+ createVNode(_sfc_main$B, {
13833
13833
  class: "lupa-toolbar-bottom",
13834
13834
  options: _ctx.options,
13835
13835
  "pagination-location": "bottom"
13836
13836
  }, null, 8, ["options"]),
13837
- createVNode(_sfc_main$f, {
13837
+ createVNode(_sfc_main$g, {
13838
13838
  options: _ctx.options,
13839
13839
  location: "bottom",
13840
13840
  sdkOptions: _ctx.options.options
@@ -13844,7 +13844,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13844
13844
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
13845
13845
  ])) : createCommentVNode("", true),
13846
13846
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
13847
- createVNode(_sfc_main$h, {
13847
+ createVNode(_sfc_main$i, {
13848
13848
  labels: similarQueriesLabels.value,
13849
13849
  columnSize: columnSize.value,
13850
13850
  productCardOptions: productCardOptions.value
@@ -13855,13 +13855,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13855
13855
  };
13856
13856
  }
13857
13857
  });
13858
- const _hoisted_1$b = { class: "lupa-top-mobile-filter-wrapper" };
13859
- const _hoisted_2$9 = {
13858
+ const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
13859
+ const _hoisted_2$a = {
13860
13860
  key: 0,
13861
13861
  class: "lupa-category-back"
13862
13862
  };
13863
13863
  const _hoisted_3$6 = ["href"];
13864
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
13864
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13865
13865
  __name: "CategoryTopFilters",
13866
13866
  props: {
13867
13867
  options: {}
@@ -13893,15 +13893,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13893
13893
  return openBlock(), createElementBlock("div", {
13894
13894
  class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
13895
13895
  }, [
13896
- createBaseVNode("div", _hoisted_1$b, [
13897
- hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
13896
+ createBaseVNode("div", _hoisted_1$c, [
13897
+ hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
13898
13898
  createBaseVNode("a", {
13899
13899
  "data-cy": "lupa-category-back",
13900
13900
  href: backUrlLink.value,
13901
13901
  onClick: handleNavigationBack
13902
13902
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
13903
13903
  ])) : createCommentVNode("", true),
13904
- createVNode(_sfc_main$A, {
13904
+ createVNode(_sfc_main$B, {
13905
13905
  class: "lupa-toolbar-mobile",
13906
13906
  "pagination-location": "top",
13907
13907
  options: _ctx.options
@@ -13911,18 +13911,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13911
13911
  };
13912
13912
  }
13913
13913
  });
13914
- const _hoisted_1$a = {
13914
+ const _hoisted_1$b = {
13915
13915
  key: 0,
13916
13916
  class: "lupa-container-title-summary-mobile"
13917
13917
  };
13918
- const _hoisted_2$8 = {
13918
+ const _hoisted_2$9 = {
13919
13919
  key: 4,
13920
13920
  id: "lupa-search-results",
13921
13921
  class: "top-layout-wrapper"
13922
13922
  };
13923
13923
  const _hoisted_3$5 = { class: "search-content" };
13924
13924
  const _hoisted_4$3 = { id: "lupa-search-results" };
13925
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
13925
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13926
13926
  __name: "SearchResults",
13927
13927
  props: {
13928
13928
  options: {},
@@ -14111,40 +14111,40 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14111
14111
  return openBlock(), createElementBlock("div", {
14112
14112
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
14113
14113
  }, [
14114
- _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14115
- createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14116
- createVNode(_sfc_main$V, {
14114
+ _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
14115
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14116
+ createVNode(_sfc_main$W, {
14117
14117
  "show-summary": true,
14118
14118
  options: _ctx.options,
14119
14119
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
14120
14120
  }, null, 8, ["options", "is-product-list"])
14121
14121
  ])) : createCommentVNode("", true),
14122
- isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$c, {
14122
+ isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$d, {
14123
14123
  key: 1,
14124
14124
  options: _ctx.options
14125
14125
  }, null, 8, ["options"])) : createCommentVNode("", true),
14126
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
14126
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
14127
14127
  key: 2,
14128
14128
  options: _ctx.options.filters
14129
14129
  }, null, 8, ["options"])) : createCommentVNode("", true),
14130
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
14130
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
14131
14131
  key: 3,
14132
14132
  breadcrumbs: _ctx.options.breadcrumbs
14133
14133
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
14134
- isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
14135
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
14134
+ isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
14135
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
14136
14136
  key: 0,
14137
14137
  options: (_b = _ctx.options.filters) != null ? _b : {},
14138
14138
  ref_key: "searchResultsFilters",
14139
14139
  ref: searchResultsFilters
14140
14140
  }, null, 8, ["options"])) : createCommentVNode("", true),
14141
14141
  createBaseVNode("div", _hoisted_3$5, [
14142
- createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14143
- createVNode(_sfc_main$V, {
14142
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14143
+ createVNode(_sfc_main$W, {
14144
14144
  options: _ctx.options,
14145
14145
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
14146
14146
  }, null, 8, ["options", "is-product-list"]),
14147
- createVNode(_sfc_main$d, {
14147
+ createVNode(_sfc_main$e, {
14148
14148
  options: _ctx.options,
14149
14149
  ssr: ssrEnabled.value
14150
14150
  }, {
@@ -14155,19 +14155,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14155
14155
  }, 8, ["options", "ssr"])
14156
14156
  ])
14157
14157
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
14158
- createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14159
- createVNode(_sfc_main$V, {
14158
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14159
+ createVNode(_sfc_main$W, {
14160
14160
  options: _ctx.options,
14161
14161
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
14162
14162
  }, null, 8, ["options", "is-product-list"]),
14163
14163
  createBaseVNode("div", _hoisted_4$3, [
14164
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
14164
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
14165
14165
  key: 0,
14166
14166
  options: (_e = _ctx.options.filters) != null ? _e : {},
14167
14167
  ref_key: "searchResultsFilters",
14168
14168
  ref: searchResultsFilters
14169
14169
  }, null, 8, ["options"])) : createCommentVNode("", true),
14170
- createVNode(_sfc_main$d, {
14170
+ createVNode(_sfc_main$e, {
14171
14171
  options: _ctx.options,
14172
14172
  ssr: ssrEnabled.value
14173
14173
  }, createSlots({
@@ -14190,12 +14190,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14190
14190
  };
14191
14191
  }
14192
14192
  });
14193
- const _hoisted_1$9 = {
14193
+ const _hoisted_1$a = {
14194
14194
  key: 0,
14195
14195
  class: "lupa-category-overview"
14196
14196
  };
14197
- const _hoisted_2$7 = ["innerHTML"];
14198
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
14197
+ const _hoisted_2$8 = ["innerHTML"];
14198
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
14199
14199
  __name: "CategoryDescription",
14200
14200
  props: {
14201
14201
  options: {}
@@ -14211,16 +14211,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14211
14211
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
14212
14212
  });
14213
14213
  return (_ctx, _cache) => {
14214
- return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
14214
+ return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14215
14215
  createBaseVNode("div", {
14216
14216
  class: "lupa-category-description",
14217
14217
  innerHTML: description.value
14218
- }, null, 8, _hoisted_2$7)
14218
+ }, null, 8, _hoisted_2$8)
14219
14219
  ])) : createCommentVNode("", true);
14220
14220
  };
14221
14221
  }
14222
14222
  });
14223
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
14223
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
14224
14224
  __name: "ProductList",
14225
14225
  props: {
14226
14226
  options: {}
@@ -14242,7 +14242,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14242
14242
  __expose({ fetch: fetch2 });
14243
14243
  return (_ctx, _cache) => {
14244
14244
  return openBlock(), createElementBlock("div", null, [
14245
- createVNode(_sfc_main$b, {
14245
+ createVNode(_sfc_main$c, {
14246
14246
  options: componentOptions.value,
14247
14247
  "initial-filters": _ctx.options.initialFilters,
14248
14248
  "is-product-list": true,
@@ -14250,7 +14250,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14250
14250
  ref: searchResults2
14251
14251
  }, {
14252
14252
  default: withCtx(() => [
14253
- createVNode(_sfc_main$a, { options: _ctx.options }, null, 8, ["options"])
14253
+ createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
14254
14254
  ]),
14255
14255
  _: 1
14256
14256
  }, 8, ["options", "initial-filters"])
@@ -19741,9 +19741,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19741
19741
  }).call(commonjsGlobal$1);
19742
19742
  })(lodash$1, lodash$1.exports);
19743
19743
  var lodashExports$1 = lodash$1.exports;
19744
- const _hoisted_1$8 = ["onClick"];
19745
- const _hoisted_2$6 = { class: "lupa-search-box-container" };
19746
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
19744
+ const _hoisted_1$9 = ["onClick"];
19745
+ const _hoisted_2$7 = { class: "lupa-search-box-container" };
19746
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
19747
19747
  __name: "SearchContainer",
19748
19748
  props: {
19749
19749
  options: {}
@@ -19788,8 +19788,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19788
19788
  class: "lupa-search-container",
19789
19789
  onClick: withModifiers(innerClick, ["stop"])
19790
19790
  }, [
19791
- createBaseVNode("div", _hoisted_2$6, [
19792
- createVNode(_sfc_main$Y, {
19791
+ createBaseVNode("div", _hoisted_2$7, [
19792
+ createVNode(_sfc_main$Z, {
19793
19793
  options: fullSearchBoxOptions.value,
19794
19794
  "is-search-container": true,
19795
19795
  ref_key: "searchBox",
@@ -19797,13 +19797,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19797
19797
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
19798
19798
  }, null, 8, ["options"])
19799
19799
  ]),
19800
- createVNode(_sfc_main$b, {
19800
+ createVNode(_sfc_main$c, {
19801
19801
  options: fullSearchResultsOptions.value,
19802
19802
  "is-container": true,
19803
19803
  ref_key: "searchResults",
19804
19804
  ref: searchResults2
19805
19805
  }, null, 8, ["options"])
19806
- ], 8, _hoisted_1$8)
19806
+ ], 8, _hoisted_1$9)
19807
19807
  ]);
19808
19808
  };
19809
19809
  }
@@ -20506,13 +20506,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20506
20506
  };
20507
20507
  }
20508
20508
  });
20509
- const _hoisted_1$7 = { class: "lupa-search-product-recommendations-wrapper" };
20510
- const _hoisted_2$5 = {
20509
+ const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
20510
+ const _hoisted_2$6 = {
20511
20511
  key: 0,
20512
20512
  class: "lupa-recommended-products",
20513
20513
  "data-cy": "lupa-recommended-products"
20514
20514
  };
20515
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
20515
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
20516
20516
  __name: "Recommendations",
20517
20517
  props: {
20518
20518
  options: {}
@@ -20598,8 +20598,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20598
20598
  });
20599
20599
  __expose({ fetch: fetch2 });
20600
20600
  return (_ctx, _cache) => {
20601
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
20602
- !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
20601
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
20602
+ !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
20603
20603
  createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
20604
20604
  addons: withCtx(() => [
20605
20605
  createVNode(unref(Navigation))
@@ -20610,7 +20610,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20610
20610
  key: getProductKeyAction(index, product)
20611
20611
  }, {
20612
20612
  default: withCtx(() => [
20613
- createVNode(_sfc_main$i, {
20613
+ createVNode(_sfc_main$j, {
20614
20614
  product,
20615
20615
  options: _ctx.options,
20616
20616
  "click-tracking-settings": clickTrackingSettings.value
@@ -20627,19 +20627,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20627
20627
  };
20628
20628
  }
20629
20629
  });
20630
- const _hoisted_1$6 = { class: "lupa-chat-spinner" };
20631
- const _hoisted_2$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20630
+ const _hoisted_1$7 = { class: "lupa-chat-spinner" };
20631
+ const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20632
20632
  const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20633
20633
  const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20634
20634
  const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20635
20635
  const _hoisted_6$1 = [
20636
- _hoisted_2$4,
20636
+ _hoisted_2$5,
20637
20637
  _hoisted_3$4,
20638
20638
  _hoisted_4$2,
20639
20639
  _hoisted_5$2
20640
20640
  ];
20641
20641
  const _hoisted_7 = { class: "lupa-chat-spinner-message" };
20642
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
20642
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
20643
20643
  __name: "ChatSpinner",
20644
20644
  props: {
20645
20645
  small: { type: Boolean },
@@ -20647,7 +20647,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20647
20647
  },
20648
20648
  setup(__props) {
20649
20649
  return (_ctx, _cache) => {
20650
- return openBlock(), createElementBlock("section", _hoisted_1$6, [
20650
+ return openBlock(), createElementBlock("section", _hoisted_1$7, [
20651
20651
  createBaseVNode("div", {
20652
20652
  class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
20653
20653
  }, _hoisted_6$1, 2),
@@ -20656,13 +20656,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20656
20656
  };
20657
20657
  }
20658
20658
  });
20659
- const _hoisted_1$5 = { class: "lupa-chat-input-container" };
20660
- const _hoisted_2$3 = { id: "lupa-search-box-input" };
20659
+ const _hoisted_1$6 = { class: "lupa-chat-input-container" };
20660
+ const _hoisted_2$4 = { id: "lupa-search-box-input" };
20661
20661
  const _hoisted_3$3 = {
20662
20662
  key: 0,
20663
20663
  class: "lupa-chat-form-submit"
20664
20664
  };
20665
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20665
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
20666
20666
  __name: "ChatInput",
20667
20667
  props: {
20668
20668
  disabled: { type: Boolean }
@@ -20675,13 +20675,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20675
20675
  inputValue.value = "";
20676
20676
  };
20677
20677
  return (_ctx, _cache) => {
20678
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
20678
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
20679
20679
  createBaseVNode("form", {
20680
20680
  action: "javascript:void(0);",
20681
20681
  class: "chat-input-form",
20682
20682
  onSubmit: submit
20683
20683
  }, [
20684
- createBaseVNode("div", _hoisted_2$3, [
20684
+ createBaseVNode("div", _hoisted_2$4, [
20685
20685
  withDirectives(createBaseVNode("input", {
20686
20686
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
20687
20687
  ref: "mainInput",
@@ -20694,7 +20694,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20694
20694
  [vModelText, inputValue.value]
20695
20695
  ])
20696
20696
  ]),
20697
- !_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$6, {
20697
+ !_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$7, {
20698
20698
  key: 1,
20699
20699
  small: true
20700
20700
  }))
@@ -20823,15 +20823,36 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20823
20823
  }
20824
20824
  return history;
20825
20825
  };
20826
+ const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived) => {
20827
+ var _a;
20828
+ fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20829
+ body: JSON.stringify({ initialQuery, messageHistory }),
20830
+ headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
20831
+ })).then((response) => {
20832
+ const reader = response.body.getReader();
20833
+ return reader.read().then(function processStream({ done, value }) {
20834
+ if (done) {
20835
+ return "";
20836
+ }
20837
+ const result = new TextDecoder("utf-8").decode(value);
20838
+ const sanitezedResult = result.replace("\n", '<div class="br"></div>');
20839
+ onChunkReceived(sanitezedResult);
20840
+ return reader.read().then(processStream);
20841
+ });
20842
+ }).catch((error) => {
20843
+ console.error(`Fetch Error: ${error}`);
20844
+ });
20845
+ };
20826
20846
  const ChatService = {
20827
20847
  suggestSearchChatPhrases,
20828
20848
  suggestPhraseAlternatives,
20829
20849
  suggestSimplifiedPhrases,
20830
20850
  suggestBestProductMatches,
20831
- prepareChatHistory
20851
+ prepareChatHistory,
20852
+ getTextResponseChunkStream
20832
20853
  };
20833
- const _hoisted_1$4 = { class: "lupa-chat-results" };
20834
- const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
20854
+ const _hoisted_1$5 = { class: "lupa-chat-results" };
20855
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20835
20856
  __name: "ChatPhraseProductsList",
20836
20857
  props: {
20837
20858
  options: {},
@@ -20843,9 +20864,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20843
20864
  return getProductKey(`${index}`, product, props.options.idKey);
20844
20865
  };
20845
20866
  return (_ctx, _cache) => {
20846
- return openBlock(), createElementBlock("section", _hoisted_1$4, [
20867
+ return openBlock(), createElementBlock("section", _hoisted_1$5, [
20847
20868
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
20848
- return openBlock(), createBlock(_sfc_main$i, {
20869
+ return openBlock(), createBlock(_sfc_main$j, {
20849
20870
  class: "lupa-chat-product-card",
20850
20871
  key: getProductKeyAction(index, product),
20851
20872
  product,
@@ -20856,8 +20877,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20856
20877
  };
20857
20878
  }
20858
20879
  });
20859
- const _hoisted_1$3 = { class: "lupa-chat-content-entry-phrase" };
20860
- const _hoisted_2$2 = { class: "lupa-chat-phrase-title" };
20880
+ const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
20881
+ const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
20861
20882
  const _hoisted_3$2 = {
20862
20883
  key: 0,
20863
20884
  class: "alert"
@@ -20870,7 +20891,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20870
20891
  const _hoisted_6 = [
20871
20892
  _hoisted_5$1
20872
20893
  ];
20873
- const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
20894
+ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
20874
20895
  __name: "ChatContentEntryPhrase",
20875
20896
  props: {
20876
20897
  options: {},
@@ -20950,20 +20971,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20950
20971
  return phrases != null ? phrases : [];
20951
20972
  });
20952
20973
  return (_ctx, _cache) => {
20953
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
20954
- createBaseVNode("div", _hoisted_2$2, [
20974
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
20975
+ createBaseVNode("div", _hoisted_2$3, [
20955
20976
  createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
20956
20977
  createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
20957
20978
  usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$2, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
20958
20979
  ]),
20959
20980
  createBaseVNode("div", null, [
20960
- createVNode(_sfc_main$4$1, {
20981
+ createVNode(_sfc_main$5, {
20961
20982
  "search-results": searchResults2.value,
20962
20983
  options: _ctx.options.displayOptions
20963
20984
  }, null, 8, ["search-results", "options"])
20964
20985
  ]),
20965
20986
  !loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
20966
- loading.value ? (openBlock(), createBlock(_sfc_main$6, {
20987
+ loading.value ? (openBlock(), createBlock(_sfc_main$7, {
20967
20988
  key: 1,
20968
20989
  message: currentAction.value
20969
20990
  }, null, 8, ["message"])) : createCommentVNode("", true)
@@ -20971,10 +20992,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20971
20992
  };
20972
20993
  }
20973
20994
  });
20974
- const _hoisted_1$2 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
20975
- const _hoisted_2$1 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
20995
+ const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
20996
+ const _hoisted_2$2 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
20976
20997
  const _hoisted_3$1 = { key: 0 };
20977
- const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
20998
+ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
20978
20999
  __name: "ChatContentEntry",
20979
21000
  props: {
20980
21001
  entry: {},
@@ -21039,7 +21060,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21039
21060
  key: phrase,
21040
21061
  class: "lupa-chat-content-entry"
21041
21062
  }, [
21042
- phrase ? (openBlock(), createBlock(_sfc_main$3$1, {
21063
+ phrase ? (openBlock(), createBlock(_sfc_main$4$1, {
21043
21064
  key: 0,
21044
21065
  phrase,
21045
21066
  options: _ctx.options,
@@ -21048,14 +21069,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21048
21069
  ]);
21049
21070
  }), 128))
21050
21071
  ]),
21051
- createBaseVNode("section", _hoisted_1$2, [
21052
- _hoisted_2$1,
21072
+ createBaseVNode("section", _hoisted_1$3, [
21073
+ _hoisted_2$2,
21053
21074
  explanation.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(explanation.value), 1)) : createCommentVNode("", true),
21054
- loading.value ? (openBlock(), createBlock(_sfc_main$6, {
21075
+ loading.value ? (openBlock(), createBlock(_sfc_main$7, {
21055
21076
  key: 1,
21056
21077
  message: "Selecting the best matches for you. This might take a few seconds."
21057
21078
  })) : createCommentVNode("", true),
21058
- bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$4$1, {
21079
+ bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$5, {
21059
21080
  key: 2,
21060
21081
  "search-results": bestMatchProducts.value,
21061
21082
  options: _ctx.options.displayOptions
@@ -21065,6 +21086,39 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21065
21086
  };
21066
21087
  }
21067
21088
  });
21089
+ const _hoisted_1$2 = { class: "lupa-chat-text-response" };
21090
+ const _hoisted_2$1 = ["innerHTML"];
21091
+ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
21092
+ __name: "ChatTextEntry",
21093
+ props: {
21094
+ content: {},
21095
+ options: {},
21096
+ history: {}
21097
+ },
21098
+ setup(__props) {
21099
+ const props = __props;
21100
+ const content = ref("");
21101
+ const processChunk = (chunk) => {
21102
+ content.value += chunk;
21103
+ };
21104
+ onMounted(() => {
21105
+ var _a;
21106
+ ChatService.getTextResponseChunkStream(
21107
+ props.options.sdkOptions,
21108
+ {
21109
+ initialQuery: props.content,
21110
+ messageHistory: (_a = props.history) != null ? _a : []
21111
+ },
21112
+ processChunk
21113
+ );
21114
+ });
21115
+ return (_ctx, _cache) => {
21116
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
21117
+ createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
21118
+ ]);
21119
+ };
21120
+ }
21121
+ });
21068
21122
  const _hoisted_1$1 = { class: "lupa-chat-section-title" };
21069
21123
  const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
21070
21124
  __name: "ChatContentList",
@@ -21082,16 +21136,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21082
21136
  return openBlock(), createElementBlock("div", null, [
21083
21137
  createBaseVNode("ul", null, [
21084
21138
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
21139
+ var _a;
21085
21140
  return openBlock(), createElementBlock("li", {
21086
21141
  key: entry.key
21087
21142
  }, [
21088
21143
  createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
21089
21144
  createVNode(_sfc_main$2$1, {
21145
+ content: entry.userInput,
21146
+ history: _ctx.history,
21147
+ options: _ctx.options
21148
+ }, null, 8, ["content", "history", "options"]),
21149
+ ((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
21150
+ key: 0,
21090
21151
  entry,
21091
21152
  options: _ctx.options,
21092
21153
  history: _ctx.history,
21093
21154
  onLoaded: (items) => bestItemsLoaded(items, entry.key)
21094
- }, null, 8, ["entry", "options", "history", "onLoaded"])
21155
+ }, null, 8, ["entry", "options", "history", "onLoaded"])) : createCommentVNode("", true)
21095
21156
  ]);
21096
21157
  }), 128))
21097
21158
  ])
@@ -21112,7 +21173,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21112
21173
  class: "lupa-chat-spinner-main"
21113
21174
  };
21114
21175
  const _hoisted_5 = { class: "lupasearch-chat-input" };
21115
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
21176
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
21116
21177
  __name: "ChatContainer",
21117
21178
  props: {
21118
21179
  options: {}
@@ -21130,6 +21191,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21130
21191
  }
21131
21192
  try {
21132
21193
  loading.value = true;
21194
+ const key = Date.now().toString();
21195
+ let chatLog = {
21196
+ key,
21197
+ userInput: input,
21198
+ allPhrases: [],
21199
+ suggestedPhrases: []
21200
+ };
21201
+ chatContent.value.push(chatLog);
21133
21202
  const request = {
21134
21203
  userPrompt: input,
21135
21204
  messageHistory: (_a = history.value) != null ? _a : [],
@@ -21144,13 +21213,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21144
21213
  return;
21145
21214
  }
21146
21215
  const validPhrases = phrases.filter((p2) => (p2 == null ? void 0 : p2.trim().length) > 0);
21147
- const chatLog = {
21148
- key: Date.now().toString(),
21149
- userInput: input,
21150
- allPhrases: [...validPhrases],
21151
- suggestedPhrases: phrases
21152
- };
21153
- chatContent.value.push(chatLog);
21216
+ chatContent.value = chatContent.value.map(
21217
+ (c2) => c2.key === key ? __spreadProps2(__spreadValues2({}, c2), {
21218
+ allPhrases: [...validPhrases],
21219
+ suggestedPhrases: phrases
21220
+ }) : c2
21221
+ );
21154
21222
  } finally {
21155
21223
  loading.value = false;
21156
21224
  }
@@ -21171,10 +21239,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21171
21239
  }, null, 8, ["content", "options", "history"])
21172
21240
  ])) : createCommentVNode("", true),
21173
21241
  loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
21174
- createVNode(_sfc_main$6, { message: "Loading initial recommendations... This might take up to 20s" })
21242
+ createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
21175
21243
  ])) : createCommentVNode("", true),
21176
21244
  createBaseVNode("section", _hoisted_5, [
21177
- createVNode(_sfc_main$5, {
21245
+ createVNode(_sfc_main$6, {
21178
21246
  onSubmit: submitChatInput,
21179
21247
  disabled: loading.value
21180
21248
  }, null, 8, ["disabled"])
@@ -26745,7 +26813,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26745
26813
  };
26746
26814
  __expose({ fetch: fetch2 });
26747
26815
  return (_ctx, _cache) => {
26748
- return openBlock(), createBlock(unref(_sfc_main$Y), {
26816
+ return openBlock(), createBlock(unref(_sfc_main$Z), {
26749
26817
  options: fullSearchBoxOptions.value,
26750
26818
  ref_key: "searchBox",
26751
26819
  ref: searchBox2
@@ -26872,7 +26940,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26872
26940
  };
26873
26941
  __expose({ fetch: fetch2 });
26874
26942
  return (_ctx, _cache) => {
26875
- return openBlock(), createBlock(unref(_sfc_main$b), {
26943
+ return openBlock(), createBlock(unref(_sfc_main$c), {
26876
26944
  options: fullSearchResultsOptions.value,
26877
26945
  ref_key: "searchResults",
26878
26946
  ref: searchResults2
@@ -26897,7 +26965,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26897
26965
  };
26898
26966
  __expose({ fetch: fetch2 });
26899
26967
  return (_ctx, _cache) => {
26900
- return openBlock(), createBlock(unref(_sfc_main$9), {
26968
+ return openBlock(), createBlock(unref(_sfc_main$a), {
26901
26969
  options: fullProductListOptions.value,
26902
26970
  ref_key: "productList",
26903
26971
  ref: productList2
@@ -26977,7 +27045,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26977
27045
  __expose({ fetch: fetch2, reloadOptions });
26978
27046
  return (_ctx, _cache) => {
26979
27047
  return openBlock(), createElementBlock("div", null, [
26980
- containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$8), {
27048
+ containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
26981
27049
  key: 0,
26982
27050
  options: containerOptions.value,
26983
27051
  ref_key: "productList",
@@ -27001,7 +27069,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
27001
27069
  };
27002
27070
  __expose({ fetch: fetch2 });
27003
27071
  return (_ctx, _cache) => {
27004
- return openBlock(), createBlock(unref(_sfc_main$7), {
27072
+ return openBlock(), createBlock(unref(_sfc_main$8), {
27005
27073
  options: _ctx.recommendationOptions,
27006
27074
  ref_key: "productRecommendations",
27007
27075
  ref: productRecommendations
@@ -27220,7 +27288,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
27220
27288
  }
27221
27289
  return;
27222
27290
  }
27223
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1i, {
27291
+ const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1j, {
27224
27292
  options
27225
27293
  });
27226
27294
  if (!instance) {