@getlupa/client 1.24.3 → 1.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18857,17 +18857,27 @@ var __async = (__this, __arguments, generator) => {
18857
18857
  const isObject$1 = (value) => {
18858
18858
  return value !== null && typeof value === "object" && !Array.isArray(value);
18859
18859
  };
18860
- const parseParam = (key, params) => {
18861
- const value = params.get(key);
18860
+ const decodeParam = (value) => {
18862
18861
  if (!value) {
18863
18862
  return void 0;
18864
18863
  }
18864
+ try {
18865
+ if (!/%[0-9A-Fa-f]{2}/.test(value)) {
18866
+ return value;
18867
+ }
18868
+ } catch (e2) {
18869
+ return value;
18870
+ }
18865
18871
  try {
18866
18872
  return decodeURIComponent(value);
18867
18873
  } catch (e2) {
18868
- return void 0;
18874
+ return value;
18869
18875
  }
18870
18876
  };
18877
+ const parseParam = (key, params) => {
18878
+ const value = params.get(key);
18879
+ return decodeParam(value != null ? value : void 0);
18880
+ };
18871
18881
  const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
18872
18882
  const params = /* @__PURE__ */ Object.create({});
18873
18883
  const keys = reverseKeyValue({
@@ -18885,7 +18895,7 @@ var __async = (__this, __arguments, generator) => {
18885
18895
  const parseFacetKey = (key, searchParams) => {
18886
18896
  var _a25, _b25, _c, _d;
18887
18897
  if (key.startsWith(FACET_PARAMS_TYPE.TERMS)) {
18888
- return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeURIComponent(v))) != null ? _b25 : [];
18898
+ return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeParam(v))) != null ? _b25 : [];
18889
18899
  }
18890
18900
  if (key.startsWith(FACET_PARAMS_TYPE.RANGE) || key.startsWith(FACET_PARAMS_TYPE.PARTIAL_RANGE)) {
18891
18901
  const range2 = searchParams.get(key);
@@ -18901,7 +18911,7 @@ var __async = (__this, __arguments, generator) => {
18901
18911
  if (key.startsWith(FACET_PARAMS_TYPE.HIERARCHY)) {
18902
18912
  return {
18903
18913
  level: 0,
18904
- terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeURIComponent(v))) != null ? _d : []
18914
+ terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeParam(v))) != null ? _d : []
18905
18915
  };
18906
18916
  }
18907
18917
  return [];
@@ -18928,15 +18938,15 @@ var __async = (__this, __arguments, generator) => {
18928
18938
  }, parseRegularKeys(regularKeys, searchParams, getQueryParamName)), parseFacetKeys(facetKeys, searchParams));
18929
18939
  return r;
18930
18940
  };
