@getlupa/client 1.24.2 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18859,17 +18859,27 @@ var __async = (__this, __arguments, generator) => {
18859
18859
  const isObject$1 = (value) => {
18860
18860
  return value !== null && typeof value === "object" && !Array.isArray(value);
18861
18861
  };
18862
- const parseParam = (key, params) => {
18863
- const value = params.get(key);
18862
+ const decodeParam = (value) => {
18864
18863
  if (!value) {
18865
18864
  return void 0;
18866
18865
  }
18866
+ try {
18867
+ if (!/%[0-9A-Fa-f]{2}/.test(value)) {
18868
+ return value;
18869
+ }
18870
+ } catch (e2) {
18871
+ return value;
18872
+ }
18867
18873
  try {
18868
18874
  return decodeURIComponent(value);
18869
18875
  } catch (e2) {
18870
- return void 0;
18876
+ return value;
18871
18877
  }
18872
18878
  };
18879
+ const parseParam = (key, params) => {
18880
+ const value = params.get(key);
18881
+ return decodeParam(value != null ? value : void 0);
18882
+ };
18873
18883
  const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
18874
18884
  const params = /* @__PURE__ */ Object.create({});
18875
18885
  const keys = reverseKeyValue({
@@ -18887,7 +18897,7 @@ var __async = (__this, __arguments, generator) => {
18887
18897
  const parseFacetKey = (key, searchParams) => {
18888
18898
  var _a25, _b25, _c, _d;
18889
18899
  if (key.startsWith(FACET_PARAMS_TYPE.TERMS)) {
18890
- return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeURIComponent(v))) != null ? _b25 : [];
18900
+ return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeParam(v))) != null ? _b25 : [];
18891
18901
  }
18892
18902
  if (key.startsWith(FACET_PARAMS_TYPE.RANGE) || key.startsWith(FACET_PARAMS_TYPE.PARTIAL_RANGE)) {
18893
18903
  const range2 = searchParams.get(key);
@@ -18903,7 +18913,7 @@ var __async = (__this, __arguments, generator) => {
18903
18913
  if (key.startsWith(FACET_PARAMS_TYPE.HIERARCHY)) {
18904
18914
  return {
18905
18915
  level: 0,
18906
- terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeURIComponent(v))) != null ? _d : []
18916
+ terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeParam(v))) != null ? _d : []
18907
18917
  };
18908
18918
  }
18909
18919
  return [];
@@ -18930,15 +18940,15 @@ var __async = (__this, __arguments, generator) => {
18930
18940
  }, parseRegularKeys(regularKeys, searchParams, getQueryParamName)), parseFacetKeys(facetKeys, searchParams));
18931
18941
  return r;
18932
18942
  };
