@getlupa/vue 0.17.11 → 0.17.13

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.
@@ -9004,8 +9004,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
9004
9004
  const _hoisted_1$1i = { id: "lupa-search-box-input-container" };
9005
9005
  const _hoisted_2$T = { class: "lupa-input-clear" };
9006
9006
  const _hoisted_3$C = { id: "lupa-search-box-input" };
9007
- const _hoisted_4$s = ["value"];
9008
- const _hoisted_5$i = ["aria-label", "placeholder"];
9007
+ const _hoisted_4$u = ["value"];
9008
+ const _hoisted_5$k = ["aria-label", "placeholder"];
9009
9009
  const _hoisted_6$9 = /* @__PURE__ */ vue.createElementVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
9010
9010
  const _hoisted_7$7 = [
9011
9011
  _hoisted_6$9
@@ -9111,7 +9111,7 @@ const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
9111
9111
  "aria-hidden": "true",
9112
9112
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
9113
9113
  disabled: ""
9114
- }, null, 8, _hoisted_4$s),
9114
+ }, null, 8, _hoisted_4$u),
9115
9115
  vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
9116
9116
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
9117
9117
  }, inputAttributes.value, {
@@ -9125,7 +9125,7 @@ const _sfc_main$1v = /* @__PURE__ */ vue.defineComponent({
9125
9125
  placeholder: labels.value.placeholder,
9126
9126
  onInput: handleInput,
9127
9127
  onFocus: handleFocus
9128
- }), null, 16, _hoisted_5$i), [
9128
+ }), null, 16, _hoisted_5$k), [
9129
9129
  [vue.vModelText, inputValue.value]
9130
9130
  ]),
9131
9131
  _ctx.options.showSubmitButton ? (vue.openBlock(), vue.createElementBlock("button", {
@@ -9337,11 +9337,11 @@ const _hoisted_3$B = {
9337
9337
  class: "lupa-suggestion-facet",
9338
9338
  "data-cy": "lupa-suggestion-facet"
9339
9339
  };
9340
- const _hoisted_4$r = {
9340
+ const _hoisted_4$t = {
9341
9341
  class: "lupa-suggestion-facet-label",
9342
9342
  "data-cy": "lupa-suggestion-facet-label"
9343
9343
  };
9344
- const _hoisted_5$h = {
9344
+ const _hoisted_5$j = {
9345
9345
  class: "lupa-suggestion-facet-value",
9346
9346
  "data-cy": "lupa-suggestion-facet-value"
9347
9347
  };
@@ -9383,8 +9383,8 @@ const _sfc_main$1q = /* @__PURE__ */ vue.defineComponent({
9383
9383
  innerHTML: _ctx.suggestion.displayHighlight
9384
9384
  }, null, 8, _hoisted_1$1e)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$R, vue.toDisplayString(_ctx.suggestion.display), 1)),
9385
9385
  _ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$B, [
9386
- vue.createElementVNode("span", _hoisted_4$r, vue.toDisplayString(facetLabel.value), 1),
9387
- vue.createElementVNode("span", _hoisted_5$h, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
9386
+ vue.createElementVNode("span", _hoisted_4$t, vue.toDisplayString(facetLabel.value), 1),
9387
+ vue.createElementVNode("span", _hoisted_5$j, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
9388
9388
  ])) : vue.createCommentVNode("", true)
9389
9389
  ]);
9390
9390
  };
@@ -18927,8 +18927,8 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
18927
18927
  const _hoisted_1$18 = ["innerHTML"];
18928
18928
  const _hoisted_2$N = { key: 0 };
18929
18929
  const _hoisted_3$A = { key: 1 };
18930
- const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
18931
- const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
18930
+ const _hoisted_4$s = { class: "lupa-search-box-custom-label" };
18931
+ const _hoisted_5$i = { class: "lupa-search-box-custom-text" };
18932
18932
  const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
18933
18933
  __name: "SearchBoxProductCustom",
18934
18934
  props: {
@@ -18960,8 +18960,8 @@ const _sfc_main$1h = /* @__PURE__ */ vue.defineComponent({
18960
18960
  class: [className.value, "lupa-search-box-product-custom"]
18961
18961
  }, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
18962
18962
  !label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$N, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$A, [
18963
- vue.createElementVNode("div", _hoisted_4$q, vue.toDisplayString(label.value), 1),
18964
- vue.createElementVNode("div", _hoisted_5$g, vue.toDisplayString(text.value), 1)
18963
+ vue.createElementVNode("div", _hoisted_4$s, vue.toDisplayString(label.value), 1),
18964
+ vue.createElementVNode("div", _hoisted_5$i, vue.toDisplayString(text.value), 1)
18965
18965
  ]))
18966
18966
  ], 16));
18967
18967
  };