18931
- const appendParam = (url, { name, value }, encode2 = true) => {
18941
+ const appendParam = (url, { name, value }) => {
18932
18942
  if (Array.isArray(value)) {
18933
18943
  appendArrayParams(url, { name, value });
18934
18944
  } else {
18935
- appendSingleParam(url, { name, value }, encode2);
18945
+ appendSingleParam(url, { name, value });
18936
18946
  }
18937
18947
  };
18938
- const appendSingleParam = (url, param, encode2 = true) => {
18939
- const valueToAppend = encode2 ? encodeParam(param.value) : param.value;
18948
+ const appendSingleParam = (url, param) => {
18949
+ const valueToAppend = param.value;
18940
18950
  if (url.searchParams.has(param.name)) {
18941
18951
  url.searchParams.set(param.name, valueToAppend);
18942
18952
  } else {
@@ -18945,7 +18955,7 @@ var __async = (__this, __arguments, generator) => {
18945
18955
  };
18946
18956
  const appendArrayParams = (url, param) => {
18947
18957
  url.searchParams.delete(param.name);
18948
- param.value.forEach((v) => url.searchParams.append(param.name, encodeParam(v)));
18958
+ param.value.forEach((v) => url.searchParams.append(param.name, v));
18949
18959
  };
18950
18960
  const getRemovableParams = (url, getQueryParamName, paramsToRemove) => {
18951
18961
  if (paramsToRemove === "all") {
@@ -19305,13 +19315,12 @@ var __async = (__this, __arguments, generator) => {
19305
19315
  const getPageUrlWithNewParams = ({
19306
19316
  params: newParams,
19307
19317
  paramsToRemove,
19308
- encode: encode2 = true,
19309
19318
  searchResultsLink: searchResultsLink2
19310
19319
  }) => {
19311
19320
  const url = getPageUrl(searchResultsLink2);
19312
19321
  paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
19313
19322
  removeParams(url, paramsToRemove);
19314
- newParams.forEach((p2) => appendParam(url, p2, encode2));
19323
+ newParams.forEach((p2) => appendParam(url, p2));
19315
19324
  return url.search;
19316
19325
  };
19317
19326
  const removeParameters = ({
@@ -19393,7 +19402,7 @@ var __async = (__this, __arguments, generator) => {
19393
19402
  const routing = (_b25 = optionsStore.boxRoutingBehavior) != null ? _b25 : "direct-link";
19394
19403
  redirectToResultsPage(
19395
19404
  searchResultsLink.value,
19396
- encodeParam(searchText),
19405
+ searchText,
19397
19406
  optionsStore.getQueryParamName,
19398
19407
  facet,
19399
19408
  routing
@@ -19403,7 +19412,6 @@ var __async = (__this, __arguments, generator) => {
19403
19412
  const appendParams = ({
19404
19413
  params: newParams,
19405
19414
  paramsToRemove,
19406
- encode: encode2 = true,
19407
19415
  save = true,
19408
19416
  searchResultsLink: searchResultsLink2
19409
19417
  }) => {
@@ -19413,7 +19421,7 @@ var __async = (__this, __arguments, generator) => {
19413
19421
  const url = getPageUrl(searchResultsLink2);
19414
19422
  paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
19415
19423
  removeParams(url, paramsToRemove);
19416
- newParams.forEach((p2) => appendParam(url, p2, encode2));
19424
+ newParams.forEach((p2) => appendParam(url, p2));
19417
19425
  navigate(url);
19418
19426
  if (!save) {
19419
19427
  return;
@@ -19710,7 +19718,7 @@ var __async = (__this, __arguments, generator) => {
19710
19718
  }
19711
19719
  return Env[environment] || Env["production"];
19712
19720
  };
19713
- const _sfc_main$1G = /* @__PURE__ */ defineComponent({
19721
+ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
19714
19722
  __name: "VoiceSearchProgressCircle",
19715
19723
  props: {
19716
19724
  isRecording: { type: Boolean },
@@ -19923,15 +19931,15 @@ var __async = (__this, __arguments, generator) => {
19923
19931
  closeSocket
19924
19932
  };
19925
19933
  }
19926
- const _hoisted_1$1o = {
19934
+ const _hoisted_1$1q = {
19927
19935
  key: 0,
19928
19936
  class: "lupa-dialog-overlay"
19929
19937
  };
19930
- const _hoisted_2$Z = { class: "lupa-dialog-content" };
19938
+ const _hoisted_2$_ = { class: "lupa-dialog-content" };
19931
19939
  const _hoisted_3$G = { class: "lupa-listening-text" };
19932
19940
  const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
19933
19941
  const _hoisted_5$l = ["aria-label"];
19934
- const _sfc_main$1F = /* @__PURE__ */ defineComponent({
19942
+ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
19935
19943
  __name: "VoiceSearchDialog",
19936
19944
  props: {
19937
19945
  isOpen: { type: Boolean },
@@ -20036,12 +20044,12 @@ var __async = (__this, __arguments, generator) => {
20036
20044
  return (_ctx, _cache) => {
20037
20045
  var _a25, _b25;
20038
20046
  return openBlock(), createElementBlock("div", null, [
20039
- props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1o, [
20047
+ props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1q, [
20040
20048
  createBaseVNode("button", {
20041
20049
  class: "lupa-dialog-box-close-button",
20042
20050
  onClick: _cache[0] || (_cache[0] = () => emit2("close"))
20043
20051
  }),
20044
- createBaseVNode("div", _hoisted_2$Z, [
20052
+ createBaseVNode("div", _hoisted_2$_, [
20045
20053
  createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
20046
20054
  createBaseVNode("div", _hoisted_4$v, [
20047
20055
  createBaseVNode("button", {
@@ -20050,7 +20058,7 @@ var __async = (__this, __arguments, generator) => {
20050
20058
  "aria-controls": "voice-search-microphone",
20051
20059
  "aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
20052
20060
  }, null, 10, _hoisted_5$l),
20053
- createVNode(_sfc_main$1G, {
20061
+ createVNode(_sfc_main$1K, {
20054
20062
  ref_key: "voiceSearchProgressBar",
20055
20063
  ref: voiceSearchProgressBar,
20056
20064
  class: "lupa-progress-circle",
@@ -20065,8 +20073,8 @@ var __async = (__this, __arguments, generator) => {
20065
20073
  };
20066
20074
  }
20067
20075
  });
20068
- const _hoisted_1$1n = { id: "lupa-search-box-input-container" };
20069
- const _hoisted_2$Y = { id: "lupa-search-box-input" };
20076
+ const _hoisted_1$1p = { id: "lupa-search-box-input-container" };
20077
+ const _hoisted_2$Z = { id: "lupa-search-box-input" };
20070
20078
  const _hoisted_3$F = ["value"];
20071
20079
  const _hoisted_4$u = ["aria-label", "placeholder"];
20072
20080
  const _hoisted_5$k = {
@@ -20075,7 +20083,7 @@ var __async = (__this, __arguments, generator) => {
20075
20083
  };
20076
20084
  const _hoisted_6$7 = { key: 2 };
20077
20085
  const _hoisted_7$5 = ["aria-label"];
20078
- const _sfc_main$1E = /* @__PURE__ */ defineComponent({
20086
+ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
20079
20087
  __name: "SearchBoxInput",
20080
20088
  props: {
20081
20089
  options: {},
@@ -20211,7 +20219,7 @@ var __async = (__this, __arguments, generator) => {
20211
20219
  };
20212
20220
  __expose({ focus });
20213
20221
  return (_ctx, _cache) => {
20214
- return openBlock(), createElementBlock("div", _hoisted_1$1n, [
20222
+ return openBlock(), createElementBlock("div", _hoisted_1$1p, [
20215
20223
  _ctx.options.showClearButton && !isClearButtonAtEndOfInput.value ? (openBlock(), createElementBlock("div", {
20216
20224
  key: 0,
20217
20225
  class: normalizeClass(["lupa-input-clear", [
@@ -20220,7 +20228,7 @@ var __async = (__this, __arguments, generator) => {
20220
20228
  ]]),
20221
20229
  onClick: clear
20222
20230
  }, null, 2)) : createCommentVNode("", true),
20223
- createBaseVNode("div", _hoisted_2$Y, [
20231
+ createBaseVNode("div", _hoisted_2$Z, [
20224
20232
  createBaseVNode("input", {
20225
20233
  class: "lupa-hint",
20226
20234
  "aria-hidden": "true",
@@ -20274,7 +20282,7 @@ var __async = (__this, __arguments, generator) => {
20274
20282
  "aria-label": voiceSearchAriaLabel.value
20275
20283
  }, null, 8, _hoisted_7$5)
20276
20284
  ])) : createCommentVNode("", true),
20277
- isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1F, {
20285
+ isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1J, {
20278
20286
  key: 3,
20279
20287
  ref_key: "voiceDialogOverlay",
20280
20288
  ref: voiceDialogOverlay,
@@ -20288,7 +20296,7 @@ var __async = (__this, __arguments, generator) => {
20288
20296
  };
20289
20297
  }
20290
20298
  });
20291
- const _sfc_main$1D = /* @__PURE__ */ defineComponent({
20299
+ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
20292
20300
  __name: "SearchBoxMoreResults",
20293
20301
  props: {
20294
20302
  labels: {},
@@ -20326,9 +20334,9 @@ var __async = (__this, __arguments, generator) => {
20326
20334
  };
20327
20335
  }
20328
20336
  });
20329
- const _hoisted_1$1m = { class: "lupa-search-box-history-item" };
20330
- const _hoisted_2$X = { class: "lupa-search-box-history-item-content" };
20331
- const _sfc_main$1C = /* @__PURE__ */ defineComponent({
20337
+ const _hoisted_1$1o = { class: "lupa-search-box-history-item" };
20338
+ const _hoisted_2$Y = { class: "lupa-search-box-history-item-content" };
20339
+ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
20332
20340
  __name: "SearchBoxHistoryItem",
20333
20341
  props: {
20334
20342
  item: {},
@@ -20345,8 +20353,8 @@ var __async = (__this, __arguments, generator) => {
20345
20353
  emit2("click", { query: props.item });
20346
20354
  };
20347
20355
  return (_ctx, _cache) => {
20348
- return openBlock(), createElementBlock("div", _hoisted_1$1m, [
20349
- createBaseVNode("div", _hoisted_2$X, [
20356
+ return openBlock(), createElementBlock("div", _hoisted_1$1o, [
20357
+ createBaseVNode("div", _hoisted_2$Y, [
20350
20358
  createBaseVNode("div", {
20351
20359
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
20352
20360
  onClick: click2
@@ -20360,11 +20368,11 @@ var __async = (__this, __arguments, generator) => {
20360
20368
  };
20361
20369
  }
20362
20370
  });
20363
- const _hoisted_1$1l = {
20371
+ const _hoisted_1$1n = {
20364
20372
  key: 0,
20365
20373
  class: "lupa-search-box-history-panel"
20366
20374
  };
20367
- const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20375
+ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
20368
20376
  __name: "SearchBoxHistoryPanel",
20369
20377
  props: {
20370
20378
  options: {}
@@ -20415,9 +20423,9 @@ var __async = (__this, __arguments, generator) => {
20415
20423
  }
20416
20424
  };
20417
20425
  return (_ctx, _cache) => {
20418
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1l, [
20426
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1n, [
20419
20427
  (openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
20420
- return openBlock(), createBlock(_sfc_main$1C, {
20428
+ return openBlock(), createBlock(_sfc_main$1G, {
20421
20429
  key: item,
20422
20430
  item,
20423
20431
  highlighted: index === highlightIndex.value,
@@ -20433,12 +20441,12 @@ var __async = (__this, __arguments, generator) => {
20433
20441
  };
20434
20442
  }
20435
20443
  });
20436
- const _hoisted_1$1k = ["innerHTML"];
20437
- const _hoisted_2$W = {
20444
+ const _hoisted_1$1m = ["innerHTML"];
20445
+ const _hoisted_2$X = {
20438
20446
  key: 1,
20439
20447
  class: "lupa-search-box-no-results"
20440
20448
  };
20441
- const _sfc_main$1A = /* @__PURE__ */ defineComponent({
20449
+ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
20442
20450
  __name: "SearchBoxNoResults",
20443
20451
  props: {
20444
20452
  options: {}
@@ -20457,7 +20465,7 @@ var __async = (__this, __arguments, generator) => {
20457
20465
  key: 0,
20458
20466
  class: "lupa-search-box-no-results",
20459
20467
  innerHTML: customHtml.value
20460
- }, null, 8, _hoisted_1$1k)) : (openBlock(), createElementBlock("p", _hoisted_2$W, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
20468
+ }, null, 8, _hoisted_1$1m)) : (openBlock(), createElementBlock("p", _hoisted_2$X, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
20461
20469
  };
20462
20470
  }
20463
20471
  });
@@ -20489,8 +20497,8 @@ var __async = (__this, __arguments, generator) => {
20489
20497
  }
20490
20498
  return gridTemplate.join(" ");
20491
20499
  };
20492
- const _hoisted_1$1j = ["innerHTML"];
20493
- const _hoisted_2$V = {
20500
+ const _hoisted_1$1l = ["innerHTML"];
20501
+ const _hoisted_2$W = {
20494
20502
  key: 1,
20495
20503
  "data-cy": "lupa-suggestion-value",
20496
20504
  class: "lupa-suggestion-value"
@@ -20508,7 +20516,7 @@ var __async = (__this, __arguments, generator) => {
20508
20516
  class: "lupa-suggestion-facet-value",
20509
20517
  "data-cy": "lupa-suggestion-facet-value"
20510
20518
  };
20511
- const _sfc_main$1z = /* @__PURE__ */ defineComponent({
20519
+ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
20512
20520
  __name: "SearchBoxSuggestion",
20513
20521
  props: {
20514
20522
  suggestion: {},
@@ -20545,7 +20553,7 @@ var __async = (__this, __arguments, generator) => {
20545
20553
  class: "lupa-suggestion-value",
20546
20554
  "data-cy": "lupa-suggestion-value",
20547
20555
  innerHTML: _ctx.suggestion.displayHighlight
20548
- }, null, 8, _hoisted_1$1j)) : (openBlock(), createElementBlock("div", _hoisted_2$V, toDisplayString(_ctx.suggestion.display), 1)),
20556
+ }, null, 8, _hoisted_1$1l)) : (openBlock(), createElementBlock("div", _hoisted_2$W, toDisplayString(_ctx.suggestion.display), 1)),
20549
20557
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
20550
20558
  createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
20551
20559
  createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -20554,11 +20562,11 @@ var __async = (__this, __arguments, generator) => {
20554
20562
  };
20555
20563
  }
20556
20564
  });
20557
- const _hoisted_1$1i = {
20565
+ const _hoisted_1$1k = {
20558
20566
  id: "lupa-search-box-suggestions",
20559
20567
  "data-cy": "lupa-search-box-suggestions"
20560
20568
  };
20561
- const _sfc_main$1y = /* @__PURE__ */ defineComponent({
20569
+ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
20562
20570
  __name: "SearchBoxSuggestions",
20563
20571
  props: {
20564
20572
  items: {},
@@ -20625,9 +20633,9 @@ var __async = (__this, __arguments, generator) => {
20625
20633
  });
20626
20634
  });
20627
20635
  return (_ctx, _cache) => {
20628
- return openBlock(), createElementBlock("div", _hoisted_1$1i, [
20636
+ return openBlock(), createElementBlock("div", _hoisted_1$1k, [
20629
20637
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
20630
- return openBlock(), createBlock(_sfc_main$1z, {
20638
+ return openBlock(), createBlock(_sfc_main$1D, {
20631
20639
  key: getSuggestionKey(item),
20632
20640
  class: normalizeClass([
20633
20641
  "lupa-suggestion",
@@ -20659,7 +20667,7 @@ var __async = (__this, __arguments, generator) => {
20659
20667
  }, timeout);
20660
20668
  };
20661
20669
  };
20662
- const _sfc_main$1x = /* @__PURE__ */ defineComponent({
20670
+ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20663
20671
  __name: "SearchBoxSuggestionsWrapper",
20664
20672
  props: {
20665
20673
  panel: {},
@@ -20702,7 +20710,7 @@ var __async = (__this, __arguments, generator) => {
20702
20710
  const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
20703
20711
  watch(() => props.panel.limit, getSuggestionsDebounced);
20704
20712
  return (_ctx, _cache) => {
20705
- return openBlock(), createBlock(_sfc_main$1y, {
20713
+ return openBlock(), createBlock(_sfc_main$1C, {
20706
20714
  items: searchResult.value,
20707
20715
  highlight: _ctx.panel.highlight,
20708
20716
  queryKey: _ctx.panel.queryKey,
@@ -29987,9 +29995,9 @@ and ensure you are accounting for this risk.
29987
29995
  targetImage.src = placeholder;
29988
29996
  }
29989
29997
  };
29990
- const _hoisted_1$1h = ["src"];
29991
- const _hoisted_2$U = ["src"];
29992
- const _sfc_main$1w = /* @__PURE__ */ defineComponent({
29998
+ const _hoisted_1$1j = ["src"];
29999
+ const _hoisted_2$V = ["src"];
30000
+ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
29993
30001
  __name: "ProductImage",
29994
30002
  props: {
29995
30003
  item: {},
@@ -30131,7 +30139,7 @@ and ensure you are accounting for this risk.
30131
30139
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
30132
30140
  onError: replaceWithPlaceholder,
30133
30141
  key: finalUrl.value
30134
- }), null, 16, _hoisted_1$1h))
30142
+ }), null, 16, _hoisted_1$1j))
30135
30143
  ]),
30136
30144
  _: 1
30137
30145
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -30139,12 +30147,12 @@ and ensure you are accounting for this risk.
30139
30147
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
30140
30148
  style: styleOverride.value,
30141
30149
  src: finalMainImageUrl.value
30142
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$U))
30150
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$V))
30143
30151
  ], 38);
30144
30152
  };
30145
30153
  }
30146
30154
  });
30147
- const _sfc_main$1v = /* @__PURE__ */ defineComponent({
30155
+ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
30148
30156
  __name: "SearchBoxProductImage",
30149
30157
  props: {
30150
30158
  item: {},
@@ -30152,7 +30160,7 @@ and ensure you are accounting for this risk.
30152
30160
  },
30153
30161
  setup(__props) {
30154
30162
  return (_ctx, _cache) => {
30155
- return openBlock(), createBlock(_sfc_main$1w, {
30163
+ return openBlock(), createBlock(_sfc_main$1A, {
30156
30164
  item: _ctx.item,
30157
30165
  options: _ctx.options,
30158
30166
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -30161,12 +30169,12 @@ and ensure you are accounting for this risk.
30161
30169
  };
30162
30170
  }
30163
30171
  });
30164
- const _hoisted_1$1g = ["innerHTML"];
30165
- const _hoisted_2$T = {
30172
+ const _hoisted_1$1i = ["innerHTML"];
30173
+ const _hoisted_2$U = {
30166
30174
  key: 1,
30167
30175
  class: "lupa-search-box-product-title"
30168
30176
  };
30169
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
30177
+ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
30170
30178
  __name: "SearchBoxProductTitle",
30171
30179
  props: {
30172
30180
  item: {},
@@ -30189,18 +30197,18 @@ and ensure you are accounting for this risk.
30189
30197
  key: 0,
30190
30198
  class: "lupa-search-box-product-title",
30191
30199
  innerHTML: sanitizedTitle.value
30192
- }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, [
30200
+ }, null, 8, _hoisted_1$1i)) : (openBlock(), createElementBlock("div", _hoisted_2$U, [
30193
30201
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
30194
30202
  ]));
30195
30203
  };
30196
30204
  }
30197
30205
  });
30198
- const _hoisted_1$1f = ["innerHTML"];
30199
- const _hoisted_2$S = {
30206
+ const _hoisted_1$1h = ["innerHTML"];
30207
+ const _hoisted_2$T = {
30200
30208
  key: 1,
30201
30209
  class: "lupa-search-box-product-description"
30202
30210
  };
30203
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
30211
+ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
30204
30212
  __name: "SearchBoxProductDescription",
30205
30213
  props: {
30206
30214
  item: {},
@@ -30223,12 +30231,12 @@ and ensure you are accounting for this risk.
30223
30231
  key: 0,
30224
30232
  class: "lupa-search-box-product-description",
30225
30233
  innerHTML: sanitizedDescription.value
30226
- }, null, 8, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(description.value), 1));
30234
+ }, null, 8, _hoisted_1$1h)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(description.value), 1));
30227
30235
  };
30228
30236
  }
30229
30237
  });
30230
- const _hoisted_1$1e = { class: "lupa-search-box-product-price" };
30231
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
30238
+ const _hoisted_1$1g = { class: "lupa-search-box-product-price" };
30239
+ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
30232
30240
  __name: "SearchBoxProductPrice",
30233
30241
  props: {
30234
30242
  item: {},
@@ -30250,13 +30258,13 @@ and ensure you are accounting for this risk.
30250
30258
  );
30251
30259
  });
30252
30260
  return (_ctx, _cache) => {
30253
- return openBlock(), createElementBlock("div", _hoisted_1$1e, [
30261
+ return openBlock(), createElementBlock("div", _hoisted_1$1g, [
30254
30262
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
30255
30263
  ]);
30256
30264
  };
30257
30265
  }
30258
30266
  });
30259
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
30267
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
30260
30268
  __name: "SearchBoxProductRegularPrice",
30261
30269
  props: {
30262
30270
  item: {},
@@ -30287,12 +30295,12 @@ and ensure you are accounting for this risk.
30287
30295
  };
30288
30296
  }
30289
30297
  });
30290
- const _hoisted_1$1d = ["innerHTML"];
30291
- const _hoisted_2$R = { key: 0 };
30298
+ const _hoisted_1$1f = ["innerHTML"];
30299
+ const _hoisted_2$S = { key: 0 };
30292
30300
  const _hoisted_3$D = { key: 1 };
30293
30301
  const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
30294
30302
  const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
30295
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
30303
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
30296
30304
  __name: "SearchBoxProductCustom",
30297
30305
  props: {
30298
30306
  item: {},
@@ -30318,11 +30326,11 @@ and ensure you are accounting for this risk.
30318
30326
  key: 0,
30319
30327
  class: [className.value, "lupa-search-box-product-custom"],
30320
30328
  innerHTML: text.value
30321
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", mergeProps({
30329
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", mergeProps({
30322
30330
  key: 1,
30323
30331
  class: [className.value, "lupa-search-box-product-custom"]
30324
30332
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
30325
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
30333
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
30326
30334
  createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
30327
30335
  createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
30328
30336
  ]))
@@ -30330,8 +30338,8 @@ and ensure you are accounting for this risk.
30330
30338
  };
30331
30339
  }
30332
30340
  });
30333
- const _hoisted_1$1c = ["innerHTML"];
30334
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
30341
+ const _hoisted_1$1e = ["innerHTML"];
30342
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
30335
30343
  __name: "SearchBoxProductCustomHtml",
30336
30344
  props: {
30337
30345
  item: {},
@@ -30356,7 +30364,7 @@ and ensure you are accounting for this risk.
30356
30364
  return openBlock(), createElementBlock("div", mergeProps({
30357
30365
  class: className.value,
30358
30366
  innerHTML: text.value
30359
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1c);
30367
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1e);
30360
30368
  };
30361
30369
  }
30362
30370
  });
@@ -30695,6 +30703,7 @@ and ensure you are accounting for this risk.
30695
30703
  relatedQueriesApiEnabled,
30696
30704
  lastResultsSource,
30697
30705
  relatedQueryFacetKeys,
30706
+ loadingRelatedQueries,
30698
30707
  setSidebarState,
30699
30708
  queryFacet,
30700
30709
  setLastRequestId,
@@ -30711,12 +30720,12 @@ and ensure you are accounting for this risk.
30711
30720
  setRelatedQueriesApiEnabled
30712
30721
  };
30713
30722
  });
30714
- const _hoisted_1$1b = { class: "lupa-search-box-add-to-cart-wrapper" };
30715
- const _hoisted_2$Q = { class: "lupa-search-box-product-addtocart" };
30723
+ const _hoisted_1$1d = { class: "lupa-search-box-add-to-cart-wrapper" };
30724
+ const _hoisted_2$R = { class: "lupa-search-box-product-addtocart" };
30716
30725
  const _hoisted_3$C = ["disabled"];
30717
30726
  const _hoisted_4$r = ["href"];
30718
30727
  const _hoisted_5$h = ["disabled"];
30719
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30728
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
30720
30729
  __name: "SearchBoxProductAddToCart",
30721
30730
  props: {
30722
30731
  item: {},
@@ -30762,8 +30771,8 @@ and ensure you are accounting for this risk.
30762
30771
  return Boolean(props.link && props.options.link);
30763
30772
  });
30764
30773
  return (_ctx, _cache) => {
30765
- return openBlock(), createElementBlock("div", _hoisted_1$1b, [
30766
- createBaseVNode("div", _hoisted_2$Q, [
30774
+ return openBlock(), createElementBlock("div", _hoisted_1$1d, [
30775
+ createBaseVNode("div", _hoisted_2$R, [
30767
30776
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
30768
30777
  key: 0,
30769
30778
  class: addToCartButtonClass.value,
@@ -30784,23 +30793,23 @@ and ensure you are accounting for this risk.
30784
30793
  };
30785
30794
  }
30786
30795
  });
30787
- const _hoisted_1$1a = {
30796
+ const _hoisted_1$1c = {
30788
30797
  key: 1,
30789
30798
  class: "lupa-search-box-element-badge-wrapper"
30790
30799
  };
30791
30800
  const __default__$4 = {
30792
30801
  components: {
30793
- SearchBoxProductImage: _sfc_main$1v,
30794
- SearchBoxProductTitle: _sfc_main$1u,
30795
- SearchBoxProductDescription: _sfc_main$1t,
30796
- SearchBoxProductPrice: _sfc_main$1s,
30797
- SearchBoxProductRegularPrice: _sfc_main$1r,
30798
- SearchBoxProductCustom: _sfc_main$1q,
30799
- SearchBoxProductCustomHtml: _sfc_main$1p,
30800
- SearchBoxProductAddToCart: _sfc_main$1o
30802
+ SearchBoxProductImage: _sfc_main$1z,
30803
+ SearchBoxProductTitle: _sfc_main$1y,
30804
+ SearchBoxProductDescription: _sfc_main$1x,
30805
+ SearchBoxProductPrice: _sfc_main$1w,
30806
+ SearchBoxProductRegularPrice: _sfc_main$1v,
30807
+ SearchBoxProductCustom: _sfc_main$1u,
30808
+ SearchBoxProductCustomHtml: _sfc_main$1t,
30809
+ SearchBoxProductAddToCart: _sfc_main$1s
30801
30810
  }
30802
30811
  };
30803
- const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
30812
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
30804
30813
  __name: "SearchBoxProductElement",
30805
30814
  props: {
30806
30815
  item: {},
@@ -30872,7 +30881,7 @@ and ensure you are accounting for this risk.
30872
30881
  "dynamic-attributes": dynamicAttributes.value,
30873
30882
  link: _ctx.link
30874
30883
  }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
30875
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1a, [
30884
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1c, [
30876
30885
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
30877
30886
  key: 0,
30878
30887
  item: enhancedItem.value,
@@ -30887,14 +30896,14 @@ and ensure you are accounting for this risk.
30887
30896
  };
30888
30897
  }
30889
30898
  }));
30890
- const _hoisted_1$19 = { class: "lupa-badge-title" };
30891
- const _hoisted_2$P = ["src"];
30899
+ const _hoisted_1$1b = { class: "lupa-badge-title" };
30900
+ const _hoisted_2$Q = ["src"];
30892
30901
  const _hoisted_3$B = { key: 1 };
30893
30902
  const _hoisted_4$q = {
30894
30903
  key: 0,
30895
30904
  class: "lupa-badge-full-text"
30896
30905
  };
30897
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
30906
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
30898
30907
  __name: "SearchResultGeneratedBadge",
30899
30908
  props: {
30900
30909
  options: {},
@@ -30927,11 +30936,11 @@ and ensure you are accounting for this risk.
30927
30936
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
30928
30937
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
30929
30938
  }, [
30930
- createBaseVNode("span", _hoisted_1$19, [
30939
+ createBaseVNode("span", _hoisted_1$1b, [
30931
30940
  image.value ? (openBlock(), createElementBlock("img", {
30932
30941
  key: 0,
30933
30942
  src: image.value
30934
- }, null, 8, _hoisted_2$P)) : createCommentVNode("", true),
30943
+ }, null, 8, _hoisted_2$Q)) : createCommentVNode("", true),
30935
30944
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
30936
30945
  ]),
30937
30946
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -30939,8 +30948,8 @@ and ensure you are accounting for this risk.
30939
30948
  };
30940
30949
  }
30941
30950
  });
30942
- const _hoisted_1$18 = { class: "lupa-generated-badges" };
30943
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
30951
+ const _hoisted_1$1a = { class: "lupa-generated-badges" };
30952
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
30944
30953
  __name: "SearchResultGeneratedBadges",
30945
30954
  props: {
30946
30955
  options: {}
@@ -30966,9 +30975,9 @@ and ensure you are accounting for this risk.
30966
30975
  })).filter((b) => Boolean(b.id));
30967
30976
  });
30968
30977
  return (_ctx, _cache) => {
30969
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
30978
+ return openBlock(), createElementBlock("div", _hoisted_1$1a, [
30970
30979
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
30971
- return openBlock(), createBlock(_sfc_main$1m, {
30980
+ return openBlock(), createBlock(_sfc_main$1q, {
30972
30981
  key: badge.id,
30973
30982
  badge,
30974
30983
  options: _ctx.options
@@ -30978,8 +30987,8 @@ and ensure you are accounting for this risk.
30978
30987
  };
30979
30988
  }
30980
30989
  });
30981
- const _hoisted_1$17 = ["innerHTML"];
30982
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
30990
+ const _hoisted_1$19 = ["innerHTML"];
30991
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30983
30992
  __name: "CustomBadge",
30984
30993
  props: {
30985
30994
  badge: {}
@@ -31000,12 +31009,12 @@ and ensure you are accounting for this risk.
31000
31009
  return openBlock(), createElementBlock("div", {
31001
31010
  class: normalizeClass(className.value),
31002
31011
  innerHTML: text.value
31003
- }, null, 10, _hoisted_1$17);
31012
+ }, null, 10, _hoisted_1$19);
31004
31013
  };
31005
31014
  }
31006
31015
  });
31007
- const _hoisted_1$16 = { class: "lupa-text-badges" };
31008
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
31016
+ const _hoisted_1$18 = { class: "lupa-text-badges" };
31017
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
31009
31018
  __name: "TextBadge",
31010
31019
  props: {
31011
31020
  badge: {}
@@ -31019,7 +31028,7 @@ and ensure you are accounting for this risk.
31019
31028
  return badges.value.slice(0, props.badge.maxItems);
31020
31029
  });
31021
31030
  return (_ctx, _cache) => {
31022
- return openBlock(), createElementBlock("div", _hoisted_1$16, [
31031
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
31023
31032
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
31024
31033
  return openBlock(), createElementBlock("div", {
31025
31034
  class: "lupa-badge lupa-text-badge",
@@ -31030,9 +31039,9 @@ and ensure you are accounting for this risk.
31030
31039
  };
31031
31040
  }
31032
31041
  });
31033
- const _hoisted_1$15 = { class: "lupa-image-badges" };
31034
- const _hoisted_2$O = ["src"];
31035
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
31042
+ const _hoisted_1$17 = { class: "lupa-image-badges" };
31043
+ const _hoisted_2$P = ["src"];
31044
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
31036
31045
  __name: "ImageBadge",
31037
31046
  props: {
31038
31047
  badge: {}
@@ -31052,7 +31061,7 @@ and ensure you are accounting for this risk.
31052
31061
  return `${props.badge.rootImageUrl}${src}`;
31053
31062
  };
31054
31063
  return (_ctx, _cache) => {
31055
- return openBlock(), createElementBlock("div", _hoisted_1$15, [
31064
+ return openBlock(), createElementBlock("div", _hoisted_1$17, [
31056
31065
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
31057
31066
  return openBlock(), createElementBlock("div", {
31058
31067
  class: "lupa-badge lupa-image-badge",
@@ -31060,14 +31069,14 @@ and ensure you are accounting for this risk.
31060
31069
  }, [
31061
31070
  createBaseVNode("img", {
31062
31071
  src: getImageUrl(item)
31063
- }, null, 8, _hoisted_2$O)
31072
+ }, null, 8, _hoisted_2$P)
31064
31073
  ]);
31065
31074
  }), 128))
31066
31075
  ]);
31067
31076
  };
31068
31077
  }
31069
31078
  });
31070
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
31079
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
31071
31080
  __name: "DiscountBadge",
31072
31081
  props: {
31073
31082
  badge: {}
@@ -31129,16 +31138,16 @@ and ensure you are accounting for this risk.
31129
31138
  };
31130
31139
  }
31131
31140
  });
31132
- const _hoisted_1$14 = { id: "lupa-search-results-badges" };
31141
+ const _hoisted_1$16 = { id: "lupa-search-results-badges" };
31133
31142
  const __default__$3 = {
31134
31143
  components: {
31135
- CustomBadge: _sfc_main$1k,
31136
- TextBadge: _sfc_main$1j,
31137
- ImageBadge: _sfc_main$1i,
31138
- DiscountBadge: _sfc_main$1h
31144
+ CustomBadge: _sfc_main$1o,
31145
+ TextBadge: _sfc_main$1n,
31146
+ ImageBadge: _sfc_main$1m,
31147
+ DiscountBadge: _sfc_main$1l
31139
31148
  }
31140
31149
  };
31141
- const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
31150
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
31142
31151
  __name: "SearchResultsBadgeWrapper",
31143
31152
  props: {
31144
31153
  position: {},
@@ -31201,7 +31210,7 @@ and ensure you are accounting for this risk.
31201
31210
  }
31202
31211
  };
31203
31212
  return (_ctx, _cache) => {
31204
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
31213
+ return openBlock(), createElementBlock("div", _hoisted_1$16, [
31205
31214
  createBaseVNode("div", {
31206
31215
  id: "lupa-badges",
31207
31216
  class: normalizeClass(anchorPosition.value)
@@ -31212,7 +31221,7 @@ and ensure you are accounting for this risk.
31212
31221
  badge
31213
31222
  }, null, 8, ["badge"]);
31214
31223
  }), 128)),
31215
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1l, {
31224
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1p, {
31216
31225
  key: 0,
31217
31226
  options: _ctx.options
31218
31227
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -31221,13 +31230,13 @@ and ensure you are accounting for this risk.
31221
31230
  };
31222
31231
  }
31223
31232
  }));
31224
- const _hoisted_1$13 = ["href"];
31225
- const _hoisted_2$N = { class: "lupa-search-box-product-details-section" };
31233
+ const _hoisted_1$15 = ["href"];
31234
+ const _hoisted_2$O = { class: "lupa-search-box-product-details-section" };
31226
31235
  const _hoisted_3$A = {
31227
31236
  key: 0,
31228
31237
  class: "lupa-search-box-product-add-to-cart-section"
31229
31238
  };
31230
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31239
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
31231
31240
  __name: "SearchBoxProduct",
31232
31241
  props: {
31233
31242
  item: {},
@@ -31333,7 +31342,7 @@ and ensure you are accounting for this risk.
31333
31342
  style: normalizeStyle(imageStyleOverride.value)
31334
31343
  }, [
31335
31344
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
31336
- return openBlock(), createBlock(_sfc_main$1n, {
31345
+ return openBlock(), createBlock(_sfc_main$1r, {
31337
31346
  class: "lupa-search-box-product-element",
31338
31347
  key: element.key,
31339
31348
  item: _ctx.item,
@@ -31343,10 +31352,10 @@ and ensure you are accounting for this risk.
31343
31352
  }, null, 8, ["item", "element", "labels", "link"]);
31344
31353
  }), 128))
31345
31354
  ], 4),
31346
- createBaseVNode("div", _hoisted_2$N, [
31355
+ createBaseVNode("div", _hoisted_2$O, [
31347
31356
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
31348
31357
  var _a25;
31349
- return openBlock(), createBlock(_sfc_main$1n, {
31358
+ return openBlock(), createBlock(_sfc_main$1r, {
31350
31359
  class: "lupa-search-box-product-element",
31351
31360
  key: element.key,
31352
31361
  item: _ctx.item,
@@ -31357,7 +31366,7 @@ and ensure you are accounting for this risk.
31357
31366
  ((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
31358
31367
  name: "badges",
31359
31368
  fn: withCtx(() => [
31360
- createVNode(_sfc_main$1g, {
31369
+ createVNode(_sfc_main$1k, {
31361
31370
  options: badgeOptions.value,
31362
31371
  position: "card"
31363
31372
  }, null, 8, ["options"])
@@ -31373,7 +31382,7 @@ and ensure you are accounting for this risk.
31373
31382
  class: normalizeClass(`lupa-search-box-group-${group}`)
31374
31383
  }, [
31375
31384
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
31376
- return openBlock(), createBlock(_sfc_main$1n, {
31385
+ return openBlock(), createBlock(_sfc_main$1r, {
31377
31386
  class: "lupa-search-box-product-element",
31378
31387
  key: element.key,
31379
31388
  item: _ctx.item,
@@ -31386,7 +31395,7 @@ and ensure you are accounting for this risk.
31386
31395
  ], 2);
31387
31396
  }), 128)),
31388
31397
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
31389
- createVNode(_sfc_main$1n, {
31398
+ createVNode(_sfc_main$1r, {
31390
31399
  class: "lupa-search-box-product-element",
31391
31400
  item: _ctx.item,
31392
31401
  element: addToCartElement.value,
@@ -31395,7 +31404,7 @@ and ensure you are accounting for this risk.
31395
31404
  isInStock: isInStock.value
31396
31405
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
31397
31406
  ])) : createCommentVNode("", true)
31398
- ], 16, _hoisted_1$13);
31407
+ ], 16, _hoisted_1$15);
31399
31408
  };
31400
31409
  }
31401
31410
  });
@@ -31467,8 +31476,8 @@ and ensure you are accounting for this risk.
31467
31476
  };
31468
31477
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
31469
31478
  });
31470
- const _hoisted_1$12 = ["innerHTML"];
31471
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
31479
+ const _hoisted_1$14 = ["innerHTML"];
31480
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
31472
31481
  __name: "SearchBoxProducts",
31473
31482
  props: {
31474
31483
  items: {},
@@ -31579,7 +31588,7 @@ and ensure you are accounting for this risk.
31579
31588
  itemClicked: handleProductClick
31580
31589
  });
31581
31590
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(displayItems.value, (item, index) => {
31582
- return openBlock(), createBlock(_sfc_main$1f, {
31591
+ return openBlock(), createBlock(_sfc_main$1j, {
31583
31592
  key: index,
31584
31593
  item,
31585
31594
  panelOptions: _ctx.panelOptions,
@@ -31592,7 +31601,7 @@ and ensure you are accounting for this risk.
31592
31601
  hasResults.value && ((_a25 = _ctx.panelOptions) == null ? void 0 : _a25.appendCustomHtml) && (showAll.value || !showAllItemsToggleButton.value) ? (openBlock(), createElementBlock("div", {
31593
31602
  key: 2,
31594
31603
  innerHTML: _ctx.panelOptions.appendCustomHtml
31595
- }, null, 8, _hoisted_1$12)) : createCommentVNode("", true),
31604
+ }, null, 8, _hoisted_1$14)) : createCommentVNode("", true),
31596
31605
  showAllItemsToggleButton.value ? (openBlock(), createElementBlock("a", {
31597
31606
  key: 3,
31598
31607
  class: "lupa-search-box-expand",
@@ -31603,9 +31612,9 @@ and ensure you are accounting for this risk.
31603
31612
  };
31604
31613
  }
31605
31614
  });
31606
- const _hoisted_1$11 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
31607
- const _hoisted_2$M = { key: 0 };
31608
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
31615
+ const _hoisted_1$13 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
31616
+ const _hoisted_2$N = { key: 0 };
31617
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
31609
31618
  __name: "SearchBoxProductsGoToResultsButton",
31610
31619
  props: {
31611
31620
  options: {},
@@ -31636,13 +31645,13 @@ and ensure you are accounting for this risk.
31636
31645
  emit2("goToResults");
31637
31646
  };
31638
31647
  return (_ctx, _cache) => {
31639
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
31648
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [
31640
31649
  createBaseVNode("button", {
31641
31650
  class: "lupa-search-box-documents-go-to-results-button",
31642
31651
  onClick: goToResults
31643
31652
  }, [
31644
31653
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
31645
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$M, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
31654
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$N, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
31646
31655
  ])
31647
31656
  ]);
31648
31657
  };
@@ -31738,7 +31747,7 @@ and ensure you are accounting for this risk.
31738
31747
  }
31739
31748
  return parsedObject;
31740
31749
  };
31741
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
31750
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
31742
31751
  __name: "SearchBoxProductsWrapper",
31743
31752
  props: {
31744
31753
  panel: {},
@@ -31809,7 +31818,7 @@ and ensure you are accounting for this risk.
31809
31818
  watch(() => props.panel.limit, getItemsDebounced);
31810
31819
  return (_ctx, _cache) => {
31811
31820
  var _a25, _b25;
31812
- return openBlock(), createBlock(_sfc_main$1e, {
31821
+ return openBlock(), createBlock(_sfc_main$1i, {
31813
31822
  items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
31814
31823
  panelOptions: _ctx.panel,
31815
31824
  labels: _ctx.labels,
@@ -31819,7 +31828,7 @@ and ensure you are accounting for this risk.
31819
31828
  default: withCtx(() => {
31820
31829
  var _a26;
31821
31830
  return [
31822
- showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1d, {
31831
+ showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1h, {
31823
31832
  key: 0,
31824
31833
  options: _ctx.searchBoxOptions,
31825
31834
  panel: _ctx.panel,
@@ -31840,7 +31849,7 @@ and ensure you are accounting for this risk.
31840
31849
  };
31841
31850
  }
31842
31851
  });
31843
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
31852
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31844
31853
  __name: "SearchBoxRelatedSourceWrapper",
31845
31854
  props: {
31846
31855
  panel: {},
@@ -31912,7 +31921,7 @@ and ensure you are accounting for this risk.
31912
31921
  });
31913
31922
  return (_ctx, _cache) => {
31914
31923
  var _a25, _b25;
31915
- return openBlock(), createBlock(_sfc_main$1e, {
31924
+ return openBlock(), createBlock(_sfc_main$1i, {
31916
31925
  items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
31917
31926
  panelOptions: documentPanelOptions.value,
31918
31927
  labels: _ctx.labels,
@@ -31930,8 +31939,8 @@ and ensure you are accounting for this risk.
31930
31939
  };
31931
31940
  }
31932
31941
  });
31933
- const _hoisted_1$10 = ["data-cy"];
31934
- const _hoisted_2$L = {
31942
+ const _hoisted_1$12 = ["data-cy"];
31943
+ const _hoisted_2$M = {
31935
31944
  key: 0,
31936
31945
  class: "lupa-panel-title lupa-panel-title-top-results"
31937
31946
  };
@@ -31941,12 +31950,12 @@ and ensure you are accounting for this risk.
31941
31950
  };
31942
31951
  const __default__$2 = {
31943
31952
  components: {
31944
- SearchBoxSuggestionsWrapper: _sfc_main$1x,
31945
- SearchBoxProductsWrapper: _sfc_main$1c,
31946
- SearchBoxRelatedSourceWrapper: _sfc_main$1b
31953
+ SearchBoxSuggestionsWrapper: _sfc_main$1B,
31954
+ SearchBoxProductsWrapper: _sfc_main$1g,
31955
+ SearchBoxRelatedSourceWrapper: _sfc_main$1f
31947
31956
  }
31948
31957
  };
31949
- const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
31958
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
31950
31959
  __name: "SearchBoxMainPanel",
31951
31960
  props: {
31952
31961
  options: {},
@@ -32137,7 +32146,7 @@ and ensure you are accounting for this risk.
32137
32146
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
32138
32147
  "data-cy": "lupa-panel-" + panel.type + "-index"
32139
32148
  }, [
32140
- ((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$L, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
32149
+ ((_a25 = panel.labels) == null ? void 0 : _a25.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString((_b25 = panel.labels) == null ? void 0 : _b25.topResultsTitle), 1)) : createCommentVNode("", true),
32141
32150
  ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_3$z, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
32142
32151
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
32143
32152
  key: 2,
@@ -32160,14 +32169,14 @@ and ensure you are accounting for this risk.
32160
32169
  key: "0"
32161
32170
  } : void 0
32162
32171
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
32163
- ], 14, _hoisted_1$10);
32172
+ ], 14, _hoisted_1$12);
32164
32173
  }), 128))
32165
32174
  ], 4),
32166
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1A, {
32175
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1E, {
32167
32176
  key: 1,
32168
32177
  options: _ctx.options
32169
32178
  }, null, 8, ["options"])) : createCommentVNode("", true),