18933
- const appendParam = (url, { name, value }, encode2 = true) => {
18943
+ const appendParam = (url, { name, value }) => {
18934
18944
  if (Array.isArray(value)) {
18935
18945
  appendArrayParams(url, { name, value });
18936
18946
  } else {
18937
- appendSingleParam(url, { name, value }, encode2);
18947
+ appendSingleParam(url, { name, value });
18938
18948
  }
18939
18949
  };
18940
- const appendSingleParam = (url, param, encode2 = true) => {
18941
- const valueToAppend = encode2 ? encodeParam(param.value) : param.value;
18950
+ const appendSingleParam = (url, param) => {
18951
+ const valueToAppend = param.value;
18942
18952
  if (url.searchParams.has(param.name)) {
18943
18953
  url.searchParams.set(param.name, valueToAppend);
18944
18954
  } else {
@@ -18947,7 +18957,7 @@ var __async = (__this, __arguments, generator) => {
18947
18957
  };
18948
18958
  const appendArrayParams = (url, param) => {
18949
18959
  url.searchParams.delete(param.name);
18950
- param.value.forEach((v) => url.searchParams.append(param.name, encodeParam(v)));
18960
+ param.value.forEach((v) => url.searchParams.append(param.name, v));
18951
18961
  };
18952
18962
  const getRemovableParams = (url, getQueryParamName, paramsToRemove) => {
18953
18963
  if (paramsToRemove === "all") {
@@ -19307,13 +19317,12 @@ var __async = (__this, __arguments, generator) => {
19307
19317
  const getPageUrlWithNewParams = ({
19308
19318
  params: newParams,
19309
19319
  paramsToRemove,
19310
- encode: encode2 = true,
19311
19320
  searchResultsLink: searchResultsLink2
19312
19321
  }) => {
19313
19322
  const url = getPageUrl(searchResultsLink2);
19314
19323
  paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
19315
19324
  removeParams(url, paramsToRemove);
19316
- newParams.forEach((p2) => appendParam(url, p2, encode2));
19325
+ newParams.forEach((p2) => appendParam(url, p2));
19317
19326
  return url.search;
19318
19327
  };
19319
19328
  const removeParameters = ({
@@ -19395,7 +19404,7 @@ var __async = (__this, __arguments, generator) => {
19395
19404
  const routing = (_b25 = optionsStore.boxRoutingBehavior) != null ? _b25 : "direct-link";
19396
19405
  redirectToResultsPage(
19397
19406
  searchResultsLink.value,
19398
- encodeParam(searchText),
19407
+ searchText,
19399
19408
  optionsStore.getQueryParamName,
19400
19409
  facet,
19401
19410
  routing
@@ -19405,7 +19414,6 @@ var __async = (__this, __arguments, generator) => {
19405
19414
  const appendParams = ({
19406
19415
  params: newParams,
19407
19416
  paramsToRemove,
19408
- encode: encode2 = true,
19409
19417
  save = true,
19410
19418
  searchResultsLink: searchResultsLink2
19411
19419
  }) => {
@@ -19415,7 +19423,7 @@ var __async = (__this, __arguments, generator) => {
19415
19423
  const url = getPageUrl(searchResultsLink2);
19416
19424
  paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
19417
19425
  removeParams(url, paramsToRemove);
19418
- newParams.forEach((p2) => appendParam(url, p2, encode2));
19426
+ newParams.forEach((p2) => appendParam(url, p2));
19419
19427
  navigate(url);
19420
19428
  if (!save) {
19421
19429
  return;
@@ -19712,7 +19720,7 @@ var __async = (__this, __arguments, generator) => {
19712
19720
  }
19713
19721
  return Env[environment] || Env["production"];
19714
19722
  };
19715
- const _sfc_main$1G = /* @__PURE__ */ defineComponent({
19723
+ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
19716
19724
  __name: "VoiceSearchProgressCircle",
19717
19725
  props: {
19718
19726
  isRecording: { type: Boolean },
@@ -19925,15 +19933,15 @@ var __async = (__this, __arguments, generator) => {
19925
19933
  closeSocket
19926
19934
  };
19927
19935
  }
19928
- const _hoisted_1$1o = {
19936
+ const _hoisted_1$1q = {
19929
19937
  key: 0,
19930
19938
  class: "lupa-dialog-overlay"
19931
19939
  };
19932
- const _hoisted_2$Z = { class: "lupa-dialog-content" };
19940
+ const _hoisted_2$_ = { class: "lupa-dialog-content" };
19933
19941
  const _hoisted_3$G = { class: "lupa-listening-text" };
19934
19942
  const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
19935
19943
  const _hoisted_5$l = ["aria-label"];
19936
- const _sfc_main$1F = /* @__PURE__ */ defineComponent({
19944
+ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
19937
19945
  __name: "VoiceSearchDialog",
19938
19946
  props: {
19939
19947
  isOpen: { type: Boolean },
@@ -20038,12 +20046,12 @@ var __async = (__this, __arguments, generator) => {
20038
20046
  return (_ctx, _cache) => {
20039
20047
  var _a25, _b25;
20040
20048
  return openBlock(), createElementBlock("div", null, [
20041
- props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1o, [
20049
+ props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1q, [
20042
20050
  createBaseVNode("button", {
20043
20051
  class: "lupa-dialog-box-close-button",
20044
20052
  onClick: _cache[0] || (_cache[0] = () => emit2("close"))
20045
20053
  }),
20046
- createBaseVNode("div", _hoisted_2$Z, [
20054
+ createBaseVNode("div", _hoisted_2$_, [
20047
20055
  createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
20048
20056
  createBaseVNode("div", _hoisted_4$v, [
20049
20057
  createBaseVNode("button", {
@@ -20052,7 +20060,7 @@ var __async = (__this, __arguments, generator) => {
20052
20060
  "aria-controls": "voice-search-microphone",
20053
20061
  "aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
20054
20062
  }, null, 10, _hoisted_5$l),
20055
- createVNode(_sfc_main$1G, {
20063
+ createVNode(_sfc_main$1K, {
20056
20064
  ref_key: "voiceSearchProgressBar",
20057
20065
  ref: voiceSearchProgressBar,
20058
20066
  class: "lupa-progress-circle",
@@ -20067,8 +20075,8 @@ var __async = (__this, __arguments, generator) => {
20067
20075
  };
20068
20076
  }
20069
20077
  });
20070
- const _hoisted_1$1n = { id: "lupa-search-box-input-container" };
20071
- const _hoisted_2$Y = { id: "lupa-search-box-input" };
20078
+ const _hoisted_1$1p = { id: "lupa-search-box-input-container" };
20079
+ const _hoisted_2$Z = { id: "lupa-search-box-input" };
20072
20080
  const _hoisted_3$F = ["value"];
20073
20081
  const _hoisted_4$u = ["aria-label", "placeholder"];
20074
20082
  const _hoisted_5$k = {
@@ -20077,7 +20085,7 @@ var __async = (__this, __arguments, generator) => {
20077
20085
  };
20078
20086
  const _hoisted_6$7 = { key: 2 };
20079
20087
  const _hoisted_7$5 = ["aria-label"];
20080
- const _sfc_main$1E = /* @__PURE__ */ defineComponent({
20088
+ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
20081
20089
  __name: "SearchBoxInput",
20082
20090
  props: {
20083
20091
  options: {},
@@ -20213,7 +20221,7 @@ var __async = (__this, __arguments, generator) => {
20213
20221
  };
20214
20222
  __expose({ focus });
20215
20223
  return (_ctx, _cache) => {
20216
- return openBlock(), createElementBlock("div", _hoisted_1$1n, [
20224
+ return openBlock(), createElementBlock("div", _hoisted_1$1p, [
20217
20225
  _ctx.options.showClearButton && !isClearButtonAtEndOfInput.value ? (openBlock(), createElementBlock("div", {
20218
20226
  key: 0,
20219
20227
  class: normalizeClass(["lupa-input-clear", [
@@ -20222,7 +20230,7 @@ var __async = (__this, __arguments, generator) => {
20222
20230
  ]]),
20223
20231
  onClick: clear
20224
20232
  }, null, 2)) : createCommentVNode("", true),
20225
- createBaseVNode("div", _hoisted_2$Y, [
20233
+ createBaseVNode("div", _hoisted_2$Z, [
20226
20234
  createBaseVNode("input", {
20227
20235
  class: "lupa-hint",
20228
20236
  "aria-hidden": "true",
@@ -20276,7 +20284,7 @@ var __async = (__this, __arguments, generator) => {
20276
20284
  "aria-label": voiceSearchAriaLabel.value
20277
20285
  }, null, 8, _hoisted_7$5)
20278
20286
  ])) : createCommentVNode("", true),
20279
- isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1F, {
20287
+ isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1J, {
20280
20288
  key: 3,
20281
20289
  ref_key: "voiceDialogOverlay",
20282
20290
  ref: voiceDialogOverlay,
@@ -20290,7 +20298,7 @@ var __async = (__this, __arguments, generator) => {
20290
20298
  };
20291
20299
  }
20292
20300
  });
20293
- const _sfc_main$1D = /* @__PURE__ */ defineComponent({
20301
+ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
20294
20302
  __name: "SearchBoxMoreResults",
20295
20303
  props: {
20296
20304
  labels: {},
@@ -20328,9 +20336,9 @@ var __async = (__this, __arguments, generator) => {
20328
20336
  };
20329
20337
  }
20330
20338
  });
20331
- const _hoisted_1$1m = { class: "lupa-search-box-history-item" };
20332
- const _hoisted_2$X = { class: "lupa-search-box-history-item-content" };
20333
- const _sfc_main$1C = /* @__PURE__ */ defineComponent({
20339
+ const _hoisted_1$1o = { class: "lupa-search-box-history-item" };
20340
+ const _hoisted_2$Y = { class: "lupa-search-box-history-item-content" };
20341
+ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
20334
20342
  __name: "SearchBoxHistoryItem",
20335
20343
  props: {
20336
20344
  item: {},
@@ -20347,8 +20355,8 @@ var __async = (__this, __arguments, generator) => {
20347
20355
  emit2("click", { query: props.item });
20348
20356
  };
20349
20357
  return (_ctx, _cache) => {
20350
- return openBlock(), createElementBlock("div", _hoisted_1$1m, [
20351
- createBaseVNode("div", _hoisted_2$X, [
20358
+ return openBlock(), createElementBlock("div", _hoisted_1$1o, [
20359
+ createBaseVNode("div", _hoisted_2$Y, [
20352
20360
  createBaseVNode("div", {
20353
20361
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
20354
20362
  onClick: click2
@@ -20362,11 +20370,11 @@ var __async = (__this, __arguments, generator) => {
20362
20370
  };
20363
20371
  }
20364
20372
  });
20365
- const _hoisted_1$1l = {
20373
+ const _hoisted_1$1n = {
20366
20374
  key: 0,
20367
20375
  class: "lupa-search-box-history-panel"
20368
20376
  };
20369
- const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20377
+ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
20370
20378
  __name: "SearchBoxHistoryPanel",
20371
20379
  props: {
20372
20380
  options: {}
@@ -20417,9 +20425,9 @@ var __async = (__this, __arguments, generator) => {
20417
20425
  }
20418
20426
  };
20419
20427
  return (_ctx, _cache) => {
20420
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1l, [
20428
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1n, [
20421
20429
  (openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
20422
- return openBlock(), createBlock(_sfc_main$1C, {
20430
+ return openBlock(), createBlock(_sfc_main$1G, {
20423
20431
  key: item,
20424
20432
  item,
20425
20433
  highlighted: index === highlightIndex.value,
@@ -20435,12 +20443,12 @@ var __async = (__this, __arguments, generator) => {
20435
20443
  };
20436
20444
  }
20437
20445
  });
20438
- const _hoisted_1$1k = ["innerHTML"];
20439
- const _hoisted_2$W = {
20446
+ const _hoisted_1$1m = ["innerHTML"];
20447
+ const _hoisted_2$X = {
20440
20448
  key: 1,
20441
20449
  class: "lupa-search-box-no-results"
20442
20450
  };
20443
- const _sfc_main$1A = /* @__PURE__ */ defineComponent({
20451
+ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
20444
20452
  __name: "SearchBoxNoResults",
20445
20453
  props: {
20446
20454
  options: {}
@@ -20459,7 +20467,7 @@ var __async = (__this, __arguments, generator) => {
20459
20467
  key: 0,
20460
20468
  class: "lupa-search-box-no-results",
20461
20469
  innerHTML: customHtml.value
20462
- }, null, 8, _hoisted_1$1k)) : (openBlock(), createElementBlock("p", _hoisted_2$W, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
20470
+ }, null, 8, _hoisted_1$1m)) : (openBlock(), createElementBlock("p", _hoisted_2$X, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
20463
20471
  };
20464
20472
  }
20465
20473
  });
@@ -20491,8 +20499,8 @@ var __async = (__this, __arguments, generator) => {
20491
20499
  }
20492
20500
  return gridTemplate.join(" ");
20493
20501
  };
20494
- const _hoisted_1$1j = ["innerHTML"];
20495
- const _hoisted_2$V = {
20502
+ const _hoisted_1$1l = ["innerHTML"];
20503
+ const _hoisted_2$W = {
20496
20504
  key: 1,
20497
20505
  "data-cy": "lupa-suggestion-value",
20498
20506
  class: "lupa-suggestion-value"
@@ -20510,7 +20518,7 @@ var __async = (__this, __arguments, generator) => {
20510
20518
  class: "lupa-suggestion-facet-value",
20511
20519
  "data-cy": "lupa-suggestion-facet-value"
20512
20520
  };
20513
- const _sfc_main$1z = /* @__PURE__ */ defineComponent({
20521
+ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
20514
20522
  __name: "SearchBoxSuggestion",
20515
20523
  props: {
20516
20524
  suggestion: {},
@@ -20547,7 +20555,7 @@ var __async = (__this, __arguments, generator) => {
20547
20555
  class: "lupa-suggestion-value",
20548
20556
  "data-cy": "lupa-suggestion-value",
20549
20557
  innerHTML: _ctx.suggestion.displayHighlight
20550
- }, null, 8, _hoisted_1$1j)) : (openBlock(), createElementBlock("div", _hoisted_2$V, toDisplayString(_ctx.suggestion.display), 1)),
20558
+ }, null, 8, _hoisted_1$1l)) : (openBlock(), createElementBlock("div", _hoisted_2$W, toDisplayString(_ctx.suggestion.display), 1)),
20551
20559
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
20552
20560
  createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
20553
20561
  createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -20556,11 +20564,11 @@ var __async = (__this, __arguments, generator) => {
20556
20564
  };
20557
20565
  }
20558
20566
  });
20559
- const _hoisted_1$1i = {
20567
+ const _hoisted_1$1k = {
20560
20568
  id: "lupa-search-box-suggestions",
20561
20569
  "data-cy": "lupa-search-box-suggestions"
20562
20570
  };
20563
- const _sfc_main$1y = /* @__PURE__ */ defineComponent({
20571
+ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
20564
20572
  __name: "SearchBoxSuggestions",
20565
20573
  props: {
20566
20574
  items: {},
@@ -20627,9 +20635,9 @@ var __async = (__this, __arguments, generator) => {
20627
20635
  });
20628
20636
  });
20629
20637
  return (_ctx, _cache) => {
20630
- return openBlock(), createElementBlock("div", _hoisted_1$1i, [
20638
+ return openBlock(), createElementBlock("div", _hoisted_1$1k, [
20631
20639
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
20632
- return openBlock(), createBlock(_sfc_main$1z, {
20640
+ return openBlock(), createBlock(_sfc_main$1D, {
20633
20641
  key: getSuggestionKey(item),
20634
20642
  class: normalizeClass([
20635
20643
  "lupa-suggestion",
@@ -20661,7 +20669,7 @@ var __async = (__this, __arguments, generator) => {
20661
20669
  }, timeout);
20662
20670
  };
20663
20671
  };
20664
- const _sfc_main$1x = /* @__PURE__ */ defineComponent({
20672
+ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20665
20673
  __name: "SearchBoxSuggestionsWrapper",
20666
20674
  props: {
20667
20675
  panel: {},
@@ -20704,7 +20712,7 @@ var __async = (__this, __arguments, generator) => {
20704
20712
  const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
20705
20713
  watch(() => props.panel.limit, getSuggestionsDebounced);
20706
20714
  return (_ctx, _cache) => {
20707
- return openBlock(), createBlock(_sfc_main$1y, {
20715
+ return openBlock(), createBlock(_sfc_main$1C, {
20708
20716
  items: searchResult.value,
20709
20717
  highlight: _ctx.panel.highlight,
20710
20718
  queryKey: _ctx.panel.queryKey,
@@ -29904,11 +29912,14 @@ and ensure you are accounting for this risk.
29904
29912
  }
29905
29913
  return parsedAttributes;
29906
29914
  };
29907
- const getFieldValue = (doc2, field = "") => {
29915
+ const getFieldValue = (doc2, field = "", matchLiteral) => {
29908
29916
  var _a25;
29909
29917
  if (typeof field === "number") {
29910
29918
  return +field;
29911
29919
  }
29920
+ if (matchLiteral) {
29921
+ return field;
29922
+ }
29912
29923
  const value = (_a25 = field == null ? void 0 : field.split(".")) == null ? void 0 : _a25.reduce((obj, key) => obj ? obj[key] : void 0, doc2);
29913
29924
  if (+value) {
29914
29925
  return +value;
@@ -29932,32 +29943,32 @@ and ensure you are accounting for this risk.
29932
29943
  case "equals": {
29933
29944
  if (fields.length < 2) return false;
29934
29945
  const [field1, field2] = fields;
29935
- return getFieldValue(doc2, field1) === getFieldValue(doc2, field2);
29946
+ return getFieldValue(doc2, field1) === getFieldValue(doc2, field2, displayCondition.matchLiteral);
29936
29947
  }
29937
29948
  case "notEquals": {
29938
29949
  if (fields.length < 2) return false;
29939
29950
  const [field1, field2] = fields;
29940
- return getFieldValue(doc2, field1) !== getFieldValue(doc2, field2);
29951
+ return getFieldValue(doc2, field1) !== getFieldValue(doc2, field2, displayCondition.matchLiteral);
29941
29952
  }
29942
29953
  case "greaterThan": {
29943
29954
  if (fields.length < 2) return false;
29944
29955
  const [field1, field2] = fields;
29945
- return getFieldValue(doc2, field1) > getFieldValue(doc2, field2);
29956
+ return getFieldValue(doc2, field1) > getFieldValue(doc2, field2, displayCondition.matchLiteral);
29946
29957
  }
29947
29958
  case "lessThan": {
29948
29959
  if (fields.length < 2) return false;
29949
29960
  const [field1, field2] = fields;
29950
- return getFieldValue(doc2, field1) < getFieldValue(doc2, field2);
29961
+ return getFieldValue(doc2, field1) < getFieldValue(doc2, field2, displayCondition.matchLiteral);
29951
29962
  }
29952
29963
  case "greaterThanOrEquals": {
29953
29964
  if (fields.length < 2) return false;
29954
29965
  const [field1, field2] = fields;
29955
- return getFieldValue(doc2, field1) >= getFieldValue(doc2, field2);
29966
+ return getFieldValue(doc2, field1) >= getFieldValue(doc2, field2, displayCondition.matchLiteral);
29956
29967
  }
29957
29968
  case "lessThanOrEquals": {
29958
29969
  if (fields.length < 2) return false;
29959
29970
  const [field1, field2] = fields;
29960
- return getFieldValue(doc2, field1) <= getFieldValue(doc2, field2);
29971
+ return getFieldValue(doc2, field1) <= getFieldValue(doc2, field2, displayCondition.matchLiteral);
29961
29972
  }
29962
29973
  default:
29963
29974
  return false;
@@ -29986,9 +29997,9 @@ and ensure you are accounting for this risk.
29986
29997
  targetImage.src = placeholder;
29987
29998
  }
29988
29999
  };
29989
- const _hoisted_1$1h = ["src"];
29990
- const _hoisted_2$U = ["src"];
29991
- const _sfc_main$1w = /* @__PURE__ */ defineComponent({
30000
+ const _hoisted_1$1j = ["src"];
30001
+ const _hoisted_2$V = ["src"];
30002
+ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
29992
30003
  __name: "ProductImage",
29993
30004
  props: {
29994
30005
  item: {},
@@ -30130,7 +30141,7 @@ and ensure you are accounting for this risk.
30130
30141
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
30131
30142
  onError: replaceWithPlaceholder,
30132
30143
  key: finalUrl.value
30133
- }), null, 16, _hoisted_1$1h))
30144
+ }), null, 16, _hoisted_1$1j))
30134
30145
  ]),
30135
30146
  _: 1
30136
30147
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -30138,12 +30149,12 @@ and ensure you are accounting for this risk.
30138
30149
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
30139
30150
  style: styleOverride.value,
30140
30151
  src: finalMainImageUrl.value
30141
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$U))
30152
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$V))
30142
30153
  ], 38);
30143
30154
  };
30144
30155
  }
30145
30156
  });
30146
- const _sfc_main$1v = /* @__PURE__ */ defineComponent({
30157
+ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
30147
30158
  __name: "SearchBoxProductImage",
30148
30159
  props: {
30149
30160
  item: {},
@@ -30151,7 +30162,7 @@ and ensure you are accounting for this risk.
30151
30162
  },
30152
30163
  setup(__props) {
30153
30164
  return (_ctx, _cache) => {
30154
- return openBlock(), createBlock(_sfc_main$1w, {
30165
+ return openBlock(), createBlock(_sfc_main$1A, {
30155
30166
  item: _ctx.item,
30156
30167
  options: _ctx.options,
30157
30168
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -30160,12 +30171,12 @@ and ensure you are accounting for this risk.
30160
30171
  };
30161
30172
  }
30162
30173
  });
30163
- const _hoisted_1$1g = ["innerHTML"];
30164
- const _hoisted_2$T = {
30174
+ const _hoisted_1$1i = ["innerHTML"];
30175
+ const _hoisted_2$U = {
30165
30176
  key: 1,
30166
30177
  class: "lupa-search-box-product-title"
30167
30178
  };
30168
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
30179
+ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
30169
30180
  __name: "SearchBoxProductTitle",
30170
30181
  props: {
30171
30182
  item: {},
@@ -30188,18 +30199,18 @@ and ensure you are accounting for this risk.
30188
30199
  key: 0,
30189
30200
  class: "lupa-search-box-product-title",
30190
30201
  innerHTML: sanitizedTitle.value
30191
- }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, [
30202
+ }, null, 8, _hoisted_1$1i)) : (openBlock(), createElementBlock("div", _hoisted_2$U, [
30192
30203
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
30193
30204
  ]));
30194
30205
  };
30195
30206
  }
30196
30207
  });
30197
- const _hoisted_1$1f = ["innerHTML"];
30198
- const _hoisted_2$S = {
30208
+ const _hoisted_1$1h = ["innerHTML"];
30209
+ const _hoisted_2$T = {
30199
30210
  key: 1,
30200
30211
  class: "lupa-search-box-product-description"
30201
30212
  };
30202
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
30213
+ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
30203
30214
  __name: "SearchBoxProductDescription",
30204
30215
  props: {
30205
30216
  item: {},
@@ -30222,12 +30233,12 @@ and ensure you are accounting for this risk.
30222
30233
  key: 0,
30223
30234
  class: "lupa-search-box-product-description",
30224
30235
  innerHTML: sanitizedDescription.value
30225
- }, null, 8, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(description.value), 1));
30236
+ }, null, 8, _hoisted_1$1h)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(description.value), 1));
30226
30237
  };
30227
30238
  }
30228
30239
  });
30229
- const _hoisted_1$1e = { class: "lupa-search-box-product-price" };
30230
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
30240
+ const _hoisted_1$1g = { class: "lupa-search-box-product-price" };
30241
+ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
30231
30242
  __name: "SearchBoxProductPrice",
30232
30243
  props: {
30233
30244
  item: {},
@@ -30249,13 +30260,13 @@ and ensure you are accounting for this risk.
30249
30260
  );
30250
30261
  });
30251
30262
  return (_ctx, _cache) => {
30252
- return openBlock(), createElementBlock("div", _hoisted_1$1e, [
30263
+ return openBlock(), createElementBlock("div", _hoisted_1$1g, [
30253
30264
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
30254
30265
  ]);
30255
30266
  };
30256
30267
  }
30257
30268
  });
30258
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
30269
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
30259
30270
  __name: "SearchBoxProductRegularPrice",
30260
30271
  props: {
30261
30272
  item: {},
@@ -30286,12 +30297,12 @@ and ensure you are accounting for this risk.
30286
30297
  };
30287
30298
  }
30288
30299
  });
30289
- const _hoisted_1$1d = ["innerHTML"];
30290
- const _hoisted_2$R = { key: 0 };
30300
+ const _hoisted_1$1f = ["innerHTML"];
30301
+ const _hoisted_2$S = { key: 0 };
30291
30302
  const _hoisted_3$D = { key: 1 };
30292
30303
  const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
30293
30304
  const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
30294
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
30305
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
30295
30306
  __name: "SearchBoxProductCustom",
30296
30307
  props: {
30297
30308
  item: {},
@@ -30317,11 +30328,11 @@ and ensure you are accounting for this risk.
30317
30328
  key: 0,
30318
30329
  class: [className.value, "lupa-search-box-product-custom"],
30319
30330
  innerHTML: text.value
30320
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", mergeProps({
30331
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", mergeProps({
30321
30332
  key: 1,
30322
30333
  class: [className.value, "lupa-search-box-product-custom"]
30323
30334
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
30324
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
30335
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
30325
30336
  createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
30326
30337
  createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
30327
30338
  ]))
@@ -30329,8 +30340,8 @@ and ensure you are accounting for this risk.
30329
30340
  };
30330
30341
  }
30331
30342
  });
30332
- const _hoisted_1$1c = ["innerHTML"];
30333
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
30343
+ const _hoisted_1$1e = ["innerHTML"];
30344
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
30334
30345
  __name: "SearchBoxProductCustomHtml",
30335
30346
  props: {
30336
30347
  item: {},
@@ -30355,7 +30366,7 @@ and ensure you are accounting for this risk.
30355
30366
  return openBlock(), createElementBlock("div", mergeProps({
30356
30367
  class: className.value,
30357
30368
  innerHTML: text.value
30358
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1c);
30369
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1e);
30359
30370
  };
30360
30371
  }
30361
30372
  });
@@ -30694,6 +30705,7 @@ and ensure you are accounting for this risk.
30694
30705
  relatedQueriesApiEnabled,
30695
30706
  lastResultsSource,
30696
30707
  relatedQueryFacetKeys,
30708
+ loadingRelatedQueries,
30697
30709
  setSidebarState,
30698
30710
  queryFacet,
30699
30711
  setLastRequestId,
@@ -30710,12 +30722,12 @@ and ensure you are accounting for this risk.
30710
30722
  setRelatedQueriesApiEnabled
30711
30723
  };
30712
30724
  });
30713
- const _hoisted_1$1b = { class: "lupa-search-box-add-to-cart-wrapper" };
30714
- const _hoisted_2$Q = { class: "lupa-search-box-product-addtocart" };
30725
+ const _hoisted_1$1d = { class: "lupa-search-box-add-to-cart-wrapper" };
30726
+ const _hoisted_2$R = { class: "lupa-search-box-product-addtocart" };
30715
30727
  const _hoisted_3$C = ["disabled"];
30716
30728
  const _hoisted_4$r = ["href"];
30717
30729
  const _hoisted_5$h = ["disabled"];
30718
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30730
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
30719
30731
  __name: "SearchBoxProductAddToCart",
30720
30732
  props: {
30721
30733
  item: {},
@@ -30761,8 +30773,8 @@ and ensure you are accounting for this risk.
30761
30773
  return Boolean(props.link && props.options.link);
30762
30774
  });
30763
30775
  return (_ctx, _cache) => {
30764
- return openBlock(), createElementBlock("div", _hoisted_1$1b, [
30765
- createBaseVNode("div", _hoisted_2$Q, [
30776
+ return openBlock(), createElementBlock("div", _hoisted_1$1d, [
30777
+ createBaseVNode("div", _hoisted_2$R, [
30766
30778
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
30767
30779
  key: 0,
30768
30780
  class: addToCartButtonClass.value,
@@ -30783,23 +30795,23 @@ and ensure you are accounting for this risk.
30783
30795
  };
30784
30796
  }
30785
30797
  });
30786
- const _hoisted_1$1a = {
30798
+ const _hoisted_1$1c = {
30787
30799
  key: 1,
30788
30800
  class: "lupa-search-box-element-badge-wrapper"
30789
30801
  };
30790
30802
  const __default__$4 = {
30791
30803
  components: {
30792
- SearchBoxProductImage: _sfc_main$1v,
30793
- SearchBoxProductTitle: _sfc_main$1u,
30794
- SearchBoxProductDescription: _sfc_main$1t,
30795
- SearchBoxProductPrice: _sfc_main$1s,
30796
- SearchBoxProductRegularPrice: _sfc_main$1r,
30797
- SearchBoxProductCustom: _sfc_main$1q,
30798
- SearchBoxProductCustomHtml: _sfc_main$1p,
30799
- SearchBoxProductAddToCart: _sfc_main$1o
30804
+ SearchBoxProductImage: _sfc_main$1z,
30805
+ SearchBoxProductTitle: _sfc_main$1y,
30806
+ SearchBoxProductDescription: _sfc_main$1x,
30807
+ SearchBoxProductPrice: _sfc_main$1w,
30808
+ SearchBoxProductRegularPrice: _sfc_main$1v,
30809
+ SearchBoxProductCustom: _sfc_main$1u,
30810
+ SearchBoxProductCustomHtml: _sfc_main$1t,
30811
+ SearchBoxProductAddToCart: _sfc_main$1s
30800
30812
  }
30801
30813
  };
30802
- const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
30814
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
30803
30815
  __name: "SearchBoxProductElement",
30804
30816
  props: {
30805
30817
  item: {},
@@ -30871,7 +30883,7 @@ and ensure you are accounting for this risk.
30871
30883
  "dynamic-attributes": dynamicAttributes.value,
30872
30884
  link: _ctx.link
30873
30885
  }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
30874
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1a, [
30886
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1c, [
30875
30887
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
30876
30888
  key: 0,
30877
30889
  item: enhancedItem.value,
@@ -30886,14 +30898,14 @@ and ensure you are accounting for this risk.
30886
30898
  };
30887
30899
  }
30888
30900
  }));
30889
- const _hoisted_1$19 = { class: "lupa-badge-title" };
30890
- const _hoisted_2$P = ["src"];
30901
+ const _hoisted_1$1b = { class: "lupa-badge-title" };
30902
+ const _hoisted_2$Q = ["src"];
30891
30903
  const _hoisted_3$B = { key: 1 };
30892
30904
  const _hoisted_4$q = {
30893
30905
  key: 0,
30894
30906
  class: "lupa-badge-full-text"
30895
30907
  };
30896
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
30908
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
30897
30909
  __name: "SearchResultGeneratedBadge",
30898
30910
  props: {
30899
30911
  options: {},
@@ -30926,11 +30938,11 @@ and ensure you are accounting for this risk.
30926
30938
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
30927
30939
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
30928
30940
  }, [
30929
- createBaseVNode("span", _hoisted_1$19, [
30941
+ createBaseVNode("span", _hoisted_1$1b, [
30930
30942
  image.value ? (openBlock(), createElementBlock("img", {
30931
30943
  key: 0,
30932
30944
  src: image.value
30933
- }, null, 8, _hoisted_2$P)) : createCommentVNode("", true),
30945
+ }, null, 8, _hoisted_2$Q)) : createCommentVNode("", true),
30934
30946
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
30935
30947
  ]),
30936
30948
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -30938,8 +30950,8 @@ and ensure you are accounting for this risk.
30938
30950
  };
30939
30951
  }
30940
30952
  });
30941
- const _hoisted_1$18 = { class: "lupa-generated-badges" };
30942
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
30953
+ const _hoisted_1$1a = { class: "lupa-generated-badges" };
30954
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
30943
30955
  __name: "SearchResultGeneratedBadges",
30944
30956
  props: {
30945
30957
  options: {}
@@ -30965,9 +30977,9 @@ and ensure you are accounting for this risk.
30965
30977
  })).filter((b) => Boolean(b.id));
30966
30978
  });
30967
30979
  return (_ctx, _cache) => {
30968
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
30980
+ return openBlock(), createElementBlock("div", _hoisted_1$1a, [
30969
30981
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
30970
- return openBlock(), createBlock(_sfc_main$1m, {
30982
+ return openBlock(), createBlock(_sfc_main$1q, {
30971
30983
  key: badge.id,
30972
30984
  badge,
30973
30985
  options: _ctx.options
@@ -30977,8 +30989,8 @@ and ensure you are accounting for this risk.
30977
30989
  };
30978
30990
  }
30979
30991
  });
30980
- const _hoisted_1$17 = ["innerHTML"];
30981
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
30992
+ const _hoisted_1$19 = ["innerHTML"];
30993
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30982
30994
  __name: "CustomBadge",
30983
30995
  props: {
30984
30996
  badge: {}
@@ -30999,12 +31011,12 @@ and ensure you are accounting for this risk.
30999
31011
  return openBlock(), createElementBlock("div", {
31000
31012
  class: normalizeClass(className.value),
31001
31013
  innerHTML: text.value
31002
- }, null, 10, _hoisted_1$17);
31014
+ }, null, 10, _hoisted_1$19);
31003
31015
  };
31004
31016
  }
31005
31017
  });
31006
- const _hoisted_1$16 = { class: "lupa-text-badges" };
31007
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
31018
+ const _hoisted_1$18 = { class: "lupa-text-badges" };
31019
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
31008
31020
  __name: "TextBadge",
31009
31021
  props: {
31010
31022
  badge: {}
@@ -31018,7 +31030,7 @@ and ensure you are accounting for this risk.
31018
31030
  return badges.value.slice(0, props.badge.maxItems);
31019
31031
  });
31020
31032
  return (_ctx, _cache) => {
31021
- return openBlock(), createElementBlock("div", _hoisted_1$16, [
31033
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
31022
31034
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
31023
31035
  return openBlock(), createElementBlock("div", {
31024
31036
  class: "lupa-badge lupa-text-badge",
@@ -31029,9 +31041,9 @@ and ensure you are accounting for this risk.
31029
31041
  };
31030
31042
  }
31031
31043
  });
31032
- const _hoisted_1$15 = { class: "lupa-image-badges" };
31033
- const _hoisted_2$O = ["src"];
31034
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
31044
+ const _hoisted_1$17 = { class: "lupa-image-badges" };
31045
+ const _hoisted_2$P = ["src"];
31046
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
31035
31047
  __name: "ImageBadge",
31036
31048
  props: {
31037
31049
  badge: {}
@@ -31051,7 +31063,7 @@ and ensure you are accounting for this risk.
31051
31063
  return `${props.badge.rootImageUrl}${src}`;
31052
31064
  };
31053
31065
  return (_ctx, _cache) => {
31054
- return openBlock(), createElementBlock("div", _hoisted_1$15, [
31066
+ return openBlock(), createElementBlock("div", _hoisted_1$17, [
31055
31067
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
31056
31068
  return openBlock(), createElementBlock("div", {
31057
31069
  class: "lupa-badge lupa-image-badge",
@@ -31059,14 +31071,14 @@ and ensure you are accounting for this risk.
31059
31071
  }, [
31060
31072
  createBaseVNode("img", {
31061
31073
  src: getImageUrl(item)
31062
- }, null, 8, _hoisted_2$O)
31074
+ }, null, 8, _hoisted_2$P)
31063
31075
  ]);
31064
31076
  }), 128))
31065
31077
  ]);
31066
31078
  };
31067
31079
  }
31068
31080
  });
31069
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
31081
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
31070
31082
  __name: "DiscountBadge",
31071
31083
  props: {
31072
31084
  badge: {}
@@ -31128,16 +31140,16 @@ and ensure you are accounting for this risk.
31128
31140
  };
31129
31141
  }
31130
31142
  });
31131
- const _hoisted_1$14 = { id: "lupa-search-results-badges" };
31143
+ const _hoisted_1$16 = { id: "lupa-search-results-badges" };
31132
31144
  const __default__$3 = {
31133
31145
  components: {
31134
- CustomBadge: _sfc_main$1k,
31135
- TextBadge: _sfc_main$1j,
31136
- ImageBadge: _sfc_main$1i,
31137
- DiscountBadge: _sfc_main$1h
31146
+ CustomBadge: _sfc_main$1o,
31147
+ TextBadge: _sfc_main$1n,
31148
+ ImageBadge: _sfc_main$1m,
31149
+ DiscountBadge: _sfc_main$1l
31138
31150
  }
31139
31151
  };
31140
- const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
31152
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
31141
31153
  __name: "SearchResultsBadgeWrapper",
31142
31154
  props: {
31143
31155
  position: {},
@@ -31200,7 +31212,7 @@ and ensure you are accounting for this risk.
31200
31212
  }
31201
31213
  };
31202
31214
  return (_ctx, _cache) => {
31203
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
31215
+ return openBlock(), createElementBlock("div", _hoisted_1$16, [
31204
31216
  createBaseVNode("div", {
31205
31217
  id: "lupa-badges",
31206
31218
  class: normalizeClass(anchorPosition.value)
@@ -31211,7 +31223,7 @@ and ensure you are accounting for this risk.
31211
31223
  badge
31212
31224
  }, null, 8, ["badge"]);
31213
31225
  }), 128)),
31214
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1l, {
31226
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1p, {
31215
31227
  key: 0,
31216
31228
  options: _ctx.options
31217
31229
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -31220,13 +31232,13 @@ and ensure you are accounting for this risk.
31220
31232
  };
31221
31233
  }
31222
31234
  }));
31223
- const _hoisted_1$13 = ["href"];
31224
- const _hoisted_2$N = { class: "lupa-search-box-product-details-section" };
31235
+ const _hoisted_1$15 = ["href"];
31236
+ const _hoisted_2$O = { class: "lupa-search-box-product-details-section" };
31225
31237
  const _hoisted_3$A = {
31226
31238
  key: 0,
31227
31239
  class: "lupa-search-box-product-add-to-cart-section"
31228
31240
  };
31229
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31241
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
31230
31242
  __name: "SearchBoxProduct",
31231
31243
  props: {
31232
31244
  item: {},
@@ -31332,7 +31344,7 @@ and ensure you are accounting for this risk.
31332
31344
  style: normalizeStyle(imageStyleOverride.value)
31333
31345
  }, [
31334
31346
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
31335
- return openBlock(), createBlock(_sfc_main$1n, {
31347
+ return openBlock(), createBlock(_sfc_main$1r, {
31336
31348
  class: "lupa-search-box-product-element",
31337
31349
  key: element.key,
31338
31350
  item: _ctx.item,
@@ -31342,10 +31354,10 @@ and ensure you are accounting for this risk.
31342
31354
  }, null, 8, ["item", "element", "labels", "link"]);
31343
31355
  }), 128))
31344
31356
  ], 4),
31345
- createBaseVNode("div", _hoisted_2$N, [
31357
+ createBaseVNode("div", _hoisted_2$O, [
31346
31358
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
31347
31359
  var _a25;
31348
- return openBlock(), createBlock(_sfc_main$1n, {
31360
+ return openBlock(), createBlock(_sfc_main$1r, {
31349
31361
  class: "lupa-search-box-product-element",
31350
31362
  key: element.key,
31351
31363
  item: _ctx.item,
@@ -31356,7 +31368,7 @@ and ensure you are accounting for this risk.
31356
31368
  ((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
31357
31369
  name: "badges",
31358
31370
  fn: withCtx(() => [
31359
- createVNode(_sfc_main$1g, {
31371
+ createVNode(_sfc_main$1k, {
31360
31372
  options: badgeOptions.value,
31361
31373
  position: "card"
31362
31374
  }, null, 8, ["options"])
@@ -31372,7 +31384,7 @@ and ensure you are accounting for this risk.
31372
31384
  class: normalizeClass(`lupa-search-box-group-${group}`)
31373
31385
  }, [
31374
31386
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
31375
- return openBlock(), createBlock(_sfc_main$1n, {
31387
+ return openBlock(), createBlock(_sfc_main$1r, {
31376
31388
  class: "lupa-search-box-product-element",
31377
31389
  key: element.key,
31378
31390
  item: _ctx.item,
@@ -31385,7 +31397,7 @@ and ensure you are accounting for this risk.
31385
31397
  ], 2);
31386
31398
  }), 128)),
31387
31399
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
31388
- createVNode(_sfc_main$1n, {
31400
+ createVNode(_sfc_main$1r, {
31389
31401
  class: "lupa-search-box-product-element",
31390
31402
  item: _ctx.item,
31391
31403
  element: addToCartElement.value,
@@ -31394,7 +31406,7 @@ and ensure you are accounting for this risk.
31394
31406
  isInStock: isInStock.value
31395
31407
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
31396
31408
  ])) : createCommentVNode("", true)
31397
- ], 16, _hoisted_1$13);
31409
+ ], 16, _hoisted_1$15);
31398
31410
  };
31399
31411
  }
31400
31412
  });
@@ -31466,8 +31478,8 @@ and ensure you are accounting for this risk.
31466
31478
  };
31467
31479
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
31468
31480
  });
31469
- const _hoisted_1$12 = ["innerHTML"];
31470
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
31481
+ const _hoisted_1$14 = ["innerHTML"];
31482
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
31471
31483
  __name: "SearchBoxProducts",
31472
31484
  props: {
31473
31485
  items: {},
@@ -31578,7 +31590,7 @@ and ensure you are accounting for this risk.
31578
31590
  itemClicked: handleProductClick
31579
31591
  });
31580
31592
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(displayItems.value, (item, index) => {
31581
- return openBlock(), createBlock(_sfc_main$1f, {
31593
+ return openBlock(), createBlock(_sfc_main$1j, {
31582
31594
  key: index,
31583
31595
  item,
31584
31596
  panelOptions: _ctx.panelOptions,
@@ -31591,7 +31603,7 @@ and ensure you are accounting for this risk.
31591
31603
  hasResults.value && ((_a25 = _ctx.panelOptions) == null ? void 0 : _a25.appendCustomHtml) && (showAll.value || !showAllItemsToggleButton.value) ? (openBlock(), createElementBlock("div", {
31592
31604
  key: 2,
31593
31605
  innerHTML: _ctx.panelOptions.appendCustomHtml
31594
- }, null, 8, _hoisted_1$12)) : createCommentVNode("", true),
31606
+ }, null, 8, _hoisted_1$14)) : createCommentVNode("", true),
31595
31607
  showAllItemsToggleButton.value ? (openBlock(), createElementBlock("a", {
31596
31608
  key: 3,
31597
31609
  class: "lupa-search-box-expand",
@@ -31602,9 +31614,9 @@ and ensure you are accounting for this risk.
31602
31614
  };
31603
31615
  }
31604
31616
  });
31605
- const _hoisted_1$11 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
31606
- const _hoisted_2$M = { key: 0 };
31607
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
31617
+ const _hoisted_1$13 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
31618
+ const _hoisted_2$N = { key: 0 };
31619
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
31608
31620
  __name: "SearchBoxProductsGoToResultsButton",
31609
31621
  props: {
31610
31622
  options: {},
@@ -31635,13 +31647,13 @@ and ensure you are accounting for this risk.
31635
31647
  emit2("goToResults");
31636
31648
  };
31637
31649
  return (_ctx, _cache) => {
31638
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
31650
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [
31639
31651
  createBaseVNode("button", {
31640
31652
  class: "lupa-search-box-documents-go-to-results-button",
31641
31653
  onClick: goToResults
31642
31654
  }, [
31643
31655
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
31644
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$M, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
31656
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$N, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
31645
31657
  ])
31646
31658
  ]);
31647
31659
  };
@@ -31737,7 +31749,7 @@ and ensure you are accounting for this risk.
31737
31749
  }
31738
31750
  return parsedObject;
31739
31751
  };
31740
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
31752
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
31741
31753
  __name: "SearchBoxProductsWrapper",
31742
31754
  props: {
31743
31755
  panel: {},
@@ -31808,7 +31820,7 @@ and ensure you are accounting for this risk.
31808
31820
  watch(() => props.panel.limit, getItemsDebounced);
31809
31821
  return (_ctx, _cache) => {
31810
31822
  var _a25, _b25;
31811
- return openBlock(), createBlock(_sfc_main$1e, {
31823
+ return openBlock(), createBlock(_sfc_main$1i, {
31812
31824
  items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
31813
31825
  panelOptions: _ctx.panel,
31814
31826
  labels: _ctx.labels,
@@ -31818,7 +31830,7 @@ and ensure you are accounting for this risk.
31818
31830
  default: withCtx(() => {
31819
31831
  var _a26;
31820
31832
  return [
31821
- showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1d, {
31833
+ showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1h, {
31822
31834
  key: 0,
31823
31835
  options: _ctx.searchBoxOptions,
31824
31836
  panel: _ctx.panel,
@@ -31839,7 +31851,7 @@ and ensure you are accounting for this risk.
31839
31851
  };
31840
31852
  }
31841
31853
  });
31842
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
31854
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31843
31855
  __name: "SearchBoxRelatedSourceWrapper",
31844
31856
  props: {
31845
31857
  panel: {},
@@ -31911,7 +31923,7 @@ and ensure you are accounting for this risk.
31911
31923
  });
31912
31924
  return (_ctx, _cache) => {
31913
31925
  var _a25, _b25;
31914
- return openBlock(), createBlock(_sfc_main$1e, {
31926
+ return openBlock(), createBlock(_sfc_main$1i, {
31915
31927
  items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
31916
31928
  panelOptions: documentPanelOptions.value,
31917
31929
  labels: _ctx.labels,
@@ -31929,8 +31941,8 @@ and ensure you are accounting for this risk.
31929
31941
  };
31930
31942
  }
31931
31943
  });
31932
- const _hoisted_1$10 = ["data-cy"];
31933
- const _hoisted_2$L = {
31944
+ const _hoisted_1$12 = ["data-cy"];
31945
+ const _hoisted_2$M = {
31934
31946
  key: 0,
31935
31947
  class: "lupa-panel-title lupa-panel-title-top-results"
31936
31948
  };
@@ -31940,12 +31952,12 @@ and ensure you are accounting for this risk.
31940
31952
  };
31941
31953
  const __default__$2 = {
31942
31954
  components: {
31943
- SearchBoxSuggestionsWrapper: _sfc_main$1x,
31944
- SearchBoxProductsWrapper: _sfc_main$1c,
31945
- SearchBoxRelatedSourceWrapper: _sfc_main$1b
31955
+ SearchBoxSuggestionsWrapper: _sfc_main$1B,
31956
+ SearchBoxProductsWrapper: _sfc_main$1g,
31957
+ SearchBoxRelatedSourceWrapper: _sfc_main$1f
31946
31958
  }
31947
31959
  };
31948
- const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
31960
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
31949
31961
  __name: "SearchBoxMainPanel",
31950
31962
  props: {
31951
31963
  options: {},
@@ -32136,7 +32148,7 @@ and ensure you are accounting for this risk.
32136
32148
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
32137
32149
  "data-cy": "lupa-panel-" + panel.type + "-index"
32138
32150
  }, [
32139
- ((_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),
32151
+ ((_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),
32140
32152
  ((_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),
32141
32153
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
32142
32154
  key: 2,
@@ -32159,14 +32171,14 @@ and ensure you are accounting for this risk.
32159
32171
  key: "0"
32160
32172
  } : void 0
32161
32173
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
32162
- ], 14, _hoisted_1$10);
32174
+ ], 14, _hoisted_1$12);
32163
32175
  }), 128))
32164
32176
  ], 4),
32165
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1A, {
32177
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1E, {
32166
32178
  key: 1,
32167
32179
  options: _ctx.options
32168
32180
  }, null, 8, ["options"])) : createCommentVNode("", true),
32169
- displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1D, {
32181
+ displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1H, {
32170
32182
  key: 2,
32171
32183
  labels: labels.value,
32172
32184
  options: _ctx.options,
@@ -32177,7 +32189,7 @@ and ensure you are accounting for this risk.
32177
32189
  id: "lupa-search-box-panel",
32178
32190
  class: normalizeClass({ "lupa-search-text-empty": isSearchEmpty.value })
32179
32191
  }, [
32180
- createVNode(_sfc_main$1B, {
32192
+ createVNode(_sfc_main$1F, {
32181
32193
  options: _ctx.options.history,
32182
32194
  history: history.value,
32183
32195
  onGoToResults: handleGoToResults,
@@ -32202,8 +32214,8 @@ and ensure you are accounting for this risk.
32202
32214
  const elements = getElements(triggers);
32203
32215
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
32204
32216
  };
32205
- const _hoisted_1$$ = { class: "lupa-search-box-wrapper" };
32206
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
32217
+ const _hoisted_1$11 = { class: "lupa-search-box-wrapper" };
32218
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
32207
32219
  __name: "SearchBox",
32208
32220
  props: {
32209
32221
  options: {},
@@ -32542,8 +32554,8 @@ and ensure you are accounting for this risk.
32542
32554
  id: "lupa-search-box",
32543
32555
  class: normalizeClass({ "lupa-search-box-opened": opened.value })
32544
32556
  }, [
32545
- createBaseVNode("div", _hoisted_1$$, [
32546
- createVNode(_sfc_main$1E, {
32557
+ createBaseVNode("div", _hoisted_1$11, [
32558
+ createVNode(_sfc_main$1I, {
32547
32559
  options: inputOptions.value,
32548
32560
  suggestedValue: suggestedValue.value,
32549
32561
  "can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
@@ -32556,7 +32568,7 @@ and ensure you are accounting for this risk.
32556
32568
  onSearch: handleSearch,
32557
32569
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
32558
32570
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
32559
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1a, {
32571
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1e, {
32560
32572
  key: 0,
32561
32573
  options: panelOptions.value,
32562
32574
  inputValue: inputValue.value,
@@ -32647,11 +32659,11 @@ and ensure you are accounting for this risk.
32647
32659
  }
32648
32660
  return searchParams;
32649
32661
  };
32650
- const _hoisted_1$_ = {
32662
+ const _hoisted_1$10 = {
32651
32663
  key: 0,
32652
32664
  id: "lupa-search-results-did-you-mean"
32653
32665
  };
32654
- const _hoisted_2$K = {
32666
+ const _hoisted_2$L = {
32655
32667
  key: 0,
32656
32668
  "data-cy": "suggested-search-text-label"
32657
32669
  };
@@ -32660,7 +32672,7 @@ and ensure you are accounting for this risk.
32660
32672
  "data-cy": "did-you-mean-label"
32661
32673
  };
32662
32674
  const _hoisted_4$p = { key: 1 };
32663
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
32675
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
32664
32676
  __name: "SearchResultsDidYouMean",
32665
32677
  props: {
32666
32678
  labels: {}
@@ -32692,8 +32704,8 @@ and ensure you are accounting for this risk.
32692
32704
  paramStore.goToResults({ searchText, facet });
32693
32705
  };
32694
32706
  return (_ctx, _cache) => {
32695
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
32696
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$K, [
32707
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
32708
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$L, [
32697
32709
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
32698
32710
  return openBlock(), createElementBlock("span", { key: index }, [
32699
32711
  createBaseVNode("span", {
@@ -32718,12 +32730,12 @@ and ensure you are accounting for this risk.
32718
32730
  };
32719
32731
  }
32720
32732
  });
32721
- const _hoisted_1$Z = {
32733
+ const _hoisted_1$$ = {
32722
32734
  key: 0,
32723
32735
  class: "lupa-search-results-summary"
32724
32736
  };
32725
- const _hoisted_2$J = ["innerHTML"];
32726
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
32737
+ const _hoisted_2$K = ["innerHTML"];
32738
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
32727
32739
  __name: "SearchResultsSummary",
32728
32740
  props: {
32729
32741
  label: {},
@@ -32738,8 +32750,8 @@ and ensure you are accounting for this risk.
32738
32750
  return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
32739
32751
  });
32740
32752
  return (_ctx, _cache) => {
32741
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
32742
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$J),
32753
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$$, [
32754
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$K),
32743
32755
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
32744
32756
  key: 0,
32745
32757
  class: "lupa-filter-clear",
@@ -32750,7 +32762,130 @@ and ensure you are accounting for this risk.
32750
32762
  };
32751
32763
  }
32752
32764
  });
32753
- const _hoisted_1$Y = {
32765
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
32766
+ __name: "SkeletonBlock",
32767
+ props: {
32768
+ style: {}
32769
+ },
32770
+ setup(__props) {
32771
+ return (_ctx, _cache) => {
32772
+ return openBlock(), createElementBlock("div", {
32773
+ class: "lupa-skeleton-block-wrapper",
32774
+ style: normalizeStyle(_ctx.style)
32775
+ }, _cache[0] || (_cache[0] = [
32776
+ createBaseVNode("div", { class: "lupa-skeleton-block" }, [
32777
+ createBaseVNode("div", { class: "lupa-skeleton-block__shimmer" })
32778
+ ], -1)
32779
+ ]), 4);
32780
+ };
32781
+ }
32782
+ });
32783
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
32784
+ __name: "SkeletonText",
32785
+ props: {
32786
+ style: {},
32787
+ lines: { default: 1 }
32788
+ },
32789
+ setup(__props) {
32790
+ return (_ctx, _cache) => {
32791
+ return openBlock(), createElementBlock("div", {
32792
+ class: "lupa-skeleton-text-wrapper",
32793
+ style: normalizeStyle(_ctx.style)
32794
+ }, [
32795
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.lines, (i) => {
32796
+ return openBlock(), createElementBlock("div", {
32797
+ key: i,
32798
+ class: "lupa-skeleton-line"
32799
+ }, _cache[0] || (_cache[0] = [
32800
+ createBaseVNode("div", { class: "lupa-skeleton-line__shimmer" }, null, -1)
32801
+ ]));
32802
+ }), 128))
32803
+ ], 4);
32804
+ };
32805
+ }
32806
+ });
32807
+ const _hoisted_1$_ = {
32808
+ key: 1,
32809
+ class: "lupa-skeleton-text"
32810
+ };
32811
+ const _hoisted_2$J = {
32812
+ key: 2,
32813
+ class: "lupa-skeleton-blocks"
32814
+ };
32815
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
32816
+ __name: "LoadingBlock",
32817
+ props: {
32818
+ style: {},
32819
+ type: {},
32820
+ enabled: { type: Boolean },
32821
+ loading: { type: Boolean },
32822
+ count: {}
32823
+ },
32824
+ setup(__props) {
32825
+ return (_ctx, _cache) => {
32826
+ return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
32827
+ createVNode(_sfc_main$19, {
32828
+ style: normalizeStyle(_ctx.style),
32829
+ lines: _ctx.count
32830
+ }, null, 8, ["style", "lines"])
32831
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$J, [
32832
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
32833
+ return openBlock(), createBlock(_sfc_main$1a, {
32834
+ key: n,
32835
+ style: normalizeStyle(_ctx.style)
32836
+ }, null, 8, ["style"]);
32837
+ }), 128))
32838
+ ]));
32839
+ };
32840
+ }
32841
+ });
32842
+ const useLoadingSkeleton = () => {
32843
+ const paramsStore = useParamsStore();
32844
+ const optionsStore = useOptionsStore();
32845
+ const searchResultStore = useSearchResultStore();
32846
+ const { limit } = storeToRefs(paramsStore);
32847
+ const {
32848
+ searchResult,
32849
+ relatedQueriesResult,
32850
+ loading,
32851
+ loadingFacets: loadingFacetsBase,
32852
+ loadingRelatedQueries
32853
+ } = storeToRefs(searchResultStore);
32854
+ const { searchResultOptions } = storeToRefs(optionsStore);
32855
+ const skeletonEnabled = computed(() => {
32856
+ var _a25, _b25, _c, _d;
32857
+ return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled) && !((_d = (_c = searchResult.value) == null ? void 0 : _c.items) == null ? void 0 : _d.length);
32858
+ });
32859
+ const relatedQueriesSkeletonEnabled = computed(() => {
32860
+ var _a25, _b25, _c, _d, _e;
32861
+ return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled) && Boolean((_c = searchResultOptions.value) == null ? void 0 : _c.relatedQueries) && !((_e = (_d = relatedQueriesResult.value) == null ? void 0 : _d.relatedQueries) == null ? void 0 : _e.length);
32862
+ });
32863
+ const facetSkeletonEnabled = computed(() => {
32864
+ var _a25, _b25, _c, _d;
32865
+ return ((_b25 = (_a25 = searchResultOptions.value) == null ? void 0 : _a25.loadingSkeleton) == null ? void 0 : _b25.enabled) && !((_d = (_c = searchResult.value) == null ? void 0 : _c.facets) == null ? void 0 : _d.length);
32866
+ });
32867
+ const loadingFacets = computed(() => {
32868
+ var _a25;
32869
+ if ((_a25 = searchResultOptions.value) == null ? void 0 : _a25.splitExpensiveRequests) {
32870
+ return loadingFacetsBase.value;
32871
+ }
32872
+ return loading.value;
32873
+ });
32874
+ const loadingAny = computed(() => {
32875
+ return loading.value || loadingRelatedQueries.value || loadingFacets.value;
32876
+ });
32877
+ return {
32878
+ loading,
32879
+ loadingRelatedQueries,
32880
+ loadingFacets,
32881
+ loadingAny,
32882
+ limit,
32883
+ skeletonEnabled,
32884
+ relatedQueriesSkeletonEnabled,
32885
+ facetSkeletonEnabled
32886
+ };
32887
+ };
32888
+ const _hoisted_1$Z = {
32754
32889
  key: 0,
32755
32890
  class: "lupa-result-page-title",
32756
32891
  "data-cy": "lupa-result-page-title"
@@ -32762,7 +32897,7 @@ and ensure you are accounting for this risk.
32762
32897
  };
32763
32898
  const _hoisted_4$o = { class: "lupa-results-total-count-number" };
32764
32899
  const _hoisted_5$g = ["innerHTML"];
32765
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
32900
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
32766
32901
  __name: "SearchResultsTitle",
32767
32902
  props: {
32768
32903
  options: {},
@@ -32772,7 +32907,10 @@ and ensure you are accounting for this risk.
32772
32907
  setup(__props) {
32773
32908
  const props = __props;
32774
32909
  const searchResultStore = useSearchResultStore();
32910
+ const paramsStore = useParamsStore();
32775
32911
  const { currentQueryText, totalItems, searchResult } = storeToRefs(searchResultStore);
32912
+ const { skeletonEnabled, loading } = useLoadingSkeleton();
32913
+ const { query } = storeToRefs(paramsStore);
32776
32914
  const suggestedSearchText = computed(() => searchResult.value.suggestedSearchText);
32777
32915
  const queryText = computed(() => {
32778
32916
  return suggestedSearchText.value || currentQueryText.value;
@@ -32805,29 +32943,39 @@ and ensure you are accounting for this risk.
32805
32943
  });
32806
32944
  return (_ctx, _cache) => {
32807
32945
  return openBlock(), createElementBlock("div", null, [
32808
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Y, [
32809
- createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
32810
- queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
32811
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
32812
- createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
32813
- createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
32814
- _cache[0] || (_cache[0] = createTextVNode(")"))
32815
- ])) : createCommentVNode("", true)
32816
- ])) : createCommentVNode("", true),
32817
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$17, {
32818
- key: 1,
32819
- label: summaryLabel.value
32820
- }, null, 8, ["label"])) : createCommentVNode("", true),
32821
- descriptionTop.value ? (openBlock(), createElementBlock("div", {
32822
- key: 2,
32823
- class: "lupa-result-page-description-top",
32824
- innerHTML: descriptionTop.value
32825
- }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
32946
+ createVNode(_sfc_main$18, {
32947
+ type: "text",
32948
+ count: 1,
32949
+ enabled: unref(skeletonEnabled) && Boolean(unref(query)),
32950
+ loading: unref(loading)
32951
+ }, {
32952
+ default: withCtx(() => [
32953
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Z, [
32954
+ createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
32955
+ queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
32956
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
32957
+ createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
32958
+ createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
32959
+ _cache[0] || (_cache[0] = createTextVNode(")"))
32960
+ ])) : createCommentVNode("", true)
32961
+ ])) : createCommentVNode("", true),
32962
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$1b, {
32963
+ key: 1,
32964
+ label: summaryLabel.value
32965
+ }, null, 8, ["label"])) : createCommentVNode("", true),
32966
+ descriptionTop.value ? (openBlock(), createElementBlock("div", {
32967
+ key: 2,
32968
+ class: "lupa-result-page-description-top",
32969
+ innerHTML: descriptionTop.value
32970
+ }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
32971
+ ]),
32972
+ _: 1
32973
+ }, 8, ["enabled", "loading"])
32826
32974
  ]);
