@getlupa/client 1.3.9 → 1.4.1

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.
@@ -7536,6 +7536,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7536
7536
  };
7537
7537
  })
7538
7538
  );
7539
+ const hasAnyResults = computed(() => {
7540
+ var _a;
7541
+ return (_a = panelItemCounts.value) == null ? void 0 : _a.some((p2) => p2.count > 0);
7542
+ });
7539
7543
  const totalCount = computed(
7540
7544
  () => {
7541
7545
  var _a, _b;
@@ -7588,6 +7592,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7588
7592
  [queryKey]: flattenSuggestions(result.items, (_a = publicQuery.searchText) != null ? _a : "")
7589
7593
  });
7590
7594
  inputValue.value = publicQuery.searchText;
7595
+ emitSearchResultsCallback();
7591
7596
  return {
7592
7597
  suggestions: result.items
7593
7598
  };
@@ -7599,6 +7604,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7599
7604
  return { suggestions: void 0 };
7600
7605
  }
7601
7606
  });
7607
+ const emitSearchResultsCallback = () => {
7608
+ var _a;
7609
+ if ((_a = options.value.callbacks) == null ? void 0 : _a.onSearchBoxResults) {
7610
+ options.value.callbacks.onSearchBoxResults({
7611
+ hasAnyResults: hasAnyResults.value,
7612
+ docResults: docResults.value,
7613
+ suggestionResults: suggestionResults.value,
7614
+ totalCount: totalCount.value,
7615
+ panelItemCounts: panelItemCounts.value,
7616
+ inputValue: inputValue.value
7617
+ });
7618
+ }
7619
+ };
7602
7620
  const queryDocuments = (_0) => __async(void 0, [_0], function* ({
7603
7621
  queryKey,
7604
7622
  publicQuery,
@@ -7612,6 +7630,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7612
7630
  }
7613
7631
  highlightChange({ action: "clear" });
7614
7632
  docResults.value = __spreadProps2(__spreadValues2({}, docResults.value), { [queryKey]: result });
7633
+ emitSearchResultsCallback();
7615
7634
  return { queryKey, result };
7616
7635
  } catch (err) {
7617
7636
  console.error(err);
@@ -7648,6 +7667,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7648
7667
  totalCount,
7649
7668
  highlightedItem,
7650
7669
  highlightedDocument,
7670
+ hasAnyResults,
7651
7671
  querySuggestions,
7652
7672
  queryDocuments,
7653
7673
  highlightChange,
@@ -7656,8 +7676,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7656
7676
  resetHighlightIndex
7657
7677
  };
7658
7678
  });
7659
- const _hoisted_1$19 = { id: "lupa-search-box-input-container" };
7660
- const _hoisted_2$N = { class: "lupa-input-clear" };
7679
+ const _hoisted_1$1b = { id: "lupa-search-box-input-container" };
7680
+ const _hoisted_2$O = { class: "lupa-input-clear" };
7661
7681
  const _hoisted_3$A = { id: "lupa-search-box-input" };
7662
7682
  const _hoisted_4$r = ["value"];
7663
7683
  const _hoisted_5$f = ["placeholder"];
@@ -7665,7 +7685,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7665
7685
  key: 0,
7666
7686
  class: "lupa-close-label"
7667
7687
  };
7668
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7688
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
7669
7689
  __name: "SearchBoxInput",
7670
7690
  props: {
7671
7691
  options: {},
@@ -7742,8 +7762,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7742
7762
  };
7743
7763
  __expose({ focus });
7744
7764
  return (_ctx, _cache) => {
7745
- return openBlock(), createElementBlock("div", _hoisted_1$19, [
7746
- createBaseVNode("div", _hoisted_2$N, [
7765
+ return openBlock(), createElementBlock("div", _hoisted_1$1b, [
7766
+ createBaseVNode("div", _hoisted_2$O, [
7747
7767
  createBaseVNode("div", {
7748
7768
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
7749
7769
  onClick: clear2
@@ -7782,7 +7802,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7782
7802
  };
7783
7803
  }
7784
7804
  });
7785
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7805
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
7786
7806
  __name: "SearchBoxMoreResults",
7787
7807
  props: {
7788
7808
  labels: {},
@@ -7814,9 +7834,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7814
7834
  };
7815
7835
  }
7816
7836
  });
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({
7837
+ const _hoisted_1$1a = { class: "lupa-search-box-history-item" };
7838
+ const _hoisted_2$N = { class: "lupa-search-box-history-item-content" };
7839
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
7820
7840
  __name: "SearchBoxHistoryItem",
7821
7841
  props: {
7822
7842
  item: {},
@@ -7832,8 +7852,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7832
7852
  emit2("click", { query: props.item });
7833
7853
  };
7834
7854
  return (_ctx, _cache) => {
7835
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
7836
- createBaseVNode("div", _hoisted_2$M, [
7855
+ return openBlock(), createElementBlock("div", _hoisted_1$1a, [
7856
+ createBaseVNode("div", _hoisted_2$N, [
7837
7857
  createBaseVNode("div", {
7838
7858
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
7839
7859
  onClick: click2
@@ -7847,11 +7867,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7847
7867
  };
7848
7868
  }
7849
7869
  });
7850
- const _hoisted_1$17 = {
7870
+ const _hoisted_1$19 = {
7851
7871
  key: 0,
7852
7872
  class: "lupa-search-box-history-panel"
7853
7873
  };
7854
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7874
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7855
7875
  __name: "SearchBoxHistoryPanel",
7856
7876
  props: {
7857
7877
  options: {}
@@ -7892,9 +7912,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7892
7912
  }
7893
7913
  };
7894
7914
  return (_ctx, _cache) => {
7895
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$17, [
7915
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$19, [
7896
7916
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
7897
- return openBlock(), createBlock(_sfc_main$1f, {
7917
+ return openBlock(), createBlock(_sfc_main$1h, {
7898
7918
  key: item,
7899
7919
  item,
7900
7920
  highlighted: index === highlightIndex.value,
@@ -7910,8 +7930,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7910
7930
  };
7911
7931
  }
7912
7932
  });
7913
- const _hoisted_1$16 = ["innerHTML"];
7914
- const _hoisted_2$L = {
7933
+ const _hoisted_1$18 = { class: "lupa-search-box-no-results" };
7934
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7935
+ __name: "SearchBoxNoResults",
7936
+ props: {
7937
+ labels: {}
7938
+ },
7939
+ setup(__props) {
7940
+ return (_ctx, _cache) => {
7941
+ return openBlock(), createElementBlock("p", _hoisted_1$18, toDisplayString(_ctx.labels.noResults), 1);
7942
+ };
7943
+ }
7944
+ });
7945
+ const _hoisted_1$17 = ["innerHTML"];
7946
+ const _hoisted_2$M = {
7915
7947
  key: 1,
7916
7948
  "data-cy": "lupa-suggestion-value",
7917
7949
  class: "lupa-suggestion-value"
@@ -7929,7 +7961,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7929
7961
  class: "lupa-suggestion-facet-value",
7930
7962
  "data-cy": "lupa-suggestion-facet-value"
7931
7963
  };
7932
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
7964
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
7933
7965
  __name: "SearchBoxSuggestion",
7934
7966
  props: {
7935
7967
  suggestion: {},
@@ -7965,7 +7997,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7965
7997
  class: "lupa-suggestion-value",
7966
7998
  "data-cy": "lupa-suggestion-value",
7967
7999
  innerHTML: _ctx.suggestion.displayHighlight
7968
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(_ctx.suggestion.display), 1)),
8000
+ }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(_ctx.suggestion.display), 1)),
7969
8001
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
7970
8002
  createBaseVNode("span", _hoisted_4$q, toDisplayString(facetLabel.value), 1),
7971
8003
  createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -7974,11 +8006,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7974
8006
  };
7975
8007
  }
7976
8008
  });
7977
- const _hoisted_1$15 = {
8009
+ const _hoisted_1$16 = {
7978
8010
  id: "lupa-search-box-suggestions",
7979
8011
  "data-cy": "lupa-search-box-suggestions"
7980
8012
  };
7981
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8013
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
7982
8014
  __name: "SearchBoxSuggestions",
7983
8015
  props: {
7984
8016
  items: {},
@@ -8038,9 +8070,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8038
8070
  });
8039
8071
  });
8040
8072
  return (_ctx, _cache) => {
8041
- return openBlock(), createElementBlock("div", _hoisted_1$15, [
8073
+ return openBlock(), createElementBlock("div", _hoisted_1$16, [
8042
8074
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8043
- return openBlock(), createBlock(_sfc_main$1d, {
8075
+ return openBlock(), createBlock(_sfc_main$1e, {
8044
8076
  key: getSuggestionKey(item),
8045
8077
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8046
8078
  suggestion: item,
@@ -8068,7 +8100,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8068
8100
  }, timeout);
8069
8101
  };
8070
8102
  };
8071
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8103
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
8072
8104
  __name: "SearchBoxSuggestionsWrapper",
8073
8105
  props: {
8074
8106
  panel: {},
@@ -8109,7 +8141,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8109
8141
  };
8110
8142
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8111
8143
  return (_ctx, _cache) => {
8112
- return openBlock(), createBlock(_sfc_main$1c, {
8144
+ return openBlock(), createBlock(_sfc_main$1d, {
8113
8145
  items: searchResult.value,
8114
8146
  highlight: _ctx.panel.highlight,
8115
8147
  queryKey: _ctx.panel.queryKey,
@@ -8187,8 +8219,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8187
8219
  });
8188
8220
  return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
8189
8221
  });
8190
- const _hoisted_1$14 = ["src"];
8191
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8222
+ const _hoisted_1$15 = ["src"];
8223
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
8192
8224
  __name: "ProductImage",
8193
8225
  props: {
8194
8226
  item: {},
@@ -8236,12 +8268,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8236
8268
  class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
8237
8269
  src: finalUrl.value,
8238
8270
  onError: replaceWithPlaceholder
8239
- }, null, 42, _hoisted_1$14)
8271
+ }, null, 42, _hoisted_1$15)
8240
8272
  ], 2);
8241
8273
  };
8242
8274
  }
8243
8275
  });
8244
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8276
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
8245
8277
  __name: "SearchBoxProductImage",
8246
8278
  props: {
8247
8279
  item: {},
@@ -8249,7 +8281,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8249
8281
  },
8250
8282
  setup(__props) {
8251
8283
  return (_ctx, _cache) => {
8252
- return openBlock(), createBlock(_sfc_main$1a, {
8284
+ return openBlock(), createBlock(_sfc_main$1b, {
8253
8285
  item: _ctx.item,
8254
8286
  options: _ctx.options,
8255
8287
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -8258,12 +8290,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8258
8290
  };
8259
8291
  }
8260
8292
  });
8261
- const _hoisted_1$13 = ["innerHTML"];
8262
- const _hoisted_2$K = {
8293
+ const _hoisted_1$14 = ["innerHTML"];
8294
+ const _hoisted_2$L = {
8263
8295
  key: 1,
8264
8296
  class: "lupa-search-box-product-title"
8265
8297
  };
8266
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8298
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
8267
8299
  __name: "SearchBoxProductTitle",
8268
8300
  props: {
8269
8301
  item: {},
@@ -8283,18 +8315,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8283
8315
  key: 0,
8284
8316
  class: "lupa-search-box-product-title",
8285
8317
  innerHTML: title.value
8286
- }, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, [
8318
+ }, null, 8, _hoisted_1$14)) : (openBlock(), createElementBlock("div", _hoisted_2$L, [
8287
8319
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
8288
8320
  ]));
8289
8321
  };
8290
8322
  }
8291
8323
  });
8292
- const _hoisted_1$12 = ["innerHTML"];
8293
- const _hoisted_2$J = {
8324
+ const _hoisted_1$13 = ["innerHTML"];
8325
+ const _hoisted_2$K = {
8294
8326
  key: 1,
8295
8327
  class: "lupa-search-box-product-description"
8296
8328
  };
8297
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8329
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
8298
8330
  __name: "SearchBoxProductDescription",
8299
8331
  props: {
8300
8332
  item: {},
@@ -8314,12 +8346,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8314
8346
  key: 0,
8315
8347
  class: "lupa-search-box-product-description",
8316
8348
  innerHTML: description.value
8317
- }, null, 8, _hoisted_1$12)) : (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(description.value), 1));
8349
+ }, null, 8, _hoisted_1$13)) : (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(description.value), 1));
8318
8350
  };
8319
8351
  }
8320
8352
  });
8321
- const _hoisted_1$11 = { class: "lupa-search-box-product-price" };
8322
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8353
+ const _hoisted_1$12 = { class: "lupa-search-box-product-price" };
8354
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
8323
8355
  __name: "SearchBoxProductPrice",
8324
8356
  props: {
8325
8357
  item: {},
@@ -8337,14 +8369,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8337
8369
  );
8338
8370
  });
8339
8371
  return (_ctx, _cache) => {
8340
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
8372
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
8341
8373
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
8342
8374
  ]);
8343
8375
  };
8344
8376
  }
8345
8377
  });
8346
- const _hoisted_1$10 = { class: "lupa-search-box-product-regular-price" };
8347
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8378
+ const _hoisted_1$11 = { class: "lupa-search-box-product-regular-price" };
8379
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8348
8380
  __name: "SearchBoxProductRegularPrice",
8349
8381
  props: {
8350
8382
  item: {},
@@ -8362,16 +8394,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8362
8394
  );
8363
8395
  });
8364
8396
  return (_ctx, _cache) => {
8365
- return openBlock(), createElementBlock("div", _hoisted_1$10, toDisplayString(price.value), 1);
8397
+ return openBlock(), createElementBlock("div", _hoisted_1$11, toDisplayString(price.value), 1);
8366
8398
  };
8367
8399
  }
8368
8400
  });
8369
- const _hoisted_1$$ = ["innerHTML"];
8370
- const _hoisted_2$I = { key: 0 };
8401
+ const _hoisted_1$10 = ["innerHTML"];
8402
+ const _hoisted_2$J = { key: 0 };
8371
8403
  const _hoisted_3$y = { key: 1 };
8372
8404
  const _hoisted_4$p = { class: "lupa-search-box-custom-label" };
8373
8405
  const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
