@getlupa/client 1.1.7 → 1.2.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.
@@ -6360,7 +6360,21 @@ const escapeHtml = (value) => {
6360
6360
  if (!value) {
6361
6361
  return "";
6362
6362
  }
6363
- return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
6363
+ let output = "";
6364
+ let isSkip = false;
6365
+ value.split(/(<del>.*?<\/del>)/g).forEach((segment) => {
6366
+ if (segment.startsWith("<del>") && segment.endsWith("</del>")) {
6367
+ output += segment;
6368
+ isSkip = true;
6369
+ }
6370
+ if (!isSkip) {
6371
+ output += segment.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
6372
+ }
6373
+ if (isSkip) {
6374
+ isSkip = false;
6375
+ }
6376
+ });
6377
+ return output;
6364
6378
  };
6365
6379
  const initAnalyticsTracking = (analyticsOptions) => {
6366
6380
  try {
@@ -7640,8 +7654,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
7640
7654
  resetHighlightIndex
7641
7655
  };
7642
7656
  });
7643
- const _hoisted_1$13 = { id: "lupa-search-box-input-container" };
7644
- const _hoisted_2$J = { class: "lupa-input-clear" };
7657
+ const _hoisted_1$12 = { id: "lupa-search-box-input-container" };
7658
+ const _hoisted_2$I = { class: "lupa-input-clear" };
7645
7659
  const _hoisted_3$v = { id: "lupa-search-box-input" };
7646
7660
  const _hoisted_4$o = ["value"];
7647
7661
  const _hoisted_5$c = ["placeholder"];
@@ -7649,7 +7663,7 @@ const _hoisted_6$6 = {
7649
7663
  key: 0,
7650
7664
  class: "lupa-close-label"
7651
7665
  };
7652
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
7666
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
7653
7667
  __name: "SearchBoxInput",
7654
7668
  props: {
7655
7669
  options: {},
@@ -7726,8 +7740,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
7726
7740
  };
7727
7741
  __expose({ focus });
7728
7742
  return (_ctx, _cache) => {
7729
- return openBlock(), createElementBlock("div", _hoisted_1$13, [
7730
- createBaseVNode("div", _hoisted_2$J, [
7743
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
7744
+ createBaseVNode("div", _hoisted_2$I, [
7731
7745
  createBaseVNode("div", {
7732
7746
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
7733
7747
  onClick: clear2
@@ -7766,7 +7780,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
7766
7780
  };
7767
7781
  }
7768
7782
  });
7769
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
7783
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
7770
7784
  __name: "SearchBoxMoreResults",
7771
7785
  props: {
7772
7786
  labels: {},
@@ -7798,9 +7812,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
7798
7812
  };
7799
7813
  }
7800
7814
  });
7801
- const _hoisted_1$12 = { class: "lupa-search-box-history-item" };
7802
- const _hoisted_2$I = { class: "lupa-search-box-history-item-content" };
7803
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
7815
+ const _hoisted_1$11 = { class: "lupa-search-box-history-item" };
7816
+ const _hoisted_2$H = { class: "lupa-search-box-history-item-content" };
7817
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
7804
7818
  __name: "SearchBoxHistoryItem",
7805
7819
  props: {
7806
7820
  item: {},
@@ -7816,8 +7830,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
7816
7830
  emit2("click", { query: props.item });
7817
7831
  };
7818
7832
  return (_ctx, _cache) => {
7819
- return openBlock(), createElementBlock("div", _hoisted_1$12, [
7820
- createBaseVNode("div", _hoisted_2$I, [
7833
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
7834
+ createBaseVNode("div", _hoisted_2$H, [
7821
7835
  createBaseVNode("div", {
7822
7836
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
7823
7837
  onClick: click2
@@ -7831,11 +7845,11 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
7831
7845
  };
7832
7846
  }
7833
7847
  });
7834
- const _hoisted_1$11 = {
7848
+ const _hoisted_1$10 = {
7835
7849
  key: 0,
7836
7850
  class: "lupa-search-box-history-panel"
7837
7851
  };
7838
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
7852
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
7839
7853
  __name: "SearchBoxHistoryPanel",
7840
7854
  props: {
7841
7855
  options: {}
@@ -7876,9 +7890,9 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
7876
7890
  }
7877
7891
  };
7878
7892
  return (_ctx, _cache) => {
7879
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$11, [
7893
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
7880
7894
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
7881
- return openBlock(), createBlock(_sfc_main$19, {
7895
+ return openBlock(), createBlock(_sfc_main$18, {
7882
7896
  key: item,
7883
7897
  item,
7884
7898
  highlighted: index === highlightIndex.value,
@@ -7894,8 +7908,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
7894
7908
  };
7895
7909
  }
7896
7910
  });
7897
- const _hoisted_1$10 = ["innerHTML"];
7898
- const _hoisted_2$H = {
7911
+ const _hoisted_1$$ = ["innerHTML"];
7912
+ const _hoisted_2$G = {
7899
7913
  key: 1,
7900
7914
  "data-cy": "lupa-suggestion-value",
7901
7915
  class: "lupa-suggestion-value"
@@ -7913,7 +7927,7 @@ const _hoisted_5$b = {
7913
7927
  class: "lupa-suggestion-facet-value",
7914
7928
  "data-cy": "lupa-suggestion-facet-value"
7915
7929
  };
7916
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
7930
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
7917
7931
  __name: "SearchBoxSuggestion",
7918
7932
  props: {
7919
7933
  suggestion: {},
@@ -7949,7 +7963,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
7949
7963
  class: "lupa-suggestion-value",
7950
7964
  "data-cy": "lupa-suggestion-value",
7951
7965
  innerHTML: _ctx.suggestion.displayHighlight
7952
- }, null, 8, _hoisted_1$10)) : (openBlock(), createElementBlock("div", _hoisted_2$H, toDisplayString(_ctx.suggestion.display), 1)),
7966
+ }, null, 8, _hoisted_1$$)) : (openBlock(), createElementBlock("div", _hoisted_2$G, toDisplayString(_ctx.suggestion.display), 1)),
7953
7967
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
7954
7968
  createBaseVNode("span", _hoisted_4$n, toDisplayString(facetLabel.value), 1),
7955
7969
  createBaseVNode("span", _hoisted_5$b, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -7958,11 +7972,11 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
7958
7972
  };
7959
7973
  }
7960
7974
  });
7961
- const _hoisted_1$$ = {
7975
+ const _hoisted_1$_ = {
7962
7976
  id: "lupa-search-box-suggestions",
7963
7977
  "data-cy": "lupa-search-box-suggestions"
7964
7978
  };
7965
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
7979
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
7966
7980
  __name: "SearchBoxSuggestions",
7967
7981
  props: {
7968
7982
  items: {},
@@ -8022,9 +8036,9 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8022
8036
  });
8023
8037
  });
8024
8038
  return (_ctx, _cache) => {
8025
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
8039
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
8026
8040
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8027
- return openBlock(), createBlock(_sfc_main$17, {
8041
+ return openBlock(), createBlock(_sfc_main$16, {
8028
8042
  key: getSuggestionKey(item),
8029
8043
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8030
8044
  suggestion: item,
@@ -8052,7 +8066,7 @@ const debounce$1 = (func, timeout) => {
8052
8066
  }, timeout);
8053
8067
  };
8054
8068
  };
8055
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8069
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8056
8070
  __name: "SearchBoxSuggestionsWrapper",
8057
8071
  props: {
8058
8072
  panel: {},
@@ -8093,7 +8107,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8093
8107
  };
8094
8108
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8095
8109
  return (_ctx, _cache) => {
8096
- return openBlock(), createBlock(_sfc_main$16, {
8110
+ return openBlock(), createBlock(_sfc_main$15, {
8097
8111
  items: searchResult.value,
8098
8112
  highlight: _ctx.panel.highlight,
8099
8113
  queryKey: _ctx.panel.queryKey,
@@ -8171,8 +8185,8 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
8171
8185
  });
8172
8186
  return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
8173
8187
  });
8174
- const _hoisted_1$_ = ["src"];
8175
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8188
+ const _hoisted_1$Z = ["src"];
8189
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8176
8190
  __name: "ProductImage",
8177
8191
  props: {
8178
8192
  item: {},
@@ -8220,12 +8234,12 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8220
8234
  class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
8221
8235
  src: finalUrl.value,
8222
8236
  onError: replaceWithPlaceholder
8223
- }, null, 42, _hoisted_1$_)
8237
+ }, null, 42, _hoisted_1$Z)
8224
8238
  ], 2);
8225
8239
  };
8226
8240
  }
8227
8241
  });
8228
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8242
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8229
8243
  __name: "SearchBoxProductImage",
8230
8244
  props: {
8231
8245
  item: {},
@@ -8233,7 +8247,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8233
8247
  },
8234
8248
  setup(__props) {
8235
8249
  return (_ctx, _cache) => {
8236
- return openBlock(), createBlock(_sfc_main$14, {
8250
+ return openBlock(), createBlock(_sfc_main$13, {
8237
8251
  item: _ctx.item,
8238
8252
  options: _ctx.options,
8239
8253
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -8242,12 +8256,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8242
8256
  };
8243
8257
  }
8244
8258
  });
8245
- const _hoisted_1$Z = ["innerHTML"];
8246
- const _hoisted_2$G = {
8259
+ const _hoisted_1$Y = ["innerHTML"];
8260
+ const _hoisted_2$F = {
8247
8261
  key: 1,
8248
8262
  class: "lupa-search-box-product-title"
8249
8263
  };
8250
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8264
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8251
8265
  __name: "SearchBoxProductTitle",
8252
8266
  props: {
8253
8267
  item: {},
@@ -8267,18 +8281,18 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8267
8281
  key: 0,
8268
8282
  class: "lupa-search-box-product-title",
8269
8283
  innerHTML: title.value
8270
- }, null, 8, _hoisted_1$Z)) : (openBlock(), createElementBlock("div", _hoisted_2$G, [
8284
+ }, null, 8, _hoisted_1$Y)) : (openBlock(), createElementBlock("div", _hoisted_2$F, [
8271
8285
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
8272
8286
  ]));
8273
8287
  };
8274
8288
  }
8275
8289
  });
8276
- const _hoisted_1$Y = ["innerHTML"];
8277
- const _hoisted_2$F = {
8290
+ const _hoisted_1$X = ["innerHTML"];
8291
+ const _hoisted_2$E = {
8278
8292
  key: 1,
8279
8293
  class: "lupa-search-box-product-description"
8280
8294
  };
8281
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8295
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8282
8296
  __name: "SearchBoxProductDescription",
8283
8297
  props: {
8284
8298
  item: {},
@@ -8298,12 +8312,12 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8298
8312
  key: 0,
8299
8313
  class: "lupa-search-box-product-description",
8300
8314
  innerHTML: description.value
8301
- }, null, 8, _hoisted_1$Y)) : (openBlock(), createElementBlock("div", _hoisted_2$F, toDisplayString(description.value), 1));
8315
+ }, null, 8, _hoisted_1$X)) : (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(description.value), 1));
8302
8316
  };
8303
8317
  }
8304
8318
  });
8305
- const _hoisted_1$X = { class: "lupa-search-box-product-price" };
8306
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8319
+ const _hoisted_1$W = { class: "lupa-search-box-product-price" };
8320
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8307
8321
  __name: "SearchBoxProductPrice",
8308
8322
  props: {
8309
8323
  item: {},
@@ -8321,14 +8335,14 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8321
8335
  );
8322
8336
  });
8323
8337
  return (_ctx, _cache) => {
8324
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
8338
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
8325
8339
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
8326
8340
  ]);
8327
8341
  };
8328
8342
  }
8329
8343
  });