32827
32975
  };
32828
32976
  }
32829
32977
  });
32830
- const _hoisted_1$X = {
32978
+ const _hoisted_1$Y = {
32831
32979
  class: "lupa-current-filter-label",
32832
32980
  "data-cy": "lupa-current-filter-label"
32833
32981
  };
@@ -32835,7 +32983,7 @@ and ensure you are accounting for this risk.
32835
32983
  class: "lupa-current-filter-value",
32836
32984
  "data-cy": "lupa-current-filter-value"
32837
32985
  };
32838
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
32986
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
32839
32987
  __name: "CurrentFilterDisplay",
32840
32988
  props: {
32841
32989
  filter: {}
@@ -32877,13 +33025,13 @@ and ensure you are accounting for this risk.
32877
33025
  onClick: handleClick,
32878
33026
  "aria-label": "Remove filter"
32879
33027
  }, "⨉"),
32880
- createBaseVNode("div", _hoisted_1$X, toDisplayString(_ctx.filter.label) + ": ", 1),
33028
+ createBaseVNode("div", _hoisted_1$Y, toDisplayString(_ctx.filter.label) + ": ", 1),
32881
33029
  createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
32882
33030
  ], 2);
32883
33031
  };
32884
33032
  }
32885
33033
  });
32886
- const _hoisted_1$W = { class: "lupa-filter-title-text" };
33034
+ const _hoisted_1$X = { class: "lupa-filter-title-text" };
32887
33035
  const _hoisted_2$G = {
32888
33036
  key: 0,
32889
33037
  class: "lupa-filter-count"
@@ -32893,7 +33041,7 @@ and ensure you are accounting for this risk.
32893
33041
  class: "filter-values"
32894
33042
  };
