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

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 rt, { useState as V, useEffect as ee, createRef as Ge } from "react";
2
+ var Ie = { exports: {} }, le = {};
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);
12
+ var Ze;
13
+ function jt() {
14
+ if (Ze)
15
+ return le;
16
+ Ze = 1;
17
+ var n = rt, 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 };
18
+ function c(l, h, d) {
19
+ var p, v = {}, b = null, E = null;
20
+ d !== void 0 && (b = "" + d), h.key !== void 0 && (b = "" + h.key), h.ref !== void 0 && (E = h.ref);
22
21
  for (p in h)
23
22
  a.call(h, p) && !r.hasOwnProperty(p) && (v[p] = h[p]);
24
- if (o && o.defaultProps)
25
- for (p in h = o.defaultProps, h)
23
+ if (l && l.defaultProps)
24
+ for (p in h = l.defaultProps, h)
26
25
  v[p] === void 0 && (v[p] = h[p]);
27
- return { $$typeof: e, type: o, key: f, ref: x, props: v, _owner: s.current };
26
+ return { $$typeof: e, type: l, key: b, ref: E, props: v, _owner: s.current };
28
27
  }
29
- return ie.Fragment = t, ie.jsx = c, ie.jsxs = c, ie;
28
+ return le.Fragment = t, le.jsx = c, le.jsxs = c, le;
30
29
  }