8374
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8406
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8375
8407
  __name: "SearchBoxProductCustom",
8376
8408
  props: {
8377
8409
  item: {},
@@ -8397,11 +8429,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8397
8429
  key: 0,
8398
8430
  class: [className.value, "lupa-search-box-product-custom"],
8399
8431
  innerHTML: text.value
8400
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$)) : (openBlock(), createElementBlock("div", mergeProps({
8432
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$10)) : (openBlock(), createElementBlock("div", mergeProps({
8401
8433
  key: 1,
8402
8434
  class: [className.value, "lupa-search-box-product-custom"]
8403
8435
  }, 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, [
8436
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$J, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
8405
8437
  createBaseVNode("div", _hoisted_4$p, toDisplayString(label.value), 1),
8406
8438
  createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
8407
8439
  ]))
@@ -8409,8 +8441,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8409
8441
  };
8410
8442
  }
8411
8443
  });
8412
- const _hoisted_1$_ = ["innerHTML"];
8413
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8444
+ const _hoisted_1$$ = ["innerHTML"];
8445
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8414
8446
  __name: "SearchBoxProductCustomHtml",
8415
8447
  props: {
8416
8448
  item: {},
@@ -8430,7 +8462,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8430
8462
  return openBlock(), createElementBlock("div", mergeProps({
8431
8463
  class: className.value,
8432
8464
  innerHTML: text.value
8433
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$_);
8465
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$$);
8434
8466
  };
8435
8467
  }
8436
8468
  });
@@ -8625,10 +8657,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8625
8657
  setLoading
8626
8658
  };
8627
8659
  });
8628
- const _hoisted_1$Z = { class: "lupa-search-box-add-to-cart-wrapper" };
8629
- const _hoisted_2$H = { class: "lupa-search-box-product-addtocart" };
8660
+ const _hoisted_1$_ = { class: "lupa-search-box-add-to-cart-wrapper" };
8661
+ const _hoisted_2$I = { class: "lupa-search-box-product-addtocart" };
8630
8662
  const _hoisted_3$x = ["onClick", "disabled"];
8631
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8663
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8632
8664
  __name: "SearchBoxProductAddToCart",
8633
8665
  props: {
8634
8666
  item: {},
@@ -8655,8 +8687,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8655
8687
  loading.value = false;
8656
8688
  });