8330
- const _hoisted_1$W = { class: "lupa-search-box-product-regular-price" };
8331
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8344
+ const _hoisted_1$V = { class: "lupa-search-box-product-regular-price" };
8345
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8332
8346
  __name: "SearchBoxProductRegularPrice",
8333
8347
  props: {
8334
8348
  item: {},
@@ -8346,16 +8360,16 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8346
8360
  );
8347
8361
  });
8348
8362
  return (_ctx, _cache) => {
8349
- return openBlock(), createElementBlock("div", _hoisted_1$W, toDisplayString(price.value), 1);
8363
+ return openBlock(), createElementBlock("div", _hoisted_1$V, toDisplayString(price.value), 1);
8350
8364
  };
8351
8365
  }
8352
8366
  });
8353
- const _hoisted_1$V = ["innerHTML"];
8354
- const _hoisted_2$E = { key: 0 };
8367
+ const _hoisted_1$U = ["innerHTML"];
8368
+ const _hoisted_2$D = { key: 0 };
8355
8369
  const _hoisted_3$t = { key: 1 };
8356
8370
  const _hoisted_4$m = { class: "lupa-search-box-custom-label" };
8357
8371
  const _hoisted_5$a = { class: "lupa-search-box-custom-text" };
8358
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8372
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
8359
8373
  __name: "SearchBoxProductCustom",
8360
8374
  props: {
8361
8375
  item: {},
@@ -8381,11 +8395,11 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8381
8395
  key: 0,
8382
8396
  class: [className.value, "lupa-search-box-product-custom"],
8383
8397
  innerHTML: text.value
8384
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$V)) : (openBlock(), createElementBlock("div", mergeProps({
8398
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$U)) : (openBlock(), createElementBlock("div", mergeProps({
8385
8399
  key: 1,
8386
8400
  class: [className.value, "lupa-search-box-product-custom"]
8387
8401
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8388
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
8402
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
8389
8403
  createBaseVNode("div", _hoisted_4$m, toDisplayString(label.value), 1),
8390
8404
  createBaseVNode("div", _hoisted_5$a, toDisplayString(text.value), 1)
8391
8405
  ]))
@@ -8393,8 +8407,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8393
8407
  };
8394
8408
  }
8395
8409
  });
8396
- const _hoisted_1$U = ["innerHTML"];
8397
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
8410
+ const _hoisted_1$T = ["innerHTML"];
8411
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
8398
8412
  __name: "SearchBoxProductCustomHtml",
8399
8413
  props: {
8400
8414
  item: {},
@@ -8414,7 +8428,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
8414
8428
  return openBlock(), createElementBlock("div", mergeProps({
8415
8429
  class: className.value,
8416
8430
  innerHTML: text.value
8417
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$U);
8431
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$T);
8418
8432
  };
8419
8433
  }
8420
8434
  });
@@ -8609,10 +8623,10 @@ const useSearchResultStore = defineStore("searchResult", () => {
8609
8623
  setLoading
8610
8624
  };
8611
8625
  });
8612
- const _hoisted_1$T = { class: "lupa-search-box-add-to-cart-wrapper" };
8613
- const _hoisted_2$D = { class: "lupa-search-box-product-addtocart" };
8626
+ const _hoisted_1$S = { class: "lupa-search-box-add-to-cart-wrapper" };
8627
+ const _hoisted_2$C = { class: "lupa-search-box-product-addtocart" };
8614
8628
  const _hoisted_3$s = ["onClick", "disabled"];
8615
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
8629
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
8616
8630
  __name: "SearchBoxProductAddToCart",
8617
8631
  props: {
8618
8632
  item: {},
@@ -8639,8 +8653,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
8639
8653
  loading.value = false;
8640
8654
  });
