@searchcraft/react-sdk 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as T } from "react/jsx-runtime";
2
- import _ from "react";
1
+ import { jsx as A } from "react/jsx-runtime";
2
+ import P from "react";
3
3
  const Zt = "searchcraft-javascript-sdk", G = (
4
4
  /* searchcraft-javascript-sdk */
5
5
  { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !1, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !0, svg: !0, taskQueue: !0, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !1, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
@@ -15,7 +15,7 @@ var er = Object.defineProperty, tr = (e, t) => {
15
15
  $instanceValues$: /* @__PURE__ */ new Map()
16
16
  };
17
17
  return r.$onReadyPromise$ = new Promise((s) => r.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], nt.set(e, r);
18
- }, Me = (e, t) => t in e, le = (e, t) => (0, console.error)(e, t), ne = /* @__PURE__ */ new Map(), sr = "slot-fb{display:contents}slot-fb[hidden]{display:none}", ue = typeof window < "u" ? window : {}, j = ue.document || { head: {} }, A = ue.HTMLElement || class {
18
+ }, Me = (e, t) => t in e, le = (e, t) => (0, console.error)(e, t), ne = /* @__PURE__ */ new Map(), sr = "slot-fb{display:contents}slot-fb[hidden]{display:none}", ue = typeof window < "u" ? window : {}, U = ue.document || { head: {} }, B = ue.HTMLElement || class {
19
19
  }, S = {
20
20
  $flags$: 0,
21
21
  $resourcesUrl$: "",
@@ -30,8 +30,8 @@ var er = Object.defineProperty, tr = (e, t) => {
30
30
  } catch {
31
31
  }
32
32
  return !1;
33
- })(), fe = !1, Be = [], ct = [], cr = (e, t) => (r) => {
34
- e.push(r), fe || (fe = !0, S.$flags$ & 4 ? me(pe) : S.raf(pe));
33
+ })(), fe = !1, De = [], ct = [], cr = (e, t) => (r) => {
34
+ e.push(r), fe || (fe = !0, S.$flags$ & 4 ? be(pe) : S.raf(pe));
35
35
  }, Ie = (e) => {
36
36
  for (let t = 0; t < e.length; t++)
37
37
  try {
@@ -41,8 +41,8 @@ var er = Object.defineProperty, tr = (e, t) => {
41
41
  }
42
42
  e.length = 0;
43
43
  }, pe = () => {
44
- Ie(Be), Ie(ct), (fe = Be.length > 0) && S.raf(pe);
45
- }, me = (e) => ar().then(e), ir = /* @__PURE__ */ cr(ct), Le = {}, or = "http://www.w3.org/2000/svg", lr = "http://www.w3.org/1999/xhtml", ye = (e) => (e = typeof e, e === "object" || e === "function");
44
+ Ie(De), Ie(ct), (fe = De.length > 0) && S.raf(pe);
45
+ }, be = (e) => ar().then(e), ir = /* @__PURE__ */ cr(ct), Le = {}, or = "http://www.w3.org/2000/svg", lr = "http://www.w3.org/1999/xhtml", ye = (e) => (e = typeof e, e === "object" || e === "function");
46
46
  function ur(e) {
47
47
  var t, r, s;
48
48
  return (s = (r = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : r.getAttribute("content")) != null ? s : void 0;
@@ -101,7 +101,7 @@ var fr = (e) => {
101
101
  return e(
102
102
  t === null ? {} : t,
103
103
  u,
104
- mr
104
+ br
105
105
  );
106
106
  const l = ae(e, null);
107
107
  return l.$attrs$ = t, u.length > 0 && (l.$children$ = u), l.$key$ = c, l.$name$ = a, l;
@@ -114,7 +114,7 @@ var fr = (e) => {
114
114
  $children$: null
115
115
  };
116
116
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
117
- }, gr = {}, br = (e) => e && e.$tag$ === gr, mr = {
117
+ }, gr = {}, mr = (e) => e && e.$tag$ === gr, br = {
118
118
  forEach: (e, t) => e.map(Oe).forEach(t),
119
119
  map: (e, t) => e.map(Oe).map(t).map(yr)
120
120
  }, Oe = (e) => ({
@@ -131,7 +131,7 @@ var fr = (e) => {
131
131
  }
132
132
  const t = ae(e.vtag, e.vtext);
133
133
  return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
134
- }, vr = (e, t) => e != null && !ye(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Fr = (e) => e, M = (e, t, r) => {
134
+ }, vr = (e, t) => e != null && !ye(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Fr = (e) => e, T = (e, t, r) => {
135
135
  const s = Fr(e);
136
136
  return {
137
137
  emit: (c) => ot(s, t, {
@@ -150,14 +150,14 @@ var fr = (e) => {
150
150
  }, Er = (e, t, r) => {
151
151
  var s;
152
152
  const c = lt(t), a = ne.get(c);
153
- if (e = e.nodeType === 11 ? e : j, a)
153
+ if (e = e.nodeType === 11 ? e : U, a)
154
154
  if (typeof a == "string") {
155
155
  e = e.head || e;
156
156
  let n = je.get(e), o;
157
157
  if (n || je.set(e, n = /* @__PURE__ */ new Set()), !n.has(c)) {
158
158
  {
159
- o = j.createElement("style"), o.innerHTML = a;
160
- const u = (s = S.$nonce$) != null ? s : ur(j);
159
+ o = U.createElement("style"), o.innerHTML = a;
160
+ const u = (s = S.$nonce$) != null ? s : ur(U);
161
161
  if (u != null && o.setAttribute("nonce", u), !(t.$flags$ & 1))
162
162
  if (e.nodeName === "HEAD") {
163
163
  const i = e.querySelectorAll("link[rel=preconnect]"), l = i.length > 0 ? i[i.length - 1].nextSibling : e.querySelector("style");
@@ -188,7 +188,7 @@ var fr = (e) => {
188
188
  if (r !== s) {
189
189
  let n = Me(e, t), o = t.toLowerCase();
190
190
  if (t === "class") {
191
- const u = e.classList, i = Ne(r), l = Ne(s);
191
+ const u = e.classList, i = qe(r), l = qe(s);
192
192
  u.remove(...i.filter((h) => h && !l.includes(h))), u.add(...l.filter((h) => h && !i.includes(h)));
193
193
  } else if (t === "style") {
194
194
  for (const u in r)
@@ -215,14 +215,14 @@ var fr = (e) => {
215
215
  s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || a & 4 || c) && !u && (s = s === !0 ? "" : s, e.setAttribute(t, s));
216
216
  }
217
217
  }
218
- }, Sr = /\s/, Ne = (e) => e ? e.split(Sr) : [], ut = "Capture", wr = new RegExp(ut + "$"), dt = (e, t, r) => {
218
+ }, Sr = /\s/, qe = (e) => e ? e.split(Sr) : [], ut = "Capture", wr = new RegExp(ut + "$"), dt = (e, t, r) => {
219
219
  const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, c = e && e.$attrs$ || Le, a = t.$attrs$ || Le;
220
- for (const n of qe(Object.keys(c)))
220
+ for (const n of Ne(Object.keys(c)))
221
221
  n in a || Ue(s, n, c[n], void 0, r, t.$flags$);
222
- for (const n of qe(Object.keys(a)))
222
+ for (const n of Ne(Object.keys(a)))
223
223
  Ue(s, n, c[n], a[n], r, t.$flags$);
224
224
  };
225
- function qe(e) {
225
+ function Ne(e) {
226
226
  return e.includes("ref") ? (
227
227
  // we need to sort these to ensure that `'ref'` is the last attr
228
228
  [...e.filter((t) => t !== "ref"), "ref"]
@@ -231,7 +231,7 @@ function qe(e) {
231
231
  e
232
232
  );
233
233
  }
234
- var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
234
+ var me, ve, ce = !1, ie = !1, Fe = !1, w = !1, oe = (e, t, r, s) => {
235
235
  var c;
236
236
  const a = t.$children$[r];
237
237
  let n = 0, o, u, i;
@@ -245,32 +245,32 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
245
245
  // where actual slot content should sit next to
246
246
  1
247
247
  ))), a.$text$ !== null)
248
- o = a.$elm$ = j.createTextNode(a.$text$);
248
+ o = a.$elm$ = U.createTextNode(a.$text$);
249
249
  else if (a.$flags$ & 1)
250
- o = a.$elm$ = j.createTextNode("");
250
+ o = a.$elm$ = U.createTextNode("");
251
251
  else {
252
- if (C || (C = a.$tag$ === "svg"), o = a.$elm$ = j.createElementNS(
253
- C ? or : lr,
252
+ if (w || (w = a.$tag$ === "svg"), o = a.$elm$ = U.createElementNS(
253
+ w ? or : lr,
254
254
  !ce && G.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
255
- ), C && a.$tag$ === "foreignObject" && (C = !1), dt(null, a, C), o.getRootNode().querySelector("body"), a.$children$)
255
+ ), w && a.$tag$ === "foreignObject" && (w = !1), dt(null, a, w), o.getRootNode().querySelector("body"), a.$children$)
256
256
  for (n = 0; n < a.$children$.length; ++n)
257
257
  u = oe(e, a, n), u && o.appendChild(u);
258
- a.$tag$ === "svg" ? C = !1 : o.tagName === "foreignObject" && (C = !0);
258
+ a.$tag$ === "svg" ? w = !1 : o.tagName === "foreignObject" && (w = !0);
259
259
  }
260
- return o["s-hn"] = ve, a.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = be, o["s-sn"] = a.$name$ || "", o["s-rf"] = (c = a.$attrs$) == null ? void 0 : c.ref, i = e && e.$children$ && e.$children$[r], i && i.$tag$ === a.$tag$ && e.$elm$ && K(e.$elm$, !1)), o;
260
+ return o["s-hn"] = ve, a.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = me, o["s-sn"] = a.$name$ || "", o["s-rf"] = (c = a.$attrs$) == null ? void 0 : c.ref, i = e && e.$children$ && e.$children$[r], i && i.$tag$ === a.$tag$ && e.$elm$ && K(e.$elm$, !1)), o;
261
261
  }, K = (e, t) => {
262
262
  S.$flags$ |= 1;
263
263
  const r = Array.from(e.childNodes);
264
264
  e["s-sr"] && G.experimentalSlotFixes;
265
265
  for (let s = r.length - 1; s >= 0; s--) {
266
266
  const c = r[s];
267
- c["s-hn"] !== ve && c["s-ol"] && (N(pt(c), c, xe(c)), c["s-ol"].remove(), c["s-ol"] = void 0, c["s-sh"] = void 0, Fe = !0), t && K(c, t);
267
+ c["s-hn"] !== ve && c["s-ol"] && (q(pt(c), c, xe(c)), c["s-ol"].remove(), c["s-ol"] = void 0, c["s-sh"] = void 0, Fe = !0), t && K(c, t);
268
268
  }
269
269
  S.$flags$ &= -2;
270
270
  }, ht = (e, t, r, s, c, a) => {
271
271
  let n = e["s-cr"] && e["s-cr"].parentNode || e, o;
272
272
  for (; c <= a; ++c)
273
- s[c] && (o = oe(null, r, c), o && (s[c].$elm$ = o, N(n, o, xe(t))));
273
+ s[c] && (o = oe(null, r, c), o && (s[c].$elm$ = o, q(n, o, xe(t))));
274
274
  }, ft = (e, t, r) => {
275
275
  for (let s = t; s <= r; ++s) {
276
276
  const c = e[s];
@@ -280,7 +280,7 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
280
280
  }
281
281
  }
282
282
  }, Cr = (e, t, r, s, c = !1) => {
283
- let a = 0, n = 0, o = 0, u = 0, i = t.length - 1, l = t[0], h = t[i], f = s.length - 1, g = s[0], b = s[f], v, y;
283
+ let a = 0, n = 0, o = 0, u = 0, i = t.length - 1, l = t[0], h = t[i], f = s.length - 1, g = s[0], m = s[f], v, y;
284
284
  for (; a <= i && n <= f; )
285
285
  if (l == null)
286
286
  l = t[++a];
@@ -288,23 +288,23 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
288
288
  h = t[--i];
289
289
  else if (g == null)
290
290
  g = s[++n];
291
- else if (b == null)
292
- b = s[--f];
291
+ else if (m == null)
292
+ m = s[--f];
293
293
  else if (Z(l, g, c))
294
294
  W(l, g, c), l = t[++a], g = s[++n];
295
- else if (Z(h, b, c))
296
- W(h, b, c), h = t[--i], b = s[--f];
297
- else if (Z(l, b, c))
298
- (l.$tag$ === "slot" || b.$tag$ === "slot") && K(l.$elm$.parentNode, !1), W(l, b, c), N(e, l.$elm$, h.$elm$.nextSibling), l = t[++a], b = s[--f];
295
+ else if (Z(h, m, c))
296
+ W(h, m, c), h = t[--i], m = s[--f];
297
+ else if (Z(l, m, c))
298
+ (l.$tag$ === "slot" || m.$tag$ === "slot") && K(l.$elm$.parentNode, !1), W(l, m, c), q(e, l.$elm$, h.$elm$.nextSibling), l = t[++a], m = s[--f];
299
299
  else if (Z(h, g, c))
300
- (l.$tag$ === "slot" || b.$tag$ === "slot") && K(h.$elm$.parentNode, !1), W(h, g, c), N(e, h.$elm$, l.$elm$), h = t[--i], g = s[++n];
300
+ (l.$tag$ === "slot" || m.$tag$ === "slot") && K(h.$elm$.parentNode, !1), W(h, g, c), q(e, h.$elm$, l.$elm$), h = t[--i], g = s[++n];
301
301
  else {
302
302
  for (o = -1, u = a; u <= i; ++u)
303
303
  if (t[u] && t[u].$key$ !== null && t[u].$key$ === g.$key$) {
304
304
  o = u;
305
305
  break;
306
306
  }
307
- o >= 0 ? (y = t[o], y.$tag$ !== g.$tag$ ? v = oe(t && t[n], r, o) : (W(y, g, c), t[o] = void 0, v = y.$elm$), g = s[++n]) : (v = oe(t && t[n], r, n), g = s[++n]), v && N(pt(l.$elm$), v, xe(l.$elm$));
307
+ o >= 0 ? (y = t[o], y.$tag$ !== g.$tag$ ? v = oe(t && t[n], r, o) : (W(y, g, c), t[o] = void 0, v = y.$elm$), g = s[++n]) : (v = oe(t && t[n], r, n), g = s[++n]), v && q(pt(l.$elm$), v, xe(l.$elm$));
308
308
  }
309
309
  a > i ? ht(
310
310
  e,
@@ -323,10 +323,10 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
323
323
  ) : r ? !0 : e.$key$ === t.$key$ : !1, xe = (e) => e && e["s-ol"] || e, pt = (e) => (e["s-ol"] ? e["s-ol"] : e).parentNode, W = (e, t, r = !1) => {
324
324
  const s = t.$elm$ = e.$elm$, c = e.$children$, a = t.$children$, n = t.$tag$, o = t.$text$;
325
325
  let u;
326
- o === null ? (C = n === "svg" ? !0 : n === "foreignObject" ? !1 : C, n === "slot" && !ce || dt(e, t, C), c !== null && a !== null ? Cr(s, c, t, a, r) : a !== null ? (e.$text$ !== null && (s.textContent = ""), ht(s, null, t, a, 0, a.length - 1)) : (
326
+ o === null ? (w = n === "svg" ? !0 : n === "foreignObject" ? !1 : w, n === "slot" && !ce || dt(e, t, w), c !== null && a !== null ? Cr(s, c, t, a, r) : a !== null ? (e.$text$ !== null && (s.textContent = ""), ht(s, null, t, a, 0, a.length - 1)) : (
327
327
  // don't do this on initial render as it can cause non-hydrated content to be removed
328
328
  !r && G.updatable && c !== null && ft(c, 0, c.length - 1)
329
- ), C && n === "svg" && (C = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = o : e.$text$ !== o && (s.data = o);
329
+ ), w && n === "svg" && (w = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = o : e.$text$ !== o && (s.data = o);
330
330
  }, gt = (e) => {
331
331
  const t = e.childNodes;
332
332
  for (const r of t)
@@ -349,7 +349,7 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
349
349
  }
350
350
  gt(r);
351
351
  }
352
- }, B = [], bt = (e) => {
352
+ }, I = [], mt = (e) => {
353
353
  let t, r, s;
354
354
  for (const c of e.childNodes) {
355
355
  if (c["s-sr"] && (t = c["s-cr"]) && t.parentNode) {
@@ -358,41 +358,41 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
358
358
  for (s = r.length - 1; s >= 0; s--)
359
359
  if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== c["s-hn"] && !G.experimentalSlotFixes)
360
360
  if (He(t, a)) {
361
- let n = B.find((o) => o.$nodeToRelocate$ === t);
362
- ie = !0, t["s-sn"] = t["s-sn"] || a, n ? (n.$nodeToRelocate$["s-sh"] = c["s-hn"], n.$slotRefNode$ = c) : (t["s-sh"] = c["s-hn"], B.push({
361
+ let n = I.find((o) => o.$nodeToRelocate$ === t);
362
+ ie = !0, t["s-sn"] = t["s-sn"] || a, n ? (n.$nodeToRelocate$["s-sh"] = c["s-hn"], n.$slotRefNode$ = c) : (t["s-sh"] = c["s-hn"], I.push({
363
363
  $slotRefNode$: c,
364
364
  $nodeToRelocate$: t
365
- })), t["s-sr"] && B.map((o) => {
366
- He(o.$nodeToRelocate$, t["s-sn"]) && (n = B.find((u) => u.$nodeToRelocate$ === t), n && !o.$slotRefNode$ && (o.$slotRefNode$ = n.$slotRefNode$));
365
+ })), t["s-sr"] && I.map((o) => {
366
+ He(o.$nodeToRelocate$, t["s-sn"]) && (n = I.find((u) => u.$nodeToRelocate$ === t), n && !o.$slotRefNode$ && (o.$slotRefNode$ = n.$slotRefNode$));
367
367
  });
368
- } else B.some((n) => n.$nodeToRelocate$ === t) || B.push({
368
+ } else I.some((n) => n.$nodeToRelocate$ === t) || I.push({
369
369
  $nodeToRelocate$: t
370
370
  });
371
371
  }
372
- c.nodeType === 1 && bt(c);
372
+ c.nodeType === 1 && mt(c);
373
373
  }
374
- }, He = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", N = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), kr = (e, t, r = !1) => {
374
+ }, He = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", q = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), kr = (e, t, r = !1) => {
375
375
  var s, c, a, n;
376
- const o = e.$hostElement$, u = e.$vnode$ || ae(null, null), i = br(t) ? t : d(null, null, t);
376
+ const o = e.$hostElement$, u = e.$vnode$ || ae(null, null), i = mr(t) ? t : d(null, null, t);
377
377
  if (ve = o.tagName, r && i.$attrs$)
378
378
  for (const l of Object.keys(i.$attrs$))
379
379
  o.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (i.$attrs$[l] = o[l]);
380
- i.$tag$ = null, i.$flags$ |= 4, e.$vnode$ = i, i.$elm$ = u.$elm$ = o, ce = nr, be = o["s-cr"], ie = !1, W(u, i, r);
380
+ i.$tag$ = null, i.$flags$ |= 4, e.$vnode$ = i, i.$elm$ = u.$elm$ = o, ce = nr, me = o["s-cr"], ie = !1, W(u, i, r);
381
381
  {
382
382
  if (S.$flags$ |= 1, Fe) {
383
- bt(i.$elm$);
384
- for (const l of B) {
383
+ mt(i.$elm$);
384
+ for (const l of I) {
385
385
  const h = l.$nodeToRelocate$;
386
386
  if (!h["s-ol"]) {
387
- const f = j.createTextNode("");
388
- f["s-nr"] = h, N(h.parentNode, h["s-ol"] = f, h);
387
+ const f = U.createTextNode("");
388
+ f["s-nr"] = h, q(h.parentNode, h["s-ol"] = f, h);
389
389
  }
390
390
  }
391
- for (const l of B) {
391
+ for (const l of I) {
392
392
  const h = l.$nodeToRelocate$, f = l.$slotRefNode$;
393
393
  if (f) {
394
394
  const g = f.parentNode;
395
- let b = f.nextSibling;
395
+ let m = f.nextSibling;
396
396
  {
397
397
  let v = (s = h["s-ol"]) == null ? void 0 : s.previousSibling;
398
398
  for (; v; ) {
@@ -401,29 +401,29 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
401
401
  for (y = y.nextSibling; y === h || y != null && y["s-sr"]; )
402
402
  y = y == null ? void 0 : y.nextSibling;
403
403
  if (!y || !y["s-nr"]) {
404
- b = y;
404
+ m = y;
405
405
  break;
406
406
  }
407
407
  }
408
408
  v = v.previousSibling;
409
409
  }
410
410
  }
411
- (!b && g !== h.parentNode || h.nextSibling !== b) && h !== b && (!h["s-hn"] && h["s-ol"] && (h["s-hn"] = h["s-ol"].parentNode.nodeName), N(g, h, b), h.nodeType === 1 && (h.hidden = (a = h["s-ih"]) != null ? a : !1)), h && typeof f["s-rf"] == "function" && f["s-rf"](h);
411
+ (!m && g !== h.parentNode || h.nextSibling !== m) && h !== m && (!h["s-hn"] && h["s-ol"] && (h["s-hn"] = h["s-ol"].parentNode.nodeName), q(g, h, m), h.nodeType === 1 && (h.hidden = (a = h["s-ih"]) != null ? a : !1)), h && typeof f["s-rf"] == "function" && f["s-rf"](h);
412
412
  } else
413
413
  h.nodeType === 1 && (r && (h["s-ih"] = (n = h.hidden) != null ? n : !1), h.hidden = !0);
414
414
  }
415
415
  }
416
- ie && gt(i.$elm$), S.$flags$ &= -2, B.length = 0;
416
+ ie && gt(i.$elm$), S.$flags$ &= -2, I.length = 0;
417
417
  }
418
- be = void 0;
419
- }, mt = (e, t) => {
418
+ me = void 0;
419
+ }, bt = (e, t) => {
420
420
  t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((r) => e.$onRenderResolve$ = r));
421
421
  }, Ee = (e, t) => {
422
422
  if (e.$flags$ |= 16, e.$flags$ & 4) {
423
423
  e.$flags$ |= 512;
424
424
  return;
425
425
  }
426
- return mt(e, e.$ancestorComponent$), ir(() => Rr(e, t));
426
+ return bt(e, e.$ancestorComponent$), ir(() => Rr(e, t));
427
427
  }, Rr = (e, t) => {
428
428
  const r = e.$hostElement$, s = V("scheduleUpdate", e.$cmpMeta$.$tagName$), c = r;
429
429
  if (!c)
@@ -453,9 +453,9 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
453
453
  return null;
454
454
  }, Pr = (e) => {
455
455
  const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = V("postUpdate", t), c = r, a = e.$ancestorComponent$;
456
- e.$flags$ & 64 ? s() : (e.$flags$ |= 64, yt(r), Mr(c, "componentDidLoad"), s(), e.$onReadyResolve$(r), a || Dr()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && me(() => Ee(e, !1)), e.$flags$ &= -517;
457
- }, Dr = (e) => {
458
- yt(j.documentElement), me(() => ot(ue, "appload", { detail: { namespace: Zt } }));
456
+ e.$flags$ & 64 ? s() : (e.$flags$ |= 64, yt(r), Mr(c, "componentDidLoad"), s(), e.$onReadyResolve$(r), a || Br()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && be(() => Ee(e, !1)), e.$flags$ &= -517;
457
+ }, Br = (e) => {
458
+ yt(U.documentElement), be(() => ot(ue, "appload", { detail: { namespace: Zt } }));
459
459
  }, Mr = (e, t, r) => {
460
460
  if (e && e[t])
461
461
  try {
@@ -466,7 +466,7 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
466
466
  }, yt = (e) => {
467
467
  var t;
468
468
  return e.classList.add((t = G.hydratedSelectorName) != null ? t : "hydrated");
469
- }, Br = (e, t) => Q(e).$instanceValues$.get(t), Ir = (e, t, r, s) => {
469
+ }, Dr = (e, t) => Q(e).$instanceValues$.get(t), Ir = (e, t, r, s) => {
470
470
  const c = Q(e), a = e, n = c.$instanceValues$.get(t), o = c.$flags$, u = a;
471
471
  r = vr(r, s.$members$[t][0]);
472
472
  const i = Number.isNaN(n) && Number.isNaN(r);
@@ -495,7 +495,7 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
495
495
  n.map(([o, [u]]) => {
496
496
  (u & 31 || u & 32) && Object.defineProperty(a, o, {
497
497
  get() {
498
- return Br(this, o);
498
+ return Dr(this, o);
499
499
  },
500
500
  set(i) {
501
501
  Ir(this, o, i, t);
@@ -517,11 +517,11 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
517
517
  this[f] == l)
518
518
  return;
519
519
  if (f == null) {
520
- const g = Q(this), b = g == null ? void 0 : g.$flags$;
521
- if (b && !(b & 8) && b & 128 && l !== i) {
520
+ const g = Q(this), m = g == null ? void 0 : g.$flags$;
521
+ if (m && !(m & 8) && m & 128 && l !== i) {
522
522
  const y = this, Pe = (h = t.$watchers$) == null ? void 0 : h[u];
523
- Pe == null || Pe.forEach((De) => {
524
- y[De] != null && y[De].call(y, l, i, u);
523
+ Pe == null || Pe.forEach((Be) => {
524
+ y[Be] != null && y[Be].call(y, l, i, u);
525
525
  });
526
526
  }
527
527
  return;
@@ -576,12 +576,12 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
576
576
  t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => jr());
577
577
  else {
578
578
  t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
579
- r.$flags$ & 12 && Nr(e);
579
+ r.$flags$ & 12 && qr(e);
580
580
  {
581
581
  let c = e;
582
582
  for (; c = c.parentNode || c.host; )
583
583
  if (c["s-p"]) {
584
- mt(t, t.$ancestorComponent$ = c);
584
+ bt(t, t.$ancestorComponent$ = c);
585
585
  break;
586
586
  }
587
587
  }
@@ -594,14 +594,14 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
594
594
  }
595
595
  s();
596
596
  }
597
- }, Nr = (e) => {
598
- const t = e["s-cr"] = j.createComment(
597
+ }, qr = (e) => {
598
+ const t = e["s-cr"] = U.createComment(
599
599
  ""
600
600
  );
601
- t["s-cn"] = !0, N(e, t, e.firstChild);
602
- }, qr = async (e) => {
601
+ t["s-cn"] = !0, q(e, t, e.firstChild);
602
+ }, Nr = async (e) => {
603
603
  S.$flags$ & 1 || Q(e);
604
- }, P = (e, t) => {
604
+ }, M = (e, t) => {
605
605
  const r = {
606
606
  $flags$: t[0],
607
607
  $tagName$: t[1]
@@ -617,7 +617,7 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
617
617
  a || (Q(this), a = !0), Ur(this), s && s.call(this);
618
618
  },
619
619
  disconnectedCallback() {
620
- qr(this), c && c.call(this);
620
+ Nr(this), c && c.call(this);
621
621
  },
622
622
  __attachShadow() {
623
623
  this.shadowRoot = this;
@@ -636,7 +636,7 @@ const Ve = (e) => {
636
636
  return o;
637
637
  }, Hr = (e) => e ? Ve(e) : Ve;
638
638
  we.createStore = Hr;
639
- var Ce = {}, vt = { exports: {} }, m = {};
639
+ var Ce = {}, vt = { exports: {} }, b = {};
640
640
  /**
641
641
  * @license React
642
642
  * react.production.min.js
@@ -758,7 +758,7 @@ var $ = { current: null }, se = { transition: null }, as = { ReactCurrentDispatc
758
758
  function kt() {
759
759
  throw Error("act(...) is not supported in production builds of React.");
760
760
  }
761
- m.Children = { map: ee, forEach: function(e, t, r) {
761
+ b.Children = { map: ee, forEach: function(e, t, r) {
762
762
  ee(e, function() {
763
763
  t.apply(this, arguments);
764
764
  }, r);
@@ -775,15 +775,15 @@ m.Children = { map: ee, forEach: function(e, t, r) {
775
775
  if (!Te(e)) throw Error("React.Children.only expected to receive a single React element child.");
776
776
  return e;
777
777
  } };
778
- m.Component = J;
779
- m.Fragment = Wr;
780
- m.Profiler = Qr;
781
- m.PureComponent = ke;
782
- m.StrictMode = Gr;
783
- m.Suspense = Xr;
784
- m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = as;
785
- m.act = kt;
786
- m.cloneElement = function(e, t, r) {
778
+ b.Component = J;
779
+ b.Fragment = Wr;
780
+ b.Profiler = Qr;
781
+ b.PureComponent = ke;
782
+ b.StrictMode = Gr;
783
+ b.Suspense = Xr;
784
+ b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = as;
785
+ b.act = kt;
786
+ b.cloneElement = function(e, t, r) {
787
787
  if (e == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
788
788
  var s = xt({}, e.props), c = e.key, a = e.ref, n = e._owner;
789
789
  if (t != null) {
@@ -799,28 +799,28 @@ m.cloneElement = function(e, t, r) {
799
799
  }
800
800
  return { $$typeof: X, type: e.type, key: c, ref: a, props: s, _owner: n };
801
801
  };
802
- m.createContext = function(e) {
802
+ b.createContext = function(e) {
803
803
  return e = { $$typeof: Kr, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, e.Provider = { $$typeof: Jr, _context: e }, e.Consumer = e;
804
804
  };
805
- m.createElement = Ct;
806
- m.createFactory = function(e) {
805
+ b.createElement = Ct;
806
+ b.createFactory = function(e) {
807
807
  var t = Ct.bind(null, e);
808
808
  return t.type = e, t;
809
809
  };
810
- m.createRef = function() {
810
+ b.createRef = function() {
811
811
  return { current: null };
812
812
  };
813
- m.forwardRef = function(e) {
813
+ b.forwardRef = function(e) {
814
814
  return { $$typeof: Yr, render: e };
815
815
  };
816
- m.isValidElement = Te;
817
- m.lazy = function(e) {
816
+ b.isValidElement = Te;
817
+ b.lazy = function(e) {
818
818
  return { $$typeof: es, _payload: { _status: -1, _result: e }, _init: ns };
819
819
  };
820
- m.memo = function(e, t) {
820
+ b.memo = function(e, t) {
821
821
  return { $$typeof: Zr, type: e, compare: t === void 0 ? null : t };
822
822
  };
823
- m.startTransition = function(e) {
823
+ b.startTransition = function(e) {
824
824
  var t = se.transition;
825
825
  se.transition = {};
826
826
  try {
@@ -829,53 +829,53 @@ m.startTransition = function(e) {
829
829
  se.transition = t;
830
830
  }
831
831
  };
832
- m.unstable_act = kt;
833
- m.useCallback = function(e, t) {
832
+ b.unstable_act = kt;
833
+ b.useCallback = function(e, t) {
834
834
  return $.current.useCallback(e, t);
835
835
  };
836
- m.useContext = function(e) {
836
+ b.useContext = function(e) {
837
837
  return $.current.useContext(e);
838
838
  };
839
- m.useDebugValue = function() {
839
+ b.useDebugValue = function() {
840
840
  };
841
- m.useDeferredValue = function(e) {
841
+ b.useDeferredValue = function(e) {
842
842
  return $.current.useDeferredValue(e);
843
843
  };
844
- m.useEffect = function(e, t) {
844
+ b.useEffect = function(e, t) {
845
845
  return $.current.useEffect(e, t);
846
846
  };
847
- m.useId = function() {
847
+ b.useId = function() {
848
848
  return $.current.useId();
849
849
  };
850
- m.useImperativeHandle = function(e, t, r) {
850
+ b.useImperativeHandle = function(e, t, r) {
851
851
  return $.current.useImperativeHandle(e, t, r);
852
852
  };
853
- m.useInsertionEffect = function(e, t) {
853
+ b.useInsertionEffect = function(e, t) {
854
854
  return $.current.useInsertionEffect(e, t);
855
855
  };
856
- m.useLayoutEffect = function(e, t) {
856
+ b.useLayoutEffect = function(e, t) {
857
857
  return $.current.useLayoutEffect(e, t);
858
858
  };
859
- m.useMemo = function(e, t) {
859
+ b.useMemo = function(e, t) {
860
860
  return $.current.useMemo(e, t);
861
861
  };
862
- m.useReducer = function(e, t, r) {
862
+ b.useReducer = function(e, t, r) {
863
863
  return $.current.useReducer(e, t, r);
864
864
  };
865
- m.useRef = function(e) {
865
+ b.useRef = function(e) {
866
866
  return $.current.useRef(e);
867
867
  };
868
- m.useState = function(e) {
868
+ b.useState = function(e) {
869
869
  return $.current.useState(e);
870
870
  };
871
- m.useSyncExternalStore = function(e, t, r) {
871
+ b.useSyncExternalStore = function(e, t, r) {
872
872
  return $.current.useSyncExternalStore(e, t, r);
873
873
  };
874
- m.useTransition = function() {
874
+ b.useTransition = function() {
875
875
  return $.current.useTransition();
876
876
  };
877
- m.version = "18.3.1";
878
- vt.exports = m;
877
+ b.version = "18.3.1";
878
+ vt.exports = b;
879
879
  var Je = vt.exports, cs = we;
880
880
  const is = (e) => e;
881
881
  function Rt(e, t = is) {
@@ -910,7 +910,7 @@ Ce.useStore = Rt;
910
910
  });
911
911
  });
912
912
  })(Se);
913
- var ls = Object.defineProperty, us = (e, t, r) => t in e ? ls(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, U = (e, t, r) => us(e, typeof t != "symbol" ? t + "" : t, r);
913
+ var ls = Object.defineProperty, us = (e, t, r) => t in e ? ls(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, R = (e, t, r) => us(e, typeof t != "symbol" ? t + "" : t, r);
914
914
  const ds = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
915
915
  let hs = (e = 21) => {
916
916
  let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
@@ -918,7 +918,7 @@ let hs = (e = 21) => {
918
918
  t += ds[r[e] & 63];
919
919
  return t;
920
920
  };
921
- function I(e, t, r, s) {
921
+ function L(e, t, r, s) {
922
922
  return new (r || (r = Promise))(function(c, a) {
923
923
  function n(i) {
924
924
  try {
@@ -943,7 +943,7 @@ function I(e, t, r, s) {
943
943
  u((s = s.apply(e, [])).next());
944
944
  });
945
945
  }
946
- function L(e, t) {
946
+ function O(e, t) {
947
947
  var r, s, c, a, n = { label: 0, sent: function() {
948
948
  if (1 & c[0]) throw c[1];
949
949
  return c[1];
@@ -1002,12 +1002,12 @@ function L(e, t) {
1002
1002
  };
1003
1003
  }
1004
1004
  }
1005
- var O = { exclude: [] }, zt = {}, fs = { timeout: "true" }, R = function(e, t) {
1005
+ var j = { exclude: [] }, zt = {}, fs = { timeout: "true" }, z = function(e, t) {
1006
1006
  typeof window < "u" && (zt[e] = t);
1007
1007
  }, ps = function() {
1008
1008
  return Object.fromEntries(Object.entries(zt).filter(function(e) {
1009
1009
  var t, r = e[0];
1010
- return !(!((t = O == null ? void 0 : O.exclude) === null || t === void 0) && t.includes(r));
1010
+ return !(!((t = j == null ? void 0 : j.exclude) === null || t === void 0) && t.includes(r));
1011
1011
  }).map(function(e) {
1012
1012
  return [e[0], (0, e[1])()];
1013
1013
  }));
@@ -1016,7 +1016,7 @@ function te(e) {
1016
1016
  return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
1017
1017
  }
1018
1018
  var F = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
1019
- function k(e, t) {
1019
+ function C(e, t) {
1020
1020
  return e << t | e >>> 32 - t;
1021
1021
  }
1022
1022
  function _e(e, t) {
@@ -1026,7 +1026,7 @@ function _e(e, t) {
1026
1026
  (function(a, n) {
1027
1027
  for (var o = a.byteLength / 16 | 0, u = new Uint32Array(a, 0, 4 * o), i = 0; i < o; i++) {
1028
1028
  var l = u.subarray(4 * i, 4 * (i + 1));
1029
- l[0] = Math.imul(l[0], F[0]), l[0] = k(l[0], 15), l[0] = Math.imul(l[0], F[1]), n[0] = n[0] ^ l[0], n[0] = k(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, l[1] = Math.imul(l[1], F[1]), l[1] = k(l[1], 16), l[1] = Math.imul(l[1], F[2]), n[1] = n[1] ^ l[1], n[1] = k(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, l[2] = Math.imul(l[2], F[2]), l[2] = k(l[2], 17), l[2] = Math.imul(l[2], F[3]), n[2] = n[2] ^ l[2], n[2] = k(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, l[3] = Math.imul(l[3], F[3]), l[3] = k(l[3], 18), l[3] = Math.imul(l[3], F[0]), n[3] = n[3] ^ l[3], n[3] = k(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
1029
+ l[0] = Math.imul(l[0], F[0]), l[0] = C(l[0], 15), l[0] = Math.imul(l[0], F[1]), n[0] = n[0] ^ l[0], n[0] = C(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, l[1] = Math.imul(l[1], F[1]), l[1] = C(l[1], 16), l[1] = Math.imul(l[1], F[2]), n[1] = n[1] ^ l[1], n[1] = C(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, l[2] = Math.imul(l[2], F[2]), l[2] = C(l[2], 17), l[2] = Math.imul(l[2], F[3]), n[2] = n[2] ^ l[2], n[2] = C(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, l[3] = Math.imul(l[3], F[3]), l[3] = C(l[3], 18), l[3] = Math.imul(l[3], F[0]), n[3] = n[3] ^ l[3], n[3] = C(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
1030
1030
  }
1031
1031
  })(e, s), function(a, n) {
1032
1032
  var o = a.byteLength / 16 | 0, u = a.byteLength % 16, i = new Uint32Array(4), l = new Uint8Array(a, 16 * o, u);
@@ -1036,7 +1036,7 @@ function _e(e, t) {
1036
1036
  case 14:
1037
1037
  i[3] = i[3] ^ l[13] << 8;
1038
1038
  case 13:
1039
- i[3] = i[3] ^ l[12] << 0, i[3] = Math.imul(i[3], F[3]), i[3] = k(i[3], 18), i[3] = Math.imul(i[3], F[0]), n[3] = n[3] ^ i[3];
1039
+ i[3] = i[3] ^ l[12] << 0, i[3] = Math.imul(i[3], F[3]), i[3] = C(i[3], 18), i[3] = Math.imul(i[3], F[0]), n[3] = n[3] ^ i[3];
1040
1040
  case 12:
1041
1041
  i[2] = i[2] ^ l[11] << 24;
1042
1042
  case 11:
@@ -1044,7 +1044,7 @@ function _e(e, t) {
1044
1044
  case 10:
1045
1045
  i[2] = i[2] ^ l[9] << 8;
1046
1046
  case 9:
1047
- i[2] = i[2] ^ l[8] << 0, i[2] = Math.imul(i[2], F[2]), i[2] = k(i[2], 17), i[2] = Math.imul(i[2], F[3]), n[2] = n[2] ^ i[2];
1047
+ i[2] = i[2] ^ l[8] << 0, i[2] = Math.imul(i[2], F[2]), i[2] = C(i[2], 17), i[2] = Math.imul(i[2], F[3]), n[2] = n[2] ^ i[2];
1048
1048
  case 8:
1049
1049
  i[1] = i[1] ^ l[7] << 24;
1050
1050
  case 7:
@@ -1052,7 +1052,7 @@ function _e(e, t) {
1052
1052
  case 6:
1053
1053
  i[1] = i[1] ^ l[5] << 8;
1054
1054
  case 5:
1055
- i[1] = i[1] ^ l[4] << 0, i[1] = Math.imul(i[1], F[1]), i[1] = k(i[1], 16), i[1] = Math.imul(i[1], F[2]), n[1] = n[1] ^ i[1];
1055
+ i[1] = i[1] ^ l[4] << 0, i[1] = Math.imul(i[1], F[1]), i[1] = C(i[1], 16), i[1] = Math.imul(i[1], F[2]), n[1] = n[1] ^ i[1];
1056
1056
  case 4:
1057
1057
  i[0] = i[0] ^ l[3] << 24;
1058
1058
  case 3:
@@ -1060,7 +1060,7 @@ function _e(e, t) {
1060
1060
  case 2:
1061
1061
  i[0] = i[0] ^ l[1] << 8;
1062
1062
  case 1:
1063
- i[0] = i[0] ^ l[0] << 0, i[0] = Math.imul(i[0], F[0]), i[0] = k(i[0], 15), i[0] = Math.imul(i[0], F[1]), n[0] = n[0] ^ i[0];
1063
+ i[0] = i[0] ^ l[0] << 0, i[0] = Math.imul(i[0], F[0]), i[0] = C(i[0], 15), i[0] = Math.imul(i[0], F[1]), n[0] = n[0] ^ i[0];
1064
1064
  }
1065
1065
  }(e, s), function(a, n) {
1066
1066
  n[0] = n[0] ^ a.byteLength, n[1] = n[1] ^ a.byteLength, n[2] = n[2] ^ a.byteLength, n[3] = n[3] ^ a.byteLength, n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0, n[0] = te(n[0]), n[1] = te(n[1]), n[2] = te(n[2]), n[3] = te(n[3]), n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0;
@@ -1077,24 +1077,24 @@ function gs(e, t) {
1077
1077
  }, e);
1078
1078
  });
1079
1079
  }
1080
- function bs(e, t, r) {
1080
+ function ms(e, t, r) {
1081
1081
  return Promise.all(e.map(function(s) {
1082
1082
  return Promise.race([s, gs(t, r)]);
1083
1083
  }));
1084
1084
  }
1085
- function ms() {
1086
- return I(this, void 0, void 0, function() {
1085
+ function bs() {
1086
+ return L(this, void 0, void 0, function() {
1087
1087
  var e, t, r, s, c;
1088
- return L(this, function(a) {
1088
+ return O(this, function(a) {
1089
1089
  switch (a.label) {
1090
1090
  case 0:
1091
- return a.trys.push([0, 2, , 3]), e = ps(), t = Object.keys(e), [4, bs(Object.values(e), (O == null ? void 0 : O.timeout) || 1e3, fs)];
1091
+ return a.trys.push([0, 2, , 3]), e = ps(), t = Object.keys(e), [4, ms(Object.values(e), (j == null ? void 0 : j.timeout) || 1e3, fs)];
1092
1092
  case 1:
1093
1093
  return r = a.sent(), s = r.filter(function(n) {
1094
1094
  return n !== void 0;
1095
1095
  }), c = {}, s.forEach(function(n, o) {
1096
1096
  c[t[o]] = n;
1097
- }), [2, Tt(c, O.exclude || [])];
1097
+ }), [2, Tt(c, j.exclude || [])];
1098
1098
  case 2:
1099
1099
  throw a.sent();
1100
1100
  case 3:
@@ -1120,12 +1120,12 @@ function Tt(e, t) {
1120
1120
  return r;
1121
1121
  }
1122
1122
  function ys(e) {
1123
- return I(this, void 0, void 0, function() {
1123
+ return L(this, void 0, void 0, function() {
1124
1124
  var t, r;
1125
- return L(this, function(s) {
1125
+ return O(this, function(s) {
1126
1126
  switch (s.label) {
1127
1127
  case 0:
1128
- return s.trys.push([0, 2, , 3]), [4, ms()];
1128
+ return s.trys.push([0, 2, , 3]), [4, bs()];
1129
1129
  case 1:
1130
1130
  return t = s.sent(), r = _e(JSON.stringify(t)), [2, r.toString()];
1131
1131
  case 2:
@@ -1164,9 +1164,9 @@ function Y() {
1164
1164
  }
1165
1165
  return { name: "unknown", version: "unknown" };
1166
1166
  }
1167
- R("audio", function() {
1168
- return I(this, void 0, void 0, function() {
1169
- return L(this, function(e) {
1167
+ z("audio", function() {
1168
+ return L(this, void 0, void 0, function() {
1169
+ return O(this, function(e) {
1170
1170
  return [2, new Promise(function(t, r) {
1171
1171
  try {
1172
1172
  var s = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), c = s.createBufferSource(), a = s.createOscillator();
@@ -1183,7 +1183,7 @@ R("audio", function() {
1183
1183
  });
1184
1184
  });
1185
1185
  var xs = Y().name !== "SamsungBrowser" ? 1 : 3, Ye = 280, Xe = 20;
1186
- Y().name != "Firefox" && R("canvas", function() {
1186
+ Y().name != "Firefox" && z("canvas", function() {
1187
1187
  return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
1188
1188
  var t = Array.from({ length: xs }, function() {
1189
1189
  return function() {
@@ -1264,15 +1264,15 @@ function Rs() {
1264
1264
  }
1265
1265
  return 0;
1266
1266
  }
1267
- Y().name != "Firefox" && R("fonts", function() {
1267
+ Y().name != "Firefox" && z("fonts", function() {
1268
1268
  var e = this;
1269
1269
  return new Promise(function(t, r) {
1270
1270
  try {
1271
1271
  (function(s) {
1272
1272
  var c;
1273
- I(this, void 0, void 0, function() {
1273
+ L(this, void 0, void 0, function() {
1274
1274
  var a, n, o;
1275
- return L(this, function(u) {
1275
+ return O(this, function(u) {
1276
1276
  switch (u.label) {
1277
1277
  case 0:
1278
1278
  return document.body ? [3, 2] : [4, (i = 50, new Promise(function(h) {
@@ -1291,9 +1291,9 @@ Y().name != "Firefox" && R("fonts", function() {
1291
1291
  });
1292
1292
  })(function(s) {
1293
1293
  var c = s.iframe;
1294
- return I(e, void 0, void 0, function() {
1294
+ return L(e, void 0, void 0, function() {
1295
1295
  var a, n, o, u;
1296
- return L(this, function(i) {
1296
+ return O(this, function(i) {
1297
1297
  return a = c.createElement("canvas"), n = a.getContext("2d"), o = $s.map(function(l) {
1298
1298
  return Ze(n, l);
1299
1299
  }), u = {}, Es.forEach(function(l) {
@@ -1307,24 +1307,24 @@ Y().name != "Firefox" && R("fonts", function() {
1307
1307
  r({ error: "unsupported" });
1308
1308
  }
1309
1309
  });
1310
- }), R("hardware", function() {
1310
+ }), z("hardware", function() {
1311
1311
  return new Promise(function(e, t) {
1312
1312
  var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, s = window.performance && window.performance.memory ? window.performance.memory : 0;
1313
1313
  e({ videocard: Ss(), architecture: ws(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
1314
1314
  });
1315
- }), R("locales", function() {
1315
+ }), z("locales", function() {
1316
1316
  return new Promise(function(e) {
1317
1317
  e({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
1318
1318
  });
1319
- }), R("permissions", function() {
1320
- return I(this, void 0, void 0, function() {
1319
+ }), z("permissions", function() {
1320
+ return L(this, void 0, void 0, function() {
1321
1321
  var e;
1322
- return L(this, function(t) {
1323
- return he = (O == null ? void 0 : O.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (O == null ? void 0 : O.retries) || 3 }, function() {
1322
+ return O(this, function(t) {
1323
+ return he = (j == null ? void 0 : j.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (j == null ? void 0 : j.retries) || 3 }, function() {
1324
1324
  return function() {
1325
- return I(this, void 0, void 0, function() {
1325
+ return L(this, void 0, void 0, function() {
1326
1326
  var r, s, c, a, n;
1327
- return L(this, function(o) {
1327
+ return O(this, function(o) {
1328
1328
  switch (o.label) {
1329
1329
  case 0:
1330
1330
  r = {}, s = 0, c = he, o.label = 1;
@@ -1350,7 +1350,7 @@ Y().name != "Firefox" && R("fonts", function() {
1350
1350
  })];
1351
1351
  });
1352
1352
  });
1353
- }), R("plugins", function() {
1353
+ }), z("plugins", function() {
1354
1354
  var e = [];
1355
1355
  if (navigator.plugins) for (var t = 0; t < navigator.plugins.length; t++) {
1356
1356
  var r = navigator.plugins[t];
@@ -1359,21 +1359,21 @@ Y().name != "Firefox" && R("fonts", function() {
1359
1359
  return new Promise(function(s) {
1360
1360
  s({ plugins: e });
1361
1361
  });
1362
- }), R("screen", function() {
1362
+ }), z("screen", function() {
1363
1363
  return new Promise(function(e) {
1364
1364
  e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: ks() });
1365
1365
  });
1366
- }), R("system", function() {
1366
+ }), z("system", function() {
1367
1367
  return new Promise(function(e) {
1368
1368
  var t = Y();
1369
1369
  e({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: t.name, version: t.version }, applePayVersion: Rs() });
1370
1370
  });
1371
1371
  });
1372
1372
  var E, zs = Y().name !== "SamsungBrowser" ? 1 : 3, p = null;
1373
- R("webgl", function() {
1374
- return I(this, void 0, void 0, function() {
1373
+ z("webgl", function() {
1374
+ return L(this, void 0, void 0, function() {
1375
1375
  var e;
1376
- return L(this, function(t) {
1376
+ return O(this, function(t) {
1377
1377
  typeof document < "u" && ((E = document.createElement("canvas")).width = 200, E.height = 100, p = E.getContext("webgl"));
1378
1378
  try {
1379
1379
  if (!p) throw new Error("WebGL not supported");
@@ -1407,8 +1407,8 @@ R("webgl", function() {
1407
1407
  p.bindBuffer(p.ARRAY_BUFFER, f), p.bufferData(p.ARRAY_BUFFER, u, p.STATIC_DRAW);
1408
1408
  var g = p.getAttribLocation(n, "position");
1409
1409
  p.enableVertexAttribArray(g), p.vertexAttribPointer(g, 2, p.FLOAT, !1, 0, 0), p.viewport(0, 0, E.width, E.height), p.clearColor(0, 0, 0, 1), p.clear(p.COLOR_BUFFER_BIT), p.drawArrays(p.LINES, 0, 2 * o);
1410
- var b = new Uint8ClampedArray(E.width * E.height * 4);
1411
- return p.readPixels(0, 0, E.width, E.height, p.RGBA, p.UNSIGNED_BYTE, b), new ImageData(b, E.width, E.height);
1410
+ var m = new Uint8ClampedArray(E.width * E.height * 4);
1411
+ return p.readPixels(0, 0, E.width, E.height, p.RGBA, p.UNSIGNED_BYTE, m), new ImageData(m, E.width, E.height);
1412
1412
  } catch {
1413
1413
  return new ImageData(1, 1);
1414
1414
  } finally {
@@ -1423,56 +1423,63 @@ R("webgl", function() {
1423
1423
  });
1424
1424
  });
1425
1425
  });
1426
- var q = function(e, t, r, s) {
1426
+ var N = function(e, t, r, s) {
1427
1427
  for (var c = (r - t) / s, a = 0, n = 0; n < s; n++)
1428
1428
  a += e(t + (n + 0.5) * c);
1429
1429
  return a * c;
1430
1430
  };
1431
- R("math", function() {
1432
- return I(void 0, void 0, void 0, function() {
1433
- return L(this, function(e) {
1434
- return [2, { acos: Math.acos(0.5), asin: q(Math.asin, -1, 1, 97), atan: q(Math.atan, -1, 1, 97), cos: q(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: q(Math.sin, -Math.PI, Math.PI, 97), sinh: q(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: q(Math.tan, 0, 2 * Math.PI, 97), tanh: q(Math.tanh, -9 / 7, 7 / 9, 97) }];
1431
+ z("math", function() {
1432
+ return L(void 0, void 0, void 0, function() {
1433
+ return O(this, function(e) {
1434
+ return [2, { acos: Math.acos(0.5), asin: N(Math.asin, -1, 1, 97), atan: N(Math.atan, -1, 1, 97), cos: N(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: N(Math.sin, -Math.PI, Math.PI, 97), sinh: N(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: N(Math.tan, 0, 2 * Math.PI, 97), tanh: N(Math.tanh, -9 / 7, 7 / 9, 97) }];
1435
1435
  });
1436
1436
  });
1437
1437
  });
1438
- class Ts {
1438
+ const Ts = 500;
1439
+ class _s {
1439
1440
  constructor(t, r) {
1440
- if (U(this, "config"), U(this, "sdkInfo"), U(this, "userId"), U(this, "sessionId"), U(this, "search", async (s) => {
1441
- if (this.sendMeasureEvent("search_requested", {
1442
- search_term: s.query
1443
- }), (s.query.match(/"/g) || []).length % 2 !== 0)
1444
- throw new Error(
1445
- "The search term contains an uneven number of quote characters."
1446
- );
1447
- try {
1448
- const c = {
1449
- query: this.buildQueryObject(s),
1450
- limit: s.limit ?? 20
1451
- // Default to 20 if not provided
1452
- };
1453
- s.offset !== void 0 && (c.offset = s.offset), s.order_by && (c.order_by = s.order_by, c.sort = s.sort === "desc" || s.sort === "asc" ? s.sort : "asc");
1454
- const a = {
1455
- method: "POST",
1456
- headers: {
1457
- Authorization: this.config.readKey,
1458
- "Content-Type": "application/json",
1459
- "X-Sc-User-Id": this.userId
1460
- },
1461
- body: JSON.stringify(c)
1462
- }, n = await fetch(this.baseSearchUrl, a);
1463
- if (!n.ok)
1441
+ if (R(this, "config"), R(this, "sdkInfo"), R(this, "userId"), R(this, "sessionId"), R(this, "searchRequestTimeout"), R(this, "measureRequestTimeout"), R(this, "measureRequestsBatched", []), R(this, "search", (s, c) => {
1442
+ const a = async () => {
1443
+ if (this.sendMeasureEvent("search_requested", {
1444
+ search_term: s.query
1445
+ }), (s.query.match(/"/g) || []).length % 2 !== 0)
1464
1446
  throw new Error(
1465
- `Error: ${n.statusText} (Status: ${n.status})`
1447
+ "The search term contains an uneven number of quote characters."
1466
1448
  );
1467
- const o = await n.json();
1468
- return this.sendMeasureEvent("search_response_received", {
1469
- search_term: s.query,
1470
- number_of_documents: o.data.count
1471
- }), o;
1472
- } catch (c) {
1473
- throw console.error("Error parsing response:", c), c;
1474
- }
1475
- }), U(this, "sendMeasureEvent", async (s, c = {}, a = {}) => {
1449
+ try {
1450
+ const n = {
1451
+ query: this.buildQueryObject(s),
1452
+ limit: s.limit ?? 20
1453
+ // Default to 20 if not provided
1454
+ };
1455
+ s.offset !== void 0 && (n.offset = s.offset), s.order_by && (n.order_by = s.order_by, n.sort = s.sort === "desc" || s.sort === "asc" ? s.sort : "asc");
1456
+ const o = {
1457
+ method: "POST",
1458
+ headers: {
1459
+ Authorization: this.config.readKey,
1460
+ "Content-Type": "application/json",
1461
+ "X-Sc-User-Id": this.userId
1462
+ },
1463
+ body: JSON.stringify(n)
1464
+ }, u = await fetch(this.baseSearchUrl, o);
1465
+ if (!u.ok)
1466
+ throw new Error(
1467
+ `Error: ${u.statusText} (Status: ${u.status})`
1468
+ );
1469
+ const i = await u.json();
1470
+ this.sendMeasureEvent("search_response_received", {
1471
+ search_term: s.query,
1472
+ number_of_documents: i.data.count
1473
+ }), c(i);
1474
+ } catch (n) {
1475
+ throw console.error("Error parsing response:", n), n;
1476
+ }
1477
+ };
1478
+ clearTimeout(this.searchRequestTimeout), this.config.searchDebounceDelay ? this.searchRequestTimeout = setTimeout(
1479
+ a,
1480
+ this.config.searchDebounceDelay
1481
+ ) : a();
1482
+ }), R(this, "sendMeasureEvent", (s, c = {}, a = {}) => {
1476
1483
  const n = {
1477
1484
  event_name: s,
1478
1485
  properties: {
@@ -1483,26 +1490,30 @@ class Ts {
1483
1490
  ...this.measureRequestUser,
1484
1491
  ...a
1485
1492
  }
1486
- }, o = JSON.stringify(n), u = `${this.baseMeasureUrl}/event`;
1487
- try {
1488
- const i = await fetch(u, {
1489
- method: "POST",
1490
- headers: {
1491
- "Content-Type": "application/json",
1492
- Authorization: this.config.readKey,
1493
- "X-Sc-User-Id": this.userId
1494
- },
1495
- body: o,
1496
- keepalive: !0
1497
- });
1498
- if (!i.ok)
1499
- throw new Error(
1500
- `Failed to send request: ${i.status} ${i.statusText}`
1501
- );
1502
- return;
1503
- } catch (i) {
1504
- throw console.error("Error sending MeasureRequest:", i), i;
1505
- }
1493
+ };
1494
+ this.measureRequestsBatched.push(n), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
1495
+ const o = JSON.stringify({ items: this.measureRequestsBatched }), u = `${this.baseMeasureUrl}/batch`;
1496
+ try {
1497
+ const i = await fetch(u, {
1498
+ method: "POST",
1499
+ headers: {
1500
+ "Content-Type": "application/json",
1501
+ Authorization: this.config.readKey,
1502
+ "X-Sc-User-Id": this.userId
1503
+ },
1504
+ body: o,
1505
+ keepalive: !0
1506
+ });
1507
+ if (!i.ok)
1508
+ throw new Error(
1509
+ `Failed to send request: ${i.status} ${i.statusText}`
1510
+ );
1511
+ this.measureRequestsBatched = [];
1512
+ return;
1513
+ } catch (i) {
1514
+ throw console.error("Error sending MeasureRequest:", i), i;
1515
+ }
1516
+ }, Ts);
1506
1517
  }), !t.endpointURL || !t.index || !t.readKey)
1507
1518
  throw new Error(
1508
1519
  "Endpoint URL, Index value(s), and Read Key must be provided"
@@ -1561,7 +1572,7 @@ class Ts {
1561
1572
  const n = (a = t.facetPathsForIndexFields) == null ? void 0 : a[c];
1562
1573
  n && (s = "must", r.push({
1563
1574
  occur: s,
1564
- normal: {
1575
+ exact: {
1565
1576
  ctx: n.value
1566
1577
  }
1567
1578
  }));
@@ -1572,7 +1583,7 @@ class Ts {
1572
1583
  const n = (a = t.rangeValueForIndexFields) == null ? void 0 : a[c];
1573
1584
  n && (s = "must", r.push({
1574
1585
  occur: s,
1575
- normal: {
1586
+ exact: {
1576
1587
  ctx: n.value
1577
1588
  }
1578
1589
  }));
@@ -1585,13 +1596,13 @@ class Ts {
1585
1596
  }), r;
1586
1597
  }
1587
1598
  }
1588
- var w = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(w || {});
1589
- class _s {
1599
+ var k = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(k || {});
1600
+ class As {
1590
1601
  constructor(t) {
1591
- U(this, "logLevel"), U(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
1602
+ R(this, "logLevel"), R(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
1592
1603
  }
1593
1604
  defaultFormatter(t, r) {
1594
- return `[${w[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
1605
+ return `[${k[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
1595
1606
  }
1596
1607
  debug(t) {
1597
1608
  this.logLevel <= 0 && console.log(this.logFormatter(0, t));
@@ -1606,26 +1617,32 @@ class _s {
1606
1617
  this.logLevel <= 3 && console.error(this.logFormatter(3, t));
1607
1618
  }
1608
1619
  }
1609
- const z = Se.create((e, t) => {
1620
+ const _ = Se.create((e, t) => {
1610
1621
  let r = null, s = null;
1611
1622
  const c = (a, n) => {
1612
1623
  if (s)
1613
1624
  switch (a) {
1614
- case w.DEBUG:
1625
+ case k.DEBUG:
1615
1626
  s.debug(n);
1616
1627
  break;
1617
- case w.INFO:
1628
+ case k.INFO:
1618
1629
  s.info(n);
1619
1630
  break;
1620
- case w.WARN:
1631
+ case k.WARN:
1621
1632
  s.warn(n);
1622
1633
  break;
1623
- case w.ERROR:
1634
+ case k.ERROR:
1624
1635
  s.error(n);
1625
1636
  break;
1626
1637
  }
1627
1638
  };
1628
1639
  return {
1640
+ setPopoverVisibility: (a) => {
1641
+ e({
1642
+ isPopoverVisible: a
1643
+ });
1644
+ },
1645
+ isPopoverVisible: !1,
1629
1646
  resetFacetPaths: () => {
1630
1647
  e({
1631
1648
  facetPathsForIndexFields: {}
@@ -1671,30 +1688,25 @@ const z = Se.create((e, t) => {
1671
1688
  setIsRequesting: (a) => e({ isRequesting: a }),
1672
1689
  search: async () => {
1673
1690
  const a = t();
1674
- if (c(w.INFO, `Starting search with search term: "${a.query}"`), !r)
1691
+ if (c(k.INFO, `Starting search with search term: "${a.query}"`), !r)
1675
1692
  throw new Error("Searchcraft instance is not initialized.");
1676
1693
  if (!a.query.trim()) {
1677
- c(w.INFO, "No search request was made: search term was empty."), a.setSearchResults(null);
1694
+ c(k.INFO, "No search request was made: search term was empty."), a.setSearchResults(null);
1678
1695
  return;
1679
1696
  }
1680
- a.setIsRequesting(!0);
1681
- try {
1682
- const n = await r.search({
1683
- query: a.query,
1684
- mode: a.searchMode,
1685
- sort: a.sortType,
1686
- facetPathsForIndexFields: a.facetPathsForIndexFields,
1687
- rangeValueForIndexFields: a.rangeValueForIndexFields
1688
- }), o = n.data.facets || null;
1689
- a.setSearchResults(n), a.setFacets(o), c(w.DEBUG, `Search results: ${JSON.stringify(n)}`), c(w.DEBUG, `Updated facets: ${JSON.stringify(o)}`);
1690
- } catch (n) {
1691
- console.error(`Search failed: ${n.message}`), c(w.ERROR, `Search failed with error: ${n.message}`);
1692
- } finally {
1693
- a.setIsRequesting(!1);
1694
- }
1697
+ a.setIsRequesting(!0), r.search({
1698
+ query: a.query,
1699
+ mode: a.searchMode,
1700
+ sort: a.sortType,
1701
+ facetPathsForIndexFields: a.facetPathsForIndexFields,
1702
+ rangeValueForIndexFields: a.rangeValueForIndexFields
1703
+ }, (n) => {
1704
+ const o = n.data.facets || null;
1705
+ a.setSearchResults(n), a.setFacets(o), c(k.DEBUG, `Search results: ${JSON.stringify(n)}`), c(k.DEBUG, `Updated facets: ${JSON.stringify(o)}`), a.setIsRequesting(!1);
1706
+ });
1695
1707
  },
1696
1708
  initialize: (a, n = !1) => {
1697
- r = a, s = n ? new _s({ logLevel: w.DEBUG }) : null, c(w.INFO, "Searchcraft store initialized.");
1709
+ r = a, s = n ? new As({ logLevel: k.DEBUG }) : null, c(k.INFO, "Searchcraft store initialized.");
1698
1710
  }
1699
1711
  };
1700
1712
  });
@@ -1702,9 +1714,9 @@ Se.create((e) => ({
1702
1714
  theme: "light",
1703
1715
  toggleTheme: () => e((t) => ({ theme: t.theme === "light" ? "dark" : "light" }))
1704
1716
  }));
1705
- const As = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-search-result-container{all:unset;align-items:flex-start;border-radius:16px;display:flex;flex-direction:column;gap:16px;padding:8px;color:inherit;background-color:var(--sc-surface-neutral-primary)}@media (min-width: 900px){.searchcraft-search-result-container{flex-direction:row}}a.searchcraft-search-result-container{cursor:pointer;transition:background-color 100ms}.searchcraft-base-search-result-content-container{flex:1;display:flex;flex-direction:column;gap:8px}.searchcraft-search-result-image{border-radius:var(--sc-image-border-radius);width:100%}@media (min-width: 900px){.searchcraft-search-result-image{width:200px}}.searchcraft-base-search-result-title{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-base-search-result-subtitle{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-disabled)}.searchcraft-base-search-result-body-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-base-search-result-footer-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-disabled)}", Ps = As, At = /* @__PURE__ */ P(class extends A {
1717
+ const Ps = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-search-result-container{all:unset;align-items:flex-start;border-radius:16px;display:flex;flex-direction:column;gap:16px;padding:8px;color:inherit;background-color:var(--sc-surface-neutral-primary)}@media (min-width: 768px){.searchcraft-search-result-container{flex-direction:row}}a.searchcraft-search-result-container{cursor:pointer;transition:background-color 100ms}.searchcraft-base-search-result-content-container{flex:1;display:flex;flex-direction:column;gap:8px}.searchcraft-search-result-image{border-radius:var(--sc-image-border-radius);width:100%}@media (min-width: 768px){.searchcraft-search-result-image{width:200px}}.searchcraft-base-search-result-title{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-base-search-result-subtitle{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-disabled)}.searchcraft-base-search-result-body-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-base-search-result-footer-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-disabled)}", Bs = Ps, At = /* @__PURE__ */ M(class extends B {
1706
1718
  constructor() {
1707
- super(), this.__registerHost(), this.searchcraftStore = z.getState(), this.recordMeasureEvent = () => {
1719
+ super(), this.__registerHost(), this.searchcraftStore = _.getState(), this.recordMeasureEvent = () => {
1708
1720
  var t, r, s;
1709
1721
  const c = this.searchcraftStore.getSearchcraftInstance();
1710
1722
  if (c) {
@@ -1730,7 +1742,7 @@ const As = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
1730
1742
  return this.containerHref ? d("a", { class: "searchcraft-search-result-container", onClick: this.recordMeasureEvent, href: this.containerHref, rel: this.containerRel, style: t.container || {}, tabindex: "0", target: this.containerTarget }, s) : d("div", { class: "searchcraft-search-result-container", style: t.container || {} }, s);
1731
1743
  }
1732
1744
  static get style() {
1733
- return Ps;
1745
+ return Bs;
1734
1746
  }
1735
1747
  }, [0, "searchcraft-base-search-result", {
1736
1748
  titleContent: [1, "title-content"],
@@ -1761,31 +1773,26 @@ function Pt() {
1761
1773
  }
1762
1774
  });
1763
1775
  }
1764
- const Ds = At, Ms = Pt;
1765
- function Bs(e) {
1766
- if (typeof e == "string")
1767
- try {
1768
- return JSON.parse(e);
1769
- } catch {
1770
- return console.error("Invalid customStyles format:", e), {};
1771
- }
1772
- return e || {};
1773
- }
1774
- function Is(e) {
1775
- try {
1776
- return JSON.stringify(e);
1777
- } catch (t) {
1778
- return console.error("Error serializing styles:", t), "{}";
1779
- }
1780
- }
1781
- function Ls(e) {
1782
- const t = /* @__PURE__ */ new Date(), r = new Date(e), s = Math.floor((t.getTime() - r.getTime()) / 1e3), c = Math.floor(s / 60), a = Math.floor(c / 60), n = Math.floor(a / 24), o = Math.floor(n / 365);
1783
- return c < 60 ? `${c}m ago` : a < 24 ? `${a}h ago` : n < 365 ? `${n}d ago` : `${o}y ago`;
1784
- }
1785
- function Os(e) {
1786
- return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1776
+ const Ms = At, Ds = Pt;
1777
+ function H(e, t) {
1778
+ if (e && t)
1779
+ return t.fieldNames.map((r) => {
1780
+ let s = e[r.fieldName];
1781
+ if (s)
1782
+ switch (r.dataType) {
1783
+ case "date": {
1784
+ s = Ls(s);
1785
+ break;
1786
+ }
1787
+ case "number": {
1788
+ s = Intl.NumberFormat(r.numberFormatLocale, r.numberFormatOptions).format(s * (r.numberScale || 1));
1789
+ break;
1790
+ }
1791
+ }
1792
+ return s;
1793
+ }).filter((r) => !!r).join(t.delimiter || " ");
1787
1794
  }
1788
- function Dt(e) {
1795
+ function Bt(e) {
1789
1796
  switch (e) {
1790
1797
  case "hour":
1791
1798
  return 36e5;
@@ -1799,91 +1806,38 @@ function Dt(e) {
1799
1806
  return 36e5;
1800
1807
  }
1801
1808
  }
1802
- function js(e) {
1803
- return e.filter((t, r, s) => !s.some((c, a) => a !== r && c.includes(t)));
1804
- }
1805
- function H(e, t) {
1806
- if (e && t)
1807
- return t.fieldNames.map((r) => {
1808
- let s = e[r.fieldName];
1809
- return s && r.dataType === "date" && (s = Ls(s)), s;
1810
- }).filter((r) => !!r).join(t.delimiter || " ");
1811
- }
1812
- function Mt(e, t) {
1813
- const r = Object.assign({}, e);
1814
- for (const s in t)
1815
- t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Mt(e[s], t[s]) : r[s] = t[s]);
1816
- return r;
1817
- }
1818
- function et(e) {
1819
- const t = {}, r = (s) => {
1820
- var c;
1821
- t[s.path] = {
1822
- count: s.count,
1823
- path: s.path
1824
- }, (c = s.children) === null || c === void 0 || c.forEach((a) => {
1825
- r(a);
1826
- });
1827
- };
1828
- return r(e), t;
1829
- }
1830
- function Us(e) {
1831
- const t = {
1832
- count: 0,
1833
- path: "/",
1834
- children: {}
1835
- };
1836
- return Object.keys(e).forEach((r) => {
1837
- const s = e[r];
1838
- if (s.path === "/")
1839
- return;
1840
- const c = s.path.substring(1).split("/");
1841
- let a = t, n = "";
1842
- c.forEach((o, u) => {
1843
- const i = `${n}/${o}`;
1844
- a.children[i] || (a.children[i] = {
1845
- count: 0,
1846
- path: i,
1847
- children: {}
1848
- }), u === c.length - 1 && (a.children[i].count = s.count), n = i, a = a.children[i];
1849
- });
1850
- }), t;
1809
+ function Is(e) {
1810
+ return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1851
1811
  }
1852
- function Bt(e) {
1853
- const t = {
1854
- count: e.count,
1855
- path: e.path,
1856
- children: []
1857
- };
1858
- return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Bt(r))), t;
1812
+ function Ls(e) {
1813
+ const t = /* @__PURE__ */ new Date(), r = new Date(e), s = Math.floor((t.getTime() - r.getTime()) / 1e3), c = Math.floor(s / 60), a = Math.floor(c / 60), n = Math.floor(a / 24), o = Math.floor(n / 365);
1814
+ return c < 60 ? `${c}m ago` : a < 24 ? `${a}h ago` : n < 365 ? `${n}d ago` : `${o}y ago`;
1859
1815
  }
1860
- function Ns(e, t) {
1861
- const r = Object.keys(e), s = Object.keys(t), c = new Set(s.filter((n) => n.split("/").length > 2).map((n) => n.substring(0, n.lastIndexOf("/"))));
1862
- return Object.fromEntries(r.filter((n) => !c.has(n.substring(0, n.lastIndexOf("/")))).map((n) => [n, e[n]]));
1816
+ function Os(e) {
1817
+ if (typeof e == "string")
1818
+ try {
1819
+ return JSON.parse(e);
1820
+ } catch {
1821
+ return console.error("Invalid customStyles format:", e), {};
1822
+ }
1823
+ return e || {};
1863
1824
  }
1864
- function qs(e, t, r) {
1865
- const s = t[e], c = r[e], a = {
1866
- count: 0,
1867
- path: "/",
1868
- children: s
1869
- }, n = {
1870
- count: 0,
1871
- path: "/",
1872
- children: c
1873
- }, o = et(a), u = et(n), i = Ns(o, u), l = Mt(i, u), h = Us(l), f = Bt(h);
1874
- return {
1875
- [e]: f.children
1876
- };
1825
+ function js(e) {
1826
+ try {
1827
+ return JSON.stringify(e);
1828
+ } catch (t) {
1829
+ return console.error("Error serializing styles:", t), "{}";
1830
+ }
1877
1831
  }
1878
- const Hs = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-error-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-danger);margin:0}", Vs = Hs, It = /* @__PURE__ */ P(class extends A {
1832
+ const Us = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-error-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-danger);margin:0}", qs = Us, Mt = /* @__PURE__ */ M(class extends B {
1879
1833
  constructor() {
1880
1834
  super(), this.__registerHost(), this.errorMessage = void 0;
1881
1835
  }
1882
1836
  render() {
1883
- return d("p", { key: "68c4058c43418e96729a91e6a2a9a106303c8bc0", class: "searchcraft-error-message" }, this.errorMessage || "Search term is required.");
1837
+ return d("p", { key: "5bdc428adf6f239d66a9b0f946ee6e582de41e86", class: "searchcraft-error-message" }, this.errorMessage || "Search term is required.");
1884
1838
  }
1885
1839
  static get style() {
1886
- return Vs;
1840
+ return qs;
1887
1841
  }
1888
1842
  }, [0, "searchcraft-error-message", {
1889
1843
  errorMessage: [1, "error-message"]
@@ -1894,27 +1848,27 @@ function Ae() {
1894
1848
  ["searchcraft-error-message"].forEach((t) => {
1895
1849
  switch (t) {
1896
1850
  case "searchcraft-error-message":
1897
- customElements.get(t) || customElements.define(t, It);
1851
+ customElements.get(t) || customElements.define(t, Mt);
1898
1852
  break;
1899
1853
  }
1900
1854
  });
1901
1855
  }
1902
- const Ws = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-search-results-container{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-ad-section{align-items:center;background-color:#F1F1F1;border-radius:16px;display:flex;flex-direction:column;font-size:16px;justify-content:center;min-height:176px;text-align:center}.searchcraft-ad-section p{margin:0;color:var(--sc-content-disabled)}.searchcraft-search-results-empty-state-container{text-align:center}.searchcraft-search-results-error-message-container{text-align:center}", Gs = Ws, Lt = /* @__PURE__ */ P(class extends A {
1856
+ const Ns = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-search-results-container{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-ad-section{align-items:center;background-color:#F1F1F1;border-radius:16px;display:flex;flex-direction:column;font-size:16px;justify-content:center;min-height:176px;text-align:center}.searchcraft-ad-section p{margin:0;color:var(--sc-content-disabled)}.searchcraft-search-results-empty-state-container{text-align:center}.searchcraft-search-results-error-message-container{text-align:center}", Hs = Ns, Dt = /* @__PURE__ */ M(class extends B {
1903
1857
  constructor() {
1904
- super(), this.__registerHost(), this.noResults = M(this, "noResults", 7), this.adInterval = 4, this.customStylesForResults = void 0, this.searchResultMappings = void 0, this.placeAdAtEnd = !1, this.placeAdAtStart = !0, this.resultImagePlacement = "right", this.buttonLabel = void 0, this.buttonTarget = "_blank", this.buttonRel = void 0, this.containerTarget = "_blank", this.containerRel = void 0, this.hasSearched = !1, this.query = "", this.searchResults = null;
1858
+ super(), this.__registerHost(), this.noResults = T(this, "noResults", 7), this.adInterval = 4, this.customStylesForResults = void 0, this.searchResultMappings = void 0, this.placeAdAtEnd = !1, this.placeAdAtStart = !0, this.resultImagePlacement = "right", this.buttonLabel = void 0, this.buttonTarget = "_blank", this.buttonRel = void 0, this.containerTarget = "_blank", this.containerRel = void 0, this.hasSearched = !1, this.query = "", this.searchResults = null;
1905
1859
  }
1906
1860
  componentDidLoad() {
1907
- this.unsubscribe = z.subscribe((s) => {
1861
+ this.unsubscribe = _.subscribe((s) => {
1908
1862
  s.query.length > 0 ? this.hasSearched = !0 : this.hasSearched = !1, this.searchResults = Object.assign({}, s.searchResults), this.query = s.query;
1909
1863
  });
1910
- const { searchResults: t, query: r } = z.getState();
1864
+ const { searchResults: t, query: r } = _.getState();
1911
1865
  this.searchResults = t, this.query = r;
1912
1866
  }
1913
1867
  disconnectedCallback() {
1914
1868
  this.unsubscribe && this.unsubscribe();
1915
1869
  }
1916
1870
  renderDocument(t, r) {
1917
- const s = H(t, this.searchResultMappings.title), c = H(t, this.searchResultMappings.subtitle), a = H(t, this.searchResultMappings.body), n = H(t, this.searchResultMappings.containerHref), o = H(t, this.searchResultMappings.buttonHref), u = H(t, this.searchResultMappings.imageSource), i = H(t, this.searchResultMappings.footer), l = typeof this.customStylesForResults == "string" ? this.customStylesForResults : Is(this.customStylesForResults);
1871
+ const s = H(t, this.searchResultMappings.title), c = H(t, this.searchResultMappings.subtitle), a = H(t, this.searchResultMappings.body), n = H(t, this.searchResultMappings.containerHref), o = H(t, this.searchResultMappings.buttonHref), u = H(t, this.searchResultMappings.imageSource), i = H(t, this.searchResultMappings.footer), l = typeof this.customStylesForResults == "string" ? this.customStylesForResults : js(this.customStylesForResults);
1918
1872
  return d("searchcraft-base-search-result", { key: `${t.document_id}-${r}`, "custom-styles": l, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": r, "title-content": s, "subtitle-content": c, "body-content": a, "footer-content": i, "container-href": n, "button-href": o, "image-src": u });
1919
1873
  }
1920
1874
  render() {
@@ -1923,22 +1877,22 @@ const Ws = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
1923
1877
  return d("div", { class: "searchcraft-search-results-empty-state-container" }, d("slot", { name: "empty-search" }));
1924
1878
  if (!(!((t = this.searchResults) === null || t === void 0) && t.data))
1925
1879
  return;
1926
- const h = (c = (s = (r = this.searchResults) === null || r === void 0 ? void 0 : r.data) === null || s === void 0 ? void 0 : s.hits) === null || c === void 0 ? void 0 : c.map((g, b) => {
1880
+ const h = (c = (s = (r = this.searchResults) === null || r === void 0 ? void 0 : r.data) === null || s === void 0 ? void 0 : s.hits) === null || c === void 0 ? void 0 : c.map((g, m) => {
1927
1881
  const { doc: v } = g;
1928
1882
  return v;
1929
1883
  }), f = [];
1930
1884
  if (this.placeAdAtStart && f.push(d("div", { key: "ad-section-start", class: "searchcraft-ad-section" }, d("p", null, "Ad Section"))), this.adInterval > 0)
1931
- h.forEach((g, b) => {
1932
- f.push(this.renderDocument(g, b)), (b + 1) % this.adInterval === 0 && f.push(d("div", { key: `ad-section-${b + 1}`, class: "searchcraft-ad-section " }, d("p", null, "Ad Section")));
1885
+ h.forEach((g, m) => {
1886
+ f.push(this.renderDocument(g, m)), (m + 1) % this.adInterval === 0 && f.push(d("div", { key: `ad-section-${m + 1}`, class: "searchcraft-ad-section " }, d("p", null, "Ad Section")));
1933
1887
  });
1934
1888
  else {
1935
- const g = h.map((b, v) => this.renderDocument(b, v));
1889
+ const g = h.map((m, v) => this.renderDocument(m, v));
1936
1890
  f.push(...g);
1937
1891
  }
1938
1892
  return this.placeAdAtEnd && f.push(d("div", { key: "ad-section-end", class: "searchcraft-ad-section" }, d("p", null, "Ad Section"))), this.query.length > 0 && ((o = (n = (a = this.searchResults) === null || a === void 0 ? void 0 : a.data) === null || n === void 0 ? void 0 : n.hits) === null || o === void 0 ? void 0 : o.length) === 0 && this.noResults.emit(), d("div", { class: "searchcraft-search-results-container" }, f, this.query.length > 0 && ((l = (i = (u = this.searchResults) === null || u === void 0 ? void 0 : u.data) === null || i === void 0 ? void 0 : i.hits) === null || l === void 0 ? void 0 : l.length) === 0 && d("div", { class: "searchcraft-search-results-error-message-container" }, d("searchcraft-error-message", { "error-message": `No search results found for "${this.query}" query` })));
1939
1893
  }
1940
1894
  static get style() {
1941
- return Gs;
1895
+ return Hs;
1942
1896
  }
1943
1897
  }, [4, "searchcraft-base-search-results", {
1944
1898
  adInterval: [2, "ad-interval"],
@@ -1956,13 +1910,13 @@ const Ws = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
1956
1910
  query: [32],
1957
1911
  searchResults: [32]
1958
1912
  }]);
1959
- function Qs() {
1913
+ function Vs() {
1960
1914
  if (typeof customElements > "u")
1961
1915
  return;
1962
1916
  ["searchcraft-base-search-results", "searchcraft-base-search-result", "searchcraft-error-message"].forEach((t) => {
1963
1917
  switch (t) {
1964
1918
  case "searchcraft-base-search-results":
1965
- customElements.get(t) || customElements.define(t, Lt);
1919
+ customElements.get(t) || customElements.define(t, Dt);
1966
1920
  break;
1967
1921
  case "searchcraft-base-search-result":
1968
1922
  customElements.get(t) || Pt();
@@ -1973,8 +1927,8 @@ function Qs() {
1973
1927
  }
1974
1928
  });
1975
1929
  }
1976
- const Js = Lt, Ks = Qs;
1977
- var Ot = { exports: {} };
1930
+ const Ws = Dt, Gs = Vs;
1931
+ var It = { exports: {} };
1978
1932
  /*!
1979
1933
  Copyright (c) 2018 Jed Watson.
1980
1934
  Licensed under the MIT License (MIT), see
@@ -2009,18 +1963,18 @@ var Ot = { exports: {} };
2009
1963
  }
2010
1964
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
2011
1965
  })();
2012
- })(Ot);
2013
- const x = Ot.exports, Ys = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-button{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);border-radius:8px;display:flex;padding:12px 20px;position:relative;background-color:var(--sc-surface-brand-primary);border:1px solid var(--sc-border-primary);color:var(--sc-content-brand-on-primary)}.searchcraft-button:hover{cursor:pointer;background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button:focus{outline:2px solid var(--sc-surface-brand-primary)}.buttonLabel{position:relative}", Xs = Ys, jt = /* @__PURE__ */ P(class extends A {
1966
+ })(It);
1967
+ const x = It.exports, Qs = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-button{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);border-radius:8px;display:flex;padding:12px 20px;position:relative;background-color:var(--sc-surface-brand-primary);border:1px solid var(--sc-border-primary);color:var(--sc-content-brand-on-primary)}.searchcraft-button:hover{cursor:pointer;background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button:focus{outline:2px solid var(--sc-surface-brand-primary)}.buttonLabel{position:relative}", Js = Qs, Lt = /* @__PURE__ */ M(class extends B {
2014
1968
  constructor() {
2015
- super(), this.__registerHost(), this.buttonClick = M(this, "buttonClick", 7), this.handleClick = () => {
1969
+ super(), this.__registerHost(), this.buttonClick = T(this, "buttonClick", 7), this.handleClick = () => {
2016
1970
  this.buttonClick.emit();
2017
1971
  }, this.iconElement = void 0, this.iconOnly = !1, this.iconPosition = "left", this.label = "Search", this.isRequesting = !1;
2018
1972
  }
2019
1973
  render() {
2020
- return d($e, { key: "8ea823d757ceca459ef80affa8dfdf7e96076c32" }, this.iconOnly ? d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.isRequesting ? d("searchcraft-spinner-dark", null) : this.iconElement) : d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.iconPosition === "left" && this.iconElement, d("span", { class: x("buttonLabel", "searchcraft-button-label") }, this.label)));
1974
+ return d($e, { key: "52b95f09f5da9f281b250285623e150c5d952dce" }, this.iconOnly ? d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.isRequesting ? d("searchcraft-spinner-dark", null) : this.iconElement) : d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.iconPosition === "left" && this.iconElement, d("span", { class: x("buttonLabel", "searchcraft-button-label") }, this.label)));
2021
1975
  }
2022
1976
  static get style() {
2023
- return Xs;
1977
+ return Js;
2024
1978
  }
2025
1979
  }, [0, "searchcraft-button", {
2026
1980
  iconElement: [16],
@@ -2029,20 +1983,90 @@ const x = Ot.exports, Ys = ":root{--sc-spinner-size:20px;--sc-input-border-radiu
2029
1983
  label: [1],
2030
1984
  isRequesting: [32]
2031
1985
  }]);
2032
- function Ut() {
1986
+ function Ot() {
2033
1987
  if (typeof customElements > "u")
2034
1988
  return;
2035
1989
  ["searchcraft-button"].forEach((t) => {
2036
1990
  switch (t) {
2037
1991
  case "searchcraft-button":
2038
- customElements.get(t) || customElements.define(t, jt);
1992
+ customElements.get(t) || customElements.define(t, Lt);
2039
1993
  break;
2040
1994
  }
2041
1995
  });
2042
1996
  }
2043
- const Zs = jt, en = Ut, tn = It, rn = Ae, sn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.filtersListContainer{width:100%}.filterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.filterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.filterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.filterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.filterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.filterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.childFilterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:12px;margin-left:24px;position:relative}.childFilterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px;-webkit-font-smoothing:antialiased}.childFilterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.childFilterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.childFilterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.childFilterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.checkContainer{display:none;height:16px;width:16px;position:absolute;top:9px;left:8px}.dashContainer{display:none;height:3px;width:14px;position:absolute;top:3px;left:9px}.searchcraft-facet-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-disabled);text-align:center}", nn = sn, Nt = /* @__PURE__ */ P(class extends A {
1997
+ const Ks = Lt, Ys = Ot, Xs = Mt, Zs = Ae;
1998
+ function jt(e, t) {
1999
+ const r = Object.assign({}, e);
2000
+ for (const s in t)
2001
+ t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = jt(e[s], t[s]) : r[s] = t[s]);
2002
+ return r;
2003
+ }
2004
+ function en(e) {
2005
+ return e.filter((t, r, s) => !s.some((c, a) => a !== r && c.includes(t)));
2006
+ }
2007
+ function et(e) {
2008
+ const t = {}, r = (s) => {
2009
+ var c;
2010
+ t[s.path] = {
2011
+ count: s.count,
2012
+ path: s.path
2013
+ }, (c = s.children) === null || c === void 0 || c.forEach((a) => {
2014
+ r(a);
2015
+ });
2016
+ };
2017
+ return r(e), t;
2018
+ }
2019
+ function tn(e) {
2020
+ const t = {
2021
+ count: 0,
2022
+ path: "/",
2023
+ children: {}
2024
+ };
2025
+ return Object.keys(e).forEach((r) => {
2026
+ const s = e[r];
2027
+ if (s.path === "/")
2028
+ return;
2029
+ const c = s.path.substring(1).split("/");
2030
+ let a = t, n = "";
2031
+ c.forEach((o, u) => {
2032
+ const i = `${n}/${o}`;
2033
+ a.children[i] || (a.children[i] = {
2034
+ count: 0,
2035
+ path: i,
2036
+ children: {}
2037
+ }), u === c.length - 1 && (a.children[i].count = s.count), n = i, a = a.children[i];
2038
+ });
2039
+ }), t;
2040
+ }
2041
+ function Ut(e) {
2042
+ const t = {
2043
+ count: e.count,
2044
+ path: e.path,
2045
+ children: []
2046
+ };
2047
+ return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Ut(r))), t;
2048
+ }
2049
+ function rn(e, t) {
2050
+ const r = Object.keys(e), s = Object.keys(t), c = new Set(s.filter((n) => n.split("/").length > 2).map((n) => n.substring(0, n.lastIndexOf("/"))));
2051
+ return Object.fromEntries(r.filter((n) => !c.has(n.substring(0, n.lastIndexOf("/")))).map((n) => [n, e[n]]));
2052
+ }
2053
+ function sn(e, t, r) {
2054
+ const s = t[e], c = r[e], a = {
2055
+ count: 0,
2056
+ path: "/",
2057
+ children: s
2058
+ }, n = {
2059
+ count: 0,
2060
+ path: "/",
2061
+ children: c
2062
+ }, o = et(a), u = et(n), i = rn(o, u), l = jt(i, u), h = tn(l), f = Ut(h);
2063
+ return {
2064
+ [e]: f.children
2065
+ };
2066
+ }
2067
+ const nn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.filtersListContainer{width:100%}.filterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.filterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.filterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.filterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.filterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.filterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.childFilterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:12px;margin-left:24px;position:relative}.childFilterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px;-webkit-font-smoothing:antialiased}.childFilterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.childFilterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.childFilterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.childFilterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.checkContainer{display:none;height:16px;width:16px;position:absolute;top:9px;left:8px}.dashContainer{display:none;height:3px;width:14px;position:absolute;top:3px;left:9px}.searchcraft-facet-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-disabled);text-align:center}", an = nn, qt = /* @__PURE__ */ M(class extends B {
2044
2068
  constructor() {
2045
- super(), this.__registerHost(), this.facetSelectionUpdated = M(this, "facetSelectionUpdated", 7), this.searchStore = z.getState(), this.formatLabel = (t) => {
2069
+ super(), this.__registerHost(), this.facetSelectionUpdated = T(this, "facetSelectionUpdated", 7), this.searchStore = _.getState(), this.formatLabel = (t) => {
2046
2070
  const r = t.path.replace(/^\//, ""), s = t.count;
2047
2071
  return `${r.replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())} (${s})`;
2048
2072
  }, this.formatSubLabel = (t, r) => {
@@ -2056,12 +2080,12 @@ const Zs = jt, en = Ut, tn = It, rn = Ae, sn = ":root{--sc-spinner-size:20px;--s
2056
2080
  if ((t.query !== this.lastQuery || t.searchMode !== this.lastSearchMode || t.sortType !== this.lastSortType) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && c) {
2057
2081
  this.facetRoot = void 0;
2058
2082
  const n = c.find((o) => this.fieldName === Object.keys(o)[0]);
2059
- this.hasNewSearchTerm ? (this.baseFacetRoot = n, this.facetRoot = n, this.hasNewSearchTerm = !1) : this.baseFacetRoot && (this.facetRoot = qs(this.fieldName, this.baseFacetRoot, n));
2083
+ this.hasNewSearchTerm ? (this.baseFacetRoot = n, this.facetRoot = n, this.hasNewSearchTerm = !1) : this.baseFacetRoot && (this.facetRoot = sn(this.fieldName, this.baseFacetRoot, n));
2060
2084
  }
2061
2085
  this.lastQuery = t.query, this.lastSearchMode = t.searchMode, this.lastSortType = t.sortType, this.lastTimeTaken = a;
2062
2086
  }
2063
2087
  connectedCallback() {
2064
- this.handleStateUpdate(this.searchStore), this.unsubscribe = z.subscribe((t) => {
2088
+ this.handleStateUpdate(this.searchStore), this.unsubscribe = _.subscribe((t) => {
2065
2089
  this.handleStateUpdate(t);
2066
2090
  });
2067
2091
  }
@@ -2076,13 +2100,13 @@ const Zs = jt, en = Ut, tn = It, rn = Ae, sn = ":root{--sc-spinner-size:20px;--s
2076
2100
  const a = Object.keys(this.selectedPaths).filter((n) => !n.includes(t));
2077
2101
  this.selectedPaths = a.reduce((n, o) => (n[o] = !0, n), {});
2078
2102
  }
2079
- const s = Object.keys(this.selectedPaths).filter((a) => this.selectedPaths[a]), c = js(s);
2103
+ const s = Object.keys(this.selectedPaths).filter((a) => this.selectedPaths[a]), c = en(s);
2080
2104
  this.facetSelectionUpdated.emit({ paths: c });
2081
2105
  }
2082
2106
  render() {
2083
2107
  var t;
2084
2108
  const r = (t = this.facetRoot) === null || t === void 0 ? void 0 : t[this.fieldName];
2085
- return d("div", { key: "c7b6a2c7bbb48d0835745b4bcae43a283ade4139", class: x("filtersListContainer", "searchcraft-filters-list-container") }, !r && d("p", { key: "a682f57ff51fdcfec670744ef84930c90c9b9c20", class: "searchcraft-facet-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((s) => {
2109
+ return d("div", { key: "709834d9f86b75257ae0c67e9340c0fea4131035", class: x("filtersListContainer", "searchcraft-filters-list-container") }, !r && d("p", { key: "a6e2ced40fcc0762ae8ea835c9d6c573aceeb1f1", class: "searchcraft-facet-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((s) => {
2086
2110
  var c;
2087
2111
  const a = s.children ? (c = s.children) === null || c === void 0 ? void 0 : c.some((n) => this.selectedPaths[n.path]) : !1;
2088
2112
  return d("div", { key: s.path, class: x("searchcraft-filters-list-item") }, d("label", { class: x("filterCheckboxLabel", "searchcraft-filters-list-checkbox-label") }, d("input", { checked: this.selectedPaths[s.path], onChange: (n) => this.handleCheckboxChange(s.path), type: "checkbox" }), a ? d("div", { class: x("dashContainer", "searchcraft-filter-list-dash-container") }, d("searchcraft-dash-icon", null)) : d("div", { class: x("checkContainer", "searchcraft-filter-list-check-container") }, d("searchcraft-check-icon", null)), this.formatLabel(s)), s.children && s.children.length > 0 && d($e, null, s.children.map((n) => d("label", { key: n.path, class: x("childFilterCheckboxLabel", "searchcraft-child-filter-checkbox-label"), style: {
@@ -2093,7 +2117,7 @@ const Zs = jt, en = Ut, tn = It, rn = Ae, sn = ":root{--sc-spinner-size:20px;--s
2093
2117
  }));
2094
2118
  }
2095
2119
  static get style() {
2096
- return nn;
2120
+ return an;
2097
2121
  }
2098
2122
  }, [0, "searchcraft-facet-list", {
2099
2123
  fieldName: [1, "field-name"],
@@ -2107,20 +2131,20 @@ const Zs = jt, en = Ut, tn = It, rn = Ae, sn = ":root{--sc-spinner-size:20px;--s
2107
2131
  lastSortType: [32],
2108
2132
  unsubscribe: [32]
2109
2133
  }]);
2110
- function qt() {
2134
+ function Nt() {
2111
2135
  if (typeof customElements > "u")
2112
2136
  return;
2113
2137
  ["searchcraft-facet-list"].forEach((t) => {
2114
2138
  switch (t) {
2115
2139
  case "searchcraft-facet-list":
2116
- customElements.get(t) || customElements.define(t, Nt);
2140
+ customElements.get(t) || customElements.define(t, qt);
2117
2141
  break;
2118
2142
  }
2119
2143
  });
2120
2144
  }
2121
- const an = Nt, cn = qt, on = ':root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-slider-container{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range-container{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range-container::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range-container .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-input{appearance:none;background:transparent;border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range-container .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range-container .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label-container{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro", sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-label{min-width:30px;text-align:center}', ln = on, Ht = /* @__PURE__ */ P(class extends A {
2145
+ const cn = qt, on = Nt, ln = ':root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-slider-container{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range-container{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range-container::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range-container .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-input{appearance:none;background:transparent;border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range-container .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range-container .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label-container{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro", sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-label{min-width:30px;text-align:center}', un = ln, Ht = /* @__PURE__ */ M(class extends B {
2122
2146
  constructor() {
2123
- super(), this.__registerHost(), this.rangeChanged = M(this, "rangeChanged", 7), this.emitUpdate = async () => {
2147
+ super(), this.__registerHost(), this.rangeChanged = T(this, "rangeChanged", 7), this.emitUpdate = async () => {
2124
2148
  this.rangeChanged.emit({
2125
2149
  startValue: this.startValue,
2126
2150
  endValue: this.endValue
@@ -2131,20 +2155,20 @@ const an = Nt, cn = qt, on = ':root{--sc-spinner-size:20px;--sc-input-border-rad
2131
2155
  }, this.handleEndValueChange = (t) => {
2132
2156
  const r = t.target, s = Number.parseInt(r.value, 10);
2133
2157
  this.lastFocusedHandle = "max", s >= this.startValue ? (this.endValue = s, this.emitUpdate()) : (this.endValue = this.startValue, r.value = `${this.startValue}`);
2134
- }, this.max = 100, this.min = 0, this.granularity = Dt("month"), this.dataType = "number", this.endValue = this.max, this.startValue = this.min, this.lastFocusedHandle = "max";
2158
+ }, this.max = 100, this.min = 0, this.granularity = Bt("month"), this.dataType = "number", this.endValue = this.max, this.startValue = this.min, this.lastFocusedHandle = "max";
2135
2159
  }
2136
2160
  componentDidLoad() {
2137
2161
  this.startValue = this.min, this.endValue = this.max;
2138
2162
  }
2139
2163
  render() {
2140
2164
  const t = this.min, r = this.max, s = (this.startValue - t) / (r - t) * 100, c = (this.endValue - t) / (r - t) * 100, a = this.dataType === "number" ? this.startValue : new Date(this.startValue).getFullYear(), n = this.dataType === "number" ? this.endValue : new Date(this.endValue).getFullYear();
2141
- return d("div", { key: "51de4996df052bf178590aeb4c56a67ec57c92e5", class: "searchcraft-slider-container" }, d("div", { key: "634bead69c3fbc462cda3dd65dd4ba6a398c6913", class: "searchcraft-slider-range-container" }, d("div", { key: "1b7a0b63ef208884f24b9f56b48a72bca320c71b", class: "searchcraft-slider-active-range", style: {
2165
+ return d("div", { key: "d03f03307d560048eff499afabb4171421c9b5cd", class: "searchcraft-slider-container" }, d("div", { key: "986b2fb47def38024b256cb093546ee7db9ccf5c", class: "searchcraft-slider-range-container" }, d("div", { key: "4c4f71c218f65acbfa25ec220cdeb581ef0e6c0d", class: "searchcraft-slider-active-range", style: {
2142
2166
  left: `${s}%`,
2143
2167
  width: `${c - s}%`
2144
- } }), d("input", { key: "29313d6909d5ff646d7f3810163f5f01fe09cc36", class: x("searchcraft-slider-input", "searchcraft-slider-input-min-handle"), max: this.max, min: this.min, onInput: this.handleStartValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "min" ? "2" : "1" }, type: "range", value: this.startValue }), d("input", { key: "1e95e93a028c7bc204e2f3894bfe8b77ac6c9d28", class: x("searchcraft-slider-input", "searchcraft-slider-input-max-handle"), max: this.max, min: this.min, onInput: this.handleEndValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "max" ? "2" : "1" }, type: "range", value: this.endValue })), d("div", { key: "c1560933a38f3153ac1dbaece041ef75df479dc4", class: "searchcraft-slider-label-container" }, d("span", { key: "638f72b8c081a324cc3ecb833163cd036a6ab90c", class: "searchcraft-slider-label" }, a), d("span", { key: "011968bdf897de9960fe2214b4adceee4d79b6d0", class: "searchcraft-slider-label" }, n)));
2168
+ } }), d("input", { key: "8968b1925f83480561a460b5f7da64499ec220c0", class: x("searchcraft-slider-input", "searchcraft-slider-input-min-handle"), max: this.max, min: this.min, onInput: this.handleStartValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "min" ? "2" : "1" }, type: "range", value: this.startValue }), d("input", { key: "1ec4b397eb5ca6834719b0c09811d2b11e70c6d0", class: x("searchcraft-slider-input", "searchcraft-slider-input-max-handle"), max: this.max, min: this.min, onInput: this.handleEndValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "max" ? "2" : "1" }, type: "range", value: this.endValue })), d("div", { key: "abc788f7398c68aefcd12468280ef07fcf2ae673", class: "searchcraft-slider-label-container" }, d("span", { key: "f09f772f95c21fc4dfcd58d6eed7ff6901d329b8", class: "searchcraft-slider-label" }, a), d("span", { key: "251cecce58bb785d9478e80edfe429a1e18ef274", class: "searchcraft-slider-label" }, n)));
2145
2169
  }
2146
2170
  static get style() {
2147
- return ln;
2171
+ return un;
2148
2172
  }
2149
2173
  }, [0, "searchcraft-slider", {
2150
2174
  max: [2],
@@ -2166,14 +2190,14 @@ function Vt() {
2166
2190
  }
2167
2191
  });
2168
2192
  }
2169
- const un = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-toggle-button-container{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-toggle-button-background{transition:background-color 0.2s;background:var(--sc-surface-disabled);border:none;border-radius:16px;cursor:pointer;height:26px;position:relative;width:44px;flex-shrink:0}.searchcraft-toggle-button-background.active{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0, 0, 0, 0.05)}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform 0.3s ease;width:18px}.searchcraft-toggle-button-handle.active{transform:translateX(16px)}", dn = un, Wt = /* @__PURE__ */ P(class extends A {
2193
+ const dn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-toggle-button-container{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-toggle-button-background{transition:background-color 0.2s;background:var(--sc-surface-disabled);border:none;border-radius:16px;cursor:pointer;height:26px;position:relative;width:44px;flex-shrink:0}.searchcraft-toggle-button-background.active{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0, 0, 0, 0.05)}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform 0.3s ease;width:18px}.searchcraft-toggle-button-handle.active{transform:translateX(16px)}", hn = dn, Wt = /* @__PURE__ */ M(class extends B {
2170
2194
  constructor() {
2171
- super(), this.__registerHost(), this.toggleUpdated = M(this, "toggleUpdated", 7), this.handleToggle = async () => {
2195
+ super(), this.__registerHost(), this.toggleUpdated = T(this, "toggleUpdated", 7), this.handleToggle = async () => {
2172
2196
  this.isActive = !this.isActive, this.toggleUpdated.emit(this.isActive);
2173
2197
  }, this.label = "Toggle", this.subLabel = void 0, this.isActive = !1, this.unsubscribe = void 0, this.lastQuery = void 0;
2174
2198
  }
2175
2199
  connectedCallback() {
2176
- this.unsubscribe = z.subscribe((t) => {
2200
+ this.unsubscribe = _.subscribe((t) => {
2177
2201
  t.query !== this.lastQuery && t.query.trim().length === 0 && (this.isActive = !1), this.lastQuery = t.query;
2178
2202
  });
2179
2203
  }
@@ -2182,14 +2206,14 @@ const un = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
2182
2206
  (t = this.unsubscribe) === null || t === void 0 || t.call(this);
2183
2207
  }
2184
2208
  render() {
2185
- return d("div", { key: "90a7816e1e02125939f3f05a9dbfd94a5f161959", class: "searchcraft-toggle-button-container" }, d("div", { key: "6a3e570ba3d00ccc315cd092d5b1c618c0b23ea2" }, d("p", { key: "41d1d0ab4557c856bb0ed12af8a4b0c81203d6d5", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && d("p", { key: "ec145b4f655bacec600ac9aa137662f7fed9b7d2", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), d("button", { key: "226599543806881f306630708eee24e922ff592e", class: x("searchcraft-toggle-button-background", {
2209
+ return d("div", { key: "607bbc1adc109ec918effb25c6b91052227a2f7b", class: "searchcraft-toggle-button-container" }, d("div", { key: "b452e1690c617020866f6bf3e591f62cc3fce111" }, d("p", { key: "1bd8fa345516e412ea57bdbeac37dc8e26f2feaa", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && d("p", { key: "fce324a14721bab5f6173838f677ecb290200c8f", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), d("button", { key: "7b293a3ef64da88f463e5e6e303dabcbc63589bd", class: x("searchcraft-toggle-button-background", {
2186
2210
  active: this.isActive
2187
- }), onClick: this.handleToggle, type: "button" }, d("div", { key: "b83e81e7820705952cfc8c911223e67dfbc0f98d", class: x("searchcraft-toggle-button-handle", {
2211
+ }), onClick: this.handleToggle, type: "button" }, d("div", { key: "6afd68afeea5bb15ce1bde486ac59f7a958f6752", class: x("searchcraft-toggle-button-handle", {
2188
2212
  active: this.isActive
2189
2213
  }) })));
2190
2214
  }
2191
2215
  static get style() {
2192
- return dn;
2216
+ return hn;
2193
2217
  }
2194
2218
  }, [0, "searchcraft-toggle-button", {
2195
2219
  label: [1],
@@ -2209,12 +2233,12 @@ function Gt() {
2209
2233
  }
2210
2234
  });
2211
2235
  }
2212
- const hn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height)}", fn = hn, Qt = /* @__PURE__ */ P(class extends A {
2236
+ const fn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height)}", pn = fn, Qt = /* @__PURE__ */ M(class extends B {
2213
2237
  constructor() {
2214
- super(), this.__registerHost(), this.searchStore = z.getState(), this.items = [], this.unsubscribe = void 0, this.lastQuery = void 0;
2238
+ super(), this.__registerHost(), this.searchStore = _.getState(), this.items = [], this.unsubscribe = void 0, this.lastQuery = void 0;
2215
2239
  }
2216
2240
  componentDidLoad() {
2217
- this.unsubscribe = z.subscribe((t) => {
2241
+ this.unsubscribe = _.subscribe((t) => {
2218
2242
  this.lastQuery = t.query || "";
2219
2243
  });
2220
2244
  }
@@ -2242,7 +2266,7 @@ const hn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
2242
2266
  }) : this.searchStore.removeFacetPathsForIndexField(t), this.searchStore.search();
2243
2267
  }
2244
2268
  handleExactMatchToggleUpdated(t) {
2245
- this.searchStore.setSearchMode(t ? "normal" : "fuzzy"), this.searchStore.search();
2269
+ this.searchStore.setSearchMode(t ? "exact" : "fuzzy"), this.searchStore.search();
2246
2270
  }
2247
2271
  handleMostRecentToggleUpdated(t) {
2248
2272
  this.searchStore.setSortType(t ? "desc" : "asc"), this.searchStore.search();
@@ -2251,10 +2275,10 @@ const hn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
2251
2275
  * Iterate through `items` and render them based on `type`
2252
2276
  */
2253
2277
  render() {
2254
- return d("div", { key: "45bcbe509465b8fe3720f3a535902906acfac2ea", class: "searchcraft-filter-panel" }, this.items.map((t) => {
2278
+ return d("div", { key: "43bb83b1616c00f46727c7baff2cbc013f88e111", class: "searchcraft-filter-panel" }, this.items.map((t) => {
2255
2279
  switch (t.type) {
2256
2280
  case "dateRange": {
2257
- const r = t, s = new Date(r.options.minDate).getTime(), c = new Date(r.options.maxDate).getTime(), a = Dt(r.options.granularity);
2281
+ const r = t, s = new Date(r.options.minDate).getTime(), c = new Date(r.options.maxDate).getTime(), a = Bt(r.options.granularity);
2258
2282
  return d("div", { class: "searchcraft-filter-panel-section" }, d("p", { class: "searchcraft-filter-panel-label" }, t.label), d("searchcraft-slider", { min: s, max: c, granularity: a, dataType: "date", onRangeChanged: (n) => {
2259
2283
  this.handleDateRangeChanged(r.fieldName, n.detail.startValue, n.detail.endValue);
2260
2284
  } }));
@@ -2287,14 +2311,14 @@ const hn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
2287
2311
  }));
2288
2312
  }
2289
2313
  static get style() {
2290
- return fn;
2314
+ return pn;
2291
2315
  }
2292
2316
  }, [0, "searchcraft-filter-panel", {
2293
2317
  items: [16],
2294
2318
  unsubscribe: [32],
2295
2319
  lastQuery: [32]
2296
2320
  }]);
2297
- function pn() {
2321
+ function gn() {
2298
2322
  if (typeof customElements > "u")
2299
2323
  return;
2300
2324
  ["searchcraft-filter-panel", "searchcraft-facet-list", "searchcraft-slider", "searchcraft-toggle-button"].forEach((t) => {
@@ -2303,7 +2327,7 @@ function pn() {
2303
2327
  customElements.get(t) || customElements.define(t, Qt);
2304
2328
  break;
2305
2329
  case "searchcraft-facet-list":
2306
- customElements.get(t) || qt();
2330
+ customElements.get(t) || Nt();
2307
2331
  break;
2308
2332
  case "searchcraft-slider":
2309
2333
  customElements.get(t) || Vt();
@@ -2314,15 +2338,15 @@ function pn() {
2314
2338
  }
2315
2339
  });
2316
2340
  }
2317
- const gn = Qt, bn = pn, mn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-input-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height);color:var(--sc-content-neutral-primary);margin-top:4px;margin-bottom:4px}", yn = mn, Jt = /* @__PURE__ */ P(class extends A {
2341
+ const mn = Qt, bn = gn, yn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-input-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height);color:var(--sc-content-neutral-primary);margin-top:4px;margin-bottom:4px}", vn = yn, Jt = /* @__PURE__ */ M(class extends B {
2318
2342
  constructor() {
2319
2343
  super(), this.__registerHost(), this.inputLabelClassName = "", this.label = void 0;
2320
2344
  }
2321
2345
  render() {
2322
- return this.label ? d("label", { class: x("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label) : null;
2346
+ return d("label", { key: "4f913c1d9027ff781725a01e71e241cb5767eadb", class: x("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
2323
2347
  }
2324
2348
  static get style() {
2325
- return yn;
2349
+ return vn;
2326
2350
  }
2327
2351
  }, [0, "searchcraft-input-label", {
2328
2352
  inputLabelClassName: [1, "input-label-class-name"],
@@ -2339,16 +2363,12 @@ function Kt() {
2339
2363
  }
2340
2364
  });
2341
2365
  }
2342
- const vn = "@searchcraft/javascript-sdk", Fn = "0.5.2", xn = "Searchcraft Javascript SDK", En = "Searchcraft", $n = "Apache-2.0", Sn = "dist/index.cjs.js", wn = "dist/index.js", Cn = "dist/types/index.d.ts", kn = "dist/collection/collection-manifest.json", Rn = "dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js", zn = {
2366
+ const Fn = "@searchcraft/javascript-sdk", xn = "0.6.0", En = "Searchcraft Javascript SDK", $n = "Searchcraft", Sn = "Apache-2.0", wn = "dist/index.cjs.js", Cn = "dist/index.js", kn = "dist/types/index.d.ts", Rn = "dist/collection/collection-manifest.json", zn = "dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js", Tn = {
2343
2367
  ".": {
2344
2368
  import: "./dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js",
2345
2369
  require: "./dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.cjs.js",
2346
2370
  types: "./dist/types/index.d.ts"
2347
2371
  },
2348
- "./dist/*": {
2349
- import: "./dist/*",
2350
- types: "./dist/*"
2351
- },
2352
2372
  "./components": {
2353
2373
  import: "./dist/components/index.js",
2354
2374
  types: "./dist/components/index.d.ts"
@@ -2357,22 +2377,26 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.2", xn = "Searchcraft Javasc
2357
2377
  import: "./dist/loader/index.js",
2358
2378
  require: "./dist/loader/index.cjs",
2359
2379
  types: "./dist/loader/index.d.ts"
2380
+ },
2381
+ "./dist/components/*": {
2382
+ import: "./dist/components/*",
2383
+ types: "./dist/components/*"
2360
2384
  }
2361
- }, Tn = {
2385
+ }, _n = {
2362
2386
  type: "git",
2363
2387
  url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/"
2364
- }, _n = [
2388
+ }, An = [
2365
2389
  "dist/"
2366
- ], An = {
2390
+ ], Pn = {
2367
2391
  build: "stencil build",
2368
2392
  dev: "stencil build --dev --watch",
2369
2393
  test: "stencil test --spec --e2e",
2370
2394
  "test.watch": "stencil test --spec --e2e --watchAll",
2371
2395
  generate: "stencil generate"
2372
- }, Pn = {
2396
+ }, Bn = {
2373
2397
  classnames: "^2.3.2"
2374
- }, Dn = {
2375
- "@searchcraft/core": "*",
2398
+ }, Mn = {
2399
+ "@searchcraft/core": "^0.6.0",
2376
2400
  "@searchcraft/javascript-sdk": "*",
2377
2401
  "@stencil/core": "^4.7.0",
2378
2402
  "@stencil/react-output-target": "^0.8.2",
@@ -2380,36 +2404,36 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.2", xn = "Searchcraft Javasc
2380
2404
  "@types/node": "^16.18.11",
2381
2405
  zustand: "^5.0.1"
2382
2406
  }, tt = {
2383
- name: vn,
2407
+ name: Fn,
2384
2408
  private: !1,
2385
- version: Fn,
2386
- description: xn,
2387
- author: En,
2388
- license: $n,
2389
- main: Sn,
2390
- module: wn,
2391
- types: Cn,
2392
- collection: kn,
2409
+ version: xn,
2410
+ description: En,
2411
+ author: $n,
2412
+ license: Sn,
2413
+ main: wn,
2414
+ module: Cn,
2415
+ types: kn,
2416
+ collection: Rn,
2393
2417
  "collection:main": "dist/collection/index.js",
2394
- unpkg: Rn,
2395
- exports: zn,
2396
- repository: Tn,
2397
- files: _n,
2398
- scripts: An,
2399
- dependencies: Pn,
2400
- devDependencies: Dn
2401
- }, Mn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-input-wrapper{position:relative;display:flex}.searchcraft-input-grid{display:grid;gap:4px 8px}.searchcraft-input-grid-buttonLeft{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-grid-buttonLeft .searchcraft-input-button-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-label-wrapper{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-error-wrapper{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-grid-buttonRight .searchcraft-input-button-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonNone{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-grid-buttonNone .searchcraft-input-button-wrapper{display:none}.searchcraft-input-grid-buttonNone .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);background-color:var(--sc-surface-neutral-secondary);border:none;border-radius:var(--sc-input-border-radius);color:var(--sc-content-neutral-primary);outline:none;padding-left:var(--sc-input-padding-left);padding-right:var(--sc-input-padding-right);padding-top:12px;padding-bottom:12px;flex:1}.searchcraft-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input:focus{outline:var(--sc-border-brand) solid 2px}.searchcraft-input:focus::placeholder{opacity:0}.searchcraft-input.error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input.error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-search-icon-wrapper{align-items:center;justify-content:center;display:flex;position:absolute;pointer-events:none;bottom:0;left:0;top:0;width:var(--sc-input-padding-left)}.searchcraft-input-search-icon{pointer-events:none;width:var(--sc-input-search-icon-size);height:var(--sc-input-search-icon-size)}.searchcraft-input-clear-button{all:unset;align-items:center;justify-content:center;cursor:pointer;display:flex;position:absolute;border:none;outline:none;bottom:0;right:0;top:0;width:var(--sc-input-padding-right)}.searchcraft-input-clear-icon{width:var(--sc-input-clear-icon-size);height:var(--sc-input-clear-icon-size)}", Bn = Mn, Yt = /* @__PURE__ */ P(class extends A {
2418
+ unpkg: zn,
2419
+ exports: Tn,
2420
+ repository: _n,
2421
+ files: An,
2422
+ scripts: Pn,
2423
+ dependencies: Bn,
2424
+ devDependencies: Mn
2425
+ }, Dn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-input-grid{display:grid;gap:4px 8px}.searchcraft-input-grid-buttonLeft{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-grid-buttonLeft .searchcraft-input-button-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-label-wrapper{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-error-wrapper{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-grid-buttonRight .searchcraft-input-button-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonNone{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-grid-buttonNone .searchcraft-input-button-wrapper{display:none}.searchcraft-input-grid-buttonNone .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-wrapper{position:relative;display:flex}.searchcraft-input{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-border-radius);border:none;color:var(--sc-content-neutral-primary);outline:none;padding-left:var(--sc-input-padding-left);padding-right:var(--sc-input-padding-right);padding-top:12px;padding-bottom:12px;flex:1}.searchcraft-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input:focus{outline:var(--sc-border-brand) solid 2px}.searchcraft-input:focus::placeholder{opacity:0}.searchcraft-input.error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input.error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-search-icon-wrapper{align-items:center;justify-content:center;display:flex;position:absolute;pointer-events:none;bottom:0;left:0;top:0;width:var(--sc-input-padding-left)}.searchcraft-input-search-icon{pointer-events:none;width:var(--sc-input-search-icon-size);height:var(--sc-input-search-icon-size)}.searchcraft-input-clear-button{all:unset;align-items:center;justify-content:center;cursor:pointer;display:flex;position:absolute;border:none;outline:none;bottom:0;right:0;top:0;width:var(--sc-input-padding-right)}.searchcraft-input-clear-icon{width:var(--sc-input-clear-icon-size);height:var(--sc-input-clear-icon-size)}", In = Dn, Yt = /* @__PURE__ */ M(class extends B {
2402
2426
  constructor() {
2403
- super(), this.__registerHost(), this.inputCleared = M(this, "inputCleared", 7), this.noResultsReceived = M(this, "noResultsReceived", 7), this.querySubmit = M(this, "querySubmit", 7), this.inputFocus = M(this, "inputFocus", 7), this.inputBlur = M(this, "inputBlur", 7), this.debounceTimeout = null, this.searchStore = z.getState(), this.handleOnInput = (t) => {
2427
+ super(), this.__registerHost(), this.inputCleared = T(this, "inputCleared", 7), this.noResultsReceived = T(this, "noResultsReceived", 7), this.inputFocus = T(this, "inputFocus", 7), this.inputBlur = T(this, "inputBlur", 7), this.inputInit = T(this, "inputInit", 7), this.querySubmit = T(this, "querySubmit", 7), this.searchStore = _.getState(), this.handleOnInput = (t) => {
2404
2428
  const r = t.target;
2405
2429
  if (this.inputValue = r.value, r.value.trim() === "") {
2406
- this.inputCleared.emit();
2430
+ this.inputCleared.emit(), this.searchTerm = "", this.searchStore.setQuery(""), this.searchStore.setSearchResults(null);
2407
2431
  return;
2408
2432
  }
2409
- this.autoSearch && (this.debounceDelay > 0 ? (this.debounceTimeout && clearTimeout(this.debounceTimeout), this.debounceTimeout = setTimeout(() => this.performSearch(r.value), this.debounceDelay)) : this.performSearch(r.value));
2433
+ this.autoSearch && this.performSearch(r.value);
2410
2434
  }, this.performSearch = async (t) => {
2411
- if (t !== z.getState().query) {
2412
- this.querySubmit.emit(t), this.searchTerm = t.trim(), this.error = !1, this.searchStore.setQuery(this.searchTerm);
2435
+ if (t !== _.getState().query) {
2436
+ this.searchTerm = t.trim(), this.error = !1, this.searchStore.setQuery(this.searchTerm), this.querySubmit.emit(this.searchTerm);
2413
2437
  try {
2414
2438
  await this.searchStore.search();
2415
2439
  } catch {
@@ -2417,18 +2441,18 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.2", xn = "Searchcraft Javasc
2417
2441
  }
2418
2442
  }
2419
2443
  }, this.handleClearInput = () => {
2420
- this.inputValue = "", this.debounceTimeout && clearTimeout(this.debounceTimeout), this.searchTerm = "", this.searchStore.setQuery(""), this.searchStore.setSearchResults(null), this.error = !1, this.inputCleared && this.inputCleared.emit();
2444
+ this.inputValue = "", this.searchTerm = "", this.searchStore.setQuery(""), this.searchStore.setSearchResults(null), this.error = !1, this.inputCleared && this.inputCleared.emit();
2421
2445
  }, this.handleFormSubmit = async (t) => {
2422
2446
  t.preventDefault(), await this.performSearch(this.searchTerm);
2423
- }, this.config = void 0, this.autoSearch = !0, this.buttonPlacement = "none", this.buttonLabel = void 0, this.inputLabel = void 0, this.customStyles = {}, this.placeholderValue = "Enter Search", this.searchTerm = "", this.debounceDelay = 0, this.inputValue = this.searchTerm, this.error = !1, this.isSearchcraftInitialized = !1;
2447
+ }, this.config = void 0, this.autoSearch = !0, this.buttonPlacement = "none", this.buttonLabel = void 0, this.inputLabel = void 0, this.customStyles = {}, this.placeholderValue = "Enter Search", this.searchTerm = "", this.inputValue = this.searchTerm, this.error = !1, this.isSearchcraftInitialized = !1;
2424
2448
  }
2425
2449
  init() {
2426
2450
  if (this.config && !this.isSearchcraftInitialized) {
2427
- const t = new Ts(this.config, {
2451
+ const t = new _s(this.config, {
2428
2452
  sdkName: tt.name,
2429
2453
  sdkVersion: tt.version
2430
2454
  });
2431
- this.searchStore.initialize(t, !0), this.isSearchcraftInitialized = !0;
2455
+ this.searchStore.initialize(t, !0), this.isSearchcraftInitialized = !0, this.inputInit.emit();
2432
2456
  }
2433
2457
  }
2434
2458
  componentDidLoad() {
@@ -2438,14 +2462,16 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.2", xn = "Searchcraft Javasc
2438
2462
  this.init();
2439
2463
  }
2440
2464
  render() {
2441
- const t = Bs(this.customStyles), r = this.inputValue.length > 0, s = x("searchcraft-input-grid", {
2465
+ const t = Os(this.customStyles), r = this.inputValue.length > 0, s = x("searchcraft-input-grid", {
2442
2466
  "searchcraft-input-grid-buttonLeft": this.buttonPlacement === "left",
2443
2467
  "searchcraft-input-grid-buttonRight": this.buttonPlacement === "right",
2444
2468
  "searchcraft-input-grid-buttonNone": this.buttonPlacement === "none"
2445
- });
2446
- return d("form", { key: "7f224a10ab80d70660c9db97be5d68830932570b", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, d("div", { key: "6822a21a43e5be992b11ddb6c86370ddd68e1475", class: s }, d("div", { key: "6022989ca876ea46de048398a076bc43d5213554", class: "searchcraft-input-button-wrapper" }, d("searchcraft-button", { key: "d48b61729ef9a3f19049dfe751aefa22fdc85e9f", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), d("div", { key: "3465e467cbb965ad813b6c9c726173bb3fe828f2", class: "searchcraft-input-label-wrapper" }, d("searchcraft-input-label", { key: "1026b7834358c6673a72ef8352830c9b4681020f", label: this.inputLabel })), this.error && d("div", { key: "ff0d55cd88e1895f9b0bd4c0afc917127e76afa2", class: "searchcraft-input-error-wrapper" }, d("searchcraft-error-message", { key: "57fc160411f21f45617e1a3b8677fb4c6e96c0f0", errorMessage: "Please enter a search query." })), d("div", { key: "b2783bf86177d22d4abedb4420fdb2a1807527ef", class: "searchcraft-input-wrapper" }, d("input", { key: "e985da32be58ab3e200866e085b2acd25b54aa31", autoComplete: "off", class: "searchcraft-input", onFocus: () => this.inputFocus.emit(), onBlur: () => this.inputBlur.emit(), onInput: (c) => {
2447
- this.handleOnInput(c);
2448
- }, placeholder: this.placeholderValue, style: t, type: "text", value: this.inputValue }), d("div", { key: "d5277758ae26262f5f3b49e8763add412661e5cf", class: "searchcraft-input-search-icon-wrapper" }, d("svg", { key: "79792740ea1207fad40786f555c63c4a26ff3fe2", class: "searchcraft-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, d("title", { key: "7a487bdf41babdafb802ebd79c34a6a5da300cd6", id: "searchcraft-title" }, "Searchcraft Search Icon Light"), d("path", { key: "27c442bf412aca373cbc982b3a35a00fe7bb82ed", d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "#404040", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && d("button", { key: "4c4bc21e9e87f4245ac38d7af269aae35876b6b0", type: "button", class: "searchcraft-input-clear-button", onClick: this.handleClearInput }, d("svg", { key: "4b82e65987a8a8c296d2b9c279474c29607727e0", class: "searchcraft-input-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, d("title", { key: "9d64212798691a2f8c6c9c4f74ceca1d2fe39fd1", id: "icon-title" }, "Searchcraft Clear Input Icon Light"), d("path", { key: "4c6c5b33fbd9ac02661996bb56e0902094e9b140", d: "M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z", stroke: "black", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
2469
+ }), a = {
2470
+ gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
2471
+ };
2472
+ return d("form", { key: "d257962d56a583e66bdf8b55786d5dfbae231965", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, d("div", { key: "d9a8467a4d76433bc473941bd4583d991ae38040", class: s, style: a }, d("div", { key: "a94eacc99593ed6a30006532c51cdd38c692c93f", class: "searchcraft-input-button-wrapper" }, d("searchcraft-button", { key: "43de9d2cd538bbdf2a2bbc9f5165bfb969943831", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && d("div", { key: "b3554f81577d4526023d8b67de6837386789e9f3", class: "searchcraft-input-label-wrapper" }, d("searchcraft-input-label", { key: "5cda67f38d0914dfe7e1ea71bee60b69524e9d5c", label: this.inputLabel })), this.error && d("div", { key: "22b82da9420159ebaf00fe3bb790d6b07341a79e", class: "searchcraft-input-error-wrapper" }, d("searchcraft-error-message", { key: "2cc5c322408b976a7043ef9640c812036468435d", errorMessage: "Something went wrong." })), d("div", { key: "f2741bd0d20604327fa4661c3213e48df7a58249", class: "searchcraft-input-wrapper" }, d("input", { key: "692822c6a38001ba4c71289b6b7fba13767742b5", autoComplete: "off", class: "searchcraft-input", onFocus: () => this.inputFocus.emit(), onBlur: () => this.inputBlur.emit(), onInput: (n) => {
2473
+ this.handleOnInput(n);
2474
+ }, placeholder: this.placeholderValue, style: t, type: "text", value: this.inputValue }), d("div", { key: "58af613c048e7c072e4a976f71ea1bd7b3632a62", class: "searchcraft-input-search-icon-wrapper" }, d("svg", { key: "e6cf67405b45703ca7ddaf46a59adbf5ff926f0e", class: "searchcraft-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, d("title", { key: "fa510c85900d9a716076ba79866f5bbe4f1a20ed", id: "searchcraft-title" }, "Searchcraft Search Icon Light"), d("path", { key: "ac9d166c19e6644adcbc00fe665e17fcf5449b73", d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "#404040", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && d("button", { key: "992cf037b6b75200c64c21809915b5ce6f970f5c", type: "button", class: "searchcraft-input-clear-button", onClick: this.handleClearInput }, d("svg", { key: "f09a5f2c1007cc11d89b2df06ec189d923bc634f", class: "searchcraft-input-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, d("title", { key: "92bd5162ae636aaf6c8051959ff16cd26ee98660", id: "icon-title" }, "Searchcraft Clear Input Icon Light"), d("path", { key: "9b5a8a4113a3162035d48895f0facf6f6045f266", d: "M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z", stroke: "black", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
2449
2475
  }
2450
2476
  static get watchers() {
2451
2477
  return {
@@ -2453,7 +2479,7 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.2", xn = "Searchcraft Javasc
2453
2479
  };
2454
2480
  }
2455
2481
  static get style() {
2456
- return Bn;
2482
+ return In;
2457
2483
  }
2458
2484
  }, [0, "searchcraft-input-form", {
2459
2485
  config: [16],
@@ -2464,14 +2490,13 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.2", xn = "Searchcraft Javasc
2464
2490
  customStyles: [1, "custom-styles"],
2465
2491
  placeholderValue: [1, "placeholder-value"],
2466
2492
  searchTerm: [1, "search-term"],
2467
- debounceDelay: [2, "debounce-delay"],
2468
2493
  inputValue: [32],
2469
2494
  error: [32],
2470
2495
  isSearchcraftInitialized: [32]
2471
2496
  }, void 0, {
2472
2497
  config: ["onConfigChange"]
2473
2498
  }]);
2474
- function In() {
2499
+ function Ln() {
2475
2500
  if (typeof customElements > "u")
2476
2501
  return;
2477
2502
  ["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
@@ -2480,7 +2505,7 @@ function In() {
2480
2505
  customElements.get(t) || customElements.define(t, Yt);
2481
2506
  break;
2482
2507
  case "searchcraft-button":
2483
- customElements.get(t) || Ut();
2508
+ customElements.get(t) || Ot();
2484
2509
  break;
2485
2510
  case "searchcraft-error-message":
2486
2511
  customElements.get(t) || Ae();
@@ -2491,12 +2516,12 @@ function In() {
2491
2516
  }
2492
2517
  });
2493
2518
  }
2494
- const Ln = Yt, On = In, jn = Jt, Un = Kt, Nn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-results-info-container{border-bottom:1px solid var(--sc-surface-disabled);display:flex;justify-content:flex-start}.searchcraft-results-info-content{color:var(--sc-content-primary);font-family:var(--sc-font-family);font-size:18px;font-weight:600;line-height:20px;margin:0px 0 8px}@media (max-width: 900px){.searchcraft-results-info-content{margin:0;margin-bottom:8px}}", qn = Nn, Xt = /* @__PURE__ */ P(class extends A {
2519
+ const On = Yt, jn = Ln, Un = Jt, qn = Kt, Nn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-results-info-container{border-bottom:1px solid var(--sc-surface-disabled);display:flex;justify-content:flex-start}.searchcraft-results-info-content{color:var(--sc-content-primary);font-family:var(--sc-font-family);font-size:18px;font-weight:600;line-height:20px;margin:0px 0 8px}@media (max-width: 768px){.searchcraft-results-info-content{margin:0;margin-bottom:8px}}", Hn = Nn, Xt = /* @__PURE__ */ M(class extends B {
2495
2520
  constructor() {
2496
2521
  super(), this.__registerHost(), this.isRequesting = !1, this.resultsCount = 0, this.responseTime = "", this.query = "";
2497
2522
  }
2498
2523
  connectedCallback() {
2499
- this.unsubscribe = z.subscribe((t) => {
2524
+ this.unsubscribe = _.subscribe((t) => {
2500
2525
  var r, s, c, a;
2501
2526
  this.isRequesting = t.isRequesting, this.resultsCount = ((s = (r = t.searchResults) === null || r === void 0 ? void 0 : r.data) === null || s === void 0 ? void 0 : s.count) || 0, this.responseTime = ((((a = (c = t.searchResults) === null || c === void 0 ? void 0 : c.data) === null || a === void 0 ? void 0 : a.time_taken) || 0) * 1e3).toFixed(2), this.query = t.query || "";
2502
2527
  });
@@ -2507,11 +2532,11 @@ const Ln = Yt, On = In, jn = Jt, Un = Kt, Nn = ":root{--sc-spinner-size:20px;--s
2507
2532
  render() {
2508
2533
  if (!this.query || this.resultsCount === 0)
2509
2534
  return null;
2510
- const t = Os(this.resultsCount);
2535
+ const t = Is(this.resultsCount);
2511
2536
  return d("div", { class: "searchcraft-results-info-container" }, d("p", { class: "searchcraft-results-info-content" }, t, " results found in ", this.responseTime, "ms"));
2512
2537
  }
2513
2538
  static get style() {
2514
- return qn;
2539
+ return Hn;
2515
2540
  }
2516
2541
  }, [0, "searchcraft-results-info", {
2517
2542
  isRequesting: [32],
@@ -2519,7 +2544,7 @@ const Ln = Yt, On = In, jn = Jt, Un = Kt, Nn = ":root{--sc-spinner-size:20px;--s
2519
2544
  responseTime: [32],
2520
2545
  query: [32]
2521
2546
  }]);
2522
- function Hn() {
2547
+ function Vn() {
2523
2548
  if (typeof customElements > "u")
2524
2549
  return;
2525
2550
  ["searchcraft-results-info"].forEach((t) => {
@@ -2530,13 +2555,13 @@ function Hn() {
2530
2555
  }
2531
2556
  });
2532
2557
  }
2533
- const Vn = Xt, Wn = Hn, Gn = Ht, Qn = Vt, Jn = Wt, Kn = Gt;
2558
+ const Wn = Xt, Gn = Vn, Qn = Ht, Jn = Vt, Kn = Wt, Yn = Gt;
2534
2559
  /**
2535
2560
  * @license
2536
2561
  * Copyright 2018 Google LLC
2537
2562
  * SPDX-License-Identifier: BSD-3-Clause
2538
2563
  */
2539
- const Yn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), rt = /* @__PURE__ */ new WeakMap(), st = (e, t, r, s, c) => {
2564
+ const Xn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), rt = /* @__PURE__ */ new WeakMap(), st = (e, t, r, s, c) => {
2540
2565
  const a = c == null ? void 0 : c[t];
2541
2566
  a === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, o, u) => {
2542
2567
  let i = rt.get(n);
@@ -2544,15 +2569,15 @@ const Yn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
2544
2569
  let l = i.get(o);
2545
2570
  u !== void 0 ? l === void 0 ? (i.set(o, l = { handleEvent: u }), n.addEventListener(o, l)) : l.handleEvent = u : l !== void 0 && (i.delete(o), n.removeEventListener(o, l));
2546
2571
  })(e, a, r);
2547
- }, Xn = ({ react: e, tagName: t, elementClass: r, events: s, displayName: c }) => {
2572
+ }, Zn = ({ react: e, tagName: t, elementClass: r, events: s, displayName: c }) => {
2548
2573
  const a = new Set(Object.keys(s ?? {})), n = e.forwardRef((o, u) => {
2549
2574
  const i = e.useRef(/* @__PURE__ */ new Map()), l = e.useRef(null), h = {}, f = {};
2550
- for (const [g, b] of Object.entries(o)) Yn.has(g) ? h[g === "className" ? "class" : g] = b : a.has(g) || g in r.prototype ? f[g] = b : h[g] = b;
2575
+ for (const [g, m] of Object.entries(o)) Xn.has(g) ? h[g === "className" ? "class" : g] = m : a.has(g) || g in r.prototype ? f[g] = m : h[g] = m;
2551
2576
  return e.useLayoutEffect(() => {
2552
2577
  if (l.current === null) return;
2553
2578
  const g = /* @__PURE__ */ new Map();
2554
- for (const b in f) st(l.current, b, o[b], i.current.get(b), s), i.current.delete(b), g.set(b, o[b]);
2555
- for (const [b, v] of i.current) st(l.current, b, void 0, v, s);
2579
+ for (const m in f) st(l.current, m, o[m], i.current.get(m), s), i.current.delete(m), g.set(m, o[m]);
2580
+ for (const [m, v] of i.current) st(l.current, m, void 0, v, s);
2556
2581
  i.current = g;
2557
2582
  }), e.useLayoutEffect(() => {
2558
2583
  var g;
@@ -2565,101 +2590,102 @@ const Yn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
2565
2590
  }, D = ({
2566
2591
  defineCustomElement: e,
2567
2592
  ...t
2568
- }) => (typeof e < "u" && e(), Xn(t)), Zn = /* @__PURE__ */ D({
2593
+ }) => (typeof e < "u" && e(), Zn(t)), ea = /* @__PURE__ */ D({
2569
2594
  tagName: "searchcraft-base-search-result",
2570
- elementClass: Ds,
2595
+ elementClass: Ms,
2571
2596
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2572
- react: _,
2597
+ react: P,
2573
2598
  events: {},
2574
- defineCustomElement: Ms
2575
- }), ea = /* @__PURE__ */ D({
2599
+ defineCustomElement: Ds
2600
+ }), ta = /* @__PURE__ */ D({
2576
2601
  tagName: "searchcraft-base-search-results",
2577
- elementClass: Js,
2602
+ elementClass: Ws,
2578
2603
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2579
- react: _,
2604
+ react: P,
2580
2605
  events: { onNoResults: "noResults" },
2581
- defineCustomElement: Ks
2582
- }), ta = /* @__PURE__ */ D({
2606
+ defineCustomElement: Gs
2607
+ }), ra = /* @__PURE__ */ D({
2583
2608
  tagName: "searchcraft-button",
2584
- elementClass: Zs,
2609
+ elementClass: Ks,
2585
2610
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2586
- react: _,
2611
+ react: P,
2587
2612
  events: { onButtonClick: "buttonClick" },
2588
- defineCustomElement: en
2589
- }), ra = /* @__PURE__ */ D({
2613
+ defineCustomElement: Ys
2614
+ }), sa = /* @__PURE__ */ D({
2590
2615
  tagName: "searchcraft-error-message",
2591
- elementClass: tn,
2616
+ elementClass: Xs,
2592
2617
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2593
- react: _,
2618
+ react: P,
2594
2619
  events: {},
2595
- defineCustomElement: rn
2596
- }), sa = /* @__PURE__ */ D({
2620
+ defineCustomElement: Zs
2621
+ }), na = /* @__PURE__ */ D({
2597
2622
  tagName: "searchcraft-facet-list",
2598
- elementClass: an,
2623
+ elementClass: cn,
2599
2624
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2600
- react: _,
2625
+ react: P,
2601
2626
  events: { onFacetSelectionUpdated: "facetSelectionUpdated" },
2602
- defineCustomElement: cn
2603
- }), na = /* @__PURE__ */ D({
2627
+ defineCustomElement: on
2628
+ }), aa = /* @__PURE__ */ D({
2604
2629
  tagName: "searchcraft-filter-panel",
2605
- elementClass: gn,
2630
+ elementClass: mn,
2606
2631
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2607
- react: _,
2632
+ react: P,
2608
2633
  events: {},
2609
2634
  defineCustomElement: bn
2610
- }), aa = /* @__PURE__ */ D({
2635
+ }), ca = /* @__PURE__ */ D({
2611
2636
  tagName: "searchcraft-input-form",
2612
- elementClass: Ln,
2637
+ elementClass: On,
2613
2638
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2614
- react: _,
2639
+ react: P,
2615
2640
  events: {
2616
2641
  onInputCleared: "inputCleared",
2617
2642
  onNoResultsReceived: "noResultsReceived",
2618
- onQuerySubmit: "querySubmit",
2619
2643
  onInputFocus: "inputFocus",
2620
- onInputBlur: "inputBlur"
2644
+ onInputBlur: "inputBlur",
2645
+ onInputInit: "inputInit",
2646
+ onQuerySubmit: "querySubmit"
2621
2647
  },
2622
- defineCustomElement: On
2623
- }), ca = /* @__PURE__ */ D({
2648
+ defineCustomElement: jn
2649
+ }), ia = /* @__PURE__ */ D({
2624
2650
  tagName: "searchcraft-input-label",
2625
- elementClass: jn,
2651
+ elementClass: Un,
2626
2652
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2627
- react: _,
2653
+ react: P,
2628
2654
  events: {},
2629
- defineCustomElement: Un
2630
- }), ia = /* @__PURE__ */ D({
2655
+ defineCustomElement: qn
2656
+ }), oa = /* @__PURE__ */ D({
2631
2657
  tagName: "searchcraft-results-info",
2632
- elementClass: Vn,
2658
+ elementClass: Wn,
2633
2659
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2634
- react: _,
2660
+ react: P,
2635
2661
  events: {},
2636
- defineCustomElement: Wn
2637
- }), oa = /* @__PURE__ */ D({
2662
+ defineCustomElement: Gn
2663
+ }), la = /* @__PURE__ */ D({
2638
2664
  tagName: "searchcraft-slider",
2639
- elementClass: Gn,
2665
+ elementClass: Qn,
2640
2666
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2641
- react: _,
2667
+ react: P,
2642
2668
  events: { onRangeChanged: "rangeChanged" },
2643
- defineCustomElement: Qn
2644
- }), la = /* @__PURE__ */ D({
2669
+ defineCustomElement: Jn
2670
+ }), ua = /* @__PURE__ */ D({
2645
2671
  tagName: "searchcraft-toggle-button",
2646
- elementClass: Jn,
2672
+ elementClass: Kn,
2647
2673
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2648
- react: _,
2674
+ react: P,
2649
2675
  events: { onToggleUpdated: "toggleUpdated" },
2650
- defineCustomElement: Kn
2651
- }), $a = (e) => /* @__PURE__ */ T(Zn, { ...e }), Sa = (e) => /* @__PURE__ */ T(ea, { ...e }), wa = (e) => /* @__PURE__ */ T(ta, { ...e }), Ca = (e) => /* @__PURE__ */ T(ra, { ...e }), ka = (e) => /* @__PURE__ */ T(sa, { ...e }), Ra = (e) => /* @__PURE__ */ T(na, { ...e }), za = (e) => /* @__PURE__ */ T(aa, { ...e }), Ta = (e) => /* @__PURE__ */ T(ca, { ...e }), _a = (e) => /* @__PURE__ */ T(ia, { ...e }), Aa = (e) => /* @__PURE__ */ T(oa, { ...e }), Pa = (e) => /* @__PURE__ */ T(la, { ...e });
2676
+ defineCustomElement: Yn
2677
+ }), Sa = (e) => /* @__PURE__ */ A(ea, { ...e }), wa = (e) => /* @__PURE__ */ A(ta, { ...e }), Ca = (e) => /* @__PURE__ */ A(ra, { ...e }), ka = (e) => /* @__PURE__ */ A(sa, { ...e }), Ra = (e) => /* @__PURE__ */ A(na, { ...e }), za = (e) => /* @__PURE__ */ A(aa, { ...e }), Ta = (e) => /* @__PURE__ */ A(ca, { ...e }), _a = (e) => /* @__PURE__ */ A(ia, { ...e }), Aa = (e) => /* @__PURE__ */ A(oa, { ...e }), Pa = (e) => /* @__PURE__ */ A(la, { ...e }), Ba = (e) => /* @__PURE__ */ A(ua, { ...e });
2652
2678
  export {
2653
- $a as SearchcraftBaseSearchResult,
2654
- Sa as SearchcraftBaseSearchResults,
2655
- wa as SearchcraftButton,
2656
- Ca as SearchcraftErrorMessage,
2657
- ka as SearchcraftFacetList,
2658
- Ra as SearchcraftFilterPanel,
2659
- za as SearchcraftInputForm,
2660
- Ta as SearchcraftInputLabel,
2661
- _a as SearchcraftResultsInfo,
2662
- Aa as SearchcraftSlider,
2663
- Pa as SearchcraftToggleButton
2679
+ Sa as SearchcraftBaseSearchResult,
2680
+ wa as SearchcraftBaseSearchResults,
2681
+ Ca as SearchcraftButton,
2682
+ ka as SearchcraftErrorMessage,
2683
+ Ra as SearchcraftFacetList,
2684
+ za as SearchcraftFilterPanel,
2685
+ Ta as SearchcraftInputForm,
2686
+ _a as SearchcraftInputLabel,
2687
+ Aa as SearchcraftResultsInfo,
2688
+ Pa as SearchcraftSlider,
2689
+ Ba as SearchcraftToggleButton
2664
2690
  };
2665
2691
  //# sourceMappingURL=index.js.map