@@ -19054,13 +19054,11 @@ const useSearchResultStore = defineStore("searchResult", () => {
19054
19054
  const relatedCategoryChildren = vue.ref([]);
19055
19055
  const lastRequestId = vue.ref("");
19056
19056
  const searchRequestResults = vue.ref({});
19057
+ const lastResultsSource = vue.ref(void 0);
19057
19058
  const optionsStore = useOptionsStore();
19058
19059
  const paramsStore = useParamsStore();
19059
19060
  const screenStore = useScreenStore();
19060
19061
  const { searchResultOptions } = storeToRefs(optionsStore);
19061
- vue.computed(
19062
- () => loading.value || loadingFacets.value || loadingRefiners.value
19063
- );
19064
19062
  const facets2 = vue.computed(() => searchResult.value.facets);
19065
19063
  const filters = vue.computed(() => searchResult.value.filters);
19066
19064
  const currentQueryText = vue.computed(() => searchResult.value.searchText);
@@ -19157,13 +19155,14 @@ const useSearchResultStore = defineStore("searchResult", () => {
19157
19155
  });
19158
19156
  searchResult.value = updatedResult;
19159
19157
  });
19160
- const saveRequestResult = (requestId, result2) => {
19158
+ const saveRequestResult = (requestId, result2, source = "items") => {
19161
19159
  var _a;
19162
19160
  const existingResult = (_a = searchRequestResults.value[requestId]) != null ? _a : {};
19163
19161
  const combinedResult = __spreadValues(__spreadValues({}, existingResult), result2);
19164
19162
  searchRequestResults.value = __spreadProps(__spreadValues({}, searchRequestResults.value), {
19165
19163
  [requestId]: combinedResult
19166
19164
  });
19165
+ lastResultsSource.value = source;
19167
19166
  searchResult.value = combinedResult;
19168
19167
  };
19169
19168
  const setLastRequestId = (requestId) => {
@@ -19189,14 +19188,13 @@ const useSearchResultStore = defineStore("searchResult", () => {
19189
19188
  } else {
19190
19189
  saveRequestResult(requestId, newSearchResult);
19191
19190
  }
19192
- saveRequestResult(requestId, newSearchResult);
19193
19191
  return { searchResult: newSearchResult };
19194
19192
  };
19195
- const addPartial = (requestId, newSearchResult) => {
19193
+ const addPartial = (requestId, newSearchResult, source) => {
19196
19194
  if (lastRequestId.value !== requestId || !newSearchResult) {
19197
19195
  return;
19198
19196
  }
19199
- saveRequestResult(requestId, newSearchResult);
19197
+ saveRequestResult(requestId, newSearchResult, source);
19200
19198
  return { searchResult: searchResult.value };
19201
19199
  };
19202
19200
  const setColumnCount = ({ width, grid }) => {
@@ -19263,6 +19261,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
19263
19261
  hideFiltersOnExactMatchForKeys,
19264
19262
  relatedCategoryChildren,
19265
19263
  searchRequestResults,
19264
+ lastResultsSource,
19266
19265
  setSidebarState,
19267
19266
  queryFacet,
19268
19267
  setLastRequestId,
@@ -19279,14 +19278,17 @@ const useSearchResultStore = defineStore("searchResult", () => {
19279
19278
  });
19280
19279
  const _hoisted_1$16 = { class: "lupa-search-box-add-to-cart-wrapper" };
19281
19280
  const _hoisted_2$M = { class: "lupa-search-box-product-addtocart" };
19282
- const _hoisted_3$z = ["onClick", "disabled"];
19281
+ const _hoisted_3$z = ["disabled"];
19282
+ const _hoisted_4$r = ["href"];
19283
+ const _hoisted_5$h = ["onClick", "disabled"];
19283
19284
  const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
19284
19285
  __name: "SearchBoxProductAddToCart",
19285
19286
  props: {
19286
19287
  item: {},
19287
19288
  options: {},
19288
19289
  inStock: { type: Boolean },
19289
- dynamicAttributes: {}
19290
+ dynamicAttributes: {},
19291
+ link: {}
19290
19292
  },
19291
19293
  emits: ["productEvent"],
19292
19294
  setup(__props, { emit }) {
@@ -19313,16 +19315,27 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
19313
19315
  emit("productEvent", { type: "addToCart" });
19314
19316
  loading.value = false;
19315
19317
  });
19318
+ const hasLink = vue.computed(() => {
19319
+ return Boolean(props.link && props.options.link);
19320
+ });
19316
19321
  return (_ctx, _cache) => {
19317
19322
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$16, [
19318
19323
  vue.createElementVNode("div", _hoisted_2$M, [
19319
- vue.createElementVNode("button", vue.mergeProps({
19324
+ hasLink.value ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
19325
+ key: 0,
19326
+ class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
19327
+ "data-cy": "lupa-add-to-cart",
19328
+ disabled: !inStockValue.value || loading.value
19329
+ }, _ctx.dynamicAttributes, { onClick: handleClick }), [
19330
+ vue.createElementVNode("a", { href: _ctx.link }, vue.toDisplayString(label.value), 9, _hoisted_4$r)
19331
+ ], 16, _hoisted_3$z)) : (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
19332
+ key: 1,
19320
19333
  onClick: vue.withModifiers(handleClick, ["stop", "prevent"]),
19321
19334
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
19322
19335
  "data-cy": "lupa-add-to-cart",
19323
19336
  type: "button",
19324
19337
  disabled: !inStockValue.value || loading.value
19325
- }, _ctx.dynamicAttributes), vue.toDisplayString(label.value), 17, _hoisted_3$z)
19338
+ }, _ctx.dynamicAttributes), vue.toDisplayString(label.value), 17, _hoisted_5$h))
19326
19339
  ])