32170
- displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1D, {
32179
+ displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1H, {
32171
32180
  key: 2,
32172
32181
  labels: labels.value,
32173
32182
  options: _ctx.options,
@@ -32178,7 +32187,7 @@ and ensure you are accounting for this risk.
32178
32187
  id: "lupa-search-box-panel",
32179
32188
  class: normalizeClass({ "lupa-search-text-empty": isSearchEmpty.value })
32180
32189
  }, [
32181
- createVNode(_sfc_main$1B, {
32190
+ createVNode(_sfc_main$1F, {
32182
32191
  options: _ctx.options.history,
32183
32192
  history: history.value,
32184
32193
  onGoToResults: handleGoToResults,
@@ -32203,8 +32212,8 @@ and ensure you are accounting for this risk.
32203
32212
  const elements = getElements(triggers);
32204
32213
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
32205
32214
  };
32206
- const _hoisted_1$$ = { class: "lupa-search-box-wrapper" };
32207
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
32215
+ const _hoisted_1$11 = { class: "lupa-search-box-wrapper" };
32216
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
32208
32217
  __name: "SearchBox",
32209
32218
  props: {
32210
32219
  options: {},
@@ -32543,8 +32552,8 @@ and ensure you are accounting for this risk.
32543
32552
  id: "lupa-search-box",
32544
32553
  class: normalizeClass({ "lupa-search-box-opened": opened.value })
32545
32554
  }, [
32546
- createBaseVNode("div", _hoisted_1$$, [
32547
- createVNode(_sfc_main$1E, {
32555
+ createBaseVNode("div", _hoisted_1$11, [
32556
+ createVNode(_sfc_main$1I, {
32548
32557
  options: inputOptions.value,
32549
32558
  suggestedValue: suggestedValue.value,
32550
32559
  "can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
@@ -32557,7 +32566,7 @@ and ensure you are accounting for this risk.
32557
32566
  onSearch: handleSearch,
32558
32567
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
32559
32568
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
32560
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1a, {
32569
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1e, {
32561
32570
  key: 0,
32562
32571
  options: panelOptions.value,
32563
32572
  inputValue: inputValue.value,
@@ -32648,11 +32657,11 @@ and ensure you are accounting for this risk.
32648
32657
  }
32649
32658
  return searchParams;
32650
32659
  };
32651
- const _hoisted_1$_ = {
32660
+ const _hoisted_1$10 = {
32652
32661
  key: 0,
32653
32662
  id: "lupa-search-results-did-you-mean"
32654
32663
  };
32655
- const _hoisted_2$K = {
32664
+ const _hoisted_2$L = {
32656
32665
  key: 0,
32657
32666
  "data-cy": "suggested-search-text-label"
32658
32667
  };
@@ -32661,7 +32670,7 @@ and ensure you are accounting for this risk.
32661
32670
  "data-cy": "did-you-mean-label"
32662
32671
  };
32663
32672
  const _hoisted_4$p = { key: 1 };
32664
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
32673
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
32665
32674
  __name: "SearchResultsDidYouMean",
32666
32675
  props: {
32667
32676
  labels: {}
@@ -32693,8 +32702,8 @@ and ensure you are accounting for this risk.
32693
32702
  paramStore.goToResults({ searchText, facet });
32694
32703
  };
32695
32704
  return (_ctx, _cache) => {
32696
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
32697
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$K, [
32705
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
32706
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$L, [
32698
32707
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
32699
32708
  return openBlock(), createElementBlock("span", { key: index }, [
32700
32709
  createBaseVNode("span", {
@@ -32719,12 +32728,12 @@ and ensure you are accounting for this risk.
32719
32728
  };
32720
32729
  }
32721
32730
  });
32722
- const _hoisted_1$Z = {
32731
+ const _hoisted_1$$ = {
32723
32732
  key: 0,
32724
32733
  class: "lupa-search-results-summary"
32725
32734
  };
32726
- const _hoisted_2$J = ["innerHTML"];
32727
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
32735
+ const _hoisted_2$K = ["innerHTML"];
32736
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
32728
32737
  __name: "SearchResultsSummary",
32729
32738
  props: {
32730
32739
  label: {},
@@ -32739,8 +32748,8 @@ and ensure you are accounting for this risk.
32739
32748
  return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
32740
32749
  });
32741
32750
  return (_ctx, _cache) => {
32742
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
32743
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$J),
32751
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$$, [
32752
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$K),
32744
32753
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
32745
32754
  key: 0,
32746
32755
  class: "lupa-filter-clear",
@@ -32751,7 +32760,138 @@ and ensure you are accounting for this risk.
32751
32760
  };
32752
32761
  }
32753
32762
  });
32754
- const _hoisted_1$Y = {
32763
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
32764
+ __name: "SkeletonBlock",
32765
+ props: {
32766
+ style: {}
32767
+ },
32768
+ setup(__props) {
32769
+ return (_ctx, _cache) => {
32770
+ return openBlock(), createElementBlock("div", {
32771
+ class: "lupa-skeleton-block-wrapper",
32772
+ style: normalizeStyle(_ctx.style)
32773
+ }, _cache[0] || (_cache[0] = [
32774
+ createBaseVNode("div", { class: "lupa-skeleton-block" }, [
32775
+ createBaseVNode("div", { class: "lupa-skeleton-block__shimmer" })
32776
+ ], -1)
32777
+ ]), 4);
32778
+ };
32779
+ }
32780
+ });
32781
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
32782
+ __name: "SkeletonText",
32783
+ props: {
32784
+ style: {},
32785
+ lines: { default: 1 }
32786
+ },
32787
+ setup(__props) {
32788
+ return (_ctx, _cache) => {
32789
+ return openBlock(), createElementBlock("div", {
32790
+ class: "lupa-skeleton-text-wrapper",
32791
+ style: normalizeStyle(_ctx.style)
32792
+ }, [
32793
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.lines, (i) => {
32794
+ return openBlock(), createElementBlock("div", {
32795
+ key: i,
32796
+ class: "lupa-skeleton-line"
32797
+ }, _cache[0] || (_cache[0] = [
32798
+ createBaseVNode("div", { class: "lupa-skeleton-line__shimmer" }, null, -1)
32799
+ ]));
32800
+ }), 128))
32801
+ ], 4);
32802
+ };
32803
+ }
32804
+ });
32805
+ const _hoisted_1$_ = {
32806
+ key: 1,
32807
+ class: "lupa-skeleton-text"
32808
+ };
32809
+ const _hoisted_2$J = {
32810
+ key: 2,
32811
+ class: "lupa-skeleton-blocks"
32812
+ };
32813
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
32814
+ __name: "LoadingBlock",
32815
+ props: {
32816
+ style: {},
32817
+ type: {},
32818
+ enabled: { type: Boolean },
32819
+ loading: { type: Boolean },
32820
+ count: {}
32821
+ },
32822
+ setup(__props) {
32823
+ return (_ctx, _cache) => {
32824
+ return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
32825
+ createVNode(_sfc_main$19, {
32826
+ style: normalizeStyle(_ctx.style),
32827
+ lines: _ctx.count
32828
+ }, null, 8, ["style", "lines"])
32829
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$J, [
32830
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
32831
+ return openBlock(), createBlock(_sfc_main$1a, {
32832
+ key: n,
32833
+ style: normalizeStyle(_ctx.style)
32834
+ }, null, 8, ["style"]);
32835
+ }), 128))
32836
+ ]));
32837
+ };
32838
+ }
32839
+ });
32840
+ const useLoadingSkeleton = () => {
32841
+ const paramsStore = useParamsStore();
32842
+ const optionsStore = useOptionsStore();
32843
+ const searchResultStore = useSearchResultStore();
32844
+ const { limit } = storeToRefs(paramsStore);
32845
+ const {
32846
+ searchResult,
32847
+ relatedQueriesResult,
32848
+ loading,
32849
+ loadingFacets: loadingFacetsBase,
32850
+ loadingRelatedQueries
32851
+ } = storeToRefs(searchResultStore);
32852
+ const { searchResultOptions } = storeToRefs(optionsStore);
32853
+ const enabled = computed(() => {
32854
+ var _a25, _b25;
32855
+ return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled;
32856
+ });
32857
+ const showOnEveryFetch = computed(() => {
32858
+ var _a25, _b25;
32859
+ return (_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.showOnEveryFetch;
32860
+ });
32861
+ const skeletonEnabled = computed(() => {
32862
+ var _a25, _b25, _c;
32863
+ return enabled.value && (!((_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) == null ? void 0 : _b25.length) || ((_c = showOnEveryFetch.value) == null ? void 0 : _c.results));
32864
+ });
32865
+ const relatedQueriesSkeletonEnabled = computed(() => {
32866
+ var _a25, _b25, _c, _d;
32867
+ return enabled.value && Boolean((_a25 = searchResultOptions.value) == null ? void 0 : _a25.relatedQueries) && (!((_c = (_b25 = relatedQueriesResult.value) == null ? void 0 : _b25.relatedQueries) == null ? void 0 : _c.length) || ((_d = showOnEveryFetch.value) == null ? void 0 : _d.relatedQueries));
32868
+ });
32869
+ const facetSkeletonEnabled = computed(() => {
32870
+ var _a25, _b25, _c;
32871
+ return enabled.value && (!((_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.length) || ((_c = showOnEveryFetch.value) == null ? void 0 : _c.facets));
32872
+ });
32873
+ const loadingFacets = computed(() => {
32874
+ var _a25;
32875
+ if ((_a25 = searchResultOptions.value) == null ? void 0 : _a25.splitExpensiveRequests) {
32876
+ return loadingFacetsBase.value;
32877
+ }
32878
+ return loading.value;
32879
+ });
32880
+ const loadingAny = computed(() => {
32881
+ return loading.value || loadingRelatedQueries.value || loadingFacets.value;
32882
+ });
32883
+ return {
32884
+ loading,
32885
+ loadingRelatedQueries,
32886
+ loadingFacets,
32887
+ loadingAny,
32888
+ limit,
32889
+ skeletonEnabled,
32890
+ relatedQueriesSkeletonEnabled,
32891
+ facetSkeletonEnabled
32892
+ };
32893
+ };
32894
+ const _hoisted_1$Z = {
32755
32895
  key: 0,
32756
32896
  class: "lupa-result-page-title",
32757
32897
  "data-cy": "lupa-result-page-title"
@@ -32763,7 +32903,7 @@ and ensure you are accounting for this risk.
32763
32903
  };
32764
32904
  const _hoisted_4$o = { class: "lupa-results-total-count-number" };
32765
32905
  const _hoisted_5$g = ["innerHTML"];
32766
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
32906
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
32767
32907
  __name: "SearchResultsTitle",
32768
32908
  props: {
32769
32909
  options: {},
@@ -32773,7 +32913,10 @@ and ensure you are accounting for this risk.
32773
32913
  setup(__props) {
32774
32914
  const props = __props;
32775
32915
  const searchResultStore = useSearchResultStore();
32916
+ const paramsStore = useParamsStore();
32776
32917
  const { currentQueryText, totalItems, searchResult } = storeToRefs(searchResultStore);
32918
+ const { skeletonEnabled, loading } = useLoadingSkeleton();
32919
+ const { query } = storeToRefs(paramsStore);
32777
32920
  const suggestedSearchText = computed(() => searchResult.value.suggestedSearchText);
32778
32921
  const queryText = computed(() => {
32779
32922
  return suggestedSearchText.value || currentQueryText.value;
@@ -32806,29 +32949,39 @@ and ensure you are accounting for this risk.
32806
32949
  });
32807
32950
  return (_ctx, _cache) => {
32808
32951
  return openBlock(), createElementBlock("div", null, [
32809
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Y, [
32810
- createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
32811
- queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
32812
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
32813
- createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
32814
- createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
32815
- _cache[0] || (_cache[0] = createTextVNode(")"))
32816
- ])) : createCommentVNode("", true)
32817
- ])) : createCommentVNode("", true),
32818
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$17, {
32819
- key: 1,
32820
- label: summaryLabel.value
32821
- }, null, 8, ["label"])) : createCommentVNode("", true),
32822
- descriptionTop.value ? (openBlock(), createElementBlock("div", {
32823
- key: 2,
32824
- class: "lupa-result-page-description-top",
32825
- innerHTML: descriptionTop.value
32826
- }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
32952
+ createVNode(_sfc_main$18, {
32953
+ type: "text",
32954
+ count: 1,
32955
+ enabled: unref(skeletonEnabled) && Boolean(unref(query)),
32956
+ loading: unref(loading)
32957
+ }, {
32958
+ default: withCtx(() => [
32959
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Z, [
32960
+ createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
32961
+ queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
32962
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
32963
+ createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
32964
+ createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
32965
+ _cache[0] || (_cache[0] = createTextVNode(")"))
32966
+ ])) : createCommentVNode("", true)
32967
+ ])) : createCommentVNode("", true),
32968
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$1b, {
32969
+ key: 1,
32970
+ label: summaryLabel.value
32971
+ }, null, 8, ["label"])) : createCommentVNode("", true),
32972
+ descriptionTop.value ? (openBlock(), createElementBlock("div", {
32973
+ key: 2,
32974
+ class: "lupa-result-page-description-top",
32975
+ innerHTML: descriptionTop.value
32976
+ }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
32977
+ ]),
32978
+ _: 1
32979
+ }, 8, ["enabled", "loading"])
32827
32980
  ]);