8657
8689
  return (_ctx, _cache) => {
8658
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
8659
- createBaseVNode("div", _hoisted_2$H, [
8690
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
8691
+ createBaseVNode("div", _hoisted_2$I, [
8660
8692
  createBaseVNode("button", {
8661
8693
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
8662
8694
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -8671,17 +8703,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8671
8703
  });
8672
8704
  const __default__$4 = {
8673
8705
  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
8706
+ SearchBoxProductImage: _sfc_main$1a,
8707
+ SearchBoxProductTitle: _sfc_main$19,
8708
+ SearchBoxProductDescription: _sfc_main$18,
8709
+ SearchBoxProductPrice: _sfc_main$17,
8710
+ SearchBoxProductRegularPrice: _sfc_main$16,
8711
+ SearchBoxProductCustom: _sfc_main$15,
8712
+ SearchBoxProductCustomHtml: _sfc_main$14,
8713
+ SearchBoxProductAddToCart: _sfc_main$13
8682
8714
  }
8683
8715
  };
8684
- const _sfc_main$11 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8716
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8685
8717
  __name: "SearchBoxProductElement",
8686
8718
  props: {
8687
8719
  item: {},
@@ -8795,14 +8827,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8795
8827
  };
8796
8828
  return { trackSearch, trackResults, trackEvent };
8797
8829
  });
8798
- const _hoisted_1$Y = ["href"];
8799
- const _hoisted_2$G = { class: "lupa-search-box-product-image-section" };
8830
+ const _hoisted_1$Z = ["href"];
8831
+ const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
8800
8832
  const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
8801
8833
  const _hoisted_4$o = {
8802
8834
  key: 0,
8803
8835
  class: "lupa-search-box-product-add-to-cart-section"
8804
8836
  };
8805
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8837
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8806
8838
  __name: "SearchBoxProduct",
8807
8839
  props: {
8808
8840
  item: {},
@@ -8895,9 +8927,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8895
8927
  href: link.value,
8896
8928
  onClick: handleClick
8897
8929
  }, [
8898
- createBaseVNode("div", _hoisted_2$G, [
8930
+ createBaseVNode("div", _hoisted_2$H, [
8899
8931
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
8900
- return openBlock(), createBlock(_sfc_main$11, {
8932
+ return openBlock(), createBlock(_sfc_main$12, {
8901
8933
  class: "lupa-search-box-product-element",
8902
8934
  item: _ctx.item,
8903
8935
  element,
@@ -8909,7 +8941,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8909
8941
  ]),
8910
8942
  createBaseVNode("div", _hoisted_3$w, [
8911
8943
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
8912
- return openBlock(), createBlock(_sfc_main$11, {
8944
+ return openBlock(), createBlock(_sfc_main$12, {
8913
8945
  class: "lupa-search-box-product-element",
8914
8946
  item: _ctx.item,
8915
8947
  element,
@@ -8920,7 +8952,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8920
8952
  }), 128))
8921
8953
  ]),
8922
8954
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
8923
- createVNode(_sfc_main$11, {
8955
+ createVNode(_sfc_main$12, {
8924
8956
  class: "lupa-search-box-product-element",
8925
8957
  item: _ctx.item,
8926
8958
  element: addToCartElement.value,
@@ -8929,12 +8961,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8929
8961
  isInStock: isInStock.value
8930
8962
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
8931
8963
  ])) : createCommentVNode("", true)
8932
- ], 10, _hoisted_1$Y);
8964
+ ], 10, _hoisted_1$Z);
8933
8965
  };
8934
8966
  }
8935
8967
  });
8936
- const _hoisted_1$X = { id: "lupa-search-box-products" };
8937
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8968
+ const _hoisted_1$Y = { id: "lupa-search-box-products" };
8969
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8938
8970
  __name: "SearchBoxProducts",
8939
8971
  props: {
8940
8972
  items: {},
@@ -8954,7 +8986,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8954
8986
  return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
8955
8987
  });
8956
8988
  return (_ctx, _cache) => {
8957
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
8989
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
8958
8990
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
8959
8991
  return renderSlot(_ctx.$slots, "productCard", {
8960
8992
  key: index,
@@ -8966,7 +8998,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8966
8998
  onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
8967
8999
  });
8968
9000
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
8969
- return openBlock(), createBlock(_sfc_main$10, {
9001
+ return openBlock(), createBlock(_sfc_main$11, {
8970
9002
  key: index,
8971
9003
  item,
8972
9004
  panelOptions: _ctx.panelOptions,
@@ -8980,7 +9012,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8980
9012
  };
8981
9013
  }
8982
9014
  });
8983
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9015
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8984
9016
  __name: "SearchBoxProductsWrapper",
8985
9017
  props: {
8986
9018
  panel: {},
@@ -9032,7 +9064,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9032
9064
  const getItemsDebounced = debounce$1(getItems, props.debounce);
9033
9065
  return (_ctx, _cache) => {
9034
9066
  var _a, _b;
9035
- return openBlock(), createBlock(_sfc_main$$, {
9067
+ return openBlock(), createBlock(_sfc_main$10, {
9036
9068
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9037
9069
  panelOptions: _ctx.panel,
9038
9070
  labels: _ctx.labels,
@@ -9050,11 +9082,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9050
9082
  };
9051
9083
  }
9052
9084
  });
9053
- const _hoisted_1$W = {
9085
+ const _hoisted_1$X = {
9054
9086
  key: 0,
9055
9087
  id: "lupa-search-box-panel"
9056
9088
  };
9057
- const _hoisted_2$F = {
9089
+ const _hoisted_2$G = {
9058
9090
  class: "lupa-main-panel",
9059
9091
  "data-cy": "lupa-main-panel"
9060
9092
  };
@@ -9065,11 +9097,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9065
9097
  };
9066
9098
  const __default__$3 = {
9067
9099
  components: {
9068
- SearchBoxSuggestionsWrapper: _sfc_main$1b,
9069
- SearchBoxProductsWrapper: _sfc_main$_
9100
+ SearchBoxSuggestionsWrapper: _sfc_main$1c,
9101
+ SearchBoxProductsWrapper: _sfc_main$$
9070
9102
  }
9071
9103
  };
9072
- const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9104
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9073
9105
  __name: "SearchBoxMainPanel",
9074
9106
  props: {
9075
9107
  options: {},
@@ -9096,7 +9128,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9096
9128
  const panels = computed(() => props.options.panels);
9097
9129
  const sdkOptions = computed(() => props.options.options);
9098
9130
  const searchBoxStore = useSearchBoxStore();
9099
- const { suggestionResults } = storeToRefs(searchBoxStore);
9131
+ const { suggestionResults, hasAnyResults } = storeToRefs(searchBoxStore);
9100
9132
  const displayResults = computed(
9101
9133
  () => {
9102
9134
  var _a, _b;
@@ -9183,8 +9215,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9183
9215
  ref_key: "panelContainer",
9184
9216
  ref: panelContainer
9185
9217
  }, [
9186
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$W, [
9187
- createBaseVNode("div", _hoisted_2$F, [
9218
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
9219
+ createBaseVNode("div", _hoisted_2$G, [
9188
9220
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
9189
9221
  return openBlock(), createElementBlock("div", {
9190
9222
  key: index,
@@ -9216,13 +9248,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9216
9248
  ], 10, _hoisted_3$v);
9217
9249
  }), 128))
9218
9250
  ]),
9219
- createVNode(_sfc_main$1g, {
9251
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1f, {
9252
+ key: 0,
9253
+ labels: labels.value
9254
+ }, null, 8, ["labels"])) : createCommentVNode("", true),
9255
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1i, {
9256
+ key: 1,
9220
9257
  labels: labels.value,
9221
9258
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
9222
9259
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
9223
- }, null, 8, ["labels", "showTotalCount"])
9260
+ }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
9224
9261
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
9225
- createVNode(_sfc_main$1e, {
9262
+ createVNode(_sfc_main$1g, {
9226
9263
  options: _ctx.options.history,
9227
9264
  history: history.value,
9228
9265
  onGoToResults: handleGoToResults,
@@ -9247,9 +9284,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9247
9284
  const elements = getElements(triggers);
9248
9285
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
9249
9286
  };
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({
9287
+ const _hoisted_1$W = { id: "lupa-search-box" };
9288
+ const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
9289
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9253
9290
  __name: "SearchBox",
9254
9291
  props: {
9255
9292
  options: {},
@@ -9288,7 +9325,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9288
9325
  "links",
9289
9326
  "options",
9290
9327
  "debounce",
9291
- "showTotalCount"
9328
+ "showTotalCount",
9329
+ "hideMoreResultsButtonOnNoResults",
9330
+ "showNoResultsPanel"
9292
9331
  ])
9293
9332
  );
9294
9333
  const searchTriggers = computed(() => {
@@ -9482,9 +9521,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9482
9521
  };
9483
9522
  return (_ctx, _cache) => {
9484
9523
  var _a2;
9485
- return openBlock(), createElementBlock("div", _hoisted_1$V, [
9486
- createBaseVNode("div", _hoisted_2$E, [
9487
- createVNode(_sfc_main$1h, {
9524
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
9525
+ createBaseVNode("div", _hoisted_2$F, [
9526
+ createVNode(_sfc_main$1j, {
9488
9527
  options: inputOptions.value,
9489
9528
  suggestedValue: suggestedValue.value,
9490
9529
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -9495,7 +9534,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9495
9534
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
9496
9535
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
9497
9536
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
9498
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$Z, {
9537
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$_, {
9499
9538
  key: 0,
9500
9539
  options: panelOptions.value,
9501
9540
  inputValue: inputValue.value,
@@ -9582,11 +9621,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9582
9621
  }
9583
9622
  return searchParams;
9584
9623
  };
9585
- const _hoisted_1$U = {
9624
+ const _hoisted_1$V = {
9586
9625
  key: 0,
9587
9626
  id: "lupa-search-results-did-you-mean"
9588
9627
  };
9589
- const _hoisted_2$D = {
9628
+ const _hoisted_2$E = {
9590
9629
  key: 0,
9591
9630
  "data-cy": "suggested-search-text-label"
9592
9631
  };
@@ -9595,7 +9634,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9595
9634
  "data-cy": "did-you-mean-label"
9596
9635
  };
9597
9636
  const _hoisted_4$m = { key: 1 };
9598
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
9637
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
9599
9638
  __name: "SearchResultsDidYouMean",
9600
9639
  props: {
9601
9640
  labels: {}
@@ -9627,8 +9666,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9627
9666
  paramStore.goToResults({ searchText, facet });
9628
9667
  };
9629
9668
  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, [
9669
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$V, [
9670
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
9632
9671
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
9633
9672
  return openBlock(), createElementBlock("span", { key: index }, [
9634
9673
  createBaseVNode("span", {
@@ -9653,12 +9692,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9653
9692
  };
9654
9693
  }
9655
9694
  });
9656
- const _hoisted_1$T = {
9695
+ const _hoisted_1$U = {
9657
9696
  key: 0,
9658
9697
  class: "lupa-search-results-summary"
9659
9698
  };
9660
- const _hoisted_2$C = ["innerHTML"];
9661
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
9699
+ const _hoisted_2$D = ["innerHTML"];
9700
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
9662
9701
  __name: "SearchResultsSummary",
9663
9702
  props: {
9664
9703
  label: {},
@@ -9673,8 +9712,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9673
9712
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
9674
9713
  });
9675
9714
  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),
9715
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
9716
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$D),
9678
9717
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
9679
9718
  key: 0,
9680
9719
  class: "lupa-filter-clear",
@@ -9685,18 +9724,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9685
9724
  };
9686
9725
  }
9687
9726
  });
9688
- const _hoisted_1$S = {
9727
+ const _hoisted_1$T = {
9689
9728
  key: 0,
9690
9729
  class: "lupa-result-page-title",
9691
9730
  "data-cy": "lupa-result-page-title"
9692
9731
  };
9693
- const _hoisted_2$B = { key: 0 };
9732
+ const _hoisted_2$C = { key: 0 };
9694
9733
  const _hoisted_3$t = {
9695
9734
  key: 1,
9696
9735
  class: "lupa-results-total-count"
9697
9736
  };
9698
9737
  const _hoisted_4$l = ["innerHTML"];
9699
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
9738
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
9700
9739
  __name: "SearchResultsTitle",
9701
9740
  props: {
9702
9741
  options: {},
@@ -9731,12 +9770,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9731
9770
  });
9732
9771
  return (_ctx, _cache) => {
9733
9772
  return openBlock(), createElementBlock("div", null, [
9734
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$S, [
9773
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$T, [
9735
9774
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
9736
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9775
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9737
9776
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
9738
9777
  ])) : createCommentVNode("", true),
9739
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$W, {
9778
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$X, {
9740
9779
  key: 1,
9741
9780
  label: summaryLabel.value
9742
9781
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -9749,8 +9788,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9749
9788
  };
9750
9789
  }
9751
9790
  });
9752
- const _hoisted_1$R = { class: "lupa-search-result-filter-value" };
9753
- const _hoisted_2$A = {
9791
+ const _hoisted_1$S = { class: "lupa-search-result-filter-value" };
9792
+ const _hoisted_2$B = {
9754
9793
  class: "lupa-current-filter-label",
9755
9794
  "data-cy": "lupa-current-filter-label"
9756
9795
  };
@@ -9758,7 +9797,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9758
9797
  class: "lupa-current-filter-value",
9759
9798
  "data-cy": "lupa-current-filter-value"
9760
9799
  };
9761
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
9800
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
9762
9801
  __name: "CurrentFilterDisplay",
9763
9802
  props: {
9764
9803
  filter: {}
@@ -9770,19 +9809,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9770
9809
  emit2("remove", { filter: props.filter });
9771
9810
  };
9772
9811
  return (_ctx, _cache) => {
9773
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
9812
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
9774
9813
  createBaseVNode("div", {
9775
9814
  class: "lupa-current-filter-action",
9776
9815
  onClick: handleClick
9777
9816
  }, "⨉"),
9778
- createBaseVNode("div", _hoisted_2$A, toDisplayString(_ctx.filter.label) + ": ", 1),
9817
+ createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
9779
9818
  createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
9780
9819
  ]);
9781
9820
  };
9782
9821
  }
9783
9822
  });
9784
- const _hoisted_1$Q = { class: "lupa-filter-title-text" };
9785
- const _hoisted_2$z = {
9823
+ const _hoisted_1$R = { class: "lupa-filter-title-text" };
9824
+ const _hoisted_2$A = {
9786
9825
  key: 0,
9787
9826
  class: "lupa-filter-count"
9788
9827
  };
@@ -9791,7 +9830,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9791
9830
  class: "filter-values"
9792
9831
  };
9793
9832
  const _hoisted_4$k = { class: "lupa-current-filter-list" };
9794
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
9833
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9795
9834
  __name: "CurrentFilters",
9796
9835
  props: {
9797
9836
  options: {},
@@ -9846,9 +9885,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9846
9885
  class: "lupa-current-filter-title",
9847
9886
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
9848
9887
  }, [
9849
- createBaseVNode("div", _hoisted_1$Q, [
9888
+ createBaseVNode("div", _hoisted_1$R, [
9850
9889
  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)
9890
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$A, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9852
9891
  ]),
9853
9892
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
9854
9893
  key: 0,
@@ -9858,7 +9897,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9858
9897
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
9859
9898
  createBaseVNode("div", _hoisted_4$k, [
9860
9899
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
9861
- return openBlock(), createBlock(_sfc_main$U, {
9900
+ return openBlock(), createBlock(_sfc_main$V, {
9862
9901
  key: filter.key + "_" + filter.value,
9863
9902
  filter,
9864
9903
  onRemove: handleRemove
@@ -9875,8 +9914,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9875
9914
  };
9876
9915
  }
9877
9916
  });
9878
- const _hoisted_1$P = ["href"];
9879
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
9917
+ const _hoisted_1$Q = ["href"];
9918
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
9880
9919
  __name: "CategoryFilterItem",
9881
9920
  props: {
9882
9921
  options: {},
@@ -9913,20 +9952,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9913
9952
  "data-cy": "lupa-child-category-item",
9914
9953
  href: urlLink.value,
9915
9954
  onClick: handleNavigation
9916
- }, toDisplayString(title.value), 9, _hoisted_1$P)
9955
+ }, toDisplayString(title.value), 9, _hoisted_1$Q)
9917
9956
  ], 2);
9918
9957
  };
9919
9958
  }
9920
9959
  });
9921
- const _hoisted_1$O = {
9960
+ const _hoisted_1$P = {
9922
9961
  class: "lupa-category-filter",
9923
9962
  "data-cy": "lupa-category-filter"
9924
9963
  };
9925
- const _hoisted_2$y = { class: "lupa-category-back" };
9964
+ const _hoisted_2$z = { class: "lupa-category-back" };
9926
9965
  const _hoisted_3$q = ["href"];
9927
9966
  const _hoisted_4$j = ["href"];
9928
9967
  const _hoisted_5$c = { class: "lupa-child-category-list" };
9929
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
9968
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9930
9969
  __name: "CategoryFilter",
9931
9970
  props: {
9932
9971
  options: {}
@@ -10012,8 +10051,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10012
10051
  };
10013
10052
  __expose({ fetch: fetch2 });
10014
10053
  return (_ctx, _cache) => {
10015
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
10016
- createBaseVNode("div", _hoisted_2$y, [
10054
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
10055
+ createBaseVNode("div", _hoisted_2$z, [
10017
10056
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
10018
10057
  key: 0,
10019
10058
  "data-cy": "lupa-category-back",
@@ -10033,7 +10072,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10033
10072
  ], 2),
10034
10073
  createBaseVNode("div", _hoisted_5$c, [
10035
10074
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10036
- return openBlock(), createBlock(_sfc_main$S, {
10075
+ return openBlock(), createBlock(_sfc_main$T, {
10037
10076
  key: getCategoryKey(child),
10038
10077
  item: child,
10039
10078
  options: _ctx.options
@@ -10044,11 +10083,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10044
10083
  };
10045
10084
  }
10046
10085
  });
10047
- const _hoisted_1$N = {
10086
+ const _hoisted_1$O = {
10048
10087
  class: "lupa-search-result-facet-term-values",
10049
10088
  "data-cy": "lupa-search-result-facet-term-values"
10050
10089
  };
10051
- const _hoisted_2$x = ["placeholder"];
10090
+ const _hoisted_2$y = ["placeholder"];
10052
10091
  const _hoisted_3$p = { class: "lupa-terms-list" };
10053
10092
  const _hoisted_4$i = ["onClick"];
10054
10093
  const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
@@ -10060,7 +10099,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10060
10099
  };
10061
10100
  const _hoisted_9$1 = { key: 0 };
10062
10101
  const _hoisted_10$1 = { key: 1 };
10063
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10102
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10064
10103
  __name: "TermFacet",
10065
10104
  props: {
10066
10105
  options: {},
@@ -10129,14 +10168,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10129
10168
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
10130
10169
  };
10131
10170
  return (_ctx, _cache) => {
10132
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
10171
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
10133
10172
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
10134
10173
  key: 0,
10135
10174
  class: "lupa-term-filter",
10136
10175
  "data-cy": "lupa-term-filter",
10137
10176
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
10138
10177
  placeholder: _ctx.options.labels.facetFilter
10139
- }, null, 8, _hoisted_2$x)), [
10178
+ }, null, 8, _hoisted_2$y)), [
10140
10179
  [vModelText, termFilter.value]
10141
10180
  ]) : createCommentVNode("", true),
10142
10181
  createBaseVNode("div", _hoisted_3$p, [
@@ -11147,8 +11186,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11147
11186
  m.render = function(e, t, r, i, n, o) {
11148
11187
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
11149
11188
  }, m.__file = "src/Slider.vue";
11150
- const _hoisted_1$M = { class: "lupa-search-result-facet-stats-values" };
11151
- const _hoisted_2$w = {
11189
+ const _hoisted_1$N = { class: "lupa-search-result-facet-stats-values" };
11190
+ const _hoisted_2$x = {
11152
11191
  key: 0,
11153
11192
  class: "lupa-stats-facet-summary"
11154
11193
  };
@@ -11175,7 +11214,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11175
11214
  key: 2,
11176
11215
  class: "lupa-stats-slider-wrapper"
11177
11216
  };
11178
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
11217
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11179
11218
  __name: "StatsFacet",
11180
11219
  props: {
11181
11220
  options: {},
@@ -11323,8 +11362,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11323
11362
  innerSliderRange.value = value;
11324
11363
  };
11325
11364
  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, [
11365
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
11366
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
11328
11367
  createBaseVNode("div", null, [
11329
11368
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11330
11369
  createBaseVNode("div", _hoisted_5$a, [
@@ -11387,8 +11426,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11387
11426
  };
11388
11427
  }
11389
11428
  });
11390
- const _hoisted_1$L = { class: "lupa-term-checkbox-wrapper" };
11391
- const _hoisted_2$v = { class: "lupa-term-checkbox-label" };
11429
+ const _hoisted_1$M = { class: "lupa-term-checkbox-wrapper" };
11430
+ const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
11392
11431
  const _hoisted_3$n = { class: "lupa-term-label" };
11393
11432
  const _hoisted_4$g = {
11394
11433
  key: 0,
@@ -11398,7 +11437,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11398
11437
  key: 0,
11399
11438
  class: "lupa-facet-level"
11400
11439
  };
11401
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
11440
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
11402
11441
  __name: "HierarchyFacetLevel",
11403
11442
  props: {
11404
11443
  options: {},
@@ -11444,12 +11483,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11444
11483
  "data-cy": "lupa-facet-term",
11445
11484
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
11446
11485
  }, [
11447
- createBaseVNode("div", _hoisted_1$L, [
11486
+ createBaseVNode("div", _hoisted_1$M, [
11448
11487
  createBaseVNode("span", {
11449
11488
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
11450
11489
  }, null, 2)
11451
11490
  ]),
11452
- createBaseVNode("div", _hoisted_2$v, [
11491
+ createBaseVNode("div", _hoisted_2$w, [
11453
11492
  createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11454
11493
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11455
11494
  ])
@@ -11470,13 +11509,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11470
11509
  };
11471
11510
  }
11472
11511
  });
11473
- const _hoisted_1$K = {
11512
+ const _hoisted_1$L = {
11474
11513
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
11475
11514
  "data-cy": "lupa-search-result-facet-term-values"
11476
11515
  };
11477
- const _hoisted_2$u = { key: 0 };
11516
+ const _hoisted_2$v = { key: 0 };
11478
11517
  const _hoisted_3$m = ["placeholder"];
11479
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
11518
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11480
11519
  __name: "HierarchyFacet",
11481
11520
  props: {
11482
11521
  options: {},
@@ -11526,8 +11565,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11526
11565
  showAll.value = true;
11527
11566
  };
11528
11567
  return (_ctx, _cache) => {
11529
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
11530
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
11568
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
11569
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
11531
11570
  withDirectives(createBaseVNode("input", {
11532
11571
  class: "lupa-term-filter",
11533
11572
  "data-cy": "lupa-term-filter",
@@ -11538,7 +11577,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11538
11577
  ])
11539
11578
  ])) : createCommentVNode("", true),
11540
11579
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11541
- return openBlock(), createBlock(_sfc_main$O, {
11580
+ return openBlock(), createBlock(_sfc_main$P, {
11542
11581
  key: item.title,
11543
11582
  options: _ctx.options,
11544
11583
  item,
@@ -11558,20 +11597,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11558
11597
  };
11559
11598
  }
11560
11599
  });
11561
- const _hoisted_1$J = { class: "lupa-facet-label-text" };
11562
- const _hoisted_2$t = {
11600
+ const _hoisted_1$K = { class: "lupa-facet-label-text" };
11601
+ const _hoisted_2$u = {
11563
11602
  key: 0,
11564
11603
  class: "lupa-facet-content",
11565
11604
  "data-cy": "lupa-facet-content"
11566
11605
  };
11567
11606
  const __default__$2 = {
11568
11607
  components: {
11569
- TermFacet: _sfc_main$Q,
11570
- StatsFacet: _sfc_main$P,
11571
- HierarchyFacet: _sfc_main$N
11608
+ TermFacet: _sfc_main$R,
11609
+ StatsFacet: _sfc_main$Q,
11610
+ HierarchyFacet: _sfc_main$O
11572
11611
  }
11573
11612
  };
11574
- const _sfc_main$M = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11613
+ const _sfc_main$N = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11575
11614
  __name: "FacetDisplay",
11576
11615
  props: {
11577
11616
  options: {},
@@ -11682,12 +11721,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11682
11721
  "data-cy": "lupa-search-result-facet-label",
11683
11722
  onClick: toggleFacet
11684
11723
  }, [
11685
- createBaseVNode("div", _hoisted_1$J, toDisplayString(facet.value.label), 1),
11724
+ createBaseVNode("div", _hoisted_1$K, toDisplayString(facet.value.label), 1),
11686
11725
  createBaseVNode("div", {
11687
11726
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
11688
11727
  }, null, 2)
11689
11728
  ], 2),
11690
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
11729
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
11691
11730
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
11692
11731
  facet: facet.value,
11693
11732
  currentFilters: currentFilters.value[facet.value.key],
@@ -11705,12 +11744,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11705
11744
  };
11706
11745
  }
11707
11746
  }));
11708
- const _hoisted_1$I = { class: "lupa-search-result-facet-section" };
11709
- const _hoisted_2$s = {
11747
+ const _hoisted_1$J = { class: "lupa-search-result-facet-section" };
11748
+ const _hoisted_2$t = {
11710
11749
  key: 0,
11711
11750
  class: "lupa-facets-title"
11712
11751
  };
11713
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
11752
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
11714
11753
  __name: "FacetList",
11715
11754
  props: {
11716
11755
  options: {},
@@ -11744,14 +11783,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11744
11783
  };
11745
11784
  return (_ctx, _cache) => {
11746
11785
  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),
11786
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
11787
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11749
11788
  createBaseVNode("div", {
11750
11789
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
11751
11790
  }, [
11752
11791
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
11753
11792
  var _a2;
11754
- return openBlock(), createBlock(_sfc_main$M, {
11793
+ return openBlock(), createBlock(_sfc_main$N, {
11755
11794
  key: facet.key,
11756
11795
  facet,
11757
11796
  currentFilters: currentFiltersValue.value,
@@ -11766,8 +11805,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11766
11805
  };
11767
11806
  }
11768
11807
  });
11769
- const _hoisted_1$H = { class: "lupa-search-result-facets" };
11770
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
11808
+ const _hoisted_1$I = { class: "lupa-search-result-facets" };
11809
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11771
11810
  __name: "Facets",
11772
11811
  props: {
11773
11812
  options: {},
@@ -11813,8 +11852,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11813
11852
  paramStore.removeParameters({ paramsToRemove: [param] });
11814
11853
  };
11815
11854
  return (_ctx, _cache) => {
11816
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
11817
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$L, {
11855
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
11856
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$M, {
11818
11857
  key: 0,
11819
11858
  options: _ctx.options,
11820
11859
  facets: regularFacets.value,
@@ -11828,11 +11867,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11828
11867
  };
11829
11868
  }
11830
11869
  });
11831
- const _hoisted_1$G = {
11870
+ const _hoisted_1$H = {
11832
11871
  id: "lupa-search-result-filters",
11833
11872
  class: "lupa-search-result-filters"
11834
11873
  };
11835
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
11874
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11836
11875
  __name: "SearchResultsFilters",
11837
11876
  props: {
11838
11877
  options: {},
@@ -11861,19 +11900,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11861
11900
  __expose({ fetch: fetch2 });
11862
11901
  return (_ctx, _cache) => {
11863
11902
  var _a;
11864
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
11865
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$T, {
11903
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
11904
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$U, {
11866
11905
  key: 0,
11867
11906
  options: _ctx.options.currentFilters,
11868
11907
  expandable: (_a = _ctx.expandable) != null ? _a : false
11869
11908
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
11870
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$R, {
11909
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$S, {
11871
11910
  key: 1,
11872
11911
  options: _ctx.options.categories,
11873
11912
  ref_key: "categoryFilters",
11874
11913
  ref: categoryFilters
11875
11914
  }, null, 8, ["options"])) : createCommentVNode("", true),
11876
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
11915
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
11877
11916
  key: 2,
11878
11917
  options: _ctx.options.facets
11879
11918
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -11881,11 +11920,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11881
11920
  };
11882
11921
  }
11883
11922
  });
11884
- const _hoisted_1$F = {
11923
+ const _hoisted_1$G = {
11885
11924
  key: 0,
11886
11925
  class: "lupa-mobile-filter-sidebar"
11887
11926
  };
11888
- const _hoisted_2$r = ["onClick"];
11927
+ const _hoisted_2$s = ["onClick"];
11889
11928
  const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
11890
11929
  const _hoisted_4$f = { class: "lupa-sidebar-top" };
11891
11930
  const _hoisted_5$8 = { class: "lupa-sidebar-title" };
@@ -11894,7 +11933,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11894
11933
  class: "lupa-sidebar-filter-count"
11895
11934
  };
11896
11935
  const _hoisted_7$4 = { class: "lupa-sidebar-filter-options" };
11897
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
11936
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11898
11937
  __name: "MobileFilterSidebar",
11899
11938
  props: {
11900
11939
  options: {}
@@ -11920,11 +11959,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11920
11959
  searchResultStore.setSidebarState({ visible: false });
11921
11960
  };
11922
11961
  return (_ctx, _cache) => {
11923
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
11962
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
11924
11963
  createBaseVNode("div", {
11925
11964
  class: "lupa-sidebar-close",
11926
11965
  onClick: withModifiers(handleMobileToggle, ["stop"])
11927
- }, null, 8, _hoisted_2$r),
11966
+ }, null, 8, _hoisted_2$s),
11928
11967
  createBaseVNode("div", _hoisted_3$l, [
11929
11968
  createBaseVNode("div", _hoisted_4$f, [
11930
11969
  createBaseVNode("div", _hoisted_5$8, [
@@ -11937,7 +11976,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11937
11976
  })
11938
11977
  ]),
11939
11978
  createBaseVNode("div", _hoisted_7$4, [
11940
- createVNode(_sfc_main$J, {
11979
+ createVNode(_sfc_main$K, {
11941
11980
  options: _ctx.options,
11942
11981
  expandable: isActiveFiltersExpanded.value
11943
11982
  }, null, 8, ["options", "expandable"])
@@ -11947,14 +11986,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11947
11986
  };
11948
11987
  }
11949
11988
  });
11950
- const _hoisted_1$E = { id: "lupa-search-results-breadcrumbs" };
11951
- const _hoisted_2$q = ["href", "onClick"];
11989
+ const _hoisted_1$F = { id: "lupa-search-results-breadcrumbs" };
11990
+ const _hoisted_2$r = ["href", "onClick"];
11952
11991
  const _hoisted_3$k = {
11953
11992
  key: 1,
11954
11993
  class: "lupa-search-results-breadcrumb-text"
11955
11994
  };
11956
11995
  const _hoisted_4$e = { key: 2 };
11957
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
11996
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11958
11997
  __name: "SearchResultsBreadcrumbs",
11959
11998
  props: {
11960
11999
  breadcrumbs: {}
@@ -11979,7 +12018,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11979
12018
  handleRoutingEvent(link, event, hasEventRouting.value);
11980
12019
  };
11981
12020
  return (_ctx, _cache) => {
11982
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
12021
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
11983
12022
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
11984
12023
  return openBlock(), createElementBlock("span", {
11985
12024
  class: "lupa-search-results-breadcrumb",
@@ -11993,7 +12032,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11993
12032
  var _a;
11994
12033
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
11995
12034
  }
11996
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
12035
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$r)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
11997
12036
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
11998
12037
  ]);
11999
12038
  }), 128))
@@ -12001,11 +12040,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12001
12040
  };
12002
12041
  }
12003
12042
  });
12004
- const _hoisted_1$D = {
12043
+ const _hoisted_1$E = {
12005
12044
  id: "lupa-search-result-filters",
12006
12045
  class: "lupa-search-result-filters"
12007
12046
  };
12008
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
12047
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
12009
12048
  __name: "FiltersTopDropdown",
12010
12049
  props: {
12011
12050
  options: {}
@@ -12013,8 +12052,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12013
12052
  setup(__props) {
12014
12053
  return (_ctx, _cache) => {
12015
12054
  var _a;
12016
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
12017
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$K, {
12055
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
12056
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$L, {
12018
12057
  key: 0,
12019
12058
  options: _ctx.options.facets,
12020
12059
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -12024,8 +12063,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12024
12063
  };
12025
12064
  }
12026
12065
  });
12027
- const _hoisted_1$C = { id: "lupa-search-results-layout-selection" };
12028
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
12066
+ const _hoisted_1$D = { id: "lupa-search-results-layout-selection" };
12067
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
12029
12068
  __name: "SearchResultsLayoutSelection",
12030
12069
  setup(__props) {
12031
12070
  const searchResultStore = useSearchResultStore();
@@ -12036,7 +12075,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12036
12075
  searchResultStore.setLayout(layout2);
12037
12076
  };
12038
12077
  return (_ctx, _cache) => {
12039
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
12078
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
12040
12079
  createBaseVNode("div", {
12041
12080
  class: normalizeClass([
12042
12081
  "lupa-layout-selection-grid",
@@ -12058,11 +12097,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12058
12097
  };
12059
12098
  }
12060
12099
  });
12061
- const _hoisted_1$B = {
12100
+ const _hoisted_1$C = {
12062
12101
  key: 0,
12063
12102
  class: "lupa-mobile-toggle-filter-count"
12064
12103
  };
12065
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
12104
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
12066
12105
  __name: "SearchResultsMobileToggle",
12067
12106
  props: {
12068
12107
  label: {},
@@ -12080,17 +12119,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12080
12119
  onClick: handleMobileToggle
12081
12120
  }, [
12082
12121
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
12083
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$B, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12122
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$C, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12084
12123
  ], 2);
12085
12124
  };
12086
12125
  }
12087
12126
  });