32895
33043
  const _hoisted_4$n = { class: "lupa-current-filter-list" };
32896
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
33044
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
32897
33045
  __name: "CurrentFilters",
32898
33046
  props: {
32899
33047
  options: {},
@@ -32973,7 +33121,7 @@ and ensure you are accounting for this risk.
32973
33121
  class: "lupa-current-filter-title",
32974
33122
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
32975
33123
  }, [
32976
- createBaseVNode("div", _hoisted_1$W, [
33124
+ createBaseVNode("div", _hoisted_1$X, [
32977
33125
  createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
32978
33126
  _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
32979
33127
  ]),
@@ -32985,7 +33133,7 @@ and ensure you are accounting for this risk.
32985
33133
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
32986
33134
  createBaseVNode("div", _hoisted_4$n, [
32987
33135
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
32988
- return openBlock(), createBlock(_sfc_main$15, {
33136
+ return openBlock(), createBlock(_sfc_main$16, {
32989
33137
  key: filter.key + "_" + filter.value,
32990
33138
  filter,
32991
33139
  units: units.value,
@@ -33003,8 +33151,8 @@ and ensure you are accounting for this risk.
33003
33151
  };
33004
33152
  }
33005
33153
  });
33006
- const _hoisted_1$V = ["href"];
33007
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
33154
+ const _hoisted_1$W = ["href"];
33155
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
33008
33156
  __name: "CategoryFilterItem",
33009
33157
  props: {
33010
33158
  options: {},
@@ -33041,12 +33189,12 @@ and ensure you are accounting for this risk.
33041
33189
  "data-cy": "lupa-child-category-item",
33042
33190
  href: urlLink.value,
33043
33191
  onClick: handleNavigation
33044
- }, toDisplayString(title.value), 9, _hoisted_1$V)
33192
+ }, toDisplayString(title.value), 9, _hoisted_1$W)
33045
33193
  ], 2);
33046
33194
  };
33047
33195
  }
33048
33196
  });
33049
- const _hoisted_1$U = {
33197
+ const _hoisted_1$V = {
33050
33198
  class: "lupa-category-filter",
33051
33199
  "data-cy": "lupa-category-filter"
33052
33200
  };
@@ -33054,7 +33202,7 @@ and ensure you are accounting for this risk.
33054
33202
  const _hoisted_3$v = ["href"];
33055
33203
  const _hoisted_4$m = ["href"];
33056
33204
  const _hoisted_5$f = { class: "lupa-child-category-list" };
33057
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
33205
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
33058
33206
  __name: "CategoryFilter",
33059
33207
  props: {
33060
33208
  options: {}
@@ -33142,7 +33290,7 @@ and ensure you are accounting for this risk.
33142
33290
  };
33143
33291
  __expose({ fetch: fetch2 });
33144
33292
  return (_ctx, _cache) => {
33145
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
33293
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
33146
33294
  createBaseVNode("div", _hoisted_2$F, [
33147
33295
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
33148
33296
  key: 0,
@@ -33163,7 +33311,7 @@ and ensure you are accounting for this risk.
33163
33311
  ], 2),
33164
33312
  createBaseVNode("div", _hoisted_5$f, [
33165
33313
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
33166
- return openBlock(), createBlock(_sfc_main$13, {
33314
+ return openBlock(), createBlock(_sfc_main$14, {
33167
33315
  key: getCategoryKey(child),
33168
33316
  item: child,
33169
33317
  options: _ctx.options
@@ -33174,7 +33322,7 @@ and ensure you are accounting for this risk.
33174
33322
  };
33175
33323
  }
33176
33324
  });
33177
- const _hoisted_1$T = {
33325
+ const _hoisted_1$U = {
33178
33326
  class: "lupa-search-result-facet-term-values",
33179
33327
  "data-cy": "lupa-search-result-facet-term-values"
33180
33328
  };
@@ -33189,7 +33337,7 @@ and ensure you are accounting for this risk.
33189
33337
  };
33190
33338
  const _hoisted_8$2 = { key: 0 };
33191
33339
  const _hoisted_9$2 = { key: 1 };
33192
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
33340
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
33193
33341
  __name: "TermFacet",
33194
33342
  props: {
33195
33343
  options: {},
@@ -33283,7 +33431,7 @@ and ensure you are accounting for this risk.
33283
33431
  }
33284
33432
  };
33285
33433
  return (_ctx, _cache) => {
33286
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
33434
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
33287
33435
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
33288
33436
  key: 0,
33289
33437
  class: "lupa-term-filter",
@@ -34232,7 +34380,7 @@ and ensure you are accounting for this risk.
34232
34380
  }
34233
34381
  return out;
34234
34382
  };
34235
- const _hoisted_1$S = { class: "lupa-search-result-facet-stats-values" };
34383
+ const _hoisted_1$T = { class: "lupa-search-result-facet-stats-values" };
34236
34384
  const _hoisted_2$D = {
34237
34385
  key: 0,
34238
34386
  class: "lupa-stats-facet-summary"
@@ -34261,7 +34409,7 @@ and ensure you are accounting for this risk.
34261
34409
  key: 2,
34262
34410
  class: "lupa-stats-slider-wrapper"
34263
34411
  };
34264
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
34412
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
34265
34413
  __name: "StatsFacet",
34266
34414
  props: {
34267
34415
  options: {},
@@ -34480,7 +34628,7 @@ and ensure you are accounting for this risk.
34480
34628
  }
34481
34629
  );
34482
34630
  return (_ctx, _cache) => {
34483
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
34631
+ return openBlock(), createElementBlock("div", _hoisted_1$T, [
34484
34632
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
34485
34633
  createBaseVNode("div", _hoisted_4$k, [
34486
34634
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
@@ -34545,7 +34693,7 @@ and ensure you are accounting for this risk.
34545
34693
  };
34546
34694
  }
34547
34695
  });
34548
- const _hoisted_1$R = { class: "lupa-term-checkbox-wrapper" };
34696
+ const _hoisted_1$S = { class: "lupa-term-checkbox-wrapper" };
34549
34697
  const _hoisted_2$C = { class: "lupa-term-label" };
34550
34698
  const _hoisted_3$s = {
34551
34699
  key: 0,
@@ -34555,7 +34703,7 @@ and ensure you are accounting for this risk.
34555
34703
  key: 0,
34556
34704
  class: "lupa-facet-level"
34557
34705
  };
34558
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
34706
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
34559
34707
  __name: "HierarchyFacetLevel",
34560
34708
  props: {
34561
34709
  options: {},
@@ -34609,7 +34757,7 @@ and ensure you are accounting for this risk.
34609
34757
  "data-cy": "lupa-facet-term",
34610
34758
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
34611
34759
  }, [
34612
- createBaseVNode("div", _hoisted_1$R, [
34760
+ createBaseVNode("div", _hoisted_1$S, [
34613
34761
  createBaseVNode("span", {
34614
34762
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
34615
34763
  }, null, 2)
@@ -34637,13 +34785,13 @@ and ensure you are accounting for this risk.
34637
34785
  };
34638
34786
  }
34639
34787
  });
34640
- const _hoisted_1$Q = {
34788
+ const _hoisted_1$R = {
34641
34789
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
34642
34790
  "data-cy": "lupa-search-result-facet-term-values"
34643
34791
  };
34644
34792
  const _hoisted_2$B = { key: 0 };
34645
34793
  const _hoisted_3$r = ["placeholder"];
34646
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
34794
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
34647
34795
  __name: "HierarchyFacet",
34648
34796
  props: {
34649
34797
  options: {},
@@ -34699,7 +34847,7 @@ and ensure you are accounting for this risk.
34699
34847
  showAll.value = false;
34700
34848
  };
34701
34849
  return (_ctx, _cache) => {
34702
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
34850
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
34703
34851
  isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
34704
34852
  withDirectives(createBaseVNode("input", {
34705
34853
  class: "lupa-term-filter",
@@ -34711,7 +34859,7 @@ and ensure you are accounting for this risk.
34711
34859
  ])
34712
34860
  ])) : createCommentVNode("", true),
34713
34861
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
34714
- return openBlock(), createBlock(_sfc_main$$, {
34862
+ return openBlock(), createBlock(_sfc_main$10, {
34715
34863
  key: item.title,
34716
34864
  options: _ctx.options,
34717
34865
  item,
@@ -34735,7 +34883,7 @@ and ensure you are accounting for this risk.
34735
34883
  };
34736
34884
  }
34737
34885
  });
34738
- const _hoisted_1$P = { class: "lupa-facet-label-text" };
34886
+ const _hoisted_1$Q = { class: "lupa-facet-label-text" };
34739
34887
  const _hoisted_2$A = {
34740
34888
  key: 0,
34741
34889
  class: "lupa-facet-content",
@@ -34743,12 +34891,12 @@ and ensure you are accounting for this risk.
34743
34891
  };
34744
34892
  const __default__$1 = {
34745
34893
  components: {
34746
- TermFacet: _sfc_main$11,
34747
- StatsFacet: _sfc_main$10,
34748
- HierarchyFacet: _sfc_main$_
34894
+ TermFacet: _sfc_main$12,
34895
+ StatsFacet: _sfc_main$11,
34896
+ HierarchyFacet: _sfc_main$$
34749
34897
  }
34750
34898
  };
34751
- const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
34899
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
34752
34900
  __name: "FacetDisplay",
34753
34901
  props: {
34754
34902
  options: {},
@@ -34895,7 +35043,7 @@ and ensure you are accounting for this risk.
34895
35043
  "data-cy": "lupa-search-result-facet-label",
34896
35044
  onClick: toggleFacet
34897
35045
  }, [
34898
- createBaseVNode("div", _hoisted_1$P, toDisplayString(facetLabel.value), 1),
35046
+ createBaseVNode("div", _hoisted_1$Q, toDisplayString(facetLabel.value), 1),
34899
35047
  createBaseVNode("div", {
34900
35048
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
34901
35049
  }, null, 2)
@@ -35013,11 +35161,11 @@ and ensure you are accounting for this risk.
35013
35161
  handleSortSidebarToggle
35014
35162
  };
35015
35163
  };
35016
- const _hoisted_1$O = {
35164
+ const _hoisted_1$P = {
35017
35165
  key: 0,
35018
35166
  class: "lupa-desktop-toggle-filter-count"
35019
35167
  };
35020
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
35168
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
35021
35169
  __name: "DesktopFacetToggle",
35022
35170
  setup(__props) {
35023
35171
  const {
@@ -35039,12 +35187,12 @@ and ensure you are accounting for this risk.
35039
35187
  (...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
35040
35188
  }, [
35041
35189
  createTextVNode(toDisplayString(unref(label)) + " ", 1),
35042
- unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$O, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35190
+ unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35043
35191
  ], 2);
35044
35192
  };
35045
35193
  }
35046
35194
  });
