@searchstax-inc/searchstudio-ux-react 0.3.3 → 0.3.5
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.
|
@@ -15,15 +15,15 @@ function Ot() {
|
|
|
15
15
|
return le;
|
|
16
16
|
tt = 1;
|
|
17
17
|
var i = nt, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function c(l,
|
|
19
|
-
var g, m = {},
|
|
20
|
-
d !== void 0 && (
|
|
21
|
-
for (g in
|
|
22
|
-
s.call(
|
|
18
|
+
function c(l, o, d) {
|
|
19
|
+
var g, m = {}, f = null, S = null;
|
|
20
|
+
d !== void 0 && (f = "" + d), o.key !== void 0 && (f = "" + o.key), o.ref !== void 0 && (S = o.ref);
|
|
21
|
+
for (g in o)
|
|
22
|
+
s.call(o, g) && !r.hasOwnProperty(g) && (m[g] = o[g]);
|
|
23
23
|
if (l && l.defaultProps)
|
|
24
|
-
for (g in
|
|
25
|
-
m[g] === void 0 && (m[g] =
|
|
26
|
-
return { $$typeof: e, type: l, key:
|
|
24
|
+
for (g in o = l.defaultProps, o)
|
|
25
|
+
m[g] === void 0 && (m[g] = o[g]);
|
|
26
|
+
return { $$typeof: e, type: l, key: f, ref: S, props: m, _owner: a.current };
|
|
27
27
|
}
|
|
28
28
|
return le.Fragment = t, le.jsx = c, le.jsxs = c, le;
|
|
29
29
|
}
|
|
@@ -40,7 +40,7 @@ var oe = {};
|
|
|
40
40
|
var at;
|
|
41
41
|
function Mt() {
|
|
42
42
|
return at || (at = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var i = nt, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"),
|
|
43
|
+
var i = nt, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), O = Symbol.iterator, R = "@@iterator";
|
|
44
44
|
function k(n) {
|
|
45
45
|
if (n === null || typeof n != "object")
|
|
46
46
|
return null;
|
|
@@ -65,10 +65,10 @@ function Mt() {
|
|
|
65
65
|
M.unshift("Warning: " + p), Function.prototype.apply.call(console[n], console, M);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var B = !1, A = !1, Q = !1,
|
|
68
|
+
var B = !1, A = !1, Q = !1, v = !1, b = !1, j;
|
|
69
69
|
j = Symbol.for("react.module.reference");
|
|
70
70
|
function _(n) {
|
|
71
|
-
return !!(typeof n == "string" || typeof n == "function" || n === s || n === r || b || n === a || n === d || n === g ||
|
|
71
|
+
return !!(typeof n == "string" || typeof n == "function" || n === s || n === r || b || n === a || n === d || n === g || v || n === S || B || A || Q || typeof n == "object" && n !== null && (n.$$typeof === f || n.$$typeof === m || n.$$typeof === c || n.$$typeof === l || n.$$typeof === o || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -113,12 +113,12 @@ function Mt() {
|
|
|
113
113
|
case c:
|
|
114
114
|
var y = n;
|
|
115
115
|
return pe(y._context) + ".Provider";
|
|
116
|
-
case
|
|
116
|
+
case o:
|
|
117
117
|
return G(n, n.render, "ForwardRef");
|
|
118
118
|
case m:
|
|
119
119
|
var L = n.displayName || null;
|
|
120
120
|
return L !== null ? L : K(n.type) || "Memo";
|
|
121
|
-
case
|
|
121
|
+
case f: {
|
|
122
122
|
var F = n, M = F._payload, I = F._init;
|
|
123
123
|
try {
|
|
124
124
|
return K(I(M));
|
|
@@ -303,11 +303,11 @@ function Mt() {
|
|
|
303
303
|
}
|
|
304
304
|
if (typeof n == "object")
|
|
305
305
|
switch (n.$$typeof) {
|
|
306
|
-
case
|
|
306
|
+
case o:
|
|
307
307
|
return ht(n.render);
|
|
308
308
|
case m:
|
|
309
309
|
return ve(n.type, p, y);
|
|
310
|
-
case
|
|
310
|
+
case f: {
|
|
311
311
|
var L = n, F = L._payload, M = L._init;
|
|
312
312
|
try {
|
|
313
313
|
return ve(M(F), p, y);
|
|
@@ -555,7 +555,7 @@ Check the top-level render call using <` + y + ">.");
|
|
|
555
555
|
var y;
|
|
556
556
|
if (typeof p == "function")
|
|
557
557
|
y = p.propTypes;
|
|
558
|
-
else if (typeof p == "object" && (p.$$typeof ===
|
|
558
|
+
else if (typeof p == "object" && (p.$$typeof === o || // Note: Memo only checks outer props here.
|
|
559
559
|
// Inner props are checked in the reconciler.
|
|
560
560
|
p.$$typeof === m))
|
|
561
561
|
y = p.propTypes;
|
|
@@ -625,10 +625,10 @@ Check the top-level render call using <` + y + ">.");
|
|
|
625
625
|
}()), oe;
|
|
626
626
|
}
|
|
627
627
|
process.env.NODE_ENV === "production" ? Pe.exports = Ot() : Pe.exports = Mt();
|
|
628
|
-
var
|
|
628
|
+
var u = Pe.exports, At = Object.defineProperty, Dt = (i, e, t) => e in i ? At(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, h = (i, e, t) => (Dt(i, typeof e != "symbol" ? e + "" : e, t), t), W = /* @__PURE__ */ ((i) => (i[i.mustache = 0] = "mustache", i[i.vue = 1] = "vue", i[i.react = 2] = "react", i[i.angular = 3] = "angular", i))(W || {});
|
|
629
629
|
class Nt {
|
|
630
630
|
constructor(e) {
|
|
631
|
-
|
|
631
|
+
h(this, "dataLayer"), this.dataLayer = e;
|
|
632
632
|
}
|
|
633
633
|
get currentPage() {
|
|
634
634
|
var e;
|
|
@@ -709,7 +709,7 @@ class Nt {
|
|
|
709
709
|
return t ? (((e = this.dataLayer.searchObject) == null ? void 0 : e.facets) ?? []).map((s) => {
|
|
710
710
|
const a = s.name, r = s.value, c = t.find((l) => l.name === a);
|
|
711
711
|
if (c) {
|
|
712
|
-
const l = c.values.find((
|
|
712
|
+
const l = c.values.find((o) => o.type === "range" ? !1 : o.type === "checkbox" ? '"' + o.value + '"' === r : !1);
|
|
713
713
|
if (l)
|
|
714
714
|
return l;
|
|
715
715
|
}
|
|
@@ -774,8 +774,8 @@ class J {
|
|
|
774
774
|
if (s.length !== a.length)
|
|
775
775
|
return !1;
|
|
776
776
|
for (const r of s) {
|
|
777
|
-
const c = e[r], l = t[r],
|
|
778
|
-
if (
|
|
777
|
+
const c = e[r], l = t[r], o = this.isObject(c) && this.isObject(l);
|
|
778
|
+
if (o && !this.deepEqual(c, l) || !o && c !== l)
|
|
779
779
|
return !1;
|
|
780
780
|
}
|
|
781
781
|
return !0;
|
|
@@ -786,7 +786,7 @@ class J {
|
|
|
786
786
|
}
|
|
787
787
|
class D {
|
|
788
788
|
constructor(e) {
|
|
789
|
-
|
|
789
|
+
h(this, "value"), h(this, "observers", []), this.value = e, this.observers = [];
|
|
790
790
|
}
|
|
791
791
|
subscribe(e) {
|
|
792
792
|
this.observers.push(e), e(this.value);
|
|
@@ -854,14 +854,14 @@ class Z {
|
|
|
854
854
|
}
|
|
855
855
|
class $t {
|
|
856
856
|
constructor(e, t) {
|
|
857
|
-
|
|
857
|
+
h(this, "$searchTermChange", new D("")), h(this, "$loadingChange", new D(!1)), h(this, "$searchResults", new D(null)), h(this, "$searchResultsMetadata", new D(null)), h(this, "$searchAutosuggest", new D(null)), h(this, "$searchFacets", new D(null)), h(this, "$searchFacetsCached", new D(null)), h(this, "$searchstaxConfig", new D(null)), h(this, "$autosuggestResults", new D(null)), h(this, "$searchObject", new D({
|
|
858
858
|
query: "",
|
|
859
859
|
itemsPerPage: null,
|
|
860
860
|
page: 99999999,
|
|
861
861
|
order: "",
|
|
862
862
|
facets: [],
|
|
863
863
|
additionalProps: []
|
|
864
|
-
})),
|
|
864
|
+
})), h(this, "$searchRelatedSearches", new D(null)), h(this, "$searchInputConfig", new D(null)), h(this, "$searchExternalPromotions", new D(null)), h(this, "$facetsTemplateData", new D(null)), h(this, "$selectedFacetsTemplateData", new D(null)), h(this, "$paginationData", new D(null)), h(this, "$searchFeedbackData", new D(null)), h(this, "$searchSortingData", new D(null)), h(this, "$searchRelatedSearchesData", new D(null)), h(this, "$searchExternalPromotionsData", new D(null)), h(this, "$cookiesDisabled", new D(null)), h(this, "$answer", new D("")), h(this, "$language", new D("en")), h(this, "currentPageValue", 1), h(this, "isAnswerWidgetCreatedValue", !1), h(this, "renderingEngineValue", W.mustache), h(this, "parsedData", new Nt(this)), h(this, "sessionId"), h(this, "sessionIdValue", null), h(this, "autoCorrect", !0), h(this, "forceNotCorrect", !1), h(this, "lastSearchValue", ""), h(this, "turnAIAnswerGenerationOn", !1), h(this, "isInfiniteScroll", !1), h(this, "firstSearchHappened", !1), h(this, "facetsWereSet", !1), this.sessionId = e, t && (this.sessionIdValue = t), this.cookieHandlingCallback(t), this.$cookiesDisabled.subscribe(() => {
|
|
865
865
|
this.cookieHandlingCallback(t);
|
|
866
866
|
});
|
|
867
867
|
}
|
|
@@ -1035,25 +1035,25 @@ class $t {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
class he {
|
|
1037
1037
|
static combineResultsWithMetadata(e) {
|
|
1038
|
-
const t = [], s = parseInt(e.response.start + "") - 1
|
|
1039
|
-
return e.response.docs.forEach((
|
|
1040
|
-
const
|
|
1038
|
+
const t = [], s = parseInt(e.response.start + "") - 1;
|
|
1039
|
+
return parseInt(e.responseHeader.params.rows), e.response.docs.forEach((a, r) => {
|
|
1040
|
+
const c = {
|
|
1041
1041
|
custom: null,
|
|
1042
|
-
uniqueId:
|
|
1043
|
-
position: s
|
|
1044
|
-
ribbon: this.doesMapExist("ribbon", e) ? this.getValueByKey("ribbon",
|
|
1045
|
-
paths: this.doesMapExist("paths", e) ? this.getValueByKey("paths",
|
|
1046
|
-
url: this.doesMapExist("url", e) ? this.getValueByKey("url",
|
|
1047
|
-
title: this.doesMapExist("title", e) ? this.getValueByKey("title",
|
|
1048
|
-
promoted:
|
|
1049
|
-
thumbnail: this.doesMapExist("thumbnail", e) ? this.getValueByKey("thumbnail",
|
|
1050
|
-
date: this.doesMapExist("date", e) ? this.getValueByKey("date",
|
|
1051
|
-
snippet: this.doesMapExist("snippet", e) ? this.getValueByKey("snippet",
|
|
1052
|
-
description: this.doesMapExist("description", e) ? this.getValueByKey("description",
|
|
1053
|
-
unmappedFields: this.getUnmappedFields(
|
|
1054
|
-
allFields: this.getAllFields(
|
|
1042
|
+
uniqueId: a[e.responseHeader.params.uniqueId] ?? "",
|
|
1043
|
+
position: s + 1 + r,
|
|
1044
|
+
ribbon: this.doesMapExist("ribbon", e) ? this.getValueByKey("ribbon", a, e) : null,
|
|
1045
|
+
paths: this.doesMapExist("paths", e) ? this.getValueByKey("paths", a, e) : null,
|
|
1046
|
+
url: this.doesMapExist("url", e) ? this.getValueByKey("url", a, e) : null,
|
|
1047
|
+
title: this.doesMapExist("title", e) ? this.getValueByKey("title", a, e) : null,
|
|
1048
|
+
promoted: a["[elevated]"] ? a["[elevated]"] : !1,
|
|
1049
|
+
thumbnail: this.doesMapExist("thumbnail", e) ? this.getValueByKey("thumbnail", a, e) : null,
|
|
1050
|
+
date: this.doesMapExist("date", e) ? this.getValueByKey("date", a, e) : null,
|
|
1051
|
+
snippet: this.doesMapExist("snippet", e) ? this.getValueByKey("snippet", a, e) : null,
|
|
1052
|
+
description: this.doesMapExist("description", e) ? this.getValueByKey("description", a, e) : null,
|
|
1053
|
+
unmappedFields: this.getUnmappedFields(a, e),
|
|
1054
|
+
allFields: this.getAllFields(a, e)
|
|
1055
1055
|
};
|
|
1056
|
-
t.push(
|
|
1056
|
+
t.push(c);
|
|
1057
1057
|
}), t;
|
|
1058
1058
|
}
|
|
1059
1059
|
static extractFacets(e) {
|
|
@@ -1073,30 +1073,30 @@ class he {
|
|
|
1073
1073
|
return t;
|
|
1074
1074
|
}
|
|
1075
1075
|
static extractSearchResultsMetadata(e) {
|
|
1076
|
-
var t, s, a, r, c;
|
|
1077
|
-
let
|
|
1076
|
+
var t, s, a, r, c, l;
|
|
1077
|
+
let o = "", d = {
|
|
1078
1078
|
selectedSortOption: "",
|
|
1079
1079
|
options: []
|
|
1080
|
-
},
|
|
1081
|
-
(
|
|
1080
|
+
}, g = (t = e.metadata.results.find(
|
|
1081
|
+
(m) => m.result_card === "date"
|
|
1082
1082
|
)) == null ? void 0 : t.name;
|
|
1083
|
-
if (
|
|
1083
|
+
if (d.options = [
|
|
1084
1084
|
{ key: "", value: "Relevance" },
|
|
1085
|
-
{ key:
|
|
1086
|
-
], e.metadata.sorts.length) {
|
|
1087
|
-
const
|
|
1088
|
-
|
|
1085
|
+
{ key: g + " desc", value: "Most Recent" }
|
|
1086
|
+
], (s = e.metadata.sorts) != null && s.length) {
|
|
1087
|
+
const m = e.metadata.sorts.map((f) => ({ value: f.label, key: f.name + " " + f.order }));
|
|
1088
|
+
d.options = [{ key: "", value: "Relevance" }, ...m];
|
|
1089
1089
|
}
|
|
1090
|
-
return
|
|
1090
|
+
return o = ((l = (c = (r = (a = e == null ? void 0 : e.spellcheck) == null ? void 0 : a.suggestions) == null ? void 0 : r[0]) == null ? void 0 : c.suggestion) == null ? void 0 : l[0]) ?? "", typeof o != "string" && (o = (o == null ? void 0 : o.word) ?? ""), {
|
|
1091
1091
|
recordsPerPageValue: parseInt(e.responseHeader.params.rows),
|
|
1092
1092
|
startDocVal: parseInt(e.response.start + ""),
|
|
1093
1093
|
totalResultsValue: parseInt(e.response.numFound + ""),
|
|
1094
1094
|
latency: parseInt(e.responseHeader.QTime + ""),
|
|
1095
1095
|
endDocValue: parseInt(e.responseHeader.params.rows) + parseInt(e.response.start + ""),
|
|
1096
|
-
spellingSuggestion:
|
|
1096
|
+
spellingSuggestion: o,
|
|
1097
1097
|
autoCorrectedQuery: e.responseHeader.params.autoCorrectedQ ?? "",
|
|
1098
1098
|
impressions: this.getImpressions(e),
|
|
1099
|
-
sorting:
|
|
1099
|
+
sorting: d
|
|
1100
1100
|
};
|
|
1101
1101
|
}
|
|
1102
1102
|
static getImpressions(e) {
|
|
@@ -1154,7 +1154,7 @@ class he {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
class st {
|
|
1156
1156
|
constructor(e) {
|
|
1157
|
-
|
|
1157
|
+
h(this, "routeName", "searchstax"), h(this, "ignoredKeys", []), h(this, "queryStringHelper"), h(this, "titleParser"), e.routeName && (this.routeName = e.routeName), e.ignoredKeys && (this.ignoredKeys = e.ignoredKeys), e.title && (this.titleParser = e.title), this.queryStringHelper = new qt(this.routeName);
|
|
1158
1158
|
}
|
|
1159
1159
|
updateUrl(e) {
|
|
1160
1160
|
const t = this.searchObjectToUrl(e);
|
|
@@ -1202,12 +1202,12 @@ class st {
|
|
|
1202
1202
|
if (c.startsWith(this.routeName + "[facets]")) {
|
|
1203
1203
|
const l = Z.removeXSSRiskyTags(
|
|
1204
1204
|
(t = e[c].split(":")) == null ? void 0 : t[0]
|
|
1205
|
-
),
|
|
1205
|
+
), o = Z.removeXSSRiskyTags(
|
|
1206
1206
|
decodeURIComponent((s = e[c].split(":")) == null ? void 0 : s[1])
|
|
1207
1207
|
), d = Z.removeXSSRiskyTags(
|
|
1208
1208
|
decodeURIComponent((a = e[c].split(":")) == null ? void 0 : a[2])
|
|
1209
1209
|
);
|
|
1210
|
-
r.push({ type: l, name:
|
|
1210
|
+
r.push({ type: l, name: o, value: d });
|
|
1211
1211
|
}
|
|
1212
1212
|
return r;
|
|
1213
1213
|
}
|
|
@@ -1228,7 +1228,7 @@ class st {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
class qt {
|
|
1230
1230
|
constructor(e) {
|
|
1231
|
-
|
|
1231
|
+
h(this, "routeName", ""), h(this, "stringify", (t, s) => {
|
|
1232
1232
|
const a = this.filterOutIgnoredKeys(t, s.ignoredKeys);
|
|
1233
1233
|
return Object.keys(a).map((r) => {
|
|
1234
1234
|
const c = a[r];
|
|
@@ -1264,7 +1264,7 @@ const se = {
|
|
|
1264
1264
|
};
|
|
1265
1265
|
class _t {
|
|
1266
1266
|
constructor(e, t) {
|
|
1267
|
-
|
|
1267
|
+
h(this, "cachedQuery", ""), h(this, "url", ""), h(this, "relatedSearches", ""), h(this, "suggester", ""), h(this, "authHeader"), h(this, "authHeaderRelated"), h(this, "trackApiKey", ""), h(this, "session", ""), h(this, "searchAuthType"), h(this, "searchAuth", ""), h(this, "controllerSearch"), h(this, "signalSearch"), h(this, "controllerSuggest"), h(this, "signalSuggest"), h(this, "dataLayer"), this.dataLayer = t, this.url = e.searchURL, this.dataLayer.setLanguage(e.language), this.suggester = e.suggesterURL, this.trackApiKey = e.trackApiKey, this.session = e.sessionId, this.searchAuthType = e.authType, this.searchAuth = e.searchAuth, this.authHeader = new Headers(), this.authHeader.append("Accept", "application/json");
|
|
1268
1268
|
const s = this.searchAuthType === "token" ? `Token ${e.searchAuth}` : `Basic ${e.searchAuth}`;
|
|
1269
1269
|
this.authHeader.append("Authorization", s), this.authHeaderRelated = new Headers(), this.authHeaderRelated.append("Accept", "application/json"), this.authHeaderRelated.append("Authorization", e.searchAuth);
|
|
1270
1270
|
}
|
|
@@ -1284,10 +1284,10 @@ class _t {
|
|
|
1284
1284
|
for (const r in a)
|
|
1285
1285
|
if (Object.prototype.hasOwnProperty.call(a, r)) {
|
|
1286
1286
|
const c = a[r], l = r;
|
|
1287
|
-
let
|
|
1287
|
+
let o = "";
|
|
1288
1288
|
for (const d of c)
|
|
1289
|
-
|
|
1290
|
-
s = s.concat("fq=" +
|
|
1289
|
+
o += ` ${l}:"${d}"`;
|
|
1290
|
+
s = s.concat("fq=" + o.trim());
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
1293
|
return s.length ? "&" + s.join("&") : "";
|
|
@@ -1327,17 +1327,17 @@ class _t {
|
|
|
1327
1327
|
if (e.query && e.query !== "undefined" && e.itemsPerPage !== void 0) {
|
|
1328
1328
|
this.dataLayer.setSearchTerm(e.query), this.dataLayer.setLoading(!0), this.controllerSearch && this.controllerSearch.abort(), this.controllerSearch = new AbortController(), this.signalSearch = this.controllerSearch.signal;
|
|
1329
1329
|
const r = new Proxy(new URLSearchParams((window == null ? void 0 : window.location.search) ?? ""), {
|
|
1330
|
-
get: (
|
|
1330
|
+
get: (f, S) => f.get(S) ?? ""
|
|
1331
1331
|
}), c = r.languageVariant ? (
|
|
1332
1332
|
//@ts-expect-error - this is a hack to get around the fact that the urlQueryParams is a proxy
|
|
1333
1333
|
"&fq=_language:" + r.languageVariant
|
|
1334
1334
|
) : "";
|
|
1335
|
-
let l = e.itemsPerPage,
|
|
1336
|
-
const g = this.url + "?q=" + encodeURIComponent(e.query.trim()) + "&start=" +
|
|
1337
|
-
e.facets.filter((
|
|
1335
|
+
let l = e.itemsPerPage, o = e.itemsPerPage * (e.page - 1), d = e.order ? `&sort=${e.order}` : "";
|
|
1336
|
+
const g = this.url + "?q=" + encodeURIComponent(e.query.trim()) + "&start=" + o + this.toQueryString(e.additionalProps ?? []) + this.generateFacetQuery(
|
|
1337
|
+
e.facets.filter((f) => f.type === "or" || f.type === "showUnavailable"),
|
|
1338
1338
|
!0
|
|
1339
1339
|
) + this.generateFacetQuery(
|
|
1340
|
-
e.facets.filter((
|
|
1340
|
+
e.facets.filter((f) => f.type === "and" || f.type === "tabs"),
|
|
1341
1341
|
!1
|
|
1342
1342
|
) + d + `&spellcheck.correct=${this.dataLayer.autoCorrect && !a}&rows=${l}&language=` + this.dataLayer.language + c, m = {
|
|
1343
1343
|
method: "GET",
|
|
@@ -1345,8 +1345,8 @@ class _t {
|
|
|
1345
1345
|
credentials: "same-origin",
|
|
1346
1346
|
signal: this.signalSearch
|
|
1347
1347
|
};
|
|
1348
|
-
s && delete m.signal, fetch(g, m).then((
|
|
1349
|
-
this.dataLayer.setLoading(!1), t(
|
|
1348
|
+
s && delete m.signal, fetch(g, m).then((f) => f.json()).then((f) => {
|
|
1349
|
+
this.dataLayer.setLoading(!1), t(f);
|
|
1350
1350
|
}).catch(() => {
|
|
1351
1351
|
this.dataLayer.setLoading(!1);
|
|
1352
1352
|
});
|
|
@@ -1461,7 +1461,7 @@ class ue {
|
|
|
1461
1461
|
}, 0);
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
|
-
|
|
1464
|
+
h(ue, "msq", () => typeof window < "u" && window != null && window._msq ? window == null ? void 0 : window._msq : []);
|
|
1465
1465
|
/*!
|
|
1466
1466
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
1467
1467
|
* http://github.com/janl/mustache.js
|
|
@@ -1511,7 +1511,7 @@ var Yt = /\s*/, Gt = /\s+/, it = /\s*=/, Xt = /\s*\}/, Zt = /#|\^|\/|>|\{|&|=|!/
|
|
|
1511
1511
|
function ea(i, e) {
|
|
1512
1512
|
if (!i)
|
|
1513
1513
|
return [];
|
|
1514
|
-
var t = !1, s = [], a = [], r = [], c = !1, l = !1,
|
|
1514
|
+
var t = !1, s = [], a = [], r = [], c = !1, l = !1, o = "", d = 0;
|
|
1515
1515
|
function g() {
|
|
1516
1516
|
if (c && !l)
|
|
1517
1517
|
for (; r.length; )
|
|
@@ -1520,23 +1520,23 @@ function ea(i, e) {
|
|
|
1520
1520
|
r = [];
|
|
1521
1521
|
c = !1, l = !1;
|
|
1522
1522
|
}
|
|
1523
|
-
var m,
|
|
1523
|
+
var m, f, S;
|
|
1524
1524
|
function O(b) {
|
|
1525
1525
|
if (typeof b == "string" && (b = b.split(Gt, 2)), !ie(b) || b.length !== 2)
|
|
1526
1526
|
throw new Error("Invalid tags: " + b);
|
|
1527
|
-
m = new RegExp(Ie(b[0]) + "\\s*"),
|
|
1527
|
+
m = new RegExp(Ie(b[0]) + "\\s*"), f = new RegExp("\\s*" + Ie(b[1])), S = new RegExp("\\s*" + Ie("}" + b[1]));
|
|
1528
1528
|
}
|
|
1529
1529
|
O(e || P.tags);
|
|
1530
1530
|
for (var R = new ge(i), k, E, T, N, B, A; !R.eos(); ) {
|
|
1531
1531
|
if (k = R.pos, T = R.scanUntil(m), T)
|
|
1532
|
-
for (var Q = 0,
|
|
1533
|
-
N = T.charAt(Q), Kt(N) ? (r.push(a.length),
|
|
1534
|
-
` && (g(),
|
|
1532
|
+
for (var Q = 0, v = T.length; Q < v; ++Q)
|
|
1533
|
+
N = T.charAt(Q), Kt(N) ? (r.push(a.length), o += N) : (l = !0, t = !0, o += " "), a.push(["text", N, k, k + 1]), k += 1, N === `
|
|
1534
|
+
` && (g(), o = "", d = 0, t = !1);
|
|
1535
1535
|
if (!R.scan(m))
|
|
1536
1536
|
break;
|
|
1537
|
-
if (c = !0, E = R.scan(Zt) || "name", R.scan(Yt), E === "=" ? (T = R.scanUntil(it), R.scan(it), R.scanUntil(
|
|
1537
|
+
if (c = !0, E = R.scan(Zt) || "name", R.scan(Yt), E === "=" ? (T = R.scanUntil(it), R.scan(it), R.scanUntil(f)) : E === "{" ? (T = R.scanUntil(S), R.scan(Xt), R.scanUntil(f), E = "&") : T = R.scanUntil(f), !R.scan(f))
|
|
1538
1538
|
throw new Error("Unclosed tag at " + R.pos);
|
|
1539
|
-
if (E == ">" ? B = [E, T, k, R.pos,
|
|
1539
|
+
if (E == ">" ? B = [E, T, k, R.pos, o, d, t] : B = [E, T, k, R.pos], d++, a.push(B), E === "#" || E === "^")
|
|
1540
1540
|
s.push(B);
|
|
1541
1541
|
else if (E === "/") {
|
|
1542
1542
|
if (A = s.pop(), !A)
|
|
@@ -1650,13 +1650,13 @@ U.prototype.render = function(i, e, t, s) {
|
|
|
1650
1650
|
return this.renderTokens(r, c, t, i, s);
|
|
1651
1651
|
};
|
|
1652
1652
|
U.prototype.renderTokens = function(i, e, t, s, a) {
|
|
1653
|
-
for (var r = "", c, l,
|
|
1654
|
-
|
|
1653
|
+
for (var r = "", c, l, o, d = 0, g = i.length; d < g; ++d)
|
|
1654
|
+
o = void 0, c = i[d], l = c[0], l === "#" ? o = this.renderSection(c, e, t, s, a) : l === "^" ? o = this.renderInverted(c, e, t, s, a) : l === ">" ? o = this.renderPartial(c, e, t, a) : l === "&" ? o = this.unescapedValue(c, e) : l === "name" ? o = this.escapedValue(c, e, a) : l === "text" && (o = this.rawValue(c)), o !== void 0 && (r += o);
|
|
1655
1655
|
return r;
|
|
1656
1656
|
};
|
|
1657
1657
|
U.prototype.renderSection = function(i, e, t, s, a) {
|
|
1658
1658
|
var r = this, c = "", l = e.lookup(i[1]);
|
|
1659
|
-
function
|
|
1659
|
+
function o(m) {
|
|
1660
1660
|
return r.render(m, e, t, a);
|
|
1661
1661
|
}
|
|
1662
1662
|
if (l) {
|
|
@@ -1668,7 +1668,7 @@ U.prototype.renderSection = function(i, e, t, s, a) {
|
|
|
1668
1668
|
else if (je(l)) {
|
|
1669
1669
|
if (typeof s != "string")
|
|
1670
1670
|
throw new Error("Cannot use higher-order sections without the original template");
|
|
1671
|
-
l = l.call(e.view, s.slice(i[3], i[5]),
|
|
1671
|
+
l = l.call(e.view, s.slice(i[3], i[5]), o), l != null && (c += l);
|
|
1672
1672
|
} else
|
|
1673
1673
|
c += this.renderTokens(i[4], e, t, s, a);
|
|
1674
1674
|
return c;
|
|
@@ -1690,8 +1690,8 @@ U.prototype.renderPartial = function(i, e, t, s) {
|
|
|
1690
1690
|
if (t) {
|
|
1691
1691
|
var a = this.getConfigTags(s), r = je(t) ? t(i[1]) : t[i[1]];
|
|
1692
1692
|
if (r != null) {
|
|
1693
|
-
var c = i[6], l = i[5],
|
|
1694
|
-
l == 0 &&
|
|
1693
|
+
var c = i[6], l = i[5], o = i[4], d = r;
|
|
1694
|
+
l == 0 && o && (d = this.indentPartial(r, o, c));
|
|
1695
1695
|
var g = this.parse(d, a);
|
|
1696
1696
|
return this.renderTokens(g, e, t, d, s);
|
|
1697
1697
|
}
|
|
@@ -2096,10 +2096,10 @@ const sa = {
|
|
|
2096
2096
|
};
|
|
2097
2097
|
class x {
|
|
2098
2098
|
}
|
|
2099
|
-
|
|
2099
|
+
h(x, "answer", sa), h(x, "externalPromotions", ra), h(x, "facets", ia), h(x, "pagination", na), h(x, "relatedSearches", ca), h(x, "searchFeedback", la), h(x, "searchInput", oa), h(x, "searchResults", ha), h(x, "sorting", ua);
|
|
2100
2100
|
class da {
|
|
2101
2101
|
constructor(e) {
|
|
2102
|
-
|
|
2102
|
+
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "externalPromotionsContainerId"), h(this, "searchExternalPromotionsMainContainer", null);
|
|
2103
2103
|
var t, s;
|
|
2104
2104
|
this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.externalPromotionsContainerId = ((s = (t = this.config.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : s.externalPromotionsContainerId) || x.externalPromotions.mainTemplate.externalPromotionsContainerId, typeof document < "u" && (this.searchExternalPromotionsMainContainer = document == null ? void 0 : document.getElementById(
|
|
2105
2105
|
this.containerId
|
|
@@ -2123,10 +2123,10 @@ class da {
|
|
|
2123
2123
|
if (c) {
|
|
2124
2124
|
const l = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.externalPromotion) == null ? void 0 : a.template) || ((r = x.externalPromotions.externalPromotion) == null ? void 0 : r.template);
|
|
2125
2125
|
if (typeof document < "u") {
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2126
|
+
const o = document == null ? void 0 : document.createElement("div");
|
|
2127
|
+
o.classList.add("searchstax-external-promotion"), o.addEventListener("click", (d) => {
|
|
2128
2128
|
this.trackClick(e, d);
|
|
2129
|
-
}),
|
|
2129
|
+
}), o.innerHTML = P.render(l, e), c.appendChild(o);
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
@@ -2143,23 +2143,23 @@ class da {
|
|
|
2143
2143
|
this.externalPromotionsContainerId
|
|
2144
2144
|
) : null;
|
|
2145
2145
|
l && (l.innerHTML = "");
|
|
2146
|
-
for (const
|
|
2147
|
-
this.addExternalSearch(
|
|
2146
|
+
for (const o of e.externalPromotions)
|
|
2147
|
+
this.addExternalSearch(o);
|
|
2148
2148
|
}
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
2151
|
class ga {
|
|
2152
2152
|
constructor(e, t) {
|
|
2153
|
-
|
|
2153
|
+
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "routerHelper"), h(this, "cachedPhrase", ""), h(this, "isCached", !1), h(this, "overlayOpened", !1), h(this, "facetPaginationStep"), h(this, "facetPaginationStepMobile"), h(this, "searchFacetsMainContainer", null), h(this, "searchFacetsMobileContainer", null), h(this, "searchFacetsDesktopContainer", null), h(this, "facetLimits", {}), h(this, "facetLimitsMobile", {}), h(this, "deactivatedFacets", {}), h(this, "cachedData", null), h(this, "cacheFacets"), h(this, "onFacetSelect", (s, a, r, c, l) => {
|
|
2154
2154
|
if (s.stopPropagation(), !a.disabled) {
|
|
2155
|
-
const
|
|
2156
|
-
let d = c ?
|
|
2157
|
-
l !== void 0 && (d = !l),
|
|
2155
|
+
const o = r.querySelector("input");
|
|
2156
|
+
let d = c ? o.checked : !o.checked;
|
|
2157
|
+
l !== void 0 && (d = !l), o.checked = d;
|
|
2158
2158
|
const g = this.dataLayer.searchObject;
|
|
2159
2159
|
let m = [...g.facets];
|
|
2160
|
-
const
|
|
2161
|
-
d ? m.find((S) => J.deepEqual(S,
|
|
2162
|
-
(S) => !J.deepEqual(S,
|
|
2160
|
+
const f = this.extractFacetValue(a);
|
|
2161
|
+
d ? m.find((S) => J.deepEqual(S, f) ? S : !1) || (this.config.facetingType === "tabs" && (m = m.filter((S) => S.name !== f.name)), m.push(f)) : m = m.filter(
|
|
2162
|
+
(S) => !J.deepEqual(S, f)
|
|
2163
2163
|
), setTimeout(() => {
|
|
2164
2164
|
this.dataLayer.setSearchObject({ ...g, facets: m, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
|
|
2165
2165
|
}, 0);
|
|
@@ -2212,10 +2212,10 @@ class ga {
|
|
|
2212
2212
|
return c ? {
|
|
2213
2213
|
...a,
|
|
2214
2214
|
values: a.values.map((l) => {
|
|
2215
|
-
const
|
|
2215
|
+
const o = c.values.find((d) => l.type === "range" ? !1 : l.type === "checkbox" ? d.value === l.value : !1);
|
|
2216
2216
|
return {
|
|
2217
2217
|
...l,
|
|
2218
|
-
disabled: !
|
|
2218
|
+
disabled: !o,
|
|
2219
2219
|
isMobile: e
|
|
2220
2220
|
};
|
|
2221
2221
|
})
|
|
@@ -2245,7 +2245,7 @@ class ga {
|
|
|
2245
2245
|
}
|
|
2246
2246
|
}
|
|
2247
2247
|
createFacetItem(e, t, s) {
|
|
2248
|
-
var a, r, c, l,
|
|
2248
|
+
var a, r, c, l, o, d, g, m, f, S, O, R;
|
|
2249
2249
|
if (typeof document < "u") {
|
|
2250
2250
|
const k = document == null ? void 0 : document.createElement("div");
|
|
2251
2251
|
k.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || k.classList.add("active");
|
|
@@ -2255,13 +2255,13 @@ class ga {
|
|
|
2255
2255
|
e
|
|
2256
2256
|
), t.appendChild(k);
|
|
2257
2257
|
const T = k.querySelector(
|
|
2258
|
-
"." + (((g = (d = (
|
|
2258
|
+
"." + (((g = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.facetItemContainerTemplate) == null ? void 0 : g.facetListTitleContainerClass) || ((m = x.facets.facetItemContainerTemplate) == null ? void 0 : m.facetListTitleContainerClass))
|
|
2259
2259
|
);
|
|
2260
2260
|
T == null || T.addEventListener("click", () => {
|
|
2261
2261
|
k.classList.toggle("active");
|
|
2262
2262
|
});
|
|
2263
2263
|
const N = k.querySelector(
|
|
2264
|
-
"." + (((O = (S = (
|
|
2264
|
+
"." + (((O = (S = (f = this.config) == null ? void 0 : f.templates) == null ? void 0 : S.facetItemContainerTemplate) == null ? void 0 : O.facetListContainerClass) || ((R = x.facets.facetItemContainerTemplate) == null ? void 0 : R.facetListContainerClass))
|
|
2265
2265
|
);
|
|
2266
2266
|
N && (e.values.forEach((B) => {
|
|
2267
2267
|
this.createFacetListItem(
|
|
@@ -2276,7 +2276,7 @@ class ga {
|
|
|
2276
2276
|
return !!((t = this.dataLayer.searchObject.facets) != null && t.find((s) => J.deepEqual(s, this.extractFacetValue(e))));
|
|
2277
2277
|
}
|
|
2278
2278
|
createFacetListItem(e, t) {
|
|
2279
|
-
var s, a, r, c, l,
|
|
2279
|
+
var s, a, r, c, l, o, d, g, m, f, S, O, R;
|
|
2280
2280
|
if (typeof document < "u") {
|
|
2281
2281
|
const k = document == null ? void 0 : document.createElement("div");
|
|
2282
2282
|
k.classList.add("searchstax-facet-value-container"), e.disabled && k.classList.add("searchstax-facet-value-disabled");
|
|
@@ -2286,30 +2286,30 @@ class ga {
|
|
|
2286
2286
|
{ ...e, isChecked: E }
|
|
2287
2287
|
);
|
|
2288
2288
|
let N = (l = x.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
|
|
2289
|
-
N = ((g = (d = (
|
|
2289
|
+
N = ((g = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.facetItemTemplate) == null ? void 0 : g.checkTriggerClasses) || N, N.forEach((B) => {
|
|
2290
2290
|
var A;
|
|
2291
2291
|
(A = k.querySelector("." + B)) == null || A.addEventListener("click", (Q) => {
|
|
2292
2292
|
this.onFacetSelect(Q, e, k);
|
|
2293
2293
|
});
|
|
2294
2294
|
}), (R = k.querySelector(
|
|
2295
|
-
"." + (((S = (
|
|
2295
|
+
"." + (((S = (f = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : f.facetItemTemplate) == null ? void 0 : S.inputCheckboxClass) || ((O = x.facets.facetItemTemplate) == null ? void 0 : O.inputCheckboxClass))
|
|
2296
2296
|
)) == null || R.addEventListener("click", (B) => {
|
|
2297
2297
|
this.onFacetSelect(B, e, k, !0);
|
|
2298
2298
|
}), t.appendChild(k);
|
|
2299
2299
|
}
|
|
2300
2300
|
}
|
|
2301
2301
|
createHasMoreComponent(e, t, s) {
|
|
2302
|
-
var a, r, c, l,
|
|
2302
|
+
var a, r, c, l, o, d, g, m;
|
|
2303
2303
|
if (typeof document < "u") {
|
|
2304
|
-
const
|
|
2305
|
-
|
|
2304
|
+
const f = document == null ? void 0 : document.createElement("div");
|
|
2305
|
+
f.classList.add("searchstax-facet-show-more-container");
|
|
2306
2306
|
const S = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : c.template) || ((l = x.facets.showMoreButtonContainerTemplate) == null ? void 0 : l.template);
|
|
2307
|
-
|
|
2307
|
+
f.innerHTML = P.render(
|
|
2308
2308
|
S,
|
|
2309
2309
|
e
|
|
2310
2310
|
);
|
|
2311
|
-
const O =
|
|
2312
|
-
"." + (((g = (d = (
|
|
2311
|
+
const O = f.querySelector(
|
|
2312
|
+
"." + (((g = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.showMoreButtonContainerTemplate) == null ? void 0 : g.showMoreButtonClass) || ((m = x.facets.showMoreButtonContainerTemplate) == null ? void 0 : m.showMoreButtonClass))
|
|
2313
2313
|
);
|
|
2314
2314
|
O && (this.attachOnclickToShowMore(e, O, s), t && t.appendChild(O));
|
|
2315
2315
|
}
|
|
@@ -2325,7 +2325,7 @@ class ga {
|
|
|
2325
2325
|
r[t.name] === void 0 ? r[t.name] = a * 2 : r[t.name] <= t.values.length ? r[t.name] = r[t.name] + a : r[t.name] = a, this.generateTemplateData(s), this.renderMainTemplate(this.generateTemplateData());
|
|
2326
2326
|
}
|
|
2327
2327
|
renderMainTemplate(e, t) {
|
|
2328
|
-
var s, a, r, c, l,
|
|
2328
|
+
var s, a, r, c, l, o, d, g, m, f, S;
|
|
2329
2329
|
if (e && (!J.deepEqual(this.cachedData ?? {}, e) || t)) {
|
|
2330
2330
|
this.cachedData = e;
|
|
2331
2331
|
const O = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.mainTemplateDesktop) == null ? void 0 : r.template) || ((c = x.facets.mainTemplateDesktop) == null ? void 0 : c.template);
|
|
@@ -2337,7 +2337,7 @@ class ga {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
);
|
|
2339
2339
|
const R = (g = this.searchFacetsMainContainer) == null ? void 0 : g.querySelector(
|
|
2340
|
-
"." + (((d = (
|
|
2340
|
+
"." + (((d = (o = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : o.mainTemplateDesktop) == null ? void 0 : d.facetsContainerClass) || x.facets.mainTemplateDesktop.facetsContainerClass)
|
|
2341
2341
|
);
|
|
2342
2342
|
if (R) {
|
|
2343
2343
|
R.innerHTML = "";
|
|
@@ -2345,7 +2345,7 @@ class ga {
|
|
|
2345
2345
|
this.createFacetItem(k, R);
|
|
2346
2346
|
if (this.searchFacetsMainContainer) {
|
|
2347
2347
|
const k = this.searchFacetsMainContainer.querySelector(
|
|
2348
|
-
"." + (((S = (
|
|
2348
|
+
"." + (((S = (f = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : f.mainTemplateDesktop) == null ? void 0 : S.selectedFacetsContainerClass) || x.facets.mainTemplateDesktop.selectedFacetsContainerClass)
|
|
2349
2349
|
);
|
|
2350
2350
|
k && (this.createSelectedFacetsComponents(k), this.createClearFacetsComponents(k));
|
|
2351
2351
|
}
|
|
@@ -2361,11 +2361,11 @@ class ga {
|
|
|
2361
2361
|
const a = decodeURIComponent(s.name), r = decodeURIComponent(s.value);
|
|
2362
2362
|
if (this.dataLayer.searchFacets) {
|
|
2363
2363
|
const c = this.needCache ? this.dataLayer.searchFacetsCached : this.dataLayer.searchFacets, l = c == null ? void 0 : c.find(
|
|
2364
|
-
(
|
|
2364
|
+
(o) => o.name === a
|
|
2365
2365
|
);
|
|
2366
2366
|
if (l) {
|
|
2367
|
-
const
|
|
2368
|
-
|
|
2367
|
+
const o = l.values.find((d) => d.type === "range" ? !1 : d.type === "checkbox" ? `"${d.value}"` == `"${r}"` : !1);
|
|
2368
|
+
o && e.push(o);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
@@ -2378,17 +2378,17 @@ class ga {
|
|
|
2378
2378
|
});
|
|
2379
2379
|
}
|
|
2380
2380
|
createClearFacetsComponents(e) {
|
|
2381
|
-
var t, s, a, r, c, l,
|
|
2381
|
+
var t, s, a, r, c, l, o, d;
|
|
2382
2382
|
if (typeof document < "u") {
|
|
2383
|
-
const g = this.dataLayer.searchObject, m = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.clearFacetsTemplate) == null ? void 0 : a.template) || ((r = x.facets.clearFacetsTemplate) == null ? void 0 : r.template),
|
|
2384
|
-
|
|
2383
|
+
const g = this.dataLayer.searchObject, m = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.clearFacetsTemplate) == null ? void 0 : a.template) || ((r = x.facets.clearFacetsTemplate) == null ? void 0 : r.template), f = document == null ? void 0 : document.createElement("div");
|
|
2384
|
+
f.innerHTML = P.render(
|
|
2385
2385
|
m,
|
|
2386
2386
|
{
|
|
2387
2387
|
shouldShow: g.facets.length > 0
|
|
2388
2388
|
}
|
|
2389
2389
|
);
|
|
2390
|
-
const S =
|
|
2391
|
-
"." + (((
|
|
2390
|
+
const S = f.querySelector(
|
|
2391
|
+
"." + (((o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.clearFacetsTemplate) == null ? void 0 : o.containerClass) || ((d = x.facets.clearFacetsTemplate) == null ? void 0 : d.containerClass))
|
|
2392
2392
|
);
|
|
2393
2393
|
S && (S.addEventListener("click", () => {
|
|
2394
2394
|
this.removeSelectedFacets();
|
|
@@ -2396,15 +2396,15 @@ class ga {
|
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
2398
|
createSelectedFacetsComponent(e, t) {
|
|
2399
|
-
var s, a, r, c, l,
|
|
2399
|
+
var s, a, r, c, l, o, d, g;
|
|
2400
2400
|
if (typeof document < "u") {
|
|
2401
|
-
const m = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.selectedFacetsTemplate) == null ? void 0 : r.template) || ((c = x.facets.selectedFacetsTemplate) == null ? void 0 : c.template),
|
|
2402
|
-
|
|
2401
|
+
const m = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.selectedFacetsTemplate) == null ? void 0 : r.template) || ((c = x.facets.selectedFacetsTemplate) == null ? void 0 : c.template), f = document == null ? void 0 : document.createElement("div");
|
|
2402
|
+
f.innerHTML = P.render(
|
|
2403
2403
|
m,
|
|
2404
2404
|
t
|
|
2405
2405
|
);
|
|
2406
|
-
const S =
|
|
2407
|
-
"." + (((d = (
|
|
2406
|
+
const S = f.querySelector(
|
|
2407
|
+
"." + (((d = (o = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : o.selectedFacetsTemplate) == null ? void 0 : d.containerClass) || ((g = x.facets.selectedFacetsTemplate) == null ? void 0 : g.containerClass))
|
|
2408
2408
|
);
|
|
2409
2409
|
S && (S.addEventListener("click", () => {
|
|
2410
2410
|
this.unselectFacet(t);
|
|
@@ -2425,17 +2425,17 @@ class ga {
|
|
|
2425
2425
|
this.dataLayer.setSearchObject({ ...e, facets: [] });
|
|
2426
2426
|
}
|
|
2427
2427
|
createFilterByComponent(e) {
|
|
2428
|
-
var t, s, a, r, c, l,
|
|
2428
|
+
var t, s, a, r, c, l, o, d;
|
|
2429
2429
|
if (typeof document < "u") {
|
|
2430
2430
|
const g = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.filterByTemplate) == null ? void 0 : a.template) || ((r = x.facets.filterByTemplate) == null ? void 0 : r.template), m = document == null ? void 0 : document.createElement("div");
|
|
2431
2431
|
m.innerHTML = P.render(
|
|
2432
2432
|
g,
|
|
2433
2433
|
{}
|
|
2434
2434
|
);
|
|
2435
|
-
const
|
|
2436
|
-
"." + (((
|
|
2435
|
+
const f = m.querySelector(
|
|
2436
|
+
"." + (((o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.filterByTemplate) == null ? void 0 : o.containerClass) || ((d = x.facets.filterByTemplate) == null ? void 0 : d.containerClass))
|
|
2437
2437
|
);
|
|
2438
|
-
|
|
2438
|
+
f && (e.prepend(f), f.addEventListener("click", this.openOverlay.bind(this)));
|
|
2439
2439
|
}
|
|
2440
2440
|
}
|
|
2441
2441
|
openOverlay() {
|
|
@@ -2447,7 +2447,7 @@ class ga {
|
|
|
2447
2447
|
this.overlayOpened = !1, this.searchFacetsMainContainer && (typeof document < "u" && document.body.classList.toggle("searchstax-no-scroll"), (e = this.searchFacetsMainContainer.querySelector(".searchstax-facets-mobile-overlay")) == null || e.classList.remove("searchstax-show"));
|
|
2448
2448
|
}
|
|
2449
2449
|
renderMobileTemplate(e) {
|
|
2450
|
-
var t, s, a, r, c, l,
|
|
2450
|
+
var t, s, a, r, c, l, o, d, g, m, f, S, O, R, k, E, T, N, B;
|
|
2451
2451
|
if (e && typeof document < "u") {
|
|
2452
2452
|
const A = document == null ? void 0 : document.createElement("div");
|
|
2453
2453
|
A.classList.add("searchstax-facets-container-mobile");
|
|
@@ -2456,7 +2456,7 @@ class ga {
|
|
|
2456
2456
|
if (A.innerHTML = P.render(Q, {
|
|
2457
2457
|
...e,
|
|
2458
2458
|
overlayOpened: this.overlayOpened
|
|
2459
|
-
}), (c = this.searchFacetsMainContainer) == null || c.appendChild(A), (
|
|
2459
|
+
}), (c = this.searchFacetsMainContainer) == null || c.appendChild(A), (o = (l = this.config) == null ? void 0 : l.templates) != null && o.mainTemplateMobile)
|
|
2460
2460
|
for (const _ of ((m = (g = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : g.mainTemplateMobile) == null ? void 0 : m.closeOverlayTriggerClasses) || []) {
|
|
2461
2461
|
const G = A.querySelector("." + _);
|
|
2462
2462
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
@@ -2466,10 +2466,10 @@ class ga {
|
|
|
2466
2466
|
const G = A.querySelector("." + _);
|
|
2467
2467
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2468
2468
|
}
|
|
2469
|
-
const
|
|
2470
|
-
"." + (((O = (S = (
|
|
2469
|
+
const v = A.querySelector(
|
|
2470
|
+
"." + (((O = (S = (f = this.config) == null ? void 0 : f.templates) == null ? void 0 : S.mainTemplateMobile) == null ? void 0 : O.filterByContainerClass) || x.facets.mainTemplateMobile.filterByContainerClass)
|
|
2471
2471
|
);
|
|
2472
|
-
|
|
2472
|
+
v && this.createFilterByComponent(v);
|
|
2473
2473
|
const b = A.querySelector(
|
|
2474
2474
|
"." + (((E = (k = (R = this.config) == null ? void 0 : R.templates) == null ? void 0 : k.mainTemplateMobile) == null ? void 0 : E.selectedFacetsContainerClass) || x.facets.mainTemplateMobile.selectedFacetsContainerClass)
|
|
2475
2475
|
);
|
|
@@ -2488,9 +2488,9 @@ class ga {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
class pa {
|
|
2490
2490
|
constructor(e) {
|
|
2491
|
-
|
|
2492
|
-
var t, s, a, r, c, l,
|
|
2493
|
-
this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.routerHelper = e.routerHelper, this.previousButtonClass = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.previousButtonClass) ?? x.pagination.mainTemplate.previousButtonClass, this.nextButtonClass = ((l = (c = (r = this.config) == null ? void 0 : r.templates) == null ? void 0 : c.mainTemplate) == null ? void 0 : l.nextButtonClass) ?? x.pagination.mainTemplate.nextButtonClass, this.loadMoreButtonClass = ((g = (d = (
|
|
2491
|
+
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "previousButtonClass"), h(this, "nextButtonClass"), h(this, "loadMoreButtonClass"), h(this, "routerHelper"), h(this, "searchPaginationMainContainer", null);
|
|
2492
|
+
var t, s, a, r, c, l, o, d, g;
|
|
2493
|
+
this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.routerHelper = e.routerHelper, this.previousButtonClass = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.previousButtonClass) ?? x.pagination.mainTemplate.previousButtonClass, this.nextButtonClass = ((l = (c = (r = this.config) == null ? void 0 : r.templates) == null ? void 0 : c.mainTemplate) == null ? void 0 : l.nextButtonClass) ?? x.pagination.mainTemplate.nextButtonClass, this.loadMoreButtonClass = ((g = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : g.loadMoreButtonClass) ?? x.pagination.infiniteScrollTemplate.loadMoreButtonClass, typeof document < "u" && (this.searchPaginationMainContainer = document == null ? void 0 : document.getElementById(
|
|
2494
2494
|
this.containerId
|
|
2495
2495
|
)), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
|
|
2496
2496
|
}
|
|
@@ -2552,11 +2552,11 @@ class pa {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
2554
2554
|
renderMainTemplate(e) {
|
|
2555
|
-
var t, s, a, r, c, l,
|
|
2555
|
+
var t, s, a, r, c, l, o, d, g, m;
|
|
2556
2556
|
this.searchPaginationMainContainer && ((t = this.searchPaginationMainContainer.querySelector("." + this.previousButtonClass)) == null || t.removeEventListener("click", this.previousPage), (s = this.searchPaginationMainContainer.querySelector("." + this.nextButtonClass)) == null || s.removeEventListener("click", this.nextPage));
|
|
2557
|
-
let
|
|
2558
|
-
this.dataLayer.isInfiniteScroll && (
|
|
2559
|
-
|
|
2557
|
+
let f = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : c.template) || ((l = x.pagination.mainTemplate) == null ? void 0 : l.template);
|
|
2558
|
+
this.dataLayer.isInfiniteScroll && (f = ((g = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : g.template) || ((m = x.pagination.infiniteScrollTemplate) == null ? void 0 : m.template)), this.dataLayer.renderingEngine === W.mustache && (this.searchPaginationMainContainer.innerHTML = P.render(
|
|
2559
|
+
f,
|
|
2560
2560
|
e
|
|
2561
2561
|
), setTimeout(() => {
|
|
2562
2562
|
this.overridePaginationEvents();
|
|
@@ -2565,7 +2565,7 @@ class pa {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
class ma {
|
|
2567
2567
|
constructor(e) {
|
|
2568
|
-
|
|
2568
|
+
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "relatedSearchesContainerClass"), h(this, "searchRelatedSearchesMainContainer", null), h(this, "track");
|
|
2569
2569
|
var t, s;
|
|
2570
2570
|
this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.relatedSearchesContainerClass = ((s = (t = this.config.templates) == null ? void 0 : t.main) == null ? void 0 : s.relatedSearchesContainerClass) || x.relatedSearches.main.relatedSearchesContainerClass, typeof document < "u" && (this.searchRelatedSearchesMainContainer = document == null ? void 0 : document.getElementById(
|
|
2571
2571
|
this.containerId
|
|
@@ -2585,13 +2585,13 @@ class ma {
|
|
|
2585
2585
|
addRelatedSearchComponent(e, t) {
|
|
2586
2586
|
var s, a, r, c, l;
|
|
2587
2587
|
if (typeof document < "u") {
|
|
2588
|
-
const
|
|
2588
|
+
const o = document == null ? void 0 : document.createElement("div"), d = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.relatedSearch) == null ? void 0 : r.template) || x.relatedSearches.relatedSearch.template;
|
|
2589
2589
|
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2590
|
-
|
|
2590
|
+
o.innerHTML = P.render(
|
|
2591
2591
|
d,
|
|
2592
2592
|
e
|
|
2593
2593
|
);
|
|
2594
|
-
const g =
|
|
2594
|
+
const g = o.querySelector(
|
|
2595
2595
|
"." + (((l = (c = this.config.templates) == null ? void 0 : c.relatedSearch) == null ? void 0 : l.relatedSearchContainerClass) || x.relatedSearches.relatedSearch.relatedSearchContainerClass)
|
|
2596
2596
|
);
|
|
2597
2597
|
g && (t.appendChild(g), g.addEventListener("click", () => {
|
|
@@ -2614,14 +2614,14 @@ class ma {
|
|
|
2614
2614
|
`.${this.relatedSearchesContainerClass}`
|
|
2615
2615
|
);
|
|
2616
2616
|
if (l)
|
|
2617
|
-
for (const
|
|
2618
|
-
this.addRelatedSearchComponent(
|
|
2617
|
+
for (const o of e.relatedSearches)
|
|
2618
|
+
this.addRelatedSearchComponent(o, l);
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
2622
|
class fa {
|
|
2623
2623
|
constructor(e) {
|
|
2624
|
-
|
|
2624
|
+
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "searchFeedbackMainContainer", null), h(this, "searchTrigger"), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.searchTrigger = e.searchTrigger, typeof document < "u" && (this.searchFeedbackMainContainer = document == null ? void 0 : document.getElementById(
|
|
2625
2625
|
this.containerId
|
|
2626
2626
|
)), this.initializeSubscriptions();
|
|
2627
2627
|
}
|
|
@@ -2665,7 +2665,7 @@ class fa {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
class va {
|
|
2667
2667
|
constructor(e) {
|
|
2668
|
-
|
|
2668
|
+
h(this, "dataLayer"), h(this, "config"), h(this, "suggestAfterMinChars"), h(this, "containerId"), h(this, "currentInputValue", ""), h(this, "autosuggestResults"), h(this, "searchInput"), h(this, "actionButton"), h(this, "autosuggestContainer"), h(this, "buttonState", "search"), h(this, "selectedAutosuggestItem", -1), h(this, "suggestTrigger"), h(this, "searchTrigger"), this.dataLayer = e.dataLayer, this.config = e.config, this.searchTrigger = e.searchTrigger, this.suggestTrigger = e.suggestTrigger, this.containerId = e.containerId, this.suggestAfterMinChars = e.config.suggestAfterMinChars, this.renderMainTemplate(), this.actionButtonInit(), this.updateActionButtonState("search"), this.searchInput && (this.createAutosuggestContainer(), this.attachSubscriptions());
|
|
2669
2669
|
}
|
|
2670
2670
|
renderMainTemplate() {
|
|
2671
2671
|
var e, t, s, a;
|
|
@@ -2678,9 +2678,9 @@ class va {
|
|
|
2678
2678
|
const d = P.render(c, {});
|
|
2679
2679
|
r.innerHTML = d;
|
|
2680
2680
|
}
|
|
2681
|
-
const l = ((a = (s = this.config.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.searchInputId) || x.searchInput.mainTemplate.searchInputId,
|
|
2682
|
-
if (
|
|
2683
|
-
this.searchInput =
|
|
2681
|
+
const l = ((a = (s = this.config.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.searchInputId) || x.searchInput.mainTemplate.searchInputId, o = document == null ? void 0 : document.querySelector(`#${l}`);
|
|
2682
|
+
if (o)
|
|
2683
|
+
this.searchInput = o, o.addEventListener("keyup", this.inputKeyupEvent.bind(this)), o.addEventListener("blur", this.hideAutosuggest.bind(this)), o.addEventListener("paste", this.inputPasteEvent.bind(this));
|
|
2684
2684
|
else
|
|
2685
2685
|
throw new Error("Input not found");
|
|
2686
2686
|
}
|
|
@@ -2825,7 +2825,7 @@ class va {
|
|
|
2825
2825
|
}
|
|
2826
2826
|
class ya {
|
|
2827
2827
|
constructor(e) {
|
|
2828
|
-
|
|
2828
|
+
h(this, "dataLayer"), h(this, "config"), h(this, "linkClickCallback"), h(this, "searchCallback"), h(this, "containerId"), h(this, "searchResultsMainContainer"), h(this, "searchResultsContainer"), h(this, "searchResultLinks", []), this.linkClickCallback = e.linkClickCallback, this.searchCallback = e.searchTrigger, this.dataLayer = e.dataLayer, this.config = e.config, setTimeout(() => {
|
|
2829
2829
|
this.dataLayer.setSearchObject({ ...this.dataLayer.searchObject, itemsPerPage: this.config.resultsPerPage || 10 });
|
|
2830
2830
|
}, 0), this.containerId = e.containerId;
|
|
2831
2831
|
const t = document == null ? void 0 : document.getElementById(this.containerId);
|
|
@@ -2855,8 +2855,8 @@ class ya {
|
|
|
2855
2855
|
...this.dataLayer.parsedData.data
|
|
2856
2856
|
}
|
|
2857
2857
|
)), l && this.searchResultsContainer) {
|
|
2858
|
-
const
|
|
2859
|
-
|
|
2858
|
+
const o = this.searchResultsContainer.querySelector("a");
|
|
2859
|
+
o && o.addEventListener("click", (d) => {
|
|
2860
2860
|
d.preventDefault(), d.stopPropagation(), this.searchCallback(l);
|
|
2861
2861
|
});
|
|
2862
2862
|
}
|
|
@@ -2867,8 +2867,8 @@ class ya {
|
|
|
2867
2867
|
if (this.removeLinkClickEvents(), e.length === 0)
|
|
2868
2868
|
this.renderNoResultsTemplate();
|
|
2869
2869
|
else {
|
|
2870
|
-
const l = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.searchResultTemplate) == null ? void 0 : a.template) || ((r = x.searchResults.searchResultTemplate) == null ? void 0 : r.template),
|
|
2871
|
-
((c = this.config) == null ? void 0 : c.renderMethod) === "infiniteScroll" && this.dataLayer.searchObject.page > 1 ? this.searchResultsContainer.innerHTML +=
|
|
2870
|
+
const l = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.searchResultTemplate) == null ? void 0 : a.template) || ((r = x.searchResults.searchResultTemplate) == null ? void 0 : r.template), o = e.map((d) => P.render(l, d));
|
|
2871
|
+
((c = this.config) == null ? void 0 : c.renderMethod) === "infiniteScroll" && this.dataLayer.searchObject.page > 1 ? this.searchResultsContainer.innerHTML += o.join("") : this.searchResultsContainer.innerHTML = o.join(""), this.searchResultLinks = Array.from(
|
|
2872
2872
|
this.searchResultsContainer.querySelectorAll(
|
|
2873
2873
|
`[${this.uniqueIdAttribute}]`
|
|
2874
2874
|
)
|
|
@@ -2901,8 +2901,8 @@ class ya {
|
|
|
2901
2901
|
r,
|
|
2902
2902
|
{}
|
|
2903
2903
|
), setTimeout(() => {
|
|
2904
|
-
var c, l,
|
|
2905
|
-
const S = (
|
|
2904
|
+
var c, l, o, d, g, m, f;
|
|
2905
|
+
const S = (o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.mainTemplate) != null && o.searchResultsContainerId ? (m = (g = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : g.mainTemplate) == null ? void 0 : m.searchResultsContainerId : (f = x.searchResults.mainTemplate) == null ? void 0 : f.searchResultsContainerId, O = document == null ? void 0 : document.getElementById(S);
|
|
2906
2906
|
if (O)
|
|
2907
2907
|
this.searchResultsContainer = O;
|
|
2908
2908
|
else
|
|
@@ -2912,7 +2912,7 @@ class ya {
|
|
|
2912
2912
|
}
|
|
2913
2913
|
class xa {
|
|
2914
2914
|
constructor(e) {
|
|
2915
|
-
|
|
2915
|
+
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "selectId"), h(this, "searchSortingMainContainer", null);
|
|
2916
2916
|
var t, s;
|
|
2917
2917
|
this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.selectId = ((s = (t = this.config.templates) == null ? void 0 : t.main) == null ? void 0 : s.selectId) || x.sorting.main.selectId, this.searchSortingMainContainer = document == null ? void 0 : document.getElementById(this.containerId), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
|
|
2918
2918
|
}
|
|
@@ -2963,7 +2963,7 @@ class xa {
|
|
|
2963
2963
|
}
|
|
2964
2964
|
class ba {
|
|
2965
2965
|
constructor(e) {
|
|
2966
|
-
|
|
2966
|
+
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "answerContainer", null), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, typeof document < "u" && (this.answerContainer = document == null ? void 0 : document.getElementById(this.containerId)), this.initializeSubscriptions(), this.dataLayer.setIsAnswerWidgetCreated(!0);
|
|
2967
2967
|
}
|
|
2968
2968
|
initializeSubscriptions() {
|
|
2969
2969
|
this.dataLayer.$answer.subscribe(() => {
|
|
@@ -2983,7 +2983,7 @@ class ba {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
class Ca {
|
|
2985
2985
|
constructor(e = W.mustache) {
|
|
2986
|
-
|
|
2986
|
+
h(this, "routerEnabled", !1), h(this, "cachedQuery", ""), h(this, "routerHelper"), h(this, "searchHelper"), h(this, "searchResultsConfig"), h(this, "searchPaginationConfig"), h(this, "searchFeedbackConfig"), h(this, "searchSortingConfig"), h(this, "searchFacetsConfig"), h(this, "relatedSearchesConfig"), h(this, "externalPromotionsConfig"), h(this, "searchInputWidget"), h(this, "searchResultsWidget"), h(this, "searchFacetsWidget"), h(this, "searchPaginationWidget"), h(this, "searchFeedbackWidget"), h(this, "searchSortingWidget"), h(this, "relatedSearchesWidget"), h(this, "externalPromotionsWidget"), h(this, "answerWidget"), h(this, "dataLayer"), h(this, "firstRequest", !0), h(this, "renderEngine", W.mustache), e && (this.renderEngine = e);
|
|
2987
2987
|
}
|
|
2988
2988
|
setRenderingEngine(e = W.mustache) {
|
|
2989
2989
|
this.dataLayer.setRenderingEngine(e);
|
|
@@ -3231,10 +3231,10 @@ function La(i) {
|
|
|
3231
3231
|
const [t, s] = q([]);
|
|
3232
3232
|
ee(() => {
|
|
3233
3233
|
if (a(), C.searchstax) {
|
|
3234
|
-
const
|
|
3235
|
-
i.afterAutosuggest && (
|
|
3234
|
+
const o = {};
|
|
3235
|
+
i.afterAutosuggest && (o.afterAutosuggest = i.afterAutosuggest), i.beforeAutosuggest && (o.beforeAutosuggest = i.beforeAutosuggest), C.searchstax.addSearchInputWidget("searchstax-input-container", {
|
|
3236
3236
|
suggestAfterMinChars: i.suggestAfterMinChars ?? 3,
|
|
3237
|
-
hooks:
|
|
3237
|
+
hooks: o,
|
|
3238
3238
|
templates: {
|
|
3239
3239
|
mainTemplate: {
|
|
3240
3240
|
template: "",
|
|
@@ -3246,25 +3246,25 @@ function La(i) {
|
|
|
3246
3246
|
throw Error("Searchstax instance needs to be passed via props");
|
|
3247
3247
|
}, []);
|
|
3248
3248
|
function a() {
|
|
3249
|
-
e || (C.searchstax.dataLayer.$autosuggestResults.subscribe((
|
|
3250
|
-
s((
|
|
3249
|
+
e || (C.searchstax.dataLayer.$autosuggestResults.subscribe((o) => {
|
|
3250
|
+
s((o == null ? void 0 : o.suggestions) ?? []);
|
|
3251
3251
|
}), e = !0);
|
|
3252
3252
|
}
|
|
3253
3253
|
function r() {
|
|
3254
|
-
var
|
|
3255
|
-
(
|
|
3254
|
+
var o, d;
|
|
3255
|
+
(o = C.searchstax.searchInputWidget) == null || o.resetAutosuggestSelection(), (d = C.searchstax.searchInputWidget) == null || d.markActiveAutosuggestItem();
|
|
3256
3256
|
}
|
|
3257
|
-
function c(
|
|
3257
|
+
function c(o) {
|
|
3258
3258
|
var d;
|
|
3259
|
-
(d = C.searchstax.searchInputWidget) == null || d.onSuggestionEnter(
|
|
3259
|
+
(d = C.searchstax.searchInputWidget) == null || d.onSuggestionEnter(o);
|
|
3260
3260
|
}
|
|
3261
3261
|
function l() {
|
|
3262
|
-
var
|
|
3263
|
-
(
|
|
3262
|
+
var o;
|
|
3263
|
+
(o = C.searchstax.searchInputWidget) == null || o.suggestionChosen();
|
|
3264
3264
|
}
|
|
3265
|
-
return /* @__PURE__ */
|
|
3266
|
-
!i.inputTemplate && /* @__PURE__ */
|
|
3267
|
-
/* @__PURE__ */
|
|
3265
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsx("div", { id: "searchstax-input-container", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-search-input-container", children: [
|
|
3266
|
+
!i.inputTemplate && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-search-input-wrapper", children: [
|
|
3267
|
+
/* @__PURE__ */ u.jsx(
|
|
3268
3268
|
"input",
|
|
3269
3269
|
{
|
|
3270
3270
|
type: "text",
|
|
@@ -3273,31 +3273,31 @@ function La(i) {
|
|
|
3273
3273
|
placeholder: "SEARCH FOR..."
|
|
3274
3274
|
}
|
|
3275
3275
|
),
|
|
3276
|
-
/* @__PURE__ */
|
|
3276
|
+
/* @__PURE__ */ u.jsx(
|
|
3277
3277
|
"div",
|
|
3278
3278
|
{
|
|
3279
3279
|
className: `searchstax-autosuggest-container ${t.length === 0 ? "hidden" : ""}`,
|
|
3280
3280
|
onMouseLeave: r,
|
|
3281
|
-
children: t.map(function(
|
|
3282
|
-
return /* @__PURE__ */
|
|
3281
|
+
children: t.map(function(o) {
|
|
3282
|
+
return /* @__PURE__ */ u.jsx("div", { className: "searchstax-autosuggest-item", children: /* @__PURE__ */ u.jsx(
|
|
3283
3283
|
"div",
|
|
3284
3284
|
{
|
|
3285
3285
|
className: "searchstax-autosuggest-item-term-container",
|
|
3286
|
-
dangerouslySetInnerHTML: { __html:
|
|
3286
|
+
dangerouslySetInnerHTML: { __html: o.term },
|
|
3287
3287
|
onMouseOver: () => {
|
|
3288
|
-
c(
|
|
3288
|
+
c(o);
|
|
3289
3289
|
},
|
|
3290
3290
|
onClick: () => {
|
|
3291
3291
|
l();
|
|
3292
3292
|
}
|
|
3293
3293
|
}
|
|
3294
|
-
) },
|
|
3294
|
+
) }, o.term);
|
|
3295
3295
|
})
|
|
3296
3296
|
}
|
|
3297
3297
|
),
|
|
3298
|
-
/* @__PURE__ */
|
|
3298
|
+
/* @__PURE__ */ u.jsx("button", { className: "searchstax-spinner-icon", id: "searchstax-search-input-action-button" })
|
|
3299
3299
|
] }),
|
|
3300
|
-
i.inputTemplate && /* @__PURE__ */
|
|
3300
|
+
i.inputTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.inputTemplate(t, r, c, l) })
|
|
3301
3301
|
] }) }) });
|
|
3302
3302
|
}
|
|
3303
3303
|
function Ta(i) {
|
|
@@ -3320,7 +3320,7 @@ function Ta(i) {
|
|
|
3320
3320
|
}), setTimeout(() => {
|
|
3321
3321
|
t(!0);
|
|
3322
3322
|
}, 100), i.initialized(C.searchstax);
|
|
3323
|
-
}, [i.initialized]), /* @__PURE__ */
|
|
3323
|
+
}, [i.initialized]), /* @__PURE__ */ u.jsx(u.Fragment, { children: e && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
3324
3324
|
" ",
|
|
3325
3325
|
i.children,
|
|
3326
3326
|
" "
|
|
@@ -3333,7 +3333,7 @@ function ka(i) {
|
|
|
3333
3333
|
s.current = e;
|
|
3334
3334
|
const [a, r] = q(""), [c, l] = q(
|
|
3335
3335
|
null
|
|
3336
|
-
),
|
|
3336
|
+
), o = (g, m) => {
|
|
3337
3337
|
m.preventDefault(), m.stopPropagation(), C.searchstax.executeLinkClick(g.uniqueId);
|
|
3338
3338
|
};
|
|
3339
3339
|
ee(() => {
|
|
@@ -3350,8 +3350,8 @@ function ka(i) {
|
|
|
3350
3350
|
C.searchstax.dataLayer.$searchResults.subscribe(
|
|
3351
3351
|
(g) => {
|
|
3352
3352
|
var O;
|
|
3353
|
-
const m = s.current ?? [],
|
|
3354
|
-
((O = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : O.page) === 1 ? t(
|
|
3353
|
+
const m = s.current ?? [], f = g ?? [], S = i.renderMethod === "infiniteScroll" ? [...m, ...f] : g;
|
|
3354
|
+
((O = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : O.page) === 1 ? t(f) : t(S);
|
|
3355
3355
|
}
|
|
3356
3356
|
), C.searchstax.dataLayer.$searchTermChange.subscribe((g) => {
|
|
3357
3357
|
r(g);
|
|
@@ -3361,76 +3361,76 @@ function ka(i) {
|
|
|
3361
3361
|
}
|
|
3362
3362
|
);
|
|
3363
3363
|
}
|
|
3364
|
-
return /* @__PURE__ */
|
|
3365
|
-
e && e.length === 0 && a !== "" && a !== "*" && C.searchstax.dataLayer.parsedData.firstSearchHappened && !i.noResultTemplate && /* @__PURE__ */
|
|
3366
|
-
/* @__PURE__ */
|
|
3364
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsx("div", { id: "searchstax-results-container", children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-results-container", children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-result-container", children: [
|
|
3365
|
+
e && e.length === 0 && a !== "" && a !== "*" && C.searchstax.dataLayer.parsedData.firstSearchHappened && !i.noResultTemplate && /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3366
|
+
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-no-results", children: [
|
|
3367
3367
|
" ",
|
|
3368
3368
|
"Showing ",
|
|
3369
|
-
/* @__PURE__ */
|
|
3369
|
+
/* @__PURE__ */ u.jsx("strong", { children: "no results" }),
|
|
3370
3370
|
" for",
|
|
3371
3371
|
" ",
|
|
3372
|
-
/* @__PURE__ */
|
|
3372
|
+
/* @__PURE__ */ u.jsxs("strong", { children: [
|
|
3373
3373
|
'"',
|
|
3374
3374
|
a,
|
|
3375
3375
|
'"'
|
|
3376
3376
|
] }),
|
|
3377
|
-
/* @__PURE__ */
|
|
3378
|
-
(c == null ? void 0 : c.spellingSuggestion) && /* @__PURE__ */
|
|
3377
|
+
/* @__PURE__ */ u.jsx("br", {}),
|
|
3378
|
+
(c == null ? void 0 : c.spellingSuggestion) && /* @__PURE__ */ u.jsxs("span", { children: [
|
|
3379
3379
|
" Did you mean",
|
|
3380
3380
|
" ",
|
|
3381
|
-
/* @__PURE__ */
|
|
3381
|
+
/* @__PURE__ */ u.jsx("a", { href: "#", className: "searchstax-suggestion-term", children: c == null ? void 0 : c.spellingSuggestion }),
|
|
3382
3382
|
"?"
|
|
3383
3383
|
] })
|
|
3384
3384
|
] }),
|
|
3385
|
-
/* @__PURE__ */
|
|
3386
|
-
/* @__PURE__ */
|
|
3385
|
+
/* @__PURE__ */ u.jsxs("div", { children: [
|
|
3386
|
+
/* @__PURE__ */ u.jsxs("p", { children: [
|
|
3387
3387
|
" ",
|
|
3388
3388
|
"Try searching for search related terms or topics. We offer a wide variety of content to help you get the information you need.",
|
|
3389
3389
|
" "
|
|
3390
3390
|
] }),
|
|
3391
|
-
/* @__PURE__ */
|
|
3391
|
+
/* @__PURE__ */ u.jsx("p", { children: "Lost? Click on the ‘X” in the Search Box to reset your search." })
|
|
3392
3392
|
] })
|
|
3393
3393
|
] }),
|
|
3394
|
-
e && e.length === 0 && a !== "" && a !== "*" && C.searchstax.dataLayer.parsedData.firstSearchHappened && i.noResultTemplate && /* @__PURE__ */
|
|
3395
|
-
e && e.length > 0 && !i.resultsTemplate && /* @__PURE__ */
|
|
3396
|
-
return /* @__PURE__ */
|
|
3394
|
+
e && e.length === 0 && a !== "" && a !== "*" && C.searchstax.dataLayer.parsedData.firstSearchHappened && i.noResultTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.noResultTemplate(a, c) }),
|
|
3395
|
+
e && e.length > 0 && !i.resultsTemplate && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-results", children: e !== null && e.map(function(g) {
|
|
3396
|
+
return /* @__PURE__ */ u.jsxs(
|
|
3397
3397
|
"div",
|
|
3398
3398
|
{
|
|
3399
3399
|
className: `searchstax-search-result ${g.thumbnail ? "has-thumbnail" : ""}`,
|
|
3400
3400
|
children: [
|
|
3401
|
-
g.promoted && /* @__PURE__ */
|
|
3402
|
-
g.url && /* @__PURE__ */
|
|
3401
|
+
g.promoted && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-promoted" }),
|
|
3402
|
+
g.url && /* @__PURE__ */ u.jsx(
|
|
3403
3403
|
"a",
|
|
3404
3404
|
{
|
|
3405
3405
|
href: g.url,
|
|
3406
3406
|
"data-searchstax-unique-result-id": g.uniqueId,
|
|
3407
3407
|
onClick: (m) => {
|
|
3408
|
-
|
|
3408
|
+
o(g, m);
|
|
3409
3409
|
},
|
|
3410
3410
|
className: "searchstax-result-item-link"
|
|
3411
3411
|
}
|
|
3412
3412
|
),
|
|
3413
|
-
g.ribbon && /* @__PURE__ */
|
|
3414
|
-
g.thumbnail && /* @__PURE__ */
|
|
3413
|
+
g.ribbon && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-ribbon", children: g.ribbon }),
|
|
3414
|
+
g.thumbnail && /* @__PURE__ */ u.jsx(
|
|
3415
3415
|
"img",
|
|
3416
3416
|
{
|
|
3417
3417
|
src: g.thumbnail,
|
|
3418
3418
|
className: "searchstax-thumbnail"
|
|
3419
3419
|
}
|
|
3420
3420
|
),
|
|
3421
|
-
/* @__PURE__ */
|
|
3422
|
-
g.paths && /* @__PURE__ */
|
|
3423
|
-
g.description && /* @__PURE__ */
|
|
3421
|
+
/* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-title-container", children: /* @__PURE__ */ u.jsx("span", { className: "searchstax-search-result-title", children: g.title }) }),
|
|
3422
|
+
g.paths && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", children: g.paths }),
|
|
3423
|
+
g.description && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-description searchstax-search-result-common", children: g.description }),
|
|
3424
3424
|
g.unmappedFields.map(function(m) {
|
|
3425
|
-
return /* @__PURE__ */
|
|
3426
|
-
m.isImage && typeof m.value == "string" && /* @__PURE__ */
|
|
3425
|
+
return /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3426
|
+
m.isImage && typeof m.value == "string" && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-image-container", children: /* @__PURE__ */ u.jsx(
|
|
3427
3427
|
"img",
|
|
3428
3428
|
{
|
|
3429
3429
|
src: m.value,
|
|
3430
3430
|
className: "searchstax-result-image"
|
|
3431
3431
|
}
|
|
3432
3432
|
) }),
|
|
3433
|
-
!m.isImage && /* @__PURE__ */
|
|
3433
|
+
!m.isImage && /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", children: m.value }) })
|
|
3434
3434
|
] }, m.key);
|
|
3435
3435
|
})
|
|
3436
3436
|
]
|
|
@@ -3438,7 +3438,7 @@ function ka(i) {
|
|
|
3438
3438
|
g.uniqueId
|
|
3439
3439
|
);
|
|
3440
3440
|
}) }),
|
|
3441
|
-
e && e.length > 0 && i.resultsTemplate && /* @__PURE__ */
|
|
3441
|
+
e && e.length > 0 && i.resultsTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.resultsTemplate(e, o) })
|
|
3442
3442
|
] }) }) }) });
|
|
3443
3443
|
}
|
|
3444
3444
|
function Ra(i) {
|
|
@@ -3457,34 +3457,34 @@ function Ra(i) {
|
|
|
3457
3457
|
}, []);
|
|
3458
3458
|
function l() {
|
|
3459
3459
|
e || (C.searchstax.dataLayer.$searchObject.subscribe(() => {
|
|
3460
|
-
|
|
3460
|
+
o();
|
|
3461
3461
|
}), C.searchstax.dataLayer.$paginationData.subscribe(
|
|
3462
3462
|
(m) => {
|
|
3463
3463
|
r(m);
|
|
3464
3464
|
}
|
|
3465
3465
|
), e = !0);
|
|
3466
3466
|
}
|
|
3467
|
-
function
|
|
3467
|
+
function o() {
|
|
3468
3468
|
!t && C.searchstax.routerHelper && (s(!0), C.searchstax.addPaginationWidget(
|
|
3469
3469
|
"searchstax-pagination-container" + c,
|
|
3470
3470
|
{}
|
|
3471
3471
|
));
|
|
3472
3472
|
}
|
|
3473
3473
|
function d(m) {
|
|
3474
|
-
var
|
|
3475
|
-
(
|
|
3474
|
+
var f;
|
|
3475
|
+
(f = C.searchstax.searchPaginationWidget) == null || f.nextPage(
|
|
3476
3476
|
m
|
|
3477
3477
|
);
|
|
3478
3478
|
}
|
|
3479
3479
|
function g(m) {
|
|
3480
|
-
var
|
|
3481
|
-
(
|
|
3480
|
+
var f;
|
|
3481
|
+
(f = C.searchstax.searchPaginationWidget) == null || f.previousPage(
|
|
3482
3482
|
m
|
|
3483
3483
|
);
|
|
3484
3484
|
}
|
|
3485
|
-
return /* @__PURE__ */
|
|
3486
|
-
!i.paginationTemplate && a && !a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && /* @__PURE__ */
|
|
3487
|
-
/* @__PURE__ */
|
|
3485
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-pagination-container" + c, children: [
|
|
3486
|
+
!i.paginationTemplate && a && !a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && /* @__PURE__ */ u.jsx("div", { className: "searchstax-pagination-container", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-pagination-content", children: [
|
|
3487
|
+
/* @__PURE__ */ u.jsxs(
|
|
3488
3488
|
"a",
|
|
3489
3489
|
{
|
|
3490
3490
|
className: "searchstax-pagination-previous",
|
|
@@ -3500,7 +3500,7 @@ function Ra(i) {
|
|
|
3500
3500
|
]
|
|
3501
3501
|
}
|
|
3502
3502
|
),
|
|
3503
|
-
/* @__PURE__ */
|
|
3503
|
+
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-pagination-details", children: [
|
|
3504
3504
|
" ",
|
|
3505
3505
|
a == null ? void 0 : a.startResultIndex,
|
|
3506
3506
|
" -",
|
|
@@ -3510,7 +3510,7 @@ function Ra(i) {
|
|
|
3510
3510
|
" ",
|
|
3511
3511
|
a == null ? void 0 : a.totalResults
|
|
3512
3512
|
] }),
|
|
3513
|
-
/* @__PURE__ */
|
|
3513
|
+
/* @__PURE__ */ u.jsx(
|
|
3514
3514
|
"a",
|
|
3515
3515
|
{
|
|
3516
3516
|
className: "searchstax-pagination-next",
|
|
@@ -3523,8 +3523,8 @@ function Ra(i) {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
)
|
|
3525
3525
|
] }) }),
|
|
3526
|
-
i.paginationTemplate && a && !a.isInfiniteScroll && /* @__PURE__ */
|
|
3527
|
-
!i.infiniteScrollTemplate && a && a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && !(a != null && a.isLastPage) && /* @__PURE__ */
|
|
3526
|
+
i.paginationTemplate && a && !a.isInfiniteScroll && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.paginationTemplate(a, d, g) }),
|
|
3527
|
+
!i.infiniteScrollTemplate && a && a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && !(a != null && a.isLastPage) && /* @__PURE__ */ u.jsx("div", { className: "searchstax-pagination-container", children: /* @__PURE__ */ u.jsx(
|
|
3528
3528
|
"a",
|
|
3529
3529
|
{
|
|
3530
3530
|
className: "searchstax-pagination-load-more",
|
|
@@ -3534,7 +3534,7 @@ function Ra(i) {
|
|
|
3534
3534
|
children: "Show More"
|
|
3535
3535
|
}
|
|
3536
3536
|
) }),
|
|
3537
|
-
i.infiniteScrollTemplate && a && a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && !(a != null && a.isLastPage) && /* @__PURE__ */
|
|
3537
|
+
i.infiniteScrollTemplate && a && a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && !(a != null && a.isLastPage) && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.infiniteScrollTemplate(a, d) })
|
|
3538
3538
|
] }) });
|
|
3539
3539
|
}
|
|
3540
3540
|
function wa(i) {
|
|
@@ -3562,31 +3562,31 @@ function wa(i) {
|
|
|
3562
3562
|
}
|
|
3563
3563
|
), e = !0);
|
|
3564
3564
|
}
|
|
3565
|
-
function
|
|
3565
|
+
function o(d) {
|
|
3566
3566
|
var g;
|
|
3567
3567
|
(g = C.searchstax.searchSortingWidget) == null || g.setOrderQuery(d);
|
|
3568
3568
|
}
|
|
3569
|
-
return /* @__PURE__ */
|
|
3570
|
-
!i.searchSortingTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasResultsOrExternalPromotions) && /* @__PURE__ */
|
|
3571
|
-
/* @__PURE__ */
|
|
3572
|
-
/* @__PURE__ */
|
|
3569
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "search-sorting-container" + c, children: [
|
|
3570
|
+
!i.searchSortingTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasResultsOrExternalPromotions) && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-sorting-container", children: [
|
|
3571
|
+
/* @__PURE__ */ u.jsx("label", { className: "searchstax-sorting-label", htmlFor: "sort-by", children: "Sort By" }),
|
|
3572
|
+
/* @__PURE__ */ u.jsx(
|
|
3573
3573
|
"select",
|
|
3574
3574
|
{
|
|
3575
3575
|
id: "searchstax-search-order-select",
|
|
3576
3576
|
className: "searchstax-search-order-select",
|
|
3577
3577
|
value: a,
|
|
3578
3578
|
onChange: (d) => {
|
|
3579
|
-
|
|
3579
|
+
o(d.target.value);
|
|
3580
3580
|
},
|
|
3581
3581
|
children: t.sortOptions.map(function(d) {
|
|
3582
|
-
return /* @__PURE__ */
|
|
3582
|
+
return /* @__PURE__ */ u.jsx("option", { value: d.key, children: d.value }, d.key);
|
|
3583
3583
|
})
|
|
3584
3584
|
}
|
|
3585
3585
|
)
|
|
3586
3586
|
] }),
|
|
3587
|
-
i.searchSortingTemplate && /* @__PURE__ */
|
|
3587
|
+
i.searchSortingTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchSortingTemplate(
|
|
3588
3588
|
t,
|
|
3589
|
-
|
|
3589
|
+
o,
|
|
3590
3590
|
a
|
|
3591
3591
|
) })
|
|
3592
3592
|
] }) });
|
|
@@ -3608,36 +3608,36 @@ function Ea(i) {
|
|
|
3608
3608
|
), e = !0);
|
|
3609
3609
|
}
|
|
3610
3610
|
function c(l) {
|
|
3611
|
-
var
|
|
3612
|
-
(
|
|
3611
|
+
var o;
|
|
3612
|
+
(o = C.searchstax.searchFeedbackWidget) == null || o.onOriginalQueryClick(l);
|
|
3613
3613
|
}
|
|
3614
|
-
return /* @__PURE__ */
|
|
3615
|
-
!i.searchOverviewTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.totalResults) > 0 && /* @__PURE__ */
|
|
3614
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { className: "search-feedback-container", id: "search-feedback-container" + a, children: [
|
|
3615
|
+
!i.searchOverviewTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.totalResults) > 0 && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
3616
3616
|
"Showing",
|
|
3617
3617
|
" ",
|
|
3618
|
-
/* @__PURE__ */
|
|
3618
|
+
/* @__PURE__ */ u.jsxs("b", { children: [
|
|
3619
3619
|
t.startResultIndex,
|
|
3620
3620
|
" - ",
|
|
3621
3621
|
t.endResultIndex
|
|
3622
3622
|
] }),
|
|
3623
3623
|
" ",
|
|
3624
3624
|
"of",
|
|
3625
|
-
/* @__PURE__ */
|
|
3625
|
+
/* @__PURE__ */ u.jsxs("b", { children: [
|
|
3626
3626
|
" ",
|
|
3627
3627
|
t.totalResults
|
|
3628
3628
|
] }),
|
|
3629
3629
|
" results",
|
|
3630
|
-
t.searchTerm && /* @__PURE__ */
|
|
3630
|
+
t.searchTerm && /* @__PURE__ */ u.jsxs("span", { children: [
|
|
3631
3631
|
' for "',
|
|
3632
|
-
/* @__PURE__ */
|
|
3632
|
+
/* @__PURE__ */ u.jsx("b", { children: t.searchTerm }),
|
|
3633
3633
|
'"',
|
|
3634
3634
|
" "
|
|
3635
3635
|
] }),
|
|
3636
|
-
/* @__PURE__ */
|
|
3636
|
+
/* @__PURE__ */ u.jsx("div", { className: "searchstax-feedback-container-suggested", children: t.autoCorrectedQuery && /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3637
3637
|
" ",
|
|
3638
3638
|
"Search instead for",
|
|
3639
3639
|
" ",
|
|
3640
|
-
/* @__PURE__ */
|
|
3640
|
+
/* @__PURE__ */ u.jsx(
|
|
3641
3641
|
"a",
|
|
3642
3642
|
{
|
|
3643
3643
|
href: "#",
|
|
@@ -3650,7 +3650,7 @@ function Ea(i) {
|
|
|
3650
3650
|
)
|
|
3651
3651
|
] }) })
|
|
3652
3652
|
] }),
|
|
3653
|
-
i.searchOverviewTemplate && /* @__PURE__ */
|
|
3653
|
+
i.searchOverviewTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchOverviewTemplate(t, c) })
|
|
3654
3654
|
] }) });
|
|
3655
3655
|
}
|
|
3656
3656
|
function Ia(i) {
|
|
@@ -3660,12 +3660,12 @@ function Ia(i) {
|
|
|
3660
3660
|
null
|
|
3661
3661
|
), [r, c] = q(
|
|
3662
3662
|
[]
|
|
3663
|
-
), [l,
|
|
3663
|
+
), [l, o] = q(
|
|
3664
3664
|
{}
|
|
3665
3665
|
), d = {}, g = Math.random();
|
|
3666
3666
|
let m = !1;
|
|
3667
3667
|
ee(() => {
|
|
3668
|
-
if (
|
|
3668
|
+
if (f(), C.searchstax)
|
|
3669
3669
|
C.searchstax.addFacetsWidget("searchstax-facets-container" + g, {
|
|
3670
3670
|
facetingType: i.facetingType,
|
|
3671
3671
|
specificFacets: i.specificFacets,
|
|
@@ -3675,40 +3675,40 @@ function Ia(i) {
|
|
|
3675
3675
|
else
|
|
3676
3676
|
throw Error("Searchstax instance needs to be passed via props");
|
|
3677
3677
|
}, []);
|
|
3678
|
-
function
|
|
3678
|
+
function f() {
|
|
3679
3679
|
m || (C.searchstax.dataLayer.$facetsTemplateData.subscribe(
|
|
3680
|
-
(
|
|
3681
|
-
|
|
3680
|
+
(v) => {
|
|
3681
|
+
v != null && v.isMobile ? a(v) : t(v);
|
|
3682
3682
|
}
|
|
3683
3683
|
), C.searchstax.dataLayer.$selectedFacetsTemplateData.subscribe(
|
|
3684
|
-
(
|
|
3684
|
+
(v) => {
|
|
3685
3685
|
c(
|
|
3686
|
-
(
|
|
3686
|
+
(v ?? []).filter((j) => j.type === "checkbox")
|
|
3687
3687
|
);
|
|
3688
3688
|
}
|
|
3689
3689
|
), m = !0);
|
|
3690
3690
|
}
|
|
3691
|
-
function S(
|
|
3691
|
+
function S(v) {
|
|
3692
3692
|
var b;
|
|
3693
|
-
(b = C.searchstax.searchFacetsWidget) == null || b.unselectFacet(
|
|
3693
|
+
(b = C.searchstax.searchFacetsWidget) == null || b.unselectFacet(v);
|
|
3694
3694
|
}
|
|
3695
3695
|
function O() {
|
|
3696
|
-
var
|
|
3697
|
-
(
|
|
3696
|
+
var v;
|
|
3697
|
+
(v = C.searchstax.searchFacetsWidget) == null || v.removeSelectedFacets();
|
|
3698
3698
|
}
|
|
3699
|
-
function R(
|
|
3700
|
-
return !l[
|
|
3699
|
+
function R(v) {
|
|
3700
|
+
return !l[v];
|
|
3701
3701
|
}
|
|
3702
|
-
function k(
|
|
3703
|
-
R(
|
|
3702
|
+
function k(v) {
|
|
3703
|
+
R(v) ? o({ ...l, [v]: !0 }) : o({ ...l, [v]: !1 });
|
|
3704
3704
|
}
|
|
3705
|
-
function E(
|
|
3705
|
+
function E(v) {
|
|
3706
3706
|
var b;
|
|
3707
|
-
return (b = C.searchstax.searchFacetsWidget) == null ? void 0 : b.isChecked(
|
|
3707
|
+
return (b = C.searchstax.searchFacetsWidget) == null ? void 0 : b.isChecked(v);
|
|
3708
3708
|
}
|
|
3709
|
-
function T(
|
|
3709
|
+
function T(v, b, j, _, G) {
|
|
3710
3710
|
var Y;
|
|
3711
|
-
const pe = G ? "mobile-" : "desktop-", K = document.getElementsByClassName(pe +
|
|
3711
|
+
const pe = G ? "mobile-" : "desktop-", K = document.getElementsByClassName(pe + v);
|
|
3712
3712
|
K[0] && ((Y = C.searchstax.searchFacetsWidget) == null || Y.onFacetSelect(
|
|
3713
3713
|
b,
|
|
3714
3714
|
j,
|
|
@@ -3717,67 +3717,67 @@ function Ia(i) {
|
|
|
3717
3717
|
E(j)
|
|
3718
3718
|
));
|
|
3719
3719
|
}
|
|
3720
|
-
function N(
|
|
3720
|
+
function N(v, b) {
|
|
3721
3721
|
var j;
|
|
3722
3722
|
(j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
|
|
3723
|
-
|
|
3723
|
+
v,
|
|
3724
3724
|
b,
|
|
3725
3725
|
!1
|
|
3726
3726
|
);
|
|
3727
3727
|
}
|
|
3728
|
-
function B(
|
|
3728
|
+
function B(v, b) {
|
|
3729
3729
|
var j;
|
|
3730
3730
|
(j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
|
|
3731
|
-
|
|
3731
|
+
v,
|
|
3732
3732
|
b,
|
|
3733
3733
|
!0
|
|
3734
3734
|
);
|
|
3735
3735
|
}
|
|
3736
3736
|
function A() {
|
|
3737
|
-
var
|
|
3738
|
-
(
|
|
3737
|
+
var v;
|
|
3738
|
+
(v = C.searchstax.searchFacetsWidget) == null || v.openOverlay();
|
|
3739
3739
|
}
|
|
3740
3740
|
function Q() {
|
|
3741
|
-
var
|
|
3742
|
-
(
|
|
3741
|
+
var v;
|
|
3742
|
+
(v = C.searchstax.searchFacetsWidget) == null || v.closeOverlay();
|
|
3743
3743
|
}
|
|
3744
|
-
return /* @__PURE__ */
|
|
3745
|
-
(e == null ? void 0 : e.hasResultsOrExternalPromotions) && !i.facetsTemplateDesktop && /* @__PURE__ */
|
|
3744
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-facets-container" + g, children: [
|
|
3745
|
+
(e == null ? void 0 : e.hasResultsOrExternalPromotions) && !i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-desktop", children: e == null ? void 0 : e.facets.map((v) => /* @__PURE__ */ u.jsx(
|
|
3746
3746
|
"div",
|
|
3747
3747
|
{
|
|
3748
|
-
className: `searchstax-facet-container ${R(
|
|
3749
|
-
children: /* @__PURE__ */
|
|
3750
|
-
/* @__PURE__ */
|
|
3748
|
+
className: `searchstax-facet-container ${R(v.name) ? "active" : ""}`,
|
|
3749
|
+
children: /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3750
|
+
/* @__PURE__ */ u.jsxs(
|
|
3751
3751
|
"div",
|
|
3752
3752
|
{
|
|
3753
3753
|
className: "searchstax-facet-title-container",
|
|
3754
3754
|
onClick: () => {
|
|
3755
|
-
k(
|
|
3755
|
+
k(v.name);
|
|
3756
3756
|
},
|
|
3757
3757
|
children: [
|
|
3758
|
-
/* @__PURE__ */
|
|
3758
|
+
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-title", children: [
|
|
3759
3759
|
" ",
|
|
3760
|
-
|
|
3760
|
+
v.label,
|
|
3761
3761
|
" "
|
|
3762
3762
|
] }),
|
|
3763
|
-
/* @__PURE__ */
|
|
3763
|
+
/* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-title-arrow active" })
|
|
3764
3764
|
]
|
|
3765
3765
|
}
|
|
3766
3766
|
),
|
|
3767
|
-
/* @__PURE__ */
|
|
3768
|
-
|
|
3767
|
+
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
|
|
3768
|
+
v.values.map(
|
|
3769
3769
|
//@ts-ignore
|
|
3770
|
-
(b, j) => (d[j +
|
|
3770
|
+
(b, j) => (d[j + v.name] = et(), /* @__PURE__ */ u.jsxs(
|
|
3771
3771
|
"div",
|
|
3772
3772
|
{
|
|
3773
3773
|
className: `searchstax-facet-value-container ${b.disabled ? "searchstax-facet-value-disabled" : ""}`,
|
|
3774
|
-
ref: d[j +
|
|
3774
|
+
ref: d[j + v.name],
|
|
3775
3775
|
children: [
|
|
3776
|
-
/* @__PURE__ */
|
|
3776
|
+
/* @__PURE__ */ u.jsx(
|
|
3777
3777
|
"div",
|
|
3778
3778
|
{
|
|
3779
|
-
className: "searchstax-facet-input desktop-" + j +
|
|
3780
|
-
children: /* @__PURE__ */
|
|
3779
|
+
className: "searchstax-facet-input desktop-" + j + v.name,
|
|
3780
|
+
children: /* @__PURE__ */ u.jsx(
|
|
3781
3781
|
"input",
|
|
3782
3782
|
{
|
|
3783
3783
|
type: "checkbox",
|
|
@@ -3787,7 +3787,7 @@ function Ia(i) {
|
|
|
3787
3787
|
disabled: b.disabled,
|
|
3788
3788
|
onClick: (_) => {
|
|
3789
3789
|
T(
|
|
3790
|
-
j +
|
|
3790
|
+
j + v.name,
|
|
3791
3791
|
_,
|
|
3792
3792
|
b
|
|
3793
3793
|
);
|
|
@@ -3796,13 +3796,13 @@ function Ia(i) {
|
|
|
3796
3796
|
)
|
|
3797
3797
|
}
|
|
3798
3798
|
),
|
|
3799
|
-
/* @__PURE__ */
|
|
3799
|
+
/* @__PURE__ */ u.jsx(
|
|
3800
3800
|
"div",
|
|
3801
3801
|
{
|
|
3802
3802
|
className: "searchstax-facet-value-label",
|
|
3803
3803
|
onClick: (_) => {
|
|
3804
3804
|
T(
|
|
3805
|
-
j +
|
|
3805
|
+
j + v.name,
|
|
3806
3806
|
_,
|
|
3807
3807
|
b
|
|
3808
3808
|
);
|
|
@@ -3810,13 +3810,13 @@ function Ia(i) {
|
|
|
3810
3810
|
children: b.value
|
|
3811
3811
|
}
|
|
3812
3812
|
),
|
|
3813
|
-
/* @__PURE__ */
|
|
3813
|
+
/* @__PURE__ */ u.jsxs(
|
|
3814
3814
|
"div",
|
|
3815
3815
|
{
|
|
3816
3816
|
className: "searchstax-facet-value-count",
|
|
3817
3817
|
onClick: (_) => {
|
|
3818
3818
|
T(
|
|
3819
|
-
j +
|
|
3819
|
+
j + v.name,
|
|
3820
3820
|
_,
|
|
3821
3821
|
b
|
|
3822
3822
|
);
|
|
@@ -3833,25 +3833,25 @@ function Ia(i) {
|
|
|
3833
3833
|
b.value + b.parentName
|
|
3834
3834
|
))
|
|
3835
3835
|
),
|
|
3836
|
-
|
|
3836
|
+
v.hasMoreFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-container", children: /* @__PURE__ */ u.jsxs(
|
|
3837
3837
|
"div",
|
|
3838
3838
|
{
|
|
3839
3839
|
className: "searchstax-facet-show-more-container",
|
|
3840
3840
|
onClick: (b) => {
|
|
3841
|
-
N(b,
|
|
3841
|
+
N(b, v);
|
|
3842
3842
|
},
|
|
3843
3843
|
children: [
|
|
3844
|
-
|
|
3845
|
-
!
|
|
3844
|
+
v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
|
|
3845
|
+
!v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-button searchstax-facet-show-button", children: "more" })
|
|
3846
3846
|
]
|
|
3847
3847
|
}
|
|
3848
3848
|
) })
|
|
3849
3849
|
] })
|
|
3850
3850
|
] })
|
|
3851
3851
|
},
|
|
3852
|
-
|
|
3852
|
+
v.name + "desktop"
|
|
3853
3853
|
)) }),
|
|
3854
|
-
i.facetsTemplateDesktop && /* @__PURE__ */
|
|
3854
|
+
i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateDesktop(
|
|
3855
3855
|
e,
|
|
3856
3856
|
d,
|
|
3857
3857
|
R,
|
|
@@ -3860,57 +3860,57 @@ function Ia(i) {
|
|
|
3860
3860
|
E,
|
|
3861
3861
|
N
|
|
3862
3862
|
) }),
|
|
3863
|
-
(s == null ? void 0 : s.hasResultsOrExternalPromotions) && !i.facetsTemplateMobile && /* @__PURE__ */
|
|
3864
|
-
/* @__PURE__ */
|
|
3863
|
+
(s == null ? void 0 : s.hasResultsOrExternalPromotions) && !i.facetsTemplateMobile && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pills-container", children: [
|
|
3864
|
+
/* @__PURE__ */ u.jsx(
|
|
3865
3865
|
"div",
|
|
3866
3866
|
{
|
|
3867
3867
|
className: "searchstax-facets-pill searchstax-facets-pill-filter-by",
|
|
3868
3868
|
onClick: () => {
|
|
3869
3869
|
A();
|
|
3870
3870
|
},
|
|
3871
|
-
children: /* @__PURE__ */
|
|
3871
|
+
children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-label", children: "Filter By" })
|
|
3872
3872
|
}
|
|
3873
3873
|
),
|
|
3874
|
-
/* @__PURE__ */
|
|
3875
|
-
r.map((
|
|
3874
|
+
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pills-selected", children: [
|
|
3875
|
+
r.map((v) => /* @__PURE__ */ u.jsxs(
|
|
3876
3876
|
"div",
|
|
3877
3877
|
{
|
|
3878
3878
|
className: "searchstax-facets-pill searchstax-facets-pill-facets",
|
|
3879
3879
|
onClick: () => {
|
|
3880
|
-
S(
|
|
3880
|
+
S(v);
|
|
3881
3881
|
},
|
|
3882
3882
|
children: [
|
|
3883
|
-
/* @__PURE__ */
|
|
3884
|
-
|
|
3883
|
+
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pill-label", children: [
|
|
3884
|
+
v.value,
|
|
3885
3885
|
" (",
|
|
3886
|
-
|
|
3886
|
+
v.count,
|
|
3887
3887
|
")"
|
|
3888
3888
|
] }),
|
|
3889
|
-
/* @__PURE__ */
|
|
3889
|
+
/* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-icon-close" })
|
|
3890
3890
|
]
|
|
3891
3891
|
},
|
|
3892
|
-
|
|
3892
|
+
v.value
|
|
3893
3893
|
)),
|
|
3894
|
-
r.length !== 0 && /* @__PURE__ */
|
|
3894
|
+
r.length !== 0 && /* @__PURE__ */ u.jsx(
|
|
3895
3895
|
"div",
|
|
3896
3896
|
{
|
|
3897
3897
|
className: "searchstax-facets-pill searchstax-clear-filters searchstax-facets-pill-clear-all",
|
|
3898
3898
|
onClick: () => {
|
|
3899
3899
|
O();
|
|
3900
3900
|
},
|
|
3901
|
-
children: /* @__PURE__ */
|
|
3901
|
+
children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-label", children: "Clear Filters" })
|
|
3902
3902
|
}
|
|
3903
3903
|
)
|
|
3904
3904
|
] }),
|
|
3905
|
-
/* @__PURE__ */
|
|
3905
|
+
/* @__PURE__ */ u.jsxs(
|
|
3906
3906
|
"div",
|
|
3907
3907
|
{
|
|
3908
3908
|
className: `searchstax-facets-mobile-overlay ${//@ts-ignore
|
|
3909
3909
|
s.overlayOpened ? "searchstax-show" : ""}`,
|
|
3910
3910
|
children: [
|
|
3911
|
-
/* @__PURE__ */
|
|
3912
|
-
/* @__PURE__ */
|
|
3913
|
-
/* @__PURE__ */
|
|
3911
|
+
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-mobile-overlay-header", children: [
|
|
3912
|
+
/* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-mobile-overlay-header-title", children: "Filter By" }),
|
|
3913
|
+
/* @__PURE__ */ u.jsx(
|
|
3914
3914
|
"div",
|
|
3915
3915
|
{
|
|
3916
3916
|
className: "searchstax-search-close",
|
|
@@ -3920,42 +3920,42 @@ function Ia(i) {
|
|
|
3920
3920
|
}
|
|
3921
3921
|
)
|
|
3922
3922
|
] }),
|
|
3923
|
-
/* @__PURE__ */
|
|
3923
|
+
/* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: s == null ? void 0 : s.facets.map((v) => /* @__PURE__ */ u.jsx(
|
|
3924
3924
|
"div",
|
|
3925
3925
|
{
|
|
3926
|
-
className: `searchstax-facet-container ${R(
|
|
3927
|
-
children: /* @__PURE__ */
|
|
3928
|
-
/* @__PURE__ */
|
|
3926
|
+
className: `searchstax-facet-container ${R(v.name) ? "active" : ""}`,
|
|
3927
|
+
children: /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3928
|
+
/* @__PURE__ */ u.jsxs(
|
|
3929
3929
|
"div",
|
|
3930
3930
|
{
|
|
3931
3931
|
className: "searchstax-facet-title-container",
|
|
3932
3932
|
onClick: () => {
|
|
3933
|
-
k(
|
|
3933
|
+
k(v.name);
|
|
3934
3934
|
},
|
|
3935
3935
|
children: [
|
|
3936
|
-
/* @__PURE__ */
|
|
3936
|
+
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-title", children: [
|
|
3937
3937
|
" ",
|
|
3938
|
-
|
|
3938
|
+
v.label,
|
|
3939
3939
|
" "
|
|
3940
3940
|
] }),
|
|
3941
|
-
/* @__PURE__ */
|
|
3941
|
+
/* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-title-arrow active" })
|
|
3942
3942
|
]
|
|
3943
3943
|
}
|
|
3944
3944
|
),
|
|
3945
|
-
/* @__PURE__ */
|
|
3946
|
-
|
|
3945
|
+
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
|
|
3946
|
+
v.values.map(
|
|
3947
3947
|
//@ts-ignore
|
|
3948
|
-
(b, j) => (d[j +
|
|
3948
|
+
(b, j) => (d[j + v.name] = et(), /* @__PURE__ */ u.jsxs(
|
|
3949
3949
|
"div",
|
|
3950
3950
|
{
|
|
3951
3951
|
className: `searchstax-facet-value-container ${b.disabled ? "searchstax-facet-value-disabled" : ""}`,
|
|
3952
|
-
ref: d[j +
|
|
3952
|
+
ref: d[j + v.name],
|
|
3953
3953
|
children: [
|
|
3954
|
-
/* @__PURE__ */
|
|
3954
|
+
/* @__PURE__ */ u.jsx(
|
|
3955
3955
|
"div",
|
|
3956
3956
|
{
|
|
3957
|
-
className: "searchstax-facet-input mobile-" + j +
|
|
3958
|
-
children: /* @__PURE__ */
|
|
3957
|
+
className: "searchstax-facet-input mobile-" + j + v.name,
|
|
3958
|
+
children: /* @__PURE__ */ u.jsx(
|
|
3959
3959
|
"input",
|
|
3960
3960
|
{
|
|
3961
3961
|
type: "checkbox",
|
|
@@ -3965,7 +3965,7 @@ function Ia(i) {
|
|
|
3965
3965
|
disabled: b.disabled,
|
|
3966
3966
|
onClick: (_) => {
|
|
3967
3967
|
T(
|
|
3968
|
-
j +
|
|
3968
|
+
j + v.name,
|
|
3969
3969
|
_,
|
|
3970
3970
|
b,
|
|
3971
3971
|
!0,
|
|
@@ -3976,13 +3976,13 @@ function Ia(i) {
|
|
|
3976
3976
|
)
|
|
3977
3977
|
}
|
|
3978
3978
|
),
|
|
3979
|
-
/* @__PURE__ */
|
|
3979
|
+
/* @__PURE__ */ u.jsx(
|
|
3980
3980
|
"div",
|
|
3981
3981
|
{
|
|
3982
3982
|
className: "searchstax-facet-value-label",
|
|
3983
3983
|
onClick: (_) => {
|
|
3984
3984
|
T(
|
|
3985
|
-
j +
|
|
3985
|
+
j + v.name,
|
|
3986
3986
|
_,
|
|
3987
3987
|
b
|
|
3988
3988
|
);
|
|
@@ -3990,13 +3990,13 @@ function Ia(i) {
|
|
|
3990
3990
|
children: b.value
|
|
3991
3991
|
}
|
|
3992
3992
|
),
|
|
3993
|
-
/* @__PURE__ */
|
|
3993
|
+
/* @__PURE__ */ u.jsxs(
|
|
3994
3994
|
"div",
|
|
3995
3995
|
{
|
|
3996
3996
|
className: "searchstax-facet-value-count",
|
|
3997
3997
|
onClick: (_) => {
|
|
3998
3998
|
T(
|
|
3999
|
-
j +
|
|
3999
|
+
j + v.name,
|
|
4000
4000
|
_,
|
|
4001
4001
|
b
|
|
4002
4002
|
);
|
|
@@ -4013,21 +4013,21 @@ function Ia(i) {
|
|
|
4013
4013
|
b.value + b.parentName
|
|
4014
4014
|
))
|
|
4015
4015
|
),
|
|
4016
|
-
/* @__PURE__ */
|
|
4016
|
+
/* @__PURE__ */ u.jsx(
|
|
4017
4017
|
"div",
|
|
4018
4018
|
{
|
|
4019
4019
|
className: "searchstax-facet-show-more-container",
|
|
4020
4020
|
"v-if": "facet.hasMoreFacets",
|
|
4021
|
-
children: /* @__PURE__ */
|
|
4021
|
+
children: /* @__PURE__ */ u.jsxs(
|
|
4022
4022
|
"div",
|
|
4023
4023
|
{
|
|
4024
4024
|
className: "searchstax-facet-show-more-container",
|
|
4025
4025
|
onClick: (b) => {
|
|
4026
|
-
B(b,
|
|
4026
|
+
B(b, v);
|
|
4027
4027
|
},
|
|
4028
4028
|
children: [
|
|
4029
|
-
|
|
4030
|
-
!
|
|
4029
|
+
v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
|
|
4030
|
+
!v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-button searchstax-facet-show-button", children: "more" })
|
|
4031
4031
|
]
|
|
4032
4032
|
}
|
|
4033
4033
|
)
|
|
@@ -4036,9 +4036,9 @@ function Ia(i) {
|
|
|
4036
4036
|
] })
|
|
4037
4037
|
] })
|
|
4038
4038
|
},
|
|
4039
|
-
|
|
4039
|
+
v.name + "mobile"
|
|
4040
4040
|
)) }),
|
|
4041
|
-
/* @__PURE__ */
|
|
4041
|
+
/* @__PURE__ */ u.jsx(
|
|
4042
4042
|
"button",
|
|
4043
4043
|
{
|
|
4044
4044
|
className: "searchstax-facets-mobile-overlay-done",
|
|
@@ -4052,7 +4052,7 @@ function Ia(i) {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
)
|
|
4054
4054
|
] }) }),
|
|
4055
|
-
i.facetsTemplateMobile && /* @__PURE__ */
|
|
4055
|
+
i.facetsTemplateMobile && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateMobile(
|
|
4056
4056
|
s,
|
|
4057
4057
|
r,
|
|
4058
4058
|
d,
|
|
@@ -4088,15 +4088,15 @@ function Pa(i) {
|
|
|
4088
4088
|
), e = !0);
|
|
4089
4089
|
}
|
|
4090
4090
|
function c(l) {
|
|
4091
|
-
var
|
|
4092
|
-
(
|
|
4091
|
+
var o;
|
|
4092
|
+
(o = C.searchstax.relatedSearchesWidget) == null || o.executeSearch(l);
|
|
4093
4093
|
}
|
|
4094
|
-
return /* @__PURE__ */
|
|
4095
|
-
!i.searchRelatedSearchesTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasRelatedSearches) && /* @__PURE__ */
|
|
4094
|
+
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
4095
|
+
!i.searchRelatedSearchesTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasRelatedSearches) && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-related-searches-container", id: "searchstax-related-searches-container", children: [
|
|
4096
4096
|
" ",
|
|
4097
4097
|
"Related searches: ",
|
|
4098
|
-
/* @__PURE__ */
|
|
4099
|
-
t.relatedSearches && /* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ u.jsx("span", { id: "searchstax-related-searches" }),
|
|
4099
|
+
t.relatedSearches && /* @__PURE__ */ u.jsx("span", { className: "searchstax-related-search", children: t.relatedSearches.map((l) => /* @__PURE__ */ u.jsxs(
|
|
4100
4100
|
"span",
|
|
4101
4101
|
{
|
|
4102
4102
|
onClick: () => {
|
|
@@ -4106,13 +4106,13 @@ function Pa(i) {
|
|
|
4106
4106
|
children: [
|
|
4107
4107
|
" ",
|
|
4108
4108
|
l.related_search,
|
|
4109
|
-
!l.last && /* @__PURE__ */
|
|
4109
|
+
!l.last && /* @__PURE__ */ u.jsx("span", { children: "," })
|
|
4110
4110
|
]
|
|
4111
4111
|
},
|
|
4112
4112
|
l.related_search
|
|
4113
4113
|
)) })
|
|
4114
4114
|
] }),
|
|
4115
|
-
i.searchRelatedSearchesTemplate && /* @__PURE__ */
|
|
4115
|
+
i.searchRelatedSearchesTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchRelatedSearchesTemplate(t, c) })
|
|
4116
4116
|
] });
|
|
4117
4117
|
}
|
|
4118
4118
|
function ja(i) {
|
|
@@ -4133,36 +4133,36 @@ function ja(i) {
|
|
|
4133
4133
|
}
|
|
4134
4134
|
), e = !0);
|
|
4135
4135
|
}
|
|
4136
|
-
function c(l,
|
|
4136
|
+
function c(l, o) {
|
|
4137
4137
|
var d;
|
|
4138
|
-
(d = C.searchstax.externalPromotionsWidget) == null || d.trackClick(l,
|
|
4138
|
+
(d = C.searchstax.externalPromotionsWidget) == null || d.trackClick(l, o);
|
|
4139
4139
|
}
|
|
4140
|
-
return /* @__PURE__ */
|
|
4141
|
-
!i.searchExternalPromotionsTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasExternalPromotions) && /* @__PURE__ */
|
|
4142
|
-
/* @__PURE__ */
|
|
4143
|
-
l.url && /* @__PURE__ */
|
|
4140
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-external-promotions-layout-container" + a, children: [
|
|
4141
|
+
!i.searchExternalPromotionsTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasExternalPromotions) && /* @__PURE__ */ u.jsx(u.Fragment, { children: t.externalPromotions.map((l) => /* @__PURE__ */ u.jsxs("div", { className: "searchstax-external-promotion searchstax-search-result", children: [
|
|
4142
|
+
/* @__PURE__ */ u.jsx("div", { className: "icon-elevated" }),
|
|
4143
|
+
l.url && /* @__PURE__ */ u.jsx(
|
|
4144
4144
|
"a",
|
|
4145
4145
|
{
|
|
4146
4146
|
href: l.url,
|
|
4147
|
-
onClick: (
|
|
4148
|
-
c(l,
|
|
4147
|
+
onClick: (o) => {
|
|
4148
|
+
c(l, o);
|
|
4149
4149
|
},
|
|
4150
4150
|
className: "searchstax-result-item-link"
|
|
4151
4151
|
}
|
|
4152
4152
|
),
|
|
4153
|
-
/* @__PURE__ */
|
|
4154
|
-
l.description && /* @__PURE__ */
|
|
4153
|
+
/* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-title-container", children: /* @__PURE__ */ u.jsx("span", { className: "searchstax-search-result-title", children: l.name }) }),
|
|
4154
|
+
l.description && /* @__PURE__ */ u.jsxs("p", { className: "searchstax-search-result-description searchstax-search-result-common", children: [
|
|
4155
4155
|
" ",
|
|
4156
4156
|
l.description,
|
|
4157
4157
|
" "
|
|
4158
4158
|
] }),
|
|
4159
|
-
l.url && /* @__PURE__ */
|
|
4159
|
+
l.url && /* @__PURE__ */ u.jsxs("p", { className: "searchstax-search-result-description searchstax-search-result-common", children: [
|
|
4160
4160
|
" ",
|
|
4161
4161
|
l.url,
|
|
4162
4162
|
" "
|
|
4163
4163
|
] })
|
|
4164
4164
|
] }, l.id)) }),
|
|
4165
|
-
i.searchExternalPromotionsTemplate && /* @__PURE__ */
|
|
4165
|
+
i.searchExternalPromotionsTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchExternalPromotionsTemplate(t, c) })
|
|
4166
4166
|
] }) });
|
|
4167
4167
|
}
|
|
4168
4168
|
export {
|