@getlupa/client 1.11.6 → 1.11.8

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.
@@ -8444,8 +8444,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
8444
8444
  resetHighlightIndex
8445
8445
  };
8446
8446
  });
8447
- const _hoisted_1$1e = { id: "lupa-search-box-input-container" };
8448
- const _hoisted_2$Q = { class: "lupa-input-clear" };
8447
+ const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
8448
+ const _hoisted_2$R = { class: "lupa-input-clear" };
8449
8449
  const _hoisted_3$A = { id: "lupa-search-box-input" };
8450
8450
  const _hoisted_4$s = ["value"];
8451
8451
  const _hoisted_5$h = ["aria-label", "placeholder"];
@@ -8457,7 +8457,7 @@ const _hoisted_8$3 = {
8457
8457
  key: 0,
8458
8458
  class: "lupa-close-label"
8459
8459
  };
8460
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8460
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8461
8461
  __name: "SearchBoxInput",
8462
8462
  props: {
8463
8463
  options: {},
@@ -8527,7 +8527,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8527
8527
  }
8528
8528
  };
8529
8529
  const handleSubmit = () => {
8530
- emit2("search");
8530
+ emit2("search", { query: inputValue.value });
8531
8531
  };
8532
8532
  const clear2 = () => {
8533
8533
  emit2("input", "");
@@ -8541,8 +8541,8 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8541
8541
  };
8542
8542
  __expose({ focus });