8641
8655
  return (_ctx, _cache) => {
8642
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
8643
- createBaseVNode("div", _hoisted_2$D, [
8656
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
8657
+ createBaseVNode("div", _hoisted_2$C, [
8644
8658
  createBaseVNode("button", {
8645
8659
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
8646
8660
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -8655,17 +8669,17 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
8655
8669
  });
8656
8670
  const __default__$4 = {
8657
8671
  components: {
8658
- SearchBoxProductImage: _sfc_main$13,
8659
- SearchBoxProductTitle: _sfc_main$12,
8660
- SearchBoxProductDescription: _sfc_main$11,
8661
- SearchBoxProductPrice: _sfc_main$10,
8662
- SearchBoxProductRegularPrice: _sfc_main$$,
8663
- SearchBoxProductCustom: _sfc_main$_,
8664
- SearchBoxProductCustomHtml: _sfc_main$Z,
8665
- SearchBoxProductAddToCart: _sfc_main$Y
8672
+ SearchBoxProductImage: _sfc_main$12,
8673
+ SearchBoxProductTitle: _sfc_main$11,
8674
+ SearchBoxProductDescription: _sfc_main$10,
8675
+ SearchBoxProductPrice: _sfc_main$$,
8676
+ SearchBoxProductRegularPrice: _sfc_main$_,
8677
+ SearchBoxProductCustom: _sfc_main$Z,
8678
+ SearchBoxProductCustomHtml: _sfc_main$Y,
8679
+ SearchBoxProductAddToCart: _sfc_main$X
8666
8680
  }
8667
8681
  };
8668
- const _sfc_main$X = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8682
+ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8669
8683
  __name: "SearchBoxProductElement",
8670
8684
  props: {
8671
8685
  item: {},
@@ -8779,14 +8793,14 @@ const useTrackingStore = defineStore("tracking", () => {
8779
8793
  };
8780
8794
  return { trackSearch, trackResults, trackEvent };
8781
8795
  });
8782
- const _hoisted_1$S = ["href"];
8783
- const _hoisted_2$C = { class: "lupa-search-box-product-image-section" };
8796
+ const _hoisted_1$R = ["href"];
8797
+ const _hoisted_2$B = { class: "lupa-search-box-product-image-section" };
8784
8798
  const _hoisted_3$r = { class: "lupa-search-box-product-details-section" };
8785
8799
  const _hoisted_4$l = {
8786
8800
  key: 0,
8787
8801
  class: "lupa-search-box-product-add-to-cart-section"
8788
8802
  };
8789
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
8803
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
8790
8804
  __name: "SearchBoxProduct",
8791
8805
  props: {
8792
8806
  item: {},
@@ -8879,9 +8893,9 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
8879
8893
  href: link.value,
8880
8894
  onClick: handleClick
8881
8895
  }, [
8882
- createBaseVNode("div", _hoisted_2$C, [
8896
+ createBaseVNode("div", _hoisted_2$B, [
8883
8897
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
8884
- return openBlock(), createBlock(_sfc_main$X, {
8898
+ return openBlock(), createBlock(_sfc_main$W, {
8885
8899
  class: "lupa-search-box-product-element",
8886
8900
  item: _ctx.item,
8887
8901
  element,
@@ -8893,7 +8907,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
8893
8907
  ]),
8894
8908
  createBaseVNode("div", _hoisted_3$r, [
8895
8909
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
8896
- return openBlock(), createBlock(_sfc_main$X, {
8910
+ return openBlock(), createBlock(_sfc_main$W, {
8897
8911
  class: "lupa-search-box-product-element",
8898
8912
  item: _ctx.item,
8899
8913
  element,
@@ -8904,7 +8918,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
8904
8918
  }), 128))
8905
8919
  ]),
8906
8920
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
8907
- createVNode(_sfc_main$X, {
8921
+ createVNode(_sfc_main$W, {
8908
8922
  class: "lupa-search-box-product-element",
8909
8923
  item: _ctx.item,
8910
8924
  element: addToCartElement.value,
@@ -8913,12 +8927,12 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
8913
8927
  isInStock: isInStock.value
8914
8928
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
8915
8929
  ])) : createCommentVNode("", true)
8916
- ], 10, _hoisted_1$S);
8930
+ ], 10, _hoisted_1$R);
8917
8931
  };
8918
8932
  }
8919
8933
  });
8920
- const _hoisted_1$R = { id: "lupa-search-box-products" };
8921
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
8934
+ const _hoisted_1$Q = { id: "lupa-search-box-products" };
8935
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
8922
8936
  __name: "SearchBoxProducts",
8923
8937
  props: {
8924
8938
  items: {},
@@ -8938,7 +8952,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
8938
8952
  return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
8939
8953
  });
8940
8954
  return (_ctx, _cache) => {
8941
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
8955
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
8942
8956
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
8943
8957
  return renderSlot(_ctx.$slots, "productCard", {
8944
8958
  key: index,
@@ -8950,7 +8964,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
8950
8964
  onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
8951
8965
  });
8952
8966
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
8953
- return openBlock(), createBlock(_sfc_main$W, {
8967
+ return openBlock(), createBlock(_sfc_main$V, {
8954
8968
  key: index,
8955
8969
  item,
8956
8970
  panelOptions: _ctx.panelOptions,
@@ -8964,7 +8978,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
8964
8978
  };
8965
8979
  }
8966
8980
  });
8967
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
8981
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
8968
8982
  __name: "SearchBoxProductsWrapper",
8969
8983
  props: {
8970
8984
  panel: {},
@@ -9016,7 +9030,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9016
9030
  const getItemsDebounced = debounce$1(getItems, props.debounce);
9017
9031
  return (_ctx, _cache) => {
9018
9032
  var _a, _b;
9019
- return openBlock(), createBlock(_sfc_main$V, {
9033
+ return openBlock(), createBlock(_sfc_main$U, {
9020
9034
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9021
9035
  panelOptions: _ctx.panel,
9022
9036
  labels: _ctx.labels,
@@ -9034,11 +9048,11 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
9034
9048
  };
9035
9049
  }
9036
9050
  });
9037
- const _hoisted_1$Q = {
9051
+ const _hoisted_1$P = {
9038
9052
  key: 0,
9039
9053
  id: "lupa-search-box-panel"
9040
9054
  };
9041
- const _hoisted_2$B = {
9055
+ const _hoisted_2$A = {
9042
9056
  class: "lupa-main-panel",
9043
9057
  "data-cy": "lupa-main-panel"
9044
9058
  };
@@ -9049,11 +9063,11 @@ const _hoisted_4$k = {
9049
9063
  };
9050
9064
  const __default__$3 = {
9051
9065
  components: {
9052
- SearchBoxSuggestionsWrapper: _sfc_main$15,
9053
- SearchBoxProductsWrapper: _sfc_main$U
9066
+ SearchBoxSuggestionsWrapper: _sfc_main$14,
9067
+ SearchBoxProductsWrapper: _sfc_main$T
9054
9068
  }
9055
9069
  };
9056
- const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9070
+ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9057
9071
  __name: "SearchBoxMainPanel",
9058
9072
  props: {
9059
9073
  options: {},
@@ -9167,8 +9181,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9167
9181
  ref_key: "panelContainer",
9168
9182
  ref: panelContainer
9169
9183
  }, [
9170
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
9171
- createBaseVNode("div", _hoisted_2$B, [
9184
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
9185
+ createBaseVNode("div", _hoisted_2$A, [
9172
9186
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
9173
9187
  return openBlock(), createElementBlock("div", {
9174
9188
  key: index,
@@ -9200,13 +9214,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
9200
9214
  ], 10, _hoisted_3$q);
9201
9215
  }), 128))
9202
9216
  ]),
9203
- createVNode(_sfc_main$1a, {
9217
+ createVNode(_sfc_main$19, {
9204
9218
  labels: labels.value,
9205
9219
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
9206
9220
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
9207
9221
  }, null, 8, ["labels", "showTotalCount"])
9208
9222
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, [
9209
- createVNode(_sfc_main$18, {
9223
+ createVNode(_sfc_main$17, {
9210
9224
  options: _ctx.options.history,
9211
9225
  history: history.value,
9212
9226
  onGoToResults: handleGoToResults,
@@ -9231,9 +9245,9 @@ const unbindSearchTriggers = (triggers = [], event) => {
9231
9245
  const elements = getElements(triggers);
9232
9246
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
9233
9247
  };
9234
- const _hoisted_1$P = { id: "lupa-search-box" };
9235
- const _hoisted_2$A = { class: "lupa-search-box-wrapper" };
9236
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
9248
+ const _hoisted_1$O = { id: "lupa-search-box" };
9249
+ const _hoisted_2$z = { class: "lupa-search-box-wrapper" };
9250
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
9237
9251
  __name: "SearchBox",
9238
9252
  props: {
9239
9253
  options: {},
@@ -9465,9 +9479,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9465
9479
  };
9466
9480
  return (_ctx, _cache) => {
9467
9481
  var _a2;
9468
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
9469
- createBaseVNode("div", _hoisted_2$A, [
9470
- createVNode(_sfc_main$1b, {
9482
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
9483
+ createBaseVNode("div", _hoisted_2$z, [
9484
+ createVNode(_sfc_main$1a, {
9471
9485
  options: inputOptions.value,
9472
9486
  suggestedValue: suggestedValue.value,
9473
9487
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -9478,7 +9492,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
9478
9492
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
9479
9493
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
9480
9494
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
9481
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$T, {
9495
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$S, {
9482
9496
  key: 0,
9483
9497
  options: panelOptions.value,
9484
9498
  inputValue: inputValue.value,
@@ -9565,11 +9579,11 @@ const getSearchParams = (url, params, baseUrl) => {
9565
9579
  }
9566
9580
  return searchParams;
9567
9581
  };
9568
- const _hoisted_1$O = {
9582
+ const _hoisted_1$N = {
9569
9583
  key: 0,
9570
9584
  id: "lupa-search-results-did-you-mean"
9571
9585
  };
9572
- const _hoisted_2$z = {
9586
+ const _hoisted_2$y = {
9573
9587
  key: 0,
9574
9588
  "data-cy": "suggested-search-text-label"
9575
9589
  };
@@ -9578,7 +9592,7 @@ const _hoisted_3$p = {
9578
9592
  "data-cy": "did-you-mean-label"
9579
9593
  };
9580
9594
  const _hoisted_4$j = { key: 1 };
9581
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
9595
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9582
9596
  __name: "SearchResultsDidYouMean",
9583
9597
  props: {
9584
9598
  labels: {}
@@ -9610,8 +9624,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
9610
9624
  paramStore.goToResults({ searchText, facet });
9611
9625
  };
9612
9626
  return (_ctx, _cache) => {
9613
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
9614
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
9627
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
9628
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
9615
9629
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
9616
9630
  return openBlock(), createElementBlock("span", { key: index }, [
9617
9631
  createBaseVNode("span", {
@@ -9636,12 +9650,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
9636
9650
  };
9637
9651
  }
9638
9652
  });
9639
- const _hoisted_1$N = {
9653
+ const _hoisted_1$M = {
9640
9654
  key: 0,
9641
9655
  class: "lupa-search-results-summary"
9642
9656
  };
9643
- const _hoisted_2$y = ["innerHTML"];
9644
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9657
+ const _hoisted_2$x = ["innerHTML"];
9658
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9645
9659
  __name: "SearchResultsSummary",
9646
9660
  props: {
9647
9661
  label: {},
@@ -9656,8 +9670,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9656
9670
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
9657
9671
  });
9658
9672
  return (_ctx, _cache) => {
9659
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
9660
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$y),
9673
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
9674
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$x),
9661
9675
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
9662
9676
  key: 0,
9663
9677
  class: "lupa-filter-clear",
@@ -9668,18 +9682,18 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9668
9682
  };
9669
9683
  }
9670
9684
  });
9671
- const _hoisted_1$M = {
9685
+ const _hoisted_1$L = {
9672
9686
  key: 0,
9673
9687
  class: "lupa-result-page-title",
9674
9688
  "data-cy": "lupa-result-page-title"
9675
9689
  };
9676
- const _hoisted_2$x = { key: 0 };
9690
+ const _hoisted_2$w = { key: 0 };
9677
9691
  const _hoisted_3$o = {
9678
9692
  key: 1,
9679
9693
  class: "lupa-results-total-count"
9680
9694
  };
9681
9695
  const _hoisted_4$i = ["innerHTML"];
9682
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
9696
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
9683
9697
  __name: "SearchResultsTitle",
9684
9698
  props: {
9685
9699
  options: {},
@@ -9714,12 +9728,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9714
9728
  });
9715
9729
  return (_ctx, _cache) => {
9716
9730
  return openBlock(), createElementBlock("div", null, [
9717
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$M, [
9731
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$L, [
9718
9732
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
9719
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$x, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9733
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$w, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9720
9734
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$o, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
9721
9735
  ])) : createCommentVNode("", true),
9722
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Q, {
9736
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$P, {
9723
9737
  key: 1,
9724
9738
  label: summaryLabel.value
9725
9739
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -9732,8 +9746,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9732
9746
  };
9733
9747
  }
9734
9748
  });
9735
- const _hoisted_1$L = { class: "lupa-search-result-filter-value" };
9736
- const _hoisted_2$w = {
9749
+ const _hoisted_1$K = { class: "lupa-search-result-filter-value" };
9750
+ const _hoisted_2$v = {
9737
9751
  class: "lupa-current-filter-label",
9738
9752
  "data-cy": "lupa-current-filter-label"
9739
9753
  };
@@ -9741,7 +9755,7 @@ const _hoisted_3$n = {
9741
9755
  class: "lupa-current-filter-value",
9742
9756
  "data-cy": "lupa-current-filter-value"
9743
9757
  };
9744
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
9758
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
9745
9759
  __name: "CurrentFilterDisplay",
9746
9760
  props: {
9747
9761
  filter: {}
@@ -9753,19 +9767,19 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
9753
9767
  emit2("remove", { filter: props.filter });
9754
9768
  };
9755
9769
  return (_ctx, _cache) => {
9756
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
9770
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
9757
9771
  createBaseVNode("div", {
9758
9772
  class: "lupa-current-filter-action",
9759
9773
  onClick: handleClick
9760
9774
  }, "⨉"),
9761
- createBaseVNode("div", _hoisted_2$w, toDisplayString(_ctx.filter.label) + ": ", 1),
9775
+ createBaseVNode("div", _hoisted_2$v, toDisplayString(_ctx.filter.label) + ": ", 1),
9762
9776
  createBaseVNode("div", _hoisted_3$n, toDisplayString(_ctx.filter.value), 1)
9763
9777
  ]);
9764
9778
  };
9765
9779
  }
9766
9780
  });
9767
- const _hoisted_1$K = { class: "lupa-filter-title-text" };
9768
- const _hoisted_2$v = {
9781
+ const _hoisted_1$J = { class: "lupa-filter-title-text" };
9782
+ const _hoisted_2$u = {
9769
9783
  key: 0,
9770
9784
  class: "lupa-filter-count"
9771
9785
  };
@@ -9774,7 +9788,7 @@ const _hoisted_3$m = {
9774
9788
  class: "filter-values"
9775
9789
  };
9776
9790
  const _hoisted_4$h = { class: "lupa-current-filter-list" };
9777
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
9791
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
9778
9792
  __name: "CurrentFilters",
9779
9793
  props: {
9780
9794
  options: {},
@@ -9829,9 +9843,9 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
9829
9843
  class: "lupa-current-filter-title",
9830
9844
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
9831
9845
  }, [
9832
- createBaseVNode("div", _hoisted_1$K, [
9846
+ createBaseVNode("div", _hoisted_1$J, [
9833
9847
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
9834
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$v, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9848
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$u, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9835
9849
  ]),
9836
9850
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
9837
9851
  key: 0,
@@ -9841,7 +9855,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
9841
9855
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
9842
9856
  createBaseVNode("div", _hoisted_4$h, [
9843
9857
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
9844
- return openBlock(), createBlock(_sfc_main$O, {
9858
+ return openBlock(), createBlock(_sfc_main$N, {
9845
9859
  key: filter.key + "_" + filter.value,
9846
9860
  filter,
9847
9861
  onRemove: handleRemove
@@ -9858,8 +9872,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
9858
9872
  };
9859
9873
  }
9860
9874
  });
9861
- const _hoisted_1$J = ["href"];
9862
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
9875
+ const _hoisted_1$I = ["href"];
9876
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
9863
9877
  __name: "CategoryFilterItem",
9864
9878
  props: {
9865
9879
  options: {},
@@ -9896,20 +9910,20 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
9896
9910
  "data-cy": "lupa-child-category-item",
9897
9911
  href: urlLink.value,
9898
9912
  onClick: handleNavigation
9899
- }, toDisplayString(title.value), 9, _hoisted_1$J)
9913
+ }, toDisplayString(title.value), 9, _hoisted_1$I)
9900
9914
  ], 2);
9901
9915
  };
9902
9916
  }
9903
9917
  });
9904
- const _hoisted_1$I = {
9918
+ const _hoisted_1$H = {
9905
9919
  class: "lupa-category-filter",
9906
9920
  "data-cy": "lupa-category-filter"
9907
9921
  };
9908
- const _hoisted_2$u = { class: "lupa-category-back" };
9922
+ const _hoisted_2$t = { class: "lupa-category-back" };
9909
9923
  const _hoisted_3$l = ["href"];
9910
9924
  const _hoisted_4$g = ["href"];
9911
9925
  const _hoisted_5$9 = { class: "lupa-child-category-list" };
9912
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
9926
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
9913
9927
  __name: "CategoryFilter",
9914
9928
  props: {
9915
9929
  options: {}
@@ -9995,8 +10009,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
9995
10009
  };
9996
10010
  __expose({ fetch: fetch2 });
9997
10011
  return (_ctx, _cache) => {
9998
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
9999
- createBaseVNode("div", _hoisted_2$u, [
10012
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
10013
+ createBaseVNode("div", _hoisted_2$t, [
10000
10014
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
10001
10015
  key: 0,
10002
10016
  "data-cy": "lupa-category-back",
@@ -10016,7 +10030,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
10016
10030
  ], 2),
10017
10031
  createBaseVNode("div", _hoisted_5$9, [
10018
10032
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10019
- return openBlock(), createBlock(_sfc_main$M, {
10033
+ return openBlock(), createBlock(_sfc_main$L, {
10020
10034
  key: getCategoryKey(child),
10021
10035
  item: child,
10022
10036
  options: _ctx.options
@@ -10027,23 +10041,23 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
10027
10041
  };
10028
10042
  }
10029
10043
  });
10030
- const _hoisted_1$H = {
10044
+ const _hoisted_1$G = {
10031
10045
  class: "lupa-search-result-facet-term-values",
10032
10046
  "data-cy": "lupa-search-result-facet-term-values"
10033
10047
  };
10034
- const _hoisted_2$t = ["placeholder"];
10048
+ const _hoisted_2$s = ["placeholder"];
10035
10049
  const _hoisted_3$k = { class: "lupa-terms-list" };
10036
10050
  const _hoisted_4$f = ["onClick"];
10037
10051
  const _hoisted_5$8 = { class: "lupa-term-checkbox-wrapper" };
10038
10052
  const _hoisted_6$5 = { class: "lupa-term-checkbox-label" };
10039
10053
  const _hoisted_7$5 = { class: "lupa-term-label" };
10040
- const _hoisted_8$2 = {
10054
+ const _hoisted_8$1 = {
10041
10055
  key: 0,
10042
10056
  class: "lupa-term-count"
10043
10057
  };
10044
10058
  const _hoisted_9$1 = { key: 0 };
10045
10059
  const _hoisted_10$1 = { key: 1 };
10046
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
10060
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10047
10061
  __name: "TermFacet",
10048
10062
  props: {
10049
10063
  options: {},
@@ -10112,14 +10126,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10112
10126
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
10113
10127
  };
10114
10128
  return (_ctx, _cache) => {
10115
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
10129
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
10116
10130
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
10117
10131
  key: 0,
10118
10132
  class: "lupa-term-filter",
10119
10133
  "data-cy": "lupa-term-filter",
10120
10134
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
10121
10135
  placeholder: _ctx.options.labels.facetFilter
10122
- }, null, 8, _hoisted_2$t)), [
10136
+ }, null, 8, _hoisted_2$s)), [
10123
10137
  [vModelText, termFilter.value]
10124
10138
  ]) : createCommentVNode("", true),
10125
10139
  createBaseVNode("div", _hoisted_3$k, [
@@ -10137,7 +10151,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10137
10151
  ]),
10138
10152
  createBaseVNode("div", _hoisted_6$5, [
10139
10153
  createBaseVNode("span", _hoisted_7$5, toDisplayString(item.title), 1),
10140
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10154
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10141
10155
  ])
10142
10156
  ], 10, _hoisted_4$f);
10143
10157
  }), 128))
@@ -11130,8 +11144,8 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
11130
11144
  m.render = function(e, t, r, i, n, o) {
11131
11145
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
11132
11146
  }, m.__file = "src/Slider.vue";
11133
- const _hoisted_1$G = { class: "lupa-search-result-facet-stats-values" };
11134
- const _hoisted_2$s = {
11147
+ const _hoisted_1$F = { class: "lupa-search-result-facet-stats-values" };
11148
+ const _hoisted_2$r = {
11135
11149
  key: 0,
11136
11150
  class: "lupa-stats-facet-summary"
11137
11151
  };
@@ -11146,7 +11160,7 @@ const _hoisted_4$e = {
11146
11160
  const _hoisted_5$7 = { class: "lupa-stats-from" };
11147
11161
  const _hoisted_6$4 = ["max", "min", "pattern"];
11148
11162
  const _hoisted_7$4 = { key: 0 };
11149
- const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
11163
+ const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
11150
11164
  const _hoisted_9 = {
11151
11165
  key: 0,
11152
11166
  class: "lupa-stats-range-label"
@@ -11158,7 +11172,7 @@ const _hoisted_13 = {
11158
11172
  key: 2,
11159
11173
  class: "lupa-stats-slider-wrapper"
11160
11174
  };
11161
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
11175
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11162
11176
  __name: "StatsFacet",
11163
11177
  props: {
11164
11178
  options: {},
@@ -11306,8 +11320,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11306
11320
  innerSliderRange.value = value;
11307
11321
  };
11308
11322
  return (_ctx, _cache) => {
11309
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
11310
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
11323
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
11324
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
11311
11325
  createBaseVNode("div", null, [
11312
11326
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11313
11327
  createBaseVNode("div", _hoisted_5$7, [
@@ -11329,7 +11343,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11329
11343
  isPrice.value ? (openBlock(), createElementBlock("span", _hoisted_7$4, toDisplayString(currency.value), 1)) : createCommentVNode("", true)
11330
11344
  ])
11331
11345
  ]),
11332
- _hoisted_8$1,
11346
+ _hoisted_8,
11333
11347
  createBaseVNode("div", null, [
11334
11348
  rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
11335
11349
  createBaseVNode("div", _hoisted_10, [
@@ -11370,8 +11384,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11370
11384
  };
11371
11385
  }
11372
11386
  });
11373
- const _hoisted_1$F = { class: "lupa-term-checkbox-wrapper" };
11374
- const _hoisted_2$r = { class: "lupa-term-checkbox-label" };
11387
+ const _hoisted_1$E = { class: "lupa-term-checkbox-wrapper" };
11388
+ const _hoisted_2$q = { class: "lupa-term-checkbox-label" };
11375
11389
  const _hoisted_3$i = { class: "lupa-term-label" };
11376
11390
  const _hoisted_4$d = {
11377
11391
  key: 0,
@@ -11381,7 +11395,7 @@ const _hoisted_5$6 = {
11381
11395
  key: 0,
11382
11396
  class: "lupa-facet-level"
11383
11397
  };
11384
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
11398
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
11385
11399
  __name: "HierarchyFacetLevel",
11386
11400
  props: {
11387
11401
  options: {},
@@ -11427,12 +11441,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11427
11441
  "data-cy": "lupa-facet-term",
11428
11442
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
11429
11443
  }, [
11430
- createBaseVNode("div", _hoisted_1$F, [
11444
+ createBaseVNode("div", _hoisted_1$E, [
11431
11445
  createBaseVNode("span", {
11432
11446
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
11433
11447
  }, null, 2)
11434
11448
  ]),
11435
- createBaseVNode("div", _hoisted_2$r, [
11449
+ createBaseVNode("div", _hoisted_2$q, [
11436
11450
  createBaseVNode("span", _hoisted_3$i, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11437
11451
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$d, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11438
11452
  ])
@@ -11453,13 +11467,13 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11453
11467
  };
11454
11468
  }
11455
11469
  });
11456
- const _hoisted_1$E = {
11470
+ const _hoisted_1$D = {
11457
11471
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
11458
11472
  "data-cy": "lupa-search-result-facet-term-values"
11459
11473
  };
11460
- const _hoisted_2$q = { key: 0 };
11474
+ const _hoisted_2$p = { key: 0 };
11461
11475
  const _hoisted_3$h = ["placeholder"];
11462
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
11476
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
11463
11477
  __name: "HierarchyFacet",
11464
11478
  props: {
11465
11479
  options: {},
@@ -11509,8 +11523,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
11509
11523
  showAll.value = true;
11510
11524
  };
11511
11525
  return (_ctx, _cache) => {
11512
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
11513
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, [
11526
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
11527
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
11514
11528
  withDirectives(createBaseVNode("input", {
11515
11529
  class: "lupa-term-filter",
11516
11530
  "data-cy": "lupa-term-filter",
@@ -11521,7 +11535,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
11521
11535
  ])
11522
11536
  ])) : createCommentVNode("", true),
11523
11537
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11524
- return openBlock(), createBlock(_sfc_main$I, {
11538
+ return openBlock(), createBlock(_sfc_main$H, {
11525
11539
  key: item.title,
11526
11540
  options: _ctx.options,
11527
11541
  item,
@@ -11541,20 +11555,20 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
11541
11555
  };
11542
11556
  }
11543
11557
  });
11544
- const _hoisted_1$D = { class: "lupa-facet-label-text" };
11545
- const _hoisted_2$p = {
11558
+ const _hoisted_1$C = { class: "lupa-facet-label-text" };
11559
+ const _hoisted_2$o = {
11546
11560
  key: 0,
11547
11561
  class: "lupa-facet-content",
11548
11562
  "data-cy": "lupa-facet-content"
11549
11563
  };
11550
11564
  const __default__$2 = {
11551
11565
  components: {
11552
- TermFacet: _sfc_main$K,
11553
- StatsFacet: _sfc_main$J,
11554
- HierarchyFacet: _sfc_main$H
11566
+ TermFacet: _sfc_main$J,
11567
+ StatsFacet: _sfc_main$I,
11568
+ HierarchyFacet: _sfc_main$G
11555
11569
  }
11556
11570
  };
11557
- const _sfc_main$G = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11571
+ const _sfc_main$F = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11558
11572
  __name: "FacetDisplay",
11559
11573
  props: {
11560
11574
  options: {},
@@ -11665,12 +11679,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
11665
11679
  "data-cy": "lupa-search-result-facet-label",
11666
11680
  onClick: toggleFacet
11667
11681
  }, [
11668
- createBaseVNode("div", _hoisted_1$D, toDisplayString(facet.value.label), 1),
11682
+ createBaseVNode("div", _hoisted_1$C, toDisplayString(facet.value.label), 1),
11669
11683
  createBaseVNode("div", {
11670
11684
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
11671
11685
  }, null, 2)
11672
11686
  ], 2),
11673
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
11687
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
11674
11688
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
11675
11689
  facet: facet.value,
11676
11690
  currentFilters: currentFilters.value[facet.value.key],
@@ -11688,12 +11702,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
11688
11702
  };
11689
11703
  }
11690
11704
  }));
11691
- const _hoisted_1$C = { class: "lupa-search-result-facet-section" };
11692
- const _hoisted_2$o = {
11705
+ const _hoisted_1$B = { class: "lupa-search-result-facet-section" };
11706
+ const _hoisted_2$n = {
11693
11707
  key: 0,
11694
11708
  class: "lupa-facets-title"
11695
11709
  };
11696
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
11710
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11697
11711
  __name: "FacetList",
11698
11712
  props: {
11699
11713
  options: {},
@@ -11727,14 +11741,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
11727
11741
  };
11728
11742
  return (_ctx, _cache) => {
11729
11743
  var _a;
11730
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
11731
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11744
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
11745
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11732
11746
  createBaseVNode("div", {
11733
11747
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
11734
11748
  }, [
11735
11749
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
11736
11750
  var _a2;
11737
- return openBlock(), createBlock(_sfc_main$G, {
11751
+ return openBlock(), createBlock(_sfc_main$F, {
11738
11752
  key: facet.key,
11739
11753
  facet,
11740
11754
  currentFilters: currentFiltersValue.value,
@@ -11749,8 +11763,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
11749
11763
  };
11750
11764
  }
11751
11765
  });
11752
- const _hoisted_1$B = { class: "lupa-search-result-facets" };
11753
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
11766
+ const _hoisted_1$A = { class: "lupa-search-result-facets" };
11767
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11754
11768
  __name: "Facets",
11755
11769
  props: {
11756
11770
  options: {},
@@ -11796,8 +11810,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11796
11810
  paramStore.removeParameters({ paramsToRemove: [param] });
11797
11811
  };
11798
11812
  return (_ctx, _cache) => {
11799
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
11800
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$F, {
11813
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
11814
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$E, {
11801
11815
  key: 0,
11802
11816
  options: _ctx.options,
11803
11817
  facets: regularFacets.value,
@@ -11811,11 +11825,11 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11811
11825
  };
11812
11826
  }
11813
11827
  });
11814
- const _hoisted_1$A = {
11828
+ const _hoisted_1$z = {
11815
11829
  id: "lupa-search-result-filters",
11816
11830
  class: "lupa-search-result-filters"
11817
11831
  };
11818
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
11832
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11819
11833
  __name: "SearchResultsFilters",
11820
11834
  props: {
11821
11835
  options: {},
@@ -11844,19 +11858,19 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11844
11858
  __expose({ fetch: fetch2 });
11845
11859
  return (_ctx, _cache) => {
11846
11860
  var _a;
11847
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
11848
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$N, {
11861
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
11862
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$M, {
11849
11863
  key: 0,
11850
11864
  options: _ctx.options.currentFilters,
11851
11865
  expandable: (_a = _ctx.expandable) != null ? _a : false
11852
11866
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
11853
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$L, {
11867
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$K, {
11854
11868
  key: 1,
11855
11869
  options: _ctx.options.categories,
11856
11870
  ref_key: "categoryFilters",
11857
11871
  ref: categoryFilters
11858
11872
  }, null, 8, ["options"])) : createCommentVNode("", true),
11859
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
11873
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$D, {
11860
11874
  key: 2,
11861
11875
  options: _ctx.options.facets
11862
11876
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -11864,11 +11878,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11864
11878
  };
11865
11879
  }
11866
11880
  });
11867
- const _hoisted_1$z = {
11881
+ const _hoisted_1$y = {
11868
11882
  key: 0,
11869
11883
  class: "lupa-mobile-filter-sidebar"
11870
11884
  };
11871
- const _hoisted_2$n = ["onClick"];
11885
+ const _hoisted_2$m = ["onClick"];
11872
11886
  const _hoisted_3$g = { class: "lupa-mobile-sidebar-content" };
11873
11887
  const _hoisted_4$c = { class: "lupa-sidebar-top" };
11874
11888
  const _hoisted_5$5 = { class: "lupa-sidebar-title" };
@@ -11877,7 +11891,7 @@ const _hoisted_6$3 = {
11877
11891
  class: "lupa-sidebar-filter-count"
11878
11892
  };
11879
11893
  const _hoisted_7$3 = { class: "lupa-sidebar-filter-options" };
11880
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
11894
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11881
11895
  __name: "MobileFilterSidebar",
11882
11896
  props: {
11883
11897
  options: {}
@@ -11903,11 +11917,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11903
11917
  searchResultStore.setSidebarState({ visible: false });
11904
11918
  };
11905
11919
  return (_ctx, _cache) => {
11906
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
11920
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
11907
11921
  createBaseVNode("div", {
11908
11922
  class: "lupa-sidebar-close",
11909
11923
  onClick: withModifiers(handleMobileToggle, ["stop"])
11910
- }, null, 8, _hoisted_2$n),
11924
+ }, null, 8, _hoisted_2$m),
11911
11925
  createBaseVNode("div", _hoisted_3$g, [
11912
11926
  createBaseVNode("div", _hoisted_4$c, [
11913
11927
  createBaseVNode("div", _hoisted_5$5, [
@@ -11920,7 +11934,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11920
11934
  })
11921
11935
  ]),
11922
11936
  createBaseVNode("div", _hoisted_7$3, [
11923
- createVNode(_sfc_main$D, {
11937
+ createVNode(_sfc_main$C, {
11924
11938
  options: _ctx.options,
11925
11939
  expandable: isActiveFiltersExpanded.value
11926
11940
  }, null, 8, ["options", "expandable"])
@@ -11930,14 +11944,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11930
11944
  };
11931
11945
  }
11932
11946
  });
11933
- const _hoisted_1$y = { id: "lupa-search-results-breadcrumbs" };
11934
- const _hoisted_2$m = ["href", "onClick"];
11947
+ const _hoisted_1$x = { id: "lupa-search-results-breadcrumbs" };
11948
+ const _hoisted_2$l = ["href", "onClick"];
11935
11949
  const _hoisted_3$f = {
11936
11950
  key: 1,
11937
11951
  class: "lupa-search-results-breadcrumb-text"
11938
11952
  };
11939
11953
  const _hoisted_4$b = { key: 2 };
11940
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
11954
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11941
11955
  __name: "SearchResultsBreadcrumbs",
11942
11956
  props: {
11943
11957
  breadcrumbs: {}
@@ -11962,7 +11976,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11962
11976
  handleRoutingEvent(link, event, hasEventRouting.value);
11963
11977
  };
11964
11978
  return (_ctx, _cache) => {
11965
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
11979
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
11966
11980
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
11967
11981
  return openBlock(), createElementBlock("span", {
11968
11982
  class: "lupa-search-results-breadcrumb",
@@ -11976,7 +11990,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11976
11990
  var _a;
11977
11991
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
11978
11992
  }
11979
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$m)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(getLabel(breadcrumb.label)), 1)),
11993
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$l)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(getLabel(breadcrumb.label)), 1)),
11980
11994
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$b, " / ")) : createCommentVNode("", true)
11981
11995
  ]);
11982
11996
  }), 128))
@@ -11984,11 +11998,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11984
11998
  };
11985
11999
  }
11986
12000
  });
11987
- const _hoisted_1$x = {
12001
+ const _hoisted_1$w = {
11988
12002
  id: "lupa-search-result-filters",
11989
12003
  class: "lupa-search-result-filters"
11990
12004
  };
11991
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
12005
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
11992
12006
  __name: "FiltersTopDropdown",
11993
12007
  props: {
11994
12008
  options: {}
@@ -11996,8 +12010,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11996
12010
  setup(__props) {
11997
12011
  return (_ctx, _cache) => {
11998
12012
  var _a;
11999
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
12000
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
12013
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
12014
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$D, {
12001
12015
  key: 0,
12002
12016
  options: _ctx.options.facets,
12003
12017
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -12007,8 +12021,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
12007
12021
  };
12008
12022
  }
12009
12023
  });
12010
- const _hoisted_1$w = { id: "lupa-search-results-layout-selection" };
12011
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
12024
+ const _hoisted_1$v = { id: "lupa-search-results-layout-selection" };
12025
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12012
12026
  __name: "SearchResultsLayoutSelection",
12013
12027
  setup(__props) {
12014
12028
  const searchResultStore = useSearchResultStore();
@@ -12019,7 +12033,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12019
12033
  searchResultStore.setLayout(layout2);
12020
12034
  };
12021
12035
  return (_ctx, _cache) => {
12022
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
12036
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
12023
12037
  createBaseVNode("div", {
12024
12038
  class: normalizeClass([
12025
12039
  "lupa-layout-selection-grid",
@@ -12041,11 +12055,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12041
12055
  };
12042
12056
  }
12043
12057
  });
12044
- const _hoisted_1$v = {
12058
+ const _hoisted_1$u = {
12045
12059
  key: 0,
12046
12060
  class: "lupa-mobile-toggle-filter-count"
12047
12061
  };
12048
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
12062
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12049
12063
  __name: "SearchResultsMobileToggle",
12050
12064
  props: {
12051
12065
  label: {},
@@ -12063,17 +12077,17 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12063
12077
  onClick: handleMobileToggle
12064
12078
  }, [
12065
12079
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
12066
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$v, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12080
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$u, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12067
12081
  ], 2);
12068
12082
  };
12069
12083
  }
12070
12084
  });
12071
- const _hoisted_1$u = {
12085
+ const _hoisted_1$t = {
12072
12086
  key: 0,
12073
12087
  id: "lupa-search-results-page-select",
12074
12088
  "data-cy": "lupa-search-results-page-select"
12075
12089
  };
12076
- const _hoisted_2$l = {
12090
+ const _hoisted_2$k = {
12077
12091
  key: 0,
12078
12092
  class: "lupa-page-number-separator"
12079
12093
  };
@@ -12082,7 +12096,7 @@ const _hoisted_4$a = {
12082
12096
  key: 0,
12083
12097
  class: "lupa-page-number-separator"
12084
12098
  };
12085
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
12099
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12086
12100
  __name: "SearchResultsPageSelect",
12087
12101
  props: {
12088
12102
  lastPageLabel: {},
@@ -12144,7 +12158,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12144
12158
  }
12145
12159
  };
12146
12160
  return (_ctx, _cache) => {
12147
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
12161
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
12148
12162
  showBack.value ? (openBlock(), createElementBlock("div", {
12149
12163
  key: 0,
12150
12164
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -12155,7 +12169,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12155
12169
  class: "lupa-page-number lupa-page-number-first",
12156
12170
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
12157
12171
  }, " 1 "),
12158
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, "...")) : createCommentVNode("", true)
12172
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, "...")) : createCommentVNode("", true)
12159
12173
  ], 64)) : createCommentVNode("", true),
