@getlupa/client 1.6.4 → 1.6.6

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.
@@ -6275,11 +6275,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6275
6275
  return { success: false, errors };
6276
6276
  });
6277
6277
  const track$1 = (queryKey, event, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6278
- const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
6279
- if (res.status < 400) {
6278
+ try {
6279
+ const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
6280
+ if (res.status < 400) {
6281
+ return { success: false };
6282
+ }
6283
+ return res.json();
6284
+ } catch (e) {
6280
6285
  return { success: false };
6281
6286
  }
6282
- return res.json();
6283
6287
  });
6284
6288
  const loadRedirectionRules = (queryKey, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6285
6289
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}redirections/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
@@ -7639,6 +7643,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7639
7643
  const suggestionResults = ref({});
7640
7644
  const highlightedIndex = ref(-1);
7641
7645
  const inputValue = ref("");
7646
+ const resultInputValue = ref("");
7642
7647
  const historyStore = useHistoryStore();
7643
7648
  const resultsVisible = computed(() => {
7644
7649
  var _a;
@@ -7651,13 +7656,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7651
7656
  return {
7652
7657
  queryKey: p2.queryKey,
7653
7658
  count: (_b = (_a = suggestionResults.value[p2.queryKey]) == null ? void 0 : _a.length) != null ? _b : 0,
7654
- panel: p2
7659
+ panel: p2,
7660
+ input: resultInputValue.value
7655
7661
  };
7656
7662
  }
7657
7663
  return {
7658
7664
  queryKey: p2.queryKey,
7659
7665
  count: (_e = (_d = (_c = docResults.value[p2.queryKey]) == null ? void 0 : _c.items) == null ? void 0 : _d.length) != null ? _e : 0,
7660
- panel: p2
7666
+ panel: p2,
7667
+ input: resultInputValue.value
7661
7668
  };
7662
7669
  })
7663
7670
  );
@@ -7717,6 +7724,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7717
7724
  [queryKey]: flattenSuggestions(result.items, (_a = publicQuery.searchText) != null ? _a : "")
7718
7725
  });
7719
7726
  inputValue.value = publicQuery.searchText;
7727
+ resultInputValue.value = publicQuery.searchText;
7720
7728
  emitSearchResultsCallback();
7721
7729
  return {
7722
7730
  suggestions: result.items
@@ -7804,8 +7812,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7804
7812
  const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
7805
7813
  const _hoisted_2$P = { class: "lupa-input-clear" };
7806
7814
  const _hoisted_3$B = { id: "lupa-search-box-input" };
7807
- const _hoisted_4$q = ["value"];
7808
- const _hoisted_5$f = ["placeholder"];
7815
+ const _hoisted_4$s = ["value"];
7816
+ const _hoisted_5$g = ["aria-label", "placeholder"];
7809
7817
  const _hoisted_6$9 = {
7810
7818
  key: 0,
7811
7819
  class: "lupa-close-label"
@@ -7854,6 +7862,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7854
7862
  var _a;
7855
7863
  return __spreadValues2({}, (_a = props.options.inputAttributes) != null ? _a : {});
7856
7864
  });
7865
+ const ariaLabel = computed(() => {
7866
+ var _a;
7867
+ return (_a = labels.value.searchInputAriaLabel) != null ? _a : "Search input";
7868
+ });
7857
7869
  watch(suggestedValue, () => {
7858
7870
  if (suggestedValue.value.override) {
7859
7871
  input.value = suggestedValue.value.item.suggestion;
@@ -7897,22 +7909,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7897
7909
  createBaseVNode("div", _hoisted_3$B, [
7898
7910
  createBaseVNode("input", {
7899
7911
  class: "lupa-hint",
7912
+ "aria-hidden": "true",
7900
7913
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
7901
7914
  disabled: ""
7902
- }, null, 8, _hoisted_4$q),
7915
+ }, null, 8, _hoisted_4$s),
7903
7916
  withDirectives(createBaseVNode("input", mergeProps({
7904
7917
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
7905
7918
  }, inputAttributes.value, {
7906
7919
  ref_key: "mainInput",
7907
7920
  ref: mainInput,
7908
7921
  autocomplete: "off",
7922
+ "aria-label": ariaLabel.value,
7909
7923
  class: "lupa-search-box-input-field",
7910
7924
  "data-cy": "lupa-search-box-input-field",
7911
7925
  type: "text",
7912
7926
  placeholder: labels.value.placeholder,
7913
7927
  onInput: handleInput,
7914
7928
  onFocus: handleFocus
7915
- }), null, 16, _hoisted_5$f), [
7929
+ }), null, 16, _hoisted_5$g), [
7916
7930
  [vModelText, inputValue.value]
7917
7931
  ])
7918
7932
  ]),