35047
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
35195
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
35048
35196
  __name: "DesktopSortToggle",
35049
35197
  setup(__props) {
35050
35198
  const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
@@ -35060,12 +35208,12 @@ and ensure you are accounting for this risk.
35060
35208
  };
35061
35209
  }
35062
35210
  });
35063
- const _hoisted_1$N = { class: "lupa-search-result-facet-section" };
35211
+ const _hoisted_1$O = { class: "lupa-search-result-facet-section" };
35064
35212
  const _hoisted_2$z = {
35065
35213
  key: 0,
35066
35214
  class: "lupa-facets-title"
35067
35215
  };
35068
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
35216
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
35069
35217
  __name: "FacetList",
35070
35218
  props: {
35071
35219
  options: {},
@@ -35107,14 +35255,14 @@ and ensure you are accounting for this risk.
35107
35255
  };
35108
35256
  return (_ctx, _cache) => {
35109
35257
  var _a25;
35110
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
35258
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
35111
35259
  _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
35112
35260
  createBaseVNode("div", {
35113
35261
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
35114
35262
  }, [
35115
35263
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
35116
35264
  var _a26;
35117
- return openBlock(), createBlock(_sfc_main$Z, {
35265
+ return openBlock(), createBlock(_sfc_main$_, {
35118
35266
  key: facet.key,
35119
35267
  facet,
35120
35268
  currentFilters: currentFiltersValue.value,
@@ -35126,14 +35274,14 @@ and ensure you are accounting for this risk.
35126
35274
  onExpand: unref(handleFilterSidebarToggle)
35127
35275
  }, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
35128
35276
  }), 128)),
35129
- _ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Y, { key: 0 })) : createCommentVNode("", true),
35130
- _ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$X, { key: 1 })) : createCommentVNode("", true)
35277
+ _ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Z, { key: 0 })) : createCommentVNode("", true),
35278
+ _ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$Y, { key: 1 })) : createCommentVNode("", true)
35131
35279
  ], 2)
35132
35280
  ]);
35133
35281
  };
35134
35282
  }
35135
35283
  });
35136
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
35284
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
35137
35285
  __name: "FacetsButton",
35138
35286
  props: {
35139
35287
  options: {}
@@ -35158,7 +35306,7 @@ and ensure you are accounting for this risk.
35158
35306
  };
35159
35307
  }
35160
35308
  });
35161
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
35309
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
35162
35310
  __name: "FacetsClearButton",
35163
35311
  props: {
35164
35312
  options: {}
@@ -35183,8 +35331,8 @@ and ensure you are accounting for this risk.
35183
35331
  };
35184
35332
  }
35185
35333
  });
35186
- const _hoisted_1$M = { class: "lupa-facets-filter-button-wrapper" };
35187
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
35334
+ const _hoisted_1$N = { class: "lupa-facets-filter-button-wrapper" };
35335
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
35188
35336
  __name: "Facets",
35189
35337
  props: {
35190
35338
  options: {},
@@ -35292,7 +35440,7 @@ and ensure you are accounting for this risk.
35292
35440
  return openBlock(), createElementBlock("div", {
35293
35441
  class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
35294
35442
  }, [
35295
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$W, {
35443
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$X, {
35296
35444
  key: 0,
35297
35445
  options: _ctx.options,
35298
35446
  facets: regularFacets.value,
@@ -35302,13 +35450,13 @@ and ensure you are accounting for this risk.
35302
35450
  onSelect: handleFacetSelect,
35303
35451
  onClear: clear
35304
35452
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
35305
- createBaseVNode("div", _hoisted_1$M, [
35306
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$U, {
35453
+ createBaseVNode("div", _hoisted_1$N, [
35454
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
35307
35455
  key: 0,
35308
35456
  options: _ctx.options,
35309
35457
  onClear: clearAll
35310
35458
  }, null, 8, ["options"])) : createCommentVNode("", true),
35311
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
35459
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$W, {
35312
35460
  key: 1,
35313
35461
  options: _ctx.options,
35314
35462
  onFilter: filter
@@ -35318,12 +35466,12 @@ and ensure you are accounting for this risk.
35318
35466
  };
35319
35467
  }
35320
35468
  });
35321
- const _hoisted_1$L = {
35469
+ const _hoisted_1$M = {
35322
35470
  key: 0,
35323
35471
  id: "lupa-search-result-filters",
35324
35472
  class: "lupa-search-result-filters"
35325
35473
  };
35326
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
35474
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
35327
35475
  __name: "SearchResultsFilters",
35328
35476
  props: {
35329
35477
  options: {},
@@ -35333,6 +35481,7 @@ and ensure you are accounting for this risk.
35333
35481
  emits: ["filter"],
35334
35482
  setup(__props, { expose: __expose, emit: __emit }) {
35335
35483
  const categoryFilters = ref(null);
35484
+ const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
35336
35485
  const props = __props;
35337
35486
  const emit2 = __emit;
35338
35487
  const desktopFiltersVisible = computed(() => {
@@ -35361,30 +35510,42 @@ and ensure you are accounting for this risk.
35361
35510
  };
35362
35511
  __expose({ fetch: fetch2 });
35363
35512
  return (_ctx, _cache) => {
35364
- var _a25;
35365
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
35366
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$14, {
35367
- key: 0,
35368
- options: _ctx.options.currentFilters,
35369
- expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
35370
- }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
35371
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$12, {
35372
- key: 1,
35373
- options: _ctx.options.categories,
35374
- ref_key: "categoryFilters",
35375
- ref: categoryFilters
35376
- }, null, 8, ["options"])) : createCommentVNode("", true),
35377
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
35378
- key: 2,
35379
- options: _ctx.options.facets,
35380
- "facet-style": _ctx.style,
35381
- onFilter: filter
35382
- }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35513
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
35514
+ createVNode(_sfc_main$18, {
35515
+ class: "lupa-skeleton-filters",
35516
+ count: 1,
35517
+ enabled: unref(facetSkeletonEnabled),
35518
+ loading: unref(loadingFacets)
35519
+ }, {
35520
+ default: withCtx(() => {
35521
+ var _a25;
35522
+ return [
35523
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$15, {
35524
+ key: 0,
35525
+ options: _ctx.options.currentFilters,
35526
+ expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
35527
+ }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
35528
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$13, {
35529
+ key: 1,
35530
+ options: _ctx.options.categories,
35531
+ ref_key: "categoryFilters",
35532
+ ref: categoryFilters
35533
+ }, null, 8, ["options"])) : createCommentVNode("", true),
35534
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
35535
+ key: 2,
35536
+ options: _ctx.options.facets,
35537
+ "facet-style": _ctx.style,
35538
+ onFilter: filter
35539
+ }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35540
+ ];
35541
+ }),
35542
+ _: 1
35543
+ }, 8, ["enabled", "loading"])
35383
35544
  ])) : createCommentVNode("", true);
35384
35545
  };
35385
35546
  }
35386
35547
  });
35387
- const _hoisted_1$K = { class: "lupa-mobile-sidebar-content" };
35548
+ const _hoisted_1$L = { class: "lupa-mobile-sidebar-content" };
35388
35549
  const _hoisted_2$y = { class: "lupa-sidebar-top" };
35389
35550
  const _hoisted_3$q = { class: "lupa-sidebar-title" };
35390
35551
  const _hoisted_4$i = {
@@ -35392,7 +35553,7 @@ and ensure you are accounting for this risk.
35392
35553
  class: "lupa-sidebar-filter-count"
35393
35554
  };
35394
35555
  const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
35395
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
35556
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
35396
35557
  __name: "MobileFilterSidebar",
35397
35558
  props: {
35398
35559
  options: {}
@@ -35431,7 +35592,7 @@ and ensure you are accounting for this risk.
35431
35592
  class: "lupa-sidebar-close",
35432
35593
  onClick: withModifiers(handleMobileToggle, ["stop"])
35433
35594
  }),
35434
- createBaseVNode("div", _hoisted_1$K, [
35595
+ createBaseVNode("div", _hoisted_1$L, [
35435
35596
  createBaseVNode("div", _hoisted_2$y, [
35436
35597
  createBaseVNode("div", _hoisted_3$q, [
35437
35598
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
@@ -35443,7 +35604,7 @@ and ensure you are accounting for this risk.
35443
35604
  })
35444
35605
  ]),
35445
35606
  createBaseVNode("div", _hoisted_5$c, [
35446
- createVNode(_sfc_main$S, {
35607
+ createVNode(_sfc_main$T, {
35447
35608
  options: _ctx.options,
35448
35609
  expandable: isActiveFiltersExpanded.value,
35449
35610
  style: "sidebar",
@@ -35455,14 +35616,17 @@ and ensure you are accounting for this risk.
35455
35616
  };
35456
35617
  }
35457
35618
  });
35458
- const _hoisted_1$J = { id: "lupa-search-results-breadcrumbs" };
35619
+ const _hoisted_1$K = {
35620
+ key: 0,
35621
+ id: "lupa-search-results-breadcrumbs"
35622
+ };
35459
35623
  const _hoisted_2$x = ["href", "onClick"];
35460
35624
  const _hoisted_3$p = {
35461
35625
  key: 1,
35462
35626
  class: "lupa-search-results-breadcrumb-text"
35463
35627
  };
35464
35628
  const _hoisted_4$h = { key: 2 };
35465
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
35629
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
35466
35630
  __name: "SearchResultsBreadcrumbs",
35467
35631
  props: {
35468
35632
  breadcrumbs: {}
@@ -35480,6 +35644,10 @@ and ensure you are accounting for this risk.
35480
35644
  const hasEventRouting = computed(() => {
35481
35645
  return searchResultOptions.value.routingBehavior === "event";
35482
35646
  });
35647
+ const hasBreadcrumbs = computed(() => {
35648
+ var _a25;
35649
+ return ((_a25 = breadcrumbsValue.value) == null ? void 0 : _a25.length) > 0;
35650
+ });
35483
35651
  const getLabel = (label) => {
35484
35652
  return addParamsToLabel(label, `'${currentQueryText.value}'`);
35485
35653
  };
@@ -35487,7 +35655,7 @@ and ensure you are accounting for this risk.
35487
35655
  handleRoutingEvent(link, event, hasEventRouting.value);
35488
35656
  };
35489
35657
  return (_ctx, _cache) => {
35490
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
35658
+ return hasBreadcrumbs.value ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
35491
35659
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
35492
35660
  var _a25;
35493
35661
  return openBlock(), createElementBlock("span", {
@@ -35506,16 +35674,16 @@ and ensure you are accounting for this risk.
35506
35674
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
35507
35675
  ]);
35508
35676
  }), 128))
35509
- ]);
35677
+ ])) : createCommentVNode("", true);
35510
35678
  };
35511
35679
  }
35512
35680
  });
35513
- const _hoisted_1$I = {
35681
+ const _hoisted_1$J = {
35514
35682
  key: 0,
35515
35683
  id: "lupa-search-result-filters",
35516
35684
  class: "lupa-search-result-filters lupa-search-result-top-filters"
35517
35685
  };
35518
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
35686
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
35519
35687
  __name: "FiltersTopDropdown",
35520
35688
  props: {
35521
35689
  options: {}
@@ -35523,6 +35691,7 @@ and ensure you are accounting for this risk.
35523
35691
  emits: ["filter"],
35524
35692
  setup(__props, { emit: __emit }) {
35525
35693
  const props = __props;
35694
+ const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
35526
35695
  const emit2 = __emit;
35527
35696
  const filter = () => {
35528
35697
  emit2("filter");
@@ -35532,21 +35701,33 @@ and ensure you are accounting for this risk.
35532
35701
  return (_a25 = props.options.visible) != null ? _a25 : true;
35533
35702
  });
35534
35703
  return (_ctx, _cache) => {
35535
- var _a25;
35536
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
35537
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
35538
- key: 0,
35539
- options: _ctx.options.facets,
35540
- "facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
35541
- clearable: true,
35542
- onFilter: filter
35543
- }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35704
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
35705
+ createVNode(_sfc_main$18, {
35706
+ class: "lupa-skeleton-top-dropdown-filters",
35707
+ count: 1,
35708
+ enabled: unref(facetSkeletonEnabled),
35709
+ loading: unref(loadingFacets)
35710
+ }, {
35711
+ default: withCtx(() => {
35712
+ var _a25;
35713
+ return [
35714
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
35715
+ key: 0,
35716
+ options: _ctx.options.facets,
35717
+ "facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
35718
+ clearable: true,
35719
+ onFilter: filter
35720
+ }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35721
+ ];
35722
+ }),
35723
+ _: 1
35724
+ }, 8, ["enabled", "loading"])
35544
35725
  ])) : createCommentVNode("", true);
35545
35726
  };
35546
35727
  }
35547
35728
  });
35548
- const _hoisted_1$H = { id: "lupa-search-results-layout-selection" };
35549
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
35729
+ const _hoisted_1$I = { id: "lupa-search-results-layout-selection" };
35730
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
35550
35731
  __name: "SearchResultsLayoutSelection",
35551
35732
  setup(__props) {
35552
35733
  const searchResultStore = useSearchResultStore();
@@ -35557,7 +35738,7 @@ and ensure you are accounting for this risk.
35557
35738
  searchResultStore.setLayout(layout2);
35558
35739
  };
35559
35740
  return (_ctx, _cache) => {
35560
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
35741
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
35561
35742
  createBaseVNode("div", {
35562
35743
  class: normalizeClass([
35563
35744
  "lupa-layout-selection-grid",
@@ -35579,11 +35760,11 @@ and ensure you are accounting for this risk.
35579
35760
  };
35580
35761
  }
35581
35762
  });
35582
- const _hoisted_1$G = {
35763
+ const _hoisted_1$H = {
35583
35764
  key: 0,
35584
35765
  class: "lupa-mobile-toggle-filter-count"
35585
35766
  };
35586
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
35767
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
35587
35768
  __name: "SearchResultsMobileToggle",
35588
35769
  setup(__props) {
35589
35770
  const {
@@ -35605,12 +35786,12 @@ and ensure you are accounting for this risk.
35605
35786
  (...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
35606
35787
  }, [
35607
35788
  createTextVNode(toDisplayString(unref(label)) + " ", 1),
35608
- unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$G, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35789
+ unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35609
35790
  ], 2);
35610
35791
  };
35611
35792
  }
35612
35793
  });
