@getlupa/client 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6364,7 +6364,21 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6364
6364
  if (!value) {
6365
6365
  return "";
6366
6366
  }
6367
- return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
6367
+ let output = "";
6368
+ let isSkip = false;
6369
+ value.split(/(<del>.*?<\/del>)/g).forEach((segment) => {
6370
+ if (segment.startsWith("<del>") && segment.endsWith("</del>")) {
6371
+ output += segment;
6372
+ isSkip = true;
6373
+ }
6374
+ if (!isSkip) {
6375
+ output += segment.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
6376
+ }
6377
+ if (isSkip) {
6378
+ isSkip = false;
6379
+ }
6380
+ });
6381
+ return output;
6368
6382
  };
6369
6383
  const initAnalyticsTracking = (analyticsOptions) => {
6370
6384
  try {
@@ -7644,8 +7658,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7644
7658
  resetHighlightIndex
7645
7659
  };
7646
7660
  });
7647
- const _hoisted_1$13 = { id: "lupa-search-box-input-container" };
7648
- const _hoisted_2$J = { class: "lupa-input-clear" };
7661
+ const _hoisted_1$12 = { id: "lupa-search-box-input-container" };
7662
+ const _hoisted_2$I = { class: "lupa-input-clear" };
7649
7663
  const _hoisted_3$v = { id: "lupa-search-box-input" };
7650
7664
  const _hoisted_4$o = ["value"];
7651
7665
  const _hoisted_5$c = ["placeholder"];
@@ -7653,7 +7667,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7653
7667
  key: 0,
7654
7668
  class: "lupa-close-label"
7655
7669
  };
7656
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
7670
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
7657
7671
  __name: "SearchBoxInput",
7658
7672
  props: {
7659
7673
  options: {},
@@ -7730,8 +7744,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7730
7744
  };
7731
7745
  __expose({ focus });
7732
7746
  return (_ctx, _cache) => {
7733
- return openBlock(), createElementBlock("div", _hoisted_1$13, [
7734
- createBaseVNode("div", _hoisted_2$J, [
7747
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
7748
+ createBaseVNode("div", _hoisted_2$I, [
7735
7749
  createBaseVNode("div", {
7736
7750
  class: normalizeClass(["lupa-input-clear-content", { "lupa-input-clear-filled": inputValue.value }]),
7737
7751
  onClick: clear2
@@ -7770,7 +7784,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7770
7784
  };
7771
7785
  }
7772
7786
  });
7773
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
7787
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
7774
7788
  __name: "SearchBoxMoreResults",
7775
7789
  props: {
7776
7790
  labels: {},
@@ -7802,9 +7816,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7802
7816
  };
7803
7817
  }
7804
7818
  });
7805
- const _hoisted_1$12 = { class: "lupa-search-box-history-item" };
7806
- const _hoisted_2$I = { class: "lupa-search-box-history-item-content" };
7807
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
7819
+ const _hoisted_1$11 = { class: "lupa-search-box-history-item" };
7820
+ const _hoisted_2$H = { class: "lupa-search-box-history-item-content" };
7821
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
7808
7822
  __name: "SearchBoxHistoryItem",
7809
7823
  props: {
7810
7824
  item: {},
@@ -7820,8 +7834,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7820
7834
  emit2("click", { query: props.item });
7821
7835
  };
7822
7836
  return (_ctx, _cache) => {
7823
- return openBlock(), createElementBlock("div", _hoisted_1$12, [
7824
- createBaseVNode("div", _hoisted_2$I, [
7837
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
7838
+ createBaseVNode("div", _hoisted_2$H, [
7825
7839
  createBaseVNode("div", {
7826
7840
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
7827
7841
  onClick: click2
@@ -7835,11 +7849,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7835
7849
  };
7836
7850
  }
7837
7851
  });
7838
- const _hoisted_1$11 = {
7852
+ const _hoisted_1$10 = {
7839
7853
  key: 0,
7840
7854
  class: "lupa-search-box-history-panel"
7841
7855
  };
7842
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
7856
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
7843
7857
  __name: "SearchBoxHistoryPanel",
7844
7858
  props: {
7845
7859
  options: {}
@@ -7880,9 +7894,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7880
7894
  }
7881
7895
  };
7882
7896
  return (_ctx, _cache) => {
7883
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$11, [
7897
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
7884
7898
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(history), (item, index) => {
7885
- return openBlock(), createBlock(_sfc_main$19, {
7899
+ return openBlock(), createBlock(_sfc_main$18, {
7886
7900
  key: item,
7887
7901
  item,
7888
7902
  highlighted: index === highlightIndex.value,
@@ -7898,8 +7912,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7898
7912
  };
7899
7913
  }
7900
7914
  });
7901
- const _hoisted_1$10 = ["innerHTML"];
7902
- const _hoisted_2$H = {
7915
+ const _hoisted_1$$ = ["innerHTML"];
7916
+ const _hoisted_2$G = {
7903
7917
  key: 1,
7904
7918
  "data-cy": "lupa-suggestion-value",
7905
7919
  class: "lupa-suggestion-value"
@@ -7917,7 +7931,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7917
7931
  class: "lupa-suggestion-facet-value",
7918
7932
  "data-cy": "lupa-suggestion-facet-value"
7919
7933
  };
7920
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
7934
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
7921
7935
  __name: "SearchBoxSuggestion",
7922
7936
  props: {
7923
7937
  suggestion: {},
@@ -7953,7 +7967,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7953
7967
  class: "lupa-suggestion-value",
7954
7968
  "data-cy": "lupa-suggestion-value",
7955
7969
  innerHTML: _ctx.suggestion.displayHighlight
7956
- }, null, 8, _hoisted_1$10)) : (openBlock(), createElementBlock("div", _hoisted_2$H, toDisplayString(_ctx.suggestion.display), 1)),
7970
+ }, null, 8, _hoisted_1$$)) : (openBlock(), createElementBlock("div", _hoisted_2$G, toDisplayString(_ctx.suggestion.display), 1)),
7957
7971
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
7958
7972
  createBaseVNode("span", _hoisted_4$n, toDisplayString(facetLabel.value), 1),
7959
7973
  createBaseVNode("span", _hoisted_5$b, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -7962,11 +7976,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7962
7976
  };
7963
7977
  }
7964
7978
  });
7965
- const _hoisted_1$$ = {
7979
+ const _hoisted_1$_ = {
7966
7980
  id: "lupa-search-box-suggestions",
7967
7981
  "data-cy": "lupa-search-box-suggestions"
7968
7982
  };
7969
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
7983
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
7970
7984
  __name: "SearchBoxSuggestions",
7971
7985
  props: {
7972
7986
  items: {},
@@ -8026,9 +8040,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8026
8040
  });
8027
8041
  });
8028
8042
  return (_ctx, _cache) => {
8029
- return openBlock(), createElementBlock("div", _hoisted_1$$, [
8043
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
8030
8044
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
8031
- return openBlock(), createBlock(_sfc_main$17, {
8045
+ return openBlock(), createBlock(_sfc_main$16, {
8032
8046
  key: getSuggestionKey(item),
8033
8047
  class: normalizeClass(["lupa-suggestion", index === highlightedIndex.value ? "lupa-suggestion-highlighted" : ""]),
8034
8048
  suggestion: item,
@@ -8056,7 +8070,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8056
8070
  }, timeout);
8057
8071
  };
8058
8072
  };
8059
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
8073
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8060
8074
  __name: "SearchBoxSuggestionsWrapper",
8061
8075
  props: {
8062
8076
  panel: {},
@@ -8097,7 +8111,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8097
8111
  };
8098
8112
  const getSuggestionsDebounced = debounce$1(getSuggestions, props.debounce);
8099
8113
  return (_ctx, _cache) => {
8100
- return openBlock(), createBlock(_sfc_main$16, {
8114
+ return openBlock(), createBlock(_sfc_main$15, {
8101
8115
  items: searchResult.value,
8102
8116
  highlight: _ctx.panel.highlight,
8103
8117
  queryKey: _ctx.panel.queryKey,
@@ -8175,8 +8189,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8175
8189
  });
8176
8190
  return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
8177
8191
  });
8178
- const _hoisted_1$_ = ["src"];
8179
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
8192
+ const _hoisted_1$Z = ["src"];
8193
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8180
8194
  __name: "ProductImage",
8181
8195
  props: {
8182
8196
  item: {},
@@ -8224,12 +8238,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8224
8238
  class: normalizeClass((_b = _ctx.imageClass) != null ? _b : ""),
8225
8239
  src: finalUrl.value,
8226
8240
  onError: replaceWithPlaceholder
8227
- }, null, 42, _hoisted_1$_)
8241
+ }, null, 42, _hoisted_1$Z)
8228
8242
  ], 2);
8229
8243
  };
8230
8244
  }
8231
8245
  });
8232
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
8246
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8233
8247
  __name: "SearchBoxProductImage",
8234
8248
  props: {
8235
8249
  item: {},
@@ -8237,7 +8251,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8237
8251
  },
8238
8252
  setup(__props) {
8239
8253
  return (_ctx, _cache) => {
8240
- return openBlock(), createBlock(_sfc_main$14, {
8254
+ return openBlock(), createBlock(_sfc_main$13, {
8241
8255
  item: _ctx.item,
8242
8256
  options: _ctx.options,
8243
8257
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -8246,12 +8260,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8246
8260
  };
8247
8261
  }
8248
8262
  });
8249
- const _hoisted_1$Z = ["innerHTML"];
8250
- const _hoisted_2$G = {
8263
+ const _hoisted_1$Y = ["innerHTML"];
8264
+ const _hoisted_2$F = {
8251
8265
  key: 1,
8252
8266
  class: "lupa-search-box-product-title"
8253
8267
  };
8254
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
8268
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8255
8269
  __name: "SearchBoxProductTitle",
8256
8270
  props: {
8257
8271
  item: {},
@@ -8271,18 +8285,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8271
8285
  key: 0,
8272
8286
  class: "lupa-search-box-product-title",
8273
8287
  innerHTML: title.value
8274
- }, null, 8, _hoisted_1$Z)) : (openBlock(), createElementBlock("div", _hoisted_2$G, [
8288
+ }, null, 8, _hoisted_1$Y)) : (openBlock(), createElementBlock("div", _hoisted_2$F, [
8275
8289
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
8276
8290
  ]));
8277
8291
  };
8278
8292
  }
8279
8293
  });
8280
- const _hoisted_1$Y = ["innerHTML"];
8281
- const _hoisted_2$F = {
8294
+ const _hoisted_1$X = ["innerHTML"];
8295
+ const _hoisted_2$E = {
8282
8296
  key: 1,
8283
8297
  class: "lupa-search-box-product-description"
8284
8298
  };
8285
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
8299
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8286
8300
  __name: "SearchBoxProductDescription",
8287
8301
  props: {
8288
8302
  item: {},
@@ -8302,12 +8316,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8302
8316
  key: 0,
8303
8317
  class: "lupa-search-box-product-description",
8304
8318
  innerHTML: description.value
8305
- }, null, 8, _hoisted_1$Y)) : (openBlock(), createElementBlock("div", _hoisted_2$F, toDisplayString(description.value), 1));
8319
+ }, null, 8, _hoisted_1$X)) : (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(description.value), 1));
8306
8320
  };
8307
8321
  }
8308
8322
  });
8309
- const _hoisted_1$X = { class: "lupa-search-box-product-price" };
8310
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8323
+ const _hoisted_1$W = { class: "lupa-search-box-product-price" };
8324
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8311
8325
  __name: "SearchBoxProductPrice",
8312
8326
  props: {
8313
8327
  item: {},
@@ -8325,14 +8339,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8325
8339
  );
8326
8340
  });
8327
8341
  return (_ctx, _cache) => {
8328
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
8342
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
8329
8343
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
8330
8344
  ]);
8331
8345
  };
8332
8346
  }
8333
8347
  });