12160
12174
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
12161
12175
  return openBlock(), createElementBlock("div", {
@@ -12188,13 +12202,13 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12188
12202
  };
12189
12203
  }
12190
12204
  });
12191
- const _hoisted_1$t = {
12205
+ const _hoisted_1$s = {
12192
12206
  id: "lupa-search-results-page-size",
12193
12207
  "data-cy": "lupa-search-results-page-size"
12194
12208
  };
12195
- const _hoisted_2$k = { id: "lupa-select" };
12209
+ const _hoisted_2$j = { id: "lupa-select" };
12196
12210
  const _hoisted_3$d = { class: "lupa-select-label" };
12197
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
12211
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
12198
12212
  __name: "SearchResultsPageSize",
12199
12213
  props: {
12200
12214
  label: {},
@@ -12211,8 +12225,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12211
12225
  });
12212
12226
  };
12213
12227
  return (_ctx, _cache) => {
12214
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
12215
- createBaseVNode("div", _hoisted_2$k, [
12228
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
12229
+ createBaseVNode("div", _hoisted_2$j, [
12216
12230
  createBaseVNode("label", _hoisted_3$d, toDisplayString(_ctx.label), 1),
12217
12231
  createBaseVNode("select", {
12218
12232
  class: "lupa-select-dropdown",
@@ -12230,14 +12244,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12230
12244
  };
12231
12245
  }
12232
12246
  });
12233
- const _hoisted_1$s = {
12247
+ const _hoisted_1$r = {
12234
12248
  id: "lupa-search-results-sort",
12235
12249
  class: "lupa-search-results-sort"
12236
12250
  };
12237
- const _hoisted_2$j = { id: "lupa-select" };
12251
+ const _hoisted_2$i = { id: "lupa-select" };
12238
12252
  const _hoisted_3$c = { class: "lupa-select-label" };
12239
12253
  const _hoisted_4$9 = ["value"];
12240
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
12254
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12241
12255
  __name: "SearchResultsSort",
12242
12256
  props: {
12243
12257
  options: {}
@@ -12279,8 +12293,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
12279
12293
  });
12280
12294
  };
12281
12295
  return (_ctx, _cache) => {
12282
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
12283
- createBaseVNode("div", _hoisted_2$j, [
12296
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
12297
+ createBaseVNode("div", _hoisted_2$i, [
12284
12298
  createBaseVNode("label", _hoisted_3$c, toDisplayString(_ctx.options.label), 1),
12285
12299
  withDirectives(createBaseVNode("select", {
12286
12300
  class: "lupa-select-dropdown",
@@ -12303,14 +12317,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
12303
12317
  };
12304
12318
  }
12305
12319
  });
12306
- const _hoisted_1$r = { class: "lupa-toolbar-left" };
12307
- const _hoisted_2$i = { key: 1 };
12320
+ const _hoisted_1$q = { class: "lupa-toolbar-left" };
12321
+ const _hoisted_2$h = { key: 1 };
12308
12322
  const _hoisted_3$b = { key: 3 };
12309
12323
  const _hoisted_4$8 = { key: 5 };
12310
12324
  const _hoisted_5$4 = { class: "lupa-toolbar-right" };
12311
12325
  const _hoisted_6$2 = { key: 1 };
12312
12326
  const _hoisted_7$2 = { key: 3 };
12313
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
12327
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12314
12328
  __name: "SearchResultsToolbar",
12315
12329
  props: {
12316
12330
  options: {},
@@ -12407,15 +12421,15 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12407
12421
  id: "lupa-search-results-toolbar",
12408
12422
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
12409
12423
  }, [
12410
- createBaseVNode("div", _hoisted_1$r, [
12411
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$z, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$i)),
12412
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Q, {
12424
+ createBaseVNode("div", _hoisted_1$q, [
12425
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$y, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$h)),
12426
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$P, {
12413
12427
  key: 2,
12414
12428
  label: searchSummaryLabel.value,
12415
12429
  clearable: unref(hasAnyFilter) && showFilterClear.value,
12416
12430
  onClear: handleClearAll
12417
12431
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$b)),
12418
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$x, {
12432
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$w, {
12419
12433
  key: 4,
12420
12434
  options: paginationOptions.value.pageSelect,
12421
12435
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -12423,16 +12437,16 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12423
12437
  }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$8))
12424
12438
  ]),
12425
12439
  createBaseVNode("div", _hoisted_5$4, [
12426
- createVNode(_sfc_main$y, {
12440
+ createVNode(_sfc_main$x, {
12427
12441
  label: optionsValue.value.labels.mobileFilterButton,
12428
12442
  "show-filter-count": showMobileFilterCount.value
12429
12443
  }, null, 8, ["label", "show-filter-count"]),
12430
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$w, {
12444
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$v, {
12431
12445
  key: 0,
12432
12446
  options: paginationOptions.value.pageSize,
12433
12447
  label: paginationOptions.value.labels.pageSize
12434
12448
  }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$2)),
12435
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$v, {
12449
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$u, {
12436
12450
  key: 2,
12437
12451
  options: sortOptions.value
12438
12452
  }, null, 8, ["options"])) : (openBlock(), createElementBlock("div", _hoisted_7$2))
@@ -12441,14 +12455,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12441
12455
  };
12442
12456
  }
12443
12457
  });
12444
- const _hoisted_1$q = { class: "lupa-badge-title" };
12445
- const _hoisted_2$h = ["src"];
12458
+ const _hoisted_1$p = { class: "lupa-badge-title" };
12459
+ const _hoisted_2$g = ["src"];
12446
12460
  const _hoisted_3$a = { key: 1 };
12447
12461
  const _hoisted_4$7 = {
12448
12462
  key: 0,
12449
12463
  class: "lupa-badge-full-text"
12450
12464
  };
12451
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
12465
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12452
12466
  __name: "SearchResultGeneratedBadge",
12453
12467
  props: {
12454
12468
  options: {},
@@ -12481,11 +12495,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12481
12495
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
12482
12496
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
12483
12497
  }, [
12484
- createBaseVNode("span", _hoisted_1$q, [
12498
+ createBaseVNode("span", _hoisted_1$p, [
12485
12499
  image.value ? (openBlock(), createElementBlock("img", {
12486
12500
  key: 0,
12487
12501
  src: image.value
12488
- }, null, 8, _hoisted_2$h)) : createCommentVNode("", true),
12502
+ }, null, 8, _hoisted_2$g)) : createCommentVNode("", true),
12489
12503
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$a, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
12490
12504
  ]),
12491
12505
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -12493,8 +12507,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12493
12507
  };
12494
12508
  }
