@searchstax-inc/searchstudio-ux-react 0.2.14 → 0.2.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.
|
@@ -16,14 +16,14 @@ function Ot() {
|
|
|
16
16
|
tt = 1;
|
|
17
17
|
var i = nt, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
18
|
function c(l, u, d) {
|
|
19
|
-
var g, m = {},
|
|
20
|
-
d !== void 0 && (
|
|
19
|
+
var g, m = {}, v = null, S = null;
|
|
20
|
+
d !== void 0 && (v = "" + d), u.key !== void 0 && (v = "" + u.key), u.ref !== void 0 && (S = u.ref);
|
|
21
21
|
for (g in u)
|
|
22
22
|
s.call(u, g) && !r.hasOwnProperty(g) && (m[g] = u[g]);
|
|
23
23
|
if (l && l.defaultProps)
|
|
24
24
|
for (g in u = l.defaultProps, u)
|
|
25
25
|
m[g] === void 0 && (m[g] = u[g]);
|
|
26
|
-
return { $$typeof: e, type: l, key:
|
|
26
|
+
return { $$typeof: e, type: l, key: v, ref: S, props: m, _owner: a.current };
|
|
27
27
|
}
|
|
28
28
|
return le.Fragment = t, le.jsx = c, le.jsxs = c, le;
|
|
29
29
|
}
|
|
@@ -40,46 +40,46 @@ var oe = {};
|
|
|
40
40
|
var at;
|
|
41
41
|
function Mt() {
|
|
42
42
|
return at || (at = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var i = nt, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"),
|
|
44
|
-
function
|
|
43
|
+
var i = nt, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), O = Symbol.iterator, R = "@@iterator";
|
|
44
|
+
function k(n) {
|
|
45
45
|
if (n === null || typeof n != "object")
|
|
46
46
|
return null;
|
|
47
47
|
var p = O && n[O] || n[R];
|
|
48
48
|
return typeof p == "function" ? p : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var E = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function T(n) {
|
|
52
52
|
{
|
|
53
|
-
for (var p = arguments.length,
|
|
54
|
-
|
|
55
|
-
N("error", n,
|
|
53
|
+
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), L = 1; L < p; L++)
|
|
54
|
+
y[L - 1] = arguments[L];
|
|
55
|
+
N("error", n, y);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function N(n, p,
|
|
58
|
+
function N(n, p, y) {
|
|
59
59
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var M =
|
|
63
|
-
return String(
|
|
60
|
+
var L = E.ReactDebugCurrentFrame, F = L.getStackAddendum();
|
|
61
|
+
F !== "" && (p += "%s", y = y.concat([F]));
|
|
62
|
+
var M = y.map(function(I) {
|
|
63
|
+
return String(I);
|
|
64
64
|
});
|
|
65
65
|
M.unshift("Warning: " + p), Function.prototype.apply.call(console[n], console, M);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var W = !1, A = !1, Q = !1, f = !1, b = !1,
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof n == "string" || typeof n == "function" || n === s || n === r || b || n === a || n === d || n === g || f || n ===
|
|
68
|
+
var W = !1, A = !1, Q = !1, f = !1, b = !1, j;
|
|
69
|
+
j = Symbol.for("react.module.reference");
|
|
70
|
+
function q(n) {
|
|
71
|
+
return !!(typeof n == "string" || typeof n == "function" || n === s || n === r || b || n === a || n === d || n === g || f || n === S || W || A || Q || typeof n == "object" && n !== null && (n.$$typeof === v || n.$$typeof === m || n.$$typeof === c || n.$$typeof === l || n.$$typeof === u || // 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.
|
|
75
|
-
n.$$typeof ===
|
|
75
|
+
n.$$typeof === j || n.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function G(n, p,
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
77
|
+
function G(n, p, y) {
|
|
78
|
+
var L = n.displayName;
|
|
79
|
+
if (L)
|
|
80
|
+
return L;
|
|
81
|
+
var F = p.displayName || p.name || "";
|
|
82
|
+
return F !== "" ? y + "(" + F + ")" : y;
|
|
83
83
|
}
|
|
84
84
|
function pe(n) {
|
|
85
85
|
return n.displayName || "Context";
|
|
@@ -87,7 +87,7 @@ function Mt() {
|
|
|
87
87
|
function K(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;
|
|
@@ -111,17 +111,17 @@ function Mt() {
|
|
|
111
111
|
var p = n;
|
|
112
112
|
return pe(p) + ".Consumer";
|
|
113
113
|
case c:
|
|
114
|
-
var
|
|
115
|
-
return pe(
|
|
114
|
+
var y = n;
|
|
115
|
+
return pe(y._context) + ".Provider";
|
|
116
116
|
case u:
|
|
117
117
|
return G(n, n.render, "ForwardRef");
|
|
118
118
|
case m:
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
119
|
+
var L = n.displayName || null;
|
|
120
|
+
return L !== null ? L : K(n.type) || "Memo";
|
|
121
|
+
case v: {
|
|
122
|
+
var F = n, M = F._payload, I = F._init;
|
|
123
123
|
try {
|
|
124
|
-
return K(
|
|
124
|
+
return K(I(M));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -188,18 +188,18 @@ function Mt() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
ne < 0 &&
|
|
191
|
+
ne < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var be =
|
|
195
|
-
function me(n, p,
|
|
194
|
+
var be = E.ReactCurrentDispatcher, Ce;
|
|
195
|
+
function me(n, p, y) {
|
|
196
196
|
{
|
|
197
197
|
if (Ce === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
Ce =
|
|
200
|
+
} catch (F) {
|
|
201
|
+
var L = F.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
Ce = L && L[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
205
|
` + Ce + n;
|
|
@@ -214,81 +214,81 @@ function Mt() {
|
|
|
214
214
|
if (!n || Se)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
return
|
|
217
|
+
var y = fe.get(n);
|
|
218
|
+
if (y !== void 0)
|
|
219
|
+
return y;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var L;
|
|
222
222
|
Se = !0;
|
|
223
|
-
var
|
|
223
|
+
var F = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var M;
|
|
226
226
|
M = be.current, be.current = null, ct();
|
|
227
227
|
try {
|
|
228
228
|
if (p) {
|
|
229
|
-
var
|
|
229
|
+
var I = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(I.prototype, "props", {
|
|
233
233
|
set: function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
}
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
|
-
Reflect.construct(
|
|
238
|
+
Reflect.construct(I, []);
|
|
239
239
|
} catch (X) {
|
|
240
|
-
|
|
240
|
+
L = X;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(n, [],
|
|
242
|
+
Reflect.construct(n, [], I);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
I.call();
|
|
246
246
|
} catch (X) {
|
|
247
|
-
|
|
247
|
+
L = X;
|
|
248
248
|
}
|
|
249
|
-
n.call(
|
|
249
|
+
n.call(I.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
254
|
} catch (X) {
|
|
255
|
-
|
|
255
|
+
L = X;
|
|
256
256
|
}
|
|
257
257
|
n();
|
|
258
258
|
}
|
|
259
259
|
} catch (X) {
|
|
260
|
-
if (X &&
|
|
260
|
+
if (X && L && typeof X.stack == "string") {
|
|
261
261
|
for (var w = X.stack.split(`
|
|
262
|
-
`), V =
|
|
263
|
-
`),
|
|
262
|
+
`), V = L.stack.split(`
|
|
263
|
+
`), $ = w.length - 1, _ = V.length - 1; $ >= 1 && _ >= 0 && w[$] !== V[_]; )
|
|
264
264
|
_--;
|
|
265
|
-
for (;
|
|
266
|
-
if (w[
|
|
267
|
-
if (
|
|
265
|
+
for (; $ >= 1 && _ >= 0; $--, _--)
|
|
266
|
+
if (w[$] !== V[_]) {
|
|
267
|
+
if ($ !== 1 || _ !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if ($--, _--, _ < 0 || w[$] !== V[_]) {
|
|
270
270
|
var z = `
|
|
271
|
-
` + w[
|
|
271
|
+
` + w[$].replace(" at new ", " at ");
|
|
272
272
|
return n.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", n.displayName)), typeof n == "function" && fe.set(n, z), z;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while ($ >= 1 && _ >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
Se = !1, be.current = M, lt(), Error.prepareStackTrace =
|
|
279
|
+
Se = !1, be.current = M, lt(), Error.prepareStackTrace = F;
|
|
280
280
|
}
|
|
281
281
|
var ae = n ? n.displayName || n.name : "", Ze = ae ? me(ae) : "";
|
|
282
282
|
return typeof n == "function" && fe.set(n, Ze), Ze;
|
|
283
283
|
}
|
|
284
|
-
function ht(n, p,
|
|
284
|
+
function ht(n, p, y) {
|
|
285
285
|
return _e(n, !1);
|
|
286
286
|
}
|
|
287
287
|
function ut(n) {
|
|
288
288
|
var p = n.prototype;
|
|
289
289
|
return !!(p && p.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function ve(n, p,
|
|
291
|
+
function ve(n, p, y) {
|
|
292
292
|
if (n == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof n == "function")
|
|
@@ -306,41 +306,41 @@ function Mt() {
|
|
|
306
306
|
case u:
|
|
307
307
|
return ht(n.render);
|
|
308
308
|
case m:
|
|
309
|
-
return ve(n.type, p,
|
|
310
|
-
case
|
|
311
|
-
var
|
|
309
|
+
return ve(n.type, p, y);
|
|
310
|
+
case v: {
|
|
311
|
+
var L = n, F = L._payload, M = L._init;
|
|
312
312
|
try {
|
|
313
|
-
return ve(M(
|
|
313
|
+
return ve(M(F), p, y);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var ye = Object.prototype.hasOwnProperty, He = {}, We =
|
|
320
|
+
var ye = Object.prototype.hasOwnProperty, He = {}, We = E.ReactDebugCurrentFrame;
|
|
321
321
|
function xe(n) {
|
|
322
322
|
if (n) {
|
|
323
|
-
var p = n._owner,
|
|
324
|
-
We.setExtraStackFrame(
|
|
323
|
+
var p = n._owner, y = ve(n.type, n._source, p ? p.type : null);
|
|
324
|
+
We.setExtraStackFrame(y);
|
|
325
325
|
} else
|
|
326
326
|
We.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function dt(n, p,
|
|
328
|
+
function dt(n, p, y, L, F) {
|
|
329
329
|
{
|
|
330
330
|
var M = Function.call.bind(ye);
|
|
331
|
-
for (var
|
|
332
|
-
if (M(n,
|
|
331
|
+
for (var I in n)
|
|
332
|
+
if (M(n, I)) {
|
|
333
333
|
var w = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof n[
|
|
336
|
-
var V = Error((
|
|
335
|
+
if (typeof n[I] != "function") {
|
|
336
|
+
var V = Error((L || "React class") + ": " + y + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw V.name = "Invariant Violation", V;
|
|
338
338
|
}
|
|
339
|
-
w = n[
|
|
340
|
-
} catch (
|
|
341
|
-
w =
|
|
339
|
+
w = n[I](p, I, L, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch ($) {
|
|
341
|
+
w = $;
|
|
342
342
|
}
|
|
343
|
-
w && !(w instanceof Error) && (xe(
|
|
343
|
+
w && !(w instanceof Error) && (xe(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), xe(null)), w instanceof Error && !(w.message in He) && (He[w.message] = !0, xe(F), T("Failed %s type: %s", y, w.message), xe(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -350,8 +350,8 @@ function Mt() {
|
|
|
350
350
|
}
|
|
351
351
|
function pt(n) {
|
|
352
352
|
{
|
|
353
|
-
var p = typeof Symbol == "function" && Symbol.toStringTag,
|
|
354
|
-
return
|
|
353
|
+
var p = typeof Symbol == "function" && Symbol.toStringTag, y = p && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
354
|
+
return y;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
function mt(n) {
|
|
@@ -366,9 +366,9 @@ function Mt() {
|
|
|
366
366
|
}
|
|
367
367
|
function Ve(n) {
|
|
368
368
|
if (mt(n))
|
|
369
|
-
return
|
|
369
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pt(n)), Be(n);
|
|
370
370
|
}
|
|
371
|
-
var ce =
|
|
371
|
+
var ce = E.ReactCurrentOwner, ft = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
@@ -393,41 +393,41 @@ function Mt() {
|
|
|
393
393
|
}
|
|
394
394
|
function xt(n, p) {
|
|
395
395
|
if (typeof n.ref == "string" && ce.current && p && ce.current.stateNode !== p) {
|
|
396
|
-
var
|
|
397
|
-
Te[
|
|
396
|
+
var y = K(ce.current.type);
|
|
397
|
+
Te[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', K(ce.current.type), n.ref), Te[y] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function bt(n, p) {
|
|
401
401
|
{
|
|
402
|
-
var
|
|
403
|
-
Ue || (Ue = !0,
|
|
402
|
+
var y = function() {
|
|
403
|
+
Ue || (Ue = !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
|
-
|
|
406
|
-
get:
|
|
405
|
+
y.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
406
|
+
get: y,
|
|
407
407
|
configurable: !0
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
function Ct(n, p) {
|
|
412
412
|
{
|
|
413
|
-
var
|
|
414
|
-
Qe || (Qe = !0,
|
|
413
|
+
var y = function() {
|
|
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
|
-
|
|
417
|
-
get:
|
|
416
|
+
y.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
417
|
+
get: y,
|
|
418
418
|
configurable: !0
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var St = function(n, p,
|
|
422
|
+
var St = function(n, p, y, L, F, M, I) {
|
|
423
423
|
var w = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: e,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: n,
|
|
428
428
|
key: p,
|
|
429
|
-
ref:
|
|
430
|
-
props:
|
|
429
|
+
ref: y,
|
|
430
|
+
props: I,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
432
|
_owner: M
|
|
433
433
|
};
|
|
@@ -440,37 +440,37 @@ function Mt() {
|
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
443
|
+
value: L
|
|
444
444
|
}), Object.defineProperty(w, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
448
|
+
value: F
|
|
449
449
|
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
450
450
|
};
|
|
451
|
-
function Lt(n, p,
|
|
451
|
+
function Lt(n, p, y, L, F) {
|
|
452
452
|
{
|
|
453
|
-
var M,
|
|
454
|
-
|
|
453
|
+
var M, I = {}, w = null, V = null;
|
|
454
|
+
y !== void 0 && (Ve(y), w = "" + y), yt(p) && (Ve(p.key), w = "" + p.key), vt(p) && (V = p.ref, xt(p, F));
|
|
455
455
|
for (M in p)
|
|
456
|
-
ye.call(p, M) && !ft.hasOwnProperty(M) && (
|
|
456
|
+
ye.call(p, M) && !ft.hasOwnProperty(M) && (I[M] = p[M]);
|
|
457
457
|
if (n && n.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (M in
|
|
460
|
-
|
|
458
|
+
var $ = n.defaultProps;
|
|
459
|
+
for (M in $)
|
|
460
|
+
I[M] === void 0 && (I[M] = $[M]);
|
|
461
461
|
}
|
|
462
462
|
if (w || V) {
|
|
463
463
|
var _ = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
464
|
-
w && bt(
|
|
464
|
+
w && bt(I, _), V && Ct(I, _);
|
|
465
465
|
}
|
|
466
|
-
return St(n, w, V,
|
|
466
|
+
return St(n, w, V, F, L, ce.current, I);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var ke =
|
|
469
|
+
var ke = E.ReactCurrentOwner, Ke = E.ReactDebugCurrentFrame;
|
|
470
470
|
function te(n) {
|
|
471
471
|
if (n) {
|
|
472
|
-
var p = n._owner,
|
|
473
|
-
Ke.setExtraStackFrame(
|
|
472
|
+
var p = n._owner, y = ve(n.type, n._source, p ? p.type : null);
|
|
473
|
+
Ke.setExtraStackFrame(y);
|
|
474
474
|
} else
|
|
475
475
|
Ke.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
@@ -494,10 +494,10 @@ Check the render method of \`` + n + "`.";
|
|
|
494
494
|
function Tt(n) {
|
|
495
495
|
{
|
|
496
496
|
if (n !== void 0) {
|
|
497
|
-
var p = n.fileName.replace(/^.*[\\\/]/, ""),
|
|
497
|
+
var p = n.fileName.replace(/^.*[\\\/]/, ""), y = n.lineNumber;
|
|
498
498
|
return `
|
|
499
499
|
|
|
500
|
-
Check your code at ` + p + ":" +
|
|
500
|
+
Check your code at ` + p + ":" + y + ".";
|
|
501
501
|
}
|
|
502
502
|
return "";
|
|
503
503
|
}
|
|
@@ -507,10 +507,10 @@ Check your code at ` + p + ":" + v + ".";
|
|
|
507
507
|
{
|
|
508
508
|
var p = ze();
|
|
509
509
|
if (!p) {
|
|
510
|
-
var
|
|
511
|
-
|
|
510
|
+
var y = typeof n == "string" ? n : n.displayName || n.name;
|
|
511
|
+
y && (p = `
|
|
512
512
|
|
|
513
|
-
Check the top-level render call using <` +
|
|
513
|
+
Check the top-level render call using <` + y + ">.");
|
|
514
514
|
}
|
|
515
515
|
return p;
|
|
516
516
|
}
|
|
@@ -520,12 +520,12 @@ Check the top-level render call using <` + v + ">.");
|
|
|
520
520
|
if (!n._store || n._store.validated || n.key != null)
|
|
521
521
|
return;
|
|
522
522
|
n._store.validated = !0;
|
|
523
|
-
var
|
|
524
|
-
if (Je[
|
|
523
|
+
var y = kt(p);
|
|
524
|
+
if (Je[y])
|
|
525
525
|
return;
|
|
526
|
-
Je[
|
|
527
|
-
var
|
|
528
|
-
n && n._owner && n._owner !== ke.current && (
|
|
526
|
+
Je[y] = !0;
|
|
527
|
+
var L = "";
|
|
528
|
+
n && n._owner && n._owner !== ke.current && (L = " It was passed a child from " + K(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
531
|
function Ge(n, p) {
|
|
@@ -533,17 +533,17 @@ Check the top-level render call using <` + v + ">.");
|
|
|
533
533
|
if (typeof n != "object")
|
|
534
534
|
return;
|
|
535
535
|
if (Le(n))
|
|
536
|
-
for (var
|
|
537
|
-
var
|
|
538
|
-
we(
|
|
536
|
+
for (var y = 0; y < n.length; y++) {
|
|
537
|
+
var L = n[y];
|
|
538
|
+
we(L) && Ye(L, p);
|
|
539
539
|
}
|
|
540
540
|
else if (we(n))
|
|
541
541
|
n._store && (n._store.validated = !0);
|
|
542
542
|
else if (n) {
|
|
543
|
-
var
|
|
544
|
-
if (typeof
|
|
545
|
-
for (var M =
|
|
546
|
-
we(
|
|
543
|
+
var F = k(n);
|
|
544
|
+
if (typeof F == "function" && F !== n.entries)
|
|
545
|
+
for (var M = F.call(n), I; !(I = M.next()).done; )
|
|
546
|
+
we(I.value) && Ye(I.value, p);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -552,73 +552,73 @@ Check the top-level render call using <` + v + ">.");
|
|
|
552
552
|
var p = n.type;
|
|
553
553
|
if (p == null || typeof p == "string")
|
|
554
554
|
return;
|
|
555
|
-
var
|
|
555
|
+
var y;
|
|
556
556
|
if (typeof p == "function")
|
|
557
|
-
|
|
557
|
+
y = p.propTypes;
|
|
558
558
|
else if (typeof p == "object" && (p.$$typeof === u || // Note: Memo only checks outer props here.
|
|
559
559
|
// Inner props are checked in the reconciler.
|
|
560
560
|
p.$$typeof === m))
|
|
561
|
-
|
|
561
|
+
y = p.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
|
-
if (
|
|
565
|
-
var
|
|
566
|
-
dt(
|
|
564
|
+
if (y) {
|
|
565
|
+
var L = K(p);
|
|
566
|
+
dt(y, n.props, "prop", L, n);
|
|
567
567
|
} else if (p.PropTypes !== void 0 && !Re) {
|
|
568
568
|
Re = !0;
|
|
569
|
-
var
|
|
570
|
-
|
|
569
|
+
var F = K(p);
|
|
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
575
|
function wt(n) {
|
|
576
576
|
{
|
|
577
|
-
for (var p = Object.keys(n.props),
|
|
578
|
-
var
|
|
579
|
-
if (
|
|
580
|
-
te(n),
|
|
577
|
+
for (var p = Object.keys(n.props), y = 0; y < p.length; y++) {
|
|
578
|
+
var L = p[y];
|
|
579
|
+
if (L !== "children" && L !== "key") {
|
|
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 Xe(n, p,
|
|
587
|
+
function Xe(n, p, y, L, F, M) {
|
|
588
588
|
{
|
|
589
|
-
var
|
|
590
|
-
if (!
|
|
589
|
+
var I = q(n);
|
|
590
|
+
if (!I) {
|
|
591
591
|
var w = "";
|
|
592
592
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
|
-
var V = Tt(
|
|
593
|
+
var V = Tt(F);
|
|
594
594
|
V ? w += V : w += ze();
|
|
595
|
-
var
|
|
596
|
-
n === null ?
|
|
595
|
+
var $;
|
|
596
|
+
n === null ? $ = "null" : Le(n) ? $ = "array" : n !== void 0 && n.$$typeof === e ? ($ = "<" + (K(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 _ = Lt(n, p,
|
|
598
|
+
var _ = Lt(n, p, y, F, M);
|
|
599
599
|
if (_ == null)
|
|
600
600
|
return _;
|
|
601
|
-
if (
|
|
601
|
+
if (I) {
|
|
602
602
|
var z = p.children;
|
|
603
603
|
if (z !== void 0)
|
|
604
|
-
if (
|
|
604
|
+
if (L)
|
|
605
605
|
if (Le(z)) {
|
|
606
606
|
for (var ae = 0; ae < z.length; ae++)
|
|
607
607
|
Ge(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
|
Ge(z, n);
|
|
613
613
|
}
|
|
614
614
|
return n === s ? wt(_) : Rt(_), _;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
function Et(n, p,
|
|
618
|
-
return Xe(n, p,
|
|
617
|
+
function Et(n, p, y) {
|
|
618
|
+
return Xe(n, p, y, !0);
|
|
619
619
|
}
|
|
620
|
-
function It(n, p,
|
|
621
|
-
return Xe(n, p,
|
|
620
|
+
function It(n, p, y) {
|
|
621
|
+
return Xe(n, p, y, !1);
|
|
622
622
|
}
|
|
623
623
|
var Pt = It, jt = Et;
|
|
624
624
|
oe.Fragment = s, oe.jsx = Pt, oe.jsxs = jt;
|
|
@@ -851,7 +851,7 @@ class $t {
|
|
|
851
851
|
order: "",
|
|
852
852
|
facets: [],
|
|
853
853
|
additionalProps: []
|
|
854
|
-
})), 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", B.mustache), h(this, "parsedData", new Nt(this)), h(this, "sessionId"), h(this, "autoCorrect", !0), h(this, "forceNotCorrect", !1), h(this, "lastSearchValue", ""), h(this, "turnAIAnswerGenerationOn", !1), h(this, "isInfiniteScroll", !1), h(this, "firstSearchHappened", !1), this.sessionId = e, this.cookieHandlingCallback(), this.$cookiesDisabled.subscribe(() => {
|
|
854
|
+
})), 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", B.mustache), h(this, "parsedData", new Nt(this)), h(this, "sessionId"), 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, this.cookieHandlingCallback(), this.$cookiesDisabled.subscribe(() => {
|
|
855
855
|
this.cookieHandlingCallback();
|
|
856
856
|
});
|
|
857
857
|
}
|
|
@@ -877,7 +877,7 @@ class $t {
|
|
|
877
877
|
this.$loadingChange.setValue(e);
|
|
878
878
|
}
|
|
879
879
|
setSearchResults(e) {
|
|
880
|
-
this.firstSearchHappened = !0, J.deepEqual(e, this.searchResults ?? [""]) || this.$searchResults.setValue(e);
|
|
880
|
+
this.firstSearchHappened = !0, (!J.deepEqual(e, this.searchResults ?? [""]) || this.facetsWereSet) && (this.facetsWereSet = !1, this.$searchResults.setValue(e));
|
|
881
881
|
}
|
|
882
882
|
setSearchResultsMetadata(e) {
|
|
883
883
|
J.deepEqual(e, this.searchResultsMetadata ?? {}) || this.$searchResultsMetadata.setValue(e);
|
|
@@ -891,7 +891,7 @@ class $t {
|
|
|
891
891
|
(s = (t = this.searchstaxConfig) == null ? void 0 : t.hooks) != null && s.beforeSearch && a && (a = this.searchstaxConfig.hooks.beforeSearch(a)), a && (!J.deepEqual(a, this.searchObject ?? {}) || this.forceNotCorrect) && this.$searchObject.setValue(a);
|
|
892
892
|
}
|
|
893
893
|
setSearchFacets(e) {
|
|
894
|
-
J.deepEqual(e, this.searchFacets ?? []) || this.$searchFacets.setValue(e);
|
|
894
|
+
J.deepEqual(e, this.searchFacets ?? []) || (this.facetsWereSet = !0, this.$searchFacets.setValue(e));
|
|
895
895
|
}
|
|
896
896
|
setSearchFacetsCached(e) {
|
|
897
897
|
J.deepEqual(e, this.searchFacetsCached ?? []) || this.$searchFacetsCached.setValue(e);
|
|
@@ -1283,17 +1283,17 @@ class _t {
|
|
|
1283
1283
|
if (e.query && e.query !== "undefined" && e.itemsPerPage !== void 0) {
|
|
1284
1284
|
this.dataLayer.setSearchTerm(e.query), this.dataLayer.setLoading(!0), this.controllerSearch && this.controllerSearch.abort(), this.controllerSearch = new AbortController(), this.signalSearch = this.controllerSearch.signal;
|
|
1285
1285
|
const r = new Proxy(new URLSearchParams(window.location.search), {
|
|
1286
|
-
get: (
|
|
1286
|
+
get: (v, S) => v.get(S) ?? ""
|
|
1287
1287
|
}), c = r.languageVariant ? (
|
|
1288
1288
|
//@ts-expect-error - this is a hack to get around the fact that the urlQueryParams is a proxy
|
|
1289
1289
|
"&fq=_language:" + r.languageVariant
|
|
1290
1290
|
) : "";
|
|
1291
1291
|
let l = e.itemsPerPage, u = e.itemsPerPage * (e.page - 1), d = e.order ? `&sort=${e.order}` : "";
|
|
1292
1292
|
const g = this.url + "?q=" + encodeURIComponent(e.query.trim()) + "&start=" + u + this.toQueryString(e.additionalProps ?? []) + this.generateFacetQuery(
|
|
1293
|
-
e.facets.filter((
|
|
1293
|
+
e.facets.filter((v) => v.type === "or" || v.type === "showUnavailable"),
|
|
1294
1294
|
!0
|
|
1295
1295
|
) + this.generateFacetQuery(
|
|
1296
|
-
e.facets.filter((
|
|
1296
|
+
e.facets.filter((v) => v.type === "and" || v.type === "tabs"),
|
|
1297
1297
|
!1
|
|
1298
1298
|
) + d + `&spellcheck.correct=${this.dataLayer.autoCorrect && !a}&rows=${l}&language=` + this.dataLayer.language + c, m = {
|
|
1299
1299
|
method: "GET",
|
|
@@ -1301,8 +1301,8 @@ class _t {
|
|
|
1301
1301
|
credentials: "same-origin",
|
|
1302
1302
|
signal: this.signalSearch
|
|
1303
1303
|
};
|
|
1304
|
-
s && delete m.signal, fetch(g, m).then((
|
|
1305
|
-
this.dataLayer.setLoading(!1), t(
|
|
1304
|
+
s && delete m.signal, fetch(g, m).then((v) => v.json()).then((v) => {
|
|
1305
|
+
this.dataLayer.setLoading(!1), t(v);
|
|
1306
1306
|
}).catch(() => {
|
|
1307
1307
|
this.dataLayer.setLoading(!1);
|
|
1308
1308
|
});
|
|
@@ -1476,31 +1476,31 @@ function ea(i, e) {
|
|
|
1476
1476
|
r = [];
|
|
1477
1477
|
c = !1, l = !1;
|
|
1478
1478
|
}
|
|
1479
|
-
var m,
|
|
1479
|
+
var m, v, S;
|
|
1480
1480
|
function O(b) {
|
|
1481
1481
|
if (typeof b == "string" && (b = b.split(Gt, 2)), !ie(b) || b.length !== 2)
|
|
1482
1482
|
throw new Error("Invalid tags: " + b);
|
|
1483
|
-
m = new RegExp(Ie(b[0]) + "\\s*"),
|
|
1483
|
+
m = new RegExp(Ie(b[0]) + "\\s*"), v = new RegExp("\\s*" + Ie(b[1])), S = new RegExp("\\s*" + Ie("}" + b[1]));
|
|
1484
1484
|
}
|
|
1485
1485
|
O(e || P.tags);
|
|
1486
|
-
for (var R = new ge(i),
|
|
1487
|
-
if (
|
|
1488
|
-
for (var Q = 0, f =
|
|
1489
|
-
N =
|
|
1486
|
+
for (var R = new ge(i), k, E, T, N, W, A; !R.eos(); ) {
|
|
1487
|
+
if (k = R.pos, T = R.scanUntil(m), T)
|
|
1488
|
+
for (var Q = 0, f = T.length; Q < f; ++Q)
|
|
1489
|
+
N = T.charAt(Q), Kt(N) ? (r.push(a.length), u += N) : (l = !0, t = !0, u += " "), a.push(["text", N, k, k + 1]), k += 1, N === `
|
|
1490
1490
|
` && (g(), u = "", d = 0, t = !1);
|
|
1491
1491
|
if (!R.scan(m))
|
|
1492
1492
|
break;
|
|
1493
|
-
if (c = !0,
|
|
1493
|
+
if (c = !0, E = R.scan(Zt) || "name", R.scan(Yt), E === "=" ? (T = R.scanUntil(it), R.scan(it), R.scanUntil(v)) : E === "{" ? (T = R.scanUntil(S), R.scan(Xt), R.scanUntil(v), E = "&") : T = R.scanUntil(v), !R.scan(v))
|
|
1494
1494
|
throw new Error("Unclosed tag at " + R.pos);
|
|
1495
|
-
if (
|
|
1495
|
+
if (E == ">" ? W = [E, T, k, R.pos, u, d, t] : W = [E, T, k, R.pos], d++, a.push(W), E === "#" || E === "^")
|
|
1496
1496
|
s.push(W);
|
|
1497
|
-
else if (
|
|
1497
|
+
else if (E === "/") {
|
|
1498
1498
|
if (A = s.pop(), !A)
|
|
1499
|
-
throw new Error('Unopened section "' +
|
|
1500
|
-
if (A[1] !==
|
|
1501
|
-
throw new Error('Unclosed section "' + A[1] + '" at ' +
|
|
1499
|
+
throw new Error('Unopened section "' + T + '" at ' + k);
|
|
1500
|
+
if (A[1] !== T)
|
|
1501
|
+
throw new Error('Unclosed section "' + A[1] + '" at ' + k);
|
|
1502
1502
|
} else
|
|
1503
|
-
|
|
1503
|
+
E === "name" || E === "{" || E === "&" ? l = !0 : E === "=" && O(T);
|
|
1504
1504
|
}
|
|
1505
1505
|
if (g(), A = s.pop(), A)
|
|
1506
1506
|
throw new Error('Unclosed section "' + A[1] + '" at ' + R.pos);
|
|
@@ -2107,15 +2107,18 @@ class da {
|
|
|
2107
2107
|
}
|
|
2108
2108
|
class ga {
|
|
2109
2109
|
constructor(e, t) {
|
|
2110
|
-
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) => {
|
|
2110
|
+
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) => {
|
|
2111
2111
|
if (s.stopPropagation(), !a.disabled) {
|
|
2112
|
-
const
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2112
|
+
const u = r.querySelector("input");
|
|
2113
|
+
let d = c ? u.checked : !u.checked;
|
|
2114
|
+
l !== void 0 && (d = !l), u.checked = d;
|
|
2115
|
+
const g = this.dataLayer.searchObject;
|
|
2116
|
+
let m = [...g.facets];
|
|
2117
|
+
const v = this.extractFacetValue(a);
|
|
2118
|
+
d ? m.find((S) => J.deepEqual(S, v) ? S : !1) || (this.config.facetingType === "tabs" && (m = m.filter((S) => S.name !== v.name)), m.push(v)) : m = m.filter(
|
|
2119
|
+
(S) => !J.deepEqual(S, v)
|
|
2120
|
+
), setTimeout(() => {
|
|
2121
|
+
this.dataLayer.setSearchObject({ ...g, facets: m, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
|
|
2119
2122
|
}, 0);
|
|
2120
2123
|
}
|
|
2121
2124
|
}), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.routerHelper = e.routerHelper, this.cacheFacets = t, this.facetPaginationStep = this.config.itemsPerPageDesktop, this.facetPaginationStepMobile = this.config.itemsPerPageMobile, this.searchFacetsMainContainer = document.getElementById(this.containerId), this.needCache && t(), this.initializeSubscriptions();
|
|
@@ -2158,7 +2161,9 @@ class ga {
|
|
|
2158
2161
|
let t = this.dataLayer.searchFacets;
|
|
2159
2162
|
this.needCache && this.dataLayer.searchFacetsCached && (t = this.dataLayer.searchFacetsCached, this.needDisabling && (t = t.map((a) => {
|
|
2160
2163
|
var r;
|
|
2161
|
-
const c = (r = this.dataLayer.searchFacets) == null ? void 0 : r.find(
|
|
2164
|
+
const c = (r = this.dataLayer.searchFacets) == null ? void 0 : r.find(
|
|
2165
|
+
(l) => l.name === a.name
|
|
2166
|
+
);
|
|
2162
2167
|
return c ? {
|
|
2163
2168
|
...a,
|
|
2164
2169
|
values: a.values.map((l) => {
|
|
@@ -2177,10 +2182,12 @@ class ga {
|
|
|
2177
2182
|
})),
|
|
2178
2183
|
isMobile: e
|
|
2179
2184
|
};
|
|
2180
|
-
}))), this.config.specificFacets && (t = t.filter(
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2185
|
+
}))), this.config.specificFacets && (t = t.filter(
|
|
2186
|
+
(a) => {
|
|
2187
|
+
var r;
|
|
2188
|
+
return (r = this.config.specificFacets) == null ? void 0 : r.includes(a.name);
|
|
2189
|
+
}
|
|
2190
|
+
));
|
|
2184
2191
|
const s = {
|
|
2185
2192
|
facets: this.applyFacetLimits(t, e),
|
|
2186
2193
|
...this.dataLayer.parsedData.data,
|
|
@@ -2193,22 +2200,28 @@ class ga {
|
|
|
2193
2200
|
}
|
|
2194
2201
|
}
|
|
2195
2202
|
createFacetItem(e, t, s) {
|
|
2196
|
-
var a, r, c, l, u, d, g, m,
|
|
2197
|
-
const
|
|
2198
|
-
|
|
2199
|
-
const
|
|
2200
|
-
|
|
2201
|
-
|
|
2203
|
+
var a, r, c, l, u, d, g, m, v, S, O, R;
|
|
2204
|
+
const k = document.createElement("div");
|
|
2205
|
+
k.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || k.classList.add("active");
|
|
2206
|
+
const E = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.facetItemContainerTemplate) == null ? void 0 : c.template) || ((l = x.facets.facetItemContainerTemplate) == null ? void 0 : l.template);
|
|
2207
|
+
k.innerHTML = P.render(
|
|
2208
|
+
E,
|
|
2209
|
+
e
|
|
2210
|
+
), t.appendChild(k);
|
|
2211
|
+
const T = k.querySelector(
|
|
2202
2212
|
"." + (((g = (d = (u = this.config) == null ? void 0 : u.templates) == null ? void 0 : d.facetItemContainerTemplate) == null ? void 0 : g.facetListTitleContainerClass) || ((m = x.facets.facetItemContainerTemplate) == null ? void 0 : m.facetListTitleContainerClass))
|
|
2203
2213
|
);
|
|
2204
|
-
|
|
2205
|
-
|
|
2214
|
+
T == null || T.addEventListener("click", () => {
|
|
2215
|
+
k.classList.toggle("active");
|
|
2206
2216
|
});
|
|
2207
|
-
const N =
|
|
2208
|
-
"." + (((O = (
|
|
2217
|
+
const N = k.querySelector(
|
|
2218
|
+
"." + (((O = (S = (v = this.config) == null ? void 0 : v.templates) == null ? void 0 : S.facetItemContainerTemplate) == null ? void 0 : O.facetListContainerClass) || ((R = x.facets.facetItemContainerTemplate) == null ? void 0 : R.facetListContainerClass))
|
|
2209
2219
|
);
|
|
2210
2220
|
N && (e.values.forEach((W) => {
|
|
2211
|
-
this.createFacetListItem(
|
|
2221
|
+
this.createFacetListItem(
|
|
2222
|
+
W,
|
|
2223
|
+
N
|
|
2224
|
+
);
|
|
2212
2225
|
}), e.hasMoreFacets && this.createHasMoreComponent(e, N, s));
|
|
2213
2226
|
}
|
|
2214
2227
|
isChecked(e) {
|
|
@@ -2216,30 +2229,36 @@ class ga {
|
|
|
2216
2229
|
return !!((t = this.dataLayer.searchObject.facets) != null && t.find((s) => J.deepEqual(s, this.extractFacetValue(e))));
|
|
2217
2230
|
}
|
|
2218
2231
|
createFacetListItem(e, t) {
|
|
2219
|
-
var s, a, r, c, l, u, d, g, m,
|
|
2220
|
-
const
|
|
2221
|
-
|
|
2222
|
-
const
|
|
2223
|
-
|
|
2232
|
+
var s, a, r, c, l, u, d, g, m, v, S, O, R;
|
|
2233
|
+
const k = document.createElement("div");
|
|
2234
|
+
k.classList.add("searchstax-facet-value-container"), e.disabled && k.classList.add("searchstax-facet-value-disabled");
|
|
2235
|
+
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 = x.facets.facetItemTemplate) == null ? void 0 : c.template);
|
|
2236
|
+
k.innerHTML = P.render(
|
|
2237
|
+
T,
|
|
2238
|
+
{ ...e, isChecked: E }
|
|
2239
|
+
);
|
|
2224
2240
|
let N = (l = x.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
|
|
2225
2241
|
N = ((g = (d = (u = this.config) == null ? void 0 : u.templates) == null ? void 0 : d.facetItemTemplate) == null ? void 0 : g.checkTriggerClasses) || N, N.forEach((W) => {
|
|
2226
2242
|
var A;
|
|
2227
|
-
(A =
|
|
2228
|
-
this.onFacetSelect(Q, e,
|
|
2243
|
+
(A = k.querySelector("." + W)) == null || A.addEventListener("click", (Q) => {
|
|
2244
|
+
this.onFacetSelect(Q, e, k);
|
|
2229
2245
|
});
|
|
2230
|
-
}), (R =
|
|
2231
|
-
"." + (((
|
|
2246
|
+
}), (R = k.querySelector(
|
|
2247
|
+
"." + (((S = (v = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : v.facetItemTemplate) == null ? void 0 : S.inputCheckboxClass) || ((O = x.facets.facetItemTemplate) == null ? void 0 : O.inputCheckboxClass))
|
|
2232
2248
|
)) == null || R.addEventListener("click", (W) => {
|
|
2233
|
-
this.onFacetSelect(W, e,
|
|
2234
|
-
}), t.appendChild(
|
|
2249
|
+
this.onFacetSelect(W, e, k, !0);
|
|
2250
|
+
}), t.appendChild(k);
|
|
2235
2251
|
}
|
|
2236
2252
|
createHasMoreComponent(e, t, s) {
|
|
2237
2253
|
var a, r, c, l, u, d, g, m;
|
|
2238
|
-
const
|
|
2239
|
-
|
|
2240
|
-
const
|
|
2241
|
-
|
|
2242
|
-
|
|
2254
|
+
const v = document.createElement("div");
|
|
2255
|
+
v.classList.add("searchstax-facet-show-more-container");
|
|
2256
|
+
const S = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : c.template) || ((l = x.facets.showMoreButtonContainerTemplate) == null ? void 0 : l.template);
|
|
2257
|
+
v.innerHTML = P.render(
|
|
2258
|
+
S,
|
|
2259
|
+
e
|
|
2260
|
+
);
|
|
2261
|
+
const O = v.querySelector(
|
|
2243
2262
|
"." + (((g = (d = (u = this.config) == null ? void 0 : u.templates) == null ? void 0 : d.showMoreButtonContainerTemplate) == null ? void 0 : g.showMoreButtonClass) || ((m = x.facets.showMoreButtonContainerTemplate) == null ? void 0 : m.showMoreButtonClass))
|
|
2244
2263
|
);
|
|
2245
2264
|
O && (this.attachOnclickToShowMore(e, O, s), t && t.appendChild(O));
|
|
@@ -2255,26 +2274,29 @@ class ga {
|
|
|
2255
2274
|
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());
|
|
2256
2275
|
}
|
|
2257
2276
|
renderMainTemplate(e, t) {
|
|
2258
|
-
var s, a, r, c, l, u, d, g, m,
|
|
2277
|
+
var s, a, r, c, l, u, d, g, m, v, S;
|
|
2259
2278
|
if (e && (!J.deepEqual(this.cachedData ?? {}, e) || t)) {
|
|
2260
2279
|
this.cachedData = e;
|
|
2261
2280
|
const O = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.mainTemplateDesktop) == null ? void 0 : r.template) || ((c = x.facets.mainTemplateDesktop) == null ? void 0 : c.template);
|
|
2262
2281
|
if (this.dataLayer.renderingEngine === B.mustache && this.searchFacetsMainContainer) {
|
|
2263
|
-
this.searchFacetsMainContainer.innerHTML = P.render(
|
|
2264
|
-
|
|
2265
|
-
|
|
2282
|
+
this.searchFacetsMainContainer.innerHTML = P.render(
|
|
2283
|
+
O,
|
|
2284
|
+
{
|
|
2285
|
+
...e
|
|
2286
|
+
}
|
|
2287
|
+
);
|
|
2266
2288
|
const R = (g = this.searchFacetsMainContainer) == null ? void 0 : g.querySelector(
|
|
2267
2289
|
"." + (((d = (u = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : u.mainTemplateDesktop) == null ? void 0 : d.facetsContainerClass) || x.facets.mainTemplateDesktop.facetsContainerClass)
|
|
2268
2290
|
);
|
|
2269
2291
|
if (R) {
|
|
2270
2292
|
R.innerHTML = "";
|
|
2271
|
-
for (const
|
|
2272
|
-
this.createFacetItem(
|
|
2293
|
+
for (const k of e.facets)
|
|
2294
|
+
this.createFacetItem(k, R);
|
|
2273
2295
|
if (this.searchFacetsMainContainer) {
|
|
2274
|
-
const
|
|
2275
|
-
"." + (((
|
|
2296
|
+
const k = this.searchFacetsMainContainer.querySelector(
|
|
2297
|
+
"." + (((S = (v = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : v.mainTemplateDesktop) == null ? void 0 : S.selectedFacetsContainerClass) || x.facets.mainTemplateDesktop.selectedFacetsContainerClass)
|
|
2276
2298
|
);
|
|
2277
|
-
|
|
2299
|
+
k && (this.createSelectedFacetsComponents(k), this.createClearFacetsComponents(k));
|
|
2278
2300
|
}
|
|
2279
2301
|
}
|
|
2280
2302
|
}
|
|
@@ -2287,7 +2309,9 @@ class ga {
|
|
|
2287
2309
|
for (const s of t) {
|
|
2288
2310
|
const a = decodeURIComponent(s.name), r = decodeURIComponent(s.value);
|
|
2289
2311
|
if (this.dataLayer.searchFacets) {
|
|
2290
|
-
const c = this.needCache ? this.dataLayer.searchFacetsCached : this.dataLayer.searchFacets, l = c == null ? void 0 : c.find(
|
|
2312
|
+
const c = this.needCache ? this.dataLayer.searchFacetsCached : this.dataLayer.searchFacets, l = c == null ? void 0 : c.find(
|
|
2313
|
+
(u) => u.name === a
|
|
2314
|
+
);
|
|
2291
2315
|
if (l) {
|
|
2292
2316
|
const u = l.values.find((d) => d.type === "range" ? !1 : d.type === "checkbox" ? `"${d.value}"` == `"${r}"` : !1);
|
|
2293
2317
|
u && e.push(u);
|
|
@@ -2304,32 +2328,40 @@ class ga {
|
|
|
2304
2328
|
}
|
|
2305
2329
|
createClearFacetsComponents(e) {
|
|
2306
2330
|
var t, s, a, r, c, l, u, d;
|
|
2307
|
-
const g = this.dataLayer.searchObject, m = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.clearFacetsTemplate) == null ? void 0 : a.template) || ((r = x.facets.clearFacetsTemplate) == null ? void 0 : r.template),
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2331
|
+
const g = this.dataLayer.searchObject, m = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.clearFacetsTemplate) == null ? void 0 : a.template) || ((r = x.facets.clearFacetsTemplate) == null ? void 0 : r.template), v = document.createElement("div");
|
|
2332
|
+
v.innerHTML = P.render(
|
|
2333
|
+
m,
|
|
2334
|
+
{
|
|
2335
|
+
shouldShow: g.facets.length > 0
|
|
2336
|
+
}
|
|
2337
|
+
);
|
|
2338
|
+
const S = v.querySelector(
|
|
2312
2339
|
"." + (((u = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.clearFacetsTemplate) == null ? void 0 : u.containerClass) || ((d = x.facets.clearFacetsTemplate) == null ? void 0 : d.containerClass))
|
|
2313
2340
|
);
|
|
2314
|
-
|
|
2341
|
+
S && (S.addEventListener("click", () => {
|
|
2315
2342
|
this.removeSelectedFacets();
|
|
2316
|
-
}), e.appendChild(
|
|
2343
|
+
}), e.appendChild(S));
|
|
2317
2344
|
}
|
|
2318
2345
|
createSelectedFacetsComponent(e, t) {
|
|
2319
2346
|
var s, a, r, c, l, u, d, g;
|
|
2320
|
-
const m = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.selectedFacetsTemplate) == null ? void 0 : r.template) || ((c = x.facets.selectedFacetsTemplate) == null ? void 0 : c.template),
|
|
2321
|
-
|
|
2322
|
-
|
|
2347
|
+
const m = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.selectedFacetsTemplate) == null ? void 0 : r.template) || ((c = x.facets.selectedFacetsTemplate) == null ? void 0 : c.template), v = document.createElement("div");
|
|
2348
|
+
v.innerHTML = P.render(
|
|
2349
|
+
m,
|
|
2350
|
+
t
|
|
2351
|
+
);
|
|
2352
|
+
const S = v.querySelector(
|
|
2323
2353
|
"." + (((d = (u = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : u.selectedFacetsTemplate) == null ? void 0 : d.containerClass) || ((g = x.facets.selectedFacetsTemplate) == null ? void 0 : g.containerClass))
|
|
2324
2354
|
);
|
|
2325
|
-
|
|
2355
|
+
S && (S.addEventListener("click", () => {
|
|
2326
2356
|
this.unselectFacet(t);
|
|
2327
|
-
}), e.appendChild(
|
|
2357
|
+
}), e.appendChild(S));
|
|
2328
2358
|
}
|
|
2329
2359
|
unselectFacet(e) {
|
|
2330
2360
|
const t = this.dataLayer.searchObject;
|
|
2331
2361
|
let s = [...t.facets];
|
|
2332
|
-
e.type === "checkbox" && (s = s.filter(
|
|
2362
|
+
e.type === "checkbox" && (s = s.filter(
|
|
2363
|
+
(a) => JSON.stringify(a) !== JSON.stringify(this.extractFacetValue(e))
|
|
2364
|
+
)), setTimeout(() => {
|
|
2333
2365
|
this.dataLayer.setSearchObject({ ...t, facets: s }), this.generateSelectedFacetsData();
|
|
2334
2366
|
}, 0);
|
|
2335
2367
|
}
|
|
@@ -2340,11 +2372,14 @@ class ga {
|
|
|
2340
2372
|
createFilterByComponent(e) {
|
|
2341
2373
|
var t, s, a, r, c, l, u, d;
|
|
2342
2374
|
const g = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.filterByTemplate) == null ? void 0 : a.template) || ((r = x.facets.filterByTemplate) == null ? void 0 : r.template), m = document.createElement("div");
|
|
2343
|
-
m.innerHTML = P.render(
|
|
2344
|
-
|
|
2375
|
+
m.innerHTML = P.render(
|
|
2376
|
+
g,
|
|
2377
|
+
{}
|
|
2378
|
+
);
|
|
2379
|
+
const v = m.querySelector(
|
|
2345
2380
|
"." + (((u = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.filterByTemplate) == null ? void 0 : u.containerClass) || ((d = x.facets.filterByTemplate) == null ? void 0 : d.containerClass))
|
|
2346
2381
|
);
|
|
2347
|
-
|
|
2382
|
+
v && (e.prepend(v), v.addEventListener("click", this.openOverlay.bind(this)));
|
|
2348
2383
|
}
|
|
2349
2384
|
openOverlay() {
|
|
2350
2385
|
var e;
|
|
@@ -2355,7 +2390,7 @@ class ga {
|
|
|
2355
2390
|
this.overlayOpened = !1, this.searchFacetsMainContainer && (document.body.classList.toggle("searchstax-no-scroll"), (e = this.searchFacetsMainContainer.querySelector(".searchstax-facets-mobile-overlay")) == null || e.classList.remove("searchstax-show"));
|
|
2356
2391
|
}
|
|
2357
2392
|
renderMobileTemplate(e) {
|
|
2358
|
-
var t, s, a, r, c, l, u, d, g, m,
|
|
2393
|
+
var t, s, a, r, c, l, u, d, g, m, v, S, O, R, k, E, T, N, W;
|
|
2359
2394
|
if (e) {
|
|
2360
2395
|
const A = document.createElement("div");
|
|
2361
2396
|
A.classList.add("searchstax-facets-container-mobile");
|
|
@@ -2365,30 +2400,30 @@ class ga {
|
|
|
2365
2400
|
...e,
|
|
2366
2401
|
overlayOpened: this.overlayOpened
|
|
2367
2402
|
}), (c = this.searchFacetsMainContainer) == null || c.appendChild(A), (u = (l = this.config) == null ? void 0 : l.templates) != null && u.mainTemplateMobile)
|
|
2368
|
-
for (const
|
|
2369
|
-
const G = A.querySelector("." +
|
|
2403
|
+
for (const q of ((m = (g = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : g.mainTemplateMobile) == null ? void 0 : m.closeOverlayTriggerClasses) || []) {
|
|
2404
|
+
const G = A.querySelector("." + q);
|
|
2370
2405
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2371
2406
|
}
|
|
2372
2407
|
else
|
|
2373
|
-
for (const
|
|
2374
|
-
const G = A.querySelector("." +
|
|
2408
|
+
for (const q of x.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
|
|
2409
|
+
const G = A.querySelector("." + q);
|
|
2375
2410
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2376
2411
|
}
|
|
2377
2412
|
const f = A.querySelector(
|
|
2378
|
-
"." + (((O = (
|
|
2413
|
+
"." + (((O = (S = (v = this.config) == null ? void 0 : v.templates) == null ? void 0 : S.mainTemplateMobile) == null ? void 0 : O.filterByContainerClass) || x.facets.mainTemplateMobile.filterByContainerClass)
|
|
2379
2414
|
);
|
|
2380
2415
|
f && this.createFilterByComponent(f);
|
|
2381
2416
|
const b = A.querySelector(
|
|
2382
|
-
"." + (((
|
|
2417
|
+
"." + (((E = (k = (R = this.config) == null ? void 0 : R.templates) == null ? void 0 : k.mainTemplateMobile) == null ? void 0 : E.selectedFacetsContainerClass) || x.facets.mainTemplateMobile.selectedFacetsContainerClass)
|
|
2383
2418
|
);
|
|
2384
2419
|
b && (this.createSelectedFacetsComponents(b), this.createClearFacetsComponents(b));
|
|
2385
|
-
const
|
|
2386
|
-
"." + (((W = (N = (
|
|
2420
|
+
const j = A.querySelector(
|
|
2421
|
+
"." + (((W = (N = (T = this.config) == null ? void 0 : T.templates) == null ? void 0 : N.mainTemplateMobile) == null ? void 0 : W.facetsContainerClass) || x.facets.mainTemplateMobile.facetsContainerClass)
|
|
2387
2422
|
);
|
|
2388
|
-
if (
|
|
2389
|
-
|
|
2390
|
-
for (const
|
|
2391
|
-
this.createFacetItem(
|
|
2423
|
+
if (j) {
|
|
2424
|
+
j.innerHTML = "";
|
|
2425
|
+
for (const q of e.facets)
|
|
2426
|
+
this.createFacetItem(q, j, !0);
|
|
2392
2427
|
}
|
|
2393
2428
|
}
|
|
2394
2429
|
}
|
|
@@ -2462,9 +2497,9 @@ class pa {
|
|
|
2462
2497
|
renderMainTemplate(e) {
|
|
2463
2498
|
var t, s, a, r, c, l, u, d, g, m;
|
|
2464
2499
|
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));
|
|
2465
|
-
let
|
|
2466
|
-
this.dataLayer.isInfiniteScroll && (
|
|
2467
|
-
|
|
2500
|
+
let v = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : c.template) || ((l = x.pagination.mainTemplate) == null ? void 0 : l.template);
|
|
2501
|
+
this.dataLayer.isInfiniteScroll && (v = ((g = (d = (u = this.config) == null ? void 0 : u.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : g.template) || ((m = x.pagination.infiniteScrollTemplate) == null ? void 0 : m.template)), this.dataLayer.renderingEngine === B.mustache && (this.searchPaginationMainContainer.innerHTML = P.render(
|
|
2502
|
+
v,
|
|
2468
2503
|
e
|
|
2469
2504
|
), setTimeout(() => {
|
|
2470
2505
|
this.overridePaginationEvents();
|
|
@@ -2776,12 +2811,12 @@ class ya {
|
|
|
2776
2811
|
r,
|
|
2777
2812
|
{}
|
|
2778
2813
|
), setTimeout(() => {
|
|
2779
|
-
var c, l, u, d, g, m,
|
|
2780
|
-
const
|
|
2814
|
+
var c, l, u, d, g, m, v;
|
|
2815
|
+
const S = (u = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.mainTemplate) != null && u.searchResultsContainerId ? (m = (g = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : g.mainTemplate) == null ? void 0 : m.searchResultsContainerId : (v = x.searchResults.mainTemplate) == null ? void 0 : v.searchResultsContainerId, O = document.getElementById(S);
|
|
2781
2816
|
if (O)
|
|
2782
2817
|
this.searchResultsContainer = O;
|
|
2783
2818
|
else
|
|
2784
|
-
throw new Error(`Search Results Container with id ${
|
|
2819
|
+
throw new Error(`Search Results Container with id ${S} not found`);
|
|
2785
2820
|
}, 0));
|
|
2786
2821
|
}
|
|
2787
2822
|
}
|
|
@@ -2882,18 +2917,23 @@ class Ca {
|
|
|
2882
2917
|
}
|
|
2883
2918
|
initialize(e) {
|
|
2884
2919
|
var t, s;
|
|
2885
|
-
e.turnAIAnswerGenerationOn === !0 && (this.dataLayer.turnAIAnswerGenerationOn = !0), e.autoCorrect === !1 && (this.dataLayer.autoCorrect = !1), this.dataLayer.searchstaxConfig || (this.dataLayer.setSearchstaxConfig(e), this.searchHelper = new _t(
|
|
2920
|
+
if (e.turnAIAnswerGenerationOn === !0 && (this.dataLayer.turnAIAnswerGenerationOn = !0), e.autoCorrect === !1 && (this.dataLayer.autoCorrect = !1), this.dataLayer.searchstaxConfig || (this.dataLayer.setSearchstaxConfig(e), this.searchHelper = new _t(
|
|
2886
2921
|
{ ...e, sessionId: this.dataLayer.sessionId },
|
|
2887
2922
|
this.dataLayer
|
|
2888
|
-
)), ((t = e.router) == null ? void 0 : t.enabled) === void 0 || ((s = e.router) == null ? void 0 : s.enabled) === !0
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
this.routerHelper.urlToSearchObject(window.location.href, this.dataLayer.searchObject.itemsPerPage)
|
|
2892
|
-
), addEventListener("popstate", () => {
|
|
2893
|
-
this.routerHelper && this.dataLayer.setSearchObject(
|
|
2894
|
-
this.routerHelper.urlToSearchObject(window.location.href, this.dataLayer.searchObject.itemsPerPage)
|
|
2923
|
+
)), ((t = e.router) == null ? void 0 : t.enabled) === void 0 || ((s = e.router) == null ? void 0 : s.enabled) === !0) {
|
|
2924
|
+
this.routerEnabled = !0, this.routerHelper = new st(
|
|
2925
|
+
e.router ? e.router : { enabled: !0 }
|
|
2895
2926
|
);
|
|
2896
|
-
|
|
2927
|
+
const a = this.routerHelper.urlToSearchObject(window.location.href);
|
|
2928
|
+
this.dataLayer.searchObject.itemsPerPage && (a.itemsPerPage = this.dataLayer.searchObject.itemsPerPage), this.dataLayer.setSearchObject(
|
|
2929
|
+
a
|
|
2930
|
+
), addEventListener("popstate", () => {
|
|
2931
|
+
this.routerHelper && this.dataLayer.setSearchObject(
|
|
2932
|
+
this.routerHelper.urlToSearchObject(window.location.href, this.dataLayer.searchObject.itemsPerPage)
|
|
2933
|
+
);
|
|
2934
|
+
});
|
|
2935
|
+
} else
|
|
2936
|
+
this.routerHelper = new st({});
|
|
2897
2937
|
}
|
|
2898
2938
|
search(e) {
|
|
2899
2939
|
if (this.searchHelper) {
|
|
@@ -3200,8 +3240,8 @@ function ka(i) {
|
|
|
3200
3240
|
C.searchstax.dataLayer.$searchResults.subscribe(
|
|
3201
3241
|
(g) => {
|
|
3202
3242
|
var O;
|
|
3203
|
-
const m = s.current ?? [],
|
|
3204
|
-
((O = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : O.page) === 1 ? t(
|
|
3243
|
+
const m = s.current ?? [], v = g ?? [], S = i.renderMethod === "infiniteScroll" ? [...m, ...v] : g;
|
|
3244
|
+
((O = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : O.page) === 1 ? t(v) : t(S);
|
|
3205
3245
|
}
|
|
3206
3246
|
), C.searchstax.dataLayer.$searchTermChange.subscribe((g) => {
|
|
3207
3247
|
r(g);
|
|
@@ -3241,7 +3281,7 @@ function ka(i) {
|
|
|
3241
3281
|
/* @__PURE__ */ o.jsx("p", { children: "Lost? Click on the ‘X” in the Search Box to reset your search." })
|
|
3242
3282
|
] })
|
|
3243
3283
|
] }),
|
|
3244
|
-
e && e.length === 0 && a !== "" && a !== "*" && i.noResultTemplate && /* @__PURE__ */ o.jsx(o.Fragment, { children: i.noResultTemplate(a, c) }),
|
|
3284
|
+
e && e.length === 0 && a !== "" && a !== "*" && C.searchstax.dataLayer.parsedData.firstSearchHappened && i.noResultTemplate && /* @__PURE__ */ o.jsx(o.Fragment, { children: i.noResultTemplate(a, c) }),
|
|
3245
3285
|
e && e.length > 0 && !i.resultsTemplate && /* @__PURE__ */ o.jsx("div", { className: "searchstax-search-results", children: e !== null && e.map(function(g) {
|
|
3246
3286
|
return /* @__PURE__ */ o.jsxs(
|
|
3247
3287
|
"div",
|
|
@@ -3321,14 +3361,14 @@ function Ra(i) {
|
|
|
3321
3361
|
));
|
|
3322
3362
|
}
|
|
3323
3363
|
function d(m) {
|
|
3324
|
-
var
|
|
3325
|
-
(
|
|
3364
|
+
var v;
|
|
3365
|
+
(v = C.searchstax.searchPaginationWidget) == null || v.nextPage(
|
|
3326
3366
|
m
|
|
3327
3367
|
);
|
|
3328
3368
|
}
|
|
3329
3369
|
function g(m) {
|
|
3330
|
-
var
|
|
3331
|
-
(
|
|
3370
|
+
var v;
|
|
3371
|
+
(v = C.searchstax.searchPaginationWidget) == null || v.previousPage(
|
|
3332
3372
|
m
|
|
3333
3373
|
);
|
|
3334
3374
|
}
|
|
@@ -3504,7 +3544,7 @@ function Ia(i) {
|
|
|
3504
3544
|
), d = {}, g = Math.random();
|
|
3505
3545
|
let m = !1;
|
|
3506
3546
|
ee(() => {
|
|
3507
|
-
if (
|
|
3547
|
+
if (v(), C.searchstax)
|
|
3508
3548
|
C.searchstax.addFacetsWidget("searchstax-facets-container" + g, {
|
|
3509
3549
|
facetingType: i.facetingType,
|
|
3510
3550
|
specificFacets: i.specificFacets,
|
|
@@ -3514,7 +3554,7 @@ function Ia(i) {
|
|
|
3514
3554
|
else
|
|
3515
3555
|
throw Error("Searchstax instance needs to be passed via props");
|
|
3516
3556
|
}, []);
|
|
3517
|
-
function
|
|
3557
|
+
function v() {
|
|
3518
3558
|
m || (C.searchstax.dataLayer.$facetsTemplateData.subscribe(
|
|
3519
3559
|
(f) => {
|
|
3520
3560
|
f != null && f.isMobile ? a(f) : t(f);
|
|
@@ -3522,12 +3562,12 @@ function Ia(i) {
|
|
|
3522
3562
|
), C.searchstax.dataLayer.$selectedFacetsTemplateData.subscribe(
|
|
3523
3563
|
(f) => {
|
|
3524
3564
|
c(
|
|
3525
|
-
(f ?? []).filter((
|
|
3565
|
+
(f ?? []).filter((j) => j.type === "checkbox")
|
|
3526
3566
|
);
|
|
3527
3567
|
}
|
|
3528
3568
|
), m = !0);
|
|
3529
3569
|
}
|
|
3530
|
-
function
|
|
3570
|
+
function S(f) {
|
|
3531
3571
|
var b;
|
|
3532
3572
|
(b = C.searchstax.searchFacetsWidget) == null || b.unselectFacet(f);
|
|
3533
3573
|
}
|
|
@@ -3538,34 +3578,35 @@ function Ia(i) {
|
|
|
3538
3578
|
function R(f) {
|
|
3539
3579
|
return !l[f];
|
|
3540
3580
|
}
|
|
3541
|
-
function
|
|
3581
|
+
function k(f) {
|
|
3542
3582
|
R(f) ? u({ ...l, [f]: !0 }) : u({ ...l, [f]: !1 });
|
|
3543
3583
|
}
|
|
3544
|
-
function
|
|
3584
|
+
function E(f) {
|
|
3545
3585
|
var b;
|
|
3546
3586
|
return (b = C.searchstax.searchFacetsWidget) == null ? void 0 : b.isChecked(f);
|
|
3547
3587
|
}
|
|
3548
|
-
function
|
|
3588
|
+
function T(f, b, j, q, G) {
|
|
3549
3589
|
var Y;
|
|
3550
3590
|
const pe = G ? "mobile-" : "desktop-", K = document.getElementsByClassName(pe + f);
|
|
3551
3591
|
K[0] && ((Y = C.searchstax.searchFacetsWidget) == null || Y.onFacetSelect(
|
|
3552
3592
|
b,
|
|
3553
|
-
|
|
3593
|
+
j,
|
|
3554
3594
|
K[0],
|
|
3555
|
-
|
|
3595
|
+
!1,
|
|
3596
|
+
E(j)
|
|
3556
3597
|
));
|
|
3557
3598
|
}
|
|
3558
3599
|
function N(f, b) {
|
|
3559
|
-
var
|
|
3560
|
-
(
|
|
3600
|
+
var j;
|
|
3601
|
+
(j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
|
|
3561
3602
|
f,
|
|
3562
3603
|
b,
|
|
3563
3604
|
!1
|
|
3564
3605
|
);
|
|
3565
3606
|
}
|
|
3566
3607
|
function W(f, b) {
|
|
3567
|
-
var
|
|
3568
|
-
(
|
|
3608
|
+
var j;
|
|
3609
|
+
(j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
|
|
3569
3610
|
f,
|
|
3570
3611
|
b,
|
|
3571
3612
|
!0
|
|
@@ -3590,7 +3631,7 @@ function Ia(i) {
|
|
|
3590
3631
|
{
|
|
3591
3632
|
className: "searchstax-facet-title-container",
|
|
3592
3633
|
onClick: () => {
|
|
3593
|
-
|
|
3634
|
+
k(f.name);
|
|
3594
3635
|
},
|
|
3595
3636
|
children: [
|
|
3596
3637
|
/* @__PURE__ */ o.jsxs("div", { className: "searchstax-facet-title", children: [
|
|
@@ -3605,30 +3646,29 @@ function Ia(i) {
|
|
|
3605
3646
|
/* @__PURE__ */ o.jsxs("div", { className: "searchstax-facet-values-container", children: [
|
|
3606
3647
|
f.values.map(
|
|
3607
3648
|
//@ts-ignore
|
|
3608
|
-
(b,
|
|
3649
|
+
(b, j) => (d[j + f.name] = et(), /* @__PURE__ */ o.jsxs(
|
|
3609
3650
|
"div",
|
|
3610
3651
|
{
|
|
3611
3652
|
className: `searchstax-facet-value-container ${b.disabled ? "searchstax-facet-value-disabled" : ""}`,
|
|
3612
|
-
ref: d[
|
|
3653
|
+
ref: d[j + f.name],
|
|
3613
3654
|
children: [
|
|
3614
3655
|
/* @__PURE__ */ o.jsx(
|
|
3615
3656
|
"div",
|
|
3616
3657
|
{
|
|
3617
|
-
className: "searchstax-facet-input desktop-" +
|
|
3658
|
+
className: "searchstax-facet-input desktop-" + j + f.name,
|
|
3618
3659
|
children: /* @__PURE__ */ o.jsx(
|
|
3619
3660
|
"input",
|
|
3620
3661
|
{
|
|
3621
3662
|
type: "checkbox",
|
|
3622
3663
|
className: "searchstax-facet-input-checkbox",
|
|
3623
|
-
checked:
|
|
3664
|
+
checked: E(b),
|
|
3624
3665
|
readOnly: !0,
|
|
3625
3666
|
disabled: b.disabled,
|
|
3626
|
-
onClick: (
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
b
|
|
3631
|
-
!0
|
|
3667
|
+
onClick: (q) => {
|
|
3668
|
+
T(
|
|
3669
|
+
j + f.name,
|
|
3670
|
+
q,
|
|
3671
|
+
b
|
|
3632
3672
|
);
|
|
3633
3673
|
}
|
|
3634
3674
|
}
|
|
@@ -3639,12 +3679,11 @@ function Ia(i) {
|
|
|
3639
3679
|
"div",
|
|
3640
3680
|
{
|
|
3641
3681
|
className: "searchstax-facet-value-label",
|
|
3642
|
-
onClick: (
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
b
|
|
3647
|
-
!1
|
|
3682
|
+
onClick: (q) => {
|
|
3683
|
+
T(
|
|
3684
|
+
j + f.name,
|
|
3685
|
+
q,
|
|
3686
|
+
b
|
|
3648
3687
|
);
|
|
3649
3688
|
},
|
|
3650
3689
|
children: b.value
|
|
@@ -3654,12 +3693,11 @@ function Ia(i) {
|
|
|
3654
3693
|
"div",
|
|
3655
3694
|
{
|
|
3656
3695
|
className: "searchstax-facet-value-count",
|
|
3657
|
-
onClick: (
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
b
|
|
3662
|
-
!1
|
|
3696
|
+
onClick: (q) => {
|
|
3697
|
+
T(
|
|
3698
|
+
j + f.name,
|
|
3699
|
+
q,
|
|
3700
|
+
b
|
|
3663
3701
|
);
|
|
3664
3702
|
},
|
|
3665
3703
|
children: [
|
|
@@ -3696,9 +3734,9 @@ function Ia(i) {
|
|
|
3696
3734
|
e,
|
|
3697
3735
|
d,
|
|
3698
3736
|
R,
|
|
3737
|
+
k,
|
|
3699
3738
|
T,
|
|
3700
|
-
|
|
3701
|
-
I,
|
|
3739
|
+
E,
|
|
3702
3740
|
N
|
|
3703
3741
|
) }),
|
|
3704
3742
|
(s == null ? void 0 : s.hasResultsOrExternalPromotions) && !i.facetsTemplateMobile && /* @__PURE__ */ o.jsx("div", { className: "searchstax-facets-container-mobile", children: /* @__PURE__ */ o.jsxs("div", { className: "searchstax-facets-pills-container", children: [
|
|
@@ -3718,7 +3756,7 @@ function Ia(i) {
|
|
|
3718
3756
|
{
|
|
3719
3757
|
className: "searchstax-facets-pill searchstax-facets-pill-facets",
|
|
3720
3758
|
onClick: () => {
|
|
3721
|
-
|
|
3759
|
+
S(f);
|
|
3722
3760
|
},
|
|
3723
3761
|
children: [
|
|
3724
3762
|
/* @__PURE__ */ o.jsxs("div", { className: "searchstax-facets-pill-label", children: [
|
|
@@ -3771,7 +3809,7 @@ function Ia(i) {
|
|
|
3771
3809
|
{
|
|
3772
3810
|
className: "searchstax-facet-title-container",
|
|
3773
3811
|
onClick: () => {
|
|
3774
|
-
|
|
3812
|
+
k(f.name);
|
|
3775
3813
|
},
|
|
3776
3814
|
children: [
|
|
3777
3815
|
/* @__PURE__ */ o.jsxs("div", { className: "searchstax-facet-title", children: [
|
|
@@ -3786,28 +3824,28 @@ function Ia(i) {
|
|
|
3786
3824
|
/* @__PURE__ */ o.jsxs("div", { className: "searchstax-facet-values-container", children: [
|
|
3787
3825
|
f.values.map(
|
|
3788
3826
|
//@ts-ignore
|
|
3789
|
-
(b,
|
|
3827
|
+
(b, j) => (d[j + f.name] = et(), /* @__PURE__ */ o.jsxs(
|
|
3790
3828
|
"div",
|
|
3791
3829
|
{
|
|
3792
3830
|
className: `searchstax-facet-value-container ${b.disabled ? "searchstax-facet-value-disabled" : ""}`,
|
|
3793
|
-
ref: d[
|
|
3831
|
+
ref: d[j + f.name],
|
|
3794
3832
|
children: [
|
|
3795
3833
|
/* @__PURE__ */ o.jsx(
|
|
3796
3834
|
"div",
|
|
3797
3835
|
{
|
|
3798
|
-
className: "searchstax-facet-input mobile-" +
|
|
3836
|
+
className: "searchstax-facet-input mobile-" + j + f.name,
|
|
3799
3837
|
children: /* @__PURE__ */ o.jsx(
|
|
3800
3838
|
"input",
|
|
3801
3839
|
{
|
|
3802
3840
|
type: "checkbox",
|
|
3803
3841
|
className: "searchstax-facet-input-checkbox",
|
|
3804
|
-
checked:
|
|
3842
|
+
checked: E(b),
|
|
3805
3843
|
readOnly: !0,
|
|
3806
3844
|
disabled: b.disabled,
|
|
3807
|
-
onClick: (
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3845
|
+
onClick: (q) => {
|
|
3846
|
+
T(
|
|
3847
|
+
j + f.name,
|
|
3848
|
+
q,
|
|
3811
3849
|
b,
|
|
3812
3850
|
!0,
|
|
3813
3851
|
!0
|
|
@@ -3821,12 +3859,11 @@ function Ia(i) {
|
|
|
3821
3859
|
"div",
|
|
3822
3860
|
{
|
|
3823
3861
|
className: "searchstax-facet-value-label",
|
|
3824
|
-
onClick: (
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
b
|
|
3829
|
-
!1
|
|
3862
|
+
onClick: (q) => {
|
|
3863
|
+
T(
|
|
3864
|
+
j + f.name,
|
|
3865
|
+
q,
|
|
3866
|
+
b
|
|
3830
3867
|
);
|
|
3831
3868
|
},
|
|
3832
3869
|
children: b.value
|
|
@@ -3836,12 +3873,11 @@ function Ia(i) {
|
|
|
3836
3873
|
"div",
|
|
3837
3874
|
{
|
|
3838
3875
|
className: "searchstax-facet-value-count",
|
|
3839
|
-
onClick: (
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
b
|
|
3844
|
-
!1
|
|
3876
|
+
onClick: (q) => {
|
|
3877
|
+
T(
|
|
3878
|
+
j + f.name,
|
|
3879
|
+
q,
|
|
3880
|
+
b
|
|
3845
3881
|
);
|
|
3846
3882
|
},
|
|
3847
3883
|
children: [
|
|
@@ -3900,10 +3936,10 @@ function Ia(i) {
|
|
|
3900
3936
|
r,
|
|
3901
3937
|
d,
|
|
3902
3938
|
R,
|
|
3903
|
-
T,
|
|
3904
|
-
L,
|
|
3905
|
-
I,
|
|
3906
3939
|
k,
|
|
3940
|
+
T,
|
|
3941
|
+
E,
|
|
3942
|
+
S,
|
|
3907
3943
|
W,
|
|
3908
3944
|
A,
|
|
3909
3945
|
Q,
|