@searchstax-inc/searchstudio-ux-react 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import Bt, { useState as _, useEffect as ne, useRef as ya, createRef as At } from "react";
2
- var et = { exports: {} }, Te = {};
1
+ import Jt, { useState as W, useEffect as ne, useRef as Ma, createRef as Nt } from "react";
2
+ var et = { exports: {} }, be = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,25 +9,25 @@ var et = { exports: {} }, Te = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var Ft;
13
- function xa() {
14
- if (Ft)
15
- return Te;
16
- Ft = 1;
17
- var i = Bt, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 };
12
+ var Rt;
13
+ function ya() {
14
+ if (Rt)
15
+ return be;
16
+ Rt = 1;
17
+ var i = Jt, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 };
18
18
  function n(c, l, d) {
19
- var f, g = {}, p = null, w = null;
20
- d !== void 0 && (p = "" + d), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (w = l.ref);
21
- for (f in l)
22
- s.call(l, f) && !r.hasOwnProperty(f) && (g[f] = l[f]);
19
+ var L, g = {}, m = null, j = null;
20
+ d !== void 0 && (m = "" + d), l.key !== void 0 && (m = "" + l.key), l.ref !== void 0 && (j = l.ref);
21
+ for (L in l)
22
+ s.call(l, L) && !r.hasOwnProperty(L) && (g[L] = l[L]);
23
23
  if (c && c.defaultProps)
24
- for (f in l = c.defaultProps, l)
25
- g[f] === void 0 && (g[f] = l[f]);
26
- return { $$typeof: e, type: c, key: p, ref: w, props: g, _owner: a.current };
24
+ for (L in l = c.defaultProps, l)
25
+ g[L] === void 0 && (g[L] = l[L]);
26
+ return { $$typeof: e, type: c, key: m, ref: j, props: g, _owner: a.current };
27
27
  }
28
- return Te.Fragment = t, Te.jsx = n, Te.jsxs = n, Te;
28
+ return be.Fragment = t, be.jsx = n, be.jsxs = n, be;
29
29
  }
30
- var Re = {};
30
+ var Te = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -37,57 +37,57 @@ var Re = {};
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
- var Ot;
41
- function ba() {
42
- return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && function() {
43
- var i = Bt, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), n = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), E = Symbol.iterator, x = "@@iterator";
44
- function S(o) {
40
+ var Pt;
41
+ function va() {
42
+ return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var i = Jt, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), n = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), k = Symbol.iterator, y = "@@iterator";
44
+ function w(o) {
45
45
  if (o === null || typeof o != "object")
46
46
  return null;
47
- var m = E && o[E] || o[x];
48
- return typeof m == "function" ? m : null;
47
+ var p = k && o[k] || o[y];
48
+ return typeof p == "function" ? p : null;
49
49
  }