19327
19340
  ]);
19328
19341
  };
@@ -19350,7 +19363,8 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
19350
19363
  item: {},
19351
19364
  element: {},
19352
19365
  labels: {},
19353
- isInStock: { type: Boolean }
19366
+ isInStock: { type: Boolean },
19367
+ link: {}
19354
19368
  },
19355
19369
  setup(__props) {
19356
19370
  const props = __props;
@@ -19412,17 +19426,19 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
19412
19426
  labels: _ctx.labels,
19413
19427
  class: { "lupa-loading-dynamic-data": isLoadingDynamicData((_a = _ctx.item) == null ? void 0 : _a.id) },
19414
19428
  inStock: _ctx.isInStock,
19415
- "dynamic-attributes": dynamicAttributes.value
19416
- }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes"])) : vue.createCommentVNode("", true)
19429
+ "dynamic-attributes": dynamicAttributes.value,
19430
+ link: _ctx.link
19431
+ }, renderDynamicAttributesOnParentElement.value && dynamicAttributes.value), null, 16, ["item", "options", "labels", "class", "inStock", "dynamic-attributes", "link"])) : vue.createCommentVNode("", true)
19417
19432
  ], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$15, [
19418
19433
  displayElement.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(elementComponent.value), {
19419
19434
  key: 0,
19420
19435
  item: enhancedItem.value,
19421
19436
  options: _ctx.element,
19422
19437
  labels: _ctx.labels,
19438
+ link: _ctx.link,
19423
19439
  class: vue.normalizeClass({ "lupa-loading-dynamic-data": isLoadingDynamicData((_b = _ctx.item) == null ? void 0 : _b.id) }),
19424
19440
  inStock: _ctx.isInStock
19425
- }, null, 8, ["item", "options", "labels", "class", "inStock"])) : vue.createCommentVNode("", true),
19441
+ }, null, 8, ["item", "options", "labels", "link", "class", "inStock"])) : vue.createCommentVNode("", true),
19426
19442
  vue.renderSlot(_ctx.$slots, "badges")
19427
19443
  ]));
19428
19444
  };
@@ -19431,7 +19447,7 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
19431
19447
  const _hoisted_1$14 = { class: "lupa-badge-title" };
19432
19448
  const _hoisted_2$L = ["src"];
19433
19449
  const _hoisted_3$y = { key: 1 };
19434
- const _hoisted_4$p = {
19450
+ const _hoisted_4$q = {
19435
19451
  key: 0,
19436
19452
  class: "lupa-badge-full-text"
19437
19453
  };
@@ -19475,7 +19491,7 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
19475
19491
  }, null, 8, _hoisted_2$L)) : vue.createCommentVNode("", true),
19476
19492
  hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$y, vue.toDisplayString(_ctx.badge.titleText), 1)) : vue.createCommentVNode("", true)
19477
19493
  ]),
19478
- hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$p, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
19494
+ hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$q, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
19479
19495
  ], 6);
19480
19496
  };
19481
19497
  }
@@ -20390,11 +20406,11 @@ const _hoisted_3$w = {
20390
20406
  key: 0,
20391
20407
  class: "lupa-panel-title lupa-panel-title-top-results"
20392
20408
  };
20393
- const _hoisted_4$o = {
20409
+ const _hoisted_4$p = {
20394
20410
  key: 1,
20395
20411
  class: "lupa-panel-title"
20396
20412
  };
20397
- const _hoisted_5$f = {
20413
+ const _hoisted_5$g = {
20398
20414
  key: 1,
20399
20415
  id: "lupa-search-box-panel"
20400
20416
  };
@@ -20583,7 +20599,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
20583
20599
  "data-cy": "lupa-panel-" + panel.type + "-index"
20584
20600
  }, [
20585
20601
  ((_a = panel.labels) == null ? void 0 : _a.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$w, vue.toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : vue.createCommentVNode("", true),
20586
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$o, vue.toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
20602
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$p, vue.toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
20587
20603
  panel.queryKey && canShowPanel(panel) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getComponent(panel.type)), {
20588
20604
  key: 2,
20589
20605
  panel,
@@ -20618,7 +20634,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
20618
20634
  options: _ctx.options,
20619
20635
  onGoToResults: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("go-to-results"))
20620
20636
  }, null, 8, ["labels", "options"])) : vue.createCommentVNode("", true)