35613
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
35794
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
35614
35795
  __name: "SearchResultsMobileFilterClose",
35615
35796
  props: {
35616
35797
  label: {}
@@ -35630,7 +35811,7 @@ and ensure you are accounting for this risk.
35630
35811
  };
35631
35812
  }
35632
35813
  });
35633
- const _hoisted_1$F = {
35814
+ const _hoisted_1$G = {
35634
35815
  key: 0,
35635
35816
  id: "lupa-search-results-page-select",
35636
35817
  "data-cy": "lupa-search-results-page-select"
@@ -35643,7 +35824,7 @@ and ensure you are accounting for this risk.
35643
35824
  key: 0,
35644
35825
  class: "lupa-page-number-separator"
35645
35826
  };
35646
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
35827
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
35647
35828
  __name: "SearchResultsPageSelect",
35648
35829
  props: {
35649
35830
  lastPageLabel: {},
@@ -35738,7 +35919,7 @@ and ensure you are accounting for this risk.
35738
35919
  };
35739
35920
  return (_ctx, _cache) => {
35740
35921
  var _a25;
35741
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
35922
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
35742
35923
  showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
35743
35924
  key: 0,
35744
35925
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -35813,7 +35994,7 @@ and ensure you are accounting for this risk.
35813
35994
  };
35814
35995
  }
35815
35996
  });
35816
- const _hoisted_1$E = {
35997
+ const _hoisted_1$F = {
35817
35998
  id: "lupa-search-results-page-size",
35818
35999
  "data-cy": "lupa-search-results-page-size"
35819
36000
  };
@@ -35824,7 +36005,7 @@ and ensure you are accounting for this risk.
35824
36005
  };
35825
36006
  const _hoisted_4$g = ["value", "aria-label"];
35826
36007
  const _hoisted_5$b = ["value"];
35827
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
36008
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
35828
36009
  __name: "SearchResultsPageSize",
35829
36010
  props: {
35830
36011
  labels: {},
@@ -35855,7 +36036,7 @@ and ensure you are accounting for this risk.
35855
36036
  };
35856
36037
  return (_ctx, _cache) => {
35857
36038
  var _a25, _b25, _c;
35858
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
36039
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
35859
36040
  createBaseVNode("div", _hoisted_2$v, [
35860
36041
  createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
35861
36042
  createBaseVNode("select", {
@@ -35947,7 +36128,7 @@ and ensure you are accounting for this risk.
35947
36128
  setSortValue
35948
36129
  };
35949
36130
  };
35950
- const _hoisted_1$D = {
36131
+ const _hoisted_1$E = {
35951
36132
  key: 0,
35952
36133
  id: "lupa-search-results-sort",
35953
36134
  class: "lupa-search-results-sort"
@@ -35959,7 +36140,7 @@ and ensure you are accounting for this risk.
35959
36140
  };
35960
36141
  const _hoisted_4$f = ["aria-label"];
35961
36142
  const _hoisted_5$a = ["value"];
35962
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
36143
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
35963
36144
  __name: "SearchResultsSort",
35964
36145
  setup(__props) {
35965
36146
  const {
@@ -35980,7 +36161,7 @@ and ensure you are accounting for this risk.
35980
36161
  });
35981
36162
  return (_ctx, _cache) => {
35982
36163
  var _a25, _b25;
35983
- return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
36164
+ return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
35984
36165
  createBaseVNode("div", _hoisted_2$u, [
35985
36166
  createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
35986
36167
  withDirectives(createBaseVNode("select", {
@@ -36007,7 +36188,7 @@ and ensure you are accounting for this risk.
36007
36188
  };
36008
36189
  }
36009
36190
  });
36010
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
36191
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
36011
36192
  __name: "SearchResultsSortDrawerToggle",
36012
36193
  setup(__props) {
36013
36194
  const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
@@ -36023,7 +36204,7 @@ and ensure you are accounting for this risk.
36023
36204
  };
36024
36205
  }
36025
36206
  });
36026
- const _hoisted_1$C = { class: "lupa-toolbar-left" };
36207
+ const _hoisted_1$D = { class: "lupa-toolbar-left" };
36027
36208
  const _hoisted_2$t = {
36028
36209
  key: 0,
36029
36210
  class: "lupa-toolbar-right-title"
@@ -36038,7 +36219,7 @@ and ensure you are accounting for this risk.
36038
36219
  };
36039
36220
  const _hoisted_8 = { key: 2 };
36040
36221
  const _hoisted_9 = { key: 4 };
36041
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
36222
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
36042
36223
  __name: "SearchResultsToolbar",
36043
36224
  props: {
36044
36225
  options: {},
@@ -36151,16 +36332,16 @@ and ensure you are accounting for this risk.
36151
36332
  id: "lupa-search-results-toolbar",
36152
36333
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
36153
36334
  }, [
36154
- createBaseVNode("div", _hoisted_1$C, [
36335
+ createBaseVNode("div", _hoisted_1$D, [
36155
36336
  toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
36156
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$O, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
36157
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$17, {
36337
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$P, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
36338
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$1b, {
36158
36339
  key: 3,
36159
36340
  label: searchSummaryLabel.value,
36160
36341
  clearable: unref(hasAnyFilter) && showFilterClear.value,
36161
36342
  onClear: handleClearAll
36162
36343
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
36163
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$L, {
36344
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$M, {
36164
36345
  key: 5,
36165
36346
  options: paginationOptions.value.pageSelect,
36166
36347
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -36169,19 +36350,19 @@ and ensure you are accounting for this risk.
36169
36350
  ]),
36170
36351
  createBaseVNode("div", _hoisted_6$4, [
36171
36352
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
36172
- createVNode(_sfc_main$N),
36173
- createVNode(_sfc_main$I),
36174
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$K, {
36353
+ createVNode(_sfc_main$O),
36354
+ createVNode(_sfc_main$J),
36355
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$L, {
36175
36356
  key: 1,
36176
36357
  options: paginationOptions.value.pageSize,
36177
36358
  labels: paginationOptions.value.labels
36178
36359
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
36179
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$J, {
36360
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$K, {
36180
36361
  key: 3,
36181
36362
  options: sortOptions.value,
36182
36363
  callbacks: callbacks.value
36183
36364
  }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
36184
- showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$M, {
36365
+ showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$N, {
36185
36366
  key: 5,
36186
36367
  label: optionsValue.value.labels.mobileFilterCloseButton
36187
36368
  }, null, 8, ["label"])) : createCommentVNode("", true)
@@ -36190,7 +36371,7 @@ and ensure you are accounting for this risk.
36190
36371
  };
36191
36372
  }
36192
36373
  });
36193
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
36374
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
36194
36375
  __name: "SearchResultsProductImage",
36195
36376
  props: {
36196
36377
  item: {},
@@ -36198,7 +36379,7 @@ and ensure you are accounting for this risk.
36198
36379
  },
36199
36380
  setup(__props) {
36200
36381
  return (_ctx, _cache) => {
36201
- return openBlock(), createBlock(_sfc_main$1w, {
36382
+ return openBlock(), createBlock(_sfc_main$1A, {
36202
36383
  item: _ctx.item,
36203
36384
  options: _ctx.options,
36204
36385
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -36207,7 +36388,7 @@ and ensure you are accounting for this risk.
36207
36388
  };
36208
36389
  }
36209
36390
  });
36210
- const _hoisted_1$B = ["title", "innerHTML"];
36391
+ const _hoisted_1$C = ["title", "innerHTML"];
36211
36392
  const _hoisted_2$s = ["title"];
36212
36393
  const _hoisted_3$k = ["href", "innerHTML"];
36213
36394
  const _hoisted_4$d = ["title"];
@@ -36216,7 +36397,7 @@ and ensure you are accounting for this risk.
36216
36397
  class: "lupa-search-results-product-title-text"
36217
36398
  };
36218
36399
  const _hoisted_6$3 = ["href"];
36219
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
36400
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
36220
36401
  __name: "SearchResultsProductTitle",
36221
36402
  props: {
36222
36403
  item: {},
@@ -36253,7 +36434,7 @@ and ensure you are accounting for this risk.
36253
36434
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
36254
36435
  title: sanitizedTitle.value,
36255
36436
  innerHTML: sanitizedTitle.value
36256
- }, null, 12, _hoisted_1$B)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
36437
+ }, null, 12, _hoisted_1$C)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
36257
36438
  key: 1,
36258
36439
  class: "lupa-search-results-product-title",
36259
36440
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -36282,8 +36463,8 @@ and ensure you are accounting for this risk.
36282
36463
  };
36283
36464
  }
36284
36465
  });
36285
- const _hoisted_1$A = ["innerHTML"];
36286
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
36466
+ const _hoisted_1$B = ["innerHTML"];
36467
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
36287
36468
  __name: "SearchResultsProductDescription",
36288
36469
  props: {
36289
36470
  item: {},
@@ -36310,7 +36491,7 @@ and ensure you are accounting for this risk.
36310
36491
  class: "lupa-search-results-product-description",
36311
36492
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
36312
36493
  innerHTML: sanitizedDescription.value
36313
- }, null, 12, _hoisted_1$A)) : (openBlock(), createElementBlock("div", {
36494
+ }, null, 12, _hoisted_1$B)) : (openBlock(), createElementBlock("div", {
36314
36495
  key: 1,
36315
36496
  class: "lupa-search-results-product-description",
36316
36497
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -36318,7 +36499,7 @@ and ensure you are accounting for this risk.
36318
36499
  };
36319
36500
  }
36320
36501
  });
36321
- const _hoisted_1$z = { id: "lupa-search-results-rating" };
36502
+ const _hoisted_1$A = { id: "lupa-search-results-rating" };
36322
36503
  const _hoisted_2$r = { class: "lupa-ratings" };
36323
36504
  const _hoisted_3$j = { class: "lupa-ratings-base" };
36324
36505
  const _hoisted_4$c = ["innerHTML"];
@@ -36326,7 +36507,7 @@ and ensure you are accounting for this risk.
36326
36507
  const _hoisted_6$2 = ["innerHTML"];
36327
36508
  const _hoisted_7$1 = ["href"];
36328
36509
  const STAR_COUNT = 5;
36329
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
36510
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
36330
36511
  __name: "SearchResultsProductRating",
36331
36512
  props: {
36332
36513
  item: {},
@@ -36363,7 +36544,7 @@ and ensure you are accounting for this risk.
36363
36544
  return generateLink(props.options.links.ratingDetails, props.item);
36364
36545
  });
36365
36546
  return (_ctx, _cache) => {
36366
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
36547
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
36367
36548
  createBaseVNode("div", _hoisted_2$r, [
36368
36549
  createBaseVNode("div", _hoisted_3$j, [
36369
36550
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
@@ -36397,11 +36578,11 @@ and ensure you are accounting for this risk.
36397
36578
  };
36398
36579
  }
36399
36580
  });
36400
- const _hoisted_1$y = {
36581
+ const _hoisted_1$z = {
36401
36582
  class: "lupa-search-results-product-regular-price",
36402
36583
  "data-cy": "lupa-search-results-product-regular-price"
36403
36584
  };
36404
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
36585
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
36405
36586
  __name: "SearchResultsProductRegularPrice",
36406
36587
  props: {
36407
36588
  item: {},
@@ -36423,11 +36604,11 @@ and ensure you are accounting for this risk.
36423
36604
  );
36424
36605
  });
36425
36606
  return (_ctx, _cache) => {
36426
- return openBlock(), createElementBlock("div", _hoisted_1$y, toDisplayString(price.value), 1);
36607
+ return openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString(price.value), 1);
36427
36608
  };
36428
36609
  }
36429
36610
  });
36430
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
36611
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
36431
36612
  __name: "SearchResultsProductPrice",
36432
36613
  props: {
36433
36614
  item: {},
@@ -36461,12 +36642,12 @@ and ensure you are accounting for this risk.
36461
36642
  };
36462
36643
  }
36463
36644
  });
36464
- const _hoisted_1$x = { class: "lupa-search-results-add-to-cart-wrapper" };
36645
+ const _hoisted_1$y = { class: "lupa-search-results-add-to-cart-wrapper" };
36465
36646
  const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
36466
36647
  const _hoisted_3$i = ["disabled"];
36467
36648
  const _hoisted_4$b = ["href"];
36468
36649
  const _hoisted_5$6 = ["id", "disabled"];
36469
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
36650
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
36470
36651
  __name: "SearchResultsProductAddToCart",
36471
36652
  props: {
36472
36653
  item: {},
@@ -36525,7 +36706,7 @@ and ensure you are accounting for this risk.
36525
36706
  loading.value = false;
36526
36707
  });
36527
36708
  return (_ctx, _cache) => {
36528
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
36709
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
36529
36710
  createBaseVNode("div", _hoisted_2$q, [
36530
36711
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
36531
36712
  key: 0,
@@ -36548,12 +36729,12 @@ and ensure you are accounting for this risk.
36548
36729
  };
36549
36730
  }
36550
36731
  });
36551
- const _hoisted_1$w = ["innerHTML"];
36732
+ const _hoisted_1$x = ["innerHTML"];
36552
36733
  const _hoisted_2$p = { key: 0 };
36553
36734
  const _hoisted_3$h = { key: 1 };
36554
36735
  const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
36555
36736
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
36556
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
36737
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
36557
36738
  __name: "SearchResultsProductCustom",
36558
36739
  props: {
36559
36740
  item: {},
@@ -36595,7 +36776,7 @@ and ensure you are accounting for this risk.
36595
36776
  key: 0,
36596
36777
  class: className.value,
36597
36778
  innerHTML: text.value
36598
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w)) : (openBlock(), createElementBlock("div", mergeProps({
36779
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$x)) : (openBlock(), createElementBlock("div", mergeProps({
36599
36780
  key: 1,
36600
36781
  class: className.value
36601
36782
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
@@ -36607,8 +36788,8 @@ and ensure you are accounting for this risk.
36607
36788
  };
36608
36789
  }
36609
36790
  });
36610
- const _hoisted_1$v = ["innerHTML"];
36611
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
36791
+ const _hoisted_1$w = ["innerHTML"];
36792
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
36612
36793
  __name: "SearchResultsProductCustomHtmlElement",
36613
36794
  props: {
36614
36795
  item: {},
@@ -36644,15 +36825,15 @@ and ensure you are accounting for this risk.
36644
36825
  return openBlock(), createElementBlock("div", mergeProps({
36645
36826
  class: className.value,
36646
36827
  innerHTML: text.value
36647
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$v);
36828
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w);
36648
36829
  };
36649
36830
  }
36650
36831
  });
36651
- const _hoisted_1$u = { id: "lupa-search-results-rating" };
36832
+ const _hoisted_1$v = { id: "lupa-search-results-rating" };
36652
36833
  const _hoisted_2$o = ["innerHTML"];
36653
36834
  const _hoisted_3$g = { class: "lupa-ratings" };
36654
36835
  const _hoisted_4$9 = ["href"];
36655
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
36836
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
36656
36837
  __name: "SearchResultsProductSingleStarRating",
36657
36838
  props: {
36658
36839
  item: {},
@@ -36680,7 +36861,7 @@ and ensure you are accounting for this risk.
36680
36861
  return RATING_STAR_HTML;
36681
36862
  });
36682
36863
  return (_ctx, _cache) => {
36683
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
36864
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
36684
36865
  createBaseVNode("div", {
36685
36866
  innerHTML: star.value,
36686
36867
  class: "lupa-rating lupa-rating-highlighted"
@@ -36696,19 +36877,19 @@ and ensure you are accounting for this risk.
36696
36877
  });
36697
36878
  const __default__ = {
36698
36879
  components: {
36699
- SearchResultsProductImage: _sfc_main$G,
36700
- SearchResultsProductTitle: _sfc_main$F,
36701
- SearchResultsProductDescription: _sfc_main$E,
36702
- SearchResultsProductRating: _sfc_main$D,
36703
- SearchResultsProductRegularPrice: _sfc_main$C,
36704
- SearchResultsProductPrice: _sfc_main$B,
36705
- SearchResultsProductAddToCart: _sfc_main$A,
36706
- SearchResultsProductCustom: _sfc_main$z,
36707
- SearchResultsProductCustomHtmlElement: _sfc_main$y,
36708
- SearchResultsProductSingleStarRating: _sfc_main$x
36709
- }
36710
- };
36711
- const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
36880
+ SearchResultsProductImage: _sfc_main$H,
36881
+ SearchResultsProductTitle: _sfc_main$G,
36882
+ SearchResultsProductDescription: _sfc_main$F,
36883
+ SearchResultsProductRating: _sfc_main$E,
36884
+ SearchResultsProductRegularPrice: _sfc_main$D,
36885
+ SearchResultsProductPrice: _sfc_main$C,
36886
+ SearchResultsProductAddToCart: _sfc_main$B,
36887
+ SearchResultsProductCustom: _sfc_main$A,
36888
+ SearchResultsProductCustomHtmlElement: _sfc_main$z,
36889
+ SearchResultsProductSingleStarRating: _sfc_main$y
36890
+ }
36891
+ };
36892
+ const _sfc_main$x = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
36712
36893
  __name: "SearchResultsProductCardElement",
36713
36894
  props: {
36714
36895
  item: {},
@@ -36786,13 +36967,13 @@ and ensure you are accounting for this risk.
36786
36967
  };
36787
36968
  }
36788
36969
  }));
36789
- const _hoisted_1$t = ["href"];
36970
+ const _hoisted_1$u = ["href"];
36790
36971
  const _hoisted_2$n = {
36791
36972
  key: 0,
36792
36973
  class: "lupa-out-of-stock"
36793
36974
  };
36794
36975
  const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
36795
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
36976
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
36796
36977
  __name: "SearchResultsProductCard",