31
- var ne = {};
30
+ var oe = {};
32
31
  /**
33
32
  * @license React
34
33
  * react-jsx-runtime.development.js
@@ -38,57 +37,57 @@ 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 et;
41
+ function wt() {
42
+ return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var n = rt, 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"), l = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), M = Symbol.iterator, R = "@@iterator";
44
+ function L(i) {
46
45
  if (i === null || typeof i != "object")
47
46
  return null;
48
- var d = S && i[S] || i[C];
49
- return typeof d == "function" ? d : null;
47
+ var g = M && i[M] || i[R];
48
+ return typeof g == "function" ? g : null;
50
49
  }
51
50
  var P = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
- function L(i) {
51
+ function S(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 g = arguments.length, f = new Array(g > 1 ? g - 1 : 0), C = 1; C < g; C++)
54
+ f[C - 1] = arguments[C];
55
+ N("error", i, f);
57
56
  }
58
57
  }
59
- function A(i, d, m) {
58
+ function N(i, g, 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 C = P.ReactDebugCurrentFrame, j = C.getStackAddendum();
61
+ j !== "" && (g += "%s", f = f.concat([j]));
62
+ var O = f.map(function(I) {
63
+ return String(I);
65
64
  });
66
- w.unshift("Warning: " + d), Function.prototype.apply.call(console[i], console, w);
65
+ O.unshift("Warning: " + g), Function.prototype.apply.call(console[i], console, O);
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 H = !1, A = !1, Q = !1, m = !1, y = !1, F;
69
+ F = Symbol.for("react.module.reference");
70
+ function D(i) {
71
+ return !!(typeof i == "string" || typeof i == "function" || i === a || i === r || y || i === s || i === d || i === p || m || i === E || H || A || Q || typeof i == "object" && i !== null && (i.$$typeof === b || i.$$typeof === v || 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 === F || i.getModuleId !== void 0));
77
76
  }
78
- function Y(i, d, m) {
79
- var b = i.displayName;
80
- if (b)
81
- return b;
82
- var E = d.displayName || d.name || "";
83
- return E !== "" ? m + "(" + E + ")" : m;
77
+ function X(i, g, f) {
78
+ var C = i.displayName;
79
+ if (C)
80
+ return C;
81
+ var j = g.displayName || g.name || "";
82
+ return j !== "" ? f + "(" + j + ")" : f;
84
83
  }
85
- function je(i) {
84
+ function ie(i) {
86
85
  return i.displayName || "Context";
87
86
  }
88
- function W(i) {
87
+ function K(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" && S("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;
@@ -101,28 +100,28 @@ function Mt() {
101
100
  return "Profiler";
102
101
  case s:
103
102
  return "StrictMode";
104
- case u:
103
+ case d:
105
104
  return "Suspense";
106
105
  case p:
107
106
  return "SuspenseList";
108
107
  }
109
108
  if (typeof i == "object")
110
109
  switch (i.$$typeof) {
111
- case o:
112
- var d = i;
113
- return je(d) + ".Consumer";
110
+ case l:
111
+ var g = i;
112
+ return ie(g) + ".Consumer";
114
113
  case c:
115
- var m = i;
116
- return je(m._context) + ".Provider";
114
+ var f = i;
115
+ return ie(f._context) + ".Provider";
117
116
  case h:
118
- return Y(i, i.render, "ForwardRef");
117
+ return X(i, i.render, "ForwardRef");
119
118
  case v:
120
- 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;
119
+ var C = i.displayName || null;
120
+ return C !== null ? C : K(i.type) || "Memo";
121
+ case b: {
122
+ var j = i, O = j._payload, I = j._init;
124
123
  try {
125
- return W(k(w));
124
+ return K(I(O));
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 Y = Object.assign, ne = 0, je, we, Fe, Oe, Me, Ae, Ne;
133
+ function De() {
135
134
  }
136
- _e.__reactDisabledLog = !0;
137
- function ct() {
135
+ De.__reactDisabledLog = !0;
136
+ function it() {
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 (ne === 0) {
139
+ je = console.log, we = console.info, Fe = console.warn, Oe = console.error, Me = console.group, Ae = console.groupCollapsed, Ne = console.groupEnd;
141
140
  var i = {
142
141
  configurable: !0,
143
142
  enumerable: !0,
144
- value: _e,
143
+ value: De,
145
144
  writable: !0
146
145
  };
147
146
  Object.defineProperties(console, {
@@ -154,336 +153,336 @@ function Mt() {
154
153
  groupEnd: i
155
154
  });
156
155
  }
157
- se++;
156
+ ne++;
158
157
  }
159
158
  }
160
- function ot() {
159
+ function nt() {
161
160
  {
162
- if (se--, se === 0) {
161
+ if (ne--, ne === 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: Y({}, i, {
169
+ value: je
170
+ }),
171
+ info: Y({}, i, {
172
+ value: we
173
+ }),
174
+ warn: Y({}, i, {
170
175
  value: Fe
171
176
  }),
172
- info: J({}, i, {
177
+ error: Y({}, i, {
173
178
  value: Oe
174
179
  }),
175
- warn: J({}, i, {
180
+ group: Y({}, i, {
176
181
  value: Me
177
182
  }),
178
- error: J({}, i, {
183
+ groupCollapsed: Y({}, i, {
179
184
  value: Ae
180
185
  }),
181
- group: J({}, i, {
182
- value: De
183
- }),
184
- groupCollapsed: J({}, i, {
185
- value: $e
186
- }),
187
- groupEnd: J({}, i, {
188
- value: qe
186
+ groupEnd: Y({}, i, {
187
+ value: Ne
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
+ ne < 0 && S("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 xe = P.ReactCurrentDispatcher, be;
195
+ function pe(i, g, 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 (j) {
201
+ var C = j.stack.trim().match(/\n( *(at )?)/);
202
+ be = C && C[1] || "";
204
203
  }
205
204
  return `
206
- ` + xe + i;
205
+ ` + be + i;
207
206
  }
208
207
  }
209
- var be = !1, ge;
208
+ var Ce = !1, me;
210
209
  {
211
- var lt = typeof WeakMap == "function" ? WeakMap : Map;
212
- ge = new lt();
210
+ var ct = typeof WeakMap == "function" ? WeakMap : Map;
211
+ me = new ct();
213
212
  }
214
- function Ne(i, d) {
215
- if (!i || be)
213
+ function $e(i, g) {
214
+ if (!i || Ce)
216
215
  return "";
217
216
  {
218
- var m = ge.get(i);
219
- if (m !== void 0)
220
- return m;
217
+ var f = me.get(i);
218
+ if (f !== void 0)
219
+ return f;
221
220
  }
222
- var b;
223
- be = !0;
224
- var E = Error.prepareStackTrace;
221
+ var C;
222
+ Ce = !0;
223
+ var j = Error.prepareStackTrace;
225
224
  Error.prepareStackTrace = void 0;
226
- var w;
227
- w = ye.current, ye.current = null, ct();
225
+ var O;
226
+ O = xe.current, xe.current = null, it();
228
227
  try {
229
- if (d) {
230
- var k = function() {
228
+ if (g) {
229
+ var I = function() {
231
230
  throw Error();
232
231
  };
233
- if (Object.defineProperty(k.prototype, "props", {
232
+ if (Object.defineProperty(I.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, []);
240
- } catch (K) {
241
- b = K;
238
+ Reflect.construct(I, []);
239
+ } catch (G) {
240
+ C = G;
242
241
  }
243
- Reflect.construct(i, [], k);
242
+ Reflect.construct(i, [], I);
244
243
  } else {
245
244
  try {
246
- k.call();
247
- } catch (K) {
248
- b = K;
245
+ I.call();
246
+ } catch (G) {
247
+ C = G;
249
248
  }
250
- i.call(k.prototype);
249
+ i.call(I.prototype);
251
250
  }
252
251
  } else {
253
252
  try {
254
253
  throw Error();
255
- } catch (K) {
256
- b = K;
254
+ } catch (G) {
255
+ C = G;
257
256
  }
258
257
  i();
259
258
  }
260
- } catch (K) {
261
- 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)
259
+ } catch (G) {
260
+ if (G && C && typeof G.stack == "string") {
261
+ for (var k = G.stack.split(`
262
+ `), W = C.stack.split(`
263
+ `), $ = k.length - 1, _ = W.length - 1; $ >= 1 && _ >= 0 && k[$] !== W[_]; )
264
+ _--;
265
+ for (; $ >= 1 && _ >= 0; $--, _--)
266
+ if (k[$] !== W[_]) {
267
+ if ($ !== 1 || _ !== 1)
269
268
  do
270
- if (F--, M--, M < 0 || R[F] !== _[M]) {
271
- 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;
269
+ if ($--, _--, _ < 0 || k[$] !== W[_]) {
270
+ var z = `
271
+ ` + k[$].replace(" at new ", " at ");
272
+ return i.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", i.displayName)), typeof i == "function" && me.set(i, z), z;
274
273
  }
275
- while (F >= 1 && M >= 0);
274
+ while ($ >= 1 && _ >= 0);
276
275
  break;
277
276
  }
278
277
  }
279
278
  } finally {
280
- be = !1, ye.current = w, ot(), Error.prepareStackTrace = E;
279
+ Ce = !1, xe.current = O, nt(), Error.prepareStackTrace = j;
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 ae = i ? i.displayName || i.name : "", Xe = ae ? pe(ae) : "";
282
+ return typeof i == "function" && me.set(i, Xe), Xe;
284
283
  }
285
- function ht(i, d, m) {
286
- return Ne(i, !1);
284
+ function lt(i, g, f) {
285
+ return $e(i, !1);
287
286
  }
288
- function ut(i) {
289
- var d = i.prototype;
290
- return !!(d && d.isReactComponent);
287
+ function ot(i) {
288
+ var g = i.prototype;
289
+ return !!(g && g.isReactComponent);
291
290
  }
292
- function pe(i, d, m) {
291
+ function fe(i, g, f) {
293
292
  if (i == null)
294
293
  return "";
295
294
  if (typeof i == "function")
296
- return Ne(i, ut(i));
295
+ return $e(i, ot(i));
297
296
  if (typeof i == "string")
298
- return de(i);
297
+ return pe(i);
299
298
  switch (i) {
300
- case u:
301
- return de("Suspense");
299
+ case d:
300
+ return pe("Suspense");
302
301
  case p:
303
- return de("SuspenseList");
302
+ return pe("SuspenseList");
304
303
  }
305
304
  if (typeof i == "object")
306
305
  switch (i.$$typeof) {
307
306
  case h:
308
- return ht(i.render);
307
+ return lt(i.render);
309
308
  case v:
310
- return pe(i.type, d, m);
311
- case f: {
312
- var b = i, E = b._payload, w = b._init;
309
+ return fe(i.type, g, f);
310
+ case b: {
311
+ var C = i, j = C._payload, O = C._init;
313
312
  try {
314
- return pe(w(E), d, m);
313
+ return fe(O(j), g, 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 ve = Object.prototype.hasOwnProperty, qe = {}, _e = P.ReactDebugCurrentFrame;
321
+ function ye(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 g = i._owner, f = fe(i.type, i._source, g ? g.type : null);
324
+ _e.setExtraStackFrame(f);
326
325
  } else
327
- He.setExtraStackFrame(null);
326
+ _e.setExtraStackFrame(null);
328
327
  }
329
- function dt(i, d, m, b, E) {
328
+ function ht(i, g, f, C, j) {
330
329
  {
331
- var w = Function.call.bind(me);
332
- for (var k in i)
333
- if (w(i, k)) {
334
- var R = void 0;
330
+ var O = Function.call.bind(ve);
331
+ for (var I in i)
332
+ if (O(i, I)) {
333
+ var k = 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[I] != "function") {
336
+ var W = Error((C || "React class") + ": " + f + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw W.name = "Invariant Violation", W;
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
+ k = i[I](g, I, C, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch ($) {
341
+ k = $;
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
+ k && !(k instanceof Error) && (ye(j), S("%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).", C || "React class", f, I, typeof k), ye(null)), k instanceof Error && !(k.message in qe) && (qe[k.message] = !0, ye(j), S("Failed %s type: %s", f, k.message), ye(null));
345
344
  }
346
345
  }
347
346
  }
348
- var gt = Array.isArray;
349
- function Ce(i) {
350
- return gt(i);
347
+ var ut = Array.isArray;
348
+ function Se(i) {
349
+ return ut(i);
351
350
  }
352
- function pt(i) {
351
+ function dt(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 g = typeof Symbol == "function" && Symbol.toStringTag, f = g && i[Symbol.toStringTag] || i.constructor.name || "Object";
354
+ return f;
356
355
  }
357
356
  }
358
- function mt(i) {
357
+ function gt(i) {
359
358
  try {
360
- return Be(i), !1;
359
+ return He(i), !1;
361
360
  } catch {
362
361
  return !0;
363
362
  }
364
363
  }
365
- function Be(i) {
364
+ function He(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 Be(i) {
368
+ if (gt(i))
369
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", dt(i)), He(i);
371
370
  }
372
- var re = P.ReactCurrentOwner, ft = {
371
+ var ce = P.ReactCurrentOwner, pt = {
373
372
  key: !0,
374
373
  ref: !0,
375
374
  __self: !0,
376
375
  __source: !0
377
- }, We, Ke, Se;
378
- Se = {};
379
- function vt(i) {
380
- if (me.call(i, "ref")) {
381
- var d = Object.getOwnPropertyDescriptor(i, "ref").get;
382
- if (d && d.isReactWarning)
376
+ }, Ve, We, Te;
377
+ Te = {};
378
+ function mt(i) {
379
+ if (ve.call(i, "ref")) {
380
+ var g = Object.getOwnPropertyDescriptor(i, "ref").get;
381
+ if (g && g.isReactWarning)
383
382
  return !1;
384
383
  }
385
384
  return i.ref !== void 0;
386
385
  }
387
- function yt(i) {
388
- if (me.call(i, "key")) {
389
- var d = Object.getOwnPropertyDescriptor(i, "key").get;
390
- if (d && d.isReactWarning)
386
+ function ft(i) {
387
+ if (ve.call(i, "key")) {
388
+ var g = Object.getOwnPropertyDescriptor(i, "key").get;
389
+ if (g && g.isReactWarning)
391
390
  return !1;
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 vt(i, g) {
395
+ if (typeof i.ref == "string" && ce.current && g && ce.current.stateNode !== g) {
396
+ var f = K(ce.current.type);
397
+ Te[f] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', K(ce.current.type), i.ref), Te[f] = !0);
399
398
  }
400
399
  }
401
- function bt(i, d) {
400
+ function yt(i, g) {
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
+ Ve || (Ve = !0, S("%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)", g));
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 xt(i, g) {
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, S("%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)", g));
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, g, f, C, j, O, I) {
423
+ var k = {
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
- key: d,
430
- ref: m,
431
- props: k,
428
+ key: g,
429
+ ref: f,
430
+ props: I,
432
431
  // Record the component responsible for creating this element.
433
- _owner: w
432
+ _owner: O
434
433
  };
435
- return R._store = {}, Object.defineProperty(R._store, "validated", {
434
+ return k._store = {}, Object.defineProperty(k._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(k, "_self", {
441
440
  configurable: !1,
442
441
  enumerable: !1,
443
442
  writable: !1,
444
- value: b
445
- }), Object.defineProperty(R, "_source", {
443
+ value: C
444
+ }), Object.defineProperty(k, "_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: j
449
+ }), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
451
450
  };
452
- function Tt(i, d, m, b, E) {
451
+ function Ct(i, g, f, C, j) {
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));
456
- for (w in d)
457
- me.call(d, w) && !ft.hasOwnProperty(w) && (k[w] = d[w]);
453
+ var O, I = {}, k = null, W = null;
454
+ f !== void 0 && (Be(f), k = "" + f), ft(g) && (Be(g.key), k = "" + g.key), mt(g) && (W = g.ref, vt(g, j));
455
+ for (O in g)
456
+ ve.call(g, O) && !pt.hasOwnProperty(O) && (I[O] = g[O]);
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 $ = i.defaultProps;
459
+ for (O in $)
460
+ I[O] === void 0 && (I[O] = $[O]);
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 (k || W) {
463
+ var _ = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
464
+ k && yt(I, _), W && xt(I, _);
466
465
  }
467
- return St(i, R, _, E, b, re.current, k);
466
+ return bt(i, k, W, j, C, ce.current, I);
468
467
  }
469
468
  }
470
- var Te = P.ReactCurrentOwner, Qe = P.ReactDebugCurrentFrame;
471
- function Z(i) {
469
+ var Le = P.ReactCurrentOwner, Ue = P.ReactDebugCurrentFrame;
470
+ function te(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 g = i._owner, f = fe(i.type, i._source, g ? g.type : null);
473
+ Ue.setExtraStackFrame(f);
475
474
  } else
476
- Qe.setExtraStackFrame(null);
475
+ Ue.setExtraStackFrame(null);
477
476
  }
478
- var Le;
479
- Le = !1;
480
- function Re(i) {
477
+ var Re;
478
+ Re = !1;
479
+ function ke(i) {
481
480
  return typeof i == "object" && i !== null && i.$$typeof === e;
482
481
  }
483
- function ze() {
482
+ function Qe() {
484
483
  {
485
- if (Te.current) {
486
- var i = W(Te.current.type);
484
+ if (Le.current) {
485
+ var i = K(Le.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 St(i) {
496
495
  {
497
496
  if (i !== void 0) {
498
- var d = i.fileName.replace(/^.*[\\\/]/, ""), m = i.lineNumber;
497
+ var g = i.fileName.replace(/^.*[\\\/]/, ""), f = i.lineNumber;
499
498
  return `
500
499
 
501
- Check your code at ` + d + ":" + m + ".";
500
+ Check your code at ` + g + ":" + f + ".";
502
501
  }
503
502
  return "";
504
503
  }
505
504
  }
506
- var Ye = {};
507
- function Rt(i) {
505
+ var Ke = {};
506
+ function Tt(i) {
508
507
  {
509
- var d = ze();
510
- if (!d) {
511
- var m = typeof i == "string" ? i : i.displayName || i.name;
512
- m && (d = `
508
+ var g = Qe();
509
+ if (!g) {
510
+ var f = typeof i == "string" ? i : i.displayName || i.name;
511
+ f && (g = `
513
512
 
514
- Check the top-level render call using <` + m + ">.");
513
+ Check the top-level render call using <` + f + ">.");
515
514
  }
516
- return d;
515
+ return g;
517
516
  }
518
517
  }
519
- function Je(i, d) {
518
+ function ze(i, g) {
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 = Tt(g);
524
+ if (Ke[f])
526
525
  return;
527
- Ye[m] = !0;
528
- 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);
526
+ Ke[f] = !0;
527
+ var C = "";
528
+ i && i._owner && i._owner !== Le.current && (C = " It was passed a child from " + K(i._owner.type) + "."), te(i), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, C), te(null);
530
529
  }
531
530
  }
532
- function Xe(i, d) {
531
+ function Je(i, g) {
533
532
  {
534
533
  if (typeof i != "object")
535
534
  return;
536
- if (Ce(i))
537
- for (var m = 0; m < i.length; m++) {
538
- var b = i[m];
539
- Re(b) && Je(b, d);
535
+ if (Se(i))
536
+ for (var f = 0; f < i.length; f++) {
537
+ var C = i[f];
538
+ ke(C) && ze(C, g);
540
539
  }
541
- else if (Re(i))
540
+ else if (ke(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 j = L(i);
544
+ if (typeof j == "function" && j !== i.entries)
545
+ for (var O = j.call(i), I; !(I = O.next()).done; )
546
+ ke(I.value) && ze(I.value, g);
548
547
  }
549
548
  }
550
549
  }
551
- function kt(i) {
550
+ function Lt(i) {
552
551
  {
553
- var d = i.type;
554
- if (d == null || typeof d == "string")
552
+ var g = i.type;
553
+ if (g == null || typeof g == "string")
555
554
  return;
556
- var m;
557
- if (typeof d == "function")
558
- m = d.propTypes;
559
- else if (typeof d == "object" && (d.$$typeof === h || // Note: Memo only checks outer props here.
555
+ var f;
556
+ if (typeof g == "function")
557
+ f = g.propTypes;
558
+ else if (typeof g == "object" && (g.$$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
+ g.$$typeof === v))
561
+ f = g.propTypes;
563
562
  else
564
563
  return;
565
- if (m) {
566
- var b = W(d);
567
- dt(m, i.props, "prop", b, i);
568
- } else if (d.PropTypes !== void 0 && !Le) {
569
- Le = !0;
570
- var E = W(d);
571
- L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
564
+ if (f) {
565
+ var C = K(g);
566
+ ht(f, i.props, "prop", C, i);
567
+ } else if (g.PropTypes !== void 0 && !Re) {
568
+ Re = !0;
569
+ var j = K(g);
570
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "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 g.getDefaultProps == "function" && !g.getDefaultProps.isReactClassApproved && S("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 Rt(i) {
577
576
  {
578
- for (var d = Object.keys(i.props), m = 0; m < d.length; m++) {
579
- var b = d[m];
580
- 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);
577
+ for (var g = Object.keys(i.props), f = 0; f < g.length; f++) {
578
+ var C = g[f];
579
+ if (C !== "children" && C !== "key") {
580
+ te(i), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), te(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 && (te(i), S("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
586
585
  }
587
586
  }
588
- function Ge(i, d, m, b, E, w) {
587
+ function Ye(i, g, f, C, j, O) {
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 I = D(i);
590
+ if (!I) {
591
+ var k = "";
592
+ (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (k += " 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 W = St(j);
594
+ W ? k += W : k += Qe();
595
+ var $;
596
+ i === null ? $ = "null" : Se(i) ? $ = "array" : i !== void 0 && i.$$typeof === e ? ($ = "<" + (K(i.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof i, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, k);
598
597
  }
599
- var M = Tt(i, d, m, E, w);
600
- if (M == null)
601
- return M;
602
- if (k) {
603
- var H = d.children;
604
- if (H !== void 0)
605
- if (b)
606
- if (Ce(H)) {
607
- for (var ee = 0; ee < H.length; ee++)
608
- Xe(H[ee], i);
609
- Object.freeze && Object.freeze(H);
598
+ var _ = Ct(i, g, f, j, O);
599
+ if (_ == null)
600
+ return _;
601
+ if (I) {
602
+ var z = g.children;
603
+ if (z !== void 0)
604
+ if (C)
605
+ if (Se(z)) {
606
+ for (var ae = 0; ae < z.length; ae++)
607
+ Je(z[ae], i);
608
+ Object.freeze && Object.freeze(z);
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
+ S("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(z, i);
614
613
  }
615
- return i === a ? Et(M) : kt(M), M;
614
+ return i === a ? Rt(_) : Lt(_), _;
616
615
  }
617
616
  }
618
- function It(i, d, m) {
619
- return Ge(i, d, m, !0);
617
+ function kt(i, g, f) {
618
+ return Ye(i, g, f, !0);
620
619
  }
621
- function Pt(i, d, m) {
622
- return Ge(i, d, m, !1);
620
+ function Et(i, g, f) {
621
+ return Ye(i, g, f, !1);
623
622
  }
624
- var wt = Pt, jt = It;
625
- ne.Fragment = a, ne.jsx = wt, ne.jsxs = jt;
626
- }()), ne;
623
+ var It = Et, Pt = kt;
624
+ oe.Fragment = a, oe.jsx = It, oe.jsxs = Pt;
625
+ }()), oe;
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" ? Ie.exports = jt() : Ie.exports = wt();
628
+ var u = Ie.exports, Ft = Object.defineProperty, Ot = (n, e, t) => e in n ? Ft(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, o = (n, e, t) => (Ot(n, typeof e != "symbol" ? e + "" : e, t), t), B = /* @__PURE__ */ ((n) => (n[n.mustache = 0] = "mustache", n[n.vue = 1] = "vue", n[n.react = 2] = "react", n[n.angular = 3] = "angular", n))(B || {});
629
+ class Mt {
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;
@@ -697,11 +682,11 @@ class $t {
697
682
  var e;
698
683
  const t = this.dataLayer.searchFacetsCached ?? this.dataLayer.searchFacets;
699
684
  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);
685
+ const s = a.name, r = a.value, c = t.find((l) => l.name === s);
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
692
  }).filter((a) => a !== null) : [];
@@ -750,14 +735,14 @@ class $t {
750
735
  };
751
736
  }
752
737
  }