8334
- const _hoisted_1$W = { class: "lupa-search-box-product-regular-price" };
8335
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8348
+ const _hoisted_1$V = { class: "lupa-search-box-product-regular-price" };
8349
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8336
8350
  __name: "SearchBoxProductRegularPrice",
8337
8351
  props: {
8338
8352
  item: {},
@@ -8350,16 +8364,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8350
8364
  );
8351
8365
  });
8352
8366
  return (_ctx, _cache) => {
8353
- return openBlock(), createElementBlock("div", _hoisted_1$W, toDisplayString(price.value), 1);
8367
+ return openBlock(), createElementBlock("div", _hoisted_1$V, toDisplayString(price.value), 1);
8354
8368
  };
8355
8369
  }
8356
8370
  });
8357
- const _hoisted_1$V = ["innerHTML"];
8358
- const _hoisted_2$E = { key: 0 };
8371
+ const _hoisted_1$U = ["innerHTML"];
8372
+ const _hoisted_2$D = { key: 0 };
8359
8373
  const _hoisted_3$t = { key: 1 };
8360
8374
  const _hoisted_4$m = { class: "lupa-search-box-custom-label" };
8361
8375
  const _hoisted_5$a = { class: "lupa-search-box-custom-text" };
8362
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8376
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
8363
8377
  __name: "SearchBoxProductCustom",
8364
8378
  props: {
8365
8379
  item: {},
@@ -8385,11 +8399,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8385
8399
  key: 0,
8386
8400
  class: [className.value, "lupa-search-box-product-custom"],
8387
8401
  innerHTML: text.value
8388
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$V)) : (openBlock(), createElementBlock("div", mergeProps({
8402
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$U)) : (openBlock(), createElementBlock("div", mergeProps({
8389
8403
  key: 1,
8390
8404
  class: [className.value, "lupa-search-box-product-custom"]
8391
8405
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8392
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$E, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
8406
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
8393
8407
  createBaseVNode("div", _hoisted_4$m, toDisplayString(label.value), 1),
8394
8408
  createBaseVNode("div", _hoisted_5$a, toDisplayString(text.value), 1)
8395
8409
  ]))
@@ -8397,8 +8411,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8397
8411
  };
8398
8412
  }
8399
8413
  });
8400
- const _hoisted_1$U = ["innerHTML"];
8401
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
8414
+ const _hoisted_1$T = ["innerHTML"];
8415
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
8402
8416
  __name: "SearchBoxProductCustomHtml",
8403
8417
  props: {
8404
8418
  item: {},
@@ -8418,7 +8432,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8418
8432
  return openBlock(), createElementBlock("div", mergeProps({
8419
8433
  class: className.value,
8420
8434
  innerHTML: text.value
8421
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$U);
8435
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$T);
8422
8436
  };
8423
8437
  }
8424
8438
  });
@@ -8613,10 +8627,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8613
8627
  setLoading
8614
8628
  };
8615
8629
  });
8616
- const _hoisted_1$T = { class: "lupa-search-box-add-to-cart-wrapper" };
8617
- const _hoisted_2$D = { class: "lupa-search-box-product-addtocart" };
8630
+ const _hoisted_1$S = { class: "lupa-search-box-add-to-cart-wrapper" };
8631
+ const _hoisted_2$C = { class: "lupa-search-box-product-addtocart" };
8618
8632
  const _hoisted_3$s = ["onClick", "disabled"];
8619
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
8633
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
8620
8634
  __name: "SearchBoxProductAddToCart",
8621
8635
  props: {
8622
8636
  item: {},
@@ -8643,8 +8657,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8643
8657
  loading.value = false;
8644
8658
  });
