@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.
@@ -18855,17 +18855,27 @@ const getPageCount = (total, limit) => {
18855
18855
  const isObject$1 = (value) => {
18856
18856
  return value !== null && typeof value === "object" && !Array.isArray(value);
18857
18857
  };
18858
- const parseParam = (key, params) => {
18859
- const value = params.get(key);
18858
+ const decodeParam = (value) => {
18860
18859
  if (!value) {
18861
18860
  return void 0;
18862
18861
  }
18862
+ try {
18863
+ if (!/%[0-9A-Fa-f]{2}/.test(value)) {
18864
+ return value;
18865
+ }
18866
+ } catch (e2) {
18867
+ return value;
18868
+ }
18863
18869
  try {
18864
18870
  return decodeURIComponent(value);
18865
18871
  } catch (e2) {
18866
- return void 0;
18872
+ return value;
18867
18873
  }
18868
18874
  };
18875
+ const parseParam = (key, params) => {
18876
+ const value = params.get(key);
18877
+ return decodeParam(value != null ? value : void 0);
18878
+ };
18869
18879
  const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
18870
18880
  const params = /* @__PURE__ */ Object.create({});
18871
18881
  const keys = reverseKeyValue({
@@ -18883,7 +18893,7 @@ const parseRegularKeys = (regularKeys, searchParams, getQueryParamName) => {
18883
18893
  const parseFacetKey = (key, searchParams) => {
18884
18894
  var _a25, _b25, _c, _d;
18885
18895
  if (key.startsWith(FACET_PARAMS_TYPE.TERMS)) {
18886
- return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeURIComponent(v))) != null ? _b25 : [];
18896
+ return (_b25 = (_a25 = searchParams.getAll(key)) == null ? void 0 : _a25.map((v) => decodeParam(v))) != null ? _b25 : [];
18887
18897
  }
18888
18898
  if (key.startsWith(FACET_PARAMS_TYPE.RANGE) || key.startsWith(FACET_PARAMS_TYPE.PARTIAL_RANGE)) {
18889
18899
  const range2 = searchParams.get(key);
@@ -18899,7 +18909,7 @@ const parseFacetKey = (key, searchParams) => {
18899
18909
  if (key.startsWith(FACET_PARAMS_TYPE.HIERARCHY)) {
18900
18910
  return {
18901
18911
  level: 0,
18902
- terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeURIComponent(v))) != null ? _d : []
18912
+ terms: (_d = (_c = searchParams.getAll(key)) == null ? void 0 : _c.map((v) => decodeParam(v))) != null ? _d : []
18903
18913
  };
18904
18914
  }
18905
18915
  return [];
@@ -18926,15 +18936,15 @@ const parseParams = (getQueryParamName, searchParams) => {
18926
18936
  }, parseRegularKeys(regularKeys, searchParams, getQueryParamName)), parseFacetKeys(facetKeys, searchParams));
18927
18937
  return r;
18928
18938
  };
18929
- const appendParam = (url, { name, value }, encode2 = true) => {
18939
+ const appendParam = (url, { name, value }) => {
18930
18940
  if (Array.isArray(value)) {
18931
18941
  appendArrayParams(url, { name, value });
18932
18942
  } else {
18933
- appendSingleParam(url, { name, value }, encode2);
18943
+ appendSingleParam(url, { name, value });
18934
18944
  }
18935
18945
  };
18936
- const appendSingleParam = (url, param, encode2 = true) => {
18937
- const valueToAppend = encode2 ? encodeParam(param.value) : param.value;
18946
+ const appendSingleParam = (url, param) => {
18947
+ const valueToAppend = param.value;
18938
18948
  if (url.searchParams.has(param.name)) {
18939
18949
  url.searchParams.set(param.name, valueToAppend);
18940
18950
  } else {
@@ -18943,7 +18953,7 @@ const appendSingleParam = (url, param, encode2 = true) => {
18943
18953
  };
18944
18954
  const appendArrayParams = (url, param) => {
18945
18955
  url.searchParams.delete(param.name);
18946
- param.value.forEach((v) => url.searchParams.append(param.name, encodeParam(v)));
18956
+ param.value.forEach((v) => url.searchParams.append(param.name, v));
18947
18957
  };
18948
18958
  const getRemovableParams = (url, getQueryParamName, paramsToRemove) => {
18949
18959
  if (paramsToRemove === "all") {
@@ -19303,13 +19313,12 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
19303
19313
  const getPageUrlWithNewParams = ({
19304
19314
  params: newParams,
19305
19315
  paramsToRemove,
19306
- encode: encode2 = true,
19307
19316
  searchResultsLink: searchResultsLink2
19308
19317
  }) => {
19309
19318
  const url = getPageUrl(searchResultsLink2);
19310
19319
  paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
19311
19320
  removeParams(url, paramsToRemove);
19312
- newParams.forEach((p2) => appendParam(url, p2, encode2));
19321
+ newParams.forEach((p2) => appendParam(url, p2));
19313
19322
  return url.search;
19314
19323
  };
19315
19324
  const removeParameters = ({
@@ -19391,7 +19400,7 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
19391
19400
  const routing = (_b25 = optionsStore.boxRoutingBehavior) != null ? _b25 : "direct-link";
19392
19401
  redirectToResultsPage(
19393
19402
  searchResultsLink.value,
19394
- encodeParam(searchText),
19403
+ searchText,
19395
19404
  optionsStore.getQueryParamName,
19396
19405
  facet,
19397
19406
  routing
@@ -19401,7 +19410,6 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
19401
19410
  const appendParams = ({
19402
19411
  params: newParams,
19403
19412
  paramsToRemove,
19404
- encode: encode2 = true,
19405
19413
  save = true,
19406
19414
  searchResultsLink: searchResultsLink2
19407
19415
  }) => {
@@ -19411,7 +19419,7 @@ const useParamsStore = /* @__PURE__ */ defineStore("params", () => {
19411
19419
  const url = getPageUrl(searchResultsLink2);
19412
19420
  paramsToRemove = getRemovableParams(url, optionsStore.getQueryParamName, paramsToRemove);
19413
19421
  removeParams(url, paramsToRemove);
19414
- newParams.forEach((p2) => appendParam(url, p2, encode2));
19422
+ newParams.forEach((p2) => appendParam(url, p2));
19415
19423
  navigate(url);
19416
19424
  if (!save) {
19417
19425
  return;
@@ -19708,7 +19716,7 @@ const getApiUrl = (environment, customBaseUrl) => {
19708
19716
  }
19709
19717
  return Env[environment] || Env["production"];
19710
19718
  };
19711
- const _sfc_main$1G = /* @__PURE__ */ defineComponent({
19719
+ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
19712
19720
  __name: "VoiceSearchProgressCircle",
19713
19721
  props: {
19714
19722
  isRecording: { type: Boolean },
@@ -19921,15 +19929,15 @@ function useVoiceRecorder(options) {
19921
19929
  closeSocket
19922
19930
  };
19923
19931
  }
19924
- const _hoisted_1$1o = {
19932
+ const _hoisted_1$1q = {
19925
19933
  key: 0,
19926
19934
  class: "lupa-dialog-overlay"
19927
19935
  };
19928
- const _hoisted_2$Z = { class: "lupa-dialog-content" };
19936
+ const _hoisted_2$_ = { class: "lupa-dialog-content" };
19929
19937
  const _hoisted_3$G = { class: "lupa-listening-text" };
19930
19938
  const _hoisted_4$v = { class: "lupa-mic-button-wrapper" };
19931
19939
  const _hoisted_5$l = ["aria-label"];
19932
- const _sfc_main$1F = /* @__PURE__ */ defineComponent({
19940
+ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
19933
19941
  __name: "VoiceSearchDialog",
19934
19942
  props: {
19935
19943
  isOpen: { type: Boolean },
@@ -20034,12 +20042,12 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
20034
20042
  return (_ctx, _cache) => {
20035
20043
  var _a25, _b25;
20036
20044
  return openBlock(), createElementBlock("div", null, [
20037
- props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1o, [
20045
+ props.isOpen ? (openBlock(), createElementBlock("div", _hoisted_1$1q, [
20038
20046
  createBaseVNode("button", {
20039
20047
  class: "lupa-dialog-box-close-button",
20040
20048
  onClick: _cache[0] || (_cache[0] = () => emit2("close"))
20041
20049
  }),
20042
- createBaseVNode("div", _hoisted_2$Z, [
20050
+ createBaseVNode("div", _hoisted_2$_, [
20043
20051
  createBaseVNode("p", _hoisted_3$G, toDisplayString(description.value), 1),
20044
20052
  createBaseVNode("div", _hoisted_4$v, [
20045
20053
  createBaseVNode("button", {
@@ -20048,7 +20056,7 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
20048
20056
  "aria-controls": "voice-search-microphone",
20049
20057
  "aria-label": ((_b25 = (_a25 = labels.value) == null ? void 0 : _a25.aria) == null ? void 0 : _b25.microphone) || "Toggle microphone"
20050
20058
  }, null, 10, _hoisted_5$l),
20051
- createVNode(_sfc_main$1G, {
20059
+ createVNode(_sfc_main$1K, {
20052
20060
  ref_key: "voiceSearchProgressBar",
20053
20061
  ref: voiceSearchProgressBar,
20054
20062
  class: "lupa-progress-circle",
@@ -20063,8 +20071,8 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
20063
20071
  };
20064
20072
  }
20065
20073
  });
20066
- const _hoisted_1$1n = { id: "lupa-search-box-input-container" };
20067
- const _hoisted_2$Y = { id: "lupa-search-box-input" };
20074
+ const _hoisted_1$1p = { id: "lupa-search-box-input-container" };
20075
+ const _hoisted_2$Z = { id: "lupa-search-box-input" };
20068
20076
  const _hoisted_3$F = ["value"];
20069
20077
  const _hoisted_4$u = ["aria-label", "placeholder"];
20070
20078
  const _hoisted_5$k = {
@@ -20073,7 +20081,7 @@ const _hoisted_5$k = {
20073
20081
  };
20074
20082
  const _hoisted_6$7 = { key: 2 };
20075
20083
  const _hoisted_7$5 = ["aria-label"];
20076
- const _sfc_main$1E = /* @__PURE__ */ defineComponent({
20084
+ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
20077
20085
  __name: "SearchBoxInput",
20078
20086
  props: {
20079
20087
  options: {},
@@ -20209,7 +20217,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
20209
20217
  };
20210
20218
  __expose({ focus });
20211
20219
  return (_ctx, _cache) => {
20212
- return openBlock(), createElementBlock("div", _hoisted_1$1n, [
20220
+ return openBlock(), createElementBlock("div", _hoisted_1$1p, [
20213
20221
  _ctx.options.showClearButton && !isClearButtonAtEndOfInput.value ? (openBlock(), createElementBlock("div", {
20214
20222
  key: 0,
20215
20223
  class: normalizeClass(["lupa-input-clear", [
@@ -20218,7 +20226,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
20218
20226
  ]]),
20219
20227
  onClick: clear
20220
20228
  }, null, 2)) : createCommentVNode("", true),
20221
- createBaseVNode("div", _hoisted_2$Y, [
20229
+ createBaseVNode("div", _hoisted_2$Z, [
20222
20230
  createBaseVNode("input", {
20223
20231
  class: "lupa-hint",
20224
20232
  "aria-hidden": "true",
@@ -20272,7 +20280,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
20272
20280
  "aria-label": voiceSearchAriaLabel.value
20273
20281
  }, null, 8, _hoisted_7$5)
20274
20282
  ])) : createCommentVNode("", true),
20275
- isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1F, {
20283
+ isVoiceSearchEnabled.value ? (openBlock(), createBlock(_sfc_main$1J, {
20276
20284
  key: 3,
20277
20285
  ref_key: "voiceDialogOverlay",
20278
20286
  ref: voiceDialogOverlay,
@@ -20286,7 +20294,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
20286
20294
  };
20287
20295
  }
20288
20296
  });
20289
- const _sfc_main$1D = /* @__PURE__ */ defineComponent({
20297
+ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
20290
20298
  __name: "SearchBoxMoreResults",
20291
20299
  props: {
20292
20300
  labels: {},
@@ -20324,9 +20332,9 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
20324
20332
  };
20325
20333
  }
20326
20334
  });
20327
- const _hoisted_1$1m = { class: "lupa-search-box-history-item" };
20328
- const _hoisted_2$X = { class: "lupa-search-box-history-item-content" };
20329
- const _sfc_main$1C = /* @__PURE__ */ defineComponent({
20335
+ const _hoisted_1$1o = { class: "lupa-search-box-history-item" };
20336
+ const _hoisted_2$Y = { class: "lupa-search-box-history-item-content" };
20337
+ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
20330
20338
  __name: "SearchBoxHistoryItem",
20331
20339
  props: {
20332
20340
  item: {},
@@ -20343,8 +20351,8 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
20343
20351
  emit2("click", { query: props.item });
20344
20352
  };
20345
20353
  return (_ctx, _cache) => {
20346
- return openBlock(), createElementBlock("div", _hoisted_1$1m, [
20347
- createBaseVNode("div", _hoisted_2$X, [
20354
+ return openBlock(), createElementBlock("div", _hoisted_1$1o, [
20355
+ createBaseVNode("div", _hoisted_2$Y, [
20348
20356
  createBaseVNode("div", {
20349
20357
  class: normalizeClass(["lupa-search-box-history-item-text", { "lupa-search-box-history-item-highlighted": _ctx.highlighted }]),
20350
20358
  onClick: click2
@@ -20358,11 +20366,11 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
20358
20366
  };
20359
20367
  }
20360
20368
  });
20361
- const _hoisted_1$1l = {
20369
+ const _hoisted_1$1n = {
20362
20370
  key: 0,
20363
20371
  class: "lupa-search-box-history-panel"
20364
20372
  };
20365
- const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20373
+ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
20366
20374
  __name: "SearchBoxHistoryPanel",
20367
20375
  props: {
20368
20376
  options: {}
@@ -20413,9 +20421,9 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20413
20421
  }
20414
20422
  };
20415
20423
  return (_ctx, _cache) => {
20416
- return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1l, [
20424
+ return hasHistory.value ? (openBlock(), createElementBlock("div", _hoisted_1$1n, [
20417
20425
  (openBlock(true), createElementBlock(Fragment, null, renderList(limitedHistory.value, (item, index) => {
20418
- return openBlock(), createBlock(_sfc_main$1C, {
20426
+ return openBlock(), createBlock(_sfc_main$1G, {
20419
20427
  key: item,
20420
20428
  item,
20421
20429
  highlighted: index === highlightIndex.value,
@@ -20431,12 +20439,12 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20431
20439
  };
20432
20440
  }
20433
20441
  });
20434
- const _hoisted_1$1k = ["innerHTML"];
20435
- const _hoisted_2$W = {
20442
+ const _hoisted_1$1m = ["innerHTML"];
20443
+ const _hoisted_2$X = {
20436
20444
  key: 1,
20437
20445
  class: "lupa-search-box-no-results"
20438
20446
  };
20439
- const _sfc_main$1A = /* @__PURE__ */ defineComponent({
20447
+ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
20440
20448
  __name: "SearchBoxNoResults",
20441
20449
  props: {
20442
20450
  options: {}
@@ -20455,7 +20463,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
20455
20463
  key: 0,
20456
20464
  class: "lupa-search-box-no-results",
20457
20465
  innerHTML: customHtml.value
20458
- }, null, 8, _hoisted_1$1k)) : (openBlock(), createElementBlock("p", _hoisted_2$W, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
20466
+ }, null, 8, _hoisted_1$1m)) : (openBlock(), createElementBlock("p", _hoisted_2$X, toDisplayString((_a25 = labels.value) == null ? void 0 : _a25.noResults), 1));
20459
20467
  };
20460
20468
  }
20461
20469
  });
@@ -20487,8 +20495,8 @@ const generateGridTemplate = (elements) => {
20487
20495
  }
20488
20496
  return gridTemplate.join(" ");
20489
20497
  };
20490
- const _hoisted_1$1j = ["innerHTML"];
20491
- const _hoisted_2$V = {
20498
+ const _hoisted_1$1l = ["innerHTML"];
20499
+ const _hoisted_2$W = {
20492
20500
  key: 1,
20493
20501
  "data-cy": "lupa-suggestion-value",
20494
20502
  class: "lupa-suggestion-value"
@@ -20506,7 +20514,7 @@ const _hoisted_5$j = {
20506
20514
  class: "lupa-suggestion-facet-value",
20507
20515
  "data-cy": "lupa-suggestion-facet-value"
20508
20516
  };
20509
- const _sfc_main$1z = /* @__PURE__ */ defineComponent({
20517
+ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
20510
20518
  __name: "SearchBoxSuggestion",
20511
20519
  props: {
20512
20520
  suggestion: {},
@@ -20543,7 +20551,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
20543
20551
  class: "lupa-suggestion-value",
20544
20552
  "data-cy": "lupa-suggestion-value",
20545
20553
  innerHTML: _ctx.suggestion.displayHighlight
20546
- }, null, 8, _hoisted_1$1j)) : (openBlock(), createElementBlock("div", _hoisted_2$V, toDisplayString(_ctx.suggestion.display), 1)),
20554
+ }, null, 8, _hoisted_1$1l)) : (openBlock(), createElementBlock("div", _hoisted_2$W, toDisplayString(_ctx.suggestion.display), 1)),
20547
20555
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
20548
20556
  createBaseVNode("span", _hoisted_4$t, toDisplayString(facetLabel.value), 1),
20549
20557
  createBaseVNode("span", _hoisted_5$j, toDisplayString(_ctx.suggestion.facet.title), 1)
@@ -20552,11 +20560,11 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
20552
20560
  };
20553
20561
  }
20554
20562
  });
20555
- const _hoisted_1$1i = {
20563
+ const _hoisted_1$1k = {
20556
20564
  id: "lupa-search-box-suggestions",
20557
20565
  "data-cy": "lupa-search-box-suggestions"
20558
20566
  };
20559
- const _sfc_main$1y = /* @__PURE__ */ defineComponent({
20567
+ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
20560
20568
  __name: "SearchBoxSuggestions",
20561
20569
  props: {
20562
20570
  items: {},
@@ -20623,9 +20631,9 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
20623
20631
  });
20624
20632
  });
20625
20633
  return (_ctx, _cache) => {
20626
- return openBlock(), createElementBlock("div", _hoisted_1$1i, [
20634
+ return openBlock(), createElementBlock("div", _hoisted_1$1k, [
20627
20635
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
20628
- return openBlock(), createBlock(_sfc_main$1z, {
20636
+ return openBlock(), createBlock(_sfc_main$1D, {
20629
20637
  key: getSuggestionKey(item),
20630
20638
  class: normalizeClass([
20631
20639
  "lupa-suggestion",
@@ -20657,7 +20665,7 @@ const debounce = (func, timeout) => {
20657
20665
  }, timeout);
20658
20666
  };
20659
20667
  };
20660
- const _sfc_main$1x = /* @__PURE__ */ defineComponent({
20668
+ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
20661
20669
  __name: "SearchBoxSuggestionsWrapper",
20662
20670
  props: {
20663
20671
  panel: {},
@@ -20700,7 +20708,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
20700
20708
  const getSuggestionsDebounced = debounce(getSuggestions, props.debounce);
20701
20709
  watch(() => props.panel.limit, getSuggestionsDebounced);
20702
20710
  return (_ctx, _cache) => {
20703
- return openBlock(), createBlock(_sfc_main$1y, {
20711
+ return openBlock(), createBlock(_sfc_main$1C, {
20704
20712
  items: searchResult.value,
20705
20713
  highlight: _ctx.panel.highlight,
20706
20714
  queryKey: _ctx.panel.queryKey,
@@ -29900,11 +29908,14 @@ const getDynamicAttributes = (dynamicAttributes = [], document2 = {}) => {
29900
29908
  }
29901
29909
  return parsedAttributes;
29902
29910
  };
29903
- const getFieldValue = (doc2, field = "") => {
29911
+ const getFieldValue = (doc2, field = "", matchLiteral) => {
29904
29912
  var _a25;
29905
29913
  if (typeof field === "number") {
29906
29914
  return +field;
29907
29915
  }
29916
+ if (matchLiteral) {
29917
+ return field;
29918
+ }
29908
29919
  const value = (_a25 = field == null ? void 0 : field.split(".")) == null ? void 0 : _a25.reduce((obj, key) => obj ? obj[key] : void 0, doc2);
29909
29920
  if (+value) {
29910
29921
  return +value;
@@ -29928,32 +29939,32 @@ const processDisplayCondition = (displayCondition, doc2 = {}) => {
29928
29939
  case "equals": {
29929
29940
  if (fields.length < 2) return false;
29930
29941
  const [field1, field2] = fields;
29931
- return getFieldValue(doc2, field1) === getFieldValue(doc2, field2);
29942
+ return getFieldValue(doc2, field1) === getFieldValue(doc2, field2, displayCondition.matchLiteral);
29932
29943
  }
29933
29944
  case "notEquals": {
29934
29945
  if (fields.length < 2) return false;
29935
29946
  const [field1, field2] = fields;
29936
- return getFieldValue(doc2, field1) !== getFieldValue(doc2, field2);
29947
+ return getFieldValue(doc2, field1) !== getFieldValue(doc2, field2, displayCondition.matchLiteral);
29937
29948
  }
29938
29949
  case "greaterThan": {
29939
29950
  if (fields.length < 2) return false;
29940
29951
  const [field1, field2] = fields;
29941
- return getFieldValue(doc2, field1) > getFieldValue(doc2, field2);
29952
+ return getFieldValue(doc2, field1) > getFieldValue(doc2, field2, displayCondition.matchLiteral);
29942
29953
  }
29943
29954
  case "lessThan": {
29944
29955
  if (fields.length < 2) return false;
29945
29956
  const [field1, field2] = fields;
29946
- return getFieldValue(doc2, field1) < getFieldValue(doc2, field2);
29957
+ return getFieldValue(doc2, field1) < getFieldValue(doc2, field2, displayCondition.matchLiteral);
29947
29958
  }
29948
29959
  case "greaterThanOrEquals": {
29949
29960
  if (fields.length < 2) return false;
29950
29961
  const [field1, field2] = fields;
29951
- return getFieldValue(doc2, field1) >= getFieldValue(doc2, field2);
29962
+ return getFieldValue(doc2, field1) >= getFieldValue(doc2, field2, displayCondition.matchLiteral);
29952
29963
  }
29953
29964
  case "lessThanOrEquals": {
29954
29965
  if (fields.length < 2) return false;
29955
29966
  const [field1, field2] = fields;
29956
- return getFieldValue(doc2, field1) <= getFieldValue(doc2, field2);
29967
+ return getFieldValue(doc2, field1) <= getFieldValue(doc2, field2, displayCondition.matchLiteral);
29957
29968
  }
29958
29969
  default:
29959
29970
  return false;
@@ -29982,9 +29993,9 @@ const replaceImageWithPlaceholder = (e2, placeholder) => {
29982
29993
  targetImage.src = placeholder;
29983
29994
  }
29984
29995
  };
29985
- const _hoisted_1$1h = ["src"];
29986
- const _hoisted_2$U = ["src"];
29987
- const _sfc_main$1w = /* @__PURE__ */ defineComponent({
29996
+ const _hoisted_1$1j = ["src"];
29997
+ const _hoisted_2$V = ["src"];
29998
+ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
29988
29999
  __name: "ProductImage",
29989
30000
  props: {
29990
30001
  item: {},
@@ -30126,7 +30137,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
30126
30137
  }, { alt: imageAlt.value ? imageAlt.value : void 0 }, {
30127
30138
  onError: replaceWithPlaceholder,
30128
30139
  key: finalUrl.value
30129
- }), null, 16, _hoisted_1$1h))
30140
+ }), null, 16, _hoisted_1$1j))
30130
30141
  ]),
30131
30142
  _: 1
30132
30143
  })) : (openBlock(), createElementBlock("img", mergeProps({
@@ -30134,12 +30145,12 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
30134
30145
  class: ["lupa-images-main-image", { [_ctx.imageClass]: true }],
30135
30146
  style: styleOverride.value,
30136
30147
  src: finalMainImageUrl.value
30137
- }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$U))
30148
+ }, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_2$V))
30138
30149
  ], 38);
30139
30150
  };
30140
30151
  }
30141
30152
  });
30142
- const _sfc_main$1v = /* @__PURE__ */ defineComponent({
30153
+ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
30143
30154
  __name: "SearchBoxProductImage",
30144
30155
  props: {
30145
30156
  item: {},
@@ -30147,7 +30158,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
30147
30158
  },
30148
30159
  setup(__props) {
30149
30160
  return (_ctx, _cache) => {
30150
- return openBlock(), createBlock(_sfc_main$1w, {
30161
+ return openBlock(), createBlock(_sfc_main$1A, {
30151
30162
  item: _ctx.item,
30152
30163
  options: _ctx.options,
30153
30164
  "wrapper-class": "lupa-search-box-image-wrapper",
@@ -30156,12 +30167,12 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
30156
30167
  };
30157
30168
  }
30158
30169
  });
30159
- const _hoisted_1$1g = ["innerHTML"];
30160
- const _hoisted_2$T = {
30170
+ const _hoisted_1$1i = ["innerHTML"];
30171
+ const _hoisted_2$U = {
30161
30172
  key: 1,
30162
30173
  class: "lupa-search-box-product-title"
30163
30174
  };
30164
- const _sfc_main$1u = /* @__PURE__ */ defineComponent({
30175
+ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
30165
30176
  __name: "SearchBoxProductTitle",
30166
30177
  props: {
30167
30178
  item: {},
@@ -30184,18 +30195,18 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
30184
30195
  key: 0,
30185
30196
  class: "lupa-search-box-product-title",
30186
30197
  innerHTML: sanitizedTitle.value
30187
- }, null, 8, _hoisted_1$1g)) : (openBlock(), createElementBlock("div", _hoisted_2$T, [
30198
+ }, null, 8, _hoisted_1$1i)) : (openBlock(), createElementBlock("div", _hoisted_2$U, [
30188
30199
  createBaseVNode("strong", null, toDisplayString(title.value), 1)
30189
30200
  ]));
30190
30201
  };
30191
30202
  }
30192
30203
  });
30193
- const _hoisted_1$1f = ["innerHTML"];
30194
- const _hoisted_2$S = {
30204
+ const _hoisted_1$1h = ["innerHTML"];
30205
+ const _hoisted_2$T = {
30195
30206
  key: 1,
30196
30207
  class: "lupa-search-box-product-description"
30197
30208
  };
30198
- const _sfc_main$1t = /* @__PURE__ */ defineComponent({
30209
+ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
30199
30210
  __name: "SearchBoxProductDescription",
30200
30211
  props: {
30201
30212
  item: {},
@@ -30218,12 +30229,12 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
30218
30229
  key: 0,
30219
30230
  class: "lupa-search-box-product-description",
30220
30231
  innerHTML: sanitizedDescription.value
30221
- }, null, 8, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(description.value), 1));
30232
+ }, null, 8, _hoisted_1$1h)) : (openBlock(), createElementBlock("div", _hoisted_2$T, toDisplayString(description.value), 1));
30222
30233
  };
30223
30234
  }
30224
30235
  });
30225
- const _hoisted_1$1e = { class: "lupa-search-box-product-price" };
30226
- const _sfc_main$1s = /* @__PURE__ */ defineComponent({
30236
+ const _hoisted_1$1g = { class: "lupa-search-box-product-price" };
30237
+ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
30227
30238
  __name: "SearchBoxProductPrice",
30228
30239
  props: {
30229
30240
  item: {},
@@ -30245,13 +30256,13 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
30245
30256
  );
30246
30257
  });
30247
30258
  return (_ctx, _cache) => {
30248
- return openBlock(), createElementBlock("div", _hoisted_1$1e, [
30259
+ return openBlock(), createElementBlock("div", _hoisted_1$1g, [
30249
30260
  createBaseVNode("strong", null, toDisplayString(price.value), 1)
30250
30261
  ]);
30251
30262
  };
30252
30263
  }
30253
30264
  });
30254
- const _sfc_main$1r = /* @__PURE__ */ defineComponent({
30265
+ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
30255
30266
  __name: "SearchBoxProductRegularPrice",
30256
30267
  props: {
30257
30268
  item: {},
@@ -30282,12 +30293,12 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
30282
30293
  };
30283
30294
  }
30284
30295
  });
30285
- const _hoisted_1$1d = ["innerHTML"];
30286
- const _hoisted_2$R = { key: 0 };
30296
+ const _hoisted_1$1f = ["innerHTML"];
30297
+ const _hoisted_2$S = { key: 0 };
30287
30298
  const _hoisted_3$D = { key: 1 };
30288
30299
  const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
30289
30300
  const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
30290
- const _sfc_main$1q = /* @__PURE__ */ defineComponent({
30301
+ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
30291
30302
  __name: "SearchBoxProductCustom",
30292
30303
  props: {
30293
30304
  item: {},
@@ -30313,11 +30324,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
30313
30324
  key: 0,
30314
30325
  class: [className.value, "lupa-search-box-product-custom"],
30315
30326
  innerHTML: text.value
30316
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1d)) : (openBlock(), createElementBlock("div", mergeProps({
30327
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1f)) : (openBlock(), createElementBlock("div", mergeProps({
30317
30328
  key: 1,
30318
30329
  class: [className.value, "lupa-search-box-product-custom"]
30319
30330
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
30320
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$R, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
30331
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$S, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$D, [
30321
30332
  createBaseVNode("div", _hoisted_4$s, toDisplayString(label.value), 1),
30322
30333
  createBaseVNode("div", _hoisted_5$i, toDisplayString(text.value), 1)
30323
30334
  ]))
@@ -30325,8 +30336,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
30325
30336
  };
30326
30337
  }
30327
30338
  });
30328
- const _hoisted_1$1c = ["innerHTML"];
30329
- const _sfc_main$1p = /* @__PURE__ */ defineComponent({
30339
+ const _hoisted_1$1e = ["innerHTML"];
30340
+ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
30330
30341
  __name: "SearchBoxProductCustomHtml",
30331
30342
  props: {
30332
30343
  item: {},
@@ -30351,7 +30362,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
30351
30362
  return openBlock(), createElementBlock("div", mergeProps({
30352
30363
  class: className.value,
30353
30364
  innerHTML: text.value
30354
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1c);
30365
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$1e);
30355
30366
  };
30356
30367
  }
30357
30368
  });
@@ -30690,6 +30701,7 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
30690
30701
  relatedQueriesApiEnabled,
30691
30702
  lastResultsSource,
30692
30703
  relatedQueryFacetKeys,
30704
+ loadingRelatedQueries,
30693
30705
  setSidebarState,
30694
30706
  queryFacet,
30695
30707
  setLastRequestId,
@@ -30706,12 +30718,12 @@ const useSearchResultStore = /* @__PURE__ */ defineStore("searchResult", () => {
30706
30718
  setRelatedQueriesApiEnabled
30707
30719
  };
30708
30720
  });
30709
- const _hoisted_1$1b = { class: "lupa-search-box-add-to-cart-wrapper" };
30710
- const _hoisted_2$Q = { class: "lupa-search-box-product-addtocart" };
30721
+ const _hoisted_1$1d = { class: "lupa-search-box-add-to-cart-wrapper" };
30722
+ const _hoisted_2$R = { class: "lupa-search-box-product-addtocart" };
30711
30723
  const _hoisted_3$C = ["disabled"];
30712
30724
  const _hoisted_4$r = ["href"];
30713
30725
  const _hoisted_5$h = ["disabled"];
30714
- const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30726
+ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
30715
30727
  __name: "SearchBoxProductAddToCart",
30716
30728
  props: {
30717
30729
  item: {},
@@ -30757,8 +30769,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30757
30769
  return Boolean(props.link && props.options.link);
30758
30770
  });
30759
30771
  return (_ctx, _cache) => {
30760
- return openBlock(), createElementBlock("div", _hoisted_1$1b, [
30761
- createBaseVNode("div", _hoisted_2$Q, [
30772
+ return openBlock(), createElementBlock("div", _hoisted_1$1d, [
30773
+ createBaseVNode("div", _hoisted_2$R, [
30762
30774
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
30763
30775
  key: 0,
30764
30776
  class: addToCartButtonClass.value,
@@ -30779,23 +30791,23 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30779
30791
  };
30780
30792
  }
30781
30793
  });
30782
- const _hoisted_1$1a = {
30794
+ const _hoisted_1$1c = {
30783
30795
  key: 1,
30784
30796
  class: "lupa-search-box-element-badge-wrapper"
30785
30797
  };
30786
30798
  const __default__$4 = {
30787
30799
  components: {
30788
- SearchBoxProductImage: _sfc_main$1v,
30789
- SearchBoxProductTitle: _sfc_main$1u,
30790
- SearchBoxProductDescription: _sfc_main$1t,
30791
- SearchBoxProductPrice: _sfc_main$1s,
30792
- SearchBoxProductRegularPrice: _sfc_main$1r,
30793
- SearchBoxProductCustom: _sfc_main$1q,
30794
- SearchBoxProductCustomHtml: _sfc_main$1p,
30795
- SearchBoxProductAddToCart: _sfc_main$1o
30800
+ SearchBoxProductImage: _sfc_main$1z,
30801
+ SearchBoxProductTitle: _sfc_main$1y,
30802
+ SearchBoxProductDescription: _sfc_main$1x,
30803
+ SearchBoxProductPrice: _sfc_main$1w,
30804
+ SearchBoxProductRegularPrice: _sfc_main$1v,
30805
+ SearchBoxProductCustom: _sfc_main$1u,
30806
+ SearchBoxProductCustomHtml: _sfc_main$1t,
30807
+ SearchBoxProductAddToCart: _sfc_main$1s
30796
30808
  }
30797
30809
  };
30798
- const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
30810
+ const _sfc_main$1r = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$4), {
30799
30811
  __name: "SearchBoxProductElement",
30800
30812
  props: {
30801
30813
  item: {},
@@ -30867,7 +30879,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
30867
30879
  "dynamic-attributes": dynamicAttributes.value,
30868
30880
  link: _ctx.link
30869
30881
  }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : createCommentVNode("", true)
30870
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1a, [
30882
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_1$1c, [
30871
30883
  displayElement.value ? (openBlock(), createBlock(resolveDynamicComponent(elementComponent.value), {
30872
30884
  key: 0,
30873
30885
  item: enhancedItem.value,
@@ -30882,14 +30894,14 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
30882
30894
  };
30883
30895
  }
30884
30896
  }));
30885
- const _hoisted_1$19 = { class: "lupa-badge-title" };
30886
- const _hoisted_2$P = ["src"];
30897
+ const _hoisted_1$1b = { class: "lupa-badge-title" };
30898
+ const _hoisted_2$Q = ["src"];
30887
30899
  const _hoisted_3$B = { key: 1 };
30888
30900
  const _hoisted_4$q = {
30889
30901
  key: 0,
30890
30902
  class: "lupa-badge-full-text"
30891
30903
  };
30892
- const _sfc_main$1m = /* @__PURE__ */ defineComponent({
30904
+ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
30893
30905
  __name: "SearchResultGeneratedBadge",
30894
30906
  props: {
30895
30907
  options: {},
@@ -30922,11 +30934,11 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
30922
30934
  class: normalizeClass(["lupa-dynamic-badge", customClassName.value]),
30923
30935
  style: normalizeStyle({ background: _ctx.badge.backgroundColor, color: _ctx.badge.color })
30924
30936
  }, [
30925
- createBaseVNode("span", _hoisted_1$19, [
30937
+ createBaseVNode("span", _hoisted_1$1b, [
30926
30938
  image.value ? (openBlock(), createElementBlock("img", {
30927
30939
  key: 0,
30928
30940
  src: image.value
30929
- }, null, 8, _hoisted_2$P)) : createCommentVNode("", true),
30941
+ }, null, 8, _hoisted_2$Q)) : createCommentVNode("", true),
30930
30942
  hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$B, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
30931
30943
  ]),
30932
30944
  hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
@@ -30934,8 +30946,8 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
30934
30946
  };
30935
30947
  }
30936
30948
  });
30937
- const _hoisted_1$18 = { class: "lupa-generated-badges" };
30938
- const _sfc_main$1l = /* @__PURE__ */ defineComponent({
30949
+ const _hoisted_1$1a = { class: "lupa-generated-badges" };
30950
+ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
30939
30951
  __name: "SearchResultGeneratedBadges",
30940
30952
  props: {
30941
30953
  options: {}
@@ -30961,9 +30973,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
30961
30973
  })).filter((b) => Boolean(b.id));
30962
30974
  });
30963
30975
  return (_ctx, _cache) => {
30964
- return openBlock(), createElementBlock("div", _hoisted_1$18, [
30976
+ return openBlock(), createElementBlock("div", _hoisted_1$1a, [
30965
30977
  (openBlock(true), createElementBlock(Fragment, null, renderList(badges.value, (badge) => {
30966
- return openBlock(), createBlock(_sfc_main$1m, {
30978
+ return openBlock(), createBlock(_sfc_main$1q, {
30967
30979
  key: badge.id,
30968
30980
  badge,
30969
30981
  options: _ctx.options
@@ -30973,8 +30985,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
30973
30985
  };
30974
30986
  }
30975
30987
  });
30976
- const _hoisted_1$17 = ["innerHTML"];
30977
- const _sfc_main$1k = /* @__PURE__ */ defineComponent({
30988
+ const _hoisted_1$19 = ["innerHTML"];
30989
+ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
30978
30990
  __name: "CustomBadge",
30979
30991
  props: {
30980
30992
  badge: {}
@@ -30995,12 +31007,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
30995
31007
  return openBlock(), createElementBlock("div", {
30996
31008
  class: normalizeClass(className.value),
30997
31009
  innerHTML: text.value
30998
- }, null, 10, _hoisted_1$17);
31010
+ }, null, 10, _hoisted_1$19);
30999
31011
  };
31000
31012
  }
31001
31013
  });
31002
- const _hoisted_1$16 = { class: "lupa-text-badges" };
31003
- const _sfc_main$1j = /* @__PURE__ */ defineComponent({
31014
+ const _hoisted_1$18 = { class: "lupa-text-badges" };
31015
+ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
31004
31016
  __name: "TextBadge",
31005
31017
  props: {
31006
31018
  badge: {}
@@ -31014,7 +31026,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
31014
31026
  return badges.value.slice(0, props.badge.maxItems);
31015
31027
  });
31016
31028
  return (_ctx, _cache) => {
31017
- return openBlock(), createElementBlock("div", _hoisted_1$16, [
31029
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
31018
31030
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
31019
31031
  return openBlock(), createElementBlock("div", {
31020
31032
  class: "lupa-badge lupa-text-badge",
@@ -31025,9 +31037,9 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
31025
31037
  };
31026
31038
  }
31027
31039
  });
31028
- const _hoisted_1$15 = { class: "lupa-image-badges" };
31029
- const _hoisted_2$O = ["src"];
31030
- const _sfc_main$1i = /* @__PURE__ */ defineComponent({
31040
+ const _hoisted_1$17 = { class: "lupa-image-badges" };
31041
+ const _hoisted_2$P = ["src"];
31042
+ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
31031
31043
  __name: "ImageBadge",
31032
31044
  props: {
31033
31045
  badge: {}
@@ -31047,7 +31059,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
31047
31059
  return `${props.badge.rootImageUrl}${src}`;
31048
31060
  };
31049
31061
  return (_ctx, _cache) => {
31050
- return openBlock(), createElementBlock("div", _hoisted_1$15, [
31062
+ return openBlock(), createElementBlock("div", _hoisted_1$17, [
31051
31063
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayBadges.value, (item) => {
31052
31064
  return openBlock(), createElementBlock("div", {
31053
31065
  class: "lupa-badge lupa-image-badge",
@@ -31055,14 +31067,14 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
31055
31067
  }, [
31056
31068
  createBaseVNode("img", {
31057
31069
  src: getImageUrl(item)
31058
- }, null, 8, _hoisted_2$O)
31070
+ }, null, 8, _hoisted_2$P)
31059
31071
  ]);
31060
31072
  }), 128))
31061
31073
  ]);
31062
31074
  };
31063
31075
  }
31064
31076
  });
31065
- const _sfc_main$1h = /* @__PURE__ */ defineComponent({
31077
+ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
31066
31078
  __name: "DiscountBadge",
31067
31079
  props: {
31068
31080
  badge: {}
@@ -31124,16 +31136,16 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
31124
31136
  };
31125
31137
  }
31126
31138
  });
31127
- const _hoisted_1$14 = { id: "lupa-search-results-badges" };
31139
+ const _hoisted_1$16 = { id: "lupa-search-results-badges" };
31128
31140
  const __default__$3 = {
31129
31141
  components: {
31130
- CustomBadge: _sfc_main$1k,
31131
- TextBadge: _sfc_main$1j,
31132
- ImageBadge: _sfc_main$1i,
31133
- DiscountBadge: _sfc_main$1h
31142
+ CustomBadge: _sfc_main$1o,
31143
+ TextBadge: _sfc_main$1n,
31144
+ ImageBadge: _sfc_main$1m,
31145
+ DiscountBadge: _sfc_main$1l
31134
31146
  }
31135
31147
  };
31136
- const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
31148
+ const _sfc_main$1k = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$3), {
31137
31149
  __name: "SearchResultsBadgeWrapper",
31138
31150
  props: {
31139
31151
  position: {},
@@ -31196,7 +31208,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
31196
31208
  }
31197
31209
  };
31198
31210
  return (_ctx, _cache) => {
31199
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
31211
+ return openBlock(), createElementBlock("div", _hoisted_1$16, [
31200
31212
  createBaseVNode("div", {
31201
31213
  id: "lupa-badges",
31202
31214
  class: normalizeClass(anchorPosition.value)
@@ -31207,7 +31219,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
31207
31219
  badge
31208
31220
  }, null, 8, ["badge"]);
31209
31221
  }), 128)),
31210
- positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1l, {
31222
+ positionValue.value === "card" ? (openBlock(), createBlock(_sfc_main$1p, {
31211
31223
  key: 0,
31212
31224
  options: _ctx.options
31213
31225
  }, null, 8, ["options"])) : createCommentVNode("", true)
@@ -31216,13 +31228,13 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
31216
31228
  };
31217
31229
  }
31218
31230
  }));
31219
- const _hoisted_1$13 = ["href"];
31220
- const _hoisted_2$N = { class: "lupa-search-box-product-details-section" };
31231
+ const _hoisted_1$15 = ["href"];
31232
+ const _hoisted_2$O = { class: "lupa-search-box-product-details-section" };
31221
31233
  const _hoisted_3$A = {
31222
31234
  key: 0,
31223
31235
  class: "lupa-search-box-product-add-to-cart-section"
31224
31236
  };
31225
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31237
+ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
31226
31238
  __name: "SearchBoxProduct",
31227
31239
  props: {
31228
31240
  item: {},
@@ -31328,7 +31340,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31328
31340
  style: normalizeStyle(imageStyleOverride.value)
31329
31341
  }, [
31330
31342
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
31331
- return openBlock(), createBlock(_sfc_main$1n, {
31343
+ return openBlock(), createBlock(_sfc_main$1r, {
31332
31344
  class: "lupa-search-box-product-element",
31333
31345
  key: element.key,
31334
31346
  item: _ctx.item,
@@ -31338,10 +31350,10 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31338
31350
  }, null, 8, ["item", "element", "labels", "link"]);
31339
31351
  }), 128))
31340
31352
  ], 4),
31341
- createBaseVNode("div", _hoisted_2$N, [
31353
+ createBaseVNode("div", _hoisted_2$O, [
31342
31354
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
31343
31355
  var _a25;
31344
- return openBlock(), createBlock(_sfc_main$1n, {
31356
+ return openBlock(), createBlock(_sfc_main$1r, {
31345
31357
  class: "lupa-search-box-product-element",
31346
31358
  key: element.key,
31347
31359
  item: _ctx.item,
@@ -31352,7 +31364,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31352
31364
  ((_a25 = badgeOptions.value) == null ? void 0 : _a25.anchorElementKey) === element.key ? {
31353
31365
  name: "badges",
31354
31366
  fn: withCtx(() => [
31355
- createVNode(_sfc_main$1g, {
31367
+ createVNode(_sfc_main$1k, {
31356
31368
  options: badgeOptions.value,
31357
31369
  position: "card"
31358
31370
  }, null, 8, ["options"])
@@ -31368,7 +31380,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31368
31380
  class: normalizeClass(`lupa-search-box-group-${group}`)
31369
31381
  }, [
31370
31382
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
31371
- return openBlock(), createBlock(_sfc_main$1n, {
31383
+ return openBlock(), createBlock(_sfc_main$1r, {
31372
31384
  class: "lupa-search-box-product-element",
31373
31385
  key: element.key,
31374
31386
  item: _ctx.item,
@@ -31381,7 +31393,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31381
31393
  ], 2);
31382
31394
  }), 128)),
31383
31395
  addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
31384
- createVNode(_sfc_main$1n, {
31396
+ createVNode(_sfc_main$1r, {
31385
31397
  class: "lupa-search-box-product-element",
31386
31398
  item: _ctx.item,
31387
31399
  element: addToCartElement.value,
@@ -31390,7 +31402,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31390
31402
  isInStock: isInStock.value
31391
31403
  }, null, 8, ["item", "element", "labels", "link", "isInStock"])
31392
31404
  ])) : createCommentVNode("", true)
31393
- ], 16, _hoisted_1$13);
31405
+ ], 16, _hoisted_1$15);
31394
31406
  };
31395
31407
  }
31396
31408
  });
@@ -31462,8 +31474,8 @@ const useTrackingStore = /* @__PURE__ */ defineStore("tracking", () => {
31462
31474
  };
31463
31475
  return { trackSearch, trackResults, trackEvent, trackDelayedEvent };
31464
31476
  });
31465
- const _hoisted_1$12 = ["innerHTML"];
31466
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
31477
+ const _hoisted_1$14 = ["innerHTML"];
31478
+ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
31467
31479
  __name: "SearchBoxProducts",
31468
31480
  props: {
31469
31481
  items: {},
@@ -31574,7 +31586,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
31574
31586
  itemClicked: handleProductClick
31575
31587
  });
31576
31588
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(displayItems.value, (item, index) => {
31577
- return openBlock(), createBlock(_sfc_main$1f, {
31589
+ return openBlock(), createBlock(_sfc_main$1j, {
31578
31590
  key: index,
31579
31591
  item,
31580
31592
  panelOptions: _ctx.panelOptions,
@@ -31587,7 +31599,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
31587
31599
  hasResults.value && ((_a25 = _ctx.panelOptions) == null ? void 0 : _a25.appendCustomHtml) && (showAll.value || !showAllItemsToggleButton.value) ? (openBlock(), createElementBlock("div", {
31588
31600
  key: 2,
31589
31601
  innerHTML: _ctx.panelOptions.appendCustomHtml
31590
- }, null, 8, _hoisted_1$12)) : createCommentVNode("", true),
31602
+ }, null, 8, _hoisted_1$14)) : createCommentVNode("", true),
31591
31603
  showAllItemsToggleButton.value ? (openBlock(), createElementBlock("a", {
31592
31604
  key: 3,
31593
31605
  class: "lupa-search-box-expand",
@@ -31598,9 +31610,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
31598
31610
  };
31599
31611
  }
31600
31612
  });
31601
- const _hoisted_1$11 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
31602
- const _hoisted_2$M = { key: 0 };
31603
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
31613
+ const _hoisted_1$13 = { class: "lupa-search-box-documents-go-to-results-wrapper" };
31614
+ const _hoisted_2$N = { key: 0 };
31615
+ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
31604
31616
  __name: "SearchBoxProductsGoToResultsButton",
31605
31617
  props: {
31606
31618
  options: {},
@@ -31631,13 +31643,13 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
31631
31643
  emit2("goToResults");
31632
31644
  };
31633
31645
  return (_ctx, _cache) => {
31634
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
31646
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [
31635
31647
  createBaseVNode("button", {
31636
31648
  class: "lupa-search-box-documents-go-to-results-button",
31637
31649
  onClick: goToResults
31638
31650
  }, [
31639
31651
  createTextVNode(toDisplayString(goToResultsLabel.value) + " ", 1),
31640
- totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$M, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
31652
+ totalCount.value ? (openBlock(), createElementBlock("span", _hoisted_2$N, " " + toDisplayString(totalCount.value), 1)) : createCommentVNode("", true)
31641
31653
  ])
31642
31654
  ]);
31643
31655
  };
@@ -31733,7 +31745,7 @@ const processExtractionObject = (value = {}) => {
31733
31745
  }
31734
31746
  return parsedObject;
31735
31747
  };
31736
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
31748
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
31737
31749
  __name: "SearchBoxProductsWrapper",
31738
31750
  props: {
31739
31751
  panel: {},
@@ -31804,7 +31816,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
31804
31816
  watch(() => props.panel.limit, getItemsDebounced);
31805
31817
  return (_ctx, _cache) => {
31806
31818
  var _a25, _b25;
31807
- return openBlock(), createBlock(_sfc_main$1e, {
31819
+ return openBlock(), createBlock(_sfc_main$1i, {
31808
31820
  items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
31809
31821
  panelOptions: _ctx.panel,
31810
31822
  labels: _ctx.labels,
@@ -31814,7 +31826,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
31814
31826
  default: withCtx(() => {
31815
31827
  var _a26;
31816
31828
  return [
31817
- showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1d, {
31829
+ showGoToResultsButton.value && ((_a26 = searchResult.value) == null ? void 0 : _a26.items.length) ? (openBlock(), createBlock(_sfc_main$1h, {
31818
31830
  key: 0,
31819
31831
  options: _ctx.searchBoxOptions,
31820
31832
  panel: _ctx.panel,
@@ -31835,7 +31847,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
31835
31847
  };
31836
31848
  }
31837
31849
  });
31838
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
31850
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
31839
31851
  __name: "SearchBoxRelatedSourceWrapper",
31840
31852
  props: {
31841
31853
  panel: {},
@@ -31907,7 +31919,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
31907
31919
  });
31908
31920
  return (_ctx, _cache) => {
31909
31921
  var _a25, _b25;
31910
- return openBlock(), createBlock(_sfc_main$1e, {
31922
+ return openBlock(), createBlock(_sfc_main$1i, {
31911
31923
  items: (_b25 = (_a25 = searchResult.value) == null ? void 0 : _a25.items) != null ? _b25 : [],
31912
31924
  panelOptions: documentPanelOptions.value,
31913
31925
  labels: _ctx.labels,
@@ -31925,8 +31937,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
31925
31937
  };
31926
31938
  }
31927
31939
  });
31928
- const _hoisted_1$10 = ["data-cy"];
31929
- const _hoisted_2$L = {
31940
+ const _hoisted_1$12 = ["data-cy"];
31941
+ const _hoisted_2$M = {
31930
31942
  key: 0,
31931
31943
  class: "lupa-panel-title lupa-panel-title-top-results"
31932
31944
  };
@@ -31936,12 +31948,12 @@ const _hoisted_3$z = {
31936
31948
  };
31937
31949
  const __default__$2 = {
31938
31950
  components: {
31939
- SearchBoxSuggestionsWrapper: _sfc_main$1x,
31940
- SearchBoxProductsWrapper: _sfc_main$1c,
31941
- SearchBoxRelatedSourceWrapper: _sfc_main$1b
31951
+ SearchBoxSuggestionsWrapper: _sfc_main$1B,
31952
+ SearchBoxProductsWrapper: _sfc_main$1g,
31953
+ SearchBoxRelatedSourceWrapper: _sfc_main$1f
31942
31954
  }
31943
31955
  };
31944
- const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
31956
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$2), {
31945
31957
  __name: "SearchBoxMainPanel",
31946
31958
  props: {
31947
31959
  options: {},
@@ -32132,7 +32144,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
32132
32144
  style: normalizeStyle(panel.gridArea ? { gridArea: `${panel.gridArea}${index}` } : {}),
32133
32145
  "data-cy": "lupa-panel-" + panel.type + "-index"
32134
32146
  }, [
32135
- ((_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),
32147
+ ((_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),
32136
32148
  ((_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),
32137
32149
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
32138
32150
  key: 2,
@@ -32155,14 +32167,14 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
32155
32167
  key: "0"
32156
32168
  } : void 0
32157
32169
  ]), 1064, ["panel", "search-box-options", "options", "debounce", "inputValue", "labels"])) : createCommentVNode("", true)
32158
- ], 14, _hoisted_1$10);
32170
+ ], 14, _hoisted_1$12);
32159
32171
  }), 128))
32160
32172
  ], 4),
32161
- !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1A, {
32173
+ !unref(hasAnyResults) && _ctx.options.showNoResultsPanel ? (openBlock(), createBlock(_sfc_main$1E, {
32162
32174
  key: 1,
32163
32175
  options: _ctx.options
32164
32176
  }, null, 8, ["options"])) : createCommentVNode("", true),
32165
- displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1D, {
32177
+ displayShowMoreResultsButton.value ? (openBlock(), createBlock(_sfc_main$1H, {
32166
32178
  key: 2,
32167
32179
  labels: labels.value,
32168
32180
  options: _ctx.options,
@@ -32173,7 +32185,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
32173
32185
  id: "lupa-search-box-panel",
32174
32186
  class: normalizeClass({ "lupa-search-text-empty": isSearchEmpty.value })
32175
32187
  }, [
32176
- createVNode(_sfc_main$1B, {
32188
+ createVNode(_sfc_main$1F, {
32177
32189
  options: _ctx.options.history,
32178
32190
  history: history.value,
32179
32191
  onGoToResults: handleGoToResults,
@@ -32198,8 +32210,8 @@ const unbindSearchTriggers = (triggers = [], event) => {
32198
32210
  const elements = getElements(triggers);
32199
32211
  elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
32200
32212
  };
32201
- const _hoisted_1$$ = { class: "lupa-search-box-wrapper" };
32202
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
32213
+ const _hoisted_1$11 = { class: "lupa-search-box-wrapper" };
32214
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
32203
32215
  __name: "SearchBox",
32204
32216
  props: {
32205
32217
  options: {},
@@ -32538,8 +32550,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
32538
32550
  id: "lupa-search-box",
32539
32551
  class: normalizeClass({ "lupa-search-box-opened": opened.value })
32540
32552
  }, [
32541
- createBaseVNode("div", _hoisted_1$$, [
32542
- createVNode(_sfc_main$1E, {
32553
+ createBaseVNode("div", _hoisted_1$11, [
32554
+ createVNode(_sfc_main$1I, {
32543
32555
  options: inputOptions.value,
32544
32556
  suggestedValue: suggestedValue.value,
32545
32557
  "can-close": (_a26 = _ctx.isSearchContainer) != null ? _a26 : false,
@@ -32552,7 +32564,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
32552
32564
  onSearch: handleSearch,
32553
32565
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
32554
32566
  }, null, 8, ["options", "suggestedValue", "can-close", "emit-input-on-focus"]),
32555
- opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1a, {
32567
+ opened.value || _ctx.isSearchContainer ? (openBlock(), createBlock(_sfc_main$1e, {
32556
32568
  key: 0,
32557
32569
  options: panelOptions.value,
32558
32570
  inputValue: inputValue.value,
@@ -32643,11 +32655,11 @@ const getSearchParams = (url, params, baseUrl) => {
32643
32655
  }
32644
32656
  return searchParams;
32645
32657
  };
32646
- const _hoisted_1$_ = {
32658
+ const _hoisted_1$10 = {
32647
32659
  key: 0,
32648
32660
  id: "lupa-search-results-did-you-mean"
32649
32661
  };
32650
- const _hoisted_2$K = {
32662
+ const _hoisted_2$L = {
32651
32663
  key: 0,
32652
32664
  "data-cy": "suggested-search-text-label"
32653
32665
  };
@@ -32656,7 +32668,7 @@ const _hoisted_3$y = {
32656
32668
  "data-cy": "did-you-mean-label"
32657
32669
  };
32658
32670
  const _hoisted_4$p = { key: 1 };
32659
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
32671
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
32660
32672
  __name: "SearchResultsDidYouMean",
32661
32673
  props: {
32662
32674
  labels: {}
@@ -32688,8 +32700,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
32688
32700
  paramStore.goToResults({ searchText, facet });
32689
32701
  };
32690
32702
  return (_ctx, _cache) => {
32691
- return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
32692
- unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$K, [
32703
+ return unref(searchResult).suggestedSearchText || didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_1$10, [
32704
+ unref(searchResult).suggestedSearchText ? (openBlock(), createElementBlock("div", _hoisted_2$L, [
32693
32705
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.noResultsSuggestion.split(" "), (label, index) => {
32694
32706
  return openBlock(), createElementBlock("span", { key: index }, [
32695
32707
  createBaseVNode("span", {
@@ -32714,12 +32726,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
32714
32726
  };
32715
32727
  }
32716
32728
  });
32717
- const _hoisted_1$Z = {
32729
+ const _hoisted_1$$ = {
32718
32730
  key: 0,
32719
32731
  class: "lupa-search-results-summary"
32720
32732
  };
32721
- const _hoisted_2$J = ["innerHTML"];
32722
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
32733
+ const _hoisted_2$K = ["innerHTML"];
32734
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
32723
32735
  __name: "SearchResultsSummary",
32724
32736
  props: {
32725
32737
  label: {},
@@ -32734,8 +32746,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
32734
32746
  return addParamsToLabel(props.label, range2, `<span>${totalItems.value}</span>`);
32735
32747
  });
32736
32748
  return (_ctx, _cache) => {
32737
- return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$Z, [
32738
- createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$J),
32749
+ return unref(totalItems) > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$$, [
32750
+ createBaseVNode("div", { innerHTML: summaryLabel.value }, null, 8, _hoisted_2$K),
32739
32751
  _ctx.clearable ? (openBlock(), createElementBlock("span", {
32740
32752
  key: 0,
32741
32753
  class: "lupa-filter-clear",
@@ -32746,7 +32758,130 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
32746
32758
  };
32747
32759
  }
32748
32760
  });
32749
- const _hoisted_1$Y = {
32761
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
32762
+ __name: "SkeletonBlock",
32763
+ props: {
32764
+ style: {}
32765
+ },
32766
+ setup(__props) {
32767
+ return (_ctx, _cache) => {
32768
+ return openBlock(), createElementBlock("div", {
32769
+ class: "lupa-skeleton-block-wrapper",
32770
+ style: normalizeStyle(_ctx.style)
32771
+ }, _cache[0] || (_cache[0] = [
32772
+ createBaseVNode("div", { class: "lupa-skeleton-block" }, [
32773
+ createBaseVNode("div", { class: "lupa-skeleton-block__shimmer" })
32774
+ ], -1)
32775
+ ]), 4);
32776
+ };
32777
+ }
32778
+ });
32779
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
32780
+ __name: "SkeletonText",
32781
+ props: {
32782
+ style: {},
32783
+ lines: { default: 1 }
32784
+ },
32785
+ setup(__props) {
32786
+ return (_ctx, _cache) => {
32787
+ return openBlock(), createElementBlock("div", {
32788
+ class: "lupa-skeleton-text-wrapper",
32789
+ style: normalizeStyle(_ctx.style)
32790
+ }, [
32791
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.lines, (i) => {
32792
+ return openBlock(), createElementBlock("div", {
32793
+ key: i,
32794
+ class: "lupa-skeleton-line"
32795
+ }, _cache[0] || (_cache[0] = [
32796
+ createBaseVNode("div", { class: "lupa-skeleton-line__shimmer" }, null, -1)
32797
+ ]));
32798
+ }), 128))
32799
+ ], 4);
32800
+ };
32801
+ }
32802
+ });
32803
+ const _hoisted_1$_ = {
32804
+ key: 1,
32805
+ class: "lupa-skeleton-text"
32806
+ };
32807
+ const _hoisted_2$J = {
32808
+ key: 2,
32809
+ class: "lupa-skeleton-blocks"
32810
+ };
32811
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
32812
+ __name: "LoadingBlock",
32813
+ props: {
32814
+ style: {},
32815
+ type: {},
32816
+ enabled: { type: Boolean },
32817
+ loading: { type: Boolean },
32818
+ count: {}
32819
+ },
32820
+ setup(__props) {
32821
+ return (_ctx, _cache) => {
32822
+ return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.type === "text" ? (openBlock(), createElementBlock("div", _hoisted_1$_, [
32823
+ createVNode(_sfc_main$19, {
32824
+ style: normalizeStyle(_ctx.style),
32825
+ lines: _ctx.count
32826
+ }, null, 8, ["style", "lines"])
32827
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$J, [
32828
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
32829
+ return openBlock(), createBlock(_sfc_main$1a, {
32830
+ key: n,
32831
+ style: normalizeStyle(_ctx.style)
32832
+ }, null, 8, ["style"]);
32833
+ }), 128))
32834
+ ]));
32835
+ };
32836
+ }
32837
+ });
32838
+ const useLoadingSkeleton = () => {
32839
+ const paramsStore = useParamsStore();
32840
+ const optionsStore = useOptionsStore();
32841
+ const searchResultStore = useSearchResultStore();
32842
+ const { limit } = storeToRefs(paramsStore);
32843
+ const {
32844
+ searchResult,
32845
+ relatedQueriesResult,
32846
+ loading,
32847
+ loadingFacets: loadingFacetsBase,
32848
+ loadingRelatedQueries
32849
+ } = storeToRefs(searchResultStore);
32850
+ const { searchResultOptions } = storeToRefs(optionsStore);
32851
+ const skeletonEnabled = computed(() => {
32852
+ var _a25, _b25, _c, _d;
32853
+ 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);
32854
+ });
32855
+ const relatedQueriesSkeletonEnabled = computed(() => {
32856
+ var _a25, _b25, _c, _d, _e;
32857
+ 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);
32858
+ });
32859
+ const facetSkeletonEnabled = computed(() => {
32860
+ var _a25, _b25, _c, _d;
32861
+ 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);
32862
+ });
32863
+ const loadingFacets = computed(() => {
32864
+ var _a25;
32865
+ if ((_a25 = searchResultOptions.value) == null ? void 0 : _a25.splitExpensiveRequests) {
32866
+ return loadingFacetsBase.value;
32867
+ }
32868
+ return loading.value;
32869
+ });
32870
+ const loadingAny = computed(() => {
32871
+ return loading.value || loadingRelatedQueries.value || loadingFacets.value;
32872
+ });
32873
+ return {
32874
+ loading,
32875
+ loadingRelatedQueries,
32876
+ loadingFacets,
32877
+ loadingAny,
32878
+ limit,
32879
+ skeletonEnabled,
32880
+ relatedQueriesSkeletonEnabled,
32881
+ facetSkeletonEnabled
32882
+ };
32883
+ };
32884
+ const _hoisted_1$Z = {
32750
32885
  key: 0,
32751
32886
  class: "lupa-result-page-title",
32752
32887
  "data-cy": "lupa-result-page-title"
@@ -32758,7 +32893,7 @@ const _hoisted_3$x = {
32758
32893
  };
32759
32894
  const _hoisted_4$o = { class: "lupa-results-total-count-number" };
32760
32895
  const _hoisted_5$g = ["innerHTML"];
32761
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
32896
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
32762
32897
  __name: "SearchResultsTitle",
32763
32898
  props: {
32764
32899
  options: {},
@@ -32768,7 +32903,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
32768
32903
  setup(__props) {
32769
32904
  const props = __props;
32770
32905
  const searchResultStore = useSearchResultStore();
32906
+ const paramsStore = useParamsStore();
32771
32907
  const { currentQueryText, totalItems, searchResult } = storeToRefs(searchResultStore);
32908
+ const { skeletonEnabled, loading } = useLoadingSkeleton();
32909
+ const { query } = storeToRefs(paramsStore);
32772
32910
  const suggestedSearchText = computed(() => searchResult.value.suggestedSearchText);
32773
32911
  const queryText = computed(() => {
32774
32912
  return suggestedSearchText.value || currentQueryText.value;
@@ -32801,29 +32939,39 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
32801
32939
  });
32802
32940
  return (_ctx, _cache) => {
32803
32941
  return openBlock(), createElementBlock("div", null, [
32804
- showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Y, [
32805
- createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
32806
- queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
32807
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
32808
- createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
32809
- createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
32810
- _cache[0] || (_cache[0] = createTextVNode(")"))
32811
- ])) : createCommentVNode("", true)
32812
- ])) : createCommentVNode("", true),
32813
- _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$17, {
32814
- key: 1,
32815
- label: summaryLabel.value
32816
- }, null, 8, ["label"])) : createCommentVNode("", true),
32817
- descriptionTop.value ? (openBlock(), createElementBlock("div", {
32818
- key: 2,
32819
- class: "lupa-result-page-description-top",
32820
- innerHTML: descriptionTop.value
32821
- }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
32942
+ createVNode(_sfc_main$18, {
32943
+ type: "text",
32944
+ count: 1,
32945
+ enabled: unref(skeletonEnabled) && Boolean(unref(query)),
32946
+ loading: unref(loading)
32947
+ }, {
32948
+ default: withCtx(() => [
32949
+ showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$Z, [
32950
+ createTextVNode(toDisplayString(searchResultsTitleTemplate.value || _ctx.options.labels.searchResults), 1),
32951
+ queryText.value && !searchResultsTitleTemplate.value ? (openBlock(), createElementBlock("span", _hoisted_2$I, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
32952
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, [
32953
+ createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
32954
+ createBaseVNode("span", _hoisted_4$o, toDisplayString(unref(totalItems)), 1),
32955
+ _cache[0] || (_cache[0] = createTextVNode(")"))
32956
+ ])) : createCommentVNode("", true)
32957
+ ])) : createCommentVNode("", true),
32958
+ _ctx.showSummary ? (openBlock(), createBlock(_sfc_main$1b, {
32959
+ key: 1,
32960
+ label: summaryLabel.value
32961
+ }, null, 8, ["label"])) : createCommentVNode("", true),
32962
+ descriptionTop.value ? (openBlock(), createElementBlock("div", {
32963
+ key: 2,
32964
+ class: "lupa-result-page-description-top",
32965
+ innerHTML: descriptionTop.value
32966
+ }, null, 8, _hoisted_5$g)) : createCommentVNode("", true)
32967
+ ]),
32968
+ _: 1
32969
+ }, 8, ["enabled", "loading"])
32822
32970
  ]);
32823
32971
  };
32824
32972
  }
32825
32973
  });
32826
- const _hoisted_1$X = {
32974
+ const _hoisted_1$Y = {
32827
32975
  class: "lupa-current-filter-label",
32828
32976
  "data-cy": "lupa-current-filter-label"
32829
32977
  };
@@ -32831,7 +32979,7 @@ const _hoisted_2$H = {
32831
32979
  class: "lupa-current-filter-value",
32832
32980
  "data-cy": "lupa-current-filter-value"
32833
32981
  };
32834
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
32982
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
32835
32983
  __name: "CurrentFilterDisplay",
32836
32984
  props: {
32837
32985
  filter: {}
@@ -32873,13 +33021,13 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
32873
33021
  onClick: handleClick,
32874
33022
  "aria-label": "Remove filter"
32875
33023
  }, "⨉"),
32876
- createBaseVNode("div", _hoisted_1$X, toDisplayString(_ctx.filter.label) + ": ", 1),
33024
+ createBaseVNode("div", _hoisted_1$Y, toDisplayString(_ctx.filter.label) + ": ", 1),
32877
33025
  createBaseVNode("div", _hoisted_2$H, toDisplayString(formatFilterValue(props.filter)), 1)
32878
33026
  ], 2);
32879
33027
  };
32880
33028
  }
32881
33029
  });
32882
- const _hoisted_1$W = { class: "lupa-filter-title-text" };
33030
+ const _hoisted_1$X = { class: "lupa-filter-title-text" };
32883
33031
  const _hoisted_2$G = {
32884
33032
  key: 0,
32885
33033
  class: "lupa-filter-count"
@@ -32889,7 +33037,7 @@ const _hoisted_3$w = {
32889
33037
  class: "filter-values"
32890
33038
  };
32891
33039
  const _hoisted_4$n = { class: "lupa-current-filter-list" };
32892
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
33040
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
32893
33041
  __name: "CurrentFilters",
32894
33042
  props: {
32895
33043
  options: {},
@@ -32969,7 +33117,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
32969
33117
  class: "lupa-current-filter-title",
32970
33118
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value)
32971
33119
  }, [
32972
- createBaseVNode("div", _hoisted_1$W, [
33120
+ createBaseVNode("div", _hoisted_1$X, [
32973
33121
  createTextVNode(toDisplayString((_c = (_b25 = (_a25 = _ctx.options) == null ? void 0 : _a25.labels) == null ? void 0 : _b25.title) != null ? _c : "") + " ", 1),
32974
33122
  _ctx.expandable ? (openBlock(), createElementBlock("span", _hoisted_2$G, " (" + toDisplayString(unref(currentFilterCount)) + ") ", 1)) : createCommentVNode("", true)
32975
33123
  ]),
@@ -32981,7 +33129,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
32981
33129
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
32982
33130
  createBaseVNode("div", _hoisted_4$n, [
32983
33131
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
32984
- return openBlock(), createBlock(_sfc_main$15, {
33132
+ return openBlock(), createBlock(_sfc_main$16, {
32985
33133
  key: filter.key + "_" + filter.value,
32986
33134
  filter,
32987
33135
  units: units.value,
@@ -32999,8 +33147,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
32999
33147
  };
33000
33148
  }
33001
33149
  });
33002
- const _hoisted_1$V = ["href"];
33003
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
33150
+ const _hoisted_1$W = ["href"];
33151
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
33004
33152
  __name: "CategoryFilterItem",
33005
33153
  props: {
33006
33154
  options: {},
@@ -33037,12 +33185,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
33037
33185
  "data-cy": "lupa-child-category-item",
33038
33186
  href: urlLink.value,
33039
33187
  onClick: handleNavigation
33040
- }, toDisplayString(title.value), 9, _hoisted_1$V)
33188
+ }, toDisplayString(title.value), 9, _hoisted_1$W)
33041
33189
  ], 2);
33042
33190
  };
33043
33191
  }
33044
33192
  });
33045
- const _hoisted_1$U = {
33193
+ const _hoisted_1$V = {
33046
33194
  class: "lupa-category-filter",
33047
33195
  "data-cy": "lupa-category-filter"
33048
33196
  };
@@ -33050,7 +33198,7 @@ const _hoisted_2$F = { class: "lupa-category-back" };
33050
33198
  const _hoisted_3$v = ["href"];
33051
33199
  const _hoisted_4$m = ["href"];
33052
33200
  const _hoisted_5$f = { class: "lupa-child-category-list" };
33053
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
33201
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
33054
33202
  __name: "CategoryFilter",
33055
33203
  props: {
33056
33204
  options: {}
@@ -33138,7 +33286,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
33138
33286
  };
33139
33287
  __expose({ fetch: fetch2 });
33140
33288
  return (_ctx, _cache) => {
33141
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
33289
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
33142
33290
  createBaseVNode("div", _hoisted_2$F, [
33143
33291
  hasBackButton.value ? (openBlock(), createElementBlock("a", {
33144
33292
  key: 0,
@@ -33159,7 +33307,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
33159
33307
  ], 2),
33160
33308
  createBaseVNode("div", _hoisted_5$f, [
33161
33309
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
33162
- return openBlock(), createBlock(_sfc_main$13, {
33310
+ return openBlock(), createBlock(_sfc_main$14, {
33163
33311
  key: getCategoryKey(child),
33164
33312
  item: child,
33165
33313
  options: _ctx.options
@@ -33170,7 +33318,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
33170
33318
  };
33171
33319
  }
33172
33320
  });
33173
- const _hoisted_1$T = {
33321
+ const _hoisted_1$U = {
33174
33322
  class: "lupa-search-result-facet-term-values",
33175
33323
  "data-cy": "lupa-search-result-facet-term-values"
33176
33324
  };
@@ -33185,7 +33333,7 @@ const _hoisted_7$4 = {
33185
33333
  };
33186
33334
  const _hoisted_8$2 = { key: 0 };
33187
33335
  const _hoisted_9$2 = { key: 1 };
33188
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
33336
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
33189
33337
  __name: "TermFacet",
33190
33338
  props: {
33191
33339
  options: {},
@@ -33279,7 +33427,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
33279
33427
  }
33280
33428
  };
33281
33429
  return (_ctx, _cache) => {
33282
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
33430
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
33283
33431
  isFilterable.value ? withDirectives((openBlock(), createElementBlock("input", {
33284
33432
  key: 0,
33285
33433
  class: "lupa-term-filter",
@@ -34228,7 +34376,7 @@ const roundToMaxDecimals = (value, maxPrecision = 0.1) => {
34228
34376
  }
34229
34377
  return out;
34230
34378
  };
34231
- const _hoisted_1$S = { class: "lupa-search-result-facet-stats-values" };
34379
+ const _hoisted_1$T = { class: "lupa-search-result-facet-stats-values" };
34232
34380
  const _hoisted_2$D = {
34233
34381
  key: 0,
34234
34382
  class: "lupa-stats-facet-summary"
@@ -34257,7 +34405,7 @@ const _hoisted_14 = {
34257
34405
  key: 2,
34258
34406
  class: "lupa-stats-slider-wrapper"
34259
34407
  };
34260
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
34408
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
34261
34409
  __name: "StatsFacet",
34262
34410
  props: {
34263
34411
  options: {},
@@ -34476,7 +34624,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
34476
34624
  }
34477
34625
  );
34478
34626
  return (_ctx, _cache) => {
34479
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
34627
+ return openBlock(), createElementBlock("div", _hoisted_1$T, [
34480
34628
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$D, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$t, [
34481
34629
  createBaseVNode("div", _hoisted_4$k, [
34482
34630
  rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_5$d, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
@@ -34541,7 +34689,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
34541
34689
  };
34542
34690
  }
34543
34691
  });
34544
- const _hoisted_1$R = { class: "lupa-term-checkbox-wrapper" };
34692
+ const _hoisted_1$S = { class: "lupa-term-checkbox-wrapper" };
34545
34693
  const _hoisted_2$C = { class: "lupa-term-label" };
34546
34694
  const _hoisted_3$s = {
34547
34695
  key: 0,
@@ -34551,7 +34699,7 @@ const _hoisted_4$j = {
34551
34699
  key: 0,
34552
34700
  class: "lupa-facet-level"
34553
34701
  };
34554
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
34702
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
34555
34703
  __name: "HierarchyFacetLevel",
34556
34704
  props: {
34557
34705
  options: {},
@@ -34605,7 +34753,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
34605
34753
  "data-cy": "lupa-facet-term",
34606
34754
  onClick: _cache[0] || (_cache[0] = ($event) => handleFacetClick(_ctx.item))
34607
34755
  }, [
34608
- createBaseVNode("div", _hoisted_1$R, [
34756
+ createBaseVNode("div", _hoisted_1$S, [
34609
34757
  createBaseVNode("span", {
34610
34758
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked.value }])
34611
34759
  }, null, 2)
@@ -34633,13 +34781,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
34633
34781
  };
34634
34782
  }
34635
34783
  });
34636
- const _hoisted_1$Q = {
34784
+ const _hoisted_1$R = {
34637
34785
  class: "lupa-search-result-facet-term-values lupa-search-result-facet-hierarchy-values",
34638
34786
  "data-cy": "lupa-search-result-facet-term-values"
34639
34787
  };
34640
34788
  const _hoisted_2$B = { key: 0 };
34641
34789
  const _hoisted_3$r = ["placeholder"];
34642
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
34790
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
34643
34791
  __name: "HierarchyFacet",
34644
34792
  props: {
34645
34793
  options: {},
@@ -34695,7 +34843,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
34695
34843
  showAll.value = false;
34696
34844
  };
34697
34845
  return (_ctx, _cache) => {
34698
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
34846
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
34699
34847
  isFilterable.value ? (openBlock(), createElementBlock("div", _hoisted_2$B, [
34700
34848
  withDirectives(createBaseVNode("input", {
34701
34849
  class: "lupa-term-filter",
@@ -34707,7 +34855,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
34707
34855
  ])
34708
34856
  ])) : createCommentVNode("", true),
34709
34857
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
34710
- return openBlock(), createBlock(_sfc_main$$, {
34858
+ return openBlock(), createBlock(_sfc_main$10, {
34711
34859
  key: item.title,
34712
34860
  options: _ctx.options,
34713
34861
  item,
@@ -34731,7 +34879,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
34731
34879
  };
34732
34880
  }
34733
34881
  });
34734
- const _hoisted_1$P = { class: "lupa-facet-label-text" };
34882
+ const _hoisted_1$Q = { class: "lupa-facet-label-text" };
34735
34883
  const _hoisted_2$A = {
34736
34884
  key: 0,
34737
34885
  class: "lupa-facet-content",
@@ -34739,12 +34887,12 @@ const _hoisted_2$A = {
34739
34887
  };
34740
34888
  const __default__$1 = {
34741
34889
  components: {
34742
- TermFacet: _sfc_main$11,
34743
- StatsFacet: _sfc_main$10,
34744
- HierarchyFacet: _sfc_main$_
34890
+ TermFacet: _sfc_main$12,
34891
+ StatsFacet: _sfc_main$11,
34892
+ HierarchyFacet: _sfc_main$$
34745
34893
  }
34746
34894
  };
34747
- const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
34895
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__$1), {
34748
34896
  __name: "FacetDisplay",
34749
34897
  props: {
34750
34898
  options: {},
@@ -34891,7 +35039,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
34891
35039
  "data-cy": "lupa-search-result-facet-label",
34892
35040
  onClick: toggleFacet
34893
35041
  }, [
34894
- createBaseVNode("div", _hoisted_1$P, toDisplayString(facetLabel.value), 1),
35042
+ createBaseVNode("div", _hoisted_1$Q, toDisplayString(facetLabel.value), 1),
34895
35043
  createBaseVNode("div", {
34896
35044
  class: normalizeClass(["lupa-facet-label-caret", isOpen.value && "open"])
34897
35045
  }, null, 2)
@@ -35009,11 +35157,11 @@ const useSidebarToggle = () => {
35009
35157
  handleSortSidebarToggle
35010
35158
  };
35011
35159
  };
35012
- const _hoisted_1$O = {
35160
+ const _hoisted_1$P = {
35013
35161
  key: 0,
35014
35162
  class: "lupa-desktop-toggle-filter-count"
35015
35163
  };
35016
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
35164
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
35017
35165
  __name: "DesktopFacetToggle",
35018
35166
  setup(__props) {
35019
35167
  const {
@@ -35035,12 +35183,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
35035
35183
  (...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
35036
35184
  }, [
35037
35185
  createTextVNode(toDisplayString(unref(label)) + " ", 1),
35038
- unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$O, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35186
+ unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35039
35187
  ], 2);
35040
35188
  };
35041
35189
  }
35042
35190
  });
35043
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
35191
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
35044
35192
  __name: "DesktopSortToggle",
35045
35193
  setup(__props) {
35046
35194
  const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
@@ -35056,12 +35204,12 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
35056
35204
  };
35057
35205
  }
35058
35206
  });
35059
- const _hoisted_1$N = { class: "lupa-search-result-facet-section" };
35207
+ const _hoisted_1$O = { class: "lupa-search-result-facet-section" };
35060
35208
  const _hoisted_2$z = {
35061
35209
  key: 0,
35062
35210
  class: "lupa-facets-title"
35063
35211
  };
35064
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
35212
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
35065
35213
  __name: "FacetList",
35066
35214
  props: {
35067
35215
  options: {},
@@ -35103,14 +35251,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
35103
35251
  };
35104
35252
  return (_ctx, _cache) => {
35105
35253
  var _a25;
35106
- return openBlock(), createElementBlock("div", _hoisted_1$N, [
35254
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
35107
35255
  _ctx.options.labels.title ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(_ctx.options.labels.title), 1)) : createCommentVNode("", true),
35108
35256
  createBaseVNode("div", {
35109
35257
  class: normalizeClass(["lupa-search-result-facet-list", "lupa-" + ((_a25 = displayFacetStyle.value) != null ? _a25 : "")])
35110
35258
  }, [
35111
35259
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayFacets.value, (facet) => {
35112
35260
  var _a26;
35113
- return openBlock(), createBlock(_sfc_main$Z, {
35261
+ return openBlock(), createBlock(_sfc_main$_, {
35114
35262
  key: facet.key,
35115
35263
  facet,
35116
35264
  currentFilters: currentFiltersValue.value,
@@ -35122,14 +35270,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
35122
35270
  onExpand: unref(handleFilterSidebarToggle)
35123
35271
  }, null, 8, ["facet", "currentFilters", "options", "clearable", "current-facet-style", "onExpand"]);
35124
35272
  }), 128)),
35125
- _ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Y, { key: 0 })) : createCommentVNode("", true),
35126
- _ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$X, { key: 1 })) : createCommentVNode("", true)
35273
+ _ctx.facetStyle === "drawer" ? (openBlock(), createBlock(_sfc_main$Z, { key: 0 })) : createCommentVNode("", true),
35274
+ _ctx.facetStyle === "drawer" || _ctx.facetStyle === "top-dropdown" ? (openBlock(), createBlock(_sfc_main$Y, { key: 1 })) : createCommentVNode("", true)
35127
35275
  ], 2)
35128
35276
  ]);
35129
35277
  };
35130
35278
  }
35131
35279
  });
35132
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
35280
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
35133
35281
  __name: "FacetsButton",
35134
35282
  props: {
35135
35283
  options: {}
@@ -35154,7 +35302,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
35154
35302
  };
35155
35303
  }
35156
35304
  });
35157
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
35305
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
35158
35306
  __name: "FacetsClearButton",
35159
35307
  props: {
35160
35308
  options: {}
@@ -35179,8 +35327,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
35179
35327
  };
35180
35328
  }
35181
35329
  });
35182
- const _hoisted_1$M = { class: "lupa-facets-filter-button-wrapper" };
35183
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
35330
+ const _hoisted_1$N = { class: "lupa-facets-filter-button-wrapper" };
35331
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
35184
35332
  __name: "Facets",
35185
35333
  props: {
35186
35334
  options: {},
@@ -35288,7 +35436,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
35288
35436
  return openBlock(), createElementBlock("div", {
35289
35437
  class: normalizeClass(["lupa-search-result-facets", { "lupa-search-result-facets-loading": unref(loadingFacets) }])
35290
35438
  }, [
35291
- regularFacets.value ? (openBlock(), createBlock(_sfc_main$W, {
35439
+ regularFacets.value ? (openBlock(), createBlock(_sfc_main$X, {
35292
35440
  key: 0,
35293
35441
  options: _ctx.options,
35294
35442
  facets: regularFacets.value,
@@ -35298,13 +35446,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
35298
35446
  onSelect: handleFacetSelect,
35299
35447
  onClear: clear
35300
35448
  }, null, 8, ["options", "facets", "currentFilters", "facetStyle", "clearable"])) : createCommentVNode("", true),
35301
- createBaseVNode("div", _hoisted_1$M, [
35302
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$U, {
35449
+ createBaseVNode("div", _hoisted_1$N, [
35450
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
35303
35451
  key: 0,
35304
35452
  options: _ctx.options,
35305
35453
  onClear: clearAll
35306
35454
  }, null, 8, ["options"])) : createCommentVNode("", true),
35307
- showFilterButton.value ? (openBlock(), createBlock(_sfc_main$V, {
35455
+ showFilterButton.value ? (openBlock(), createBlock(_sfc_main$W, {
35308
35456
  key: 1,
35309
35457
  options: _ctx.options,
35310
35458
  onFilter: filter
@@ -35314,12 +35462,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
35314
35462
  };
35315
35463
  }
35316
35464
  });
35317
- const _hoisted_1$L = {
35465
+ const _hoisted_1$M = {
35318
35466
  key: 0,
35319
35467
  id: "lupa-search-result-filters",
35320
35468
  class: "lupa-search-result-filters"
35321
35469
  };
35322
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
35470
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
35323
35471
  __name: "SearchResultsFilters",
35324
35472
  props: {
35325
35473
  options: {},
@@ -35329,6 +35477,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
35329
35477
  emits: ["filter"],
35330
35478
  setup(__props, { expose: __expose, emit: __emit }) {
35331
35479
  const categoryFilters = ref(null);
35480
+ const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
35332
35481
  const props = __props;
35333
35482
  const emit2 = __emit;
35334
35483
  const desktopFiltersVisible = computed(() => {
@@ -35357,30 +35506,42 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
35357
35506
  };
35358
35507
  __expose({ fetch: fetch2 });
35359
35508
  return (_ctx, _cache) => {
35360
- var _a25;
35361
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
35362
- showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$14, {
35363
- key: 0,
35364
- options: _ctx.options.currentFilters,
35365
- expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
35366
- }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
35367
- _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$12, {
35368
- key: 1,
35369
- options: _ctx.options.categories,
35370
- ref_key: "categoryFilters",
35371
- ref: categoryFilters
35372
- }, null, 8, ["options"])) : createCommentVNode("", true),
35373
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
35374
- key: 2,
35375
- options: _ctx.options.facets,
35376
- "facet-style": _ctx.style,
35377
- onFilter: filter
35378
- }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35509
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
35510
+ createVNode(_sfc_main$18, {
35511
+ class: "lupa-skeleton-filters",
35512
+ count: 1,
35513
+ enabled: unref(facetSkeletonEnabled),
35514
+ loading: unref(loadingFacets)
35515
+ }, {
35516
+ default: withCtx(() => {
35517
+ var _a25;
35518
+ return [
35519
+ showCurrentFilters.value ? (openBlock(), createBlock(_sfc_main$15, {
35520
+ key: 0,
35521
+ options: _ctx.options.currentFilters,
35522
+ expandable: (_a25 = _ctx.expandable) != null ? _a25 : false
35523
+ }, null, 8, ["options", "expandable"])) : createCommentVNode("", true),
35524
+ _ctx.options.categories ? (openBlock(), createBlock(_sfc_main$13, {
35525
+ key: 1,
35526
+ options: _ctx.options.categories,
35527
+ ref_key: "categoryFilters",
35528
+ ref: categoryFilters
35529
+ }, null, 8, ["options"])) : createCommentVNode("", true),
35530
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
35531
+ key: 2,
35532
+ options: _ctx.options.facets,
35533
+ "facet-style": _ctx.style,
35534
+ onFilter: filter
35535
+ }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35536
+ ];
35537
+ }),
35538
+ _: 1
35539
+ }, 8, ["enabled", "loading"])
35379
35540
  ])) : createCommentVNode("", true);
35380
35541
  };
35381
35542
  }
35382
35543
  });
35383
- const _hoisted_1$K = { class: "lupa-mobile-sidebar-content" };
35544
+ const _hoisted_1$L = { class: "lupa-mobile-sidebar-content" };
35384
35545
  const _hoisted_2$y = { class: "lupa-sidebar-top" };
35385
35546
  const _hoisted_3$q = { class: "lupa-sidebar-title" };
35386
35547
  const _hoisted_4$i = {
@@ -35388,7 +35549,7 @@ const _hoisted_4$i = {
35388
35549
  class: "lupa-sidebar-filter-count"
35389
35550
  };
35390
35551
  const _hoisted_5$c = { class: "lupa-sidebar-filter-options" };
35391
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
35552
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
35392
35553
  __name: "MobileFilterSidebar",
35393
35554
  props: {
35394
35555
  options: {}
@@ -35427,7 +35588,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
35427
35588
  class: "lupa-sidebar-close",
35428
35589
  onClick: withModifiers(handleMobileToggle, ["stop"])
35429
35590
  }),
35430
- createBaseVNode("div", _hoisted_1$K, [
35591
+ createBaseVNode("div", _hoisted_1$L, [
35431
35592
  createBaseVNode("div", _hoisted_2$y, [
35432
35593
  createBaseVNode("div", _hoisted_3$q, [
35433
35594
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
@@ -35439,7 +35600,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
35439
35600
  })
35440
35601
  ]),
35441
35602
  createBaseVNode("div", _hoisted_5$c, [
35442
- createVNode(_sfc_main$S, {
35603
+ createVNode(_sfc_main$T, {
35443
35604
  options: _ctx.options,
35444
35605
  expandable: isActiveFiltersExpanded.value,
35445
35606
  style: "sidebar",
@@ -35451,14 +35612,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
35451
35612
  };
35452
35613
  }
35453
35614
  });
35454
- const _hoisted_1$J = { id: "lupa-search-results-breadcrumbs" };
35615
+ const _hoisted_1$K = {
35616
+ key: 0,
35617
+ id: "lupa-search-results-breadcrumbs"
35618
+ };
35455
35619
  const _hoisted_2$x = ["href", "onClick"];
35456
35620
  const _hoisted_3$p = {
35457
35621
  key: 1,
35458
35622
  class: "lupa-search-results-breadcrumb-text"
35459
35623
  };
35460
35624
  const _hoisted_4$h = { key: 2 };
35461
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
35625
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
35462
35626
  __name: "SearchResultsBreadcrumbs",
35463
35627
  props: {
35464
35628
  breadcrumbs: {}
@@ -35476,6 +35640,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
35476
35640
  const hasEventRouting = computed(() => {
35477
35641
  return searchResultOptions.value.routingBehavior === "event";
35478
35642
  });
35643
+ const hasBreadcrumbs = computed(() => {
35644
+ var _a25;
35645
+ return ((_a25 = breadcrumbsValue.value) == null ? void 0 : _a25.length) > 0;
35646
+ });
35479
35647
  const getLabel = (label) => {
35480
35648
  return addParamsToLabel(label, `'${currentQueryText.value}'`);
35481
35649
  };
@@ -35483,7 +35651,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
35483
35651
  handleRoutingEvent(link, event, hasEventRouting.value);
35484
35652
  };
35485
35653
  return (_ctx, _cache) => {
35486
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
35654
+ return hasBreadcrumbs.value ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
35487
35655
  (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbsValue.value, (breadcrumb, index) => {
35488
35656
  var _a25;
35489
35657
  return openBlock(), createElementBlock("span", {
@@ -35502,16 +35670,16 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
35502
35670
  index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$h, toDisplayString((_a25 = breadcrumb.separator) != null ? _a25 : "/"), 1)) : createCommentVNode("", true)
35503
35671
  ]);
35504
35672
  }), 128))
35505
- ]);
35673
+ ])) : createCommentVNode("", true);
35506
35674
  };
35507
35675
  }
35508
35676
  });
35509
- const _hoisted_1$I = {
35677
+ const _hoisted_1$J = {
35510
35678
  key: 0,
35511
35679
  id: "lupa-search-result-filters",
35512
35680
  class: "lupa-search-result-filters lupa-search-result-top-filters"
35513
35681
  };
35514
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
35682
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
35515
35683
  __name: "FiltersTopDropdown",
35516
35684
  props: {
35517
35685
  options: {}
@@ -35519,6 +35687,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
35519
35687
  emits: ["filter"],
35520
35688
  setup(__props, { emit: __emit }) {
35521
35689
  const props = __props;
35690
+ const { facetSkeletonEnabled, loadingFacets } = useLoadingSkeleton();
35522
35691
  const emit2 = __emit;
35523
35692
  const filter = () => {
35524
35693
  emit2("filter");
@@ -35528,21 +35697,33 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
35528
35697
  return (_a25 = props.options.visible) != null ? _a25 : true;
35529
35698
  });
35530
35699
  return (_ctx, _cache) => {
35531
- var _a25;
35532
- return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
35533
- _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$T, {
35534
- key: 0,
35535
- options: _ctx.options.facets,
35536
- "facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
35537
- clearable: true,
35538
- onFilter: filter
35539
- }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35700
+ return visible.value ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
35701
+ createVNode(_sfc_main$18, {
35702
+ class: "lupa-skeleton-top-dropdown-filters",
35703
+ count: 1,
35704
+ enabled: unref(facetSkeletonEnabled),
35705
+ loading: unref(loadingFacets)
35706
+ }, {
35707
+ default: withCtx(() => {
35708
+ var _a25;
35709
+ return [
35710
+ _ctx.options.facets ? (openBlock(), createBlock(_sfc_main$U, {
35711
+ key: 0,
35712
+ options: _ctx.options.facets,
35713
+ "facet-style": (_a25 = _ctx.options.facets.style) == null ? void 0 : _a25.type,
35714
+ clearable: true,
35715
+ onFilter: filter
35716
+ }, null, 8, ["options", "facet-style"])) : createCommentVNode("", true)
35717
+ ];
35718
+ }),
35719
+ _: 1
35720
+ }, 8, ["enabled", "loading"])
35540
35721
  ])) : createCommentVNode("", true);
35541
35722
  };
35542
35723
  }
35543
35724
  });
35544
- const _hoisted_1$H = { id: "lupa-search-results-layout-selection" };
35545
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
35725
+ const _hoisted_1$I = { id: "lupa-search-results-layout-selection" };
35726
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
35546
35727
  __name: "SearchResultsLayoutSelection",
35547
35728
  setup(__props) {
35548
35729
  const searchResultStore = useSearchResultStore();
@@ -35553,7 +35734,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
35553
35734
  searchResultStore.setLayout(layout2);
35554
35735
  };
35555
35736
  return (_ctx, _cache) => {
35556
- return openBlock(), createElementBlock("div", _hoisted_1$H, [
35737
+ return openBlock(), createElementBlock("div", _hoisted_1$I, [
35557
35738
  createBaseVNode("div", {
35558
35739
  class: normalizeClass([
35559
35740
  "lupa-layout-selection-grid",
@@ -35575,11 +35756,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
35575
35756
  };
35576
35757
  }
35577
35758
  });
35578
- const _hoisted_1$G = {
35759
+ const _hoisted_1$H = {
35579
35760
  key: 0,
35580
35761
  class: "lupa-mobile-toggle-filter-count"
35581
35762
  };
35582
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
35763
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
35583
35764
  __name: "SearchResultsMobileToggle",
35584
35765
  setup(__props) {
35585
35766
  const {
@@ -35601,12 +35782,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
35601
35782
  (...args) => unref(handleFilterSidebarToggle) && unref(handleFilterSidebarToggle)(...args))
35602
35783
  }, [
35603
35784
  createTextVNode(toDisplayString(unref(label)) + " ", 1),
35604
- unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$G, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35785
+ unref(showMobileFilterCount) && unref(currentFilterCount) > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
35605
35786
  ], 2);
35606
35787
  };
35607
35788
  }
35608
35789
  });
35609
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
35790
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
35610
35791
  __name: "SearchResultsMobileFilterClose",
35611
35792
  props: {
35612
35793
  label: {}
@@ -35626,7 +35807,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
35626
35807
  };
35627
35808
  }
35628
35809
  });
35629
- const _hoisted_1$F = {
35810
+ const _hoisted_1$G = {
35630
35811
  key: 0,
35631
35812
  id: "lupa-search-results-page-select",
35632
35813
  "data-cy": "lupa-search-results-page-select"
@@ -35639,7 +35820,7 @@ const _hoisted_3$o = {
35639
35820
  key: 0,
35640
35821
  class: "lupa-page-number-separator"
35641
35822
  };
35642
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
35823
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
35643
35824
  __name: "SearchResultsPageSelect",
35644
35825
  props: {
35645
35826
  lastPageLabel: {},
@@ -35734,7 +35915,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
35734
35915
  };
35735
35916
  return (_ctx, _cache) => {
35736
35917
  var _a25;
35737
- return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
35918
+ return showPagination.value ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
35738
35919
  showBack.value ? (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
35739
35920
  key: 0,
35740
35921
  class: normalizeClass(firstPageLabel.value === "<" ? "lupa-page-arrow" : "lupa-show-less"),
@@ -35809,7 +35990,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
35809
35990
  };
35810
35991
  }
35811
35992
  });
35812
- const _hoisted_1$E = {
35993
+ const _hoisted_1$F = {
35813
35994
  id: "lupa-search-results-page-size",
35814
35995
  "data-cy": "lupa-search-results-page-size"
35815
35996
  };
@@ -35820,7 +36001,7 @@ const _hoisted_3$n = {
35820
36001
  };
35821
36002
  const _hoisted_4$g = ["value", "aria-label"];
35822
36003
  const _hoisted_5$b = ["value"];
35823
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
36004
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
35824
36005
  __name: "SearchResultsPageSize",
35825
36006
  props: {
35826
36007
  labels: {},
@@ -35851,7 +36032,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
35851
36032
  };
35852
36033
  return (_ctx, _cache) => {
35853
36034
  var _a25, _b25, _c;
35854
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
36035
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
35855
36036
  createBaseVNode("div", _hoisted_2$v, [
35856
36037
  createBaseVNode("label", _hoisted_3$n, toDisplayString(label.value), 1),
35857
36038
  createBaseVNode("select", {
@@ -35943,7 +36124,7 @@ const useSorting = () => {
35943
36124
  setSortValue
35944
36125
  };
35945
36126
  };
35946
- const _hoisted_1$D = {
36127
+ const _hoisted_1$E = {
35947
36128
  key: 0,
35948
36129
  id: "lupa-search-results-sort",
35949
36130
  class: "lupa-search-results-sort"
@@ -35955,7 +36136,7 @@ const _hoisted_3$m = {
35955
36136
  };
35956
36137
  const _hoisted_4$f = ["aria-label"];
35957
36138
  const _hoisted_5$a = ["value"];
35958
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
36139
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
35959
36140
  __name: "SearchResultsSort",
35960
36141
  setup(__props) {
35961
36142
  const {
@@ -35976,7 +36157,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
35976
36157
  });
35977
36158
  return (_ctx, _cache) => {
35978
36159
  var _a25, _b25;
35979
- return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
36160
+ return showDefaultSort.value ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
35980
36161
  createBaseVNode("div", _hoisted_2$u, [
35981
36162
  createBaseVNode("label", _hoisted_3$m, toDisplayString(unref(sotyByTitleLabel)), 1),
35982
36163
  withDirectives(createBaseVNode("select", {
@@ -36003,7 +36184,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
36003
36184
  };
36004
36185
  }
36005
36186
  });
36006
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
36187
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
36007
36188
  __name: "SearchResultsSortDrawerToggle",
36008
36189
  setup(__props) {
36009
36190
  const { isSidebarVisible, sortLabel, sortToggleVisible, handleSortSidebarToggle } = useSidebarToggle();
@@ -36019,7 +36200,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
36019
36200
  };
36020
36201
  }
36021
36202
  });
36022
- const _hoisted_1$C = { class: "lupa-toolbar-left" };
36203
+ const _hoisted_1$D = { class: "lupa-toolbar-left" };
36023
36204
  const _hoisted_2$t = {
36024
36205
  key: 0,
36025
36206
  class: "lupa-toolbar-right-title"
@@ -36034,7 +36215,7 @@ const _hoisted_7$2 = {
36034
36215
  };
36035
36216
  const _hoisted_8 = { key: 2 };
36036
36217
  const _hoisted_9 = { key: 4 };
36037
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
36218
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
36038
36219
  __name: "SearchResultsToolbar",
36039
36220
  props: {
36040
36221
  options: {},
@@ -36147,16 +36328,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
36147
36328
  id: "lupa-search-results-toolbar",
36148
36329
  class: normalizeClass({ "lupa-filter-no-results": !hasResults.value })
36149
36330
  }, [
36150
- createBaseVNode("div", _hoisted_1$C, [
36331
+ createBaseVNode("div", _hoisted_1$D, [
36151
36332
  toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$t, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
36152
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$O, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
36153
- showItemSummary.value ? (openBlock(), createBlock(_sfc_main$17, {
36333
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$P, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$l)),
36334
+ showItemSummary.value ? (openBlock(), createBlock(_sfc_main$1b, {
36154
36335
  key: 3,
36155
36336
  label: searchSummaryLabel.value,
36156
36337
  clearable: unref(hasAnyFilter) && showFilterClear.value,
36157
36338
  onClear: handleClearAll
36158
36339
  }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$e)),
36159
- displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$L, {
36340
+ displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$M, {
36160
36341
  key: 5,
36161
36342
  options: paginationOptions.value.pageSelect,
36162
36343
  "last-page-label": paginationOptions.value.labels.showMore,
@@ -36165,19 +36346,19 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
36165
36346
  ]),
36166
36347
  createBaseVNode("div", _hoisted_6$4, [
36167
36348
  toolbarRightLabel.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(toolbarRightLabel.value), 1)) : createCommentVNode("", true),
36168
- createVNode(_sfc_main$N),
36169
- createVNode(_sfc_main$I),
36170
- paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$K, {
36349
+ createVNode(_sfc_main$O),
36350
+ createVNode(_sfc_main$J),
36351
+ paginationDisplay.value.pageSize ? (openBlock(), createBlock(_sfc_main$L, {
36171
36352
  key: 1,
36172
36353
  options: paginationOptions.value.pageSize,
36173
36354
  labels: paginationOptions.value.labels
36174
36355
  }, null, 8, ["options", "labels"])) : (openBlock(), createElementBlock("div", _hoisted_8)),
36175
- sortOptions.value ? (openBlock(), createBlock(_sfc_main$J, {
36356
+ sortOptions.value ? (openBlock(), createBlock(_sfc_main$K, {
36176
36357
  key: 3,
36177
36358
  options: sortOptions.value,
36178
36359
  callbacks: callbacks.value
36179
36360
  }, null, 8, ["options", "callbacks"])) : (openBlock(), createElementBlock("div", _hoisted_9)),
36180
- showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$M, {
36361
+ showFiltersCloseButton.value && unref(isFilterSidebarVisible) ? (openBlock(), createBlock(_sfc_main$N, {
36181
36362
  key: 5,
36182
36363
  label: optionsValue.value.labels.mobileFilterCloseButton
36183
36364
  }, null, 8, ["label"])) : createCommentVNode("", true)
@@ -36186,7 +36367,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
36186
36367
  };
36187
36368
  }
36188
36369
  });
36189
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
36370
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
36190
36371
  __name: "SearchResultsProductImage",
36191
36372
  props: {
36192
36373
  item: {},
@@ -36194,7 +36375,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
36194
36375
  },
36195
36376
  setup(__props) {
36196
36377
  return (_ctx, _cache) => {
36197
- return openBlock(), createBlock(_sfc_main$1w, {
36378
+ return openBlock(), createBlock(_sfc_main$1A, {
36198
36379
  item: _ctx.item,
36199
36380
  options: _ctx.options,
36200
36381
  "wrapper-class": "lupa-search-results-image-wrapper",
@@ -36203,7 +36384,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
36203
36384
  };
36204
36385
  }
36205
36386
  });
36206
- const _hoisted_1$B = ["title", "innerHTML"];
36387
+ const _hoisted_1$C = ["title", "innerHTML"];
36207
36388
  const _hoisted_2$s = ["title"];
36208
36389
  const _hoisted_3$k = ["href", "innerHTML"];
36209
36390
  const _hoisted_4$d = ["title"];
@@ -36212,7 +36393,7 @@ const _hoisted_5$8 = {
36212
36393
  class: "lupa-search-results-product-title-text"
36213
36394
  };
36214
36395
  const _hoisted_6$3 = ["href"];
36215
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
36396
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
36216
36397
  __name: "SearchResultsProductTitle",
36217
36398
  props: {
36218
36399
  item: {},
@@ -36249,7 +36430,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
36249
36430
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
36250
36431
  title: sanitizedTitle.value,
36251
36432
  innerHTML: sanitizedTitle.value
36252
- }, null, 12, _hoisted_1$B)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
36433
+ }, null, 12, _hoisted_1$C)) : isHtml.value && _ctx.options.link ? (openBlock(), createElementBlock("div", {
36253
36434
  key: 1,
36254
36435
  class: "lupa-search-results-product-title",
36255
36436
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
@@ -36278,8 +36459,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
36278
36459
  };
36279
36460
  }
36280
36461
  });
36281
- const _hoisted_1$A = ["innerHTML"];
36282
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
36462
+ const _hoisted_1$B = ["innerHTML"];
36463
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
36283
36464
  __name: "SearchResultsProductDescription",
36284
36465
  props: {
36285
36466
  item: {},
@@ -36306,7 +36487,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
36306
36487
  class: "lupa-search-results-product-description",
36307
36488
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
36308
36489
  innerHTML: sanitizedDescription.value
36309
- }, null, 12, _hoisted_1$A)) : (openBlock(), createElementBlock("div", {
36490
+ }, null, 12, _hoisted_1$B)) : (openBlock(), createElementBlock("div", {
36310
36491
  key: 1,
36311
36492
  class: "lupa-search-results-product-description",
36312
36493
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`)
@@ -36314,7 +36495,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
36314
36495
  };
36315
36496
  }
36316
36497
  });
36317
- const _hoisted_1$z = { id: "lupa-search-results-rating" };
36498
+ const _hoisted_1$A = { id: "lupa-search-results-rating" };
36318
36499
  const _hoisted_2$r = { class: "lupa-ratings" };
36319
36500
  const _hoisted_3$j = { class: "lupa-ratings-base" };
36320
36501
  const _hoisted_4$c = ["innerHTML"];
@@ -36322,7 +36503,7 @@ const _hoisted_5$7 = { class: "lupa-rating-wrapper" };
36322
36503
  const _hoisted_6$2 = ["innerHTML"];
36323
36504
  const _hoisted_7$1 = ["href"];
36324
36505
  const STAR_COUNT = 5;
36325
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
36506
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
36326
36507
  __name: "SearchResultsProductRating",
36327
36508
  props: {
36328
36509
  item: {},
@@ -36359,7 +36540,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
36359
36540
  return generateLink(props.options.links.ratingDetails, props.item);
36360
36541
  });
36361
36542
  return (_ctx, _cache) => {
36362
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
36543
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
36363
36544
  createBaseVNode("div", _hoisted_2$r, [
36364
36545
  createBaseVNode("div", _hoisted_3$j, [
36365
36546
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
@@ -36393,11 +36574,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
36393
36574
  };
36394
36575
  }
36395
36576
  });
36396
- const _hoisted_1$y = {
36577
+ const _hoisted_1$z = {
36397
36578
  class: "lupa-search-results-product-regular-price",
36398
36579
  "data-cy": "lupa-search-results-product-regular-price"
36399
36580
  };
36400
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
36581
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
36401
36582
  __name: "SearchResultsProductRegularPrice",
36402
36583
  props: {
36403
36584
  item: {},
@@ -36419,11 +36600,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
36419
36600
  );
36420
36601
  });
36421
36602
  return (_ctx, _cache) => {
36422
- return openBlock(), createElementBlock("div", _hoisted_1$y, toDisplayString(price.value), 1);
36603
+ return openBlock(), createElementBlock("div", _hoisted_1$z, toDisplayString(price.value), 1);
36423
36604
  };
36424
36605
  }
36425
36606
  });
36426
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
36607
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
36427
36608
  __name: "SearchResultsProductPrice",
36428
36609
  props: {
36429
36610
  item: {},
@@ -36457,12 +36638,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
36457
36638
  };
36458
36639
  }
36459
36640
  });
36460
- const _hoisted_1$x = { class: "lupa-search-results-add-to-cart-wrapper" };
36641
+ const _hoisted_1$y = { class: "lupa-search-results-add-to-cart-wrapper" };
36461
36642
  const _hoisted_2$q = { class: "lupa-search-results-product-addtocart" };
36462
36643
  const _hoisted_3$i = ["disabled"];
36463
36644
  const _hoisted_4$b = ["href"];
36464
36645
  const _hoisted_5$6 = ["id", "disabled"];
36465
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
36646
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
36466
36647
  __name: "SearchResultsProductAddToCart",
36467
36648
  props: {
36468
36649
  item: {},
@@ -36521,7 +36702,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
36521
36702
  loading.value = false;
36522
36703
  });
36523
36704
  return (_ctx, _cache) => {
36524
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
36705
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
36525
36706
  createBaseVNode("div", _hoisted_2$q, [
36526
36707
  hasLink.value ? (openBlock(), createElementBlock("button", mergeProps({
36527
36708
  key: 0,
@@ -36544,12 +36725,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
36544
36725
  };
36545
36726
  }
36546
36727
  });
36547
- const _hoisted_1$w = ["innerHTML"];
36728
+ const _hoisted_1$x = ["innerHTML"];
36548
36729
  const _hoisted_2$p = { key: 0 };
36549
36730
  const _hoisted_3$h = { key: 1 };
36550
36731
  const _hoisted_4$a = { class: "lupa-search-box-custom-label" };
36551
36732
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
36552
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
36733
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
36553
36734
  __name: "SearchResultsProductCustom",
36554
36735
  props: {
36555
36736
  item: {},
@@ -36591,7 +36772,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
36591
36772
  key: 0,
36592
36773
  class: className.value,
36593
36774
  innerHTML: text.value
36594
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w)) : (openBlock(), createElementBlock("div", mergeProps({
36775
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$x)) : (openBlock(), createElementBlock("div", mergeProps({
36595
36776
  key: 1,
36596
36777
  class: className.value
36597
36778
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), [
@@ -36603,8 +36784,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
36603
36784
  };
36604
36785
  }
36605
36786
  });
36606
- const _hoisted_1$v = ["innerHTML"];
36607
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
36787
+ const _hoisted_1$w = ["innerHTML"];
36788
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
36608
36789
  __name: "SearchResultsProductCustomHtmlElement",
36609
36790
  props: {
36610
36791
  item: {},
@@ -36640,15 +36821,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
36640
36821
  return openBlock(), createElementBlock("div", mergeProps({
36641
36822
  class: className.value,
36642
36823
  innerHTML: text.value
36643
- }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$v);
36824
+ }, toHandlers(_ctx.options.action ? { click: handleClick } : {})), null, 16, _hoisted_1$w);
36644
36825
  };
36645
36826
  }
36646
36827
  });
36647
- const _hoisted_1$u = { id: "lupa-search-results-rating" };
36828
+ const _hoisted_1$v = { id: "lupa-search-results-rating" };
36648
36829
  const _hoisted_2$o = ["innerHTML"];
36649
36830
  const _hoisted_3$g = { class: "lupa-ratings" };
36650
36831
  const _hoisted_4$9 = ["href"];
36651
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
36832
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
36652
36833
  __name: "SearchResultsProductSingleStarRating",
36653
36834
  props: {
36654
36835
  item: {},
@@ -36676,7 +36857,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
36676
36857
  return RATING_STAR_HTML;
36677
36858
  });
36678
36859
  return (_ctx, _cache) => {
36679
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
36860
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
36680
36861
  createBaseVNode("div", {
36681
36862
  innerHTML: star.value,
36682
36863
  class: "lupa-rating lupa-rating-highlighted"
@@ -36692,19 +36873,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
36692
36873
  });
36693
36874
  const __default__ = {
36694
36875
  components: {
36695
- SearchResultsProductImage: _sfc_main$G,
36696
- SearchResultsProductTitle: _sfc_main$F,
36697
- SearchResultsProductDescription: _sfc_main$E,
36698
- SearchResultsProductRating: _sfc_main$D,
36699
- SearchResultsProductRegularPrice: _sfc_main$C,
36700
- SearchResultsProductPrice: _sfc_main$B,
36701
- SearchResultsProductAddToCart: _sfc_main$A,
36702
- SearchResultsProductCustom: _sfc_main$z,
36703
- SearchResultsProductCustomHtmlElement: _sfc_main$y,
36704
- SearchResultsProductSingleStarRating: _sfc_main$x
36705
- }
36706
- };
36707
- const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
36876
+ SearchResultsProductImage: _sfc_main$H,
36877
+ SearchResultsProductTitle: _sfc_main$G,
36878
+ SearchResultsProductDescription: _sfc_main$F,
36879
+ SearchResultsProductRating: _sfc_main$E,
36880
+ SearchResultsProductRegularPrice: _sfc_main$D,
36881
+ SearchResultsProductPrice: _sfc_main$C,
36882
+ SearchResultsProductAddToCart: _sfc_main$B,
36883
+ SearchResultsProductCustom: _sfc_main$A,
36884
+ SearchResultsProductCustomHtmlElement: _sfc_main$z,
36885
+ SearchResultsProductSingleStarRating: _sfc_main$y
36886
+ }
36887
+ };
36888
+ const _sfc_main$x = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValues2({}, __default__), {
36708
36889
  __name: "SearchResultsProductCardElement",
36709
36890
  props: {
36710
36891
  item: {},
@@ -36782,13 +36963,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
36782
36963
  };
36783
36964
  }
36784
36965
  }));
36785
- const _hoisted_1$t = ["href"];
36966
+ const _hoisted_1$u = ["href"];
36786
36967
  const _hoisted_2$n = {
36787
36968
  key: 0,
36788
36969
  class: "lupa-out-of-stock"
36789
36970
  };
36790
36971
  const _hoisted_3$f = { class: "lupa-search-result-product-details-section" };
36791
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
36972
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
36792
36973
  __name: "SearchResultsProductCard",
36793
36974
  props: {
36794
36975
  product: {},
@@ -36965,7 +37146,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
36965
37146
  default: withCtx(() => {
36966
37147
  var _a25;
36967
37148
  return [
36968
- createVNode(_sfc_main$1g, { options: badgesOptions.value }, null, 8, ["options"]),
37149
+ createVNode(_sfc_main$1k, { options: badgesOptions.value }, null, 8, ["options"]),
36969
37150
  createBaseVNode("div", {
36970
37151
  class: normalizeClass(["lupa-search-result-product-contents", listLayoutClass.value])
36971
37152
  }, [
@@ -36975,7 +37156,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
36975
37156
  onClick: handleNavigation
36976
37157
  }, [
36977
37158
  (openBlock(true), createElementBlock(Fragment, null, renderList(imageElements.value, (element) => {
36978
- return openBlock(), createBlock(_sfc_main$w, {
37159
+ return openBlock(), createBlock(_sfc_main$x, {
36979
37160
  class: "lupa-search-results-product-element",
36980
37161
  item: _ctx.product,
36981
37162
  element,
@@ -36986,16 +37167,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
36986
37167
  onProductEvent: handleProductEvent
36987
37168
  }, null, 8, ["item", "element", "labels", "inStock", "link"]);
36988
37169
  }), 128)),
36989
- createVNode(_sfc_main$1g, {
37170
+ createVNode(_sfc_main$1k, {
36990
37171
  options: badgesOptions.value,
36991
37172
  position: "image",
36992
37173
  class: "lupa-image-badges"
36993
37174
  }, null, 8, ["options"]),
36994
37175
  ((_a25 = labels.value) == null ? void 0 : _a25.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$n, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
36995
- ], 8, _hoisted_1$t),
37176
+ ], 8, _hoisted_1$u),
36996
37177
  createBaseVNode("div", _hoisted_3$f, [
36997
37178
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
36998
- return openBlock(), createBlock(_sfc_main$w, {
37179
+ return openBlock(), createBlock(_sfc_main$x, {
36999
37180
  class: "lupa-search-results-product-element",
37000
37181
  item: _ctx.product,
37001
37182
  element,
@@ -37013,7 +37194,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37013
37194
  class: normalizeClass("lupa-element-group-" + group)
37014
37195
  }, [
37015
37196
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupElements(group), (element) => {
37016
- return openBlock(), createBlock(_sfc_main$w, {
37197
+ return openBlock(), createBlock(_sfc_main$x, {
37017
37198
  class: "lupa-search-results-product-element",
37018
37199
  item: _ctx.product,
37019
37200
  element,
@@ -37034,7 +37215,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37034
37215
  };
37035
37216
  }
37036
37217
  });
37037
- const _hoisted_1$s = {
37218
+ const _hoisted_1$t = {
37038
37219
  id: "lupa-search-results-similar-queries",
37039
37220
  "data-cy": "lupa-search-results-similar-queries"
37040
37221
  };
@@ -37050,7 +37231,7 @@ const _hoisted_7 = {
37050
37231
  class: "lupa-products",
37051
37232
  "data-cy": "lupa-products"
37052
37233
  };
37053
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
37234
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
37054
37235
  __name: "SearchResultsSimilarQueries",
37055
37236
  props: {
37056
37237
  labels: {},
@@ -37088,7 +37269,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37088
37269
  };
37089
37270
  };
37090
37271
  return (_ctx, _cache) => {
37091
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
37272
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
37092
37273
  createBaseVNode("div", _hoisted_2$m, toDisplayString(_ctx.labels.similarQueries), 1),
37093
37274
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
37094
37275
  return openBlock(), createElementBlock("div", { key: index }, [
@@ -37108,7 +37289,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37108
37289
  ]),
37109
37290
  createBaseVNode("div", _hoisted_7, [
37110
37291
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
37111
- return openBlock(), createBlock(_sfc_main$v, {
37292
+ return openBlock(), createBlock(_sfc_main$w, {
37112
37293
  style: normalizeStyle(_ctx.columnSize),
37113
37294
  key: getDocumentKey(index2, product),
37114
37295
  product,
@@ -37123,7 +37304,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37123
37304
  };
37124
37305
  }
37125
37306
  });
37126
- const _hoisted_1$r = {
37307
+ const _hoisted_1$s = {
37127
37308
  key: 0,
37128
37309
  class: "lupa-results-additional-panel"
37129
37310
  };
@@ -37131,7 +37312,7 @@ const _hoisted_2$l = {
37131
37312
  class: "lupa-results-additional-panel-items",
37132
37313
  "data-cy": "lupa-results-additional-panel-items"
37133
37314
  };
37134
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
37315
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
37135
37316
  __name: "AdditionalPanel",
37136
37317
  props: {
37137
37318
  panel: {},
@@ -37204,10 +37385,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37204
37385
  handleQueryChange();
37205
37386
  });
37206
37387
  return (_ctx, _cache) => {
37207
- return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
37388
+ return hasResults.value ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
37208
37389
  createBaseVNode("div", _hoisted_2$l, [
37209
37390
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleItems.value, (item, index) => {
37210
- return openBlock(), createBlock(_sfc_main$v, {
37391
+ return openBlock(), createBlock(_sfc_main$w, {
37211
37392
  key: index,
37212
37393
  product: item,
37213
37394
  options: _ctx.panel,
@@ -37225,11 +37406,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37225
37406
  };
37226
37407
  }
37227
37408
  });
37228
- const _hoisted_1$q = {
37409
+ const _hoisted_1$r = {
37229
37410
  key: 0,
37230
37411
  class: "lupa-results-additional-panels"
37231
37412
  };
37232
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
37413
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
37233
37414
  __name: "AdditionalPanels",
37234
37415
  props: {
37235
37416
  options: {},
@@ -37246,9 +37427,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
37246
37427
  return locationPanels.value.length > 0;
37247
37428
  });
37248
37429
  return (_ctx, _cache) => {
37249
- return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$q, [
37430
+ return isVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
37250
37431
  (openBlock(true), createElementBlock(Fragment, null, renderList(locationPanels.value, (panel) => {
37251
- return openBlock(), createBlock(_sfc_main$t, {
37432
+ return openBlock(), createBlock(_sfc_main$u, {
37252
37433
  key: panel.queryKey,
37253
37434
  panel,
37254
37435
  options: _ctx.sdkOptions
@@ -37265,11 +37446,11 @@ const _export_sfc = (sfc, props) => {
37265
37446
  }
37266
37447
  return target2;
37267
37448
  };
37268
- const _sfc_main$r = {};
37269
- const _hoisted_1$p = { class: "lupa-spinner-wrapper" };
37449
+ const _sfc_main$s = {};
37450
+ const _hoisted_1$q = { class: "lupa-spinner-wrapper" };
37270
37451
  const _hoisted_2$k = { class: "lupa-spinner" };
37271
37452
  function _sfc_render(_ctx, _cache) {
37272
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
37453
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
37273
37454
  createBaseVNode("div", _hoisted_2$k, [
37274
37455
  (openBlock(), createElementBlock(Fragment, null, renderList(12, (x) => {
37275
37456
  return createBaseVNode("div", { key: x });
@@ -37277,8 +37458,8 @@ function _sfc_render(_ctx, _cache) {
37277
37458
  ])
37278
37459
  ]);
37279
37460
  }
37280
- const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render]]);
37281
- const _hoisted_1$o = {
37461
+ const Spinner = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
37462
+ const _hoisted_1$p = {
37282
37463
  id: "lupa-search-results-similar-results",
37283
37464
  "data-cy": "lupa-search-results-similar-results"
37284
37465
  };
@@ -37287,7 +37468,7 @@ const _hoisted_3$d = {
37287
37468
  class: "lupa-products",
37288
37469
  "data-cy": "lupa-products"
37289
37470
  };
37290
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
37471
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
37291
37472
  __name: "SearchResultsSimilarResults",
37292
37473
  props: {
37293
37474
  columnSize: {},
@@ -37308,11 +37489,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
37308
37489
  };
37309
37490
  });
37310
37491
  return (_ctx, _cache) => {
37311
- return openBlock(), createElementBlock("div", _hoisted_1$o, [
37492
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
37312
37493
  createBaseVNode("div", _hoisted_2$j, toDisplayString(_ctx.labels.similarResultsLabel), 1),
37313
37494
  createBaseVNode("div", _hoisted_3$d, [
37314
37495
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
37315
- return openBlock(), createBlock(_sfc_main$v, {
37496
+ return openBlock(), createBlock(_sfc_main$w, {
37316
37497
  style: normalizeStyle(_ctx.columnSize),
37317
37498
  key: getDocumentKey(index, product),
37318
37499
  product,
@@ -37433,7 +37614,7 @@ const extractRelatedSource = (source, searchResults2, options, activeFilters) =>
37433
37614
  return extractFacetsRelatedSource(source, searchResults2, options, activeFilters);
37434
37615
  }
37435
37616
  });
37436
- const _hoisted_1$n = { class: "lupa-related-query-item" };
37617
+ const _hoisted_1$o = { class: "lupa-related-query-item" };
37437
37618
  const _hoisted_2$i = { class: "lupa-related-query-image" };
37438
37619
  const _hoisted_3$c = { class: "lupa-related-query-label" };
37439
37620
  const _hoisted_4$7 = { class: "lupa-related-query-title" };
@@ -37441,7 +37622,7 @@ const _hoisted_5$3 = {
37441
37622
  key: 0,
37442
37623
  class: "lupa-related-query-count"
37443
37624
  };
37444
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
37625
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
37445
37626
  __name: "RelatedQueryPanel",
37446
37627
  props: {
37447
37628
  query: {},
@@ -37538,9 +37719,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
37538
37719
  });
37539
37720
  return (_ctx, _cache) => {
37540
37721
  var _a25;
37541
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
37722
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
37542
37723
  createBaseVNode("div", _hoisted_2$i, [
37543
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
37724
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
37544
37725
  key: 0,
37545
37726
  "wrapper-class": "lupa-related-query-image-wrapper",
37546
37727
  "image-class": "lupa-related-query-image",
@@ -37556,7 +37737,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
37556
37737
  };
37557
37738
  }
37558
37739
  });
37559
- const _hoisted_1$m = {
37740
+ const _hoisted_1$n = {
37560
37741
  key: 0,
37561
37742
  class: "lupa-related-queries"
37562
37743
  };
@@ -37565,7 +37746,7 @@ const _hoisted_2$h = {
37565
37746
  class: "lupa-related-queries-title"
37566
37747
  };
37567
37748
  const _hoisted_3$b = ["onClick"];
37568
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
37749
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
37569
37750
  __name: "RelatedQueries",
37570
37751
  props: {
37571
37752
  options: {}
@@ -37659,7 +37840,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
37659
37840
  };
37660
37841
  return (_ctx, _cache) => {
37661
37842
  var _a25, _b25, _c, _d;
37662
- return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
37843
+ return _ctx.options && hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
37663
37844
  ((_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),
37664
37845
  createBaseVNode("ul", null, [
37665
37846
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
@@ -37670,7 +37851,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
37670
37851
  createBaseVNode("a", {
37671
37852
  onClick: ($event) => handleRelatedQueryClick(query)
37672
37853
  }, [
37673
- createVNode(_sfc_main$p, {
37854
+ createVNode(_sfc_main$q, {
37674
37855
  "source-key": query.key,
37675
37856
  options: _ctx.options,
37676
37857
  query: query.value,
@@ -37714,13 +37895,13 @@ const extractRedirectionSuggestion = (searchText = "", options) => {
37714
37895
  }
37715
37896
  return null;
37716
37897
  };
37717
- const _hoisted_1$l = {
37898
+ const _hoisted_1$m = {
37718
37899
  key: 0,
37719
37900
  class: "lupa-redirection-suggestion"
37720
37901
  };
37721
37902
  const _hoisted_2$g = { class: "lupa-redirections-suggestion-label" };
37722
37903
  const _hoisted_3$a = ["href"];
37723
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
37904
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
37724
37905
  __name: "RedirectionSuggestions",
37725
37906
  props: {
37726
37907
  options: {}
@@ -37743,7 +37924,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
37743
37924
  )
37744
37925
  );
37745
37926
  return (_ctx, _cache) => {
37746
- return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
37927
+ return redirectionSuggestion.value && label.value && link.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
37747
37928
  createBaseVNode("h4", _hoisted_2$g, [
37748
37929
  createBaseVNode("a", { href: link.value }, toDisplayString(label.value), 9, _hoisted_3$a)
37749
37930
  ])
@@ -37751,11 +37932,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
37751
37932
  };
37752
37933
  }
37753
37934
  });
37754
- const _hoisted_1$k = {
37935
+ const _hoisted_1$l = {
37755
37936
  key: 0,
37756
37937
  class: "lupa-refiners-loading-notice"
37757
37938
  };
37758
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
37939
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
37759
37940
  __name: "RefinersLoadingNotice",
37760
37941
  props: {
37761
37942
  labels: {}
@@ -37766,14 +37947,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
37766
37947
  const props = __props;
37767
37948
  const label = computed(() => props.labels.refinersLoadingNotice);
37768
37949
  return (_ctx, _cache) => {
37769
- return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
37950
+ return label.value && unref(loadingRefiners) ? (openBlock(), createElementBlock("div", _hoisted_1$l, [
37770
37951
  createBaseVNode("p", null, toDisplayString(label.value), 1),
37771
37952
  createVNode(Spinner)
37772
37953
  ])) : createCommentVNode("", true);
37773
37954
  };
37774
37955
  }
37775
37956
  });
37776
- const _hoisted_1$j = { class: "lupa-related-query-item" };
37957
+ const _hoisted_1$k = { class: "lupa-related-query-item" };
37777
37958
  const _hoisted_2$f = { class: "lupa-related-query-image" };
37778
37959
  const _hoisted_3$9 = { class: "lupa-related-query-label" };
37779
37960
  const _hoisted_4$6 = { class: "lupa-related-query-title" };
@@ -37781,7 +37962,7 @@ const _hoisted_5$2 = {
37781
37962
  key: 0,
37782
37963
  class: "lupa-related-query-count"
37783
37964
  };
37784
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
37965
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
37785
37966
  __name: "RelatedQueryPanelApi",
37786
37967
  props: {
37787
37968
  relatedQuery: {},
@@ -37813,9 +37994,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
37813
37994
  });
37814
37995
  return (_ctx, _cache) => {
37815
37996
  var _a25;
37816
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
37997
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
37817
37998
  createBaseVNode("div", _hoisted_2$f, [
37818
- itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1w, {
37999
+ itemToDisplay.value && image.value ? (openBlock(), createBlock(_sfc_main$1A, {
37819
38000
  key: 0,
37820
38001
  "wrapper-class": "lupa-related-query-image-wrapper",
37821
38002
  "image-class": "lupa-related-query-image",
@@ -37831,7 +38012,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
37831
38012
  };
37832
38013
  }
37833
38014
  });
37834
- const _hoisted_1$i = {
38015
+ const _hoisted_1$j = {
37835
38016
  key: 0,
37836
38017
  class: "lupa-related-queries"
37837
38018
  };
@@ -37840,7 +38021,7 @@ const _hoisted_2$e = {
37840
38021
  class: "lupa-related-queries-title"
37841
38022
  };
37842
38023
  const _hoisted_3$8 = ["onClick"];
37843
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
38024
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
37844
38025
  __name: "RelatedQueriesApi",
37845
38026
  props: {
37846
38027
  options: {}
@@ -37892,7 +38073,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
37892
38073
  };
37893
38074
  return (_ctx, _cache) => {
37894
38075
  var _a25, _b25, _c, _d;
37895
- return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
38076
+ return hasEnoughRelatedQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
37896
38077
  ((_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),
37897
38078
  createBaseVNode("ul", null, [
37898
38079
  (openBlock(true), createElementBlock(Fragment, null, renderList(relatedQueries2.value, (query) => {
@@ -37903,7 +38084,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
37903
38084
  createBaseVNode("a", {
37904
38085
  onClick: ($event) => handleRelatedQueryClick(query)
37905
38086
  }, [
37906
- createVNode(_sfc_main$l, {
38087
+ createVNode(_sfc_main$m, {
37907
38088
  relatedQuery: query,
37908
38089
  options: _ctx.options
37909
38090
  }, null, 8, ["relatedQuery", "options"])
@@ -37915,9 +38096,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
37915
38096
  };
37916
38097
  }
37917
38098
  });
37918
- const _hoisted_1$h = { key: 0 };
38099
+ const _hoisted_1$i = { key: 0 };
37919
38100
  const _hoisted_2$d = ["innerHTML"];
37920
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
38101
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
37921
38102
  __name: "ZeroResults",
37922
38103
  props: {
37923
38104
  emptyResultsLabel: {},
@@ -37946,7 +38127,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
37946
38127
  });
37947
38128
  return (_ctx, _cache) => {
37948
38129
  return openBlock(), createElementBlock(Fragment, null, [
37949
- showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
38130
+ showDefaultZeroResultsTemplate.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
37950
38131
  createTextVNode(toDisplayString(_ctx.emptyResultsLabel) + " ", 1),
37951
38132
  createBaseVNode("span", null, toDisplayString(_ctx.currentQueryText), 1)
37952
38133
  ])) : createCommentVNode("", true),
@@ -37958,6 +38139,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
37958
38139
  };
37959
38140
  }
37960
38141
  });
38142
+ const _hoisted_1$h = {
38143
+ key: 1,
38144
+ class: "lupa-skeleton-grid"
38145
+ };
38146
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
38147
+ __name: "LoadingGrid",
38148
+ props: {
38149
+ style: {},
38150
+ enabled: { type: Boolean },
38151
+ loading: { type: Boolean },
38152
+ count: {}
38153
+ },
38154
+ setup(__props) {
38155
+ return (_ctx, _cache) => {
38156
+ return !_ctx.loading || !_ctx.enabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
38157
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
38158
+ return openBlock(), createBlock(_sfc_main$1a, {
38159
+ key: n,
38160
+ style: normalizeStyle(_ctx.style)
38161
+ }, null, 8, ["style"]);
38162
+ }), 128))
38163
+ ]));
38164
+ };
38165
+ }
38166
+ });
37961
38167
  const _hoisted_1$g = { id: "lupa-search-results-products" };
37962
38168
  const _hoisted_2$c = {
37963
38169
  class: "lupa-products",
@@ -37969,12 +38175,12 @@ const _hoisted_3$7 = {
37969
38175
  "data-cy": "lupa-no-results-in-page"
37970
38176
  };
37971
38177
  const _hoisted_4$5 = {
37972
- key: 5,
38178
+ key: 3,
37973
38179
  class: "lupa-empty-results",
37974
38180
  "data-cy": "lupa-no-results"
37975
38181
  };
37976
- const _hoisted_5$1 = { key: 6 };
37977
- const _hoisted_6 = { key: 7 };
38182
+ const _hoisted_5$1 = { key: 4 };
38183
+ const _hoisted_6 = { key: 5 };
37978
38184
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
37979
38185
  __name: "SearchResultsProducts",
37980
38186
  props: {
@@ -37998,6 +38204,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
37998
38204
  loading,
37999
38205
  relatedQueriesApiEnabled
38000
38206
  } = storeToRefs(searchResultStore);
38207
+ const { limit, skeletonEnabled, relatedQueriesSkeletonEnabled, loadingRelatedQueries } = useLoadingSkeleton();
38001
38208
  const emit2 = __emit;
38002
38209
  const productCardOptions = computed(() => {
38003
38210
  return pick(props.options, [
@@ -38024,9 +38231,6 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
38024
38231
  var _a25, _b25, _c;
38025
38232
  return ((_c = (_b25 = (_a25 = props.options.filters) == null ? void 0 : _a25.facets) == null ? void 0 : _b25.style) == null ? void 0 : _c.type) !== "sidebar";
38026
38233
  });
38027
- const showMobileFilters = computed(() => {
38028
- return props.options.searchTitlePosition !== "search-results-top";
38029
- });
38030
38234
  const currentFilterToolbarVisible = computed(() => {
38031
38235
  var _a25, _b25, _c, _d, _e, _f;
38032
38236
  return Boolean(
@@ -38057,12 +38261,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
38057
38261
  });
38058
38262
  const columnSize = computed(() => {
38059
38263
  if (props.ssr) {
38060
- return "";
38264
+ return {};
38061
38265
  }
38062
38266
  if (layout.value === ResultsLayoutEnum.LIST) {
38063
- return "width: 100%";
38267
+ return { width: "100%" };
38064
38268
  }
38065
- return `width: ${100 / columnCount.value}%`;
38269
+ return { width: `${100 / columnCount.value}%` };
38066
38270
  });
38067
38271
  const hasSimilarQueries = computed(() => {
38068
38272
  var _a25;
@@ -38098,55 +38302,64 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
38098
38302
  emit2("filter");
38099
38303
  };
38100
38304
  return (_ctx, _cache) => {
38101
- var _a25, _b25, _c;
38305
+ var _a25, _b25, _c, _d;
38102
38306
  return openBlock(), createElementBlock("div", _hoisted_1$g, [
38103
- unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
38307
+ !unref(skeletonEnabled) && unref(loading) && !unref(isFilterSidebarVisible) ? (openBlock(), createBlock(Spinner, {
38104
38308
  key: 0,
38105
38309
  class: "lupa-loader"
38106
38310
  })) : createCommentVNode("", true),
38107
- createVNode(_sfc_main$n, {
38311
+ createVNode(_sfc_main$o, {
38108
38312
  options: _ctx.options.redirectionSuggestions
38109
38313
  }, null, 8, ["options"]),
38110
- createVNode(_sfc_main$s, {
38314
+ createVNode(_sfc_main$t, {
38111
38315
  options: _ctx.options,
38112
38316
  location: "top",
38113
- sdkOptions: _ctx.options.options
38114
- }, null, 8, ["options", "sdkOptions"]),
38115
- showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$o, {
38116
- key: 1,
38117
- options: _ctx.options.relatedQueries
38118
- }, null, 8, ["options"])) : createCommentVNode("", true),
38119
- showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$k, {
38120
- key: 2,
38121
- options: _ctx.options.relatedQueries
38122
- }, null, 8, ["options"])) : createCommentVNode("", true),
38123
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
38124
- showTopFilters.value ? (openBlock(), createBlock(_sfc_main$P, {
38317
+ "sdk-options": _ctx.options.options
38318
+ }, null, 8, ["options", "sdk-options"]),
38319
+ createVNode(_sfc_main$18, {
38320
+ enabled: unref(relatedQueriesSkeletonEnabled),
38321
+ loading: unref(loading) || unref(loadingRelatedQueries),
38322
+ count: 1,
38323
+ class: "lupa-skeleton-related-queries"
38324
+ }, {
38325
+ default: withCtx(() => [
38326
+ showLocalRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$p, {
38327
+ key: 0,
38328
+ options: _ctx.options.relatedQueries
38329
+ }, null, 8, ["options"])) : createCommentVNode("", true),
38330
+ showApiRelatedQueries.value ? (openBlock(), createBlock(_sfc_main$l, {
38331
+ key: 1,
38332
+ options: _ctx.options.relatedQueries
38333
+ }, null, 8, ["options"])) : createCommentVNode("", true)
38334
+ ]),
38335
+ _: 1
38336
+ }, 8, ["enabled", "loading"]),
38337
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
38338
+ showTopFilters.value ? (openBlock(), createBlock(_sfc_main$Q, {
38125
38339
  key: 0,
38126
38340
  options: (_a25 = _ctx.options.filters) != null ? _a25 : {}
38127
38341
  }, null, 8, ["options"])) : createCommentVNode("", true),
38128
- showMobileFilters.value ? (openBlock(), createBlock(_sfc_main$H, {
38129
- key: 1,
38342
+ createVNode(_sfc_main$I, {
38130
38343
  class: "lupa-toolbar-mobile",
38131
38344
  options: _ctx.options,
38132
38345
  "pagination-location": "top",
38133
38346
  onFilter: filter
38134
- }, null, 8, ["options"])) : createCommentVNode("", true),
38135
- currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$14, {
38136
- key: 2,
38347
+ }, null, 8, ["options"]),
38348
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "pageTop" ? (openBlock(), createBlock(_sfc_main$15, {
38349
+ key: 1,
38137
38350
  class: normalizeClass(currentFiltersClass.value),
38138
38351
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
38139
38352
  options: currentFilterOptions.value,
38140
38353
  expandable: !desktopFiltersExpanded.value
38141
38354
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true)
38142
38355
  ], 64)) : createCommentVNode("", true),
38143
- unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
38144
- createVNode(_sfc_main$H, {
38356
+ unref(hasResults) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
38357
+ createVNode(_sfc_main$I, {
38145
38358
  class: "lupa-toolbar-top",
38146
38359
  options: _ctx.options,
38147
38360
  "pagination-location": "top"
38148
38361
  }, null, 8, ["options"]),
38149
- currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$14, {
38362
+ currentFilterOptions.value && currentFilterPositionDesktop.value === "resultsTop" ? (openBlock(), createBlock(_sfc_main$15, {
38150
38363
  key: 0,
38151
38364
  class: normalizeClass(currentFiltersClass.value),
38152
38365
  "data-cy": "lupa-search-result-filters-mobile-toolbar",
@@ -38154,22 +38367,32 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
38154
38367
  expandable: !desktopFiltersExpanded.value
38155
38368
  }, null, 8, ["class", "options", "expandable"])) : createCommentVNode("", true),
38156
38369
  createBaseVNode("div", _hoisted_2$c, [
38157
- _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
38158
- return renderSlot(_ctx.$slots, "productCard", {
38159
- style: normalizeStyle(columnSize.value),
38160
- key: getProductKeyAction(index, product),
38161
- product,
38162
- options: productCardOptions.value
38163
- });
38164
- }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
38165
- return openBlock(), createBlock(_sfc_main$v, {
38166
- style: normalizeStyle(columnSize.value),
38167
- key: getProductKeyAction(index, product),
38168
- product,
38169
- options: productCardOptions.value,
38170
- "analytics-metadata": clickMetadata.value
38171
- }, null, 8, ["style", "product", "options", "analytics-metadata"]);
38172
- }), 128))
38370
+ createVNode(_sfc_main$j, {
38371
+ enabled: unref(skeletonEnabled),
38372
+ loading: unref(loading),
38373
+ count: (_b25 = unref(limit)) != null ? _b25 : 12,
38374
+ style: normalizeStyle(columnSize.value)
38375
+ }, {
38376
+ default: withCtx(() => [
38377
+ _ctx.$slots.productCard ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(searchResult).items, (product, index) => {
38378
+ return renderSlot(_ctx.$slots, "productCard", {
38379
+ key: getProductKeyAction(index, product),
38380
+ style: normalizeStyle(columnSize.value),
38381
+ product,
38382
+ options: productCardOptions.value
38383
+ });
38384
+ }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(searchResult).items, (product, index) => {
38385
+ return openBlock(), createBlock(_sfc_main$w, {
38386
+ key: getProductKeyAction(index, product),
38387
+ style: normalizeStyle(columnSize.value),
38388
+ product,
38389
+ options: productCardOptions.value,
38390
+ "analytics-metadata": clickMetadata.value
38391
+ }, null, 8, ["style", "product", "options", "analytics-metadata"]);
38392
+ }), 128))
38393
+ ]),
38394
+ _: 3
38395
+ }, 8, ["enabled", "loading", "count", "style"])
38173
38396
  ]),
38174
38397
  unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
38175
38398
  createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
@@ -38179,40 +38402,40 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
38179
38402
  onClick: goToFirstPage
38180
38403
  }, toDisplayString(_ctx.options.labels.backToFirstPage), 1)) : createCommentVNode("", true)
38181
38404
  ])) : createCommentVNode("", true),
38182
- createVNode(_sfc_main$H, {
38405
+ createVNode(_sfc_main$I, {
38183
38406
  class: "lupa-toolbar-bottom",
38184
38407
  options: _ctx.options,
38185
38408
  "pagination-location": "bottom"
38186
38409
  }, null, 8, ["options"]),
38187
- createVNode(_sfc_main$s, {
38410
+ createVNode(_sfc_main$t, {
38188
38411
  options: _ctx.options,
38189
38412
  location: "bottom",
38190
- sdkOptions: _ctx.options.options
38191
- }, null, 8, ["options", "sdkOptions"])
38413
+ "sdk-options": _ctx.options.options
38414
+ }, null, 8, ["options", "sdk-options"])
38192
38415
  ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
38193
- createVNode(_sfc_main$j, {
38194
- emptyResultsLabel: (_b25 = _ctx.options.labels) == null ? void 0 : _b25.emptyResults,
38195
- currentQueryText: unref(currentQueryText),
38196
- hasSimilarQueries: hasSimilarQueries.value || hasSimilarResults.value,
38197
- zeroResults: (_c = _ctx.options) == null ? void 0 : _c.zeroResults
38198
- }, null, 8, ["emptyResultsLabel", "currentQueryText", "hasSimilarQueries", "zeroResults"])
38416
+ createVNode(_sfc_main$k, {
38417
+ "empty-results-label": (_c = _ctx.options.labels) == null ? void 0 : _c.emptyResults,
38418
+ "current-query-text": unref(currentQueryText),
38419
+ "has-similar-queries": hasSimilarQueries.value || hasSimilarResults.value,
38420
+ "zero-results": (_d = _ctx.options) == null ? void 0 : _d.zeroResults
38421
+ }, null, 8, ["empty-results-label", "current-query-text", "has-similar-queries", "zero-results"])
38199
38422
  ])) : createCommentVNode("", true),
38200
- createVNode(_sfc_main$m, {
38423
+ createVNode(_sfc_main$n, {
38201
38424
  labels: _ctx.options.labels
38202
38425
  }, null, 8, ["labels"]),
38203
38426
  hasSimilarQueries.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
38204
- createVNode(_sfc_main$u, {
38427
+ createVNode(_sfc_main$v, {
38205
38428
  labels: similarQueriesLabels.value,
38206
- columnSize: columnSize.value,
38207
- productCardOptions: productCardOptions.value
38208
- }, null, 8, ["labels", "columnSize", "productCardOptions"])
38429
+ "column-size": columnSize.value,
38430
+ "product-card-options": productCardOptions.value
38431
+ }, null, 8, ["labels", "column-size", "product-card-options"])
38209
38432
  ])) : createCommentVNode("", true),
38210
38433
  hasSimilarResults.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
38211
- createVNode(_sfc_main$q, {
38434
+ createVNode(_sfc_main$r, {
38212
38435
  labels: similarResultsLabels.value,
38213
- columnSize: columnSize.value,
38214
- productCardOptions: productCardOptions.value
38215
- }, null, 8, ["labels", "columnSize", "productCardOptions"])
38436
+ "column-size": columnSize.value,
38437
+ "product-card-options": productCardOptions.value
38438
+ }, null, 8, ["labels", "column-size", "product-card-options"])
38216
38439
  ])) : createCommentVNode("", true),
38217
38440
  renderSlot(_ctx.$slots, "append")
38218
38441
  ]);
@@ -38287,18 +38510,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
38287
38510
  ])) : createCommentVNode("", true),
38288
38511
  hasRelatedCategoryChildren.value ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
38289
38512
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(relatedCategoryChildren), (child) => {
38290
- return openBlock(), createBlock(_sfc_main$13, {
38513
+ return openBlock(), createBlock(_sfc_main$14, {
38291
38514
  key: getCategoryKey(child),
38292
38515
  item: child,
38293
38516
  options: categoryOptions.value
38294
38517
  }, null, 8, ["item", "options"]);
38295
38518
  }), 128))
38296
- ])) : createCommentVNode("", true),
38297
- createVNode(_sfc_main$H, {
38298
- class: "lupa-toolbar-mobile",
38299
- "pagination-location": "top",
38300
- options: _ctx.options
38301
- }, null, 8, ["options"])
38519
+ ])) : createCommentVNode("", true)
38302
38520
  ])
38303
38521
  ], 2);
38304
38522
  };
@@ -38726,8 +38944,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
38726
38944
  class: normalizeClass(["lupa-search-result-wrapper", { "lupa-search-wrapper-no-results": !unref(hasResults) }])
38727
38945
  }, [
38728
38946
  _ctx.isContainer ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
38729
- createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38730
- createVNode(_sfc_main$16, {
38947
+ createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38948
+ createVNode(_sfc_main$17, {
38731
38949
  "show-summary": true,
38732
38950
  options: _ctx.options,
38733
38951
  "is-product-list": (_a25 = _ctx.isProductList) != null ? _a25 : false
@@ -38737,13 +38955,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
38737
38955
  key: 1,
38738
38956
  options: _ctx.options
38739
38957
  }, null, 8, ["options"])) : createCommentVNode("", true),
38740
- _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$R, {
38958
+ _ctx.options.filters ? (openBlock(), createBlock(_sfc_main$S, {
38741
38959
  key: 2,
38742
38960
  options: _ctx.options.filters,
38743
38961
  onFilter: handleParamsChange
38744
38962
  }, null, 8, ["options"])) : createCommentVNode("", true),
38745
38963
  _ctx.options.sort ? (openBlock(), createBlock(_sfc_main$f, { key: 3 })) : createCommentVNode("", true),
38746
- unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$Q, {
38964
+ unref(currentQueryText) || _ctx.isProductList ? (openBlock(), createBlock(_sfc_main$R, {
38747
38965
  key: 4,
38748
38966
  breadcrumbs: _ctx.options.breadcrumbs
38749
38967
  }, null, 8, ["breadcrumbs"])) : createCommentVNode("", true),
@@ -38752,7 +38970,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
38752
38970
  id: "lupa-search-results",
38753
38971
  class: normalizeClass(["top-layout-wrapper", indicatorClasses.value])
38754
38972
  }, [
38755
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
38973
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
38756
38974
  key: 0,
38757
38975
  options: (_b25 = _ctx.options.filters) != null ? _b25 : {},
38758
38976
  ref_key: "searchResultsFilters",
@@ -38760,8 +38978,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
38760
38978
  onFilter: handleParamsChange
38761
38979
  }, null, 8, ["options"])) : createCommentVNode("", true),
38762
38980
  createBaseVNode("div", _hoisted_2$8, [
38763
- createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38764
- createVNode(_sfc_main$16, {
38981
+ createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38982
+ createVNode(_sfc_main$17, {
38765
38983
  options: _ctx.options,
38766
38984
  "is-product-list": (_c = _ctx.isProductList) != null ? _c : false
38767
38985
  }, null, 8, ["options", "is-product-list"]),
@@ -38777,8 +38995,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
38777
38995
  }, 8, ["options", "ssr"])
38778
38996
  ])
38779
38997
  ], 2)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
38780
- createVNode(_sfc_main$18, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38781
- createVNode(_sfc_main$16, {
38998
+ createVNode(_sfc_main$1c, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
38999
+ createVNode(_sfc_main$17, {
38782
39000
  options: _ctx.options,
38783
39001
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
38784
39002
  }, null, 8, ["options", "is-product-list"]),
@@ -38786,7 +39004,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
38786
39004
  id: "lupa-search-results",
38787
39005
  class: normalizeClass(indicatorClasses.value)
38788
39006
  }, [
38789
- showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$S, {
39007
+ showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$T, {
38790
39008
  key: 0,
38791
39009
  options: (_e = _ctx.options.filters) != null ? _e : {},
38792
39010
  ref_key: "searchResultsFilters",
@@ -38937,7 +39155,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
38937
39155
  onClick: withModifiers(innerClick, ["stop"])
38938
39156
  }, [
38939
39157
  createBaseVNode("div", _hoisted_1$a, [
38940
- createVNode(_sfc_main$19, {
39158
+ createVNode(_sfc_main$1d, {
38941
39159
  options: fullSearchBoxOptions.value,
38942
39160
  "is-search-container": true,
38943
39161
  ref_key: "searchBox",
@@ -40525,7 +40743,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
40525
40743
  key: getProductKeyAction(index, product)
40526
40744
  }, {
40527
40745
  default: withCtx(() => [
40528
- createVNode(_sfc_main$v, {
40746
+ createVNode(_sfc_main$w, {
40529
40747
  product,
40530
40748
  options: _ctx.options,
40531
40749
  "click-tracking-settings": clickTrackingSettings.value,
@@ -40540,7 +40758,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
40540
40758
  _: 1
40541
40759
  }, 16, ["wrap-around"])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
40542
40760
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
40543
- return openBlock(), createBlock(_sfc_main$v, {
40761
+ return openBlock(), createBlock(_sfc_main$w, {
40544
40762
  style: normalizeStyle(columnSize.value),
40545
40763
  key: getProductKeyAction(index, product),
40546
40764
  product,
@@ -40786,7 +41004,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
40786
41004
  createBaseVNode("a", {
40787
41005
  href: getLink(product)
40788
41006
  }, [
40789
- createVNode(_sfc_main$G, {
41007
+ createVNode(_sfc_main$H, {
40790
41008
  item: product,
40791
41009
  options: image.value
40792
41010
  }, null, 8, ["item", "options"])
@@ -40951,7 +41169,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
40951
41169
  return (_ctx, _cache) => {
40952
41170
  return openBlock(), createElementBlock("section", _hoisted_1$3, [
40953
41171
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchResults, (product, index) => {
40954
- return openBlock(), createBlock(_sfc_main$v, {
41172
+ return openBlock(), createBlock(_sfc_main$w, {
40955
41173
  class: "lupa-chat-product-card",
40956
41174
  key: getProductKeyAction(index, product),
40957
41175
  product,
@@ -41147,7 +41365,7 @@ const _hoisted_4 = {
41147
41365
  key: 0,
41148
41366
  class: "lupasearch-chat-content"
41149
41367
  };
41150
- const _sfc_main$1H = /* @__PURE__ */ defineComponent({
41368
+ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
41151
41369
  __name: "ChatContainer",
41152
41370
  props: {
41153
41371
  options: {}
@@ -47171,7 +47389,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
47171
47389
  };
47172
47390
  __expose({ fetch: fetch2 });
47173
47391
  return (_ctx, _cache) => {
47174
- return openBlock(), createBlock(unref(_sfc_main$19), {
47392
+ return openBlock(), createBlock(unref(_sfc_main$1d), {
47175
47393
  ref_key: "searchBox",
47176
47394
  ref: searchBox2,
47177
47395
  options: fullSearchBoxOptions.value
@@ -47832,7 +48050,7 @@ const chat = (options, mountOptions) => {
47832
48050
  const instance = createVue(
47833
48051
  options.displayOptions.containerSelector,
47834
48052
  mountOptions == null ? void 0 : mountOptions.mountingBehavior,
47835
- _sfc_main$1H,
48053
+ _sfc_main$1L,
47836
48054
  {
47837
48055
  options
47838
48056
  }