12495
12509
  });
12496
- const _hoisted_1$p = { class: "lupa-generated-badges" };
12497
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
12510
+ const _hoisted_1$o = { class: "lupa-generated-badges" };
12511
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12498
12512
  __name: "SearchResultGeneratedBadges",
12499
12513
  props: {
12500
12514
  options: {}
@@ -12520,9 +12534,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12520
12534
  })).filter((b) => Boolean(b.id));
12521
12535
  });
12522
12536
  return (_ctx, _cache) => {
12523
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
12537
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
12524
12538
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
12525
- return openBlock(), createBlock(_sfc_main$t, {
12539
+ return openBlock(), createBlock(_sfc_main$s, {
12526
12540
  key: badge.id,
12527
12541
  badge,
12528
12542
  options: _ctx.options
@@ -12532,8 +12546,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12532
12546
  };
12533
12547
  }
12534
12548
  });
12535
- const _hoisted_1$o = ["innerHTML"];
12536
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
12549
+ const _hoisted_1$n = ["innerHTML"];
12550
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12537
12551
  __name: "CustomBadge",
12538
12552
  props: {
12539
12553
  badge: {}
@@ -12552,12 +12566,12 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12552
12566
  return openBlock(), createElementBlock("div", {
12553
12567
  class: normalizeClass(className.value),
12554
12568
  innerHTML: text.value
12555
- }, null, 10, _hoisted_1$o);
12569
+ }, null, 10, _hoisted_1$n);
12556
12570
  };