8645
8659
  return (_ctx, _cache) => {
8646
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
8647
- createBaseVNode("div", _hoisted_2$D, [
8660
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
8661
+ createBaseVNode("div", _hoisted_2$C, [
8648
8662
  createBaseVNode("button", {
8649
8663
  onClick: withModifiers(handleClick, ["stop", "prevent"]),
8650
8664
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -8659,17 +8673,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8659
8673
  });
8660
8674
  const __default__$4 = {
8661
8675
  components: {
8662
- SearchBoxProductImage: _sfc_main$13,
8663
- SearchBoxProductTitle: _sfc_main$12,
8664
- SearchBoxProductDescription: _sfc_main$11,
8665
- SearchBoxProductPrice: _sfc_main$10,
8666
- SearchBoxProductRegularPrice: _sfc_main$$,
8667
- SearchBoxProductCustom: _sfc_main$_,
8668
- SearchBoxProductCustomHtml: _sfc_main$Z,
8669
- SearchBoxProductAddToCart: _sfc_main$Y
8676
+ SearchBoxProductImage: _sfc_main$12,
8677
+ SearchBoxProductTitle: _sfc_main$11,
8678
+ SearchBoxProductDescription: _sfc_main$10,
8679
+ SearchBoxProductPrice: _sfc_main$$,
8680
+ SearchBoxProductRegularPrice: _sfc_main$_,
8681
+ SearchBoxProductCustom: _sfc_main$Z,
8682
+ SearchBoxProductCustomHtml: _sfc_main$Y,
8683
+ SearchBoxProductAddToCart: _sfc_main$X
8670
8684
  }
8671
8685
  };
8672
- const _sfc_main$X = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8686
+ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
8673
8687
  __name: "SearchBoxProductElement",
8674
8688
  props: {
8675
8689
  item: {},
@@ -8783,14 +8797,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8783
8797
  };
8784
8798
  return { trackSearch, trackResults, trackEvent };
8785
8799
  });
8786
- const _hoisted_1$S = ["href"];
8787
- const _hoisted_2$C = { class: "lupa-search-box-product-image-section" };
8800
+ const _hoisted_1$R = ["href"];
8801
+ const _hoisted_2$B = { class: "lupa-search-box-product-image-section" };
8788
8802
  const _hoisted_3$r = { class: "lupa-search-box-product-details-section" };
8789
8803
  const _hoisted_4$l = {
8790
8804
  key: 0,
8791
8805
  class: "lupa-search-box-product-add-to-cart-section"
8792
8806
  };
8793
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
8807
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
8794
8808
  __name: "SearchBoxProduct",
8795
8809
  props: {
8796
8810
  item: {},
@@ -8883,9 +8897,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8883
8897
  href: link.value,
8884
8898
  onClick: handleClick
8885
8899
  }, [
8886
- createBaseVNode("div", _hoisted_2$C, [
8900
+ createBaseVNode("div", _hoisted_2$B, [
8887
8901
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
8888
- return openBlock(), createBlock(_sfc_main$X, {
8902
+ return openBlock(), createBlock(_sfc_main$W, {
8889
8903
  class: "lupa-search-box-product-element",
8890
8904
  item: _ctx.item,
8891
8905
  element,
@@ -8897,7 +8911,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8897
8911
  ]),
8898
8912
  createBaseVNode("div", _hoisted_3$r, [
8899
8913
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
8900
- return openBlock(), createBlock(_sfc_main$X, {
8914
+ return openBlock(), createBlock(_sfc_main$W, {
8901
8915
  class: "lupa-search-box-product-element",
8902
8916
  item: _ctx.item,
8903
8917
  element,
@@ -8908,7 +8922,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8908
8922
  }), 128))
8909
8923
  ]),
8910
8924
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
8911
- createVNode(_sfc_main$X, {
8925
+ createVNode(_sfc_main$W, {
8912
8926
  class: "lupa-search-box-product-element",
8913
8927
  item: _ctx.item,
8914
8928
  element: addToCartElement.value,
@@ -8917,12 +8931,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8917
8931
  isInStock: isInStock.value
8918
8932
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
8919
8933
  ])) : createCommentVNode("", true)
8920
- ], 10, _hoisted_1$S);
8934
+ ], 10, _hoisted_1$R);
8921
8935
  };
8922
8936
  }
8923
8937
  });
8924
- const _hoisted_1$R = { id: "lupa-search-box-products" };
8925
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
8938
+ const _hoisted_1$Q = { id: "lupa-search-box-products" };
8939
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
8926
8940
  __name: "SearchBoxProducts",
8927
8941
  props: {
8928
8942
  items: {},
@@ -8942,7 +8956,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8942
8956
  return (_c = (_b = highlightedItem.value) == null ? void 0 : _b.index) != null ? _c : -1;
8943
8957
  });
8944
8958
  return (_ctx, _cache) => {
8945
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
8959
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
8946
8960
  _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.items, (item, index) => {
8947
8961
  return renderSlot(_ctx.$slots, "productCard", {
8948
8962
  key: index,
@@ -8954,7 +8968,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8954
8968
  onProductClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("product-click"))
8955
8969
  });
8956
8970
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.items, (item, index) => {
8957
- return openBlock(), createBlock(_sfc_main$W, {
8971
+ return openBlock(), createBlock(_sfc_main$V, {
8958
8972
  key: index,
8959
8973
  item,
8960
8974
  panelOptions: _ctx.panelOptions,
@@ -8968,7 +8982,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8968
8982
  };
8969
8983
  }
8970
8984
  });
8971
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
8985
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
8972
8986
  __name: "SearchBoxProductsWrapper",
8973
8987
  props: {
8974
8988
  panel: {},
@@ -9020,7 +9034,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9020
9034
  const getItemsDebounced = debounce$1(getItems, props.debounce);
9021
9035
  return (_ctx, _cache) => {
9022
9036
  var _a, _b;
9023
- return openBlock(), createBlock(_sfc_main$V, {
9037
+ return openBlock(), createBlock(_sfc_main$U, {
9024
9038
  items: (_b = (_a = searchResult.value) == null ? void 0 : _a.items) != null ? _b : [],
9025
9039
  panelOptions: _ctx.panel,
9026
9040
  labels: _ctx.labels,
@@ -9038,11 +9052,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9038
9052
  };
9039
9053
  }
9040
9054
  });
9041
- const _hoisted_1$Q = {
9055
+ const _hoisted_1$P = {
9042
9056
  key: 0,
9043
9057
  id: "lupa-search-box-panel"
9044
9058
  };
9045
- const _hoisted_2$B = {
9059
+ const _hoisted_2$A = {
9046
9060
  class: "lupa-main-panel",
9047
9061
  "data-cy": "lupa-main-panel"
9048
9062
  };
@@ -9053,11 +9067,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9053
9067
  };
9054
9068
  const __default__$3 = {
9055
9069
  components: {
9056
- SearchBoxSuggestionsWrapper: _sfc_main$15,
9057
- SearchBoxProductsWrapper: _sfc_main$U
9070
+ SearchBoxSuggestionsWrapper: _sfc_main$14,
9071
+ SearchBoxProductsWrapper: _sfc_main$T
9058
9072
  }
9059
9073
  };
9060
- const _sfc_main$T = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9074
+ const _sfc_main$S = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
9061
9075
  __name: "SearchBoxMainPanel",
9062
9076
  props: {
9063
9077
  options: {},
@@ -9171,8 +9185,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9171
9185
  ref_key: "panelContainer",
9172
9186
  ref: panelContainer
9173
9187
  }, [
9174
- displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, [
9175
- createBaseVNode("div", _hoisted_2$B, [
9188
+ displayResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
9189
+ createBaseVNode("div", _hoisted_2$A, [
9176
9190
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
9177
9191
  return openBlock(), createElementBlock("div", {
9178
9192
  key: index,
@@ -9204,13 +9218,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9204
9218
  ], 10, _hoisted_3$q);
9205
9219
  }), 128))
9206
9220
  ]),
9207
- createVNode(_sfc_main$1a, {
9221
+ createVNode(_sfc_main$19, {
9208
9222
  labels: labels.value,
9209
9223
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
9210
9224
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
9211
9225
  }, null, 8, ["labels", "showTotalCount"])
9212
9226
  ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$k, [
9213
- createVNode(_sfc_main$18, {
9227
+ createVNode(_sfc_main$17, {
9214
9228
  options: _ctx.options.history,
9215
9229
  history: history.value,
9216
9230
  onGoToResults: handleGoToResults,
@@ -9235,9 +9249,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9235
9249
  const elements = getElements(triggers);
9236
9250
  elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
9237
9251
  };
9238
- const _hoisted_1$P = { id: "lupa-search-box" };
9239
- const _hoisted_2$A = { class: "lupa-search-box-wrapper" };
9240
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
9252
+ const _hoisted_1$O = { id: "lupa-search-box" };
9253
+ const _hoisted_2$z = { class: "lupa-search-box-wrapper" };
9254
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
9241
9255
  __name: "SearchBox",
9242
9256
  props: {
9243
9257
  options: {},
@@ -9469,9 +9483,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9469
9483
  };
9470
9484
  return (_ctx, _cache) => {
9471
9485
  var _a2;
9472
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
9473
- createBaseVNode("div", _hoisted_2$A, [
9474
- createVNode(_sfc_main$1b, {
9486
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
9487
+ createBaseVNode("div", _hoisted_2$z, [
9488
+ createVNode(_sfc_main$1a, {
9475
9489
  options: inputOptions.value,
9476
9490
  suggestedValue: suggestedValue.value,
9477
9491
  "can-close": (_a2 = _ctx.isSearchContainer) != null ? _a2 : false,
@@ -9482,7 +9496,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9482
9496
  onFocus: _cache[0] || (_cache[0] = ($event) => opened.value = true),
9483
9497
  onClose: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
9484
9498
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
9485
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$T, {
9499
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$S, {
9486
9500
  key: 0,
9487
9501
  options: panelOptions.value,
9488
9502
  inputValue: inputValue.value,
@@ -9569,11 +9583,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9569
9583
  }
9570
9584
  return searchParams;
9571
9585
  };
9572
- const _hoisted_1$O = {
9586
+ const _hoisted_1$N = {
9573
9587
  key: 0,
9574
9588
  id: "lupa-search-results-did-you-mean"
9575
9589
  };
9576
- const _hoisted_2$z = {
9590
+ const _hoisted_2$y = {
9577
9591
  key: 0,
9578
9592
  "data-cy": "suggested-search-text-label"
9579
9593
  };
@@ -9582,7 +9596,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9582
9596
  "data-cy": "did-you-mean-label"
9583
9597
  };
9584
9598
  const _hoisted_4$j = { key: 1 };
9585
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
9599
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9586
9600
  __name: "SearchResultsDidYouMean",
9587
9601
  props: {
9588
9602
  labels: {}
@@ -9614,8 +9628,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9614
9628
  paramStore.goToResults({ searchText, facet });
9615
9629
  };
9616
9630
  return (_ctx, _cache) => {
9617
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$O, [
9618
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
9631
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
9632
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
9619
9633
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
9620
9634
  return openBlock(), createElementBlock("span", { key: index }, [
9621
9635
  createBaseVNode("span", {
@@ -9640,12 +9654,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9640
9654
  };
9641
9655
  }
9642
9656
  });
9643
- const _hoisted_1$N = {
9657
+ const _hoisted_1$M = {
9644
9658
  key: 0,
9645
9659
  class: "lupa-search-results-summary"
9646
9660
  };
9647
- const _hoisted_2$y = ["innerHTML"];
9648
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9661
+ const _hoisted_2$x = ["innerHTML"];
9662
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9649
9663
  __name: "SearchResultsSummary",
9650
9664
  props: {
9651
9665
  label: {},
@@ -9660,8 +9674,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9660
9674
  return addParamsToLabel(props.label, range, `<span>${totalItems.value}</span>`);
9661
9675
  });
9662
9676
  return (_ctx, _cache) => {
9663
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
9664
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$y),
9677
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
9678
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$x),
9665
9679
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
9666
9680
  key: 0,
9667
9681
  class: "lupa-filter-clear",
@@ -9672,18 +9686,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9672
9686
  };
9673
9687
  }
9674
9688
  });
9675
- const _hoisted_1$M = {
9689
+ const _hoisted_1$L = {
9676
9690
  key: 0,
9677
9691
  class: "lupa-result-page-title",
9678
9692
  "data-cy": "lupa-result-page-title"
9679
9693
  };
9680
- const _hoisted_2$x = { key: 0 };
9694
+ const _hoisted_2$w = { key: 0 };
9681
9695
  const _hoisted_3$o = {
9682
9696
  key: 1,
9683
9697
  class: "lupa-results-total-count"
9684
9698
  };
9685
9699
  const _hoisted_4$i = ["innerHTML"];
9686
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
9700
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
9687
9701
  __name: "SearchResultsTitle",
9688
9702
  props: {
9689
9703
  options: {},
@@ -9718,12 +9732,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9718
9732
  });
9719
9733
  return (_ctx, _cache) => {
9720
9734
  return openBlock(), createElementBlock("div", null, [
9721
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$M, [
9735
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$L, [
9722
9736
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
9723
- queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$x, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9737
+ queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$w, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
9724
9738
  showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$o, "(" + toDisplayString(unref(totalItems)) + ")", 1)) : createCommentVNode("", true)
9725
9739
  ])) : createCommentVNode("", true),
9726
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$Q, {
9740
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$P, {
9727
9741
  key: 1,
9728
9742
  label: summaryLabel.value
9729
9743
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -9736,8 +9750,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9736
9750
  };
9737
9751
  }
9738
9752
  });
9739
- const _hoisted_1$L = { class: "lupa-search-result-filter-value" };
9740
- const _hoisted_2$w = {
9753
+ const _hoisted_1$K = { class: "lupa-search-result-filter-value" };
9754
+ const _hoisted_2$v = {
9741
9755
  class: "lupa-current-filter-label",
9742
9756
  "data-cy": "lupa-current-filter-label"
9743
9757
  };
@@ -9745,7 +9759,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9745
9759
  class: "lupa-current-filter-value",
9746
9760
  "data-cy": "lupa-current-filter-value"
9747
9761
  };
9748
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
9762
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
9749
9763
  __name: "CurrentFilterDisplay",
9750
9764
  props: {
9751
9765
  filter: {}
@@ -9757,19 +9771,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9757
9771
  emit2("remove", { filter: props.filter });
9758
9772
  };
9759
9773
  return (_ctx, _cache) => {
9760
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
9774
+ return openBlock(), createElementBlock("div", _hoisted_1$K, [
9761
9775
  createBaseVNode("div", {
9762
9776
  class: "lupa-current-filter-action",
9763
9777
  onClick: handleClick
9764
9778
  }, "⨉"),
9765
- createBaseVNode("div", _hoisted_2$w, toDisplayString(_ctx.filter.label) + ": ", 1),
9779
+ createBaseVNode("div", _hoisted_2$v, toDisplayString(_ctx.filter.label) + ": ", 1),
9766
9780
  createBaseVNode("div", _hoisted_3$n, toDisplayString(_ctx.filter.value), 1)
9767
9781
  ]);
9768
9782
  };
9769
9783
  }
9770
9784
  });
9771
- const _hoisted_1$K = { class: "lupa-filter-title-text" };
9772
- const _hoisted_2$v = {
9785
+ const _hoisted_1$J = { class: "lupa-filter-title-text" };
9786
+ const _hoisted_2$u = {
9773
9787
  key: 0,
9774
9788
  class: "lupa-filter-count"
9775
9789
  };
@@ -9778,7 +9792,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9778
9792
  class: "filter-values"
9779
9793
  };
9780
9794
  const _hoisted_4$h = { class: "lupa-current-filter-list" };
9781
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
9795
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
9782
9796
  __name: "CurrentFilters",
9783
9797
  props: {
9784
9798
  options: {},
@@ -9833,9 +9847,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9833
9847
  class: "lupa-current-filter-title",
9834
9848
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
9835
9849
  }, [
9836
- createBaseVNode("div", _hoisted_1$K, [
9850
+ createBaseVNode("div", _hoisted_1$J, [
9837
9851
  createTextVNode(toDisplayString((_c = (_b = (_a = _ctx.options) == null ? void 0 : _a.labels) == null ? void 0 : _b.title) != null ? _c : "") + " ", 1),
9838
- _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$v, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9852
+ _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$u, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
9839
9853
  ]),
9840
9854
  _ctx.expandable ? (openBlock(), createElementBlock("div", {
9841
9855
  key: 0,
@@ -9845,7 +9859,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9845
9859
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
9846
9860
  createBaseVNode("div", _hoisted_4$h, [
9847
9861
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
9848
- return openBlock(), createBlock(_sfc_main$O, {
9862
+ return openBlock(), createBlock(_sfc_main$N, {
9849
9863
  key: filter.key + "_" + filter.value,
9850
9864
  filter,
9851
9865
  onRemove: handleRemove
@@ -9862,8 +9876,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9862
9876
  };
9863
9877
  }
9864
9878
  });
9865
- const _hoisted_1$J = ["href"];
9866
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
9879
+ const _hoisted_1$I = ["href"];
9880
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
9867
9881
  __name: "CategoryFilterItem",
9868
9882
  props: {
9869
9883
  options: {},
@@ -9900,20 +9914,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9900
9914
  "data-cy": "lupa-child-category-item",
9901
9915
  href: urlLink.value,
9902
9916
  onClick: handleNavigation
9903
- }, toDisplayString(title.value), 9, _hoisted_1$J)
9917
+ }, toDisplayString(title.value), 9, _hoisted_1$I)
9904
9918
  ], 2);
9905
9919
  };
9906
9920
  }
9907
9921
  });
9908
- const _hoisted_1$I = {
9922
+ const _hoisted_1$H = {
9909
9923
  class: "lupa-category-filter",
9910
9924
  "data-cy": "lupa-category-filter"
9911
9925
  };
9912
- const _hoisted_2$u = { class: "lupa-category-back" };
9926
+ const _hoisted_2$t = { class: "lupa-category-back" };
9913
9927
  const _hoisted_3$l = ["href"];
9914
9928
  const _hoisted_4$g = ["href"];
9915
9929
  const _hoisted_5$9 = { class: "lupa-child-category-list" };
9916
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
9930
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
9917
9931
  __name: "CategoryFilter",
9918
9932
  props: {
9919
9933
  options: {}
@@ -9999,8 +10013,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9999
10013
  };
10000
10014
  __expose({ fetch: fetch2 });
10001
10015
  return (_ctx, _cache) => {
10002
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
10003
- createBaseVNode("div", _hoisted_2$u, [
10016
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
10017
+ createBaseVNode("div", _hoisted_2$t, [
10004
10018
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
10005
10019
  key: 0,
10006
10020
  "data-cy": "lupa-category-back",
@@ -10020,7 +10034,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10020
10034
  ], 2),
10021
10035
  createBaseVNode("div", _hoisted_5$9, [
10022
10036
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10023
- return openBlock(), createBlock(_sfc_main$M, {
10037
+ return openBlock(), createBlock(_sfc_main$L, {
10024
10038
  key: getCategoryKey(child),
10025
10039
  item: child,
10026
10040
  options: _ctx.options
@@ -10031,23 +10045,23 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10031
10045
  };
10032
10046
  }
10033
10047
  });
10034
- const _hoisted_1$H = {
10048
+ const _hoisted_1$G = {
10035
10049
  class: "lupa-search-result-facet-term-values",
10036
10050
  "data-cy": "lupa-search-result-facet-term-values"
10037
10051
  };
10038
- const _hoisted_2$t = ["placeholder"];
10052
+ const _hoisted_2$s = ["placeholder"];
10039
10053
  const _hoisted_3$k = { class: "lupa-terms-list" };
10040
10054
  const _hoisted_4$f = ["onClick"];
10041
10055
  const _hoisted_5$8 = { class: "lupa-term-checkbox-wrapper" };
10042
10056
  const _hoisted_6$5 = { class: "lupa-term-checkbox-label" };
10043
10057
  const _hoisted_7$5 = { class: "lupa-term-label" };
10044
- const _hoisted_8$2 = {
10058
+ const _hoisted_8$1 = {
10045
10059
  key: 0,
10046
10060
  class: "lupa-term-count"
10047
10061
  };
10048
10062
  const _hoisted_9$1 = { key: 0 };
10049
10063
  const _hoisted_10$1 = { key: 1 };
10050
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
10064
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
10051
10065
  __name: "TermFacet",
10052
10066
  props: {
10053
10067
  options: {},
@@ -10116,14 +10130,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10116
10130
  return selectedItems == null ? void 0 : selectedItems.includes((_b = item.title) == null ? void 0 : _b.toString());
10117
10131
  };
10118
10132
  return (_ctx, _cache) => {
10119
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
10133
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
10120
10134
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
10121
10135
  key: 0,
10122
10136
  class: "lupa-term-filter",
10123
10137
  "data-cy": "lupa-term-filter",
10124
10138
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
10125
10139
  placeholder: _ctx.options.labels.facetFilter
10126
- }, null, 8, _hoisted_2$t)), [
10140
+ }, null, 8, _hoisted_2$s)), [
10127
10141
  [vModelText, termFilter.value]
10128
10142
  ]) : createCommentVNode("", true),
10129
10143
  createBaseVNode("div", _hoisted_3$k, [
@@ -10141,7 +10155,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10141
10155
  ]),
10142
10156
  createBaseVNode("div", _hoisted_6$5, [
10143
10157
  createBaseVNode("span", _hoisted_7$5, toDisplayString(item.title), 1),
10144
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10158
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10145
10159
  ])
10146
10160
  ], 10, _hoisted_4$f);
10147
10161
  }), 128))
@@ -11134,8 +11148,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11134
11148
  m.render = function(e, t, r, i, n, o) {
11135
11149
  return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
11136
11150
  }, m.__file = "src/Slider.vue";
11137
- const _hoisted_1$G = { class: "lupa-search-result-facet-stats-values" };
11138
- const _hoisted_2$s = {
11151
+ const _hoisted_1$F = { class: "lupa-search-result-facet-stats-values" };
11152
+ const _hoisted_2$r = {
11139
11153
  key: 0,
11140
11154
  class: "lupa-stats-facet-summary"
11141
11155
  };
@@ -11150,7 +11164,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11150
11164
  const _hoisted_5$7 = { class: "lupa-stats-from" };
11151
11165
  const _hoisted_6$4 = ["max", "min", "pattern"];
11152
11166
  const _hoisted_7$4 = { key: 0 };
11153
- const _hoisted_8$1 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
11167
+ const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
11154
11168
  const _hoisted_9 = {
11155
11169
  key: 0,
11156
11170
  class: "lupa-stats-range-label"
@@ -11162,7 +11176,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11162
11176
  key: 2,
11163
11177
  class: "lupa-stats-slider-wrapper"
11164
11178
  };
11165
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
11179
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11166
11180
  __name: "StatsFacet",
11167
11181
  props: {
11168
11182
  options: {},
@@ -11310,8 +11324,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11310
11324
  innerSliderRange.value = value;
11311
11325
  };
11312
11326
  return (_ctx, _cache) => {
11313
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
11314
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$s, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
11327
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
11328
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
11315
11329
  createBaseVNode("div", null, [
11316
11330
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11317
11331
  createBaseVNode("div", _hoisted_5$7, [
@@ -11333,7 +11347,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11333
11347
  isPrice.value ? (openBlock(), createElementBlock("span", _hoisted_7$4, toDisplayString(currency.value), 1)) : createCommentVNode("", true)
11334
11348
  ])
11335
11349
  ]),
11336
- _hoisted_8$1,
11350
+ _hoisted_8,
11337
11351
  createBaseVNode("div", null, [
11338
11352
  rangeLabelTo.value ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(rangeLabelTo.value), 1)) : createCommentVNode("", true),
11339
11353
  createBaseVNode("div", _hoisted_10, [
@@ -11374,8 +11388,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11374
11388
  };
11375
11389
  }
11376
11390
  });
11377
- const _hoisted_1$F = { class: "lupa-term-checkbox-wrapper" };
11378
- const _hoisted_2$r = { class: "lupa-term-checkbox-label" };
11391
+ const _hoisted_1$E = { class: "lupa-term-checkbox-wrapper" };
11392
+ const _hoisted_2$q = { class: "lupa-term-checkbox-label" };
11379
11393
  const _hoisted_3$i = { class: "lupa-term-label" };
11380
11394
  const _hoisted_4$d = {
11381
11395
  key: 0,
@@ -11385,7 +11399,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11385
11399
  key: 0,
11386
11400
  class: "lupa-facet-level"
11387
11401
  };
11388
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
11402
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
11389
11403
  __name: "HierarchyFacetLevel",
11390
11404
  props: {
11391
11405
  options: {},
@@ -11431,12 +11445,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11431
11445
  "data-cy": "lupa-facet-term",
11432
11446
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
11433
11447
  }, [
11434
- createBaseVNode("div", _hoisted_1$F, [
11448
+ createBaseVNode("div", _hoisted_1$E, [
11435
11449
  createBaseVNode("span", {
11436
11450
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
11437
11451
  }, null, 2)
11438
11452
  ]),
11439
- createBaseVNode("div", _hoisted_2$r, [
11453
+ createBaseVNode("div", _hoisted_2$q, [
11440
11454
  createBaseVNode("span", _hoisted_3$i, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11441
11455
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$d, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11442
11456
  ])
@@ -11457,13 +11471,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11457
11471
  };
11458
11472
  }
11459
11473
  });
11460
- const _hoisted_1$E = {
11474
+ const _hoisted_1$D = {
11461
11475
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
11462
11476
  "data-cy": "lupa-search-result-facet-term-values"
11463
11477
  };
11464
- const _hoisted_2$q = { key: 0 };
11478
+ const _hoisted_2$p = { key: 0 };
11465
11479
  const _hoisted_3$h = ["placeholder"];
11466
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
11480
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
11467
11481
  __name: "HierarchyFacet",
11468
11482
  props: {
11469
11483
  options: {},
@@ -11513,8 +11527,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11513
11527
  showAll.value = true;
11514
11528
  };
11515
11529
  return (_ctx, _cache) => {
11516
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
11517
- isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$q, [
11530
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
11531
+ isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
11518
11532
  withDirectives(createBaseVNode("input", {
11519
11533
  class: "lupa-term-filter",
11520
11534
  "data-cy": "lupa-term-filter",
@@ -11525,7 +11539,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11525
11539
  ])
11526
11540
  ])) : createCommentVNode("", true),
11527
11541
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11528
- return openBlock(), createBlock(_sfc_main$I, {
11542
+ return openBlock(), createBlock(_sfc_main$H, {
11529
11543
  key: item.title,
11530
11544
  options: _ctx.options,
11531
11545
  item,
@@ -11545,20 +11559,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11545
11559
  };
11546
11560
  }
11547
11561
  });
11548
- const _hoisted_1$D = { class: "lupa-facet-label-text" };
11549
- const _hoisted_2$p = {
11562
+ const _hoisted_1$C = { class: "lupa-facet-label-text" };
11563
+ const _hoisted_2$o = {
11550
11564
  key: 0,
11551
11565
  class: "lupa-facet-content",
11552
11566
  "data-cy": "lupa-facet-content"
11553
11567
  };
11554
11568
  const __default__$2 = {
11555
11569
  components: {
11556
- TermFacet: _sfc_main$K,
11557
- StatsFacet: _sfc_main$J,
11558
- HierarchyFacet: _sfc_main$H
11570
+ TermFacet: _sfc_main$J,
11571
+ StatsFacet: _sfc_main$I,
11572
+ HierarchyFacet: _sfc_main$G
11559
11573
  }
11560
11574
  };
11561
- const _sfc_main$G = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11575
+ const _sfc_main$F = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
11562
11576
  __name: "FacetDisplay",
11563
11577
  props: {
11564
11578
  options: {},
@@ -11669,12 +11683,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11669
11683
  "data-cy": "lupa-search-result-facet-label",
11670
11684
  onClick: toggleFacet
11671
11685
  }, [
11672
- createBaseVNode("div", _hoisted_1$D, toDisplayString(facet.value.label), 1),
11686
+ createBaseVNode("div", _hoisted_1$C, toDisplayString(facet.value.label), 1),
11673
11687
  createBaseVNode("div", {
11674
11688
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
11675
11689
  }, null, 2)
11676
11690
  ], 2),
11677
- isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
11691
+ isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
11678
11692
  (openBlock(), createBlock(resolveDynamicComponent(facetType.value), {
11679
11693
  facet: facet.value,
11680
11694
  currentFilters: currentFilters.value[facet.value.key],
@@ -11692,12 +11706,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11692
11706
  };
11693
11707
  }
11694
11708
  }));
11695
- const _hoisted_1$C = { class: "lupa-search-result-facet-section" };
11696
- const _hoisted_2$o = {
11709
+ const _hoisted_1$B = { class: "lupa-search-result-facet-section" };
11710
+ const _hoisted_2$n = {
11697
11711
  key: 0,
11698
11712
  class: "lupa-facets-title"
11699
11713
  };
11700
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
11714
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11701
11715
  __name: "FacetList",
11702
11716
  props: {
11703
11717
  options: {},
@@ -11731,14 +11745,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11731
11745
  };
11732
11746
  return (_ctx, _cache) => {
11733
11747
  var _a;
11734
- return openBlock(), createElementBlock("div", _hoisted_1$C, [
11735
- _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$o, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11748
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
11749
+ _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
11736
11750
  createBaseVNode("div", {
11737
11751
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a = _ctx.facetStyle) != null ? _a : "")])
11738
11752
  }, [
11739
11753
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
11740
11754
  var _a2;
11741
- return openBlock(), createBlock(_sfc_main$G, {
11755
+ return openBlock(), createBlock(_sfc_main$F, {
11742
11756
  key: facet.key,
11743
11757
  facet,
11744
11758
  currentFilters: currentFiltersValue.value,
@@ -11753,8 +11767,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11753
11767
  };
11754
11768
  }
11755
11769
  });
11756
- const _hoisted_1$B = { class: "lupa-search-result-facets" };
11757
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
11770
+ const _hoisted_1$A = { class: "lupa-search-result-facets" };
11771
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11758
11772
  __name: "Facets",
11759
11773
  props: {
11760
11774
  options: {},
@@ -11800,8 +11814,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11800
11814
  paramStore.removeParameters({ paramsToRemove: [param] });
11801
11815
  };
11802
11816
  return (_ctx, _cache) => {
11803
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
11804
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$F, {
11817
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
11818
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$E, {
11805
11819
  key: 0,
11806
11820
  options: _ctx.options,
11807
11821
  facets: regularFacets.value,
@@ -11815,11 +11829,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11815
11829
  };
11816
11830
  }
11817
11831
  });
11818
- const _hoisted_1$A = {
11832
+ const _hoisted_1$z = {
11819
11833
  id: "lupa-search-result-filters",
11820
11834
  class: "lupa-search-result-filters"
11821
11835
  };
11822
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
11836
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11823
11837
  __name: "SearchResultsFilters",
11824
11838
  props: {
11825
11839
  options: {},
@@ -11848,19 +11862,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11848
11862
  __expose({ fetch: fetch2 });
11849
11863
  return (_ctx, _cache) => {
11850
11864
  var _a;
11851
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
11852
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$N, {
11865
+ return openBlock(), createElementBlock("div", _hoisted_1$z, [
11866
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$M, {
11853
11867
  key: 0,
11854
11868
  options: _ctx.options.currentFilters,
11855
11869
  expandable: (_a = _ctx.expandable) != null ? _a : false
11856
11870
  }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
11857
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$L, {
11871
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$K, {
11858
11872
  key: 1,
11859
11873
  options: _ctx.options.categories,
11860
11874
  ref_key: "categoryFilters",
11861
11875
  ref: categoryFilters
11862
11876
  }, null, 8, ["options"])) : createCommentVNode("", true),
11863
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
11877
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$D, {
11864
11878
  key: 2,
11865
11879
  options: _ctx.options.facets
11866
11880
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -11868,11 +11882,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11868
11882
  };
11869
11883
  }
11870
11884
  });
11871
- const _hoisted_1$z = {
11885
+ const _hoisted_1$y = {
11872
11886
  key: 0,
11873
11887
  class: "lupa-mobile-filter-sidebar"
11874
11888
  };
11875
- const _hoisted_2$n = ["onClick"];
11889
+ const _hoisted_2$m = ["onClick"];
11876
11890
  const _hoisted_3$g = { class: "lupa-mobile-sidebar-content" };
11877
11891
  const _hoisted_4$c = { class: "lupa-sidebar-top" };
11878
11892
  const _hoisted_5$5 = { class: "lupa-sidebar-title" };
@@ -11881,7 +11895,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11881
11895
  class: "lupa-sidebar-filter-count"
11882
11896
  };
11883
11897
  const _hoisted_7$3 = { class: "lupa-sidebar-filter-options" };
11884
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
11898
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11885
11899
  __name: "MobileFilterSidebar",
11886
11900
  props: {
11887
11901
  options: {}
@@ -11907,11 +11921,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11907
11921
  searchResultStore.setSidebarState({ visible: false });
11908
11922
  };
11909
11923
  return (_ctx, _cache) => {
11910
- return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$z, [
11924
+ return isMobileSidebarVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
11911
11925
  createBaseVNode("div", {
11912
11926
  class: "lupa-sidebar-close",
11913
11927
  onClick: withModifiers(handleMobileToggle, ["stop"])
11914
- }, null, 8, _hoisted_2$n),
11928
+ }, null, 8, _hoisted_2$m),
11915
11929
  createBaseVNode("div", _hoisted_3$g, [
11916
11930
  createBaseVNode("div", _hoisted_4$c, [
11917
11931
  createBaseVNode("div", _hoisted_5$5, [
@@ -11924,7 +11938,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11924
11938
  })
11925
11939
  ]),
11926
11940
  createBaseVNode("div", _hoisted_7$3, [
11927
- createVNode(_sfc_main$D, {
11941
+ createVNode(_sfc_main$C, {
11928
11942
  options: _ctx.options,
11929
11943
  expandable: isActiveFiltersExpanded.value
11930
11944
  }, null, 8, ["options", "expandable"])
@@ -11934,14 +11948,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11934
11948
  };
11935
11949
  }
11936
11950
  });
11937
- const _hoisted_1$y = { id: "lupa-search-results-breadcrumbs" };
11938
- const _hoisted_2$m = ["href", "onClick"];
11951
+ const _hoisted_1$x = { id: "lupa-search-results-breadcrumbs" };
11952
+ const _hoisted_2$l = ["href", "onClick"];
11939
11953
  const _hoisted_3$f = {
11940
11954
  key: 1,
11941
11955
  class: "lupa-search-results-breadcrumb-text"
11942
11956
  };
11943
11957
  const _hoisted_4$b = { key: 2 };
11944
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
11958
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11945
11959
  __name: "SearchResultsBreadcrumbs",
11946
11960
  props: {
11947
11961
  breadcrumbs: {}
@@ -11966,7 +11980,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11966
11980
  handleRoutingEvent(link, event, hasEventRouting.value);
11967
11981
  };
11968
11982
  return (_ctx, _cache) => {
11969
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
11983
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
11970
11984
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
11971
11985
  return openBlock(), createElementBlock("span", {
11972
11986
  class: "lupa-search-results-breadcrumb",
@@ -11980,7 +11994,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11980
11994
  var _a;
11981
11995
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
11982
11996
  }
11983
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$m)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(getLabel(breadcrumb.label)), 1)),
11997
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$l)) : (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(getLabel(breadcrumb.label)), 1)),
11984
11998
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$b, " / ")) : createCommentVNode("", true)
11985
11999
  ]);
11986
12000
  }), 128))
@@ -11988,11 +12002,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11988
12002
  };
11989
12003
  }
11990
12004
  });
11991
- const _hoisted_1$x = {
12005
+ const _hoisted_1$w = {
11992
12006
  id: "lupa-search-result-filters",
11993
12007
  class: "lupa-search-result-filters"
11994
12008
  };
11995
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
12009
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
11996
12010
  __name: "FiltersTopDropdown",
11997
12011
  props: {
11998
12012
  options: {}
@@ -12000,8 +12014,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12000
12014
  setup(__props) {
12001
12015
  return (_ctx, _cache) => {
12002
12016
  var _a;
12003
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
12004
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$E, {
12017
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
12018
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$D, {
12005
12019
  key: 0,
12006
12020
  options: _ctx.options.facets,
12007
12021
  "facet-style": (_a = _ctx.options.facets.style) == null ? void 0 : _a.type,
@@ -12011,8 +12025,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12011
12025
  };
12012
12026
  }
12013
12027
  });
12014
- const _hoisted_1$w = { id: "lupa-search-results-layout-selection" };
12015
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
12028
+ const _hoisted_1$v = { id: "lupa-search-results-layout-selection" };
12029
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12016
12030
  __name: "SearchResultsLayoutSelection",
12017
12031
  setup(__props) {
12018
12032
  const searchResultStore = useSearchResultStore();
@@ -12023,7 +12037,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12023
12037
  searchResultStore.setLayout(layout2);
12024
12038
  };
12025
12039
  return (_ctx, _cache) => {
12026
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
12040
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
12027
12041
  createBaseVNode("div", {
12028
12042
  class: normalizeClass([
12029
12043
  "lupa-layout-selection-grid",
@@ -12045,11 +12059,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12045
12059
  };
12046
12060
  }
12047
12061
  });
12048
- const _hoisted_1$v = {
12062
+ const _hoisted_1$u = {
12049
12063
  key: 0,
12050
12064
  class: "lupa-mobile-toggle-filter-count"
12051
12065
  };
12052
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
12066
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
12053
12067
  __name: "SearchResultsMobileToggle",
12054
12068
  props: {
12055
12069
  label: {},
@@ -12067,17 +12081,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12067
12081
  onClick: handleMobileToggle
12068
12082
  }, [
12069
12083
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
12070
- _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$v, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12084
+ _ctx.showFilterCount && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$u, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12071
12085
  ], 2);
12072
12086
  };
12073
12087
  }
12074
12088
  });