@@ -8078,11 +8092,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8078
8092
  class: "lupa-suggestion-facet",
8079
8093
  "data-cy": "lupa-suggestion-facet"
8080
8094
  };
8081
- const _hoisted_4$p = {
8095
+ const _hoisted_4$r = {
8082
8096
  class: "lupa-suggestion-facet-label",
8083
8097
  "data-cy": "lupa-suggestion-facet-label"
8084
8098
  };
8085
- const _hoisted_5$e = {
8099
+ const _hoisted_5$f = {
8086
8100
  class: "lupa-suggestion-facet-value",
8087
8101
  "data-cy": "lupa-suggestion-facet-value"
8088
8102
  };
@@ -8124,8 +8138,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8124
8138
  innerHTML: _ctx.suggestion.displayHighlight
8125
8139
  }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8126
8140
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8127
- createBaseVNode("span", _hoisted_4$p, toDisplayString(facetLabel.value), 1),
8128
- createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
8141
+ createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8142
+ createBaseVNode("span", _hoisted_5$f, toDisplayString(_ctx.suggestion.facet.title), 1)
8129
8143
  ])) : createCommentVNode("", true)
8130
8144
  ]);
8131
8145
  };
@@ -8532,8 +8546,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8532
8546
  const _hoisted_1$11 = ["innerHTML"];
8533
8547
  const _hoisted_2$K = { key: 0 };
8534
8548
  const _hoisted_3$z = { key: 1 };
8535
- const _hoisted_4$o = { class: "lupa-search-box-custom-label" };
8536
- const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
8549
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
8550
+ const _hoisted_5$e = { class: "lupa-search-box-custom-text" };
8537
8551
  const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8538
8552
  __name: "SearchBoxProductCustom",
8539
8553
  props: {
@@ -8565,8 +8579,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8565
8579
  class: [className.value, "lupa-search-box-product-custom"]
8566
8580
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8567
8581
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
8568
- createBaseVNode("div", _hoisted_4$o, toDisplayString(label.value), 1),
8569
- createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
8582
+ createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
8583
+ createBaseVNode("div", _hoisted_5$e, toDisplayString(text.value), 1)
8570
8584
  ]))
8571
8585
  ], 16));
8572
8586
  };
@@ -8906,7 +8920,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8906
8920
  const _hoisted_1$_ = ["href"];
8907
8921
  const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
8908
8922
  const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
8909
- const _hoisted_4$n = {
8923
+ const _hoisted_4$p = {
8910
8924
  key: 0,
8911
8925
  class: "lupa-search-box-product-add-to-cart-section"
8912
8926
  };
@@ -8985,7 +8999,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8985
8999
  }, null, 8, ["item", "element", "labels", "link"]);
8986
9000
  }), 128))
8987
9001
  ]),
8988
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
9002
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
8989
9003
  createVNode(_sfc_main$13, {
8990
9004
  class: "lupa-search-box-product-element",
8991
9005
  item: _ctx.item,
@@ -9109,7 +9123,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9109
9123
  }
9110
9124
  }
9111
9125
  });
9112
- if (!link) {
9126
+ if (!link || eventType === "addToCart") {
9113
9127
  return;
9114
9128
  }
9115
9129
  emit2("product-click");
@@ -9218,6 +9232,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9218
9232
  };
9219
9233
  const _hoisted_2$H = ["data-cy"];
9220
9234
  const _hoisted_3$w = {
9235
+ key: 0,
9236
+ class: "lupa-panel-title"
9237
+ };
9238
+ const _hoisted_4$o = {
9221
9239
  key: 1,
9222
9240
  id: "lupa-search-box-panel"
9223
9241
  };
@@ -9255,16 +9273,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9255
9273
  const sdkOptions = computed(() => props.options.options);
9256
9274
  const searchBoxStore = useSearchBoxStore();
9257
9275
  const { suggestionResults, hasAnyResults, panelItemCounts } = storeToRefs(searchBoxStore);