12088
- const _hoisted_1$A = {
12127
+ const _hoisted_1$B = {
12089
12128
  key: 0,
12090
12129
  id: "lupa-search-results-page-select",
12091
12130
  "data-cy": "lupa-search-results-page-select"
12092
12131
  };
12093
- const _hoisted_2$p = {
12132
+ const _hoisted_2$q = {
12094
12133
  key: 0,
12095
12134
  class: "lupa-page-number-separator"
12096
12135
  };
@@ -12099,7 +12138,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12099
12138
  key: 0,
12100
12139
  class: "lupa-page-number-separator"
12101
12140
  };
12102
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
12141
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12103
12142
  __name: "SearchResultsPageSelect",
12104
12143
  props: {
12105
12144
  lastPageLabel: {},
@@ -12161,7 +12200,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12161
12200
  }
12162
12201
  };
12163
12202
  return (_ctx, _cache) => {
12164
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
12203
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
12165
12204
  showBack.value ? (openBlock(), createElementBlock("div", {
12166
12205
  key: 0,
12167
12206
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -12172,7 +12211,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12172
12211
  class: "lupa-page-number lupa-page-number-first",
12173
12212
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
12174
12213
  }, " 1 "),
12175
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, "...")) : createCommentVNode("", true)
12214
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, "...")) : createCommentVNode("", true)
12176
12215
  ], 64)) : createCommentVNode("", true),
12177
12216
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
12178
12217
  return openBlock(), createElementBlock("div", {
@@ -12205,13 +12244,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12205
12244
  };
12206
12245
  }
12207
12246
  });
12208
- const _hoisted_1$z = {
12247
+ const _hoisted_1$A = {
12209
12248
  id: "lupa-search-results-page-size",
12210
12249
  "data-cy": "lupa-search-results-page-size"
12211
12250
  };
12212
- const _hoisted_2$o = { id: "lupa-select" };
12251
+ const _hoisted_2$p = { id: "lupa-select" };
12213
12252
  const _hoisted_3$i = { class: "lupa-select-label" };
12214
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
12253
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
12215
12254
  __name: "SearchResultsPageSize",
12216
12255
  props: {
12217
12256
  label: {},
@@ -12228,8 +12267,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12228
12267
  });
12229
12268
  };
12230
12269
  return (_ctx, _cache) => {
12231
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
12232
- createBaseVNode("div", _hoisted_2$o, [
12270
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
12271
+ createBaseVNode("div", _hoisted_2$p, [
12233
12272
  createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.label), 1),
12234
12273
  createBaseVNode("select", {
12235
12274
  class: "lupa-select-dropdown",
@@ -12247,14 +12286,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12247
12286
  };
12248
12287
  }
12249
12288
  });
12250
- const _hoisted_1$y = {
12289
+ const _hoisted_1$z = {
12251
12290
  id: "lupa-search-results-sort",
12252
12291
  class: "lupa-search-results-sort"
12253
12292
  };
12254
- const _hoisted_2$n = { id: "lupa-select" };
12293
+ const _hoisted_2$o = { id: "lupa-select" };
12255
12294
  const _hoisted_3$h = { class: "lupa-select-label" };
12256
12295
  const _hoisted_4$c = ["value"];
12257
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
12296
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12258
12297
  __name: "SearchResultsSort",
12259
12298
  props: {
12260
12299
  options: {},
@@ -12301,8 +12340,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12301
12340
  previousKey.value = selectedKey.value;
12302
12341
  };
12303
12342
  return (_ctx, _cache) => {
12304
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
12305
- createBaseVNode("div", _hoisted_2$n, [
12343
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
12344
+ createBaseVNode("div", _hoisted_2$o, [
12306
12345
  createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
12307
12346
  withDirectives(createBaseVNode("select", {
12308
12347
  class: "lupa-select-dropdown",
@@ -12325,14 +12364,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12325
12364
  };
12326
12365
  }
12327
12366
  });
12328
- const _hoisted_1$x = { class: "lupa-toolbar-left" };
12329
- const _hoisted_2$m = { key: 1 };
12367
+ const _hoisted_1$y = { class: "lupa-toolbar-left" };
12368
+ const _hoisted_2$n = { key: 1 };
12330
12369
  const _hoisted_3$g = { key: 3 };
12331
12370
  const _hoisted_4$b = { key: 5 };
12332
12371
  const _hoisted_5$7 = { class: "lupa-toolbar-right" };
12333
12372
  const _hoisted_6$4 = { key: 1 };
12334
12373
  const _hoisted_7$3 = { key: 3 };
12335
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
12374
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
12336
12375
  __name: "SearchResultsToolbar",
12337
12376
  props: {
12338
12377
  options: {},
@@ -12431,15 +12470,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12431
12470
  id: "lupa-search-results-toolbar",
12432
12471
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
12433
12472
  }, [
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, {
12473
+ createBaseVNode("div", _hoisted_1$y, [
12474
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$G, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$n)),
12475
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$X, {
12437
12476
  key: 2,
12438
12477
  label: searchSummaryLabel.value,
12439
12478
  clearable: unref(hasAnyFilter) && showFilterClear.value,
12440
12479
  onClear: handleClearAll
12441
12480
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
12442
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$D, {
12481
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$E, {
12443
12482
  key: 4,
12444
12483
  options: paginationOptions.value.pageSelect,
12445
12484
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -12447,16 +12486,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12447
12486
  }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$b))
12448
12487
  ]),
12449
12488
  createBaseVNode("div", _hoisted_5$7, [
12450
- createVNode(_sfc_main$E, {
12489
+ createVNode(_sfc_main$F, {
12451
12490
  label: optionsValue.value.labels.mobileFilterButton,
12452
12491
  "show-filter-count": showMobileFilterCount.value
12453
12492
  }, null, 8, ["label", "show-filter-count"]),
12454
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$C, {
12493
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$D, {
12455
12494
  key: 0,
12456
12495
  options: paginationOptions.value.pageSize,
12457
12496
  label: paginationOptions.value.labels.pageSize
12458
12497
  }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$4)),
12459
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$B, {
12498
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$C, {
12460
12499
  key: 2,
12461
12500
  options: sortOptions.value,
12462
12501
  callbacks: callbacks.value
@@ -12466,14 +12505,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12466
12505
  };
12467
12506
  }
12468
12507
  });
12469
- const _hoisted_1$w = { class: "lupa-badge-title" };
12470
- const _hoisted_2$l = ["src"];
12508
+ const _hoisted_1$x = { class: "lupa-badge-title" };
12509
+ const _hoisted_2$m = ["src"];
12471
12510
  const _hoisted_3$f = { key: 1 };
12472
12511
  const _hoisted_4$a = {
12473
12512
  key: 0,
12474
12513
  class: "lupa-badge-full-text"
12475
12514
  };
12476
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
12515
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12477
12516
  __name: "SearchResultGeneratedBadge",
12478
12517
  props: {
12479
12518
  options: {},
@@ -12506,11 +12545,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12506
12545
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
12507
12546
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
12508
12547
  }, [
12509
- createBaseVNode("span", _hoisted_1$w, [
12548
+ createBaseVNode("span", _hoisted_1$x, [
12510
12549
  image.value ? (openBlock(), createElementBlock("img", {
12511
12550
  key: 0,
12512
12551
  src: image.value
12513
- }, null, 8, _hoisted_2$l)) : createCommentVNode("", true),
12552
+ }, null, 8, _hoisted_2$m)) : createCommentVNode("", true),
12514
12553
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
12515
12554
  ]),
12516
12555
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$a, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -12518,8 +12557,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12518
12557
  };
12519
12558
  }
12520
12559
  });
12521
- const _hoisted_1$v = { class: "lupa-generated-badges" };
12522
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
12560
+ const _hoisted_1$w = { class: "lupa-generated-badges" };
12561
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12523
12562
  __name: "SearchResultGeneratedBadges",
12524
12563
  props: {
12525
12564
  options: {}
@@ -12545,9 +12584,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12545
12584
  })).filter((b) => Boolean(b.id));
12546
12585
  });