8543
8543
  return (_ctx, _cache) => {
8544
- return openBlock(), createElementBlock("div", _hoisted_1$1e, [
8545
- createBaseVNode("div", _hoisted_2$Q, [
8544
+ return openBlock(), createElementBlock("div", _hoisted_1$1f, [
8545
+ createBaseVNode("div", _hoisted_2$R, [
8546
8546
  createBaseVNode("div", {
8547
8547
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
8548
8548
  onClick: clear2
@@ -8587,7 +8587,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8587
8587
  };
8588
8588
  }
8589
8589
  });
8590
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8590
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
8591
8591
  __name: "SearchBoxMoreResults",
8592
8592
  props: {
8593
8593
  labels: {},
@@ -8619,9 +8619,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8619
8619
  };
8620
8620
  }
8621
8621
  });
8622
- const _hoisted_1$1d = { class: "lupa-search-box-history-item" };
8623
- const _hoisted_2$P = { class: "lupa-search-box-history-item-content" };
8624
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8622
+ const _hoisted_1$1e = { class: "lupa-search-box-history-item" };
8623
+ const _hoisted_2$Q = { class: "lupa-search-box-history-item-content" };
8624
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
8625
8625
  __name: "SearchBoxHistoryItem",
8626
8626
  props: {
8627
8627
  item: {},
@@ -8637,8 +8637,8 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8637
8637
  emit2("click", { query: props.item });
8638
8638
  };
8639
8639
  return (_ctx, _cache) => {
8640
- return openBlock(), createElementBlock("div", _hoisted_1$1d, [
8641
- createBaseVNode("div", _hoisted_2$P, [
8640
+ return openBlock(), createElementBlock("div", _hoisted_1$1e, [
8641
+ createBaseVNode("div", _hoisted_2$Q, [
8642
8642
  createBaseVNode("div", {
8643
8643
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
8644
8644
  onClick: click2
@@ -8652,11 +8652,11 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8652
8652
  };
8653
8653
  }
8654
8654
  });
8655
- const _hoisted_1$1c = {
8655
+ const _hoisted_1$1d = {
8656
8656
  key: 0,
8657
8657
  class: "lupa-search-box-history-panel"
8658
8658
  };
8659
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8659
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8660
8660
  __name: "SearchBoxHistoryPanel",
8661
8661
  props: {
8662
8662
  options: {}
@@ -8697,9 +8697,9 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8697
8697
  }
8698
8698
  };
8699
8699
  return (_ctx, _cache) => {
8700
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
8700
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1d, [
8701
8701
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
8702
- return openBlock(), createBlock(_sfc_main$1k, {
8702
+ return openBlock(), createBlock(_sfc_main$1l, {
8703
8703
  key: item,
8704
8704
  item,
8705
8705
  highlighted: index === highlightIndex.value,
@@ -8715,20 +8715,20 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8715
8715
  };
8716
8716
  }
8717
8717
  });
8718
- const _hoisted_1$1b = { class: "lupa-search-box-no-results" };
8719
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8718
+ const _hoisted_1$1c = { class: "lupa-search-box-no-results" };
8719
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
8720
8720
  __name: "SearchBoxNoResults",
8721
8721
  props: {
8722
8722
  labels: {}
8723
8723
  },
8724
8724
  setup(__props) {
8725
8725
  return (_ctx, _cache) => {
8726
- return openBlock(), createElementBlock("p", _hoisted_1$1b, toDisplayString(_ctx.labels.noResults), 1);
8726
+ return openBlock(), createElementBlock("p", _hoisted_1$1c, toDisplayString(_ctx.labels.noResults), 1);
8727
8727
  };
8728
8728
  }
8729
8729
  });
8730
- const _hoisted_1$1a = ["innerHTML"];
8731
- const _hoisted_2$O = {
8730
+ const _hoisted_1$1b = ["innerHTML"];
8731
+ const _hoisted_2$P = {
8732
8732
  key: 1,
8733
8733
  "data-cy": "lupa-suggestion-value",
8734
8734
  class: "lupa-suggestion-value"
@@ -8746,7 +8746,7 @@ const _hoisted_5$g = {
8746
8746
  class: "lupa-suggestion-facet-value",
8747
8747
  "data-cy": "lupa-suggestion-facet-value"
8748
8748
  };
8749
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8749
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8750
8750
  __name: "SearchBoxSuggestion",
8751
8751
  props: {
8752
8752
  suggestion: {},
@@ -8782,7 +8782,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8782
8782
  class: "lupa-suggestion-value",
8783
8783
  "data-cy": "lupa-suggestion-value",
8784
8784
  innerHTML: _ctx.suggestion.displayHighlight
8785
- }, null, 8, _hoisted_1$1a)) : (openBlock(), createElementBlock("div", _hoisted_2$O, toDisplayString(_ctx.suggestion.display), 1)),
8785
+ }, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
8786
8786
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
8787
8787
  createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8788
8788
  createBaseVNode("span", _hoisted_5$g, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -8791,11 +8791,11 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8791
8791
  };
8792
8792
  }
8793
8793
  });
8794
- const _hoisted_1$19 = {
8794
+ const _hoisted_1$1a = {
8795
8795
  id: "lupa-search-box-suggestions",
8796
8796
  "data-cy": "lupa-search-box-suggestions"
8797
8797
  };
8798
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8798
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
8799
8799
  __name: "SearchBoxSuggestions",
8800
8800
  props: {
8801
8801
  items: {},
@@ -8855,9 +8855,9 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8855
8855
  });
8856
8856
  });
8857
8857
  return (_ctx, _cache) => {
8858
- return openBlock(), createElementBlock("div", _hoisted_1$19, [
8858
+ return openBlock(), createElementBlock("div", _hoisted_1$1a, [
8859
8859
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8860
- return openBlock(), createBlock(_sfc_main$1h, {
8860
+ return openBlock(), createBlock(_sfc_main$1i, {
8861
8861
  key: getSuggestionKey(item),
8862
8862
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8863
8863
  suggestion: item,
@@ -8885,7 +8885,7 @@ const debounce$1 = (func, timeout) => {
8885
8885
  }, timeout);
8886
8886
  };
8887
8887
  };
8888
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8888
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
8889
8889
  __name: "SearchBoxSuggestionsWrapper",
8890
8890
  props: {
8891
8891
  panel: {},
@@ -8926,7 +8926,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
8926
8926
  };
8927
8927
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8928
8928
  return (_ctx, _cache) => {
8929
- return openBlock(), createBlock(_sfc_main$1g, {
8929
+ return openBlock(), createBlock(_sfc_main$1h, {
8930
8930
  items: searchResult.value,
8931
8931
  highlight: _ctx.panel.highlight,
8932
8932
  queryKey: _ctx.panel.queryKey,
@@ -9030,8 +9030,8 @@ const replaceImageWithPlaceholder = (e, placeholder) => {
9030
9030
  targetImage.src = placeholder;
9031
9031
  }
9032
9032
  };
9033
- const _hoisted_1$18 = ["src"];
9034
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
9033
+ const _hoisted_1$19 = ["src"];
9034
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
9035
9035
  __name: "ProductImage",
9036
9036
  props: {
9037
9037
  item: {},
@@ -9149,7 +9149,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
9149
9149
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
9150
9150
  onError: replaceWithPlaceholder,
9151
9151
  key: finalUrl.value
9152
- }), null, 16, _hoisted_1$18))
9152
+ }), null, 16, _hoisted_1$19))
9153
9153
  ]),
9154
9154
  _: 1
9155
9155
  })
@@ -9157,7 +9157,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
9157
9157
  };
9158
9158
  }
9159
9159
  });
9160
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9160
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
9161
9161
  __name: "SearchBoxProductImage",
9162
9162
  props: {
9163
9163
  item: {},
@@ -9165,7 +9165,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9165
9165
  },