12075
- const _hoisted_1$u = {
12089
+ const _hoisted_1$t = {
12076
12090
  key: 0,
12077
12091
  id: "lupa-search-results-page-select",
12078
12092
  "data-cy": "lupa-search-results-page-select"
12079
12093
  };
12080
- const _hoisted_2$l = {
12094
+ const _hoisted_2$k = {
12081
12095
  key: 0,
12082
12096
  class: "lupa-page-number-separator"
12083
12097
  };
@@ -12086,7 +12100,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12086
12100
  key: 0,
12087
12101
  class: "lupa-page-number-separator"
12088
12102
  };
12089
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
12103
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
12090
12104
  __name: "SearchResultsPageSelect",
12091
12105
  props: {
12092
12106
  lastPageLabel: {},
@@ -12148,7 +12162,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12148
12162
  }
12149
12163
  };
12150
12164
  return (_ctx, _cache) => {
12151
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
12165
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
12152
12166
  showBack.value ? (openBlock(), createElementBlock("div", {
12153
12167
  key: 0,
12154
12168
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -12159,7 +12173,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12159
12173
  class: "lupa-page-number lupa-page-number-first",
12160
12174
  onClick: _cache[1] || (_cache[1] = () => handlePageChange(1))
12161
12175
  }, " 1 "),
12162
- showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$l, "...")) : createCommentVNode("", true)
12176
+ showFirstPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_2$k, "...")) : createCommentVNode("", true)
12163
12177
  ], 64)) : createCommentVNode("", true),
