@searchstax-inc/searchstudio-ux-react 0.3.18 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import ct, { useState as q, useEffect as ee, useRef as Ot, createRef as tt } from "react";
2
- var je = { exports: {} }, he = {};
1
+ import ot, { useState as q, useEffect as ae, useRef as $t, createRef as st } from "react";
2
+ var Oe = { exports: {} }, ge = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,25 +9,25 @@ var je = { exports: {} }, he = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var at;
13
- function At() {
14
- if (at)
15
- return he;
16
- at = 1;
17
- var i = ct, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function c(l, o, d) {
19
- var f, g = {}, m = null, S = null;
20
- d !== void 0 && (m = "" + d), o.key !== void 0 && (m = "" + o.key), o.ref !== void 0 && (S = o.ref);
12
+ var rt;
13
+ function Nt() {
14
+ if (rt)
15
+ return ge;
16
+ rt = 1;
17
+ var n = ot, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function i(l, o, d) {
19
+ var f, g = {}, m = null, C = null;
20
+ d !== void 0 && (m = "" + d), o.key !== void 0 && (m = "" + o.key), o.ref !== void 0 && (C = o.ref);
21
21
  for (f in o)
22
22
  s.call(o, f) && !r.hasOwnProperty(f) && (g[f] = o[f]);
23
23
  if (l && l.defaultProps)
24
24
  for (f in o = l.defaultProps, o)
25
25
  g[f] === void 0 && (g[f] = o[f]);
26
- return { $$typeof: e, type: l, key: m, ref: S, props: g, _owner: a.current };
26
+ return { $$typeof: e, type: l, key: m, ref: C, props: g, _owner: a.current };
27
27
  }
28
- return he.Fragment = t, he.jsx = c, he.jsxs = c, he;
28
+ return ge.Fragment = t, ge.jsx = i, ge.jsxs = i, ge;
29
29
  }
30
- var ue = {};
30
+ var pe = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -37,61 +37,61 @@ var ue = {};
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
- var st;
41
- function Mt() {
42
- return st || (st = 1, process.env.NODE_ENV !== "production" && function() {
43
- var i = ct, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), O = Symbol.iterator, k = "@@iterator";
44
- function R(n) {
45
- if (n === null || typeof n != "object")
40
+ var it;
41
+ function qt() {
42
+ return it || (it = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var n = ot, 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"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), E = Symbol.iterator, k = "@@iterator";
44
+ function R(c) {
45
+ if (c === null || typeof c != "object")
46
46
  return null;
47
- var p = O && n[O] || n[k];
47
+ var p = E && c[E] || c[k];
48
48
  return typeof p == "function" ? p : null;
49
49
  }
50
- var E = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function T(n) {
50
+ var I = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function L(c) {
52
52
  {
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);
53
+ for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), T = 1; T < p; T++)
54
+ y[T - 1] = arguments[T];
55
+ $("error", c, y);
56
56
  }
57
57
  }
58
- function N(n, p, y) {
58
+ function $(c, p, y) {
59
59
  {
60
- var L = E.ReactDebugCurrentFrame, F = L.getStackAddendum();
61
- F !== "" && (p += "%s", y = y.concat([F]));
62
- var A = y.map(function(I) {
63
- return String(I);
60
+ var T = I.ReactDebugCurrentFrame, O = T.getStackAddendum();
61
+ O !== "" && (p += "%s", y = y.concat([O]));
62
+ var A = y.map(function(P) {
63
+ return String(P);
64
64
  });
65
- A.unshift("Warning: " + p), Function.prototype.apply.call(console[n], console, A);
65
+ A.unshift("Warning: " + p), Function.prototype.apply.call(console[c], console, A);
66
66
  }
67
67
  }
68
- var B = !1, M = !1, K = !1, v = !1, x = !1, j;
69
- j = Symbol.for("react.module.reference");
70
- function _(n) {
71
- return !!(typeof n == "string" || typeof n == "function" || n === s || n === r || x || n === a || n === d || n === f || v || n === S || B || M || K || typeof n == "object" && n !== null && (n.$$typeof === m || n.$$typeof === g || n.$$typeof === c || n.$$typeof === l || n.$$typeof === o || // This needs to include all possible module reference object
68
+ var B = !1, M = !1, Q = !1, v = !1, x = !1, F;
69
+ F = Symbol.for("react.module.reference");
70
+ function _(c) {
71
+ return !!(typeof c == "string" || typeof c == "function" || c === s || c === r || x || c === a || c === d || c === f || v || c === C || B || M || Q || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === g || c.$$typeof === i || c.$$typeof === l || c.$$typeof === o || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
- n.$$typeof === j || n.getModuleId !== void 0));
75
+ c.$$typeof === F || c.getModuleId !== void 0));
76
76
  }
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;
77
+ function Y(c, p, y) {
78
+ var T = c.displayName;
79
+ if (T)
80
+ return T;
81
+ var O = p.displayName || p.name || "";
82
+ return O !== "" ? y + "(" + O + ")" : y;
83
83
  }
84
- function me(n) {
85
- return n.displayName || "Context";
84
+ function G(c) {
85
+ return c.displayName || "Context";
86
86
  }
87
- function Q(n) {
88
- if (n == null)
87
+ function z(c) {
88
+ if (c == null)
89
89
  return null;
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
- return n.displayName || n.name || null;
92
- if (typeof n == "string")
93
- return n;
94
- switch (n) {
90
+ if (typeof c.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
91
+ return c.displayName || c.name || null;
92
+ if (typeof c == "string")
93
+ return c;
94
+ switch (c) {
95
95
  case s:
96
96
  return "Fragment";
97
97
  case t:
@@ -105,23 +105,23 @@ function Mt() {
105
105
  case f:
106
106
  return "SuspenseList";
107
107
  }
108
- if (typeof n == "object")
109
- switch (n.$$typeof) {
108
+ if (typeof c == "object")
109
+ switch (c.$$typeof) {
110
110
  case l:
111
- var p = n;
112
- return me(p) + ".Consumer";
113
- case c:
114
- var y = n;
115
- return me(y._context) + ".Provider";
111
+ var p = c;
112
+ return G(p) + ".Consumer";
113
+ case i:
114
+ var y = c;
115
+ return G(y._context) + ".Provider";
116
116
  case o:
117
- return G(n, n.render, "ForwardRef");
117
+ return Y(c, c.render, "ForwardRef");
118
118
  case g:
119
- var L = n.displayName || null;
120
- return L !== null ? L : Q(n.type) || "Memo";
119
+ var T = c.displayName || null;
120
+ return T !== null ? T : z(c.type) || "Memo";
121
121
  case m: {
122
- var F = n, A = F._payload, I = F._init;
122
+ var O = c, A = O._payload, P = O._init;
123
123
  try {
124
- return Q(I(A));
124
+ return z(P(A));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,305 +129,305 @@ function Mt() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var Y = Object.assign, le = 0, Oe, Ae, Me, De, Ne, $e, qe;
133
- function _e() {
132
+ var Z = Object.assign, he = 0, Me, De, $e, Ne, qe, _e, He;
133
+ function Be() {
134
134
  }
135
- _e.__reactDisabledLog = !0;
136
- function lt() {
135
+ Be.__reactDisabledLog = !0;
136
+ function ht() {
137
137
  {
138
- if (le === 0) {
139
- Oe = console.log, Ae = console.info, Me = console.warn, De = console.error, Ne = console.group, $e = console.groupCollapsed, qe = console.groupEnd;
140
- var n = {
138
+ if (he === 0) {
139
+ Me = console.log, De = console.info, $e = console.warn, Ne = console.error, qe = console.group, _e = console.groupCollapsed, He = console.groupEnd;
140
+ var c = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
143
- value: _e,
143
+ value: Be,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
147
- info: n,
148
- log: n,
149
- warn: n,
150
- error: n,
151
- group: n,
152
- groupCollapsed: n,
153
- groupEnd: n
147
+ info: c,
148
+ log: c,
149
+ warn: c,
150
+ error: c,
151
+ group: c,
152
+ groupCollapsed: c,
153
+ groupEnd: c
154
154
  });
155
155
  }
156
- le++;
156
+ he++;
157
157
  }
158
158
  }
159
- function ot() {
159
+ function ut() {
160
160
  {
161
- if (le--, le === 0) {
162
- var n = {
161
+ if (he--, he === 0) {
162
+ var c = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: Y({}, n, {
169
- value: Oe
170
- }),
171
- info: Y({}, n, {
172
- value: Ae
173
- }),
174
- warn: Y({}, n, {
168
+ log: Z({}, c, {
175
169
  value: Me
176
170
  }),
177
- error: Y({}, n, {
171
+ info: Z({}, c, {
178
172
  value: De
179
173
  }),
180
- group: Y({}, n, {
181
- value: Ne
182
- }),
183
- groupCollapsed: Y({}, n, {
174
+ warn: Z({}, c, {
184
175
  value: $e
185
176
  }),
186
- groupEnd: Y({}, n, {
177
+ error: Z({}, c, {
178
+ value: Ne
179
+ }),
180
+ group: Z({}, c, {
187
181
  value: qe
182
+ }),
183
+ groupCollapsed: Z({}, c, {
184
+ value: _e
185
+ }),
186
+ groupEnd: Z({}, c, {
187
+ value: He
188
188
  })
189
189
  });
190
190
  }
191
- le < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ he < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var Ce = E.ReactCurrentDispatcher, Se;
195
- function fe(n, p, y) {
194
+ var Ce = I.ReactCurrentDispatcher, Le;
195
+ function ye(c, p, y) {
196
196
  {
197
- if (Se === void 0)
197
+ if (Le === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (F) {
201
- var L = F.stack.trim().match(/\n( *(at )?)/);
202
- Se = L && L[1] || "";
200
+ } catch (O) {
201
+ var T = O.stack.trim().match(/\n( *(at )?)/);
202
+ Le = T && T[1] || "";
203
203
  }
204
204
  return `
205
- ` + Se + n;
205
+ ` + Le + c;
206
206
  }
207
207
  }
208
- var Le = !1, ve;
208
+ var Te = !1, xe;
209
209
  {
210
- var ht = typeof WeakMap == "function" ? WeakMap : Map;
211
- ve = new ht();
210
+ var dt = typeof WeakMap == "function" ? WeakMap : Map;
211
+ xe = new dt();
212
212
  }
213
- function He(n, p) {
214
- if (!n || Le)
213
+ function We(c, p) {
214
+ if (!c || Te)
215
215
  return "";
216
216
  {
217
- var y = ve.get(n);
217
+ var y = xe.get(c);
218
218
  if (y !== void 0)
219
219
  return y;
220
220
  }
221
- var L;
222
- Le = !0;
223
- var F = Error.prepareStackTrace;
221
+ var T;
222
+ Te = !0;
223
+ var O = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var A;
226
- A = Ce.current, Ce.current = null, lt();
226
+ A = Ce.current, Ce.current = null, ht();
227
227
  try {
228
228
  if (p) {
229
- var I = function() {
229
+ var P = function() {
230
230
  throw Error();
231
231
  };
232
- if (Object.defineProperty(I.prototype, "props", {
232
+ if (Object.defineProperty(P.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(I, []);
239
- } catch (X) {
240
- L = X;
238
+ Reflect.construct(P, []);
239
+ } catch (K) {
240
+ T = K;
241
241
  }
242
- Reflect.construct(n, [], I);
242
+ Reflect.construct(c, [], P);
243
243
  } else {
244
244
  try {
245
- I.call();
246
- } catch (X) {
247
- L = X;
245
+ P.call();
246
+ } catch (K) {
247
+ T = K;
248
248
  }
249
- n.call(I.prototype);
249
+ c.call(P.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (X) {
255
- L = X;
254
+ } catch (K) {
255
+ T = K;
256
256
  }
257
- n();
257
+ c();
258
258
  }
259
- } catch (X) {
260
- if (X && L && typeof X.stack == "string") {
261
- for (var w = X.stack.split(`
262
- `), V = L.stack.split(`
263
- `), $ = w.length - 1, H = V.length - 1; $ >= 1 && H >= 0 && w[$] !== V[H]; )
259
+ } catch (K) {
260
+ if (K && T && typeof K.stack == "string") {
261
+ for (var w = K.stack.split(`
262
+ `), V = T.stack.split(`
263
+ `), N = w.length - 1, H = V.length - 1; N >= 1 && H >= 0 && w[N] !== V[H]; )
264
264
  H--;
265
- for (; $ >= 1 && H >= 0; $--, H--)
266
- if (w[$] !== V[H]) {
267
- if ($ !== 1 || H !== 1)
265
+ for (; N >= 1 && H >= 0; N--, H--)
266
+ if (w[N] !== V[H]) {
267
+ if (N !== 1 || H !== 1)
268
268
  do
269
- if ($--, H--, H < 0 || w[$] !== V[H]) {
270
- var z = `
271
- ` + w[$].replace(" at new ", " at ");
272
- return n.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", n.displayName)), typeof n == "function" && ve.set(n, z), z;
269
+ if (N--, H--, H < 0 || w[N] !== V[H]) {
270
+ var J = `
271
+ ` + w[N].replace(" at new ", " at ");
272
+ return c.displayName && J.includes("<anonymous>") && (J = J.replace("<anonymous>", c.displayName)), typeof c == "function" && xe.set(c, J), J;
273
273
  }
274
- while ($ >= 1 && H >= 0);
274
+ while (N >= 1 && H >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- Le = !1, Ce.current = A, ot(), Error.prepareStackTrace = F;
279
+ Te = !1, Ce.current = A, ut(), Error.prepareStackTrace = O;
280
280
  }
281
- var se = n ? n.displayName || n.name : "", et = se ? fe(se) : "";
282
- return typeof n == "function" && ve.set(n, et), et;
281
+ var ie = c ? c.displayName || c.name : "", se = ie ? ye(ie) : "";
282
+ return typeof c == "function" && xe.set(c, se), se;
283
283
  }
284
- function ut(n, p, y) {
285
- return He(n, !1);
284
+ function gt(c, p, y) {
285
+ return We(c, !1);
286
286
  }
287
- function dt(n) {
288
- var p = n.prototype;
287
+ function pt(c) {
288
+ var p = c.prototype;
289
289
  return !!(p && p.isReactComponent);
290
290
  }
291
- function ye(n, p, y) {
292
- if (n == null)
291
+ function be(c, p, y) {
292
+ if (c == null)
293
293
  return "";
294
- if (typeof n == "function")
295
- return He(n, dt(n));
296
- if (typeof n == "string")
297
- return fe(n);
298
- switch (n) {
294
+ if (typeof c == "function")
295
+ return We(c, pt(c));
296
+ if (typeof c == "string")
297
+ return ye(c);
298
+ switch (c) {
299
299
  case d:
300
- return fe("Suspense");
300
+ return ye("Suspense");
301
301
  case f:
302
- return fe("SuspenseList");
302
+ return ye("SuspenseList");
303
303
  }
304
- if (typeof n == "object")
305
- switch (n.$$typeof) {
304
+ if (typeof c == "object")
305
+ switch (c.$$typeof) {
306
306
  case o:
307
- return ut(n.render);
307
+ return gt(c.render);
308
308
  case g:
309
- return ye(n.type, p, y);
309
+ return be(c.type, p, y);
310
310
  case m: {
311
- var L = n, F = L._payload, A = L._init;
311
+ var T = c, O = T._payload, A = T._init;
312
312
  try {
313
- return ye(A(F), p, y);
313
+ return be(A(O), p, y);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var xe = Object.prototype.hasOwnProperty, Be = {}, We = E.ReactDebugCurrentFrame;
321
- function be(n) {
322
- if (n) {
323
- var p = n._owner, y = ye(n.type, n._source, p ? p.type : null);
324
- We.setExtraStackFrame(y);
320
+ var ue = Object.prototype.hasOwnProperty, Ve = {}, Ue = I.ReactDebugCurrentFrame;
321
+ function Se(c) {
322
+ if (c) {
323
+ var p = c._owner, y = be(c.type, c._source, p ? p.type : null);
324
+ Ue.setExtraStackFrame(y);
325
325
  } else
326
- We.setExtraStackFrame(null);
326
+ Ue.setExtraStackFrame(null);
327
327
  }
328
- function gt(n, p, y, L, F) {
328
+ function mt(c, p, y, T, O) {
329
329
  {
330
- var A = Function.call.bind(xe);
331
- for (var I in n)
332
- if (A(n, I)) {
330
+ var A = Function.call.bind(ue);
331
+ for (var P in c)
332
+ if (A(c, P)) {
333
333
  var w = void 0;
334
334
  try {
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`.");
335
+ if (typeof c[P] != "function") {
336
+ var V = Error((T || "React class") + ": " + y + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[P] + "`.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[I](p, I, L, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch ($) {
341
- w = $;
339
+ w = c[P](p, P, T, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (N) {
341
+ w = N;
342
342
  }
343
- w && !(w instanceof Error) && (be(F), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", y, I, typeof w), be(null)), w instanceof Error && !(w.message in Be) && (Be[w.message] = !0, be(F), T("Failed %s type: %s", y, w.message), be(null));
343
+ w && !(w instanceof Error) && (Se(O), 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).", T || "React class", y, P, typeof w), Se(null)), w instanceof Error && !(w.message in Ve) && (Ve[w.message] = !0, Se(O), L("Failed %s type: %s", y, w.message), Se(null));
344
344
  }
345
345
  }
346
346
  }
347
- var pt = Array.isArray;
348
- function Te(n) {
349
- return pt(n);
347
+ var ft = Array.isArray;
348
+ function ke(c) {
349
+ return ft(c);
350
350
  }
351
- function mt(n) {
351
+ function vt(c) {
352
352
  {
353
- var p = typeof Symbol == "function" && Symbol.toStringTag, y = p && n[Symbol.toStringTag] || n.constructor.name || "Object";
353
+ var p = typeof Symbol == "function" && Symbol.toStringTag, y = p && c[Symbol.toStringTag] || c.constructor.name || "Object";
354
354
  return y;
355
355
  }
356
356
  }
357
- function ft(n) {
357
+ function yt(c) {
358
358
  try {
359
- return Ve(n), !1;
359
+ return Ke(c), !1;
360
360
  } catch {
361
361
  return !0;
362
362
  }
363
363
  }
364
- function Ve(n) {
365
- return "" + n;
364
+ function Ke(c) {
365
+ return "" + c;
366
366
  }
367
- function Ue(n) {
368
- if (ft(n))
369
- return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mt(n)), Ve(n);
367
+ function Qe(c) {
368
+ if (yt(c))
369
+ return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vt(c)), Ke(c);
370
370
  }
371
- var oe = E.ReactCurrentOwner, vt = {
371
+ var de = I.ReactCurrentOwner, xt = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, Ke, Qe, ke;
377
- ke = {};
378
- function yt(n) {
379
- if (xe.call(n, "ref")) {
380
- var p = Object.getOwnPropertyDescriptor(n, "ref").get;
376
+ }, ze, Je, Re;
377
+ Re = {};
378
+ function bt(c) {
379
+ if (ue.call(c, "ref")) {
380
+ var p = Object.getOwnPropertyDescriptor(c, "ref").get;
381
381
  if (p && p.isReactWarning)
382
382
  return !1;
383
383
  }
384
- return n.ref !== void 0;
384
+ return c.ref !== void 0;
385
385
  }
386
- function xt(n) {
387
- if (xe.call(n, "key")) {
388
- var p = Object.getOwnPropertyDescriptor(n, "key").get;
386
+ function St(c) {
387
+ if (ue.call(c, "key")) {
388
+ var p = Object.getOwnPropertyDescriptor(c, "key").get;
389
389
  if (p && p.isReactWarning)
390
390
  return !1;
391
391
  }
392
- return n.key !== void 0;
392
+ return c.key !== void 0;
393
393
  }
394
- function bt(n, p) {
395
- if (typeof n.ref == "string" && oe.current && p && oe.current.stateNode !== p) {
396
- var y = Q(oe.current.type);
397
- ke[y] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Q(oe.current.type), n.ref), ke[y] = !0);
394
+ function Ct(c, p) {
395
+ if (typeof c.ref == "string" && de.current && p && de.current.stateNode !== p) {
396
+ var y = z(de.current.type);
397
+ Re[y] || (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', z(de.current.type), c.ref), Re[y] = !0);
398
398
  }
399
399
  }
400
- function Ct(n, p) {
400
+ function Lt(c, p) {
401
401
  {
402
402
  var y = function() {
403
- Ke || (Ke = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
403
+ ze || (ze = !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));
404
404
  };
405
- y.isReactWarning = !0, Object.defineProperty(n, "key", {
405
+ y.isReactWarning = !0, Object.defineProperty(c, "key", {
406
406
  get: y,
407
407
  configurable: !0
408
408
  });
409
409
  }
410
410
  }
411
- function St(n, p) {
411
+ function Tt(c, p) {
412
412
  {
413
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));
414
+ Je || (Je = !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));
415
415
  };
416
- y.isReactWarning = !0, Object.defineProperty(n, "ref", {
416
+ y.isReactWarning = !0, Object.defineProperty(c, "ref", {
417
417
  get: y,
418
418
  configurable: !0
419
419
  });
420
420
  }
421
421
  }
422
- var Lt = function(n, p, y, L, F, A, I) {
422
+ var kt = function(c, p, y, T, O, A, P) {
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
- type: n,
427
+ type: c,
428
428
  key: p,
429
429
  ref: y,
430
- props: I,
430
+ props: P,
431
431
  // Record the component responsible for creating this element.
432
432
  _owner: A
433
433
  };
@@ -440,61 +440,61 @@ function Mt() {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
- value: L
443
+ value: T
444
444
  }), Object.defineProperty(w, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: F
448
+ value: O
449
449
  }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
450
450
  };
451
- function Tt(n, p, y, L, F) {
451
+ function Rt(c, p, y, T, O) {
452
452
  {
453
- var A, I = {}, w = null, V = null;
454
- y !== void 0 && (Ue(y), w = "" + y), xt(p) && (Ue(p.key), w = "" + p.key), yt(p) && (V = p.ref, bt(p, F));
453
+ var A, P = {}, w = null, V = null;
454
+ y !== void 0 && (Qe(y), w = "" + y), St(p) && (Qe(p.key), w = "" + p.key), bt(p) && (V = p.ref, Ct(p, O));
455
455
  for (A in p)
456
- xe.call(p, A) && !vt.hasOwnProperty(A) && (I[A] = p[A]);
457
- if (n && n.defaultProps) {
458
- var $ = n.defaultProps;
459
- for (A in $)
460
- I[A] === void 0 && (I[A] = $[A]);
456
+ ue.call(p, A) && !xt.hasOwnProperty(A) && (P[A] = p[A]);
457
+ if (c && c.defaultProps) {
458
+ var N = c.defaultProps;
459
+ for (A in N)
460
+ P[A] === void 0 && (P[A] = N[A]);
461
461
  }
462
462
  if (w || V) {
463
- var H = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
464
- w && Ct(I, H), V && St(I, H);
463
+ var H = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
464
+ w && Lt(P, H), V && Tt(P, H);
465
465
  }
466
- return Lt(n, w, V, F, L, oe.current, I);
466
+ return kt(c, w, V, O, T, de.current, P);
467
467
  }
468
468
  }
469
- var Re = E.ReactCurrentOwner, ze = E.ReactDebugCurrentFrame;
470
- function ae(n) {
471
- if (n) {
472
- var p = n._owner, y = ye(n.type, n._source, p ? p.type : null);
473
- ze.setExtraStackFrame(y);
469
+ var we = I.ReactCurrentOwner, Ye = I.ReactDebugCurrentFrame;
470
+ function re(c) {
471
+ if (c) {
472
+ var p = c._owner, y = be(c.type, c._source, p ? p.type : null);
473
+ Ye.setExtraStackFrame(y);
474
474
  } else
475
- ze.setExtraStackFrame(null);
475
+ Ye.setExtraStackFrame(null);
476
476
  }
477
- var we;
478
- we = !1;
479
- function Ee(n) {
480
- return typeof n == "object" && n !== null && n.$$typeof === e;
477
+ var Ee;
478
+ Ee = !1;
479
+ function Ie(c) {
480
+ return typeof c == "object" && c !== null && c.$$typeof === e;
481
481
  }
482
- function Je() {
482
+ function Xe() {
483
483
  {
484
- if (Re.current) {
485
- var n = Q(Re.current.type);
486
- if (n)
484
+ if (we.current) {
485
+ var c = z(we.current.type);
486
+ if (c)
487
487
  return `
488
488
 
489
- Check the render method of \`` + n + "`.";
489
+ Check the render method of \`` + c + "`.";
490
490
  }
491
491
  return "";
492
492
  }
493
493
  }
494
- function kt(n) {
494
+ function wt(c) {
495
495
  {
496
- if (n !== void 0) {
497
- var p = n.fileName.replace(/^.*[\\\/]/, ""), y = n.lineNumber;
496
+ if (c !== void 0) {
497
+ var p = c.fileName.replace(/^.*[\\\/]/, ""), y = c.lineNumber;
498
498
  return `
499
499
 
500
500
  Check your code at ` + p + ":" + y + ".";
@@ -502,12 +502,12 @@ Check your code at ` + p + ":" + y + ".";
502
502
  return "";
503
503
  }
504
504
  }
505
- var Ye = {};
506
- function Rt(n) {
505
+ var Ge = {};
506
+ function Et(c) {
507
507
  {
508
- var p = Je();
508
+ var p = Xe();
509
509
  if (!p) {
510
- var y = typeof n == "string" ? n : n.displayName || n.name;
510
+ var y = typeof c == "string" ? c : c.displayName || c.name;
511
511
  y && (p = `
512
512
 
513
513
  Check the top-level render call using <` + y + ">.");
@@ -515,41 +515,41 @@ Check the top-level render call using <` + y + ">.");
515
515
  return p;
516
516
  }
517
517
  }
518
- function Ge(n, p) {
518
+ function Ze(c, p) {
519
519
  {
520
- if (!n._store || n._store.validated || n.key != null)
520
+ if (!c._store || c._store.validated || c.key != null)
521
521
  return;
522
- n._store.validated = !0;
523
- var y = Rt(p);
524
- if (Ye[y])
522
+ c._store.validated = !0;
523
+ var y = Et(p);
524
+ if (Ge[y])
525
525
  return;
526
- Ye[y] = !0;
527
- var L = "";
528
- n && n._owner && n._owner !== Re.current && (L = " It was passed a child from " + Q(n._owner.type) + "."), ae(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), ae(null);
526
+ Ge[y] = !0;
527
+ var T = "";
528
+ c && c._owner && c._owner !== we.current && (T = " It was passed a child from " + z(c._owner.type) + "."), re(c), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, T), re(null);
529
529
  }
530
530
  }
531
- function Xe(n, p) {
531
+ function et(c, p) {
532
532
  {
533
- if (typeof n != "object")
533
+ if (typeof c != "object")
534
534
  return;
535
- if (Te(n))
536
- for (var y = 0; y < n.length; y++) {
537
- var L = n[y];
538
- Ee(L) && Ge(L, p);
535
+ if (ke(c))
536
+ for (var y = 0; y < c.length; y++) {
537
+ var T = c[y];
538
+ Ie(T) && Ze(T, p);
539
539
  }
540
- else if (Ee(n))
541
- n._store && (n._store.validated = !0);
542
- else if (n) {
543
- var F = R(n);
544
- if (typeof F == "function" && F !== n.entries)
545
- for (var A = F.call(n), I; !(I = A.next()).done; )
546
- Ee(I.value) && Ge(I.value, p);
540
+ else if (Ie(c))
541
+ c._store && (c._store.validated = !0);
542
+ else if (c) {
543
+ var O = R(c);
544
+ if (typeof O == "function" && O !== c.entries)
545
+ for (var A = O.call(c), P; !(P = A.next()).done; )
546
+ Ie(P.value) && Ze(P.value, p);
547
547
  }
548
548
  }
549
549
  }
550
- function wt(n) {
550
+ function It(c) {
551
551
  {
552
- var p = n.type;
552
+ var p = c.type;
553
553
  if (p == null || typeof p == "string")
554
554
  return;
555
555
  var y;
@@ -562,71 +562,86 @@ Check the top-level render call using <` + y + ">.");
562
562
  else
563
563
  return;
564
564
  if (y) {
565
- var L = Q(p);
566
- gt(y, n.props, "prop", L, n);
567
- } else if (p.PropTypes !== void 0 && !we) {
568
- we = !0;
569
- var F = Q(p);
570
- T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown");
565
+ var T = z(p);
566
+ mt(y, c.props, "prop", T, c);
567
+ } else if (p.PropTypes !== void 0 && !Ee) {
568
+ Ee = !0;
569
+ var O = z(p);
570
+ L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
571
571
  }
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.");
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.");
573
573
  }
574
574
  }
575
- function Et(n) {
575
+ function Pt(c) {
576
576
  {
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
- ae(n), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), ae(null);
577
+ for (var p = Object.keys(c.props), y = 0; y < p.length; y++) {
578
+ var T = p[y];
579
+ if (T !== "children" && T !== "key") {
580
+ re(c), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), re(null);
581
581
  break;
582
582
  }
583
583
  }
584
- n.ref !== null && (ae(n), T("Invalid attribute `ref` supplied to `React.Fragment`."), ae(null));
584
+ c.ref !== null && (re(c), L("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
585
585
  }
586
586
  }
587
- function Ze(n, p, y, L, F, A) {
587
+ var tt = {};
588
+ function at(c, p, y, T, O, A) {
588
589
  {
589
- var I = _(n);
590
- if (!I) {
590
+ var P = _(c);
591
+ if (!P) {
591
592
  var w = "";
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 = kt(F);
594
- V ? w += V : w += Je();
595
- var $;
596
- n === null ? $ = "null" : Te(n) ? $ = "array" : n !== void 0 && n.$$typeof === e ? ($ = "<" + (Q(n.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof n, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, w);
593
+ (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).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.");
594
+ var V = wt(O);
595
+ V ? w += V : w += Xe();
596
+ var N;
597
+ c === null ? N = "null" : ke(c) ? N = "array" : c !== void 0 && c.$$typeof === e ? (N = "<" + (z(c.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : N = typeof c, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, w);
597
598
  }
598
- var H = Tt(n, p, y, F, A);
599
+ var H = Rt(c, p, y, O, A);
599
600
  if (H == null)
600
601
  return H;
601
- if (I) {
602
- var z = p.children;
603
- if (z !== void 0)
604
- if (L)
605
- if (Te(z)) {
606
- for (var se = 0; se < z.length; se++)
607
- Xe(z[se], n);
608
- Object.freeze && Object.freeze(z);
602
+ if (P) {
603
+ var J = p.children;
604
+ if (J !== void 0)
605
+ if (T)
606
+ if (ke(J)) {
607
+ for (var ie = 0; ie < J.length; ie++)
608
+ et(J[ie], c);
609
+ Object.freeze && Object.freeze(J);
609
610
  } else
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
+ 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.");
611
612
  else
612
- Xe(z, n);
613
+ et(J, c);
613
614
  }
614
- return n === s ? Et(H) : wt(H), H;
615
+ if (ue.call(p, "key")) {
616
+ var se = z(c), K = Object.keys(p).filter(function(Dt) {
617
+ return Dt !== "key";
618
+ }), Pe = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}";
619
+ if (!tt[se + Pe]) {
620
+ var Mt = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}";
621
+ L(`A props object containing a "key" prop is being spread into JSX:
622
+ let props = %s;
623
+ <%s {...props} />
624
+ React keys must be passed directly to JSX without using spread:
625
+ let props = %s;
626
+ <%s key={someKey} {...props} />`, Pe, se, Mt, se), tt[se + Pe] = !0;
627
+ }
628
+ }
629
+ return c === s ? Pt(H) : It(H), H;
615
630
  }
616
631
  }
617
- function It(n, p, y) {
618
- return Ze(n, p, y, !0);
632
+ function jt(c, p, y) {
633
+ return at(c, p, y, !0);
619
634
  }
620
- function Pt(n, p, y) {
621
- return Ze(n, p, y, !1);
635
+ function Ft(c, p, y) {
636
+ return at(c, p, y, !1);
622
637
  }
623
- var jt = Pt, Ft = It;
624
- ue.Fragment = s, ue.jsx = jt, ue.jsxs = Ft;
625
- }()), ue;
638
+ var Ot = Ft, At = jt;
639
+ pe.Fragment = s, pe.jsx = Ot, pe.jsxs = At;
640
+ }()), pe;
626
641
  }
627
- process.env.NODE_ENV === "production" ? je.exports = At() : je.exports = Mt();
628
- var u = je.exports, Dt = Object.defineProperty, Nt = (i, e, t) => e in i ? Dt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, h = (i, e, t) => (Nt(i, typeof e != "symbol" ? e + "" : e, t), t), W = /* @__PURE__ */ ((i) => (i[i.mustache = 0] = "mustache", i[i.vue = 1] = "vue", i[i.react = 2] = "react", i[i.angular = 3] = "angular", i))(W || {});
629
- class $t {
642
+ process.env.NODE_ENV === "production" ? Oe.exports = Nt() : Oe.exports = qt();
643
+ var u = Oe.exports, _t = Object.defineProperty, Ht = (n, e, t) => e in n ? _t(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, h = (n, e, t) => (Ht(n, typeof e != "symbol" ? e + "" : e, t), t), W = /* @__PURE__ */ ((n) => (n[n.mustache = 0] = "mustache", n[n.vue = 1] = "vue", n[n.react = 2] = "react", n[n.angular = 3] = "angular", n))(W || {});
644
+ class Bt {
630
645
  constructor(e) {
631
646
  h(this, "dataLayer"), this.dataLayer = e;
632
647
  }
@@ -639,7 +654,7 @@ class $t {
639
654
  return ((e = this.dataLayer.searchResultsMetadata) == null ? void 0 : e.totalResultsValue) || 0;
640
655
  }
641
656
  get resultsPerPage() {
642
- return this.dataLayer.searchObject.itemsPerPage || 0;
657
+ return this.dataLayer.itemsPerPage || 0;
643
658
  }
644
659
  get sortOptions() {
645
660
  var e;
@@ -707,9 +722,9 @@ class $t {
707
722
  var e;
708
723
  const t = this.dataLayer.searchFacetsCached ?? this.dataLayer.searchFacets;
709
724
  return t ? (((e = this.dataLayer.searchObject) == null ? void 0 : e.facets) ?? []).map((s) => {
710
- const a = s.name, r = s.value, c = t.find((l) => l.name === a);
711
- if (c) {
712
- const l = c.values.find((o) => o.type === "range" ? !1 : o.type === "checkbox" ? '"' + o.value + '"' === r : !1);
725
+ const a = s.name, r = s.value, i = t.find((l) => l.name === a);
726
+ if (i) {
727
+ const l = i.values.find((o) => o.type === "range" ? !1 : o.type === "checkbox" ? '"' + o.value + '"' === r : !1);
713
728
  if (l)
714
729
  return l;
715
730
  }
@@ -768,14 +783,14 @@ class $t {
768
783
  };
769
784
  }
770
785
  }
771
- class J {
786
+ class X {
772
787
  static deepEqual(e, t) {
773
788
  const s = Object.keys(e), a = Object.keys(t);
774
789
  if (s.length !== a.length)
775
790
  return !1;
776
791
  for (const r of s) {
777
- const c = e[r], l = t[r], o = this.isObject(c) && this.isObject(l);
778
- if (o && !this.deepEqual(c, l) || !o && c !== l)
792
+ const i = e[r], l = t[r], o = this.isObject(i) && this.isObject(l);
793
+ if (o && !this.deepEqual(i, l) || !o && i !== l)
779
794
  return !1;
780
795
  }
781
796
  return !0;
@@ -805,7 +820,7 @@ class D {
805
820
  this.observers.forEach((e) => e(this.value));
806
821
  }
807
822
  }
808
- class Ie {
823
+ class je {
809
824
  static getOrSetCookie(e, t) {
810
825
  let s = this.getCookie(e);
811
826
  return s == null && (s = t ?? this.makeid(25), this.setCookie(e, s, {
@@ -838,41 +853,41 @@ class Ie {
838
853
  const a = { path: "/", ...s };
839
854
  s.expires instanceof Date && (a.expires = s.expires.toUTCString());
840
855
  let r = encodeURIComponent(e) + "=" + encodeURIComponent(t);
841
- for (const c in a) {
842
- r += "; " + c;
843
- const l = a[c];
856
+ for (const i in a) {
857
+ r += "; " + i;
858
+ const l = a[i];
844
859
  l !== !0 && (r += "=" + l);
845
860
  }
846
861
  typeof document < "u" && (document.cookie = r);
847
862
  }
848
863
  }
849
- class Z {
864
+ class te {
850
865
  static removeXSSRiskyTags(e) {
851
866
  var t = "script|style|iframe|object|embed|form|input|button", s = new RegExp("</?(" + t + ")(\\s[^>]*)?>", "gi");
852
867
  return e ? e.replace(s, "") : "";
853
868
  }
854
869
  }
855
- class qt {
870
+ class Wt {
856
871
  constructor(e, t) {
857
- h(this, "$searchTermChange", new D("")), h(this, "$loadingChange", new D(!1)), h(this, "$searchResults", new D(null)), h(this, "$searchResultsMetadata", new D(null)), h(this, "$searchAutosuggest", new D(null)), h(this, "$searchFacets", new D(null)), h(this, "$searchFacetsCached", new D(null)), h(this, "$searchstaxConfig", new D(null)), h(this, "$autosuggestResults", new D(null)), h(this, "$searchObject", new D({
872
+ h(this, "$searchTermChange", new D("")), h(this, "$loadingChange", new D(!1)), h(this, "$searchResults", new D(null)), h(this, "$searchResultsMetadata", new D(null)), h(this, "$searchAutosuggest", new D(null)), h(this, "$searchFacets", new D(null)), h(this, "$searchFacetsCached", new D(null)), h(this, "$searchstaxConfig", new D(null)), h(this, "$autosuggestResults", new D(null)), h(this, "$itemsPerPage", new D(void 0)), h(this, "$searchObject", new D({
858
873
  query: "",
859
874
  itemsPerPage: null,
860
875
  page: 99999999,
861
876
  order: "",
862
877
  facets: [],
863
878
  additionalProps: []
864
- })), h(this, "$searchRelatedSearches", new D(null)), h(this, "$searchInputConfig", new D(null)), h(this, "$searchExternalPromotions", new D(null)), h(this, "$facetsTemplateData", new D(null)), h(this, "$selectedFacetsTemplateData", new D(null)), h(this, "$paginationData", new D(null)), h(this, "$searchFeedbackData", new D(null)), h(this, "$searchSortingData", new D(null)), h(this, "$searchRelatedSearchesData", new D(null)), h(this, "$searchExternalPromotionsData", new D(null)), h(this, "$cookiesDisabled", new D(null)), h(this, "$answer", new D("")), h(this, "$language", new D("en")), h(this, "currentPageValue", 1), h(this, "isAnswerWidgetCreatedValue", !1), h(this, "renderingEngineValue", W.mustache), h(this, "parsedData", new $t(this)), h(this, "sessionId"), h(this, "sessionIdValue", null), h(this, "autoCorrect", !0), h(this, "forceNotCorrect", !1), h(this, "lastSearchValue", ""), h(this, "turnAIAnswerGenerationOn", !1), h(this, "isInfiniteScroll", !1), h(this, "firstSearchHappened", !1), h(this, "facetsWereSet", !1), this.sessionId = e, t && (this.sessionIdValue = t), this.cookieHandlingCallback(t), this.$cookiesDisabled.subscribe(() => {
879
+ })), h(this, "$searchRelatedSearches", new D(null)), h(this, "$searchInputConfig", new D(null)), h(this, "$searchExternalPromotions", new D(null)), h(this, "$facetsTemplateData", new D(null)), h(this, "$selectedFacetsTemplateData", new D(null)), h(this, "$paginationData", new D(null)), h(this, "$searchFeedbackData", new D(null)), h(this, "$searchSortingData", new D(null)), h(this, "$searchRelatedSearchesData", new D(null)), h(this, "$searchExternalPromotionsData", new D(null)), h(this, "$cookiesDisabled", new D(null)), h(this, "$answer", new D("")), h(this, "$language", new D("en")), h(this, "currentPageValue", 1), h(this, "isAnswerWidgetCreatedValue", !1), h(this, "renderingEngineValue", W.mustache), h(this, "parsedData", new Bt(this)), h(this, "sessionId"), h(this, "sessionIdValue", null), h(this, "autoCorrect", !0), h(this, "forceNotCorrect", !1), h(this, "lastSearchValue", ""), h(this, "turnAIAnswerGenerationOn", !1), h(this, "isInfiniteScroll", !1), h(this, "firstSearchHappened", !1), h(this, "facetsWereSet", !1), this.sessionId = e, t && (this.sessionIdValue = t), this.cookieHandlingCallback(t), this.$cookiesDisabled.subscribe(() => {
865
880
  this.cookieHandlingCallback(t);
866
881
  });
867
882
  }
868
883
  cookieHandlingCallback(e) {
869
- this.cookiesDisabled ? (this.sessionIdValue = null, Ie.deleteCookie(this.sessionId), Ie.deleteCookie("ms_visitorid")) : this.sessionIdValue = Ie.getOrSetCookie(this.sessionId, e);
884
+ this.cookiesDisabled ? (this.sessionIdValue = null, je.deleteCookie(this.sessionId), je.deleteCookie("ms_visitorid")) : this.sessionIdValue = je.getOrSetCookie(this.sessionId, e);
870
885
  }
871
886
  setIsInfiniteScroll(e) {
872
887
  this.isInfiniteScroll = e;
873
888
  }
874
889
  setSearchTerm(e) {
875
- this.$searchTermChange.setValue(Z.removeXSSRiskyTags(e));
890
+ this.$searchTermChange.setValue(te.removeXSSRiskyTags(e));
876
891
  }
877
892
  setRenderingEngine(e) {
878
893
  this.renderingEngineValue = e;
@@ -887,10 +902,10 @@ class qt {
887
902
  this.$loadingChange.setValue(e);
888
903
  }
889
904
  setSearchResults(e) {
890
- this.firstSearchHappened = !0, (!J.deepEqual(e, this.searchResults ?? [""]) || this.facetsWereSet) && (this.facetsWereSet = !1, this.$searchResults.setValue(e));
905
+ this.firstSearchHappened = !0, (!X.deepEqual(e, this.searchResults ?? [""]) || this.facetsWereSet) && (this.facetsWereSet = !1, this.$searchResults.setValue(e));
891
906
  }
892
907
  setSearchResultsMetadata(e) {
893
- J.deepEqual(e, this.searchResultsMetadata ?? {}) || this.$searchResultsMetadata.setValue(e);
908
+ X.deepEqual(e, this.searchResultsMetadata ?? {}) || this.$searchResultsMetadata.setValue(e);
894
909
  }
895
910
  setSearchAutosuggest(e) {
896
911
  this.$searchAutosuggest.setValue(e);
@@ -898,19 +913,19 @@ class qt {
898
913
  setSearchObject(e) {
899
914
  var t, s;
900
915
  let a = e;
901
- (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);
916
+ a = { ...a, itemsPerPage: this.itemsPerPage }, (s = (t = this.searchstaxConfig) == null ? void 0 : t.hooks) != null && s.beforeSearch && a && (a = this.searchstaxConfig.hooks.beforeSearch(a)), a && (!X.deepEqual(a, this.searchObject ?? {}) || this.forceNotCorrect) && this.$searchObject.setValue(a);
902
917
  }
903
918
  setSearchFacets(e) {
904
- this.facetsWereSet = !0, J.deepEqual(e, this.searchFacets ?? []) || this.$searchFacets.setValue(e);
919
+ this.facetsWereSet = !0, X.deepEqual(e, this.searchFacets ?? []) || this.$searchFacets.setValue(e);
905
920
  }
906
921
  setSearchFacetsCached(e) {
907
- J.deepEqual(e, this.searchFacetsCached ?? []) || this.$searchFacetsCached.setValue(e);
922
+ X.deepEqual(e, this.searchFacetsCached ?? []) || this.$searchFacetsCached.setValue(e);
908
923
  }
909
924
  setSearchRelatedSearches(e) {
910
- J.deepEqual(e, this.searchRelatedSearches ?? []) || this.$searchRelatedSearches.setValue(e);
925
+ X.deepEqual(e, this.searchRelatedSearches ?? []) || this.$searchRelatedSearches.setValue(e);
911
926
  }
912
927
  setSearchExternalPromotions(e) {
913
- J.deepEqual(e, this.searchExternalPromotions ?? []) || this.$searchExternalPromotions.setValue(e);
928
+ X.deepEqual(e, this.searchExternalPromotions ?? []) || this.$searchExternalPromotions.setValue(e);
914
929
  }
915
930
  setLanguage(e) {
916
931
  this.$language.setValue(e);
@@ -951,6 +966,9 @@ class qt {
951
966
  setAnswerData(e) {
952
967
  this.$answer.setValue(e);
953
968
  }
969
+ setItemsPerPage(e) {
970
+ this.$itemsPerPage.setValue(e);
971
+ }
954
972
  get getAnswerData() {
955
973
  return this.$answer.getValue();
956
974
  }
@@ -1032,28 +1050,32 @@ class qt {
1032
1050
  get cookiesDisabled() {
1033
1051
  return (this.$cookiesDisabled.getValue() ?? !1) || !navigator.cookieEnabled;
1034
1052
  }
1053
+ get itemsPerPage() {
1054
+ return this.$itemsPerPage.getValue();
1055
+ }
1035
1056
  }
1036
- class de {
1057
+ class me {
1037
1058
  static combineResultsWithMetadata(e) {
1038
1059
  const t = [], s = parseInt(e.response.start + "");
1039
- return parseInt(e.responseHeader.params.rows), e.response.docs.forEach((a, r) => {
1040
- const c = {
1060
+ return e.response.docs.forEach((a, r) => {
1061
+ const i = a[e.responseHeader.params.uniqueId] ?? "", l = {
1041
1062
  custom: null,
1042
- uniqueId: a[e.responseHeader.params.uniqueId] ?? "",
1063
+ uniqueId: i,
1043
1064
  position: s + 1 + r,
1044
- ribbon: this.doesMapExist("ribbon", e) ? this.getValueByKey("ribbon", a, e) : null,
1045
- paths: this.doesMapExist("paths", e) ? this.getValueByKey("paths", a, e) : null,
1046
- url: this.doesMapExist("url", e) ? this.getValueByKey("url", a, e) : null,
1047
- title: this.doesMapExist("title", e) ? this.getValueByKey("title", a, e) : null,
1065
+ ribbon: this.doesMapExist("ribbon", e) ? this.getValueByKey("ribbon", a, e, i) : null,
1066
+ paths: this.doesMapExist("paths", e) ? this.getValueByKey("paths", a, e, i) : null,
1067
+ url: this.doesMapExist("url", e) ? this.getValueByKey("url", a, e, i) : null,
1068
+ title: this.doesMapExist("title", e) ? this.getValueByKey("title", a, e, i) : null,
1069
+ titleTracking: this.doesMapExist("title", e) ? this.getValueByKey("title", a, e, i, !0) : null,
1048
1070
  promoted: a["[elevated]"] ? a["[elevated]"] : !1,
1049
- thumbnail: this.doesMapExist("thumbnail", e) ? this.getValueByKey("thumbnail", a, e) : null,
1050
- date: this.doesMapExist("date", e) ? this.getValueByKey("date", a, e) : null,
1051
- snippet: this.doesMapExist("snippet", e) ? this.getValueByKey("snippet", a, e) : null,
1052
- description: this.doesMapExist("description", e) ? this.getValueByKey("description", a, e) : null,
1053
- unmappedFields: this.getUnmappedFields(a, e),
1071
+ thumbnail: this.doesMapExist("thumbnail", e) ? this.getValueByKey("thumbnail", a, e, i) : null,
1072
+ date: this.doesMapExist("date", e) ? this.getValueByKey("date", a, e, i) : null,
1073
+ snippet: this.doesMapExist("snippet", e) ? this.getValueByKey("snippet", a, e, i) : null,
1074
+ description: this.doesMapExist("description", e) ? this.getValueByKey("description", a, e, i) : null,
1075
+ unmappedFields: this.getUnmappedFields(a, e, i),
1054
1076
  allFields: this.getAllFields(a, e)
1055
1077
  };
1056
- t.push(c);
1078
+ t.push(l);
1057
1079
  }), t;
1058
1080
  }
1059
1081
  static extractFacets(e) {
@@ -1063,9 +1085,9 @@ class de {
1063
1085
  let a = { values: [] };
1064
1086
  if (a.name = s.name, a.label = s.label, s.name in e.facet_counts.facet_fields) {
1065
1087
  const r = e.facet_counts.facet_fields[s.name];
1066
- for (let c = 0; c < r.length; c += 2) {
1088
+ for (let i = 0; i < r.length; i += 2) {
1067
1089
  const l = {};
1068
- l.value = r[c], l.parentName = a.name, l.count = r[c + 1], l.type = "checkbox", a.values.push(l);
1090
+ l.value = r[i], l.parentName = a.name, l.count = r[i + 1], l.type = "checkbox", a.values.push(l);
1069
1091
  }
1070
1092
  }
1071
1093
  a.values.length > 0 && t.push(a);
@@ -1073,7 +1095,7 @@ class de {
1073
1095
  return t;
1074
1096
  }
1075
1097
  static extractSearchResultsMetadata(e) {
1076
- var t, s, a, r, c, l;
1098
+ var t, s, a, r, i, l;
1077
1099
  let o = "", d = {
1078
1100
  selectedSortOption: "",
1079
1101
  options: []
@@ -1087,7 +1109,7 @@ class de {
1087
1109
  const g = e.metadata.sorts.map((m) => ({ value: m.label, key: m.name + " " + m.order }));
1088
1110
  d.options = [{ key: "", value: "Relevance" }, ...g];
1089
1111
  }
1090
- return o = ((l = (c = (r = (a = e == null ? void 0 : e.spellcheck) == null ? void 0 : a.suggestions) == null ? void 0 : r[1]) == null ? void 0 : c.suggestion) == null ? void 0 : l[0]) ?? "", typeof o != "string" && (o = (o == null ? void 0 : o.word) ?? ""), {
1112
+ return o = ((l = (i = (r = (a = e == null ? void 0 : e.spellcheck) == null ? void 0 : a.suggestions) == null ? void 0 : r[1]) == null ? void 0 : i.suggestion) == null ? void 0 : l[0]) ?? "", typeof o != "string" && (o = (o == null ? void 0 : o.word) ?? ""), {
1091
1113
  recordsPerPageValue: parseInt(e.responseHeader.params.rows),
1092
1114
  startDocVal: parseInt(e.response.start + ""),
1093
1115
  totalResultsValue: parseInt(e.response.numFound + ""),
@@ -1102,8 +1124,8 @@ class de {
1102
1124
  static getImpressions(e) {
1103
1125
  const t = [], s = this.combineResultsWithMetadata(e);
1104
1126
  for (const a in s) {
1105
- const r = s[a], c = {};
1106
- c.cDocId = this.getDataForAnalytics(r.uniqueId), r.title && (c.cDocTitle = this.getDataForAnalytics(r.title)), c.position = r.position, t.push(c);
1127
+ const r = s[a], i = {};
1128
+ i.cDocId = this.getDataForAnalytics(r.uniqueId), r.title && (i.cDocTitle = this.getDataForAnalytics(r.title)), i.position = r.position, t.push(i);
1107
1129
  }
1108
1130
  return t;
1109
1131
  }
@@ -1113,18 +1135,18 @@ class de {
1113
1135
  static findResultByUniqueId(e, t) {
1114
1136
  return t.find((s) => s.uniqueId === e) ?? null;
1115
1137
  }
1116
- static getUnmappedFields(e, t) {
1117
- const s = t.metadata.results.filter((r) => r.result_card === "").map((r) => r.name), a = [];
1118
- for (const r of Object.keys(e))
1119
- if (s.indexOf(r) !== -1) {
1120
- const c = Array.isArray(e[r]) ? e[r].join(", ") : e[r];
1121
- a.push({
1122
- key: r,
1123
- value: c,
1124
- isImage: this.checkIfImage(e[r])
1138
+ static getUnmappedFields(e, t, s) {
1139
+ const a = t.metadata.results.filter((i) => i.result_card === "").map((i) => i.name), r = [];
1140
+ for (const i of Object.keys(e))
1141
+ if (a.indexOf(i) !== -1) {
1142
+ const l = Array.isArray(e[i]) ? this.getHighlightedResults(i, e[i].join(", "), s, t) : this.getHighlightedResults(i, e[i] + "", s, t);
1143
+ r.push({
1144
+ key: i,
1145
+ value: l,
1146
+ isImage: this.checkIfImage(e[i])
1125
1147
  });
1126
1148
  }
1127
- return a;
1149
+ return r;
1128
1150
  }
1129
1151
  static checkIfImage(e) {
1130
1152
  return e === void 0 ? !1 : typeof e != "string" ? Array.isArray(e) && e[0] ? /\.(gif|jpe?g|tiff?|png|webp|bmp)$/i.test(e[0]) : !1 : /\.(gif|jpe?g|tiff?|png|webp|bmp)$/i.test(e);
@@ -1142,19 +1164,34 @@ class de {
1142
1164
  static doesMapExist(e, t) {
1143
1165
  return t.metadata.results.find((s) => s.result_card === e) !== void 0;
1144
1166
  }
1145
- static getValueByKey(e, t, s) {
1146
- const a = s.metadata.results.find(
1147
- (c) => c.result_card === e
1167
+ static getValueByKey(e, t, s, a, r = !1) {
1168
+ const i = s.metadata.results.find(
1169
+ (o) => o.result_card === e
1148
1170
  );
1149
- if (a === void 0)
1171
+ if (i === void 0)
1150
1172
  return null;
1151
- const r = t[a.name];
1152
- return r === void 0 ? null : typeof r == "string" ? r : Array.isArray(r) ? r.join(", ") : null;
1173
+ const l = t[i.name];
1174
+ return l === void 0 ? null : typeof l == "string" ? r ? l : this.getHighlightedResults(i.name, l, a, s) : Array.isArray(l) ? r ? l.join(", ") : this.getHighlightedResults(i.name, l.join(", "), a, s) : null;
1175
+ }
1176
+ static getHighlightedResults(e, t, s, a) {
1177
+ if (a.highlighting && s in a.highlighting) {
1178
+ let r = a.highlighting[s];
1179
+ if (r && e in r) {
1180
+ let i = r[e];
1181
+ const l = this.cleanValue(i);
1182
+ if (l !== "")
1183
+ return l;
1184
+ }
1185
+ }
1186
+ return t;
1187
+ }
1188
+ static cleanValue(e) {
1189
+ return e === null ? "" : typeof e == "string" ? e : Array.isArray(e) ? e.join(" ") : "";
1153
1190
  }
1154
1191
  }
1155
- class rt {
1192
+ class nt {
1156
1193
  constructor(e) {
1157
- h(this, "routeName", "searchstax"), h(this, "ignoredKeys", []), h(this, "queryStringHelper"), h(this, "titleParser"), e.routeName && (this.routeName = e.routeName), e.ignoredKeys && (this.ignoredKeys = e.ignoredKeys), e.title && (this.titleParser = e.title), this.queryStringHelper = new _t(this.routeName);
1194
+ h(this, "routeName", "searchstax"), h(this, "ignoredKeys", []), h(this, "queryStringHelper"), h(this, "titleParser"), e.routeName && (this.routeName = e.routeName), e.ignoredKeys && (this.ignoredKeys = e.ignoredKeys), e.title && (this.titleParser = e.title), this.queryStringHelper = new Vt(this.routeName);
1158
1195
  }
1159
1196
  updateUrl(e) {
1160
1197
  const t = this.searchObjectToUrl(e);
@@ -1198,41 +1235,41 @@ class rt {
1198
1235
  extractArrayOfFacetsFromQueryParameters(e) {
1199
1236
  var t, s, a;
1200
1237
  const r = [];
1201
- for (const c in e)
1202
- if (c.startsWith(this.routeName + "[facets]")) {
1203
- const l = Z.removeXSSRiskyTags(
1204
- (t = e[c].split(":")) == null ? void 0 : t[0]
1205
- ), o = Z.removeXSSRiskyTags(
1206
- decodeURIComponent((s = e[c].split(":")) == null ? void 0 : s[1])
1207
- ), d = Z.removeXSSRiskyTags(
1208
- decodeURIComponent((a = e[c].split(":")) == null ? void 0 : a[2])
1238
+ for (const i in e)
1239
+ if (i.startsWith(this.routeName + "[facets]")) {
1240
+ const l = te.removeXSSRiskyTags(
1241
+ (t = e[i].split(":")) == null ? void 0 : t[0]
1242
+ ), o = te.removeXSSRiskyTags(
1243
+ decodeURIComponent((s = e[i].split(":")) == null ? void 0 : s[1])
1244
+ ), d = te.removeXSSRiskyTags(
1245
+ decodeURIComponent((a = e[i].split(":")) == null ? void 0 : a[2])
1209
1246
  );
1210
1247
  r.push({ type: l, name: o, value: d });
1211
1248
  }
1212
1249
  return r;
1213
1250
  }
1214
1251
  urlToSearchObject(e, t) {
1215
- const s = this.queryStringHelper.urlToParams(e), a = Z.removeXSSRiskyTags(
1252
+ const s = this.queryStringHelper.urlToParams(e), a = te.removeXSSRiskyTags(
1216
1253
  decodeURIComponent(s[this.routeName + "[page]"])
1217
- ), r = parseInt(a), c = isNaN(r) ? 1 : r;
1254
+ ), r = parseInt(a), i = isNaN(r) ? 1 : r;
1218
1255
  return {
1219
- query: Z.removeXSSRiskyTags(
1256
+ query: te.removeXSSRiskyTags(
1220
1257
  decodeURIComponent(s[this.routeName + "[query]"])
1221
1258
  ) || "",
1222
- page: c,
1259
+ page: i,
1223
1260
  itemsPerPage: t,
1224
- order: Z.removeXSSRiskyTags(s[this.routeName + "[order]"]) || "",
1261
+ order: te.removeXSSRiskyTags(s[this.routeName + "[order]"]) || "",
1225
1262
  facets: this.extractArrayOfFacetsFromQueryParameters(s) || []
1226
1263
  };
1227
1264
  }
1228
1265
  }
1229
- class _t {
1266
+ class Vt {
1230
1267
  constructor(e) {
1231
1268
  h(this, "routeName", ""), h(this, "stringify", (t, s) => {
1232
1269
  const a = this.filterOutIgnoredKeys(t, s.ignoredKeys);
1233
1270
  return Object.keys(a).map((r) => {
1234
- const c = a[r];
1235
- return Array.isArray(c) ? c.map((l) => `${r}=${l}`).join("&") : `${r}=${c}`;
1271
+ const i = a[r];
1272
+ return Array.isArray(i) ? i.map((l) => `${r}=${l}`).join("&") : `${r}=${i}`;
1236
1273
  }).join("&");
1237
1274
  }), this.routeName = e;
1238
1275
  }
@@ -1245,8 +1282,8 @@ class _t {
1245
1282
  urlToParams(e) {
1246
1283
  const t = {}, s = e.split("?")[1];
1247
1284
  return s && s.split("&").forEach((a) => {
1248
- const [r, c] = a.split("=");
1249
- t[r] = c;
1285
+ const [r, i] = a.split("=");
1286
+ t[r] = i;
1250
1287
  }), t;
1251
1288
  }
1252
1289
  doesParamContainRouteName(e) {
@@ -1256,13 +1293,13 @@ class _t {
1256
1293
  return e.indexOf("?") !== -1;
1257
1294
  }
1258
1295
  }
1259
- const re = {
1296
+ const ne = {
1260
1297
  questionURL: "http://smartsearch-dev.searchstax.co/completion/?q=",
1261
1298
  question: "I_AM_A_QUESTION",
1262
1299
  notQuestion: "I_AM_NOT_A_QUESTION",
1263
1300
  close: "CLOSE"
1264
1301
  };
1265
- class Ht {
1302
+ class Ut {
1266
1303
  constructor(e, t) {
1267
1304
  h(this, "cachedQuery", ""), h(this, "url", ""), h(this, "relatedSearches", ""), h(this, "suggester", ""), h(this, "authHeader"), h(this, "authHeaderRelated"), h(this, "trackApiKey", ""), h(this, "session", ""), h(this, "searchAuthType"), h(this, "searchAuth", ""), h(this, "controllerSearch"), h(this, "signalSearch"), h(this, "controllerSuggest"), h(this, "signalSuggest"), h(this, "dataLayer"), this.dataLayer = t, this.url = e.searchURL, this.dataLayer.setLanguage(e.language), this.suggester = e.suggesterURL, this.trackApiKey = e.trackApiKey, this.session = e.sessionId, this.searchAuthType = e.authType, this.searchAuth = e.searchAuth, this.authHeader = new Headers(), this.authHeader.append("Accept", "application/json");
1268
1305
  const s = this.searchAuthType === "token" ? `Token ${e.searchAuth}` : `Basic ${e.searchAuth}`;
@@ -1278,14 +1315,14 @@ class Ht {
1278
1315
  else {
1279
1316
  const a = {};
1280
1317
  e.forEach(function(r) {
1281
- const c = r.name + ":" + r.value, l = decodeURIComponent(c).replace(" ", " ").split(":");
1318
+ const i = r.name + ":" + r.value, l = decodeURIComponent(i).replace(" ", " ").split(":");
1282
1319
  a[l[0]] ? a[l[0]].push(l[1]) : a[l[0]] = [l[1]];
1283
1320
  });
1284
1321
  for (const r in a)
1285
1322
  if (Object.prototype.hasOwnProperty.call(a, r)) {
1286
- const c = a[r], l = r;
1323
+ const i = a[r], l = r;
1287
1324
  let o = "";
1288
- for (const d of c)
1325
+ for (const d of i)
1289
1326
  o += ` ${l}:"${d}"`;
1290
1327
  s = s.concat("fq=" + o.trim());
1291
1328
  }
@@ -1301,15 +1338,15 @@ class Ht {
1301
1338
  headers: r,
1302
1339
  credentials: "same-origin"
1303
1340
  }
1304
- ).then((c) => c.json()).then((c) => {
1305
- a(c);
1341
+ ).then((i) => i.json()).then((i) => {
1342
+ a(i);
1306
1343
  });
1307
1344
  }
1308
1345
  cacheFacets() {
1309
1346
  this.dataLayer.searchObject.query !== this.cachedQuery && (this.cachedQuery = this.dataLayer.searchObject.query, this.search(
1310
1347
  {
1311
1348
  query: this.dataLayer.searchObject.query ?? "*",
1312
- itemsPerPage: 10,
1349
+ itemsPerPage: void 0,
1313
1350
  page: 1,
1314
1351
  order: "",
1315
1352
  facets: [],
@@ -1320,26 +1357,26 @@ class Ht {
1320
1357
  ));
1321
1358
  }
1322
1359
  cacheFacetsCallback(e) {
1323
- let t = de.extractFacets(e);
1360
+ let t = me.extractFacets(e);
1324
1361
  this.dataLayer.setSearchFacetsCached(t);
1325
1362
  }
1326
1363
  search(e, t, s = !1, a = !1) {
1327
- if (e.query && e.query !== "undefined" && e.itemsPerPage !== void 0) {
1364
+ if (e.query && e.query !== "undefined") {
1328
1365
  this.dataLayer.setSearchTerm(e.query), this.dataLayer.setLoading(!0), this.controllerSearch && this.controllerSearch.abort(), this.controllerSearch = new AbortController(), this.signalSearch = this.controllerSearch.signal;
1329
1366
  const r = new Proxy(new URLSearchParams((window == null ? void 0 : window.location.search) ?? ""), {
1330
- get: (m, S) => m.get(S) ?? ""
1331
- }), c = r.languageVariant ? (
1367
+ get: (m, C) => m.get(C) ?? ""
1368
+ }), i = r.languageVariant ? (
1332
1369
  //@ts-expect-error - this is a hack to get around the fact that the urlQueryParams is a proxy
1333
1370
  "&fq=_language:" + r.languageVariant
1334
1371
  ) : "";
1335
- let l = e.itemsPerPage, o = e.itemsPerPage * (e.page - 1), d = e.order ? `&sort=${e.order}` : "";
1372
+ let l = e.itemsPerPage, o = (e.itemsPerPage ? e.itemsPerPage : 0) * (e.page - 1), d = e.order ? `&sort=${e.order}` : "";
1336
1373
  const f = this.url + "?q=" + encodeURIComponent(e.query.trim()) + "&start=" + o + this.toQueryString(e.additionalProps ?? []) + this.generateFacetQuery(
1337
1374
  e.facets.filter((m) => m.type === "or" || m.type === "showUnavailable"),
1338
1375
  !0
1339
1376
  ) + this.generateFacetQuery(
1340
1377
  e.facets.filter((m) => m.type === "and" || m.type === "tabs"),
1341
1378
  !1
1342
- ) + d + `&spellcheck.correct=${this.dataLayer.autoCorrect && !a}&rows=${l}&language=` + this.dataLayer.language + c, g = {
1379
+ ) + d + `&spellcheck.correct=${this.dataLayer.autoCorrect && !a}` + (l ? `&rows=${l}` : "") + "&language=" + this.dataLayer.language + i, g = {
1343
1380
  method: "GET",
1344
1381
  headers: this.authHeader,
1345
1382
  credentials: "same-origin",
@@ -1355,13 +1392,13 @@ class Ht {
1355
1392
  startSSE(e, t) {
1356
1393
  if (!this.dataLayer.turnAIAnswerGenerationOn || e === "*" || this.dataLayer.lastSearchValue === e || this.dataLayer.searchObject.facets.length > 0 || this.dataLayer.searchObject.page !== 1)
1357
1394
  return;
1358
- const s = new EventSource(re.questionURL + e), a = this.dataLayer;
1395
+ const s = new EventSource(ne.questionURL + e), a = this.dataLayer;
1359
1396
  s.onmessage = function(r) {
1360
- if (r.data === re.question || r.data === re.notQuestion) {
1397
+ if (r.data === ne.question || r.data === ne.notQuestion) {
1361
1398
  a.setAnswerData("");
1362
1399
  return;
1363
1400
  }
1364
- if (r.data === re.close) {
1401
+ if (r.data === ne.close) {
1365
1402
  s.close();
1366
1403
  return;
1367
1404
  }
@@ -1395,7 +1432,7 @@ class Ht {
1395
1432
  return "&" + t.join("&");
1396
1433
  }
1397
1434
  }
1398
- class ie {
1435
+ class ce {
1399
1436
  static trackClick(e) {
1400
1437
  const t = {
1401
1438
  key: e.trackApiKey,
@@ -1406,14 +1443,14 @@ class ie {
1406
1443
  latency: e.latencyVal,
1407
1444
  session: e.session,
1408
1445
  cDocId: e.result.uniqueId,
1409
- cDocTitle: e.result.title,
1446
+ cDocTitle: e.result.titleTracking,
1410
1447
  position: e.result.position,
1411
1448
  language: e.language
1412
1449
  };
1413
1450
  return new Promise((s, a) => {
1414
1451
  const r = ["trackClick", t];
1415
- t.key && this.msq().push(r, (function(c, l) {
1416
- JSON.stringify(c) === JSON.stringify(t) && l ? s() : a();
1452
+ t.key && this.msq().push(r, (function(i, l) {
1453
+ JSON.stringify(i) === JSON.stringify(t) && l ? s() : a();
1417
1454
  }).bind(this));
1418
1455
  });
1419
1456
  }
@@ -1464,38 +1501,38 @@ class ie {
1464
1501
  }, 0);
1465
1502
  }
1466
1503
  }
1467
- h(ie, "subscribedToClickEvent", !1), h(ie, "msq", () => typeof window < "u" && window != null && window._msq ? window == null ? void 0 : window._msq : []);
1504
+ h(ce, "subscribedToClickEvent", !1), h(ce, "msq", () => typeof window < "u" && window != null && window._msq ? window == null ? void 0 : window._msq : []);
1468
1505
  /*!
1469
1506
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
1470
1507
  * http://github.com/janl/mustache.js
1471
1508
  */
1472
- var Bt = Object.prototype.toString, ce = Array.isArray || function(i) {
1473
- return Bt.call(i) === "[object Array]";
1509
+ var Kt = Object.prototype.toString, oe = Array.isArray || function(n) {
1510
+ return Kt.call(n) === "[object Array]";
1474
1511
  };
1475
- function Fe(i) {
1476
- return typeof i == "function";
1512
+ function Ae(n) {
1513
+ return typeof n == "function";
1477
1514
  }
1478
- function Wt(i) {
1479
- return ce(i) ? "array" : typeof i;
1515
+ function Qt(n) {
1516
+ return oe(n) ? "array" : typeof n;
1480
1517
  }
1481
- function Pe(i) {
1482
- return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
1518
+ function Fe(n) {
1519
+ return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
1483
1520
  }
1484
- function it(i, e) {
1485
- return i != null && typeof i == "object" && e in i;
1521
+ function ct(n, e) {
1522
+ return n != null && typeof n == "object" && e in n;
1486
1523
  }
1487
- function Vt(i, e) {
1488
- return i != null && typeof i != "object" && i.hasOwnProperty && i.hasOwnProperty(e);
1524
+ function zt(n, e) {
1525
+ return n != null && typeof n != "object" && n.hasOwnProperty && n.hasOwnProperty(e);
1489
1526
  }
1490
- var Ut = RegExp.prototype.test;
1491
- function Kt(i, e) {
1492
- return Ut.call(i, e);
1527
+ var Jt = RegExp.prototype.test;
1528
+ function Yt(n, e) {
1529
+ return Jt.call(n, e);
1493
1530
  }
1494
- var Qt = /\S/;
1495
- function zt(i) {
1496
- return !Kt(Qt, i);
1531
+ var Xt = /\S/;
1532
+ function Gt(n) {
1533
+ return !Yt(Xt, n);
1497
1534
  }
1498
- var Jt = {
1535
+ var Zt = {
1499
1536
  "&": "&amp;",
1500
1537
  "<": "&lt;",
1501
1538
  ">": "&gt;",
@@ -1505,62 +1542,62 @@ var Jt = {
1505
1542
  "`": "&#x60;",
1506
1543
  "=": "&#x3D;"
1507
1544
  };
1508
- function Yt(i) {
1509
- return String(i).replace(/[&<>"'`=\/]/g, function(e) {
1510
- return Jt[e];
1545
+ function ea(n) {
1546
+ return String(n).replace(/[&<>"'`=\/]/g, function(e) {
1547
+ return Zt[e];
1511
1548
  });
1512
1549
  }
1513
- var Gt = /\s*/, Xt = /\s+/, nt = /\s*=/, Zt = /\s*\}/, ea = /#|\^|\/|>|\{|&|=|!/;
1514
- function ta(i, e) {
1515
- if (!i)
1550
+ var ta = /\s*/, aa = /\s+/, lt = /\s*=/, sa = /\s*\}/, ra = /#|\^|\/|>|\{|&|=|!/;
1551
+ function ia(n, e) {
1552
+ if (!n)
1516
1553
  return [];
1517
- var t = !1, s = [], a = [], r = [], c = !1, l = !1, o = "", d = 0;
1554
+ var t = !1, s = [], a = [], r = [], i = !1, l = !1, o = "", d = 0;
1518
1555
  function f() {
1519
- if (c && !l)
1556
+ if (i && !l)
1520
1557
  for (; r.length; )
1521
1558
  delete a[r.pop()];
1522
1559
  else
1523
1560
  r = [];
1524
- c = !1, l = !1;
1561
+ i = !1, l = !1;
1525
1562
  }
1526
- var g, m, S;
1527
- function O(x) {
1528
- if (typeof x == "string" && (x = x.split(Xt, 2)), !ce(x) || x.length !== 2)
1563
+ var g, m, C;
1564
+ function E(x) {
1565
+ if (typeof x == "string" && (x = x.split(aa, 2)), !oe(x) || x.length !== 2)
1529
1566
  throw new Error("Invalid tags: " + x);
1530
- g = new RegExp(Pe(x[0]) + "\\s*"), m = new RegExp("\\s*" + Pe(x[1])), S = new RegExp("\\s*" + Pe("}" + x[1]));
1567
+ g = new RegExp(Fe(x[0]) + "\\s*"), m = new RegExp("\\s*" + Fe(x[1])), C = new RegExp("\\s*" + Fe("}" + x[1]));
1531
1568
  }
1532
- O(e || P.tags);
1533
- for (var k = new pe(i), R, E, T, N, B, M; !k.eos(); ) {
1534
- if (R = k.pos, T = k.scanUntil(g), T)
1535
- for (var K = 0, v = T.length; K < v; ++K)
1536
- N = T.charAt(K), zt(N) ? (r.push(a.length), o += N) : (l = !0, t = !0, o += " "), a.push(["text", N, R, R + 1]), R += 1, N === `
1569
+ E(e || j.tags);
1570
+ for (var k = new ve(n), R, I, L, $, B, M; !k.eos(); ) {
1571
+ if (R = k.pos, L = k.scanUntil(g), L)
1572
+ for (var Q = 0, v = L.length; Q < v; ++Q)
1573
+ $ = L.charAt(Q), Gt($) ? (r.push(a.length), o += $) : (l = !0, t = !0, o += " "), a.push(["text", $, R, R + 1]), R += 1, $ === `
1537
1574
  ` && (f(), o = "", d = 0, t = !1);
1538
1575
  if (!k.scan(g))
1539
1576
  break;
1540
- if (c = !0, E = k.scan(ea) || "name", k.scan(Gt), E === "=" ? (T = k.scanUntil(nt), k.scan(nt), k.scanUntil(m)) : E === "{" ? (T = k.scanUntil(S), k.scan(Zt), k.scanUntil(m), E = "&") : T = k.scanUntil(m), !k.scan(m))
1577
+ if (i = !0, I = k.scan(ra) || "name", k.scan(ta), I === "=" ? (L = k.scanUntil(lt), k.scan(lt), k.scanUntil(m)) : I === "{" ? (L = k.scanUntil(C), k.scan(sa), k.scanUntil(m), I = "&") : L = k.scanUntil(m), !k.scan(m))
1541
1578
  throw new Error("Unclosed tag at " + k.pos);
1542
- if (E == ">" ? B = [E, T, R, k.pos, o, d, t] : B = [E, T, R, k.pos], d++, a.push(B), E === "#" || E === "^")
1579
+ if (I == ">" ? B = [I, L, R, k.pos, o, d, t] : B = [I, L, R, k.pos], d++, a.push(B), I === "#" || I === "^")
1543
1580
  s.push(B);
1544
- else if (E === "/") {
1581
+ else if (I === "/") {
1545
1582
  if (M = s.pop(), !M)
1546
- throw new Error('Unopened section "' + T + '" at ' + R);
1547
- if (M[1] !== T)
1583
+ throw new Error('Unopened section "' + L + '" at ' + R);
1584
+ if (M[1] !== L)
1548
1585
  throw new Error('Unclosed section "' + M[1] + '" at ' + R);
1549
1586
  } else
1550
- E === "name" || E === "{" || E === "&" ? l = !0 : E === "=" && O(T);
1587
+ I === "name" || I === "{" || I === "&" ? l = !0 : I === "=" && E(L);
1551
1588
  }
1552
1589
  if (f(), M = s.pop(), M)
1553
1590
  throw new Error('Unclosed section "' + M[1] + '" at ' + k.pos);
1554
- return sa(aa(a));
1591
+ return ca(na(a));
1555
1592
  }
1556
- function aa(i) {
1557
- for (var e = [], t, s, a = 0, r = i.length; a < r; ++a)
1558
- t = i[a], t && (t[0] === "text" && s && s[0] === "text" ? (s[1] += t[1], s[3] = t[3]) : (e.push(t), s = t));
1593
+ function na(n) {
1594
+ for (var e = [], t, s, a = 0, r = n.length; a < r; ++a)
1595
+ t = n[a], t && (t[0] === "text" && s && s[0] === "text" ? (s[1] += t[1], s[3] = t[3]) : (e.push(t), s = t));
1559
1596
  return e;
1560
1597
  }
1561
- function sa(i) {
1562
- for (var e = [], t = e, s = [], a, r, c = 0, l = i.length; c < l; ++c)
1563
- switch (a = i[c], a[0]) {
1598
+ function ca(n) {
1599
+ for (var e = [], t = e, s = [], a, r, i = 0, l = n.length; i < l; ++i)
1600
+ switch (a = n[i], a[0]) {
1564
1601
  case "#":
1565
1602
  case "^":
1566
1603
  t.push(a), s.push(a), t = a[4] = [];
@@ -1573,21 +1610,21 @@ function sa(i) {
1573
1610
  }
1574
1611
  return e;
1575
1612
  }
1576
- function pe(i) {
1577
- this.string = i, this.tail = i, this.pos = 0;
1613
+ function ve(n) {
1614
+ this.string = n, this.tail = n, this.pos = 0;
1578
1615
  }
1579
- pe.prototype.eos = function() {
1616
+ ve.prototype.eos = function() {
1580
1617
  return this.tail === "";
1581
1618
  };
1582
- pe.prototype.scan = function(i) {
1583
- var e = this.tail.match(i);
1619
+ ve.prototype.scan = function(n) {
1620
+ var e = this.tail.match(n);
1584
1621
  if (!e || e.index !== 0)
1585
1622
  return "";
1586
1623
  var t = e[0];
1587
1624
  return this.tail = this.tail.substring(t.length), this.pos += t.length, t;
1588
1625
  };
1589
- pe.prototype.scanUntil = function(i) {
1590
- var e = this.tail.search(i), t;
1626
+ ve.prototype.scanUntil = function(n) {
1627
+ var e = this.tail.search(n), t;
1591
1628
  switch (e) {
1592
1629
  case -1:
1593
1630
  t = this.tail, this.tail = "";
@@ -1600,41 +1637,41 @@ pe.prototype.scanUntil = function(i) {
1600
1637
  }
1601
1638
  return this.pos += t.length, t;
1602
1639
  };
1603
- function ne(i, e) {
1604
- this.view = i, this.cache = { ".": this.view }, this.parent = e;
1640
+ function le(n, e) {
1641
+ this.view = n, this.cache = { ".": this.view }, this.parent = e;
1605
1642
  }
1606
- ne.prototype.push = function(i) {
1607
- return new ne(i, this);
1643
+ le.prototype.push = function(n) {
1644
+ return new le(n, this);
1608
1645
  };
1609
- ne.prototype.lookup = function(i) {
1646
+ le.prototype.lookup = function(n) {
1610
1647
  var e = this.cache, t;
1611
- if (e.hasOwnProperty(i))
1612
- t = e[i];
1648
+ if (e.hasOwnProperty(n))
1649
+ t = e[n];
1613
1650
  else {
1614
- for (var s = this, a, r, c, l = !1; s; ) {
1615
- if (i.indexOf(".") > 0)
1616
- for (a = s.view, r = i.split("."), c = 0; a != null && c < r.length; )
1617
- c === r.length - 1 && (l = it(a, r[c]) || Vt(a, r[c])), a = a[r[c++]];
1651
+ for (var s = this, a, r, i, l = !1; s; ) {
1652
+ if (n.indexOf(".") > 0)
1653
+ for (a = s.view, r = n.split("."), i = 0; a != null && i < r.length; )
1654
+ i === r.length - 1 && (l = ct(a, r[i]) || zt(a, r[i])), a = a[r[i++]];
1618
1655
  else
1619
- a = s.view[i], l = it(s.view, i);
1656
+ a = s.view[n], l = ct(s.view, n);
1620
1657
  if (l) {
1621
1658
  t = a;
1622
1659
  break;
1623
1660
  }
1624
1661
  s = s.parent;
1625
1662
  }
1626
- e[i] = t;
1663
+ e[n] = t;
1627
1664
  }
1628
- return Fe(t) && (t = t.call(this.view)), t;
1665
+ return Ae(t) && (t = t.call(this.view)), t;
1629
1666
  };
1630
1667
  function U() {
1631
1668
  this.templateCache = {
1632
1669
  _cache: {},
1633
- set: function(i, e) {
1634
- this._cache[i] = e;
1670
+ set: function(n, e) {
1671
+ this._cache[n] = e;
1635
1672
  },
1636
- get: function(i) {
1637
- return this._cache[i];
1673
+ get: function(n) {
1674
+ return this._cache[n];
1638
1675
  },
1639
1676
  clear: function() {
1640
1677
  this._cache = {};
@@ -1644,83 +1681,83 @@ function U() {
1644
1681
  U.prototype.clearCache = function() {
1645
1682
  typeof this.templateCache < "u" && this.templateCache.clear();
1646
1683
  };
1647
- U.prototype.parse = function(i, e) {
1648
- var t = this.templateCache, s = i + ":" + (e || P.tags).join(":"), a = typeof t < "u", r = a ? t.get(s) : void 0;
1649
- return r == null && (r = ta(i, e), a && t.set(s, r)), r;
1684
+ U.prototype.parse = function(n, e) {
1685
+ var t = this.templateCache, s = n + ":" + (e || j.tags).join(":"), a = typeof t < "u", r = a ? t.get(s) : void 0;
1686
+ return r == null && (r = ia(n, e), a && t.set(s, r)), r;
1650
1687
  };
1651
- U.prototype.render = function(i, e, t, s) {
1652
- var a = this.getConfigTags(s), r = this.parse(i, a), c = e instanceof ne ? e : new ne(e, void 0);
1653
- return this.renderTokens(r, c, t, i, s);
1688
+ U.prototype.render = function(n, e, t, s) {
1689
+ var a = this.getConfigTags(s), r = this.parse(n, a), i = e instanceof le ? e : new le(e, void 0);
1690
+ return this.renderTokens(r, i, t, n, s);
1654
1691
  };
1655
- U.prototype.renderTokens = function(i, e, t, s, a) {
1656
- for (var r = "", c, l, o, d = 0, f = i.length; d < f; ++d)
1657
- o = void 0, c = i[d], l = c[0], l === "#" ? o = this.renderSection(c, e, t, s, a) : l === "^" ? o = this.renderInverted(c, e, t, s, a) : l === ">" ? o = this.renderPartial(c, e, t, a) : l === "&" ? o = this.unescapedValue(c, e) : l === "name" ? o = this.escapedValue(c, e, a) : l === "text" && (o = this.rawValue(c)), o !== void 0 && (r += o);
1692
+ U.prototype.renderTokens = function(n, e, t, s, a) {
1693
+ for (var r = "", i, l, o, d = 0, f = n.length; d < f; ++d)
1694
+ o = void 0, i = n[d], l = i[0], l === "#" ? o = this.renderSection(i, e, t, s, a) : l === "^" ? o = this.renderInverted(i, e, t, s, a) : l === ">" ? o = this.renderPartial(i, e, t, a) : l === "&" ? o = this.unescapedValue(i, e) : l === "name" ? o = this.escapedValue(i, e, a) : l === "text" && (o = this.rawValue(i)), o !== void 0 && (r += o);
1658
1695
  return r;
1659
1696
  };
1660
- U.prototype.renderSection = function(i, e, t, s, a) {
1661
- var r = this, c = "", l = e.lookup(i[1]);
1697
+ U.prototype.renderSection = function(n, e, t, s, a) {
1698
+ var r = this, i = "", l = e.lookup(n[1]);
1662
1699
  function o(g) {
1663
1700
  return r.render(g, e, t, a);
1664
1701
  }
1665
1702
  if (l) {
1666
- if (ce(l))
1703
+ if (oe(l))
1667
1704
  for (var d = 0, f = l.length; d < f; ++d)
1668
- c += this.renderTokens(i[4], e.push(l[d]), t, s, a);
1705
+ i += this.renderTokens(n[4], e.push(l[d]), t, s, a);
1669
1706
  else if (typeof l == "object" || typeof l == "string" || typeof l == "number")
1670
- c += this.renderTokens(i[4], e.push(l), t, s, a);
1671
- else if (Fe(l)) {
1707
+ i += this.renderTokens(n[4], e.push(l), t, s, a);
1708
+ else if (Ae(l)) {
1672
1709
  if (typeof s != "string")
1673
1710
  throw new Error("Cannot use higher-order sections without the original template");
1674
- l = l.call(e.view, s.slice(i[3], i[5]), o), l != null && (c += l);
1711
+ l = l.call(e.view, s.slice(n[3], n[5]), o), l != null && (i += l);
1675
1712
  } else
1676
- c += this.renderTokens(i[4], e, t, s, a);
1677
- return c;
1713
+ i += this.renderTokens(n[4], e, t, s, a);
1714
+ return i;
1678
1715
  }
1679
1716
  };
1680
- U.prototype.renderInverted = function(i, e, t, s, a) {
1681
- var r = e.lookup(i[1]);
1682
- if (!r || ce(r) && r.length === 0)
1683
- return this.renderTokens(i[4], e, t, s, a);
1717
+ U.prototype.renderInverted = function(n, e, t, s, a) {
1718
+ var r = e.lookup(n[1]);
1719
+ if (!r || oe(r) && r.length === 0)
1720
+ return this.renderTokens(n[4], e, t, s, a);
1684
1721
  };
1685
- U.prototype.indentPartial = function(i, e, t) {
1686
- for (var s = e.replace(/[^ \t]/g, ""), a = i.split(`
1722
+ U.prototype.indentPartial = function(n, e, t) {
1723
+ for (var s = e.replace(/[^ \t]/g, ""), a = n.split(`
1687
1724
  `), r = 0; r < a.length; r++)
1688
1725
  a[r].length && (r > 0 || !t) && (a[r] = s + a[r]);
1689
1726
  return a.join(`
1690
1727
  `);
1691
1728
  };
1692
- U.prototype.renderPartial = function(i, e, t, s) {
1729
+ U.prototype.renderPartial = function(n, e, t, s) {
1693
1730
  if (t) {
1694
- var a = this.getConfigTags(s), r = Fe(t) ? t(i[1]) : t[i[1]];
1731
+ var a = this.getConfigTags(s), r = Ae(t) ? t(n[1]) : t[n[1]];
1695
1732
  if (r != null) {
1696
- var c = i[6], l = i[5], o = i[4], d = r;
1697
- l == 0 && o && (d = this.indentPartial(r, o, c));
1733
+ var i = n[6], l = n[5], o = n[4], d = r;
1734
+ l == 0 && o && (d = this.indentPartial(r, o, i));
1698
1735
  var f = this.parse(d, a);
1699
1736
  return this.renderTokens(f, e, t, d, s);
1700
1737
  }
1701
1738
  }
1702
1739
  };
1703
- U.prototype.unescapedValue = function(i, e) {
1704
- var t = e.lookup(i[1]);
1740
+ U.prototype.unescapedValue = function(n, e) {
1741
+ var t = e.lookup(n[1]);
1705
1742
  if (t != null)
1706
1743
  return t;
1707
1744
  };
1708
- U.prototype.escapedValue = function(i, e, t) {
1709
- var s = this.getConfigEscape(t) || P.escape, a = e.lookup(i[1]);
1745
+ U.prototype.escapedValue = function(n, e, t) {
1746
+ var s = this.getConfigEscape(t) || j.escape, a = e.lookup(n[1]);
1710
1747
  if (a != null)
1711
- return typeof a == "number" && s === P.escape ? String(a) : s(a);
1748
+ return typeof a == "number" && s === j.escape ? String(a) : s(a);
1712
1749
  };
1713
- U.prototype.rawValue = function(i) {
1714
- return i[1];
1750
+ U.prototype.rawValue = function(n) {
1751
+ return n[1];
1715
1752
  };
1716
- U.prototype.getConfigTags = function(i) {
1717
- return ce(i) ? i : i && typeof i == "object" ? i.tags : void 0;
1753
+ U.prototype.getConfigTags = function(n) {
1754
+ return oe(n) ? n : n && typeof n == "object" ? n.tags : void 0;
1718
1755
  };
1719
- U.prototype.getConfigEscape = function(i) {
1720
- if (i && typeof i == "object" && !ce(i))
1721
- return i.escape;
1756
+ U.prototype.getConfigEscape = function(n) {
1757
+ if (n && typeof n == "object" && !oe(n))
1758
+ return n.escape;
1722
1759
  };
1723
- var P = {
1760
+ var j = {
1724
1761
  name: "mustache.js",
1725
1762
  version: "4.2.0",
1726
1763
  tags: ["{{", "}}"],
@@ -1736,32 +1773,32 @@ var P = {
1736
1773
  * object with set, get and clear methods. This can also be used to disable
1737
1774
  * the cache by setting it to the literal `undefined`.
1738
1775
  */
1739
- set templateCache(i) {
1740
- ge.templateCache = i;
1776
+ set templateCache(n) {
1777
+ fe.templateCache = n;
1741
1778
  },
1742
1779
  /**
1743
1780
  * Gets the default or overridden caching object from the default writer.
1744
1781
  */
1745
1782
  get templateCache() {
1746
- return ge.templateCache;
1783
+ return fe.templateCache;
1747
1784
  }
1748
- }, ge = new U();
1749
- P.clearCache = function() {
1750
- return ge.clearCache();
1785
+ }, fe = new U();
1786
+ j.clearCache = function() {
1787
+ return fe.clearCache();
1751
1788
  };
1752
- P.parse = function(i, e) {
1753
- return ge.parse(i, e);
1789
+ j.parse = function(n, e) {
1790
+ return fe.parse(n, e);
1754
1791
  };
1755
- P.render = function(i, e, t, s) {
1756
- if (typeof i != "string")
1757
- throw new TypeError('Invalid template! Template should be a "string" but "' + Wt(i) + '" was given as the first argument for mustache#render(template, view, partials)');
1758
- return ge.render(i, e, t, s);
1792
+ j.render = function(n, e, t, s) {
1793
+ if (typeof n != "string")
1794
+ throw new TypeError('Invalid template! Template should be a "string" but "' + Qt(n) + '" was given as the first argument for mustache#render(template, view, partials)');
1795
+ return fe.render(n, e, t, s);
1759
1796
  };
1760
- P.escape = Yt;
1761
- P.Scanner = pe;
1762
- P.Context = ne;
1763
- P.Writer = U;
1764
- const ra = {
1797
+ j.escape = ea;
1798
+ j.Scanner = ve;
1799
+ j.Context = le;
1800
+ j.Writer = U;
1801
+ const la = {
1765
1802
  main: {
1766
1803
  template: `
1767
1804
  {{#shouldShowAnswer}}
@@ -1774,7 +1811,7 @@ const ra = {
1774
1811
  {{/shouldShowAnswer}}
1775
1812
  `
1776
1813
  }
1777
- }, ia = {
1814
+ }, oa = {
1778
1815
  mainTemplate: {
1779
1816
  template: `
1780
1817
  {{#hasExternalPromotions}}
@@ -1808,7 +1845,7 @@ const ra = {
1808
1845
  </div>
1809
1846
  `
1810
1847
  }
1811
- }, na = {
1848
+ }, ha = {
1812
1849
  mainTemplateDesktop: {
1813
1850
  template: `
1814
1851
  {{#hasResultsOrExternalPromotions}}
@@ -1828,7 +1865,7 @@ const ra = {
1828
1865
  <div class="searchstax-facets-mobile-overlay {{#overlayOpened}} searchstax-show{{/overlayOpened}}" >
1829
1866
  <div class="searchstax-facets-mobile-overlay-header">
1830
1867
  <div class="searchstax-facets-mobile-overlay-header-title">Filter By</div>
1831
- <div class="searchstax-search-close"></div>
1868
+ <div class="searchstax-search-close" tabindex="0" aria-label="close overlay" role="button"></div>
1832
1869
  </div>
1833
1870
  <div class="searchstax-facets-container-mobile"></div>
1834
1871
  <button class="searchstax-facets-mobile-overlay-done">Done</button>
@@ -1873,7 +1910,7 @@ const ra = {
1873
1910
  clearFacetsTemplate: {
1874
1911
  template: `
1875
1912
  {{#shouldShow}}}
1876
- <div class="searchstax-facets-pill searchstax-clear-filters searchstax-facets-pill-clear-all">
1913
+ <div class="searchstax-facets-pill searchstax-clear-filters searchstax-facets-pill-clear-all" tabindex="0" role="button">
1877
1914
  <div class="searchstax-facets-pill-label">Clear Filters</div>
1878
1915
  </div>
1879
1916
  {{/shouldShow}}
@@ -1896,7 +1933,7 @@ const ra = {
1896
1933
  },
1897
1934
  filterByTemplate: {
1898
1935
  template: `
1899
- <div class="searchstax-facets-pill searchstax-facets-pill-filter-by">
1936
+ <div class="searchstax-facets-pill searchstax-facets-pill-filter-by" tabindex="0" role="button" >
1900
1937
  <div class="searchstax-facets-pill-label">Filter By</div>
1901
1938
  </div>
1902
1939
  `,
@@ -1904,14 +1941,14 @@ const ra = {
1904
1941
  },
1905
1942
  selectedFacetsTemplate: {
1906
1943
  template: `
1907
- <div class="searchstax-facets-pill searchstax-facets-pill-facets">
1944
+ <div class="searchstax-facets-pill searchstax-facets-pill-facets" tabindex="0" role="button">
1908
1945
  <div class="searchstax-facets-pill-label">{{value}} ({{count}})</div>
1909
1946
  <div class="searchstax-facets-pill-icon-close"></div>
1910
1947
  </div>
1911
1948
  `,
1912
1949
  containerClass: "searchstax-facets-pill-facets"
1913
1950
  }
1914
- }, ca = {
1951
+ }, ua = {
1915
1952
  mainTemplate: {
1916
1953
  template: `
1917
1954
  {{#results.length}}
@@ -1939,7 +1976,7 @@ const ra = {
1939
1976
  `,
1940
1977
  loadMoreButtonClass: "searchstax-pagination-load-more"
1941
1978
  }
1942
- }, la = {
1979
+ }, da = {
1943
1980
  main: {
1944
1981
  template: `
1945
1982
  {{#hasRelatedSearches}}
@@ -1963,14 +2000,14 @@ const ra = {
1963
2000
  `,
1964
2001
  relatedSearchContainerClass: "searchstax-related-search-item"
1965
2002
  }
1966
- }, oa = {
2003
+ }, ga = {
1967
2004
  main: {
1968
2005
  template: `
1969
2006
  {{#searchExecuted}}
1970
2007
  <a href="#searchstax-search-results" class="searchstax-skip">Skip to results section</a>
1971
2008
  <h4 class="searchstax-feedback-container">
1972
2009
  {{#hasResults}}
1973
- <span aria-live="polite"> Showing <b>{{startResultIndex}} - {{endResultIndex}}</b> </span> of <b>{{totalResults}}</b> results {{#searchTerm}} for "<b>{{searchTerm}}</b>" {{/searchTerm}}
2010
+ <span> Showing <b>{{startResultIndex}} - {{endResultIndex}}</b> </span> of <b>{{totalResults}}</b> results {{#searchTerm}} for "<b>{{searchTerm}}</b>" {{/searchTerm}}
1974
2011
  <div class="searchstax-feedback-container-suggested">
1975
2012
  {{#autoCorrectedQuery}}
1976
2013
  Search instead for <a href="#" aria-label="Search instead for: {{originalQuery}}" class="searchstax-feedback-original-query">{{originalQuery}}</a>
@@ -1982,7 +2019,7 @@ const ra = {
1982
2019
  `,
1983
2020
  originalQueryClass: "searchstax-feedback-original-query"
1984
2021
  }
1985
- }, ha = {
2022
+ }, pa = {
1986
2023
  mainTemplate: {
1987
2024
  template: `
1988
2025
  <div class="searchstax-search-input-container">
@@ -1999,7 +2036,7 @@ const ra = {
1999
2036
  <div class="searchstax-autosuggest-item-term-container">{{{term}}}</div>
2000
2037
  `
2001
2038
  }
2002
- }, ua = {
2039
+ }, ma = {
2003
2040
  mainTemplate: {
2004
2041
  template: `
2005
2042
  <div class="searchstax-search-results-container">
@@ -2019,7 +2056,7 @@ const ra = {
2019
2056
 
2020
2057
  {{#ribbon}}
2021
2058
  <div class="searchstax-search-result-ribbon">
2022
- {{ribbon}}
2059
+ {{{ribbon}}}
2023
2060
  </div>
2024
2061
  {{/ribbon}}
2025
2062
 
@@ -2027,7 +2064,7 @@ const ra = {
2027
2064
  <img src="{{thumbnail}}" alt="" class="searchstax-thumbnail">
2028
2065
  {{/thumbnail}}
2029
2066
  <div class="searchstax-search-result-title-container">
2030
- <h5 class="searchstax-search-result-title">{{title}}</h5>
2067
+ <h5 class="searchstax-search-result-title">{{{title}}}</h5>
2031
2068
  </div>
2032
2069
 
2033
2070
  {{#paths}}
@@ -2038,7 +2075,7 @@ const ra = {
2038
2075
 
2039
2076
  {{#description}}
2040
2077
  <p class="searchstax-search-result-description searchstax-search-result-common">
2041
- {{description}}
2078
+ {{{description}}}
2042
2079
  </p>
2043
2080
  {{/description}}
2044
2081
 
@@ -2050,7 +2087,7 @@ const ra = {
2050
2087
  {{/isImage}}
2051
2088
  {{^isImage}}
2052
2089
  <p class="searchstax-search-result-common">
2053
- {{value}}
2090
+ {{{value}}}
2054
2091
  </p>
2055
2092
  {{/isImage}}
2056
2093
  {{/unmappedFields}}
@@ -2076,7 +2113,7 @@ const ra = {
2076
2113
  {{/searchExecuted}}
2077
2114
  `
2078
2115
  }
2079
- }, da = {
2116
+ }, fa = {
2080
2117
  main: {
2081
2118
  template: `
2082
2119
  {{#searchExecuted}}
@@ -2099,8 +2136,8 @@ const ra = {
2099
2136
  };
2100
2137
  class b {
2101
2138
  }
2102
- h(b, "answer", ra), h(b, "externalPromotions", ia), h(b, "facets", na), h(b, "pagination", ca), h(b, "relatedSearches", la), h(b, "searchFeedback", oa), h(b, "searchInput", ha), h(b, "searchResults", ua), h(b, "sorting", da);
2103
- class ga {
2139
+ h(b, "answer", la), h(b, "externalPromotions", oa), h(b, "facets", ha), h(b, "pagination", ua), h(b, "relatedSearches", da), h(b, "searchFeedback", ga), h(b, "searchInput", pa), h(b, "searchResults", ma), h(b, "sorting", fa);
2140
+ class va {
2104
2141
  constructor(e) {
2105
2142
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "externalPromotionsContainerId"), h(this, "searchExternalPromotionsMainContainer", null);
2106
2143
  var t, s;
@@ -2122,14 +2159,14 @@ class ga {
2122
2159
  }
2123
2160
  addExternalSearch(e) {
2124
2161
  var t, s, a, r;
2125
- const c = typeof document < "u" ? document == null ? void 0 : document.getElementById(this.externalPromotionsContainerId) : null;
2126
- if (c) {
2162
+ const i = typeof document < "u" ? document == null ? void 0 : document.getElementById(this.externalPromotionsContainerId) : null;
2163
+ if (i) {
2127
2164
  const l = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.externalPromotion) == null ? void 0 : a.template) || ((r = b.externalPromotions.externalPromotion) == null ? void 0 : r.template);
2128
2165
  if (typeof document < "u") {
2129
2166
  const o = document == null ? void 0 : document.createElement("div");
2130
2167
  o.classList.add("searchstax-external-promotion"), o.addEventListener("click", (d) => {
2131
2168
  this.trackClick(e, d);
2132
- }), o.innerHTML = P.render(l, e), c.appendChild(o);
2169
+ }), o.innerHTML = j.render(l, e), i.appendChild(o);
2133
2170
  }
2134
2171
  }
2135
2172
  }
@@ -2138,10 +2175,10 @@ class ga {
2138
2175
  }
2139
2176
  renderMainTemplate(e) {
2140
2177
  var t, s, a, r;
2141
- const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.template) || ((r = b.externalPromotions.mainTemplate) == null ? void 0 : r.template);
2178
+ const i = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.template) || ((r = b.externalPromotions.mainTemplate) == null ? void 0 : r.template);
2142
2179
  if (this.dataLayer.renderingEngine === W.mustache) {
2143
2180
  this.searchExternalPromotionsMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
2144
- P.render(c, e);
2181
+ j.render(i, e);
2145
2182
  const l = typeof document < "u" ? document == null ? void 0 : document.getElementById(
2146
2183
  this.externalPromotionsContainerId
2147
2184
  ) : null;
@@ -2151,7 +2188,7 @@ class ga {
2151
2188
  }
2152
2189
  }
2153
2190
  }
2154
- class te {
2191
+ class ee {
2155
2192
  static addAccessibilityNotificationContainerToBody() {
2156
2193
  if (!document.getElementById("searchAccessibilityContainer")) {
2157
2194
  const e = document.createElement("div");
@@ -2170,18 +2207,18 @@ class te {
2170
2207
  }, t ?? 100);
2171
2208
  }
2172
2209
  }
2173
- class pa {
2210
+ class ya {
2174
2211
  constructor(e, t) {
2175
- 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) => {
2212
+ 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, i, l) => {
2176
2213
  if (s.stopPropagation(), !a.disabled) {
2177
2214
  const o = r.querySelector("input");
2178
- let d = c ? o.checked : !o.checked;
2215
+ let d = i ? o.checked : !o.checked;
2179
2216
  l !== void 0 && (d = !l), o.checked = d;
2180
2217
  const f = this.dataLayer.searchObject;
2181
2218
  let g = [...f.facets];
2182
2219
  const m = this.extractFacetValue(a);
2183
- d ? g.find((S) => J.deepEqual(S, m) ? S : !1) || (this.config.facetingType === "tabs" && (g = g.filter((S) => S.name !== m.name)), g.push(m)) : g = g.filter(
2184
- (S) => !J.deepEqual(S, m)
2220
+ d ? g.find((C) => X.deepEqual(C, m) ? C : !1) || (this.config.facetingType === "tabs" && (g = g.filter((C) => C.name !== m.name)), g.push(m)) : g = g.filter(
2221
+ (C) => !X.deepEqual(C, m)
2185
2222
  ), setTimeout(() => {
2186
2223
  this.dataLayer.setSearchObject({ ...f, facets: g, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
2187
2224
  }, 0);
@@ -2228,13 +2265,13 @@ class pa {
2228
2265
  let t = this.dataLayer.searchFacets;
2229
2266
  this.needCache && this.dataLayer.searchFacetsCached && (t = this.dataLayer.searchFacetsCached, this.needDisabling && (t = t.map((a) => {
2230
2267
  var r;
2231
- const c = (r = this.dataLayer.searchFacets) == null ? void 0 : r.find(
2268
+ const i = (r = this.dataLayer.searchFacets) == null ? void 0 : r.find(
2232
2269
  (l) => l.name === a.name
2233
2270
  );
2234
- return c ? {
2271
+ return i ? {
2235
2272
  ...a,
2236
2273
  values: a.values.map((l) => {
2237
- const o = c.values.find((d) => l.type === "range" ? !1 : l.type === "checkbox" ? d.value === l.value : !1);
2274
+ const o = i.values.find((d) => l.type === "range" ? !1 : l.type === "checkbox" ? d.value === l.value : !1);
2238
2275
  return {
2239
2276
  ...l,
2240
2277
  disabled: !o,
@@ -2267,95 +2304,95 @@ class pa {
2267
2304
  }
2268
2305
  }
2269
2306
  createFacetItem(e, t, s) {
2270
- var a, r, c, l, o, d, f, g, m, S, O, k;
2307
+ var a, r, i, l, o, d, f, g, m, C, E, k;
2271
2308
  if (typeof document < "u") {
2272
2309
  const R = document == null ? void 0 : document.createElement("div");
2273
2310
  R.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || R.classList.add("active");
2274
- const E = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.facetItemContainerTemplate) == null ? void 0 : c.template) || ((l = b.facets.facetItemContainerTemplate) == null ? void 0 : l.template);
2275
- R.innerHTML = P.render(
2276
- E,
2311
+ const I = ((i = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.facetItemContainerTemplate) == null ? void 0 : i.template) || ((l = b.facets.facetItemContainerTemplate) == null ? void 0 : l.template);
2312
+ R.innerHTML = j.render(
2313
+ I,
2277
2314
  e
2278
2315
  ), t.appendChild(R);
2279
- const T = R.querySelector(
2316
+ const L = R.querySelector(
2280
2317
  "." + (((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.facetItemContainerTemplate) == null ? void 0 : f.facetListTitleContainerClass) || ((g = b.facets.facetItemContainerTemplate) == null ? void 0 : g.facetListTitleContainerClass))
2281
2318
  );
2282
- T == null || T.addEventListener("click", () => {
2319
+ L == null || L.addEventListener("click", () => {
2283
2320
  R.classList.toggle("active");
2284
2321
  });
2285
- const N = R.querySelector(
2286
- "." + (((O = (S = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : S.facetItemContainerTemplate) == null ? void 0 : O.facetListContainerClass) || ((k = b.facets.facetItemContainerTemplate) == null ? void 0 : k.facetListContainerClass))
2322
+ const $ = R.querySelector(
2323
+ "." + (((E = (C = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : C.facetItemContainerTemplate) == null ? void 0 : E.facetListContainerClass) || ((k = b.facets.facetItemContainerTemplate) == null ? void 0 : k.facetListContainerClass))
2287
2324
  );
2288
- N && (e.values.forEach((B) => {
2325
+ $ && (e.values.forEach((B) => {
2289
2326
  this.createFacetListItem(
2290
2327
  B,
2291
- N
2328
+ $
2292
2329
  );
2293
- }), e.hasMoreFacets && this.createHasMoreComponent(e, N, s));
2330
+ }), e.hasMoreFacets && this.createHasMoreComponent(e, $, s));
2294
2331
  }
2295
2332
  }
2296
2333
  isChecked(e) {
2297
2334
  var t;
2298
- return !!((t = this.dataLayer.searchObject.facets) != null && t.find((s) => J.deepEqual(s, this.extractFacetValue(e))));
2335
+ return !!((t = this.dataLayer.searchObject.facets) != null && t.find((s) => X.deepEqual(s, this.extractFacetValue(e))));
2299
2336
  }
2300
2337
  createFacetListItem(e, t) {
2301
- var s, a, r, c, l, o, d, f, g, m, S, O, k;
2338
+ var s, a, r, i, l, o, d, f, g, m, C, E, k;
2302
2339
  if (typeof document < "u") {
2303
2340
  const R = document == null ? void 0 : document.createElement("div");
2304
2341
  R.classList.add("searchstax-facet-value-container"), e.disabled && R.classList.add("searchstax-facet-value-disabled");
2305
- const E = this.isChecked(e), T = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.facetItemTemplate) == null ? void 0 : r.template) || ((c = b.facets.facetItemTemplate) == null ? void 0 : c.template);
2306
- R.innerHTML = P.render(
2307
- T,
2308
- { ...e, isChecked: E }
2342
+ 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) || ((i = b.facets.facetItemTemplate) == null ? void 0 : i.template);
2343
+ R.innerHTML = j.render(
2344
+ L,
2345
+ { ...e, isChecked: I }
2309
2346
  );
2310
- let N = (l = b.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
2311
- N = ((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.facetItemTemplate) == null ? void 0 : f.checkTriggerClasses) || N, N.forEach((B) => {
2347
+ let $ = (l = b.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
2348
+ $ = ((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.facetItemTemplate) == null ? void 0 : f.checkTriggerClasses) || $, $.forEach((B) => {
2312
2349
  var M;
2313
- (M = R.querySelector("." + B)) == null || M.addEventListener("click", (K) => {
2314
- this.onFacetSelect(K, e, R);
2350
+ (M = R.querySelector("." + B)) == null || M.addEventListener("click", (Q) => {
2351
+ this.onFacetSelect(Q, e, R);
2315
2352
  });
2316
2353
  }), (k = R.querySelector(
2317
- "." + (((S = (m = (g = this.config) == null ? void 0 : g.templates) == null ? void 0 : m.facetItemTemplate) == null ? void 0 : S.inputCheckboxClass) || ((O = b.facets.facetItemTemplate) == null ? void 0 : O.inputCheckboxClass))
2354
+ "." + (((C = (m = (g = this.config) == null ? void 0 : g.templates) == null ? void 0 : m.facetItemTemplate) == null ? void 0 : C.inputCheckboxClass) || ((E = b.facets.facetItemTemplate) == null ? void 0 : E.inputCheckboxClass))
2318
2355
  )) == null || k.addEventListener("click", (B) => {
2319
2356
  this.onFacetSelect(B, e, R, !0);
2320
2357
  }), t.appendChild(R);
2321
2358
  }
2322
2359
  }
2323
2360
  createHasMoreComponent(e, t, s) {
2324
- var a, r, c, l, o, d, f, g;
2361
+ var a, r, i, l, o, d, f, g;
2325
2362
  if (typeof document < "u") {
2326
2363
  const m = document == null ? void 0 : document.createElement("div");
2327
2364
  m.classList.add("searchstax-facet-show-more-container");
2328
- const S = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : c.template) || ((l = b.facets.showMoreButtonContainerTemplate) == null ? void 0 : l.template);
2329
- m.innerHTML = P.render(
2330
- S,
2365
+ const C = ((i = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : i.template) || ((l = b.facets.showMoreButtonContainerTemplate) == null ? void 0 : l.template);
2366
+ m.innerHTML = j.render(
2367
+ C,
2331
2368
  e
2332
2369
  );
2333
- const O = m.querySelector(
2370
+ const E = m.querySelector(
2334
2371
  "." + (((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.showMoreButtonContainerTemplate) == null ? void 0 : f.showMoreButtonClass) || ((g = b.facets.showMoreButtonContainerTemplate) == null ? void 0 : g.showMoreButtonClass))
2335
2372
  );
2336
- O && (this.attachOnclickToShowMore(e, O, s), t && t.appendChild(O));
2373
+ E && (this.attachOnclickToShowMore(e, E, s), t && t.appendChild(E));
2337
2374
  }
2338
2375
  }
2339
2376
  attachOnclickToShowMore(e, t, s) {
2340
2377
  t.addEventListener("click", (a) => {
2341
2378
  this.onShowMoreLessClick(a, e, s);
2342
- }), t.addEventListener("keydown", (a) => {
2379
+ }), t.addEventListener("keyup", (a) => {
2343
2380
  (a.code === "Space" || a.code === "Enter") && this.onShowMoreLessClick(a, e, s);
2344
2381
  });
2345
2382
  }
2346
2383
  onShowMoreLessClick(e, t, s) {
2347
2384
  e.preventDefault();
2348
2385
  const a = s ? this.facetPaginationStepMobile : this.facetPaginationStep, r = s ? this.facetLimits : this.facetLimitsMobile;
2349
- r[t.name] === void 0 ? r[t.name] = a * 2 : r[t.name] <= t.values.length ? (te.setAccessibilityText(`More Facets shown for ${t.label}`), r[t.name] = r[t.name] + a) : (te.setAccessibilityText(`Less Facets shown for ${t.label}`), r[t.name] = a), this.generateTemplateData(s), this.renderMainTemplate(this.generateTemplateData());
2386
+ r[t.name] === void 0 ? r[t.name] = a * 2 : r[t.name] <= t.values.length ? (ee.setAccessibilityText(`More Facets shown for ${t.label}`), r[t.name] = r[t.name] + a) : (ee.setAccessibilityText(`Less Facets shown for ${t.label}`), r[t.name] = a), this.generateTemplateData(s), this.renderMainTemplate(this.generateTemplateData());
2350
2387
  }
2351
2388
  renderMainTemplate(e, t) {
2352
- var s, a, r, c, l, o, d, f, g, m, S;
2353
- if (e && (!J.deepEqual(this.cachedData ?? {}, e) || t)) {
2389
+ var s, a, r, i, l, o, d, f, g, m, C;
2390
+ if (e && (!X.deepEqual(this.cachedData ?? {}, e) || t)) {
2354
2391
  this.cachedData = e;
2355
- const O = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.mainTemplateDesktop) == null ? void 0 : r.template) || ((c = b.facets.mainTemplateDesktop) == null ? void 0 : c.template);
2392
+ const E = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.mainTemplateDesktop) == null ? void 0 : r.template) || ((i = b.facets.mainTemplateDesktop) == null ? void 0 : i.template);
2356
2393
  if (this.dataLayer.renderingEngine === W.mustache && this.searchFacetsMainContainer) {
2357
- this.searchFacetsMainContainer.innerHTML = P.render(
2358
- O,
2394
+ this.searchFacetsMainContainer.innerHTML = j.render(
2395
+ E,
2359
2396
  {
2360
2397
  ...e
2361
2398
  }
@@ -2369,7 +2406,7 @@ class pa {
2369
2406
  this.createFacetItem(R, k);
2370
2407
  if (this.searchFacetsMainContainer) {
2371
2408
  const R = this.searchFacetsMainContainer.querySelector(
2372
- "." + (((S = (m = (g = this.config) == null ? void 0 : g.templates) == null ? void 0 : m.mainTemplateDesktop) == null ? void 0 : S.selectedFacetsContainerClass) || b.facets.mainTemplateDesktop.selectedFacetsContainerClass)
2409
+ "." + (((C = (m = (g = this.config) == null ? void 0 : g.templates) == null ? void 0 : m.mainTemplateDesktop) == null ? void 0 : C.selectedFacetsContainerClass) || b.facets.mainTemplateDesktop.selectedFacetsContainerClass)
2373
2410
  );
2374
2411
  R && (this.createSelectedFacetsComponents(R), this.createClearFacetsComponents(R));
2375
2412
  }
@@ -2384,7 +2421,7 @@ class pa {
2384
2421
  for (const s of t) {
2385
2422
  const a = decodeURIComponent(s.name), r = decodeURIComponent(s.value);
2386
2423
  if (this.dataLayer.searchFacets) {
2387
- const c = this.needCache ? this.dataLayer.searchFacetsCached : this.dataLayer.searchFacets, l = c == null ? void 0 : c.find(
2424
+ const i = this.needCache ? this.dataLayer.searchFacetsCached : this.dataLayer.searchFacets, l = i == null ? void 0 : i.find(
2388
2425
  (o) => o.name === a
2389
2426
  );
2390
2427
  if (l) {
@@ -2402,37 +2439,41 @@ class pa {
2402
2439
  });
2403
2440
  }
2404
2441
  createClearFacetsComponents(e) {
2405
- var t, s, a, r, c, l, o, d;
2442
+ var t, s, a, r, i, l, o, d;
2406
2443
  if (typeof document < "u") {
2407
2444
  const f = this.dataLayer.searchObject, g = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.clearFacetsTemplate) == null ? void 0 : a.template) || ((r = b.facets.clearFacetsTemplate) == null ? void 0 : r.template), m = document == null ? void 0 : document.createElement("div");
2408
- m.innerHTML = P.render(
2445
+ m.innerHTML = j.render(
2409
2446
  g,
2410
2447
  {
2411
2448
  shouldShow: f.facets.length > 0
2412
2449
  }
2413
2450
  );
2414
- const S = m.querySelector(
2415
- "." + (((o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.clearFacetsTemplate) == null ? void 0 : o.containerClass) || ((d = b.facets.clearFacetsTemplate) == null ? void 0 : d.containerClass))
2451
+ const C = m.querySelector(
2452
+ "." + (((o = (l = (i = this.config) == null ? void 0 : i.templates) == null ? void 0 : l.clearFacetsTemplate) == null ? void 0 : o.containerClass) || ((d = b.facets.clearFacetsTemplate) == null ? void 0 : d.containerClass))
2416
2453
  );
2417
- S && (S.addEventListener("click", () => {
2454
+ C && (C.addEventListener("click", () => {
2418
2455
  this.removeSelectedFacets();
2419
- }), e.appendChild(S));
2456
+ }), C.addEventListener("keyup", (E) => {
2457
+ (E.code === "Space" || E.code === "Enter") && this.removeSelectedFacets();
2458
+ }), e.appendChild(C));
2420
2459
  }
2421
2460
  }
2422
2461
  createSelectedFacetsComponent(e, t) {
2423
- var s, a, r, c, l, o, d, f;
2462
+ var s, a, r, i, l, o, d, f;
2424
2463
  if (typeof document < "u") {
2425
- const g = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.selectedFacetsTemplate) == null ? void 0 : r.template) || ((c = b.facets.selectedFacetsTemplate) == null ? void 0 : c.template), m = document == null ? void 0 : document.createElement("div");
2426
- m.innerHTML = P.render(
2464
+ const g = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.selectedFacetsTemplate) == null ? void 0 : r.template) || ((i = b.facets.selectedFacetsTemplate) == null ? void 0 : i.template), m = document == null ? void 0 : document.createElement("div");
2465
+ m.innerHTML = j.render(
2427
2466
  g,
2428
2467
  t
2429
2468
  );
2430
- const S = m.querySelector(
2469
+ const C = m.querySelector(
2431
2470
  "." + (((d = (o = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : o.selectedFacetsTemplate) == null ? void 0 : d.containerClass) || ((f = b.facets.selectedFacetsTemplate) == null ? void 0 : f.containerClass))
2432
2471
  );
2433
- S && (S.addEventListener("click", () => {
2472
+ C && (C.addEventListener("click", () => {
2434
2473
  this.unselectFacet(t);
2435
- }), e.appendChild(S));
2474
+ }), C.addEventListener("keyup", (E) => {
2475
+ (E.code === "Space" || E.code === "Enter") && this.unselectFacet(t);
2476
+ }), e.appendChild(C));
2436
2477
  }
2437
2478
  }
2438
2479
  unselectFacet(e) {
@@ -2449,72 +2490,78 @@ class pa {
2449
2490
  this.dataLayer.setSearchObject({ ...e, facets: [] });
2450
2491
  }
2451
2492
  createFilterByComponent(e) {
2452
- var t, s, a, r, c, l, o, d;
2493
+ var t, s, a, r, i, l, o, d;
2453
2494
  if (typeof document < "u") {
2454
2495
  const f = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.filterByTemplate) == null ? void 0 : a.template) || ((r = b.facets.filterByTemplate) == null ? void 0 : r.template), g = document == null ? void 0 : document.createElement("div");
2455
- g.innerHTML = P.render(
2496
+ g.innerHTML = j.render(
2456
2497
  f,
2457
2498
  {}
2458
2499
  );
2459
2500
  const m = g.querySelector(
2460
- "." + (((o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.filterByTemplate) == null ? void 0 : o.containerClass) || ((d = b.facets.filterByTemplate) == null ? void 0 : d.containerClass))
2501
+ "." + (((o = (l = (i = this.config) == null ? void 0 : i.templates) == null ? void 0 : l.filterByTemplate) == null ? void 0 : o.containerClass) || ((d = b.facets.filterByTemplate) == null ? void 0 : d.containerClass))
2461
2502
  );
2462
- m && (e.prepend(m), m.addEventListener("click", this.openOverlay.bind(this)));
2503
+ m && (e.prepend(m), m.addEventListener("click", this.openOverlay.bind(this)), m.addEventListener("keyup", (C) => {
2504
+ (C.code === "Space" || C.code === "Enter") && this.openOverlay();
2505
+ }));
2463
2506
  }
2464
2507
  }
2465
2508
  openOverlay() {
2466
2509
  var e;
2467
- this.overlayOpened = !0, this.searchFacetsMainContainer && (typeof document < "u" && document.body.classList.toggle("searchstax-no-scroll"), (e = this.searchFacetsMainContainer.querySelector(".searchstax-facets-mobile-overlay")) == null || e.classList.add("searchstax-show"));
2510
+ ee.setAccessibilityText("Facet overlay opened. Tab to select facets."), this.overlayOpened = !0, this.searchFacetsMainContainer && (typeof document < "u" && document.body.classList.toggle("searchstax-no-scroll"), (e = this.searchFacetsMainContainer.querySelector(".searchstax-facets-mobile-overlay")) == null || e.classList.add("searchstax-show"));
2468
2511
  }
2469
2512
  closeOverlay() {
2470
2513
  var e;
2471
- this.overlayOpened = !1, this.searchFacetsMainContainer && (typeof document < "u" && document.body.classList.toggle("searchstax-no-scroll"), (e = this.searchFacetsMainContainer.querySelector(".searchstax-facets-mobile-overlay")) == null || e.classList.remove("searchstax-show"));
2514
+ ee.setAccessibilityText("Facet overlay closed"), this.overlayOpened = !1, this.searchFacetsMainContainer && (typeof document < "u" && document.body.classList.toggle("searchstax-no-scroll"), (e = this.searchFacetsMainContainer.querySelector(".searchstax-facets-mobile-overlay")) == null || e.classList.remove("searchstax-show"));
2472
2515
  }
2473
2516
  renderMobileTemplate(e) {
2474
- var t, s, a, r, c, l, o, d, f, g, m, S, O, k, R, E, T, N, B;
2517
+ var t, s, a, r, i, l, o, d, f, g, m, C, E, k, R, I, L, $, B;
2475
2518
  if (e && typeof document < "u") {
2476
2519
  const M = document == null ? void 0 : document.createElement("div");
2477
2520
  M.classList.add("searchstax-facets-container-mobile");
2478
- const K = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplateMobile) == null ? void 0 : a.template) || ((r = b.facets.mainTemplateMobile) == null ? void 0 : r.template);
2521
+ const Q = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplateMobile) == null ? void 0 : a.template) || ((r = b.facets.mainTemplateMobile) == null ? void 0 : r.template);
2479
2522
  if (this.dataLayer.renderingEngine === W.mustache) {
2480
- if (M.innerHTML = P.render(K, {
2523
+ if (M.innerHTML = j.render(Q, {
2481
2524
  ...e,
2482
2525
  overlayOpened: this.overlayOpened
2483
- }), (c = this.searchFacetsMainContainer) == null || c.appendChild(M), (o = (l = this.config) == null ? void 0 : l.templates) != null && o.mainTemplateMobile)
2526
+ }), (i = this.searchFacetsMainContainer) == null || i.appendChild(M), (o = (l = this.config) == null ? void 0 : l.templates) != null && o.mainTemplateMobile)
2484
2527
  for (const _ of ((g = (f = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : f.mainTemplateMobile) == null ? void 0 : g.closeOverlayTriggerClasses) || []) {
2485
- const G = M.querySelector("." + _);
2486
- G && G.addEventListener("click", this.closeOverlay.bind(this));
2528
+ const Y = M.querySelector("." + _);
2529
+ Y && (Y.addEventListener("click", this.closeOverlay.bind(this)), Y.addEventListener("keyup", (G) => {
2530
+ (G.code === "Space" || G.code === "Enter") && this.closeOverlay();
2531
+ }));
2487
2532
  }
2488
2533
  else
2489
2534
  for (const _ of b.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
2490
- const G = M.querySelector("." + _);
2491
- G && G.addEventListener("click", this.closeOverlay.bind(this));
2535
+ const Y = M.querySelector("." + _);
2536
+ Y && (Y.addEventListener("click", this.closeOverlay.bind(this)), Y.addEventListener("keyup", (G) => {
2537
+ (G.code === "Space" || G.code === "Enter") && this.closeOverlay();
2538
+ }));
2492
2539
  }
2493
2540
  const v = M.querySelector(
2494
- "." + (((O = (S = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : S.mainTemplateMobile) == null ? void 0 : O.filterByContainerClass) || b.facets.mainTemplateMobile.filterByContainerClass)
2541
+ "." + (((E = (C = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : C.mainTemplateMobile) == null ? void 0 : E.filterByContainerClass) || b.facets.mainTemplateMobile.filterByContainerClass)
2495
2542
  );
2496
2543
  v && this.createFilterByComponent(v);
2497
2544
  const x = M.querySelector(
2498
- "." + (((E = (R = (k = this.config) == null ? void 0 : k.templates) == null ? void 0 : R.mainTemplateMobile) == null ? void 0 : E.selectedFacetsContainerClass) || b.facets.mainTemplateMobile.selectedFacetsContainerClass)
2545
+ "." + (((I = (R = (k = this.config) == null ? void 0 : k.templates) == null ? void 0 : R.mainTemplateMobile) == null ? void 0 : I.selectedFacetsContainerClass) || b.facets.mainTemplateMobile.selectedFacetsContainerClass)
2499
2546
  );
2500
2547
  x && (this.createSelectedFacetsComponents(x), this.createClearFacetsComponents(x));
2501
- const j = M.querySelector(
2502
- "." + (((B = (N = (T = this.config) == null ? void 0 : T.templates) == null ? void 0 : N.mainTemplateMobile) == null ? void 0 : B.facetsContainerClass) || b.facets.mainTemplateMobile.facetsContainerClass)
2548
+ const F = M.querySelector(
2549
+ "." + (((B = ($ = (L = this.config) == null ? void 0 : L.templates) == null ? void 0 : $.mainTemplateMobile) == null ? void 0 : B.facetsContainerClass) || b.facets.mainTemplateMobile.facetsContainerClass)
2503
2550
  );
2504
- if (j) {
2505
- j.innerHTML = "";
2551
+ if (F) {
2552
+ F.innerHTML = "";
2506
2553
  for (const _ of e.facets)
2507
- this.createFacetItem(_, j, !0);
2554
+ this.createFacetItem(_, F, !0);
2508
2555
  }
2509
2556
  }
2510
2557
  }
2511
2558
  }
2512
2559
  }
2513
- class ma {
2560
+ class xa {
2514
2561
  constructor(e) {
2515
2562
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "previousButtonClass"), h(this, "nextButtonClass"), h(this, "loadMoreButtonClass"), h(this, "routerHelper"), h(this, "searchPaginationMainContainer", null);
2516
- var t, s, a, r, c, l, o, d, f;
2517
- this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.routerHelper = e.routerHelper, this.previousButtonClass = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.previousButtonClass) ?? b.pagination.mainTemplate.previousButtonClass, this.nextButtonClass = ((l = (c = (r = this.config) == null ? void 0 : r.templates) == null ? void 0 : c.mainTemplate) == null ? void 0 : l.nextButtonClass) ?? b.pagination.mainTemplate.nextButtonClass, this.loadMoreButtonClass = ((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : f.loadMoreButtonClass) ?? b.pagination.infiniteScrollTemplate.loadMoreButtonClass, typeof document < "u" && (this.searchPaginationMainContainer = document == null ? void 0 : document.getElementById(
2563
+ var t, s, a, r, i, l, o, d, f;
2564
+ this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.routerHelper = e.routerHelper, this.previousButtonClass = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.previousButtonClass) ?? b.pagination.mainTemplate.previousButtonClass, this.nextButtonClass = ((l = (i = (r = this.config) == null ? void 0 : r.templates) == null ? void 0 : i.mainTemplate) == null ? void 0 : l.nextButtonClass) ?? b.pagination.mainTemplate.nextButtonClass, this.loadMoreButtonClass = ((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : f.loadMoreButtonClass) ?? b.pagination.infiniteScrollTemplate.loadMoreButtonClass, typeof document < "u" && (this.searchPaginationMainContainer = document == null ? void 0 : document.getElementById(
2518
2565
  this.containerId
2519
2566
  )), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
2520
2567
  }
@@ -2582,10 +2629,10 @@ class ma {
2582
2629
  }
2583
2630
  }
2584
2631
  renderMainTemplate(e) {
2585
- var t, s, a, r, c, l, o, d, f, g;
2632
+ var t, s, a, r, i, l, o, d, f, g;
2586
2633
  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));
2587
- let m = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : c.template) || ((l = b.pagination.mainTemplate) == null ? void 0 : l.template);
2588
- this.dataLayer.isInfiniteScroll && (m = ((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : f.template) || ((g = b.pagination.infiniteScrollTemplate) == null ? void 0 : g.template)), this.dataLayer.renderingEngine === W.mustache && (this.searchPaginationMainContainer.innerHTML = P.render(
2634
+ let m = ((i = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : i.template) || ((l = b.pagination.mainTemplate) == null ? void 0 : l.template);
2635
+ this.dataLayer.isInfiniteScroll && (m = ((f = (d = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : f.template) || ((g = b.pagination.infiniteScrollTemplate) == null ? void 0 : g.template)), this.dataLayer.renderingEngine === W.mustache && (this.searchPaginationMainContainer.innerHTML = j.render(
2589
2636
  m,
2590
2637
  e
2591
2638
  ), setTimeout(() => {
@@ -2593,7 +2640,7 @@ class ma {
2593
2640
  }, 0));
2594
2641
  }
2595
2642
  }
2596
- class fa {
2643
+ class ba {
2597
2644
  constructor(e) {
2598
2645
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "relatedSearchesContainerClass"), h(this, "searchRelatedSearchesMainContainer", null), h(this, "track");
2599
2646
  var t, s;
@@ -2613,16 +2660,16 @@ class fa {
2613
2660
  return this.dataLayer.setRelatedSearchesData(e), e;
2614
2661
  }
2615
2662
  addRelatedSearchComponent(e, t) {
2616
- var s, a, r, c, l;
2663
+ var s, a, r, i, l;
2617
2664
  if (typeof document < "u") {
2618
2665
  const o = document == null ? void 0 : document.createElement("div"), d = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.relatedSearch) == null ? void 0 : r.template) || b.relatedSearches.relatedSearch.template;
2619
2666
  if (this.dataLayer.renderingEngine === W.mustache) {
2620
- o.innerHTML = P.render(
2667
+ o.innerHTML = j.render(
2621
2668
  d,
2622
2669
  e
2623
2670
  );
2624
2671
  const f = o.querySelector(
2625
- "." + (((l = (c = this.config.templates) == null ? void 0 : c.relatedSearch) == null ? void 0 : l.relatedSearchContainerClass) || b.relatedSearches.relatedSearch.relatedSearchContainerClass)
2672
+ "." + (((l = (i = this.config.templates) == null ? void 0 : i.relatedSearch) == null ? void 0 : l.relatedSearchContainerClass) || b.relatedSearches.relatedSearch.relatedSearchContainerClass)
2626
2673
  );
2627
2674
  f && (t.appendChild(f), f.addEventListener("click", () => {
2628
2675
  this.executeSearch(e);
@@ -2638,10 +2685,10 @@ class fa {
2638
2685
  }
2639
2686
  renderMainTemplate(e) {
2640
2687
  var t, s, a, r;
2641
- const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || b.relatedSearches.main.template;
2688
+ const i = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || b.relatedSearches.main.template;
2642
2689
  if (this.dataLayer.renderingEngine === W.mustache && this.searchRelatedSearchesMainContainer) {
2643
2690
  this.searchRelatedSearchesMainContainer.innerHTML = "", this.searchRelatedSearchesMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
2644
- P.render(c, e);
2691
+ j.render(i, e);
2645
2692
  const l = (r = this.searchRelatedSearchesMainContainer) == null ? void 0 : r.querySelector(
2646
2693
  `.${this.relatedSearchesContainerClass}`
2647
2694
  );
@@ -2651,7 +2698,7 @@ class fa {
2651
2698
  }
2652
2699
  }
2653
2700
  }
2654
- class va {
2701
+ class Sa {
2655
2702
  constructor(e) {
2656
2703
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "searchFeedbackMainContainer", null), h(this, "searchTrigger"), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.searchTrigger = e.searchTrigger, typeof document < "u" && (this.searchFeedbackMainContainer = document == null ? void 0 : document.getElementById(
2657
2704
  this.containerId
@@ -2676,10 +2723,10 @@ class va {
2676
2723
  }
2677
2724
  attachClick() {
2678
2725
  var e, t, s, a, r;
2679
- const c = (r = this.searchFeedbackMainContainer) == null ? void 0 : r.querySelector(
2726
+ const i = (r = this.searchFeedbackMainContainer) == null ? void 0 : r.querySelector(
2680
2727
  "." + (((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.main) == null ? void 0 : s.originalQueryClass) || ((a = b.searchFeedback.main) == null ? void 0 : a.originalQueryClass))
2681
2728
  );
2682
- c && c.addEventListener(
2729
+ i && i.addEventListener(
2683
2730
  "click",
2684
2731
  this.onOriginalQueryClick.bind(this)
2685
2732
  );
@@ -2687,7 +2734,7 @@ class va {
2687
2734
  renderMainTemplate(e) {
2688
2735
  var t, s, a;
2689
2736
  const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || b.searchFeedback.main.template;
2690
- this.dataLayer.renderingEngine === W.mustache && (this.searchFeedbackMainContainer.innerHTML = P.render(
2737
+ this.dataLayer.renderingEngine === W.mustache && (this.searchFeedbackMainContainer.innerHTML = j.render(
2691
2738
  r,
2692
2739
  e
2693
2740
  ), setTimeout(() => {
@@ -2695,7 +2742,7 @@ class va {
2695
2742
  }, 0));
2696
2743
  }
2697
2744
  }
2698
- class ya {
2745
+ class Ca {
2699
2746
  constructor(e) {
2700
2747
  h(this, "dataLayer"), h(this, "config"), h(this, "suggestAfterMinChars"), h(this, "containerId"), h(this, "currentInputValue", ""), h(this, "autosuggestResults"), h(this, "searchInput"), h(this, "actionButton"), h(this, "autosuggestContainer"), h(this, "buttonState", "search"), h(this, "selectedAutosuggestItem", -1), h(this, "suggestTrigger"), h(this, "searchTrigger"), this.dataLayer = e.dataLayer, this.config = e.config, this.searchTrigger = e.searchTrigger, this.suggestTrigger = e.suggestTrigger, this.containerId = e.containerId, this.suggestAfterMinChars = e.config.suggestAfterMinChars, this.renderMainTemplate(), this.actionButtonInit(), this.updateActionButtonState("search"), this.searchInput && (this.createAutosuggestContainer(), this.attachSubscriptions());
2701
2748
  }
@@ -2705,9 +2752,9 @@ class ya {
2705
2752
  const r = document == null ? void 0 : document.getElementById(this.containerId);
2706
2753
  if (!r)
2707
2754
  throw new Error("Search input container not found");
2708
- const c = ((t = (e = this.config.templates) == null ? void 0 : e.mainTemplate) == null ? void 0 : t.template) || b.searchInput.mainTemplate.template;
2755
+ const i = ((t = (e = this.config.templates) == null ? void 0 : e.mainTemplate) == null ? void 0 : t.template) || b.searchInput.mainTemplate.template;
2709
2756
  if (this.dataLayer.renderingEngine === W.mustache) {
2710
- const d = P.render(c, {});
2757
+ const d = j.render(i, {});
2711
2758
  r.innerHTML = d;
2712
2759
  }
2713
2760
  const l = ((a = (s = this.config.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.searchInputId) || b.searchInput.mainTemplate.searchInputId, o = document == null ? void 0 : document.querySelector(`#${l}`);
@@ -2760,10 +2807,10 @@ class ya {
2760
2807
  this.actionButton.classList.add("searchstax-spinner-icon");
2761
2808
  break;
2762
2809
  case "search":
2763
- this.actionButton.classList.add("searchstax-search-icon");
2810
+ this.actionButton.classList.add("searchstax-search-icon"), this.actionButton.setAttribute("aria-label", "search");
2764
2811
  break;
2765
2812
  case "close":
2766
- this.actionButton.classList.add("searchstax-search-close");
2813
+ this.actionButton.classList.add("searchstax-search-close"), this.actionButton.setAttribute("aria-label", "clear search");
2767
2814
  break;
2768
2815
  }
2769
2816
  }
@@ -2783,7 +2830,7 @@ class ya {
2783
2830
  );
2784
2831
  for (let t = 0; t < e.length; t++) {
2785
2832
  const s = e[t];
2786
- t === this.selectedAutosuggestItem ? (s.classList.add("active"), te.setAccessibilityText(`Selected suggestion: ${s.innerText}`)) : s.classList.remove("active");
2833
+ t === this.selectedAutosuggestItem ? (s.classList.add("active"), ee.setAccessibilityText(`Selected suggestion: ${s.innerText}`)) : s.classList.remove("active");
2787
2834
  }
2788
2835
  }
2789
2836
  }
@@ -2816,7 +2863,7 @@ class ya {
2816
2863
  }, 200);
2817
2864
  }
2818
2865
  cleanSuggestionTerm(e) {
2819
- return Z.removeXSSRiskyTags(
2866
+ return te.removeXSSRiskyTags(
2820
2867
  e.replace(/(<([^>]+)>)/gi, "")
2821
2868
  ).trim();
2822
2869
  }
@@ -2831,8 +2878,8 @@ class ya {
2831
2878
  }), r.addEventListener("mouseenter", () => {
2832
2879
  this.onSuggestionEnter(e);
2833
2880
  });
2834
- const c = ((s = (t = this.config.templates) == null ? void 0 : t.autosuggestItemTemplate) == null ? void 0 : s.template) || ((a = b.searchInput.autosuggestItemTemplate) == null ? void 0 : a.template);
2835
- return r.innerHTML = P.render(c, e), r;
2881
+ const i = ((s = (t = this.config.templates) == null ? void 0 : t.autosuggestItemTemplate) == null ? void 0 : s.template) || ((a = b.searchInput.autosuggestItemTemplate) == null ? void 0 : a.template);
2882
+ return r.innerHTML = j.render(i, e), r;
2836
2883
  }
2837
2884
  onSuggestionEnter(e) {
2838
2885
  var t;
@@ -2846,20 +2893,18 @@ class ya {
2846
2893
  for (const a in s)
2847
2894
  if (Object.prototype.hasOwnProperty.call(s, a)) {
2848
2895
  const r = s[a];
2849
- r.numFound ? te.setAccessibilityText("Suggestions are available. Use up and down arrows to navigate while focusing input.", 2e3) : te.setAccessibilityText("", 0), this.autosuggestResults = r, this.dataLayer.setAutosuggestResults(r), r.numFound > 0 ? r.suggestions.forEach((c) => {
2896
+ r.numFound ? ee.setAccessibilityText("Suggestions are available. Use up and down arrows to navigate while focusing input.", 2e3) : ee.setAccessibilityText("", 0), this.autosuggestResults = r, this.dataLayer.setAutosuggestResults(r), r.numFound > 0 ? r.suggestions.forEach((i) => {
2850
2897
  this.autosuggestContainer && typeof document < "u" && this.autosuggestContainer.appendChild(
2851
- this.createAutosuggestItem(c)
2898
+ this.createAutosuggestItem(i)
2852
2899
  );
2853
2900
  }) : this.autosuggestContainer && this.autosuggestContainer.classList.add("hidden");
2854
2901
  }
2855
2902
  }
2856
2903
  }
2857
2904
  }
2858
- class xa {
2905
+ class La {
2859
2906
  constructor(e) {
2860
- h(this, "dataLayer"), h(this, "config"), h(this, "linkClickCallback"), h(this, "searchCallback"), h(this, "containerId"), h(this, "searchResultsMainContainer"), h(this, "searchResultsContainer"), h(this, "searchResultLinks", []), this.linkClickCallback = e.linkClickCallback, this.searchCallback = e.searchTrigger, this.dataLayer = e.dataLayer, this.config = e.config, setTimeout(() => {
2861
- this.dataLayer.setSearchObject({ ...this.dataLayer.searchObject, itemsPerPage: this.config.resultsPerPage || 10 });
2862
- }, 0), this.containerId = e.containerId;
2907
+ h(this, "dataLayer"), h(this, "config"), h(this, "linkClickCallback"), h(this, "searchCallback"), h(this, "containerId"), h(this, "searchResultsMainContainer"), h(this, "searchResultsContainer"), h(this, "searchResultLinks", []), this.linkClickCallback = e.linkClickCallback, this.searchCallback = e.searchTrigger, this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId;
2863
2908
  const t = document == null ? void 0 : document.getElementById(this.containerId);
2864
2909
  if (t)
2865
2910
  this.searchResultsMainContainer = t;
@@ -2871,7 +2916,7 @@ class xa {
2871
2916
  }
2872
2917
  initializeSubscriptions() {
2873
2918
  this.dataLayer.$searchObject.subscribe(() => {
2874
- te.setAccessibilityText("Searching...");
2919
+ ee.setAccessibilityText("Searching...");
2875
2920
  }), this.dataLayer.$searchResults.subscribe((e) => {
2876
2921
  e && this.searchResultsContainer && this.renderResults(e);
2877
2922
  });
@@ -2881,9 +2926,9 @@ class xa {
2881
2926
  }
2882
2927
  renderNoResultsTemplate() {
2883
2928
  var e, t, s, a, r;
2884
- const c = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.noSearchResultTemplate) == null ? void 0 : s.template) || ((a = b.searchResults.noSearchResultTemplate) == null ? void 0 : a.template), l = ((r = this.dataLayer.searchResultsMetadata) == null ? void 0 : r.spellingSuggestion) ?? "";
2885
- if (this.dataLayer.renderingEngine === W.mustache && this.searchResultsContainer && (this.searchResultsContainer.innerHTML = P.render(
2886
- c,
2929
+ const i = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.noSearchResultTemplate) == null ? void 0 : s.template) || ((a = b.searchResults.noSearchResultTemplate) == null ? void 0 : a.template), l = ((r = this.dataLayer.searchResultsMetadata) == null ? void 0 : r.spellingSuggestion) ?? "";
2930
+ if (this.dataLayer.renderingEngine === W.mustache && this.searchResultsContainer && (this.searchResultsContainer.innerHTML = j.render(
2931
+ i,
2887
2932
  {
2888
2933
  spellingSuggestion: l,
2889
2934
  ...this.dataLayer.parsedData.data,
@@ -2897,14 +2942,14 @@ class xa {
2897
2942
  }
2898
2943
  }
2899
2944
  renderResults(e) {
2900
- var t, s, a, r, c;
2945
+ var t, s, a, r, i;
2901
2946
  if (this.dataLayer.renderingEngine === W.mustache && this.searchResultsContainer)
2902
2947
  if (this.removeLinkClickEvents(), e.length === 0)
2903
- te.setAccessibilityText("Search has no results"), this.renderNoResultsTemplate();
2948
+ ee.setAccessibilityText("Search has no results"), this.renderNoResultsTemplate();
2904
2949
  else {
2905
- te.setAccessibilityText(`Showing ${this.dataLayer.parsedData.startResultIndex} through ${this.dataLayer.parsedData.endResultIndex} results from ${this.dataLayer.parsedData.totalResults}. Press tab to navigate through results`);
2906
- const l = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.searchResultTemplate) == null ? void 0 : a.template) || ((r = b.searchResults.searchResultTemplate) == null ? void 0 : r.template), o = e.map((d) => P.render(l, d));
2907
- ((c = this.config) == null ? void 0 : c.renderMethod) === "infiniteScroll" && this.dataLayer.searchObject.page > 1 ? this.searchResultsContainer.innerHTML += o.join("") : this.searchResultsContainer.innerHTML = o.join(""), this.searchResultLinks = Array.from(
2950
+ ee.setAccessibilityText(`Showing ${this.dataLayer.parsedData.startResultIndex} through ${this.dataLayer.parsedData.endResultIndex} results from ${this.dataLayer.parsedData.totalResults}. Press tab to navigate through results`);
2951
+ const l = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.searchResultTemplate) == null ? void 0 : a.template) || ((r = b.searchResults.searchResultTemplate) == null ? void 0 : r.template), o = e.map((d) => j.render(l, d));
2952
+ ((i = this.config) == null ? void 0 : i.renderMethod) === "infiniteScroll" && this.dataLayer.searchObject.page > 1 ? this.searchResultsContainer.innerHTML += o.join("") : this.searchResultsContainer.innerHTML = o.join(""), this.searchResultLinks = Array.from(
2908
2953
  this.searchResultsContainer.querySelectorAll(
2909
2954
  `[${this.uniqueIdAttribute}]`
2910
2955
  )
@@ -2939,20 +2984,20 @@ class xa {
2939
2984
  renderMainTemplate() {
2940
2985
  var e, t, s, a;
2941
2986
  const r = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : s.template) || ((a = b.searchResults.mainTemplate) == null ? void 0 : a.template);
2942
- this.dataLayer.renderingEngine === W.mustache && (this.searchResultsMainContainer.innerHTML = P.render(
2987
+ this.dataLayer.renderingEngine === W.mustache && (this.searchResultsMainContainer.innerHTML = j.render(
2943
2988
  r,
2944
2989
  {}
2945
2990
  ), setTimeout(() => {
2946
- var c, l, o, d, f, g, m;
2947
- const S = (o = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.mainTemplate) != null && o.searchResultsContainerId ? (g = (f = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : f.mainTemplate) == null ? void 0 : g.searchResultsContainerId : (m = b.searchResults.mainTemplate) == null ? void 0 : m.searchResultsContainerId, O = document == null ? void 0 : document.getElementById(S);
2948
- if (O)
2949
- this.searchResultsContainer = O;
2991
+ var i, l, o, d, f, g, m;
2992
+ const C = (o = (l = (i = this.config) == null ? void 0 : i.templates) == null ? void 0 : l.mainTemplate) != null && o.searchResultsContainerId ? (g = (f = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : f.mainTemplate) == null ? void 0 : g.searchResultsContainerId : (m = b.searchResults.mainTemplate) == null ? void 0 : m.searchResultsContainerId, E = document == null ? void 0 : document.getElementById(C);
2993
+ if (E)
2994
+ this.searchResultsContainer = E;
2950
2995
  else
2951
- throw new Error(`Search Results Container with id ${S} not found`);
2996
+ throw new Error(`Search Results Container with id ${C} not found`);
2952
2997
  }, 0));
2953
2998
  }
2954
2999
  }
2955
- class ba {
3000
+ class Ta {
2956
3001
  constructor(e) {
2957
3002
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "selectId"), h(this, "searchSortingMainContainer", null);
2958
3003
  var t, s;
@@ -2990,20 +3035,20 @@ class ba {
2990
3035
  var t, s, a;
2991
3036
  const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || b.sorting.main.template;
2992
3037
  if (this.dataLayer.renderingEngine === W.mustache) {
2993
- this.searchSortingMainContainer.innerHTML = P.render(
3038
+ this.searchSortingMainContainer.innerHTML = j.render(
2994
3039
  r,
2995
3040
  e
2996
3041
  ), this.markOptionSelected();
2997
- const c = document == null ? void 0 : document.getElementById(
3042
+ const i = document == null ? void 0 : document.getElementById(
2998
3043
  this.selectId
2999
3044
  );
3000
- c && c.addEventListener("change", (l) => {
3045
+ i && i.addEventListener("change", (l) => {
3001
3046
  this.setOrderQuery(l.target.value);
3002
3047
  });
3003
3048
  }
3004
3049
  }
3005
3050
  }
3006
- class Ca {
3051
+ class ka {
3007
3052
  constructor(e) {
3008
3053
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "answerContainer", null), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, typeof document < "u" && (this.answerContainer = document == null ? void 0 : document.getElementById(this.containerId)), this.initializeSubscriptions(), this.dataLayer.setIsAnswerWidgetCreated(!0);
3009
3054
  }
@@ -3017,13 +3062,13 @@ class Ca {
3017
3062
  renderMainTemplate(e) {
3018
3063
  var t, s, a;
3019
3064
  const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || b.answer.main.template;
3020
- this.dataLayer.renderingEngine === W.mustache && (this.answerContainer.innerHTML = P.render(
3065
+ this.dataLayer.renderingEngine === W.mustache && (this.answerContainer.innerHTML = j.render(
3021
3066
  r,
3022
3067
  e
3023
3068
  ));
3024
3069
  }
3025
3070
  }
3026
- class Sa {
3071
+ class Ra {
3027
3072
  constructor(e = W.mustache) {
3028
3073
  h(this, "routerEnabled", !1), h(this, "cachedQuery", ""), h(this, "routerHelper"), h(this, "searchHelper"), h(this, "searchResultsConfig"), h(this, "searchPaginationConfig"), h(this, "searchFeedbackConfig"), h(this, "searchSortingConfig"), h(this, "searchFacetsConfig"), h(this, "relatedSearchesConfig"), h(this, "externalPromotionsConfig"), h(this, "searchInputWidget"), h(this, "searchResultsWidget"), h(this, "searchFacetsWidget"), h(this, "searchPaginationWidget"), h(this, "searchFeedbackWidget"), h(this, "searchSortingWidget"), h(this, "relatedSearchesWidget"), h(this, "externalPromotionsWidget"), h(this, "answerWidget"), h(this, "dataLayer"), h(this, "firstRequest", !0), h(this, "renderEngine", W.mustache), e && (this.renderEngine = e);
3029
3074
  }
@@ -3041,7 +3086,7 @@ class Sa {
3041
3086
  this.parseAnswerResultsResponse.bind(this)
3042
3087
  )));
3043
3088
  }), this.dataLayer.$searchResults.subscribe((s) => {
3044
- s && this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled && ie.trackSearch({
3089
+ s && this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled && ce.trackSearch({
3045
3090
  ...this.dataLayer.parsedData.trackingData,
3046
3091
  impressions: this.dataLayer.searchResultsMetadata.impressions
3047
3092
  });
@@ -3056,11 +3101,11 @@ class Sa {
3056
3101
  }
3057
3102
  initialize(e) {
3058
3103
  var t, s;
3059
- if (this.dataLayer = new qt("searchstax_session_id", e.sessionId), this.renderEngine && this.dataLayer.setRenderingEngine(this.renderEngine), this.handleHooks(), e.analyticsBaseUrl && typeof window < "u" && (window.analyticsBaseUrl = e.analyticsBaseUrl, window._msq = e._msq || [], this.attachAnalyticsScript(e.analyticsSrc)), e.turnAIAnswerGenerationOn === !0 && (this.dataLayer.turnAIAnswerGenerationOn = !0), e.autoCorrect === !1 && (this.dataLayer.autoCorrect = !1), e.language && this.dataLayer.setLanguage(e.language), this.dataLayer.searchstaxConfig || (this.dataLayer.setSearchstaxConfig(e), this.searchHelper = new Ht(
3104
+ if (this.dataLayer = new Wt("searchstax_session_id", e.sessionId), this.renderEngine && this.dataLayer.setRenderingEngine(this.renderEngine), this.handleHooks(), e.analyticsBaseUrl && typeof window < "u" && (window.analyticsBaseUrl = e.analyticsBaseUrl, window._msq = e._msq || [], this.attachAnalyticsScript(e.analyticsSrc)), e.turnAIAnswerGenerationOn === !0 && (this.dataLayer.turnAIAnswerGenerationOn = !0), e.autoCorrect === !1 && (this.dataLayer.autoCorrect = !1), e.language && this.dataLayer.setLanguage(e.language), this.dataLayer.searchstaxConfig || (this.dataLayer.setSearchstaxConfig(e), this.searchHelper = new Ut(
3060
3105
  { ...e, sessionId: this.dataLayer.sessionId },
3061
3106
  this.dataLayer
3062
3107
  )), ((t = e.router) == null ? void 0 : t.enabled) === void 0 || ((s = e.router) == null ? void 0 : s.enabled) === !0) {
3063
- this.routerEnabled = !0, this.routerHelper = new rt(
3108
+ this.routerEnabled = !0, this.routerHelper = new nt(
3064
3109
  e.router ? e.router : { enabled: !0 }
3065
3110
  );
3066
3111
  const a = this.routerHelper.urlToSearchObject(
@@ -3075,7 +3120,7 @@ class Sa {
3075
3120
  );
3076
3121
  });
3077
3122
  } else
3078
- this.routerHelper = new rt({});
3123
+ this.routerHelper = new nt({});
3079
3124
  }
3080
3125
  search(e) {
3081
3126
  if (this.searchHelper) {
@@ -3098,13 +3143,13 @@ class Sa {
3098
3143
  }
3099
3144
  parseRelatedSearchesResponse(e) {
3100
3145
  var t;
3101
- const s = (((t = e.response) == null ? void 0 : t.docs) ?? []).map((r, c) => ({ ...r, position: c + 1 })), a = [];
3146
+ const s = (((t = e.response) == null ? void 0 : t.docs) ?? []).map((r, i) => ({ ...r, position: i + 1 })), a = [];
3102
3147
  for (const r of s)
3103
3148
  a.push({
3104
3149
  relatedSearch: r.related_search,
3105
3150
  position: r.position
3106
3151
  });
3107
- this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled && ie.trackRelatedSearches({
3152
+ this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled && ce.trackRelatedSearches({
3108
3153
  ...this.dataLayer.parsedData.trackingData,
3109
3154
  impressions: a
3110
3155
  }), this.dataLayer.setSearchRelatedSearches(s);
@@ -3117,14 +3162,14 @@ class Sa {
3117
3162
  }
3118
3163
  parseSearchResultsResponse(e) {
3119
3164
  var t, s;
3120
- this.handleRouter();
3121
- let a = de.combineResultsWithMetadata(e), r = de.extractFacets(e);
3165
+ this.handleRouter(), this.dataLayer.setItemsPerPage(parseInt(e.responseHeader.params.rows));
3166
+ let a = me.combineResultsWithMetadata(e), r = me.extractFacets(e);
3122
3167
  this.dataLayer.setSearchFacets(r), (s = (t = this.dataLayer.searchstaxConfig) == null ? void 0 : t.hooks) != null && s.afterSearch && (a = this.dataLayer.searchstaxConfig.hooks.afterSearch(a)), this.dataLayer.setSearchExternalPromotions(e.externalLinks ?? []);
3123
- const c = de.extractSearchResultsMetadata(e);
3124
- this.dataLayer.setSearchResultsMetadata(c), this.dataLayer.setSearchResults(a);
3168
+ const i = me.extractSearchResultsMetadata(e);
3169
+ this.dataLayer.setSearchResultsMetadata(i), this.dataLayer.setSearchResults(a);
3125
3170
  }
3126
3171
  parseAnswerResultsResponse(e) {
3127
- this.handleRouter(), e !== re.question && e !== re.notQuestion && this.dataLayer.setAnswerData(this.dataLayer.getAnswerData + e);
3172
+ this.handleRouter(), e !== ne.question && e !== ne.notQuestion && this.dataLayer.setAnswerData(this.dataLayer.getAnswerData + e);
3128
3173
  }
3129
3174
  cacheFacets() {
3130
3175
  var e;
@@ -3146,7 +3191,7 @@ class Sa {
3146
3191
  this.searchHelper && this.dataLayer.setLanguage(e);
3147
3192
  }
3148
3193
  addSearchInputWidget(e, t) {
3149
- this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new ya({
3194
+ this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new Ca({
3150
3195
  containerId: e,
3151
3196
  config: t,
3152
3197
  searchTrigger: this.executeSearch.bind(this),
@@ -3155,14 +3200,14 @@ class Sa {
3155
3200
  }));
3156
3201
  }
3157
3202
  addAnswerWidget(e, t) {
3158
- this.dataLayer.setAnswerData(""), this.answerWidget = new Ca({
3203
+ this.dataLayer.setAnswerData(""), this.answerWidget = new ka({
3159
3204
  containerId: e,
3160
3205
  config: t,
3161
3206
  dataLayer: this.dataLayer
3162
3207
  });
3163
3208
  }
3164
3209
  addSearchResultsWidget(e, t) {
3165
- this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new xa({
3210
+ this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new La({
3166
3211
  containerId: e,
3167
3212
  linkClickCallback: this.executeLinkClick.bind(this),
3168
3213
  searchTrigger: this.executeSearch.bind(this),
@@ -3171,7 +3216,7 @@ class Sa {
3171
3216
  }));
3172
3217
  }
3173
3218
  addPaginationWidget(e, t) {
3174
- this.searchPaginationConfig = t, this.searchPaginationWidget = new ma({
3219
+ this.searchPaginationConfig = t, this.searchPaginationWidget = new xa({
3175
3220
  containerId: e,
3176
3221
  config: t,
3177
3222
  dataLayer: this.dataLayer,
@@ -3179,22 +3224,22 @@ class Sa {
3179
3224
  });
3180
3225
  }
3181
3226
  addSearchFeedbackWidget(e, t) {
3182
- this.searchFeedbackConfig || (this.searchFeedbackConfig = t, this.searchFeedbackWidget = new va({
3227
+ this.searchFeedbackConfig = t, this.searchFeedbackWidget = new Sa({
3183
3228
  containerId: e,
3184
3229
  config: t,
3185
3230
  dataLayer: this.dataLayer,
3186
3231
  searchTrigger: this.executeSearch.bind(this)
3187
- }));
3232
+ });
3188
3233
  }
3189
3234
  addSearchSortingWidget(e, t) {
3190
- this.searchSortingConfig || (this.searchSortingConfig = t, this.searchSortingWidget = new ba({
3235
+ this.searchSortingConfig = t, this.searchSortingWidget = new Ta({
3191
3236
  containerId: e,
3192
3237
  config: t,
3193
3238
  dataLayer: this.dataLayer
3194
- }));
3239
+ });
3195
3240
  }
3196
3241
  addRelatedSearchesWidget(e, t) {
3197
- this.relatedSearchesConfig || (this.relatedSearchesConfig = t, this.relatedSearchesWidget = new fa({
3242
+ this.relatedSearchesConfig || (this.relatedSearchesConfig = t, this.relatedSearchesWidget = new ba({
3198
3243
  containerId: e,
3199
3244
  config: t,
3200
3245
  dataLayer: this.dataLayer,
@@ -3204,14 +3249,14 @@ class Sa {
3204
3249
  }, 0));
3205
3250
  }
3206
3251
  addExternalPromotionsWidget(e, t) {
3207
- this.externalPromotionsConfig || (this.externalPromotionsConfig = t, this.externalPromotionsWidget = new ga({
3252
+ this.externalPromotionsConfig = t, this.externalPromotionsWidget = new va({
3208
3253
  containerId: e,
3209
3254
  config: t,
3210
3255
  dataLayer: this.dataLayer
3211
- }));
3256
+ });
3212
3257
  }
3213
3258
  addFacetsWidget(e, t) {
3214
- this.searchFacetsConfig = t, this.searchFacetsWidget = new pa(
3259
+ this.searchFacetsConfig = t, this.searchFacetsWidget = new ya(
3215
3260
  {
3216
3261
  containerId: e,
3217
3262
  config: t,
@@ -3224,9 +3269,9 @@ class Sa {
3224
3269
  executeSearch(e, t) {
3225
3270
  var s, a;
3226
3271
  const r = { ...this.dataLayer.searchObject };
3227
- r.query = Z.removeXSSRiskyTags(e), r.page = 1, r.facets = [], this.dataLayer.forceNotCorrect = !!t;
3228
- let c = (s = this.routerHelper) == null ? void 0 : s.searchObjectToParams(r);
3229
- c && (c = (a = this.routerHelper) == null ? void 0 : a.extractParamsThatDoNotStartWithRouteName(c)), c && (r.additionalProps = Object.keys(c).map((l) => c ? { key: l, value: c[l] } : { key: "", value: "" })), this.dataLayer.setSearchObject(r), this.dataLayer.lastSearchValue = r.query;
3272
+ r.query = te.removeXSSRiskyTags(e), r.page = 1, r.facets = [], this.dataLayer.forceNotCorrect = !!t;
3273
+ let i = (s = this.routerHelper) == null ? void 0 : s.searchObjectToParams(r);
3274
+ i && (i = (a = this.routerHelper) == null ? void 0 : a.extractParamsThatDoNotStartWithRouteName(i)), i && (r.additionalProps = Object.keys(i).map((l) => i ? { key: l, value: i[l] } : { key: "", value: "" })), this.dataLayer.setSearchObject(r), this.dataLayer.lastSearchValue = r.query;
3230
3275
  }
3231
3276
  executeSuggest(e) {
3232
3277
  var t, s;
@@ -3234,18 +3279,18 @@ class Sa {
3234
3279
  (s = (t = this.dataLayer.searchInputConfig) == null ? void 0 : t.hooks) != null && s.beforeAutosuggest && (a = this.dataLayer.searchInputConfig.hooks.beforeAutosuggest(a)), a && a.term !== void 0 && a.queryParams !== void 0 && this.suggest(a.term, a.queryParams);
3235
3280
  }
3236
3281
  trackRelatedSearchClick(e) {
3237
- this.dataLayer.searchResultsMetadata && this.dataLayer.searchRelatedSearches && !this.dataLayer.cookiesDisabled && ie.trackRelatedSearchClick({
3282
+ this.dataLayer.searchResultsMetadata && this.dataLayer.searchRelatedSearches && !this.dataLayer.cookiesDisabled && ce.trackRelatedSearchClick({
3238
3283
  ...this.dataLayer.parsedData.trackingData,
3239
3284
  relatedSearch: e
3240
3285
  });
3241
3286
  }
3242
3287
  executeLinkClick(e) {
3243
3288
  var t, s;
3244
- let a = de.findResultByUniqueId(
3289
+ let a = me.findResultByUniqueId(
3245
3290
  e,
3246
3291
  this.dataLayer.searchResults ?? []
3247
3292
  );
3248
- a && ((s = (t = this.searchResultsConfig) == null ? void 0 : t.hooks) != null && s.afterLinkClick && (a = this.searchResultsConfig.hooks.afterLinkClick(a)), a && this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled && ie.trackClick({
3293
+ a && ((s = (t = this.searchResultsConfig) == null ? void 0 : t.hooks) != null && s.afterLinkClick && (a = this.searchResultsConfig.hooks.afterLinkClick(a)), a && this.dataLayer.searchResultsMetadata && !this.dataLayer.cookiesDisabled && ce.trackClick({
3249
3294
  result: a,
3250
3295
  ...this.dataLayer.parsedData.trackingData
3251
3296
  }).then(() => {
@@ -3265,23 +3310,23 @@ class Sa {
3265
3310
  this.searchResultsConfig && (this.searchResultsConfig.templates = (t = this.searchResultsConfig) != null && t.templates ? { ...(s = this.searchResultsConfig) == null ? void 0 : s.templates, ...e } : e, (a = this.searchResultsWidget) == null || a.changeTemplate());
3266
3311
  }
3267
3312
  }
3268
- const C = {
3313
+ const S = {
3269
3314
  //@ts-ignore
3270
- searchstax: new Sa("react")
3315
+ searchstax: new Ra("react")
3271
3316
  };
3272
- function Ta(i) {
3317
+ function Ea(n) {
3273
3318
  let e = !1;
3274
3319
  const [t, s] = q([]);
3275
- ee(() => {
3276
- if (a(), C.searchstax) {
3320
+ ae(() => {
3321
+ if (a(), S.searchstax) {
3277
3322
  const o = {};
3278
- i.afterAutosuggest && (o.afterAutosuggest = i.afterAutosuggest), i.beforeAutosuggest && (o.beforeAutosuggest = i.beforeAutosuggest), C.searchstax.addSearchInputWidget("searchstax-input-container", {
3279
- suggestAfterMinChars: i.suggestAfterMinChars ?? 3,
3323
+ n.afterAutosuggest && (o.afterAutosuggest = n.afterAutosuggest), n.beforeAutosuggest && (o.beforeAutosuggest = n.beforeAutosuggest), S.searchstax.addSearchInputWidget("searchstax-input-container", {
3324
+ suggestAfterMinChars: n.suggestAfterMinChars ?? 3,
3280
3325
  hooks: o,
3281
3326
  templates: {
3282
3327
  mainTemplate: {
3283
3328
  template: "",
3284
- searchInputId: i.searchInputId ?? "searchstax-search-input"
3329
+ searchInputId: n.searchInputId ?? "searchstax-search-input"
3285
3330
  }
3286
3331
  }
3287
3332
  });
@@ -3289,24 +3334,24 @@ function Ta(i) {
3289
3334
  throw Error("Searchstax instance needs to be passed via props");
3290
3335
  }, []);
3291
3336
  function a() {
3292
- e || (C.searchstax.dataLayer.$autosuggestResults.subscribe((o) => {
3337
+ e || (S.searchstax.dataLayer.$autosuggestResults.subscribe((o) => {
3293
3338
  s((o == null ? void 0 : o.suggestions) ?? []);
3294
3339
  }), e = !0);
3295
3340
  }
3296
3341
  function r() {
3297
3342
  var o, d;
3298
- (o = C.searchstax.searchInputWidget) == null || o.resetAutosuggestSelection(), (d = C.searchstax.searchInputWidget) == null || d.markActiveAutosuggestItem();
3343
+ (o = S.searchstax.searchInputWidget) == null || o.resetAutosuggestSelection(), (d = S.searchstax.searchInputWidget) == null || d.markActiveAutosuggestItem();
3299
3344
  }
3300
- function c(o) {
3345
+ function i(o) {
3301
3346
  var d;
3302
- (d = C.searchstax.searchInputWidget) == null || d.onSuggestionEnter(o);
3347
+ (d = S.searchstax.searchInputWidget) == null || d.onSuggestionEnter(o);
3303
3348
  }
3304
3349
  function l() {
3305
3350
  var o;
3306
- (o = C.searchstax.searchInputWidget) == null || o.suggestionChosen();
3351
+ (o = S.searchstax.searchInputWidget) == null || o.suggestionChosen();
3307
3352
  }
3308
3353
  return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsx("div", { id: "searchstax-input-container", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-search-input-container", children: [
3309
- !i.inputTemplate && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-search-input-wrapper", children: [
3354
+ !n.inputTemplate && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-search-input-wrapper", children: [
3310
3355
  /* @__PURE__ */ u.jsx(
3311
3356
  "input",
3312
3357
  {
@@ -3330,7 +3375,7 @@ function Ta(i) {
3330
3375
  tabIndex: 0,
3331
3376
  dangerouslySetInnerHTML: { __html: o.term },
3332
3377
  onMouseOver: () => {
3333
- c(o);
3378
+ i(o);
3334
3379
  },
3335
3380
  onClick: () => {
3336
3381
  l();
@@ -3342,75 +3387,74 @@ function Ta(i) {
3342
3387
  ),
3343
3388
  /* @__PURE__ */ u.jsx("button", { className: "searchstax-spinner-icon", id: "searchstax-search-input-action-button", "aria-label": "search" })
3344
3389
  ] }),
3345
- i.inputTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.inputTemplate(t, r, c, l) })
3390
+ n.inputTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.inputTemplate(t, r, i, l) })
3346
3391
  ] }) }) });
3347
3392
  }
3348
- function ka(i) {
3393
+ function Ia(n) {
3349
3394
  const [e, t] = q(!1);
3350
- return ee(() => {
3395
+ return ae(() => {
3351
3396
  const s = {};
3352
- i.beforeSearch && (s.beforeSearch = i.beforeSearch), i != null && i.afterSearch && (s.afterSearch = i.afterSearch), C.searchstax.initialize({
3353
- language: i.language ?? "en",
3354
- sessionId: i.sessionId,
3355
- searchURL: i.searchURL,
3356
- suggesterURL: i.suggesterURL,
3357
- trackApiKey: i.trackApiKey,
3358
- searchAuth: i.searchAuth,
3359
- authType: i.authType ?? "basic",
3360
- autoCorrect: i.autoCorrect,
3361
- router: i.router,
3397
+ n.beforeSearch && (s.beforeSearch = n.beforeSearch), n != null && n.afterSearch && (s.afterSearch = n.afterSearch), S.searchstax.initialize({
3398
+ language: n.language ?? "en",
3399
+ sessionId: n.sessionId,
3400
+ searchURL: n.searchURL,
3401
+ suggesterURL: n.suggesterURL,
3402
+ trackApiKey: n.trackApiKey,
3403
+ searchAuth: n.searchAuth,
3404
+ authType: n.authType ?? "basic",
3405
+ autoCorrect: n.autoCorrect,
3406
+ router: n.router,
3362
3407
  hooks: s,
3363
- analyticsBaseUrl: i.analyticsBaseUrl,
3364
- analyticsSrc: i.analyticsSrc
3408
+ analyticsBaseUrl: n.analyticsBaseUrl,
3409
+ analyticsSrc: n.analyticsSrc
3365
3410
  }), setTimeout(() => {
3366
3411
  t(!0);
3367
- }, 100), i.initialized(C.searchstax);
3368
- }, [i.initialized]), /* @__PURE__ */ u.jsx(u.Fragment, { children: e && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
3412
+ }, 100), n.initialized(S.searchstax);
3413
+ }, [n.initialized]), /* @__PURE__ */ u.jsx(u.Fragment, { children: e && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
3369
3414
  " ",
3370
- i.children,
3415
+ n.children,
3371
3416
  " "
3372
3417
  ] }) });
3373
3418
  }
3374
- function Ra(i) {
3419
+ function Pa(n) {
3375
3420
  const [e, t] = q(
3376
3421
  null
3377
- ), s = Ot();
3422
+ ), s = $t();
3378
3423
  s.current = e;
3379
- const [a, r] = q(""), [c, l] = q(
3424
+ const [a, r] = q(""), [i, l] = q(
3380
3425
  null
3381
3426
  ), o = (g, m) => {
3382
- m.preventDefault(), m.stopPropagation(), C.searchstax.executeLinkClick(g.uniqueId);
3427
+ m.preventDefault(), m.stopPropagation(), S.searchstax.executeLinkClick(g.uniqueId);
3383
3428
  };
3384
- ee(() => {
3429
+ ae(() => {
3385
3430
  f();
3386
3431
  const g = {};
3387
- i.afterLinkClick && (g.afterLinkClick = i.afterLinkClick), C.searchstax.addSearchResultsWidget("searchstax-results-container", {
3432
+ n.afterLinkClick && (g.afterLinkClick = n.afterLinkClick), S.searchstax.addSearchResultsWidget("searchstax-results-container", {
3388
3433
  templates: {},
3389
- resultsPerPage: i.resultsPerPage ?? 10,
3390
- renderMethod: i.renderMethod ?? "pagination",
3434
+ renderMethod: n.renderMethod ?? "pagination",
3391
3435
  hooks: g
3392
3436
  });
3393
3437
  }, []);
3394
3438
  function d(g) {
3395
- C.searchstax.executeSearch(g);
3439
+ S.searchstax.executeSearch(g);
3396
3440
  }
3397
3441
  function f() {
3398
- C.searchstax.dataLayer.$searchResults.subscribe(
3442
+ S.searchstax.dataLayer.$searchResults.subscribe(
3399
3443
  (g) => {
3400
3444
  var k;
3401
- const m = s.current ?? [], S = g ?? [], O = i.renderMethod === "infiniteScroll" ? [...m, ...S] : g;
3402
- ((k = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : k.page) === 1 ? t(S) : t(O);
3445
+ const m = s.current ?? [], C = g ?? [], E = n.renderMethod === "infiniteScroll" ? [...m, ...C] : g;
3446
+ ((k = S.searchstax.dataLayer.$searchObject.value) == null ? void 0 : k.page) === 1 ? t(C) : t(E);
3403
3447
  }
3404
- ), C.searchstax.dataLayer.$searchTermChange.subscribe((g) => {
3448
+ ), S.searchstax.dataLayer.$searchTermChange.subscribe((g) => {
3405
3449
  r(g);
3406
- }), C.searchstax.dataLayer.$searchResultsMetadata.subscribe(
3450
+ }), S.searchstax.dataLayer.$searchResultsMetadata.subscribe(
3407
3451
  (g) => {
3408
3452
  l(g);
3409
3453
  }
3410
3454
  );
3411
3455
  }
3412
3456
  return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsx("div", { id: "searchstax-results-container", children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-results-container", children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-result-container", children: [
3413
- e && e.length === 0 && a !== "" && a !== "*" && C.searchstax.dataLayer.parsedData.firstSearchHappened && !i.noResultTemplate && /* @__PURE__ */ u.jsxs("div", { children: [
3457
+ e && e.length === 0 && a !== "" && a !== "*" && S.searchstax.dataLayer.parsedData.firstSearchHappened && !n.noResultTemplate && /* @__PURE__ */ u.jsxs("div", { children: [
3414
3458
  /* @__PURE__ */ u.jsxs("div", { className: "searchstax-no-results", children: [
3415
3459
  " ",
3416
3460
  "Showing ",
@@ -3423,7 +3467,7 @@ function Ra(i) {
3423
3467
  '"'
3424
3468
  ] }),
3425
3469
  /* @__PURE__ */ u.jsx("br", {}),
3426
- (c == null ? void 0 : c.spellingSuggestion) && /* @__PURE__ */ u.jsxs("span", { children: [
3470
+ (i == null ? void 0 : i.spellingSuggestion) && /* @__PURE__ */ u.jsxs("span", { children: [
3427
3471
  " Did you mean",
3428
3472
  " ",
3429
3473
  /* @__PURE__ */ u.jsx(
@@ -3432,9 +3476,9 @@ function Ra(i) {
3432
3476
  href: "#",
3433
3477
  className: "searchstax-suggestion-term",
3434
3478
  onClick: () => {
3435
- d(c == null ? void 0 : c.spellingSuggestion);
3479
+ d(i == null ? void 0 : i.spellingSuggestion);
3436
3480
  },
3437
- children: c == null ? void 0 : c.spellingSuggestion
3481
+ children: i == null ? void 0 : i.spellingSuggestion
3438
3482
  }
3439
3483
  ),
3440
3484
  "?"
@@ -3449,8 +3493,8 @@ function Ra(i) {
3449
3493
  /* @__PURE__ */ u.jsx("li", { children: "Lost? Click on the ‘X” in the Search Box to reset your search." })
3450
3494
  ] })
3451
3495
  ] }),
3452
- e && e.length === 0 && a !== "" && a !== "*" && C.searchstax.dataLayer.parsedData.firstSearchHappened && i.noResultTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.noResultTemplate(a, c, d) }),
3453
- e && e.length > 0 && !i.resultsTemplate && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-results", children: e !== null && e.map(function(g) {
3496
+ e && e.length === 0 && a !== "" && a !== "*" && S.searchstax.dataLayer.parsedData.firstSearchHappened && n.noResultTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.noResultTemplate(a, i, d) }),
3497
+ e && e.length > 0 && !n.resultsTemplate && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-results", children: e !== null && e.map(function(g) {
3454
3498
  return /* @__PURE__ */ u.jsx(
3455
3499
  "a",
3456
3500
  {
@@ -3470,7 +3514,7 @@ function Ra(i) {
3470
3514
  className: `searchstax-search-result ${g.thumbnail ? "has-thumbnail" : ""}`,
3471
3515
  children: [
3472
3516
  g.promoted && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-promoted" }),
3473
- g.ribbon && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-ribbon", children: g.ribbon }),
3517
+ g.ribbon && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-ribbon", dangerouslySetInnerHTML: { __html: g.ribbon } }),
3474
3518
  g.thumbnail && /* @__PURE__ */ u.jsx(
3475
3519
  "img",
3476
3520
  {
@@ -3478,9 +3522,9 @@ function Ra(i) {
3478
3522
  className: "searchstax-thumbnail"
3479
3523
  }
3480
3524
  ),
3481
- /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-title-container", children: /* @__PURE__ */ u.jsx("span", { className: "searchstax-search-result-title", children: g.title }) }),
3482
- g.paths && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", children: g.paths }),
3483
- g.description && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-description searchstax-search-result-common", children: g.description }),
3525
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-title-container", children: /* @__PURE__ */ u.jsx("span", { className: "searchstax-search-result-title", dangerouslySetInnerHTML: { __html: g.title ?? "" } }) }),
3526
+ g.paths && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", dangerouslySetInnerHTML: { __html: g.paths } }),
3527
+ g.description && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-description searchstax-search-result-common", dangerouslySetInnerHTML: { __html: g.description } }),
3484
3528
  g.unmappedFields.map(function(m) {
3485
3529
  return /* @__PURE__ */ u.jsxs("div", { children: [
3486
3530
  m.isImage && typeof m.value == "string" && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-image-container", children: /* @__PURE__ */ u.jsx(
@@ -3490,7 +3534,7 @@ function Ra(i) {
3490
3534
  className: "searchstax-result-image"
3491
3535
  }
3492
3536
  ) }),
3493
- !m.isImage && /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", children: m.value }) })
3537
+ !m.isImage && /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", dangerouslySetInnerHTML: { __html: m.value } }) })
3494
3538
  ] }, m.key);
3495
3539
  })
3496
3540
  ]
@@ -3501,52 +3545,52 @@ function Ra(i) {
3501
3545
  g.uniqueId
3502
3546
  );
3503
3547
  }) }),
3504
- e && e.length > 0 && i.resultsTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.resultsTemplate(e, o) })
3548
+ e && e.length > 0 && n.resultsTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.resultsTemplate(e, o) })
3505
3549
  ] }) }) }) });
3506
3550
  }
3507
- function wa(i) {
3551
+ function ja(n) {
3508
3552
  let e = !1;
3509
3553
  const [t, s] = q(!1), [a, r] = q(
3510
3554
  null
3511
- ), [c] = q(Math.random());
3512
- ee(() => {
3513
- if (l(), C.searchstax)
3514
- C.searchstax.addPaginationWidget(
3515
- "searchstax-pagination-container" + c,
3555
+ ), [i] = q(Math.random());
3556
+ ae(() => {
3557
+ if (l(), S.searchstax)
3558
+ S.searchstax.addPaginationWidget(
3559
+ "searchstax-pagination-container" + i,
3516
3560
  {}
3517
3561
  );
3518
3562
  else
3519
3563
  throw Error("Searchstax instance needs to be passed via props");
3520
3564
  }, []);
3521
3565
  function l() {
3522
- e || (C.searchstax.dataLayer.$searchObject.subscribe(() => {
3566
+ e || (S.searchstax.dataLayer.$searchObject.subscribe(() => {
3523
3567
  o();
3524
- }), C.searchstax.dataLayer.$paginationData.subscribe(
3568
+ }), S.searchstax.dataLayer.$paginationData.subscribe(
3525
3569
  (g) => {
3526
3570
  r(g);
3527
3571
  }
3528
3572
  ), e = !0);
3529
3573
  }
3530
3574
  function o() {
3531
- !t && C.searchstax.routerHelper && (s(!0), C.searchstax.addPaginationWidget(
3532
- "searchstax-pagination-container" + c,
3575
+ !t && S.searchstax.routerHelper && (s(!0), S.searchstax.addPaginationWidget(
3576
+ "searchstax-pagination-container" + i,
3533
3577
  {}
3534
3578
  ));
3535
3579
  }
3536
3580
  function d(g) {
3537
3581
  var m;
3538
- (m = C.searchstax.searchPaginationWidget) == null || m.nextPage(
3582
+ (m = S.searchstax.searchPaginationWidget) == null || m.nextPage(
3539
3583
  g
3540
3584
  );
3541
3585
  }
3542
3586
  function f(g) {
3543
3587
  var m;
3544
- (m = C.searchstax.searchPaginationWidget) == null || m.previousPage(
3588
+ (m = S.searchstax.searchPaginationWidget) == null || m.previousPage(
3545
3589
  g
3546
3590
  );
3547
3591
  }
3548
- return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-pagination-container" + c, children: [
3549
- !i.paginationTemplate && a && !a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && /* @__PURE__ */ u.jsx("div", { className: "searchstax-pagination-container", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-pagination-content", children: [
3592
+ return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-pagination-container" + i, children: [
3593
+ !n.paginationTemplate && a && !a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && /* @__PURE__ */ u.jsx("div", { className: "searchstax-pagination-container", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-pagination-content", children: [
3550
3594
  /* @__PURE__ */ u.jsxs(
3551
3595
  "a",
3552
3596
  {
@@ -3594,8 +3638,8 @@ function wa(i) {
3594
3638
  }
3595
3639
  )
3596
3640
  ] }) }),
3597
- i.paginationTemplate && a && !a.isInfiniteScroll && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.paginationTemplate(a, d, f) }),
3598
- !i.infiniteScrollTemplate && a && a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && !(a != null && a.isLastPage) && /* @__PURE__ */ u.jsx("div", { className: "searchstax-pagination-container", children: /* @__PURE__ */ u.jsx(
3641
+ n.paginationTemplate && a && !a.isInfiniteScroll && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.paginationTemplate(a, d, f) }),
3642
+ !n.infiniteScrollTemplate && a && a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && !(a != null && a.isLastPage) && /* @__PURE__ */ u.jsx("div", { className: "searchstax-pagination-container", children: /* @__PURE__ */ u.jsx(
3599
3643
  "a",
3600
3644
  {
3601
3645
  className: "searchstax-pagination-load-more",
@@ -3609,29 +3653,29 @@ function wa(i) {
3609
3653
  children: "Show More"
3610
3654
  }
3611
3655
  ) }),
3612
- i.infiniteScrollTemplate && a && a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && !(a != null && a.isLastPage) && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.infiniteScrollTemplate(a, d) })
3656
+ n.infiniteScrollTemplate && a && a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && !(a != null && a.isLastPage) && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.infiniteScrollTemplate(a, d) })
3613
3657
  ] }) });
3614
3658
  }
3615
- function Ea(i) {
3659
+ function Fa(n) {
3616
3660
  let e = !1;
3617
3661
  const [t, s] = q(
3618
3662
  null
3619
- ), [a, r] = q(""), [c] = q(Math.random());
3620
- ee(() => {
3621
- if (l(), C.searchstax)
3622
- C.searchstax.addSearchSortingWidget(
3623
- "search-sorting-container" + c,
3663
+ ), [a, r] = q(""), [i] = q(Math.random());
3664
+ ae(() => {
3665
+ if (l(), S.searchstax)
3666
+ S.searchstax.addSearchSortingWidget(
3667
+ "search-sorting-container" + i,
3624
3668
  {}
3625
3669
  );
3626
3670
  else
3627
3671
  throw Error("Searchstax instance needs to be passed via props");
3628
3672
  }, []);
3629
3673
  function l() {
3630
- e || (C.searchstax.dataLayer.$searchSortingData.subscribe(
3674
+ e || (S.searchstax.dataLayer.$searchSortingData.subscribe(
3631
3675
  (d) => {
3632
3676
  s(d);
3633
3677
  }
3634
- ), C.searchstax.dataLayer.$searchObject.subscribe(
3678
+ ), S.searchstax.dataLayer.$searchObject.subscribe(
3635
3679
  (d) => {
3636
3680
  r(decodeURIComponent((d == null ? void 0 : d.order) ?? ""));
3637
3681
  }
@@ -3639,10 +3683,10 @@ function Ea(i) {
3639
3683
  }
3640
3684
  function o(d) {
3641
3685
  var f;
3642
- (f = C.searchstax.searchSortingWidget) == null || f.setOrderQuery(d);
3686
+ (f = S.searchstax.searchSortingWidget) == null || f.setOrderQuery(d);
3643
3687
  }
3644
- return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "search-sorting-container" + c, children: [
3645
- !i.searchSortingTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasResultsOrExternalPromotions) && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-sorting-container", children: [
3688
+ return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "search-sorting-container" + i, children: [
3689
+ !n.searchSortingTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasResultsOrExternalPromotions) && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-sorting-container", children: [
3646
3690
  /* @__PURE__ */ u.jsx("label", { className: "searchstax-sorting-label", htmlFor: "searchstax-search-order-select", children: "Sort By" }),
3647
3691
  /* @__PURE__ */ u.jsx(
3648
3692
  "select",
@@ -3659,35 +3703,35 @@ function Ea(i) {
3659
3703
  }
3660
3704
  )
3661
3705
  ] }),
3662
- i.searchSortingTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchSortingTemplate(
3706
+ n.searchSortingTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.searchSortingTemplate(
3663
3707
  t,
3664
3708
  o,
3665
3709
  a
3666
3710
  ) })
3667
3711
  ] }) });
3668
3712
  }
3669
- function Ia(i) {
3713
+ function Oa(n) {
3670
3714
  let e = !1;
3671
3715
  const [t, s] = q(null), [a] = q(Math.random());
3672
- ee(() => {
3673
- if (r(), C.searchstax)
3674
- C.searchstax.addSearchFeedbackWidget("search-feedback-container" + a, {});
3716
+ ae(() => {
3717
+ if (r(), S.searchstax)
3718
+ S.searchstax.addSearchFeedbackWidget("search-feedback-container" + a, {});
3675
3719
  else
3676
3720
  throw Error("Searchstax instance needs to be passed via props");
3677
3721
  }, []);
3678
3722
  function r() {
3679
- e || (C.searchstax.dataLayer.$searchFeedbackData.subscribe(
3723
+ e || (S.searchstax.dataLayer.$searchFeedbackData.subscribe(
3680
3724
  (l) => {
3681
3725
  s(l);
3682
3726
  }
3683
3727
  ), e = !0);
3684
3728
  }
3685
- function c(l) {
3729
+ function i(l) {
3686
3730
  var o;
3687
- (o = C.searchstax.searchFeedbackWidget) == null || o.onOriginalQueryClick(l);
3731
+ (o = S.searchstax.searchFeedbackWidget) == null || o.onOriginalQueryClick(l);
3688
3732
  }
3689
3733
  return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { className: "search-feedback-container", id: "search-feedback-container" + a, children: [
3690
- !i.searchOverviewTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.totalResults) > 0 && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
3734
+ !n.searchOverviewTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.totalResults) > 0 && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
3691
3735
  "Showing",
3692
3736
  " ",
3693
3737
  /* @__PURE__ */ u.jsxs("b", { children: [
@@ -3717,7 +3761,7 @@ function Ia(i) {
3717
3761
  {
3718
3762
  href: "#",
3719
3763
  onClick: (l) => {
3720
- c(l);
3764
+ i(l);
3721
3765
  },
3722
3766
  className: "searchstax-feedback-original-query",
3723
3767
  children: t.originalQuery
@@ -3725,51 +3769,51 @@ function Ia(i) {
3725
3769
  )
3726
3770
  ] }) })
3727
3771
  ] }),
3728
- i.searchOverviewTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchOverviewTemplate(t, c) })
3772
+ n.searchOverviewTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.searchOverviewTemplate(t, i) })
3729
3773
  ] }) });
3730
3774
  }
3731
- function Pa(i) {
3775
+ function Aa(n) {
3732
3776
  const [e, t] = q(
3733
3777
  null
3734
3778
  ), [s, a] = q(
3735
3779
  null
3736
- ), [r, c] = q(
3780
+ ), [r, i] = q(
3737
3781
  []
3738
3782
  ), [l, o] = q(
3739
3783
  {}
3740
3784
  ), d = {}, f = Math.random();
3741
3785
  let g = !1;
3742
- ee(() => {
3743
- if (m(), C.searchstax)
3744
- C.searchstax.addFacetsWidget("searchstax-facets-container" + f, {
3745
- facetingType: i.facetingType,
3746
- specificFacets: i.specificFacets,
3747
- itemsPerPageDesktop: i.itemsPerPageDesktop,
3748
- itemsPerPageMobile: i.itemsPerPageMobile
3786
+ ae(() => {
3787
+ if (m(), S.searchstax)
3788
+ S.searchstax.addFacetsWidget("searchstax-facets-container" + f, {
3789
+ facetingType: n.facetingType,
3790
+ specificFacets: n.specificFacets,
3791
+ itemsPerPageDesktop: n.itemsPerPageDesktop,
3792
+ itemsPerPageMobile: n.itemsPerPageMobile
3749
3793
  });
3750
3794
  else
3751
3795
  throw Error("Searchstax instance needs to be passed via props");
3752
3796
  }, []);
3753
3797
  function m() {
3754
- g || (C.searchstax.dataLayer.$facetsTemplateData.subscribe(
3798
+ g || (S.searchstax.dataLayer.$facetsTemplateData.subscribe(
3755
3799
  (v) => {
3756
3800
  v != null && v.isMobile ? a(v) : t(v);
3757
3801
  }
3758
- ), C.searchstax.dataLayer.$selectedFacetsTemplateData.subscribe(
3802
+ ), S.searchstax.dataLayer.$selectedFacetsTemplateData.subscribe(
3759
3803
  (v) => {
3760
- c(
3761
- (v ?? []).filter((j) => j.type === "checkbox")
3804
+ i(
3805
+ (v ?? []).filter((F) => F.type === "checkbox")
3762
3806
  );
3763
3807
  }
3764
3808
  ), g = !0);
3765
3809
  }
3766
- function S(v) {
3810
+ function C(v) {
3767
3811
  var x;
3768
- (x = C.searchstax.searchFacetsWidget) == null || x.unselectFacet(v);
3812
+ (x = S.searchstax.searchFacetsWidget) == null || x.unselectFacet(v);
3769
3813
  }
3770
- function O() {
3814
+ function E() {
3771
3815
  var v;
3772
- (v = C.searchstax.searchFacetsWidget) == null || v.removeSelectedFacets();
3816
+ (v = S.searchstax.searchFacetsWidget) == null || v.removeSelectedFacets();
3773
3817
  }
3774
3818
  function k(v) {
3775
3819
  return !l[v];
@@ -3777,32 +3821,32 @@ function Pa(i) {
3777
3821
  function R(v) {
3778
3822
  k(v) ? o({ ...l, [v]: !0 }) : o({ ...l, [v]: !1 });
3779
3823
  }
3780
- function E(v) {
3824
+ function I(v) {
3781
3825
  var x;
3782
- return (x = C.searchstax.searchFacetsWidget) == null ? void 0 : x.isChecked(v);
3826
+ return (x = S.searchstax.searchFacetsWidget) == null ? void 0 : x.isChecked(v);
3783
3827
  }
3784
- function T(v, x, j, _, G) {
3785
- var Y;
3786
- const me = G ? "mobile-" : "desktop-", Q = document.getElementsByClassName(me + v);
3787
- Q[0] && ((Y = C.searchstax.searchFacetsWidget) == null || Y.onFacetSelect(
3828
+ function L(v, x, F, _, Y) {
3829
+ var Z;
3830
+ const G = Y ? "mobile-" : "desktop-", z = document.getElementsByClassName(G + v);
3831
+ z[0] && ((Z = S.searchstax.searchFacetsWidget) == null || Z.onFacetSelect(
3788
3832
  x,
3789
- j,
3790
- Q[0],
3833
+ F,
3834
+ z[0],
3791
3835
  !1,
3792
- E(j)
3836
+ I(F)
3793
3837
  ));
3794
3838
  }
3795
- function N(v, x) {
3796
- var j;
3797
- (j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
3839
+ function $(v, x) {
3840
+ var F;
3841
+ (F = S.searchstax.searchFacetsWidget) == null || F.onShowMoreLessClick(
3798
3842
  v,
3799
3843
  x,
3800
3844
  !1
3801
3845
  );
3802
3846
  }
3803
3847
  function B(v, x) {
3804
- var j;
3805
- (j = C.searchstax.searchFacetsWidget) == null || j.onShowMoreLessClick(
3848
+ var F;
3849
+ (F = S.searchstax.searchFacetsWidget) == null || F.onShowMoreLessClick(
3806
3850
  v,
3807
3851
  x,
3808
3852
  !0
@@ -3810,14 +3854,14 @@ function Pa(i) {
3810
3854
  }
3811
3855
  function M() {
3812
3856
  var v;
3813
- (v = C.searchstax.searchFacetsWidget) == null || v.openOverlay();
3857
+ (v = S.searchstax.searchFacetsWidget) == null || v.openOverlay();
3814
3858
  }
3815
- function K() {
3859
+ function Q() {
3816
3860
  var v;
3817
- (v = C.searchstax.searchFacetsWidget) == null || v.closeOverlay();
3861
+ (v = S.searchstax.searchFacetsWidget) == null || v.closeOverlay();
3818
3862
  }
3819
3863
  return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-facets-container" + f, children: [
3820
- (e == null ? void 0 : e.hasResultsOrExternalPromotions) && !i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-desktop", children: e == null ? void 0 : e.facets.map((v) => /* @__PURE__ */ u.jsx(
3864
+ (e == null ? void 0 : e.hasResultsOrExternalPromotions) && !n.facetsTemplateDesktop && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-desktop", children: e == null ? void 0 : e.facets.map((v) => /* @__PURE__ */ u.jsx(
3821
3865
  "div",
3822
3866
  {
3823
3867
  className: `searchstax-facet-container ${k(v.name) ? "active" : ""}`,
@@ -3842,28 +3886,28 @@ function Pa(i) {
3842
3886
  /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
3843
3887
  v.values.map(
3844
3888
  //@ts-ignore
3845
- (x, j) => (d[j + v.name] = tt(), /* @__PURE__ */ u.jsxs(
3889
+ (x, F) => (d[F + v.name] = st(), /* @__PURE__ */ u.jsxs(
3846
3890
  "div",
3847
3891
  {
3848
3892
  className: `searchstax-facet-value-container ${x.disabled ? "searchstax-facet-value-disabled" : ""}`,
3849
- ref: d[j + v.name],
3893
+ ref: d[F + v.name],
3850
3894
  children: [
3851
3895
  /* @__PURE__ */ u.jsx(
3852
3896
  "div",
3853
3897
  {
3854
- className: "searchstax-facet-input desktop-" + j + v.name,
3898
+ className: "searchstax-facet-input desktop-" + F + v.name,
3855
3899
  children: /* @__PURE__ */ u.jsx(
3856
3900
  "input",
3857
3901
  {
3858
3902
  type: "checkbox",
3859
3903
  className: "searchstax-facet-input-checkbox",
3860
- checked: E(x),
3904
+ checked: I(x),
3861
3905
  "aria-label": x.value + " " + x.count,
3862
3906
  readOnly: !0,
3863
3907
  disabled: x.disabled,
3864
3908
  onClick: (_) => {
3865
- T(
3866
- j + v.name,
3909
+ L(
3910
+ F + v.name,
3867
3911
  _,
3868
3912
  x
3869
3913
  );
@@ -3877,8 +3921,8 @@ function Pa(i) {
3877
3921
  {
3878
3922
  className: "searchstax-facet-value-label",
3879
3923
  onClick: (_) => {
3880
- T(
3881
- j + v.name,
3924
+ L(
3925
+ F + v.name,
3882
3926
  _,
3883
3927
  x
3884
3928
  );
@@ -3891,8 +3935,8 @@ function Pa(i) {
3891
3935
  {
3892
3936
  className: "searchstax-facet-value-count",
3893
3937
  onClick: (_) => {
3894
- T(
3895
- j + v.name,
3938
+ L(
3939
+ F + v.name,
3896
3940
  _,
3897
3941
  x
3898
3942
  );
@@ -3914,10 +3958,10 @@ function Pa(i) {
3914
3958
  {
3915
3959
  className: "searchstax-facet-show-more-container",
3916
3960
  onClick: (x) => {
3917
- N(x, v);
3961
+ $(x, v);
3918
3962
  },
3919
3963
  onKeyDown: (x) => {
3920
- (x.key === "Enter" || x.key === " ") && N(x, v);
3964
+ (x.key === "Enter" || x.key === " ") && $(x, v);
3921
3965
  },
3922
3966
  children: [
3923
3967
  v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
@@ -3930,16 +3974,16 @@ function Pa(i) {
3930
3974
  },
3931
3975
  v.name + "desktop"
3932
3976
  )) }),
3933
- i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateDesktop(
3977
+ n.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.facetsTemplateDesktop(
3934
3978
  e,
3935
3979
  d,
3936
3980
  k,
3937
3981
  R,
3938
- T,
3939
- E,
3940
- N
3982
+ L,
3983
+ I,
3984
+ $
3941
3985
  ) }),
3942
- (s == null ? void 0 : s.hasResultsOrExternalPromotions) && !i.facetsTemplateMobile && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pills-container", children: [
3986
+ (s == null ? void 0 : s.hasResultsOrExternalPromotions) && !n.facetsTemplateMobile && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pills-container", children: [
3943
3987
  /* @__PURE__ */ u.jsx(
3944
3988
  "div",
3945
3989
  {
@@ -3956,7 +4000,7 @@ function Pa(i) {
3956
4000
  {
3957
4001
  className: "searchstax-facets-pill searchstax-facets-pill-facets",
3958
4002
  onClick: () => {
3959
- S(v);
4003
+ C(v);
3960
4004
  },
3961
4005
  children: [
3962
4006
  /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pill-label", children: [
@@ -3975,7 +4019,7 @@ function Pa(i) {
3975
4019
  {
3976
4020
  className: "searchstax-facets-pill searchstax-clear-filters searchstax-facets-pill-clear-all",
3977
4021
  onClick: () => {
3978
- O();
4022
+ E();
3979
4023
  },
3980
4024
  children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-label", children: "Clear Filters" })
3981
4025
  }
@@ -3994,7 +4038,7 @@ function Pa(i) {
3994
4038
  {
3995
4039
  className: "searchstax-search-close",
3996
4040
  onClick: () => {
3997
- K();
4041
+ Q();
3998
4042
  }
3999
4043
  }
4000
4044
  )
@@ -4024,28 +4068,28 @@ function Pa(i) {
4024
4068
  /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
4025
4069
  v.values.map(
4026
4070
  //@ts-ignore
4027
- (x, j) => (d[j + v.name] = tt(), /* @__PURE__ */ u.jsxs(
4071
+ (x, F) => (d[F + v.name] = st(), /* @__PURE__ */ u.jsxs(
4028
4072
  "div",
4029
4073
  {
4030
4074
  className: `searchstax-facet-value-container ${x.disabled ? "searchstax-facet-value-disabled" : ""}`,
4031
- ref: d[j + v.name],
4075
+ ref: d[F + v.name],
4032
4076
  children: [
4033
4077
  /* @__PURE__ */ u.jsx(
4034
4078
  "div",
4035
4079
  {
4036
- className: "searchstax-facet-input mobile-" + j + v.name,
4080
+ className: "searchstax-facet-input mobile-" + F + v.name,
4037
4081
  children: /* @__PURE__ */ u.jsx(
4038
4082
  "input",
4039
4083
  {
4040
4084
  type: "checkbox",
4041
4085
  className: "searchstax-facet-input-checkbox",
4042
- checked: E(x),
4086
+ checked: I(x),
4043
4087
  "aria-label": x.value + " " + x.count,
4044
4088
  readOnly: !0,
4045
4089
  disabled: x.disabled,
4046
4090
  onClick: (_) => {
4047
- T(
4048
- j + v.name,
4091
+ L(
4092
+ F + v.name,
4049
4093
  _,
4050
4094
  x,
4051
4095
  !0,
@@ -4061,8 +4105,8 @@ function Pa(i) {
4061
4105
  {
4062
4106
  className: "searchstax-facet-value-label",
4063
4107
  onClick: (_) => {
4064
- T(
4065
- j + v.name,
4108
+ L(
4109
+ F + v.name,
4066
4110
  _,
4067
4111
  x
4068
4112
  );
@@ -4075,8 +4119,8 @@ function Pa(i) {
4075
4119
  {
4076
4120
  className: "searchstax-facet-value-count",
4077
4121
  onClick: (_) => {
4078
- T(
4079
- j + v.name,
4122
+ L(
4123
+ F + v.name,
4080
4124
  _,
4081
4125
  x
4082
4126
  );
@@ -4127,7 +4171,7 @@ function Pa(i) {
4127
4171
  {
4128
4172
  className: "searchstax-facets-mobile-overlay-done",
4129
4173
  onClick: () => {
4130
- K();
4174
+ Q();
4131
4175
  },
4132
4176
  children: "Done"
4133
4177
  }
@@ -4136,47 +4180,47 @@ function Pa(i) {
4136
4180
  }
4137
4181
  )
4138
4182
  ] }) }),
4139
- i.facetsTemplateMobile && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateMobile(
4183
+ n.facetsTemplateMobile && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.facetsTemplateMobile(
4140
4184
  s,
4141
4185
  r,
4142
4186
  d,
4143
4187
  k,
4144
4188
  R,
4145
- T,
4146
- E,
4147
- S,
4189
+ L,
4190
+ I,
4191
+ C,
4148
4192
  B,
4149
4193
  M,
4150
- K,
4151
- O
4194
+ Q,
4195
+ E
4152
4196
  ) })
4153
4197
  ] }) });
4154
4198
  }
4155
- function ja(i) {
4199
+ function Ma(n) {
4156
4200
  let e = !1;
4157
4201
  const [t, s] = q(null), [a] = q(Math.random());
4158
- ee(() => {
4159
- if (r(), C.searchstax)
4160
- C.searchstax.addRelatedSearchesWidget("searchstax-related-searches-container" + a, {
4161
- relatedSearchesURL: i.relatedSearchesURL,
4162
- relatedSearchesAPIKey: i.relatedSearchesAPIKey
4202
+ ae(() => {
4203
+ if (r(), S.searchstax)
4204
+ S.searchstax.addRelatedSearchesWidget("searchstax-related-searches-container" + a, {
4205
+ relatedSearchesURL: n.relatedSearchesURL,
4206
+ relatedSearchesAPIKey: n.relatedSearchesAPIKey
4163
4207
  });
4164
4208
  else
4165
4209
  throw Error("Searchstax instance needs to be passed via props");
4166
4210
  }, []);
4167
4211
  function r() {
4168
- e || (C.searchstax.dataLayer.$searchRelatedSearchesData.subscribe(
4212
+ e || (S.searchstax.dataLayer.$searchRelatedSearchesData.subscribe(
4169
4213
  (l) => {
4170
4214
  s(l);
4171
4215
  }
4172
4216
  ), e = !0);
4173
4217
  }
4174
- function c(l) {
4218
+ function i(l) {
4175
4219
  var o;
4176
- (o = C.searchstax.relatedSearchesWidget) == null || o.executeSearch(l);
4220
+ (o = S.searchstax.relatedSearchesWidget) == null || o.executeSearch(l);
4177
4221
  }
4178
4222
  return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
4179
- !i.searchRelatedSearchesTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasRelatedSearches) && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-related-searches-container", id: "searchstax-related-searches-container", children: [
4223
+ !n.searchRelatedSearchesTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasRelatedSearches) && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-related-searches-container", id: "searchstax-related-searches-container", children: [
4180
4224
  " ",
4181
4225
  "Related searches: ",
4182
4226
  /* @__PURE__ */ u.jsx("span", { id: "searchstax-related-searches" }),
@@ -4184,10 +4228,10 @@ function ja(i) {
4184
4228
  "span",
4185
4229
  {
4186
4230
  onClick: () => {
4187
- c(l);
4231
+ i(l);
4188
4232
  },
4189
4233
  onKeyDown: (o) => {
4190
- (o.key === "Enter" || o.key === " ") && c(l);
4234
+ (o.key === "Enter" || o.key === " ") && i(l);
4191
4235
  },
4192
4236
  tabIndex: 0,
4193
4237
  className: "searchstax-related-search searchstax-related-search-item",
@@ -4200,40 +4244,40 @@ function ja(i) {
4200
4244
  l.related_search
4201
4245
  )) })
4202
4246
  ] }),
4203
- i.searchRelatedSearchesTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchRelatedSearchesTemplate(t, c) })
4247
+ n.searchRelatedSearchesTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.searchRelatedSearchesTemplate(t, i) })
4204
4248
  ] });
4205
4249
  }
4206
- function Fa(i) {
4250
+ function Da(n) {
4207
4251
  let e = !1;
4208
4252
  const [t, s] = q(
4209
4253
  null
4210
4254
  ), [a] = q(Math.random());
4211
- ee(() => {
4212
- if (r(), C.searchstax)
4213
- C.searchstax.addExternalPromotionsWidget("searchstax-external-promotions-layout-container" + a, {});
4255
+ ae(() => {
4256
+ if (r(), S.searchstax)
4257
+ S.searchstax.addExternalPromotionsWidget("searchstax-external-promotions-layout-container" + a, {});
4214
4258
  else
4215
4259
  throw Error("Searchstax instance needs to be passed via props");
4216
4260
  }, []);
4217
4261
  function r() {
4218
- e || (C.searchstax.dataLayer.$searchExternalPromotionsData.subscribe(
4262
+ e || (S.searchstax.dataLayer.$searchExternalPromotionsData.subscribe(
4219
4263
  (l) => {
4220
4264
  s(l);
4221
4265
  }
4222
4266
  ), e = !0);
4223
4267
  }
4224
- function c(l, o) {
4268
+ function i(l, o) {
4225
4269
  var d;
4226
- (d = C.searchstax.externalPromotionsWidget) == null || d.trackClick(l, o);
4270
+ (d = S.searchstax.externalPromotionsWidget) == null || d.trackClick(l, o);
4227
4271
  }
4228
4272
  return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-external-promotions-layout-container" + a, children: [
4229
- !i.searchExternalPromotionsTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasExternalPromotions) && /* @__PURE__ */ u.jsx(u.Fragment, { children: t.externalPromotions.map((l) => /* @__PURE__ */ u.jsxs("div", { className: "searchstax-external-promotion searchstax-search-result", children: [
4273
+ !n.searchExternalPromotionsTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasExternalPromotions) && /* @__PURE__ */ u.jsx(u.Fragment, { children: t.externalPromotions.map((l) => /* @__PURE__ */ u.jsxs("div", { className: "searchstax-external-promotion searchstax-search-result", children: [
4230
4274
  /* @__PURE__ */ u.jsx("div", { className: "icon-elevated" }),
4231
4275
  l.url && /* @__PURE__ */ u.jsx(
4232
4276
  "a",
4233
4277
  {
4234
4278
  href: l.url,
4235
4279
  onClick: (o) => {
4236
- c(l, o);
4280
+ i(l, o);
4237
4281
  },
4238
4282
  className: "searchstax-result-item-link"
4239
4283
  }
@@ -4250,17 +4294,17 @@ function Fa(i) {
4250
4294
  " "
4251
4295
  ] })
4252
4296
  ] }, l.id)) }),
4253
- i.searchExternalPromotionsTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchExternalPromotionsTemplate(t, c) })
4297
+ n.searchExternalPromotionsTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.searchExternalPromotionsTemplate(t, i) })
4254
4298
  ] }) });
4255
4299
  }
4256
4300
  export {
4257
- Fa as SearchstaxExternalPromotionsWidget,
4258
- Pa as SearchstaxFacetsWidget,
4259
- Ta as SearchstaxInputWidget,
4260
- Ia as SearchstaxOverviewWidget,
4261
- wa as SearchstaxPaginationWidget,
4262
- ja as SearchstaxRelatedSearchesWidget,
4263
- Ra as SearchstaxResultWidget,
4264
- Ea as SearchstaxSortingWidget,
4265
- ka as SearchstaxWrapper
4301
+ Da as SearchstaxExternalPromotionsWidget,
4302
+ Aa as SearchstaxFacetsWidget,
4303
+ Ea as SearchstaxInputWidget,
4304
+ Oa as SearchstaxOverviewWidget,
4305
+ ja as SearchstaxPaginationWidget,
4306
+ Ma as SearchstaxRelatedSearchesWidget,
4307
+ Pa as SearchstaxResultWidget,
4308
+ Fa as SearchstaxSortingWidget,
4309
+ Ia as SearchstaxWrapper
4266
4310
  };