12547
12586
  return (_ctx, _cache) => {
12548
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
12587
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
12549
12588
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
12550
- return openBlock(), createBlock(_sfc_main$z, {
12589
+ return openBlock(), createBlock(_sfc_main$A, {
12551
12590
  key: badge.id,
12552
12591
  badge,
12553
12592
  options: _ctx.options
@@ -12557,8 +12596,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12557
12596
  };
12558
12597
  }
12559
12598
  });
12560
- const _hoisted_1$u = ["innerHTML"];
12561
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
12599
+ const _hoisted_1$v = ["innerHTML"];
12600
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12562
12601
  __name: "CustomBadge",
12563
12602
  props: {
12564
12603
  badge: {}
@@ -12577,12 +12616,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12577
12616
  return openBlock(), createElementBlock("div", {
12578
12617
  class: normalizeClass(className.value),
12579
12618
  innerHTML: text.value
12580
- }, null, 10, _hoisted_1$u);
12619
+ }, null, 10, _hoisted_1$v);
12581
12620
  };
12582
12621
  }
12583
12622
  });
12584
- const _hoisted_1$t = { class: "lupa-text-badges" };
12585
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
12623
+ const _hoisted_1$u = { class: "lupa-text-badges" };
12624
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12586
12625
  __name: "TextBadge",
12587
12626
  props: {
12588
12627
  badge: {}
@@ -12597,7 +12636,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12597
12636
  return badges.value.slice(0, props.badge.maxItems);
12598
12637
  });
12599
12638
  return (_ctx, _cache) => {
12600
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
12639
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
12601
12640
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12602
12641
  return openBlock(), createElementBlock("div", {
12603
12642
  class: "lupa-badge lupa-text-badge",
@@ -12608,9 +12647,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12608
12647
  };
12609
12648
  }
12610
12649
  });
12611
- const _hoisted_1$s = { class: "lupa-image-badges" };
12612
- const _hoisted_2$k = ["src"];
12613
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
12650
+ const _hoisted_1$t = { class: "lupa-image-badges" };
12651
+ const _hoisted_2$l = ["src"];
12652
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12614
12653
  __name: "ImageBadge",
12615
12654
  props: {
12616
12655
  badge: {}
@@ -12630,7 +12669,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12630
12669
  return `${props.badge.rootImageUrl}${src}`;
12631
12670
  };
12632
12671
  return (_ctx, _cache) => {
12633
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
12672
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
12634
12673
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12635
12674
  return openBlock(), createElementBlock("div", {
12636
12675
  class: "lupa-badge lupa-image-badge",
@@ -12638,22 +12677,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12638
12677
  }, [
12639
12678
  createBaseVNode("img", {
12640
12679
  src: getImageUrl(item)
12641
- }, null, 8, _hoisted_2$k)
12680
+ }, null, 8, _hoisted_2$l)
12642
12681
  ]);
12643
12682
  }), 128))
12644
12683
  ]);
12645
12684
  };
12646
12685
  }
12647
12686
  });
12648
- const _hoisted_1$r = { id: "lupa-search-results-badges" };
12687
+ const _hoisted_1$s = { id: "lupa-search-results-badges" };
12649
12688
  const __default__$1 = {
12650
12689
  components: {
12651
- CustomBadge: _sfc_main$x,
12652
- TextBadge: _sfc_main$w,
12653
- ImageBadge: _sfc_main$v
12690
+ CustomBadge: _sfc_main$y,
12691
+ TextBadge: _sfc_main$x,
12692
+ ImageBadge: _sfc_main$w
12654
12693
  }
12655
12694
  };
12656
- const _sfc_main$u = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12695
+ const _sfc_main$v = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12657
12696
  __name: "SearchResultsBadgeWrapper",
12658
12697
  props: {
12659
12698
  position: {},
@@ -12699,7 +12738,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12699
12738
  }
12700
12739
  };
12701
12740
  return (_ctx, _cache) => {
12702
- return openBlock(), createElementBlock("div", _hoisted_1$r, [
12741
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
12703
12742
  createBaseVNode("div", {
12704
12743
  id: "lupa-badges",
12705
12744
  class: normalizeClass(anchorPosition.value)
@@ -12710,7 +12749,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12710
12749
  badge
12711
12750
  }, null, 8, ["badge"]);
12712
12751
  }), 128)),
12713
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$y, {
12752
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$z, {
12714
12753
  key: 0,
12715
12754
  options: _ctx.options
12716
12755
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -12719,7 +12758,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12719
12758
  };
12720
12759
  }
12721
12760
  }));
12722
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
12761
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12723
12762
  __name: "SearchResultsProductImage",
12724
12763
  props: {
12725
12764
  item: {},
@@ -12727,7 +12766,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12727
12766
  },
12728
12767
  setup(__props) {
12729
12768
  return (_ctx, _cache) => {
12730
- return openBlock(), createBlock(_sfc_main$1a, {
12769
+ return openBlock(), createBlock(_sfc_main$1b, {
12731
12770
  item: _ctx.item,
12732
12771
  options: _ctx.options,
12733
12772
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -12736,14 +12775,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12736
12775
  };
12737
12776
  }
12738
12777
  });
12739
- const _hoisted_1$q = ["innerHTML"];
12740
- const _hoisted_2$j = ["title"];
12778
+ const _hoisted_1$r = ["innerHTML"];
12779
+ const _hoisted_2$k = ["title"];
12741
12780
  const _hoisted_3$e = {
12742
12781
  key: 0,
12743
12782
  class: "lupa-search-results-product-title-text"
12744
12783
  };
12745
12784
  const _hoisted_4$9 = ["href"];
12746
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
12785
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12747
12786
  __name: "SearchResultsProductTitle",
12748
12787
  props: {
12749
12788
  item: {},
@@ -12776,7 +12815,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12776
12815
  class: "lupa-search-results-product-title",
12777
12816
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12778
12817
  innerHTML: title.value
12779
- }, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
12818
+ }, null, 12, _hoisted_1$r)) : (openBlock(), createElementBlock("div", {
12780
12819
  key: 1,
12781
12820
  class: "lupa-search-results-product-title",
12782
12821
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -12789,12 +12828,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12789
12828
  class: "lupa-search-results-product-title-text lupa-title-link",
12790
12829
  onClick: handleNavigation
12791
12830
  }, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
12792
- ], 12, _hoisted_2$j));
12831
+ ], 12, _hoisted_2$k));
12793
12832
  };
12794
12833
  }
12795
12834
  });
12796
- const _hoisted_1$p = ["innerHTML"];
12797
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
12835
+ const _hoisted_1$q = ["innerHTML"];
12836
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12798
12837
  __name: "SearchResultsProductDescription",
12799
12838
  props: {
12800
12839
  item: {},
@@ -12818,7 +12857,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12818
12857
  class: "lupa-search-results-product-description",
12819
12858
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12820
12859
  innerHTML: description.value
12821
- }, null, 12, _hoisted_1$p)) : (openBlock(), createElementBlock("div", {
12860
+ }, null, 12, _hoisted_1$q)) : (openBlock(), createElementBlock("div", {
12822
12861
  key: 1,
12823
12862
  class: "lupa-search-results-product-description",
12824
12863
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -12826,15 +12865,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12826
12865
  };
12827
12866
  }
12828
12867
  });
12829
- const _hoisted_1$o = { id: "lupa-search-results-rating" };
12830
- const _hoisted_2$i = { class: "lupa-ratings" };
12868
+ const _hoisted_1$p = { id: "lupa-search-results-rating" };
12869
+ const _hoisted_2$j = { class: "lupa-ratings" };
12831
12870
  const _hoisted_3$d = { class: "lupa-ratings-base" };
12832
12871
  const _hoisted_4$8 = ["innerHTML"];
12833
12872
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
12834
12873
  const _hoisted_6$3 = ["innerHTML"];
12835
12874
  const _hoisted_7$2 = ["href"];
12836
12875
  const STAR_COUNT = 5;
12837
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
12876
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12838
12877
  __name: "SearchResultsProductRating",
12839
12878
  props: {
12840
12879
  item: {},
@@ -12865,8 +12904,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12865
12904
  return generateLink(props.options.links.ratingDetails, props.item);
12866
12905
  });
12867
12906
  return (_ctx, _cache) => {
12868
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
12869
- createBaseVNode("div", _hoisted_2$i, [
12907
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
12908
+ createBaseVNode("div", _hoisted_2$j, [
12870
12909
  createBaseVNode("div", _hoisted_3$d, [
12871
12910
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
12872
12911
  return openBlock(), createElementBlock("div", {
@@ -12899,11 +12938,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12899
12938
  };
12900
12939
  }
12901
12940
  });
12902
- const _hoisted_1$n = {
12941
+ const _hoisted_1$o = {
12903
12942
  class: "lupa-search-results-product-regular-price",
12904
12943
  "data-cy": "lupa-search-results-product-regular-price"
12905
12944
  };
12906
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
12945
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12907
12946
  __name: "SearchResultsProductRegularPrice",
12908
12947
  props: {
12909
12948
  item: {},
@@ -12921,15 +12960,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12921
12960
  );
12922
12961
  });
12923
12962
  return (_ctx, _cache) => {
12924
- return openBlock(), createElementBlock("div", _hoisted_1$n, toDisplayString(price.value), 1);
12963
+ return openBlock(), createElementBlock("div", _hoisted_1$o, toDisplayString(price.value), 1);
12925
12964
  };
12926
12965
  }
12927
12966
  });
12928
- const _hoisted_1$m = {
12967
+ const _hoisted_1$n = {
12929
12968
  class: "lupa-search-results-product-price",
12930
12969
  "data-cy": "lupa-search-results-product-price"
12931
12970
  };
12932
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
12971
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
12933
12972
  __name: "SearchResultsProductPrice",
12934
12973
  props: {
12935
12974
  item: {},
@@ -12947,16 +12986,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12947
12986
  );
12948
12987
  });
12949
12988
  return (_ctx, _cache) => {
12950
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
12989
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
12951
12990
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
12952
12991
  ]);
12953
12992
  };
12954
12993
  }
12955
12994
  });
12956
- const _hoisted_1$l = { class: "lupa-search-results-add-to-cart-wrapper" };
12957
- const _hoisted_2$h = { class: "lupa-search-results-product-addtocart" };
12995
+ const _hoisted_1$m = { class: "lupa-search-results-add-to-cart-wrapper" };
12996
+ const _hoisted_2$i = { class: "lupa-search-results-product-addtocart" };
12958
12997
  const _hoisted_3$c = ["onClick", "disabled"];
12959
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
12998
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
12960
12999
  __name: "SearchResultsProductAddToCart",
12961
13000
  props: {
12962
13001
  item: {},
@@ -12983,8 +13022,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12983
13022
  loading.value = false;
12984
13023
  });
12985
13024
  return (_ctx, _cache) => {
12986
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
12987
- createBaseVNode("div", _hoisted_2$h, [
13025
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
13026
+ createBaseVNode("div", _hoisted_2$i, [
12988
13027
  createBaseVNode("button", {
12989
13028
  onClick: withModifiers(handleClick, ["stop"]),
12990
13029
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -12996,12 +13035,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12996
13035
  };
12997
13036
  }
12998
13037
  });
12999
- const _hoisted_1$k = ["innerHTML"];
13000
- const _hoisted_2$g = { key: 0 };
13038
+ const _hoisted_1$l = ["innerHTML"];
13039
+ const _hoisted_2$h = { key: 0 };
13001
13040
  const _hoisted_3$b = { key: 1 };
13002
13041
  const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
13003
13042
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
13004
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
13043
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
13005
13044
  __name: "SearchResultsProductCustom",
13006
13045
  props: {
13007
13046
  item: {},
@@ -13039,11 +13078,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13039
13078
  key: 0,
13040
13079
  class: className.value,
13041
13080
  innerHTML: text.value
13042
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k)) : (openBlock(), createElementBlock("div", mergeProps({
13081
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$l)) : (openBlock(), createElementBlock("div", mergeProps({
13043
13082
  key: 1,
13044
13083
  class: className.value
13045
13084
  }, 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, [
13085
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
13047
13086
  createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
13048
13087
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
13049
13088
  ]))
@@ -13051,8 +13090,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13051
13090
  };
13052
13091
  }
13053
13092
  });
13054
- const _hoisted_1$j = ["innerHTML"];
13055
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
13093
+ const _hoisted_1$k = ["innerHTML"];
13094
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
13056
13095
  __name: "SearchResultsProductCustomHtmlElement",
13057
13096
  props: {
13058
13097
  item: {},
@@ -13076,15 +13115,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13076
13115
  return openBlock(), createElementBlock("div", mergeProps({
13077
13116
  class: className.value,
13078
13117
  innerHTML: text.value
13079
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$j);
13118
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$k);
13080
13119
  };
13081
13120
  }
13082
13121
  });
