@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.
@@ -6273,11 +6273,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6273
6273
  return { success: false, errors };
6274
6274
  });
6275
6275
  const track$1 = (queryKey, event, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6276
- const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
6277
- if (res.status < 400) {
6276
+ try {
6277
+ const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}events`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(Object.assign({ queryKey }, event)) }));
6278
+ if (res.status < 400) {
6279
+ return { success: false };
6280
+ }
6281
+ return res.json();
6282
+ } catch (e) {
6278
6283
  return { success: false };
6279
6284
  }
6280
- return res.json();
6281
6285
  });
6282
6286
  const loadRedirectionRules = (queryKey, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6283
6287
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}redirections/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
@@ -7637,6 +7641,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7637
7641
  const suggestionResults = ref({});
7638
7642
  const highlightedIndex = ref(-1);
7639
7643
  const inputValue = ref("");
7644
+ const resultInputValue = ref("");
7640
7645
  const historyStore = useHistoryStore();
7641
7646
  const resultsVisible = computed(() => {
7642
7647
  var _a;
@@ -7649,13 +7654,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7649
7654
  return {
7650
7655
  queryKey: p2.queryKey,
7651
7656
  count: (_b = (_a = suggestionResults.value[p2.queryKey]) == null ? void 0 : _a.length) != null ? _b : 0,
7652
- panel: p2
7657
+ panel: p2,
7658
+ input: resultInputValue.value
7653
7659
  };
7654
7660
  }
7655
7661
  return {
7656
7662
  queryKey: p2.queryKey,
7657
7663
  count: (_e = (_d = (_c = docResults.value[p2.queryKey]) == null ? void 0 : _c.items) == null ? void 0 : _d.length) != null ? _e : 0,
7658
- panel: p2
7664
+ panel: p2,
7665
+ input: resultInputValue.value
7659
7666
  };
7660
7667
  })
7661
7668
  );
@@ -7715,6 +7722,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7715
7722
  [queryKey]: flattenSuggestions(result.items, (_a = publicQuery.searchText) != null ? _a : "")
7716
7723
  });
7717
7724
  inputValue.value = publicQuery.searchText;
7725
+ resultInputValue.value = publicQuery.searchText;
7718
7726
  emitSearchResultsCallback();
7719
7727
  return {
7720
7728
  suggestions: result.items
@@ -7802,8 +7810,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7802
7810
  const _hoisted_1$1c = { id: "lupa-search-box-input-container" };
7803
7811
  const _hoisted_2$P = { class: "lupa-input-clear" };
7804
7812
  const _hoisted_3$B = { id: "lupa-search-box-input" };
7805
- const _hoisted_4$q = ["value"];
7806
- const _hoisted_5$f = ["placeholder"];
7813
+ const _hoisted_4$s = ["value"];
7814
+ const _hoisted_5$g = ["aria-label", "placeholder"];
7807
7815
  const _hoisted_6$9 = {
7808
7816
  key: 0,
7809
7817
  class: "lupa-close-label"
@@ -7852,6 +7860,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7852
7860
  var _a;
7853
7861
  return __spreadValues2({}, (_a = props.options.inputAttributes) != null ? _a : {});
7854
7862
  });
7863
+ const ariaLabel = computed(() => {
7864
+ var _a;
7865
+ return (_a = labels.value.searchInputAriaLabel) != null ? _a : "Search input";
7866
+ });
7855
7867
  watch(suggestedValue, () => {
7856
7868
  if (suggestedValue.value.override) {
7857
7869
  input.value = suggestedValue.value.item.suggestion;
@@ -7895,22 +7907,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7895
7907
  createBaseVNode("div", _hoisted_3$B, [
7896
7908
  createBaseVNode("input", {
7897
7909
  class: "lupa-hint",
7910
+ "aria-hidden": "true",
7898
7911
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
7899
7912
  disabled: ""
7900
- }, null, 8, _hoisted_4$q),
7913
+ }, null, 8, _hoisted_4$s),
7901
7914
  withDirectives(createBaseVNode("input", mergeProps({
7902
7915
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
7903
7916
  }, inputAttributes.value, {
7904
7917
  ref_key: "mainInput",
7905
7918
  ref: mainInput,
7906
7919
  autocomplete: "off",
7920
+ "aria-label": ariaLabel.value,
7907
7921
  class: "lupa-search-box-input-field",
7908
7922
  "data-cy": "lupa-search-box-input-field",
7909
7923
  type: "text",
7910
7924
  placeholder: labels.value.placeholder,
7911
7925
  onInput: handleInput,
7912
7926
  onFocus: handleFocus
7913
- }), null, 16, _hoisted_5$f), [
7927
+ }), null, 16, _hoisted_5$g), [
7914
7928
  [vModelText, inputValue.value]
7915
7929
  ])
7916
7930
  ]),
@@ -8076,11 +8090,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8076
8090
  class: "lupa-suggestion-facet",
8077
8091
  "data-cy": "lupa-suggestion-facet"
8078
8092
  };
8079
- const _hoisted_4$p = {
8093
+ const _hoisted_4$r = {
8080
8094
  class: "lupa-suggestion-facet-label",
8081
8095
  "data-cy": "lupa-suggestion-facet-label"
8082
8096
  };
8083
- const _hoisted_5$e = {
8097
+ const _hoisted_5$f = {
8084
8098
  class: "lupa-suggestion-facet-value",
8085
8099
  "data-cy": "lupa-suggestion-facet-value"
8086
8100
  };
@@ -8122,8 +8136,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8122
8136
  innerHTML: _ctx.suggestion.displayHighlight
8123
8137
  }, null, 8, _hoisted_1$18)) : (openBlock(), createElementBlock("div", _hoisted_2$N, toDisplayString(_ctx.suggestion.display), 1)),
8124
8138
  _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8125
- createBaseVNode("span", _hoisted_4$p, toDisplayString(facetLabel.value), 1),
8126
- createBaseVNode("span", _hoisted_5$e, toDisplayString(_ctx.suggestion.facet.title), 1)
8139
+ createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8140
+ createBaseVNode("span", _hoisted_5$f, toDisplayString(_ctx.suggestion.facet.title), 1)
8127
8141
  ])) : createCommentVNode("", true)
8128
8142
  ]);
8129
8143
  };
@@ -8530,8 +8544,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8530
8544
  const _hoisted_1$11 = ["innerHTML"];
8531
8545
  const _hoisted_2$K = { key: 0 };
8532
8546
  const _hoisted_3$z = { key: 1 };
8533
- const _hoisted_4$o = { class: "lupa-search-box-custom-label" };
8534
- const _hoisted_5$d = { class: "lupa-search-box-custom-text" };
8547
+ const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
8548
+ const _hoisted_5$e = { class: "lupa-search-box-custom-text" };
8535
8549
  const _sfc_main$16 = /* @__PURE__ */ defineComponent({
8536
8550
  __name: "SearchBoxProductCustom",
8537
8551
  props: {
@@ -8563,8 +8577,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8563
8577
  class: [className.value, "lupa-search-box-product-custom"]
8564
8578
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
8565
8579
  !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
8566
- createBaseVNode("div", _hoisted_4$o, toDisplayString(label.value), 1),
8567
- createBaseVNode("div", _hoisted_5$d, toDisplayString(text.value), 1)
8580
+ createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
8581
+ createBaseVNode("div", _hoisted_5$e, toDisplayString(text.value), 1)
8568
8582
  ]))
8569
8583
  ], 16));
8570
8584
  };
@@ -8904,7 +8918,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8904
8918
  const _hoisted_1$_ = ["href"];
8905
8919
  const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
8906
8920
  const _hoisted_3$x = { class: "lupa-search-box-product-details-section" };
8907
- const _hoisted_4$n = {
8921
+ const _hoisted_4$p = {
8908
8922
  key: 0,
8909
8923
  class: "lupa-search-box-product-add-to-cart-section"
8910
8924
  };
@@ -8983,7 +8997,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8983
8997
  }, null, 8, ["item", "element", "labels", "link"]);
8984
8998
  }), 128))
8985
8999
  ]),
8986
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
9000
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
8987
9001
  createVNode(_sfc_main$13, {
8988
9002
  class: "lupa-search-box-product-element",
8989
9003
  item: _ctx.item,
@@ -9107,7 +9121,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9107
9121
  }
9108
9122
  }
9109
9123
  });
9110
- if (!link) {
9124
+ if (!link || eventType === "addToCart") {
9111
9125
  return;
9112
9126
  }
9113
9127
  emit2("product-click");
@@ -9216,6 +9230,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9216
9230
  };
9217
9231
  const _hoisted_2$H = ["data-cy"];
9218
9232
  const _hoisted_3$w = {
9233
+ key: 0,
9234
+ class: "lupa-panel-title"
9235
+ };
9236
+ const _hoisted_4$o = {
9219
9237
  key: 1,
9220
9238
  id: "lupa-search-box-panel"
9221
9239
  };
@@ -9253,16 +9271,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9253
9271
  const sdkOptions = computed(() => props.options.options);
9254
9272
  const searchBoxStore = useSearchBoxStore();
9255
9273
  const { suggestionResults, hasAnyResults, panelItemCounts } = storeToRefs(searchBoxStore);
9256
- const displayResults = computed(
9257
- () => {
9258
- var _a, _b;
9259
- return ((_a = props.inputValue) == null ? void 0 : _a.length) > 0 && ((_b = props.inputValue) == null ? void 0 : _b.length) >= props.options.minInputLength;
9260
- }
9261
- );
9274
+ const displayResults = computed(() => {
9275
+ var _a;
9276
+ return ((_a = props.inputValue) == null ? void 0 : _a.length) >= props.options.minInputLength;
9277
+ });
9262
9278
  const displayHistory = computed(
9263
9279
  () => {
9264
9280
  var _a;
9265
- return Boolean(props.options.history) && ((_a = props.inputValue) == null ? void 0 : _a.length) < 1;
9281
+ return Boolean(props.options.history) && ((_a = props.inputValue) == null ? void 0 : _a.length) < 1 && props.options.minInputLength > 0;
9266
9282
  }
9267
9283
  );
9268
9284
  const displayPanels = computed(
@@ -9339,6 +9355,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9339
9355
  const expandOnSinglePanel = computed(() => {
9340
9356
  return numberOfVisiblePanels.value === 1 && props.options.expandOnSinglePanel;
9341
9357
  });
9358
+ const showTopResultsPanelTitle = (queryKey) => {
9359
+ const panel = panelItemCounts.value.find((v) => v.queryKey === queryKey);
9360
+ return (panel == null ? void 0 : panel.count) > 0 && (panel == null ? void 0 : panel.input.length) < 1;
9361
+ };
9342
9362
  return (_ctx, _cache) => {
9343
9363
  var _a;
9344
9364
  return openBlock(), createElementBlock("div", {
@@ -9352,6 +9372,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9352
9372
  "data-cy": "lupa-main-panel"
9353
9373
  }, [
9354
9374
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayPanels.value, (panel, index) => {
9375
+ var _a2, _b;
9355
9376
  return openBlock(), createElementBlock("div", {
9356
9377
  key: index,
9357
9378
  class: normalizeClass([
@@ -9360,8 +9381,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9360
9381
  ]),
9361
9382
  "data-cy": "lupa-panel-" + panel.type + "-index"
9362
9383
  }, [
9384
+ ((_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),
9363
9385
  panel.queryKey ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
9364
- key: 0,
9386
+ key: 1,
9365
9387
  panel,
9366
9388
  options: sdkOptions.value,
9367
9389
  debounce: _ctx.options.debounce,
@@ -9392,7 +9414,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9392
9414
  showTotalCount: (_a = _ctx.options.showTotalCount) != null ? _a : false,
9393
9415
  onGoToResults: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("go-to-results"))
9394
9416
  }, null, 8, ["labels", "showTotalCount"])) : createCommentVNode("", true)
9395
- ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_3$w, [
9417
+ ])) : displayHistory.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
9396
9418
  createVNode(_sfc_main$1h, {
9397
9419
  options: _ctx.options.history,
9398
9420
  history: history.value,
@@ -9770,7 +9792,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9770
9792
  key: 1,
9771
9793
  "data-cy": "did-you-mean-label"
9772
9794
  };
9773
- const _hoisted_4$m = { key: 1 };
9795
+ const _hoisted_4$n = { key: 1 };
9774
9796
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9775
9797
  __name: "SearchResultsDidYouMean",
9776
9798
  props: {
@@ -9821,7 +9843,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9821
9843
  class: "lupa-did-you-mean lupa-highlighted-search-text",
9822
9844
  "data-cy": "did-you-mean-value",
9823
9845
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
9824
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(label) + " ", 1))
9846
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
9825
9847
  ]);
9826
9848
  }), 128))
9827
9849
  ])) : createCommentVNode("", true)
@@ -9871,7 +9893,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9871
9893
  key: 1,
9872
9894
  class: "lupa-results-total-count"
9873
9895
  };
9874
- const _hoisted_4$l = ["innerHTML"];
9896
+ const _hoisted_4$m = ["innerHTML"];
9875
9897
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
9876
9898
  __name: "SearchResultsTitle",
9877
9899
  props: {
@@ -9920,7 +9942,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9920
9942
  key: 2,
9921
9943
  class: "lupa-result-page-description-top",
9922
9944
  innerHTML: descriptionTop.value
9923
- }, null, 8, _hoisted_4$l)) : createCommentVNode("", true)
9945
+ }, null, 8, _hoisted_4$m)) : createCommentVNode("", true)
9924
9946
  ]);
9925
9947
  };
9926
9948
  }
@@ -9966,7 +9988,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9966
9988
  key: 0,
9967
9989
  class: "filter-values"
9968
9990
  };
9969
- const _hoisted_4$k = { class: "lupa-current-filter-list" };
9991
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
9970
9992
  const _sfc_main$V = /* @__PURE__ */ defineComponent({
9971
9993
  __name: "CurrentFilters",
9972
9994
  props: {
@@ -10032,7 +10054,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10032
10054
  }, null, 2)) : createCommentVNode("", true)
10033
10055
  ]),
10034
10056
  !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
10035
- createBaseVNode("div", _hoisted_4$k, [
10057
+ createBaseVNode("div", _hoisted_4$l, [
10036
10058
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(displayFilters), (filter) => {
10037
10059
  return openBlock(), createBlock(_sfc_main$W, {
10038
10060
  key: filter.key + "_" + filter.value,
@@ -10100,8 +10122,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10100
10122
  };
10101
10123
  const _hoisted_2$A = { class: "lupa-category-back" };
10102
10124
  const _hoisted_3$r = ["href"];
10103
- const _hoisted_4$j = ["href"];
10104
- const _hoisted_5$c = { class: "lupa-child-category-list" };
10125
+ const _hoisted_4$k = ["href"];
10126
+ const _hoisted_5$d = { class: "lupa-child-category-list" };
10105
10127
  const _sfc_main$T = /* @__PURE__ */ defineComponent({
10106
10128
  __name: "CategoryFilter",
10107
10129
  props: {
@@ -10205,9 +10227,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10205
10227
  href: parentUrlLink.value,
10206
10228
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
10207
10229
  onClick: handleNavigationParent
10208
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$j)
10230
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
10209
10231
  ], 2),
10210
- createBaseVNode("div", _hoisted_5$c, [
10232
+ createBaseVNode("div", _hoisted_5$d, [
10211
10233
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
10212
10234
  return openBlock(), createBlock(_sfc_main$U, {
10213
10235
  key: getCategoryKey(child),
@@ -10226,8 +10248,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10226
10248
  };
10227
10249
  const _hoisted_2$z = ["placeholder"];
10228
10250
  const _hoisted_3$q = { class: "lupa-terms-list" };
10229
- const _hoisted_4$i = ["onClick"];
10230
- const _hoisted_5$b = { class: "lupa-term-checkbox-wrapper" };
10251
+ const _hoisted_4$j = ["onClick"];
10252
+ const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
10231
10253
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
10232
10254
  const _hoisted_7$6 = { class: "lupa-term-label" };
10233
10255
  const _hoisted_8$1 = {
@@ -10323,7 +10345,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10323
10345
  key: item.title,
10324
10346
  onClick: ($event) => handleFacetClick(item)
10325
10347
  }, [
10326
- createBaseVNode("div", _hoisted_5$b, [
10348
+ createBaseVNode("div", _hoisted_5$c, [
10327
10349
  createBaseVNode("span", {
10328
10350
  class: normalizeClass(["lupa-term-checkbox", { checked: isChecked(item) }])
10329
10351
  }, null, 2)
@@ -10332,7 +10354,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10332
10354
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
10333
10355
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$1, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
10334
10356
  ])
10335
- ], 10, _hoisted_4$i);
10357
+ ], 10, _hoisted_4$j);
10336
10358
  }), 128))
10337
10359
  ]),
10338
10360
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -11332,12 +11354,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11332
11354
  key: 1,
11333
11355
  class: "lupa-stats-facet-summary-input"
11334
11356
  };
11335
- const _hoisted_4$h = {
11357
+ const _hoisted_4$i = {
11336
11358
  key: 0,
11337
11359
  class: "lupa-stats-range-label"
11338
11360
  };
11339
- const _hoisted_5$a = { class: "lupa-stats-from" };
11340
- const _hoisted_6$7 = ["max", "min", "pattern"];
11361
+ const _hoisted_5$b = { class: "lupa-stats-from" };
11362
+ const _hoisted_6$7 = ["max", "min", "pattern", "aria-label"];
11341
11363
  const _hoisted_7$5 = { key: 0 };
11342
11364
  const _hoisted_8 = /* @__PURE__ */ createBaseVNode("div", { class: "lupa-stats-separator" }, null, -1);
11343
11365
  const _hoisted_9 = {
@@ -11345,7 +11367,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11345
11367
  class: "lupa-stats-range-label"
11346
11368
  };
11347
11369
  const _hoisted_10 = { class: "lupa-stats-to" };
11348
- const _hoisted_11 = ["max", "min", "pattern"];
11370
+ const _hoisted_11 = ["max", "min", "pattern", "aria-label"];
11349
11371
  const _hoisted_12 = { key: 0 };
11350
11372
  const _hoisted_13 = {
11351
11373
  key: 2,
@@ -11473,6 +11495,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11473
11495
  const sliderInputFormat = computed(() => {
11474
11496
  return isPrice.value ? `[0-9]+([${separator.value}][0-9]{1,2})?` : void 0;
11475
11497
  });
11498
+ const sliderAria = computed(() => {
11499
+ var _a, _b, _c, _d, _e, _f;
11500
+ return {
11501
+ "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}`
11502
+ };
11503
+ });
11504
+ const ariaLabelFrom = computed(() => {
11505
+ var _a, _b, _c, _d, _e;
11506
+ 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}`;
11507
+ });
11508
+ const ariaLabelTo = computed(() => {
11509
+ var _a, _b, _c, _d, _e;
11510
+ 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}`;
11511
+ });
11476
11512
  watch(currentMinValue, () => {
11477
11513
  innerSliderRange.value = [];
11478
11514
  });