36797
36978
  props: {
36798
36979
  product: {},
@@ -36969,7 +37150,7 @@ and ensure you are accounting for this risk.
36969
37150
  default: withCtx(() => {
36970
37151
  var _a25;
36971
37152
  return [
36972
- createVNode(_sfc_main$1g, { options: badgesOptions.value }, null, 8, ["options"]),
37153
+ createVNode(_sfc_main$1k, { options: badgesOptions.value }, null, 8, ["options"]),
36973
37154
  createBaseVNode("div", {
36974
37155
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
36975
37156
  }, [
@@ -36979,7 +37160,7 @@ and ensure you are accounting for this risk.
36979
37160
  onClick: handleNavigation
36980
37161
  }, [
36981
37162
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
36982
- return openBlock(), createBlock(_sfc_main$w, {
37163
+ return openBlock(), createBlock(_sfc_main$x, {
36983
37164
  class: "lupa-search-results-product-element",
36984
37165
  item: _ctx.product,
36985
37166
  element,
@@ -36990,16 +37171,16 @@ and ensure you are accounting for this risk.
36990
37171
  onProductEvent: handleProductEvent
36991
37172
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
36992
37173
  }), 128)),
36993
- createVNode(_sfc_main$1g, {
37174
+ createVNode(_sfc_main$1k, {
36994
37175
  options: badgesOptions.value,
36995
37176
  position: "image",
36996
37177
  class: "lupa-image-badges"
36997
37178
  }, null, 8, ["options"]),
36998
37179
  ((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
36999
- ], 8, _hoisted_1$t),
37180
+ ], 8, _hoisted_1$u),
37000
37181
  createBaseVNode("div", _hoisted_3$f, [
37001
37182
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
37002
- return openBlock(), createBlock(_sfc_main$w, {
37183
+ return openBlock(), createBlock(_sfc_main$x, {
37003
37184
  class: "lupa-search-results-product-element",
37004
37185
  item: _ctx.product,
37005
37186
  element,
@@ -37017,7 +37198,7 @@ and ensure you are accounting for this risk.
37017
37198
  class: normalizeClass("lupa-element-group-" + group)
37018
37199
  }, [
37019
37200
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
37020
- return openBlock(), createBlock(_sfc_main$w, {
37201
+ return openBlock(), createBlock(_sfc_main$x, {
37021
37202
  class: "lupa-search-results-product-element",
37022
37203
  item: _ctx.product,
37023
37204
  element,
@@ -37038,7 +37219,7 @@ and ensure you are accounting for this risk.
37038
37219
  };
37039
37220
  }
37040
37221
  });
37041
- const _hoisted_1$s = {
37222
+ const _hoisted_1$t = {
37042
37223
  id: "lupa-search-results-similar-queries",
37043
37224
  "data-cy": "lupa-search-results-similar-queries"
37044
37225
  };
@@ -37054,7 +37235,7 @@ and ensure you are accounting for this risk.
37054
37235
  class: "lupa-products",
37055
37236
  "data-cy": "lupa-products"
37056
37237
  };
37057
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
37238
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37058
37239
  __name: "SearchResultsSimilarQueries",
37059
37240
  props: {
37060
37241
  labels: {},
@@ -37092,7 +37273,7 @@ and ensure you are accounting for this risk.
37092
37273
  };
37093
37274
  };
37094
37275
  return (_ctx, _cache) => {
37095
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
37276
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
37096
37277
  createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
37097
37278
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
37098
37279
  return openBlock(), createElementBlock("div", { key: index }, [
@@ -37112,7 +37293,7 @@ and ensure you are accounting for this risk.
37112
37293
  ]),
37113
37294
  createBaseVNode("div", _hoisted_7, [
37114
37295
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
37115
- return openBlock(), createBlock(_sfc_main$v, {
37296
+ return openBlock(), createBlock(_sfc_main$w, {
37116
37297
  style: normalizeStyle(_ctx.columnSize),
37117
37298
  key: getDocumentKey(index2, product),
37118
37299
  product,
@@ -37127,7 +37308,7 @@ and ensure you are accounting for this risk.
37127
37308
  };
37128
37309
  }
37129
37310
  });
37130
- const _hoisted_1$r = {
37311
+ const _hoisted_1$s = {
37131
37312
  key: 0,
37132
37313
  class: "lupa-results-additional-panel"
37133
37314
  };
@@ -37135,7 +37316,7 @@ and ensure you are accounting for this risk.
37135
37316
  class: "lupa-results-additional-panel-items",
37136
37317
  "data-cy": "lupa-results-additional-panel-items"
37137
37318
  };
37138
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
37319
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37139
37320
  __name: "AdditionalPanel",
37140
37321
  props: {
37141
37322
  panel: {},
@@ -37208,10 +37389,10 @@ and ensure you are accounting for this risk.
37208
37389
  handleQueryChange();
37209
37390
  });
37210
37391
  return (_ctx, _cache) => {
37211
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
37392
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
37212
37393
  createBaseVNode("div", _hoisted_2$l, [
37213
37394
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
37214
- return openBlock(), createBlock(_sfc_main$v, {
37395
+ return openBlock(), createBlock(_sfc_main$w, {
37215
37396
  key: index,
37216
37397
  product: item,
37217
37398
  options: _ctx.panel,
@@ -37229,11 +37410,11 @@ and ensure you are accounting for this risk.
37229
37410
  };
37230
37411
  }
37231
37412
  });
37232
- const _hoisted_1$q = {
37413
+ const _hoisted_1$r = {
37233
37414
  key: 0,
37234
37415
  class: "lupa-results-additional-panels"
37235
37416
  };
37236
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
37417
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37237
37418
  __name: "AdditionalPanels",
37238
37419
  props: {
37239
37420
  options: {},
@@ -37250,9 +37431,9 @@ and ensure you are accounting for this risk.
37250
37431
  return locationPanels.value.length > 0;
37251
37432
  });
37252
37433
  return (_ctx, _cache) => {
37253
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$q, [
37434
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
37254
37435
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
37255
- return openBlock(), createBlock(_sfc_main$t, {
37436
+ return openBlock(), createBlock(_sfc_main$u, {
37256
37437
  key: panel.queryKey,
37257
37438
  panel,
37258
37439
  options: _ctx.sdkOptions
@@ -37269,11 +37450,11 @@ and ensure you are accounting for this risk.
37269
37450
  }
37270
37451
  return target2;
37271
37452
  };
37272
- const _sfc_main$r = {};
37273
- const _hoisted_1$p = { class: "lupa-spinner-wrapper" };
37453
+ const _sfc_main$s = {};
37454
+ const _hoisted_1$q = { class: "lupa-spinner-wrapper" };
37274
37455
  const _hoisted_2$k = { class: "lupa-spinner" };
37275
37456
  function _sfc_render(_ctx, _cache) {
37276
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
37457
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
37277
37458
  createBaseVNode("div", _hoisted_2$k, [
37278
37459
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
37279
37460
  return createBaseVNode("div", { key: x });
@@ -37281,8 +37462,8 @@ and ensure you are accounting for this risk.
37281
37462
  ])
37282
37463
  ]);
37283
37464
  }
37284
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render]]);
37285
- const _hoisted_1$o = {
37465
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
37466
+ const _hoisted_1$p = {
37286
37467
  id: "lupa-search-results-similar-results",
37287
37468
  "data-cy": "lupa-search-results-similar-results"
37288
37469
  };
@@ -37291,7 +37472,7 @@ and ensure you are accounting for this risk.
37291
37472
  class: "lupa-products",
37292
37473
  "data-cy": "lupa-products"
37293
37474
  };
37294
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
37475
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
37295
37476
  __name: "SearchResultsSimilarResults",
37296
37477
  props: {
37297
37478
  columnSize: {},
@@ -37312,11 +37493,11 @@ and ensure you are accounting for this risk.
37312
37493
  };
37313
37494
  });
37314
37495
  return (_ctx, _cache) => {
37315
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
37496
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
37316
37497
  createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
37317
37498
  createBaseVNode("div", _hoisted_3$d, [
37318
37499
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
37319
- return openBlock(), createBlock(_sfc_main$v, {
37500
+ return openBlock(), createBlock(_sfc_main$w, {
37320
37501
  style: normalizeStyle(_ctx.columnSize),
37321
37502
  key: getDocumentKey(index, product),
37322
37503
  product,
@@ -37437,7 +37618,7 @@ and ensure you are accounting for this risk.
37437
37618
  return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
37438
37619
  }
37439
37620
  });
37440
- const _hoisted_1$n = { class: "lupa-related-query-item" };
37621
+ const _hoisted_1$o = { class: "lupa-related-query-item" };
37441
37622
  const _hoisted_2$i = { class: "lupa-related-query-image" };
37442
37623
  const _hoisted_3$c = { class: "lupa-related-query-label" };
37443
37624
  const _hoisted_4$7 = { class: "lupa-related-query-title" };
@@ -37445,7 +37626,7 @@ and ensure you are accounting for this risk.
37445
37626
  key: 0,
37446
37627
  class: "lupa-related-query-count"
37447
37628
  };
37448
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
37629
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
37449
37630
  __name: "RelatedQueryPanel",
37450
37631
  props: {
37451
37632
  query: {},
@@ -37542,9 +37723,9 @@ and ensure you are accounting for this risk.
37542
37723
  });
37543
37724
  return (_ctx, _cache) => {
37544
37725
  var _a25;
37545
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
37726
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
37546
37727
  createBaseVNode("div", _hoisted_2$i, [
37547
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
37728
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
37548
37729
  key: 0,
37549
37730
  "wrapper-class": "lupa-related-query-image-wrapper",
37550
37731
  "image-class": "lupa-related-query-image",
@@ -37560,7 +37741,7 @@ and ensure you are accounting for this risk.
37560
37741
  };
37561
37742
  }
37562
37743
  });
37563
- const _hoisted_1$m = {
37744
+ const _hoisted_1$n = {
37564
37745
  key: 0,
37565
37746
  class: "lupa-related-queries"
37566
37747
  };
@@ -37569,7 +37750,7 @@ and ensure you are accounting for this risk.
37569
37750
  class: "lupa-related-queries-title"
37570
37751
  };
37571
37752
  const _hoisted_3$b = ["onClick"];
37572
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
37753
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
37573
37754
  __name: "RelatedQueries",
37574
37755
  props: {
37575
37756
  options: {}
@@ -37663,7 +37844,7 @@ and ensure you are accounting for this risk.
37663
37844
  };
37664
37845
  return (_ctx, _cache) => {
37665
37846
  var _a25, _b25, _c, _d;
37666
- return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
37847
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
37667
37848
  ((_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),
37668
37849
  createBaseVNode("ul", null, [
37669
37850
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
@@ -37674,7 +37855,7 @@ and ensure you are accounting for this risk.
37674
37855
  createBaseVNode("a", {
37675
37856
  onClick: ($event) => handleRelatedQueryClick(query)
37676
37857
  }, [
37677
- createVNode(_sfc_main$p, {
37858
+ createVNode(_sfc_main$q, {
37678
37859
  "source-key": query.key,
37679
37860
  options: _ctx.options,
37680
37861
  query: query.value,
@@ -37718,13 +37899,13 @@ and ensure you are accounting for this risk.
37718
37899
  }
37719
37900
  return null;
37720
37901
  };
37721
- const _hoisted_1$l = {
37902
+ const _hoisted_1$m = {
37722
37903
  key: 0,
37723
37904
  class: "lupa-redirection-suggestion"
37724
37905
  };
37725
37906
  const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
37726
37907
  const _hoisted_3$a = ["href"];
37727
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
37908
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
37728
37909
  __name: "RedirectionSuggestions",
37729
37910
  props: {
37730
37911
  options: {}
@@ -37747,7 +37928,7 @@ and ensure you are accounting for this risk.
37747
37928
  )
37748
37929
  );
37749
37930
  return (_ctx, _cache) => {
37750
- return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
37931
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
37751
37932
  createBaseVNode("h4", _hoisted_2$g, [
37752
37933
  createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
37753
37934
  ])
@@ -37755,11 +37936,11 @@ and ensure you are accounting for this risk.
37755
37936
  };
37756
37937
  }
37757
37938
  });
37758
- const _hoisted_1$k = {
37939
+ const _hoisted_1$l = {
37759
37940
  key: 0,
37760
37941
  class: "lupa-refiners-loading-notice"
37761
37942
  };
37762
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
37943
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
37763
37944
  __name: "RefinersLoadingNotice",
37764
37945
  props: {
37765
37946
  labels: {}
@@ -37770,14 +37951,14 @@ and ensure you are accounting for this risk.
37770
37951
  const props = __props;
37771
37952
  const label = computed(() => props.labels.refinersLoadingNotice);
37772
37953
  return (_ctx, _cache) => {
37773
- return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
37954
+ return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
37774
37955
  createBaseVNode("p", null, toDisplayString(label.value), 1),
37775
37956
  createVNode(Spinner)
37776
37957
  ])) : createCommentVNode("", true);
37777
37958
  };
37778
37959
  }
37779
37960
  });
37780
- const _hoisted_1$j = { class: "lupa-related-query-item" };
37961
+ const _hoisted_1$k = { class: "lupa-related-query-item" };
37781
37962
  const _hoisted_2$f = { class: "lupa-related-query-image" };
37782
37963
  const _hoisted_3$9 = { class: "lupa-related-query-label" };
37783
37964
  const _hoisted_4$6 = { class: "lupa-related-query-title" };
@@ -37785,7 +37966,7 @@ and ensure you are accounting for this risk.
37785
37966
  key: 0,
37786
37967
  class: "lupa-related-query-count"
37787
37968
  };
37788
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
37969
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
37789
37970
  __name: "RelatedQueryPanelApi",
37790
37971
  props: {
37791
37972
  relatedQuery: {},
@@ -37817,9 +37998,9 @@ and ensure you are accounting for this risk.
37817
37998
  });
37818
37999
  return (_ctx, _cache) => {
37819
38000
  var _a25;
37820
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
38001
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
37821
38002
  createBaseVNode("div", _hoisted_2$f, [
37822
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
38003
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
37823
38004
  key: 0,
37824
38005
  "wrapper-class": "lupa-related-query-image-wrapper",
37825
38006
  "image-class": "lupa-related-query-image",
@@ -37835,7 +38016,7 @@ and ensure you are accounting for this risk.
37835
38016
  };
37836
38017
  }
37837
38018
  });
37838
- const _hoisted_1$i = {
38019
+ const _hoisted_1$j = {
37839
38020
  key: 0,
37840
38021
  class: "lupa-related-queries"
37841
38022
  };
@@ -37844,7 +38025,7 @@ and ensure you are accounting for this risk.
37844
38025
  class: "lupa-related-queries-title"
37845
38026
  };
37846
38027
  const _hoisted_3$8 = ["onClick"];
37847
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
38028
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
37848
38029
  __name: "RelatedQueriesApi",
37849
38030
  props: {
37850
38031
  options: {}
@@ -37896,7 +38077,7 @@ and ensure you are accounting for this risk.
37896
38077
  };
37897
38078
  return (_ctx, _cache) => {
37898
38079
  var _a25, _b25, _c, _d;
37899
- return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
38080
+ return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
37900
38081
  ((_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),
37901
38082
  createBaseVNode("ul", null, [
37902
38083
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
@@ -37907,7 +38088,7 @@ and ensure you are accounting for this risk.
37907
38088
  createBaseVNode("a", {
37908
38089
  onClick: ($event) => handleRelatedQueryClick(query)
37909
38090
  }, [
37910
- createVNode(_sfc_main$l, {
38091
+ createVNode(_sfc_main$m, {
37911
38092
  relatedQuery: query,
37912
38093
  options: _ctx.options
37913
38094
  }, null, 8, ["relatedQuery", "options"])
@@ -37919,9 +38100,9 @@ and ensure you are accounting for this risk.
37919
38100
  };
37920
38101
  }
37921
38102
  });
37922
- const _hoisted_1$h = { key: 0 };
38103
+ const _hoisted_1$i = { key: 0 };
37923
38104
  const _hoisted_2$d = ["innerHTML"];
37924
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
38105
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
37925
38106
  __name: "ZeroResults",
37926
38107
  props: {
37927
38108
  emptyResultsLabel: {},
@@ -37950,7 +38131,7 @@ and ensure you are accounting for this risk.
37950
38131
  });
37951
38132
  return (_ctx, _cache) => {
37952
38133
  return openBlock(), createElementBlock(Fragment, null, [
37953
- showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
38134
+ showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
37954
38135
  createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
37955
38136
  createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
37956
38137
  ])) : createCommentVNode("", true),
@@ -37962,6 +38143,31 @@ and ensure you are accounting for this risk.
37962
38143
  };
37963
38144
  }
37964
38145
  });
38146
+ const _hoisted_1$h = {
38147
+ key: 1,
38148
+ class: "lupa-skeleton-grid"
38149
+ };
38150
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
38151
+ __name: "LoadingGrid",
38152
+ props: {
38153
+ style: {},
38154
+ enabled: { type: Boolean },
38155
+ loading: { type: Boolean },
38156
+ count: {}
38157
+ },
38158
+ setup(__props) {
38159
+ return (_ctx, _cache) => {
38160
+ return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
38161
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
38162
+ return openBlock(), createBlock(_sfc_main$1a, {
38163
+ key: n,
38164
+ style: normalizeStyle(_ctx.style)
38165
+ }, null, 8, ["style"]);
38166
+ }), 128))
38167
+ ]));
38168
+ };
38169
+ }
38170
+ });
37965
38171
  const _hoisted_1$g = { id: "lupa-search-results-products" };
37966
38172
  const _hoisted_2$c = {
37967
38173
  class: "lupa-products",
@@ -37973,12 +38179,12 @@ and ensure you are accounting for this risk.
37973
38179
  "data-cy": "lupa-no-results-in-page"
37974
38180
  };
37975
38181
  const _hoisted_4$5 = {
37976
- key: 5,
38182
+ key: 3,
37977
38183
  class: "lupa-empty-results",
37978
38184
  "data-cy": "lupa-no-results"
37979
38185
  };
37980
- const _hoisted_5$1 = { key: 6 };
37981
- const _hoisted_6 = { key: 7 };
38186
+ const _hoisted_5$1 = { key: 4 };
38187
+ const _hoisted_6 = { key: 5 };
37982
38188
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
37983
38189
  __name: "SearchResultsProducts",
37984
38190
  props: {
@@ -38002,6 +38208,7 @@ and ensure you are accounting for this risk.
38002
38208
  loading,
38003
38209
  relatedQueriesApiEnabled
38004
38210
  } = storeToRefs(searchResultStore);
38211
+ const { limit, skeletonEnabled, relatedQueriesSkeletonEnabled, loadingRelatedQueries } = useLoadingSkeleton();
38005
38212
  const emit2 = __emit;
38006
38213
  const productCardOptions = computed(() => {
38007
38214
  return pick(props.options, [
@@ -38028,9 +38235,6 @@ and ensure you are accounting for this risk.
38028
38235
  var _a25, _b25, _c;
38029
38236
  return ((_c = (_b25 = (_a25 = props.options.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.style) == null ? void 0 : _c.type) !== "sidebar";
38030
38237
  });
38031
- const showMobileFilters = computed(() => {
38032
- return props.options.searchTitlePosition !== "search-results-top";
38033
- });
38034
38238
  const currentFilterToolbarVisible = computed(() => {
38035
38239
  var _a25, _b25, _c, _d, _e, _f;
38036
38240
  return Boolean(
@@ -38061,12 +38265,12 @@ and ensure you are accounting for this risk.
38061
38265
  });
38062
38266
  const columnSize = computed(() => {
38063
38267
  if (props.ssr) {
38064
- return "";
38268
+ return {};
38065
38269
  }
38066
38270
  if (layout.value === ResultsLayoutEnum.LIST) {
38067
- return "width: 100%";
38271
+ return { width: "100%" };
38068
38272
  }
38069
- return `width: ${100 / columnCount.value}%`;
38273
+ return { width: `${100 / columnCount.value}%` };
38070
38274
  });
38071
38275
  const hasSimilarQueries = computed(() => {
38072
38276
  var _a25;
@@ -38102,55 +38306,64 @@ and ensure you are accounting for this risk.
38102
38306
  emit2("filter");
38103
38307
  };
38104
38308
  return (_ctx, _cache) => {
38105
- var _a25, _b25, _c;
38309
+ var _a25, _b25, _c, _d;
38106
38310
  return openBlock(), createElementBlock("div", _hoisted_1$g, [
38107
- unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
38311
+ !unref(skeletonEnabled) && unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
38108
38312
  key: 0,
38109
38313
  class: "lupa-loader"
38110
38314
  })) : createCommentVNode("", true),
38111
- createVNode(_sfc_main$n, {
38315
+ createVNode(_sfc_main$o, {
38112
38316
  options: _ctx.options.redirectionSuggestions
38113
38317
  }, null, 8, ["options"]),
38114
- createVNode(_sfc_main$s, {
38318
+ createVNode(_sfc_main$t, {
38115
38319
  options: _ctx.options,
38116
38320
  location: "top",
38117
- sdkOptions: _ctx.options.options
38118
- }, null, 8, ["options", "sdkOptions"]),
38119
- showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$o, {
38120
- key: 1,
38121
- options: _ctx.options.relatedQueries
38122
- }, null, 8, ["options"])) : createCommentVNode("", true),
38123
- showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$k, {
38124
- key: 2,
38125
- options: _ctx.options.relatedQueries
38126
- }, null, 8, ["options"])) : createCommentVNode("", true),
38127
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
38128
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
38321
+ "sdk-options": _ctx.options.options
38322
+ }, null, 8, ["options", "sdk-options"]),
38323
+ createVNode(_sfc_main$18, {
38324
+ enabled: unref(relatedQueriesSkeletonEnabled),
38325
+ loading: unref(loading) || unref(loadingRelatedQueries),
38326
+ count: 1,
38327
+ class: "lupa-skeleton-related-queries"
38328
+ }, {
38329
+ default: withCtx(() => [
38330
+ showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$p, {
38331
+ key: 0,
38332
+ options: _ctx.options.relatedQueries
38333
+ }, null, 8, ["options"])) : createCommentVNode("", true),
38334
+ showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
38335
+ key: 1,
38336
+ options: _ctx.options.relatedQueries
38337
+ }, null, 8, ["options"])) : createCommentVNode("", true)
38338
+ ]),
38339
+ _: 1
38340
+ }, 8, ["enabled", "loading"]),
38341
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
38342
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
38129
38343
  key: 0,
38130
38344
  options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
38131
38345
  }, null, 8, ["options"])) : createCommentVNode("", true),
