@getlupa/client 1.12.6 → 1.12.8

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.
@@ -5420,8 +5420,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
5420
5420
  if (isSSR) {
5421
5421
  return setupResult.then((resolvedResult) => {
5422
5422
  handleSetupResult(instance, resolvedResult, isSSR);
5423
- }).catch((e) => {
5424
- handleError(e, instance, 0);
5423
+ }).catch((e2) => {
5424
+ handleError(e2, instance, 0);
5425
5425
  });
5426
5426
  } else {
5427
5427
  instance.asyncDep = setupResult;
@@ -5761,7 +5761,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
5761
5761
  }
5762
5762
  try {
5763
5763
  el[key] = value;
5764
- } catch (e) {
5764
+ } catch (e2) {
5765
5765
  }
5766
5766
  needRemove && el.removeAttribute(key);
5767
5767
  }
@@ -5805,31 +5805,31 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
5805
5805
  const p$1 = /* @__PURE__ */ Promise.resolve();
5806
5806
  const getNow = () => cachedNow || (p$1.then(() => cachedNow = 0), cachedNow = Date.now());
5807
5807
  function createInvoker(initialValue, instance) {
5808
- const invoker = (e) => {
5809
- if (!e._vts) {
5810
- e._vts = Date.now();
5811
- } else if (e._vts <= invoker.attached) {
5808
+ const invoker = (e2) => {
5809
+ if (!e2._vts) {
5810
+ e2._vts = Date.now();
5811
+ } else if (e2._vts <= invoker.attached) {
5812
5812
  return;
5813
5813
  }
5814
5814
  callWithAsyncErrorHandling(
5815
- patchStopImmediatePropagation(e, invoker.value),
5815
+ patchStopImmediatePropagation(e2, invoker.value),
5816
5816
  instance,
5817
5817
  5,
5818
- [e]
5818
+ [e2]
5819
5819
  );
5820
5820
  };
5821
5821
  invoker.value = initialValue;
5822
5822
  invoker.attached = getNow();
5823
5823
  return invoker;
5824
5824
  }
5825
- function patchStopImmediatePropagation(e, value) {
5825
+ function patchStopImmediatePropagation(e2, value) {
5826
5826
  if (isArray(value)) {
5827
- const originalStop = e.stopImmediatePropagation;
5828
- e.stopImmediatePropagation = () => {
5829
- originalStop.call(e);
5830
- e._stopped = true;
5827
+ const originalStop = e2.stopImmediatePropagation;
5828
+ e2.stopImmediatePropagation = () => {
5829
+ originalStop.call(e2);
5830
+ e2._stopped = true;
5831
5831
  };
5832
- return value.map((fn) => (e2) => !e2._stopped && fn && fn(e2));
5832
+ return value.map((fn) => (e22) => !e22._stopped && fn && fn(e22));
5833
5833
  } else {
5834
5834
  return value;
5835
5835
  }
@@ -6089,8 +6089,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6089
6089
  el.removeEventListener(endEvent, onEnd);
6090
6090
  resolveIfNotStale();
6091
6091
  };
6092
- const onEnd = (e) => {
6093
- if (e.target === el && ++ended >= propCount) {
6092
+ const onEnd = (e2) => {
6093
+ if (e2.target === el && ++ended >= propCount) {
6094
6094
  end();
6095
6095
  }
6096
6096
  };
@@ -6156,11 +6156,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6156
6156
  const fn = vnode.props["onUpdate:modelValue"] || false;
6157
6157
  return isArray(fn) ? (value) => invokeArrayFns(fn, value) : fn;
6158
6158
  };
6159
- function onCompositionStart(e) {
6160
- e.target.composing = true;
6159
+ function onCompositionStart(e2) {
6160
+ e2.target.composing = true;
6161
6161
  }
6162
- function onCompositionEnd(e) {
6163
- const target = e.target;
6162
+ function onCompositionEnd(e2) {
6163
+ const target = e2.target;
6164
6164
  if (target.composing) {
6165
6165
  target.composing = false;
6166
6166
  target.dispatchEvent(new Event("input"));
@@ -6170,8 +6170,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6170
6170
  created(el, { modifiers: { lazy, trim, number } }, vnode) {
6171
6171
  el._assign = getModelAssigner(vnode);
6172
6172
  const castToNumber = number || vnode.props && vnode.props.type === "number";
6173
- addEventListener(el, lazy ? "change" : "input", (e) => {
6174
- if (e.target.composing)
6173
+ addEventListener(el, lazy ? "change" : "input", (e2) => {
6174
+ if (e2.target.composing)
6175
6175
  return;
6176
6176
  let domValue = el.value;
6177
6177
  if (trim) {
@@ -6276,17 +6276,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6276
6276
  }
6277
6277
  const systemModifiers = ["ctrl", "shift", "alt", "meta"];
6278
6278
  const modifierGuards = {
6279
- stop: (e) => e.stopPropagation(),
6280
- prevent: (e) => e.preventDefault(),
6281
- self: (e) => e.target !== e.currentTarget,
6282
- ctrl: (e) => !e.ctrlKey,
6283
- shift: (e) => !e.shiftKey,
6284
- alt: (e) => !e.altKey,
6285
- meta: (e) => !e.metaKey,
6286
- left: (e) => "button" in e && e.button !== 0,
6287
- middle: (e) => "button" in e && e.button !== 1,
6288
- right: (e) => "button" in e && e.button !== 2,
6289
- exact: (e, modifiers) => systemModifiers.some((m2) => e[`${m2}Key`] && !modifiers.includes(m2))
6279
+ stop: (e2) => e2.stopPropagation(),
6280
+ prevent: (e2) => e2.preventDefault(),
6281
+ self: (e2) => e2.target !== e2.currentTarget,
6282
+ ctrl: (e2) => !e2.ctrlKey,
6283
+ shift: (e2) => !e2.shiftKey,
6284
+ alt: (e2) => !e2.altKey,
6285
+ meta: (e2) => !e2.metaKey,
6286
+ left: (e2) => "button" in e2 && e2.button !== 0,
6287
+ middle: (e2) => "button" in e2 && e2.button !== 1,
6288
+ right: (e2) => "button" in e2 && e2.button !== 2,
6289
+ exact: (e2, modifiers) => systemModifiers.some((m2) => e2[`${m2}Key`] && !modifiers.includes(m2))
6290
6290
  };
6291
6291
  const withModifiers = (fn, modifiers) => {
6292
6292
  return (event, ...args) => {
@@ -6355,15 +6355,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6355
6355
  var fulfilled = (value) => {
6356
6356
  try {
6357
6357
  step(generator.next(value));
6358
- } catch (e) {
6359
- reject(e);
6358
+ } catch (e2) {
6359
+ reject(e2);
6360
6360
  }
6361
6361
  };
6362
6362
  var rejected = (value) => {
6363
6363
  try {
6364
6364
  step(generator.throw(value));
6365
- } catch (e) {
6366
- reject(e);
6365
+ } catch (e2) {
6366
+ reject(e2);
6367
6367
  }
6368
6368
  };
6369
6369
  var step = (x) => x.done ? resolve2(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
@@ -6749,6 +6749,33 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6749
6749
  const LUPA_ROUTING_EVENT = "lupaRedirect";
6750
6750
  const RATING_STAR_HTML = "&#x2606;";
6751
6751
  const RESULT_ROOT_SELECTOR = "#lupa-search-results";
6752
+ /**
6753
+ * @preserve jquery-param (c) KNOWLEDGECODE | MIT
6754
+ */
6755
+ var e = function(e2) {
6756
+ var n = [], o = function(e3, o2) {
6757
+ o2 = null == (o2 = "function" == typeof o2 ? o2() : o2) ? "" : o2, n[n.length] = encodeURIComponent(e3) + "=" + encodeURIComponent(o2);
6758
+ }, t = function(e3, r) {
6759
+ var f2, i, l;
6760
+ if (e3)
6761
+ if (Array.isArray(r))
6762
+ for (f2 = 0, i = r.length; f2 < i; f2++)
6763
+ t(e3 + "[" + ("object" == typeof r[f2] && r[f2] ? f2 : "") + "]", r[f2]);
6764
+ else if ("[object Object]" === Object.prototype.toString.call(r))
6765
+ for (l in r)
6766
+ t(e3 + "[" + l + "]", r[l]);
6767
+ else
6768
+ o(e3, r);
6769
+ else if (Array.isArray(r))
6770
+ for (f2 = 0, i = r.length; f2 < i; f2++)
6771
+ o(r[f2].name, r[f2].value);
6772
+ else
6773
+ for (l in r)
6774
+ t(l, r[l]);
6775
+ return n;
6776
+ };
6777
+ return t("", e2).join("&");
6778
+ };
6752
6779
  const production = "https://api.lupasearch.com/v1/";
6753
6780
  const staging = "https://api.staging.lupasearch.com/v1/";
6754
6781
  const Env$1 = {
@@ -6771,15 +6798,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6771
6798
  function fulfilled(value) {
6772
6799
  try {
6773
6800
  step(generator.next(value));
6774
- } catch (e) {
6775
- reject(e);
6801
+ } catch (e2) {
6802
+ reject(e2);
6776
6803
  }
6777
6804
  }
6778
6805
  function rejected(value) {
6779
6806
  try {
6780
6807
  step(generator["throw"](value));
6781
- } catch (e) {
6782
- reject(e);
6808
+ } catch (e2) {
6809
+ reject(e2);
6783
6810
  }
6784
6811
  }
6785
6812
  function step(result) {
@@ -6837,8 +6864,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6837
6864
  const errors = yield res.json();
6838
6865
  return { success: false, errors };
6839
6866
  });
6840
- const recommendForSingleId = (queryKey, recommendForId, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6841
- const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}recommendations/document/${recommendForId}?recommendationQueryKey=${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
6867
+ const recommendForSingleId = (queryKey, recommendForId, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6868
+ let url = `${getApiUrl$1(environment, customBaseUrl)}recommendations/document/${recommendForId}?recommendationQueryKey=${queryKey}`;
6869
+ if (filters) {
6870
+ url += `&${e({ filters })}`;
6871
+ }
6872
+ const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
6842
6873
  if (res.status < 400) {
6843
6874
  const data = yield res.json();
6844
6875
  return Object.assign(Object.assign({}, data), { success: true });
@@ -6846,9 +6877,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6846
6877
  const errors = yield res.json();
6847
6878
  return { success: false, errors };
6848
6879
  });
6849
- const recommendForMultipleIds = (queryKey, recommendForIds, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6880
+ const recommendForMultipleIds = (queryKey, recommendForIds, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6850
6881
  const limitedRecommendForIds = recommendForIds.slice(0, 20);
6851
- const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}recommendations/documentsByMultipleIds?recommendationQueryKey=${queryKey}&itemId[]=${limitedRecommendForIds.join("&itemId[]=")}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
6882
+ let url = `${getApiUrl$1(environment, customBaseUrl)}recommendations/documentsByMultipleIds?recommendationQueryKey=${queryKey}&itemId[]=${limitedRecommendForIds.join("&itemId[]=")}`;
6883
+ if (filters) {
6884
+ url += `&${e({ filters })}`;
6885
+ }
6886
+ const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
6852
6887
  if (res.status < 400) {
6853
6888
  const data = yield res.json();
6854
6889
  return Object.assign(Object.assign({}, data), { success: true });
@@ -6856,8 +6891,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6856
6891
  const errors = yield res.json();
6857
6892
  return { success: false, errors };
6858
6893
  });
6859
- const recommend = (queryKey, recommendForId, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6860
- return Array.isArray(recommendForId) ? yield recommendForMultipleIds(queryKey, recommendForId, environment, customBaseUrl) : yield recommendForSingleId(queryKey, recommendForId, environment, customBaseUrl);
6894
+ const recommend = (queryKey, recommendForId, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6895
+ return Array.isArray(recommendForId) ? yield recommendForMultipleIds(queryKey, recommendForId, filters, environment, customBaseUrl) : yield recommendForSingleId(queryKey, recommendForId, filters, environment, customBaseUrl);
6861
6896
  });
6862
6897
  const suggest = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6863
6898
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(query) }));
@@ -6875,7 +6910,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6875
6910
  return { success: false };
6876
6911
  }
6877
6912
  return res.json();
6878
- } catch (e) {
6913
+ } catch (e2) {
6879
6914
  return { success: false };
6880
6915
  }
6881
6916
  });
@@ -6903,8 +6938,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6903
6938
  track: (queryKey, eventData, options = null) => {
6904
6939
  return track$1(queryKey, eventData, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
6905
6940
  },
6906
- recommend: (queryKey, recommendForId, options = null) => {
6907
- return recommend(queryKey, recommendForId, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
6941
+ recommend: (queryKey, recommendForId, filters, options = null) => {
6942
+ return recommend(queryKey, recommendForId, filters, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
6908
6943
  },
6909
6944
  queryByIds: (queryKey, ids, options = null) => {
6910
6945
  return queryByIds(queryKey, ids, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
@@ -7035,7 +7070,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7035
7070
  } else {
7036
7071
  window.sessionStorage.removeItem(TRACKING_ANALYTICS_KEY);
7037
7072
  }
7038
- } catch (e) {
7073
+ } catch (e2) {
7039
7074
  }
7040
7075
  };
7041
7076
  const initBaseTracking = (enabled) => {
@@ -7047,13 +7082,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7047
7082
  clearSessionTracking();
7048
7083
  clearUserTracking();
7049
7084
  }
7050
- } catch (e) {
7085
+ } catch (e2) {
7051
7086
  }
7052
7087
  };
7053
7088
  const clearSessionTracking = () => {
7054
7089
  try {
7055
7090
  window.sessionStorage.removeItem(TRACKING_STORAGE_KEY);
7056
- } catch (e) {
7091
+ } catch (e2) {
7057
7092
  }
7058
7093
  };
7059
7094
  const initSessionTracking = () => {
@@ -7063,7 +7098,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7063
7098
  }
7064
7099
  const key = getRandomString(TRACKING_KEY_LENGTH);
7065
7100
  window.sessionStorage.setItem(TRACKING_STORAGE_KEY, key);
7066
- } catch (e) {
7101
+ } catch (e2) {
7067
7102
  }
7068
7103
  };
7069
7104
  const initUserTracking = (userKey) => {
@@ -7073,19 +7108,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7073
7108
  }
7074
7109
  const key = userKey || getRandomString(TRACKING_KEY_LENGTH);
7075
7110
  window.localStorage.setItem(TRACKING_STORAGE_KEY, key);
7076
- } catch (e) {
7111
+ } catch (e2) {
7077
7112
  }
7078
7113
  };
7079
7114
  const clearUserTracking = () => {
7080
7115
  try {
7081
7116
  window.localStorage.removeItem(TRACKING_STORAGE_KEY);
7082
- } catch (e) {
7117
+ } catch (e2) {
7083
7118
  }
7084
7119
  };
7085
7120
  const isTrackingEnabled = () => {
7086
7121
  try {
7087
7122
  return Boolean(window.sessionStorage.getItem(TRACKING_STORAGE_KEY_BASE));
7088
- } catch (e) {
7123
+ } catch (e2) {
7089
7124
  return false;
7090
7125
  }
7091
7126
  };
@@ -7093,7 +7128,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7093
7128
  var _a;
7094
7129
  try {
7095
7130
  return (_a = window.sessionStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
7096
- } catch (e) {
7131
+ } catch (e2) {
7097
7132
  return void 0;
7098
7133
  }
7099
7134
  };
@@ -7101,7 +7136,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7101
7136
  var _a;
7102
7137
  try {
7103
7138
  return (_a = window.localStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
7104
- } catch (e) {
7139
+ } catch (e2) {
7105
7140
  return void 0;
7106
7141
  }
7107
7142
  };
@@ -7178,7 +7213,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7178
7213
  default:
7179
7214
  sendUaAnalyticsEvent(data, options);
7180
7215
  }
7181
- } catch (e) {
7216
+ } catch (e2) {
7182
7217
  console.error("Unable to send an event to google analytics");
7183
7218
  }
7184
7219
  };
@@ -7554,7 +7589,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7554
7589
  try {
7555
7590
  const historyString = window.localStorage.getItem(HISTORY_LOCAL_STORAGE_KEY);
7556
7591
  return historyString ? JSON.parse(historyString) : [];
7557
- } catch (e) {
7592
+ } catch (e2) {
7558
7593
  return [];
7559
7594
  }
7560
7595
  };
@@ -7564,7 +7599,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7564
7599
  HISTORY_LOCAL_STORAGE_KEY,
7565
7600
  JSON.stringify(items.slice(0, HISTORY_MAX_ITEMS))
7566
7601
  );
7567
- } catch (e) {
7602
+ } catch (e2) {
7568
7603
  }
7569
7604
  };
7570
7605
  const useHistoryStore = defineStore("history", () => {
@@ -7769,7 +7804,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7769
7804
  }
7770
7805
  try {
7771
7806
  return decodeURIComponent(value);
7772
- } catch (e) {
7807
+ } catch (e2) {
7773
7808
  return void 0;
7774
7809
  }
7775
7810
  };
@@ -7906,7 +7941,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7906
7941
  const url = new URL(link);
7907
7942
  const partialUrl = url.toString().substring(url.origin.length);
7908
7943
  return partialUrl.endsWith("/") ? partialUrl.slice(0, partialUrl.length - 1) : partialUrl;
7909
- } catch (e) {
7944
+ } catch (e2) {
7910
7945
  return (link == null ? void 0 : link.endsWith("/")) ? link.slice(0, link.length - 1) : link;
7911
7946
  }
7912
7947
  };
@@ -8017,7 +8052,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8017
8052
  CACHE_KEY,
8018
8053
  JSON.stringify({ redirections: redirections.value, savedAt: Date.now() })
8019
8054
  );
8020
- } catch (e) {
8055
+ } catch (e2) {
8021
8056
  }
8022
8057
  };
8023
8058
  const tryLoadFromLocalStorage = (config) => {
@@ -8030,7 +8065,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8030
8065
  redirections.value = data.redirections;
8031
8066
  return true;
8032
8067
  }
8033
- } catch (e) {
8068
+ } catch (e2) {
8034
8069
  }
8035
8070
  return false;
8036
8071
  };
@@ -8054,7 +8089,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8054
8089
  }
8055
8090
  redirections.value = result;
8056
8091
  saveToLocalStorage();
8057
- } catch (e) {
8092
+ } catch (e2) {
8058
8093
  }
8059
8094
  });
8060
8095
  const redirectOnKeywordIfConfigured = (input, routingBehavior = "direct-link") => {
@@ -8475,8 +8510,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8475
8510
  });
8476
8511
  const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
8477
8512
  const _hoisted_2$R = { class: "lupa-input-clear" };
8478
- const _hoisted_3$A = { id: "lupa-search-box-input" };
8479
- const _hoisted_4$s = ["value"];
8513
+ const _hoisted_3$B = { id: "lupa-search-box-input" };
8514
+ const _hoisted_4$t = ["value"];
8480
8515
  const _hoisted_5$i = ["aria-label", "placeholder"];
8481
8516
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8482
8517
  const _hoisted_7$7 = [
@@ -8577,13 +8612,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8577
8612
  onClick: clear2
8578
8613
  }, null, 2)
8579
8614
  ]),
8580
- createBaseVNode("div", _hoisted_3$A, [
8615
+ createBaseVNode("div", _hoisted_3$B, [
8581
8616
  createBaseVNode("input", {
8582
8617
  class: "lupa-hint",
8583
8618
  "aria-hidden": "true",
8584
8619
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8585
8620
  disabled: ""
8586
- }, null, 8, _hoisted_4$s),
8621
+ }, null, 8, _hoisted_4$t),
8587
8622
  withDirectives(createBaseVNode("input", mergeProps({
8588
8623
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8589
8624
  }, inputAttributes.value, {
@@ -8716,12 +8751,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8716
8751
  const goToResults = ({ query }) => {
8717
8752
  emit2("go-to-results", { query });
8718
8753
  };
8719
- const handleKeyDown = (e) => {
8754
+ const handleKeyDown = (e2) => {
8720
8755
  if (!hasHistory.value || highlightIndex.value < -1) {
8721
8756
  return;
8722
8757
  }
8723
- if (e.key === "Enter") {
8724
- e.preventDefault();
8758
+ if (e2.key === "Enter") {
8759
+ e2.preventDefault();
8725
8760
  goToResults({ query: history.value[highlightIndex.value] });
8726
8761
  }
8727
8762
  };
@@ -8762,12 +8797,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8762
8797
  "data-cy": "lupa-suggestion-value",
8763
8798
  class: "lupa-suggestion-value"
8764
8799
  };
8765
- const _hoisted_3$z = {
8800
+ const _hoisted_3$A = {
8766
8801
  key: 2,
8767
8802
  class: "lupa-suggestion-facet",
8768
8803
  "data-cy": "lupa-suggestion-facet"
8769
8804
  };
8770
- const _hoisted_4$r = {
8805
+ const _hoisted_4$s = {
8771
8806
  class: "lupa-suggestion-facet-label",
8772
8807
  "data-cy": "lupa-suggestion-facet-label"
8773
8808
  };
@@ -8812,8 +8847,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
8812
8847
  "data-cy": "lupa-suggestion-value",
8813
8848
  innerHTML: _ctx.suggestion.displayHighlight
8814
8849
  }, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
8815
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
8816
- createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8850
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8851
+ createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
8817
8852
  createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
8818
8853
  ])) : createCommentVNode("", true)
8819
8854
  ]);
@@ -9052,9 +9087,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9052
9087
  }
9053
9088
  return rootImageUrl ? joinUrlParts(rootImageUrl, mainUrl) : `/${mainUrl}`;
9054
9089
  };
9055
- const replaceImageWithPlaceholder = (e, placeholder) => {
9090
+ const replaceImageWithPlaceholder = (e2, placeholder) => {
9056
9091
  var _a;
9057
- const targetImage = e == null ? void 0 : e.target;
9092
+ const targetImage = e2 == null ? void 0 : e2.target;
9058
9093
  if (targetImage && !((_a = targetImage == null ? void 0 : targetImage.src) == null ? void 0 : _a.includes(placeholder))) {
9059
9094
  targetImage.src = placeholder;
9060
9095
  }
@@ -9103,8 +9138,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9103
9138
  var _a;
9104
9139
  return Boolean((_a = hoverImages.value) == null ? void 0 : _a.length);
9105
9140
  });
9106
- const replaceWithPlaceholder = (e) => {
9107
- replaceImageWithPlaceholder(e, placeholder.value);
9141
+ const replaceWithPlaceholder = (e2) => {
9142
+ replaceImageWithPlaceholder(e2, placeholder.value);
9108
9143
  };
9109
9144
  const setNextHoverImage = () => {
9110
9145
  hoverImageIndex.value = (hoverImageIndex.value + 1) % hoverImages.value.length;
@@ -9313,8 +9348,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9313
9348
  });
9314
9349
  const _hoisted_1$14 = ["innerHTML"];
9315
9350
  const _hoisted_2$M = { key: 0 };
9316
- const _hoisted_3$y = { key: 1 };
9317
- const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
9351
+ const _hoisted_3$z = { key: 1 };
9352
+ const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
9318
9353
  const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
9319
9354
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9320
9355
  __name: "SearchBoxProductCustom",
@@ -9346,8 +9381,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9346
9381
  key: 1,
9347
9382
  class: [className.value, "lupa-search-box-product-custom"]
9348
9383
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
9349
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
9350
- createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
9384
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
9385
+ createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
9351
9386
  createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
9352
9387
  ]))
9353
9388
  ], 16));
@@ -9605,7 +9640,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9605
9640
  });
9606
9641
  const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
9607
9642
  const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
9608
- const _hoisted_3$x = ["onClick", "disabled"];
9643
+ const _hoisted_3$y = ["onClick", "disabled"];
9609
9644
  const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9610
9645
  __name: "SearchBoxProductAddToCart",
9611
9646
  props: {
@@ -9641,7 +9676,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9641
9676
  "data-cy": "lupa-add-to-cart",
9642
9677
  type: "button",
9643
9678
  disabled: !inStockValue.value || loading.value
9644
- }, toDisplayString(label.value), 11, _hoisted_3$x)
9679
+ }, toDisplayString(label.value), 11, _hoisted_3$y)
9645
9680
  ])
9646
9681
  ]);
9647
9682
  };
@@ -9737,8 +9772,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9737
9772
  }));