@@ -11502,15 +11538,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11502
11538
  return openBlock(), createElementBlock("div", _hoisted_1$O, [
11503
11539
  !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$p, [
11504
11540
  createBaseVNode("div", null, [
11505
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11506
- createBaseVNode("div", _hoisted_5$a, [
11541
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
11542
+ createBaseVNode("div", _hoisted_5$b, [
11507
11543
  withDirectives(createBaseVNode("input", {
11508
11544
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
11509
11545
  type: "text",
11510
11546
  maxlength: "8",
11511
11547
  max: facetMax.value,
11512
11548
  min: facetMin.value,
11513
- pattern: sliderInputFormat.value
11549
+ pattern: sliderInputFormat.value,
11550
+ "aria-label": ariaLabelFrom.value
11514
11551
  }, null, 8, _hoisted_6$7), [
11515
11552
  [
11516
11553
  vModelText,
@@ -11532,7 +11569,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11532
11569
  maxlength: "8",
11533
11570
  max: facetMax.value,
11534
11571
  min: facetMin.value,
11535
- pattern: sliderInputFormat.value
11572
+ pattern: sliderInputFormat.value,
11573
+ "aria-label": ariaLabelTo.value
11536
11574
  }, null, 8, _hoisted_11), [
11537
11575
  [
11538
11576
  vModelText,
@@ -11553,11 +11591,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11553
11591
  max: facetMax.value,
11554
11592
  lazy: true,
11555
11593
  step: interval.value,
11594
+ aria: sliderAria.value,
11556
11595
  modelValue: sliderRange.value,
11557
11596
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => sliderRange.value = $event),
11558
11597
  onSlide: handleDragging,
11559
11598
  onEnd: handleChange
11560
- }, null, 8, ["min", "max", "step", "modelValue"])
11599
+ }, null, 8, ["min", "max", "step", "aria", "modelValue"])
11561
11600
  ])) : createCommentVNode("", true)
11562
11601
  ]);
11563
11602
  };
@@ -11566,11 +11605,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11566
11605
  const _hoisted_1$N = { class: "lupa-term-checkbox-wrapper" };
11567
11606
  const _hoisted_2$x = { class: "lupa-term-checkbox-label" };
11568
11607
  const _hoisted_3$o = { class: "lupa-term-label" };
11569
- const _hoisted_4$g = {
11608
+ const _hoisted_4$h = {
11570
11609
  key: 0,
11571
11610
  class: "lupa-term-count"
11572
11611
  };
11573
- const _hoisted_5$9 = {
11612
+ const _hoisted_5$a = {
11574
11613
  key: 0,
11575
11614
  class: "lupa-facet-level"
11576
11615
  };
@@ -11627,10 +11666,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11627
11666
  ]),
11628
11667
  createBaseVNode("div", _hoisted_2$x, [
11629
11668
  createBaseVNode("span", _hoisted_3$o, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
11630
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11669
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
11631
11670
  ])
11632
11671
  ]),