50
- var R = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function k(o) {
50
+ var T = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function S(o) {
52
52
  {
53
- for (var m = arguments.length, y = new Array(m > 1 ? m - 1 : 0), T = 1; T < m; T++)
54
- y[T - 1] = arguments[T];
55
- $("error", o, y);
53
+ for (var p = arguments.length, M = new Array(p > 1 ? p - 1 : 0), b = 1; b < p; b++)
54
+ M[b - 1] = arguments[b];
55
+ F("error", o, M);
56
56
  }
57
57
  }
58
- function $(o, m, y) {
58
+ function F(o, p, M) {
59
59
  {
60
- var T = R.ReactDebugCurrentFrame, F = T.getStackAddendum();
61
- F !== "" && (m += "%s", y = y.concat([F]));
62
- var O = y.map(function(j) {
63
- return String(j);
60
+ var b = T.ReactDebugCurrentFrame, R = b.getStackAddendum();
61
+ R !== "" && (p += "%s", M = M.concat([R]));
62
+ var P = M.map(function(E) {
63
+ return String(E);
64
64
  });
65
- O.unshift("Warning: " + m), Function.prototype.apply.call(console[o], console, O);
65
+ P.unshift("Warning: " + p), Function.prototype.apply.call(console[o], console, P);
66
66
  }
67
67
  }
68
- var W = !1, N = !1, J = !1, v = !1, b = !1, A;
69
- A = Symbol.for("react.module.reference");
70
- function B(o) {
71
- return !!(typeof o == "string" || typeof o == "function" || o === s || o === r || b || o === a || o === d || o === f || v || o === w || W || N || J || typeof o == "object" && o !== null && (o.$$typeof === p || o.$$typeof === g || o.$$typeof === n || o.$$typeof === c || o.$$typeof === l || // This needs to include all possible module reference object
68
+ var Y = !1, z = !1, _ = !1, f = !1, v = !1, N;
69
+ N = Symbol.for("react.module.reference");
70
+ function J(o) {
71
+ return !!(typeof o == "string" || typeof o == "function" || o === s || o === r || v || o === a || o === d || o === L || f || o === j || Y || z || _ || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === g || o.$$typeof === n || o.$$typeof === c || o.$$typeof === l || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
- o.$$typeof === A || o.getModuleId !== void 0));
75
+ o.$$typeof === N || o.getModuleId !== void 0));
76
76
  }
77
- function ee(o, m, y) {
78
- var T = o.displayName;
79
- if (T)
80
- return T;
81
- var F = m.displayName || m.name || "";
82
- return F !== "" ? y + "(" + F + ")" : y;
77
+ function ee(o, p, M) {
78
+ var b = o.displayName;
79
+ if (b)
80
+ return b;
81
+ var R = p.displayName || p.name || "";
82
+ return R !== "" ? M + "(" + R + ")" : M;
83
83
  }
84
84
  function se(o) {
85
85
  return o.displayName || "Context";
86
86
  }
87
- function X(o) {
87
+ function Z(o) {
88
88
  if (o == null)
89
89
  return null;
90
- if (typeof o.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
90
+ if (typeof o.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
91
91
  return o.displayName || o.name || null;
92
92
  if (typeof o == "string")
93
93
  return o;
@@ -102,26 +102,26 @@ function ba() {
102
102
  return "StrictMode";
103
103
  case d:
104
104
  return "Suspense";
105
- case f:
105
+ case L:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof o == "object")
109
109
  switch (o.$$typeof) {
110
110
  case c:
111
- var m = o;
112
- return se(m) + ".Consumer";
111
+ var p = o;
112
+ return se(p) + ".Consumer";
113
113
  case n:
114
- var y = o;
115
- return se(y._context) + ".Provider";
114
+ var M = o;
115
+ return se(M._context) + ".Provider";
116
116
  case l:
117
117
  return ee(o, o.render, "ForwardRef");
118
118
  case g:
119
- var T = o.displayName || null;
120
- return T !== null ? T : X(o.type) || "Memo";
121
- case p: {
122
- var F = o, O = F._payload, j = F._init;
119
+ var b = o.displayName || null;
120
+ return b !== null ? b : Z(o.type) || "Memo";
121
+ case m: {
122
+ var R = o, P = R._payload, E = R._init;
123
123
  try {
124
- return X(j(O));
124
+ return Z(E(P));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,18 +129,18 @@ function ba() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var re = Object.assign, we = 0, ut, dt, gt, pt, mt, ft, vt;
133
- function yt() {
132
+ var re = Object.assign, xe = 0, ut, dt, gt, mt, pt, Lt, ft;
133
+ function Mt() {
134
134
  }
135
- yt.__reactDisabledLog = !0;
136
- function Ut() {
135
+ Mt.__reactDisabledLog = !0;
136
+ function Ht() {
137
137
  {
138
- if (we === 0) {
139
- ut = console.log, dt = console.info, gt = console.warn, pt = console.error, mt = console.group, ft = console.groupCollapsed, vt = console.groupEnd;
138
+ if (xe === 0) {
139
+ ut = console.log, dt = console.info, gt = console.warn, mt = console.error, pt = console.group, Lt = console.groupCollapsed, ft = console.groupEnd;
140
140
  var o = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
143
- value: yt,
143
+ value: Mt,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
@@ -153,12 +153,12 @@ function ba() {
153
153
  groupEnd: o
154
154
  });
155
155
  }
156
- we++;
156
+ xe++;
157
157
  }
158
158
  }
159
- function Qt() {
159
+ function qt() {
160
160
  {
161
- if (we--, we === 0) {
161
+ if (xe--, xe === 0) {
162
162
  var o = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
@@ -175,186 +175,186 @@ function ba() {
175
175
  value: gt
176
176
  }),
177
177
  error: re({}, o, {
178
- value: pt
178
+ value: mt
179
179
  }),
180
180
  group: re({}, o, {
181
- value: mt
181
+ value: pt
182
182
  }),
183
183
  groupCollapsed: re({}, o, {
184
- value: ft
184
+ value: Lt
185
185
  }),
186
186
  groupEnd: re({}, o, {
187
- value: vt
187
+ value: ft
188
188
  })
189
189
  });
190
190
  }
191
- we < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ xe < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var He = R.ReactCurrentDispatcher, Be;
195
- function Oe(o, m, y) {
194
+ var $e = T.ReactCurrentDispatcher, Je;
195
+ function Pe(o, p, M) {
196
196
  {
197
- if (Be === void 0)
197
+ if (Je === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (F) {
201
- var T = F.stack.trim().match(/\n( *(at )?)/);
202
- Be = T && T[1] || "";
200
+ } catch (R) {
201
+ var b = R.stack.trim().match(/\n( *(at )?)/);
202
+ Je = b && b[1] || "";
203
203
  }
204
204
  return `
205
- ` + Be + o;
205
+ ` + Je + o;
206
206
  }
207
207
  }
208
- var Ve = !1, De;
208
+ var Be = !1, Oe;
209
209
  {
210
- var Kt = typeof WeakMap == "function" ? WeakMap : Map;
211
- De = new Kt();
210
+ var Vt = typeof WeakMap == "function" ? WeakMap : Map;
211
+ Oe = new Vt();
212
212
  }
213
- function xt(o, m) {
214
- if (!o || Ve)
213
+ function yt(o, p) {
214
+ if (!o || Be)
215
215
  return "";
216
216
  {
217
- var y = De.get(o);
218
- if (y !== void 0)
219
- return y;
217
+ var M = Oe.get(o);
218
+ if (M !== void 0)
219
+ return M;
220
220
  }
221
- var T;
222
- Ve = !0;
223
- var F = Error.prepareStackTrace;
221
+ var b;
222
+ Be = !0;
223
+ var R = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
- var O;
226
- O = He.current, He.current = null, Ut();
225
+ var P;
226
+ P = $e.current, $e.current = null, Ht();
227
227
  try {
228
- if (m) {
229
- var j = function() {
228
+ if (p) {
229
+ var E = function() {
230
230
  throw Error();
231
231
  };
232
- if (Object.defineProperty(j.prototype, "props", {
232
+ if (Object.defineProperty(E.prototype, "props", {
233
233
  set: function() {
234
234
  throw Error();
235
235
  }
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
- Reflect.construct(j, []);
239
- } catch (Y) {
240
- T = Y;
238
+ Reflect.construct(E, []);
239
+ } catch (G) {
240
+ b = G;
241
241
  }
242
- Reflect.construct(o, [], j);
242
+ Reflect.construct(o, [], E);
243
243
  } else {
244
244
  try {
245
- j.call();
246
- } catch (Y) {
247
- T = Y;
245
+ E.call();
246
+ } catch (G) {
247
+ b = G;
248
248
  }
249
- o.call(j.prototype);
249
+ o.call(E.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (Y) {
255
- T = Y;
254
+ } catch (G) {
255
+ b = G;
256
256
  }
257
257
  o();
258
258
  }
259
- } catch (Y) {
260
- if (Y && T && typeof Y.stack == "string") {
261
- for (var P = Y.stack.split(`
262
- `), K = T.stack.split(`
263
- `), H = P.length - 1, V = K.length - 1; H >= 1 && V >= 0 && P[H] !== K[V]; )
264
- V--;
265
- for (; H >= 1 && V >= 0; H--, V--)
266
- if (P[H] !== K[V]) {
267
- if (H !== 1 || V !== 1)
259
+ } catch (G) {
260
+ if (G && b && typeof G.stack == "string") {
261
+ for (var A = G.stack.split(`
262
+ `), V = b.stack.split(`
263
+ `), $ = A.length - 1, B = V.length - 1; $ >= 1 && B >= 0 && A[$] !== V[B]; )
264
+ B--;
265
+ for (; $ >= 1 && B >= 0; $--, B--)
266
+ if (A[$] !== V[B]) {
267
+ if ($ !== 1 || B !== 1)
268
268
  do
269
- if (H--, V--, V < 0 || P[H] !== K[V]) {
270
- var Z = `
271
- ` + P[H].replace(" at new ", " at ");
272
- return o.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", o.displayName)), typeof o == "function" && De.set(o, Z), Z;
269
+ if ($--, B--, B < 0 || A[$] !== V[B]) {
270
+ var X = `
271
+ ` + A[$].replace(" at new ", " at ");
272
+ return o.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", o.displayName)), typeof o == "function" && Oe.set(o, X), X;
273
273
  }
274
- while (H >= 1 && V >= 0);
274
+ while ($ >= 1 && B >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- Ve = !1, He.current = O, Qt(), Error.prepareStackTrace = F;
279
+ Be = !1, $e.current = P, qt(), Error.prepareStackTrace = R;
280
280
  }
281
- var pe = o ? o.displayName || o.name : "", ue = pe ? Oe(pe) : "";
282
- return typeof o == "function" && De.set(o, ue), ue;
281
+ var me = o ? o.displayName || o.name : "", ue = me ? Pe(me) : "";
282
+ return typeof o == "function" && Oe.set(o, ue), ue;
283
283
  }
284
- function zt(o, m, y) {
285
- return xt(o, !1);
284
+ function Ut(o, p, M) {
285
+ return yt(o, !1);
286
286
  }
287
- function Jt(o) {
288
- var m = o.prototype;
289
- return !!(m && m.isReactComponent);
287
+ function _t(o) {
288
+ var p = o.prototype;
289
+ return !!(p && p.isReactComponent);
290
290
  }
291
- function $e(o, m, y) {
291
+ function Fe(o, p, M) {
292
292
  if (o == null)
293
293
  return "";
294
294
  if (typeof o == "function")
295
- return xt(o, Jt(o));
295
+ return yt(o, _t(o));
296
296
  if (typeof o == "string")
297
- return Oe(o);
297
+ return Pe(o);
298
298
  switch (o) {
299
299
  case d:
300
- return Oe("Suspense");
301
- case f:
302
- return Oe("SuspenseList");
300
+ return Pe("Suspense");
301
+ case L:
302
+ return Pe("SuspenseList");
303
303
  }
304
304
  if (typeof o == "object")
305
305
  switch (o.$$typeof) {
306
306
  case l:
307
- return zt(o.render);
307
+ return Ut(o.render);
308
308
  case g:
309
- return $e(o.type, m, y);
310
- case p: {
311
- var T = o, F = T._payload, O = T._init;
309
+ return Fe(o.type, p, M);
310
+ case m: {
311
+ var b = o, R = b._payload, P = b._init;
312
312
  try {
313
- return $e(O(F), m, y);
313
+ return Fe(P(R), p, M);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var Le = Object.prototype.hasOwnProperty, bt = {}, St = R.ReactDebugCurrentFrame;
321
- function Ne(o) {
320
+ var je = Object.prototype.hasOwnProperty, vt = {}, wt = T.ReactDebugCurrentFrame;
321
+ function ze(o) {
322
322
  if (o) {
323
- var m = o._owner, y = $e(o.type, o._source, m ? m.type : null);
324
- St.setExtraStackFrame(y);
323
+ var p = o._owner, M = Fe(o.type, o._source, p ? p.type : null);
324
+ wt.setExtraStackFrame(M);
325
325
  } else
326
- St.setExtraStackFrame(null);
326
+ wt.setExtraStackFrame(null);
327
327
  }
328
- function Yt(o, m, y, T, F) {
328
+ function Gt(o, p, M, b, R) {
329
329
  {
330
- var O = Function.call.bind(Le);
331
- for (var j in o)
332
- if (O(o, j)) {
333
- var P = void 0;
330
+ var P = Function.call.bind(je);
331
+ for (var E in o)
332
+ if (P(o, E)) {
333
+ var A = void 0;
334
334
  try {
335
- if (typeof o[j] != "function") {
336
- var K = Error((T || "React class") + ": " + y + " type `" + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[j] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw K.name = "Invariant Violation", K;
335
+ if (typeof o[E] != "function") {
336
+ var V = Error((b || "React class") + ": " + M + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw V.name = "Invariant Violation", V;
338
338
  }
339
- P = o[j](m, j, T, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (H) {
341
- P = H;
339
+ A = o[E](p, E, b, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch ($) {
341
+ A = $;
342
342
  }
343
- P && !(P instanceof Error) && (Ne(F), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", y, j, typeof P), Ne(null)), P instanceof Error && !(P.message in bt) && (bt[P.message] = !0, Ne(F), k("Failed %s type: %s", y, P.message), Ne(null));
343
+ A && !(A instanceof Error) && (ze(R), 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).", b || "React class", M, E, typeof A), ze(null)), A instanceof Error && !(A.message in vt) && (vt[A.message] = !0, ze(R), S("Failed %s type: %s", M, A.message), ze(null));
344
344
  }
345
345
  }
346
346
  }
347
- var Gt = Array.isArray;
348
- function Ue(o) {
349
- return Gt(o);
347
+ var Kt = Array.isArray;
348
+ function He(o) {
349
+ return Kt(o);
350
350
  }
351
- function Xt(o) {
351
+ function Zt(o) {
352
352
  {
353
- var m = typeof Symbol == "function" && Symbol.toStringTag, y = m && o[Symbol.toStringTag] || o.constructor.name || "Object";
354
- return y;
353
+ var p = typeof Symbol == "function" && Symbol.toStringTag, M = p && o[Symbol.toStringTag] || o.constructor.name || "Object";
354
+ return M;
355
355
  }
356
356
  }
357
- function Zt(o) {
357
+ function Xt(o) {
358
358
  try {
359
359
  return Ct(o), !1;
360
360
  } catch {
@@ -364,125 +364,125 @@ function ba() {
364
364
  function Ct(o) {
365
365
  return "" + o;
366
366
  }
367
- function wt(o) {
368
- if (Zt(o))
369
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xt(o)), Ct(o);
367
+ function xt(o) {
368
+ if (Xt(o))
369
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Zt(o)), Ct(o);
370
370
  }
371
- var ke = R.ReactCurrentOwner, ea = {
371
+ var Se = T.ReactCurrentOwner, ea = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, Lt, kt, Qe;
377
- Qe = {};
376
+ }, jt, St, qe;
377
+ qe = {};
378
378
  function ta(o) {
379
- if (Le.call(o, "ref")) {
380
- var m = Object.getOwnPropertyDescriptor(o, "ref").get;
381
- if (m && m.isReactWarning)
379
+ if (je.call(o, "ref")) {
380
+ var p = Object.getOwnPropertyDescriptor(o, "ref").get;
381
+ if (p && p.isReactWarning)
382
382
  return !1;
383
383
  }
384
384
  return o.ref !== void 0;
385
385
  }
386
386
  function aa(o) {
387
- if (Le.call(o, "key")) {
388
- var m = Object.getOwnPropertyDescriptor(o, "key").get;
389
- if (m && m.isReactWarning)
387
+ if (je.call(o, "key")) {
388
+ var p = Object.getOwnPropertyDescriptor(o, "key").get;
389
+ if (p && p.isReactWarning)
390
390
  return !1;
391
391
  }
392
392
  return o.key !== void 0;
393
393
  }
394
- function sa(o, m) {
395
- if (typeof o.ref == "string" && ke.current && m && ke.current.stateNode !== m) {
396
- var y = X(ke.current.type);
397
- Qe[y] || (k('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', X(ke.current.type), o.ref), Qe[y] = !0);
394
+ function sa(o, p) {
395
+ if (typeof o.ref == "string" && Se.current && p && Se.current.stateNode !== p) {
396
+ var M = Z(Se.current.type);
397
+ qe[M] || (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', Z(Se.current.type), o.ref), qe[M] = !0);
398
398
  }
399
399
  }
400
- function ra(o, m) {
400
+ function ra(o, p) {
401
401
  {
402
- var y = function() {
403
- Lt || (Lt = !0, k("%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)", m));
402
+ var M = function() {
403
+ jt || (jt = !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)", p));
404
404
  };
405
- y.isReactWarning = !0, Object.defineProperty(o, "key", {
406
- get: y,
405
+ M.isReactWarning = !0, Object.defineProperty(o, "key", {
406
+ get: M,
407
407
  configurable: !0
408
408
  });
409
409
  }
410
410
  }
411
- function ia(o, m) {
411
+ function ia(o, p) {
412
412
  {
413
- var y = function() {
414
- kt || (kt = !0, k("%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)", m));
413
+ var M = function() {
414
+ St || (St = !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)", p));
415
415
  };
416
- y.isReactWarning = !0, Object.defineProperty(o, "ref", {
417
- get: y,
416
+ M.isReactWarning = !0, Object.defineProperty(o, "ref", {
417
+ get: M,
418
418
  configurable: !0
419
419
  });
420
420
  }
421
421
  }
422
- var na = function(o, m, y, T, F, O, j) {
423
- var P = {
422
+ var na = function(o, p, M, b, R, P, E) {
423
+ var A = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
425
  $$typeof: e,
426
426
  // Built-in properties that belong on the element
427
427
  type: o,
428
- key: m,
429
- ref: y,
430
- props: j,
428
+ key: p,
429
+ ref: M,
430
+ props: E,
431
431
  // Record the component responsible for creating this element.
432
- _owner: O
432
+ _owner: P
433
433
  };
434
- return P._store = {}, Object.defineProperty(P._store, "validated", {
434
+ return A._store = {}, Object.defineProperty(A._store, "validated", {
435
435
  configurable: !1,
436
436
  enumerable: !1,
437
437
  writable: !0,
438
438
  value: !1
439
- }), Object.defineProperty(P, "_self", {
439
+ }), Object.defineProperty(A, "_self", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
- value: T
444
- }), Object.defineProperty(P, "_source", {
443
+ value: b
444
+ }), Object.defineProperty(A, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: F
449
- }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
448
+ value: R
449
+ }), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
450
450
  };
451
- function ca(o, m, y, T, F) {
451
+ function ca(o, p, M, b, R) {
452
452
  {
453
- var O, j = {}, P = null, K = null;
454
- y !== void 0 && (wt(y), P = "" + y), aa(m) && (wt(m.key), P = "" + m.key), ta(m) && (K = m.ref, sa(m, F));
455
- for (O in m)
456
- Le.call(m, O) && !ea.hasOwnProperty(O) && (j[O] = m[O]);
453
+ var P, E = {}, A = null, V = null;
454
+ M !== void 0 && (xt(M), A = "" + M), aa(p) && (xt(p.key), A = "" + p.key), ta(p) && (V = p.ref, sa(p, R));
455
+ for (P in p)
456
+ je.call(p, P) && !ea.hasOwnProperty(P) && (E[P] = p[P]);
457
457
  if (o && o.defaultProps) {
458
- var H = o.defaultProps;
459
- for (O in H)
460
- j[O] === void 0 && (j[O] = H[O]);
458
+ var $ = o.defaultProps;
459
+ for (P in $)
460
+ E[P] === void 0 && (E[P] = $[P]);
461
461
  }
462
- if (P || K) {
463
- var V = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
464
- P && ra(j, V), K && ia(j, V);
462
+ if (A || V) {
463
+ var B = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
464
+ A && ra(E, B), V && ia(E, B);
465
465
  }
466
- return na(o, P, K, F, T, ke.current, j);
466
+ return na(o, A, V, R, b, Se.current, E);
467
467
  }
468
468
  }
469
- var Ke = R.ReactCurrentOwner, Tt = R.ReactDebugCurrentFrame;
469
+ var Ve = T.ReactCurrentOwner, bt = T.ReactDebugCurrentFrame;
470
470
  function ge(o) {
471
471
  if (o) {
472
- var m = o._owner, y = $e(o.type, o._source, m ? m.type : null);
473
- Tt.setExtraStackFrame(y);
472
+ var p = o._owner, M = Fe(o.type, o._source, p ? p.type : null);
473
+ bt.setExtraStackFrame(M);
474
474
  } else
475
- Tt.setExtraStackFrame(null);
475
+ bt.setExtraStackFrame(null);
476
476
  }
477
- var ze;
478
- ze = !1;
479
- function Je(o) {
477
+ var Ue;
478
+ Ue = !1;
479
+ function _e(o) {
480
480
  return typeof o == "object" && o !== null && o.$$typeof === e;
481
481
  }
482
- function Rt() {
482
+ function Tt() {
483
483
  {
484
- if (Ke.current) {
485
- var o = X(Ke.current.type);
484
+ if (Ve.current) {
485
+ var o = Z(Ve.current.type);
486
486
  if (o)
487
487
  return `
488
488
 
@@ -494,154 +494,154 @@ Check the render method of \`` + o + "`.";
494
494
  function oa(o) {
495
495
  {
496
496
  if (o !== void 0) {
497
- var m = o.fileName.replace(/^.*[\\\/]/, ""), y = o.lineNumber;
497
+ var p = o.fileName.replace(/^.*[\\\/]/, ""), M = o.lineNumber;
498
498
  return `
499
499
 
500
- Check your code at ` + m + ":" + y + ".";
500
+ Check your code at ` + p + ":" + M + ".";
501
501
  }
502
502
  return "";
503
503
  }
504
504
  }
505
- var Et = {};
505
+ var kt = {};
506
506
  function la(o) {
507
507
  {
508
- var m = Rt();
509
- if (!m) {
510
- var y = typeof o == "string" ? o : o.displayName || o.name;
511
- y && (m = `
508
+ var p = Tt();
509
+ if (!p) {
510
+ var M = typeof o == "string" ? o : o.displayName || o.name;
511
+ M && (p = `
512
512
 
513
- Check the top-level render call using <` + y + ">.");
513
+ Check the top-level render call using <` + M + ">.");
514
514
  }
515
- return m;
515
+ return p;
516
516
  }
517
517
  }
518
- function It(o, m) {
518
+ function It(o, p) {
519
519
  {
520
520
  if (!o._store || o._store.validated || o.key != null)
521
521
  return;
522
522
  o._store.validated = !0;
523
- var y = la(m);
524
- if (Et[y])
523
+ var M = la(p);
524
+ if (kt[M])
525
525
  return;
526
- Et[y] = !0;
527
- var T = "";
528
- o && o._owner && o._owner !== Ke.current && (T = " It was passed a child from " + X(o._owner.type) + "."), ge(o), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, T), ge(null);
526
+ kt[M] = !0;
527
+ var b = "";
528
+ o && o._owner && o._owner !== Ve.current && (b = " It was passed a child from " + Z(o._owner.type) + "."), ge(o), S('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), ge(null);
529
529
  }
530
530
  }
531
- function Pt(o, m) {
531
+ function At(o, p) {
532
532
  {
533
533
  if (typeof o != "object")
534
534
  return;
535
- if (Ue(o))
536
- for (var y = 0; y < o.length; y++) {
537
- var T = o[y];
538
- Je(T) && It(T, m);
535
+ if (He(o))
536
+ for (var M = 0; M < o.length; M++) {
537
+ var b = o[M];
538
+ _e(b) && It(b, p);
539
539
  }
540
- else if (Je(o))
540
+ else if (_e(o))
541
541
  o._store && (o._store.validated = !0);
542
542
  else if (o) {
543
- var F = S(o);
544
- if (typeof F == "function" && F !== o.entries)
545
- for (var O = F.call(o), j; !(j = O.next()).done; )
546
- Je(j.value) && It(j.value, m);
543
+ var R = w(o);
544
+ if (typeof R == "function" && R !== o.entries)
545
+ for (var P = R.call(o), E; !(E = P.next()).done; )
546
+ _e(E.value) && It(E.value, p);
547
547
  }
548
548
  }
549
549
  }
550
550
  function ha(o) {
551
551
  {
552
- var m = o.type;
553
- if (m == null || typeof m == "string")
552
+ var p = o.type;
553
+ if (p == null || typeof p == "string")
554
554
  return;
555
- var y;
556
- if (typeof m == "function")
557
- y = m.propTypes;
558
- else if (typeof m == "object" && (m.$$typeof === l || // Note: Memo only checks outer props here.
555
+ var M;
556
+ if (typeof p == "function")
557
+ M = p.propTypes;
558
+ else if (typeof p == "object" && (p.$$typeof === l || // Note: Memo only checks outer props here.
559
559
  // Inner props are checked in the reconciler.
560
- m.$$typeof === g))
561
- y = m.propTypes;
560
+ p.$$typeof === g))
561
+ M = p.propTypes;
562
562
  else
563
563
  return;
564
- if (y) {
565
- var T = X(m);
566
- Yt(y, o.props, "prop", T, o);
567
- } else if (m.PropTypes !== void 0 && !ze) {
568
- ze = !0;
569
- var F = X(m);
570
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown");
564
+ if (M) {
565
+ var b = Z(p);
566
+ Gt(M, o.props, "prop", b, o);
567
+ } else if (p.PropTypes !== void 0 && !Ue) {
568
+ Ue = !0;
569
+ var R = Z(p);
570
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
571
571
  }
572
- typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
+ typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
575
  function ua(o) {
576
576
  {
577
- for (var m = Object.keys(o.props), y = 0; y < m.length; y++) {
578
- var T = m[y];
579
- if (T !== "children" && T !== "key") {
580
- ge(o), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), ge(null);
577
+ for (var p = Object.keys(o.props), M = 0; M < p.length; M++) {
578
+ var b = p[M];
579
+ if (b !== "children" && b !== "key") {
580
+ ge(o), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), ge(null);
581
581
  break;
582
582
  }
583
583
  }
584
- o.ref !== null && (ge(o), k("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
584
+ o.ref !== null && (ge(o), S("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
585
585
  }
586
586
  }
587
- var jt = {};
588
- function Mt(o, m, y, T, F, O) {
587
+ var Et = {};
588
+ function Dt(o, p, M, b, R, P) {
589
589
  {
590
- var j = B(o);
591
- if (!j) {
592
- var P = "";
593
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (P += " 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 K = oa(F);
595
- K ? P += K : P += Rt();
596
- var H;
597
- o === null ? H = "null" : Ue(o) ? H = "array" : o !== void 0 && o.$$typeof === e ? (H = "<" + (X(o.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : H = typeof o, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, P);
590
+ var E = J(o);
591
+ if (!E) {
592
+ var A = "";
593
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
+ var V = oa(R);
595
+ V ? A += V : A += Tt();
596
+ var $;
597
+ o === null ? $ = "null" : He(o) ? $ = "array" : o !== void 0 && o.$$typeof === e ? ($ = "<" + (Z(o.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof o, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, A);
598
598
  }
599
- var V = ca(o, m, y, F, O);
600
- if (V == null)
601
- return V;
602
- if (j) {
603
- var Z = m.children;
604
- if (Z !== void 0)
605
- if (T)
606
- if (Ue(Z)) {
607
- for (var pe = 0; pe < Z.length; pe++)
608
- Pt(Z[pe], o);
609
- Object.freeze && Object.freeze(Z);
599
+ var B = ca(o, p, M, R, P);
600
+ if (B == null)
601
+ return B;
602
+ if (E) {
603
+ var X = p.children;
604
+ if (X !== void 0)
605
+ if (b)
606
+ if (He(X)) {
607
+ for (var me = 0; me < X.length; me++)
608
+ At(X[me], o);
609
+ Object.freeze && Object.freeze(X);
610
610
  } else
611
- k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611
+ 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
612
  else
613
- Pt(Z, o);
613
+ At(X, o);
614
614
  }
615
- if (Le.call(m, "key")) {
616
- var ue = X(o), Y = Object.keys(m).filter(function(va) {
617
- return va !== "key";
618
- }), Ye = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
619
- if (!jt[ue + Ye]) {
620
- var fa = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
621
- k(`A props object containing a "key" prop is being spread into JSX:
615
+ if (je.call(p, "key")) {
616
+ var ue = Z(o), G = Object.keys(p).filter(function(fa) {
617
+ return fa !== "key";
618
+ }), Ge = G.length > 0 ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}";
619
+ if (!Et[ue + Ge]) {
620
+ var La = G.length > 0 ? "{" + G.join(": ..., ") + ": ...}" : "{}";
621
+ S(`A props object containing a "key" prop is being spread into JSX:
622
622
  let props = %s;
623
623
  <%s {...props} />
624
624
  React keys must be passed directly to JSX without using spread:
625
625
  let props = %s;
626
- <%s key={someKey} {...props} />`, Ye, ue, fa, ue), jt[ue + Ye] = !0;
626
+ <%s key={someKey} {...props} />`, Ge, ue, La, ue), Et[ue + Ge] = !0;
627
627
  }
628
628
  }
629
- return o === s ? ua(V) : ha(V), V;
629
+ return o === s ? ua(B) : ha(B), B;
630
630
  }
631
631
  }
632
- function da(o, m, y) {
633
- return Mt(o, m, y, !0);
632
+ function da(o, p, M) {
633
+ return Dt(o, p, M, !0);
634
634
  }
635
- function ga(o, m, y) {
636
- return Mt(o, m, y, !1);
635
+ function ga(o, p, M) {
636
+ return Dt(o, p, M, !1);
637
637
  }
638
- var pa = ga, ma = da;
639
- Re.Fragment = s, Re.jsx = pa, Re.jsxs = ma;
640
- }()), Re;
638
+ var ma = ga, pa = da;
639
+ Te.Fragment = s, Te.jsx = ma, Te.jsxs = pa;
640
+ }()), Te;
641
641
  }
642
- process.env.NODE_ENV === "production" ? et.exports = xa() : et.exports = ba();
643
- var u = et.exports, Sa = Object.defineProperty, Ca = (i, e, t) => e in i ? Sa(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, h = (i, e, t) => (Ca(i, typeof e != "symbol" ? e + "" : e, t), t), Q = /* @__PURE__ */ ((i) => (i[i.mustache = 0] = "mustache", i[i.vue = 1] = "vue", i[i.react = 2] = "react", i[i.angular = 3] = "angular", i))(Q || {});
644
- class wa {
642
+ process.env.NODE_ENV === "production" ? et.exports = ya() : et.exports = va();
643
+ var u = et.exports, wa = Object.defineProperty, Ca = (i, e, t) => e in i ? wa(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, h = (i, e, t) => (Ca(i, typeof e != "symbol" ? e + "" : e, t), t), q = /* @__PURE__ */ ((i) => (i[i.mustache = 0] = "mustache", i[i.vue = 1] = "vue", i[i.react = 2] = "react", i[i.angular = 3] = "angular", i))(q || {});
644
+ class xa {
645
645
  constructor(e) {
646
646
  h(this, "dataLayer"), this.dataLayer = e;
647
647
  }
@@ -814,7 +814,7 @@ class ae {
814
814
  return e != null && typeof e == "object";
815
815
  }
816
816
  }
817
- class D {
817
+ class O {
818
818
  constructor(e) {
819
819
  h(this, "value"), h(this, "observers", []), this.value = e, this.observers = [];
820
820
  }
@@ -835,7 +835,7 @@ class D {
835
835
  this.observers.forEach((e) => e(this.value));
836
836
  }
837
837
  }
838
- class Ge {
838
+ class Ke {
839
839
  static getOrSetCookie(e, t) {
840
840
  let s = this.getCookie(e);
841
841
  return s == null && (s = t ?? this.makeid(25), this.setCookie(e, s, {
@@ -882,21 +882,21 @@ class oe {
882
882
  return e ? e.replace(s, "") : "";
883
883
  }
884
884
  }
885
- class La {
885
+ class ja {
886
886
  constructor(e, t) {
887
- h(this, "$searchTermChange", new D("")), h(this, "$loadingChange", new D(!1)), h(this, "$searchResults", new D(null)), h(this, "$searchResultsMetadata", new D(null)), h(this, "$searchAutosuggest", new D(null)), h(this, "$searchFacets", new D(null)), h(this, "$searchFacetsCached", new D(null)), h(this, "$searchstaxConfig", new D(null)), h(this, "$autosuggestResults", new D(null)), h(this, "$itemsPerPage", new D(void 0)), h(this, "$searchObject", new D({
887
+ h(this, "$searchTermChange", new O("")), h(this, "$loadingChange", new O(!1)), h(this, "$searchResults", new O(null)), h(this, "$searchResultsMetadata", new O(null)), h(this, "$searchAutosuggest", new O(null)), h(this, "$searchFacets", new O(null)), h(this, "$searchFacetsCached", new O(null)), h(this, "$searchstaxConfig", new O(null)), h(this, "$autosuggestResults", new O(null)), h(this, "$itemsPerPage", new O(void 0)), h(this, "$searchObject", new O({
888
888
  query: "",
889
889
  itemsPerPage: null,
890
890
  page: 99999999,
891
891
  order: "",
892
892
  facets: [],
893
893
  additionalProps: []
894
- })), h(this, "$searchRelatedSearches", new D(null)), h(this, "$searchInputConfig", new D(null)), h(this, "$searchExternalPromotions", new D(null)), h(this, "$facetsTemplateData", new D(null)), h(this, "$selectedFacetsTemplateData", new D(null)), h(this, "$paginationData", new D(null)), h(this, "$answerData", new D(null)), h(this, "$searchFeedbackData", new D(null)), h(this, "$searchSortingData", new D(null)), h(this, "$searchRelatedSearchesData", new D(null)), h(this, "$searchExternalPromotionsData", new D(null)), h(this, "$cookiesDisabled", new D(null)), h(this, "$answer", new D("")), h(this, "$language", new D("en")), h(this, "$answerLoading", new D(!1)), h(this, "$isQuestion", new D(!1)), h(this, "currentPageValue", 1), h(this, "isAnswerWidgetCreatedValue", !1), h(this, "renderingEngineValue", Q.mustache), h(this, "parsedData", new wa(this)), h(this, "sessionId"), h(this, "sessionIdValue", null), h(this, "autoCorrect", !0), h(this, "forceNotCorrect", !1), h(this, "lastSearchValue", ""), h(this, "turnAIAnswerGenerationOn", !1), h(this, "questionURL", ""), h(this, "isInfiniteScroll", !1), h(this, "firstSearchHappened", !1), h(this, "facetsWereSet", !1), h(this, "answerWidgetShowMoreLimit", 100), h(this, "searchHelper"), this.sessionId = e, t && (this.sessionIdValue = t), this.cookieHandlingCallback(t), this.$cookiesDisabled.subscribe(() => {
894
+ })), h(this, "$searchRelatedSearches", new O(null)), h(this, "$searchInputConfig", new O(null)), h(this, "$searchExternalPromotions", new O(null)), h(this, "$facetsTemplateData", new O(null)), h(this, "$selectedFacetsTemplateData", new O(null)), h(this, "$paginationData", new O(null)), h(this, "$answerData", new O(null)), h(this, "$searchFeedbackData", new O(null)), h(this, "$searchSortingData", new O(null)), h(this, "$searchRelatedSearchesData", new O(null)), h(this, "$searchExternalPromotionsData", new O(null)), h(this, "$cookiesDisabled", new O(null)), h(this, "$answer", new O("")), h(this, "$language", new O("en")), h(this, "$answerLoading", new O(!1)), h(this, "$isQuestion", new O(!1)), h(this, "currentPageValue", 1), h(this, "isAnswerWidgetCreatedValue", !1), h(this, "renderingEngineValue", q.mustache), h(this, "parsedData", new xa(this)), h(this, "sessionId"), h(this, "sessionIdValue", null), h(this, "autoCorrect", !0), h(this, "forceNotCorrect", !1), h(this, "lastSearchValue", ""), h(this, "turnAIAnswerGenerationOn", !1), h(this, "questionURL", ""), h(this, "isInfiniteScroll", !1), h(this, "firstSearchHappened", !1), h(this, "facetsWereSet", !1), h(this, "answerWidgetShowMoreLimit", 100), h(this, "searchHelper"), this.sessionId = e, t && (this.sessionIdValue = t), this.cookieHandlingCallback(t), this.$cookiesDisabled.subscribe(() => {
895
895
  this.cookieHandlingCallback(t);
896
896
  });
897
897
  }
898
898
  cookieHandlingCallback(e) {
899
- this.cookiesDisabled ? (this.sessionIdValue = null, Ge.deleteCookie(this.sessionId), Ge.deleteCookie("ms_visitorid")) : this.sessionIdValue = Ge.getOrSetCookie(this.sessionId, e);
899
+ this.cookiesDisabled ? (this.sessionIdValue = null, Ke.deleteCookie(this.sessionId), Ke.deleteCookie("ms_visitorid")) : this.sessionIdValue = Ke.getOrSetCookie(this.sessionId, e);
900
900
  }
901
901
  setIsInfiniteScroll(e) {
902
902
  this.isInfiniteScroll = e;
@@ -1087,7 +1087,7 @@ class La {
1087
1087
  return this.$isQuestion.getValue();
1088
1088
  }
1089
1089
  }
1090
- class Ee {
1090
+ class ke {
1091
1091
  static combineResultsWithMetadata(e) {
1092
1092
  const t = [], s = parseInt(e.response.start + "");
1093
1093
  return e.response.docs.forEach((a, r) => {
@@ -1132,14 +1132,14 @@ class Ee {
1132
1132
  let l = "", d = {
1133
1133
  selectedSortOption: "",
1134
1134
  options: []
1135
- }, f = (t = e.metadata.results.find(
1135
+ }, L = (t = e.metadata.results.find(
1136
1136
  (g) => g.result_card === "date"
1137
1137
  )) == null ? void 0 : t.name;
1138
1138
  if (d.options = [
1139
1139
  { key: "", value: "Relevance" },
1140
- { key: f + " desc", value: "Most Recent" }
1140
+ { key: L + " desc", value: "Most Recent" }
1141
1141
  ], (s = e.metadata.sorts) != null && s.length) {
1142
- const g = e.metadata.sorts.map((p) => ({ value: p.label, key: p.name + " " + p.order }));
1142
+ const g = e.metadata.sorts.map((m) => ({ value: m.label, key: m.name + " " + m.order }));
1143
1143
  d.options = [{ key: "", value: "Relevance" }, ...g];
1144
1144
  }
1145
1145
  return l = ((c = (n = (r = (a = e == null ? void 0 : e.spellcheck) == null ? void 0 : a.suggestions) == null ? void 0 : r[1]) == null ? void 0 : n.suggestion) == null ? void 0 : c[0]) ?? "", typeof l != "string" && (l = (l == null ? void 0 : l.word) ?? ""), {
@@ -1222,9 +1222,9 @@ class Ee {
1222
1222
  return e === null ? "" : typeof e == "string" ? e : Array.isArray(e) ? e.join(" ") : "";
1223
1223
  }
1224
1224
  }
1225
- class Dt {
1225
+ class Ot {
1226
1226
  constructor(e) {
1227
- h(this, "routeName", "searchstax"), h(this, "ignoredKeys", []), h(this, "queryStringHelper"), h(this, "titleParser"), e.routeName && (this.routeName = e.routeName), e.ignoredKeys && (this.ignoredKeys = e.ignoredKeys), e.title && (this.titleParser = e.title), this.queryStringHelper = new ka(this.routeName);
1227
+ h(this, "routeName", "searchstax"), h(this, "ignoredKeys", []), h(this, "queryStringHelper"), h(this, "titleParser"), e.routeName && (this.routeName = e.routeName), e.ignoredKeys && (this.ignoredKeys = e.ignoredKeys), e.title && (this.titleParser = e.title), this.queryStringHelper = new Sa(this.routeName);
1228
1228
  }
1229
1229
  updateUrl(e) {
1230
1230
  const t = this.searchObjectToUrl(e);
@@ -1296,7 +1296,7 @@ class Dt {
1296
1296
  };
1297
1297
  }
1298
1298
  }
1299
- class ka {
1299
+ class Sa {
1300
1300
  constructor(e) {
1301
1301
  h(this, "routeName", ""), h(this, "stringify", (t, s) => {
1302
1302
  const a = this.filterOutIgnoredKeys(t, s.ignoredKeys);
@@ -1326,81 +1326,81 @@ class ka {
1326
1326
  return e.indexOf("?") !== -1;
1327
1327
  }
1328
1328
  }
1329
- const ye = {
1329
+ const Me = {
1330
1330
  questionURL: "http://smartsearch-dev.searchstax.co/completion/?q=",
1331
1331
  question: "I_AM_A_QUESTION",
1332
1332
  notQuestion: "I_AM_NOT_A_QUESTION",
1333
1333
  close: "CLOSE"
1334
1334
  };
1335
- class $t extends Error {
1335
+ class Ft extends Error {
1336
1336
  constructor(e, t) {
1337
1337
  super(e), this.name = "ParseError", this.type = t.type, this.field = t.field, this.value = t.value, this.line = t.line;
1338
1338
  }
1339
1339
  }
1340
- function Xe(i) {
1340
+ function Ze(i) {
1341
1341
  }
1342
- function Ta(i) {
1342
+ function ba(i) {
1343
1343
  if (typeof i == "function")
1344
1344
  throw new TypeError(
1345
1345
  "`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
1346
1346
  );
1347
- const { onEvent: e = Xe, onError: t = Xe, onRetry: s = Xe, onComment: a } = i;
1347
+ const { onEvent: e = Ze, onError: t = Ze, onRetry: s = Ze, onComment: a } = i;
1348
1348
  let r = "", n = !0, c, l = "", d = "";
1349
- function f(x) {
1350
- const S = n ? x.replace(/^\xEF\xBB\xBF/, "") : x, [R, k] = Ra(`${r}${S}`);
1351
- for (const $ of R)
1352
- g($);
1353
- r = k, n = !1;
1354
- }
1355
- function g(x) {
1356
- if (x === "") {
1357
- w();
1349
+ function L(y) {
1350
+ const w = n ? y.replace(/^\xEF\xBB\xBF/, "") : y, [T, S] = Ta(`${r}${w}`);
1351
+ for (const F of T)
1352
+ g(F);
1353
+ r = S, n = !1;
1354
+ }
1355
+ function g(y) {
1356
+ if (y === "") {
1357
+ j();
1358
1358
  return;
1359
1359
  }
1360
- if (x.startsWith(":")) {
1361
- a && a(x.slice(x.startsWith(": ") ? 2 : 1));
1360
+ if (y.startsWith(":")) {
1361
+ a && a(y.slice(y.startsWith(": ") ? 2 : 1));
1362
1362
  return;
1363
1363
  }
1364
- const S = x.indexOf(":");
1365
- if (S !== -1) {
1366
- const R = x.slice(0, S), k = x[S + 1] === " " ? 2 : 1, $ = x.slice(S + k);
1367
- p(R, $, x);
1364
+ const w = y.indexOf(":");
1365
+ if (w !== -1) {
1366
+ const T = y.slice(0, w), S = y[w + 1] === " " ? 2 : 1, F = y.slice(w + S);
1367
+ m(T, F, y);
1368
1368
  return;
1369
1369
  }
1370
- p(x, "", x);
1370
+ m(y, "", y);
1371
1371
  }
1372
- function p(x, S, R) {
1373
- switch (x) {
1372
+ function m(y, w, T) {
1373
+ switch (y) {
1374
1374
  case "event":
1375
- d = S;
1375
+ d = w;
1376
1376
  break;
1377
1377
  case "data":
1378
- l = `${l}${S}
1378
+ l = `${l}${w}
1379
1379
  `;
1380
1380
  break;
1381
1381
  case "id":
1382
- c = S.includes("\0") ? void 0 : S;
1382
+ c = w.includes("\0") ? void 0 : w;
1383
1383
  break;
1384
1384
  case "retry":
1385
- /^\d+$/.test(S) ? s(parseInt(S, 10)) : t(
1386
- new $t(`Invalid \`retry\` value: "${S}"`, {
1385
+ /^\d+$/.test(w) ? s(parseInt(w, 10)) : t(
1386
+ new Ft(`Invalid \`retry\` value: "${w}"`, {
1387
1387
  type: "invalid-retry",
1388
- value: S,
1389
- line: R
1388
+ value: w,
1389
+ line: T
1390
1390
  })
1391
1391
  );
1392
1392
  break;
1393
1393
  default:
1394
1394
  t(
1395
- new $t(
1396
- `Unknown field "${x.length > 20 ? `${x.slice(0, 20)}…` : x}"`,
1397
- { type: "unknown-field", field: x, value: S, line: R }
1395
+ new Ft(
1396
+ `Unknown field "${y.length > 20 ? `${y.slice(0, 20)}…` : y}"`,
1397
+ { type: "unknown-field", field: y, value: w, line: T }
1398
1398
  )
1399
1399
  );
1400
1400
  break;
1401
1401
  }
1402
1402
  }
1403
- function w() {
1403
+ function j() {
1404
1404
  l.length > 0 && e({
1405
1405
  id: c,
1406
1406
  event: d || void 0,
@@ -1410,12 +1410,12 @@ function Ta(i) {
1410
1410
  `) ? l.slice(0, -1) : l
1411
1411
  }), c = void 0, l = "", d = "";
1412
1412
  }
1413
- function E(x = {}) {
1414
- r && x.consume && g(r), n = !0, c = void 0, l = "", d = "", r = "";
1413
+ function k(y = {}) {
1414
+ r && y.consume && g(r), n = !0, c = void 0, l = "", d = "", r = "";
1415
1415
  }
1416
- return { feed: f, reset: E };
1416
+ return { feed: L, reset: k };
1417
1417
  }
1418
- function Ra(i) {
1418
+ function Ta(i) {
1419
1419
  const e = [];
1420
1420
  let t = "", s = 0;
1421
1421
  for (; s < i.length; ) {
@@ -1433,7 +1433,7 @@ function Ra(i) {
1433
1433
  }
1434
1434
  return [e, t];
1435
1435
  }
1436
- class Nt extends Event {
1436
+ class zt extends Event {
1437
1437
  /**
1438
1438
  * Constructs a new `ErrorEvent` instance. This is typically not called directly,
1439
1439
  * but rather emitted by the `EventSource` object when an error occurs.
@@ -1458,7 +1458,7 @@ class Nt extends Event {
1458
1458
  * @returns A string representation of the error
1459
1459
  */
1460
1460
  [Symbol.for("nodejs.util.inspect.custom")](e, t, s) {
1461
- return s(qt(this), t);
1461
+ return s(Qt(this), t);
1462
1462
  }
1463
1463
  /**
1464
1464
  * Deno "hides" the `message` and `code` properties of the `ErrorEvent` instance,
@@ -1472,17 +1472,17 @@ class Nt extends Event {
1472
1472
  * @returns A string representation of the error
1473
1473
  */
1474
1474
  [Symbol.for("Deno.customInspect")](e, t) {
1475
- return e(qt(this), t);
1475
+ return e(Qt(this), t);
1476
1476
  }
1477
1477
  }
1478
- function Ea(i) {
1478
+ function ka(i) {
1479
1479
  const e = globalThis.DOMException;
1480
1480
  return typeof e == "function" ? new e(i, "SyntaxError") : new SyntaxError(i);
1481
1481
  }
1482
1482
  function tt(i) {
1483
1483
  return i instanceof Error ? "errors" in i && Array.isArray(i.errors) ? i.errors.map(tt).join(", ") : "cause" in i && i.cause instanceof Error ? `${i}: ${tt(i.cause)}` : i.message : `${i}`;
1484
1484
  }
1485
- function qt(i) {
1485
+ function Qt(i) {
1486
1486
  return {
1487
1487
  type: i.type,
1488
1488
  message: i.message,
@@ -1492,71 +1492,71 @@ function qt(i) {
1492
1492
  timeStamp: i.timeStamp
1493
1493
  };
1494
1494
  }
1495
- var Vt = (i) => {
1495
+ var Bt = (i) => {
1496
1496
  throw TypeError(i);
1497
- }, lt = (i, e, t) => e.has(i) || Vt("Cannot " + t), I = (i, e, t) => (lt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), U = (i, e, t) => e.has(i) ? Vt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), q = (i, e, t, s) => (lt(i, e, "write to private field"), e.set(i, t), t), ce = (i, e, t) => (lt(i, e, "access private method"), t), G, de, me, qe, We, je, xe, Me, le, fe, be, ve, Ie, te, at, st, rt, _t, it, nt, Pe, ct, ot;
1498
- class _e extends EventTarget {
1497
+ }, lt = (i, e, t) => e.has(i) || Bt("Cannot " + t), I = (i, e, t) => (lt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), H = (i, e, t) => e.has(i) ? Bt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Q = (i, e, t, s) => (lt(i, e, "write to private field"), e.set(i, t), t), ce = (i, e, t) => (lt(i, e, "access private method"), t), K, de, pe, Qe, Ye, Ee, ye, De, le, Le, ve, fe, Ie, te, at, st, rt, Wt, it, nt, Ae, ct, ot;
1498
+ class We extends EventTarget {
1499
1499
  constructor(e, t) {
1500
1500
  var s, a;
1501
- super(), U(this, te), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, U(this, G), U(this, de), U(this, me), U(this, qe), U(this, We), U(this, je), U(this, xe), U(this, Me, null), U(this, le), U(this, fe), U(this, be, null), U(this, ve, null), U(this, Ie, null), U(this, st, async (r) => {
1501
+ super(), H(this, te), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, H(this, K), H(this, de), H(this, pe), H(this, Qe), H(this, Ye), H(this, Ee), H(this, ye), H(this, De, null), H(this, le), H(this, Le), H(this, ve, null), H(this, fe, null), H(this, Ie, null), H(this, st, async (r) => {
1502
1502
  var n;
1503
- I(this, fe).reset();
1504
- const { body: c, redirected: l, status: d, headers: f } = r;
1503
+ I(this, Le).reset();
1504
+ const { body: c, redirected: l, status: d, headers: L } = r;
1505
1505
  if (d === 204) {
1506
- ce(this, te, Pe).call(this, "Server sent HTTP 204, not reconnecting", 204), this.close();
1506
+ ce(this, te, Ae).call(this, "Server sent HTTP 204, not reconnecting", 204), this.close();
1507
1507
  return;
1508
1508
  }
1509
- if (l ? q(this, me, new URL(r.url)) : q(this, me, void 0), d !== 200) {
1510
- ce(this, te, Pe).call(this, `Non-200 status code (${d})`, d);
1509
+ if (l ? Q(this, pe, new URL(r.url)) : Q(this, pe, void 0), d !== 200) {
1510
+ ce(this, te, Ae).call(this, `Non-200 status code (${d})`, d);
1511
1511
  return;
1512
1512
  }
1513
- if (!(f.get("content-type") || "").startsWith("text/event-stream")) {
1514
- ce(this, te, Pe).call(this, 'Invalid content type, expected "text/event-stream"', d);
1513
+ if (!(L.get("content-type") || "").startsWith("text/event-stream")) {
1514
+ ce(this, te, Ae).call(this, 'Invalid content type, expected "text/event-stream"', d);
1515
1515
  return;
1516
1516
  }
1517
- if (I(this, G) === this.CLOSED)
1517
+ if (I(this, K) === this.CLOSED)
1518
1518
  return;
1519
- q(this, G, this.OPEN);
1519
+ Q(this, K, this.OPEN);
1520
1520
  const g = new Event("open");
1521
1521
  if ((n = I(this, Ie)) == null || n.call(this, g), this.dispatchEvent(g), typeof c != "object" || !c || !("getReader" in c)) {
1522
- ce(this, te, Pe).call(this, "Invalid response body, expected a web ReadableStream", d), this.close();
1522
+ ce(this, te, Ae).call(this, "Invalid response body, expected a web ReadableStream", d), this.close();
1523
1523
  return;
1524
1524
  }
1525
- const p = new TextDecoder(), w = c.getReader();
1526
- let E = !0;
1525
+ const m = new TextDecoder(), j = c.getReader();
1526
+ let k = !0;
1527
1527
  do {
1528
- const { done: x, value: S } = await w.read();
1529
- S && I(this, fe).feed(p.decode(S, { stream: !x })), x && (E = !1, I(this, fe).reset(), ce(this, te, ct).call(this));
1530
- } while (E);
1531
- }), U(this, rt, (r) => {
1532
- q(this, le, void 0), !(r.name === "AbortError" || r.type === "aborted") && ce(this, te, ct).call(this, tt(r));
1533
- }), U(this, it, (r) => {
1534
- typeof r.id == "string" && q(this, Me, r.id);
1528
+ const { done: y, value: w } = await j.read();
1529
+ w && I(this, Le).feed(m.decode(w, { stream: !y })), y && (k = !1, I(this, Le).reset(), ce(this, te, ct).call(this));
1530
+ } while (k);
1531
+ }), H(this, rt, (r) => {
1532
+ Q(this, le, void 0), !(r.name === "AbortError" || r.type === "aborted") && ce(this, te, ct).call(this, tt(r));
1533
+ }), H(this, it, (r) => {
1534
+ typeof r.id == "string" && Q(this, De, r.id);
1535
1535
  const n = new MessageEvent(r.event || "message", {
1536
1536
  data: r.data,
1537
- origin: I(this, me) ? I(this, me).origin : I(this, de).origin,
1537
+ origin: I(this, pe) ? I(this, pe).origin : I(this, de).origin,
1538
1538
  lastEventId: r.id || ""
1539
1539
  });
1540
- I(this, ve) && (!r.event || r.event === "message") && I(this, ve).call(this, n), this.dispatchEvent(n);
1541
- }), U(this, nt, (r) => {
1542
- q(this, je, r);
1543
- }), U(this, ot, () => {
1544
- q(this, xe, void 0), I(this, G) === this.CONNECTING && ce(this, te, at).call(this);
1540
+ I(this, fe) && (!r.event || r.event === "message") && I(this, fe).call(this, n), this.dispatchEvent(n);
1541
+ }), H(this, nt, (r) => {
1542
+ Q(this, Ee, r);
1543
+ }), H(this, ot, () => {
1544
+ Q(this, ye, void 0), I(this, K) === this.CONNECTING && ce(this, te, at).call(this);
1545
1545
  });
1546
1546
  try {
1547
1547
  if (e instanceof URL)
1548
- q(this, de, e);
1548
+ Q(this, de, e);
1549
1549
  else if (typeof e == "string")
1550
- q(this, de, new URL(e, Ia()));
1550
+ Q(this, de, new URL(e, Ia()));
1551
1551
  else
1552
1552
  throw new Error("Invalid URL");
1553
1553
  } catch {
1554
- throw Ea("An invalid or illegal string was specified");
1554
+ throw ka("An invalid or illegal string was specified");
1555
1555
  }
1556
- q(this, fe, Ta({
1556
+ Q(this, Le, ba({
1557
1557
  onEvent: I(this, it),
1558
1558
  onRetry: I(this, nt)
1559
- })), q(this, G, this.CONNECTING), q(this, je, 3e3), q(this, We, (s = t == null ? void 0 : t.fetch) != null ? s : globalThis.fetch), q(this, qe, (a = t == null ? void 0 : t.withCredentials) != null ? a : !1), ce(this, te, at).call(this);
1559
+ })), Q(this, K, this.CONNECTING), Q(this, Ee, 3e3), Q(this, Ye, (s = t == null ? void 0 : t.fetch) != null ? s : globalThis.fetch), Q(this, Qe, (a = t == null ? void 0 : t.withCredentials) != null ? a : !1), ce(this, te, at).call(this);
1560
1560
  }
1561
1561
  /**
1562
1562
  * Returns the state of this EventSource object's connection. It can have the values described below.
@@ -1569,7 +1569,7 @@ class _e extends EventTarget {
1569
1569
  * @public
1570
1570
  */
1571
1571
  get readyState() {
1572
- return I(this, G);
1572
+ return I(this, K);
1573
1573
  }
1574
1574
  /**
1575
1575
  * Returns the URL providing the event stream.
@@ -1587,28 +1587,28 @@ class _e extends EventTarget {
1587
1587
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
1588
1588
  */
1589
1589
  get withCredentials() {
1590
- return I(this, qe);
1590
+ return I(this, Qe);
1591
1591
  }
1592
1592
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
1593
1593
  get onerror() {
1594
- return I(this, be);
1594
+ return I(this, ve);
1595
1595
  }
1596
1596
  set onerror(e) {
1597
- q(this, be, e);
1597
+ Q(this, ve, e);
1598
1598
  }
1599
1599
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */
1600
1600
  get onmessage() {
1601
- return I(this, ve);
1601
+ return I(this, fe);
1602
1602
  }
1603
1603
  set onmessage(e) {
1604
- q(this, ve, e);
1604
+ Q(this, fe, e);
1605
1605
  }
1606
1606
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */
1607
1607
  get onopen() {
1608
1608
  return I(this, Ie);
1609
1609
  }
1610
1610
  set onopen(e) {
1611
- q(this, Ie, e);
1611
+ Q(this, Ie, e);
1612
1612
  }
1613
1613
  addEventListener(e, t, s) {
1614
1614
  const a = t;
@@ -1626,30 +1626,30 @@ class _e extends EventTarget {
1626
1626
  * @public
1627
1627
  */
1628
1628
  close() {
1629
- I(this, xe) && clearTimeout(I(this, xe)), I(this, G) !== this.CLOSED && (I(this, le) && I(this, le).abort(), q(this, G, this.CLOSED), q(this, le, void 0));
1629
+ I(this, ye) && clearTimeout(I(this, ye)), I(this, K) !== this.CLOSED && (I(this, le) && I(this, le).abort(), Q(this, K, this.CLOSED), Q(this, le, void 0));
1630
1630
  }
1631
1631
  }
1632
- G = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakSet(), /**
1632
+ K = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakSet(), /**
1633
1633
  * Connect to the given URL and start receiving events
1634
1634
  *
1635
1635
  * @internal
1636
1636
  */
1637
1637
  at = function() {
1638
- q(this, G, this.CONNECTING), q(this, le, new AbortController()), I(this, We)(I(this, de), ce(this, te, _t).call(this)).then(I(this, st)).catch(I(this, rt));
1638
+ Q(this, K, this.CONNECTING), Q(this, le, new AbortController()), I(this, Ye)(I(this, de), ce(this, te, Wt).call(this)).then(I(this, st)).catch(I(this, rt));
1639
1639
  }, st = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), /**
1640
1640
  * Get request options for the `fetch()` request
1641
1641
  *
1642
1642
  * @returns The request options
1643
1643
  * @internal
1644
1644
  */
1645
- _t = function() {
1645
+ Wt = function() {
1646
1646
  var i;
1647
1647
  const e = {
1648
1648
  // [spec] Let `corsAttributeState` be `Anonymous`…
1649
1649
  // [spec] …will have their mode set to "cors"…
1650
1650
  mode: "cors",
1651
1651
  redirect: "follow",
1652
- headers: { Accept: "text/event-stream", ...I(this, Me) ? { "Last-Event-ID": I(this, Me) } : void 0 },
1652
+ headers: { Accept: "text/event-stream", ...I(this, De) ? { "Last-Event-ID": I(this, De) } : void 0 },
1653
1653
  cache: "no-store",
1654
1654
  signal: (i = I(this, le)) == null ? void 0 : i.signal
1655
1655
  };
@@ -1661,11 +1661,11 @@ _t = function() {
1661
1661
  * @param code - The HTTP status code, if available
1662
1662
  * @internal
1663
1663
  */
1664
- Pe = function(i, e) {
1664
+ Ae = function(i, e) {
1665
1665
  var t;
1666
- I(this, G) !== this.CLOSED && q(this, G, this.CLOSED);
1667
- const s = new Nt("error", { code: e, message: i });
1668
- (t = I(this, be)) == null || t.call(this, s), this.dispatchEvent(s);
1666
+ I(this, K) !== this.CLOSED && Q(this, K, this.CLOSED);
1667
+ const s = new zt("error", { code: e, message: i });
1668
+ (t = I(this, ve)) == null || t.call(this, s), this.dispatchEvent(s);
1669
1669
  }, /**
1670
1670
  * Schedules a reconnection attempt against the EventSource endpoint.
1671
1671
  *
@@ -1675,27 +1675,27 @@ Pe = function(i, e) {
1675
1675
  */
1676
1676
  ct = function(i, e) {
1677
1677
  var t;
1678
- if (I(this, G) === this.CLOSED)
1678
+ if (I(this, K) === this.CLOSED)
1679
1679
  return;
1680
- q(this, G, this.CONNECTING);
1681
- const s = new Nt("error", { code: e, message: i });
1682
- (t = I(this, be)) == null || t.call(this, s), this.dispatchEvent(s), q(this, xe, setTimeout(I(this, ot), I(this, je)));
1680
+ Q(this, K, this.CONNECTING);
1681
+ const s = new zt("error", { code: e, message: i });
1682
+ (t = I(this, ve)) == null || t.call(this, s), this.dispatchEvent(s), Q(this, ye, setTimeout(I(this, ot), I(this, Ee)));
1683
1683
  }, ot = /* @__PURE__ */ new WeakMap(), /**
1684
1684
  * ReadyState representing an EventSource currently trying to connect
1685
1685
  *
1686
1686
  * @public
1687
1687
  */
1688
- _e.CONNECTING = 0, /**
1688
+ We.CONNECTING = 0, /**
1689
1689
  * ReadyState representing an EventSource connection that is open (eg connected)
1690
1690
  *
1691
1691
  * @public
1692
1692
  */
1693
- _e.OPEN = 1, /**
1693
+ We.OPEN = 1, /**
1694
1694
  * ReadyState representing an EventSource connection that is closed (eg disconnected)
1695
1695
  *
1696
1696
  * @public
1697
1697
  */
1698
- _e.CLOSED = 2;
1698
+ We.CLOSED = 2;
1699
1699
  function Ia() {
1700
1700
  const i = "document" in globalThis ? globalThis.document : void 0;
1701
1701
  return i && typeof i == "object" && "baseURI" in i && typeof i.baseURI == "string" ? i.baseURI : void 0;
@@ -1728,12 +1728,12 @@ class he {
1728
1728
  };
1729
1729
  return new Promise((s, a) => {
1730
1730
  const r = ["trackClick", t];
1731
- t.key && this.msq().push(
1731
+ t.key ? this.msq().push(
1732
1732
  r,
1733
1733
  (function(n, c) {
1734
1734
  JSON.stringify(n) === JSON.stringify(t) && c ? s() : a();
1735
1735
  }).bind(this)
1736
- );
1736
+ ) : a();
1737
1737
  });
1738
1738
  }
1739
1739
  static trackSearch(e) {
@@ -1810,7 +1810,7 @@ class he {
1810
1810
  }
1811
1811
  }
1812
1812
  h(he, "subscribedToClickEvent", !1), h(he, "msq", () => typeof window < "u" && window != null && window._msq ? window == null ? void 0 : window._msq : []);
1813
- class Pa {
1813
+ class Aa {
1814
1814
  constructor(e, t) {
1815
1815
  h(this, "cachedQuery", ""), h(this, "url", ""), h(this, "relatedSearches", ""), h(this, "suggester", ""), h(this, "authHeader"), h(this, "authHeaderRelated"), h(this, "trackApiKey", ""), h(this, "session", ""), h(this, "searchAuthType"), h(this, "searchAuth", ""), h(this, "controllerSearch"), h(this, "signalSearch"), h(this, "controllerSuggest"), h(this, "signalSuggest"), h(this, "_authToken", ""), h(this, "dataLayer"), this.dataLayer = t, this.url = e.searchURL, this.dataLayer.setLanguage(e.language), this.suggester = e.suggesterURL, this.trackApiKey = e.trackApiKey, this.session = e.sessionId, this.searchAuthType = e.authType, this.searchAuth = e.searchAuth, this.authHeader = new Headers(), this.authHeader.append("Accept", "application/json"), this._authToken = this.searchAuthType === "token" ? `Token ${e.searchAuth}` : `Basic ${e.searchAuth}`, this.authHeader.append("Authorization", this._authToken), this.authHeaderRelated = new Headers(), this.authHeaderRelated.append("Accept", "application/json"), this.authHeaderRelated.append("Authorization", e.searchAuth);
1816
1816
  }
@@ -1868,7 +1868,7 @@ class Pa {
1868
1868
  ));
1869
1869
  }
1870
1870
  cacheFacetsCallback(e) {
1871
- let t = Ee.extractFacets(e);
1871
+ let t = ke.extractFacets(e);
1872
1872
  this.dataLayer.setSearchFacetsCached(t);
1873
1873
  }
1874
1874
  search(e, t, s = !1, a = !1) {
@@ -1877,21 +1877,21 @@ class Pa {
1877
1877
  const r = new Proxy(
1878
1878
  new URLSearchParams((window == null ? void 0 : window.location.search) ?? ""),
1879
1879
  {
1880
- get: (p, w) => p.get(w) ?? ""
1880
+ get: (m, j) => m.get(j) ?? ""
1881
1881
  }
1882
1882
  ), n = r.languageVariant ? (
1883
1883
  //@ts-expect-error - this is a hack to get around the fact that the urlQueryParams is a proxy
1884
1884
  "&fq=_language:" + r.languageVariant
1885
1885
  ) : "";
1886
1886
  let c = e.itemsPerPage, l = (e.itemsPerPage ? e.itemsPerPage : 0) * (e.page - 1), d = e.order ? `&sort=${e.order}` : "";
1887
- const f = this.url + "?q=" + encodeURIComponent(e.query.trim()) + "&start=" + l + this.toQueryString(e.additionalProps ?? []) + this.generateFacetQuery(
1887
+ const L = this.url + "?q=" + encodeURIComponent(e.query.trim()) + "&start=" + l + this.toQueryString(e.additionalProps ?? []) + this.generateFacetQuery(
1888
1888
  e.facets.filter(
1889
- (p) => p.type === "or" || p.type === "showUnavailable"
1889
+ (m) => m.type === "or" || m.type === "showUnavailable"
1890
1890
  ),
1891
1891
  !0
1892
1892
  ) + this.generateFacetQuery(
1893
1893
  e.facets.filter(
1894
- (p) => p.type === "and" || p.type === "tabs"
1894
+ (m) => m.type === "and" || m.type === "tabs"
1895
1895
  ),
1896
1896
  !1
1897
1897
  ) + d + `&spellcheck.correct=${this.dataLayer.autoCorrect && !a}` + (c ? `&rows=${c}` : "") + "&language=" + this.dataLayer.language + n, g = {
@@ -1900,8 +1900,8 @@ class Pa {
1900
1900
  credentials: "same-origin",
1901
1901
  signal: this.signalSearch
1902
1902
  };
1903
- s && delete g.signal, fetch(f, g).then((p) => p.json()).then((p) => {
1904
- this.dataLayer.setLoading(!1), t(p);
1903
+ s && delete g.signal, fetch(L, g).then((m) => m.json()).then((m) => {
1904
+ this.dataLayer.setLoading(!1), t(m);
1905
1905
  }).catch(() => {
1906
1906
  this.dataLayer.setLoading(!1);
1907
1907
  });
@@ -1910,7 +1910,7 @@ class Pa {
1910
1910
  startSSE(e, t) {
1911
1911
  if (!this.dataLayer.turnAIAnswerGenerationOn || e === "*" || this.dataLayer.searchObject.page !== 1)
1912
1912
  return;
1913
- const s = new _e(
1913
+ const s = new We(
1914
1914
  this.dataLayer.questionURL + "?q=" + e + "&language=" + this.dataLayer.language + `&spellcheck.correct=${this.dataLayer.autoCorrect}`,
1915
1915
  {
1916
1916
  fetch: (r, n) => fetch(r, {
@@ -1923,11 +1923,11 @@ class Pa {
1923
1923
  }
1924
1924
  ), a = this.dataLayer;
1925
1925
  s.onmessage = (r) => {
1926
- if (r.data === ye.question || r.data === ye.notQuestion) {
1927
- r.data === ye.question ? (this.dataLayer.setAnswerLoading(!0), this.dataLayer.setIsQuestion(!0)) : (a.setAnswerLoading(!1), this.dataLayer.setIsQuestion(!1)), a.setAnswerData("");
1926
+ if (r.data === Me.question || r.data === Me.notQuestion) {
1927
+ r.data === Me.question ? (this.dataLayer.setAnswerLoading(!0), this.dataLayer.setIsQuestion(!0)) : (a.setAnswerLoading(!1), this.dataLayer.setIsQuestion(!1)), a.setAnswerData("");
1928
1928
  return;
1929
1929
  }
1930
- if (r.data === ye.close) {
1930
+ if (r.data === Me.close) {
1931
1931
  he.trackAnswerData({
1932
1932
  ...a.parsedData.trackingData,
1933
1933
  answer: a.$answer.getValue(),
@@ -1971,33 +1971,33 @@ class Pa {
1971
1971
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
1972
1972
  * http://github.com/janl/mustache.js
1973
1973
  */
1974
- var ja = Object.prototype.toString, Ce = Array.isArray || function(i) {
1975
- return ja.call(i) === "[object Array]";
1974
+ var Ea = Object.prototype.toString, Ce = Array.isArray || function(i) {
1975
+ return Ea.call(i) === "[object Array]";
1976
1976
  };
1977
1977
  function ht(i) {
1978
1978
  return typeof i == "function";
1979
1979
  }
1980
- function Ma(i) {
1980
+ function Da(i) {
1981
1981
  return Ce(i) ? "array" : typeof i;
1982
1982
  }
1983
- function Ze(i) {
1983
+ function Xe(i) {
1984
1984
  return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
1985
1985
  }
1986
- function Wt(i, e) {
1986
+ function Yt(i, e) {
1987
1987
  return i != null && typeof i == "object" && e in i;
1988
1988
  }
1989
- function Aa(i, e) {
1989
+ function Na(i, e) {
1990
1990
  return i != null && typeof i != "object" && i.hasOwnProperty && i.hasOwnProperty(e);
1991
1991
  }
1992
- var Fa = RegExp.prototype.test;
1993
- function Oa(i, e) {
1994
- return Fa.call(i, e);
1992
+ var Ra = RegExp.prototype.test;
1993
+ function Pa(i, e) {
1994
+ return Ra.call(i, e);
1995
1995
  }
1996
- var Da = /\S/;
1997
- function $a(i) {
1998
- return !Oa(Da, i);
1996
+ var Oa = /\S/;
1997
+ function Fa(i) {
1998
+ return !Pa(Oa, i);
1999
1999
  }
2000
- var Na = {
2000
+ var za = {
2001
2001
  "&": "&amp;",
2002
2002
  "<": "&lt;",
2003
2003
  ">": "&gt;",
@@ -2007,17 +2007,17 @@ var Na = {
2007
2007
  "`": "&#x60;",
2008
2008
  "=": "&#x3D;"
2009
2009
  };
2010
- function qa(i) {
2010
+ function Qa(i) {
2011
2011
  return String(i).replace(/[&<>"'`=\/]/g, function(e) {
2012
- return Na[e];
2012
+ return za[e];
2013
2013
  });
2014
2014
  }
2015
- var _a = /\s*/, Wa = /\s+/, Ht = /\s*=/, Ha = /\s*\}/, Ba = /#|\^|\/|>|\{|&|=|!/;
2016
- function Va(i, e) {
2015
+ var Wa = /\s*/, Ya = /\s+/, $t = /\s*=/, $a = /\s*\}/, Ja = /#|\^|\/|>|\{|&|=|!/;
2016
+ function Ba(i, e) {
2017
2017
  if (!i)
2018
2018
  return [];
2019
2019
  var t = !1, s = [], a = [], r = [], n = !1, c = !1, l = "", d = 0;
2020
- function f() {
2020
+ function L() {
2021
2021
  if (n && !c)
2022
2022
  for (; r.length; )
2023
2023
  delete a[r.pop()];
@@ -2025,42 +2025,42 @@ function Va(i, e) {
2025
2025
  r = [];
2026
2026
  n = !1, c = !1;
2027
2027
  }
2028
- var g, p, w;
2029
- function E(b) {
2030
- if (typeof b == "string" && (b = b.split(Wa, 2)), !Ce(b) || b.length !== 2)
2031
- throw new Error("Invalid tags: " + b);
2032
- g = new RegExp(Ze(b[0]) + "\\s*"), p = new RegExp("\\s*" + Ze(b[1])), w = new RegExp("\\s*" + Ze("}" + b[1]));
2033
- }
2034
- E(e || M.tags);
2035
- for (var x = new Fe(i), S, R, k, $, W, N; !x.eos(); ) {
2036
- if (S = x.pos, k = x.scanUntil(g), k)
2037
- for (var J = 0, v = k.length; J < v; ++J)
2038
- $ = k.charAt(J), $a($) ? (r.push(a.length), l += $) : (c = !0, t = !0, l += " "), a.push(["text", $, S, S + 1]), S += 1, $ === `
2039
- ` && (f(), l = "", d = 0, t = !1);
2040
- if (!x.scan(g))
2028
+ var g, m, j;
2029
+ function k(v) {
2030
+ if (typeof v == "string" && (v = v.split(Ya, 2)), !Ce(v) || v.length !== 2)
2031
+ throw new Error("Invalid tags: " + v);
2032
+ g = new RegExp(Xe(v[0]) + "\\s*"), m = new RegExp("\\s*" + Xe(v[1])), j = new RegExp("\\s*" + Xe("}" + v[1]));
2033
+ }
2034
+ k(e || D.tags);
2035
+ for (var y = new Re(i), w, T, S, F, Y, z; !y.eos(); ) {
2036
+ if (w = y.pos, S = y.scanUntil(g), S)
2037
+ for (var _ = 0, f = S.length; _ < f; ++_)
2038
+ F = S.charAt(_), Fa(F) ? (r.push(a.length), l += F) : (c = !0, t = !0, l += " "), a.push(["text", F, w, w + 1]), w += 1, F === `
2039
+ ` && (L(), l = "", d = 0, t = !1);
2040
+ if (!y.scan(g))
2041
2041
  break;
2042
- if (n = !0, R = x.scan(Ba) || "name", x.scan(_a), R === "=" ? (k = x.scanUntil(Ht), x.scan(Ht), x.scanUntil(p)) : R === "{" ? (k = x.scanUntil(w), x.scan(Ha), x.scanUntil(p), R = "&") : k = x.scanUntil(p), !x.scan(p))
2043
- throw new Error("Unclosed tag at " + x.pos);
2044
- if (R == ">" ? W = [R, k, S, x.pos, l, d, t] : W = [R, k, S, x.pos], d++, a.push(W), R === "#" || R === "^")
2045
- s.push(W);
2046
- else if (R === "/") {
2047
- if (N = s.pop(), !N)
2048
- throw new Error('Unopened section "' + k + '" at ' + S);
2049
- if (N[1] !== k)
2050
- throw new Error('Unclosed section "' + N[1] + '" at ' + S);
2042
+ if (n = !0, T = y.scan(Ja) || "name", y.scan(Wa), T === "=" ? (S = y.scanUntil($t), y.scan($t), y.scanUntil(m)) : T === "{" ? (S = y.scanUntil(j), y.scan($a), y.scanUntil(m), T = "&") : S = y.scanUntil(m), !y.scan(m))
2043
+ throw new Error("Unclosed tag at " + y.pos);
2044
+ if (T == ">" ? Y = [T, S, w, y.pos, l, d, t] : Y = [T, S, w, y.pos], d++, a.push(Y), T === "#" || T === "^")
2045
+ s.push(Y);
2046
+ else if (T === "/") {
2047
+ if (z = s.pop(), !z)
2048
+ throw new Error('Unopened section "' + S + '" at ' + w);
2049
+ if (z[1] !== S)
2050
+ throw new Error('Unclosed section "' + z[1] + '" at ' + w);
2051
2051
  } else
2052
- R === "name" || R === "{" || R === "&" ? c = !0 : R === "=" && E(k);
2052
+ T === "name" || T === "{" || T === "&" ? c = !0 : T === "=" && k(S);
2053
2053
  }
2054
- if (f(), N = s.pop(), N)
2055
- throw new Error('Unclosed section "' + N[1] + '" at ' + x.pos);
2056
- return Qa(Ua(a));
2054
+ if (L(), z = s.pop(), z)
2055
+ throw new Error('Unclosed section "' + z[1] + '" at ' + y.pos);
2056
+ return qa(Ha(a));
2057
2057
  }
2058
- function Ua(i) {
2058
+ function Ha(i) {
2059
2059
  for (var e = [], t, s, a = 0, r = i.length; a < r; ++a)
2060
2060
  t = i[a], t && (t[0] === "text" && s && s[0] === "text" ? (s[1] += t[1], s[3] = t[3]) : (e.push(t), s = t));
2061
2061
  return e;
2062
2062
  }
2063
- function Qa(i) {
2063
+ function qa(i) {
2064
2064
  for (var e = [], t = e, s = [], a, r, n = 0, c = i.length; n < c; ++n)
2065
2065
  switch (a = i[n], a[0]) {
2066
2066
  case "#":
@@ -2075,20 +2075,20 @@ function Qa(i) {
2075
2075
  }
2076
2076
  return e;
2077
2077
  }
2078
- function Fe(i) {
2078
+ function Re(i) {
2079
2079
  this.string = i, this.tail = i, this.pos = 0;
2080
2080
  }
2081
- Fe.prototype.eos = function() {
2081
+ Re.prototype.eos = function() {
2082
2082
  return this.tail === "";
2083
2083
  };
2084
- Fe.prototype.scan = function(i) {
2084
+ Re.prototype.scan = function(i) {
2085
2085
  var e = this.tail.match(i);
2086
2086
  if (!e || e.index !== 0)
2087
2087
  return "";
2088
2088
  var t = e[0];
2089
2089
  return this.tail = this.tail.substring(t.length), this.pos += t.length, t;
2090
2090
  };
2091
- Fe.prototype.scanUntil = function(i) {
2091
+ Re.prototype.scanUntil = function(i) {
2092
2092
  var e = this.tail.search(i), t;
2093
2093
  switch (e) {
2094
2094
  case -1:
@@ -2102,13 +2102,13 @@ Fe.prototype.scanUntil = function(i) {
2102
2102
  }
2103
2103
  return this.pos += t.length, t;
2104
2104
  };
2105
- function Se(i, e) {
2105
+ function we(i, e) {
2106
2106
  this.view = i, this.cache = { ".": this.view }, this.parent = e;
2107
2107
  }
2108
- Se.prototype.push = function(i) {
2109
- return new Se(i, this);
2108
+ we.prototype.push = function(i) {
2109
+ return new we(i, this);
2110
2110
  };
2111
- Se.prototype.lookup = function(i) {
2111
+ we.prototype.lookup = function(i) {
2112
2112
  var e = this.cache, t;
2113
2113
  if (e.hasOwnProperty(i))
2114
2114
  t = e[i];
@@ -2116,9 +2116,9 @@ Se.prototype.lookup = function(i) {
2116
2116
  for (var s = this, a, r, n, c = !1; s; ) {
2117
2117
  if (i.indexOf(".") > 0)
2118
2118
  for (a = s.view, r = i.split("."), n = 0; a != null && n < r.length; )
2119
- n === r.length - 1 && (c = Wt(a, r[n]) || Aa(a, r[n])), a = a[r[n++]];
2119
+ n === r.length - 1 && (c = Yt(a, r[n]) || Na(a, r[n])), a = a[r[n++]];
2120
2120
  else
2121
- a = s.view[i], c = Wt(s.view, i);
2121
+ a = s.view[i], c = Yt(s.view, i);
2122
2122
  if (c) {
2123
2123
  t = a;
2124
2124
  break;
@@ -2129,7 +2129,7 @@ Se.prototype.lookup = function(i) {
2129
2129
  }
2130
2130
  return ht(t) && (t = t.call(this.view)), t;
2131
2131
  };
2132
- function z() {
2132
+ function U() {
2133
2133
  this.templateCache = {
2134
2134
  _cache: {},
2135
2135
  set: function(i, e) {
@@ -2143,30 +2143,30 @@ function z() {
2143
2143
  }
2144
2144
  };
2145
2145
  }
2146
- z.prototype.clearCache = function() {
2146
+ U.prototype.clearCache = function() {
2147
2147
  typeof this.templateCache < "u" && this.templateCache.clear();
2148
2148
  };
2149
- z.prototype.parse = function(i, e) {
2150
- var t = this.templateCache, s = i + ":" + (e || M.tags).join(":"), a = typeof t < "u", r = a ? t.get(s) : void 0;
2151
- return r == null && (r = Va(i, e), a && t.set(s, r)), r;
2149
+ U.prototype.parse = function(i, e) {
2150
+ var t = this.templateCache, s = i + ":" + (e || D.tags).join(":"), a = typeof t < "u", r = a ? t.get(s) : void 0;
2151
+ return r == null && (r = Ba(i, e), a && t.set(s, r)), r;
2152
2152
  };
2153
- z.prototype.render = function(i, e, t, s) {
2154
- var a = this.getConfigTags(s), r = this.parse(i, a), n = e instanceof Se ? e : new Se(e, void 0);
2153
+ U.prototype.render = function(i, e, t, s) {
2154
+ var a = this.getConfigTags(s), r = this.parse(i, a), n = e instanceof we ? e : new we(e, void 0);
2155
2155
  return this.renderTokens(r, n, t, i, s);
2156
2156
  };
2157
- z.prototype.renderTokens = function(i, e, t, s, a) {
2158
- for (var r = "", n, c, l, d = 0, f = i.length; d < f; ++d)
2157
+ U.prototype.renderTokens = function(i, e, t, s, a) {
2158
+ for (var r = "", n, c, l, d = 0, L = i.length; d < L; ++d)
2159
2159
  l = void 0, n = i[d], c = n[0], c === "#" ? l = this.renderSection(n, e, t, s, a) : c === "^" ? l = this.renderInverted(n, e, t, s, a) : c === ">" ? l = this.renderPartial(n, e, t, a) : c === "&" ? l = this.unescapedValue(n, e) : c === "name" ? l = this.escapedValue(n, e, a) : c === "text" && (l = this.rawValue(n)), l !== void 0 && (r += l);
2160
2160
  return r;
2161
2161
  };
2162
- z.prototype.renderSection = function(i, e, t, s, a) {
2162
+ U.prototype.renderSection = function(i, e, t, s, a) {
2163
2163
  var r = this, n = "", c = e.lookup(i[1]);
2164
2164
  function l(g) {
2165
2165
  return r.render(g, e, t, a);
2166
2166
  }
2167
2167
  if (c) {
2168
2168
  if (Ce(c))
2169
- for (var d = 0, f = c.length; d < f; ++d)
2169
+ for (var d = 0, L = c.length; d < L; ++d)
2170
2170
  n += this.renderTokens(i[4], e.push(c[d]), t, s, a);
2171
2171
  else if (typeof c == "object" || typeof c == "string" || typeof c == "number")
2172
2172
  n += this.renderTokens(i[4], e.push(c), t, s, a);
@@ -2179,50 +2179,50 @@ z.prototype.renderSection = function(i, e, t, s, a) {
2179
2179
  return n;
2180
2180
  }
2181
2181
  };
2182
- z.prototype.renderInverted = function(i, e, t, s, a) {
2182
+ U.prototype.renderInverted = function(i, e, t, s, a) {
2183
2183
  var r = e.lookup(i[1]);
2184
2184
  if (!r || Ce(r) && r.length === 0)
2185
2185
  return this.renderTokens(i[4], e, t, s, a);
2186
2186
  };
2187
- z.prototype.indentPartial = function(i, e, t) {
2187
+ U.prototype.indentPartial = function(i, e, t) {
2188
2188
  for (var s = e.replace(/[^ \t]/g, ""), a = i.split(`
2189
2189
  `), r = 0; r < a.length; r++)
2190
2190
  a[r].length && (r > 0 || !t) && (a[r] = s + a[r]);
2191
2191
  return a.join(`
2192
2192
  `);
2193
2193
  };
2194
- z.prototype.renderPartial = function(i, e, t, s) {
2194
+ U.prototype.renderPartial = function(i, e, t, s) {
2195
2195
  if (t) {
2196
2196
  var a = this.getConfigTags(s), r = ht(t) ? t(i[1]) : t[i[1]];
2197
2197
  if (r != null) {
2198
2198
  var n = i[6], c = i[5], l = i[4], d = r;
2199
2199
  c == 0 && l && (d = this.indentPartial(r, l, n));
2200
- var f = this.parse(d, a);
2201
- return this.renderTokens(f, e, t, d, s);
2200
+ var L = this.parse(d, a);
2201
+ return this.renderTokens(L, e, t, d, s);
2202
2202
  }
2203
2203
  }
2204
2204
  };
2205
- z.prototype.unescapedValue = function(i, e) {
2205
+ U.prototype.unescapedValue = function(i, e) {
2206
2206
  var t = e.lookup(i[1]);
2207
2207
  if (t != null)
2208
2208
  return t;
2209
2209
  };
2210
- z.prototype.escapedValue = function(i, e, t) {
2211
- var s = this.getConfigEscape(t) || M.escape, a = e.lookup(i[1]);
2210
+ U.prototype.escapedValue = function(i, e, t) {
2211
+ var s = this.getConfigEscape(t) || D.escape, a = e.lookup(i[1]);
2212
2212
  if (a != null)
2213
- return typeof a == "number" && s === M.escape ? String(a) : s(a);
2213
+ return typeof a == "number" && s === D.escape ? String(a) : s(a);
2214
2214
  };
2215
- z.prototype.rawValue = function(i) {
2215
+ U.prototype.rawValue = function(i) {
2216
2216
  return i[1];
2217
2217
  };
2218
- z.prototype.getConfigTags = function(i) {
2218
+ U.prototype.getConfigTags = function(i) {
2219
2219
  return Ce(i) ? i : i && typeof i == "object" ? i.tags : void 0;
2220
2220
  };
2221
- z.prototype.getConfigEscape = function(i) {
2221
+ U.prototype.getConfigEscape = function(i) {
2222
2222
  if (i && typeof i == "object" && !Ce(i))
2223
2223
  return i.escape;
2224
2224
  };
2225
- var M = {
2225
+ var D = {
2226
2226
  name: "mustache.js",
2227
2227
  version: "4.2.0",
2228
2228
  tags: ["{{", "}}"],
@@ -2239,31 +2239,31 @@ var M = {
2239
2239
  * the cache by setting it to the literal `undefined`.
2240
2240
  */
2241
2241
  set templateCache(i) {
2242
- Ae.templateCache = i;
2242
+ Ne.templateCache = i;
2243
2243
  },
2244
2244
  /**
2245
2245
  * Gets the default or overridden caching object from the default writer.
2246
2246
  */
2247
2247
  get templateCache() {
2248
- return Ae.templateCache;
2248
+ return Ne.templateCache;
2249
2249
  }
2250
- }, Ae = new z();
2251
- M.clearCache = function() {
2252
- return Ae.clearCache();
2250
+ }, Ne = new U();
2251
+ D.clearCache = function() {
2252
+ return Ne.clearCache();
2253
2253
  };
2254
- M.parse = function(i, e) {
2255
- return Ae.parse(i, e);
2254
+ D.parse = function(i, e) {
2255
+ return Ne.parse(i, e);
2256
2256
  };
2257
- M.render = function(i, e, t, s) {
2257
+ D.render = function(i, e, t, s) {
2258
2258
  if (typeof i != "string")
2259
- throw new TypeError('Invalid template! Template should be a "string" but "' + Ma(i) + '" was given as the first argument for mustache#render(template, view, partials)');
2260
- return Ae.render(i, e, t, s);
2259
+ throw new TypeError('Invalid template! Template should be a "string" but "' + Da(i) + '" was given as the first argument for mustache#render(template, view, partials)');
2260
+ return Ne.render(i, e, t, s);
2261
2261
  };
2262
- M.escape = qa;
2263
- M.Scanner = Fe;
2264
- M.Context = Se;
2265
- M.Writer = z;
2266
- const Ka = {
2262
+ D.escape = Qa;
2263
+ D.Scanner = Re;
2264
+ D.Context = we;
2265
+ D.Writer = U;
2266
+ const Va = {
2267
2267
  main: {
2268
2268
  template: `
2269
2269
  {{#shouldShowAnswer}}
@@ -2282,6 +2282,7 @@ const Ka = {
2282
2282
  <div class="searchstax-answer-loading"></div>
2283
2283
  {{/answerLoading}}
2284
2284
  </div>
2285
+ <div id="feedbackWidgetContainer"></div>
2285
2286
  </div>
2286
2287
 
2287
2288
 
@@ -2294,7 +2295,7 @@ const Ka = {
2294
2295
  {{/shouldShowAnswer}}
2295
2296
  `
2296
2297
  }
2297
- }, za = {
2298
+ }, Ua = {
2298
2299
  mainTemplate: {
2299
2300
  template: `
2300
2301
  {{#hasExternalPromotions}}
@@ -2328,7 +2329,7 @@ const Ka = {
2328
2329
  </div>
2329
2330
  `
2330
2331
  }
2331
- }, Ja = {
2332
+ }, _a = {
2332
2333
  mainTemplateDesktop: {
2333
2334
  template: `
2334
2335
  {{#hasResultsOrExternalPromotions}}
@@ -2431,7 +2432,7 @@ const Ka = {
2431
2432
  `,
2432
2433
  containerClass: "searchstax-facets-pill-facets"
2433
2434
  }
2434
- }, Ya = {
2435
+ }, Ga = {
2435
2436
  mainTemplate: {
2436
2437
  template: `
2437
2438
  {{#results.length}}
@@ -2459,7 +2460,7 @@ const Ka = {
2459
2460
  `,
2460
2461
  loadMoreButtonClass: "searchstax-pagination-load-more"
2461
2462
  }
2462
- }, Ga = {
2463
+ }, Ka = {
2463
2464
  main: {
2464
2465
  template: `
2465
2466
  {{#hasRelatedSearches}}
@@ -2483,7 +2484,7 @@ const Ka = {
2483
2484
  `,
2484
2485
  relatedSearchContainerClass: "searchstax-related-search-item"
2485
2486
  }
2486
- }, Xa = {
2487
+ }, Za = {
2487
2488
  main: {
2488
2489
  template: `
2489
2490
  {{#searchExecuted}}
@@ -2502,7 +2503,7 @@ const Ka = {
2502
2503
  `,
2503
2504
  originalQueryClass: "searchstax-feedback-original-query"
2504
2505
  }
2505
- }, Za = {
2506
+ }, Xa = {
2506
2507
  mainTemplate: {
2507
2508
  template: `
2508
2509
  <div class="searchstax-search-input-container" data-test-id="searchstax-search-input-container">
@@ -2618,15 +2619,108 @@ const Ka = {
2618
2619
  `,
2619
2620
  selectId: "searchstax-search-order-select"
2620
2621
  }
2622
+ }, as = {
2623
+ mainTemplate: {
2624
+ template: `
2625
+ <div class="sf-widget-container">
2626
+ <div id="sf-widget" class="sf-main">
2627
+ <a href="#" id="searchstax-open-feedback" class="sf-open-feedback" tabindex="0" aria-label="Open Search Feedback">[ - ] Search Feedback</a>
2628
+ <div class="sf-modal-content {{#feedbackOpen}}sf-open{{/feedbackOpen}}{{^feedbackOpen}}sf-close{{/feedbackOpen}}">
2629
+ <div class="sf-modal-header">
2630
+ <h2 class="sf-title">Search Feedback</h2>
2631
+ <button class="sf-modal-close" aria-label="Close Search Feedback">
2632
+ <span>
2633
+ <img alt="" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJDYXBhXzEiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDM4Ni42NjcgMzg2LjY2NyIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCAzODYuNjY3IDM4Ni42NjciIHdpZHRoPSI1MTIiIGNsYXNzPSIiPjxnPjxwYXRoIGQ9Im0zODYuNjY3IDQ1LjU2NC00NS41NjQtNDUuNTY0LTE0Ny43NyAxNDcuNzY5LTE0Ny43NjktMTQ3Ljc2OS00NS41NjQgNDUuNTY0IDE0Ny43NjkgMTQ3Ljc2OS0xNDcuNzY5IDE0Ny43NyA0NS41NjQgNDUuNTY0IDE0Ny43NjktMTQ3Ljc2OSAxNDcuNzY5IDE0Ny43NjkgNDUuNTY0LTQ1LjU2NC0xNDcuNzY4LTE0Ny43N3oiIGRhdGEtb3JpZ2luYWw9IiMwMDAwMDAiIGNsYXNzPSJhY3RpdmUtcGF0aCIgc3R5bGU9ImZpbGw6I2Q2MzIwMiIgZGF0YS1vbGRfY29sb3I9IiMwMDAwMDAiPjwvcGF0aD48L2c+IDwvc3ZnPg==" />
2634
+ </span>
2635
+ </button>
2636
+ </div>
2637
+ <form id="sf-rating-form">
2638
+ <div class="sf-modal-body">
2639
+ <div class="form-group">
2640
+ <fieldset class="form-group">
2641
+ <legend>How would you rate your search experience?</legend>
2642
+ <div class="sf-rate-experience">
2643
+ {{#ratings}}
2644
+ <div class="sf-custom-control">
2645
+ <input type="radio" id="sf-rate-{{index}}" tabindex="0" name="sf-rating" class="sf-custom-control-input" value="{{index}}" {{#isSelected}}checked{{/isSelected}}>
2646
+ <label for="sf-rate-{{index}}" class="sf-custom-control-label">{{index}}</label>
2647
+ </div>
2648
+ {{/ratings}}
2649
+ </div>
2650
+ </fieldset>
2651
+ <div class="sf-rate">
2652
+ <p><small>0 = Very Dissatisfied</small></p>
2653
+ <p><small>10 = Very Satisfied</small></p>
2654
+ </div>
2655
+ <div class="sf-error-rating alert alert-danger {{#errors.rating}}sf-show{{/errors.rating}}{{^errors.rating}}sf-hide{{/errors.rating}}">
2656
+ Please Rate your experience.
2657
+ </div>
2658
+ </div>
2659
+ <div class="sf-comments sf-form-group">
2660
+ <label for="sf-comments">Comments <small> (<span class="searchstax-characters-remaining-container">2000</span> characters remaining)</small></label>
2661
+ <textarea maxlength="{{maxLength}}" class="sf-form-control" id="sf-comments" placeholder="Enter any comments relating to your search experience">{{feedbackTextArea}}</textarea>
2662
+ </div>
2663
+ <div class="sf-email sf-form-group">
2664
+ <label for="sf-email">Email</label>
2665
+ <input class="sf-form-control" type="email" id="sf-email" placeholder="Enter an email address if you want a response" value="{{emailInput}}">
2666
+ <div class="sf-error-email alert alert-danger {{#errors.email}}sf-show{{/errors.email}}{{^errors.email}}sf-hide{{/errors.email}}">
2667
+ Please enter a valid email id
2668
+ </div>
2669
+ </div>
2670
+ </div>
2671
+ <div class="sf-modal-footer">
2672
+ <a href="http://searchstax.com/" target="_blank" class="left">
2673
+ <img alt="Searchstax logo" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMzEuNSAzOS44IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMzEuNSAzOS44OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6I2Q2MzIwMjt9Cgkuc3Qxe2ZpbGw6IzMzNDc1QTt9Cgkuc3Qye2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAgICA7fQo8L3N0eWxlPgo8Zz4KCTxnIGlkPSJsb2dvX3g1Rl9jb2xvcl8xXyI+CgkJPGc+CgkJCTxnPgoJCQkJPGcgaWQ9IlhNTElEXzhfIj4KCQkJCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMC4zLDMxLjhMMS44LDMxYzAuMS0wLjEsMC4zLTAuMSwwLjUsMGw3LjQsNC4yYzAuMSwwLjEsMC4zLDAuMSwwLjUsMGw3LjMtNC4yYzAuMi0wLjEsMC4zLTAuMSwwLjUsMAoJCQkJCQlsMS40LDAuOWMwLjMsMC4yLDAuMywwLjYsMCwwLjhsLTkuMiw1LjRjLTAuMSwwLjEtMC4zLDAuMS0wLjUsMGwtOS40LTUuNEMwLDMyLjUsMCwzMiwwLjMsMzEuOHoiLz4KCQkJCTwvZz4KCQkJCTxnIGlkPSJYTUxJRF83XyI+CgkJCQkJPHBhdGggY2xhc3M9InN0MCIgZD0iTTAuMywyNi41bDEuNi0wLjljMC4xLTAuMSwwLjMtMC4xLDAuNSwwbDcuMiw0LjJjMC4xLDAuMSwwLjMsMC4xLDAuNSwwbDcuMy00LjJjMC4xLTAuMSwwLjItMC4yLDAuMi0wLjQKCQkJCQkJVjI0YzAtMC40LTAuNC0wLjYtMC43LTAuNGwtNi43LDMuOWMtMC4xLDAuMS0wLjMsMC4xLTAuNSwwTDAuMiwyMmMtMC4zLTAuMi0wLjMtMC42LDAtMC44bDkuMy01LjVjMC4xLTAuMSwwLjMtMC4xLDAuNSwwCgkJCQkJCWw1LjMsM2MwLjMsMC4yLDAuMywwLjYsMCwwLjhsLTEuNCwwLjljLTAuMiwwLjEtMC4zLDAuMS0wLjUsMGwtMy40LTJjLTAuMi0wLjEtMC4zLTAuMS0wLjUsMGwtNC40LDIuN2MtMC4zLDAuMi0wLjMsMC42LDAsMC44CgkJCQkJCWw0LjQsMi42YzAuMSwwLjEsMC4zLDAuMSwwLjUsMGw3LjMtNC4yYzAuMS0wLjEsMC4zLTAuMSwwLjUsMGwyLDEuMWMwLjIsMC4xLDAuMiwwLjIsMC4yLDAuNHY0LjdjMCwwLjItMC4xLDAuMy0wLjIsMC40CgkJCQkJCWwtOS42LDUuN2MtMC4xLDAuMS0wLjMsMC4xLTAuNSwwbC05LjQtNS41Qy0wLjEsMjcuMi0wLjEsMjYuNywwLjMsMjYuNXoiLz4KCQkJCTwvZz4KCQkJPC9nPgoJCQk8ZyBpZD0iRElOX3g1Rl9OZXh0X3g1Rl9MVF94NUZfUHJvX3g1Rl9MaWdodF94MEFfXzFfIj4KCQkJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yNC45LDMxLjNjLTAuMS0wLjEtMC4xLTAuMiwwLTAuMmwwLjQtMC41YzAuMS0wLjEsMC4yLTAuMSwwLjIsMGMwLjcsMC42LDEuOSwxLjEsMy4yLDEuMQoJCQkJCWMxLjgsMCwyLjgtMC45LDIuOC0yLjJjMC0xLjEtMC42LTEuOS0yLjYtMi4xbC0wLjUtMC4xYy0yLjEtMC4zLTMuMi0xLjMtMy4yLTIuOWMwLTEuOSwxLjQtMy4xLDMuNS0zLjFjMS4yLDAsMi40LDAuNCwzLjEsMC45CgkJCQkJYzAuMSwwLDAuMSwwLjEsMCwwLjJsLTAuMywwLjVjLTAuMSwwLjEtMC4xLDAuMS0wLjIsMGMtMC45LTAuNS0xLjctMC44LTIuNy0wLjhjLTEuNiwwLTIuNSwwLjktMi41LDIuMWMwLDEuMSwwLjcsMS44LDIuNiwyLjEKCQkJCQlsMC41LDAuMWMyLjIsMC4zLDMuMiwxLjMsMy4yLDNjMCwxLjktMS4zLDMuMi0zLjksMy4yQzI3LjEsMzIuNiwyNS43LDMyLDI0LjksMzEuM3oiLz4KCQkJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zNi42LDIxLjZjMC0wLjEsMC4xLTAuMiwwLjItMC4yaDYuM2MwLjEsMCwwLjIsMC4xLDAuMiwwLjJ2MC42YzAsMC4xLTAuMSwwLjItMC4yLDAuMmgtNQoJCQkJCWMtMC4zLDAtMC42LDAuMy0wLjYsMC42djNjMCwwLjMsMC4zLDAuNiwwLjYsMC42aDQuMmMwLjEsMCwwLjIsMC4xLDAuMiwwLjJ2MC42YzAsMC4xLTAuMSwwLjItMC4yLDAuMmgtNC4yCgkJCQkJYy0wLjMsMC0wLjYsMC4zLTAuNiwwLjZWMzFjMCwwLjMsMC4zLDAuNiwwLjYsMC42aDVjMC4xLDAsMC4yLDAuMSwwLjIsMC4ydjAuNmMwLDAuMS0wLjEsMC4yLTAuMiwwLjJoLTYuMwoJCQkJCWMtMC4xLDAtMC4yLTAuMS0wLjItMC4yVjIxLjZ6Ii8+CgkJCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNTAuMSwyMS42YzAtMC4xLDAuMS0wLjIsMC4yLTAuMmgwLjZjMC4xLDAsMC4yLDAuMSwwLjIsMC4ybDMuOCwxMC43YzAsMC4xLDAsMC4yLTAuMSwwLjJoLTAuNwoJCQkJCWMtMC4xLDAtMC4yLDAtMC4yLTAuMkw1MywyOS45Yy0wLjEtMC4yLTAuMi0wLjMtMC40LTAuM2gtNC4xYy0wLjIsMC0wLjQsMC4xLTAuNCwwLjNsLTAuOSwyLjRjMCwwLjEtMC4xLDAuMi0wLjIsMC4yaC0wLjYKCQkJCQljLTAuMSwwLTAuMS0wLjEtMC4xLTAuMkw1MC4xLDIxLjZ6IE01MS45LDI4LjdjMC4zLDAsMC42LTAuMywwLjQtMC42TDUwLjUsMjNsMCwwbC0xLjgsNWMtMC4xLDAuMywwLjEsMC42LDAuNCwwLjZoMi44VjI4Ljd6IgoJCQkJCS8+CgkJCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNjUsMzIuNGMtMC4xLDAtMC4xLDAtMC4yLTAuMWwtMi4zLTQuOGgtMC4ySDYwYy0wLjMsMC0wLjYsMC4zLTAuNiwwLjZ2NC4yYzAsMC4xLTAuMSwwLjItMC4yLDAuMmgtMC42CgkJCQkJYy0wLjEsMC0wLjItMC4xLTAuMi0wLjJWMjEuNmMwLTAuMSwwLjEtMC4yLDAuMi0wLjJoMy43YzIuMSwwLDMuNCwxLjIsMy40LDNjMCwxLjMtMC42LDIuMy0xLjgsMi44Yy0wLjMsMC4xLTAuNCwwLjQtMC4yLDAuNgoJCQkJCWwyLjEsNC40YzAuMSwwLjEsMCwwLjItMC4xLDAuMkg2NUw2NSwzMi40eiBNNjQuOCwyNC41YzAtMS40LTAuOS0yLjItMi40LTIuMkg2MGMtMC4zLDAtMC42LDAuMy0wLjYsMC42djMuMgoJCQkJCWMwLDAuMywwLjMsMC42LDAuNiwwLjZoMi4zQzYzLjksMjYuNiw2NC44LDI1LjksNjQuOCwyNC41eiIvPgoJCQkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTY5LjYsMjYuOWMwLTAuOCwwLTEuNSwwLjEtMS45YzAuMi0yLjMsMi4zLTQuMSw0LjYtMy42YzEuMSwwLjIsMS45LDAuOSwyLjQsMS45YzAsMC4xLDAsMC4yLDAsMC4yCgkJCQkJbC0wLjUsMC4zYy0wLjEsMC0wLjIsMC0wLjItMC4xYy0wLjUtMC45LTEuMy0xLjYtMi41LTEuNmMtMS4zLDAtMi4yLDAuNi0yLjYsMS44Yy0wLjEsMC40LTAuMiwxLjEtMC4yLDNjMCwxLjgsMC4xLDIuNSwwLjIsMwoJCQkJCWMwLjQsMS4yLDEuMiwxLjgsMi42LDEuOGMxLjIsMCwyLTAuNiwyLjUtMS42YzAtMC4xLDAuMS0wLjEsMC4yLTAuMWwwLjUsMC4zYzAuMSwwLDAuMSwwLjEsMCwwLjJjLTAuNiwxLjMtMS44LDItMy4zLDIKCQkJCQljLTEuNywwLTIuOS0wLjgtMy41LTIuNUM2OS43LDI5LjYsNjkuNiwyOC44LDY5LjYsMjYuOXoiLz4KCQkJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik04MC42LDIxLjZjMC0wLjEsMC4xLTAuMiwwLjItMC4yaDAuNmMwLjEsMCwwLjIsMC4xLDAuMiwwLjJ2NC4yYzAsMC4zLDAuMywwLjYsMC42LDAuNmg0LjUKCQkJCQljMC4zLDAsMC42LTAuMywwLjYtMC42di00LjJjMC0wLjEsMC4xLTAuMiwwLjItMC4yaDAuNmMwLjEsMCwwLjIsMC4xLDAuMiwwLjJ2MTAuN2MwLDAuMS0wLjEsMC4yLTAuMiwwLjJoLTAuNgoJCQkJCWMtMC4xLDAtMC4yLTAuMS0wLjItMC4ydi00LjRjMC0wLjMtMC4zLTAuNi0wLjYtMC42aC00LjVjLTAuMywwLTAuNiwwLjMtMC42LDAuNnY0LjRjMCwwLjEtMC4xLDAuMi0wLjIsMC4yaC0wLjYKCQkJCQljLTAuMSwwLTAuMi0wLjEtMC4yLTAuMlYyMS42TDgwLjYsMjEuNnoiLz4KCQkJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik05Mi4zLDMxLjNjLTAuMS0wLjEtMC4xLTAuMiwwLTAuMmwwLjQtMC41YzAuMS0wLjEsMC4yLTAuMSwwLjIsMGMwLjcsMC42LDEuOSwxLjEsMy4yLDEuMQoJCQkJCWMxLjgsMCwyLjgtMC45LDIuOC0yLjJjMC0xLjEtMC42LTEuOS0yLjYtMi4xbC0wLjUtMC4xYy0yLjEtMC4zLTMuMi0xLjMtMy4yLTIuOWMwLTEuOSwxLjQtMy4xLDMuNS0zLjFjMS4yLDAsMi40LDAuNCwzLjEsMC45CgkJCQkJYzAuMSwwLDAuMSwwLjEsMCwwLjJsLTAuMywwLjVjLTAuMSwwLjEtMC4xLDAuMS0wLjIsMGMtMC45LTAuNS0xLjctMC44LTIuNy0wLjhjLTEuNiwwLTIuNSwwLjktMi41LDIuMWMwLDEuMSwwLjcsMS44LDIuNiwyLjEKCQkJCQlsMC41LDAuMWMyLjIsMC4zLDMuMiwxLjMsMy4yLDNjMCwxLjktMS4zLDMuMi0zLjksMy4yQzk0LjUsMzIuNiw5MywzMiw5Mi4zLDMxLjN6Ii8+CgkJCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTA2LjIsMzIuNGMtMC4xLDAtMC4yLTAuMS0wLjItMC4ydi05LjRjMC0wLjMtMC4zLTAuNi0wLjYtMC42aC0yLjdjLTAuMSwwLTAuMi0wLjEtMC4yLTAuMnYtMC42CgkJCQkJYzAtMC4xLDAuMS0wLjIsMC4yLTAuMmg3LjRjMC4xLDAsMC4yLDAuMSwwLjIsMC4yVjIyYzAsMC4xLTAuMSwwLjItMC4yLDAuMmgtMi43Yy0wLjMsMC0wLjYsMC4zLTAuNiwwLjZ2OS40CgkJCQkJYzAsMC4xLTAuMSwwLjItMC4yLDAuMkgxMDYuMkwxMDYuMiwzMi40eiIvPgoJCQkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTExNS41LDIxLjZjMC0wLjEsMC4xLTAuMiwwLjItMC4yaDAuNmMwLjEsMCwwLjIsMC4xLDAuMiwwLjJsMy44LDEwLjdjMCwwLjEsMCwwLjItMC4xLDAuMmgtMC42CgkJCQkJYy0wLjEsMC0wLjIsMC0wLjItMC4ybC0wLjktMi40Yy0wLjEtMC4yLTAuMi0wLjMtMC40LTAuM0gxMTRjLTAuMiwwLTAuNCwwLjEtMC40LDAuM2wtMC45LDIuNGMwLDAuMS0wLjEsMC4yLTAuMiwwLjJoLTAuNgoJCQkJCWMtMC4xLDAtMC4xLTAuMS0wLjEtMC4yTDExNS41LDIxLjZ6IE0xMTcuNCwyOC43YzAuMywwLDAuNi0wLjMsMC40LTAuNkwxMTYsMjNsMCwwbC0xLjgsNS4xYy0wLjEsMC4zLDAuMSwwLjYsMC40LDAuNkgxMTcuNHoiCgkJCQkJLz4KCQkJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xMjkuOSwzMi40Yy0wLjEsMC0wLjIsMC0wLjItMC4xbC0yLjgtNC43bDAsMGwtMi44LDQuN2MwLDAuMS0wLjEsMC4xLTAuMiwwLjFoLTAuNwoJCQkJCWMtMC4xLDAtMC4xLTAuMS0wLjEtMC4ybDMuMi01LjNjMC4xLTAuMiwwLjEtMC4zLDAtMC41bC0yLjktNC44Yy0wLjEtMC4xLDAtMC4yLDAuMS0wLjJoMC43YzAuMSwwLDAuMiwwLDAuMiwwLjFsMi41LDQuMmwwLDAKCQkJCQlsMi41LTQuMmMwLjEtMC4xLDAuMS0wLjEsMC4yLTAuMWgwLjdjMC4xLDAsMC4xLDAuMSwwLjEsMC4ybC0yLjksNC44Yy0wLjEsMC4yLTAuMSwwLjMsMCwwLjVsMy4yLDUuM2MwLDAuMSwwLDAuMi0wLjEsMC4yCgkJCQkJSDEyOS45TDEyOS45LDMyLjR6Ii8+CgkJCTwvZz4KCQk8L2c+Cgk8L2c+Cgk8ZyBjbGFzcz0ic3QyIj4KCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMS40LDIuMUMyLDIsMi42LDEuOSwzLjUsMS45YzEsMCwxLjgsMC4yLDIuMywwLjdjMC40LDAuNCwwLjcsMSwwLjcsMS43QzYuNCw1LDYuMiw1LjYsNS44LDYKCQkJQzUuMyw2LjYsNC40LDYuOSwzLjMsNi45Yy0wLjMsMC0wLjYsMC0wLjgtMC4xVjEwaC0xVjIuMXogTTIuNSw2QzIuNyw2LDMsNiwzLjQsNmMxLjMsMCwyLTAuNiwyLTEuN2MwLTEuMS0wLjgtMS42LTEuOS0xLjYKCQkJYy0wLjUsMC0wLjgsMC0xLDAuMVY2eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xMi44LDcuMWMwLDIuMS0xLjUsMy4xLTIuOSwzLjFjLTEuNiwwLTIuOC0xLjItMi44LTNjMC0xLjksMS4zLTMuMSwyLjktMy4xQzExLjYsNC4xLDEyLjgsNS4zLDEyLjgsNy4xegoJCQkgTTguMSw3LjJjMCwxLjMsMC43LDIuMiwxLjgsMi4yYzEsMCwxLjgtMC45LDEuOC0yLjNjMC0xLTAuNS0yLjItMS43LTIuMkM4LjcsNC45LDguMSw2LDguMSw3LjJ6Ii8+CgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTE0LjQsNC4ybDAuOCwzYzAuMiwwLjYsMC4zLDEuMiwwLjQsMS44aDBjMC4xLTAuNiwwLjMtMS4yLDAuNS0xLjhsMC45LTNIMThsMC45LDIuOQoJCQljMC4yLDAuNywwLjQsMS4zLDAuNSwxLjloMGMwLjEtMC42LDAuMy0xLjIsMC40LTEuOWwwLjgtMi45aDFMMTkuOSwxMGgtMWwtMC45LTIuOGMtMC4yLTAuNi0wLjQtMS4yLTAuNS0xLjloMAoJCQljLTAuMSwwLjctMC4zLDEuMy0wLjUsMS45TDE2LjEsMTBoLTFsLTEuOC01LjhIMTQuNHoiLz4KCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMjMuMyw3LjNjMCwxLjQsMC45LDIsMiwyYzAuOCwwLDEuMi0wLjEsMS42LTAuM2wwLjIsMC44Yy0wLjQsMC4yLTEsMC40LTEuOSwwLjRjLTEuOCwwLTIuOS0xLjItMi45LTIuOQoJCQlzMS0zLjEsMi43LTMuMWMxLjksMCwyLjQsMS43LDIuNCwyLjdjMCwwLjIsMCwwLjQsMCwwLjVIMjMuM3ogTTI2LjQsNi42YzAtMC43LTAuMy0xLjctMS41LTEuN2MtMS4xLDAtMS41LDEtMS42LDEuN0gyNi40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yOC43LDZjMC0wLjcsMC0xLjMsMC0xLjhoMC45bDAsMS4xaDBjMC4zLTAuOCwwLjktMS4zLDEuNi0xLjNjMC4xLDAsMC4yLDAsMC4zLDB2MWMtMC4xLDAtMC4yLDAtMC40LDAKCQkJYy0wLjcsMC0xLjMsMC42LTEuNCwxLjRjMCwwLjEsMCwwLjMsMCwwLjVWMTBoLTFWNnoiLz4KCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMzMuMSw3LjNjMCwxLjQsMC45LDIsMiwyYzAuOCwwLDEuMi0wLjEsMS42LTAuM2wwLjIsMC44Yy0wLjQsMC4yLTEsMC40LTEuOSwwLjRjLTEuOCwwLTIuOS0xLjItMi45LTIuOQoJCQlzMS0zLjEsMi43LTMuMWMxLjksMCwyLjQsMS43LDIuNCwyLjdjMCwwLjIsMCwwLjQsMCwwLjVIMzMuMXogTTM2LjIsNi42YzAtMC43LTAuMy0xLjctMS41LTEuN2MtMS4xLDAtMS41LDEtMS42LDEuN0gzNi4yeiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik00My42LDEuNXY3YzAsMC41LDAsMS4xLDAsMS41aC0wLjlsMC0xaDBjLTAuMywwLjYtMSwxLjEtMiwxLjFjLTEuNCwwLTIuNS0xLjItMi41LTNjMC0xLjksMS4yLTMuMSwyLjYtMy4xCgkJCWMwLjksMCwxLjUsMC40LDEuOCwwLjloMFYxLjVINDMuNnogTTQyLjUsNi42YzAtMC4xLDAtMC4zLDAtMC40Yy0wLjItMC43LTAuNy0xLjItMS41LTEuMmMtMS4xLDAtMS43LDEtMS43LDIuMgoJCQljMCwxLjIsMC42LDIuMSwxLjcsMi4xYzAuNywwLDEuNC0wLjUsMS41LTEuM2MwLTAuMSwwLTAuMywwLTAuNVY2LjZ6Ii8+CgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTQ3LjgsMTBjMC0wLjQsMC0xLDAtMS41di03aDF2My42aDBjMC40LTAuNiwxLTEuMSwyLTEuMWMxLjQsMCwyLjUsMS4yLDIuNCwzYzAsMi4xLTEuMywzLjEtMi42LDMuMQoJCQljLTAuOCwwLTEuNS0wLjMtMS45LTEuMWgwbDAsMUg0Ny44eiBNNDguOSw3LjdjMCwwLjEsMCwwLjMsMCwwLjRjMC4yLDAuNywwLjgsMS4yLDEuNiwxLjJjMS4xLDAsMS44LTAuOSwxLjgtMi4yCgkJCWMwLTEuMi0wLjYtMi4yLTEuNy0yLjJjLTAuNywwLTEuNCwwLjUtMS42LDEuM2MwLDAuMS0wLjEsMC4zLTAuMSwwLjRWNy43eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik01NSw0LjJsMS4zLDMuNGMwLjEsMC40LDAuMywwLjgsMC40LDEuMmgwYzAuMS0wLjMsMC4yLTAuOCwwLjQtMS4ybDEuMi0zLjRoMS4xbC0xLjYsNC4xYy0wLjgsMi0xLjMsMy0yLDMuNgoJCQljLTAuNSwwLjUtMSwwLjYtMS4zLDAuN2wtMC4zLTAuOWMwLjMtMC4xLDAuNi0wLjMsMC45LTAuNWMwLjMtMC4yLDAuNi0wLjYsMC45LTEuMkM1NiwxMCw1Niw5LjksNTYsOS45YzAtMC4xLDAtMC4xLTAuMS0wLjMKCQkJbC0yLjEtNS4zSDU1eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik02MC4zLDUuMmMwLTAuNCwwLjMtMC44LDAuNy0wLjhjMC40LDAsMC43LDAuMywwLjcsMC44YzAsMC40LTAuMywwLjctMC43LDAuN0M2MC42LDUuOSw2MC4zLDUuNiw2MC4zLDUuMnoKCQkJIE02MC4zLDkuNGMwLTAuNCwwLjMtMC44LDAuNy0wLjhjMC40LDAsMC43LDAuMywwLjcsMC44YzAsMC40LTAuMywwLjctMC43LDAuN0M2MC42LDEwLjIsNjAuMyw5LjksNjAuMyw5LjR6Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+Cg==" class="sf-foot-logo">
2674
+ </a>
2675
+ {{#submitted}}
2676
+ <span class="sf-btn sf-btn-sent sf-btn-success">&check; Sent</span>
2677
+ {{/submitted}}
2678
+ {{^submitted}}
2679
+ <button class="sf-btn sf-btn-primary js-send-feedback" type="button" tabindex="0">Send</button>
2680
+ {{/submitted}}
2681
+ </div>
2682
+ </form>
2683
+ </div>
2684
+ </div>
2685
+ <div class="sf-widget-container">
2686
+ `,
2687
+ openModalButtonClass: "sf-open-feedback",
2688
+ closeModalButtonClass: "sf-modal-close",
2689
+ submitButtonClass: "js-send-feedback",
2690
+ emailInputId: "sf-email",
2691
+ feedbackTextAreaId: "sf-comments",
2692
+ ratingInputclass: "sf-custom-control-input",
2693
+ charactersRemainingContainerclass: "searchstax-characters-remaining-container"
2694
+ },
2695
+ lightweightTemplate: {
2696
+ template: `
2697
+ <div class="searchstax-lightweight-widget-container">
2698
+ <div class="searchstax-lightweight-widget-thumbs-up {{#thumbsUpActive}}active{{/thumbsUpActive}}">
2699
+ <svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
2700
+ <path d="M4.85079 7.59996L7.83141 1C8.4243 1 8.9929 1.23178 9.41213 1.64436C9.83136 2.05694 10.0669 2.61651 10.0669 3.19999V6.1333H14.2845C14.5005 6.13089 14.7145 6.17474 14.9116 6.26179C15.1087 6.34885 15.2842 6.47704 15.426 6.63747C15.5677 6.79791 15.6723 6.98676 15.7326 7.19094C15.7928 7.39513 15.8072 7.60975 15.7748 7.81996L14.7465 14.4199C14.6926 14.7696 14.5121 15.0884 14.2382 15.3175C13.9643 15.5466 13.6156 15.6706 13.2562 15.6666H4.85079M4.85079 7.59996V15.6666M4.85079 7.59996H2.61531C2.22006 7.59996 1.84099 7.75448 1.5615 8.02953C1.28201 8.30458 1.125 8.67763 1.125 9.06661V14.1999C1.125 14.5889 1.28201 14.9619 1.5615 15.237C1.84099 15.512 2.22006 15.6666 2.61531 15.6666H4.85079" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2701
+ </svg>
2702
+ </div>
2703
+ <div class="searchstax-lightweight-widget-separator"></div>
2704
+ <div class="searchstax-lightweight-widget-thumbs-down {{#thumbsDownActive}}active{{/thumbsDownActive}}">
2705
+ <svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
2706
+ <path d="M12.1492 9.06801L9.16859 15.668C8.5757 15.668 8.0071 15.4362 7.58787 15.0236C7.16864 14.611 6.93311 14.0515 6.93311 13.468V10.5347H2.71552C2.4995 10.5371 2.28552 10.4932 2.08842 10.4062C1.89132 10.3191 1.71581 10.1909 1.57405 10.0305C1.43229 9.87006 1.32766 9.6812 1.26743 9.47702C1.2072 9.27284 1.19279 9.05822 1.22521 8.84801L2.25353 2.24806C2.30742 1.89833 2.48793 1.57955 2.76179 1.35046C3.03566 1.12136 3.38443 0.997398 3.74384 1.0014H12.1492M12.1492 9.06801V1.0014M12.1492 9.06801H14.3847C14.7799 9.06801 15.159 8.91349 15.4385 8.63844C15.718 8.36339 15.875 7.99034 15.875 7.60135V2.46805C15.875 2.07907 15.718 1.70602 15.4385 1.43097C15.159 1.15592 14.7799 1.0014 14.3847 1.0014H12.1492" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2707
+ </svg>
2708
+
2709
+ </div>
2710
+ </div>
2711
+ `,
2712
+ thumbsUpButtonClass: "searchstax-lightweight-widget-thumbs-up",
2713
+ thumbsDownButtonClass: "searchstax-lightweight-widget-thumbs-down"
2714
+ }
2621
2715
  };
2622
- class L {
2716
+ class x {
2623
2717
  }
2624
- h(L, "answer", Ka), h(L, "externalPromotions", za), h(L, "facets", Ja), h(L, "pagination", Ya), h(L, "relatedSearches", Ga), h(L, "searchFeedback", Xa), h(L, "searchInput", Za), h(L, "searchResults", es), h(L, "sorting", ts);
2625
- class as {
2718
+ h(x, "answer", Va), h(x, "externalPromotions", Ua), h(x, "facets", _a), h(x, "pagination", Ga), h(x, "relatedSearches", Ka), h(x, "searchFeedback", Za), h(x, "searchInput", Xa), h(x, "searchResults", es), h(x, "sorting", ts), h(x, "feedback", as);
2719
+ class ss {
2626
2720
  constructor(e) {
2627
2721
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "externalPromotionsContainerId"), h(this, "searchExternalPromotionsMainContainer", null);
2628
2722
  var t, s;
2629
- this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.externalPromotionsContainerId = ((s = (t = this.config.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : s.externalPromotionsContainerId) || L.externalPromotions.mainTemplate.externalPromotionsContainerId, typeof document < "u" && (this.searchExternalPromotionsMainContainer = document == null ? void 0 : document.getElementById(
2723
+ this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.externalPromotionsContainerId = ((s = (t = this.config.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : s.externalPromotionsContainerId) || x.externalPromotions.mainTemplate.externalPromotionsContainerId, typeof document < "u" && (this.searchExternalPromotionsMainContainer = document == null ? void 0 : document.getElementById(
2630
2724
  this.containerId
2631
2725
  )), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
2632
2726
  }
@@ -2646,12 +2740,12 @@ class as {
2646
2740
  var t, s, a, r;
2647
2741
  const n = typeof document < "u" ? document == null ? void 0 : document.getElementById(this.externalPromotionsContainerId) : null;
2648
2742
  if (n) {
2649
- const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.externalPromotion) == null ? void 0 : a.template) || ((r = L.externalPromotions.externalPromotion) == null ? void 0 : r.template);
2743
+ const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.externalPromotion) == null ? void 0 : a.template) || ((r = x.externalPromotions.externalPromotion) == null ? void 0 : r.template);
2650
2744
  if (typeof document < "u") {
2651
2745
  const l = document == null ? void 0 : document.createElement("div");
2652
2746
  l.classList.add("searchstax-external-promotion"), l.addEventListener("click", (d) => {
2653
2747
  this.trackClick(e, d);
2654
- }), l.innerHTML = M.render(c, e), n.appendChild(l);
2748
+ }), l.innerHTML = D.render(c, e), n.appendChild(l);
2655
2749
  }
2656
2750
  }
2657
2751
  }
@@ -2660,10 +2754,10 @@ class as {
2660
2754
  }
2661
2755
  renderMainTemplate(e) {
2662
2756
  var t, s, a, r;
2663
- const n = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.template) || ((r = L.externalPromotions.mainTemplate) == null ? void 0 : r.template);
2664
- if (this.dataLayer.renderingEngine === Q.mustache) {
2757
+ const n = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.template) || ((r = x.externalPromotions.mainTemplate) == null ? void 0 : r.template);
2758
+ if (this.dataLayer.renderingEngine === q.mustache) {
2665
2759
  this.searchExternalPromotionsMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
2666
- M.render(n, e);
2760
+ D.render(n, e);
2667
2761
  const c = typeof document < "u" ? document == null ? void 0 : document.getElementById(
2668
2762
  this.externalPromotionsContainerId
2669
2763
  ) : null;
@@ -2692,20 +2786,20 @@ class ie {
2692
2786
  }, t ?? 100);
2693
2787
  }
2694
2788
  }
2695
- class ss {
2789
+ class rs {
2696
2790
  constructor(e, t) {
2697
2791
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "routerHelper"), h(this, "cachedPhrase", ""), h(this, "isCached", !1), h(this, "overlayOpened", !1), h(this, "facetPaginationStep"), h(this, "facetPaginationStepMobile"), h(this, "searchFacetsMainContainer", null), h(this, "searchFacetsMobileContainer", null), h(this, "searchFacetsDesktopContainer", null), h(this, "facetLimits", {}), h(this, "facetLimitsMobile", {}), h(this, "deactivatedFacets", {}), h(this, "cachedData", null), h(this, "cacheFacets"), h(this, "onFacetSelect", (s, a, r, n, c) => {
2698
2792
  if (s.stopPropagation(), !a.disabled) {
2699
2793
  const l = r.querySelector("input");
2700
2794
  let d = n ? l.checked : !l.checked;
2701
2795
  c !== void 0 && (d = !c), l.checked = d;
2702
- const f = this.dataLayer.searchObject;
2703
- let g = [...f.facets];
2704
- const p = this.extractFacetValue(a);
2705
- d ? g.find((w) => ae.deepEqual(w, p) ? w : !1) || (this.config.facetingType === "tabs" && (g = g.filter((w) => w.name !== p.name)), g.push(p)) : g = g.filter(
2706
- (w) => !ae.deepEqual(w, p)
2796
+ const L = this.dataLayer.searchObject;
2797
+ let g = [...L.facets];
2798
+ const m = this.extractFacetValue(a);
2799
+ d ? g.find((j) => ae.deepEqual(j, m) ? j : !1) || (this.config.facetingType === "tabs" && (g = g.filter((j) => j.name !== m.name)), g.push(m)) : g = g.filter(
2800
+ (j) => !ae.deepEqual(j, m)
2707
2801
  ), setTimeout(() => {
2708
- this.dataLayer.setSearchObject({ ...f, facets: g, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
2802
+ this.dataLayer.setSearchObject({ ...L, facets: g, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
2709
2803
  }, 0);
2710
2804
  }
2711
2805
  }), 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, typeof document < "u" && (this.searchFacetsMainContainer = document == null ? void 0 : document.getElementById(
@@ -2789,31 +2883,31 @@ class ss {
2789
2883
  }
2790
2884
  }
2791
2885
  createFacetItem(e, t, s) {
2792
- var a, r, n, c, l, d, f, g, p, w, E, x;
2886
+ var a, r, n, c, l, d, L, g, m, j, k, y;
2793
2887
  if (typeof document < "u") {
2794
- const S = document == null ? void 0 : document.createElement("div");
2795
- S.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || S.classList.add("active");
2796
- const R = ((n = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.facetItemContainerTemplate) == null ? void 0 : n.template) || ((c = L.facets.facetItemContainerTemplate) == null ? void 0 : c.template);
2797
- S.innerHTML = M.render(
2798
- R,
2888
+ const w = document == null ? void 0 : document.createElement("div");
2889
+ w.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || w.classList.add("active");
2890
+ const T = ((n = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.facetItemContainerTemplate) == null ? void 0 : n.template) || ((c = x.facets.facetItemContainerTemplate) == null ? void 0 : c.template);
2891
+ w.innerHTML = D.render(
2892
+ T,
2799
2893
  e
2800
- ), t.appendChild(S);
2801
- const k = S.querySelector(
2802
- "." + (((f = (d = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : d.facetItemContainerTemplate) == null ? void 0 : f.facetListTitleContainerClass) || ((g = L.facets.facetItemContainerTemplate) == null ? void 0 : g.facetListTitleContainerClass))
2894
+ ), t.appendChild(w);
2895
+ const S = w.querySelector(
2896
+ "." + (((L = (d = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : d.facetItemContainerTemplate) == null ? void 0 : L.facetListTitleContainerClass) || ((g = x.facets.facetItemContainerTemplate) == null ? void 0 : g.facetListTitleContainerClass))
2803
2897
  );
2804
- k == null || k.addEventListener("click", () => {
2805
- S.classList.toggle("active");
2898
+ S == null || S.addEventListener("click", () => {
2899
+ w.classList.toggle("active");
2806
2900
  });
2807
- const $ = S.querySelector(
2808
- "." + (((E = (w = (p = this.config) == null ? void 0 : p.templates) == null ? void 0 : w.facetItemContainerTemplate) == null ? void 0 : E.facetListContainerClass) || ((x = L.facets.facetItemContainerTemplate) == null ? void 0 : x.facetListContainerClass))
2901
+ const F = w.querySelector(
2902
+ "." + (((k = (j = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : j.facetItemContainerTemplate) == null ? void 0 : k.facetListContainerClass) || ((y = x.facets.facetItemContainerTemplate) == null ? void 0 : y.facetListContainerClass))
2809
2903
  );
2810
- $ && (e.values.forEach((W) => {
2904
+ F && (e.values.forEach((Y) => {
2811
2905
  this.createFacetListItem(
2812
- W,
2813
- $,
2906
+ Y,
2907
+ F,
2814
2908
  e.name
2815
2909
  );
2816
- }), e.hasMoreFacets && this.createHasMoreComponent(e, $, s));
2910
+ }), e.hasMoreFacets && this.createHasMoreComponent(e, F, s));
2817
2911
  }
2818
2912
  }
2819
2913
  isChecked(e) {
@@ -2821,44 +2915,44 @@ class ss {
2821
2915
  return !!((t = this.dataLayer.searchObject.facets) != null && t.find((s) => ae.deepEqual(s, this.extractFacetValue(e))));
2822
2916
  }
2823
2917
  createFacetListItem(e, t, s) {
2824
- var a, r, n, c, l, d, f, g, p, w, E, x;
2918
+ var a, r, n, c, l, d, L, g, m, j, k, y;
2825
2919
  if (typeof document < "u") {
2826
- const S = document == null ? void 0 : document.createElement("div");
2827
- S.classList.add("searchstax-facet-value-container"), e.disabled && S.classList.add("searchstax-facet-value-disabled");
2828
- const R = this.isChecked(e), k = ((n = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.facetItemTemplate) == null ? void 0 : n.template) || ((c = L.facets.facetItemTemplate) == null ? void 0 : c.template);
2829
- S.innerHTML = M.render(
2830
- k,
2831
- { ...e, isChecked: R }
2920
+ const w = document == null ? void 0 : document.createElement("div");
2921
+ w.classList.add("searchstax-facet-value-container"), e.disabled && w.classList.add("searchstax-facet-value-disabled");
2922
+ const T = this.isChecked(e), S = ((n = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.facetItemTemplate) == null ? void 0 : n.template) || ((c = x.facets.facetItemTemplate) == null ? void 0 : c.template);
2923
+ w.innerHTML = D.render(
2924
+ S,
2925
+ { ...e, isChecked: T }
2832
2926
  );
2833
- let $ = (l = L.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
2834
- $ = ((g = (f = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : f.facetItemTemplate) == null ? void 0 : g.checkTriggerClasses) || $, $.forEach((N) => {
2835
- const J = S.querySelector("." + N);
2836
- J == null || J.addEventListener("click", (v) => {
2837
- this.onFacetSelect(v, e, S);
2927
+ let F = (l = x.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
2928
+ F = ((g = (L = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : L.facetItemTemplate) == null ? void 0 : g.checkTriggerClasses) || F, F.forEach((z) => {
2929
+ const _ = w.querySelector("." + z);
2930
+ _ == null || _.addEventListener("click", (f) => {
2931
+ this.onFacetSelect(f, e, w);
2838
2932
  });
2839
2933
  });
2840
- const W = S.querySelector(
2841
- "." + (((E = (w = (p = this.config) == null ? void 0 : p.templates) == null ? void 0 : w.facetItemTemplate) == null ? void 0 : E.inputCheckboxClass) || ((x = L.facets.facetItemTemplate) == null ? void 0 : x.inputCheckboxClass))
2934
+ const Y = w.querySelector(
2935
+ "." + (((k = (j = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : j.facetItemTemplate) == null ? void 0 : k.inputCheckboxClass) || ((y = x.facets.facetItemTemplate) == null ? void 0 : y.inputCheckboxClass))
2842
2936
  );
2843
- W == null || W.addEventListener("click", (N) => {
2844
- this.onFacetSelect(N, e, S, !0);
2845
- }), W && (W == null || W.setAttribute("data-test-value", `${encodeURIComponent(s)}:&quot;${encodeURIComponent(e.value)}&quot;`)), t.appendChild(S);
2937
+ Y == null || Y.addEventListener("click", (z) => {
2938
+ this.onFacetSelect(z, e, w, !0);
2939
+ }), Y && (Y == null || Y.setAttribute("data-test-value", `${encodeURIComponent(s)}:&quot;${encodeURIComponent(e.value)}&quot;`)), t.appendChild(w);
2846
2940
  }
2847
2941
  }
2848
2942
  createHasMoreComponent(e, t, s) {
2849
- var a, r, n, c, l, d, f, g;
2943
+ var a, r, n, c, l, d, L, g;
2850
2944
  if (typeof document < "u") {
2851
- const p = document == null ? void 0 : document.createElement("div");
2852
- p.classList.add("searchstax-facet-show-more-container");
2853
- const w = ((n = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : n.template) || ((c = L.facets.showMoreButtonContainerTemplate) == null ? void 0 : c.template);
2854
- p.innerHTML = M.render(
2855
- w,
2945
+ const m = document == null ? void 0 : document.createElement("div");
2946
+ m.classList.add("searchstax-facet-show-more-container");
2947
+ const j = ((n = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.showMoreButtonContainerTemplate) == null ? void 0 : n.template) || ((c = x.facets.showMoreButtonContainerTemplate) == null ? void 0 : c.template);
2948
+ m.innerHTML = D.render(
2949
+ j,
2856
2950
  e
2857
2951
  );
2858
- const E = p.querySelector(
2859
- "." + (((f = (d = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : d.showMoreButtonContainerTemplate) == null ? void 0 : f.showMoreButtonClass) || ((g = L.facets.showMoreButtonContainerTemplate) == null ? void 0 : g.showMoreButtonClass))
2952
+ const k = m.querySelector(
2953
+ "." + (((L = (d = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : d.showMoreButtonContainerTemplate) == null ? void 0 : L.showMoreButtonClass) || ((g = x.facets.showMoreButtonContainerTemplate) == null ? void 0 : g.showMoreButtonClass))
2860
2954
  );
2861
- E && (this.attachOnclickToShowMore(e, E, s), t && t.appendChild(E));
2955
+ k && (this.attachOnclickToShowMore(e, k, s), t && t.appendChild(k));
2862
2956
  }
2863
2957
  }
2864
2958
  attachOnclickToShowMore(e, t, s) {
@@ -2874,29 +2968,29 @@ class ss {
2874
2968
  r[t.name] === void 0 ? r[t.name] = a * 2 : r[t.name] <= t.values.length ? (ie.setAccessibilityText(`More Facets shown for ${t.label}`), r[t.name] = r[t.name] + a) : (ie.setAccessibilityText(`Less Facets shown for ${t.label}`), r[t.name] = a), this.generateTemplateData(s), this.renderMainTemplate(this.generateTemplateData());
2875
2969
  }
2876
2970
  renderMainTemplate(e, t) {
2877
- var s, a, r, n, c, l, d, f, g, p, w;
2971
+ var s, a, r, n, c, l, d, L, g, m, j;
2878
2972
  if (e && (!ae.deepEqual(this.cachedData ?? {}, e) || t)) {
2879
2973
  this.cachedData = e;
2880
- const E = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.mainTemplateDesktop) == null ? void 0 : r.template) || ((n = L.facets.mainTemplateDesktop) == null ? void 0 : n.template);
2881
- if (this.dataLayer.renderingEngine === Q.mustache && this.searchFacetsMainContainer) {
2882
- this.searchFacetsMainContainer.innerHTML = M.render(
2883
- E,
2974
+ const k = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.mainTemplateDesktop) == null ? void 0 : r.template) || ((n = x.facets.mainTemplateDesktop) == null ? void 0 : n.template);
2975
+ if (this.dataLayer.renderingEngine === q.mustache && this.searchFacetsMainContainer) {
2976
+ this.searchFacetsMainContainer.innerHTML = D.render(
2977
+ k,
2884
2978
  {
2885
2979
  ...e
2886
2980
  }
2887
2981
  );
2888
- const x = (f = this.searchFacetsMainContainer) == null ? void 0 : f.querySelector(
2889
- "." + (((d = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.mainTemplateDesktop) == null ? void 0 : d.facetsContainerClass) || L.facets.mainTemplateDesktop.facetsContainerClass)
2982
+ const y = (L = this.searchFacetsMainContainer) == null ? void 0 : L.querySelector(
2983
+ "." + (((d = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.mainTemplateDesktop) == null ? void 0 : d.facetsContainerClass) || x.facets.mainTemplateDesktop.facetsContainerClass)
2890
2984
  );
2891
- if (x) {
2892
- x.innerHTML = "";
2893
- for (const S of e.facets)
2894
- this.createFacetItem(S, x);
2985
+ if (y) {
2986
+ y.innerHTML = "";
2987
+ for (const w of e.facets)
2988
+ this.createFacetItem(w, y);
2895
2989
  if (this.searchFacetsMainContainer) {
2896
- const S = this.searchFacetsMainContainer.querySelector(
2897
- "." + (((w = (p = (g = this.config) == null ? void 0 : g.templates) == null ? void 0 : p.mainTemplateDesktop) == null ? void 0 : w.selectedFacetsContainerClass) || L.facets.mainTemplateDesktop.selectedFacetsContainerClass)
2990
+ const w = this.searchFacetsMainContainer.querySelector(
2991
+ "." + (((j = (m = (g = this.config) == null ? void 0 : g.templates) == null ? void 0 : m.mainTemplateDesktop) == null ? void 0 : j.selectedFacetsContainerClass) || x.facets.mainTemplateDesktop.selectedFacetsContainerClass)
2898
2992
  );
2899
- S && (this.createSelectedFacetsComponents(S), this.createClearFacetsComponents(S));
2993
+ w && (this.createSelectedFacetsComponents(w), this.createClearFacetsComponents(w));
2900
2994
  }
2901
2995
  }
2902
2996
  }
@@ -2929,39 +3023,39 @@ class ss {
2929
3023
  createClearFacetsComponents(e) {
2930
3024
  var t, s, a, r, n, c, l, d;
2931
3025
  if (typeof document < "u") {
2932
- const f = this.dataLayer.searchObject, g = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.clearFacetsTemplate) == null ? void 0 : a.template) || ((r = L.facets.clearFacetsTemplate) == null ? void 0 : r.template), p = document == null ? void 0 : document.createElement("div");
2933
- p.innerHTML = M.render(
3026
+ const L = this.dataLayer.searchObject, g = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.clearFacetsTemplate) == null ? void 0 : a.template) || ((r = x.facets.clearFacetsTemplate) == null ? void 0 : r.template), m = document == null ? void 0 : document.createElement("div");
3027
+ m.innerHTML = D.render(
2934
3028
  g,
2935
3029
  {
2936
- shouldShow: f.facets.length > 0
3030
+ shouldShow: L.facets.length > 0
2937
3031
  }
2938
3032
  );
2939
- const w = p.querySelector(
2940
- "." + (((l = (c = (n = this.config) == null ? void 0 : n.templates) == null ? void 0 : c.clearFacetsTemplate) == null ? void 0 : l.containerClass) || ((d = L.facets.clearFacetsTemplate) == null ? void 0 : d.containerClass))
3033
+ const j = m.querySelector(
3034
+ "." + (((l = (c = (n = this.config) == null ? void 0 : n.templates) == null ? void 0 : c.clearFacetsTemplate) == null ? void 0 : l.containerClass) || ((d = x.facets.clearFacetsTemplate) == null ? void 0 : d.containerClass))
2941
3035
  );
2942
- w && (w.addEventListener("click", () => {
3036
+ j && (j.addEventListener("click", () => {
2943
3037
  this.removeSelectedFacets();
2944
- }), w.addEventListener("keyup", (E) => {
2945
- (E.code === "Space" || E.code === "Enter") && this.removeSelectedFacets();
2946
- }), e.appendChild(w));
3038
+ }), j.addEventListener("keyup", (k) => {
3039
+ (k.code === "Space" || k.code === "Enter") && this.removeSelectedFacets();
3040
+ }), e.appendChild(j));
2947
3041
  }
2948
3042
  }
2949
3043
  createSelectedFacetsComponent(e, t) {
2950
- var s, a, r, n, c, l, d, f;
3044
+ var s, a, r, n, c, l, d, L;
2951
3045
  if (typeof document < "u") {
2952
- const g = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.selectedFacetsTemplate) == null ? void 0 : r.template) || ((n = L.facets.selectedFacetsTemplate) == null ? void 0 : n.template), p = document == null ? void 0 : document.createElement("div");
2953
- p.innerHTML = M.render(
3046
+ const g = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.selectedFacetsTemplate) == null ? void 0 : r.template) || ((n = x.facets.selectedFacetsTemplate) == null ? void 0 : n.template), m = document == null ? void 0 : document.createElement("div");
3047
+ m.innerHTML = D.render(
2954
3048
  g,
2955
3049
  t
2956
3050
  );
2957
- const w = p.querySelector(
2958
- "." + (((d = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.selectedFacetsTemplate) == null ? void 0 : d.containerClass) || ((f = L.facets.selectedFacetsTemplate) == null ? void 0 : f.containerClass))
3051
+ const j = m.querySelector(
3052
+ "." + (((d = (l = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : l.selectedFacetsTemplate) == null ? void 0 : d.containerClass) || ((L = x.facets.selectedFacetsTemplate) == null ? void 0 : L.containerClass))
2959
3053
  );
2960
- w && (w.addEventListener("click", () => {
3054
+ j && (j.addEventListener("click", () => {
2961
3055
  this.unselectFacet(t);
2962
- }), w.addEventListener("keyup", (E) => {
2963
- (E.code === "Space" || E.code === "Enter") && this.unselectFacet(t);
2964
- }), e.appendChild(w));
3056
+ }), j.addEventListener("keyup", (k) => {
3057
+ (k.code === "Space" || k.code === "Enter") && this.unselectFacet(t);
3058
+ }), e.appendChild(j));
2965
3059
  }
2966
3060
  }
2967
3061
  unselectFacet(e) {
@@ -2980,16 +3074,16 @@ class ss {
2980
3074
  createFilterByComponent(e) {
2981
3075
  var t, s, a, r, n, c, l, d;
2982
3076
  if (typeof document < "u") {
2983
- const f = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.filterByTemplate) == null ? void 0 : a.template) || ((r = L.facets.filterByTemplate) == null ? void 0 : r.template), g = document == null ? void 0 : document.createElement("div");
2984
- g.innerHTML = M.render(
2985
- f,
3077
+ const L = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.filterByTemplate) == null ? void 0 : a.template) || ((r = x.facets.filterByTemplate) == null ? void 0 : r.template), g = document == null ? void 0 : document.createElement("div");
3078
+ g.innerHTML = D.render(
3079
+ L,
2986
3080
  {}
2987
3081
  );
2988
- const p = g.querySelector(
2989
- "." + (((l = (c = (n = this.config) == null ? void 0 : n.templates) == null ? void 0 : c.filterByTemplate) == null ? void 0 : l.containerClass) || ((d = L.facets.filterByTemplate) == null ? void 0 : d.containerClass))
3082
+ const m = g.querySelector(
3083
+ "." + (((l = (c = (n = this.config) == null ? void 0 : n.templates) == null ? void 0 : c.filterByTemplate) == null ? void 0 : l.containerClass) || ((d = x.facets.filterByTemplate) == null ? void 0 : d.containerClass))
2990
3084
  );
2991
- p && (e.prepend(p), p.addEventListener("click", this.openOverlay.bind(this)), p.addEventListener("keyup", (w) => {
2992
- (w.code === "Space" || w.code === "Enter") && this.openOverlay();
3085
+ m && (e.prepend(m), m.addEventListener("click", this.openOverlay.bind(this)), m.addEventListener("keyup", (j) => {
3086
+ (j.code === "Space" || j.code === "Enter") && this.openOverlay();
2993
3087
  }));
2994
3088
  }
2995
3089
  }
@@ -3002,54 +3096,54 @@ class ss {
3002
3096
  ie.setAccessibilityText("Facet overlay closed"), this.overlayOpened = !1, this.searchFacetsMainContainer && (typeof document < "u" && document.body.classList.toggle("searchstax-no-scroll"), (e = this.searchFacetsMainContainer.querySelector(".searchstax-facets-mobile-overlay")) == null || e.classList.remove("searchstax-show"));
3003
3097
  }
3004
3098
  renderMobileTemplate(e) {
3005
- var t, s, a, r, n, c, l, d, f, g, p, w, E, x, S, R, k, $, W;
3099
+ var t, s, a, r, n, c, l, d, L, g, m, j, k, y, w, T, S, F, Y;
3006
3100
  if (e && typeof document < "u") {
3007
- const N = document == null ? void 0 : document.createElement("div");
3008
- N.classList.add("searchstax-facets-container-mobile");
3009
- const J = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplateMobile) == null ? void 0 : a.template) || ((r = L.facets.mainTemplateMobile) == null ? void 0 : r.template);
3010
- if (this.dataLayer.renderingEngine === Q.mustache) {
3011
- if (N.innerHTML = M.render(J, {
3101
+ const z = document == null ? void 0 : document.createElement("div");
3102
+ z.classList.add("searchstax-facets-container-mobile");
3103
+ const _ = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplateMobile) == null ? void 0 : a.template) || ((r = x.facets.mainTemplateMobile) == null ? void 0 : r.template);
3104
+ if (this.dataLayer.renderingEngine === q.mustache) {
3105
+ if (z.innerHTML = D.render(_, {
3012
3106
  ...e,
3013
3107
  overlayOpened: this.overlayOpened
3014
- }), (n = this.searchFacetsMainContainer) == null || n.appendChild(N), (l = (c = this.config) == null ? void 0 : c.templates) != null && l.mainTemplateMobile)
3015
- for (const B of ((g = (f = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : f.mainTemplateMobile) == null ? void 0 : g.closeOverlayTriggerClasses) || []) {
3016
- const ee = N.querySelector("." + B);
3108
+ }), (n = this.searchFacetsMainContainer) == null || n.appendChild(z), (l = (c = this.config) == null ? void 0 : c.templates) != null && l.mainTemplateMobile)
3109
+ for (const J of ((g = (L = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : L.mainTemplateMobile) == null ? void 0 : g.closeOverlayTriggerClasses) || []) {
3110
+ const ee = z.querySelector("." + J);
3017
3111
  ee && (ee.addEventListener("click", this.closeOverlay.bind(this)), ee.addEventListener("keyup", (se) => {
3018
3112
  (se.code === "Space" || se.code === "Enter") && this.closeOverlay();
3019
3113
  }));
3020
3114
  }
3021
3115
  else
3022
- for (const B of L.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
3023
- const ee = N.querySelector("." + B);
3116
+ for (const J of x.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
3117
+ const ee = z.querySelector("." + J);
3024
3118
  ee && (ee.addEventListener("click", this.closeOverlay.bind(this)), ee.addEventListener("keyup", (se) => {
3025
3119
  (se.code === "Space" || se.code === "Enter") && this.closeOverlay();
3026
3120
  }));
3027
3121
  }
3028
- const v = N.querySelector(
3029
- "." + (((E = (w = (p = this.config) == null ? void 0 : p.templates) == null ? void 0 : w.mainTemplateMobile) == null ? void 0 : E.filterByContainerClass) || L.facets.mainTemplateMobile.filterByContainerClass)
3122
+ const f = z.querySelector(
3123
+ "." + (((k = (j = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : j.mainTemplateMobile) == null ? void 0 : k.filterByContainerClass) || x.facets.mainTemplateMobile.filterByContainerClass)
3030
3124
  );
3031
- v && this.createFilterByComponent(v);
3032
- const b = N.querySelector(
3033
- "." + (((R = (S = (x = this.config) == null ? void 0 : x.templates) == null ? void 0 : S.mainTemplateMobile) == null ? void 0 : R.selectedFacetsContainerClass) || L.facets.mainTemplateMobile.selectedFacetsContainerClass)
3125
+ f && this.createFilterByComponent(f);
3126
+ const v = z.querySelector(
3127
+ "." + (((T = (w = (y = this.config) == null ? void 0 : y.templates) == null ? void 0 : w.mainTemplateMobile) == null ? void 0 : T.selectedFacetsContainerClass) || x.facets.mainTemplateMobile.selectedFacetsContainerClass)
3034
3128
  );
3035
- b && (this.createSelectedFacetsComponents(b), this.createClearFacetsComponents(b));
3036
- const A = N.querySelector(
3037
- "." + (((W = ($ = (k = this.config) == null ? void 0 : k.templates) == null ? void 0 : $.mainTemplateMobile) == null ? void 0 : W.facetsContainerClass) || L.facets.mainTemplateMobile.facetsContainerClass)
3129
+ v && (this.createSelectedFacetsComponents(v), this.createClearFacetsComponents(v));
3130
+ const N = z.querySelector(
3131
+ "." + (((Y = (F = (S = this.config) == null ? void 0 : S.templates) == null ? void 0 : F.mainTemplateMobile) == null ? void 0 : Y.facetsContainerClass) || x.facets.mainTemplateMobile.facetsContainerClass)
3038
3132
  );
3039
- if (A) {
3040
- A.innerHTML = "";
3041
- for (const B of e.facets)
3042
- this.createFacetItem(B, A, !0);
3133
+ if (N) {
3134
+ N.innerHTML = "";
3135
+ for (const J of e.facets)
3136
+ this.createFacetItem(J, N, !0);
3043
3137
  }
3044
3138
  }
3045
3139
  }
3046
3140
  }
3047
3141
  }
3048
- class rs {
3142
+ class is {
3049
3143
  constructor(e) {
3050
3144
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "previousButtonClass"), h(this, "nextButtonClass"), h(this, "loadMoreButtonClass"), h(this, "routerHelper"), h(this, "searchPaginationMainContainer", null);
3051
- var t, s, a, r, n, c, l, d, f;
3052
- this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.routerHelper = e.routerHelper, this.previousButtonClass = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.previousButtonClass) ?? L.pagination.mainTemplate.previousButtonClass, this.nextButtonClass = ((c = (n = (r = this.config) == null ? void 0 : r.templates) == null ? void 0 : n.mainTemplate) == null ? void 0 : c.nextButtonClass) ?? L.pagination.mainTemplate.nextButtonClass, this.loadMoreButtonClass = ((f = (d = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : f.loadMoreButtonClass) ?? L.pagination.infiniteScrollTemplate.loadMoreButtonClass, typeof document < "u" && (this.searchPaginationMainContainer = document == null ? void 0 : document.getElementById(
3145
+ var t, s, a, r, n, c, l, d, L;
3146
+ this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.routerHelper = e.routerHelper, this.previousButtonClass = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.previousButtonClass) ?? x.pagination.mainTemplate.previousButtonClass, this.nextButtonClass = ((c = (n = (r = this.config) == null ? void 0 : r.templates) == null ? void 0 : n.mainTemplate) == null ? void 0 : c.nextButtonClass) ?? x.pagination.mainTemplate.nextButtonClass, this.loadMoreButtonClass = ((L = (d = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : L.loadMoreButtonClass) ?? x.pagination.infiniteScrollTemplate.loadMoreButtonClass, typeof document < "u" && (this.searchPaginationMainContainer = document == null ? void 0 : document.getElementById(
3053
3147
  this.containerId
3054
3148
  )), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
3055
3149
  }
@@ -3117,22 +3211,22 @@ class rs {
3117
3211
  }
3118
3212
  }
3119
3213
  renderMainTemplate(e) {
3120
- var t, s, a, r, n, c, l, d, f, g;
3214
+ var t, s, a, r, n, c, l, d, L, g;
3121
3215
  this.searchPaginationMainContainer && ((t = this.searchPaginationMainContainer.querySelector("." + this.previousButtonClass)) == null || t.removeEventListener("click", this.previousPage), (s = this.searchPaginationMainContainer.querySelector("." + this.nextButtonClass)) == null || s.removeEventListener("click", this.nextPage));
3122
- let p = ((n = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : n.template) || ((c = L.pagination.mainTemplate) == null ? void 0 : c.template);
3123
- this.dataLayer.isInfiniteScroll && (p = ((f = (d = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : f.template) || ((g = L.pagination.infiniteScrollTemplate) == null ? void 0 : g.template)), this.dataLayer.renderingEngine === Q.mustache && (this.searchPaginationMainContainer.innerHTML = M.render(
3124
- p,
3216
+ let m = ((n = (r = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : n.template) || ((c = x.pagination.mainTemplate) == null ? void 0 : c.template);
3217
+ this.dataLayer.isInfiniteScroll && (m = ((L = (d = (l = this.config) == null ? void 0 : l.templates) == null ? void 0 : d.infiniteScrollTemplate) == null ? void 0 : L.template) || ((g = x.pagination.infiniteScrollTemplate) == null ? void 0 : g.template)), this.dataLayer.renderingEngine === q.mustache && (this.searchPaginationMainContainer.innerHTML = D.render(
3218
+ m,
3125
3219
  e
3126
3220
  ), setTimeout(() => {
3127
3221
  this.overridePaginationEvents();
3128
3222
  }, 0));
3129
3223
  }
3130
3224
  }
3131
- class is {
3225
+ class ns {
3132
3226
  constructor(e) {
3133
3227
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "relatedSearchesContainerClass"), h(this, "searchRelatedSearchesMainContainer", null), h(this, "track");
3134
3228
  var t, s;
3135
- this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.relatedSearchesContainerClass = ((s = (t = this.config.templates) == null ? void 0 : t.main) == null ? void 0 : s.relatedSearchesContainerClass) || L.relatedSearches.main.relatedSearchesContainerClass, typeof document < "u" && (this.searchRelatedSearchesMainContainer = document == null ? void 0 : document.getElementById(
3229
+ this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.relatedSearchesContainerClass = ((s = (t = this.config.templates) == null ? void 0 : t.main) == null ? void 0 : s.relatedSearchesContainerClass) || x.relatedSearches.main.relatedSearchesContainerClass, typeof document < "u" && (this.searchRelatedSearchesMainContainer = document == null ? void 0 : document.getElementById(
3136
3230
  this.containerId
3137
3231
  )), this.track = e.trackRelatedSearchClick, this.initializeSubscriptions();
3138
3232
  }
@@ -3150,18 +3244,18 @@ class is {
3150
3244
  addRelatedSearchComponent(e, t) {
3151
3245
  var s, a, r, n, c;
3152
3246
  if (typeof document < "u") {
3153
- const l = document == null ? void 0 : document.createElement("div"), d = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.relatedSearch) == null ? void 0 : r.template) || L.relatedSearches.relatedSearch.template;
3154
- if (this.dataLayer.renderingEngine === Q.mustache) {
3155
- l.innerHTML = M.render(
3247
+ const l = document == null ? void 0 : document.createElement("div"), d = ((r = (a = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : a.relatedSearch) == null ? void 0 : r.template) || x.relatedSearches.relatedSearch.template;
3248
+ if (this.dataLayer.renderingEngine === q.mustache) {
3249
+ l.innerHTML = D.render(
3156
3250
  d,
3157
3251
  e
3158
3252
  );
3159
- const f = l.querySelector(
3160
- "." + (((c = (n = this.config.templates) == null ? void 0 : n.relatedSearch) == null ? void 0 : c.relatedSearchContainerClass) || L.relatedSearches.relatedSearch.relatedSearchContainerClass)
3253
+ const L = l.querySelector(
3254
+ "." + (((c = (n = this.config.templates) == null ? void 0 : n.relatedSearch) == null ? void 0 : c.relatedSearchContainerClass) || x.relatedSearches.relatedSearch.relatedSearchContainerClass)
3161
3255
  );
3162
- f && (t.appendChild(f), f.addEventListener("click", () => {
3256
+ L && (t.appendChild(L), L.addEventListener("click", () => {
3163
3257
  this.executeSearch(e);
3164
- }), f.addEventListener("keyup", (g) => {
3258
+ }), L.addEventListener("keyup", (g) => {
3165
3259
  (g.code === "Space" || g.code === "Enter") && this.executeSearch(e);
3166
3260
  }));
3167
3261
  }
@@ -3173,10 +3267,10 @@ class is {
3173
3267
  }
3174
3268
  renderMainTemplate(e) {
3175
3269
  var t, s, a, r;
3176
- const n = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || L.relatedSearches.main.template;
3177
- if (this.dataLayer.renderingEngine === Q.mustache && this.searchRelatedSearchesMainContainer) {
3270
+ const n = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || x.relatedSearches.main.template;
3271
+ if (this.dataLayer.renderingEngine === q.mustache && this.searchRelatedSearchesMainContainer) {
3178
3272
  this.searchRelatedSearchesMainContainer.innerHTML = "", this.searchRelatedSearchesMainContainer.innerHTML = //@ts-expect-error - mustache is not a module
3179
- M.render(n, e);
3273
+ D.render(n, e);
3180
3274
  const c = (r = this.searchRelatedSearchesMainContainer) == null ? void 0 : r.querySelector(
3181
3275
  `.${this.relatedSearchesContainerClass}`
3182
3276
  );
@@ -3186,7 +3280,7 @@ class is {
3186
3280
  }
3187
3281
  }
3188
3282
  }
3189
- class ns {
3283
+ class cs {
3190
3284
  constructor(e) {
3191
3285
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "searchFeedbackMainContainer", null), h(this, "searchTrigger"), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.searchTrigger = e.searchTrigger, typeof document < "u" && (this.searchFeedbackMainContainer = document == null ? void 0 : document.getElementById(
3192
3286
  this.containerId
@@ -3212,7 +3306,7 @@ class ns {
3212
3306
  attachClick() {
3213
3307
  var e, t, s, a, r;
3214
3308
  const n = (r = this.searchFeedbackMainContainer) == null ? void 0 : r.querySelector(
3215
- "." + (((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.main) == null ? void 0 : s.originalQueryClass) || ((a = L.searchFeedback.main) == null ? void 0 : a.originalQueryClass))
3309
+ "." + (((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.main) == null ? void 0 : s.originalQueryClass) || ((a = x.searchFeedback.main) == null ? void 0 : a.originalQueryClass))
3216
3310
  );
3217
3311
  n && n.addEventListener(
3218
3312
  "click",
@@ -3221,8 +3315,8 @@ class ns {
3221
3315
  }
3222
3316
  renderMainTemplate(e) {
3223
3317
  var t, s, a;
3224
- const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || L.searchFeedback.main.template;
3225
- this.dataLayer.renderingEngine === Q.mustache && (this.searchFeedbackMainContainer.innerHTML = M.render(
3318
+ const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || x.searchFeedback.main.template;
3319
+ this.dataLayer.renderingEngine === q.mustache && (this.searchFeedbackMainContainer.innerHTML = D.render(
3226
3320
  r,
3227
3321
  e
3228
3322
  ), setTimeout(() => {
@@ -3230,7 +3324,7 @@ class ns {
3230
3324
  }, 0));
3231
3325
  }
3232
3326
  }
3233
- class cs {
3327
+ class os {
3234
3328
  constructor(e) {
3235
3329
  h(this, "searchHelper"), h(this, "dataLayer"), h(this, "config"), h(this, "suggestAfterMinChars"), h(this, "containerId"), h(this, "currentInputValue", ""), h(this, "autosuggestResults"), h(this, "searchInput"), h(this, "actionButton"), h(this, "autosuggestContainer"), h(this, "buttonState", "search"), h(this, "selectedAutosuggestItem", -1), h(this, "suggestTrigger"), h(this, "searchTrigger"), this.dataLayer = e.dataLayer, this.config = e.config, this.searchTrigger = e.searchTrigger, this.suggestTrigger = e.suggestTrigger, this.containerId = e.containerId, this.suggestAfterMinChars = e.config.suggestAfterMinChars, this.suggestAfterMinChars === void 0 && this.getSuggestAfterValue(), this.renderMainTemplate(), this.actionButtonInit(), this.updateActionButtonState("search"), this.searchInput && (this.createAutosuggestContainer(), this.attachSubscriptions());
3236
3330
  }
@@ -3240,12 +3334,12 @@ class cs {
3240
3334
  const r = document == null ? void 0 : document.getElementById(this.containerId);
3241
3335
  if (!r)
3242
3336
  throw new Error("Search input container not found");
3243
- const n = ((t = (e = this.config.templates) == null ? void 0 : e.mainTemplate) == null ? void 0 : t.template) || L.searchInput.mainTemplate.template;
3244
- if (this.dataLayer.renderingEngine === Q.mustache) {
3245
- const d = M.render(n, {});
3337
+ const n = ((t = (e = this.config.templates) == null ? void 0 : e.mainTemplate) == null ? void 0 : t.template) || x.searchInput.mainTemplate.template;
3338
+ if (this.dataLayer.renderingEngine === q.mustache) {
3339
+ const d = D.render(n, {});
3246
3340
  r.innerHTML = d;
3247
3341
  }
3248
- const c = ((a = (s = this.config.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.searchInputId) || L.searchInput.mainTemplate.searchInputId, l = document == null ? void 0 : document.querySelector(`#${c}`);
3342
+ const c = ((a = (s = this.config.templates) == null ? void 0 : s.mainTemplate) == null ? void 0 : a.searchInputId) || x.searchInput.mainTemplate.searchInputId, l = document == null ? void 0 : document.querySelector(`#${c}`);
3249
3343
  if (l)
3250
3344
  this.searchInput = l, l.addEventListener("keyup", this.inputKeyupEvent.bind(this)), l.addEventListener("blur", this.hideAutosuggest.bind(this)), l.addEventListener("paste", this.inputPasteEvent.bind(this));
3251
3345
  else
@@ -3254,7 +3348,7 @@ class cs {
3254
3348
  }
3255
3349
  createAutosuggestContainer() {
3256
3350
  var e;
3257
- this.dataLayer.renderingEngine === Q.mustache && typeof document < "u" && (this.autosuggestContainer = document == null ? void 0 : document.createElement("div"), this.autosuggestContainer.classList.add(
3351
+ this.dataLayer.renderingEngine === q.mustache && typeof document < "u" && (this.autosuggestContainer = document == null ? void 0 : document.createElement("div"), this.autosuggestContainer.classList.add(
3258
3352
  "searchstax-autosuggest-container"
3259
3353
  ), this.autosuggestContainer.addEventListener("mouseleave", () => {
3260
3354
  this.resetAutosuggestSelection(), this.markActiveAutosuggestItem();
@@ -3375,8 +3469,8 @@ class cs {
3375
3469
  }), r.addEventListener("mouseenter", () => {
3376
3470
  this.onSuggestionEnter(e);
3377
3471
  });
3378
- const n = ((s = (t = this.config.templates) == null ? void 0 : t.autosuggestItemTemplate) == null ? void 0 : s.template) || ((a = L.searchInput.autosuggestItemTemplate) == null ? void 0 : a.template);
3379
- return r.innerHTML = M.render(n, e), r;
3472
+ const n = ((s = (t = this.config.templates) == null ? void 0 : t.autosuggestItemTemplate) == null ? void 0 : s.template) || ((a = x.searchInput.autosuggestItemTemplate) == null ? void 0 : a.template);
3473
+ return r.innerHTML = D.render(n, e), r;
3380
3474
  }
3381
3475
  onSuggestionEnter(e) {
3382
3476
  var t;
@@ -3399,7 +3493,7 @@ class cs {
3399
3493
  }
3400
3494
  }
3401
3495
  }
3402
- class os {
3496
+ class ls {
3403
3497
  constructor(e) {
3404
3498
  h(this, "dataLayer"), h(this, "config"), h(this, "linkClickCallback"), h(this, "searchCallback"), h(this, "containerId"), h(this, "searchResultsMainContainer"), h(this, "searchResultsContainer"), h(this, "searchResultLinks", []), this.linkClickCallback = e.linkClickCallback, this.searchCallback = e.searchTrigger, this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId;
3405
3499
  const t = document == null ? void 0 : document.getElementById(this.containerId);
@@ -3423,8 +3517,8 @@ class os {
3423
3517
  }
3424
3518
  renderNoResultsTemplate() {
3425
3519
  var e, t, s, a, r;
3426
- const n = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.noSearchResultTemplate) == null ? void 0 : s.template) || ((a = L.searchResults.noSearchResultTemplate) == null ? void 0 : a.template), c = ((r = this.dataLayer.searchResultsMetadata) == null ? void 0 : r.spellingSuggestion) ?? "";
3427
- if (this.dataLayer.renderingEngine === Q.mustache && this.searchResultsContainer && (this.searchResultsContainer.innerHTML = M.render(
3520
+ const n = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.noSearchResultTemplate) == null ? void 0 : s.template) || ((a = x.searchResults.noSearchResultTemplate) == null ? void 0 : a.template), c = ((r = this.dataLayer.searchResultsMetadata) == null ? void 0 : r.spellingSuggestion) ?? "";
3521
+ if (this.dataLayer.renderingEngine === q.mustache && this.searchResultsContainer && (this.searchResultsContainer.innerHTML = D.render(
3428
3522
  n,
3429
3523
  {
3430
3524
  spellingSuggestion: c,
@@ -3440,12 +3534,12 @@ class os {
3440
3534
  }
3441
3535
  renderResults(e) {
3442
3536
  var t, s, a, r, n;
3443
- if (this.dataLayer.renderingEngine === Q.mustache && this.searchResultsContainer)
3537
+ if (this.dataLayer.renderingEngine === q.mustache && this.searchResultsContainer)
3444
3538
  if (this.removeLinkClickEvents(), e.length === 0)
3445
3539
  ie.setAccessibilityText("Search has no results"), this.renderNoResultsTemplate();
3446
3540
  else {
3447
3541
  ie.setAccessibilityText(`Showing ${this.dataLayer.parsedData.startResultIndex} through ${this.dataLayer.parsedData.endResultIndex} results from ${this.dataLayer.parsedData.totalResults}. Press tab to navigate through results`);
3448
- const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.searchResultTemplate) == null ? void 0 : a.template) || ((r = L.searchResults.searchResultTemplate) == null ? void 0 : r.template), l = e.map((d) => M.render(c, d));
3542
+ const c = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.searchResultTemplate) == null ? void 0 : a.template) || ((r = x.searchResults.searchResultTemplate) == null ? void 0 : r.template), l = e.map((d) => D.render(c, d));
3449
3543
  ((n = this.config) == null ? void 0 : n.renderMethod) === "infiniteScroll" && this.dataLayer.searchObject.page > 1 ? this.searchResultsContainer.innerHTML += l.join("") : this.searchResultsContainer.innerHTML = l.join(""), this.searchResultLinks = Array.from(
3450
3544
  this.searchResultsContainer.querySelectorAll(
3451
3545
  `[${this.uniqueIdAttribute}]`
@@ -3462,7 +3556,7 @@ class os {
3462
3556
  }
3463
3557
  get uniqueIdAttribute() {
3464
3558
  var e, t, s, a;
3465
- return ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.searchResultTemplate) == null ? void 0 : s.searchResultUniqueIdAttribute) || ((a = L.searchResults.searchResultTemplate) == null ? void 0 : a.searchResultUniqueIdAttribute);
3559
+ return ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.searchResultTemplate) == null ? void 0 : s.searchResultUniqueIdAttribute) || ((a = x.searchResults.searchResultTemplate) == null ? void 0 : a.searchResultUniqueIdAttribute);
3466
3560
  }
3467
3561
  attachLinkClickEvents() {
3468
3562
  this.searchResultLinks.forEach((e) => {
@@ -3480,25 +3574,25 @@ class os {
3480
3574
  }
3481
3575
  renderMainTemplate() {
3482
3576
  var e, t, s, a;
3483
- const r = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : s.template) || ((a = L.searchResults.mainTemplate) == null ? void 0 : a.template);
3484
- this.dataLayer.renderingEngine === Q.mustache && (this.searchResultsMainContainer.innerHTML = M.render(
3577
+ const r = ((s = (t = (e = this.config) == null ? void 0 : e.templates) == null ? void 0 : t.mainTemplate) == null ? void 0 : s.template) || ((a = x.searchResults.mainTemplate) == null ? void 0 : a.template);
3578
+ this.dataLayer.renderingEngine === q.mustache && (this.searchResultsMainContainer.innerHTML = D.render(
3485
3579
  r,
3486
3580
  {}
3487
3581
  ), setTimeout(() => {
3488
- var n, c, l, d, f, g, p;
3489
- const w = (l = (c = (n = this.config) == null ? void 0 : n.templates) == null ? void 0 : c.mainTemplate) != null && l.searchResultsContainerId ? (g = (f = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : f.mainTemplate) == null ? void 0 : g.searchResultsContainerId : (p = L.searchResults.mainTemplate) == null ? void 0 : p.searchResultsContainerId, E = document == null ? void 0 : document.getElementById(w);
3490
- if (E)
3491
- this.searchResultsContainer = E;
3582
+ var n, c, l, d, L, g, m;
3583
+ const j = (l = (c = (n = this.config) == null ? void 0 : n.templates) == null ? void 0 : c.mainTemplate) != null && l.searchResultsContainerId ? (g = (L = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : L.mainTemplate) == null ? void 0 : g.searchResultsContainerId : (m = x.searchResults.mainTemplate) == null ? void 0 : m.searchResultsContainerId, k = document == null ? void 0 : document.getElementById(j);
3584
+ if (k)
3585
+ this.searchResultsContainer = k;
3492
3586
  else
3493
- throw new Error(`Search Results Container with id ${w} not found`);
3587
+ throw new Error(`Search Results Container with id ${j} not found`);
3494
3588
  }, 0));
3495
3589
  }
3496
3590
  }
3497
- class ls {
3591
+ class hs {
3498
3592
  constructor(e) {
3499
3593
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "selectId"), h(this, "searchSortingMainContainer", null);
3500
3594
  var t, s;
3501
- this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.selectId = ((s = (t = this.config.templates) == null ? void 0 : t.main) == null ? void 0 : s.selectId) || L.sorting.main.selectId, this.searchSortingMainContainer = document == null ? void 0 : document.getElementById(this.containerId), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
3595
+ this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.selectId = ((s = (t = this.config.templates) == null ? void 0 : t.main) == null ? void 0 : s.selectId) || x.sorting.main.selectId, this.searchSortingMainContainer = document == null ? void 0 : document.getElementById(this.containerId), this.initializeSubscriptions(), this.renderMainTemplate(this.generateTemplateData());
3502
3596
  }
3503
3597
  initializeSubscriptions() {
3504
3598
  this.dataLayer.$searchResults.subscribe((e) => {
@@ -3530,9 +3624,9 @@ class ls {
3530
3624
  }
3531
3625
  renderMainTemplate(e) {
3532
3626
  var t, s, a;
3533
- const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || L.sorting.main.template;
3534
- if (this.dataLayer.renderingEngine === Q.mustache) {
3535
- this.searchSortingMainContainer.innerHTML = M.render(
3627
+ const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || x.sorting.main.template;
3628
+ if (this.dataLayer.renderingEngine === q.mustache) {
3629
+ this.searchSortingMainContainer.innerHTML = D.render(
3536
3630
  r,
3537
3631
  e
3538
3632
  ), this.markOptionSelected();
@@ -3545,7 +3639,7 @@ class ls {
3545
3639
  }
3546
3640
  }
3547
3641
  }
3548
- class hs {
3642
+ class us {
3549
3643
  constructor(e) {
3550
3644
  h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "answerContainer", null), h(this, "showMoreVisible", !1), h(this, "clicked", !1), this.dataLayer = e.dataLayer, this.config = e.config, this.containerId = e.containerId, this.config.showShowMoreAfterWordCount && (this.dataLayer.answerWidgetShowMoreLimit = this.config.showShowMoreAfterWordCount), typeof document < "u" && (this.answerContainer = document == null ? void 0 : document.getElementById(this.containerId)), this.initializeSubscriptions(), this.dataLayer.setIsAnswerWidgetCreated(!0);
3551
3645
  }
@@ -3571,8 +3665,8 @@ class hs {
3571
3665
  }
3572
3666
  renderMainTemplate(e) {
3573
3667
  var t, s, a;
3574
- const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || L.answer.main.template;
3575
- this.dataLayer.renderingEngine === Q.mustache && (this.answerContainer.innerHTML = M.render(
3668
+ const r = ((a = (s = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : s.main) == null ? void 0 : a.template) || x.answer.main.template;
3669
+ this.dataLayer.renderingEngine === q.mustache && (this.answerContainer.innerHTML = D.render(
3576
3670
  r,
3577
3671
  e
3578
3672
  ), this.attachClickEventToShowMore());
@@ -3585,11 +3679,11 @@ class hs {
3585
3679
  return this.dataLayer.setAnswerFullData(e), e;
3586
3680
  }
3587
3681
  }
3588
- class us {
3589
- constructor(e = Q.mustache) {
3590
- h(this, "routerEnabled", !1), h(this, "cachedQuery", ""), h(this, "routerHelper"), h(this, "searchHelper"), h(this, "searchResultsConfig"), h(this, "searchPaginationConfig"), h(this, "searchFeedbackConfig"), h(this, "searchSortingConfig"), h(this, "searchFacetsConfig"), h(this, "relatedSearchesConfig"), h(this, "externalPromotionsConfig"), h(this, "searchInputWidget"), h(this, "searchResultsWidget"), h(this, "searchFacetsWidget"), h(this, "searchPaginationWidget"), h(this, "searchFeedbackWidget"), h(this, "searchSortingWidget"), h(this, "relatedSearchesWidget"), h(this, "externalPromotionsWidget"), h(this, "answerWidget"), h(this, "dataLayer"), h(this, "firstRequest", !0), h(this, "previousQuery", ""), h(this, "renderEngine", Q.mustache), e && (this.renderEngine = e);
3682
+ class ds {
3683
+ constructor(e = q.mustache) {
3684
+ h(this, "routerEnabled", !1), h(this, "cachedQuery", ""), h(this, "routerHelper"), h(this, "searchHelper"), h(this, "searchResultsConfig"), h(this, "searchPaginationConfig"), h(this, "searchFeedbackConfig"), h(this, "searchSortingConfig"), h(this, "searchFacetsConfig"), h(this, "relatedSearchesConfig"), h(this, "externalPromotionsConfig"), h(this, "searchInputWidget"), h(this, "searchResultsWidget"), h(this, "searchFacetsWidget"), h(this, "searchPaginationWidget"), h(this, "searchFeedbackWidget"), h(this, "searchSortingWidget"), h(this, "relatedSearchesWidget"), h(this, "externalPromotionsWidget"), h(this, "answerWidget"), h(this, "dataLayer"), h(this, "firstRequest", !0), h(this, "previousQuery", ""), h(this, "renderEngine", q.mustache), e && (this.renderEngine = e);
3591
3685
  }
3592
- setRenderingEngine(e = Q.mustache) {
3686
+ setRenderingEngine(e = q.mustache) {
3593
3687
  this.dataLayer.setRenderingEngine(e);
3594
3688
  }
3595
3689
  handleHooks() {
@@ -3617,11 +3711,11 @@ class us {
3617
3711
  }
3618
3712
  initialize(e) {
3619
3713
  var t, s;
3620
- if (this.dataLayer = new La("searchstax_session_id", e.sessionId), this.renderEngine && this.dataLayer.setRenderingEngine(this.renderEngine), this.handleHooks(), e.questionURL && (this.dataLayer.questionURL = e.questionURL), e.analyticsBaseUrl && typeof window < "u" && (window.analyticsBaseUrl = e.analyticsBaseUrl, window._msq = e._msq || [], this.attachAnalyticsScript(e.analyticsSrc)), e.autoCorrect === !1 && (this.dataLayer.autoCorrect = !1), e.language && this.dataLayer.setLanguage(e.language), this.dataLayer.searchstaxConfig || (this.dataLayer.setSearchstaxConfig(e), this.searchHelper = new Pa(
3714
+ if (this.dataLayer = new ja("searchstax_session_id", e.sessionId), this.renderEngine && this.dataLayer.setRenderingEngine(this.renderEngine), this.handleHooks(), e.questionURL && (this.dataLayer.questionURL = e.questionURL), e.analyticsBaseUrl && typeof window < "u" && (window.analyticsBaseUrl = e.analyticsBaseUrl, window._msq = e._msq || [], this.attachAnalyticsScript(e.analyticsSrc)), e.autoCorrect === !1 && (this.dataLayer.autoCorrect = !1), e.language && this.dataLayer.setLanguage(e.language), this.dataLayer.searchstaxConfig || (this.dataLayer.setSearchstaxConfig(e), this.searchHelper = new Aa(
3621
3715
  { ...e, sessionId: this.dataLayer.sessionId },
3622
3716
  this.dataLayer
3623
3717
  ), this.dataLayer.searchHelper = this.searchHelper), ((t = e.router) == null ? void 0 : t.enabled) === void 0 || ((s = e.router) == null ? void 0 : s.enabled) === !0) {
3624
- this.routerEnabled = !0, this.routerHelper = new Dt(
3718
+ this.routerEnabled = !0, this.routerHelper = new Ot(
3625
3719
  e.router ? e.router : { enabled: !0 }
3626
3720
  );
3627
3721
  const a = this.routerHelper.urlToSearchObject(
@@ -3636,7 +3730,7 @@ class us {
3636
3730
  );
3637
3731
  });
3638
3732
  } else
3639
- this.routerHelper = new Dt({});
3733
+ this.routerHelper = new Ot({});
3640
3734
  }
3641
3735
  search(e) {
3642
3736
  if (this.searchHelper) {
@@ -3681,13 +3775,13 @@ class us {
3681
3775
  this.handleRouter(), this.dataLayer.setItemsPerPage(
3682
3776
  parseInt(e.responseHeader.params.rows)
3683
3777
  );
3684
- let a = Ee.combineResultsWithMetadata(e), r = Ee.extractFacets(e);
3778
+ let a = ke.combineResultsWithMetadata(e), r = ke.extractFacets(e);
3685
3779
  this.dataLayer.setSearchFacets(r), (s = (t = this.dataLayer.searchstaxConfig) == null ? void 0 : t.hooks) != null && s.afterSearch && (a = this.dataLayer.searchstaxConfig.hooks.afterSearch(a)), this.dataLayer.setSearchExternalPromotions(e.externalLinks ?? []);
3686
- const n = Ee.extractSearchResultsMetadata(e);
3780
+ const n = ke.extractSearchResultsMetadata(e);
3687
3781
  this.dataLayer.setSearchResultsMetadata(n), this.dataLayer.setSearchResults(a);
3688
3782
  }
3689
3783
  parseAnswerResultsResponse(e) {
3690
- this.handleRouter(), e !== ye.question && e !== ye.notQuestion && (this.dataLayer.setAnswerLoading(!0), this.dataLayer.setAnswerData(this.dataLayer.getAnswerData + e));
3784
+ this.handleRouter(), e !== Me.question && e !== Me.notQuestion && (this.dataLayer.setAnswerLoading(!0), this.dataLayer.setAnswerData(this.dataLayer.getAnswerData + e));
3691
3785
  }
3692
3786
  cacheFacets() {
3693
3787
  var e;
@@ -3709,7 +3803,7 @@ class us {
3709
3803
  this.searchHelper && this.dataLayer.setLanguage(e);
3710
3804
  }
3711
3805
  addSearchInputWidget(e, t) {
3712
- this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new cs({
3806
+ this.dataLayer.searchInputConfig || (this.dataLayer.setSearchInputConfig(t), this.searchInputWidget = new os({
3713
3807
  containerId: e,
3714
3808
  config: t,
3715
3809
  searchTrigger: this.executeSearch.bind(this),
@@ -3718,14 +3812,14 @@ class us {
3718
3812
  }));
3719
3813
  }
3720
3814
  addAnswerWidget(e, t) {
3721
- this.dataLayer.turnAIAnswerGenerationOn = !0, this.startSSE(this.dataLayer.searchObject.query), this.dataLayer.setAnswerData(""), this.answerWidget = new hs({
3815
+ this.dataLayer.turnAIAnswerGenerationOn = !0, this.startSSE(this.dataLayer.searchObject.query), this.dataLayer.setAnswerData(""), this.answerWidget = new us({
3722
3816
  containerId: e,
3723
3817
  config: t,
3724
3818
  dataLayer: this.dataLayer
3725
3819
  });
3726
3820
  }
3727
3821
  addSearchResultsWidget(e, t) {
3728
- this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new os({
3822
+ this.searchResultsConfig || (this.searchResultsConfig = t, this.searchResultsWidget = new ls({
3729
3823
  containerId: e,
3730
3824
  linkClickCallback: this.executeLinkClick.bind(this),
3731
3825
  searchTrigger: this.executeSearch.bind(this),
@@ -3734,7 +3828,7 @@ class us {
3734
3828
  }));
3735
3829
  }
3736
3830
  addPaginationWidget(e, t) {
3737
- this.searchPaginationConfig = t, this.searchPaginationWidget = new rs({
3831
+ this.searchPaginationConfig = t, this.searchPaginationWidget = new is({
3738
3832
  containerId: e,
3739
3833
  config: t,
3740
3834
  dataLayer: this.dataLayer,
@@ -3742,7 +3836,7 @@ class us {
3742
3836
  });
3743
3837
  }
3744
3838
  addSearchFeedbackWidget(e, t) {
3745
- this.searchFeedbackConfig = t, this.searchFeedbackWidget = new ns({
3839
+ this.searchFeedbackConfig = t, this.searchFeedbackWidget = new cs({
3746
3840
  containerId: e,
3747
3841
  config: t,
3748
3842
  dataLayer: this.dataLayer,
@@ -3750,14 +3844,14 @@ class us {
3750
3844
  });
3751
3845
  }
3752
3846
  addSearchSortingWidget(e, t) {
3753
- this.searchSortingConfig = t, this.searchSortingWidget = new ls({
3847
+ this.searchSortingConfig = t, this.searchSortingWidget = new hs({
3754
3848
  containerId: e,
3755
3849
  config: t,
3756
3850
  dataLayer: this.dataLayer
3757
3851
  });
3758
3852
  }
3759
3853
  addRelatedSearchesWidget(e, t) {
3760
- this.relatedSearchesConfig = t, this.relatedSearchesWidget = new is({
3854
+ this.relatedSearchesConfig = t, this.relatedSearchesWidget = new ns({
3761
3855
  containerId: e,
3762
3856
  config: t,
3763
3857
  dataLayer: this.dataLayer,
@@ -3767,14 +3861,14 @@ class us {
3767
3861
  }, 0);
3768
3862
  }
3769
3863
  addExternalPromotionsWidget(e, t) {
3770
- this.externalPromotionsConfig = t, this.externalPromotionsWidget = new as({
3864
+ this.externalPromotionsConfig = t, this.externalPromotionsWidget = new ss({
3771
3865
  containerId: e,
3772
3866
  config: t,
3773
3867
  dataLayer: this.dataLayer
3774
3868
  });
3775
3869
  }
3776
3870
  addFacetsWidget(e, t) {
3777
- this.searchFacetsConfig = t, this.searchFacetsWidget = new ss(
3871
+ this.searchFacetsConfig = t, this.searchFacetsWidget = new rs(
3778
3872
  {
3779
3873
  containerId: e,
3780
3874
  config: t,
@@ -3804,7 +3898,7 @@ class us {
3804
3898
  }
3805
3899
  executeLinkClick(e) {
3806
3900
  var t, s;
3807
- let a = Ee.findResultByUniqueId(
3901
+ let a = ke.findResultByUniqueId(
3808
3902
  e,
3809
3903
  this.dataLayer.searchResults ?? []
3810
3904
  );
@@ -3814,6 +3908,7 @@ class us {
3814
3908
  }).then(() => {
3815
3909
  typeof window < "u" && (window.location.href = (a == null ? void 0 : a.url) ?? "");
3816
3910
  }).catch(() => {
3911
+ typeof window < "u" && (window.location.href = (a == null ? void 0 : a.url) ?? "");
3817
3912
  }));
3818
3913
  }
3819
3914
  setPage(e) {
@@ -3830,11 +3925,11 @@ class us {
3830
3925
  }
3831
3926
  const C = {
3832
3927
  //@ts-ignore
3833
- searchstax: new us("react")
3928
+ searchstax: new ds("react")
3834
3929
  };
3835
- function gs(i) {
3930
+ function ms(i) {
3836
3931
  let e = !1;
3837
- const [t, s] = _([]);
3932
+ const [t, s] = W([]);
3838
3933
  ne(() => {
3839
3934
  if (a(), C.searchstax) {
3840
3935
  const l = {};
@@ -3909,7 +4004,7 @@ function gs(i) {
3909
4004
  ] }) }) });
3910
4005
  }
3911
4006
  function ps(i) {
3912
- const [e, t] = _(!1);
4007
+ const [e, t] = W(!1);
3913
4008
  return ne(() => {
3914
4009
  const s = {};
3915
4010
  i.beforeSearch && (s.beforeSearch = i.beforeSearch), i != null && i.afterSearch && (s.afterSearch = i.afterSearch), C.searchstax.initialize({
@@ -3935,18 +4030,18 @@ function ps(i) {
3935
4030
  " "
3936
4031
  ] }) });
3937
4032
  }
3938
- function ms(i) {
3939
- const [e, t] = _(
4033
+ function Ls(i) {
4034
+ const [e, t] = W(
3940
4035
  null
3941
- ), s = ya();
4036
+ ), s = Ma();
3942
4037
  s.current = e;
3943
- const [a, r] = _(""), [n, c] = _(
4038
+ const [a, r] = W(""), [n, c] = W(
3944
4039
  null
3945
- ), l = (g, p) => {
3946
- p.preventDefault(), p.stopPropagation(), C.searchstax.executeLinkClick(g.uniqueId);
4040
+ ), l = (g, m) => {
4041
+ m.preventDefault(), m.stopPropagation(), C.searchstax.executeLinkClick(g.uniqueId);
3947
4042
  };
3948
4043
  ne(() => {
3949
- f();
4044
+ L();
3950
4045
  const g = {};
3951
4046
  i.afterLinkClick && (g.afterLinkClick = i.afterLinkClick), C.searchstax.addSearchResultsWidget("searchstax-results-container", {
3952
4047
  templates: {},
@@ -3957,12 +4052,12 @@ function ms(i) {
3957
4052
  function d(g) {
3958
4053
  C.searchstax.executeSearch(g);
3959
4054
  }
3960
- function f() {
4055
+ function L() {
3961
4056
  C.searchstax.dataLayer.$searchResults.subscribe(
3962
4057
  (g) => {
3963
- var x;
3964
- const p = s.current ?? [], w = g ?? [], E = i.renderMethod === "infiniteScroll" ? [...p, ...w] : g;
3965
- ((x = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : x.page) === 1 ? t(w) : t(E);
4058
+ var y;
4059
+ const m = s.current ?? [], j = g ?? [], k = i.renderMethod === "infiniteScroll" ? [...m, ...j] : g;
4060
+ ((y = C.searchstax.dataLayer.$searchObject.value) == null ? void 0 : y.page) === 1 ? t(j) : t(k);
3966
4061
  }
3967
4062
  ), C.searchstax.dataLayer.$searchTermChange.subscribe((g) => {
3968
4063
  r(g);
@@ -4018,11 +4113,11 @@ function ms(i) {
4018
4113
  "a",
4019
4114
  {
4020
4115
  href: g.url ?? "",
4021
- onClick: (p) => {
4022
- l(g, p);
4116
+ onClick: (m) => {
4117
+ l(g, m);
4023
4118
  },
4024
- onKeyDown: (p) => {
4025
- (p.key === "Enter" || p.key === " ") && l(g, p);
4119
+ onKeyDown: (m) => {
4120
+ (m.key === "Enter" || m.key === " ") && l(g, m);
4026
4121
  },
4027
4122
  tabIndex: 0,
4028
4123
  "data-searchstax-unique-result-id": g.uniqueId,
@@ -4044,17 +4139,17 @@ function ms(i) {
4044
4139
  /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-title-container", children: /* @__PURE__ */ u.jsx("span", { className: "searchstax-search-result-title", dangerouslySetInnerHTML: { __html: g.title ?? "" } }) }),
4045
4140
  g.paths && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", dangerouslySetInnerHTML: { __html: g.paths } }),
4046
4141
  g.description && /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-description searchstax-search-result-common", dangerouslySetInnerHTML: { __html: g.description } }),
4047
- g.unmappedFields.map(function(p) {
4142
+ g.unmappedFields.map(function(m) {
4048
4143
  return /* @__PURE__ */ u.jsxs("div", { children: [
4049
- p.isImage && typeof p.value == "string" && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-image-container", children: /* @__PURE__ */ u.jsx(
4144
+ m.isImage && typeof m.value == "string" && /* @__PURE__ */ u.jsx("div", { className: "searchstax-search-result-image-container", children: /* @__PURE__ */ u.jsx(
4050
4145
  "img",
4051
4146
  {
4052
- src: p.value,
4147
+ src: m.value,
4053
4148
  className: "searchstax-result-image"
4054
4149
  }
4055
4150
  ) }),
4056
- !p.isImage && /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", dangerouslySetInnerHTML: { __html: p.value } }) })
4057
- ] }, p.key);
4151
+ !m.isImage && /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx("p", { className: "searchstax-search-result-common", dangerouslySetInnerHTML: { __html: m.value } }) })
4152
+ ] }, m.key);
4058
4153
  })
4059
4154
  ]
4060
4155
  },
@@ -4069,9 +4164,9 @@ function ms(i) {
4069
4164
  }
4070
4165
  function fs(i) {
4071
4166
  let e = !1;
4072
- const [t, s] = _(!1), [a, r] = _(
4167
+ const [t, s] = W(!1), [a, r] = W(
4073
4168
  null
4074
- ), [n] = _(Math.random());
4169
+ ), [n] = W(Math.random());
4075
4170
  ne(() => {
4076
4171
  if (c(), C.searchstax)
4077
4172
  C.searchstax.addPaginationWidget(
@@ -4097,14 +4192,14 @@ function fs(i) {
4097
4192
  ));
4098
4193
  }
4099
4194
  function d(g) {
4100
- var p;
4101
- (p = C.searchstax.searchPaginationWidget) == null || p.nextPage(
4195
+ var m;
4196
+ (m = C.searchstax.searchPaginationWidget) == null || m.nextPage(
4102
4197
  g
4103
4198
  );
4104
4199
  }
4105
- function f(g) {
4106
- var p;
4107
- (p = C.searchstax.searchPaginationWidget) == null || p.previousPage(
4200
+ function L(g) {
4201
+ var m;
4202
+ (m = C.searchstax.searchPaginationWidget) == null || m.previousPage(
4108
4203
  g
4109
4204
  );
4110
4205
  }
@@ -4116,10 +4211,10 @@ function fs(i) {
4116
4211
  className: `searchstax-pagination-previous ${a.isFirstPage ? "disabled" : ""}`,
4117
4212
  style: a != null && a.isFirstPage ? { pointerEvents: "none" } : {},
4118
4213
  onClick: (g) => {
4119
- f(g);
4214
+ L(g);
4120
4215
  },
4121
4216
  onKeyDown: (g) => {
4122
- (g.key === "Enter" || g.key === " ") && f(g);
4217
+ (g.key === "Enter" || g.key === " ") && L(g);
4123
4218
  },
4124
4219
  tabIndex: 0,
4125
4220
  id: "searchstax-pagination-previous",
@@ -4157,7 +4252,7 @@ function fs(i) {
4157
4252
  }
4158
4253
  )
4159
4254
  ] }) }),
4160
- i.paginationTemplate && a && !a.isInfiniteScroll && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.paginationTemplate(a, d, f) }),
4255
+ i.paginationTemplate && a && !a.isInfiniteScroll && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.paginationTemplate(a, d, L) }),
4161
4256
  !i.infiniteScrollTemplate && a && a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && !(a != null && a.isLastPage) && /* @__PURE__ */ u.jsx("div", { className: "searchstax-pagination-container", children: /* @__PURE__ */ u.jsx(
4162
4257
  "a",
4163
4258
  {
@@ -4175,11 +4270,11 @@ function fs(i) {
4175
4270
  i.infiniteScrollTemplate && a && a.isInfiniteScroll && (a == null ? void 0 : a.totalResults) !== 0 && !(a != null && a.isLastPage) && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.infiniteScrollTemplate(a, d) })
4176
4271
  ] }) });
4177
4272
  }
4178
- function vs(i) {
4273
+ function Ms(i) {
4179
4274
  let e = !1;
4180
- const [t, s] = _(
4275
+ const [t, s] = W(
4181
4276
  null
4182
- ), [a, r] = _(""), [n] = _(Math.random());
4277
+ ), [a, r] = W(""), [n] = W(Math.random());
4183
4278
  ne(() => {
4184
4279
  if (c(), C.searchstax)
4185
4280
  C.searchstax.addSearchSortingWidget(
@@ -4201,8 +4296,8 @@ function vs(i) {
4201
4296
  ), e = !0);
4202
4297
  }
4203
4298
  function l(d) {
4204
- var f;
4205
- (f = C.searchstax.searchSortingWidget) == null || f.setOrderQuery(d);
4299
+ var L;
4300
+ (L = C.searchstax.searchSortingWidget) == null || L.setOrderQuery(d);
4206
4301
  }
4207
4302
  return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "search-sorting-container" + n, children: [
4208
4303
  !i.searchSortingTemplate && t && (t == null ? void 0 : t.searchExecuted) && (t == null ? void 0 : t.hasResultsOrExternalPromotions) && /* @__PURE__ */ u.jsxs("div", { className: "searchstax-sorting-container", children: [
@@ -4231,7 +4326,7 @@ function vs(i) {
4231
4326
  }
4232
4327
  function ys(i) {
4233
4328
  let e = !1;
4234
- const [t, s] = _(null), [a] = _(Math.random());
4329
+ const [t, s] = W(null), [a] = W(Math.random());
4235
4330
  ne(() => {
4236
4331
  if (r(), C.searchstax)
4237
4332
  C.searchstax.addSearchFeedbackWidget("search-feedback-container" + a, {});
@@ -4291,20 +4386,20 @@ function ys(i) {
4291
4386
  i.searchOverviewTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchOverviewTemplate(t, n) })
4292
4387
  ] }) });
4293
4388
  }
4294
- function xs(i) {
4295
- const [e, t] = _(
4389
+ function vs(i) {
4390
+ const [e, t] = W(
4296
4391
  null
4297
- ), [s, a] = _(
4392
+ ), [s, a] = W(
4298
4393
  null
4299
- ), [r, n] = _(
4394
+ ), [r, n] = W(
4300
4395
  []
4301
- ), [c, l] = _(
4396
+ ), [c, l] = W(
4302
4397
  {}
4303
- ), d = {}, f = Math.random();
4398
+ ), d = {}, L = Math.random();
4304
4399
  let g = !1;
4305
4400
  ne(() => {
4306
- if (p(), C.searchstax)
4307
- C.searchstax.addFacetsWidget("searchstax-facets-container" + f, {
4401
+ if (m(), C.searchstax)
4402
+ C.searchstax.addFacetsWidget("searchstax-facets-container" + L, {
4308
4403
  facetingType: i.facetingType,
4309
4404
  specificFacets: i.specificFacets,
4310
4405
  itemsPerPageDesktop: i.itemsPerPageDesktop,
@@ -4313,89 +4408,89 @@ function xs(i) {
4313
4408
  else
4314
4409
  throw Error("Searchstax instance needs to be passed via props");
4315
4410
  }, []);
4316
- function p() {
4411
+ function m() {
4317
4412
  g || (C.searchstax.dataLayer.$facetsTemplateData.subscribe(
4318
- (v) => {
4319
- v != null && v.isMobile ? a(v) : t(v);
4413
+ (f) => {
4414
+ f != null && f.isMobile ? a(f) : t(f);
4320
4415
  }
4321
4416
  ), C.searchstax.dataLayer.$selectedFacetsTemplateData.subscribe(
4322
- (v) => {
4417
+ (f) => {
4323
4418
  n(
4324
- (v ?? []).filter((A) => A.type === "checkbox")
4419
+ (f ?? []).filter((N) => N.type === "checkbox")
4325
4420
  );
4326
4421
  }
4327
4422
  ), g = !0);
4328
4423
  }
4329
- function w(v) {
4330
- var b;
4331
- (b = C.searchstax.searchFacetsWidget) == null || b.unselectFacet(v);
4332
- }
4333
- function E() {
4424
+ function j(f) {
4334
4425
  var v;
4335
- (v = C.searchstax.searchFacetsWidget) == null || v.removeSelectedFacets();
4426
+ (v = C.searchstax.searchFacetsWidget) == null || v.unselectFacet(f);
4427
+ }
4428
+ function k() {
4429
+ var f;
4430
+ (f = C.searchstax.searchFacetsWidget) == null || f.removeSelectedFacets();
4336
4431
  }
4337
- function x(v) {
4338
- return !c[v];
4432
+ function y(f) {
4433
+ return !c[f];
4339
4434
  }
4340
- function S(v) {
4341
- x(v) ? l({ ...c, [v]: !0 }) : l({ ...c, [v]: !1 });
4435
+ function w(f) {
4436
+ y(f) ? l({ ...c, [f]: !0 }) : l({ ...c, [f]: !1 });
4342
4437
  }
4343
- function R(v) {
4344
- var b;
4345
- return (b = C.searchstax.searchFacetsWidget) == null ? void 0 : b.isChecked(v);
4438
+ function T(f) {
4439
+ var v;
4440
+ return (v = C.searchstax.searchFacetsWidget) == null ? void 0 : v.isChecked(f);
4346
4441
  }
4347
- function k(v, b, A, B, ee) {
4442
+ function S(f, v, N, J, ee) {
4348
4443
  var re;
4349
- const se = ee ? "mobile-" : "desktop-", X = document.getElementsByClassName(se + v);
4350
- X[0] && ((re = C.searchstax.searchFacetsWidget) == null || re.onFacetSelect(
4351
- b,
4352
- A,
4353
- X[0],
4444
+ const se = ee ? "mobile-" : "desktop-", Z = document.getElementsByClassName(se + f);
4445
+ Z[0] && ((re = C.searchstax.searchFacetsWidget) == null || re.onFacetSelect(
4446
+ v,
4447
+ N,
4448
+ Z[0],
4354
4449
  !1,
4355
- R(A)
4450
+ T(N)
4356
4451
  ));
4357
4452
  }
4358
- function $(v, b) {
4359
- var A;
4360
- (A = C.searchstax.searchFacetsWidget) == null || A.onShowMoreLessClick(
4453
+ function F(f, v) {
4454
+ var N;
4455
+ (N = C.searchstax.searchFacetsWidget) == null || N.onShowMoreLessClick(
4456
+ f,
4361
4457
  v,
4362
- b,
4363
4458
  !1
4364
4459
  );
4365
4460
  }
4366
- function W(v, b) {
4367
- var A;
4368
- (A = C.searchstax.searchFacetsWidget) == null || A.onShowMoreLessClick(
4461
+ function Y(f, v) {
4462
+ var N;
4463
+ (N = C.searchstax.searchFacetsWidget) == null || N.onShowMoreLessClick(
4464
+ f,
4369
4465
  v,
4370
- b,
4371
4466
  !0
4372
4467
  );
4373
4468
  }
4374
- function N() {
4375
- var v;
4376
- (v = C.searchstax.searchFacetsWidget) == null || v.openOverlay();
4469
+ function z() {
4470
+ var f;
4471
+ (f = C.searchstax.searchFacetsWidget) == null || f.openOverlay();
4377
4472
  }
4378
- function J() {
4379
- var v;
4380
- (v = C.searchstax.searchFacetsWidget) == null || v.closeOverlay();
4473
+ function _() {
4474
+ var f;
4475
+ (f = C.searchstax.searchFacetsWidget) == null || f.closeOverlay();
4381
4476
  }
4382
- return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-facets-container" + f, children: [
4383
- (e == null ? void 0 : e.hasResultsOrExternalPromotions) && !i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-desktop", children: e == null ? void 0 : e.facets.map((v) => /* @__PURE__ */ u.jsx(
4477
+ return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-facets-container" + L, children: [
4478
+ (e == null ? void 0 : e.hasResultsOrExternalPromotions) && !i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-desktop", children: e == null ? void 0 : e.facets.map((f) => /* @__PURE__ */ u.jsx(
4384
4479
  "div",
4385
4480
  {
4386
- className: `searchstax-facet-container ${x(v.name) ? "active" : ""}`,
4481
+ className: `searchstax-facet-container ${y(f.name) ? "active" : ""}`,
4387
4482
  children: /* @__PURE__ */ u.jsxs("div", { children: [
4388
4483
  /* @__PURE__ */ u.jsxs(
4389
4484
  "div",
4390
4485
  {
4391
4486
  className: "searchstax-facet-title-container",
4392
4487
  onClick: () => {
4393
- S(v.name);
4488
+ w(f.name);
4394
4489
  },
4395
4490
  children: [
4396
4491
  /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-title", children: [
4397
4492
  " ",
4398
- v.label,
4493
+ f.label,
4399
4494
  " "
4400
4495
  ] }),
4401
4496
  /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-title-arrow active" })
@@ -4403,32 +4498,32 @@ function xs(i) {
4403
4498
  }
4404
4499
  ),
4405
4500
  /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
4406
- v.values.map(
4501
+ f.values.map(
4407
4502
  //@ts-ignore
4408
- (b, A) => (d[A + v.name] = At(), /* @__PURE__ */ u.jsxs(
4503
+ (v, N) => (d[N + f.name] = Nt(), /* @__PURE__ */ u.jsxs(
4409
4504
  "div",
4410
4505
  {
4411
- className: `searchstax-facet-value-container ${b.disabled ? "searchstax-facet-value-disabled" : ""}`,
4412
- ref: d[A + v.name],
4506
+ className: `searchstax-facet-value-container ${v.disabled ? "searchstax-facet-value-disabled" : ""}`,
4507
+ ref: d[N + f.name],
4413
4508
  children: [
4414
4509
  /* @__PURE__ */ u.jsx(
4415
4510
  "div",
4416
4511
  {
4417
- className: "searchstax-facet-input desktop-" + A + v.name,
4512
+ className: "searchstax-facet-input desktop-" + N + f.name,
4418
4513
  children: /* @__PURE__ */ u.jsx(
4419
4514
  "input",
4420
4515
  {
4421
4516
  type: "checkbox",
4422
4517
  className: "searchstax-facet-input-checkbox",
4423
- checked: R(b),
4424
- "aria-label": b.value + " " + b.count,
4518
+ checked: T(v),
4519
+ "aria-label": v.value + " " + v.count,
4425
4520
  readOnly: !0,
4426
- disabled: b.disabled,
4427
- onClick: (B) => {
4428
- k(
4429
- A + v.name,
4430
- B,
4431
- b
4521
+ disabled: v.disabled,
4522
+ onClick: (J) => {
4523
+ S(
4524
+ N + f.name,
4525
+ J,
4526
+ v
4432
4527
  );
4433
4528
  }
4434
4529
  }
@@ -4439,68 +4534,68 @@ function xs(i) {
4439
4534
  "div",
4440
4535
  {
4441
4536
  className: "searchstax-facet-value-label",
4442
- onClick: (B) => {
4443
- k(
4444
- A + v.name,
4445
- B,
4446
- b
4537
+ onClick: (J) => {
4538
+ S(
4539
+ N + f.name,
4540
+ J,
4541
+ v
4447
4542
  );
4448
4543
  },
4449
- children: b.value
4544
+ children: v.value
4450
4545
  }
4451
4546
  ),
4452
4547
  /* @__PURE__ */ u.jsxs(
4453
4548
  "div",
4454
4549
  {
4455
4550
  className: "searchstax-facet-value-count",
4456
- onClick: (B) => {
4457
- k(
4458
- A + v.name,
4459
- B,
4460
- b
4551
+ onClick: (J) => {
4552
+ S(
4553
+ N + f.name,
4554
+ J,
4555
+ v
4461
4556
  );
4462
4557
  },
4463
4558
  children: [
4464
4559
  "(",
4465
- b.count,
4560
+ v.count,
4466
4561
  ")"
4467
4562
  ]
4468
4563
  }
4469
4564
  )
4470
4565
  ]
4471
4566
  },
4472
- b.value + b.parentName
4567
+ v.value + v.parentName
4473
4568
  ))
4474
4569
  ),
4475
- v.hasMoreFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-container", children: /* @__PURE__ */ u.jsxs(
4570
+ f.hasMoreFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-container", children: /* @__PURE__ */ u.jsxs(
4476
4571
  "div",
4477
4572
  {
4478
4573
  className: "searchstax-facet-show-more-container",
4479
- onClick: (b) => {
4480
- $(b, v);
4574
+ onClick: (v) => {
4575
+ F(v, f);
4481
4576
  },
4482
- onKeyDown: (b) => {
4483
- (b.key === "Enter" || b.key === " ") && $(b, v);
4577
+ onKeyDown: (v) => {
4578
+ (v.key === "Enter" || v.key === " ") && F(v, f);
4484
4579
  },
4485
4580
  children: [
4486
- v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
4487
- !v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-button searchstax-facet-show-button", children: "more" })
4581
+ f.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
4582
+ !f.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-button searchstax-facet-show-button", children: "more" })
4488
4583
  ]
4489
4584
  }
4490
4585
  ) })
4491
4586
  ] })
4492
4587
  ] })
4493
4588
  },
4494
- v.name + "desktop"
4589
+ f.name + "desktop"
4495
4590
  )) }),
4496
4591
  i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateDesktop(
4497
4592
  e,
4498
4593
  d,
4499
- x,
4594
+ y,
4595
+ w,
4500
4596
  S,
4501
- k,
4502
- R,
4503
- $
4597
+ T,
4598
+ F
4504
4599
  ) }),
4505
4600
  (s == null ? void 0 : s.hasResultsOrExternalPromotions) && !i.facetsTemplateMobile && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pills-container", children: [
4506
4601
  /* @__PURE__ */ u.jsx(
@@ -4508,37 +4603,37 @@ function xs(i) {
4508
4603
  {
4509
4604
  className: "searchstax-facets-pill searchstax-facets-pill-filter-by",
4510
4605
  onClick: () => {
4511
- N();
4606
+ z();
4512
4607
  },
4513
4608
  children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-label", children: "Filter By" })
4514
4609
  }
4515
4610
  ),
4516
4611
  /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pills-selected", children: [
4517
- r.map((v) => /* @__PURE__ */ u.jsxs(
4612
+ r.map((f) => /* @__PURE__ */ u.jsxs(
4518
4613
  "div",
4519
4614
  {
4520
4615
  className: "searchstax-facets-pill searchstax-facets-pill-facets",
4521
4616
  onClick: () => {
4522
- w(v);
4617
+ j(f);
4523
4618
  },
4524
4619
  children: [
4525
4620
  /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facets-pill-label", children: [
4526
- v.value,
4621
+ f.value,
4527
4622
  " (",
4528
- v.count,
4623
+ f.count,
4529
4624
  ")"
4530
4625
  ] }),
4531
4626
  /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-icon-close" })
4532
4627
  ]
4533
4628
  },
4534
- v.value
4629
+ f.value
4535
4630
  )),
4536
4631
  r.length !== 0 && /* @__PURE__ */ u.jsx(
4537
4632
  "div",
4538
4633
  {
4539
4634
  className: "searchstax-facets-pill searchstax-clear-filters searchstax-facets-pill-clear-all",
4540
4635
  onClick: () => {
4541
- E();
4636
+ k();
4542
4637
  },
4543
4638
  children: /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-pill-label", children: "Clear Filters" })
4544
4639
  }
@@ -4557,27 +4652,27 @@ function xs(i) {
4557
4652
  {
4558
4653
  className: "searchstax-search-close",
4559
4654
  onClick: () => {
4560
- J();
4655
+ _();
4561
4656
  }
4562
4657
  }
4563
4658
  )
4564
4659
  ] }),
4565
- /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: s == null ? void 0 : s.facets.map((v) => /* @__PURE__ */ u.jsx(
4660
+ /* @__PURE__ */ u.jsx("div", { className: "searchstax-facets-container-mobile", children: s == null ? void 0 : s.facets.map((f) => /* @__PURE__ */ u.jsx(
4566
4661
  "div",
4567
4662
  {
4568
- className: `searchstax-facet-container ${x(v.name) ? "active" : ""}`,
4663
+ className: `searchstax-facet-container ${y(f.name) ? "active" : ""}`,
4569
4664
  children: /* @__PURE__ */ u.jsxs("div", { children: [
4570
4665
  /* @__PURE__ */ u.jsxs(
4571
4666
  "div",
4572
4667
  {
4573
4668
  className: "searchstax-facet-title-container",
4574
4669
  onClick: () => {
4575
- S(v.name);
4670
+ w(f.name);
4576
4671
  },
4577
4672
  children: [
4578
4673
  /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-title", children: [
4579
4674
  " ",
4580
- v.label,
4675
+ f.label,
4581
4676
  " "
4582
4677
  ] }),
4583
4678
  /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-title-arrow active" })
@@ -4585,32 +4680,32 @@ function xs(i) {
4585
4680
  }
4586
4681
  ),
4587
4682
  /* @__PURE__ */ u.jsxs("div", { className: "searchstax-facet-values-container", children: [
4588
- v.values.map(
4683
+ f.values.map(
4589
4684
  //@ts-ignore
4590
- (b, A) => (d[A + v.name] = At(), /* @__PURE__ */ u.jsxs(
4685
+ (v, N) => (d[N + f.name] = Nt(), /* @__PURE__ */ u.jsxs(
4591
4686
  "div",
4592
4687
  {
4593
- className: `searchstax-facet-value-container ${b.disabled ? "searchstax-facet-value-disabled" : ""}`,
4594
- ref: d[A + v.name],
4688
+ className: `searchstax-facet-value-container ${v.disabled ? "searchstax-facet-value-disabled" : ""}`,
4689
+ ref: d[N + f.name],
4595
4690
  children: [
4596
4691
  /* @__PURE__ */ u.jsx(
4597
4692
  "div",
4598
4693
  {
4599
- className: "searchstax-facet-input mobile-" + A + v.name,
4694
+ className: "searchstax-facet-input mobile-" + N + f.name,
4600
4695
  children: /* @__PURE__ */ u.jsx(
4601
4696
  "input",
4602
4697
  {
4603
4698
  type: "checkbox",
4604
4699
  className: "searchstax-facet-input-checkbox",
4605
- checked: R(b),
4606
- "aria-label": b.value + " " + b.count,
4700
+ checked: T(v),
4701
+ "aria-label": v.value + " " + v.count,
4607
4702
  readOnly: !0,
4608
- disabled: b.disabled,
4609
- onClick: (B) => {
4610
- k(
4611
- A + v.name,
4612
- B,
4613
- b,
4703
+ disabled: v.disabled,
4704
+ onClick: (J) => {
4705
+ S(
4706
+ N + f.name,
4707
+ J,
4708
+ v,
4614
4709
  !0,
4615
4710
  !0
4616
4711
  );
@@ -4623,37 +4718,37 @@ function xs(i) {
4623
4718
  "div",
4624
4719
  {
4625
4720
  className: "searchstax-facet-value-label",
4626
- onClick: (B) => {
4627
- k(
4628
- A + v.name,
4629
- B,
4630
- b
4721
+ onClick: (J) => {
4722
+ S(
4723
+ N + f.name,
4724
+ J,
4725
+ v
4631
4726
  );
4632
4727
  },
4633
- children: b.value
4728
+ children: v.value
4634
4729
  }
4635
4730
  ),
4636
4731
  /* @__PURE__ */ u.jsxs(
4637
4732
  "div",
4638
4733
  {
4639
4734
  className: "searchstax-facet-value-count",
4640
- onClick: (B) => {
4641
- k(
4642
- A + v.name,
4643
- B,
4644
- b
4735
+ onClick: (J) => {
4736
+ S(
4737
+ N + f.name,
4738
+ J,
4739
+ v
4645
4740
  );
4646
4741
  },
4647
4742
  children: [
4648
4743
  "(",
4649
- b.count,
4744
+ v.count,
4650
4745
  ")"
4651
4746
  ]
4652
4747
  }
4653
4748
  )
4654
4749
  ]
4655
4750
  },
4656
- b.value + b.parentName
4751
+ v.value + v.parentName
4657
4752
  ))
4658
4753
  ),
4659
4754
  /* @__PURE__ */ u.jsx(
@@ -4665,16 +4760,16 @@ function xs(i) {
4665
4760
  "div",
4666
4761
  {
4667
4762
  className: "searchstax-facet-show-more-container",
4668
- onClick: (b) => {
4669
- W(b, v);
4763
+ onClick: (v) => {
4764
+ Y(v, f);
4670
4765
  },
4671
- onKeyDown: (b) => {
4672
- (b.key === "Enter" || b.key === " ") && W(b, v);
4766
+ onKeyDown: (v) => {
4767
+ (v.key === "Enter" || v.key === " ") && Y(v, f);
4673
4768
  },
4674
4769
  tabIndex: 0,
4675
4770
  children: [
4676
- v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
4677
- !v.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-button searchstax-facet-show-button", children: "more" })
4771
+ f.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-less-button searchstax-facet-show-button", children: "less" }),
4772
+ !f.showingAllFacets && /* @__PURE__ */ u.jsx("div", { className: "searchstax-facet-show-more-button searchstax-facet-show-button", children: "more" })
4678
4773
  ]
4679
4774
  }
4680
4775
  )
@@ -4683,14 +4778,14 @@ function xs(i) {
4683
4778
  ] })
4684
4779
  ] })
4685
4780
  },
4686
- v.name + "mobile"
4781
+ f.name + "mobile"
4687
4782
  )) }),
4688
4783
  /* @__PURE__ */ u.jsx(
4689
4784
  "button",
4690
4785
  {
4691
4786
  className: "searchstax-facets-mobile-overlay-done",
4692
4787
  onClick: () => {
4693
- J();
4788
+ _();
4694
4789
  },
4695
4790
  children: "Done"
4696
4791
  }
@@ -4703,21 +4798,21 @@ function xs(i) {
4703
4798
  s,
4704
4799
  r,
4705
4800
  d,
4706
- x,
4707
- S,
4708
- k,
4709
- R,
4801
+ y,
4710
4802
  w,
4711
- W,
4712
- N,
4713
- J,
4714
- E
4803
+ S,
4804
+ T,
4805
+ j,
4806
+ Y,
4807
+ z,
4808
+ _,
4809
+ k
4715
4810
  ) })
4716
4811
  ] }) });
4717
4812
  }
4718
- function bs(i) {
4813
+ function ws(i) {
4719
4814
  let e = !1;
4720
- const [t, s] = _(null), [a] = _(Math.random());
4815
+ const [t, s] = W(null), [a] = W(Math.random());
4721
4816
  ne(() => {
4722
4817
  if (r(), C.searchstax)
4723
4818
  C.searchstax.addRelatedSearchesWidget("searchstax-related-searches-container" + a, {
@@ -4766,11 +4861,11 @@ function bs(i) {
4766
4861
  i.searchRelatedSearchesTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchRelatedSearchesTemplate(t, n) })
4767
4862
  ] });
4768
4863
  }
4769
- function Ss(i) {
4864
+ function Cs(i) {
4770
4865
  let e = !1;
4771
- const [t, s] = _(
4866
+ const [t, s] = W(
4772
4867
  null
4773
- ), [a] = _(Math.random());
4868
+ ), [a] = W(Math.random());
4774
4869
  ne(() => {
4775
4870
  if (r(), C.searchstax)
4776
4871
  C.searchstax.addExternalPromotionsWidget("searchstax-external-promotions-layout-container" + a, {});
@@ -4816,11 +4911,11 @@ function Ss(i) {
4816
4911
  i.searchExternalPromotionsTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchExternalPromotionsTemplate(t, n) })
4817
4912
  ] }) });
4818
4913
  }
4819
- function Cs(i) {
4914
+ function xs(i) {
4820
4915
  let e = !1;
4821
- const [t, s] = _(
4916
+ const [t, s] = W(
4822
4917
  null
4823
- ), [a] = _(Math.random());
4918
+ ), [a] = W(Math.random());
4824
4919
  ne(() => {
4825
4920
  if (n(), C.searchstax)
4826
4921
  C.searchstax.addAnswerWidget(
@@ -4871,14 +4966,14 @@ function Cs(i) {
4871
4966
  ] }) });
4872
4967
  }
4873
4968
  export {
4874
- Cs as SearchstaxAnswerWidget,
4875
- Ss as SearchstaxExternalPromotionsWidget,
4876
- xs as SearchstaxFacetsWidget,
4877
- gs as SearchstaxInputWidget,
4969
+ xs as SearchstaxAnswerWidget,
4970
+ Cs as SearchstaxExternalPromotionsWidget,
4971
+ vs as SearchstaxFacetsWidget,
4972
+ ms as SearchstaxInputWidget,
4878
4973
  ys as SearchstaxOverviewWidget,
4879
4974
  fs as SearchstaxPaginationWidget,
4880
- bs as SearchstaxRelatedSearchesWidget,
4881
- ms as SearchstaxResultWidget,
4882
- vs as SearchstaxSortingWidget,
4975
+ ws as SearchstaxRelatedSearchesWidget,
4976
+ Ls as SearchstaxResultWidget,
4977
+ Ms as SearchstaxSortingWidget,
4883
4978
  ps as SearchstaxWrapper
4884
4979
  };