32828
32981
  };
32829
32982
  }
32830
32983
  });
32831
- const _hoisted_1$X = {
32984
+ const _hoisted_1$Y = {
32832
32985
  class: "lupa-current-filter-label",
32833
32986
  "data-cy": "lupa-current-filter-label"
32834
32987
  };
@@ -32836,7 +32989,7 @@ and ensure you are accounting for this risk.
32836
32989
  class: "lupa-current-filter-value",
32837
32990
  "data-cy": "lupa-current-filter-value"
32838
32991
  };
32839
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
32992
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
32840
32993
  __name: "CurrentFilterDisplay",
32841
32994
  props: {
32842
32995
  filter: {}
@@ -32878,13 +33031,13 @@ and ensure you are accounting for this risk.
32878
33031
  onClick: handleClick,
32879
33032
  "aria-label": "Remove filter"
32880
33033
  }, "⨉"),
32881
- createBaseVNode("div", _hoisted_1$X, toDisplayString(_ctx.filter.label) + ": ", 1),
33034
+ createBaseVNode("div", _hoisted_1$Y, toDisplayString(_ctx.filter.label) + ": ", 1),
32882
33035
  createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
32883
33036
  ], 2);
32884
33037
  };
32885
33038
  }
32886
33039
  });
32887
- const _hoisted_1$W = { class: "lupa-filter-title-text" };
33040
+ const _hoisted_1$X = { class: "lupa-filter-title-text" };
32888
33041
  const _hoisted_2$G = {
32889
33042
  key: 0,
32890
33043
  class: "lupa-filter-count"
@@ -32894,7 +33047,7 @@ and ensure you are accounting for this risk.
32894
33047
  class: "filter-values"
32895
33048
  };
32896
33049
  const _hoisted_4$n = { class: "lupa-current-filter-list" };
32897
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
33050
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
32898
33051
  __name: "CurrentFilters",
32899
33052
  props: {
32900
33053
  options: {},
@@ -32974,7 +33127,7 @@ and ensure you are accounting for this risk.
32974
33127
  class: "lupa-current-filter-title",
32975
33128
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
32976
33129
  }, [
32977
- createBaseVNode("div", _hoisted_1$W, [
33130
+ createBaseVNode("div", _hoisted_1$X, [
32978
33131
  createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
32979
33132
  _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
32980
33133
  ]),
@@ -32986,7 +33139,7 @@ and ensure you are accounting for this risk.
32986
33139
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
32987
33140
  createBaseVNode("div", _hoisted_4$n, [
32988
33141
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
32989
- return openBlock(), createBlock(_sfc_main$15, {
33142
+ return openBlock(), createBlock(_sfc_main$16, {
32990
33143
  key: filter.key + "_" + filter.value,
32991
33144
  filter,
32992
33145
  units: units.value,
@@ -33004,8 +33157,8 @@ and ensure you are accounting for this risk.
33004
33157
  };
33005
33158
  }
33006
33159
  });
33007
- const _hoisted_1$V = ["href"];
33008
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
33160
+ const _hoisted_1$W = ["href"];
33161
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
33009
33162
  __name: "CategoryFilterItem",
33010
33163
  props: {
33011
33164
  options: {},
@@ -33042,12 +33195,12 @@ and ensure you are accounting for this risk.
33042
33195
  "data-cy": "lupa-child-category-item",
33043
33196
  href: urlLink.value,
33044
33197
  onClick: handleNavigation
33045
- }, toDisplayString(title.value), 9, _hoisted_1$V)
33198
+ }, toDisplayString(title.value), 9, _hoisted_1$W)
33046
33199
  ], 2);
33047
33200
  };
33048
33201
  }
33049
33202
  });
33050
- const _hoisted_1$U = {
33203
+ const _hoisted_1$V = {
33051
33204
  class: "lupa-category-filter",
33052
33205
  "data-cy": "lupa-category-filter"
33053
33206
  };
@@ -33055,7 +33208,7 @@ and ensure you are accounting for this risk.
33055
33208
  const _hoisted_3$v = ["href"];
33056
33209
  const _hoisted_4$m = ["href"];
33057
33210
  const _hoisted_5$f = { class: "lupa-child-category-list" };
33058
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
33211
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
33059
33212
  __name: "CategoryFilter",
33060
33213
  props: {
33061
33214
  options: {}
@@ -33143,7 +33296,7 @@ and ensure you are accounting for this risk.
33143
33296
  };
33144
33297
  __expose({ fetch: fetch2 });
33145
33298
  return (_ctx, _cache) => {
33146
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
33299
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
33147
33300
  createBaseVNode("div", _hoisted_2$F, [
33148
33301
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
33149
33302
  key: 0,
@@ -33164,7 +33317,7 @@ and ensure you are accounting for this risk.
33164
33317
  ], 2),
33165
33318
  createBaseVNode("div", _hoisted_5$f, [
33166
33319
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
33167
- return openBlock(), createBlock(_sfc_main$13, {
33320
+ return openBlock(), createBlock(_sfc_main$14, {
33168
33321
  key: getCategoryKey(child),
33169
33322
  item: child,
33170
33323
  options: _ctx.options
@@ -33175,7 +33328,7 @@ and ensure you are accounting for this risk.
33175
33328
  };
33176
33329
  }
33177
33330
  });
33178
- const _hoisted_1$T = {
33331
+ const _hoisted_1$U = {
33179
33332
  class: "lupa-search-result-facet-term-values",
33180
33333
  "data-cy": "lupa-search-result-facet-term-values"
33181
33334
  };
@@ -33190,7 +33343,7 @@ and ensure you are accounting for this risk.
33190
33343
  };
33191
33344
  const _hoisted_8$2 = { key: 0 };
33192
33345
  const _hoisted_9$2 = { key: 1 };
33193
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
33346
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
33194
33347
  __name: "TermFacet",
33195
33348
  props: {
33196
33349
  options: {},
@@ -33284,7 +33437,7 @@ and ensure you are accounting for this risk.
33284
33437
  }
33285
33438
  };
33286
33439
  return (_ctx, _cache) => {
33287
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
33440
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
33288
33441
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
33289
33442
  key: 0,
33290
33443
  class: "lupa-term-filter",
@@ -34233,7 +34386,7 @@ and ensure you are accounting for this risk.
34233
34386
  }
34234
34387
  return out;
34235
34388
  };
34236
- const _hoisted_1$S = { class: "lupa-search-result-facet-stats-values" };
34389
+ const _hoisted_1$T = { class: "lupa-search-result-facet-stats-values" };
34237
34390
  const _hoisted_2$D = {
34238
34391
  key: 0,
34239
34392
  class: "lupa-stats-facet-summary"
@@ -34262,7 +34415,7 @@ and ensure you are accounting for this risk.
34262
34415
  key: 2,
34263
34416
  class: "lupa-stats-slider-wrapper"
34264
34417
  };
34265
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
34418
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
34266
34419
  __name: "StatsFacet",
34267
34420
  props: {
34268
34421
  options: {},
@@ -34481,7 +34634,7 @@ and ensure you are accounting for this risk.
34481
34634
  }
34482
34635
  );
34483
34636
  return (_ctx, _cache) => {
34484
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
34637
+ return openBlock(), createElementBlock("div", _hoisted_1$T, [
34485
34638
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
34486
34639
  createBaseVNode("div", _hoisted_4$k, [
34487
34640
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
@@ -34546,7 +34699,7 @@ and ensure you are accounting for this risk.
34546
34699
  };
34547
34700
  }
34548
34701
  });
34549
- const _hoisted_1$R = { class: "lupa-term-checkbox-wrapper" };
34702
+ const _hoisted_1$S = { class: "lupa-term-checkbox-wrapper" };
34550
34703
  const _hoisted_2$C = { class: "lupa-term-label" };
34551
34704
  const _hoisted_3$s = {
34552
34705
  key: 0,
@@ -34556,7 +34709,7 @@ and ensure you are accounting for this risk.
34556
34709
  key: 0,
34557
34710
  class: "lupa-facet-level"
34558
34711
  };
34559
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
34712
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
34560
34713
  __name: "HierarchyFacetLevel",
34561
34714
  props: {
34562
34715
  options: {},
@@ -34610,7 +34763,7 @@ and ensure you are accounting for this risk.
34610
34763
  "data-cy": "lupa-facet-term",
34611
34764
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
34612
34765
  }, [
34613
- createBaseVNode("div", _hoisted_1$R, [
34766
+ createBaseVNode("div", _hoisted_1$S, [
34614
34767
  createBaseVNode("span", {
34615
34768
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
34616
34769
  }, null, 2)
@@ -34638,13 +34791,13 @@ and ensure you are accounting for this risk.
34638
34791
  };
34639
34792
  }
34640
34793
  });
34641
- const _hoisted_1$Q = {
34794
+ const _hoisted_1$R = {
34642
34795
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
34643
34796
  "data-cy": "lupa-search-result-facet-term-values"
34644
34797
  };
34645
34798
  const _hoisted_2$B = { key: 0 };
34646
34799
  const _hoisted_3$r = ["placeholder"];
34647
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
34800
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
34648
34801
  __name: "HierarchyFacet",
34649
34802
  props: {
34650
34803
  options: {},
@@ -34700,7 +34853,7 @@ and ensure you are accounting for this risk.
34700
34853
  showAll.value = false;
34701
34854
  };
34702
34855
  return (_ctx, _cache) => {
34703
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
34856
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
34704
34857
  isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
34705
34858
  withDirectives(createBaseVNode("input", {
34706
34859
  class: "lupa-term-filter",
@@ -34712,7 +34865,7 @@ and ensure you are accounting for this risk.
34712
34865
  ])
34713
34866
  ])) : createCommentVNode("", true),
34714
34867
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
34715
- return openBlock(), createBlock(_sfc_main$$, {
34868
+ return openBlock(), createBlock(_sfc_main$10, {
34716
34869
  key: item.title,
34717
34870
  options: _ctx.options,
34718
34871
  item,
@@ -34736,7 +34889,7 @@ and ensure you are accounting for this risk.
34736
34889
  };
34737
34890
  }
34738
34891
  });
34739
- const _hoisted_1$P = { class: "lupa-facet-label-text" };
34892
+ const _hoisted_1$Q = { class: "lupa-facet-label-text" };
34740
34893
  const _hoisted_2$A = {
34741
34894
  key: 0,
34742
34895
  class: "lupa-facet-content",
@@ -34744,12 +34897,12 @@ and ensure you are accounting for this risk.
34744
34897
  };
34745
34898
  const __default__$1 = {
34746
34899
  components: {
34747
- TermFacet: _sfc_main$11,
34748
- StatsFacet: _sfc_main$10,
34749
- HierarchyFacet: _sfc_main$_
34900
+ TermFacet: _sfc_main$12,
34901
+ StatsFacet: _sfc_main$11,
34902
+ HierarchyFacet: _sfc_main$$
34750
34903
  }
34751
34904
  };
34752
- const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
34905
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
34753
34906
  __name: "FacetDisplay",
34754
34907
  props: {
34755
34908
  options: {},
@@ -34896,7 +35049,7 @@ and ensure you are accounting for this risk.
34896
35049
  "data-cy": "lupa-search-result-facet-label",
34897
35050
  onClick: toggleFacet
34898
35051
  }, [
34899
- createBaseVNode("div", _hoisted_1$P, toDisplayString(facetLabel.value), 1),
35052
+ createBaseVNode("div", _hoisted_1$Q, toDisplayString(facetLabel.value), 1),
34900
35053
  createBaseVNode("div", {
34901
35054
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
34902
35055
  }, null, 2)
@@ -35014,11 +35167,11 @@ and ensure you are accounting for this risk.
35014
35167
  handleSortSidebarToggle
35015
35168
  };
35016
35169
  };
35017
- const _hoisted_1$O = {
35170
+ const _hoisted_1$P = {
35018
35171
  key: 0,
35019
35172
  class: "lupa-desktop-toggle-filter-count"
35020
35173
  };
35021
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
35174
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
35022
35175
  __name: "DesktopFacetToggle",
35023
35176
  setup(__props) {
35024
35177
  const {
@@ -35040,12 +35193,12 @@ and ensure you are accounting for this risk.
35040
35193
  (...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
35041
35194
  }, [
35042
35195
  createTextVNode(toDisplayString(unref(label)) + " ", 1),
35043
- unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$O, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35196
+ unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35044
35197
  ], 2);
35045
35198
  };
35046
35199
  }
35047
35200
  });