9166
9166
  setup(__props) {
9167
9167
  return (_ctx, _cache) => {
9168
- return openBlock(), createBlock(_sfc_main$1e, {
9168
+ return openBlock(), createBlock(_sfc_main$1f, {
9169
9169
  item: _ctx.item,
9170
9170
  options: _ctx.options,
9171
9171
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -9174,12 +9174,12 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9174
9174
  };
9175
9175
  }
9176
9176
  });
9177
- const _hoisted_1$17 = ["innerHTML"];
9178
- const _hoisted_2$N = {
9177
+ const _hoisted_1$18 = ["innerHTML"];
9178
+ const _hoisted_2$O = {
9179
9179
  key: 1,
9180
9180
  class: "lupa-search-box-product-title"
9181
9181
  };
9182
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9182
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
9183
9183
  __name: "SearchBoxProductTitle",
9184
9184
  props: {
9185
9185
  item: {},
@@ -9199,18 +9199,18 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9199
9199
  key: 0,
9200
9200
  class: "lupa-search-box-product-title",
9201
9201
  innerHTML: title.value
9202
- }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$N, [
9202
+ }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$O, [
9203
9203
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
9204
9204
  ]));
9205
9205
  };
9206
9206
  }
9207
9207
  });
9208
- const _hoisted_1$16 = ["innerHTML"];
9209
- const _hoisted_2$M = {
9208
+ const _hoisted_1$17 = ["innerHTML"];
9209
+ const _hoisted_2$N = {
9210
9210
  key: 1,
9211
9211
  class: "lupa-search-box-product-description"
9212
9212
  };
9213
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9213
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
9214
9214
  __name: "SearchBoxProductDescription",
9215
9215
  props: {
9216
9216
  item: {},
@@ -9230,12 +9230,12 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9230
9230
  key: 0,
9231
9231
  class: "lupa-search-box-product-description",
9232
9232
  innerHTML: description.value
9233
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(description.value), 1));
9233
+ }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(description.value), 1));
9234
9234
  };
9235
9235
  }
9236
9236
  });
9237
- const _hoisted_1$15 = { class: "lupa-search-box-product-price" };
9238
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9237
+ const _hoisted_1$16 = { class: "lupa-search-box-product-price" };
9238
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
9239
9239
  __name: "SearchBoxProductPrice",
9240
9240
  props: {
9241
9241
  item: {},
@@ -9253,14 +9253,14 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9253
9253
  );
9254
9254
  });
9255
9255
  return (_ctx, _cache) => {
9256
- return openBlock(), createElementBlock("div", _hoisted_1$15, [
9256
+ return openBlock(), createElementBlock("div", _hoisted_1$16, [
9257
9257
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
9258
9258
  ]);
9259
9259
  };
9260
9260
  }
9261
9261
  });
9262
- const _hoisted_1$14 = { class: "lupa-search-box-product-regular-price" };
9263
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9262
+ const _hoisted_1$15 = { class: "lupa-search-box-product-regular-price" };
9263
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9264
9264
  __name: "SearchBoxProductRegularPrice",
9265
9265
  props: {
9266
9266
  item: {},
@@ -9278,16 +9278,16 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9278
9278
  );
9279
9279
  });
9280
9280
  return (_ctx, _cache) => {
9281
- return openBlock(), createElementBlock("div", _hoisted_1$14, toDisplayString(price.value), 1);
9281
+ return openBlock(), createElementBlock("div", _hoisted_1$15, toDisplayString(price.value), 1);
9282
9282
  };
9283
9283
  }
9284
9284
  });
9285
- const _hoisted_1$13 = ["innerHTML"];
9286
- const _hoisted_2$L = { key: 0 };
9285
+ const _hoisted_1$14 = ["innerHTML"];
9286
+ const _hoisted_2$M = { key: 0 };
9287
9287
  const _hoisted_3$y = { key: 1 };
9288
9288
  const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
9289
9289
  const _hoisted_5$f = { class: "lupa-search-box-custom-text" };
9290
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9290
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9291
9291
  __name: "SearchBoxProductCustom",
9292
9292
  props: {
9293
9293
  item: {},
@@ -9313,11 +9313,11 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9313
9313
  key: 0,
9314
9314
  class: [className.value, "lupa-search-box-product-custom"],
9315
9315
  innerHTML: text.value
9316
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13)) : (openBlock(), createElementBlock("div", mergeProps({
9316
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$14)) : (openBlock(), createElementBlock("div", mergeProps({
9317
9317
  key: 1,
9318
9318
  class: [className.value, "lupa-search-box-product-custom"]
9319
9319
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
9320
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
9320
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
9321
9321
  createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
9322
9322
  createBaseVNode("div", _hoisted_5$f, toDisplayString(text.value), 1)
9323
9323
  ]))
@@ -9325,8 +9325,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9325
9325
  };
9326
9326
  }
9327
9327
  });
9328
- const _hoisted_1$12 = ["innerHTML"];
9329
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9328
+ const _hoisted_1$13 = ["innerHTML"];
9329
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
9330
9330
  __name: "SearchBoxProductCustomHtml",
