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