35048
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
35201
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
35049
35202
  __name: "DesktopSortToggle",
35050
35203
  setup(__props) {
35051
35204
  const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
@@ -35061,12 +35214,12 @@ and ensure you are accounting for this risk.
35061
35214
  };
35062
35215
  }
35063
35216
  });
35064
- const _hoisted_1$N = { class: "lupa-search-result-facet-section" };
35217
+ const _hoisted_1$O = { class: "lupa-search-result-facet-section" };
35065
35218
  const _hoisted_2$z = {
35066
35219
  key: 0,
35067
35220
  class: "lupa-facets-title"
35068
35221
  };
35069
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
35222
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
35070
35223
  __name: "FacetList",
35071
35224
  props: {
35072
35225
  options: {},
@@ -35108,14 +35261,14 @@ and ensure you are accounting for this risk.
35108
35261
  };
35109
35262
  return (_ctx, _cache) => {
35110
35263
  var _a25;
35111
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
35264
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
35112
35265
  _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
35113
35266
  createBaseVNode("div", {
35114
35267
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
35115
35268
  }, [
35116
35269
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
35117
35270
  var _a26;
35118
- return openBlock(), createBlock(_sfc_main$Z, {
35271
+ return openBlock(), createBlock(_sfc_main$_, {
35119
35272
  key: facet.key,
35120
35273
  facet,
35121
35274
  currentFilters: currentFiltersValue.value,
@@ -35127,14 +35280,14 @@ and ensure you are accounting for this risk.
35127
35280
  onExpand: unref(handleFilterSidebarToggle)
35128
35281
  }, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
35129
35282
  }), 128)),
35130
- _ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Y, { key: 0 })) : createCommentVNode("", true),
35131
- _ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$X, { key: 1 })) : createCommentVNode("", true)
35283
+ _ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Z, { key: 0 })) : createCommentVNode("", true),
35284
+ _ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$Y, { key: 1 })) : createCommentVNode("", true)
35132
35285
  ], 2)
35133
35286
  ]);
35134
35287
  };
35135
35288
  }
35136
35289
  });
35137
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
35290
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
35138
35291
  __name: "FacetsButton",
35139
35292
  props: {
35140
35293
  options: {}
@@ -35159,7 +35312,7 @@ and ensure you are accounting for this risk.
35159
35312
  };
35160
35313
  }
35161
35314
  });
35162
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
35315
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
35163
35316
  __name: "FacetsClearButton",
35164
35317
  props: {
35165
35318
  options: {}
@@ -35184,8 +35337,8 @@ and ensure you are accounting for this risk.
35184
35337
  };
35185
35338
  }
35186
35339
  });
35187
- const _hoisted_1$M = { class: "lupa-facets-filter-button-wrapper" };
35188
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
35340
+ const _hoisted_1$N = { class: "lupa-facets-filter-button-wrapper" };
35341
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
35189
35342
  __name: "Facets",
35190
35343
  props: {
35191
35344
  options: {},
@@ -35293,7 +35446,7 @@ and ensure you are accounting for this risk.
35293
35446
  return openBlock(), createElementBlock("div", {
35294
35447
  class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
35295
35448
  }, [
35296
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$W, {
35449
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$X, {
35297
35450
  key: 0,
35298
35451
  options: _ctx.options,
35299
35452
  facets: regularFacets.value,
@@ -35303,13 +35456,13 @@ and ensure you are accounting for this risk.
35303
35456
  onSelect: handleFacetSelect,
35304
35457
  onClear: clear
35305
35458
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
35306
- createBaseVNode("div", _hoisted_1$M, [
35307
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$U, {
35459
+ createBaseVNode("div", _hoisted_1$N, [
35460
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
35308
35461
  key: 0,
35309
35462
  options: _ctx.options,
35310
35463
  onClear: clearAll
35311
35464
  }, null, 8, ["options"])) : createCommentVNode("", true),
35312
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
35465
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$W, {
35313
35466
  key: 1,
35314
35467
  options: _ctx.options,
35315
35468
  onFilter: filter
@@ -35319,12 +35472,12 @@ and ensure you are accounting for this risk.
35319
35472
  };
35320
35473
  }
35321
35474
  });
35322
- const _hoisted_1$L = {
35475
+ const _hoisted_1$M = {
35323
35476
  key: 0,
35324
35477
  id: "lupa-search-result-filters",
35325
35478
  class: "lupa-search-result-filters"
35326
35479
  };
35327
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
35480
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
35328
35481
  __name: "SearchResultsFilters",
35329
35482
  props: {
35330
35483
  options: {},
@@ -35334,6 +35487,7 @@ and ensure you are accounting for this risk.
35334
35487
  emits: ["filter"],
35335
35488
  setup(__props, { expose: __expose, emit: __emit }) {
35336
35489
  const categoryFilters = ref(null);
35490
+ const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
35337
35491
  const props = __props;
35338
35492
  const emit2 = __emit;
35339
35493
  const desktopFiltersVisible = computed(() => {
@@ -35362,30 +35516,42 @@ and ensure you are accounting for this risk.
35362
35516
  };
35363
35517
  __expose({ fetch: fetch2 });
35364
35518
  return (_ctx, _cache) => {
35365
- var _a25;
35366
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
35367
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$14, {
35368
- key: 0,
35369
- options: _ctx.options.currentFilters,
35370
- expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
35371
- }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
35372
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$12, {
35373
- key: 1,
35374
- options: _ctx.options.categories,
35375
- ref_key: "categoryFilters",
35376
- ref: categoryFilters
35377
- }, null, 8, ["options"])) : createCommentVNode("", true),
35378
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
35379
- key: 2,
35380
- options: _ctx.options.facets,
35381
- "facet-style": _ctx.style,
35382
- onFilter: filter
35383
- }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35519
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
35520
+ createVNode(_sfc_main$18, {
35521
+ class: "lupa-skeleton-filters",
35522
+ count: 1,
35523
+ enabled: unref(facetSkeletonEnabled),
35524
+ loading: unref(loadingFacets)
35525
+ }, {
35526
+ default: withCtx(() => {
35527
+ var _a25;
35528
+ return [
35529
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$15, {
35530
+ key: 0,
35531
+ options: _ctx.options.currentFilters,
35532
+ expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
35533
+ }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
35534
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$13, {
35535
+ key: 1,
35536
+ options: _ctx.options.categories,
35537
+ ref_key: "categoryFilters",
35538
+ ref: categoryFilters
35539
+ }, null, 8, ["options"])) : createCommentVNode("", true),
35540
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
35541
+ key: 2,
35542
+ options: _ctx.options.facets,
35543
+ "facet-style": _ctx.style,
35544
+ onFilter: filter
35545
+ }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35546
+ ];
35547
+ }),
35548
+ _: 1
35549
+ }, 8, ["enabled", "loading"])
35384
35550
  ])) : createCommentVNode("", true);
35385
35551
  };
35386
35552
  }
35387
35553
  });
35388
- const _hoisted_1$K = { class: "lupa-mobile-sidebar-content" };
35554
+ const _hoisted_1$L = { class: "lupa-mobile-sidebar-content" };
35389
35555
  const _hoisted_2$y = { class: "lupa-sidebar-top" };
35390
35556
  const _hoisted_3$q = { class: "lupa-sidebar-title" };
35391
35557
  const _hoisted_4$i = {
@@ -35393,7 +35559,7 @@ and ensure you are accounting for this risk.
35393
35559
  class: "lupa-sidebar-filter-count"
35394
35560
  };
35395
35561
  const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
35396
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
35562
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
35397
35563
  __name: "MobileFilterSidebar",
35398
35564
  props: {
35399
35565
  options: {}
@@ -35432,7 +35598,7 @@ and ensure you are accounting for this risk.
35432
35598
  class: "lupa-sidebar-close",
35433
35599
  onClick: withModifiers(handleMobileToggle, ["stop"])
35434
35600
  }),
35435
- createBaseVNode("div", _hoisted_1$K, [
35601
+ createBaseVNode("div", _hoisted_1$L, [
35436
35602
  createBaseVNode("div", _hoisted_2$y, [
35437
35603
  createBaseVNode("div", _hoisted_3$q, [
35438
35604
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
@@ -35444,7 +35610,7 @@ and ensure you are accounting for this risk.
35444
35610
  })
35445
35611
  ]),
35446
35612
  createBaseVNode("div", _hoisted_5$c, [
35447
- createVNode(_sfc_main$S, {
35613
+ createVNode(_sfc_main$T, {
35448
35614
  options: _ctx.options,
35449
35615
  expandable: isActiveFiltersExpanded.value,
35450
35616
  style: "sidebar",
@@ -35456,14 +35622,17 @@ and ensure you are accounting for this risk.
35456
35622
  };
35457
35623
  }
35458
35624
  });
35459
- const _hoisted_1$J = { id: "lupa-search-results-breadcrumbs" };
35625
+ const _hoisted_1$K = {
35626
+ key: 0,
35627
+ id: "lupa-search-results-breadcrumbs"
35628
+ };
35460
35629
  const _hoisted_2$x = ["href", "onClick"];
35461
35630
  const _hoisted_3$p = {
35462
35631
  key: 1,
35463
35632
  class: "lupa-search-results-breadcrumb-text"
35464
35633
  };
35465
35634
  const _hoisted_4$h = { key: 2 };
35466
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
35635
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
35467
35636
  __name: "SearchResultsBreadcrumbs",
35468
35637
  props: {
35469
35638
  breadcrumbs: {}
@@ -35481,6 +35650,10 @@ and ensure you are accounting for this risk.
35481
35650
  const hasEventRouting = computed(() => {
35482
35651
  return searchResultOptions.value.routingBehavior === "event";
35483
35652
  });
35653
+ const hasBreadcrumbs = computed(() => {
35654
+ var _a25;
35655
+ return ((_a25 = breadcrumbsValue.value) == null ? void 0 : _a25.length) > 0;
35656
+ });
35484
35657
  const getLabel = (label) => {
35485
35658
  return addParamsToLabel(label, `'${currentQueryText.value}'`);
35486
35659
  };
@@ -35488,7 +35661,7 @@ and ensure you are accounting for this risk.
35488
35661
  handleRoutingEvent(link, event, hasEventRouting.value);
35489
35662
  };
35490
35663
  return (_ctx, _cache) => {
35491
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
35664
+ return hasBreadcrumbs.value ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
35492
35665
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
35493
35666
  var _a25;
35494
35667
  return openBlock(), createElementBlock("span", {
@@ -35507,16 +35680,16 @@ and ensure you are accounting for this risk.
35507
35680
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
35508
35681
  ]);
35509
35682
  }), 128))
35510
- ]);
35683
+ ])) : createCommentVNode("", true);
35511
35684
  };
35512
35685
  }
35513
35686
  });
35514
- const _hoisted_1$I = {
35687
+ const _hoisted_1$J = {
35515
35688
  key: 0,
35516
35689
  id: "lupa-search-result-filters",
35517
35690
  class: "lupa-search-result-filters lupa-search-result-top-filters"
35518
35691
  };
35519
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
35692
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
35520
35693
  __name: "FiltersTopDropdown",
35521
35694
  props: {
35522
35695
  options: {}
@@ -35524,6 +35697,7 @@ and ensure you are accounting for this risk.
35524
35697
  emits: ["filter"],
35525
35698
  setup(__props, { emit: __emit }) {
35526
35699
  const props = __props;
35700
+ const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
35527
35701
  const emit2 = __emit;
35528
35702
  const filter = () => {
35529
35703
  emit2("filter");
@@ -35533,21 +35707,33 @@ and ensure you are accounting for this risk.
35533
35707
  return (_a25 = props.options.visible) != null ? _a25 : true;
35534
35708
  });
35535
35709
  return (_ctx, _cache) => {
35536
- var _a25;
35537
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
35538
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
35539
- key: 0,
35540
- options: _ctx.options.facets,
35541
- "facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
35542
- clearable: true,
35543
- onFilter: filter
35544
- }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35710
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
35711
+ createVNode(_sfc_main$18, {
35712
+ class: "lupa-skeleton-top-dropdown-filters",
35713
+ count: 1,
35714
+ enabled: unref(facetSkeletonEnabled),
35715
+ loading: unref(loadingFacets)
35716
+ }, {
35717
+ default: withCtx(() => {
35718
+ var _a25;
35719
+ return [
35720
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
35721
+ key: 0,
35722
+ options: _ctx.options.facets,
35723
+ "facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
35724
+ clearable: true,
35725
+ onFilter: filter
35726
+ }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35727
+ ];
35728
+ }),
35729
+ _: 1
35730
+ }, 8, ["enabled", "loading"])
35545
35731
  ])) : createCommentVNode("", true);
35546
35732
  };
35547
35733
  }
35548
35734
  });
35549
- const _hoisted_1$H = { id: "lupa-search-results-layout-selection" };
35550
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
35735
+ const _hoisted_1$I = { id: "lupa-search-results-layout-selection" };
35736
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
35551
35737
  __name: "SearchResultsLayoutSelection",
35552
35738
  setup(__props) {
35553
35739
  const searchResultStore = useSearchResultStore();
@@ -35558,7 +35744,7 @@ and ensure you are accounting for this risk.
35558
35744
  searchResultStore.setLayout(layout2);
35559
35745
  };
35560
35746
  return (_ctx, _cache) => {
35561
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
35747
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
35562
35748
  createBaseVNode("div", {
35563
35749
  class: normalizeClass([
35564
35750
  "lupa-layout-selection-grid",
@@ -35580,11 +35766,11 @@ and ensure you are accounting for this risk.
35580
35766
  };
35581
35767
  }
35582
35768
  });
35583
- const _hoisted_1$G = {
35769
+ const _hoisted_1$H = {
35584
35770
  key: 0,
35585
35771
  class: "lupa-mobile-toggle-filter-count"
35586
35772
  };
35587
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
35773
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
35588
35774
  __name: "SearchResultsMobileToggle",
35589
35775
  setup(__props) {
35590
35776
  const {
@@ -35606,12 +35792,12 @@ and ensure you are accounting for this risk.
35606
35792
  (...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
35607
35793
  }, [
35608
35794
  createTextVNode(toDisplayString(unref(label)) + " ", 1),
35609
- unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$G, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35795
+ unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35610
35796
  ], 2);
35611
35797
  };
35612
35798
  }
35613
35799
  });
35614
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
35800
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
35615
35801
  __name: "SearchResultsMobileFilterClose",
35616
35802
  props: {
35617
35803
  label: {}
@@ -35631,7 +35817,7 @@ and ensure you are accounting for this risk.
35631
35817
  };
35632
35818
  }
35633
35819
  });