12557
12571
  }
12558
12572
  });
12559
- const _hoisted_1$n = { class: "lupa-text-badges" };
12560
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
12573
+ const _hoisted_1$m = { class: "lupa-text-badges" };
12574
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
12561
12575
  __name: "TextBadge",
12562
12576
  props: {
12563
12577
  badge: {}
@@ -12572,7 +12586,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12572
12586
  return badges.value.slice(0, props.badge.maxItems);
12573
12587
  });
12574
12588
  return (_ctx, _cache) => {
12575
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
12589
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
12576
12590
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12577
12591
  return openBlock(), createElementBlock("div", {
12578
12592
  class: "lupa-badge lupa-text-badge",
@@ -12583,9 +12597,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12583
12597
  };
12584
12598
  }
12585
12599
  });
12586
- const _hoisted_1$m = { class: "lupa-image-badges" };
12587
- const _hoisted_2$g = ["src"];
12588
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
12600
+ const _hoisted_1$l = { class: "lupa-image-badges" };
12601
+ const _hoisted_2$f = ["src"];
12602
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
12589
12603
  __name: "ImageBadge",
12590
12604
  props: {
12591
12605
  badge: {}
@@ -12605,7 +12619,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
12605
12619
  return `${props.badge.rootImageUrl}${src}`;
12606
12620
  };
12607
12621
  return (_ctx, _cache) => {
12608
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
12622
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
12609
12623
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12610
12624
  return openBlock(), createElementBlock("div", {
12611
12625
  class: "lupa-badge lupa-image-badge",
@@ -12613,22 +12627,22 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
12613
12627
  }, [
12614
12628
  createBaseVNode("img", {
12615
12629
  src: getImageUrl(item)
12616
- }, null, 8, _hoisted_2$g)
12630
+ }, null, 8, _hoisted_2$f)
12617
12631
  ]);
12618
12632
  }), 128))
12619
12633
  ]);
12620
12634
  };
12621
12635
  }
12622
12636
  });
12623
- const _hoisted_1$l = { id: "lupa-search-results-badges" };
12637
+ const _hoisted_1$k = { id: "lupa-search-results-badges" };
12624
12638
  const __default__$1 = {
12625
12639
  components: {
12626
- CustomBadge: _sfc_main$r,
12627
- TextBadge: _sfc_main$q,
12628
- ImageBadge: _sfc_main$p
12640
+ CustomBadge: _sfc_main$q,
12641
+ TextBadge: _sfc_main$p,
12642
+ ImageBadge: _sfc_main$o
12629
12643
  }
12630
12644
  };
12631
- const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12645
+ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12632
12646
  __name: "SearchResultsBadgeWrapper",
12633
12647
  props: {
12634
12648
  position: {},
@@ -12674,7 +12688,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12674
12688
  }
12675
12689
  };
12676
12690
  return (_ctx, _cache) => {
12677
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
12691
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
12678
12692
  createBaseVNode("div", {
12679
12693
  id: "lupa-badges",
12680
12694
  class: normalizeClass(anchorPosition.value)
@@ -12685,7 +12699,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12685
12699
  badge
12686
12700
  }, null, 8, ["badge"]);
12687
12701
  }), 128)),
12688
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$s, {
12702
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$r, {
12689
12703
  key: 0,
12690
12704
  options: _ctx.options
12691
12705
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -12694,7 +12708,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
12694
12708
  };
12695
12709
  }
12696
12710
  }));
12697
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
12711
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
12698
12712
  __name: "SearchResultsProductImage",
12699
12713
  props: {
12700
12714
  item: {},
@@ -12702,7 +12716,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
12702
12716
  },
12703
12717
  setup(__props) {
12704
12718
  return (_ctx, _cache) => {
12705
- return openBlock(), createBlock(_sfc_main$14, {
12719
+ return openBlock(), createBlock(_sfc_main$13, {
12706
12720
  item: _ctx.item,
12707
12721
  options: _ctx.options,
12708
12722
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -12711,14 +12725,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
12711
12725
  };
12712
12726
  }
12713
12727
  });
12714
- const _hoisted_1$k = ["innerHTML"];
12715
- const _hoisted_2$f = ["title"];
12728
+ const _hoisted_1$j = ["innerHTML"];
12729
+ const _hoisted_2$e = ["title"];
12716
12730
  const _hoisted_3$9 = {
12717
12731
  key: 0,
12718
12732
  class: "lupa-search-results-product-title-text"
12719
12733
  };
12720
12734
  const _hoisted_4$6 = ["href"];
12721
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
12735
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
12722
12736
  __name: "SearchResultsProductTitle",
12723
12737
  props: {
12724
12738
  item: {},
@@ -12751,7 +12765,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
12751
12765
  class: "lupa-search-results-product-title",
12752
12766
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12753
12767
  innerHTML: title.value
12754
- }, null, 12, _hoisted_1$k)) : (openBlock(), createElementBlock("div", {
12768
+ }, null, 12, _hoisted_1$j)) : (openBlock(), createElementBlock("div", {
12755
12769
  key: 1,
12756
12770
  class: "lupa-search-results-product-title",
12757
12771
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -12764,12 +12778,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
12764
12778
  class: "lupa-search-results-product-title-text lupa-title-link",
12765
12779
  onClick: handleNavigation
12766
12780
  }, toDisplayString(title.value), 9, _hoisted_4$6)) : createCommentVNode("", true)
12767
- ], 12, _hoisted_2$f));
12781
+ ], 12, _hoisted_2$e));
12768
12782
  };
12769
12783
  }
12770
12784
  });
12771
- const _hoisted_1$j = ["innerHTML"];
12772
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
12785
+ const _hoisted_1$i = ["innerHTML"];
12786
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
12773
12787
  __name: "SearchResultsProductDescription",
12774
12788
  props: {
12775
12789
  item: {},
@@ -12793,7 +12807,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
12793
12807
  class: "lupa-search-results-product-description",
12794
12808
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12795
12809
  innerHTML: description.value
12796
- }, null, 12, _hoisted_1$j)) : (openBlock(), createElementBlock("div", {
12810
+ }, null, 12, _hoisted_1$i)) : (openBlock(), createElementBlock("div", {
12797
12811
  key: 1,
12798
12812
  class: "lupa-search-results-product-description",
12799
12813
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -12801,15 +12815,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
12801
12815
  };
12802
12816
  }
12803
12817
  });
12804
- const _hoisted_1$i = { id: "lupa-search-results-rating" };
12805
- const _hoisted_2$e = { class: "lupa-ratings" };
12818
+ const _hoisted_1$h = { id: "lupa-search-results-rating" };
12819
+ const _hoisted_2$d = { class: "lupa-ratings" };
12806
12820
  const _hoisted_3$8 = { class: "lupa-ratings-base" };
12807
12821
  const _hoisted_4$5 = ["innerHTML"];
12808
12822
  const _hoisted_5$3 = { class: "lupa-rating-wrapper" };
12809
12823
  const _hoisted_6$1 = ["innerHTML"];
12810
12824
  const _hoisted_7$1 = ["href"];
12811
12825
  const STAR_COUNT = 5;
12812
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
12826
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
12813
12827
  __name: "SearchResultsProductRating",
12814
12828
  props: {
12815
12829
  item: {},
@@ -12840,8 +12854,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
12840
12854
  return generateLink(props.options.links.ratingDetails, props.item);
12841
12855
  });
12842
12856
  return (_ctx, _cache) => {
12843
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
12844
- createBaseVNode("div", _hoisted_2$e, [
12857
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
12858
+ createBaseVNode("div", _hoisted_2$d, [
12845
12859
  createBaseVNode("div", _hoisted_3$8, [
12846
12860
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
12847
12861
  return openBlock(), createElementBlock("div", {
@@ -12874,11 +12888,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
12874
12888
  };
12875
12889
  }
12876
12890
  });
12877
- const _hoisted_1$h = {
12891
+ const _hoisted_1$g = {
12878
12892
  class: "lupa-search-results-product-regular-price",
12879
12893
  "data-cy": "lupa-search-results-product-regular-price"
12880
12894
  };
12881
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
12895
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
12882
12896
  __name: "SearchResultsProductRegularPrice",
12883
12897
  props: {
12884
12898
  item: {},
@@ -12896,15 +12910,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
12896
12910
  );
12897
12911
  });
12898
12912
  return (_ctx, _cache) => {
12899
- return openBlock(), createElementBlock("div", _hoisted_1$h, toDisplayString(price.value), 1);
12913
+ return openBlock(), createElementBlock("div", _hoisted_1$g, toDisplayString(price.value), 1);
12900
12914
  };
12901
12915
  }
12902
12916
  });
12903
- const _hoisted_1$g = {
12917
+ const _hoisted_1$f = {
12904
12918
  class: "lupa-search-results-product-price",
12905
12919
  "data-cy": "lupa-search-results-product-price"
12906
12920
  };
12907
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
12921
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
12908
12922
  __name: "SearchResultsProductPrice",
12909
12923
  props: {
12910
12924
  item: {},
@@ -12922,16 +12936,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
12922
12936
  );
12923
12937
  });
