@getlupa/vue 0.12.5 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lupaContainerStyle.css +1 -1
- package/dist/lupaSearch.js +752 -672
- package/dist/lupaSearch.mjs +752 -672
- package/dist/src/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +8 -0
- package/dist/src/types/recommendations/RecommendationsOptions.d.ts +8 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lupaSearch.js
CHANGED
|
@@ -23,15 +23,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23
23
|
var fulfilled = (value) => {
|
|
24
24
|
try {
|
|
25
25
|
step(generator.next(value));
|
|
26
|
-
} catch (
|
|
27
|
-
reject(
|
|
26
|
+
} catch (e2) {
|
|
27
|
+
reject(e2);
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
var rejected = (value) => {
|
|
31
31
|
try {
|
|
32
32
|
step(generator.throw(value));
|
|
33
|
-
} catch (
|
|
34
|
-
reject(
|
|
33
|
+
} catch (e2) {
|
|
34
|
+
reject(e2);
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
@@ -107,7 +107,7 @@ class ApiProxy {
|
|
|
107
107
|
const raw = localStorage.getItem(localSettingsSaveId);
|
|
108
108
|
const data = JSON.parse(raw);
|
|
109
109
|
Object.assign(currentSettings, data);
|
|
110
|
-
} catch (
|
|
110
|
+
} catch (e2) {
|
|
111
111
|
}
|
|
112
112
|
this.fallbacks = {
|
|
113
113
|
getSettings() {
|
|
@@ -116,7 +116,7 @@ class ApiProxy {
|
|
|
116
116
|
setSettings(value) {
|
|
117
117
|
try {
|
|
118
118
|
localStorage.setItem(localSettingsSaveId, JSON.stringify(value));
|
|
119
|
-
} catch (
|
|
119
|
+
} catch (e2) {
|
|
120
120
|
}
|
|
121
121
|
currentSettings = value;
|
|
122
122
|
},
|
|
@@ -252,14 +252,14 @@ function corsEnabled(url) {
|
|
|
252
252
|
xhr.open("HEAD", url, false);
|
|
253
253
|
try {
|
|
254
254
|
xhr.send();
|
|
255
|
-
} catch (
|
|
255
|
+
} catch (e2) {
|
|
256
256
|
}
|
|
257
257
|
return xhr.status >= 200 && xhr.status <= 299;
|
|
258
258
|
}
|
|
259
259
|
function click(node) {
|
|
260
260
|
try {
|
|
261
261
|
node.dispatchEvent(new MouseEvent("click"));
|
|
262
|
-
} catch (
|
|
262
|
+
} catch (e2) {
|
|
263
263
|
const evt = document.createEvent("MouseEvents");
|
|
264
264
|
evt.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null);
|
|
265
265
|
node.dispatchEvent(evt);
|
|
@@ -1523,6 +1523,33 @@ const DEFAULT_PAGE_SIZE_SELECTION = [12, 24, 36, 60];
|
|
|
1523
1523
|
const LUPA_ROUTING_EVENT = "lupaRedirect";
|
|
1524
1524
|
const RATING_STAR_HTML = "☆";
|
|
1525
1525
|
const RESULT_ROOT_SELECTOR = "#lupa-search-results";
|
|
1526
|
+
/**
|
|
1527
|
+
* @preserve jquery-param (c) KNOWLEDGECODE | MIT
|
|
1528
|
+
*/
|
|
1529
|
+
var e = function(e2) {
|
|
1530
|
+
var n = [], o = function(e3, o2) {
|
|
1531
|
+
o2 = null == (o2 = "function" == typeof o2 ? o2() : o2) ? "" : o2, n[n.length] = encodeURIComponent(e3) + "=" + encodeURIComponent(o2);
|
|
1532
|
+
}, t = function(e3, r) {
|
|
1533
|
+
var f2, i, l;
|
|
1534
|
+
if (e3)
|
|
1535
|
+
if (Array.isArray(r))
|
|
1536
|
+
for (f2 = 0, i = r.length; f2 < i; f2++)
|
|
1537
|
+
t(e3 + "[" + ("object" == typeof r[f2] && r[f2] ? f2 : "") + "]", r[f2]);
|
|
1538
|
+
else if ("[object Object]" === Object.prototype.toString.call(r))
|
|
1539
|
+
for (l in r)
|
|
1540
|
+
t(e3 + "[" + l + "]", r[l]);
|
|
1541
|
+
else
|
|
1542
|
+
o(e3, r);
|
|
1543
|
+
else if (Array.isArray(r))
|
|
1544
|
+
for (f2 = 0, i = r.length; f2 < i; f2++)
|
|
1545
|
+
o(r[f2].name, r[f2].value);
|
|
1546
|
+
else
|
|
1547
|
+
for (l in r)
|
|
1548
|
+
t(l, r[l]);
|
|
1549
|
+
return n;
|
|
1550
|
+
};
|
|
1551
|
+
return t("", e2).join("&");
|
|
1552
|
+
};
|
|
1526
1553
|
const production = "https://api.lupasearch.com/v1/";
|
|
1527
1554
|
const staging = "https://api.staging.lupasearch.com/v1/";
|
|
1528
1555
|
const Env$1 = {
|
|
@@ -1545,15 +1572,15 @@ var __awaiter = globalThis && globalThis.__awaiter || function(thisArg, _argumen
|
|
|
1545
1572
|
function fulfilled(value) {
|
|
1546
1573
|
try {
|
|
1547
1574
|
step(generator.next(value));
|
|
1548
|
-
} catch (
|
|
1549
|
-
reject(
|
|
1575
|
+
} catch (e2) {
|
|
1576
|
+
reject(e2);
|
|
1550
1577
|
}
|
|
1551
1578
|
}
|
|
1552
1579
|
function rejected(value) {
|
|
1553
1580
|
try {
|
|
1554
1581
|
step(generator["throw"](value));
|
|
1555
|
-
} catch (
|
|
1556
|
-
reject(
|
|
1582
|
+
} catch (e2) {
|
|
1583
|
+
reject(e2);
|
|
1557
1584
|
}
|
|
1558
1585
|
}
|
|
1559
1586
|
function step(result) {
|
|
@@ -1611,8 +1638,12 @@ const queryByIds = (queryKey, ids, environment, customBaseUrl) => __awaiter(void
|
|
|
1611
1638
|
const errors = yield res.json();
|
|
1612
1639
|
return { success: false, errors };
|
|
1613
1640
|
});
|
|
1614
|
-
const recommendForSingleId = (queryKey, recommendForId, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1615
|
-
|
|
1641
|
+
const recommendForSingleId = (queryKey, recommendForId, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1642
|
+
let url = `${getApiUrl$1(environment, customBaseUrl)}recommendations/document/${recommendForId}?recommendationQueryKey=${queryKey}`;
|
|
1643
|
+
if (filters) {
|
|
1644
|
+
url += `&${e({ filters })}`;
|
|
1645
|
+
}
|
|
1646
|
+
const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
|
|
1616
1647
|
if (res.status < 400) {
|
|
1617
1648
|
const data = yield res.json();
|
|
1618
1649
|
return Object.assign(Object.assign({}, data), { success: true });
|
|
@@ -1620,9 +1651,13 @@ const recommendForSingleId = (queryKey, recommendForId, environment, customBaseU
|
|
|
1620
1651
|
const errors = yield res.json();
|
|
1621
1652
|
return { success: false, errors };
|
|
1622
1653
|
});
|
|
1623
|
-
const recommendForMultipleIds = (queryKey, recommendForIds, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1654
|
+
const recommendForMultipleIds = (queryKey, recommendForIds, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1624
1655
|
const limitedRecommendForIds = recommendForIds.slice(0, 20);
|
|
1625
|
-
|
|
1656
|
+
let url = `${getApiUrl$1(environment, customBaseUrl)}recommendations/documentsByMultipleIds?recommendationQueryKey=${queryKey}&itemId[]=${limitedRecommendForIds.join("&itemId[]=")}`;
|
|
1657
|
+
if (filters) {
|
|
1658
|
+
url += `&${e({ filters })}`;
|
|
1659
|
+
}
|
|
1660
|
+
const res = yield fetch(url, Object.assign(Object.assign({}, defaultConfig$1), { method: "GET" }));
|
|
1626
1661
|
if (res.status < 400) {
|
|
1627
1662
|
const data = yield res.json();
|
|
1628
1663
|
return Object.assign(Object.assign({}, data), { success: true });
|
|
@@ -1630,8 +1665,8 @@ const recommendForMultipleIds = (queryKey, recommendForIds, environment, customB
|
|
|
1630
1665
|
const errors = yield res.json();
|
|
1631
1666
|
return { success: false, errors };
|
|
1632
1667
|
});
|
|
1633
|
-
const recommend = (queryKey, recommendForId, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1634
|
-
return Array.isArray(recommendForId) ? yield recommendForMultipleIds(queryKey, recommendForId, environment, customBaseUrl) : yield recommendForSingleId(queryKey, recommendForId, environment, customBaseUrl);
|
|
1668
|
+
const recommend = (queryKey, recommendForId, filters, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1669
|
+
return Array.isArray(recommendForId) ? yield recommendForMultipleIds(queryKey, recommendForId, filters, environment, customBaseUrl) : yield recommendForSingleId(queryKey, recommendForId, filters, environment, customBaseUrl);
|
|
1635
1670
|
});
|
|
1636
1671
|
const suggest = (queryKey, query, environment, customBaseUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1637
1672
|
const res = yield fetch(`${getApiUrl$1(environment, customBaseUrl)}query/${queryKey}`, Object.assign(Object.assign({}, defaultConfig$1), { body: JSON.stringify(query) }));
|
|
@@ -1649,7 +1684,7 @@ const track$1 = (queryKey, event, environment, customBaseUrl) => __awaiter(void
|
|
|
1649
1684
|
return { success: false };
|
|
1650
1685
|
}
|
|
1651
1686
|
return res.json();
|
|
1652
|
-
} catch (
|
|
1687
|
+
} catch (e2) {
|
|
1653
1688
|
return { success: false };
|
|
1654
1689
|
}
|
|
1655
1690
|
});
|
|
@@ -1677,8 +1712,8 @@ const LupaSearchSdk = {
|
|
|
1677
1712
|
track: (queryKey, eventData, options = null) => {
|
|
1678
1713
|
return track$1(queryKey, eventData, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
1679
1714
|
},
|
|
1680
|
-
recommend: (queryKey, recommendForId, options = null) => {
|
|
1681
|
-
return recommend(queryKey, recommendForId, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
1715
|
+
recommend: (queryKey, recommendForId, filters, options = null) => {
|
|
1716
|
+
return recommend(queryKey, recommendForId, filters, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
1682
1717
|
},
|
|
1683
1718
|
queryByIds: (queryKey, ids, options = null) => {
|
|
1684
1719
|
return queryByIds(queryKey, ids, (options === null || options === void 0 ? void 0 : options.environment) || "production", options === null || options === void 0 ? void 0 : options.customBaseUrl);
|
|
@@ -1809,7 +1844,7 @@ const initAnalyticsTracking = (analyticsOptions) => {
|
|
|
1809
1844
|
} else {
|
|
1810
1845
|
window.sessionStorage.removeItem(TRACKING_ANALYTICS_KEY);
|
|
1811
1846
|
}
|
|
1812
|
-
} catch (
|
|
1847
|
+
} catch (e2) {
|
|
1813
1848
|
}
|
|
1814
1849
|
};
|
|
1815
1850
|
const initBaseTracking = (enabled) => {
|
|
@@ -1821,13 +1856,13 @@ const initBaseTracking = (enabled) => {
|
|
|
1821
1856
|
clearSessionTracking();
|
|
1822
1857
|
clearUserTracking();
|
|
1823
1858
|
}
|
|
1824
|
-
} catch (
|
|
1859
|
+
} catch (e2) {
|
|
1825
1860
|
}
|
|
1826
1861
|
};
|
|
1827
1862
|
const clearSessionTracking = () => {
|
|
1828
1863
|
try {
|
|
1829
1864
|
window.sessionStorage.removeItem(TRACKING_STORAGE_KEY);
|
|
1830
|
-
} catch (
|
|
1865
|
+
} catch (e2) {
|
|
1831
1866
|
}
|
|
1832
1867
|
};
|
|
1833
1868
|
const initSessionTracking = () => {
|
|
@@ -1837,7 +1872,7 @@ const initSessionTracking = () => {
|
|
|
1837
1872
|
}
|
|
1838
1873
|
const key = getRandomString(TRACKING_KEY_LENGTH);
|
|
1839
1874
|
window.sessionStorage.setItem(TRACKING_STORAGE_KEY, key);
|
|
1840
|
-
} catch (
|
|
1875
|
+
} catch (e2) {
|
|
1841
1876
|
}
|
|
1842
1877
|
};
|
|
1843
1878
|
const initUserTracking = (userKey) => {
|
|
@@ -1847,19 +1882,19 @@ const initUserTracking = (userKey) => {
|
|
|
1847
1882
|
}
|
|
1848
1883
|
const key = userKey || getRandomString(TRACKING_KEY_LENGTH);
|
|
1849
1884
|
window.localStorage.setItem(TRACKING_STORAGE_KEY, key);
|
|
1850
|
-
} catch (
|
|
1885
|
+
} catch (e2) {
|
|
1851
1886
|
}
|
|
1852
1887
|
};
|
|
1853
1888
|
const clearUserTracking = () => {
|
|
1854
1889
|
try {
|
|
1855
1890
|
window.localStorage.removeItem(TRACKING_STORAGE_KEY);
|
|
1856
|
-
} catch (
|
|
1891
|
+
} catch (e2) {
|
|
1857
1892
|
}
|
|
1858
1893
|
};
|
|
1859
1894
|
const isTrackingEnabled = () => {
|
|
1860
1895
|
try {
|
|
1861
1896
|
return Boolean(window.sessionStorage.getItem(TRACKING_STORAGE_KEY_BASE));
|
|
1862
|
-
} catch (
|
|
1897
|
+
} catch (e2) {
|
|
1863
1898
|
return false;
|
|
1864
1899
|
}
|
|
1865
1900
|
};
|
|
@@ -1867,7 +1902,7 @@ const getSessionKey = () => {
|
|
|
1867
1902
|
var _a;
|
|
1868
1903
|
try {
|
|
1869
1904
|
return (_a = window.sessionStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
|
|
1870
|
-
} catch (
|
|
1905
|
+
} catch (e2) {
|
|
1871
1906
|
return void 0;
|
|
1872
1907
|
}
|
|
1873
1908
|
};
|
|
@@ -1875,7 +1910,7 @@ const getUserKey = () => {
|
|
|
1875
1910
|
var _a;
|
|
1876
1911
|
try {
|
|
1877
1912
|
return (_a = window.localStorage.getItem(TRACKING_STORAGE_KEY)) != null ? _a : void 0;
|
|
1878
|
-
} catch (
|
|
1913
|
+
} catch (e2) {
|
|
1879
1914
|
return void 0;
|
|
1880
1915
|
}
|
|
1881
1916
|
};
|
|
@@ -1952,7 +1987,7 @@ const trackAnalyticsEvent = (data) => {
|
|
|
1952
1987
|
default:
|
|
1953
1988
|
sendUaAnalyticsEvent(data, options);
|
|
1954
1989
|
}
|
|
1955
|
-
} catch (
|
|
1990
|
+
} catch (e2) {
|
|
1956
1991
|
console.error("Unable to send an event to google analytics");
|
|
1957
1992
|
}
|
|
1958
1993
|
};
|
|
@@ -2328,7 +2363,7 @@ const retrieveHistory = () => {
|
|
|
2328
2363
|
try {
|
|
2329
2364
|
const historyString = window.localStorage.getItem(HISTORY_LOCAL_STORAGE_KEY);
|
|
2330
2365
|
return historyString ? JSON.parse(historyString) : [];
|
|
2331
|
-
} catch (
|
|
2366
|
+
} catch (e2) {
|
|
2332
2367
|
return [];
|
|
2333
2368
|
}
|
|
2334
2369
|
};
|
|
@@ -2338,7 +2373,7 @@ const saveHistory = (items) => {
|
|
|
2338
2373
|
HISTORY_LOCAL_STORAGE_KEY,
|
|
2339
2374
|
JSON.stringify(items.slice(0, HISTORY_MAX_ITEMS))
|
|
2340
2375
|
);
|
|
2341
|
-
} catch (
|
|
2376
|
+
} catch (e2) {
|
|
2342
2377
|
}
|
|
2343
2378
|
};
|
|
2344
2379
|
const useHistoryStore = defineStore("history", () => {
|
|
@@ -2543,7 +2578,7 @@ const parseParam = (key, params) => {
|
|
|
2543
2578
|
}
|
|
2544
2579
|
try {
|
|
2545
2580
|
return decodeURIComponent(value);
|
|
2546
|
-
} catch (
|
|
2581
|
+
} catch (e2) {
|
|
2547
2582
|
return void 0;
|
|
2548
2583
|
}
|
|
2549
2584
|
};
|
|
@@ -2680,7 +2715,7 @@ const getRelativePath = (link) => {
|
|
|
2680
2715
|
const url = new URL(link);
|
|
2681
2716
|
const partialUrl = url.toString().substring(url.origin.length);
|
|
2682
2717
|
return partialUrl.endsWith("/") ? partialUrl.slice(0, partialUrl.length - 1) : partialUrl;
|
|
2683
|
-
} catch (
|
|
2718
|
+
} catch (e2) {
|
|
2684
2719
|
return (link == null ? void 0 : link.endsWith("/")) ? link.slice(0, link.length - 1) : link;
|
|
2685
2720
|
}
|
|
2686
2721
|
};
|
|
@@ -2791,7 +2826,7 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
2791
2826
|
CACHE_KEY,
|
|
2792
2827
|
JSON.stringify({ redirections: redirections.value, savedAt: Date.now() })
|
|
2793
2828
|
);
|
|
2794
|
-
} catch (
|
|
2829
|
+
} catch (e2) {
|
|
2795
2830
|
}
|
|
2796
2831
|
};
|
|
2797
2832
|
const tryLoadFromLocalStorage = (config) => {
|
|
@@ -2804,7 +2839,7 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
2804
2839
|
redirections.value = data.redirections;
|
|
2805
2840
|
return true;
|
|
2806
2841
|
}
|
|
2807
|
-
} catch (
|
|
2842
|
+
} catch (e2) {
|
|
2808
2843
|
}
|
|
2809
2844
|
return false;
|
|
2810
2845
|
};
|
|
@@ -2828,7 +2863,7 @@ const useRedirectionStore = defineStore("redirections", () => {
|
|
|
2828
2863
|
}
|
|
2829
2864
|
redirections.value = result;
|
|
2830
2865
|
saveToLocalStorage();
|
|
2831
|
-
} catch (
|
|
2866
|
+
} catch (e2) {
|
|
2832
2867
|
}
|
|
2833
2868
|
});
|
|
2834
2869
|
const redirectOnKeywordIfConfigured = (input, routingBehavior = "direct-link") => {
|
|
@@ -3249,8 +3284,8 @@ const useSearchBoxStore = defineStore("searchBox", () => {
|
|
|
3249
3284
|
});
|
|
3250
3285
|
const _hoisted_1$1f = { id: "lupa-search-box-input-container" };
|
|
3251
3286
|
const _hoisted_2$R = { class: "lupa-input-clear" };
|
|
3252
|
-
const _hoisted_3$
|
|
3253
|
-
const _hoisted_4$
|
|
3287
|
+
const _hoisted_3$B = { id: "lupa-search-box-input" };
|
|
3288
|
+
const _hoisted_4$t = ["value"];
|
|
3254
3289
|
const _hoisted_5$i = ["aria-label", "placeholder"];
|
|
3255
3290
|
const _hoisted_6$9 = /* @__PURE__ */ vue.createElementVNode("span", { class: "lupa-search-submit-icon" }, null, -1);
|
|
3256
3291
|
const _hoisted_7$7 = [
|
|
@@ -3351,13 +3386,13 @@ const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
|
|
|
3351
3386
|
onClick: clear
|
|
3352
3387
|
}, null, 2)
|
|
3353
3388
|
]),
|
|
3354
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
3389
|
+
vue.createElementVNode("div", _hoisted_3$B, [
|
|
3355
3390
|
vue.createElementVNode("input", {
|
|
3356
3391
|
class: "lupa-hint",
|
|
3357
3392
|
"aria-hidden": "true",
|
|
3358
3393
|
value: showHint.value ? suggestedValue.value.item.suggestion : "",
|
|
3359
3394
|
disabled: ""
|
|
3360
|
-
}, null, 8, _hoisted_4$
|
|
3395
|
+
}, null, 8, _hoisted_4$t),
|
|
3361
3396
|
vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
|
|
3362
3397
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event)
|
|
3363
3398
|
}, inputAttributes.value, {
|
|
@@ -3490,12 +3525,12 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
|
3490
3525
|
const goToResults = ({ query }) => {
|
|
3491
3526
|
emit("go-to-results", { query });
|
|
3492
3527
|
};
|
|
3493
|
-
const handleKeyDown = (
|
|
3528
|
+
const handleKeyDown = (e2) => {
|
|
3494
3529
|
if (!hasHistory.value || highlightIndex.value < -1) {
|
|
3495
3530
|
return;
|
|
3496
3531
|
}
|
|
3497
|
-
if (
|
|
3498
|
-
|
|
3532
|
+
if (e2.key === "Enter") {
|
|
3533
|
+
e2.preventDefault();
|
|
3499
3534
|
goToResults({ query: history.value[highlightIndex.value] });
|
|
3500
3535
|
}
|
|
3501
3536
|
};
|
|
@@ -3536,12 +3571,12 @@ const _hoisted_2$P = {
|
|
|
3536
3571
|
"data-cy": "lupa-suggestion-value",
|
|
3537
3572
|
class: "lupa-suggestion-value"
|
|
3538
3573
|
};
|
|
3539
|
-
const _hoisted_3$
|
|
3574
|
+
const _hoisted_3$A = {
|
|
3540
3575
|
key: 2,
|
|
3541
3576
|
class: "lupa-suggestion-facet",
|
|
3542
3577
|
"data-cy": "lupa-suggestion-facet"
|
|
3543
3578
|
};
|
|
3544
|
-
const _hoisted_4$
|
|
3579
|
+
const _hoisted_4$s = {
|
|
3545
3580
|
class: "lupa-suggestion-facet-label",
|
|
3546
3581
|
"data-cy": "lupa-suggestion-facet-label"
|
|
3547
3582
|
};
|
|
@@ -3586,8 +3621,8 @@ const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
|
3586
3621
|
"data-cy": "lupa-suggestion-value",
|
|
3587
3622
|
innerHTML: _ctx.suggestion.displayHighlight
|
|
3588
3623
|
}, null, 8, _hoisted_1$1b)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$P, vue.toDisplayString(_ctx.suggestion.display), 1)),
|
|
3589
|
-
_ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
3590
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
3624
|
+
_ctx.suggestion.facet ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$A, [
|
|
3625
|
+
vue.createElementVNode("span", _hoisted_4$s, vue.toDisplayString(facetLabel.value), 1),
|
|
3591
3626
|
vue.createElementVNode("span", _hoisted_5$h, vue.toDisplayString(_ctx.suggestion.facet.title), 1)
|
|
3592
3627
|
])) : vue.createCommentVNode("", true)
|
|
3593
3628
|
]);
|
|
@@ -3826,9 +3861,9 @@ const computeImageUrl = (imageUrl, rootImageUrl) => {
|
|
|
3826
3861
|
}
|
|
3827
3862
|
return rootImageUrl ? joinUrlParts(rootImageUrl, mainUrl) : `/${mainUrl}`;
|
|
3828
3863
|
};
|
|
3829
|
-
const replaceImageWithPlaceholder = (
|
|
3864
|
+
const replaceImageWithPlaceholder = (e2, placeholder) => {
|
|
3830
3865
|
var _a;
|
|
3831
|
-
const targetImage =
|
|
3866
|
+
const targetImage = e2 == null ? void 0 : e2.target;
|
|
3832
3867
|
if (targetImage && !((_a = targetImage == null ? void 0 : targetImage.src) == null ? void 0 : _a.includes(placeholder))) {
|
|
3833
3868
|
targetImage.src = placeholder;
|
|
3834
3869
|
}
|
|
@@ -3877,8 +3912,8 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
|
3877
3912
|
var _a;
|
|
3878
3913
|
return Boolean((_a = hoverImages.value) == null ? void 0 : _a.length);
|
|
3879
3914
|
});
|
|
3880
|
-
const replaceWithPlaceholder = (
|
|
3881
|
-
replaceImageWithPlaceholder(
|
|
3915
|
+
const replaceWithPlaceholder = (e2) => {
|
|
3916
|
+
replaceImageWithPlaceholder(e2, placeholder.value);
|
|
3882
3917
|
};
|
|
3883
3918
|
const setNextHoverImage = () => {
|
|
3884
3919
|
hoverImageIndex.value = (hoverImageIndex.value + 1) % hoverImages.value.length;
|
|
@@ -4087,8 +4122,8 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
4087
4122
|
});
|
|
4088
4123
|
const _hoisted_1$14 = ["innerHTML"];
|
|
4089
4124
|
const _hoisted_2$M = { key: 0 };
|
|
4090
|
-
const _hoisted_3$
|
|
4091
|
-
const _hoisted_4$
|
|
4125
|
+
const _hoisted_3$z = { key: 1 };
|
|
4126
|
+
const _hoisted_4$r = { class: "lupa-search-box-custom-label" };
|
|
4092
4127
|
const _hoisted_5$g = { class: "lupa-search-box-custom-text" };
|
|
4093
4128
|
const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
4094
4129
|
__name: "SearchBoxProductCustom",
|
|
@@ -4120,8 +4155,8 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4120
4155
|
key: 1,
|
|
4121
4156
|
class: [className.value, "lupa-search-box-product-custom"]
|
|
4122
4157
|
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
4123
|
-
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$M, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
4124
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
4158
|
+
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$M, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
|
|
4159
|
+
vue.createElementVNode("div", _hoisted_4$r, vue.toDisplayString(label.value), 1),
|
|
4125
4160
|
vue.createElementVNode("div", _hoisted_5$g, vue.toDisplayString(text.value), 1)
|
|
4126
4161
|
]))
|
|
4127
4162
|
], 16));
|
|
@@ -4379,7 +4414,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
|
|
|
4379
4414
|
});
|
|
4380
4415
|
const _hoisted_1$12 = { class: "lupa-search-box-add-to-cart-wrapper" };
|
|
4381
4416
|
const _hoisted_2$L = { class: "lupa-search-box-product-addtocart" };
|
|
4382
|
-
const _hoisted_3$
|
|
4417
|
+
const _hoisted_3$y = ["onClick", "disabled"];
|
|
4383
4418
|
const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
4384
4419
|
__name: "SearchBoxProductAddToCart",
|
|
4385
4420
|
props: {
|
|
@@ -4415,7 +4450,7 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4415
4450
|
"data-cy": "lupa-add-to-cart",
|
|
4416
4451
|
type: "button",
|
|
4417
4452
|
disabled: !inStockValue.value || loading.value
|
|
4418
|
-
}, vue.toDisplayString(label.value), 11, _hoisted_3$
|
|
4453
|
+
}, vue.toDisplayString(label.value), 11, _hoisted_3$y)
|
|
4419
4454
|
])
|
|
4420
4455
|
]);
|
|
4421
4456
|
};
|
|
@@ -4511,8 +4546,8 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
4511
4546
|
}));
|
|
4512
4547
|
const _hoisted_1$10 = { class: "lupa-badge-title" };
|
|
4513
4548
|
const _hoisted_2$K = ["src"];
|
|
4514
|
-
const _hoisted_3$
|
|
4515
|
-
const _hoisted_4$
|
|
4549
|
+
const _hoisted_3$x = { key: 1 };
|
|
4550
|
+
const _hoisted_4$q = {
|
|
4516
4551
|
key: 0,
|
|
4517
4552
|
class: "lupa-badge-full-text"
|
|
4518
4553
|
};
|
|
@@ -4554,9 +4589,9 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4554
4589
|
key: 0,
|
|
4555
4590
|
src: image.value
|
|
4556
4591
|
}, null, 8, _hoisted_2$K)) : vue.createCommentVNode("", true),
|
|
4557
|
-
hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
4592
|
+
hasTitleText.value && showTitle.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$x, vue.toDisplayString(_ctx.badge.titleText), 1)) : vue.createCommentVNode("", true)
|
|
4558
4593
|
]),
|
|
4559
|
-
hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
4594
|
+
hasAdditionalText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$q, vue.toDisplayString(_ctx.badge.additionalText), 1)) : vue.createCommentVNode("", true)
|
|
4560
4595
|
], 6);
|
|
4561
4596
|
};
|
|
4562
4597
|
}
|
|
@@ -4725,9 +4760,9 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
4725
4760
|
if (!props.options.elements) {
|
|
4726
4761
|
return [];
|
|
4727
4762
|
}
|
|
4728
|
-
return props.options.elements.filter((
|
|
4763
|
+
return props.options.elements.filter((e2) => {
|
|
4729
4764
|
var _a;
|
|
4730
|
-
return !
|
|
4765
|
+
return !e2.display || e2.display((_a = props.options.product) != null ? _a : {});
|
|
4731
4766
|
}).map((x) => {
|
|
4732
4767
|
var _a;
|
|
4733
4768
|
return __spreadProps(__spreadValues({}, x), {
|
|
@@ -4774,8 +4809,8 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadV
|
|
|
4774
4809
|
}));
|
|
4775
4810
|
const _hoisted_1$W = ["href"];
|
|
4776
4811
|
const _hoisted_2$I = { class: "lupa-search-box-product-image-section" };
|
|
4777
|
-
const _hoisted_3$
|
|
4778
|
-
const _hoisted_4$
|
|
4812
|
+
const _hoisted_3$w = { class: "lupa-search-box-product-details-section" };
|
|
4813
|
+
const _hoisted_4$p = {
|
|
4779
4814
|
key: 0,
|
|
4780
4815
|
class: "lupa-search-box-product-add-to-cart-section"
|
|
4781
4816
|
};
|
|
@@ -4801,17 +4836,17 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4801
4836
|
});
|
|
4802
4837
|
const imageElements = vue.computed(() => {
|
|
4803
4838
|
var _a, _b;
|
|
4804
|
-
return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((
|
|
4839
|
+
return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter((e2) => e2.type === DocumentElementType.IMAGE)) != null ? _b : [];
|
|
4805
4840
|
});
|
|
4806
4841
|
const detailElements = vue.computed(() => {
|
|
4807
4842
|
var _a, _b;
|
|
4808
4843
|
return (_b = (_a = props.panelOptions.elements) == null ? void 0 : _a.filter(
|
|
4809
|
-
(
|
|
4844
|
+
(e2) => e2.type !== DocumentElementType.IMAGE && e2.type !== DocumentElementType.ADDTOCART
|
|
4810
4845
|
)) != null ? _b : [];
|
|
4811
4846
|
});
|
|
4812
4847
|
const addToCartElement = vue.computed(() => {
|
|
4813
4848
|
var _a;
|
|
4814
|
-
return (_a = props.panelOptions.elements) == null ? void 0 : _a.find((
|
|
4849
|
+
return (_a = props.panelOptions.elements) == null ? void 0 : _a.find((e2) => e2.type === DocumentElementType.ADDTOCART);
|
|
4815
4850
|
});
|
|
4816
4851
|
const customDocumentHtmlAttributes = vue.computed(() => {
|
|
4817
4852
|
var _a, _b, _c;
|
|
@@ -4850,7 +4885,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4850
4885
|
}, null, 8, ["item", "element", "labels", "link"]);
|
|
4851
4886
|
}), 128))
|
|
4852
4887
|
]),
|
|
4853
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
4888
|
+
vue.createElementVNode("div", _hoisted_3$w, [
|
|
4854
4889
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
|
|
4855
4890
|
var _a;
|
|
4856
4891
|
return vue.openBlock(), vue.createBlock(_sfc_main$16, {
|
|
@@ -4874,7 +4909,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
4874
4909
|
]), 1032, ["item", "element", "labels", "link"]);
|
|
4875
4910
|
}), 128))
|
|
4876
4911
|
]),
|
|
4877
|
-
addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
4912
|
+
addToCartElement.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$p, [
|
|
4878
4913
|
vue.createVNode(_sfc_main$16, {
|
|
4879
4914
|
class: "lupa-search-box-product-element",
|
|
4880
4915
|
item: _ctx.item,
|
|
@@ -5260,11 +5295,11 @@ const _hoisted_1$T = {
|
|
|
5260
5295
|
id: "lupa-search-box-panel"
|
|
5261
5296
|
};
|
|
5262
5297
|
const _hoisted_2$G = ["data-cy"];
|
|
5263
|
-
const _hoisted_3$
|
|
5298
|
+
const _hoisted_3$v = {
|
|
5264
5299
|
key: 0,
|
|
5265
5300
|
class: "lupa-panel-title lupa-panel-title-top-results"
|
|
5266
5301
|
};
|
|
5267
|
-
const _hoisted_4$
|
|
5302
|
+
const _hoisted_4$o = {
|
|
5268
5303
|
key: 1,
|
|
5269
5304
|
class: "lupa-panel-title"
|
|
5270
5305
|
};
|
|
@@ -5345,14 +5380,14 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
5345
5380
|
window.removeEventListener("keydown", handleNavigation);
|
|
5346
5381
|
searchBoxStore.resetHighlightIndex();
|
|
5347
5382
|
});
|
|
5348
|
-
const handleNavigation = (
|
|
5349
|
-
switch (
|
|
5383
|
+
const handleNavigation = (e2) => {
|
|
5384
|
+
switch (e2.key) {
|
|
5350
5385
|
case "ArrowDown":
|
|
5351
|
-
|
|
5386
|
+
e2.preventDefault();
|
|
5352
5387
|
highlightChange({ action: "down" });
|
|
5353
5388
|
break;
|
|
5354
5389
|
case "ArrowUp":
|
|
5355
|
-
|
|
5390
|
+
e2.preventDefault();
|
|
5356
5391
|
highlightChange({ action: "up" });
|
|
5357
5392
|
break;
|
|
5358
5393
|
}
|
|
@@ -5446,8 +5481,8 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
5446
5481
|
]),
|
|
5447
5482
|
"data-cy": "lupa-panel-" + panel.type + "-index"
|
|
5448
5483
|
}, [
|
|
5449
|
-
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
5450
|
-
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
5484
|
+
((_a2 = panel.labels) == null ? void 0 : _a2.topResultsTitle) && showTopResultsPanelTitle(panel.queryKey) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$v, vue.toDisplayString((_b = panel.labels) == null ? void 0 : _b.topResultsTitle), 1)) : vue.createCommentVNode("", true),
|
|
5485
|
+
((_c = panel.labels) == null ? void 0 : _c.title) && showPanelTitle(panel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$o, vue.toDisplayString((_d = panel.labels) == null ? void 0 : _d.title), 1)) : vue.createCommentVNode("", true),
|
|
5451
5486
|
panel.queryKey && canShowPanel(panel) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getComponent(panel.type)), {
|
|
5452
5487
|
key: 2,
|
|
5453
5488
|
panel,
|
|
@@ -5502,11 +5537,11 @@ const getElements = (selectors = []) => {
|
|
|
5502
5537
|
};
|
|
5503
5538
|
const bindSearchTriggers = (triggers = [], event) => {
|
|
5504
5539
|
const elements = getElements(triggers);
|
|
5505
|
-
elements.forEach((
|
|
5540
|
+
elements.forEach((e2) => e2 == null ? void 0 : e2.addEventListener(BIND_EVENT, event));
|
|
5506
5541
|
};
|
|
5507
5542
|
const unbindSearchTriggers = (triggers = [], event) => {
|
|
5508
5543
|
const elements = getElements(triggers);
|
|
5509
|
-
elements.forEach((
|
|
5544
|
+
elements.forEach((e2) => e2 == null ? void 0 : e2.removeEventListener(BIND_EVENT, event));
|
|
5510
5545
|
};
|
|
5511
5546
|
const _hoisted_1$S = { id: "lupa-search-box" };
|
|
5512
5547
|
const _hoisted_2$F = { class: "lupa-search-box-wrapper" };
|
|
@@ -5585,12 +5620,12 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
5585
5620
|
window.removeEventListener("click", handleMouseClick);
|
|
5586
5621
|
unbindSearchTriggers(searchTriggers.value, handleCurrentValueSearch);
|
|
5587
5622
|
});
|
|
5588
|
-
const handleMouseClick = (
|
|
5623
|
+
const handleMouseClick = (e2) => {
|
|
5589
5624
|
var _a2, _b;
|
|
5590
5625
|
const el = document.getElementById("lupa-search-box");
|
|
5591
|
-
const elementClass = (_b = (_a2 =
|
|
5626
|
+
const elementClass = (_b = (_a2 = e2.target) == null ? void 0 : _a2.className) != null ? _b : "";
|
|
5592
5627
|
const hasLupaClass = typeof elementClass.includes == "function" && elementClass.includes("lupa-search-box");
|
|
5593
|
-
const isOutsideElement = el && !el.contains(
|
|
5628
|
+
const isOutsideElement = el && !el.contains(e2.target) && !hasLupaClass;
|
|
5594
5629
|
if (!isOutsideElement) {
|
|
5595
5630
|
return;
|
|
5596
5631
|
}
|
|
@@ -5601,20 +5636,20 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
5601
5636
|
opened.value = false;
|
|
5602
5637
|
suggestedValue.value = defaultSuggestedValue;
|
|
5603
5638
|
};
|
|
5604
|
-
const handleKeyDown = (
|
|
5639
|
+
const handleKeyDown = (e2) => {
|
|
5605
5640
|
var _a2, _b;
|
|
5606
5641
|
if (!opened.value) {
|
|
5607
5642
|
return;
|
|
5608
5643
|
}
|
|
5609
|
-
switch (
|
|
5644
|
+
switch (e2.key) {
|
|
5610
5645
|
case "Tab":
|
|
5611
5646
|
if ((_b = (_a2 = suggestedValue == null ? void 0 : suggestedValue.value) == null ? void 0 : _a2.item) == null ? void 0 : _b.suggestion) {
|
|
5612
|
-
|
|
5647
|
+
e2.preventDefault();
|
|
5613
5648
|
selectSuggestion(__spreadProps(__spreadValues({}, suggestedValue.value), { override: true }));
|
|
5614
5649
|
}
|
|
5615
5650
|
break;
|
|
5616
5651
|
case "Enter":
|
|
5617
|
-
|
|
5652
|
+
e2.preventDefault();
|
|
5618
5653
|
handleSearch();
|
|
5619
5654
|
resetValues();
|
|
5620
5655
|
break;
|
|
@@ -5875,8 +5910,8 @@ const getInitialSearchResults = (options, getQueryParamName, defaultData) => __a
|
|
|
5875
5910
|
try {
|
|
5876
5911
|
const result = yield LupaSearchSdk.query(options.queryKey, query, options.options);
|
|
5877
5912
|
return result;
|
|
5878
|
-
} catch (
|
|
5879
|
-
options.options.onError(
|
|
5913
|
+
} catch (e2) {
|
|
5914
|
+
options.options.onError(e2);
|
|
5880
5915
|
}
|
|
5881
5916
|
});
|
|
5882
5917
|
const _hoisted_1$R = {
|
|
@@ -5887,11 +5922,11 @@ const _hoisted_2$E = {
|
|
|
5887
5922
|
key: 0,
|
|
5888
5923
|
"data-cy": "suggested-search-text-label"
|
|
5889
5924
|
};
|
|
5890
|
-
const _hoisted_3$
|
|
5925
|
+
const _hoisted_3$u = {
|
|
5891
5926
|
key: 1,
|
|
5892
5927
|
"data-cy": "did-you-mean-label"
|
|
5893
5928
|
};
|
|
5894
|
-
const _hoisted_4$
|
|
5929
|
+
const _hoisted_4$n = { key: 1 };
|
|
5895
5930
|
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
5896
5931
|
__name: "SearchResultsDidYouMean",
|
|
5897
5932
|
props: {
|
|
@@ -5934,7 +5969,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
5934
5969
|
]);
|
|
5935
5970
|
}), 128))
|
|
5936
5971
|
])) : vue.createCommentVNode("", true),
|
|
5937
|
-
didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
5972
|
+
didYouMeanValue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$u, [
|
|
5938
5973
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.labels.didYouMean.split(" "), (label, index) => {
|
|
5939
5974
|
return vue.openBlock(), vue.createElementBlock("span", { key: index }, [
|
|
5940
5975
|
label.includes("{1}") ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -5942,7 +5977,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
5942
5977
|
class: "lupa-did-you-mean lupa-highlighted-search-text",
|
|
5943
5978
|
"data-cy": "did-you-mean-value",
|
|
5944
5979
|
onClick: _cache[0] || (_cache[0] = ($event) => goToResults({ searchText: didYouMeanValue.value }))
|
|
5945
|
-
}, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
5980
|
+
}, vue.toDisplayString(didYouMeanValue.value) + " ", 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$n, vue.toDisplayString(label) + " ", 1))
|
|
5946
5981
|
]);
|
|
5947
5982
|
}), 128))
|
|
5948
5983
|
])) : vue.createCommentVNode("", true)
|
|
@@ -5988,11 +6023,11 @@ const _hoisted_1$P = {
|
|
|
5988
6023
|
"data-cy": "lupa-result-page-title"
|
|
5989
6024
|
};
|
|
5990
6025
|
const _hoisted_2$C = { key: 0 };
|
|
5991
|
-
const _hoisted_3$
|
|
6026
|
+
const _hoisted_3$t = {
|
|
5992
6027
|
key: 1,
|
|
5993
6028
|
class: "lupa-results-total-count"
|
|
5994
6029
|
};
|
|
5995
|
-
const _hoisted_4$
|
|
6030
|
+
const _hoisted_4$m = { class: "lupa-results-total-count-number" };
|
|
5996
6031
|
const _hoisted_5$e = ["innerHTML"];
|
|
5997
6032
|
const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
5998
6033
|
__name: "SearchResultsTitle",
|
|
@@ -6036,9 +6071,9 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
6036
6071
|
showSearchTitle.value ? (vue.openBlock(), vue.createElementBlock("h1", _hoisted_1$P, [
|
|
6037
6072
|
vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.searchResults), 1),
|
|
6038
6073
|
queryText.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$C, "'" + vue.toDisplayString(queryText.value) + "'", 1)) : vue.createCommentVNode("", true),
|
|
6039
|
-
showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
6074
|
+
showProductCount.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$t, [
|
|
6040
6075
|
vue.createTextVNode("(" + vue.toDisplayString(searchResultsCountLabel.value), 1),
|
|
6041
|
-
vue.createElementVNode("span", _hoisted_4$
|
|
6076
|
+
vue.createElementVNode("span", _hoisted_4$m, vue.toDisplayString(vue.unref(totalItems)), 1),
|
|
6042
6077
|
vue.createTextVNode(")")
|
|
6043
6078
|
])) : vue.createCommentVNode("", true)
|
|
6044
6079
|
])) : vue.createCommentVNode("", true),
|
|
@@ -6060,7 +6095,7 @@ const _hoisted_2$B = {
|
|
|
6060
6095
|
class: "lupa-current-filter-label",
|
|
6061
6096
|
"data-cy": "lupa-current-filter-label"
|
|
6062
6097
|
};
|
|
6063
|
-
const _hoisted_3$
|
|
6098
|
+
const _hoisted_3$s = {
|
|
6064
6099
|
class: "lupa-current-filter-value",
|
|
6065
6100
|
"data-cy": "lupa-current-filter-value"
|
|
6066
6101
|
};
|
|
@@ -6082,7 +6117,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
6082
6117
|
onClick: handleClick
|
|
6083
6118
|
}, "⨉"),
|
|
6084
6119
|
vue.createElementVNode("div", _hoisted_2$B, vue.toDisplayString(_ctx.filter.label) + ": ", 1),
|
|
6085
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
6120
|
+
vue.createElementVNode("div", _hoisted_3$s, vue.toDisplayString(_ctx.filter.value), 1)
|
|
6086
6121
|
]);
|
|
6087
6122
|
};
|
|
6088
6123
|
}
|
|
@@ -6092,11 +6127,11 @@ const _hoisted_2$A = {
|
|
|
6092
6127
|
key: 0,
|
|
6093
6128
|
class: "lupa-filter-count"
|
|
6094
6129
|
};
|
|
6095
|
-
const _hoisted_3$
|
|
6130
|
+
const _hoisted_3$r = {
|
|
6096
6131
|
key: 0,
|
|
6097
6132
|
class: "filter-values"
|
|
6098
6133
|
};
|
|
6099
|
-
const _hoisted_4$
|
|
6134
|
+
const _hoisted_4$l = { class: "lupa-current-filter-list" };
|
|
6100
6135
|
const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
6101
6136
|
__name: "CurrentFilters",
|
|
6102
6137
|
props: {
|
|
@@ -6179,8 +6214,8 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
6179
6214
|
class: vue.normalizeClass(["lupa-filter-title-caret", isOpen.value && "open"])
|
|
6180
6215
|
}, null, 2)) : vue.createCommentVNode("", true)
|
|
6181
6216
|
]),
|
|
6182
|
-
!_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
6183
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
6217
|
+
!_ctx.expandable || isOpen.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$r, [
|
|
6218
|
+
vue.createElementVNode("div", _hoisted_4$l, [
|
|
6184
6219
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentDisplayFilters.value, (filter) => {
|
|
6185
6220
|
return vue.openBlock(), vue.createBlock(_sfc_main$R, {
|
|
6186
6221
|
key: filter.key + "_" + filter.value,
|
|
@@ -6247,8 +6282,8 @@ const _hoisted_1$L = {
|
|
|
6247
6282
|
"data-cy": "lupa-category-filter"
|
|
6248
6283
|
};
|
|
6249
6284
|
const _hoisted_2$z = { class: "lupa-category-back" };
|
|
6250
|
-
const _hoisted_3$
|
|
6251
|
-
const _hoisted_4$
|
|
6285
|
+
const _hoisted_3$q = ["href"];
|
|
6286
|
+
const _hoisted_4$k = ["href"];
|
|
6252
6287
|
const _hoisted_5$d = { class: "lupa-child-category-list" };
|
|
6253
6288
|
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
6254
6289
|
__name: "CategoryFilter",
|
|
@@ -6343,7 +6378,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
6343
6378
|
"data-cy": "lupa-category-back",
|
|
6344
6379
|
href: backUrlLink.value,
|
|
6345
6380
|
onClick: handleNavigationBack
|
|
6346
|
-
}, vue.toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
6381
|
+
}, vue.toDisplayString(backTitle.value), 9, _hoisted_3$q)) : vue.createCommentVNode("", true)
|
|
6347
6382
|
]),
|
|
6348
6383
|
vue.createElementVNode("div", {
|
|
6349
6384
|
class: vue.normalizeClass(["lupa-current-category", { "lupa-current-category-active": isActive }])
|
|
@@ -6353,7 +6388,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
6353
6388
|
href: parentUrlLink.value,
|
|
6354
6389
|
class: vue.normalizeClass({ "lupa-title-category": !hasBackButton.value }),
|
|
6355
6390
|
onClick: handleNavigationParent
|
|
6356
|
-
}, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$
|
|
6391
|
+
}, vue.toDisplayString(parentTitle.value), 11, _hoisted_4$k)
|
|
6357
6392
|
], 2),
|
|
6358
6393
|
vue.createElementVNode("div", _hoisted_5$d, [
|
|
6359
6394
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(categoryChildren.value, (child) => {
|
|
@@ -6373,8 +6408,8 @@ const _hoisted_1$K = {
|
|
|
6373
6408
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
6374
6409
|
};
|
|
6375
6410
|
const _hoisted_2$y = ["placeholder"];
|
|
6376
|
-
const _hoisted_3$
|
|
6377
|
-
const _hoisted_4$
|
|
6411
|
+
const _hoisted_3$p = { class: "lupa-terms-list" };
|
|
6412
|
+
const _hoisted_4$j = ["onClick"];
|
|
6378
6413
|
const _hoisted_5$c = { class: "lupa-term-checkbox-wrapper" };
|
|
6379
6414
|
const _hoisted_6$8 = { class: "lupa-term-checkbox-label" };
|
|
6380
6415
|
const _hoisted_7$6 = { class: "lupa-term-label" };
|
|
@@ -6465,7 +6500,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
6465
6500
|
}, null, 8, _hoisted_2$y)), [
|
|
6466
6501
|
[vue.vModelText, termFilter.value]
|
|
6467
6502
|
]) : vue.createCommentVNode("", true),
|
|
6468
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
6503
|
+
vue.createElementVNode("div", _hoisted_3$p, [
|
|
6469
6504
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(displayValues.value, (item) => {
|
|
6470
6505
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
6471
6506
|
class: vue.normalizeClass(["lupa-facet-term", { checked: isChecked(item) }]),
|
|
@@ -6482,7 +6517,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
6482
6517
|
vue.createElementVNode("span", _hoisted_7$6, vue.toDisplayString(item.title), 1),
|
|
6483
6518
|
_ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$2, "(" + vue.toDisplayString(item.count) + ")", 1)) : vue.createCommentVNode("", true)
|
|
6484
6519
|
])
|
|
6485
|
-
], 10, _hoisted_4$
|
|
6520
|
+
], 10, _hoisted_4$j);
|
|
6486
6521
|
}), 128))
|
|
6487
6522
|
]),
|
|
6488
6523
|
displayShowMore.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -6497,50 +6532,50 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
6497
6532
|
};
|
|
6498
6533
|
}
|
|
6499
6534
|
});
|
|
6500
|
-
function u(
|
|
6501
|
-
return -1 !== [null, void 0, false].indexOf(
|
|
6535
|
+
function u(e2) {
|
|
6536
|
+
return -1 !== [null, void 0, false].indexOf(e2);
|
|
6502
6537
|
}
|
|
6503
|
-
function c(
|
|
6504
|
-
return
|
|
6538
|
+
function c(e2) {
|
|
6539
|
+
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
6505
6540
|
}
|
|
6506
|
-
function p(
|
|
6541
|
+
function p(e2) {
|
|
6507
6542
|
var t = { exports: {} };
|
|
6508
|
-
return
|
|
6543
|
+
return e2(t, t.exports), t.exports;
|
|
6509
6544
|
}
|
|
6510
|
-
var d = p(function(
|
|
6511
|
-
|
|
6512
|
-
var
|
|
6513
|
-
function t2(
|
|
6514
|
-
return
|
|
6545
|
+
var d = p(function(e2, t) {
|
|
6546
|
+
e2.exports = function() {
|
|
6547
|
+
var e3 = ["decimals", "thousand", "mark", "prefix", "suffix", "encoder", "decoder", "negativeBefore", "negative", "edit", "undo"];
|
|
6548
|
+
function t2(e4) {
|
|
6549
|
+
return e4.split("").reverse().join("");
|
|
6515
6550
|
}
|
|
6516
|
-
function r(
|
|
6517
|
-
return
|
|
6551
|
+
function r(e4, t3) {
|
|
6552
|
+
return e4.substring(0, t3.length) === t3;
|
|
6518
6553
|
}
|
|
6519
|
-
function i(
|
|
6520
|
-
return
|
|
6554
|
+
function i(e4, t3) {
|
|
6555
|
+
return e4.slice(-1 * t3.length) === t3;
|
|
6521
6556
|
}
|
|
6522
|
-
function n(
|
|
6523
|
-
if ((
|
|
6557
|
+
function n(e4, t3, r2) {
|
|
6558
|
+
if ((e4[t3] || e4[r2]) && e4[t3] === e4[r2])
|
|
6524
6559
|
throw new Error(t3);
|
|
6525
6560
|
}
|
|
6526
|
-
function o(
|
|
6527
|
-
return "number" == typeof
|
|
6561
|
+
function o(e4) {
|
|
6562
|
+
return "number" == typeof e4 && isFinite(e4);
|
|
6528
6563
|
}
|
|
6529
|
-
function a(
|
|
6530
|
-
return
|
|
6564
|
+
function a(e4, t3) {
|
|
6565
|
+
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);
|
|
6531
6566
|
}
|
|
6532
|
-
function s(
|
|
6567
|
+
function s(e4, r2, i2, n2, s2, l2, u3, c3, p3, d2, f2, h2) {
|
|
6533
6568
|
var m2, v, g, b = h2, y = "", S = "";
|
|
6534
|
-
return l2 && (h2 = l2(h2)), !!o(h2) && (false !==
|
|
6569
|
+
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);
|
|
6535
6570
|
}
|
|
6536
|
-
function l(
|
|
6571
|
+
function l(e4, t3, n2, a2, s2, l2, u3, c3, p3, d2, f2, h2) {
|
|
6537
6572
|
var m2, v = "";
|
|
6538
6573
|
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));
|
|
6539
6574
|
}
|
|
6540
6575
|
function u2(t3) {
|
|
6541
6576
|
var r2, i2, o2, a2 = {};
|
|
6542
|
-
for (void 0 === t3.suffix && (t3.suffix = t3.postfix), r2 = 0; r2 <
|
|
6543
|
-
if (void 0 === (o2 = t3[i2 =
|
|
6577
|
+
for (void 0 === t3.suffix && (t3.suffix = t3.postfix), r2 = 0; r2 < e3.length; r2 += 1)
|
|
6578
|
+
if (void 0 === (o2 = t3[i2 = e3[r2]]))
|
|
6544
6579
|
"negative" !== i2 || a2.negativeBefore ? "mark" === i2 && "." !== a2.thousand ? a2[i2] = "." : a2[i2] = false : a2[i2] = "-";
|
|
6545
6580
|
else if ("decimals" === i2) {
|
|
6546
6581
|
if (!(o2 >= 0 && o2 < 8))
|
|
@@ -6559,385 +6594,385 @@ var d = p(function(e, t) {
|
|
|
6559
6594
|
}
|
|
6560
6595
|
function c2(t3, r2, i2) {
|
|
6561
6596
|
var n2, o2 = [];
|
|
6562
|
-
for (n2 = 0; n2 <
|
|
6563
|
-
o2.push(t3[
|
|
6597
|
+
for (n2 = 0; n2 < e3.length; n2 += 1)
|
|
6598
|
+
o2.push(t3[e3[n2]]);
|
|
6564
6599
|
return o2.push(i2), r2.apply("", o2);
|
|
6565
6600
|
}
|
|
6566
|
-
function p2(
|
|
6601
|
+
function p2(e4) {
|
|
6567
6602
|
if (!(this instanceof p2))
|
|
6568
|
-
return new p2(
|
|
6569
|
-
"object" == typeof
|
|
6570
|
-
return c2(
|
|
6603
|
+
return new p2(e4);
|
|
6604
|
+
"object" == typeof e4 && (e4 = u2(e4), this.to = function(t3) {
|
|
6605
|
+
return c2(e4, s, t3);
|
|
6571
6606
|
}, this.from = function(t3) {
|
|
6572
|
-
return c2(
|
|
6607
|
+
return c2(e4, l, t3);
|
|
6573
6608
|
});
|
|
6574
6609
|
}
|
|
6575
6610
|
return p2;
|
|
6576
6611
|
}();
|
|
6577
6612
|
});
|
|
6578
|
-
var f = c(p(function(
|
|
6579
|
-
!function(
|
|
6580
|
-
function t2(
|
|
6581
|
-
return r(
|
|
6613
|
+
var f = c(p(function(e2, t) {
|
|
6614
|
+
!function(e3) {
|
|
6615
|
+
function t2(e4) {
|
|
6616
|
+
return r(e4) && "function" == typeof e4.from;
|
|
6582
6617
|
}
|
|
6583
|
-
function r(
|
|
6584
|
-
return "object" == typeof
|
|
6618
|
+
function r(e4) {
|
|
6619
|
+
return "object" == typeof e4 && "function" == typeof e4.to;
|
|
6585
6620
|
}
|
|
6586
|
-
function i(
|
|
6587
|
-
|
|
6621
|
+
function i(e4) {
|
|
6622
|
+
e4.parentElement.removeChild(e4);
|
|
6588
6623
|
}
|
|
6589
|
-
function n(
|
|
6590
|
-
return null !=
|
|
6624
|
+
function n(e4) {
|
|
6625
|
+
return null != e4;
|
|
6591
6626
|
}
|
|
6592
|
-
function o(
|
|
6593
|
-
|
|
6627
|
+
function o(e4) {
|
|
6628
|
+
e4.preventDefault();
|
|
6594
6629
|
}
|
|
6595
|
-
function a(
|
|
6596
|
-
return
|
|
6597
|
-
return !this[
|
|
6630
|
+
function a(e4) {
|
|
6631
|
+
return e4.filter(function(e5) {
|
|
6632
|
+
return !this[e5] && (this[e5] = true);
|
|
6598
6633
|
}, {});
|
|
6599
6634
|
}
|
|
6600
|
-
function s(
|
|
6601
|
-
return Math.round(
|
|
6635
|
+
function s(e4, t3) {
|
|
6636
|
+
return Math.round(e4 / t3) * t3;
|
|
6602
6637
|
}
|
|
6603
|
-
function l(
|
|
6604
|
-
var r2 =
|
|
6638
|
+
function l(e4, t3) {
|
|
6639
|
+
var r2 = e4.getBoundingClientRect(), i2 = e4.ownerDocument, n2 = i2.documentElement, o2 = g(i2);
|
|
6605
6640
|
return /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (o2.x = 0), t3 ? r2.top + o2.y - n2.clientTop : r2.left + o2.x - n2.clientLeft;
|
|
6606
6641
|
}
|
|
6607
|
-
function u2(
|
|
6608
|
-
return "number" == typeof
|
|
6642
|
+
function u2(e4) {
|
|
6643
|
+
return "number" == typeof e4 && !isNaN(e4) && isFinite(e4);
|
|
6609
6644
|
}
|
|
6610
|
-
function c2(
|
|
6611
|
-
r2 > 0 && (h2(
|
|
6612
|
-
m2(
|
|
6645
|
+
function c2(e4, t3, r2) {
|
|
6646
|
+
r2 > 0 && (h2(e4, t3), setTimeout(function() {
|
|
6647
|
+
m2(e4, t3);
|
|
6613
6648
|
}, r2));
|
|
6614
6649
|
}
|
|
6615
|
-
function p2(
|
|
6616
|
-
return Math.max(Math.min(
|
|
6650
|
+
function p2(e4) {
|
|
6651
|
+
return Math.max(Math.min(e4, 100), 0);
|
|
6617
6652
|
}
|
|
6618
|
-
function d2(
|
|
6619
|
-
return Array.isArray(
|
|
6653
|
+
function d2(e4) {
|
|
6654
|
+
return Array.isArray(e4) ? e4 : [e4];
|
|
6620
6655
|
}
|
|
6621
|
-
function f2(
|
|
6622
|
-
var t3 = (
|
|
6656
|
+
function f2(e4) {
|
|
6657
|
+
var t3 = (e4 = String(e4)).split(".");
|
|
6623
6658
|
return t3.length > 1 ? t3[1].length : 0;
|
|
6624
6659
|
}
|
|
6625
|
-
function h2(
|
|
6626
|
-
|
|
6660
|
+
function h2(e4, t3) {
|
|
6661
|
+
e4.classList && !/\s/.test(t3) ? e4.classList.add(t3) : e4.className += " " + t3;
|
|
6627
6662
|
}
|
|
6628
|
-
function m2(
|
|
6629
|
-
|
|
6663
|
+
function m2(e4, t3) {
|
|
6664
|
+
e4.classList && !/\s/.test(t3) ? e4.classList.remove(t3) : e4.className = e4.className.replace(new RegExp("(^|\\b)" + t3.split(" ").join("|") + "(\\b|$)", "gi"), " ");
|
|
6630
6665
|
}
|
|
6631
|
-
function v(
|
|
6632
|
-
return
|
|
6666
|
+
function v(e4, t3) {
|
|
6667
|
+
return e4.classList ? e4.classList.contains(t3) : new RegExp("\\b" + t3 + "\\b").test(e4.className);
|
|
6633
6668
|
}
|
|
6634
|
-
function g(
|
|
6635
|
-
var t3 = void 0 !== window.pageXOffset, r2 = "CSS1Compat" === (
|
|
6636
|
-
return { x: t3 ? window.pageXOffset : r2 ?
|
|
6669
|
+
function g(e4) {
|
|
6670
|
+
var t3 = void 0 !== window.pageXOffset, r2 = "CSS1Compat" === (e4.compatMode || "");
|
|
6671
|
+
return { x: t3 ? window.pageXOffset : r2 ? e4.documentElement.scrollLeft : e4.body.scrollLeft, y: t3 ? window.pageYOffset : r2 ? e4.documentElement.scrollTop : e4.body.scrollTop };
|
|
6637
6672
|
}
|
|
6638
6673
|
function b() {
|
|
6639
6674
|
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" };
|
|
6640
6675
|
}
|
|
6641
6676
|
function y() {
|
|
6642
|
-
var
|
|
6677
|
+
var e4 = false;
|
|
6643
6678
|
try {
|
|
6644
6679
|
var t3 = Object.defineProperty({}, "passive", { get: function() {
|
|
6645
|
-
|
|
6680
|
+
e4 = true;
|
|
6646
6681
|
} });
|
|
6647
6682
|
window.addEventListener("test", null, t3);
|
|
6648
|
-
} catch (
|
|
6683
|
+
} catch (e5) {
|
|
6649
6684
|
}
|
|
6650
|
-
return
|
|
6685
|
+
return e4;
|
|
6651
6686
|
}
|
|
6652
6687
|
function S() {
|
|
6653
6688
|
return window.CSS && CSS.supports && CSS.supports("touch-action", "none");
|
|
6654
6689
|
}
|
|
6655
|
-
function x(
|
|
6656
|
-
return 100 / (t3 -
|
|
6690
|
+
function x(e4, t3) {
|
|
6691
|
+
return 100 / (t3 - e4);
|
|
6657
6692
|
}
|
|
6658
|
-
function w(
|
|
6659
|
-
return 100 * t3 / (
|
|
6693
|
+
function w(e4, t3, r2) {
|
|
6694
|
+
return 100 * t3 / (e4[r2 + 1] - e4[r2]);
|
|
6660
6695
|
}
|
|
6661
|
-
function E(
|
|
6662
|
-
return w(
|
|
6696
|
+
function E(e4, t3) {
|
|
6697
|
+
return w(e4, e4[0] < 0 ? t3 + Math.abs(e4[0]) : t3 - e4[0], 0);
|
|
6663
6698
|
}
|
|
6664
|
-
function P(
|
|
6665
|
-
return t3 * (
|
|
6699
|
+
function P(e4, t3) {
|
|
6700
|
+
return t3 * (e4[1] - e4[0]) / 100 + e4[0];
|
|
6666
6701
|
}
|
|
6667
|
-
function N(
|
|
6668
|
-
for (var r2 = 1;
|
|
6702
|
+
function N(e4, t3) {
|
|
6703
|
+
for (var r2 = 1; e4 >= t3[r2]; )
|
|
6669
6704
|
r2 += 1;
|
|
6670
6705
|
return r2;
|
|
6671
6706
|
}
|
|
6672
|
-
function C(
|
|
6673
|
-
if (r2 >=
|
|
6707
|
+
function C(e4, t3, r2) {
|
|
6708
|
+
if (r2 >= e4.slice(-1)[0])
|
|
6674
6709
|
return 100;
|
|
6675
|
-
var i2 = N(r2,
|
|
6710
|
+
var i2 = N(r2, e4), n2 = e4[i2 - 1], o2 = e4[i2], a2 = t3[i2 - 1], s2 = t3[i2];
|
|
6676
6711
|
return a2 + E([n2, o2], r2) / x(a2, s2);
|
|
6677
6712
|
}
|
|
6678
|
-
function k(
|
|
6713
|
+
function k(e4, t3, r2) {
|
|
6679
6714
|
if (r2 >= 100)
|
|
6680
|
-
return
|
|
6681
|
-
var i2 = N(r2, t3), n2 =
|
|
6715
|
+
return e4.slice(-1)[0];
|
|
6716
|
+
var i2 = N(r2, t3), n2 = e4[i2 - 1], o2 = e4[i2], a2 = t3[i2 - 1];
|
|
6682
6717
|
return P([n2, o2], (r2 - a2) * x(a2, t3[i2]));
|
|
6683
6718
|
}
|
|
6684
|
-
function V(
|
|
6719
|
+
function V(e4, t3, r2, i2) {
|
|
6685
6720
|
if (100 === i2)
|
|
6686
6721
|
return i2;
|
|
6687
|
-
var n2 = N(i2,
|
|
6688
|
-
return r2 ? i2 - o2 > (a2 - o2) / 2 ? a2 : o2 : t3[n2 - 1] ?
|
|
6722
|
+
var n2 = N(i2, e4), o2 = e4[n2 - 1], a2 = e4[n2];
|
|
6723
|
+
return r2 ? i2 - o2 > (a2 - o2) / 2 ? a2 : o2 : t3[n2 - 1] ? e4[n2 - 1] + s(i2 - e4[n2 - 1], t3[n2 - 1]) : i2;
|
|
6689
6724
|
}
|
|
6690
6725
|
var A, M;
|
|
6691
|
-
|
|
6726
|
+
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";
|
|
6692
6727
|
var L = function() {
|
|
6693
|
-
function
|
|
6728
|
+
function e4(e5, t3, r2) {
|
|
6694
6729
|
var i2;
|
|
6695
6730
|
this.xPct = [], this.xVal = [], this.xSteps = [], this.xNumSteps = [], this.xHighestCompleteStep = [], this.xSteps = [r2 || false], this.xNumSteps = [false], this.snap = t3;
|
|
6696
6731
|
var n2 = [];
|
|
6697
|
-
for (Object.keys(
|
|
6698
|
-
n2.push([d2(
|
|
6699
|
-
}), n2.sort(function(
|
|
6700
|
-
return
|
|
6732
|
+
for (Object.keys(e5).forEach(function(t4) {
|
|
6733
|
+
n2.push([d2(e5[t4]), t4]);
|
|
6734
|
+
}), n2.sort(function(e6, t4) {
|
|
6735
|
+
return e6[0][0] - t4[0][0];
|
|
6701
6736
|
}), i2 = 0; i2 < n2.length; i2++)
|
|
6702
6737
|
this.handleEntryPoint(n2[i2][1], n2[i2][0]);
|
|
6703
6738
|
for (this.xNumSteps = this.xSteps.slice(0), i2 = 0; i2 < this.xNumSteps.length; i2++)
|
|
6704
6739
|
this.handleStepPoint(i2, this.xNumSteps[i2]);
|
|
6705
6740
|
}
|
|
6706
|
-
return
|
|
6741
|
+
return e4.prototype.getDistance = function(e5) {
|
|
6707
6742
|
for (var t3 = [], r2 = 0; r2 < this.xNumSteps.length - 1; r2++)
|
|
6708
|
-
t3[r2] = w(this.xVal,
|
|
6743
|
+
t3[r2] = w(this.xVal, e5, r2);
|
|
6709
6744
|
return t3;
|
|
6710
|
-
},
|
|
6745
|
+
}, e4.prototype.getAbsoluteDistance = function(e5, t3, r2) {
|
|
6711
6746
|
var i2, n2 = 0;
|
|
6712
|
-
if (
|
|
6713
|
-
for (;
|
|
6747
|
+
if (e5 < this.xPct[this.xPct.length - 1])
|
|
6748
|
+
for (; e5 > this.xPct[n2 + 1]; )
|
|
6714
6749
|
n2++;
|
|
6715
6750
|
else
|
|
6716
|
-
|
|
6717
|
-
r2 ||
|
|
6751
|
+
e5 === this.xPct[this.xPct.length - 1] && (n2 = this.xPct.length - 2);
|
|
6752
|
+
r2 || e5 !== this.xPct[n2 + 1] || n2++, null === t3 && (t3 = []);
|
|
6718
6753
|
var o2 = 1, a2 = t3[n2], s2 = 0, l2 = 0, u3 = 0, c3 = 0;
|
|
6719
|
-
for (i2 = r2 ? (
|
|
6754
|
+
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; )
|
|
6720
6755
|
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;
|
|
6721
|
-
return
|
|
6722
|
-
},
|
|
6723
|
-
return
|
|
6724
|
-
},
|
|
6725
|
-
return k(this.xVal, this.xPct,
|
|
6726
|
-
},
|
|
6727
|
-
return
|
|
6728
|
-
},
|
|
6729
|
-
var i2 = N(
|
|
6730
|
-
return (100 ===
|
|
6731
|
-
},
|
|
6732
|
-
var t3 = N(
|
|
6756
|
+
return e5 + u3;
|
|
6757
|
+
}, e4.prototype.toStepping = function(e5) {
|
|
6758
|
+
return e5 = C(this.xVal, this.xPct, e5);
|
|
6759
|
+
}, e4.prototype.fromStepping = function(e5) {
|
|
6760
|
+
return k(this.xVal, this.xPct, e5);
|
|
6761
|
+
}, e4.prototype.getStep = function(e5) {
|
|
6762
|
+
return e5 = V(this.xPct, this.xSteps, this.snap, e5);
|
|
6763
|
+
}, e4.prototype.getDefaultStep = function(e5, t3, r2) {
|
|
6764
|
+
var i2 = N(e5, this.xPct);
|
|
6765
|
+
return (100 === e5 || t3 && e5 === this.xPct[i2 - 1]) && (i2 = Math.max(i2 - 1, 1)), (this.xVal[i2] - this.xVal[i2 - 1]) / r2;
|
|
6766
|
+
}, e4.prototype.getNearbySteps = function(e5) {
|
|
6767
|
+
var t3 = N(e5, this.xPct);
|
|
6733
6768
|
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] } };
|
|
6734
|
-
},
|
|
6735
|
-
var
|
|
6736
|
-
return Math.max.apply(null,
|
|
6737
|
-
},
|
|
6769
|
+
}, e4.prototype.countStepDecimals = function() {
|
|
6770
|
+
var e5 = this.xNumSteps.map(f2);
|
|
6771
|
+
return Math.max.apply(null, e5);
|
|
6772
|
+
}, e4.prototype.hasNoSize = function() {
|
|
6738
6773
|
return this.xVal[0] === this.xVal[this.xVal.length - 1];
|
|
6739
|
-
},
|
|
6740
|
-
return this.getStep(this.toStepping(
|
|
6741
|
-
},
|
|
6774
|
+
}, e4.prototype.convert = function(e5) {
|
|
6775
|
+
return this.getStep(this.toStepping(e5));
|
|
6776
|
+
}, e4.prototype.handleEntryPoint = function(e5, t3) {
|
|
6742
6777
|
var r2;
|
|
6743
|
-
if (!u2(r2 = "min" ===
|
|
6778
|
+
if (!u2(r2 = "min" === e5 ? 0 : "max" === e5 ? 100 : parseFloat(e5)) || !u2(t3[0]))
|
|
6744
6779
|
throw new Error("noUiSlider: 'range' value isn't numeric.");
|
|
6745
6780
|
this.xPct.push(r2), this.xVal.push(t3[0]);
|
|
6746
6781
|
var i2 = Number(t3[1]);
|
|
6747
6782
|
r2 ? this.xSteps.push(!isNaN(i2) && i2) : isNaN(i2) || (this.xSteps[0] = i2), this.xHighestCompleteStep.push(0);
|
|
6748
|
-
},
|
|
6783
|
+
}, e4.prototype.handleStepPoint = function(e5, t3) {
|
|
6749
6784
|
if (t3)
|
|
6750
|
-
if (this.xVal[
|
|
6751
|
-
this.xSteps[
|
|
6752
|
-
var r2 = (this.xVal[
|
|
6753
|
-
this.xHighestCompleteStep[
|
|
6785
|
+
if (this.xVal[e5] !== this.xVal[e5 + 1]) {
|
|
6786
|
+
this.xSteps[e5] = w([this.xVal[e5], this.xVal[e5 + 1]], t3, 0) / x(this.xPct[e5], this.xPct[e5 + 1]);
|
|
6787
|
+
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;
|
|
6788
|
+
this.xHighestCompleteStep[e5] = n2;
|
|
6754
6789
|
} else
|
|
6755
|
-
this.xSteps[
|
|
6756
|
-
},
|
|
6757
|
-
}(), U = { to: function(
|
|
6758
|
-
return void 0 ===
|
|
6790
|
+
this.xSteps[e5] = this.xHighestCompleteStep[e5] = this.xVal[e5];
|
|
6791
|
+
}, e4;
|
|
6792
|
+
}(), U = { to: function(e4) {
|
|
6793
|
+
return void 0 === e4 ? "" : e4.toFixed(2);
|
|
6759
6794
|
}, 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" };
|
|
6760
|
-
function j(
|
|
6795
|
+
function j(e4, t3) {
|
|
6761
6796
|
if (!u2(t3))
|
|
6762
6797
|
throw new Error("noUiSlider: 'step' is not numeric.");
|
|
6763
|
-
|
|
6798
|
+
e4.singleStep = t3;
|
|
6764
6799
|
}
|
|
6765
|
-
function F(
|
|
6800
|
+
function F(e4, t3) {
|
|
6766
6801
|
if (!u2(t3))
|
|
6767
6802
|
throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");
|
|
6768
|
-
|
|
6803
|
+
e4.keyboardPageMultiplier = t3;
|
|
6769
6804
|
}
|
|
6770
|
-
function T(
|
|
6805
|
+
function T(e4, t3) {
|
|
6771
6806
|
if (!u2(t3))
|
|
6772
6807
|
throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");
|
|
6773
|
-
|
|
6808
|
+
e4.keyboardMultiplier = t3;
|
|
6774
6809
|
}
|
|
6775
|
-
function z(
|
|
6810
|
+
function z(e4, t3) {
|
|
6776
6811
|
if (!u2(t3))
|
|
6777
6812
|
throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");
|
|
6778
|
-
|
|
6813
|
+
e4.keyboardDefaultStep = t3;
|
|
6779
6814
|
}
|
|
6780
|
-
function H(
|
|
6815
|
+
function H(e4, t3) {
|
|
6781
6816
|
if ("object" != typeof t3 || Array.isArray(t3))
|
|
6782
6817
|
throw new Error("noUiSlider: 'range' is not an object.");
|
|
6783
6818
|
if (void 0 === t3.min || void 0 === t3.max)
|
|
6784
6819
|
throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");
|
|
6785
|
-
|
|
6820
|
+
e4.spectrum = new L(t3, e4.snap || false, e4.singleStep);
|
|
6786
6821
|
}
|
|
6787
|
-
function q(
|
|
6822
|
+
function q(e4, t3) {
|
|
6788
6823
|
if (t3 = d2(t3), !Array.isArray(t3) || !t3.length)
|
|
6789
6824
|
throw new Error("noUiSlider: 'start' option is incorrect.");
|
|
6790
|
-
|
|
6825
|
+
e4.handles = t3.length, e4.start = t3;
|
|
6791
6826
|
}
|
|
6792
|
-
function R(
|
|
6827
|
+
function R(e4, t3) {
|
|
6793
6828
|
if ("boolean" != typeof t3)
|
|
6794
6829
|
throw new Error("noUiSlider: 'snap' option must be a boolean.");
|
|
6795
|
-
|
|
6830
|
+
e4.snap = t3;
|
|
6796
6831
|
}
|
|
6797
|
-
function B(
|
|
6832
|
+
function B(e4, t3) {
|
|
6798
6833
|
if ("boolean" != typeof t3)
|
|
6799
6834
|
throw new Error("noUiSlider: 'animate' option must be a boolean.");
|
|
6800
|
-
|
|
6835
|
+
e4.animate = t3;
|
|
6801
6836
|
}
|
|
6802
|
-
function _(
|
|
6837
|
+
function _(e4, t3) {
|
|
6803
6838
|
if ("number" != typeof t3)
|
|
6804
6839
|
throw new Error("noUiSlider: 'animationDuration' option must be a number.");
|
|
6805
|
-
|
|
6840
|
+
e4.animationDuration = t3;
|
|
6806
6841
|
}
|
|
6807
|
-
function $(
|
|
6842
|
+
function $(e4, t3) {
|
|
6808
6843
|
var r2, i2 = [false];
|
|
6809
6844
|
if ("lower" === t3 ? t3 = [true, false] : "upper" === t3 && (t3 = [false, true]), true === t3 || false === t3) {
|
|
6810
|
-
for (r2 = 1; r2 <
|
|
6845
|
+
for (r2 = 1; r2 < e4.handles; r2++)
|
|
6811
6846
|
i2.push(t3);
|
|
6812
6847
|
i2.push(false);
|
|
6813
6848
|
} else {
|
|
6814
|
-
if (!Array.isArray(t3) || !t3.length || t3.length !==
|
|
6849
|
+
if (!Array.isArray(t3) || !t3.length || t3.length !== e4.handles + 1)
|
|
6815
6850
|
throw new Error("noUiSlider: 'connect' option doesn't match handle count.");
|
|
6816
6851
|
i2 = t3;
|
|
6817
6852
|
}
|
|
6818
|
-
|
|
6853
|
+
e4.connect = i2;
|
|
6819
6854
|
}
|
|
6820
|
-
function X(
|
|
6855
|
+
function X(e4, t3) {
|
|
6821
6856
|
switch (t3) {
|
|
6822
6857
|
case "horizontal":
|
|
6823
|
-
|
|
6858
|
+
e4.ort = 0;
|
|
6824
6859
|
break;
|
|
6825
6860
|
case "vertical":
|
|
6826
|
-
|
|
6861
|
+
e4.ort = 1;
|
|
6827
6862
|
break;
|
|
6828
6863
|
default:
|
|
6829
6864
|
throw new Error("noUiSlider: 'orientation' option is invalid.");
|
|
6830
6865
|
}
|
|
6831
6866
|
}
|
|
6832
|
-
function Y(
|
|
6867
|
+
function Y(e4, t3) {
|
|
6833
6868
|
if (!u2(t3))
|
|
6834
6869
|
throw new Error("noUiSlider: 'margin' option must be numeric.");
|
|
6835
|
-
0 !== t3 && (
|
|
6870
|
+
0 !== t3 && (e4.margin = e4.spectrum.getDistance(t3));
|
|
6836
6871
|
}
|
|
6837
|
-
function I(
|
|
6872
|
+
function I(e4, t3) {
|
|
6838
6873
|
if (!u2(t3))
|
|
6839
6874
|
throw new Error("noUiSlider: 'limit' option must be numeric.");
|
|
6840
|
-
if (
|
|
6875
|
+
if (e4.limit = e4.spectrum.getDistance(t3), !e4.limit || e4.handles < 2)
|
|
6841
6876
|
throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.");
|
|
6842
6877
|
}
|
|
6843
|
-
function W(
|
|
6878
|
+
function W(e4, t3) {
|
|
6844
6879
|
var r2;
|
|
6845
6880
|
if (!u2(t3) && !Array.isArray(t3))
|
|
6846
6881
|
throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
|
|
6847
6882
|
if (Array.isArray(t3) && 2 !== t3.length && !u2(t3[0]) && !u2(t3[1]))
|
|
6848
6883
|
throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
|
|
6849
6884
|
if (0 !== t3) {
|
|
6850
|
-
for (Array.isArray(t3) || (t3 = [t3, t3]),
|
|
6851
|
-
if (
|
|
6885
|
+
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++)
|
|
6886
|
+
if (e4.padding[0][r2] < 0 || e4.padding[1][r2] < 0)
|
|
6852
6887
|
throw new Error("noUiSlider: 'padding' option must be a positive number(s).");
|
|
6853
|
-
var i2 = t3[0] + t3[1], n2 =
|
|
6854
|
-
if (i2 / (
|
|
6888
|
+
var i2 = t3[0] + t3[1], n2 = e4.spectrum.xVal[0];
|
|
6889
|
+
if (i2 / (e4.spectrum.xVal[e4.spectrum.xVal.length - 1] - n2) > 1)
|
|
6855
6890
|
throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.");
|
|
6856
6891
|
}
|
|
6857
6892
|
}
|
|
6858
|
-
function G(
|
|
6893
|
+
function G(e4, t3) {
|
|
6859
6894
|
switch (t3) {
|
|
6860
6895
|
case "ltr":
|
|
6861
|
-
|
|
6896
|
+
e4.dir = 0;
|
|
6862
6897
|
break;
|
|
6863
6898
|
case "rtl":
|
|
6864
|
-
|
|
6899
|
+
e4.dir = 1;
|
|
6865
6900
|
break;
|
|
6866
6901
|
default:
|
|
6867
6902
|
throw new Error("noUiSlider: 'direction' option was not recognized.");
|
|
6868
6903
|
}
|
|
6869
6904
|
}
|
|
6870
|
-
function J(
|
|
6905
|
+
function J(e4, t3) {
|
|
6871
6906
|
if ("string" != typeof t3)
|
|
6872
6907
|
throw new Error("noUiSlider: 'behaviour' must be a string containing options.");
|
|
6873
6908
|
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;
|
|
6874
6909
|
if (n2) {
|
|
6875
|
-
if (2 !==
|
|
6910
|
+
if (2 !== e4.handles)
|
|
6876
6911
|
throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");
|
|
6877
|
-
Y(
|
|
6912
|
+
Y(e4, e4.start[1] - e4.start[0]);
|
|
6878
6913
|
}
|
|
6879
|
-
if (s2 && (
|
|
6914
|
+
if (s2 && (e4.margin || e4.limit))
|
|
6880
6915
|
throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");
|
|
6881
|
-
|
|
6916
|
+
e4.events = { tap: r2 || o2, drag: i2, dragAll: l2, smoothSteps: u3, fixed: n2, snap: o2, hover: a2, unconstrained: s2 };
|
|
6882
6917
|
}
|
|
6883
|
-
function K(
|
|
6918
|
+
function K(e4, t3) {
|
|
6884
6919
|
if (false !== t3)
|
|
6885
6920
|
if (true === t3 || r(t3)) {
|
|
6886
|
-
|
|
6887
|
-
for (var i2 = 0; i2 <
|
|
6888
|
-
|
|
6921
|
+
e4.tooltips = [];
|
|
6922
|
+
for (var i2 = 0; i2 < e4.handles; i2++)
|
|
6923
|
+
e4.tooltips.push(t3);
|
|
6889
6924
|
} else {
|
|
6890
|
-
if ((t3 = d2(t3)).length !==
|
|
6925
|
+
if ((t3 = d2(t3)).length !== e4.handles)
|
|
6891
6926
|
throw new Error("noUiSlider: must pass a formatter for all handles.");
|
|
6892
|
-
t3.forEach(function(
|
|
6893
|
-
if ("boolean" != typeof
|
|
6927
|
+
t3.forEach(function(e5) {
|
|
6928
|
+
if ("boolean" != typeof e5 && !r(e5))
|
|
6894
6929
|
throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.");
|
|
6895
|
-
}),
|
|
6930
|
+
}), e4.tooltips = t3;
|
|
6896
6931
|
}
|
|
6897
6932
|
}
|
|
6898
|
-
function Q(
|
|
6899
|
-
if (t3.length !==
|
|
6933
|
+
function Q(e4, t3) {
|
|
6934
|
+
if (t3.length !== e4.handles)
|
|
6900
6935
|
throw new Error("noUiSlider: must pass a attributes for all handles.");
|
|
6901
|
-
|
|
6936
|
+
e4.handleAttributes = t3;
|
|
6902
6937
|
}
|
|
6903
|
-
function Z(
|
|
6938
|
+
function Z(e4, t3) {
|
|
6904
6939
|
if (!r(t3))
|
|
6905
6940
|
throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");
|
|
6906
|
-
|
|
6941
|
+
e4.ariaFormat = t3;
|
|
6907
6942
|
}
|
|
6908
|
-
function ee(
|
|
6943
|
+
function ee(e4, r2) {
|
|
6909
6944
|
if (!t2(r2))
|
|
6910
6945
|
throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");
|
|
6911
|
-
|
|
6946
|
+
e4.format = r2;
|
|
6912
6947
|
}
|
|
6913
|
-
function te(
|
|
6948
|
+
function te(e4, t3) {
|
|
6914
6949
|
if ("boolean" != typeof t3)
|
|
6915
6950
|
throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");
|
|
6916
|
-
|
|
6951
|
+
e4.keyboardSupport = t3;
|
|
6917
6952
|
}
|
|
6918
|
-
function re(
|
|
6919
|
-
|
|
6953
|
+
function re(e4, t3) {
|
|
6954
|
+
e4.documentElement = t3;
|
|
6920
6955
|
}
|
|
6921
|
-
function ie(
|
|
6956
|
+
function ie(e4, t3) {
|
|
6922
6957
|
if ("string" != typeof t3 && false !== t3)
|
|
6923
6958
|
throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");
|
|
6924
|
-
|
|
6959
|
+
e4.cssPrefix = t3;
|
|
6925
6960
|
}
|
|
6926
|
-
function ne(
|
|
6961
|
+
function ne(e4, t3) {
|
|
6927
6962
|
if ("object" != typeof t3)
|
|
6928
6963
|
throw new Error("noUiSlider: 'cssClasses' must be an object.");
|
|
6929
|
-
"string" == typeof
|
|
6930
|
-
|
|
6931
|
-
})) :
|
|
6964
|
+
"string" == typeof e4.cssPrefix ? (e4.cssClasses = {}, Object.keys(t3).forEach(function(r2) {
|
|
6965
|
+
e4.cssClasses[r2] = e4.cssPrefix + t3[r2];
|
|
6966
|
+
})) : e4.cssClasses = t3;
|
|
6932
6967
|
}
|
|
6933
|
-
function oe(
|
|
6968
|
+
function oe(e4) {
|
|
6934
6969
|
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 };
|
|
6935
|
-
|
|
6936
|
-
if (n(
|
|
6937
|
-
r2[o3].t(t3, n(
|
|
6970
|
+
e4.format && !e4.ariaFormat && (e4.ariaFormat = e4.format), Object.keys(r2).forEach(function(o3) {
|
|
6971
|
+
if (n(e4[o3]) || void 0 !== i2[o3])
|
|
6972
|
+
r2[o3].t(t3, n(e4[o3]) ? e4[o3] : i2[o3]);
|
|
6938
6973
|
else if (r2[o3].r)
|
|
6939
6974
|
throw new Error("noUiSlider: '" + o3 + "' is required.");
|
|
6940
|
-
}), t3.pips =
|
|
6975
|
+
}), t3.pips = e4.pips;
|
|
6941
6976
|
var o2 = document.createElement("div"), a2 = void 0 !== o2.style.msTransform, s2 = void 0 !== o2.style.transform;
|
|
6942
6977
|
t3.transformRule = s2 ? "transform" : a2 ? "msTransform" : "webkitTransform";
|
|
6943
6978
|
var l2 = [["left", "top"], ["right", "bottom"]];
|
|
@@ -6945,226 +6980,226 @@ var f = c(p(function(e, t) {
|
|
|
6945
6980
|
}
|
|
6946
6981
|
function ae(t3, r2, s2) {
|
|
6947
6982
|
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;
|
|
6948
|
-
function z2(
|
|
6983
|
+
function z2(e4, t4) {
|
|
6949
6984
|
var r3 = O2.createElement("div");
|
|
6950
|
-
return t4 && h2(r3, t4),
|
|
6985
|
+
return t4 && h2(r3, t4), e4.appendChild(r3), r3;
|
|
6951
6986
|
}
|
|
6952
|
-
function H2(
|
|
6953
|
-
var i2 = z2(
|
|
6954
|
-
if (z2(n2, r2.cssClasses.touchArea), n2.setAttribute("data-handle", String(t4)), r2.keyboardSupport && (n2.setAttribute("tabindex", "0"), n2.addEventListener("keydown", function(
|
|
6955
|
-
return fe(
|
|
6987
|
+
function H2(e4, t4) {
|
|
6988
|
+
var i2 = z2(e4, r2.cssClasses.origin), n2 = z2(i2, r2.cssClasses.handle);
|
|
6989
|
+
if (z2(n2, r2.cssClasses.touchArea), n2.setAttribute("data-handle", String(t4)), r2.keyboardSupport && (n2.setAttribute("tabindex", "0"), n2.addEventListener("keydown", function(e5) {
|
|
6990
|
+
return fe(e5, t4);
|
|
6956
6991
|
})), void 0 !== r2.handleAttributes) {
|
|
6957
6992
|
var o2 = r2.handleAttributes[t4];
|
|
6958
|
-
Object.keys(o2).forEach(function(
|
|
6959
|
-
n2.setAttribute(
|
|
6993
|
+
Object.keys(o2).forEach(function(e5) {
|
|
6994
|
+
n2.setAttribute(e5, o2[e5]);
|
|
6960
6995
|
});
|
|
6961
6996
|
}
|
|
6962
6997
|
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;
|
|
6963
6998
|
}
|
|
6964
|
-
function q2(
|
|
6965
|
-
return !!t4 && z2(
|
|
6999
|
+
function q2(e4, t4) {
|
|
7000
|
+
return !!t4 && z2(e4, r2.cssClasses.connect);
|
|
6966
7001
|
}
|
|
6967
|
-
function R2(
|
|
7002
|
+
function R2(e4, t4) {
|
|
6968
7003
|
var i2 = z2(t4, r2.cssClasses.connects);
|
|
6969
|
-
f3 = [], (x2 = []).push(q2(i2,
|
|
7004
|
+
f3 = [], (x2 = []).push(q2(i2, e4[0]));
|
|
6970
7005
|
for (var n2 = 0; n2 < r2.handles; n2++)
|
|
6971
|
-
f3.push(H2(t4, n2)), M2[n2] = n2, x2.push(q2(i2,
|
|
7006
|
+
f3.push(H2(t4, n2)), M2[n2] = n2, x2.push(q2(i2, e4[n2 + 1]));
|
|
6972
7007
|
}
|
|
6973
|
-
function B2(
|
|
6974
|
-
return h2(
|
|
7008
|
+
function B2(e4) {
|
|
7009
|
+
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);
|
|
6975
7010
|
}
|
|
6976
|
-
function _2(
|
|
6977
|
-
return !(!r2.tooltips || !r2.tooltips[t4]) && z2(
|
|
7011
|
+
function _2(e4, t4) {
|
|
7012
|
+
return !(!r2.tooltips || !r2.tooltips[t4]) && z2(e4.firstChild, r2.cssClasses.tooltip);
|
|
6978
7013
|
}
|
|
6979
7014
|
function $2() {
|
|
6980
7015
|
return C2.hasAttribute("disabled");
|
|
6981
7016
|
}
|
|
6982
|
-
function X2(
|
|
6983
|
-
return f3[
|
|
7017
|
+
function X2(e4) {
|
|
7018
|
+
return f3[e4].hasAttribute("disabled");
|
|
6984
7019
|
}
|
|
6985
7020
|
function Y2() {
|
|
6986
|
-
E2 && (ge("update" + D.tooltips), E2.forEach(function(
|
|
6987
|
-
|
|
7021
|
+
E2 && (ge("update" + D.tooltips), E2.forEach(function(e4) {
|
|
7022
|
+
e4 && i(e4);
|
|
6988
7023
|
}), E2 = null);
|
|
6989
7024
|
}
|
|
6990
7025
|
function I2() {
|
|
6991
|
-
Y2(), E2 = f3.map(_2), me("update" + D.tooltips, function(
|
|
7026
|
+
Y2(), E2 = f3.map(_2), me("update" + D.tooltips, function(e4, t4, i2) {
|
|
6992
7027
|
if (E2 && r2.tooltips && false !== E2[t4]) {
|
|
6993
|
-
var n2 =
|
|
7028
|
+
var n2 = e4[t4];
|
|
6994
7029
|
true !== r2.tooltips[t4] && (n2 = r2.tooltips[t4].to(i2[t4])), E2[t4].innerHTML = n2;
|
|
6995
7030
|
}
|
|
6996
7031
|
});
|
|
6997
7032
|
}
|
|
6998
7033
|
function W2() {
|
|
6999
|
-
ge("update" + D.aria), me("update" + D.aria, function(
|
|
7000
|
-
M2.forEach(function(
|
|
7001
|
-
var t5 = f3[
|
|
7034
|
+
ge("update" + D.aria), me("update" + D.aria, function(e4, t4, i2, n2, o2) {
|
|
7035
|
+
M2.forEach(function(e5) {
|
|
7036
|
+
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]));
|
|
7002
7037
|
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);
|
|
7003
7038
|
});
|
|
7004
7039
|
});
|
|
7005
7040
|
}
|
|
7006
7041
|
function G2(t4) {
|
|
7007
|
-
if (t4.mode ===
|
|
7042
|
+
if (t4.mode === e3.PipsMode.Range || t4.mode === e3.PipsMode.Steps)
|
|
7008
7043
|
return k2.xVal;
|
|
7009
|
-
if (t4.mode ===
|
|
7044
|
+
if (t4.mode === e3.PipsMode.Count) {
|
|
7010
7045
|
if (t4.values < 2)
|
|
7011
7046
|
throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");
|
|
7012
7047
|
for (var r3 = t4.values - 1, i2 = 100 / r3, n2 = []; r3--; )
|
|
7013
7048
|
n2[r3] = r3 * i2;
|
|
7014
7049
|
return n2.push(100), J2(n2, t4.stepped);
|
|
7015
7050
|
}
|
|
7016
|
-
return t4.mode ===
|
|
7017
|
-
return k2.fromStepping(k2.getStep(k2.toStepping(
|
|
7051
|
+
return t4.mode === e3.PipsMode.Positions ? J2(t4.values, t4.stepped) : t4.mode === e3.PipsMode.Values ? t4.stepped ? t4.values.map(function(e4) {
|
|
7052
|
+
return k2.fromStepping(k2.getStep(k2.toStepping(e4)));
|
|
7018
7053
|
}) : t4.values : [];
|
|
7019
7054
|
}
|
|
7020
|
-
function J2(
|
|
7021
|
-
return
|
|
7022
|
-
return k2.fromStepping(t4 ? k2.getStep(
|
|
7055
|
+
function J2(e4, t4) {
|
|
7056
|
+
return e4.map(function(e5) {
|
|
7057
|
+
return k2.fromStepping(t4 ? k2.getStep(e5) : e5);
|
|
7023
7058
|
});
|
|
7024
7059
|
}
|
|
7025
7060
|
function K2(t4) {
|
|
7026
|
-
function r3(
|
|
7027
|
-
return Number((
|
|
7061
|
+
function r3(e4, t5) {
|
|
7062
|
+
return Number((e4 + t5).toFixed(7));
|
|
7028
7063
|
}
|
|
7029
7064
|
var i2 = G2(t4), n2 = {}, o2 = k2.xVal[0], s3 = k2.xVal[k2.xVal.length - 1], l2 = false, u4 = false, c3 = 0;
|
|
7030
|
-
return (i2 = a(i2.slice().sort(function(
|
|
7031
|
-
return
|
|
7065
|
+
return (i2 = a(i2.slice().sort(function(e4, t5) {
|
|
7066
|
+
return e4 - t5;
|
|
7032
7067
|
})))[0] !== o2 && (i2.unshift(o2), l2 = true), i2[i2.length - 1] !== s3 && (i2.push(s3), u4 = true), i2.forEach(function(o3, a2) {
|
|
7033
|
-
var s4, p3, d3, f4, h3, m3, v2, g2, b2, y2, S2 = o3, x3 = i2[a2 + 1], w3 = t4.mode ===
|
|
7068
|
+
var s4, p3, d3, f4, h3, m3, v2, g2, b2, y2, S2 = o3, x3 = i2[a2 + 1], w3 = t4.mode === e3.PipsMode.Steps;
|
|
7034
7069
|
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)) {
|
|
7035
7070
|
for (g2 = (h3 = (f4 = k2.toStepping(p3)) - c3) / (t4.density || 1), y2 = h3 / (b2 = Math.round(g2)), d3 = 1; d3 <= b2; d3 += 1)
|
|
7036
7071
|
n2[(m3 = c3 + d3 * y2).toFixed(5)] = [k2.fromStepping(m3), 0];
|
|
7037
|
-
v2 = i2.indexOf(p3) > -1 ?
|
|
7072
|
+
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;
|
|
7038
7073
|
}
|
|
7039
7074
|
}), n2;
|
|
7040
7075
|
}
|
|
7041
7076
|
function Q2(t4, i2, n2) {
|
|
7042
|
-
var o2, a2, s3 = O2.createElement("div"), l2 = ((o2 = {})[
|
|
7043
|
-
function d3(
|
|
7077
|
+
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];
|
|
7078
|
+
function d3(e4, t5) {
|
|
7044
7079
|
var i3 = t5 === r2.cssClasses.value, n3 = i3 ? l2 : u4;
|
|
7045
|
-
return t5 + " " + (i3 ? c3 : p3)[r2.ort] + " " + n3[
|
|
7080
|
+
return t5 + " " + (i3 ? c3 : p3)[r2.ort] + " " + n3[e4];
|
|
7046
7081
|
}
|
|
7047
7082
|
function f4(t5, o3, a3) {
|
|
7048
|
-
if ((a3 = i2 ? i2(o3, a3) : a3) !==
|
|
7083
|
+
if ((a3 = i2 ? i2(o3, a3) : a3) !== e3.PipsType.None) {
|
|
7049
7084
|
var l3 = z2(s3, false);
|
|
7050
|
-
l3.className = d3(a3, r2.cssClasses.marker), l3.style[r2.style] = t5 + "%", a3 >
|
|
7085
|
+
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)));
|
|
7051
7086
|
}
|
|
7052
7087
|
}
|
|
7053
|
-
return h2(s3, r2.cssClasses.pips), h2(s3, 0 === r2.ort ? r2.cssClasses.pipsHorizontal : r2.cssClasses.pipsVertical), Object.keys(t4).forEach(function(
|
|
7054
|
-
f4(
|
|
7088
|
+
return h2(s3, r2.cssClasses.pips), h2(s3, 0 === r2.ort ? r2.cssClasses.pipsHorizontal : r2.cssClasses.pipsVertical), Object.keys(t4).forEach(function(e4) {
|
|
7089
|
+
f4(e4, t4[e4][0], t4[e4][1]);
|
|
7055
7090
|
}), s3;
|
|
7056
7091
|
}
|
|
7057
7092
|
function Z2() {
|
|
7058
7093
|
w2 && (i(w2), w2 = null);
|
|
7059
7094
|
}
|
|
7060
|
-
function ee2(
|
|
7095
|
+
function ee2(e4) {
|
|
7061
7096
|
Z2();
|
|
7062
|
-
var t4 = K2(
|
|
7063
|
-
return String(Math.round(
|
|
7097
|
+
var t4 = K2(e4), r3 = e4.filter, i2 = e4.format || { to: function(e5) {
|
|
7098
|
+
return String(Math.round(e5));
|
|
7064
7099
|
} };
|
|
7065
7100
|
return w2 = C2.appendChild(Q2(t4, r3, i2));
|
|
7066
7101
|
}
|
|
7067
7102
|
function te2() {
|
|
7068
|
-
var
|
|
7069
|
-
return 0 === r2.ort ?
|
|
7103
|
+
var e4 = u3.getBoundingClientRect(), t4 = "offset" + ["Width", "Height"][r2.ort];
|
|
7104
|
+
return 0 === r2.ort ? e4.width || u3[t4] : e4.height || u3[t4];
|
|
7070
7105
|
}
|
|
7071
|
-
function re2(
|
|
7106
|
+
function re2(e4, t4, i2, n2) {
|
|
7072
7107
|
var o2 = function(o3) {
|
|
7073
7108
|
var a3 = ie2(o3, n2.pageOffset, n2.target || t4);
|
|
7074
|
-
return !!a3 && !($2() && !n2.doNotReject) && !(v(C2, r2.cssClasses.tap) && !n2.doNotReject) && !(
|
|
7109
|
+
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));
|
|
7075
7110
|
}, a2 = [];
|
|
7076
|
-
return
|
|
7077
|
-
t4.addEventListener(
|
|
7111
|
+
return e4.split(" ").forEach(function(e5) {
|
|
7112
|
+
t4.addEventListener(e5, o2, !!N2 && { passive: true }), a2.push([e5, o2]);
|
|
7078
7113
|
}), a2;
|
|
7079
7114
|
}
|
|
7080
|
-
function ie2(
|
|
7081
|
-
var i2 = 0 ===
|
|
7082
|
-
if (0 ===
|
|
7115
|
+
function ie2(e4, t4, r3) {
|
|
7116
|
+
var i2 = 0 === e4.type.indexOf("touch"), n2 = 0 === e4.type.indexOf("mouse"), o2 = 0 === e4.type.indexOf("pointer"), a2 = 0, s3 = 0;
|
|
7117
|
+
if (0 === e4.type.indexOf("MSPointer") && (o2 = true), "mousedown" === e4.type && !e4.buttons && !e4.touches)
|
|
7083
7118
|
return false;
|
|
7084
7119
|
if (i2) {
|
|
7085
7120
|
var l2 = function(t5) {
|
|
7086
7121
|
var i3 = t5.target;
|
|
7087
|
-
return i3 === r3 || r3.contains(i3) ||
|
|
7122
|
+
return i3 === r3 || r3.contains(i3) || e4.composed && e4.composedPath().shift() === r3;
|
|
7088
7123
|
};
|
|
7089
|
-
if ("touchstart" ===
|
|
7090
|
-
var u4 = Array.prototype.filter.call(
|
|
7124
|
+
if ("touchstart" === e4.type) {
|
|
7125
|
+
var u4 = Array.prototype.filter.call(e4.touches, l2);
|
|
7091
7126
|
if (u4.length > 1)
|
|
7092
7127
|
return false;
|
|
7093
7128
|
a2 = u4[0].pageX, s3 = u4[0].pageY;
|
|
7094
7129
|
} else {
|
|
7095
|
-
var c3 = Array.prototype.find.call(
|
|
7130
|
+
var c3 = Array.prototype.find.call(e4.changedTouches, l2);
|
|
7096
7131
|
if (!c3)
|
|
7097
7132
|
return false;
|
|
7098
7133
|
a2 = c3.pageX, s3 = c3.pageY;
|
|
7099
7134
|
}
|
|
7100
7135
|
}
|
|
7101
|
-
return t4 = t4 || g(O2), (n2 || o2) && (a2 =
|
|
7136
|
+
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;
|
|
7102
7137
|
}
|
|
7103
|
-
function ne2(
|
|
7104
|
-
var t4 = 100 * (
|
|
7138
|
+
function ne2(e4) {
|
|
7139
|
+
var t4 = 100 * (e4 - l(u3, r2.ort)) / te2();
|
|
7105
7140
|
return t4 = p2(t4), r2.dir ? 100 - t4 : t4;
|
|
7106
7141
|
}
|
|
7107
|
-
function ae2(
|
|
7142
|
+
function ae2(e4) {
|
|
7108
7143
|
var t4 = 100, r3 = false;
|
|
7109
7144
|
return f3.forEach(function(i2, n2) {
|
|
7110
7145
|
if (!X2(n2)) {
|
|
7111
|
-
var o2 = A2[n2], a2 = Math.abs(o2 -
|
|
7112
|
-
(a2 < t4 || a2 <= t4 &&
|
|
7146
|
+
var o2 = A2[n2], a2 = Math.abs(o2 - e4);
|
|
7147
|
+
(a2 < t4 || a2 <= t4 && e4 > o2 || 100 === a2 && 100 === t4) && (r3 = n2, t4 = a2);
|
|
7113
7148
|
}
|
|
7114
7149
|
}), r3;
|
|
7115
7150
|
}
|
|
7116
|
-
function se2(
|
|
7117
|
-
"mouseout" ===
|
|
7151
|
+
function se2(e4, t4) {
|
|
7152
|
+
"mouseout" === e4.type && "HTML" === e4.target.nodeName && null === e4.relatedTarget && ue(e4, t4);
|
|
7118
7153
|
}
|
|
7119
|
-
function le2(
|
|
7120
|
-
if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 ===
|
|
7121
|
-
return ue(
|
|
7122
|
-
var i2 = (r2.dir ? -1 : 1) * (
|
|
7154
|
+
function le2(e4, t4) {
|
|
7155
|
+
if (-1 === navigator.appVersion.indexOf("MSIE 9") && 0 === e4.buttons && 0 !== t4.buttonsProperty)
|
|
7156
|
+
return ue(e4, t4);
|
|
7157
|
+
var i2 = (r2.dir ? -1 : 1) * (e4.calcPoint - t4.startCalcPoint);
|
|
7123
7158
|
xe(i2 > 0, 100 * i2 / t4.baseSize, t4.locations, t4.handleNumbers, t4.connect);
|
|
7124
7159
|
}
|
|
7125
|
-
function ue(
|
|
7126
|
-
t4.handle && (m2(t4.handle, r2.cssClasses.active), L2 -= 1), t4.listeners.forEach(function(
|
|
7127
|
-
j2.removeEventListener(
|
|
7128
|
-
}), 0 === L2 && (m2(C2, r2.cssClasses.drag), Pe(),
|
|
7129
|
-
Ne(
|
|
7130
|
-
}), t4.handleNumbers.forEach(function(
|
|
7131
|
-
be("update",
|
|
7132
|
-
})), t4.handleNumbers.forEach(function(
|
|
7133
|
-
be("change",
|
|
7160
|
+
function ue(e4, t4) {
|
|
7161
|
+
t4.handle && (m2(t4.handle, r2.cssClasses.active), L2 -= 1), t4.listeners.forEach(function(e5) {
|
|
7162
|
+
j2.removeEventListener(e5[0], e5[1]);
|
|
7163
|
+
}), 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) {
|
|
7164
|
+
Ne(e5, A2[e5], true, true, false, false);
|
|
7165
|
+
}), t4.handleNumbers.forEach(function(e5) {
|
|
7166
|
+
be("update", e5);
|
|
7167
|
+
})), t4.handleNumbers.forEach(function(e5) {
|
|
7168
|
+
be("change", e5), be("set", e5), be("end", e5);
|
|
7134
7169
|
});
|
|
7135
7170
|
}
|
|
7136
|
-
function ce(
|
|
7171
|
+
function ce(e4, t4) {
|
|
7137
7172
|
if (!t4.handleNumbers.some(X2)) {
|
|
7138
7173
|
var i2;
|
|
7139
|
-
1 === t4.handleNumbers.length && (i2 = f3[t4.handleNumbers[0]].children[0], L2 += 1, h2(i2, r2.cssClasses.active)),
|
|
7140
|
-
var n2 = [], a2 = re2(P2.move, j2, le2, { target:
|
|
7141
|
-
n2.push.apply(n2, a2.concat(s3, l2)),
|
|
7142
|
-
be("start",
|
|
7174
|
+
1 === t4.handleNumbers.length && (i2 = f3[t4.handleNumbers[0]].children[0], L2 += 1, h2(i2, r2.cssClasses.active)), e4.stopPropagation();
|
|
7175
|
+
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 });
|
|
7176
|
+
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) {
|
|
7177
|
+
be("start", e5);
|
|
7143
7178
|
});
|
|
7144
7179
|
}
|
|
7145
7180
|
}
|
|
7146
|
-
function pe(
|
|
7147
|
-
|
|
7148
|
-
var t4 = ne2(
|
|
7149
|
-
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(
|
|
7181
|
+
function pe(e4) {
|
|
7182
|
+
e4.stopPropagation();
|
|
7183
|
+
var t4 = ne2(e4.calcPoint), i2 = ae2(t4);
|
|
7184
|
+
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)));
|
|
7150
7185
|
}
|
|
7151
|
-
function de(
|
|
7152
|
-
var t4 = ne2(
|
|
7153
|
-
Object.keys(U2).forEach(function(
|
|
7154
|
-
"hover" ===
|
|
7155
|
-
|
|
7186
|
+
function de(e4) {
|
|
7187
|
+
var t4 = ne2(e4.calcPoint), r3 = k2.getStep(t4), i2 = k2.fromStepping(r3);
|
|
7188
|
+
Object.keys(U2).forEach(function(e5) {
|
|
7189
|
+
"hover" === e5.split(".")[0] && U2[e5].forEach(function(e6) {
|
|
7190
|
+
e6.call(Te, i2);
|
|
7156
7191
|
});
|
|
7157
7192
|
});
|
|
7158
7193
|
}
|
|
7159
|
-
function fe(
|
|
7194
|
+
function fe(e4, t4) {
|
|
7160
7195
|
if ($2() || X2(t4))
|
|
7161
7196
|
return false;
|
|
7162
7197
|
var i2 = ["Left", "Right"], n2 = ["Down", "Up"], o2 = ["PageDown", "PageUp"], a2 = ["Home", "End"];
|
|
7163
7198
|
r2.dir && !r2.ort ? i2.reverse() : r2.ort && !r2.dir && (n2.reverse(), o2.reverse());
|
|
7164
|
-
var s3, l2 =
|
|
7199
|
+
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];
|
|
7165
7200
|
if (!(p3 || d3 || f4 || h3))
|
|
7166
7201
|
return true;
|
|
7167
|
-
if (
|
|
7202
|
+
if (e4.preventDefault(), d3 || p3) {
|
|
7168
7203
|
var m3 = p3 ? 0 : 1, v2 = Oe(t4)[m3];
|
|
7169
7204
|
if (null === v2)
|
|
7170
7205
|
return false;
|
|
@@ -7173,133 +7208,133 @@ var f = c(p(function(e, t) {
|
|
|
7173
7208
|
s3 = h3 ? r2.spectrum.xVal[r2.spectrum.xVal.length - 1] : r2.spectrum.xVal[0];
|
|
7174
7209
|
return Ne(t4, k2.toStepping(s3), true, true), be("slide", t4), be("update", t4), be("change", t4), be("set", t4), false;
|
|
7175
7210
|
}
|
|
7176
|
-
function he(
|
|
7177
|
-
|
|
7178
|
-
re2(P2.start,
|
|
7179
|
-
}),
|
|
7211
|
+
function he(e4) {
|
|
7212
|
+
e4.fixed || f3.forEach(function(e5, t4) {
|
|
7213
|
+
re2(P2.start, e5.children[0], ce, { handleNumbers: [t4] });
|
|
7214
|
+
}), e4.tap && re2(P2.start, u3, pe, {}), e4.hover && re2(P2.move, u3, de, { hover: true }), e4.drag && x2.forEach(function(t4, i2) {
|
|
7180
7215
|
if (false !== t4 && 0 !== i2 && i2 !== x2.length - 1) {
|
|
7181
7216
|
var n2 = f3[i2 - 1], o2 = f3[i2], a2 = [t4], s3 = [n2, o2], l2 = [i2 - 1, i2];
|
|
7182
|
-
h2(t4, r2.cssClasses.draggable),
|
|
7183
|
-
re2(P2.start,
|
|
7217
|
+
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) {
|
|
7218
|
+
re2(P2.start, e5, ce, { handles: s3, handleNumbers: l2, connect: t4 });
|
|
7184
7219
|
});
|
|
7185
7220
|
}
|
|
7186
7221
|
});
|
|
7187
7222
|
}
|
|
7188
|
-
function me(
|
|
7189
|
-
U2[
|
|
7223
|
+
function me(e4, t4) {
|
|
7224
|
+
U2[e4] = U2[e4] || [], U2[e4].push(t4), "update" === e4.split(".")[0] && f3.forEach(function(e5, t5) {
|
|
7190
7225
|
be("update", t5);
|
|
7191
7226
|
});
|
|
7192
7227
|
}
|
|
7193
|
-
function ve(
|
|
7194
|
-
return
|
|
7228
|
+
function ve(e4) {
|
|
7229
|
+
return e4 === D.aria || e4 === D.tooltips;
|
|
7195
7230
|
}
|
|
7196
|
-
function ge(
|
|
7197
|
-
var t4 =
|
|
7198
|
-
Object.keys(U2).forEach(function(
|
|
7199
|
-
var i2 =
|
|
7200
|
-
t4 && t4 !== i2 || r3 && r3 !== n2 || ve(n2) && r3 !== n2 || delete U2[
|
|
7231
|
+
function ge(e4) {
|
|
7232
|
+
var t4 = e4 && e4.split(".")[0], r3 = t4 ? e4.substring(t4.length) : e4;
|
|
7233
|
+
Object.keys(U2).forEach(function(e5) {
|
|
7234
|
+
var i2 = e5.split(".")[0], n2 = e5.substring(i2.length);
|
|
7235
|
+
t4 && t4 !== i2 || r3 && r3 !== n2 || ve(n2) && r3 !== n2 || delete U2[e5];
|
|
7201
7236
|
});
|
|
7202
7237
|
}
|
|
7203
|
-
function be(
|
|
7238
|
+
function be(e4, t4, i2) {
|
|
7204
7239
|
Object.keys(U2).forEach(function(n2) {
|
|
7205
7240
|
var o2 = n2.split(".")[0];
|
|
7206
|
-
|
|
7207
|
-
|
|
7241
|
+
e4 === o2 && U2[n2].forEach(function(e5) {
|
|
7242
|
+
e5.call(Te, V2.map(r2.format.to), t4, V2.slice(), i2 || false, A2.slice(), Te);
|
|
7208
7243
|
});
|
|
7209
7244
|
});
|
|
7210
7245
|
}
|
|
7211
|
-
function ye(
|
|
7246
|
+
function ye(e4, t4, i2, n2, o2, a2, s3) {
|
|
7212
7247
|
var l2;
|
|
7213
|
-
return f3.length > 1 && !r2.events.unconstrained && (n2 && t4 > 0 && (l2 = k2.getAbsoluteDistance(
|
|
7248
|
+
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;
|
|
7214
7249
|
}
|
|
7215
|
-
function Se(
|
|
7250
|
+
function Se(e4, t4) {
|
|
7216
7251
|
var i2 = r2.ort;
|
|
7217
|
-
return (i2 ? t4 :
|
|
7252
|
+
return (i2 ? t4 : e4) + ", " + (i2 ? e4 : t4);
|
|
7218
7253
|
}
|
|
7219
|
-
function xe(
|
|
7220
|
-
var a2 = i2.slice(), s3 = n2[0], l2 = r2.events.smoothSteps, u4 = [!
|
|
7221
|
-
n2 = n2.slice(),
|
|
7222
|
-
var i3 = ye(a2,
|
|
7223
|
-
false === i3 ? t4 = 0 : (t4 = i3 - a2[
|
|
7254
|
+
function xe(e4, t4, i2, n2, o2) {
|
|
7255
|
+
var a2 = i2.slice(), s3 = n2[0], l2 = r2.events.smoothSteps, u4 = [!e4, e4], c3 = [e4, !e4];
|
|
7256
|
+
n2 = n2.slice(), e4 && n2.reverse(), n2.length > 1 ? n2.forEach(function(e5, r3) {
|
|
7257
|
+
var i3 = ye(a2, e5, a2[e5] + t4, u4[r3], c3[r3], false, l2);
|
|
7258
|
+
false === i3 ? t4 = 0 : (t4 = i3 - a2[e5], a2[e5] = i3);
|
|
7224
7259
|
}) : u4 = c3 = [true];
|
|
7225
7260
|
var p3 = false;
|
|
7226
|
-
n2.forEach(function(
|
|
7227
|
-
p3 = Ne(
|
|
7228
|
-
}), p3 && (n2.forEach(function(
|
|
7229
|
-
be("update",
|
|
7261
|
+
n2.forEach(function(e5, r3) {
|
|
7262
|
+
p3 = Ne(e5, i2[e5] + t4, u4[r3], c3[r3], false, l2) || p3;
|
|
7263
|
+
}), p3 && (n2.forEach(function(e5) {
|
|
7264
|
+
be("update", e5), be("slide", e5);
|
|
7230
7265
|
}), null != o2 && be("drag", s3));
|
|
7231
7266
|
}
|
|
7232
|
-
function we(
|
|
7233
|
-
return r2.dir ? 100 -
|
|
7267
|
+
function we(e4, t4) {
|
|
7268
|
+
return r2.dir ? 100 - e4 - t4 : e4;
|
|
7234
7269
|
}
|
|
7235
|
-
function Ee(
|
|
7236
|
-
A2[
|
|
7270
|
+
function Ee(e4, t4) {
|
|
7271
|
+
A2[e4] = t4, V2[e4] = k2.fromStepping(t4);
|
|
7237
7272
|
var i2 = "translate(" + Se(we(t4, 0) - T2 + "%", "0") + ")";
|
|
7238
|
-
f3[
|
|
7273
|
+
f3[e4].style[r2.transformRule] = i2, Ce(e4), Ce(e4 + 1);
|
|
7239
7274
|
}
|
|
7240
7275
|
function Pe() {
|
|
7241
|
-
M2.forEach(function(
|
|
7242
|
-
var t4 = A2[
|
|
7243
|
-
f3[
|
|
7276
|
+
M2.forEach(function(e4) {
|
|
7277
|
+
var t4 = A2[e4] > 50 ? -1 : 1, r3 = 3 + (f3.length + t4 * e4);
|
|
7278
|
+
f3[e4].style.zIndex = String(r3);
|
|
7244
7279
|
});
|
|
7245
7280
|
}
|
|
7246
|
-
function Ne(
|
|
7247
|
-
return n2 || (t4 = ye(A2,
|
|
7281
|
+
function Ne(e4, t4, r3, i2, n2, o2) {
|
|
7282
|
+
return n2 || (t4 = ye(A2, e4, t4, r3, i2, false, o2)), false !== t4 && (Ee(e4, t4), true);
|
|
7248
7283
|
}
|
|
7249
|
-
function Ce(
|
|
7250
|
-
if (x2[
|
|
7284
|
+
function Ce(e4) {
|
|
7285
|
+
if (x2[e4]) {
|
|
7251
7286
|
var t4 = 0, i2 = 100;
|
|
7252
|
-
0 !==
|
|
7287
|
+
0 !== e4 && (t4 = A2[e4 - 1]), e4 !== x2.length - 1 && (i2 = A2[e4]);
|
|
7253
7288
|
var n2 = i2 - t4, o2 = "translate(" + Se(we(t4, n2) + "%", "0") + ")", a2 = "scale(" + Se(n2 / 100, "1") + ")";
|
|
7254
|
-
x2[
|
|
7289
|
+
x2[e4].style[r2.transformRule] = o2 + " " + a2;
|
|
7255
7290
|
}
|
|
7256
7291
|
}
|
|
7257
|
-
function ke(
|
|
7258
|
-
return null ===
|
|
7292
|
+
function ke(e4, t4) {
|
|
7293
|
+
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);
|
|
7259
7294
|
}
|
|
7260
|
-
function Ve(
|
|
7261
|
-
var n2 = d2(
|
|
7262
|
-
t4 = void 0 === t4 || t4, r2.animate && !o2 && c2(C2, r2.cssClasses.tap, r2.animationDuration), M2.forEach(function(
|
|
7263
|
-
Ne(
|
|
7295
|
+
function Ve(e4, t4, i2) {
|
|
7296
|
+
var n2 = d2(e4), o2 = void 0 === A2[0];
|
|
7297
|
+
t4 = void 0 === t4 || t4, r2.animate && !o2 && c2(C2, r2.cssClasses.tap, r2.animationDuration), M2.forEach(function(e5) {
|
|
7298
|
+
Ne(e5, ke(n2[e5], e5), true, false, i2);
|
|
7264
7299
|
});
|
|
7265
7300
|
var a2 = 1 === M2.length ? 0 : 1;
|
|
7266
7301
|
if (o2 && k2.hasNoSize() && (i2 = true, A2[0] = 0, M2.length > 1)) {
|
|
7267
7302
|
var s3 = 100 / (M2.length - 1);
|
|
7268
|
-
M2.forEach(function(
|
|
7269
|
-
A2[
|
|
7303
|
+
M2.forEach(function(e5) {
|
|
7304
|
+
A2[e5] = e5 * s3;
|
|
7270
7305
|
});
|
|
7271
7306
|
}
|
|
7272
7307
|
for (; a2 < M2.length; ++a2)
|
|
7273
|
-
M2.forEach(function(
|
|
7274
|
-
Ne(
|
|
7308
|
+
M2.forEach(function(e5) {
|
|
7309
|
+
Ne(e5, A2[e5], true, true, i2);
|
|
7275
7310
|
});
|
|
7276
|
-
Pe(), M2.forEach(function(
|
|
7277
|
-
be("update",
|
|
7311
|
+
Pe(), M2.forEach(function(e5) {
|
|
7312
|
+
be("update", e5), null !== n2[e5] && t4 && be("set", e5);
|
|
7278
7313
|
});
|
|
7279
7314
|
}
|
|
7280
|
-
function Ae(
|
|
7281
|
-
Ve(r2.start,
|
|
7315
|
+
function Ae(e4) {
|
|
7316
|
+
Ve(r2.start, e4);
|
|
7282
7317
|
}
|
|
7283
|
-
function Me(
|
|
7284
|
-
if (!((
|
|
7285
|
-
throw new Error("noUiSlider: invalid handle number, got: " +
|
|
7286
|
-
Ne(
|
|
7318
|
+
function Me(e4, t4, r3, i2) {
|
|
7319
|
+
if (!((e4 = Number(e4)) >= 0 && e4 < M2.length))
|
|
7320
|
+
throw new Error("noUiSlider: invalid handle number, got: " + e4);
|
|
7321
|
+
Ne(e4, ke(t4, e4), true, true, i2), be("update", e4), r3 && be("set", e4);
|
|
7287
7322
|
}
|
|
7288
|
-
function Le(
|
|
7289
|
-
if (void 0 ===
|
|
7323
|
+
function Le(e4) {
|
|
7324
|
+
if (void 0 === e4 && (e4 = false), e4)
|
|
7290
7325
|
return 1 === V2.length ? V2[0] : V2.slice(0);
|
|
7291
7326
|
var t4 = V2.map(r2.format.to);
|
|
7292
7327
|
return 1 === t4.length ? t4[0] : t4;
|
|
7293
7328
|
}
|
|
7294
7329
|
function Ue() {
|
|
7295
|
-
for (ge(D.aria), ge(D.tooltips), Object.keys(r2.cssClasses).forEach(function(
|
|
7296
|
-
m2(C2, r2.cssClasses[
|
|
7330
|
+
for (ge(D.aria), ge(D.tooltips), Object.keys(r2.cssClasses).forEach(function(e4) {
|
|
7331
|
+
m2(C2, r2.cssClasses[e4]);
|
|
7297
7332
|
}); C2.firstChild; )
|
|
7298
7333
|
C2.removeChild(C2.firstChild);
|
|
7299
7334
|
delete C2.noUiSlider;
|
|
7300
7335
|
}
|
|
7301
|
-
function Oe(
|
|
7302
|
-
var t4 = A2[
|
|
7336
|
+
function Oe(e4) {
|
|
7337
|
+
var t4 = A2[e4], i2 = k2.getNearbySteps(t4), n2 = V2[e4], o2 = i2.thisStep.step, a2 = null;
|
|
7303
7338
|
if (r2.snap)
|
|
7304
7339
|
return [n2 - i2.stepBefore.startValue || null, i2.stepAfter.startValue - n2 || null];
|
|
7305
7340
|
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);
|
|
@@ -7309,22 +7344,22 @@ var f = c(p(function(e, t) {
|
|
|
7309
7344
|
function De() {
|
|
7310
7345
|
return M2.map(Oe);
|
|
7311
7346
|
}
|
|
7312
|
-
function je(
|
|
7347
|
+
function je(e4, t4) {
|
|
7313
7348
|
var i2 = Le(), o2 = ["margin", "limit", "padding", "range", "animate", "snap", "step", "format", "pips", "tooltips"];
|
|
7314
7349
|
o2.forEach(function(t5) {
|
|
7315
|
-
void 0 !==
|
|
7350
|
+
void 0 !== e4[t5] && (s2[t5] = e4[t5]);
|
|
7316
7351
|
});
|
|
7317
7352
|
var a2 = oe(s2);
|
|
7318
7353
|
o2.forEach(function(t5) {
|
|
7319
|
-
void 0 !==
|
|
7320
|
-
}), 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(
|
|
7354
|
+
void 0 !== e4[t5] && (r2[t5] = a2[t5]);
|
|
7355
|
+
}), 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);
|
|
7321
7356
|
}
|
|
7322
7357
|
function Fe() {
|
|
7323
7358
|
u3 = B2(C2), R2(r2.connect, u3), he(r2.events), Ve(r2.start), r2.pips && ee2(r2.pips), r2.tooltips && I2(), W2();
|
|
7324
7359
|
}
|
|
7325
7360
|
Fe();
|
|
7326
|
-
var Te = { destroy: Ue, steps: De, on: me, off: ge, get: Le, set: Ve, setHandle: Me, reset: Ae, __moveHandles: function(
|
|
7327
|
-
xe(
|
|
7361
|
+
var Te = { destroy: Ue, steps: De, on: me, off: ge, get: Le, set: Ve, setHandle: Me, reset: Ae, __moveHandles: function(e4, t4, r3) {
|
|
7362
|
+
xe(e4, t4, A2, r3);
|
|
7328
7363
|
}, options: s2, updateOptions: je, target: C2, removePips: Z2, removeTooltips: Y2, getPositions: function() {
|
|
7329
7364
|
return A2.slice();
|
|
7330
7365
|
}, getTooltips: function() {
|
|
@@ -7334,30 +7369,30 @@ var f = c(p(function(e, t) {
|
|
|
7334
7369
|
}, pips: ee2 };
|
|
7335
7370
|
return Te;
|
|
7336
7371
|
}
|
|
7337
|
-
function se(
|
|
7338
|
-
if (!
|
|
7339
|
-
throw new Error("noUiSlider: create requires a single element, got: " +
|
|
7340
|
-
if (
|
|
7372
|
+
function se(e4, t3) {
|
|
7373
|
+
if (!e4 || !e4.nodeName)
|
|
7374
|
+
throw new Error("noUiSlider: create requires a single element, got: " + e4);
|
|
7375
|
+
if (e4.noUiSlider)
|
|
7341
7376
|
throw new Error("noUiSlider: Slider was already initialized.");
|
|
7342
|
-
var r2 = ae(
|
|
7343
|
-
return
|
|
7377
|
+
var r2 = ae(e4, oe(t3), t3);
|
|
7378
|
+
return e4.noUiSlider = r2, r2;
|
|
7344
7379
|
}
|
|
7345
7380
|
var le = { __spectrum: L, cssClasses: O, create: se };
|
|
7346
|
-
|
|
7381
|
+
e3.create = se, e3.cssClasses = O, e3.default = le, Object.defineProperty(e3, "__esModule", { value: true });
|
|
7347
7382
|
}(t);
|
|
7348
7383
|
}));
|
|
7349
|
-
function h(
|
|
7350
|
-
if (!Array.isArray(
|
|
7384
|
+
function h(e2, t) {
|
|
7385
|
+
if (!Array.isArray(e2) || !Array.isArray(t))
|
|
7351
7386
|
return false;
|
|
7352
7387
|
const r = t.slice().sort();
|
|
7353
|
-
return
|
|
7354
|
-
return
|
|
7388
|
+
return e2.length === t.length && e2.slice().sort().every(function(e3, t2) {
|
|
7389
|
+
return e3 === r[t2];
|
|
7355
7390
|
});
|
|
7356
7391
|
}
|
|
7357
|
-
var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide", "drag", "update", "change", "set", "end"], props: __spreadProps(__spreadValues({}, { value: { validator: function(
|
|
7358
|
-
return (
|
|
7359
|
-
}, required: false }, modelValue: { validator: function(
|
|
7360
|
-
return (
|
|
7392
|
+
var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide", "drag", "update", "change", "set", "end"], props: __spreadProps(__spreadValues({}, { value: { validator: function(e2) {
|
|
7393
|
+
return (e3) => "number" == typeof e3 || e3 instanceof Array || null == e3 || false === e3;
|
|
7394
|
+
}, required: false }, modelValue: { validator: function(e2) {
|
|
7395
|
+
return (e3) => "number" == typeof e3 || e3 instanceof Array || null == e3 || false === e3;
|
|
7361
7396
|
}, 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) {
|
|
7362
7397
|
const l = function(r, i, n) {
|
|
7363
7398
|
const { value: o, modelValue: a2, min: s2 } = vue.toRefs(r);
|
|
@@ -7369,37 +7404,37 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
7369
7404
|
}(a), c2 = function(t, i, n) {
|
|
7370
7405
|
const { classes: o, showTooltip: a2, tooltipPosition: s2, orientation: l2 } = vue.toRefs(t), u2 = vue.computed(() => __spreadValues({ 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));
|
|
7371
7406
|
return { classList: vue.computed(() => {
|
|
7372
|
-
const
|
|
7373
|
-
return Object.keys(
|
|
7374
|
-
|
|
7375
|
-
}), "always" !== a2.value && (
|
|
7407
|
+
const e2 = __spreadValues({}, u2.value);
|
|
7408
|
+
return Object.keys(e2).forEach((t2) => {
|
|
7409
|
+
e2[t2] = Array.isArray(e2[t2]) ? e2[t2].filter((e3) => null !== e3).join(" ") : e2[t2];
|
|
7410
|
+
}), "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;
|
|
7376
7411
|
}) };
|
|
7377
7412
|
}(a), p2 = function(t, i, n) {
|
|
7378
|
-
const { format: o, step: a2 } = vue.toRefs(t), s2 = n.value, l2 = n.classList, u2 = vue.computed(() => o && o.value ? "function" == typeof o.value ? { to: o.value } : d(__spreadValues({}, o.value)) : d({ decimals: a2.value >= 0 ? 0 : 2 })), c3 = vue.computed(() => Array.isArray(s2.value) ? s2.value.map((
|
|
7379
|
-
return { tooltipFormat: u2, tooltipsFormat: c3, tooltipsMerge: (
|
|
7380
|
-
var i2 = "rtl" === getComputedStyle(
|
|
7381
|
-
a3.forEach(function(
|
|
7382
|
-
|
|
7383
|
-
}),
|
|
7413
|
+
const { format: o, step: a2 } = vue.toRefs(t), s2 = n.value, l2 = n.classList, u2 = vue.computed(() => o && o.value ? "function" == typeof o.value ? { to: o.value } : d(__spreadValues({}, o.value)) : d({ decimals: a2.value >= 0 ? 0 : 2 })), c3 = vue.computed(() => Array.isArray(s2.value) ? s2.value.map((e2) => u2.value) : u2.value);
|
|
7414
|
+
return { tooltipFormat: u2, tooltipsFormat: c3, tooltipsMerge: (e2, t2, r) => {
|
|
7415
|
+
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();
|
|
7416
|
+
a3.forEach(function(e3, t3) {
|
|
7417
|
+
e3 && s3[t3].appendChild(e3);
|
|
7418
|
+
}), e2.noUiSlider.on("update", function(e3, s4, c4, p3, d2) {
|
|
7384
7419
|
var f2 = [[]], h2 = [[]], m3 = [[]], v = 0;
|
|
7385
|
-
a3[0] && (f2[0][0] = 0, h2[0][0] = d2[0], m3[0][0] = u2.value.to(parseFloat(
|
|
7386
|
-
for (var g = 1; g <
|
|
7387
|
-
(!a3[g] ||
|
|
7388
|
-
f2.forEach(function(
|
|
7389
|
-
for (var s5 =
|
|
7390
|
-
var c5 =
|
|
7420
|
+
a3[0] && (f2[0][0] = 0, h2[0][0] = d2[0], m3[0][0] = u2.value.to(parseFloat(e3[0])));
|
|
7421
|
+
for (var g = 1; g < e3.length; g++)
|
|
7422
|
+
(!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]));
|
|
7423
|
+
f2.forEach(function(e4, t3) {
|
|
7424
|
+
for (var s5 = e4.length, u3 = 0; u3 < s5; u3++) {
|
|
7425
|
+
var c5 = e4[u3];
|
|
7391
7426
|
if (u3 === s5 - 1) {
|
|
7392
7427
|
var p4 = 0;
|
|
7393
|
-
h2[t3].forEach(function(
|
|
7394
|
-
p4 += 1e3 -
|
|
7428
|
+
h2[t3].forEach(function(e5) {
|
|
7429
|
+
p4 += 1e3 - e5;
|
|
7395
7430
|
});
|
|
7396
7431
|
var d3 = o2 ? "bottom" : "right", f3 = n2 ? 0 : s5 - 1, v2 = 1e3 - h2[t3][f3];
|
|
7397
|
-
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((
|
|
7398
|
-
a3[c5].classList.contains(
|
|
7432
|
+
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) => {
|
|
7433
|
+
a3[c5].classList.contains(e5) && a3[c5].classList.remove(e5);
|
|
7399
7434
|
});
|
|
7400
7435
|
} else
|
|
7401
|
-
a3[c5].style.display = "none", l2.value.tooltipHidden.split(" ").forEach((
|
|
7402
|
-
a3[c5].classList.add(
|
|
7436
|
+
a3[c5].style.display = "none", l2.value.tooltipHidden.split(" ").forEach((e5) => {
|
|
7437
|
+
a3[c5].classList.add(e5);
|
|
7403
7438
|
});
|
|
7404
7439
|
}
|
|
7405
7440
|
});
|
|
@@ -7407,32 +7442,32 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
7407
7442
|
} };
|
|
7408
7443
|
}(a, 0, { value: l.value, classList: c2.classList }), m2 = function(a2, s2, l2) {
|
|
7409
7444
|
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 } = vue.toRefs(a2), k = l2.value, V = l2.initialValue, A = l2.tooltipsFormat, M = l2.tooltipsMerge, L = l2.tooltipFormat, U = l2.classList, O = vue.ref(null), D = vue.ref(null), j = vue.ref(false), F = vue.computed(() => {
|
|
7410
|
-
let
|
|
7411
|
-
if (m3.value > 0 && (
|
|
7445
|
+
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 } };
|
|
7446
|
+
if (m3.value > 0 && (e2.step = m3.value), Array.isArray(k.value) && (e2.connect = true), N && N.value || C && Object.keys(C.value).length) {
|
|
7412
7447
|
let t = Array.isArray(k.value) ? k.value : [k.value];
|
|
7413
|
-
|
|
7448
|
+
e2.handleAttributes = t.map((e3) => Object.assign({}, C.value, N && N.value ? { "aria-labelledby": N.value } : {}));
|
|
7414
7449
|
}
|
|
7415
|
-
return E.value && (
|
|
7450
|
+
return E.value && (e2.ariaFormat = L.value), e2;
|
|
7416
7451
|
}), T = vue.computed(() => {
|
|
7417
|
-
let
|
|
7418
|
-
return S.value && (
|
|
7452
|
+
let e2 = { id: y && y.value ? y.value : void 0 };
|
|
7453
|
+
return S.value && (e2.disabled = true), e2;
|
|
7419
7454
|
}), z = vue.computed(() => Array.isArray(k.value)), H = () => {
|
|
7420
|
-
let
|
|
7421
|
-
return Array.isArray(
|
|
7422
|
-
}, q = function(
|
|
7455
|
+
let e2 = D.value.get();
|
|
7456
|
+
return Array.isArray(e2) ? e2.map((e3) => parseFloat(e3)) : parseFloat(e2);
|
|
7457
|
+
}, q = function(e2) {
|
|
7423
7458
|
let t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
|
|
7424
|
-
D.value.set(
|
|
7425
|
-
}, R = (
|
|
7426
|
-
s2.emit("input",
|
|
7459
|
+
D.value.set(e2, t);
|
|
7460
|
+
}, R = (e2) => {
|
|
7461
|
+
s2.emit("input", e2), s2.emit("update:modelValue", e2), s2.emit("update", e2);
|
|
7427
7462
|
}, B = () => {
|
|
7428
7463
|
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", () => {
|
|
7429
|
-
const
|
|
7430
|
-
s2.emit("change",
|
|
7464
|
+
const e2 = H();
|
|
7465
|
+
s2.emit("change", e2), s2.emit("set", e2), P.value && R(e2);
|
|
7431
7466
|
}), D.value.on("update", () => {
|
|
7432
7467
|
if (!j.value)
|
|
7433
7468
|
return;
|
|
7434
|
-
const
|
|
7435
|
-
z.value && h(k.value,
|
|
7469
|
+
const e2 = H();
|
|
7470
|
+
z.value && h(k.value, e2) || !z.value && k.value == e2 ? s2.emit("update", e2) : P.value || R(e2);
|
|
7436
7471
|
}), D.value.on("start", () => {
|
|
7437
7472
|
s2.emit("start", H());
|
|
7438
7473
|
}), D.value.on("end", () => {
|
|
@@ -7441,48 +7476,48 @@ var m = { name: "Slider", emits: ["input", "update:modelValue", "start", "slide"
|
|
|
7441
7476
|
s2.emit("slide", H());
|
|
7442
7477
|
}), D.value.on("drag", () => {
|
|
7443
7478
|
s2.emit("drag", H());
|
|
7444
|
-
}), O.value.querySelectorAll("[data-handle]").forEach((
|
|
7445
|
-
|
|
7446
|
-
O.value && U.value.focused.split(" ").forEach((
|
|
7447
|
-
O.value.classList.remove(
|
|
7479
|
+
}), O.value.querySelectorAll("[data-handle]").forEach((e2) => {
|
|
7480
|
+
e2.onblur = () => {
|
|
7481
|
+
O.value && U.value.focused.split(" ").forEach((e3) => {
|
|
7482
|
+
O.value.classList.remove(e3);
|
|
7448
7483
|
});
|
|
7449
|
-
},
|
|
7450
|
-
U.value.focused.split(" ").forEach((
|
|
7451
|
-
O.value.classList.add(
|
|
7484
|
+
}, e2.onfocus = () => {
|
|
7485
|
+
U.value.focused.split(" ").forEach((e3) => {
|
|
7486
|
+
O.value.classList.add(e3);
|
|
7452
7487
|
});
|
|
7453
7488
|
};
|
|
7454
7489
|
}), j.value = true;
|
|
7455
7490
|
}, _ = () => {
|
|
7456
7491
|
D.value.off(), D.value.destroy(), D.value = null;
|
|
7457
|
-
}, $ = (
|
|
7492
|
+
}, $ = (e2, t) => {
|
|
7458
7493
|
j.value = false, _(), B();
|
|
7459
7494
|
};
|
|
7460
|
-
return vue.onMounted(B), vue.onUnmounted(_), vue.watch(z, $, { immediate: false }), vue.watch(v, $, { immediate: false }), vue.watch(g, $, { immediate: false }), vue.watch(m3, $, { immediate: false }), vue.watch(c3, $, { immediate: false }), vue.watch(p3, $, { immediate: false }), vue.watch(d2, $, { immediate: false }), vue.watch(b, $, { immediate: false }), vue.watch(E, $, { immediate: false, deep: true }), vue.watch(x, $, { immediate: false, deep: true }), vue.watch(w, $, { immediate: false, deep: true }), vue.watch(k, (
|
|
7461
|
-
t && ("object" == typeof t && "object" == typeof
|
|
7462
|
-
}, { immediate: false }), vue.watch(k, (
|
|
7463
|
-
if (u(
|
|
7495
|
+
return vue.onMounted(B), vue.onUnmounted(_), vue.watch(z, $, { immediate: false }), vue.watch(v, $, { immediate: false }), vue.watch(g, $, { immediate: false }), vue.watch(m3, $, { immediate: false }), vue.watch(c3, $, { immediate: false }), vue.watch(p3, $, { immediate: false }), vue.watch(d2, $, { immediate: false }), vue.watch(b, $, { immediate: false }), vue.watch(E, $, { immediate: false, deep: true }), vue.watch(x, $, { immediate: false, deep: true }), vue.watch(w, $, { immediate: false, deep: true }), vue.watch(k, (e2, t) => {
|
|
7496
|
+
t && ("object" == typeof t && "object" == typeof e2 && e2 && Object.keys(t) > Object.keys(e2) || "object" == typeof t && "object" != typeof e2 || u(e2)) && $();
|
|
7497
|
+
}, { immediate: false }), vue.watch(k, (e2) => {
|
|
7498
|
+
if (u(e2))
|
|
7464
7499
|
return void q(v.value, false);
|
|
7465
7500
|
let t = H();
|
|
7466
|
-
z.value && !Array.isArray(t) && (t = [t]), (z.value && !h(
|
|
7501
|
+
z.value && !Array.isArray(t) && (t = [t]), (z.value && !h(e2, t) || !z.value && e2 != t) && q(e2, false);
|
|
7467
7502
|
}, { deep: true }), { slider: O, slider$: D, isRange: z, sliderProps: T, init: B, destroy: _, refresh: $, update: q, reset: () => {
|
|
7468
7503
|
R(V.value);
|
|
7469
7504
|
} };
|
|
7470
7505
|
}(a, s, { value: l.value, initialValue: l.initialValue, tooltipFormat: p2.tooltipFormat, tooltipsFormat: p2.tooltipsFormat, tooltipsMerge: p2.tooltipsMerge, classList: c2.classList });
|
|
7471
7506
|
return __spreadValues(__spreadValues(__spreadValues({}, c2), p2), m2);
|
|
7472
7507
|
} };
|
|
7473
|
-
m.render = function(
|
|
7474
|
-
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(
|
|
7508
|
+
m.render = function(e2, t, r, i, n, o) {
|
|
7509
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(e2.sliderProps, { ref: "slider" }), null, 16);
|
|
7475
7510
|
}, m.__file = "src/Slider.vue";
|
|
7476
7511
|
const _hoisted_1$J = { class: "lupa-search-result-facet-stats-values" };
|
|
7477
7512
|
const _hoisted_2$x = {
|
|
7478
7513
|
key: 0,
|
|
7479
7514
|
class: "lupa-stats-facet-summary"
|
|
7480
7515
|
};
|
|
7481
|
-
const _hoisted_3$
|
|
7516
|
+
const _hoisted_3$o = {
|
|
7482
7517
|
key: 1,
|
|
7483
7518
|
class: "lupa-stats-facet-summary-input"
|
|
7484
7519
|
};
|
|
7485
|
-
const _hoisted_4$
|
|
7520
|
+
const _hoisted_4$i = {
|
|
7486
7521
|
key: 0,
|
|
7487
7522
|
class: "lupa-stats-range-label"
|
|
7488
7523
|
};
|
|
@@ -7675,9 +7710,9 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7675
7710
|
};
|
|
7676
7711
|
return (_ctx, _cache) => {
|
|
7677
7712
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
|
|
7678
|
-
!isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
7713
|
+
!isInputVisible.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, vue.toDisplayString(statsSummary.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$o, [
|
|
7679
7714
|
vue.createElementVNode("div", null, [
|
|
7680
|
-
rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
7715
|
+
rangeLabelFrom.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$i, vue.toDisplayString(rangeLabelFrom.value), 1)) : vue.createCommentVNode("", true),
|
|
7681
7716
|
vue.createElementVNode("div", _hoisted_5$b, [
|
|
7682
7717
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
7683
7718
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fromValue.value = $event),
|
|
@@ -7743,8 +7778,8 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
7743
7778
|
});
|
|
7744
7779
|
const _hoisted_1$I = { class: "lupa-term-checkbox-wrapper" };
|
|
7745
7780
|
const _hoisted_2$w = { class: "lupa-term-checkbox-label" };
|
|
7746
|
-
const _hoisted_3$
|
|
7747
|
-
const _hoisted_4$
|
|
7781
|
+
const _hoisted_3$n = { class: "lupa-term-label" };
|
|
7782
|
+
const _hoisted_4$h = {
|
|
7748
7783
|
key: 0,
|
|
7749
7784
|
class: "lupa-term-count"
|
|
7750
7785
|
};
|
|
@@ -7804,8 +7839,8 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
7804
7839
|
}, null, 2)
|
|
7805
7840
|
]),
|
|
7806
7841
|
vue.createElementVNode("div", _hoisted_2$w, [
|
|
7807
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
7808
|
-
_ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
7842
|
+
vue.createElementVNode("span", _hoisted_3$n, vue.toDisplayString(_ctx.item.title) + vue.toDisplayString(" "), 1),
|
|
7843
|
+
_ctx.options.showDocumentCount ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$h, "(" + vue.toDisplayString(_ctx.item.count) + ")", 1)) : vue.createCommentVNode("", true)
|
|
7809
7844
|
])
|
|
7810
7845
|
]),
|
|
7811
7846
|
showChildren.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$a, [
|
|
@@ -7829,7 +7864,7 @@ const _hoisted_1$H = {
|
|
|
7829
7864
|
"data-cy": "lupa-search-result-facet-term-values"
|
|
7830
7865
|
};
|
|
7831
7866
|
const _hoisted_2$v = { key: 0 };
|
|
7832
|
-
const _hoisted_3$
|
|
7867
|
+
const _hoisted_3$m = ["placeholder"];
|
|
7833
7868
|
const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
7834
7869
|
__name: "HierarchyFacet",
|
|
7835
7870
|
props: {
|
|
@@ -7887,7 +7922,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
7887
7922
|
"data-cy": "lupa-term-filter",
|
|
7888
7923
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => termFilter.value = $event),
|
|
7889
7924
|
placeholder: _ctx.options.labels.facetFilter
|
|
7890
|
-
}, null, 8, _hoisted_3$
|
|
7925
|
+
}, null, 8, _hoisted_3$m), [
|
|
7891
7926
|
[vue.vModelText, termFilter.value]
|
|
7892
7927
|
])
|
|
7893
7928
|
])) : vue.createCommentVNode("", true),
|
|
@@ -7991,12 +8026,12 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadVa
|
|
|
7991
8026
|
vue.onBeforeUnmount(() => {
|
|
7992
8027
|
window.removeEventListener("click", handleMouseClick);
|
|
7993
8028
|
});
|
|
7994
|
-
const handleMouseClick = (
|
|
8029
|
+
const handleMouseClick = (e2) => {
|
|
7995
8030
|
const el = facetPanel.value;
|
|
7996
8031
|
if (!el) {
|
|
7997
8032
|
return;
|
|
7998
8033
|
}
|
|
7999
|
-
const isOutsideElement = el && !el.contains(
|
|
8034
|
+
const isOutsideElement = el && !el.contains(e2.target);
|
|
8000
8035
|
if (isOutsideElement) {
|
|
8001
8036
|
isOpen.value = false;
|
|
8002
8037
|
}
|
|
@@ -8316,8 +8351,8 @@ const _hoisted_1$B = {
|
|
|
8316
8351
|
class: "lupa-mobile-filter-sidebar"
|
|
8317
8352
|
};
|
|
8318
8353
|
const _hoisted_2$r = ["onClick"];
|
|
8319
|
-
const _hoisted_3$
|
|
8320
|
-
const _hoisted_4$
|
|
8354
|
+
const _hoisted_3$l = { class: "lupa-mobile-sidebar-content" };
|
|
8355
|
+
const _hoisted_4$g = { class: "lupa-sidebar-top" };
|
|
8321
8356
|
const _hoisted_5$9 = { class: "lupa-sidebar-title" };
|
|
8322
8357
|
const _hoisted_6$6 = {
|
|
8323
8358
|
key: 0,
|
|
@@ -8360,8 +8395,8 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
8360
8395
|
class: "lupa-sidebar-close",
|
|
8361
8396
|
onClick: vue.withModifiers(handleMobileToggle, ["stop"])
|
|
8362
8397
|
}, null, 8, _hoisted_2$r),
|
|
8363
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
8364
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
8398
|
+
vue.createElementVNode("div", _hoisted_3$l, [
|
|
8399
|
+
vue.createElementVNode("div", _hoisted_4$g, [
|
|
8365
8400
|
vue.createElementVNode("div", _hoisted_5$9, [
|
|
8366
8401
|
vue.createTextVNode(vue.toDisplayString(sidebarTitle.value) + " ", 1),
|
|
8367
8402
|
isFilterCountVisible.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$6, vue.toDisplayString(vue.unref(currentFilterCount)), 1)) : vue.createCommentVNode("", true)
|
|
@@ -8385,11 +8420,11 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
8385
8420
|
});
|
|
8386
8421
|
const _hoisted_1$A = { id: "lupa-search-results-breadcrumbs" };
|
|
8387
8422
|
const _hoisted_2$q = ["href", "onClick"];
|
|
8388
|
-
const _hoisted_3$
|
|
8423
|
+
const _hoisted_3$k = {
|
|
8389
8424
|
key: 1,
|
|
8390
8425
|
class: "lupa-search-results-breadcrumb-text"
|
|
8391
8426
|
};
|
|
8392
|
-
const _hoisted_4$
|
|
8427
|
+
const _hoisted_4$f = { key: 2 };
|
|
8393
8428
|
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
8394
8429
|
__name: "SearchResultsBreadcrumbs",
|
|
8395
8430
|
props: {
|
|
@@ -8425,12 +8460,12 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
8425
8460
|
key: 0,
|
|
8426
8461
|
class: "lupa-search-results-breadcrumb-link",
|
|
8427
8462
|
href: breadcrumb.link,
|
|
8428
|
-
onClick: (
|
|
8463
|
+
onClick: (e2) => {
|
|
8429
8464
|
var _a;
|
|
8430
|
-
return handleNavigation(
|
|
8465
|
+
return handleNavigation(e2, (_a = breadcrumb == null ? void 0 : breadcrumb.link) != null ? _a : "");
|
|
8431
8466
|
}
|
|
8432
|
-
}, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
8433
|
-
index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
8467
|
+
}, vue.toDisplayString(getLabel(breadcrumb.label)), 9, _hoisted_2$q)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$k, vue.toDisplayString(getLabel(breadcrumb.label)), 1)),
|
|
8468
|
+
index < breadcrumbsValue.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$f, " / ")) : vue.createCommentVNode("", true)
|
|
8434
8469
|
]);
|
|
8435
8470
|
}), 128))
|
|
8436
8471
|
]);
|
|
@@ -8535,8 +8570,8 @@ const _hoisted_2$p = {
|
|
|
8535
8570
|
key: 0,
|
|
8536
8571
|
class: "lupa-page-number-separator"
|
|
8537
8572
|
};
|
|
8538
|
-
const _hoisted_3$
|
|
8539
|
-
const _hoisted_4$
|
|
8573
|
+
const _hoisted_3$j = ["onClick"];
|
|
8574
|
+
const _hoisted_4$e = {
|
|
8540
8575
|
key: 0,
|
|
8541
8576
|
class: "lupa-page-number-separator"
|
|
8542
8577
|
};
|
|
@@ -8639,10 +8674,10 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
8639
8674
|
page === _ctx.options.selectedPage ? "lupa-page-number-selected" : ""
|
|
8640
8675
|
]),
|
|
8641
8676
|
"data-cy": "lupa-page-number"
|
|
8642
|
-
}, vue.toDisplayString(page), 11, _hoisted_3$
|
|
8677
|
+
}, vue.toDisplayString(page), 11, _hoisted_3$j);
|
|
8643
8678
|
}), 128)),
|
|
8644
8679
|
showLastPage.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
8645
|
-
showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
8680
|
+
showLastPageSeparator.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$e, "...")) : vue.createCommentVNode("", true),
|
|
8646
8681
|
vue.createElementVNode("div", {
|
|
8647
8682
|
class: "lupa-page-number lupa-page-number-last",
|
|
8648
8683
|
onClick: _cache[2] || (_cache[2] = () => {
|
|
@@ -8666,8 +8701,8 @@ const _hoisted_1$v = {
|
|
|
8666
8701
|
"data-cy": "lupa-search-results-page-size"
|
|
8667
8702
|
};
|
|
8668
8703
|
const _hoisted_2$o = { id: "lupa-select" };
|
|
8669
|
-
const _hoisted_3$
|
|
8670
|
-
const _hoisted_4$
|
|
8704
|
+
const _hoisted_3$i = { class: "lupa-select-label" };
|
|
8705
|
+
const _hoisted_4$d = ["aria-label"];
|
|
8671
8706
|
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
8672
8707
|
__name: "SearchResultsPageSize",
|
|
8673
8708
|
props: {
|
|
@@ -8687,8 +8722,8 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
8687
8722
|
var _a, _b;
|
|
8688
8723
|
return (_b = (_a = props.labels) == null ? void 0 : _a.pageSize) != null ? _b : "";
|
|
8689
8724
|
});
|
|
8690
|
-
const handleSelect = (
|
|
8691
|
-
const value =
|
|
8725
|
+
const handleSelect = (e2) => {
|
|
8726
|
+
const value = e2.target.value;
|
|
8692
8727
|
paramsStore.appendParams({
|
|
8693
8728
|
params: [{ name: optionsStore.getQueryParamName(QUERY_PARAMS.LIMIT), value }],
|
|
8694
8729
|
paramsToRemove: [optionsStore.getQueryParamName(QUERY_PARAMS.PAGE)]
|
|
@@ -8697,7 +8732,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
8697
8732
|
return (_ctx, _cache) => {
|
|
8698
8733
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
|
|
8699
8734
|
vue.createElementVNode("div", _hoisted_2$o, [
|
|
8700
|
-
vue.createElementVNode("label", _hoisted_3$
|
|
8735
|
+
vue.createElementVNode("label", _hoisted_3$i, vue.toDisplayString(label.value), 1),
|
|
8701
8736
|
vue.createElementVNode("select", {
|
|
8702
8737
|
class: "lupa-select-dropdown",
|
|
8703
8738
|
"aria-label": label.value,
|
|
@@ -8709,7 +8744,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
8709
8744
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options.sizes, (option) => {
|
|
8710
8745
|
return vue.openBlock(), vue.createElementBlock("option", { key: option }, vue.toDisplayString(prefixLabel.value) + vue.toDisplayString(option), 1);
|
|
8711
8746
|
}), 128))
|
|
8712
|
-
], 40, _hoisted_4$
|
|
8747
|
+
], 40, _hoisted_4$d)
|
|
8713
8748
|
])
|
|
8714
8749
|
]);
|
|
8715
8750
|
};
|
|
@@ -8720,8 +8755,8 @@ const _hoisted_1$u = {
|
|
|
8720
8755
|
class: "lupa-search-results-sort"
|
|
8721
8756
|
};
|
|
8722
8757
|
const _hoisted_2$n = { id: "lupa-select" };
|
|
8723
|
-
const _hoisted_3$
|
|
8724
|
-
const _hoisted_4$
|
|
8758
|
+
const _hoisted_3$h = { class: "lupa-select-label" };
|
|
8759
|
+
const _hoisted_4$c = ["aria-label"];
|
|
8725
8760
|
const _hoisted_5$8 = ["value"];
|
|
8726
8761
|
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
8727
8762
|
__name: "SearchResultsSort",
|
|
@@ -8774,7 +8809,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
8774
8809
|
return (_ctx, _cache) => {
|
|
8775
8810
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
|
|
8776
8811
|
vue.createElementVNode("div", _hoisted_2$n, [
|
|
8777
|
-
vue.createElementVNode("label", _hoisted_3$
|
|
8812
|
+
vue.createElementVNode("label", _hoisted_3$h, vue.toDisplayString(_ctx.options.label), 1),
|
|
8778
8813
|
vue.withDirectives(vue.createElementVNode("select", {
|
|
8779
8814
|
class: "lupa-select-dropdown",
|
|
8780
8815
|
"aria-label": _ctx.options.label,
|
|
@@ -8789,7 +8824,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
8789
8824
|
value: option.key
|
|
8790
8825
|
}, vue.toDisplayString(option.label), 9, _hoisted_5$8);
|
|
8791
8826
|
}), 128))
|
|
8792
|
-
], 40, _hoisted_4$
|
|
8827
|
+
], 40, _hoisted_4$c), [
|
|
8793
8828
|
[vue.vModelSelect, selectedKey.value]
|
|
8794
8829
|
])
|
|
8795
8830
|
])
|
|
@@ -8802,8 +8837,8 @@ const _hoisted_2$m = {
|
|
|
8802
8837
|
key: 0,
|
|
8803
8838
|
class: "lupa-toolbar-right-title"
|
|
8804
8839
|
};
|
|
8805
|
-
const _hoisted_3$
|
|
8806
|
-
const _hoisted_4$
|
|
8840
|
+
const _hoisted_3$g = { key: 2 };
|
|
8841
|
+
const _hoisted_4$b = { key: 4 };
|
|
8807
8842
|
const _hoisted_5$7 = { key: 6 };
|
|
8808
8843
|
const _hoisted_6$5 = { class: "lupa-toolbar-right" };
|
|
8809
8844
|
const _hoisted_7$3 = {
|
|
@@ -8921,13 +8956,13 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
8921
8956
|
}, [
|
|
8922
8957
|
vue.createElementVNode("div", _hoisted_1$t, [
|
|
8923
8958
|
toolbarLeftLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$m, vue.toDisplayString(toolbarLeftLabel.value), 1)) : vue.createCommentVNode("", true),
|
|
8924
|
-
showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$B, { key: 1 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
8959
|
+
showLayoutSelection.value ? (vue.openBlock(), vue.createBlock(_sfc_main$B, { key: 1 })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$g)),
|
|
8925
8960
|
showItemSummary.value ? (vue.openBlock(), vue.createBlock(_sfc_main$T, {
|
|
8926
8961
|
key: 3,
|
|
8927
8962
|
label: searchSummaryLabel.value,
|
|
8928
8963
|
clearable: vue.unref(hasAnyFilter) && showFilterClear.value,
|
|
8929
8964
|
onClear: handleClearAll
|
|
8930
|
-
}, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
8965
|
+
}, null, 8, ["label", "clearable"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$b)),
|
|
8931
8966
|
displayPageSelect.value ? (vue.openBlock(), vue.createBlock(_sfc_main$z, {
|
|
8932
8967
|
key: 5,
|
|
8933
8968
|
options: paginationOptions.value.pageSelect,
|
|
@@ -8975,11 +9010,11 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
8975
9010
|
});
|
|
8976
9011
|
const _hoisted_1$s = ["innerHTML"];
|
|
8977
9012
|
const _hoisted_2$l = ["title"];
|
|
8978
|
-
const _hoisted_3$
|
|
9013
|
+
const _hoisted_3$f = {
|
|
8979
9014
|
key: 0,
|
|
8980
9015
|
class: "lupa-search-results-product-title-text"
|
|
8981
9016
|
};
|
|
8982
|
-
const _hoisted_4$
|
|
9017
|
+
const _hoisted_4$a = ["href"];
|
|
8983
9018
|
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
8984
9019
|
__name: "SearchResultsProductTitle",
|
|
8985
9020
|
props: {
|
|
@@ -9019,13 +9054,13 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
9019
9054
|
style: vue.normalizeStyle(`-webkit-line-clamp: ${maxLines.value}`),
|
|
9020
9055
|
title: title.value
|
|
9021
9056
|
}, [
|
|
9022
|
-
!_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
9057
|
+
!_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$f, vue.toDisplayString(title.value), 1)) : vue.createCommentVNode("", true),
|
|
9023
9058
|
_ctx.options.link ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
9024
9059
|
key: 1,
|
|
9025
9060
|
href: _ctx.link,
|
|
9026
9061
|
class: "lupa-search-results-product-title-text lupa-title-link",
|
|
9027
9062
|
onClick: handleNavigation
|
|
9028
|
-
}, vue.toDisplayString(title.value), 9, _hoisted_4$
|
|
9063
|
+
}, vue.toDisplayString(title.value), 9, _hoisted_4$a)) : vue.createCommentVNode("", true)
|
|
9029
9064
|
], 12, _hoisted_2$l));
|
|
9030
9065
|
};
|
|
9031
9066
|
}
|
|
@@ -9065,8 +9100,8 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
9065
9100
|
});
|
|
9066
9101
|
const _hoisted_1$q = { id: "lupa-search-results-rating" };
|
|
9067
9102
|
const _hoisted_2$k = { class: "lupa-ratings" };
|
|
9068
|
-
const _hoisted_3$
|
|
9069
|
-
const _hoisted_4$
|
|
9103
|
+
const _hoisted_3$e = { class: "lupa-ratings-base" };
|
|
9104
|
+
const _hoisted_4$9 = ["innerHTML"];
|
|
9070
9105
|
const _hoisted_5$6 = { class: "lupa-rating-wrapper" };
|
|
9071
9106
|
const _hoisted_6$4 = ["innerHTML"];
|
|
9072
9107
|
const _hoisted_7$2 = ["href"];
|
|
@@ -9104,13 +9139,13 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
9104
9139
|
return (_ctx, _cache) => {
|
|
9105
9140
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
|
|
9106
9141
|
vue.createElementVNode("div", _hoisted_2$k, [
|
|
9107
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
9142
|
+
vue.createElementVNode("div", _hoisted_3$e, [
|
|
9108
9143
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(baseStars.value, (star, index) => {
|
|
9109
9144
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
9110
9145
|
key: index,
|
|
9111
9146
|
innerHTML: star,
|
|
9112
9147
|
class: "lupa-rating lupa-rating-not-highlighted"
|
|
9113
|
-
}, null, 8, _hoisted_4$
|
|
9148
|
+
}, null, 8, _hoisted_4$9);
|
|
9114
9149
|
}), 128))
|
|
9115
9150
|
]),
|
|
9116
9151
|
vue.createElementVNode("div", _hoisted_5$6, [
|
|
@@ -9192,7 +9227,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
9192
9227
|
});
|
|
9193
9228
|
const _hoisted_1$n = { class: "lupa-search-results-add-to-cart-wrapper" };
|
|
9194
9229
|
const _hoisted_2$j = { class: "lupa-search-results-product-addtocart" };
|
|
9195
|
-
const _hoisted_3$
|
|
9230
|
+
const _hoisted_3$d = ["onClick", "disabled"];
|
|
9196
9231
|
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
9197
9232
|
__name: "SearchResultsProductAddToCart",
|
|
9198
9233
|
props: {
|
|
@@ -9227,7 +9262,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
9227
9262
|
class: vue.normalizeClass(loading.value ? "lupa-add-to-cart-loading" : "lupa-add-to-cart"),
|
|
9228
9263
|
"data-cy": "lupa-add-to-cart",
|
|
9229
9264
|
disabled: !inStockValue.value || loading.value
|
|
9230
|
-
}, vue.toDisplayString(label.value), 11, _hoisted_3$
|
|
9265
|
+
}, vue.toDisplayString(label.value), 11, _hoisted_3$d)
|
|
9231
9266
|
])
|
|
9232
9267
|
]);
|
|
9233
9268
|
};
|
|
@@ -9235,8 +9270,8 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
9235
9270
|
});
|
|
9236
9271
|
const _hoisted_1$m = ["innerHTML"];
|
|
9237
9272
|
const _hoisted_2$i = { key: 0 };
|
|
9238
|
-
const _hoisted_3$
|
|
9239
|
-
const _hoisted_4$
|
|
9273
|
+
const _hoisted_3$c = { key: 1 };
|
|
9274
|
+
const _hoisted_4$8 = { class: "lupa-search-box-custom-label" };
|
|
9240
9275
|
const _hoisted_5$5 = { class: "lupa-search-box-custom-text" };
|
|
9241
9276
|
const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
9242
9277
|
__name: "SearchResultsProductCustom",
|
|
@@ -9280,8 +9315,8 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
9280
9315
|
key: 1,
|
|
9281
9316
|
class: className.value
|
|
9282
9317
|
}, vue.toHandlers(_ctx.options.action ? { click: handleClick } : {}, true)), [
|
|
9283
|
-
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
9284
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
9318
|
+
!label.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$i, vue.toDisplayString(text.value), 1)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$c, [
|
|
9319
|
+
vue.createElementVNode("div", _hoisted_4$8, vue.toDisplayString(label.value), 1),
|
|
9285
9320
|
vue.createElementVNode("div", _hoisted_5$5, vue.toDisplayString(text.value), 1)
|
|
9286
9321
|
]))
|
|
9287
9322
|
], 16));
|
|
@@ -9323,8 +9358,8 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
9323
9358
|
});
|
|
9324
9359
|
const _hoisted_1$k = { id: "lupa-search-results-rating" };
|
|
9325
9360
|
const _hoisted_2$h = ["innerHTML"];
|
|
9326
|
-
const _hoisted_3$
|
|
9327
|
-
const _hoisted_4$
|
|
9361
|
+
const _hoisted_3$b = { class: "lupa-ratings" };
|
|
9362
|
+
const _hoisted_4$7 = ["href"];
|
|
9328
9363
|
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
9329
9364
|
__name: "SearchResultsProductSingleStarRating",
|
|
9330
9365
|
props: {
|
|
@@ -9358,11 +9393,11 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
9358
9393
|
innerHTML: star.value,
|
|
9359
9394
|
class: "lupa-rating lupa-rating-highlighted"
|
|
9360
9395
|
}, null, 8, _hoisted_2$h),
|
|
9361
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
9396
|
+
vue.createElementVNode("div", _hoisted_3$b, vue.toDisplayString(rating.value), 1),
|
|
9362
9397
|
vue.createElementVNode("a", {
|
|
9363
9398
|
href: ratingLink.value,
|
|
9364
9399
|
class: "lupa-total-ratings"
|
|
9365
|
-
}, vue.toDisplayString(totalRatings.value), 9, _hoisted_4$
|
|
9400
|
+
}, vue.toDisplayString(totalRatings.value), 9, _hoisted_4$7)
|
|
9366
9401
|
]);
|
|
9367
9402
|
};
|
|
9368
9403
|
}
|
|
@@ -9457,14 +9492,15 @@ const _hoisted_2$g = {
|
|
|
9457
9492
|
key: 0,
|
|
9458
9493
|
class: "lupa-out-of-stock"
|
|
9459
9494
|
};
|
|
9460
|
-
const _hoisted_3$
|
|
9495
|
+
const _hoisted_3$a = { class: "lupa-search-result-product-details-section" };
|
|
9461
9496
|
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
9462
9497
|
__name: "SearchResultsProductCard",
|
|
9463
9498
|
props: {
|
|
9464
9499
|
product: {},
|
|
9465
9500
|
options: {},
|
|
9466
9501
|
isAdditionalPanel: { type: Boolean },
|
|
9467
|
-
clickTrackingSettings: {}
|
|
9502
|
+
clickTrackingSettings: {},
|
|
9503
|
+
lupaClickTrackingType: {}
|
|
9468
9504
|
},
|
|
9469
9505
|
setup(__props) {
|
|
9470
9506
|
const props = __props;
|
|
@@ -9488,11 +9524,11 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
9488
9524
|
});
|
|
9489
9525
|
const imageElements = vue.computed(() => {
|
|
9490
9526
|
var _a, _b;
|
|
9491
|
-
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((
|
|
9527
|
+
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.type === DocumentElementType.IMAGE && !e2.group)) != null ? _b : [];
|
|
9492
9528
|
});
|
|
9493
9529
|
const detailElements = vue.computed(() => {
|
|
9494
9530
|
var _a, _b;
|
|
9495
|
-
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((
|
|
9531
|
+
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.type !== DocumentElementType.IMAGE && !e2.group)) != null ? _b : [];
|
|
9496
9532
|
});
|
|
9497
9533
|
const labels = vue.computed(() => {
|
|
9498
9534
|
return props.options.labels;
|
|
@@ -9511,7 +9547,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
9511
9547
|
var _a;
|
|
9512
9548
|
return [
|
|
9513
9549
|
...Array.from(
|
|
9514
|
-
new Set((_a = props.options.elements) == null ? void 0 : _a.map((
|
|
9550
|
+
new Set((_a = props.options.elements) == null ? void 0 : _a.map((e2) => e2.group).filter((g) => Boolean(g)))
|
|
9515
9551
|
)
|
|
9516
9552
|
];
|
|
9517
9553
|
});
|
|
@@ -9547,7 +9583,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
9547
9583
|
});
|
|
9548
9584
|
const getGroupElements = (group) => {
|
|
9549
9585
|
var _a, _b;
|
|
9550
|
-
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((
|
|
9586
|
+
return (_b = (_a = props.options.elements) == null ? void 0 : _a.filter((e2) => e2.group === group)) != null ? _b : [];
|
|
9551
9587
|
};
|
|
9552
9588
|
vue.onMounted(() => {
|
|
9553
9589
|
checkIfIsInStock();
|
|
@@ -9556,16 +9592,16 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
9556
9592
|
isInStock.value = props.options.isInStock ? yield props.options.isInStock(props.product) : true;
|
|
9557
9593
|
});
|
|
9558
9594
|
const handleClick = () => {
|
|
9559
|
-
var _a, _b, _c;
|
|
9595
|
+
var _a, _b, _c, _d;
|
|
9560
9596
|
trackingStore.trackEvent({
|
|
9561
9597
|
queryKey: props.options.queryKey,
|
|
9562
9598
|
data: {
|
|
9563
9599
|
itemId: id.value,
|
|
9564
9600
|
searchQuery: query.value,
|
|
9565
|
-
type: "itemClick",
|
|
9601
|
+
type: (_a = props.lupaClickTrackingType) != null ? _a : "itemClick",
|
|
9566
9602
|
analytics: {
|
|
9567
9603
|
type: clickTrackingType.value,
|
|
9568
|
-
label: (
|
|
9604
|
+
label: (_b = trackingLabel.value) != null ? _b : "",
|
|
9569
9605
|
listLabel: trackingListLabel.value,
|
|
9570
9606
|
items: [props.product],
|
|
9571
9607
|
itemId: id.value
|
|
@@ -9573,7 +9609,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
9573
9609
|
options: { allowEmptySearchQuery: true }
|
|
9574
9610
|
}
|
|
9575
9611
|
});
|
|
9576
|
-
(
|
|
9612
|
+
(_d = (_c = searchResultOptions.value.callbacks) == null ? void 0 : _c.onProductClick) == null ? void 0 : _d.call(_c, {
|
|
9577
9613
|
queryKey: query.value,
|
|
9578
9614
|
hasResults: true,
|
|
9579
9615
|
productId: id.value
|
|
@@ -9634,7 +9670,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
9634
9670
|
}, null, 8, ["options"]),
|
|
9635
9671
|
((_a = labels.value) == null ? void 0 : _a.outOfStock) && !isInStock.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$g, vue.toDisplayString(labels.value.outOfStock), 1)) : vue.createCommentVNode("", true)
|
|
9636
9672
|
], 8, _hoisted_1$j),
|
|
9637
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
9673
|
+
vue.createElementVNode("div", _hoisted_3$a, [
|
|
9638
9674
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(detailElements.value, (element) => {
|
|
9639
9675
|
return vue.openBlock(), vue.createBlock(_sfc_main$l, {
|
|
9640
9676
|
class: "lupa-search-results-product-element",
|
|
@@ -9677,11 +9713,11 @@ const _hoisted_1$i = {
|
|
|
9677
9713
|
"data-cy": "lupa-search-results-similar-queries"
|
|
9678
9714
|
};
|
|
9679
9715
|
const _hoisted_2$f = { class: "lupa-similar-queries-label" };
|
|
9680
|
-
const _hoisted_3$
|
|
9716
|
+
const _hoisted_3$9 = {
|
|
9681
9717
|
class: "lupa-similar-query-label",
|
|
9682
9718
|
"data-cy": "lupa-similar-query-label"
|
|
9683
9719
|
};
|
|
9684
|
-
const _hoisted_4$
|
|
9720
|
+
const _hoisted_4$6 = ["onClick"];
|
|
9685
9721
|
const _hoisted_5$4 = ["innerHTML"];
|
|
9686
9722
|
const _hoisted_6$3 = { key: 0 };
|
|
9687
9723
|
const _hoisted_7$1 = {
|
|
@@ -9722,7 +9758,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
9722
9758
|
vue.createElementVNode("div", _hoisted_2$f, vue.toDisplayString(_ctx.labels.similarQueries), 1),
|
|
9723
9759
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQueries.value, (similarQuery, index) => {
|
|
9724
9760
|
return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
|
|
9725
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
9761
|
+
vue.createElementVNode("div", _hoisted_3$9, [
|
|
9726
9762
|
vue.createElementVNode("span", null, vue.toDisplayString(similarQueryLabel.value), 1),
|
|
9727
9763
|
vue.createElementVNode("span", {
|
|
9728
9764
|
id: "lupa-similar-query-text-component",
|
|
@@ -9734,7 +9770,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
9734
9770
|
innerHTML: getSimilarQueryContent(similarQuery.displayQuery)
|
|
9735
9771
|
}, null, 8, _hoisted_5$4),
|
|
9736
9772
|
similarQuery.count ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$3, " (" + vue.toDisplayString(similarQuery.count) + ")", 1)) : vue.createCommentVNode("", true)
|
|
9737
|
-
], 8, _hoisted_4$
|
|
9773
|
+
], 8, _hoisted_4$6)
|
|
9738
9774
|
]),
|
|
9739
9775
|
vue.createElementVNode("div", _hoisted_7$1, [
|
|
9740
9776
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarQuery.items, (product, index2) => {
|
|
@@ -9911,7 +9947,7 @@ const _hoisted_1$e = {
|
|
|
9911
9947
|
"data-cy": "lupa-search-results-similar-results"
|
|
9912
9948
|
};
|
|
9913
9949
|
const _hoisted_2$c = { class: "lupa-similar-results-label" };
|
|
9914
|
-
const _hoisted_3$
|
|
9950
|
+
const _hoisted_3$8 = {
|
|
9915
9951
|
class: "lupa-products",
|
|
9916
9952
|
"data-cy": "lupa-products"
|
|
9917
9953
|
};
|
|
@@ -9933,7 +9969,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
9933
9969
|
return (_ctx, _cache) => {
|
|
9934
9970
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
|
|
9935
9971
|
vue.createElementVNode("div", _hoisted_2$c, vue.toDisplayString(_ctx.labels.similarResultsLabel), 1),
|
|
9936
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
9972
|
+
vue.createElementVNode("div", _hoisted_3$8, [
|
|
9937
9973
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(similarResults.value.items, (product, index) => {
|
|
9938
9974
|
return vue.openBlock(), vue.createBlock(_sfc_main$k, {
|
|
9939
9975
|
style: vue.normalizeStyle(_ctx.columnSize),
|
|
@@ -9952,12 +9988,12 @@ const _hoisted_2$b = {
|
|
|
9952
9988
|
class: "lupa-products",
|
|
9953
9989
|
"data-cy": "lupa-products"
|
|
9954
9990
|
};
|
|
9955
|
-
const _hoisted_3$
|
|
9991
|
+
const _hoisted_3$7 = {
|
|
9956
9992
|
key: 1,
|
|
9957
9993
|
class: "lupa-empty-results",
|
|
9958
9994
|
"data-cy": "lupa-no-results-in-page"
|
|
9959
9995
|
};
|
|
9960
|
-
const _hoisted_4$
|
|
9996
|
+
const _hoisted_4$5 = {
|
|
9961
9997
|
key: 3,
|
|
9962
9998
|
class: "lupa-empty-results",
|
|
9963
9999
|
"data-cy": "lupa-no-results"
|
|
@@ -10131,7 +10167,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
10131
10167
|
}, null, 8, ["style", "product", "options"]);
|
|
10132
10168
|
}), 128))
|
|
10133
10169
|
]),
|
|
10134
|
-
vue.unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
10170
|
+
vue.unref(isPageEmpty) && _ctx.options.labels.noItemsInPage ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$7, [
|
|
10135
10171
|
vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.noItemsInPage) + " ", 1),
|
|
10136
10172
|
_ctx.options.labels.backToFirstPage ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
10137
10173
|
key: 0,
|
|
@@ -10149,7 +10185,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
10149
10185
|
location: "bottom",
|
|
10150
10186
|
sdkOptions: _ctx.options.options
|
|
10151
10187
|
}, null, 8, ["options", "sdkOptions"])
|
|
10152
|
-
], 64)) : !vue.unref(loading) && vue.unref(currentQueryText) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
10188
|
+
], 64)) : !vue.unref(loading) && vue.unref(currentQueryText) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$5, [
|
|
10153
10189
|
vue.createTextVNode(vue.toDisplayString(_ctx.options.labels.emptyResults) + " ", 1),
|
|
10154
10190
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(currentQueryText)), 1)
|
|
10155
10191
|
])) : vue.createCommentVNode("", true),
|
|
@@ -10177,7 +10213,7 @@ const _hoisted_2$a = {
|
|
|
10177
10213
|
key: 0,
|
|
10178
10214
|
class: "lupa-category-back"
|
|
10179
10215
|
};
|
|
10180
|
-
const _hoisted_3$
|
|
10216
|
+
const _hoisted_3$6 = ["href"];
|
|
10181
10217
|
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
10182
10218
|
__name: "CategoryTopFilters",
|
|
10183
10219
|
props: {
|
|
@@ -10216,7 +10252,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
10216
10252
|
"data-cy": "lupa-category-back",
|
|
10217
10253
|
href: backUrlLink.value,
|
|
10218
10254
|
onClick: handleNavigationBack
|
|
10219
|
-
}, vue.toDisplayString(backTitle.value), 9, _hoisted_3$
|
|
10255
|
+
}, vue.toDisplayString(backTitle.value), 9, _hoisted_3$6)
|
|
10220
10256
|
])) : vue.createCommentVNode("", true),
|
|
10221
10257
|
vue.createVNode(_sfc_main$w, {
|
|
10222
10258
|
class: "lupa-toolbar-mobile",
|
|
@@ -10237,8 +10273,8 @@ const _hoisted_2$9 = {
|
|
|
10237
10273
|
id: "lupa-search-results",
|
|
10238
10274
|
class: "top-layout-wrapper"
|
|
10239
10275
|
};
|
|
10240
|
-
const _hoisted_3$
|
|
10241
|
-
const _hoisted_4$
|
|
10276
|
+
const _hoisted_3$5 = { class: "search-content" };
|
|
10277
|
+
const _hoisted_4$4 = { id: "lupa-search-results" };
|
|
10242
10278
|
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
10243
10279
|
__name: "SearchResults",
|
|
10244
10280
|
props: {
|
|
@@ -10478,7 +10514,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10478
10514
|
ref: searchResultsFilters,
|
|
10479
10515
|
onFilter: handleParamsChange
|
|
10480
10516
|
}, null, 8, ["options"])) : vue.createCommentVNode("", true),
|
|
10481
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
10517
|
+
vue.createElementVNode("div", _hoisted_3$5, [
|
|
10482
10518
|
vue.createVNode(_sfc_main$U, { labels: didYouMeanLabels.value }, null, 8, ["labels"]),
|
|
10483
10519
|
vue.createVNode(_sfc_main$S, {
|
|
10484
10520
|
options: _ctx.options,
|
|
@@ -10501,7 +10537,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
10501
10537
|
options: _ctx.options,
|
|
10502
10538
|
"is-product-list": (_d = _ctx.isProductList) != null ? _d : false
|
|
10503
10539
|
}, null, 8, ["options", "is-product-list"]),
|
|
10504
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
10540
|
+
vue.createElementVNode("div", _hoisted_4$4, [
|
|
10505
10541
|
showFilterSidebar.value ? (vue.openBlock(), vue.createBlock(_sfc_main$F, {
|
|
10506
10542
|
key: 0,
|
|
10507
10543
|
options: (_e = _ctx.options.filters) != null ? _e : {},
|
|
@@ -10953,7 +10989,7 @@ lodash.exports;
|
|
|
10953
10989
|
return types;
|
|
10954
10990
|
}
|
|
10955
10991
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
10956
|
-
} catch (
|
|
10992
|
+
} catch (e2) {
|
|
10957
10993
|
}
|
|
10958
10994
|
}();
|
|
10959
10995
|
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;
|
|
@@ -11325,7 +11361,7 @@ lodash.exports;
|
|
|
11325
11361
|
var func = getNative(Object2, "defineProperty");
|
|
11326
11362
|
func({}, "", {});
|
|
11327
11363
|
return func;
|
|
11328
|
-
} catch (
|
|
11364
|
+
} catch (e2) {
|
|
11329
11365
|
}
|
|
11330
11366
|
}();
|
|
11331
11367
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
@@ -13357,7 +13393,7 @@ lodash.exports;
|
|
|
13357
13393
|
try {
|
|
13358
13394
|
value[symToStringTag] = undefined$1;
|
|
13359
13395
|
var unmasked = true;
|
|
13360
|
-
} catch (
|
|
13396
|
+
} catch (e2) {
|
|
13361
13397
|
}
|
|
13362
13398
|
var result2 = nativeObjectToString.call(value);
|
|
13363
13399
|
if (unmasked) {
|
|
@@ -13714,11 +13750,11 @@ lodash.exports;
|
|
|
13714
13750
|
if (func != null) {
|
|
13715
13751
|
try {
|
|
13716
13752
|
return funcToString.call(func);
|
|
13717
|
-
} catch (
|
|
13753
|
+
} catch (e2) {
|
|
13718
13754
|
}
|
|
13719
13755
|
try {
|
|
13720
13756
|
return func + "";
|
|
13721
|
-
} catch (
|
|
13757
|
+
} catch (e2) {
|
|
13722
13758
|
}
|
|
13723
13759
|
}
|
|
13724
13760
|
return "";
|
|
@@ -15405,8 +15441,8 @@ lodash.exports;
|
|
|
15405
15441
|
var attempt = baseRest(function(func, args) {
|
|
15406
15442
|
try {
|
|
15407
15443
|
return apply(func, undefined$1, args);
|
|
15408
|
-
} catch (
|
|
15409
|
-
return isError(
|
|
15444
|
+
} catch (e2) {
|
|
15445
|
+
return isError(e2) ? e2 : new Error2(e2);
|
|
15410
15446
|
}
|
|
15411
15447
|
});
|
|
15412
15448
|
var bindAll = flatRest(function(object, methodNames) {
|
|
@@ -16549,8 +16585,8 @@ var Carousel = vue.defineComponent({
|
|
|
16549
16585
|
const tolerance = Math.sign(dragged.x) * 0.4;
|
|
16550
16586
|
const draggedSlides = Math.round(dragged.x / slideWidth.value + tolerance) * direction;
|
|
16551
16587
|
if (draggedSlides && !isTouch) {
|
|
16552
|
-
const captureClick = (
|
|
16553
|
-
|
|
16588
|
+
const captureClick = (e2) => {
|
|
16589
|
+
e2.stopPropagation();
|
|
16554
16590
|
window.removeEventListener("click", captureClick, true);
|
|
16555
16591
|
};
|
|
16556
16592
|
window.addEventListener("click", captureClick, true);
|
|
@@ -16854,9 +16890,18 @@ var Slide = vue.defineComponent({
|
|
|
16854
16890
|
const _hoisted_1$8 = { class: "lupa-search-product-recommendations-wrapper" };
|
|
16855
16891
|
const _hoisted_2$6 = {
|
|
16856
16892
|
key: 0,
|
|
16893
|
+
class: "lupa-recommendation-section-title"
|
|
16894
|
+
};
|
|
16895
|
+
const _hoisted_3$4 = {
|
|
16896
|
+
key: 1,
|
|
16857
16897
|
class: "lupa-recommended-products",
|
|
16858
16898
|
"data-cy": "lupa-recommended-products"
|
|
16859
16899
|
};
|
|
16900
|
+
const _hoisted_4$3 = {
|
|
16901
|
+
key: 1,
|
|
16902
|
+
class: "lupa-products",
|
|
16903
|
+
"data-cy": "lupa-products"
|
|
16904
|
+
};
|
|
16860
16905
|
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
16861
16906
|
__name: "Recommendations",
|
|
16862
16907
|
props: {
|
|
@@ -16865,6 +16910,9 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16865
16910
|
setup(__props, { expose: __expose }) {
|
|
16866
16911
|
const props = __props;
|
|
16867
16912
|
const optionsStore = useOptionsStore();
|
|
16913
|
+
const searchResultStore = useSearchResultStore();
|
|
16914
|
+
const screenStore = useScreenStore();
|
|
16915
|
+
const { columnCount } = storeToRefs(searchResultStore);
|
|
16868
16916
|
const recommendations = vue.ref([]);
|
|
16869
16917
|
const recommendationsType = vue.ref(
|
|
16870
16918
|
"recommendations_lupasearch"
|
|
@@ -16881,15 +16929,35 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16881
16929
|
eventLabel: recommendationsType.value
|
|
16882
16930
|
};
|
|
16883
16931
|
});
|
|
16932
|
+
const layoutType = vue.computed(() => {
|
|
16933
|
+
var _a;
|
|
16934
|
+
return (_a = props.options.layoutType) != null ? _a : "carousel";
|
|
16935
|
+
});
|
|
16936
|
+
const columnSize = vue.computed(() => `width: ${100 / columnCount.value}%`);
|
|
16937
|
+
const title = vue.computed(() => {
|
|
16938
|
+
var _a;
|
|
16939
|
+
return (_a = props.options.recommendationLabels.title) != null ? _a : "";
|
|
16940
|
+
});
|
|
16884
16941
|
vue.onMounted(() => {
|
|
16885
16942
|
loadRecommendations();
|
|
16943
|
+
window.addEventListener("resize", handleResize);
|
|
16944
|
+
handleResize();
|
|
16886
16945
|
optionsStore.setSearchResultOptions({
|
|
16887
16946
|
options: props.options
|
|
16888
16947
|
});
|
|
16889
16948
|
});
|
|
16949
|
+
vue.onBeforeUnmount(() => {
|
|
16950
|
+
window.removeEventListener("resize", handleResize);
|
|
16951
|
+
});
|
|
16890
16952
|
const getProductKeyAction = (index, product) => {
|
|
16891
16953
|
return getProductKey(index.toString(), product, props.options.idKey);
|
|
16892
16954
|
};
|
|
16955
|
+
const handleResize = () => {
|
|
16956
|
+
const doc = document.documentElement;
|
|
16957
|
+
doc.style.setProperty("--lupa-full-height", `${window.innerHeight}px`);
|
|
16958
|
+
screenStore.setScreenWidth({ width: window.innerWidth });
|
|
16959
|
+
searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
|
|
16960
|
+
};
|
|
16893
16961
|
const loadRecommendations = () => {
|
|
16894
16962
|
var _a, _b, _c, _d, _e;
|
|
16895
16963
|
if ((_a = props.options.abTesting) == null ? void 0 : _a.enabled) {
|
|
@@ -16931,6 +16999,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16931
16999
|
const result = yield LupaSearchSdk.recommend(
|
|
16932
17000
|
props.options.queryKey,
|
|
16933
17001
|
props.options.itemId,
|
|
17002
|
+
props.options.filters,
|
|
16934
17003
|
props.options.options
|
|
16935
17004
|
);
|
|
16936
17005
|
if (!result.success) {
|
|
@@ -16944,8 +17013,9 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16944
17013
|
__expose({ fetch: fetch2 });
|
|
16945
17014
|
return (_ctx, _cache) => {
|
|
16946
17015
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
|
|
16947
|
-
|
|
16948
|
-
|
|
17016
|
+
title.value ? (vue.openBlock(), vue.createElementBlock("h2", _hoisted_2$6, vue.toDisplayString(title.value), 1)) : vue.createCommentVNode("", true),
|
|
17017
|
+
!loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, [
|
|
17018
|
+
layoutType.value === "carousel" ? (vue.openBlock(), vue.createBlock(vue.unref(Carousel), vue.mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
|
|
16949
17019
|
addons: vue.withCtx(() => [
|
|
16950
17020
|
vue.createVNode(vue.unref(Navigation))
|
|
16951
17021
|
]),
|
|
@@ -16966,7 +17036,17 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16966
17036
|
}), 128))
|
|
16967
17037
|
]),
|
|
16968
17038
|
_: 1
|
|
16969
|
-
}, 16)
|
|
17039
|
+
}, 16)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [
|
|
17040
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(recommendations.value, (product, index) => {
|
|
17041
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$k, {
|
|
17042
|
+
style: vue.normalizeStyle(columnSize.value),
|
|
17043
|
+
key: getProductKeyAction(index, product),
|
|
17044
|
+
product,
|
|
17045
|
+
options: _ctx.options,
|
|
17046
|
+
"lupa-click-tracking-type": `recommendedItemClick`
|
|
17047
|
+
}, null, 8, ["style", "product", "options"]);
|
|
17048
|
+
}), 128))
|
|
17049
|
+
]))
|
|
16970
17050
|
])) : vue.createCommentVNode("", true)
|
|
16971
17051
|
]);
|
|
16972
17052
|
};
|
|
@@ -17079,9 +17159,9 @@ const suggestSearchChatPhrases = (options, request, chatSettings) => __async(exp
|
|
|
17079
17159
|
const errors = yield res.json();
|
|
17080
17160
|
(_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
|
|
17081
17161
|
return { success: false, errors };
|
|
17082
|
-
} catch (
|
|
17083
|
-
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options,
|
|
17084
|
-
return { success: false, errors: [
|
|
17162
|
+
} catch (e2) {
|
|
17163
|
+
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
|
|
17164
|
+
return { success: false, errors: [e2] };
|
|
17085
17165
|
}
|
|
17086
17166
|
});
|
|
17087
17167
|
const suggestPhraseAlternatives = (options, request, chatSettings) => __async(exports, null, function* () {
|
|
@@ -17103,9 +17183,9 @@ const suggestPhraseAlternatives = (options, request, chatSettings) => __async(ex
|
|
|
17103
17183
|
const errors = yield res.json();
|
|
17104
17184
|
(_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
|
|
17105
17185
|
return { success: false, errors };
|
|
17106
|
-
} catch (
|
|
17107
|
-
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options,
|
|
17108
|
-
return { success: false, errors: [
|
|
17186
|
+
} catch (e2) {
|
|
17187
|
+
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
|
|
17188
|
+
return { success: false, errors: [e2] };
|
|
17109
17189
|
}
|
|
17110
17190
|
});
|
|
17111
17191
|
const suggestBestProductMatches = (options, request, chatSettings) => __async(exports, null, function* () {
|
|
@@ -17124,9 +17204,9 @@ const suggestBestProductMatches = (options, request, chatSettings) => __async(ex
|
|
|
17124
17204
|
const errors = yield res.json();
|
|
17125
17205
|
(_b = options == null ? void 0 : options.onError) == null ? void 0 : _b.call(options, errors);
|
|
17126
17206
|
return { success: false, errors };
|
|
17127
|
-
} catch (
|
|
17128
|
-
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options,
|
|
17129
|
-
return { success: false, errors: [
|
|
17207
|
+
} catch (e2) {
|
|
17208
|
+
(_c = options == null ? void 0 : options.onError) == null ? void 0 : _c.call(options, e2);
|
|
17209
|
+
return { success: false, errors: [e2] };
|
|
17130
17210
|
}
|
|
17131
17211
|
});
|
|
17132
17212
|
const prepareChatHistory = (chatLog) => {
|