@getlupa/client 1.12.5 → 1.12.7

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.
@@ -5416,8 +5416,8 @@ function setupStatefulComponent(instance, isSSR) {
5416
5416
  if (isSSR) {
5417
5417
  return setupResult.then((resolvedResult) => {
5418
5418
  handleSetupResult(instance, resolvedResult, isSSR);
5419
- }).catch((e) => {
5420
- handleError(e, instance, 0);
5419
+ }).catch((e2) => {
5420
+ handleError(e2, instance, 0);
5421
5421
  });
5422
5422
  } else {
5423
5423
  instance.asyncDep = setupResult;
@@ -5757,7 +5757,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
5757
5757
  }
5758
5758
  try {
5759
5759
  el[key] = value;
5760
- } catch (e) {
5760
+ } catch (e2) {
5761
5761
  }
5762
5762
  needRemove && el.removeAttribute(key);
5763
5763
  }
@@ -5801,31 +5801,31 @@ let cachedNow = 0;
5801
5801
  const p$1 = /* @__PURE__ */ Promise.resolve();
5802
5802
  const getNow = () => cachedNow || (p$1.then(() => cachedNow = 0), cachedNow = Date.now());
5803
5803
  function createInvoker(initialValue, instance) {
5804
- const invoker = (e) => {
5805
- if (!e._vts) {
5806
- e._vts = Date.now();
5807
- } else if (e._vts <= invoker.attached) {
5804
+ const invoker = (e2) => {
5805
+ if (!e2._vts) {
5806
+ e2._vts = Date.now();
5807
+ } else if (e2._vts <= invoker.attached) {
5808
5808
  return;
5809
5809
  }
5810
5810
  callWithAsyncErrorHandling(
5811
- patchStopImmediatePropagation(e, invoker.value),
5811
+ patchStopImmediatePropagation(e2, invoker.value),
5812
5812
  instance,
5813
5813
  5,
5814
- [e]
5814
+ [e2]
5815
5815
  );
5816
5816
  };
5817
5817
  invoker.value = initialValue;
5818
5818
  invoker.attached = getNow();
5819
5819
  return invoker;
5820
5820
  }
5821
- function patchStopImmediatePropagation(e, value) {
5821
+ function patchStopImmediatePropagation(e2, value) {
5822
5822
  if (isArray(value)) {
5823
- const originalStop = e.stopImmediatePropagation;
5824
- e.stopImmediatePropagation = () => {
5825
- originalStop.call(e);
5826
- e._stopped = true;
5823
+ const originalStop = e2.stopImmediatePropagation;
5824
+ e2.stopImmediatePropagation = () => {
5825
+ originalStop.call(e2);
5826
+ e2._stopped = true;
5827
5827
  };
5828
- return value.map((fn) => (e2) => !e2._stopped && fn && fn(e2));
5828
+ return value.map((fn) => (e22) => !e22._stopped && fn && fn(e22));
5829
5829
  } else {
5830
5830
  return value;
5831
5831
  }
@@ -6085,8 +6085,8 @@ function whenTransitionEnds(el, expectedType, explicitTimeout, resolve2) {
6085
6085
  el.removeEventListener(endEvent, onEnd);
6086
6086
  resolveIfNotStale();
6087
6087
  };
6088
- const onEnd = (e) => {
6089
- if (e.target === el && ++ended >= propCount) {
6088
+ const onEnd = (e2) => {
6089
+ if (e2.target === el && ++ended >= propCount) {
6090
6090
  end();
6091
6091
  }
6092
6092
  };
@@ -6152,11 +6152,11 @@ const getModelAssigner = (vnode) => {
6152
6152
  const fn = vnode.props["onUpdate:modelValue"] || false;
6153
6153
  return isArray(fn) ? (value) => invokeArrayFns(fn, value) : fn;
6154
6154
  };
6155
- function onCompositionStart(e) {
6156
- e.target.composing = true;
6155
+ function onCompositionStart(e2) {
6156
+ e2.target.composing = true;
6157
6157
  }
6158
- function onCompositionEnd(e) {
6159
- const target = e.target;
6158
+ function onCompositionEnd(e2) {
6159
+ const target = e2.target;
6160
6160
  if (target.composing) {
6161
6161
  target.composing = false;
6162
6162
  target.dispatchEvent(new Event("input"));
@@ -6166,8 +6166,8 @@ const vModelText = {
6166
6166
  created(el, { modifiers: { lazy, trim, number } }, vnode) {
6167
6167
  el._assign = getModelAssigner(vnode);
6168
6168
  const castToNumber = number || vnode.props && vnode.props.type === "number";
6169
- addEventListener(el, lazy ? "change" : "input", (e) => {
6170
- if (e.target.composing)
6169
+ addEventListener(el, lazy ? "change" : "input", (e2) => {
6170
+ if (e2.target.composing)
6171
6171
  return;
6172
6172
  let domValue = el.value;
6173
6173
  if (trim) {
@@ -6272,17 +6272,17 @@ function getValue(el) {
6272
6272
  }
6273
6273
  const systemModifiers = ["ctrl", "shift", "alt", "meta"];
6274
6274
  const modifierGuards = {
6275
- stop: (e) => e.stopPropagation(),
6276
- prevent: (e) => e.preventDefault(),
6277
- self: (e) => e.target !== e.currentTarget,
6278
- ctrl: (e) => !e.ctrlKey,
6279
- shift: (e) => !e.shiftKey,
6280
- alt: (e) => !e.altKey,
6281
- meta: (e) => !e.metaKey,
6282
- left: (e) => "button" in e && e.button !== 0,
6283
- middle: (e) => "button" in e && e.button !== 1,
6284
- right: (e) => "button" in e && e.button !== 2,
6285
- exact: (e, modifiers) => systemModifiers.some((m2) => e[`${m2}Key`] && !modifiers.includes(m2))
6275
+ stop: (e2) => e2.stopPropagation(),
6276
+ prevent: (e2) => e2.preventDefault(),
6277
+ self: (e2) => e2.target !== e2.currentTarget,
6278
+ ctrl: (e2) => !e2.ctrlKey,
6279
+ shift: (e2) => !e2.shiftKey,
6280
+ alt: (e2) => !e2.altKey,
6281
+ meta: (e2) => !e2.metaKey,
6282
+ left: (e2) => "button" in e2 && e2.button !== 0,
6283
+ middle: (e2) => "button" in e2 && e2.button !== 1,
6284
+ right: (e2) => "button" in e2 && e2.button !== 2,
6285
+ exact: (e2, modifiers) => systemModifiers.some((m2) => e2[`${m2}Key`] && !modifiers.includes(m2))
6286
6286
  };
6287
6287
  const withModifiers = (fn, modifiers) => {
6288
6288
  return (event, ...args) => {
@@ -6351,15 +6351,15 @@ var __async = (__this, __arguments, generator) => {
6351
6351
  var fulfilled = (value) => {
6352
6352
  try {
6353
6353
  step(generator.next(value));
6354
- } catch (e) {
6355
- reject(e);
6354
+ } catch (e2) {
6355
+ reject(e2);
6356
6356
  }
6357
6357
  };
6358
6358
  var rejected = (value) => {
6359
6359
  try {
6360
6360
  step(generator.throw(value));
6361
- } catch (e) {
6362
- reject(e);
6361
+ } catch (e2) {
6362
+ reject(e2);
6363
6363
  }
6364
6364
  };
6365
6365
  var step = (x) => x.done ? resolve2(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
@@ -6745,6 +6745,33 @@ const DEFAULT_PAGE_SIZE_SELECTION = [12, 24, 36, 60];
6745
6745
  const LUPA_ROUTING_EVENT = "lupaRedirect";
6746
6746
  const RATING_STAR_HTML = "&#x2606;";
6747
6747
  const RESULT_ROOT_SELECTOR = "#lupa-search-results";
6748
+ /**
6749
+ * @preserve jquery-param (c) KNOWLEDGECODE | MIT
6750
+ */
6751
+ var e = function(e2) {
6752
+ var n = [], o = function(e3, o2) {
6753
+ o2 = null == (o2 = "function" == typeof o2 ? o2() : o2) ? "" : o2, n[n.length] = encodeURIComponent(e3) + "=" + encodeURIComponent(o2);
6754
+ }, t = function(e3, r) {
6755
+ var f2, i, l;
6756
+ if (e3)
6757
+ if (Array.isArray(r))
6758
+ for (f2 = 0, i = r.length; f2 < i; f2++)
6759
+ t(e3 + "[" + ("object" == typeof r[f2] && r[f2] ? f2 : "") + "]", r[f2]);
6760
+ else if ("[object Object]" === Object.prototype.toString.call(r))
6761
+ for (l in r)
6762
+ t(e3 + "[" + l + "]", r[l]);
6763
+ else
6764
+ o(e3, r);
6765
+ else if (Array.isArray(r))
6766
+ for (f2 = 0, i = r.length; f2 < i; f2++)
6767
+ o(r[f2].name, r[f2].value);
6768
+ else
6769
+ for (l in r)
6770
+ t(l, r[l]);
6771
+ return n;
6772
+ };
6773
+ return t("", e2).join("&");
6774
+ };
6748
6775
  const production = "https://api.lupasearch.com/v1/";
6749
6776
  const staging = "https://api.staging.lupasearch.com/v1/";
6750
6777
  const Env$1 = {
@@ -6767,15 +6794,15 @@ var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _argumen
6767
6794
  function fulfilled(value) {
6768
6795
  try {
6769
6796
  step(generator.next(value));
6770
- } catch (e) {
6771
- reject(e);
6797
+ } catch (e2) {
6798
+ reject(e2);
6772
6799
  }
6773
6800
  }
6774
6801
  function rejected(value) {
6775
6802
  try {
6776
6803
  step(generator["throw"](value));
6777
- } catch (e) {
6778
- reject(e);
6804
+ } catch (e2) {
6805
+ reject(e2);
6779
6806
  }
6780
6807
  }
6781
6808
  function step(result) {
@@ -6833,8 +6860,12 @@ const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void
6833
6860
  const errors = yield res.json();
6834
6861
  return { success: false, errors };
6835
6862
  });
6836
- const recommendForSingleId = (queryKey, recommendForId, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6837
- const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}recommendations/document/${recommendForId}?recommendationQueryKey=${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
6863
+ const recommendForSingleId = (queryKey, recommendForId, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6864
+ let url = `${getApiUrl$1(environment, customBaseUrl)}recommendations/document/${recommendForId}?recommendationQueryKey=${queryKey}`;
6865
+ if (filters) {
6866
+ url += `&${e({ filters })}`;
6867
+ }
6868
+ const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
6838
6869
  if (res.status < 400) {
6839
6870
  const data = yield res.json();
6840
6871
  return Object.assign(Object.assign({}, data), { success: true });
@@ -6842,9 +6873,13 @@ const recommendForSingleId = (queryKey, recommendForId, environment, customBaseU
6842
6873
  const errors = yield res.json();
6843
6874
  return { success: false, errors };
6844
6875
  });
6845
- const recommendForMultipleIds = (queryKey, recommendForIds, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6876
+ const recommendForMultipleIds = (queryKey, recommendForIds, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6846
6877
  const limitedRecommendForIds = recommendForIds.slice(0, 20);
6847
- const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}recommendations/documentsByMultipleIds?recommendationQueryKey=${queryKey}&itemId[]=${limitedRecommendForIds.join("&itemId[]=")}`, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
6878
+ let url = `${getApiUrl$1(environment, customBaseUrl)}recommendations/documentsByMultipleIds?recommendationQueryKey=${queryKey}&itemId[]=${limitedRecommendForIds.join("&itemId[]=")}`;
6879
+ if (filters) {
6880
+ url += `&${e({ filters })}`;
6881
+ }
6882
+ const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
6848
6883
  if (res.status < 400) {
6849
6884
  const data = yield res.json();
6850
6885
  return Object.assign(Object.assign({}, data), { success: true });
@@ -6852,8 +6887,8 @@ const recommendForMultipleIds = (queryKey, recommendForIds, environment, customB
6852
6887
  const errors = yield res.json();
6853
6888
  return { success: false, errors };
6854
6889
  });
6855
- const recommend = (queryKey, recommendForId, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6856
- return Array.isArray(recommendForId) ? yield recommendForMultipleIds(queryKey, recommendForId, environment, customBaseUrl) : yield recommendForSingleId(queryKey, recommendForId, environment, customBaseUrl);
6890
+ const recommend = (queryKey, recommendForId, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6891
+ return Array.isArray(recommendForId) ? yield recommendForMultipleIds(queryKey, recommendForId, filters, environment, customBaseUrl) : yield recommendForSingleId(queryKey, recommendForId, filters, environment, customBaseUrl);
6857
6892
  });
6858
6893
  const suggest = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
6859
6894
  const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(query) }));
@@ -6871,7 +6906,7 @@ const track$1 = (queryKey, event, environment, customBaseUrl) => __awaiter(void
6871
6906
  return { success: false };
6872
6907
  }
6873
6908
  return res.json();
6874
- } catch (e) {
6909
+ } catch (e2) {
6875
6910
  return { success: false };
6876
6911
  }
6877
6912
  });
@@ -6899,8 +6934,8 @@ const LupaSearchSdk = {
6899
6934
  track: (queryKey, eventData, options = null) => {
6900
6935
  return track$1(queryKey, eventData, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
6901
6936
  },
6902
- recommend: (queryKey, recommendForId, options = null) => {
6903
- return recommend(queryKey, recommendForId, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
6937
+ recommend: (queryKey, recommendForId, filters, options = null) => {
6938
+ return recommend(queryKey, recommendForId, filters, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
6904
6939
  },
6905
6940
  queryByIds: (queryKey, ids, options = null) => {
6906
6941
  return queryByIds(queryKey, ids, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
@@ -7031,7 +7066,7 @@ const initAnalyticsTracking = (analyticsOptions) => {
7031
7066
  } else {
7032
7067
  window.sessionStorage.removeItem(TRACKING_ANALYTICS_KEY);
7033
7068
  }
7034
- } catch (e) {
7069
+ } catch (e2) {
7035
7070
  }
7036
7071
  };
7037
7072
  const initBaseTracking = (enabled) => {
@@ -7043,13 +7078,13 @@ const initBaseTracking = (enabled) => {
7043
7078
  clearSessionTracking();
7044
7079
  clearUserTracking();
7045
7080
  }
7046
- } catch (e) {
7081
+ } catch (e2) {
7047
7082
  }
7048
7083
  };
7049
7084
  const clearSessionTracking = () => {
7050
7085
  try {
7051
7086
  window.sessionStorage.removeItem(TRACKING_STORAGE_KEY);
7052
- } catch (e) {
7087
+ } catch (e2) {
7053
7088
  }
7054
7089
  };
7055
7090
  const initSessionTracking = () => {
@@ -7059,7 +7094,7 @@ const initSessionTracking = () => {
7059
7094
  }
7060
7095
  const key = getRandomString(TRACKING_KEY_LENGTH);
7061
7096
  window.sessionStorage.setItem(TRACKING_STORAGE_KEY, key);
7062
- } catch (e) {
7097
+ } catch (e2) {
7063
7098
  }
7064
7099
  };
7065
7100
  const initUserTracking = (userKey) => {
@@ -7069,19 +7104,19 @@ const initUserTracking = (userKey) => {
7069
7104
  }
7070
7105
  const key = userKey || getRandomString(TRACKING_KEY_LENGTH);
7071
7106
  window.localStorage.setItem(TRACKING_STORAGE_KEY, key);
7072
- } catch (e) {
7107
+ } catch (e2) {
7073
7108
  }
7074
7109
  };
7075
7110
  const clearUserTracking = () => {
7076
7111
  try {
7077
7112
  window.localStorage.removeItem(TRACKING_STORAGE_KEY);
7078
- } catch (e) {
7113
+ } catch (e2) {
7079
7114
  }
7080
7115
  };
7081
7116
  const isTrackingEnabled = () => {
7082
7117
  try {
7083
7118
  return Boolean(window.sessionStorage.getItem(TRACKING_STORAGE_KEY_BASE));
7084
- } catch (e) {
7119
+ } catch (e2) {
7085
7120
  return false;
7086
7121
  }
7087
7122
  };
@@ -7089,7 +7124,7 @@ const getSessionKey = () => {
7089
7124
  var _a;
7090
7125
  try {
7091
7126
  return (_a = window.sessionStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
7092
- } catch (e) {
7127
+ } catch (e2) {
7093
7128
  return void 0;
7094
7129
  }
7095
7130
  };
@@ -7097,7 +7132,7 @@ const getUserKey = () => {
7097
7132
  var _a;
7098
7133
  try {
7099
7134
  return (_a = window.localStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
7100
- } catch (e) {
7135
+ } catch (e2) {
7101
7136
  return void 0;
7102
7137
  }
7103
7138
  };
@@ -7174,7 +7209,7 @@ const trackAnalyticsEvent = (data) => {
7174
7209
  default:
7175
7210
  sendUaAnalyticsEvent(data, options);
7176
7211
  }
7177
- } catch (e) {
7212
+ } catch (e2) {
7178
7213
  console.error("Unable to send an event to google analytics");
7179
7214
  }
7180
7215
  };
@@ -7550,7 +7585,7 @@ const retrieveHistory = () => {
7550
7585
  try {
7551
7586
  const historyString = window.localStorage.getItem(HISTORY_LOCAL_STORAGE_KEY);
7552
7587
  return historyString ? JSON.parse(historyString) : [];
7553
- } catch (e) {
7588
+ } catch (e2) {
7554
7589
  return [];
7555
7590
  }
7556
7591
  };
@@ -7560,7 +7595,7 @@ const saveHistory = (items) => {
7560
7595
  HISTORY_LOCAL_STORAGE_KEY,
7561
7596
  JSON.stringify(items.slice(0, HISTORY_MAX_ITEMS))
7562
7597
  );
7563
- } catch (e) {
7598
+ } catch (e2) {
7564
7599
  }
7565
7600
  };
7566
7601
  const useHistoryStore = defineStore("history", () => {
@@ -7765,7 +7800,7 @@ const parseParam = (key, params) => {
7765
7800
  }
7766
7801
  try {
7767
7802
  return decodeURIComponent(value);
7768
- } catch (e) {
7803
+ } catch (e2) {
7769
7804
  return void 0;
7770
7805
  }
7771
7806
  };
@@ -7902,7 +7937,7 @@ const getRelativePath = (link) => {
7902
7937
  const url = new URL(link);
7903
7938
  const partialUrl = url.toString().substring(url.origin.length);
7904
7939
  return partialUrl.endsWith("/") ? partialUrl.slice(0, partialUrl.length - 1) : partialUrl;
7905
- } catch (e) {
7940
+ } catch (e2) {
7906
7941
  return (link == null ? void 0 : link.endsWith("/")) ? link.slice(0, link.length - 1) : link;
7907
7942
  }
7908
7943
  };
@@ -8013,7 +8048,7 @@ const useRedirectionStore = defineStore("redirections", () => {
8013
8048
  CACHE_KEY,
8014
8049
  JSON.stringify({ redirections: redirections.value, savedAt: Date.now() })
8015
8050
  );
8016
- } catch (e) {
8051
+ } catch (e2) {
8017
8052
  }
8018
8053
  };
8019
8054
  const tryLoadFromLocalStorage = (config) => {
@@ -8026,7 +8061,7 @@ const useRedirectionStore = defineStore("redirections", () => {
8026
8061
  redirections.value = data.redirections;
8027
8062
  return true;
8028
8063
  }
8029
- } catch (e) {
8064
+ } catch (e2) {
8030
8065
  }
8031
8066
  return false;
8032
8067
  };
@@ -8050,7 +8085,7 @@ const useRedirectionStore = defineStore("redirections", () => {
8050
8085
  }
8051
8086
  redirections.value = result;
8052
8087
  saveToLocalStorage();
8053
- } catch (e) {
8088
+ } catch (e2) {
8054
8089
  }
8055
8090
  });
8056
8091
  const redirectOnKeywordIfConfigured = (input, routingBehavior = "direct-link") => {
@@ -8471,8 +8506,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
8471
8506
  });
8472
8507
  const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
8473
8508
  const _hoisted_2$R = { class: "lupa-input-clear" };
8474
- const _hoisted_3$A = { id: "lupa-search-box-input" };
8475
- const _hoisted_4$s = ["value"];
8509
+ const _hoisted_3$B = { id: "lupa-search-box-input" };
8510
+ const _hoisted_4$t = ["value"];
8476
8511
  const _hoisted_5$i = ["aria-label", "placeholder"];
8477
8512
  const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
8478
8513
  const _hoisted_7$7 = [
@@ -8573,13 +8608,13 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
8573
8608
  onClick: clear2
8574
8609
  }, null, 2)
8575
8610
  ]),
8576
- createBaseVNode("div", _hoisted_3$A, [
8611
+ createBaseVNode("div", _hoisted_3$B, [
8577
8612
  createBaseVNode("input", {
8578
8613
  class: "lupa-hint",
8579
8614
  "aria-hidden": "true",
8580
8615
  value: showHint.value ? suggestedValue.value.item.suggestion : "",
8581
8616
  disabled: ""
8582
- }, null, 8, _hoisted_4$s),
8617
+ }, null, 8, _hoisted_4$t),
8583
8618
  withDirectives(createBaseVNode("input", mergeProps({
8584
8619
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
8585
8620
  }, inputAttributes.value, {
@@ -8712,12 +8747,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
8712
8747
  const goToResults = ({ query }) => {
8713
8748
  emit2("go-to-results", { query });
8714
8749
  };
8715
- const handleKeyDown = (e) => {
8750
+ const handleKeyDown = (e2) => {
8716
8751
  if (!hasHistory.value || highlightIndex.value < -1) {
8717
8752
  return;
8718
8753
  }
8719
- if (e.key === "Enter") {
8720
- e.preventDefault();
8754
+ if (e2.key === "Enter") {
8755
+ e2.preventDefault();
8721
8756
  goToResults({ query: history.value[highlightIndex.value] });
8722
8757
  }
8723
8758
  };
@@ -8758,12 +8793,12 @@ const _hoisted_2$P = {
8758
8793
  "data-cy": "lupa-suggestion-value",
8759
8794
  class: "lupa-suggestion-value"
8760
8795
  };
8761
- const _hoisted_3$z = {
8796
+ const _hoisted_3$A = {
8762
8797
  key: 2,
8763
8798
  class: "lupa-suggestion-facet",
8764
8799
  "data-cy": "lupa-suggestion-facet"
8765
8800
  };
8766
- const _hoisted_4$r = {
8801
+ const _hoisted_4$s = {
8767
8802
  class: "lupa-suggestion-facet-label",
8768
8803
  "data-cy": "lupa-suggestion-facet-label"
8769
8804
  };
@@ -8808,8 +8843,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
8808
8843
  "data-cy": "lupa-suggestion-value",
8809
8844
  innerHTML: _ctx.suggestion.displayHighlight
8810
8845
  }, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
8811
- _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$z, [
8812
- createBaseVNode("span", _hoisted_4$r, toDisplayString(facetLabel.value), 1),
8846
+ _ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
8847
+ createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
8813
8848
  createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
8814
8849
  ])) : createCommentVNode("", true)
8815
8850
  ]);
@@ -9048,9 +9083,9 @@ const computeImageUrl = (imageUrl, rootImageUrl) => {
9048
9083
  }
9049
9084
  return rootImageUrl ? joinUrlParts(rootImageUrl, mainUrl) : `/${mainUrl}`;
9050
9085
  };
9051
- const replaceImageWithPlaceholder = (e, placeholder) => {
9086
+ const replaceImageWithPlaceholder = (e2, placeholder) => {
9052
9087
  var _a;
9053
- const targetImage = e == null ? void 0 : e.target;
9088
+ const targetImage = e2 == null ? void 0 : e2.target;
9054
9089
  if (targetImage && !((_a = targetImage == null ? void 0 : targetImage.src) == null ? void 0 : _a.includes(placeholder))) {
9055
9090
  targetImage.src = placeholder;
9056
9091
  }
@@ -9099,8 +9134,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
9099
9134
  var _a;
9100
9135
  return Boolean((_a = hoverImages.value) == null ? void 0 : _a.length);
9101
9136
  });
9102
- const replaceWithPlaceholder = (e) => {
9103
- replaceImageWithPlaceholder(e, placeholder.value);
9137
+ const replaceWithPlaceholder = (e2) => {
9138
+ replaceImageWithPlaceholder(e2, placeholder.value);
9104
9139
  };
9105
9140
  const setNextHoverImage = () => {
9106
9141
  hoverImageIndex.value = (hoverImageIndex.value + 1) % hoverImages.value.length;
@@ -9309,8 +9344,8 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
9309
9344
  });
9310
9345
  const _hoisted_1$14 = ["innerHTML"];
9311
9346
  const _hoisted_2$M = { key: 0 };
9312
- const _hoisted_3$y = { key: 1 };
9313
- const _hoisted_4$q = { class: "lupa-search-box-custom-label" };
9347
+ const _hoisted_3$z = { key: 1 };
9348
+ const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
9314
9349
  const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
9315
9350
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9316
9351
  __name: "SearchBoxProductCustom",
@@ -9342,8 +9377,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
9342
9377
  key: 1,
9343
9378
  class: [className.value, "lupa-search-box-product-custom"]
9344
9379
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
9345
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$y, [
9346
- createBaseVNode("div", _hoisted_4$q, toDisplayString(label.value), 1),
9380
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
9381
+ createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
9347
9382
  createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
9348
9383
  ]))
9349
9384
  ], 16));
@@ -9601,7 +9636,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
9601
9636
  });
9602
9637
  const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
9603
9638
  const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
9604
- const _hoisted_3$x = ["onClick", "disabled"];
9639
+ const _hoisted_3$y = ["onClick", "disabled"];
9605
9640
  const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9606
9641
  __name: "SearchBoxProductAddToCart",
9607
9642
  props: {
@@ -9637,7 +9672,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
9637
9672
  "data-cy": "lupa-add-to-cart",
9638
9673
  type: "button",
9639
9674
  disabled: !inStockValue.value || loading.value
9640
- }, toDisplayString(label.value), 11, _hoisted_3$x)
9675
+ }, toDisplayString(label.value), 11, _hoisted_3$y)
9641
9676
  ])
9642
9677
  ]);
9643
9678
  };
@@ -9733,8 +9768,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
9733
9768
  }));
9734
9769
  const _hoisted_1$10 = { class: "lupa-badge-title" };
9735
9770
  const _hoisted_2$K = ["src"];
9736
- const _hoisted_3$w = { key: 1 };
9737
- const _hoisted_4$p = {
9771
+ const _hoisted_3$x = { key: 1 };
9772
+ const _hoisted_4$q = {
9738
9773
  key: 0,
9739
9774
  class: "lupa-badge-full-text"
9740
9775
  };
@@ -9776,9 +9811,9 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
9776
9811
  key: 0,
9777
9812
  src: image.value
9778
9813
  }, null, 8, _hoisted_2$K)) : createCommentVNode("", true),
9779
- hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$w, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
9814
+ hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
9780
9815
  ]),
9781
- hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$p, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
9816
+ hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
9782
9817
  ], 6);
9783
9818
  };
9784
9819
  }
@@ -9947,9 +9982,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
9947
9982
  if (!props.options.elements) {
9948
9983
  return [];
9949
9984
  }
9950
- return props.options.elements.filter((e) => {
9985
+ return props.options.elements.filter((e2) => {
9951
9986
  var _a;
9952
- return !e.display || e.display((_a = props.options.product) != null ? _a : {});
9987
+ return !e2.display || e2.display((_a = props.options.product) != null ? _a : {});
9953
9988
  }).map((x) => {
9954
9989
  var _a;
9955
9990
  return __spreadProps2(__spreadValues2({}, x), {
@@ -9996,8 +10031,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
9996
10031
  }));
9997
10032
  const _hoisted_1$W = ["href"];
9998
10033
  const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
9999
- const _hoisted_3$v = { class: "lupa-search-box-product-details-section" };
10000
- const _hoisted_4$o = {
10034
+ const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
10035
+ const _hoisted_4$p = {
10001
10036
  key: 0,
10002
10037
  class: "lupa-search-box-product-add-to-cart-section"
10003
10038
  };
@@ -10023,17 +10058,17 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
10023
10058
  });
10024
10059
  const imageElements = computed(() => {
10025
10060
  var _a, _b;
10026
- return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((e) => e.type === DocumentElementType.IMAGE)) != null ? _b : [];
10061
+ return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _b : [];
10027
10062
  });
10028
10063
  const detailElements = computed(() => {
10029
10064
  var _a, _b;
10030
10065
  return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter(
10031
- (e) => e.type !== DocumentElementType.IMAGE && e.type !== DocumentElementType.ADDTOCART
10066
+ (e2) => e2.type !== DocumentElementType.IMAGE && e2.type !== DocumentElementType.ADDTOCART
10032
10067
  )) != null ? _b : [];
10033
10068
  });
10034
10069
  const addToCartElement = computed(() => {
10035
10070
  var _a;
10036
- return (_a = props.panelOptions.elements) == null ? void 0 : _a.find((e) => e.type === DocumentElementType.ADDTOCART);
10071
+ return (_a = props.panelOptions.elements) == null ? void 0 : _a.find((e2) => e2.type === DocumentElementType.ADDTOCART);
10037
10072
  });
10038
10073
  const customDocumentHtmlAttributes = computed(() => {
10039
10074
  var _a, _b, _c;
@@ -10072,7 +10107,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
10072
10107
  }, null, 8, ["item", "element", "labels", "link"]);
10073
10108
  }), 128))
10074
10109
  ]),
10075
- createBaseVNode("div", _hoisted_3$v, [
10110
+ createBaseVNode("div", _hoisted_3$w, [
10076
10111
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
10077
10112
  var _a;
10078
10113
  return openBlock(), createBlock(_sfc_main$16, {
@@ -10096,7 +10131,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
10096
10131
  ]), 1032, ["item", "element", "labels", "link"]);
10097
10132
  }), 128))
10098
10133
  ]),
10099
- addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
10134
+ addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
10100
10135
  createVNode(_sfc_main$16, {
10101
10136
  class: "lupa-search-box-product-element",
10102
10137
  item: _ctx.item,
@@ -10482,11 +10517,11 @@ const _hoisted_1$T = {
10482
10517
  id: "lupa-search-box-panel"
10483
10518
  };
10484
10519
  const _hoisted_2$G = ["data-cy"];
10485
- const _hoisted_3$u = {
10520
+ const _hoisted_3$v = {
10486
10521
  key: 0,
10487
10522
  class: "lupa-panel-title lupa-panel-title-top-results"
10488
10523
  };
10489
- const _hoisted_4$n = {
10524
+ const _hoisted_4$o = {
10490
10525
  key: 1,
10491
10526
  class: "lupa-panel-title"
10492
10527
  };
@@ -10567,14 +10602,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
10567
10602
  window.removeEventListener("keydown", handleNavigation);
10568
10603
  searchBoxStore.resetHighlightIndex();
10569
10604
  });
10570
- const handleNavigation = (e) => {
10571
- switch (e.key) {
10605
+ const handleNavigation = (e2) => {
10606
+ switch (e2.key) {
10572
10607
  case "ArrowDown":
10573
- e.preventDefault();
10608
+ e2.preventDefault();
10574
10609
  highlightChange({ action: "down" });
10575
10610
  break;
10576
10611
  case "ArrowUp":
10577
- e.preventDefault();
10612
+ e2.preventDefault();
10578
10613
  highlightChange({ action: "up" });
10579
10614
  break;
10580
10615
  }
@@ -10668,8 +10703,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
10668
10703
  ]),
10669
10704
  "data-cy": "lupa-panel-" + panel.type + "-index"
10670
10705
  }, [
10671
- ((_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),
10672
- ((_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),
10706
+ ((_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),
10707
+ ((_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),
10673
10708
  panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
10674
10709
  key: 2,
10675
10710
  panel,
@@ -10724,11 +10759,11 @@ const getElements = (selectors = []) => {
10724
10759
  };
10725
10760
  const bindSearchTriggers = (triggers = [], event) => {
10726
10761
  const elements = getElements(triggers);
10727
- elements.forEach((e) => e == null ? void 0 : e.addEventListener(BIND_EVENT, event));
10762
+ elements.forEach((e2) => e2 == null ? void 0 : e2.addEventListener(BIND_EVENT, event));
10728
10763
  };
10729
10764
  const unbindSearchTriggers = (triggers = [], event) => {
10730
10765
  const elements = getElements(triggers);
10731
- elements.forEach((e) => e == null ? void 0 : e.removeEventListener(BIND_EVENT, event));
10766
+ elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
10732
10767
  };
10733
10768
  const _hoisted_1$S = { id: "lupa-search-box" };
10734
10769
  const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
@@ -10807,12 +10842,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10807
10842
  window.removeEventListener("click", handleMouseClick);
10808
10843
  unbindSearchTriggers(searchTriggers.value, handleCurrentValueSearch);
10809
10844
  });
10810
- const handleMouseClick = (e) => {
10845
+ const handleMouseClick = (e2) => {
10811
10846
  var _a2, _b;
10812
10847
  const el = document.getElementById("lupa-search-box");
10813
- const elementClass = (_b = (_a2 = e.target) == null ? void 0 : _a2.className) != null ? _b : "";
10848
+ const elementClass = (_b = (_a2 = e2.target) == null ? void 0 : _a2.className) != null ? _b : "";
10814
10849
  const hasLupaClass = typeof elementClass.includes == "function" && elementClass.includes("lupa-search-box");
10815
- const isOutsideElement = el && !el.contains(e.target) && !hasLupaClass;
10850
+ const isOutsideElement = el && !el.contains(e2.target) && !hasLupaClass;
10816
10851
  if (!isOutsideElement) {
10817
10852
  return;
10818
10853
  }
@@ -10823,20 +10858,20 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
10823
10858
  opened.value = false;
10824
10859
  suggestedValue.value = defaultSuggestedValue;
10825
10860
  };
10826
- const handleKeyDown = (e) => {
10861
+ const handleKeyDown = (e2) => {
10827
10862
  var _a2, _b;
10828
10863
  if (!opened.value) {
10829
10864
  return;
10830
10865
  }
10831
- switch (e.key) {
10866
+ switch (e2.key) {
10832
10867
  case "Tab":
10833
10868
  if ((_b = (_a2 = suggestedValue == null ? void 0 : suggestedValue.value) == null ? void 0 : _a2.item) == null ? void 0 : _b.suggestion) {
10834
- e.preventDefault();
10869
+ e2.preventDefault();
10835
10870
  selectSuggestion(__spreadProps2(__spreadValues2({}, suggestedValue.value), { override: true }));
10836
10871
  }
10837
10872
  break;
10838
10873
  case "Enter":
10839
- e.preventDefault();
10874
+ e2.preventDefault();
10840
10875
  handleSearch();
10841
10876
  resetValues();
10842
10877
  break;
@@ -11093,11 +11128,11 @@ const _hoisted_2$E = {
11093
11128
  key: 0,
11094
11129
  "data-cy": "suggested-search-text-label"
11095
11130
  };
11096
- const _hoisted_3$t = {
11131
+ const _hoisted_3$u = {
11097
11132
  key: 1,
11098
11133
  "data-cy": "did-you-mean-label"
11099
11134
  };
11100
- const _hoisted_4$m = { key: 1 };
11135
+ const _hoisted_4$n = { key: 1 };
11101
11136
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
11102
11137
  __name: "SearchResultsDidYouMean",
11103
11138
  props: {
@@ -11140,7 +11175,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
11140
11175
  ]);
11141
11176
  }), 128))
11142
11177
  ])) : createCommentVNode("", true),
11143
- didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
11178
+ didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
11144
11179
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
11145
11180
  return openBlock(), createElementBlock("span", { key: index }, [
11146
11181
  label.includes("{1}") ? (openBlock(), createElementBlock("span", {
@@ -11148,7 +11183,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
11148
11183
  class: "lupa-did-you-mean lupa-highlighted-search-text",
11149
11184
  "data-cy": "did-you-mean-value",
11150
11185
  onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
11151
- }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString(label) + " ", 1))
11186
+ }, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
11152
11187
  ]);
11153
11188
  }), 128))
11154
11189
  ])) : createCommentVNode("", true)
@@ -11194,11 +11229,11 @@ const _hoisted_1$P = {
11194
11229
  "data-cy": "lupa-result-page-title"
11195
11230
  };
11196
11231
  const _hoisted_2$C = { key: 0 };
11197
- const _hoisted_3$s = {
11232
+ const _hoisted_3$t = {
11198
11233
  key: 1,
11199
11234
  class: "lupa-results-total-count"
11200
11235
  };
11201
- const _hoisted_4$l = { class: "lupa-results-total-count-number" };
11236
+ const _hoisted_4$m = { class: "lupa-results-total-count-number" };
11202
11237
  const _hoisted_5$e = ["innerHTML"];
11203
11238
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
11204
11239
  __name: "SearchResultsTitle",
@@ -11242,9 +11277,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
11242
11277
  showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
11243
11278
  createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
11244
11279
  queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
11245
- showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$s, [
11280
+ showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
11246
11281
  createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
11247
- createBaseVNode("span", _hoisted_4$l, toDisplayString(unref(totalItems)), 1),
11282
+ createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
11248
11283
  createTextVNode(")")
11249
11284
  ])) : createCommentVNode("", true)
11250
11285
  ])) : createCommentVNode("", true),
@@ -11266,7 +11301,7 @@ const _hoisted_2$B = {
11266
11301
  class: "lupa-current-filter-label",
11267
11302
  "data-cy": "lupa-current-filter-label"
11268
11303
  };
11269
- const _hoisted_3$r = {
11304
+ const _hoisted_3$s = {
11270
11305
  class: "lupa-current-filter-value",
11271
11306
  "data-cy": "lupa-current-filter-value"
11272
11307
  };
@@ -11288,7 +11323,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11288
11323
  onClick: handleClick
11289
11324
  }, "⨉"),
11290
11325
  createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
11291
- createBaseVNode("div", _hoisted_3$r, toDisplayString(_ctx.filter.value), 1)
11326
+ createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
11292
11327
  ]);
11293
11328
  };
11294
11329
  }
@@ -11298,11 +11333,11 @@ const _hoisted_2$A = {
11298
11333
  key: 0,
11299
11334
  class: "lupa-filter-count"
11300
11335
  };
11301
- const _hoisted_3$q = {
11336
+ const _hoisted_3$r = {
11302
11337
  key: 0,
11303
11338
  class: "filter-values"
11304
11339
  };
11305
- const _hoisted_4$k = { class: "lupa-current-filter-list" };
11340
+ const _hoisted_4$l = { class: "lupa-current-filter-list" };
11306
11341
  const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11307
11342
  __name: "CurrentFilters",
11308
11343
  props: {
@@ -11385,8 +11420,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11385
11420
  class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
11386
11421
  }, null, 2)) : createCommentVNode("", true)
11387
11422
  ]),
11388
- !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
11389
- createBaseVNode("div", _hoisted_4$k, [
11423
+ !_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
11424
+ createBaseVNode("div", _hoisted_4$l, [
11390
11425
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
11391
11426
  return openBlock(), createBlock(_sfc_main$R, {
11392
11427
  key: filter.key + "_" + filter.value,
@@ -11453,8 +11488,8 @@ const _hoisted_1$L = {
11453
11488
  "data-cy": "lupa-category-filter"
11454
11489
  };
11455
11490
  const _hoisted_2$z = { class: "lupa-category-back" };
11456
- const _hoisted_3$p = ["href"];
11457
- const _hoisted_4$j = ["href"];
11491
+ const _hoisted_3$q = ["href"];
11492
+ const _hoisted_4$k = ["href"];
11458
11493
  const _hoisted_5$d = { class: "lupa-child-category-list" };
11459
11494
  const _sfc_main$O = /* @__PURE__ */ defineComponent({
11460
11495
  __name: "CategoryFilter",
@@ -11549,7 +11584,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11549
11584
  "data-cy": "lupa-category-back",
11550
11585
  href: backUrlLink.value,
11551
11586
  onClick: handleNavigationBack
11552
- }, toDisplayString(backTitle.value), 9, _hoisted_3$p)) : createCommentVNode("", true)
11587
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$q)) : createCommentVNode("", true)
11553
11588
  ]),
11554
11589
  createBaseVNode("div", {
11555
11590
  class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
@@ -11559,7 +11594,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11559
11594
  href: parentUrlLink.value,
11560
11595
  class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
11561
11596
  onClick: handleNavigationParent
11562
- }, toDisplayString(parentTitle.value), 11, _hoisted_4$j)
11597
+ }, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
11563
11598
  ], 2),
11564
11599
  createBaseVNode("div", _hoisted_5$d, [
11565
11600
  (openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
@@ -11579,8 +11614,8 @@ const _hoisted_1$K = {
11579
11614
  "data-cy": "lupa-search-result-facet-term-values"
11580
11615
  };
11581
11616
  const _hoisted_2$y = ["placeholder"];
11582
- const _hoisted_3$o = { class: "lupa-terms-list" };
11583
- const _hoisted_4$i = ["onClick"];
11617
+ const _hoisted_3$p = { class: "lupa-terms-list" };
11618
+ const _hoisted_4$j = ["onClick"];
11584
11619
  const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
11585
11620
  const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
11586
11621
  const _hoisted_7$6 = { class: "lupa-term-label" };
@@ -11671,7 +11706,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11671
11706
  }, null, 8, _hoisted_2$y)), [
11672
11707
  [vModelText, termFilter.value]
11673
11708
  ]) : createCommentVNode("", true),
11674
- createBaseVNode("div", _hoisted_3$o, [
11709
+ createBaseVNode("div", _hoisted_3$p, [
11675
11710
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
11676
11711
  return openBlock(), createElementBlock("div", {
11677
11712
  class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
@@ -11688,7 +11723,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11688
11723
  createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
11689
11724
  _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
11690
11725
  ])
11691
- ], 10, _hoisted_4$i);
11726
+ ], 10, _hoisted_4$j);
11692
11727
  }), 128))
11693
11728
  ]),
11694
11729
  displayShowMore.value ? (openBlock(), createElementBlock("div", {
@@ -11703,50 +11738,50 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11703
11738
  };
11704
11739
  }
11705
11740
  });
11706
- function u(e) {
11707
- return -1 !== [null, void 0, false].indexOf(e);
11741
+ function u(e2) {
11742
+ return -1 !== [null, void 0, false].indexOf(e2);
11708
11743
  }
11709
- function c(e) {
11710
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11744
+ function c(e2) {
11745
+ return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
11711
11746
  }
11712
- function p(e) {
11747
+ function p(e2) {
11713
11748
  var t = { exports: {} };
11714
- return e(t, t.exports), t.exports;
11749
+ return e2(t, t.exports), t.exports;
11715
11750
  }
11716
- var d = p(function(e, t) {
11717
- e.exports = function() {
11718
- var e2 = ["decimals", "thousand", "mark", "prefix", "suffix", "encoder", "decoder", "negativeBefore", "negative", "edit", "undo"];
11719
- function t2(e3) {
11720
- return e3.split("").reverse().join("");
11751
+ var d = p(function(e2, t) {
11752
+ e2.exports = function() {
11753
+ var e3 = ["decimals", "thousand", "mark", "prefix", "suffix", "encoder", "decoder", "negativeBefore", "negative", "edit", "undo"];
11754
+ function t2(e4) {
11755
+ return e4.split("").reverse().join("");
11721
11756
  }
11722
- function r(e3, t3) {
11723
- return e3.substring(0, t3.length) === t3;
11757
+ function r(e4, t3) {
11758
+ return e4.substring(0, t3.length) === t3;
11724
11759
  }
11725
- function i(e3, t3) {
11726
- return e3.slice(-1 * t3.length) === t3;
11760
+ function i(e4, t3) {
11761
+ return e4.slice(-1 * t3.length) === t3;
11727
11762
  }
11728
- function n(e3, t3, r2) {
11729
- if ((e3[t3] || e3[r2]) && e3[t3] === e3[r2])
11763
+ function n(e4, t3, r2) {
11764
+ if ((e4[t3] || e4[r2]) && e4[t3] === e4[r2])
11730
11765
  throw new Error(t3);
11731
11766
  }
11732
- function o(e3) {
11733
- return "number" == typeof e3 && isFinite(e3);
11767
+ function o(e4) {
11768
+ return "number" == typeof e4 && isFinite(e4);
11734
11769
  }
11735
- function a(e3, t3) {
11736
- 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);
11770
+ function a(e4, t3) {
11771
+ 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);
11737
11772
  }
11738
- function s(e3, r2, i2, n2, s2, l2, u3, c3, p3, d2, f2, h2) {
11773
+ function s(e4, r2, i2, n2, s2, l2, u3, c3, p3, d2, f2, h2) {
11739
11774
  var m2, v, g, b = h2, y = "", S = "";
11740
- 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);
11775
+ 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);
11741
11776
  }
11742
- function l(e3, t3, n2, a2, s2, l2, u3, c3, p3, d2, f2, h2) {
11777
+ function l(e4, t3, n2, a2, s2, l2, u3, c3, p3, d2, f2, h2) {
11743
11778
  var m2, v = "";
11744
11779
  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));
11745
11780
  }
11746
11781
  function u2(t3) {
11747
11782
  var r2, i2, o2, a2 = {};
11748
- for (void 0 === t3.suffix && (t3.suffix = t3.postfix), r2 = 0; r2 < e2.length; r2 += 1)
11749
- if (void 0 === (o2 = t3[i2 = e2[r2]]))
11783
+ for (void 0 === t3.suffix && (t3.suffix = t3.postfix), r2 = 0; r2 < e3.length; r2 += 1)
11784
+ if (void 0 === (o2 = t3[i2 = e3[r2]]))
11750
11785
  "negative" !== i2 || a2.negativeBefore ? "mark" === i2 && "." !== a2.thousand ? a2[i2] = "." : a2[i2] = false : a2[i2] = "-";
11751
11786
  else if ("decimals" === i2) {
11752
11787
  if (!(o2 >= 0 && o2 < 8))
@@ -11765,385 +11800,385 @@ var d = p(function(e, t) {
11765
11800
  }
11766
11801
  function c2(t3, r2, i2) {
11767
11802
  var n2, o2 = [];
11768
- for (n2 = 0; n2 < e2.length; n2 += 1)
11769
- o2.push(t3[e2[n2]]);
11803
+ for (n2 = 0; n2 < e3.length; n2 += 1)
11804
+ o2.push(t3[e3[n2]]);
11770
11805
  return o2.push(i2), r2.apply("", o2);
11771
11806
  }
11772
- function p2(e3) {
11807
+ function p2(e4) {
11773
11808
  if (!(this instanceof p2))
11774
- return new p2(e3);
11775
- "object" == typeof e3 && (e3 = u2(e3), this.to = function(t3) {
11776
- return c2(e3, s, t3);
11809
+ return new p2(e4);
11810
+ "object" == typeof e4 && (e4 = u2(e4), this.to = function(t3) {
11811
+ return c2(e4, s, t3);
11777
11812
  }, this.from = function(t3) {
11778
- return c2(e3, l, t3);
11813
+ return c2(e4, l, t3);
11779
11814
  });
11780
11815
  }
11781
11816
  return p2;
11782
11817
  }();
11783
11818
  });
11784
- var f = c(p(function(e, t) {
11785
- !function(e2) {
11786
- function t2(e3) {
11787
- return r(e3) && "function" == typeof e3.from;
11819
+ var f = c(p(function(e2, t) {
11820
+ !function(e3) {
11821
+ function t2(e4) {
11822
+ return r(e4) && "function" == typeof e4.from;
11788
11823
  }
11789
- function r(e3) {
11790
- return "object" == typeof e3 && "function" == typeof e3.to;
11824
+ function r(e4) {
11825
+ return "object" == typeof e4 && "function" == typeof e4.to;
11791
11826
  }
11792
- function i(e3) {
11793
- e3.parentElement.removeChild(e3);
11827
+ function i(e4) {
11828
+ e4.parentElement.removeChild(e4);
11794
11829
  }
11795
- function n(e3) {
11796
- return null != e3;
11830
+ function n(e4) {
11831
+ return null != e4;
11797
11832
  }
11798
- function o(e3) {
11799
- e3.preventDefault();
11833
+ function o(e4) {
11834
+ e4.preventDefault();
11800
11835
  }
11801
- function a(e3) {
11802
- return e3.filter(function(e4) {
11803
- return !this[e4] && (this[e4] = true);
11836
+ function a(e4) {
11837
+ return e4.filter(function(e5) {
11838
+ return !this[e5] && (this[e5] = true);
11804
11839
  }, {});
11805
11840
  }
11806
- function s(e3, t3) {
11807
- return Math.round(e3 / t3) * t3;
11841
+ function s(e4, t3) {
11842
+ return Math.round(e4 / t3) * t3;
11808
11843
  }
11809
- function l(e3, t3) {
11810
- var r2 = e3.getBoundingClientRect(), i2 = e3.ownerDocument, n2 = i2.documentElement, o2 = g(i2);
11844
+ function l(e4, t3) {
11845
+ var r2 = e4.getBoundingClientRect(), i2 = e4.ownerDocument, n2 = i2.documentElement, o2 = g(i2);
11811
11846
  return /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (o2.x = 0), t3 ? r2.top + o2.y - n2.clientTop : r2.left + o2.x - n2.clientLeft;
11812
11847
  }
11813
- function u2(e3) {
11814
- return "number" == typeof e3 && !isNaN(e3) && isFinite(e3);
11848
+ function u2(e4) {
11849
+ return "number" == typeof e4 && !isNaN(e4) && isFinite(e4);
11815
11850
  }
11816
- function c2(e3, t3, r2) {
11817
- r2 > 0 && (h2(e3, t3), setTimeout(function() {
11818
- m2(e3, t3);
11851
+ function c2(e4, t3, r2) {
11852
+ r2 > 0 && (h2(e4, t3), setTimeout(function() {
11853
+ m2(e4, t3);
11819
11854
  }, r2));
11820
11855
  }
11821
- function p2(e3) {
11822
- return Math.max(Math.min(e3, 100), 0);
11856
+ function p2(e4) {
11857
+ return Math.max(Math.min(e4, 100), 0);
11823
11858
  }
11824
- function d2(e3) {
11825
- return Array.isArray(e3) ? e3 : [e3];
11859
+ function d2(e4) {
11860
+ return Array.isArray(e4) ? e4 : [e4];
11826
11861
  }
11827
- function f2(e3) {
11828
- var t3 = (e3 = String(e3)).split(".");
11862
+ function f2(e4) {
11863
+ var t3 = (e4 = String(e4)).split(".");
11829
11864
  return t3.length > 1 ? t3[1].length : 0;
11830
11865
  }
11831
- function h2(e3, t3) {
11832
- e3.classList && !/\s/.test(t3) ? e3.classList.add(t3) : e3.className += " " + t3;
11866
+ function h2(e4, t3) {
11867
+ e4.classList && !/\s/.test(t3) ? e4.classList.add(t3) : e4.className += " " + t3;
11833
11868
  }
11834
- function m2(e3, t3) {
11835
- e3.classList && !/\s/.test(t3) ? e3.classList.remove(t3) : e3.className = e3.className.replace(new RegExp("(^|\\b)" + t3.split(" ").join("|") + "(\\b|$)", "gi"), " ");
11869
+ function m2(e4, t3) {
11870
+ e4.classList && !/\s/.test(t3) ? e4.classList.remove(t3) : e4.className = e4.className.replace(new RegExp("(^|\\b)" + t3.split(" ").join("|") + "(\\b|$)", "gi"), " ");
11836
11871
  }
11837
- function v(e3, t3) {
11838
- return e3.classList ? e3.classList.contains(t3) : new RegExp("\\b" + t3 + "\\b").test(e3.className);
11872
+ function v(e4, t3) {
11873
+ return e4.classList ? e4.classList.contains(t3) : new RegExp("\\b" + t3 + "\\b").test(e4.className);
11839
11874
  }
11840
- function g(e3) {
11841
- var t3 = void 0 !== window.pageXOffset, r2 = "CSS1Compat" === (e3.compatMode || "");
11842
- return { x: t3 ? window.pageXOffset : r2 ? e3.documentElement.scrollLeft : e3.body.scrollLeft, y: t3 ? window.pageYOffset : r2 ? e3.documentElement.scrollTop : e3.body.scrollTop };
11875
+ function g(e4) {
11876
+ var t3 = void 0 !== window.pageXOffset, r2 = "CSS1Compat" === (e4.compatMode || "");
11877
+ return { x: t3 ? window.pageXOffset : r2 ? e4.documentElement.scrollLeft : e4.body.scrollLeft, y: t3 ? window.pageYOffset : r2 ? e4.documentElement.scrollTop : e4.body.scrollTop };
11843
11878
  }
11844
11879
  function b() {
11845
11880
  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" };
11846
11881
  }
11847
11882
  function y() {
11848
- var e3 = false;
11883
+ var e4 = false;
11849
11884
  try {
11850
11885
  var t3 = Object.defineProperty({}, "passive", { get: function() {
11851
- e3 = true;
11886
+ e4 = true;
11852
11887
  } });
11853
11888
  window.addEventListener("test", null, t3);
11854
- } catch (e4) {
11889
+ } catch (e5) {
11855
11890
  }
11856
- return e3;
11891
+ return e4;
11857
11892
  }
11858
11893
  function S() {
11859
11894
  return window.CSS && CSS.supports && CSS.supports("touch-action", "none");
11860
11895
  }
11861
- function x(e3, t3) {
11862
- return 100 / (t3 - e3);
11896
+ function x(e4, t3) {
11897
+ return 100 / (t3 - e4);
11863
11898
  }
11864
- function w(e3, t3, r2) {
11865
- return 100 * t3 / (e3[r2 + 1] - e3[r2]);
11899
+ function w(e4, t3, r2) {
11900
+ return 100 * t3 / (e4[r2 + 1] - e4[r2]);
11866
11901
  }
11867
- function E(e3, t3) {
11868
- return w(e3, e3[0] < 0 ? t3 + Math.abs(e3[0]) : t3 - e3[0], 0);
11902
+ function E(e4, t3) {
11903
+ return w(e4, e4[0] < 0 ? t3 + Math.abs(e4[0]) : t3 - e4[0], 0);
11869
11904
  }
11870
- function P(e3, t3) {
11871
- return t3 * (e3[1] - e3[0]) / 100 + e3[0];
11905
+ function P(e4, t3) {
11906
+ return t3 * (e4[1] - e4[0]) / 100 + e4[0];
11872
11907
  }
11873
- function N(e3, t3) {
11874
- for (var r2 = 1; e3 >= t3[r2]; )
11908
+ function N(e4, t3) {
11909
+ for (var r2 = 1; e4 >= t3[r2]; )
11875
11910
  r2 += 1;
11876
11911
  return r2;
11877
11912
  }
11878
- function C(e3, t3, r2) {
11879
- if (r2 >= e3.slice(-1)[0])
11913
+ function C(e4, t3, r2) {
11914
+ if (r2 >= e4.slice(-1)[0])
11880
11915
  return 100;
11881
- var i2 = N(r2, e3), n2 = e3[i2 - 1], o2 = e3[i2], a2 = t3[i2 - 1], s2 = t3[i2];
11916
+ var i2 = N(r2, e4), n2 = e4[i2 - 1], o2 = e4[i2], a2 = t3[i2 - 1], s2 = t3[i2];
11882
11917
  return a2 + E([n2, o2], r2) / x(a2, s2);
11883
11918
  }
11884
- function k(e3, t3, r2) {
11919
+ function k(e4, t3, r2) {
11885
11920
  if (r2 >= 100)
11886
- return e3.slice(-1)[0];
11887
- var i2 = N(r2, t3), n2 = e3[i2 - 1], o2 = e3[i2], a2 = t3[i2 - 1];
11921
+ return e4.slice(-1)[0];
11922
+ var i2 = N(r2, t3), n2 = e4[i2 - 1], o2 = e4[i2], a2 = t3[i2 - 1];
11888
11923
  return P([n2, o2], (r2 - a2) * x(a2, t3[i2]));
11889
11924
  }
11890
- function V(e3, t3, r2, i2) {
11925
+ function V(e4, t3, r2, i2) {
11891
11926
  if (100 === i2)
11892
11927
  return i2;
11893
- var n2 = N(i2, e3), o2 = e3[n2 - 1], a2 = e3[n2];
11894
- return r2 ? i2 - o2 > (a2 - o2) / 2 ? a2 : o2 : t3[n2 - 1] ? e3[n2 - 1] + s(i2 - e3[n2 - 1], t3[n2 - 1]) : i2;
11928
+ var n2 = N(i2, e4), o2 = e4[n2 - 1], a2 = e4[n2];
11929
+ return r2 ? i2 - o2 > (a2 - o2) / 2 ? a2 : o2 : t3[n2 - 1] ? e4[n2 - 1] + s(i2 - e4[n2 - 1], t3[n2 - 1]) : i2;
11895
11930
  }
11896
11931
  var A, M;
11897
- 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";
11932
+ 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";
11898
11933
  var L = function() {
11899
- function e3(e4, t3, r2) {
11934
+ function e4(e5, t3, r2) {
11900
11935
  var i2;
11901
11936
  this.xPct = [], this.xVal = [], this.xSteps = [], this.xNumSteps = [], this.xHighestCompleteStep = [], this.xSteps = [r2 || false], this.xNumSteps = [false], this.snap = t3;
11902
11937
  var n2 = [];
11903
- for (Object.keys(e4).forEach(function(t4) {
11904
- n2.push([d2(e4[t4]), t4]);
11905
- }), n2.sort(function(e5, t4) {
11906
- return e5[0][0] - t4[0][0];
11938
+ for (Object.keys(e5).forEach(function(t4) {
11939
+ n2.push([d2(e5[t4]), t4]);
11940
+ }), n2.sort(function(e6, t4) {
11941
+ return e6[0][0] - t4[0][0];
11907
11942
  }), i2 = 0; i2 < n2.length; i2++)
11908
11943
  this.handleEntryPoint(n2[i2][1], n2[i2][0]);
11909
11944
  for (this.xNumSteps = this.xSteps.slice(0), i2 = 0; i2 < this.xNumSteps.length; i2++)
11910
11945
  this.handleStepPoint(i2, this.xNumSteps[i2]);
11911
11946
  }
11912
- return e3.prototype.getDistance = function(e4) {
11947
+ return e4.prototype.getDistance = function(e5) {
11913
11948
  for (var t3 = [], r2 = 0; r2 < this.xNumSteps.length - 1; r2++)
11914
- t3[r2] = w(this.xVal, e4, r2);
11949
+ t3[r2] = w(this.xVal, e5, r2);
11915
11950
  return t3;
11916
- }, e3.prototype.getAbsoluteDistance = function(e4, t3, r2) {
11951
+ }, e4.prototype.getAbsoluteDistance = function(e5, t3, r2) {
11917
11952
  var i2, n2 = 0;
11918
- if (e4 < this.xPct[this.xPct.length - 1])
11919
- for (; e4 > this.xPct[n2 + 1]; )
11953
+ if (e5 < this.xPct[this.xPct.length - 1])
11954
+ for (; e5 > this.xPct[n2 + 1]; )
11920
11955
  n2++;
11921
11956
  else
11922
- e4 === this.xPct[this.xPct.length - 1] && (n2 = this.xPct.length - 2);
11923
- r2 || e4 !== this.xPct[n2 + 1] || n2++, null === t3 && (t3 = []);
11957
+ e5 === this.xPct[this.xPct.length - 1] && (n2 = this.xPct.length - 2);
11958
+ r2 || e5 !== this.xPct[n2 + 1] || n2++, null === t3 && (t3 = []);
11924
11959
  var o2 = 1, a2 = t3[n2], s2 = 0, l2 = 0, u3 = 0, c3 = 0;
11925
- 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; )
11960
+ 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; )
11926
11961
  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;
11927
- return e4 + u3;
11928
- }, e3.prototype.toStepping = function(e4) {
11929
- return e4 = C(this.xVal, this.xPct, e4);
11930
- }, e3.prototype.fromStepping = function(e4) {
11931
- return k(this.xVal, this.xPct, e4);
11932
- }, e3.prototype.getStep = function(e4) {
11933
- return e4 = V(this.xPct, this.xSteps, this.snap, e4);
11934
- }, e3.prototype.getDefaultStep = function(e4, t3, r2) {
11935
- var i2 = N(e4, this.xPct);
11936
- return (100 === e4 || t3 && e4 === this.xPct[i2 - 1]) && (i2 = Math.max(i2 - 1, 1)), (this.xVal[i2] - this.xVal[i2 - 1]) / r2;
11937
- }, e3.prototype.getNearbySteps = function(e4) {
11938
- var t3 = N(e4, this.xPct);
11962
+ return e5 + u3;
11963
+ }, e4.prototype.toStepping = function(e5) {
11964
+ return e5 = C(this.xVal, this.xPct, e5);
11965
+ }, e4.prototype.fromStepping = function(e5) {
11966
+ return k(this.xVal, this.xPct, e5);
11967
+ }, e4.prototype.getStep = function(e5) {
11968
+ return e5 = V(this.xPct, this.xSteps, this.snap, e5);
11969
+ }, e4.prototype.getDefaultStep = function(e5, t3, r2) {
11970
+ var i2 = N(e5, this.xPct);
11971
+ return (100 === e5 || t3 && e5 === this.xPct[i2 - 1]) && (i2 = Math.max(i2 - 1, 1)), (this.xVal[i2] - this.xVal[i2 - 1]) / r2;
11972
+ }, e4.prototype.getNearbySteps = function(e5) {
11973
+ var t3 = N(e5, this.xPct);
11939
11974
  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] } };
11940
- }, e3.prototype.countStepDecimals = function() {
11941
- var e4 = this.xNumSteps.map(f2);
11942
- return Math.max.apply(null, e4);
11943
- }, e3.prototype.hasNoSize = function() {
11975
+ }, e4.prototype.countStepDecimals = function() {
11976
+ var e5 = this.xNumSteps.map(f2);
11977
+ return Math.max.apply(null, e5);
11978
+ }, e4.prototype.hasNoSize = function() {
11944
11979
  return this.xVal[0] === this.xVal[this.xVal.length - 1];
11945
- }, e3.prototype.convert = function(e4) {
11946
- return this.getStep(this.toStepping(e4));
11947
- }, e3.prototype.handleEntryPoint = function(e4, t3) {
11980
+ }, e4.prototype.convert = function(e5) {
11981
+ return this.getStep(this.toStepping(e5));
11982
+ }, e4.prototype.handleEntryPoint = function(e5, t3) {
11948
11983
  var r2;
11949
- if (!u2(r2 = "min" === e4 ? 0 : "max" === e4 ? 100 : parseFloat(e4)) || !u2(t3[0]))
11984
+ if (!u2(r2 = "min" === e5 ? 0 : "max" === e5 ? 100 : parseFloat(e5)) || !u2(t3[0]))
11950
11985
  throw new Error("noUiSlider: 'range' value isn't numeric.");
11951
11986
  this.xPct.push(r2), this.xVal.push(t3[0]);
11952
11987
  var i2 = Number(t3[1]);
11953
11988
  r2 ? this.xSteps.push(!isNaN(i2) && i2) : isNaN(i2) || (this.xSteps[0] = i2), this.xHighestCompleteStep.push(0);
11954
- }, e3.prototype.handleStepPoint = function(e4, t3) {
11989
+ }, e4.prototype.handleStepPoint = function(e5, t3) {
11955
11990
  if (t3)
11956
- if (this.xVal[e4] !== this.xVal[e4 + 1]) {
11957
- this.xSteps[e4] = w([this.xVal[e4], this.xVal[e4 + 1]], t3, 0) / x(this.xPct[e4], this.xPct[e4 + 1]);
11958
- 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;
11959
- this.xHighestCompleteStep[e4] = n2;
11991
+ if (this.xVal[e5] !== this.xVal[e5 + 1]) {
11992
+ this.xSteps[e5] = w([this.xVal[e5], this.xVal[e5 + 1]], t3, 0) / x(this.xPct[e5], this.xPct[e5 + 1]);
11993
+ 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;
11994
+ this.xHighestCompleteStep[e5] = n2;
11960
11995
  } else
11961
- this.xSteps[e4] = this.xHighestCompleteStep[e4] = this.xVal[e4];
11962
- }, e3;
11963
- }(), U = { to: function(e3) {
11964
- return void 0 === e3 ? "" : e3.toFixed(2);
11996
+ this.xSteps[e5] = this.xHighestCompleteStep[e5] = this.xVal[e5];
11997
+ }, e4;
11998
+ }(), U = { to: function(e4) {
11999
+ return void 0 === e4 ? "" : e4.toFixed(2);
11965
12000
  }, 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" };
11966
- function j(e3, t3) {
12001
+ function j(e4, t3) {
11967
12002
  if (!u2(t3))
11968
12003
  throw new Error("noUiSlider: 'step' is not numeric.");
11969
- e3.singleStep = t3;
12004
+ e4.singleStep = t3;
11970
12005
  }
11971
- function F(e3, t3) {
12006
+ function F(e4, t3) {
11972
12007
  if (!u2(t3))
11973
12008
  throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");
11974
- e3.keyboardPageMultiplier = t3;
12009
+ e4.keyboardPageMultiplier = t3;
11975
12010
  }
11976
- function T(e3, t3) {
12011
+ function T(e4, t3) {
11977
12012
  if (!u2(t3))
11978
12013
  throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");
11979
- e3.keyboardMultiplier = t3;
12014
+ e4.keyboardMultiplier = t3;
11980
12015
  }
11981
- function z(e3, t3) {
12016
+ function z(e4, t3) {
11982
12017
  if (!u2(t3))
11983
12018
  throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");
11984
- e3.keyboardDefaultStep = t3;
12019
+ e4.keyboardDefaultStep = t3;
11985
12020
  }
11986
- function H(e3, t3) {
12021
+ function H(e4, t3) {
11987
12022
  if ("object" != typeof t3 || Array.isArray(t3))
11988
12023
  throw new Error("noUiSlider: 'range' is not an object.");
11989
12024
  if (void 0 === t3.min || void 0 === t3.max)
11990
12025
  throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");
11991
- e3.spectrum = new L(t3, e3.snap || false, e3.singleStep);
12026
+ e4.spectrum = new L(t3, e4.snap || false, e4.singleStep);
11992
12027
  }
11993
- function q(e3, t3) {
12028
+ function q(e4, t3) {
11994
12029
  if (t3 = d2(t3), !Array.isArray(t3) || !t3.length)
11995
12030
  throw new Error("noUiSlider: 'start' option is incorrect.");
11996
- e3.handles = t3.length, e3.start = t3;
12031
+ e4.handles = t3.length, e4.start = t3;
11997
12032
  }
11998
- function R(e3, t3) {
12033
+ function R(e4, t3) {
11999
12034
  if ("boolean" != typeof t3)
12000
12035
  throw new Error("noUiSlider: 'snap' option must be a boolean.");
12001
- e3.snap = t3;
12036
+ e4.snap = t3;
12002
12037
  }
12003
- function B(e3, t3) {
12038
+ function B(e4, t3) {
12004
12039
  if ("boolean" != typeof t3)
12005
12040
  throw new Error("noUiSlider: 'animate' option must be a boolean.");
12006
- e3.animate = t3;
12041
+ e4.animate = t3;
12007
12042
  }
12008
- function _(e3, t3) {
12043
+ function _(e4, t3) {
12009
12044
  if ("number" != typeof t3)
12010
12045
  throw new Error("noUiSlider: 'animationDuration' option must be a number.");
12011
- e3.animationDuration = t3;
12046
+ e4.animationDuration = t3;
12012
12047
  }
12013
- function $(e3, t3) {
12048
+ function $(e4, t3) {
12014
12049
  var r2, i2 = [false];
12015
12050
  if ("lower" === t3 ? t3 = [true, false] : "upper" === t3 && (t3 = [false, true]), true === t3 || false === t3) {
12016
- for (r2 = 1; r2 < e3.handles; r2++)
12051
+ for (r2 = 1; r2 < e4.handles; r2++)
12017
12052
  i2.push(t3);
12018
12053
  i2.push(false);
12019
12054
  } else {
12020
- if (!Array.isArray(t3) || !t3.length || t3.length !== e3.handles + 1)
12055
+ if (!Array.isArray(t3) || !t3.length || t3.length !== e4.handles + 1)
12021
12056
  throw new Error("noUiSlider: 'connect' option doesn't match handle count.");
12022
12057
  i2 = t3;
12023
12058
  }
12024
- e3.connect = i2;
12059
+ e4.connect = i2;
12025
12060
  }
12026
- function X(e3, t3) {
12061
+ function X(e4, t3) {
12027
12062
  switch (t3) {
12028
12063
  case "horizontal":
12029
- e3.ort = 0;
12064
+ e4.ort = 0;
12030
12065
  break;
12031
12066
  case "vertical":
12032
- e3.ort = 1;
12067
+ e4.ort = 1;
12033
12068
  break;
12034
12069
  default:
12035
12070
  throw new Error("noUiSlider: 'orientation' option is invalid.");
12036
12071
  }
12037
12072
  }
12038
- function Y(e3, t3) {
12073
+ function Y(e4, t3) {
12039
12074
  if (!u2(t3))
12040
12075
  throw new Error("noUiSlider: 'margin' option must be numeric.");
12041
- 0 !== t3 && (e3.margin = e3.spectrum.getDistance(t3));
12076
+ 0 !== t3 && (e4.margin = e4.spectrum.getDistance(t3));
12042
12077
  }
12043
- function I(e3, t3) {
12078
+ function I(e4, t3) {
12044
12079
  if (!u2(t3))
12045
12080
  throw new Error("noUiSlider: 'limit' option must be numeric.");
12046
- if (e3.limit = e3.spectrum.getDistance(t3), !e3.limit || e3.handles < 2)
12081
+ if (e4.limit = e4.spectrum.getDistance(t3), !e4.limit || e4.handles < 2)
12047
12082
  throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.");
12048
12083
  }
12049
- function W(e3, t3) {
12084
+ function W(e4, t3) {
12050
12085
  var r2;
12051
12086
  if (!u2(t3) && !Array.isArray(t3))
12052
12087
  throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
12053
12088
  if (Array.isArray(t3) && 2 !== t3.length && !u2(t3[0]) && !u2(t3[1]))
12054
12089
  throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
12055
12090
  if (0 !== t3) {
12056
- 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++)
12057
- if (e3.padding[0][r2] < 0 || e3.padding[1][r2] < 0)
12091
+ 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++)
12092
+ if (e4.padding[0][r2] < 0 || e4.padding[1][r2] < 0)
12058
12093
  throw new Error("noUiSlider: 'padding' option must be a positive number(s).");
12059
- var i2 = t3[0] + t3[1], n2 = e3.spectrum.xVal[0];
12060
- if (i2 / (e3.spectrum.xVal[e3.spectrum.xVal.length - 1] - n2) > 1)
12094
+ var i2 = t3[0] + t3[1], n2 = e4.spectrum.xVal[0];
12095
+ if (i2 / (e4.spectrum.xVal[e4.spectrum.xVal.length - 1] - n2) > 1)
12061
12096
  throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.");
12062
12097
  }
12063
12098
  }
12064
- function G(e3, t3) {
12099
+ function G(e4, t3) {
12065
12100
  switch (t3) {
12066
12101
  case "ltr":
12067
- e3.dir = 0;
12102
+ e4.dir = 0;
12068
12103
  break;
12069
12104
  case "rtl":
12070
- e3.dir = 1;
12105
+ e4.dir = 1;
12071
12106
  break;
12072
12107
  default:
12073
12108
  throw new Error("noUiSlider: 'direction' option was not recognized.");
12074
12109
  }
12075
12110
  }
12076
- function J(e3, t3) {
12111
+ function J(e4, t3) {
12077
12112
  if ("string" != typeof t3)
12078
12113
  throw new Error("noUiSlider: 'behaviour' must be a string containing options.");
12079
12114
  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;
12080
12115
  if (n2) {
12081
- if (2 !== e3.handles)
12116
+ if (2 !== e4.handles)
12082
12117
  throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");
12083
- Y(e3, e3.start[1] - e3.start[0]);
12118
+ Y(e4, e4.start[1] - e4.start[0]);
12084
12119
  }
12085
- if (s2 && (e3.margin || e3.limit))
12120
+ if (s2 && (e4.margin || e4.limit))
12086
12121
  throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");
12087
- e3.events = { tap: r2 || o2, drag: i2, dragAll: l2, smoothSteps: u3, fixed: n2, snap: o2, hover: a2, unconstrained: s2 };
12122
+ e4.events = { tap: r2 || o2, drag: i2, dragAll: l2, smoothSteps: u3, fixed: n2, snap: o2, hover: a2, unconstrained: s2 };
12088
12123
  }
12089
- function K(e3, t3) {
12124
+ function K(e4, t3) {
12090
12125
  if (false !== t3)
12091
12126
  if (true === t3 || r(t3)) {
12092
- e3.tooltips = [];
12093
- for (var i2 = 0; i2 < e3.handles; i2++)
12094
- e3.tooltips.push(t3);
12127
+ e4.tooltips = [];
12128
+ for (var i2 = 0; i2 < e4.handles; i2++)
12129
+ e4.tooltips.push(t3);
12095
12130
  } else {
12096
- if ((t3 = d2(t3)).length !== e3.handles)
12131
+ if ((t3 = d2(t3)).length !== e4.handles)
12097
12132
  throw new Error("noUiSlider: must pass a formatter for all handles.");
12098
- t3.forEach(function(e4) {
12099
- if ("boolean" != typeof e4 && !r(e4))
12133
+ t3.forEach(function(e5) {
12134
+ if ("boolean" != typeof e5 && !r(e5))
12100
12135
  throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.");
12101
- }), e3.tooltips = t3;
12136
+ }), e4.tooltips = t3;
12102
12137
  }
12103
12138
  }
12104
- function Q(e3, t3) {
12105
- if (t3.length !== e3.handles)
12139
+ function Q(e4, t3) {
12140
+ if (t3.length !== e4.handles)
12106
12141
  throw new Error("noUiSlider: must pass a attributes for all handles.");
12107
- e3.handleAttributes = t3;
12142
+ e4.handleAttributes = t3;
12108
12143
  }
12109
- function Z(e3, t3) {
12144
+ function Z(e4, t3) {
12110
12145
  if (!r(t3))
12111
12146
  throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");
12112
- e3.ariaFormat = t3;
12147
+ e4.ariaFormat = t3;
12113
12148
  }
12114
- function ee(e3, r2) {
12149
+ function ee(e4, r2) {
12115
12150
  if (!t2(r2))
12116
12151
  throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");
12117
- e3.format = r2;
12152
+ e4.format = r2;
12118
12153
  }
12119
- function te(e3, t3) {
12154
+ function te(e4, t3) {
12120
12155
  if ("boolean" != typeof t3)
12121
12156
  throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");
12122
- e3.keyboardSupport = t3;
12157
+ e4.keyboardSupport = t3;
12123
12158
  }
12124
- function re(e3, t3) {
12125
- e3.documentElement = t3;
12159
+ function re(e4, t3) {
12160
+ e4.documentElement = t3;
12126
12161
  }
12127
- function ie(e3, t3) {
12162
+ function ie(e4, t3) {
12128
12163
  if ("string" != typeof t3 && false !== t3)
12129
12164
  throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");
12130
- e3.cssPrefix = t3;
12165
+ e4.cssPrefix = t3;
12131
12166
  }
12132
- function ne(e3, t3) {
12167
+ function ne(e4, t3) {
12133
12168
  if ("object" != typeof t3)
12134
12169
  throw new Error("noUiSlider: 'cssClasses' must be an object.");
12135
- "string" == typeof e3.cssPrefix ? (e3.cssClasses = {}, Object.keys(t3).forEach(function(r2) {
12136
- e3.cssClasses[r2] = e3.cssPrefix + t3[r2];
12137
- })) : e3.cssClasses = t3;
12170
+ "string" == typeof e4.cssPrefix ? (e4.cssClasses = {}, Object.keys(t3).forEach(function(r2) {
12171
+ e4.cssClasses[r2] = e4.cssPrefix + t3[r2];
12172
+ })) : e4.cssClasses = t3;
12138
12173
  }
12139
- function oe(e3) {
12174
+ function oe(e4) {
12140
12175
  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 };
12141
- e3.format && !e3.ariaFormat && (e3.ariaFormat = e3.format), Object.keys(r2).forEach(function(o3) {
12142
- if (n(e3[o3]) || void 0 !== i2[o3])
12143
- r2[o3].t(t3, n(e3[o3]) ? e3[o3] : i2[o3]);
12176
+ e4.format && !e4.ariaFormat && (e4.ariaFormat = e4.format), Object.keys(r2).forEach(function(o3) {
12177
+ if (n(e4[o3]) || void 0 !== i2[o3])
12178
+ r2[o3].t(t3, n(e4[o3]) ? e4[o3] : i2[o3]);
12144
12179
  else if (r2[o3].r)
12145
12180
  throw new Error("noUiSlider: '" + o3 + "' is required.");
12146
- }), t3.pips = e3.pips;
12181
+ }), t3.pips = e4.pips;
12147
12182
  var o2 = document.createElement("div"), a2 = void 0 !== o2.style.msTransform, s2 = void 0 !== o2.style.transform;
12148
12183
  t3.transformRule = s2 ? "transform" : a2 ? "msTransform" : "webkitTransform";
12149
12184
  var l2 = [["left", "top"], ["right", "bottom"]];
@@ -12151,226 +12186,226 @@ var f = c(p(function(e, t) {
12151
12186
  }
12152
12187
  function ae(t3, r2, s2) {
12153
12188
  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;
12154
- function z2(e3, t4) {
12189
+ function z2(e4, t4) {
12155
12190
  var r3 = O2.createElement("div");
12156
- return t4 && h2(r3, t4), e3.appendChild(r3), r3;
12191
+ return t4 && h2(r3, t4), e4.appendChild(r3), r3;
12157
12192
  }
12158
- function H2(e3, t4) {
12159
- var i2 = z2(e3, r2.cssClasses.origin), n2 = z2(i2, r2.cssClasses.handle);
12160
- if (z2(n2, r2.cssClasses.touchArea), n2.setAttribute("data-handle", String(t4)), r2.keyboardSupport && (n2.setAttribute("tabindex", "0"), n2.addEventListener("keydown", function(e4) {
12161
- return fe(e4, t4);
12193
+ function H2(e4, t4) {
12194
+ var i2 = z2(e4, r2.cssClasses.origin), n2 = z2(i2, r2.cssClasses.handle);
12195
+ if (z2(n2, r2.cssClasses.touchArea), n2.setAttribute("data-handle", String(t4)), r2.keyboardSupport && (n2.setAttribute("tabindex", "0"), n2.addEventListener("keydown", function(e5) {
12196
+ return fe(e5, t4);
12162
12197
  })), void 0 !== r2.handleAttributes) {
12163
12198
  var o2 = r2.handleAttributes[t4];
12164
- Object.keys(o2).forEach(function(e4) {
12165
- n2.setAttribute(e4, o2[e4]);
12199
+ Object.keys(o2).forEach(function(e5) {
12200
+ n2.setAttribute(e5, o2[e5]);
12166
12201
  });
12167
12202
  }
12168
12203
  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;
12169
12204
  }
12170
- function q2(e3, t4) {
12171
- return !!t4 && z2(e3, r2.cssClasses.connect);
12205
+ function q2(e4, t4) {
12206
+ return !!t4 && z2(e4, r2.cssClasses.connect);
12172
12207
  }
12173
- function R2(e3, t4) {
12208
+ function R2(e4, t4) {
12174
12209
  var i2 = z2(t4, r2.cssClasses.connects);
12175
- f3 = [], (x2 = []).push(q2(i2, e3[0]));
12210
+ f3 = [], (x2 = []).push(q2(i2, e4[0]));
12176
12211
  for (var n2 = 0; n2 < r2.handles; n2++)
12177
- f3.push(H2(t4, n2)), M2[n2] = n2, x2.push(q2(i2, e3[n2 + 1]));
12212
+ f3.push(H2(t4, n2)), M2[n2] = n2, x2.push(q2(i2, e4[n2 + 1]));
12178
12213
  }
12179
- function B2(e3) {
12180
- 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);
12214
+ function B2(e4) {
12215
+ 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);
12181
12216
  }
12182
- function _2(e3, t4) {
12183
- return !(!r2.tooltips || !r2.tooltips[t4]) && z2(e3.firstChild, r2.cssClasses.tooltip);
12217
+ function _2(e4, t4) {
12218
+ return !(!r2.tooltips || !r2.tooltips[t4]) && z2(e4.firstChild, r2.cssClasses.tooltip);
12184
12219
  }
12185
12220
  function $2() {
12186
12221
  return C2.hasAttribute("disabled");
12187
12222
  }
12188
- function X2(e3) {
12189
- return f3[e3].hasAttribute("disabled");
12223
+ function X2(e4) {
12224
+ return f3[e4].hasAttribute("disabled");
12190
12225
  }
12191
12226
  function Y2() {
12192
- E2 && (ge("update" + D.tooltips), E2.forEach(function(e3) {
12193
- e3 && i(e3);
12227
+ E2 && (ge("update" + D.tooltips), E2.forEach(function(e4) {
12228
+ e4 && i(e4);
12194
12229
  }), E2 = null);
12195
12230
  }
12196
12231
  function I2() {
12197
- Y2(), E2 = f3.map(_2), me("update" + D.tooltips, function(e3, t4, i2) {
12232
+ Y2(), E2 = f3.map(_2), me("update" + D.tooltips, function(e4, t4, i2) {
12198
12233
  if (E2 && r2.tooltips && false !== E2[t4]) {
12199
- var n2 = e3[t4];
12234
+ var n2 = e4[t4];
12200
12235
  true !== r2.tooltips[t4] && (n2 = r2.tooltips[t4].to(i2[t4])), E2[t4].innerHTML = n2;
12201
12236
  }
12202
12237
  });
12203
12238
  }
12204
12239
  function W2() {
12205
- ge("update" + D.aria), me("update" + D.aria, function(e3, t4, i2, n2, o2) {
12206
- M2.forEach(function(e4) {
12207
- 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]));
12240
+ ge("update" + D.aria), me("update" + D.aria, function(e4, t4, i2, n2, o2) {
12241
+ M2.forEach(function(e5) {
12242
+ 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]));
12208
12243
  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);
12209
12244
  });
12210
12245
  });
12211
12246
  }
12212
12247
  function G2(t4) {
12213
- if (t4.mode === e2.PipsMode.Range || t4.mode === e2.PipsMode.Steps)
12248
+ if (t4.mode === e3.PipsMode.Range || t4.mode === e3.PipsMode.Steps)
12214
12249
  return k2.xVal;
12215
- if (t4.mode === e2.PipsMode.Count) {
12250
+ if (t4.mode === e3.PipsMode.Count) {
12216
12251
  if (t4.values < 2)
12217
12252
  throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");
12218
12253
  for (var r3 = t4.values - 1, i2 = 100 / r3, n2 = []; r3--; )
12219
12254
  n2[r3] = r3 * i2;
12220
12255
  return n2.push(100), J2(n2, t4.stepped);
12221
12256
  }
12222
- return t4.mode === e2.PipsMode.Positions ? J2(t4.values, t4.stepped) : t4.mode === e2.PipsMode.Values ? t4.stepped ? t4.values.map(function(e3) {
12223
- return k2.fromStepping(k2.getStep(k2.toStepping(e3)));
12257
+ return t4.mode === e3.PipsMode.Positions ? J2(t4.values, t4.stepped) : t4.mode === e3.PipsMode.Values ? t4.stepped ? t4.values.map(function(e4) {
12258
+ return k2.fromStepping(k2.getStep(k2.toStepping(e4)));
12224
12259
  }) : t4.values : [];
12225
12260
  }
12226
- function J2(e3, t4) {
12227
- return e3.map(function(e4) {
12228
- return k2.fromStepping(t4 ? k2.getStep(e4) : e4);
12261
+ function J2(e4, t4) {
12262
+ return e4.map(function(e5) {
12263
+ return k2.fromStepping(t4 ? k2.getStep(e5) : e5);
12229
12264
  });
12230
12265
  }
12231
12266
  function K2(t4) {
12232
- function r3(e3, t5) {
12233
- return Number((e3 + t5).toFixed(7));
12267
+ function r3(e4, t5) {
12268
+ return Number((e4 + t5).toFixed(7));
12234
12269
  }
12235
12270
  var i2 = G2(t4), n2 = {}, o2 = k2.xVal[0], s3 = k2.xVal[k2.xVal.length - 1], l2 = false, u4 = false, c3 = 0;
12236
- return (i2 = a(i2.slice().sort(function(e3, t5) {
12237
- return e3 - t5;
12271
+ return (i2 = a(i2.slice().sort(function(e4, t5) {
12272
+ return e4 - t5;
12238
12273
  })))[0] !== o2 && (i2.unshift(o2), l2 = true), i2[i2.length - 1] !== s3 && (i2.push(s3), u4 = true), i2.forEach(function(o3, a2) {
12239
- var s4, p3, d3, f4, h3, m3, v2, g2, b2, y2, S2 = o3, x3 = i2[a2 + 1], w3 = t4.mode === e2.PipsMode.Steps;
12274
+ var s4, p3, d3, f4, h3, m3, v2, g2, b2, y2, S2 = o3, x3 = i2[a2 + 1], w3 = t4.mode === e3.PipsMode.Steps;
12240
12275
  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)) {
12241
12276
  for (g2 = (h3 = (f4 = k2.toStepping(p3)) - c3) / (t4.density || 1), y2 = h3 / (b2 = Math.round(g2)), d3 = 1; d3 <= b2; d3 += 1)
12242
12277
  n2[(m3 = c3 + d3 * y2).toFixed(5)] = [k2.fromStepping(m3), 0];
12243
- 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;
12278
+ 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;
12244
12279
  }
12245
12280
  }), n2;
12246
12281
  }
12247
12282
  function Q2(t4, i2, n2) {
12248
- 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];
12249
- function d3(e3, t5) {
12283
+ 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];
12284
+ function d3(e4, t5) {
12250
12285
  var i3 = t5 === r2.cssClasses.value, n3 = i3 ? l2 : u4;
12251
- return t5 + " " + (i3 ? c3 : p3)[r2.ort] + " " + n3[e3];
12286
+ return t5 + " " + (i3 ? c3 : p3)[r2.ort] + " " + n3[e4];
12252
12287
  }
12253
12288
  function f4(t5, o3, a3) {
12254
- if ((a3 = i2 ? i2(o3, a3) : a3) !== e2.PipsType.None) {
12289
+ if ((a3 = i2 ? i2(o3, a3) : a3) !== e3.PipsType.None) {
12255
12290
  var l3 = z2(s3, false);
12256
- 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)));
12291
+ 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)));
12257
12292
  }
12258
12293
  }
12259
- return h2(s3, r2.cssClasses.pips), h2(s3, 0 === r2.ort ? r2.cssClasses.pipsHorizontal : r2.cssClasses.pipsVertical), Object.keys(t4).forEach(function(e3) {
12260
- f4(e3, t4[e3][0], t4[e3][1]);
12294
+ return h2(s3, r2.cssClasses.pips), h2(s3, 0 === r2.ort ? r2.cssClasses.pipsHorizontal : r2.cssClasses.pipsVertical), Object.keys(t4).forEach(function(e4) {
12295
+ f4(e4, t4[e4][0], t4[e4][1]);
12261
12296
  }), s3;
12262
12297
  }
12263
12298
  function Z2() {
12264
12299
  w2 && (i(w2), w2 = null);
12265
12300
  }
12266
- function ee2(e3) {
12301
+ function ee2(e4) {
12267
12302
  Z2();
12268
- var t4 = K2(e3), r3 = e3.filter, i2 = e3.format || { to: function(e4) {
12269
- return String(Math.round(e4));
12303
+ var t4 = K2(e4), r3 = e4.filter, i2 = e4.format || { to: function(e5) {
12304
+ return String(Math.round(e5));
12270
12305
  } };
12271
12306
  return w2 = C2.appendChild(Q2(t4, r3, i2));
12272
12307
  }
12273
12308
  function te2() {
12274
- var e3 = u3.getBoundingClientRect(), t4 = "offset" + ["Width", "Height"][r2.ort];
12275
- return 0 === r2.ort ? e3.width || u3[t4] : e3.height || u3[t4];
12309
+ var e4 = u3.getBoundingClientRect(), t4 = "offset" + ["Width", "Height"][r2.ort];
12310
+ return 0 === r2.ort ? e4.width || u3[t4] : e4.height || u3[t4];
12276
12311
  }
12277
- function re2(e3, t4, i2, n2) {
12312
+ function re2(e4, t4, i2, n2) {
12278
12313
  var o2 = function(o3) {
12279
12314
  var a3 = ie2(o3, n2.pageOffset, n2.target || t4);
12280
- 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));
12315
+ 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));
12281
12316
  }, a2 = [];
12282
- return e3.split(" ").forEach(function(e4) {
12283
- t4.addEventListener(e4, o2, !!N2 && { passive: true }), a2.push([e4, o2]);
12317
+ return e4.split(" ").forEach(function(e5) {
12318
+ t4.addEventListener(e5, o2, !!N2 && { passive: true }), a2.push([e5, o2]);
12284
12319
  }), a2;
12285
12320
  }
12286
- function ie2(e3, t4, r3) {
12287
- var i2 = 0 === e3.type.indexOf("touch"), n2 = 0 === e3.type.indexOf("mouse"), o2 = 0 === e3.type.indexOf("pointer"), a2 = 0, s3 = 0;
12288
- if (0 === e3.type.indexOf("MSPointer") && (o2 = true), "mousedown" === e3.type && !e3.buttons && !e3.touches)
12321
+ function ie2(e4, t4, r3) {
12322
+ var i2 = 0 === e4.type.indexOf("touch"), n2 = 0 === e4.type.indexOf("mouse"), o2 = 0 === e4.type.indexOf("pointer"), a2 = 0, s3 = 0;
12323
+ if (0 === e4.type.indexOf("MSPointer") && (o2 = true), "mousedown" === e4.type && !e4.buttons && !e4.touches)
12289
12324
  return false;
12290
12325
  if (i2) {
12291
12326
  var l2 = function(t5) {
12292
12327
  var i3 = t5.target;
12293
- return i3 === r3 || r3.contains(i3) || e3.composed && e3.composedPath().shift() === r3;
12328
+ return i3 === r3 || r3.contains(i3) || e4.composed && e4.composedPath().shift() === r3;
12294
12329
  };
12295
- if ("touchstart" === e3.type) {
12296
- var u4 = Array.prototype.filter.call(e3.touches, l2);
12330
+ if ("touchstart" === e4.type) {
12331
+ var u4 = Array.prototype.filter.call(e4.touches, l2);
12297
12332
  if (u4.length > 1)
12298
12333
  return false;
12299
12334
  a2 = u4[0].pageX, s3 = u4[0].pageY;
12300
12335
  } else {
12301
- var c3 = Array.prototype.find.call(e3.changedTouches, l2);
12336
+ var c3 = Array.prototype.find.call(e4.changedTouches, l2);
12302
12337
  if (!c3)
12303
12338
  return false;
12304
12339
  a2 = c3.pageX, s3 = c3.pageY;
12305
12340
  }
12306
12341
  }
12307
- 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;
12342
+ 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;
12308
12343
  }
12309
- function ne2(e3) {
12310
- var t4 = 100 * (e3 - l(u3, r2.ort)) / te2();
12344
+ function ne2(e4) {
12345
+ var t4 = 100 * (e4 - l(u3, r2.ort)) / te2();
12311
12346
  return t4 = p2(t4), r2.dir ? 100 - t4 : t4;
12312
12347
  }
12313
- function ae2(e3) {
12348
+ function ae2(e4) {
12314
12349
  var t4 = 100, r3 = false;
12315
12350
  return f3.forEach(function(i2, n2) {
12316
12351
  if (!X2(n2)) {
12317
- var o2 = A2[n2], a2 = Math.abs(o2 - e3);
12318
- (a2 < t4 || a2 <= t4 && e3 > o2 || 100 === a2 && 100 === t4) && (r3 = n2, t4 = a2);
12352
+ var o2 = A2[n2], a2 = Math.abs(o2 - e4);
12353
+ (a2 < t4 || a2 <= t4 && e4 > o2 || 100 === a2 && 100 === t4) && (r3 = n2, t4 = a2);
12319
12354
  }
12320
12355
  }), r3;
12321
12356
  }
12322
- function se2(e3, t4) {
12323
- "mouseout" === e3.type && "HTML" === e3.target.nodeName && null === e3.relatedTarget && ue(e3, t4);
12357
+ function se2(e4, t4) {
12358
+ "mouseout" === e4.type && "HTML" === e4.target.nodeName && null === e4.relatedTarget && ue(e4, t4);
12324
12359
  }
12325
- function le2(e3, t4) {
12326
- if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 === e3.buttons && 0 !== t4.buttonsProperty)
12327
- return ue(e3, t4);
12328
- var i2 = (r2.dir ? -1 : 1) * (e3.calcPoint - t4.startCalcPoint);
12360
+ function le2(e4, t4) {
12361
+ if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 === e4.buttons && 0 !== t4.buttonsProperty)
12362
+ return ue(e4, t4);
12363
+ var i2 = (r2.dir ? -1 : 1) * (e4.calcPoint - t4.startCalcPoint);
12329
12364
  xe(i2 > 0, 100 * i2 / t4.baseSize, t4.locations, t4.handleNumbers, t4.connect);
12330
12365
  }
12331
- function ue(e3, t4) {
12332
- t4.handle && (m2(t4.handle, r2.cssClasses.active), L2 -= 1), t4.listeners.forEach(function(e4) {
12333
- j2.removeEventListener(e4[0], e4[1]);
12334
- }), 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) {
12335
- Ne(e4, A2[e4], true, true, false, false);
12336
- }), t4.handleNumbers.forEach(function(e4) {
12337
- be("update", e4);
12338
- })), t4.handleNumbers.forEach(function(e4) {
12339
- be("change", e4), be("set", e4), be("end", e4);
12366
+ function ue(e4, t4) {
12367
+ t4.handle && (m2(t4.handle, r2.cssClasses.active), L2 -= 1), t4.listeners.forEach(function(e5) {
12368
+ j2.removeEventListener(e5[0], e5[1]);
12369
+ }), 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) {
12370
+ Ne(e5, A2[e5], true, true, false, false);
12371
+ }), t4.handleNumbers.forEach(function(e5) {
12372
+ be("update", e5);
12373
+ })), t4.handleNumbers.forEach(function(e5) {
12374
+ be("change", e5), be("set", e5), be("end", e5);
12340
12375
  });
12341
12376
  }
12342
- function ce(e3, t4) {
12377
+ function ce(e4, t4) {
12343
12378
  if (!t4.handleNumbers.some(X2)) {
12344
12379
  var i2;
12345
- 1 === t4.handleNumbers.length && (i2 = f3[t4.handleNumbers[0]].children[0], L2 += 1, h2(i2, r2.cssClasses.active)), e3.stopPropagation();
12346
- 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 });
12347
- 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) {
12348
- be("start", e4);
12380
+ 1 === t4.handleNumbers.length && (i2 = f3[t4.handleNumbers[0]].children[0], L2 += 1, h2(i2, r2.cssClasses.active)), e4.stopPropagation();
12381
+ 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 });
12382
+ 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) {
12383
+ be("start", e5);
12349
12384
  });
12350
12385
  }
12351
12386
  }
12352
- function pe(e3) {
12353
- e3.stopPropagation();
12354
- var t4 = ne2(e3.calcPoint), i2 = ae2(t4);
12355
- 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)));
12387
+ function pe(e4) {
12388
+ e4.stopPropagation();
12389
+ var t4 = ne2(e4.calcPoint), i2 = ae2(t4);
12390
+ 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)));
12356
12391
  }
12357
- function de(e3) {
12358
- var t4 = ne2(e3.calcPoint), r3 = k2.getStep(t4), i2 = k2.fromStepping(r3);
12359
- Object.keys(U2).forEach(function(e4) {
12360
- "hover" === e4.split(".")[0] && U2[e4].forEach(function(e5) {
12361
- e5.call(Te, i2);
12392
+ function de(e4) {
12393
+ var t4 = ne2(e4.calcPoint), r3 = k2.getStep(t4), i2 = k2.fromStepping(r3);
12394
+ Object.keys(U2).forEach(function(e5) {
12395
+ "hover" === e5.split(".")[0] && U2[e5].forEach(function(e6) {
12396
+ e6.call(Te, i2);
12362
12397
  });
12363
12398
  });
12364
12399
  }
12365
- function fe(e3, t4) {
12400
+ function fe(e4, t4) {
12366
12401
  if ($2() || X2(t4))
12367
12402
  return false;
12368
12403
  var i2 = ["Left", "Right"], n2 = ["Down", "Up"], o2 = ["PageDown", "PageUp"], a2 = ["Home", "End"];
12369
12404
  r2.dir && !r2.ort ? i2.reverse() : r2.ort && !r2.dir && (n2.reverse(), o2.reverse());
12370
- 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];
12405
+ 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];
12371
12406
  if (!(p3 || d3 || f4 || h3))
12372
12407
  return true;
12373
- if (e3.preventDefault(), d3 || p3) {
12408
+ if (e4.preventDefault(), d3 || p3) {
12374
12409
  var m3 = p3 ? 0 : 1, v2 = Oe(t4)[m3];
12375
12410
  if (null === v2)
12376
12411
  return false;
@@ -12379,133 +12414,133 @@ var f = c(p(function(e, t) {
12379
12414
  s3 = h3 ? r2.spectrum.xVal[r2.spectrum.xVal.length - 1] : r2.spectrum.xVal[0];
12380
12415
  return Ne(t4, k2.toStepping(s3), true, true), be("slide", t4), be("update", t4), be("change", t4), be("set", t4), false;
12381
12416
  }
12382
- function he(e3) {
12383
- e3.fixed || f3.forEach(function(e4, t4) {
12384
- re2(P2.start, e4.children[0], ce, { handleNumbers: [t4] });
12385
- }), e3.tap && re2(P2.start, u3, pe, {}), e3.hover && re2(P2.move, u3, de, { hover: true }), e3.drag && x2.forEach(function(t4, i2) {
12417
+ function he(e4) {
12418
+ e4.fixed || f3.forEach(function(e5, t4) {
12419
+ re2(P2.start, e5.children[0], ce, { handleNumbers: [t4] });
12420
+ }), e4.tap && re2(P2.start, u3, pe, {}), e4.hover && re2(P2.move, u3, de, { hover: true }), e4.drag && x2.forEach(function(t4, i2) {
12386
12421
  if (false !== t4 && 0 !== i2 && i2 !== x2.length - 1) {
12387
12422
  var n2 = f3[i2 - 1], o2 = f3[i2], a2 = [t4], s3 = [n2, o2], l2 = [i2 - 1, i2];
12388
- 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) {
12389
- re2(P2.start, e4, ce, { handles: s3, handleNumbers: l2, connect: t4 });
12423
+ 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) {
12424
+ re2(P2.start, e5, ce, { handles: s3, handleNumbers: l2, connect: t4 });
12390
12425
  });
12391
12426
  }
12392
12427
  });
12393
12428
  }
12394
- function me(e3, t4) {
12395
- U2[e3] = U2[e3] || [], U2[e3].push(t4), "update" === e3.split(".")[0] && f3.forEach(function(e4, t5) {
12429
+ function me(e4, t4) {
12430
+ U2[e4] = U2[e4] || [], U2[e4].push(t4), "update" === e4.split(".")[0] && f3.forEach(function(e5, t5) {
12396
12431
  be("update", t5);
12397
12432
  });
12398
12433
  }
12399
- function ve(e3) {
12400
- return e3 === D.aria || e3 === D.tooltips;
12434
+ function ve(e4) {
12435
+ return e4 === D.aria || e4 === D.tooltips;
12401
12436
  }
12402
- function ge(e3) {
12403
- var t4 = e3 && e3.split(".")[0], r3 = t4 ? e3.substring(t4.length) : e3;
12404
- Object.keys(U2).forEach(function(e4) {
12405
- var i2 = e4.split(".")[0], n2 = e4.substring(i2.length);
12406
- t4 && t4 !== i2 || r3 && r3 !== n2 || ve(n2) && r3 !== n2 || delete U2[e4];
12437
+ function ge(e4) {
12438
+ var t4 = e4 && e4.split(".")[0], r3 = t4 ? e4.substring(t4.length) : e4;
12439
+ Object.keys(U2).forEach(function(e5) {
12440
+ var i2 = e5.split(".")[0], n2 = e5.substring(i2.length);
12441
+ t4 && t4 !== i2 || r3 && r3 !== n2 || ve(n2) && r3 !== n2 || delete U2[e5];
12407
12442
  });
12408
12443
  }
12409
- function be(e3, t4, i2) {
12444
+ function be(e4, t4, i2) {
12410
12445
  Object.keys(U2).forEach(function(n2) {
12411
12446
  var o2 = n2.split(".")[0];
12412
- e3 === o2 && U2[n2].forEach(function(e4) {
12413
- e4.call(Te, V2.map(r2.format.to), t4, V2.slice(), i2 || false, A2.slice(), Te);
12447
+ e4 === o2 && U2[n2].forEach(function(e5) {
12448
+ e5.call(Te, V2.map(r2.format.to), t4, V2.slice(), i2 || false, A2.slice(), Te);
12414
12449
  });
12415
12450
  });
12416
12451
  }
12417
- function ye(e3, t4, i2, n2, o2, a2, s3) {
12452
+ function ye(e4, t4, i2, n2, o2, a2, s3) {
12418
12453
  var l2;
12419
- 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;
12454
+ 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;
12420
12455
  }
12421
- function Se(e3, t4) {
12456
+ function Se(e4, t4) {
12422
12457
  var i2 = r2.ort;
12423
- return (i2 ? t4 : e3) + ", " + (i2 ? e3 : t4);
12458
+ return (i2 ? t4 : e4) + ", " + (i2 ? e4 : t4);
12424
12459
  }
12425
- function xe(e3, t4, i2, n2, o2) {
12426
- var a2 = i2.slice(), s3 = n2[0], l2 = r2.events.smoothSteps, u4 = [!e3, e3], c3 = [e3, !e3];
12427
- n2 = n2.slice(), e3 && n2.reverse(), n2.length > 1 ? n2.forEach(function(e4, r3) {
12428
- var i3 = ye(a2, e4, a2[e4] + t4, u4[r3], c3[r3], false, l2);
12429
- false === i3 ? t4 = 0 : (t4 = i3 - a2[e4], a2[e4] = i3);
12460
+ function xe(e4, t4, i2, n2, o2) {
12461
+ var a2 = i2.slice(), s3 = n2[0], l2 = r2.events.smoothSteps, u4 = [!e4, e4], c3 = [e4, !e4];
12462
+ n2 = n2.slice(), e4 && n2.reverse(), n2.length > 1 ? n2.forEach(function(e5, r3) {
12463
+ var i3 = ye(a2, e5, a2[e5] + t4, u4[r3], c3[r3], false, l2);
12464
+ false === i3 ? t4 = 0 : (t4 = i3 - a2[e5], a2[e5] = i3);
12430
12465
  }) : u4 = c3 = [true];
12431
12466
  var p3 = false;
12432
- n2.forEach(function(e4, r3) {
12433
- p3 = Ne(e4, i2[e4] + t4, u4[r3], c3[r3], false, l2) || p3;
12434
- }), p3 && (n2.forEach(function(e4) {
12435
- be("update", e4), be("slide", e4);
12467
+ n2.forEach(function(e5, r3) {
12468
+ p3 = Ne(e5, i2[e5] + t4, u4[r3], c3[r3], false, l2) || p3;
12469
+ }), p3 && (n2.forEach(function(e5) {
12470
+ be("update", e5), be("slide", e5);
12436
12471
  }), null != o2 && be("drag", s3));
12437
12472
  }
12438
- function we(e3, t4) {
12439
- return r2.dir ? 100 - e3 - t4 : e3;
12473
+ function we(e4, t4) {
12474
+ return r2.dir ? 100 - e4 - t4 : e4;
12440
12475
  }
12441
- function Ee(e3, t4) {
12442
- A2[e3] = t4, V2[e3] = k2.fromStepping(t4);
12476
+ function Ee(e4, t4) {
12477
+ A2[e4] = t4, V2[e4] = k2.fromStepping(t4);
12443
12478
  var i2 = "translate(" + Se(we(t4, 0) - T2 + "%", "0") + ")";
12444
- f3[e3].style[r2.transformRule] = i2, Ce(e3), Ce(e3 + 1);
12479
+ f3[e4].style[r2.transformRule] = i2, Ce(e4), Ce(e4 + 1);
12445
12480
  }
12446
12481
  function Pe() {
12447
- M2.forEach(function(e3) {
12448
- var t4 = A2[e3] > 50 ? -1 : 1, r3 = 3 + (f3.length + t4 * e3);
12449
- f3[e3].style.zIndex = String(r3);
12482
+ M2.forEach(function(e4) {
12483
+ var t4 = A2[e4] > 50 ? -1 : 1, r3 = 3 + (f3.length + t4 * e4);
12484
+ f3[e4].style.zIndex = String(r3);
12450
12485
  });
12451
12486
  }
12452
- function Ne(e3, t4, r3, i2, n2, o2) {
12453
- return n2 || (t4 = ye(A2, e3, t4, r3, i2, false, o2)), false !== t4 && (Ee(e3, t4), true);
12487
+ function Ne(e4, t4, r3, i2, n2, o2) {
12488
+ return n2 || (t4 = ye(A2, e4, t4, r3, i2, false, o2)), false !== t4 && (Ee(e4, t4), true);
12454
12489
  }
12455
- function Ce(e3) {
12456
- if (x2[e3]) {
12490
+ function Ce(e4) {
12491
+ if (x2[e4]) {
12457
12492
  var t4 = 0, i2 = 100;
12458
- 0 !== e3 && (t4 = A2[e3 - 1]), e3 !== x2.length - 1 && (i2 = A2[e3]);
12493
+ 0 !== e4 && (t4 = A2[e4 - 1]), e4 !== x2.length - 1 && (i2 = A2[e4]);
12459
12494
  var n2 = i2 - t4, o2 = "translate(" + Se(we(t4, n2) + "%", "0") + ")", a2 = "scale(" + Se(n2 / 100, "1") + ")";
12460
- x2[e3].style[r2.transformRule] = o2 + " " + a2;
12495
+ x2[e4].style[r2.transformRule] = o2 + " " + a2;
12461
12496
  }
12462
12497
  }
12463
- function ke(e3, t4) {
12464
- 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);
12498
+ function ke(e4, t4) {
12499
+ 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);
12465
12500
  }
12466
- function Ve(e3, t4, i2) {
12467
- var n2 = d2(e3), o2 = void 0 === A2[0];
12468
- t4 = void 0 === t4 || t4, r2.animate && !o2 && c2(C2, r2.cssClasses.tap, r2.animationDuration), M2.forEach(function(e4) {
12469
- Ne(e4, ke(n2[e4], e4), true, false, i2);
12501
+ function Ve(e4, t4, i2) {
12502
+ var n2 = d2(e4), o2 = void 0 === A2[0];
12503
+ t4 = void 0 === t4 || t4, r2.animate && !o2 && c2(C2, r2.cssClasses.tap, r2.animationDuration), M2.forEach(function(e5) {
12504
+ Ne(e5, ke(n2[e5], e5), true, false, i2);
12470
12505
  });
12471
12506
  var a2 = 1 === M2.length ? 0 : 1;
12472
12507
  if (o2 && k2.hasNoSize() && (i2 = true, A2[0] = 0, M2.length > 1)) {
12473
12508
  var s3 = 100 / (M2.length - 1);
12474
- M2.forEach(function(e4) {
12475
- A2[e4] = e4 * s3;
12509
+ M2.forEach(function(e5) {
12510
+ A2[e5] = e5 * s3;
12476
12511
  });
12477
12512
  }
12478
12513
  for (; a2 < M2.length; ++a2)
12479
- M2.forEach(function(e4) {
12480
- Ne(e4, A2[e4], true, true, i2);
12514
+ M2.forEach(function(e5) {
12515
+ Ne(e5, A2[e5], true, true, i2);
12481
12516
  });
12482
- Pe(), M2.forEach(function(e4) {
12483
- be("update", e4), null !== n2[e4] && t4 && be("set", e4);
12517
+ Pe(), M2.forEach(function(e5) {
12518
+ be("update", e5), null !== n2[e5] && t4 && be("set", e5);
12484
12519
  });
12485
12520
  }
12486
- function Ae(e3) {
12487
- Ve(r2.start, e3);
12521
+ function Ae(e4) {
12522
+ Ve(r2.start, e4);
12488
12523
  }
12489
- function Me(e3, t4, r3, i2) {
12490
- if (!((e3 = Number(e3)) >= 0 && e3 < M2.length))
12491
- throw new Error("noUiSlider: invalid handle number, got: " + e3);
12492
- Ne(e3, ke(t4, e3), true, true, i2), be("update", e3), r3 && be("set", e3);
12524
+ function Me(e4, t4, r3, i2) {
12525
+ if (!((e4 = Number(e4)) >= 0 && e4 < M2.length))
12526
+ throw new Error("noUiSlider: invalid handle number, got: " + e4);
12527
+ Ne(e4, ke(t4, e4), true, true, i2), be("update", e4), r3 && be("set", e4);
12493
12528
  }
12494
- function Le(e3) {
12495
- if (void 0 === e3 && (e3 = false), e3)
12529
+ function Le(e4) {
12530
+ if (void 0 === e4 && (e4 = false), e4)
12496
12531
  return 1 === V2.length ? V2[0] : V2.slice(0);
12497
12532
  var t4 = V2.map(r2.format.to);
12498
12533
  return 1 === t4.length ? t4[0] : t4;
12499
12534
  }
12500
12535
  function Ue() {
12501
- for (ge(D.aria), ge(D.tooltips), Object.keys(r2.cssClasses).forEach(function(e3) {
12502
- m2(C2, r2.cssClasses[e3]);
12536
+ for (ge(D.aria), ge(D.tooltips), Object.keys(r2.cssClasses).forEach(function(e4) {
12537
+ m2(C2, r2.cssClasses[e4]);
12503
12538
  }); C2.firstChild; )
12504
12539
  C2.removeChild(C2.firstChild);
12505
12540
  delete C2.noUiSlider;
12506
12541
  }
12507
- function Oe(e3) {
12508
- var t4 = A2[e3], i2 = k2.getNearbySteps(t4), n2 = V2[e3], o2 = i2.thisStep.step, a2 = null;
12542
+ function Oe(e4) {
12543
+ var t4 = A2[e4], i2 = k2.getNearbySteps(t4), n2 = V2[e4], o2 = i2.thisStep.step, a2 = null;
12509
12544
  if (r2.snap)
12510
12545
  return [n2 - i2.stepBefore.startValue || null, i2.stepAfter.startValue - n2 || null];
12511
12546
  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);
@@ -12515,22 +12550,22 @@ var f = c(p(function(e, t) {
12515
12550
  function De() {
12516
12551
  return M2.map(Oe);
12517
12552
  }
12518
- function je(e3, t4) {
12553
+ function je(e4, t4) {
12519
12554
  var i2 = Le(), o2 = ["margin", "limit", "padding", "range", "animate", "snap", "step", "format", "pips", "tooltips"];
12520
12555
  o2.forEach(function(t5) {
12521
- void 0 !== e3[t5] && (s2[t5] = e3[t5]);
12556
+ void 0 !== e4[t5] && (s2[t5] = e4[t5]);
12522
12557
  });
12523
12558
  var a2 = oe(s2);
12524
12559
  o2.forEach(function(t5) {
12525
- void 0 !== e3[t5] && (r2[t5] = a2[t5]);
12526
- }), 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);
12560
+ void 0 !== e4[t5] && (r2[t5] = a2[t5]);
12561
+ }), 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);
12527
12562
  }
12528
12563
  function Fe() {
12529
12564
  u3 = B2(C2), R2(r2.connect, u3), he(r2.events), Ve(r2.start), r2.pips && ee2(r2.pips), r2.tooltips && I2(), W2();
12530
12565
  }
12531
12566
  Fe();
12532
- var Te = { destroy: Ue, steps: De, on: me, off: ge, get: Le, set: Ve, setHandle: Me, reset: Ae, __moveHandles: function(e3, t4, r3) {
12533
- xe(e3, t4, A2, r3);
12567
+ var Te = { destroy: Ue, steps: De, on: me, off: ge, get: Le, set: Ve, setHandle: Me, reset: Ae, __moveHandles: function(e4, t4, r3) {
12568
+ xe(e4, t4, A2, r3);
12534
12569
  }, options: s2, updateOptions: je, target: C2, removePips: Z2, removeTooltips: Y2, getPositions: function() {
12535
12570
  return A2.slice();
12536
12571
  }, getTooltips: function() {
@@ -12540,30 +12575,30 @@ var f = c(p(function(e, t) {
12540
12575
  }, pips: ee2 };
12541
12576
  return Te;
12542
12577
  }
12543
- function se(e3, t3) {
12544
- if (!e3 || !e3.nodeName)
12545
- throw new Error("noUiSlider: create requires a single element, got: " + e3);
12546
- if (e3.noUiSlider)
12578
+ function se(e4, t3) {
12579
+ if (!e4 || !e4.nodeName)
12580
+ throw new Error("noUiSlider: create requires a single element, got: " + e4);
12581
+ if (e4.noUiSlider)
12547
12582
  throw new Error("noUiSlider: Slider was already initialized.");
12548
- var r2 = ae(e3, oe(t3), t3);
12549
- return e3.noUiSlider = r2, r2;
12583
+ var r2 = ae(e4, oe(t3), t3);
12584
+ return e4.noUiSlider = r2, r2;
12550
12585
  }
12551
12586
  var le = { __spectrum: L, cssClasses: O, create: se };
12552
- e2.create = se, e2.cssClasses = O, e2.default = le, Object.defineProperty(e2, "__esModule", { value: true });
12587
+ e3.create = se, e3.cssClasses = O, e3.default = le, Object.defineProperty(e3, "__esModule", { value: true });
12553
12588
  }(t);
12554
12589
  }));
12555
- function h(e, t) {
12556
- if (!Array.isArray(e) || !Array.isArray(t))
12590
+ function h(e2, t) {
12591
+ if (!Array.isArray(e2) || !Array.isArray(t))
12557
12592
  return false;
12558
12593
  const r = t.slice().sort();
12559
- return e.length === t.length && e.slice().sort().every(function(e2, t2) {
12560
- return e2 === r[t2];
12594
+ return e2.length === t.length && e2.slice().sort().every(function(e3, t2) {
12595
+ return e3 === r[t2];
12561
12596
  });
12562
12597
  }
12563
- var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide", "drag", "update", "change", "set", "end"], props: __spreadProps2(__spreadValues2({}, { value: { validator: function(e) {
12564
- return (e2) => "number" == typeof e2 || e2 instanceof Array || null == e2 || false === e2;
12565
- }, required: false }, modelValue: { validator: function(e) {
12566
- return (e2) => "number" == typeof e2 || e2 instanceof Array || null == e2 || false === e2;
12598
+ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide", "drag", "update", "change", "set", "end"], props: __spreadProps2(__spreadValues2({}, { value: { validator: function(e2) {
12599
+ return (e3) => "number" == typeof e3 || e3 instanceof Array || null == e3 || false === e3;
12600
+ }, required: false }, modelValue: { validator: function(e2) {
12601
+ return (e3) => "number" == typeof e3 || e3 instanceof Array || null == e3 || false === e3;
12567
12602
  }, 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) {
12568
12603
  const l = function(r, i, n) {
12569
12604
  const { value: o, modelValue: a2, min: s2 } = toRefs(r);
@@ -12575,37 +12610,37 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
12575
12610
  }(a), c2 = function(t, i, n) {
12576
12611
  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));
12577
12612
  return { classList: computed(() => {
12578
- const e = __spreadValues2({}, u2.value);
12579
- return Object.keys(e).forEach((t2) => {
12580
- e[t2] = Array.isArray(e[t2]) ? e[t2].filter((e2) => null !== e2).join(" ") : e[t2];
12581
- }), "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;
12613
+ const e2 = __spreadValues2({}, u2.value);
12614
+ return Object.keys(e2).forEach((t2) => {
12615
+ e2[t2] = Array.isArray(e2[t2]) ? e2[t2].filter((e3) => null !== e3).join(" ") : e2[t2];
12616
+ }), "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;
12582
12617
  }) };
12583
12618
  }(a), p2 = function(t, i, n) {
12584
- 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);
12585
- return { tooltipFormat: u2, tooltipsFormat: c3, tooltipsMerge: (e, t2, r) => {
12586
- 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();
12587
- a3.forEach(function(e2, t3) {
12588
- e2 && s3[t3].appendChild(e2);
12589
- }), e.noUiSlider.on("update", function(e2, s4, c4, p3, d2) {
12619
+ 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);
12620
+ return { tooltipFormat: u2, tooltipsFormat: c3, tooltipsMerge: (e2, t2, r) => {
12621
+ 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();
12622
+ a3.forEach(function(e3, t3) {
12623
+ e3 && s3[t3].appendChild(e3);
12624
+ }), e2.noUiSlider.on("update", function(e3, s4, c4, p3, d2) {
12590
12625
  var f2 = [[]], h2 = [[]], m3 = [[]], v = 0;
12591
- a3[0] && (f2[0][0] = 0, h2[0][0] = d2[0], m3[0][0] = u2.value.to(parseFloat(e2[0])));
12592
- for (var g = 1; g < e2.length; g++)
12593
- (!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]));
12594
- f2.forEach(function(e3, t3) {
12595
- for (var s5 = e3.length, u3 = 0; u3 < s5; u3++) {
12596
- var c5 = e3[u3];
12626
+ a3[0] && (f2[0][0] = 0, h2[0][0] = d2[0], m3[0][0] = u2.value.to(parseFloat(e3[0])));
12627
+ for (var g = 1; g < e3.length; g++)
12628
+ (!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]));
12629
+ f2.forEach(function(e4, t3) {
12630
+ for (var s5 = e4.length, u3 = 0; u3 < s5; u3++) {
12631
+ var c5 = e4[u3];
12597
12632
  if (u3 === s5 - 1) {
12598
12633
  var p4 = 0;
12599
- h2[t3].forEach(function(e4) {
12600
- p4 += 1e3 - e4;
12634
+ h2[t3].forEach(function(e5) {
12635
+ p4 += 1e3 - e5;
12601
12636
  });
12602
12637
  var d3 = o2 ? "bottom" : "right", f3 = n2 ? 0 : s5 - 1, v2 = 1e3 - h2[t3][f3];
12603
- 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) => {
12604
- a3[c5].classList.contains(e4) && a3[c5].classList.remove(e4);
12638
+ 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) => {
12639
+ a3[c5].classList.contains(e5) && a3[c5].classList.remove(e5);
12605
12640
  });
12606
12641
  } else
12607
- a3[c5].style.display = "none", l2.value.tooltipHidden.split(" ").forEach((e4) => {
12608
- a3[c5].classList.add(e4);
12642
+ a3[c5].style.display = "none", l2.value.tooltipHidden.split(" ").forEach((e5) => {
12643
+ a3[c5].classList.add(e5);
12609
12644
  });
12610
12645
  }
12611
12646
  });
@@ -12613,32 +12648,32 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
12613
12648
  } };
12614
12649
  }(a, 0, { value: l.value, classList: c2.classList }), m2 = function(a2, s2, l2) {
12615
12650
  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(() => {
12616
- 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 } };
12617
- if (m3.value > 0 && (e.step = m3.value), Array.isArray(k.value) && (e.connect = true), N && N.value || C && Object.keys(C.value).length) {
12651
+ 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 } };
12652
+ if (m3.value > 0 && (e2.step = m3.value), Array.isArray(k.value) && (e2.connect = true), N && N.value || C && Object.keys(C.value).length) {
12618
12653
  let t = Array.isArray(k.value) ? k.value : [k.value];
12619
- e.handleAttributes = t.map((e2) => Object.assign({}, C.value, N && N.value ? { "aria-labelledby": N.value } : {}));
12654
+ e2.handleAttributes = t.map((e3) => Object.assign({}, C.value, N && N.value ? { "aria-labelledby": N.value } : {}));
12620
12655
  }
12621
- return E.value && (e.ariaFormat = L.value), e;
12656
+ return E.value && (e2.ariaFormat = L.value), e2;
12622
12657
  }), T = computed(() => {
12623
- let e = { id: y && y.value ? y.value : void 0 };
12624
- return S.value && (e.disabled = true), e;
12658
+ let e2 = { id: y && y.value ? y.value : void 0 };
12659
+ return S.value && (e2.disabled = true), e2;
12625
12660
  }), z = computed(() => Array.isArray(k.value)), H = () => {
12626
- let e = D.value.get();
12627
- return Array.isArray(e) ? e.map((e2) => parseFloat(e2)) : parseFloat(e);
12628
- }, q = function(e) {
12661
+ let e2 = D.value.get();
12662
+ return Array.isArray(e2) ? e2.map((e3) => parseFloat(e3)) : parseFloat(e2);
12663
+ }, q = function(e2) {
12629
12664
  let t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
12630
- D.value.set(e, t);
12631
- }, R = (e) => {
12632
- s2.emit("input", e), s2.emit("update:modelValue", e), s2.emit("update", e);
12665
+ D.value.set(e2, t);
12666
+ }, R = (e2) => {
12667
+ s2.emit("input", e2), s2.emit("update:modelValue", e2), s2.emit("update", e2);
12633
12668
  }, B = () => {
12634
12669
  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", () => {
12635
- const e = H();
12636
- s2.emit("change", e), s2.emit("set", e), P.value && R(e);
12670
+ const e2 = H();
12671
+ s2.emit("change", e2), s2.emit("set", e2), P.value && R(e2);
12637
12672
  }), D.value.on("update", () => {
12638
12673
  if (!j.value)
12639
12674
  return;
12640
- const e = H();
12641
- z.value && h(k.value, e) || !z.value && k.value == e ? s2.emit("update", e) : P.value || R(e);
12675
+ const e2 = H();
12676
+ z.value && h(k.value, e2) || !z.value && k.value == e2 ? s2.emit("update", e2) : P.value || R(e2);
12642
12677
  }), D.value.on("start", () => {
12643
12678
  s2.emit("start", H());
12644
12679
  }), D.value.on("end", () => {
@@ -12647,48 +12682,48 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
12647
12682
  s2.emit("slide", H());
12648
12683
  }), D.value.on("drag", () => {
12649
12684
  s2.emit("drag", H());
12650
- }), O.value.querySelectorAll("[data-handle]").forEach((e) => {
12651
- e.onblur = () => {
12652
- O.value && U.value.focused.split(" ").forEach((e2) => {
12653
- O.value.classList.remove(e2);
12685
+ }), O.value.querySelectorAll("[data-handle]").forEach((e2) => {
12686
+ e2.onblur = () => {
12687
+ O.value && U.value.focused.split(" ").forEach((e3) => {
12688
+ O.value.classList.remove(e3);
12654
12689
  });
12655
- }, e.onfocus = () => {
12656
- U.value.focused.split(" ").forEach((e2) => {
12657
- O.value.classList.add(e2);
12690
+ }, e2.onfocus = () => {
12691
+ U.value.focused.split(" ").forEach((e3) => {
12692
+ O.value.classList.add(e3);
12658
12693
  });
12659
12694
  };
12660
12695
  }), j.value = true;
12661
12696
  }, _ = () => {
12662
12697
  D.value.off(), D.value.destroy(), D.value = null;
12663
- }, $ = (e, t) => {
12698
+ }, $ = (e2, t) => {
12664
12699
  j.value = false, _(), B();
12665
12700
  };
12666
- 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) => {
12667
- t && ("object" == typeof t && "object" == typeof e && e && Object.keys(t) > Object.keys(e) || "object" == typeof t && "object" != typeof e || u(e)) && $();
12668
- }, { immediate: false }), watch(k, (e) => {
12669
- if (u(e))
12701
+ 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) => {
12702
+ t && ("object" == typeof t && "object" == typeof e2 && e2 && Object.keys(t) > Object.keys(e2) || "object" == typeof t && "object" != typeof e2 || u(e2)) && $();
12703
+ }, { immediate: false }), watch(k, (e2) => {
12704
+ if (u(e2))
12670
12705
  return void q(v.value, false);
12671
12706
  let t = H();
12672
- z.value && !Array.isArray(t) && (t = [t]), (z.value && !h(e, t) || !z.value && e != t) && q(e, false);
12707
+ z.value && !Array.isArray(t) && (t = [t]), (z.value && !h(e2, t) || !z.value && e2 != t) && q(e2, false);
12673
12708
  }, { deep: true }), { slider: O, slider$: D, isRange: z, sliderProps: T, init: B, destroy: _, refresh: $, update: q, reset: () => {
12674
12709
  R(V.value);
12675
12710
  } };
12676
12711
  }(a, s, { value: l.value, initialValue: l.initialValue, tooltipFormat: p2.tooltipFormat, tooltipsFormat: p2.tooltipsFormat, tooltipsMerge: p2.tooltipsMerge, classList: c2.classList });
12677
12712
  return __spreadValues2(__spreadValues2(__spreadValues2({}, c2), p2), m2);
12678
12713
  } };
12679
- m.render = function(e, t, r, i, n, o) {
12680
- return openBlock(), createElementBlock("div", mergeProps(e.sliderProps, { ref: "slider" }), null, 16);
12714
+ m.render = function(e2, t, r, i, n, o) {
12715
+ return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
12681
12716
  }, m.__file = "src/Slider.vue";
12682
12717
  const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
12683
12718
  const _hoisted_2$x = {
12684
12719
  key: 0,
12685
12720
  class: "lupa-stats-facet-summary"
12686
12721
  };
12687
- const _hoisted_3$n = {
12722
+ const _hoisted_3$o = {
12688
12723
  key: 1,
12689
12724
  class: "lupa-stats-facet-summary-input"
12690
12725
  };
12691
- const _hoisted_4$h = {
12726
+ const _hoisted_4$i = {
12692
12727
  key: 0,
12693
12728
  class: "lupa-stats-range-label"
12694
12729
  };
@@ -12881,9 +12916,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
12881
12916
  };
12882
12917
  return (_ctx, _cache) => {
12883
12918
  return openBlock(), createElementBlock("div", _hoisted_1$J, [
12884
- !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$n, [
12919
+ !isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
12885
12920
  createBaseVNode("div", null, [
12886
- rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
12921
+ rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
12887
12922
  createBaseVNode("div", _hoisted_5$b, [
12888
12923
  withDirectives(createBaseVNode("input", {
12889
12924
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
@@ -12949,8 +12984,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
12949
12984
  });
12950
12985
  const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
12951
12986
  const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
12952
- const _hoisted_3$m = { class: "lupa-term-label" };
12953
- const _hoisted_4$g = {
12987
+ const _hoisted_3$n = { class: "lupa-term-label" };
12988
+ const _hoisted_4$h = {
12954
12989
  key: 0,
12955
12990
  class: "lupa-term-count"
12956
12991
  };
@@ -13010,8 +13045,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
13010
13045
  }, null, 2)
13011
13046
  ]),
13012
13047
  createBaseVNode("div", _hoisted_2$w, [
13013
- createBaseVNode("span", _hoisted_3$m, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
13014
- _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$g, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
13048
+ createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
13049
+ _ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
13015
13050
  ])
13016
13051
  ]),
13017
13052
  showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
@@ -13035,7 +13070,7 @@ const _hoisted_1$H = {
13035
13070
  "data-cy": "lupa-search-result-facet-term-values"
13036
13071
  };
13037
13072
  const _hoisted_2$v = { key: 0 };
13038
- const _hoisted_3$l = ["placeholder"];
13073
+ const _hoisted_3$m = ["placeholder"];
13039
13074
  const _sfc_main$K = /* @__PURE__ */ defineComponent({
13040
13075
  __name: "HierarchyFacet",
13041
13076
  props: {
@@ -13093,7 +13128,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
13093
13128
  "data-cy": "lupa-term-filter",
13094
13129
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
13095
13130
  placeholder: _ctx.options.labels.facetFilter
13096
- }, null, 8, _hoisted_3$l), [
13131
+ }, null, 8, _hoisted_3$m), [
13097
13132
  [vModelText, termFilter.value]
13098
13133
  ])
13099
13134
  ])) : createCommentVNode("", true),
@@ -13197,12 +13232,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
13197
13232
  onBeforeUnmount(() => {
13198
13233
  window.removeEventListener("click", handleMouseClick);
13199
13234
  });
13200
- const handleMouseClick = (e) => {
13235
+ const handleMouseClick = (e2) => {
13201
13236
  const el = facetPanel.value;
13202
13237
  if (!el) {
13203
13238
  return;
13204
13239
  }
13205
- const isOutsideElement = el && !el.contains(e.target);
13240
+ const isOutsideElement = el && !el.contains(e2.target);
13206
13241
  if (isOutsideElement) {
13207
13242
  isOpen.value = false;
13208
13243
  }
@@ -13522,8 +13557,8 @@ const _hoisted_1$B = {
13522
13557
  class: "lupa-mobile-filter-sidebar"
13523
13558
  };
13524
13559
  const _hoisted_2$r = ["onClick"];
13525
- const _hoisted_3$k = { class: "lupa-mobile-sidebar-content" };
13526
- const _hoisted_4$f = { class: "lupa-sidebar-top" };
13560
+ const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
13561
+ const _hoisted_4$g = { class: "lupa-sidebar-top" };
13527
13562
  const _hoisted_5$9 = { class: "lupa-sidebar-title" };
13528
13563
  const _hoisted_6$6 = {
13529
13564
  key: 0,
@@ -13566,8 +13601,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
13566
13601
  class: "lupa-sidebar-close",
13567
13602
  onClick: withModifiers(handleMobileToggle, ["stop"])
13568
13603
  }, null, 8, _hoisted_2$r),
13569
- createBaseVNode("div", _hoisted_3$k, [
13570
- createBaseVNode("div", _hoisted_4$f, [
13604
+ createBaseVNode("div", _hoisted_3$l, [
13605
+ createBaseVNode("div", _hoisted_4$g, [
13571
13606
  createBaseVNode("div", _hoisted_5$9, [
13572
13607
  createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
13573
13608
  isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
@@ -13591,11 +13626,11 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
13591
13626
  });
13592
13627
  const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
13593
13628
  const _hoisted_2$q = ["href", "onClick"];
13594
- const _hoisted_3$j = {
13629
+ const _hoisted_3$k = {
13595
13630
  key: 1,
13596
13631
  class: "lupa-search-results-breadcrumb-text"
13597
13632
  };
13598
- const _hoisted_4$e = { key: 2 };
13633
+ const _hoisted_4$f = { key: 2 };
13599
13634
  const _sfc_main$D = /* @__PURE__ */ defineComponent({
13600
13635
  __name: "SearchResultsBreadcrumbs",
13601
13636
  props: {
@@ -13631,12 +13666,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
13631
13666
  key: 0,
13632
13667
  class: "lupa-search-results-breadcrumb-link",
13633
13668
  href: breadcrumb.link,
13634
- onClick: (e) => {
13669
+ onClick: (e2) => {
13635
13670
  var _a;
13636
- return handleNavigation(e, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
13671
+ return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
13637
13672
  }
13638
- }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$j, toDisplayString(getLabel(breadcrumb.label)), 1)),
13639
- index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$e, " / ")) : createCommentVNode("", true)
13673
+ }, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
13674
+ index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
13640
13675
  ]);
13641
13676
  }), 128))
13642
13677
  ]);
@@ -13741,8 +13776,8 @@ const _hoisted_2$p = {
13741
13776
  key: 0,
13742
13777
  class: "lupa-page-number-separator"
13743
13778
  };
13744
- const _hoisted_3$i = ["onClick"];
13745
- const _hoisted_4$d = {
13779
+ const _hoisted_3$j = ["onClick"];
13780
+ const _hoisted_4$e = {
13746
13781
  key: 0,
13747
13782
  class: "lupa-page-number-separator"
13748
13783
  };
@@ -13845,10 +13880,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
13845
13880
  page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
13846
13881
  ]),
13847
13882
  "data-cy": "lupa-page-number"
13848
- }, toDisplayString(page), 11, _hoisted_3$i);
13883
+ }, toDisplayString(page), 11, _hoisted_3$j);
13849
13884
  }), 128)),
13850
13885
  showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
13851
- showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, "...")) : createCommentVNode("", true),
13886
+ showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
13852
13887
  createBaseVNode("div", {
13853
13888
  class: "lupa-page-number lupa-page-number-last",
13854
13889
  onClick: _cache[2] || (_cache[2] = () => {
@@ -13872,8 +13907,8 @@ const _hoisted_1$v = {
13872
13907
  "data-cy": "lupa-search-results-page-size"
13873
13908
  };
13874
13909
  const _hoisted_2$o = { id: "lupa-select" };
13875
- const _hoisted_3$h = { class: "lupa-select-label" };
13876
- const _hoisted_4$c = ["aria-label"];
13910
+ const _hoisted_3$i = { class: "lupa-select-label" };
13911
+ const _hoisted_4$d = ["aria-label"];
13877
13912
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
13878
13913
  __name: "SearchResultsPageSize",
13879
13914
  props: {
@@ -13893,8 +13928,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
13893
13928
  var _a, _b;
13894
13929
  return (_b = (_a = props.labels) == null ? void 0 : _a.pageSize) != null ? _b : "";
13895
13930
  });
13896
- const handleSelect = (e) => {
13897
- const value = e.target.value;
13931
+ const handleSelect = (e2) => {
13932
+ const value = e2.target.value;
13898
13933
  paramsStore.appendParams({
13899
13934
  params: [{ name: optionsStore.getQueryParamName(QUERY_PARAMS$1.LIMIT), value }],
13900
13935
  paramsToRemove: [optionsStore.getQueryParamName(QUERY_PARAMS$1.PAGE)]
@@ -13903,7 +13938,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
13903
13938
  return (_ctx, _cache) => {
13904
13939
  return openBlock(), createElementBlock("div", _hoisted_1$v, [
13905
13940
  createBaseVNode("div", _hoisted_2$o, [
13906
- createBaseVNode("label", _hoisted_3$h, toDisplayString(label.value), 1),
13941
+ createBaseVNode("label", _hoisted_3$i, toDisplayString(label.value), 1),
13907
13942
  createBaseVNode("select", {
13908
13943
  class: "lupa-select-dropdown",
13909
13944
  "aria-label": label.value,
@@ -13915,7 +13950,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
13915
13950
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
13916
13951
  return openBlock(), createElementBlock("option", { key: option }, toDisplayString(prefixLabel.value) + toDisplayString(option), 1);
13917
13952
  }), 128))
13918
- ], 40, _hoisted_4$c)
13953
+ ], 40, _hoisted_4$d)
13919
13954
  ])
13920
13955
  ]);
13921
13956
  };
@@ -13926,8 +13961,8 @@ const _hoisted_1$u = {
13926
13961
  class: "lupa-search-results-sort"
13927
13962
  };
13928
13963
  const _hoisted_2$n = { id: "lupa-select" };
13929
- const _hoisted_3$g = { class: "lupa-select-label" };
13930
- const _hoisted_4$b = ["aria-label"];
13964
+ const _hoisted_3$h = { class: "lupa-select-label" };
13965
+ const _hoisted_4$c = ["aria-label"];
13931
13966
  const _hoisted_5$8 = ["value"];
13932
13967
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
13933
13968
  __name: "SearchResultsSort",
@@ -13980,7 +14015,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13980
14015
  return (_ctx, _cache) => {
13981
14016
  return openBlock(), createElementBlock("div", _hoisted_1$u, [
13982
14017
  createBaseVNode("div", _hoisted_2$n, [
13983
- createBaseVNode("label", _hoisted_3$g, toDisplayString(_ctx.options.label), 1),
14018
+ createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
13984
14019
  withDirectives(createBaseVNode("select", {
13985
14020
  class: "lupa-select-dropdown",
13986
14021
  "aria-label": _ctx.options.label,
@@ -13995,7 +14030,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13995
14030
  value: option.key
13996
14031
  }, toDisplayString(option.label), 9, _hoisted_5$8);
13997
14032
  }), 128))
13998
- ], 40, _hoisted_4$b), [
14033
+ ], 40, _hoisted_4$c), [
13999
14034
  [vModelSelect, selectedKey.value]
14000
14035
  ])
14001
14036
  ])
@@ -14008,8 +14043,8 @@ const _hoisted_2$m = {
14008
14043
  key: 0,
14009
14044
  class: "lupa-toolbar-right-title"
14010
14045
  };
14011
- const _hoisted_3$f = { key: 2 };
14012
- const _hoisted_4$a = { key: 4 };
14046
+ const _hoisted_3$g = { key: 2 };
14047
+ const _hoisted_4$b = { key: 4 };
14013
14048
  const _hoisted_5$7 = { key: 6 };
14014
14049
  const _hoisted_6$5 = { class: "lupa-toolbar-right" };
14015
14050
  const _hoisted_7$3 = {
@@ -14127,13 +14162,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
14127
14162
  }, [
14128
14163
  createBaseVNode("div", _hoisted_1$t, [
14129
14164
  toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
14130
- showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$f)),
14165
+ showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
14131
14166
  showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
14132
14167
  key: 3,
14133
14168
  label: searchSummaryLabel.value,
14134
14169
  clearable: unref(hasAnyFilter) && showFilterClear.value,
14135
14170
  onClear: handleClearAll
14136
- }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$a)),
14171
+ }, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
14137
14172
  displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
14138
14173
  key: 5,
14139
14174
  options: paginationOptions.value.pageSelect,
@@ -14181,11 +14216,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
14181
14216
  });
14182
14217
  const _hoisted_1$s = ["innerHTML"];
14183
14218
  const _hoisted_2$l = ["title"];
14184
- const _hoisted_3$e = {
14219
+ const _hoisted_3$f = {
14185
14220
  key: 0,
14186
14221
  class: "lupa-search-results-product-title-text"
14187
14222
  };
14188
- const _hoisted_4$9 = ["href"];
14223
+ const _hoisted_4$a = ["href"];
14189
14224
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
14190
14225
  __name: "SearchResultsProductTitle",
14191
14226
  props: {
@@ -14225,13 +14260,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
14225
14260
  style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
14226
14261
  title: title.value
14227
14262
  }, [
14228
- !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$e, toDisplayString(title.value), 1)) : createCommentVNode("", true),
14263
+ !_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(title.value), 1)) : createCommentVNode("", true),
14229
14264
  _ctx.options.link ? (openBlock(), createElementBlock("a", {
14230
14265
  key: 1,
14231
14266
  href: _ctx.link,
14232
14267
  class: "lupa-search-results-product-title-text lupa-title-link",
14233
14268
  onClick: handleNavigation
14234
- }, toDisplayString(title.value), 9, _hoisted_4$9)) : createCommentVNode("", true)
14269
+ }, toDisplayString(title.value), 9, _hoisted_4$a)) : createCommentVNode("", true)
14235
14270
  ], 12, _hoisted_2$l));
14236
14271
  };
14237
14272
  }
@@ -14271,8 +14306,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
14271
14306
  });
14272
14307
  const _hoisted_1$q = { id: "lupa-search-results-rating" };
14273
14308
  const _hoisted_2$k = { class: "lupa-ratings" };
14274
- const _hoisted_3$d = { class: "lupa-ratings-base" };
14275
- const _hoisted_4$8 = ["innerHTML"];
14309
+ const _hoisted_3$e = { class: "lupa-ratings-base" };
14310
+ const _hoisted_4$9 = ["innerHTML"];
14276
14311
  const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
14277
14312
  const _hoisted_6$4 = ["innerHTML"];
14278
14313
  const _hoisted_7$2 = ["href"];
@@ -14310,13 +14345,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
14310
14345
  return (_ctx, _cache) => {
14311
14346
  return openBlock(), createElementBlock("div", _hoisted_1$q, [
14312
14347
  createBaseVNode("div", _hoisted_2$k, [
14313
- createBaseVNode("div", _hoisted_3$d, [
14348
+ createBaseVNode("div", _hoisted_3$e, [
14314
14349
  (openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
14315
14350
  return openBlock(), createElementBlock("div", {
14316
14351
  key: index,
14317
14352
  innerHTML: star,
14318
14353
  class: "lupa-rating lupa-rating-not-highlighted"
14319
- }, null, 8, _hoisted_4$8);
14354
+ }, null, 8, _hoisted_4$9);
14320
14355
  }), 128))
14321
14356
  ]),
14322
14357
  createBaseVNode("div", _hoisted_5$6, [
@@ -14398,7 +14433,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
14398
14433
  });
14399
14434
  const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
14400
14435
  const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
14401
- const _hoisted_3$c = ["onClick", "disabled"];
14436
+ const _hoisted_3$d = ["onClick", "disabled"];
14402
14437
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
14403
14438
  __name: "SearchResultsProductAddToCart",
14404
14439
  props: {
@@ -14433,7 +14468,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
14433
14468
  class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
14434
14469
  "data-cy": "lupa-add-to-cart",
14435
14470
  disabled: !inStockValue.value || loading.value
14436
- }, toDisplayString(label.value), 11, _hoisted_3$c)
14471
+ }, toDisplayString(label.value), 11, _hoisted_3$d)
14437
14472
  ])
14438
14473
  ]);
14439
14474
  };
@@ -14441,8 +14476,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
14441
14476
  });
14442
14477
  const _hoisted_1$m = ["innerHTML"];
14443
14478
  const _hoisted_2$i = { key: 0 };
14444
- const _hoisted_3$b = { key: 1 };
14445
- const _hoisted_4$7 = { class: "lupa-search-box-custom-label" };
14479
+ const _hoisted_3$c = { key: 1 };
14480
+ const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
14446
14481
  const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
14447
14482
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
14448
14483
  __name: "SearchResultsProductCustom",
@@ -14486,8 +14521,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
14486
14521
  key: 1,
14487
14522
  class: className.value
14488
14523
  }, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
14489
- !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
14490
- createBaseVNode("div", _hoisted_4$7, toDisplayString(label.value), 1),
14524
+ !label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
14525
+ createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
14491
14526
  createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
14492
14527
  ]))
14493
14528
  ], 16));
@@ -14529,8 +14564,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
14529
14564
  });
14530
14565
  const _hoisted_1$k = { id: "lupa-search-results-rating" };
14531
14566
  const _hoisted_2$h = ["innerHTML"];
14532
- const _hoisted_3$a = { class: "lupa-ratings" };
14533
- const _hoisted_4$6 = ["href"];
14567
+ const _hoisted_3$b = { class: "lupa-ratings" };
14568
+ const _hoisted_4$7 = ["href"];
14534
14569
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
14535
14570
  __name: "SearchResultsProductSingleStarRating",
14536
14571
  props: {
@@ -14564,11 +14599,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
14564
14599
  innerHTML: star.value,
14565
14600
  class: "lupa-rating lupa-rating-highlighted"
14566
14601
  }, null, 8, _hoisted_2$h),
14567
- createBaseVNode("div", _hoisted_3$a, toDisplayString(rating.value), 1),
14602
+ createBaseVNode("div", _hoisted_3$b, toDisplayString(rating.value), 1),
14568
14603
  createBaseVNode("a", {
14569
14604
  href: ratingLink.value,
14570
14605
  class: "lupa-total-ratings"
14571
- }, toDisplayString(totalRatings.value), 9, _hoisted_4$6)
14606
+ }, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
14572
14607
  ]);
14573
14608
  };
14574
14609
  }
@@ -14663,14 +14698,15 @@ const _hoisted_2$g = {
14663
14698
  key: 0,
14664
14699
  class: "lupa-out-of-stock"
14665
14700
  };
14666
- const _hoisted_3$9 = { class: "lupa-search-result-product-details-section" };
14701
+ const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
14667
14702
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
14668
14703
  __name: "SearchResultsProductCard",
14669
14704
  props: {
14670
14705
  product: {},
14671
14706
  options: {},
14672
14707
  isAdditionalPanel: { type: Boolean },
14673
- clickTrackingSettings: {}
14708
+ clickTrackingSettings: {},
14709
+ lupaClickTrackingType: {}
14674
14710
  },
14675
14711
  setup(__props) {
14676
14712
  const props = __props;
@@ -14694,11 +14730,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14694
14730
  });
14695
14731
  const imageElements = computed(() => {
14696
14732
  var _a, _b;
14697
- return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e) => e.type === DocumentElementType.IMAGE && !e.group)) != null ? _b : [];
14733
+ return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.type === DocumentElementType.IMAGE && !e2.group)) != null ? _b : [];
14698
14734
  });
14699
14735
  const detailElements = 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 labels = computed(() => {
14704
14740
  return props.options.labels;
@@ -14717,7 +14753,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14717
14753
  var _a;
14718
14754
  return [
14719
14755
  ...Array.from(
14720
- new Set((_a = props.options.elements) == null ? void 0 : _a.map((e) => e.group).filter((g) => Boolean(g)))
14756
+ new Set((_a = props.options.elements) == null ? void 0 : _a.map((e2) => e2.group).filter((g) => Boolean(g)))
14721
14757
  )
14722
14758
  ];
14723
14759
  });
@@ -14753,7 +14789,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14753
14789
  });
14754
14790
  const getGroupElements = (group) => {
14755
14791
  var _a, _b;
14756
- return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e) => e.group === group)) != null ? _b : [];
14792
+ return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.group === group)) != null ? _b : [];
14757
14793
  };
14758
14794
  onMounted(() => {
14759
14795
  checkIfIsInStock();
@@ -14762,16 +14798,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14762
14798
  isInStock.value = props.options.isInStock ? yield props.options.isInStock(props.product) : true;
14763
14799
  });
14764
14800
  const handleClick = () => {
14765
- var _a, _b, _c;
14801
+ var _a, _b, _c, _d;
14766
14802
  trackingStore.trackEvent({
14767
14803
  queryKey: props.options.queryKey,
14768
14804
  data: {
14769
14805
  itemId: id.value,
14770
14806
  searchQuery: query.value,
14771
- type: "itemClick",
14807
+ type: (_a = props.lupaClickTrackingType) != null ? _a : "itemClick",
14772
14808
  analytics: {
14773
14809
  type: clickTrackingType.value,
14774
- label: (_a = trackingLabel.value) != null ? _a : "",
14810
+ label: (_b = trackingLabel.value) != null ? _b : "",
14775
14811
  listLabel: trackingListLabel.value,
14776
14812
  items: [props.product],
14777
14813
  itemId: id.value
@@ -14779,7 +14815,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14779
14815
  options: { allowEmptySearchQuery: true }
14780
14816
  }
14781
14817
  });
14782
- (_c = (_b = searchResultOptions.value.callbacks) == null ? void 0 : _b.onProductClick) == null ? void 0 : _c.call(_b, {
14818
+ (_d = (_c = searchResultOptions.value.callbacks) == null ? void 0 : _c.onProductClick) == null ? void 0 : _d.call(_c, {
14783
14819
  queryKey: query.value,
14784
14820
  hasResults: true,
14785
14821
  productId: id.value
@@ -14840,7 +14876,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14840
14876
  }, null, 8, ["options"]),
14841
14877
  ((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
14842
14878
  ], 8, _hoisted_1$j),
14843
- createBaseVNode("div", _hoisted_3$9, [
14879
+ createBaseVNode("div", _hoisted_3$a, [
14844
14880
  (openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
14845
14881
  return openBlock(), createBlock(_sfc_main$l, {
14846
14882
  class: "lupa-search-results-product-element",
@@ -14883,11 +14919,11 @@ const _hoisted_1$i = {
14883
14919
  "data-cy": "lupa-search-results-similar-queries"
14884
14920
  };
14885
14921
  const _hoisted_2$f = { class: "lupa-similar-queries-label" };
14886
- const _hoisted_3$8 = {
14922
+ const _hoisted_3$9 = {
14887
14923
  class: "lupa-similar-query-label",
14888
14924
  "data-cy": "lupa-similar-query-label"
14889
14925
  };
14890
- const _hoisted_4$5 = ["onClick"];
14926
+ const _hoisted_4$6 = ["onClick"];
14891
14927
  const _hoisted_5$4 = ["innerHTML"];
14892
14928
  const _hoisted_6$3 = { key: 0 };
14893
14929
  const _hoisted_7$1 = {
@@ -14928,7 +14964,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
14928
14964
  createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
14929
14965
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
14930
14966
  return openBlock(), createElementBlock("div", { key: index }, [
14931
- createBaseVNode("div", _hoisted_3$8, [
14967
+ createBaseVNode("div", _hoisted_3$9, [
14932
14968
  createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
14933
14969
  createBaseVNode("span", {
14934
14970
  id: "lupa-similar-query-text-component",
@@ -14940,7 +14976,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
14940
14976
  innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
14941
14977
  }, null, 8, _hoisted_5$4),
14942
14978
  similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
14943
- ], 8, _hoisted_4$5)
14979
+ ], 8, _hoisted_4$6)
14944
14980
  ]),
14945
14981
  createBaseVNode("div", _hoisted_7$1, [
14946
14982
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
@@ -15117,7 +15153,7 @@ const _hoisted_1$e = {
15117
15153
  "data-cy": "lupa-search-results-similar-results"
15118
15154
  };
15119
15155
  const _hoisted_2$c = { class: "lupa-similar-results-label" };
15120
- const _hoisted_3$7 = {
15156
+ const _hoisted_3$8 = {
15121
15157
  class: "lupa-products",
15122
15158
  "data-cy": "lupa-products"
15123
15159
  };
@@ -15139,7 +15175,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
15139
15175
  return (_ctx, _cache) => {
15140
15176
  return openBlock(), createElementBlock("div", _hoisted_1$e, [
15141
15177
  createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
15142
- createBaseVNode("div", _hoisted_3$7, [
15178
+ createBaseVNode("div", _hoisted_3$8, [
15143
15179
  (openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
15144
15180
  return openBlock(), createBlock(_sfc_main$k, {
15145
15181
  style: normalizeStyle(_ctx.columnSize),
@@ -15158,12 +15194,12 @@ const _hoisted_2$b = {
15158
15194
  class: "lupa-products",
15159
15195
  "data-cy": "lupa-products"
15160
15196
  };
15161
- const _hoisted_3$6 = {
15197
+ const _hoisted_3$7 = {
15162
15198
  key: 1,
15163
15199
  class: "lupa-empty-results",
15164
15200
  "data-cy": "lupa-no-results-in-page"
15165
15201
  };
15166
- const _hoisted_4$4 = {
15202
+ const _hoisted_4$5 = {
15167
15203
  key: 3,
15168
15204
  class: "lupa-empty-results",
15169
15205
  "data-cy": "lupa-no-results"
@@ -15337,7 +15373,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
15337
15373
  }, null, 8, ["style", "product", "options"]);
15338
15374
  }), 128))
15339
15375
  ]),
15340
- unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
15376
+ unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
15341
15377
  createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
15342
15378
  _ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
15343
15379
  key: 0,
@@ -15355,7 +15391,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
15355
15391
  location: "bottom",
15356
15392
  sdkOptions: _ctx.options.options
15357
15393
  }, null, 8, ["options", "sdkOptions"])
15358
- ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
15394
+ ], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
15359
15395
  createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
15360
15396
  createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
15361
15397
  ])) : createCommentVNode("", true),
@@ -15383,7 +15419,7 @@ const _hoisted_2$a = {
15383
15419
  key: 0,
15384
15420
  class: "lupa-category-back"
15385
15421
  };
15386
- const _hoisted_3$5 = ["href"];
15422
+ const _hoisted_3$6 = ["href"];
15387
15423
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
15388
15424
  __name: "CategoryTopFilters",
15389
15425
  props: {
@@ -15422,7 +15458,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
15422
15458
  "data-cy": "lupa-category-back",
15423
15459
  href: backUrlLink.value,
15424
15460
  onClick: handleNavigationBack
15425
- }, toDisplayString(backTitle.value), 9, _hoisted_3$5)
15461
+ }, toDisplayString(backTitle.value), 9, _hoisted_3$6)
15426
15462
  ])) : createCommentVNode("", true),
15427
15463
  createVNode(_sfc_main$w, {
15428
15464
  class: "lupa-toolbar-mobile",
@@ -15443,8 +15479,8 @@ const _hoisted_2$9 = {
15443
15479
  id: "lupa-search-results",
15444
15480
  class: "top-layout-wrapper"
15445
15481
  };
15446
- const _hoisted_3$4 = { class: "search-content" };
15447
- const _hoisted_4$3 = { id: "lupa-search-results" };
15482
+ const _hoisted_3$5 = { class: "search-content" };
15483
+ const _hoisted_4$4 = { id: "lupa-search-results" };
15448
15484
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
15449
15485
  __name: "SearchResults",
15450
15486
  props: {
@@ -15684,7 +15720,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15684
15720
  ref: searchResultsFilters,
15685
15721
  onFilter: handleParamsChange
15686
15722
  }, null, 8, ["options"])) : createCommentVNode("", true),
15687
- createBaseVNode("div", _hoisted_3$4, [
15723
+ createBaseVNode("div", _hoisted_3$5, [
15688
15724
  createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
15689
15725
  createVNode(_sfc_main$S, {
15690
15726
  options: _ctx.options,
@@ -15707,7 +15743,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
15707
15743
  options: _ctx.options,
15708
15744
  "is-product-list": (_d = _ctx.isProductList) != null ? _d : false
15709
15745
  }, null, 8, ["options", "is-product-list"]),
15710
- createBaseVNode("div", _hoisted_4$3, [
15746
+ createBaseVNode("div", _hoisted_4$4, [
15711
15747
  showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
15712
15748
  key: 0,
15713
15749
  options: (_e = _ctx.options.filters) != null ? _e : {},
@@ -16159,7 +16195,7 @@ lodash$1.exports;
16159
16195
  return types;
16160
16196
  }
16161
16197
  return freeProcess && freeProcess.binding && freeProcess.binding("util");
16162
- } catch (e) {
16198
+ } catch (e2) {
16163
16199
  }
16164
16200
  }();
16165
16201
  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;
@@ -16531,7 +16567,7 @@ lodash$1.exports;
16531
16567
  var func = getNative(Object2, "defineProperty");
16532
16568
  func({}, "", {});
16533
16569
  return func;
16534
- } catch (e) {
16570
+ } catch (e2) {
16535
16571
  }
16536
16572
  }();
16537
16573
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
@@ -18563,7 +18599,7 @@ lodash$1.exports;
18563
18599
  try {
18564
18600
  value[symToStringTag] = undefined$1;
18565
18601
  var unmasked = true;
18566
- } catch (e) {
18602
+ } catch (e2) {
18567
18603
  }
18568
18604
  var result2 = nativeObjectToString.call(value);
18569
18605
  if (unmasked) {
@@ -18920,11 +18956,11 @@ lodash$1.exports;
18920
18956
  if (func != null) {
18921
18957
  try {
18922
18958
  return funcToString.call(func);
18923
- } catch (e) {
18959
+ } catch (e2) {
18924
18960
  }
18925
18961
  try {
18926
18962
  return func + "";
18927
- } catch (e) {
18963
+ } catch (e2) {
18928
18964
  }
18929
18965
  }
18930
18966
  return "";
@@ -20611,8 +20647,8 @@ lodash$1.exports;
20611
20647
  var attempt = baseRest(function(func, args) {
20612
20648
  try {
20613
20649
  return apply(func, undefined$1, args);
20614
- } catch (e) {
20615
- return isError(e) ? e : new Error2(e);
20650
+ } catch (e2) {
20651
+ return isError(e2) ? e2 : new Error2(e2);
20616
20652
  }
20617
20653
  });
20618
20654
  var bindAll = flatRest(function(object, methodNames) {
@@ -21755,8 +21791,8 @@ var Carousel = defineComponent({
21755
21791
  const tolerance = Math.sign(dragged.x) * 0.4;
21756
21792
  const draggedSlides = Math.round(dragged.x / slideWidth.value + tolerance) * direction;
21757
21793
  if (draggedSlides && !isTouch) {
21758
- const captureClick = (e) => {
21759
- e.stopPropagation();
21794
+ const captureClick = (e2) => {
21795
+ e2.stopPropagation();
21760
21796
  window.removeEventListener("click", captureClick, true);
21761
21797
  };
21762
21798
  window.addEventListener("click", captureClick, true);
@@ -22060,9 +22096,18 @@ var Slide = defineComponent({
22060
22096
  const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
22061
22097
  const _hoisted_2$6 = {
22062
22098
  key: 0,
22099
+ class: "lupa-recommendation-section-title"
22100
+ };
22101
+ const _hoisted_3$4 = {
22102
+ key: 1,
22063
22103
  class: "lupa-recommended-products",
22064
22104
  "data-cy": "lupa-recommended-products"
22065
22105
  };
22106
+ const _hoisted_4$3 = {
22107
+ key: 1,
22108
+ class: "lupa-products",
22109
+ "data-cy": "lupa-products"
22110
+ };
22066
22111
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22067
22112
  __name: "Recommendations",
22068
22113
  props: {
@@ -22071,6 +22116,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22071
22116
  setup(__props, { expose: __expose }) {
22072
22117
  const props = __props;
22073
22118
  const optionsStore = useOptionsStore();
22119
+ const searchResultStore = useSearchResultStore();
22120
+ const screenStore = useScreenStore();
22121
+ const { columnCount } = storeToRefs(searchResultStore);
22074
22122
  const recommendations2 = ref([]);
22075
22123
  const recommendationsType = ref(
22076
22124
  "recommendations_lupasearch"
@@ -22087,15 +22135,35 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22087
22135
  eventLabel: recommendationsType.value
22088
22136
  };
22089
22137
  });
22138
+ const layoutType = computed(() => {
22139
+ var _a;
22140
+ return (_a = props.options.layoutType) != null ? _a : "carousel";
22141
+ });
22142
+ const columnSize = computed(() => `width: ${100 / columnCount.value}%`);
22143
+ const title = computed(() => {
22144
+ var _a;
22145
+ return (_a = props.options.recommendationLabels.title) != null ? _a : "";
22146
+ });
22090
22147
  onMounted(() => {
22091
22148
  loadRecommendations();
22149
+ window.addEventListener("resize", handleResize);
22150
+ handleResize();
22092
22151
  optionsStore.setSearchResultOptions({
22093
22152
  options: props.options
22094
22153
  });
22095
22154
  });
22155
+ onBeforeUnmount(() => {
22156
+ window.removeEventListener("resize", handleResize);
22157
+ });
22096
22158
  const getProductKeyAction = (index, product) => {
22097
22159
  return getProductKey(index.toString(), product, props.options.idKey);
22098
22160
  };
22161
+ const handleResize = () => {
22162
+ const doc2 = document.documentElement;
22163
+ doc2.style.setProperty("--lupa-full-height", `${window.innerHeight}px`);
22164
+ screenStore.setScreenWidth({ width: window.innerWidth });
22165
+ searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
22166
+ };
22099
22167
  const loadRecommendations = () => {
22100
22168
  var _a, _b, _c, _d, _e;
22101
22169
  if ((_a = props.options.abTesting) == null ? void 0 : _a.enabled) {
@@ -22137,6 +22205,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22137
22205
  const result = yield LupaSearchSdk.recommend(
22138
22206
  props.options.queryKey,
22139
22207
  props.options.itemId,
22208
+ props.options.filters,
22140
22209
  props.options.options
22141
22210
  );
22142
22211
  if (!result.success) {
@@ -22150,8 +22219,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22150
22219
  __expose({ fetch: fetch2 });
22151
22220
  return (_ctx, _cache) => {
22152
22221
  return openBlock(), createElementBlock("div", _hoisted_1$8, [
22153
- !loading.value ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
22154
- createVNode(unref(Carousel), mergeProps(carouselOptions.value, { "wrap-around": true }), {
22222
+ title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
22223
+ !loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
22224
+ layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
22155
22225
  addons: withCtx(() => [
22156
22226
  createVNode(unref(Navigation))
22157
22227
  ]),
@@ -22172,7 +22242,17 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
22172
22242
  }), 128))
22173
22243
  ]),
22174
22244
  _: 1
22175
- }, 16)
22245
+ }, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
22246
+ (openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
22247
+ return openBlock(), createBlock(_sfc_main$k, {
22248
+ style: normalizeStyle(columnSize.value),
22249
+ key: getProductKeyAction(index, product),
22250
+ product,
22251
+ options: _ctx.options,
22252
+ "lupa-click-tracking-type": `recommendedItemClick`
22253
+ }, null, 8, ["style", "product", "options"]);
22254
+ }), 128))
22255
+ ]))
22176
22256
  ])) : createCommentVNode("", true)
22177
22257
  ]);
22178
22258
  };
@@ -22285,9 +22365,9 @@ const suggestSearchChatPhrases = (options, request, chatSettings) => __async(voi
22285
22365
  const errors = yield res.json();
22286
22366
  (_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
22287
22367
  return { success: false, errors };
22288
- } catch (e) {
22289
- (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e);
22290
- return { success: false, errors: [e] };
22368
+ } catch (e2) {
22369
+ (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
22370
+ return { success: false, errors: [e2] };
22291
22371
  }
22292
22372
  });
22293
22373
  const suggestPhraseAlternatives = (options, request, chatSettings) => __async(void 0, null, function* () {
@@ -22309,9 +22389,9 @@ const suggestPhraseAlternatives = (options, request, chatSettings) => __async(vo
22309
22389
  const errors = yield res.json();
22310
22390
  (_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
22311
22391
  return { success: false, errors };
22312
- } catch (e) {
22313
- (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e);
22314
- return { success: false, errors: [e] };
22392
+ } catch (e2) {
22393
+ (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
22394
+ return { success: false, errors: [e2] };
22315
22395
  }
22316
22396
  });
22317
22397
  const suggestBestProductMatches = (options, request, chatSettings) => __async(void 0, null, function* () {
@@ -22330,9 +22410,9 @@ const suggestBestProductMatches = (options, request, chatSettings) => __async(vo
22330
22410
  const errors = yield res.json();
22331
22411
  (_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
22332
22412
  return { success: false, errors };
22333
- } catch (e) {
22334
- (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e);
22335
- return { success: false, errors: [e] };
22413
+ } catch (e2) {
22414
+ (_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
22415
+ return { success: false, errors: [e2] };
22336
22416
  }
22337
22417
  });
22338
22418
  const prepareChatHistory = (chatLog) => {
@@ -23155,7 +23235,7 @@ lodash.exports;
23155
23235
  return types;
23156
23236
  }
23157
23237
  return freeProcess && freeProcess.binding && freeProcess.binding("util");
23158
- } catch (e) {
23238
+ } catch (e2) {
23159
23239
  }
23160
23240
  }();
23161
23241
  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;
@@ -23527,7 +23607,7 @@ lodash.exports;
23527
23607
  var func = getNative(Object2, "defineProperty");
23528
23608
  func({}, "", {});
23529
23609
  return func;
23530
- } catch (e) {
23610
+ } catch (e2) {
23531
23611
  }
23532
23612
  }();
23533
23613
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
@@ -25559,7 +25639,7 @@ lodash.exports;
25559
25639
  try {
25560
25640
  value[symToStringTag] = undefined$1;
25561
25641
  var unmasked = true;
25562
- } catch (e) {
25642
+ } catch (e2) {
25563
25643
  }
25564
25644
  var result2 = nativeObjectToString.call(value);
25565
25645
  if (unmasked) {
@@ -25916,11 +25996,11 @@ lodash.exports;
25916
25996
  if (func != null) {
25917
25997
  try {
25918
25998
  return funcToString.call(func);
25919
- } catch (e) {
25999
+ } catch (e2) {
25920
26000
  }
25921
26001
  try {
25922
26002
  return func + "";
25923
- } catch (e) {
26003
+ } catch (e2) {
25924
26004
  }
25925
26005
  }
25926
26006
  return "";
@@ -27607,8 +27687,8 @@ lodash.exports;
27607
27687
  var attempt = baseRest(function(func, args) {
27608
27688
  try {
27609
27689
  return apply(func, undefined$1, args);
27610
- } catch (e) {
27611
- return isError(e) ? e : new Error2(e);
27690
+ } catch (e2) {
27691
+ return isError(e2) ? e2 : new Error2(e2);
27612
27692
  }
27613
27693
  });
27614
27694
  var bindAll = flatRest(function(object, methodNames) {
@@ -28541,9 +28621,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
28541
28621
  const openSearchContainer = () => {
28542
28622
  isOpen.value = true;
28543
28623
  };
28544
- const checkCloseOnEscape = (e) => {
28624
+ const checkCloseOnEscape = (e2) => {
28545
28625
  var _a;
28546
- if (!["Escape", "Esc"].includes((_a = e.key) != null ? _a : "")) {
28626
+ if (!["Escape", "Esc"].includes((_a = e2.key) != null ? _a : "")) {
28547
28627
  return;
28548
28628
  }
28549
28629
  isOpen.value = false;
@@ -28686,7 +28766,7 @@ const toMaxDecimalPlaces = (value, maxDecimal = 2) => {
28686
28766
  }
28687
28767
  try {
28688
28768
  return +parseFloat(`${value}`).toFixed(maxDecimal);
28689
- } catch (e) {
28769
+ } catch (e2) {
28690
28770
  return `${value}`;
28691
28771
  }
28692
28772
  };
@@ -29006,22 +29086,30 @@ const SearchContainerConfigurationService = {
29006
29086
  getSearchBoxComponent,
29007
29087
  getSearchResultsComponent
29008
29088
  };
29009
- const app = {
29010
- box: {},
29011
- results: {},
29012
- productList: {},
29013
- searchContainer: {},
29014
- recommendations: {},
29015
- chat: {}
29016
- };
29017
- const tracking = (options) => {
29018
- setupTracking(options);
29089
+ const getMountElement = (element, mountingBehavior = "replace", mountToParent) => {
29090
+ const parent = element == null ? void 0 : element.parentElement;
29091
+ if (mountingBehavior === "replace") {
29092
+ let mountElement = element;
29093
+ if (mountToParent) {
29094
+ mountElement = parent;
29095
+ }
29096
+ return mountElement;
29097
+ }
29098
+ if (mountingBehavior === "append") {
29099
+ const newElement = document.createElement("div");
29100
+ element == null ? void 0 : element.append(newElement);
29101
+ return newElement;
29102
+ }
29103
+ if (mountingBehavior === "prepend") {
29104
+ const newElement = document.createElement("div");
29105
+ element == null ? void 0 : element.prepend(newElement);
29106
+ return newElement;
29107
+ }
29019
29108
  };
29020
- const createVue = (selector, rootComponent, options, mountToParent = false) => {
29109
+ const createVue = (selector, mountingBehavior = "replace", rootComponent, options, mountToParent = false) => {
29021
29110
  const pinia = initPinia();
29022
29111
  const element = typeof selector === "string" ? document.querySelector(selector) : selector;
29023
- const parent = element == null ? void 0 : element.parentElement;
29024
- const mountElement = mountToParent ? parent : element;
29112
+ const mountElement = getMountElement(element, mountingBehavior, mountToParent);
29025
29113
  if (!mountElement) {
29026
29114
  console.error(`Cannot mount LupaSearch component. Element "${selector}" not found`);
29027
29115
  return;
@@ -29038,6 +29126,17 @@ const createVue = (selector, rootComponent, options, mountToParent = false) => {
29038
29126
  }
29039
29127
  return { mountedApp, mountedComponent, props, app: app2, mountElement };
29040
29128
  };
29129
+ const app = {
29130
+ box: {},
29131
+ results: {},
29132
+ productList: {},
29133
+ searchContainer: {},
29134
+ recommendations: {},
29135
+ chat: {}
29136
+ };
29137
+ const tracking = (options) => {
29138
+ setupTracking(options);
29139
+ };
29041
29140
  const applySearchBox = (options, mountOptions) => {
29042
29141
  const existingInstance = app.box[options.inputSelector];
29043
29142
  if (existingInstance) {
@@ -29052,6 +29151,7 @@ const applySearchBox = (options, mountOptions) => {
29052
29151
  }
29053
29152
  const instance = createVue(
29054
29153
  options.inputSelector,
29154
+ mountOptions == null ? void 0 : mountOptions.mountingBehavior,
29055
29155
  _sfc_main$4,
29056
29156
  { searchBoxOptions: options },
29057
29157
  true
@@ -29080,9 +29180,14 @@ const searchResults = (options, mountOptions) => {
29080
29180
  }
29081
29181
  return;
29082
29182
  }
29083
- const instance = createVue(options.containerSelector, _sfc_main$3, {
29084
- searchResultsOptions: options
29085
- });
29183
+ const instance = createVue(
29184
+ options.containerSelector,
29185
+ mountOptions == null ? void 0 : mountOptions.mountingBehavior,
29186
+ _sfc_main$3,
29187
+ {
29188
+ searchResultsOptions: options
29189
+ }
29190
+ );
29086
29191
  if (!instance) {
29087
29192
  return;
29088
29193
  }
@@ -29100,9 +29205,14 @@ const productList = (options, mountOptions) => {
29100
29205
  }
29101
29206
  return;
29102
29207
  }
29103
- const instance = createVue(options.containerSelector, _sfc_main$2, {
29104
- productListOptions: options
29105
- });
29208
+ const instance = createVue(
29209
+ options.containerSelector,
29210
+ mountOptions == null ? void 0 : mountOptions.mountingBehavior,
29211
+ _sfc_main$2,
29212
+ {
29213
+ productListOptions: options
29214
+ }
29215
+ );
29106
29216
  if (!instance) {
29107
29217
  return;
29108
29218
  }
@@ -29132,7 +29242,7 @@ const searchContainer = (options, mountOptions) => {
29132
29242
  options: options.options
29133
29243
  });
29134
29244
  document.body.appendChild(host);
29135
- const instance = createVue(manager, _sfc_main$1, {
29245
+ const instance = createVue(manager, mountOptions == null ? void 0 : mountOptions.mountingBehavior, _sfc_main$1, {
29136
29246
  searchContainerOptions: options
29137
29247
  });
29138
29248
  if (!instance) {
@@ -29169,9 +29279,14 @@ const recommendations = (options, mountOptions) => {
29169
29279
  }
29170
29280
  return;
29171
29281
  }
29172
- const instance = createVue(options.containerSelector, _sfc_main, {
29173
- recommendationOptions: options
29174
- });
29282
+ const instance = createVue(
29283
+ options.containerSelector,
29284
+ mountOptions == null ? void 0 : mountOptions.mountingBehavior,
29285
+ _sfc_main,
29286
+ {
29287
+ recommendationOptions: options
29288
+ }
29289
+ );
29175
29290
  if (!instance) {
29176
29291
  return;
29177
29292
  }
@@ -29189,9 +29304,14 @@ const chat = (options, mountOptions) => {
29189
29304
  }
29190
29305
  return;
29191
29306
  }
29192
- const instance = createVue(options.displayOptions.containerSelector, _sfc_main$1o, {
29193
- options
29194
- });
29307
+ const instance = createVue(
29308
+ options.displayOptions.containerSelector,
29309
+ mountOptions == null ? void 0 : mountOptions.mountingBehavior,
29310
+ _sfc_main$1o,
29311
+ {
29312
+ options
29313
+ }
29314
+ );
29195
29315
  if (!instance) {
29196
29316
  return;
29197
29317
  }
@@ -29213,7 +29333,7 @@ const clearSearchBox = (selector) => {
29213
29333
  clearInstance(app.box[key].mountElement, app.box[key].app);
29214
29334
  }
29215
29335
  app.box = {};
29216
- } catch (e) {
29336
+ } catch (e2) {
29217
29337
  }
29218
29338
  };
29219
29339
  const clearSearchResults = (selector) => {
@@ -29226,7 +29346,7 @@ const clearSearchResults = (selector) => {
29226
29346
  clearInstance(app.results[key].mountElement, app.results[key].app);
29227
29347
  }
29228
29348
  app.results = {};
29229
- } catch (e) {
29349
+ } catch (e2) {
29230
29350
  }
29231
29351
  };
29232
29352
  const clearProductList = (selector) => {
@@ -29239,7 +29359,7 @@ const clearProductList = (selector) => {
29239
29359
  clearInstance(app.productList[key].mountElement, app.productList[key].app);
29240
29360
  }
29241
29361
  app.productList = {};
29242
- } catch (e) {
29362
+ } catch (e2) {
29243
29363
  }
29244
29364
  };
29245
29365
  const clearSearchContainer = (selector) => {
@@ -29252,7 +29372,7 @@ const clearSearchContainer = (selector) => {
29252
29372
  clearInstance(app.searchContainer[key].mountElement, app.searchContainer[key].app);
29253
29373
  }
29254
29374
  app.searchContainer = {};
29255
- } catch (e) {
29375
+ } catch (e2) {
29256
29376
  }
29257
29377
  };
29258
29378
  const clearRecommendations = (selector) => {
@@ -29265,7 +29385,7 @@ const clearRecommendations = (selector) => {
29265
29385
  clearInstance(app.recommendations[key].mountElement, app.recommendations[key].app);
29266
29386
  }
29267
29387
  app.recommendations = {};
29268
- } catch (e) {
29388
+ } catch (e2) {
29269
29389
  }
29270
29390
  };
29271
29391
  const clearChat = (selector) => {
@@ -29278,7 +29398,7 @@ const clearChat = (selector) => {
29278
29398
  clearInstance(app.chat[key].mountElement, app.chat[key].app);
29279
29399
  }
29280
29400
  app.chat = {};
29281
- } catch (e) {
29401
+ } catch (e2) {
29282
29402
  }
29283
29403
  };
29284
29404
  const lupaSearch = {