9258
- const displayResults = computed(
9259
- () => {
9260
- var _a, _b;
9261
- return ((_a = props.inputValue) == null ? void 0 : _a.length) > 0 && ((_b = props.inputValue) == null ? void 0 : _b.length) >= props.options.minInputLength;
9262
- }
9263
- );
9276
+ const displayResults = computed(() => {
9277
+ var _a;
9278
+ return ((_a = props.inputValue) == null ? void 0 : _a.length) >= props.options.minInputLength;
9279
+ });
9264
9280
  const displayHistory = computed(
9265
9281
  () => {
9266
9282
  var _a;
9267
- return Boolean(props.options.history) && ((_a = props.inputValue) == null ? void 0 : _a.length) < 1;
9283
+ return Boolean(props.options.history) && ((_a = props.inputValue) == null ? void 0 : _a.length) < 1 && props.options.minInputLength > 0;
9268
9284
  }
9269
9285
  );
9270
9286
  const displayPanels = computed(
@@ -9341,6 +9357,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9341
9357
  const expandOnSinglePanel = computed(() => {
9342
9358
  return numberOfVisiblePanels.value === 1 && props.options.expandOnSinglePanel;
9343
9359
  });
9360
+ const showTopResultsPanelTitle = (queryKey) => {
9361
+ const panel = panelItemCounts.value.find((v) => v.queryKey === queryKey);
9362
+ return (panel == null ? void 0 : panel.count) > 0 && (panel == null ? void 0 : panel.input.length) < 1;
9363
+ };
9344
9364
  return (_ctx, _cache) => {
9345
9365
  var _a;
9346
9366
  return openBlock(), createElementBlock("div", {
@@ -9354,6 +9374,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9354
9374
  "data-cy": "lupa-main-panel"
9355
9375
  }, [
9356
9376
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
9377
+ var _a2, _b;
9357
9378
  return openBlock(), createElementBlock("div", {
9358
9379
  key: index,
9359
9380
  class: normalizeClass([
@@ -9362,8 +9383,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9362
9383
  ]),
9363
9384
  "data-cy": "lupa-panel-" + panel.type + "-index"
9364
9385
  }, [
9386
+ ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$w, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
9365
9387
  panel.queryKey ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
9366
- key: 0,
9388
+ key: 1,
9367
9389
  panel,
9368
9390
  options: sdkOptions.value,
9369
9391
  debounce: _ctx.options.debounce,
@@ -9394,7 +9416,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9394
9416
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
9395
9417
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
9396
9418
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
9397
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
9419
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
9398
9420
  createVNode(_sfc_main$1h, {
9399
9421
  options: _ctx.options.history,
9400
9422
  history: history.value,
@@ -9772,7 +9794,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9772
9794
  key: 1,
9773
9795
  "data-cy": "did-you-mean-label"
9774
9796
  };
9775
- const _hoisted_4$m = { key: 1 };
9797
+ const _hoisted_4$n = { key: 1 };
9776
9798
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9777
9799
  __name: "SearchResultsDidYouMean",
9778
9800
  props: {
@@ -9823,7 +9845,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9823
9845
  class: "lupa-did-you-mean lupa-highlighted-search-text",
9824
9846
  "data-cy": "did-you-mean-value",
9825
9847
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
9826
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(label) + " ", 1))
9848
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
9827
9849
  ]);
9828
9850
  }), 128))
9829
9851
  ])) : createCommentVNode("", true)
@@ -9873,7 +9895,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9873
9895
  key: 1,
9874
9896
  class: "lupa-results-total-count"
9875
9897
  };
9876
- const _hoisted_4$l = ["innerHTML"];
9898
+ const _hoisted_4$m = ["innerHTML"];
9877
9899
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
9878
9900
  __name: "SearchResultsTitle",
9879
9901
  props: {
@@ -9922,7 +9944,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9922
9944
  key: 2,
9923
9945
  class: "lupa-result-page-description-top",
9924
9946
  innerHTML: descriptionTop.value
9925
- }, null, 8, _hoisted_4$l)) : createCommentVNode("", true)
9947
+ }, null, 8, _hoisted_4$m)) : createCommentVNode("", true)
9926
9948
  ]);
9927
9949
  };
9928
9950
  }
@@ -9968,7 +9990,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9968
9990
  key: 0,
9969
9991
  class: "filter-values"
9970
9992
  };
9971
- const _hoisted_4$k = { class: "lupa-current-filter-list" };
9993
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
9972
9994
  const _sfc_main$V = /* @__PURE__ */ defineComponent({
9973
9995
  __name: "CurrentFilters",
9974
9996
  props: {
@@ -10034,7 +10056,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10034
10056
  }, null, 2)) : createCommentVNode("", true)
10035
10057
  ]),