9331
9331
  props: {
9332
9332
  item: {},
@@ -9346,7 +9346,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9346
9346
  return openBlock(), createElementBlock("div", mergeProps({
9347
9347
  class: className.value,
9348
9348
  innerHTML: text.value
9349
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$12);
9349
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$13);
9350
9350
  };
9351
9351
  }
9352
9352
  });
@@ -9564,10 +9564,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
9564
9564
  clearSearchResult
9565
9565
  };
9566
9566
  });
9567
- const _hoisted_1$11 = { class: "lupa-search-box-add-to-cart-wrapper" };
9568
- const _hoisted_2$K = { class: "lupa-search-box-product-addtocart" };
9567
+ const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
9568
+ const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
9569
9569
  const _hoisted_3$x = ["onClick", "disabled"];
9570
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9570
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9571
9571
  __name: "SearchBoxProductAddToCart",
9572
9572
  props: {
9573
9573
  item: {},
@@ -9594,8 +9594,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9594
9594
  loading.value = false;
9595
9595
  });
9596
9596
  return (_ctx, _cache) => {
9597
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
9598
- createBaseVNode("div", _hoisted_2$K, [
9597
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
9598
+ createBaseVNode("div", _hoisted_2$L, [
9599
9599
  createBaseVNode("button", {
9600
9600
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
9601
9601
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -9608,23 +9608,23 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
9608
9608
  };
9609
9609
  }
9610
9610
  });
9611
- const _hoisted_1$10 = {
9611
+ const _hoisted_1$11 = {
9612
9612
  key: 1,
9613
9613
  class: "lupa-search-box-element-badge-wrapper"
9614
9614
  };
9615
9615
  const __default__$4 = {
9616
9616
  components: {
9617
- SearchBoxProductImage: _sfc_main$1d,
9618
- SearchBoxProductTitle: _sfc_main$1c,
9619
- SearchBoxProductDescription: _sfc_main$1b,
9620
- SearchBoxProductPrice: _sfc_main$1a,
9621
- SearchBoxProductRegularPrice: _sfc_main$19,
9622
- SearchBoxProductCustom: _sfc_main$18,
9623
- SearchBoxProductCustomHtml: _sfc_main$17,
9624
- SearchBoxProductAddToCart: _sfc_main$16
9617
+ SearchBoxProductImage: _sfc_main$1e,
9618
+ SearchBoxProductTitle: _sfc_main$1d,
9619
+ SearchBoxProductDescription: _sfc_main$1c,
9620
+ SearchBoxProductPrice: _sfc_main$1b,
9621
+ SearchBoxProductRegularPrice: _sfc_main$1a,
9622
+ SearchBoxProductCustom: _sfc_main$19,
9623
+ SearchBoxProductCustomHtml: _sfc_main$18,
9624
+ SearchBoxProductAddToCart: _sfc_main$17
9625
9625
  }
9626
9626
  };
9627
- const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
9627
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
9628
9628
  __name: "SearchBoxProductElement",
9629
9629
  props: {
9630
9630
  item: {},
@@ -9682,7 +9682,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
9682
9682
  class: normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) }),
9683
9683
  inStock: _ctx.isInStock
9684
9684
  }, null, 8, ["item", "options", "labels", "class", "inStock"])) : createCommentVNode("", true)
9685
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$10, [
9685
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$11, [
9686
9686
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
9687
9687
  key: 0,
9688
9688
  item: enhancedItem.value,
@@ -9696,14 +9696,14 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
9696
9696
  };
9697
9697
  }
9698
9698
  }));
9699
- const _hoisted_1$$ = { class: "lupa-badge-title" };
9700
- const _hoisted_2$J = ["src"];
9699
+ const _hoisted_1$10 = { class: "lupa-badge-title" };
9700
+ const _hoisted_2$K = ["src"];
9701
9701
  const _hoisted_3$w = { key: 1 };
9702
9702
  const _hoisted_4$p = {
9703
9703
  key: 0,
9704
9704
  class: "lupa-badge-full-text"
9705
9705
  };
9706
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
9706
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
9707
9707
  __name: "SearchResultGeneratedBadge",
9708
9708
  props: {
9709
9709
  options: {},
@@ -9736,11 +9736,11 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
9736
9736
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
9737
9737
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
9738
9738
  }, [
9739
- createBaseVNode("span", _hoisted_1$$, [
9739
+ createBaseVNode("span", _hoisted_1$10, [
9740
9740
  image.value ? (openBlock(), createElementBlock("img", {
9741
9741
  key: 0,
9742
9742
  src: image.value
9743
- }, null, 8, _hoisted_2$J)) : createCommentVNode("", true),
9743
+ }, null, 8, _hoisted_2$K)) : createCommentVNode("", true),
9744
9744
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
9745
9745
  ]),
9746
9746
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -9748,8 +9748,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
9748
9748
  };
9749
9749
  }
9750
9750
  });