11633
- showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$9, [
11672
+ showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
11634
11673
  (openBlock(true), createElementBlock(Fragment, null, renderList(treeItem.value.children, (itemChild) => {
11635
11674
  return openBlock(), createBlock(_component_HierarchyFacetLevel, {
11636
11675
  key: itemChild.title,
@@ -12063,8 +12102,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12063
12102
  };
12064
12103
  const _hoisted_2$t = ["onClick"];
12065
12104
  const _hoisted_3$m = { class: "lupa-mobile-sidebar-content" };
12066
- const _hoisted_4$f = { class: "lupa-sidebar-top" };
12067
- const _hoisted_5$8 = { class: "lupa-sidebar-title" };
12105
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
12106
+ const _hoisted_5$9 = { class: "lupa-sidebar-title" };
12068
12107
  const _hoisted_6$6 = {
12069
12108
  key: 0,
12070
12109
  class: "lupa-sidebar-filter-count"
@@ -12102,8 +12141,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12102
12141
  onClick: withModifiers(handleMobileToggle, ["stop"])
12103
12142
  }, null, 8, _hoisted_2$t),
12104
12143
  createBaseVNode("div", _hoisted_3$m, [
12105
- createBaseVNode("div", _hoisted_4$f, [
12106
- createBaseVNode("div", _hoisted_5$8, [
12144
+ createBaseVNode("div", _hoisted_4$g, [
12145
+ createBaseVNode("div", _hoisted_5$9, [
12107
12146
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
12108
12147
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
12109
12148
  ]),
@@ -12129,7 +12168,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12129
12168
  key: 1,
12130
12169
  class: "lupa-search-results-breadcrumb-text"
12131
12170
  };
12132
- const _hoisted_4$e = { key: 2 };
12171
+ const _hoisted_4$f = { key: 2 };
12133
12172
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
12134
12173
  __name: "SearchResultsBreadcrumbs",
12135
12174
  props: {
@@ -12170,7 +12209,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12170
12209
  return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
12171
12210
  }
12172
12211
  }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$s)) : (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString(getLabel(breadcrumb.label)), 1)),
12173
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
12212
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
12174
12213
  ]);
12175
12214
  }), 128))
12176
12215
  ]);