10036
10058
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
10037
- createBaseVNode("div", _hoisted_4$k, [
10059
+ createBaseVNode("div", _hoisted_4$l, [
10038
10060
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
10039
10061
  return openBlock(), createBlock(_sfc_main$W, {
10040
10062
  key: filter.key + "_" + filter.value,
@@ -10102,8 +10124,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10102
10124
  };
10103
10125
  const _hoisted_2$A = { class: "lupa-category-back" };
10104
10126
  const _hoisted_3$r = ["href"];
10105
- const _hoisted_4$j = ["href"];
10106
- const _hoisted_5$c = { class: "lupa-child-category-list" };
10127
+ const _hoisted_4$k = ["href"];
10128
+ const _hoisted_5$d = { class: "lupa-child-category-list" };
10107
10129
  const _sfc_main$T = /* @__PURE__ */ defineComponent({
10108
10130
  __name: "CategoryFilter",
10109
10131
  props: {
@@ -10207,9 +10229,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10207
10229
  href: parentUrlLink.value,
10208
10230
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
10209
10231
  onClick: handleNavigationParent
10210
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$j)
10232
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
10211
10233
  ], 2),
10212
- createBaseVNode("div", _hoisted_5$c, [
10234
+ createBaseVNode("div", _hoisted_5$d, [
10213
10235
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10214
10236
  return openBlock(), createBlock(_sfc_main$U, {
10215
10237
  key: getCategoryKey(child),
@@ -10228,8 +10250,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10228
10250
  };
10229
10251
  const _hoisted_2$z = ["placeholder"];
10230
10252
  const _hoisted_3$q = { class: "lupa-terms-list" };
10231
- const _hoisted_4$i = ["onClick"];
10232
- const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
10253
+ const _hoisted_4$j = ["onClick"];
10254
+ const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
10233
10255
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
10234
10256
  const _hoisted_7$6 = { class: "lupa-term-label" };
10235
10257
  const _hoisted_8$1 = {
@@ -10325,7 +10347,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10325
10347
  key: item.title,
10326
10348
  onClick: ($event) => handleFacetClick(item)
10327
10349
  }, [
10328
- createBaseVNode("div", _hoisted_5$b, [
10350
+ createBaseVNode("div", _hoisted_5$c, [
10329
10351
  createBaseVNode("span", {
10330
10352
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
10331
10353
  }, null, 2)
@@ -10334,7 +10356,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10334
10356
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
10335
10357
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10336
10358
  ])
10337
- ], 10, _hoisted_4$i);
10359
+ ], 10, _hoisted_4$j);
10338
10360
  }), 128))
10339
10361
  ]),
10340
10362
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -11334,12 +11356,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11334
11356
  key: 1,
11335
11357
  class: "lupa-stats-facet-summary-input"
11336
11358
  };
11337
- const _hoisted_4$h = {
11359
+ const _hoisted_4$i = {
11338
11360
  key: 0,
11339
11361
  class: "lupa-stats-range-label"
11340
11362
  };
11341
- const _hoisted_5$a = { class: "lupa-stats-from" };
11342
- const _hoisted_6$7 = ["max", "min", "pattern"];
11363
+ const _hoisted_5$b = { class: "lupa-stats-from" };
11364
+ const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
11343
11365
  const _hoisted_7$5 = { key: 0 };
11344
11366
  const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
11345
11367
  const _hoisted_9 = {
@@ -11347,7 +11369,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11347
11369
  class: "lupa-stats-range-label"
11348
11370
  };
11349
11371
  const _hoisted_10 = { class: "lupa-stats-to" };
11350
- const _hoisted_11 = ["max", "min", "pattern"];
11372
+ const _hoisted_11 = ["max", "min", "pattern", "aria-label"];
11351
11373
  const _hoisted_12 = { key: 0 };
11352
11374
  const _hoisted_13 = {
11353
11375
  key: 2,
@@ -11475,6 +11497,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11475
11497
  const sliderInputFormat = computed(() => {
11476
11498
  return isPrice.value ? `[0-9]+([${separator.value}][0-9]{1,2})?` : void 0;
11477
11499
  });
11500
+ const sliderAria = computed(() => {
11501
+ var _a, _b, _c, _d, _e, _f;
11502
+ return {
11503
+ "aria-label": ((_b = (_a = props.options.stats) == null ? void 0 : _a.labels) == null ? void 0 : _b.sliderDotAriaLabel) ? `${(_d = (_c = props.options.stats) == null ? void 0 : _c.labels) == null ? void 0 : _d.sliderDotAriaLabel} - ${(_e = props.facet) == null ? void 0 : _e.label}` : `Range slider control dot for ${(_f = props.facet) == null ? void 0 : _f.label}`
11504
+ };
11505
+ });
11506
+ const ariaLabelFrom = computed(() => {
11507
+ var _a, _b, _c, _d, _e;
11508
+ return `${(_b = (_a = props.facet) == null ? void 0 : _a.label) != null ? _b : ""} ${(_e = (_d = (_c = props.options.stats) == null ? void 0 : _c.labels) == null ? void 0 : _d.ariaFrom) != null ? _e : rangeLabelFrom.value}`;
11509
+ });
11510
+ const ariaLabelTo = computed(() => {
11511
+ var _a, _b, _c, _d, _e;
11512
+ return `${(_b = (_a = props.facet) == null ? void 0 : _a.label) != null ? _b : ""} ${(_e = (_d = (_c = props.options.stats) == null ? void 0 : _c.labels) == null ? void 0 : _d.ariaTo) != null ? _e : rangeLabelTo.value}`;
11513
+ });
11478
11514
  watch(currentMinValue, () => {
11479
11515
  innerSliderRange.value = [];
11480
11516
  });
@@ -11504,15 +11540,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11504
11540
  return openBlock(), createElementBlock("div", _hoisted_1$O, [
11505
11541
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
11506
11542
  createBaseVNode("div", null, [
11507
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11508
- createBaseVNode("div", _hoisted_5$a, [
11543
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11544
+ createBaseVNode("div", _hoisted_5$b, [
11509
11545
  withDirectives(createBaseVNode("input", {
11510
11546
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
11511
11547
  type: "text",
11512
11548
  maxlength: "8",
11513
11549
  max: facetMax.value,
11514
11550
  min: facetMin.value,
11515
- pattern: sliderInputFormat.value
11551
+ pattern: sliderInputFormat.value,
11552
+ "aria-label": ariaLabelFrom.value
11516
11553
  }, null, 8, _hoisted_6$7), [
11517
11554
  [
11518
11555
  vModelText,
@@ -11534,7 +11571,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11534
11571
  maxlength: "8",
11535
11572
  max: facetMax.value,
11536
11573
  min: facetMin.value,
11537
- pattern: sliderInputFormat.value
11574
+ pattern: sliderInputFormat.value,
11575
+ "aria-label": ariaLabelTo.value
11538
11576
  }, null, 8, _hoisted_11), [
11539
11577
  [
11540
11578
  vModelText,
@@ -11555,11 +11593,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11555
11593
  max: facetMax.value,
11556
11594
  lazy: true,
11557
11595
  step: interval.value,
11596
+ aria: sliderAria.value,
11558
11597
  modelValue: sliderRange.value,
11559
11598
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => sliderRange.value = $event),
11560
11599
  onSlide: handleDragging,
11561
11600
  onEnd: handleChange
11562
- }, null, 8, ["min", "max", "step", "modelValue"])
11601
+ }, null, 8, ["min", "max", "step", "aria", "modelValue"])
11563
11602
  ])) : createCommentVNode("", true)
11564
11603
  ]);
11565
11604
  };
@@ -11568,11 +11607,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11568
11607
  const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
11569
11608
  const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
11570
11609
  const _hoisted_3$o = { class: "lupa-term-label" };
11571
- const _hoisted_4$g = {
11610
+ const _hoisted_4$h = {
11572
11611
  key: 0,
11573
11612
  class: "lupa-term-count"
11574
11613
  };
11575
- const _hoisted_5$9 = {
11614
+ const _hoisted_5$a = {
11576
11615
  key: 0,
11577
11616
  class: "lupa-facet-level"
11578
11617
  };
@@ -11629,10 +11668,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11629
11668
  ]),
11630
11669
  createBaseVNode("div", _hoisted_2$x, [
11631
11670
  createBaseVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11632
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11671
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11633
11672
  ])
11634
11673
  ]),
11635
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
11674
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
11636
11675
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
11637
11676
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
11638
11677
  key: itemChild.title,
@@ -12065,8 +12104,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12065
12104
  };
12066
12105
  const _hoisted_2$t = ["onClick"];
12067
12106
  const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
12068
- const _hoisted_4$f = { class: "lupa-sidebar-top" };
12069
- const _hoisted_5$8 = { class: "lupa-sidebar-title" };
12107
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
12108
+ const _hoisted_5$9 = { class: "lupa-sidebar-title" };
12070
12109
  const _hoisted_6$6 = {
12071
12110
  key: 0,
12072
12111
  class: "lupa-sidebar-filter-count"
@@ -12104,8 +12143,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12104
12143
  onClick: withModifiers(handleMobileToggle, ["stop"])
12105
12144
  }, null, 8, _hoisted_2$t),