35634
- const _hoisted_1$F = {
35820
+ const _hoisted_1$G = {
35635
35821
  key: 0,
35636
35822
  id: "lupa-search-results-page-select",
35637
35823
  "data-cy": "lupa-search-results-page-select"
@@ -35644,7 +35830,7 @@ and ensure you are accounting for this risk.
35644
35830
  key: 0,
35645
35831
  class: "lupa-page-number-separator"
35646
35832
  };
35647
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
35833
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
35648
35834
  __name: "SearchResultsPageSelect",
35649
35835
  props: {
35650
35836
  lastPageLabel: {},
@@ -35739,7 +35925,7 @@ and ensure you are accounting for this risk.
35739
35925
  };
35740
35926
  return (_ctx, _cache) => {
35741
35927
  var _a25;
35742
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
35928
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
35743
35929
  showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
35744
35930
  key: 0,
35745
35931
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -35814,7 +36000,7 @@ and ensure you are accounting for this risk.
35814
36000
  };
35815
36001
  }
35816
36002
  });
35817
- const _hoisted_1$E = {
36003
+ const _hoisted_1$F = {
35818
36004
  id: "lupa-search-results-page-size",
35819
36005
  "data-cy": "lupa-search-results-page-size"
35820
36006
  };
@@ -35825,7 +36011,7 @@ and ensure you are accounting for this risk.
35825
36011
  };
35826
36012
  const _hoisted_4$g = ["value", "aria-label"];
35827
36013
  const _hoisted_5$b = ["value"];
35828
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
36014
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
35829
36015
  __name: "SearchResultsPageSize",
35830
36016
  props: {
35831
36017
  labels: {},
@@ -35856,7 +36042,7 @@ and ensure you are accounting for this risk.
35856
36042
  };
35857
36043
  return (_ctx, _cache) => {
35858
36044
  var _a25, _b25, _c;
35859
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
36045
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
35860
36046
  createBaseVNode("div", _hoisted_2$v, [
35861
36047
  createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
35862
36048
  createBaseVNode("select", {
@@ -35948,7 +36134,7 @@ and ensure you are accounting for this risk.
35948
36134
  setSortValue
35949
36135
  };
35950
36136
  };
35951
- const _hoisted_1$D = {
36137
+ const _hoisted_1$E = {
35952
36138
  key: 0,
35953
36139
  id: "lupa-search-results-sort",
35954
36140
  class: "lupa-search-results-sort"
@@ -35960,7 +36146,7 @@ and ensure you are accounting for this risk.
35960
36146
  };
35961
36147
  const _hoisted_4$f = ["aria-label"];
35962
36148
  const _hoisted_5$a = ["value"];
35963
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
36149
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
35964
36150
  __name: "SearchResultsSort",
35965
36151
  setup(__props) {
35966
36152
  const {
@@ -35981,7 +36167,7 @@ and ensure you are accounting for this risk.
35981
36167
  });
35982
36168
  return (_ctx, _cache) => {
35983
36169
  var _a25, _b25;
35984
- return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
36170
+ return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
35985
36171
  createBaseVNode("div", _hoisted_2$u, [
35986
36172
  createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
35987
36173
  withDirectives(createBaseVNode("select", {
@@ -36008,7 +36194,7 @@ and ensure you are accounting for this risk.
36008
36194
  };
36009
36195
  }
36010
36196
  });
36011
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
36197
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
36012
36198
  __name: "SearchResultsSortDrawerToggle",
36013
36199
  setup(__props) {
36014
36200
  const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
@@ -36024,7 +36210,7 @@ and ensure you are accounting for this risk.
36024
36210
  };
36025
36211
  }
36026
36212
  });
36027
- const _hoisted_1$C = { class: "lupa-toolbar-left" };
36213
+ const _hoisted_1$D = { class: "lupa-toolbar-left" };
36028
36214
  const _hoisted_2$t = {
36029
36215
  key: 0,
36030
36216
  class: "lupa-toolbar-right-title"
@@ -36039,7 +36225,7 @@ and ensure you are accounting for this risk.
36039
36225
  };
36040
36226
  const _hoisted_8 = { key: 2 };
36041
36227
  const _hoisted_9 = { key: 4 };
36042
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
36228
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
36043
36229
  __name: "SearchResultsToolbar",
36044
36230
  props: {
36045
36231
  options: {},
@@ -36152,16 +36338,16 @@ and ensure you are accounting for this risk.
36152
36338
  id: "lupa-search-results-toolbar",
36153
36339
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
36154
36340
  }, [
36155
- createBaseVNode("div", _hoisted_1$C, [
36341
+ createBaseVNode("div", _hoisted_1$D, [
36156
36342
  toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
36157
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$O, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
36158
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$17, {
36343
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$P, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
36344
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$1b, {
36159
36345
  key: 3,
36160
36346
  label: searchSummaryLabel.value,
36161
36347
  clearable: unref(hasAnyFilter) && showFilterClear.value,
36162
36348
  onClear: handleClearAll
36163
36349
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
36164
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$L, {
36350
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$M, {
36165
36351
  key: 5,
36166
36352
  options: paginationOptions.value.pageSelect,
36167
36353
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -36170,19 +36356,19 @@ and ensure you are accounting for this risk.
36170
36356
  ]),
36171
36357
  createBaseVNode("div", _hoisted_6$4, [
36172
36358
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
36173
- createVNode(_sfc_main$N),
36174
- createVNode(_sfc_main$I),
36175
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$K, {
36359
+ createVNode(_sfc_main$O),
36360
+ createVNode(_sfc_main$J),
36361
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$L, {
36176
36362
  key: 1,
36177
36363
  options: paginationOptions.value.pageSize,
36178
36364
  labels: paginationOptions.value.labels
36179
36365
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
36180
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$J, {
36366
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$K, {
36181
36367
  key: 3,
36182
36368
  options: sortOptions.value,
36183
36369
  callbacks: callbacks.value
36184
36370
  }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
36185
- showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$M, {
36371
+ showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$N, {
36186
36372
  key: 5,
36187
36373
  label: optionsValue.value.labels.mobileFilterCloseButton
36188
36374
  }, null, 8, ["label"])) : createCommentVNode("", true)
@@ -36191,7 +36377,7 @@ and ensure you are accounting for this risk.
36191
36377
  };
36192
36378
  }
36193
36379
  });
36194
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
36380
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
36195
36381
  __name: "SearchResultsProductImage",
36196
36382
  props: {
36197
36383
  item: {},
@@ -36199,7 +36385,7 @@ and ensure you are accounting for this risk.
36199
36385
  },
36200
36386
  setup(__props) {
36201
36387
  return (_ctx, _cache) => {
36202
- return openBlock(), createBlock(_sfc_main$1w, {
36388
+ return openBlock(), createBlock(_sfc_main$1A, {
36203
36389
  item: _ctx.item,
36204
36390
  options: _ctx.options,
36205
36391
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -36208,7 +36394,7 @@ and ensure you are accounting for this risk.
36208
36394
  };
36209
36395
  }
36210
36396
  });
36211
- const _hoisted_1$B = ["title", "innerHTML"];
36397
+ const _hoisted_1$C = ["title", "innerHTML"];
36212
36398
  const _hoisted_2$s = ["title"];
36213
36399
  const _hoisted_3$k = ["href", "innerHTML"];
36214
36400
  const _hoisted_4$d = ["title"];
@@ -36217,7 +36403,7 @@ and ensure you are accounting for this risk.
36217
36403
  class: "lupa-search-results-product-title-text"
36218
36404
  };
36219
36405
  const _hoisted_6$3 = ["href"];
36220
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
36406
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
36221
36407
  __name: "SearchResultsProductTitle",
36222
36408
  props: {
36223
36409
  item: {},
@@ -36254,7 +36440,7 @@ and ensure you are accounting for this risk.
36254
36440
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
36255
36441
  title: sanitizedTitle.value,
36256
36442
  innerHTML: sanitizedTitle.value
36257
- }, null, 12, _hoisted_1$B)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
36443
+ }, null, 12, _hoisted_1$C)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
36258
36444
  key: 1,
36259
36445
  class: "lupa-search-results-product-title",
36260
36446
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -36283,8 +36469,8 @@ and ensure you are accounting for this risk.
36283
36469
  };
36284
36470
  }
36285
36471
  });
36286
- const _hoisted_1$A = ["innerHTML"];
36287
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
36472
+ const _hoisted_1$B = ["innerHTML"];
36473
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
36288
36474
  __name: "SearchResultsProductDescription",
36289
36475
  props: {
36290
36476
  item: {},
@@ -36311,7 +36497,7 @@ and ensure you are accounting for this risk.
36311
36497
  class: "lupa-search-results-product-description",
36312
36498
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
36313
36499
  innerHTML: sanitizedDescription.value
36314
- }, null, 12, _hoisted_1$A)) : (openBlock(), createElementBlock("div", {
36500
+ }, null, 12, _hoisted_1$B)) : (openBlock(), createElementBlock("div", {
36315
36501
  key: 1,
36316
36502
  class: "lupa-search-results-product-description",
36317
36503
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -36319,7 +36505,7 @@ and ensure you are accounting for this risk.
36319
36505
  };
36320
36506
  }
36321
36507
  });
36322
- const _hoisted_1$z = { id: "lupa-search-results-rating" };
36508
+ const _hoisted_1$A = { id: "lupa-search-results-rating" };
36323
36509
  const _hoisted_2$r = { class: "lupa-ratings" };
36324
36510
  const _hoisted_3$j = { class: "lupa-ratings-base" };
36325
36511
  const _hoisted_4$c = ["innerHTML"];
@@ -36327,7 +36513,7 @@ and ensure you are accounting for this risk.
36327
36513
  const _hoisted_6$2 = ["innerHTML"];
36328
36514
  const _hoisted_7$1 = ["href"];
36329
36515
  const STAR_COUNT = 5;
36330
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
36516
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
36331
36517
  __name: "SearchResultsProductRating",
36332
36518
  props: {
36333
36519
  item: {},
@@ -36364,7 +36550,7 @@ and ensure you are accounting for this risk.
36364
36550
  return generateLink(props.options.links.ratingDetails, props.item);
36365
36551
  });
36366
36552
  return (_ctx, _cache) => {
36367
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
36553
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
36368
36554
  createBaseVNode("div", _hoisted_2$r, [
36369
36555
  createBaseVNode("div", _hoisted_3$j, [
36370
36556
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
@@ -36398,11 +36584,11 @@ and ensure you are accounting for this risk.
36398
36584
  };
36399
36585
  }
36400
36586
  });
36401
- const _hoisted_1$y = {
36587
+ const _hoisted_1$z = {
36402
36588
  class: "lupa-search-results-product-regular-price",
36403
36589
  "data-cy": "lupa-search-results-product-regular-price"
36404
36590
  };
36405
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
36591
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
36406
36592
  __name: "SearchResultsProductRegularPrice",
36407
36593
  props: {
36408
36594
  item: {},
@@ -36424,11 +36610,11 @@ and ensure you are accounting for this risk.
36424
36610
  );
36425
36611
  });
36426
36612
  return (_ctx, _cache) => {
36427
- return openBlock(), createElementBlock("div", _hoisted_1$y, toDisplayString(price.value), 1);
36613
+ return openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString(price.value), 1);
36428
36614
  };
36429
36615
  }
36430
36616
  });
36431
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
36617
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
36432
36618
  __name: "SearchResultsProductPrice",
36433
36619
  props: {
36434
36620
  item: {},
@@ -36462,12 +36648,12 @@ and ensure you are accounting for this risk.
36462
36648
  };
36463
36649
  }
36464
36650
  });
36465
- const _hoisted_1$x = { class: "lupa-search-results-add-to-cart-wrapper" };
36651
+ const _hoisted_1$y = { class: "lupa-search-results-add-to-cart-wrapper" };
36466
36652
  const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
36467
36653
  const _hoisted_3$i = ["disabled"];
36468
36654
  const _hoisted_4$b = ["href"];
36469
36655
  const _hoisted_5$6 = ["id", "disabled"];
36470
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
36656
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
36471
36657
  __name: "SearchResultsProductAddToCart",
36472
36658
  props: {
36473
36659
  item: {},
@@ -36526,7 +36712,7 @@ and ensure you are accounting for this risk.
36526
36712
  loading.value = false;
36527
36713
  });
36528
36714
  return (_ctx, _cache) => {
36529
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
36715
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
36530
36716
  createBaseVNode("div", _hoisted_2$q, [
36531
36717
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
36532
36718
  key: 0,
@@ -36549,12 +36735,12 @@ and ensure you are accounting for this risk.
36549
36735
  };
36550
36736
  }
36551
36737
  });
36552
- const _hoisted_1$w = ["innerHTML"];
36738
+ const _hoisted_1$x = ["innerHTML"];
36553
36739
  const _hoisted_2$p = { key: 0 };
36554
36740
  const _hoisted_3$h = { key: 1 };
36555
36741
  const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
36556
36742
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
36557
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
36743
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
36558
36744
  __name: "SearchResultsProductCustom",
36559
36745
  props: {
36560
36746
  item: {},
@@ -36596,7 +36782,7 @@ and ensure you are accounting for this risk.
36596
36782
  key: 0,
36597
36783
  class: className.value,
36598
36784
  innerHTML: text.value
36599
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w)) : (openBlock(), createElementBlock("div", mergeProps({
36785
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$x)) : (openBlock(), createElementBlock("div", mergeProps({
36600
36786
  key: 1,
36601
36787
  class: className.value
36602
36788
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
@@ -36608,8 +36794,8 @@ and ensure you are accounting for this risk.
36608
36794
  };
36609
36795
  }
36610
36796
  });
36611
- const _hoisted_1$v = ["innerHTML"];
36612
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
36797
+ const _hoisted_1$w = ["innerHTML"];
36798
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
36613
36799
  __name: "SearchResultsProductCustomHtmlElement",
36614
36800
  props: {
36615
36801
  item: {},
@@ -36645,15 +36831,15 @@ and ensure you are accounting for this risk.
36645
36831
  return openBlock(), createElementBlock("div", mergeProps({
36646
36832
  class: className.value,
36647
36833
  innerHTML: text.value
36648
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$v);
36834
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w);
36649
36835
  };
36650
36836
  }
36651
36837
  });
36652
- const _hoisted_1$u = { id: "lupa-search-results-rating" };
36838
+ const _hoisted_1$v = { id: "lupa-search-results-rating" };
36653
36839
  const _hoisted_2$o = ["innerHTML"];
36654
36840
  const _hoisted_3$g = { class: "lupa-ratings" };
36655
36841
  const _hoisted_4$9 = ["href"];
36656
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
36842
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
36657
36843
  __name: "SearchResultsProductSingleStarRating",
36658
36844
  props: {
36659
36845
  item: {},
@@ -36681,7 +36867,7 @@ and ensure you are accounting for this risk.
36681
36867
  return RATING_STAR_HTML;
36682
36868
  });
36683
36869
  return (_ctx, _cache) => {
36684
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
36870
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
36685
36871
  createBaseVNode("div", {
36686
36872
  innerHTML: star.value,
36687
36873
  class: "lupa-rating lupa-rating-highlighted"
@@ -36697,19 +36883,19 @@ and ensure you are accounting for this risk.
36697
36883
  });
36698
36884
  const __default__ = {
36699
36885
  components: {
36700
- SearchResultsProductImage: _sfc_main$G,
36701
- SearchResultsProductTitle: _sfc_main$F,
36702
- SearchResultsProductDescription: _sfc_main$E,
36703
- SearchResultsProductRating: _sfc_main$D,
36704
- SearchResultsProductRegularPrice: _sfc_main$C,
36705
- SearchResultsProductPrice: _sfc_main$B,
36706
- SearchResultsProductAddToCart: _sfc_main$A,
36707
- SearchResultsProductCustom: _sfc_main$z,
36708
- SearchResultsProductCustomHtmlElement: _sfc_main$y,
36709
- SearchResultsProductSingleStarRating: _sfc_main$x
36710
- }
36711
- };
36712
- const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
36886
+ SearchResultsProductImage: _sfc_main$H,
36887
+ SearchResultsProductTitle: _sfc_main$G,
36888
+ SearchResultsProductDescription: _sfc_main$F,
36889
+ SearchResultsProductRating: _sfc_main$E,
36890
+ SearchResultsProductRegularPrice: _sfc_main$D,
36891
+ SearchResultsProductPrice: _sfc_main$C,
36892
+ SearchResultsProductAddToCart: _sfc_main$B,
36893
+ SearchResultsProductCustom: _sfc_main$A,
36894
+ SearchResultsProductCustomHtmlElement: _sfc_main$z,
36895
+ SearchResultsProductSingleStarRating: _sfc_main$y
36896
+ }
36897
+ };
36898
+ const _sfc_main$x = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
36713
36899
  __name: "SearchResultsProductCardElement",
36714
36900
  props: {
36715
36901
  item: {},
@@ -36787,13 +36973,13 @@ and ensure you are accounting for this risk.
36787
36973
  };
36788
36974
  }
36789
36975
  }));
36790
- const _hoisted_1$t = ["href"];
36976
+ const _hoisted_1$u = ["href"];
36791
36977
  const _hoisted_2$n = {
36792
36978
  key: 0,
36793
36979
  class: "lupa-out-of-stock"
36794
36980
  };
36795
36981
  const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
36796
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
36982
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
36797
36983
  __name: "SearchResultsProductCard",
