@searchstax-inc/searchstudio-ux-react 0.3.15 → 0.3.17
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: {} }, oe = {};
|
|
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 (
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
var i =
|
|
12
|
+
var at;
|
|
13
|
+
function At() {
|
|
14
|
+
if (at)
|
|
15
|
+
return oe;
|
|
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);
|
|
@@ -25,9 +25,9 @@ function Ot() {
|
|
|
25
25
|
g[f] === void 0 && (g[f] = o[f]);
|
|
26
26
|
return { $$typeof: e, type: l, key: m, ref: S, props: g, _owner: a.current };
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return oe.Fragment = t, oe.jsx = c, oe.jsxs = c, oe;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var he = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -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,
|
|
133
|
-
function
|
|
132
|
+
var Y = Object.assign, ce = 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
|
-
if (
|
|
139
|
-
|
|
138
|
+
if (ce === 0) {
|
|
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, {
|
|
@@ -153,12 +153,12 @@ function Mt() {
|
|
|
153
153
|
groupEnd: n
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
ce++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function ot() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
161
|
+
if (ce--, ce === 0) {
|
|
162
162
|
var n = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
@@ -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
|
+
ce < 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
|
|
371
|
+
var le = 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
|
|
395
|
-
if (typeof n.ref == "string" &&
|
|
396
|
-
var y = Q(
|
|
397
|
-
ke[y] || (
|
|
394
|
+
function bt(n, p) {
|
|
395
|
+
if (typeof n.ref == "string" && le.current && p && le.current.stateNode !== p) {
|
|
396
|
+
var y = Q(le.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(le.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, le.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);
|
|
622
619
|
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
620
|
+
function Pt(n, p, y) {
|
|
621
|
+
return Ze(n, p, y, !1);
|
|
622
|
+
}
|
|
623
|
+
var jt = Pt, Ft = It;
|
|
624
|
+
he.Fragment = s, he.jsx = jt, he.jsxs = Ft;
|
|
625
|
+
}()), he;
|
|
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;
|
|
@@ -1033,9 +1033,9 @@ class $t {
|
|
|
1033
1033
|
return (this.$cookiesDisabled.getValue() ?? !1) || !navigator.cookieEnabled;
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
class
|
|
1036
|
+
class ue {
|
|
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}`;
|
|
@@ -1320,7 +1320,7 @@ class _t {
|
|
|
1320
1320
|
));
|
|
1321
1321
|
}
|
|
1322
1322
|
cacheFacetsCallback(e) {
|
|
1323
|
-
let t =
|
|
1323
|
+
let t = ue.extractFacets(e);
|
|
1324
1324
|
this.dataLayer.setSearchFacetsCached(t);
|
|
1325
1325
|
}
|
|
1326
1326
|
search(e, t, s = !1, a = !1) {
|
|
@@ -1395,7 +1395,7 @@ class _t {
|
|
|
1395
1395
|
return "&" + t.join("&");
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
|
-
class
|
|
1398
|
+
class re {
|
|
1399
1399
|
static trackClick(e) {
|
|
1400
1400
|
const t = {
|
|
1401
1401
|
key: e.trackApiKey,
|
|
@@ -1410,9 +1410,12 @@ class ue {
|
|
|
1410
1410
|
position: e.result.position,
|
|
1411
1411
|
language: e.language
|
|
1412
1412
|
};
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1413
|
+
return new Promise((s, a) => {
|
|
1414
|
+
const r = ["trackClick", t];
|
|
1415
|
+
t.key && this.msq().push(r, (function(c, l) {
|
|
1416
|
+
JSON.stringify(c) === JSON.stringify(t) && l ? s() : a();
|
|
1417
|
+
}).bind(this));
|
|
1418
|
+
});
|
|
1416
1419
|
}
|
|
1417
1420
|
static trackSearch(e) {
|
|
1418
1421
|
const t = {
|
|
@@ -1461,38 +1464,38 @@ class ue {
|
|
|
1461
1464
|
}, 0);
|
|
1462
1465
|
}
|
|
1463
1466
|
}
|
|
1464
|
-
h(
|
|
1467
|
+
h(re, "subscribedToClickEvent", !1), h(re, "msq", () => typeof window < "u" && window != null && window._msq ? window == null ? void 0 : window._msq : []);
|
|
1465
1468
|
/*!
|
|
1466
1469
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
1467
1470
|
* http://github.com/janl/mustache.js
|
|
1468
1471
|
*/
|
|
1469
|
-
var
|
|
1470
|
-
return
|
|
1472
|
+
var Bt = Object.prototype.toString, ne = Array.isArray || function(i) {
|
|
1473
|
+
return Bt.call(i) === "[object Array]";
|
|
1471
1474
|
};
|
|
1472
|
-
function
|
|
1475
|
+
function Fe(i) {
|
|
1473
1476
|
return typeof i == "function";
|
|
1474
1477
|
}
|
|
1475
1478
|
function Wt(i) {
|
|
1476
|
-
return
|
|
1479
|
+
return ne(i) ? "array" : typeof i;
|
|
1477
1480
|
}
|
|
1478
|
-
function
|
|
1481
|
+
function Pe(i) {
|
|
1479
1482
|
return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
1480
1483
|
}
|
|
1481
|
-
function
|
|
1484
|
+
function it(i, e) {
|
|
1482
1485
|
return i != null && typeof i == "object" && e in i;
|
|
1483
1486
|
}
|
|
1484
|
-
function
|
|
1487
|
+
function Vt(i, e) {
|
|
1485
1488
|
return i != null && typeof i != "object" && i.hasOwnProperty && i.hasOwnProperty(e);
|
|
1486
1489
|
}
|
|
1487
|
-
var
|
|
1488
|
-
function
|
|
1489
|
-
return
|
|
1490
|
+
var Ut = RegExp.prototype.test;
|
|
1491
|
+
function Kt(i, e) {
|
|
1492
|
+
return Ut.call(i, e);
|
|
1490
1493
|
}
|
|
1491
|
-
var
|
|
1492
|
-
function
|
|
1493
|
-
return !
|
|
1494
|
+
var Qt = /\S/;
|
|
1495
|
+
function zt(i) {
|
|
1496
|
+
return !Kt(Qt, i);
|
|
1494
1497
|
}
|
|
1495
|
-
var
|
|
1498
|
+
var Jt = {
|
|
1496
1499
|
"&": "&",
|
|
1497
1500
|
"<": "<",
|
|
1498
1501
|
">": ">",
|
|
@@ -1502,13 +1505,13 @@ var zt = {
|
|
|
1502
1505
|
"`": "`",
|
|
1503
1506
|
"=": "="
|
|
1504
1507
|
};
|
|
1505
|
-
function
|
|
1508
|
+
function Yt(i) {
|
|
1506
1509
|
return String(i).replace(/[&<>"'`=\/]/g, function(e) {
|
|
1507
|
-
return
|
|
1510
|
+
return Jt[e];
|
|
1508
1511
|
});
|
|
1509
1512
|
}
|
|
1510
|
-
var
|
|
1511
|
-
function
|
|
1513
|
+
var Gt = /\s*/, Xt = /\s+/, nt = /\s*=/, Zt = /\s*\}/, ea = /#|\^|\/|>|\{|&|=|!/;
|
|
1514
|
+
function ta(i, e) {
|
|
1512
1515
|
if (!i)
|
|
1513
1516
|
return [];
|
|
1514
1517
|
var t = !1, s = [], a = [], r = [], c = !1, l = !1, o = "", d = 0;
|
|
@@ -1522,40 +1525,40 @@ function ea(i, e) {
|
|
|
1522
1525
|
}
|
|
1523
1526
|
var g, m, S;
|
|
1524
1527
|
function O(x) {
|
|
1525
|
-
if (typeof x == "string" && (x = x.split(
|
|
1528
|
+
if (typeof x == "string" && (x = x.split(Xt, 2)), !ne(x) || x.length !== 2)
|
|
1526
1529
|
throw new Error("Invalid tags: " + x);
|
|
1527
|
-
g = new RegExp(
|
|
1530
|
+
g = new RegExp(Pe(x[0]) + "\\s*"), m = new RegExp("\\s*" + Pe(x[1])), S = new RegExp("\\s*" + Pe("}" + x[1]));
|
|
1528
1531
|
}
|
|
1529
1532
|
O(e || P.tags);
|
|
1530
|
-
for (var
|
|
1531
|
-
if (R =
|
|
1532
|
-
for (var K = 0, v =
|
|
1533
|
-
N =
|
|
1533
|
+
for (var k = new pe(i), R, E, T, N, B, M; !k.eos(); ) {
|
|
1534
|
+
if (R = k.pos, T = k.scanUntil(g), T)
|
|
1535
|
+
for (var K = 0, v = T.length; K < v; ++K)
|
|
1536
|
+
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
1537
|
` && (f(), o = "", d = 0, t = !1);
|
|
1535
|
-
if (!
|
|
1538
|
+
if (!k.scan(g))
|
|
1536
1539
|
break;
|
|
1537
|
-
if (c = !0, E =
|
|
1538
|
-
throw new Error("Unclosed tag at " +
|
|
1539
|
-
if (E == ">" ?
|
|
1540
|
-
s.push(
|
|
1540
|
+
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))
|
|
1541
|
+
throw new Error("Unclosed tag at " + k.pos);
|
|
1542
|
+
if (E == ">" ? B = [E, T, R, k.pos, o, d, t] : B = [E, T, R, k.pos], d++, a.push(B), E === "#" || E === "^")
|
|
1543
|
+
s.push(B);
|
|
1541
1544
|
else if (E === "/") {
|
|
1542
|
-
if (
|
|
1543
|
-
throw new Error('Unopened section "' +
|
|
1544
|
-
if (
|
|
1545
|
-
throw new Error('Unclosed section "' +
|
|
1545
|
+
if (M = s.pop(), !M)
|
|
1546
|
+
throw new Error('Unopened section "' + T + '" at ' + R);
|
|
1547
|
+
if (M[1] !== T)
|
|
1548
|
+
throw new Error('Unclosed section "' + M[1] + '" at ' + R);
|
|
1546
1549
|
} else
|
|
1547
|
-
E === "name" || E === "{" || E === "&" ? l = !0 : E === "=" && O(
|
|
1550
|
+
E === "name" || E === "{" || E === "&" ? l = !0 : E === "=" && O(T);
|
|
1548
1551
|
}
|
|
1549
|
-
if (f(),
|
|
1550
|
-
throw new Error('Unclosed section "' +
|
|
1551
|
-
return aa(
|
|
1552
|
+
if (f(), M = s.pop(), M)
|
|
1553
|
+
throw new Error('Unclosed section "' + M[1] + '" at ' + k.pos);
|
|
1554
|
+
return sa(aa(a));
|
|
1552
1555
|
}
|
|
1553
|
-
function
|
|
1556
|
+
function aa(i) {
|
|
1554
1557
|
for (var e = [], t, s, a = 0, r = i.length; a < r; ++a)
|
|
1555
1558
|
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
1559
|
return e;
|
|
1557
1560
|
}
|
|
1558
|
-
function
|
|
1561
|
+
function sa(i) {
|
|
1559
1562
|
for (var e = [], t = e, s = [], a, r, c = 0, l = i.length; c < l; ++c)
|
|
1560
1563
|
switch (a = i[c], a[0]) {
|
|
1561
1564
|
case "#":
|
|
@@ -1570,20 +1573,20 @@ function aa(i) {
|
|
|
1570
1573
|
}
|
|
1571
1574
|
return e;
|
|
1572
1575
|
}
|
|
1573
|
-
function
|
|
1576
|
+
function pe(i) {
|
|
1574
1577
|
this.string = i, this.tail = i, this.pos = 0;
|
|
1575
1578
|
}
|
|
1576
|
-
|
|
1579
|
+
pe.prototype.eos = function() {
|
|
1577
1580
|
return this.tail === "";
|
|
1578
1581
|
};
|
|
1579
|
-
|
|
1582
|
+
pe.prototype.scan = function(i) {
|
|
1580
1583
|
var e = this.tail.match(i);
|
|
1581
1584
|
if (!e || e.index !== 0)
|
|
1582
1585
|
return "";
|
|
1583
1586
|
var t = e[0];
|
|
1584
1587
|
return this.tail = this.tail.substring(t.length), this.pos += t.length, t;
|
|
1585
1588
|
};
|
|
1586
|
-
|
|
1589
|
+
pe.prototype.scanUntil = function(i) {
|
|
1587
1590
|
var e = this.tail.search(i), t;
|
|
1588
1591
|
switch (e) {
|
|
1589
1592
|
case -1:
|
|
@@ -1597,13 +1600,13 @@ ge.prototype.scanUntil = function(i) {
|
|
|
1597
1600
|
}
|
|
1598
1601
|
return this.pos += t.length, t;
|
|
1599
1602
|
};
|
|
1600
|
-
function
|
|
1603
|
+
function ie(i, e) {
|
|
1601
1604
|
this.view = i, this.cache = { ".": this.view }, this.parent = e;
|
|
1602
1605
|
}
|
|
1603
|
-
|
|
1604
|
-
return new
|
|
1606
|
+
ie.prototype.push = function(i) {
|
|
1607
|
+
return new ie(i, this);
|
|
1605
1608
|
};
|
|
1606
|
-
|
|
1609
|
+
ie.prototype.lookup = function(i) {
|
|
1607
1610
|
var e = this.cache, t;
|
|
1608
1611
|
if (e.hasOwnProperty(i))
|
|
1609
1612
|
t = e[i];
|
|
@@ -1611,9 +1614,9 @@ re.prototype.lookup = function(i) {
|
|
|
1611
1614
|
for (var s = this, a, r, c, l = !1; s; ) {
|
|
1612
1615
|
if (i.indexOf(".") > 0)
|
|
1613
1616
|
for (a = s.view, r = i.split("."), c = 0; a != null && c < r.length; )
|
|
1614
|
-
c === r.length - 1 && (l =
|
|
1617
|
+
c === r.length - 1 && (l = it(a, r[c]) || Vt(a, r[c])), a = a[r[c++]];
|
|
1615
1618
|
else
|
|
1616
|
-
a = s.view[i], l =
|
|
1619
|
+
a = s.view[i], l = it(s.view, i);
|
|
1617
1620
|
if (l) {
|
|
1618
1621
|
t = a;
|
|
1619
1622
|
break;
|
|
@@ -1622,7 +1625,7 @@ re.prototype.lookup = function(i) {
|
|
|
1622
1625
|
}
|
|
1623
1626
|
e[i] = t;
|
|
1624
1627
|
}
|
|
1625
|
-
return
|
|
1628
|
+
return Fe(t) && (t = t.call(this.view)), t;
|
|
1626
1629
|
};
|
|
1627
1630
|
function U() {
|
|
1628
1631
|
this.templateCache = {
|
|
@@ -1643,10 +1646,10 @@ U.prototype.clearCache = function() {
|
|
|
1643
1646
|
};
|
|
1644
1647
|
U.prototype.parse = function(i, e) {
|
|
1645
1648
|
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 =
|
|
1649
|
+
return r == null && (r = ta(i, e), a && t.set(s, r)), r;
|
|
1647
1650
|
};
|
|
1648
1651
|
U.prototype.render = function(i, e, t, s) {
|
|
1649
|
-
var a = this.getConfigTags(s), r = this.parse(i, a), c = e instanceof
|
|
1652
|
+
var a = this.getConfigTags(s), r = this.parse(i, a), c = e instanceof ie ? e : new ie(e, void 0);
|
|
1650
1653
|
return this.renderTokens(r, c, t, i, s);
|
|
1651
1654
|
};
|
|
1652
1655
|
U.prototype.renderTokens = function(i, e, t, s, a) {
|
|
@@ -1660,12 +1663,12 @@ U.prototype.renderSection = function(i, e, t, s, a) {
|
|
|
1660
1663
|
return r.render(g, e, t, a);
|
|
1661
1664
|
}
|
|
1662
1665
|
if (l) {
|
|
1663
|
-
if (
|
|
1666
|
+
if (ne(l))
|
|
1664
1667
|
for (var d = 0, f = l.length; d < f; ++d)
|
|
1665
1668
|
c += this.renderTokens(i[4], e.push(l[d]), t, s, a);
|
|
1666
1669
|
else if (typeof l == "object" || typeof l == "string" || typeof l == "number")
|
|
1667
1670
|
c += this.renderTokens(i[4], e.push(l), t, s, a);
|
|
1668
|
-
else if (
|
|
1671
|
+
else if (Fe(l)) {
|
|
1669
1672
|
if (typeof s != "string")
|
|
1670
1673
|
throw new Error("Cannot use higher-order sections without the original template");
|
|
1671
1674
|
l = l.call(e.view, s.slice(i[3], i[5]), o), l != null && (c += l);
|
|
@@ -1676,7 +1679,7 @@ U.prototype.renderSection = function(i, e, t, s, a) {
|
|
|
1676
1679
|
};
|
|
1677
1680
|
U.prototype.renderInverted = function(i, e, t, s, a) {
|
|
1678
1681
|
var r = e.lookup(i[1]);
|
|
1679
|
-
if (!r ||
|
|
1682
|
+
if (!r || ne(r) && r.length === 0)
|
|
1680
1683
|
return this.renderTokens(i[4], e, t, s, a);
|
|
1681
1684
|
};
|
|
1682
1685
|
U.prototype.indentPartial = function(i, e, t) {
|
|
@@ -1688,7 +1691,7 @@ U.prototype.indentPartial = function(i, e, t) {
|
|
|
1688
1691
|
};
|
|
1689
1692
|
U.prototype.renderPartial = function(i, e, t, s) {
|
|
1690
1693
|
if (t) {
|
|
1691
|
-
var a = this.getConfigTags(s), r =
|
|
1694
|
+
var a = this.getConfigTags(s), r = Fe(t) ? t(i[1]) : t[i[1]];
|
|
1692
1695
|
if (r != null) {
|
|
1693
1696
|
var c = i[6], l = i[5], o = i[4], d = r;
|
|
1694
1697
|
l == 0 && o && (d = this.indentPartial(r, o, c));
|
|
@@ -1711,10 +1714,10 @@ U.prototype.rawValue = function(i) {
|
|
|
1711
1714
|
return i[1];
|
|
1712
1715
|
};
|
|
1713
1716
|
U.prototype.getConfigTags = function(i) {
|
|
1714
|
-
return
|
|
1717
|
+
return ne(i) ? i : i && typeof i == "object" ? i.tags : void 0;
|
|
1715
1718
|
};
|
|
1716
1719
|
U.prototype.getConfigEscape = function(i) {
|
|
1717
|
-
if (i && typeof i == "object" && !
|
|
1720
|
+
if (i && typeof i == "object" && !ne(i))
|
|
1718
1721
|
return i.escape;
|
|
1719
1722
|
};
|
|
1720
1723
|
var P = {
|
|
@@ -1734,31 +1737,31 @@ var P = {
|
|
|
1734
1737
|
* the cache by setting it to the literal `undefined`.
|
|
1735
1738
|
*/
|
|
1736
1739
|
set templateCache(i) {
|
|
1737
|
-
|
|
1740
|
+
ge.templateCache = i;
|
|
1738
1741
|
},
|
|
1739
1742
|
/**
|
|
1740
1743
|
* Gets the default or overridden caching object from the default writer.
|
|
1741
1744
|
*/
|
|
1742
1745
|
get templateCache() {
|
|
1743
|
-
return
|
|
1746
|
+
return ge.templateCache;
|
|
1744
1747
|
}
|
|
1745
|
-
},
|
|
1748
|
+
}, ge = new U();
|
|
1746
1749
|
P.clearCache = function() {
|
|
1747
|
-
return
|
|
1750
|
+
return ge.clearCache();
|
|
1748
1751
|
};
|
|
1749
1752
|
P.parse = function(i, e) {
|
|
1750
|
-
return
|
|
1753
|
+
return ge.parse(i, e);
|
|
1751
1754
|
};
|
|
1752
1755
|
P.render = function(i, e, t, s) {
|
|
1753
1756
|
if (typeof i != "string")
|
|
1754
1757
|
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
|
|
1758
|
+
return ge.render(i, e, t, s);
|
|
1756
1759
|
};
|
|
1757
|
-
P.escape =
|
|
1758
|
-
P.Scanner =
|
|
1759
|
-
P.Context =
|
|
1760
|
+
P.escape = Yt;
|
|
1761
|
+
P.Scanner = pe;
|
|
1762
|
+
P.Context = ie;
|
|
1760
1763
|
P.Writer = U;
|
|
1761
|
-
const
|
|
1764
|
+
const ra = {
|
|
1762
1765
|
main: {
|
|
1763
1766
|
template: `
|
|
1764
1767
|
{{#shouldShowAnswer}}
|
|
@@ -1771,7 +1774,7 @@ const sa = {
|
|
|
1771
1774
|
{{/shouldShowAnswer}}
|
|
1772
1775
|
`
|
|
1773
1776
|
}
|
|
1774
|
-
},
|
|
1777
|
+
}, ia = {
|
|
1775
1778
|
mainTemplate: {
|
|
1776
1779
|
template: `
|
|
1777
1780
|
{{#hasExternalPromotions}}
|
|
@@ -1805,7 +1808,7 @@ const sa = {
|
|
|
1805
1808
|
</div>
|
|
1806
1809
|
`
|
|
1807
1810
|
}
|
|
1808
|
-
},
|
|
1811
|
+
}, na = {
|
|
1809
1812
|
mainTemplateDesktop: {
|
|
1810
1813
|
template: `
|
|
1811
1814
|
{{#hasResultsOrExternalPromotions}}
|
|
@@ -1856,7 +1859,7 @@ const sa = {
|
|
|
1856
1859
|
template: `
|
|
1857
1860
|
<div>
|
|
1858
1861
|
<div class="searchstax-facet-title-container">
|
|
1859
|
-
<div class="searchstax-facet-title">
|
|
1862
|
+
<div class="searchstax-facet-title" aria-label="Facet group: {{label}}" tabindex="0">
|
|
1860
1863
|
{{label}}
|
|
1861
1864
|
</div>
|
|
1862
1865
|
<div class="searchstax-facet-title-arrow active"></div>
|
|
@@ -1908,17 +1911,17 @@ const sa = {
|
|
|
1908
1911
|
`,
|
|
1909
1912
|
containerClass: "searchstax-facets-pill-facets"
|
|
1910
1913
|
}
|
|
1911
|
-
},
|
|
1914
|
+
}, ca = {
|
|
1912
1915
|
mainTemplate: {
|
|
1913
1916
|
template: `
|
|
1914
1917
|
{{#results.length}}
|
|
1915
1918
|
<div class="searchstax-pagination-container">
|
|
1916
1919
|
<div class="searchstax-pagination-content">
|
|
1917
|
-
<a class="searchstax-pagination-previous {{#isFirstPage}}disabled{{/isFirstPage}}" id="searchstax-pagination-previous" tabindex="0">< Previous</a>
|
|
1920
|
+
<a class="searchstax-pagination-previous {{#isFirstPage}}disabled{{/isFirstPage}}" id="searchstax-pagination-previous" tabindex="0" aria-label="Previous Page">< Previous</a>
|
|
1918
1921
|
<div class="searchstax-pagination-details">
|
|
1919
1922
|
{{startResultIndex}} - {{endResultIndex}} of {{totalResults}}
|
|
1920
1923
|
</div>
|
|
1921
|
-
<a class="searchstax-pagination-next {{#isLastPage}}disabled{{/isLastPage}}" id="searchstax-pagination-next" tabindex="0">Next ></a>
|
|
1924
|
+
<a class="searchstax-pagination-next {{#isLastPage}}disabled{{/isLastPage}}" id="searchstax-pagination-next" tabindex="0" aria-label="Next Page">Next ></a>
|
|
1922
1925
|
</div>
|
|
1923
1926
|
</div>
|
|
1924
1927
|
{{/results.length}}
|
|
@@ -1936,7 +1939,7 @@ const sa = {
|
|
|
1936
1939
|
`,
|
|
1937
1940
|
loadMoreButtonClass: "searchstax-pagination-load-more"
|
|
1938
1941
|
}
|
|
1939
|
-
},
|
|
1942
|
+
}, la = {
|
|
1940
1943
|
main: {
|
|
1941
1944
|
template: `
|
|
1942
1945
|
{{#hasRelatedSearches}}
|
|
@@ -1960,11 +1963,12 @@ const sa = {
|
|
|
1960
1963
|
`,
|
|
1961
1964
|
relatedSearchContainerClass: "searchstax-related-search-item"
|
|
1962
1965
|
}
|
|
1963
|
-
},
|
|
1966
|
+
}, oa = {
|
|
1964
1967
|
main: {
|
|
1965
1968
|
template: `
|
|
1966
1969
|
{{#searchExecuted}}
|
|
1967
|
-
<
|
|
1970
|
+
<a href="#searchstax-search-results" class="searchstax-skip">Skip to results section</a>
|
|
1971
|
+
<h4 class="searchstax-feedback-container">
|
|
1968
1972
|
{{#hasResults}}
|
|
1969
1973
|
Showing <b>{{startResultIndex}} - {{endResultIndex}}</b> of <b>{{totalResults}}</b> results {{#searchTerm}} for "<b>{{searchTerm}}</b>" {{/searchTerm}}
|
|
1970
1974
|
<div class="searchstax-feedback-container-suggested">
|
|
@@ -1973,18 +1977,18 @@ const sa = {
|
|
|
1973
1977
|
{{/autoCorrectedQuery}}
|
|
1974
1978
|
</div>
|
|
1975
1979
|
{{/hasResults}}
|
|
1976
|
-
</
|
|
1980
|
+
</h4>
|
|
1977
1981
|
{{/searchExecuted}}
|
|
1978
1982
|
`,
|
|
1979
1983
|
originalQueryClass: "searchstax-feedback-original-query"
|
|
1980
1984
|
}
|
|
1981
|
-
},
|
|
1985
|
+
}, ha = {
|
|
1982
1986
|
mainTemplate: {
|
|
1983
1987
|
template: `
|
|
1984
1988
|
<div class="searchstax-search-input-container">
|
|
1985
1989
|
<div class="searchstax-search-input-wrapper">
|
|
1986
1990
|
<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>
|
|
1991
|
+
<button class="searchstax-spinner-icon" id="searchstax-search-input-action-button" aria-label="search" role="button"></button>
|
|
1988
1992
|
</div>
|
|
1989
1993
|
</div>
|
|
1990
1994
|
`,
|
|
@@ -1995,14 +1999,15 @@ const sa = {
|
|
|
1995
1999
|
<div class="searchstax-autosuggest-item-term-container">{{{term}}}</div>
|
|
1996
2000
|
`
|
|
1997
2001
|
}
|
|
1998
|
-
},
|
|
2002
|
+
}, ua = {
|
|
1999
2003
|
mainTemplate: {
|
|
2000
2004
|
template: `
|
|
2001
2005
|
<div class="searchstax-search-results-container">
|
|
2002
2006
|
<div class="searchstax-search-results" id="searchstax-search-results"></div>
|
|
2003
2007
|
</div>
|
|
2004
2008
|
`,
|
|
2005
|
-
searchResultsContainerId: "searchstax-search-results"
|
|
2009
|
+
searchResultsContainerId: "searchstax-search-results",
|
|
2010
|
+
searchResultsAccessibilityId: "searchstax-search-results-accessibility-announcement"
|
|
2006
2011
|
},
|
|
2007
2012
|
searchResultTemplate: {
|
|
2008
2013
|
template: `
|
|
@@ -2022,7 +2027,7 @@ const sa = {
|
|
|
2022
2027
|
<img src="{{thumbnail}}" class="searchstax-thumbnail">
|
|
2023
2028
|
{{/thumbnail}}
|
|
2024
2029
|
<div class="searchstax-search-result-title-container">
|
|
2025
|
-
<
|
|
2030
|
+
<h5 class="searchstax-search-result-title">{{title}}</h5>
|
|
2026
2031
|
</div>
|
|
2027
2032
|
|
|
2028
2033
|
{{#paths}}
|
|
@@ -2057,21 +2062,21 @@ const sa = {
|
|
|
2057
2062
|
noSearchResultTemplate: {
|
|
2058
2063
|
template: `
|
|
2059
2064
|
{{#searchExecuted}}
|
|
2060
|
-
<div class="searchstax-no-results">
|
|
2065
|
+
<div class="searchstax-no-results" aria-live="polite">
|
|
2061
2066
|
Showing <strong>no results</strong> for <strong>"{{ searchTerm }}"</strong>
|
|
2062
2067
|
<br>
|
|
2063
2068
|
{{#spellingSuggestion}}
|
|
2064
2069
|
<span> Did you mean <a href="#" class="searchstax-suggestion-term" onclick="searchCallback('{{ spellingSuggestion }}')">{{ spellingSuggestion }}</a>?</span>
|
|
2065
2070
|
{{/spellingSuggestion}}
|
|
2066
2071
|
</div>
|
|
2067
|
-
<ul class="searchstax-no-results-list">
|
|
2072
|
+
<ul class="searchstax-no-results-list" aria-live="polite">
|
|
2068
2073
|
<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
2074
|
<li>Lost? Click on the ‘X” in the Search Box to reset your search.</li>
|
|
2070
2075
|
</ul>
|
|
2071
2076
|
{{/searchExecuted}}
|
|
2072
2077
|
`
|
|
2073
2078
|
}
|
|
2074
|
-
},
|
|
2079
|
+
}, da = {
|
|
2075
2080
|
main: {
|
|
2076
2081
|
template: `
|
|
2077
2082
|
{{#searchExecuted}}
|
|
@@ -2094,8 +2099,8 @@ const sa = {
|
|
|
2094
2099
|
};
|
|
2095
2100
|
class b {
|
|
2096
2101
|
}
|
|
2097
|
-
h(b, "answer",
|
|
2098
|
-
class
|
|
2102
|
+
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);
|
|
2103
|
+
class ga {
|
|
2099
2104
|
constructor(e) {
|
|
2100
2105
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "externalPromotionsContainerId"), h(this, "searchExternalPromotionsMainContainer", null);
|
|
2101
2106
|
var t, s;
|
|
@@ -2134,7 +2139,7 @@ class da {
|
|
|
2134
2139
|
renderMainTemplate(e) {
|
|
2135
2140
|
var t, s, a, r;
|
|
2136
2141
|
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 ===
|
|
2142
|
+
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2138
2143
|
this.searchExternalPromotionsMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
|
|
2139
2144
|
P.render(c, e);
|
|
2140
2145
|
const l = typeof document < "u" ? document == null ? void 0 : document.getElementById(
|
|
@@ -2146,7 +2151,24 @@ class da {
|
|
|
2146
2151
|
}
|
|
2147
2152
|
}
|
|
2148
2153
|
}
|
|
2149
|
-
class
|
|
2154
|
+
class de {
|
|
2155
|
+
static addAccessibilityNotificationContainerToBody() {
|
|
2156
|
+
if (!document.getElementById("searchAccessibilityContainer")) {
|
|
2157
|
+
const e = document.createElement("div");
|
|
2158
|
+
e.setAttribute("aria-live", "polite"), e.setAttribute("id", "searchAccessibilityContainer"), document.body.appendChild(e);
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
static setAccessibilityText(e) {
|
|
2162
|
+
this.addAccessibilityNotificationContainerToBody();
|
|
2163
|
+
const t = document.getElementById("searchAccessibility");
|
|
2164
|
+
t && t.remove();
|
|
2165
|
+
const s = document.createElement("span");
|
|
2166
|
+
s.setAttribute("id", "searchAccessibility"), s.innerHTML = e;
|
|
2167
|
+
const a = document.getElementById("searchAccessibilityContainer");
|
|
2168
|
+
a && a.appendChild(s);
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
class pa {
|
|
2150
2172
|
constructor(e, t) {
|
|
2151
2173
|
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
2174
|
if (s.stopPropagation(), !a.disabled) {
|
|
@@ -2243,7 +2265,7 @@ class ga {
|
|
|
2243
2265
|
}
|
|
2244
2266
|
}
|
|
2245
2267
|
createFacetItem(e, t, s) {
|
|
2246
|
-
var a, r, c, l, o, d, f, g, m, S, O,
|
|
2268
|
+
var a, r, c, l, o, d, f, g, m, S, O, k;
|
|
2247
2269
|
if (typeof document < "u") {
|
|
2248
2270
|
const R = document == null ? void 0 : document.createElement("div");
|
|
2249
2271
|
R.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || R.classList.add("active");
|
|
@@ -2252,18 +2274,18 @@ class ga {
|
|
|
2252
2274
|
E,
|
|
2253
2275
|
e
|
|
2254
2276
|
), t.appendChild(R);
|
|
2255
|
-
const
|
|
2277
|
+
const T = R.querySelector(
|
|
2256
2278
|
"." + (((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
2279
|
);
|
|
2258
|
-
|
|
2280
|
+
T == null || T.addEventListener("click", () => {
|
|
2259
2281
|
R.classList.toggle("active");
|
|
2260
2282
|
});
|
|
2261
2283
|
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) || ((
|
|
2284
|
+
"." + (((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
2285
|
);
|
|
2264
|
-
N && (e.values.forEach((
|
|
2286
|
+
N && (e.values.forEach((B) => {
|
|
2265
2287
|
this.createFacetListItem(
|
|
2266
|
-
|
|
2288
|
+
B,
|
|
2267
2289
|
N
|
|
2268
2290
|
);
|
|
2269
2291
|
}), e.hasMoreFacets && this.createHasMoreComponent(e, N, s));
|
|
@@ -2274,25 +2296,25 @@ class ga {
|
|
|
2274
2296
|
return !!((t = this.dataLayer.searchObject.facets) != null && t.find((s) => J.deepEqual(s, this.extractFacetValue(e))));
|
|
2275
2297
|
}
|
|
2276
2298
|
createFacetListItem(e, t) {
|
|
2277
|
-
var s, a, r, c, l, o, d, f, g, m, S, O,
|
|
2299
|
+
var s, a, r, c, l, o, d, f, g, m, S, O, k;
|
|
2278
2300
|
if (typeof document < "u") {
|
|
2279
2301
|
const R = document == null ? void 0 : document.createElement("div");
|
|
2280
2302
|
R.classList.add("searchstax-facet-value-container"), e.disabled && R.classList.add("searchstax-facet-value-disabled");
|
|
2281
|
-
const E = this.isChecked(e),
|
|
2303
|
+
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
2304
|
R.innerHTML = P.render(
|
|
2283
|
-
|
|
2305
|
+
T,
|
|
2284
2306
|
{ ...e, isChecked: E }
|
|
2285
2307
|
);
|
|
2286
2308
|
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
|
-
(
|
|
2309
|
+
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) => {
|
|
2310
|
+
var M;
|
|
2311
|
+
(M = R.querySelector("." + B)) == null || M.addEventListener("click", (K) => {
|
|
2290
2312
|
this.onFacetSelect(K, e, R);
|
|
2291
2313
|
});
|
|
2292
|
-
}), (
|
|
2314
|
+
}), (k = R.querySelector(
|
|
2293
2315
|
"." + (((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(
|
|
2316
|
+
)) == null || k.addEventListener("click", (B) => {
|
|
2317
|
+
this.onFacetSelect(B, e, R, !0);
|
|
2296
2318
|
}), t.appendChild(R);
|
|
2297
2319
|
}
|
|
2298
2320
|
}
|
|
@@ -2322,27 +2344,27 @@ class ga {
|
|
|
2322
2344
|
onShowMoreLessClick(e, t, s) {
|
|
2323
2345
|
e.preventDefault();
|
|
2324
2346
|
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());
|
|
2347
|
+
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
2348
|
}
|
|
2327
2349
|
renderMainTemplate(e, t) {
|
|
2328
2350
|
var s, a, r, c, l, o, d, f, g, m, S;
|
|
2329
2351
|
if (e && (!J.deepEqual(this.cachedData ?? {}, e) || t)) {
|
|
2330
2352
|
this.cachedData = e;
|
|
2331
2353
|
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 ===
|
|
2354
|
+
if (this.dataLayer.renderingEngine === W.mustache && this.searchFacetsMainContainer) {
|
|
2333
2355
|
this.searchFacetsMainContainer.innerHTML = P.render(
|
|
2334
2356
|
O,
|
|
2335
2357
|
{
|
|
2336
2358
|
...e
|
|
2337
2359
|
}
|
|
2338
2360
|
);
|
|
2339
|
-
const
|
|
2361
|
+
const k = (f = this.searchFacetsMainContainer) == null ? void 0 : f.querySelector(
|
|
2340
2362
|
"." + (((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
2363
|
);
|
|
2342
|
-
if (
|
|
2343
|
-
|
|
2364
|
+
if (k) {
|
|
2365
|
+
k.innerHTML = "";
|
|
2344
2366
|
for (const R of e.facets)
|
|
2345
|
-
this.createFacetItem(R,
|
|
2367
|
+
this.createFacetItem(R, k);
|
|
2346
2368
|
if (this.searchFacetsMainContainer) {
|
|
2347
2369
|
const R = this.searchFacetsMainContainer.querySelector(
|
|
2348
2370
|
"." + (((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 +2469,35 @@ class ga {
|
|
|
2447
2469
|
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
2470
|
}
|
|
2449
2471
|
renderMobileTemplate(e) {
|
|
2450
|
-
var t, s, a, r, c, l, o, d, f, g, m, S, O,
|
|
2472
|
+
var t, s, a, r, c, l, o, d, f, g, m, S, O, k, R, E, T, N, B;
|
|
2451
2473
|
if (e && typeof document < "u") {
|
|
2452
|
-
const
|
|
2453
|
-
|
|
2474
|
+
const M = document == null ? void 0 : document.createElement("div");
|
|
2475
|
+
M.classList.add("searchstax-facets-container-mobile");
|
|
2454
2476
|
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 (
|
|
2477
|
+
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2478
|
+
if (M.innerHTML = P.render(K, {
|
|
2457
2479
|
...e,
|
|
2458
2480
|
overlayOpened: this.overlayOpened
|
|
2459
|
-
}), (c = this.searchFacetsMainContainer) == null || c.appendChild(
|
|
2481
|
+
}), (c = this.searchFacetsMainContainer) == null || c.appendChild(M), (o = (l = this.config) == null ? void 0 : l.templates) != null && o.mainTemplateMobile)
|
|
2460
2482
|
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 =
|
|
2483
|
+
const G = M.querySelector("." + _);
|
|
2462
2484
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2463
2485
|
}
|
|
2464
2486
|
else
|
|
2465
2487
|
for (const _ of b.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
|
|
2466
|
-
const G =
|
|
2488
|
+
const G = M.querySelector("." + _);
|
|
2467
2489
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2468
2490
|
}
|
|
2469
|
-
const v =
|
|
2491
|
+
const v = M.querySelector(
|
|
2470
2492
|
"." + (((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
2493
|
);
|
|
2472
2494
|
v && this.createFilterByComponent(v);
|
|
2473
|
-
const x =
|
|
2474
|
-
"." + (((E = (R = (
|
|
2495
|
+
const x = M.querySelector(
|
|
2496
|
+
"." + (((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
2497
|
);
|
|
2476
2498
|
x && (this.createSelectedFacetsComponents(x), this.createClearFacetsComponents(x));
|
|
2477
|
-
const j =
|
|
2478
|
-
"." + (((
|
|
2499
|
+
const j = M.querySelector(
|
|
2500
|
+
"." + (((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
2501
|
);
|
|
2480
2502
|
if (j) {
|
|
2481
2503
|
j.innerHTML = "";
|
|
@@ -2486,7 +2508,7 @@ class ga {
|
|
|
2486
2508
|
}
|
|
2487
2509
|
}
|
|
2488
2510
|
}
|
|
2489
|
-
class
|
|
2511
|
+
class ma {
|
|
2490
2512
|
constructor(e) {
|
|
2491
2513
|
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
2514
|
var t, s, a, r, c, l, o, d, f;
|
|
@@ -2561,7 +2583,7 @@ class pa {
|
|
|
2561
2583
|
var t, s, a, r, c, l, o, d, f, g;
|
|
2562
2584
|
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
2585
|
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 ===
|
|
2586
|
+
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
2587
|
m,
|
|
2566
2588
|
e
|
|
2567
2589
|
), setTimeout(() => {
|
|
@@ -2569,7 +2591,7 @@ class pa {
|
|
|
2569
2591
|
}, 0));
|
|
2570
2592
|
}
|
|
2571
2593
|
}
|
|
2572
|
-
class
|
|
2594
|
+
class fa {
|
|
2573
2595
|
constructor(e) {
|
|
2574
2596
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "relatedSearchesContainerClass"), h(this, "searchRelatedSearchesMainContainer", null), h(this, "track");
|
|
2575
2597
|
var t, s;
|
|
@@ -2592,7 +2614,7 @@ class ma {
|
|
|
2592
2614
|
var s, a, r, c, l;
|
|
2593
2615
|
if (typeof document < "u") {
|
|
2594
2616
|
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 ===
|
|
2617
|
+
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2596
2618
|
o.innerHTML = P.render(
|
|
2597
2619
|
d,
|
|
2598
2620
|
e
|
|
@@ -2615,7 +2637,7 @@ class ma {
|
|
|
2615
2637
|
renderMainTemplate(e) {
|
|
2616
2638
|
var t, s, a, r;
|
|
2617
2639
|
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 ===
|
|
2640
|
+
if (this.dataLayer.renderingEngine === W.mustache && this.searchRelatedSearchesMainContainer) {
|
|
2619
2641
|
this.searchRelatedSearchesMainContainer.innerHTML = "", this.searchRelatedSearchesMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
|
|
2620
2642
|
P.render(c, e);
|
|
2621
2643
|
const l = (r = this.searchRelatedSearchesMainContainer) == null ? void 0 : r.querySelector(
|
|
@@ -2627,7 +2649,7 @@ class ma {
|
|
|
2627
2649
|
}
|
|
2628
2650
|
}
|
|
2629
2651
|
}
|
|
2630
|
-
class
|
|
2652
|
+
class va {
|
|
2631
2653
|
constructor(e) {
|
|
2632
2654
|
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
2655
|
this.containerId
|
|
@@ -2663,7 +2685,7 @@ class fa {
|
|
|
2663
2685
|
renderMainTemplate(e) {
|
|
2664
2686
|
var t, s, a;
|
|
2665
2687
|
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 ===
|
|
2688
|
+
this.dataLayer.renderingEngine === W.mustache && (this.searchFeedbackMainContainer.innerHTML = P.render(
|
|
2667
2689
|
r,
|
|
2668
2690
|
e
|
|
2669
2691
|
), setTimeout(() => {
|
|
@@ -2671,7 +2693,7 @@ class fa {
|
|
|
2671
2693
|
}, 0));
|
|
2672
2694
|
}
|
|
2673
2695
|
}
|
|
2674
|
-
class
|
|
2696
|
+
class ya {
|
|
2675
2697
|
constructor(e) {
|
|
2676
2698
|
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
2699
|
}
|
|
@@ -2682,7 +2704,7 @@ class va {
|
|
|
2682
2704
|
if (!r)
|
|
2683
2705
|
throw new Error("Search input container not found");
|
|
2684
2706
|
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 ===
|
|
2707
|
+
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2686
2708
|
const d = P.render(c, {});
|
|
2687
2709
|
r.innerHTML = d;
|
|
2688
2710
|
}
|
|
@@ -2695,7 +2717,7 @@ class va {
|
|
|
2695
2717
|
}
|
|
2696
2718
|
createAutosuggestContainer() {
|
|
2697
2719
|
var e;
|
|
2698
|
-
this.dataLayer.renderingEngine ===
|
|
2720
|
+
this.dataLayer.renderingEngine === W.mustache && typeof document < "u" && (this.autosuggestContainer = document == null ? void 0 : document.createElement("div"), this.autosuggestContainer.classList.add(
|
|
2699
2721
|
"searchstax-autosuggest-container"
|
|
2700
2722
|
), this.autosuggestContainer.addEventListener("mouseleave", () => {
|
|
2701
2723
|
this.resetAutosuggestSelection(), this.markActiveAutosuggestItem();
|
|
@@ -2831,7 +2853,7 @@ class va {
|
|
|
2831
2853
|
}
|
|
2832
2854
|
}
|
|
2833
2855
|
}
|
|
2834
|
-
class
|
|
2856
|
+
class xa {
|
|
2835
2857
|
constructor(e) {
|
|
2836
2858
|
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
2859
|
this.dataLayer.setSearchObject({ ...this.dataLayer.searchObject, itemsPerPage: this.config.resultsPerPage || 10 });
|
|
@@ -2846,7 +2868,9 @@ class ya {
|
|
|
2846
2868
|
this.dataLayer.setIsInfiniteScroll(e.config.renderMethod === "infiniteScroll"), this.initializeSubscriptions(), this.renderMainTemplate();
|
|
2847
2869
|
}
|
|
2848
2870
|
initializeSubscriptions() {
|
|
2849
|
-
this.dataLayer.$
|
|
2871
|
+
this.dataLayer.$searchObject.subscribe(() => {
|
|
2872
|
+
de.setAccessibilityText("Searching...");
|
|
2873
|
+
}), this.dataLayer.$searchResults.subscribe((e) => {
|
|
2850
2874
|
e && this.searchResultsContainer && this.renderResults(e);
|
|
2851
2875
|
});
|
|
2852
2876
|
}
|
|
@@ -2856,7 +2880,7 @@ class ya {
|
|
|
2856
2880
|
renderNoResultsTemplate() {
|
|
2857
2881
|
var e, t, s, a, r;
|
|
2858
2882
|
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 ===
|
|
2883
|
+
if (this.dataLayer.renderingEngine === W.mustache && this.searchResultsContainer && (this.searchResultsContainer.innerHTML = P.render(
|
|
2860
2884
|
c,
|
|
2861
2885
|
{
|
|
2862
2886
|
spellingSuggestion: l,
|
|
@@ -2872,10 +2896,11 @@ class ya {
|
|
|
2872
2896
|
}
|
|
2873
2897
|
renderResults(e) {
|
|
2874
2898
|
var t, s, a, r, c;
|
|
2875
|
-
if (this.dataLayer.renderingEngine ===
|
|
2899
|
+
if (this.dataLayer.renderingEngine === W.mustache && this.searchResultsContainer)
|
|
2876
2900
|
if (this.removeLinkClickEvents(), e.length === 0)
|
|
2877
|
-
this.renderNoResultsTemplate();
|
|
2901
|
+
de.setAccessibilityText(""), this.renderNoResultsTemplate();
|
|
2878
2902
|
else {
|
|
2903
|
+
de.setAccessibilityText("Results are returned. Press tab to navigate through results");
|
|
2879
2904
|
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
2905
|
((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
2906
|
this.searchResultsContainer.querySelectorAll(
|
|
@@ -2912,7 +2937,7 @@ class ya {
|
|
|
2912
2937
|
renderMainTemplate() {
|
|
2913
2938
|
var e, t, s, a;
|
|
2914
2939
|
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 ===
|
|
2940
|
+
this.dataLayer.renderingEngine === W.mustache && (this.searchResultsMainContainer.innerHTML = P.render(
|
|
2916
2941
|
r,
|
|
2917
2942
|
{}
|
|
2918
2943
|
), setTimeout(() => {
|
|
@@ -2925,7 +2950,7 @@ class ya {
|
|
|
2925
2950
|
}, 0));
|
|
2926
2951
|
}
|
|
2927
2952
|
}
|
|
2928
|
-
class
|
|
2953
|
+
class ba {
|
|
2929
2954
|
constructor(e) {
|
|
2930
2955
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "selectId"), h(this, "searchSortingMainContainer", null);
|
|
2931
2956
|
var t, s;
|
|
@@ -2962,7 +2987,7 @@ class xa {
|
|
|
2962
2987
|
renderMainTemplate(e) {
|
|
2963
2988
|
var t, s, a;
|
|
2964
2989
|
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 ===
|
|
2990
|
+
if (this.dataLayer.renderingEngine === W.mustache) {
|
|
2966
2991
|
this.searchSortingMainContainer.innerHTML = P.render(
|
|
2967
2992
|
r,
|
|
2968
2993
|
e
|
|
@@ -2976,7 +3001,7 @@ class xa {
|
|
|
2976
3001
|
}
|
|
2977
3002
|
}
|
|
2978
3003
|
}
|
|
2979
|
-
class
|
|
3004
|
+
class Ca {
|
|
2980
3005
|
constructor(e) {
|
|
2981
3006
|
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
3007
|
}
|
|
@@ -2990,17 +3015,17 @@ class ba {
|
|
|
2990
3015
|
renderMainTemplate(e) {
|
|
2991
3016
|
var t, s, a;
|
|
2992
3017
|
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 ===
|
|
3018
|
+
this.dataLayer.renderingEngine === W.mustache && (this.answerContainer.innerHTML = P.render(
|
|
2994
3019
|
r,
|
|
2995
3020
|
e
|
|
2996
3021
|
));
|
|
2997
3022
|
}
|
|
2998
3023
|
}
|
|
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",
|
|
3024
|
+
class Sa {
|
|
3025
|
+
constructor(e = W.mustache) {
|
|
3026
|
+
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
3027
|
}
|
|
3003
|
-
setRenderingEngine(e =
|
|
3028
|
+
setRenderingEngine(e = W.mustache) {
|
|
3004
3029
|
this.dataLayer.setRenderingEngine(e);
|
|
3005
3030
|
}
|
|
3006
3031
|
handleHooks() {
|
|
@@ -3014,7 +3039,7 @@ class Ca {
|
|
|
3014
3039
|
this.parseAnswerResultsResponse.bind(this)
|
|
3015
3040
|
)));
|
|
3016
3041
|
}), this.dataLayer.$searchResults.subscribe((s) => {
|
|
3017
|
-
s && this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled &&
|
|
3042
|
+
s && this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled && re.trackSearch({
|
|
3018
3043
|
...this.dataLayer.parsedData.trackingData,
|
|
3019
3044
|
impressions: this.dataLayer.searchResultsMetadata.impressions
|
|
3020
3045
|
});
|
|
@@ -3029,11 +3054,11 @@ class Ca {
|
|
|
3029
3054
|
}
|
|
3030
3055
|
initialize(e) {
|
|
3031
3056
|
var t, s;
|
|
3032
|
-
if (this.dataLayer = new
|
|
3057
|
+
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
3058
|
{ ...e, sessionId: this.dataLayer.sessionId },
|
|
3034
3059
|
this.dataLayer
|
|
3035
3060
|
)), ((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
|
|
3061
|
+
this.routerEnabled = !0, this.routerHelper = new rt(
|
|
3037
3062
|
e.router ? e.router : { enabled: !0 }
|
|
3038
3063
|
);
|
|
3039
3064
|
const a = this.routerHelper.urlToSearchObject(
|
|
@@ -3048,7 +3073,7 @@ class Ca {
|
|
|
3048
3073
|
);
|
|
3049
3074
|
});
|
|
3050
3075
|
} else
|
|
3051
|
-
this.routerHelper = new
|
|
3076
|
+
this.routerHelper = new rt({});
|
|
3052
3077
|
}
|
|
3053
3078
|
search(e) {
|
|
3054
3079
|
if (this.searchHelper) {
|
|
@@ -3077,7 +3102,7 @@ class Ca {
|
|
|
3077
3102
|
relatedSearch: r.related_search,
|
|
3078
3103
|
position: r.position
|
|
3079
3104
|
});
|
|
3080
|
-
this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled &&
|
|
3105
|
+
this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled && re.trackRelatedSearches({
|
|
3081
3106
|
...this.dataLayer.parsedData.trackingData,
|
|
3082
3107
|
impressions: a
|
|
3083
3108
|
}), this.dataLayer.setSearchRelatedSearches(s);
|
|
@@ -3091,9 +3116,9 @@ class Ca {
|
|
|
3091
3116
|
parseSearchResultsResponse(e) {
|
|
3092
3117
|
var t, s;
|
|
3093
3118
|
this.handleRouter();
|
|
3094
|
-
let a =
|
|
3119
|
+
let a = ue.combineResultsWithMetadata(e), r = ue.extractFacets(e);
|
|
3095
3120
|
this.dataLayer.setSearchFacets(r), (s = (t = this.dataLayer.searchstaxConfig) == null ? void 0 : t.hooks) != null && s.afterSearch && (a = this.dataLayer.searchstaxConfig.hooks.afterSearch(a)), this.dataLayer.setSearchExternalPromotions(e.externalLinks ?? []);
|
|
3096
|
-
const c =
|
|
3121
|
+
const c = ue.extractSearchResultsMetadata(e);
|
|
3097
3122
|
this.dataLayer.setSearchResultsMetadata(c), this.dataLayer.setSearchResults(a);
|
|
3098
3123
|
}
|
|
3099
3124
|
parseAnswerResultsResponse(e) {
|
|
@@ -3119,7 +3144,7 @@ class Ca {
|
|
|
3119
3144
|
this.searchHelper && this.dataLayer.setLanguage(e);
|
|
3120
3145
|
}
|
|
3121
3146
|
addSearchInputWidget(e, t) {
|
|
3122
|
-
this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new
|
|
3147
|
+
this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new ya({
|
|
3123
3148
|
containerId: e,
|
|
3124
3149
|
config: t,
|
|
3125
3150
|
searchTrigger: this.executeSearch.bind(this),
|
|
@@ -3128,14 +3153,14 @@ class Ca {
|
|
|
3128
3153
|
}));
|
|
3129
3154
|
}
|
|
3130
3155
|
addAnswerWidget(e, t) {
|
|
3131
|
-
this.dataLayer.setAnswerData(""), this.answerWidget = new
|
|
3156
|
+
this.dataLayer.setAnswerData(""), this.answerWidget = new Ca({
|
|
3132
3157
|
containerId: e,
|
|
3133
3158
|
config: t,
|
|
3134
3159
|
dataLayer: this.dataLayer
|
|
3135
3160
|
});
|
|
3136
3161
|
}
|
|
3137
3162
|
addSearchResultsWidget(e, t) {
|
|
3138
|
-
this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new
|
|
3163
|
+
this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new xa({
|
|
3139
3164
|
containerId: e,
|
|
3140
3165
|
linkClickCallback: this.executeLinkClick.bind(this),
|
|
3141
3166
|
searchTrigger: this.executeSearch.bind(this),
|
|
@@ -3144,7 +3169,7 @@ class Ca {
|
|
|
3144
3169
|
}));
|
|
3145
3170
|
}
|
|
3146
3171
|
addPaginationWidget(e, t) {
|
|
3147
|
-
this.searchPaginationConfig = t, this.searchPaginationWidget = new
|
|
3172
|
+
this.searchPaginationConfig = t, this.searchPaginationWidget = new ma({
|
|
3148
3173
|
containerId: e,
|
|
3149
3174
|
config: t,
|
|
3150
3175
|
dataLayer: this.dataLayer,
|
|
@@ -3152,7 +3177,7 @@ class Ca {
|
|
|
3152
3177
|
});
|
|
3153
3178
|
}
|
|
3154
3179
|
addSearchFeedbackWidget(e, t) {
|
|
3155
|
-
this.searchFeedbackConfig || (this.searchFeedbackConfig = t, this.searchFeedbackWidget = new
|
|
3180
|
+
this.searchFeedbackConfig || (this.searchFeedbackConfig = t, this.searchFeedbackWidget = new va({
|
|
3156
3181
|
containerId: e,
|
|
3157
3182
|
config: t,
|
|
3158
3183
|
dataLayer: this.dataLayer,
|
|
@@ -3160,14 +3185,14 @@ class Ca {
|
|
|
3160
3185
|
}));
|
|
3161
3186
|
}
|
|
3162
3187
|
addSearchSortingWidget(e, t) {
|
|
3163
|
-
this.searchSortingConfig || (this.searchSortingConfig = t, this.searchSortingWidget = new
|
|
3188
|
+
this.searchSortingConfig || (this.searchSortingConfig = t, this.searchSortingWidget = new ba({
|
|
3164
3189
|
containerId: e,
|
|
3165
3190
|
config: t,
|
|
3166
3191
|
dataLayer: this.dataLayer
|
|
3167
3192
|
}));
|
|
3168
3193
|
}
|
|
3169
3194
|
addRelatedSearchesWidget(e, t) {
|
|
3170
|
-
this.relatedSearchesConfig || (this.relatedSearchesConfig = t, this.relatedSearchesWidget = new
|
|
3195
|
+
this.relatedSearchesConfig || (this.relatedSearchesConfig = t, this.relatedSearchesWidget = new fa({
|
|
3171
3196
|
containerId: e,
|
|
3172
3197
|
config: t,
|
|
3173
3198
|
dataLayer: this.dataLayer,
|
|
@@ -3177,14 +3202,14 @@ class Ca {
|
|
|
3177
3202
|
}, 0));
|
|
3178
3203
|
}
|
|
3179
3204
|
addExternalPromotionsWidget(e, t) {
|
|
3180
|
-
this.externalPromotionsConfig || (this.externalPromotionsConfig = t, this.externalPromotionsWidget = new
|
|
3205
|
+
this.externalPromotionsConfig || (this.externalPromotionsConfig = t, this.externalPromotionsWidget = new ga({
|
|
3181
3206
|
containerId: e,
|
|
3182
3207
|
config: t,
|
|
3183
3208
|
dataLayer: this.dataLayer
|
|
3184
3209
|
}));
|
|
3185
3210
|
}
|
|
3186
3211
|
addFacetsWidget(e, t) {
|
|
3187
|
-
this.searchFacetsConfig = t, this.searchFacetsWidget = new
|
|
3212
|
+
this.searchFacetsConfig = t, this.searchFacetsWidget = new pa(
|
|
3188
3213
|
{
|
|
3189
3214
|
containerId: e,
|
|
3190
3215
|
config: t,
|
|
@@ -3207,23 +3232,24 @@ class Ca {
|
|
|
3207
3232
|
(s = (t = this.dataLayer.searchInputConfig) == null ? void 0 : t.hooks) != null && s.beforeAutosuggest && (a = this.dataLayer.searchInputConfig.hooks.beforeAutosuggest(a)), a && a.term !== void 0 && a.queryParams !== void 0 && this.suggest(a.term, a.queryParams);
|
|
3208
3233
|
}
|
|
3209
3234
|
trackRelatedSearchClick(e) {
|
|
3210
|
-
this.dataLayer.searchResultsMetadata && this.dataLayer.searchRelatedSearches && !this.dataLayer.cookiesDisabled &&
|
|
3235
|
+
this.dataLayer.searchResultsMetadata && this.dataLayer.searchRelatedSearches && !this.dataLayer.cookiesDisabled && re.trackRelatedSearchClick({
|
|
3211
3236
|
...this.dataLayer.parsedData.trackingData,
|
|
3212
3237
|
relatedSearch: e
|
|
3213
3238
|
});
|
|
3214
3239
|
}
|
|
3215
3240
|
executeLinkClick(e) {
|
|
3216
3241
|
var t, s;
|
|
3217
|
-
let a =
|
|
3242
|
+
let a = ue.findResultByUniqueId(
|
|
3218
3243
|
e,
|
|
3219
3244
|
this.dataLayer.searchResults ?? []
|
|
3220
3245
|
);
|
|
3221
|
-
a && ((s = (t = this.searchResultsConfig) == null ? void 0 : t.hooks) != null && s.afterLinkClick && (a = this.searchResultsConfig.hooks.afterLinkClick(a)), a && this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled &&
|
|
3246
|
+
a && ((s = (t = this.searchResultsConfig) == null ? void 0 : t.hooks) != null && s.afterLinkClick && (a = this.searchResultsConfig.hooks.afterLinkClick(a)), a && this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled && re.trackClick({
|
|
3222
3247
|
result: a,
|
|
3223
3248
|
...this.dataLayer.parsedData.trackingData
|
|
3224
|
-
})
|
|
3249
|
+
}).then(() => {
|
|
3225
3250
|
typeof window < "u" && (window.location.href = (a == null ? void 0 : a.url) ?? "");
|
|
3226
|
-
}
|
|
3251
|
+
}).catch(() => {
|
|
3252
|
+
}));
|
|
3227
3253
|
}
|
|
3228
3254
|
setPage(e) {
|
|
3229
3255
|
var t;
|
|
@@ -3239,9 +3265,9 @@ class Ca {
|
|
|
3239
3265
|
}
|
|
3240
3266
|
const C = {
|
|
3241
3267
|
//@ts-ignore
|
|
3242
|
-
searchstax: new
|
|
3268
|
+
searchstax: new Sa("react")
|
|
3243
3269
|
};
|
|
3244
|
-
function
|
|
3270
|
+
function Ta(i) {
|
|
3245
3271
|
let e = !1;
|
|
3246
3272
|
const [t, s] = q([]);
|
|
3247
3273
|
ee(() => {
|
|
@@ -3343,10 +3369,10 @@ function ka(i) {
|
|
|
3343
3369
|
" "
|
|
3344
3370
|
] }) });
|
|
3345
3371
|
}
|
|
3346
|
-
function
|
|
3372
|
+
function Ra(i) {
|
|
3347
3373
|
const [e, t] = q(
|
|
3348
3374
|
null
|
|
3349
|
-
), s =
|
|
3375
|
+
), s = Ot();
|
|
3350
3376
|
s.current = e;
|
|
3351
3377
|
const [a, r] = q(""), [c, l] = q(
|
|
3352
3378
|
null
|
|
@@ -3369,9 +3395,9 @@ function Ta(i) {
|
|
|
3369
3395
|
function f() {
|
|
3370
3396
|
C.searchstax.dataLayer.$searchResults.subscribe(
|
|
3371
3397
|
(g) => {
|
|
3372
|
-
var
|
|
3398
|
+
var k;
|
|
3373
3399
|
const m = s.current ?? [], S = g ?? [], O = i.renderMethod === "infiniteScroll" ? [...m, ...S] : g;
|
|
3374
|
-
((
|
|
3400
|
+
((k = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : k.page) === 1 ? t(S) : t(O);
|
|
3375
3401
|
}
|
|
3376
3402
|
), C.searchstax.dataLayer.$searchTermChange.subscribe((g) => {
|
|
3377
3403
|
r(g);
|
|
@@ -3476,7 +3502,7 @@ function Ta(i) {
|
|
|
3476
3502
|
e && e.length > 0 && i.resultsTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.resultsTemplate(e, o) })
|
|
3477
3503
|
] }) }) }) });
|
|
3478
3504
|
}
|
|
3479
|
-
function
|
|
3505
|
+
function wa(i) {
|
|
3480
3506
|
let e = !1;
|
|
3481
3507
|
const [t, s] = q(!1), [a, r] = q(
|
|
3482
3508
|
null
|
|
@@ -3584,7 +3610,7 @@ function Ra(i) {
|
|
|
3584
3610
|
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
3611
|
] }) });
|
|
3586
3612
|
}
|
|
3587
|
-
function
|
|
3613
|
+
function Ea(i) {
|
|
3588
3614
|
let e = !1;
|
|
3589
3615
|
const [t, s] = q(
|
|
3590
3616
|
null
|
|
@@ -3638,7 +3664,7 @@ function wa(i) {
|
|
|
3638
3664
|
) })
|
|
3639
3665
|
] }) });
|
|
3640
3666
|
}
|
|
3641
|
-
function
|
|
3667
|
+
function Ia(i) {
|
|
3642
3668
|
let e = !1;
|
|
3643
3669
|
const [t, s] = q(null), [a] = q(Math.random());
|
|
3644
3670
|
ee(() => {
|
|
@@ -3700,7 +3726,7 @@ function Ea(i) {
|
|
|
3700
3726
|
i.searchOverviewTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchOverviewTemplate(t, c) })
|
|
3701
3727
|
] }) });
|
|
3702
3728
|
}
|
|
3703
|
-
function
|
|
3729
|
+
function Pa(i) {
|
|
3704
3730
|
const [e, t] = q(
|
|
3705
3731
|
null
|
|
3706
3732
|
), [s, a] = q(
|
|
@@ -3743,19 +3769,19 @@ function Ia(i) {
|
|
|
3743
3769
|
var v;
|
|
3744
3770
|
(v = C.searchstax.searchFacetsWidget) == null || v.removeSelectedFacets();
|
|
3745
3771
|
}
|
|
3746
|
-
function
|
|
3772
|
+
function k(v) {
|
|
3747
3773
|
return !l[v];
|
|
3748
3774
|
}
|
|
3749
3775
|
function R(v) {
|
|
3750
|
-
|
|
3776
|
+
k(v) ? o({ ...l, [v]: !0 }) : o({ ...l, [v]: !1 });
|
|
3751
3777
|
}
|
|
3752
3778
|
function E(v) {
|
|
3753
3779
|
var x;
|
|
3754
3780
|
return (x = C.searchstax.searchFacetsWidget) == null ? void 0 : x.isChecked(v);
|
|
3755
3781
|
}
|
|
3756
|
-
function
|
|
3782
|
+
function T(v, x, j, _, G) {
|
|
3757
3783
|
var Y;
|
|
3758
|
-
const
|
|
3784
|
+
const me = G ? "mobile-" : "desktop-", Q = document.getElementsByClassName(me + v);
|
|
3759
3785
|
Q[0] && ((Y = C.searchstax.searchFacetsWidget) == null || Y.onFacetSelect(
|
|
3760
3786
|
x,
|
|
3761
3787
|
j,
|
|
@@ -3772,7 +3798,7 @@ function Ia(i) {
|
|
|
3772
3798
|
!1
|
|
3773
3799
|
);
|
|
3774
3800
|
}
|
|
3775
|
-
function
|
|
3801
|
+
function B(v, x) {
|
|
3776
3802
|
var j;
|
|
3777
3803
|
(j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
|
|
3778
3804
|
v,
|
|
@@ -3780,7 +3806,7 @@ function Ia(i) {
|
|
|
3780
3806
|
!0
|
|
3781
3807
|
);
|
|
3782
3808
|
}
|
|
3783
|
-
function
|
|
3809
|
+
function M() {
|
|
3784
3810
|
var v;
|
|
3785
3811
|
(v = C.searchstax.searchFacetsWidget) == null || v.openOverlay();
|
|
3786
3812
|
}
|
|
@@ -3792,7 +3818,7 @@ function Ia(i) {
|
|
|
3792
3818
|
(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
3819
|
"div",
|
|
3794
3820
|
{
|
|
3795
|
-
className: `searchstax-facet-container ${
|
|
3821
|
+
className: `searchstax-facet-container ${k(v.name) ? "active" : ""}`,
|
|
3796
3822
|
children: /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3797
3823
|
/* @__PURE__ */ u.jsxs(
|
|
3798
3824
|
"div",
|
|
@@ -3814,7 +3840,7 @@ function Ia(i) {
|
|
|
3814
3840
|
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
|
|
3815
3841
|
v.values.map(
|
|
3816
3842
|
//@ts-ignore
|
|
3817
|
-
(x, j) => (d[j + v.name] =
|
|
3843
|
+
(x, j) => (d[j + v.name] = tt(), /* @__PURE__ */ u.jsxs(
|
|
3818
3844
|
"div",
|
|
3819
3845
|
{
|
|
3820
3846
|
className: `searchstax-facet-value-container ${x.disabled ? "searchstax-facet-value-disabled" : ""}`,
|
|
@@ -3834,7 +3860,7 @@ function Ia(i) {
|
|
|
3834
3860
|
readOnly: !0,
|
|
3835
3861
|
disabled: x.disabled,
|
|
3836
3862
|
onClick: (_) => {
|
|
3837
|
-
|
|
3863
|
+
T(
|
|
3838
3864
|
j + v.name,
|
|
3839
3865
|
_,
|
|
3840
3866
|
x
|
|
@@ -3849,7 +3875,7 @@ function Ia(i) {
|
|
|
3849
3875
|
{
|
|
3850
3876
|
className: "searchstax-facet-value-label",
|
|
3851
3877
|
onClick: (_) => {
|
|
3852
|
-
|
|
3878
|
+
T(
|
|
3853
3879
|
j + v.name,
|
|
3854
3880
|
_,
|
|
3855
3881
|
x
|
|
@@ -3863,7 +3889,7 @@ function Ia(i) {
|
|
|
3863
3889
|
{
|
|
3864
3890
|
className: "searchstax-facet-value-count",
|
|
3865
3891
|
onClick: (_) => {
|
|
3866
|
-
|
|
3892
|
+
T(
|
|
3867
3893
|
j + v.name,
|
|
3868
3894
|
_,
|
|
3869
3895
|
x
|
|
@@ -3905,9 +3931,9 @@ function Ia(i) {
|
|
|
3905
3931
|
i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateDesktop(
|
|
3906
3932
|
e,
|
|
3907
3933
|
d,
|
|
3908
|
-
T,
|
|
3909
|
-
R,
|
|
3910
3934
|
k,
|
|
3935
|
+
R,
|
|
3936
|
+
T,
|
|
3911
3937
|
E,
|
|
3912
3938
|
N
|
|
3913
3939
|
) }),
|
|
@@ -3917,7 +3943,7 @@ function Ia(i) {
|
|
|
3917
3943
|
{
|
|
3918
3944
|
className: "searchstax-facets-pill searchstax-facets-pill-filter-by",
|
|
3919
3945
|
onClick: () => {
|
|
3920
|
-
|
|
3946
|
+
M();
|
|
3921
3947
|
},
|
|
3922
3948
|
children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-label", children: "Filter By" })
|
|
3923
3949
|
}
|
|
@@ -3974,7 +4000,7 @@ function Ia(i) {
|
|
|
3974
4000
|
/* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: s == null ? void 0 : s.facets.map((v) => /* @__PURE__ */ u.jsx(
|
|
3975
4001
|
"div",
|
|
3976
4002
|
{
|
|
3977
|
-
className: `searchstax-facet-container ${
|
|
4003
|
+
className: `searchstax-facet-container ${k(v.name) ? "active" : ""}`,
|
|
3978
4004
|
children: /* @__PURE__ */ u.jsxs("div", { children: [
|
|
3979
4005
|
/* @__PURE__ */ u.jsxs(
|
|
3980
4006
|
"div",
|
|
@@ -3996,7 +4022,7 @@ function Ia(i) {
|
|
|
3996
4022
|
/* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
|
|
3997
4023
|
v.values.map(
|
|
3998
4024
|
//@ts-ignore
|
|
3999
|
-
(x, j) => (d[j + v.name] =
|
|
4025
|
+
(x, j) => (d[j + v.name] = tt(), /* @__PURE__ */ u.jsxs(
|
|
4000
4026
|
"div",
|
|
4001
4027
|
{
|
|
4002
4028
|
className: `searchstax-facet-value-container ${x.disabled ? "searchstax-facet-value-disabled" : ""}`,
|
|
@@ -4016,7 +4042,7 @@ function Ia(i) {
|
|
|
4016
4042
|
readOnly: !0,
|
|
4017
4043
|
disabled: x.disabled,
|
|
4018
4044
|
onClick: (_) => {
|
|
4019
|
-
|
|
4045
|
+
T(
|
|
4020
4046
|
j + v.name,
|
|
4021
4047
|
_,
|
|
4022
4048
|
x,
|
|
@@ -4033,7 +4059,7 @@ function Ia(i) {
|
|
|
4033
4059
|
{
|
|
4034
4060
|
className: "searchstax-facet-value-label",
|
|
4035
4061
|
onClick: (_) => {
|
|
4036
|
-
|
|
4062
|
+
T(
|
|
4037
4063
|
j + v.name,
|
|
4038
4064
|
_,
|
|
4039
4065
|
x
|
|
@@ -4047,7 +4073,7 @@ function Ia(i) {
|
|
|
4047
4073
|
{
|
|
4048
4074
|
className: "searchstax-facet-value-count",
|
|
4049
4075
|
onClick: (_) => {
|
|
4050
|
-
|
|
4076
|
+
T(
|
|
4051
4077
|
j + v.name,
|
|
4052
4078
|
_,
|
|
4053
4079
|
x
|
|
@@ -4075,10 +4101,10 @@ function Ia(i) {
|
|
|
4075
4101
|
{
|
|
4076
4102
|
className: "searchstax-facet-show-more-container",
|
|
4077
4103
|
onClick: (x) => {
|
|
4078
|
-
|
|
4104
|
+
B(x, v);
|
|
4079
4105
|
},
|
|
4080
4106
|
onKeyDown: (x) => {
|
|
4081
|
-
(x.key === "Enter" || x.key === " ") &&
|
|
4107
|
+
(x.key === "Enter" || x.key === " ") && B(x, v);
|
|
4082
4108
|
},
|
|
4083
4109
|
tabIndex: 0,
|
|
4084
4110
|
children: [
|
|
@@ -4112,19 +4138,19 @@ function Ia(i) {
|
|
|
4112
4138
|
s,
|
|
4113
4139
|
r,
|
|
4114
4140
|
d,
|
|
4115
|
-
T,
|
|
4116
|
-
R,
|
|
4117
4141
|
k,
|
|
4142
|
+
R,
|
|
4143
|
+
T,
|
|
4118
4144
|
E,
|
|
4119
4145
|
S,
|
|
4120
|
-
|
|
4121
|
-
|
|
4146
|
+
B,
|
|
4147
|
+
M,
|
|
4122
4148
|
K,
|
|
4123
4149
|
O
|
|
4124
4150
|
) })
|
|
4125
4151
|
] }) });
|
|
4126
4152
|
}
|
|
4127
|
-
function
|
|
4153
|
+
function ja(i) {
|
|
4128
4154
|
let e = !1;
|
|
4129
4155
|
const [t, s] = q(null), [a] = q(Math.random());
|
|
4130
4156
|
ee(() => {
|
|
@@ -4175,7 +4201,7 @@ function Pa(i) {
|
|
|
4175
4201
|
i.searchRelatedSearchesTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchRelatedSearchesTemplate(t, c) })
|
|
4176
4202
|
] });
|
|
4177
4203
|
}
|
|
4178
|
-
function
|
|
4204
|
+
function Fa(i) {
|
|
4179
4205
|
let e = !1;
|
|
4180
4206
|
const [t, s] = q(
|
|
4181
4207
|
null
|
|
@@ -4226,13 +4252,13 @@ function ja(i) {
|
|
|
4226
4252
|
] }) });
|
|
4227
4253
|
}
|
|
4228
4254
|
export {
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4255
|
+
Fa as SearchstaxExternalPromotionsWidget,
|
|
4256
|
+
Pa as SearchstaxFacetsWidget,
|
|
4257
|
+
Ta as SearchstaxInputWidget,
|
|
4258
|
+
Ia as SearchstaxOverviewWidget,
|
|
4259
|
+
wa as SearchstaxPaginationWidget,
|
|
4260
|
+
ja as SearchstaxRelatedSearchesWidget,
|
|
4261
|
+
Ra as SearchstaxResultWidget,
|
|
4262
|
+
Ea as SearchstaxSortingWidget,
|
|
4237
4263
|
ka as SearchstaxWrapper
|
|
4238
4264
|
};
|