13083
- const _hoisted_1$i = { id: "lupa-search-results-rating" };
13084
- const _hoisted_2$f = ["innerHTML"];
13122
+ const _hoisted_1$j = { id: "lupa-search-results-rating" };
13123
+ const _hoisted_2$g = ["innerHTML"];
13085
13124
  const _hoisted_3$a = { class: "lupa-ratings" };
13086
13125
  const _hoisted_4$6 = ["href"];
13087
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
13126
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
13088
13127
  __name: "SearchResultsProductSingleStarRating",
13089
13128
  props: {
13090
13129
  item: {},
@@ -13112,11 +13151,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13112
13151
  return RATING_STAR_HTML;
13113
13152
  });
13114
13153
  return (_ctx, _cache) => {
13115
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
13154
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
13116
13155
  createBaseVNode("div", {
13117
13156
  innerHTML: star.value,
13118
13157
  class: "lupa-rating lupa-rating-highlighted"
13119
- }, null, 8, _hoisted_2$f),
13158
+ }, null, 8, _hoisted_2$g),
13120
13159
  createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
13121
13160
  createBaseVNode("a", {
13122
13161
  href: ratingLink.value,
@@ -13128,19 +13167,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13128
13167
  });
13129
13168
  const __default__ = {
13130
13169
  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__), {
13170
+ SearchResultsProductImage: _sfc_main$u,
13171
+ SearchResultsProductTitle: _sfc_main$t,
13172
+ SearchResultsProductDescription: _sfc_main$s,
13173
+ SearchResultsProductRating: _sfc_main$r,
13174
+ SearchResultsProductRegularPrice: _sfc_main$q,
13175
+ SearchResultsProductPrice: _sfc_main$p,
13176
+ SearchResultsProductAddToCart: _sfc_main$o,
13177
+ SearchResultsProductCustom: _sfc_main$n,
13178
+ SearchResultsProductCustomHtmlElement: _sfc_main$m,
13179
+ SearchResultsProductSingleStarRating: _sfc_main$l
13180
+ }
13181
+ };
13182
+ const _sfc_main$k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13144
13183
  __name: "SearchResultsProductCardElement",
13145
13184
  props: {
13146
13185
  item: {},
@@ -13210,13 +13249,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13210
13249
  };
13211
13250
  }
13212
13251
  }));