9738
9773
  const _hoisted_1$10 = { class: "lupa-badge-title" };
9739
9774
  const _hoisted_2$K = ["src"];
9740
- const _hoisted_3$w = { key: 1 };
9741
- const _hoisted_4$p = {
9775
+ const _hoisted_3$x = { key: 1 };
9776
+ const _hoisted_4$q = {
9742
9777
  key: 0,
9743
9778
  class: "lupa-badge-full-text"
9744
9779
  };
@@ -9780,9 +9815,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9780
9815
  key: 0,
9781
9816
  src: image.value
9782
9817
  }, null, 8, _hoisted_2$K)) : createCommentVNode("", true),
9783
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
9818
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
9784
9819
  ]),
9785
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
9820
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
9786
9821
  ], 6);
9787
9822
  };
9788
9823
  }
@@ -9951,9 +9986,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
9951
9986
  if (!props.options.elements) {
9952
9987
  return [];
9953
9988
  }
9954
- return props.options.elements.filter((e) => {
9989
+ return props.options.elements.filter((e2) => {
9955
9990
  var _a;
9956
- return !e.display || e.display((_a = props.options.product) != null ? _a : {});
9991
+ return !e2.display || e2.display((_a = props.options.product) != null ? _a : {});
9957
9992
  }).map((x) => {
9958
9993
  var _a;
9959
9994
  return __spreadProps2(__spreadValues2({}, x), {
@@ -10000,8 +10035,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10000
10035
  }));
10001
10036
  const _hoisted_1$W = ["href"];
10002
10037
  const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
10003
- const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
10004
- const _hoisted_4$o = {
10038
+ const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
10039
+ const _hoisted_4$p = {
10005
10040
  key: 0,
10006
10041
  class: "lupa-search-box-product-add-to-cart-section"
10007
10042
  };
@@ -10027,17 +10062,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10027
10062
  });
10028
10063
  const imageElements = computed(() => {
10029
10064
  var _a, _b;
10030
- return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((e) => e.type === DocumentElementType.IMAGE)) != null ? _b : [];
10065
+ return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _b : [];
10031
10066
  });
10032
10067
  const detailElements = computed(() => {
10033
10068
  var _a, _b;
10034
10069
  return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter(
10035
- (e) => e.type !== DocumentElementType.IMAGE && e.type !== DocumentElementType.ADDTOCART
10070
+ (e2) => e2.type !== DocumentElementType.IMAGE && e2.type !== DocumentElementType.ADDTOCART
10036
10071
  )) != null ? _b : [];
10037
10072
  });
10038
10073
  const addToCartElement = computed(() => {
10039
10074
  var _a;
10040
- return (_a = props.panelOptions.elements) == null ? void 0 : _a.find((e) => e.type === DocumentElementType.ADDTOCART);
10075
+ return (_a = props.panelOptions.elements) == null ? void 0 : _a.find((e2) => e2.type === DocumentElementType.ADDTOCART);
10041
10076
  });
10042
10077
  const customDocumentHtmlAttributes = computed(() => {
10043
10078
  var _a, _b, _c;
@@ -10076,7 +10111,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10076
10111
  }, null, 8, ["item", "element", "labels", "link"]);
10077
10112
  }), 128))
10078
10113
  ]),
10079
- createBaseVNode("div", _hoisted_3$v, [
10114
+ createBaseVNode("div", _hoisted_3$w, [
10080
10115
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
10081
10116
  var _a;
10082
10117
  return openBlock(), createBlock(_sfc_main$16, {
@@ -10100,7 +10135,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10100
10135
  ]), 1032, ["item", "element", "labels", "link"]);
10101
10136
  }), 128))
10102
10137
  ]),
10103
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
10138
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
10104
10139
  createVNode(_sfc_main$16, {
10105
10140
  class: "lupa-search-box-product-element",
10106
10141
  item: _ctx.item,
@@ -10486,11 +10521,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10486
10521
  id: "lupa-search-box-panel"
10487
10522
  };
10488
10523
  const _hoisted_2$G = ["data-cy"];
10489
- const _hoisted_3$u = {
10524
+ const _hoisted_3$v = {
10490
10525
  key: 0,
10491
10526
  class: "lupa-panel-title lupa-panel-title-top-results"
10492
10527
  };
10493
- const _hoisted_4$n = {
10528
+ const _hoisted_4$o = {
10494
10529
  key: 1,
10495
10530
  class: "lupa-panel-title"
10496
10531
  };
@@ -10571,14 +10606,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10571
10606
  window.removeEventListener("keydown", handleNavigation);
10572
10607
  searchBoxStore.resetHighlightIndex();
10573
10608
  });
10574
- const handleNavigation = (e) => {
10575
- switch (e.key) {
10609
+ const handleNavigation = (e2) => {
10610
+ switch (e2.key) {
10576
10611
  case "ArrowDown":
10577
- e.preventDefault();
10612
+ e2.preventDefault();
10578
10613
  highlightChange({ action: "down" });
10579
10614
  break;
10580
10615
  case "ArrowUp":
10581
- e.preventDefault();
10616
+ e2.preventDefault();
10582
10617
  highlightChange({ action: "up" });
10583
10618
  break;
10584
10619
  }
@@ -10672,8 +10707,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10672
10707
  ]),
10673
10708
  "data-cy": "lupa-panel-" + panel.type + "-index"
10674
10709
  }, [
10675
- ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$u, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
10676
- ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$n, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
10710
+ ((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$v, toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : createCommentVNode("", true),
10711
+ ((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$o, toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : createCommentVNode("", true),
10677
10712
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
10678
10713
  key: 2,
10679
10714
  panel,
@@ -10728,11 +10763,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10728
10763
  };
10729
10764
  const bindSearchTriggers = (triggers = [], event) => {
10730
10765
  const elements = getElements(triggers);
10731
- elements.forEach((e) => e == null ? void 0 : e.addEventListener(BIND_EVENT, event));
10766
+ elements.forEach((e2) => e2 == null ? void 0 : e2.addEventListener(BIND_EVENT, event));
10732
10767
  };
10733
10768
  const unbindSearchTriggers = (triggers = [], event) => {
10734
10769
  const elements = getElements(triggers);
10735
- elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
10770
+ elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
10736
10771
  };
10737
10772
  const _hoisted_1$S = { id: "lupa-search-box" };
10738
10773
  const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
@@ -10811,12 +10846,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10811
10846
  window.removeEventListener("click", handleMouseClick);
10812
10847
  unbindSearchTriggers(searchTriggers.value, handleCurrentValueSearch);
10813
10848
  });
10814
- const handleMouseClick = (e) => {
10849
+ const handleMouseClick = (e2) => {
10815
10850
  var _a2, _b;
10816
10851
  const el = document.getElementById("lupa-search-box");
10817
- const elementClass = (_b = (_a2 = e.target) == null ? void 0 : _a2.className) != null ? _b : "";
10852
+ const elementClass = (_b = (_a2 = e2.target) == null ? void 0 : _a2.className) != null ? _b : "";
10818
10853
  const hasLupaClass = typeof elementClass.includes == "function" && elementClass.includes("lupa-search-box");
10819
- const isOutsideElement = el && !el.contains(e.target) && !hasLupaClass;
10854
+ const isOutsideElement = el && !el.contains(e2.target) && !hasLupaClass;
10820
10855
  if (!isOutsideElement) {
10821
10856
  return;
10822
10857
  }
@@ -10827,20 +10862,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
10827
10862
  opened.value = false;
10828
10863
  suggestedValue.value = defaultSuggestedValue;
10829
10864
  };
10830
- const handleKeyDown = (e) => {
10865
+ const handleKeyDown = (e2) => {
10831
10866
  var _a2, _b;
10832
10867
  if (!opened.value) {
10833
10868
  return;
10834
10869
  }
10835
- switch (e.key) {
10870
+ switch (e2.key) {
10836
10871
  case "Tab":
10837
10872
  if ((_b = (_a2 = suggestedValue == null ? void 0 : suggestedValue.value) == null ? void 0 : _a2.item) == null ? void 0 : _b.suggestion) {
10838
- e.preventDefault();
10873
+ e2.preventDefault();
10839
10874
  selectSuggestion(__spreadProps2(__spreadValues2({}, suggestedValue.value), { override: true }));
10840
10875
  }
10841
10876
  break;
10842
10877
  case "Enter":
10843
- e.preventDefault();
10878
+ e2.preventDefault();
10844
10879
  handleSearch();
10845
10880
  resetValues();
10846
10881
  break;
@@ -11097,11 +11132,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11097
11132
  key: 0,
11098
11133
  "data-cy": "suggested-search-text-label"
11099
11134
  };
11100
- const _hoisted_3$t = {
11135
+ const _hoisted_3$u = {
11101
11136
  key: 1,
11102
11137
  "data-cy": "did-you-mean-label"
11103
11138
  };
11104
- const _hoisted_4$m = { key: 1 };
11139
+ const _hoisted_4$n = { key: 1 };
11105
11140
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
11106
11141
  __name: "SearchResultsDidYouMean",
11107
11142
  props: {
@@ -11144,7 +11179,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11144
11179
  ]);
11145
11180
  }), 128))
11146
11181
  ])) : createCommentVNode("", true),
11147
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
11182
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
11148
11183
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
11149
11184
  return openBlock(), createElementBlock("span", { key: index }, [
11150
11185
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -11152,7 +11187,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11152
11187
  class: "lupa-did-you-mean lupa-highlighted-search-text",
11153
11188
  "data-cy": "did-you-mean-value",
11154
11189
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
11155
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(label) + " ", 1))
11190
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
11156
11191
  ]);
11157
11192
  }), 128))
11158
11193
  ])) : createCommentVNode("", true)
@@ -11198,11 +11233,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11198
11233
  "data-cy": "lupa-result-page-title"
11199
11234
  };
11200
11235
  const _hoisted_2$C = { key: 0 };
11201
- const _hoisted_3$s = {
11236
+ const _hoisted_3$t = {
11202
11237
  key: 1,
11203
11238
  class: "lupa-results-total-count"
11204
11239
  };
11205
- const _hoisted_4$l = { class: "lupa-results-total-count-number" };
11240
+ const _hoisted_4$m = { class: "lupa-results-total-count-number" };
11206
11241
  const _hoisted_5$e = ["innerHTML"];
11207
11242
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
11208
11243
  __name: "SearchResultsTitle",
@@ -11246,9 +11281,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11246
11281
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
11247
11282
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
11248
11283
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11249
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, [
11284
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
11250
11285
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
11251
- createBaseVNode("span", _hoisted_4$l, toDisplayString(unref(totalItems)), 1),
11286
+ createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
11252
11287
  createTextVNode(")")
11253
11288
  ])) : createCommentVNode("", true)
11254
11289
  ])) : createCommentVNode("", true),
@@ -11270,7 +11305,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11270
11305
  class: "lupa-current-filter-label",
11271
11306
  "data-cy": "lupa-current-filter-label"
11272
11307
  };
11273
- const _hoisted_3$r = {
11308
+ const _hoisted_3$s = {
11274
11309
  class: "lupa-current-filter-value",
11275
11310
  "data-cy": "lupa-current-filter-value"
11276
11311
  };
@@ -11292,7 +11327,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11292
11327
  onClick: handleClick
11293
11328
  }, "⨉"),
11294
11329
  createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
11295
- createBaseVNode("div", _hoisted_3$r, toDisplayString(_ctx.filter.value), 1)
11330
+ createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
11296
11331
  ]);
11297
11332
  };
11298
11333
  }
@@ -11302,11 +11337,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11302
11337
  key: 0,
11303
11338
  class: "lupa-filter-count"
11304
11339
  };
11305
- const _hoisted_3$q = {
11340
+ const _hoisted_3$r = {
11306
11341
  key: 0,
11307
11342
  class: "filter-values"
11308
11343
  };
11309
- const _hoisted_4$k = { class: "lupa-current-filter-list" };
11344
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
11310
11345
  const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11311
11346
  __name: "CurrentFilters",
11312
11347
  props: {
@@ -11389,8 +11424,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11389
11424
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
11390
11425
  }, null, 2)) : createCommentVNode("", true)
11391
11426
  ]),
11392
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
11393
- createBaseVNode("div", _hoisted_4$k, [
11427
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
11428
+ createBaseVNode("div", _hoisted_4$l, [
11394
11429
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
11395
11430
  return openBlock(), createBlock(_sfc_main$R, {
11396
11431
  key: filter.key + "_" + filter.value,
@@ -11457,8 +11492,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11457
11492
  "data-cy": "lupa-category-filter"
11458
11493
  };
11459
11494
  const _hoisted_2$z = { class: "lupa-category-back" };
11460
- const _hoisted_3$p = ["href"];
11461
- const _hoisted_4$j = ["href"];
11495
+ const _hoisted_3$q = ["href"];
11496
+ const _hoisted_4$k = ["href"];
11462
11497
  const _hoisted_5$d = { class: "lupa-child-category-list" };
11463
11498
  const _sfc_main$O = /* @__PURE__ */ defineComponent({
11464
11499
  __name: "CategoryFilter",
@@ -11553,7 +11588,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11553
11588
  "data-cy": "lupa-category-back",
11554
11589
  href: backUrlLink.value,
11555
11590
  onClick: handleNavigationBack
11556
- }, toDisplayString(backTitle.value), 9, _hoisted_3$p)) : createCommentVNode("", true)
11591
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$q)) : createCommentVNode("", true)
11557
11592
  ]),
11558
11593
  createBaseVNode("div", {
11559
11594
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -11563,7 +11598,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11563
11598
  href: parentUrlLink.value,
11564
11599
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
11565
11600
  onClick: handleNavigationParent
11566
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$j)
11601
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
11567
11602
  ], 2),
11568
11603
  createBaseVNode("div", _hoisted_5$d, [
11569
11604
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -11583,8 +11618,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11583
11618
  "data-cy": "lupa-search-result-facet-term-values"
11584
11619
  };
11585
11620
  const _hoisted_2$y = ["placeholder"];
11586
- const _hoisted_3$o = { class: "lupa-terms-list" };
11587
- const _hoisted_4$i = ["onClick"];
11621
+ const _hoisted_3$p = { class: "lupa-terms-list" };
11622
+ const _hoisted_4$j = ["onClick"];
11588
11623
  const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
11589
11624
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
11590
11625
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -11675,7 +11710,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11675
11710
  }, null, 8, _hoisted_2$y)), [
11676
11711
  [vModelText, termFilter.value]
11677
11712
  ]) : createCommentVNode("", true),
11678
- createBaseVNode("div", _hoisted_3$o, [
11713
+ createBaseVNode("div", _hoisted_3$p, [
11679
11714
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11680
11715
  return openBlock(), createElementBlock("div", {
11681
11716
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -11692,7 +11727,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11692
11727
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
11693
11728
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
11694
11729
  ])
11695
- ], 10, _hoisted_4$i);
11730
+ ], 10, _hoisted_4$j);
11696
11731
  }), 128))
11697
11732
  ]),
11698
11733
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -11707,50 +11742,50 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11707
11742
  };
11708
11743
  }
11709
11744
  });