@@ -12271,7 +12310,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12271
12310
  class: "lupa-page-number-separator"
12272
12311
  };
12273
12312
  const _hoisted_3$k = ["onClick"];
12274
- const _hoisted_4$d = {
12313
+ const _hoisted_4$e = {
12275
12314
  key: 0,
12276
12315
  class: "lupa-page-number-separator"
12277
12316
  };
@@ -12362,7 +12401,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12362
12401
  }, toDisplayString(page), 11, _hoisted_3$k);
12363
12402
  }), 128)),
12364
12403
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
12365
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
12404
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
12366
12405
  createBaseVNode("div", {
12367
12406
  class: "lupa-page-number lupa-page-number-last",
12368
12407
  onClick: _cache[2] || (_cache[2] = () => {
@@ -12387,6 +12426,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12387
12426
  };
12388
12427
  const _hoisted_2$q = { id: "lupa-select" };
12389
12428
  const _hoisted_3$j = { class: "lupa-select-label" };
12429
+ const _hoisted_4$d = ["aria-label"];
12390
12430
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
12391
12431
  __name: "SearchResultsPageSize",
12392
12432
  props: {
@@ -12409,6 +12449,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12409
12449
  createBaseVNode("label", _hoisted_3$j, toDisplayString(_ctx.label), 1),
12410
12450
  createBaseVNode("select", {
12411
12451
  class: "lupa-select-dropdown",
12452
+ "aria-label": _ctx.label,
12412
12453
  "data-cy": "lupa-page-size-select-dropdown",
12413
12454
  onChange: handleSelect,
12414
12455
  ref_key: "select",
@@ -12417,7 +12458,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12417
12458
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
12418
12459
  return openBlock(), createElementBlock("option", { key: option }, toDisplayString(option), 1);
12419
12460
  }), 128))
12420
- ], 544)
12461
+ ], 40, _hoisted_4$d)
12421
12462
  ])