13213
- const _hoisted_1$h = ["href"];
13214
- const _hoisted_2$e = {
13252
+ const _hoisted_1$i = ["href"];
13253
+ const _hoisted_2$f = {
13215
13254
  key: 0,
13216
13255
  class: "lupa-out-of-stock"
13217
13256
  };
13218
13257
  const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
13219
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
13258
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
13220
13259
  __name: "SearchResultsProductCard",
13221
13260
  props: {
13222
13261
  product: {},
@@ -13361,7 +13400,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13361
13400
  class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
13362
13401
  onClick: handleClick
13363
13402
  }, [
13364
- createVNode(_sfc_main$u, { options: badgesOptions.value }, null, 8, ["options"]),
13403
+ createVNode(_sfc_main$v, { options: badgesOptions.value }, null, 8, ["options"]),
13365
13404
  createBaseVNode("div", {
13366
13405
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
13367
13406
  }, [
@@ -13371,7 +13410,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13371
13410
  onClick: handleNavigation
13372
13411
  }, [
13373
13412
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
13374
- return openBlock(), createBlock(_sfc_main$j, {
13413
+ return openBlock(), createBlock(_sfc_main$k, {
13375
13414
  class: "lupa-search-results-product-element",
13376
13415
  item: _ctx.product,
13377
13416
  element,
@@ -13381,16 +13420,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13381
13420
  link: link.value
13382
13421
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
13383
13422
  }), 128)),
13384
- createVNode(_sfc_main$u, {
13423
+ createVNode(_sfc_main$v, {
13385
13424
  options: badgesOptions.value,
13386
13425
  position: "image",
13387
13426
  class: "lupa-image-badges"
13388
13427
  }, 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),
13428
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13429
+ ], 8, _hoisted_1$i),
13391
13430
  createBaseVNode("div", _hoisted_3$9, [
13392
13431
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
13393
- return openBlock(), createBlock(_sfc_main$j, {
13432
+ return openBlock(), createBlock(_sfc_main$k, {
13394
13433
  class: "lupa-search-results-product-element",
13395
13434
  item: _ctx.product,
13396
13435
  element,
@@ -13408,7 +13447,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13408
13447
  class: normalizeClass("lupa-element-group-" + group)
13409
13448
  }, [
13410
13449
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
13411
- return openBlock(), createBlock(_sfc_main$j, {
13450
+ return openBlock(), createBlock(_sfc_main$k, {
13412
13451
  class: "lupa-search-results-product-element",
13413
13452
  item: _ctx.product,
13414
13453
  element,
@@ -13426,11 +13465,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13426
13465
  };
13427
13466
  }
13428
13467
  });
13429
- const _hoisted_1$g = {
13468
+ const _hoisted_1$h = {
13430
13469
  id: "lupa-search-results-similar-queries",
13431
13470
  "data-cy": "lupa-search-results-similar-queries"
13432
13471
  };
13433
- const _hoisted_2$d = { class: "lupa-similar-queries-label" };
13472
+ const _hoisted_2$e = { class: "lupa-similar-queries-label" };
13434
13473
  const _hoisted_3$8 = {
13435
13474
  class: "lupa-similar-query-label",
13436
13475
  "data-cy": "lupa-similar-query-label"
@@ -13442,7 +13481,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13442
13481
  class: "lupa-products",
13443
13482
  "data-cy": "lupa-products"
13444
13483
  };
13445
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
13484
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
13446
13485
  __name: "SearchResultsSimilarQueries",
13447
13486
  props: {
13448
13487
  labels: {},
@@ -13472,8 +13511,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13472
13511
  paramsStore.goToResults({ searchText, facet });
13473
13512
  };
13474
13513
  return (_ctx, _cache) => {
13475
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
13476
- createBaseVNode("div", _hoisted_2$d, toDisplayString(_ctx.labels.similarQueries), 1),
13514
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
13515
+ createBaseVNode("div", _hoisted_2$e, toDisplayString(_ctx.labels.similarQueries), 1),
13477
13516
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
13478
13517
  return openBlock(), createElementBlock("div", { key: index }, [
13479
13518
  createBaseVNode("div", _hoisted_3$8, [
@@ -13492,7 +13531,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13492
13531
  ]),
13493
13532
  createBaseVNode("div", _hoisted_7$1, [
13494
13533
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
13495
- return openBlock(), createBlock(_sfc_main$i, {
13534
+ return openBlock(), createBlock(_sfc_main$j, {
13496
13535
  style: normalizeStyle(_ctx.columnSize),
13497
13536
  key: getDocumentKey(index2, product),
13498
13537
  product,
@@ -13506,15 +13545,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13506
13545
  };
13507
13546
  }
13508
13547
  });
13509
- const _hoisted_1$f = {
13548
+ const _hoisted_1$g = {
13510
13549
  key: 0,
13511
13550
  class: "lupa-results-additional-panel"
13512
13551
  };
13513
- const _hoisted_2$c = {
13552
+ const _hoisted_2$d = {
13514
13553
  class: "lupa-results-additional-panel-items",
13515
13554
  "data-cy": "lupa-results-additional-panel-items"
13516
13555
  };
13517
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
13556
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
13518
13557
  __name: "AdditionalPanel",
13519
13558
  props: {
13520
13559
  panel: {},
@@ -13586,10 +13625,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13586
13625
  handleQueryChange();
13587
13626
  });
13588
13627
  return (_ctx, _cache) => {
13589
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
13590
- createBaseVNode("div", _hoisted_2$c, [
13628
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
13629
+ createBaseVNode("div", _hoisted_2$d, [
13591
13630
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
13592
- return openBlock(), createBlock(_sfc_main$i, {
13631
+ return openBlock(), createBlock(_sfc_main$j, {
13593
13632
  key: index,
13594
13633
  product: item,
13595
13634
  options: _ctx.panel,
@@ -13607,11 +13646,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13607
13646
  };
13608
13647
  }
13609
13648
  });
13610
- const _hoisted_1$e = {
13649
+ const _hoisted_1$f = {
13611
13650
  key: 0,
13612
13651
  class: "lupa-results-additional-panels"
13613
13652
  };
13614
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
13653
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
13615
13654
  __name: "AdditionalPanels",
13616
13655
  props: {
13617
13656
  options: {},
@@ -13628,9 +13667,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13628
13667
  return locationPanels.value.length > 0;
13629
13668
  });
13630
13669
  return (_ctx, _cache) => {
13631
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
13670
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
13632
13671
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
13633
- return openBlock(), createBlock(_sfc_main$g, {
13672
+ return openBlock(), createBlock(_sfc_main$h, {
13634
13673
  key: panel.queryKey,
13635
13674
  panel,
13636
13675
  options: _ctx.sdkOptions
@@ -13647,21 +13686,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13647
13686
  }
13648
13687
  return target;
13649
13688
  };
13650
- const _sfc_main$e = {};
13651
- const _hoisted_1$d = { class: "lupa-spinner-wrapper" };
13652
- const _hoisted_2$b = { class: "lupa-spinner" };
13689
+ const _sfc_main$f = {};
13690
+ const _hoisted_1$e = { class: "lupa-spinner-wrapper" };
13691
+ const _hoisted_2$c = { class: "lupa-spinner" };
13653
13692
  function _sfc_render(_ctx, _cache) {
13654
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
13655
- createBaseVNode("div", _hoisted_2$b, [
13693
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
13694
+ createBaseVNode("div", _hoisted_2$c, [
13656
13695
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
13657
13696
  return createBaseVNode("div", { key: x });
13658
13697
  }), 64))
13659
13698
  ])
13660
13699
  ]);
13661
13700
  }
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 = {
13701
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
13702
+ const _hoisted_1$d = { id: "lupa-search-results-products" };
13703
+ const _hoisted_2$b = {
13665
13704
  class: "lupa-products",
13666
13705
  "data-cy": "lupa-products"
13667
13706
  };
@@ -13676,7 +13715,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13676
13715
  "data-cy": "lupa-no-results"
13677
13716
  };
13678
13717
  const _hoisted_5$3 = { key: 4 };
13679
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
13718
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13680
13719
  __name: "SearchResultsProducts",
13681
13720
  props: {
13682
13721
  options: {},
@@ -13767,23 +13806,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13767
13806
  };
13768
13807
  return (_ctx, _cache) => {
13769
13808
  var _a;
13770
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
13809
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
13771
13810
  unref(loading) && !unref(isMobileSidebarVisible) ? (openBlock(), createBlock(Spinner, {
13772
13811
  key: 0,
13773
13812
  class: "lupa-loader"
13774
13813
  })) : createCommentVNode("", true),
13775
13814
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
13776
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$G, {
13815
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
13777
13816
  key: 0,
13778
13817
  options: (_a = _ctx.options.filters) != null ? _a : {}
13779
13818
  }, null, 8, ["options"])) : createCommentVNode("", true),
13780
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
13819
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$B, {
13781
13820
  key: 1,
13782
13821
  class: "lupa-toolbar-mobile",
13783
13822
  options: _ctx.options,
13784
13823
  "pagination-location": "top"
13785
13824
  }, null, 8, ["options"])) : createCommentVNode("", true),
13786
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$T, {
13825
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$U, {
13787
13826
  key: 2,
13788
13827
  class: normalizeClass(currentFiltersClass.value),
13789
13828
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -13791,18 +13830,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13791
13830
  expandable: !desktopFiltersExpanded.value
13792
13831
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
13793
13832
  ], 64)) : createCommentVNode("", true),
13794
- createVNode(_sfc_main$f, {
13833
+ createVNode(_sfc_main$g, {
13795
13834
  options: _ctx.options,
13796
13835
  location: "top",
13797
13836
  sdkOptions: _ctx.options.options
13798
13837
  }, null, 8, ["options", "sdkOptions"]),
13799
13838
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
13800
- createVNode(_sfc_main$A, {
13839
+ createVNode(_sfc_main$B, {
13801
13840
  class: "lupa-toolbar-top",
13802
13841
  options: _ctx.options,
13803
13842
  "pagination-location": "top"
13804
13843
  }, null, 8, ["options"]),
13805
- createBaseVNode("div", _hoisted_2$a, [
13844
+ createBaseVNode("div", _hoisted_2$b, [
13806
13845
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
13807
13846
  return renderSlot(_ctx.$slots, "productCard", {
13808
13847
  style: normalizeStyle(columnSize.value),
@@ -13811,7 +13850,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13811
13850
  options: productCardOptions.value
13812
13851
  });
13813
13852
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
13814
- return openBlock(), createBlock(_sfc_main$i, {
13853
+ return openBlock(), createBlock(_sfc_main$j, {
13815
13854
  style: normalizeStyle(columnSize.value),
13816
13855
  key: getProductKeyAction(index, product),
13817
13856
  product,
@@ -13827,12 +13866,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13827
13866
  onClick: goToFirstPage
13828
13867
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
13829
13868
  ])) : createCommentVNode("", true),
13830
- createVNode(_sfc_main$A, {
13869
+ createVNode(_sfc_main$B, {
13831
13870
  class: "lupa-toolbar-bottom",
13832
13871
  options: _ctx.options,
13833
13872
  "pagination-location": "bottom"
13834
13873
  }, null, 8, ["options"]),
13835
- createVNode(_sfc_main$f, {
13874
+ createVNode(_sfc_main$g, {
13836
13875
  options: _ctx.options,
13837
13876
  location: "bottom",
13838
13877
  sdkOptions: _ctx.options.options
@@ -13842,7 +13881,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13842
13881
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
13843
13882
  ])) : createCommentVNode("", true),
13844
13883
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
13845
- createVNode(_sfc_main$h, {
13884
+ createVNode(_sfc_main$i, {
13846
13885
  labels: similarQueriesLabels.value,
13847
13886
  columnSize: columnSize.value,
13848
13887
  productCardOptions: productCardOptions.value
@@ -13853,13 +13892,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13853
13892
  };
13854
13893
  }
13855
13894
  });
13856
- const _hoisted_1$b = { class: "lupa-top-mobile-filter-wrapper" };
13857
- const _hoisted_2$9 = {
13895
+ const _hoisted_1$c = { class: "lupa-top-mobile-filter-wrapper" };
13896
+ const _hoisted_2$a = {
13858
13897
  key: 0,
13859
13898
  class: "lupa-category-back"
13860
13899
  };
13861
13900
  const _hoisted_3$6 = ["href"];
13862
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
13901
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13863
13902
  __name: "CategoryTopFilters",
13864
13903
  props: {
13865
13904
  options: {}
@@ -13891,15 +13930,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13891
13930
  return openBlock(), createElementBlock("div", {
13892
13931
  class: normalizeClass(["lupa-category-top-mobile-filters", { "lupa-has-back-button": hasBackButton.value }])
13893
13932
  }, [
13894
- createBaseVNode("div", _hoisted_1$b, [
13895
- hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
13933
+ createBaseVNode("div", _hoisted_1$c, [
13934
+ hasBackButton.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
13896
13935
  createBaseVNode("a", {
13897
13936
  "data-cy": "lupa-category-back",
13898
13937
  href: backUrlLink.value,
13899
13938
  onClick: handleNavigationBack
13900
13939
  }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
13901
13940
  ])) : createCommentVNode("", true),
13902
- createVNode(_sfc_main$A, {
13941
+ createVNode(_sfc_main$B, {
13903
13942
  class: "lupa-toolbar-mobile",
13904
13943
  "pagination-location": "top",
13905
13944
  options: _ctx.options
@@ -13909,18 +13948,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13909
13948
  };
13910
13949
  }
13911
13950
  });
13912
- const _hoisted_1$a = {
13951
+ const _hoisted_1$b = {
13913
13952
  key: 0,
13914
13953
  class: "lupa-container-title-summary-mobile"
13915
13954
  };
13916
- const _hoisted_2$8 = {
13955
+ const _hoisted_2$9 = {
13917
13956
  key: 4,
13918
13957
  id: "lupa-search-results",
13919
13958
  class: "top-layout-wrapper"
13920
13959
  };
13921
13960
  const _hoisted_3$5 = { class: "search-content" };
13922
13961
  const _hoisted_4$3 = { id: "lupa-search-results" };
13923
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
13962
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13924
13963
  __name: "SearchResults",
13925
13964
  props: {
13926
13965
  options: {},
@@ -14109,40 +14148,40 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14109
14148
  return openBlock(), createElementBlock("div", {
14110
14149
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
14111
14150
  }, [
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, {
14151
+ _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
14152
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14153
+ createVNode(_sfc_main$W, {
14115
14154
  "show-summary": true,
14116
14155
  options: _ctx.options,
14117
14156
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
14118
14157
  }, null, 8, ["options", "is-product-list"])
14119
14158
  ])) : createCommentVNode("", true),
14120
- isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$c, {
14159
+ isTitleResultTopPosition.value ? (openBlock(), createBlock(_sfc_main$d, {
14121
14160
  key: 1,
14122
14161
  options: _ctx.options
14123
14162
  }, null, 8, ["options"])) : createCommentVNode("", true),
14124
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$I, {
14163
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$J, {
14125
14164
  key: 2,
14126
14165
  options: _ctx.options.filters
14127
14166
  }, null, 8, ["options"])) : createCommentVNode("", true),
14128
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$H, {
14167
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$I, {
14129
14168
  key: 3,
14130
14169
  breadcrumbs: _ctx.options.breadcrumbs
14131
14170
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
14132
- isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
14133
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
14171
+ isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
14172
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
14134
14173
  key: 0,
14135
14174
  options: (_b = _ctx.options.filters) != null ? _b : {},
14136
14175
  ref_key: "searchResultsFilters",
14137
14176
  ref: searchResultsFilters
14138
14177
  }, null, 8, ["options"])) : createCommentVNode("", true),
14139
14178
  createBaseVNode("div", _hoisted_3$5, [
14140
- createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14141
- createVNode(_sfc_main$V, {
14179
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14180
+ createVNode(_sfc_main$W, {
14142
14181
  options: _ctx.options,
14143
14182
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
14144
14183
  }, null, 8, ["options", "is-product-list"]),
14145
- createVNode(_sfc_main$d, {
14184
+ createVNode(_sfc_main$e, {
14146
14185
  options: _ctx.options,
14147
14186
  ssr: ssrEnabled.value
14148
14187
  }, {
@@ -14153,19 +14192,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14153
14192
  }, 8, ["options", "ssr"])
14154
14193
  ])
14155
14194
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
14156
- createVNode(_sfc_main$X, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14157
- createVNode(_sfc_main$V, {
14195
+ createVNode(_sfc_main$Y, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14196
+ createVNode(_sfc_main$W, {
14158
14197
  options: _ctx.options,
14159
14198
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
14160
14199
  }, null, 8, ["options", "is-product-list"]),
14161
14200
  createBaseVNode("div", _hoisted_4$3, [
14162
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$J, {
14201
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$K, {
14163
14202
  key: 0,
14164
14203
  options: (_e = _ctx.options.filters) != null ? _e : {},
14165
14204
  ref_key: "searchResultsFilters",
14166
14205
  ref: searchResultsFilters
14167
14206
  }, null, 8, ["options"])) : createCommentVNode("", true),
14168
- createVNode(_sfc_main$d, {
14207
+ createVNode(_sfc_main$e, {
14169
14208
  options: _ctx.options,
14170
14209
  ssr: ssrEnabled.value
14171
14210
  }, createSlots({
@@ -14188,12 +14227,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14188
14227
  };
14189
14228
  }
14190
14229
  });
14191
- const _hoisted_1$9 = {
14230
+ const _hoisted_1$a = {
14192
14231
  key: 0,
14193
14232
  class: "lupa-category-overview"
14194
14233
  };
14195
- const _hoisted_2$7 = ["innerHTML"];
14196
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
14234
+ const _hoisted_2$8 = ["innerHTML"];
14235
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
14197
14236
  __name: "CategoryDescription",
14198
14237
  props: {
14199
14238
  options: {}
@@ -14209,16 +14248,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14209
14248
  return Boolean((_b = (_a = props.options.categories) == null ? void 0 : _a.current) == null ? void 0 : _b.description);
14210
14249
  });
14211
14250
  return (_ctx, _cache) => {
14212
- return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
14251
+ return overviewVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
14213
14252
  createBaseVNode("div", {
14214
14253
  class: "lupa-category-description",
14215
14254
  innerHTML: description.value
14216
- }, null, 8, _hoisted_2$7)
14255
+ }, null, 8, _hoisted_2$8)
14217
14256
  ])) : createCommentVNode("", true);
14218
14257
  };
14219
14258
  }
14220
14259
  });
14221
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
14260
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
14222
14261
  __name: "ProductList",
14223
14262
  props: {
14224
14263
  options: {}
@@ -14240,7 +14279,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14240
14279
  __expose({ fetch: fetch2 });
14241
14280
  return (_ctx, _cache) => {
14242
14281
  return openBlock(), createElementBlock("div", null, [
14243
- createVNode(_sfc_main$b, {
14282
+ createVNode(_sfc_main$c, {
14244
14283
  options: componentOptions.value,
14245
14284
  "initial-filters": _ctx.options.initialFilters,
14246
14285
  "is-product-list": true,
@@ -14248,7 +14287,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14248
14287
  ref: searchResults2
14249
14288
  }, {
14250
14289
  default: withCtx(() => [
14251
- createVNode(_sfc_main$a, { options: _ctx.options }, null, 8, ["options"])
14290
+ createVNode(_sfc_main$b, { options: _ctx.options }, null, 8, ["options"])
14252
14291
  ]),
14253
14292
  _: 1
14254
14293
  }, 8, ["options", "initial-filters"])
@@ -19739,9 +19778,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19739
19778
  }).call(commonjsGlobal$1);
19740
19779
  })(lodash$1, lodash$1.exports);
19741
19780
  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({
19781
+ const _hoisted_1$9 = ["onClick"];
19782
+ const _hoisted_2$7 = { class: "lupa-search-box-container" };
19783
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
19745
19784
  __name: "SearchContainer",
19746
19785
  props: {
19747
19786
  options: {}
@@ -19786,8 +19825,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19786
19825
  class: "lupa-search-container",
19787
19826
  onClick: withModifiers(innerClick, ["stop"])
19788
19827
  }, [
19789
- createBaseVNode("div", _hoisted_2$6, [
19790
- createVNode(_sfc_main$Y, {
19828
+ createBaseVNode("div", _hoisted_2$7, [
19829
+ createVNode(_sfc_main$Z, {
19791
19830
  options: fullSearchBoxOptions.value,
19792
19831
  "is-search-container": true,
19793
19832
  ref_key: "searchBox",
@@ -19795,13 +19834,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19795
19834
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
19796
19835
  }, null, 8, ["options"])
19797
19836
  ]),
19798
- createVNode(_sfc_main$b, {
19837
+ createVNode(_sfc_main$c, {
19799
19838
  options: fullSearchResultsOptions.value,
19800
19839
  "is-container": true,
19801
19840
  ref_key: "searchResults",
19802
19841
  ref: searchResults2
19803
19842
  }, null, 8, ["options"])
19804
- ], 8, _hoisted_1$8)
19843
+ ], 8, _hoisted_1$9)
19805
19844
  ]);
19806
19845
  };
19807
19846
  }
@@ -20504,13 +20543,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20504
20543
  };
20505
20544
  }
20506
20545
  });
20507
- const _hoisted_1$7 = { class: "lupa-search-product-recommendations-wrapper" };
20508
- const _hoisted_2$5 = {
20546
+ const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
20547
+ const _hoisted_2$6 = {
20509
20548
  key: 0,
20510
20549
  class: "lupa-recommended-products",
20511
20550
  "data-cy": "lupa-recommended-products"
20512
20551
  };
20513
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
20552
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
20514
20553
  __name: "Recommendations",
20515
20554
  props: {
20516
20555
  options: {}
@@ -20596,8 +20635,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20596
20635
  });
20597
20636
  __expose({ fetch: fetch2 });
20598
20637
  return (_ctx, _cache) => {
20599
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
20600
- !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
20638
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
20639
+ !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
20601
20640
  createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
20602
20641
  addons: withCtx(() => [
20603
20642
  createVNode(unref(Navigation))
@@ -20608,7 +20647,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20608
20647
  key: getProductKeyAction(index, product)
20609
20648
  }, {
20610
20649
  default: withCtx(() => [
20611
- createVNode(_sfc_main$i, {
20650
+ createVNode(_sfc_main$j, {
20612
20651
  product,
20613
20652
  options: _ctx.options,
20614
20653
  "click-tracking-settings": clickTrackingSettings.value
@@ -20625,19 +20664,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20625
20664
  };
20626
20665
  }
20627
20666
  });
20628
- const _hoisted_1$6 = { class: "lupa-chat-spinner" };
20629
- const _hoisted_2$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20667
+ const _hoisted_1$7 = { class: "lupa-chat-spinner" };
20668
+ const _hoisted_2$5 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20630
20669
  const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20631
20670
  const _hoisted_4$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20632
20671
  const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
20633
20672
  const _hoisted_6$1 = [
20634
- _hoisted_2$4,
20673
+ _hoisted_2$5,
20635
20674
  _hoisted_3$4,
20636
20675
  _hoisted_4$2,
20637
20676
  _hoisted_5$2
20638
20677
  ];
20639
20678
  const _hoisted_7 = { class: "lupa-chat-spinner-message" };
20640
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
20679
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
20641
20680
  __name: "ChatSpinner",
20642
20681
  props: {
20643
20682
  small: { type: Boolean },
@@ -20645,7 +20684,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20645
20684
  },
20646
20685
  setup(__props) {
20647
20686
  return (_ctx, _cache) => {
20648
- return openBlock(), createElementBlock("section", _hoisted_1$6, [
20687
+ return openBlock(), createElementBlock("section", _hoisted_1$7, [
20649
20688
  createBaseVNode("div", {
20650
20689
  class: normalizeClass([{ small: _ctx.small }, "lds-ring"])
20651
20690
  }, _hoisted_6$1, 2),
@@ -20654,13 +20693,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20654
20693
  };
20655
20694
  }
20656
20695
  });
20657
- const _hoisted_1$5 = { class: "lupa-chat-input-container" };
20658
- const _hoisted_2$3 = { id: "lupa-search-box-input" };
20696
+ const _hoisted_1$6 = { class: "lupa-chat-input-container" };
20697
+ const _hoisted_2$4 = { id: "lupa-search-box-input" };
20659
20698
  const _hoisted_3$3 = {
20660
20699
  key: 0,
20661
20700
  class: "lupa-chat-form-submit"
20662
20701
  };
20663
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20702
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
20664
20703
  __name: "ChatInput",
20665
20704
  props: {
20666
20705
  disabled: { type: Boolean }
@@ -20673,13 +20712,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20673
20712
  inputValue.value = "";
20674
20713
  };
20675
20714
  return (_ctx, _cache) => {
20676
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
20715
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
20677
20716
  createBaseVNode("form", {
20678
20717
  action: "javascript:void(0);",
20679
20718
  class: "chat-input-form",
20680
20719
  onSubmit: submit
20681
20720
  }, [
20682
- createBaseVNode("div", _hoisted_2$3, [
20721
+ createBaseVNode("div", _hoisted_2$4, [
20683
20722
  withDirectives(createBaseVNode("input", {
20684
20723
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
20685
20724
  ref: "mainInput",
@@ -20692,7 +20731,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20692
20731
  [vModelText, inputValue.value]
20693
20732
  ])
20694
20733
  ]),
20695
- !_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$6, {
20734
+ !_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$7, {
20696
20735
  key: 1,
20697
20736
  small: true
20698
20737
  }))
@@ -20821,15 +20860,36 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20821
20860
  }
20822
20861
  return history;
20823
20862
  };
20863
+ const getTextResponseChunkStream = (options, { initialQuery, messageHistory }, onChunkReceived) => {
20864
+ var _a;
20865
+ fetch(`${getApiUrl(options.environment, options.customBaseUrl)}chat/text`, __spreadProps2(__spreadValues2({}, defaultConfig), {
20866
+ body: JSON.stringify({ initialQuery, messageHistory }),
20867
+ headers: __spreadValues2(__spreadValues2({}, headers), (_a = options.customHeaders) != null ? _a : {})
20868
+ })).then((response) => {
20869
+ const reader = response.body.getReader();
20870
+ return reader.read().then(function processStream({ done, value }) {
20871
+ if (done) {
20872
+ return "";
20873
+ }
20874
+ const result = new TextDecoder("utf-8").decode(value);
20875
+ const sanitezedResult = result.replace("\n", '<div class="br"></div>');
20876
+ onChunkReceived(sanitezedResult);
20877
+ return reader.read().then(processStream);
20878
+ });
20879
+ }).catch((error) => {
20880
+ console.error(`Fetch Error: ${error}`);
20881
+ });
20882
+ };
20824
20883
  const ChatService = {
20825
20884
  suggestSearchChatPhrases,
20826
20885
  suggestPhraseAlternatives,
20827
20886
  suggestSimplifiedPhrases,
20828
20887
  suggestBestProductMatches,
20829
- prepareChatHistory
20888
+ prepareChatHistory,
20889
+ getTextResponseChunkStream
20830
20890
  };
20831
- const _hoisted_1$4 = { class: "lupa-chat-results" };
20832
- const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
20891
+ const _hoisted_1$5 = { class: "lupa-chat-results" };
20892
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20833
20893
  __name: "ChatPhraseProductsList",
20834
20894
  props: {
20835
20895
  options: {},
@@ -20841,9 +20901,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20841
20901
  return getProductKey(`${index}`, product, props.options.idKey);
20842
20902
  };
20843
20903
  return (_ctx, _cache) => {
20844
- return openBlock(), createElementBlock("section", _hoisted_1$4, [
20904
+ return openBlock(), createElementBlock("section", _hoisted_1$5, [
20845
20905
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
20846
- return openBlock(), createBlock(_sfc_main$i, {
20906
+ return openBlock(), createBlock(_sfc_main$j, {
20847
20907
  class: "lupa-chat-product-card",
20848
20908
  key: getProductKeyAction(index, product),
20849
20909
  product,
@@ -20854,8 +20914,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20854
20914
  };
20855
20915
  }
20856
20916
  });
20857
- const _hoisted_1$3 = { class: "lupa-chat-content-entry-phrase" };
20858
- const _hoisted_2$2 = { class: "lupa-chat-phrase-title" };
20917
+ const _hoisted_1$4 = { class: "lupa-chat-content-entry-phrase" };
20918
+ const _hoisted_2$3 = { class: "lupa-chat-phrase-title" };
20859
20919
  const _hoisted_3$2 = {
20860
20920
  key: 0,
20861
20921
  class: "alert"
@@ -20868,7 +20928,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20868
20928
  const _hoisted_6 = [
20869
20929
  _hoisted_5$1
20870
20930
  ];
20871
- const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
20931
+ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
20872
20932
  __name: "ChatContentEntryPhrase",
20873
20933
  props: {
20874
20934
  options: {},
@@ -20948,20 +21008,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20948
21008
  return phrases != null ? phrases : [];
20949
21009
  });
20950
21010
  return (_ctx, _cache) => {
20951
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
20952
- createBaseVNode("div", _hoisted_2$2, [
21011
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
21012
+ createBaseVNode("div", _hoisted_2$3, [
20953
21013
  createBaseVNode("h3", null, toDisplayString(displayPhrase.value), 1),
20954
21014
  createBaseVNode("sub", null, toDisplayString(usedAlternativePhrases.value.join(", ")), 1),
20955
21015
  usedPartialResults.value ? (openBlock(), createElementBlock("sub", _hoisted_3$2, "Including partial matches - which might not be what you are looking for")) : createCommentVNode("", true)
20956
21016
  ]),
20957
21017
  createBaseVNode("div", null, [
20958
- createVNode(_sfc_main$4$1, {
21018
+ createVNode(_sfc_main$5, {
20959
21019
  "search-results": searchResults2.value,
20960
21020
  options: _ctx.options.displayOptions
20961
21021
  }, null, 8, ["search-results", "options"])
20962
21022
  ]),
20963
21023
  !loading.value && !searchResults2.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
20964
- loading.value ? (openBlock(), createBlock(_sfc_main$6, {
21024
+ loading.value ? (openBlock(), createBlock(_sfc_main$7, {
20965
21025
  key: 1,
20966
21026
  message: currentAction.value
20967
21027
  }, null, 8, ["message"])) : createCommentVNode("", true)
@@ -20969,10 +21029,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20969
21029
  };
20970
21030
  }
20971
21031
  });
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);
21032
+ const _hoisted_1$3 = { class: "lupa-chat-best-matches lupa-chat-content-entry" };
21033
+ const _hoisted_2$2 = /* @__PURE__ */ createBaseVNode("h3", null, "Best matches", -1);
20974
21034
  const _hoisted_3$1 = { key: 0 };
20975
- const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
21035
+ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
20976
21036
  __name: "ChatContentEntry",
20977
21037
  props: {
20978
21038
  entry: {},
@@ -21037,7 +21097,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21037
21097
  key: phrase,
21038
21098
  class: "lupa-chat-content-entry"
21039
21099
  }, [
21040
- phrase ? (openBlock(), createBlock(_sfc_main$3$1, {
21100
+ phrase ? (openBlock(), createBlock(_sfc_main$4$1, {
21041
21101
  key: 0,
21042
21102
  phrase,
21043
21103
  options: _ctx.options,
@@ -21046,14 +21106,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21046
21106
  ]);
21047
21107
  }), 128))
21048
21108
  ]),
21049
- createBaseVNode("section", _hoisted_1$2, [
21050
- _hoisted_2$1,
21109
+ createBaseVNode("section", _hoisted_1$3, [
21110
+ _hoisted_2$2,
21051
21111
  explanation.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(explanation.value), 1)) : createCommentVNode("", true),
21052
- loading.value ? (openBlock(), createBlock(_sfc_main$6, {
21112
+ loading.value ? (openBlock(), createBlock(_sfc_main$7, {
21053
21113
  key: 1,
21054
21114
  message: "Selecting the best matches for you. This might take a few seconds."
21055
21115
  })) : createCommentVNode("", true),
21056
- bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$4$1, {
21116
+ bestMatches.value.length ? (openBlock(), createBlock(_sfc_main$5, {
21057
21117
  key: 2,
21058
21118
  "search-results": bestMatchProducts.value,
21059
21119
  options: _ctx.options.displayOptions
@@ -21063,6 +21123,39 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21063
21123
  };
21064
21124
  }
21065
21125
  });
21126
+ const _hoisted_1$2 = { class: "lupa-chat-text-response" };
21127
+ const _hoisted_2$1 = ["innerHTML"];
21128
+ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
21129
+ __name: "ChatTextEntry",
21130
+ props: {
21131
+ content: {},
21132
+ options: {},
21133
+ history: {}
21134
+ },
21135
+ setup(__props) {
21136
+ const props = __props;
21137
+ const content = ref("");
21138
+ const processChunk = (chunk) => {
21139
+ content.value += chunk;
21140
+ };
21141
+ onMounted(() => {
21142
+ var _a;
21143
+ ChatService.getTextResponseChunkStream(
21144
+ props.options.sdkOptions,
21145
+ {
21146
+ initialQuery: props.content,
21147
+ messageHistory: (_a = props.history) != null ? _a : []
21148
+ },
21149
+ processChunk
21150
+ );
21151
+ });
21152
+ return (_ctx, _cache) => {
21153
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
21154
+ createBaseVNode("p", { innerHTML: content.value }, null, 8, _hoisted_2$1)
21155
+ ]);
21156
+ };
21157
+ }
21158
+ });
21066
21159
  const _hoisted_1$1 = { class: "lupa-chat-section-title" };
21067
21160
  const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
21068
21161
  __name: "ChatContentList",
@@ -21080,16 +21173,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21080
21173
  return openBlock(), createElementBlock("div", null, [
21081
21174
  createBaseVNode("ul", null, [
21082
21175
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.content, (entry) => {
21176
+ var _a;
21083
21177
  return openBlock(), createElementBlock("li", {
21084
21178
  key: entry.key
21085
21179
  }, [
21086
21180
  createBaseVNode("h4", _hoisted_1$1, toDisplayString(entry.userInput), 1),
21087
21181
  createVNode(_sfc_main$2$1, {
21182
+ content: entry.userInput,
21183
+ history: _ctx.history,
21184
+ options: _ctx.options
21185
+ }, null, 8, ["content", "history", "options"]),
21186
+ ((_a = entry.suggestedPhrases) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_sfc_main$3$1, {
21187
+ key: 0,
21088
21188
  entry,
21089
21189
  options: _ctx.options,
21090
21190
  history: _ctx.history,
21091
21191
  onLoaded: (items) => bestItemsLoaded(items, entry.key)
21092
- }, null, 8, ["entry", "options", "history", "onLoaded"])
21192
+ }, null, 8, ["entry", "options", "history", "onLoaded"])) : createCommentVNode("", true)
21093
21193
  ]);
21094
21194
  }), 128))
21095
21195
  ])
@@ -21110,7 +21210,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21110
21210
  class: "lupa-chat-spinner-main"
21111
21211
  };
21112
21212
  const _hoisted_5 = { class: "lupasearch-chat-input" };
21113
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
21213
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
21114
21214
  __name: "ChatContainer",
21115
21215
  props: {
21116
21216
  options: {}
@@ -21128,6 +21228,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21128
21228
  }
21129
21229
  try {
21130
21230
  loading.value = true;
21231
+ const key = Date.now().toString();
21232
+ let chatLog = {
21233
+ key,
21234
+ userInput: input,
21235
+ allPhrases: [],
21236
+ suggestedPhrases: []
21237
+ };
21238
+ chatContent.value.push(chatLog);
21131
21239
  const request = {
21132
21240
  userPrompt: input,
21133
21241
  messageHistory: (_a = history.value) != null ? _a : [],
@@ -21142,13 +21250,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21142
21250
  return;
21143
21251
  }
21144
21252
  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);
21253
+ chatContent.value = chatContent.value.map(
21254
+ (c2) => c2.key === key ? __spreadProps2(__spreadValues2({}, c2), {
21255
+ allPhrases: [...validPhrases],
21256
+ suggestedPhrases: phrases
21257
+ }) : c2
21258
+ );
21152
21259
  } finally {
21153
21260
  loading.value = false;
21154
21261
  }
@@ -21169,10 +21276,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21169
21276
  }, null, 8, ["content", "options", "history"])
21170
21277
  ])) : createCommentVNode("", true),
21171
21278
  loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
21172
- createVNode(_sfc_main$6, { message: "Loading initial recommendations... This might take up to 20s" })
21279
+ createVNode(_sfc_main$7, { message: "Loading initial recommendations... This might take up to 20s" })
21173
21280
  ])) : createCommentVNode("", true),
21174
21281
  createBaseVNode("section", _hoisted_5, [
21175
- createVNode(_sfc_main$5, {
21282
+ createVNode(_sfc_main$6, {
21176
21283
  onSubmit: submitChatInput,
21177
21284
  disabled: loading.value
21178
21285
  }, null, 8, ["disabled"])
@@ -26743,7 +26850,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26743
26850
  };
26744
26851
  __expose({ fetch: fetch2 });
26745
26852
  return (_ctx, _cache) => {
26746
- return openBlock(), createBlock(unref(_sfc_main$Y), {
26853
+ return openBlock(), createBlock(unref(_sfc_main$Z), {
26747
26854
  options: fullSearchBoxOptions.value,
26748
26855
  ref_key: "searchBox",
26749
26856
  ref: searchBox2
@@ -26870,7 +26977,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26870
26977
  };
26871
26978
  __expose({ fetch: fetch2 });
26872
26979
  return (_ctx, _cache) => {
26873
- return openBlock(), createBlock(unref(_sfc_main$b), {
26980
+ return openBlock(), createBlock(unref(_sfc_main$c), {
26874
26981
  options: fullSearchResultsOptions.value,
26875
26982
  ref_key: "searchResults",
26876
26983
  ref: searchResults2
@@ -26895,7 +27002,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26895
27002
  };
26896
27003
  __expose({ fetch: fetch2 });
26897
27004
  return (_ctx, _cache) => {
26898
- return openBlock(), createBlock(unref(_sfc_main$9), {
27005
+ return openBlock(), createBlock(unref(_sfc_main$a), {
26899
27006
  options: fullProductListOptions.value,
26900
27007
  ref_key: "productList",
26901
27008
  ref: productList2
@@ -26975,7 +27082,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26975
27082
  __expose({ fetch: fetch2, reloadOptions });
26976
27083
  return (_ctx, _cache) => {
26977
27084
  return openBlock(), createElementBlock("div", null, [
26978
- containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$8), {
27085
+ containerOptions.value && isOpen.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
26979
27086
  key: 0,
26980
27087
  options: containerOptions.value,
26981
27088
  ref_key: "productList",
@@ -26999,7 +27106,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26999
27106
  };
27000
27107
  __expose({ fetch: fetch2 });
27001
27108
  return (_ctx, _cache) => {
27002
- return openBlock(), createBlock(unref(_sfc_main$7), {
27109
+ return openBlock(), createBlock(unref(_sfc_main$8), {
27003
27110
  options: _ctx.recommendationOptions,
27004
27111
  ref_key: "productRecommendations",
27005
27112
  ref: productRecommendations
@@ -27218,7 +27325,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
27218
27325
  }
27219
27326
  return;
27220
27327
  }
27221
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1i, {
27328
+ const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1k, {
27222
27329
  options
27223
27330
  });
27224
27331
  if (!instance) {