38132
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
38133
- key: 1,
38346
+ createVNode(_sfc_main$I, {
38134
38347
  class: "lupa-toolbar-mobile",
38135
38348
  options: _ctx.options,
38136
38349
  "pagination-location": "top",
38137
38350
  onFilter: filter
38138
- }, null, 8, ["options"])) : createCommentVNode("", true),
38139
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$14, {
38140
- key: 2,
38351
+ }, null, 8, ["options"]),
38352
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$15, {
38353
+ key: 1,
38141
38354
  class: normalizeClass(currentFiltersClass.value),
38142
38355
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
38143
38356
  options: currentFilterOptions.value,
38144
38357
  expandable: !desktopFiltersExpanded.value
38145
38358
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
38146
38359
  ], 64)) : createCommentVNode("", true),
38147
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
38148
- createVNode(_sfc_main$H, {
38360
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
38361
+ createVNode(_sfc_main$I, {
38149
38362
  class: "lupa-toolbar-top",
38150
38363
  options: _ctx.options,
38151
38364
  "pagination-location": "top"
38152
38365
  }, null, 8, ["options"]),
38153
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$14, {
38366
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$15, {
38154
38367
  key: 0,
38155
38368
  class: normalizeClass(currentFiltersClass.value),
38156
38369
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -38158,22 +38371,32 @@ and ensure you are accounting for this risk.
38158
38371
  expandable: !desktopFiltersExpanded.value
38159
38372
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
38160
38373
  createBaseVNode("div", _hoisted_2$c, [
38161
- _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
38162
- return renderSlot(_ctx.$slots, "productCard", {
38163
- style: normalizeStyle(columnSize.value),
38164
- key: getProductKeyAction(index, product),
38165
- product,
38166
- options: productCardOptions.value
38167
- });
38168
- }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
38169
- return openBlock(), createBlock(_sfc_main$v, {
38170
- style: normalizeStyle(columnSize.value),
38171
- key: getProductKeyAction(index, product),
38172
- product,
38173
- options: productCardOptions.value,
38174
- "analytics-metadata": clickMetadata.value
38175
- }, null, 8, ["style", "product", "options", "analytics-metadata"]);
38176
- }), 128))
38374
+ createVNode(_sfc_main$j, {
38375
+ enabled: unref(skeletonEnabled),
38376
+ loading: unref(loading),
38377
+ count: (_b25 = unref(limit)) != null ? _b25 : 12,
38378
+ style: normalizeStyle(columnSize.value)
38379
+ }, {
38380
+ default: withCtx(() => [
38381
+ _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
38382
+ return renderSlot(_ctx.$slots, "productCard", {
38383
+ key: getProductKeyAction(index, product),
38384
+ style: normalizeStyle(columnSize.value),
38385
+ product,
38386
+ options: productCardOptions.value
38387
+ });
38388
+ }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
38389
+ return openBlock(), createBlock(_sfc_main$w, {
38390
+ key: getProductKeyAction(index, product),
38391
+ style: normalizeStyle(columnSize.value),
38392
+ product,
38393
+ options: productCardOptions.value,
38394
+ "analytics-metadata": clickMetadata.value
38395
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
38396
+ }), 128))
38397
+ ]),
38398
+ _: 3
38399
+ }, 8, ["enabled", "loading", "count", "style"])
38177
38400
  ]),
38178
38401
  unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
38179
38402
  createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
@@ -38183,40 +38406,40 @@ and ensure you are accounting for this risk.
38183
38406
  onClick: goToFirstPage
38184
38407
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
38185
38408
  ])) : createCommentVNode("", true),
38186
- createVNode(_sfc_main$H, {
38409
+ createVNode(_sfc_main$I, {
38187
38410
  class: "lupa-toolbar-bottom",
38188
38411
  options: _ctx.options,
38189
38412
  "pagination-location": "bottom"
38190
38413
  }, null, 8, ["options"]),
38191
- createVNode(_sfc_main$s, {
38414
+ createVNode(_sfc_main$t, {
38192
38415
  options: _ctx.options,
38193
38416
  location: "bottom",
38194
- sdkOptions: _ctx.options.options
38195
- }, null, 8, ["options", "sdkOptions"])
38417
+ "sdk-options": _ctx.options.options
38418
+ }, null, 8, ["options", "sdk-options"])
38196
38419
  ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
38197
- createVNode(_sfc_main$j, {
38198
- emptyResultsLabel: (_b25 = _ctx.options.labels) == null ? void 0 : _b25.emptyResults,
38199
- currentQueryText: unref(currentQueryText),
38200
- hasSimilarQueries: hasSimilarQueries.value || hasSimilarResults.value,
38201
- zeroResults: (_c = _ctx.options) == null ? void 0 : _c.zeroResults
38202
- }, null, 8, ["emptyResultsLabel", "currentQueryText", "hasSimilarQueries", "zeroResults"])
38420
+ createVNode(_sfc_main$k, {
38421
+ "empty-results-label": (_c = _ctx.options.labels) == null ? void 0 : _c.emptyResults,
38422
+ "current-query-text": unref(currentQueryText),
38423
+ "has-similar-queries": hasSimilarQueries.value || hasSimilarResults.value,
38424
+ "zero-results": (_d = _ctx.options) == null ? void 0 : _d.zeroResults
38425
+ }, null, 8, ["empty-results-label", "current-query-text", "has-similar-queries", "zero-results"])
38203
38426
  ])) : createCommentVNode("", true),
38204
- createVNode(_sfc_main$m, {
38427
+ createVNode(_sfc_main$n, {
38205
38428
  labels: _ctx.options.labels
38206
38429
  }, null, 8, ["labels"]),
38207
38430
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
38208
- createVNode(_sfc_main$u, {
38431
+ createVNode(_sfc_main$v, {
38209
38432
  labels: similarQueriesLabels.value,
38210
- columnSize: columnSize.value,
38211
- productCardOptions: productCardOptions.value
38212
- }, null, 8, ["labels", "columnSize", "productCardOptions"])
38433
+ "column-size": columnSize.value,
38434
+ "product-card-options": productCardOptions.value
38435
+ }, null, 8, ["labels", "column-size", "product-card-options"])
38213
38436
  ])) : createCommentVNode("", true),
38214
38437
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
38215
- createVNode(_sfc_main$q, {
38438
+ createVNode(_sfc_main$r, {
38216
38439
  labels: similarResultsLabels.value,
38217
- columnSize: columnSize.value,
38218
- productCardOptions: productCardOptions.value
38219
- }, null, 8, ["labels", "columnSize", "productCardOptions"])
38440
+ "column-size": columnSize.value,
38441
+ "product-card-options": productCardOptions.value
38442
+ }, null, 8, ["labels", "column-size", "product-card-options"])
38220
38443
  ])) : createCommentVNode("", true),
38221
38444
  renderSlot(_ctx.$slots, "append")
38222
38445
  ]);
@@ -38291,18 +38514,13 @@ and ensure you are accounting for this risk.
38291
38514
  ])) : createCommentVNode("", true),
38292
38515
  hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
38293
38516
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
38294
- return openBlock(), createBlock(_sfc_main$13, {
38517
+ return openBlock(), createBlock(_sfc_main$14, {
38295
38518
  key: getCategoryKey(child),
38296
38519
  item: child,
38297
38520
  options: categoryOptions.value
38298
38521
  }, null, 8, ["item", "options"]);
38299
38522
  }), 128))
38300
- ])) : createCommentVNode("", true),
38301
- createVNode(_sfc_main$H, {
38302
- class: "lupa-toolbar-mobile",
38303
- "pagination-location": "top",
38304
- options: _ctx.options
38305
- }, null, 8, ["options"])
38523
+ ])) : createCommentVNode("", true)
38306
38524
  ])
38307
38525
  ], 2);
38308
38526
  };
@@ -38730,8 +38948,8 @@ and ensure you are accounting for this risk.
38730
38948
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
38731
38949
  }, [
38732
38950
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
38733
- createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38734
- createVNode(_sfc_main$16, {
38951
+ createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38952
+ createVNode(_sfc_main$17, {
38735
38953
  "show-summary": true,
38736
38954
  options: _ctx.options,
38737
38955
  "is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
@@ -38741,13 +38959,13 @@ and ensure you are accounting for this risk.
38741
38959
  key: 1,
38742
38960
  options: _ctx.options
38743
38961
  }, null, 8, ["options"])) : createCommentVNode("", true),
38744
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$R, {
38962
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$S, {
38745
38963
  key: 2,
38746
38964
  options: _ctx.options.filters,
38747
38965
  onFilter: handleParamsChange
38748
38966
  }, null, 8, ["options"])) : createCommentVNode("", true),
38749
38967
  _ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
38750
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$Q, {
38968
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$R, {
38751
38969
  key: 4,
38752
38970
  breadcrumbs: _ctx.options.breadcrumbs
38753
38971
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
@@ -38756,7 +38974,7 @@ and ensure you are accounting for this risk.
38756
38974
  id: "lupa-search-results",
38757
38975
  class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
38758
38976
  }, [
38759
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
38977
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
38760
38978
  key: 0,
38761
38979
  options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
38762
38980
  ref_key: "searchResultsFilters",
@@ -38764,8 +38982,8 @@ and ensure you are accounting for this risk.
38764
38982
  onFilter: handleParamsChange
38765
38983
  }, null, 8, ["options"])) : createCommentVNode("", true),
38766
38984
  createBaseVNode("div", _hoisted_2$8, [
38767
- createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38768
- createVNode(_sfc_main$16, {
38985
+ createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38986
+ createVNode(_sfc_main$17, {
38769
38987
  options: _ctx.options,
38770
38988
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
38771
38989
  }, null, 8, ["options", "is-product-list"]),
@@ -38781,8 +38999,8 @@ and ensure you are accounting for this risk.
38781
38999
  }, 8, ["options", "ssr"])
38782
39000
  ])
38783
39001
  ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
38784
- createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38785
- createVNode(_sfc_main$16, {
39002
+ createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
39003
+ createVNode(_sfc_main$17, {
38786
39004
  options: _ctx.options,
38787
39005
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
38788
39006
  }, null, 8, ["options", "is-product-list"]),
@@ -38790,7 +39008,7 @@ and ensure you are accounting for this risk.
38790
39008
  id: "lupa-search-results",
38791
39009
  class: normalizeClass(indicatorClasses.value)
38792
39010
  }, [
38793
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
39011
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
38794
39012
  key: 0,
38795
39013
  options: (_e = _ctx.options.filters) != null ? _e : {},
38796
39014
  ref_key: "searchResultsFilters",
@@ -38941,7 +39159,7 @@ and ensure you are accounting for this risk.
38941
39159
  onClick: withModifiers(innerClick, ["stop"])
38942
39160
  }, [
38943
39161
  createBaseVNode("div", _hoisted_1$a, [
38944
- createVNode(_sfc_main$19, {
39162
+ createVNode(_sfc_main$1d, {
38945
39163
  options: fullSearchBoxOptions.value,
38946
39164
  "is-search-container": true,
38947
39165
  ref_key: "searchBox",
@@ -40529,7 +40747,7 @@ and ensure you are accounting for this risk.
40529
40747
  key: getProductKeyAction(index, product)
40530
40748
  }, {
40531
40749
  default: withCtx(() => [
40532
- createVNode(_sfc_main$v, {
40750
+ createVNode(_sfc_main$w, {
40533
40751
  product,
40534
40752
  options: _ctx.options,
40535
40753
  "click-tracking-settings": clickTrackingSettings.value,
@@ -40544,7 +40762,7 @@ and ensure you are accounting for this risk.
40544
40762
  _: 1
40545
40763
  }, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
40546
40764
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
40547
- return openBlock(), createBlock(_sfc_main$v, {
40765
+ return openBlock(), createBlock(_sfc_main$w, {
40548
40766
  style: normalizeStyle(columnSize.value),
40549
40767
  key: getProductKeyAction(index, product),
40550
40768
  product,
@@ -40790,7 +41008,7 @@ and ensure you are accounting for this risk.
40790
41008
  createBaseVNode("a", {
40791
41009
  href: getLink(product)
40792
41010
  }, [
40793
- createVNode(_sfc_main$G, {
41011
+ createVNode(_sfc_main$H, {
40794
41012
  item: product,
40795
41013
  options: image.value
40796
41014
  }, null, 8, ["item", "options"])
@@ -40955,7 +41173,7 @@ and ensure you are accounting for this risk.
40955
41173
  return (_ctx, _cache) => {
40956
41174
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
40957
41175
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
40958
- return openBlock(), createBlock(_sfc_main$v, {
41176
+ return openBlock(), createBlock(_sfc_main$w, {
40959
41177
  class: "lupa-chat-product-card",
40960
41178
  key: getProductKeyAction(index, product),
40961
41179
  product,
@@ -41151,7 +41369,7 @@ and ensure you are accounting for this risk.
41151
41369
  key: 0,
41152
41370
  class: "lupasearch-chat-content"
41153
41371
  };
41154
- const _sfc_main$1H = /* @__PURE__ */ defineComponent({
41372
+ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
41155
41373
  __name: "ChatContainer",
41156
41374
  props: {
41157
41375
  options: {}
@@ -47175,7 +47393,7 @@ and ensure you are accounting for this risk.
47175
47393
  };
47176
47394
  __expose({ fetch: fetch2 });
47177
47395
  return (_ctx, _cache) => {
47178
- return openBlock(), createBlock(unref(_sfc_main$19), {
47396
+ return openBlock(), createBlock(unref(_sfc_main$1d), {
47179
47397
  ref_key: "searchBox",
47180
47398
  ref: searchBox2,
47181
47399
  options: fullSearchBoxOptions.value
@@ -47836,7 +48054,7 @@ and ensure you are accounting for this risk.
47836
48054
  const instance = createVue(
47837
48055
  options.displayOptions.containerSelector,
47838
48056
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
47839
- _sfc_main$1H,
48057
+ _sfc_main$1L,
47840
48058
  {
47841
48059
  options
47842
48060
  }