20621
- ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$f, [
20637
+ ])) : displayHistory.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$g, [
20622
20638
  vue.createVNode(_sfc_main$1s, {
20623
20639
  options: _ctx.options.history,
20624
20640
  history: history.value,
@@ -21097,7 +21113,7 @@ const _hoisted_3$v = {
21097
21113
  key: 1,
21098
21114
  "data-cy": "did-you-mean-label"
21099
21115
  };
21100
- const _hoisted_4$n = { key: 1 };
21116
+ const _hoisted_4$o = { key: 1 };
21101
21117
  const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
21102
21118
  __name: "SearchResultsDidYouMean",
21103
21119
  props: {
@@ -21148,7 +21164,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
21148
21164
  class: "lupa-did-you-mean lupa-highlighted-search-text",
21149
21165
  "data-cy": "did-you-mean-value",
21150
21166
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
21151
- }, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$n, vue.toDisplayString(label) + " ", 1))
21167
+ }, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$o, vue.toDisplayString(label) + " ", 1))
21152
21168
  ]);
21153
21169
  }), 128))
21154
21170
  ])) : vue.createCommentVNode("", true)
@@ -21198,8 +21214,8 @@ const _hoisted_3$u = {
21198
21214
  key: 1,
21199
21215
  class: "lupa-results-total-count"
21200
21216
  };
21201
- const _hoisted_4$m = { class: "lupa-results-total-count-number" };
21202
- const _hoisted_5$e = ["innerHTML"];
21217
+ const _hoisted_4$n = { class: "lupa-results-total-count-number" };
21218
+ const _hoisted_5$f = ["innerHTML"];
21203
21219
  const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
21204
21220
  __name: "SearchResultsTitle",
21205
21221
  props: {
@@ -21248,7 +21264,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
21248
21264
  queryText.value && !searchResultsTitleTemplate.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$E, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
21249
21265
  showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$u, [
21250
21266
  vue.createTextVNode("(" + vue.toDisplayString(searchResultsCountLabel.value), 1),
21251
- vue.createElementVNode("span", _hoisted_4$m, vue.toDisplayString(vue.unref(totalItems)), 1),
21267
+ vue.createElementVNode("span", _hoisted_4$n, vue.toDisplayString(vue.unref(totalItems)), 1),
21252
21268
  vue.createTextVNode(")")
21253
21269
  ])) : vue.createCommentVNode("", true)
21254
21270
  ])) : vue.createCommentVNode("", true),
@@ -21260,7 +21276,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
21260
21276
  key: 2,
21261
21277
  class: "lupa-result-page-description-top",
21262
21278
  innerHTML: descriptionTop.value
21263
- }, null, 8, _hoisted_5$e)) : vue.createCommentVNode("", true)
21279
+ }, null, 8, _hoisted_5$f)) : vue.createCommentVNode("", true)
21264
21280
  ]);
21265
21281
  };
21266
21282
  }
@@ -21310,7 +21326,7 @@ const _hoisted_3$t = {
21310
21326
  key: 0,
21311
21327
  class: "filter-values"
21312
21328
  };
21313
- const _hoisted_4$l = { class: "lupa-current-filter-list" };
21329
+ const _hoisted_4$m = { class: "lupa-current-filter-list" };
21314
21330
  const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
21315
21331
  __name: "CurrentFilters",
21316
21332
  props: {
@@ -21394,7 +21410,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
21394
21410
  }, null, 2)) : vue.createCommentVNode("", true)
21395
21411
  ]),
21396
21412
  !_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