12422
12463
  ]);
12423
12464
  };
@@ -12429,7 +12470,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12429
12470
  };
12430
12471
  const _hoisted_2$p = { id: "lupa-select" };
12431
12472
  const _hoisted_3$i = { class: "lupa-select-label" };
12432
- const _hoisted_4$c = ["value"];
12473
+ const _hoisted_4$c = ["aria-label"];
12474
+ const _hoisted_5$8 = ["value"];
12433
12475
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
12434
12476
  __name: "SearchResultsSort",
12435
12477
  props: {
@@ -12483,6 +12525,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12483
12525
  createBaseVNode("label", _hoisted_3$i, toDisplayString(_ctx.options.label), 1),
12484
12526
  withDirectives(createBaseVNode("select", {
12485
12527
  class: "lupa-select-dropdown",
12528
+ "aria-label": _ctx.options.label,
12486
12529
  "data-cy": "lupa-sort-select-dropdown",
12487
12530
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedKey.value = $event),
12488
12531
  onChange: handleSelect,
@@ -12492,9 +12535,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12492
12535
  return openBlock(), createElementBlock("option", {
12493
12536
  key: option.key,
12494
12537
  value: option.key
12495
- }, toDisplayString(option.label), 9, _hoisted_4$c);
12538
+ }, toDisplayString(option.label), 9, _hoisted_5$8);
12496
12539
  }), 128))
12497
- ], 544), [
12540
+ ], 40, _hoisted_4$c), [
12498
12541
  [vModelSelect, selectedKey.value]
12499
12542
  ])
12500
12543
  ])