12106
12145
  createBaseVNode("div", _hoisted_3$m, [
12107
- createBaseVNode("div", _hoisted_4$f, [
12108
- createBaseVNode("div", _hoisted_5$8, [
12146
+ createBaseVNode("div", _hoisted_4$g, [
12147
+ createBaseVNode("div", _hoisted_5$9, [
12109
12148
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
12110
12149
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12111
12150
  ]),
@@ -12131,7 +12170,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12131
12170
  key: 1,
12132
12171
  class: "lupa-search-results-breadcrumb-text"
12133
12172
  };
12134
- const _hoisted_4$e = { key: 2 };
12173
+ const _hoisted_4$f = { key: 2 };
12135
12174
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
12136
12175
  __name: "SearchResultsBreadcrumbs",
12137
12176
  props: {
@@ -12172,7 +12211,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12172
12211
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
12173
12212
  }
12174
12213
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
12175
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
12214
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
12176
12215
  ]);
12177
12216
  }), 128))
12178
12217
  ]);
@@ -12273,7 +12312,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12273
12312
  class: "lupa-page-number-separator"
12274
12313
  };
12275
12314
  const _hoisted_3$k = ["onClick"];
12276
- const _hoisted_4$d = {
12315
+ const _hoisted_4$e = {
12277
12316
  key: 0,
12278
12317
  class: "lupa-page-number-separator"
12279
12318
  };
@@ -12364,7 +12403,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12364
12403
  }, toDisplayString(page), 11, _hoisted_3$k);