21397
- vue.createElementVNode("div", _hoisted_4$l, [
21413
+ vue.createElementVNode("div", _hoisted_4$m, [
21398
21414
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentDisplayFilters.value, (filter2) => {
21399
21415
  return vue.openBlock(), vue.createBlock(_sfc_main$Y, {
21400
21416
  key: filter2.key + "_" + filter2.value,
@@ -21462,8 +21478,8 @@ const _hoisted_1$P = {
21462
21478
  };
21463
21479
  const _hoisted_2$B = { class: "lupa-category-back" };
21464
21480
  const _hoisted_3$s = ["href"];
21465
- const _hoisted_4$k = ["href"];
21466
- const _hoisted_5$d = { class: "lupa-child-category-list" };
21481
+ const _hoisted_4$l = ["href"];
21482
+ const _hoisted_5$e = { class: "lupa-child-category-list" };
21467
21483
  const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
21468
21484
  __name: "CategoryFilter",
21469
21485
  props: {
@@ -21569,9 +21585,9 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
21569
21585
  href: parentUrlLink.value,
21570
21586
  class: vue.normalizeClass({ "lupa-title-category": !hasBackButton.value }),
21571
21587
  onClick: handleNavigationParent
21572
- }, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$k)
21588
+ }, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$l)
21573
21589
  ], 2),
21574
- vue.createElementVNode("div", _hoisted_5$d, [
21590
+ vue.createElementVNode("div", _hoisted_5$e, [
21575
21591
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(categoryChildren.value, (child) => {
21576
21592
  return vue.openBlock(), vue.createBlock(_sfc_main$W, {
21577
21593
  key: getCategoryKey(child),
@@ -21590,8 +21606,8 @@ const _hoisted_1$O = {
21590
21606
  };
21591
21607
  const _hoisted_2$A = ["placeholder"];
21592
21608
  const _hoisted_3$r = { class: "lupa-terms-list" };
21593
- const _hoisted_4$j = ["onClick"];
21594
- const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
21609
+ const _hoisted_4$k = ["onClick"];
21610
+ const _hoisted_5$d = { class: "lupa-term-checkbox-wrapper" };
21595
21611
  const _hoisted_6$8 = { class: "lupa-term-label" };
21596
21612
  const _hoisted_7$6 = {
21597
21613
  key: 0,
@@ -21706,7 +21722,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
21706
21722
  key: item.title,
21707
21723
  onClick: ($event) => handleFacetClick(item)
21708
21724
  }, [
21709
- vue.createElementVNode("div", _hoisted_5$c, [
21725
+ vue.createElementVNode("div", _hoisted_5$d, [
21710
21726
  vue.createElementVNode("span", {
21711
21727
  class: vue.normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
21712
21728
  }, null, 2)
@@ -21717,7 +21733,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
21717
21733
  vue.createElementVNode("span", _hoisted_6$8, vue.toDisplayString(getItemLabel(item)), 1),
21718
21734
  _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$6, "(" + vue.toDisplayString(item.count) + ")", 1)) : vue.createCommentVNode("", true)
21719
21735
  ], 2)
21720
- ], 10, _hoisted_4$j);
21736
+ ], 10, _hoisted_4$k);
21721
21737
  }), 128))
21722
21738
  ]),
21723
21739
  displayShowMore.value ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -22717,11 +22733,11 @@ const _hoisted_3$q = {
22717
22733
  key: 1,
22718
22734
  class: "lupa-stats-facet-summary-input"
22719
22735
  };
22720
- const _hoisted_4$i = {
22736
+ const _hoisted_4$j = {
22721
22737
  key: 0,
22722
22738
  class: "lupa-stats-range-label"
22723
22739
  };
22724
- const _hoisted_5$b = { class: "lupa-stats-from" };
22740
+ const _hoisted_5$c = { class: "lupa-stats-from" };
22725
22741
  const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
22726
22742
  const _hoisted_7$5 = { key: 0 };
22727
22743
  const _hoisted_8$1 = /* @__PURE__ */ vue.createElementVNode("div", { class: "lupa-stats-separator" }, null, -1);
@@ -22920,8 +22936,8 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
22920
22936
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
22921
22937
  !isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$q, [
22922
22938
  vue.createElementVNode("div", null, [
22923
- rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$i, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
22924
- vue.createElementVNode("div", _hoisted_5$b, [
22939
+ rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$j, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
22940
+ vue.createElementVNode("div", _hoisted_5$c, [
22925
22941
  vue.withDirectives(vue.createElementVNode("input", {
22926
22942
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
22927
22943
  type: "text",
@@ -22990,7 +23006,7 @@ const _hoisted_3$p = {
22990
23006
  key: 0,
22991
23007
  class: "lupa-term-count"
22992
23008
  };
22993
- const _hoisted_4$h = {
23009
+ const _hoisted_4$i = {
22994
23010
  key: 0,
22995
23011
  class: "lupa-facet-level"
22996
23012
  };
@@ -23059,7 +23075,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
23059
23075
  _ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$p, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
23060
23076
  ], 2)
23061
23077
  ]),
23062
- showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$h, [
23078
+ showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$i, [
23063
23079
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(treeItem.value.children, (itemChild) => {
23064
23080
  return vue.openBlock(), vue.createBlock(_component_HierarchyFacetLevel, {
23065
23081
  key: itemChild.title,
@@ -23592,8 +23608,8 @@ const _hoisted_1$F = {
23592
23608
  };
23593
23609
  const _hoisted_2$u = ["onClick"];
23594
23610
  const _hoisted_3$n = { class: "lupa-mobile-sidebar-content" };
23595
- const _hoisted_4$g = { class: "lupa-sidebar-top" };
23596
- const _hoisted_5$a = { class: "lupa-sidebar-title" };
23611
+ const _hoisted_4$h = { class: "lupa-sidebar-top" };
23612
+ const _hoisted_5$b = { class: "lupa-sidebar-title" };
23597
23613
  const _hoisted_6$6 = {
23598
23614
  key: 0,
23599
23615
  class: "lupa-sidebar-filter-count"
@@ -23636,8 +23652,8 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
23636
23652
  onClick: vue.withModifiers(handleMobileToggle, ["stop"])
23637
23653
  }, null, 8, _hoisted_2$u),
23638
23654
  vue.createElementVNode("div", _hoisted_3$n, [
23639
- vue.createElementVNode("div", _hoisted_4$g, [
23640
- vue.createElementVNode("div", _hoisted_5$a, [
23655
+ vue.createElementVNode("div", _hoisted_4$h, [
23656
+ vue.createElementVNode("div", _hoisted_5$b, [
23641
23657
  vue.createTextVNode(vue.toDisplayString(sidebarTitle.value) + " ", 1),
23642
23658
  isFilterCountVisible.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$6, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
23643
23659
  ]),
@@ -23664,7 +23680,7 @@ const _hoisted_3$m = {
23664
23680
  key: 1,
23665
23681
  class: "lupa-search-results-breadcrumb-text"
23666
23682
  };
23667
- const _hoisted_4$f = { key: 2 };
23683
+ const _hoisted_4$g = { key: 2 };
23668
23684
  const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
23669
23685
  __name: "SearchResultsBreadcrumbs",
23670
23686
  props: {
@@ -23706,7 +23722,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
23706
23722
  return handleNavigation(e2, (_a2 = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a2 : "");
23707
23723
  }
23708
23724
  }, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$t)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$m, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
23709
- index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$f, vue.toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : vue.createCommentVNode("", true)
23725
+ index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$g, vue.toDisplayString((_a = breadcrumb.separator) != null ? _a : "/"), 1)) : vue.createCommentVNode("", true)
23710
23726
  ]);
23711
23727
  }), 128))
23712
23728
  ]);
@@ -23868,7 +23884,7 @@ const _hoisted_2$s = {
23868
23884
  class: "lupa-page-number-separator"
23869
23885
  };
23870
23886
  const _hoisted_3$l = ["onClick"];
23871
- const _hoisted_4$e = {
23887
+ const _hoisted_4$f = {
23872
23888
  key: 0,
23873
23889
  class: "lupa-page-number-separator"
23874
23890
  };
@@ -23974,7 +23990,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
23974
23990
  }, vue.toDisplayString(page), 11, _hoisted_3$l);
23975
23991
  }), 128)),
23976
23992
  showLastPage.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
23977
- showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$e, "...")) : vue.createCommentVNode("", true),
23993
+ showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$f, "...")) : vue.createCommentVNode("", true),
23978
23994
  vue.createElementVNode("div", {
23979
23995
  class: "lupa-page-number lupa-page-number-last",
23980
23996
  onClick: _cache[2] || (_cache[2] = () => {
@@ -23999,8 +24015,8 @@ const _hoisted_1$z = {
23999
24015
  };
24000
24016
  const _hoisted_2$r = { id: "lupa-select" };
24001
24017
  const _hoisted_3$k = { class: "lupa-select-label" };
24002
- const _hoisted_4$d = ["aria-label"];
24003
- const _hoisted_5$9 = ["value"];
24018
+ const _hoisted_4$e = ["aria-label"];
24019
+ const _hoisted_5$a = ["value"];
24004
24020
  const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
24005
24021
  __name: "SearchResultsPageSize",
24006
24022
  props: {
@@ -24044,9 +24060,9 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
24044
24060
  return vue.openBlock(), vue.createElementBlock("option", {
24045
24061
  key: option,
24046
24062
  value: option
24047
- }, vue.toDisplayString(prefixLabel.value) + vue.toDisplayString(option), 9, _hoisted_5$9);
24063
+ }, vue.toDisplayString(prefixLabel.value) + vue.toDisplayString(option), 9, _hoisted_5$a);
24048
24064
  }), 128))
24049
- ], 40, _hoisted_4$d)
24065
+ ], 40, _hoisted_4$e)
24050
24066
  ])