36798
36984
  props: {
36799
36985
  product: {},
@@ -36970,7 +37156,7 @@ and ensure you are accounting for this risk.
36970
37156
  default: withCtx(() => {
36971
37157
  var _a25;
36972
37158
  return [
36973
- createVNode(_sfc_main$1g, { options: badgesOptions.value }, null, 8, ["options"]),
37159
+ createVNode(_sfc_main$1k, { options: badgesOptions.value }, null, 8, ["options"]),
36974
37160
  createBaseVNode("div", {
36975
37161
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
36976
37162
  }, [
@@ -36980,7 +37166,7 @@ and ensure you are accounting for this risk.
36980
37166
  onClick: handleNavigation
36981
37167
  }, [
36982
37168
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
36983
- return openBlock(), createBlock(_sfc_main$w, {
37169
+ return openBlock(), createBlock(_sfc_main$x, {
36984
37170
  class: "lupa-search-results-product-element",
36985
37171
  item: _ctx.product,
36986
37172
  element,
@@ -36991,16 +37177,16 @@ and ensure you are accounting for this risk.
36991
37177
  onProductEvent: handleProductEvent
36992
37178
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
36993
37179
  }), 128)),
36994
- createVNode(_sfc_main$1g, {
37180
+ createVNode(_sfc_main$1k, {
36995
37181
  options: badgesOptions.value,
36996
37182
  position: "image",
36997
37183
  class: "lupa-image-badges"
36998
37184
  }, null, 8, ["options"]),
36999
37185
  ((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
37000
- ], 8, _hoisted_1$t),
37186
+ ], 8, _hoisted_1$u),
37001
37187
  createBaseVNode("div", _hoisted_3$f, [
37002
37188
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
37003
- return openBlock(), createBlock(_sfc_main$w, {
37189
+ return openBlock(), createBlock(_sfc_main$x, {
37004
37190
  class: "lupa-search-results-product-element",
37005
37191
  item: _ctx.product,
37006
37192
  element,
@@ -37018,7 +37204,7 @@ and ensure you are accounting for this risk.
37018
37204
  class: normalizeClass("lupa-element-group-" + group)
37019
37205
  }, [
37020
37206
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
37021
- return openBlock(), createBlock(_sfc_main$w, {
37207
+ return openBlock(), createBlock(_sfc_main$x, {
37022
37208
  class: "lupa-search-results-product-element",
37023
37209
  item: _ctx.product,
37024
37210
  element,
@@ -37039,7 +37225,7 @@ and ensure you are accounting for this risk.
37039
37225
  };
37040
37226
  }
37041
37227
  });
37042
- const _hoisted_1$s = {
37228
+ const _hoisted_1$t = {
37043
37229
  id: "lupa-search-results-similar-queries",
37044
37230
  "data-cy": "lupa-search-results-similar-queries"
37045
37231
  };
@@ -37055,7 +37241,7 @@ and ensure you are accounting for this risk.
37055
37241
  class: "lupa-products",
37056
37242
  "data-cy": "lupa-products"
37057
37243
  };
37058
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
37244
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37059
37245
  __name: "SearchResultsSimilarQueries",
37060
37246
  props: {
37061
37247
  labels: {},
@@ -37093,7 +37279,7 @@ and ensure you are accounting for this risk.
37093
37279
  };
37094
37280
  };
37095
37281
  return (_ctx, _cache) => {
37096
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
37282
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
37097
37283
  createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
37098
37284
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
37099
37285
  return openBlock(), createElementBlock("div", { key: index }, [
@@ -37113,7 +37299,7 @@ and ensure you are accounting for this risk.
37113
37299
  ]),
37114
37300
  createBaseVNode("div", _hoisted_7, [
37115
37301
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
37116
- return openBlock(), createBlock(_sfc_main$v, {
37302
+ return openBlock(), createBlock(_sfc_main$w, {
37117
37303
  style: normalizeStyle(_ctx.columnSize),
37118
37304
  key: getDocumentKey(index2, product),
37119
37305
  product,
@@ -37128,7 +37314,7 @@ and ensure you are accounting for this risk.
37128
37314
  };
37129
37315
  }
37130
37316
  });
37131
- const _hoisted_1$r = {
37317
+ const _hoisted_1$s = {
37132
37318
  key: 0,
37133
37319
  class: "lupa-results-additional-panel"
37134
37320
  };
@@ -37136,7 +37322,7 @@ and ensure you are accounting for this risk.
37136
37322
  class: "lupa-results-additional-panel-items",
37137
37323
  "data-cy": "lupa-results-additional-panel-items"
37138
37324
  };
37139
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
37325
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37140
37326
  __name: "AdditionalPanel",
37141
37327
  props: {
37142
37328
  panel: {},
@@ -37209,10 +37395,10 @@ and ensure you are accounting for this risk.
37209
37395
  handleQueryChange();
37210
37396
  });
37211
37397
  return (_ctx, _cache) => {
37212
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
37398
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
37213
37399
  createBaseVNode("div", _hoisted_2$l, [
37214
37400
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
37215
- return openBlock(), createBlock(_sfc_main$v, {
37401
+ return openBlock(), createBlock(_sfc_main$w, {
37216
37402
  key: index,
37217
37403
  product: item,
37218
37404
  options: _ctx.panel,
@@ -37230,11 +37416,11 @@ and ensure you are accounting for this risk.
37230
37416
  };
37231
37417
  }
37232
37418
  });
37233
- const _hoisted_1$q = {
37419
+ const _hoisted_1$r = {
37234
37420
  key: 0,
37235
37421
  class: "lupa-results-additional-panels"
37236
37422
  };
37237
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
37423
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37238
37424
  __name: "AdditionalPanels",
37239
37425
  props: {
37240
37426
  options: {},
@@ -37251,9 +37437,9 @@ and ensure you are accounting for this risk.
37251
37437
  return locationPanels.value.length > 0;
37252
37438
  });
37253
37439
  return (_ctx, _cache) => {
37254
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$q, [
37440
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
37255
37441
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
37256
- return openBlock(), createBlock(_sfc_main$t, {
37442
+ return openBlock(), createBlock(_sfc_main$u, {
37257
37443
  key: panel.queryKey,
37258
37444
  panel,
37259
37445
  options: _ctx.sdkOptions
@@ -37270,11 +37456,11 @@ and ensure you are accounting for this risk.
37270
37456
  }
37271
37457
  return target2;
37272
37458
  };
37273
- const _sfc_main$r = {};
37274
- const _hoisted_1$p = { class: "lupa-spinner-wrapper" };
37459
+ const _sfc_main$s = {};
37460
+ const _hoisted_1$q = { class: "lupa-spinner-wrapper" };
37275
37461
  const _hoisted_2$k = { class: "lupa-spinner" };
37276
37462
  function _sfc_render(_ctx, _cache) {
37277
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
37463
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
37278
37464
  createBaseVNode("div", _hoisted_2$k, [
37279
37465
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
37280
37466
  return createBaseVNode("div", { key: x });
@@ -37282,8 +37468,8 @@ and ensure you are accounting for this risk.
37282
37468
  ])
37283
37469
  ]);
37284
37470
  }
37285
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render]]);
37286
- const _hoisted_1$o = {
37471
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
37472
+ const _hoisted_1$p = {
37287
37473
  id: "lupa-search-results-similar-results",
37288
37474
  "data-cy": "lupa-search-results-similar-results"
37289
37475
  };
@@ -37292,7 +37478,7 @@ and ensure you are accounting for this risk.
37292
37478
  class: "lupa-products",
37293
37479
  "data-cy": "lupa-products"
37294
37480
  };
37295
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
37481
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
37296
37482
  __name: "SearchResultsSimilarResults",
37297
37483
  props: {
37298
37484
  columnSize: {},
@@ -37313,11 +37499,11 @@ and ensure you are accounting for this risk.
37313
37499
  };
37314
37500
  });
37315
37501
  return (_ctx, _cache) => {
37316
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
37502
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
37317
37503
  createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
37318
37504
  createBaseVNode("div", _hoisted_3$d, [
37319
37505
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
37320
- return openBlock(), createBlock(_sfc_main$v, {
37506
+ return openBlock(), createBlock(_sfc_main$w, {
37321
37507
  style: normalizeStyle(_ctx.columnSize),
37322
37508
  key: getDocumentKey(index, product),
37323
37509
  product,
@@ -37438,7 +37624,7 @@ and ensure you are accounting for this risk.
37438
37624
  return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
37439
37625
  }
37440
37626
  });
37441
- const _hoisted_1$n = { class: "lupa-related-query-item" };
37627
+ const _hoisted_1$o = { class: "lupa-related-query-item" };
37442
37628
  const _hoisted_2$i = { class: "lupa-related-query-image" };
37443
37629
  const _hoisted_3$c = { class: "lupa-related-query-label" };
37444
37630
  const _hoisted_4$7 = { class: "lupa-related-query-title" };
@@ -37446,7 +37632,7 @@ and ensure you are accounting for this risk.
37446
37632
  key: 0,
37447
37633
  class: "lupa-related-query-count"
37448
37634
  };
37449
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
37635
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
37450
37636
  __name: "RelatedQueryPanel",
37451
37637
  props: {
37452
37638
  query: {},
@@ -37543,9 +37729,9 @@ and ensure you are accounting for this risk.
37543
37729
  });
37544
37730
  return (_ctx, _cache) => {
37545
37731
  var _a25;
37546
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
37732
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
37547
37733
  createBaseVNode("div", _hoisted_2$i, [
37548
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
37734
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
37549
37735
  key: 0,
37550
37736
  "wrapper-class": "lupa-related-query-image-wrapper",
37551
37737
  "image-class": "lupa-related-query-image",
@@ -37561,7 +37747,7 @@ and ensure you are accounting for this risk.
37561
37747
  };
37562
37748
  }
37563
37749
  });
37564
- const _hoisted_1$m = {
37750
+ const _hoisted_1$n = {
37565
37751
  key: 0,
37566
37752
  class: "lupa-related-queries"
37567
37753
  };
@@ -37570,7 +37756,7 @@ and ensure you are accounting for this risk.
37570
37756
  class: "lupa-related-queries-title"
37571
37757
  };
37572
37758
  const _hoisted_3$b = ["onClick"];
37573
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
37759
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
37574
37760
  __name: "RelatedQueries",
37575
37761
  props: {
37576
37762
  options: {}
@@ -37664,7 +37850,7 @@ and ensure you are accounting for this risk.
37664
37850
  };
37665
37851
  return (_ctx, _cache) => {
37666
37852
  var _a25, _b25, _c, _d;
37667
- return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
37853
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
37668
37854
  ((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$h, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
37669
37855
  createBaseVNode("ul", null, [
37670
37856
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
@@ -37675,7 +37861,7 @@ and ensure you are accounting for this risk.
37675
37861
  createBaseVNode("a", {
37676
37862
  onClick: ($event) => handleRelatedQueryClick(query)
37677
37863
  }, [
37678
- createVNode(_sfc_main$p, {
37864
+ createVNode(_sfc_main$q, {
37679
37865
  "source-key": query.key,
37680
37866
  options: _ctx.options,
37681
37867
  query: query.value,
@@ -37719,13 +37905,13 @@ and ensure you are accounting for this risk.
37719
37905
  }
37720
37906
  return null;
37721
37907
  };
37722
- const _hoisted_1$l = {
37908
+ const _hoisted_1$m = {
37723
37909
  key: 0,
37724
37910
  class: "lupa-redirection-suggestion"
37725
37911
  };
37726
37912
  const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
37727
37913
  const _hoisted_3$a = ["href"];
37728
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
37914
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
37729
37915
  __name: "RedirectionSuggestions",
37730
37916
  props: {
37731
37917
  options: {}
@@ -37748,7 +37934,7 @@ and ensure you are accounting for this risk.
37748
37934
  )
37749
37935
  );
37750
37936
  return (_ctx, _cache) => {
37751
- return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
37937
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
37752
37938
  createBaseVNode("h4", _hoisted_2$g, [
37753
37939
  createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
37754
37940
  ])
@@ -37756,11 +37942,11 @@ and ensure you are accounting for this risk.
37756
37942
  };
37757
37943
  }
37758
37944
  });
37759
- const _hoisted_1$k = {
37945
+ const _hoisted_1$l = {
37760
37946
  key: 0,
37761
37947
  class: "lupa-refiners-loading-notice"
37762
37948
  };
37763
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
37949
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
37764
37950
  __name: "RefinersLoadingNotice",
37765
37951
  props: {
37766
37952
  labels: {}
@@ -37771,14 +37957,14 @@ and ensure you are accounting for this risk.
37771
37957
  const props = __props;
37772
37958
  const label = computed(() => props.labels.refinersLoadingNotice);
37773
37959
  return (_ctx, _cache) => {
37774
- return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
37960
+ return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
37775
37961
  createBaseVNode("p", null, toDisplayString(label.value), 1),
37776
37962
  createVNode(Spinner)
37777
37963
  ])) : createCommentVNode("", true);
37778
37964
  };
37779
37965
  }
37780
37966
  });
37781
- const _hoisted_1$j = { class: "lupa-related-query-item" };
37967
+ const _hoisted_1$k = { class: "lupa-related-query-item" };
37782
37968
  const _hoisted_2$f = { class: "lupa-related-query-image" };
37783
37969
  const _hoisted_3$9 = { class: "lupa-related-query-label" };
37784
37970
  const _hoisted_4$6 = { class: "lupa-related-query-title" };
@@ -37786,7 +37972,7 @@ and ensure you are accounting for this risk.
37786
37972
  key: 0,
37787
37973
  class: "lupa-related-query-count"
37788
37974
  };
37789
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
37975
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
37790
37976
  __name: "RelatedQueryPanelApi",
37791
37977
  props: {
37792
37978
  relatedQuery: {},
@@ -37818,9 +38004,9 @@ and ensure you are accounting for this risk.
37818
38004
  });
37819
38005
  return (_ctx, _cache) => {
37820
38006
  var _a25;
37821
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
38007
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
37822
38008
  createBaseVNode("div", _hoisted_2$f, [
37823
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
38009
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
37824
38010
  key: 0,
37825
38011
  "wrapper-class": "lupa-related-query-image-wrapper",
37826
38012
  "image-class": "lupa-related-query-image",
@@ -37836,7 +38022,7 @@ and ensure you are accounting for this risk.
37836
38022
  };
37837
38023
  }
37838
38024
  });
37839
- const _hoisted_1$i = {
38025
+ const _hoisted_1$j = {
37840
38026
  key: 0,
37841
38027
  class: "lupa-related-queries"
37842
38028
  };
@@ -37845,7 +38031,7 @@ and ensure you are accounting for this risk.
37845
38031
  class: "lupa-related-queries-title"
37846
38032
  };
37847
38033
  const _hoisted_3$8 = ["onClick"];
37848
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
38034
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
37849
38035
  __name: "RelatedQueriesApi",
37850
38036
  props: {
37851
38037
  options: {}
@@ -37897,7 +38083,7 @@ and ensure you are accounting for this risk.
37897
38083
  };
37898
38084
  return (_ctx, _cache) => {
37899
38085
  var _a25, _b25, _c, _d;
37900
- return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
38086
+ return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
37901
38087
  ((_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$e, toDisplayString((_d = (_c = _ctx.options) == null ? void 0 : _c.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
37902
38088
  createBaseVNode("ul", null, [
37903
38089
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
@@ -37908,7 +38094,7 @@ and ensure you are accounting for this risk.
37908
38094
  createBaseVNode("a", {
37909
38095
  onClick: ($event) => handleRelatedQueryClick(query)
37910
38096
  }, [
37911
- createVNode(_sfc_main$l, {
38097
+ createVNode(_sfc_main$m, {
37912
38098
  relatedQuery: query,
37913
38099
  options: _ctx.options
37914
38100
  }, null, 8, ["relatedQuery", "options"])
@@ -37920,9 +38106,9 @@ and ensure you are accounting for this risk.
37920
38106
  };
37921
38107
  }
37922
38108
  });
37923
- const _hoisted_1$h = { key: 0 };
38109
+ const _hoisted_1$i = { key: 0 };
37924
38110
  const _hoisted_2$d = ["innerHTML"];
37925
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
38111
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
37926
38112
  __name: "ZeroResults",
37927
38113
  props: {
37928
38114
  emptyResultsLabel: {},
@@ -37951,7 +38137,7 @@ and ensure you are accounting for this risk.
37951
38137
  });
37952
38138
  return (_ctx, _cache) => {
37953
38139
  return openBlock(), createElementBlock(Fragment, null, [
37954
- showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
38140
+ showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
37955
38141
  createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
37956
38142
  createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
37957
38143
  ])) : createCommentVNode("", true),
@@ -37963,6 +38149,31 @@ and ensure you are accounting for this risk.
37963
38149
  };
37964
38150
  }
37965
38151
  });
38152
+ const _hoisted_1$h = {
38153
+ key: 1,
38154
+ class: "lupa-skeleton-grid"
38155
+ };
38156
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
38157
+ __name: "LoadingGrid",
38158
+ props: {
38159
+ style: {},
38160
+ enabled: { type: Boolean },
38161
+ loading: { type: Boolean },
38162
+ count: {}
38163
+ },
38164
+ setup(__props) {
38165
+ return (_ctx, _cache) => {
38166
+ return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
38167
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
38168
+ return openBlock(), createBlock(_sfc_main$1a, {
38169
+ key: n,
38170
+ style: normalizeStyle(_ctx.style)
38171
+ }, null, 8, ["style"]);
38172
+ }), 128))
38173
+ ]));
38174
+ };
38175
+ }
38176
+ });
37966
38177
  const _hoisted_1$g = { id: "lupa-search-results-products" };
37967
38178
  const _hoisted_2$c = {
37968
38179
  class: "lupa-products",
@@ -37974,12 +38185,12 @@ and ensure you are accounting for this risk.
37974
38185
  "data-cy": "lupa-no-results-in-page"
37975
38186
  };
37976
38187
  const _hoisted_4$5 = {
37977
- key: 5,
38188
+ key: 3,
37978
38189
  class: "lupa-empty-results",
37979
38190
  "data-cy": "lupa-no-results"
37980
38191
  };
37981
- const _hoisted_5$1 = { key: 6 };
37982
- const _hoisted_6 = { key: 7 };
38192
+ const _hoisted_5$1 = { key: 4 };
38193
+ const _hoisted_6 = { key: 5 };
37983
38194
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
37984
38195
  __name: "SearchResultsProducts",
37985
38196
  props: {
@@ -38003,6 +38214,7 @@ and ensure you are accounting for this risk.
38003
38214
  loading,
38004
38215
  relatedQueriesApiEnabled
38005
38216
  } = storeToRefs(searchResultStore);
38217
+ const { limit, skeletonEnabled, relatedQueriesSkeletonEnabled, loadingRelatedQueries } = useLoadingSkeleton();
38006
38218
  const emit2 = __emit;
38007
38219
  const productCardOptions = computed(() => {
38008
38220
  return pick(props.options, [
@@ -38059,12 +38271,12 @@ and ensure you are accounting for this risk.
38059
38271
  });
38060
38272
  const columnSize = computed(() => {
38061
38273
  if (props.ssr) {
38062
- return "";
38274
+ return {};
38063
38275
  }
38064
38276
  if (layout.value === ResultsLayoutEnum.LIST) {
38065
- return "width: 100%";
38277
+ return { width: "100%" };
38066
38278
  }
38067
- return `width: ${100 / columnCount.value}%`;
38279
+ return { width: `${100 / columnCount.value}%` };
38068
38280
  });
38069
38281
  const hasSimilarQueries = computed(() => {
38070
38282
  var _a25;
@@ -38100,40 +38312,50 @@ and ensure you are accounting for this risk.
38100
38312
  emit2("filter");
38101
38313
  };
38102
38314
  return (_ctx, _cache) => {
38103
- var _a25, _b25, _c;
38315
+ var _a25, _b25, _c, _d;
38104
38316
  return openBlock(), createElementBlock("div", _hoisted_1$g, [
38105
- unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
38317
+ !unref(skeletonEnabled) && unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
38106
38318
  key: 0,
38107
38319
  class: "lupa-loader"
38108
38320
  })) : createCommentVNode("", true),
38109
- createVNode(_sfc_main$n, {
38321
+ createVNode(_sfc_main$o, {
38110
38322
  options: _ctx.options.redirectionSuggestions
38111
38323
  }, null, 8, ["options"]),
38112
- createVNode(_sfc_main$s, {
38324
+ createVNode(_sfc_main$t, {
38113
38325
  options: _ctx.options,
38114
38326
  location: "top",
38115
- sdkOptions: _ctx.options.options
38116
- }, null, 8, ["options", "sdkOptions"]),
38117
- showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$o, {
38118
- key: 1,
38119
- options: _ctx.options.relatedQueries
38120
- }, null, 8, ["options"])) : createCommentVNode("", true),
38121
- showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$k, {
38122
- key: 2,
38123
- options: _ctx.options.relatedQueries
38124
- }, null, 8, ["options"])) : createCommentVNode("", true),
38125
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
38126
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
38327
+ "sdk-options": _ctx.options.options
38328
+ }, null, 8, ["options", "sdk-options"]),
38329
+ createVNode(_sfc_main$18, {
38330
+ enabled: unref(relatedQueriesSkeletonEnabled),
38331
+ loading: unref(loading) || unref(loadingRelatedQueries),
38332
+ count: 1,
38333
+ class: "lupa-skeleton-related-queries"
38334
+ }, {
38335
+ default: withCtx(() => [
38336
+ showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$p, {
38337
+ key: 0,
38338
+ options: _ctx.options.relatedQueries
38339
+ }, null, 8, ["options"])) : createCommentVNode("", true),
38340
+ showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
38341
+ key: 1,
38342
+ options: _ctx.options.relatedQueries
38343
+ }, null, 8, ["options"])) : createCommentVNode("", true)
38344
+ ]),
38345
+ _: 1
38346
+ }, 8, ["enabled", "loading"]),
38347
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
38348
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
38127
38349
  key: 0,
38128
38350
  options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
38129
38351
  }, null, 8, ["options"])) : createCommentVNode("", true),
