@getlupa/client 1.12.6 → 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.
- package/dist/lupaSearch.iife.js +796 -716
- package/dist/lupaSearch.js +796 -716
- package/dist/lupaSearch.mjs +796 -716
- package/dist/lupaSearch.umd.js +796 -716
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.js
CHANGED
|
@@ -5418,8 +5418,8 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
5418
5418
|
if (isSSR) {
|
|
5419
5419
|
return setupResult.then((resolvedResult) => {
|
|
5420
5420
|
handleSetupResult(instance, resolvedResult, isSSR);
|
|
5421
|
-
}).catch((
|
|
5422
|
-
handleError(
|
|
5421
|
+
}).catch((e2) => {
|
|
5422
|
+
handleError(e2, instance, 0);
|
|
5423
5423
|
});
|
|
5424
5424
|
} else {
|
|
5425
5425
|
instance.asyncDep = setupResult;
|
|
@@ -5759,7 +5759,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
5759
5759
|
}
|
|
5760
5760
|
try {
|
|
5761
5761
|
el[key] = value;
|
|
5762
|
-
} catch (
|
|
5762
|
+
} catch (e2) {
|
|
5763
5763
|
}
|
|
5764
5764
|
needRemove && el.removeAttribute(key);
|
|
5765
5765
|
}
|
|
@@ -5803,31 +5803,31 @@ let cachedNow = 0;
|
|
|
5803
5803
|
const p$1 = /* @__PURE__ */ Promise.resolve();
|
|
5804
5804
|
const getNow = () => cachedNow || (p$1.then(() => cachedNow = 0), cachedNow = Date.now());
|
|
5805
5805
|
function createInvoker(initialValue, instance) {
|
|
5806
|
-
const invoker = (
|
|
5807
|
-
if (!
|
|
5808
|
-
|
|
5809
|
-
} else if (
|
|
5806
|
+
const invoker = (e2) => {
|
|
5807
|
+
if (!e2._vts) {
|
|
5808
|
+
e2._vts = Date.now();
|
|
5809
|
+
} else if (e2._vts <= invoker.attached) {
|
|
5810
5810
|
return;
|
|
5811
5811
|
}
|
|
5812
5812
|
callWithAsyncErrorHandling(
|
|
5813
|
-
patchStopImmediatePropagation(
|
|
5813
|
+
patchStopImmediatePropagation(e2, invoker.value),
|
|
5814
5814
|
instance,
|
|
5815
5815
|
5,
|
|
5816
|
-
[
|
|
5816
|
+
[e2]
|
|
5817
5817
|
);
|
|
5818
5818
|
};
|
|
5819
5819
|
invoker.value = initialValue;
|
|
5820
5820
|
invoker.attached = getNow();
|
|
5821
5821
|
return invoker;
|
|
5822
5822
|
}
|
|
5823
|
-
function patchStopImmediatePropagation(
|
|
5823
|
+
function patchStopImmediatePropagation(e2, value) {
|
|
5824
5824
|
if (isArray(value)) {
|
|
5825
|
-
const originalStop =
|
|
5826
|
-
|
|
5827
|
-
originalStop.call(
|
|
5828
|
-
|
|
5825
|
+
const originalStop = e2.stopImmediatePropagation;
|
|
5826
|
+
e2.stopImmediatePropagation = () => {
|
|
5827
|
+
originalStop.call(e2);
|
|
5828
|
+
e2._stopped = true;
|
|
5829
5829
|
};
|
|
5830
|
-
return value.map((fn) => (
|
|
5830
|
+
return value.map((fn) => (e22) => !e22._stopped && fn && fn(e22));
|
|
5831
5831
|
} else {
|
|
5832
5832
|
return value;
|
|
5833
5833
|
}
|
|
@@ -6087,8 +6087,8 @@ function whenTransitionEnds(el, expectedType, explicitTimeout, resolve2) {
|
|
|
6087
6087
|
el.removeEventListener(endEvent, onEnd);
|
|
6088
6088
|
resolveIfNotStale();
|
|
6089
6089
|
};
|
|
6090
|
-
const onEnd = (
|
|
6091
|
-
if (
|
|
6090
|
+
const onEnd = (e2) => {
|
|
6091
|
+
if (e2.target === el && ++ended >= propCount) {
|
|
6092
6092
|
end();
|
|
6093
6093
|
}
|
|
6094
6094
|
};
|
|
@@ -6154,11 +6154,11 @@ const getModelAssigner = (vnode) => {
|
|
|
6154
6154
|
const fn = vnode.props["onUpdate:modelValue"] || false;
|
|
6155
6155
|
return isArray(fn) ? (value) => invokeArrayFns(fn, value) : fn;
|
|
6156
6156
|
};
|
|
6157
|
-
function onCompositionStart(
|
|
6158
|
-
|
|
6157
|
+
function onCompositionStart(e2) {
|
|
6158
|
+
e2.target.composing = true;
|
|
6159
6159
|
}
|
|
6160
|
-
function onCompositionEnd(
|
|
6161
|
-
const target =
|
|
6160
|
+
function onCompositionEnd(e2) {
|
|
6161
|
+
const target = e2.target;
|
|
6162
6162
|
if (target.composing) {
|
|
6163
6163
|
target.composing = false;
|
|
6164
6164
|
target.dispatchEvent(new Event("input"));
|
|
@@ -6168,8 +6168,8 @@ const vModelText = {
|
|
|
6168
6168
|
created(el, { modifiers: { lazy, trim, number } }, vnode) {
|
|
6169
6169
|
el._assign = getModelAssigner(vnode);
|
|
6170
6170
|
const castToNumber = number || vnode.props && vnode.props.type === "number";
|
|
6171
|
-
addEventListener(el, lazy ? "change" : "input", (
|
|
6172
|
-
if (
|
|
6171
|
+
addEventListener(el, lazy ? "change" : "input", (e2) => {
|
|
6172
|
+
if (e2.target.composing)
|
|
6173
6173
|
return;
|
|
6174
6174
|
let domValue = el.value;
|
|
6175
6175
|
if (trim) {
|
|
@@ -6274,17 +6274,17 @@ function getValue(el) {
|
|
|
6274
6274
|
}
|
|
6275
6275
|
const systemModifiers = ["ctrl", "shift", "alt", "meta"];
|
|
6276
6276
|
const modifierGuards = {
|
|
6277
|
-
stop: (
|
|
6278
|
-
prevent: (
|
|
6279
|
-
self: (
|
|
6280
|
-
ctrl: (
|
|
6281
|
-
shift: (
|
|
6282
|
-
alt: (
|
|
6283
|
-
meta: (
|
|
6284
|
-
left: (
|
|
6285
|
-
middle: (
|
|
6286
|
-
right: (
|
|
6287
|
-
exact: (
|
|
6277
|
+
stop: (e2) => e2.stopPropagation(),
|
|
6278
|
+
prevent: (e2) => e2.preventDefault(),
|
|
6279
|
+
self: (e2) => e2.target !== e2.currentTarget,
|
|
6280
|
+
ctrl: (e2) => !e2.ctrlKey,
|
|
6281
|
+
shift: (e2) => !e2.shiftKey,
|
|
6282
|
+
alt: (e2) => !e2.altKey,
|
|
6283
|
+
meta: (e2) => !e2.metaKey,
|
|
6284
|
+
left: (e2) => "button" in e2 && e2.button !== 0,
|
|
6285
|
+
middle: (e2) => "button" in e2 && e2.button !== 1,
|
|
6286
|
+
right: (e2) => "button" in e2 && e2.button !== 2,
|
|
6287
|
+
exact: (e2, modifiers) => systemModifiers.some((m2) => e2[`${m2}Key`] && !modifiers.includes(m2))
|
|
6288
6288
|
};
|
|
6289
6289
|
const withModifiers = (fn, modifiers) => {
|
|
6290
6290
|
return (event, ...args) => {
|
|
@@ -6353,15 +6353,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
6353
6353
|
var fulfilled = (value) => {
|
|
6354
6354
|
try {
|
|
6355
6355
|
step(generator.next(value));
|
|
6356
|
-
} catch (
|
|
6357
|
-
reject(
|
|
6356
|
+
} catch (e2) {
|
|
6357
|
+
reject(e2);
|
|
6358
6358
|
}
|
|
6359
6359
|
};
|
|
6360
6360
|
var rejected = (value) => {
|
|
6361
6361
|
try {
|
|
6362
6362
|
step(generator.throw(value));
|
|
6363
|
-
} catch (
|
|
6364
|
-
reject(
|
|
6363
|
+
} catch (e2) {
|
|
6364
|
+
reject(e2);
|
|
6365
6365
|
}
|
|
6366
6366
|
};
|
|
6367
6367
|
var step = (x) => x.done ? resolve2(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
@@ -6747,6 +6747,33 @@ const DEFAULT_PAGE_SIZE_SELECTION = [12, 24, 36, 60];
|
|
|
6747
6747
|
const LUPA_ROUTING_EVENT = "lupaRedirect";
|
|
6748
6748
|
const RATING_STAR_HTML = "☆";
|
|
6749
6749
|
const RESULT_ROOT_SELECTOR = "#lupa-search-results";
|
|
6750
|
+
/**
|
|
6751
|
+
* @preserve jquery-param (c) KNOWLEDGECODE | MIT
|
|
6752
|
+
*/
|
|
6753
|
+
var e = function(e2) {
|
|
6754
|
+
var n = [], o = function(e3, o2) {
|
|
6755
|
+
o2 = null == (o2 = "function" == typeof o2 ? o2() : o2) ? "" : o2, n[n.length] = encodeURIComponent(e3) + "=" + encodeURIComponent(o2);
|
|
6756
|
+
}, t = function(e3, r) {
|
|
6757
|
+
var f2, i, l;
|
|
6758
|
+
if (e3)
|
|
6759
|
+
if (Array.isArray(r))
|
|
6760
|
+
for (f2 = 0, i = r.length; f2 < i; f2++)
|
|
6761
|
+
t(e3 + "[" + ("object" == typeof r[f2] && r[f2] ? f2 : "") + "]", r[f2]);
|
|
6762
|
+
else if ("[object Object]" === Object.prototype.toString.call(r))
|
|
6763
|
+
for (l in r)
|
|
6764
|
+
t(e3 + "[" + l + "]", r[l]);
|
|
6765
|
+
else
|
|
6766
|
+
o(e3, r);
|
|
6767
|
+
else if (Array.isArray(r))
|
|
6768
|
+
for (f2 = 0, i = r.length; f2 < i; f2++)
|
|
6769
|
+
o(r[f2].name, r[f2].value);
|
|
6770
|
+
else
|
|
6771
|
+
for (l in r)
|
|
6772
|
+
t(l, r[l]);
|
|
6773
|
+
return n;
|
|
6774
|
+
};
|
|
6775
|
+
return t("", e2).join("&");
|
|
6776
|
+
};
|
|
6750
6777
|
const production = "https://api.lupasearch.com/v1/";
|
|
6751
6778
|
const staging = "https://api.staging.lupasearch.com/v1/";
|
|
6752
6779
|
const Env$1 = {
|
|
@@ -6769,15 +6796,15 @@ var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _argumen
|
|
|
6769
6796
|
function fulfilled(value) {
|
|
6770
6797
|
try {
|
|
6771
6798
|
step(generator.next(value));
|
|
6772
|
-
} catch (
|
|
6773
|
-
reject(
|
|
6799
|
+
} catch (e2) {
|
|
6800
|
+
reject(e2);
|
|
6774
6801
|
}
|
|
6775
6802
|
}
|
|
6776
6803
|
function rejected(value) {
|
|
6777
6804
|
try {
|
|
6778
6805
|
step(generator["throw"](value));
|
|
6779
|
-
} catch (
|
|
6780
|
-
reject(
|
|
6806
|
+
} catch (e2) {
|
|
6807
|
+
reject(e2);
|
|
6781
6808
|
}
|
|
6782
6809
|
}
|
|
6783
6810
|
function step(result) {
|
|
@@ -6835,8 +6862,12 @@ const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void
|
|
|
6835
6862
|
const errors = yield res.json();
|
|
6836
6863
|
return { success: false, errors };
|
|
6837
6864
|
});
|
|
6838
|
-
const recommendForSingleId = (queryKey, recommendForId, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6839
|
-
|
|
6865
|
+
const recommendForSingleId = (queryKey, recommendForId, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6866
|
+
let url = `${getApiUrl$1(environment, customBaseUrl)}recommendations/document/${recommendForId}?recommendationQueryKey=${queryKey}`;
|
|
6867
|
+
if (filters) {
|
|
6868
|
+
url += `&${e({ filters })}`;
|
|
6869
|
+
}
|
|
6870
|
+
const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
|
|
6840
6871
|
if (res.status < 400) {
|
|
6841
6872
|
const data = yield res.json();
|
|
6842
6873
|
return Object.assign(Object.assign({}, data), { success: true });
|
|
@@ -6844,9 +6875,13 @@ const recommendForSingleId = (queryKey, recommendForId, environment, customBaseU
|
|
|
6844
6875
|
const errors = yield res.json();
|
|
6845
6876
|
return { success: false, errors };
|
|
6846
6877
|
});
|
|
6847
|
-
const recommendForMultipleIds = (queryKey, recommendForIds, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6878
|
+
const recommendForMultipleIds = (queryKey, recommendForIds, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6848
6879
|
const limitedRecommendForIds = recommendForIds.slice(0, 20);
|
|
6849
|
-
|
|
6880
|
+
let url = `${getApiUrl$1(environment, customBaseUrl)}recommendations/documentsByMultipleIds?recommendationQueryKey=${queryKey}&itemId[]=${limitedRecommendForIds.join("&itemId[]=")}`;
|
|
6881
|
+
if (filters) {
|
|
6882
|
+
url += `&${e({ filters })}`;
|
|
6883
|
+
}
|
|
6884
|
+
const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
|
|
6850
6885
|
if (res.status < 400) {
|
|
6851
6886
|
const data = yield res.json();
|
|
6852
6887
|
return Object.assign(Object.assign({}, data), { success: true });
|
|
@@ -6854,8 +6889,8 @@ const recommendForMultipleIds = (queryKey, recommendForIds, environment, customB
|
|
|
6854
6889
|
const errors = yield res.json();
|
|
6855
6890
|
return { success: false, errors };
|
|
6856
6891
|
});
|
|
6857
|
-
const recommend = (queryKey, recommendForId, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6858
|
-
return Array.isArray(recommendForId) ? yield recommendForMultipleIds(queryKey, recommendForId, environment, customBaseUrl) : yield recommendForSingleId(queryKey, recommendForId, environment, customBaseUrl);
|
|
6892
|
+
const recommend = (queryKey, recommendForId, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6893
|
+
return Array.isArray(recommendForId) ? yield recommendForMultipleIds(queryKey, recommendForId, filters, environment, customBaseUrl) : yield recommendForSingleId(queryKey, recommendForId, filters, environment, customBaseUrl);
|
|
6859
6894
|
});
|
|
6860
6895
|
const suggest = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
6861
6896
|
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(query) }));
|
|
@@ -6873,7 +6908,7 @@ const track$1 = (queryKey, event, environment, customBaseUrl) => __awaiter(void
|
|
|
6873
6908
|
return { success: false };
|
|
6874
6909
|
}
|
|
6875
6910
|
return res.json();
|
|
6876
|
-
} catch (
|
|
6911
|
+
} catch (e2) {
|
|
6877
6912
|
return { success: false };
|
|
6878
6913
|
}
|
|
6879
6914
|
});
|
|
@@ -6901,8 +6936,8 @@ const LupaSearchSdk = {
|
|
|
6901
6936
|
track: (queryKey, eventData, options = null) => {
|
|
6902
6937
|
return track$1(queryKey, eventData, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
6903
6938
|
},
|
|
6904
|
-
recommend: (queryKey, recommendForId, options = null) => {
|
|
6905
|
-
return recommend(queryKey, recommendForId, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
6939
|
+
recommend: (queryKey, recommendForId, filters, options = null) => {
|
|
6940
|
+
return recommend(queryKey, recommendForId, filters, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
6906
6941
|
},
|
|
6907
6942
|
queryByIds: (queryKey, ids, options = null) => {
|
|
6908
6943
|
return queryByIds(queryKey, ids, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
@@ -7033,7 +7068,7 @@ const initAnalyticsTracking = (analyticsOptions) => {
|
|
|
7033
7068
|
} else {
|
|
7034
7069
|
window.sessionStorage.removeItem(TRACKING_ANALYTICS_KEY);
|
|
7035
7070
|
}
|
|
7036
|
-
} catch (
|
|
7071
|
+
} catch (e2) {
|
|
7037
7072
|
}
|
|
7038
7073
|
};
|
|
7039
7074
|
const initBaseTracking = (enabled) => {
|
|
@@ -7045,13 +7080,13 @@ const initBaseTracking = (enabled) => {
|
|
|
7045
7080
|
clearSessionTracking();
|
|
7046
7081
|
clearUserTracking();
|
|
7047
7082
|
}
|
|
7048
|
-
} catch (
|
|
7083
|
+
} catch (e2) {
|
|
7049
7084
|
}
|
|
7050
7085
|
};
|
|
7051
7086
|
const clearSessionTracking = () => {
|
|
7052
7087
|
try {
|
|
7053
7088
|
window.sessionStorage.removeItem(TRACKING_STORAGE_KEY);
|
|
7054
|
-
} catch (
|
|
7089
|
+
} catch (e2) {
|
|
7055
7090
|
}
|
|
7056
7091
|
};
|
|
7057
7092
|
const initSessionTracking = () => {
|
|
@@ -7061,7 +7096,7 @@ const initSessionTracking = () => {
|
|
|
7061
7096
|
}
|
|
7062
7097
|
const key = getRandomString(TRACKING_KEY_LENGTH);
|
|
7063
7098
|
window.sessionStorage.setItem(TRACKING_STORAGE_KEY, key);
|
|
7064
|
-
} catch (
|
|
7099
|
+
} catch (e2) {
|
|
7065
7100
|
}
|
|
7066
7101
|
};
|
|
7067
7102
|
const initUserTracking = (userKey) => {
|
|
@@ -7071,19 +7106,19 @@ const initUserTracking = (userKey) => {
|
|
|
7071
7106
|
}
|
|
7072
7107
|
const key = userKey || getRandomString(TRACKING_KEY_LENGTH);
|
|
7073
7108
|
window.localStorage.setItem(TRACKING_STORAGE_KEY, key);
|
|
7074
|
-
} catch (
|
|
7109
|
+
} catch (e2) {
|
|
7075
7110
|
}
|
|
7076
7111
|
};
|
|
7077
7112
|
const clearUserTracking = () => {
|
|
7078
7113
|
try {
|
|
7079
7114
|
window.localStorage.removeItem(TRACKING_STORAGE_KEY);
|
|
7080
|
-
} catch (
|
|
7115
|
+
} catch (e2) {
|
|
7081
7116
|
}
|
|
7082
7117
|
};
|
|
7083
7118
|
const isTrackingEnabled = () => {
|
|
7084
7119
|
try {
|
|
7085
7120
|
return Boolean(window.sessionStorage.getItem(TRACKING_STORAGE_KEY_BASE));
|
|
7086
|
-
} catch (
|
|
7121
|
+
} catch (e2) {
|
|
7087
7122
|
return false;
|
|
7088
7123
|
}
|
|
7089
7124
|
};
|
|
@@ -7091,7 +7126,7 @@ const getSessionKey = () => {
|
|
|
7091
7126
|
var _a;
|
|
7092
7127
|
try {
|
|
7093
7128
|
return (_a = window.sessionStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
|
|
7094
|
-
} catch (
|
|
7129
|
+
} catch (e2) {
|
|
7095
7130
|
return void 0;
|
|
7096
7131
|
}
|
|
7097
7132
|
};
|
|
@@ -7099,7 +7134,7 @@ const getUserKey = () => {
|
|
|
7099
7134
|
var _a;
|
|
7100
7135
|
try {
|
|
7101
7136
|
return (_a = window.localStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
|
|
7102
|
-
} catch (
|
|
7137
|
+
} catch (e2) {
|
|
7103
7138
|
return void 0;
|
|
7104
7139
|
}
|
|
7105
7140
|
};
|
|
@@ -7176,7 +7211,7 @@ const trackAnalyticsEvent = (data) => {
|
|
|
7176
7211
|
default:
|
|
7177
7212
|
sendUaAnalyticsEvent(data, options);
|
|
7178
7213
|
}
|
|
7179
|
-
} catch (
|
|
7214
|
+
} catch (e2) {
|
|
7180
7215
|
console.error("Unable to send an event to google analytics");
|
|
7181
7216
|
}
|
|
7182
7217
|
};
|
|
@@ -7552,7 +7587,7 @@ const retrieveHistory = () => {
|
|
|
7552
7587
|
try {
|
|
7553
7588
|
const historyString = window.localStorage.getItem(HISTORY_LOCAL_STORAGE_KEY);
|
|
7554
7589
|
return historyString ? JSON.parse(historyString) : [];
|
|
7555
|
-
} catch (
|
|
7590
|
+
} catch (e2) {
|
|
7556
7591
|
return [];
|
|
7557
7592
|
}
|
|
7558
7593
|
};
|
|
@@ -7562,7 +7597,7 @@ const saveHistory = (items) => {
|
|
|
7562
7597
|
HISTORY_LOCAL_STORAGE_KEY,
|
|
7563
7598
|
JSON.stringify(items.slice(0, HISTORY_MAX_ITEMS))
|
|
7564
7599
|
);
|
|
7565
|
-
} catch (
|
|
7600
|
+
} catch (e2) {
|
|
7566
7601
|
}
|
|
7567
7602
|
};
|
|
7568
7603
|
const useHistoryStore = defineStore("history", () => {
|
|
@@ -7767,7 +7802,7 @@ const parseParam = (key, params) => {
|
|
|
7767
7802
|
}
|
|
7768
7803
|
try {
|
|
7769
7804
|
return decodeURIComponent(value);
|
|
7770
|
-
} catch (
|
|
7805
|
+
} catch (e2) {
|
|
7771
7806
|
return void 0;
|
|
7772
7807
|
}
|
|
7773
7808
|
};
|
|
@@ -7904,7 +7939,7 @@ const getRelativePath = (link) => {
|
|
|
7904
7939
|
const url = new URL(link);
|
|
7905
7940
|
const partialUrl = url.toString().substring(url.origin.length);
|
|
7906
7941
|
return partialUrl.endsWith("/") ? partialUrl.slice(0, partialUrl.length - 1) : partialUrl;
|
|
7907
|
-
} catch (
|
|
7942
|
+
} catch (e2) {
|
|
7908
7943
|
return (link == null ? void 0 : link.endsWith("/")) ? link.slice(0, link.length - 1) : link;
|
|
7909
7944
|
}
|
|
7910
7945
|
};
|
|
@@ -8015,7 +8050,7 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
8015
8050
|
CACHE_KEY,
|
|
8016
8051
|
JSON.stringify({ redirections: redirections.value, savedAt: Date.now() })
|
|
8017
8052
|
);
|
|
8018
|
-
} catch (
|
|
8053
|
+
} catch (e2) {
|
|
8019
8054
|
}
|
|
8020
8055
|
};
|
|
8021
8056
|
const tryLoadFromLocalStorage = (config) => {
|
|
@@ -8028,7 +8063,7 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
8028
8063
|
redirections.value = data.redirections;
|
|
8029
8064
|
return true;
|
|
8030
8065
|
}
|
|
8031
|
-
} catch (
|
|
8066
|
+
} catch (e2) {
|
|
8032
8067
|
}
|
|
8033
8068
|
return false;
|
|
8034
8069
|
};
|
|
@@ -8052,7 +8087,7 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
8052
8087
|
}
|
|
8053
8088
|
redirections.value = result;
|
|
8054
8089
|
saveToLocalStorage();
|
|
8055
|
-
} catch (
|
|
8090
|
+
} catch (e2) {
|
|
8056
8091
|
}
|
|
8057
8092
|
});
|
|
8058
8093
|
const redirectOnKeywordIfConfigured = (input, routingBehavior = "direct-link") => {
|
|
@@ -8473,8 +8508,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
8473
8508
|
});
|
|
8474
8509
|
const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
|
|
8475
8510
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
8476
|
-
const _hoisted_3$
|
|
8477
|
-
const _hoisted_4$
|
|
8511
|
+
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
8512
|
+
const _hoisted_4$t = ["value"];
|
|
8478
8513
|
const _hoisted_5$i = ["aria-label", "placeholder"];
|
|
8479
8514
|
const _hoisted_6$9 = /* @__PURE__ */ createBaseVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
8480
8515
|
const _hoisted_7$7 = [
|
|
@@ -8575,13 +8610,13 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
8575
8610
|
onClick: clear2
|
|
8576
8611
|
}, null, 2)
|
|
8577
8612
|
]),
|
|
8578
|
-
createBaseVNode("div", _hoisted_3$
|
|
8613
|
+
createBaseVNode("div", _hoisted_3$B, [
|
|
8579
8614
|
createBaseVNode("input", {
|
|
8580
8615
|
class: "lupa-hint",
|
|
8581
8616
|
"aria-hidden": "true",
|
|
8582
8617
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
8583
8618
|
disabled: ""
|
|
8584
|
-
}, null, 8, _hoisted_4$
|
|
8619
|
+
}, null, 8, _hoisted_4$t),
|
|
8585
8620
|
withDirectives(createBaseVNode("input", mergeProps({
|
|
8586
8621
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
8587
8622
|
}, inputAttributes.value, {
|
|
@@ -8714,12 +8749,12 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
8714
8749
|
const goToResults = ({ query }) => {
|
|
8715
8750
|
emit2("go-to-results", { query });
|
|
8716
8751
|
};
|
|
8717
|
-
const handleKeyDown = (
|
|
8752
|
+
const handleKeyDown = (e2) => {
|
|
8718
8753
|
if (!hasHistory.value || highlightIndex.value < -1) {
|
|
8719
8754
|
return;
|
|
8720
8755
|
}
|
|
8721
|
-
if (
|
|
8722
|
-
|
|
8756
|
+
if (e2.key === "Enter") {
|
|
8757
|
+
e2.preventDefault();
|
|
8723
8758
|
goToResults({ query: history.value[highlightIndex.value] });
|
|
8724
8759
|
}
|
|
8725
8760
|
};
|
|
@@ -8760,12 +8795,12 @@ const _hoisted_2$P = {
|
|
|
8760
8795
|
"data-cy": "lupa-suggestion-value",
|
|
8761
8796
|
class: "lupa-suggestion-value"
|
|
8762
8797
|
};
|
|
8763
|
-
const _hoisted_3$
|
|
8798
|
+
const _hoisted_3$A = {
|
|
8764
8799
|
key: 2,
|
|
8765
8800
|
class: "lupa-suggestion-facet",
|
|
8766
8801
|
"data-cy": "lupa-suggestion-facet"
|
|
8767
8802
|
};
|
|
8768
|
-
const _hoisted_4$
|
|
8803
|
+
const _hoisted_4$s = {
|
|
8769
8804
|
class: "lupa-suggestion-facet-label",
|
|
8770
8805
|
"data-cy": "lupa-suggestion-facet-label"
|
|
8771
8806
|
};
|
|
@@ -8810,8 +8845,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
8810
8845
|
"data-cy": "lupa-suggestion-value",
|
|
8811
8846
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
8812
8847
|
}, null, 8, _hoisted_1$1b)) : (openBlock(), createElementBlock("div", _hoisted_2$P, toDisplayString(_ctx.suggestion.display), 1)),
|
|
8813
|
-
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
8814
|
-
createBaseVNode("span", _hoisted_4$
|
|
8848
|
+
_ctx.suggestion.facet ? (openBlock(), createElementBlock("div", _hoisted_3$A, [
|
|
8849
|
+
createBaseVNode("span", _hoisted_4$s, toDisplayString(facetLabel.value), 1),
|
|
8815
8850
|
createBaseVNode("span", _hoisted_5$h, toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
8816
8851
|
])) : createCommentVNode("", true)
|
|
8817
8852
|
]);
|
|
@@ -9050,9 +9085,9 @@ const computeImageUrl = (imageUrl, rootImageUrl) => {
|
|
|
9050
9085
|
}
|
|
9051
9086
|
return rootImageUrl ? joinUrlParts(rootImageUrl, mainUrl) : `/${mainUrl}`;
|
|
9052
9087
|
};
|
|
9053
|
-
const replaceImageWithPlaceholder = (
|
|
9088
|
+
const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
9054
9089
|
var _a;
|
|
9055
|
-
const targetImage =
|
|
9090
|
+
const targetImage = e2 == null ? void 0 : e2.target;
|
|
9056
9091
|
if (targetImage && !((_a = targetImage == null ? void 0 : targetImage.src) == null ? void 0 : _a.includes(placeholder))) {
|
|
9057
9092
|
targetImage.src = placeholder;
|
|
9058
9093
|
}
|
|
@@ -9101,8 +9136,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
9101
9136
|
var _a;
|
|
9102
9137
|
return Boolean((_a = hoverImages.value) == null ? void 0 : _a.length);
|
|
9103
9138
|
});
|
|
9104
|
-
const replaceWithPlaceholder = (
|
|
9105
|
-
replaceImageWithPlaceholder(
|
|
9139
|
+
const replaceWithPlaceholder = (e2) => {
|
|
9140
|
+
replaceImageWithPlaceholder(e2, placeholder.value);
|
|
9106
9141
|
};
|
|
9107
9142
|
const setNextHoverImage = () => {
|
|
9108
9143
|
hoverImageIndex.value = (hoverImageIndex.value + 1) % hoverImages.value.length;
|
|
@@ -9311,8 +9346,8 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
9311
9346
|
});
|
|
9312
9347
|
const _hoisted_1$14 = ["innerHTML"];
|
|
9313
9348
|
const _hoisted_2$M = { key: 0 };
|
|
9314
|
-
const _hoisted_3$
|
|
9315
|
-
const _hoisted_4$
|
|
9349
|
+
const _hoisted_3$z = { key: 1 };
|
|
9350
|
+
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
9316
9351
|
const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
|
|
9317
9352
|
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
9318
9353
|
__name: "SearchBoxProductCustom",
|
|
@@ -9344,8 +9379,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
9344
9379
|
key: 1,
|
|
9345
9380
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
9346
9381
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
9347
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
9348
|
-
createBaseVNode("div", _hoisted_4$
|
|
9382
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$z, [
|
|
9383
|
+
createBaseVNode("div", _hoisted_4$r, toDisplayString(label.value), 1),
|
|
9349
9384
|
createBaseVNode("div", _hoisted_5$g, toDisplayString(text.value), 1)
|
|
9350
9385
|
]))
|
|
9351
9386
|
], 16));
|
|
@@ -9603,7 +9638,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
9603
9638
|
});
|
|
9604
9639
|
const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
9605
9640
|
const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
|
|
9606
|
-
const _hoisted_3$
|
|
9641
|
+
const _hoisted_3$y = ["onClick", "disabled"];
|
|
9607
9642
|
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
9608
9643
|
__name: "SearchBoxProductAddToCart",
|
|
9609
9644
|
props: {
|
|
@@ -9639,7 +9674,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
9639
9674
|
"data-cy": "lupa-add-to-cart",
|
|
9640
9675
|
type: "button",
|
|
9641
9676
|
disabled: !inStockValue.value || loading.value
|
|
9642
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
9677
|
+
}, toDisplayString(label.value), 11, _hoisted_3$y)
|
|
9643
9678
|
])
|
|
9644
9679
|
]);
|
|
9645
9680
|
};
|
|
@@ -9735,8 +9770,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
9735
9770
|
}));
|
|
9736
9771
|
const _hoisted_1$10 = { class: "lupa-badge-title" };
|
|
9737
9772
|
const _hoisted_2$K = ["src"];
|
|
9738
|
-
const _hoisted_3$
|
|
9739
|
-
const _hoisted_4$
|
|
9773
|
+
const _hoisted_3$x = { key: 1 };
|
|
9774
|
+
const _hoisted_4$q = {
|
|
9740
9775
|
key: 0,
|
|
9741
9776
|
class: "lupa-badge-full-text"
|
|
9742
9777
|
};
|
|
@@ -9778,9 +9813,9 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
9778
9813
|
key: 0,
|
|
9779
9814
|
src: image.value
|
|
9780
9815
|
}, null, 8, _hoisted_2$K)) : createCommentVNode("", true),
|
|
9781
|
-
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
9816
|
+
hasTitleText.value && showTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$x, toDisplayString(_ctx.badge.titleText), 1)) : createCommentVNode("", true)
|
|
9782
9817
|
]),
|
|
9783
|
-
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
9818
|
+
hasAdditionalText.value ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(_ctx.badge.additionalText), 1)) : createCommentVNode("", true)
|
|
9784
9819
|
], 6);
|
|
9785
9820
|
};
|
|
9786
9821
|
}
|
|
@@ -9949,9 +9984,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
9949
9984
|
if (!props.options.elements) {
|
|
9950
9985
|
return [];
|
|
9951
9986
|
}
|
|
9952
|
-
return props.options.elements.filter((
|
|
9987
|
+
return props.options.elements.filter((e2) => {
|
|
9953
9988
|
var _a;
|
|
9954
|
-
return !
|
|
9989
|
+
return !e2.display || e2.display((_a = props.options.product) != null ? _a : {});
|
|
9955
9990
|
}).map((x) => {
|
|
9956
9991
|
var _a;
|
|
9957
9992
|
return __spreadProps2(__spreadValues2({}, x), {
|
|
@@ -9998,8 +10033,8 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValu
|
|
|
9998
10033
|
}));
|
|
9999
10034
|
const _hoisted_1$W = ["href"];
|
|
10000
10035
|
const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
|
|
10001
|
-
const _hoisted_3$
|
|
10002
|
-
const _hoisted_4$
|
|
10036
|
+
const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
|
|
10037
|
+
const _hoisted_4$p = {
|
|
10003
10038
|
key: 0,
|
|
10004
10039
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
10005
10040
|
};
|
|
@@ -10025,17 +10060,17 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
10025
10060
|
});
|
|
10026
10061
|
const imageElements = computed(() => {
|
|
10027
10062
|
var _a, _b;
|
|
10028
|
-
return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((
|
|
10063
|
+
return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _b : [];
|
|
10029
10064
|
});
|
|
10030
10065
|
const detailElements = computed(() => {
|
|
10031
10066
|
var _a, _b;
|
|
10032
10067
|
return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter(
|
|
10033
|
-
(
|
|
10068
|
+
(e2) => e2.type !== DocumentElementType.IMAGE && e2.type !== DocumentElementType.ADDTOCART
|
|
10034
10069
|
)) != null ? _b : [];
|
|
10035
10070
|
});
|
|
10036
10071
|
const addToCartElement = computed(() => {
|
|
10037
10072
|
var _a;
|
|
10038
|
-
return (_a = props.panelOptions.elements) == null ? void 0 : _a.find((
|
|
10073
|
+
return (_a = props.panelOptions.elements) == null ? void 0 : _a.find((e2) => e2.type === DocumentElementType.ADDTOCART);
|
|
10039
10074
|
});
|
|
10040
10075
|
const customDocumentHtmlAttributes = computed(() => {
|
|
10041
10076
|
var _a, _b, _c;
|
|
@@ -10074,7 +10109,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
10074
10109
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
10075
10110
|
}), 128))
|
|
10076
10111
|
]),
|
|
10077
|
-
createBaseVNode("div", _hoisted_3$
|
|
10112
|
+
createBaseVNode("div", _hoisted_3$w, [
|
|
10078
10113
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
10079
10114
|
var _a;
|
|
10080
10115
|
return openBlock(), createBlock(_sfc_main$16, {
|
|
@@ -10098,7 +10133,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
10098
10133
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
10099
10134
|
}), 128))
|
|
10100
10135
|
]),
|
|
10101
|
-
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
10136
|
+
addToCartElement.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
|
|
10102
10137
|
createVNode(_sfc_main$16, {
|
|
10103
10138
|
class: "lupa-search-box-product-element",
|
|
10104
10139
|
item: _ctx.item,
|
|
@@ -10484,11 +10519,11 @@ const _hoisted_1$T = {
|
|
|
10484
10519
|
id: "lupa-search-box-panel"
|
|
10485
10520
|
};
|
|
10486
10521
|
const _hoisted_2$G = ["data-cy"];
|
|
10487
|
-
const _hoisted_3$
|
|
10522
|
+
const _hoisted_3$v = {
|
|
10488
10523
|
key: 0,
|
|
10489
10524
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
10490
10525
|
};
|
|
10491
|
-
const _hoisted_4$
|
|
10526
|
+
const _hoisted_4$o = {
|
|
10492
10527
|
key: 1,
|
|
10493
10528
|
class: "lupa-panel-title"
|
|
10494
10529
|
};
|
|
@@ -10569,14 +10604,14 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
10569
10604
|
window.removeEventListener("keydown", handleNavigation);
|
|
10570
10605
|
searchBoxStore.resetHighlightIndex();
|
|
10571
10606
|
});
|
|
10572
|
-
const handleNavigation = (
|
|
10573
|
-
switch (
|
|
10607
|
+
const handleNavigation = (e2) => {
|
|
10608
|
+
switch (e2.key) {
|
|
10574
10609
|
case "ArrowDown":
|
|
10575
|
-
|
|
10610
|
+
e2.preventDefault();
|
|
10576
10611
|
highlightChange({ action: "down" });
|
|
10577
10612
|
break;
|
|
10578
10613
|
case "ArrowUp":
|
|
10579
|
-
|
|
10614
|
+
e2.preventDefault();
|
|
10580
10615
|
highlightChange({ action: "up" });
|
|
10581
10616
|
break;
|
|
10582
10617
|
}
|
|
@@ -10670,8 +10705,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
10670
10705
|
]),
|
|
10671
10706
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
10672
10707
|
}, [
|
|
10673
|
-
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
10674
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
10708
|
+
((_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),
|
|
10709
|
+
((_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),
|
|
10675
10710
|
panel.queryKey && canShowPanel(panel) ? (openBlock(), createBlock(resolveDynamicComponent(getComponent(panel.type)), {
|
|
10676
10711
|
key: 2,
|
|
10677
10712
|
panel,
|
|
@@ -10726,11 +10761,11 @@ const getElements = (selectors = []) => {
|
|
|
10726
10761
|
};
|
|
10727
10762
|
const bindSearchTriggers = (triggers = [], event) => {
|
|
10728
10763
|
const elements = getElements(triggers);
|
|
10729
|
-
elements.forEach((
|
|
10764
|
+
elements.forEach((e2) => e2 == null ? void 0 : e2.addEventListener(BIND_EVENT, event));
|
|
10730
10765
|
};
|
|
10731
10766
|
const unbindSearchTriggers = (triggers = [], event) => {
|
|
10732
10767
|
const elements = getElements(triggers);
|
|
10733
|
-
elements.forEach((
|
|
10768
|
+
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
10734
10769
|
};
|
|
10735
10770
|
const _hoisted_1$S = { id: "lupa-search-box" };
|
|
10736
10771
|
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
@@ -10809,12 +10844,12 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
10809
10844
|
window.removeEventListener("click", handleMouseClick);
|
|
10810
10845
|
unbindSearchTriggers(searchTriggers.value, handleCurrentValueSearch);
|
|
10811
10846
|
});
|
|
10812
|
-
const handleMouseClick = (
|
|
10847
|
+
const handleMouseClick = (e2) => {
|
|
10813
10848
|
var _a2, _b;
|
|
10814
10849
|
const el = document.getElementById("lupa-search-box");
|
|
10815
|
-
const elementClass = (_b = (_a2 =
|
|
10850
|
+
const elementClass = (_b = (_a2 = e2.target) == null ? void 0 : _a2.className) != null ? _b : "";
|
|
10816
10851
|
const hasLupaClass = typeof elementClass.includes == "function" && elementClass.includes("lupa-search-box");
|
|
10817
|
-
const isOutsideElement = el && !el.contains(
|
|
10852
|
+
const isOutsideElement = el && !el.contains(e2.target) && !hasLupaClass;
|
|
10818
10853
|
if (!isOutsideElement) {
|
|
10819
10854
|
return;
|
|
10820
10855
|
}
|
|
@@ -10825,20 +10860,20 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
10825
10860
|
opened.value = false;
|
|
10826
10861
|
suggestedValue.value = defaultSuggestedValue;
|
|
10827
10862
|
};
|
|
10828
|
-
const handleKeyDown = (
|
|
10863
|
+
const handleKeyDown = (e2) => {
|
|
10829
10864
|
var _a2, _b;
|
|
10830
10865
|
if (!opened.value) {
|
|
10831
10866
|
return;
|
|
10832
10867
|
}
|
|
10833
|
-
switch (
|
|
10868
|
+
switch (e2.key) {
|
|
10834
10869
|
case "Tab":
|
|
10835
10870
|
if ((_b = (_a2 = suggestedValue == null ? void 0 : suggestedValue.value) == null ? void 0 : _a2.item) == null ? void 0 : _b.suggestion) {
|
|
10836
|
-
|
|
10871
|
+
e2.preventDefault();
|
|
10837
10872
|
selectSuggestion(__spreadProps2(__spreadValues2({}, suggestedValue.value), { override: true }));
|
|
10838
10873
|
}
|
|
10839
10874
|
break;
|
|
10840
10875
|
case "Enter":
|
|
10841
|
-
|
|
10876
|
+
e2.preventDefault();
|
|
10842
10877
|
handleSearch();
|
|
10843
10878
|
resetValues();
|
|
10844
10879
|
break;
|
|
@@ -11095,11 +11130,11 @@ const _hoisted_2$E = {
|
|
|
11095
11130
|
key: 0,
|
|
11096
11131
|
"data-cy": "suggested-search-text-label"
|
|
11097
11132
|
};
|
|
11098
|
-
const _hoisted_3$
|
|
11133
|
+
const _hoisted_3$u = {
|
|
11099
11134
|
key: 1,
|
|
11100
11135
|
"data-cy": "did-you-mean-label"
|
|
11101
11136
|
};
|
|
11102
|
-
const _hoisted_4$
|
|
11137
|
+
const _hoisted_4$n = { key: 1 };
|
|
11103
11138
|
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
11104
11139
|
__name: "SearchResultsDidYouMean",
|
|
11105
11140
|
props: {
|
|
@@ -11142,7 +11177,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
11142
11177
|
]);
|
|
11143
11178
|
}), 128))
|
|
11144
11179
|
])) : createCommentVNode("", true),
|
|
11145
|
-
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
11180
|
+
didYouMeanValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
11146
11181
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
11147
11182
|
return openBlock(), createElementBlock("span", { key: index }, [
|
|
11148
11183
|
label.includes("{1}") ? (openBlock(), createElementBlock("span", {
|
|
@@ -11150,7 +11185,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
11150
11185
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
11151
11186
|
"data-cy": "did-you-mean-value",
|
|
11152
11187
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
11153
|
-
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$
|
|
11188
|
+
}, toDisplayString(didYouMeanValue.value) + " ", 1)) : (openBlock(), createElementBlock("span", _hoisted_4$n, toDisplayString(label) + " ", 1))
|
|
11154
11189
|
]);
|
|
11155
11190
|
}), 128))
|
|
11156
11191
|
])) : createCommentVNode("", true)
|
|
@@ -11196,11 +11231,11 @@ const _hoisted_1$P = {
|
|
|
11196
11231
|
"data-cy": "lupa-result-page-title"
|
|
11197
11232
|
};
|
|
11198
11233
|
const _hoisted_2$C = { key: 0 };
|
|
11199
|
-
const _hoisted_3$
|
|
11234
|
+
const _hoisted_3$t = {
|
|
11200
11235
|
key: 1,
|
|
11201
11236
|
class: "lupa-results-total-count"
|
|
11202
11237
|
};
|
|
11203
|
-
const _hoisted_4$
|
|
11238
|
+
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
11204
11239
|
const _hoisted_5$e = ["innerHTML"];
|
|
11205
11240
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
11206
11241
|
__name: "SearchResultsTitle",
|
|
@@ -11244,9 +11279,9 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
11244
11279
|
showSearchTitle.value ? (openBlock(), createElementBlock("h1", _hoisted_1$P, [
|
|
11245
11280
|
createTextVNode(toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
11246
11281
|
queryText.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, "'" + toDisplayString(queryText.value) + "'", 1)) : createCommentVNode("", true),
|
|
11247
|
-
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
11282
|
+
showProductCount.value ? (openBlock(), createElementBlock("span", _hoisted_3$t, [
|
|
11248
11283
|
createTextVNode("(" + toDisplayString(searchResultsCountLabel.value), 1),
|
|
11249
|
-
createBaseVNode("span", _hoisted_4$
|
|
11284
|
+
createBaseVNode("span", _hoisted_4$m, toDisplayString(unref(totalItems)), 1),
|
|
11250
11285
|
createTextVNode(")")
|
|
11251
11286
|
])) : createCommentVNode("", true)
|
|
11252
11287
|
])) : createCommentVNode("", true),
|
|
@@ -11268,7 +11303,7 @@ const _hoisted_2$B = {
|
|
|
11268
11303
|
class: "lupa-current-filter-label",
|
|
11269
11304
|
"data-cy": "lupa-current-filter-label"
|
|
11270
11305
|
};
|
|
11271
|
-
const _hoisted_3$
|
|
11306
|
+
const _hoisted_3$s = {
|
|
11272
11307
|
class: "lupa-current-filter-value",
|
|
11273
11308
|
"data-cy": "lupa-current-filter-value"
|
|
11274
11309
|
};
|
|
@@ -11290,7 +11325,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11290
11325
|
onClick: handleClick
|
|
11291
11326
|
}, "⨉"),
|
|
11292
11327
|
createBaseVNode("div", _hoisted_2$B, toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
11293
|
-
createBaseVNode("div", _hoisted_3$
|
|
11328
|
+
createBaseVNode("div", _hoisted_3$s, toDisplayString(_ctx.filter.value), 1)
|
|
11294
11329
|
]);
|
|
11295
11330
|
};
|
|
11296
11331
|
}
|
|
@@ -11300,11 +11335,11 @@ const _hoisted_2$A = {
|
|
|
11300
11335
|
key: 0,
|
|
11301
11336
|
class: "lupa-filter-count"
|
|
11302
11337
|
};
|
|
11303
|
-
const _hoisted_3$
|
|
11338
|
+
const _hoisted_3$r = {
|
|
11304
11339
|
key: 0,
|
|
11305
11340
|
class: "filter-values"
|
|
11306
11341
|
};
|
|
11307
|
-
const _hoisted_4$
|
|
11342
|
+
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
11308
11343
|
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11309
11344
|
__name: "CurrentFilters",
|
|
11310
11345
|
props: {
|
|
@@ -11387,8 +11422,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
11387
11422
|
class: normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
11388
11423
|
}, null, 2)) : createCommentVNode("", true)
|
|
11389
11424
|
]),
|
|
11390
|
-
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
11391
|
-
createBaseVNode("div", _hoisted_4$
|
|
11425
|
+
!_ctx.expandable || isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
11426
|
+
createBaseVNode("div", _hoisted_4$l, [
|
|
11392
11427
|
(openBlock(true), createElementBlock(Fragment, null, renderList(currentDisplayFilters.value, (filter) => {
|
|
11393
11428
|
return openBlock(), createBlock(_sfc_main$R, {
|
|
11394
11429
|
key: filter.key + "_" + filter.value,
|
|
@@ -11455,8 +11490,8 @@ const _hoisted_1$L = {
|
|
|
11455
11490
|
"data-cy": "lupa-category-filter"
|
|
11456
11491
|
};
|
|
11457
11492
|
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
11458
|
-
const _hoisted_3$
|
|
11459
|
-
const _hoisted_4$
|
|
11493
|
+
const _hoisted_3$q = ["href"];
|
|
11494
|
+
const _hoisted_4$k = ["href"];
|
|
11460
11495
|
const _hoisted_5$d = { class: "lupa-child-category-list" };
|
|
11461
11496
|
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11462
11497
|
__name: "CategoryFilter",
|
|
@@ -11551,7 +11586,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11551
11586
|
"data-cy": "lupa-category-back",
|
|
11552
11587
|
href: backUrlLink.value,
|
|
11553
11588
|
onClick: handleNavigationBack
|
|
11554
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
11589
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$q)) : createCommentVNode("", true)
|
|
11555
11590
|
]),
|
|
11556
11591
|
createBaseVNode("div", {
|
|
11557
11592
|
class: normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -11561,7 +11596,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11561
11596
|
href: parentUrlLink.value,
|
|
11562
11597
|
class: normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
11563
11598
|
onClick: handleNavigationParent
|
|
11564
|
-
}, toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
11599
|
+
}, toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
11565
11600
|
], 2),
|
|
11566
11601
|
createBaseVNode("div", _hoisted_5$d, [
|
|
11567
11602
|
(openBlock(true), createElementBlock(Fragment, null, renderList(categoryChildren.value, (child) => {
|
|
@@ -11581,8 +11616,8 @@ const _hoisted_1$K = {
|
|
|
11581
11616
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
11582
11617
|
};
|
|
11583
11618
|
const _hoisted_2$y = ["placeholder"];
|
|
11584
|
-
const _hoisted_3$
|
|
11585
|
-
const _hoisted_4$
|
|
11619
|
+
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
11620
|
+
const _hoisted_4$j = ["onClick"];
|
|
11586
11621
|
const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
|
|
11587
11622
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
11588
11623
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
@@ -11673,7 +11708,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11673
11708
|
}, null, 8, _hoisted_2$y)), [
|
|
11674
11709
|
[vModelText, termFilter.value]
|
|
11675
11710
|
]) : createCommentVNode("", true),
|
|
11676
|
-
createBaseVNode("div", _hoisted_3$
|
|
11711
|
+
createBaseVNode("div", _hoisted_3$p, [
|
|
11677
11712
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayValues.value, (item) => {
|
|
11678
11713
|
return openBlock(), createElementBlock("div", {
|
|
11679
11714
|
class: normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -11690,7 +11725,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11690
11725
|
createBaseVNode("span", _hoisted_7$6, toDisplayString(item.title), 1),
|
|
11691
11726
|
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_8$2, "(" + toDisplayString(item.count) + ")", 1)) : createCommentVNode("", true)
|
|
11692
11727
|
])
|
|
11693
|
-
], 10, _hoisted_4$
|
|
11728
|
+
], 10, _hoisted_4$j);
|
|
11694
11729
|
}), 128))
|
|
11695
11730
|
]),
|
|
11696
11731
|
displayShowMore.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -11705,50 +11740,50 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11705
11740
|
};
|
|
11706
11741
|
}
|
|
11707
11742
|
});
|
|
11708
|
-
function u(
|
|
11709
|
-
return -1 !== [null, void 0, false].indexOf(
|
|
11743
|
+
function u(e2) {
|
|
11744
|
+
return -1 !== [null, void 0, false].indexOf(e2);
|
|
11710
11745
|
}
|
|
11711
|
-
function c(
|
|
11712
|
-
return
|
|
11746
|
+
function c(e2) {
|
|
11747
|
+
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
11713
11748
|
}
|
|
11714
|
-
function p(
|
|
11749
|
+
function p(e2) {
|
|
11715
11750
|
var t = { exports: {} };
|
|
11716
|
-
return
|
|
11751
|
+
return e2(t, t.exports), t.exports;
|
|
11717
11752
|
}
|
|
11718
|
-
var d = p(function(
|
|
11719
|
-
|
|
11720
|
-
var
|
|
11721
|
-
function t2(
|
|
11722
|
-
return
|
|
11753
|
+
var d = p(function(e2, t) {
|
|
11754
|
+
e2.exports = function() {
|
|
11755
|
+
var e3 = ["decimals", "thousand", "mark", "prefix", "suffix", "encoder", "decoder", "negativeBefore", "negative", "edit", "undo"];
|
|
11756
|
+
function t2(e4) {
|
|
11757
|
+
return e4.split("").reverse().join("");
|
|
11723
11758
|
}
|
|
11724
|
-
function r(
|
|
11725
|
-
return
|
|
11759
|
+
function r(e4, t3) {
|
|
11760
|
+
return e4.substring(0, t3.length) === t3;
|
|
11726
11761
|
}
|
|
11727
|
-
function i(
|
|
11728
|
-
return
|
|
11762
|
+
function i(e4, t3) {
|
|
11763
|
+
return e4.slice(-1 * t3.length) === t3;
|
|
11729
11764
|
}
|
|
11730
|
-
function n(
|
|
11731
|
-
if ((
|
|
11765
|
+
function n(e4, t3, r2) {
|
|
11766
|
+
if ((e4[t3] || e4[r2]) && e4[t3] === e4[r2])
|
|
11732
11767
|
throw new Error(t3);
|
|
11733
11768
|
}
|
|
11734
|
-
function o(
|
|
11735
|
-
return "number" == typeof
|
|
11769
|
+
function o(e4) {
|
|
11770
|
+
return "number" == typeof e4 && isFinite(e4);
|
|
11736
11771
|
}
|
|
11737
|
-
function a(
|
|
11738
|
-
return
|
|
11772
|
+
function a(e4, t3) {
|
|
11773
|
+
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);
|
|
11739
11774
|
}
|
|
11740
|
-
function s(
|
|
11775
|
+
function s(e4, r2, i2, n2, s2, l2, u3, c3, p3, d2, f2, h2) {
|
|
11741
11776
|
var m2, v, g, b = h2, y = "", S = "";
|
|
11742
|
-
return l2 && (h2 = l2(h2)), !!o(h2) && (false !==
|
|
11777
|
+
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);
|
|
11743
11778
|
}
|
|
11744
|
-
function l(
|
|
11779
|
+
function l(e4, t3, n2, a2, s2, l2, u3, c3, p3, d2, f2, h2) {
|
|
11745
11780
|
var m2, v = "";
|
|
11746
11781
|
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));
|
|
11747
11782
|
}
|
|
11748
11783
|
function u2(t3) {
|
|
11749
11784
|
var r2, i2, o2, a2 = {};
|
|
11750
|
-
for (void 0 === t3.suffix && (t3.suffix = t3.postfix), r2 = 0; r2 <
|
|
11751
|
-
if (void 0 === (o2 = t3[i2 =
|
|
11785
|
+
for (void 0 === t3.suffix && (t3.suffix = t3.postfix), r2 = 0; r2 < e3.length; r2 += 1)
|
|
11786
|
+
if (void 0 === (o2 = t3[i2 = e3[r2]]))
|
|
11752
11787
|
"negative" !== i2 || a2.negativeBefore ? "mark" === i2 && "." !== a2.thousand ? a2[i2] = "." : a2[i2] = false : a2[i2] = "-";
|
|
11753
11788
|
else if ("decimals" === i2) {
|
|
11754
11789
|
if (!(o2 >= 0 && o2 < 8))
|
|
@@ -11767,385 +11802,385 @@ var d = p(function(e, t) {
|
|
|
11767
11802
|
}
|
|
11768
11803
|
function c2(t3, r2, i2) {
|
|
11769
11804
|
var n2, o2 = [];
|
|
11770
|
-
for (n2 = 0; n2 <
|
|
11771
|
-
o2.push(t3[
|
|
11805
|
+
for (n2 = 0; n2 < e3.length; n2 += 1)
|
|
11806
|
+
o2.push(t3[e3[n2]]);
|
|
11772
11807
|
return o2.push(i2), r2.apply("", o2);
|
|
11773
11808
|
}
|
|
11774
|
-
function p2(
|
|
11809
|
+
function p2(e4) {
|
|
11775
11810
|
if (!(this instanceof p2))
|
|
11776
|
-
return new p2(
|
|
11777
|
-
"object" == typeof
|
|
11778
|
-
return c2(
|
|
11811
|
+
return new p2(e4);
|
|
11812
|
+
"object" == typeof e4 && (e4 = u2(e4), this.to = function(t3) {
|
|
11813
|
+
return c2(e4, s, t3);
|
|
11779
11814
|
}, this.from = function(t3) {
|
|
11780
|
-
return c2(
|
|
11815
|
+
return c2(e4, l, t3);
|
|
11781
11816
|
});
|
|
11782
11817
|
}
|
|
11783
11818
|
return p2;
|
|
11784
11819
|
}();
|
|
11785
11820
|
});
|
|
11786
|
-
var f = c(p(function(
|
|
11787
|
-
!function(
|
|
11788
|
-
function t2(
|
|
11789
|
-
return r(
|
|
11821
|
+
var f = c(p(function(e2, t) {
|
|
11822
|
+
!function(e3) {
|
|
11823
|
+
function t2(e4) {
|
|
11824
|
+
return r(e4) && "function" == typeof e4.from;
|
|
11790
11825
|
}
|
|
11791
|
-
function r(
|
|
11792
|
-
return "object" == typeof
|
|
11826
|
+
function r(e4) {
|
|
11827
|
+
return "object" == typeof e4 && "function" == typeof e4.to;
|
|
11793
11828
|
}
|
|
11794
|
-
function i(
|
|
11795
|
-
|
|
11829
|
+
function i(e4) {
|
|
11830
|
+
e4.parentElement.removeChild(e4);
|
|
11796
11831
|
}
|
|
11797
|
-
function n(
|
|
11798
|
-
return null !=
|
|
11832
|
+
function n(e4) {
|
|
11833
|
+
return null != e4;
|
|
11799
11834
|
}
|
|
11800
|
-
function o(
|
|
11801
|
-
|
|
11835
|
+
function o(e4) {
|
|
11836
|
+
e4.preventDefault();
|
|
11802
11837
|
}
|
|
11803
|
-
function a(
|
|
11804
|
-
return
|
|
11805
|
-
return !this[
|
|
11838
|
+
function a(e4) {
|
|
11839
|
+
return e4.filter(function(e5) {
|
|
11840
|
+
return !this[e5] && (this[e5] = true);
|
|
11806
11841
|
}, {});
|
|
11807
11842
|
}
|
|
11808
|
-
function s(
|
|
11809
|
-
return Math.round(
|
|
11843
|
+
function s(e4, t3) {
|
|
11844
|
+
return Math.round(e4 / t3) * t3;
|
|
11810
11845
|
}
|
|
11811
|
-
function l(
|
|
11812
|
-
var r2 =
|
|
11846
|
+
function l(e4, t3) {
|
|
11847
|
+
var r2 = e4.getBoundingClientRect(), i2 = e4.ownerDocument, n2 = i2.documentElement, o2 = g(i2);
|
|
11813
11848
|
return /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (o2.x = 0), t3 ? r2.top + o2.y - n2.clientTop : r2.left + o2.x - n2.clientLeft;
|
|
11814
11849
|
}
|
|
11815
|
-
function u2(
|
|
11816
|
-
return "number" == typeof
|
|
11850
|
+
function u2(e4) {
|
|
11851
|
+
return "number" == typeof e4 && !isNaN(e4) && isFinite(e4);
|
|
11817
11852
|
}
|
|
11818
|
-
function c2(
|
|
11819
|
-
r2 > 0 && (h2(
|
|
11820
|
-
m2(
|
|
11853
|
+
function c2(e4, t3, r2) {
|
|
11854
|
+
r2 > 0 && (h2(e4, t3), setTimeout(function() {
|
|
11855
|
+
m2(e4, t3);
|
|
11821
11856
|
}, r2));
|
|
11822
11857
|
}
|
|
11823
|
-
function p2(
|
|
11824
|
-
return Math.max(Math.min(
|
|
11858
|
+
function p2(e4) {
|
|
11859
|
+
return Math.max(Math.min(e4, 100), 0);
|
|
11825
11860
|
}
|
|
11826
|
-
function d2(
|
|
11827
|
-
return Array.isArray(
|
|
11861
|
+
function d2(e4) {
|
|
11862
|
+
return Array.isArray(e4) ? e4 : [e4];
|
|
11828
11863
|
}
|
|
11829
|
-
function f2(
|
|
11830
|
-
var t3 = (
|
|
11864
|
+
function f2(e4) {
|
|
11865
|
+
var t3 = (e4 = String(e4)).split(".");
|
|
11831
11866
|
return t3.length > 1 ? t3[1].length : 0;
|
|
11832
11867
|
}
|
|
11833
|
-
function h2(
|
|
11834
|
-
|
|
11868
|
+
function h2(e4, t3) {
|
|
11869
|
+
e4.classList && !/\s/.test(t3) ? e4.classList.add(t3) : e4.className += " " + t3;
|
|
11835
11870
|
}
|
|
11836
|
-
function m2(
|
|
11837
|
-
|
|
11871
|
+
function m2(e4, t3) {
|
|
11872
|
+
e4.classList && !/\s/.test(t3) ? e4.classList.remove(t3) : e4.className = e4.className.replace(new RegExp("(^|\\b)" + t3.split(" ").join("|") + "(\\b|$)", "gi"), " ");
|
|
11838
11873
|
}
|
|
11839
|
-
function v(
|
|
11840
|
-
return
|
|
11874
|
+
function v(e4, t3) {
|
|
11875
|
+
return e4.classList ? e4.classList.contains(t3) : new RegExp("\\b" + t3 + "\\b").test(e4.className);
|
|
11841
11876
|
}
|
|
11842
|
-
function g(
|
|
11843
|
-
var t3 = void 0 !== window.pageXOffset, r2 = "CSS1Compat" === (
|
|
11844
|
-
return { x: t3 ? window.pageXOffset : r2 ?
|
|
11877
|
+
function g(e4) {
|
|
11878
|
+
var t3 = void 0 !== window.pageXOffset, r2 = "CSS1Compat" === (e4.compatMode || "");
|
|
11879
|
+
return { x: t3 ? window.pageXOffset : r2 ? e4.documentElement.scrollLeft : e4.body.scrollLeft, y: t3 ? window.pageYOffset : r2 ? e4.documentElement.scrollTop : e4.body.scrollTop };
|
|
11845
11880
|
}
|
|
11846
11881
|
function b() {
|
|
11847
11882
|
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" };
|
|
11848
11883
|
}
|
|
11849
11884
|
function y() {
|
|
11850
|
-
var
|
|
11885
|
+
var e4 = false;
|
|
11851
11886
|
try {
|
|
11852
11887
|
var t3 = Object.defineProperty({}, "passive", { get: function() {
|
|
11853
|
-
|
|
11888
|
+
e4 = true;
|
|
11854
11889
|
} });
|
|
11855
11890
|
window.addEventListener("test", null, t3);
|
|
11856
|
-
} catch (
|
|
11891
|
+
} catch (e5) {
|
|
11857
11892
|
}
|
|
11858
|
-
return
|
|
11893
|
+
return e4;
|
|
11859
11894
|
}
|
|
11860
11895
|
function S() {
|
|
11861
11896
|
return window.CSS && CSS.supports && CSS.supports("touch-action", "none");
|
|
11862
11897
|
}
|
|
11863
|
-
function x(
|
|
11864
|
-
return 100 / (t3 -
|
|
11898
|
+
function x(e4, t3) {
|
|
11899
|
+
return 100 / (t3 - e4);
|
|
11865
11900
|
}
|
|
11866
|
-
function w(
|
|
11867
|
-
return 100 * t3 / (
|
|
11901
|
+
function w(e4, t3, r2) {
|
|
11902
|
+
return 100 * t3 / (e4[r2 + 1] - e4[r2]);
|
|
11868
11903
|
}
|
|
11869
|
-
function E(
|
|
11870
|
-
return w(
|
|
11904
|
+
function E(e4, t3) {
|
|
11905
|
+
return w(e4, e4[0] < 0 ? t3 + Math.abs(e4[0]) : t3 - e4[0], 0);
|
|
11871
11906
|
}
|
|
11872
|
-
function P(
|
|
11873
|
-
return t3 * (
|
|
11907
|
+
function P(e4, t3) {
|
|
11908
|
+
return t3 * (e4[1] - e4[0]) / 100 + e4[0];
|
|
11874
11909
|
}
|
|
11875
|
-
function N(
|
|
11876
|
-
for (var r2 = 1;
|
|
11910
|
+
function N(e4, t3) {
|
|
11911
|
+
for (var r2 = 1; e4 >= t3[r2]; )
|
|
11877
11912
|
r2 += 1;
|
|
11878
11913
|
return r2;
|
|
11879
11914
|
}
|
|
11880
|
-
function C(
|
|
11881
|
-
if (r2 >=
|
|
11915
|
+
function C(e4, t3, r2) {
|
|
11916
|
+
if (r2 >= e4.slice(-1)[0])
|
|
11882
11917
|
return 100;
|
|
11883
|
-
var i2 = N(r2,
|
|
11918
|
+
var i2 = N(r2, e4), n2 = e4[i2 - 1], o2 = e4[i2], a2 = t3[i2 - 1], s2 = t3[i2];
|
|
11884
11919
|
return a2 + E([n2, o2], r2) / x(a2, s2);
|
|
11885
11920
|
}
|
|
11886
|
-
function k(
|
|
11921
|
+
function k(e4, t3, r2) {
|
|
11887
11922
|
if (r2 >= 100)
|
|
11888
|
-
return
|
|
11889
|
-
var i2 = N(r2, t3), n2 =
|
|
11923
|
+
return e4.slice(-1)[0];
|
|
11924
|
+
var i2 = N(r2, t3), n2 = e4[i2 - 1], o2 = e4[i2], a2 = t3[i2 - 1];
|
|
11890
11925
|
return P([n2, o2], (r2 - a2) * x(a2, t3[i2]));
|
|
11891
11926
|
}
|
|
11892
|
-
function V(
|
|
11927
|
+
function V(e4, t3, r2, i2) {
|
|
11893
11928
|
if (100 === i2)
|
|
11894
11929
|
return i2;
|
|
11895
|
-
var n2 = N(i2,
|
|
11896
|
-
return r2 ? i2 - o2 > (a2 - o2) / 2 ? a2 : o2 : t3[n2 - 1] ?
|
|
11930
|
+
var n2 = N(i2, e4), o2 = e4[n2 - 1], a2 = e4[n2];
|
|
11931
|
+
return r2 ? i2 - o2 > (a2 - o2) / 2 ? a2 : o2 : t3[n2 - 1] ? e4[n2 - 1] + s(i2 - e4[n2 - 1], t3[n2 - 1]) : i2;
|
|
11897
11932
|
}
|
|
11898
11933
|
var A, M;
|
|
11899
|
-
|
|
11934
|
+
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";
|
|
11900
11935
|
var L = function() {
|
|
11901
|
-
function
|
|
11936
|
+
function e4(e5, t3, r2) {
|
|
11902
11937
|
var i2;
|
|
11903
11938
|
this.xPct = [], this.xVal = [], this.xSteps = [], this.xNumSteps = [], this.xHighestCompleteStep = [], this.xSteps = [r2 || false], this.xNumSteps = [false], this.snap = t3;
|
|
11904
11939
|
var n2 = [];
|
|
11905
|
-
for (Object.keys(
|
|
11906
|
-
n2.push([d2(
|
|
11907
|
-
}), n2.sort(function(
|
|
11908
|
-
return
|
|
11940
|
+
for (Object.keys(e5).forEach(function(t4) {
|
|
11941
|
+
n2.push([d2(e5[t4]), t4]);
|
|
11942
|
+
}), n2.sort(function(e6, t4) {
|
|
11943
|
+
return e6[0][0] - t4[0][0];
|
|
11909
11944
|
}), i2 = 0; i2 < n2.length; i2++)
|
|
11910
11945
|
this.handleEntryPoint(n2[i2][1], n2[i2][0]);
|
|
11911
11946
|
for (this.xNumSteps = this.xSteps.slice(0), i2 = 0; i2 < this.xNumSteps.length; i2++)
|
|
11912
11947
|
this.handleStepPoint(i2, this.xNumSteps[i2]);
|
|
11913
11948
|
}
|
|
11914
|
-
return
|
|
11949
|
+
return e4.prototype.getDistance = function(e5) {
|
|
11915
11950
|
for (var t3 = [], r2 = 0; r2 < this.xNumSteps.length - 1; r2++)
|
|
11916
|
-
t3[r2] = w(this.xVal,
|
|
11951
|
+
t3[r2] = w(this.xVal, e5, r2);
|
|
11917
11952
|
return t3;
|
|
11918
|
-
},
|
|
11953
|
+
}, e4.prototype.getAbsoluteDistance = function(e5, t3, r2) {
|
|
11919
11954
|
var i2, n2 = 0;
|
|
11920
|
-
if (
|
|
11921
|
-
for (;
|
|
11955
|
+
if (e5 < this.xPct[this.xPct.length - 1])
|
|
11956
|
+
for (; e5 > this.xPct[n2 + 1]; )
|
|
11922
11957
|
n2++;
|
|
11923
11958
|
else
|
|
11924
|
-
|
|
11925
|
-
r2 ||
|
|
11959
|
+
e5 === this.xPct[this.xPct.length - 1] && (n2 = this.xPct.length - 2);
|
|
11960
|
+
r2 || e5 !== this.xPct[n2 + 1] || n2++, null === t3 && (t3 = []);
|
|
11926
11961
|
var o2 = 1, a2 = t3[n2], s2 = 0, l2 = 0, u3 = 0, c3 = 0;
|
|
11927
|
-
for (i2 = r2 ? (
|
|
11962
|
+
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; )
|
|
11928
11963
|
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;
|
|
11929
|
-
return
|
|
11930
|
-
},
|
|
11931
|
-
return
|
|
11932
|
-
},
|
|
11933
|
-
return k(this.xVal, this.xPct,
|
|
11934
|
-
},
|
|
11935
|
-
return
|
|
11936
|
-
},
|
|
11937
|
-
var i2 = N(
|
|
11938
|
-
return (100 ===
|
|
11939
|
-
},
|
|
11940
|
-
var t3 = N(
|
|
11964
|
+
return e5 + u3;
|
|
11965
|
+
}, e4.prototype.toStepping = function(e5) {
|
|
11966
|
+
return e5 = C(this.xVal, this.xPct, e5);
|
|
11967
|
+
}, e4.prototype.fromStepping = function(e5) {
|
|
11968
|
+
return k(this.xVal, this.xPct, e5);
|
|
11969
|
+
}, e4.prototype.getStep = function(e5) {
|
|
11970
|
+
return e5 = V(this.xPct, this.xSteps, this.snap, e5);
|
|
11971
|
+
}, e4.prototype.getDefaultStep = function(e5, t3, r2) {
|
|
11972
|
+
var i2 = N(e5, this.xPct);
|
|
11973
|
+
return (100 === e5 || t3 && e5 === this.xPct[i2 - 1]) && (i2 = Math.max(i2 - 1, 1)), (this.xVal[i2] - this.xVal[i2 - 1]) / r2;
|
|
11974
|
+
}, e4.prototype.getNearbySteps = function(e5) {
|
|
11975
|
+
var t3 = N(e5, this.xPct);
|
|
11941
11976
|
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] } };
|
|
11942
|
-
},
|
|
11943
|
-
var
|
|
11944
|
-
return Math.max.apply(null,
|
|
11945
|
-
},
|
|
11977
|
+
}, e4.prototype.countStepDecimals = function() {
|
|
11978
|
+
var e5 = this.xNumSteps.map(f2);
|
|
11979
|
+
return Math.max.apply(null, e5);
|
|
11980
|
+
}, e4.prototype.hasNoSize = function() {
|
|
11946
11981
|
return this.xVal[0] === this.xVal[this.xVal.length - 1];
|
|
11947
|
-
},
|
|
11948
|
-
return this.getStep(this.toStepping(
|
|
11949
|
-
},
|
|
11982
|
+
}, e4.prototype.convert = function(e5) {
|
|
11983
|
+
return this.getStep(this.toStepping(e5));
|
|
11984
|
+
}, e4.prototype.handleEntryPoint = function(e5, t3) {
|
|
11950
11985
|
var r2;
|
|
11951
|
-
if (!u2(r2 = "min" ===
|
|
11986
|
+
if (!u2(r2 = "min" === e5 ? 0 : "max" === e5 ? 100 : parseFloat(e5)) || !u2(t3[0]))
|
|
11952
11987
|
throw new Error("noUiSlider: 'range' value isn't numeric.");
|
|
11953
11988
|
this.xPct.push(r2), this.xVal.push(t3[0]);
|
|
11954
11989
|
var i2 = Number(t3[1]);
|
|
11955
11990
|
r2 ? this.xSteps.push(!isNaN(i2) && i2) : isNaN(i2) || (this.xSteps[0] = i2), this.xHighestCompleteStep.push(0);
|
|
11956
|
-
},
|
|
11991
|
+
}, e4.prototype.handleStepPoint = function(e5, t3) {
|
|
11957
11992
|
if (t3)
|
|
11958
|
-
if (this.xVal[
|
|
11959
|
-
this.xSteps[
|
|
11960
|
-
var r2 = (this.xVal[
|
|
11961
|
-
this.xHighestCompleteStep[
|
|
11993
|
+
if (this.xVal[e5] !== this.xVal[e5 + 1]) {
|
|
11994
|
+
this.xSteps[e5] = w([this.xVal[e5], this.xVal[e5 + 1]], t3, 0) / x(this.xPct[e5], this.xPct[e5 + 1]);
|
|
11995
|
+
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;
|
|
11996
|
+
this.xHighestCompleteStep[e5] = n2;
|
|
11962
11997
|
} else
|
|
11963
|
-
this.xSteps[
|
|
11964
|
-
},
|
|
11965
|
-
}(), U = { to: function(
|
|
11966
|
-
return void 0 ===
|
|
11998
|
+
this.xSteps[e5] = this.xHighestCompleteStep[e5] = this.xVal[e5];
|
|
11999
|
+
}, e4;
|
|
12000
|
+
}(), U = { to: function(e4) {
|
|
12001
|
+
return void 0 === e4 ? "" : e4.toFixed(2);
|
|
11967
12002
|
}, 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" };
|
|
11968
|
-
function j(
|
|
12003
|
+
function j(e4, t3) {
|
|
11969
12004
|
if (!u2(t3))
|
|
11970
12005
|
throw new Error("noUiSlider: 'step' is not numeric.");
|
|
11971
|
-
|
|
12006
|
+
e4.singleStep = t3;
|
|
11972
12007
|
}
|
|
11973
|
-
function F(
|
|
12008
|
+
function F(e4, t3) {
|
|
11974
12009
|
if (!u2(t3))
|
|
11975
12010
|
throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");
|
|
11976
|
-
|
|
12011
|
+
e4.keyboardPageMultiplier = t3;
|
|
11977
12012
|
}
|
|
11978
|
-
function T(
|
|
12013
|
+
function T(e4, t3) {
|
|
11979
12014
|
if (!u2(t3))
|
|
11980
12015
|
throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");
|
|
11981
|
-
|
|
12016
|
+
e4.keyboardMultiplier = t3;
|
|
11982
12017
|
}
|
|
11983
|
-
function z(
|
|
12018
|
+
function z(e4, t3) {
|
|
11984
12019
|
if (!u2(t3))
|
|
11985
12020
|
throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");
|
|
11986
|
-
|
|
12021
|
+
e4.keyboardDefaultStep = t3;
|
|
11987
12022
|
}
|
|
11988
|
-
function H(
|
|
12023
|
+
function H(e4, t3) {
|
|
11989
12024
|
if ("object" != typeof t3 || Array.isArray(t3))
|
|
11990
12025
|
throw new Error("noUiSlider: 'range' is not an object.");
|
|
11991
12026
|
if (void 0 === t3.min || void 0 === t3.max)
|
|
11992
12027
|
throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");
|
|
11993
|
-
|
|
12028
|
+
e4.spectrum = new L(t3, e4.snap || false, e4.singleStep);
|
|
11994
12029
|
}
|
|
11995
|
-
function q(
|
|
12030
|
+
function q(e4, t3) {
|
|
11996
12031
|
if (t3 = d2(t3), !Array.isArray(t3) || !t3.length)
|
|
11997
12032
|
throw new Error("noUiSlider: 'start' option is incorrect.");
|
|
11998
|
-
|
|
12033
|
+
e4.handles = t3.length, e4.start = t3;
|
|
11999
12034
|
}
|
|
12000
|
-
function R(
|
|
12035
|
+
function R(e4, t3) {
|
|
12001
12036
|
if ("boolean" != typeof t3)
|
|
12002
12037
|
throw new Error("noUiSlider: 'snap' option must be a boolean.");
|
|
12003
|
-
|
|
12038
|
+
e4.snap = t3;
|
|
12004
12039
|
}
|
|
12005
|
-
function B(
|
|
12040
|
+
function B(e4, t3) {
|
|
12006
12041
|
if ("boolean" != typeof t3)
|
|
12007
12042
|
throw new Error("noUiSlider: 'animate' option must be a boolean.");
|
|
12008
|
-
|
|
12043
|
+
e4.animate = t3;
|
|
12009
12044
|
}
|
|
12010
|
-
function _(
|
|
12045
|
+
function _(e4, t3) {
|
|
12011
12046
|
if ("number" != typeof t3)
|
|
12012
12047
|
throw new Error("noUiSlider: 'animationDuration' option must be a number.");
|
|
12013
|
-
|
|
12048
|
+
e4.animationDuration = t3;
|
|
12014
12049
|
}
|
|
12015
|
-
function $(
|
|
12050
|
+
function $(e4, t3) {
|
|
12016
12051
|
var r2, i2 = [false];
|
|
12017
12052
|
if ("lower" === t3 ? t3 = [true, false] : "upper" === t3 && (t3 = [false, true]), true === t3 || false === t3) {
|
|
12018
|
-
for (r2 = 1; r2 <
|
|
12053
|
+
for (r2 = 1; r2 < e4.handles; r2++)
|
|
12019
12054
|
i2.push(t3);
|
|
12020
12055
|
i2.push(false);
|
|
12021
12056
|
} else {
|
|
12022
|
-
if (!Array.isArray(t3) || !t3.length || t3.length !==
|
|
12057
|
+
if (!Array.isArray(t3) || !t3.length || t3.length !== e4.handles + 1)
|
|
12023
12058
|
throw new Error("noUiSlider: 'connect' option doesn't match handle count.");
|
|
12024
12059
|
i2 = t3;
|
|
12025
12060
|
}
|
|
12026
|
-
|
|
12061
|
+
e4.connect = i2;
|
|
12027
12062
|
}
|
|
12028
|
-
function X(
|
|
12063
|
+
function X(e4, t3) {
|
|
12029
12064
|
switch (t3) {
|
|
12030
12065
|
case "horizontal":
|
|
12031
|
-
|
|
12066
|
+
e4.ort = 0;
|
|
12032
12067
|
break;
|
|
12033
12068
|
case "vertical":
|
|
12034
|
-
|
|
12069
|
+
e4.ort = 1;
|
|
12035
12070
|
break;
|
|
12036
12071
|
default:
|
|
12037
12072
|
throw new Error("noUiSlider: 'orientation' option is invalid.");
|
|
12038
12073
|
}
|
|
12039
12074
|
}
|
|
12040
|
-
function Y(
|
|
12075
|
+
function Y(e4, t3) {
|
|
12041
12076
|
if (!u2(t3))
|
|
12042
12077
|
throw new Error("noUiSlider: 'margin' option must be numeric.");
|
|
12043
|
-
0 !== t3 && (
|
|
12078
|
+
0 !== t3 && (e4.margin = e4.spectrum.getDistance(t3));
|
|
12044
12079
|
}
|
|
12045
|
-
function I(
|
|
12080
|
+
function I(e4, t3) {
|
|
12046
12081
|
if (!u2(t3))
|
|
12047
12082
|
throw new Error("noUiSlider: 'limit' option must be numeric.");
|
|
12048
|
-
if (
|
|
12083
|
+
if (e4.limit = e4.spectrum.getDistance(t3), !e4.limit || e4.handles < 2)
|
|
12049
12084
|
throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.");
|
|
12050
12085
|
}
|
|
12051
|
-
function W(
|
|
12086
|
+
function W(e4, t3) {
|
|
12052
12087
|
var r2;
|
|
12053
12088
|
if (!u2(t3) && !Array.isArray(t3))
|
|
12054
12089
|
throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
|
|
12055
12090
|
if (Array.isArray(t3) && 2 !== t3.length && !u2(t3[0]) && !u2(t3[1]))
|
|
12056
12091
|
throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
|
|
12057
12092
|
if (0 !== t3) {
|
|
12058
|
-
for (Array.isArray(t3) || (t3 = [t3, t3]),
|
|
12059
|
-
if (
|
|
12093
|
+
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++)
|
|
12094
|
+
if (e4.padding[0][r2] < 0 || e4.padding[1][r2] < 0)
|
|
12060
12095
|
throw new Error("noUiSlider: 'padding' option must be a positive number(s).");
|
|
12061
|
-
var i2 = t3[0] + t3[1], n2 =
|
|
12062
|
-
if (i2 / (
|
|
12096
|
+
var i2 = t3[0] + t3[1], n2 = e4.spectrum.xVal[0];
|
|
12097
|
+
if (i2 / (e4.spectrum.xVal[e4.spectrum.xVal.length - 1] - n2) > 1)
|
|
12063
12098
|
throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.");
|
|
12064
12099
|
}
|
|
12065
12100
|
}
|
|
12066
|
-
function G(
|
|
12101
|
+
function G(e4, t3) {
|
|
12067
12102
|
switch (t3) {
|
|
12068
12103
|
case "ltr":
|
|
12069
|
-
|
|
12104
|
+
e4.dir = 0;
|
|
12070
12105
|
break;
|
|
12071
12106
|
case "rtl":
|
|
12072
|
-
|
|
12107
|
+
e4.dir = 1;
|
|
12073
12108
|
break;
|
|
12074
12109
|
default:
|
|
12075
12110
|
throw new Error("noUiSlider: 'direction' option was not recognized.");
|
|
12076
12111
|
}
|
|
12077
12112
|
}
|
|
12078
|
-
function J(
|
|
12113
|
+
function J(e4, t3) {
|
|
12079
12114
|
if ("string" != typeof t3)
|
|
12080
12115
|
throw new Error("noUiSlider: 'behaviour' must be a string containing options.");
|
|
12081
12116
|
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;
|
|
12082
12117
|
if (n2) {
|
|
12083
|
-
if (2 !==
|
|
12118
|
+
if (2 !== e4.handles)
|
|
12084
12119
|
throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");
|
|
12085
|
-
Y(
|
|
12120
|
+
Y(e4, e4.start[1] - e4.start[0]);
|
|
12086
12121
|
}
|
|
12087
|
-
if (s2 && (
|
|
12122
|
+
if (s2 && (e4.margin || e4.limit))
|
|
12088
12123
|
throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");
|
|
12089
|
-
|
|
12124
|
+
e4.events = { tap: r2 || o2, drag: i2, dragAll: l2, smoothSteps: u3, fixed: n2, snap: o2, hover: a2, unconstrained: s2 };
|
|
12090
12125
|
}
|
|
12091
|
-
function K(
|
|
12126
|
+
function K(e4, t3) {
|
|
12092
12127
|
if (false !== t3)
|
|
12093
12128
|
if (true === t3 || r(t3)) {
|
|
12094
|
-
|
|
12095
|
-
for (var i2 = 0; i2 <
|
|
12096
|
-
|
|
12129
|
+
e4.tooltips = [];
|
|
12130
|
+
for (var i2 = 0; i2 < e4.handles; i2++)
|
|
12131
|
+
e4.tooltips.push(t3);
|
|
12097
12132
|
} else {
|
|
12098
|
-
if ((t3 = d2(t3)).length !==
|
|
12133
|
+
if ((t3 = d2(t3)).length !== e4.handles)
|
|
12099
12134
|
throw new Error("noUiSlider: must pass a formatter for all handles.");
|
|
12100
|
-
t3.forEach(function(
|
|
12101
|
-
if ("boolean" != typeof
|
|
12135
|
+
t3.forEach(function(e5) {
|
|
12136
|
+
if ("boolean" != typeof e5 && !r(e5))
|
|
12102
12137
|
throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.");
|
|
12103
|
-
}),
|
|
12138
|
+
}), e4.tooltips = t3;
|
|
12104
12139
|
}
|
|
12105
12140
|
}
|
|
12106
|
-
function Q(
|
|
12107
|
-
if (t3.length !==
|
|
12141
|
+
function Q(e4, t3) {
|
|
12142
|
+
if (t3.length !== e4.handles)
|
|
12108
12143
|
throw new Error("noUiSlider: must pass a attributes for all handles.");
|
|
12109
|
-
|
|
12144
|
+
e4.handleAttributes = t3;
|
|
12110
12145
|
}
|
|
12111
|
-
function Z(
|
|
12146
|
+
function Z(e4, t3) {
|
|
12112
12147
|
if (!r(t3))
|
|
12113
12148
|
throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");
|
|
12114
|
-
|
|
12149
|
+
e4.ariaFormat = t3;
|
|
12115
12150
|
}
|
|
12116
|
-
function ee(
|
|
12151
|
+
function ee(e4, r2) {
|
|
12117
12152
|
if (!t2(r2))
|
|
12118
12153
|
throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");
|
|
12119
|
-
|
|
12154
|
+
e4.format = r2;
|
|
12120
12155
|
}
|
|
12121
|
-
function te(
|
|
12156
|
+
function te(e4, t3) {
|
|
12122
12157
|
if ("boolean" != typeof t3)
|
|
12123
12158
|
throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");
|
|
12124
|
-
|
|
12159
|
+
e4.keyboardSupport = t3;
|
|
12125
12160
|
}
|
|
12126
|
-
function re(
|
|
12127
|
-
|
|
12161
|
+
function re(e4, t3) {
|
|
12162
|
+
e4.documentElement = t3;
|
|
12128
12163
|
}
|
|
12129
|
-
function ie(
|
|
12164
|
+
function ie(e4, t3) {
|
|
12130
12165
|
if ("string" != typeof t3 && false !== t3)
|
|
12131
12166
|
throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");
|
|
12132
|
-
|
|
12167
|
+
e4.cssPrefix = t3;
|
|
12133
12168
|
}
|
|
12134
|
-
function ne(
|
|
12169
|
+
function ne(e4, t3) {
|
|
12135
12170
|
if ("object" != typeof t3)
|
|
12136
12171
|
throw new Error("noUiSlider: 'cssClasses' must be an object.");
|
|
12137
|
-
"string" == typeof
|
|
12138
|
-
|
|
12139
|
-
})) :
|
|
12172
|
+
"string" == typeof e4.cssPrefix ? (e4.cssClasses = {}, Object.keys(t3).forEach(function(r2) {
|
|
12173
|
+
e4.cssClasses[r2] = e4.cssPrefix + t3[r2];
|
|
12174
|
+
})) : e4.cssClasses = t3;
|
|
12140
12175
|
}
|
|
12141
|
-
function oe(
|
|
12176
|
+
function oe(e4) {
|
|
12142
12177
|
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 };
|
|
12143
|
-
|
|
12144
|
-
if (n(
|
|
12145
|
-
r2[o3].t(t3, n(
|
|
12178
|
+
e4.format && !e4.ariaFormat && (e4.ariaFormat = e4.format), Object.keys(r2).forEach(function(o3) {
|
|
12179
|
+
if (n(e4[o3]) || void 0 !== i2[o3])
|
|
12180
|
+
r2[o3].t(t3, n(e4[o3]) ? e4[o3] : i2[o3]);
|
|
12146
12181
|
else if (r2[o3].r)
|
|
12147
12182
|
throw new Error("noUiSlider: '" + o3 + "' is required.");
|
|
12148
|
-
}), t3.pips =
|
|
12183
|
+
}), t3.pips = e4.pips;
|
|
12149
12184
|
var o2 = document.createElement("div"), a2 = void 0 !== o2.style.msTransform, s2 = void 0 !== o2.style.transform;
|
|
12150
12185
|
t3.transformRule = s2 ? "transform" : a2 ? "msTransform" : "webkitTransform";
|
|
12151
12186
|
var l2 = [["left", "top"], ["right", "bottom"]];
|
|
@@ -12153,226 +12188,226 @@ var f = c(p(function(e, t) {
|
|
|
12153
12188
|
}
|
|
12154
12189
|
function ae(t3, r2, s2) {
|
|
12155
12190
|
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;
|
|
12156
|
-
function z2(
|
|
12191
|
+
function z2(e4, t4) {
|
|
12157
12192
|
var r3 = O2.createElement("div");
|
|
12158
|
-
return t4 && h2(r3, t4),
|
|
12193
|
+
return t4 && h2(r3, t4), e4.appendChild(r3), r3;
|
|
12159
12194
|
}
|
|
12160
|
-
function H2(
|
|
12161
|
-
var i2 = z2(
|
|
12162
|
-
if (z2(n2, r2.cssClasses.touchArea), n2.setAttribute("data-handle", String(t4)), r2.keyboardSupport && (n2.setAttribute("tabindex", "0"), n2.addEventListener("keydown", function(
|
|
12163
|
-
return fe(
|
|
12195
|
+
function H2(e4, t4) {
|
|
12196
|
+
var i2 = z2(e4, r2.cssClasses.origin), n2 = z2(i2, r2.cssClasses.handle);
|
|
12197
|
+
if (z2(n2, r2.cssClasses.touchArea), n2.setAttribute("data-handle", String(t4)), r2.keyboardSupport && (n2.setAttribute("tabindex", "0"), n2.addEventListener("keydown", function(e5) {
|
|
12198
|
+
return fe(e5, t4);
|
|
12164
12199
|
})), void 0 !== r2.handleAttributes) {
|
|
12165
12200
|
var o2 = r2.handleAttributes[t4];
|
|
12166
|
-
Object.keys(o2).forEach(function(
|
|
12167
|
-
n2.setAttribute(
|
|
12201
|
+
Object.keys(o2).forEach(function(e5) {
|
|
12202
|
+
n2.setAttribute(e5, o2[e5]);
|
|
12168
12203
|
});
|
|
12169
12204
|
}
|
|
12170
12205
|
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;
|
|
12171
12206
|
}
|
|
12172
|
-
function q2(
|
|
12173
|
-
return !!t4 && z2(
|
|
12207
|
+
function q2(e4, t4) {
|
|
12208
|
+
return !!t4 && z2(e4, r2.cssClasses.connect);
|
|
12174
12209
|
}
|
|
12175
|
-
function R2(
|
|
12210
|
+
function R2(e4, t4) {
|
|
12176
12211
|
var i2 = z2(t4, r2.cssClasses.connects);
|
|
12177
|
-
f3 = [], (x2 = []).push(q2(i2,
|
|
12212
|
+
f3 = [], (x2 = []).push(q2(i2, e4[0]));
|
|
12178
12213
|
for (var n2 = 0; n2 < r2.handles; n2++)
|
|
12179
|
-
f3.push(H2(t4, n2)), M2[n2] = n2, x2.push(q2(i2,
|
|
12214
|
+
f3.push(H2(t4, n2)), M2[n2] = n2, x2.push(q2(i2, e4[n2 + 1]));
|
|
12180
12215
|
}
|
|
12181
|
-
function B2(
|
|
12182
|
-
return h2(
|
|
12216
|
+
function B2(e4) {
|
|
12217
|
+
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);
|
|
12183
12218
|
}
|
|
12184
|
-
function _2(
|
|
12185
|
-
return !(!r2.tooltips || !r2.tooltips[t4]) && z2(
|
|
12219
|
+
function _2(e4, t4) {
|
|
12220
|
+
return !(!r2.tooltips || !r2.tooltips[t4]) && z2(e4.firstChild, r2.cssClasses.tooltip);
|
|
12186
12221
|
}
|
|
12187
12222
|
function $2() {
|
|
12188
12223
|
return C2.hasAttribute("disabled");
|
|
12189
12224
|
}
|
|
12190
|
-
function X2(
|
|
12191
|
-
return f3[
|
|
12225
|
+
function X2(e4) {
|
|
12226
|
+
return f3[e4].hasAttribute("disabled");
|
|
12192
12227
|
}
|
|
12193
12228
|
function Y2() {
|
|
12194
|
-
E2 && (ge("update" + D.tooltips), E2.forEach(function(
|
|
12195
|
-
|
|
12229
|
+
E2 && (ge("update" + D.tooltips), E2.forEach(function(e4) {
|
|
12230
|
+
e4 && i(e4);
|
|
12196
12231
|
}), E2 = null);
|
|
12197
12232
|
}
|
|
12198
12233
|
function I2() {
|
|
12199
|
-
Y2(), E2 = f3.map(_2), me("update" + D.tooltips, function(
|
|
12234
|
+
Y2(), E2 = f3.map(_2), me("update" + D.tooltips, function(e4, t4, i2) {
|
|
12200
12235
|
if (E2 && r2.tooltips && false !== E2[t4]) {
|
|
12201
|
-
var n2 =
|
|
12236
|
+
var n2 = e4[t4];
|
|
12202
12237
|
true !== r2.tooltips[t4] && (n2 = r2.tooltips[t4].to(i2[t4])), E2[t4].innerHTML = n2;
|
|
12203
12238
|
}
|
|
12204
12239
|
});
|
|
12205
12240
|
}
|
|
12206
12241
|
function W2() {
|
|
12207
|
-
ge("update" + D.aria), me("update" + D.aria, function(
|
|
12208
|
-
M2.forEach(function(
|
|
12209
|
-
var t5 = f3[
|
|
12242
|
+
ge("update" + D.aria), me("update" + D.aria, function(e4, t4, i2, n2, o2) {
|
|
12243
|
+
M2.forEach(function(e5) {
|
|
12244
|
+
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]));
|
|
12210
12245
|
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);
|
|
12211
12246
|
});
|
|
12212
12247
|
});
|
|
12213
12248
|
}
|
|
12214
12249
|
function G2(t4) {
|
|
12215
|
-
if (t4.mode ===
|
|
12250
|
+
if (t4.mode === e3.PipsMode.Range || t4.mode === e3.PipsMode.Steps)
|
|
12216
12251
|
return k2.xVal;
|
|
12217
|
-
if (t4.mode ===
|
|
12252
|
+
if (t4.mode === e3.PipsMode.Count) {
|
|
12218
12253
|
if (t4.values < 2)
|
|
12219
12254
|
throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");
|
|
12220
12255
|
for (var r3 = t4.values - 1, i2 = 100 / r3, n2 = []; r3--; )
|
|
12221
12256
|
n2[r3] = r3 * i2;
|
|
12222
12257
|
return n2.push(100), J2(n2, t4.stepped);
|
|
12223
12258
|
}
|
|
12224
|
-
return t4.mode ===
|
|
12225
|
-
return k2.fromStepping(k2.getStep(k2.toStepping(
|
|
12259
|
+
return t4.mode === e3.PipsMode.Positions ? J2(t4.values, t4.stepped) : t4.mode === e3.PipsMode.Values ? t4.stepped ? t4.values.map(function(e4) {
|
|
12260
|
+
return k2.fromStepping(k2.getStep(k2.toStepping(e4)));
|
|
12226
12261
|
}) : t4.values : [];
|
|
12227
12262
|
}
|
|
12228
|
-
function J2(
|
|
12229
|
-
return
|
|
12230
|
-
return k2.fromStepping(t4 ? k2.getStep(
|
|
12263
|
+
function J2(e4, t4) {
|
|
12264
|
+
return e4.map(function(e5) {
|
|
12265
|
+
return k2.fromStepping(t4 ? k2.getStep(e5) : e5);
|
|
12231
12266
|
});
|
|
12232
12267
|
}
|
|
12233
12268
|
function K2(t4) {
|
|
12234
|
-
function r3(
|
|
12235
|
-
return Number((
|
|
12269
|
+
function r3(e4, t5) {
|
|
12270
|
+
return Number((e4 + t5).toFixed(7));
|
|
12236
12271
|
}
|
|
12237
12272
|
var i2 = G2(t4), n2 = {}, o2 = k2.xVal[0], s3 = k2.xVal[k2.xVal.length - 1], l2 = false, u4 = false, c3 = 0;
|
|
12238
|
-
return (i2 = a(i2.slice().sort(function(
|
|
12239
|
-
return
|
|
12273
|
+
return (i2 = a(i2.slice().sort(function(e4, t5) {
|
|
12274
|
+
return e4 - t5;
|
|
12240
12275
|
})))[0] !== o2 && (i2.unshift(o2), l2 = true), i2[i2.length - 1] !== s3 && (i2.push(s3), u4 = true), i2.forEach(function(o3, a2) {
|
|
12241
|
-
var s4, p3, d3, f4, h3, m3, v2, g2, b2, y2, S2 = o3, x3 = i2[a2 + 1], w3 = t4.mode ===
|
|
12276
|
+
var s4, p3, d3, f4, h3, m3, v2, g2, b2, y2, S2 = o3, x3 = i2[a2 + 1], w3 = t4.mode === e3.PipsMode.Steps;
|
|
12242
12277
|
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)) {
|
|
12243
12278
|
for (g2 = (h3 = (f4 = k2.toStepping(p3)) - c3) / (t4.density || 1), y2 = h3 / (b2 = Math.round(g2)), d3 = 1; d3 <= b2; d3 += 1)
|
|
12244
12279
|
n2[(m3 = c3 + d3 * y2).toFixed(5)] = [k2.fromStepping(m3), 0];
|
|
12245
|
-
v2 = i2.indexOf(p3) > -1 ?
|
|
12280
|
+
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;
|
|
12246
12281
|
}
|
|
12247
12282
|
}), n2;
|
|
12248
12283
|
}
|
|
12249
12284
|
function Q2(t4, i2, n2) {
|
|
12250
|
-
var o2, a2, s3 = O2.createElement("div"), l2 = ((o2 = {})[
|
|
12251
|
-
function d3(
|
|
12285
|
+
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];
|
|
12286
|
+
function d3(e4, t5) {
|
|
12252
12287
|
var i3 = t5 === r2.cssClasses.value, n3 = i3 ? l2 : u4;
|
|
12253
|
-
return t5 + " " + (i3 ? c3 : p3)[r2.ort] + " " + n3[
|
|
12288
|
+
return t5 + " " + (i3 ? c3 : p3)[r2.ort] + " " + n3[e4];
|
|
12254
12289
|
}
|
|
12255
12290
|
function f4(t5, o3, a3) {
|
|
12256
|
-
if ((a3 = i2 ? i2(o3, a3) : a3) !==
|
|
12291
|
+
if ((a3 = i2 ? i2(o3, a3) : a3) !== e3.PipsType.None) {
|
|
12257
12292
|
var l3 = z2(s3, false);
|
|
12258
|
-
l3.className = d3(a3, r2.cssClasses.marker), l3.style[r2.style] = t5 + "%", a3 >
|
|
12293
|
+
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)));
|
|
12259
12294
|
}
|
|
12260
12295
|
}
|
|
12261
|
-
return h2(s3, r2.cssClasses.pips), h2(s3, 0 === r2.ort ? r2.cssClasses.pipsHorizontal : r2.cssClasses.pipsVertical), Object.keys(t4).forEach(function(
|
|
12262
|
-
f4(
|
|
12296
|
+
return h2(s3, r2.cssClasses.pips), h2(s3, 0 === r2.ort ? r2.cssClasses.pipsHorizontal : r2.cssClasses.pipsVertical), Object.keys(t4).forEach(function(e4) {
|
|
12297
|
+
f4(e4, t4[e4][0], t4[e4][1]);
|
|
12263
12298
|
}), s3;
|
|
12264
12299
|
}
|
|
12265
12300
|
function Z2() {
|
|
12266
12301
|
w2 && (i(w2), w2 = null);
|
|
12267
12302
|
}
|
|
12268
|
-
function ee2(
|
|
12303
|
+
function ee2(e4) {
|
|
12269
12304
|
Z2();
|
|
12270
|
-
var t4 = K2(
|
|
12271
|
-
return String(Math.round(
|
|
12305
|
+
var t4 = K2(e4), r3 = e4.filter, i2 = e4.format || { to: function(e5) {
|
|
12306
|
+
return String(Math.round(e5));
|
|
12272
12307
|
} };
|
|
12273
12308
|
return w2 = C2.appendChild(Q2(t4, r3, i2));
|
|
12274
12309
|
}
|
|
12275
12310
|
function te2() {
|
|
12276
|
-
var
|
|
12277
|
-
return 0 === r2.ort ?
|
|
12311
|
+
var e4 = u3.getBoundingClientRect(), t4 = "offset" + ["Width", "Height"][r2.ort];
|
|
12312
|
+
return 0 === r2.ort ? e4.width || u3[t4] : e4.height || u3[t4];
|
|
12278
12313
|
}
|
|
12279
|
-
function re2(
|
|
12314
|
+
function re2(e4, t4, i2, n2) {
|
|
12280
12315
|
var o2 = function(o3) {
|
|
12281
12316
|
var a3 = ie2(o3, n2.pageOffset, n2.target || t4);
|
|
12282
|
-
return !!a3 && !($2() && !n2.doNotReject) && !(v(C2, r2.cssClasses.tap) && !n2.doNotReject) && !(
|
|
12317
|
+
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));
|
|
12283
12318
|
}, a2 = [];
|
|
12284
|
-
return
|
|
12285
|
-
t4.addEventListener(
|
|
12319
|
+
return e4.split(" ").forEach(function(e5) {
|
|
12320
|
+
t4.addEventListener(e5, o2, !!N2 && { passive: true }), a2.push([e5, o2]);
|
|
12286
12321
|
}), a2;
|
|
12287
12322
|
}
|
|
12288
|
-
function ie2(
|
|
12289
|
-
var i2 = 0 ===
|
|
12290
|
-
if (0 ===
|
|
12323
|
+
function ie2(e4, t4, r3) {
|
|
12324
|
+
var i2 = 0 === e4.type.indexOf("touch"), n2 = 0 === e4.type.indexOf("mouse"), o2 = 0 === e4.type.indexOf("pointer"), a2 = 0, s3 = 0;
|
|
12325
|
+
if (0 === e4.type.indexOf("MSPointer") && (o2 = true), "mousedown" === e4.type && !e4.buttons && !e4.touches)
|
|
12291
12326
|
return false;
|
|
12292
12327
|
if (i2) {
|
|
12293
12328
|
var l2 = function(t5) {
|
|
12294
12329
|
var i3 = t5.target;
|
|
12295
|
-
return i3 === r3 || r3.contains(i3) ||
|
|
12330
|
+
return i3 === r3 || r3.contains(i3) || e4.composed && e4.composedPath().shift() === r3;
|
|
12296
12331
|
};
|
|
12297
|
-
if ("touchstart" ===
|
|
12298
|
-
var u4 = Array.prototype.filter.call(
|
|
12332
|
+
if ("touchstart" === e4.type) {
|
|
12333
|
+
var u4 = Array.prototype.filter.call(e4.touches, l2);
|
|
12299
12334
|
if (u4.length > 1)
|
|
12300
12335
|
return false;
|
|
12301
12336
|
a2 = u4[0].pageX, s3 = u4[0].pageY;
|
|
12302
12337
|
} else {
|
|
12303
|
-
var c3 = Array.prototype.find.call(
|
|
12338
|
+
var c3 = Array.prototype.find.call(e4.changedTouches, l2);
|
|
12304
12339
|
if (!c3)
|
|
12305
12340
|
return false;
|
|
12306
12341
|
a2 = c3.pageX, s3 = c3.pageY;
|
|
12307
12342
|
}
|
|
12308
12343
|
}
|
|
12309
|
-
return t4 = t4 || g(O2), (n2 || o2) && (a2 =
|
|
12344
|
+
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;
|
|
12310
12345
|
}
|
|
12311
|
-
function ne2(
|
|
12312
|
-
var t4 = 100 * (
|
|
12346
|
+
function ne2(e4) {
|
|
12347
|
+
var t4 = 100 * (e4 - l(u3, r2.ort)) / te2();
|
|
12313
12348
|
return t4 = p2(t4), r2.dir ? 100 - t4 : t4;
|
|
12314
12349
|
}
|
|
12315
|
-
function ae2(
|
|
12350
|
+
function ae2(e4) {
|
|
12316
12351
|
var t4 = 100, r3 = false;
|
|
12317
12352
|
return f3.forEach(function(i2, n2) {
|
|
12318
12353
|
if (!X2(n2)) {
|
|
12319
|
-
var o2 = A2[n2], a2 = Math.abs(o2 -
|
|
12320
|
-
(a2 < t4 || a2 <= t4 &&
|
|
12354
|
+
var o2 = A2[n2], a2 = Math.abs(o2 - e4);
|
|
12355
|
+
(a2 < t4 || a2 <= t4 && e4 > o2 || 100 === a2 && 100 === t4) && (r3 = n2, t4 = a2);
|
|
12321
12356
|
}
|
|
12322
12357
|
}), r3;
|
|
12323
12358
|
}
|
|
12324
|
-
function se2(
|
|
12325
|
-
"mouseout" ===
|
|
12359
|
+
function se2(e4, t4) {
|
|
12360
|
+
"mouseout" === e4.type && "HTML" === e4.target.nodeName && null === e4.relatedTarget && ue(e4, t4);
|
|
12326
12361
|
}
|
|
12327
|
-
function le2(
|
|
12328
|
-
if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 ===
|
|
12329
|
-
return ue(
|
|
12330
|
-
var i2 = (r2.dir ? -1 : 1) * (
|
|
12362
|
+
function le2(e4, t4) {
|
|
12363
|
+
if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 === e4.buttons && 0 !== t4.buttonsProperty)
|
|
12364
|
+
return ue(e4, t4);
|
|
12365
|
+
var i2 = (r2.dir ? -1 : 1) * (e4.calcPoint - t4.startCalcPoint);
|
|
12331
12366
|
xe(i2 > 0, 100 * i2 / t4.baseSize, t4.locations, t4.handleNumbers, t4.connect);
|
|
12332
12367
|
}
|
|
12333
|
-
function ue(
|
|
12334
|
-
t4.handle && (m2(t4.handle, r2.cssClasses.active), L2 -= 1), t4.listeners.forEach(function(
|
|
12335
|
-
j2.removeEventListener(
|
|
12336
|
-
}), 0 === L2 && (m2(C2, r2.cssClasses.drag), Pe(),
|
|
12337
|
-
Ne(
|
|
12338
|
-
}), t4.handleNumbers.forEach(function(
|
|
12339
|
-
be("update",
|
|
12340
|
-
})), t4.handleNumbers.forEach(function(
|
|
12341
|
-
be("change",
|
|
12368
|
+
function ue(e4, t4) {
|
|
12369
|
+
t4.handle && (m2(t4.handle, r2.cssClasses.active), L2 -= 1), t4.listeners.forEach(function(e5) {
|
|
12370
|
+
j2.removeEventListener(e5[0], e5[1]);
|
|
12371
|
+
}), 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) {
|
|
12372
|
+
Ne(e5, A2[e5], true, true, false, false);
|
|
12373
|
+
}), t4.handleNumbers.forEach(function(e5) {
|
|
12374
|
+
be("update", e5);
|
|
12375
|
+
})), t4.handleNumbers.forEach(function(e5) {
|
|
12376
|
+
be("change", e5), be("set", e5), be("end", e5);
|
|
12342
12377
|
});
|
|
12343
12378
|
}
|
|
12344
|
-
function ce(
|
|
12379
|
+
function ce(e4, t4) {
|
|
12345
12380
|
if (!t4.handleNumbers.some(X2)) {
|
|
12346
12381
|
var i2;
|
|
12347
|
-
1 === t4.handleNumbers.length && (i2 = f3[t4.handleNumbers[0]].children[0], L2 += 1, h2(i2, r2.cssClasses.active)),
|
|
12348
|
-
var n2 = [], a2 = re2(P2.move, j2, le2, { target:
|
|
12349
|
-
n2.push.apply(n2, a2.concat(s3, l2)),
|
|
12350
|
-
be("start",
|
|
12382
|
+
1 === t4.handleNumbers.length && (i2 = f3[t4.handleNumbers[0]].children[0], L2 += 1, h2(i2, r2.cssClasses.active)), e4.stopPropagation();
|
|
12383
|
+
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 });
|
|
12384
|
+
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) {
|
|
12385
|
+
be("start", e5);
|
|
12351
12386
|
});
|
|
12352
12387
|
}
|
|
12353
12388
|
}
|
|
12354
|
-
function pe(
|
|
12355
|
-
|
|
12356
|
-
var t4 = ne2(
|
|
12357
|
-
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(
|
|
12389
|
+
function pe(e4) {
|
|
12390
|
+
e4.stopPropagation();
|
|
12391
|
+
var t4 = ne2(e4.calcPoint), i2 = ae2(t4);
|
|
12392
|
+
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)));
|
|
12358
12393
|
}
|
|
12359
|
-
function de(
|
|
12360
|
-
var t4 = ne2(
|
|
12361
|
-
Object.keys(U2).forEach(function(
|
|
12362
|
-
"hover" ===
|
|
12363
|
-
|
|
12394
|
+
function de(e4) {
|
|
12395
|
+
var t4 = ne2(e4.calcPoint), r3 = k2.getStep(t4), i2 = k2.fromStepping(r3);
|
|
12396
|
+
Object.keys(U2).forEach(function(e5) {
|
|
12397
|
+
"hover" === e5.split(".")[0] && U2[e5].forEach(function(e6) {
|
|
12398
|
+
e6.call(Te, i2);
|
|
12364
12399
|
});
|
|
12365
12400
|
});
|
|
12366
12401
|
}
|
|
12367
|
-
function fe(
|
|
12402
|
+
function fe(e4, t4) {
|
|
12368
12403
|
if ($2() || X2(t4))
|
|
12369
12404
|
return false;
|
|
12370
12405
|
var i2 = ["Left", "Right"], n2 = ["Down", "Up"], o2 = ["PageDown", "PageUp"], a2 = ["Home", "End"];
|
|
12371
12406
|
r2.dir && !r2.ort ? i2.reverse() : r2.ort && !r2.dir && (n2.reverse(), o2.reverse());
|
|
12372
|
-
var s3, l2 =
|
|
12407
|
+
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];
|
|
12373
12408
|
if (!(p3 || d3 || f4 || h3))
|
|
12374
12409
|
return true;
|
|
12375
|
-
if (
|
|
12410
|
+
if (e4.preventDefault(), d3 || p3) {
|
|
12376
12411
|
var m3 = p3 ? 0 : 1, v2 = Oe(t4)[m3];
|
|
12377
12412
|
if (null === v2)
|
|
12378
12413
|
return false;
|
|
@@ -12381,133 +12416,133 @@ var f = c(p(function(e, t) {
|
|
|
12381
12416
|
s3 = h3 ? r2.spectrum.xVal[r2.spectrum.xVal.length - 1] : r2.spectrum.xVal[0];
|
|
12382
12417
|
return Ne(t4, k2.toStepping(s3), true, true), be("slide", t4), be("update", t4), be("change", t4), be("set", t4), false;
|
|
12383
12418
|
}
|
|
12384
|
-
function he(
|
|
12385
|
-
|
|
12386
|
-
re2(P2.start,
|
|
12387
|
-
}),
|
|
12419
|
+
function he(e4) {
|
|
12420
|
+
e4.fixed || f3.forEach(function(e5, t4) {
|
|
12421
|
+
re2(P2.start, e5.children[0], ce, { handleNumbers: [t4] });
|
|
12422
|
+
}), e4.tap && re2(P2.start, u3, pe, {}), e4.hover && re2(P2.move, u3, de, { hover: true }), e4.drag && x2.forEach(function(t4, i2) {
|
|
12388
12423
|
if (false !== t4 && 0 !== i2 && i2 !== x2.length - 1) {
|
|
12389
12424
|
var n2 = f3[i2 - 1], o2 = f3[i2], a2 = [t4], s3 = [n2, o2], l2 = [i2 - 1, i2];
|
|
12390
|
-
h2(t4, r2.cssClasses.draggable),
|
|
12391
|
-
re2(P2.start,
|
|
12425
|
+
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) {
|
|
12426
|
+
re2(P2.start, e5, ce, { handles: s3, handleNumbers: l2, connect: t4 });
|
|
12392
12427
|
});
|
|
12393
12428
|
}
|
|
12394
12429
|
});
|
|
12395
12430
|
}
|
|
12396
|
-
function me(
|
|
12397
|
-
U2[
|
|
12431
|
+
function me(e4, t4) {
|
|
12432
|
+
U2[e4] = U2[e4] || [], U2[e4].push(t4), "update" === e4.split(".")[0] && f3.forEach(function(e5, t5) {
|
|
12398
12433
|
be("update", t5);
|
|
12399
12434
|
});
|
|
12400
12435
|
}
|
|
12401
|
-
function ve(
|
|
12402
|
-
return
|
|
12436
|
+
function ve(e4) {
|
|
12437
|
+
return e4 === D.aria || e4 === D.tooltips;
|
|
12403
12438
|
}
|
|
12404
|
-
function ge(
|
|
12405
|
-
var t4 =
|
|
12406
|
-
Object.keys(U2).forEach(function(
|
|
12407
|
-
var i2 =
|
|
12408
|
-
t4 && t4 !== i2 || r3 && r3 !== n2 || ve(n2) && r3 !== n2 || delete U2[
|
|
12439
|
+
function ge(e4) {
|
|
12440
|
+
var t4 = e4 && e4.split(".")[0], r3 = t4 ? e4.substring(t4.length) : e4;
|
|
12441
|
+
Object.keys(U2).forEach(function(e5) {
|
|
12442
|
+
var i2 = e5.split(".")[0], n2 = e5.substring(i2.length);
|
|
12443
|
+
t4 && t4 !== i2 || r3 && r3 !== n2 || ve(n2) && r3 !== n2 || delete U2[e5];
|
|
12409
12444
|
});
|
|
12410
12445
|
}
|
|
12411
|
-
function be(
|
|
12446
|
+
function be(e4, t4, i2) {
|
|
12412
12447
|
Object.keys(U2).forEach(function(n2) {
|
|
12413
12448
|
var o2 = n2.split(".")[0];
|
|
12414
|
-
|
|
12415
|
-
|
|
12449
|
+
e4 === o2 && U2[n2].forEach(function(e5) {
|
|
12450
|
+
e5.call(Te, V2.map(r2.format.to), t4, V2.slice(), i2 || false, A2.slice(), Te);
|
|
12416
12451
|
});
|
|
12417
12452
|
});
|
|
12418
12453
|
}
|
|
12419
|
-
function ye(
|
|
12454
|
+
function ye(e4, t4, i2, n2, o2, a2, s3) {
|
|
12420
12455
|
var l2;
|
|
12421
|
-
return f3.length > 1 && !r2.events.unconstrained && (n2 && t4 > 0 && (l2 = k2.getAbsoluteDistance(
|
|
12456
|
+
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;
|
|
12422
12457
|
}
|
|
12423
|
-
function Se(
|
|
12458
|
+
function Se(e4, t4) {
|
|
12424
12459
|
var i2 = r2.ort;
|
|
12425
|
-
return (i2 ? t4 :
|
|
12460
|
+
return (i2 ? t4 : e4) + ", " + (i2 ? e4 : t4);
|
|
12426
12461
|
}
|
|
12427
|
-
function xe(
|
|
12428
|
-
var a2 = i2.slice(), s3 = n2[0], l2 = r2.events.smoothSteps, u4 = [!
|
|
12429
|
-
n2 = n2.slice(),
|
|
12430
|
-
var i3 = ye(a2,
|
|
12431
|
-
false === i3 ? t4 = 0 : (t4 = i3 - a2[
|
|
12462
|
+
function xe(e4, t4, i2, n2, o2) {
|
|
12463
|
+
var a2 = i2.slice(), s3 = n2[0], l2 = r2.events.smoothSteps, u4 = [!e4, e4], c3 = [e4, !e4];
|
|
12464
|
+
n2 = n2.slice(), e4 && n2.reverse(), n2.length > 1 ? n2.forEach(function(e5, r3) {
|
|
12465
|
+
var i3 = ye(a2, e5, a2[e5] + t4, u4[r3], c3[r3], false, l2);
|
|
12466
|
+
false === i3 ? t4 = 0 : (t4 = i3 - a2[e5], a2[e5] = i3);
|
|
12432
12467
|
}) : u4 = c3 = [true];
|
|
12433
12468
|
var p3 = false;
|
|
12434
|
-
n2.forEach(function(
|
|
12435
|
-
p3 = Ne(
|
|
12436
|
-
}), p3 && (n2.forEach(function(
|
|
12437
|
-
be("update",
|
|
12469
|
+
n2.forEach(function(e5, r3) {
|
|
12470
|
+
p3 = Ne(e5, i2[e5] + t4, u4[r3], c3[r3], false, l2) || p3;
|
|
12471
|
+
}), p3 && (n2.forEach(function(e5) {
|
|
12472
|
+
be("update", e5), be("slide", e5);
|
|
12438
12473
|
}), null != o2 && be("drag", s3));
|
|
12439
12474
|
}
|
|
12440
|
-
function we(
|
|
12441
|
-
return r2.dir ? 100 -
|
|
12475
|
+
function we(e4, t4) {
|
|
12476
|
+
return r2.dir ? 100 - e4 - t4 : e4;
|
|
12442
12477
|
}
|
|
12443
|
-
function Ee(
|
|
12444
|
-
A2[
|
|
12478
|
+
function Ee(e4, t4) {
|
|
12479
|
+
A2[e4] = t4, V2[e4] = k2.fromStepping(t4);
|
|
12445
12480
|
var i2 = "translate(" + Se(we(t4, 0) - T2 + "%", "0") + ")";
|
|
12446
|
-
f3[
|
|
12481
|
+
f3[e4].style[r2.transformRule] = i2, Ce(e4), Ce(e4 + 1);
|
|
12447
12482
|
}
|
|
12448
12483
|
function Pe() {
|
|
12449
|
-
M2.forEach(function(
|
|
12450
|
-
var t4 = A2[
|
|
12451
|
-
f3[
|
|
12484
|
+
M2.forEach(function(e4) {
|
|
12485
|
+
var t4 = A2[e4] > 50 ? -1 : 1, r3 = 3 + (f3.length + t4 * e4);
|
|
12486
|
+
f3[e4].style.zIndex = String(r3);
|
|
12452
12487
|
});
|
|
12453
12488
|
}
|
|
12454
|
-
function Ne(
|
|
12455
|
-
return n2 || (t4 = ye(A2,
|
|
12489
|
+
function Ne(e4, t4, r3, i2, n2, o2) {
|
|
12490
|
+
return n2 || (t4 = ye(A2, e4, t4, r3, i2, false, o2)), false !== t4 && (Ee(e4, t4), true);
|
|
12456
12491
|
}
|
|
12457
|
-
function Ce(
|
|
12458
|
-
if (x2[
|
|
12492
|
+
function Ce(e4) {
|
|
12493
|
+
if (x2[e4]) {
|
|
12459
12494
|
var t4 = 0, i2 = 100;
|
|
12460
|
-
0 !==
|
|
12495
|
+
0 !== e4 && (t4 = A2[e4 - 1]), e4 !== x2.length - 1 && (i2 = A2[e4]);
|
|
12461
12496
|
var n2 = i2 - t4, o2 = "translate(" + Se(we(t4, n2) + "%", "0") + ")", a2 = "scale(" + Se(n2 / 100, "1") + ")";
|
|
12462
|
-
x2[
|
|
12497
|
+
x2[e4].style[r2.transformRule] = o2 + " " + a2;
|
|
12463
12498
|
}
|
|
12464
12499
|
}
|
|
12465
|
-
function ke(
|
|
12466
|
-
return null ===
|
|
12500
|
+
function ke(e4, t4) {
|
|
12501
|
+
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);
|
|
12467
12502
|
}
|
|
12468
|
-
function Ve(
|
|
12469
|
-
var n2 = d2(
|
|
12470
|
-
t4 = void 0 === t4 || t4, r2.animate && !o2 && c2(C2, r2.cssClasses.tap, r2.animationDuration), M2.forEach(function(
|
|
12471
|
-
Ne(
|
|
12503
|
+
function Ve(e4, t4, i2) {
|
|
12504
|
+
var n2 = d2(e4), o2 = void 0 === A2[0];
|
|
12505
|
+
t4 = void 0 === t4 || t4, r2.animate && !o2 && c2(C2, r2.cssClasses.tap, r2.animationDuration), M2.forEach(function(e5) {
|
|
12506
|
+
Ne(e5, ke(n2[e5], e5), true, false, i2);
|
|
12472
12507
|
});
|
|
12473
12508
|
var a2 = 1 === M2.length ? 0 : 1;
|
|
12474
12509
|
if (o2 && k2.hasNoSize() && (i2 = true, A2[0] = 0, M2.length > 1)) {
|
|
12475
12510
|
var s3 = 100 / (M2.length - 1);
|
|
12476
|
-
M2.forEach(function(
|
|
12477
|
-
A2[
|
|
12511
|
+
M2.forEach(function(e5) {
|
|
12512
|
+
A2[e5] = e5 * s3;
|
|
12478
12513
|
});
|
|
12479
12514
|
}
|
|
12480
12515
|
for (; a2 < M2.length; ++a2)
|
|
12481
|
-
M2.forEach(function(
|
|
12482
|
-
Ne(
|
|
12516
|
+
M2.forEach(function(e5) {
|
|
12517
|
+
Ne(e5, A2[e5], true, true, i2);
|
|
12483
12518
|
});
|
|
12484
|
-
Pe(), M2.forEach(function(
|
|
12485
|
-
be("update",
|
|
12519
|
+
Pe(), M2.forEach(function(e5) {
|
|
12520
|
+
be("update", e5), null !== n2[e5] && t4 && be("set", e5);
|
|
12486
12521
|
});
|
|
12487
12522
|
}
|
|
12488
|
-
function Ae(
|
|
12489
|
-
Ve(r2.start,
|
|
12523
|
+
function Ae(e4) {
|
|
12524
|
+
Ve(r2.start, e4);
|
|
12490
12525
|
}
|
|
12491
|
-
function Me(
|
|
12492
|
-
if (!((
|
|
12493
|
-
throw new Error("noUiSlider: invalid handle number, got: " +
|
|
12494
|
-
Ne(
|
|
12526
|
+
function Me(e4, t4, r3, i2) {
|
|
12527
|
+
if (!((e4 = Number(e4)) >= 0 && e4 < M2.length))
|
|
12528
|
+
throw new Error("noUiSlider: invalid handle number, got: " + e4);
|
|
12529
|
+
Ne(e4, ke(t4, e4), true, true, i2), be("update", e4), r3 && be("set", e4);
|
|
12495
12530
|
}
|
|
12496
|
-
function Le(
|
|
12497
|
-
if (void 0 ===
|
|
12531
|
+
function Le(e4) {
|
|
12532
|
+
if (void 0 === e4 && (e4 = false), e4)
|
|
12498
12533
|
return 1 === V2.length ? V2[0] : V2.slice(0);
|
|
12499
12534
|
var t4 = V2.map(r2.format.to);
|
|
12500
12535
|
return 1 === t4.length ? t4[0] : t4;
|
|
12501
12536
|
}
|
|
12502
12537
|
function Ue() {
|
|
12503
|
-
for (ge(D.aria), ge(D.tooltips), Object.keys(r2.cssClasses).forEach(function(
|
|
12504
|
-
m2(C2, r2.cssClasses[
|
|
12538
|
+
for (ge(D.aria), ge(D.tooltips), Object.keys(r2.cssClasses).forEach(function(e4) {
|
|
12539
|
+
m2(C2, r2.cssClasses[e4]);
|
|
12505
12540
|
}); C2.firstChild; )
|
|
12506
12541
|
C2.removeChild(C2.firstChild);
|
|
12507
12542
|
delete C2.noUiSlider;
|
|
12508
12543
|
}
|
|
12509
|
-
function Oe(
|
|
12510
|
-
var t4 = A2[
|
|
12544
|
+
function Oe(e4) {
|
|
12545
|
+
var t4 = A2[e4], i2 = k2.getNearbySteps(t4), n2 = V2[e4], o2 = i2.thisStep.step, a2 = null;
|
|
12511
12546
|
if (r2.snap)
|
|
12512
12547
|
return [n2 - i2.stepBefore.startValue || null, i2.stepAfter.startValue - n2 || null];
|
|
12513
12548
|
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);
|
|
@@ -12517,22 +12552,22 @@ var f = c(p(function(e, t) {
|
|
|
12517
12552
|
function De() {
|
|
12518
12553
|
return M2.map(Oe);
|
|
12519
12554
|
}
|
|
12520
|
-
function je(
|
|
12555
|
+
function je(e4, t4) {
|
|
12521
12556
|
var i2 = Le(), o2 = ["margin", "limit", "padding", "range", "animate", "snap", "step", "format", "pips", "tooltips"];
|
|
12522
12557
|
o2.forEach(function(t5) {
|
|
12523
|
-
void 0 !==
|
|
12558
|
+
void 0 !== e4[t5] && (s2[t5] = e4[t5]);
|
|
12524
12559
|
});
|
|
12525
12560
|
var a2 = oe(s2);
|
|
12526
12561
|
o2.forEach(function(t5) {
|
|
12527
|
-
void 0 !==
|
|
12528
|
-
}), 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(
|
|
12562
|
+
void 0 !== e4[t5] && (r2[t5] = a2[t5]);
|
|
12563
|
+
}), 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);
|
|
12529
12564
|
}
|
|
12530
12565
|
function Fe() {
|
|
12531
12566
|
u3 = B2(C2), R2(r2.connect, u3), he(r2.events), Ve(r2.start), r2.pips && ee2(r2.pips), r2.tooltips && I2(), W2();
|
|
12532
12567
|
}
|
|
12533
12568
|
Fe();
|
|
12534
|
-
var Te = { destroy: Ue, steps: De, on: me, off: ge, get: Le, set: Ve, setHandle: Me, reset: Ae, __moveHandles: function(
|
|
12535
|
-
xe(
|
|
12569
|
+
var Te = { destroy: Ue, steps: De, on: me, off: ge, get: Le, set: Ve, setHandle: Me, reset: Ae, __moveHandles: function(e4, t4, r3) {
|
|
12570
|
+
xe(e4, t4, A2, r3);
|
|
12536
12571
|
}, options: s2, updateOptions: je, target: C2, removePips: Z2, removeTooltips: Y2, getPositions: function() {
|
|
12537
12572
|
return A2.slice();
|
|
12538
12573
|
}, getTooltips: function() {
|
|
@@ -12542,30 +12577,30 @@ var f = c(p(function(e, t) {
|
|
|
12542
12577
|
}, pips: ee2 };
|
|
12543
12578
|
return Te;
|
|
12544
12579
|
}
|
|
12545
|
-
function se(
|
|
12546
|
-
if (!
|
|
12547
|
-
throw new Error("noUiSlider: create requires a single element, got: " +
|
|
12548
|
-
if (
|
|
12580
|
+
function se(e4, t3) {
|
|
12581
|
+
if (!e4 || !e4.nodeName)
|
|
12582
|
+
throw new Error("noUiSlider: create requires a single element, got: " + e4);
|
|
12583
|
+
if (e4.noUiSlider)
|
|
12549
12584
|
throw new Error("noUiSlider: Slider was already initialized.");
|
|
12550
|
-
var r2 = ae(
|
|
12551
|
-
return
|
|
12585
|
+
var r2 = ae(e4, oe(t3), t3);
|
|
12586
|
+
return e4.noUiSlider = r2, r2;
|
|
12552
12587
|
}
|
|
12553
12588
|
var le = { __spectrum: L, cssClasses: O, create: se };
|
|
12554
|
-
|
|
12589
|
+
e3.create = se, e3.cssClasses = O, e3.default = le, Object.defineProperty(e3, "__esModule", { value: true });
|
|
12555
12590
|
}(t);
|
|
12556
12591
|
}));
|
|
12557
|
-
function h(
|
|
12558
|
-
if (!Array.isArray(
|
|
12592
|
+
function h(e2, t) {
|
|
12593
|
+
if (!Array.isArray(e2) || !Array.isArray(t))
|
|
12559
12594
|
return false;
|
|
12560
12595
|
const r = t.slice().sort();
|
|
12561
|
-
return
|
|
12562
|
-
return
|
|
12596
|
+
return e2.length === t.length && e2.slice().sort().every(function(e3, t2) {
|
|
12597
|
+
return e3 === r[t2];
|
|
12563
12598
|
});
|
|
12564
12599
|
}
|
|
12565
|
-
var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide", "drag", "update", "change", "set", "end"], props: __spreadProps2(__spreadValues2({}, { value: { validator: function(
|
|
12566
|
-
return (
|
|
12567
|
-
}, required: false }, modelValue: { validator: function(
|
|
12568
|
-
return (
|
|
12600
|
+
var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide", "drag", "update", "change", "set", "end"], props: __spreadProps2(__spreadValues2({}, { value: { validator: function(e2) {
|
|
12601
|
+
return (e3) => "number" == typeof e3 || e3 instanceof Array || null == e3 || false === e3;
|
|
12602
|
+
}, required: false }, modelValue: { validator: function(e2) {
|
|
12603
|
+
return (e3) => "number" == typeof e3 || e3 instanceof Array || null == e3 || false === e3;
|
|
12569
12604
|
}, 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) {
|
|
12570
12605
|
const l = function(r, i, n) {
|
|
12571
12606
|
const { value: o, modelValue: a2, min: s2 } = toRefs(r);
|
|
@@ -12577,37 +12612,37 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
12577
12612
|
}(a), c2 = function(t, i, n) {
|
|
12578
12613
|
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));
|
|
12579
12614
|
return { classList: computed(() => {
|
|
12580
|
-
const
|
|
12581
|
-
return Object.keys(
|
|
12582
|
-
|
|
12583
|
-
}), "always" !== a2.value && (
|
|
12615
|
+
const e2 = __spreadValues2({}, u2.value);
|
|
12616
|
+
return Object.keys(e2).forEach((t2) => {
|
|
12617
|
+
e2[t2] = Array.isArray(e2[t2]) ? e2[t2].filter((e3) => null !== e3).join(" ") : e2[t2];
|
|
12618
|
+
}), "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;
|
|
12584
12619
|
}) };
|
|
12585
12620
|
}(a), p2 = function(t, i, n) {
|
|
12586
|
-
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((
|
|
12587
|
-
return { tooltipFormat: u2, tooltipsFormat: c3, tooltipsMerge: (
|
|
12588
|
-
var i2 = "rtl" === getComputedStyle(
|
|
12589
|
-
a3.forEach(function(
|
|
12590
|
-
|
|
12591
|
-
}),
|
|
12621
|
+
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);
|
|
12622
|
+
return { tooltipFormat: u2, tooltipsFormat: c3, tooltipsMerge: (e2, t2, r) => {
|
|
12623
|
+
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();
|
|
12624
|
+
a3.forEach(function(e3, t3) {
|
|
12625
|
+
e3 && s3[t3].appendChild(e3);
|
|
12626
|
+
}), e2.noUiSlider.on("update", function(e3, s4, c4, p3, d2) {
|
|
12592
12627
|
var f2 = [[]], h2 = [[]], m3 = [[]], v = 0;
|
|
12593
|
-
a3[0] && (f2[0][0] = 0, h2[0][0] = d2[0], m3[0][0] = u2.value.to(parseFloat(
|
|
12594
|
-
for (var g = 1; g <
|
|
12595
|
-
(!a3[g] ||
|
|
12596
|
-
f2.forEach(function(
|
|
12597
|
-
for (var s5 =
|
|
12598
|
-
var c5 =
|
|
12628
|
+
a3[0] && (f2[0][0] = 0, h2[0][0] = d2[0], m3[0][0] = u2.value.to(parseFloat(e3[0])));
|
|
12629
|
+
for (var g = 1; g < e3.length; g++)
|
|
12630
|
+
(!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]));
|
|
12631
|
+
f2.forEach(function(e4, t3) {
|
|
12632
|
+
for (var s5 = e4.length, u3 = 0; u3 < s5; u3++) {
|
|
12633
|
+
var c5 = e4[u3];
|
|
12599
12634
|
if (u3 === s5 - 1) {
|
|
12600
12635
|
var p4 = 0;
|
|
12601
|
-
h2[t3].forEach(function(
|
|
12602
|
-
p4 += 1e3 -
|
|
12636
|
+
h2[t3].forEach(function(e5) {
|
|
12637
|
+
p4 += 1e3 - e5;
|
|
12603
12638
|
});
|
|
12604
12639
|
var d3 = o2 ? "bottom" : "right", f3 = n2 ? 0 : s5 - 1, v2 = 1e3 - h2[t3][f3];
|
|
12605
|
-
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((
|
|
12606
|
-
a3[c5].classList.contains(
|
|
12640
|
+
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) => {
|
|
12641
|
+
a3[c5].classList.contains(e5) && a3[c5].classList.remove(e5);
|
|
12607
12642
|
});
|
|
12608
12643
|
} else
|
|
12609
|
-
a3[c5].style.display = "none", l2.value.tooltipHidden.split(" ").forEach((
|
|
12610
|
-
a3[c5].classList.add(
|
|
12644
|
+
a3[c5].style.display = "none", l2.value.tooltipHidden.split(" ").forEach((e5) => {
|
|
12645
|
+
a3[c5].classList.add(e5);
|
|
12611
12646
|
});
|
|
12612
12647
|
}
|
|
12613
12648
|
});
|
|
@@ -12615,32 +12650,32 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
12615
12650
|
} };
|
|
12616
12651
|
}(a, 0, { value: l.value, classList: c2.classList }), m2 = function(a2, s2, l2) {
|
|
12617
12652
|
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(() => {
|
|
12618
|
-
let
|
|
12619
|
-
if (m3.value > 0 && (
|
|
12653
|
+
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 } };
|
|
12654
|
+
if (m3.value > 0 && (e2.step = m3.value), Array.isArray(k.value) && (e2.connect = true), N && N.value || C && Object.keys(C.value).length) {
|
|
12620
12655
|
let t = Array.isArray(k.value) ? k.value : [k.value];
|
|
12621
|
-
|
|
12656
|
+
e2.handleAttributes = t.map((e3) => Object.assign({}, C.value, N && N.value ? { "aria-labelledby": N.value } : {}));
|
|
12622
12657
|
}
|
|
12623
|
-
return E.value && (
|
|
12658
|
+
return E.value && (e2.ariaFormat = L.value), e2;
|
|
12624
12659
|
}), T = computed(() => {
|
|
12625
|
-
let
|
|
12626
|
-
return S.value && (
|
|
12660
|
+
let e2 = { id: y && y.value ? y.value : void 0 };
|
|
12661
|
+
return S.value && (e2.disabled = true), e2;
|
|
12627
12662
|
}), z = computed(() => Array.isArray(k.value)), H = () => {
|
|
12628
|
-
let
|
|
12629
|
-
return Array.isArray(
|
|
12630
|
-
}, q = function(
|
|
12663
|
+
let e2 = D.value.get();
|
|
12664
|
+
return Array.isArray(e2) ? e2.map((e3) => parseFloat(e3)) : parseFloat(e2);
|
|
12665
|
+
}, q = function(e2) {
|
|
12631
12666
|
let t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
|
|
12632
|
-
D.value.set(
|
|
12633
|
-
}, R = (
|
|
12634
|
-
s2.emit("input",
|
|
12667
|
+
D.value.set(e2, t);
|
|
12668
|
+
}, R = (e2) => {
|
|
12669
|
+
s2.emit("input", e2), s2.emit("update:modelValue", e2), s2.emit("update", e2);
|
|
12635
12670
|
}, B = () => {
|
|
12636
12671
|
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", () => {
|
|
12637
|
-
const
|
|
12638
|
-
s2.emit("change",
|
|
12672
|
+
const e2 = H();
|
|
12673
|
+
s2.emit("change", e2), s2.emit("set", e2), P.value && R(e2);
|
|
12639
12674
|
}), D.value.on("update", () => {
|
|
12640
12675
|
if (!j.value)
|
|
12641
12676
|
return;
|
|
12642
|
-
const
|
|
12643
|
-
z.value && h(k.value,
|
|
12677
|
+
const e2 = H();
|
|
12678
|
+
z.value && h(k.value, e2) || !z.value && k.value == e2 ? s2.emit("update", e2) : P.value || R(e2);
|
|
12644
12679
|
}), D.value.on("start", () => {
|
|
12645
12680
|
s2.emit("start", H());
|
|
12646
12681
|
}), D.value.on("end", () => {
|
|
@@ -12649,48 +12684,48 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
12649
12684
|
s2.emit("slide", H());
|
|
12650
12685
|
}), D.value.on("drag", () => {
|
|
12651
12686
|
s2.emit("drag", H());
|
|
12652
|
-
}), O.value.querySelectorAll("[data-handle]").forEach((
|
|
12653
|
-
|
|
12654
|
-
O.value && U.value.focused.split(" ").forEach((
|
|
12655
|
-
O.value.classList.remove(
|
|
12687
|
+
}), O.value.querySelectorAll("[data-handle]").forEach((e2) => {
|
|
12688
|
+
e2.onblur = () => {
|
|
12689
|
+
O.value && U.value.focused.split(" ").forEach((e3) => {
|
|
12690
|
+
O.value.classList.remove(e3);
|
|
12656
12691
|
});
|
|
12657
|
-
},
|
|
12658
|
-
U.value.focused.split(" ").forEach((
|
|
12659
|
-
O.value.classList.add(
|
|
12692
|
+
}, e2.onfocus = () => {
|
|
12693
|
+
U.value.focused.split(" ").forEach((e3) => {
|
|
12694
|
+
O.value.classList.add(e3);
|
|
12660
12695
|
});
|
|
12661
12696
|
};
|
|
12662
12697
|
}), j.value = true;
|
|
12663
12698
|
}, _ = () => {
|
|
12664
12699
|
D.value.off(), D.value.destroy(), D.value = null;
|
|
12665
|
-
}, $ = (
|
|
12700
|
+
}, $ = (e2, t) => {
|
|
12666
12701
|
j.value = false, _(), B();
|
|
12667
12702
|
};
|
|
12668
|
-
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, (
|
|
12669
|
-
t && ("object" == typeof t && "object" == typeof
|
|
12670
|
-
}, { immediate: false }), watch(k, (
|
|
12671
|
-
if (u(
|
|
12703
|
+
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) => {
|
|
12704
|
+
t && ("object" == typeof t && "object" == typeof e2 && e2 && Object.keys(t) > Object.keys(e2) || "object" == typeof t && "object" != typeof e2 || u(e2)) && $();
|
|
12705
|
+
}, { immediate: false }), watch(k, (e2) => {
|
|
12706
|
+
if (u(e2))
|
|
12672
12707
|
return void q(v.value, false);
|
|
12673
12708
|
let t = H();
|
|
12674
|
-
z.value && !Array.isArray(t) && (t = [t]), (z.value && !h(
|
|
12709
|
+
z.value && !Array.isArray(t) && (t = [t]), (z.value && !h(e2, t) || !z.value && e2 != t) && q(e2, false);
|
|
12675
12710
|
}, { deep: true }), { slider: O, slider$: D, isRange: z, sliderProps: T, init: B, destroy: _, refresh: $, update: q, reset: () => {
|
|
12676
12711
|
R(V.value);
|
|
12677
12712
|
} };
|
|
12678
12713
|
}(a, s, { value: l.value, initialValue: l.initialValue, tooltipFormat: p2.tooltipFormat, tooltipsFormat: p2.tooltipsFormat, tooltipsMerge: p2.tooltipsMerge, classList: c2.classList });
|
|
12679
12714
|
return __spreadValues2(__spreadValues2(__spreadValues2({}, c2), p2), m2);
|
|
12680
12715
|
} };
|
|
12681
|
-
m.render = function(
|
|
12682
|
-
return openBlock(), createElementBlock("div", mergeProps(
|
|
12716
|
+
m.render = function(e2, t, r, i, n, o) {
|
|
12717
|
+
return openBlock(), createElementBlock("div", mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
12683
12718
|
}, m.__file = "src/Slider.vue";
|
|
12684
12719
|
const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
|
|
12685
12720
|
const _hoisted_2$x = {
|
|
12686
12721
|
key: 0,
|
|
12687
12722
|
class: "lupa-stats-facet-summary"
|
|
12688
12723
|
};
|
|
12689
|
-
const _hoisted_3$
|
|
12724
|
+
const _hoisted_3$o = {
|
|
12690
12725
|
key: 1,
|
|
12691
12726
|
class: "lupa-stats-facet-summary-input"
|
|
12692
12727
|
};
|
|
12693
|
-
const _hoisted_4$
|
|
12728
|
+
const _hoisted_4$i = {
|
|
12694
12729
|
key: 0,
|
|
12695
12730
|
class: "lupa-stats-range-label"
|
|
12696
12731
|
};
|
|
@@ -12883,9 +12918,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
12883
12918
|
};
|
|
12884
12919
|
return (_ctx, _cache) => {
|
|
12885
12920
|
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
12886
|
-
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12921
|
+
!isInputVisible.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, toDisplayString(statsSummary.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$o, [
|
|
12887
12922
|
createBaseVNode("div", null, [
|
|
12888
|
-
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12923
|
+
rangeLabelFrom.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, toDisplayString(rangeLabelFrom.value), 1)) : createCommentVNode("", true),
|
|
12889
12924
|
createBaseVNode("div", _hoisted_5$b, [
|
|
12890
12925
|
withDirectives(createBaseVNode("input", {
|
|
12891
12926
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -12951,8 +12986,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
12951
12986
|
});
|
|
12952
12987
|
const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
|
|
12953
12988
|
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
12954
|
-
const _hoisted_3$
|
|
12955
|
-
const _hoisted_4$
|
|
12989
|
+
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
12990
|
+
const _hoisted_4$h = {
|
|
12956
12991
|
key: 0,
|
|
12957
12992
|
class: "lupa-term-count"
|
|
12958
12993
|
};
|
|
@@ -13012,8 +13047,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
13012
13047
|
}, null, 2)
|
|
13013
13048
|
]),
|
|
13014
13049
|
createBaseVNode("div", _hoisted_2$w, [
|
|
13015
|
-
createBaseVNode("span", _hoisted_3$
|
|
13016
|
-
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
13050
|
+
createBaseVNode("span", _hoisted_3$n, toDisplayString(_ctx.item.title) + toDisplayString(" "), 1),
|
|
13051
|
+
_ctx.options.showDocumentCount ? (openBlock(), createElementBlock("span", _hoisted_4$h, "(" + toDisplayString(_ctx.item.count) + ")", 1)) : createCommentVNode("", true)
|
|
13017
13052
|
])
|
|
13018
13053
|
]),
|
|
13019
13054
|
showChildren.value ? (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
@@ -13037,7 +13072,7 @@ const _hoisted_1$H = {
|
|
|
13037
13072
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
13038
13073
|
};
|
|
13039
13074
|
const _hoisted_2$v = { key: 0 };
|
|
13040
|
-
const _hoisted_3$
|
|
13075
|
+
const _hoisted_3$m = ["placeholder"];
|
|
13041
13076
|
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
13042
13077
|
__name: "HierarchyFacet",
|
|
13043
13078
|
props: {
|
|
@@ -13095,7 +13130,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
13095
13130
|
"data-cy": "lupa-term-filter",
|
|
13096
13131
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
13097
13132
|
placeholder: _ctx.options.labels.facetFilter
|
|
13098
|
-
}, null, 8, _hoisted_3$
|
|
13133
|
+
}, null, 8, _hoisted_3$m), [
|
|
13099
13134
|
[vModelText, termFilter.value]
|
|
13100
13135
|
])
|
|
13101
13136
|
])) : createCommentVNode("", true),
|
|
@@ -13199,12 +13234,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent(__spreadProps2(__spreadValue
|
|
|
13199
13234
|
onBeforeUnmount(() => {
|
|
13200
13235
|
window.removeEventListener("click", handleMouseClick);
|
|
13201
13236
|
});
|
|
13202
|
-
const handleMouseClick = (
|
|
13237
|
+
const handleMouseClick = (e2) => {
|
|
13203
13238
|
const el = facetPanel.value;
|
|
13204
13239
|
if (!el) {
|
|
13205
13240
|
return;
|
|
13206
13241
|
}
|
|
13207
|
-
const isOutsideElement = el && !el.contains(
|
|
13242
|
+
const isOutsideElement = el && !el.contains(e2.target);
|
|
13208
13243
|
if (isOutsideElement) {
|
|
13209
13244
|
isOpen.value = false;
|
|
13210
13245
|
}
|
|
@@ -13524,8 +13559,8 @@ const _hoisted_1$B = {
|
|
|
13524
13559
|
class: "lupa-mobile-filter-sidebar"
|
|
13525
13560
|
};
|
|
13526
13561
|
const _hoisted_2$r = ["onClick"];
|
|
13527
|
-
const _hoisted_3$
|
|
13528
|
-
const _hoisted_4$
|
|
13562
|
+
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
13563
|
+
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
13529
13564
|
const _hoisted_5$9 = { class: "lupa-sidebar-title" };
|
|
13530
13565
|
const _hoisted_6$6 = {
|
|
13531
13566
|
key: 0,
|
|
@@ -13568,8 +13603,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
13568
13603
|
class: "lupa-sidebar-close",
|
|
13569
13604
|
onClick: withModifiers(handleMobileToggle, ["stop"])
|
|
13570
13605
|
}, null, 8, _hoisted_2$r),
|
|
13571
|
-
createBaseVNode("div", _hoisted_3$
|
|
13572
|
-
createBaseVNode("div", _hoisted_4$
|
|
13606
|
+
createBaseVNode("div", _hoisted_3$l, [
|
|
13607
|
+
createBaseVNode("div", _hoisted_4$g, [
|
|
13573
13608
|
createBaseVNode("div", _hoisted_5$9, [
|
|
13574
13609
|
createTextVNode(toDisplayString(sidebarTitle.value) + " ", 1),
|
|
13575
13610
|
isFilterCountVisible.value ? (openBlock(), createElementBlock("span", _hoisted_6$6, toDisplayString(unref(currentFilterCount)), 1)) : createCommentVNode("", true)
|
|
@@ -13593,11 +13628,11 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
13593
13628
|
});
|
|
13594
13629
|
const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
|
|
13595
13630
|
const _hoisted_2$q = ["href", "onClick"];
|
|
13596
|
-
const _hoisted_3$
|
|
13631
|
+
const _hoisted_3$k = {
|
|
13597
13632
|
key: 1,
|
|
13598
13633
|
class: "lupa-search-results-breadcrumb-text"
|
|
13599
13634
|
};
|
|
13600
|
-
const _hoisted_4$
|
|
13635
|
+
const _hoisted_4$f = { key: 2 };
|
|
13601
13636
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
13602
13637
|
__name: "SearchResultsBreadcrumbs",
|
|
13603
13638
|
props: {
|
|
@@ -13633,12 +13668,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
13633
13668
|
key: 0,
|
|
13634
13669
|
class: "lupa-search-results-breadcrumb-link",
|
|
13635
13670
|
href: breadcrumb.link,
|
|
13636
|
-
onClick: (
|
|
13671
|
+
onClick: (e2) => {
|
|
13637
13672
|
var _a;
|
|
13638
|
-
return handleNavigation(
|
|
13673
|
+
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
13639
13674
|
}
|
|
13640
|
-
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$
|
|
13641
|
-
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
13675
|
+
}, toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
13676
|
+
index < breadcrumbsValue.value.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$f, " / ")) : createCommentVNode("", true)
|
|
13642
13677
|
]);
|
|
13643
13678
|
}), 128))
|
|
13644
13679
|
]);
|
|
@@ -13743,8 +13778,8 @@ const _hoisted_2$p = {
|
|
|
13743
13778
|
key: 0,
|
|
13744
13779
|
class: "lupa-page-number-separator"
|
|
13745
13780
|
};
|
|
13746
|
-
const _hoisted_3$
|
|
13747
|
-
const _hoisted_4$
|
|
13781
|
+
const _hoisted_3$j = ["onClick"];
|
|
13782
|
+
const _hoisted_4$e = {
|
|
13748
13783
|
key: 0,
|
|
13749
13784
|
class: "lupa-page-number-separator"
|
|
13750
13785
|
};
|
|
@@ -13847,10 +13882,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
13847
13882
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
13848
13883
|
]),
|
|
13849
13884
|
"data-cy": "lupa-page-number"
|
|
13850
|
-
}, toDisplayString(page), 11, _hoisted_3$
|
|
13885
|
+
}, toDisplayString(page), 11, _hoisted_3$j);
|
|
13851
13886
|
}), 128)),
|
|
13852
13887
|
showLastPage.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
13853
|
-
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
13888
|
+
showLastPageSeparator.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, "...")) : createCommentVNode("", true),
|
|
13854
13889
|
createBaseVNode("div", {
|
|
13855
13890
|
class: "lupa-page-number lupa-page-number-last",
|
|
13856
13891
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -13874,8 +13909,8 @@ const _hoisted_1$v = {
|
|
|
13874
13909
|
"data-cy": "lupa-search-results-page-size"
|
|
13875
13910
|
};
|
|
13876
13911
|
const _hoisted_2$o = { id: "lupa-select" };
|
|
13877
|
-
const _hoisted_3$
|
|
13878
|
-
const _hoisted_4$
|
|
13912
|
+
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
13913
|
+
const _hoisted_4$d = ["aria-label"];
|
|
13879
13914
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
13880
13915
|
__name: "SearchResultsPageSize",
|
|
13881
13916
|
props: {
|
|
@@ -13895,8 +13930,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
13895
13930
|
var _a, _b;
|
|
13896
13931
|
return (_b = (_a = props.labels) == null ? void 0 : _a.pageSize) != null ? _b : "";
|
|
13897
13932
|
});
|
|
13898
|
-
const handleSelect = (
|
|
13899
|
-
const value =
|
|
13933
|
+
const handleSelect = (e2) => {
|
|
13934
|
+
const value = e2.target.value;
|
|
13900
13935
|
paramsStore.appendParams({
|
|
13901
13936
|
params: [{ name: optionsStore.getQueryParamName(QUERY_PARAMS$1.LIMIT), value }],
|
|
13902
13937
|
paramsToRemove: [optionsStore.getQueryParamName(QUERY_PARAMS$1.PAGE)]
|
|
@@ -13905,7 +13940,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
13905
13940
|
return (_ctx, _cache) => {
|
|
13906
13941
|
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
13907
13942
|
createBaseVNode("div", _hoisted_2$o, [
|
|
13908
|
-
createBaseVNode("label", _hoisted_3$
|
|
13943
|
+
createBaseVNode("label", _hoisted_3$i, toDisplayString(label.value), 1),
|
|
13909
13944
|
createBaseVNode("select", {
|
|
13910
13945
|
class: "lupa-select-dropdown",
|
|
13911
13946
|
"aria-label": label.value,
|
|
@@ -13917,7 +13952,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
13917
13952
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options.sizes, (option) => {
|
|
13918
13953
|
return openBlock(), createElementBlock("option", { key: option }, toDisplayString(prefixLabel.value) + toDisplayString(option), 1);
|
|
13919
13954
|
}), 128))
|
|
13920
|
-
], 40, _hoisted_4$
|
|
13955
|
+
], 40, _hoisted_4$d)
|
|
13921
13956
|
])
|
|
13922
13957
|
]);
|
|
13923
13958
|
};
|
|
@@ -13928,8 +13963,8 @@ const _hoisted_1$u = {
|
|
|
13928
13963
|
class: "lupa-search-results-sort"
|
|
13929
13964
|
};
|
|
13930
13965
|
const _hoisted_2$n = { id: "lupa-select" };
|
|
13931
|
-
const _hoisted_3$
|
|
13932
|
-
const _hoisted_4$
|
|
13966
|
+
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
13967
|
+
const _hoisted_4$c = ["aria-label"];
|
|
13933
13968
|
const _hoisted_5$8 = ["value"];
|
|
13934
13969
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
13935
13970
|
__name: "SearchResultsSort",
|
|
@@ -13982,7 +14017,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13982
14017
|
return (_ctx, _cache) => {
|
|
13983
14018
|
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
13984
14019
|
createBaseVNode("div", _hoisted_2$n, [
|
|
13985
|
-
createBaseVNode("label", _hoisted_3$
|
|
14020
|
+
createBaseVNode("label", _hoisted_3$h, toDisplayString(_ctx.options.label), 1),
|
|
13986
14021
|
withDirectives(createBaseVNode("select", {
|
|
13987
14022
|
class: "lupa-select-dropdown",
|
|
13988
14023
|
"aria-label": _ctx.options.label,
|
|
@@ -13997,7 +14032,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
13997
14032
|
value: option.key
|
|
13998
14033
|
}, toDisplayString(option.label), 9, _hoisted_5$8);
|
|
13999
14034
|
}), 128))
|
|
14000
|
-
], 40, _hoisted_4$
|
|
14035
|
+
], 40, _hoisted_4$c), [
|
|
14001
14036
|
[vModelSelect, selectedKey.value]
|
|
14002
14037
|
])
|
|
14003
14038
|
])
|
|
@@ -14010,8 +14045,8 @@ const _hoisted_2$m = {
|
|
|
14010
14045
|
key: 0,
|
|
14011
14046
|
class: "lupa-toolbar-right-title"
|
|
14012
14047
|
};
|
|
14013
|
-
const _hoisted_3$
|
|
14014
|
-
const _hoisted_4$
|
|
14048
|
+
const _hoisted_3$g = { key: 2 };
|
|
14049
|
+
const _hoisted_4$b = { key: 4 };
|
|
14015
14050
|
const _hoisted_5$7 = { key: 6 };
|
|
14016
14051
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
14017
14052
|
const _hoisted_7$3 = {
|
|
@@ -14129,13 +14164,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
14129
14164
|
}, [
|
|
14130
14165
|
createBaseVNode("div", _hoisted_1$t, [
|
|
14131
14166
|
toolbarLeftLabel.value ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(toolbarLeftLabel.value), 1)) : createCommentVNode("", true),
|
|
14132
|
-
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
14167
|
+
showLayoutSelection.value ? (openBlock(), createBlock(_sfc_main$B, { key: 1 })) : (openBlock(), createElementBlock("div", _hoisted_3$g)),
|
|
14133
14168
|
showItemSummary.value ? (openBlock(), createBlock(_sfc_main$T, {
|
|
14134
14169
|
key: 3,
|
|
14135
14170
|
label: searchSummaryLabel.value,
|
|
14136
14171
|
clearable: unref(hasAnyFilter) && showFilterClear.value,
|
|
14137
14172
|
onClear: handleClearAll
|
|
14138
|
-
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
14173
|
+
}, null, 8, ["label", "clearable"])) : (openBlock(), createElementBlock("div", _hoisted_4$b)),
|
|
14139
14174
|
displayPageSelect.value ? (openBlock(), createBlock(_sfc_main$z, {
|
|
14140
14175
|
key: 5,
|
|
14141
14176
|
options: paginationOptions.value.pageSelect,
|
|
@@ -14183,11 +14218,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14183
14218
|
});
|
|
14184
14219
|
const _hoisted_1$s = ["innerHTML"];
|
|
14185
14220
|
const _hoisted_2$l = ["title"];
|
|
14186
|
-
const _hoisted_3$
|
|
14221
|
+
const _hoisted_3$f = {
|
|
14187
14222
|
key: 0,
|
|
14188
14223
|
class: "lupa-search-results-product-title-text"
|
|
14189
14224
|
};
|
|
14190
|
-
const _hoisted_4$
|
|
14225
|
+
const _hoisted_4$a = ["href"];
|
|
14191
14226
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
14192
14227
|
__name: "SearchResultsProductTitle",
|
|
14193
14228
|
props: {
|
|
@@ -14227,13 +14262,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
14227
14262
|
style: normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
14228
14263
|
title: title.value
|
|
14229
14264
|
}, [
|
|
14230
|
-
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
14265
|
+
!_ctx.options.link ? (openBlock(), createElementBlock("span", _hoisted_3$f, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
14231
14266
|
_ctx.options.link ? (openBlock(), createElementBlock("a", {
|
|
14232
14267
|
key: 1,
|
|
14233
14268
|
href: _ctx.link,
|
|
14234
14269
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
14235
14270
|
onClick: handleNavigation
|
|
14236
|
-
}, toDisplayString(title.value), 9, _hoisted_4$
|
|
14271
|
+
}, toDisplayString(title.value), 9, _hoisted_4$a)) : createCommentVNode("", true)
|
|
14237
14272
|
], 12, _hoisted_2$l));
|
|
14238
14273
|
};
|
|
14239
14274
|
}
|
|
@@ -14273,8 +14308,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
14273
14308
|
});
|
|
14274
14309
|
const _hoisted_1$q = { id: "lupa-search-results-rating" };
|
|
14275
14310
|
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
14276
|
-
const _hoisted_3$
|
|
14277
|
-
const _hoisted_4$
|
|
14311
|
+
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
14312
|
+
const _hoisted_4$9 = ["innerHTML"];
|
|
14278
14313
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
14279
14314
|
const _hoisted_6$4 = ["innerHTML"];
|
|
14280
14315
|
const _hoisted_7$2 = ["href"];
|
|
@@ -14312,13 +14347,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
14312
14347
|
return (_ctx, _cache) => {
|
|
14313
14348
|
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
14314
14349
|
createBaseVNode("div", _hoisted_2$k, [
|
|
14315
|
-
createBaseVNode("div", _hoisted_3$
|
|
14350
|
+
createBaseVNode("div", _hoisted_3$e, [
|
|
14316
14351
|
(openBlock(true), createElementBlock(Fragment, null, renderList(baseStars.value, (star, index) => {
|
|
14317
14352
|
return openBlock(), createElementBlock("div", {
|
|
14318
14353
|
key: index,
|
|
14319
14354
|
innerHTML: star,
|
|
14320
14355
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
14321
|
-
}, null, 8, _hoisted_4$
|
|
14356
|
+
}, null, 8, _hoisted_4$9);
|
|
14322
14357
|
}), 128))
|
|
14323
14358
|
]),
|
|
14324
14359
|
createBaseVNode("div", _hoisted_5$6, [
|
|
@@ -14400,7 +14435,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
14400
14435
|
});
|
|
14401
14436
|
const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
14402
14437
|
const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
|
|
14403
|
-
const _hoisted_3$
|
|
14438
|
+
const _hoisted_3$d = ["onClick", "disabled"];
|
|
14404
14439
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
14405
14440
|
__name: "SearchResultsProductAddToCart",
|
|
14406
14441
|
props: {
|
|
@@ -14435,7 +14470,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
14435
14470
|
class: normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
14436
14471
|
"data-cy": "lupa-add-to-cart",
|
|
14437
14472
|
disabled: !inStockValue.value || loading.value
|
|
14438
|
-
}, toDisplayString(label.value), 11, _hoisted_3$
|
|
14473
|
+
}, toDisplayString(label.value), 11, _hoisted_3$d)
|
|
14439
14474
|
])
|
|
14440
14475
|
]);
|
|
14441
14476
|
};
|
|
@@ -14443,8 +14478,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
14443
14478
|
});
|
|
14444
14479
|
const _hoisted_1$m = ["innerHTML"];
|
|
14445
14480
|
const _hoisted_2$i = { key: 0 };
|
|
14446
|
-
const _hoisted_3$
|
|
14447
|
-
const _hoisted_4$
|
|
14481
|
+
const _hoisted_3$c = { key: 1 };
|
|
14482
|
+
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
14448
14483
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
14449
14484
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
14450
14485
|
__name: "SearchResultsProductCustom",
|
|
@@ -14488,8 +14523,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
14488
14523
|
key: 1,
|
|
14489
14524
|
class: className.value
|
|
14490
14525
|
}, toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
14491
|
-
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
14492
|
-
createBaseVNode("div", _hoisted_4$
|
|
14526
|
+
!label.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, toDisplayString(text.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
14527
|
+
createBaseVNode("div", _hoisted_4$8, toDisplayString(label.value), 1),
|
|
14493
14528
|
createBaseVNode("div", _hoisted_5$5, toDisplayString(text.value), 1)
|
|
14494
14529
|
]))
|
|
14495
14530
|
], 16));
|
|
@@ -14531,8 +14566,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
14531
14566
|
});
|
|
14532
14567
|
const _hoisted_1$k = { id: "lupa-search-results-rating" };
|
|
14533
14568
|
const _hoisted_2$h = ["innerHTML"];
|
|
14534
|
-
const _hoisted_3$
|
|
14535
|
-
const _hoisted_4$
|
|
14569
|
+
const _hoisted_3$b = { class: "lupa-ratings" };
|
|
14570
|
+
const _hoisted_4$7 = ["href"];
|
|
14536
14571
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
14537
14572
|
__name: "SearchResultsProductSingleStarRating",
|
|
14538
14573
|
props: {
|
|
@@ -14566,11 +14601,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
14566
14601
|
innerHTML: star.value,
|
|
14567
14602
|
class: "lupa-rating lupa-rating-highlighted"
|
|
14568
14603
|
}, null, 8, _hoisted_2$h),
|
|
14569
|
-
createBaseVNode("div", _hoisted_3$
|
|
14604
|
+
createBaseVNode("div", _hoisted_3$b, toDisplayString(rating.value), 1),
|
|
14570
14605
|
createBaseVNode("a", {
|
|
14571
14606
|
href: ratingLink.value,
|
|
14572
14607
|
class: "lupa-total-ratings"
|
|
14573
|
-
}, toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
14608
|
+
}, toDisplayString(totalRatings.value), 9, _hoisted_4$7)
|
|
14574
14609
|
]);
|
|
14575
14610
|
};
|
|
14576
14611
|
}
|
|
@@ -14665,14 +14700,15 @@ const _hoisted_2$g = {
|
|
|
14665
14700
|
key: 0,
|
|
14666
14701
|
class: "lupa-out-of-stock"
|
|
14667
14702
|
};
|
|
14668
|
-
const _hoisted_3$
|
|
14703
|
+
const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
|
|
14669
14704
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
14670
14705
|
__name: "SearchResultsProductCard",
|
|
14671
14706
|
props: {
|
|
14672
14707
|
product: {},
|
|
14673
14708
|
options: {},
|
|
14674
14709
|
isAdditionalPanel: { type: Boolean },
|
|
14675
|
-
clickTrackingSettings: {}
|
|
14710
|
+
clickTrackingSettings: {},
|
|
14711
|
+
lupaClickTrackingType: {}
|
|
14676
14712
|
},
|
|
14677
14713
|
setup(__props) {
|
|
14678
14714
|
const props = __props;
|
|
@@ -14696,11 +14732,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
14696
14732
|
});
|
|
14697
14733
|
const imageElements = computed(() => {
|
|
14698
14734
|
var _a, _b;
|
|
14699
|
-
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((
|
|
14735
|
+
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.type === DocumentElementType.IMAGE && !e2.group)) != null ? _b : [];
|
|
14700
14736
|
});
|
|
14701
14737
|
const detailElements = computed(() => {
|
|
14702
14738
|
var _a, _b;
|
|
14703
|
-
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((
|
|
14739
|
+
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.type !== DocumentElementType.IMAGE && !e2.group)) != null ? _b : [];
|
|
14704
14740
|
});
|
|
14705
14741
|
const labels = computed(() => {
|
|
14706
14742
|
return props.options.labels;
|
|
@@ -14719,7 +14755,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
14719
14755
|
var _a;
|
|
14720
14756
|
return [
|
|
14721
14757
|
...Array.from(
|
|
14722
|
-
new Set((_a = props.options.elements) == null ? void 0 : _a.map((
|
|
14758
|
+
new Set((_a = props.options.elements) == null ? void 0 : _a.map((e2) => e2.group).filter((g) => Boolean(g)))
|
|
14723
14759
|
)
|
|
14724
14760
|
];
|
|
14725
14761
|
});
|
|
@@ -14755,7 +14791,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
14755
14791
|
});
|
|
14756
14792
|
const getGroupElements = (group) => {
|
|
14757
14793
|
var _a, _b;
|
|
14758
|
-
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((
|
|
14794
|
+
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.group === group)) != null ? _b : [];
|
|
14759
14795
|
};
|
|
14760
14796
|
onMounted(() => {
|
|
14761
14797
|
checkIfIsInStock();
|
|
@@ -14764,16 +14800,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
14764
14800
|
isInStock.value = props.options.isInStock ? yield props.options.isInStock(props.product) : true;
|
|
14765
14801
|
});
|
|
14766
14802
|
const handleClick = () => {
|
|
14767
|
-
var _a, _b, _c;
|
|
14803
|
+
var _a, _b, _c, _d;
|
|
14768
14804
|
trackingStore.trackEvent({
|
|
14769
14805
|
queryKey: props.options.queryKey,
|
|
14770
14806
|
data: {
|
|
14771
14807
|
itemId: id.value,
|
|
14772
14808
|
searchQuery: query.value,
|
|
14773
|
-
type: "itemClick",
|
|
14809
|
+
type: (_a = props.lupaClickTrackingType) != null ? _a : "itemClick",
|
|
14774
14810
|
analytics: {
|
|
14775
14811
|
type: clickTrackingType.value,
|
|
14776
|
-
label: (
|
|
14812
|
+
label: (_b = trackingLabel.value) != null ? _b : "",
|
|
14777
14813
|
listLabel: trackingListLabel.value,
|
|
14778
14814
|
items: [props.product],
|
|
14779
14815
|
itemId: id.value
|
|
@@ -14781,7 +14817,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
14781
14817
|
options: { allowEmptySearchQuery: true }
|
|
14782
14818
|
}
|
|
14783
14819
|
});
|
|
14784
|
-
(
|
|
14820
|
+
(_d = (_c = searchResultOptions.value.callbacks) == null ? void 0 : _c.onProductClick) == null ? void 0 : _d.call(_c, {
|
|
14785
14821
|
queryKey: query.value,
|
|
14786
14822
|
hasResults: true,
|
|
14787
14823
|
productId: id.value
|
|
@@ -14842,7 +14878,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
14842
14878
|
}, null, 8, ["options"]),
|
|
14843
14879
|
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, toDisplayString(labels.value.outOfStock), 1)) : createCommentVNode("", true)
|
|
14844
14880
|
], 8, _hoisted_1$j),
|
|
14845
|
-
createBaseVNode("div", _hoisted_3$
|
|
14881
|
+
createBaseVNode("div", _hoisted_3$a, [
|
|
14846
14882
|
(openBlock(true), createElementBlock(Fragment, null, renderList(detailElements.value, (element) => {
|
|
14847
14883
|
return openBlock(), createBlock(_sfc_main$l, {
|
|
14848
14884
|
class: "lupa-search-results-product-element",
|
|
@@ -14885,11 +14921,11 @@ const _hoisted_1$i = {
|
|
|
14885
14921
|
"data-cy": "lupa-search-results-similar-queries"
|
|
14886
14922
|
};
|
|
14887
14923
|
const _hoisted_2$f = { class: "lupa-similar-queries-label" };
|
|
14888
|
-
const _hoisted_3$
|
|
14924
|
+
const _hoisted_3$9 = {
|
|
14889
14925
|
class: "lupa-similar-query-label",
|
|
14890
14926
|
"data-cy": "lupa-similar-query-label"
|
|
14891
14927
|
};
|
|
14892
|
-
const _hoisted_4$
|
|
14928
|
+
const _hoisted_4$6 = ["onClick"];
|
|
14893
14929
|
const _hoisted_5$4 = ["innerHTML"];
|
|
14894
14930
|
const _hoisted_6$3 = { key: 0 };
|
|
14895
14931
|
const _hoisted_7$1 = {
|
|
@@ -14930,7 +14966,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14930
14966
|
createBaseVNode("div", _hoisted_2$f, toDisplayString(_ctx.labels.similarQueries), 1),
|
|
14931
14967
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQueries.value, (similarQuery, index) => {
|
|
14932
14968
|
return openBlock(), createElementBlock("div", { key: index }, [
|
|
14933
|
-
createBaseVNode("div", _hoisted_3$
|
|
14969
|
+
createBaseVNode("div", _hoisted_3$9, [
|
|
14934
14970
|
createBaseVNode("span", null, toDisplayString(similarQueryLabel.value), 1),
|
|
14935
14971
|
createBaseVNode("span", {
|
|
14936
14972
|
id: "lupa-similar-query-text-component",
|
|
@@ -14942,7 +14978,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14942
14978
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
14943
14979
|
}, null, 8, _hoisted_5$4),
|
|
14944
14980
|
similarQuery.count ? (openBlock(), createElementBlock("span", _hoisted_6$3, " (" + toDisplayString(similarQuery.count) + ")", 1)) : createCommentVNode("", true)
|
|
14945
|
-
], 8, _hoisted_4$
|
|
14981
|
+
], 8, _hoisted_4$6)
|
|
14946
14982
|
]),
|
|
14947
14983
|
createBaseVNode("div", _hoisted_7$1, [
|
|
14948
14984
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarQuery.items, (product, index2) => {
|
|
@@ -15119,7 +15155,7 @@ const _hoisted_1$e = {
|
|
|
15119
15155
|
"data-cy": "lupa-search-results-similar-results"
|
|
15120
15156
|
};
|
|
15121
15157
|
const _hoisted_2$c = { class: "lupa-similar-results-label" };
|
|
15122
|
-
const _hoisted_3$
|
|
15158
|
+
const _hoisted_3$8 = {
|
|
15123
15159
|
class: "lupa-products",
|
|
15124
15160
|
"data-cy": "lupa-products"
|
|
15125
15161
|
};
|
|
@@ -15141,7 +15177,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15141
15177
|
return (_ctx, _cache) => {
|
|
15142
15178
|
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
15143
15179
|
createBaseVNode("div", _hoisted_2$c, toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
15144
|
-
createBaseVNode("div", _hoisted_3$
|
|
15180
|
+
createBaseVNode("div", _hoisted_3$8, [
|
|
15145
15181
|
(openBlock(true), createElementBlock(Fragment, null, renderList(similarResults.value.items, (product, index) => {
|
|
15146
15182
|
return openBlock(), createBlock(_sfc_main$k, {
|
|
15147
15183
|
style: normalizeStyle(_ctx.columnSize),
|
|
@@ -15160,12 +15196,12 @@ const _hoisted_2$b = {
|
|
|
15160
15196
|
class: "lupa-products",
|
|
15161
15197
|
"data-cy": "lupa-products"
|
|
15162
15198
|
};
|
|
15163
|
-
const _hoisted_3$
|
|
15199
|
+
const _hoisted_3$7 = {
|
|
15164
15200
|
key: 1,
|
|
15165
15201
|
class: "lupa-empty-results",
|
|
15166
15202
|
"data-cy": "lupa-no-results-in-page"
|
|
15167
15203
|
};
|
|
15168
|
-
const _hoisted_4$
|
|
15204
|
+
const _hoisted_4$5 = {
|
|
15169
15205
|
key: 3,
|
|
15170
15206
|
class: "lupa-empty-results",
|
|
15171
15207
|
"data-cy": "lupa-no-results"
|
|
@@ -15339,7 +15375,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15339
15375
|
}, null, 8, ["style", "product", "options"]);
|
|
15340
15376
|
}), 128))
|
|
15341
15377
|
]),
|
|
15342
|
-
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
15378
|
+
unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
15343
15379
|
createTextVNode(toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
15344
15380
|
_ctx.options.labels.backToFirstPage ? (openBlock(), createElementBlock("span", {
|
|
15345
15381
|
key: 0,
|
|
@@ -15357,7 +15393,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
15357
15393
|
location: "bottom",
|
|
15358
15394
|
sdkOptions: _ctx.options.options
|
|
15359
15395
|
}, null, 8, ["options", "sdkOptions"])
|
|
15360
|
-
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
15396
|
+
], 64)) : !unref(loading) && unref(currentQueryText) ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
15361
15397
|
createTextVNode(toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
15362
15398
|
createBaseVNode("span", null, toDisplayString(unref(currentQueryText)), 1)
|
|
15363
15399
|
])) : createCommentVNode("", true),
|
|
@@ -15385,7 +15421,7 @@ const _hoisted_2$a = {
|
|
|
15385
15421
|
key: 0,
|
|
15386
15422
|
class: "lupa-category-back"
|
|
15387
15423
|
};
|
|
15388
|
-
const _hoisted_3$
|
|
15424
|
+
const _hoisted_3$6 = ["href"];
|
|
15389
15425
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
15390
15426
|
__name: "CategoryTopFilters",
|
|
15391
15427
|
props: {
|
|
@@ -15424,7 +15460,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15424
15460
|
"data-cy": "lupa-category-back",
|
|
15425
15461
|
href: backUrlLink.value,
|
|
15426
15462
|
onClick: handleNavigationBack
|
|
15427
|
-
}, toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
15463
|
+
}, toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
15428
15464
|
])) : createCommentVNode("", true),
|
|
15429
15465
|
createVNode(_sfc_main$w, {
|
|
15430
15466
|
class: "lupa-toolbar-mobile",
|
|
@@ -15445,8 +15481,8 @@ const _hoisted_2$9 = {
|
|
|
15445
15481
|
id: "lupa-search-results",
|
|
15446
15482
|
class: "top-layout-wrapper"
|
|
15447
15483
|
};
|
|
15448
|
-
const _hoisted_3$
|
|
15449
|
-
const _hoisted_4$
|
|
15484
|
+
const _hoisted_3$5 = { class: "search-content" };
|
|
15485
|
+
const _hoisted_4$4 = { id: "lupa-search-results" };
|
|
15450
15486
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
15451
15487
|
__name: "SearchResults",
|
|
15452
15488
|
props: {
|
|
@@ -15686,7 +15722,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
15686
15722
|
ref: searchResultsFilters,
|
|
15687
15723
|
onFilter: handleParamsChange
|
|
15688
15724
|
}, null, 8, ["options"])) : createCommentVNode("", true),
|
|
15689
|
-
createBaseVNode("div", _hoisted_3$
|
|
15725
|
+
createBaseVNode("div", _hoisted_3$5, [
|
|
15690
15726
|
createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
15691
15727
|
createVNode(_sfc_main$S, {
|
|
15692
15728
|
options: _ctx.options,
|
|
@@ -15709,7 +15745,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
15709
15745
|
options: _ctx.options,
|
|
15710
15746
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
15711
15747
|
}, null, 8, ["options", "is-product-list"]),
|
|
15712
|
-
createBaseVNode("div", _hoisted_4$
|
|
15748
|
+
createBaseVNode("div", _hoisted_4$4, [
|
|
15713
15749
|
showFilterSidebar.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
15714
15750
|
key: 0,
|
|
15715
15751
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
@@ -16161,7 +16197,7 @@ lodash$1.exports;
|
|
|
16161
16197
|
return types;
|
|
16162
16198
|
}
|
|
16163
16199
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
16164
|
-
} catch (
|
|
16200
|
+
} catch (e2) {
|
|
16165
16201
|
}
|
|
16166
16202
|
}();
|
|
16167
16203
|
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;
|
|
@@ -16533,7 +16569,7 @@ lodash$1.exports;
|
|
|
16533
16569
|
var func = getNative(Object2, "defineProperty");
|
|
16534
16570
|
func({}, "", {});
|
|
16535
16571
|
return func;
|
|
16536
|
-
} catch (
|
|
16572
|
+
} catch (e2) {
|
|
16537
16573
|
}
|
|
16538
16574
|
}();
|
|
16539
16575
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
@@ -18565,7 +18601,7 @@ lodash$1.exports;
|
|
|
18565
18601
|
try {
|
|
18566
18602
|
value[symToStringTag] = undefined$1;
|
|
18567
18603
|
var unmasked = true;
|
|
18568
|
-
} catch (
|
|
18604
|
+
} catch (e2) {
|
|
18569
18605
|
}
|
|
18570
18606
|
var result2 = nativeObjectToString.call(value);
|
|
18571
18607
|
if (unmasked) {
|
|
@@ -18922,11 +18958,11 @@ lodash$1.exports;
|
|
|
18922
18958
|
if (func != null) {
|
|
18923
18959
|
try {
|
|
18924
18960
|
return funcToString.call(func);
|
|
18925
|
-
} catch (
|
|
18961
|
+
} catch (e2) {
|
|
18926
18962
|
}
|
|
18927
18963
|
try {
|
|
18928
18964
|
return func + "";
|
|
18929
|
-
} catch (
|
|
18965
|
+
} catch (e2) {
|
|
18930
18966
|
}
|
|
18931
18967
|
}
|
|
18932
18968
|
return "";
|
|
@@ -20613,8 +20649,8 @@ lodash$1.exports;
|
|
|
20613
20649
|
var attempt = baseRest(function(func, args) {
|
|
20614
20650
|
try {
|
|
20615
20651
|
return apply(func, undefined$1, args);
|
|
20616
|
-
} catch (
|
|
20617
|
-
return isError(
|
|
20652
|
+
} catch (e2) {
|
|
20653
|
+
return isError(e2) ? e2 : new Error2(e2);
|
|
20618
20654
|
}
|
|
20619
20655
|
});
|
|
20620
20656
|
var bindAll = flatRest(function(object, methodNames) {
|
|
@@ -21757,8 +21793,8 @@ var Carousel = defineComponent({
|
|
|
21757
21793
|
const tolerance = Math.sign(dragged.x) * 0.4;
|
|
21758
21794
|
const draggedSlides = Math.round(dragged.x / slideWidth.value + tolerance) * direction;
|
|
21759
21795
|
if (draggedSlides && !isTouch) {
|
|
21760
|
-
const captureClick = (
|
|
21761
|
-
|
|
21796
|
+
const captureClick = (e2) => {
|
|
21797
|
+
e2.stopPropagation();
|
|
21762
21798
|
window.removeEventListener("click", captureClick, true);
|
|
21763
21799
|
};
|
|
21764
21800
|
window.addEventListener("click", captureClick, true);
|
|
@@ -22062,9 +22098,18 @@ var Slide = defineComponent({
|
|
|
22062
22098
|
const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
|
|
22063
22099
|
const _hoisted_2$6 = {
|
|
22064
22100
|
key: 0,
|
|
22101
|
+
class: "lupa-recommendation-section-title"
|
|
22102
|
+
};
|
|
22103
|
+
const _hoisted_3$4 = {
|
|
22104
|
+
key: 1,
|
|
22065
22105
|
class: "lupa-recommended-products",
|
|
22066
22106
|
"data-cy": "lupa-recommended-products"
|
|
22067
22107
|
};
|
|
22108
|
+
const _hoisted_4$3 = {
|
|
22109
|
+
key: 1,
|
|
22110
|
+
class: "lupa-products",
|
|
22111
|
+
"data-cy": "lupa-products"
|
|
22112
|
+
};
|
|
22068
22113
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
22069
22114
|
__name: "Recommendations",
|
|
22070
22115
|
props: {
|
|
@@ -22073,6 +22118,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22073
22118
|
setup(__props, { expose: __expose }) {
|
|
22074
22119
|
const props = __props;
|
|
22075
22120
|
const optionsStore = useOptionsStore();
|
|
22121
|
+
const searchResultStore = useSearchResultStore();
|
|
22122
|
+
const screenStore = useScreenStore();
|
|
22123
|
+
const { columnCount } = storeToRefs(searchResultStore);
|
|
22076
22124
|
const recommendations2 = ref([]);
|
|
22077
22125
|
const recommendationsType = ref(
|
|
22078
22126
|
"recommendations_lupasearch"
|
|
@@ -22089,15 +22137,35 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22089
22137
|
eventLabel: recommendationsType.value
|
|
22090
22138
|
};
|
|
22091
22139
|
});
|
|
22140
|
+
const layoutType = computed(() => {
|
|
22141
|
+
var _a;
|
|
22142
|
+
return (_a = props.options.layoutType) != null ? _a : "carousel";
|
|
22143
|
+
});
|
|
22144
|
+
const columnSize = computed(() => `width: ${100 / columnCount.value}%`);
|
|
22145
|
+
const title = computed(() => {
|
|
22146
|
+
var _a;
|
|
22147
|
+
return (_a = props.options.recommendationLabels.title) != null ? _a : "";
|
|
22148
|
+
});
|
|
22092
22149
|
onMounted(() => {
|
|
22093
22150
|
loadRecommendations();
|
|
22151
|
+
window.addEventListener("resize", handleResize);
|
|
22152
|
+
handleResize();
|
|
22094
22153
|
optionsStore.setSearchResultOptions({
|
|
22095
22154
|
options: props.options
|
|
22096
22155
|
});
|
|
22097
22156
|
});
|
|
22157
|
+
onBeforeUnmount(() => {
|
|
22158
|
+
window.removeEventListener("resize", handleResize);
|
|
22159
|
+
});
|
|
22098
22160
|
const getProductKeyAction = (index, product) => {
|
|
22099
22161
|
return getProductKey(index.toString(), product, props.options.idKey);
|
|
22100
22162
|
};
|
|
22163
|
+
const handleResize = () => {
|
|
22164
|
+
const doc2 = document.documentElement;
|
|
22165
|
+
doc2.style.setProperty("--lupa-full-height", `${window.innerHeight}px`);
|
|
22166
|
+
screenStore.setScreenWidth({ width: window.innerWidth });
|
|
22167
|
+
searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
|
|
22168
|
+
};
|
|
22101
22169
|
const loadRecommendations = () => {
|
|
22102
22170
|
var _a, _b, _c, _d, _e;
|
|
22103
22171
|
if ((_a = props.options.abTesting) == null ? void 0 : _a.enabled) {
|
|
@@ -22139,6 +22207,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22139
22207
|
const result = yield LupaSearchSdk.recommend(
|
|
22140
22208
|
props.options.queryKey,
|
|
22141
22209
|
props.options.itemId,
|
|
22210
|
+
props.options.filters,
|
|
22142
22211
|
props.options.options
|
|
22143
22212
|
);
|
|
22144
22213
|
if (!result.success) {
|
|
@@ -22152,8 +22221,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22152
22221
|
__expose({ fetch: fetch2 });
|
|
22153
22222
|
return (_ctx, _cache) => {
|
|
22154
22223
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
22155
|
-
|
|
22156
|
-
|
|
22224
|
+
title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
22225
|
+
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
22226
|
+
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
|
|
22157
22227
|
addons: withCtx(() => [
|
|
22158
22228
|
createVNode(unref(Navigation))
|
|
22159
22229
|
]),
|
|
@@ -22174,7 +22244,17 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22174
22244
|
}), 128))
|
|
22175
22245
|
]),
|
|
22176
22246
|
_: 1
|
|
22177
|
-
}, 16)
|
|
22247
|
+
}, 16)) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
22248
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(recommendations2.value, (product, index) => {
|
|
22249
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
22250
|
+
style: normalizeStyle(columnSize.value),
|
|
22251
|
+
key: getProductKeyAction(index, product),
|
|
22252
|
+
product,
|
|
22253
|
+
options: _ctx.options,
|
|
22254
|
+
"lupa-click-tracking-type": `recommendedItemClick`
|
|
22255
|
+
}, null, 8, ["style", "product", "options"]);
|
|
22256
|
+
}), 128))
|
|
22257
|
+
]))
|
|
22178
22258
|
])) : createCommentVNode("", true)
|
|
22179
22259
|
]);
|
|
22180
22260
|
};
|
|
@@ -22287,9 +22367,9 @@ const suggestSearchChatPhrases = (options, request, chatSettings) => __async(voi
|
|
|
22287
22367
|
const errors = yield res.json();
|
|
22288
22368
|
(_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
|
|
22289
22369
|
return { success: false, errors };
|
|
22290
|
-
} catch (
|
|
22291
|
-
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options,
|
|
22292
|
-
return { success: false, errors: [
|
|
22370
|
+
} catch (e2) {
|
|
22371
|
+
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
|
|
22372
|
+
return { success: false, errors: [e2] };
|
|
22293
22373
|
}
|
|
22294
22374
|
});
|
|
22295
22375
|
const suggestPhraseAlternatives = (options, request, chatSettings) => __async(void 0, null, function* () {
|
|
@@ -22311,9 +22391,9 @@ const suggestPhraseAlternatives = (options, request, chatSettings) => __async(vo
|
|
|
22311
22391
|
const errors = yield res.json();
|
|
22312
22392
|
(_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
|
|
22313
22393
|
return { success: false, errors };
|
|
22314
|
-
} catch (
|
|
22315
|
-
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options,
|
|
22316
|
-
return { success: false, errors: [
|
|
22394
|
+
} catch (e2) {
|
|
22395
|
+
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
|
|
22396
|
+
return { success: false, errors: [e2] };
|
|
22317
22397
|
}
|
|
22318
22398
|
});
|
|
22319
22399
|
const suggestBestProductMatches = (options, request, chatSettings) => __async(void 0, null, function* () {
|
|
@@ -22332,9 +22412,9 @@ const suggestBestProductMatches = (options, request, chatSettings) => __async(vo
|
|
|
22332
22412
|
const errors = yield res.json();
|
|
22333
22413
|
(_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
|
|
22334
22414
|
return { success: false, errors };
|
|
22335
|
-
} catch (
|
|
22336
|
-
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options,
|
|
22337
|
-
return { success: false, errors: [
|
|
22415
|
+
} catch (e2) {
|
|
22416
|
+
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
|
|
22417
|
+
return { success: false, errors: [e2] };
|
|
22338
22418
|
}
|
|
22339
22419
|
});
|
|
22340
22420
|
const prepareChatHistory = (chatLog) => {
|
|
@@ -23157,7 +23237,7 @@ lodash.exports;
|
|
|
23157
23237
|
return types;
|
|
23158
23238
|
}
|
|
23159
23239
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
23160
|
-
} catch (
|
|
23240
|
+
} catch (e2) {
|
|
23161
23241
|
}
|
|
23162
23242
|
}();
|
|
23163
23243
|
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;
|
|
@@ -23529,7 +23609,7 @@ lodash.exports;
|
|
|
23529
23609
|
var func = getNative(Object2, "defineProperty");
|
|
23530
23610
|
func({}, "", {});
|
|
23531
23611
|
return func;
|
|
23532
|
-
} catch (
|
|
23612
|
+
} catch (e2) {
|
|
23533
23613
|
}
|
|
23534
23614
|
}();
|
|
23535
23615
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
@@ -25561,7 +25641,7 @@ lodash.exports;
|
|
|
25561
25641
|
try {
|
|
25562
25642
|
value[symToStringTag] = undefined$1;
|
|
25563
25643
|
var unmasked = true;
|
|
25564
|
-
} catch (
|
|
25644
|
+
} catch (e2) {
|
|
25565
25645
|
}
|
|
25566
25646
|
var result2 = nativeObjectToString.call(value);
|
|
25567
25647
|
if (unmasked) {
|
|
@@ -25918,11 +25998,11 @@ lodash.exports;
|
|
|
25918
25998
|
if (func != null) {
|
|
25919
25999
|
try {
|
|
25920
26000
|
return funcToString.call(func);
|
|
25921
|
-
} catch (
|
|
26001
|
+
} catch (e2) {
|
|
25922
26002
|
}
|
|
25923
26003
|
try {
|
|
25924
26004
|
return func + "";
|
|
25925
|
-
} catch (
|
|
26005
|
+
} catch (e2) {
|
|
25926
26006
|
}
|
|
25927
26007
|
}
|
|
25928
26008
|
return "";
|
|
@@ -27609,8 +27689,8 @@ lodash.exports;
|
|
|
27609
27689
|
var attempt = baseRest(function(func, args) {
|
|
27610
27690
|
try {
|
|
27611
27691
|
return apply(func, undefined$1, args);
|
|
27612
|
-
} catch (
|
|
27613
|
-
return isError(
|
|
27692
|
+
} catch (e2) {
|
|
27693
|
+
return isError(e2) ? e2 : new Error2(e2);
|
|
27614
27694
|
}
|
|
27615
27695
|
});
|
|
27616
27696
|
var bindAll = flatRest(function(object, methodNames) {
|
|
@@ -28543,9 +28623,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
28543
28623
|
const openSearchContainer = () => {
|
|
28544
28624
|
isOpen.value = true;
|
|
28545
28625
|
};
|
|
28546
|
-
const checkCloseOnEscape = (
|
|
28626
|
+
const checkCloseOnEscape = (e2) => {
|
|
28547
28627
|
var _a;
|
|
28548
|
-
if (!["Escape", "Esc"].includes((_a =
|
|
28628
|
+
if (!["Escape", "Esc"].includes((_a = e2.key) != null ? _a : "")) {
|
|
28549
28629
|
return;
|
|
28550
28630
|
}
|
|
28551
28631
|
isOpen.value = false;
|
|
@@ -28688,7 +28768,7 @@ const toMaxDecimalPlaces = (value, maxDecimal = 2) => {
|
|
|
28688
28768
|
}
|
|
28689
28769
|
try {
|
|
28690
28770
|
return +parseFloat(`${value}`).toFixed(maxDecimal);
|
|
28691
|
-
} catch (
|
|
28771
|
+
} catch (e2) {
|
|
28692
28772
|
return `${value}`;
|
|
28693
28773
|
}
|
|
28694
28774
|
};
|
|
@@ -29255,7 +29335,7 @@ const clearSearchBox = (selector) => {
|
|
|
29255
29335
|
clearInstance(app.box[key].mountElement, app.box[key].app);
|
|
29256
29336
|
}
|
|
29257
29337
|
app.box = {};
|
|
29258
|
-
} catch (
|
|
29338
|
+
} catch (e2) {
|
|
29259
29339
|
}
|
|
29260
29340
|
};
|
|
29261
29341
|
const clearSearchResults = (selector) => {
|
|
@@ -29268,7 +29348,7 @@ const clearSearchResults = (selector) => {
|
|
|
29268
29348
|
clearInstance(app.results[key].mountElement, app.results[key].app);
|
|
29269
29349
|
}
|
|
29270
29350
|
app.results = {};
|
|
29271
|
-
} catch (
|
|
29351
|
+
} catch (e2) {
|
|
29272
29352
|
}
|
|
29273
29353
|
};
|
|
29274
29354
|
const clearProductList = (selector) => {
|
|
@@ -29281,7 +29361,7 @@ const clearProductList = (selector) => {
|
|
|
29281
29361
|
clearInstance(app.productList[key].mountElement, app.productList[key].app);
|
|
29282
29362
|
}
|
|
29283
29363
|
app.productList = {};
|
|
29284
|
-
} catch (
|
|
29364
|
+
} catch (e2) {
|
|
29285
29365
|
}
|
|
29286
29366
|
};
|
|
29287
29367
|
const clearSearchContainer = (selector) => {
|
|
@@ -29294,7 +29374,7 @@ const clearSearchContainer = (selector) => {
|
|
|
29294
29374
|
clearInstance(app.searchContainer[key].mountElement, app.searchContainer[key].app);
|
|
29295
29375
|
}
|
|
29296
29376
|
app.searchContainer = {};
|
|
29297
|
-
} catch (
|
|
29377
|
+
} catch (e2) {
|
|
29298
29378
|
}
|
|
29299
29379
|
};
|
|
29300
29380
|
const clearRecommendations = (selector) => {
|
|
@@ -29307,7 +29387,7 @@ const clearRecommendations = (selector) => {
|
|
|
29307
29387
|
clearInstance(app.recommendations[key].mountElement, app.recommendations[key].app);
|
|
29308
29388
|
}
|
|
29309
29389
|
app.recommendations = {};
|
|
29310
|
-
} catch (
|
|
29390
|
+
} catch (e2) {
|
|
29311
29391
|
}
|
|
29312
29392
|
};
|
|
29313
29393
|
const clearChat = (selector) => {
|
|
@@ -29320,7 +29400,7 @@ const clearChat = (selector) => {
|
|
|
29320
29400
|
clearInstance(app.chat[key].mountElement, app.chat[key].app);
|
|
29321
29401
|
}
|
|
29322
29402
|
app.chat = {};
|
|
29323
|
-
} catch (
|
|
29403
|
+
} catch (e2) {
|
|
29324
29404
|
}
|
|
29325
29405
|
};
|
|
29326
29406
|
const lupaSearch = {
|