12164
12178
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (page) => {
12165
12179
  return openBlock(), createElementBlock("div", {
@@ -12192,13 +12206,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12192
12206
  };
12193
12207
  }
12194
12208
  });
12195
- const _hoisted_1$t = {
12209
+ const _hoisted_1$s = {
12196
12210
  id: "lupa-search-results-page-size",
12197
12211
  "data-cy": "lupa-search-results-page-size"
12198
12212
  };
12199
- const _hoisted_2$k = { id: "lupa-select" };
12213
+ const _hoisted_2$j = { id: "lupa-select" };
12200
12214
  const _hoisted_3$d = { class: "lupa-select-label" };
12201
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
12215
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
12202
12216
  __name: "SearchResultsPageSize",
12203
12217
  props: {
12204
12218
  label: {},
@@ -12215,8 +12229,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12215
12229
  });
12216
12230
  };
12217
12231
  return (_ctx, _cache) => {
12218
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
12219
- createBaseVNode("div", _hoisted_2$k, [
12232
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
12233
+ createBaseVNode("div", _hoisted_2$j, [
12220
12234
  createBaseVNode("label", _hoisted_3$d, toDisplayString(_ctx.label), 1),
12221
12235
  createBaseVNode("select", {
12222
12236
  class: "lupa-select-dropdown",
@@ -12234,14 +12248,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12234
12248
  };
12235
12249
  }
12236
12250
  });
12237
- const _hoisted_1$s = {
12251
+ const _hoisted_1$r = {
12238
12252
  id: "lupa-search-results-sort",
12239
12253
  class: "lupa-search-results-sort"
12240
12254
  };
12241
- const _hoisted_2$j = { id: "lupa-select" };
12255
+ const _hoisted_2$i = { id: "lupa-select" };
12242
12256
  const _hoisted_3$c = { class: "lupa-select-label" };
12243
12257
  const _hoisted_4$9 = ["value"];
12244
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
12258
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
12245
12259
  __name: "SearchResultsSort",
12246
12260
  props: {
12247
12261
  options: {}
@@ -12283,8 +12297,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12283
12297
  });
12284
12298
  };
12285
12299
  return (_ctx, _cache) => {
12286
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
12287
- createBaseVNode("div", _hoisted_2$j, [
12300
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
12301
+ createBaseVNode("div", _hoisted_2$i, [
12288
12302
  createBaseVNode("label", _hoisted_3$c, toDisplayString(_ctx.options.label), 1),
12289
12303
  withDirectives(createBaseVNode("select", {
12290
12304
  class: "lupa-select-dropdown",
@@ -12307,14 +12321,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12307
12321
  };
12308
12322
  }
12309
12323
  });
12310
- const _hoisted_1$r = { class: "lupa-toolbar-left" };
12311
- const _hoisted_2$i = { key: 1 };
12324
+ const _hoisted_1$q = { class: "lupa-toolbar-left" };
12325
+ const _hoisted_2$h = { key: 1 };
12312
12326
  const _hoisted_3$b = { key: 3 };
12313
12327
  const _hoisted_4$8 = { key: 5 };
12314
12328
  const _hoisted_5$4 = { class: "lupa-toolbar-right" };
12315
12329
  const _hoisted_6$2 = { key: 1 };
12316
12330
  const _hoisted_7$2 = { key: 3 };
12317
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
12331
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
12318
12332
  __name: "SearchResultsToolbar",
12319
12333
  props: {
12320
12334
  options: {},
@@ -12411,15 +12425,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12411
12425
  id: "lupa-search-results-toolbar",
12412
12426
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
12413
12427
  }, [
12414
- createBaseVNode("div", _hoisted_1$r, [
12415
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$z, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$i)),
12416
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$Q, {
12428
+ createBaseVNode("div", _hoisted_1$q, [
12429
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$y, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_2$h)),
12430
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$P, {
12417
12431
  key: 2,
12418
12432
  label: searchSummaryLabel.value,
12419
12433
  clearable: unref(hasAnyFilter) && showFilterClear.value,
12420
12434
  onClear: handleClearAll
12421
12435
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_3$b)),
12422
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$x, {
12436
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$w, {
12423
12437
  key: 4,
12424
12438
  options: paginationOptions.value.pageSelect,
12425
12439
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -12427,16 +12441,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12427
12441
  }, null, 8, ["options", "last-page-label", "first-page-label"])) : (openBlock(), createElementBlock("div", _hoisted_4$8))
12428
12442
  ]),
12429
12443
  createBaseVNode("div", _hoisted_5$4, [
12430
- createVNode(_sfc_main$y, {
12444
+ createVNode(_sfc_main$x, {
12431
12445
  label: optionsValue.value.labels.mobileFilterButton,
12432
12446
  "show-filter-count": showMobileFilterCount.value
12433
12447
  }, null, 8, ["label", "show-filter-count"]),
12434
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$w, {
12448
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$v, {
12435
12449
  key: 0,
12436
12450
  options: paginationOptions.value.pageSize,
12437
12451
  label: paginationOptions.value.labels.pageSize
12438
12452
  }, null, 8, ["options", "label"])) : (openBlock(), createElementBlock("div", _hoisted_6$2)),
12439
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$v, {
12453
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$u, {
12440
12454
  key: 2,
12441
12455
  options: sortOptions.value
12442
12456
  }, null, 8, ["options"])) : (openBlock(), createElementBlock("div", _hoisted_7$2))
@@ -12445,14 +12459,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12445
12459
  };
12446
12460
  }
12447
12461
  });
12448
- const _hoisted_1$q = { class: "lupa-badge-title" };
12449
- const _hoisted_2$h = ["src"];
12462
+ const _hoisted_1$p = { class: "lupa-badge-title" };
12463
+ const _hoisted_2$g = ["src"];
12450
12464
  const _hoisted_3$a = { key: 1 };
12451
12465
  const _hoisted_4$7 = {
12452
12466
  key: 0,
12453
12467
  class: "lupa-badge-full-text"
12454
12468
  };
12455
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
12469
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
12456
12470
  __name: "SearchResultGeneratedBadge",
12457
12471
  props: {
12458
12472
  options: {},
@@ -12485,11 +12499,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12485
12499
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
12486
12500
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
12487
12501
  }, [
12488
- createBaseVNode("span", _hoisted_1$q, [
12502
+ createBaseVNode("span", _hoisted_1$p, [
12489
12503
  image.value ? (openBlock(), createElementBlock("img", {
12490
12504
  key: 0,
12491
12505
  src: image.value
12492
- }, null, 8, _hoisted_2$h)) : createCommentVNode("", true),
12506
+ }, null, 8, _hoisted_2$g)) : createCommentVNode("", true),
12493
12507
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$a, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
12494
12508
  ]),
12495
12509
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -12497,8 +12511,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12497
12511
  };
12498
12512
  }