12365
12404
  }), 128)),
12366
12405
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
12367
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
12406
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
12368
12407
  createBaseVNode("div", {
12369
12408
  class: "lupa-page-number lupa-page-number-last",
12370
12409
  onClick: _cache[2] || (_cache[2] = () => {
@@ -12389,6 +12428,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12389
12428
  };
12390
12429
  const _hoisted_2$q = { id: "lupa-select" };
12391
12430
  const _hoisted_3$j = { class: "lupa-select-label" };
12431
+ const _hoisted_4$d = ["aria-label"];
12392
12432
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
12393
12433
  __name: "SearchResultsPageSize",
12394
12434
  props: {
@@ -12411,6 +12451,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12411
12451
  createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
12412
12452
  createBaseVNode("select", {
12413
12453
  class: "lupa-select-dropdown",
12454
+ "aria-label": _ctx.label,
12414
12455
  "data-cy": "lupa-page-size-select-dropdown",
12415
12456
  onChange: handleSelect,
12416
12457
  ref_key: "select",
@@ -12419,7 +12460,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12419
12460
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
12420
12461
  return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
12421
12462
  }), 128))
12422
- ], 544)
12463
+ ], 40, _hoisted_4$d)
12423
12464
  ])
12424
12465
  ]);
12425
12466
  };
@@ -12431,7 +12472,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12431
12472
  };
12432
12473
  const _hoisted_2$p = { id: "lupa-select" };
12433
12474
  const _hoisted_3$i = { class: "lupa-select-label" };
12434
- const _hoisted_4$c = ["value"];
12475
+ const _hoisted_4$c = ["aria-label"];
12476
+ const _hoisted_5$8 = ["value"];
12435
12477
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
12436
12478
  __name: "SearchResultsSort",
12437
12479
  props: {
@@ -12485,6 +12527,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12485
12527
  createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
12486
12528
  withDirectives(createBaseVNode("select", {
12487
12529
  class: "lupa-select-dropdown",
12530
+ "aria-label": _ctx.options.label,
12488
12531
  "data-cy": "lupa-sort-select-dropdown",
12489
12532
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
12490
12533
  onChange: handleSelect,
@@ -12494,9 +12537,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12494
12537
  return openBlock(), createElementBlock("option", {
12495
12538
  key: option.key,
12496
12539
  value: option.key
12497
- }, toDisplayString(option.label), 9, _hoisted_4$c);
12540
+ }, toDisplayString(option.label), 9, _hoisted_5$8);
12498
12541
  }), 128))
12499
- ], 544), [
12542
+ ], 40, _hoisted_4$c), [
12500
12543
  [vModelSelect, selectedKey.value]
12501
12544
  ])
12502
12545
  ])