753
- class B {
738
+ class J {
754
739
  static deepEqual(e, t) {
755
740
  const a = Object.keys(e), s = Object.keys(t);
756
741
  if (a.length !== s.length)
757
742
  return !1;
758
743
  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)
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 q {
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
777
  var t = "script|style|iframe|object|embed|form|input|button", a = new RegExp("</?(" + t + ")(\\s[^>]*)?>", "gi");
793
778
  return e ? e.replace(a, "") : "";
794
779
  }
795
780
  }
796
- class qt {
781
+ class At {
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 q("")), o(this, "$loadingChange", new q(!1)), o(this, "$searchResults", new q(null)), o(this, "$searchResultsMetadata", new q(null)), o(this, "$searchAutosuggest", new q(null)), o(this, "$searchFacets", new q(null)), o(this, "$searchFacetsCached", new q(null)), o(this, "$searchstaxConfig", new q(null)), o(this, "$autosuggestResults", new q(null)), o(this, "$searchObject", new q({
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 q(null)), o(this, "$searchInputConfig", new q(null)), o(this, "$searchExternalPromotions", new q(null)), o(this, "$facetsTemplateData", new q(null)), o(this, "$selectedFacetsTemplateData", new q(null)), o(this, "$paginationData", new q(null)), o(this, "$searchFeedbackData", new q(null)), o(this, "$searchSortingData", new q(null)), o(this, "$searchRelatedSearchesData", new q(null)), o(this, "$searchExternalPromotionsData", new q(null)), o(this, "$language", new q("en")), o(this, "currentPageValue", 1), o(this, "renderingEngineValue", B.mustache), o(this, "parsedData", new Mt(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,10 +801,10 @@ 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
+ J.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
+ J.deepEqual(e, this.searchResultsMetadata ?? {}) || this.$searchResultsMetadata.setValue(e);
823
808
  }
824
809
  setSearchAutosuggest(e) {
825
810
  this.$searchAutosuggest.setValue(e);
@@ -827,19 +812,19 @@ class qt {
827
812
  setSearchObject(e) {
828
813
  var t, a;
829
814
  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);
815
+ (a = (t = this.searchstaxConfig) == null ? void 0 : t.hooks) != null && a.beforeSearch && s && (s = this.searchstaxConfig.hooks.beforeSearch(s)), s && (!J.deepEqual(s, this.searchObject ?? {}) || this.forceNotCorrect) && this.$searchObject.setValue(s);
831
816
  }
832
817
  setSearchFacets(e) {
833
- B.deepEqual(e, this.searchFacets ?? []) || this.$searchFacets.setValue(e);
818
+ J.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
+ J.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
+ J.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
+ J.deepEqual(e, this.searchExternalPromotions ?? []) || this.$searchExternalPromotions.setValue(e);
843
828
  }
844
829
  setLanguage(e) {
845
830
  this.$language.setValue(e);
@@ -944,11 +929,11 @@ class qt {
944
929
  return this.$searchExternalPromotionsData.getValue();
945
930
  }
946
931
  }
947
- class ce {
932
+ class he {
948
933
  static combineResultsWithMetadata(e) {
949
934
  const t = [], a = parseInt(e.response.start + "") - 1, s = 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,
@@ -968,7 +953,7 @@ 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) {
@@ -978,8 +963,8 @@ class ce {
978
963
  if (s.name = a.name, s.label = a.label, a.name in e.facet_counts.facet_fields) {
979
964
  const r = e.facet_counts.facet_fields[a.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 = s.name, l.count = r[c + 1], l.type = "checkbox", s.values.push(l);
983
968
  }
984
969
  }
985
970
  s.values.length > 0 && t.push(s);
@@ -1053,9 +1038,9 @@ class ce {
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 tt {
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 Nt(this.routeName);
1059
1044
  }
1060
1045
  updateUrl(e) {
1061
1046
  const t = this.searchObjectToUrl(e);
@@ -1091,28 +1076,28 @@ class st {
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((a = e[c].split(":")) == null ? void 0 : a[1])), d = Z.removeXSSRiskyTags(decodeURIComponent((s = e[c].split(":")) == null ? void 0 : s[2]));
1080
+ r.push({ type: l, name: h, value: d });
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), a = Z.removeXSSRiskyTags(decodeURIComponent(t[this.routeName + "[page]"])), s = parseInt(a), r = isNaN(s) ? 1 : s;
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 Nt {
1110
1095
  constructor(e) {
1111
- l(this, "routeName", ""), l(this, "stringify", (t, a) => {
1096
+ o(this, "routeName", ""), o(this, "stringify", (t, a) => {
1112
1097
  const s = this.filterOutIgnoredKeys(t, a.ignoredKeys);
1113
1098
  return Object.keys(s).map((r) => {
1114
1099
  const c = s[r];
1115
- return Array.isArray(c) ? c.map((o) => `${r}=${o}`).join("&") : `${r}=${c}`;
1100
+ return Array.isArray(c) ? c.map((l) => `${r}=${l}`).join("&") : `${r}=${c}`;
1116
1101
  }).join("&");
1117
1102
  }), this.routeName = e;
1118
1103
  }
@@ -1136,9 +1121,9 @@ 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");
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");
1142
1127
  const a = this.searchAuthType === "token" ? `Token ${e.searchAuth}` : `Basic ${e.searchAuth}`;
1143
1128
  this.authHeader.append("Authorization", a), this.authHeaderRelated = new Headers(), this.authHeaderRelated.append("Accept", "application/json"), this.authHeaderRelated.append("Authorization", e.searchAuth);
1144
1129
  }
@@ -1152,15 +1137,15 @@ class Nt {
1152
1137
  else {
1153
1138
  const s = {};
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
+ s[l[0]] ? s[l[0]].push(l[1]) : s[l[0]] = [l[1]];
1157
1142
  });
1158
1143
  for (const r in s)
1159
1144
  if (Object.prototype.hasOwnProperty.call(s, r)) {
1160
- const c = s[r], o = r;
1145
+ const c = s[r], l = r;
1161
1146
  let h = "";
1162
- for (const u of c)
1163
- h += ` ${o}:"${u}"`;
1147
+ for (const d of c)
1148
+ h += ` ${l}:"${d}"`;
1164
1149
  a = a.concat("fq=" + h.trim());
1165
1150
  }
1166
1151
  }
@@ -1192,7 +1177,7 @@ class Nt {
1192
1177
  ));
1193
1178
  }
1194
1179
  cacheFacetsCallback(e) {
1195
- let t = ce.extractFacets(e);
1180
+ let t = he.extractFacets(e);
1196
1181
  this.dataLayer.setSearchFacetsCached(t);
1197
1182
  }
1198
1183
  search(e, t, a = !1, s = !1) {
@@ -1203,19 +1188,19 @@ class Nt {
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(
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(
1207
1192
  e.facets.filter((p) => p.type === "or" || p.type === "showUnavailable"),
1208
1193
  !0
1209
1194
  ) + this.generateFacetQuery(
1210
1195
  e.facets.filter((p) => p.type === "and" || p.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 && !s}&language=` + this.dataLayer.language + c, d = {
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) => {
1203
+ a && delete d.signal, fetch(h, d).then((p) => p.json()).then((p) => {
1219
1204
  this.dataLayer.setLoading(!1), t(p);
1220
1205
  }).catch(() => {
1221
1206
  this.dataLayer.setLoading(!1);
@@ -1247,7 +1232,7 @@ class Nt {
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, {
@@ -1276,13 +1261,13 @@ class Vt {
1276
1261
  let r = encodeURIComponent(e) + "=" + encodeURIComponent(t);
1277
1262
  for (const c in s) {
1278
1263
  r += "; " + c;
1279
- const o = s[c];
1280
- o !== !0 && (r += "=" + o);
1264
+ const l = s[c];
1265
+ l !== !0 && (r += "=" + l);
1281
1266
  }
1282
1267
  document.cookie = r;
1283
1268
  }
1284
1269
  }
1285
- class oe {
1270
+ class ue {
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(ue, "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 Pe(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
- function ke(n) {
1350
+ function Ee(n) {
1366
1351
  return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
1367
1352
  }
1368
- function rt(n, e) {
1353
+ function at(n, e) {
1369
1354
  return n != null && typeof n == "object" && e in n;
1370
1355
  }
1371
- function Ut(n, e) {
1356
+ function Ht(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 Bt = RegExp.prototype.test;
1360
+ function Vt(n, e) {
1361
+ return Bt.call(n, e);
1377
1362
  }
1378
- var Qt = /\S/;
1379
- function zt(n) {
1380
- return !Kt(Qt, n);
1363
+ var Wt = /\S/;
1364
+ function Ut(n) {
1365
+ return !Vt(Wt, n);
1381
1366
  }
1382
- var Yt = {
1367
+ var Qt = {
1383
1368
  "&": "&amp;",
1384
1369
  "<": "&lt;",
1385
1370
  ">": "&gt;",
@@ -1389,61 +1374,61 @@ var Yt = {
1389
1374
  "`": "&#x60;",
1390
1375
  "=": "&#x3D;"
1391
1376
  };
1392
- function Jt(n) {
1377
+ function Kt(n) {
1393
1378
  return String(n).replace(/[&<>"'`=\/]/g, function(e) {
1394
- return Yt[e];
1379
+ return Qt[e];
1395
1380
  });
1396
1381
  }
1397
- var Xt = /\s*/, Gt = /\s+/, it = /\s*=/, Zt = /\s*\}/, ea = /#|\^|\/|>|\{|&|=|!/;
1398
- function ta(n, e) {
1382
+ var zt = /\s*/, Jt = /\s+/, st = /\s*=/, Yt = /\s*\}/, Xt = /#|\^|\/|>|\{|&|=|!/;
1383
+ function Gt(n, e) {
1399
1384
  if (!n)
1400
1385
  return [];
1401
- var t = !1, a = [], s = [], r = [], c = !1, o = !1, h = "", u = 0;
1386
+ var t = !1, a = [], s = [], r = [], c = !1, l = !1, h = "", d = 0;
1402
1387
  function p() {
1403
- if (c && !o)
1388
+ if (c && !l)
1404
1389
  for (; r.length; )
1405
1390
  delete s[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 v, b, E;
1396
+ function M(y) {
1397
+ if (typeof y == "string" && (y = y.split(Jt, 2)), !re(y) || y.length !== 2)
1398
+ throw new Error("Invalid tags: " + y);
1399
+ v = new RegExp(Ee(y[0]) + "\\s*"), b = new RegExp("\\s*" + Ee(y[1])), E = new RegExp("\\s*" + Ee("}" + y[1]));
1400
+ }
1401
+ M(e || w.tags);
1402
+ for (var R = new ge(n), L, P, S, N, H, A; !R.eos(); ) {
1403
+ if (L = R.pos, S = R.scanUntil(v), S)
1404
+ for (var Q = 0, m = S.length; Q < m; ++Q)
1405
+ N = S.charAt(Q), Ut(N) ? (r.push(s.length), h += N) : (l = !0, t = !0, h += " "), s.push(["text", N, L, L + 1]), L += 1, N === `
1406
+ ` && (p(), h = "", d = 0, t = !1);
1407
+ if (!R.scan(v))
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 = R.scan(Xt) || "name", R.scan(zt), P === "=" ? (S = R.scanUntil(st), R.scan(st), R.scanUntil(b)) : P === "{" ? (S = R.scanUntil(E), R.scan(Yt), R.scanUntil(b), P = "&") : S = R.scanUntil(b), !R.scan(b))
1410
+ throw new Error("Unclosed tag at " + R.pos);
1411
+ if (P == ">" ? H = [P, S, L, R.pos, h, d, t] : H = [P, S, L, R.pos], d++, s.push(H), P === "#" || P === "^")
1412
+ a.push(H);
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 (A = a.pop(), !A)
1415
+ throw new Error('Unopened section "' + S + '" at ' + L);
1416
+ if (A[1] !== S)
1417
+ throw new Error('Unclosed section "' + A[1] + '" at ' + L);
1433
1418
  } else
1434
- P === "name" || P === "{" || P === "&" ? o = !0 : P === "=" && S(L);
1419
+ P === "name" || P === "{" || P === "&" ? l = !0 : P === "=" && M(S);
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 (p(), A = a.pop(), A)
1422
+ throw new Error('Unclosed section "' + A[1] + '" at ' + R.pos);
1423
+ return ea(Zt(s));
1439
1424
  }
1440
- function aa(n) {
1425
+ function Zt(n) {
1441
1426
  for (var e = [], t, a, s = 0, r = n.length; s < r; ++s)
1442
1427
  t = n[s], t && (t[0] === "text" && a && a[0] === "text" ? (a[1] += t[1], a[3] = t[3]) : (e.push(t), a = 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)
1430
+ function ea(n) {
1431
+ for (var e = [], t = e, a = [], s, r, c = 0, l = n.length; c < l; ++c)
1447
1432
  switch (s = n[c], s[0]) {
1448
1433
  case "#":
1449
1434
  case "^":
@@ -1457,20 +1442,20 @@ function sa(n) {
1457
1442
  }
1458
1443
  return e;
1459
1444
  }
1460
- function ue(n) {
1445
+ function ge(n) {
1461
1446
  this.string = n, this.tail = n, this.pos = 0;
1462
1447
  }
1463
- ue.prototype.eos = function() {
1448
+ ge.prototype.eos = function() {
1464
1449
  return this.tail === "";
1465
1450
  };
1466
- ue.prototype.scan = function(n) {
1451
+ ge.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
+ ge.prototype.scanUntil = function(n) {
1474
1459
  var e = this.tail.search(n), t;
1475
1460
  switch (e) {
1476
1461
  case -1:
@@ -1484,24 +1469,24 @@ ue.prototype.scanUntil = function(n) {
1484
1469
  }
1485
1470
  return this.pos += t.length, t;
1486
1471
  };
1487
- function te(n, e) {
1472
+ function se(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
+ se.prototype.push = function(n) {
1476
+ return new se(n, this);
1492
1477
  };
1493
- te.prototype.lookup = function(n) {
1478
+ se.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 a = this, s, r, c, l = !1; a; ) {
1499
1484
  if (n.indexOf(".") > 0)
1500
1485
  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++]];
1486
+ c === r.length - 1 && (l = at(s, r[c]) || Ht(s, r[c])), s = s[r[c++]];
1502
1487
  else
1503
- s = a.view[n], o = rt(a.view, n);
1504
- if (o) {
1488
+ s = a.view[n], l = at(a.view, n);
1489
+ if (l) {
1505
1490
  t = s;
1506
1491
  break;
1507
1492
  }
@@ -1509,9 +1494,9 @@ te.prototype.lookup = function(n) {
1509
1494
  }
1510
1495
  e[n] = t;
1511
1496
  }
1512
- return we(t) && (t = t.call(this.view)), t;
1497
+ return Pe(t) && (t = t.call(this.view)), t;
1513
1498
  };
1514
- function N() {
1499
+ function U() {
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
+ U.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
+ U.prototype.parse = function(n, e) {
1517
+ var t = this.templateCache, a = n + ":" + (e || w.tags).join(":"), s = typeof t < "u", r = s ? t.get(a) : void 0;
1518
+ return r == null && (r = Gt(n, e), s && t.set(a, 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);
1520
+ U.prototype.render = function(n, e, t, a) {
1521
+ var s = this.getConfigTags(a), r = this.parse(n, s), c = e instanceof se ? e : new se(e, void 0);
1537
1522
  return this.renderTokens(r, c, t, n, a);
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
+ U.prototype.renderTokens = function(n, e, t, a, s) {
1525
+ for (var r = "", c, l, h, d = 0, p = n.length; d < p; ++d)
1526
+ h = void 0, c = n[d], l = c[0], l === "#" ? h = this.renderSection(c, e, t, a, s) : l === "^" ? h = this.renderInverted(c, e, t, a, s) : l === ">" ? h = this.renderPartial(c, e, t, s) : l === "&" ? h = this.unescapedValue(c, e) : l === "name" ? h = this.escapedValue(c, e, s) : 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]);
1529
+ U.prototype.renderSection = function(n, e, t, a, s) {
1530
+ var r = this, c = "", l = e.lookup(n[1]);
1546
1531
  function h(v) {
1547
1532
  return r.render(v, e, t, s);
1548
1533
  }
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)) {
1534
+ if (l) {
1535
+ if (re(l))
1536
+ for (var d = 0, p = l.length; d < p; ++d)
1537
+ c += this.renderTokens(n[4], e.push(l[d]), t, a, s);
1538
+ else if (typeof l == "object" || typeof l == "string" || typeof l == "number")
1539
+ c += this.renderTokens(n[4], e.push(l), t, a, s);
1540
+ else if (Pe(l)) {
1556
1541
  if (typeof a != "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, a.slice(n[3], n[5]), h), l != null && (c += l);
1559
1544
  } else
1560
1545
  c += this.renderTokens(n[4], e, t, a, s);
1561
1546
  return c;
1562
1547
  }
1563
1548
  };
1564
- N.prototype.renderInverted = function(n, e, t, a, s) {
1549
+ U.prototype.renderInverted = function(n, e, t, a, s) {
1565
1550
  var r = e.lookup(n[1]);
1566
- if (!r || ae(r) && r.length === 0)
1551
+ if (!r || re(r) && r.length === 0)
1567
1552
  return this.renderTokens(n[4], e, t, a, s);
1568
1553
  };
1569
- N.prototype.indentPartial = function(n, e, t) {
1554
+ U.prototype.indentPartial = function(n, e, t) {
1570
1555
  for (var a = e.replace(/[^ \t]/g, ""), s = n.split(`
1571
1556
  `), r = 0; r < s.length; r++)
1572
1557
  s[r].length && (r > 0 || !t) && (s[r] = a + s[r]);
1573
1558
  return s.join(`
1574
1559
  `);
1575
1560
  };
1576
- N.prototype.renderPartial = function(n, e, t, a) {
1561
+ U.prototype.renderPartial = function(n, e, t, a) {
1577
1562
  if (t) {
1578
- var s = this.getConfigTags(a), r = we(t) ? t(n[1]) : t[n[1]];
1563
+ var s = this.getConfigTags(a), r = Pe(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], d = r;
1566
+ l == 0 && h && (d = this.indentPartial(r, h, c));
1567
+ var p = this.parse(d, s);
1568
+ return this.renderTokens(p, e, t, d, a);
1584
1569
  }
1585
1570
  }
1586
1571
  };
1587
- N.prototype.unescapedValue = function(n, e) {
1572
+ U.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]);
1577
+ U.prototype.escapedValue = function(n, e, t) {
1578
+ var a = this.getConfigEscape(t) || w.escape, s = e.lookup(n[1]);
1594
1579
  if (s != null)
1595
- return typeof s == "number" && a === I.escape ? String(s) : a(s);
1580
+ return typeof s == "number" && a === w.escape ? String(s) : a(s);
1596
1581
  };
1597
- N.prototype.rawValue = function(n) {
1582
+ U.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
+ U.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
+ U.prototype.getConfigEscape = function(n) {
1589
+ if (n && typeof n == "object" && !re(n))
1605
1590
  return n.escape;
1606
1591
  };
1607
- var I = {
1592
+ var w = {
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
+ de.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 de.templateCache;
1631
1616
  }
1632
- }, he = new N();
1633
- I.clearCache = function() {
1634
- return he.clearCache();
1617
+ }, de = new U();
1618
+ w.clearCache = function() {
1619
+ return de.clearCache();
1635
1620
  };
1636
- I.parse = function(n, e) {
1637
- return he.parse(n, e);
1621
+ w.parse = function(n, e) {
1622
+ return de.parse(n, e);
1638
1623
  };
1639
- I.render = function(n, e, t, a) {
1624
+ w.render = function(n, e, t, a) {
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 de.render(n, e, t, a);
1643
1628
  };
1644
- I.escape = Jt;
1645
- I.Scanner = ue;
1646
- I.Context = te;
1647
- I.Writer = N;
1648
- const ra = {
1629
+ w.escape = Kt;
1630
+ w.Scanner = ge;
1631
+ w.Context = se;
1632
+ w.Writer = U;
1633
+ const ta = {
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
+ }, aa = {
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
+ }, sa = {
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
+ }, ra = {
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
+ }, ia = {
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
+ }, na = {
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
+ }, ca = {
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
+ }, la = {
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 x {
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(x, "externalPromotions", ta), o(x, "facets", aa), o(x, "pagination", sa), o(x, "relatedSearches", ra), o(x, "searchFeedback", ia), o(x, "searchInput", na), o(x, "searchResults", ca), o(x, "sorting", la);
1951
+ class oa {
1967
1952
  constructor(e) {
1968
- l(this, "dataLayer"), l(this, "config"), l(this, "containerId"), l(this, "externalPromotionsContainerId"), l(this, "searchExternalPromotionsMainContainer", null);
1953
+ o(this, "dataLayer"), o(this, "config"), o(this, "containerId"), o(this, "externalPromotionsContainerId"), o(this, "searchExternalPromotionsMainContainer", null);
1969
1954
  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(
1955
+ 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) || x.externalPromotions.mainTemplate.externalPromotionsContainerId, this.searchExternalPromotionsMainContainer = document.getElementById(
1971
1956
  this.containerId
1972
1957
  ), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
1973
1958
  }
@@ -1987,10 +1972,10 @@ class da {
1987
1972
  var t, a, s, 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");
1991
- h.classList.add("searchstax-external-promotion"), h.addEventListener("click", (u) => {
1992
- this.trackClick(e, u);
1993
- }), h.innerHTML = I.render(o, e), c.appendChild(h);
1975
+ const l = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.externalPromotion) == null ? void 0 : s.template) || ((r = x.externalPromotions.externalPromotion) == null ? void 0 : r.template), h = document.createElement("div");
1976
+ h.classList.add("searchstax-external-promotion"), h.addEventListener("click", (d) => {
1977
+ this.trackClick(e, d);
1978
+ }), h.innerHTML = w.render(l, e), c.appendChild(h);
1994
1979
  }
1995
1980
  }
1996
1981
  trackClick(e, t) {
@@ -1998,30 +1983,30 @@ class da {
1998
1983
  }
1999
1984
  renderMainTemplate(e) {
2000
1985
  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) {
1986
+ const c = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.mainTemplate) == null ? void 0 : s.template) || ((r = x.externalPromotions.mainTemplate) == null ? void 0 : r.template);
1987
+ if (this.dataLayer.renderingEngine === B.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
+ w.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 ha {
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) => {
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", (a, s, r, c) => {
2017
2002
  if (a.stopPropagation(), !s.disabled) {
2018
- const o = r.querySelector("input");
2019
- o.checked = c ? o.checked : !o.checked;
2003
+ const l = r.querySelector("input");
2004
+ l.checked = c ? l.checked : !l.checked;
2020
2005
  const h = this.dataLayer.searchObject;
2021
- let u = [...h.facets];
2006
+ let d = [...h.facets];
2022
2007
  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(() => {
2024
- this.dataLayer.setSearchObject({ ...h, facets: u, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
2008
+ l.checked ? d.find((v) => J.deepEqual(v, p) ? v : !1) || (this.config.facetingType === "tabs" && (d = d.filter((v) => v.name !== p.name)), d.push(p)) : d = d.filter((v) => !J.deepEqual(v, p)), setTimeout(() => {
2009
+ this.dataLayer.setSearchObject({ ...h, facets: d, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
2025
2010
  }, 0);
2026
2011
  }
2027
2012
  }), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.routerHelper = e.routerHelper, this.cacheFacets = t, this.facetPaginationStep = this.config.itemsPerPageDesktop, this.facetPaginationStepMobile = this.config.itemsPerPageMobile, this.searchFacetsMainContainer = document.getElementById(this.containerId), this.needCache && t(), this.initializeSubscriptions();
@@ -2064,21 +2049,21 @@ class ga {
2064
2049
  let t = this.dataLayer.searchFacets;
2065
2050
  this.needCache && this.dataLayer.searchFacetsCached && (t = this.dataLayer.searchFacetsCached, this.needDisabling && (t = t.map((s) => {
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 === s.name);
2068
2053
  return c ? {
2069
2054
  ...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);
2055
+ values: s.values.map((l) => {
2056
+ const h = c.values.find((d) => l.type === "range" ? !1 : l.type === "checkbox" ? d.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
2064
  ...s,
2080
- values: s.values.map((o) => ({
2081
- ...o,
2065
+ values: s.values.map((l) => ({
2066
+ ...l,
2082
2067
  disabled: !0
2083
2068
  })),
2084
2069
  isMobile: e
@@ -2099,56 +2084,56 @@ class ga {
2099
2084
  }
2100
2085
  }
2101
2086
  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))
2087
+ var s, r, c, l, h, d, p, v, b, E, M, R;
2088
+ const L = document.createElement("div");
2089
+ L.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || L.classList.add("active");
2090
+ const P = ((c = (r = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : r.facetItemContainerTemplate) == null ? void 0 : c.template) || ((l = x.facets.facetItemContainerTemplate) == null ? void 0 : l.template);
2091
+ L.innerHTML = w.render(P, e), t.appendChild(L);
2092
+ const S = L.querySelector(
2093
+ "." + (((p = (d = (h = this.config) == null ? void 0 : h.templates) == null ? void 0 : d.facetItemContainerTemplate) == null ? void 0 : p.facetListTitleContainerClass) || ((v = x.facets.facetItemContainerTemplate) == null ? void 0 : v.facetListTitleContainerClass))
2109
2094
  );
2110
- L == null || L.addEventListener("click", () => {
2111
- T.classList.toggle("active");
2095
+ S == null || S.addEventListener("click", () => {
2096
+ L.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 N = L.querySelector(
2099
+ "." + (((M = (E = (b = this.config) == null ? void 0 : b.templates) == null ? void 0 : E.facetItemContainerTemplate) == null ? void 0 : M.facetListContainerClass) || ((R = x.facets.facetItemContainerTemplate) == null ? void 0 : R.facetListContainerClass))
2115
2100
  );
2116
- A && (e.values.forEach(($) => {
2117
- this.createFacetListItem($, A);
2118
- }), e.hasMoreFacets && this.createHasMoreComponent(e, A, a));
2101
+ N && (e.values.forEach((H) => {
2102
+ this.createFacetListItem(H, N);
2103
+ }), e.hasMoreFacets && this.createHasMoreComponent(e, N, a));
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((a) => J.deepEqual(a, 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(($) => {
2132
- var j;
2133
- (j = T.querySelector("." + $)) == null || j.addEventListener("click", (U) => {
2134
- this.onFacetSelect(U, e, T);
2110
+ var a, s, r, c, l, h, d, p, v, b, E, M, R;
2111
+ const L = document.createElement("div");
2112
+ L.classList.add("searchstax-facet-value-container"), e.disabled && L.classList.add("searchstax-facet-value-disabled");
2113
+ const P = this.isChecked(e), S = ((r = (s = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : s.facetItemTemplate) == null ? void 0 : r.template) || ((c = x.facets.facetItemTemplate) == null ? void 0 : c.template);
2114
+ L.innerHTML = w.render(S, { ...e, isChecked: P });
2115
+ let N = (l = x.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
2116
+ N = ((p = (d = (h = this.config) == null ? void 0 : h.templates) == null ? void 0 : d.facetItemTemplate) == null ? void 0 : p.checkTriggerClasses) || N, N.forEach((H) => {
2117
+ var A;
2118
+ (A = L.querySelector("." + H)) == null || A.addEventListener("click", (Q) => {
2119
+ this.onFacetSelect(Q, e, L);
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);
2121
+ }), (R = L.querySelector(
2122
+ "." + (((E = (b = (v = this.config) == null ? void 0 : v.templates) == null ? void 0 : b.facetItemTemplate) == null ? void 0 : E.inputCheckboxClass) || ((M = x.facets.facetItemTemplate) == null ? void 0 : M.inputCheckboxClass))
2123
+ )) == null || R.addEventListener("click", (H) => {
2124
+ this.onFacetSelect(H, e, L, !0);
2125
+ }), t.appendChild(L);
2141
2126
  }
2142
2127
  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))
2128
+ var s, r, c, l, h, d, p, v;
2129
+ const b = document.createElement("div");
2130
+ b.classList.add("searchstax-facet-show-more-container");
2131
+ const E = ((c = (r = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : c.template) || ((l = x.facets.showMoreButtonContainerTemplate) == null ? void 0 : l.template);
2132
+ b.innerHTML = w.render(E, e);
2133
+ const M = b.querySelector(
2134
+ "." + (((p = (d = (h = this.config) == null ? void 0 : h.templates) == null ? void 0 : d.showMoreButtonContainerTemplate) == null ? void 0 : p.showMoreButtonClass) || ((v = x.facets.showMoreButtonContainerTemplate) == null ? void 0 : v.showMoreButtonClass))
2150
2135
  );
2151
- S && (this.attachOnclickToShowMore(e, S, a), t && t.appendChild(S));
2136
+ M && (this.attachOnclickToShowMore(e, M, a), t && t.appendChild(M));
2152
2137
  }
2153
2138
  attachOnclickToShowMore(e, t, a) {
2154
2139
  t.addEventListener("click", (s) => {
@@ -2158,29 +2143,29 @@ class ga {
2158
2143
  onShowMoreLessClick(e, t, a) {
2159
2144
  e.preventDefault();
2160
2145
  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());
2146
+ 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.generateTemplateData(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 a, s, r, c, l, h, d, p, v, b, E;
2150
+ if (e && (!J.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 M = ((r = (s = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : s.mainTemplateDesktop) == null ? void 0 : r.template) || ((c = x.facets.mainTemplateDesktop) == null ? void 0 : c.template);
2153
+ if (this.dataLayer.renderingEngine === B.mustache && this.searchFacetsMainContainer) {
2154
+ this.searchFacetsMainContainer.innerHTML = w.render(M, {
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 R = (p = this.searchFacetsMainContainer) == null ? void 0 : p.querySelector(
2158
+ "." + (((d = (h = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : h.mainTemplateDesktop) == null ? void 0 : d.facetsContainerClass) || x.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 (R) {
2161
+ R.innerHTML = "";
2162
+ for (const L of e.facets)
2163
+ this.createFacetItem(L, R);
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 L = this.searchFacetsMainContainer.querySelector(
2166
+ "." + (((E = (b = (v = this.config) == null ? void 0 : v.templates) == null ? void 0 : b.mainTemplateDesktop) == null ? void 0 : E.selectedFacetsContainerClass) || x.facets.mainTemplateDesktop.selectedFacetsContainerClass)
2182
2167
  );
2183
- T && (this.createSelectedFacetsComponents(T), this.createClearFacetsComponents(T));
2168
+ L && (this.createSelectedFacetsComponents(L), this.createClearFacetsComponents(L));
2184
2169
  }
2185
2170
  }
2186
2171
  }
@@ -2193,9 +2178,9 @@ class ga {
2193
2178
  for (const a of t) {
2194
2179
  const s = decodeURIComponent(a.name), r = decodeURIComponent(a.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 === s);
2182
+ if (l) {
2183
+ const h = l.values.find((d) => d.type === "range" ? !1 : d.type === "checkbox" ? `"${d.value}"` == `"${r}"` : !1);
2199
2184
  h && e.push(h);
2200
2185
  }
2201
2186
  }
@@ -2209,28 +2194,28 @@ class ga {
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, {
2197
+ var t, a, s, r, c, l, h, d;
2198
+ 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 = x.facets.clearFacetsTemplate) == null ? void 0 : r.template), b = document.createElement("div");
2199
+ b.innerHTML = w.render(v, {
2215
2200
  shouldShow: p.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 E = b.querySelector(
2203
+ "." + (((h = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.clearFacetsTemplate) == null ? void 0 : h.containerClass) || ((d = x.facets.clearFacetsTemplate) == null ? void 0 : d.containerClass))
2219
2204
  );
2220
- x && (x.addEventListener("click", () => {
2205
+ E && (E.addEventListener("click", () => {
2221
2206
  this.removeSelectedFacets();
2222
- }), e.appendChild(x));
2207
+ }), e.appendChild(E));
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 a, s, r, c, l, h, d, p;
2211
+ const v = ((r = (s = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : s.selectedFacetsTemplate) == null ? void 0 : r.template) || ((c = x.facets.selectedFacetsTemplate) == null ? void 0 : c.template), b = document.createElement("div");
2212
+ b.innerHTML = w.render(v, t);
2213
+ const E = b.querySelector(
2214
+ "." + (((d = (h = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : h.selectedFacetsTemplate) == null ? void 0 : d.containerClass) || ((p = x.facets.selectedFacetsTemplate) == null ? void 0 : p.containerClass))
2230
2215
  );
2231
- x && (x.addEventListener("click", () => {
2216
+ E && (E.addEventListener("click", () => {
2232
2217
  this.unselectFacet(t);
2233
- }), e.appendChild(x));
2218
+ }), e.appendChild(E));
2234
2219
  }
2235
2220
  unselectFacet(e) {
2236
2221
  const t = this.dataLayer.searchObject;
@@ -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, a, s, r, c, l, h, d;
2233
+ const p = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.filterByTemplate) == null ? void 0 : s.template) || ((r = x.facets.filterByTemplate) == null ? void 0 : r.template), v = document.createElement("div");
2234
+ v.innerHTML = w.render(p, {});
2235
+ const b = v.querySelector(
2236
+ "." + (((h = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.filterByTemplate) == null ? void 0 : h.containerClass) || ((d = x.facets.filterByTemplate) == null ? void 0 : d.containerClass))
2252
2237
  );
2253
- f && (e.prepend(f), f.addEventListener("click", this.openOverlay.bind(this)));
2238
+ b && (e.prepend(b), b.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, a, s, r, c, l, h, d, p, v, b, E, M, R, L, P, S, N, H;
2265
2250
  if (e) {
2266
- const j = document.createElement("div");
2267
- 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, {
2251
+ const A = document.createElement("div");
2252
+ A.classList.add("searchstax-facets-container-mobile");
2253
+ const Q = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.mainTemplateMobile) == null ? void 0 : s.template) || ((r = x.facets.mainTemplateMobile) == null ? void 0 : r.template);
2254
+ if (this.dataLayer.renderingEngine === B.mustache) {
2255
+ if (A.innerHTML = w.render(Q, {
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);
2276
- Y && Y.addEventListener("click", this.closeOverlay.bind(this));
2258
+ }), (c = this.searchFacetsMainContainer) == null || c.appendChild(A), (h = (l = this.config) == null ? void 0 : l.templates) != null && h.mainTemplateMobile)
2259
+ for (const D of ((v = (p = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : p.mainTemplateMobile) == null ? void 0 : v.closeOverlayTriggerClasses) || []) {
2260
+ const X = A.querySelector("." + D);
2261
+ X && X.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);
2281
- Y && Y.addEventListener("click", this.closeOverlay.bind(this));
2264
+ for (const D of x.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
2265
+ const X = A.querySelector("." + D);
2266
+ X && X.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 m = A.querySelector(
2269
+ "." + (((M = (E = (b = this.config) == null ? void 0 : b.templates) == null ? void 0 : E.mainTemplateMobile) == null ? void 0 : M.filterByContainerClass) || x.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
+ m && this.createFilterByComponent(m);
2272
+ const y = A.querySelector(
2273
+ "." + (((P = (L = (R = this.config) == null ? void 0 : R.templates) == null ? void 0 : L.mainTemplateMobile) == null ? void 0 : P.selectedFacetsContainerClass) || x.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
+ y && (this.createSelectedFacetsComponents(y), this.createClearFacetsComponents(y));
2276
+ const F = A.querySelector(
2277
+ "." + (((H = (N = (S = this.config) == null ? void 0 : S.templates) == null ? void 0 : N.mainTemplateMobile) == null ? void 0 : H.facetsContainerClass) || x.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 (F) {
2280
+ F.innerHTML = "";
2281
+ for (const D of e.facets)
2282
+ this.createFacetItem(D, F, !0);
2298
2283
  }
2299
2284
  }
2300
2285
  }
2301
2286
  }
2302
2287
  }
2303
- class pa {
2288
+ class ua {
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, a, s, r, c, l;
2292
+ 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) ?? x.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) ?? x.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, a, s;
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: (s = this.routerHelper) == null ? void 0 : s.searchObjectToUrl({
2331
2316
  ...this.dataLayer.searchObject,
2332
- page: ((t = this.dataLayer.searchObject) == null ? void 0 : t.page) + 1
2317
+ page: ((a = this.dataLayer.searchObject) == null ? void 0 : a.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;
2341
+ var t, a, s, r, c, l;
2357
2342
  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(() => {
2343
+ const h = ((c = (r = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : c.template) || ((l = x.pagination.mainTemplate) == null ? void 0 : l.template);
2344
+ this.dataLayer.renderingEngine === B.mustache && (this.searchPaginationMainContainer.innerHTML = w.render(h, e), setTimeout(() => {
2360
2345
  this.overridePaginationEvents();
2361
2346
  }, 0));
2362
2347
  }
2363
2348
  }
2364
- class ma {
2349
+ class da {
2365
2350
  constructor(e) {
2366
- l(this, "dataLayer"), l(this, "config"), l(this, "containerId"), l(this, "relatedSearchesContainerClass"), l(this, "searchRelatedSearchesMainContainer", null), l(this, "track");
2351
+ o(this, "dataLayer"), o(this, "config"), o(this, "containerId"), o(this, "relatedSearchesContainerClass"), o(this, "searchRelatedSearchesMainContainer", null), o(this, "track");
2367
2352
  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();
2353
+ 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) || x.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,12 +2364,12 @@ 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);
2367
+ var a, s, r, c, l;
2368
+ const h = document.createElement("div"), d = ((r = (s = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : s.relatedSearch) == null ? void 0 : r.template) || x.relatedSearches.relatedSearch.template;
2369
+ if (this.dataLayer.renderingEngine === B.mustache) {
2370
+ h.innerHTML = w.render(d, e);
2386
2371
  const p = h.querySelector(
2387
- "." + (((o = (c = this.config.templates) == null ? void 0 : c.relatedSearch) == null ? void 0 : o.relatedSearchContainerClass) || y.relatedSearches.relatedSearch.relatedSearchContainerClass)
2372
+ "." + (((l = (c = this.config.templates) == null ? void 0 : c.relatedSearch) == null ? void 0 : l.relatedSearchContainerClass) || x.relatedSearches.relatedSearch.relatedSearchContainerClass)
2388
2373
  );
2389
2374
  p && (t.appendChild(p), p.addEventListener("click", () => {
2390
2375
  this.executeSearch(e);
@@ -2397,22 +2382,22 @@ class ma {
2397
2382
  }
2398
2383
  renderMainTemplate(e) {
2399
2384
  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) {
2385
+ const c = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.main) == null ? void 0 : s.template) || x.relatedSearches.main.template;
2386
+ if (this.dataLayer.renderingEngine === B.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
+ w.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 ga {
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) => {
@@ -2434,33 +2419,33 @@ class fa {
2434
2419
  attachClick() {
2435
2420
  var e, t, a, s, 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
+ "." + (((a = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.main) == null ? void 0 : a.originalQueryClass) || ((s = x.searchFeedback.main) == null ? void 0 : s.originalQueryClass))
2438
2423
  );
2439
2424
  c && c.addEventListener("click", this.onOriginalQueryClick.bind(this));
2440
2425
  }
2441
2426
  renderMainTemplate(e) {
2442
2427
  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(() => {
2428
+ const r = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.main) == null ? void 0 : s.template) || x.searchFeedback.main.template;
2429
+ this.dataLayer.renderingEngine === B.mustache && (this.searchFeedbackMainContainer.innerHTML = w.render(r, e), setTimeout(() => {
2445
2430
  this.attachClick();
2446
2431
  }, 0));
2447
2432
  }
2448
2433
  }
2449
- class va {
2434
+ class pa {
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
2439
  var e, t, a, s;
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, {});
2461
- r.innerHTML = u;
2443
+ const c = ((t = (e = this.config.templates) == null ? void 0 : e.mainTemplate) == null ? void 0 : t.template) || x.searchInput.mainTemplate.template;
2444
+ if (this.dataLayer.renderingEngine === B.mustache) {
2445
+ const d = w.render(c, {});
2446
+ r.innerHTML = d;
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 = ((s = (a = this.config.templates) == null ? void 0 : a.mainTemplate) == null ? void 0 : s.searchInputId) || x.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 === B.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
  }
@@ -2553,7 +2538,7 @@ 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));
@@ -2566,8 +2551,8 @@ class va {
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 = ((a = (t = this.config.templates) == null ? void 0 : t.autosuggestItemTemplate) == null ? void 0 : a.template) || ((s = x.searchInput.autosuggestItemTemplate) == null ? void 0 : s.template);
2555
+ return r.innerHTML = w.render(c, e), r;
2571
2556
  }
2572
2557
  onSuggestionEnter(e) {
2573
2558
  var t;
@@ -2588,9 +2573,9 @@ class va {
2588
2573
  }
2589
2574
  }
2590
2575
  }
2591
- class ya {
2576
+ class ma {
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;
@@ -2610,28 +2595,28 @@ class ya {
2610
2595
  }
2611
2596
  renderNoResultsTemplate() {
2612
2597
  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(
2598
+ const c = ((a = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.noSearchResultTemplate) == null ? void 0 : a.template) || ((s = x.searchResults.noSearchResultTemplate) == null ? void 0 : s.template), l = ((r = this.dataLayer.searchResultsMetadata) == null ? void 0 : r.spellingSuggestion) ?? "";
2599
+ if (this.dataLayer.renderingEngine === B.mustache && this.searchResultsContainer && (this.searchResultsContainer.innerHTML = w.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
- h && h.addEventListener("click", (u) => {
2623
- u.preventDefault(), u.stopPropagation(), this.searchCallback(o);
2607
+ h && h.addEventListener("click", (d) => {
2608
+ d.preventDefault(), d.stopPropagation(), this.searchCallback(l);
2624
2609
  });
2625
2610
  }
2626
2611
  }
2627
2612
  renderResults(e) {
2628
2613
  var t, a, s, r;
2629
- if (this.dataLayer.renderingEngine === D.mustache && this.searchResultsContainer)
2614
+ if (this.dataLayer.renderingEngine === B.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 = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.searchResultTemplate) == null ? void 0 : s.template) || ((r = x.searchResults.searchResultTemplate) == null ? void 0 : r.template), l = e.map((h) => w.render(c, h));
2619
+ this.searchResultsContainer.innerHTML = l.join(""), this.searchResultLinks = Array.from(
2635
2620
  this.searchResultsContainer.querySelectorAll(
2636
2621
  `[${this.uniqueIdAttribute}]`
2637
2622
  )
@@ -2646,7 +2631,7 @@ class ya {
2646
2631
  }
2647
2632
  get uniqueIdAttribute() {
2648
2633
  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);
2634
+ return ((a = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.searchResultTemplate) == null ? void 0 : a.searchResultUniqueIdAttribute) || ((s = x.searchResults.searchResultTemplate) == null ? void 0 : s.searchResultUniqueIdAttribute);
2650
2635
  }
2651
2636
  attachLinkClickEvents() {
2652
2637
  this.searchResultLinks.forEach((e) => {
@@ -2659,25 +2644,25 @@ class ya {
2659
2644
  }
2660
2645
  renderMainTemplate() {
2661
2646
  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(
2647
+ const r = ((a = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : a.template) || ((s = x.searchResults.mainTemplate) == null ? void 0 : s.template);
2648
+ this.dataLayer.renderingEngine === B.mustache && (this.searchResultsMainContainer.innerHTML = w.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, d, p, v, b;
2653
+ const E = (h = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.mainTemplate) != null && h.searchResultsContainerId ? (v = (p = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : p.mainTemplate) == null ? void 0 : v.searchResultsContainerId : (b = x.searchResults.mainTemplate) == null ? void 0 : b.searchResultsContainerId, M = document.getElementById(E);
2654
+ if (M)
2655
+ this.searchResultsContainer = M;
2671
2656
  else
2672
- throw new Error(`Search Results Container with id ${x} not found`);
2657
+ throw new Error(`Search Results Container with id ${E} 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);
2663
+ o(this, "dataLayer"), o(this, "config"), o(this, "containerId"), o(this, "selectId"), o(this, "searchSortingMainContainer", null);
2679
2664
  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());
2665
+ 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) || x.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) => {
@@ -2709,26 +2694,26 @@ class xa {
2709
2694
  }
2710
2695
  renderMainTemplate(e) {
2711
2696
  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(
2697
+ const r = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.main) == null ? void 0 : s.template) || x.sorting.main.template;
2698
+ if (this.dataLayer.renderingEngine === B.mustache) {
2699
+ this.searchSortingMainContainer.innerHTML = w.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 va {
2713
+ constructor(e = B.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 At($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 = B.mustache) {
2732
2717
  this.dataLayer.setRenderingEngine(e);
2733
2718
  }
2734
2719
  handleHooks() {
@@ -2738,7 +2723,7 @@ class ba {
2738
2723
  }), this.dataLayer.$searchObject.subscribe((a) => {
2739
2724
  a.query !== "" && this.search(a);
2740
2725
  }), this.dataLayer.$searchResults.subscribe((a) => {
2741
- a && this.dataLayer.searchResultsMetadata && oe.trackSearch({
2726
+ a && this.dataLayer.searchResultsMetadata && ue.trackSearch({
2742
2727
  ...this.dataLayer.parsedData.trackingData,
2743
2728
  impressions: this.dataLayer.searchResultsMetadata.impressions
2744
2729
  });
@@ -2746,12 +2731,12 @@ class ba {
2746
2731
  }
2747
2732
  initialize(e) {
2748
2733
  var t, a;
2749
- e.autoCorrect === !1 && (this.dataLayer.autoCorrect = !1), this.dataLayer.searchstaxConfig || (this.dataLayer.setSearchstaxConfig(e), this.searchHelper = new Nt(
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 || ((a = e.router) == null ? void 0 : a.enabled) === !0 ? (this.routerEnabled = !0, this.routerHelper = new tt(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 tt({});
2755
2740
  }
2756
2741
  search(e) {
2757
2742
  if (this.searchHelper && e.query !== "" && e.query !== void 0 && e.query !== "undefined") {
@@ -2780,7 +2765,7 @@ class ba {
2780
2765
  relatedSearch: r.related_search,
2781
2766
  position: r.position
2782
2767
  });
2783
- this.dataLayer.searchResultsMetadata && oe.trackRelatedSearches({
2768
+ this.dataLayer.searchResultsMetadata && ue.trackRelatedSearches({
2784
2769
  ...this.dataLayer.parsedData.trackingData,
2785
2770
  impressions: s
2786
2771
  }), this.dataLayer.setSearchRelatedSearches(a);
@@ -2791,9 +2776,9 @@ class ba {
2791
2776
  parseSearchResultsResponse(e) {
2792
2777
  var t, a;
2793
2778
  this.handleRouter();
2794
- let s = ce.combineResultsWithMetadata(e), r = ce.extractFacets(e);
2779
+ let s = he.combineResultsWithMetadata(e), r = he.extractFacets(e);
2795
2780
  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);
2781
+ const c = he.extractSearchResultsMetadata(e);
2797
2782
  this.dataLayer.setSearchResultsMetadata(c), this.dataLayer.setSearchResults(s);
2798
2783
  }
2799
2784
  cacheFacets() {
@@ -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 pa({
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 ma({
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 ua({
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 ga({
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 da({
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 oa({
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 ha(
2874
2859
  {
2875
2860
  containerId: e,
2876
2861
  config: t,
@@ -2883,9 +2868,9 @@ class ba {
2883
2868
  executeSearch(e, t) {
2884
2869
  var a, s;
2885
2870
  const r = { ...this.dataLayer.searchObject };
2886
- r.query = Q.removeXSSRiskyTags(e), r.page = 1, r.facets = [], this.dataLayer.forceNotCorrect = !!t;
2871
+ r.query = Z.removeXSSRiskyTags(e), r.page = 1, r.facets = [], this.dataLayer.forceNotCorrect = !!t;
2887
2872
  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);
2873
+ c && (c = (s = this.routerHelper) == null ? void 0 : s.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
2876
  var t, a;
@@ -2893,15 +2878,15 @@ class ba {
2893
2878
  (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);
2894
2879
  }
2895
2880
  trackRelatedSearchClick(e) {
2896
- this.dataLayer.searchResultsMetadata && this.dataLayer.searchRelatedSearches && oe.trackRelatedSearchClick({
2881
+ this.dataLayer.searchResultsMetadata && this.dataLayer.searchRelatedSearches && ue.trackRelatedSearchClick({
2897
2882
  ...this.dataLayer.parsedData.trackingData,
2898
2883
  relatedSearch: e
2899
2884
  });
2900
2885
  }
2901
2886
  executeLinkClick(e) {
2902
2887
  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({
2888
+ let s = he.findResultByUniqueId(e, this.dataLayer.searchResults ?? []);
2889
+ s && ((a = (t = this.searchResultsConfig) == null ? void 0 : t.hooks) != null && a.afterLinkClick && (s = this.searchResultsConfig.hooks.afterLinkClick(s)), s && this.dataLayer.searchResultsMetadata && (ue.trackClick({
2905
2890
  result: s,
2906
2891
  ...this.dataLayer.parsedData.trackingData
2907
2892
  }), setTimeout(() => {
@@ -2917,17 +2902,17 @@ class ba {
2917
2902
  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());
2918
2903
  }
2919
2904
  }
2920
- const V = {
2905
+ const T = {
2921
2906
  //@ts-ignore
2922
- searchstax: new ba("react")
2907
+ searchstax: new va("react")
2923
2908
  };
2924
- function Ca(n) {
2909
+ function xa(n) {
2925
2910
  let e = !1;
2926
- const [t, a] = le([]);
2927
- Pe(() => {
2928
- if (s(), V.searchstax) {
2911
+ const [t, a] = V([]);
2912
+ ee(() => {
2913
+ if (s(), T.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), T.searchstax.addSearchInputWidget("searchstax-input-container", {
2931
2916
  suggestAfterMinChars: n.suggestAfterMinChars ?? 3,
2932
2917
  hooks: h,
2933
2918
  templates: {
@@ -2941,25 +2926,25 @@ function Ca(n) {
2941
2926
  throw Error("Searchstax instance needs to be passed via props");
2942
2927
  }, []);
2943
2928
  function s() {
2944
- console.log(e), e || (V.searchstax.dataLayer.$autosuggestResults.subscribe((h) => {
2929
+ e || (T.searchstax.dataLayer.$autosuggestResults.subscribe((h) => {
2945
2930
  a((h == null ? void 0 : h.suggestions) ?? []);
2946
2931
  }), e = !0);
2947
2932
  }
2948
2933
  function r() {
2949
- var h, u;
2950
- (h = V.searchstax.searchInputWidget) == null || h.resetAutosuggestSelection(), (u = V.searchstax.searchInputWidget) == null || u.markActiveAutosuggestItem();
2934
+ var h, d;
2935
+ (h = T.searchstax.searchInputWidget) == null || h.resetAutosuggestSelection(), (d = T.searchstax.searchInputWidget) == null || d.markActiveAutosuggestItem();
2951
2936
  }
2952
2937
  function c(h) {
2953
- var u;
2954
- (u = V.searchstax.searchInputWidget) == null || u.onSuggestionEnter(h);
2938
+ var d;
2939
+ (d = T.searchstax.searchInputWidget) == null || d.onSuggestionEnter(h);
2955
2940
  }
2956
- function o() {
2941
+ function l() {
2957
2942
  var h;
2958
- (h = V.searchstax.searchInputWidget) == null || h.suggestionChosen();
2943
+ (h = T.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__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsx("div", { id: "searchstax-input-container", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-search-input-container", children: [
2946
+ !n.inputTemplate && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-search-input-wrapper", children: [
2947
+ /* @__PURE__ */ u.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__ */ u.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__ */ u.jsx("div", { className: "searchstax-autosuggest-item", children: /* @__PURE__ */ u.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__ */ u.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__ */ u.jsx(u.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 ee(() => {
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), T.searchstax.initialize({
3002
2987
  language: n.language ?? "en",
3003
2988
  searchURL: n.searchURL,
3004
2989
  suggesterURL: n.suggesterURL,
@@ -3008,272 +2993,683 @@ 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(T.searchstax);
2997
+ }, [n.initialized]), /* @__PURE__ */ u.jsx(u.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 Ca(n) {
3000
+ const [e, t] = V(null), [a, s] = V(""), [r, c] = V(null), l = (d, p) => {
3001
+ p.preventDefault(), p.stopPropagation(), T.searchstax.executeLinkClick(d.uniqueId);
3017
3002
  };
3018
- Pe(() => {
3003
+ ee(() => {
3019
3004
  h();
3020
- const u = {};
3021
- n.afterLinkClick && (u.afterLinkClick = n.afterLinkClick), V.searchstax.addSearchResultsWidget("searchstax-results-container", {
3005
+ const d = {};
3006
+ n.afterLinkClick && (d.afterLinkClick = n.afterLinkClick), T.searchstax.addSearchResultsWidget("searchstax-results-container", {
3022
3007
  templates: {},
3023
- hooks: u
3008
+ hooks: d
3024
3009
  });
3025
3010
  }, []);
3026
3011
  function h() {
3027
- V.searchstax.dataLayer.$searchResults.subscribe((u) => {
3028
- t(u);
3029
- }), V.searchstax.dataLayer.$searchTermChange.subscribe((u) => {
3030
- s(u);
3031
- }), V.searchstax.dataLayer.$searchResultsMetadata.subscribe((u) => {
3032
- c(u);
3012
+ T.searchstax.dataLayer.$searchResults.subscribe((d) => {
3013
+ t(d);
3014
+ }), T.searchstax.dataLayer.$searchTermChange.subscribe((d) => {
3015
+ s(d);
3016
+ }), T.searchstax.dataLayer.$searchResultsMetadata.subscribe((d) => {
3017
+ c(d);
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__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsx("div", { id: "searchstax-results-container", children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-results-container", children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-result-container", children: [
3021
+ e && e.length === 0 && !n.noResultTemplate && /* @__PURE__ */ u.jsxs("div", { children: [
3022
+ /* @__PURE__ */ u.jsxs("div", { className: "searchstax-no-results", children: [
3038
3023
  " ",
3039
3024
  "Showing ",
3040
- /* @__PURE__ */ g.jsx("strong", { children: "no results" }),
3025
+ /* @__PURE__ */ u.jsx("strong", { children: "no results" }),
3041
3026
  " for ",
3042
- /* @__PURE__ */ g.jsxs("strong", { children: [
3027
+ /* @__PURE__ */ u.jsxs("strong", { children: [
3043
3028
  '"',
3044
3029
  a,
3045
3030
  '"'
3046
3031
  ] }),
3047
- /* @__PURE__ */ g.jsx("br", {}),
3048
- (r == null ? void 0 : r.spellingSuggestion) && /* @__PURE__ */ g.jsxs("span", { children: [
3032
+ /* @__PURE__ */ u.jsx("br", {}),
3033
+ (r == null ? void 0 : r.spellingSuggestion) && /* @__PURE__ */ u.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__ */ u.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__ */ u.jsxs("div", { children: [
3041
+ /* @__PURE__ */ u.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__ */ u.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__ */ u.jsx(u.Fragment, { children: n.noResultTemplate(a, r) }),
3050
+ e && e.length && !n.resultsTemplate && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-results", children: e !== null && e.map(function(d) {
3051
+ return /* @__PURE__ */ u.jsxs(
3067
3052
  "div",
3068
3053
  {
3069
- className: `searchstax-search-result ${u.thumbnail ? "has-thumbnail" : ""}`,
3054
+ className: `searchstax-search-result ${d.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
+ d.promoted && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-promoted" }),
3057
+ d.url && /* @__PURE__ */ u.jsx(
3073
3058
  "a",
3074
3059
  {
3075
- href: u.url,
3076
- "data-searchstax-unique-result-id": u.uniqueId,
3060
+ href: d.url,
3061
+ "data-searchstax-unique-result-id": d.uniqueId,
3077
3062
  onClick: (p) => {
3078
- o(u, p);
3063
+ l(d, p);
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 }) })
3068
+ d.ribbon && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-ribbon", children: d.ribbon }),
3069
+ d.thumbnail && /* @__PURE__ */ u.jsx("img", { src: d.thumbnail, className: "searchstax-thumbnail" }),
3070
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-title-container", children: /* @__PURE__ */ u.jsx("span", { className: "searchstax-search-result-title", children: d.title }) }),
3071
+ d.paths && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", children: d.paths }),
3072
+ d.description && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-description searchstax-search-result-common", children: d.description }),
3073
+ d.unmappedFields.map(function(p) {
3074
+ return /* @__PURE__ */ u.jsxs("div", { children: [
3075
+ p.isImage && typeof p.value == "string" && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-image-container", children: /* @__PURE__ */ u.jsx("img", { src: p.value, className: "searchstax-result-image" }) }),
3076
+ !p.isImage && /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", children: p.value }) })
3092
3077
  ] }, p.key);
3093
3078
  })
3094
3079
  ]
3095
3080
  },
3096
- u.uniqueId
3081
+ d.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__ */ u.jsx(u.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 Sa(n) {
3088
+ let e = !1;
3089
+ const [t, a] = V(!1), [s, r] = V(null), [c] = V(Math.random());
3090
+ ee(() => {
3091
+ if (l(), T.searchstax)
3092
+ T.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 || (T.searchstax.dataLayer.$searchObject.subscribe(() => {
3098
+ h();
3099
+ }), T.searchstax.dataLayer.$paginationData.subscribe((v) => {
3100
+ r(v);
3101
+ }), e = !0);
3112
3102
  }
3113
- function r(f) {
3114
- return { ...f };
3103
+ function h() {
3104
+ !t && T.searchstax.routerHelper && (a(!0), T.searchstax.addPaginationWidget("searchstax-pagination-container" + c, {}));
3115
3105
  }
3116
- function c(f) {
3117
- return { ...f };
3106
+ function d(v) {
3107
+ var b;
3108
+ (b = T.searchstax.searchPaginationWidget) == null || b.nextPage(v);
3118
3109
  }
3119
- function o(f) {
3120
- e(f);
3110
+ function p(v) {
3111
+ var b;
3112
+ (b = T.searchstax.searchPaginationWidget) == null || b.previousPage(v);
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__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-pagination-container" + c, children: [
3115
+ !n.paginationTemplate && s && (s == null ? void 0 : s.totalResults) !== 0 && /* @__PURE__ */ u.jsx("div", { className: "searchstax-pagination-container", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-pagination-content", children: [
3116
+ /* @__PURE__ */ u.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: s != null && s.isFirstPage ? { pointerEvents: "none" } : {},
3121
+ onClick: (v) => {
3122
+ p(v);
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__ */ u.jsxs("div", { className: "searchstax-pagination-details", children: [
3133
+ " ",
3134
+ s == null ? void 0 : s.startResultIndex,
3135
+ " - ",
3136
+ s == null ? void 0 : s.endResultIndex,
3137
+ " of ",
3138
+ s == null ? void 0 : s.totalResults
3139
+ ] }),
3140
+ /* @__PURE__ */ u.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(
3143
+ className: "searchstax-pagination-next",
3144
+ style: s != null && s.isLastPage ? { pointerEvents: "none" } : {},
3145
+ onClick: (v) => {
3146
+ d(v);
3147
+ },
3148
+ id: "searchstax-pagination-next",
3149
+ children: "Next >"
3150
+ }
3151
+ )
3152
+ ] }) }),
3153
+ n.paginationTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.paginationTemplate(s, d, p) })
3154
+ ] }) });
3155
+ }
3156
+ function Ta(n) {
3157
+ let e = !1;
3158
+ const [t, a] = V(null), [s, r] = V(""), [c] = V(Math.random());
3159
+ ee(() => {
3160
+ if (l(), T.searchstax)
3161
+ T.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 || (T.searchstax.dataLayer.$searchSortingData.subscribe((d) => {
3167
+ a(d);
3168
+ }), T.searchstax.dataLayer.$searchObject.subscribe((d) => {
3169
+ r(decodeURIComponent((d == null ? void 0 : d.order) ?? ""));
3170
+ }), e = !0);
3171
+ }
3172
+ function h(d) {
3173
+ var p;
3174
+ (p = T.searchstax.searchSortingWidget) == null || p.setOrderQuery(d);
3175
+ }
3176
+ return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.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__ */ u.jsxs("div", { className: "searchstax-sorting-container", children: [
3178
+ /* @__PURE__ */ u.jsx("label", { className: "searchstax-sorting-label", htmlFor: "sort-by", children: "Sort By" }),
3179
+ /* @__PURE__ */ u.jsxs(
3180
+ "select",
3181
+ {
3182
+ id: "searchstax-search-order-select",
3183
+ className: "searchstax-search-order-select",
3184
+ value: s,
3185
+ onChange: (d) => {
3186
+ h(d.target.value);
3187
+ },
3188
+ children: [
3189
+ /* @__PURE__ */ u.jsx("option", { value: "", children: " Relevance " }),
3190
+ /* @__PURE__ */ u.jsx("option", { value: "date desc", children: " Newest Content " }),
3191
+ /* @__PURE__ */ u.jsx("option", { value: "date asc", children: " Oldest Content " })
3192
+ ]
3193
+ }
3194
+ )
3195
+ ] }),
3196
+ n.searchSortingTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.searchSortingTemplate(t, h, s) })
3197
+ ] }) });
3198
+ }
3199
+ function La(n) {
3200
+ let e = !1;
3201
+ const [t, a] = V(null), [s] = V(Math.random());
3202
+ ee(() => {
3203
+ if (r(), T.searchstax)
3204
+ T.searchstax.addSearchFeedbackWidget("search-feedback-container" + s, {});
3205
+ else
3206
+ throw Error("Searchstax instance needs to be passed via props");
3207
+ }, []);
3208
+ function r() {
3209
+ e || (T.searchstax.dataLayer.$searchFeedbackData.subscribe(
3210
+ (l) => {
3211
+ a(l);
3212
+ }
3213
+ ), e = !0);
3214
+ }
3215
+ function c(l) {
3216
+ var h;
3217
+ (h = T.searchstax.searchFeedbackWidget) == null || h.onOriginalQueryClick(l);
3218
+ }
3219
+ return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { className: "search-feedback-container", id: "search-feedback-container" + s, children: [
3220
+ !n.searchOverviewTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.totalResults) && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
3221
+ "Showing",
3222
+ " ",
3223
+ /* @__PURE__ */ u.jsxs("b", { children: [
3224
+ t.startResultIndex,
3225
+ " - ",
3226
+ t.endResultIndex
3227
+ ] }),
3228
+ " ",
3229
+ "of",
3230
+ /* @__PURE__ */ u.jsxs("b", { children: [
3231
+ " ",
3232
+ t.totalResults
3233
+ ] }),
3234
+ " results",
3235
+ t.searchTerm && /* @__PURE__ */ u.jsxs("span", { children: [
3236
+ ' for "',
3237
+ /* @__PURE__ */ u.jsx("b", { children: t.searchTerm }),
3238
+ '"',
3239
+ " "
3240
+ ] }),
3241
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-feedback-container-suggested", children: t.autoCorrectedQuery && /* @__PURE__ */ u.jsxs("div", { children: [
3242
+ " ",
3243
+ "Search instead for",
3244
+ " ",
3245
+ /* @__PURE__ */ u.jsx(
3246
+ "a",
3247
+ {
3248
+ href: "#",
3249
+ onClick: (l) => {
3250
+ c(l);
3251
+ },
3252
+ className: "searchstax-feedback-original-query",
3253
+ children: t.originalQuery
3254
+ }
3255
+ )
3256
+ ] }) })
3257
+ ] }),
3258
+ n.searchOverviewTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.searchOverviewTemplate(t, c) })
3259
+ ] }) });
3260
+ }
3261
+ function Ra(n) {
3262
+ const [e, t] = V(
3263
+ null
3264
+ ), [a, s] = V(
3265
+ null
3266
+ ), [r, c] = V(
3267
+ []
3268
+ ), [l, h] = V(
3269
+ {}
3270
+ ), d = {}, p = Math.random();
3271
+ let v = !1;
3272
+ ee(() => {
3273
+ if (b(), T.searchstax)
3274
+ T.searchstax.addFacetsWidget("searchstax-facets-container" + p, {
3275
+ facetingType: n.facetingType,
3276
+ specificFacets: n.specificFacets,
3277
+ itemsPerPageDesktop: n.itemsPerPageDesktop,
3278
+ itemsPerPageMobile: n.itemsPerPageMobile
3279
+ });
3280
+ else
3281
+ throw Error("Searchstax instance needs to be passed via props");
3282
+ }, []);
3283
+ function b() {
3284
+ v || (T.searchstax.dataLayer.$facetsTemplateData.subscribe(
3285
+ (m) => {
3286
+ m != null && m.isMobile ? s(m) : t(m);
3287
+ }
3288
+ ), T.searchstax.dataLayer.$selectedFacetsTemplateData.subscribe(
3289
+ (m) => {
3290
+ c(
3291
+ (m ?? []).filter((F) => F.type === "checkbox")
3292
+ );
3293
+ }
3294
+ ), v = !0);
3295
+ }
3296
+ function E(m) {
3297
+ var y;
3298
+ (y = T.searchstax.searchFacetsWidget) == null || y.unselectFacet(m);
3299
+ }
3300
+ function M() {
3301
+ var m;
3302
+ (m = T.searchstax.searchFacetsWidget) == null || m.removeSelectedFacets();
3303
+ }
3304
+ function R(m) {
3305
+ return !l[m];
3306
+ }
3307
+ function L(m) {
3308
+ R(m) ? h({ ...l, [m]: !0 }) : h({ ...l, [m]: !1 });
3309
+ }
3310
+ function P(m) {
3311
+ var y;
3312
+ return (y = T.searchstax.searchFacetsWidget) == null ? void 0 : y.isChecked(m);
3313
+ }
3314
+ function S(m, y, F, D) {
3315
+ var K, Y;
3316
+ const X = document.createElement("div"), ie = (K = d[m]) == null ? void 0 : K.current;
3317
+ X.innerHTML = ie.outerHTML, (Y = T.searchstax.searchFacetsWidget) == null || Y.onFacetSelect(
3318
+ y,
3319
+ F,
3320
+ ie,
3321
+ D
3322
+ );
3323
+ }
3324
+ function N(m, y) {
3325
+ var F;
3326
+ (F = T.searchstax.searchFacetsWidget) == null || F.onShowMoreLessClick(
3327
+ m,
3328
+ y,
3329
+ !1
3330
+ );
3331
+ }
3332
+ function H(m, y) {
3333
+ var F;
3334
+ (F = T.searchstax.searchFacetsWidget) == null || F.onShowMoreLessClick(
3335
+ m,
3336
+ y,
3337
+ !0
3338
+ );
3339
+ }
3340
+ function A() {
3341
+ var m;
3342
+ (m = T.searchstax.searchFacetsWidget) == null || m.openOverlay();
3343
+ }
3344
+ function Q() {
3345
+ var m;
3346
+ (m = T.searchstax.searchFacetsWidget) == null || m.closeOverlay();
3347
+ }
3348
+ return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-facets-container" + p, children: [
3349
+ (e == null ? void 0 : e.hasResultsOrExternalPromotions) && !n.facetsTemplateDesktop && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-desktop", children: e == null ? void 0 : e.facets.map((m) => /* @__PURE__ */ u.jsx(
3350
+ "div",
3351
+ {
3352
+ className: `searchstax-facet-container ${R(m.name) ? "active" : ""}`,
3353
+ children: /* @__PURE__ */ u.jsxs("div", { children: [
3354
+ /* @__PURE__ */ u.jsxs(
3355
+ "div",
3356
+ {
3357
+ className: "searchstax-facet-title-container",
3358
+ onClick: () => {
3359
+ L(m.name);
3360
+ },
3361
+ children: [
3362
+ /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-title", children: [
3363
+ " ",
3364
+ m.label,
3365
+ " "
3366
+ ] }),
3367
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-title-arrow active" })
3368
+ ]
3369
+ }
3370
+ ),
3371
+ /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
3372
+ m.values.map(
3373
+ //@ts-ignore
3374
+ (y, F) => (d[F + m.name] = Ge(), /* @__PURE__ */ u.jsxs(
3375
+ "div",
3376
+ {
3377
+ className: `searchstax-facet-value-container ${y.disabled ? "searchstax-facet-value-disabled" : ""}`,
3378
+ ref: d[F + m.name],
3379
+ children: [
3380
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-input", children: /* @__PURE__ */ u.jsx(
3381
+ "input",
3382
+ {
3383
+ type: "checkbox",
3384
+ className: "searchstax-facet-input-checkbox",
3385
+ checked: P(y),
3386
+ readOnly: !0,
3387
+ disabled: y.disabled,
3388
+ onClick: (D) => {
3389
+ S(
3390
+ F + m.name,
3391
+ D,
3392
+ y,
3393
+ !0
3394
+ );
3395
+ }
3396
+ }
3397
+ ) }),
3398
+ /* @__PURE__ */ u.jsx(
3399
+ "div",
3400
+ {
3401
+ className: "searchstax-facet-value-label",
3402
+ onClick: (D) => {
3403
+ S(
3404
+ F + m.name,
3405
+ D,
3406
+ y,
3407
+ !1
3408
+ );
3409
+ },
3410
+ children: y.value
3411
+ }
3412
+ ),
3413
+ /* @__PURE__ */ u.jsxs(
3414
+ "div",
3415
+ {
3416
+ className: "searchstax-facet-value-count",
3417
+ onClick: (D) => {
3418
+ S(
3419
+ F + m.name,
3420
+ D,
3421
+ y,
3422
+ !1
3423
+ );
3424
+ },
3425
+ children: [
3426
+ "(",
3427
+ y.count,
3428
+ ")"
3429
+ ]
3430
+ }
3431
+ )
3432
+ ]
3433
+ },
3434
+ y.value + y.parentName
3435
+ ))
3436
+ ),
3437
+ m.hasMoreFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-container", children: /* @__PURE__ */ u.jsxs(
3140
3438
  "div",
3141
3439
  {
3142
- className: "searchstax-autosuggest-item-term-container",
3143
- dangerouslySetInnerHTML: { __html: T.term },
3144
- onMouseOver: () => {
3145
- S(T);
3440
+ className: "searchstax-facet-show-more-container",
3441
+ onClick: (y) => {
3442
+ N(y, m);
3146
3443
  },
3147
- onClick: () => {
3148
- C();
3149
- }
3444
+ children: [
3445
+ m.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
3446
+ !m.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-button searchstax-facet-show-button", children: "more" })
3447
+ ]
3150
3448
  }
3151
- ) }, T.term);
3152
- })
3449
+ ) })
3450
+ ] })
3451
+ ] })
3452
+ },
3453
+ m.name + "desktop"
3454
+ )) }),
3455
+ n.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.facetsTemplateDesktop(
3456
+ e,
3457
+ d,
3458
+ R,
3459
+ L,
3460
+ S,
3461
+ P,
3462
+ N
3463
+ ) }),
3464
+ (a == null ? void 0 : a.hasResultsOrExternalPromotions) && !n.facetsTemplateMobile && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pills-container", children: [
3465
+ /* @__PURE__ */ u.jsx(
3466
+ "div",
3467
+ {
3468
+ className: "searchstax-facets-pill searchstax-facets-pill-filter-by",
3469
+ onClick: () => {
3470
+ A();
3471
+ },
3472
+ children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-label", children: "Filter By" })
3153
3473
  }
3154
3474
  ),
3155
- /* @__PURE__ */ g.jsx("button", { className: "searchstax-spinner-icon", id: "searchstax-search-input-action-button" })
3156
- ] });
3157
- }
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
- ] })
3475
+ /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pills-selected", children: [
3476
+ r.map((m) => /* @__PURE__ */ u.jsxs(
3477
+ "div",
3478
+ {
3479
+ className: "searchstax-facets-pill searchstax-facets-pill-facets",
3480
+ onClick: () => {
3481
+ E(m);
3482
+ },
3483
+ children: [
3484
+ /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pill-label", children: [
3485
+ m.value,
3486
+ " (",
3487
+ m.count,
3488
+ ")"
3489
+ ] }),
3490
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-icon-close" })
3491
+ ]
3492
+ },
3493
+ m.value
3494
+ )),
3495
+ r.length !== 0 && /* @__PURE__ */ u.jsx(
3496
+ "div",
3497
+ {
3498
+ className: "searchstax-facets-pill searchstax-clear-filters searchstax-facets-pill-clear-all",
3499
+ onClick: () => {
3500
+ M();
3501
+ },
3502
+ children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-label", children: "Clear Filters" })
3503
+ }
3504
+ )
3177
3505
  ] }),
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
- ] });
3187
- }
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(
3506
+ /* @__PURE__ */ u.jsxs(
3191
3507
  "div",
3192
3508
  {
3193
- className: `searchstax-search-result ${S.thumbnail ? "has-thumbnail" : ""}`,
3509
+ className: `searchstax-facets-mobile-overlay ${//@ts-ignore
3510
+ a.overlayOpened ? "searchstax-show" : ""}`,
3194
3511
  children: [
3195
- S.promoted && /* @__PURE__ */ g.jsx("div", { className: "searchstax-search-result-promoted" }),
3196
- S.url && /* @__PURE__ */ g.jsx(
3197
- "a",
3512
+ /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-mobile-overlay-header", children: [
3513
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-mobile-overlay-header-title", children: "Filter By" }),
3514
+ /* @__PURE__ */ u.jsx(
3515
+ "div",
3516
+ {
3517
+ className: "searchstax-search-close",
3518
+ onClick: () => {
3519
+ Q();
3520
+ }
3521
+ }
3522
+ )
3523
+ ] }),
3524
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: a == null ? void 0 : a.facets.map((m) => /* @__PURE__ */ u.jsx(
3525
+ "div",
3526
+ {
3527
+ className: `searchstax-facet-container ${R(m.name) ? "active" : ""}`,
3528
+ children: /* @__PURE__ */ u.jsxs("div", { children: [
3529
+ /* @__PURE__ */ u.jsxs(
3530
+ "div",
3531
+ {
3532
+ className: "searchstax-facet-title-container",
3533
+ onClick: () => {
3534
+ L(m.name);
3535
+ },
3536
+ children: [
3537
+ /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-title", children: [
3538
+ " ",
3539
+ m.label,
3540
+ " "
3541
+ ] }),
3542
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-title-arrow active" })
3543
+ ]
3544
+ }
3545
+ ),
3546
+ /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
3547
+ m.values.map(
3548
+ //@ts-ignore
3549
+ (y, F) => (d[F + m.name] = Ge(), /* @__PURE__ */ u.jsxs(
3550
+ "div",
3551
+ {
3552
+ className: `searchstax-facet-value-container ${y.disabled ? "searchstax-facet-value-disabled" : ""}`,
3553
+ ref: d[F + m.name],
3554
+ children: [
3555
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-input", children: /* @__PURE__ */ u.jsx(
3556
+ "input",
3557
+ {
3558
+ type: "checkbox",
3559
+ className: "searchstax-facet-input-checkbox",
3560
+ checked: P(y),
3561
+ readOnly: !0,
3562
+ disabled: y.disabled,
3563
+ onClick: (D) => {
3564
+ S(
3565
+ F + m.name,
3566
+ D,
3567
+ y,
3568
+ !0
3569
+ );
3570
+ }
3571
+ }
3572
+ ) }),
3573
+ /* @__PURE__ */ u.jsx(
3574
+ "div",
3575
+ {
3576
+ className: "searchstax-facet-value-label",
3577
+ onClick: (D) => {
3578
+ S(
3579
+ F + m.name,
3580
+ D,
3581
+ y,
3582
+ !1
3583
+ );
3584
+ },
3585
+ children: y.value
3586
+ }
3587
+ ),
3588
+ /* @__PURE__ */ u.jsxs(
3589
+ "div",
3590
+ {
3591
+ className: "searchstax-facet-value-count",
3592
+ onClick: (D) => {
3593
+ S(
3594
+ F + m.name,
3595
+ D,
3596
+ y,
3597
+ !1
3598
+ );
3599
+ },
3600
+ children: [
3601
+ "(",
3602
+ y.count,
3603
+ ")"
3604
+ ]
3605
+ }
3606
+ )
3607
+ ]
3608
+ },
3609
+ y.value + y.parentName
3610
+ ))
3611
+ ),
3612
+ /* @__PURE__ */ u.jsx(
3613
+ "div",
3614
+ {
3615
+ className: "searchstax-facet-show-more-container",
3616
+ "v-if": "facet.hasMoreFacets",
3617
+ children: /* @__PURE__ */ u.jsxs(
3618
+ "div",
3619
+ {
3620
+ className: "searchstax-facet-show-more-container",
3621
+ onClick: (y) => {
3622
+ H(y, m);
3623
+ },
3624
+ children: [
3625
+ m.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
3626
+ !m.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-button searchstax-facet-show-button", children: "more" })
3627
+ ]
3628
+ }
3629
+ )
3630
+ }
3631
+ )
3632
+ ] })
3633
+ ] })
3634
+ },
3635
+ m.name + "mobile"
3636
+ )) }),
3637
+ /* @__PURE__ */ u.jsx(
3638
+ "button",
3198
3639
  {
3199
- href: S.url,
3200
- "data-searchstax-unique-result-id": S.uniqueId,
3201
- onClick: (C) => {
3202
- x(S, C);
3640
+ className: "searchstax-facets-mobile-overlay-done",
3641
+ onClick: () => {
3642
+ Q();
3203
3643
  },
3204
- className: "searchstax-result-item-link"
3644
+ children: "Done"
3205
3645
  }
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
- })
3646
+ )
3218
3647
  ]
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,
3248
- {
3249
- afterAutosuggest: s,
3250
- beforeAutosuggest: r,
3251
- inputTemplate: h
3252
- }
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
- ) });
3648
+ }
3649
+ )
3650
+ ] }) }),
3651
+ n.facetsTemplateMobile && /* @__PURE__ */ u.jsx(u.Fragment, { children: n.facetsTemplateMobile(
3652
+ a,
3653
+ r,
3654
+ d,
3655
+ R,
3656
+ L,
3657
+ S,
3658
+ P,
3659
+ E,
3660
+ H,
3661
+ A,
3662
+ Q,
3663
+ M
3664
+ ) })
3665
+ ] }) });
3277
3666
  }
3278
- const Ra = document.getElementById("root"), ka = Ie(Ra);
3279
- ka.render(/* @__PURE__ */ g.jsx(La, {}));
3667
+ export {
3668
+ Ra as SearchstaxFacetsWidget,
3669
+ xa as SearchstaxInputWidget,
3670
+ La as SearchstaxOverviewWidget,
3671
+ Sa as SearchstaxPaginationWidget,
3672
+ Ca as SearchstaxResultWidget,
3673
+ Ta as SearchstaxSortingWidget,
3674
+ ba as SearchstaxWrapper
3675
+ };