9751
- const _hoisted_1$_ = { class: "lupa-generated-badges" };
9752
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9751
+ const _hoisted_1$$ = { class: "lupa-generated-badges" };
9752
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
9753
9753
  __name: "SearchResultGeneratedBadges",
9754
9754
  props: {
9755
9755
  options: {}
@@ -9775,9 +9775,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9775
9775
  })).filter((b) => Boolean(b.id));
9776
9776
  });
9777
9777
  return (_ctx, _cache) => {
9778
- return openBlock(), createElementBlock("div", _hoisted_1$_, [
9778
+ return openBlock(), createElementBlock("div", _hoisted_1$$, [
9779
9779
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
9780
- return openBlock(), createBlock(_sfc_main$14, {
9780
+ return openBlock(), createBlock(_sfc_main$15, {
9781
9781
  key: badge.id,
9782
9782
  badge,
9783
9783
  options: _ctx.options
@@ -9787,8 +9787,8 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9787
9787
  };
9788
9788
  }
9789
9789
  });
9790
- const _hoisted_1$Z = ["innerHTML"];
9791
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9790
+ const _hoisted_1$_ = ["innerHTML"];
9791
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
9792
9792
  __name: "CustomBadge",
9793
9793
  props: {
9794
9794
  badge: {}
@@ -9807,12 +9807,12 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9807
9807
  return openBlock(), createElementBlock("div", {
9808
9808
  class: normalizeClass(className.value),
9809
9809
  innerHTML: text.value
9810
- }, null, 10, _hoisted_1$Z);
9810
+ }, null, 10, _hoisted_1$_);
9811
9811
  };
9812
9812
  }
9813
9813
  });
9814
- const _hoisted_1$Y = { class: "lupa-text-badges" };
9815
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9814
+ const _hoisted_1$Z = { class: "lupa-text-badges" };
9815
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
9816
9816
  __name: "TextBadge",
9817
9817
  props: {
9818
9818
  badge: {}
@@ -9827,7 +9827,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9827
9827
  return badges.value.slice(0, props.badge.maxItems);
9828
9828
  });
9829
9829
  return (_ctx, _cache) => {
9830
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
9830
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
9831
9831
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9832
9832
  return openBlock(), createElementBlock("div", {
9833
9833
  class: "lupa-badge lupa-text-badge",
@@ -9838,9 +9838,9 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9838
9838
  };
9839
9839
  }
9840
9840
  });
9841
- const _hoisted_1$X = { class: "lupa-image-badges" };
9842
- const _hoisted_2$I = ["src"];
9843
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9841
+ const _hoisted_1$Y = { class: "lupa-image-badges" };
9842
+ const _hoisted_2$J = ["src"];
9843
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9844
9844
  __name: "ImageBadge",
9845
9845
  props: {
9846
9846
  badge: {}
@@ -9860,7 +9860,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9860
9860
  return `${props.badge.rootImageUrl}${src}`;
9861
9861
  };
9862
9862
  return (_ctx, _cache) => {
9863
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
9863
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
9864
9864
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
9865
9865
  return openBlock(), createElementBlock("div", {
9866
9866
  class: "lupa-badge lupa-image-badge",
@@ -9868,22 +9868,22 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
9868
9868
  }, [
9869
9869
  createBaseVNode("img", {
9870
9870
  src: getImageUrl(item)
9871
- }, null, 8, _hoisted_2$I)
9871
+ }, null, 8, _hoisted_2$J)
9872
9872
  ]);
9873
9873
  }), 128))
9874
9874
  ]);
9875
9875
  };
9876
9876
  }
9877
9877
  });
9878
- const _hoisted_1$W = { id: "lupa-search-results-badges" };
9878
+ const _hoisted_1$X = { id: "lupa-search-results-badges" };
9879
9879
  const __default__$3 = {
9880
9880
  components: {
9881
- CustomBadge: _sfc_main$12,
9882
- TextBadge: _sfc_main$11,
9883
- ImageBadge: _sfc_main$10
9881
+ CustomBadge: _sfc_main$13,
9882
+ TextBadge: _sfc_main$12,
9883
+ ImageBadge: _sfc_main$11
9884
9884
  }
9885
9885
  };
9886
- const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9886
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9887
9887
  __name: "SearchResultsBadgeWrapper",
9888
9888
  props: {
9889
9889
  position: {},
@@ -9939,7 +9939,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9939
9939
  }
9940
9940
  };
9941
9941
  return (_ctx, _cache) => {
9942
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
9942
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
9943
9943
  createBaseVNode("div", {
9944
9944
  id: "lupa-badges",
9945
9945
  class: normalizeClass(anchorPosition.value)
@@ -9950,7 +9950,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9950
9950
  badge
9951
9951
  }, null, 8, ["badge"]);
9952
9952
  }), 128)),