12924
12938
  return (_ctx, _cache) => {
12925
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
12939
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
12926
12940
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
12927
12941
  ]);
12928
12942
  };
12929
12943
  }
12930
12944
  });
12931
- const _hoisted_1$f = { class: "lupa-search-results-add-to-cart-wrapper" };
12932
- const _hoisted_2$d = { class: "lupa-search-results-product-addtocart" };
12945
+ const _hoisted_1$e = { class: "lupa-search-results-add-to-cart-wrapper" };
12946
+ const _hoisted_2$c = { class: "lupa-search-results-product-addtocart" };
12933
12947
  const _hoisted_3$7 = ["onClick", "disabled"];
12934
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
12948
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
12935
12949
  __name: "SearchResultsProductAddToCart",
12936
12950
  props: {
12937
12951
  item: {},
@@ -12958,8 +12972,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
12958
12972
  loading.value = false;
12959
12973
  });
12960
12974
  return (_ctx, _cache) => {
12961
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
12962
- createBaseVNode("div", _hoisted_2$d, [
12975
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
12976
+ createBaseVNode("div", _hoisted_2$c, [
12963
12977
  createBaseVNode("button", {
12964
12978
  onClick: withModifiers(handleClick, ["stop"]),
12965
12979
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -12971,12 +12985,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
12971
12985
  };
12972
12986
  }
12973
12987
  });
12974
- const _hoisted_1$e = ["innerHTML"];
12975
- const _hoisted_2$c = { key: 0 };
12988
+ const _hoisted_1$d = ["innerHTML"];
12989
+ const _hoisted_2$b = { key: 0 };
12976
12990
  const _hoisted_3$6 = { key: 1 };
12977
12991
  const _hoisted_4$4 = { class: "lupa-search-box-custom-label" };
12978
12992
  const _hoisted_5$2 = { class: "lupa-search-box-custom-text" };
12979
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
12993
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
12980
12994
  __name: "SearchResultsProductCustom",
12981
12995
  props: {
12982
12996
  item: {},
@@ -13014,11 +13028,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
13014
13028
  key: 0,
13015
13029
  class: className.value,
13016
13030
  innerHTML: text.value
13017
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$e)) : (openBlock(), createElementBlock("div", mergeProps({
13031
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$d)) : (openBlock(), createElementBlock("div", mergeProps({
13018
13032
  key: 1,
13019
13033
  class: className.value
13020
13034
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
13021
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$c, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$6, [
13035
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$b, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$6, [
13022
13036
  createBaseVNode("div", _hoisted_4$4, toDisplayString(label.value), 1),
13023
13037
  createBaseVNode("div", _hoisted_5$2, toDisplayString(text.value), 1)
13024
13038
  ]))
@@ -13026,8 +13040,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
13026
13040
  };
13027
13041
  }
13028
13042
  });
13029
- const _hoisted_1$d = ["innerHTML"];
13030
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
13043
+ const _hoisted_1$c = ["innerHTML"];
13044
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13031
13045
  __name: "SearchResultsProductCustomHtmlElement",
13032
13046
  props: {
13033
13047
  item: {},
@@ -13051,15 +13065,15 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
13051
13065
  return openBlock(), createElementBlock("div", mergeProps({
13052
13066
  class: className.value,
13053
13067
  innerHTML: text.value
13054
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$d);
13068
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$c);
13055
13069
  };
13056
13070
  }
13057
13071
  });
13058
- const _hoisted_1$c = { id: "lupa-search-results-rating" };
13059
- const _hoisted_2$b = ["innerHTML"];
13072
+ const _hoisted_1$b = { id: "lupa-search-results-rating" };
13073
+ const _hoisted_2$a = ["innerHTML"];
13060
13074
  const _hoisted_3$5 = { class: "lupa-ratings" };
13061
13075
  const _hoisted_4$3 = ["href"];
13062
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
13076
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13063
13077
  __name: "SearchResultsProductSingleStarRating",
13064
13078
  props: {
13065
13079
  item: {},
@@ -13087,11 +13101,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13087
13101
  return RATING_STAR_HTML;
13088
13102
  });
13089
13103
  return (_ctx, _cache) => {
13090
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
13104
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
13091
13105
  createBaseVNode("div", {
13092
13106
  innerHTML: star.value,
13093
13107
  class: "lupa-rating lupa-rating-highlighted"
13094
- }, null, 8, _hoisted_2$b),
13108
+ }, null, 8, _hoisted_2$a),
13095
13109
  createBaseVNode("div", _hoisted_3$5, toDisplayString(rating.value), 1),
13096
13110
  createBaseVNode("a", {
13097
13111
  href: ratingLink.value,
@@ -13103,19 +13117,19 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13103
13117
  });
13104
13118
  const __default__ = {
13105
13119
  components: {
13106
- SearchResultsProductImage: _sfc_main$n,
13107
- SearchResultsProductTitle: _sfc_main$m,
13108
- SearchResultsProductDescription: _sfc_main$l,
13109
- SearchResultsProductRating: _sfc_main$k,
13110
- SearchResultsProductRegularPrice: _sfc_main$j,
13111
- SearchResultsProductPrice: _sfc_main$i,
13112
- SearchResultsProductAddToCart: _sfc_main$h,
13113
- SearchResultsProductCustom: _sfc_main$g,
13114
- SearchResultsProductCustomHtmlElement: _sfc_main$f,
13115
- SearchResultsProductSingleStarRating: _sfc_main$e
13116
- }
13117
- };
13118
- const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13120
+ SearchResultsProductImage: _sfc_main$m,
13121
+ SearchResultsProductTitle: _sfc_main$l,
13122
+ SearchResultsProductDescription: _sfc_main$k,
13123
+ SearchResultsProductRating: _sfc_main$j,
13124
+ SearchResultsProductRegularPrice: _sfc_main$i,
13125
+ SearchResultsProductPrice: _sfc_main$h,
13126
+ SearchResultsProductAddToCart: _sfc_main$g,
13127
+ SearchResultsProductCustom: _sfc_main$f,
13128
+ SearchResultsProductCustomHtmlElement: _sfc_main$e,
13129
+ SearchResultsProductSingleStarRating: _sfc_main$d
13130
+ }
13131
+ };
13132
+ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13119
13133
  __name: "SearchResultsProductCardElement",
13120
13134
  props: {
13121
13135
  item: {},
@@ -13185,13 +13199,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
13185
13199
  };
13186
13200
  }
13187
13201
  }));
