@searchstax-inc/searchstudio-ux-react 0.3.5 → 0.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -70
- package/dist/@searchstax-inc/components/SearchstaxResultWidget.d.ts +1 -1
- package/dist/@searchstax-inc/searchstudio-ux-react.cjs +44 -45
- package/dist/@searchstax-inc/searchstudio-ux-react.iife.js +43 -44
- package/dist/@searchstax-inc/searchstudio-ux-react.mjs +671 -589
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import ct, { useState as q, useEffect as ee, useRef as Ot, createRef as tt } from "react";
|
|
2
|
+
var je = { exports: {} }, le = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,21 +9,21 @@ var Pe = { exports: {} }, le = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
12
|
+
var at;
|
|
13
|
+
function At() {
|
|
14
|
+
if (at)
|
|
15
15
|
return le;
|
|
16
|
-
|
|
17
|
-
var i =
|
|
16
|
+
at = 1;
|
|
17
|
+
var i = ct, 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
18
|
function c(l, o, d) {
|
|
19
|
-
var
|
|
20
|
-
d !== void 0 && (
|
|
21
|
-
for (
|
|
22
|
-
s.call(o,
|
|
19
|
+
var f, g = {}, m = null, S = null;
|
|
20
|
+
d !== void 0 && (m = "" + d), o.key !== void 0 && (m = "" + o.key), o.ref !== void 0 && (S = o.ref);
|
|
21
|
+
for (f in o)
|
|
22
|
+
s.call(o, f) && !r.hasOwnProperty(f) && (g[f] = o[f]);
|
|
23
23
|
if (l && l.defaultProps)
|
|
24
|
-
for (
|
|
25
|
-
|
|
26
|
-
return { $$typeof: e, type: l, key:
|
|
24
|
+
for (f in o = l.defaultProps, o)
|
|
25
|
+
g[f] === void 0 && (g[f] = o[f]);
|
|
26
|
+
return { $$typeof: e, type: l, key: m, ref: S, props: g, _owner: a.current };
|
|
27
27
|
}
|
|
28
28
|
return le.Fragment = t, le.jsx = c, le.jsxs = c, le;
|
|
29
29
|
}
|
|
@@ -37,14 +37,14 @@ var oe = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var st;
|
|
41
41
|
function Mt() {
|
|
42
|
-
return
|
|
43
|
-
var i =
|
|
44
|
-
function
|
|
42
|
+
return st || (st = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var i = ct, 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"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), O = Symbol.iterator, k = "@@iterator";
|
|
44
|
+
function R(n) {
|
|
45
45
|
if (n === null || typeof n != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var p = O && n[O] || n[
|
|
47
|
+
var p = O && n[O] || n[k];
|
|
48
48
|
return typeof p == "function" ? p : null;
|
|
49
49
|
}
|
|
50
50
|
var E = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -59,16 +59,16 @@ function Mt() {
|
|
|
59
59
|
{
|
|
60
60
|
var L = E.ReactDebugCurrentFrame, F = L.getStackAddendum();
|
|
61
61
|
F !== "" && (p += "%s", y = y.concat([F]));
|
|
62
|
-
var
|
|
62
|
+
var A = y.map(function(I) {
|
|
63
63
|
return String(I);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
A.unshift("Warning: " + p), Function.prototype.apply.call(console[n], console, A);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var B = !1,
|
|
68
|
+
var B = !1, M = !1, K = !1, v = !1, x = !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 ||
|
|
71
|
+
return !!(typeof n == "string" || typeof n == "function" || n === s || n === r || x || n === a || n === d || n === f || v || n === S || B || M || K || typeof n == "object" && n !== null && (n.$$typeof === m || n.$$typeof === g || 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.
|
|
@@ -81,10 +81,10 @@ function Mt() {
|
|
|
81
81
|
var F = p.displayName || p.name || "";
|
|
82
82
|
return F !== "" ? y + "(" + F + ")" : y;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function me(n) {
|
|
85
85
|
return n.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Q(n) {
|
|
88
88
|
if (n == null)
|
|
89
89
|
return null;
|
|
90
90
|
if (typeof n.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
@@ -102,26 +102,26 @@ function Mt() {
|
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case d:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case f:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof n == "object")
|
|
109
109
|
switch (n.$$typeof) {
|
|
110
110
|
case l:
|
|
111
111
|
var p = n;
|
|
112
|
-
return
|
|
112
|
+
return me(p) + ".Consumer";
|
|
113
113
|
case c:
|
|
114
114
|
var y = n;
|
|
115
|
-
return
|
|
115
|
+
return me(y._context) + ".Provider";
|
|
116
116
|
case o:
|
|
117
117
|
return G(n, n.render, "ForwardRef");
|
|
118
|
-
case
|
|
118
|
+
case g:
|
|
119
119
|
var L = n.displayName || null;
|
|
120
|
-
return L !== null ? L :
|
|
121
|
-
case
|
|
122
|
-
var F = n,
|
|
120
|
+
return L !== null ? L : Q(n.type) || "Memo";
|
|
121
|
+
case m: {
|
|
122
|
+
var F = n, A = F._payload, I = F._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return Q(I(A));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,18 +129,18 @@ function Mt() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var Y = Object.assign, ne = 0,
|
|
133
|
-
function
|
|
132
|
+
var Y = Object.assign, ne = 0, Oe, Ae, Me, De, Ne, $e, qe;
|
|
133
|
+
function _e() {
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
135
|
+
_e.__reactDisabledLog = !0;
|
|
136
|
+
function lt() {
|
|
137
137
|
{
|
|
138
138
|
if (ne === 0) {
|
|
139
|
-
|
|
139
|
+
Oe = console.log, Ae = console.info, Me = console.warn, De = console.error, Ne = console.group, $e = console.groupCollapsed, qe = console.groupEnd;
|
|
140
140
|
var n = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: _e,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
@@ -156,7 +156,7 @@ function Mt() {
|
|
|
156
156
|
ne++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function ot() {
|
|
160
160
|
{
|
|
161
161
|
if (ne--, ne === 0) {
|
|
162
162
|
var n = {
|
|
@@ -166,64 +166,64 @@ function Mt() {
|
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
168
|
log: Y({}, n, {
|
|
169
|
-
value:
|
|
169
|
+
value: Oe
|
|
170
170
|
}),
|
|
171
171
|
info: Y({}, n, {
|
|
172
|
-
value:
|
|
172
|
+
value: Ae
|
|
173
173
|
}),
|
|
174
174
|
warn: Y({}, n, {
|
|
175
175
|
value: Me
|
|
176
176
|
}),
|
|
177
177
|
error: Y({}, n, {
|
|
178
|
-
value:
|
|
178
|
+
value: De
|
|
179
179
|
}),
|
|
180
180
|
group: Y({}, n, {
|
|
181
|
-
value:
|
|
181
|
+
value: Ne
|
|
182
182
|
}),
|
|
183
183
|
groupCollapsed: Y({}, n, {
|
|
184
|
-
value:
|
|
184
|
+
value: $e
|
|
185
185
|
}),
|
|
186
186
|
groupEnd: Y({}, n, {
|
|
187
|
-
value:
|
|
187
|
+
value: qe
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
ne < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
194
|
+
var Ce = E.ReactCurrentDispatcher, Se;
|
|
195
|
+
function fe(n, p, y) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (Se === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
200
|
} catch (F) {
|
|
201
201
|
var L = F.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
-
|
|
202
|
+
Se = L && L[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + Se + n;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var Le = !1, ve;
|
|
209
209
|
{
|
|
210
|
-
var
|
|
211
|
-
|
|
210
|
+
var ht = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
ve = new ht();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!n ||
|
|
213
|
+
function He(n, p) {
|
|
214
|
+
if (!n || Le)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var y =
|
|
217
|
+
var y = ve.get(n);
|
|
218
218
|
if (y !== void 0)
|
|
219
219
|
return y;
|
|
220
220
|
}
|
|
221
221
|
var L;
|
|
222
|
-
|
|
222
|
+
Le = !0;
|
|
223
223
|
var F = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var A;
|
|
226
|
+
A = Ce.current, Ce.current = null, lt();
|
|
227
227
|
try {
|
|
228
228
|
if (p) {
|
|
229
229
|
var I = function() {
|
|
@@ -269,67 +269,67 @@ function Mt() {
|
|
|
269
269
|
if ($--, H--, H < 0 || w[$] !== V[H]) {
|
|
270
270
|
var z = `
|
|
271
271
|
` + w[$].replace(" at new ", " at ");
|
|
272
|
-
return n.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", n.displayName)), typeof n == "function" &&
|
|
272
|
+
return n.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", n.displayName)), typeof n == "function" && ve.set(n, z), z;
|
|
273
273
|
}
|
|
274
274
|
while ($ >= 1 && H >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
Le = !1, Ce.current = A, ot(), Error.prepareStackTrace = F;
|
|
280
280
|
}
|
|
281
|
-
var ae = n ? n.displayName || n.name : "",
|
|
282
|
-
return typeof n == "function" &&
|
|
281
|
+
var ae = n ? n.displayName || n.name : "", et = ae ? fe(ae) : "";
|
|
282
|
+
return typeof n == "function" && ve.set(n, et), et;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function ut(n, p, y) {
|
|
285
|
+
return He(n, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function dt(n) {
|
|
288
288
|
var p = n.prototype;
|
|
289
289
|
return !!(p && p.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function ye(n, p, y) {
|
|
292
292
|
if (n == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof n == "function")
|
|
295
|
-
return
|
|
295
|
+
return He(n, dt(n));
|
|
296
296
|
if (typeof n == "string")
|
|
297
|
-
return
|
|
297
|
+
return fe(n);
|
|
298
298
|
switch (n) {
|
|
299
299
|
case d:
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
300
|
+
return fe("Suspense");
|
|
301
|
+
case f:
|
|
302
|
+
return fe("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof n == "object")
|
|
305
305
|
switch (n.$$typeof) {
|
|
306
306
|
case o:
|
|
307
|
-
return
|
|
308
|
-
case
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
var L = n, F = L._payload,
|
|
307
|
+
return ut(n.render);
|
|
308
|
+
case g:
|
|
309
|
+
return ye(n.type, p, y);
|
|
310
|
+
case m: {
|
|
311
|
+
var L = n, F = L._payload, A = L._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return ye(A(F), p, y);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var xe = Object.prototype.hasOwnProperty, Be = {}, We = E.ReactDebugCurrentFrame;
|
|
321
|
+
function be(n) {
|
|
322
322
|
if (n) {
|
|
323
|
-
var p = n._owner, y =
|
|
323
|
+
var p = n._owner, y = ye(n.type, n._source, p ? p.type : null);
|
|
324
324
|
We.setExtraStackFrame(y);
|
|
325
325
|
} else
|
|
326
326
|
We.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function gt(n, p, y, L, F) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
330
|
+
var A = Function.call.bind(xe);
|
|
331
331
|
for (var I in n)
|
|
332
|
-
if (
|
|
332
|
+
if (A(n, I)) {
|
|
333
333
|
var w = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof n[I] != "function") {
|
|
@@ -340,67 +340,67 @@ function Mt() {
|
|
|
340
340
|
} catch ($) {
|
|
341
341
|
w = $;
|
|
342
342
|
}
|
|
343
|
-
w && !(w instanceof Error) && (
|
|
343
|
+
w && !(w instanceof Error) && (be(F), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", y, I, typeof w), be(null)), w instanceof Error && !(w.message in Be) && (Be[w.message] = !0, be(F), T("Failed %s type: %s", y, w.message), be(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
return
|
|
347
|
+
var pt = Array.isArray;
|
|
348
|
+
function Te(n) {
|
|
349
|
+
return pt(n);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function mt(n) {
|
|
352
352
|
{
|
|
353
353
|
var p = typeof Symbol == "function" && Symbol.toStringTag, y = p && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
354
354
|
return y;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function ft(n) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return Ve(n), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Ve(n) {
|
|
365
365
|
return "" + n;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
367
|
+
function Ue(n) {
|
|
368
|
+
if (ft(n))
|
|
369
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mt(n)), Ve(n);
|
|
370
370
|
}
|
|
371
|
-
var ce = E.ReactCurrentOwner,
|
|
371
|
+
var ce = E.ReactCurrentOwner, vt = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
376
|
+
}, Ke, Qe, ke;
|
|
377
|
+
ke = {};
|
|
378
|
+
function yt(n) {
|
|
379
|
+
if (xe.call(n, "ref")) {
|
|
380
380
|
var p = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
381
381
|
if (p && p.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
return n.ref !== void 0;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
386
|
+
function xt(n) {
|
|
387
|
+
if (xe.call(n, "key")) {
|
|
388
388
|
var p = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
389
389
|
if (p && p.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return n.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function bt(n, p) {
|
|
395
395
|
if (typeof n.ref == "string" && ce.current && p && ce.current.stateNode !== p) {
|
|
396
|
-
var y =
|
|
397
|
-
|
|
396
|
+
var y = Q(ce.current.type);
|
|
397
|
+
ke[y] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Q(ce.current.type), n.ref), ke[y] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Ct(n, p) {
|
|
401
401
|
{
|
|
402
402
|
var y = function() {
|
|
403
|
-
|
|
403
|
+
Ke || (Ke = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
404
404
|
};
|
|
405
405
|
y.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
406
406
|
get: y,
|
|
@@ -408,7 +408,7 @@ function Mt() {
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function St(n, p) {
|
|
412
412
|
{
|
|
413
413
|
var y = function() {
|
|
414
414
|
Qe || (Qe = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
@@ -419,7 +419,7 @@ function Mt() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var
|
|
422
|
+
var Lt = function(n, p, y, L, F, A, I) {
|
|
423
423
|
var w = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: e,
|
|
@@ -429,7 +429,7 @@ function Mt() {
|
|
|
429
429
|
ref: y,
|
|
430
430
|
props: I,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: A
|
|
433
433
|
};
|
|
434
434
|
return w._store = {}, Object.defineProperty(w._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
@@ -448,41 +448,41 @@ function Mt() {
|
|
|
448
448
|
value: F
|
|
449
449
|
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function Tt(n, p, y, L, F) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
y !== void 0 && (
|
|
455
|
-
for (
|
|
456
|
-
|
|
453
|
+
var A, I = {}, w = null, V = null;
|
|
454
|
+
y !== void 0 && (Ue(y), w = "" + y), xt(p) && (Ue(p.key), w = "" + p.key), yt(p) && (V = p.ref, bt(p, F));
|
|
455
|
+
for (A in p)
|
|
456
|
+
xe.call(p, A) && !vt.hasOwnProperty(A) && (I[A] = p[A]);
|
|
457
457
|
if (n && n.defaultProps) {
|
|
458
458
|
var $ = n.defaultProps;
|
|
459
|
-
for (
|
|
460
|
-
I[
|
|
459
|
+
for (A in $)
|
|
460
|
+
I[A] === void 0 && (I[A] = $[A]);
|
|
461
461
|
}
|
|
462
462
|
if (w || V) {
|
|
463
463
|
var H = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
464
|
-
w &&
|
|
464
|
+
w && Ct(I, H), V && St(I, H);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return Lt(n, w, V, F, L, ce.current, I);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var
|
|
469
|
+
var Re = E.ReactCurrentOwner, ze = E.ReactDebugCurrentFrame;
|
|
470
470
|
function te(n) {
|
|
471
471
|
if (n) {
|
|
472
|
-
var p = n._owner, y =
|
|
473
|
-
|
|
472
|
+
var p = n._owner, y = ye(n.type, n._source, p ? p.type : null);
|
|
473
|
+
ze.setExtraStackFrame(y);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
ze.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
var we;
|
|
478
|
+
we = !1;
|
|
479
|
+
function Ee(n) {
|
|
480
480
|
return typeof n == "object" && n !== null && n.$$typeof === e;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Je() {
|
|
483
483
|
{
|
|
484
|
-
if (
|
|
485
|
-
var n =
|
|
484
|
+
if (Re.current) {
|
|
485
|
+
var n = Q(Re.current.type);
|
|
486
486
|
if (n)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -491,7 +491,7 @@ Check the render method of \`` + n + "`.";
|
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function kt(n) {
|
|
495
495
|
{
|
|
496
496
|
if (n !== void 0) {
|
|
497
497
|
var p = n.fileName.replace(/^.*[\\\/]/, ""), y = n.lineNumber;
|
|
@@ -502,10 +502,10 @@ Check your code at ` + p + ":" + y + ".";
|
|
|
502
502
|
return "";
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
var
|
|
506
|
-
function
|
|
505
|
+
var Ye = {};
|
|
506
|
+
function Rt(n) {
|
|
507
507
|
{
|
|
508
|
-
var p =
|
|
508
|
+
var p = Je();
|
|
509
509
|
if (!p) {
|
|
510
510
|
var y = typeof n == "string" ? n : n.displayName || n.name;
|
|
511
511
|
y && (p = `
|
|
@@ -515,39 +515,39 @@ Check the top-level render call using <` + y + ">.");
|
|
|
515
515
|
return p;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Ge(n, p) {
|
|
519
519
|
{
|
|
520
520
|
if (!n._store || n._store.validated || n.key != null)
|
|
521
521
|
return;
|
|
522
522
|
n._store.validated = !0;
|
|
523
|
-
var y =
|
|
524
|
-
if (
|
|
523
|
+
var y = Rt(p);
|
|
524
|
+
if (Ye[y])
|
|
525
525
|
return;
|
|
526
|
-
|
|
526
|
+
Ye[y] = !0;
|
|
527
527
|
var L = "";
|
|
528
|
-
n && n._owner && n._owner !==
|
|
528
|
+
n && n._owner && n._owner !== Re.current && (L = " It was passed a child from " + Q(n._owner.type) + "."), te(n), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, L), te(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function Xe(n, p) {
|
|
532
532
|
{
|
|
533
533
|
if (typeof n != "object")
|
|
534
534
|
return;
|
|
535
|
-
if (
|
|
535
|
+
if (Te(n))
|
|
536
536
|
for (var y = 0; y < n.length; y++) {
|
|
537
537
|
var L = n[y];
|
|
538
|
-
|
|
538
|
+
Ee(L) && Ge(L, p);
|
|
539
539
|
}
|
|
540
|
-
else if (
|
|
540
|
+
else if (Ee(n))
|
|
541
541
|
n._store && (n._store.validated = !0);
|
|
542
542
|
else if (n) {
|
|
543
|
-
var F =
|
|
543
|
+
var F = R(n);
|
|
544
544
|
if (typeof F == "function" && F !== n.entries)
|
|
545
|
-
for (var
|
|
546
|
-
|
|
545
|
+
for (var A = F.call(n), I; !(I = A.next()).done; )
|
|
546
|
+
Ee(I.value) && Ge(I.value, p);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function wt(n) {
|
|
551
551
|
{
|
|
552
552
|
var p = n.type;
|
|
553
553
|
if (p == null || typeof p == "string")
|
|
@@ -557,22 +557,22 @@ Check the top-level render call using <` + y + ">.");
|
|
|
557
557
|
y = p.propTypes;
|
|
558
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
|
-
p.$$typeof ===
|
|
560
|
+
p.$$typeof === g))
|
|
561
561
|
y = p.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
564
|
if (y) {
|
|
565
|
-
var L =
|
|
566
|
-
|
|
567
|
-
} else if (p.PropTypes !== void 0 && !
|
|
568
|
-
|
|
569
|
-
var F =
|
|
565
|
+
var L = Q(p);
|
|
566
|
+
gt(y, n.props, "prop", L, n);
|
|
567
|
+
} else if (p.PropTypes !== void 0 && !we) {
|
|
568
|
+
we = !0;
|
|
569
|
+
var F = Q(p);
|
|
570
570
|
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown");
|
|
571
571
|
}
|
|
572
572
|
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Et(n) {
|
|
576
576
|
{
|
|
577
577
|
for (var p = Object.keys(n.props), y = 0; y < p.length; y++) {
|
|
578
578
|
var L = p[y];
|
|
@@ -584,49 +584,49 @@ Check the top-level render call using <` + y + ">.");
|
|
|
584
584
|
n.ref !== null && (te(n), T("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Ze(n, p, y, L, F, A) {
|
|
588
588
|
{
|
|
589
589
|
var I = _(n);
|
|
590
590
|
if (!I) {
|
|
591
591
|
var w = "";
|
|
592
592
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
|
-
var V =
|
|
594
|
-
V ? w += V : w +=
|
|
593
|
+
var V = kt(F);
|
|
594
|
+
V ? w += V : w += Je();
|
|
595
595
|
var $;
|
|
596
|
-
n === null ? $ = "null" :
|
|
596
|
+
n === null ? $ = "null" : Te(n) ? $ = "array" : n !== void 0 && n.$$typeof === e ? ($ = "<" + (Q(n.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof n, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, w);
|
|
597
597
|
}
|
|
598
|
-
var H =
|
|
598
|
+
var H = Tt(n, p, y, F, A);
|
|
599
599
|
if (H == null)
|
|
600
600
|
return H;
|
|
601
601
|
if (I) {
|
|
602
602
|
var z = p.children;
|
|
603
603
|
if (z !== void 0)
|
|
604
604
|
if (L)
|
|
605
|
-
if (
|
|
605
|
+
if (Te(z)) {
|
|
606
606
|
for (var ae = 0; ae < z.length; ae++)
|
|
607
|
-
|
|
607
|
+
Xe(z[ae], n);
|
|
608
608
|
Object.freeze && Object.freeze(z);
|
|
609
609
|
} else
|
|
610
610
|
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
611
611
|
else
|
|
612
|
-
|
|
612
|
+
Xe(z, n);
|
|
613
613
|
}
|
|
614
|
-
return n === s ?
|
|
614
|
+
return n === s ? Et(H) : wt(H), H;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
function Et(n, p, y) {
|
|
618
|
-
return Xe(n, p, y, !0);
|
|
619
|
-
}
|
|
620
617
|
function It(n, p, y) {
|
|
621
|
-
return
|
|
618
|
+
return Ze(n, p, y, !0);
|
|
622
619
|
}
|
|
623
|
-
|
|
624
|
-
|
|
620
|
+
function Pt(n, p, y) {
|
|
621
|
+
return Ze(n, p, y, !1);
|
|
622
|
+
}
|
|
623
|
+
var jt = Pt, Ft = It;
|
|
624
|
+
oe.Fragment = s, oe.jsx = jt, oe.jsxs = Ft;
|
|
625
625
|
}()), oe;
|
|
626
626
|
}
|
|
627
|
-
process.env.NODE_ENV === "production" ?
|
|
628
|
-
var u =
|
|
629
|
-
class
|
|
627
|
+
process.env.NODE_ENV === "production" ? je.exports = At() : je.exports = Mt();
|
|
628
|
+
var u = je.exports, Dt = Object.defineProperty, Nt = (i, e, t) => e in i ? Dt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, h = (i, e, t) => (Nt(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
|
+
class $t {
|
|
630
630
|
constructor(e) {
|
|
631
631
|
h(this, "dataLayer"), this.dataLayer = e;
|
|
632
632
|
}
|
|
@@ -805,7 +805,7 @@ class D {
|
|
|
805
805
|
this.observers.forEach((e) => e(this.value));
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
class
|
|
808
|
+
class Ie {
|
|
809
809
|
static getOrSetCookie(e, t) {
|
|
810
810
|
let s = this.getCookie(e);
|
|
811
811
|
return s == null && (s = t ?? this.makeid(25), this.setCookie(e, s, {
|
|
@@ -852,7 +852,7 @@ class Z {
|
|
|
852
852
|
return e ? e.replace(s, "") : "";
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
|
-
class
|
|
855
|
+
class qt {
|
|
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: "",
|
|
@@ -861,12 +861,12 @@ class $t {
|
|
|
861
861
|
order: "",
|
|
862
862
|
facets: [],
|
|
863
863
|
additionalProps: []
|
|
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
|
|
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 $t(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
|
}
|
|
868
868
|
cookieHandlingCallback(e) {
|
|
869
|
-
this.cookiesDisabled ? (this.sessionIdValue = null,
|
|
869
|
+
this.cookiesDisabled ? (this.sessionIdValue = null, Ie.deleteCookie(this.sessionId), Ie.deleteCookie("ms_visitorid")) : this.sessionIdValue = Ie.getOrSetCookie(this.sessionId, e);
|
|
870
870
|
}
|
|
871
871
|
setIsInfiniteScroll(e) {
|
|
872
872
|
this.isInfiniteScroll = e;
|
|
@@ -979,7 +979,7 @@ class $t {
|
|
|
979
979
|
return this.$searchResultsMetadata.getValue() ? JSON.parse(JSON.stringify(this.$searchResultsMetadata.getValue())) : null;
|
|
980
980
|
}
|
|
981
981
|
get currentPage() {
|
|
982
|
-
return this.currentPageValue;
|
|
982
|
+
return this.$searchObject.getValue().page ?? this.currentPageValue;
|
|
983
983
|
}
|
|
984
984
|
get isAnswerWidgetCreated() {
|
|
985
985
|
return this.isAnswerWidgetCreatedValue;
|
|
@@ -1035,7 +1035,7 @@ class $t {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
class he {
|
|
1037
1037
|
static combineResultsWithMetadata(e) {
|
|
1038
|
-
const t = [], s = parseInt(e.response.start + "")
|
|
1038
|
+
const t = [], s = parseInt(e.response.start + "");
|
|
1039
1039
|
return parseInt(e.responseHeader.params.rows), e.response.docs.forEach((a, r) => {
|
|
1040
1040
|
const c = {
|
|
1041
1041
|
custom: null,
|
|
@@ -1077,17 +1077,17 @@ class he {
|
|
|
1077
1077
|
let o = "", d = {
|
|
1078
1078
|
selectedSortOption: "",
|
|
1079
1079
|
options: []
|
|
1080
|
-
},
|
|
1081
|
-
(
|
|
1080
|
+
}, f = (t = e.metadata.results.find(
|
|
1081
|
+
(g) => g.result_card === "date"
|
|
1082
1082
|
)) == null ? void 0 : t.name;
|
|
1083
1083
|
if (d.options = [
|
|
1084
1084
|
{ key: "", value: "Relevance" },
|
|
1085
|
-
{ key:
|
|
1085
|
+
{ key: f + " desc", value: "Most Recent" }
|
|
1086
1086
|
], (s = e.metadata.sorts) != null && s.length) {
|
|
1087
|
-
const
|
|
1088
|
-
d.options = [{ key: "", value: "Relevance" }, ...
|
|
1087
|
+
const g = e.metadata.sorts.map((m) => ({ value: m.label, key: m.name + " " + m.order }));
|
|
1088
|
+
d.options = [{ key: "", value: "Relevance" }, ...g];
|
|
1089
1089
|
}
|
|
1090
|
-
return o = ((l = (c = (r = (a = e == null ? void 0 : e.spellcheck) == null ? void 0 : a.suggestions) == null ? void 0 : r[
|
|
1090
|
+
return o = ((l = (c = (r = (a = e == null ? void 0 : e.spellcheck) == null ? void 0 : a.suggestions) == null ? void 0 : r[1]) == 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 + ""),
|
|
@@ -1152,9 +1152,9 @@ class he {
|
|
|
1152
1152
|
return r === void 0 ? null : typeof r == "string" ? r : Array.isArray(r) ? r.join(", ") : null;
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
|
-
class
|
|
1155
|
+
class rt {
|
|
1156
1156
|
constructor(e) {
|
|
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
|
|
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 _t(this.routeName);
|
|
1158
1158
|
}
|
|
1159
1159
|
updateUrl(e) {
|
|
1160
1160
|
const t = this.searchObjectToUrl(e);
|
|
@@ -1226,7 +1226,7 @@ class st {
|
|
|
1226
1226
|
};
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
class
|
|
1229
|
+
class _t {
|
|
1230
1230
|
constructor(e) {
|
|
1231
1231
|
h(this, "routeName", ""), h(this, "stringify", (t, s) => {
|
|
1232
1232
|
const a = this.filterOutIgnoredKeys(t, s.ignoredKeys);
|
|
@@ -1262,7 +1262,7 @@ const se = {
|
|
|
1262
1262
|
notQuestion: "I_AM_NOT_A_QUESTION",
|
|
1263
1263
|
close: "CLOSE"
|
|
1264
1264
|
};
|
|
1265
|
-
class
|
|
1265
|
+
class Ht {
|
|
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}`;
|
|
@@ -1327,26 +1327,26 @@ 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: (m, S) => m.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
1335
|
let l = e.itemsPerPage, o = e.itemsPerPage * (e.page - 1), d = e.order ? `&sort=${e.order}` : "";
|
|
1336
|
-
const
|
|
1337
|
-
e.facets.filter((
|
|
1336
|
+
const f = this.url + "?q=" + encodeURIComponent(e.query.trim()) + "&start=" + o + this.toQueryString(e.additionalProps ?? []) + this.generateFacetQuery(
|
|
1337
|
+
e.facets.filter((m) => m.type === "or" || m.type === "showUnavailable"),
|
|
1338
1338
|
!0
|
|
1339
1339
|
) + this.generateFacetQuery(
|
|
1340
|
-
e.facets.filter((
|
|
1340
|
+
e.facets.filter((m) => m.type === "and" || m.type === "tabs"),
|
|
1341
1341
|
!1
|
|
1342
|
-
) + d + `&spellcheck.correct=${this.dataLayer.autoCorrect && !a}&rows=${l}&language=` + this.dataLayer.language + c,
|
|
1342
|
+
) + d + `&spellcheck.correct=${this.dataLayer.autoCorrect && !a}&rows=${l}&language=` + this.dataLayer.language + c, g = {
|
|
1343
1343
|
method: "GET",
|
|
1344
1344
|
headers: this.authHeader,
|
|
1345
1345
|
credentials: "same-origin",
|
|
1346
1346
|
signal: this.signalSearch
|
|
1347
1347
|
};
|
|
1348
|
-
s && delete
|
|
1349
|
-
this.dataLayer.setLoading(!1), t(
|
|
1348
|
+
s && delete g.signal, fetch(f, g).then((m) => m.json()).then((m) => {
|
|
1349
|
+
this.dataLayer.setLoading(!1), t(m);
|
|
1350
1350
|
}).catch(() => {
|
|
1351
1351
|
this.dataLayer.setLoading(!1);
|
|
1352
1352
|
});
|
|
@@ -1466,33 +1466,33 @@ h(ue, "msq", () => typeof window < "u" && window != null && window._msq ? window
|
|
|
1466
1466
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
1467
1467
|
* http://github.com/janl/mustache.js
|
|
1468
1468
|
*/
|
|
1469
|
-
var
|
|
1470
|
-
return
|
|
1469
|
+
var Bt = Object.prototype.toString, ie = Array.isArray || function(i) {
|
|
1470
|
+
return Bt.call(i) === "[object Array]";
|
|
1471
1471
|
};
|
|
1472
|
-
function
|
|
1472
|
+
function Fe(i) {
|
|
1473
1473
|
return typeof i == "function";
|
|
1474
1474
|
}
|
|
1475
1475
|
function Wt(i) {
|
|
1476
1476
|
return ie(i) ? "array" : typeof i;
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function Pe(i) {
|
|
1479
1479
|
return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function it(i, e) {
|
|
1482
1482
|
return i != null && typeof i == "object" && e in i;
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function Vt(i, e) {
|
|
1485
1485
|
return i != null && typeof i != "object" && i.hasOwnProperty && i.hasOwnProperty(e);
|
|
1486
1486
|
}
|
|
1487
|
-
var
|
|
1488
|
-
function
|
|
1489
|
-
return
|
|
1487
|
+
var Ut = RegExp.prototype.test;
|
|
1488
|
+
function Kt(i, e) {
|
|
1489
|
+
return Ut.call(i, e);
|
|
1490
1490
|
}
|
|
1491
1491
|
var Qt = /\S/;
|
|
1492
|
-
function
|
|
1493
|
-
return !
|
|
1492
|
+
function zt(i) {
|
|
1493
|
+
return !Kt(Qt, i);
|
|
1494
1494
|
}
|
|
1495
|
-
var
|
|
1495
|
+
var Jt = {
|
|
1496
1496
|
"&": "&",
|
|
1497
1497
|
"<": "<",
|
|
1498
1498
|
">": ">",
|
|
@@ -1502,17 +1502,17 @@ var zt = {
|
|
|
1502
1502
|
"`": "`",
|
|
1503
1503
|
"=": "="
|
|
1504
1504
|
};
|
|
1505
|
-
function
|
|
1505
|
+
function Yt(i) {
|
|
1506
1506
|
return String(i).replace(/[&<>"'`=\/]/g, function(e) {
|
|
1507
|
-
return
|
|
1507
|
+
return Jt[e];
|
|
1508
1508
|
});
|
|
1509
1509
|
}
|
|
1510
|
-
var
|
|
1511
|
-
function
|
|
1510
|
+
var Gt = /\s*/, Xt = /\s+/, nt = /\s*=/, Zt = /\s*\}/, ea = /#|\^|\/|>|\{|&|=|!/;
|
|
1511
|
+
function ta(i, e) {
|
|
1512
1512
|
if (!i)
|
|
1513
1513
|
return [];
|
|
1514
1514
|
var t = !1, s = [], a = [], r = [], c = !1, l = !1, o = "", d = 0;
|
|
1515
|
-
function
|
|
1515
|
+
function f() {
|
|
1516
1516
|
if (c && !l)
|
|
1517
1517
|
for (; r.length; )
|
|
1518
1518
|
delete a[r.pop()];
|
|
@@ -1520,42 +1520,42 @@ function ea(i, e) {
|
|
|
1520
1520
|
r = [];
|
|
1521
1521
|
c = !1, l = !1;
|
|
1522
1522
|
}
|
|
1523
|
-
var
|
|
1524
|
-
function O(
|
|
1525
|
-
if (typeof
|
|
1526
|
-
throw new Error("Invalid tags: " +
|
|
1527
|
-
|
|
1523
|
+
var g, m, S;
|
|
1524
|
+
function O(x) {
|
|
1525
|
+
if (typeof x == "string" && (x = x.split(Xt, 2)), !ie(x) || x.length !== 2)
|
|
1526
|
+
throw new Error("Invalid tags: " + x);
|
|
1527
|
+
g = new RegExp(Pe(x[0]) + "\\s*"), m = new RegExp("\\s*" + Pe(x[1])), S = new RegExp("\\s*" + Pe("}" + x[1]));
|
|
1528
1528
|
}
|
|
1529
1529
|
O(e || P.tags);
|
|
1530
|
-
for (var
|
|
1531
|
-
if (
|
|
1532
|
-
for (var
|
|
1533
|
-
N = T.charAt(
|
|
1534
|
-
` && (
|
|
1535
|
-
if (!
|
|
1530
|
+
for (var k = new pe(i), R, E, T, N, B, M; !k.eos(); ) {
|
|
1531
|
+
if (R = k.pos, T = k.scanUntil(g), T)
|
|
1532
|
+
for (var K = 0, v = T.length; K < v; ++K)
|
|
1533
|
+
N = T.charAt(K), zt(N) ? (r.push(a.length), o += N) : (l = !0, t = !0, o += " "), a.push(["text", N, R, R + 1]), R += 1, N === `
|
|
1534
|
+
` && (f(), o = "", d = 0, t = !1);
|
|
1535
|
+
if (!k.scan(g))
|
|
1536
1536
|
break;
|
|
1537
|
-
if (c = !0, E =
|
|
1538
|
-
throw new Error("Unclosed tag at " +
|
|
1539
|
-
if (E == ">" ? B = [E, T,
|
|
1537
|
+
if (c = !0, E = k.scan(ea) || "name", k.scan(Gt), E === "=" ? (T = k.scanUntil(nt), k.scan(nt), k.scanUntil(m)) : E === "{" ? (T = k.scanUntil(S), k.scan(Zt), k.scanUntil(m), E = "&") : T = k.scanUntil(m), !k.scan(m))
|
|
1538
|
+
throw new Error("Unclosed tag at " + k.pos);
|
|
1539
|
+
if (E == ">" ? B = [E, T, R, k.pos, o, d, t] : B = [E, T, R, k.pos], d++, a.push(B), E === "#" || E === "^")
|
|
1540
1540
|
s.push(B);
|
|
1541
1541
|
else if (E === "/") {
|
|
1542
|
-
if (
|
|
1543
|
-
throw new Error('Unopened section "' + T + '" at ' +
|
|
1544
|
-
if (
|
|
1545
|
-
throw new Error('Unclosed section "' +
|
|
1542
|
+
if (M = s.pop(), !M)
|
|
1543
|
+
throw new Error('Unopened section "' + T + '" at ' + R);
|
|
1544
|
+
if (M[1] !== T)
|
|
1545
|
+
throw new Error('Unclosed section "' + M[1] + '" at ' + R);
|
|
1546
1546
|
} else
|
|
1547
1547
|
E === "name" || E === "{" || E === "&" ? l = !0 : E === "=" && O(T);
|
|
1548
1548
|
}
|
|
1549
|
-
if (
|
|
1550
|
-
throw new Error('Unclosed section "' +
|
|
1551
|
-
return aa(
|
|
1549
|
+
if (f(), M = s.pop(), M)
|
|
1550
|
+
throw new Error('Unclosed section "' + M[1] + '" at ' + k.pos);
|
|
1551
|
+
return sa(aa(a));
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1553
|
+
function aa(i) {
|
|
1554
1554
|
for (var e = [], t, s, a = 0, r = i.length; a < r; ++a)
|
|
1555
1555
|
t = i[a], t && (t[0] === "text" && s && s[0] === "text" ? (s[1] += t[1], s[3] = t[3]) : (e.push(t), s = t));
|
|
1556
1556
|
return e;
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function sa(i) {
|
|
1559
1559
|
for (var e = [], t = e, s = [], a, r, c = 0, l = i.length; c < l; ++c)
|
|
1560
1560
|
switch (a = i[c], a[0]) {
|
|
1561
1561
|
case "#":
|
|
@@ -1570,20 +1570,20 @@ function aa(i) {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
return e;
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1573
|
+
function pe(i) {
|
|
1574
1574
|
this.string = i, this.tail = i, this.pos = 0;
|
|
1575
1575
|
}
|
|
1576
|
-
|
|
1576
|
+
pe.prototype.eos = function() {
|
|
1577
1577
|
return this.tail === "";
|
|
1578
1578
|
};
|
|
1579
|
-
|
|
1579
|
+
pe.prototype.scan = function(i) {
|
|
1580
1580
|
var e = this.tail.match(i);
|
|
1581
1581
|
if (!e || e.index !== 0)
|
|
1582
1582
|
return "";
|
|
1583
1583
|
var t = e[0];
|
|
1584
1584
|
return this.tail = this.tail.substring(t.length), this.pos += t.length, t;
|
|
1585
1585
|
};
|
|
1586
|
-
|
|
1586
|
+
pe.prototype.scanUntil = function(i) {
|
|
1587
1587
|
var e = this.tail.search(i), t;
|
|
1588
1588
|
switch (e) {
|
|
1589
1589
|
case -1:
|
|
@@ -1611,9 +1611,9 @@ re.prototype.lookup = function(i) {
|
|
|
1611
1611
|
for (var s = this, a, r, c, l = !1; s; ) {
|
|
1612
1612
|
if (i.indexOf(".") > 0)
|
|
1613
1613
|
for (a = s.view, r = i.split("."), c = 0; a != null && c < r.length; )
|
|
1614
|
-
c === r.length - 1 && (l =
|
|
1614
|
+
c === r.length - 1 && (l = it(a, r[c]) || Vt(a, r[c])), a = a[r[c++]];
|
|
1615
1615
|
else
|
|
1616
|
-
a = s.view[i], l =
|
|
1616
|
+
a = s.view[i], l = it(s.view, i);
|
|
1617
1617
|
if (l) {
|
|
1618
1618
|
t = a;
|
|
1619
1619
|
break;
|
|
@@ -1622,7 +1622,7 @@ re.prototype.lookup = function(i) {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
e[i] = t;
|
|
1624
1624
|
}
|
|
1625
|
-
return
|
|
1625
|
+
return Fe(t) && (t = t.call(this.view)), t;
|
|
1626
1626
|
};
|
|
1627
1627
|
function U() {
|
|
1628
1628
|
this.templateCache = {
|
|
@@ -1643,29 +1643,29 @@ U.prototype.clearCache = function() {
|
|
|
1643
1643
|
};
|
|
1644
1644
|
U.prototype.parse = function(i, e) {
|
|
1645
1645
|
var t = this.templateCache, s = i + ":" + (e || P.tags).join(":"), a = typeof t < "u", r = a ? t.get(s) : void 0;
|
|
1646
|
-
return r == null && (r =
|
|
1646
|
+
return r == null && (r = ta(i, e), a && t.set(s, r)), r;
|
|
1647
1647
|
};
|
|
1648
1648
|
U.prototype.render = function(i, e, t, s) {
|
|
1649
1649
|
var a = this.getConfigTags(s), r = this.parse(i, a), c = e instanceof re ? e : new re(e, void 0);
|
|
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, o, d = 0,
|
|
1653
|
+
for (var r = "", c, l, o, d = 0, f = i.length; d < f; ++d)
|
|
1654
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 o(
|
|
1660
|
-
return r.render(
|
|
1659
|
+
function o(g) {
|
|
1660
|
+
return r.render(g, e, t, a);
|
|
1661
1661
|
}
|
|
1662
1662
|
if (l) {
|
|
1663
1663
|
if (ie(l))
|
|
1664
|
-
for (var d = 0,
|
|
1664
|
+
for (var d = 0, f = l.length; d < f; ++d)
|
|
1665
1665
|
c += this.renderTokens(i[4], e.push(l[d]), t, s, a);
|
|
1666
1666
|
else if (typeof l == "object" || typeof l == "string" || typeof l == "number")
|
|
1667
1667
|
c += this.renderTokens(i[4], e.push(l), t, s, a);
|
|
1668
|
-
else if (
|
|
1668
|
+
else if (Fe(l)) {
|
|
1669
1669
|
if (typeof s != "string")
|
|
1670
1670
|
throw new Error("Cannot use higher-order sections without the original template");
|
|
1671
1671
|
l = l.call(e.view, s.slice(i[3], i[5]), o), l != null && (c += l);
|
|
@@ -1688,12 +1688,12 @@ U.prototype.indentPartial = function(i, e, t) {
|
|
|
1688
1688
|
};
|
|
1689
1689
|
U.prototype.renderPartial = function(i, e, t, s) {
|
|
1690
1690
|
if (t) {
|
|
1691
|
-
var a = this.getConfigTags(s), r =
|
|
1691
|
+
var a = this.getConfigTags(s), r = Fe(t) ? t(i[1]) : t[i[1]];
|
|
1692
1692
|
if (r != null) {
|
|
1693
1693
|
var c = i[6], l = i[5], o = i[4], d = r;
|
|
1694
1694
|
l == 0 && o && (d = this.indentPartial(r, o, c));
|
|
1695
|
-
var
|
|
1696
|
-
return this.renderTokens(
|
|
1695
|
+
var f = this.parse(d, a);
|
|
1696
|
+
return this.renderTokens(f, e, t, d, s);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
1699
|
};
|
|
@@ -1734,31 +1734,31 @@ var P = {
|
|
|
1734
1734
|
* the cache by setting it to the literal `undefined`.
|
|
1735
1735
|
*/
|
|
1736
1736
|
set templateCache(i) {
|
|
1737
|
-
|
|
1737
|
+
ge.templateCache = i;
|
|
1738
1738
|
},
|
|
1739
1739
|
/**
|
|
1740
1740
|
* Gets the default or overridden caching object from the default writer.
|
|
1741
1741
|
*/
|
|
1742
1742
|
get templateCache() {
|
|
1743
|
-
return
|
|
1743
|
+
return ge.templateCache;
|
|
1744
1744
|
}
|
|
1745
|
-
},
|
|
1745
|
+
}, ge = new U();
|
|
1746
1746
|
P.clearCache = function() {
|
|
1747
|
-
return
|
|
1747
|
+
return ge.clearCache();
|
|
1748
1748
|
};
|
|
1749
1749
|
P.parse = function(i, e) {
|
|
1750
|
-
return
|
|
1750
|
+
return ge.parse(i, e);
|
|
1751
1751
|
};
|
|
1752
1752
|
P.render = function(i, e, t, s) {
|
|
1753
1753
|
if (typeof i != "string")
|
|
1754
1754
|
throw new TypeError('Invalid template! Template should be a "string" but "' + Wt(i) + '" was given as the first argument for mustache#render(template, view, partials)');
|
|
1755
|
-
return
|
|
1755
|
+
return ge.render(i, e, t, s);
|
|
1756
1756
|
};
|
|
1757
|
-
P.escape =
|
|
1758
|
-
P.Scanner =
|
|
1757
|
+
P.escape = Yt;
|
|
1758
|
+
P.Scanner = pe;
|
|
1759
1759
|
P.Context = re;
|
|
1760
1760
|
P.Writer = U;
|
|
1761
|
-
const
|
|
1761
|
+
const ra = {
|
|
1762
1762
|
main: {
|
|
1763
1763
|
template: `
|
|
1764
1764
|
{{#shouldShowAnswer}}
|
|
@@ -1771,7 +1771,7 @@ const sa = {
|
|
|
1771
1771
|
{{/shouldShowAnswer}}
|
|
1772
1772
|
`
|
|
1773
1773
|
}
|
|
1774
|
-
},
|
|
1774
|
+
}, ia = {
|
|
1775
1775
|
mainTemplate: {
|
|
1776
1776
|
template: `
|
|
1777
1777
|
{{#hasExternalPromotions}}
|
|
@@ -1805,7 +1805,7 @@ const sa = {
|
|
|
1805
1805
|
</div>
|
|
1806
1806
|
`
|
|
1807
1807
|
}
|
|
1808
|
-
},
|
|
1808
|
+
}, na = {
|
|
1809
1809
|
mainTemplateDesktop: {
|
|
1810
1810
|
template: `
|
|
1811
1811
|
{{#hasResultsOrExternalPromotions}}
|
|
@@ -1843,10 +1843,10 @@ const sa = {
|
|
|
1843
1843
|
template: `
|
|
1844
1844
|
<div class="searchstax-facet-show-more-container">
|
|
1845
1845
|
{{#showingAllFacets}}
|
|
1846
|
-
<div class="searchstax-facet-show-less-button searchstax-facet-show-button">less</div>
|
|
1846
|
+
<div class="searchstax-facet-show-less-button searchstax-facet-show-button" tabindex="0">less</div>
|
|
1847
1847
|
{{/showingAllFacets}}
|
|
1848
1848
|
{{^showingAllFacets}}
|
|
1849
|
-
<div class="searchstax-facet-show-more-button searchstax-facet-show-button">more {{onShowMoreLessClick}}</div>
|
|
1849
|
+
<div class="searchstax-facet-show-more-button searchstax-facet-show-button" tabindex="0">more {{onShowMoreLessClick}}</div>
|
|
1850
1850
|
{{/showingAllFacets}}
|
|
1851
1851
|
</div>
|
|
1852
1852
|
`,
|
|
@@ -1856,7 +1856,7 @@ const sa = {
|
|
|
1856
1856
|
template: `
|
|
1857
1857
|
<div>
|
|
1858
1858
|
<div class="searchstax-facet-title-container">
|
|
1859
|
-
<div class="searchstax-facet-title">
|
|
1859
|
+
<div class="searchstax-facet-title" aria-label="Facet group: {{label}}" tabindex="0">
|
|
1860
1860
|
{{label}}
|
|
1861
1861
|
</div>
|
|
1862
1862
|
<div class="searchstax-facet-title-arrow active"></div>
|
|
@@ -1880,7 +1880,7 @@ const sa = {
|
|
|
1880
1880
|
facetItemTemplate: {
|
|
1881
1881
|
template: `
|
|
1882
1882
|
<div class="searchstax-facet-input">
|
|
1883
|
-
<input type="checkbox" class="searchstax-facet-input-checkbox" {{#disabled}}disabled{{/disabled}} {{#isChecked}}checked{{/isChecked}}/>
|
|
1883
|
+
<input type="checkbox" class="searchstax-facet-input-checkbox" {{#disabled}}disabled{{/disabled}} {{#isChecked}}checked{{/isChecked}} aria-label="{{value}} {{count}}" tabindex="0"/>
|
|
1884
1884
|
</div>
|
|
1885
1885
|
<div class="searchstax-facet-value-label">{{value}}</div>
|
|
1886
1886
|
<div class="searchstax-facet-value-count">({{count}})</div>
|
|
@@ -1908,17 +1908,17 @@ const sa = {
|
|
|
1908
1908
|
`,
|
|
1909
1909
|
containerClass: "searchstax-facets-pill-facets"
|
|
1910
1910
|
}
|
|
1911
|
-
},
|
|
1911
|
+
}, ca = {
|
|
1912
1912
|
mainTemplate: {
|
|
1913
1913
|
template: `
|
|
1914
1914
|
{{#results.length}}
|
|
1915
1915
|
<div class="searchstax-pagination-container">
|
|
1916
1916
|
<div class="searchstax-pagination-content">
|
|
1917
|
-
<a class="searchstax-pagination-previous {{#isFirstPage}}disabled{{/isFirstPage}}" id="searchstax-pagination-previous">< Previous</a>
|
|
1917
|
+
<a class="searchstax-pagination-previous {{#isFirstPage}}disabled{{/isFirstPage}}" id="searchstax-pagination-previous" tabindex="0" aria-label="Previous Page">< Previous</a>
|
|
1918
1918
|
<div class="searchstax-pagination-details">
|
|
1919
1919
|
{{startResultIndex}} - {{endResultIndex}} of {{totalResults}}
|
|
1920
1920
|
</div>
|
|
1921
|
-
<a class="searchstax-pagination-next {{#isLastPage}}disabled{{/isLastPage}}" id="searchstax-pagination-next">Next ></a>
|
|
1921
|
+
<a class="searchstax-pagination-next {{#isLastPage}}disabled{{/isLastPage}}" id="searchstax-pagination-next" tabindex="0" aria-label="Next Page">Next ></a>
|
|
1922
1922
|
</div>
|
|
1923
1923
|
</div>
|
|
1924
1924
|
{{/results.length}}
|
|
@@ -1930,13 +1930,13 @@ const sa = {
|
|
|
1930
1930
|
template: `
|
|
1931
1931
|
{{#results.length}}
|
|
1932
1932
|
{{^isLastPage}}
|
|
1933
|
-
<a class="searchstax-pagination-load-more">Show More</a>
|
|
1933
|
+
<a class="searchstax-pagination-load-more" tabindex="0">Show More</a>
|
|
1934
1934
|
{{/isLastPage}}
|
|
1935
1935
|
{{/results.length}}
|
|
1936
1936
|
`,
|
|
1937
1937
|
loadMoreButtonClass: "searchstax-pagination-load-more"
|
|
1938
1938
|
}
|
|
1939
|
-
},
|
|
1939
|
+
}, la = {
|
|
1940
1940
|
main: {
|
|
1941
1941
|
template: `
|
|
1942
1942
|
{{#hasRelatedSearches}}
|
|
@@ -1954,17 +1954,18 @@ const sa = {
|
|
|
1954
1954
|
},
|
|
1955
1955
|
relatedSearch: {
|
|
1956
1956
|
template: `
|
|
1957
|
-
<span class="searchstax-related-search searchstax-related-search-item">
|
|
1957
|
+
<span class="searchstax-related-search searchstax-related-search-item" tabindex="0">
|
|
1958
1958
|
{{ related_search }}{{^last}}<span>,</span>{{/last}}
|
|
1959
1959
|
</span>
|
|
1960
1960
|
`,
|
|
1961
1961
|
relatedSearchContainerClass: "searchstax-related-search-item"
|
|
1962
1962
|
}
|
|
1963
|
-
},
|
|
1963
|
+
}, oa = {
|
|
1964
1964
|
main: {
|
|
1965
1965
|
template: `
|
|
1966
1966
|
{{#searchExecuted}}
|
|
1967
|
-
<
|
|
1967
|
+
<a href="#searchstax-search-results" class="searchstax-skip">Skip to results section</a>
|
|
1968
|
+
<h4 class="searchstax-feedback-container">
|
|
1968
1969
|
{{#hasResults}}
|
|
1969
1970
|
Showing <b>{{startResultIndex}} - {{endResultIndex}}</b> of <b>{{totalResults}}</b> results {{#searchTerm}} for "<b>{{searchTerm}}</b>" {{/searchTerm}}
|
|
1970
1971
|
<div class="searchstax-feedback-container-suggested">
|
|
@@ -1973,18 +1974,18 @@ const sa = {
|
|
|
1973
1974
|
{{/autoCorrectedQuery}}
|
|
1974
1975
|
</div>
|
|
1975
1976
|
{{/hasResults}}
|
|
1976
|
-
</
|
|
1977
|
+
</h4>
|
|
1977
1978
|
{{/searchExecuted}}
|
|
1978
1979
|
`,
|
|
1979
1980
|
originalQueryClass: "searchstax-feedback-original-query"
|
|
1980
1981
|
}
|
|
1981
|
-
},
|
|
1982
|
+
}, ha = {
|
|
1982
1983
|
mainTemplate: {
|
|
1983
1984
|
template: `
|
|
1984
1985
|
<div class="searchstax-search-input-container">
|
|
1985
1986
|
<div class="searchstax-search-input-wrapper">
|
|
1986
|
-
<input type="text" id="searchstax-search-input" class="searchstax-search-input" placeholder="SEARCH FOR..." />
|
|
1987
|
-
<button class="searchstax-spinner-icon" id="searchstax-search-input-action-button"></button>
|
|
1987
|
+
<input type="text" id="searchstax-search-input" class="searchstax-search-input" placeholder="SEARCH FOR..." aria-label="Search" />
|
|
1988
|
+
<button class="searchstax-spinner-icon" id="searchstax-search-input-action-button" aria-label="search" role="button"></button>
|
|
1988
1989
|
</div>
|
|
1989
1990
|
</div>
|
|
1990
1991
|
`,
|
|
@@ -1995,26 +1996,24 @@ const sa = {
|
|
|
1995
1996
|
<div class="searchstax-autosuggest-item-term-container">{{{term}}}</div>
|
|
1996
1997
|
`
|
|
1997
1998
|
}
|
|
1998
|
-
},
|
|
1999
|
+
}, ua = {
|
|
1999
2000
|
mainTemplate: {
|
|
2000
2001
|
template: `
|
|
2001
2002
|
<div class="searchstax-search-results-container">
|
|
2002
2003
|
<div class="searchstax-search-results" id="searchstax-search-results"></div>
|
|
2003
2004
|
</div>
|
|
2004
2005
|
`,
|
|
2005
|
-
searchResultsContainerId: "searchstax-search-results"
|
|
2006
|
+
searchResultsContainerId: "searchstax-search-results",
|
|
2007
|
+
searchResultsAccessibilityId: "searchstax-search-results-accessibility-announcement"
|
|
2006
2008
|
},
|
|
2007
2009
|
searchResultTemplate: {
|
|
2008
2010
|
template: `
|
|
2009
2011
|
<div class="searchstax-search-result {{#thumbnail}} has-thumbnail {{/thumbnail}}">
|
|
2012
|
+
<a href="{{url}}" data-searchstax-unique-result-id="{{uniqueId}}" class="searchstax-result-item-link searchstax-result-item-link-wrapping" tabindex="0">
|
|
2010
2013
|
{{#promoted}}
|
|
2011
2014
|
<div class="searchstax-search-result-promoted"></div>
|
|
2012
2015
|
{{/promoted}}
|
|
2013
2016
|
|
|
2014
|
-
{{#url}}
|
|
2015
|
-
<a href="{{url}}" data-searchstax-unique-result-id="{{uniqueId}}" class="searchstax-result-item-link"></a>
|
|
2016
|
-
{{/url}}
|
|
2017
|
-
|
|
2018
2017
|
{{#ribbon}}
|
|
2019
2018
|
<div class="searchstax-search-result-ribbon">
|
|
2020
2019
|
{{ribbon}}
|
|
@@ -2025,7 +2024,7 @@ const sa = {
|
|
|
2025
2024
|
<img src="{{thumbnail}}" class="searchstax-thumbnail">
|
|
2026
2025
|
{{/thumbnail}}
|
|
2027
2026
|
<div class="searchstax-search-result-title-container">
|
|
2028
|
-
<
|
|
2027
|
+
<h5 class="searchstax-search-result-title">{{title}}</h5>
|
|
2029
2028
|
</div>
|
|
2030
2029
|
|
|
2031
2030
|
{{#paths}}
|
|
@@ -2052,6 +2051,7 @@ const sa = {
|
|
|
2052
2051
|
</p>
|
|
2053
2052
|
{{/isImage}}
|
|
2054
2053
|
{{/unmappedFields}}
|
|
2054
|
+
</a>
|
|
2055
2055
|
</div>
|
|
2056
2056
|
`,
|
|
2057
2057
|
searchResultUniqueIdAttribute: "data-searchstax-unique-result-id"
|
|
@@ -2059,27 +2059,27 @@ const sa = {
|
|
|
2059
2059
|
noSearchResultTemplate: {
|
|
2060
2060
|
template: `
|
|
2061
2061
|
{{#searchExecuted}}
|
|
2062
|
-
<div class="searchstax-no-results">
|
|
2062
|
+
<div class="searchstax-no-results" aria-live="polite">
|
|
2063
2063
|
Showing <strong>no results</strong> for <strong>"{{ searchTerm }}"</strong>
|
|
2064
2064
|
<br>
|
|
2065
2065
|
{{#spellingSuggestion}}
|
|
2066
|
-
<span> Did you mean <a href="#" class="searchstax-suggestion-term">{{ spellingSuggestion }}</a>?</span>
|
|
2066
|
+
<span> Did you mean <a href="#" class="searchstax-suggestion-term" onclick="searchCallback('{{ spellingSuggestion }}')">{{ spellingSuggestion }}</a>?</span>
|
|
2067
2067
|
{{/spellingSuggestion}}
|
|
2068
2068
|
</div>
|
|
2069
|
-
<
|
|
2070
|
-
<
|
|
2071
|
-
<
|
|
2072
|
-
</
|
|
2069
|
+
<ul class="searchstax-no-results-list" aria-live="polite">
|
|
2070
|
+
<li>Try searching for search related terms or topics. We offer a wide variety of content to help you get the information you need.</li>
|
|
2071
|
+
<li>Lost? Click on the ‘X” in the Search Box to reset your search.</li>
|
|
2072
|
+
</ul>
|
|
2073
2073
|
{{/searchExecuted}}
|
|
2074
2074
|
`
|
|
2075
2075
|
}
|
|
2076
|
-
},
|
|
2076
|
+
}, da = {
|
|
2077
2077
|
main: {
|
|
2078
2078
|
template: `
|
|
2079
2079
|
{{#searchExecuted}}
|
|
2080
2080
|
{{#hasResultsOrExternalPromotions}}
|
|
2081
2081
|
<div class="searchstax-sorting-container">
|
|
2082
|
-
<label class="searchstax-sorting-label" for="
|
|
2082
|
+
<label class="searchstax-sorting-label" for="searchstax-search-order-select">Sort By</label>
|
|
2083
2083
|
<select id="searchstax-search-order-select" class="searchstax-search-order-select" >
|
|
2084
2084
|
{{#sortOptions}}
|
|
2085
2085
|
<option value="{{key}}">
|
|
@@ -2094,14 +2094,14 @@ const sa = {
|
|
|
2094
2094
|
selectId: "searchstax-search-order-select"
|
|
2095
2095
|
}
|
|
2096
2096
|
};
|
|
2097
|
-
class
|
|
2097
|
+
class b {
|
|
2098
2098
|
}
|
|
2099
|
-
h(
|
|
2100
|
-
class
|
|
2099
|
+
h(b, "answer", ra), h(b, "externalPromotions", ia), h(b, "facets", na), h(b, "pagination", ca), h(b, "relatedSearches", la), h(b, "searchFeedback", oa), h(b, "searchInput", ha), h(b, "searchResults", ua), h(b, "sorting", da);
|
|
2100
|
+
class ga {
|
|
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
|
-
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) ||
|
|
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) || b.externalPromotions.mainTemplate.externalPromotionsContainerId, typeof document < "u" && (this.searchExternalPromotionsMainContainer = document == null ? void 0 : document.getElementById(
|
|
2105
2105
|
this.containerId
|
|
2106
2106
|
)), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
|
|
2107
2107
|
}
|
|
@@ -2121,7 +2121,7 @@ class da {
|
|
|
2121
2121
|
var t, s, a, r;
|
|
2122
2122
|
const c = typeof document < "u" ? document == null ? void 0 : document.getElementById(this.externalPromotionsContainerId) : null;
|
|
2123
2123
|
if (c) {
|
|
2124
|
-
const l = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.externalPromotion) == null ? void 0 : a.template) || ((r =
|
|
2124
|
+
const l = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.externalPromotion) == null ? void 0 : a.template) || ((r = b.externalPromotions.externalPromotion) == null ? void 0 : r.template);
|
|
2125
2125
|
if (typeof document < "u") {
|
|
2126
2126
|
const o = document == null ? void 0 : document.createElement("div");
|
|
2127
2127
|
o.classList.add("searchstax-external-promotion"), o.addEventListener("click", (d) => {
|
|
@@ -2135,7 +2135,7 @@ class da {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
renderMainTemplate(e) {
|
|
2137
2137
|
var t, s, a, r;
|
|
2138
|
-
const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.template) || ((r =
|
|
2138
|
+
const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.template) || ((r = b.externalPromotions.mainTemplate) == null ? void 0 : r.template);
|
|
2139
2139
|
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2140
2140
|
this.searchExternalPromotionsMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
|
|
2141
2141
|
P.render(c, e);
|
|
@@ -2148,20 +2148,37 @@ class da {
|
|
|
2148
2148
|
}
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
-
class
|
|
2151
|
+
class de {
|
|
2152
|
+
static addAccessibilityNotificationContainerToBody() {
|
|
2153
|
+
if (!document.getElementById("searchAccessibilityContainer")) {
|
|
2154
|
+
const e = document.createElement("div");
|
|
2155
|
+
e.setAttribute("aria-live", "polite"), e.setAttribute("id", "searchAccessibilityContainer"), document.body.appendChild(e);
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
static setAccessibilityText(e) {
|
|
2159
|
+
this.addAccessibilityNotificationContainerToBody();
|
|
2160
|
+
const t = document.getElementById("searchAccessibility");
|
|
2161
|
+
t && t.remove();
|
|
2162
|
+
const s = document.createElement("span");
|
|
2163
|
+
s.setAttribute("id", "searchAccessibility"), s.innerHTML = e;
|
|
2164
|
+
const a = document.getElementById("searchAccessibilityContainer");
|
|
2165
|
+
a && a.appendChild(s);
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
class pa {
|
|
2152
2169
|
constructor(e, t) {
|
|
2153
2170
|
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
2171
|
if (s.stopPropagation(), !a.disabled) {
|
|
2155
2172
|
const o = r.querySelector("input");
|
|
2156
2173
|
let d = c ? o.checked : !o.checked;
|
|
2157
2174
|
l !== void 0 && (d = !l), o.checked = d;
|
|
2158
|
-
const
|
|
2159
|
-
let
|
|
2160
|
-
const
|
|
2161
|
-
d ?
|
|
2162
|
-
(S) => !J.deepEqual(S,
|
|
2175
|
+
const f = this.dataLayer.searchObject;
|
|
2176
|
+
let g = [...f.facets];
|
|
2177
|
+
const m = this.extractFacetValue(a);
|
|
2178
|
+
d ? g.find((S) => J.deepEqual(S, m) ? S : !1) || (this.config.facetingType === "tabs" && (g = g.filter((S) => S.name !== m.name)), g.push(m)) : g = g.filter(
|
|
2179
|
+
(S) => !J.deepEqual(S, m)
|
|
2163
2180
|
), setTimeout(() => {
|
|
2164
|
-
this.dataLayer.setSearchObject({ ...
|
|
2181
|
+
this.dataLayer.setSearchObject({ ...f, facets: g, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
|
|
2165
2182
|
}, 0);
|
|
2166
2183
|
}
|
|
2167
2184
|
}), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.routerHelper = e.routerHelper, this.cacheFacets = t, this.facetPaginationStep = this.config.itemsPerPageDesktop, this.facetPaginationStepMobile = this.config.itemsPerPageMobile, typeof document < "u" && (this.searchFacetsMainContainer = document == null ? void 0 : document.getElementById(
|
|
@@ -2245,23 +2262,23 @@ class ga {
|
|
|
2245
2262
|
}
|
|
2246
2263
|
}
|
|
2247
2264
|
createFacetItem(e, t, s) {
|
|
2248
|
-
var a, r, c, l, o, d, g, m,
|
|
2265
|
+
var a, r, c, l, o, d, f, g, m, S, O, k;
|
|
2249
2266
|
if (typeof document < "u") {
|
|
2250
|
-
const
|
|
2251
|
-
|
|
2252
|
-
const E = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.facetItemContainerTemplate) == null ? void 0 : c.template) || ((l =
|
|
2253
|
-
|
|
2267
|
+
const R = document == null ? void 0 : document.createElement("div");
|
|
2268
|
+
R.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || R.classList.add("active");
|
|
2269
|
+
const E = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.facetItemContainerTemplate) == null ? void 0 : c.template) || ((l = b.facets.facetItemContainerTemplate) == null ? void 0 : l.template);
|
|
2270
|
+
R.innerHTML = P.render(
|
|
2254
2271
|
E,
|
|
2255
2272
|
e
|
|
2256
|
-
), t.appendChild(
|
|
2257
|
-
const T =
|
|
2258
|
-
"." + (((
|
|
2273
|
+
), t.appendChild(R);
|
|
2274
|
+
const T = R.querySelector(
|
|
2275
|
+
"." + (((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.facetItemContainerTemplate) == null ? void 0 : f.facetListTitleContainerClass) || ((g = b.facets.facetItemContainerTemplate) == null ? void 0 : g.facetListTitleContainerClass))
|
|
2259
2276
|
);
|
|
2260
2277
|
T == null || T.addEventListener("click", () => {
|
|
2261
|
-
|
|
2278
|
+
R.classList.toggle("active");
|
|
2262
2279
|
});
|
|
2263
|
-
const N =
|
|
2264
|
-
"." + (((O = (S = (
|
|
2280
|
+
const N = R.querySelector(
|
|
2281
|
+
"." + (((O = (S = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : S.facetItemContainerTemplate) == null ? void 0 : O.facetListContainerClass) || ((k = b.facets.facetItemContainerTemplate) == null ? void 0 : k.facetListContainerClass))
|
|
2265
2282
|
);
|
|
2266
2283
|
N && (e.values.forEach((B) => {
|
|
2267
2284
|
this.createFacetListItem(
|
|
@@ -2276,40 +2293,40 @@ class ga {
|
|
|
2276
2293
|
return !!((t = this.dataLayer.searchObject.facets) != null && t.find((s) => J.deepEqual(s, this.extractFacetValue(e))));
|
|
2277
2294
|
}
|
|
2278
2295
|
createFacetListItem(e, t) {
|
|
2279
|
-
var s, a, r, c, l, o, d, g, m,
|
|
2296
|
+
var s, a, r, c, l, o, d, f, g, m, S, O, k;
|
|
2280
2297
|
if (typeof document < "u") {
|
|
2281
|
-
const
|
|
2282
|
-
|
|
2283
|
-
const E = this.isChecked(e), T = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.facetItemTemplate) == null ? void 0 : r.template) || ((c =
|
|
2284
|
-
|
|
2298
|
+
const R = document == null ? void 0 : document.createElement("div");
|
|
2299
|
+
R.classList.add("searchstax-facet-value-container"), e.disabled && R.classList.add("searchstax-facet-value-disabled");
|
|
2300
|
+
const E = this.isChecked(e), T = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.facetItemTemplate) == null ? void 0 : r.template) || ((c = b.facets.facetItemTemplate) == null ? void 0 : c.template);
|
|
2301
|
+
R.innerHTML = P.render(
|
|
2285
2302
|
T,
|
|
2286
2303
|
{ ...e, isChecked: E }
|
|
2287
2304
|
);
|
|
2288
|
-
let N = (l =
|
|
2289
|
-
N = ((
|
|
2290
|
-
var
|
|
2291
|
-
(
|
|
2292
|
-
this.onFacetSelect(
|
|
2305
|
+
let N = (l = b.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
|
|
2306
|
+
N = ((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.facetItemTemplate) == null ? void 0 : f.checkTriggerClasses) || N, N.forEach((B) => {
|
|
2307
|
+
var M;
|
|
2308
|
+
(M = R.querySelector("." + B)) == null || M.addEventListener("click", (K) => {
|
|
2309
|
+
this.onFacetSelect(K, e, R);
|
|
2293
2310
|
});
|
|
2294
|
-
}), (
|
|
2295
|
-
"." + (((S = (
|
|
2296
|
-
)) == null ||
|
|
2297
|
-
this.onFacetSelect(B, e,
|
|
2298
|
-
}), t.appendChild(
|
|
2311
|
+
}), (k = R.querySelector(
|
|
2312
|
+
"." + (((S = (m = (g = this.config) == null ? void 0 : g.templates) == null ? void 0 : m.facetItemTemplate) == null ? void 0 : S.inputCheckboxClass) || ((O = b.facets.facetItemTemplate) == null ? void 0 : O.inputCheckboxClass))
|
|
2313
|
+
)) == null || k.addEventListener("click", (B) => {
|
|
2314
|
+
this.onFacetSelect(B, e, R, !0);
|
|
2315
|
+
}), t.appendChild(R);
|
|
2299
2316
|
}
|
|
2300
2317
|
}
|
|
2301
2318
|
createHasMoreComponent(e, t, s) {
|
|
2302
|
-
var a, r, c, l, o, d,
|
|
2319
|
+
var a, r, c, l, o, d, f, g;
|
|
2303
2320
|
if (typeof document < "u") {
|
|
2304
|
-
const
|
|
2305
|
-
|
|
2306
|
-
const S = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : c.template) || ((l =
|
|
2307
|
-
|
|
2321
|
+
const m = document == null ? void 0 : document.createElement("div");
|
|
2322
|
+
m.classList.add("searchstax-facet-show-more-container");
|
|
2323
|
+
const S = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : c.template) || ((l = b.facets.showMoreButtonContainerTemplate) == null ? void 0 : l.template);
|
|
2324
|
+
m.innerHTML = P.render(
|
|
2308
2325
|
S,
|
|
2309
2326
|
e
|
|
2310
2327
|
);
|
|
2311
|
-
const O =
|
|
2312
|
-
"." + (((
|
|
2328
|
+
const O = m.querySelector(
|
|
2329
|
+
"." + (((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.showMoreButtonContainerTemplate) == null ? void 0 : f.showMoreButtonClass) || ((g = b.facets.showMoreButtonContainerTemplate) == null ? void 0 : g.showMoreButtonClass))
|
|
2313
2330
|
);
|
|
2314
2331
|
O && (this.attachOnclickToShowMore(e, O, s), t && t.appendChild(O));
|
|
2315
2332
|
}
|
|
@@ -2317,18 +2334,20 @@ class ga {
|
|
|
2317
2334
|
attachOnclickToShowMore(e, t, s) {
|
|
2318
2335
|
t.addEventListener("click", (a) => {
|
|
2319
2336
|
this.onShowMoreLessClick(a, e, s);
|
|
2337
|
+
}), t.addEventListener("keydown", (a) => {
|
|
2338
|
+
(a.code === "Space" || a.code === "Enter") && this.onShowMoreLessClick(a, e, s);
|
|
2320
2339
|
});
|
|
2321
2340
|
}
|
|
2322
2341
|
onShowMoreLessClick(e, t, s) {
|
|
2323
2342
|
e.preventDefault();
|
|
2324
2343
|
const a = s ? this.facetPaginationStepMobile : this.facetPaginationStep, r = s ? this.facetLimits : this.facetLimitsMobile;
|
|
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());
|
|
2344
|
+
r[t.name] === void 0 ? r[t.name] = a * 2 : r[t.name] <= t.values.length ? (de.setAccessibilityText(`More Facets shown for ${t.label}`), r[t.name] = r[t.name] + a) : (de.setAccessibilityText(`Less Facets shown for ${t.label}`), r[t.name] = a), this.generateTemplateData(s), this.renderMainTemplate(this.generateTemplateData());
|
|
2326
2345
|
}
|
|
2327
2346
|
renderMainTemplate(e, t) {
|
|
2328
|
-
var s, a, r, c, l, o, d, g, m,
|
|
2347
|
+
var s, a, r, c, l, o, d, f, g, m, S;
|
|
2329
2348
|
if (e && (!J.deepEqual(this.cachedData ?? {}, e) || t)) {
|
|
2330
2349
|
this.cachedData = e;
|
|
2331
|
-
const O = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.mainTemplateDesktop) == null ? void 0 : r.template) || ((c =
|
|
2350
|
+
const O = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.mainTemplateDesktop) == null ? void 0 : r.template) || ((c = b.facets.mainTemplateDesktop) == null ? void 0 : c.template);
|
|
2332
2351
|
if (this.dataLayer.renderingEngine === W.mustache && this.searchFacetsMainContainer) {
|
|
2333
2352
|
this.searchFacetsMainContainer.innerHTML = P.render(
|
|
2334
2353
|
O,
|
|
@@ -2336,18 +2355,18 @@ class ga {
|
|
|
2336
2355
|
...e
|
|
2337
2356
|
}
|
|
2338
2357
|
);
|
|
2339
|
-
const
|
|
2340
|
-
"." + (((d = (o = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : o.mainTemplateDesktop) == null ? void 0 : d.facetsContainerClass) ||
|
|
2358
|
+
const k = (f = this.searchFacetsMainContainer) == null ? void 0 : f.querySelector(
|
|
2359
|
+
"." + (((d = (o = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : o.mainTemplateDesktop) == null ? void 0 : d.facetsContainerClass) || b.facets.mainTemplateDesktop.facetsContainerClass)
|
|
2341
2360
|
);
|
|
2342
|
-
if (
|
|
2343
|
-
|
|
2344
|
-
for (const
|
|
2345
|
-
this.createFacetItem(
|
|
2361
|
+
if (k) {
|
|
2362
|
+
k.innerHTML = "";
|
|
2363
|
+
for (const R of e.facets)
|
|
2364
|
+
this.createFacetItem(R, k);
|
|
2346
2365
|
if (this.searchFacetsMainContainer) {
|
|
2347
|
-
const
|
|
2348
|
-
"." + (((S = (
|
|
2366
|
+
const R = this.searchFacetsMainContainer.querySelector(
|
|
2367
|
+
"." + (((S = (m = (g = this.config) == null ? void 0 : g.templates) == null ? void 0 : m.mainTemplateDesktop) == null ? void 0 : S.selectedFacetsContainerClass) || b.facets.mainTemplateDesktop.selectedFacetsContainerClass)
|
|
2349
2368
|
);
|
|
2350
|
-
|
|
2369
|
+
R && (this.createSelectedFacetsComponents(R), this.createClearFacetsComponents(R));
|
|
2351
2370
|
}
|
|
2352
2371
|
}
|
|
2353
2372
|
}
|
|
@@ -2380,15 +2399,15 @@ class ga {
|
|
|
2380
2399
|
createClearFacetsComponents(e) {
|
|
2381
2400
|
var t, s, a, r, c, l, o, d;
|
|
2382
2401
|
if (typeof document < "u") {
|
|
2383
|
-
const
|
|
2384
|
-
|
|
2385
|
-
|
|
2402
|
+
const f = this.dataLayer.searchObject, g = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.clearFacetsTemplate) == null ? void 0 : a.template) || ((r = b.facets.clearFacetsTemplate) == null ? void 0 : r.template), m = document == null ? void 0 : document.createElement("div");
|
|
2403
|
+
m.innerHTML = P.render(
|
|
2404
|
+
g,
|
|
2386
2405
|
{
|
|
2387
|
-
shouldShow:
|
|
2406
|
+
shouldShow: f.facets.length > 0
|
|
2388
2407
|
}
|
|
2389
2408
|
);
|
|
2390
|
-
const S =
|
|
2391
|
-
"." + (((o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.clearFacetsTemplate) == null ? void 0 : o.containerClass) || ((d =
|
|
2409
|
+
const S = m.querySelector(
|
|
2410
|
+
"." + (((o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.clearFacetsTemplate) == null ? void 0 : o.containerClass) || ((d = b.facets.clearFacetsTemplate) == null ? void 0 : d.containerClass))
|
|
2392
2411
|
);
|
|
2393
2412
|
S && (S.addEventListener("click", () => {
|
|
2394
2413
|
this.removeSelectedFacets();
|
|
@@ -2396,15 +2415,15 @@ class ga {
|
|
|
2396
2415
|
}
|
|
2397
2416
|
}
|
|
2398
2417
|
createSelectedFacetsComponent(e, t) {
|
|
2399
|
-
var s, a, r, c, l, o, d,
|
|
2418
|
+
var s, a, r, c, l, o, d, f;
|
|
2400
2419
|
if (typeof document < "u") {
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2403
|
-
|
|
2420
|
+
const g = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.selectedFacetsTemplate) == null ? void 0 : r.template) || ((c = b.facets.selectedFacetsTemplate) == null ? void 0 : c.template), m = document == null ? void 0 : document.createElement("div");
|
|
2421
|
+
m.innerHTML = P.render(
|
|
2422
|
+
g,
|
|
2404
2423
|
t
|
|
2405
2424
|
);
|
|
2406
|
-
const S =
|
|
2407
|
-
"." + (((d = (o = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : o.selectedFacetsTemplate) == null ? void 0 : d.containerClass) || ((
|
|
2425
|
+
const S = m.querySelector(
|
|
2426
|
+
"." + (((d = (o = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : o.selectedFacetsTemplate) == null ? void 0 : d.containerClass) || ((f = b.facets.selectedFacetsTemplate) == null ? void 0 : f.containerClass))
|
|
2408
2427
|
);
|
|
2409
2428
|
S && (S.addEventListener("click", () => {
|
|
2410
2429
|
this.unselectFacet(t);
|
|
@@ -2427,15 +2446,15 @@ class ga {
|
|
|
2427
2446
|
createFilterByComponent(e) {
|
|
2428
2447
|
var t, s, a, r, c, l, o, d;
|
|
2429
2448
|
if (typeof document < "u") {
|
|
2430
|
-
const
|
|
2431
|
-
|
|
2432
|
-
|
|
2449
|
+
const f = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.filterByTemplate) == null ? void 0 : a.template) || ((r = b.facets.filterByTemplate) == null ? void 0 : r.template), g = document == null ? void 0 : document.createElement("div");
|
|
2450
|
+
g.innerHTML = P.render(
|
|
2451
|
+
f,
|
|
2433
2452
|
{}
|
|
2434
2453
|
);
|
|
2435
|
-
const
|
|
2436
|
-
"." + (((o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.filterByTemplate) == null ? void 0 : o.containerClass) || ((d =
|
|
2454
|
+
const m = g.querySelector(
|
|
2455
|
+
"." + (((o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.filterByTemplate) == null ? void 0 : o.containerClass) || ((d = b.facets.filterByTemplate) == null ? void 0 : d.containerClass))
|
|
2437
2456
|
);
|
|
2438
|
-
|
|
2457
|
+
m && (e.prepend(m), m.addEventListener("click", this.openOverlay.bind(this)));
|
|
2439
2458
|
}
|
|
2440
2459
|
}
|
|
2441
2460
|
openOverlay() {
|
|
@@ -2447,35 +2466,35 @@ class ga {
|
|
|
2447
2466
|
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
2467
|
}
|
|
2449
2468
|
renderMobileTemplate(e) {
|
|
2450
|
-
var t, s, a, r, c, l, o, d, g, m,
|
|
2469
|
+
var t, s, a, r, c, l, o, d, f, g, m, S, O, k, R, E, T, N, B;
|
|
2451
2470
|
if (e && typeof document < "u") {
|
|
2452
|
-
const
|
|
2453
|
-
|
|
2454
|
-
const
|
|
2471
|
+
const M = document == null ? void 0 : document.createElement("div");
|
|
2472
|
+
M.classList.add("searchstax-facets-container-mobile");
|
|
2473
|
+
const K = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplateMobile) == null ? void 0 : a.template) || ((r = b.facets.mainTemplateMobile) == null ? void 0 : r.template);
|
|
2455
2474
|
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2456
|
-
if (
|
|
2475
|
+
if (M.innerHTML = P.render(K, {
|
|
2457
2476
|
...e,
|
|
2458
2477
|
overlayOpened: this.overlayOpened
|
|
2459
|
-
}), (c = this.searchFacetsMainContainer) == null || c.appendChild(
|
|
2460
|
-
for (const _ of ((
|
|
2461
|
-
const G =
|
|
2478
|
+
}), (c = this.searchFacetsMainContainer) == null || c.appendChild(M), (o = (l = this.config) == null ? void 0 : l.templates) != null && o.mainTemplateMobile)
|
|
2479
|
+
for (const _ of ((g = (f = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : f.mainTemplateMobile) == null ? void 0 : g.closeOverlayTriggerClasses) || []) {
|
|
2480
|
+
const G = M.querySelector("." + _);
|
|
2462
2481
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2463
2482
|
}
|
|
2464
2483
|
else
|
|
2465
|
-
for (const _ of
|
|
2466
|
-
const G =
|
|
2484
|
+
for (const _ of b.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
|
|
2485
|
+
const G = M.querySelector("." + _);
|
|
2467
2486
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2468
2487
|
}
|
|
2469
|
-
const v =
|
|
2470
|
-
"." + (((O = (S = (
|
|
2488
|
+
const v = M.querySelector(
|
|
2489
|
+
"." + (((O = (S = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : S.mainTemplateMobile) == null ? void 0 : O.filterByContainerClass) || b.facets.mainTemplateMobile.filterByContainerClass)
|
|
2471
2490
|
);
|
|
2472
2491
|
v && this.createFilterByComponent(v);
|
|
2473
|
-
const
|
|
2474
|
-
"." + (((E = (
|
|
2492
|
+
const x = M.querySelector(
|
|
2493
|
+
"." + (((E = (R = (k = this.config) == null ? void 0 : k.templates) == null ? void 0 : R.mainTemplateMobile) == null ? void 0 : E.selectedFacetsContainerClass) || b.facets.mainTemplateMobile.selectedFacetsContainerClass)
|
|
2475
2494
|
);
|
|
2476
|
-
|
|
2477
|
-
const j =
|
|
2478
|
-
"." + (((B = (N = (T = this.config) == null ? void 0 : T.templates) == null ? void 0 : N.mainTemplateMobile) == null ? void 0 : B.facetsContainerClass) ||
|
|
2495
|
+
x && (this.createSelectedFacetsComponents(x), this.createClearFacetsComponents(x));
|
|
2496
|
+
const j = M.querySelector(
|
|
2497
|
+
"." + (((B = (N = (T = this.config) == null ? void 0 : T.templates) == null ? void 0 : N.mainTemplateMobile) == null ? void 0 : B.facetsContainerClass) || b.facets.mainTemplateMobile.facetsContainerClass)
|
|
2479
2498
|
);
|
|
2480
2499
|
if (j) {
|
|
2481
2500
|
j.innerHTML = "";
|
|
@@ -2486,11 +2505,11 @@ class ga {
|
|
|
2486
2505
|
}
|
|
2487
2506
|
}
|
|
2488
2507
|
}
|
|
2489
|
-
class
|
|
2508
|
+
class ma {
|
|
2490
2509
|
constructor(e) {
|
|
2491
2510
|
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,
|
|
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) ??
|
|
2511
|
+
var t, s, a, r, c, l, o, d, f;
|
|
2512
|
+
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) ?? b.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) ?? b.pagination.mainTemplate.nextButtonClass, this.loadMoreButtonClass = ((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : f.loadMoreButtonClass) ?? b.pagination.infiniteScrollTemplate.loadMoreButtonClass, typeof document < "u" && (this.searchPaginationMainContainer = document == null ? void 0 : document.getElementById(
|
|
2494
2513
|
this.containerId
|
|
2495
2514
|
)), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
|
|
2496
2515
|
}
|
|
@@ -2527,14 +2546,14 @@ class pa {
|
|
|
2527
2546
|
}
|
|
2528
2547
|
nextPage(e) {
|
|
2529
2548
|
var t;
|
|
2530
|
-
e.preventDefault(), e.stopPropagation(), this.isLastPage || this.goToPage(
|
|
2549
|
+
e == null || e.preventDefault(), e == null || e.stopPropagation(), this.isLastPage || this.goToPage(
|
|
2531
2550
|
((t = this.dataLayer.searchObject) == null ? void 0 : t.page) + 1,
|
|
2532
2551
|
this.dataLayer.isInfiniteScroll
|
|
2533
2552
|
);
|
|
2534
2553
|
}
|
|
2535
2554
|
previousPage(e) {
|
|
2536
2555
|
var t;
|
|
2537
|
-
e.preventDefault(), e.stopPropagation(), this.isFirstPage || this.goToPage(((t = this.dataLayer.searchObject) == null ? void 0 : t.page) - 1);
|
|
2556
|
+
e == null || e.preventDefault(), e == null || e.stopPropagation(), this.isFirstPage || this.goToPage(((t = this.dataLayer.searchObject) == null ? void 0 : t.page) - 1);
|
|
2538
2557
|
}
|
|
2539
2558
|
overridePaginationEvents() {
|
|
2540
2559
|
if (this.searchPaginationMainContainer) {
|
|
@@ -2545,29 +2564,35 @@ class pa {
|
|
|
2545
2564
|
), s = this.searchPaginationMainContainer.querySelector(
|
|
2546
2565
|
"." + this.loadMoreButtonClass
|
|
2547
2566
|
);
|
|
2548
|
-
e && e.addEventListener(
|
|
2567
|
+
e && (e.addEventListener(
|
|
2549
2568
|
"click",
|
|
2550
2569
|
this.previousPage.bind(this)
|
|
2551
|
-
),
|
|
2570
|
+
), e.addEventListener("keydown", (a) => {
|
|
2571
|
+
(a.code === "Space" || a.code === "Enter") && this.previousPage(a);
|
|
2572
|
+
})), t && (t.addEventListener("click", this.nextPage.bind(this)), t.addEventListener("keydown", (a) => {
|
|
2573
|
+
(a.code === "Space" || a.code === "Enter") && this.nextPage(a);
|
|
2574
|
+
})), s && (s.addEventListener("click", this.nextPage.bind(this)), s.addEventListener("keydown", (a) => {
|
|
2575
|
+
(a.code === "Space" || a.code === "Enter") && this.nextPage(a);
|
|
2576
|
+
}));
|
|
2552
2577
|
}
|
|
2553
2578
|
}
|
|
2554
2579
|
renderMainTemplate(e) {
|
|
2555
|
-
var t, s, a, r, c, l, o, d,
|
|
2580
|
+
var t, s, a, r, c, l, o, d, f, g;
|
|
2556
2581
|
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
|
-
|
|
2582
|
+
let m = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : c.template) || ((l = b.pagination.mainTemplate) == null ? void 0 : l.template);
|
|
2583
|
+
this.dataLayer.isInfiniteScroll && (m = ((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : f.template) || ((g = b.pagination.infiniteScrollTemplate) == null ? void 0 : g.template)), this.dataLayer.renderingEngine === W.mustache && (this.searchPaginationMainContainer.innerHTML = P.render(
|
|
2584
|
+
m,
|
|
2560
2585
|
e
|
|
2561
2586
|
), setTimeout(() => {
|
|
2562
2587
|
this.overridePaginationEvents();
|
|
2563
2588
|
}, 0));
|
|
2564
2589
|
}
|
|
2565
2590
|
}
|
|
2566
|
-
class
|
|
2591
|
+
class fa {
|
|
2567
2592
|
constructor(e) {
|
|
2568
2593
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "relatedSearchesContainerClass"), h(this, "searchRelatedSearchesMainContainer", null), h(this, "track");
|
|
2569
2594
|
var t, s;
|
|
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) ||
|
|
2595
|
+
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) || b.relatedSearches.main.relatedSearchesContainerClass, typeof document < "u" && (this.searchRelatedSearchesMainContainer = document == null ? void 0 : document.getElementById(
|
|
2571
2596
|
this.containerId
|
|
2572
2597
|
)), this.track = e.trackRelatedSearchClick, this.initializeSubscriptions();
|
|
2573
2598
|
}
|
|
@@ -2585,17 +2610,19 @@ class ma {
|
|
|
2585
2610
|
addRelatedSearchComponent(e, t) {
|
|
2586
2611
|
var s, a, r, c, l;
|
|
2587
2612
|
if (typeof document < "u") {
|
|
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) ||
|
|
2613
|
+
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) || b.relatedSearches.relatedSearch.template;
|
|
2589
2614
|
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2590
2615
|
o.innerHTML = P.render(
|
|
2591
2616
|
d,
|
|
2592
2617
|
e
|
|
2593
2618
|
);
|
|
2594
|
-
const
|
|
2595
|
-
"." + (((l = (c = this.config.templates) == null ? void 0 : c.relatedSearch) == null ? void 0 : l.relatedSearchContainerClass) ||
|
|
2619
|
+
const f = o.querySelector(
|
|
2620
|
+
"." + (((l = (c = this.config.templates) == null ? void 0 : c.relatedSearch) == null ? void 0 : l.relatedSearchContainerClass) || b.relatedSearches.relatedSearch.relatedSearchContainerClass)
|
|
2596
2621
|
);
|
|
2597
|
-
|
|
2622
|
+
f && (t.appendChild(f), f.addEventListener("click", () => {
|
|
2598
2623
|
this.executeSearch(e);
|
|
2624
|
+
}), f.addEventListener("keyup", (g) => {
|
|
2625
|
+
(g.code === "Space" || g.code === "Enter") && this.executeSearch(e);
|
|
2599
2626
|
}));
|
|
2600
2627
|
}
|
|
2601
2628
|
}
|
|
@@ -2606,7 +2633,7 @@ class ma {
|
|
|
2606
2633
|
}
|
|
2607
2634
|
renderMainTemplate(e) {
|
|
2608
2635
|
var t, s, a, r;
|
|
2609
|
-
const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) ||
|
|
2636
|
+
const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || b.relatedSearches.main.template;
|
|
2610
2637
|
if (this.dataLayer.renderingEngine === W.mustache && this.searchRelatedSearchesMainContainer) {
|
|
2611
2638
|
this.searchRelatedSearchesMainContainer.innerHTML = "", this.searchRelatedSearchesMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
|
|
2612
2639
|
P.render(c, e);
|
|
@@ -2619,7 +2646,7 @@ class ma {
|
|
|
2619
2646
|
}
|
|
2620
2647
|
}
|
|
2621
2648
|
}
|
|
2622
|
-
class
|
|
2649
|
+
class va {
|
|
2623
2650
|
constructor(e) {
|
|
2624
2651
|
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
2652
|
this.containerId
|
|
@@ -2645,7 +2672,7 @@ class fa {
|
|
|
2645
2672
|
attachClick() {
|
|
2646
2673
|
var e, t, s, a, r;
|
|
2647
2674
|
const c = (r = this.searchFeedbackMainContainer) == null ? void 0 : r.querySelector(
|
|
2648
|
-
"." + (((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.main) == null ? void 0 : s.originalQueryClass) || ((a =
|
|
2675
|
+
"." + (((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.main) == null ? void 0 : s.originalQueryClass) || ((a = b.searchFeedback.main) == null ? void 0 : a.originalQueryClass))
|
|
2649
2676
|
);
|
|
2650
2677
|
c && c.addEventListener(
|
|
2651
2678
|
"click",
|
|
@@ -2654,7 +2681,7 @@ class fa {
|
|
|
2654
2681
|
}
|
|
2655
2682
|
renderMainTemplate(e) {
|
|
2656
2683
|
var t, s, a;
|
|
2657
|
-
const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) ||
|
|
2684
|
+
const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || b.searchFeedback.main.template;
|
|
2658
2685
|
this.dataLayer.renderingEngine === W.mustache && (this.searchFeedbackMainContainer.innerHTML = P.render(
|
|
2659
2686
|
r,
|
|
2660
2687
|
e
|
|
@@ -2663,7 +2690,7 @@ class fa {
|
|
|
2663
2690
|
}, 0));
|
|
2664
2691
|
}
|
|
2665
2692
|
}
|
|
2666
|
-
class
|
|
2693
|
+
class ya {
|
|
2667
2694
|
constructor(e) {
|
|
2668
2695
|
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
2696
|
}
|
|
@@ -2673,12 +2700,12 @@ class va {
|
|
|
2673
2700
|
const r = document == null ? void 0 : document.getElementById(this.containerId);
|
|
2674
2701
|
if (!r)
|
|
2675
2702
|
throw new Error("Search input container not found");
|
|
2676
|
-
const c = ((t = (e = this.config.templates) == null ? void 0 : e.mainTemplate) == null ? void 0 : t.template) ||
|
|
2703
|
+
const c = ((t = (e = this.config.templates) == null ? void 0 : e.mainTemplate) == null ? void 0 : t.template) || b.searchInput.mainTemplate.template;
|
|
2677
2704
|
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2678
2705
|
const d = P.render(c, {});
|
|
2679
2706
|
r.innerHTML = d;
|
|
2680
2707
|
}
|
|
2681
|
-
const l = ((a = (s = this.config.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.searchInputId) ||
|
|
2708
|
+
const l = ((a = (s = this.config.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.searchInputId) || b.searchInput.mainTemplate.searchInputId, o = document == null ? void 0 : document.querySelector(`#${l}`);
|
|
2682
2709
|
if (o)
|
|
2683
2710
|
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
2711
|
else
|
|
@@ -2799,7 +2826,7 @@ class va {
|
|
|
2799
2826
|
}), r.addEventListener("mouseenter", () => {
|
|
2800
2827
|
this.onSuggestionEnter(e);
|
|
2801
2828
|
});
|
|
2802
|
-
const c = ((s = (t = this.config.templates) == null ? void 0 : t.autosuggestItemTemplate) == null ? void 0 : s.template) || ((a =
|
|
2829
|
+
const c = ((s = (t = this.config.templates) == null ? void 0 : t.autosuggestItemTemplate) == null ? void 0 : s.template) || ((a = b.searchInput.autosuggestItemTemplate) == null ? void 0 : a.template);
|
|
2803
2830
|
return r.innerHTML = P.render(c, e), r;
|
|
2804
2831
|
}
|
|
2805
2832
|
onSuggestionEnter(e) {
|
|
@@ -2823,7 +2850,7 @@ class va {
|
|
|
2823
2850
|
}
|
|
2824
2851
|
}
|
|
2825
2852
|
}
|
|
2826
|
-
class
|
|
2853
|
+
class xa {
|
|
2827
2854
|
constructor(e) {
|
|
2828
2855
|
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
2856
|
this.dataLayer.setSearchObject({ ...this.dataLayer.searchObject, itemsPerPage: this.config.resultsPerPage || 10 });
|
|
@@ -2838,7 +2865,9 @@ class ya {
|
|
|
2838
2865
|
this.dataLayer.setIsInfiniteScroll(e.config.renderMethod === "infiniteScroll"), this.initializeSubscriptions(), this.renderMainTemplate();
|
|
2839
2866
|
}
|
|
2840
2867
|
initializeSubscriptions() {
|
|
2841
|
-
this.dataLayer.$
|
|
2868
|
+
this.dataLayer.$searchObject.subscribe(() => {
|
|
2869
|
+
de.setAccessibilityText("Searching...");
|
|
2870
|
+
}), this.dataLayer.$searchResults.subscribe((e) => {
|
|
2842
2871
|
e && this.searchResultsContainer && this.renderResults(e);
|
|
2843
2872
|
});
|
|
2844
2873
|
}
|
|
@@ -2847,12 +2876,13 @@ class ya {
|
|
|
2847
2876
|
}
|
|
2848
2877
|
renderNoResultsTemplate() {
|
|
2849
2878
|
var e, t, s, a, r;
|
|
2850
|
-
const c = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.noSearchResultTemplate) == null ? void 0 : s.template) || ((a =
|
|
2879
|
+
const c = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.noSearchResultTemplate) == null ? void 0 : s.template) || ((a = b.searchResults.noSearchResultTemplate) == null ? void 0 : a.template), l = ((r = this.dataLayer.searchResultsMetadata) == null ? void 0 : r.spellingSuggestion) ?? "";
|
|
2851
2880
|
if (this.dataLayer.renderingEngine === W.mustache && this.searchResultsContainer && (this.searchResultsContainer.innerHTML = P.render(
|
|
2852
2881
|
c,
|
|
2853
2882
|
{
|
|
2854
2883
|
spellingSuggestion: l,
|
|
2855
|
-
...this.dataLayer.parsedData.data
|
|
2884
|
+
...this.dataLayer.parsedData.data,
|
|
2885
|
+
searchCallback: this.searchCallback.bind(this)
|
|
2856
2886
|
}
|
|
2857
2887
|
)), l && this.searchResultsContainer) {
|
|
2858
2888
|
const o = this.searchResultsContainer.querySelector("a");
|
|
@@ -2865,9 +2895,10 @@ class ya {
|
|
|
2865
2895
|
var t, s, a, r, c;
|
|
2866
2896
|
if (this.dataLayer.renderingEngine === W.mustache && this.searchResultsContainer)
|
|
2867
2897
|
if (this.removeLinkClickEvents(), e.length === 0)
|
|
2868
|
-
this.renderNoResultsTemplate();
|
|
2898
|
+
de.setAccessibilityText(""), this.renderNoResultsTemplate();
|
|
2869
2899
|
else {
|
|
2870
|
-
|
|
2900
|
+
de.setAccessibilityText("Results are returned. Press tab to navigate through results");
|
|
2901
|
+
const l = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.searchResultTemplate) == null ? void 0 : a.template) || ((r = b.searchResults.searchResultTemplate) == null ? void 0 : r.template), o = e.map((d) => P.render(l, d));
|
|
2871
2902
|
((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
2903
|
this.searchResultsContainer.querySelectorAll(
|
|
2873
2904
|
`[${this.uniqueIdAttribute}]`
|
|
@@ -2878,12 +2909,13 @@ class ya {
|
|
|
2878
2909
|
removeLinkClickEvents() {
|
|
2879
2910
|
this.searchResultLinks.forEach((e) => {
|
|
2880
2911
|
e.removeEventListener("click", () => {
|
|
2912
|
+
}), e.removeEventListener("keydown", () => {
|
|
2881
2913
|
});
|
|
2882
2914
|
});
|
|
2883
2915
|
}
|
|
2884
2916
|
get uniqueIdAttribute() {
|
|
2885
2917
|
var e, t, s, a;
|
|
2886
|
-
return ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.searchResultTemplate) == null ? void 0 : s.searchResultUniqueIdAttribute) || ((a =
|
|
2918
|
+
return ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.searchResultTemplate) == null ? void 0 : s.searchResultUniqueIdAttribute) || ((a = b.searchResults.searchResultTemplate) == null ? void 0 : a.searchResultUniqueIdAttribute);
|
|
2887
2919
|
}
|
|
2888
2920
|
attachLinkClickEvents() {
|
|
2889
2921
|
this.searchResultLinks.forEach((e) => {
|
|
@@ -2891,18 +2923,23 @@ class ya {
|
|
|
2891
2923
|
t.preventDefault(), t.stopPropagation();
|
|
2892
2924
|
const s = e.getAttribute(this.uniqueIdAttribute) ?? "";
|
|
2893
2925
|
s && this.linkClickCallback(s);
|
|
2926
|
+
}), e.addEventListener("keydown", (t) => {
|
|
2927
|
+
if (t.code === "Space" || t.code === "Enter") {
|
|
2928
|
+
const s = e.getAttribute(this.uniqueIdAttribute) ?? "";
|
|
2929
|
+
s && this.linkClickCallback(s);
|
|
2930
|
+
}
|
|
2894
2931
|
});
|
|
2895
2932
|
});
|
|
2896
2933
|
}
|
|
2897
2934
|
renderMainTemplate() {
|
|
2898
2935
|
var e, t, s, a;
|
|
2899
|
-
const r = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : s.template) || ((a =
|
|
2936
|
+
const r = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : s.template) || ((a = b.searchResults.mainTemplate) == null ? void 0 : a.template);
|
|
2900
2937
|
this.dataLayer.renderingEngine === W.mustache && (this.searchResultsMainContainer.innerHTML = P.render(
|
|
2901
2938
|
r,
|
|
2902
2939
|
{}
|
|
2903
2940
|
), setTimeout(() => {
|
|
2904
|
-
var c, l, o, d, g, m
|
|
2905
|
-
const S = (o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.mainTemplate) != null && o.searchResultsContainerId ? (
|
|
2941
|
+
var c, l, o, d, f, g, m;
|
|
2942
|
+
const S = (o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.mainTemplate) != null && o.searchResultsContainerId ? (g = (f = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : f.mainTemplate) == null ? void 0 : g.searchResultsContainerId : (m = b.searchResults.mainTemplate) == null ? void 0 : m.searchResultsContainerId, O = document == null ? void 0 : document.getElementById(S);
|
|
2906
2943
|
if (O)
|
|
2907
2944
|
this.searchResultsContainer = O;
|
|
2908
2945
|
else
|
|
@@ -2910,11 +2947,11 @@ class ya {
|
|
|
2910
2947
|
}, 0));
|
|
2911
2948
|
}
|
|
2912
2949
|
}
|
|
2913
|
-
class
|
|
2950
|
+
class ba {
|
|
2914
2951
|
constructor(e) {
|
|
2915
2952
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "selectId"), h(this, "searchSortingMainContainer", null);
|
|
2916
2953
|
var t, s;
|
|
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) ||
|
|
2954
|
+
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) || b.sorting.main.selectId, this.searchSortingMainContainer = document == null ? void 0 : document.getElementById(this.containerId), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
|
|
2918
2955
|
}
|
|
2919
2956
|
initializeSubscriptions() {
|
|
2920
2957
|
this.dataLayer.$searchResults.subscribe((e) => {
|
|
@@ -2946,7 +2983,7 @@ class xa {
|
|
|
2946
2983
|
}
|
|
2947
2984
|
renderMainTemplate(e) {
|
|
2948
2985
|
var t, s, a;
|
|
2949
|
-
const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) ||
|
|
2986
|
+
const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || b.sorting.main.template;
|
|
2950
2987
|
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2951
2988
|
this.searchSortingMainContainer.innerHTML = P.render(
|
|
2952
2989
|
r,
|
|
@@ -2961,7 +2998,7 @@ class xa {
|
|
|
2961
2998
|
}
|
|
2962
2999
|
}
|
|
2963
3000
|
}
|
|
2964
|
-
class
|
|
3001
|
+
class Ca {
|
|
2965
3002
|
constructor(e) {
|
|
2966
3003
|
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
3004
|
}
|
|
@@ -2974,14 +3011,14 @@ class ba {
|
|
|
2974
3011
|
}
|
|
2975
3012
|
renderMainTemplate(e) {
|
|
2976
3013
|
var t, s, a;
|
|
2977
|
-
const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) ||
|
|
3014
|
+
const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || b.answer.main.template;
|
|
2978
3015
|
this.dataLayer.renderingEngine === W.mustache && (this.answerContainer.innerHTML = P.render(
|
|
2979
3016
|
r,
|
|
2980
3017
|
e
|
|
2981
3018
|
));
|
|
2982
3019
|
}
|
|
2983
3020
|
}
|
|
2984
|
-
class
|
|
3021
|
+
class Sa {
|
|
2985
3022
|
constructor(e = W.mustache) {
|
|
2986
3023
|
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
3024
|
}
|
|
@@ -3014,11 +3051,11 @@ class Ca {
|
|
|
3014
3051
|
}
|
|
3015
3052
|
initialize(e) {
|
|
3016
3053
|
var t, s;
|
|
3017
|
-
if (this.dataLayer = new
|
|
3054
|
+
if (this.dataLayer = new qt("searchstax_session_id", e.sessionId), this.renderEngine && this.dataLayer.setRenderingEngine(this.renderEngine), this.handleHooks(), e.analyticsBaseUrl && typeof window < "u" && (window.analyticsBaseUrl = e.analyticsBaseUrl, window._msq = e._msq || [], this.attachAnalyticsScript(e.analyticsSrc)), e.turnAIAnswerGenerationOn === !0 && (this.dataLayer.turnAIAnswerGenerationOn = !0), e.autoCorrect === !1 && (this.dataLayer.autoCorrect = !1), this.dataLayer.searchstaxConfig || (this.dataLayer.setSearchstaxConfig(e), this.searchHelper = new Ht(
|
|
3018
3055
|
{ ...e, sessionId: this.dataLayer.sessionId },
|
|
3019
3056
|
this.dataLayer
|
|
3020
3057
|
)), ((t = e.router) == null ? void 0 : t.enabled) === void 0 || ((s = e.router) == null ? void 0 : s.enabled) === !0) {
|
|
3021
|
-
this.routerEnabled = !0, this.routerHelper = new
|
|
3058
|
+
this.routerEnabled = !0, this.routerHelper = new rt(
|
|
3022
3059
|
e.router ? e.router : { enabled: !0 }
|
|
3023
3060
|
);
|
|
3024
3061
|
const a = this.routerHelper.urlToSearchObject(
|
|
@@ -3033,7 +3070,7 @@ class Ca {
|
|
|
3033
3070
|
);
|
|
3034
3071
|
});
|
|
3035
3072
|
} else
|
|
3036
|
-
this.routerHelper = new
|
|
3073
|
+
this.routerHelper = new rt({});
|
|
3037
3074
|
}
|
|
3038
3075
|
search(e) {
|
|
3039
3076
|
if (this.searchHelper) {
|
|
@@ -3104,7 +3141,7 @@ class Ca {
|
|
|
3104
3141
|
this.searchHelper && this.dataLayer.setLanguage(e);
|
|
3105
3142
|
}
|
|
3106
3143
|
addSearchInputWidget(e, t) {
|
|
3107
|
-
this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new
|
|
3144
|
+
this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new ya({
|
|
3108
3145
|
containerId: e,
|
|
3109
3146
|
config: t,
|
|
3110
3147
|
searchTrigger: this.executeSearch.bind(this),
|
|
@@ -3113,14 +3150,14 @@ class Ca {
|
|
|
3113
3150
|
}));
|
|
3114
3151
|
}
|
|
3115
3152
|
addAnswerWidget(e, t) {
|
|
3116
|
-
this.dataLayer.setAnswerData(""), this.answerWidget = new
|
|
3153
|
+
this.dataLayer.setAnswerData(""), this.answerWidget = new Ca({
|
|
3117
3154
|
containerId: e,
|
|
3118
3155
|
config: t,
|
|
3119
3156
|
dataLayer: this.dataLayer
|
|
3120
3157
|
});
|
|
3121
3158
|
}
|
|
3122
3159
|
addSearchResultsWidget(e, t) {
|
|
3123
|
-
this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new
|
|
3160
|
+
this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new xa({
|
|
3124
3161
|
containerId: e,
|
|
3125
3162
|
linkClickCallback: this.executeLinkClick.bind(this),
|
|
3126
3163
|
searchTrigger: this.executeSearch.bind(this),
|
|
@@ -3129,7 +3166,7 @@ class Ca {
|
|
|
3129
3166
|
}));
|
|
3130
3167
|
}
|
|
3131
3168
|
addPaginationWidget(e, t) {
|
|
3132
|
-
this.searchPaginationConfig = t, this.searchPaginationWidget = new
|
|
3169
|
+
this.searchPaginationConfig = t, this.searchPaginationWidget = new ma({
|
|
3133
3170
|
containerId: e,
|
|
3134
3171
|
config: t,
|
|
3135
3172
|
dataLayer: this.dataLayer,
|
|
@@ -3137,7 +3174,7 @@ class Ca {
|
|
|
3137
3174
|
});
|
|
3138
3175
|
}
|
|
3139
3176
|
addSearchFeedbackWidget(e, t) {
|
|
3140
|
-
this.searchFeedbackConfig || (this.searchFeedbackConfig = t, this.searchFeedbackWidget = new
|
|
3177
|
+
this.searchFeedbackConfig || (this.searchFeedbackConfig = t, this.searchFeedbackWidget = new va({
|
|
3141
3178
|
containerId: e,
|
|
3142
3179
|
config: t,
|
|
3143
3180
|
dataLayer: this.dataLayer,
|
|
@@ -3145,14 +3182,14 @@ class Ca {
|
|
|
3145
3182
|
}));
|
|
3146
3183
|
}
|
|
3147
3184
|
addSearchSortingWidget(e, t) {
|
|
3148
|
-
this.searchSortingConfig || (this.searchSortingConfig = t, this.searchSortingWidget = new
|
|
3185
|
+
this.searchSortingConfig || (this.searchSortingConfig = t, this.searchSortingWidget = new ba({
|
|
3149
3186
|
containerId: e,
|
|
3150
3187
|
config: t,
|
|
3151
3188
|
dataLayer: this.dataLayer
|
|
3152
3189
|
}));
|
|
3153
3190
|
}
|
|
3154
3191
|
addRelatedSearchesWidget(e, t) {
|
|
3155
|
-
this.relatedSearchesConfig || (this.relatedSearchesConfig = t, this.relatedSearchesWidget = new
|
|
3192
|
+
this.relatedSearchesConfig || (this.relatedSearchesConfig = t, this.relatedSearchesWidget = new fa({
|
|
3156
3193
|
containerId: e,
|
|
3157
3194
|
config: t,
|
|
3158
3195
|
dataLayer: this.dataLayer,
|
|
@@ -3162,14 +3199,14 @@ class Ca {
|
|
|
3162
3199
|
}, 0));
|
|
3163
3200
|
}
|
|
3164
3201
|
addExternalPromotionsWidget(e, t) {
|
|
3165
|
-
this.externalPromotionsConfig || (this.externalPromotionsConfig = t, this.externalPromotionsWidget = new
|
|
3202
|
+
this.externalPromotionsConfig || (this.externalPromotionsConfig = t, this.externalPromotionsWidget = new ga({
|
|
3166
3203
|
containerId: e,
|
|
3167
3204
|
config: t,
|
|
3168
3205
|
dataLayer: this.dataLayer
|
|
3169
3206
|
}));
|
|
3170
3207
|
}
|
|
3171
3208
|
addFacetsWidget(e, t) {
|
|
3172
|
-
this.searchFacetsConfig = t, this.searchFacetsWidget = new
|
|
3209
|
+
this.searchFacetsConfig = t, this.searchFacetsWidget = new pa(
|
|
3173
3210
|
{
|
|
3174
3211
|
containerId: e,
|
|
3175
3212
|
config: t,
|
|
@@ -3224,9 +3261,9 @@ class Ca {
|
|
|
3224
3261
|
}
|
|
3225
3262
|
const C = {
|
|
3226
3263
|
//@ts-ignore
|
|
3227
|
-
searchstax: new
|
|
3264
|
+
searchstax: new Sa("react")
|
|
3228
3265
|
};
|
|
3229
|
-
function
|
|
3266
|
+
function Ta(i) {
|
|
3230
3267
|
let e = !1;
|
|
3231
3268
|
const [t, s] = q([]);
|
|
3232
3269
|
ee(() => {
|
|
@@ -3270,7 +3307,8 @@ function La(i) {
|
|
|
3270
3307
|
type: "text",
|
|
3271
3308
|
id: "searchstax-search-input",
|
|
3272
3309
|
className: "searchstax-search-input",
|
|
3273
|
-
placeholder: "SEARCH FOR..."
|
|
3310
|
+
placeholder: "SEARCH FOR...",
|
|
3311
|
+
"aria-label": "search"
|
|
3274
3312
|
}
|
|
3275
3313
|
),
|
|
3276
3314
|
/* @__PURE__ */ u.jsx(
|
|
@@ -3283,6 +3321,7 @@ function La(i) {
|
|
|
3283
3321
|
"div",
|
|
3284
3322
|
{
|
|
3285
3323
|
className: "searchstax-autosuggest-item-term-container",
|
|
3324
|
+
tabIndex: 0,
|
|
3286
3325
|
dangerouslySetInnerHTML: { __html: o.term },
|
|
3287
3326
|
onMouseOver: () => {
|
|
3288
3327
|
c(o);
|
|
@@ -3295,12 +3334,12 @@ function La(i) {
|
|
|
3295
3334
|
})
|
|
3296
3335
|
}
|
|
3297
3336
|
),
|
|
3298
|
-
/* @__PURE__ */ u.jsx("button", { className: "searchstax-spinner-icon", id: "searchstax-search-input-action-button" })
|
|
3337
|
+
/* @__PURE__ */ u.jsx("button", { className: "searchstax-spinner-icon", id: "searchstax-search-input-action-button", "aria-label": "search" })
|
|
3299
3338
|
] }),
|
|
3300
3339
|
i.inputTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.inputTemplate(t, r, c, l) })
|
|
3301
3340
|
] }) }) });
|
|
3302
3341
|
}
|
|
3303
|
-
function
|
|
3342
|
+
function ka(i) {
|
|
3304
3343
|
const [e, t] = q(!1);
|
|
3305
3344
|
return ee(() => {
|
|
3306
3345
|
const s = {};
|
|
@@ -3326,10 +3365,10 @@ function Ta(i) {
|
|
|
3326
3365
|
" "
|
|
3327
3366
|
] }) });
|
|
3328
3367
|
}
|
|
3329
|
-
function
|
|
3368
|
+
function Ra(i) {
|
|
3330
3369
|
const [e, t] = q(
|
|
3331
3370
|
null
|
|
3332
|
-
), s =
|
|
3371
|
+
), s = Ot();
|
|
3333
3372
|
s.current = e;
|
|
3334
3373
|
const [a, r] = q(""), [c, l] = q(
|
|
3335
3374
|
null
|
|
@@ -3337,7 +3376,7 @@ function ka(i) {
|
|
|
3337
3376
|
m.preventDefault(), m.stopPropagation(), C.searchstax.executeLinkClick(g.uniqueId);
|
|
3338
3377
|
};
|
|
3339
3378
|
ee(() => {
|
|
3340
|
-
|
|
3379
|
+
f();
|
|
3341
3380
|
const g = {};
|
|
3342
3381
|
i.afterLinkClick && (g.afterLinkClick = i.afterLinkClick), C.searchstax.addSearchResultsWidget("searchstax-results-container", {
|
|
3343
3382
|
templates: {},
|
|
@@ -3346,12 +3385,15 @@ function ka(i) {
|
|
|
3346
3385
|
hooks: g
|
|
3347
3386
|
});
|
|
3348
3387
|
}, []);
|
|
3349
|
-
function d() {
|
|
3388
|
+
function d(g) {
|
|
3389
|
+
C.searchstax.executeSearch(g);
|
|
3390
|
+
}
|
|
3391
|
+
function f() {
|
|
3350
3392
|
C.searchstax.dataLayer.$searchResults.subscribe(
|
|
3351
3393
|
(g) => {
|
|
3352
|
-
var
|
|
3353
|
-
const m = s.current ?? [],
|
|
3354
|
-
((
|
|
3394
|
+
var k;
|
|
3395
|
+
const m = s.current ?? [], S = g ?? [], O = i.renderMethod === "infiniteScroll" ? [...m, ...S] : g;
|
|
3396
|
+
((k = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : k.page) === 1 ? t(S) : t(O);
|
|
3355
3397
|
}
|
|
3356
3398
|
), C.searchstax.dataLayer.$searchTermChange.subscribe((g) => {
|
|
3357
3399
|
r(g);
|
|
@@ -3378,62 +3420,77 @@ function ka(i) {
|
|
|
3378
3420
|
(c == null ? void 0 : c.spellingSuggestion) && /* @__PURE__ */ u.jsxs("span", { children: [
|
|
3379
3421
|
" Did you mean",
|
|
3380
3422
|
" ",
|
|
3381
|
-
/* @__PURE__ */ u.jsx(
|
|
3423
|
+
/* @__PURE__ */ u.jsx(
|
|
3424
|
+
"a",
|
|
3425
|
+
{
|
|
3426
|
+
href: "#",
|
|
3427
|
+
className: "searchstax-suggestion-term",
|
|
3428
|
+
onClick: () => {
|
|
3429
|
+
d(c == null ? void 0 : c.spellingSuggestion);
|
|
3430
|
+
},
|
|
3431
|
+
children: c == null ? void 0 : c.spellingSuggestion
|
|
3432
|
+
}
|
|
3433
|
+
),
|
|
3382
3434
|
"?"
|
|
3383
3435
|
] })
|
|
3384
3436
|
] }),
|
|
3385
|
-
/* @__PURE__ */ u.jsxs("
|
|
3386
|
-
/* @__PURE__ */ u.jsxs("
|
|
3437
|
+
/* @__PURE__ */ u.jsxs("ul", { children: [
|
|
3438
|
+
/* @__PURE__ */ u.jsxs("li", { children: [
|
|
3387
3439
|
" ",
|
|
3388
3440
|
"Try searching for search related terms or topics. We offer a wide variety of content to help you get the information you need.",
|
|
3389
3441
|
" "
|
|
3390
3442
|
] }),
|
|
3391
|
-
/* @__PURE__ */ u.jsx("
|
|
3443
|
+
/* @__PURE__ */ u.jsx("li", { children: "Lost? Click on the ‘X” in the Search Box to reset your search." })
|
|
3392
3444
|
] })
|
|
3393
3445
|
] }),
|
|
3394
|
-
e && e.length === 0 && a !== "" && a !== "*" && C.searchstax.dataLayer.parsedData.firstSearchHappened && i.noResultTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.noResultTemplate(a, c) }),
|
|
3446
|
+
e && e.length === 0 && a !== "" && a !== "*" && C.searchstax.dataLayer.parsedData.firstSearchHappened && i.noResultTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.noResultTemplate(a, c, d) }),
|
|
3395
3447
|
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.
|
|
3397
|
-
"
|
|
3448
|
+
return /* @__PURE__ */ u.jsx(
|
|
3449
|
+
"a",
|
|
3398
3450
|
{
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
g
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
src: g.thumbnail,
|
|
3418
|
-
className: "searchstax-thumbnail"
|
|
3419
|
-
}
|
|
3420
|
-
),
|
|
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
|
-
g.unmappedFields.map(function(m) {
|
|
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(
|
|
3451
|
+
href: g.url ?? "",
|
|
3452
|
+
onClick: (m) => {
|
|
3453
|
+
o(g, m);
|
|
3454
|
+
},
|
|
3455
|
+
onKeyDown: (m) => {
|
|
3456
|
+
(m.key === "Enter" || m.key === " ") && o(g, m);
|
|
3457
|
+
},
|
|
3458
|
+
tabIndex: 0,
|
|
3459
|
+
"data-searchstax-unique-result-id": g.uniqueId,
|
|
3460
|
+
className: "searchstax-result-item-link searchstax-result-item-link-wrapping",
|
|
3461
|
+
children: /* @__PURE__ */ u.jsxs(
|
|
3462
|
+
"div",
|
|
3463
|
+
{
|
|
3464
|
+
className: `searchstax-search-result ${g.thumbnail ? "has-thumbnail" : ""}`,
|
|
3465
|
+
children: [
|
|
3466
|
+
g.promoted && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-promoted" }),
|
|
3467
|
+
g.ribbon && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-ribbon", children: g.ribbon }),
|
|
3468
|
+
g.thumbnail && /* @__PURE__ */ u.jsx(
|
|
3427
3469
|
"img",
|
|
3428
3470
|
{
|
|
3429
|
-
src:
|
|
3430
|
-
className: "searchstax-
|
|
3471
|
+
src: g.thumbnail,
|
|
3472
|
+
className: "searchstax-thumbnail"
|
|
3431
3473
|
}
|
|
3432
|
-
)
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3474
|
+
),
|
|
3475
|
+
/* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-title-container", children: /* @__PURE__ */ u.jsx("span", { className: "searchstax-search-result-title", children: g.title }) }),
|
|
3476
|
+
g.paths && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", children: g.paths }),
|
|
3477
|
+
g.description && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-description searchstax-search-result-common", children: g.description }),
|
|
3478
|
+
g.unmappedFields.map(function(m) {
|
|
3479
|
+
return /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3480
|
+
m.isImage && typeof m.value == "string" && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-image-container", children: /* @__PURE__ */ u.jsx(
|
|
3481
|
+
"img",
|
|
3482
|
+
{
|
|
3483
|
+
src: m.value,
|
|
3484
|
+
className: "searchstax-result-image"
|
|
3485
|
+
}
|
|
3486
|
+
) }),
|
|
3487
|
+
!m.isImage && /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", children: m.value }) })
|
|
3488
|
+
] }, m.key);
|
|
3489
|
+
})
|
|
3490
|
+
]
|
|
3491
|
+
},
|
|
3492
|
+
g.uniqueId
|
|
3493
|
+
)
|
|
3437
3494
|
},
|
|
3438
3495
|
g.uniqueId
|
|
3439
3496
|
);
|
|
@@ -3441,7 +3498,7 @@ function ka(i) {
|
|
|
3441
3498
|
e && e.length > 0 && i.resultsTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.resultsTemplate(e, o) })
|
|
3442
3499
|
] }) }) }) });
|
|
3443
3500
|
}
|
|
3444
|
-
function
|
|
3501
|
+
function wa(i) {
|
|
3445
3502
|
let e = !1;
|
|
3446
3503
|
const [t, s] = q(!1), [a, r] = q(
|
|
3447
3504
|
null
|
|
@@ -3459,8 +3516,8 @@ function Ra(i) {
|
|
|
3459
3516
|
e || (C.searchstax.dataLayer.$searchObject.subscribe(() => {
|
|
3460
3517
|
o();
|
|
3461
3518
|
}), C.searchstax.dataLayer.$paginationData.subscribe(
|
|
3462
|
-
(
|
|
3463
|
-
r(
|
|
3519
|
+
(g) => {
|
|
3520
|
+
r(g);
|
|
3464
3521
|
}
|
|
3465
3522
|
), e = !0);
|
|
3466
3523
|
}
|
|
@@ -3470,16 +3527,16 @@ function Ra(i) {
|
|
|
3470
3527
|
{}
|
|
3471
3528
|
));
|
|
3472
3529
|
}
|
|
3473
|
-
function d(
|
|
3474
|
-
var
|
|
3475
|
-
(
|
|
3476
|
-
|
|
3530
|
+
function d(g) {
|
|
3531
|
+
var m;
|
|
3532
|
+
(m = C.searchstax.searchPaginationWidget) == null || m.nextPage(
|
|
3533
|
+
g
|
|
3477
3534
|
);
|
|
3478
3535
|
}
|
|
3479
|
-
function g
|
|
3480
|
-
var
|
|
3481
|
-
(
|
|
3482
|
-
|
|
3536
|
+
function f(g) {
|
|
3537
|
+
var m;
|
|
3538
|
+
(m = C.searchstax.searchPaginationWidget) == null || m.previousPage(
|
|
3539
|
+
g
|
|
3483
3540
|
);
|
|
3484
3541
|
}
|
|
3485
3542
|
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-pagination-container" + c, children: [
|
|
@@ -3489,9 +3546,13 @@ function Ra(i) {
|
|
|
3489
3546
|
{
|
|
3490
3547
|
className: "searchstax-pagination-previous",
|
|
3491
3548
|
style: a != null && a.isFirstPage ? { pointerEvents: "none" } : {},
|
|
3492
|
-
onClick: (
|
|
3493
|
-
g
|
|
3549
|
+
onClick: (g) => {
|
|
3550
|
+
f(g);
|
|
3551
|
+
},
|
|
3552
|
+
onKeyDown: (g) => {
|
|
3553
|
+
(g.key === "Enter" || g.key === " ") && f(g);
|
|
3494
3554
|
},
|
|
3555
|
+
tabIndex: 0,
|
|
3495
3556
|
id: "searchstax-pagination-previous",
|
|
3496
3557
|
children: [
|
|
3497
3558
|
" ",
|
|
@@ -3514,22 +3575,30 @@ function Ra(i) {
|
|
|
3514
3575
|
"a",
|
|
3515
3576
|
{
|
|
3516
3577
|
className: "searchstax-pagination-next",
|
|
3578
|
+
tabIndex: 0,
|
|
3517
3579
|
style: a != null && a.isLastPage ? { pointerEvents: "none" } : {},
|
|
3518
|
-
onClick: (
|
|
3519
|
-
d(
|
|
3580
|
+
onClick: (g) => {
|
|
3581
|
+
d(g);
|
|
3582
|
+
},
|
|
3583
|
+
onKeyDown: (g) => {
|
|
3584
|
+
(g.key === "Enter" || g.key === " ") && d(g);
|
|
3520
3585
|
},
|
|
3521
3586
|
id: "searchstax-pagination-next",
|
|
3522
3587
|
children: "Next >"
|
|
3523
3588
|
}
|
|
3524
3589
|
)
|
|
3525
3590
|
] }) }),
|
|
3526
|
-
i.paginationTemplate && a && !a.isInfiniteScroll && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.paginationTemplate(a, d,
|
|
3591
|
+
i.paginationTemplate && a && !a.isInfiniteScroll && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.paginationTemplate(a, d, f) }),
|
|
3527
3592
|
!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
3593
|
"a",
|
|
3529
3594
|
{
|
|
3530
3595
|
className: "searchstax-pagination-load-more",
|
|
3531
|
-
|
|
3532
|
-
|
|
3596
|
+
tabIndex: 0,
|
|
3597
|
+
onClick: (g) => {
|
|
3598
|
+
d(g);
|
|
3599
|
+
},
|
|
3600
|
+
onKeyDown: (g) => {
|
|
3601
|
+
(g.key === "Enter" || g.key === " ") && d(g);
|
|
3533
3602
|
},
|
|
3534
3603
|
children: "Show More"
|
|
3535
3604
|
}
|
|
@@ -3537,7 +3606,7 @@ function Ra(i) {
|
|
|
3537
3606
|
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
3607
|
] }) });
|
|
3539
3608
|
}
|
|
3540
|
-
function
|
|
3609
|
+
function Ea(i) {
|
|
3541
3610
|
let e = !1;
|
|
3542
3611
|
const [t, s] = q(
|
|
3543
3612
|
null
|
|
@@ -3563,12 +3632,12 @@ function wa(i) {
|
|
|
3563
3632
|
), e = !0);
|
|
3564
3633
|
}
|
|
3565
3634
|
function o(d) {
|
|
3566
|
-
var
|
|
3567
|
-
(
|
|
3635
|
+
var f;
|
|
3636
|
+
(f = C.searchstax.searchSortingWidget) == null || f.setOrderQuery(d);
|
|
3568
3637
|
}
|
|
3569
3638
|
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "search-sorting-container" + c, children: [
|
|
3570
3639
|
!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: "
|
|
3640
|
+
/* @__PURE__ */ u.jsx("label", { className: "searchstax-sorting-label", htmlFor: "searchstax-search-order-select", children: "Sort By" }),
|
|
3572
3641
|
/* @__PURE__ */ u.jsx(
|
|
3573
3642
|
"select",
|
|
3574
3643
|
{
|
|
@@ -3591,7 +3660,7 @@ function wa(i) {
|
|
|
3591
3660
|
) })
|
|
3592
3661
|
] }) });
|
|
3593
3662
|
}
|
|
3594
|
-
function
|
|
3663
|
+
function Ia(i) {
|
|
3595
3664
|
let e = !1;
|
|
3596
3665
|
const [t, s] = q(null), [a] = q(Math.random());
|
|
3597
3666
|
ee(() => {
|
|
@@ -3653,7 +3722,7 @@ function Ea(i) {
|
|
|
3653
3722
|
i.searchOverviewTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchOverviewTemplate(t, c) })
|
|
3654
3723
|
] }) });
|
|
3655
3724
|
}
|
|
3656
|
-
function
|
|
3725
|
+
function Pa(i) {
|
|
3657
3726
|
const [e, t] = q(
|
|
3658
3727
|
null
|
|
3659
3728
|
), [s, a] = q(
|
|
@@ -3662,11 +3731,11 @@ function Ia(i) {
|
|
|
3662
3731
|
[]
|
|
3663
3732
|
), [l, o] = q(
|
|
3664
3733
|
{}
|
|
3665
|
-
), d = {},
|
|
3666
|
-
let
|
|
3734
|
+
), d = {}, f = Math.random();
|
|
3735
|
+
let g = !1;
|
|
3667
3736
|
ee(() => {
|
|
3668
|
-
if (
|
|
3669
|
-
C.searchstax.addFacetsWidget("searchstax-facets-container" +
|
|
3737
|
+
if (m(), C.searchstax)
|
|
3738
|
+
C.searchstax.addFacetsWidget("searchstax-facets-container" + f, {
|
|
3670
3739
|
facetingType: i.facetingType,
|
|
3671
3740
|
specificFacets: i.specificFacets,
|
|
3672
3741
|
itemsPerPageDesktop: i.itemsPerPageDesktop,
|
|
@@ -3675,8 +3744,8 @@ function Ia(i) {
|
|
|
3675
3744
|
else
|
|
3676
3745
|
throw Error("Searchstax instance needs to be passed via props");
|
|
3677
3746
|
}, []);
|
|
3678
|
-
function
|
|
3679
|
-
|
|
3747
|
+
function m() {
|
|
3748
|
+
g || (C.searchstax.dataLayer.$facetsTemplateData.subscribe(
|
|
3680
3749
|
(v) => {
|
|
3681
3750
|
v != null && v.isMobile ? a(v) : t(v);
|
|
3682
3751
|
}
|
|
@@ -3686,73 +3755,73 @@ function Ia(i) {
|
|
|
3686
3755
|
(v ?? []).filter((j) => j.type === "checkbox")
|
|
3687
3756
|
);
|
|
3688
3757
|
}
|
|
3689
|
-
),
|
|
3758
|
+
), g = !0);
|
|
3690
3759
|
}
|
|
3691
3760
|
function S(v) {
|
|
3692
|
-
var
|
|
3693
|
-
(
|
|
3761
|
+
var x;
|
|
3762
|
+
(x = C.searchstax.searchFacetsWidget) == null || x.unselectFacet(v);
|
|
3694
3763
|
}
|
|
3695
3764
|
function O() {
|
|
3696
3765
|
var v;
|
|
3697
3766
|
(v = C.searchstax.searchFacetsWidget) == null || v.removeSelectedFacets();
|
|
3698
3767
|
}
|
|
3699
|
-
function
|
|
3768
|
+
function k(v) {
|
|
3700
3769
|
return !l[v];
|
|
3701
3770
|
}
|
|
3702
|
-
function
|
|
3703
|
-
|
|
3771
|
+
function R(v) {
|
|
3772
|
+
k(v) ? o({ ...l, [v]: !0 }) : o({ ...l, [v]: !1 });
|
|
3704
3773
|
}
|
|
3705
3774
|
function E(v) {
|
|
3706
|
-
var
|
|
3707
|
-
return (
|
|
3775
|
+
var x;
|
|
3776
|
+
return (x = C.searchstax.searchFacetsWidget) == null ? void 0 : x.isChecked(v);
|
|
3708
3777
|
}
|
|
3709
|
-
function T(v,
|
|
3778
|
+
function T(v, x, j, _, G) {
|
|
3710
3779
|
var Y;
|
|
3711
|
-
const
|
|
3712
|
-
|
|
3713
|
-
|
|
3780
|
+
const me = G ? "mobile-" : "desktop-", Q = document.getElementsByClassName(me + v);
|
|
3781
|
+
Q[0] && ((Y = C.searchstax.searchFacetsWidget) == null || Y.onFacetSelect(
|
|
3782
|
+
x,
|
|
3714
3783
|
j,
|
|
3715
|
-
|
|
3784
|
+
Q[0],
|
|
3716
3785
|
!1,
|
|
3717
3786
|
E(j)
|
|
3718
3787
|
));
|
|
3719
3788
|
}
|
|
3720
|
-
function N(v,
|
|
3789
|
+
function N(v, x) {
|
|
3721
3790
|
var j;
|
|
3722
3791
|
(j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
|
|
3723
3792
|
v,
|
|
3724
|
-
|
|
3793
|
+
x,
|
|
3725
3794
|
!1
|
|
3726
3795
|
);
|
|
3727
3796
|
}
|
|
3728
|
-
function B(v,
|
|
3797
|
+
function B(v, x) {
|
|
3729
3798
|
var j;
|
|
3730
3799
|
(j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
|
|
3731
3800
|
v,
|
|
3732
|
-
|
|
3801
|
+
x,
|
|
3733
3802
|
!0
|
|
3734
3803
|
);
|
|
3735
3804
|
}
|
|
3736
|
-
function
|
|
3805
|
+
function M() {
|
|
3737
3806
|
var v;
|
|
3738
3807
|
(v = C.searchstax.searchFacetsWidget) == null || v.openOverlay();
|
|
3739
3808
|
}
|
|
3740
|
-
function
|
|
3809
|
+
function K() {
|
|
3741
3810
|
var v;
|
|
3742
3811
|
(v = C.searchstax.searchFacetsWidget) == null || v.closeOverlay();
|
|
3743
3812
|
}
|
|
3744
|
-
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-facets-container" +
|
|
3813
|
+
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-facets-container" + f, children: [
|
|
3745
3814
|
(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
3815
|
"div",
|
|
3747
3816
|
{
|
|
3748
|
-
className: `searchstax-facet-container ${
|
|
3817
|
+
className: `searchstax-facet-container ${k(v.name) ? "active" : ""}`,
|
|
3749
3818
|
children: /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3750
3819
|
/* @__PURE__ */ u.jsxs(
|
|
3751
3820
|
"div",
|
|
3752
3821
|
{
|
|
3753
3822
|
className: "searchstax-facet-title-container",
|
|
3754
3823
|
onClick: () => {
|
|
3755
|
-
|
|
3824
|
+
R(v.name);
|
|
3756
3825
|
},
|
|
3757
3826
|
children: [
|
|
3758
3827
|
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-title", children: [
|
|
@@ -3767,10 +3836,10 @@ function Ia(i) {
|
|
|
3767
3836
|
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
|
|
3768
3837
|
v.values.map(
|
|
3769
3838
|
//@ts-ignore
|
|
3770
|
-
(
|
|
3839
|
+
(x, j) => (d[j + v.name] = tt(), /* @__PURE__ */ u.jsxs(
|
|
3771
3840
|
"div",
|
|
3772
3841
|
{
|
|
3773
|
-
className: `searchstax-facet-value-container ${
|
|
3842
|
+
className: `searchstax-facet-value-container ${x.disabled ? "searchstax-facet-value-disabled" : ""}`,
|
|
3774
3843
|
ref: d[j + v.name],
|
|
3775
3844
|
children: [
|
|
3776
3845
|
/* @__PURE__ */ u.jsx(
|
|
@@ -3782,14 +3851,15 @@ function Ia(i) {
|
|
|
3782
3851
|
{
|
|
3783
3852
|
type: "checkbox",
|
|
3784
3853
|
className: "searchstax-facet-input-checkbox",
|
|
3785
|
-
checked: E(
|
|
3854
|
+
checked: E(x),
|
|
3855
|
+
"aria-label": x.value + " " + x.count,
|
|
3786
3856
|
readOnly: !0,
|
|
3787
|
-
disabled:
|
|
3857
|
+
disabled: x.disabled,
|
|
3788
3858
|
onClick: (_) => {
|
|
3789
3859
|
T(
|
|
3790
3860
|
j + v.name,
|
|
3791
3861
|
_,
|
|
3792
|
-
|
|
3862
|
+
x
|
|
3793
3863
|
);
|
|
3794
3864
|
}
|
|
3795
3865
|
}
|
|
@@ -3804,10 +3874,10 @@ function Ia(i) {
|
|
|
3804
3874
|
T(
|
|
3805
3875
|
j + v.name,
|
|
3806
3876
|
_,
|
|
3807
|
-
|
|
3877
|
+
x
|
|
3808
3878
|
);
|
|
3809
3879
|
},
|
|
3810
|
-
children:
|
|
3880
|
+
children: x.value
|
|
3811
3881
|
}
|
|
3812
3882
|
),
|
|
3813
3883
|
/* @__PURE__ */ u.jsxs(
|
|
@@ -3818,27 +3888,30 @@ function Ia(i) {
|
|
|
3818
3888
|
T(
|
|
3819
3889
|
j + v.name,
|
|
3820
3890
|
_,
|
|
3821
|
-
|
|
3891
|
+
x
|
|
3822
3892
|
);
|
|
3823
3893
|
},
|
|
3824
3894
|
children: [
|
|
3825
3895
|
"(",
|
|
3826
|
-
|
|
3896
|
+
x.count,
|
|
3827
3897
|
")"
|
|
3828
3898
|
]
|
|
3829
3899
|
}
|
|
3830
3900
|
)
|
|
3831
3901
|
]
|
|
3832
3902
|
},
|
|
3833
|
-
|
|
3903
|
+
x.value + x.parentName
|
|
3834
3904
|
))
|
|
3835
3905
|
),
|
|
3836
3906
|
v.hasMoreFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-container", children: /* @__PURE__ */ u.jsxs(
|
|
3837
3907
|
"div",
|
|
3838
3908
|
{
|
|
3839
3909
|
className: "searchstax-facet-show-more-container",
|
|
3840
|
-
onClick: (
|
|
3841
|
-
N(
|
|
3910
|
+
onClick: (x) => {
|
|
3911
|
+
N(x, v);
|
|
3912
|
+
},
|
|
3913
|
+
onKeyDown: (x) => {
|
|
3914
|
+
(x.key === "Enter" || x.key === " ") && N(x, v);
|
|
3842
3915
|
},
|
|
3843
3916
|
children: [
|
|
3844
3917
|
v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
|
|
@@ -3854,8 +3927,8 @@ function Ia(i) {
|
|
|
3854
3927
|
i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateDesktop(
|
|
3855
3928
|
e,
|
|
3856
3929
|
d,
|
|
3857
|
-
R,
|
|
3858
3930
|
k,
|
|
3931
|
+
R,
|
|
3859
3932
|
T,
|
|
3860
3933
|
E,
|
|
3861
3934
|
N
|
|
@@ -3866,7 +3939,7 @@ function Ia(i) {
|
|
|
3866
3939
|
{
|
|
3867
3940
|
className: "searchstax-facets-pill searchstax-facets-pill-filter-by",
|
|
3868
3941
|
onClick: () => {
|
|
3869
|
-
|
|
3942
|
+
M();
|
|
3870
3943
|
},
|
|
3871
3944
|
children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-label", children: "Filter By" })
|
|
3872
3945
|
}
|
|
@@ -3915,7 +3988,7 @@ function Ia(i) {
|
|
|
3915
3988
|
{
|
|
3916
3989
|
className: "searchstax-search-close",
|
|
3917
3990
|
onClick: () => {
|
|
3918
|
-
|
|
3991
|
+
K();
|
|
3919
3992
|
}
|
|
3920
3993
|
}
|
|
3921
3994
|
)
|
|
@@ -3923,14 +3996,14 @@ function Ia(i) {
|
|
|
3923
3996
|
/* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: s == null ? void 0 : s.facets.map((v) => /* @__PURE__ */ u.jsx(
|
|
3924
3997
|
"div",
|
|
3925
3998
|
{
|
|
3926
|
-
className: `searchstax-facet-container ${
|
|
3999
|
+
className: `searchstax-facet-container ${k(v.name) ? "active" : ""}`,
|
|
3927
4000
|
children: /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3928
4001
|
/* @__PURE__ */ u.jsxs(
|
|
3929
4002
|
"div",
|
|
3930
4003
|
{
|
|
3931
4004
|
className: "searchstax-facet-title-container",
|
|
3932
4005
|
onClick: () => {
|
|
3933
|
-
|
|
4006
|
+
R(v.name);
|
|
3934
4007
|
},
|
|
3935
4008
|
children: [
|
|
3936
4009
|
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-title", children: [
|
|
@@ -3945,10 +4018,10 @@ function Ia(i) {
|
|
|
3945
4018
|
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
|
|
3946
4019
|
v.values.map(
|
|
3947
4020
|
//@ts-ignore
|
|
3948
|
-
(
|
|
4021
|
+
(x, j) => (d[j + v.name] = tt(), /* @__PURE__ */ u.jsxs(
|
|
3949
4022
|
"div",
|
|
3950
4023
|
{
|
|
3951
|
-
className: `searchstax-facet-value-container ${
|
|
4024
|
+
className: `searchstax-facet-value-container ${x.disabled ? "searchstax-facet-value-disabled" : ""}`,
|
|
3952
4025
|
ref: d[j + v.name],
|
|
3953
4026
|
children: [
|
|
3954
4027
|
/* @__PURE__ */ u.jsx(
|
|
@@ -3960,14 +4033,15 @@ function Ia(i) {
|
|
|
3960
4033
|
{
|
|
3961
4034
|
type: "checkbox",
|
|
3962
4035
|
className: "searchstax-facet-input-checkbox",
|
|
3963
|
-
checked: E(
|
|
4036
|
+
checked: E(x),
|
|
4037
|
+
"aria-label": x.value + " " + x.count,
|
|
3964
4038
|
readOnly: !0,
|
|
3965
|
-
disabled:
|
|
4039
|
+
disabled: x.disabled,
|
|
3966
4040
|
onClick: (_) => {
|
|
3967
4041
|
T(
|
|
3968
4042
|
j + v.name,
|
|
3969
4043
|
_,
|
|
3970
|
-
|
|
4044
|
+
x,
|
|
3971
4045
|
!0,
|
|
3972
4046
|
!0
|
|
3973
4047
|
);
|
|
@@ -3984,10 +4058,10 @@ function Ia(i) {
|
|
|
3984
4058
|
T(
|
|
3985
4059
|
j + v.name,
|
|
3986
4060
|
_,
|
|
3987
|
-
|
|
4061
|
+
x
|
|
3988
4062
|
);
|
|
3989
4063
|
},
|
|
3990
|
-
children:
|
|
4064
|
+
children: x.value
|
|
3991
4065
|
}
|
|
3992
4066
|
),
|
|
3993
4067
|
/* @__PURE__ */ u.jsxs(
|
|
@@ -3998,19 +4072,19 @@ function Ia(i) {
|
|
|
3998
4072
|
T(
|
|
3999
4073
|
j + v.name,
|
|
4000
4074
|
_,
|
|
4001
|
-
|
|
4075
|
+
x
|
|
4002
4076
|
);
|
|
4003
4077
|
},
|
|
4004
4078
|
children: [
|
|
4005
4079
|
"(",
|
|
4006
|
-
|
|
4080
|
+
x.count,
|
|
4007
4081
|
")"
|
|
4008
4082
|
]
|
|
4009
4083
|
}
|
|
4010
4084
|
)
|
|
4011
4085
|
]
|
|
4012
4086
|
},
|
|
4013
|
-
|
|
4087
|
+
x.value + x.parentName
|
|
4014
4088
|
))
|
|
4015
4089
|
),
|
|
4016
4090
|
/* @__PURE__ */ u.jsx(
|
|
@@ -4022,9 +4096,13 @@ function Ia(i) {
|
|
|
4022
4096
|
"div",
|
|
4023
4097
|
{
|
|
4024
4098
|
className: "searchstax-facet-show-more-container",
|
|
4025
|
-
onClick: (
|
|
4026
|
-
B(
|
|
4099
|
+
onClick: (x) => {
|
|
4100
|
+
B(x, v);
|
|
4027
4101
|
},
|
|
4102
|
+
onKeyDown: (x) => {
|
|
4103
|
+
(x.key === "Enter" || x.key === " ") && B(x, v);
|
|
4104
|
+
},
|
|
4105
|
+
tabIndex: 0,
|
|
4028
4106
|
children: [
|
|
4029
4107
|
v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
|
|
4030
4108
|
!v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-button searchstax-facet-show-button", children: "more" })
|
|
@@ -4043,7 +4121,7 @@ function Ia(i) {
|
|
|
4043
4121
|
{
|
|
4044
4122
|
className: "searchstax-facets-mobile-overlay-done",
|
|
4045
4123
|
onClick: () => {
|
|
4046
|
-
|
|
4124
|
+
K();
|
|
4047
4125
|
},
|
|
4048
4126
|
children: "Done"
|
|
4049
4127
|
}
|
|
@@ -4056,19 +4134,19 @@ function Ia(i) {
|
|
|
4056
4134
|
s,
|
|
4057
4135
|
r,
|
|
4058
4136
|
d,
|
|
4059
|
-
R,
|
|
4060
4137
|
k,
|
|
4138
|
+
R,
|
|
4061
4139
|
T,
|
|
4062
4140
|
E,
|
|
4063
4141
|
S,
|
|
4064
4142
|
B,
|
|
4065
|
-
|
|
4066
|
-
|
|
4143
|
+
M,
|
|
4144
|
+
K,
|
|
4067
4145
|
O
|
|
4068
4146
|
) })
|
|
4069
4147
|
] }) });
|
|
4070
4148
|
}
|
|
4071
|
-
function
|
|
4149
|
+
function ja(i) {
|
|
4072
4150
|
let e = !1;
|
|
4073
4151
|
const [t, s] = q(null), [a] = q(Math.random());
|
|
4074
4152
|
ee(() => {
|
|
@@ -4102,6 +4180,10 @@ function Pa(i) {
|
|
|
4102
4180
|
onClick: () => {
|
|
4103
4181
|
c(l);
|
|
4104
4182
|
},
|
|
4183
|
+
onKeyDown: (o) => {
|
|
4184
|
+
(o.key === "Enter" || o.key === " ") && c(l);
|
|
4185
|
+
},
|
|
4186
|
+
tabIndex: 0,
|
|
4105
4187
|
className: "searchstax-related-search searchstax-related-search-item",
|
|
4106
4188
|
children: [
|
|
4107
4189
|
" ",
|
|
@@ -4115,7 +4197,7 @@ function Pa(i) {
|
|
|
4115
4197
|
i.searchRelatedSearchesTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchRelatedSearchesTemplate(t, c) })
|
|
4116
4198
|
] });
|
|
4117
4199
|
}
|
|
4118
|
-
function
|
|
4200
|
+
function Fa(i) {
|
|
4119
4201
|
let e = !1;
|
|
4120
4202
|
const [t, s] = q(
|
|
4121
4203
|
null
|
|
@@ -4166,13 +4248,13 @@ function ja(i) {
|
|
|
4166
4248
|
] }) });
|
|
4167
4249
|
}
|
|
4168
4250
|
export {
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4251
|
+
Fa as SearchstaxExternalPromotionsWidget,
|
|
4252
|
+
Pa as SearchstaxFacetsWidget,
|
|
4253
|
+
Ta as SearchstaxInputWidget,
|
|
4254
|
+
Ia as SearchstaxOverviewWidget,
|
|
4255
|
+
wa as SearchstaxPaginationWidget,
|
|
4256
|
+
ja as SearchstaxRelatedSearchesWidget,
|
|
4257
|
+
Ra as SearchstaxResultWidget,
|
|
4258
|
+
Ea as SearchstaxSortingWidget,
|
|
4259
|
+
ka as SearchstaxWrapper
|
|
4178
4260
|
};
|