24051
24067
  ]);
24052
24068
  };
@@ -24058,8 +24074,8 @@ const _hoisted_1$y = {
24058
24074
  };
24059
24075
  const _hoisted_2$q = { id: "lupa-select" };
24060
24076
  const _hoisted_3$j = { class: "lupa-select-label" };
24061
- const _hoisted_4$c = ["aria-label"];
24062
- const _hoisted_5$8 = ["value"];
24077
+ const _hoisted_4$d = ["aria-label"];
24078
+ const _hoisted_5$9 = ["value"];
24063
24079
  const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
24064
24080
  __name: "SearchResultsSort",
24065
24081
  props: {
@@ -24124,9 +24140,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
24124
24140
  return vue.openBlock(), vue.createElementBlock("option", {
24125
24141
  key: option.key,
24126
24142
  value: option.key
24127
- }, vue.toDisplayString(option.label), 9, _hoisted_5$8);
24143
+ }, vue.toDisplayString(option.label), 9, _hoisted_5$9);
24128
24144
  }), 128))
24129
- ], 40, _hoisted_4$c), [
24145
+ ], 40, _hoisted_4$d), [
24130
24146
  [vue.vModelSelect, selectedKey.value]
24131
24147
  ])
24132
24148
  ])
@@ -24140,8 +24156,8 @@ const _hoisted_2$p = {
24140
24156
  class: "lupa-toolbar-right-title"
24141
24157
  };
