@searchstax-inc/searchstudio-ux-react 0.1.0 → 0.2.0

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,6 +1,5 @@
1
- import nt, { useState as le, useEffect as Pe } from "react";
2
- import Ft from "react-dom";
3
- var Ee = { exports: {} }, ie = {};
1
+ import st, { useState as B, useEffect as se } from "react";
2
+ var Ee = { exports: {} }, ce = {};
4
3
  /**
5
4
  * @license React
6
5
  * react-jsx-runtime.production.min.js
@@ -10,25 +9,25 @@ var Ee = { exports: {} }, ie = {};
10
9
  * This source code is licensed under the MIT license found in the
11
10
  * LICENSE file in the root directory of this source tree.
12
11
  */
13
- var et;
14
- function Ot() {
15
- if (et)
16
- return ie;
17
- et = 1;
18
- var n = nt, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function c(o, h, u) {
20
- var p, v = {}, f = null, x = null;
21
- u !== void 0 && (f = "" + u), h.key !== void 0 && (f = "" + h.key), h.ref !== void 0 && (x = h.ref);
22
- for (p in h)
23
- a.call(h, p) && !r.hasOwnProperty(p) && (v[p] = h[p]);
24
- if (o && o.defaultProps)
25
- for (p in h = o.defaultProps, h)
26
- v[p] === void 0 && (v[p] = h[p]);
27
- return { $$typeof: e, type: o, key: f, ref: x, props: v, _owner: s.current };
28
- }
29
- return ie.Fragment = t, ie.jsx = c, ie.jsxs = c, ie;
12
+ var Ge;
13
+ function Pt() {
14
+ if (Ge)
15
+ return ce;
16
+ Ge = 1;
17
+ var n = st, 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 c(l, h, u) {
19
+ var g, m = {}, y = null, R = null;
20
+ u !== void 0 && (y = "" + u), h.key !== void 0 && (y = "" + h.key), h.ref !== void 0 && (R = h.ref);
21
+ for (g in h)
22
+ s.call(h, g) && !r.hasOwnProperty(g) && (m[g] = h[g]);
23
+ if (l && l.defaultProps)
24
+ for (g in h = l.defaultProps, h)
25
+ m[g] === void 0 && (m[g] = h[g]);
26
+ return { $$typeof: e, type: l, key: y, ref: R, props: m, _owner: a.current };
27
+ }
28
+ return ce.Fragment = t, ce.jsx = c, ce.jsxs = c, ce;
30
29
  }
31
- var ne = {};
30
+ var le = {};
32
31
  /**
33
32
  * @license React
34
33
  * react-jsx-runtime.development.js
@@ -38,91 +37,91 @@ var ne = {};
38
37
  * This source code is licensed under the MIT license found in the
39
38
  * LICENSE file in the root directory of this source tree.
40
39
  */
41
- var tt;
42
- function Mt() {
43
- return tt || (tt = 1, process.env.NODE_ENV !== "production" && function() {
44
- var n = nt, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), o = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), S = Symbol.iterator, C = "@@iterator";
45
- function T(i) {
40
+ var Ze;
41
+ function wt() {
42
+ return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var n = st, 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"), h = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), F = Symbol.iterator, L = "@@iterator";
44
+ function x(i) {
46
45
  if (i === null || typeof i != "object")
47
46
  return null;
48
- var d = S && i[S] || i[C];
47
+ var d = F && i[F] || i[L];
49
48
  return typeof d == "function" ? d : null;
50
49
  }
51
50
  var P = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
- function L(i) {
51
+ function C(i) {
53
52
  {
54
- for (var d = arguments.length, m = new Array(d > 1 ? d - 1 : 0), b = 1; b < d; b++)
55
- m[b - 1] = arguments[b];
56
- A("error", i, m);
53
+ for (var d = arguments.length, f = new Array(d > 1 ? d - 1 : 0), b = 1; b < d; b++)
54
+ f[b - 1] = arguments[b];
55
+ D("error", i, f);
57
56
  }
58
57
  }
59
- function A(i, d, m) {
58
+ function D(i, d, f) {
60
59
  {
61
- var b = P.ReactDebugCurrentFrame, E = b.getStackAddendum();
62
- E !== "" && (d += "%s", m = m.concat([E]));
63
- var w = m.map(function(k) {
64
- return String(k);
60
+ var b = P.ReactDebugCurrentFrame, k = b.getStackAddendum();
61
+ k !== "" && (d += "%s", f = f.concat([k]));
62
+ var w = f.map(function(T) {
63
+ return String(T);
65
64
  });
66
65
  w.unshift("Warning: " + d), Function.prototype.apply.call(console[i], console, w);
67
66
  }
68
67
  }
69
- var $ = !1, j = !1, U = !1, X = !1, q = !1, G;
70
- G = Symbol.for("react.module.reference");
71
- function z(i) {
72
- return !!(typeof i == "string" || typeof i == "function" || i === a || i === r || q || i === s || i === u || i === p || X || i === x || $ || j || U || typeof i == "object" && i !== null && (i.$$typeof === f || i.$$typeof === v || i.$$typeof === c || i.$$typeof === o || i.$$typeof === h || // This needs to include all possible module reference object
68
+ var q = !1, j = !1, U = !1, G = !1, _ = !1, Z;
69
+ Z = Symbol.for("react.module.reference");
70
+ function J(i) {
71
+ return !!(typeof i == "string" || typeof i == "function" || i === s || i === r || _ || i === a || i === u || i === g || G || i === R || q || j || U || typeof i == "object" && i !== null && (i.$$typeof === y || i.$$typeof === m || i.$$typeof === c || i.$$typeof === l || i.$$typeof === h || // This needs to include all possible module reference object
73
72
  // types supported by any Flight configuration anywhere since
74
73
  // we don't know which Flight build this will end up being used
75
74
  // with.
76
- i.$$typeof === G || i.getModuleId !== void 0));
75
+ i.$$typeof === Z || i.getModuleId !== void 0));
77
76
  }
78
- function Y(i, d, m) {
77
+ function Y(i, d, f) {
79
78
  var b = i.displayName;
80
79
  if (b)
81
80
  return b;
82
- var E = d.displayName || d.name || "";
83
- return E !== "" ? m + "(" + E + ")" : m;
81
+ var k = d.displayName || d.name || "";
82
+ return k !== "" ? f + "(" + k + ")" : f;
84
83
  }
85
- function je(i) {
84
+ function Pe(i) {
86
85
  return i.displayName || "Context";
87
86
  }
88
- function W(i) {
87
+ function Q(i) {
89
88
  if (i == null)
90
89
  return null;
91
- if (typeof i.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
90
+ if (typeof i.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
92
91
  return i.displayName || i.name || null;
93
92
  if (typeof i == "string")
94
93
  return i;
95
94
  switch (i) {
96
- case a:
95
+ case s:
97
96
  return "Fragment";
98
97
  case t:
99
98
  return "Portal";
100
99
  case r:
101
100
  return "Profiler";
102
- case s:
101
+ case a:
103
102
  return "StrictMode";
104
103
  case u:
105
104
  return "Suspense";
106
- case p:
105
+ case g:
107
106
  return "SuspenseList";
108
107
  }
109
108
  if (typeof i == "object")
110
109
  switch (i.$$typeof) {
111
- case o:
110
+ case l:
112
111
  var d = i;
113
- return je(d) + ".Consumer";
112
+ return Pe(d) + ".Consumer";
114
113
  case c:
115
- var m = i;
116
- return je(m._context) + ".Provider";
114
+ var f = i;
115
+ return Pe(f._context) + ".Provider";
117
116
  case h:
118
117
  return Y(i, i.render, "ForwardRef");
119
- case v:
118
+ case m:
120
119
  var b = i.displayName || null;
121
- return b !== null ? b : W(i.type) || "Memo";
122
- case f: {
123
- var E = i, w = E._payload, k = E._init;
120
+ return b !== null ? b : Q(i.type) || "Memo";
121
+ case y: {
122
+ var k = i, w = k._payload, T = k._init;
124
123
  try {
125
- return W(k(w));
124
+ return Q(T(w));
126
125
  } catch {
127
126
  return null;
128
127
  }
@@ -130,18 +129,18 @@ function Mt() {
130
129
  }
131
130
  return null;
132
131
  }
133
- var J = Object.assign, se = 0, Fe, Oe, Me, Ae, De, $e, qe;
134
- function _e() {
132
+ var X = Object.assign, ie = 0, we, Fe, je, Oe, Me, Ae, De;
133
+ function $e() {
135
134
  }
136
- _e.__reactDisabledLog = !0;
137
- function ct() {
135
+ $e.__reactDisabledLog = !0;
136
+ function rt() {
138
137
  {
139
- if (se === 0) {
140
- Fe = console.log, Oe = console.info, Me = console.warn, Ae = console.error, De = console.group, $e = console.groupCollapsed, qe = console.groupEnd;
138
+ if (ie === 0) {
139
+ we = console.log, Fe = console.info, je = console.warn, Oe = console.error, Me = console.group, Ae = console.groupCollapsed, De = console.groupEnd;
141
140
  var i = {
142
141
  configurable: !0,
143
142
  enumerable: !0,
144
- value: _e,
143
+ value: $e,
145
144
  writable: !0
146
145
  };
147
146
  Object.defineProperties(console, {
@@ -154,100 +153,100 @@ function Mt() {
154
153
  groupEnd: i
155
154
  });
156
155
  }
157
- se++;
156
+ ie++;
158
157
  }
159
158
  }
160
- function ot() {
159
+ function it() {
161
160
  {
162
- if (se--, se === 0) {
161
+ if (ie--, ie === 0) {
163
162
  var i = {
164
163
  configurable: !0,
165
164
  enumerable: !0,
166
165
  writable: !0
167
166
  };
168
167
  Object.defineProperties(console, {
169
- log: J({}, i, {
168
+ log: X({}, i, {
169
+ value: we
170
+ }),
171
+ info: X({}, i, {
170
172
  value: Fe
171
173
  }),
172
- info: J({}, i, {
174
+ warn: X({}, i, {
175
+ value: je
176
+ }),
177
+ error: X({}, i, {
173
178
  value: Oe
174
179
  }),
175
- warn: J({}, i, {
180
+ group: X({}, i, {
176
181
  value: Me
177
182
  }),
178
- error: J({}, i, {
183
+ groupCollapsed: X({}, i, {
179
184
  value: Ae
180
185
  }),
181
- group: J({}, i, {
186
+ groupEnd: X({}, i, {
182
187
  value: De
183
- }),
184
- groupCollapsed: J({}, i, {
185
- value: $e
186
- }),
187
- groupEnd: J({}, i, {
188
- value: qe
189
188
  })
190
189
  });
191
190
  }
192
- se < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ ie < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
192
  }
194
193
  }
195
- var ye = P.ReactCurrentDispatcher, xe;
196
- function de(i, d, m) {
194
+ var ye = P.ReactCurrentDispatcher, be;
195
+ function ge(i, d, f) {
197
196
  {
198
- if (xe === void 0)
197
+ if (be === void 0)
199
198
  try {
200
199
  throw Error();
201
- } catch (E) {
202
- var b = E.stack.trim().match(/\n( *(at )?)/);
203
- xe = b && b[1] || "";
200
+ } catch (k) {
201
+ var b = k.stack.trim().match(/\n( *(at )?)/);
202
+ be = b && b[1] || "";
204
203
  }
205
204
  return `
206
- ` + xe + i;
205
+ ` + be + i;
207
206
  }
208
207
  }
209
- var be = !1, ge;
208
+ var xe = !1, pe;
210
209
  {
211
- var lt = typeof WeakMap == "function" ? WeakMap : Map;
212
- ge = new lt();
210
+ var nt = typeof WeakMap == "function" ? WeakMap : Map;
211
+ pe = new nt();
213
212
  }
214
- function Ne(i, d) {
215
- if (!i || be)
213
+ function qe(i, d) {
214
+ if (!i || xe)
216
215
  return "";
217
216
  {
218
- var m = ge.get(i);
219
- if (m !== void 0)
220
- return m;
217
+ var f = pe.get(i);
218
+ if (f !== void 0)
219
+ return f;
221
220
  }
222
221
  var b;
223
- be = !0;
224
- var E = Error.prepareStackTrace;
222
+ xe = !0;
223
+ var k = Error.prepareStackTrace;
225
224
  Error.prepareStackTrace = void 0;
226
225
  var w;
227
- w = ye.current, ye.current = null, ct();
226
+ w = ye.current, ye.current = null, rt();
228
227
  try {
229
228
  if (d) {
230
- var k = function() {
229
+ var T = function() {
231
230
  throw Error();
232
231
  };
233
- if (Object.defineProperty(k.prototype, "props", {
232
+ if (Object.defineProperty(T.prototype, "props", {
234
233
  set: function() {
235
234
  throw Error();
236
235
  }
237
236
  }), typeof Reflect == "object" && Reflect.construct) {
238
237
  try {
239
- Reflect.construct(k, []);
238
+ Reflect.construct(T, []);
240
239
  } catch (K) {
241
240
  b = K;
242
241
  }
243
- Reflect.construct(i, [], k);
242
+ Reflect.construct(i, [], T);
244
243
  } else {
245
244
  try {
246
- k.call();
245
+ T.call();
247
246
  } catch (K) {
248
247
  b = K;
249
248
  }
250
- i.call(k.prototype);
249
+ i.call(T.prototype);
251
250
  }
252
251
  } else {
253
252
  try {
@@ -259,124 +258,124 @@ function Mt() {
259
258
  }
260
259
  } catch (K) {
261
260
  if (K && b && typeof K.stack == "string") {
262
- for (var R = K.stack.split(`
263
- `), _ = b.stack.split(`
264
- `), F = R.length - 1, M = _.length - 1; F >= 1 && M >= 0 && R[F] !== _[M]; )
265
- M--;
266
- for (; F >= 1 && M >= 0; F--, M--)
267
- if (R[F] !== _[M]) {
268
- if (F !== 1 || M !== 1)
261
+ for (var S = K.stack.split(`
262
+ `), N = b.stack.split(`
263
+ `), O = S.length - 1, A = N.length - 1; O >= 1 && A >= 0 && S[O] !== N[A]; )
264
+ A--;
265
+ for (; O >= 1 && A >= 0; O--, A--)
266
+ if (S[O] !== N[A]) {
267
+ if (O !== 1 || A !== 1)
269
268
  do
270
- if (F--, M--, M < 0 || R[F] !== _[M]) {
269
+ if (O--, A--, A < 0 || S[O] !== N[A]) {
271
270
  var H = `
272
- ` + R[F].replace(" at new ", " at ");
273
- return i.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", i.displayName)), typeof i == "function" && ge.set(i, H), H;
271
+ ` + S[O].replace(" at new ", " at ");
272
+ return i.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", i.displayName)), typeof i == "function" && pe.set(i, H), H;
274
273
  }
275
- while (F >= 1 && M >= 0);
274
+ while (O >= 1 && A >= 0);
276
275
  break;
277
276
  }
278
277
  }
279
278
  } finally {
280
- be = !1, ye.current = w, ot(), Error.prepareStackTrace = E;
279
+ xe = !1, ye.current = w, it(), Error.prepareStackTrace = k;
281
280
  }
282
- var ee = i ? i.displayName || i.name : "", Ze = ee ? de(ee) : "";
283
- return typeof i == "function" && ge.set(i, Ze), Ze;
281
+ var te = i ? i.displayName || i.name : "", Xe = te ? ge(te) : "";
282
+ return typeof i == "function" && pe.set(i, Xe), Xe;
284
283
  }
285
- function ht(i, d, m) {
286
- return Ne(i, !1);
284
+ function ct(i, d, f) {
285
+ return qe(i, !1);
287
286
  }
288
- function ut(i) {
287
+ function lt(i) {
289
288
  var d = i.prototype;
290
289
  return !!(d && d.isReactComponent);
291
290
  }
292
- function pe(i, d, m) {
291
+ function fe(i, d, f) {
293
292
  if (i == null)
294
293
  return "";
295
294
  if (typeof i == "function")
296
- return Ne(i, ut(i));
295
+ return qe(i, lt(i));
297
296
  if (typeof i == "string")
298
- return de(i);
297
+ return ge(i);
299
298
  switch (i) {
300
299
  case u:
301
- return de("Suspense");
302
- case p:
303
- return de("SuspenseList");
300
+ return ge("Suspense");
301
+ case g:
302
+ return ge("SuspenseList");
304
303
  }
305
304
  if (typeof i == "object")
306
305
  switch (i.$$typeof) {
307
306
  case h:
308
- return ht(i.render);
309
- case v:
310
- return pe(i.type, d, m);
311
- case f: {
312
- var b = i, E = b._payload, w = b._init;
307
+ return ct(i.render);
308
+ case m:
309
+ return fe(i.type, d, f);
310
+ case y: {
311
+ var b = i, k = b._payload, w = b._init;
313
312
  try {
314
- return pe(w(E), d, m);
313
+ return fe(w(k), d, f);
315
314
  } catch {
316
315
  }
317
316
  }
318
317
  }
319
318
  return "";
320
319
  }
321
- var me = Object.prototype.hasOwnProperty, Ve = {}, He = P.ReactDebugCurrentFrame;
322
- function fe(i) {
320
+ var me = Object.prototype.hasOwnProperty, _e = {}, Ne = P.ReactDebugCurrentFrame;
321
+ function ve(i) {
323
322
  if (i) {
324
- var d = i._owner, m = pe(i.type, i._source, d ? d.type : null);
325
- He.setExtraStackFrame(m);
323
+ var d = i._owner, f = fe(i.type, i._source, d ? d.type : null);
324
+ Ne.setExtraStackFrame(f);
326
325
  } else
327
- He.setExtraStackFrame(null);
326
+ Ne.setExtraStackFrame(null);
328
327
  }
329
- function dt(i, d, m, b, E) {
328
+ function ot(i, d, f, b, k) {
330
329
  {
331
330
  var w = Function.call.bind(me);
332
- for (var k in i)
333
- if (w(i, k)) {
334
- var R = void 0;
331
+ for (var T in i)
332
+ if (w(i, T)) {
333
+ var S = void 0;
335
334
  try {
336
- if (typeof i[k] != "function") {
337
- var _ = Error((b || "React class") + ": " + m + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
- throw _.name = "Invariant Violation", _;
335
+ if (typeof i[T] != "function") {
336
+ var N = Error((b || "React class") + ": " + f + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw N.name = "Invariant Violation", N;
339
338
  }
340
- R = i[k](d, k, b, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (F) {
342
- R = F;
339
+ S = i[T](d, T, b, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (O) {
341
+ S = O;
343
342
  }
344
- R && !(R instanceof Error) && (fe(E), 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).", b || "React class", m, k, typeof R), fe(null)), R instanceof Error && !(R.message in Ve) && (Ve[R.message] = !0, fe(E), L("Failed %s type: %s", m, R.message), fe(null));
343
+ S && !(S instanceof Error) && (ve(k), C("%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).", b || "React class", f, T, typeof S), ve(null)), S instanceof Error && !(S.message in _e) && (_e[S.message] = !0, ve(k), C("Failed %s type: %s", f, S.message), ve(null));
345
344
  }
346
345
  }
347
346
  }
348
- var gt = Array.isArray;
347
+ var ht = Array.isArray;
349
348
  function Ce(i) {
350
- return gt(i);
349
+ return ht(i);
351
350
  }
352
- function pt(i) {
351
+ function ut(i) {
353
352
  {
354
- var d = typeof Symbol == "function" && Symbol.toStringTag, m = d && i[Symbol.toStringTag] || i.constructor.name || "Object";
355
- return m;
353
+ var d = typeof Symbol == "function" && Symbol.toStringTag, f = d && i[Symbol.toStringTag] || i.constructor.name || "Object";
354
+ return f;
356
355
  }
357
356
  }
358
- function mt(i) {
357
+ function dt(i) {
359
358
  try {
360
- return Be(i), !1;
359
+ return Ve(i), !1;
361
360
  } catch {
362
361
  return !0;
363
362
  }
364
363
  }
365
- function Be(i) {
364
+ function Ve(i) {
366
365
  return "" + i;
367
366
  }
368
- function Ue(i) {
369
- if (mt(i))
370
- return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pt(i)), Be(i);
367
+ function He(i) {
368
+ if (dt(i))
369
+ return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ut(i)), Ve(i);
371
370
  }
372
- var re = P.ReactCurrentOwner, ft = {
371
+ var ne = P.ReactCurrentOwner, gt = {
373
372
  key: !0,
374
373
  ref: !0,
375
374
  __self: !0,
376
375
  __source: !0
377
- }, We, Ke, Se;
376
+ }, Be, We, Se;
378
377
  Se = {};
379
- function vt(i) {
378
+ function pt(i) {
380
379
  if (me.call(i, "ref")) {
381
380
  var d = Object.getOwnPropertyDescriptor(i, "ref").get;
382
381
  if (d && d.isReactWarning)
@@ -384,7 +383,7 @@ function Mt() {
384
383
  }
385
384
  return i.ref !== void 0;
386
385
  }
387
- function yt(i) {
386
+ function ft(i) {
388
387
  if (me.call(i, "key")) {
389
388
  var d = Object.getOwnPropertyDescriptor(i, "key").get;
390
389
  if (d && d.isReactWarning)
@@ -392,98 +391,98 @@ function Mt() {
392
391
  }
393
392
  return i.key !== void 0;
394
393
  }
395
- function xt(i, d) {
396
- if (typeof i.ref == "string" && re.current && d && re.current.stateNode !== d) {
397
- var m = W(re.current.type);
398
- Se[m] || (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', W(re.current.type), i.ref), Se[m] = !0);
394
+ function mt(i, d) {
395
+ if (typeof i.ref == "string" && ne.current && d && ne.current.stateNode !== d) {
396
+ var f = Q(ne.current.type);
397
+ Se[f] || (C('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(ne.current.type), i.ref), Se[f] = !0);
399
398
  }
400
399
  }
401
- function bt(i, d) {
400
+ function vt(i, d) {
402
401
  {
403
- var m = function() {
404
- We || (We = !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)", d));
402
+ var f = function() {
403
+ Be || (Be = !0, C("%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)", d));
405
404
  };
406
- m.isReactWarning = !0, Object.defineProperty(i, "key", {
407
- get: m,
405
+ f.isReactWarning = !0, Object.defineProperty(i, "key", {
406
+ get: f,
408
407
  configurable: !0
409
408
  });
410
409
  }
411
410
  }
412
- function Ct(i, d) {
411
+ function yt(i, d) {
413
412
  {
414
- var m = function() {
415
- Ke || (Ke = !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)", d));
413
+ var f = function() {
414
+ We || (We = !0, C("%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)", d));
416
415
  };
417
- m.isReactWarning = !0, Object.defineProperty(i, "ref", {
418
- get: m,
416
+ f.isReactWarning = !0, Object.defineProperty(i, "ref", {
417
+ get: f,
419
418
  configurable: !0
420
419
  });
421
420
  }
422
421
  }
423
- var St = function(i, d, m, b, E, w, k) {
424
- var R = {
422
+ var bt = function(i, d, f, b, k, w, T) {
423
+ var S = {
425
424
  // This tag allows us to uniquely identify this as a React Element
426
425
  $$typeof: e,
427
426
  // Built-in properties that belong on the element
428
427
  type: i,
429
428
  key: d,
430
- ref: m,
431
- props: k,
429
+ ref: f,
430
+ props: T,
432
431
  // Record the component responsible for creating this element.
433
432
  _owner: w
434
433
  };
435
- return R._store = {}, Object.defineProperty(R._store, "validated", {
434
+ return S._store = {}, Object.defineProperty(S._store, "validated", {
436
435
  configurable: !1,
437
436
  enumerable: !1,
438
437
  writable: !0,
439
438
  value: !1
440
- }), Object.defineProperty(R, "_self", {
439
+ }), Object.defineProperty(S, "_self", {
441
440
  configurable: !1,
442
441
  enumerable: !1,
443
442
  writable: !1,
444
443
  value: b
445
- }), Object.defineProperty(R, "_source", {
444
+ }), Object.defineProperty(S, "_source", {
446
445
  configurable: !1,
447
446
  enumerable: !1,
448
447
  writable: !1,
449
- value: E
450
- }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
448
+ value: k
449
+ }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
451
450
  };
452
- function Tt(i, d, m, b, E) {
451
+ function xt(i, d, f, b, k) {
453
452
  {
454
- var w, k = {}, R = null, _ = null;
455
- m !== void 0 && (Ue(m), R = "" + m), yt(d) && (Ue(d.key), R = "" + d.key), vt(d) && (_ = d.ref, xt(d, E));
453
+ var w, T = {}, S = null, N = null;
454
+ f !== void 0 && (He(f), S = "" + f), ft(d) && (He(d.key), S = "" + d.key), pt(d) && (N = d.ref, mt(d, k));
456
455
  for (w in d)
457
- me.call(d, w) && !ft.hasOwnProperty(w) && (k[w] = d[w]);
456
+ me.call(d, w) && !gt.hasOwnProperty(w) && (T[w] = d[w]);
458
457
  if (i && i.defaultProps) {
459
- var F = i.defaultProps;
460
- for (w in F)
461
- k[w] === void 0 && (k[w] = F[w]);
458
+ var O = i.defaultProps;
459
+ for (w in O)
460
+ T[w] === void 0 && (T[w] = O[w]);
462
461
  }
463
- if (R || _) {
464
- var M = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
465
- R && bt(k, M), _ && Ct(k, M);
462
+ if (S || N) {
463
+ var A = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
464
+ S && vt(T, A), N && yt(T, A);
466
465
  }
467
- return St(i, R, _, E, b, re.current, k);
466
+ return bt(i, S, N, k, b, ne.current, T);
468
467
  }
469
468
  }
470
- var Te = P.ReactCurrentOwner, Qe = P.ReactDebugCurrentFrame;
471
- function Z(i) {
469
+ var Te = P.ReactCurrentOwner, Ue = P.ReactDebugCurrentFrame;
470
+ function ee(i) {
472
471
  if (i) {
473
- var d = i._owner, m = pe(i.type, i._source, d ? d.type : null);
474
- Qe.setExtraStackFrame(m);
472
+ var d = i._owner, f = fe(i.type, i._source, d ? d.type : null);
473
+ Ue.setExtraStackFrame(f);
475
474
  } else
476
- Qe.setExtraStackFrame(null);
475
+ Ue.setExtraStackFrame(null);
477
476
  }
478
477
  var Le;
479
478
  Le = !1;
480
479
  function Re(i) {
481
480
  return typeof i == "object" && i !== null && i.$$typeof === e;
482
481
  }
483
- function ze() {
482
+ function Qe() {
484
483
  {
485
484
  if (Te.current) {
486
- var i = W(Te.current.type);
485
+ var i = Q(Te.current.type);
487
486
  if (i)
488
487
  return `
489
488
 
@@ -492,158 +491,144 @@ Check the render method of \`` + i + "`.";
492
491
  return "";
493
492
  }
494
493
  }
495
- function Lt(i) {
494
+ function Ct(i) {
496
495
  {
497
496
  if (i !== void 0) {
498
- var d = i.fileName.replace(/^.*[\\\/]/, ""), m = i.lineNumber;
497
+ var d = i.fileName.replace(/^.*[\\\/]/, ""), f = i.lineNumber;
499
498
  return `
500
499
 
501
- Check your code at ` + d + ":" + m + ".";
500
+ Check your code at ` + d + ":" + f + ".";
502
501
  }
503
502
  return "";
504
503
  }
505
504
  }
506
- var Ye = {};
507
- function Rt(i) {
505
+ var Ke = {};
506
+ function St(i) {
508
507
  {
509
- var d = ze();
508
+ var d = Qe();
510
509
  if (!d) {
511
- var m = typeof i == "string" ? i : i.displayName || i.name;
512
- m && (d = `
510
+ var f = typeof i == "string" ? i : i.displayName || i.name;
511
+ f && (d = `
513
512
 
514
- Check the top-level render call using <` + m + ">.");
513
+ Check the top-level render call using <` + f + ">.");
515
514
  }
516
515
  return d;
517
516
  }
518
517
  }
519
- function Je(i, d) {
518
+ function ze(i, d) {
520
519
  {
521
520
  if (!i._store || i._store.validated || i.key != null)
522
521
  return;
523
522
  i._store.validated = !0;
524
- var m = Rt(d);
525
- if (Ye[m])
523
+ var f = St(d);
524
+ if (Ke[f])
526
525
  return;
527
- Ye[m] = !0;
526
+ Ke[f] = !0;
528
527
  var b = "";
529
- i && i._owner && i._owner !== Te.current && (b = " It was passed a child from " + W(i._owner.type) + "."), Z(i), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, b), Z(null);
528
+ i && i._owner && i._owner !== Te.current && (b = " It was passed a child from " + Q(i._owner.type) + "."), ee(i), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, b), ee(null);
530
529
  }
531
530
  }
532
- function Xe(i, d) {
531
+ function Je(i, d) {
533
532
  {
534
533
  if (typeof i != "object")
535
534
  return;
536
535
  if (Ce(i))
537
- for (var m = 0; m < i.length; m++) {
538
- var b = i[m];
539
- Re(b) && Je(b, d);
536
+ for (var f = 0; f < i.length; f++) {
537
+ var b = i[f];
538
+ Re(b) && ze(b, d);
540
539
  }
541
540
  else if (Re(i))
542
541
  i._store && (i._store.validated = !0);
543
542
  else if (i) {
544
- var E = T(i);
545
- if (typeof E == "function" && E !== i.entries)
546
- for (var w = E.call(i), k; !(k = w.next()).done; )
547
- Re(k.value) && Je(k.value, d);
543
+ var k = x(i);
544
+ if (typeof k == "function" && k !== i.entries)
545
+ for (var w = k.call(i), T; !(T = w.next()).done; )
546
+ Re(T.value) && ze(T.value, d);
548
547
  }
549
548
  }
550
549
  }
551
- function kt(i) {
550
+ function Tt(i) {
552
551
  {
553
552
  var d = i.type;
554
553
  if (d == null || typeof d == "string")
555
554
  return;
556
- var m;
555
+ var f;
557
556
  if (typeof d == "function")
558
- m = d.propTypes;
557
+ f = d.propTypes;
559
558
  else if (typeof d == "object" && (d.$$typeof === h || // Note: Memo only checks outer props here.
560
559
  // Inner props are checked in the reconciler.
561
- d.$$typeof === v))
562
- m = d.propTypes;
560
+ d.$$typeof === m))
561
+ f = d.propTypes;
563
562
  else
564
563
  return;
565
- if (m) {
566
- var b = W(d);
567
- dt(m, i.props, "prop", b, i);
564
+ if (f) {
565
+ var b = Q(d);
566
+ ot(f, i.props, "prop", b, i);
568
567
  } else if (d.PropTypes !== void 0 && !Le) {
569
568
  Le = !0;
570
- var E = W(d);
571
- L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
569
+ var k = Q(d);
570
+ C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
572
571
  }
573
- typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
573
  }
575
574
  }
576
- function Et(i) {
575
+ function Lt(i) {
577
576
  {
578
- for (var d = Object.keys(i.props), m = 0; m < d.length; m++) {
579
- var b = d[m];
577
+ for (var d = Object.keys(i.props), f = 0; f < d.length; f++) {
578
+ var b = d[f];
580
579
  if (b !== "children" && b !== "key") {
581
- Z(i), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), Z(null);
580
+ ee(i), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), ee(null);
582
581
  break;
583
582
  }
584
583
  }
585
- i.ref !== null && (Z(i), L("Invalid attribute `ref` supplied to `React.Fragment`."), Z(null));
584
+ i.ref !== null && (ee(i), C("Invalid attribute `ref` supplied to `React.Fragment`."), ee(null));
586
585
  }
587
586
  }
588
- function Ge(i, d, m, b, E, w) {
587
+ function Ye(i, d, f, b, k, w) {
589
588
  {
590
- var k = z(i);
591
- if (!k) {
592
- var R = "";
593
- (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (R += " 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 _ = Lt(E);
595
- _ ? R += _ : R += ze();
596
- var F;
597
- i === null ? F = "null" : Ce(i) ? F = "array" : i !== void 0 && i.$$typeof === e ? (F = "<" + (W(i.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : F = typeof i, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, R);
589
+ var T = J(i);
590
+ if (!T) {
591
+ var S = "";
592
+ (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (S += " 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 N = Ct(k);
594
+ N ? S += N : S += Qe();
595
+ var O;
596
+ i === null ? O = "null" : Ce(i) ? O = "array" : i !== void 0 && i.$$typeof === e ? (O = "<" + (Q(i.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : O = typeof i, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, S);
598
597
  }
599
- var M = Tt(i, d, m, E, w);
600
- if (M == null)
601
- return M;
602
- if (k) {
598
+ var A = xt(i, d, f, k, w);
599
+ if (A == null)
600
+ return A;
601
+ if (T) {
603
602
  var H = d.children;
604
603
  if (H !== void 0)
605
604
  if (b)
606
605
  if (Ce(H)) {
607
- for (var ee = 0; ee < H.length; ee++)
608
- Xe(H[ee], i);
606
+ for (var te = 0; te < H.length; te++)
607
+ Je(H[te], i);
609
608
  Object.freeze && Object.freeze(H);
610
609
  } else
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.");
610
+ C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
612
611
  else
613
- Xe(H, i);
612
+ Je(H, i);
614
613
  }
615
- return i === a ? Et(M) : kt(M), M;
614
+ return i === s ? Lt(A) : Tt(A), A;
616
615
  }
617
616
  }
618
- function It(i, d, m) {
619
- return Ge(i, d, m, !0);
617
+ function Rt(i, d, f) {
618
+ return Ye(i, d, f, !0);
620
619
  }
621
- function Pt(i, d, m) {
622
- return Ge(i, d, m, !1);
620
+ function kt(i, d, f) {
621
+ return Ye(i, d, f, !1);
623
622
  }
624
- var wt = Pt, jt = It;
625
- ne.Fragment = a, ne.jsx = wt, ne.jsxs = jt;
626
- }()), ne;
623
+ var Et = kt, It = Rt;
624
+ le.Fragment = s, le.jsx = Et, le.jsxs = It;
625
+ }()), le;
627
626
  }
628
- process.env.NODE_ENV === "production" ? Ee.exports = Ot() : Ee.exports = Mt();
629
- var g = Ee.exports, Ie, ve = Ft;
630
- if (process.env.NODE_ENV === "production")
631
- Ie = ve.createRoot, ve.hydrateRoot;
632
- else {
633
- var at = ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
634
- Ie = function(n, e) {
635
- at.usingClientEntryPoint = !0;
636
- try {
637
- return ve.createRoot(n, e);
638
- } finally {
639
- at.usingClientEntryPoint = !1;
640
- }
641
- };
642
- }
643
- var At = Object.defineProperty, Dt = (n, e, t) => e in n ? At(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, l = (n, e, t) => (Dt(n, typeof e != "symbol" ? e + "" : e, t), t), D = /* @__PURE__ */ ((n) => (n[n.mustache = 0] = "mustache", n[n.vue = 1] = "vue", n[n.react = 2] = "react", n[n.angular = 3] = "angular", n))(D || {});
644
- class $t {
627
+ process.env.NODE_ENV === "production" ? Ee.exports = Pt() : Ee.exports = wt();
628
+ var p = Ee.exports, Ft = Object.defineProperty, jt = (n, e, t) => e in n ? Ft(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, o = (n, e, t) => (jt(n, typeof e != "symbol" ? e + "" : e, t), t), $ = /* @__PURE__ */ ((n) => (n[n.mustache = 0] = "mustache", n[n.vue = 1] = "vue", n[n.react = 2] = "react", n[n.angular = 3] = "angular", n))($ || {});
629
+ class Ot {
645
630
  constructor(e) {
646
- l(this, "dataLayer"), this.dataLayer = e;
631
+ o(this, "dataLayer"), this.dataLayer = e;
647
632
  }
648
633
  get currentPage() {
649
634
  var e;
@@ -690,21 +675,21 @@ class $t {
690
675
  return ((e = this.dataLayer.searchResultsMetadata) == null ? void 0 : e.autoCorrectedQuery) || ((t = this.dataLayer.searchObject) == null ? void 0 : t.query) || "";
691
676
  }
692
677
  get searchExecuted() {
693
- var e, t, a;
694
- return ((e = this.dataLayer.searchObject) == null ? void 0 : e.query) !== void 0 && ((t = this.dataLayer.searchObject) == null ? void 0 : t.query) !== "undefined" && ((a = this.dataLayer.searchObject) == null ? void 0 : a.query) !== "";
678
+ var e, t, s;
679
+ return ((e = this.dataLayer.searchObject) == null ? void 0 : e.query) !== void 0 && ((t = this.dataLayer.searchObject) == null ? void 0 : t.query) !== "undefined" && ((s = this.dataLayer.searchObject) == null ? void 0 : s.query) !== "";
695
680
  }
696
681
  get selectedFacets() {
697
682
  var e;
698
683
  const t = this.dataLayer.searchFacetsCached ?? this.dataLayer.searchFacets;
699
- return t ? (((e = this.dataLayer.searchObject) == null ? void 0 : e.facets) ?? []).map((a) => {
700
- const s = a.name, r = a.value, c = t.find((o) => o.name === s);
684
+ return t ? (((e = this.dataLayer.searchObject) == null ? void 0 : e.facets) ?? []).map((s) => {
685
+ const a = s.name, r = s.value, c = t.find((l) => l.name === a);
701
686
  if (c) {
702
- const o = c.values.find((h) => h.type === "range" ? !1 : h.type === "checkbox" ? '"' + h.value + '"' === r : !1);
703
- if (o)
704
- return o;
687
+ const l = c.values.find((h) => h.type === "range" ? !1 : h.type === "checkbox" ? '"' + h.value + '"' === r : !1);
688
+ if (l)
689
+ return l;
705
690
  }
706
691
  return null;
707
- }).filter((a) => a !== null) : [];
692
+ }).filter((s) => s !== null) : [];
708
693
  }
709
694
  get relatedSearches() {
710
695
  const e = this.dataLayer.searchRelatedSearches ?? [];
@@ -737,27 +722,27 @@ class $t {
737
722
  };
738
723
  }
739
724
  get trackingData() {
740
- var e, t, a, s;
725
+ var e, t, s, a;
741
726
  return {
742
727
  searchTerm: this.dataLayer.searchTerm !== "undefined" ? this.dataLayer.searchTerm : "",
743
728
  trackApiKey: ((e = this.dataLayer.searchstaxConfig) == null ? void 0 : e.trackApiKey) ?? "",
744
729
  session: this.dataLayer.sessionId,
745
730
  language: this.dataLayer.language,
746
731
  recordsPerPage: ((t = this.dataLayer.searchResultsMetadata) == null ? void 0 : t.recordsPerPageValue) ?? 0,
747
- totalResults: ((a = this.dataLayer.searchResultsMetadata) == null ? void 0 : a.totalResultsValue) ?? 0,
732
+ totalResults: ((s = this.dataLayer.searchResultsMetadata) == null ? void 0 : s.totalResultsValue) ?? 0,
748
733
  currentPage: this.dataLayer.currentPage,
749
- latencyVal: ((s = this.dataLayer.searchResultsMetadata) == null ? void 0 : s.latency) ?? 0
734
+ latencyVal: ((a = this.dataLayer.searchResultsMetadata) == null ? void 0 : a.latency) ?? 0
750
735
  };
751
736
  }
752
737
  }
753
- class B {
738
+ class W {
754
739
  static deepEqual(e, t) {
755
- const a = Object.keys(e), s = Object.keys(t);
756
- if (a.length !== s.length)
740
+ const s = Object.keys(e), a = Object.keys(t);
741
+ if (s.length !== a.length)
757
742
  return !1;
758
- for (const r of a) {
759
- const c = e[r], o = t[r], h = this.isObject(c) && this.isObject(o);
760
- if (h && !this.deepEqual(c, o) || !h && c !== o)
743
+ for (const r of s) {
744
+ const c = e[r], l = t[r], h = this.isObject(c) && this.isObject(l);
745
+ if (h && !this.deepEqual(c, l) || !h && c !== l)
761
746
  return !1;
762
747
  }
763
748
  return !0;
@@ -766,9 +751,9 @@ class B {
766
751
  return e != null && typeof e == "object";
767
752
  }
768
753
  }
769
- class O {
754
+ class M {
770
755
  constructor(e) {
771
- l(this, "value"), l(this, "observers", []), this.value = e, this.observers = [];
756
+ o(this, "value"), o(this, "observers", []), this.value = e, this.observers = [];
772
757
  }
773
758
  subscribe(e) {
774
759
  this.observers.push(e), e(this.value);
@@ -787,24 +772,24 @@ class O {
787
772
  this.observers.forEach((e) => e(this.value));
788
773
  }
789
774
  }
790
- class Q {
775
+ class z {
791
776
  static removeXSSRiskyTags(e) {
792
- var t = "script|style|iframe|object|embed|form|input|button", a = new RegExp("</?(" + t + ")(\\s[^>]*)?>", "gi");
793
- return e ? e.replace(a, "") : "";
777
+ var t = "script|style|iframe|object|embed|form|input|button", s = new RegExp("</?(" + t + ")(\\s[^>]*)?>", "gi");
778
+ return e ? e.replace(s, "") : "";
794
779
  }
795
780
  }
796
- class qt {
781
+ class Mt {
797
782
  constructor(e) {
798
- l(this, "$searchTermChange", new O("")), l(this, "$loadingChange", new O(!1)), l(this, "$searchResults", new O(null)), l(this, "$searchResultsMetadata", new O(null)), l(this, "$searchAutosuggest", new O(null)), l(this, "$searchFacets", new O(null)), l(this, "$searchFacetsCached", new O(null)), l(this, "$searchstaxConfig", new O(null)), l(this, "$autosuggestResults", new O(null)), l(this, "$searchObject", new O({
783
+ o(this, "$searchTermChange", new M("")), o(this, "$loadingChange", new M(!1)), o(this, "$searchResults", new M(null)), o(this, "$searchResultsMetadata", new M(null)), o(this, "$searchAutosuggest", new M(null)), o(this, "$searchFacets", new M(null)), o(this, "$searchFacetsCached", new M(null)), o(this, "$searchstaxConfig", new M(null)), o(this, "$autosuggestResults", new M(null)), o(this, "$searchObject", new M({
799
784
  query: "",
800
785
  page: 99999999,
801
786
  order: "",
802
787
  facets: [],
803
788
  additionalProps: []
804
- })), l(this, "$searchRelatedSearches", new O(null)), l(this, "$searchInputConfig", new O(null)), l(this, "$searchExternalPromotions", new O(null)), l(this, "$facetsTemplateData", new O(null)), l(this, "$selectedFacetsTemplateData", new O(null)), l(this, "$paginationData", new O(null)), l(this, "$searchFeedbackData", new O(null)), l(this, "$searchSortingData", new O(null)), l(this, "$searchRelatedSearchesData", new O(null)), l(this, "$searchExternalPromotionsData", new O(null)), l(this, "$language", new O("en")), l(this, "currentPageValue", 1), l(this, "renderingEngineValue", D.mustache), l(this, "parsedData", new $t(this)), l(this, "sessionId"), l(this, "autoCorrect", !0), l(this, "forceNotCorrect", !1), this.sessionId = e;
789
+ })), o(this, "$searchRelatedSearches", new M(null)), o(this, "$searchInputConfig", new M(null)), o(this, "$searchExternalPromotions", new M(null)), o(this, "$facetsTemplateData", new M(null)), o(this, "$selectedFacetsTemplateData", new M(null)), o(this, "$paginationData", new M(null)), o(this, "$searchFeedbackData", new M(null)), o(this, "$searchSortingData", new M(null)), o(this, "$searchRelatedSearchesData", new M(null)), o(this, "$searchExternalPromotionsData", new M(null)), o(this, "$language", new M("en")), o(this, "currentPageValue", 1), o(this, "renderingEngineValue", $.mustache), o(this, "parsedData", new Ot(this)), o(this, "sessionId"), o(this, "autoCorrect", !0), o(this, "forceNotCorrect", !1), this.sessionId = e;
805
790
  }
806
791
  setSearchTerm(e) {
807
- this.$searchTermChange.setValue(Q.removeXSSRiskyTags(e));
792
+ this.$searchTermChange.setValue(z.removeXSSRiskyTags(e));
808
793
  }
809
794
  setRenderingEngine(e) {
810
795
  this.renderingEngineValue = e;
@@ -816,30 +801,30 @@ class qt {
816
801
  this.$loadingChange.setValue(e);
817
802
  }
818
803
  setSearchResults(e) {
819
- B.deepEqual(e, this.searchResults ?? [""]) || this.$searchResults.setValue(e);
804
+ W.deepEqual(e, this.searchResults ?? [""]) || this.$searchResults.setValue(e);
820
805
  }
821
806
  setSearchResultsMetadata(e) {
822
- B.deepEqual(e, this.searchResultsMetadata ?? {}) || this.$searchResultsMetadata.setValue(e);
807
+ W.deepEqual(e, this.searchResultsMetadata ?? {}) || this.$searchResultsMetadata.setValue(e);
823
808
  }
824
809
  setSearchAutosuggest(e) {
825
810
  this.$searchAutosuggest.setValue(e);
826
811
  }
827
812
  setSearchObject(e) {
828
- var t, a;
829
- let s = e;
830
- (a = (t = this.searchstaxConfig) == null ? void 0 : t.hooks) != null && a.beforeSearch && s && (s = this.searchstaxConfig.hooks.beforeSearch(s)), s && (!B.deepEqual(s, this.searchObject ?? {}) || this.forceNotCorrect) && this.$searchObject.setValue(s);
813
+ var t, s;
814
+ let a = e;
815
+ (s = (t = this.searchstaxConfig) == null ? void 0 : t.hooks) != null && s.beforeSearch && a && (a = this.searchstaxConfig.hooks.beforeSearch(a)), a && (!W.deepEqual(a, this.searchObject ?? {}) || this.forceNotCorrect) && this.$searchObject.setValue(a);
831
816
  }
832
817
  setSearchFacets(e) {
833
- B.deepEqual(e, this.searchFacets ?? []) || this.$searchFacets.setValue(e);
818
+ W.deepEqual(e, this.searchFacets ?? []) || this.$searchFacets.setValue(e);
834
819
  }
835
820
  setSearchFacetsCached(e) {
836
- B.deepEqual(e, this.searchFacetsCached ?? []) || this.$searchFacetsCached.setValue(e);
821
+ W.deepEqual(e, this.searchFacetsCached ?? []) || this.$searchFacetsCached.setValue(e);
837
822
  }
838
823
  setSearchRelatedSearches(e) {
839
- B.deepEqual(e, this.searchRelatedSearches ?? []) || this.$searchRelatedSearches.setValue(e);
824
+ W.deepEqual(e, this.searchRelatedSearches ?? []) || this.$searchRelatedSearches.setValue(e);
840
825
  }
841
826
  setSearchExternalPromotions(e) {
842
- B.deepEqual(e, this.searchExternalPromotions ?? []) || this.$searchExternalPromotions.setValue(e);
827
+ W.deepEqual(e, this.searchExternalPromotions ?? []) || this.$searchExternalPromotions.setValue(e);
843
828
  }
844
829
  setLanguage(e) {
845
830
  this.$language.setValue(e);
@@ -944,18 +929,18 @@ class qt {
944
929
  return this.$searchExternalPromotionsData.getValue();
945
930
  }
946
931
  }
947
- class ce {
932
+ class oe {
948
933
  static combineResultsWithMetadata(e) {
949
- const t = [], a = parseInt(e.response.start + "") - 1, s = parseInt(e.responseHeader.params.rows);
934
+ const t = [], s = parseInt(e.response.start + "") - 1, a = parseInt(e.responseHeader.params.rows);
950
935
  return e.response.docs.forEach((r, c) => {
951
- const o = {
936
+ const l = {
952
937
  custom: null,
953
938
  uniqueId: this.getValueByKey(
954
939
  e.responseHeader.params.uniqueId,
955
940
  r,
956
941
  e
957
942
  ) ?? "",
958
- position: a * s + 1 + c,
943
+ position: s * a + 1 + c,
959
944
  ribbon: this.doesMapExist("ribbon", e) ? this.getValueByKey("ribbon", r, e) : null,
960
945
  paths: this.doesMapExist("paths", e) ? this.getValueByKey("paths", r, e) : null,
961
946
  url: this.doesMapExist("url", e) ? this.getValueByKey("url", r, e) : null,
@@ -968,28 +953,28 @@ class ce {
968
953
  unmappedFields: this.getUnmappedFields(r, e),
969
954
  allFields: this.getAllFields(r, e)
970
955
  };
971
- t.push(o);
956
+ t.push(l);
972
957
  }), t;
973
958
  }
974
959
  static extractFacets(e) {
975
960
  const t = [];
976
- for (const a of e.metadata.facets) {
977
- let s = { values: [] };
978
- if (s.name = a.name, s.label = a.label, a.name in e.facet_counts.facet_fields) {
979
- const r = e.facet_counts.facet_fields[a.name];
961
+ for (const s of e.metadata.facets) {
962
+ let a = { values: [] };
963
+ if (a.name = s.name, a.label = s.label, s.name in e.facet_counts.facet_fields) {
964
+ const r = e.facet_counts.facet_fields[s.name];
980
965
  for (let c = 0; c < r.length; c += 2) {
981
- const o = {};
982
- o.value = r[c], o.parentName = s.name, o.count = r[c + 1], o.type = "checkbox", s.values.push(o);
966
+ const l = {};
967
+ l.value = r[c], l.parentName = a.name, l.count = r[c + 1], l.type = "checkbox", a.values.push(l);
983
968
  }
984
969
  }
985
- s.values.length > 0 && t.push(s);
970
+ a.values.length > 0 && t.push(a);
986
971
  }
987
972
  return t;
988
973
  }
989
974
  static extractSearchResultsMetadata(e) {
990
- var t, a, s, r;
975
+ var t, s, a, r;
991
976
  let c = "";
992
- return c = ((r = (s = (a = (t = e == null ? void 0 : e.spellcheck) == null ? void 0 : t.suggestions) == null ? void 0 : a[0]) == null ? void 0 : s.suggestion) == null ? void 0 : r[0]) ?? "", typeof c != "string" && (c = (c == null ? void 0 : c.word) ?? ""), {
977
+ return c = ((r = (a = (s = (t = e == null ? void 0 : e.spellcheck) == null ? void 0 : t.suggestions) == null ? void 0 : s[0]) == null ? void 0 : a.suggestion) == null ? void 0 : r[0]) ?? "", typeof c != "string" && (c = (c == null ? void 0 : c.word) ?? ""), {
993
978
  recordsPerPageValue: parseInt(e.responseHeader.params.rows),
994
979
  startDocVal: parseInt(e.response.start + ""),
995
980
  totalResultsValue: parseInt(e.response.numFound + ""),
@@ -1001,9 +986,9 @@ class ce {
1001
986
  };
1002
987
  }
1003
988
  static getImpressions(e) {
1004
- const t = [], a = this.combineResultsWithMetadata(e);
1005
- for (const s in a) {
1006
- const r = a[s], c = {};
989
+ const t = [], s = this.combineResultsWithMetadata(e);
990
+ for (const a in s) {
991
+ const r = s[a], c = {};
1007
992
  c.cDocId = this.getDataForAnalytics(r.uniqueId), r.title && (c.cDocTitle = this.getDataForAnalytics(r.title)), c.position = r.position, t.push(c);
1008
993
  }
1009
994
  return t;
@@ -1012,120 +997,120 @@ class ce {
1012
997
  return e !== null ? typeof e > "u" ? "" : typeof e == "string" ? e : typeof e.join < "u" ? e[0] : e : "";
1013
998
  }
1014
999
  static findResultByUniqueId(e, t) {
1015
- return t.find((a) => a.uniqueId === e) ?? null;
1000
+ return t.find((s) => s.uniqueId === e) ?? null;
1016
1001
  }
1017
1002
  static getUnmappedFields(e, t) {
1018
- const a = t.metadata.results.filter((r) => r.result_card === "").map((r) => r.name), s = [];
1003
+ const s = t.metadata.results.filter((r) => r.result_card === "").map((r) => r.name), a = [];
1019
1004
  for (const r of Object.keys(e))
1020
- if (a.indexOf(r) !== -1) {
1005
+ if (s.indexOf(r) !== -1) {
1021
1006
  const c = Array.isArray(e[r]) ? e[r].join(", ") : e[r];
1022
- s.push({
1007
+ a.push({
1023
1008
  key: r,
1024
1009
  value: c,
1025
1010
  isImage: this.checkIfImage(e[r])
1026
1011
  });
1027
1012
  }
1028
- return s;
1013
+ return a;
1029
1014
  }
1030
1015
  static checkIfImage(e) {
1031
1016
  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);
1032
1017
  }
1033
1018
  static getAllFields(e, t) {
1034
- const a = t.metadata.results.map((r) => r.name), s = [];
1019
+ const s = t.metadata.results.map((r) => r.name), a = [];
1035
1020
  for (const r of Object.keys(e))
1036
- a.indexOf(r) !== -1 && s.push({
1021
+ s.indexOf(r) !== -1 && a.push({
1037
1022
  key: r,
1038
1023
  value: e[r],
1039
1024
  isImage: this.checkIfImage(e[r])
1040
1025
  });
1041
- return s;
1026
+ return a;
1042
1027
  }
1043
1028
  static doesMapExist(e, t) {
1044
- return t.metadata.results.find((a) => a.result_card === e) !== void 0;
1029
+ return t.metadata.results.find((s) => s.result_card === e) !== void 0;
1045
1030
  }
1046
- static getValueByKey(e, t, a) {
1047
- const s = a.metadata.results.find(
1031
+ static getValueByKey(e, t, s) {
1032
+ const a = s.metadata.results.find(
1048
1033
  (c) => c.result_card === e
1049
1034
  );
1050
- if (s === void 0)
1035
+ if (a === void 0)
1051
1036
  return null;
1052
- const r = t[s.name];
1037
+ const r = t[a.name];
1053
1038
  return r === void 0 ? null : typeof r == "string" ? r : Array.isArray(r) ? r.join(", ") : null;
1054
1039
  }
1055
1040
  }
1056
- class st {
1041
+ class et {
1057
1042
  constructor(e) {
1058
- l(this, "routeName", "searchstax"), l(this, "ignoredKeys", []), l(this, "queryStringHelper"), l(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);
1043
+ o(this, "routeName", "searchstax"), o(this, "ignoredKeys", []), o(this, "queryStringHelper"), o(this, "titleParser"), e.routeName && (this.routeName = e.routeName), e.ignoredKeys && (this.ignoredKeys = e.ignoredKeys), e.title && (this.titleParser = e.title), this.queryStringHelper = new At(this.routeName);
1059
1044
  }
1060
1045
  updateUrl(e) {
1061
1046
  const t = this.searchObjectToUrl(e);
1062
- let a = document.title;
1063
- this.titleParser && (a = this.titleParser(e)), document.title = a, window.location.href !== t && window.history.pushState({}, a, t);
1047
+ let s = document.title;
1048
+ this.titleParser && (s = this.titleParser(e)), document.title = s, window.location.href !== t && window.history.pushState({}, s, t);
1064
1049
  }
1065
1050
  searchObjectToUrl(e) {
1066
1051
  return this.queryStringHelper.urlHasQueryParams(window.location.href) ? window.location.href.split("?")[0] + "?" + this.queryStringHelper.stringify(this.searchObjectToParams(e), { ignoredKeys: this.ignoredKeys }) : window.location.href + "?" + this.queryStringHelper.stringify(this.searchObjectToParams(e), { ignoredKeys: this.ignoredKeys });
1067
1052
  }
1068
1053
  searchObjectToParams(e) {
1069
- const t = {}, a = e.page || 1;
1070
- if (e.query && (t[this.routeName + "[query]"] = encodeURIComponent(e.query)), t[this.routeName + "[page]"] = a + "", e.order && (t[this.routeName + "[order]"] = e.order), e.facets)
1071
- for (const s in e.facets) {
1072
- const r = e.facets[s].type + ":" + encodeURIComponent(e.facets[s].name) + ":" + encodeURIComponent(e.facets[s].value);
1073
- t[this.routeName + `[facets][${s}]`] = r;
1054
+ const t = {}, s = e.page || 1;
1055
+ if (e.query && (t[this.routeName + "[query]"] = encodeURIComponent(e.query)), t[this.routeName + "[page]"] = s + "", e.order && (t[this.routeName + "[order]"] = e.order), e.facets)
1056
+ for (const a in e.facets) {
1057
+ const r = e.facets[a].type + ":" + encodeURIComponent(e.facets[a].name) + ":" + encodeURIComponent(e.facets[a].value);
1058
+ t[this.routeName + `[facets][${a}]`] = r;
1074
1059
  }
1075
1060
  if (this.queryStringHelper.urlHasQueryParams(window.location.href)) {
1076
- const s = this.queryStringHelper.urlToParams(window.location.href);
1077
- for (const r in s)
1078
- r.startsWith(this.routeName) && delete s[r];
1079
- return { ...s, ...t };
1061
+ const a = this.queryStringHelper.urlToParams(window.location.href);
1062
+ for (const r in a)
1063
+ r.startsWith(this.routeName) && delete a[r];
1064
+ return { ...a, ...t };
1080
1065
  } else
1081
1066
  return t;
1082
1067
  }
1083
1068
  extractParamsThatDoNotStartWithRouteName(e) {
1084
1069
  const t = {};
1085
- for (const a in e)
1086
- a.startsWith(this.routeName) || (t[a] = e[a]);
1070
+ for (const s in e)
1071
+ s.startsWith(this.routeName) || (t[s] = e[s]);
1087
1072
  return t;
1088
1073
  }
1089
1074
  extractArrayOfFacetsFromQueryParameters(e) {
1090
- var t, a, s;
1075
+ var t, s, a;
1091
1076
  const r = [];
1092
1077
  for (const c in e)
1093
1078
  if (c.startsWith(this.routeName + "[facets]")) {
1094
- const o = Q.removeXSSRiskyTags((t = e[c].split(":")) == null ? void 0 : t[0]), h = Q.removeXSSRiskyTags(decodeURIComponent((a = e[c].split(":")) == null ? void 0 : a[1])), u = Q.removeXSSRiskyTags(decodeURIComponent((s = e[c].split(":")) == null ? void 0 : s[2]));
1095
- r.push({ type: o, name: h, value: u });
1079
+ const l = z.removeXSSRiskyTags((t = e[c].split(":")) == null ? void 0 : t[0]), h = z.removeXSSRiskyTags(decodeURIComponent((s = e[c].split(":")) == null ? void 0 : s[1])), u = z.removeXSSRiskyTags(decodeURIComponent((a = e[c].split(":")) == null ? void 0 : a[2]));
1080
+ r.push({ type: l, name: h, value: u });
1096
1081
  }
1097
1082
  return r;
1098
1083
  }
1099
1084
  urlToSearchObject(e) {
1100
- const t = this.queryStringHelper.urlToParams(e), a = Q.removeXSSRiskyTags(decodeURIComponent(t[this.routeName + "[page]"])), s = parseInt(a), r = isNaN(s) ? 1 : s;
1085
+ const t = this.queryStringHelper.urlToParams(e), s = z.removeXSSRiskyTags(decodeURIComponent(t[this.routeName + "[page]"])), a = parseInt(s), r = isNaN(a) ? 1 : a;
1101
1086
  return {
1102
- query: Q.removeXSSRiskyTags(decodeURIComponent(t[this.routeName + "[query]"])) || "",
1087
+ query: z.removeXSSRiskyTags(decodeURIComponent(t[this.routeName + "[query]"])) || "",
1103
1088
  page: r,
1104
- order: Q.removeXSSRiskyTags(t[this.routeName + "[order]"]) || "",
1089
+ order: z.removeXSSRiskyTags(t[this.routeName + "[order]"]) || "",
1105
1090
  facets: this.extractArrayOfFacetsFromQueryParameters(t) || []
1106
1091
  };
1107
1092
  }
1108
1093
  }
1109
- class _t {
1094
+ class At {
1110
1095
  constructor(e) {
1111
- l(this, "routeName", ""), l(this, "stringify", (t, a) => {
1112
- const s = this.filterOutIgnoredKeys(t, a.ignoredKeys);
1113
- return Object.keys(s).map((r) => {
1114
- const c = s[r];
1115
- return Array.isArray(c) ? c.map((o) => `${r}=${o}`).join("&") : `${r}=${c}`;
1096
+ o(this, "routeName", ""), o(this, "stringify", (t, s) => {
1097
+ const a = this.filterOutIgnoredKeys(t, s.ignoredKeys);
1098
+ return Object.keys(a).map((r) => {
1099
+ const c = a[r];
1100
+ return Array.isArray(c) ? c.map((l) => `${r}=${l}`).join("&") : `${r}=${c}`;
1116
1101
  }).join("&");
1117
1102
  }), this.routeName = e;
1118
1103
  }
1119
1104
  filterOutIgnoredKeys(e, t) {
1120
- const a = t || [], s = {};
1105
+ const s = t || [], a = {};
1121
1106
  return Object.keys(e).forEach((r) => {
1122
- a.includes(r) || e[r] !== "" && (s[r] = e[r]);
1123
- }), s;
1107
+ s.includes(r) || e[r] !== "" && (a[r] = e[r]);
1108
+ }), a;
1124
1109
  }
1125
1110
  urlToParams(e) {
1126
- const t = {}, a = e.split("?")[1];
1127
- return a && a.split("&").forEach((s) => {
1128
- const [r, c] = s.split("=");
1111
+ const t = {}, s = e.split("?")[1];
1112
+ return s && s.split("&").forEach((a) => {
1113
+ const [r, c] = a.split("=");
1129
1114
  t[r] = c;
1130
1115
  }), t;
1131
1116
  }
@@ -1136,39 +1121,39 @@ class _t {
1136
1121
  return e.indexOf("?") !== -1;
1137
1122
  }
1138
1123
  }
1139
- class Nt {
1124
+ class Dt {
1140
1125
  constructor(e, t) {
1141
- l(this, "cachedQuery", ""), l(this, "url", ""), l(this, "relatedSearches", ""), l(this, "suggester", ""), l(this, "authHeader"), l(this, "authHeaderRelated"), l(this, "trackApiKey", ""), l(this, "session", ""), l(this, "searchAuthType"), l(this, "searchAuth", ""), l(this, "controllerSearch"), l(this, "signalSearch"), l(this, "controllerSuggest"), l(this, "signalSuggest"), l(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");
1142
- const a = this.searchAuthType === "token" ? `Token ${e.searchAuth}` : `Basic ${e.searchAuth}`;
1143
- this.authHeader.append("Authorization", a), this.authHeaderRelated = new Headers(), this.authHeaderRelated.append("Accept", "application/json"), this.authHeaderRelated.append("Authorization", e.searchAuth);
1126
+ o(this, "cachedQuery", ""), o(this, "url", ""), o(this, "relatedSearches", ""), o(this, "suggester", ""), o(this, "authHeader"), o(this, "authHeaderRelated"), o(this, "trackApiKey", ""), o(this, "session", ""), o(this, "searchAuthType"), o(this, "searchAuth", ""), o(this, "controllerSearch"), o(this, "signalSearch"), o(this, "controllerSuggest"), o(this, "signalSuggest"), o(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");
1127
+ const s = this.searchAuthType === "token" ? `Token ${e.searchAuth}` : `Basic ${e.searchAuth}`;
1128
+ this.authHeader.append("Authorization", s), this.authHeaderRelated = new Headers(), this.authHeaderRelated.append("Accept", "application/json"), this.authHeaderRelated.append("Authorization", e.searchAuth);
1144
1129
  }
1145
1130
  generateFacetQuery(e, t) {
1146
- let a = [];
1131
+ let s = [];
1147
1132
  if (!t)
1148
- e.forEach(function(s) {
1149
- const r = s.name + ':"' + s.value + '"';
1150
- a = a.concat("fq=" + decodeURIComponent(r).replace(" ", " "));
1133
+ e.forEach(function(a) {
1134
+ const r = a.name + ':"' + a.value + '"';
1135
+ s = s.concat("fq=" + decodeURIComponent(r).replace(" ", " "));
1151
1136
  });
1152
1137
  else {
1153
- const s = {};
1138
+ const a = {};
1154
1139
  e.forEach(function(r) {
1155
- const c = r.name + ":" + r.value, o = decodeURIComponent(c).replace(" ", " ").split(":");
1156
- s[o[0]] ? s[o[0]].push(o[1]) : s[o[0]] = [o[1]];
1140
+ const c = r.name + ":" + r.value, l = decodeURIComponent(c).replace(" ", " ").split(":");
1141
+ a[l[0]] ? a[l[0]].push(l[1]) : a[l[0]] = [l[1]];
1157
1142
  });
1158
- for (const r in s)
1159
- if (Object.prototype.hasOwnProperty.call(s, r)) {
1160
- const c = s[r], o = r;
1143
+ for (const r in a)
1144
+ if (Object.prototype.hasOwnProperty.call(a, r)) {
1145
+ const c = a[r], l = r;
1161
1146
  let h = "";
1162
1147
  for (const u of c)
1163
- h += ` ${o}:"${u}"`;
1164
- a = a.concat("fq=" + h.trim());
1148
+ h += ` ${l}:"${u}"`;
1149
+ s = s.concat("fq=" + h.trim());
1165
1150
  }
1166
1151
  }
1167
- return a.length ? "&" + a.join("&") : "";
1152
+ return s.length ? "&" + s.join("&") : "";
1168
1153
  }
1169
- getRelatedSearches(e, t, a, s) {
1154
+ getRelatedSearches(e, t, s, a) {
1170
1155
  const r = new Headers();
1171
- r.append("Accept", "application/json"), r.append("Authorization", a), fetch(
1156
+ r.append("Accept", "application/json"), r.append("Authorization", s), fetch(
1172
1157
  t + "?search=" + encodeURIComponent(e.query) + "&language=" + this.dataLayer.language,
1173
1158
  {
1174
1159
  method: "GET",
@@ -1176,7 +1161,7 @@ class Nt {
1176
1161
  credentials: "same-origin"
1177
1162
  }
1178
1163
  ).then((c) => c.json()).then((c) => {
1179
- s(c);
1164
+ a(c);
1180
1165
  });
1181
1166
  }
1182
1167
  cacheFacets() {
@@ -1192,40 +1177,40 @@ class Nt {
1192
1177
  ));
1193
1178
  }
1194
1179
  cacheFacetsCallback(e) {
1195
- let t = ce.extractFacets(e);
1180
+ let t = oe.extractFacets(e);
1196
1181
  this.dataLayer.setSearchFacetsCached(t);
1197
1182
  }
1198
- search(e, t, a = !1, s = !1) {
1183
+ search(e, t, s = !1, a = !1) {
1199
1184
  if (e.query && e.query !== "undefined") {
1200
1185
  this.dataLayer.setSearchTerm(e.query), this.dataLayer.setLoading(!0), this.controllerSearch && this.controllerSearch.abort(), this.controllerSearch = new AbortController(), this.signalSearch = this.controllerSearch.signal;
1201
1186
  const r = new Proxy(new URLSearchParams(window.location.search), {
1202
- get: (p, v) => p.get(v) ?? ""
1187
+ get: (g, m) => g.get(m) ?? ""
1203
1188
  }), c = r.languageVariant ? (
1204
1189
  //@ts-expect-error - this is a hack to get around the fact that the urlQueryParams is a proxy
1205
1190
  "&fq=_language:" + r.languageVariant
1206
- ) : "", o = e.order ? `&sort=${e.order}` : "", h = this.url + "?q=" + encodeURIComponent(e.query.trim()) + "&start=" + (e.page - 1) + this.toQueryString(e.additionalProps ?? []) + this.generateFacetQuery(
1207
- e.facets.filter((p) => p.type === "or" || p.type === "showUnavailable"),
1191
+ ) : "", l = e.order ? `&sort=${e.order}` : "", h = this.url + "?q=" + encodeURIComponent(e.query.trim()) + "&start=" + (e.page - 1) + this.toQueryString(e.additionalProps ?? []) + this.generateFacetQuery(
1192
+ e.facets.filter((g) => g.type === "or" || g.type === "showUnavailable"),
1208
1193
  !0
1209
1194
  ) + this.generateFacetQuery(
1210
- e.facets.filter((p) => p.type === "and" || p.type === "tabs"),
1195
+ e.facets.filter((g) => g.type === "and" || g.type === "tabs"),
1211
1196
  !1
1212
- ) + o + `&spellcheck.correct=${this.dataLayer.autoCorrect && !s}&language=` + this.dataLayer.language + c, u = {
1197
+ ) + l + `&spellcheck.correct=${this.dataLayer.autoCorrect && !a}&language=` + this.dataLayer.language + c, u = {
1213
1198
  method: "GET",
1214
1199
  headers: this.authHeader,
1215
1200
  credentials: "same-origin",
1216
1201
  signal: this.signalSearch
1217
1202
  };
1218
- a && delete u.signal, fetch(h, u).then((p) => p.json()).then((p) => {
1219
- this.dataLayer.setLoading(!1), t(p);
1203
+ s && delete u.signal, fetch(h, u).then((g) => g.json()).then((g) => {
1204
+ this.dataLayer.setLoading(!1), t(g);
1220
1205
  }).catch(() => {
1221
1206
  this.dataLayer.setLoading(!1);
1222
1207
  });
1223
1208
  }
1224
1209
  }
1225
- suggest(e, t, a) {
1210
+ suggest(e, t, s) {
1226
1211
  this.controllerSuggest && this.controllerSuggest.abort(), this.controllerSuggest = new AbortController(), this.signalSuggest = this.controllerSuggest.signal;
1227
- const s = this.suggester + "?q=" + e.trim() + this.toQueryString(a) + "&language=" + this.dataLayer.language;
1228
- fetch(s, {
1212
+ const a = this.suggester + "?q=" + e.trim() + this.toQueryString(s) + "&language=" + this.dataLayer.language;
1213
+ fetch(a, {
1229
1214
  method: "GET",
1230
1215
  headers: this.authHeader,
1231
1216
  credentials: "same-origin",
@@ -1242,12 +1227,12 @@ class Nt {
1242
1227
  if (e.length === 0)
1243
1228
  return "";
1244
1229
  const t = [];
1245
- for (const a of e)
1246
- t.push(encodeURIComponent(a.key) + "=" + encodeURIComponent(a.value));
1230
+ for (const s of e)
1231
+ t.push(encodeURIComponent(s.key) + "=" + encodeURIComponent(s.value));
1247
1232
  return "&" + t.join("&");
1248
1233
  }
1249
1234
  }
1250
- class Vt {
1235
+ class $t {
1251
1236
  static getOrSetCookie(e) {
1252
1237
  let t = this.getCookie(e);
1253
1238
  return t == null && (t = this.makeid(25), this.setCookie(e, t, {
@@ -1257,9 +1242,9 @@ class Vt {
1257
1242
  }
1258
1243
  static makeid(e) {
1259
1244
  let t = "";
1260
- const a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", s = a.length;
1245
+ const s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", a = s.length;
1261
1246
  for (let r = 0; r < e; r++)
1262
- t += a.charAt(Math.floor(Math.random() * s));
1247
+ t += s.charAt(Math.floor(Math.random() * a));
1263
1248
  return t;
1264
1249
  }
1265
1250
  static getCookie(e) {
@@ -1270,19 +1255,19 @@ class Vt {
1270
1255
  );
1271
1256
  return t ? decodeURIComponent(t[1]) : void 0;
1272
1257
  }
1273
- static setCookie(e, t, a) {
1274
- const s = { path: "/", ...a };
1275
- a.expires instanceof Date && (s.expires = a.expires.toUTCString());
1258
+ static setCookie(e, t, s) {
1259
+ const a = { path: "/", ...s };
1260
+ s.expires instanceof Date && (a.expires = s.expires.toUTCString());
1276
1261
  let r = encodeURIComponent(e) + "=" + encodeURIComponent(t);
1277
- for (const c in s) {
1262
+ for (const c in a) {
1278
1263
  r += "; " + c;
1279
- const o = s[c];
1280
- o !== !0 && (r += "=" + o);
1264
+ const l = a[c];
1265
+ l !== !0 && (r += "=" + l);
1281
1266
  }
1282
1267
  document.cookie = r;
1283
1268
  }
1284
1269
  }
1285
- class oe {
1270
+ class he {
1286
1271
  static trackClick(e) {
1287
1272
  const t = {
1288
1273
  key: e.trackApiKey,
@@ -1348,38 +1333,38 @@ class oe {
1348
1333
  }, 0);
1349
1334
  }
1350
1335
  }
1351
- l(oe, "msq", window._msq || []);
1336
+ o(he, "msq", window._msq || []);
1352
1337
  /*!
1353
1338
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
1354
1339
  * http://github.com/janl/mustache.js
1355
1340
  */
1356
- var Ht = Object.prototype.toString, ae = Array.isArray || function(n) {
1357
- return Ht.call(n) === "[object Array]";
1341
+ var qt = Object.prototype.toString, re = Array.isArray || function(n) {
1342
+ return qt.call(n) === "[object Array]";
1358
1343
  };
1359
- function we(n) {
1344
+ function Ie(n) {
1360
1345
  return typeof n == "function";
1361
1346
  }
1362
- function Bt(n) {
1363
- return ae(n) ? "array" : typeof n;
1347
+ function _t(n) {
1348
+ return re(n) ? "array" : typeof n;
1364
1349
  }
1365
1350
  function ke(n) {
1366
1351
  return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
1367
1352
  }
1368
- function rt(n, e) {
1353
+ function tt(n, e) {
1369
1354
  return n != null && typeof n == "object" && e in n;
1370
1355
  }
1371
- function Ut(n, e) {
1356
+ function Nt(n, e) {
1372
1357
  return n != null && typeof n != "object" && n.hasOwnProperty && n.hasOwnProperty(e);
1373
1358
  }
1374
- var Wt = RegExp.prototype.test;
1375
- function Kt(n, e) {
1376
- return Wt.call(n, e);
1359
+ var Vt = RegExp.prototype.test;
1360
+ function Ht(n, e) {
1361
+ return Vt.call(n, e);
1377
1362
  }
1378
- var Qt = /\S/;
1379
- function zt(n) {
1380
- return !Kt(Qt, n);
1363
+ var Bt = /\S/;
1364
+ function Wt(n) {
1365
+ return !Ht(Bt, n);
1381
1366
  }
1382
- var Yt = {
1367
+ var Ut = {
1383
1368
  "&": "&amp;",
1384
1369
  "<": "&lt;",
1385
1370
  ">": "&gt;",
@@ -1389,88 +1374,88 @@ var Yt = {
1389
1374
  "`": "&#x60;",
1390
1375
  "=": "&#x3D;"
1391
1376
  };
1392
- function Jt(n) {
1377
+ function Qt(n) {
1393
1378
  return String(n).replace(/[&<>"'`=\/]/g, function(e) {
1394
- return Yt[e];
1379
+ return Ut[e];
1395
1380
  });
1396
1381
  }
1397
- var Xt = /\s*/, Gt = /\s+/, it = /\s*=/, Zt = /\s*\}/, ea = /#|\^|\/|>|\{|&|=|!/;
1398
- function ta(n, e) {
1382
+ var Kt = /\s*/, zt = /\s+/, at = /\s*=/, Jt = /\s*\}/, Yt = /#|\^|\/|>|\{|&|=|!/;
1383
+ function Xt(n, e) {
1399
1384
  if (!n)
1400
1385
  return [];
1401
- var t = !1, a = [], s = [], r = [], c = !1, o = !1, h = "", u = 0;
1402
- function p() {
1403
- if (c && !o)
1386
+ var t = !1, s = [], a = [], r = [], c = !1, l = !1, h = "", u = 0;
1387
+ function g() {
1388
+ if (c && !l)
1404
1389
  for (; r.length; )
1405
- delete s[r.pop()];
1390
+ delete a[r.pop()];
1406
1391
  else
1407
1392
  r = [];
1408
- c = !1, o = !1;
1409
- }
1410
- var v, f, x;
1411
- function S(q) {
1412
- if (typeof q == "string" && (q = q.split(Gt, 2)), !ae(q) || q.length !== 2)
1413
- throw new Error("Invalid tags: " + q);
1414
- v = new RegExp(ke(q[0]) + "\\s*"), f = new RegExp("\\s*" + ke(q[1])), x = new RegExp("\\s*" + ke("}" + q[1]));
1415
- }
1416
- S(e || I.tags);
1417
- for (var C = new ue(n), T, P, L, A, $, j; !C.eos(); ) {
1418
- if (T = C.pos, L = C.scanUntil(v), L)
1419
- for (var U = 0, X = L.length; U < X; ++U)
1420
- A = L.charAt(U), zt(A) ? (r.push(s.length), h += A) : (o = !0, t = !0, h += " "), s.push(["text", A, T, T + 1]), T += 1, A === `
1421
- ` && (p(), h = "", u = 0, t = !1);
1422
- if (!C.scan(v))
1393
+ c = !1, l = !1;
1394
+ }
1395
+ var m, y, R;
1396
+ function F(_) {
1397
+ if (typeof _ == "string" && (_ = _.split(zt, 2)), !re(_) || _.length !== 2)
1398
+ throw new Error("Invalid tags: " + _);
1399
+ m = new RegExp(ke(_[0]) + "\\s*"), y = new RegExp("\\s*" + ke(_[1])), R = new RegExp("\\s*" + ke("}" + _[1]));
1400
+ }
1401
+ F(e || E.tags);
1402
+ for (var L = new de(n), x, P, C, D, q, j; !L.eos(); ) {
1403
+ if (x = L.pos, C = L.scanUntil(m), C)
1404
+ for (var U = 0, G = C.length; U < G; ++U)
1405
+ D = C.charAt(U), Wt(D) ? (r.push(a.length), h += D) : (l = !0, t = !0, h += " "), a.push(["text", D, x, x + 1]), x += 1, D === `
1406
+ ` && (g(), h = "", u = 0, t = !1);
1407
+ if (!L.scan(m))
1423
1408
  break;
1424
- if (c = !0, P = C.scan(ea) || "name", C.scan(Xt), P === "=" ? (L = C.scanUntil(it), C.scan(it), C.scanUntil(f)) : P === "{" ? (L = C.scanUntil(x), C.scan(Zt), C.scanUntil(f), P = "&") : L = C.scanUntil(f), !C.scan(f))
1425
- throw new Error("Unclosed tag at " + C.pos);
1426
- if (P == ">" ? $ = [P, L, T, C.pos, h, u, t] : $ = [P, L, T, C.pos], u++, s.push($), P === "#" || P === "^")
1427
- a.push($);
1409
+ if (c = !0, P = L.scan(Yt) || "name", L.scan(Kt), P === "=" ? (C = L.scanUntil(at), L.scan(at), L.scanUntil(y)) : P === "{" ? (C = L.scanUntil(R), L.scan(Jt), L.scanUntil(y), P = "&") : C = L.scanUntil(y), !L.scan(y))
1410
+ throw new Error("Unclosed tag at " + L.pos);
1411
+ if (P == ">" ? q = [P, C, x, L.pos, h, u, t] : q = [P, C, x, L.pos], u++, a.push(q), P === "#" || P === "^")
1412
+ s.push(q);
1428
1413
  else if (P === "/") {
1429
- if (j = a.pop(), !j)
1430
- throw new Error('Unopened section "' + L + '" at ' + T);
1431
- if (j[1] !== L)
1432
- throw new Error('Unclosed section "' + j[1] + '" at ' + T);
1414
+ if (j = s.pop(), !j)
1415
+ throw new Error('Unopened section "' + C + '" at ' + x);
1416
+ if (j[1] !== C)
1417
+ throw new Error('Unclosed section "' + j[1] + '" at ' + x);
1433
1418
  } else
1434
- P === "name" || P === "{" || P === "&" ? o = !0 : P === "=" && S(L);
1419
+ P === "name" || P === "{" || P === "&" ? l = !0 : P === "=" && F(C);
1435
1420
  }
1436
- if (p(), j = a.pop(), j)
1437
- throw new Error('Unclosed section "' + j[1] + '" at ' + C.pos);
1438
- return sa(aa(s));
1421
+ if (g(), j = s.pop(), j)
1422
+ throw new Error('Unclosed section "' + j[1] + '" at ' + L.pos);
1423
+ return Zt(Gt(a));
1439
1424
  }
1440
- function aa(n) {
1441
- for (var e = [], t, a, s = 0, r = n.length; s < r; ++s)
1442
- t = n[s], t && (t[0] === "text" && a && a[0] === "text" ? (a[1] += t[1], a[3] = t[3]) : (e.push(t), a = t));
1425
+ function Gt(n) {
1426
+ for (var e = [], t, s, a = 0, r = n.length; a < r; ++a)
1427
+ t = n[a], t && (t[0] === "text" && s && s[0] === "text" ? (s[1] += t[1], s[3] = t[3]) : (e.push(t), s = t));
1443
1428
  return e;
1444
1429
  }
1445
- function sa(n) {
1446
- for (var e = [], t = e, a = [], s, r, c = 0, o = n.length; c < o; ++c)
1447
- switch (s = n[c], s[0]) {
1430
+ function Zt(n) {
1431
+ for (var e = [], t = e, s = [], a, r, c = 0, l = n.length; c < l; ++c)
1432
+ switch (a = n[c], a[0]) {
1448
1433
  case "#":
1449
1434
  case "^":
1450
- t.push(s), a.push(s), t = s[4] = [];
1435
+ t.push(a), s.push(a), t = a[4] = [];
1451
1436
  break;
1452
1437
  case "/":
1453
- r = a.pop(), r[5] = s[2], t = a.length > 0 ? a[a.length - 1][4] : e;
1438
+ r = s.pop(), r[5] = a[2], t = s.length > 0 ? s[s.length - 1][4] : e;
1454
1439
  break;
1455
1440
  default:
1456
- t.push(s);
1441
+ t.push(a);
1457
1442
  }
1458
1443
  return e;
1459
1444
  }
1460
- function ue(n) {
1445
+ function de(n) {
1461
1446
  this.string = n, this.tail = n, this.pos = 0;
1462
1447
  }
1463
- ue.prototype.eos = function() {
1448
+ de.prototype.eos = function() {
1464
1449
  return this.tail === "";
1465
1450
  };
1466
- ue.prototype.scan = function(n) {
1451
+ de.prototype.scan = function(n) {
1467
1452
  var e = this.tail.match(n);
1468
1453
  if (!e || e.index !== 0)
1469
1454
  return "";
1470
1455
  var t = e[0];
1471
1456
  return this.tail = this.tail.substring(t.length), this.pos += t.length, t;
1472
1457
  };
1473
- ue.prototype.scanUntil = function(n) {
1458
+ de.prototype.scanUntil = function(n) {
1474
1459
  var e = this.tail.search(n), t;
1475
1460
  switch (e) {
1476
1461
  case -1:
@@ -1484,34 +1469,34 @@ ue.prototype.scanUntil = function(n) {
1484
1469
  }
1485
1470
  return this.pos += t.length, t;
1486
1471
  };
1487
- function te(n, e) {
1472
+ function ae(n, e) {
1488
1473
  this.view = n, this.cache = { ".": this.view }, this.parent = e;
1489
1474
  }
1490
- te.prototype.push = function(n) {
1491
- return new te(n, this);
1475
+ ae.prototype.push = function(n) {
1476
+ return new ae(n, this);
1492
1477
  };
1493
- te.prototype.lookup = function(n) {
1478
+ ae.prototype.lookup = function(n) {
1494
1479
  var e = this.cache, t;
1495
1480
  if (e.hasOwnProperty(n))
1496
1481
  t = e[n];
1497
1482
  else {
1498
- for (var a = this, s, r, c, o = !1; a; ) {
1483
+ for (var s = this, a, r, c, l = !1; s; ) {
1499
1484
  if (n.indexOf(".") > 0)
1500
- for (s = a.view, r = n.split("."), c = 0; s != null && c < r.length; )
1501
- c === r.length - 1 && (o = rt(s, r[c]) || Ut(s, r[c])), s = s[r[c++]];
1485
+ for (a = s.view, r = n.split("."), c = 0; a != null && c < r.length; )
1486
+ c === r.length - 1 && (l = tt(a, r[c]) || Nt(a, r[c])), a = a[r[c++]];
1502
1487
  else
1503
- s = a.view[n], o = rt(a.view, n);
1504
- if (o) {
1505
- t = s;
1488
+ a = s.view[n], l = tt(s.view, n);
1489
+ if (l) {
1490
+ t = a;
1506
1491
  break;
1507
1492
  }
1508
- a = a.parent;
1493
+ s = s.parent;
1509
1494
  }
1510
1495
  e[n] = t;
1511
1496
  }
1512
- return we(t) && (t = t.call(this.view)), t;
1497
+ return Ie(t) && (t = t.call(this.view)), t;
1513
1498
  };
1514
- function N() {
1499
+ function V() {
1515
1500
  this.templateCache = {
1516
1501
  _cache: {},
1517
1502
  set: function(n, e) {
@@ -1525,86 +1510,86 @@ function N() {
1525
1510
  }
1526
1511
  };
1527
1512
  }
1528
- N.prototype.clearCache = function() {
1513
+ V.prototype.clearCache = function() {
1529
1514
  typeof this.templateCache < "u" && this.templateCache.clear();
1530
1515
  };
1531
- N.prototype.parse = function(n, e) {
1532
- var t = this.templateCache, a = n + ":" + (e || I.tags).join(":"), s = typeof t < "u", r = s ? t.get(a) : void 0;
1533
- return r == null && (r = ta(n, e), s && t.set(a, r)), r;
1516
+ V.prototype.parse = function(n, e) {
1517
+ var t = this.templateCache, s = n + ":" + (e || E.tags).join(":"), a = typeof t < "u", r = a ? t.get(s) : void 0;
1518
+ return r == null && (r = Xt(n, e), a && t.set(s, r)), r;
1534
1519
  };
1535
- N.prototype.render = function(n, e, t, a) {
1536
- var s = this.getConfigTags(a), r = this.parse(n, s), c = e instanceof te ? e : new te(e, void 0);
1537
- return this.renderTokens(r, c, t, n, a);
1520
+ V.prototype.render = function(n, e, t, s) {
1521
+ var a = this.getConfigTags(s), r = this.parse(n, a), c = e instanceof ae ? e : new ae(e, void 0);
1522
+ return this.renderTokens(r, c, t, n, s);
1538
1523
  };
1539
- N.prototype.renderTokens = function(n, e, t, a, s) {
1540
- for (var r = "", c, o, h, u = 0, p = n.length; u < p; ++u)
1541
- h = void 0, c = n[u], o = c[0], o === "#" ? h = this.renderSection(c, e, t, a, s) : o === "^" ? h = this.renderInverted(c, e, t, a, s) : o === ">" ? h = this.renderPartial(c, e, t, s) : o === "&" ? h = this.unescapedValue(c, e) : o === "name" ? h = this.escapedValue(c, e, s) : o === "text" && (h = this.rawValue(c)), h !== void 0 && (r += h);
1524
+ V.prototype.renderTokens = function(n, e, t, s, a) {
1525
+ for (var r = "", c, l, h, u = 0, g = n.length; u < g; ++u)
1526
+ h = void 0, c = n[u], l = c[0], l === "#" ? h = this.renderSection(c, e, t, s, a) : l === "^" ? h = this.renderInverted(c, e, t, s, a) : l === ">" ? h = this.renderPartial(c, e, t, a) : l === "&" ? h = this.unescapedValue(c, e) : l === "name" ? h = this.escapedValue(c, e, a) : l === "text" && (h = this.rawValue(c)), h !== void 0 && (r += h);
1542
1527
  return r;
1543
1528
  };
1544
- N.prototype.renderSection = function(n, e, t, a, s) {
1545
- var r = this, c = "", o = e.lookup(n[1]);
1546
- function h(v) {
1547
- return r.render(v, e, t, s);
1548
- }
1549
- if (o) {
1550
- if (ae(o))
1551
- for (var u = 0, p = o.length; u < p; ++u)
1552
- c += this.renderTokens(n[4], e.push(o[u]), t, a, s);
1553
- else if (typeof o == "object" || typeof o == "string" || typeof o == "number")
1554
- c += this.renderTokens(n[4], e.push(o), t, a, s);
1555
- else if (we(o)) {
1556
- if (typeof a != "string")
1529
+ V.prototype.renderSection = function(n, e, t, s, a) {
1530
+ var r = this, c = "", l = e.lookup(n[1]);
1531
+ function h(m) {
1532
+ return r.render(m, e, t, a);
1533
+ }
1534
+ if (l) {
1535
+ if (re(l))
1536
+ for (var u = 0, g = l.length; u < g; ++u)
1537
+ c += this.renderTokens(n[4], e.push(l[u]), t, s, a);
1538
+ else if (typeof l == "object" || typeof l == "string" || typeof l == "number")
1539
+ c += this.renderTokens(n[4], e.push(l), t, s, a);
1540
+ else if (Ie(l)) {
1541
+ if (typeof s != "string")
1557
1542
  throw new Error("Cannot use higher-order sections without the original template");
1558
- o = o.call(e.view, a.slice(n[3], n[5]), h), o != null && (c += o);
1543
+ l = l.call(e.view, s.slice(n[3], n[5]), h), l != null && (c += l);
1559
1544
  } else
1560
- c += this.renderTokens(n[4], e, t, a, s);
1545
+ c += this.renderTokens(n[4], e, t, s, a);
1561
1546
  return c;
1562
1547
  }
1563
1548
  };
1564
- N.prototype.renderInverted = function(n, e, t, a, s) {
1549
+ V.prototype.renderInverted = function(n, e, t, s, a) {
1565
1550
  var r = e.lookup(n[1]);
1566
- if (!r || ae(r) && r.length === 0)
1567
- return this.renderTokens(n[4], e, t, a, s);
1551
+ if (!r || re(r) && r.length === 0)
1552
+ return this.renderTokens(n[4], e, t, s, a);
1568
1553
  };
1569
- N.prototype.indentPartial = function(n, e, t) {
1570
- for (var a = e.replace(/[^ \t]/g, ""), s = n.split(`
1571
- `), r = 0; r < s.length; r++)
1572
- s[r].length && (r > 0 || !t) && (s[r] = a + s[r]);
1573
- return s.join(`
1554
+ V.prototype.indentPartial = function(n, e, t) {
1555
+ for (var s = e.replace(/[^ \t]/g, ""), a = n.split(`
1556
+ `), r = 0; r < a.length; r++)
1557
+ a[r].length && (r > 0 || !t) && (a[r] = s + a[r]);
1558
+ return a.join(`
1574
1559
  `);
1575
1560
  };
1576
- N.prototype.renderPartial = function(n, e, t, a) {
1561
+ V.prototype.renderPartial = function(n, e, t, s) {
1577
1562
  if (t) {
1578
- var s = this.getConfigTags(a), r = we(t) ? t(n[1]) : t[n[1]];
1563
+ var a = this.getConfigTags(s), r = Ie(t) ? t(n[1]) : t[n[1]];
1579
1564
  if (r != null) {
1580
- var c = n[6], o = n[5], h = n[4], u = r;
1581
- o == 0 && h && (u = this.indentPartial(r, h, c));
1582
- var p = this.parse(u, s);
1583
- return this.renderTokens(p, e, t, u, a);
1565
+ var c = n[6], l = n[5], h = n[4], u = r;
1566
+ l == 0 && h && (u = this.indentPartial(r, h, c));
1567
+ var g = this.parse(u, a);
1568
+ return this.renderTokens(g, e, t, u, s);
1584
1569
  }
1585
1570
  }
1586
1571
  };
1587
- N.prototype.unescapedValue = function(n, e) {
1572
+ V.prototype.unescapedValue = function(n, e) {
1588
1573
  var t = e.lookup(n[1]);
1589
1574
  if (t != null)
1590
1575
  return t;
1591
1576
  };
1592
- N.prototype.escapedValue = function(n, e, t) {
1593
- var a = this.getConfigEscape(t) || I.escape, s = e.lookup(n[1]);
1594
- if (s != null)
1595
- return typeof s == "number" && a === I.escape ? String(s) : a(s);
1577
+ V.prototype.escapedValue = function(n, e, t) {
1578
+ var s = this.getConfigEscape(t) || E.escape, a = e.lookup(n[1]);
1579
+ if (a != null)
1580
+ return typeof a == "number" && s === E.escape ? String(a) : s(a);
1596
1581
  };
1597
- N.prototype.rawValue = function(n) {
1582
+ V.prototype.rawValue = function(n) {
1598
1583
  return n[1];
1599
1584
  };
1600
- N.prototype.getConfigTags = function(n) {
1601
- return ae(n) ? n : n && typeof n == "object" ? n.tags : void 0;
1585
+ V.prototype.getConfigTags = function(n) {
1586
+ return re(n) ? n : n && typeof n == "object" ? n.tags : void 0;
1602
1587
  };
1603
- N.prototype.getConfigEscape = function(n) {
1604
- if (n && typeof n == "object" && !ae(n))
1588
+ V.prototype.getConfigEscape = function(n) {
1589
+ if (n && typeof n == "object" && !re(n))
1605
1590
  return n.escape;
1606
1591
  };
1607
- var I = {
1592
+ var E = {
1608
1593
  name: "mustache.js",
1609
1594
  version: "4.2.0",
1610
1595
  tags: ["{{", "}}"],
@@ -1621,31 +1606,31 @@ var I = {
1621
1606
  * the cache by setting it to the literal `undefined`.
1622
1607
  */
1623
1608
  set templateCache(n) {
1624
- he.templateCache = n;
1609
+ ue.templateCache = n;
1625
1610
  },
1626
1611
  /**
1627
1612
  * Gets the default or overridden caching object from the default writer.
1628
1613
  */
1629
1614
  get templateCache() {
1630
- return he.templateCache;
1615
+ return ue.templateCache;
1631
1616
  }
1632
- }, he = new N();
1633
- I.clearCache = function() {
1634
- return he.clearCache();
1617
+ }, ue = new V();
1618
+ E.clearCache = function() {
1619
+ return ue.clearCache();
1635
1620
  };
1636
- I.parse = function(n, e) {
1637
- return he.parse(n, e);
1621
+ E.parse = function(n, e) {
1622
+ return ue.parse(n, e);
1638
1623
  };
1639
- I.render = function(n, e, t, a) {
1624
+ E.render = function(n, e, t, s) {
1640
1625
  if (typeof n != "string")
1641
- throw new TypeError('Invalid template! Template should be a "string" but "' + Bt(n) + '" was given as the first argument for mustache#render(template, view, partials)');
1642
- return he.render(n, e, t, a);
1626
+ throw new TypeError('Invalid template! Template should be a "string" but "' + _t(n) + '" was given as the first argument for mustache#render(template, view, partials)');
1627
+ return ue.render(n, e, t, s);
1643
1628
  };
1644
- I.escape = Jt;
1645
- I.Scanner = ue;
1646
- I.Context = te;
1647
- I.Writer = N;
1648
- const ra = {
1629
+ E.escape = Qt;
1630
+ E.Scanner = de;
1631
+ E.Context = ae;
1632
+ E.Writer = V;
1633
+ const ea = {
1649
1634
  mainTemplate: {
1650
1635
  template: `
1651
1636
  {{#hasExternalPromotions}}
@@ -1679,7 +1664,7 @@ const ra = {
1679
1664
  </div>
1680
1665
  `
1681
1666
  }
1682
- }, ia = {
1667
+ }, ta = {
1683
1668
  mainTemplateDesktop: {
1684
1669
  template: `
1685
1670
  {{#hasResultsOrExternalPromotions}}
@@ -1782,7 +1767,7 @@ const ra = {
1782
1767
  `,
1783
1768
  containerClass: "searchstax-facets-pill-facets"
1784
1769
  }
1785
- }, na = {
1770
+ }, aa = {
1786
1771
  mainTemplate: {
1787
1772
  template: `
1788
1773
  {{#results.length}}
@@ -1800,7 +1785,7 @@ const ra = {
1800
1785
  nextButtonClass: "searchstax-pagination-next",
1801
1786
  previousButtonClass: "searchstax-pagination-previous"
1802
1787
  }
1803
- }, ca = {
1788
+ }, sa = {
1804
1789
  main: {
1805
1790
  template: `
1806
1791
  {{#hasRelatedSearches}}
@@ -1824,7 +1809,7 @@ const ra = {
1824
1809
  `,
1825
1810
  relatedSearchContainerClass: "searchstax-related-search-item"
1826
1811
  }
1827
- }, oa = {
1812
+ }, ra = {
1828
1813
  main: {
1829
1814
  template: `
1830
1815
  {{#searchExecuted}}
@@ -1842,7 +1827,7 @@ const ra = {
1842
1827
  `,
1843
1828
  originalQueryClass: "searchstax-feedback-original-query"
1844
1829
  }
1845
- }, la = {
1830
+ }, ia = {
1846
1831
  mainTemplate: {
1847
1832
  template: `
1848
1833
  <div class="searchstax-search-input-container">
@@ -1859,7 +1844,7 @@ const ra = {
1859
1844
  <div class="searchstax-autosuggest-item-term-container">{{{term}}}</div>
1860
1845
  `
1861
1846
  }
1862
- }, ha = {
1847
+ }, na = {
1863
1848
  mainTemplate: {
1864
1849
  template: `
1865
1850
  <div class="searchstax-search-results-container">
@@ -1935,7 +1920,7 @@ const ra = {
1935
1920
  </div>
1936
1921
  `
1937
1922
  }
1938
- }, ua = {
1923
+ }, ca = {
1939
1924
  main: {
1940
1925
  template: `
1941
1926
  {{#searchExecuted}}
@@ -1960,14 +1945,14 @@ const ra = {
1960
1945
  selectId: "searchstax-search-order-select"
1961
1946
  }
1962
1947
  };
1963
- class y {
1948
+ class v {
1964
1949
  }
1965
- l(y, "externalPromotions", ra), l(y, "facets", ia), l(y, "pagination", na), l(y, "relatedSearches", ca), l(y, "searchFeedback", oa), l(y, "searchInput", la), l(y, "searchResults", ha), l(y, "sorting", ua);
1966
- class da {
1950
+ o(v, "externalPromotions", ea), o(v, "facets", ta), o(v, "pagination", aa), o(v, "relatedSearches", sa), o(v, "searchFeedback", ra), o(v, "searchInput", ia), o(v, "searchResults", na), o(v, "sorting", ca);
1951
+ class la {
1967
1952
  constructor(e) {
1968
- l(this, "dataLayer"), l(this, "config"), l(this, "containerId"), l(this, "externalPromotionsContainerId"), l(this, "searchExternalPromotionsMainContainer", null);
1969
- var t, a;
1970
- this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.externalPromotionsContainerId = ((a = (t = this.config.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : a.externalPromotionsContainerId) || y.externalPromotions.mainTemplate.externalPromotionsContainerId, this.searchExternalPromotionsMainContainer = document.getElementById(
1953
+ o(this, "dataLayer"), o(this, "config"), o(this, "containerId"), o(this, "externalPromotionsContainerId"), o(this, "searchExternalPromotionsMainContainer", null);
1954
+ var t, s;
1955
+ this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.externalPromotionsContainerId = ((s = (t = this.config.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : s.externalPromotionsContainerId) || v.externalPromotions.mainTemplate.externalPromotionsContainerId, this.searchExternalPromotionsMainContainer = document.getElementById(
1971
1956
  this.containerId
1972
1957
  ), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
1973
1958
  }
@@ -1984,43 +1969,43 @@ class da {
1984
1969
  return this.dataLayer.setExternalPromotionsData(e), e;
1985
1970
  }
1986
1971
  addExternalSearch(e) {
1987
- var t, a, s, r;
1972
+ var t, s, a, r;
1988
1973
  const c = document.getElementById(this.externalPromotionsContainerId);
1989
1974
  if (c) {
1990
- const o = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.externalPromotion) == null ? void 0 : s.template) || ((r = y.externalPromotions.externalPromotion) == null ? void 0 : r.template), h = document.createElement("div");
1975
+ const l = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.externalPromotion) == null ? void 0 : a.template) || ((r = v.externalPromotions.externalPromotion) == null ? void 0 : r.template), h = document.createElement("div");
1991
1976
  h.classList.add("searchstax-external-promotion"), h.addEventListener("click", (u) => {
1992
1977
  this.trackClick(e, u);
1993
- }), h.innerHTML = I.render(o, e), c.appendChild(h);
1978
+ }), h.innerHTML = E.render(l, e), c.appendChild(h);
1994
1979
  }
1995
1980
  }
1996
1981
  trackClick(e, t) {
1997
1982
  t.stopPropagation(), t.preventDefault(), window.open(e.url, "_blank");
1998
1983
  }
1999
1984
  renderMainTemplate(e) {
2000
- var t, a, s, r;
2001
- const c = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.mainTemplate) == null ? void 0 : s.template) || ((r = y.externalPromotions.mainTemplate) == null ? void 0 : r.template);
2002
- if (this.dataLayer.renderingEngine === D.mustache) {
1985
+ var t, s, a, r;
1986
+ const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.template) || ((r = v.externalPromotions.mainTemplate) == null ? void 0 : r.template);
1987
+ if (this.dataLayer.renderingEngine === $.mustache) {
2003
1988
  this.searchExternalPromotionsMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
2004
- I.render(c, e);
2005
- const o = document.getElementById(
1989
+ E.render(c, e);
1990
+ const l = document.getElementById(
2006
1991
  this.externalPromotionsContainerId
2007
1992
  );
2008
- o && (o.innerHTML = "");
1993
+ l && (l.innerHTML = "");
2009
1994
  for (const h of e.externalPromotions)
2010
1995
  this.addExternalSearch(h);
2011
1996
  }
2012
1997
  }
2013
1998
  }
2014
- class ga {
1999
+ class oa {
2015
2000
  constructor(e, t) {
2016
- l(this, "dataLayer"), l(this, "config"), l(this, "containerId"), l(this, "routerHelper"), l(this, "cachedPhrase", ""), l(this, "isCached", !1), l(this, "overlayOpened", !1), l(this, "facetPaginationStep"), l(this, "facetPaginationStepMobile"), l(this, "searchFacetsMainContainer", null), l(this, "searchFacetsMobileContainer", null), l(this, "searchFacetsDesktopContainer", null), l(this, "facetLimits", {}), l(this, "facetLimitsMobile", {}), l(this, "deactivatedFacets", {}), l(this, "cachedData", null), l(this, "cacheFacets"), l(this, "onFacetSelect", (a, s, r, c) => {
2017
- if (a.stopPropagation(), !s.disabled) {
2018
- const o = r.querySelector("input");
2019
- o.checked = c ? o.checked : !o.checked;
2001
+ o(this, "dataLayer"), o(this, "config"), o(this, "containerId"), o(this, "routerHelper"), o(this, "cachedPhrase", ""), o(this, "isCached", !1), o(this, "overlayOpened", !1), o(this, "facetPaginationStep"), o(this, "facetPaginationStepMobile"), o(this, "searchFacetsMainContainer", null), o(this, "searchFacetsMobileContainer", null), o(this, "searchFacetsDesktopContainer", null), o(this, "facetLimits", {}), o(this, "facetLimitsMobile", {}), o(this, "deactivatedFacets", {}), o(this, "cachedData", null), o(this, "cacheFacets"), o(this, "onFacetSelect", (s, a, r, c) => {
2002
+ if (s.stopPropagation(), !a.disabled) {
2003
+ const l = r.querySelector("input");
2004
+ l.checked = c ? l.checked : !l.checked;
2020
2005
  const h = this.dataLayer.searchObject;
2021
2006
  let u = [...h.facets];
2022
- const p = this.extractFacetValue(s);
2023
- o.checked ? u.find((v) => B.deepEqual(v, p) ? v : !1) || (this.config.facetingType === "tabs" && (u = u.filter((v) => v.name !== p.name)), u.push(p)) : u = u.filter((v) => !B.deepEqual(v, p)), setTimeout(() => {
2007
+ const g = this.extractFacetValue(a);
2008
+ l.checked ? u.find((m) => W.deepEqual(m, g) ? m : !1) || (this.config.facetingType === "tabs" && (u = u.filter((m) => m.name !== g.name)), u.push(g)) : u = u.filter((m) => !W.deepEqual(m, g)), setTimeout(() => {
2024
2009
  this.dataLayer.setSearchObject({ ...h, facets: u, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
2025
2010
  }, 0);
2026
2011
  }
@@ -2049,138 +2034,138 @@ class ga {
2049
2034
  };
2050
2035
  }
2051
2036
  applyFacetLimits(e, t) {
2052
- const a = t ? this.facetPaginationStepMobile : this.facetPaginationStep, s = t ? this.facetLimits : this.facetLimitsMobile;
2037
+ const s = t ? this.facetPaginationStepMobile : this.facetPaginationStep, a = t ? this.facetLimits : this.facetLimitsMobile;
2053
2038
  return e.forEach((r) => {
2054
- s[r.name] || (s[r.name] = a);
2039
+ a[r.name] || (a[r.name] = s);
2055
2040
  }), e.map((r) => ({
2056
2041
  ...r,
2057
- values: r.values.slice(0, s[r.name]),
2058
- showingAllFacets: r.values.length <= s[r.name],
2059
- hasMoreFacets: r.values.length > a
2042
+ values: r.values.slice(0, a[r.name]),
2043
+ showingAllFacets: r.values.length <= a[r.name],
2044
+ hasMoreFacets: r.values.length > s
2060
2045
  }));
2061
2046
  }
2062
2047
  generateTemplateData(e) {
2063
2048
  if (this.generateSelectedFacetsData(), this.dataLayer.searchFacets) {
2064
2049
  let t = this.dataLayer.searchFacets;
2065
- this.needCache && this.dataLayer.searchFacetsCached && (t = this.dataLayer.searchFacetsCached, this.needDisabling && (t = t.map((s) => {
2050
+ this.needCache && this.dataLayer.searchFacetsCached && (t = this.dataLayer.searchFacetsCached, this.needDisabling && (t = t.map((a) => {
2066
2051
  var r;
2067
- const c = (r = this.dataLayer.searchFacets) == null ? void 0 : r.find((o) => o.name === s.name);
2052
+ const c = (r = this.dataLayer.searchFacets) == null ? void 0 : r.find((l) => l.name === a.name);
2068
2053
  return c ? {
2069
- ...s,
2070
- values: s.values.map((o) => {
2071
- const h = c.values.find((u) => o.type === "range" ? !1 : o.type === "checkbox" ? u.value === o.value : !1);
2054
+ ...a,
2055
+ values: a.values.map((l) => {
2056
+ const h = c.values.find((u) => l.type === "range" ? !1 : l.type === "checkbox" ? u.value === l.value : !1);
2072
2057
  return {
2073
- ...o,
2058
+ ...l,
2074
2059
  disabled: !h,
2075
2060
  isMobile: e
2076
2061
  };
2077
2062
  })
2078
2063
  } : {
2079
- ...s,
2080
- values: s.values.map((o) => ({
2081
- ...o,
2064
+ ...a,
2065
+ values: a.values.map((l) => ({
2066
+ ...l,
2082
2067
  disabled: !0
2083
2068
  })),
2084
2069
  isMobile: e
2085
2070
  };
2086
- }))), this.config.specificFacets && (t = t.filter((s) => {
2071
+ }))), this.config.specificFacets && (t = t.filter((a) => {
2087
2072
  var r;
2088
- return (r = this.config.specificFacets) == null ? void 0 : r.includes(s.name);
2073
+ return (r = this.config.specificFacets) == null ? void 0 : r.includes(a.name);
2089
2074
  }));
2090
- const a = {
2075
+ const s = {
2091
2076
  facets: this.applyFacetLimits(t, e),
2092
2077
  ...this.dataLayer.parsedData.data,
2093
2078
  isMobile: e
2094
2079
  };
2095
- return this.dataLayer.setFacetsTemplateData(a), a;
2080
+ return this.dataLayer.setFacetsTemplateData(s), s;
2096
2081
  } else {
2097
2082
  const t = { facets: [], ...this.dataLayer.parsedData.data, isMobile: e };
2098
2083
  return this.dataLayer.setFacetsTemplateData(t), t;
2099
2084
  }
2100
2085
  }
2101
- createFacetItem(e, t, a) {
2102
- var s, r, c, o, h, u, p, v, f, x, S, C;
2103
- const T = document.createElement("div");
2104
- T.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || T.classList.add("active");
2105
- const P = ((c = (r = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : r.facetItemContainerTemplate) == null ? void 0 : c.template) || ((o = y.facets.facetItemContainerTemplate) == null ? void 0 : o.template);
2106
- T.innerHTML = I.render(P, e), t.appendChild(T);
2107
- const L = T.querySelector(
2108
- "." + (((p = (u = (h = this.config) == null ? void 0 : h.templates) == null ? void 0 : u.facetItemContainerTemplate) == null ? void 0 : p.facetListTitleContainerClass) || ((v = y.facets.facetItemContainerTemplate) == null ? void 0 : v.facetListTitleContainerClass))
2086
+ createFacetItem(e, t, s) {
2087
+ var a, r, c, l, h, u, g, m, y, R, F, L;
2088
+ const x = document.createElement("div");
2089
+ x.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || x.classList.add("active");
2090
+ const P = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.facetItemContainerTemplate) == null ? void 0 : c.template) || ((l = v.facets.facetItemContainerTemplate) == null ? void 0 : l.template);
2091
+ x.innerHTML = E.render(P, e), t.appendChild(x);
2092
+ const C = x.querySelector(
2093
+ "." + (((g = (u = (h = this.config) == null ? void 0 : h.templates) == null ? void 0 : u.facetItemContainerTemplate) == null ? void 0 : g.facetListTitleContainerClass) || ((m = v.facets.facetItemContainerTemplate) == null ? void 0 : m.facetListTitleContainerClass))
2109
2094
  );
2110
- L == null || L.addEventListener("click", () => {
2111
- T.classList.toggle("active");
2095
+ C == null || C.addEventListener("click", () => {
2096
+ x.classList.toggle("active");
2112
2097
  });
2113
- const A = T.querySelector(
2114
- "." + (((S = (x = (f = this.config) == null ? void 0 : f.templates) == null ? void 0 : x.facetItemContainerTemplate) == null ? void 0 : S.facetListContainerClass) || ((C = y.facets.facetItemContainerTemplate) == null ? void 0 : C.facetListContainerClass))
2098
+ const D = x.querySelector(
2099
+ "." + (((F = (R = (y = this.config) == null ? void 0 : y.templates) == null ? void 0 : R.facetItemContainerTemplate) == null ? void 0 : F.facetListContainerClass) || ((L = v.facets.facetItemContainerTemplate) == null ? void 0 : L.facetListContainerClass))
2115
2100
  );
2116
- A && (e.values.forEach(($) => {
2117
- this.createFacetListItem($, A);
2118
- }), e.hasMoreFacets && this.createHasMoreComponent(e, A, a));
2101
+ D && (e.values.forEach((q) => {
2102
+ this.createFacetListItem(q, D);
2103
+ }), e.hasMoreFacets && this.createHasMoreComponent(e, D, s));
2119
2104
  }
2120
2105
  isChecked(e) {
2121
2106
  var t;
2122
- return !!((t = this.dataLayer.searchObject.facets) != null && t.find((a) => B.deepEqual(a, this.extractFacetValue(e))));
2107
+ return !!((t = this.dataLayer.searchObject.facets) != null && t.find((s) => W.deepEqual(s, this.extractFacetValue(e))));
2123
2108
  }
2124
2109
  createFacetListItem(e, t) {
2125
- var a, s, r, c, o, h, u, p, v, f, x, S, C;
2126
- const T = document.createElement("div");
2127
- T.classList.add("searchstax-facet-value-container"), e.disabled && T.classList.add("searchstax-facet-value-disabled");
2128
- const P = this.isChecked(e), L = ((r = (s = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : s.facetItemTemplate) == null ? void 0 : r.template) || ((c = y.facets.facetItemTemplate) == null ? void 0 : c.template);
2129
- T.innerHTML = I.render(L, { ...e, isChecked: P });
2130
- let A = (o = y.facets.facetItemTemplate) == null ? void 0 : o.checkTriggerClasses;
2131
- A = ((p = (u = (h = this.config) == null ? void 0 : h.templates) == null ? void 0 : u.facetItemTemplate) == null ? void 0 : p.checkTriggerClasses) || A, A.forEach(($) => {
2110
+ var s, a, r, c, l, h, u, g, m, y, R, F, L;
2111
+ const x = document.createElement("div");
2112
+ x.classList.add("searchstax-facet-value-container"), e.disabled && x.classList.add("searchstax-facet-value-disabled");
2113
+ const P = this.isChecked(e), C = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.facetItemTemplate) == null ? void 0 : r.template) || ((c = v.facets.facetItemTemplate) == null ? void 0 : c.template);
2114
+ x.innerHTML = E.render(C, { ...e, isChecked: P });
2115
+ let D = (l = v.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
2116
+ D = ((g = (u = (h = this.config) == null ? void 0 : h.templates) == null ? void 0 : u.facetItemTemplate) == null ? void 0 : g.checkTriggerClasses) || D, D.forEach((q) => {
2132
2117
  var j;
2133
- (j = T.querySelector("." + $)) == null || j.addEventListener("click", (U) => {
2134
- this.onFacetSelect(U, e, T);
2118
+ (j = x.querySelector("." + q)) == null || j.addEventListener("click", (U) => {
2119
+ this.onFacetSelect(U, e, x);
2135
2120
  });
2136
- }), (C = T.querySelector(
2137
- "." + (((x = (f = (v = this.config) == null ? void 0 : v.templates) == null ? void 0 : f.facetItemTemplate) == null ? void 0 : x.inputCheckboxClass) || ((S = y.facets.facetItemTemplate) == null ? void 0 : S.inputCheckboxClass))
2138
- )) == null || C.addEventListener("click", ($) => {
2139
- this.onFacetSelect($, e, T, !0);
2140
- }), t.appendChild(T);
2141
- }
2142
- createHasMoreComponent(e, t, a) {
2143
- var s, r, c, o, h, u, p, v;
2144
- const f = document.createElement("div");
2145
- f.classList.add("searchstax-facet-show-more-container");
2146
- const x = ((c = (r = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : c.template) || ((o = y.facets.showMoreButtonContainerTemplate) == null ? void 0 : o.template);
2147
- f.innerHTML = I.render(x, e);
2148
- const S = f.querySelector(
2149
- "." + (((p = (u = (h = this.config) == null ? void 0 : h.templates) == null ? void 0 : u.showMoreButtonContainerTemplate) == null ? void 0 : p.showMoreButtonClass) || ((v = y.facets.showMoreButtonContainerTemplate) == null ? void 0 : v.showMoreButtonClass))
2121
+ }), (L = x.querySelector(
2122
+ "." + (((R = (y = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : y.facetItemTemplate) == null ? void 0 : R.inputCheckboxClass) || ((F = v.facets.facetItemTemplate) == null ? void 0 : F.inputCheckboxClass))
2123
+ )) == null || L.addEventListener("click", (q) => {
2124
+ this.onFacetSelect(q, e, x, !0);
2125
+ }), t.appendChild(x);
2126
+ }
2127
+ createHasMoreComponent(e, t, s) {
2128
+ var a, r, c, l, h, u, g, m;
2129
+ const y = document.createElement("div");
2130
+ y.classList.add("searchstax-facet-show-more-container");
2131
+ const R = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : c.template) || ((l = v.facets.showMoreButtonContainerTemplate) == null ? void 0 : l.template);
2132
+ y.innerHTML = E.render(R, e);
2133
+ const F = y.querySelector(
2134
+ "." + (((g = (u = (h = this.config) == null ? void 0 : h.templates) == null ? void 0 : u.showMoreButtonContainerTemplate) == null ? void 0 : g.showMoreButtonClass) || ((m = v.facets.showMoreButtonContainerTemplate) == null ? void 0 : m.showMoreButtonClass))
2150
2135
  );
2151
- S && (this.attachOnclickToShowMore(e, S, a), t && t.appendChild(S));
2136
+ F && (this.attachOnclickToShowMore(e, F, s), t && t.appendChild(F));
2152
2137
  }
2153
- attachOnclickToShowMore(e, t, a) {
2154
- t.addEventListener("click", (s) => {
2155
- this.onShowMoreLessClick(s, e, a);
2138
+ attachOnclickToShowMore(e, t, s) {
2139
+ t.addEventListener("click", (a) => {
2140
+ this.onShowMoreLessClick(a, e, s);
2156
2141
  });
2157
2142
  }
2158
- onShowMoreLessClick(e, t, a) {
2143
+ onShowMoreLessClick(e, t, s) {
2159
2144
  e.preventDefault();
2160
- const s = a ? this.facetPaginationStepMobile : this.facetPaginationStep, r = a ? this.facetLimits : this.facetLimitsMobile;
2161
- r[t.name] === void 0 ? r[t.name] = s * 2 : r[t.name] <= t.values.length ? r[t.name] = r[t.name] + s : r[t.name] = s, this.renderMainTemplate(this.generateTemplateData());
2145
+ const a = s ? this.facetPaginationStepMobile : this.facetPaginationStep, r = s ? this.facetLimits : this.facetLimitsMobile;
2146
+ r[t.name] === void 0 ? r[t.name] = a * 2 : r[t.name] <= t.values.length ? r[t.name] = r[t.name] + a : r[t.name] = a, this.renderMainTemplate(this.generateTemplateData());
2162
2147
  }
2163
2148
  renderMainTemplate(e, t) {
2164
- var a, s, r, c, o, h, u, p, v, f, x;
2165
- if (e && (!B.deepEqual(this.cachedData ?? {}, e) || t)) {
2149
+ var s, a, r, c, l, h, u, g, m, y, R;
2150
+ if (e && (!W.deepEqual(this.cachedData ?? {}, e) || t)) {
2166
2151
  this.cachedData = e;
2167
- const S = ((r = (s = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : s.mainTemplateDesktop) == null ? void 0 : r.template) || ((c = y.facets.mainTemplateDesktop) == null ? void 0 : c.template);
2168
- if (this.dataLayer.renderingEngine === D.mustache && this.searchFacetsMainContainer) {
2169
- this.searchFacetsMainContainer.innerHTML = I.render(S, {
2152
+ const F = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.mainTemplateDesktop) == null ? void 0 : r.template) || ((c = v.facets.mainTemplateDesktop) == null ? void 0 : c.template);
2153
+ if (this.dataLayer.renderingEngine === $.mustache && this.searchFacetsMainContainer) {
2154
+ this.searchFacetsMainContainer.innerHTML = E.render(F, {
2170
2155
  ...e
2171
2156
  });
2172
- const C = (p = this.searchFacetsMainContainer) == null ? void 0 : p.querySelector(
2173
- "." + (((u = (h = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : h.mainTemplateDesktop) == null ? void 0 : u.facetsContainerClass) || y.facets.mainTemplateDesktop.facetsContainerClass)
2157
+ const L = (g = this.searchFacetsMainContainer) == null ? void 0 : g.querySelector(
2158
+ "." + (((u = (h = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : h.mainTemplateDesktop) == null ? void 0 : u.facetsContainerClass) || v.facets.mainTemplateDesktop.facetsContainerClass)
2174
2159
  );
2175
- if (C) {
2176
- C.innerHTML = "";
2177
- for (const T of e.facets)
2178
- this.createFacetItem(T, C);
2160
+ if (L) {
2161
+ L.innerHTML = "";
2162
+ for (const x of e.facets)
2163
+ this.createFacetItem(x, L);
2179
2164
  if (this.searchFacetsMainContainer) {
2180
- const T = this.searchFacetsMainContainer.querySelector(
2181
- "." + (((x = (f = (v = this.config) == null ? void 0 : v.templates) == null ? void 0 : f.mainTemplateDesktop) == null ? void 0 : x.selectedFacetsContainerClass) || y.facets.mainTemplateDesktop.selectedFacetsContainerClass)
2165
+ const x = this.searchFacetsMainContainer.querySelector(
2166
+ "." + (((R = (y = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : y.mainTemplateDesktop) == null ? void 0 : R.selectedFacetsContainerClass) || v.facets.mainTemplateDesktop.selectedFacetsContainerClass)
2182
2167
  );
2183
- T && (this.createSelectedFacetsComponents(T), this.createClearFacetsComponents(T));
2168
+ x && (this.createSelectedFacetsComponents(x), this.createClearFacetsComponents(x));
2184
2169
  }
2185
2170
  }
2186
2171
  }
@@ -2190,12 +2175,12 @@ class ga {
2190
2175
  }
2191
2176
  generateSelectedFacetsData() {
2192
2177
  const e = [], t = this.dataLayer.searchObject.facets;
2193
- for (const a of t) {
2194
- const s = decodeURIComponent(a.name), r = decodeURIComponent(a.value);
2178
+ for (const s of t) {
2179
+ const a = decodeURIComponent(s.name), r = decodeURIComponent(s.value);
2195
2180
  if (this.dataLayer.searchFacets) {
2196
- const c = this.needCache ? this.dataLayer.searchFacetsCached : this.dataLayer.searchFacets, o = c == null ? void 0 : c.find((h) => h.name === s);
2197
- if (o) {
2198
- const h = o.values.find((u) => u.type === "range" ? !1 : u.type === "checkbox" ? `"${u.value}"` == `"${r}"` : !1);
2181
+ const c = this.needCache ? this.dataLayer.searchFacetsCached : this.dataLayer.searchFacets, l = c == null ? void 0 : c.find((h) => h.name === a);
2182
+ if (l) {
2183
+ const h = l.values.find((u) => u.type === "range" ? !1 : u.type === "checkbox" ? `"${u.value}"` == `"${r}"` : !1);
2199
2184
  h && e.push(h);
2200
2185
  }
2201
2186
  }
@@ -2204,39 +2189,39 @@ class ga {
2204
2189
  }
2205
2190
  createSelectedFacetsComponents(e) {
2206
2191
  var t;
2207
- this.generateSelectedFacetsData(), (t = this.dataLayer.selectedFacetsTemplateData) == null || t.forEach((a) => {
2208
- this.createSelectedFacetsComponent(e, a);
2192
+ this.generateSelectedFacetsData(), (t = this.dataLayer.selectedFacetsTemplateData) == null || t.forEach((s) => {
2193
+ this.createSelectedFacetsComponent(e, s);
2209
2194
  });
2210
2195
  }
2211
2196
  createClearFacetsComponents(e) {
2212
- var t, a, s, r, c, o, h, u;
2213
- const p = this.dataLayer.searchObject, v = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.clearFacetsTemplate) == null ? void 0 : s.template) || ((r = y.facets.clearFacetsTemplate) == null ? void 0 : r.template), f = document.createElement("div");
2214
- f.innerHTML = I.render(v, {
2215
- shouldShow: p.facets.length > 0
2197
+ var t, s, a, r, c, l, h, u;
2198
+ const g = this.dataLayer.searchObject, m = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.clearFacetsTemplate) == null ? void 0 : a.template) || ((r = v.facets.clearFacetsTemplate) == null ? void 0 : r.template), y = document.createElement("div");
2199
+ y.innerHTML = E.render(m, {
2200
+ shouldShow: g.facets.length > 0
2216
2201
  });
2217
- const x = f.querySelector(
2218
- "." + (((h = (o = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : o.clearFacetsTemplate) == null ? void 0 : h.containerClass) || ((u = y.facets.clearFacetsTemplate) == null ? void 0 : u.containerClass))
2202
+ const R = y.querySelector(
2203
+ "." + (((h = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.clearFacetsTemplate) == null ? void 0 : h.containerClass) || ((u = v.facets.clearFacetsTemplate) == null ? void 0 : u.containerClass))
2219
2204
  );
2220
- x && (x.addEventListener("click", () => {
2205
+ R && (R.addEventListener("click", () => {
2221
2206
  this.removeSelectedFacets();
2222
- }), e.appendChild(x));
2207
+ }), e.appendChild(R));
2223
2208
  }
2224
2209
  createSelectedFacetsComponent(e, t) {
2225
- var a, s, r, c, o, h, u, p;
2226
- const v = ((r = (s = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : s.selectedFacetsTemplate) == null ? void 0 : r.template) || ((c = y.facets.selectedFacetsTemplate) == null ? void 0 : c.template), f = document.createElement("div");
2227
- f.innerHTML = I.render(v, t);
2228
- const x = f.querySelector(
2229
- "." + (((u = (h = (o = this.config) == null ? void 0 : o.templates) == null ? void 0 : h.selectedFacetsTemplate) == null ? void 0 : u.containerClass) || ((p = y.facets.selectedFacetsTemplate) == null ? void 0 : p.containerClass))
2210
+ var s, a, r, c, l, h, u, g;
2211
+ const m = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.selectedFacetsTemplate) == null ? void 0 : r.template) || ((c = v.facets.selectedFacetsTemplate) == null ? void 0 : c.template), y = document.createElement("div");
2212
+ y.innerHTML = E.render(m, t);
2213
+ const R = y.querySelector(
2214
+ "." + (((u = (h = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : h.selectedFacetsTemplate) == null ? void 0 : u.containerClass) || ((g = v.facets.selectedFacetsTemplate) == null ? void 0 : g.containerClass))
2230
2215
  );
2231
- x && (x.addEventListener("click", () => {
2216
+ R && (R.addEventListener("click", () => {
2232
2217
  this.unselectFacet(t);
2233
- }), e.appendChild(x));
2218
+ }), e.appendChild(R));
2234
2219
  }
2235
2220
  unselectFacet(e) {
2236
2221
  const t = this.dataLayer.searchObject;
2237
- let a = [...t.facets];
2238
- e.type === "checkbox" && (a = a.filter((s) => JSON.stringify(s) !== JSON.stringify(this.extractFacetValue(e)))), setTimeout(() => {
2239
- this.dataLayer.setSearchObject({ ...t, facets: a }), this.generateSelectedFacetsData();
2222
+ let s = [...t.facets];
2223
+ e.type === "checkbox" && (s = s.filter((a) => JSON.stringify(a) !== JSON.stringify(this.extractFacetValue(e)))), setTimeout(() => {
2224
+ this.dataLayer.setSearchObject({ ...t, facets: s }), this.generateSelectedFacetsData();
2240
2225
  }, 0);
2241
2226
  }
2242
2227
  removeSelectedFacets() {
@@ -2244,13 +2229,13 @@ class ga {
2244
2229
  this.dataLayer.setSearchObject({ ...e, facets: [] });
2245
2230
  }
2246
2231
  createFilterByComponent(e) {
2247
- var t, a, s, r, c, o, h, u;
2248
- const p = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.filterByTemplate) == null ? void 0 : s.template) || ((r = y.facets.filterByTemplate) == null ? void 0 : r.template), v = document.createElement("div");
2249
- v.innerHTML = I.render(p, {});
2250
- const f = v.querySelector(
2251
- "." + (((h = (o = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : o.filterByTemplate) == null ? void 0 : h.containerClass) || ((u = y.facets.filterByTemplate) == null ? void 0 : u.containerClass))
2232
+ var t, s, a, r, c, l, h, u;
2233
+ const g = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.filterByTemplate) == null ? void 0 : a.template) || ((r = v.facets.filterByTemplate) == null ? void 0 : r.template), m = document.createElement("div");
2234
+ m.innerHTML = E.render(g, {});
2235
+ const y = m.querySelector(
2236
+ "." + (((h = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.filterByTemplate) == null ? void 0 : h.containerClass) || ((u = v.facets.filterByTemplate) == null ? void 0 : u.containerClass))
2252
2237
  );
2253
- f && (e.prepend(f), f.addEventListener("click", this.openOverlay.bind(this)));
2238
+ y && (e.prepend(y), y.addEventListener("click", this.openOverlay.bind(this)));
2254
2239
  }
2255
2240
  openOverlay() {
2256
2241
  var e;
@@ -2261,50 +2246,50 @@ class ga {
2261
2246
  this.overlayOpened = !1, this.searchFacetsMainContainer && (document.body.classList.toggle("searchstax-no-scroll"), (e = this.searchFacetsMainContainer.querySelector(".searchstax-facets-mobile-overlay")) == null || e.classList.remove("searchstax-show"));
2262
2247
  }
2263
2248
  renderMobileTemplate(e) {
2264
- var t, a, s, r, c, o, h, u, p, v, f, x, S, C, T, P, L, A, $;
2249
+ var t, s, a, r, c, l, h, u, g, m, y, R, F, L, x, P, C, D, q;
2265
2250
  if (e) {
2266
2251
  const j = document.createElement("div");
2267
2252
  j.classList.add("searchstax-facets-container-mobile");
2268
- const U = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.mainTemplateMobile) == null ? void 0 : s.template) || ((r = y.facets.mainTemplateMobile) == null ? void 0 : r.template);
2269
- if (this.dataLayer.renderingEngine === D.mustache) {
2270
- if (j.innerHTML = I.render(U, {
2253
+ const U = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplateMobile) == null ? void 0 : a.template) || ((r = v.facets.mainTemplateMobile) == null ? void 0 : r.template);
2254
+ if (this.dataLayer.renderingEngine === $.mustache) {
2255
+ if (j.innerHTML = E.render(U, {
2271
2256
  ...e,
2272
2257
  overlayOpened: this.overlayOpened
2273
- }), (c = this.searchFacetsMainContainer) == null || c.appendChild(j), (h = (o = this.config) == null ? void 0 : o.templates) != null && h.mainTemplateMobile)
2274
- for (const z of ((v = (p = (u = this.config) == null ? void 0 : u.templates) == null ? void 0 : p.mainTemplateMobile) == null ? void 0 : v.closeOverlayTriggerClasses) || []) {
2275
- const Y = j.querySelector("." + z);
2258
+ }), (c = this.searchFacetsMainContainer) == null || c.appendChild(j), (h = (l = this.config) == null ? void 0 : l.templates) != null && h.mainTemplateMobile)
2259
+ for (const J of ((m = (g = (u = this.config) == null ? void 0 : u.templates) == null ? void 0 : g.mainTemplateMobile) == null ? void 0 : m.closeOverlayTriggerClasses) || []) {
2260
+ const Y = j.querySelector("." + J);
2276
2261
  Y && Y.addEventListener("click", this.closeOverlay.bind(this));
2277
2262
  }
2278
2263
  else
2279
- for (const z of y.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
2280
- const Y = j.querySelector("." + z);
2264
+ for (const J of v.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
2265
+ const Y = j.querySelector("." + J);
2281
2266
  Y && Y.addEventListener("click", this.closeOverlay.bind(this));
2282
2267
  }
2283
- const X = j.querySelector(
2284
- "." + (((S = (x = (f = this.config) == null ? void 0 : f.templates) == null ? void 0 : x.mainTemplateMobile) == null ? void 0 : S.filterByContainerClass) || y.facets.mainTemplateMobile.filterByContainerClass)
2268
+ const G = j.querySelector(
2269
+ "." + (((F = (R = (y = this.config) == null ? void 0 : y.templates) == null ? void 0 : R.mainTemplateMobile) == null ? void 0 : F.filterByContainerClass) || v.facets.mainTemplateMobile.filterByContainerClass)
2285
2270
  );
2286
- X && this.createFilterByComponent(X);
2287
- const q = j.querySelector(
2288
- "." + (((P = (T = (C = this.config) == null ? void 0 : C.templates) == null ? void 0 : T.mainTemplateMobile) == null ? void 0 : P.selectedFacetsContainerClass) || y.facets.mainTemplateMobile.selectedFacetsContainerClass)
2271
+ G && this.createFilterByComponent(G);
2272
+ const _ = j.querySelector(
2273
+ "." + (((P = (x = (L = this.config) == null ? void 0 : L.templates) == null ? void 0 : x.mainTemplateMobile) == null ? void 0 : P.selectedFacetsContainerClass) || v.facets.mainTemplateMobile.selectedFacetsContainerClass)
2289
2274
  );
2290
- q && (this.createSelectedFacetsComponents(q), this.createClearFacetsComponents(q));
2291
- const G = j.querySelector(
2292
- "." + ((($ = (A = (L = this.config) == null ? void 0 : L.templates) == null ? void 0 : A.mainTemplateMobile) == null ? void 0 : $.facetsContainerClass) || y.facets.mainTemplateMobile.facetsContainerClass)
2275
+ _ && (this.createSelectedFacetsComponents(_), this.createClearFacetsComponents(_));
2276
+ const Z = j.querySelector(
2277
+ "." + (((q = (D = (C = this.config) == null ? void 0 : C.templates) == null ? void 0 : D.mainTemplateMobile) == null ? void 0 : q.facetsContainerClass) || v.facets.mainTemplateMobile.facetsContainerClass)
2293
2278
  );
2294
- if (G) {
2295
- G.innerHTML = "";
2296
- for (const z of e.facets)
2297
- this.createFacetItem(z, G, !0);
2279
+ if (Z) {
2280
+ Z.innerHTML = "";
2281
+ for (const J of e.facets)
2282
+ this.createFacetItem(J, Z, !0);
2298
2283
  }
2299
2284
  }
2300
2285
  }
2301
2286
  }
2302
2287
  }
2303
- class pa {
2288
+ class ha {
2304
2289
  constructor(e) {
2305
- l(this, "dataLayer"), l(this, "config"), l(this, "containerId"), l(this, "previousButtonClass"), l(this, "nextButtonClass"), l(this, "routerHelper"), l(this, "searchPaginationMainContainer", null);
2306
- var t, a, s, r, c, o;
2307
- this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.routerHelper = e.routerHelper, this.previousButtonClass = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.mainTemplate) == null ? void 0 : s.previousButtonClass) ?? y.pagination.mainTemplate.previousButtonClass, this.nextButtonClass = ((o = (c = (r = this.config) == null ? void 0 : r.templates) == null ? void 0 : c.mainTemplate) == null ? void 0 : o.nextButtonClass) ?? y.pagination.mainTemplate.nextButtonClass, this.searchPaginationMainContainer = document.getElementById(this.containerId), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
2290
+ o(this, "dataLayer"), o(this, "config"), o(this, "containerId"), o(this, "previousButtonClass"), o(this, "nextButtonClass"), o(this, "routerHelper"), o(this, "searchPaginationMainContainer", null);
2291
+ var t, s, a, r, c, l;
2292
+ 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) ?? v.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) ?? v.pagination.mainTemplate.nextButtonClass, this.searchPaginationMainContainer = document.getElementById(this.containerId), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
2308
2293
  }
2309
2294
  get isFirstPage() {
2310
2295
  var e;
@@ -2320,19 +2305,19 @@ class pa {
2320
2305
  });
2321
2306
  }
2322
2307
  generateTemplateData() {
2323
- var e, t;
2324
- const a = {
2308
+ var e, t, s, a;
2309
+ const r = {
2325
2310
  ...this.dataLayer.parsedData.data,
2326
- previousPageLink: this.routerHelper.searchObjectToUrl({
2311
+ previousPageLink: (t = this.routerHelper) == null ? void 0 : t.searchObjectToUrl({
2327
2312
  ...this.dataLayer.searchObject,
2328
2313
  page: ((e = this.dataLayer.searchObject) == null ? void 0 : e.page) - 1
2329
2314
  }),
2330
- nextPageLink: this.routerHelper.searchObjectToUrl({
2315
+ nextPageLink: (a = this.routerHelper) == null ? void 0 : a.searchObjectToUrl({
2331
2316
  ...this.dataLayer.searchObject,
2332
- page: ((t = this.dataLayer.searchObject) == null ? void 0 : t.page) + 1
2317
+ page: ((s = this.dataLayer.searchObject) == null ? void 0 : s.page) + 1
2333
2318
  })
2334
2319
  };
2335
- return this.dataLayer.setPaginationData(a), a;
2320
+ return this.dataLayer.setPaginationData(r), r;
2336
2321
  }
2337
2322
  goToPage(e) {
2338
2323
  const t = this.dataLayer.searchObject;
@@ -2353,19 +2338,19 @@ class pa {
2353
2338
  }
2354
2339
  }
2355
2340
  renderMainTemplate(e) {
2356
- var t, a, s, r, c, o;
2357
- this.searchPaginationMainContainer && ((t = this.searchPaginationMainContainer.querySelector("." + this.previousButtonClass)) == null || t.removeEventListener("click", this.previousPage), (a = this.searchPaginationMainContainer.querySelector("." + this.nextButtonClass)) == null || a.removeEventListener("click", this.nextPage));
2358
- const h = ((c = (r = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : c.template) || ((o = y.pagination.mainTemplate) == null ? void 0 : o.template);
2359
- this.dataLayer.renderingEngine === D.mustache && (this.searchPaginationMainContainer.innerHTML = I.render(h, e), setTimeout(() => {
2341
+ var t, s, a, r, c, l;
2342
+ 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));
2343
+ const h = ((c = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : c.template) || ((l = v.pagination.mainTemplate) == null ? void 0 : l.template);
2344
+ this.dataLayer.renderingEngine === $.mustache && (this.searchPaginationMainContainer.innerHTML = E.render(h, e), setTimeout(() => {
2360
2345
  this.overridePaginationEvents();
2361
2346
  }, 0));
2362
2347
  }
2363
2348
  }
2364
- class ma {
2349
+ class ua {
2365
2350
  constructor(e) {
2366
- l(this, "dataLayer"), l(this, "config"), l(this, "containerId"), l(this, "relatedSearchesContainerClass"), l(this, "searchRelatedSearchesMainContainer", null), l(this, "track");
2367
- var t, a;
2368
- this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.relatedSearchesContainerClass = ((a = (t = this.config.templates) == null ? void 0 : t.main) == null ? void 0 : a.relatedSearchesContainerClass) || y.relatedSearches.main.relatedSearchesContainerClass, this.searchRelatedSearchesMainContainer = document.getElementById(this.containerId), this.track = e.trackRelatedSearchClick, this.initializeSubscriptions();
2351
+ o(this, "dataLayer"), o(this, "config"), o(this, "containerId"), o(this, "relatedSearchesContainerClass"), o(this, "searchRelatedSearchesMainContainer", null), o(this, "track");
2352
+ var t, s;
2353
+ this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.relatedSearchesContainerClass = ((s = (t = this.config.templates) == null ? void 0 : t.main) == null ? void 0 : s.relatedSearchesContainerClass) || v.relatedSearches.main.relatedSearchesContainerClass, this.searchRelatedSearchesMainContainer = document.getElementById(this.containerId), this.track = e.trackRelatedSearchClick, this.initializeSubscriptions();
2369
2354
  }
2370
2355
  initializeSubscriptions() {
2371
2356
  this.dataLayer.$searchRelatedSearches.subscribe((e) => {
@@ -2379,14 +2364,14 @@ class ma {
2379
2364
  return this.dataLayer.setRelatedSearchesData(e), e;
2380
2365
  }
2381
2366
  addRelatedSearchComponent(e, t) {
2382
- var a, s, r, c, o;
2383
- const h = document.createElement("div"), u = ((r = (s = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : s.relatedSearch) == null ? void 0 : r.template) || y.relatedSearches.relatedSearch.template;
2384
- if (this.dataLayer.renderingEngine === D.mustache) {
2385
- h.innerHTML = I.render(u, e);
2386
- const p = h.querySelector(
2387
- "." + (((o = (c = this.config.templates) == null ? void 0 : c.relatedSearch) == null ? void 0 : o.relatedSearchContainerClass) || y.relatedSearches.relatedSearch.relatedSearchContainerClass)
2367
+ var s, a, r, c, l;
2368
+ const h = document.createElement("div"), u = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.relatedSearch) == null ? void 0 : r.template) || v.relatedSearches.relatedSearch.template;
2369
+ if (this.dataLayer.renderingEngine === $.mustache) {
2370
+ h.innerHTML = E.render(u, e);
2371
+ const g = h.querySelector(
2372
+ "." + (((l = (c = this.config.templates) == null ? void 0 : c.relatedSearch) == null ? void 0 : l.relatedSearchContainerClass) || v.relatedSearches.relatedSearch.relatedSearchContainerClass)
2388
2373
  );
2389
- p && (t.appendChild(p), p.addEventListener("click", () => {
2374
+ g && (t.appendChild(g), g.addEventListener("click", () => {
2390
2375
  this.executeSearch(e);
2391
2376
  }));
2392
2377
  }
@@ -2396,23 +2381,23 @@ class ma {
2396
2381
  t.query = e.related_search, this.dataLayer.setSearchObject(t), this.track(e);
2397
2382
  }
2398
2383
  renderMainTemplate(e) {
2399
- var t, a, s, r;
2400
- const c = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.main) == null ? void 0 : s.template) || y.relatedSearches.main.template;
2401
- if (this.dataLayer.renderingEngine === D.mustache && this.searchRelatedSearchesMainContainer) {
2384
+ var t, s, a, r;
2385
+ const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || v.relatedSearches.main.template;
2386
+ if (this.dataLayer.renderingEngine === $.mustache && this.searchRelatedSearchesMainContainer) {
2402
2387
  this.searchRelatedSearchesMainContainer.innerHTML = "", this.searchRelatedSearchesMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
2403
- I.render(c, e);
2404
- const o = (r = this.searchRelatedSearchesMainContainer) == null ? void 0 : r.querySelector(
2388
+ E.render(c, e);
2389
+ const l = (r = this.searchRelatedSearchesMainContainer) == null ? void 0 : r.querySelector(
2405
2390
  `.${this.relatedSearchesContainerClass}`
2406
2391
  );
2407
- if (o)
2392
+ if (l)
2408
2393
  for (const h of e.relatedSearches)
2409
- this.addRelatedSearchComponent(h, o);
2394
+ this.addRelatedSearchComponent(h, l);
2410
2395
  }
2411
2396
  }
2412
2397
  }
2413
- class fa {
2398
+ class da {
2414
2399
  constructor(e) {
2415
- l(this, "dataLayer"), l(this, "config"), l(this, "containerId"), l(this, "searchFeedbackMainContainer", null), l(this, "searchTrigger"), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.searchTrigger = e.searchTrigger, this.searchFeedbackMainContainer = document.getElementById(this.containerId), this.initializeSubscriptions();
2400
+ o(this, "dataLayer"), o(this, "config"), o(this, "containerId"), o(this, "searchFeedbackMainContainer", null), o(this, "searchTrigger"), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.searchTrigger = e.searchTrigger, this.searchFeedbackMainContainer = document.getElementById(this.containerId), this.initializeSubscriptions();
2416
2401
  }
2417
2402
  initializeSubscriptions() {
2418
2403
  this.dataLayer.$searchResults.subscribe((e) => {
@@ -2428,39 +2413,39 @@ class fa {
2428
2413
  onOriginalQueryClick(e) {
2429
2414
  var t;
2430
2415
  e.stopPropagation(), e.preventDefault();
2431
- const a = (t = e.target) == null ? void 0 : t.innerHTML;
2432
- this.searchTrigger(a, !0);
2416
+ const s = (t = e.target) == null ? void 0 : t.innerHTML;
2417
+ this.searchTrigger(s, !0);
2433
2418
  }
2434
2419
  attachClick() {
2435
- var e, t, a, s, r;
2420
+ var e, t, s, a, r;
2436
2421
  const c = (r = this.searchFeedbackMainContainer) == null ? void 0 : r.querySelector(
2437
- "." + (((a = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.main) == null ? void 0 : a.originalQueryClass) || ((s = y.searchFeedback.main) == null ? void 0 : s.originalQueryClass))
2422
+ "." + (((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.main) == null ? void 0 : s.originalQueryClass) || ((a = v.searchFeedback.main) == null ? void 0 : a.originalQueryClass))
2438
2423
  );
2439
2424
  c && c.addEventListener("click", this.onOriginalQueryClick.bind(this));
2440
2425
  }
2441
2426
  renderMainTemplate(e) {
2442
- var t, a, s;
2443
- const r = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.main) == null ? void 0 : s.template) || y.searchFeedback.main.template;
2444
- this.dataLayer.renderingEngine === D.mustache && (this.searchFeedbackMainContainer.innerHTML = I.render(r, e), setTimeout(() => {
2427
+ var t, s, a;
2428
+ const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || v.searchFeedback.main.template;
2429
+ this.dataLayer.renderingEngine === $.mustache && (this.searchFeedbackMainContainer.innerHTML = E.render(r, e), setTimeout(() => {
2445
2430
  this.attachClick();
2446
2431
  }, 0));
2447
2432
  }
2448
2433
  }
2449
- class va {
2434
+ class ga {
2450
2435
  constructor(e) {
2451
- l(this, "dataLayer"), l(this, "config"), l(this, "suggestAfterMinChars"), l(this, "containerId"), l(this, "currentInputValue", ""), l(this, "autosuggestResults"), l(this, "searchInput"), l(this, "actionButton"), l(this, "autosuggestContainer"), l(this, "buttonState", "search"), l(this, "selectedAutosuggestItem", -1), l(this, "suggestTrigger"), l(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());
2436
+ o(this, "dataLayer"), o(this, "config"), o(this, "suggestAfterMinChars"), o(this, "containerId"), o(this, "currentInputValue", ""), o(this, "autosuggestResults"), o(this, "searchInput"), o(this, "actionButton"), o(this, "autosuggestContainer"), o(this, "buttonState", "search"), o(this, "selectedAutosuggestItem", -1), o(this, "suggestTrigger"), o(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());
2452
2437
  }
2453
2438
  renderMainTemplate() {
2454
- var e, t, a, s;
2439
+ var e, t, s, a;
2455
2440
  const r = document.getElementById(this.containerId);
2456
2441
  if (!r)
2457
2442
  throw new Error("Search input container not found");
2458
- const c = ((t = (e = this.config.templates) == null ? void 0 : e.mainTemplate) == null ? void 0 : t.template) || y.searchInput.mainTemplate.template;
2459
- if (this.dataLayer.renderingEngine === D.mustache) {
2460
- const u = I.render(c, {});
2443
+ const c = ((t = (e = this.config.templates) == null ? void 0 : e.mainTemplate) == null ? void 0 : t.template) || v.searchInput.mainTemplate.template;
2444
+ if (this.dataLayer.renderingEngine === $.mustache) {
2445
+ const u = E.render(c, {});
2461
2446
  r.innerHTML = u;
2462
2447
  }
2463
- const o = ((s = (a = this.config.templates) == null ? void 0 : a.mainTemplate) == null ? void 0 : s.searchInputId) || y.searchInput.mainTemplate.searchInputId, h = document.querySelector(`#${o}`);
2448
+ const l = ((a = (s = this.config.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.searchInputId) || v.searchInput.mainTemplate.searchInputId, h = document.querySelector(`#${l}`);
2464
2449
  if (h)
2465
2450
  this.searchInput = h, h.addEventListener("keyup", this.inputKeyupEvent.bind(this)), h.addEventListener("blur", this.hideAutosuggest.bind(this)), h.addEventListener("paste", this.inputPasteEvent.bind(this));
2466
2451
  else
@@ -2468,7 +2453,7 @@ class va {
2468
2453
  }
2469
2454
  createAutosuggestContainer() {
2470
2455
  var e;
2471
- this.dataLayer.renderingEngine === D.mustache && (this.autosuggestContainer = document.createElement("div"), this.autosuggestContainer.classList.add("searchstax-autosuggest-container"), this.autosuggestContainer.addEventListener("mouseleave", () => {
2456
+ this.dataLayer.renderingEngine === $.mustache && (this.autosuggestContainer = document.createElement("div"), this.autosuggestContainer.classList.add("searchstax-autosuggest-container"), this.autosuggestContainer.addEventListener("mouseleave", () => {
2472
2457
  this.resetAutosuggestSelection(), this.markActiveAutosuggestItem();
2473
2458
  }), (e = this.searchInput) == null || e.after(this.autosuggestContainer));
2474
2459
  }
@@ -2522,8 +2507,8 @@ class va {
2522
2507
  markActiveAutosuggestItem() {
2523
2508
  const e = document.getElementsByClassName("searchstax-autosuggest-item");
2524
2509
  for (let t = 0; t < e.length; t++) {
2525
- const a = e[t];
2526
- t === this.selectedAutosuggestItem ? a.classList.add("active") : a.classList.remove("active");
2510
+ const s = e[t];
2511
+ t === this.selectedAutosuggestItem ? s.classList.add("active") : s.classList.remove("active");
2527
2512
  }
2528
2513
  }
2529
2514
  inputKeyupEvent(e) {
@@ -2553,21 +2538,21 @@ class va {
2553
2538
  }, 100);
2554
2539
  }
2555
2540
  cleanSuggestionTerm(e) {
2556
- return Q.removeXSSRiskyTags(e.replace(/(<([^>]+)>)/gi, "")).trim();
2541
+ return z.removeXSSRiskyTags(e.replace(/(<([^>]+)>)/gi, "")).trim();
2557
2542
  }
2558
2543
  autosuggestItemClicked(e) {
2559
2544
  this.searchInput.value = this.cleanSuggestionTerm(e.term ?? ""), this.executeSearch(this.cleanSuggestionTerm(e.term));
2560
2545
  }
2561
2546
  createAutosuggestItem(e) {
2562
- var t, a, s;
2547
+ var t, s, a;
2563
2548
  const r = document.createElement("div");
2564
2549
  r.classList.add("searchstax-autosuggest-item"), r.addEventListener("click", () => {
2565
2550
  this.autosuggestItemClicked(e);
2566
2551
  }), r.addEventListener("mouseenter", () => {
2567
2552
  this.onSuggestionEnter(e);
2568
2553
  });
2569
- const c = ((a = (t = this.config.templates) == null ? void 0 : t.autosuggestItemTemplate) == null ? void 0 : a.template) || ((s = y.searchInput.autosuggestItemTemplate) == null ? void 0 : s.template);
2570
- return r.innerHTML = I.render(c, e), r;
2554
+ const c = ((s = (t = this.config.templates) == null ? void 0 : t.autosuggestItemTemplate) == null ? void 0 : s.template) || ((a = v.searchInput.autosuggestItemTemplate) == null ? void 0 : a.template);
2555
+ return r.innerHTML = E.render(c, e), r;
2571
2556
  }
2572
2557
  onSuggestionEnter(e) {
2573
2558
  var t;
@@ -2577,10 +2562,10 @@ class va {
2577
2562
  this.autosuggestContainer && (this.autosuggestContainer.innerHTML = "", this.autosuggestContainer.classList.remove("hidden"));
2578
2563
  for (const t in e.suggest)
2579
2564
  if (Object.prototype.hasOwnProperty.call(e.suggest, t)) {
2580
- const a = e.suggest[t];
2581
- for (const s in a)
2582
- if (Object.prototype.hasOwnProperty.call(a, s)) {
2583
- const r = a[s];
2565
+ const s = e.suggest[t];
2566
+ for (const a in s)
2567
+ if (Object.prototype.hasOwnProperty.call(s, a)) {
2568
+ const r = s[a];
2584
2569
  this.autosuggestResults = r, this.dataLayer.setAutosuggestResults(r), r.numFound > 0 ? r.suggestions.forEach((c) => {
2585
2570
  this.autosuggestContainer && this.autosuggestContainer.appendChild(this.createAutosuggestItem(c));
2586
2571
  }) : this.autosuggestContainer && this.autosuggestContainer.classList.add("hidden");
@@ -2588,9 +2573,9 @@ class va {
2588
2573
  }
2589
2574
  }
2590
2575
  }
2591
- class ya {
2576
+ class pa {
2592
2577
  constructor(e) {
2593
- l(this, "dataLayer"), l(this, "config"), l(this, "linkClickCallback"), l(this, "searchCallback"), l(this, "containerId"), l(this, "searchResultsMainContainer"), l(this, "searchResultsContainer"), l(this, "searchResultLinks", []), this.linkClickCallback = e.linkClickCallback, this.searchCallback = e.searchTrigger, this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId;
2578
+ o(this, "dataLayer"), o(this, "config"), o(this, "linkClickCallback"), o(this, "searchCallback"), o(this, "containerId"), o(this, "searchResultsMainContainer"), o(this, "searchResultsContainer"), o(this, "searchResultLinks", []), this.linkClickCallback = e.linkClickCallback, this.searchCallback = e.searchTrigger, this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId;
2594
2579
  const t = document.getElementById(this.containerId);
2595
2580
  if (t)
2596
2581
  this.searchResultsMainContainer = t;
@@ -2609,29 +2594,29 @@ class ya {
2609
2594
  this.dataLayer.searchResults && this.renderResults(this.dataLayer.searchResults);
2610
2595
  }
2611
2596
  renderNoResultsTemplate() {
2612
- var e, t, a, s, r;
2613
- const c = ((a = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.noSearchResultTemplate) == null ? void 0 : a.template) || ((s = y.searchResults.noSearchResultTemplate) == null ? void 0 : s.template), o = ((r = this.dataLayer.searchResultsMetadata) == null ? void 0 : r.spellingSuggestion) ?? "";
2614
- if (this.dataLayer.renderingEngine === D.mustache && this.searchResultsContainer && (this.searchResultsContainer.innerHTML = I.render(
2597
+ var e, t, s, a, r;
2598
+ const c = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.noSearchResultTemplate) == null ? void 0 : s.template) || ((a = v.searchResults.noSearchResultTemplate) == null ? void 0 : a.template), l = ((r = this.dataLayer.searchResultsMetadata) == null ? void 0 : r.spellingSuggestion) ?? "";
2599
+ if (this.dataLayer.renderingEngine === $.mustache && this.searchResultsContainer && (this.searchResultsContainer.innerHTML = E.render(
2615
2600
  c,
2616
2601
  {
2617
- spellingSuggestion: o,
2602
+ spellingSuggestion: l,
2618
2603
  searchTerm: this.dataLayer.searchTerm
2619
2604
  }
2620
- )), o && this.searchResultsContainer) {
2605
+ )), l && this.searchResultsContainer) {
2621
2606
  const h = this.searchResultsContainer.querySelector("a");
2622
2607
  h && h.addEventListener("click", (u) => {
2623
- u.preventDefault(), u.stopPropagation(), this.searchCallback(o);
2608
+ u.preventDefault(), u.stopPropagation(), this.searchCallback(l);
2624
2609
  });
2625
2610
  }
2626
2611
  }
2627
2612
  renderResults(e) {
2628
- var t, a, s, r;
2629
- if (this.dataLayer.renderingEngine === D.mustache && this.searchResultsContainer)
2613
+ var t, s, a, r;
2614
+ if (this.dataLayer.renderingEngine === $.mustache && this.searchResultsContainer)
2630
2615
  if (this.removeLinkClickEvents(), e.length === 0)
2631
2616
  this.renderNoResultsTemplate();
2632
2617
  else {
2633
- const c = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.searchResultTemplate) == null ? void 0 : s.template) || ((r = y.searchResults.searchResultTemplate) == null ? void 0 : r.template), o = e.map((h) => I.render(c, h));
2634
- this.searchResultsContainer.innerHTML = o.join(""), this.searchResultLinks = Array.from(
2618
+ const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.searchResultTemplate) == null ? void 0 : a.template) || ((r = v.searchResults.searchResultTemplate) == null ? void 0 : r.template), l = e.map((h) => E.render(c, h));
2619
+ this.searchResultsContainer.innerHTML = l.join(""), this.searchResultLinks = Array.from(
2635
2620
  this.searchResultsContainer.querySelectorAll(
2636
2621
  `[${this.uniqueIdAttribute}]`
2637
2622
  )
@@ -2645,39 +2630,39 @@ class ya {
2645
2630
  });
2646
2631
  }
2647
2632
  get uniqueIdAttribute() {
2648
- var e, t, a, s;
2649
- return ((a = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.searchResultTemplate) == null ? void 0 : a.searchResultUniqueIdAttribute) || ((s = y.searchResults.searchResultTemplate) == null ? void 0 : s.searchResultUniqueIdAttribute);
2633
+ var e, t, s, a;
2634
+ return ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.searchResultTemplate) == null ? void 0 : s.searchResultUniqueIdAttribute) || ((a = v.searchResults.searchResultTemplate) == null ? void 0 : a.searchResultUniqueIdAttribute);
2650
2635
  }
2651
2636
  attachLinkClickEvents() {
2652
2637
  this.searchResultLinks.forEach((e) => {
2653
2638
  e.addEventListener("click", (t) => {
2654
2639
  t.preventDefault(), t.stopPropagation();
2655
- const a = e.getAttribute(this.uniqueIdAttribute) ?? "";
2656
- a && this.linkClickCallback(a);
2640
+ const s = e.getAttribute(this.uniqueIdAttribute) ?? "";
2641
+ s && this.linkClickCallback(s);
2657
2642
  });
2658
2643
  });
2659
2644
  }
2660
2645
  renderMainTemplate() {
2661
- var e, t, a, s;
2662
- const r = ((a = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : a.template) || ((s = y.searchResults.mainTemplate) == null ? void 0 : s.template);
2663
- this.dataLayer.renderingEngine === D.mustache && (this.searchResultsMainContainer.innerHTML = I.render(
2646
+ var e, t, s, a;
2647
+ const r = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : s.template) || ((a = v.searchResults.mainTemplate) == null ? void 0 : a.template);
2648
+ this.dataLayer.renderingEngine === $.mustache && (this.searchResultsMainContainer.innerHTML = E.render(
2664
2649
  r,
2665
2650
  {}
2666
2651
  ), setTimeout(() => {
2667
- var c, o, h, u, p, v, f;
2668
- const x = (h = (o = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : o.mainTemplate) != null && h.searchResultsContainerId ? (v = (p = (u = this.config) == null ? void 0 : u.templates) == null ? void 0 : p.mainTemplate) == null ? void 0 : v.searchResultsContainerId : (f = y.searchResults.mainTemplate) == null ? void 0 : f.searchResultsContainerId, S = document.getElementById(x);
2669
- if (S)
2670
- this.searchResultsContainer = S;
2652
+ var c, l, h, u, g, m, y;
2653
+ const R = (h = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.mainTemplate) != null && h.searchResultsContainerId ? (m = (g = (u = this.config) == null ? void 0 : u.templates) == null ? void 0 : g.mainTemplate) == null ? void 0 : m.searchResultsContainerId : (y = v.searchResults.mainTemplate) == null ? void 0 : y.searchResultsContainerId, F = document.getElementById(R);
2654
+ if (F)
2655
+ this.searchResultsContainer = F;
2671
2656
  else
2672
- throw new Error(`Search Results Container with id ${x} not found`);
2657
+ throw new Error(`Search Results Container with id ${R} not found`);
2673
2658
  }, 0));
2674
2659
  }
2675
2660
  }
2676
- class xa {
2661
+ class fa {
2677
2662
  constructor(e) {
2678
- l(this, "dataLayer"), l(this, "config"), l(this, "containerId"), l(this, "selectId"), l(this, "searchSortingMainContainer", null);
2679
- var t, a;
2680
- this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.selectId = ((a = (t = this.config.templates) == null ? void 0 : t.main) == null ? void 0 : a.selectId) || y.sorting.main.selectId, this.searchSortingMainContainer = document.getElementById(this.containerId), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
2663
+ o(this, "dataLayer"), o(this, "config"), o(this, "containerId"), o(this, "selectId"), o(this, "searchSortingMainContainer", null);
2664
+ var t, s;
2665
+ this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.selectId = ((s = (t = this.config.templates) == null ? void 0 : t.main) == null ? void 0 : s.selectId) || v.sorting.main.selectId, this.searchSortingMainContainer = document.getElementById(this.containerId), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
2681
2666
  }
2682
2667
  initializeSubscriptions() {
2683
2668
  this.dataLayer.$searchResults.subscribe((e) => {
@@ -2708,50 +2693,50 @@ class xa {
2708
2693
  }
2709
2694
  }
2710
2695
  renderMainTemplate(e) {
2711
- var t, a, s;
2712
- const r = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.main) == null ? void 0 : s.template) || y.sorting.main.template;
2713
- if (this.dataLayer.renderingEngine === D.mustache) {
2714
- this.searchSortingMainContainer.innerHTML = I.render(
2696
+ var t, s, a;
2697
+ const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || v.sorting.main.template;
2698
+ if (this.dataLayer.renderingEngine === $.mustache) {
2699
+ this.searchSortingMainContainer.innerHTML = E.render(
2715
2700
  r,
2716
2701
  e
2717
2702
  ), this.markOptionSelected();
2718
2703
  const c = document.getElementById(
2719
2704
  this.selectId
2720
2705
  );
2721
- c && c.addEventListener("change", (o) => {
2722
- this.setOrderQuery(o.target.value);
2706
+ c && c.addEventListener("change", (l) => {
2707
+ this.setOrderQuery(l.target.value);
2723
2708
  });
2724
2709
  }
2725
2710
  }
2726
2711
  }
2727
- class ba {
2728
- constructor(e = D.mustache) {
2729
- l(this, "routerEnabled", !1), l(this, "cachedQuery", ""), l(this, "routerHelper"), l(this, "searchHelper"), l(this, "searchResultsConfig"), l(this, "searchPaginationConfig"), l(this, "searchFeedbackConfig"), l(this, "searchSortingConfig"), l(this, "searchFacetsConfig"), l(this, "relatedSearchesConfig"), l(this, "externalPromotionsConfig"), l(this, "searchInputWidget"), l(this, "searchResultsWidget"), l(this, "searchFacetsWidget"), l(this, "searchPaginationWidget"), l(this, "searchFeedbackWidget"), l(this, "searchSortingWidget"), l(this, "relatedSearchesWidget"), l(this, "externalPromotionsWidget"), l(this, "dataLayer", new qt(Vt.getOrSetCookie("searchstax_session_id"))), l(this, "firstRequest", !0), e && this.dataLayer.setRenderingEngine(e), this.handleHooks();
2712
+ class ma {
2713
+ constructor(e = $.mustache) {
2714
+ o(this, "routerEnabled", !1), o(this, "cachedQuery", ""), o(this, "routerHelper"), o(this, "searchHelper"), o(this, "searchResultsConfig"), o(this, "searchPaginationConfig"), o(this, "searchFeedbackConfig"), o(this, "searchSortingConfig"), o(this, "searchFacetsConfig"), o(this, "relatedSearchesConfig"), o(this, "externalPromotionsConfig"), o(this, "searchInputWidget"), o(this, "searchResultsWidget"), o(this, "searchFacetsWidget"), o(this, "searchPaginationWidget"), o(this, "searchFeedbackWidget"), o(this, "searchSortingWidget"), o(this, "relatedSearchesWidget"), o(this, "externalPromotionsWidget"), o(this, "dataLayer", new Mt($t.getOrSetCookie("searchstax_session_id"))), o(this, "firstRequest", !0), e && this.dataLayer.setRenderingEngine(e), this.handleHooks();
2730
2715
  }
2731
- setRenderingEngine(e = D.mustache) {
2716
+ setRenderingEngine(e = $.mustache) {
2732
2717
  this.dataLayer.setRenderingEngine(e);
2733
2718
  }
2734
2719
  handleHooks() {
2735
2720
  var e, t;
2736
- (t = (e = this.dataLayer.searchstaxConfig) == null ? void 0 : e.hooks) != null && t.afterSearch && this.dataLayer.$searchResults.subscribe((a) => {
2737
- this.dataLayer.searchstaxConfig.hooks.afterSearch(a);
2738
- }), this.dataLayer.$searchObject.subscribe((a) => {
2739
- a.query !== "" && this.search(a);
2740
- }), this.dataLayer.$searchResults.subscribe((a) => {
2741
- a && this.dataLayer.searchResultsMetadata && oe.trackSearch({
2721
+ (t = (e = this.dataLayer.searchstaxConfig) == null ? void 0 : e.hooks) != null && t.afterSearch && this.dataLayer.$searchResults.subscribe((s) => {
2722
+ this.dataLayer.searchstaxConfig.hooks.afterSearch(s);
2723
+ }), this.dataLayer.$searchObject.subscribe((s) => {
2724
+ s.query !== "" && this.search(s);
2725
+ }), this.dataLayer.$searchResults.subscribe((s) => {
2726
+ s && this.dataLayer.searchResultsMetadata && he.trackSearch({
2742
2727
  ...this.dataLayer.parsedData.trackingData,
2743
2728
  impressions: this.dataLayer.searchResultsMetadata.impressions
2744
2729
  });
2745
2730
  });
2746
2731
  }
2747
2732
  initialize(e) {
2748
- var t, a;
2749
- e.autoCorrect === !1 && (this.dataLayer.autoCorrect = !1), this.dataLayer.searchstaxConfig || (this.dataLayer.setSearchstaxConfig(e), this.searchHelper = new Nt(
2733
+ var t, s;
2734
+ e.autoCorrect === !1 && (this.dataLayer.autoCorrect = !1), this.dataLayer.searchstaxConfig || (this.dataLayer.setSearchstaxConfig(e), this.searchHelper = new Dt(
2750
2735
  { ...e, sessionId: this.dataLayer.sessionId },
2751
2736
  this.dataLayer
2752
- )), ((t = e.router) == null ? void 0 : t.enabled) === void 0 || ((a = e.router) == null ? void 0 : a.enabled) === !0 ? (this.routerEnabled = !0, this.routerHelper = new st(e.router ? e.router : { enabled: !0 }), this.dataLayer.setSearchObject(this.routerHelper.urlToSearchObject(window.location.href)), addEventListener("popstate", () => {
2737
+ )), ((t = e.router) == null ? void 0 : t.enabled) === void 0 || ((s = e.router) == null ? void 0 : s.enabled) === !0 ? (this.routerEnabled = !0, this.routerHelper = new et(e.router ? e.router : { enabled: !0 }), this.dataLayer.setSearchObject(this.routerHelper.urlToSearchObject(window.location.href)), addEventListener("popstate", () => {
2753
2738
  this.routerHelper && this.dataLayer.setSearchObject(this.routerHelper.urlToSearchObject(window.location.href));
2754
- })) : this.routerHelper = new st({});
2739
+ })) : this.routerHelper = new et({});
2755
2740
  }
2756
2741
  search(e) {
2757
2742
  if (this.searchHelper && e.query !== "" && e.query !== void 0 && e.query !== "undefined") {
@@ -2774,36 +2759,36 @@ class ba {
2774
2759
  }
2775
2760
  parseRelatedSearchesResponse(e) {
2776
2761
  var t;
2777
- const a = (((t = e.response) == null ? void 0 : t.docs) ?? []).map((r, c) => ({ ...r, position: c + 1 })), s = [];
2778
- for (const r of a)
2779
- s.push({
2762
+ const s = (((t = e.response) == null ? void 0 : t.docs) ?? []).map((r, c) => ({ ...r, position: c + 1 })), a = [];
2763
+ for (const r of s)
2764
+ a.push({
2780
2765
  relatedSearch: r.related_search,
2781
2766
  position: r.position
2782
2767
  });
2783
- this.dataLayer.searchResultsMetadata && oe.trackRelatedSearches({
2768
+ this.dataLayer.searchResultsMetadata && he.trackRelatedSearches({
2784
2769
  ...this.dataLayer.parsedData.trackingData,
2785
- impressions: s
2786
- }), this.dataLayer.setSearchRelatedSearches(a);
2770
+ impressions: a
2771
+ }), this.dataLayer.setSearchRelatedSearches(s);
2787
2772
  }
2788
2773
  handleRouter() {
2789
2774
  this.routerEnabled && this.routerHelper.updateUrl(this.dataLayer.searchObject);
2790
2775
  }
2791
2776
  parseSearchResultsResponse(e) {
2792
- var t, a;
2777
+ var t, s;
2793
2778
  this.handleRouter();
2794
- let s = ce.combineResultsWithMetadata(e), r = ce.extractFacets(e);
2795
- this.dataLayer.setSearchFacets(r), (a = (t = this.dataLayer.searchstaxConfig) == null ? void 0 : t.hooks) != null && a.afterSearch && (s = this.dataLayer.searchstaxConfig.hooks.afterSearch(s)), this.dataLayer.setSearchExternalPromotions(e.externalLinks ?? []);
2796
- const c = ce.extractSearchResultsMetadata(e);
2797
- this.dataLayer.setSearchResultsMetadata(c), this.dataLayer.setSearchResults(s);
2779
+ let a = oe.combineResultsWithMetadata(e), r = oe.extractFacets(e);
2780
+ 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 ?? []);
2781
+ const c = oe.extractSearchResultsMetadata(e);
2782
+ this.dataLayer.setSearchResultsMetadata(c), this.dataLayer.setSearchResults(a);
2798
2783
  }
2799
2784
  cacheFacets() {
2800
2785
  var e;
2801
2786
  (e = this.searchHelper) == null || e.cacheFacets();
2802
2787
  }
2803
2788
  parseSuggestSuggestResponse(e) {
2804
- var t, a;
2805
- let s = e;
2806
- (a = (t = this.dataLayer.searchInputConfig) == null ? void 0 : t.hooks) != null && a.afterAutosuggest && (s = this.dataLayer.searchInputConfig.hooks.afterAutosuggest(e)), this.dataLayer.setSearchAutosuggest(s);
2789
+ var t, s;
2790
+ let a = e;
2791
+ (s = (t = this.dataLayer.searchInputConfig) == null ? void 0 : t.hooks) != null && s.afterAutosuggest && (a = this.dataLayer.searchInputConfig.hooks.afterAutosuggest(e)), this.dataLayer.setSearchAutosuggest(a);
2807
2792
  }
2808
2793
  suggest(e, t) {
2809
2794
  this.searchHelper && this.searchHelper.suggest(e, this.parseSuggestSuggestResponse.bind(this), t);
@@ -2812,7 +2797,7 @@ class ba {
2812
2797
  this.searchHelper && this.dataLayer.setLanguage(e);
2813
2798
  }
2814
2799
  addSearchInputWidget(e, t) {
2815
- this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new va({
2800
+ this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new ga({
2816
2801
  containerId: e,
2817
2802
  config: t,
2818
2803
  searchTrigger: this.executeSearch.bind(this),
@@ -2821,7 +2806,7 @@ class ba {
2821
2806
  }));
2822
2807
  }
2823
2808
  addSearchResultsWidget(e, t) {
2824
- this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new ya({
2809
+ this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new pa({
2825
2810
  containerId: e,
2826
2811
  linkClickCallback: this.executeLinkClick.bind(this),
2827
2812
  searchTrigger: this.executeSearch.bind(this),
@@ -2830,7 +2815,7 @@ class ba {
2830
2815
  }));
2831
2816
  }
2832
2817
  addPaginationWidget(e, t) {
2833
- this.searchPaginationConfig = t, this.searchPaginationWidget = new pa({
2818
+ this.searchPaginationConfig = t, this.searchPaginationWidget = new ha({
2834
2819
  containerId: e,
2835
2820
  config: t,
2836
2821
  dataLayer: this.dataLayer,
@@ -2838,7 +2823,7 @@ class ba {
2838
2823
  });
2839
2824
  }
2840
2825
  addSearchFeedbackWidget(e, t) {
2841
- this.searchFeedbackConfig || (this.searchFeedbackConfig = t, this.searchFeedbackWidget = new fa({
2826
+ this.searchFeedbackConfig || (this.searchFeedbackConfig = t, this.searchFeedbackWidget = new da({
2842
2827
  containerId: e,
2843
2828
  config: t,
2844
2829
  dataLayer: this.dataLayer,
@@ -2846,14 +2831,14 @@ class ba {
2846
2831
  }));
2847
2832
  }
2848
2833
  addSearchSortingWidget(e, t) {
2849
- this.searchSortingConfig || (this.searchSortingConfig = t, this.searchSortingWidget = new xa({
2834
+ this.searchSortingConfig || (this.searchSortingConfig = t, this.searchSortingWidget = new fa({
2850
2835
  containerId: e,
2851
2836
  config: t,
2852
2837
  dataLayer: this.dataLayer
2853
2838
  }));
2854
2839
  }
2855
2840
  addRelatedSearchesWidget(e, t) {
2856
- this.relatedSearchesConfig || (this.relatedSearchesConfig = t, this.relatedSearchesWidget = new ma({
2841
+ this.relatedSearchesConfig || (this.relatedSearchesConfig = t, this.relatedSearchesWidget = new ua({
2857
2842
  containerId: e,
2858
2843
  config: t,
2859
2844
  dataLayer: this.dataLayer,
@@ -2863,14 +2848,14 @@ class ba {
2863
2848
  }, 0));
2864
2849
  }
2865
2850
  addExternalPromotionsWidget(e, t) {
2866
- this.externalPromotionsConfig || (this.externalPromotionsConfig = t, this.externalPromotionsWidget = new da({
2851
+ this.externalPromotionsConfig || (this.externalPromotionsConfig = t, this.externalPromotionsWidget = new la({
2867
2852
  containerId: e,
2868
2853
  config: t,
2869
2854
  dataLayer: this.dataLayer
2870
2855
  }));
2871
2856
  }
2872
2857
  addFacetsWidget(e, t) {
2873
- this.searchFacetsConfig = t, this.searchFacetsWidget = new ga(
2858
+ this.searchFacetsConfig = t, this.searchFacetsWidget = new oa(
2874
2859
  {
2875
2860
  containerId: e,
2876
2861
  config: t,
@@ -2881,31 +2866,31 @@ class ba {
2881
2866
  );
2882
2867
  }
2883
2868
  executeSearch(e, t) {
2884
- var a, s;
2869
+ var s, a;
2885
2870
  const r = { ...this.dataLayer.searchObject };
2886
- r.query = Q.removeXSSRiskyTags(e), r.page = 1, r.facets = [], this.dataLayer.forceNotCorrect = !!t;
2887
- let c = (a = this.routerHelper) == null ? void 0 : a.searchObjectToParams(r);
2888
- c && (c = (s = this.routerHelper) == null ? void 0 : s.extractParamsThatDoNotStartWithRouteName(c)), c && (r.additionalProps = Object.keys(c).map((o) => c ? { key: o, value: c[o] } : { key: "", value: "" })), this.dataLayer.setSearchObject(r);
2871
+ r.query = z.removeXSSRiskyTags(e), r.page = 1, r.facets = [], this.dataLayer.forceNotCorrect = !!t;
2872
+ let c = (s = this.routerHelper) == null ? void 0 : s.searchObjectToParams(r);
2873
+ 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);
2889
2874
  }
2890
2875
  executeSuggest(e) {
2891
- var t, a;
2892
- let s = { term: e, queryParams: [] };
2893
- (a = (t = this.dataLayer.searchInputConfig) == null ? void 0 : t.hooks) != null && a.beforeAutosuggest && (s = this.dataLayer.searchInputConfig.hooks.beforeAutosuggest(s)), s && s.term !== void 0 && s.queryParams !== void 0 && this.suggest(s.term, s.queryParams);
2876
+ var t, s;
2877
+ let a = { term: e, queryParams: [] };
2878
+ (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);
2894
2879
  }
2895
2880
  trackRelatedSearchClick(e) {
2896
- this.dataLayer.searchResultsMetadata && this.dataLayer.searchRelatedSearches && oe.trackRelatedSearchClick({
2881
+ this.dataLayer.searchResultsMetadata && this.dataLayer.searchRelatedSearches && he.trackRelatedSearchClick({
2897
2882
  ...this.dataLayer.parsedData.trackingData,
2898
2883
  relatedSearch: e
2899
2884
  });
2900
2885
  }
2901
2886
  executeLinkClick(e) {
2902
- var t, a;
2903
- let s = ce.findResultByUniqueId(e, this.dataLayer.searchResults ?? []);
2904
- s && ((a = (t = this.searchResultsConfig) == null ? void 0 : t.hooks) != null && a.afterLinkClick && (s = this.searchResultsConfig.hooks.afterLinkClick(s)), s && this.dataLayer.searchResultsMetadata && (oe.trackClick({
2905
- result: s,
2887
+ var t, s;
2888
+ let a = oe.findResultByUniqueId(e, this.dataLayer.searchResults ?? []);
2889
+ a && ((s = (t = this.searchResultsConfig) == null ? void 0 : t.hooks) != null && s.afterLinkClick && (a = this.searchResultsConfig.hooks.afterLinkClick(a)), a && this.dataLayer.searchResultsMetadata && (he.trackClick({
2890
+ result: a,
2906
2891
  ...this.dataLayer.parsedData.trackingData
2907
2892
  }), setTimeout(() => {
2908
- window.location.href = (s == null ? void 0 : s.url) ?? "";
2893
+ window.location.href = (a == null ? void 0 : a.url) ?? "";
2909
2894
  }, 0)));
2910
2895
  }
2911
2896
  setPage(e) {
@@ -2913,21 +2898,21 @@ class ba {
2913
2898
  (t = this.searchPaginationWidget) == null || t.goToPage(e);
2914
2899
  }
2915
2900
  changeResultTemplate(e) {
2916
- var t, a, s;
2917
- this.searchResultsConfig && (this.searchResultsConfig.templates = (t = this.searchResultsConfig) != null && t.templates ? { ...(a = this.searchResultsConfig) == null ? void 0 : a.templates, ...e } : e, (s = this.searchResultsWidget) == null || s.changeTemplate());
2901
+ var t, s, a;
2902
+ 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());
2918
2903
  }
2919
2904
  }
2920
- const V = {
2905
+ const I = {
2921
2906
  //@ts-ignore
2922
- searchstax: new ba("react")
2907
+ searchstax: new ma("react")
2923
2908
  };
2924
- function Ca(n) {
2909
+ function ya(n) {
2925
2910
  let e = !1;
2926
- const [t, a] = le([]);
2927
- Pe(() => {
2928
- if (s(), V.searchstax) {
2911
+ const [t, s] = B([]);
2912
+ se(() => {
2913
+ if (a(), I.searchstax) {
2929
2914
  const h = {};
2930
- n.afterAutosuggest && (h.afterAutosuggest = n.afterAutosuggest), n.beforeAutosuggest && (h.beforeAutosuggest = n.beforeAutosuggest), V.searchstax.addSearchInputWidget("searchstax-input-container", {
2915
+ n.afterAutosuggest && (h.afterAutosuggest = n.afterAutosuggest), n.beforeAutosuggest && (h.beforeAutosuggest = n.beforeAutosuggest), I.searchstax.addSearchInputWidget("searchstax-input-container", {
2931
2916
  suggestAfterMinChars: n.suggestAfterMinChars ?? 3,
2932
2917
  hooks: h,
2933
2918
  templates: {
@@ -2940,26 +2925,26 @@ function Ca(n) {
2940
2925
  } else
2941
2926
  throw Error("Searchstax instance needs to be passed via props");
2942
2927
  }, []);
2943
- function s() {
2944
- console.log(e), e || (V.searchstax.dataLayer.$autosuggestResults.subscribe((h) => {
2945
- a((h == null ? void 0 : h.suggestions) ?? []);
2928
+ function a() {
2929
+ console.log(e), e || (I.searchstax.dataLayer.$autosuggestResults.subscribe((h) => {
2930
+ s((h == null ? void 0 : h.suggestions) ?? []);
2946
2931
  }), e = !0);
2947
2932
  }
2948
2933
  function r() {
2949
2934
  var h, u;
2950
- (h = V.searchstax.searchInputWidget) == null || h.resetAutosuggestSelection(), (u = V.searchstax.searchInputWidget) == null || u.markActiveAutosuggestItem();
2935
+ (h = I.searchstax.searchInputWidget) == null || h.resetAutosuggestSelection(), (u = I.searchstax.searchInputWidget) == null || u.markActiveAutosuggestItem();
2951
2936
  }
2952
2937
  function c(h) {
2953
2938
  var u;
2954
- (u = V.searchstax.searchInputWidget) == null || u.onSuggestionEnter(h);
2939
+ (u = I.searchstax.searchInputWidget) == null || u.onSuggestionEnter(h);
2955
2940
  }
2956
- function o() {
2941
+ function l() {
2957
2942
  var h;
2958
- (h = V.searchstax.searchInputWidget) == null || h.suggestionChosen();
2943
+ (h = I.searchstax.searchInputWidget) == null || h.suggestionChosen();
2959
2944
  }
2960
- return /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsx("div", { id: "searchstax-input-container", children: /* @__PURE__ */ g.jsxs("div", { className: "searchstax-search-input-container", children: [
2961
- !n.inputTemplate && /* @__PURE__ */ g.jsxs("div", { className: "searchstax-search-input-wrapper", children: [
2962
- /* @__PURE__ */ g.jsx(
2945
+ return /* @__PURE__ */ p.jsx(p.Fragment, { children: /* @__PURE__ */ p.jsx("div", { id: "searchstax-input-container", children: /* @__PURE__ */ p.jsxs("div", { className: "searchstax-search-input-container", children: [
2946
+ !n.inputTemplate && /* @__PURE__ */ p.jsxs("div", { className: "searchstax-search-input-wrapper", children: [
2947
+ /* @__PURE__ */ p.jsx(
2963
2948
  "input",
2964
2949
  {
2965
2950
  type: "text",
@@ -2968,13 +2953,13 @@ function Ca(n) {
2968
2953
  placeholder: "SEARCH FOR..."
2969
2954
  }
2970
2955
  ),
2971
- /* @__PURE__ */ g.jsx(
2956
+ /* @__PURE__ */ p.jsx(
2972
2957
  "div",
2973
2958
  {
2974
2959
  className: `searchstax-autosuggest-container ${t.length === 0 ? "hidden" : ""}`,
2975
2960
  onMouseLeave: r,
2976
2961
  children: t.map(function(h) {
2977
- return /* @__PURE__ */ g.jsx("div", { className: "searchstax-autosuggest-item", children: /* @__PURE__ */ g.jsx(
2962
+ return /* @__PURE__ */ p.jsx("div", { className: "searchstax-autosuggest-item", children: /* @__PURE__ */ p.jsx(
2978
2963
  "div",
2979
2964
  {
2980
2965
  className: "searchstax-autosuggest-item-term-container",
@@ -2983,22 +2968,22 @@ function Ca(n) {
2983
2968
  c(h);
2984
2969
  },
2985
2970
  onClick: () => {
2986
- o();
2971
+ l();
2987
2972
  }
2988
2973
  }
2989
2974
  ) }, h.term);
2990
2975
  })
2991
2976
  }
2992
2977
  ),
2993
- /* @__PURE__ */ g.jsx("button", { className: "searchstax-spinner-icon", id: "searchstax-search-input-action-button" })
2978
+ /* @__PURE__ */ p.jsx("button", { className: "searchstax-spinner-icon", id: "searchstax-search-input-action-button" })
2994
2979
  ] }),
2995
- n.inputTemplate && /* @__PURE__ */ g.jsx(g.Fragment, { children: n.inputTemplate(t, r, c, o) })
2980
+ n.inputTemplate && /* @__PURE__ */ p.jsx(p.Fragment, { children: n.inputTemplate(t, r, c, l) })
2996
2981
  ] }) }) });
2997
2982
  }
2998
- function Sa(n) {
2999
- return Pe(() => {
2983
+ function ba(n) {
2984
+ return se(() => {
3000
2985
  const e = {};
3001
- n.beforeSearch && (e.beforeSearch = n.beforeSearch), n != null && n.afterSearch && (e.afterSearch = n.afterSearch), V.searchstax.initialize({
2986
+ n.beforeSearch && (e.beforeSearch = n.beforeSearch), n != null && n.afterSearch && (e.afterSearch = n.afterSearch), I.searchstax.initialize({
3002
2987
  language: n.language ?? "en",
3003
2988
  searchURL: n.searchURL,
3004
2989
  suggesterURL: n.suggesterURL,
@@ -3008,272 +2993,276 @@ function Sa(n) {
3008
2993
  autoCorrect: n.autoCorrect,
3009
2994
  router: n.router,
3010
2995
  hooks: e
3011
- }), n.initialized(V.searchstax);
3012
- }, [n.initialized]), /* @__PURE__ */ g.jsx(g.Fragment, { children: n.children });
2996
+ }), n.initialized(I.searchstax);
2997
+ }, [n.initialized]), /* @__PURE__ */ p.jsx(p.Fragment, { children: n.children });
3013
2998
  }
3014
- function Ta(n) {
3015
- const [e, t] = le(null), [a, s] = le(""), [r, c] = le(null), o = (u, p) => {
3016
- p.preventDefault(), p.stopPropagation(), V.searchstax.executeLinkClick(u.uniqueId);
2999
+ function xa(n) {
3000
+ const [e, t] = B(null), [s, a] = B(""), [r, c] = B(null), l = (u, g) => {
3001
+ g.preventDefault(), g.stopPropagation(), I.searchstax.executeLinkClick(u.uniqueId);
3017
3002
  };
3018
- Pe(() => {
3003
+ se(() => {
3019
3004
  h();
3020
3005
  const u = {};
3021
- n.afterLinkClick && (u.afterLinkClick = n.afterLinkClick), V.searchstax.addSearchResultsWidget("searchstax-results-container", {
3006
+ n.afterLinkClick && (u.afterLinkClick = n.afterLinkClick), I.searchstax.addSearchResultsWidget("searchstax-results-container", {
3022
3007
  templates: {},
3023
3008
  hooks: u
3024
3009
  });
3025
3010
  }, []);
3026
3011
  function h() {
3027
- V.searchstax.dataLayer.$searchResults.subscribe((u) => {
3012
+ I.searchstax.dataLayer.$searchResults.subscribe((u) => {
3028
3013
  t(u);
3029
- }), V.searchstax.dataLayer.$searchTermChange.subscribe((u) => {
3030
- s(u);
3031
- }), V.searchstax.dataLayer.$searchResultsMetadata.subscribe((u) => {
3014
+ }), I.searchstax.dataLayer.$searchTermChange.subscribe((u) => {
3015
+ a(u);
3016
+ }), I.searchstax.dataLayer.$searchResultsMetadata.subscribe((u) => {
3032
3017
  c(u);
3033
3018
  });
3034
3019
  }
3035
- return /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsx("div", { id: "searchstax-results-container", children: /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-results-container", children: /* @__PURE__ */ g.jsxs("div", { id: "searchstax-result-container", children: [
3036
- e && e.length === 0 && !n.noResultTemplate && /* @__PURE__ */ g.jsxs("div", { children: [
3037
- /* @__PURE__ */ g.jsxs("div", { className: "searchstax-no-results", children: [
3020
+ return /* @__PURE__ */ p.jsx(p.Fragment, { children: /* @__PURE__ */ p.jsx("div", { id: "searchstax-results-container", children: /* @__PURE__ */ p.jsx("div", { className: "searchstax-search-results-container", children: /* @__PURE__ */ p.jsxs("div", { id: "searchstax-result-container", children: [
3021
+ e && e.length === 0 && !n.noResultTemplate && /* @__PURE__ */ p.jsxs("div", { children: [
3022
+ /* @__PURE__ */ p.jsxs("div", { className: "searchstax-no-results", children: [
3038
3023
  " ",
3039
3024
  "Showing ",
3040
- /* @__PURE__ */ g.jsx("strong", { children: "no results" }),
3025
+ /* @__PURE__ */ p.jsx("strong", { children: "no results" }),
3041
3026
  " for ",
3042
- /* @__PURE__ */ g.jsxs("strong", { children: [
3027
+ /* @__PURE__ */ p.jsxs("strong", { children: [
3043
3028
  '"',
3044
- a,
3029
+ s,
3045
3030
  '"'
3046
3031
  ] }),
3047
- /* @__PURE__ */ g.jsx("br", {}),
3048
- (r == null ? void 0 : r.spellingSuggestion) && /* @__PURE__ */ g.jsxs("span", { children: [
3032
+ /* @__PURE__ */ p.jsx("br", {}),
3033
+ (r == null ? void 0 : r.spellingSuggestion) && /* @__PURE__ */ p.jsxs("span", { children: [
3049
3034
  " Did you mean",
3050
3035
  " ",
3051
- /* @__PURE__ */ g.jsx("a", { href: "#", className: "searchstax-suggestion-term", children: r == null ? void 0 : r.spellingSuggestion }),
3036
+ /* @__PURE__ */ p.jsx("a", { href: "#", className: "searchstax-suggestion-term", children: r == null ? void 0 : r.spellingSuggestion }),
3052
3037
  "?"
3053
3038
  ] })
3054
3039
  ] }),
3055
- /* @__PURE__ */ g.jsxs("div", { children: [
3056
- /* @__PURE__ */ g.jsxs("p", { children: [
3040
+ /* @__PURE__ */ p.jsxs("div", { children: [
3041
+ /* @__PURE__ */ p.jsxs("p", { children: [
3057
3042
  " ",
3058
3043
  "Try searching for search related terms or topics. We offer a wide variety of content to help you get the information you need.",
3059
3044
  " "
3060
3045
  ] }),
3061
- /* @__PURE__ */ g.jsx("p", { children: "Lost? Click on the ‘X” in the Search Box to reset your search." })
3046
+ /* @__PURE__ */ p.jsx("p", { children: "Lost? Click on the ‘X” in the Search Box to reset your search." })
3062
3047
  ] })
3063
3048
  ] }),
3064
- e && e.length === 0 && n.noResultTemplate && /* @__PURE__ */ g.jsx(g.Fragment, { children: n.noResultTemplate(a, r) }),
3065
- e && e.length && !n.resultsTemplate && /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-results", children: e !== null && e.map(function(u) {
3066
- return /* @__PURE__ */ g.jsxs(
3049
+ e && e.length === 0 && n.noResultTemplate && /* @__PURE__ */ p.jsx(p.Fragment, { children: n.noResultTemplate(s, r) }),
3050
+ e && e.length && !n.resultsTemplate && /* @__PURE__ */ p.jsx("div", { className: "searchstax-search-results", children: e !== null && e.map(function(u) {
3051
+ return /* @__PURE__ */ p.jsxs(
3067
3052
  "div",
3068
3053
  {
3069
3054
  className: `searchstax-search-result ${u.thumbnail ? "has-thumbnail" : ""}`,
3070
3055
  children: [
3071
- u.promoted && /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-result-promoted" }),
3072
- u.url && /* @__PURE__ */ g.jsx(
3056
+ u.promoted && /* @__PURE__ */ p.jsx("div", { className: "searchstax-search-result-promoted" }),
3057
+ u.url && /* @__PURE__ */ p.jsx(
3073
3058
  "a",
3074
3059
  {
3075
3060
  href: u.url,
3076
3061
  "data-searchstax-unique-result-id": u.uniqueId,
3077
- onClick: (p) => {
3078
- o(u, p);
3062
+ onClick: (g) => {
3063
+ l(u, g);
3079
3064
  },
3080
3065
  className: "searchstax-result-item-link"
3081
3066
  }
3082
3067
  ),
3083
- u.ribbon && /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-result-ribbon", children: u.ribbon }),
3084
- u.thumbnail && /* @__PURE__ */ g.jsx("img", { src: u.thumbnail, className: "searchstax-thumbnail" }),
3085
- /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-result-title-container", children: /* @__PURE__ */ g.jsx("span", { className: "searchstax-search-result-title", children: u.title }) }),
3086
- u.paths && /* @__PURE__ */ g.jsx("p", { className: "searchstax-search-result-common", children: u.paths }),
3087
- u.description && /* @__PURE__ */ g.jsx("p", { className: "searchstax-search-result-description searchstax-search-result-common", children: u.description }),
3088
- u.unmappedFields.map(function(p) {
3089
- return /* @__PURE__ */ g.jsxs("div", { children: [
3090
- p.isImage && typeof p.value == "string" && /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-result-image-container", children: /* @__PURE__ */ g.jsx("img", { src: p.value, className: "searchstax-result-image" }) }),
3091
- !p.isImage && /* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsx("p", { className: "searchstax-search-result-common", children: p.value }) })
3092
- ] }, p.key);
3068
+ u.ribbon && /* @__PURE__ */ p.jsx("div", { className: "searchstax-search-result-ribbon", children: u.ribbon }),
3069
+ u.thumbnail && /* @__PURE__ */ p.jsx("img", { src: u.thumbnail, className: "searchstax-thumbnail" }),
3070
+ /* @__PURE__ */ p.jsx("div", { className: "searchstax-search-result-title-container", children: /* @__PURE__ */ p.jsx("span", { className: "searchstax-search-result-title", children: u.title }) }),
3071
+ u.paths && /* @__PURE__ */ p.jsx("p", { className: "searchstax-search-result-common", children: u.paths }),
3072
+ u.description && /* @__PURE__ */ p.jsx("p", { className: "searchstax-search-result-description searchstax-search-result-common", children: u.description }),
3073
+ u.unmappedFields.map(function(g) {
3074
+ return /* @__PURE__ */ p.jsxs("div", { children: [
3075
+ g.isImage && typeof g.value == "string" && /* @__PURE__ */ p.jsx("div", { className: "searchstax-search-result-image-container", children: /* @__PURE__ */ p.jsx("img", { src: g.value, className: "searchstax-result-image" }) }),
3076
+ !g.isImage && /* @__PURE__ */ p.jsx("div", { children: /* @__PURE__ */ p.jsx("p", { className: "searchstax-search-result-common", children: g.value }) })
3077
+ ] }, g.key);
3093
3078
  })
3094
3079
  ]
3095
3080
  },
3096
3081
  u.uniqueId
3097
3082
  );
3098
3083
  }) }),
3099
- e && e.length && n.resultsTemplate && /* @__PURE__ */ g.jsx(g.Fragment, { children: n.resultsTemplate(e, o) })
3084
+ e && e.length && n.resultsTemplate && /* @__PURE__ */ p.jsx(p.Fragment, { children: n.resultsTemplate(e, l) })
3100
3085
  ] }) }) }) });
3101
3086
  }
3102
- function La() {
3103
- const [n, e] = le(null);
3104
- function t(f) {
3105
- return { ...f };
3106
- }
3107
- function a(f) {
3108
- return [...f];
3109
- }
3110
- function s(f) {
3111
- return { ...f };
3087
+ function Ca(n) {
3088
+ let e = !1;
3089
+ const [t, s] = B(!1), [a, r] = B(null), [c] = B(Math.random());
3090
+ se(() => {
3091
+ if (l(), I.searchstax)
3092
+ I.searchstax.addPaginationWidget("searchstax-pagination-container" + c, {});
3093
+ else
3094
+ throw Error("Searchstax instance needs to be passed via props");
3095
+ }, []);
3096
+ function l() {
3097
+ e || (I.searchstax.dataLayer.$searchObject.subscribe(() => {
3098
+ h();
3099
+ }), I.searchstax.dataLayer.$paginationData.subscribe((m) => {
3100
+ r(m);
3101
+ }), e = !0);
3112
3102
  }
3113
- function r(f) {
3114
- return { ...f };
3103
+ function h() {
3104
+ !t && I.searchstax.routerHelper && (s(!0), I.searchstax.addPaginationWidget("searchstax-pagination-container" + c, {}));
3115
3105
  }
3116
- function c(f) {
3117
- return { ...f };
3106
+ function u(m) {
3107
+ var y;
3108
+ (y = I.searchstax.searchPaginationWidget) == null || y.nextPage(m);
3118
3109
  }
3119
- function o(f) {
3120
- e(f);
3110
+ function g(m) {
3111
+ var y;
3112
+ (y = I.searchstax.searchPaginationWidget) == null || y.previousPage(m);
3121
3113
  }
3122
- function h(f, x, S, C) {
3123
- return /* @__PURE__ */ g.jsxs("div", { className: "searchstax-search-input-wrapper", children: [
3124
- /* @__PURE__ */ g.jsx(
3125
- "input",
3114
+ return /* @__PURE__ */ p.jsx(p.Fragment, { children: /* @__PURE__ */ p.jsxs("div", { id: "searchstax-pagination-container" + c, children: [
3115
+ !n.paginationTemplate && a && (a == null ? void 0 : a.totalResults) !== 0 && /* @__PURE__ */ p.jsx("div", { className: "searchstax-pagination-container", children: /* @__PURE__ */ p.jsxs("div", { className: "searchstax-pagination-content", children: [
3116
+ /* @__PURE__ */ p.jsxs(
3117
+ "a",
3126
3118
  {
3127
- type: "text",
3128
- id: "searchstax-search-input",
3129
- className: "searchstax-search-input",
3130
- placeholder: "SEARCH FOR..."
3119
+ className: "searchstax-pagination-previous",
3120
+ style: a != null && a.isFirstPage ? { pointerEvents: "none" } : {},
3121
+ onClick: (m) => {
3122
+ g(m);
3123
+ },
3124
+ id: "searchstax-pagination-previous",
3125
+ children: [
3126
+ " ",
3127
+ "< Previous",
3128
+ " "
3129
+ ]
3131
3130
  }
3132
3131
  ),
3133
- /* @__PURE__ */ g.jsx(
3134
- "div",
3132
+ /* @__PURE__ */ p.jsxs("div", { className: "searchstax-pagination-details", children: [
3133
+ " ",
3134
+ a == null ? void 0 : a.startResultIndex,
3135
+ " - ",
3136
+ a == null ? void 0 : a.endResultIndex,
3137
+ " of ",
3138
+ a == null ? void 0 : a.totalResults
3139
+ ] }),
3140
+ /* @__PURE__ */ p.jsx(
3141
+ "a",
3135
3142
  {
3136
- className: `searchstax-autosuggest-container ${f.length === 0 ? "hidden" : ""}`,
3137
- onMouseLeave: x,
3138
- children: f.map(function(T) {
3139
- return /* @__PURE__ */ g.jsx("div", { className: "searchstax-autosuggest-item", children: /* @__PURE__ */ g.jsx(
3140
- "div",
3141
- {
3142
- className: "searchstax-autosuggest-item-term-container",
3143
- dangerouslySetInnerHTML: { __html: T.term },
3144
- onMouseOver: () => {
3145
- S(T);
3146
- },
3147
- onClick: () => {
3148
- C();
3149
- }
3150
- }
3151
- ) }, T.term);
3152
- })
3143
+ className: "searchstax-pagination-next",
3144
+ style: a != null && a.isLastPage ? { pointerEvents: "none" } : {},
3145
+ onClick: (m) => {
3146
+ u(m);
3147
+ },
3148
+ id: "searchstax-pagination-next",
3149
+ children: "Next >"
3153
3150
  }
3154
- ),
3155
- /* @__PURE__ */ g.jsx("button", { className: "searchstax-spinner-icon", id: "searchstax-search-input-action-button" })
3156
- ] });
3151
+ )
3152
+ ] }) }),
3153
+ n.paginationTemplate && /* @__PURE__ */ p.jsx(p.Fragment, { children: n.paginationTemplate(a, u, g) })
3154
+ ] }) });
3155
+ }
3156
+ function Sa(n) {
3157
+ let e = !1;
3158
+ const [t, s] = B(null), [a, r] = B(""), [c] = B(Math.random());
3159
+ se(() => {
3160
+ if (l(), I.searchstax)
3161
+ I.searchstax.addSearchSortingWidget("search-sorting-container" + c, {});
3162
+ else
3163
+ throw Error("Searchstax instance needs to be passed via props");
3164
+ }, []);
3165
+ function l() {
3166
+ e || (I.searchstax.dataLayer.$searchSortingData.subscribe((u) => {
3167
+ s(u);
3168
+ }), I.searchstax.dataLayer.$searchObject.subscribe((u) => {
3169
+ r(decodeURIComponent((u == null ? void 0 : u.order) ?? ""));
3170
+ }), e = !0);
3157
3171
  }
3158
- function u(f, x) {
3159
- return /* @__PURE__ */ g.jsxs("div", { children: [
3160
- /* @__PURE__ */ g.jsxs("div", { className: "searchstax-no-results", children: [
3161
- " ",
3162
- "Showing ",
3163
- /* @__PURE__ */ g.jsx("strong", { children: "no results" }),
3164
- " for ",
3165
- /* @__PURE__ */ g.jsxs("strong", { children: [
3166
- '"',
3167
- f,
3168
- '"'
3169
- ] }),
3170
- /* @__PURE__ */ g.jsx("br", {}),
3171
- (x == null ? void 0 : x.spellingSuggestion) && /* @__PURE__ */ g.jsxs("span", { children: [
3172
- " Did you mean",
3173
- " ",
3174
- /* @__PURE__ */ g.jsx("a", { href: "#", className: "searchstax-suggestion-term", children: x == null ? void 0 : x.spellingSuggestion }),
3175
- "?"
3176
- ] })
3177
- ] }),
3178
- /* @__PURE__ */ g.jsxs("div", { children: [
3179
- /* @__PURE__ */ g.jsxs("p", { children: [
3180
- " ",
3181
- "Try searching for search related terms or topics. We offer a wide variety of content to help you get the information you need.",
3182
- " "
3183
- ] }),
3184
- /* @__PURE__ */ g.jsx("p", { children: "Lost? Click on the ‘X” in the Search Box to reset your search." })
3185
- ] })
3186
- ] });
3172
+ function h(u) {
3173
+ var g;
3174
+ (g = I.searchstax.searchSortingWidget) == null || g.setOrderQuery(u);
3187
3175
  }
3188
- function p(f, x) {
3189
- return /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-results", children: f !== null && f.map(function(S) {
3190
- return /* @__PURE__ */ g.jsxs(
3191
- "div",
3176
+ return /* @__PURE__ */ p.jsx(p.Fragment, { children: /* @__PURE__ */ p.jsxs("div", { id: "search-sorting-container" + c, children: [
3177
+ !n.searchSortingTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasResultsOrExternalPromotions) && /* @__PURE__ */ p.jsxs("div", { className: "searchstax-sorting-container", children: [
3178
+ /* @__PURE__ */ p.jsx("label", { className: "searchstax-sorting-label", htmlFor: "sort-by", children: "Sort By" }),
3179
+ /* @__PURE__ */ p.jsxs(
3180
+ "select",
3192
3181
  {
3193
- className: `searchstax-search-result ${S.thumbnail ? "has-thumbnail" : ""}`,
3182
+ id: "searchstax-search-order-select",
3183
+ className: "searchstax-search-order-select",
3184
+ value: a,
3185
+ onChange: (u) => {
3186
+ h(u.target.value);
3187
+ },
3194
3188
  children: [
3195
- S.promoted && /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-result-promoted" }),
3196
- S.url && /* @__PURE__ */ g.jsx(
3197
- "a",
3198
- {
3199
- href: S.url,
3200
- "data-searchstax-unique-result-id": S.uniqueId,
3201
- onClick: (C) => {
3202
- x(S, C);
3203
- },
3204
- className: "searchstax-result-item-link"
3205
- }
3206
- ),
3207
- S.ribbon && /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-result-ribbon", children: S.ribbon }),
3208
- S.thumbnail && /* @__PURE__ */ g.jsx("img", { src: S.thumbnail, className: "searchstax-thumbnail" }),
3209
- /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-result-title-container", children: /* @__PURE__ */ g.jsx("span", { className: "searchstax-search-result-title", children: S.title }) }),
3210
- S.paths && /* @__PURE__ */ g.jsx("p", { className: "searchstax-search-result-common", children: S.paths }),
3211
- S.description && /* @__PURE__ */ g.jsx("p", { className: "searchstax-search-result-description searchstax-search-result-common", children: S.description }),
3212
- S.unmappedFields.map(function(C) {
3213
- return /* @__PURE__ */ g.jsxs("div", { children: [
3214
- C.isImage && typeof C.value == "string" && /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-result-image-container", children: /* @__PURE__ */ g.jsx("img", { src: C.value, className: "searchstax-result-image" }) }),
3215
- !C.isImage && /* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsx("p", { className: "searchstax-search-result-common", children: C.value }) })
3216
- ] }, C.key);
3217
- })
3189
+ /* @__PURE__ */ p.jsx("option", { value: "", children: " Relevance " }),
3190
+ /* @__PURE__ */ p.jsx("option", { value: "date desc", children: " Newest Content " }),
3191
+ /* @__PURE__ */ p.jsx("option", { value: "date asc", children: " Oldest Content " })
3218
3192
  ]
3219
- },
3220
- S.uniqueId
3221
- );
3222
- }) });
3223
- }
3224
- const v = {
3225
- searchURL: "https://ss325316-pz27ybgj-us-east-1-aws.searchstax.co/solr/corpsiteproductionclone-1512/emselect",
3226
- suggesterURL: "https://ss325316-pz27ybgj-us-east-1-aws.searchstax.co/solr/corpsiteproductionclone-1512-suggester/emsuggest",
3227
- trackApiKey: "K48zwO871m7aYwowBkweALTWVQRZTMBpVNq0Qg2Mamo",
3228
- searchAuth: "YXBwMTUxMi1hcGk6UzNhcmNoaW5nIQ==",
3229
- authType: "basic",
3230
- relatedSearchesAPIKey: "5382dbaf29dfeb20ad306b558acdab3129d4c824",
3231
- relatedSearchesURL: "https://app.searchstax.co/api/v1/1512/related-search/"
3232
- };
3233
- return /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsx(
3234
- Sa,
3235
- {
3236
- searchURL: v.searchURL,
3237
- suggesterURL: v.suggesterURL,
3238
- trackApiKey: v.trackApiKey,
3239
- searchAuth: v.searchAuth,
3240
- initialized: o,
3241
- beforeSearch: t,
3242
- afterSearch: a,
3243
- authType: "basic",
3244
- language: "en",
3245
- children: /* @__PURE__ */ g.jsxs("div", { className: "searchstax-page-layout-container", children: [
3246
- /* @__PURE__ */ g.jsx(
3247
- Ca,
3193
+ }
3194
+ )
3195
+ ] }),
3196
+ n.searchSortingTemplate && /* @__PURE__ */ p.jsx(p.Fragment, { children: n.searchSortingTemplate(t, h, a) })
3197
+ ] }) });
3198
+ }
3199
+ function Ta(n) {
3200
+ let e = !1;
3201
+ const [t, s] = B(null), [a] = B(Math.random());
3202
+ se(() => {
3203
+ if (r(), I.searchstax)
3204
+ I.searchstax.addSearchFeedbackWidget("search-feedback-container" + a, {});
3205
+ else
3206
+ throw Error("Searchstax instance needs to be passed via props");
3207
+ }, []);
3208
+ function r() {
3209
+ e || (I.searchstax.dataLayer.$searchFeedbackData.subscribe(
3210
+ (l) => {
3211
+ s(l);
3212
+ }
3213
+ ), e = !0);
3214
+ }
3215
+ function c(l) {
3216
+ var h;
3217
+ (h = I.searchstax.searchFeedbackWidget) == null || h.onOriginalQueryClick(l);
3218
+ }
3219
+ return /* @__PURE__ */ p.jsx(p.Fragment, { children: /* @__PURE__ */ p.jsxs("div", { className: "search-feedback-container", id: "search-feedback-container" + a, children: [
3220
+ !n.searchOverviewTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.totalResults) && /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
3221
+ "Showing",
3222
+ " ",
3223
+ /* @__PURE__ */ p.jsxs("b", { children: [
3224
+ t.startResultIndex,
3225
+ " - ",
3226
+ t.endResultIndex
3227
+ ] }),
3228
+ " ",
3229
+ "of",
3230
+ /* @__PURE__ */ p.jsxs("b", { children: [
3231
+ " ",
3232
+ t.totalResults
3233
+ ] }),
3234
+ " results",
3235
+ t.searchTerm && /* @__PURE__ */ p.jsxs("span", { children: [
3236
+ ' for "',
3237
+ /* @__PURE__ */ p.jsx("b", { children: t.searchTerm }),
3238
+ '"',
3239
+ " "
3240
+ ] }),
3241
+ /* @__PURE__ */ p.jsx("div", { className: "searchstax-feedback-container-suggested", children: t.autoCorrectedQuery && /* @__PURE__ */ p.jsxs("div", { children: [
3242
+ " ",
3243
+ "Search instead for",
3244
+ " ",
3245
+ /* @__PURE__ */ p.jsx(
3246
+ "a",
3248
3247
  {
3249
- afterAutosuggest: s,
3250
- beforeAutosuggest: r,
3251
- inputTemplate: h
3248
+ href: "#",
3249
+ onClick: (l) => {
3250
+ c(l);
3251
+ },
3252
+ className: "searchstax-feedback-original-query",
3253
+ children: t.originalQuery
3252
3254
  }
3253
- ),
3254
- /* @__PURE__ */ g.jsxs("div", { className: "search-details-container", children: [
3255
- /* @__PURE__ */ g.jsx("div", { id: "search-feedback-container" }),
3256
- /* @__PURE__ */ g.jsx("div", { id: "search-sorting-container" })
3257
- ] }),
3258
- /* @__PURE__ */ g.jsxs("div", { className: "searchstax-page-layout-facet-result-container", children: [
3259
- /* @__PURE__ */ g.jsx("div", { className: "searchstax-page-layout-facet-container", children: /* @__PURE__ */ g.jsx("div", { id: "searchstax-facets-container" }) }),
3260
- /* @__PURE__ */ g.jsxs("div", { className: "searchstax-page-layout-result-container", children: [
3261
- /* @__PURE__ */ g.jsx("div", { id: "searchstax-external-promotions-layout-container" }),
3262
- /* @__PURE__ */ g.jsx(
3263
- Ta,
3264
- {
3265
- afterLinkClick: c,
3266
- noResultTemplate: u,
3267
- resultsTemplate: p
3268
- }
3269
- ),
3270
- /* @__PURE__ */ g.jsx("div", { id: "searchstax-related-searches-container" }),
3271
- /* @__PURE__ */ g.jsx("div", { id: "searchstax-pagination-container" })
3272
- ] })
3273
- ] })
3274
- ] })
3275
- }
3276
- ) });
3255
+ )
3256
+ ] }) })
3257
+ ] }),
3258
+ n.searchOverviewTemplate && /* @__PURE__ */ p.jsx(p.Fragment, { children: n.searchOverviewTemplate(t, c) })
3259
+ ] }) });
3277
3260
  }
3278
- const Ra = document.getElementById("root"), ka = Ie(Ra);
3279
- ka.render(/* @__PURE__ */ g.jsx(La, {}));
3261
+ export {
3262
+ ya as SearchstaxInputWidget,
3263
+ Ta as SearchstaxOverviewWidget,
3264
+ Ca as SearchstaxPaginationWidget,
3265
+ xa as SearchstaxResultWidget,
3266
+ Sa as SearchstaxSortingWidget,
3267
+ ba as SearchstaxWrapper
3268
+ };