@searchstax-inc/searchstudio-ux-react 0.3.15 → 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.
|
@@ -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,12 +9,12 @@ 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
19
|
var f, g = {}, m = null, S = null;
|
|
20
20
|
d !== void 0 && (m = "" + d), o.key !== void 0 && (m = "" + o.key), o.ref !== void 0 && (S = o.ref);
|
|
@@ -37,18 +37,18 @@ 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 =
|
|
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
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;
|
|
51
|
-
function
|
|
51
|
+
function T(n) {
|
|
52
52
|
{
|
|
53
53
|
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), L = 1; L < p; L++)
|
|
54
54
|
y[L - 1] = arguments[L];
|
|
@@ -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
|
|
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 || x || n === a || n === d || n === f || v || n === S ||
|
|
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,13 +81,13 @@ 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
87
|
function Q(n) {
|
|
88
88
|
if (n == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof n.tag == "number" &&
|
|
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")
|
|
91
91
|
return n.displayName || n.name || null;
|
|
92
92
|
if (typeof n == "string")
|
|
93
93
|
return n;
|
|
@@ -109,19 +109,19 @@ function Mt() {
|
|
|
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
118
|
case g:
|
|
119
119
|
var L = n.displayName || null;
|
|
120
120
|
return L !== null ? L : Q(n.type) || "Memo";
|
|
121
121
|
case m: {
|
|
122
|
-
var F = n,
|
|
122
|
+
var F = n, A = F._payload, I = F._init;
|
|
123
123
|
try {
|
|
124
|
-
return Q(I(
|
|
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
|
-
ne < 0 &&
|
|
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
|
|
300
|
+
return fe("Suspense");
|
|
301
301
|
case f:
|
|
302
|
-
return
|
|
302
|
+
return fe("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof n == "object")
|
|
305
305
|
switch (n.$$typeof) {
|
|
306
306
|
case o:
|
|
307
|
-
return
|
|
307
|
+
return ut(n.render);
|
|
308
308
|
case g:
|
|
309
|
-
return
|
|
309
|
+
return ye(n.type, p, y);
|
|
310
310
|
case m: {
|
|
311
|
-
var L = n, F = L._payload,
|
|
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
|
|
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
|
-
},
|
|
376
|
+
}, Ke, Qe, ke;
|
|
377
377
|
ke = {};
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
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
396
|
var y = Q(ce.current.type);
|
|
397
|
-
ke[y] || (
|
|
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,10 +408,10 @@ 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));
|
|
415
415
|
};
|
|
416
416
|
y.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
417
417
|
get: y,
|
|
@@ -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 = Q(
|
|
484
|
+
if (Re.current) {
|
|
485
|
+
var n = Q(Re.current.type);
|
|
486
486
|
if (n)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -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
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")
|
|
@@ -563,70 +563,70 @@ Check the top-level render call using <` + y + ">.");
|
|
|
563
563
|
return;
|
|
564
564
|
if (y) {
|
|
565
565
|
var L = Q(p);
|
|
566
|
-
|
|
567
|
-
} else if (p.PropTypes !== void 0 && !
|
|
568
|
-
|
|
566
|
+
gt(y, n.props, "prop", L, n);
|
|
567
|
+
} else if (p.PropTypes !== void 0 && !we) {
|
|
568
|
+
we = !0;
|
|
569
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
|
-
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved &&
|
|
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];
|
|
579
579
|
if (L !== "children" && L !== "key") {
|
|
580
|
-
te(n),
|
|
580
|
+
te(n), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), te(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
n.ref !== null && (te(n),
|
|
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
593
|
var V = kt(F);
|
|
594
|
-
V ? w += V : w +=
|
|
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);
|
|
619
|
+
}
|
|
620
|
+
function Pt(n, p, y) {
|
|
621
|
+
return Ze(n, p, y, !1);
|
|
622
622
|
}
|
|
623
|
-
var
|
|
624
|
-
oe.Fragment = s, oe.jsx =
|
|
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",
|
|
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,
|
|
@@ -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}`;
|
|
@@ -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
|
-
var
|
|
1492
|
-
function
|
|
1493
|
-
return !
|
|
1491
|
+
var Qt = /\S/;
|
|
1492
|
+
function zt(i) {
|
|
1493
|
+
return !Kt(Qt, i);
|
|
1494
1494
|
}
|
|
1495
|
-
var
|
|
1495
|
+
var Jt = {
|
|
1496
1496
|
"&": "&",
|
|
1497
1497
|
"<": "<",
|
|
1498
1498
|
">": ">",
|
|
@@ -1502,13 +1502,13 @@ 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;
|
|
@@ -1522,40 +1522,40 @@ function ea(i, e) {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
var g, m, S;
|
|
1524
1524
|
function O(x) {
|
|
1525
|
-
if (typeof x == "string" && (x = x.split(
|
|
1525
|
+
if (typeof x == "string" && (x = x.split(Xt, 2)), !ie(x) || x.length !== 2)
|
|
1526
1526
|
throw new Error("Invalid tags: " + x);
|
|
1527
|
-
g = new RegExp(
|
|
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 (R =
|
|
1532
|
-
for (var K = 0, v =
|
|
1533
|
-
N =
|
|
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
1534
|
` && (f(), o = "", d = 0, t = !1);
|
|
1535
|
-
if (!
|
|
1535
|
+
if (!k.scan(g))
|
|
1536
1536
|
break;
|
|
1537
|
-
if (c = !0, E =
|
|
1538
|
-
throw new Error("Unclosed tag at " +
|
|
1539
|
-
if (E == ">" ?
|
|
1540
|
-
s.push(
|
|
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
|
+
s.push(B);
|
|
1541
1541
|
else if (E === "/") {
|
|
1542
|
-
if (
|
|
1543
|
-
throw new Error('Unopened section "' +
|
|
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
|
-
E === "name" || E === "{" || E === "&" ? l = !0 : E === "=" && O(
|
|
1547
|
+
E === "name" || E === "{" || E === "&" ? l = !0 : E === "=" && O(T);
|
|
1548
1548
|
}
|
|
1549
|
-
if (f(),
|
|
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,7 +1643,7 @@ 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);
|
|
@@ -1665,7 +1665,7 @@ U.prototype.renderSection = function(i, e, t, s, a) {
|
|
|
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,7 +1688,7 @@ 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));
|
|
@@ -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}}
|
|
@@ -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>
|
|
@@ -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" tabindex="0">< 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" tabindex="0">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}}
|
|
@@ -1936,7 +1936,7 @@ const sa = {
|
|
|
1936
1936
|
`,
|
|
1937
1937
|
loadMoreButtonClass: "searchstax-pagination-load-more"
|
|
1938
1938
|
}
|
|
1939
|
-
},
|
|
1939
|
+
}, la = {
|
|
1940
1940
|
main: {
|
|
1941
1941
|
template: `
|
|
1942
1942
|
{{#hasRelatedSearches}}
|
|
@@ -1960,11 +1960,12 @@ const sa = {
|
|
|
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
1987
|
<input type="text" id="searchstax-search-input" class="searchstax-search-input" placeholder="SEARCH FOR..." aria-label="Search" />
|
|
1987
|
-
<button class="searchstax-spinner-icon" id="searchstax-search-input-action-button" aria-label="search"></button>
|
|
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,14 +1996,15 @@ 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: `
|
|
@@ -2022,7 +2024,7 @@ const sa = {
|
|
|
2022
2024
|
<img src="{{thumbnail}}" class="searchstax-thumbnail">
|
|
2023
2025
|
{{/thumbnail}}
|
|
2024
2026
|
<div class="searchstax-search-result-title-container">
|
|
2025
|
-
<
|
|
2027
|
+
<h5 class="searchstax-search-result-title">{{title}}</h5>
|
|
2026
2028
|
</div>
|
|
2027
2029
|
|
|
2028
2030
|
{{#paths}}
|
|
@@ -2057,21 +2059,21 @@ const sa = {
|
|
|
2057
2059
|
noSearchResultTemplate: {
|
|
2058
2060
|
template: `
|
|
2059
2061
|
{{#searchExecuted}}
|
|
2060
|
-
<div class="searchstax-no-results">
|
|
2062
|
+
<div class="searchstax-no-results" aria-live="polite">
|
|
2061
2063
|
Showing <strong>no results</strong> for <strong>"{{ searchTerm }}"</strong>
|
|
2062
2064
|
<br>
|
|
2063
2065
|
{{#spellingSuggestion}}
|
|
2064
2066
|
<span> Did you mean <a href="#" class="searchstax-suggestion-term" onclick="searchCallback('{{ spellingSuggestion }}')">{{ spellingSuggestion }}</a>?</span>
|
|
2065
2067
|
{{/spellingSuggestion}}
|
|
2066
2068
|
</div>
|
|
2067
|
-
<ul class="searchstax-no-results-list">
|
|
2069
|
+
<ul class="searchstax-no-results-list" aria-live="polite">
|
|
2068
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>
|
|
2069
2071
|
<li>Lost? Click on the ‘X” in the Search Box to reset your search.</li>
|
|
2070
2072
|
</ul>
|
|
2071
2073
|
{{/searchExecuted}}
|
|
2072
2074
|
`
|
|
2073
2075
|
}
|
|
2074
|
-
},
|
|
2076
|
+
}, da = {
|
|
2075
2077
|
main: {
|
|
2076
2078
|
template: `
|
|
2077
2079
|
{{#searchExecuted}}
|
|
@@ -2094,8 +2096,8 @@ const sa = {
|
|
|
2094
2096
|
};
|
|
2095
2097
|
class b {
|
|
2096
2098
|
}
|
|
2097
|
-
h(b, "answer",
|
|
2098
|
-
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 {
|
|
2099
2101
|
constructor(e) {
|
|
2100
2102
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "externalPromotionsContainerId"), h(this, "searchExternalPromotionsMainContainer", null);
|
|
2101
2103
|
var t, s;
|
|
@@ -2134,7 +2136,7 @@ class da {
|
|
|
2134
2136
|
renderMainTemplate(e) {
|
|
2135
2137
|
var t, s, a, r;
|
|
2136
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);
|
|
2137
|
-
if (this.dataLayer.renderingEngine ===
|
|
2139
|
+
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2138
2140
|
this.searchExternalPromotionsMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
|
|
2139
2141
|
P.render(c, e);
|
|
2140
2142
|
const l = typeof document < "u" ? document == null ? void 0 : document.getElementById(
|
|
@@ -2146,7 +2148,24 @@ class da {
|
|
|
2146
2148
|
}
|
|
2147
2149
|
}
|
|
2148
2150
|
}
|
|
2149
|
-
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 {
|
|
2150
2169
|
constructor(e, t) {
|
|
2151
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) => {
|
|
2152
2171
|
if (s.stopPropagation(), !a.disabled) {
|
|
@@ -2243,7 +2262,7 @@ class ga {
|
|
|
2243
2262
|
}
|
|
2244
2263
|
}
|
|
2245
2264
|
createFacetItem(e, t, s) {
|
|
2246
|
-
var a, r, c, l, o, d, f, g, m, S, O,
|
|
2265
|
+
var a, r, c, l, o, d, f, g, m, S, O, k;
|
|
2247
2266
|
if (typeof document < "u") {
|
|
2248
2267
|
const R = document == null ? void 0 : document.createElement("div");
|
|
2249
2268
|
R.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || R.classList.add("active");
|
|
@@ -2252,18 +2271,18 @@ class ga {
|
|
|
2252
2271
|
E,
|
|
2253
2272
|
e
|
|
2254
2273
|
), t.appendChild(R);
|
|
2255
|
-
const
|
|
2274
|
+
const T = R.querySelector(
|
|
2256
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))
|
|
2257
2276
|
);
|
|
2258
|
-
|
|
2277
|
+
T == null || T.addEventListener("click", () => {
|
|
2259
2278
|
R.classList.toggle("active");
|
|
2260
2279
|
});
|
|
2261
2280
|
const N = R.querySelector(
|
|
2262
|
-
"." + (((O = (S = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : S.facetItemContainerTemplate) == null ? void 0 : O.facetListContainerClass) || ((
|
|
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))
|
|
2263
2282
|
);
|
|
2264
|
-
N && (e.values.forEach((
|
|
2283
|
+
N && (e.values.forEach((B) => {
|
|
2265
2284
|
this.createFacetListItem(
|
|
2266
|
-
|
|
2285
|
+
B,
|
|
2267
2286
|
N
|
|
2268
2287
|
);
|
|
2269
2288
|
}), e.hasMoreFacets && this.createHasMoreComponent(e, N, s));
|
|
@@ -2274,25 +2293,25 @@ class ga {
|
|
|
2274
2293
|
return !!((t = this.dataLayer.searchObject.facets) != null && t.find((s) => J.deepEqual(s, this.extractFacetValue(e))));
|
|
2275
2294
|
}
|
|
2276
2295
|
createFacetListItem(e, t) {
|
|
2277
|
-
var s, a, r, c, l, o, d, f, g, m, S, O,
|
|
2296
|
+
var s, a, r, c, l, o, d, f, g, m, S, O, k;
|
|
2278
2297
|
if (typeof document < "u") {
|
|
2279
2298
|
const R = document == null ? void 0 : document.createElement("div");
|
|
2280
2299
|
R.classList.add("searchstax-facet-value-container"), e.disabled && R.classList.add("searchstax-facet-value-disabled");
|
|
2281
|
-
const E = this.isChecked(e),
|
|
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);
|
|
2282
2301
|
R.innerHTML = P.render(
|
|
2283
|
-
|
|
2302
|
+
T,
|
|
2284
2303
|
{ ...e, isChecked: E }
|
|
2285
2304
|
);
|
|
2286
2305
|
let N = (l = b.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
|
|
2287
|
-
N = ((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.facetItemTemplate) == null ? void 0 : f.checkTriggerClasses) || N, N.forEach((
|
|
2288
|
-
var
|
|
2289
|
-
(
|
|
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) => {
|
|
2290
2309
|
this.onFacetSelect(K, e, R);
|
|
2291
2310
|
});
|
|
2292
|
-
}), (
|
|
2311
|
+
}), (k = R.querySelector(
|
|
2293
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))
|
|
2294
|
-
)) == null ||
|
|
2295
|
-
this.onFacetSelect(
|
|
2313
|
+
)) == null || k.addEventListener("click", (B) => {
|
|
2314
|
+
this.onFacetSelect(B, e, R, !0);
|
|
2296
2315
|
}), t.appendChild(R);
|
|
2297
2316
|
}
|
|
2298
2317
|
}
|
|
@@ -2322,27 +2341,27 @@ class ga {
|
|
|
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
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
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
|
-
if (this.dataLayer.renderingEngine ===
|
|
2351
|
+
if (this.dataLayer.renderingEngine === W.mustache && this.searchFacetsMainContainer) {
|
|
2333
2352
|
this.searchFacetsMainContainer.innerHTML = P.render(
|
|
2334
2353
|
O,
|
|
2335
2354
|
{
|
|
2336
2355
|
...e
|
|
2337
2356
|
}
|
|
2338
2357
|
);
|
|
2339
|
-
const
|
|
2358
|
+
const k = (f = this.searchFacetsMainContainer) == null ? void 0 : f.querySelector(
|
|
2340
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
|
-
|
|
2361
|
+
if (k) {
|
|
2362
|
+
k.innerHTML = "";
|
|
2344
2363
|
for (const R of e.facets)
|
|
2345
|
-
this.createFacetItem(R,
|
|
2364
|
+
this.createFacetItem(R, k);
|
|
2346
2365
|
if (this.searchFacetsMainContainer) {
|
|
2347
2366
|
const R = this.searchFacetsMainContainer.querySelector(
|
|
2348
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)
|
|
@@ -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, f, g, m, S, O,
|
|
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
|
-
|
|
2471
|
+
const M = document == null ? void 0 : document.createElement("div");
|
|
2472
|
+
M.classList.add("searchstax-facets-container-mobile");
|
|
2454
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
|
-
if (this.dataLayer.renderingEngine ===
|
|
2456
|
-
if (
|
|
2474
|
+
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2475
|
+
if (M.innerHTML = P.render(K, {
|
|
2457
2476
|
...e,
|
|
2458
2477
|
overlayOpened: this.overlayOpened
|
|
2459
|
-
}), (c = this.searchFacetsMainContainer) == null || c.appendChild(
|
|
2478
|
+
}), (c = this.searchFacetsMainContainer) == null || c.appendChild(M), (o = (l = this.config) == null ? void 0 : l.templates) != null && o.mainTemplateMobile)
|
|
2460
2479
|
for (const _ of ((g = (f = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : f.mainTemplateMobile) == null ? void 0 : g.closeOverlayTriggerClasses) || []) {
|
|
2461
|
-
const G =
|
|
2480
|
+
const G = M.querySelector("." + _);
|
|
2462
2481
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2463
2482
|
}
|
|
2464
2483
|
else
|
|
2465
2484
|
for (const _ of b.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
|
|
2466
|
-
const G =
|
|
2485
|
+
const G = M.querySelector("." + _);
|
|
2467
2486
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2468
2487
|
}
|
|
2469
|
-
const v =
|
|
2488
|
+
const v = M.querySelector(
|
|
2470
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 x =
|
|
2474
|
-
"." + (((E = (R = (
|
|
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
2495
|
x && (this.createSelectedFacetsComponents(x), this.createClearFacetsComponents(x));
|
|
2477
|
-
const j =
|
|
2478
|
-
"." + (((
|
|
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,7 +2505,7 @@ 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
2511
|
var t, s, a, r, c, l, o, d, f;
|
|
@@ -2561,7 +2580,7 @@ class pa {
|
|
|
2561
2580
|
var t, s, a, r, c, l, o, d, f, g;
|
|
2562
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));
|
|
2563
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);
|
|
2564
|
-
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 ===
|
|
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(
|
|
2565
2584
|
m,
|
|
2566
2585
|
e
|
|
2567
2586
|
), setTimeout(() => {
|
|
@@ -2569,7 +2588,7 @@ class pa {
|
|
|
2569
2588
|
}, 0));
|
|
2570
2589
|
}
|
|
2571
2590
|
}
|
|
2572
|
-
class
|
|
2591
|
+
class fa {
|
|
2573
2592
|
constructor(e) {
|
|
2574
2593
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "relatedSearchesContainerClass"), h(this, "searchRelatedSearchesMainContainer", null), h(this, "track");
|
|
2575
2594
|
var t, s;
|
|
@@ -2592,7 +2611,7 @@ class ma {
|
|
|
2592
2611
|
var s, a, r, c, l;
|
|
2593
2612
|
if (typeof document < "u") {
|
|
2594
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;
|
|
2595
|
-
if (this.dataLayer.renderingEngine ===
|
|
2614
|
+
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2596
2615
|
o.innerHTML = P.render(
|
|
2597
2616
|
d,
|
|
2598
2617
|
e
|
|
@@ -2615,7 +2634,7 @@ class ma {
|
|
|
2615
2634
|
renderMainTemplate(e) {
|
|
2616
2635
|
var t, s, a, r;
|
|
2617
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;
|
|
2618
|
-
if (this.dataLayer.renderingEngine ===
|
|
2637
|
+
if (this.dataLayer.renderingEngine === W.mustache && this.searchRelatedSearchesMainContainer) {
|
|
2619
2638
|
this.searchRelatedSearchesMainContainer.innerHTML = "", this.searchRelatedSearchesMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
|
|
2620
2639
|
P.render(c, e);
|
|
2621
2640
|
const l = (r = this.searchRelatedSearchesMainContainer) == null ? void 0 : r.querySelector(
|
|
@@ -2627,7 +2646,7 @@ class ma {
|
|
|
2627
2646
|
}
|
|
2628
2647
|
}
|
|
2629
2648
|
}
|
|
2630
|
-
class
|
|
2649
|
+
class va {
|
|
2631
2650
|
constructor(e) {
|
|
2632
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(
|
|
2633
2652
|
this.containerId
|
|
@@ -2663,7 +2682,7 @@ class fa {
|
|
|
2663
2682
|
renderMainTemplate(e) {
|
|
2664
2683
|
var t, s, a;
|
|
2665
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;
|
|
2666
|
-
this.dataLayer.renderingEngine ===
|
|
2685
|
+
this.dataLayer.renderingEngine === W.mustache && (this.searchFeedbackMainContainer.innerHTML = P.render(
|
|
2667
2686
|
r,
|
|
2668
2687
|
e
|
|
2669
2688
|
), setTimeout(() => {
|
|
@@ -2671,7 +2690,7 @@ class fa {
|
|
|
2671
2690
|
}, 0));
|
|
2672
2691
|
}
|
|
2673
2692
|
}
|
|
2674
|
-
class
|
|
2693
|
+
class ya {
|
|
2675
2694
|
constructor(e) {
|
|
2676
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());
|
|
2677
2696
|
}
|
|
@@ -2682,7 +2701,7 @@ class va {
|
|
|
2682
2701
|
if (!r)
|
|
2683
2702
|
throw new Error("Search input container not found");
|
|
2684
2703
|
const c = ((t = (e = this.config.templates) == null ? void 0 : e.mainTemplate) == null ? void 0 : t.template) || b.searchInput.mainTemplate.template;
|
|
2685
|
-
if (this.dataLayer.renderingEngine ===
|
|
2704
|
+
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2686
2705
|
const d = P.render(c, {});
|
|
2687
2706
|
r.innerHTML = d;
|
|
2688
2707
|
}
|
|
@@ -2695,7 +2714,7 @@ class va {
|
|
|
2695
2714
|
}
|
|
2696
2715
|
createAutosuggestContainer() {
|
|
2697
2716
|
var e;
|
|
2698
|
-
this.dataLayer.renderingEngine ===
|
|
2717
|
+
this.dataLayer.renderingEngine === W.mustache && typeof document < "u" && (this.autosuggestContainer = document == null ? void 0 : document.createElement("div"), this.autosuggestContainer.classList.add(
|
|
2699
2718
|
"searchstax-autosuggest-container"
|
|
2700
2719
|
), this.autosuggestContainer.addEventListener("mouseleave", () => {
|
|
2701
2720
|
this.resetAutosuggestSelection(), this.markActiveAutosuggestItem();
|
|
@@ -2831,7 +2850,7 @@ class va {
|
|
|
2831
2850
|
}
|
|
2832
2851
|
}
|
|
2833
2852
|
}
|
|
2834
|
-
class
|
|
2853
|
+
class xa {
|
|
2835
2854
|
constructor(e) {
|
|
2836
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(() => {
|
|
2837
2856
|
this.dataLayer.setSearchObject({ ...this.dataLayer.searchObject, itemsPerPage: this.config.resultsPerPage || 10 });
|
|
@@ -2846,7 +2865,9 @@ class ya {
|
|
|
2846
2865
|
this.dataLayer.setIsInfiniteScroll(e.config.renderMethod === "infiniteScroll"), this.initializeSubscriptions(), this.renderMainTemplate();
|
|
2847
2866
|
}
|
|
2848
2867
|
initializeSubscriptions() {
|
|
2849
|
-
this.dataLayer.$
|
|
2868
|
+
this.dataLayer.$searchObject.subscribe(() => {
|
|
2869
|
+
de.setAccessibilityText("Searching...");
|
|
2870
|
+
}), this.dataLayer.$searchResults.subscribe((e) => {
|
|
2850
2871
|
e && this.searchResultsContainer && this.renderResults(e);
|
|
2851
2872
|
});
|
|
2852
2873
|
}
|
|
@@ -2856,7 +2877,7 @@ class ya {
|
|
|
2856
2877
|
renderNoResultsTemplate() {
|
|
2857
2878
|
var e, t, s, a, r;
|
|
2858
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) ?? "";
|
|
2859
|
-
if (this.dataLayer.renderingEngine ===
|
|
2880
|
+
if (this.dataLayer.renderingEngine === W.mustache && this.searchResultsContainer && (this.searchResultsContainer.innerHTML = P.render(
|
|
2860
2881
|
c,
|
|
2861
2882
|
{
|
|
2862
2883
|
spellingSuggestion: l,
|
|
@@ -2872,10 +2893,11 @@ class ya {
|
|
|
2872
2893
|
}
|
|
2873
2894
|
renderResults(e) {
|
|
2874
2895
|
var t, s, a, r, c;
|
|
2875
|
-
if (this.dataLayer.renderingEngine ===
|
|
2896
|
+
if (this.dataLayer.renderingEngine === W.mustache && this.searchResultsContainer)
|
|
2876
2897
|
if (this.removeLinkClickEvents(), e.length === 0)
|
|
2877
|
-
this.renderNoResultsTemplate();
|
|
2898
|
+
de.setAccessibilityText(""), this.renderNoResultsTemplate();
|
|
2878
2899
|
else {
|
|
2900
|
+
de.setAccessibilityText("Results are returned. Press tab to navigate through results");
|
|
2879
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));
|
|
2880
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(
|
|
2881
2903
|
this.searchResultsContainer.querySelectorAll(
|
|
@@ -2912,7 +2934,7 @@ class ya {
|
|
|
2912
2934
|
renderMainTemplate() {
|
|
2913
2935
|
var e, t, s, a;
|
|
2914
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);
|
|
2915
|
-
this.dataLayer.renderingEngine ===
|
|
2937
|
+
this.dataLayer.renderingEngine === W.mustache && (this.searchResultsMainContainer.innerHTML = P.render(
|
|
2916
2938
|
r,
|
|
2917
2939
|
{}
|
|
2918
2940
|
), setTimeout(() => {
|
|
@@ -2925,7 +2947,7 @@ class ya {
|
|
|
2925
2947
|
}, 0));
|
|
2926
2948
|
}
|
|
2927
2949
|
}
|
|
2928
|
-
class
|
|
2950
|
+
class ba {
|
|
2929
2951
|
constructor(e) {
|
|
2930
2952
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "selectId"), h(this, "searchSortingMainContainer", null);
|
|
2931
2953
|
var t, s;
|
|
@@ -2962,7 +2984,7 @@ class xa {
|
|
|
2962
2984
|
renderMainTemplate(e) {
|
|
2963
2985
|
var t, s, a;
|
|
2964
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;
|
|
2965
|
-
if (this.dataLayer.renderingEngine ===
|
|
2987
|
+
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2966
2988
|
this.searchSortingMainContainer.innerHTML = P.render(
|
|
2967
2989
|
r,
|
|
2968
2990
|
e
|
|
@@ -2976,7 +2998,7 @@ class xa {
|
|
|
2976
2998
|
}
|
|
2977
2999
|
}
|
|
2978
3000
|
}
|
|
2979
|
-
class
|
|
3001
|
+
class Ca {
|
|
2980
3002
|
constructor(e) {
|
|
2981
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);
|
|
2982
3004
|
}
|
|
@@ -2990,17 +3012,17 @@ class ba {
|
|
|
2990
3012
|
renderMainTemplate(e) {
|
|
2991
3013
|
var t, s, a;
|
|
2992
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;
|
|
2993
|
-
this.dataLayer.renderingEngine ===
|
|
3015
|
+
this.dataLayer.renderingEngine === W.mustache && (this.answerContainer.innerHTML = P.render(
|
|
2994
3016
|
r,
|
|
2995
3017
|
e
|
|
2996
3018
|
));
|
|
2997
3019
|
}
|
|
2998
3020
|
}
|
|
2999
|
-
class
|
|
3000
|
-
constructor(e =
|
|
3001
|
-
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",
|
|
3021
|
+
class Sa {
|
|
3022
|
+
constructor(e = W.mustache) {
|
|
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);
|
|
3002
3024
|
}
|
|
3003
|
-
setRenderingEngine(e =
|
|
3025
|
+
setRenderingEngine(e = W.mustache) {
|
|
3004
3026
|
this.dataLayer.setRenderingEngine(e);
|
|
3005
3027
|
}
|
|
3006
3028
|
handleHooks() {
|
|
@@ -3029,11 +3051,11 @@ class Ca {
|
|
|
3029
3051
|
}
|
|
3030
3052
|
initialize(e) {
|
|
3031
3053
|
var t, s;
|
|
3032
|
-
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(
|
|
3033
3055
|
{ ...e, sessionId: this.dataLayer.sessionId },
|
|
3034
3056
|
this.dataLayer
|
|
3035
3057
|
)), ((t = e.router) == null ? void 0 : t.enabled) === void 0 || ((s = e.router) == null ? void 0 : s.enabled) === !0) {
|
|
3036
|
-
this.routerEnabled = !0, this.routerHelper = new
|
|
3058
|
+
this.routerEnabled = !0, this.routerHelper = new rt(
|
|
3037
3059
|
e.router ? e.router : { enabled: !0 }
|
|
3038
3060
|
);
|
|
3039
3061
|
const a = this.routerHelper.urlToSearchObject(
|
|
@@ -3048,7 +3070,7 @@ class Ca {
|
|
|
3048
3070
|
);
|
|
3049
3071
|
});
|
|
3050
3072
|
} else
|
|
3051
|
-
this.routerHelper = new
|
|
3073
|
+
this.routerHelper = new rt({});
|
|
3052
3074
|
}
|
|
3053
3075
|
search(e) {
|
|
3054
3076
|
if (this.searchHelper) {
|
|
@@ -3119,7 +3141,7 @@ class Ca {
|
|
|
3119
3141
|
this.searchHelper && this.dataLayer.setLanguage(e);
|
|
3120
3142
|
}
|
|
3121
3143
|
addSearchInputWidget(e, t) {
|
|
3122
|
-
this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new
|
|
3144
|
+
this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new ya({
|
|
3123
3145
|
containerId: e,
|
|
3124
3146
|
config: t,
|
|
3125
3147
|
searchTrigger: this.executeSearch.bind(this),
|
|
@@ -3128,14 +3150,14 @@ class Ca {
|
|
|
3128
3150
|
}));
|
|
3129
3151
|
}
|
|
3130
3152
|
addAnswerWidget(e, t) {
|
|
3131
|
-
this.dataLayer.setAnswerData(""), this.answerWidget = new
|
|
3153
|
+
this.dataLayer.setAnswerData(""), this.answerWidget = new Ca({
|
|
3132
3154
|
containerId: e,
|
|
3133
3155
|
config: t,
|
|
3134
3156
|
dataLayer: this.dataLayer
|
|
3135
3157
|
});
|
|
3136
3158
|
}
|
|
3137
3159
|
addSearchResultsWidget(e, t) {
|
|
3138
|
-
this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new
|
|
3160
|
+
this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new xa({
|
|
3139
3161
|
containerId: e,
|
|
3140
3162
|
linkClickCallback: this.executeLinkClick.bind(this),
|
|
3141
3163
|
searchTrigger: this.executeSearch.bind(this),
|
|
@@ -3144,7 +3166,7 @@ class Ca {
|
|
|
3144
3166
|
}));
|
|
3145
3167
|
}
|
|
3146
3168
|
addPaginationWidget(e, t) {
|
|
3147
|
-
this.searchPaginationConfig = t, this.searchPaginationWidget = new
|
|
3169
|
+
this.searchPaginationConfig = t, this.searchPaginationWidget = new ma({
|
|
3148
3170
|
containerId: e,
|
|
3149
3171
|
config: t,
|
|
3150
3172
|
dataLayer: this.dataLayer,
|
|
@@ -3152,7 +3174,7 @@ class Ca {
|
|
|
3152
3174
|
});
|
|
3153
3175
|
}
|
|
3154
3176
|
addSearchFeedbackWidget(e, t) {
|
|
3155
|
-
this.searchFeedbackConfig || (this.searchFeedbackConfig = t, this.searchFeedbackWidget = new
|
|
3177
|
+
this.searchFeedbackConfig || (this.searchFeedbackConfig = t, this.searchFeedbackWidget = new va({
|
|
3156
3178
|
containerId: e,
|
|
3157
3179
|
config: t,
|
|
3158
3180
|
dataLayer: this.dataLayer,
|
|
@@ -3160,14 +3182,14 @@ class Ca {
|
|
|
3160
3182
|
}));
|
|
3161
3183
|
}
|
|
3162
3184
|
addSearchSortingWidget(e, t) {
|
|
3163
|
-
this.searchSortingConfig || (this.searchSortingConfig = t, this.searchSortingWidget = new
|
|
3185
|
+
this.searchSortingConfig || (this.searchSortingConfig = t, this.searchSortingWidget = new ba({
|
|
3164
3186
|
containerId: e,
|
|
3165
3187
|
config: t,
|
|
3166
3188
|
dataLayer: this.dataLayer
|
|
3167
3189
|
}));
|
|
3168
3190
|
}
|
|
3169
3191
|
addRelatedSearchesWidget(e, t) {
|
|
3170
|
-
this.relatedSearchesConfig || (this.relatedSearchesConfig = t, this.relatedSearchesWidget = new
|
|
3192
|
+
this.relatedSearchesConfig || (this.relatedSearchesConfig = t, this.relatedSearchesWidget = new fa({
|
|
3171
3193
|
containerId: e,
|
|
3172
3194
|
config: t,
|
|
3173
3195
|
dataLayer: this.dataLayer,
|
|
@@ -3177,14 +3199,14 @@ class Ca {
|
|
|
3177
3199
|
}, 0));
|
|
3178
3200
|
}
|
|
3179
3201
|
addExternalPromotionsWidget(e, t) {
|
|
3180
|
-
this.externalPromotionsConfig || (this.externalPromotionsConfig = t, this.externalPromotionsWidget = new
|
|
3202
|
+
this.externalPromotionsConfig || (this.externalPromotionsConfig = t, this.externalPromotionsWidget = new ga({
|
|
3181
3203
|
containerId: e,
|
|
3182
3204
|
config: t,
|
|
3183
3205
|
dataLayer: this.dataLayer
|
|
3184
3206
|
}));
|
|
3185
3207
|
}
|
|
3186
3208
|
addFacetsWidget(e, t) {
|
|
3187
|
-
this.searchFacetsConfig = t, this.searchFacetsWidget = new
|
|
3209
|
+
this.searchFacetsConfig = t, this.searchFacetsWidget = new pa(
|
|
3188
3210
|
{
|
|
3189
3211
|
containerId: e,
|
|
3190
3212
|
config: t,
|
|
@@ -3239,9 +3261,9 @@ class Ca {
|
|
|
3239
3261
|
}
|
|
3240
3262
|
const C = {
|
|
3241
3263
|
//@ts-ignore
|
|
3242
|
-
searchstax: new
|
|
3264
|
+
searchstax: new Sa("react")
|
|
3243
3265
|
};
|
|
3244
|
-
function
|
|
3266
|
+
function Ta(i) {
|
|
3245
3267
|
let e = !1;
|
|
3246
3268
|
const [t, s] = q([]);
|
|
3247
3269
|
ee(() => {
|
|
@@ -3343,10 +3365,10 @@ function ka(i) {
|
|
|
3343
3365
|
" "
|
|
3344
3366
|
] }) });
|
|
3345
3367
|
}
|
|
3346
|
-
function
|
|
3368
|
+
function Ra(i) {
|
|
3347
3369
|
const [e, t] = q(
|
|
3348
3370
|
null
|
|
3349
|
-
), s =
|
|
3371
|
+
), s = Ot();
|
|
3350
3372
|
s.current = e;
|
|
3351
3373
|
const [a, r] = q(""), [c, l] = q(
|
|
3352
3374
|
null
|
|
@@ -3369,9 +3391,9 @@ function Ta(i) {
|
|
|
3369
3391
|
function f() {
|
|
3370
3392
|
C.searchstax.dataLayer.$searchResults.subscribe(
|
|
3371
3393
|
(g) => {
|
|
3372
|
-
var
|
|
3394
|
+
var k;
|
|
3373
3395
|
const m = s.current ?? [], S = g ?? [], O = i.renderMethod === "infiniteScroll" ? [...m, ...S] : g;
|
|
3374
|
-
((
|
|
3396
|
+
((k = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : k.page) === 1 ? t(S) : t(O);
|
|
3375
3397
|
}
|
|
3376
3398
|
), C.searchstax.dataLayer.$searchTermChange.subscribe((g) => {
|
|
3377
3399
|
r(g);
|
|
@@ -3476,7 +3498,7 @@ function Ta(i) {
|
|
|
3476
3498
|
e && e.length > 0 && i.resultsTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.resultsTemplate(e, o) })
|
|
3477
3499
|
] }) }) }) });
|
|
3478
3500
|
}
|
|
3479
|
-
function
|
|
3501
|
+
function wa(i) {
|
|
3480
3502
|
let e = !1;
|
|
3481
3503
|
const [t, s] = q(!1), [a, r] = q(
|
|
3482
3504
|
null
|
|
@@ -3584,7 +3606,7 @@ function Ra(i) {
|
|
|
3584
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) })
|
|
3585
3607
|
] }) });
|
|
3586
3608
|
}
|
|
3587
|
-
function
|
|
3609
|
+
function Ea(i) {
|
|
3588
3610
|
let e = !1;
|
|
3589
3611
|
const [t, s] = q(
|
|
3590
3612
|
null
|
|
@@ -3638,7 +3660,7 @@ function wa(i) {
|
|
|
3638
3660
|
) })
|
|
3639
3661
|
] }) });
|
|
3640
3662
|
}
|
|
3641
|
-
function
|
|
3663
|
+
function Ia(i) {
|
|
3642
3664
|
let e = !1;
|
|
3643
3665
|
const [t, s] = q(null), [a] = q(Math.random());
|
|
3644
3666
|
ee(() => {
|
|
@@ -3700,7 +3722,7 @@ function Ea(i) {
|
|
|
3700
3722
|
i.searchOverviewTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchOverviewTemplate(t, c) })
|
|
3701
3723
|
] }) });
|
|
3702
3724
|
}
|
|
3703
|
-
function
|
|
3725
|
+
function Pa(i) {
|
|
3704
3726
|
const [e, t] = q(
|
|
3705
3727
|
null
|
|
3706
3728
|
), [s, a] = q(
|
|
@@ -3743,19 +3765,19 @@ function Ia(i) {
|
|
|
3743
3765
|
var v;
|
|
3744
3766
|
(v = C.searchstax.searchFacetsWidget) == null || v.removeSelectedFacets();
|
|
3745
3767
|
}
|
|
3746
|
-
function
|
|
3768
|
+
function k(v) {
|
|
3747
3769
|
return !l[v];
|
|
3748
3770
|
}
|
|
3749
3771
|
function R(v) {
|
|
3750
|
-
|
|
3772
|
+
k(v) ? o({ ...l, [v]: !0 }) : o({ ...l, [v]: !1 });
|
|
3751
3773
|
}
|
|
3752
3774
|
function E(v) {
|
|
3753
3775
|
var x;
|
|
3754
3776
|
return (x = C.searchstax.searchFacetsWidget) == null ? void 0 : x.isChecked(v);
|
|
3755
3777
|
}
|
|
3756
|
-
function
|
|
3778
|
+
function T(v, x, j, _, G) {
|
|
3757
3779
|
var Y;
|
|
3758
|
-
const
|
|
3780
|
+
const me = G ? "mobile-" : "desktop-", Q = document.getElementsByClassName(me + v);
|
|
3759
3781
|
Q[0] && ((Y = C.searchstax.searchFacetsWidget) == null || Y.onFacetSelect(
|
|
3760
3782
|
x,
|
|
3761
3783
|
j,
|
|
@@ -3772,7 +3794,7 @@ function Ia(i) {
|
|
|
3772
3794
|
!1
|
|
3773
3795
|
);
|
|
3774
3796
|
}
|
|
3775
|
-
function
|
|
3797
|
+
function B(v, x) {
|
|
3776
3798
|
var j;
|
|
3777
3799
|
(j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
|
|
3778
3800
|
v,
|
|
@@ -3780,7 +3802,7 @@ function Ia(i) {
|
|
|
3780
3802
|
!0
|
|
3781
3803
|
);
|
|
3782
3804
|
}
|
|
3783
|
-
function
|
|
3805
|
+
function M() {
|
|
3784
3806
|
var v;
|
|
3785
3807
|
(v = C.searchstax.searchFacetsWidget) == null || v.openOverlay();
|
|
3786
3808
|
}
|
|
@@ -3792,7 +3814,7 @@ function Ia(i) {
|
|
|
3792
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(
|
|
3793
3815
|
"div",
|
|
3794
3816
|
{
|
|
3795
|
-
className: `searchstax-facet-container ${
|
|
3817
|
+
className: `searchstax-facet-container ${k(v.name) ? "active" : ""}`,
|
|
3796
3818
|
children: /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3797
3819
|
/* @__PURE__ */ u.jsxs(
|
|
3798
3820
|
"div",
|
|
@@ -3814,7 +3836,7 @@ function Ia(i) {
|
|
|
3814
3836
|
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
|
|
3815
3837
|
v.values.map(
|
|
3816
3838
|
//@ts-ignore
|
|
3817
|
-
(x, j) => (d[j + v.name] =
|
|
3839
|
+
(x, j) => (d[j + v.name] = tt(), /* @__PURE__ */ u.jsxs(
|
|
3818
3840
|
"div",
|
|
3819
3841
|
{
|
|
3820
3842
|
className: `searchstax-facet-value-container ${x.disabled ? "searchstax-facet-value-disabled" : ""}`,
|
|
@@ -3834,7 +3856,7 @@ function Ia(i) {
|
|
|
3834
3856
|
readOnly: !0,
|
|
3835
3857
|
disabled: x.disabled,
|
|
3836
3858
|
onClick: (_) => {
|
|
3837
|
-
|
|
3859
|
+
T(
|
|
3838
3860
|
j + v.name,
|
|
3839
3861
|
_,
|
|
3840
3862
|
x
|
|
@@ -3849,7 +3871,7 @@ function Ia(i) {
|
|
|
3849
3871
|
{
|
|
3850
3872
|
className: "searchstax-facet-value-label",
|
|
3851
3873
|
onClick: (_) => {
|
|
3852
|
-
|
|
3874
|
+
T(
|
|
3853
3875
|
j + v.name,
|
|
3854
3876
|
_,
|
|
3855
3877
|
x
|
|
@@ -3863,7 +3885,7 @@ function Ia(i) {
|
|
|
3863
3885
|
{
|
|
3864
3886
|
className: "searchstax-facet-value-count",
|
|
3865
3887
|
onClick: (_) => {
|
|
3866
|
-
|
|
3888
|
+
T(
|
|
3867
3889
|
j + v.name,
|
|
3868
3890
|
_,
|
|
3869
3891
|
x
|
|
@@ -3905,9 +3927,9 @@ function Ia(i) {
|
|
|
3905
3927
|
i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateDesktop(
|
|
3906
3928
|
e,
|
|
3907
3929
|
d,
|
|
3908
|
-
T,
|
|
3909
|
-
R,
|
|
3910
3930
|
k,
|
|
3931
|
+
R,
|
|
3932
|
+
T,
|
|
3911
3933
|
E,
|
|
3912
3934
|
N
|
|
3913
3935
|
) }),
|
|
@@ -3917,7 +3939,7 @@ function Ia(i) {
|
|
|
3917
3939
|
{
|
|
3918
3940
|
className: "searchstax-facets-pill searchstax-facets-pill-filter-by",
|
|
3919
3941
|
onClick: () => {
|
|
3920
|
-
|
|
3942
|
+
M();
|
|
3921
3943
|
},
|
|
3922
3944
|
children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-label", children: "Filter By" })
|
|
3923
3945
|
}
|
|
@@ -3974,7 +3996,7 @@ function Ia(i) {
|
|
|
3974
3996
|
/* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: s == null ? void 0 : s.facets.map((v) => /* @__PURE__ */ u.jsx(
|
|
3975
3997
|
"div",
|
|
3976
3998
|
{
|
|
3977
|
-
className: `searchstax-facet-container ${
|
|
3999
|
+
className: `searchstax-facet-container ${k(v.name) ? "active" : ""}`,
|
|
3978
4000
|
children: /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3979
4001
|
/* @__PURE__ */ u.jsxs(
|
|
3980
4002
|
"div",
|
|
@@ -3996,7 +4018,7 @@ function Ia(i) {
|
|
|
3996
4018
|
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
|
|
3997
4019
|
v.values.map(
|
|
3998
4020
|
//@ts-ignore
|
|
3999
|
-
(x, j) => (d[j + v.name] =
|
|
4021
|
+
(x, j) => (d[j + v.name] = tt(), /* @__PURE__ */ u.jsxs(
|
|
4000
4022
|
"div",
|
|
4001
4023
|
{
|
|
4002
4024
|
className: `searchstax-facet-value-container ${x.disabled ? "searchstax-facet-value-disabled" : ""}`,
|
|
@@ -4016,7 +4038,7 @@ function Ia(i) {
|
|
|
4016
4038
|
readOnly: !0,
|
|
4017
4039
|
disabled: x.disabled,
|
|
4018
4040
|
onClick: (_) => {
|
|
4019
|
-
|
|
4041
|
+
T(
|
|
4020
4042
|
j + v.name,
|
|
4021
4043
|
_,
|
|
4022
4044
|
x,
|
|
@@ -4033,7 +4055,7 @@ function Ia(i) {
|
|
|
4033
4055
|
{
|
|
4034
4056
|
className: "searchstax-facet-value-label",
|
|
4035
4057
|
onClick: (_) => {
|
|
4036
|
-
|
|
4058
|
+
T(
|
|
4037
4059
|
j + v.name,
|
|
4038
4060
|
_,
|
|
4039
4061
|
x
|
|
@@ -4047,7 +4069,7 @@ function Ia(i) {
|
|
|
4047
4069
|
{
|
|
4048
4070
|
className: "searchstax-facet-value-count",
|
|
4049
4071
|
onClick: (_) => {
|
|
4050
|
-
|
|
4072
|
+
T(
|
|
4051
4073
|
j + v.name,
|
|
4052
4074
|
_,
|
|
4053
4075
|
x
|
|
@@ -4075,10 +4097,10 @@ function Ia(i) {
|
|
|
4075
4097
|
{
|
|
4076
4098
|
className: "searchstax-facet-show-more-container",
|
|
4077
4099
|
onClick: (x) => {
|
|
4078
|
-
|
|
4100
|
+
B(x, v);
|
|
4079
4101
|
},
|
|
4080
4102
|
onKeyDown: (x) => {
|
|
4081
|
-
(x.key === "Enter" || x.key === " ") &&
|
|
4103
|
+
(x.key === "Enter" || x.key === " ") && B(x, v);
|
|
4082
4104
|
},
|
|
4083
4105
|
tabIndex: 0,
|
|
4084
4106
|
children: [
|
|
@@ -4112,19 +4134,19 @@ function Ia(i) {
|
|
|
4112
4134
|
s,
|
|
4113
4135
|
r,
|
|
4114
4136
|
d,
|
|
4115
|
-
T,
|
|
4116
|
-
R,
|
|
4117
4137
|
k,
|
|
4138
|
+
R,
|
|
4139
|
+
T,
|
|
4118
4140
|
E,
|
|
4119
4141
|
S,
|
|
4120
|
-
|
|
4121
|
-
|
|
4142
|
+
B,
|
|
4143
|
+
M,
|
|
4122
4144
|
K,
|
|
4123
4145
|
O
|
|
4124
4146
|
) })
|
|
4125
4147
|
] }) });
|
|
4126
4148
|
}
|
|
4127
|
-
function
|
|
4149
|
+
function ja(i) {
|
|
4128
4150
|
let e = !1;
|
|
4129
4151
|
const [t, s] = q(null), [a] = q(Math.random());
|
|
4130
4152
|
ee(() => {
|
|
@@ -4175,7 +4197,7 @@ function Pa(i) {
|
|
|
4175
4197
|
i.searchRelatedSearchesTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchRelatedSearchesTemplate(t, c) })
|
|
4176
4198
|
] });
|
|
4177
4199
|
}
|
|
4178
|
-
function
|
|
4200
|
+
function Fa(i) {
|
|
4179
4201
|
let e = !1;
|
|
4180
4202
|
const [t, s] = q(
|
|
4181
4203
|
null
|
|
@@ -4226,13 +4248,13 @@ function ja(i) {
|
|
|
4226
4248
|
] }) });
|
|
4227
4249
|
}
|
|
4228
4250
|
export {
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
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,
|
|
4237
4259
|
ka as SearchstaxWrapper
|
|
4238
4260
|
};
|