9953
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$13, {
9953
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$14, {
9954
9954
  key: 0,
9955
9955
  options: _ctx.options
9956
9956
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -9959,14 +9959,14 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9959
9959
  };
9960
9960
  }
9961
9961
  }));
9962
- const _hoisted_1$V = ["href"];
9963
- const _hoisted_2$H = { class: "lupa-search-box-product-image-section" };
9962
+ const _hoisted_1$W = ["href"];
9963
+ const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
9964
9964
  const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
9965
9965
  const _hoisted_4$o = {
9966
9966
  key: 0,
9967
9967
  class: "lupa-search-box-product-add-to-cart-section"
9968
9968
  };
9969
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9969
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
9970
9970
  __name: "SearchBoxProduct",
9971
9971
  props: {
9972
9972
  item: {},
@@ -10025,9 +10025,9 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
10025
10025
  "data-cy": "lupa-search-box-product",
10026
10026
  onClick: handleClick
10027
10027
  }), [
10028
- createBaseVNode("div", _hoisted_2$H, [
10028
+ createBaseVNode("div", _hoisted_2$I, [
10029
10029
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
10030
- return openBlock(), createBlock(_sfc_main$15, {
10030
+ return openBlock(), createBlock(_sfc_main$16, {
10031
10031
  class: "lupa-search-box-product-element",
10032
10032
  item: _ctx.item,
10033
10033
  element,
@@ -10040,7 +10040,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
10040
10040
  createBaseVNode("div", _hoisted_3$v, [
10041
10041
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
10042
10042
  var _a;
10043
- return openBlock(), createBlock(_sfc_main$15, {
10043
+ return openBlock(), createBlock(_sfc_main$16, {
10044
10044
  key: element.key,
10045
10045
  class: "lupa-search-box-product-element",
10046
10046
  item: _ctx.item,
@@ -10051,7 +10051,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
10051
10051
  badgeOptions.value && ((_a = badgeOptions.value) == null ? void 0 : _a.anchorElementKey) === element.key ? {
10052
10052
  name: "badges",
10053
10053
  fn: withCtx(() => [
10054
- createVNode(_sfc_main$$, {
10054
+ createVNode(_sfc_main$10, {
10055
10055
  options: badgeOptions.value,
10056
10056
  position: "card"
10057
10057
  }, null, 8, ["options"])
@@ -10062,7 +10062,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
10062
10062
  }), 128))
10063
10063
  ]),
10064
10064
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
10065
- createVNode(_sfc_main$15, {
10065
+ createVNode(_sfc_main$16, {
10066
10066
  class: "lupa-search-box-product-element",
10067
10067
  item: _ctx.item,
10068
10068
  element: addToCartElement.value,
@@ -10071,7 +10071,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
10071
10071
  isInStock: isInStock.value
10072
10072
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
10073
10073
  ])) : createCommentVNode("", true)
10074
- ], 16, _hoisted_1$V);
10074
+ ], 16, _hoisted_1$W);
10075
10075
  };
10076
10076
  }
10077
10077
  });
@@ -10132,8 +10132,8 @@ const useTrackingStore = defineStore("tracking", () => {
10132
10132
  };
10133
10133
  return { trackSearch, trackResults, trackEvent };
10134
10134
  });
10135
- const _hoisted_1$U = { id: "lupa-search-box-products" };
10136
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10135
+ const _hoisted_1$V = { id: "lupa-search-box-products" };
10136
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
10137
10137
  __name: "SearchBoxProducts",
10138
10138
  props: {
10139
10139
  items: {},
@@ -10194,7 +10194,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10194
10194
  handleRoutingEvent(link, event, boxRoutingBehavior.value === "event");
10195
10195
  };
10196
10196
  return (_ctx, _cache) => {
10197
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
10197
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
10198
10198
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
10199
10199
  return renderSlot(_ctx.$slots, "productCard", {
10200
10200
  key: index,
@@ -10206,7 +10206,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10206
10206
  itemClicked: handleProductClick
10207
10207
  });
10208
10208
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
10209
- return openBlock(), createBlock(_sfc_main$_, {
10209
+ return openBlock(), createBlock(_sfc_main$$, {
10210
10210
  key: index,
10211
10211
  item,
10212
10212
  panelOptions: _ctx.panelOptions,
@@ -10215,7 +10215,52 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10215
10215
  inputValue: _ctx.inputValue,
10216
10216
  onProductClick: handleProductClick
10217
10217
  }, null, 8, ["item", "panelOptions", "labels", "highlighted", "inputValue"]);
10218
- }), 128))
10218
+ }), 128)),
10219
+ renderSlot(_ctx.$slots, "default")
10220
+ ]);
10221
+ };
10222
+ }
10223
+ });
10224
+ const _hoisted_1$U = { class: "lupa-search-box-documents-go-to-results-wrapper" };
10225
+ const _hoisted_2$H = { key: 0 };
10226
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10227
+ __name: "SearchBoxProductsGoToResultsButton",
10228
+ props: {
10229
+ options: {},
10230
+ panel: {}
10231
+ },
10232
+ emits: ["goToResults"],
10233
+ setup(__props, { emit: emit2 }) {
10234
+ const props = __props;
10235
+ const searchBoxStore = useSearchBoxStore();
10236
+ const { docResults } = storeToRefs(searchBoxStore);
10237
+ const goToResultsLabel = computed(
10238
+ () => {
10239
+ var _a, _b, _c;
10240
+ return (_c = (_a = props.panel.labels) == null ? void 0 : _a.goToResultsTitle) != null ? _c : (_b = props.options.labels) == null ? void 0 : _b.moreResults;
10241
+ }
10242
+ );
10243
+ const totalCount = computed(() => {
10244
+ var _a;
10245
+ if (!props.options.showTotalCount) {
10246
+ return "";
10247
+ }
10248
+ const queryKey = props.panel.queryKey;
10249
+ const total = queryKey ? (_a = docResults.value[queryKey]) == null ? void 0 : _a.total : "";
10250
+ return total ? `(${total})` : "";
10251
+ });
10252
+ const goToResults = () => {
10253
+ emit2("goToResults");
10254
+ };
10255
+ return (_ctx, _cache) => {
10256
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
10257
+ createBaseVNode("button", {
10258
+ class: "lupa-search-box-documents-go-to-results-button",
10259
+ onClick: goToResults
10260
+ }, [
10261
+ createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
10262
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$H, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
10263
+ ])
10219
10264
  ]);