12499
12513
  });
12500
- const _hoisted_1$p = { class: "lupa-generated-badges" };
12501
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
12514
+ const _hoisted_1$o = { class: "lupa-generated-badges" };
12515
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12502
12516
  __name: "SearchResultGeneratedBadges",
12503
12517
  props: {
12504
12518
  options: {}
@@ -12524,9 +12538,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12524
12538
  })).filter((b) => Boolean(b.id));
12525
12539
  });
12526
12540
  return (_ctx, _cache) => {
12527
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
12541
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
12528
12542
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
12529
- return openBlock(), createBlock(_sfc_main$t, {
12543
+ return openBlock(), createBlock(_sfc_main$s, {
12530
12544
  key: badge.id,
12531
12545
  badge,
12532
12546
  options: _ctx.options
@@ -12536,8 +12550,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12536
12550
  };
12537
12551
  }
12538
12552
  });
12539
- const _hoisted_1$o = ["innerHTML"];
12540
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
12553
+ const _hoisted_1$n = ["innerHTML"];
12554
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12541
12555
  __name: "CustomBadge",
12542
12556
  props: {
12543
12557
  badge: {}
@@ -12556,12 +12570,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12556
12570
  return openBlock(), createElementBlock("div", {
12557
12571
  class: normalizeClass(className.value),
12558
12572
  innerHTML: text.value
12559
- }, null, 10, _hoisted_1$o);
12573
+ }, null, 10, _hoisted_1$n);
12560
12574
  };
12561
12575
  }
12562
12576
  });
12563
- const _hoisted_1$n = { class: "lupa-text-badges" };
12564
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
12577
+ const _hoisted_1$m = { class: "lupa-text-badges" };
12578
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
12565
12579
  __name: "TextBadge",
12566
12580
  props: {
12567
12581
  badge: {}
@@ -12576,7 +12590,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12576
12590
  return badges.value.slice(0, props.badge.maxItems);
12577
12591
  });
12578
12592
  return (_ctx, _cache) => {
12579
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
12593
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
12580
12594
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12581
12595
  return openBlock(), createElementBlock("div", {
12582
12596
  class: "lupa-badge lupa-text-badge",
@@ -12587,9 +12601,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12587
12601
  };
12588
12602
  }
12589
12603
  });
12590
- const _hoisted_1$m = { class: "lupa-image-badges" };
12591
- const _hoisted_2$g = ["src"];
12592
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
12604
+ const _hoisted_1$l = { class: "lupa-image-badges" };
12605
+ const _hoisted_2$f = ["src"];
12606
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
12593
12607
  __name: "ImageBadge",
12594
12608
  props: {
12595
12609
  badge: {}
@@ -12609,7 +12623,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12609
12623
  return `${props.badge.rootImageUrl}${src}`;
12610
12624
  };
12611
12625
  return (_ctx, _cache) => {
12612
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
12626
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
12613
12627
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
12614
12628
  return openBlock(), createElementBlock("div", {
12615
12629
  class: "lupa-badge lupa-image-badge",
@@ -12617,22 +12631,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12617
12631
  }, [
12618
12632
  createBaseVNode("img", {
12619
12633
  src: getImageUrl(item)
12620
- }, null, 8, _hoisted_2$g)
12634
+ }, null, 8, _hoisted_2$f)
12621
12635
  ]);
12622
12636
  }), 128))
12623
12637
  ]);
12624
12638
  };
12625
12639
  }
12626
12640
  });
12627
- const _hoisted_1$l = { id: "lupa-search-results-badges" };
12641
+ const _hoisted_1$k = { id: "lupa-search-results-badges" };
12628
12642
  const __default__$1 = {
12629
12643
  components: {
12630
- CustomBadge: _sfc_main$r,
12631
- TextBadge: _sfc_main$q,
12632
- ImageBadge: _sfc_main$p
12644
+ CustomBadge: _sfc_main$q,
12645
+ TextBadge: _sfc_main$p,
12646
+ ImageBadge: _sfc_main$o
12633
12647
  }
12634
12648
  };
12635
- const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12649
+ const _sfc_main$n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
12636
12650
  __name: "SearchResultsBadgeWrapper",
12637
12651
  props: {
12638
12652
  position: {},
@@ -12678,7 +12692,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12678
12692
  }
12679
12693
  };
12680
12694
  return (_ctx, _cache) => {
12681
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
12695
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
12682
12696
  createBaseVNode("div", {
12683
12697
  id: "lupa-badges",
12684
12698
  class: normalizeClass(anchorPosition.value)
@@ -12689,7 +12703,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12689
12703
  badge
12690
12704
  }, null, 8, ["badge"]);
12691
12705
  }), 128)),
12692
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$s, {
12706
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$r, {
12693
12707
  key: 0,
12694
12708
  options: _ctx.options
12695
12709
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -12698,7 +12712,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12698
12712
  };
12699
12713
  }
12700
12714
  }));
12701
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
12715
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
12702
12716
  __name: "SearchResultsProductImage",
12703
12717
  props: {
12704
12718
  item: {},
@@ -12706,7 +12720,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12706
12720
  },
12707
12721
  setup(__props) {
12708
12722
  return (_ctx, _cache) => {
12709
- return openBlock(), createBlock(_sfc_main$14, {
12723
+ return openBlock(), createBlock(_sfc_main$13, {
12710
12724
  item: _ctx.item,
12711
12725
  options: _ctx.options,
12712
12726
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -12715,14 +12729,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12715
12729
  };
12716
12730
  }
12717
12731
  });
12718
- const _hoisted_1$k = ["innerHTML"];
12719
- const _hoisted_2$f = ["title"];
12732
+ const _hoisted_1$j = ["innerHTML"];
12733
+ const _hoisted_2$e = ["title"];
12720
12734
  const _hoisted_3$9 = {
12721
12735
  key: 0,
12722
12736
  class: "lupa-search-results-product-title-text"
12723
12737
  };
12724
12738
  const _hoisted_4$6 = ["href"];
12725
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
12739
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
12726
12740
  __name: "SearchResultsProductTitle",
12727
12741
  props: {
12728
12742
  item: {},
@@ -12755,7 +12769,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12755
12769
  class: "lupa-search-results-product-title",
12756
12770
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12757
12771
  innerHTML: title.value
12758
- }, null, 12, _hoisted_1$k)) : (openBlock(), createElementBlock("div", {
12772
+ }, null, 12, _hoisted_1$j)) : (openBlock(), createElementBlock("div", {
12759
12773
  key: 1,
12760
12774
  class: "lupa-search-results-product-title",
12761
12775
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -12768,12 +12782,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12768
12782
  class: "lupa-search-results-product-title-text lupa-title-link",
12769
12783
  onClick: handleNavigation
12770
12784
  }, toDisplayString(title.value), 9, _hoisted_4$6)) : createCommentVNode("", true)
12771
- ], 12, _hoisted_2$f));
12785
+ ], 12, _hoisted_2$e));
12772
12786
  };
12773
12787
  }
12774
12788
  });
12775
- const _hoisted_1$j = ["innerHTML"];
12776
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
12789
+ const _hoisted_1$i = ["innerHTML"];
12790
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
12777
12791
  __name: "SearchResultsProductDescription",
12778
12792
  props: {
12779
12793
  item: {},
@@ -12797,7 +12811,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12797
12811
  class: "lupa-search-results-product-description",
12798
12812
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
12799
12813
  innerHTML: description.value
12800
- }, null, 12, _hoisted_1$j)) : (openBlock(), createElementBlock("div", {
12814
+ }, null, 12, _hoisted_1$i)) : (openBlock(), createElementBlock("div", {
12801
12815
  key: 1,
12802
12816
  class: "lupa-search-results-product-description",
12803
12817
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -12805,15 +12819,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12805
12819
  };
12806
12820
  }
12807
12821
  });
12808
- const _hoisted_1$i = { id: "lupa-search-results-rating" };
12809
- const _hoisted_2$e = { class: "lupa-ratings" };
12822
+ const _hoisted_1$h = { id: "lupa-search-results-rating" };
12823
+ const _hoisted_2$d = { class: "lupa-ratings" };
12810
12824
  const _hoisted_3$8 = { class: "lupa-ratings-base" };
12811
12825
  const _hoisted_4$5 = ["innerHTML"];
12812
12826
  const _hoisted_5$3 = { class: "lupa-rating-wrapper" };
12813
12827
  const _hoisted_6$1 = ["innerHTML"];
12814
12828
  const _hoisted_7$1 = ["href"];
12815
12829
  const STAR_COUNT = 5;
12816
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
12830
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
12817
12831
  __name: "SearchResultsProductRating",
12818
12832
  props: {
12819
12833
  item: {},
@@ -12844,8 +12858,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12844
12858
  return generateLink(props.options.links.ratingDetails, props.item);
12845
12859
  });