11710
- function u(e) {
11711
- return -1 !== [null, void 0, false].indexOf(e);
11745
+ function u(e2) {
11746
+ return -1 !== [null, void 0, false].indexOf(e2);
11712
11747
  }
11713
- function c(e) {
11714
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11748
+ function c(e2) {
11749
+ return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
11715
11750
  }
11716
- function p(e) {
11751
+ function p(e2) {
11717
11752
  var t = { exports: {} };
11718
- return e(t, t.exports), t.exports;
11753
+ return e2(t, t.exports), t.exports;
11719
11754
  }
11720
- var d = p(function(e, t) {
11721
- e.exports = function() {
11722
- var e2 = ["decimals", "thousand", "mark", "prefix", "suffix", "encoder", "decoder", "negativeBefore", "negative", "edit", "undo"];
11723
- function t2(e3) {
11724
- return e3.split("").reverse().join("");
11755
+ var d = p(function(e2, t) {
11756
+ e2.exports = function() {
11757
+ var e3 = ["decimals", "thousand", "mark", "prefix", "suffix", "encoder", "decoder", "negativeBefore", "negative", "edit", "undo"];
11758
+ function t2(e4) {
11759
+ return e4.split("").reverse().join("");
11725
11760
  }
11726
- function r(e3, t3) {
11727
- return e3.substring(0, t3.length) === t3;
11761
+ function r(e4, t3) {
11762
+ return e4.substring(0, t3.length) === t3;
11728
11763
  }
11729
- function i(e3, t3) {
11730
- return e3.slice(-1 * t3.length) === t3;
11764
+ function i(e4, t3) {
11765
+ return e4.slice(-1 * t3.length) === t3;
11731
11766
  }
11732
- function n(e3, t3, r2) {
11733
- if ((e3[t3] || e3[r2]) && e3[t3] === e3[r2])
11767
+ function n(e4, t3, r2) {
11768
+ if ((e4[t3] || e4[r2]) && e4[t3] === e4[r2])
11734
11769
  throw new Error(t3);
11735
11770
  }
11736
- function o(e3) {
11737
- return "number" == typeof e3 && isFinite(e3);
11771
+ function o(e4) {
11772
+ return "number" == typeof e4 && isFinite(e4);
11738
11773
  }
11739
- function a(e3, t3) {
11740
- return e3 = e3.toString().split("e"), (+((e3 = (e3 = Math.round(+(e3[0] + "e" + (e3[1] ? +e3[1] + t3 : t3)))).toString().split("e"))[0] + "e" + (e3[1] ? +e3[1] - t3 : -t3))).toFixed(t3);
11774
+ function a(e4, t3) {
11775
+ return e4 = e4.toString().split("e"), (+((e4 = (e4 = Math.round(+(e4[0] + "e" + (e4[1] ? +e4[1] + t3 : t3)))).toString().split("e"))[0] + "e" + (e4[1] ? +e4[1] - t3 : -t3))).toFixed(t3);
11741
11776
  }
11742
- function s(e3, r2, i2, n2, s2, l2, u3, c3, p3, d2, f2, h2) {
11777
+ function s(e4, r2, i2, n2, s2, l2, u3, c3, p3, d2, f2, h2) {
11743
11778
  var m2, v, g, b = h2, y = "", S = "";
11744
- return l2 && (h2 = l2(h2)), !!o(h2) && (false !== e3 && 0 === parseFloat(h2.toFixed(e3)) && (h2 = 0), h2 < 0 && (m2 = true, h2 = Math.abs(h2)), false !== e3 && (h2 = a(h2, e3)), -1 !== (h2 = h2.toString()).indexOf(".") ? (g = (v = h2.split("."))[0], i2 && (y = i2 + v[1])) : g = h2, r2 && (g = t2(g).match(/.{1,3}/g), g = t2(g.join(t2(r2)))), m2 && c3 && (S += c3), n2 && (S += n2), m2 && p3 && (S += p3), S += g, S += y, s2 && (S += s2), d2 && (S = d2(S, b)), S);
11779
+ return l2 && (h2 = l2(h2)), !!o(h2) && (false !== e4 && 0 === parseFloat(h2.toFixed(e4)) && (h2 = 0), h2 < 0 && (m2 = true, h2 = Math.abs(h2)), false !== e4 && (h2 = a(h2, e4)), -1 !== (h2 = h2.toString()).indexOf(".") ? (g = (v = h2.split("."))[0], i2 && (y = i2 + v[1])) : g = h2, r2 && (g = t2(g).match(/.{1,3}/g), g = t2(g.join(t2(r2)))), m2 && c3 && (S += c3), n2 && (S += n2), m2 && p3 && (S += p3), S += g, S += y, s2 && (S += s2), d2 && (S = d2(S, b)), S);
11745
11780
  }
11746
- function l(e3, t3, n2, a2, s2, l2, u3, c3, p3, d2, f2, h2) {
11781
+ function l(e4, t3, n2, a2, s2, l2, u3, c3, p3, d2, f2, h2) {
11747
11782
  var m2, v = "";
11748
11783
  return f2 && (h2 = f2(h2)), !(!h2 || "string" != typeof h2) && (c3 && r(h2, c3) && (h2 = h2.replace(c3, ""), m2 = true), a2 && r(h2, a2) && (h2 = h2.replace(a2, "")), p3 && r(h2, p3) && (h2 = h2.replace(p3, ""), m2 = true), s2 && i(h2, s2) && (h2 = h2.slice(0, -1 * s2.length)), t3 && (h2 = h2.split(t3).join("")), n2 && (h2 = h2.replace(n2, ".")), m2 && (v += "-"), "" !== (v = (v += h2).replace(/[^0-9\.\-.]/g, "")) && (v = Number(v), u3 && (v = u3(v)), !!o(v) && v));
11749
11784
  }
11750
11785
  function u2(t3) {
11751
11786
  var r2, i2, o2, a2 = {};
11752
- for (void 0 === t3.suffix && (t3.suffix = t3.postfix), r2 = 0; r2 < e2.length; r2 += 1)
11753
- if (void 0 === (o2 = t3[i2 = e2[r2]]))
11787
+ for (void 0 === t3.suffix && (t3.suffix = t3.postfix), r2 = 0; r2 < e3.length; r2 += 1)
11788
+ if (void 0 === (o2 = t3[i2 = e3[r2]]))
11754
11789
  "negative" !== i2 || a2.negativeBefore ? "mark" === i2 && "." !== a2.thousand ? a2[i2] = "." : a2[i2] = false : a2[i2] = "-";
11755
11790
  else if ("decimals" === i2) {
11756
11791
  if (!(o2 >= 0 && o2 < 8))
@@ -11769,385 +11804,385 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
11769
11804
  }
11770
11805
  function c2(t3, r2, i2) {
11771
11806
  var n2, o2 = [];
11772
- for (n2 = 0; n2 < e2.length; n2 += 1)
11773
- o2.push(t3[e2[n2]]);
11807
+ for (n2 = 0; n2 < e3.length; n2 += 1)
11808
+ o2.push(t3[e3[n2]]);
11774
11809
  return o2.push(i2), r2.apply("", o2);
11775
11810
  }
11776
- function p2(e3) {
11811
+ function p2(e4) {
11777
11812
  if (!(this instanceof p2))
11778
- return new p2(e3);
11779
- "object" == typeof e3 && (e3 = u2(e3), this.to = function(t3) {
11780
- return c2(e3, s, t3);
11813
+ return new p2(e4);
11814
+ "object" == typeof e4 && (e4 = u2(e4), this.to = function(t3) {
11815
+ return c2(e4, s, t3);
11781
11816
  }, this.from = function(t3) {
11782
- return c2(e3, l, t3);
11817
+ return c2(e4, l, t3);
11783
11818
  });
11784
11819
  }
11785
11820
  return p2;
11786
11821
  }();
11787
11822
  });
11788
- var f = c(p(function(e, t) {
11789
- !function(e2) {
11790
- function t2(e3) {
11791
- return r(e3) && "function" == typeof e3.from;
11823
+ var f = c(p(function(e2, t) {
11824
+ !function(e3) {
11825
+ function t2(e4) {
11826
+ return r(e4) && "function" == typeof e4.from;
11792
11827
  }
11793
- function r(e3) {
11794
- return "object" == typeof e3 && "function" == typeof e3.to;
11828
+ function r(e4) {
11829
+ return "object" == typeof e4 && "function" == typeof e4.to;
11795
11830
  }
11796
- function i(e3) {
11797
- e3.parentElement.removeChild(e3);
11831
+ function i(e4) {
11832
+ e4.parentElement.removeChild(e4);
11798
11833
  }
11799
- function n(e3) {
11800
- return null != e3;
11834
+ function n(e4) {
11835
+ return null != e4;
11801
11836
  }
11802
- function o(e3) {
11803
- e3.preventDefault();
11837
+ function o(e4) {
11838
+ e4.preventDefault();
11804
11839
  }
11805
- function a(e3) {
11806
- return e3.filter(function(e4) {
11807
- return !this[e4] && (this[e4] = true);
11840
+ function a(e4) {
11841
+ return e4.filter(function(e5) {
11842
+ return !this[e5] && (this[e5] = true);
11808
11843
  }, {});
11809
11844
  }
11810
- function s(e3, t3) {
11811
- return Math.round(e3 / t3) * t3;
11845
+ function s(e4, t3) {
11846
+ return Math.round(e4 / t3) * t3;
11812
11847
  }
11813
- function l(e3, t3) {
11814
- var r2 = e3.getBoundingClientRect(), i2 = e3.ownerDocument, n2 = i2.documentElement, o2 = g(i2);
11848
+ function l(e4, t3) {
11849
+ var r2 = e4.getBoundingClientRect(), i2 = e4.ownerDocument, n2 = i2.documentElement, o2 = g(i2);
11815
11850
  return /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (o2.x = 0), t3 ? r2.top + o2.y - n2.clientTop : r2.left + o2.x - n2.clientLeft;
11816
11851
  }
11817
- function u2(e3) {
11818
- return "number" == typeof e3 && !isNaN(e3) && isFinite(e3);
11852
+ function u2(e4) {
11853
+ return "number" == typeof e4 && !isNaN(e4) && isFinite(e4);
11819
11854
  }
11820
- function c2(e3, t3, r2) {
11821
- r2 > 0 && (h2(e3, t3), setTimeout(function() {
11822
- m2(e3, t3);
11855
+ function c2(e4, t3, r2) {
11856
+ r2 > 0 && (h2(e4, t3), setTimeout(function() {
11857
+ m2(e4, t3);
11823
11858
  }, r2));
11824
11859
  }
11825
- function p2(e3) {
11826
- return Math.max(Math.min(e3, 100), 0);
11860
+ function p2(e4) {
11861
+ return Math.max(Math.min(e4, 100), 0);
11827
11862
  }
11828
- function d2(e3) {
11829
- return Array.isArray(e3) ? e3 : [e3];
11863
+ function d2(e4) {
11864
+ return Array.isArray(e4) ? e4 : [e4];
11830
11865
  }
11831
- function f2(e3) {
11832
- var t3 = (e3 = String(e3)).split(".");
11866
+ function f2(e4) {
11867
+ var t3 = (e4 = String(e4)).split(".");
11833
11868
  return t3.length > 1 ? t3[1].length : 0;
11834
11869
  }
11835
- function h2(e3, t3) {
11836
- e3.classList && !/\s/.test(t3) ? e3.classList.add(t3) : e3.className += " " + t3;
11870
+ function h2(e4, t3) {
11871
+ e4.classList && !/\s/.test(t3) ? e4.classList.add(t3) : e4.className += " " + t3;
11837
11872
  }
11838
- function m2(e3, t3) {
11839
- e3.classList && !/\s/.test(t3) ? e3.classList.remove(t3) : e3.className = e3.className.replace(new RegExp("(^|\\b)" + t3.split(" ").join("|") + "(\\b|$)", "gi"), " ");
11873
+ function m2(e4, t3) {
11874
+ e4.classList && !/\s/.test(t3) ? e4.classList.remove(t3) : e4.className = e4.className.replace(new RegExp("(^|\\b)" + t3.split(" ").join("|") + "(\\b|$)", "gi"), " ");
11840
11875
  }
11841
- function v(e3, t3) {
11842
- return e3.classList ? e3.classList.contains(t3) : new RegExp("\\b" + t3 + "\\b").test(e3.className);
11876
+ function v(e4, t3) {
11877
+ return e4.classList ? e4.classList.contains(t3) : new RegExp("\\b" + t3 + "\\b").test(e4.className);
11843
11878
  }
11844
- function g(e3) {
11845
- var t3 = void 0 !== window.pageXOffset, r2 = "CSS1Compat" === (e3.compatMode || "");
11846
- return { x: t3 ? window.pageXOffset : r2 ? e3.documentElement.scrollLeft : e3.body.scrollLeft, y: t3 ? window.pageYOffset : r2 ? e3.documentElement.scrollTop : e3.body.scrollTop };
11879
+ function g(e4) {
11880
+ var t3 = void 0 !== window.pageXOffset, r2 = "CSS1Compat" === (e4.compatMode || "");
11881
+ return { x: t3 ? window.pageXOffset : r2 ? e4.documentElement.scrollLeft : e4.body.scrollLeft, y: t3 ? window.pageYOffset : r2 ? e4.documentElement.scrollTop : e4.body.scrollTop };
11847
11882
  }
11848
11883
  function b() {
11849
11884
  return window.navigator.pointerEnabled ? { start: "pointerdown", move: "pointermove", end: "pointerup" } : window.navigator.msPointerEnabled ? { start: "MSPointerDown", move: "MSPointerMove", end: "MSPointerUp" } : { start: "mousedown touchstart", move: "mousemove touchmove", end: "mouseup touchend" };
11850
11885
  }
11851
11886
  function y() {
11852
- var e3 = false;
11887
+ var e4 = false;
11853
11888
  try {
11854
11889
  var t3 = Object.defineProperty({}, "passive", { get: function() {
11855
- e3 = true;
11890
+ e4 = true;
11856
11891
  } });
11857
11892
  window.addEventListener("test", null, t3);
11858
- } catch (e4) {
11893
+ } catch (e5) {
11859
11894
  }
11860
- return e3;
11895
+ return e4;
11861
11896
  }
11862
11897
  function S() {
11863
11898
  return window.CSS && CSS.supports && CSS.supports("touch-action", "none");
11864
11899
  }
11865
- function x(e3, t3) {
11866
- return 100 / (t3 - e3);
11900
+ function x(e4, t3) {
11901
+ return 100 / (t3 - e4);
11867
11902
  }
11868
- function w(e3, t3, r2) {
11869
- return 100 * t3 / (e3[r2 + 1] - e3[r2]);
11903
+ function w(e4, t3, r2) {
11904
+ return 100 * t3 / (e4[r2 + 1] - e4[r2]);
11870
11905
  }
11871
- function E(e3, t3) {
11872
- return w(e3, e3[0] < 0 ? t3 + Math.abs(e3[0]) : t3 - e3[0], 0);
11906
+ function E(e4, t3) {
11907
+ return w(e4, e4[0] < 0 ? t3 + Math.abs(e4[0]) : t3 - e4[0], 0);
11873
11908
  }
11874
- function P(e3, t3) {
11875
- return t3 * (e3[1] - e3[0]) / 100 + e3[0];
11909
+ function P(e4, t3) {
11910
+ return t3 * (e4[1] - e4[0]) / 100 + e4[0];
11876
11911
  }
11877
- function N(e3, t3) {
11878
- for (var r2 = 1; e3 >= t3[r2]; )
11912
+ function N(e4, t3) {
11913
+ for (var r2 = 1; e4 >= t3[r2]; )
11879
11914
  r2 += 1;
11880
11915
  return r2;
11881
11916
  }
11882
- function C(e3, t3, r2) {
11883
- if (r2 >= e3.slice(-1)[0])
11917
+ function C(e4, t3, r2) {
11918
+ if (r2 >= e4.slice(-1)[0])
11884
11919
  return 100;
11885
- var i2 = N(r2, e3), n2 = e3[i2 - 1], o2 = e3[i2], a2 = t3[i2 - 1], s2 = t3[i2];
11920
+ var i2 = N(r2, e4), n2 = e4[i2 - 1], o2 = e4[i2], a2 = t3[i2 - 1], s2 = t3[i2];
11886
11921
  return a2 + E([n2, o2], r2) / x(a2, s2);
11887
11922
  }
11888
- function k(e3, t3, r2) {
11923
+ function k(e4, t3, r2) {
11889
11924
  if (r2 >= 100)
11890
- return e3.slice(-1)[0];
11891
- var i2 = N(r2, t3), n2 = e3[i2 - 1], o2 = e3[i2], a2 = t3[i2 - 1];
11925
+ return e4.slice(-1)[0];
11926
+ var i2 = N(r2, t3), n2 = e4[i2 - 1], o2 = e4[i2], a2 = t3[i2 - 1];
11892
11927
  return P([n2, o2], (r2 - a2) * x(a2, t3[i2]));
11893
11928
  }
11894
- function V(e3, t3, r2, i2) {
11929
+ function V(e4, t3, r2, i2) {
11895
11930
  if (100 === i2)
11896
11931
  return i2;
11897
- var n2 = N(i2, e3), o2 = e3[n2 - 1], a2 = e3[n2];
11898
- return r2 ? i2 - o2 > (a2 - o2) / 2 ? a2 : o2 : t3[n2 - 1] ? e3[n2 - 1] + s(i2 - e3[n2 - 1], t3[n2 - 1]) : i2;
11932
+ var n2 = N(i2, e4), o2 = e4[n2 - 1], a2 = e4[n2];
11933
+ return r2 ? i2 - o2 > (a2 - o2) / 2 ? a2 : o2 : t3[n2 - 1] ? e4[n2 - 1] + s(i2 - e4[n2 - 1], t3[n2 - 1]) : i2;
11899
11934
  }
11900
11935
  var A, M;
11901
- e2.PipsMode = void 0, (M = e2.PipsMode || (e2.PipsMode = {})).Range = "range", M.Steps = "steps", M.Positions = "positions", M.Count = "count", M.Values = "values", e2.PipsType = void 0, (A = e2.PipsType || (e2.PipsType = {}))[A.None = -1] = "None", A[A.NoValue = 0] = "NoValue", A[A.LargeValue = 1] = "LargeValue", A[A.SmallValue = 2] = "SmallValue";
11936
+ e3.PipsMode = void 0, (M = e3.PipsMode || (e3.PipsMode = {})).Range = "range", M.Steps = "steps", M.Positions = "positions", M.Count = "count", M.Values = "values", e3.PipsType = void 0, (A = e3.PipsType || (e3.PipsType = {}))[A.None = -1] = "None", A[A.NoValue = 0] = "NoValue", A[A.LargeValue = 1] = "LargeValue", A[A.SmallValue = 2] = "SmallValue";
11902
11937
  var L = function() {
11903
- function e3(e4, t3, r2) {
11938
+ function e4(e5, t3, r2) {
11904
11939
  var i2;
11905
11940
  this.xPct = [], this.xVal = [], this.xSteps = [], this.xNumSteps = [], this.xHighestCompleteStep = [], this.xSteps = [r2 || false], this.xNumSteps = [false], this.snap = t3;
11906
11941
  var n2 = [];
11907
- for (Object.keys(e4).forEach(function(t4) {
11908
- n2.push([d2(e4[t4]), t4]);
11909
- }), n2.sort(function(e5, t4) {
11910
- return e5[0][0] - t4[0][0];
11942
+ for (Object.keys(e5).forEach(function(t4) {
11943
+ n2.push([d2(e5[t4]), t4]);
11944
+ }), n2.sort(function(e6, t4) {
11945
+ return e6[0][0] - t4[0][0];
11911
11946
  }), i2 = 0; i2 < n2.length; i2++)
11912
11947
  this.handleEntryPoint(n2[i2][1], n2[i2][0]);
11913
11948
  for (this.xNumSteps = this.xSteps.slice(0), i2 = 0; i2 < this.xNumSteps.length; i2++)
11914
11949
  this.handleStepPoint(i2, this.xNumSteps[i2]);
11915
11950
  }
11916
- return e3.prototype.getDistance = function(e4) {
11951
+ return e4.prototype.getDistance = function(e5) {
11917
11952
  for (var t3 = [], r2 = 0; r2 < this.xNumSteps.length - 1; r2++)
11918
- t3[r2] = w(this.xVal, e4, r2);
11953
+ t3[r2] = w(this.xVal, e5, r2);
11919
11954
  return t3;
11920
- }, e3.prototype.getAbsoluteDistance = function(e4, t3, r2) {
11955
+ }, e4.prototype.getAbsoluteDistance = function(e5, t3, r2) {
11921
11956
  var i2, n2 = 0;
11922
- if (e4 < this.xPct[this.xPct.length - 1])
11923
- for (; e4 > this.xPct[n2 + 1]; )
11957
+ if (e5 < this.xPct[this.xPct.length - 1])
11958
+ for (; e5 > this.xPct[n2 + 1]; )
11924
11959
  n2++;
11925
11960
  else
11926
- e4 === this.xPct[this.xPct.length - 1] && (n2 = this.xPct.length - 2);
11927
- r2 || e4 !== this.xPct[n2 + 1] || n2++, null === t3 && (t3 = []);
11961
+ e5 === this.xPct[this.xPct.length - 1] && (n2 = this.xPct.length - 2);
11962
+ r2 || e5 !== this.xPct[n2 + 1] || n2++, null === t3 && (t3 = []);
11928
11963
  var o2 = 1, a2 = t3[n2], s2 = 0, l2 = 0, u3 = 0, c3 = 0;
11929
- for (i2 = r2 ? (e4 - this.xPct[n2]) / (this.xPct[n2 + 1] - this.xPct[n2]) : (this.xPct[n2 + 1] - e4) / (this.xPct[n2 + 1] - this.xPct[n2]); a2 > 0; )
11964
+ for (i2 = r2 ? (e5 - this.xPct[n2]) / (this.xPct[n2 + 1] - this.xPct[n2]) : (this.xPct[n2 + 1] - e5) / (this.xPct[n2 + 1] - this.xPct[n2]); a2 > 0; )
11930
11965
  s2 = this.xPct[n2 + 1 + c3] - this.xPct[n2 + c3], t3[n2 + c3] * o2 + 100 - 100 * i2 > 100 ? (l2 = s2 * i2, o2 = (a2 - 100 * i2) / t3[n2 + c3], i2 = 1) : (l2 = t3[n2 + c3] * s2 / 100 * o2, o2 = 0), r2 ? (u3 -= l2, this.xPct.length + c3 >= 1 && c3--) : (u3 += l2, this.xPct.length - c3 >= 1 && c3++), a2 = t3[n2 + c3] * o2;
11931
- return e4 + u3;
11932
- }, e3.prototype.toStepping = function(e4) {
11933
- return e4 = C(this.xVal, this.xPct, e4);
11934
- }, e3.prototype.fromStepping = function(e4) {
11935
- return k(this.xVal, this.xPct, e4);
11936
- }, e3.prototype.getStep = function(e4) {
11937
- return e4 = V(this.xPct, this.xSteps, this.snap, e4);
11938
- }, e3.prototype.getDefaultStep = function(e4, t3, r2) {
11939
- var i2 = N(e4, this.xPct);
11940
- return (100 === e4 || t3 && e4 === this.xPct[i2 - 1]) && (i2 = Math.max(i2 - 1, 1)), (this.xVal[i2] - this.xVal[i2 - 1]) / r2;
11941
- }, e3.prototype.getNearbySteps = function(e4) {
11942
- var t3 = N(e4, this.xPct);
11966
+ return e5 + u3;
11967
+ }, e4.prototype.toStepping = function(e5) {
11968
+ return e5 = C(this.xVal, this.xPct, e5);
11969
+ }, e4.prototype.fromStepping = function(e5) {
11970
+ return k(this.xVal, this.xPct, e5);
11971
+ }, e4.prototype.getStep = function(e5) {
11972
+ return e5 = V(this.xPct, this.xSteps, this.snap, e5);
11973
+ }, e4.prototype.getDefaultStep = function(e5, t3, r2) {
11974
+ var i2 = N(e5, this.xPct);
11975
+ return (100 === e5 || t3 && e5 === this.xPct[i2 - 1]) && (i2 = Math.max(i2 - 1, 1)), (this.xVal[i2] - this.xVal[i2 - 1]) / r2;
11976
+ }, e4.prototype.getNearbySteps = function(e5) {
11977
+ var t3 = N(e5, this.xPct);
11943
11978
  return { stepBefore: { startValue: this.xVal[t3 - 2], step: this.xNumSteps[t3 - 2], highestStep: this.xHighestCompleteStep[t3 - 2] }, thisStep: { startValue: this.xVal[t3 - 1], step: this.xNumSteps[t3 - 1], highestStep: this.xHighestCompleteStep[t3 - 1] }, stepAfter: { startValue: this.xVal[t3], step: this.xNumSteps[t3], highestStep: this.xHighestCompleteStep[t3] } };
11944
- }, e3.prototype.countStepDecimals = function() {
11945
- var e4 = this.xNumSteps.map(f2);
11946
- return Math.max.apply(null, e4);
11947
- }, e3.prototype.hasNoSize = function() {
11979
+ }, e4.prototype.countStepDecimals = function() {
11980
+ var e5 = this.xNumSteps.map(f2);
11981
+ return Math.max.apply(null, e5);
11982
+ }, e4.prototype.hasNoSize = function() {
11948
11983
  return this.xVal[0] === this.xVal[this.xVal.length - 1];
11949
- }, e3.prototype.convert = function(e4) {
11950
- return this.getStep(this.toStepping(e4));
11951
- }, e3.prototype.handleEntryPoint = function(e4, t3) {
11984
+ }, e4.prototype.convert = function(e5) {
11985
+ return this.getStep(this.toStepping(e5));
11986
+ }, e4.prototype.handleEntryPoint = function(e5, t3) {
11952
11987
  var r2;
11953
- if (!u2(r2 = "min" === e4 ? 0 : "max" === e4 ? 100 : parseFloat(e4)) || !u2(t3[0]))
11988
+ if (!u2(r2 = "min" === e5 ? 0 : "max" === e5 ? 100 : parseFloat(e5)) || !u2(t3[0]))
11954
11989
  throw new Error("noUiSlider: 'range' value isn't numeric.");
11955
11990
  this.xPct.push(r2), this.xVal.push(t3[0]);
11956
11991
  var i2 = Number(t3[1]);
11957
11992
  r2 ? this.xSteps.push(!isNaN(i2) && i2) : isNaN(i2) || (this.xSteps[0] = i2), this.xHighestCompleteStep.push(0);
11958
- }, e3.prototype.handleStepPoint = function(e4, t3) {
11993
+ }, e4.prototype.handleStepPoint = function(e5, t3) {
11959
11994
  if (t3)
11960
- if (this.xVal[e4] !== this.xVal[e4 + 1]) {
11961
- this.xSteps[e4] = w([this.xVal[e4], this.xVal[e4 + 1]], t3, 0) / x(this.xPct[e4], this.xPct[e4 + 1]);
11962
- var r2 = (this.xVal[e4 + 1] - this.xVal[e4]) / this.xNumSteps[e4], i2 = Math.ceil(Number(r2.toFixed(3)) - 1), n2 = this.xVal[e4] + this.xNumSteps[e4] * i2;
11963
- this.xHighestCompleteStep[e4] = n2;
11995
+ if (this.xVal[e5] !== this.xVal[e5 + 1]) {
11996
+ this.xSteps[e5] = w([this.xVal[e5], this.xVal[e5 + 1]], t3, 0) / x(this.xPct[e5], this.xPct[e5 + 1]);
11997
+ var r2 = (this.xVal[e5 + 1] - this.xVal[e5]) / this.xNumSteps[e5], i2 = Math.ceil(Number(r2.toFixed(3)) - 1), n2 = this.xVal[e5] + this.xNumSteps[e5] * i2;
11998
+ this.xHighestCompleteStep[e5] = n2;
11964
11999
  } else
11965
- this.xSteps[e4] = this.xHighestCompleteStep[e4] = this.xVal[e4];
11966
- }, e3;
11967
- }(), U = { to: function(e3) {
11968
- return void 0 === e3 ? "" : e3.toFixed(2);
12000
+ this.xSteps[e5] = this.xHighestCompleteStep[e5] = this.xVal[e5];
12001
+ }, e4;
12002
+ }(), U = { to: function(e4) {
12003
+ return void 0 === e4 ? "" : e4.toFixed(2);
11969
12004
  }, from: Number }, O = { target: "target", base: "base", origin: "origin", handle: "handle", handleLower: "handle-lower", handleUpper: "handle-upper", touchArea: "touch-area", horizontal: "horizontal", vertical: "vertical", background: "background", connect: "connect", connects: "connects", ltr: "ltr", rtl: "rtl", textDirectionLtr: "txt-dir-ltr", textDirectionRtl: "txt-dir-rtl", draggable: "draggable", drag: "state-drag", tap: "state-tap", active: "active", tooltip: "tooltip", pips: "pips", pipsHorizontal: "pips-horizontal", pipsVertical: "pips-vertical", marker: "marker", markerHorizontal: "marker-horizontal", markerVertical: "marker-vertical", markerNormal: "marker-normal", markerLarge: "marker-large", markerSub: "marker-sub", value: "value", valueHorizontal: "value-horizontal", valueVertical: "value-vertical", valueNormal: "value-normal", valueLarge: "value-large", valueSub: "value-sub" }, D = { tooltips: ".__tooltips", aria: ".__aria" };
11970
- function j(e3, t3) {
12005
+ function j(e4, t3) {
11971
12006
  if (!u2(t3))
11972
12007
  throw new Error("noUiSlider: 'step' is not numeric.");
11973
- e3.singleStep = t3;
12008
+ e4.singleStep = t3;
11974
12009
  }
11975
- function F(e3, t3) {
12010
+ function F(e4, t3) {
11976
12011
  if (!u2(t3))
11977
12012
  throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");
11978
- e3.keyboardPageMultiplier = t3;
12013
+ e4.keyboardPageMultiplier = t3;
11979
12014
  }
11980
- function T(e3, t3) {
12015
+ function T(e4, t3) {
11981
12016
  if (!u2(t3))
11982
12017
  throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");
11983
- e3.keyboardMultiplier = t3;
12018
+ e4.keyboardMultiplier = t3;
11984
12019
  }
11985
- function z(e3, t3) {
12020
+ function z(e4, t3) {
11986
12021
  if (!u2(t3))
11987
12022
  throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");
11988
- e3.keyboardDefaultStep = t3;
12023
+ e4.keyboardDefaultStep = t3;
11989
12024
  }
11990
- function H(e3, t3) {
12025
+ function H(e4, t3) {
11991
12026
  if ("object" != typeof t3 || Array.isArray(t3))
11992
12027
  throw new Error("noUiSlider: 'range' is not an object.");
11993
12028
  if (void 0 === t3.min || void 0 === t3.max)
11994
12029
  throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");
11995
- e3.spectrum = new L(t3, e3.snap || false, e3.singleStep);
12030
+ e4.spectrum = new L(t3, e4.snap || false, e4.singleStep);
11996
12031
  }
11997
- function q(e3, t3) {
12032
+ function q(e4, t3) {
11998
12033
  if (t3 = d2(t3), !Array.isArray(t3) || !t3.length)
11999
12034
  throw new Error("noUiSlider: 'start' option is incorrect.");
12000
- e3.handles = t3.length, e3.start = t3;
12035
+ e4.handles = t3.length, e4.start = t3;
12001
12036
  }
12002
- function R(e3, t3) {
12037
+ function R(e4, t3) {
12003
12038
  if ("boolean" != typeof t3)
12004
12039
  throw new Error("noUiSlider: 'snap' option must be a boolean.");
12005
- e3.snap = t3;
12040
+ e4.snap = t3;
12006
12041
  }
12007
- function B(e3, t3) {
12042
+ function B(e4, t3) {
12008
12043
  if ("boolean" != typeof t3)
12009
12044
  throw new Error("noUiSlider: 'animate' option must be a boolean.");
12010
- e3.animate = t3;
12045
+ e4.animate = t3;
12011
12046
  }
12012
- function _(e3, t3) {
12047
+ function _(e4, t3) {
12013
12048
  if ("number" != typeof t3)
12014
12049
  throw new Error("noUiSlider: 'animationDuration' option must be a number.");
12015
- e3.animationDuration = t3;
12050
+ e4.animationDuration = t3;
12016
12051
  }
12017
- function $(e3, t3) {
12052
+ function $(e4, t3) {
12018
12053
  var r2, i2 = [false];
12019
12054
  if ("lower" === t3 ? t3 = [true, false] : "upper" === t3 && (t3 = [false, true]), true === t3 || false === t3) {
12020
- for (r2 = 1; r2 < e3.handles; r2++)
12055
+ for (r2 = 1; r2 < e4.handles; r2++)
12021
12056
  i2.push(t3);
12022
12057
  i2.push(false);
12023
12058
  } else {
12024
- if (!Array.isArray(t3) || !t3.length || t3.length !== e3.handles + 1)
12059
+ if (!Array.isArray(t3) || !t3.length || t3.length !== e4.handles + 1)
12025
12060
  throw new Error("noUiSlider: 'connect' option doesn't match handle count.");
12026
12061
  i2 = t3;
12027
12062
  }
12028
- e3.connect = i2;
12063
+ e4.connect = i2;
12029
12064
  }
12030
- function X(e3, t3) {
12065
+ function X(e4, t3) {
12031
12066
  switch (t3) {
12032
12067
  case "horizontal":
12033
- e3.ort = 0;
12068
+ e4.ort = 0;
12034
12069
  break;
12035
12070
  case "vertical":
12036
- e3.ort = 1;
12071
+ e4.ort = 1;
12037
12072
  break;
12038
12073
  default:
12039
12074
  throw new Error("noUiSlider: 'orientation' option is invalid.");
12040
12075
  }
12041
12076
  }
12042
- function Y(e3, t3) {
12077
+ function Y(e4, t3) {
12043
12078
  if (!u2(t3))
12044
12079
  throw new Error("noUiSlider: 'margin' option must be numeric.");
12045
- 0 !== t3 && (e3.margin = e3.spectrum.getDistance(t3));
12080
+ 0 !== t3 && (e4.margin = e4.spectrum.getDistance(t3));
12046
12081
  }
12047
- function I(e3, t3) {
12082
+ function I(e4, t3) {
12048
12083
  if (!u2(t3))
12049
12084
  throw new Error("noUiSlider: 'limit' option must be numeric.");
12050
- if (e3.limit = e3.spectrum.getDistance(t3), !e3.limit || e3.handles < 2)
12085
+ if (e4.limit = e4.spectrum.getDistance(t3), !e4.limit || e4.handles < 2)
12051
12086
  throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.");
12052
12087
  }
12053
- function W(e3, t3) {
12088
+ function W(e4, t3) {
12054
12089
  var r2;
12055
12090
  if (!u2(t3) && !Array.isArray(t3))
12056
12091
  throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
12057
12092
  if (Array.isArray(t3) && 2 !== t3.length && !u2(t3[0]) && !u2(t3[1]))
12058
12093
  throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
12059
12094
  if (0 !== t3) {
12060
- for (Array.isArray(t3) || (t3 = [t3, t3]), e3.padding = [e3.spectrum.getDistance(t3[0]), e3.spectrum.getDistance(t3[1])], r2 = 0; r2 < e3.spectrum.xNumSteps.length - 1; r2++)
12061
- if (e3.padding[0][r2] < 0 || e3.padding[1][r2] < 0)
12095
+ for (Array.isArray(t3) || (t3 = [t3, t3]), e4.padding = [e4.spectrum.getDistance(t3[0]), e4.spectrum.getDistance(t3[1])], r2 = 0; r2 < e4.spectrum.xNumSteps.length - 1; r2++)
12096
+ if (e4.padding[0][r2] < 0 || e4.padding[1][r2] < 0)
12062
12097
  throw new Error("noUiSlider: 'padding' option must be a positive number(s).");
12063
- var i2 = t3[0] + t3[1], n2 = e3.spectrum.xVal[0];
12064
- if (i2 / (e3.spectrum.xVal[e3.spectrum.xVal.length - 1] - n2) > 1)
12098
+ var i2 = t3[0] + t3[1], n2 = e4.spectrum.xVal[0];
12099
+ if (i2 / (e4.spectrum.xVal[e4.spectrum.xVal.length - 1] - n2) > 1)
12065
12100
  throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.");
12066
12101
  }
12067
12102
  }
12068
- function G(e3, t3) {
12103
+ function G(e4, t3) {
12069
12104
  switch (t3) {
12070
12105
  case "ltr":
12071
- e3.dir = 0;
12106
+ e4.dir = 0;
12072
12107
  break;
12073
12108
  case "rtl":
12074
- e3.dir = 1;
12109
+ e4.dir = 1;
12075
12110
  break;
12076
12111
  default:
12077
12112
  throw new Error("noUiSlider: 'direction' option was not recognized.");
12078
12113
  }
12079
12114
  }
12080
- function J(e3, t3) {
12115
+ function J(e4, t3) {
12081
12116
  if ("string" != typeof t3)
12082
12117
  throw new Error("noUiSlider: 'behaviour' must be a string containing options.");
12083
12118
  var r2 = t3.indexOf("tap") >= 0, i2 = t3.indexOf("drag") >= 0, n2 = t3.indexOf("fixed") >= 0, o2 = t3.indexOf("snap") >= 0, a2 = t3.indexOf("hover") >= 0, s2 = t3.indexOf("unconstrained") >= 0, l2 = t3.indexOf("drag-all") >= 0, u3 = t3.indexOf("smooth-steps") >= 0;
12084
12119
  if (n2) {
12085
- if (2 !== e3.handles)
12120
+ if (2 !== e4.handles)
12086
12121
  throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");
12087
- Y(e3, e3.start[1] - e3.start[0]);
12122
+ Y(e4, e4.start[1] - e4.start[0]);
12088
12123
  }
12089
- if (s2 && (e3.margin || e3.limit))
12124
+ if (s2 && (e4.margin || e4.limit))
12090
12125
  throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");
12091
- e3.events = { tap: r2 || o2, drag: i2, dragAll: l2, smoothSteps: u3, fixed: n2, snap: o2, hover: a2, unconstrained: s2 };
12126
+ e4.events = { tap: r2 || o2, drag: i2, dragAll: l2, smoothSteps: u3, fixed: n2, snap: o2, hover: a2, unconstrained: s2 };
12092
12127
  }
12093
- function K(e3, t3) {
12128
+ function K(e4, t3) {
12094
12129
  if (false !== t3)
12095
12130
  if (true === t3 || r(t3)) {
12096
- e3.tooltips = [];
12097
- for (var i2 = 0; i2 < e3.handles; i2++)
12098
- e3.tooltips.push(t3);
12131
+ e4.tooltips = [];
12132
+ for (var i2 = 0; i2 < e4.handles; i2++)
12133
+ e4.tooltips.push(t3);
12099
12134
  } else {
12100
- if ((t3 = d2(t3)).length !== e3.handles)
12135
+ if ((t3 = d2(t3)).length !== e4.handles)
12101
12136
  throw new Error("noUiSlider: must pass a formatter for all handles.");
12102
- t3.forEach(function(e4) {
12103
- if ("boolean" != typeof e4 && !r(e4))
12137
+ t3.forEach(function(e5) {
12138
+ if ("boolean" != typeof e5 && !r(e5))
12104
12139
  throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.");
12105
- }), e3.tooltips = t3;
12140
+ }), e4.tooltips = t3;
12106
12141
  }
12107
12142
  }
12108
- function Q(e3, t3) {
12109
- if (t3.length !== e3.handles)
12143
+ function Q(e4, t3) {
12144
+ if (t3.length !== e4.handles)
12110
12145
  throw new Error("noUiSlider: must pass a attributes for all handles.");
12111
- e3.handleAttributes = t3;
12146
+ e4.handleAttributes = t3;
12112
12147
  }
12113
- function Z(e3, t3) {
12148
+ function Z(e4, t3) {
12114
12149
  if (!r(t3))
12115
12150
  throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");
12116
- e3.ariaFormat = t3;
12151
+ e4.ariaFormat = t3;
12117
12152
  }
12118
- function ee(e3, r2) {
12153
+ function ee(e4, r2) {
12119
12154
  if (!t2(r2))
12120
12155
  throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");
12121
- e3.format = r2;
12156
+ e4.format = r2;
12122
12157
  }
12123
- function te(e3, t3) {
12158
+ function te(e4, t3) {
12124
12159
  if ("boolean" != typeof t3)
12125
12160
  throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");
12126
- e3.keyboardSupport = t3;
12161
+ e4.keyboardSupport = t3;
12127
12162
  }
12128
- function re(e3, t3) {
12129
- e3.documentElement = t3;
12163
+ function re(e4, t3) {
12164
+ e4.documentElement = t3;
12130
12165
  }
12131
- function ie(e3, t3) {
12166
+ function ie(e4, t3) {
12132
12167
  if ("string" != typeof t3 && false !== t3)
12133
12168
  throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");
12134
- e3.cssPrefix = t3;
12169
+ e4.cssPrefix = t3;
12135
12170
  }
12136
- function ne(e3, t3) {
12171
+ function ne(e4, t3) {
12137
12172
  if ("object" != typeof t3)
12138
12173
  throw new Error("noUiSlider: 'cssClasses' must be an object.");
12139
- "string" == typeof e3.cssPrefix ? (e3.cssClasses = {}, Object.keys(t3).forEach(function(r2) {
12140
- e3.cssClasses[r2] = e3.cssPrefix + t3[r2];
12141
- })) : e3.cssClasses = t3;
12174
+ "string" == typeof e4.cssPrefix ? (e4.cssClasses = {}, Object.keys(t3).forEach(function(r2) {
12175
+ e4.cssClasses[r2] = e4.cssPrefix + t3[r2];
12176
+ })) : e4.cssClasses = t3;
12142
12177
  }
12143
- function oe(e3) {
12178
+ function oe(e4) {
12144
12179
  var t3 = { margin: null, limit: null, padding: null, animate: true, animationDuration: 300, ariaFormat: U, format: U }, r2 = { step: { r: false, t: j }, keyboardPageMultiplier: { r: false, t: F }, keyboardMultiplier: { r: false, t: T }, keyboardDefaultStep: { r: false, t: z }, start: { r: true, t: q }, connect: { r: true, t: $ }, direction: { r: true, t: G }, snap: { r: false, t: R }, animate: { r: false, t: B }, animationDuration: { r: false, t: _ }, range: { r: true, t: H }, orientation: { r: false, t: X }, margin: { r: false, t: Y }, limit: { r: false, t: I }, padding: { r: false, t: W }, behaviour: { r: true, t: J }, ariaFormat: { r: false, t: Z }, format: { r: false, t: ee }, tooltips: { r: false, t: K }, keyboardSupport: { r: true, t: te }, documentElement: { r: false, t: re }, cssPrefix: { r: true, t: ie }, cssClasses: { r: true, t: ne }, handleAttributes: { r: false, t: Q } }, i2 = { connect: false, direction: "ltr", behaviour: "tap", orientation: "horizontal", keyboardSupport: true, cssPrefix: "noUi-", cssClasses: O, keyboardPageMultiplier: 5, keyboardMultiplier: 1, keyboardDefaultStep: 10 };
12145
- e3.format && !e3.ariaFormat && (e3.ariaFormat = e3.format), Object.keys(r2).forEach(function(o3) {
12146
- if (n(e3[o3]) || void 0 !== i2[o3])
12147
- r2[o3].t(t3, n(e3[o3]) ? e3[o3] : i2[o3]);
12180
+ e4.format && !e4.ariaFormat && (e4.ariaFormat = e4.format), Object.keys(r2).forEach(function(o3) {
12181
+ if (n(e4[o3]) || void 0 !== i2[o3])
12182
+ r2[o3].t(t3, n(e4[o3]) ? e4[o3] : i2[o3]);
12148
12183
  else if (r2[o3].r)
12149
12184
  throw new Error("noUiSlider: '" + o3 + "' is required.");
12150
- }), t3.pips = e3.pips;
12185
+ }), t3.pips = e4.pips;
12151
12186
  var o2 = document.createElement("div"), a2 = void 0 !== o2.style.msTransform, s2 = void 0 !== o2.style.transform;
12152
12187
  t3.transformRule = s2 ? "transform" : a2 ? "msTransform" : "webkitTransform";
12153
12188
  var l2 = [["left", "top"], ["right", "bottom"]];
@@ -12155,226 +12190,226 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12155
12190
  }
12156
12191
  function ae(t3, r2, s2) {
12157
12192
  var u3, f3, x2, w2, E2, P2 = b(), N2 = S() && y(), C2 = t3, k2 = r2.spectrum, V2 = [], A2 = [], M2 = [], L2 = 0, U2 = {}, O2 = t3.ownerDocument, j2 = r2.documentElement || O2.documentElement, F2 = O2.body, T2 = "rtl" === O2.dir || 1 === r2.ort ? 0 : 100;
12158
- function z2(e3, t4) {
12193
+ function z2(e4, t4) {
12159
12194
  var r3 = O2.createElement("div");
12160
- return t4 && h2(r3, t4), e3.appendChild(r3), r3;
12195
+ return t4 && h2(r3, t4), e4.appendChild(r3), r3;
12161
12196
  }
12162
- function H2(e3, t4) {
12163
- var i2 = z2(e3, r2.cssClasses.origin), n2 = z2(i2, r2.cssClasses.handle);
12164
- if (z2(n2, r2.cssClasses.touchArea), n2.setAttribute("data-handle", String(t4)), r2.keyboardSupport && (n2.setAttribute("tabindex", "0"), n2.addEventListener("keydown", function(e4) {
12165
- return fe(e4, t4);
12197
+ function H2(e4, t4) {
12198
+ var i2 = z2(e4, r2.cssClasses.origin), n2 = z2(i2, r2.cssClasses.handle);
12199
+ if (z2(n2, r2.cssClasses.touchArea), n2.setAttribute("data-handle", String(t4)), r2.keyboardSupport && (n2.setAttribute("tabindex", "0"), n2.addEventListener("keydown", function(e5) {
12200
+ return fe(e5, t4);
12166
12201
  })), void 0 !== r2.handleAttributes) {
12167
12202
  var o2 = r2.handleAttributes[t4];
12168
- Object.keys(o2).forEach(function(e4) {
12169
- n2.setAttribute(e4, o2[e4]);
12203
+ Object.keys(o2).forEach(function(e5) {
12204
+ n2.setAttribute(e5, o2[e5]);
12170
12205
  });
12171
12206
  }
12172
12207
  return n2.setAttribute("role", "slider"), n2.setAttribute("aria-orientation", r2.ort ? "vertical" : "horizontal"), 0 === t4 ? h2(n2, r2.cssClasses.handleLower) : t4 === r2.handles - 1 && h2(n2, r2.cssClasses.handleUpper), i2;
12173
12208
  }
12174
- function q2(e3, t4) {
12175
- return !!t4 && z2(e3, r2.cssClasses.connect);
12209
+ function q2(e4, t4) {
12210
+ return !!t4 && z2(e4, r2.cssClasses.connect);
12176
12211
  }
12177
- function R2(e3, t4) {
12212
+ function R2(e4, t4) {
12178
12213
  var i2 = z2(t4, r2.cssClasses.connects);
12179
- f3 = [], (x2 = []).push(q2(i2, e3[0]));
12214
+ f3 = [], (x2 = []).push(q2(i2, e4[0]));
12180
12215
  for (var n2 = 0; n2 < r2.handles; n2++)
12181
- f3.push(H2(t4, n2)), M2[n2] = n2, x2.push(q2(i2, e3[n2 + 1]));
12216
+ f3.push(H2(t4, n2)), M2[n2] = n2, x2.push(q2(i2, e4[n2 + 1]));
12182
12217
  }
12183
- function B2(e3) {
12184
- return h2(e3, r2.cssClasses.target), 0 === r2.dir ? h2(e3, r2.cssClasses.ltr) : h2(e3, r2.cssClasses.rtl), 0 === r2.ort ? h2(e3, r2.cssClasses.horizontal) : h2(e3, r2.cssClasses.vertical), h2(e3, "rtl" === getComputedStyle(e3).direction ? r2.cssClasses.textDirectionRtl : r2.cssClasses.textDirectionLtr), z2(e3, r2.cssClasses.base);
12218
+ function B2(e4) {
12219
+ return h2(e4, r2.cssClasses.target), 0 === r2.dir ? h2(e4, r2.cssClasses.ltr) : h2(e4, r2.cssClasses.rtl), 0 === r2.ort ? h2(e4, r2.cssClasses.horizontal) : h2(e4, r2.cssClasses.vertical), h2(e4, "rtl" === getComputedStyle(e4).direction ? r2.cssClasses.textDirectionRtl : r2.cssClasses.textDirectionLtr), z2(e4, r2.cssClasses.base);
12185
12220
  }
12186
- function _2(e3, t4) {
12187
- return !(!r2.tooltips || !r2.tooltips[t4]) && z2(e3.firstChild, r2.cssClasses.tooltip);
12221
+ function _2(e4, t4) {
12222
+ return !(!r2.tooltips || !r2.tooltips[t4]) && z2(e4.firstChild, r2.cssClasses.tooltip);
12188
12223
  }
12189
12224
  function $2() {
12190
12225
  return C2.hasAttribute("disabled");
12191
12226
  }
12192
- function X2(e3) {
12193
- return f3[e3].hasAttribute("disabled");
12227
+ function X2(e4) {
12228
+ return f3[e4].hasAttribute("disabled");
12194
12229
  }
12195
12230
  function Y2() {
12196
- E2 && (ge("update" + D.tooltips), E2.forEach(function(e3) {
12197
- e3 && i(e3);
12231
+ E2 && (ge("update" + D.tooltips), E2.forEach(function(e4) {
12232
+ e4 && i(e4);
12198
12233
  }), E2 = null);
12199
12234
  }
12200
12235
  function I2() {
12201
- Y2(), E2 = f3.map(_2), me("update" + D.tooltips, function(e3, t4, i2) {
12236
+ Y2(), E2 = f3.map(_2), me("update" + D.tooltips, function(e4, t4, i2) {
12202
12237
  if (E2 && r2.tooltips && false !== E2[t4]) {
12203
- var n2 = e3[t4];
12238
+ var n2 = e4[t4];
12204
12239
  true !== r2.tooltips[t4] && (n2 = r2.tooltips[t4].to(i2[t4])), E2[t4].innerHTML = n2;
12205
12240
  }
12206
12241
  });
12207
12242
  }
12208
12243
  function W2() {
12209
- ge("update" + D.aria), me("update" + D.aria, function(e3, t4, i2, n2, o2) {
12210
- M2.forEach(function(e4) {
12211
- var t5 = f3[e4], n3 = ye(A2, e4, 0, true, true, true), a2 = ye(A2, e4, 100, true, true, true), s3 = o2[e4], l2 = String(r2.ariaFormat.to(i2[e4]));
12244
+ ge("update" + D.aria), me("update" + D.aria, function(e4, t4, i2, n2, o2) {
12245
+ M2.forEach(function(e5) {
12246
+ var t5 = f3[e5], n3 = ye(A2, e5, 0, true, true, true), a2 = ye(A2, e5, 100, true, true, true), s3 = o2[e5], l2 = String(r2.ariaFormat.to(i2[e5]));
12212
12247
  n3 = k2.fromStepping(n3).toFixed(1), a2 = k2.fromStepping(a2).toFixed(1), s3 = k2.fromStepping(s3).toFixed(1), t5.children[0].setAttribute("aria-valuemin", n3), t5.children[0].setAttribute("aria-valuemax", a2), t5.children[0].setAttribute("aria-valuenow", s3), t5.children[0].setAttribute("aria-valuetext", l2);
12213
12248
  });
12214
12249
  });
12215
12250
  }
12216
12251
  function G2(t4) {
12217
- if (t4.mode === e2.PipsMode.Range || t4.mode === e2.PipsMode.Steps)
12252
+ if (t4.mode === e3.PipsMode.Range || t4.mode === e3.PipsMode.Steps)
12218
12253
  return k2.xVal;
12219
- if (t4.mode === e2.PipsMode.Count) {
12254
+ if (t4.mode === e3.PipsMode.Count) {
12220
12255
  if (t4.values < 2)
12221
12256
  throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");
12222
12257
  for (var r3 = t4.values - 1, i2 = 100 / r3, n2 = []; r3--; )
12223
12258
  n2[r3] = r3 * i2;
12224
12259
  return n2.push(100), J2(n2, t4.stepped);
12225
12260
  }
12226
- return t4.mode === e2.PipsMode.Positions ? J2(t4.values, t4.stepped) : t4.mode === e2.PipsMode.Values ? t4.stepped ? t4.values.map(function(e3) {
12227
- return k2.fromStepping(k2.getStep(k2.toStepping(e3)));
12261
+ return t4.mode === e3.PipsMode.Positions ? J2(t4.values, t4.stepped) : t4.mode === e3.PipsMode.Values ? t4.stepped ? t4.values.map(function(e4) {
12262
+ return k2.fromStepping(k2.getStep(k2.toStepping(e4)));
12228
12263
  }) : t4.values : [];
12229
12264
  }
12230
- function J2(e3, t4) {
12231
- return e3.map(function(e4) {
12232
- return k2.fromStepping(t4 ? k2.getStep(e4) : e4);
12265
+ function J2(e4, t4) {
12266
+ return e4.map(function(e5) {
12267
+ return k2.fromStepping(t4 ? k2.getStep(e5) : e5);
12233
12268
  });
12234
12269
  }
12235
12270
  function K2(t4) {
12236
- function r3(e3, t5) {
12237
- return Number((e3 + t5).toFixed(7));
12271
+ function r3(e4, t5) {
12272
+ return Number((e4 + t5).toFixed(7));
12238
12273
  }
12239
12274
  var i2 = G2(t4), n2 = {}, o2 = k2.xVal[0], s3 = k2.xVal[k2.xVal.length - 1], l2 = false, u4 = false, c3 = 0;
12240
- return (i2 = a(i2.slice().sort(function(e3, t5) {
12241
- return e3 - t5;
12275
+ return (i2 = a(i2.slice().sort(function(e4, t5) {
12276
+ return e4 - t5;
12242
12277
  })))[0] !== o2 && (i2.unshift(o2), l2 = true), i2[i2.length - 1] !== s3 && (i2.push(s3), u4 = true), i2.forEach(function(o3, a2) {
12243
- var s4, p3, d3, f4, h3, m3, v2, g2, b2, y2, S2 = o3, x3 = i2[a2 + 1], w3 = t4.mode === e2.PipsMode.Steps;
12278
+ var s4, p3, d3, f4, h3, m3, v2, g2, b2, y2, S2 = o3, x3 = i2[a2 + 1], w3 = t4.mode === e3.PipsMode.Steps;
12244
12279
  for (w3 && (s4 = k2.xNumSteps[a2]), s4 || (s4 = x3 - S2), void 0 === x3 && (x3 = S2), s4 = Math.max(s4, 1e-7), p3 = S2; p3 <= x3; p3 = r3(p3, s4)) {
12245
12280
  for (g2 = (h3 = (f4 = k2.toStepping(p3)) - c3) / (t4.density || 1), y2 = h3 / (b2 = Math.round(g2)), d3 = 1; d3 <= b2; d3 += 1)
12246
12281
  n2[(m3 = c3 + d3 * y2).toFixed(5)] = [k2.fromStepping(m3), 0];
12247
- v2 = i2.indexOf(p3) > -1 ? e2.PipsType.LargeValue : w3 ? e2.PipsType.SmallValue : e2.PipsType.NoValue, !a2 && l2 && p3 !== x3 && (v2 = 0), p3 === x3 && u4 || (n2[f4.toFixed(5)] = [p3, v2]), c3 = f4;
12282
+ v2 = i2.indexOf(p3) > -1 ? e3.PipsType.LargeValue : w3 ? e3.PipsType.SmallValue : e3.PipsType.NoValue, !a2 && l2 && p3 !== x3 && (v2 = 0), p3 === x3 && u4 || (n2[f4.toFixed(5)] = [p3, v2]), c3 = f4;
12248
12283
  }
12249
12284
  }), n2;
12250
12285
  }
12251
12286
  function Q2(t4, i2, n2) {
12252
- var o2, a2, s3 = O2.createElement("div"), l2 = ((o2 = {})[e2.PipsType.None] = "", o2[e2.PipsType.NoValue] = r2.cssClasses.valueNormal, o2[e2.PipsType.LargeValue] = r2.cssClasses.valueLarge, o2[e2.PipsType.SmallValue] = r2.cssClasses.valueSub, o2), u4 = ((a2 = {})[e2.PipsType.None] = "", a2[e2.PipsType.NoValue] = r2.cssClasses.markerNormal, a2[e2.PipsType.LargeValue] = r2.cssClasses.markerLarge, a2[e2.PipsType.SmallValue] = r2.cssClasses.markerSub, a2), c3 = [r2.cssClasses.valueHorizontal, r2.cssClasses.valueVertical], p3 = [r2.cssClasses.markerHorizontal, r2.cssClasses.markerVertical];
12253
- function d3(e3, t5) {
12287
+ var o2, a2, s3 = O2.createElement("div"), l2 = ((o2 = {})[e3.PipsType.None] = "", o2[e3.PipsType.NoValue] = r2.cssClasses.valueNormal, o2[e3.PipsType.LargeValue] = r2.cssClasses.valueLarge, o2[e3.PipsType.SmallValue] = r2.cssClasses.valueSub, o2), u4 = ((a2 = {})[e3.PipsType.None] = "", a2[e3.PipsType.NoValue] = r2.cssClasses.markerNormal, a2[e3.PipsType.LargeValue] = r2.cssClasses.markerLarge, a2[e3.PipsType.SmallValue] = r2.cssClasses.markerSub, a2), c3 = [r2.cssClasses.valueHorizontal, r2.cssClasses.valueVertical], p3 = [r2.cssClasses.markerHorizontal, r2.cssClasses.markerVertical];
12288
+ function d3(e4, t5) {
12254
12289
  var i3 = t5 === r2.cssClasses.value, n3 = i3 ? l2 : u4;
12255
- return t5 + " " + (i3 ? c3 : p3)[r2.ort] + " " + n3[e3];
12290
+ return t5 + " " + (i3 ? c3 : p3)[r2.ort] + " " + n3[e4];
12256
12291
  }
12257
12292
  function f4(t5, o3, a3) {
12258
- if ((a3 = i2 ? i2(o3, a3) : a3) !== e2.PipsType.None) {
12293
+ if ((a3 = i2 ? i2(o3, a3) : a3) !== e3.PipsType.None) {
12259
12294
  var l3 = z2(s3, false);
12260
- l3.className = d3(a3, r2.cssClasses.marker), l3.style[r2.style] = t5 + "%", a3 > e2.PipsType.NoValue && ((l3 = z2(s3, false)).className = d3(a3, r2.cssClasses.value), l3.setAttribute("data-value", String(o3)), l3.style[r2.style] = t5 + "%", l3.innerHTML = String(n2.to(o3)));
12295
+ l3.className = d3(a3, r2.cssClasses.marker), l3.style[r2.style] = t5 + "%", a3 > e3.PipsType.NoValue && ((l3 = z2(s3, false)).className = d3(a3, r2.cssClasses.value), l3.setAttribute("data-value", String(o3)), l3.style[r2.style] = t5 + "%", l3.innerHTML = String(n2.to(o3)));
12261
12296
  }
12262
12297
  }
12263
- return h2(s3, r2.cssClasses.pips), h2(s3, 0 === r2.ort ? r2.cssClasses.pipsHorizontal : r2.cssClasses.pipsVertical), Object.keys(t4).forEach(function(e3) {
12264
- f4(e3, t4[e3][0], t4[e3][1]);
12298
+ return h2(s3, r2.cssClasses.pips), h2(s3, 0 === r2.ort ? r2.cssClasses.pipsHorizontal : r2.cssClasses.pipsVertical), Object.keys(t4).forEach(function(e4) {
12299
+ f4(e4, t4[e4][0], t4[e4][1]);
12265
12300
  }), s3;
12266
12301
  }
12267
12302
  function Z2() {
12268
12303
  w2 && (i(w2), w2 = null);
12269
12304
  }
12270
- function ee2(e3) {
12305
+ function ee2(e4) {
12271
12306
  Z2();
12272
- var t4 = K2(e3), r3 = e3.filter, i2 = e3.format || { to: function(e4) {
12273
- return String(Math.round(e4));
12307
+ var t4 = K2(e4), r3 = e4.filter, i2 = e4.format || { to: function(e5) {
12308
+ return String(Math.round(e5));
12274
12309
  } };
12275
12310
  return w2 = C2.appendChild(Q2(t4, r3, i2));
12276
12311
  }
12277
12312
  function te2() {
12278
- var e3 = u3.getBoundingClientRect(), t4 = "offset" + ["Width", "Height"][r2.ort];
12279
- return 0 === r2.ort ? e3.width || u3[t4] : e3.height || u3[t4];
12313
+ var e4 = u3.getBoundingClientRect(), t4 = "offset" + ["Width", "Height"][r2.ort];
12314
+ return 0 === r2.ort ? e4.width || u3[t4] : e4.height || u3[t4];
12280
12315
  }
12281
- function re2(e3, t4, i2, n2) {
12316
+ function re2(e4, t4, i2, n2) {
12282
12317
  var o2 = function(o3) {
12283
12318
  var a3 = ie2(o3, n2.pageOffset, n2.target || t4);
12284
- return !!a3 && !($2() && !n2.doNotReject) && !(v(C2, r2.cssClasses.tap) && !n2.doNotReject) && !(e3 === P2.start && void 0 !== a3.buttons && a3.buttons > 1) && (!n2.hover || !a3.buttons) && (N2 || a3.preventDefault(), a3.calcPoint = a3.points[r2.ort], void i2(a3, n2));
12319
+ return !!a3 && !($2() && !n2.doNotReject) && !(v(C2, r2.cssClasses.tap) && !n2.doNotReject) && !(e4 === P2.start && void 0 !== a3.buttons && a3.buttons > 1) && (!n2.hover || !a3.buttons) && (N2 || a3.preventDefault(), a3.calcPoint = a3.points[r2.ort], void i2(a3, n2));
12285
12320
  }, a2 = [];
12286
- return e3.split(" ").forEach(function(e4) {
12287
- t4.addEventListener(e4, o2, !!N2 && { passive: true }), a2.push([e4, o2]);
12321
+ return e4.split(" ").forEach(function(e5) {
12322
+ t4.addEventListener(e5, o2, !!N2 && { passive: true }), a2.push([e5, o2]);
12288
12323
  }), a2;
12289
12324
  }
12290
- function ie2(e3, t4, r3) {
12291
- var i2 = 0 === e3.type.indexOf("touch"), n2 = 0 === e3.type.indexOf("mouse"), o2 = 0 === e3.type.indexOf("pointer"), a2 = 0, s3 = 0;
12292
- if (0 === e3.type.indexOf("MSPointer") && (o2 = true), "mousedown" === e3.type && !e3.buttons && !e3.touches)
12325
+ function ie2(e4, t4, r3) {
12326
+ var i2 = 0 === e4.type.indexOf("touch"), n2 = 0 === e4.type.indexOf("mouse"), o2 = 0 === e4.type.indexOf("pointer"), a2 = 0, s3 = 0;
12327
+ if (0 === e4.type.indexOf("MSPointer") && (o2 = true), "mousedown" === e4.type && !e4.buttons && !e4.touches)
12293
12328
  return false;
12294
12329
  if (i2) {
12295
12330
  var l2 = function(t5) {
12296
12331
  var i3 = t5.target;
12297
- return i3 === r3 || r3.contains(i3) || e3.composed && e3.composedPath().shift() === r3;
12332
+ return i3 === r3 || r3.contains(i3) || e4.composed && e4.composedPath().shift() === r3;
12298
12333
  };
12299
- if ("touchstart" === e3.type) {
12300
- var u4 = Array.prototype.filter.call(e3.touches, l2);
12334
+ if ("touchstart" === e4.type) {
12335
+ var u4 = Array.prototype.filter.call(e4.touches, l2);
12301
12336
  if (u4.length > 1)
12302
12337
  return false;
12303
12338
  a2 = u4[0].pageX, s3 = u4[0].pageY;
12304
12339
  } else {
12305
- var c3 = Array.prototype.find.call(e3.changedTouches, l2);
12340
+ var c3 = Array.prototype.find.call(e4.changedTouches, l2);
12306
12341
  if (!c3)
12307
12342
  return false;
12308
12343
  a2 = c3.pageX, s3 = c3.pageY;
12309
12344
  }
12310
12345
  }
12311
- return t4 = t4 || g(O2), (n2 || o2) && (a2 = e3.clientX + t4.x, s3 = e3.clientY + t4.y), e3.pageOffset = t4, e3.points = [a2, s3], e3.cursor = n2 || o2, e3;
12346
+ return t4 = t4 || g(O2), (n2 || o2) && (a2 = e4.clientX + t4.x, s3 = e4.clientY + t4.y), e4.pageOffset = t4, e4.points = [a2, s3], e4.cursor = n2 || o2, e4;
12312
12347
  }
12313
- function ne2(e3) {
12314
- var t4 = 100 * (e3 - l(u3, r2.ort)) / te2();
12348
+ function ne2(e4) {
12349
+ var t4 = 100 * (e4 - l(u3, r2.ort)) / te2();
12315
12350
  return t4 = p2(t4), r2.dir ? 100 - t4 : t4;
12316
12351
  }
12317
- function ae2(e3) {
12352
+ function ae2(e4) {
12318
12353
  var t4 = 100, r3 = false;
12319
12354
  return f3.forEach(function(i2, n2) {
12320
12355
  if (!X2(n2)) {
12321
- var o2 = A2[n2], a2 = Math.abs(o2 - e3);
12322
- (a2 < t4 || a2 <= t4 && e3 > o2 || 100 === a2 && 100 === t4) && (r3 = n2, t4 = a2);
12356
+ var o2 = A2[n2], a2 = Math.abs(o2 - e4);
12357
+ (a2 < t4 || a2 <= t4 && e4 > o2 || 100 === a2 && 100 === t4) && (r3 = n2, t4 = a2);
12323
12358
  }
12324
12359
  }), r3;
12325
12360
  }
12326
- function se2(e3, t4) {
12327
- "mouseout" === e3.type && "HTML" === e3.target.nodeName && null === e3.relatedTarget && ue(e3, t4);
12361
+ function se2(e4, t4) {
12362
+ "mouseout" === e4.type && "HTML" === e4.target.nodeName && null === e4.relatedTarget && ue(e4, t4);
12328
12363
  }
12329
- function le2(e3, t4) {
12330
- if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 === e3.buttons && 0 !== t4.buttonsProperty)
12331
- return ue(e3, t4);
12332
- var i2 = (r2.dir ? -1 : 1) * (e3.calcPoint - t4.startCalcPoint);
12364
+ function le2(e4, t4) {
12365
+ if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 === e4.buttons && 0 !== t4.buttonsProperty)
12366
+ return ue(e4, t4);
12367
+ var i2 = (r2.dir ? -1 : 1) * (e4.calcPoint - t4.startCalcPoint);
12333
12368
  xe(i2 > 0, 100 * i2 / t4.baseSize, t4.locations, t4.handleNumbers, t4.connect);
12334
12369
  }
12335
- function ue(e3, t4) {
12336
- t4.handle && (m2(t4.handle, r2.cssClasses.active), L2 -= 1), t4.listeners.forEach(function(e4) {
12337
- j2.removeEventListener(e4[0], e4[1]);
12338
- }), 0 === L2 && (m2(C2, r2.cssClasses.drag), Pe(), e3.cursor && (F2.style.cursor = "", F2.removeEventListener("selectstart", o))), r2.events.smoothSteps && (t4.handleNumbers.forEach(function(e4) {
12339
- Ne(e4, A2[e4], true, true, false, false);
12340
- }), t4.handleNumbers.forEach(function(e4) {
12341
- be("update", e4);
12342
- })), t4.handleNumbers.forEach(function(e4) {
12343
- be("change", e4), be("set", e4), be("end", e4);
12370
+ function ue(e4, t4) {
12371
+ t4.handle && (m2(t4.handle, r2.cssClasses.active), L2 -= 1), t4.listeners.forEach(function(e5) {
12372
+ j2.removeEventListener(e5[0], e5[1]);
12373
+ }), 0 === L2 && (m2(C2, r2.cssClasses.drag), Pe(), e4.cursor && (F2.style.cursor = "", F2.removeEventListener("selectstart", o))), r2.events.smoothSteps && (t4.handleNumbers.forEach(function(e5) {
12374
+ Ne(e5, A2[e5], true, true, false, false);
12375
+ }), t4.handleNumbers.forEach(function(e5) {
12376
+ be("update", e5);
12377
+ })), t4.handleNumbers.forEach(function(e5) {
12378
+ be("change", e5), be("set", e5), be("end", e5);
12344
12379
  });
12345
12380
  }
12346
- function ce(e3, t4) {
12381
+ function ce(e4, t4) {
12347
12382
  if (!t4.handleNumbers.some(X2)) {
12348
12383
  var i2;
12349
- 1 === t4.handleNumbers.length && (i2 = f3[t4.handleNumbers[0]].children[0], L2 += 1, h2(i2, r2.cssClasses.active)), e3.stopPropagation();
12350
- var n2 = [], a2 = re2(P2.move, j2, le2, { target: e3.target, handle: i2, connect: t4.connect, listeners: n2, startCalcPoint: e3.calcPoint, baseSize: te2(), pageOffset: e3.pageOffset, handleNumbers: t4.handleNumbers, buttonsProperty: e3.buttons, locations: A2.slice() }), s3 = re2(P2.end, j2, ue, { target: e3.target, handle: i2, listeners: n2, doNotReject: true, handleNumbers: t4.handleNumbers }), l2 = re2("mouseout", j2, se2, { target: e3.target, handle: i2, listeners: n2, doNotReject: true, handleNumbers: t4.handleNumbers });
12351
- n2.push.apply(n2, a2.concat(s3, l2)), e3.cursor && (F2.style.cursor = getComputedStyle(e3.target).cursor, f3.length > 1 && h2(C2, r2.cssClasses.drag), F2.addEventListener("selectstart", o, false)), t4.handleNumbers.forEach(function(e4) {
12352
- be("start", e4);
12384
+ 1 === t4.handleNumbers.length && (i2 = f3[t4.handleNumbers[0]].children[0], L2 += 1, h2(i2, r2.cssClasses.active)), e4.stopPropagation();
12385
+ var n2 = [], a2 = re2(P2.move, j2, le2, { target: e4.target, handle: i2, connect: t4.connect, listeners: n2, startCalcPoint: e4.calcPoint, baseSize: te2(), pageOffset: e4.pageOffset, handleNumbers: t4.handleNumbers, buttonsProperty: e4.buttons, locations: A2.slice() }), s3 = re2(P2.end, j2, ue, { target: e4.target, handle: i2, listeners: n2, doNotReject: true, handleNumbers: t4.handleNumbers }), l2 = re2("mouseout", j2, se2, { target: e4.target, handle: i2, listeners: n2, doNotReject: true, handleNumbers: t4.handleNumbers });
12386
+ n2.push.apply(n2, a2.concat(s3, l2)), e4.cursor && (F2.style.cursor = getComputedStyle(e4.target).cursor, f3.length > 1 && h2(C2, r2.cssClasses.drag), F2.addEventListener("selectstart", o, false)), t4.handleNumbers.forEach(function(e5) {
12387
+ be("start", e5);
12353
12388
  });
12354
12389
  }
12355
12390
  }
12356
- function pe(e3) {
12357
- e3.stopPropagation();
12358
- var t4 = ne2(e3.calcPoint), i2 = ae2(t4);
12359
- false !== i2 && (r2.events.snap || c2(C2, r2.cssClasses.tap, r2.animationDuration), Ne(i2, t4, true, true), Pe(), be("slide", i2, true), be("update", i2, true), r2.events.snap ? ce(e3, { handleNumbers: [i2] }) : (be("change", i2, true), be("set", i2, true)));
12391
+ function pe(e4) {
12392
+ e4.stopPropagation();
12393
+ var t4 = ne2(e4.calcPoint), i2 = ae2(t4);
12394
+ false !== i2 && (r2.events.snap || c2(C2, r2.cssClasses.tap, r2.animationDuration), Ne(i2, t4, true, true), Pe(), be("slide", i2, true), be("update", i2, true), r2.events.snap ? ce(e4, { handleNumbers: [i2] }) : (be("change", i2, true), be("set", i2, true)));
12360
12395
  }
12361
- function de(e3) {
12362
- var t4 = ne2(e3.calcPoint), r3 = k2.getStep(t4), i2 = k2.fromStepping(r3);
12363
- Object.keys(U2).forEach(function(e4) {
12364
- "hover" === e4.split(".")[0] && U2[e4].forEach(function(e5) {
12365
- e5.call(Te, i2);
12396
+ function de(e4) {
12397
+ var t4 = ne2(e4.calcPoint), r3 = k2.getStep(t4), i2 = k2.fromStepping(r3);
12398
+ Object.keys(U2).forEach(function(e5) {
12399
+ "hover" === e5.split(".")[0] && U2[e5].forEach(function(e6) {
12400
+ e6.call(Te, i2);
12366
12401
  });
12367
12402
  });
12368
12403
  }
12369
- function fe(e3, t4) {
12404
+ function fe(e4, t4) {
12370
12405
  if ($2() || X2(t4))
12371
12406
  return false;
12372
12407
  var i2 = ["Left", "Right"], n2 = ["Down", "Up"], o2 = ["PageDown", "PageUp"], a2 = ["Home", "End"];
12373
12408
  r2.dir && !r2.ort ? i2.reverse() : r2.ort && !r2.dir && (n2.reverse(), o2.reverse());
12374
- var s3, l2 = e3.key.replace("Arrow", ""), u4 = l2 === o2[0], c3 = l2 === o2[1], p3 = l2 === n2[0] || l2 === i2[0] || u4, d3 = l2 === n2[1] || l2 === i2[1] || c3, f4 = l2 === a2[0], h3 = l2 === a2[1];
12409
+ var s3, l2 = e4.key.replace("Arrow", ""), u4 = l2 === o2[0], c3 = l2 === o2[1], p3 = l2 === n2[0] || l2 === i2[0] || u4, d3 = l2 === n2[1] || l2 === i2[1] || c3, f4 = l2 === a2[0], h3 = l2 === a2[1];
12375
12410
  if (!(p3 || d3 || f4 || h3))
12376
12411
  return true;
12377
- if (e3.preventDefault(), d3 || p3) {
12412
+ if (e4.preventDefault(), d3 || p3) {
12378
12413
  var m3 = p3 ? 0 : 1, v2 = Oe(t4)[m3];
12379
12414
  if (null === v2)
12380
12415
  return false;
@@ -12383,133 +12418,133 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12383
12418
  s3 = h3 ? r2.spectrum.xVal[r2.spectrum.xVal.length - 1] : r2.spectrum.xVal[0];
12384
12419
  return Ne(t4, k2.toStepping(s3), true, true), be("slide", t4), be("update", t4), be("change", t4), be("set", t4), false;
12385
12420
  }
12386
- function he(e3) {
12387
- e3.fixed || f3.forEach(function(e4, t4) {
12388
- re2(P2.start, e4.children[0], ce, { handleNumbers: [t4] });
12389
- }), e3.tap && re2(P2.start, u3, pe, {}), e3.hover && re2(P2.move, u3, de, { hover: true }), e3.drag && x2.forEach(function(t4, i2) {
12421
+ function he(e4) {
12422
+ e4.fixed || f3.forEach(function(e5, t4) {
12423
+ re2(P2.start, e5.children[0], ce, { handleNumbers: [t4] });
12424
+ }), e4.tap && re2(P2.start, u3, pe, {}), e4.hover && re2(P2.move, u3, de, { hover: true }), e4.drag && x2.forEach(function(t4, i2) {
12390
12425
  if (false !== t4 && 0 !== i2 && i2 !== x2.length - 1) {
12391
12426
  var n2 = f3[i2 - 1], o2 = f3[i2], a2 = [t4], s3 = [n2, o2], l2 = [i2 - 1, i2];
12392
- h2(t4, r2.cssClasses.draggable), e3.fixed && (a2.push(n2.children[0]), a2.push(o2.children[0])), e3.dragAll && (s3 = f3, l2 = M2), a2.forEach(function(e4) {
12393
- re2(P2.start, e4, ce, { handles: s3, handleNumbers: l2, connect: t4 });
12427
+ h2(t4, r2.cssClasses.draggable), e4.fixed && (a2.push(n2.children[0]), a2.push(o2.children[0])), e4.dragAll && (s3 = f3, l2 = M2), a2.forEach(function(e5) {
12428
+ re2(P2.start, e5, ce, { handles: s3, handleNumbers: l2, connect: t4 });
12394
12429
  });
12395
12430
  }
12396
12431
  });
12397
12432
  }
12398
- function me(e3, t4) {
12399
- U2[e3] = U2[e3] || [], U2[e3].push(t4), "update" === e3.split(".")[0] && f3.forEach(function(e4, t5) {
12433
+ function me(e4, t4) {
12434
+ U2[e4] = U2[e4] || [], U2[e4].push(t4), "update" === e4.split(".")[0] && f3.forEach(function(e5, t5) {
12400
12435
  be("update", t5);
12401
12436
  });
12402
12437
  }
12403
- function ve(e3) {
12404
- return e3 === D.aria || e3 === D.tooltips;
12438
+ function ve(e4) {
12439
+ return e4 === D.aria || e4 === D.tooltips;
12405
12440
  }
12406
- function ge(e3) {
12407
- var t4 = e3 && e3.split(".")[0], r3 = t4 ? e3.substring(t4.length) : e3;
12408
- Object.keys(U2).forEach(function(e4) {
12409
- var i2 = e4.split(".")[0], n2 = e4.substring(i2.length);
12410
- t4 && t4 !== i2 || r3 && r3 !== n2 || ve(n2) && r3 !== n2 || delete U2[e4];
12441
+ function ge(e4) {
12442
+ var t4 = e4 && e4.split(".")[0], r3 = t4 ? e4.substring(t4.length) : e4;
12443
+ Object.keys(U2).forEach(function(e5) {
12444
+ var i2 = e5.split(".")[0], n2 = e5.substring(i2.length);
12445
+ t4 && t4 !== i2 || r3 && r3 !== n2 || ve(n2) && r3 !== n2 || delete U2[e5];
12411
12446
  });
12412
12447
  }
12413
- function be(e3, t4, i2) {
12448
+ function be(e4, t4, i2) {
12414
12449
  Object.keys(U2).forEach(function(n2) {
12415
12450
  var o2 = n2.split(".")[0];
12416
- e3 === o2 && U2[n2].forEach(function(e4) {
12417
- e4.call(Te, V2.map(r2.format.to), t4, V2.slice(), i2 || false, A2.slice(), Te);
12451
+ e4 === o2 && U2[n2].forEach(function(e5) {
12452
+ e5.call(Te, V2.map(r2.format.to), t4, V2.slice(), i2 || false, A2.slice(), Te);
12418
12453
  });
12419
12454
  });
12420
12455
  }
12421
- function ye(e3, t4, i2, n2, o2, a2, s3) {
12456
+ function ye(e4, t4, i2, n2, o2, a2, s3) {
12422
12457
  var l2;
12423
- return f3.length > 1 && !r2.events.unconstrained && (n2 && t4 > 0 && (l2 = k2.getAbsoluteDistance(e3[t4 - 1], r2.margin, false), i2 = Math.max(i2, l2)), o2 && t4 < f3.length - 1 && (l2 = k2.getAbsoluteDistance(e3[t4 + 1], r2.margin, true), i2 = Math.min(i2, l2))), f3.length > 1 && r2.limit && (n2 && t4 > 0 && (l2 = k2.getAbsoluteDistance(e3[t4 - 1], r2.limit, false), i2 = Math.min(i2, l2)), o2 && t4 < f3.length - 1 && (l2 = k2.getAbsoluteDistance(e3[t4 + 1], r2.limit, true), i2 = Math.max(i2, l2))), r2.padding && (0 === t4 && (l2 = k2.getAbsoluteDistance(0, r2.padding[0], false), i2 = Math.max(i2, l2)), t4 === f3.length - 1 && (l2 = k2.getAbsoluteDistance(100, r2.padding[1], true), i2 = Math.min(i2, l2))), s3 || (i2 = k2.getStep(i2)), !((i2 = p2(i2)) === e3[t4] && !a2) && i2;
12458
+ return f3.length > 1 && !r2.events.unconstrained && (n2 && t4 > 0 && (l2 = k2.getAbsoluteDistance(e4[t4 - 1], r2.margin, false), i2 = Math.max(i2, l2)), o2 && t4 < f3.length - 1 && (l2 = k2.getAbsoluteDistance(e4[t4 + 1], r2.margin, true), i2 = Math.min(i2, l2))), f3.length > 1 && r2.limit && (n2 && t4 > 0 && (l2 = k2.getAbsoluteDistance(e4[t4 - 1], r2.limit, false), i2 = Math.min(i2, l2)), o2 && t4 < f3.length - 1 && (l2 = k2.getAbsoluteDistance(e4[t4 + 1], r2.limit, true), i2 = Math.max(i2, l2))), r2.padding && (0 === t4 && (l2 = k2.getAbsoluteDistance(0, r2.padding[0], false), i2 = Math.max(i2, l2)), t4 === f3.length - 1 && (l2 = k2.getAbsoluteDistance(100, r2.padding[1], true), i2 = Math.min(i2, l2))), s3 || (i2 = k2.getStep(i2)), !((i2 = p2(i2)) === e4[t4] && !a2) && i2;
12424
12459
  }
12425
- function Se(e3, t4) {
12460
+ function Se(e4, t4) {
12426
12461
  var i2 = r2.ort;
12427
- return (i2 ? t4 : e3) + ", " + (i2 ? e3 : t4);
12462
+ return (i2 ? t4 : e4) + ", " + (i2 ? e4 : t4);
12428
12463
  }
12429
- function xe(e3, t4, i2, n2, o2) {
12430
- var a2 = i2.slice(), s3 = n2[0], l2 = r2.events.smoothSteps, u4 = [!e3, e3], c3 = [e3, !e3];
12431
- n2 = n2.slice(), e3 && n2.reverse(), n2.length > 1 ? n2.forEach(function(e4, r3) {
12432
- var i3 = ye(a2, e4, a2[e4] + t4, u4[r3], c3[r3], false, l2);
12433
- false === i3 ? t4 = 0 : (t4 = i3 - a2[e4], a2[e4] = i3);
12464
+ function xe(e4, t4, i2, n2, o2) {
12465
+ var a2 = i2.slice(), s3 = n2[0], l2 = r2.events.smoothSteps, u4 = [!e4, e4], c3 = [e4, !e4];
12466
+ n2 = n2.slice(), e4 && n2.reverse(), n2.length > 1 ? n2.forEach(function(e5, r3) {
12467
+ var i3 = ye(a2, e5, a2[e5] + t4, u4[r3], c3[r3], false, l2);
12468
+ false === i3 ? t4 = 0 : (t4 = i3 - a2[e5], a2[e5] = i3);
12434
12469
  }) : u4 = c3 = [true];
12435
12470
  var p3 = false;
12436
- n2.forEach(function(e4, r3) {
12437
- p3 = Ne(e4, i2[e4] + t4, u4[r3], c3[r3], false, l2) || p3;
12438
- }), p3 && (n2.forEach(function(e4) {
12439
- be("update", e4), be("slide", e4);
12471
+ n2.forEach(function(e5, r3) {
12472
+ p3 = Ne(e5, i2[e5] + t4, u4[r3], c3[r3], false, l2) || p3;
12473
+ }), p3 && (n2.forEach(function(e5) {
12474
+ be("update", e5), be("slide", e5);
12440
12475
  }), null != o2 && be("drag", s3));
12441
12476
  }
12442
- function we(e3, t4) {
12443
- return r2.dir ? 100 - e3 - t4 : e3;
12477
+ function we(e4, t4) {
12478
+ return r2.dir ? 100 - e4 - t4 : e4;
12444
12479
  }
12445
- function Ee(e3, t4) {
12446
- A2[e3] = t4, V2[e3] = k2.fromStepping(t4);
12480
+ function Ee(e4, t4) {
12481
+ A2[e4] = t4, V2[e4] = k2.fromStepping(t4);
12447
12482
  var i2 = "translate(" + Se(we(t4, 0) - T2 + "%", "0") + ")";
12448
- f3[e3].style[r2.transformRule] = i2, Ce(e3), Ce(e3 + 1);
12483
+ f3[e4].style[r2.transformRule] = i2, Ce(e4), Ce(e4 + 1);
12449
12484
  }
12450
12485
  function Pe() {
12451
- M2.forEach(function(e3) {
12452
- var t4 = A2[e3] > 50 ? -1 : 1, r3 = 3 + (f3.length + t4 * e3);
12453
- f3[e3].style.zIndex = String(r3);
12486
+ M2.forEach(function(e4) {
12487
+ var t4 = A2[e4] > 50 ? -1 : 1, r3 = 3 + (f3.length + t4 * e4);
12488
+ f3[e4].style.zIndex = String(r3);
12454
12489
  });
12455
12490
  }
12456
- function Ne(e3, t4, r3, i2, n2, o2) {
12457
- return n2 || (t4 = ye(A2, e3, t4, r3, i2, false, o2)), false !== t4 && (Ee(e3, t4), true);
12491
+ function Ne(e4, t4, r3, i2, n2, o2) {
12492
+ return n2 || (t4 = ye(A2, e4, t4, r3, i2, false, o2)), false !== t4 && (Ee(e4, t4), true);
12458
12493
  }
12459
- function Ce(e3) {
12460
- if (x2[e3]) {
12494
+ function Ce(e4) {
12495
+ if (x2[e4]) {
12461
12496
  var t4 = 0, i2 = 100;
12462
- 0 !== e3 && (t4 = A2[e3 - 1]), e3 !== x2.length - 1 && (i2 = A2[e3]);
12497
+ 0 !== e4 && (t4 = A2[e4 - 1]), e4 !== x2.length - 1 && (i2 = A2[e4]);
12463
12498
  var n2 = i2 - t4, o2 = "translate(" + Se(we(t4, n2) + "%", "0") + ")", a2 = "scale(" + Se(n2 / 100, "1") + ")";
12464
- x2[e3].style[r2.transformRule] = o2 + " " + a2;
12499
+ x2[e4].style[r2.transformRule] = o2 + " " + a2;
12465
12500
  }
12466
12501
  }
12467
- function ke(e3, t4) {
12468
- return null === e3 || false === e3 || void 0 === e3 ? A2[t4] : ("number" == typeof e3 && (e3 = String(e3)), false !== (e3 = r2.format.from(e3)) && (e3 = k2.toStepping(e3)), false === e3 || isNaN(e3) ? A2[t4] : e3);
12502
+ function ke(e4, t4) {
12503
+ return null === e4 || false === e4 || void 0 === e4 ? A2[t4] : ("number" == typeof e4 && (e4 = String(e4)), false !== (e4 = r2.format.from(e4)) && (e4 = k2.toStepping(e4)), false === e4 || isNaN(e4) ? A2[t4] : e4);
12469
12504
  }
12470
- function Ve(e3, t4, i2) {
12471
- var n2 = d2(e3), o2 = void 0 === A2[0];
12472
- t4 = void 0 === t4 || t4, r2.animate && !o2 && c2(C2, r2.cssClasses.tap, r2.animationDuration), M2.forEach(function(e4) {
12473
- Ne(e4, ke(n2[e4], e4), true, false, i2);
12505
+ function Ve(e4, t4, i2) {
12506
+ var n2 = d2(e4), o2 = void 0 === A2[0];
12507
+ t4 = void 0 === t4 || t4, r2.animate && !o2 && c2(C2, r2.cssClasses.tap, r2.animationDuration), M2.forEach(function(e5) {
12508
+ Ne(e5, ke(n2[e5], e5), true, false, i2);
12474
12509
  });
12475
12510
  var a2 = 1 === M2.length ? 0 : 1;
12476
12511
  if (o2 && k2.hasNoSize() && (i2 = true, A2[0] = 0, M2.length > 1)) {
12477
12512
  var s3 = 100 / (M2.length - 1);
12478
- M2.forEach(function(e4) {
12479
- A2[e4] = e4 * s3;
12513
+ M2.forEach(function(e5) {
12514
+ A2[e5] = e5 * s3;
12480
12515
  });
12481
12516
  }
12482
12517
  for (; a2 < M2.length; ++a2)
12483
- M2.forEach(function(e4) {
12484
- Ne(e4, A2[e4], true, true, i2);
12518
+ M2.forEach(function(e5) {
12519
+ Ne(e5, A2[e5], true, true, i2);
12485
12520
  });
12486
- Pe(), M2.forEach(function(e4) {
12487
- be("update", e4), null !== n2[e4] && t4 && be("set", e4);
12521
+ Pe(), M2.forEach(function(e5) {
12522
+ be("update", e5), null !== n2[e5] && t4 && be("set", e5);
12488
12523
  });
12489
12524
  }
12490
- function Ae(e3) {
12491
- Ve(r2.start, e3);
12525
+ function Ae(e4) {
12526
+ Ve(r2.start, e4);
12492
12527
  }
12493
- function Me(e3, t4, r3, i2) {
12494
- if (!((e3 = Number(e3)) >= 0 && e3 < M2.length))
12495
- throw new Error("noUiSlider: invalid handle number, got: " + e3);
12496
- Ne(e3, ke(t4, e3), true, true, i2), be("update", e3), r3 && be("set", e3);
12528
+ function Me(e4, t4, r3, i2) {
12529
+ if (!((e4 = Number(e4)) >= 0 && e4 < M2.length))
12530
+ throw new Error("noUiSlider: invalid handle number, got: " + e4);
12531
+ Ne(e4, ke(t4, e4), true, true, i2), be("update", e4), r3 && be("set", e4);
12497
12532
  }
12498
- function Le(e3) {
12499
- if (void 0 === e3 && (e3 = false), e3)
12533
+ function Le(e4) {
12534
+ if (void 0 === e4 && (e4 = false), e4)
12500
12535
  return 1 === V2.length ? V2[0] : V2.slice(0);
12501
12536
  var t4 = V2.map(r2.format.to);
12502
12537
  return 1 === t4.length ? t4[0] : t4;
12503
12538
  }
12504
12539
  function Ue() {
12505
- for (ge(D.aria), ge(D.tooltips), Object.keys(r2.cssClasses).forEach(function(e3) {
12506
- m2(C2, r2.cssClasses[e3]);
12540
+ for (ge(D.aria), ge(D.tooltips), Object.keys(r2.cssClasses).forEach(function(e4) {
12541
+ m2(C2, r2.cssClasses[e4]);
12507
12542
  }); C2.firstChild; )
12508
12543
  C2.removeChild(C2.firstChild);
12509
12544
  delete C2.noUiSlider;
12510
12545
  }
12511
- function Oe(e3) {
12512
- var t4 = A2[e3], i2 = k2.getNearbySteps(t4), n2 = V2[e3], o2 = i2.thisStep.step, a2 = null;
12546
+ function Oe(e4) {
12547
+ var t4 = A2[e4], i2 = k2.getNearbySteps(t4), n2 = V2[e4], o2 = i2.thisStep.step, a2 = null;
12513
12548
  if (r2.snap)
12514
12549
  return [n2 - i2.stepBefore.startValue || null, i2.stepAfter.startValue - n2 || null];
12515
12550
  false !== o2 && n2 + o2 > i2.stepAfter.startValue && (o2 = i2.stepAfter.startValue - n2), a2 = n2 > i2.thisStep.startValue ? i2.thisStep.step : false !== i2.stepBefore.step && n2 - i2.stepBefore.highestStep, 100 === t4 ? o2 = null : 0 === t4 && (a2 = null);
@@ -12519,22 +12554,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12519
12554
  function De() {
12520
12555
  return M2.map(Oe);
12521
12556
  }
12522
- function je(e3, t4) {
12557
+ function je(e4, t4) {
12523
12558
  var i2 = Le(), o2 = ["margin", "limit", "padding", "range", "animate", "snap", "step", "format", "pips", "tooltips"];
12524
12559
  o2.forEach(function(t5) {
12525
- void 0 !== e3[t5] && (s2[t5] = e3[t5]);
12560
+ void 0 !== e4[t5] && (s2[t5] = e4[t5]);
12526
12561
  });
12527
12562
  var a2 = oe(s2);
12528
12563
  o2.forEach(function(t5) {
12529
- void 0 !== e3[t5] && (r2[t5] = a2[t5]);
12530
- }), k2 = a2.spectrum, r2.margin = a2.margin, r2.limit = a2.limit, r2.padding = a2.padding, r2.pips ? ee2(r2.pips) : Z2(), r2.tooltips ? I2() : Y2(), A2 = [], Ve(n(e3.start) ? e3.start : i2, t4);
12564
+ void 0 !== e4[t5] && (r2[t5] = a2[t5]);
12565
+ }), k2 = a2.spectrum, r2.margin = a2.margin, r2.limit = a2.limit, r2.padding = a2.padding, r2.pips ? ee2(r2.pips) : Z2(), r2.tooltips ? I2() : Y2(), A2 = [], Ve(n(e4.start) ? e4.start : i2, t4);
12531
12566
  }
12532
12567
  function Fe() {
12533
12568
  u3 = B2(C2), R2(r2.connect, u3), he(r2.events), Ve(r2.start), r2.pips && ee2(r2.pips), r2.tooltips && I2(), W2();
12534
12569
  }
12535
12570
  Fe();
12536
- var Te = { destroy: Ue, steps: De, on: me, off: ge, get: Le, set: Ve, setHandle: Me, reset: Ae, __moveHandles: function(e3, t4, r3) {
12537
- xe(e3, t4, A2, r3);
12571
+ var Te = { destroy: Ue, steps: De, on: me, off: ge, get: Le, set: Ve, setHandle: Me, reset: Ae, __moveHandles: function(e4, t4, r3) {
12572
+ xe(e4, t4, A2, r3);
12538
12573
  }, options: s2, updateOptions: je, target: C2, removePips: Z2, removeTooltips: Y2, getPositions: function() {
12539
12574
  return A2.slice();
12540
12575
  }, getTooltips: function() {
@@ -12544,30 +12579,30 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12544
12579
  }, pips: ee2 };
12545
12580
  return Te;
12546
12581
  }
12547
- function se(e3, t3) {
12548
- if (!e3 || !e3.nodeName)
12549
- throw new Error("noUiSlider: create requires a single element, got: " + e3);
12550
- if (e3.noUiSlider)
12582
+ function se(e4, t3) {
12583
+ if (!e4 || !e4.nodeName)
12584
+ throw new Error("noUiSlider: create requires a single element, got: " + e4);
12585
+ if (e4.noUiSlider)
12551
12586
  throw new Error("noUiSlider: Slider was already initialized.");
12552
- var r2 = ae(e3, oe(t3), t3);
12553
- return e3.noUiSlider = r2, r2;
12587
+ var r2 = ae(e4, oe(t3), t3);
12588
+ return e4.noUiSlider = r2, r2;
12554
12589
  }
12555
12590
  var le = { __spectrum: L, cssClasses: O, create: se };
12556
- e2.create = se, e2.cssClasses = O, e2.default = le, Object.defineProperty(e2, "__esModule", { value: true });
12591
+ e3.create = se, e3.cssClasses = O, e3.default = le, Object.defineProperty(e3, "__esModule", { value: true });
12557
12592
  }(t);
12558
12593
  }));
12559
- function h(e, t) {
12560
- if (!Array.isArray(e) || !Array.isArray(t))
12594
+ function h(e2, t) {
12595
+ if (!Array.isArray(e2) || !Array.isArray(t))
12561
12596
  return false;
12562
12597
  const r = t.slice().sort();
12563
- return e.length === t.length && e.slice().sort().every(function(e2, t2) {
12564
- return e2 === r[t2];
12598
+ return e2.length === t.length && e2.slice().sort().every(function(e3, t2) {
12599
+ return e3 === r[t2];
12565
12600
  });
12566
12601
  }
12567
- var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide", "drag", "update", "change", "set", "end"], props: __spreadProps2(__spreadValues2({}, { value: { validator: function(e) {
12568
- return (e2) => "number" == typeof e2 || e2 instanceof Array || null == e2 || false === e2;
12569
- }, required: false }, modelValue: { validator: function(e) {
12570
- return (e2) => "number" == typeof e2 || e2 instanceof Array || null == e2 || false === e2;
12602
+ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide", "drag", "update", "change", "set", "end"], props: __spreadProps2(__spreadValues2({}, { value: { validator: function(e2) {
12603
+ return (e3) => "number" == typeof e3 || e3 instanceof Array || null == e3 || false === e3;
12604
+ }, required: false }, modelValue: { validator: function(e2) {
12605
+ return (e3) => "number" == typeof e3 || e3 instanceof Array || null == e3 || false === e3;
12571
12606
  }, required: false } }), { id: { type: [String, Number], required: false }, disabled: { type: Boolean, required: false, default: false }, min: { type: Number, required: false, default: 0 }, max: { type: Number, required: false, default: 100 }, step: { type: Number, required: false, default: 1 }, orientation: { type: String, required: false, default: "horizontal" }, direction: { type: String, required: false, default: "ltr" }, tooltips: { type: Boolean, required: false, default: true }, options: { type: Object, required: false, default: () => ({}) }, merge: { type: Number, required: false, default: -1 }, format: { type: [Object, Function, Boolean], required: false, default: null }, classes: { type: Object, required: false, default: () => ({}) }, showTooltip: { type: String, required: false, default: "always" }, tooltipPosition: { type: String, required: false, default: null }, lazy: { type: Boolean, required: false, default: true }, ariaLabelledby: { type: String, required: false, default: void 0 }, aria: { required: false, type: Object, default: () => ({}) } }), setup(a, s) {
12572
12607
  const l = function(r, i, n) {
12573
12608
  const { value: o, modelValue: a2, min: s2 } = toRefs(r);
@@ -12579,37 +12614,37 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12579
12614
  }(a), c2 = function(t, i, n) {
12580
12615
  const { classes: o, showTooltip: a2, tooltipPosition: s2, orientation: l2 } = toRefs(t), u2 = computed(() => __spreadValues2({ target: "slider-target", focused: "slider-focused", tooltipFocus: "slider-tooltip-focus", tooltipDrag: "slider-tooltip-drag", ltr: "slider-ltr", rtl: "slider-rtl", horizontal: "slider-horizontal", vertical: "slider-vertical", textDirectionRtl: "slider-txt-dir-rtl", textDirectionLtr: "slider-txt-dir-ltr", base: "slider-base", connects: "slider-connects", connect: "slider-connect", origin: "slider-origin", handle: "slider-handle", handleLower: "slider-handle-lower", handleUpper: "slider-handle-upper", touchArea: "slider-touch-area", tooltip: "slider-tooltip", tooltipTop: "slider-tooltip-top", tooltipBottom: "slider-tooltip-bottom", tooltipLeft: "slider-tooltip-left", tooltipRight: "slider-tooltip-right", tooltipHidden: "slider-tooltip-hidden", active: "slider-active", draggable: "slider-draggable", tap: "slider-state-tap", drag: "slider-state-drag", pips: "slider-pips", pipsHorizontal: "slider-pips-horizontal", pipsVertical: "slider-pips-vertical", marker: "slider-marker", markerHorizontal: "slider-marker-horizontal", markerVertical: "slider-marker-vertical", markerNormal: "slider-marker-normal", markerLarge: "slider-marker-large", markerSub: "slider-marker-sub", value: "slider-value", valueHorizontal: "slider-value-horizontal", valueVertical: "slider-value-vertical", valueNormal: "slider-value-normal", valueLarge: "slider-value-large", valueSub: "slider-value-sub" }, o.value));
12581
12616
  return { classList: computed(() => {
12582
- const e = __spreadValues2({}, u2.value);
12583
- return Object.keys(e).forEach((t2) => {
12584
- e[t2] = Array.isArray(e[t2]) ? e[t2].filter((e2) => null !== e2).join(" ") : e[t2];
12585
- }), "always" !== a2.value && (e.target += ` ${"drag" === a2.value ? e.tooltipDrag : e.tooltipFocus}`), "horizontal" === l2.value && (e.tooltip += "bottom" === s2.value ? ` ${e.tooltipBottom}` : ` ${e.tooltipTop}`), "vertical" === l2.value && (e.tooltip += "right" === s2.value ? ` ${e.tooltipRight}` : ` ${e.tooltipLeft}`), e;
12617
+ const e2 = __spreadValues2({}, u2.value);
12618
+ return Object.keys(e2).forEach((t2) => {
12619
+ e2[t2] = Array.isArray(e2[t2]) ? e2[t2].filter((e3) => null !== e3).join(" ") : e2[t2];
12620
+ }), "always" !== a2.value && (e2.target += ` ${"drag" === a2.value ? e2.tooltipDrag : e2.tooltipFocus}`), "horizontal" === l2.value && (e2.tooltip += "bottom" === s2.value ? ` ${e2.tooltipBottom}` : ` ${e2.tooltipTop}`), "vertical" === l2.value && (e2.tooltip += "right" === s2.value ? ` ${e2.tooltipRight}` : ` ${e2.tooltipLeft}`), e2;
12586
12621
  }) };
12587
12622
  }(a), p2 = function(t, i, n) {
12588
- const { format: o, step: a2 } = toRefs(t), s2 = n.value, l2 = n.classList, u2 = computed(() => o && o.value ? "function" == typeof o.value ? { to: o.value } : d(__spreadValues2({}, o.value)) : d({ decimals: a2.value >= 0 ? 0 : 2 })), c3 = computed(() => Array.isArray(s2.value) ? s2.value.map((e) => u2.value) : u2.value);
12589
- return { tooltipFormat: u2, tooltipsFormat: c3, tooltipsMerge: (e, t2, r) => {
12590
- var i2 = "rtl" === getComputedStyle(e).direction, n2 = "rtl" === e.noUiSlider.options.direction, o2 = "vertical" === e.noUiSlider.options.orientation, a3 = e.noUiSlider.getTooltips(), s3 = e.noUiSlider.getOrigins();
12591
- a3.forEach(function(e2, t3) {
12592
- e2 && s3[t3].appendChild(e2);
12593
- }), e.noUiSlider.on("update", function(e2, s4, c4, p3, d2) {
12623
+ const { format: o, step: a2 } = toRefs(t), s2 = n.value, l2 = n.classList, u2 = computed(() => o && o.value ? "function" == typeof o.value ? { to: o.value } : d(__spreadValues2({}, o.value)) : d({ decimals: a2.value >= 0 ? 0 : 2 })), c3 = computed(() => Array.isArray(s2.value) ? s2.value.map((e2) => u2.value) : u2.value);
12624
+ return { tooltipFormat: u2, tooltipsFormat: c3, tooltipsMerge: (e2, t2, r) => {
12625
+ var i2 = "rtl" === getComputedStyle(e2).direction, n2 = "rtl" === e2.noUiSlider.options.direction, o2 = "vertical" === e2.noUiSlider.options.orientation, a3 = e2.noUiSlider.getTooltips(), s3 = e2.noUiSlider.getOrigins();
12626
+ a3.forEach(function(e3, t3) {
12627
+ e3 && s3[t3].appendChild(e3);
12628
+ }), e2.noUiSlider.on("update", function(e3, s4, c4, p3, d2) {
12594
12629
  var f2 = [[]], h2 = [[]], m3 = [[]], v = 0;
12595
- a3[0] && (f2[0][0] = 0, h2[0][0] = d2[0], m3[0][0] = u2.value.to(parseFloat(e2[0])));
12596
- for (var g = 1; g < e2.length; g++)
12597
- (!a3[g] || e2[g] - e2[g - 1] > t2) && (f2[++v] = [], m3[v] = [], h2[v] = []), a3[g] && (f2[v].push(g), m3[v].push(u2.value.to(parseFloat(e2[g]))), h2[v].push(d2[g]));
12598
- f2.forEach(function(e3, t3) {
12599
- for (var s5 = e3.length, u3 = 0; u3 < s5; u3++) {
12600
- var c5 = e3[u3];
12630
+ a3[0] && (f2[0][0] = 0, h2[0][0] = d2[0], m3[0][0] = u2.value.to(parseFloat(e3[0])));
12631
+ for (var g = 1; g < e3.length; g++)
12632
+ (!a3[g] || e3[g] - e3[g - 1] > t2) && (f2[++v] = [], m3[v] = [], h2[v] = []), a3[g] && (f2[v].push(g), m3[v].push(u2.value.to(parseFloat(e3[g]))), h2[v].push(d2[g]));
12633
+ f2.forEach(function(e4, t3) {
12634
+ for (var s5 = e4.length, u3 = 0; u3 < s5; u3++) {
12635
+ var c5 = e4[u3];
12601
12636
  if (u3 === s5 - 1) {
12602
12637
  var p4 = 0;
12603
- h2[t3].forEach(function(e4) {
12604
- p4 += 1e3 - e4;
12638
+ h2[t3].forEach(function(e5) {
12639
+ p4 += 1e3 - e5;
12605
12640
  });
12606
12641
  var d3 = o2 ? "bottom" : "right", f3 = n2 ? 0 : s5 - 1, v2 = 1e3 - h2[t3][f3];
12607
- p4 = (i2 && !o2 ? 100 : 0) + p4 / s5 - v2, a3[c5].innerHTML = m3[t3].join(r), a3[c5].style.display = "block", a3[c5].style[d3] = p4 + "%", l2.value.tooltipHidden.split(" ").forEach((e4) => {
12608
- a3[c5].classList.contains(e4) && a3[c5].classList.remove(e4);
12642
+ p4 = (i2 && !o2 ? 100 : 0) + p4 / s5 - v2, a3[c5].innerHTML = m3[t3].join(r), a3[c5].style.display = "block", a3[c5].style[d3] = p4 + "%", l2.value.tooltipHidden.split(" ").forEach((e5) => {
12643
+ a3[c5].classList.contains(e5) && a3[c5].classList.remove(e5);
12609
12644
  });
12610
12645
  } else
12611
- a3[c5].style.display = "none", l2.value.tooltipHidden.split(" ").forEach((e4) => {
12612
- a3[c5].classList.add(e4);
12646
+ a3[c5].style.display = "none", l2.value.tooltipHidden.split(" ").forEach((e5) => {
12647
+ a3[c5].classList.add(e5);
12613
12648
  });
12614
12649
  }
12615
12650
  });
@@ -12617,32 +12652,32 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12617
12652
  } };
12618
12653
  }(a, 0, { value: l.value, classList: c2.classList }), m2 = function(a2, s2, l2) {
12619
12654
  const { orientation: c3, direction: p3, tooltips: d2, step: m3, min: v, max: g, merge: b, id: y, disabled: S, options: x, classes: w, format: E, lazy: P, ariaLabelledby: N, aria: C } = toRefs(a2), k = l2.value, V = l2.initialValue, A = l2.tooltipsFormat, M = l2.tooltipsMerge, L = l2.tooltipFormat, U = l2.classList, O = ref(null), D = ref(null), j = ref(false), F = computed(() => {
12620
- let e = { cssPrefix: "", cssClasses: U.value, orientation: c3.value, direction: p3.value, tooltips: !!d2.value && A.value, connect: "lower", start: u(k.value) ? v.value : k.value, range: { min: v.value, max: g.value } };
12621
- if (m3.value > 0 && (e.step = m3.value), Array.isArray(k.value) && (e.connect = true), N && N.value || C && Object.keys(C.value).length) {
12655
+ let e2 = { cssPrefix: "", cssClasses: U.value, orientation: c3.value, direction: p3.value, tooltips: !!d2.value && A.value, connect: "lower", start: u(k.value) ? v.value : k.value, range: { min: v.value, max: g.value } };
12656
+ if (m3.value > 0 && (e2.step = m3.value), Array.isArray(k.value) && (e2.connect = true), N && N.value || C && Object.keys(C.value).length) {
12622
12657
  let t = Array.isArray(k.value) ? k.value : [k.value];
12623
- e.handleAttributes = t.map((e2) => Object.assign({}, C.value, N && N.value ? { "aria-labelledby": N.value } : {}));
12658
+ e2.handleAttributes = t.map((e3) => Object.assign({}, C.value, N && N.value ? { "aria-labelledby": N.value } : {}));
12624
12659
  }
12625
- return E.value && (e.ariaFormat = L.value), e;
12660
+ return E.value && (e2.ariaFormat = L.value), e2;
12626
12661
  }), T = computed(() => {
12627
- let e = { id: y && y.value ? y.value : void 0 };
12628
- return S.value && (e.disabled = true), e;
12662
+ let e2 = { id: y && y.value ? y.value : void 0 };
12663
+ return S.value && (e2.disabled = true), e2;
12629
12664
  }), z = computed(() => Array.isArray(k.value)), H = () => {
12630
- let e = D.value.get();
12631
- return Array.isArray(e) ? e.map((e2) => parseFloat(e2)) : parseFloat(e);
12632
- }, q = function(e) {
12665
+ let e2 = D.value.get();
12666
+ return Array.isArray(e2) ? e2.map((e3) => parseFloat(e3)) : parseFloat(e2);
12667
+ }, q = function(e2) {
12633
12668
  let t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
12634
- D.value.set(e, t);
12635
- }, R = (e) => {
12636
- s2.emit("input", e), s2.emit("update:modelValue", e), s2.emit("update", e);
12669
+ D.value.set(e2, t);
12670
+ }, R = (e2) => {
12671
+ s2.emit("input", e2), s2.emit("update:modelValue", e2), s2.emit("update", e2);
12637
12672
  }, B = () => {
12638
12673
  D.value = f.create(O.value, Object.assign({}, F.value, x.value)), d2.value && z.value && b.value >= 0 && M(O.value, b.value, " - "), D.value.on("set", () => {
12639
- const e = H();
12640
- s2.emit("change", e), s2.emit("set", e), P.value && R(e);
12674
+ const e2 = H();
12675
+ s2.emit("change", e2), s2.emit("set", e2), P.value && R(e2);
12641
12676
  }), D.value.on("update", () => {
12642
12677
  if (!j.value)
12643
12678
  return;
12644
- const e = H();
12645
- z.value && h(k.value, e) || !z.value && k.value == e ? s2.emit("update", e) : P.value || R(e);
12679
+ const e2 = H();
12680
+ z.value && h(k.value, e2) || !z.value && k.value == e2 ? s2.emit("update", e2) : P.value || R(e2);
12646
12681
  }), D.value.on("start", () => {
12647
12682
  s2.emit("start", H());
12648
12683
  }), D.value.on("end", () => {
@@ -12651,48 +12686,48 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12651
12686
  s2.emit("slide", H());
12652
12687
  }), D.value.on("drag", () => {
12653
12688
  s2.emit("drag", H());
12654
- }), O.value.querySelectorAll("[data-handle]").forEach((e) => {
12655
- e.onblur = () => {
12656
- O.value && U.value.focused.split(" ").forEach((e2) => {
12657
- O.value.classList.remove(e2);
12689
+ }), O.value.querySelectorAll("[data-handle]").forEach((e2) => {
12690
+ e2.onblur = () => {
12691
+ O.value && U.value.focused.split(" ").forEach((e3) => {
12692
+ O.value.classList.remove(e3);
12658
12693
  });
12659
- }, e.onfocus = () => {
12660
- U.value.focused.split(" ").forEach((e2) => {
12661
- O.value.classList.add(e2);
12694
+ }, e2.onfocus = () => {
12695
+ U.value.focused.split(" ").forEach((e3) => {
12696
+ O.value.classList.add(e3);
12662
12697
  });
12663
12698
  };
12664
12699
  }), j.value = true;
12665
12700
  }, _ = () => {
12666
12701
  D.value.off(), D.value.destroy(), D.value = null;
12667
- }, $ = (e, t) => {
12702
+ }, $ = (e2, t) => {
12668
12703
  j.value = false, _(), B();
12669
12704
  };
12670
- return onMounted(B), onUnmounted(_), watch(z, $, { immediate: false }), watch(v, $, { immediate: false }), watch(g, $, { immediate: false }), watch(m3, $, { immediate: false }), watch(c3, $, { immediate: false }), watch(p3, $, { immediate: false }), watch(d2, $, { immediate: false }), watch(b, $, { immediate: false }), watch(E, $, { immediate: false, deep: true }), watch(x, $, { immediate: false, deep: true }), watch(w, $, { immediate: false, deep: true }), watch(k, (e, t) => {
12671
- t && ("object" == typeof t && "object" == typeof e && e && Object.keys(t) > Object.keys(e) || "object" == typeof t && "object" != typeof e || u(e)) && $();
12672
- }, { immediate: false }), watch(k, (e) => {
12673
- if (u(e))
12705
+ return onMounted(B), onUnmounted(_), watch(z, $, { immediate: false }), watch(v, $, { immediate: false }), watch(g, $, { immediate: false }), watch(m3, $, { immediate: false }), watch(c3, $, { immediate: false }), watch(p3, $, { immediate: false }), watch(d2, $, { immediate: false }), watch(b, $, { immediate: false }), watch(E, $, { immediate: false, deep: true }), watch(x, $, { immediate: false, deep: true }), watch(w, $, { immediate: false, deep: true }), watch(k, (e2, t) => {
12706
+ t && ("object" == typeof t && "object" == typeof e2 && e2 && Object.keys(t) > Object.keys(e2) || "object" == typeof t && "object" != typeof e2 || u(e2)) && $();
12707
+ }, { immediate: false }), watch(k, (e2) => {
12708
+ if (u(e2))
12674
12709
  return void q(v.value, false);
12675
12710
  let t = H();
12676
- z.value && !Array.isArray(t) && (t = [t]), (z.value && !h(e, t) || !z.value && e != t) && q(e, false);
12711
+ z.value && !Array.isArray(t) && (t = [t]), (z.value && !h(e2, t) || !z.value && e2 != t) && q(e2, false);
12677
12712
  }, { deep: true }), { slider: O, slider$: D, isRange: z, sliderProps: T, init: B, destroy: _, refresh: $, update: q, reset: () => {
12678
12713
  R(V.value);
12679
12714
  } };
12680
12715
  }(a, s, { value: l.value, initialValue: l.initialValue, tooltipFormat: p2.tooltipFormat, tooltipsFormat: p2.tooltipsFormat, tooltipsMerge: p2.tooltipsMerge, classList: c2.classList });
12681
12716
  return __spreadValues2(__spreadValues2(__spreadValues2({}, c2), p2), m2);
12682
12717
  } };
12683
- m.render = function(e, t, r, i, n, o) {
12684
- return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
12718
+ m.render = function(e2, t, r, i, n, o) {
12719
+ return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
12685
12720
  }, m.__file = "src/Slider.vue";
12686
12721
  const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
12687
12722
  const _hoisted_2$x = {
12688
12723
  key: 0,
12689
12724
  class: "lupa-stats-facet-summary"
12690
12725
  };
12691
- const _hoisted_3$n = {
12726
+ const _hoisted_3$o = {
12692
12727
  key: 1,
12693
12728
  class: "lupa-stats-facet-summary-input"
12694
12729
  };
12695
- const _hoisted_4$h = {
12730
+ const _hoisted_4$i = {
12696
12731
  key: 0,
12697
12732
  class: "lupa-stats-range-label"
12698
12733
  };
@@ -12885,9 +12920,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12885
12920
  };
12886
12921
  return (_ctx, _cache) => {
12887
12922
  return openBlock(), createElementBlock("div", _hoisted_1$J, [
12888
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$n, [
12923
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
12889
12924
  createBaseVNode("div", null, [
12890
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
12925
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
12891
12926
  createBaseVNode("div", _hoisted_5$b, [
12892
12927
  withDirectives(createBaseVNode("input", {
12893
12928
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -12953,8 +12988,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
12953
12988
  });
12954
12989
  const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
12955
12990
  const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
12956
- const _hoisted_3$m = { class: "lupa-term-label" };
12957
- const _hoisted_4$g = {
12991
+ const _hoisted_3$n = { class: "lupa-term-label" };
12992
+ const _hoisted_4$h = {
12958
12993
  key: 0,
12959
12994
  class: "lupa-term-count"
12960
12995
  };
@@ -13014,8 +13049,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13014
13049
  }, null, 2)
13015
13050
  ]),
13016
13051
  createBaseVNode("div", _hoisted_2$w, [
13017
- createBaseVNode("span", _hoisted_3$m, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
13018
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
13052
+ createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
13053
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
13019
13054
  ])
13020
13055
  ]),
13021
13056
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
@@ -13039,7 +13074,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13039
13074
  "data-cy": "lupa-search-result-facet-term-values"
13040
13075
  };
13041
13076
  const _hoisted_2$v = { key: 0 };
13042
- const _hoisted_3$l = ["placeholder"];
13077
+ const _hoisted_3$m = ["placeholder"];
13043
13078
  const _sfc_main$K = /* @__PURE__ */ defineComponent({
13044
13079
  __name: "HierarchyFacet",
13045
13080
  props: {
@@ -13097,7 +13132,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13097
13132
  "data-cy": "lupa-term-filter",
13098
13133
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
13099
13134
  placeholder: _ctx.options.labels.facetFilter
13100
- }, null, 8, _hoisted_3$l), [
13135
+ }, null, 8, _hoisted_3$m), [
13101
13136
  [vModelText, termFilter.value]
13102
13137
  ])
13103
13138
  ])) : createCommentVNode("", true),
@@ -13201,12 +13236,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13201
13236
  onBeforeUnmount(() => {
13202
13237
  window.removeEventListener("click", handleMouseClick);
13203
13238
  });
13204
- const handleMouseClick = (e) => {
13239
+ const handleMouseClick = (e2) => {
13205
13240
  const el = facetPanel.value;
13206
13241
  if (!el) {
13207
13242
  return;
13208
13243
  }
13209
- const isOutsideElement = el && !el.contains(e.target);
13244
+ const isOutsideElement = el && !el.contains(e2.target);
13210
13245
  if (isOutsideElement) {
13211
13246
  isOpen.value = false;
13212
13247
  }
@@ -13526,8 +13561,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13526
13561
  class: "lupa-mobile-filter-sidebar"
13527
13562
  };
13528
13563
  const _hoisted_2$r = ["onClick"];
13529
- const _hoisted_3$k = { class: "lupa-mobile-sidebar-content" };
13530
- const _hoisted_4$f = { class: "lupa-sidebar-top" };
13564
+ const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
13565
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
13531
13566
  const _hoisted_5$9 = { class: "lupa-sidebar-title" };
13532
13567
  const _hoisted_6$6 = {
13533
13568
  key: 0,
@@ -13570,8 +13605,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13570
13605
  class: "lupa-sidebar-close",
13571
13606
  onClick: withModifiers(handleMobileToggle, ["stop"])
13572
13607
  }, null, 8, _hoisted_2$r),
13573
- createBaseVNode("div", _hoisted_3$k, [
13574
- createBaseVNode("div", _hoisted_4$f, [
13608
+ createBaseVNode("div", _hoisted_3$l, [
13609
+ createBaseVNode("div", _hoisted_4$g, [
13575
13610
  createBaseVNode("div", _hoisted_5$9, [
13576
13611
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
13577
13612
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -13595,11 +13630,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13595
13630
  });
13596
13631
  const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
13597
13632
  const _hoisted_2$q = ["href", "onClick"];
13598
- const _hoisted_3$j = {
13633
+ const _hoisted_3$k = {
13599
13634
  key: 1,
13600
13635
  class: "lupa-search-results-breadcrumb-text"
13601
13636
  };
13602
- const _hoisted_4$e = { key: 2 };
13637
+ const _hoisted_4$f = { key: 2 };
13603
13638
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
13604
13639
  __name: "SearchResultsBreadcrumbs",
13605
13640
  props: {
@@ -13635,12 +13670,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13635
13670
  key: 0,
13636
13671
  class: "lupa-search-results-breadcrumb-link",
13637
13672
  href: breadcrumb.link,
13638
- onClick: (e) => {
13673
+ onClick: (e2) => {
13639
13674
  var _a;
13640
- return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
13675
+ return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
13641
13676
  }
13642
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(getLabel(breadcrumb.label)), 1)),
13643
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
13677
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
13678
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
13644
13679
  ]);
13645
13680
  }), 128))
13646
13681
  ]);
@@ -13745,8 +13780,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13745
13780
  key: 0,
13746
13781
  class: "lupa-page-number-separator"
13747
13782
  };
13748
- const _hoisted_3$i = ["onClick"];
13749
- const _hoisted_4$d = {
13783
+ const _hoisted_3$j = ["onClick"];
13784
+ const _hoisted_4$e = {
13750
13785
  key: 0,
13751
13786
  class: "lupa-page-number-separator"
13752
13787
  };
@@ -13849,10 +13884,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13849
13884
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
13850
13885
  ]),
13851
13886
  "data-cy": "lupa-page-number"
13852
- }, toDisplayString(page), 11, _hoisted_3$i);
13887
+ }, toDisplayString(page), 11, _hoisted_3$j);
13853
13888
  }), 128)),
13854
13889
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
13855
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
13890
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
13856
13891
  createBaseVNode("div", {
13857
13892
  class: "lupa-page-number lupa-page-number-last",
13858
13893
  onClick: _cache[2] || (_cache[2] = () => {
@@ -13876,8 +13911,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13876
13911
  "data-cy": "lupa-search-results-page-size"
13877
13912
  };
13878
13913
  const _hoisted_2$o = { id: "lupa-select" };
13879
- const _hoisted_3$h = { class: "lupa-select-label" };
13880
- const _hoisted_4$c = ["aria-label"];
13914
+ const _hoisted_3$i = { class: "lupa-select-label" };
13915
+ const _hoisted_4$d = ["aria-label"];
13881
13916
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
13882
13917
  __name: "SearchResultsPageSize",
13883
13918
  props: {
@@ -13897,8 +13932,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13897
13932
  var _a, _b;
13898
13933
  return (_b = (_a = props.labels) == null ? void 0 : _a.pageSize) != null ? _b : "";
13899
13934
  });
13900
- const handleSelect = (e) => {
13901
- const value = e.target.value;
13935
+ const handleSelect = (e2) => {
13936
+ const value = e2.target.value;
13902
13937
  paramsStore.appendParams({
13903
13938
  params: [{ name: optionsStore.getQueryParamName(QUERY_PARAMS$1.LIMIT), value }],
13904
13939
  paramsToRemove: [optionsStore.getQueryParamName(QUERY_PARAMS$1.PAGE)]
@@ -13907,7 +13942,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13907
13942
  return (_ctx, _cache) => {
13908
13943
  return openBlock(), createElementBlock("div", _hoisted_1$v, [
13909
13944
  createBaseVNode("div", _hoisted_2$o, [
13910
- createBaseVNode("label", _hoisted_3$h, toDisplayString(label.value), 1),
13945
+ createBaseVNode("label", _hoisted_3$i, toDisplayString(label.value), 1),
13911
13946
  createBaseVNode("select", {
13912
13947
  class: "lupa-select-dropdown",
13913
13948
  "aria-label": label.value,
@@ -13919,7 +13954,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13919
13954
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
13920
13955
  return openBlock(), createElementBlock("option", { key: option }, toDisplayString(prefixLabel.value) + toDisplayString(option), 1);
13921
13956
  }), 128))
13922
- ], 40, _hoisted_4$c)
13957
+ ], 40, _hoisted_4$d)
13923
13958
  ])
13924
13959
  ]);
13925
13960
  };
@@ -13930,8 +13965,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13930
13965
  class: "lupa-search-results-sort"
13931
13966
  };
13932
13967
  const _hoisted_2$n = { id: "lupa-select" };
13933
- const _hoisted_3$g = { class: "lupa-select-label" };
13934
- const _hoisted_4$b = ["aria-label"];
13968
+ const _hoisted_3$h = { class: "lupa-select-label" };
13969
+ const _hoisted_4$c = ["aria-label"];
13935
13970
  const _hoisted_5$8 = ["value"];
13936
13971
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
13937
13972
  __name: "SearchResultsSort",
@@ -13984,7 +14019,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13984
14019
  return (_ctx, _cache) => {
13985
14020
  return openBlock(), createElementBlock("div", _hoisted_1$u, [
13986
14021
  createBaseVNode("div", _hoisted_2$n, [
13987
- createBaseVNode("label", _hoisted_3$g, toDisplayString(_ctx.options.label), 1),
14022
+ createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
13988
14023
  withDirectives(createBaseVNode("select", {
13989
14024
  class: "lupa-select-dropdown",
13990
14025
  "aria-label": _ctx.options.label,
@@ -13999,7 +14034,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13999
14034
  value: option.key
14000
14035
  }, toDisplayString(option.label), 9, _hoisted_5$8);
14001
14036
  }), 128))
14002
- ], 40, _hoisted_4$b), [
14037
+ ], 40, _hoisted_4$c), [
14003
14038
  [vModelSelect, selectedKey.value]
14004
14039
  ])
14005
14040
  ])
@@ -14012,8 +14047,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14012
14047
  key: 0,
14013
14048
  class: "lupa-toolbar-right-title"
14014
14049
  };
14015
- const _hoisted_3$f = { key: 2 };
14016
- const _hoisted_4$a = { key: 4 };
14050
+ const _hoisted_3$g = { key: 2 };
14051
+ const _hoisted_4$b = { key: 4 };
14017
14052
  const _hoisted_5$7 = { key: 6 };
14018
14053
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
14019
14054
  const _hoisted_7$3 = {
@@ -14131,13 +14166,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14131
14166
  }, [
14132
14167
  createBaseVNode("div", _hoisted_1$t, [
14133
14168
  toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
14134
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
14169
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
14135
14170
  showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
14136
14171
  key: 3,
14137
14172
  label: searchSummaryLabel.value,
14138
14173
  clearable: unref(hasAnyFilter) && showFilterClear.value,
14139
14174
  onClear: handleClearAll
14140
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$a)),
14175
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
14141
14176
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
14142
14177
  key: 5,
14143
14178
  options: paginationOptions.value.pageSelect,
@@ -14185,11 +14220,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14185
14220
  });
14186
14221
  const _hoisted_1$s = ["innerHTML"];
14187
14222
  const _hoisted_2$l = ["title"];
14188
- const _hoisted_3$e = {
14223
+ const _hoisted_3$f = {
14189
14224
  key: 0,
14190
14225
  class: "lupa-search-results-product-title-text"
14191
14226
  };
14192
- const _hoisted_4$9 = ["href"];
14227
+ const _hoisted_4$a = ["href"];
14193
14228
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
14194
14229
  __name: "SearchResultsProductTitle",
14195
14230
  props: {
@@ -14229,13 +14264,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14229
14264
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
14230
14265
  title: title.value
14231
14266
  }, [
14232
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(title.value), 1)) : createCommentVNode("", true),
14267
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(title.value), 1)) : createCommentVNode("", true),
14233
14268
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
14234
14269
  key: 1,
14235
14270
  href: _ctx.link,
14236
14271
  class: "lupa-search-results-product-title-text lupa-title-link",
14237
14272
  onClick: handleNavigation
14238
- }, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
14273
+ }, toDisplayString(title.value), 9, _hoisted_4$a)) : createCommentVNode("", true)
14239
14274
  ], 12, _hoisted_2$l));
14240
14275
  };
14241
14276
  }
@@ -14275,8 +14310,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14275
14310
  });
14276
14311
  const _hoisted_1$q = { id: "lupa-search-results-rating" };
14277
14312
  const _hoisted_2$k = { class: "lupa-ratings" };
14278
- const _hoisted_3$d = { class: "lupa-ratings-base" };
14279
- const _hoisted_4$8 = ["innerHTML"];
14313
+ const _hoisted_3$e = { class: "lupa-ratings-base" };
14314
+ const _hoisted_4$9 = ["innerHTML"];
14280
14315
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
14281
14316
  const _hoisted_6$4 = ["innerHTML"];
14282
14317
  const _hoisted_7$2 = ["href"];
@@ -14314,13 +14349,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14314
14349
  return (_ctx, _cache) => {
14315
14350
  return openBlock(), createElementBlock("div", _hoisted_1$q, [
14316
14351
  createBaseVNode("div", _hoisted_2$k, [
14317
- createBaseVNode("div", _hoisted_3$d, [
14352
+ createBaseVNode("div", _hoisted_3$e, [
14318
14353
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
14319
14354
  return openBlock(), createElementBlock("div", {
14320
14355
  key: index,
14321
14356
  innerHTML: star,
14322
14357
  class: "lupa-rating lupa-rating-not-highlighted"
14323
- }, null, 8, _hoisted_4$8);
14358
+ }, null, 8, _hoisted_4$9);
14324
14359
  }), 128))
14325
14360
  ]),
14326
14361
  createBaseVNode("div", _hoisted_5$6, [
@@ -14402,7 +14437,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14402
14437
  });
14403
14438
  const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
14404
14439
  const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
14405
- const _hoisted_3$c = ["onClick", "disabled"];
14440
+ const _hoisted_3$d = ["onClick", "disabled"];
14406
14441
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
14407
14442
  __name: "SearchResultsProductAddToCart",
14408
14443
  props: {
@@ -14437,7 +14472,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14437
14472
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
14438
14473
  "data-cy": "lupa-add-to-cart",
14439
14474
  disabled: !inStockValue.value || loading.value
14440
- }, toDisplayString(label.value), 11, _hoisted_3$c)
14475
+ }, toDisplayString(label.value), 11, _hoisted_3$d)
14441
14476
  ])
14442
14477
  ]);
14443
14478
  };
@@ -14445,8 +14480,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14445
14480
  });
14446
14481
  const _hoisted_1$m = ["innerHTML"];
14447
14482
  const _hoisted_2$i = { key: 0 };
14448
- const _hoisted_3$b = { key: 1 };
14449
- const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
14483
+ const _hoisted_3$c = { key: 1 };
14484
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
14450
14485
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
14451
14486
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
14452
14487
  __name: "SearchResultsProductCustom",
@@ -14490,8 +14525,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14490
14525
  key: 1,
14491
14526
  class: className.value
14492
14527
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
14493
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
14494
- createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
14528
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
14529
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
14495
14530
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
14496
14531
  ]))
14497
14532
  ], 16));
@@ -14533,8 +14568,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14533
14568
  });
14534
14569
  const _hoisted_1$k = { id: "lupa-search-results-rating" };
14535
14570
  const _hoisted_2$h = ["innerHTML"];
14536
- const _hoisted_3$a = { class: "lupa-ratings" };
14537
- const _hoisted_4$6 = ["href"];
14571
+ const _hoisted_3$b = { class: "lupa-ratings" };
14572
+ const _hoisted_4$7 = ["href"];
14538
14573
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
14539
14574
  __name: "SearchResultsProductSingleStarRating",
14540
14575
  props: {
@@ -14568,11 +14603,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14568
14603
  innerHTML: star.value,
14569
14604
  class: "lupa-rating lupa-rating-highlighted"
14570
14605
  }, null, 8, _hoisted_2$h),
14571
- createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
14606
+ createBaseVNode("div", _hoisted_3$b, toDisplayString(rating.value), 1),
14572
14607
  createBaseVNode("a", {
14573
14608
  href: ratingLink.value,
14574
14609
  class: "lupa-total-ratings"
14575
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$6)
14610
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
14576
14611
  ]);
14577
14612
  };
14578
14613
  }
@@ -14667,14 +14702,15 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14667
14702
  key: 0,
14668
14703
  class: "lupa-out-of-stock"
14669
14704
  };
14670
- const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
14705
+ const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
14671
14706
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
14672
14707
  __name: "SearchResultsProductCard",
14673
14708
  props: {
14674
14709
  product: {},
14675
14710
  options: {},
14676
14711
  isAdditionalPanel: { type: Boolean },
14677
- clickTrackingSettings: {}
14712
+ clickTrackingSettings: {},
14713
+ lupaClickTrackingType: {}
14678
14714
  },
14679
14715
  setup(__props) {
14680
14716
  const props = __props;
@@ -14698,11 +14734,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14698
14734
  });
14699
14735
  const imageElements = computed(() => {
14700
14736
  var _a, _b;
14701
- return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e) => e.type === DocumentElementType.IMAGE && !e.group)) != null ? _b : [];
14737
+ return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.type === DocumentElementType.IMAGE && !e2.group)) != null ? _b : [];
14702
14738
  });
14703
14739
  const detailElements = computed(() => {
14704
14740
  var _a, _b;
14705
- return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e) => e.type !== DocumentElementType.IMAGE && !e.group)) != null ? _b : [];
14741
+ return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.type !== DocumentElementType.IMAGE && !e2.group)) != null ? _b : [];
14706
14742
  });
14707
14743
  const labels = computed(() => {
14708
14744
  return props.options.labels;
@@ -14721,7 +14757,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14721
14757
  var _a;
14722
14758
  return [
14723
14759
  ...Array.from(
14724
- new Set((_a = props.options.elements) == null ? void 0 : _a.map((e) => e.group).filter((g) => Boolean(g)))
14760
+ new Set((_a = props.options.elements) == null ? void 0 : _a.map((e2) => e2.group).filter((g) => Boolean(g)))
14725
14761
  )
14726
14762
  ];
14727
14763
  });
@@ -14757,7 +14793,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14757
14793
  });
14758
14794
  const getGroupElements = (group) => {
14759
14795
  var _a, _b;
14760
- return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e) => e.group === group)) != null ? _b : [];
14796
+ return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.group === group)) != null ? _b : [];
14761
14797
  };
14762
14798
  onMounted(() => {
14763
14799
  checkIfIsInStock();
@@ -14766,16 +14802,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14766
14802
  isInStock.value = props.options.isInStock ? yield props.options.isInStock(props.product) : true;
14767
14803
  });
14768
14804
  const handleClick = () => {
14769
- var _a, _b, _c;
14805
+ var _a, _b, _c, _d;
14770
14806
  trackingStore.trackEvent({
14771
14807
  queryKey: props.options.queryKey,
14772
14808
  data: {
14773
14809
  itemId: id.value,
14774
14810
  searchQuery: query.value,
14775
- type: "itemClick",
14811
+ type: (_a = props.lupaClickTrackingType) != null ? _a : "itemClick",
14776
14812
  analytics: {
14777
14813
  type: clickTrackingType.value,
14778
- label: (_a = trackingLabel.value) != null ? _a : "",
14814
+ label: (_b = trackingLabel.value) != null ? _b : "",
14779
14815
  listLabel: trackingListLabel.value,
14780
14816
  items: [props.product],
14781
14817
  itemId: id.value
@@ -14783,7 +14819,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14783
14819
  options: { allowEmptySearchQuery: true }
14784
14820
  }
14785
14821
  });
14786
- (_c = (_b = searchResultOptions.value.callbacks) == null ? void 0 : _b.onProductClick) == null ? void 0 : _c.call(_b, {
14822
+ (_d = (_c = searchResultOptions.value.callbacks) == null ? void 0 : _c.onProductClick) == null ? void 0 : _d.call(_c, {
14787
14823
  queryKey: query.value,
14788
14824
  hasResults: true,
14789
14825
  productId: id.value
@@ -14844,7 +14880,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14844
14880
  }, null, 8, ["options"]),
14845
14881
  ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
14846
14882
  ], 8, _hoisted_1$j),
14847
- createBaseVNode("div", _hoisted_3$9, [
14883
+ createBaseVNode("div", _hoisted_3$a, [
14848
14884
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
14849
14885
  return openBlock(), createBlock(_sfc_main$l, {
14850
14886
  class: "lupa-search-results-product-element",
@@ -14887,11 +14923,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14887
14923
  "data-cy": "lupa-search-results-similar-queries"
14888
14924
  };
14889
14925
  const _hoisted_2$f = { class: "lupa-similar-queries-label" };
14890
- const _hoisted_3$8 = {
14926
+ const _hoisted_3$9 = {
14891
14927
  class: "lupa-similar-query-label",
14892
14928
  "data-cy": "lupa-similar-query-label"
14893
14929
  };
14894
- const _hoisted_4$5 = ["onClick"];
14930
+ const _hoisted_4$6 = ["onClick"];
14895
14931
  const _hoisted_5$4 = ["innerHTML"];
14896
14932
  const _hoisted_6$3 = { key: 0 };
14897
14933
  const _hoisted_7$1 = {
@@ -14932,7 +14968,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14932
14968
  createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
14933
14969
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
14934
14970
  return openBlock(), createElementBlock("div", { key: index }, [
14935
- createBaseVNode("div", _hoisted_3$8, [
14971
+ createBaseVNode("div", _hoisted_3$9, [
14936
14972
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
14937
14973
  createBaseVNode("span", {
14938
14974
  id: "lupa-similar-query-text-component",
@@ -14944,7 +14980,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14944
14980
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
14945
14981
  }, null, 8, _hoisted_5$4),
14946
14982
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
14947
- ], 8, _hoisted_4$5)
14983
+ ], 8, _hoisted_4$6)
14948
14984
  ]),
14949
14985
  createBaseVNode("div", _hoisted_7$1, [
14950
14986
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -15121,7 +15157,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15121
15157
  "data-cy": "lupa-search-results-similar-results"
15122
15158
  };
15123
15159
  const _hoisted_2$c = { class: "lupa-similar-results-label" };
15124
- const _hoisted_3$7 = {
15160
+ const _hoisted_3$8 = {
15125
15161
  class: "lupa-products",
15126
15162
  "data-cy": "lupa-products"
15127
15163
  };
@@ -15143,7 +15179,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15143
15179
  return (_ctx, _cache) => {
15144
15180
  return openBlock(), createElementBlock("div", _hoisted_1$e, [
15145
15181
  createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
15146
- createBaseVNode("div", _hoisted_3$7, [
15182
+ createBaseVNode("div", _hoisted_3$8, [
15147
15183
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
15148
15184
  return openBlock(), createBlock(_sfc_main$k, {
15149
15185
  style: normalizeStyle(_ctx.columnSize),
@@ -15162,12 +15198,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15162
15198
  class: "lupa-products",
15163
15199
  "data-cy": "lupa-products"
15164
15200
  };
15165
- const _hoisted_3$6 = {
15201
+ const _hoisted_3$7 = {
15166
15202
  key: 1,
15167
15203
  class: "lupa-empty-results",
15168
15204
  "data-cy": "lupa-no-results-in-page"
15169
15205
  };
15170
- const _hoisted_4$4 = {
15206
+ const _hoisted_4$5 = {
15171
15207
  key: 3,
15172
15208
  class: "lupa-empty-results",
15173
15209
  "data-cy": "lupa-no-results"
@@ -15341,7 +15377,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15341
15377
  }, null, 8, ["style", "product", "options"]);
15342
15378
  }), 128))
15343
15379
  ]),
15344
- unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
15380
+ unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
15345
15381
  createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
15346
15382
  _ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
15347
15383
  key: 0,
@@ -15359,7 +15395,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15359
15395
  location: "bottom",
15360
15396
  sdkOptions: _ctx.options.options
15361
15397
  }, null, 8, ["options", "sdkOptions"])
15362
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
15398
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
15363
15399
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
15364
15400
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
15365
15401
  ])) : createCommentVNode("", true),
@@ -15387,7 +15423,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15387
15423
  key: 0,
15388
15424
  class: "lupa-category-back"
15389
15425
  };
15390
- const _hoisted_3$5 = ["href"];
15426
+ const _hoisted_3$6 = ["href"];
15391
15427
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
15392
15428
  __name: "CategoryTopFilters",
15393
15429
  props: {
@@ -15426,7 +15462,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15426
15462
  "data-cy": "lupa-category-back",
15427
15463
  href: backUrlLink.value,
15428
15464
  onClick: handleNavigationBack
15429
- }, toDisplayString(backTitle.value), 9, _hoisted_3$5)
15465
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
15430
15466
  ])) : createCommentVNode("", true),
15431
15467
  createVNode(_sfc_main$w, {
15432
15468
  class: "lupa-toolbar-mobile",
@@ -15447,8 +15483,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15447
15483
  id: "lupa-search-results",
15448
15484
  class: "top-layout-wrapper"
15449
15485
  };
15450
- const _hoisted_3$4 = { class: "search-content" };
15451
- const _hoisted_4$3 = { id: "lupa-search-results" };
15486
+ const _hoisted_3$5 = { class: "search-content" };
15487
+ const _hoisted_4$4 = { id: "lupa-search-results" };
15452
15488
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
15453
15489
  __name: "SearchResults",
15454
15490
  props: {
@@ -15688,7 +15724,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15688
15724
  ref: searchResultsFilters,
15689
15725
  onFilter: handleParamsChange
15690
15726
  }, null, 8, ["options"])) : createCommentVNode("", true),
15691
- createBaseVNode("div", _hoisted_3$4, [
15727
+ createBaseVNode("div", _hoisted_3$5, [
15692
15728
  createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15693
15729
  createVNode(_sfc_main$S, {
15694
15730
  options: _ctx.options,
@@ -15711,7 +15747,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
15711
15747
  options: _ctx.options,
15712
15748
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
15713
15749
  }, null, 8, ["options", "is-product-list"]),
15714
- createBaseVNode("div", _hoisted_4$3, [
15750
+ createBaseVNode("div", _hoisted_4$4, [
15715
15751
  showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
15716
15752
  key: 0,
15717
15753
  options: (_e = _ctx.options.filters) != null ? _e : {},
@@ -16163,7 +16199,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
16163
16199
  return types;
16164
16200
  }
16165
16201
  return freeProcess && freeProcess.binding && freeProcess.binding("util");
16166
- } catch (e) {
16202
+ } catch (e2) {
16167
16203
  }
16168
16204
  }();
16169
16205
  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
@@ -16535,7 +16571,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
16535
16571
  var func = getNative(Object2, "defineProperty");
16536
16572
  func({}, "", {});
16537
16573
  return func;
16538
- } catch (e) {
16574
+ } catch (e2) {
16539
16575
  }
16540
16576
  }();
16541
16577
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
@@ -18567,7 +18603,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
18567
18603
  try {
18568
18604
  value[symToStringTag] = undefined$1;
18569
18605
  var unmasked = true;
18570
- } catch (e) {
18606
+ } catch (e2) {
18571
18607
  }
18572
18608
  var result2 = nativeObjectToString.call(value);
18573
18609
  if (unmasked) {
@@ -18924,11 +18960,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
18924
18960
  if (func != null) {
18925
18961
  try {
18926
18962
  return funcToString.call(func);
18927
- } catch (e) {
18963
+ } catch (e2) {
18928
18964
  }
18929
18965
  try {
18930
18966
  return func + "";
18931
- } catch (e) {
18967
+ } catch (e2) {
18932
18968
  }
18933
18969
  }
18934
18970
  return "";
@@ -20615,8 +20651,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20615
20651
  var attempt = baseRest(function(func, args) {
20616
20652
  try {
20617
20653
  return apply(func, undefined$1, args);
20618
- } catch (e) {
20619
- return isError(e) ? e : new Error2(e);
20654
+ } catch (e2) {
20655
+ return isError(e2) ? e2 : new Error2(e2);
20620
20656
  }
20621
20657
  });
20622
20658
  var bindAll = flatRest(function(object, methodNames) {
@@ -21759,8 +21795,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21759
21795
  const tolerance = Math.sign(dragged.x) * 0.4;
21760
21796
  const draggedSlides = Math.round(dragged.x / slideWidth.value + tolerance) * direction;
21761
21797
  if (draggedSlides && !isTouch) {
21762
- const captureClick = (e) => {
21763
- e.stopPropagation();
21798
+ const captureClick = (e2) => {
21799
+ e2.stopPropagation();
21764
21800
  window.removeEventListener("click", captureClick, true);
21765
21801
  };
21766
21802
  window.addEventListener("click", captureClick, true);
@@ -22064,9 +22100,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22064
22100
  const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
22065
22101
  const _hoisted_2$6 = {
22066
22102
  key: 0,
22103
+ class: "lupa-recommendation-section-title"
22104
+ };
22105
+ const _hoisted_3$4 = {
22106
+ key: 1,
22067
22107
  class: "lupa-recommended-products",
22068
22108
  "data-cy": "lupa-recommended-products"
22069
22109
  };
22110
+ const _hoisted_4$3 = {
22111
+ key: 1,
22112
+ class: "lupa-products",
22113
+ "data-cy": "lupa-products"
22114
+ };
22070
22115
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22071
22116
  __name: "Recommendations",
22072
22117
  props: {
@@ -22075,6 +22120,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22075
22120
  setup(__props, { expose: __expose }) {
22076
22121
  const props = __props;
22077
22122
  const optionsStore = useOptionsStore();
22123
+ const searchResultStore = useSearchResultStore();
22124
+ const screenStore = useScreenStore();
22125
+ const { columnCount } = storeToRefs(searchResultStore);
22078
22126
  const recommendations2 = ref([]);
22079
22127
  const recommendationsType = ref(
22080
22128
  "recommendations_lupasearch"
@@ -22091,15 +22139,35 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22091
22139
  eventLabel: recommendationsType.value
22092
22140
  };
22093
22141
  });
22142
+ const layoutType = computed(() => {
22143
+ var _a;
22144
+ return (_a = props.options.layoutType) != null ? _a : "carousel";
22145
+ });
22146
+ const columnSize = computed(() => `width: ${100 / columnCount.value}%`);
22147
+ const title = computed(() => {
22148
+ var _a, _b;
22149
+ return (_b = (_a = props.options.recommendationLabels) == null ? void 0 : _a.title) != null ? _b : "";
22150
+ });
22094
22151
  onMounted(() => {
22095
22152
  loadRecommendations();
22153
+ window.addEventListener("resize", handleResize);
22154
+ handleResize();
22096
22155
  optionsStore.setSearchResultOptions({
22097
22156
  options: props.options
22098
22157
  });
22099
22158
  });
22159
+ onBeforeUnmount(() => {
22160
+ window.removeEventListener("resize", handleResize);
22161
+ });
22100
22162
  const getProductKeyAction = (index, product) => {
22101
22163
  return getProductKey(index.toString(), product, props.options.idKey);
22102
22164
  };
22165
+ const handleResize = () => {
22166
+ const doc2 = document.documentElement;
22167
+ doc2.style.setProperty("--lupa-full-height", `${window.innerHeight}px`);
22168
+ screenStore.setScreenWidth({ width: window.innerWidth });
22169
+ searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
22170
+ };
22103
22171
  const loadRecommendations = () => {
22104
22172
  var _a, _b, _c, _d, _e;
22105
22173
  if ((_a = props.options.abTesting) == null ? void 0 : _a.enabled) {
@@ -22141,6 +22209,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22141
22209
  const result = yield LupaSearchSdk.recommend(
22142
22210
  props.options.queryKey,
22143
22211
  props.options.itemId,
22212
+ props.options.recommendationFilters,
22144
22213
  props.options.options
22145
22214
  );
22146
22215
  if (!result.success) {
@@ -22154,8 +22223,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22154
22223
  __expose({ fetch: fetch2 });
22155
22224
  return (_ctx, _cache) => {
22156
22225
  return openBlock(), createElementBlock("div", _hoisted_1$8, [
22157
- !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
22158
- createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
22226
+ title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
22227
+ !loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
22228
+ layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
22159
22229
  addons: withCtx(() => [
22160
22230
  createVNode(unref(Navigation))
22161
22231
  ]),
@@ -22176,7 +22246,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22176
22246
  }), 128))
22177
22247
  ]),
22178
22248
  _: 1
22179
- }, 16)
22249
+ }, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
22250
+ (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
22251
+ return openBlock(), createBlock(_sfc_main$k, {
22252
+ style: normalizeStyle(columnSize.value),
22253
+ key: getProductKeyAction(index, product),
22254
+ product,
22255
+ options: _ctx.options,
22256
+ "lupa-click-tracking-type": `recommendedItemClick`
22257
+ }, null, 8, ["style", "product", "options"]);
22258
+ }), 128))
22259
+ ]))
22180
22260
  ])) : createCommentVNode("", true)
22181
22261
  ]);
22182
22262
  };
@@ -22289,9 +22369,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22289
22369
  const errors = yield res.json();
22290
22370
  (_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
22291
22371
  return { success: false, errors };
22292
- } catch (e) {
22293
- (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e);
22294
- return { success: false, errors: [e] };
22372
+ } catch (e2) {
22373
+ (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
22374
+ return { success: false, errors: [e2] };
22295
22375
  }
22296
22376
  });
22297
22377
  const suggestPhraseAlternatives = (options, request, chatSettings) => __async(void 0, null, function* () {
@@ -22313,9 +22393,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22313
22393
  const errors = yield res.json();
22314
22394
  (_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
22315
22395
  return { success: false, errors };
22316
- } catch (e) {
22317
- (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e);
22318
- return { success: false, errors: [e] };
22396
+ } catch (e2) {
22397
+ (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
22398
+ return { success: false, errors: [e2] };
22319
22399
  }
22320
22400
  });
22321
22401
  const suggestBestProductMatches = (options, request, chatSettings) => __async(void 0, null, function* () {
@@ -22334,9 +22414,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22334
22414
  const errors = yield res.json();
22335
22415
  (_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
22336
22416
  return { success: false, errors };
22337
- } catch (e) {
22338
- (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e);
22339
- return { success: false, errors: [e] };
22417
+ } catch (e2) {
22418
+ (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
22419
+ return { success: false, errors: [e2] };
22340
22420
  }
22341
22421
  });
22342
22422
  const prepareChatHistory = (chatLog) => {
@@ -23159,7 +23239,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23159
23239
  return types;
23160
23240
  }
23161
23241
  return freeProcess && freeProcess.binding && freeProcess.binding("util");
23162
- } catch (e) {
23242
+ } catch (e2) {
23163
23243
  }
23164
23244
  }();
23165
23245
  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
@@ -23531,7 +23611,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23531
23611
  var func = getNative(Object2, "defineProperty");
23532
23612
  func({}, "", {});
23533
23613
  return func;
23534
- } catch (e) {
23614
+ } catch (e2) {
23535
23615
  }
23536
23616
  }();
23537
23617
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
@@ -25563,7 +25643,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25563
25643
  try {
25564
25644
  value[symToStringTag] = undefined$1;
25565
25645
  var unmasked = true;
25566
- } catch (e) {
25646
+ } catch (e2) {
25567
25647
  }
25568
25648
  var result2 = nativeObjectToString.call(value);
25569
25649
  if (unmasked) {
@@ -25920,11 +26000,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25920
26000
  if (func != null) {
25921
26001
  try {
25922
26002
  return funcToString.call(func);
25923
- } catch (e) {
26003
+ } catch (e2) {
25924
26004
  }
25925
26005
  try {
25926
26006
  return func + "";
25927
- } catch (e) {
26007
+ } catch (e2) {
25928
26008
  }
25929
26009
  }
25930
26010
  return "";
@@ -27611,8 +27691,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
27611
27691
  var attempt = baseRest(function(func, args) {
27612
27692
  try {
27613
27693
  return apply(func, undefined$1, args);
27614
- } catch (e) {
27615
- return isError(e) ? e : new Error2(e);
27694
+ } catch (e2) {
27695
+ return isError(e2) ? e2 : new Error2(e2);
27616
27696
  }
27617
27697
  });
27618
27698
  var bindAll = flatRest(function(object, methodNames) {
@@ -28545,9 +28625,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
28545
28625
  const openSearchContainer = () => {
28546
28626
  isOpen.value = true;
28547
28627
  };
28548
- const checkCloseOnEscape = (e) => {
28628
+ const checkCloseOnEscape = (e2) => {
28549
28629
  var _a;
28550
- if (!["Escape", "Esc"].includes((_a = e.key) != null ? _a : "")) {
28630
+ if (!["Escape", "Esc"].includes((_a = e2.key) != null ? _a : "")) {
28551
28631
  return;
28552
28632
  }
28553
28633
  isOpen.value = false;
@@ -28690,7 +28770,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
28690
28770
  }
28691
28771
  try {
28692
28772
  return +parseFloat(`${value}`).toFixed(maxDecimal);
28693
- } catch (e) {
28773
+ } catch (e2) {
28694
28774
  return `${value}`;
28695
28775
  }
28696
28776
  };
@@ -29257,7 +29337,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
29257
29337
  clearInstance(app.box[key].mountElement, app.box[key].app);
29258
29338
  }
29259
29339
  app.box = {};
29260
- } catch (e) {
29340
+ } catch (e2) {
29261
29341
  }
29262
29342
  };
29263
29343
  const clearSearchResults = (selector) => {
@@ -29270,7 +29350,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
29270
29350
  clearInstance(app.results[key].mountElement, app.results[key].app);
29271
29351
  }
29272
29352
  app.results = {};
29273
- } catch (e) {
29353
+ } catch (e2) {
29274
29354
  }
29275
29355
  };
29276
29356
  const clearProductList = (selector) => {
@@ -29283,7 +29363,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
29283
29363
  clearInstance(app.productList[key].mountElement, app.productList[key].app);
29284
29364
  }
29285
29365
  app.productList = {};
29286
- } catch (e) {
29366
+ } catch (e2) {
29287
29367
  }
29288
29368
  };
29289
29369
  const clearSearchContainer = (selector) => {
@@ -29296,7 +29376,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
29296
29376
  clearInstance(app.searchContainer[key].mountElement, app.searchContainer[key].app);
29297
29377
  }
29298
29378
  app.searchContainer = {};
29299
- } catch (e) {
29379
+ } catch (e2) {
29300
29380
  }
29301
29381
  };
29302
29382
  const clearRecommendations = (selector) => {
@@ -29309,7 +29389,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
29309
29389
  clearInstance(app.recommendations[key].mountElement, app.recommendations[key].app);
29310
29390
  }
29311
29391
  app.recommendations = {};
29312
- } catch (e) {
29392
+ } catch (e2) {
29313
29393
  }
29314
29394
  };
29315
29395
  const clearChat = (selector) => {
@@ -29322,7 +29402,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
29322
29402
  clearInstance(app.chat[key].mountElement, app.chat[key].app);
29323
29403
  }
29324
29404
  app.chat = {};
29325
- } catch (e) {
29405
+ } catch (e2) {
29326
29406
  }
29327
29407
  };
29328
29408
  const lupaSearch = {