10220
10265
  };
10221
10266
  }
@@ -10224,12 +10269,13 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10224
10269
  __name: "SearchBoxProductsWrapper",
10225
10270
  props: {
10226
10271
  panel: {},
10272
+ searchBoxOptions: {},
10227
10273
  inputValue: {},
10228
10274
  options: {},
10229
10275
  labels: {},
10230
10276
  debounce: {}
10231
10277
  },
10232
- emits: ["fetched"],
10278
+ emits: ["fetched", "product-click", "go-to-results"],
10233
10279
  setup(__props, { emit: emit2 }) {
10234
10280
  const props = __props;
10235
10281
  const searchBoxStore = useSearchBoxStore();
@@ -10239,6 +10285,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10239
10285
  var _a;
10240
10286
  return (_a = docResults.value[props.panel.queryKey]) != null ? _a : null;
10241
10287
  });
10288
+ const showGoToResultsButton = computed(() => {
10289
+ return props.panel.showGoToResults;
10290
+ });
10242
10291
  const inputValueProp = computed(() => props.inputValue);
10243
10292
  onMounted(() => {
10244
10293
  getItemsDebounced();
@@ -10272,13 +10321,26 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10272
10321
  const getItemsDebounced = debounce$1(getItems, props.debounce);
10273
10322
  return (_ctx, _cache) => {
10274
10323
  var _a, _b;
10275
- return openBlock(), createBlock(_sfc_main$Z, {
10324
+ return openBlock(), createBlock(_sfc_main$_, {
10276
10325
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
10277
10326
  panelOptions: _ctx.panel,
10278
10327
  labels: _ctx.labels,
10279
10328
  inputValue: _ctx.inputValue,
10280
- onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
10281
- }, createSlots({ _: 2 }, [
10329
+ onProductClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("product-click"))
10330
+ }, createSlots({
10331
+ default: withCtx(() => {
10332
+ var _a2;
10333
+ return [
10334
+ showGoToResultsButton.value && ((_a2 = searchResult.value) == null ? void 0 : _a2.items.length) ? (openBlock(), createBlock(_sfc_main$Z, {
10335
+ key: 0,
10336
+ options: _ctx.searchBoxOptions,
10337
+ panel: _ctx.panel,
10338
+ onGoToResults: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("go-to-results"))
10339
+ }, null, 8, ["options", "panel"])) : createCommentVNode("", true)
10340
+ ];
10341
+ }),
10342
+ _: 2
10343
+ }, [
10282
10344
  _ctx.$slots.productCard ? {
10283
10345
  name: "productCard",
10284
10346
  fn: withCtx((props2) => [
@@ -10362,7 +10424,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
10362
10424
  });
10363
10425
  return (_ctx, _cache) => {
10364
10426
  var _a, _b;
10365
- return openBlock(), createBlock(_sfc_main$Z, {
10427
+ return openBlock(), createBlock(_sfc_main$_, {
10366
10428
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
10367
10429
  panelOptions: documentPanelOptions.value,
10368
10430
  labels: _ctx.labels,
@@ -10399,7 +10461,7 @@ const _hoisted_5$e = {
10399
10461
  };
10400
10462
  const __default__$2 = {
10401
10463
  components: {
10402
- SearchBoxSuggestionsWrapper: _sfc_main$1f,
10464
+ SearchBoxSuggestionsWrapper: _sfc_main$1g,
10403
10465
  SearchBoxProductsWrapper: _sfc_main$Y,
10404
10466
  SearchBoxRelatedSourceWrapper: _sfc_main$X
10405
10467
  }
@@ -10576,13 +10638,15 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
10576
10638
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
10577
10639
  key: 2,
10578
10640
  panel,
10641
+ "search-box-options": _ctx.options,
10579
10642
  options: sdkOptions.value,
10580
10643
  debounce: _ctx.options.debounce,
10581
10644
  inputValue: getInput(panel),
10582
10645
  labels: labels.value,
10583
10646
  onFetched: _cache[1] || (_cache[1] = (data) => _ctx.$emit("fetched", data)),
10584
10647
  onItemSelect: _cache[2] || (_cache[2] = (item) => _ctx.$emit("itemSelect", item)),
10585
- onProductClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("product-click"))
10648
+ onProductClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("product-click")),
10649
+ onGoToResults: handleGoToResults
10586
10650
  }, createSlots({ _: 2 }, [
10587
10651
  _ctx.$slots.productCard ? {
10588
10652
  name: "productCard",
@@ -10591,22 +10655,22 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
10591
10655
  ]),
10592
10656
  key: "0"
10593
10657
  } : void 0
10594
- ]), 1064, ["panel", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
10658
+ ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
10595
10659
  ], 10, _hoisted_2$G);
10596
10660
  }), 128))
10597
10661
  ], 4),
10598
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1i, {
10662
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1j, {
10599
10663
  key: 1,
10600
10664
  labels: labels.value
10601
10665
  }, null, 8, ["labels"])) : createCommentVNode("", true),
10602
- unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1l, {
10666
+ unref(hasAnyResults) || !_ctx.options.hideMoreResultsButtonOnNoResults ? (openBlock(), createBlock(_sfc_main$1m, {
10603
10667
  key: 2,
10604
10668
  labels: labels.value,
10605
10669
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
10606
10670
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
10607
10671
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
10608
10672
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_5$e, [
10609
- createVNode(_sfc_main$1j, {
10673
+ createVNode(_sfc_main$1k, {
10610
10674
  options: _ctx.options.history,
10611
10675
  history: history.value,
10612
10676
  onGoToResults: handleGoToResults,
@@ -10886,7 +10950,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10886
10950
  var _a2;
10887
10951
  return openBlock(), createElementBlock("div", _hoisted_1$S, [
10888
10952
  createBaseVNode("div", _hoisted_2$F, [
10889
- createVNode(_sfc_main$1m, {
10953
+ createVNode(_sfc_main$1n, {
10890
10954
  options: inputOptions.value,
10891
10955
  suggestedValue: suggestedValue.value,
10892
10956
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -14043,7 +14107,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
14043
14107
  },
14044
14108
  setup(__props) {
14045
14109
  return (_ctx, _cache) => {
14046
- return openBlock(), createBlock(_sfc_main$1e, {
14110
+ return openBlock(), createBlock(_sfc_main$1f, {
14047
14111
  item: _ctx.item,
14048
14112
  options: _ctx.options,
14049
14113
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -14685,7 +14749,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14685
14749
  "data-cy": "lupa-search-result-product-card",
14686
14750
  class: ["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]
14687
14751
  }, customDocumentHtmlAttributes.value, { onClick: handleClick }), [
14688
- createVNode(_sfc_main$$, { options: badgesOptions.value }, null, 8, ["options"]),
14752
+ createVNode(_sfc_main$10, { options: badgesOptions.value }, null, 8, ["options"]),
14689
14753
  createBaseVNode("div", {
14690
14754
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
14691
14755
  }, [
@@ -14706,7 +14770,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14706
14770
  onProductEvent: handleProductEvent
14707
14771
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
14708
14772
  }), 128)),
14709
- createVNode(_sfc_main$$, {
14773
+ createVNode(_sfc_main$10, {
14710
14774
  options: badgesOptions.value,
14711
14775
  position: "image",
14712
14776
  class: "lupa-image-badges"
@@ -22584,7 +22648,7 @@ const _hoisted_4 = {
22584
22648
  class: "lupa-chat-spinner-main"
22585
22649
  };
22586
22650
  const _hoisted_5 = { class: "lupasearch-chat-input" };
22587
- const _sfc_main$1n = /* @__PURE__ */ defineComponent({
22651
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
22588
22652
  __name: "ChatContainer",
22589
22653
  props: {
22590
22654
  options: {}
@@ -29062,7 +29126,7 @@ const chat = (options, mountOptions) => {
29062
29126
  }
29063
29127
  return;
29064
29128
  }
29065
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1n, {
29129
+ const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1o, {
29066
29130
  options
29067
29131
  });
29068
29132
  if (!instance) {