38130
- createVNode(_sfc_main$H, {
38352
+ createVNode(_sfc_main$I, {
38131
38353
  class: "lupa-toolbar-mobile",
38132
38354
  options: _ctx.options,
38133
38355
  "pagination-location": "top",
38134
38356
  onFilter: filter
38135
38357
  }, null, 8, ["options"]),
38136
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$14, {
38358
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$15, {
38137
38359
  key: 1,
38138
38360
  class: normalizeClass(currentFiltersClass.value),
38139
38361
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -38141,13 +38363,13 @@ and ensure you are accounting for this risk.
38141
38363
  expandable: !desktopFiltersExpanded.value
38142
38364
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
38143
38365
  ], 64)) : createCommentVNode("", true),
38144
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
38145
- createVNode(_sfc_main$H, {
38366
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
38367
+ createVNode(_sfc_main$I, {
38146
38368
  class: "lupa-toolbar-top",
38147
38369
  options: _ctx.options,
38148
38370
  "pagination-location": "top"
38149
38371
  }, null, 8, ["options"]),
38150
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$14, {
38372
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$15, {
38151
38373
  key: 0,
38152
38374
  class: normalizeClass(currentFiltersClass.value),
38153
38375
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -38155,22 +38377,32 @@ and ensure you are accounting for this risk.
38155
38377
  expandable: !desktopFiltersExpanded.value
38156
38378
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
38157
38379
  createBaseVNode("div", _hoisted_2$c, [
38158
- _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
38159
- return renderSlot(_ctx.$slots, "productCard", {
38160
- style: normalizeStyle(columnSize.value),
38161
- key: getProductKeyAction(index, product),
38162
- product,
38163
- options: productCardOptions.value
38164
- });
38165
- }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
38166
- return openBlock(), createBlock(_sfc_main$v, {
38167
- style: normalizeStyle(columnSize.value),
38168
- key: getProductKeyAction(index, product),
38169
- product,
38170
- options: productCardOptions.value,
38171
- "analytics-metadata": clickMetadata.value
38172
- }, null, 8, ["style", "product", "options", "analytics-metadata"]);
38173
- }), 128))
38380
+ createVNode(_sfc_main$j, {
38381
+ enabled: unref(skeletonEnabled),
38382
+ loading: unref(loading),
38383
+ count: (_b25 = unref(limit)) != null ? _b25 : 12,
38384
+ style: normalizeStyle(columnSize.value)
38385
+ }, {
38386
+ default: withCtx(() => [
38387
+ _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
38388
+ return renderSlot(_ctx.$slots, "productCard", {
38389
+ key: getProductKeyAction(index, product),
38390
+ style: normalizeStyle(columnSize.value),
38391
+ product,
38392
+ options: productCardOptions.value
38393
+ });
38394
+ }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
38395
+ return openBlock(), createBlock(_sfc_main$w, {
38396
+ key: getProductKeyAction(index, product),
38397
+ style: normalizeStyle(columnSize.value),
38398
+ product,
38399
+ options: productCardOptions.value,
38400
+ "analytics-metadata": clickMetadata.value
38401
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
38402
+ }), 128))
38403
+ ]),
38404
+ _: 3
38405
+ }, 8, ["enabled", "loading", "count", "style"])
38174
38406
  ]),
38175
38407
  unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
38176
38408
  createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
@@ -38180,40 +38412,40 @@ and ensure you are accounting for this risk.
38180
38412
  onClick: goToFirstPage
38181
38413
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
38182
38414
  ])) : createCommentVNode("", true),
38183
- createVNode(_sfc_main$H, {
38415
+ createVNode(_sfc_main$I, {
38184
38416
  class: "lupa-toolbar-bottom",
38185
38417
  options: _ctx.options,
38186
38418
  "pagination-location": "bottom"
38187
38419
  }, null, 8, ["options"]),
38188
- createVNode(_sfc_main$s, {
38420
+ createVNode(_sfc_main$t, {
38189
38421
  options: _ctx.options,
38190
38422
  location: "bottom",
38191
- sdkOptions: _ctx.options.options
38192
- }, null, 8, ["options", "sdkOptions"])
38423
+ "sdk-options": _ctx.options.options
38424
+ }, null, 8, ["options", "sdk-options"])
38193
38425
  ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
38194
- createVNode(_sfc_main$j, {
38195
- emptyResultsLabel: (_b25 = _ctx.options.labels) == null ? void 0 : _b25.emptyResults,
38196
- currentQueryText: unref(currentQueryText),
38197
- hasSimilarQueries: hasSimilarQueries.value || hasSimilarResults.value,
38198
- zeroResults: (_c = _ctx.options) == null ? void 0 : _c.zeroResults
38199
- }, null, 8, ["emptyResultsLabel", "currentQueryText", "hasSimilarQueries", "zeroResults"])
38426
+ createVNode(_sfc_main$k, {
38427
+ "empty-results-label": (_c = _ctx.options.labels) == null ? void 0 : _c.emptyResults,
38428
+ "current-query-text": unref(currentQueryText),
38429
+ "has-similar-queries": hasSimilarQueries.value || hasSimilarResults.value,
38430
+ "zero-results": (_d = _ctx.options) == null ? void 0 : _d.zeroResults
38431
+ }, null, 8, ["empty-results-label", "current-query-text", "has-similar-queries", "zero-results"])
38200
38432
  ])) : createCommentVNode("", true),
38201
- createVNode(_sfc_main$m, {
38433
+ createVNode(_sfc_main$n, {
38202
38434
  labels: _ctx.options.labels
38203
38435
  }, null, 8, ["labels"]),
38204
38436
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
38205
- createVNode(_sfc_main$u, {
38437
+ createVNode(_sfc_main$v, {
38206
38438
  labels: similarQueriesLabels.value,
38207
- columnSize: columnSize.value,
38208
- productCardOptions: productCardOptions.value
38209
- }, null, 8, ["labels", "columnSize", "productCardOptions"])
38439
+ "column-size": columnSize.value,
38440
+ "product-card-options": productCardOptions.value
38441
+ }, null, 8, ["labels", "column-size", "product-card-options"])
38210
38442
  ])) : createCommentVNode("", true),
38211
38443
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
38212
- createVNode(_sfc_main$q, {
38444
+ createVNode(_sfc_main$r, {
38213
38445
  labels: similarResultsLabels.value,
38214
- columnSize: columnSize.value,
38215
- productCardOptions: productCardOptions.value
38216
- }, null, 8, ["labels", "columnSize", "productCardOptions"])
38446
+ "column-size": columnSize.value,
38447
+ "product-card-options": productCardOptions.value
38448
+ }, null, 8, ["labels", "column-size", "product-card-options"])
38217
38449
  ])) : createCommentVNode("", true),
38218
38450
  renderSlot(_ctx.$slots, "append")
38219
38451
  ]);
@@ -38288,7 +38520,7 @@ and ensure you are accounting for this risk.
38288
38520
  ])) : createCommentVNode("", true),
38289
38521
  hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
38290
38522
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
38291
- return openBlock(), createBlock(_sfc_main$13, {
38523
+ return openBlock(), createBlock(_sfc_main$14, {
38292
38524
  key: getCategoryKey(child),
38293
38525
  item: child,
38294
38526
  options: categoryOptions.value
@@ -38722,8 +38954,8 @@ and ensure you are accounting for this risk.
38722
38954
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
38723
38955
  }, [
38724
38956
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
38725
- createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38726
- createVNode(_sfc_main$16, {
38957
+ createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38958
+ createVNode(_sfc_main$17, {
38727
38959
  "show-summary": true,
38728
38960
  options: _ctx.options,
38729
38961
  "is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
@@ -38733,13 +38965,13 @@ and ensure you are accounting for this risk.
38733
38965
  key: 1,
38734
38966
  options: _ctx.options
38735
38967
  }, null, 8, ["options"])) : createCommentVNode("", true),
38736
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$R, {
38968
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$S, {
38737
38969
  key: 2,
38738
38970
  options: _ctx.options.filters,
38739
38971
  onFilter: handleParamsChange
38740
38972
  }, null, 8, ["options"])) : createCommentVNode("", true),
38741
38973
  _ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
38742
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$Q, {
38974
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$R, {
38743
38975
  key: 4,
38744
38976
  breadcrumbs: _ctx.options.breadcrumbs
38745
38977
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
@@ -38748,7 +38980,7 @@ and ensure you are accounting for this risk.
38748
38980
  id: "lupa-search-results",
38749
38981
  class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
38750
38982
  }, [
38751
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
38983
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
38752
38984
  key: 0,
38753
38985
  options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
38754
38986
  ref_key: "searchResultsFilters",
@@ -38756,8 +38988,8 @@ and ensure you are accounting for this risk.
38756
38988
  onFilter: handleParamsChange
38757
38989
  }, null, 8, ["options"])) : createCommentVNode("", true),
38758
38990
  createBaseVNode("div", _hoisted_2$8, [
38759
- createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38760
- createVNode(_sfc_main$16, {
38991
+ createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38992
+ createVNode(_sfc_main$17, {
38761
38993
  options: _ctx.options,
38762
38994
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
38763
38995
  }, null, 8, ["options", "is-product-list"]),
@@ -38773,8 +39005,8 @@ and ensure you are accounting for this risk.
38773
39005
  }, 8, ["options", "ssr"])
38774
39006
  ])
38775
39007
  ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
38776
- createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38777
- createVNode(_sfc_main$16, {
39008
+ createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
39009
+ createVNode(_sfc_main$17, {
38778
39010
  options: _ctx.options,
38779
39011
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
38780
39012
  }, null, 8, ["options", "is-product-list"]),
@@ -38782,7 +39014,7 @@ and ensure you are accounting for this risk.
38782
39014
  id: "lupa-search-results",
38783
39015
  class: normalizeClass(indicatorClasses.value)
38784
39016
  }, [
38785
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
39017
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
38786
39018
  key: 0,
38787
39019
  options: (_e = _ctx.options.filters) != null ? _e : {},
38788
39020
  ref_key: "searchResultsFilters",
@@ -38933,7 +39165,7 @@ and ensure you are accounting for this risk.
38933
39165
  onClick: withModifiers(innerClick, ["stop"])
38934
39166
  }, [
38935
39167
  createBaseVNode("div", _hoisted_1$a, [
38936
- createVNode(_sfc_main$19, {
39168
+ createVNode(_sfc_main$1d, {
38937
39169
  options: fullSearchBoxOptions.value,
38938
39170
  "is-search-container": true,
38939
39171
  ref_key: "searchBox",
@@ -40521,7 +40753,7 @@ and ensure you are accounting for this risk.
40521
40753
  key: getProductKeyAction(index, product)
40522
40754
  }, {
40523
40755
  default: withCtx(() => [
40524
- createVNode(_sfc_main$v, {
40756
+ createVNode(_sfc_main$w, {
40525
40757
  product,
40526
40758
  options: _ctx.options,
40527
40759
  "click-tracking-settings": clickTrackingSettings.value,
@@ -40536,7 +40768,7 @@ and ensure you are accounting for this risk.
40536
40768
  _: 1
40537
40769
  }, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
40538
40770
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
40539
- return openBlock(), createBlock(_sfc_main$v, {
40771
+ return openBlock(), createBlock(_sfc_main$w, {
40540
40772
  style: normalizeStyle(columnSize.value),
40541
40773
  key: getProductKeyAction(index, product),
40542
40774
  product,
@@ -40782,7 +41014,7 @@ and ensure you are accounting for this risk.
40782
41014
  createBaseVNode("a", {
40783
41015
  href: getLink(product)
40784
41016
  }, [
40785
- createVNode(_sfc_main$G, {
41017
+ createVNode(_sfc_main$H, {
40786
41018
  item: product,
40787
41019
  options: image.value
40788
41020
  }, null, 8, ["item", "options"])
@@ -40947,7 +41179,7 @@ and ensure you are accounting for this risk.
40947
41179
  return (_ctx, _cache) => {
40948
41180
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
40949
41181
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
40950
- return openBlock(), createBlock(_sfc_main$v, {
41182
+ return openBlock(), createBlock(_sfc_main$w, {
40951
41183
  class: "lupa-chat-product-card",
40952
41184
  key: getProductKeyAction(index, product),
40953
41185
  product,
@@ -41143,7 +41375,7 @@ and ensure you are accounting for this risk.
41143
41375
  key: 0,
41144
41376
  class: "lupasearch-chat-content"
41145
41377
  };
41146
- const _sfc_main$1H = /* @__PURE__ */ defineComponent({
41378
+ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
41147
41379
  __name: "ChatContainer",
41148
41380
  props: {
41149
41381
  options: {}
@@ -47167,7 +47399,7 @@ and ensure you are accounting for this risk.
47167
47399
  };
47168
47400
  __expose({ fetch: fetch2 });
47169
47401
  return (_ctx, _cache) => {
47170
- return openBlock(), createBlock(unref(_sfc_main$19), {
47402
+ return openBlock(), createBlock(unref(_sfc_main$1d), {
47171
47403
  ref_key: "searchBox",
47172
47404
  ref: searchBox2,
47173
47405
  options: fullSearchBoxOptions.value
@@ -47828,7 +48060,7 @@ and ensure you are accounting for this risk.
47828
48060
  const instance = createVue(
47829
48061
  options.displayOptions.containerSelector,
47830
48062
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
47831
- _sfc_main$1H,
48063
+ _sfc_main$1L,
47832
48064
  {
47833
48065
  options
47834
48066
  }