24142
24158
  const _hoisted_3$i = { key: 2 };
24143
- const _hoisted_4$b = { key: 4 };
24144
- const _hoisted_5$7 = { key: 6 };
24159
+ const _hoisted_4$c = { key: 4 };
24160
+ const _hoisted_5$8 = { key: 6 };
24145
24161
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
24146
24162
  const _hoisted_7$3 = {
24147
24163
  key: 0,
@@ -24268,13 +24284,13 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
24268
24284
  label: searchSummaryLabel.value,
24269
24285
  clearable: vue.unref(hasAnyFilter) && showFilterClear.value,
24270
24286
  onClear: handleClearAll
24271
- }, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$b)),
24287
+ }, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$c)),
24272
24288
  displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
24273
24289
  key: 5,
24274
24290
  options: paginationOptions.value.pageSelect,
24275
24291
  "last-page-label": paginationOptions.value.labels.showMore,
24276
24292
  "first-page-label": paginationOptions.value.labels.showLess
24277
- }, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$7))
24293
+ }, null, 8, ["options", "last-page-label", "first-page-label"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$8))
24278
24294
  ]),
24279
24295
  vue.createElementVNode("div", _hoisted_6$5, [
24280
24296
  toolbarRightLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, vue.toDisplayString(toolbarRightLabel.value), 1)) : vue.createCommentVNode("", true),
@@ -24321,8 +24337,8 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
24321
24337
  const _hoisted_1$w = ["title", "innerHTML"];
24322
24338
  const _hoisted_2$o = ["title"];
24323
24339
  const _hoisted_3$h = ["href", "innerHTML"];
24324
- const _hoisted_4$a = ["title"];
24325
- const _hoisted_5$6 = {
24340
+ const _hoisted_4$b = ["title"];
24341
+ const _hoisted_5$7 = {
24326
24342
  key: 0,
24327
24343
  class: "lupa-search-results-product-title-text"
24328
24344
  };
@@ -24382,14 +24398,14 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
24382
24398
  style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
24383
24399
  title: title.value
24384
24400
  }, [
24385
- !_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$6, vue.toDisplayString(title.value), 1)) : vue.createCommentVNode("", true),
24401
+ !_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$7, vue.toDisplayString(title.value), 1)) : vue.createCommentVNode("", true),
24386
24402
  _ctx.options.link ? (vue.openBlock(), vue.createElementBlock("a", {
24387
24403
  key: 1,
24388
24404
  href: _ctx.link,
24389
24405
  class: "lupa-search-results-product-title-text lupa-title-link",
24390
24406
  onClick: handleNavigation
24391
24407
  }, vue.toDisplayString(title.value), 9, _hoisted_6$4)) : vue.createCommentVNode("", true)
24392
- ], 12, _hoisted_4$a));
24408
+ ], 12, _hoisted_4$b));
24393
24409
  };
24394
24410
  }
24395
24411
  });
@@ -24432,8 +24448,8 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
24432
24448
  const _hoisted_1$u = { id: "lupa-search-results-rating" };
24433
24449
  const _hoisted_2$n = { class: "lupa-ratings" };
24434
24450
  const _hoisted_3$g = { class: "lupa-ratings-base" };
24435
- const _hoisted_4$9 = ["innerHTML"];
24436
- const _hoisted_5$5 = { class: "lupa-rating-wrapper" };
24451
+ const _hoisted_4$a = ["innerHTML"];
24452
+ const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
24437
24453
  const _hoisted_6$3 = ["innerHTML"];
24438
24454
  const _hoisted_7$2 = ["href"];
24439
24455
  const STAR_COUNT = 5;
@@ -24482,10 +24498,10 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
24482
24498
  key: index,
24483
24499
  innerHTML: star,
24484
24500
  class: "lupa-rating lupa-rating-not-highlighted"
24485
- }, null, 8, _hoisted_4$9);
24501
+ }, null, 8, _hoisted_4$a);
24486
24502
  }), 128))
24487
24503
  ]),
