@searchstax-inc/searchstudio-ux-react 0.2.15 → 0.2.18

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 = {}, y = null, k = null;
20
- d !== void 0 && (y = "" + d), u.key !== void 0 && (y = "" + u.key), u.ref !== void 0 && (k = u.ref);
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: y, ref: k, props: m, _owner: a.current };
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"), y = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), O = Symbol.iterator, R = "@@iterator";
44
- function T(n) {
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 I = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function L(n) {
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, v = new Array(p > 1 ? p - 1 : 0), S = 1; S < p; S++)
54
- v[S - 1] = arguments[S];
55
- N("error", n, v);
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, v) {
58
+ function N(n, p, y) {
59
59
  {
60
- var S = I.ReactDebugCurrentFrame, j = S.getStackAddendum();
61
- j !== "" && (p += "%s", v = v.concat([j]));
62
- var M = v.map(function(E) {
63
- return String(E);
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, F;
69
- F = Symbol.for("react.module.reference");
68
+ var W = !1, A = !1, Q = !1, f = !1, b = !1, j;
69
+ j = Symbol.for("react.module.reference");
70
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 === k || W || A || Q || typeof n == "object" && n !== null && (n.$$typeof === y || n.$$typeof === m || n.$$typeof === c || n.$$typeof === l || n.$$typeof === u || // This needs to include all possible module reference object
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 === F || n.getModuleId !== void 0));
75
+ n.$$typeof === j || n.getModuleId !== void 0));
76
76
  }
77
- function G(n, p, v) {
78
- var S = n.displayName;
79
- if (S)
80
- return S;
81
- var j = p.displayName || p.name || "";
82
- return j !== "" ? v + "(" + j + ")" : v;
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" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
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 v = n;
115
- return pe(v._context) + ".Provider";
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 S = n.displayName || null;
120
- return S !== null ? S : K(n.type) || "Memo";
121
- case y: {
122
- var j = n, M = j._payload, E = j._init;
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(E(M));
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 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
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 = I.ReactCurrentDispatcher, Ce;
195
- function me(n, p, v) {
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 (j) {
201
- var S = j.stack.trim().match(/\n( *(at )?)/);
202
- Ce = S && S[1] || "";
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,52 +214,52 @@ function Mt() {
214
214
  if (!n || Se)
215
215
  return "";
216
216
  {
217
- var v = fe.get(n);
218
- if (v !== void 0)
219
- return v;
217
+ var y = fe.get(n);
218
+ if (y !== void 0)
219
+ return y;
220
220
  }
221
- var S;
221
+ var L;
222
222
  Se = !0;
223
- var j = Error.prepareStackTrace;
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 E = function() {
229
+ var I = function() {
230
230
  throw Error();
231
231
  };
232
- if (Object.defineProperty(E.prototype, "props", {
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(E, []);
238
+ Reflect.construct(I, []);
239
239
  } catch (X) {
240
- S = X;
240
+ L = X;
241
241
  }
242
- Reflect.construct(n, [], E);
242
+ Reflect.construct(n, [], I);
243
243
  } else {
244
244
  try {
245
- E.call();
245
+ I.call();
246
246
  } catch (X) {
247
- S = X;
247
+ L = X;
248
248
  }
249
- n.call(E.prototype);
249
+ n.call(I.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
254
  } catch (X) {
255
- S = X;
255
+ L = X;
256
256
  }
257
257
  n();
258
258
  }
259
259
  } catch (X) {
260
- if (X && S && typeof X.stack == "string") {
260
+ if (X && L && typeof X.stack == "string") {
261
261
  for (var w = X.stack.split(`
262
- `), V = S.stack.split(`
262
+ `), V = L.stack.split(`
263
263
  `), $ = w.length - 1, _ = V.length - 1; $ >= 1 && _ >= 0 && w[$] !== V[_]; )
264
264
  _--;
265
265
  for (; $ >= 1 && _ >= 0; $--, _--)
@@ -276,19 +276,19 @@ function Mt() {
276
276
  }
277
277
  }
278
278
  } finally {
279
- Se = !1, be.current = M, lt(), Error.prepareStackTrace = j;
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, v) {
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, v) {
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, v);
310
- case y: {
311
- var S = n, j = S._payload, M = S._init;
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(j), p, v);
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 = I.ReactDebugCurrentFrame;
320
+ var ye = Object.prototype.hasOwnProperty, He = {}, We = E.ReactDebugCurrentFrame;
321
321
  function xe(n) {
322
322
  if (n) {
323
- var p = n._owner, v = ve(n.type, n._source, p ? p.type : null);
324
- We.setExtraStackFrame(v);
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, v, S, j) {
328
+ function dt(n, p, y, L, F) {
329
329
  {
330
330
  var M = Function.call.bind(ye);
331
- for (var E in n)
332
- if (M(n, E)) {
331
+ for (var I in n)
332
+ if (M(n, I)) {
333
333
  var w = void 0;
334
334
  try {
335
- if (typeof n[E] != "function") {
336
- var V = Error((S || "React class") + ": " + v + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
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[E](p, E, S, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ w = n[I](p, I, L, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
340
  } catch ($) {
341
341
  w = $;
342
342
  }
343
- w && !(w instanceof Error) && (xe(j), L("%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).", S || "React class", v, E, typeof w), xe(null)), w instanceof Error && !(w.message in He) && (He[w.message] = !0, xe(j), L("Failed %s type: %s", v, w.message), xe(null));
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, v = p && n[Symbol.toStringTag] || n.constructor.name || "Object";
354
- return v;
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 L("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);
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 = I.ReactCurrentOwner, ft = {
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 v = K(ce.current.type);
397
- Te[v] || (L('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[v] = !0);
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 v = function() {
403
- Ue || (Ue = !0, L("%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));
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
- v.isReactWarning = !0, Object.defineProperty(n, "key", {
406
- get: v,
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 v = function() {
414
- Qe || (Qe = !0, L("%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));
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
- v.isReactWarning = !0, Object.defineProperty(n, "ref", {
417
- get: v,
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, v, S, j, M, E) {
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: v,
430
- props: E,
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: S
443
+ value: L
444
444
  }), Object.defineProperty(w, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: j
448
+ value: F
449
449
  }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
450
450
  };
451
- function Lt(n, p, v, S, j) {
451
+ function Lt(n, p, y, L, F) {
452
452
  {
453
- var M, E = {}, w = null, V = null;
454
- v !== void 0 && (Ve(v), w = "" + v), yt(p) && (Ve(p.key), w = "" + p.key), vt(p) && (V = p.ref, xt(p, j));
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) && (E[M] = p[M]);
456
+ ye.call(p, M) && !ft.hasOwnProperty(M) && (I[M] = p[M]);
457
457
  if (n && n.defaultProps) {
458
458
  var $ = n.defaultProps;
459
459
  for (M in $)
460
- E[M] === void 0 && (E[M] = $[M]);
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(E, _), V && Ct(E, _);
464
+ w && bt(I, _), V && Ct(I, _);
465
465
  }
466
- return St(n, w, V, j, S, ce.current, E);
466
+ return St(n, w, V, F, L, ce.current, I);
467
467
  }
468
468
  }
469
- var ke = I.ReactCurrentOwner, Ke = I.ReactDebugCurrentFrame;
469
+ var ke = E.ReactCurrentOwner, Ke = E.ReactDebugCurrentFrame;
470
470
  function te(n) {
471
471
  if (n) {
472
- var p = n._owner, v = ve(n.type, n._source, p ? p.type : null);
473
- Ke.setExtraStackFrame(v);
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(/^.*[\\\/]/, ""), v = n.lineNumber;
497
+ var p = n.fileName.replace(/^.*[\\\/]/, ""), y = n.lineNumber;
498
498
  return `
499
499
 
500
- Check your code at ` + p + ":" + v + ".";
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 v = typeof n == "string" ? n : n.displayName || n.name;
511
- v && (p = `
510
+ var y = typeof n == "string" ? n : n.displayName || n.name;
511
+ y && (p = `
512
512
 
513
- Check the top-level render call using <` + v + ">.");
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 v = kt(p);
524
- if (Je[v])
523
+ var y = kt(p);
524
+ if (Je[y])
525
525
  return;
526
- Je[v] = !0;
527
- var S = "";
528
- n && n._owner && n._owner !== ke.current && (S = " It was passed a child from " + K(n._owner.type) + "."), te(n), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, S), te(null);
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 v = 0; v < n.length; v++) {
537
- var S = n[v];
538
- we(S) && Ye(S, p);
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 j = T(n);
544
- if (typeof j == "function" && j !== n.entries)
545
- for (var M = j.call(n), E; !(E = M.next()).done; )
546
- we(E.value) && Ye(E.value, p);
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 v;
555
+ var y;
556
556
  if (typeof p == "function")
557
- v = p.propTypes;
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
- v = p.propTypes;
561
+ y = p.propTypes;
562
562
  else
563
563
  return;
564
- if (v) {
565
- var S = K(p);
566
- dt(v, n.props, "prop", S, n);
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 j = K(p);
570
- L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
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 && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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), v = 0; v < p.length; v++) {
578
- var S = p[v];
579
- if (S !== "children" && S !== "key") {
580
- te(n), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), te(null);
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), L("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
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, v, S, j, M) {
587
+ function Xe(n, p, y, L, F, M) {
588
588
  {
589
- var E = q(n);
590
- if (!E) {
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(j);
593
+ var V = Tt(F);
594
594
  V ? w += V : w += ze();
595
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, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, w);
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, v, j, M);
598
+ var _ = Lt(n, p, y, F, M);
599
599
  if (_ == null)
600
600
  return _;
601
- if (E) {
601
+ if (I) {
602
602
  var z = p.children;
603
603
  if (z !== void 0)
604
- if (S)
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
- L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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, v) {
618
- return Xe(n, p, v, !0);
617
+ function Et(n, p, y) {
618
+ return Xe(n, p, y, !0);
619
619
  }
620
- function It(n, p, v) {
621
- return Xe(n, p, v, !1);
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
+ this.facetsWereSet = !0, J.deepEqual(e, this.searchFacets ?? []) || 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: (y, k) => y.get(k) ?? ""
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((y) => y.type === "or" || y.type === "showUnavailable"),
1293
+ e.facets.filter((v) => v.type === "or" || v.type === "showUnavailable"),
1294
1294
  !0
1295
1295
  ) + this.generateFacetQuery(
1296
- e.facets.filter((y) => y.type === "and" || y.type === "tabs"),
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((y) => y.json()).then((y) => {
1305
- this.dataLayer.setLoading(!1), t(y);
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, y, k;
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*"), y = new RegExp("\\s*" + Ie(b[1])), k = new RegExp("\\s*" + Ie("}" + b[1]));
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), T, I, L, N, W, A; !R.eos(); ) {
1487
- if (T = R.pos, L = R.scanUntil(m), L)
1488
- for (var Q = 0, f = L.length; Q < f; ++Q)
1489
- N = L.charAt(Q), Kt(N) ? (r.push(a.length), u += N) : (l = !0, t = !0, u += " "), a.push(["text", N, T, T + 1]), T += 1, 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, I = R.scan(Zt) || "name", R.scan(Yt), I === "=" ? (L = R.scanUntil(it), R.scan(it), R.scanUntil(y)) : I === "{" ? (L = R.scanUntil(k), R.scan(Xt), R.scanUntil(y), I = "&") : L = R.scanUntil(y), !R.scan(y))
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 (I == ">" ? W = [I, L, T, R.pos, u, d, t] : W = [I, L, T, R.pos], d++, a.push(W), I === "#" || I === "^")
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 (I === "/") {
1497
+ else if (E === "/") {
1498
1498
  if (A = s.pop(), !A)
1499
- throw new Error('Unopened section "' + L + '" at ' + T);
1500
- if (A[1] !== L)
1501
- throw new Error('Unclosed section "' + A[1] + '" at ' + T);
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
- I === "name" || I === "{" || I === "&" ? l = !0 : I === "=" && O(L);
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 l = r.querySelector("input");
2113
- l.checked = c ? l.checked : !l.checked;
2114
- const u = this.dataLayer.searchObject;
2115
- let d = [...u.facets];
2116
- const g = this.extractFacetValue(a);
2117
- l.checked ? d.find((m) => J.deepEqual(m, g) ? m : !1) || (this.config.facetingType === "tabs" && (d = d.filter((m) => m.name !== g.name)), d.push(g)) : d = d.filter((m) => !J.deepEqual(m, g)), setTimeout(() => {
2118
- this.dataLayer.setSearchObject({ ...u, facets: d, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
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((l) => l.name === a.name);
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((a) => {
2181
- var r;
2182
- return (r = this.config.specificFacets) == null ? void 0 : r.includes(a.name);
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, y, k, O, R;
2197
- const T = document.createElement("div");
2198
- T.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || T.classList.add("active");
2199
- const I = ((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);
2200
- T.innerHTML = P.render(I, e), t.appendChild(T);
2201
- const L = T.querySelector(
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
- L == null || L.addEventListener("click", () => {
2205
- T.classList.toggle("active");
2214
+ T == null || T.addEventListener("click", () => {
2215
+ k.classList.toggle("active");
2206
2216
  });
2207
- const N = T.querySelector(
2208
- "." + (((O = (k = (y = this.config) == null ? void 0 : y.templates) == null ? void 0 : k.facetItemContainerTemplate) == null ? void 0 : O.facetListContainerClass) || ((R = x.facets.facetItemContainerTemplate) == null ? void 0 : R.facetListContainerClass))
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(W, N);
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, y, k, O, R;
2220
- const T = document.createElement("div");
2221
- T.classList.add("searchstax-facet-value-container"), e.disabled && T.classList.add("searchstax-facet-value-disabled");
2222
- const I = this.isChecked(e), L = ((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);
2223
- T.innerHTML = P.render(L, { ...e, isChecked: I });
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 = T.querySelector("." + W)) == null || A.addEventListener("click", (Q) => {
2228
- this.onFacetSelect(Q, e, T);
2243
+ (A = k.querySelector("." + W)) == null || A.addEventListener("click", (Q) => {
2244
+ this.onFacetSelect(Q, e, k);
2229
2245
  });
2230
- }), (R = T.querySelector(
2231
- "." + (((k = (y = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : y.facetItemTemplate) == null ? void 0 : k.inputCheckboxClass) || ((O = x.facets.facetItemTemplate) == null ? void 0 : O.inputCheckboxClass))
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, T, !0);
2234
- }), t.appendChild(T);
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 y = document.createElement("div");
2239
- y.classList.add("searchstax-facet-show-more-container");
2240
- const k = ((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);
2241
- y.innerHTML = P.render(k, e);
2242
- const O = y.querySelector(
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, y, k;
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(O, {
2264
- ...e
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 T of e.facets)
2272
- this.createFacetItem(T, R);
2293
+ for (const k of e.facets)
2294
+ this.createFacetItem(k, R);
2273
2295
  if (this.searchFacetsMainContainer) {
2274
- const T = this.searchFacetsMainContainer.querySelector(
2275
- "." + (((k = (y = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : y.mainTemplateDesktop) == null ? void 0 : k.selectedFacetsContainerClass) || x.facets.mainTemplateDesktop.selectedFacetsContainerClass)
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
- T && (this.createSelectedFacetsComponents(T), this.createClearFacetsComponents(T));
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((u) => u.name === a);
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), y = document.createElement("div");
2308
- y.innerHTML = P.render(m, {
2309
- shouldShow: g.facets.length > 0
2310
- });
2311
- const k = y.querySelector(
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
- k && (k.addEventListener("click", () => {
2341
+ S && (S.addEventListener("click", () => {
2315
2342
  this.removeSelectedFacets();
2316
- }), e.appendChild(k));
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), y = document.createElement("div");
2321
- y.innerHTML = P.render(m, t);
2322
- const k = y.querySelector(
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
- k && (k.addEventListener("click", () => {
2355
+ S && (S.addEventListener("click", () => {
2326
2356
  this.unselectFacet(t);
2327
- }), e.appendChild(k));
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((a) => JSON.stringify(a) !== JSON.stringify(this.extractFacetValue(e)))), setTimeout(() => {
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(g, {});
2344
- const y = m.querySelector(
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
- y && (e.prepend(y), y.addEventListener("click", this.openOverlay.bind(this)));
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, y, k, O, R, T, I, L, N, W;
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");
@@ -2375,20 +2410,20 @@ class ga {
2375
2410
  G && G.addEventListener("click", this.closeOverlay.bind(this));
2376
2411
  }
2377
2412
  const f = A.querySelector(
2378
- "." + (((O = (k = (y = this.config) == null ? void 0 : y.templates) == null ? void 0 : k.mainTemplateMobile) == null ? void 0 : O.filterByContainerClass) || x.facets.mainTemplateMobile.filterByContainerClass)
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
- "." + (((I = (T = (R = this.config) == null ? void 0 : R.templates) == null ? void 0 : T.mainTemplateMobile) == null ? void 0 : I.selectedFacetsContainerClass) || x.facets.mainTemplateMobile.selectedFacetsContainerClass)
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 F = A.querySelector(
2386
- "." + (((W = (N = (L = this.config) == null ? void 0 : L.templates) == null ? void 0 : N.mainTemplateMobile) == null ? void 0 : W.facetsContainerClass) || x.facets.mainTemplateMobile.facetsContainerClass)
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 (F) {
2389
- F.innerHTML = "";
2423
+ if (j) {
2424
+ j.innerHTML = "";
2390
2425
  for (const q of e.facets)
2391
- this.createFacetItem(q, F, !0);
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 y = ((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);
2466
- this.dataLayer.isInfiniteScroll && (y = ((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(
2467
- y,
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, y;
2780
- const k = (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 : (y = x.searchResults.mainTemplate) == null ? void 0 : y.searchResultsContainerId, O = document.getElementById(k);
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 ${k} not found`);
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 ? (this.routerEnabled = !0, this.routerHelper = new st(
2889
- e.router ? e.router : { enabled: !0 }
2890
- ), this.dataLayer.setSearchObject(
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
- })) : this.routerHelper = new st({});
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 ?? [], y = g ?? [], k = i.renderMethod === "infiniteScroll" ? [...m, ...y] : g;
3204
- ((O = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : O.page) === 1 ? t(y) : t(k);
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 y;
3325
- (y = C.searchstax.searchPaginationWidget) == null || y.nextPage(
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 y;
3331
- (y = C.searchstax.searchPaginationWidget) == null || y.previousPage(
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 (y(), C.searchstax)
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 y() {
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((F) => F.type === "checkbox")
3565
+ (f ?? []).filter((j) => j.type === "checkbox")
3526
3566
  );
3527
3567
  }
3528
3568
  ), m = !0);
3529
3569
  }
3530
- function k(f) {
3570
+ function S(f) {
3531
3571
  var b;
3532
3572
  (b = C.searchstax.searchFacetsWidget) == null || b.unselectFacet(f);
3533
3573
  }
@@ -3538,36 +3578,35 @@ function Ia(i) {
3538
3578
  function R(f) {
3539
3579
  return !l[f];
3540
3580
  }
3541
- function T(f) {
3581
+ function k(f) {
3542
3582
  R(f) ? u({ ...l, [f]: !0 }) : u({ ...l, [f]: !1 });
3543
3583
  }
3544
- function I(f) {
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 L(f, b, F, q, G) {
3588
+ function T(f, b, j, q, G) {
3589
+ var Y;
3549
3590
  const pe = G ? "mobile-" : "desktop-", K = document.getElementsByClassName(pe + f);
3550
- K[0] && setTimeout(() => {
3551
- var Y;
3552
- (Y = C.searchstax.searchFacetsWidget) == null || Y.onFacetSelect(
3553
- b,
3554
- F,
3555
- K[0],
3556
- !1
3557
- );
3558
- }, 100);
3591
+ K[0] && ((Y = C.searchstax.searchFacetsWidget) == null || Y.onFacetSelect(
3592
+ b,
3593
+ j,
3594
+ K[0],
3595
+ !1,
3596
+ E(j)
3597
+ ));
3559
3598
  }
3560
3599
  function N(f, b) {
3561
- var F;
3562
- (F = C.searchstax.searchFacetsWidget) == null || F.onShowMoreLessClick(
3600
+ var j;
3601
+ (j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
3563
3602
  f,
3564
3603
  b,
3565
3604
  !1
3566
3605
  );
3567
3606
  }
3568
3607
  function W(f, b) {
3569
- var F;
3570
- (F = C.searchstax.searchFacetsWidget) == null || F.onShowMoreLessClick(
3608
+ var j;
3609
+ (j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
3571
3610
  f,
3572
3611
  b,
3573
3612
  !0
@@ -3592,7 +3631,7 @@ function Ia(i) {
3592
3631
  {
3593
3632
  className: "searchstax-facet-title-container",
3594
3633
  onClick: () => {
3595
- T(f.name);
3634
+ k(f.name);
3596
3635
  },
3597
3636
  children: [
3598
3637
  /* @__PURE__ */ o.jsxs("div", { className: "searchstax-facet-title", children: [
@@ -3607,27 +3646,27 @@ function Ia(i) {
3607
3646
  /* @__PURE__ */ o.jsxs("div", { className: "searchstax-facet-values-container", children: [
3608
3647
  f.values.map(
3609
3648
  //@ts-ignore
3610
- (b, F) => (d[F + f.name] = et(), /* @__PURE__ */ o.jsxs(
3649
+ (b, j) => (d[j + f.name] = et(), /* @__PURE__ */ o.jsxs(
3611
3650
  "div",
3612
3651
  {
3613
3652
  className: `searchstax-facet-value-container ${b.disabled ? "searchstax-facet-value-disabled" : ""}`,
3614
- ref: d[F + f.name],
3653
+ ref: d[j + f.name],
3615
3654
  children: [
3616
3655
  /* @__PURE__ */ o.jsx(
3617
3656
  "div",
3618
3657
  {
3619
- className: "searchstax-facet-input desktop-" + F + f.name,
3658
+ className: "searchstax-facet-input desktop-" + j + f.name,
3620
3659
  children: /* @__PURE__ */ o.jsx(
3621
3660
  "input",
3622
3661
  {
3623
3662
  type: "checkbox",
3624
3663
  className: "searchstax-facet-input-checkbox",
3625
- checked: I(b),
3664
+ checked: E(b),
3626
3665
  readOnly: !0,
3627
3666
  disabled: b.disabled,
3628
3667
  onClick: (q) => {
3629
- L(
3630
- F + f.name,
3668
+ T(
3669
+ j + f.name,
3631
3670
  q,
3632
3671
  b
3633
3672
  );
@@ -3641,8 +3680,8 @@ function Ia(i) {
3641
3680
  {
3642
3681
  className: "searchstax-facet-value-label",
3643
3682
  onClick: (q) => {
3644
- L(
3645
- F + f.name,
3683
+ T(
3684
+ j + f.name,
3646
3685
  q,
3647
3686
  b
3648
3687
  );
@@ -3655,8 +3694,8 @@ function Ia(i) {
3655
3694
  {
3656
3695
  className: "searchstax-facet-value-count",
3657
3696
  onClick: (q) => {
3658
- L(
3659
- F + f.name,
3697
+ T(
3698
+ j + f.name,
3660
3699
  q,
3661
3700
  b
3662
3701
  );
@@ -3695,9 +3734,9 @@ function Ia(i) {
3695
3734
  e,
3696
3735
  d,
3697
3736
  R,
3737
+ k,
3698
3738
  T,
3699
- L,
3700
- I,
3739
+ E,
3701
3740
  N
3702
3741
  ) }),
3703
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: [
@@ -3717,7 +3756,7 @@ function Ia(i) {
3717
3756
  {
3718
3757
  className: "searchstax-facets-pill searchstax-facets-pill-facets",
3719
3758
  onClick: () => {
3720
- k(f);
3759
+ S(f);
3721
3760
  },
3722
3761
  children: [
3723
3762
  /* @__PURE__ */ o.jsxs("div", { className: "searchstax-facets-pill-label", children: [
@@ -3770,7 +3809,7 @@ function Ia(i) {
3770
3809
  {
3771
3810
  className: "searchstax-facet-title-container",
3772
3811
  onClick: () => {
3773
- T(f.name);
3812
+ k(f.name);
3774
3813
  },
3775
3814
  children: [
3776
3815
  /* @__PURE__ */ o.jsxs("div", { className: "searchstax-facet-title", children: [
@@ -3785,27 +3824,27 @@ function Ia(i) {
3785
3824
  /* @__PURE__ */ o.jsxs("div", { className: "searchstax-facet-values-container", children: [
3786
3825
  f.values.map(
3787
3826
  //@ts-ignore
3788
- (b, F) => (d[F + f.name] = et(), /* @__PURE__ */ o.jsxs(
3827
+ (b, j) => (d[j + f.name] = et(), /* @__PURE__ */ o.jsxs(
3789
3828
  "div",
3790
3829
  {
3791
3830
  className: `searchstax-facet-value-container ${b.disabled ? "searchstax-facet-value-disabled" : ""}`,
3792
- ref: d[F + f.name],
3831
+ ref: d[j + f.name],
3793
3832
  children: [
3794
3833
  /* @__PURE__ */ o.jsx(
3795
3834
  "div",
3796
3835
  {
3797
- className: "searchstax-facet-input mobile-" + F + f.name,
3836
+ className: "searchstax-facet-input mobile-" + j + f.name,
3798
3837
  children: /* @__PURE__ */ o.jsx(
3799
3838
  "input",
3800
3839
  {
3801
3840
  type: "checkbox",
3802
3841
  className: "searchstax-facet-input-checkbox",
3803
- checked: I(b),
3842
+ checked: E(b),
3804
3843
  readOnly: !0,
3805
3844
  disabled: b.disabled,
3806
3845
  onClick: (q) => {
3807
- L(
3808
- F + f.name,
3846
+ T(
3847
+ j + f.name,
3809
3848
  q,
3810
3849
  b,
3811
3850
  !0,
@@ -3821,8 +3860,8 @@ function Ia(i) {
3821
3860
  {
3822
3861
  className: "searchstax-facet-value-label",
3823
3862
  onClick: (q) => {
3824
- L(
3825
- F + f.name,
3863
+ T(
3864
+ j + f.name,
3826
3865
  q,
3827
3866
  b
3828
3867
  );
@@ -3835,8 +3874,8 @@ function Ia(i) {
3835
3874
  {
3836
3875
  className: "searchstax-facet-value-count",
3837
3876
  onClick: (q) => {
3838
- L(
3839
- F + f.name,
3877
+ T(
3878
+ j + f.name,
3840
3879
  q,
3841
3880
  b
3842
3881
  );
@@ -3897,10 +3936,10 @@ function Ia(i) {
3897
3936
  r,
3898
3937
  d,
3899
3938
  R,
3900
- T,
3901
- L,
3902
- I,
3903
3939
  k,
3940
+ T,
3941
+ E,
3942
+ S,
3904
3943
  W,
3905
3944
  A,
3906
3945
  Q,