13188
- const _hoisted_1$b = ["href"];
13189
- const _hoisted_2$a = {
13202
+ const _hoisted_1$a = ["href"];
13203
+ const _hoisted_2$9 = {
13190
13204
  key: 0,
13191
13205
  class: "lupa-out-of-stock"
13192
13206
  };
13193
13207
  const _hoisted_3$4 = { class: "lupa-search-result-product-details-section" };
13194
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
13208
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13195
13209
  __name: "SearchResultsProductCard",
13196
13210
  props: {
13197
13211
  product: {},
@@ -13336,7 +13350,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13336
13350
  class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
13337
13351
  onClick: handleClick
13338
13352
  }, [
13339
- createVNode(_sfc_main$o, { options: badgesOptions.value }, null, 8, ["options"]),
13353
+ createVNode(_sfc_main$n, { options: badgesOptions.value }, null, 8, ["options"]),
13340
13354
  createBaseVNode("div", {
13341
13355
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
13342
13356
  }, [
@@ -13346,7 +13360,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13346
13360
  onClick: handleNavigation
13347
13361
  }, [
13348
13362
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
13349
- return openBlock(), createBlock(_sfc_main$d, {
13363
+ return openBlock(), createBlock(_sfc_main$c, {
13350
13364
  class: "lupa-search-results-product-element",
13351
13365
  item: _ctx.product,
13352
13366
  element,
@@ -13356,16 +13370,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13356
13370
  link: link.value
13357
13371
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
13358
13372
  }), 128)),
13359
- createVNode(_sfc_main$o, {
13373
+ createVNode(_sfc_main$n, {
13360
13374
  options: badgesOptions.value,
13361
13375
  position: "image",
13362
13376
  class: "lupa-image-badges"
13363
13377
  }, null, 8, ["options"]),
13364
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13365
- ], 8, _hoisted_1$b),
13378
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13379
+ ], 8, _hoisted_1$a),
13366
13380
  createBaseVNode("div", _hoisted_3$4, [
13367
13381
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
13368
- return openBlock(), createBlock(_sfc_main$d, {
13382
+ return openBlock(), createBlock(_sfc_main$c, {
13369
13383
  class: "lupa-search-results-product-element",
13370
13384
  item: _ctx.product,
13371
13385
  element,
@@ -13383,7 +13397,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13383
13397
  class: normalizeClass("lupa-element-group-" + group)
13384
13398
  }, [
13385
13399
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
13386
- return openBlock(), createBlock(_sfc_main$d, {
13400
+ return openBlock(), createBlock(_sfc_main$c, {
13387
13401
  class: "lupa-search-results-product-element",
13388
13402
  item: _ctx.product,
13389
13403
  element,
@@ -13401,42 +13415,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13401
13415
  };
13402
13416
  }
13403
13417
  });
13404
- const _hoisted_1$a = { id: "lupa-similar-query-text-component" };
13405
- const _hoisted_2$9 = ["data-cy"];
13406
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
13407
- __name: "SimilarQueryText",
13408
- props: {
13409
- similarQuery: {},
13410
- label: {}
13411
- },
13412
- setup(__props) {
13413
- const props = __props;
13414
- const searchResultStore = useSearchResultStore();
13415
- const { searchResult } = storeToRefs(searchResultStore);
13416
- const searchText = computed(() => searchResult.value.searchText);
13417
- const count = computed(() => {
13418
- return props.similarQuery.count;
13419
- });
13420
- const insertValue = (text, query) => {
13421
- return text.includes("{1}") ? addParamsToLabel(text, query).split(" ") : text.split(" ");
13422
- };
13423
- const getStyle = (text) => {
13424
- return !props.similarQuery.query.includes(text) ? "lupa-similar-query-crossed" : "";
13425
- };
13426
- return (_ctx, _cache) => {
13427
- return openBlock(), createElementBlock("span", _hoisted_1$a, [
13428
- (openBlock(true), createElementBlock(Fragment, null, renderList(insertValue(_ctx.label, searchText.value), (text, index) => {
13429
- return openBlock(), createElementBlock("span", {
13430
- key: index,
13431
- class: normalizeClass(getStyle(text)),
13432
- "data-cy": getStyle(text)
13433
- }, toDisplayString(text) + " ", 11, _hoisted_2$9);
13434
- }), 128)),
13435
- createTextVNode("(" + toDisplayString(count.value) + ") ", 1)
13436
- ]);
13437
- };
13438
- }
13439
- });
13440
13418
  const _hoisted_1$9 = {
13441
13419
  id: "lupa-search-results-similar-queries",
13442
13420
  "data-cy": "lupa-search-results-similar-queries"
@@ -13447,10 +13425,9 @@ const _hoisted_3$3 = {
13447
13425
  "data-cy": "lupa-similar-query-label"
13448
13426
  };
13449
13427
  const _hoisted_4$2 = ["onClick"];
13450
- const _hoisted_5$1 = { key: 1 };
13451
- const _hoisted_6 = { key: 1 };
13452
- const _hoisted_7 = { class: "lupa-similar-query-value" };
13453
- const _hoisted_8 = {
13428
+ const _hoisted_5$1 = ["innerHTML"];
13429
+ const _hoisted_6 = { key: 0 };
13430
+ const _hoisted_7 = {
13454
13431
  class: "lupa-products",
13455
13432
  "data-cy": "lupa-products"
13456
13433
  };
@@ -13470,6 +13447,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
13470
13447
  const getDocumentKey = (index, product) => {
13471
13448
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
13472
13449
  };
13450
+ const similarQueryLabel = computed(() => {
13451
+ var _a, _b;
13452
+ return (_b = (_a = props.labels.similarQuery) == null ? void 0 : _a.replace("{1}", "")) != null ? _b : "";
13453
+ });
13454
+ const getSimilarQueryContent = (displayQuery) => {
13455
+ return escapeHtml(displayQuery);
13456
+ };
13473
13457
  const goToResults = ({
13474
13458
  searchText,
13475
13459
  facet
@@ -13482,27 +13466,22 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
13482
13466
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
13483
13467
  return openBlock(), createElementBlock("div", { key: index }, [
13484
13468
  createBaseVNode("div", _hoisted_3$3, [
13485
- !similarQuery.aiSuggestions ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.labels.similarQuery.split(" "), (label, index2) => {
13486
- return openBlock(), createElementBlock("span", { key: index2 }, [
13487
- label.includes("{1}") ? (openBlock(), createElementBlock("span", {
13488
- key: 0,
13489
- onClick: ($event) => goToResults({ searchText: similarQuery.query }),
13490
- class: "lupa-similar-query-value lupa-similar-query-link",
13491
- "data-cy": "lupa-similar-query-value"
13492
- }, [
13493
- createVNode(_sfc_main$b, {
13494
- label,
13495
- similarQuery
13496
- }, null, 8, ["label", "similarQuery"])
13497
- ], 8, _hoisted_4$2)) : (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(label) + " ", 1))
13498
- ]);
13499
- }), 128)) : (openBlock(), createElementBlock("span", _hoisted_6, [
13500
- createBaseVNode("span", _hoisted_7, toDisplayString(_ctx.labels.aiSuggestions), 1)
13501
- ]))
13469
+ createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
13470
+ createBaseVNode("span", {
13471
+ id: "lupa-similar-query-text-component",
13472
+ class: "lupa-similar-query-value lupa-similar-query-link",
13473
+ onClick: ($event) => goToResults({ searchText: similarQuery.query }),
13474
+ "data-cy": "lupa-similar-query-value"
13475
+ }, [
13476
+ createBaseVNode("span", {
13477
+ innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
13478
+ }, null, 8, _hoisted_5$1),
13479
+ similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
13480
+ ], 8, _hoisted_4$2)
13502
13481
  ]),
13503
- createBaseVNode("div", _hoisted_8, [
13482
+ createBaseVNode("div", _hoisted_7, [
13504
13483
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
13505
- return openBlock(), createBlock(_sfc_main$c, {
13484
+ return openBlock(), createBlock(_sfc_main$b, {
13506
13485
  style: normalizeStyle(_ctx.columnSize),
13507
13486
  key: getDocumentKey(index2, product),
13508
13487
  product,
@@ -13599,7 +13578,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
13599
13578
  return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
13600
13579
  createBaseVNode("div", _hoisted_2$7, [
13601
13580
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
13602
- return openBlock(), createBlock(_sfc_main$c, {
13581
+ return openBlock(), createBlock(_sfc_main$b, {
13603
13582
  key: index,
13604
13583
  product: item,
13605
13584
  options: _ctx.panel,
@@ -13783,17 +13762,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13783
13762
  class: "lupa-loader"
13784
13763
  })) : createCommentVNode("", true),
13785
13764
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
13786
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
13765
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$z, {
13787
13766
  key: 0,
13788
13767
  options: (_a = _ctx.options.filters) != null ? _a : {}
13789
13768
  }, null, 8, ["options"])) : createCommentVNode("", true),
13790
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$u, {
13769
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$t, {
13791
13770
  key: 1,
13792
13771
  class: "lupa-toolbar-mobile",
13793
13772
  options: _ctx.options,
13794
13773
  "pagination-location": "top"
13795
13774
  }, null, 8, ["options"])) : createCommentVNode("", true),
13796
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$N, {
13775
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$M, {
13797
13776
  key: 2,
13798
13777
  class: normalizeClass(currentFiltersClass.value),
13799
13778
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -13807,7 +13786,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13807
13786
  sdkOptions: _ctx.options.options
13808
13787
  }, null, 8, ["options", "sdkOptions"]),
13809
13788
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
13810
- createVNode(_sfc_main$u, {
13789
+ createVNode(_sfc_main$t, {
13811
13790
  class: "lupa-toolbar-top",
13812
13791
  options: _ctx.options,
13813
13792
  "pagination-location": "top"
@@ -13821,7 +13800,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13821
13800
  options: productCardOptions.value
13822
13801
  });
13823
13802
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
13824
- return openBlock(), createBlock(_sfc_main$c, {
13803
+ return openBlock(), createBlock(_sfc_main$b, {
13825
13804
  style: normalizeStyle(columnSize.value),
13826
13805
  key: getProductKeyAction(index, product),
13827
13806
  product,
@@ -13837,7 +13816,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13837
13816
  onClick: goToFirstPage
13838
13817
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
13839
13818
  ])) : createCommentVNode("", true),
13840
- createVNode(_sfc_main$u, {
13819
+ createVNode(_sfc_main$t, {
13841
13820
  class: "lupa-toolbar-bottom",
13842
13821
  options: _ctx.options,
13843
13822
  "pagination-location": "bottom"
@@ -13909,7 +13888,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
13909
13888
  onClick: handleNavigationBack
13910
13889
  }, toDisplayString(backTitle.value), 9, _hoisted_3$1)
13911
13890
  ])) : createCommentVNode("", true),
13912
- createVNode(_sfc_main$u, {
13891
+ createVNode(_sfc_main$t, {
13913
13892
  class: "lupa-toolbar-mobile",
13914
13893
  "pagination-location": "top",
13915
13894
  options: _ctx.options
@@ -14120,8 +14099,8 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
14120
14099
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
14121
14100
  }, [
14122
14101
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
14123
- createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14124
- createVNode(_sfc_main$P, {
14102
+ createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14103
+ createVNode(_sfc_main$O, {
14125
14104
  "show-summary": true,
14126
14105
  options: _ctx.options,
14127
14106
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -14131,24 +14110,24 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
14131
14110
  key: 1,
14132
14111
  options: _ctx.options
14133
14112
  }, null, 8, ["options"])) : createCommentVNode("", true),
14134
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$C, {
14113
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$B, {
14135
14114
  key: 2,
14136
14115
  options: _ctx.options.filters
14137
14116
  }, null, 8, ["options"])) : createCommentVNode("", true),
14138
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$B, {
14117
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$A, {
14139
14118
  key: 3,
14140
14119
  breadcrumbs: _ctx.options.breadcrumbs
14141
14120
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
14142
14121
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
14143
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
14122
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$C, {
14144
14123
  key: 0,
14145
14124
  options: (_b = _ctx.options.filters) != null ? _b : {},
14146
14125
  ref_key: "searchResultsFilters",
14147
14126
  ref: searchResultsFilters
14148
14127
  }, null, 8, ["options"])) : createCommentVNode("", true),
14149
14128
  createBaseVNode("div", _hoisted_3, [
14150
- createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14151
- createVNode(_sfc_main$P, {
14129
+ createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14130
+ createVNode(_sfc_main$O, {
14152
14131
  options: _ctx.options,
14153
14132
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
14154
14133
  }, null, 8, ["options", "is-product-list"]),
@@ -14163,13 +14142,13 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
14163
14142
  }, 8, ["options", "ssr"])
14164
14143
  ])
14165
14144
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
14166
- createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14167
- createVNode(_sfc_main$P, {
14145
+ createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14146
+ createVNode(_sfc_main$O, {
14168
14147
  options: _ctx.options,
14169
14148
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
14170
14149
  }, null, 8, ["options", "is-product-list"]),
14171
14150
  createBaseVNode("div", _hoisted_4, [
14172
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
14151
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$C, {
14173
14152
  key: 0,
14174
14153
  options: (_e = _ctx.options.filters) != null ? _e : {},
14175
14154
  ref_key: "searchResultsFilters",
@@ -19797,7 +19776,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
19797
19776
  onClick: withModifiers(innerClick, ["stop"])
19798
19777
  }, [
19799
19778
  createBaseVNode("div", _hoisted_2$1, [
19800
- createVNode(_sfc_main$S, {
19779
+ createVNode(_sfc_main$R, {
19801
19780
  options: fullSearchBoxOptions.value,
19802
19781
  "is-search-container": true,
19803
19782
  ref_key: "searchBox",
@@ -20520,7 +20499,7 @@ const _hoisted_2 = {
20520
20499
  class: "lupa-recommended-products",
20521
20500
  "data-cy": "lupa-recommended-products"
20522
20501
  };
20523
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
20502
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
20524
20503
  __name: "Recommendations",
20525
20504
  props: {
20526
20505
  options: {}
@@ -20618,7 +20597,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
20618
20597
  key: getProductKeyAction(index, product)
20619
20598
  }, {
20620
20599
  default: withCtx(() => [
20621
- createVNode(_sfc_main$c, {
20600
+ createVNode(_sfc_main$b, {
20622
20601
  product,
20623
20602
  options: _ctx.options,
20624
20603
  "click-tracking-settings": clickTrackingSettings.value
@@ -26189,7 +26168,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26189
26168
  const searchBox2 = ref(null);
26190
26169
  const fullSearchBoxOptions = computed(() => {
26191
26170
  const options = lodashExports.cloneDeep(props.searchBoxOptions);
26192
- return lodashExports.merge(DEFAULT_SEARCH_BOX_OPTIONS, options);
26171
+ return lodashExports.merge(lodashExports.cloneDeep(DEFAULT_SEARCH_BOX_OPTIONS), options);
26193
26172
  });
26194
26173
  const fetch2 = () => {
26195
26174
  var _a;
@@ -26197,7 +26176,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26197
26176
  };
26198
26177
  __expose({ fetch: fetch2 });
26199
26178
  return (_ctx, _cache) => {
26200
- return openBlock(), createBlock(unref(_sfc_main$S), {
26179
+ return openBlock(), createBlock(unref(_sfc_main$R), {
26201
26180
  options: fullSearchBoxOptions.value,
26202
26181
  ref_key: "searchBox",
26203
26182
  ref: searchBox2
@@ -26316,7 +26295,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
26316
26295
  const searchResults2 = ref(null);
26317
26296
  const fullSearchResultsOptions = computed(() => {
26318
26297
  const options = lodashExports.cloneDeep(props.searchResultsOptions);
26319
- return lodashExports.merge(DEFAULT_OPTIONS_RESULTS, options);
26298
+ return lodashExports.merge(lodashExports.cloneDeep(DEFAULT_OPTIONS_RESULTS), options);
26320
26299
  });
26321
26300
  const fetch2 = () => {
26322
26301
  var _a;
@@ -26453,7 +26432,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26453
26432
  };
26454
26433
  __expose({ fetch: fetch2 });
26455
26434
  return (_ctx, _cache) => {
26456
- return openBlock(), createBlock(unref(_sfc_main$1c), {
26435
+ return openBlock(), createBlock(unref(_sfc_main$1b), {
26457
26436
  options: _ctx.recommendationOptions,
26458
26437
  ref_key: "productRecommendations",
26459
26438
  ref: productRecommendations