24488
- vue.createElementVNode("div", _hoisted_5$5, [
24504
+ vue.createElementVNode("div", _hoisted_5$6, [
24489
24505
  vue.createElementVNode("div", {
24490
24506
  class: "lupa-ratings-highlighted",
24491
24507
  style: vue.normalizeStyle({ width: ratingPercentage.value + "%" })
@@ -24568,14 +24584,17 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
24568
24584
  });
24569
24585
  const _hoisted_1$s = { class: "lupa-search-results-add-to-cart-wrapper" };
24570
24586
  const _hoisted_2$m = { class: "lupa-search-results-product-addtocart" };
24571
- const _hoisted_3$f = ["id", "disabled", "onClick"];
24587
+ const _hoisted_3$f = ["disabled"];
24588
+ const _hoisted_4$9 = ["href"];
24589
+ const _hoisted_5$5 = ["id", "disabled", "onClick"];
24572
24590
  const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
24573
24591
  __name: "SearchResultsProductAddToCart",
24574
24592
  props: {
24575
24593
  item: {},
24576
24594
  options: {},
24577
24595
  inStock: { type: Boolean },
24578
- dynamicAttributes: {}
24596
+ dynamicAttributes: {},
24597
+ link: {}
24579
24598
  },
24580
24599
  emits: ["productEvent"],
24581
24600
  setup(__props, { emit }) {
@@ -24607,17 +24626,28 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
24607
24626
  emit("productEvent", { type: "addToCart" });
24608
24627
  loading.value = false;
24609
24628
  });
24629
+ const hasLink = vue.computed(() => {
24630
+ return Boolean(props.link && props.options.link);
24631
+ });
24610
24632
  return (_ctx, _cache) => {
24611
24633
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
24612
24634
  vue.createElementVNode("div", _hoisted_2$m, [
24613
- vue.createElementVNode("button", vue.mergeProps({
24635
+ hasLink.value ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
24636
+ key: 0,
24637
+ class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24638
+ "data-cy": "lupa-add-to-cart",
24639
+ disabled: !inStockValue.value || loading.value
24640
+ }, _ctx.dynamicAttributes, { onClick: handleClick }), [
24641
+ vue.createElementVNode("a", { href: _ctx.link }, vue.toDisplayString(label.value), 9, _hoisted_4$9)
24642
+ ], 16, _hoisted_3$f)) : (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
24643
+ key: 1,
24614
24644
  id: id.value,
24615
24645
  class: loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart",
24616
24646
  "data-cy": "lupa-add-to-cart",
24617
24647
  disabled: !inStockValue.value || loading.value
24618
24648
  }, _ctx.dynamicAttributes, {
24619
24649
  onClick: vue.withModifiers(handleClick, ["stop"])
24620
- }), vue.toDisplayString(label.value), 17, _hoisted_3$f)
24650
+ }), vue.toDisplayString(label.value), 17, _hoisted_5$5))
24621
24651
  ])
24622
24652
  ]);
24623
24653
  };
@@ -25630,7 +25660,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
25630
25660
  const searchResultStore = useSearchResultStore();
25631
25661
  const paramsStore = useParamsStore();
25632
25662
  const optionsStore = useOptionsStore();
25633
- const { searchResult } = storeToRefs(searchResultStore);
25663
+ const { searchResult, lastResultsSource } = storeToRefs(searchResultStore);
25634
25664
  const { searchResultOptions } = storeToRefs(optionsStore);
25635
25665
  const relatedQueries = vue.ref([]);
25636
25666
  const allDisplayItems = vue.ref({});
@@ -25656,8 +25686,12 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
25656
25686
  return filters;
25657
25687
  });
25658
25688
  vue.watch(searchResult, () => __async(this, null, function* () {
25689
+ var _a;
25659
25690
  allDisplayItems.value = {};
25660
25691
  querySourceResultMap.value = {};
25692
+ if (((_a = searchResult.value) == null ? void 0 : _a.searchText) === void 0 || lastResultsSource.value !== "items") {
25693
+ return;
25694
+ }
25661
25695
  if (!props.options || !searchResult.value) {
25662
25696
  relatedQueries.value = [];
25663
25697
  }
@@ -26317,7 +26351,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
26317
26351
  if (!res.success) {
26318
26352
  return;
26319
26353
  }
26320
- searchResultStore.addPartial(requestId, __spreadValues({}, res));
26354
+ searchResultStore.addPartial(requestId, __spreadValues({}, res), "facets");
26321
26355
  }).catch((err) => {
26322
26356
  console.error(err);
26323
26357
  }).finally(() => {
@@ -26335,7 +26369,11 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
26335
26369
  if (!res.success) {
26336
26370
  return;
26337
26371
  }
26338
- searchResultStore.addPartial(requestId, __spreadValues({}, res));
26372
+ searchResultStore.addPartial(
26373
+ requestId,
26374
+ __spreadValues({}, res),
26375
+ "refiners"
26376
+ );
26339
26377
  }).catch((err) => {
26340
26378
  console.error(err);
26341
26379
  }).finally(() => {