12846
12860
  return (_ctx, _cache) => {
12847
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
12848
- createBaseVNode("div", _hoisted_2$e, [
12861
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
12862
+ createBaseVNode("div", _hoisted_2$d, [
12849
12863
  createBaseVNode("div", _hoisted_3$8, [
12850
12864
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
12851
12865
  return openBlock(), createElementBlock("div", {
@@ -12878,11 +12892,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12878
12892
  };
12879
12893
  }
12880
12894
  });
12881
- const _hoisted_1$h = {
12895
+ const _hoisted_1$g = {
12882
12896
  class: "lupa-search-results-product-regular-price",
12883
12897
  "data-cy": "lupa-search-results-product-regular-price"
12884
12898
  };
12885
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
12899
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
12886
12900
  __name: "SearchResultsProductRegularPrice",
12887
12901
  props: {
12888
12902
  item: {},
@@ -12900,15 +12914,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12900
12914
  );
12901
12915
  });
12902
12916
  return (_ctx, _cache) => {
12903
- return openBlock(), createElementBlock("div", _hoisted_1$h, toDisplayString(price.value), 1);
12917
+ return openBlock(), createElementBlock("div", _hoisted_1$g, toDisplayString(price.value), 1);
12904
12918
  };
12905
12919
  }
12906
12920
  });
12907
- const _hoisted_1$g = {
12921
+ const _hoisted_1$f = {
12908
12922
  class: "lupa-search-results-product-price",
12909
12923
  "data-cy": "lupa-search-results-product-price"
12910
12924
  };
12911
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
12925
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
12912
12926
  __name: "SearchResultsProductPrice",
12913
12927
  props: {
12914
12928
  item: {},
@@ -12926,16 +12940,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12926
12940
  );
12927
12941
  });
12928
12942
  return (_ctx, _cache) => {
12929
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
12943
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
12930
12944
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
12931
12945
  ]);
12932
12946
  };
12933
12947
  }
12934
12948
  });
12935
- const _hoisted_1$f = { class: "lupa-search-results-add-to-cart-wrapper" };
12936
- const _hoisted_2$d = { class: "lupa-search-results-product-addtocart" };
12949
+ const _hoisted_1$e = { class: "lupa-search-results-add-to-cart-wrapper" };
12950
+ const _hoisted_2$c = { class: "lupa-search-results-product-addtocart" };
12937
12951
  const _hoisted_3$7 = ["onClick", "disabled"];
12938
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
12952
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
12939
12953
  __name: "SearchResultsProductAddToCart",
12940
12954
  props: {
12941
12955
  item: {},
@@ -12962,8 +12976,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12962
12976
  loading.value = false;
12963
12977
  });
12964
12978
  return (_ctx, _cache) => {
12965
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
12966
- createBaseVNode("div", _hoisted_2$d, [
12979
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
12980
+ createBaseVNode("div", _hoisted_2$c, [
12967
12981
  createBaseVNode("button", {
12968
12982
  onClick: withModifiers(handleClick, ["stop"]),
12969
12983
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
@@ -12975,12 +12989,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12975
12989
  };
12976
12990
  }
12977
12991
  });
12978
- const _hoisted_1$e = ["innerHTML"];
12979
- const _hoisted_2$c = { key: 0 };
12992
+ const _hoisted_1$d = ["innerHTML"];
12993
+ const _hoisted_2$b = { key: 0 };
12980
12994
  const _hoisted_3$6 = { key: 1 };
12981
12995
  const _hoisted_4$4 = { class: "lupa-search-box-custom-label" };
12982
12996
  const _hoisted_5$2 = { class: "lupa-search-box-custom-text" };
12983
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
12997
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
12984
12998
  __name: "SearchResultsProductCustom",
12985
12999
  props: {
12986
13000
  item: {},
@@ -13018,11 +13032,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13018
13032
  key: 0,
13019
13033
  class: className.value,
13020
13034
  innerHTML: text.value
13021
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$e)) : (openBlock(), createElementBlock("div", mergeProps({
13035
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$d)) : (openBlock(), createElementBlock("div", mergeProps({
13022
13036
  key: 1,
13023
13037
  class: className.value
13024
13038
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
13025
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$c, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$6, [
13039
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$b, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$6, [
13026
13040
  createBaseVNode("div", _hoisted_4$4, toDisplayString(label.value), 1),
13027
13041
  createBaseVNode("div", _hoisted_5$2, toDisplayString(text.value), 1)
13028
13042
  ]))
@@ -13030,8 +13044,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13030
13044
  };
13031
13045
  }
13032
13046
  });
13033
- const _hoisted_1$d = ["innerHTML"];
13034
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
13047
+ const _hoisted_1$c = ["innerHTML"];
13048
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
13035
13049
  __name: "SearchResultsProductCustomHtmlElement",
13036
13050
  props: {
13037
13051
  item: {},
@@ -13055,15 +13069,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13055
13069
  return openBlock(), createElementBlock("div", mergeProps({
13056
13070
  class: className.value,
13057
13071
  innerHTML: text.value
13058
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$d);
13072
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), null, 16, _hoisted_1$c);
13059
13073
  };
13060
13074
  }
13061
13075
  });
13062
- const _hoisted_1$c = { id: "lupa-search-results-rating" };
13063
- const _hoisted_2$b = ["innerHTML"];
13076
+ const _hoisted_1$b = { id: "lupa-search-results-rating" };
13077
+ const _hoisted_2$a = ["innerHTML"];
13064
13078
  const _hoisted_3$5 = { class: "lupa-ratings" };
13065
13079
  const _hoisted_4$3 = ["href"];
13066
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
13080
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
13067
13081
  __name: "SearchResultsProductSingleStarRating",
13068
13082
  props: {
13069
13083
  item: {},
@@ -13091,11 +13105,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13091
13105
  return RATING_STAR_HTML;
13092
13106
  });
13093
13107
  return (_ctx, _cache) => {
13094
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
13108
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
13095
13109
  createBaseVNode("div", {
13096
13110
  innerHTML: star.value,
13097
13111
  class: "lupa-rating lupa-rating-highlighted"
13098
- }, null, 8, _hoisted_2$b),
13112
+ }, null, 8, _hoisted_2$a),
13099
13113
  createBaseVNode("div", _hoisted_3$5, toDisplayString(rating.value), 1),
13100
13114
  createBaseVNode("a", {
13101
13115
  href: ratingLink.value,
@@ -13107,19 +13121,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13107
13121
  });
13108
13122
  const __default__ = {
13109
13123
  components: {
13110
- SearchResultsProductImage: _sfc_main$n,
13111
- SearchResultsProductTitle: _sfc_main$m,
13112
- SearchResultsProductDescription: _sfc_main$l,
13113
- SearchResultsProductRating: _sfc_main$k,
13114
- SearchResultsProductRegularPrice: _sfc_main$j,
13115
- SearchResultsProductPrice: _sfc_main$i,
13116
- SearchResultsProductAddToCart: _sfc_main$h,
13117
- SearchResultsProductCustom: _sfc_main$g,
13118
- SearchResultsProductCustomHtmlElement: _sfc_main$f,
13119
- SearchResultsProductSingleStarRating: _sfc_main$e
13124
+ SearchResultsProductImage: _sfc_main$m,
13125
+ SearchResultsProductTitle: _sfc_main$l,
13126
+ SearchResultsProductDescription: _sfc_main$k,
13127
+ SearchResultsProductRating: _sfc_main$j,
13128
+ SearchResultsProductRegularPrice: _sfc_main$i,
13129
+ SearchResultsProductPrice: _sfc_main$h,
13130
+ SearchResultsProductAddToCart: _sfc_main$g,
13131
+ SearchResultsProductCustom: _sfc_main$f,
13132
+ SearchResultsProductCustomHtmlElement: _sfc_main$e,
13133
+ SearchResultsProductSingleStarRating: _sfc_main$d
13120
13134
  }
13121
13135
  };
13122
- const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13136
+ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
13123
13137
  __name: "SearchResultsProductCardElement",
13124
13138
  props: {
13125
13139
  item: {},
@@ -13189,13 +13203,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13189
13203
  };
13190
13204
  }
13191
13205
  }));
13192
- const _hoisted_1$b = ["href"];
13193
- const _hoisted_2$a = {
13206
+ const _hoisted_1$a = ["href"];
13207
+ const _hoisted_2$9 = {
13194
13208
  key: 0,
13195
13209
  class: "lupa-out-of-stock"
13196
13210
  };
13197
13211
  const _hoisted_3$4 = { class: "lupa-search-result-product-details-section" };
13198
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
13212
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13199
13213
  __name: "SearchResultsProductCard",
13200
13214
  props: {
13201
13215
  product: {},
@@ -13340,7 +13354,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13340
13354
  class: normalizeClass(["lupa-search-result-product-card", !isInStock.value ? "lupa-out-of-stock" : ""]),
13341
13355
  onClick: handleClick
13342
13356
  }, [
13343
- createVNode(_sfc_main$o, { options: badgesOptions.value }, null, 8, ["options"]),
13357
+ createVNode(_sfc_main$n, { options: badgesOptions.value }, null, 8, ["options"]),
13344
13358
  createBaseVNode("div", {
13345
13359
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
13346
13360
  }, [
@@ -13350,7 +13364,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13350
13364
  onClick: handleNavigation
13351
13365
  }, [
13352
13366
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
13353
- return openBlock(), createBlock(_sfc_main$d, {
13367
+ return openBlock(), createBlock(_sfc_main$c, {
13354
13368
  class: "lupa-search-results-product-element",
13355
13369
  item: _ctx.product,
13356
13370
  element,
@@ -13360,16 +13374,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13360
13374
  link: link.value
13361
13375
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
13362
13376
  }), 128)),
13363
- createVNode(_sfc_main$o, {
13377
+ createVNode(_sfc_main$n, {
13364
13378
  options: badgesOptions.value,
13365
13379
  position: "image",
13366
13380
  class: "lupa-image-badges"
13367
13381
  }, null, 8, ["options"]),
13368
- ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13369
- ], 8, _hoisted_1$b),
13382
+ ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
13383
+ ], 8, _hoisted_1$a),
13370
13384
  createBaseVNode("div", _hoisted_3$4, [
13371
13385
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
13372
- return openBlock(), createBlock(_sfc_main$d, {
13386
+ return openBlock(), createBlock(_sfc_main$c, {
13373
13387
  class: "lupa-search-results-product-element",
13374
13388
  item: _ctx.product,
13375
13389
  element,
@@ -13387,7 +13401,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13387
13401
  class: normalizeClass("lupa-element-group-" + group)
13388
13402
  }, [
13389
13403
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
13390
- return openBlock(), createBlock(_sfc_main$d, {
13404
+ return openBlock(), createBlock(_sfc_main$c, {
13391
13405
  class: "lupa-search-results-product-element",
13392
13406
  item: _ctx.product,
13393
13407
  element,
@@ -13405,42 +13419,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13405
13419
  };
13406
13420
  }
13407
13421
  });
13408
- const _hoisted_1$a = { id: "lupa-similar-query-text-component" };
13409
- const _hoisted_2$9 = ["data-cy"];
13410
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
13411
- __name: "SimilarQueryText",
13412
- props: {
13413
- similarQuery: {},
13414
- label: {}
13415
- },
13416
- setup(__props) {
13417
- const props = __props;
13418
- const searchResultStore = useSearchResultStore();
13419
- const { searchResult } = storeToRefs(searchResultStore);
13420
- const searchText = computed(() => searchResult.value.searchText);
13421
- const count = computed(() => {
13422
- return props.similarQuery.count;
13423
- });
13424
- const insertValue = (text, query) => {
13425
- return text.includes("{1}") ? addParamsToLabel(text, query).split(" ") : text.split(" ");
13426
- };
13427
- const getStyle = (text) => {
13428
- return !props.similarQuery.query.includes(text) ? "lupa-similar-query-crossed" : "";
13429
- };
13430
- return (_ctx, _cache) => {
13431
- return openBlock(), createElementBlock("span", _hoisted_1$a, [
13432
- (openBlock(true), createElementBlock(Fragment, null, renderList(insertValue(_ctx.label, searchText.value), (text, index) => {
13433
- return openBlock(), createElementBlock("span", {
13434
- key: index,
13435
- class: normalizeClass(getStyle(text)),
13436
- "data-cy": getStyle(text)
13437
- }, toDisplayString(text) + " ", 11, _hoisted_2$9);
13438
- }), 128)),
13439
- createTextVNode("(" + toDisplayString(count.value) + ") ", 1)
13440
- ]);
13441
- };
13442
- }
13443
- });
13444
13422
  const _hoisted_1$9 = {
13445
13423
  id: "lupa-search-results-similar-queries",
13446
13424
  "data-cy": "lupa-search-results-similar-queries"
@@ -13451,10 +13429,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13451
13429
  "data-cy": "lupa-similar-query-label"
13452
13430
  };
13453
13431
  const _hoisted_4$2 = ["onClick"];
13454
- const _hoisted_5$1 = { key: 1 };
13455
- const _hoisted_6 = { key: 1 };
13456
- const _hoisted_7 = { class: "lupa-similar-query-value" };
13457
- const _hoisted_8 = {
13432
+ const _hoisted_5$1 = ["innerHTML"];
13433
+ const _hoisted_6 = { key: 0 };
13434
+ const _hoisted_7 = {
13458
13435
  class: "lupa-products",
13459
13436
  "data-cy": "lupa-products"
13460
13437
  };
@@ -13474,6 +13451,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13474
13451
  const getDocumentKey = (index, product) => {
13475
13452
  return getProductKey(`${index}`, product, props.productCardOptions.idKey);
13476
13453
  };
13454
+ const similarQueryLabel = computed(() => {
13455
+ var _a, _b;
13456
+ return (_b = (_a = props.labels.similarQuery) == null ? void 0 : _a.replace("{1}", "")) != null ? _b : "";
13457
+ });
13458
+ const getSimilarQueryContent = (displayQuery) => {
13459
+ return escapeHtml(displayQuery);
13460
+ };
13477
13461
  const goToResults = ({
13478
13462
  searchText,
13479
13463
  facet
@@ -13486,27 +13470,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13486
13470
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
13487
13471
  return openBlock(), createElementBlock("div", { key: index }, [
13488
13472
  createBaseVNode("div", _hoisted_3$3, [
13489
- !similarQuery.aiSuggestions ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.labels.similarQuery.split(" "), (label, index2) => {
13490
- return openBlock(), createElementBlock("span", { key: index2 }, [
13491
- label.includes("{1}") ? (openBlock(), createElementBlock("span", {
13492
- key: 0,
13493
- onClick: ($event) => goToResults({ searchText: similarQuery.query }),
13494
- class: "lupa-similar-query-value lupa-similar-query-link",
13495
- "data-cy": "lupa-similar-query-value"
13496
- }, [
13497
- createVNode(_sfc_main$b, {
13498
- label,
13499
- similarQuery
13500
- }, null, 8, ["label", "similarQuery"])
13501
- ], 8, _hoisted_4$2)) : (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(label) + " ", 1))
13502
- ]);
13503
- }), 128)) : (openBlock(), createElementBlock("span", _hoisted_6, [
13504
- createBaseVNode("span", _hoisted_7, toDisplayString(_ctx.labels.aiSuggestions), 1)
13505
- ]))
13473
+ createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
13474
+ createBaseVNode("span", {
13475
+ id: "lupa-similar-query-text-component",
13476
+ class: "lupa-similar-query-value lupa-similar-query-link",
13477
+ onClick: ($event) => goToResults({ searchText: similarQuery.query }),
13478
+ "data-cy": "lupa-similar-query-value"
13479
+ }, [
13480
+ createBaseVNode("span", {
13481
+ innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
13482
+ }, null, 8, _hoisted_5$1),
13483
+ similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
13484
+ ], 8, _hoisted_4$2)
13506
13485
  ]),
13507
- createBaseVNode("div", _hoisted_8, [
13486
+ createBaseVNode("div", _hoisted_7, [
13508
13487
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
13509
- return openBlock(), createBlock(_sfc_main$c, {
13488
+ return openBlock(), createBlock(_sfc_main$b, {
13510
13489
  style: normalizeStyle(_ctx.columnSize),
13511
13490
  key: getDocumentKey(index2, product),
13512
13491
  product,
@@ -13603,7 +13582,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13603
13582
  return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
13604
13583
  createBaseVNode("div", _hoisted_2$7, [
13605
13584
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
13606
- return openBlock(), createBlock(_sfc_main$c, {
13585
+ return openBlock(), createBlock(_sfc_main$b, {
13607
13586
  key: index,
13608
13587
  product: item,
13609
13588
  options: _ctx.panel,
@@ -13787,17 +13766,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13787
13766
  class: "lupa-loader"
13788
13767
  })) : createCommentVNode("", true),
13789
13768
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
13790
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$A, {
13769
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$z, {
13791
13770
  key: 0,
13792
13771
  options: (_a = _ctx.options.filters) != null ? _a : {}
13793
13772
  }, null, 8, ["options"])) : createCommentVNode("", true),
13794
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$u, {
13773
+ showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$t, {
13795
13774
  key: 1,
13796
13775
  class: "lupa-toolbar-mobile",
13797
13776
  options: _ctx.options,
13798
13777
  "pagination-location": "top"
13799
13778
  }, null, 8, ["options"])) : createCommentVNode("", true),
13800
- currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$N, {
13779
+ currentFilterOptions.value ? (openBlock(), createBlock(_sfc_main$M, {
13801
13780
  key: 2,
13802
13781
  class: normalizeClass(currentFiltersClass.value),
13803
13782
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -13811,7 +13790,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13811
13790
  sdkOptions: _ctx.options.options
13812
13791
  }, null, 8, ["options", "sdkOptions"]),
13813
13792
  unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
13814
- createVNode(_sfc_main$u, {
13793
+ createVNode(_sfc_main$t, {
13815
13794
  class: "lupa-toolbar-top",
13816
13795
  options: _ctx.options,
13817
13796
  "pagination-location": "top"
@@ -13825,7 +13804,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13825
13804
  options: productCardOptions.value
13826
13805
  });
13827
13806
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
13828
- return openBlock(), createBlock(_sfc_main$c, {
13807
+ return openBlock(), createBlock(_sfc_main$b, {
13829
13808
  style: normalizeStyle(columnSize.value),
13830
13809
  key: getProductKeyAction(index, product),
13831
13810
  product,
@@ -13841,7 +13820,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13841
13820
  onClick: goToFirstPage
13842
13821
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
13843
13822
  ])) : createCommentVNode("", true),
13844
- createVNode(_sfc_main$u, {
13823
+ createVNode(_sfc_main$t, {
13845
13824
  class: "lupa-toolbar-bottom",
13846
13825
  options: _ctx.options,
13847
13826
  "pagination-location": "bottom"
@@ -13913,7 +13892,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13913
13892
  onClick: handleNavigationBack
13914
13893
  }, toDisplayString(backTitle.value), 9, _hoisted_3$1)
13915
13894
  ])) : createCommentVNode("", true),
13916
- createVNode(_sfc_main$u, {
13895
+ createVNode(_sfc_main$t, {
13917
13896
  class: "lupa-toolbar-mobile",
13918
13897
  "pagination-location": "top",
13919
13898
  options: _ctx.options
@@ -14124,8 +14103,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14124
14103
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
14125
14104
  }, [
14126
14105
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
14127
- createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14128
- createVNode(_sfc_main$P, {
14106
+ createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14107
+ createVNode(_sfc_main$O, {
14129
14108
  "show-summary": true,
14130
14109
  options: _ctx.options,
14131
14110
  "is-product-list": (_a = _ctx.isProductList) != null ? _a : false
@@ -14135,24 +14114,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14135
14114
  key: 1,
14136
14115
  options: _ctx.options
14137
14116
  }, null, 8, ["options"])) : createCommentVNode("", true),
14138
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$C, {
14117
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$B, {
14139
14118
  key: 2,
14140
14119
  options: _ctx.options.filters
14141
14120
  }, null, 8, ["options"])) : createCommentVNode("", true),
14142
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$B, {
14121
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$A, {
14143
14122
  key: 3,
14144
14123
  breadcrumbs: _ctx.options.breadcrumbs
14145
14124
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
14146
14125
  isTitleResultTopPosition.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
14147
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
14126
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$C, {
14148
14127
  key: 0,
14149
14128
  options: (_b = _ctx.options.filters) != null ? _b : {},
14150
14129
  ref_key: "searchResultsFilters",
14151
14130
  ref: searchResultsFilters
14152
14131
  }, null, 8, ["options"])) : createCommentVNode("", true),
14153
14132
  createBaseVNode("div", _hoisted_3, [
14154
- createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14155
- createVNode(_sfc_main$P, {
14133
+ createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14134
+ createVNode(_sfc_main$O, {
14156
14135
  options: _ctx.options,
14157
14136
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
14158
14137
  }, null, 8, ["options", "is-product-list"]),
@@ -14167,13 +14146,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14167
14146
  }, 8, ["options", "ssr"])
14168
14147
  ])
14169
14148
  ])) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
14170
- createVNode(_sfc_main$R, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14171
- createVNode(_sfc_main$P, {
14149
+ createVNode(_sfc_main$Q, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
14150
+ createVNode(_sfc_main$O, {
14172
14151
  options: _ctx.options,
14173
14152
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
14174
14153
  }, null, 8, ["options", "is-product-list"]),
14175
14154
  createBaseVNode("div", _hoisted_4, [
14176
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$D, {
14155
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$C, {
14177
14156
  key: 0,
14178
14157
  options: (_e = _ctx.options.filters) != null ? _e : {},
14179
14158
  ref_key: "searchResultsFilters",
@@ -19801,7 +19780,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
19801
19780
  onClick: withModifiers(innerClick, ["stop"])
19802
19781
  }, [
19803
19782
  createBaseVNode("div", _hoisted_2$1, [
19804
- createVNode(_sfc_main$S, {
19783
+ createVNode(_sfc_main$R, {
19805
19784
  options: fullSearchBoxOptions.value,
19806
19785
  "is-search-container": true,
19807
19786
  ref_key: "searchBox",
@@ -20524,7 +20503,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20524
20503
  class: "lupa-recommended-products",
20525
20504
  "data-cy": "lupa-recommended-products"
20526
20505
  };
20527
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
20506
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
20528
20507
  __name: "Recommendations",
20529
20508
  props: {
20530
20509
  options: {}
@@ -20622,7 +20601,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20622
20601
  key: getProductKeyAction(index, product)
20623
20602
  }, {
20624
20603
  default: withCtx(() => [
20625
- createVNode(_sfc_main$c, {
20604
+ createVNode(_sfc_main$b, {
20626
20605
  product,
20627
20606
  options: _ctx.options,
20628
20607
  "click-tracking-settings": clickTrackingSettings.value
@@ -26201,7 +26180,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26201
26180
  };
26202
26181
  __expose({ fetch: fetch2 });
26203
26182
  return (_ctx, _cache) => {
26204
- return openBlock(), createBlock(unref(_sfc_main$S), {
26183
+ return openBlock(), createBlock(unref(_sfc_main$R), {
26205
26184
  options: fullSearchBoxOptions.value,
26206
26185
  ref_key: "searchBox",
26207
26186
  ref: searchBox2
@@ -26457,7 +26436,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26457
26436
  };
26458
26437
  __expose({ fetch: fetch2 });
26459
26438
  return (_ctx, _cache) => {
26460
- return openBlock(), createBlock(unref(_sfc_main$1c), {
26439
+ return openBlock(), createBlock(unref(_sfc_main$1b), {
26461
26440
  options: _ctx.recommendationOptions,
26462
26441
  ref_key: "productRecommendations",
26463
26442
  ref: productRecommendations
@@ -26747,7 +26726,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26747
26726
  clearSearchContainer,
26748
26727
  clearRecommendations
26749
26728
  };
26750
- if (window) {
26729
+ if (typeof window !== "undefined") {
26751
26730
  window.getLupa = lupaSearch;
26752
26731
  window.lupaSearch = lupaSearch;
26753
26732
  }