@searchcraft/react-sdk 0.10.2 → 0.10.4
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/client/index.js +869 -845
- package/dist/client/index.js.map +1 -1
- package/dist/client/themes/hologram.css +1 -1
- package/dist/client/themes/hologram.css.map +1 -1
- package/dist/server/index.d.ts +32 -10
- package/dist/server/index.js +822 -798
- package/dist/server/index.js.map +1 -1
- package/package.json +3 -3
package/dist/server/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var f = (e, t, r) =>
|
|
1
|
+
var Ga = Object.defineProperty;
|
|
2
|
+
var qa = (e, t, r) => t in e ? Ga(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var f = (e, t, r) => qa(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { jsx as ge } from "react/jsx-runtime";
|
|
5
|
-
import { renderToString as
|
|
6
|
-
const
|
|
5
|
+
import { renderToString as Ya } from "@searchcraft/javascript-sdk/hydrate";
|
|
6
|
+
const Za = "searchcraft-javascript-sdk", Oe = (
|
|
7
7
|
/* searchcraft-javascript-sdk */
|
|
8
8
|
{ experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !1, shadowDom: !1, slotRelocation: !0, updatable: !0 }
|
|
9
9
|
);
|
|
10
|
-
var
|
|
10
|
+
var Qa = Object.defineProperty, Ka = (e, t) => {
|
|
11
11
|
for (var r in t)
|
|
12
|
-
|
|
13
|
-
},
|
|
12
|
+
Qa(e, r, { get: t[r], enumerable: !0 });
|
|
13
|
+
}, Xa = "http://www.w3.org/2000/svg", Ja = "http://www.w3.org/1999/xhtml", en = (e, t) => {
|
|
14
14
|
var r;
|
|
15
15
|
const s = t.$cmpMeta$;
|
|
16
16
|
Object.entries((r = s.$members$) != null ? r : {}).map(([o, [n]]) => {
|
|
@@ -28,7 +28,7 @@ var Za = Object.defineProperty, Qa = (e, t) => {
|
|
|
28
28
|
}), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) : c;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
},
|
|
31
|
+
}, Kt = /* @__PURE__ */ new WeakMap(), tn = (e) => Kt.delete(e), Ce = (e) => Kt.get(e), rn = (e, t) => {
|
|
32
32
|
const r = {
|
|
33
33
|
$flags$: 0,
|
|
34
34
|
$hostElement$: e,
|
|
@@ -36,9 +36,9 @@ var Za = Object.defineProperty, Qa = (e, t) => {
|
|
|
36
36
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
37
37
|
};
|
|
38
38
|
r.$onReadyPromise$ = new Promise((a) => r.$onReadyResolve$ = a), e["s-p"] = [], e["s-rc"] = [];
|
|
39
|
-
const s =
|
|
40
|
-
return
|
|
41
|
-
},
|
|
39
|
+
const s = Kt.set(e, r);
|
|
40
|
+
return en(e, r), s;
|
|
41
|
+
}, Zr = (e, t) => t in e, yt = (e, t) => (0, console.error)(e, t), Ct = typeof window < "u" ? window : {}, Me = Ct.document || { head: {} }, F = Ct.HTMLElement || class {
|
|
42
42
|
}, ee = {
|
|
43
43
|
$flags$: 0,
|
|
44
44
|
$resourcesUrl$: "",
|
|
@@ -47,80 +47,80 @@ var Za = Object.defineProperty, Qa = (e, t) => {
|
|
|
47
47
|
ael: (e, t, r, s) => e.addEventListener(t, r, s),
|
|
48
48
|
rel: (e, t, r, s) => e.removeEventListener(t, r, s),
|
|
49
49
|
ce: (e, t) => new CustomEvent(e, t)
|
|
50
|
-
},
|
|
51
|
-
e.push(r),
|
|
52
|
-
},
|
|
50
|
+
}, sn = Oe.shadowDom, an = (e) => Promise.resolve(e), qt = !1, Qr = [], ys = [], nn = (e, t) => (r) => {
|
|
51
|
+
e.push(r), qt || (qt = !0, ee.$flags$ & 4 ? Xt(Yt) : ee.raf(Yt));
|
|
52
|
+
}, Kr = (e) => {
|
|
53
53
|
for (let t = 0; t < e.length; t++)
|
|
54
54
|
try {
|
|
55
55
|
e[t](performance.now());
|
|
56
56
|
} catch (r) {
|
|
57
|
-
|
|
57
|
+
yt(r);
|
|
58
58
|
}
|
|
59
59
|
e.length = 0;
|
|
60
|
-
},
|
|
61
|
-
Qr
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
err: () =>
|
|
65
|
-
map: () =>
|
|
66
|
-
ok: () =>
|
|
67
|
-
unwrap: () =>
|
|
68
|
-
unwrapErr: () =>
|
|
60
|
+
}, Yt = () => {
|
|
61
|
+
Kr(Qr), Kr(ys), (qt = Qr.length > 0) && ee.raf(Yt);
|
|
62
|
+
}, Xt = (e) => an().then(e), on = /* @__PURE__ */ nn(ys), Jt = (e) => (e = typeof e, e === "object" || e === "function"), cn = {};
|
|
63
|
+
Ka(cn, {
|
|
64
|
+
err: () => Cs,
|
|
65
|
+
map: () => ln,
|
|
66
|
+
ok: () => Zt,
|
|
67
|
+
unwrap: () => un,
|
|
68
|
+
unwrapErr: () => hn
|
|
69
69
|
});
|
|
70
|
-
var
|
|
70
|
+
var Zt = (e) => ({
|
|
71
71
|
isOk: !0,
|
|
72
72
|
isErr: !1,
|
|
73
73
|
value: e
|
|
74
|
-
}),
|
|
74
|
+
}), Cs = (e) => ({
|
|
75
75
|
isOk: !1,
|
|
76
76
|
isErr: !0,
|
|
77
77
|
value: e
|
|
78
78
|
});
|
|
79
|
-
function
|
|
79
|
+
function ln(e, t) {
|
|
80
80
|
if (e.isOk) {
|
|
81
81
|
const r = t(e.value);
|
|
82
|
-
return r instanceof Promise ? r.then((s) =>
|
|
82
|
+
return r instanceof Promise ? r.then((s) => Zt(s)) : Zt(r);
|
|
83
83
|
}
|
|
84
84
|
if (e.isErr) {
|
|
85
85
|
const r = e.value;
|
|
86
|
-
return
|
|
86
|
+
return Cs(r);
|
|
87
87
|
}
|
|
88
88
|
throw "should never get here";
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var un = (e) => {
|
|
91
91
|
if (e.isOk)
|
|
92
92
|
return e.value;
|
|
93
93
|
throw e.value;
|
|
94
|
-
},
|
|
94
|
+
}, hn = (e) => {
|
|
95
95
|
if (e.isErr)
|
|
96
96
|
return e.value;
|
|
97
97
|
throw e.value;
|
|
98
|
-
},
|
|
98
|
+
}, Ss = (e) => {
|
|
99
99
|
const t = e.__childNodes || e.childNodes;
|
|
100
|
-
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" &&
|
|
100
|
+
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && ks(t, e.tagName).forEach((r) => {
|
|
101
101
|
var s;
|
|
102
|
-
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s =
|
|
102
|
+
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = dn(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
|
|
103
103
|
});
|
|
104
104
|
for (const r of t)
|
|
105
|
-
r.nodeType === 1 && (r.__childNodes || r.childNodes).length &&
|
|
105
|
+
r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Ss(r);
|
|
106
106
|
};
|
|
107
|
-
function
|
|
107
|
+
function ks(e, t, r) {
|
|
108
108
|
let s = 0, a = [], o;
|
|
109
109
|
for (; s < e.length; s++)
|
|
110
|
-
o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...
|
|
110
|
+
o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...ks(o.childNodes, t, r)];
|
|
111
111
|
return a;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
113
|
+
var dn = (e, t, r = !0) => {
|
|
114
114
|
const s = [];
|
|
115
115
|
for ((r && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
|
|
116
116
|
s.push(e);
|
|
117
117
|
return s;
|
|
118
|
-
},
|
|
119
|
-
},
|
|
118
|
+
}, Xr = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Qe = (e, t = "") => () => {
|
|
119
|
+
}, l = (e, t, ...r) => {
|
|
120
120
|
let s = null, a = null, o = null, n = !1, c = !1;
|
|
121
121
|
const u = [], h = (p) => {
|
|
122
122
|
for (let g = 0; g < p.length; g++)
|
|
123
|
-
s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !
|
|
123
|
+
s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !Jt(s)) && (s = String(s)), n && c ? u[u.length - 1].$text$ += s : u.push(n ? mt(null, s) : s), c = n);
|
|
124
124
|
};
|
|
125
125
|
if (h(r), t) {
|
|
126
126
|
t.key && (a = t.key), t.name && (o = t.name);
|
|
@@ -133,11 +133,11 @@ var hn = (e, t, r = !0) => {
|
|
|
133
133
|
return e(
|
|
134
134
|
t === null ? {} : t,
|
|
135
135
|
u,
|
|
136
|
-
|
|
136
|
+
mn
|
|
137
137
|
);
|
|
138
|
-
const
|
|
139
|
-
return
|
|
140
|
-
},
|
|
138
|
+
const i = mt(e, null);
|
|
139
|
+
return i.$attrs$ = t, u.length > 0 && (i.$children$ = u), i.$key$ = a, i.$name$ = o, i;
|
|
140
|
+
}, mt = (e, t) => {
|
|
141
141
|
const r = {
|
|
142
142
|
$flags$: 0,
|
|
143
143
|
$tag$: e,
|
|
@@ -146,57 +146,57 @@ var hn = (e, t, r = !0) => {
|
|
|
146
146
|
$children$: null
|
|
147
147
|
};
|
|
148
148
|
return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
|
|
149
|
-
},
|
|
150
|
-
forEach: (e, t) => e.map(
|
|
151
|
-
map: (e, t) => e.map(
|
|
152
|
-
},
|
|
149
|
+
}, fn = {}, pn = (e) => e && e.$tag$ === fn, mn = {
|
|
150
|
+
forEach: (e, t) => e.map(Jr).forEach(t),
|
|
151
|
+
map: (e, t) => e.map(Jr).map(t).map(gn)
|
|
152
|
+
}, Jr = (e) => ({
|
|
153
153
|
vattrs: e.$attrs$,
|
|
154
154
|
vchildren: e.$children$,
|
|
155
155
|
vkey: e.$key$,
|
|
156
156
|
vname: e.$name$,
|
|
157
157
|
vtag: e.$tag$,
|
|
158
158
|
vtext: e.$text$
|
|
159
|
-
}),
|
|
159
|
+
}), gn = (e) => {
|
|
160
160
|
if (typeof e.vtag == "function") {
|
|
161
161
|
const r = { ...e.vattrs };
|
|
162
|
-
return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname),
|
|
162
|
+
return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), l(e.vtag, r, ...e.vchildren || []);
|
|
163
163
|
}
|
|
164
|
-
const t =
|
|
164
|
+
const t = mt(e.vtag, e.vtext);
|
|
165
165
|
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
|
166
|
-
},
|
|
167
|
-
const s =
|
|
166
|
+
}, ws = (e, t) => e != null && !Jt(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, vn = (e) => e, be = (e, t, r) => {
|
|
167
|
+
const s = vn(e);
|
|
168
168
|
return {
|
|
169
|
-
emit: (a) =>
|
|
169
|
+
emit: (a) => xs(s, t, {
|
|
170
170
|
bubbles: !0,
|
|
171
171
|
composed: !0,
|
|
172
172
|
cancelable: !0,
|
|
173
173
|
detail: a
|
|
174
174
|
})
|
|
175
175
|
};
|
|
176
|
-
},
|
|
176
|
+
}, xs = (e, t, r) => {
|
|
177
177
|
const s = ee.ce(t, r);
|
|
178
178
|
return e.dispatchEvent(s), s;
|
|
179
|
-
},
|
|
179
|
+
}, ht = /* @__PURE__ */ new WeakMap(), es = (e, t, r, s, a, o) => {
|
|
180
180
|
if (r !== s) {
|
|
181
|
-
let n =
|
|
181
|
+
let n = Zr(e, t), c = t.toLowerCase();
|
|
182
182
|
if (t === "class") {
|
|
183
|
-
const u = e.classList, h =
|
|
184
|
-
let
|
|
185
|
-
e["s-si"] ? (
|
|
186
|
-
p.startsWith(e["s-si"]) &&
|
|
187
|
-
}),
|
|
183
|
+
const u = e.classList, h = ts(r);
|
|
184
|
+
let i = ts(s);
|
|
185
|
+
e["s-si"] ? (i.push(e["s-si"]), h.forEach((p) => {
|
|
186
|
+
p.startsWith(e["s-si"]) && i.push(p);
|
|
187
|
+
}), i = [...new Set(i)], u.add(...i), delete e["s-si"]) : (u.remove(...h.filter((p) => p && !i.includes(p))), u.add(...i.filter((p) => p && !h.includes(p))));
|
|
188
188
|
} else if (t === "style") {
|
|
189
189
|
for (const u in r)
|
|
190
190
|
(!s || s[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
|
|
191
191
|
for (const u in s)
|
|
192
192
|
(!r || s[u] !== r[u]) && (u.includes("-") ? e.style.setProperty(u, s[u]) : e.style[u] = s[u]);
|
|
193
193
|
} else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
|
|
194
|
-
if (t[2] === "-" ? t = t.slice(3) :
|
|
195
|
-
const u = t.endsWith(
|
|
196
|
-
t = t.replace(
|
|
194
|
+
if (t[2] === "-" ? t = t.slice(3) : Zr(Ct, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
|
|
195
|
+
const u = t.endsWith(Rs);
|
|
196
|
+
t = t.replace(yn, ""), r && ee.rel(e, t, r, u), s && ee.ael(e, t, s, u);
|
|
197
197
|
}
|
|
198
198
|
} else {
|
|
199
|
-
const u =
|
|
199
|
+
const u = Jt(s);
|
|
200
200
|
if ((n || u && s !== null) && !a)
|
|
201
201
|
try {
|
|
202
202
|
if (e.tagName.includes("-"))
|
|
@@ -210,14 +210,14 @@ var hn = (e, t, r = !0) => {
|
|
|
210
210
|
s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || o & 4 || a) && !u && (s = s === !0 ? "" : s, e.setAttribute(t, s));
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, bn = /\s/, ts = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(bn) : []), Rs = "Capture", yn = new RegExp(Rs + "$"), Es = (e, t, r) => {
|
|
214
214
|
const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, a = e && e.$attrs$ || {}, o = t.$attrs$ || {};
|
|
215
|
-
for (const n of
|
|
216
|
-
n in o ||
|
|
217
|
-
for (const n of
|
|
218
|
-
|
|
215
|
+
for (const n of rs(Object.keys(a)))
|
|
216
|
+
n in o || es(s, n, a[n], void 0, r, t.$flags$);
|
|
217
|
+
for (const n of rs(Object.keys(o)))
|
|
218
|
+
es(s, n, a[n], o[n], r, t.$flags$);
|
|
219
219
|
};
|
|
220
|
-
function
|
|
220
|
+
function rs(e) {
|
|
221
221
|
return e.includes("ref") ? (
|
|
222
222
|
// we need to sort these to ensure that `'ref'` is the last attr
|
|
223
223
|
[...e.filter((t) => t !== "ref"), "ref"]
|
|
@@ -226,11 +226,11 @@ function ts(e) {
|
|
|
226
226
|
e
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
|
-
var
|
|
229
|
+
var Qt, er, gt = !1, vt = !1, tr = !1, te = !1, bt = (e, t, r) => {
|
|
230
230
|
var s;
|
|
231
231
|
const a = t.$children$[r];
|
|
232
232
|
let o = 0, n, c, u;
|
|
233
|
-
if (
|
|
233
|
+
if (gt || (tr = !0, a.$tag$ === "slot" && (a.$flags$ |= a.$children$ ? (
|
|
234
234
|
// slot element has fallback content
|
|
235
235
|
// still create an element that "mocks" the slot element
|
|
236
236
|
2
|
|
@@ -245,82 +245,82 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
245
245
|
n = a.$elm$ = Me.createTextNode("");
|
|
246
246
|
else {
|
|
247
247
|
if (te || (te = a.$tag$ === "svg"), n = a.$elm$ = Me.createElementNS(
|
|
248
|
-
te ?
|
|
249
|
-
!
|
|
250
|
-
), te && a.$tag$ === "foreignObject" && (te = !1),
|
|
248
|
+
te ? Xa : Ja,
|
|
249
|
+
!gt && Oe.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
|
|
250
|
+
), te && a.$tag$ === "foreignObject" && (te = !1), Es(null, a, te), a.$children$)
|
|
251
251
|
for (o = 0; o < a.$children$.length; ++o)
|
|
252
|
-
c =
|
|
252
|
+
c = bt(e, a, o), c && n.appendChild(c);
|
|
253
253
|
a.$tag$ === "svg" ? te = !1 : n.tagName === "foreignObject" && (te = !0);
|
|
254
254
|
}
|
|
255
|
-
return n["s-hn"] =
|
|
256
|
-
},
|
|
255
|
+
return n["s-hn"] = er, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Qt, n["s-sn"] = a.$name$ || "", n["s-rf"] = (s = a.$attrs$) == null ? void 0 : s.ref, u = e && e.$children$ && e.$children$[r], u && u.$tag$ === a.$tag$ && e.$elm$ && Ke(e.$elm$, !1)), n;
|
|
256
|
+
}, Ke = (e, t) => {
|
|
257
257
|
ee.$flags$ |= 1;
|
|
258
258
|
const r = Array.from(e.__childNodes || e.childNodes);
|
|
259
|
-
e["s-sr"] &&
|
|
259
|
+
e["s-sr"] && Oe.experimentalSlotFixes;
|
|
260
260
|
for (let s = r.length - 1; s >= 0; s--) {
|
|
261
261
|
const a = r[s];
|
|
262
|
-
a["s-hn"] !==
|
|
262
|
+
a["s-hn"] !== er && a["s-ol"] && (ye(Xe(a).parentNode, a, Xe(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, tr = !0), t && Ke(a, t);
|
|
263
263
|
}
|
|
264
264
|
ee.$flags$ &= -2;
|
|
265
|
-
},
|
|
265
|
+
}, Ts = (e, t, r, s, a, o) => {
|
|
266
266
|
let n = e["s-cr"] && e["s-cr"].parentNode || e, c;
|
|
267
267
|
for (; a <= o; ++a)
|
|
268
|
-
s[a] && (c =
|
|
269
|
-
},
|
|
268
|
+
s[a] && (c = bt(null, r, a), c && (s[a].$elm$ = c, ye(n, c, Xe(t))));
|
|
269
|
+
}, Ps = (e, t, r) => {
|
|
270
270
|
for (let s = t; s <= r; ++s) {
|
|
271
271
|
const a = e[s];
|
|
272
272
|
if (a) {
|
|
273
273
|
const o = a.$elm$;
|
|
274
|
-
o && (
|
|
274
|
+
o && (vt = !0, o["s-ol"] ? o["s-ol"].remove() : Ke(o, !0), o.remove());
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
},
|
|
278
|
-
let o = 0, n = 0, c = 0, u = 0, h = t.length - 1,
|
|
277
|
+
}, Cn = (e, t, r, s, a = !1) => {
|
|
278
|
+
let o = 0, n = 0, c = 0, u = 0, h = t.length - 1, i = t[0], p = t[h], g = s.length - 1, k = s[0], b = s[g], P, _;
|
|
279
279
|
for (; o <= h && n <= g; )
|
|
280
|
-
if (
|
|
281
|
-
|
|
280
|
+
if (i == null)
|
|
281
|
+
i = t[++o];
|
|
282
282
|
else if (p == null)
|
|
283
283
|
p = t[--h];
|
|
284
284
|
else if (k == null)
|
|
285
285
|
k = s[++n];
|
|
286
286
|
else if (b == null)
|
|
287
287
|
b = s[--g];
|
|
288
|
-
else if (
|
|
289
|
-
Ie(
|
|
290
|
-
else if (
|
|
288
|
+
else if (dt(i, k, a))
|
|
289
|
+
Ie(i, k, a), i = t[++o], k = s[++n];
|
|
290
|
+
else if (dt(p, b, a))
|
|
291
291
|
Ie(p, b, a), p = t[--h], b = s[--g];
|
|
292
|
-
else if (
|
|
293
|
-
(
|
|
294
|
-
else if (
|
|
295
|
-
(
|
|
292
|
+
else if (dt(i, b, a))
|
|
293
|
+
(i.$tag$ === "slot" || b.$tag$ === "slot") && Ke(i.$elm$.parentNode, !1), Ie(i, b, a), ye(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], b = s[--g];
|
|
294
|
+
else if (dt(p, k, a))
|
|
295
|
+
(i.$tag$ === "slot" || b.$tag$ === "slot") && Ke(p.$elm$.parentNode, !1), Ie(p, k, a), ye(e, p.$elm$, i.$elm$), p = t[--h], k = s[++n];
|
|
296
296
|
else {
|
|
297
297
|
for (c = -1, u = o; u <= h; ++u)
|
|
298
298
|
if (t[u] && t[u].$key$ !== null && t[u].$key$ === k.$key$) {
|
|
299
299
|
c = u;
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
|
-
c >= 0 ? (_ = t[c], _.$tag$ !== k.$tag$ ? P =
|
|
303
|
-
|
|
302
|
+
c >= 0 ? (_ = t[c], _.$tag$ !== k.$tag$ ? P = bt(t && t[n], r, c) : (Ie(_, k, a), t[c] = void 0, P = _.$elm$), k = s[++n]) : (P = bt(t && t[n], r, n), k = s[++n]), P && ye(
|
|
303
|
+
Xe(i.$elm$).parentNode,
|
|
304
304
|
P,
|
|
305
|
-
|
|
305
|
+
Xe(i.$elm$)
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
|
-
o > h ?
|
|
308
|
+
o > h ? Ts(
|
|
309
309
|
e,
|
|
310
310
|
s[g + 1] == null ? null : s[g + 1].$elm$,
|
|
311
311
|
r,
|
|
312
312
|
s,
|
|
313
313
|
n,
|
|
314
314
|
g
|
|
315
|
-
) : n > g &&
|
|
316
|
-
},
|
|
315
|
+
) : n > g && Ps(t, o, h);
|
|
316
|
+
}, dt = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, Xe = (e) => e && e["s-ol"] || e, Ie = (e, t, r = !1) => {
|
|
317
317
|
const s = t.$elm$ = e.$elm$, a = e.$children$, o = t.$children$, n = t.$tag$, c = t.$text$;
|
|
318
318
|
let u;
|
|
319
|
-
c === null ? (te = n === "svg" ? !0 : n === "foreignObject" ? !1 : te, n === "slot" && !
|
|
319
|
+
c === null ? (te = n === "svg" ? !0 : n === "foreignObject" ? !1 : te, n === "slot" && !gt || Es(e, t, te), a !== null && o !== null ? Cn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), Ts(s, null, t, o, 0, o.length - 1)) : (
|
|
320
320
|
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
321
|
-
!r &&
|
|
321
|
+
!r && Oe.updatable && a !== null && Ps(a, 0, a.length - 1)
|
|
322
322
|
), te && n === "svg" && (te = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
|
|
323
|
-
}, de = [],
|
|
323
|
+
}, de = [], $s = (e) => {
|
|
324
324
|
let t, r, s;
|
|
325
325
|
const a = e.__childNodes || e.childNodes;
|
|
326
326
|
for (const o of a) {
|
|
@@ -329,39 +329,39 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
329
329
|
const n = o["s-sn"];
|
|
330
330
|
for (s = r.length - 1; s >= 0; s--)
|
|
331
331
|
if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== o["s-hn"])
|
|
332
|
-
if (
|
|
332
|
+
if (Xr(t, n)) {
|
|
333
333
|
let c = de.find((u) => u.$nodeToRelocate$ === t);
|
|
334
|
-
|
|
334
|
+
vt = !0, t["s-sn"] = t["s-sn"] || n, c ? (c.$nodeToRelocate$["s-sh"] = o["s-hn"], c.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"], de.push({
|
|
335
335
|
$slotRefNode$: o,
|
|
336
336
|
$nodeToRelocate$: t
|
|
337
337
|
})), t["s-sr"] && de.map((u) => {
|
|
338
|
-
|
|
338
|
+
Xr(u.$nodeToRelocate$, t["s-sn"]) && (c = de.find((h) => h.$nodeToRelocate$ === t), c && !u.$slotRefNode$ && (u.$slotRefNode$ = c.$slotRefNode$));
|
|
339
339
|
});
|
|
340
340
|
} else de.some((c) => c.$nodeToRelocate$ === t) || de.push({
|
|
341
341
|
$nodeToRelocate$: t
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
|
-
o.nodeType === 1 &&
|
|
344
|
+
o.nodeType === 1 && $s(o);
|
|
345
345
|
}
|
|
346
|
-
}, ye = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r),
|
|
346
|
+
}, ye = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Sn = (e, t, r = !1) => {
|
|
347
347
|
var s, a, o, n;
|
|
348
|
-
const c = e.$hostElement$, u = e.$vnode$ ||
|
|
349
|
-
if (
|
|
350
|
-
for (const
|
|
351
|
-
c.hasAttribute(
|
|
352
|
-
h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = u.$elm$ = c,
|
|
348
|
+
const c = e.$hostElement$, u = e.$vnode$ || mt(null, null), h = pn(t) ? t : l(null, null, t);
|
|
349
|
+
if (er = c.tagName, r && h.$attrs$)
|
|
350
|
+
for (const i of Object.keys(h.$attrs$))
|
|
351
|
+
c.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (h.$attrs$[i] = c[i]);
|
|
352
|
+
h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = u.$elm$ = c, gt = sn, Qt = c["s-cr"], vt = !1, Ie(u, h, r);
|
|
353
353
|
{
|
|
354
|
-
if (ee.$flags$ |= 1,
|
|
355
|
-
|
|
356
|
-
for (const
|
|
357
|
-
const p =
|
|
354
|
+
if (ee.$flags$ |= 1, tr) {
|
|
355
|
+
$s(h.$elm$);
|
|
356
|
+
for (const i of de) {
|
|
357
|
+
const p = i.$nodeToRelocate$;
|
|
358
358
|
if (!p["s-ol"]) {
|
|
359
359
|
const g = Me.createTextNode("");
|
|
360
360
|
g["s-nr"] = p, ye(p.parentNode, p["s-ol"] = g, p);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
for (const
|
|
364
|
-
const p =
|
|
363
|
+
for (const i of de) {
|
|
364
|
+
const p = i.$nodeToRelocate$, g = i.$slotRefNode$;
|
|
365
365
|
if (g) {
|
|
366
366
|
const k = g.parentNode;
|
|
367
367
|
let b = g.nextSibling;
|
|
@@ -386,10 +386,10 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
386
386
|
p.nodeType === 1 && (r && (p["s-ih"] = (n = p.hidden) != null ? n : !1), p.hidden = !0);
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
|
|
389
|
+
vt && Ss(h.$elm$), ee.$flags$ &= -2, de.length = 0;
|
|
390
390
|
}
|
|
391
|
-
|
|
392
|
-
},
|
|
391
|
+
Qt = void 0;
|
|
392
|
+
}, _s = (e, t) => {
|
|
393
393
|
if (t && !e.$onRenderResolve$ && t["s-p"]) {
|
|
394
394
|
const r = t["s-p"].push(
|
|
395
395
|
new Promise(
|
|
@@ -399,55 +399,55 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
399
399
|
)
|
|
400
400
|
);
|
|
401
401
|
}
|
|
402
|
-
},
|
|
402
|
+
}, rr = (e, t) => {
|
|
403
403
|
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
|
404
404
|
e.$flags$ |= 512;
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
|
-
return
|
|
408
|
-
},
|
|
409
|
-
const r = e.$hostElement$, s =
|
|
407
|
+
return _s(e, e.$ancestorComponent$), on(() => kn(e, t));
|
|
408
|
+
}, kn = (e, t) => {
|
|
409
|
+
const r = e.$hostElement$, s = Qe("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
|
|
410
410
|
if (!a)
|
|
411
411
|
throw new Error(
|
|
412
412
|
`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
413
413
|
);
|
|
414
414
|
let o;
|
|
415
|
-
return s(),
|
|
416
|
-
},
|
|
415
|
+
return s(), wn(o, () => Rn(e, a, t));
|
|
416
|
+
}, wn = (e, t) => xn(e) ? e.then(t).catch((r) => {
|
|
417
417
|
console.error(r), t();
|
|
418
|
-
}) : t(),
|
|
418
|
+
}) : t(), xn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Rn = async (e, t, r) => {
|
|
419
419
|
var s;
|
|
420
|
-
const a = e.$hostElement$, o =
|
|
421
|
-
|
|
420
|
+
const a = e.$hostElement$, o = Qe("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Qe("render", e.$cmpMeta$.$tagName$);
|
|
421
|
+
En(e, t, a, r), n && (n.map((u) => u()), a["s-rc"] = void 0), c(), o();
|
|
422
422
|
{
|
|
423
|
-
const u = (s = a["s-p"]) != null ? s : [], h = () =>
|
|
423
|
+
const u = (s = a["s-p"]) != null ? s : [], h = () => Tn(e);
|
|
424
424
|
u.length === 0 ? h() : (Promise.all(u).then(h), e.$flags$ |= 4, u.length = 0);
|
|
425
425
|
}
|
|
426
|
-
},
|
|
426
|
+
}, En = (e, t, r, s) => {
|
|
427
427
|
try {
|
|
428
|
-
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2,
|
|
428
|
+
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Sn(e, t, s);
|
|
429
429
|
} catch (a) {
|
|
430
|
-
|
|
430
|
+
yt(a, e.$hostElement$);
|
|
431
431
|
}
|
|
432
432
|
return null;
|
|
433
|
-
}, En = (e) => {
|
|
434
|
-
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ze("postUpdate", t), a = r, o = e.$ancestorComponent$;
|
|
435
|
-
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, _s(r), Pn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Tn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Kt(() => tr(e, !1)), e.$flags$ &= -517;
|
|
436
433
|
}, Tn = (e) => {
|
|
437
|
-
|
|
438
|
-
|
|
434
|
+
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Qe("postUpdate", t), a = r, o = e.$ancestorComponent$;
|
|
435
|
+
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Is(r), $n(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Pn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Xt(() => rr(e, !1)), e.$flags$ &= -517;
|
|
436
|
+
}, Pn = (e) => {
|
|
437
|
+
Is(Me.documentElement), Xt(() => xs(Ct, "appload", { detail: { namespace: Za } }));
|
|
438
|
+
}, $n = (e, t, r, s) => {
|
|
439
439
|
if (e && e[t])
|
|
440
440
|
try {
|
|
441
441
|
return e[t](r);
|
|
442
442
|
} catch (a) {
|
|
443
|
-
|
|
443
|
+
yt(a, s);
|
|
444
444
|
}
|
|
445
|
-
},
|
|
445
|
+
}, Is = (e) => {
|
|
446
446
|
var t;
|
|
447
|
-
return e.classList.add((t =
|
|
448
|
-
},
|
|
447
|
+
return e.classList.add((t = Oe.hydratedSelectorName) != null ? t : "hydrated");
|
|
448
|
+
}, _n = (e, t) => Ce(e).$instanceValues$.get(t), ss = (e, t, r, s) => {
|
|
449
449
|
const a = Ce(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, u = o;
|
|
450
|
-
r =
|
|
450
|
+
r = ws(r, s.$members$[t][0]);
|
|
451
451
|
const h = Number.isNaN(n) && Number.isNaN(r);
|
|
452
452
|
if (r !== n && !h) {
|
|
453
453
|
a.$instanceValues$.set(t, r);
|
|
@@ -458,14 +458,14 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
458
458
|
try {
|
|
459
459
|
u[g](r, n, t);
|
|
460
460
|
} catch (k) {
|
|
461
|
-
|
|
461
|
+
yt(k, o);
|
|
462
462
|
}
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
(c & 18) === 2 &&
|
|
465
|
+
(c & 18) === 2 && rr(a, !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
},
|
|
468
|
+
}, In = (e, t, r) => {
|
|
469
469
|
var s, a;
|
|
470
470
|
const o = e.prototype;
|
|
471
471
|
if (t.$members$ || t.$watchers$ || e.watchers) {
|
|
@@ -473,23 +473,23 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
473
473
|
const n = Object.entries((s = t.$members$) != null ? s : {});
|
|
474
474
|
n.map(([c, [u]]) => {
|
|
475
475
|
if (u & 31 || u & 32) {
|
|
476
|
-
const { get: h, set:
|
|
477
|
-
h && (t.$members$[c][0] |= 2048),
|
|
476
|
+
const { get: h, set: i } = Object.getOwnPropertyDescriptor(o, c) || {};
|
|
477
|
+
h && (t.$members$[c][0] |= 2048), i && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
|
|
478
478
|
get() {
|
|
479
|
-
return h ? h.apply(this) :
|
|
479
|
+
return h ? h.apply(this) : _n(this, c);
|
|
480
480
|
},
|
|
481
481
|
configurable: !0,
|
|
482
482
|
enumerable: !0
|
|
483
483
|
}), Object.defineProperty(o, c, {
|
|
484
484
|
set(p) {
|
|
485
485
|
const g = Ce(this);
|
|
486
|
-
if (
|
|
486
|
+
if (i) {
|
|
487
487
|
const k = u & 32 ? this[c] : g.$hostElement$[c];
|
|
488
|
-
typeof k > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && k && g.$instanceValues$.set(c, k),
|
|
488
|
+
typeof k > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && k && g.$instanceValues$.set(c, k), i.apply(this, [ws(p, u)]), p = u & 32 ? this[c] : g.$hostElement$[c], ss(this, c, p, t);
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
491
|
{
|
|
492
|
-
|
|
492
|
+
ss(this, c, p, t);
|
|
493
493
|
return;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
@@ -498,27 +498,27 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
498
498
|
});
|
|
499
499
|
{
|
|
500
500
|
const c = /* @__PURE__ */ new Map();
|
|
501
|
-
o.attributeChangedCallback = function(u, h,
|
|
501
|
+
o.attributeChangedCallback = function(u, h, i) {
|
|
502
502
|
ee.jmp(() => {
|
|
503
503
|
var p;
|
|
504
504
|
const g = c.get(u);
|
|
505
|
-
if (!(this.hasOwnProperty(g) &&
|
|
505
|
+
if (!(this.hasOwnProperty(g) && Oe.lazyLoad)) {
|
|
506
506
|
if (o.hasOwnProperty(g) && typeof this[g] == "number" && // cast type to number to avoid TS compiler issues
|
|
507
|
-
this[g] ==
|
|
507
|
+
this[g] == i)
|
|
508
508
|
return;
|
|
509
509
|
if (g == null) {
|
|
510
510
|
const b = Ce(this), P = b == null ? void 0 : b.$flags$;
|
|
511
|
-
if (P && !(P & 8) && P & 128 &&
|
|
511
|
+
if (P && !(P & 8) && P & 128 && i !== h) {
|
|
512
512
|
const H = this, I = (p = t.$watchers$) == null ? void 0 : p[u];
|
|
513
|
-
I == null || I.forEach((
|
|
514
|
-
H[
|
|
513
|
+
I == null || I.forEach((De) => {
|
|
514
|
+
H[De] != null && H[De].call(H, i, h, u);
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
return;
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
const k = Object.getOwnPropertyDescriptor(o, g);
|
|
521
|
-
|
|
521
|
+
i = i === null && typeof this[g] == "boolean" ? !1 : i, i !== this[g] && (!k.get || k.set) && (this[g] = i);
|
|
522
522
|
});
|
|
523
523
|
}, e.observedAttributes = Array.from(
|
|
524
524
|
/* @__PURE__ */ new Set([
|
|
@@ -527,15 +527,15 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
527
527
|
([u, h]) => h[0] & 15
|
|
528
528
|
/* HasAttribute */
|
|
529
529
|
).map(([u, h]) => {
|
|
530
|
-
const
|
|
531
|
-
return c.set(
|
|
530
|
+
const i = h[1] || u;
|
|
531
|
+
return c.set(i, u), i;
|
|
532
532
|
})
|
|
533
533
|
])
|
|
534
534
|
);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
return e;
|
|
538
|
-
},
|
|
538
|
+
}, An = async (e, t, r, s) => {
|
|
539
539
|
if (!(t.$flags$ & 32)) {
|
|
540
540
|
t.$flags$ |= 32;
|
|
541
541
|
{
|
|
@@ -546,22 +546,22 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
546
546
|
);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
const a = t.$ancestorComponent$, o = () =>
|
|
549
|
+
const a = t.$ancestorComponent$, o = () => rr(t, !0);
|
|
550
550
|
a && a["s-rc"] ? a["s-rc"].push(o) : o();
|
|
551
|
-
},
|
|
552
|
-
},
|
|
551
|
+
}, Mn = (e, t) => {
|
|
552
|
+
}, Ln = (e) => {
|
|
553
553
|
if (!(ee.$flags$ & 1)) {
|
|
554
|
-
const t = Ce(e), r = t.$cmpMeta$, s =
|
|
554
|
+
const t = Ce(e), r = t.$cmpMeta$, s = Qe("connectedCallback", r.$tagName$);
|
|
555
555
|
if (t.$flags$ & 1)
|
|
556
|
-
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() =>
|
|
556
|
+
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Mn());
|
|
557
557
|
else {
|
|
558
558
|
t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
559
|
-
r.$flags$ & 12 &&
|
|
559
|
+
r.$flags$ & 12 && On(e);
|
|
560
560
|
{
|
|
561
561
|
let a = e;
|
|
562
562
|
for (; a = a.parentNode || a.host; )
|
|
563
563
|
if (a["s-p"]) {
|
|
564
|
-
|
|
564
|
+
_s(t, t.$ancestorComponent$ = a);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -570,17 +570,17 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
570
570
|
const n = e[a];
|
|
571
571
|
delete e[a], e[a] = n;
|
|
572
572
|
}
|
|
573
|
-
}),
|
|
573
|
+
}), An(e, t);
|
|
574
574
|
}
|
|
575
575
|
s();
|
|
576
576
|
}
|
|
577
|
-
},
|
|
577
|
+
}, On = (e) => {
|
|
578
578
|
const t = e["s-cr"] = Me.createComment(
|
|
579
579
|
""
|
|
580
580
|
);
|
|
581
581
|
t["s-cn"] = !0, ye(e, t, e.firstChild);
|
|
582
|
-
},
|
|
583
|
-
ee.$flags$ & 1 || Ce(e),
|
|
582
|
+
}, Fn = async (e) => {
|
|
583
|
+
ee.$flags$ & 1 || Ce(e), ht.has(e) && ht.delete(e), e.shadowRoot && ht.has(e.shadowRoot) && ht.delete(e.shadowRoot);
|
|
584
584
|
}, D = (e, t) => {
|
|
585
585
|
const r = {
|
|
586
586
|
$flags$: t[0],
|
|
@@ -591,24 +591,24 @@ var Zt, Jt, pt = !1, mt = !1, er = !1, te = !1, gt = (e, t, r) => {
|
|
|
591
591
|
return Object.assign(e.prototype, {
|
|
592
592
|
__hasHostListenerAttached: !1,
|
|
593
593
|
__registerHost() {
|
|
594
|
-
|
|
594
|
+
rn(this, r);
|
|
595
595
|
},
|
|
596
596
|
connectedCallback() {
|
|
597
|
-
this.__hasHostListenerAttached || (Ce(this), this.__hasHostListenerAttached = !0),
|
|
597
|
+
this.__hasHostListenerAttached || (Ce(this), this.__hasHostListenerAttached = !0), Ln(this), s && s.call(this);
|
|
598
598
|
},
|
|
599
599
|
disconnectedCallback() {
|
|
600
|
-
|
|
600
|
+
Fn(this), a && a.call(this), ee.raf(() => {
|
|
601
601
|
var o;
|
|
602
602
|
const n = Ce(this);
|
|
603
|
-
((o = n == null ? void 0 : n.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected &&
|
|
603
|
+
((o = n == null ? void 0 : n.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected && tn(this);
|
|
604
604
|
});
|
|
605
605
|
},
|
|
606
606
|
__attachShadow() {
|
|
607
607
|
this.shadowRoot = this;
|
|
608
608
|
}
|
|
609
|
-
}), e.is = r.$tagName$,
|
|
610
|
-
},
|
|
611
|
-
class
|
|
609
|
+
}), e.is = r.$tagName$, In(e, r);
|
|
610
|
+
}, Dn = (e, t) => t, Hn = Object.defineProperty, Nn = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => Nn(e, typeof t != "symbol" ? t + "" : t, r), he = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(he || {});
|
|
611
|
+
class Un {
|
|
612
612
|
constructor(t) {
|
|
613
613
|
A(this, "logLevel"), A(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
|
|
614
614
|
}
|
|
@@ -649,21 +649,21 @@ function fe(e, t, r, s) {
|
|
|
649
649
|
function n(h) {
|
|
650
650
|
try {
|
|
651
651
|
u(s.next(h));
|
|
652
|
-
} catch (
|
|
653
|
-
o(
|
|
652
|
+
} catch (i) {
|
|
653
|
+
o(i);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
function c(h) {
|
|
657
657
|
try {
|
|
658
658
|
u(s.throw(h));
|
|
659
|
-
} catch (
|
|
660
|
-
o(
|
|
659
|
+
} catch (i) {
|
|
660
|
+
o(i);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
function u(h) {
|
|
664
|
-
var
|
|
665
|
-
h.done ? a(h.value) : (
|
|
666
|
-
p(
|
|
664
|
+
var i;
|
|
665
|
+
h.done ? a(h.value) : (i = h.value, i instanceof r ? i : new r(function(p) {
|
|
666
|
+
p(i);
|
|
667
667
|
})).then(n, c);
|
|
668
668
|
}
|
|
669
669
|
u((s = s.apply(e, [])).next());
|
|
@@ -679,148 +679,148 @@ function pe(e, t) {
|
|
|
679
679
|
}), o;
|
|
680
680
|
function c(u) {
|
|
681
681
|
return function(h) {
|
|
682
|
-
return function(
|
|
682
|
+
return function(i) {
|
|
683
683
|
if (r) throw new TypeError("Generator is already executing.");
|
|
684
|
-
for (; o && (o = 0,
|
|
685
|
-
if (r = 1, s && (a = 2 &
|
|
686
|
-
switch (s = 0, a && (
|
|
684
|
+
for (; o && (o = 0, i[0] && (n = 0)), n; ) try {
|
|
685
|
+
if (r = 1, s && (a = 2 & i[0] ? s.return : i[0] ? s.throw || ((a = s.return) && a.call(s), 0) : s.next) && !(a = a.call(s, i[1])).done) return a;
|
|
686
|
+
switch (s = 0, a && (i = [2 & i[0], a.value]), i[0]) {
|
|
687
687
|
case 0:
|
|
688
688
|
case 1:
|
|
689
|
-
a =
|
|
689
|
+
a = i;
|
|
690
690
|
break;
|
|
691
691
|
case 4:
|
|
692
|
-
return n.label++, { value:
|
|
692
|
+
return n.label++, { value: i[1], done: !1 };
|
|
693
693
|
case 5:
|
|
694
|
-
n.label++, s =
|
|
694
|
+
n.label++, s = i[1], i = [0];
|
|
695
695
|
continue;
|
|
696
696
|
case 7:
|
|
697
|
-
|
|
697
|
+
i = n.ops.pop(), n.trys.pop();
|
|
698
698
|
continue;
|
|
699
699
|
default:
|
|
700
|
-
if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) ||
|
|
700
|
+
if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) || i[0] !== 6 && i[0] !== 2)) {
|
|
701
701
|
n = 0;
|
|
702
702
|
continue;
|
|
703
703
|
}
|
|
704
|
-
if (
|
|
705
|
-
n.label =
|
|
704
|
+
if (i[0] === 3 && (!a || i[1] > a[0] && i[1] < a[3])) {
|
|
705
|
+
n.label = i[1];
|
|
706
706
|
break;
|
|
707
707
|
}
|
|
708
|
-
if (
|
|
709
|
-
n.label = a[1], a =
|
|
708
|
+
if (i[0] === 6 && n.label < a[1]) {
|
|
709
|
+
n.label = a[1], a = i;
|
|
710
710
|
break;
|
|
711
711
|
}
|
|
712
712
|
if (a && n.label < a[2]) {
|
|
713
|
-
n.label = a[2], n.ops.push(
|
|
713
|
+
n.label = a[2], n.ops.push(i);
|
|
714
714
|
break;
|
|
715
715
|
}
|
|
716
716
|
a[2] && n.ops.pop(), n.trys.pop();
|
|
717
717
|
continue;
|
|
718
718
|
}
|
|
719
|
-
|
|
719
|
+
i = t.call(e, n);
|
|
720
720
|
} catch (p) {
|
|
721
|
-
|
|
721
|
+
i = [6, p], s = 0;
|
|
722
722
|
} finally {
|
|
723
723
|
r = a = 0;
|
|
724
724
|
}
|
|
725
|
-
if (5 &
|
|
726
|
-
return { value:
|
|
725
|
+
if (5 & i[0]) throw i[1];
|
|
726
|
+
return { value: i[0] ? i[1] : void 0, done: !0 };
|
|
727
727
|
}([u, h]);
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
var me = { exclude: [] },
|
|
732
|
-
typeof window < "u" && (
|
|
733
|
-
},
|
|
734
|
-
return Object.fromEntries(Object.entries(
|
|
731
|
+
var me = { exclude: [] }, As = {}, zn = { timeout: "true" }, ne = function(e, t) {
|
|
732
|
+
typeof window < "u" && (As[e] = t);
|
|
733
|
+
}, jn = function() {
|
|
734
|
+
return Object.fromEntries(Object.entries(As).filter(function(e) {
|
|
735
735
|
var t, r = e[0];
|
|
736
736
|
return !(!((t = me == null ? void 0 : me.exclude) === null || t === void 0) && t.includes(r));
|
|
737
737
|
}).map(function(e) {
|
|
738
738
|
return [e[0], (0, e[1])()];
|
|
739
739
|
}));
|
|
740
740
|
};
|
|
741
|
-
function
|
|
741
|
+
function ft(e) {
|
|
742
742
|
return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
|
|
743
743
|
}
|
|
744
744
|
var W = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
745
|
-
function
|
|
745
|
+
function se(e, t) {
|
|
746
746
|
return e << t | e >>> 32 - t;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function sr(e, t) {
|
|
749
749
|
var r;
|
|
750
750
|
if (t === void 0 && (t = 0), t = t ? 0 | t : 0, typeof e == "string" && (r = e, e = new TextEncoder().encode(r).buffer), !(e instanceof ArrayBuffer)) throw new TypeError("Expected key to be ArrayBuffer or string");
|
|
751
751
|
var s = new Uint32Array([t, t, t, t]);
|
|
752
752
|
(function(o, n) {
|
|
753
753
|
for (var c = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * c), h = 0; h < c; h++) {
|
|
754
|
-
var
|
|
755
|
-
|
|
754
|
+
var i = u.subarray(4 * h, 4 * (h + 1));
|
|
755
|
+
i[0] = Math.imul(i[0], W[0]), i[0] = se(i[0], 15), i[0] = Math.imul(i[0], W[1]), n[0] = n[0] ^ i[0], n[0] = se(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, i[1] = Math.imul(i[1], W[1]), i[1] = se(i[1], 16), i[1] = Math.imul(i[1], W[2]), n[1] = n[1] ^ i[1], n[1] = se(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, i[2] = Math.imul(i[2], W[2]), i[2] = se(i[2], 17), i[2] = Math.imul(i[2], W[3]), n[2] = n[2] ^ i[2], n[2] = se(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, i[3] = Math.imul(i[3], W[3]), i[3] = se(i[3], 18), i[3] = Math.imul(i[3], W[0]), n[3] = n[3] ^ i[3], n[3] = se(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
|
|
756
756
|
}
|
|
757
757
|
})(e, s), function(o, n) {
|
|
758
|
-
var c = o.byteLength / 16 | 0, u = o.byteLength % 16, h = new Uint32Array(4),
|
|
758
|
+
var c = o.byteLength / 16 | 0, u = o.byteLength % 16, h = new Uint32Array(4), i = new Uint8Array(o, 16 * c, u);
|
|
759
759
|
switch (u) {
|
|
760
760
|
case 15:
|
|
761
|
-
h[3] = h[3] ^
|
|
761
|
+
h[3] = h[3] ^ i[14] << 16;
|
|
762
762
|
case 14:
|
|
763
|
-
h[3] = h[3] ^
|
|
763
|
+
h[3] = h[3] ^ i[13] << 8;
|
|
764
764
|
case 13:
|
|
765
|
-
h[3] = h[3] ^
|
|
765
|
+
h[3] = h[3] ^ i[12] << 0, h[3] = Math.imul(h[3], W[3]), h[3] = se(h[3], 18), h[3] = Math.imul(h[3], W[0]), n[3] = n[3] ^ h[3];
|
|
766
766
|
case 12:
|
|
767
|
-
h[2] = h[2] ^
|
|
767
|
+
h[2] = h[2] ^ i[11] << 24;
|
|
768
768
|
case 11:
|
|
769
|
-
h[2] = h[2] ^
|
|
769
|
+
h[2] = h[2] ^ i[10] << 16;
|
|
770
770
|
case 10:
|
|
771
|
-
h[2] = h[2] ^
|
|
771
|
+
h[2] = h[2] ^ i[9] << 8;
|
|
772
772
|
case 9:
|
|
773
|
-
h[2] = h[2] ^
|
|
773
|
+
h[2] = h[2] ^ i[8] << 0, h[2] = Math.imul(h[2], W[2]), h[2] = se(h[2], 17), h[2] = Math.imul(h[2], W[3]), n[2] = n[2] ^ h[2];
|
|
774
774
|
case 8:
|
|
775
|
-
h[1] = h[1] ^
|
|
775
|
+
h[1] = h[1] ^ i[7] << 24;
|
|
776
776
|
case 7:
|
|
777
|
-
h[1] = h[1] ^
|
|
777
|
+
h[1] = h[1] ^ i[6] << 16;
|
|
778
778
|
case 6:
|
|
779
|
-
h[1] = h[1] ^
|
|
779
|
+
h[1] = h[1] ^ i[5] << 8;
|
|
780
780
|
case 5:
|
|
781
|
-
h[1] = h[1] ^
|
|
781
|
+
h[1] = h[1] ^ i[4] << 0, h[1] = Math.imul(h[1], W[1]), h[1] = se(h[1], 16), h[1] = Math.imul(h[1], W[2]), n[1] = n[1] ^ h[1];
|
|
782
782
|
case 4:
|
|
783
|
-
h[0] = h[0] ^
|
|
783
|
+
h[0] = h[0] ^ i[3] << 24;
|
|
784
784
|
case 3:
|
|
785
|
-
h[0] = h[0] ^
|
|
785
|
+
h[0] = h[0] ^ i[2] << 16;
|
|
786
786
|
case 2:
|
|
787
|
-
h[0] = h[0] ^
|
|
787
|
+
h[0] = h[0] ^ i[1] << 8;
|
|
788
788
|
case 1:
|
|
789
|
-
h[0] = h[0] ^
|
|
789
|
+
h[0] = h[0] ^ i[0] << 0, h[0] = Math.imul(h[0], W[0]), h[0] = se(h[0], 15), h[0] = Math.imul(h[0], W[1]), n[0] = n[0] ^ h[0];
|
|
790
790
|
}
|
|
791
791
|
}(e, s), function(o, n) {
|
|
792
|
-
n[0] = n[0] ^ o.byteLength, n[1] = n[1] ^ o.byteLength, n[2] = n[2] ^ o.byteLength, n[3] = n[3] ^ o.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] =
|
|
792
|
+
n[0] = n[0] ^ o.byteLength, n[1] = n[1] ^ o.byteLength, n[2] = n[2] ^ o.byteLength, n[3] = n[3] ^ o.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] = ft(n[0]), n[1] = ft(n[1]), n[2] = ft(n[2]), n[3] = ft(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;
|
|
793
793
|
}(e, s);
|
|
794
794
|
var a = new Uint8Array(s.buffer);
|
|
795
795
|
return Array.from(a).map(function(o) {
|
|
796
796
|
return o.toString(16).padStart(2, "0");
|
|
797
797
|
}).join("");
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function Vn(e, t) {
|
|
800
800
|
return new Promise(function(r) {
|
|
801
801
|
setTimeout(function() {
|
|
802
802
|
return r(t);
|
|
803
803
|
}, e);
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Bn(e, t, r) {
|
|
807
807
|
return Promise.all(e.map(function(s) {
|
|
808
|
-
return Promise.race([s,
|
|
808
|
+
return Promise.race([s, Vn(t, r)]);
|
|
809
809
|
}));
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Wn() {
|
|
812
812
|
return fe(this, void 0, void 0, function() {
|
|
813
813
|
var e, t, r, s, a;
|
|
814
814
|
return pe(this, function(o) {
|
|
815
815
|
switch (o.label) {
|
|
816
816
|
case 0:
|
|
817
|
-
return o.trys.push([0, 2, , 3]), e =
|
|
817
|
+
return o.trys.push([0, 2, , 3]), e = jn(), t = Object.keys(e), [4, Bn(Object.values(e), (me == null ? void 0 : me.timeout) || 1e3, zn)];
|
|
818
818
|
case 1:
|
|
819
819
|
return r = o.sent(), s = r.filter(function(n) {
|
|
820
820
|
return n !== void 0;
|
|
821
821
|
}), a = {}, s.forEach(function(n, c) {
|
|
822
822
|
a[t[c]] = n;
|
|
823
|
-
}), [2,
|
|
823
|
+
}), [2, Ms(a, me.exclude || [])];
|
|
824
824
|
case 2:
|
|
825
825
|
throw o.sent();
|
|
826
826
|
case 3:
|
|
@@ -829,13 +829,13 @@ function Bn() {
|
|
|
829
829
|
});
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Ms(e, t) {
|
|
833
833
|
var r = {}, s = function(o) {
|
|
834
834
|
if (e.hasOwnProperty(o)) {
|
|
835
835
|
var n = e[o];
|
|
836
836
|
if (typeof n != "object" || Array.isArray(n)) t.includes(o) || (r[o] = n);
|
|
837
837
|
else {
|
|
838
|
-
var c =
|
|
838
|
+
var c = Ms(n, t.map(function(u) {
|
|
839
839
|
return u.startsWith(o + ".") ? u.slice(o.length + 1) : u;
|
|
840
840
|
}));
|
|
841
841
|
Object.keys(c).length > 0 && (r[o] = c);
|
|
@@ -845,15 +845,15 @@ function As(e, t) {
|
|
|
845
845
|
for (var a in e) s(a);
|
|
846
846
|
return r;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Gn(e) {
|
|
849
849
|
return fe(this, void 0, void 0, function() {
|
|
850
850
|
var t, r;
|
|
851
851
|
return pe(this, function(s) {
|
|
852
852
|
switch (s.label) {
|
|
853
853
|
case 0:
|
|
854
|
-
return s.trys.push([0, 2, , 3]), [4,
|
|
854
|
+
return s.trys.push([0, 2, , 3]), [4, Wn()];
|
|
855
855
|
case 1:
|
|
856
|
-
return t = s.sent(), r =
|
|
856
|
+
return t = s.sent(), r = sr(JSON.stringify(t)), [2, r.toString()];
|
|
857
857
|
case 2:
|
|
858
858
|
throw s.sent();
|
|
859
859
|
case 3:
|
|
@@ -862,19 +862,19 @@ function Wn(e) {
|
|
|
862
862
|
});
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function qn(e) {
|
|
866
866
|
for (var t = 0, r = 0; r < e.length; ++r) t += Math.abs(e[r]);
|
|
867
867
|
return t;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Ls(e, t, r) {
|
|
870
870
|
for (var s = [], a = 0; a < e[0].data.length; a++) {
|
|
871
871
|
for (var o = [], n = 0; n < e.length; n++) o.push(e[n].data[a]);
|
|
872
|
-
s.push(
|
|
872
|
+
s.push(Yn(o));
|
|
873
873
|
}
|
|
874
874
|
var c = new Uint8ClampedArray(s);
|
|
875
875
|
return new ImageData(c, t, r);
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function Yn(e) {
|
|
878
878
|
if (e.length === 0) return 0;
|
|
879
879
|
for (var t = {}, r = 0, s = e; r < s.length; r++)
|
|
880
880
|
t[o = s[r]] = (t[o] || 0) + 1;
|
|
@@ -882,7 +882,7 @@ function qn(e) {
|
|
|
882
882
|
for (var o in t) t[o] > t[a] && (a = parseInt(o, 10));
|
|
883
883
|
return a;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Je() {
|
|
886
886
|
if (typeof navigator > "u") return { name: "unknown", version: "unknown" };
|
|
887
887
|
for (var e = navigator.userAgent, t = { Edg: "Edge", OPR: "Opera" }, r = 0, s = [/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/, /(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/, /(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/, /(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/]; r < s.length; r++) {
|
|
888
888
|
var a = s[r], o = e.match(a);
|
|
@@ -899,7 +899,7 @@ ne("audio", function() {
|
|
|
899
899
|
o.frequency.value = 1e3;
|
|
900
900
|
var n, c = s.createDynamicsCompressor();
|
|
901
901
|
c.threshold.value = -50, c.knee.value = 40, c.ratio.value = 12, c.attack.value = 0, c.release.value = 0.2, o.connect(c), c.connect(s.destination), o.start(), s.oncomplete = function(u) {
|
|
902
|
-
n = u.renderedBuffer.getChannelData(0), t({ sampleHash:
|
|
902
|
+
n = u.renderedBuffer.getChannelData(0), t({ sampleHash: qn(n), oscillator: o.type, maxChannels: s.destination.maxChannelCount, channelCountMode: a.channelCountMode });
|
|
903
903
|
}, s.startRendering();
|
|
904
904
|
} catch (u) {
|
|
905
905
|
console.error("Error creating audio fingerprint:", u), r(u);
|
|
@@ -908,14 +908,14 @@ ne("audio", function() {
|
|
|
908
908
|
});
|
|
909
909
|
});
|
|
910
910
|
});
|
|
911
|
-
var
|
|
912
|
-
|
|
911
|
+
var Zn = Je().name !== "SamsungBrowser" ? 1 : 3, as = 280, ns = 20;
|
|
912
|
+
Je().name != "Firefox" && ne("canvas", function() {
|
|
913
913
|
return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
|
|
914
|
-
var t = Array.from({ length:
|
|
914
|
+
var t = Array.from({ length: Zn }, function() {
|
|
915
915
|
return function() {
|
|
916
916
|
var r = document.createElement("canvas"), s = r.getContext("2d");
|
|
917
917
|
if (!s) return new ImageData(1, 1);
|
|
918
|
-
r.width =
|
|
918
|
+
r.width = as, r.height = ns;
|
|
919
919
|
var a = s.createLinearGradient(0, 0, r.width, r.height);
|
|
920
920
|
a.addColorStop(0, "red"), a.addColorStop(0.16666666666666666, "orange"), a.addColorStop(0.3333333333333333, "yellow"), a.addColorStop(0.5, "green"), a.addColorStop(0.6666666666666666, "blue"), a.addColorStop(0.8333333333333334, "indigo"), a.addColorStop(1, "violet"), s.fillStyle = a, s.fillRect(0, 0, r.width, r.height);
|
|
921
921
|
var o = "Random Text WMwmil10Oo";
|
|
@@ -924,15 +924,15 @@ Xe().name != "Firefox" && ne("canvas", function() {
|
|
|
924
924
|
return n;
|
|
925
925
|
}();
|
|
926
926
|
});
|
|
927
|
-
e({ commonImageDataHash:
|
|
927
|
+
e({ commonImageDataHash: sr(Ls(t, as, ns).data.toString()).toString() });
|
|
928
928
|
});
|
|
929
929
|
});
|
|
930
|
-
var Bt,
|
|
931
|
-
function
|
|
930
|
+
var Bt, Qn = ["Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT", "Arimo", "Archivo", "Barlow", "Bebas Neue", "Bitter", "Bookman", "Calibri", "Cabin", "Candara", "Century", "Century Gothic", "Comic Sans MS", "Constantia", "Courier", "Courier New", "Crimson Text", "DM Mono", "DM Sans", "DM Serif Display", "DM Serif Text", "Dosis", "Droid Sans", "Exo", "Fira Code", "Fira Sans", "Franklin Gothic Medium", "Garamond", "Geneva", "Georgia", "Gill Sans", "Helvetica", "Impact", "Inconsolata", "Indie Flower", "Inter", "Josefin Sans", "Karla", "Lato", "Lexend", "Lucida Bright", "Lucida Console", "Lucida Sans Unicode", "Manrope", "Merriweather", "Merriweather Sans", "Montserrat", "Myriad", "Noto Sans", "Nunito", "Nunito Sans", "Open Sans", "Optima", "Orbitron", "Oswald", "Pacifico", "Palatino", "Perpetua", "PT Sans", "PT Serif", "Poppins", "Prompt", "Public Sans", "Quicksand", "Rajdhani", "Recursive", "Roboto", "Roboto Condensed", "Rockwell", "Rubik", "Segoe Print", "Segoe Script", "Segoe UI", "Sora", "Source Sans Pro", "Space Mono", "Tahoma", "Taviraj", "Times", "Times New Roman", "Titillium Web", "Trebuchet MS", "Ubuntu", "Varela Round", "Verdana", "Work Sans"], Kn = ["monospace", "sans-serif", "serif"];
|
|
931
|
+
function os(e, t) {
|
|
932
932
|
if (!e) throw new Error("Canvas context not supported");
|
|
933
933
|
return e.font = "72px ".concat(t), e.measureText("WwMmLli0Oo").width;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Xn() {
|
|
936
936
|
var e, t = document.createElement("canvas"), r = (e = t.getContext("webgl")) !== null && e !== void 0 ? e : t.getContext("experimental-webgl");
|
|
937
937
|
if (r && "getParameter" in r) try {
|
|
938
938
|
var s = (r.getParameter(r.VENDOR) || "").toString(), a = (r.getParameter(r.RENDERER) || "").toString(), o = { vendor: s, renderer: a, version: (r.getParameter(r.VERSION) || "").toString(), shadingLanguageVersion: (r.getParameter(r.SHADING_LANGUAGE_VERSION) || "").toString() };
|
|
@@ -948,19 +948,19 @@ function Kn() {
|
|
|
948
948
|
}
|
|
949
949
|
return "undefined";
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Jn() {
|
|
952
952
|
var e = new Float32Array(1), t = new Uint8Array(e.buffer);
|
|
953
953
|
return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function eo(e, t) {
|
|
956
956
|
var r = {};
|
|
957
957
|
return t.forEach(function(s) {
|
|
958
958
|
var a = function(o) {
|
|
959
959
|
if (o.length === 0) return null;
|
|
960
960
|
var n = {};
|
|
961
961
|
o.forEach(function(h) {
|
|
962
|
-
var
|
|
963
|
-
n[
|
|
962
|
+
var i = String(h);
|
|
963
|
+
n[i] = (n[i] || 0) + 1;
|
|
964
964
|
});
|
|
965
965
|
var c = o[0], u = 1;
|
|
966
966
|
return Object.keys(n).forEach(function(h) {
|
|
@@ -974,7 +974,7 @@ function Jn(e, t) {
|
|
|
974
974
|
a && (r[s] = a);
|
|
975
975
|
}), r;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function to() {
|
|
978
978
|
var e = [], t = { "prefers-contrast": ["high", "more", "low", "less", "forced", "no-preference"], "any-hover": ["hover", "none"], "any-pointer": ["none", "coarse", "fine"], pointer: ["none", "coarse", "fine"], hover: ["hover", "none"], update: ["fast", "slow"], "inverted-colors": ["inverted", "none"], "prefers-reduced-motion": ["reduce", "no-preference"], "prefers-reduced-transparency": ["reduce", "no-preference"], scripting: ["none", "initial-only", "enabled"], "forced-colors": ["active", "none"] };
|
|
979
979
|
return Object.keys(t).forEach(function(r) {
|
|
980
980
|
t[r].forEach(function(s) {
|
|
@@ -982,7 +982,7 @@ function eo() {
|
|
|
982
982
|
});
|
|
983
983
|
}), e;
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function ro() {
|
|
986
986
|
if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
|
|
987
987
|
for (var e = window.ApplePaySession.supportsVersion, t = 15; t > 0; t--) if (e(t)) return t;
|
|
988
988
|
} catch {
|
|
@@ -990,7 +990,7 @@ function to() {
|
|
|
990
990
|
}
|
|
991
991
|
return 0;
|
|
992
992
|
}
|
|
993
|
-
|
|
993
|
+
Je().name != "Firefox" && ne("fonts", function() {
|
|
994
994
|
var e = this;
|
|
995
995
|
return new Promise(function(t, r) {
|
|
996
996
|
try {
|
|
@@ -1002,7 +1002,7 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1002
1002
|
switch (u.label) {
|
|
1003
1003
|
case 0:
|
|
1004
1004
|
return document.body ? [3, 2] : [4, (h = 50, new Promise(function(p) {
|
|
1005
|
-
return setTimeout(p, h,
|
|
1005
|
+
return setTimeout(p, h, i);
|
|
1006
1006
|
}))];
|
|
1007
1007
|
case 1:
|
|
1008
1008
|
return u.sent(), [3, 0];
|
|
@@ -1012,7 +1012,7 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1012
1012
|
document.body.removeChild(o);
|
|
1013
1013
|
}, 0), [2];
|
|
1014
1014
|
}
|
|
1015
|
-
var h,
|
|
1015
|
+
var h, i;
|
|
1016
1016
|
});
|
|
1017
1017
|
});
|
|
1018
1018
|
})(function(s) {
|
|
@@ -1020,11 +1020,11 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1020
1020
|
return fe(e, void 0, void 0, function() {
|
|
1021
1021
|
var o, n, c, u;
|
|
1022
1022
|
return pe(this, function(h) {
|
|
1023
|
-
return o = a.createElement("canvas"), n = o.getContext("2d"), c =
|
|
1024
|
-
return
|
|
1025
|
-
}), u = {},
|
|
1026
|
-
var p =
|
|
1027
|
-
c.includes(p) || (u[
|
|
1023
|
+
return o = a.createElement("canvas"), n = o.getContext("2d"), c = Kn.map(function(i) {
|
|
1024
|
+
return os(n, i);
|
|
1025
|
+
}), u = {}, Qn.forEach(function(i) {
|
|
1026
|
+
var p = os(n, i);
|
|
1027
|
+
c.includes(p) || (u[i] = p);
|
|
1028
1028
|
}), t(u), [2];
|
|
1029
1029
|
});
|
|
1030
1030
|
});
|
|
@@ -1036,7 +1036,7 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1036
1036
|
}), ne("hardware", function() {
|
|
1037
1037
|
return new Promise(function(e, t) {
|
|
1038
1038
|
var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, s = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
1039
|
-
e({ videocard:
|
|
1039
|
+
e({ videocard: Xn(), architecture: Jn(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
|
|
1040
1040
|
});
|
|
1041
1041
|
}), ne("locales", function() {
|
|
1042
1042
|
return new Promise(function(e) {
|
|
@@ -1072,7 +1072,7 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1072
1072
|
});
|
|
1073
1073
|
}();
|
|
1074
1074
|
}), [2, Promise.all(e).then(function(r) {
|
|
1075
|
-
return
|
|
1075
|
+
return eo(r, Bt);
|
|
1076
1076
|
})];
|
|
1077
1077
|
});
|
|
1078
1078
|
});
|
|
@@ -1087,15 +1087,15 @@ Xe().name != "Firefox" && ne("fonts", function() {
|
|
|
1087
1087
|
});
|
|
1088
1088
|
}), ne("screen", function() {
|
|
1089
1089
|
return new Promise(function(e) {
|
|
1090
|
-
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches:
|
|
1090
|
+
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: to() });
|
|
1091
1091
|
});
|
|
1092
1092
|
}), ne("system", function() {
|
|
1093
1093
|
return new Promise(function(e) {
|
|
1094
|
-
var t =
|
|
1095
|
-
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:
|
|
1094
|
+
var t = Je();
|
|
1095
|
+
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: ro() });
|
|
1096
1096
|
});
|
|
1097
1097
|
});
|
|
1098
|
-
var K,
|
|
1098
|
+
var K, so = Je().name !== "SamsungBrowser" ? 1 : 3, S = null;
|
|
1099
1099
|
ne("webgl", function() {
|
|
1100
1100
|
return fe(this, void 0, void 0, function() {
|
|
1101
1101
|
var e;
|
|
@@ -1103,7 +1103,7 @@ ne("webgl", function() {
|
|
|
1103
1103
|
typeof document < "u" && ((K = document.createElement("canvas")).width = 200, K.height = 100, S = K.getContext("webgl"));
|
|
1104
1104
|
try {
|
|
1105
1105
|
if (!S) throw new Error("WebGL not supported");
|
|
1106
|
-
return e = Array.from({ length:
|
|
1106
|
+
return e = Array.from({ length: so }, function() {
|
|
1107
1107
|
return function() {
|
|
1108
1108
|
try {
|
|
1109
1109
|
if (!S) throw new Error("WebGL not supported");
|
|
@@ -1125,9 +1125,9 @@ ne("webgl", function() {
|
|
|
1125
1125
|
if (!n) throw new Error("Failed to create shader program");
|
|
1126
1126
|
if (S.attachShader(n, a), S.attachShader(n, o), S.linkProgram(n), !S.getProgramParameter(n, S.LINK_STATUS)) throw new Error("Shader program linking failed: " + S.getProgramInfoLog(n));
|
|
1127
1127
|
S.useProgram(n);
|
|
1128
|
-
for (var c = 137, u = new Float32Array(4 * c), h = 2 * Math.PI / c,
|
|
1129
|
-
var p =
|
|
1130
|
-
u[4 *
|
|
1128
|
+
for (var c = 137, u = new Float32Array(4 * c), h = 2 * Math.PI / c, i = 0; i < c; i++) {
|
|
1129
|
+
var p = i * h;
|
|
1130
|
+
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (K.width / 2), u[4 * i + 3] = Math.sin(p) * (K.height / 2);
|
|
1131
1131
|
}
|
|
1132
1132
|
var g = S.createBuffer();
|
|
1133
1133
|
S.bindBuffer(S.ARRAY_BUFFER, g), S.bufferData(S.ARRAY_BUFFER, u, S.STATIC_DRAW);
|
|
@@ -1141,7 +1141,7 @@ ne("webgl", function() {
|
|
|
1141
1141
|
S && (S.bindBuffer(S.ARRAY_BUFFER, null), S.useProgram(null), S.viewport(0, 0, S.drawingBufferWidth, S.drawingBufferHeight), S.clearColor(0, 0, 0, 0));
|
|
1142
1142
|
}
|
|
1143
1143
|
}();
|
|
1144
|
-
}), [2, { commonImageHash:
|
|
1144
|
+
}), [2, { commonImageHash: sr(Ls(e, K.width, K.height).data.toString()).toString() }];
|
|
1145
1145
|
} catch {
|
|
1146
1146
|
return [2, { webgl: "unsupported" }];
|
|
1147
1147
|
}
|
|
@@ -1161,14 +1161,14 @@ ne("math", function() {
|
|
|
1161
1161
|
});
|
|
1162
1162
|
});
|
|
1163
1163
|
});
|
|
1164
|
-
const
|
|
1165
|
-
let
|
|
1164
|
+
const ao = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1165
|
+
let Le = (e = 21) => {
|
|
1166
1166
|
let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
1167
1167
|
for (; e--; )
|
|
1168
|
-
t +=
|
|
1168
|
+
t += ao[r[e] & 63];
|
|
1169
1169
|
return t;
|
|
1170
1170
|
};
|
|
1171
|
-
class
|
|
1171
|
+
class ar {
|
|
1172
1172
|
constructor(t) {
|
|
1173
1173
|
A(this, "config"), this.config = t;
|
|
1174
1174
|
}
|
|
@@ -1186,7 +1186,7 @@ class sr {
|
|
|
1186
1186
|
async onAdContainerViewed(t) {
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
class
|
|
1189
|
+
class no extends ar {
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Gets ads from the adMarketplace API based on the search term.
|
|
1192
1192
|
*/
|
|
@@ -1203,13 +1203,13 @@ class ao extends sr {
|
|
|
1203
1203
|
"results-pa": `${this.config.admProductAdQuantity || 0}`
|
|
1204
1204
|
}).toString()}`, s = await (await fetch(r, { method: "GET" })).json(), a = s.product_ads.map(
|
|
1205
1205
|
(n) => ({
|
|
1206
|
-
id:
|
|
1206
|
+
id: Le(),
|
|
1207
1207
|
adSource: "adMarketplace",
|
|
1208
1208
|
admAdType: "adm-product-ad",
|
|
1209
1209
|
admAd: n
|
|
1210
1210
|
})
|
|
1211
1211
|
), o = s.text_ads.map((n) => ({
|
|
1212
|
-
id:
|
|
1212
|
+
id: Le(),
|
|
1213
1213
|
adSource: "adMarketplace",
|
|
1214
1214
|
admAdType: "adm-text-ad",
|
|
1215
1215
|
admAd: n
|
|
@@ -1222,13 +1222,13 @@ class ao extends sr {
|
|
|
1222
1222
|
(r = s.admAd) != null && r.impression_url && fetch(s.admAd.impression_url);
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
|
-
class
|
|
1225
|
+
class oo extends ar {
|
|
1226
1226
|
async getAds(t) {
|
|
1227
1227
|
return [];
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
const
|
|
1231
|
-
class
|
|
1230
|
+
const co = 1e3;
|
|
1231
|
+
class io extends ar {
|
|
1232
1232
|
constructor(t) {
|
|
1233
1233
|
super(t), A(this, "adCallTimeout"), this.addScriptTagToDocument();
|
|
1234
1234
|
}
|
|
@@ -1241,7 +1241,7 @@ class co extends sr {
|
|
|
1241
1241
|
this.removeScriptTagFromDocument();
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
|
-
this.performAdCall(
|
|
1244
|
+
this.performAdCall(co);
|
|
1245
1245
|
}
|
|
1246
1246
|
async onInputCleared() {
|
|
1247
1247
|
this.removeScriptTagFromDocument();
|
|
@@ -1270,8 +1270,8 @@ class co extends sr {
|
|
|
1270
1270
|
t && document.head.removeChild(t);
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
const
|
|
1274
|
-
class
|
|
1273
|
+
const lo = 600;
|
|
1274
|
+
class uo {
|
|
1275
1275
|
constructor(t, r, s) {
|
|
1276
1276
|
A(this, "measureRequestTimeout"), A(this, "measureRequestsBatched", []), A(this, "config"), A(this, "sdkInfo"), A(this, "userId"), A(this, "sessionId"), A(this, "sendMeasureEvent", async (a, o = {}, n = {}) => {
|
|
1277
1277
|
const c = {
|
|
@@ -1289,47 +1289,49 @@ class lo {
|
|
|
1289
1289
|
if (a === "document_clicked") {
|
|
1290
1290
|
const u = JSON.stringify(c), h = `${this.baseMeasureUrl}/event`;
|
|
1291
1291
|
try {
|
|
1292
|
-
const
|
|
1292
|
+
const i = await fetch(h, {
|
|
1293
1293
|
method: "POST",
|
|
1294
1294
|
headers: {
|
|
1295
1295
|
"Content-Type": "application/json",
|
|
1296
1296
|
Authorization: this.config.readKey,
|
|
1297
|
-
"X-Sc-User-Id": this.userId
|
|
1297
|
+
"X-Sc-User-Id": this.userId,
|
|
1298
|
+
"X-Sc-Session-Id": this.sessionId
|
|
1298
1299
|
},
|
|
1299
1300
|
body: u,
|
|
1300
1301
|
keepalive: !0
|
|
1301
1302
|
});
|
|
1302
|
-
if (!
|
|
1303
|
+
if (!i.ok)
|
|
1303
1304
|
throw new Error(
|
|
1304
|
-
`Failed to send request: ${
|
|
1305
|
+
`Failed to send request: ${i.status} ${i.statusText}`
|
|
1305
1306
|
);
|
|
1306
|
-
} catch (
|
|
1307
|
-
throw console.error("Error sending MeasureRequest:",
|
|
1307
|
+
} catch (i) {
|
|
1308
|
+
throw console.error("Error sending MeasureRequest:", i), i;
|
|
1308
1309
|
}
|
|
1309
1310
|
} else
|
|
1310
1311
|
this.measureRequestsBatched.push(c), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
|
|
1311
1312
|
const u = JSON.stringify({ items: this.measureRequestsBatched }), h = `${this.baseMeasureUrl}/batch`;
|
|
1312
1313
|
try {
|
|
1313
|
-
const
|
|
1314
|
+
const i = await fetch(h, {
|
|
1314
1315
|
method: "POST",
|
|
1315
1316
|
headers: {
|
|
1316
1317
|
"Content-Type": "application/json",
|
|
1317
1318
|
Authorization: this.config.readKey,
|
|
1318
|
-
"X-Sc-User-Id": this.userId
|
|
1319
|
+
"X-Sc-User-Id": this.userId,
|
|
1320
|
+
"X-Sc-Session-Id": this.sessionId
|
|
1319
1321
|
},
|
|
1320
1322
|
body: u,
|
|
1321
1323
|
keepalive: !0
|
|
1322
1324
|
});
|
|
1323
|
-
if (this.measureRequestsBatched = [], !
|
|
1325
|
+
if (this.measureRequestsBatched = [], !i.ok)
|
|
1324
1326
|
throw new Error(
|
|
1325
|
-
`Failed to send request: ${
|
|
1327
|
+
`Failed to send request: ${i.status} ${i.statusText}`
|
|
1326
1328
|
);
|
|
1327
1329
|
return;
|
|
1328
|
-
} catch (
|
|
1329
|
-
throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:",
|
|
1330
|
+
} catch (i) {
|
|
1331
|
+
throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", i), i;
|
|
1330
1332
|
}
|
|
1331
|
-
},
|
|
1332
|
-
}), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId =
|
|
1333
|
+
}, lo);
|
|
1334
|
+
}), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = Le(), this.sendMeasureEvent("sdk_initialized");
|
|
1333
1335
|
}
|
|
1334
1336
|
/**
|
|
1335
1337
|
* Getter for the base url used by the /measure endpoints.
|
|
@@ -1352,7 +1354,7 @@ class lo {
|
|
|
1352
1354
|
};
|
|
1353
1355
|
}
|
|
1354
1356
|
}
|
|
1355
|
-
const
|
|
1357
|
+
const ho = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Wt = (e) => {
|
|
1356
1358
|
let t = "";
|
|
1357
1359
|
if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
|
|
1358
1360
|
"‘": "'",
|
|
@@ -1369,7 +1371,7 @@ class po {
|
|
|
1369
1371
|
constructor(t, r, s) {
|
|
1370
1372
|
A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "getSearchResponseItems", async (a) => {
|
|
1371
1373
|
var o, n, c, u, h;
|
|
1372
|
-
let
|
|
1374
|
+
let i;
|
|
1373
1375
|
const p = typeof a == "string" ? a : a.searchTerm;
|
|
1374
1376
|
try {
|
|
1375
1377
|
return (o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
|
|
@@ -1381,81 +1383,85 @@ class po {
|
|
|
1381
1383
|
}
|
|
1382
1384
|
}), (n = this.parent.adClient) == null || n.onQuerySubmitted(
|
|
1383
1385
|
typeof a == "string" ? { searchTerm: p, mode: "exact" } : a
|
|
1384
|
-
), typeof a == "string" ?
|
|
1386
|
+
), typeof a == "string" ? i = await this.handleGetSearchResponseItemsWithString(a) : i = await this.handleGetSearchResponseItemsWithObject(a), (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
|
|
1385
1387
|
search_term: p,
|
|
1386
|
-
number_of_documents:
|
|
1388
|
+
number_of_documents: i.data.count
|
|
1387
1389
|
}), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
|
|
1388
1390
|
var g;
|
|
1389
1391
|
(g = this.parent.measureClient) == null || g.sendMeasureEvent("search_completed", {
|
|
1390
1392
|
search_term: p,
|
|
1391
|
-
number_of_documents:
|
|
1393
|
+
number_of_documents: i.data.count
|
|
1392
1394
|
});
|
|
1393
1395
|
}, fo), this.parent.emitEvent("query_fetched", {
|
|
1394
1396
|
name: "query_fetched",
|
|
1395
1397
|
data: {
|
|
1396
1398
|
searchTerm: p
|
|
1397
1399
|
}
|
|
1398
|
-
}), (((u =
|
|
1400
|
+
}), (((u = i.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
|
|
1399
1401
|
name: "no_results_returned"
|
|
1400
1402
|
}), (h = this.parent.adClient) == null || h.onQueryFetched(
|
|
1401
1403
|
typeof a == "string" ? { searchTerm: p, mode: "exact" } : a,
|
|
1402
|
-
|
|
1403
|
-
),
|
|
1404
|
+
i
|
|
1405
|
+
), i;
|
|
1404
1406
|
} catch (g) {
|
|
1405
1407
|
throw console.error("Error parsing response:", g), g;
|
|
1406
1408
|
}
|
|
1407
1409
|
}), A(this, "handleGetSearchResponseItemsWithString", async (a) => {
|
|
1408
|
-
|
|
1410
|
+
var o;
|
|
1411
|
+
let n;
|
|
1409
1412
|
try {
|
|
1410
|
-
|
|
1413
|
+
n = JSON.parse(a), n = {
|
|
1411
1414
|
limit: this.config.searchResultsPerPage,
|
|
1412
|
-
|
|
1413
|
-
...o
|
|
1415
|
+
...n
|
|
1414
1416
|
};
|
|
1415
1417
|
} catch {
|
|
1416
1418
|
throw new Error("Error: Query string is not valid json.");
|
|
1417
1419
|
}
|
|
1418
|
-
const
|
|
1420
|
+
const c = await fetch(this.baseSearchUrl, {
|
|
1419
1421
|
method: "POST",
|
|
1420
1422
|
headers: {
|
|
1421
1423
|
Authorization: this.config.readKey,
|
|
1422
1424
|
"Content-Type": "application/json",
|
|
1423
|
-
"X-Sc-User-Id": this.userId
|
|
1425
|
+
"X-Sc-User-Id": this.userId,
|
|
1426
|
+
"X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || Le()
|
|
1424
1427
|
},
|
|
1425
|
-
body: JSON.stringify(
|
|
1428
|
+
body: JSON.stringify(n)
|
|
1426
1429
|
});
|
|
1427
|
-
if (!
|
|
1430
|
+
if (!c.ok)
|
|
1428
1431
|
throw new Error(
|
|
1429
|
-
`Error: ${
|
|
1432
|
+
`Error: ${c.statusText} (Status: ${c.status})`
|
|
1430
1433
|
);
|
|
1431
|
-
return await
|
|
1434
|
+
return await c.json();
|
|
1432
1435
|
}), A(this, "handleGetSearchResponseItemsWithObject", async (a) => {
|
|
1436
|
+
var o;
|
|
1433
1437
|
try {
|
|
1434
|
-
const o = {
|
|
1435
|
-
query: this.formatParamsForRequest(a),
|
|
1436
|
-
offset: a.offset || 0,
|
|
1437
|
-
// Default to 0 (first page) if not provided
|
|
1438
|
-
limit: a.limit || this.config.searchResultsPerPage || 20,
|
|
1439
|
-
// Default to 20 if not provided
|
|
1440
|
-
order_by: a.order_by || this.config.indexFieldName
|
|
1441
|
-
};
|
|
1442
|
-
o.order_by && (o.sort = a.sort === "desc" || a.sort === "asc" ? a.sort : "asc");
|
|
1443
1438
|
const n = await fetch(this.baseSearchUrl, {
|
|
1444
1439
|
method: "POST",
|
|
1445
1440
|
headers: {
|
|
1446
1441
|
Authorization: this.config.readKey,
|
|
1447
1442
|
"Content-Type": "application/json",
|
|
1448
|
-
"X-Sc-User-Id": this.userId
|
|
1443
|
+
"X-Sc-User-Id": this.userId,
|
|
1444
|
+
"X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || Le()
|
|
1449
1445
|
},
|
|
1450
|
-
body: JSON.stringify(
|
|
1446
|
+
body: JSON.stringify({
|
|
1447
|
+
query: this.formatParamsForRequest(a),
|
|
1448
|
+
offset: a.offset || 0,
|
|
1449
|
+
limit: a.limit || this.config.searchResultsPerPage || 20,
|
|
1450
|
+
...a.order_by && {
|
|
1451
|
+
order_by: a.order_by
|
|
1452
|
+
},
|
|
1453
|
+
...a.sort && {
|
|
1454
|
+
sort: a.sort
|
|
1455
|
+
}
|
|
1456
|
+
})
|
|
1451
1457
|
});
|
|
1452
1458
|
if (!n.ok)
|
|
1453
1459
|
throw new Error(
|
|
1454
1460
|
`Error: ${n.statusText} (Status: ${n.status})`
|
|
1455
1461
|
);
|
|
1456
1462
|
return await n.json();
|
|
1457
|
-
} catch (
|
|
1458
|
-
throw console.error("Error parsing response:",
|
|
1463
|
+
} catch (n) {
|
|
1464
|
+
throw console.error("Error parsing response:", n), n;
|
|
1459
1465
|
}
|
|
1460
1466
|
}), this.parent = t, this.config = r, this.userId = s;
|
|
1461
1467
|
}
|
|
@@ -1473,30 +1479,34 @@ class po {
|
|
|
1473
1479
|
formatParamsForRequest(t) {
|
|
1474
1480
|
const r = [];
|
|
1475
1481
|
let s = "should";
|
|
1476
|
-
t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((
|
|
1477
|
-
var
|
|
1478
|
-
const
|
|
1479
|
-
|
|
1480
|
-
occur:
|
|
1482
|
+
t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((n) => {
|
|
1483
|
+
var c;
|
|
1484
|
+
const u = (c = t.facetPathsForIndexFields) == null ? void 0 : c[n];
|
|
1485
|
+
u && (s = "must", r.push({
|
|
1486
|
+
occur: "must",
|
|
1481
1487
|
exact: {
|
|
1482
|
-
ctx:
|
|
1488
|
+
ctx: Wt(u.value)
|
|
1483
1489
|
}
|
|
1484
1490
|
}));
|
|
1485
|
-
}), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((
|
|
1486
|
-
var
|
|
1487
|
-
const
|
|
1488
|
-
|
|
1489
|
-
occur:
|
|
1491
|
+
}), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((n) => {
|
|
1492
|
+
var c;
|
|
1493
|
+
const u = (c = t.rangeValueForIndexFields) == null ? void 0 : c[n];
|
|
1494
|
+
u && (s = "must", r.push({
|
|
1495
|
+
occur: "must",
|
|
1490
1496
|
exact: {
|
|
1491
|
-
ctx:
|
|
1497
|
+
ctx: Wt(u.value)
|
|
1492
1498
|
}
|
|
1493
1499
|
}));
|
|
1494
1500
|
});
|
|
1495
|
-
const a = t.mode === "fuzzy" ? { fuzzy: { ctx:
|
|
1501
|
+
const a = Wt(t.searchTerm), o = t.mode === "fuzzy" ? { fuzzy: { ctx: a } } : {
|
|
1502
|
+
exact: {
|
|
1503
|
+
ctx: `${a.startsWith('"') ? a : `"${a}"`}`
|
|
1504
|
+
}
|
|
1505
|
+
};
|
|
1496
1506
|
return r.push({
|
|
1497
|
-
occur: s,
|
|
1507
|
+
occur: t.mode === "exact" ? "must" : s,
|
|
1498
1508
|
// Valid, as 'occur' is a required property in SearchClientQuery
|
|
1499
|
-
...
|
|
1509
|
+
...o
|
|
1500
1510
|
}), r;
|
|
1501
1511
|
}
|
|
1502
1512
|
}
|
|
@@ -1505,16 +1515,17 @@ class mo {
|
|
|
1505
1515
|
if (A(this, "config"), A(this, "measureClient"), A(this, "searchClient"), A(this, "adClient"), A(this, "userId"), A(this, "requestTimeout"), A(this, "subscriptionEvents", {}), A(this, "getResponseItems", (s, a, o) => {
|
|
1506
1516
|
const n = async () => {
|
|
1507
1517
|
(async () => {
|
|
1508
|
-
var c
|
|
1509
|
-
const
|
|
1510
|
-
if (!
|
|
1518
|
+
var c;
|
|
1519
|
+
const u = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
|
|
1520
|
+
if (!u)
|
|
1511
1521
|
throw new Error("Search client was not initialized.");
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1514
|
-
id:
|
|
1515
|
-
|
|
1522
|
+
const h = (u.data.hits || []).filter((i) => !!i.doc).map((i) => ({
|
|
1523
|
+
id: Le(),
|
|
1524
|
+
document: i.doc || { id: -1 },
|
|
1525
|
+
source_index: i.source_index,
|
|
1526
|
+
type: "SearchDocument"
|
|
1516
1527
|
}));
|
|
1517
|
-
a(
|
|
1528
|
+
a(u, h);
|
|
1518
1529
|
})(), (async () => {
|
|
1519
1530
|
if (this.adClient && typeof s != "string") {
|
|
1520
1531
|
const c = await this.adClient.getAds(s);
|
|
@@ -1533,7 +1544,7 @@ class mo {
|
|
|
1533
1544
|
this.config = {
|
|
1534
1545
|
...t,
|
|
1535
1546
|
// Strips off the trailing '/' from an endpointURL if one is accidentally added
|
|
1536
|
-
endpointURL:
|
|
1547
|
+
endpointURL: ho(t.endpointURL)
|
|
1537
1548
|
}, this.userId = "", typeof window < "u" && typeof customElements < "u" && r.sdkName === "@searchcraft/javascript-sdk" && globalThis.__scDefineCustomElements__ && globalThis.__scDefineCustomElements__(), typeof window < "u" && (this.initClients(this.config, r), this.initInputForms(), this.startObservingMutations());
|
|
1538
1549
|
}
|
|
1539
1550
|
initInputForms() {
|
|
@@ -1562,15 +1573,15 @@ class mo {
|
|
|
1562
1573
|
initClients(t, r) {
|
|
1563
1574
|
setTimeout(async () => {
|
|
1564
1575
|
let s = this.config.userId;
|
|
1565
|
-
switch (s || (s = await
|
|
1576
|
+
switch (s || (s = await Gn()), this.measureClient = new uo(t, r, s), this.searchClient = new po(this, t, s), t.adSource) {
|
|
1566
1577
|
case "adMarketplace":
|
|
1567
|
-
this.adClient = new
|
|
1578
|
+
this.adClient = new no(t);
|
|
1568
1579
|
break;
|
|
1569
1580
|
case "Nativo":
|
|
1570
|
-
this.adClient = new
|
|
1581
|
+
this.adClient = new io(t);
|
|
1571
1582
|
break;
|
|
1572
1583
|
case "Custom":
|
|
1573
|
-
this.adClient = new
|
|
1584
|
+
this.adClient = new oo(t);
|
|
1574
1585
|
break;
|
|
1575
1586
|
}
|
|
1576
1587
|
this.emitEvent("initialized", {
|
|
@@ -1629,20 +1640,20 @@ class mo {
|
|
|
1629
1640
|
}), (t = this.adClient) == null || t.onInputCleared();
|
|
1630
1641
|
}
|
|
1631
1642
|
}
|
|
1632
|
-
var
|
|
1633
|
-
const
|
|
1643
|
+
var Os = {}, nr = {};
|
|
1644
|
+
const cs = (e) => {
|
|
1634
1645
|
let t;
|
|
1635
|
-
const r = /* @__PURE__ */ new Set(), s = (h,
|
|
1646
|
+
const r = /* @__PURE__ */ new Set(), s = (h, i) => {
|
|
1636
1647
|
const p = typeof h == "function" ? h(t) : h;
|
|
1637
1648
|
if (!Object.is(p, t)) {
|
|
1638
1649
|
const g = t;
|
|
1639
|
-
t =
|
|
1650
|
+
t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((k) => k(t, g));
|
|
1640
1651
|
}
|
|
1641
1652
|
}, a = () => t, c = { setState: s, getState: a, getInitialState: () => u, subscribe: (h) => (r.add(h), () => r.delete(h)) }, u = t = e(s, a, c);
|
|
1642
1653
|
return c;
|
|
1643
|
-
}, go = (e) => e ?
|
|
1644
|
-
|
|
1645
|
-
var
|
|
1654
|
+
}, go = (e) => e ? cs(e) : cs;
|
|
1655
|
+
nr.createStore = go;
|
|
1656
|
+
var or = {}, Fs = { exports: {} }, w = {};
|
|
1646
1657
|
/**
|
|
1647
1658
|
* @license React
|
|
1648
1659
|
* react.production.js
|
|
@@ -1652,11 +1663,11 @@ var nr = {}, Os = { exports: {} }, w = {};
|
|
|
1652
1663
|
* This source code is licensed under the MIT license found in the
|
|
1653
1664
|
* LICENSE file in the root directory of this source tree.
|
|
1654
1665
|
*/
|
|
1655
|
-
var
|
|
1666
|
+
var cr = Symbol.for("react.transitional.element"), vo = Symbol.for("react.portal"), bo = Symbol.for("react.fragment"), yo = Symbol.for("react.strict_mode"), Co = Symbol.for("react.profiler"), So = Symbol.for("react.consumer"), ko = Symbol.for("react.context"), wo = Symbol.for("react.forward_ref"), xo = Symbol.for("react.suspense"), Ro = Symbol.for("react.memo"), Ds = Symbol.for("react.lazy"), is = Symbol.iterator;
|
|
1656
1667
|
function Eo(e) {
|
|
1657
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
1668
|
+
return e === null || typeof e != "object" ? null : (e = is && e[is] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1658
1669
|
}
|
|
1659
|
-
var
|
|
1670
|
+
var Hs = {
|
|
1660
1671
|
isMounted: function() {
|
|
1661
1672
|
return !1;
|
|
1662
1673
|
},
|
|
@@ -1666,35 +1677,35 @@ var Ds = {
|
|
|
1666
1677
|
},
|
|
1667
1678
|
enqueueSetState: function() {
|
|
1668
1679
|
}
|
|
1669
|
-
},
|
|
1670
|
-
function
|
|
1671
|
-
this.props = e, this.context = t, this.refs =
|
|
1680
|
+
}, Ns = Object.assign, Us = {};
|
|
1681
|
+
function Fe(e, t, r) {
|
|
1682
|
+
this.props = e, this.context = t, this.refs = Us, this.updater = r || Hs;
|
|
1672
1683
|
}
|
|
1673
|
-
|
|
1674
|
-
|
|
1684
|
+
Fe.prototype.isReactComponent = {};
|
|
1685
|
+
Fe.prototype.setState = function(e, t) {
|
|
1675
1686
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1676
1687
|
throw Error(
|
|
1677
1688
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1678
1689
|
);
|
|
1679
1690
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
1680
1691
|
};
|
|
1681
|
-
|
|
1692
|
+
Fe.prototype.forceUpdate = function(e) {
|
|
1682
1693
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1683
1694
|
};
|
|
1684
|
-
function
|
|
1695
|
+
function zs() {
|
|
1685
1696
|
}
|
|
1686
|
-
|
|
1687
|
-
function
|
|
1688
|
-
this.props = e, this.context = t, this.refs =
|
|
1697
|
+
zs.prototype = Fe.prototype;
|
|
1698
|
+
function ir(e, t, r) {
|
|
1699
|
+
this.props = e, this.context = t, this.refs = Us, this.updater = r || Hs;
|
|
1689
1700
|
}
|
|
1690
|
-
var
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
var
|
|
1695
|
-
function
|
|
1701
|
+
var lr = ir.prototype = new zs();
|
|
1702
|
+
lr.constructor = ir;
|
|
1703
|
+
Ns(lr, Fe.prototype);
|
|
1704
|
+
lr.isPureReactComponent = !0;
|
|
1705
|
+
var ls = Array.isArray, L = { H: null, A: null, T: null, S: null }, js = Object.prototype.hasOwnProperty;
|
|
1706
|
+
function ur(e, t, r, s, a, o) {
|
|
1696
1707
|
return r = o.ref, {
|
|
1697
|
-
$$typeof:
|
|
1708
|
+
$$typeof: cr,
|
|
1698
1709
|
type: e,
|
|
1699
1710
|
key: t,
|
|
1700
1711
|
ref: r !== void 0 ? r : null,
|
|
@@ -1702,7 +1713,7 @@ function lr(e, t, r, s, a, o) {
|
|
|
1702
1713
|
};
|
|
1703
1714
|
}
|
|
1704
1715
|
function To(e, t) {
|
|
1705
|
-
return
|
|
1716
|
+
return ur(
|
|
1706
1717
|
e.type,
|
|
1707
1718
|
t,
|
|
1708
1719
|
void 0,
|
|
@@ -1711,8 +1722,8 @@ function To(e, t) {
|
|
|
1711
1722
|
e.props
|
|
1712
1723
|
);
|
|
1713
1724
|
}
|
|
1714
|
-
function
|
|
1715
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
1725
|
+
function hr(e) {
|
|
1726
|
+
return typeof e == "object" && e !== null && e.$$typeof === cr;
|
|
1716
1727
|
}
|
|
1717
1728
|
function Po(e) {
|
|
1718
1729
|
var t = { "=": "=0", ":": "=2" };
|
|
@@ -1720,11 +1731,11 @@ function Po(e) {
|
|
|
1720
1731
|
return t[r];
|
|
1721
1732
|
});
|
|
1722
1733
|
}
|
|
1723
|
-
var
|
|
1724
|
-
function
|
|
1734
|
+
var us = /\/+/g;
|
|
1735
|
+
function Gt(e, t) {
|
|
1725
1736
|
return typeof e == "object" && e !== null && e.key != null ? Po("" + e.key) : t.toString(36);
|
|
1726
1737
|
}
|
|
1727
|
-
function
|
|
1738
|
+
function hs() {
|
|
1728
1739
|
}
|
|
1729
1740
|
function $o(e) {
|
|
1730
1741
|
switch (e.status) {
|
|
@@ -1733,7 +1744,7 @@ function $o(e) {
|
|
|
1733
1744
|
case "rejected":
|
|
1734
1745
|
throw e.reason;
|
|
1735
1746
|
default:
|
|
1736
|
-
switch (typeof e.status == "string" ? e.then(
|
|
1747
|
+
switch (typeof e.status == "string" ? e.then(hs, hs) : (e.status = "pending", e.then(
|
|
1737
1748
|
function(t) {
|
|
1738
1749
|
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
1739
1750
|
},
|
|
@@ -1763,11 +1774,11 @@ function Ae(e, t, r, s, a) {
|
|
|
1763
1774
|
break;
|
|
1764
1775
|
case "object":
|
|
1765
1776
|
switch (e.$$typeof) {
|
|
1766
|
-
case
|
|
1777
|
+
case cr:
|
|
1767
1778
|
case vo:
|
|
1768
1779
|
n = !0;
|
|
1769
1780
|
break;
|
|
1770
|
-
case
|
|
1781
|
+
case Ds:
|
|
1771
1782
|
return n = e._init, Ae(
|
|
1772
1783
|
n(e._payload),
|
|
1773
1784
|
t,
|
|
@@ -1778,20 +1789,20 @@ function Ae(e, t, r, s, a) {
|
|
|
1778
1789
|
}
|
|
1779
1790
|
}
|
|
1780
1791
|
if (n)
|
|
1781
|
-
return a = a(e), n = s === "" ? "." +
|
|
1792
|
+
return a = a(e), n = s === "" ? "." + Gt(e, 0) : s, ls(a) ? (r = "", n != null && (r = n.replace(us, "$&/") + "/"), Ae(a, t, r, "", function(h) {
|
|
1782
1793
|
return h;
|
|
1783
|
-
})) : a != null && (
|
|
1794
|
+
})) : a != null && (hr(a) && (a = To(
|
|
1784
1795
|
a,
|
|
1785
1796
|
r + (a.key == null || e && e.key === a.key ? "" : ("" + a.key).replace(
|
|
1786
|
-
|
|
1797
|
+
us,
|
|
1787
1798
|
"$&/"
|
|
1788
1799
|
) + "/") + n
|
|
1789
1800
|
)), t.push(a)), 1;
|
|
1790
1801
|
n = 0;
|
|
1791
1802
|
var c = s === "" ? "." : s + ":";
|
|
1792
|
-
if (
|
|
1803
|
+
if (ls(e))
|
|
1793
1804
|
for (var u = 0; u < e.length; u++)
|
|
1794
|
-
s = e[u], o = c +
|
|
1805
|
+
s = e[u], o = c + Gt(s, u), n += Ae(
|
|
1795
1806
|
s,
|
|
1796
1807
|
t,
|
|
1797
1808
|
r,
|
|
@@ -1800,7 +1811,7 @@ function Ae(e, t, r, s, a) {
|
|
|
1800
1811
|
);
|
|
1801
1812
|
else if (u = Eo(e), typeof u == "function")
|
|
1802
1813
|
for (e = u.call(e), u = 0; !(s = e.next()).done; )
|
|
1803
|
-
s = s.value, o = c +
|
|
1814
|
+
s = s.value, o = c + Gt(s, u++), n += Ae(
|
|
1804
1815
|
s,
|
|
1805
1816
|
t,
|
|
1806
1817
|
r,
|
|
@@ -1822,7 +1833,7 @@ function Ae(e, t, r, s, a) {
|
|
|
1822
1833
|
}
|
|
1823
1834
|
return n;
|
|
1824
1835
|
}
|
|
1825
|
-
function
|
|
1836
|
+
function pt(e, t, r) {
|
|
1826
1837
|
if (e == null) return e;
|
|
1827
1838
|
var s = [], a = 0;
|
|
1828
1839
|
return Ae(e, s, "", "", function(o) {
|
|
@@ -1844,7 +1855,7 @@ function _o(e) {
|
|
|
1844
1855
|
if (e._status === 1) return e._result.default;
|
|
1845
1856
|
throw e._result;
|
|
1846
1857
|
}
|
|
1847
|
-
var
|
|
1858
|
+
var ds = typeof reportError == "function" ? reportError : function(e) {
|
|
1848
1859
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1849
1860
|
var t = new window.ErrorEvent("error", {
|
|
1850
1861
|
bubbles: !0,
|
|
@@ -1862,9 +1873,9 @@ var hs = typeof reportError == "function" ? reportError : function(e) {
|
|
|
1862
1873
|
function Io() {
|
|
1863
1874
|
}
|
|
1864
1875
|
w.Children = {
|
|
1865
|
-
map:
|
|
1876
|
+
map: pt,
|
|
1866
1877
|
forEach: function(e, t, r) {
|
|
1867
|
-
|
|
1878
|
+
pt(
|
|
1868
1879
|
e,
|
|
1869
1880
|
function() {
|
|
1870
1881
|
t.apply(this, arguments);
|
|
@@ -1874,27 +1885,27 @@ w.Children = {
|
|
|
1874
1885
|
},
|
|
1875
1886
|
count: function(e) {
|
|
1876
1887
|
var t = 0;
|
|
1877
|
-
return
|
|
1888
|
+
return pt(e, function() {
|
|
1878
1889
|
t++;
|
|
1879
1890
|
}), t;
|
|
1880
1891
|
},
|
|
1881
1892
|
toArray: function(e) {
|
|
1882
|
-
return
|
|
1893
|
+
return pt(e, function(t) {
|
|
1883
1894
|
return t;
|
|
1884
1895
|
}) || [];
|
|
1885
1896
|
},
|
|
1886
1897
|
only: function(e) {
|
|
1887
|
-
if (!
|
|
1898
|
+
if (!hr(e))
|
|
1888
1899
|
throw Error(
|
|
1889
1900
|
"React.Children.only expected to receive a single React element child."
|
|
1890
1901
|
);
|
|
1891
1902
|
return e;
|
|
1892
1903
|
}
|
|
1893
1904
|
};
|
|
1894
|
-
w.Component =
|
|
1905
|
+
w.Component = Fe;
|
|
1895
1906
|
w.Fragment = bo;
|
|
1896
1907
|
w.Profiler = Co;
|
|
1897
|
-
w.PureComponent =
|
|
1908
|
+
w.PureComponent = ir;
|
|
1898
1909
|
w.StrictMode = yo;
|
|
1899
1910
|
w.Suspense = xo;
|
|
1900
1911
|
w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L;
|
|
@@ -1911,10 +1922,10 @@ w.cloneElement = function(e, t, r) {
|
|
|
1911
1922
|
throw Error(
|
|
1912
1923
|
"The argument must be a React element, but you passed " + e + "."
|
|
1913
1924
|
);
|
|
1914
|
-
var s =
|
|
1925
|
+
var s = Ns({}, e.props), a = e.key, o = void 0;
|
|
1915
1926
|
if (t != null)
|
|
1916
1927
|
for (n in t.ref !== void 0 && (o = void 0), t.key !== void 0 && (a = "" + t.key), t)
|
|
1917
|
-
!
|
|
1928
|
+
!js.call(t, n) || n === "key" || n === "__self" || n === "__source" || n === "ref" && t.ref === void 0 || (s[n] = t[n]);
|
|
1918
1929
|
var n = arguments.length - 2;
|
|
1919
1930
|
if (n === 1) s.children = r;
|
|
1920
1931
|
else if (1 < n) {
|
|
@@ -1922,7 +1933,7 @@ w.cloneElement = function(e, t, r) {
|
|
|
1922
1933
|
c[u] = arguments[u + 2];
|
|
1923
1934
|
s.children = c;
|
|
1924
1935
|
}
|
|
1925
|
-
return
|
|
1936
|
+
return ur(e.type, a, void 0, void 0, o, s);
|
|
1926
1937
|
};
|
|
1927
1938
|
w.createContext = function(e) {
|
|
1928
1939
|
return e = {
|
|
@@ -1941,7 +1952,7 @@ w.createElement = function(e, t, r) {
|
|
|
1941
1952
|
var s, a = {}, o = null;
|
|
1942
1953
|
if (t != null)
|
|
1943
1954
|
for (s in t.key !== void 0 && (o = "" + t.key), t)
|
|
1944
|
-
|
|
1955
|
+
js.call(t, s) && s !== "key" && s !== "__self" && s !== "__source" && (a[s] = t[s]);
|
|
1945
1956
|
var n = arguments.length - 2;
|
|
1946
1957
|
if (n === 1) a.children = r;
|
|
1947
1958
|
else if (1 < n) {
|
|
@@ -1952,7 +1963,7 @@ w.createElement = function(e, t, r) {
|
|
|
1952
1963
|
if (e && e.defaultProps)
|
|
1953
1964
|
for (s in n = e.defaultProps, n)
|
|
1954
1965
|
a[s] === void 0 && (a[s] = n[s]);
|
|
1955
|
-
return
|
|
1966
|
+
return ur(e, o, void 0, void 0, null, a);
|
|
1956
1967
|
};
|
|
1957
1968
|
w.createRef = function() {
|
|
1958
1969
|
return { current: null };
|
|
@@ -1960,10 +1971,10 @@ w.createRef = function() {
|
|
|
1960
1971
|
w.forwardRef = function(e) {
|
|
1961
1972
|
return { $$typeof: wo, render: e };
|
|
1962
1973
|
};
|
|
1963
|
-
w.isValidElement =
|
|
1974
|
+
w.isValidElement = hr;
|
|
1964
1975
|
w.lazy = function(e) {
|
|
1965
1976
|
return {
|
|
1966
|
-
$$typeof:
|
|
1977
|
+
$$typeof: Ds,
|
|
1967
1978
|
_payload: { _status: -1, _result: e },
|
|
1968
1979
|
_init: _o
|
|
1969
1980
|
};
|
|
@@ -1980,9 +1991,9 @@ w.startTransition = function(e) {
|
|
|
1980
1991
|
L.T = r;
|
|
1981
1992
|
try {
|
|
1982
1993
|
var s = e(), a = L.S;
|
|
1983
|
-
a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Io,
|
|
1994
|
+
a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Io, ds);
|
|
1984
1995
|
} catch (o) {
|
|
1985
|
-
|
|
1996
|
+
ds(o);
|
|
1986
1997
|
} finally {
|
|
1987
1998
|
L.T = t;
|
|
1988
1999
|
}
|
|
@@ -2048,25 +2059,25 @@ w.useTransition = function() {
|
|
|
2048
2059
|
return L.H.useTransition();
|
|
2049
2060
|
};
|
|
2050
2061
|
w.version = "19.0.0";
|
|
2051
|
-
|
|
2052
|
-
var
|
|
2062
|
+
Fs.exports = w;
|
|
2063
|
+
var fs = Fs.exports, Ao = nr;
|
|
2053
2064
|
const Mo = (e) => e;
|
|
2054
|
-
function
|
|
2055
|
-
const r =
|
|
2065
|
+
function Vs(e, t = Mo) {
|
|
2066
|
+
const r = fs.useSyncExternalStore(
|
|
2056
2067
|
e.subscribe,
|
|
2057
2068
|
() => t(e.getState()),
|
|
2058
2069
|
() => t(e.getInitialState())
|
|
2059
2070
|
);
|
|
2060
|
-
return
|
|
2071
|
+
return fs.useDebugValue(r), r;
|
|
2061
2072
|
}
|
|
2062
|
-
const
|
|
2063
|
-
const t = Ao.createStore(e), r = (s) =>
|
|
2073
|
+
const ps = (e) => {
|
|
2074
|
+
const t = Ao.createStore(e), r = (s) => Vs(t, s);
|
|
2064
2075
|
return Object.assign(r, t), r;
|
|
2065
|
-
}, Lo = (e) => e ?
|
|
2066
|
-
|
|
2067
|
-
|
|
2076
|
+
}, Lo = (e) => e ? ps(e) : ps;
|
|
2077
|
+
or.create = Lo;
|
|
2078
|
+
or.useStore = Vs;
|
|
2068
2079
|
(function(e) {
|
|
2069
|
-
var t =
|
|
2080
|
+
var t = nr, r = or;
|
|
2070
2081
|
Object.keys(t).forEach(function(s) {
|
|
2071
2082
|
s !== "default" && !Object.prototype.hasOwnProperty.call(e, s) && Object.defineProperty(e, s, {
|
|
2072
2083
|
enumerable: !0,
|
|
@@ -2082,8 +2093,8 @@ nr.useStore = js;
|
|
|
2082
2093
|
}
|
|
2083
2094
|
});
|
|
2084
2095
|
});
|
|
2085
|
-
})(
|
|
2086
|
-
const
|
|
2096
|
+
})(Os);
|
|
2097
|
+
const ms = {
|
|
2087
2098
|
adClientResponseItems: [],
|
|
2088
2099
|
core: void 0,
|
|
2089
2100
|
hotkey: "k",
|
|
@@ -2103,11 +2114,12 @@ const ps = {
|
|
|
2103
2114
|
searchResultsCount: 0,
|
|
2104
2115
|
searchResultsPerPage: 20,
|
|
2105
2116
|
searchResultsPage: 1,
|
|
2106
|
-
sortType:
|
|
2117
|
+
sortType: void 0,
|
|
2118
|
+
orderByField: void 0,
|
|
2107
2119
|
// Callbacks
|
|
2108
2120
|
afterInit: () => {
|
|
2109
2121
|
}
|
|
2110
|
-
}, $ =
|
|
2122
|
+
}, $ = Os.createStore((e, t) => {
|
|
2111
2123
|
const r = {
|
|
2112
2124
|
set: (a) => (e(a), t()),
|
|
2113
2125
|
addFacetPathsForIndexField: (a) => r.set((o) => ({
|
|
@@ -2127,7 +2139,7 @@ const ps = {
|
|
|
2127
2139
|
return a;
|
|
2128
2140
|
},
|
|
2129
2141
|
init: (a, o = !1) => {
|
|
2130
|
-
const n = o ? new
|
|
2142
|
+
const n = o ? new Un({ logLevel: he.DEBUG }) : void 0, c = r.set({
|
|
2131
2143
|
core: a,
|
|
2132
2144
|
logger: n,
|
|
2133
2145
|
searchResultsPerPage: (a == null ? void 0 : a.config.searchResultsPerPage) || 20
|
|
@@ -2175,6 +2187,7 @@ const ps = {
|
|
|
2175
2187
|
searchTerm: a.searchTerm,
|
|
2176
2188
|
mode: a.searchMode,
|
|
2177
2189
|
sort: a.sortType,
|
|
2190
|
+
order_by: a.orderByField,
|
|
2178
2191
|
facetPathsForIndexFields: a.facetPathsForIndexFields,
|
|
2179
2192
|
rangeValueForIndexFields: a.rangeValueForIndexFields,
|
|
2180
2193
|
offset: a.searchResultsPerPage ? a.searchResultsPerPage * (a.searchResultsPage - 1) : 0,
|
|
@@ -2183,7 +2196,7 @@ const ps = {
|
|
|
2183
2196
|
},
|
|
2184
2197
|
setAdClientResponseItems: (a) => r.set({ adClientResponseItems: a }),
|
|
2185
2198
|
setSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2186
|
-
var
|
|
2199
|
+
var i, p;
|
|
2187
2200
|
const { facets: n, count: c = 0, time_taken: u = 0 } = a.data, h = r.set((g) => ({
|
|
2188
2201
|
isSearchInProgress: !1,
|
|
2189
2202
|
searchClientResponseItems: o,
|
|
@@ -2193,20 +2206,20 @@ const ps = {
|
|
|
2193
2206
|
c === g.searchResultsCount ? g.searchResultsPage : 1
|
|
2194
2207
|
),
|
|
2195
2208
|
searchResultsCount: c,
|
|
2196
|
-
|
|
2209
|
+
searchResponseFacetPrime: n
|
|
2197
2210
|
}));
|
|
2198
|
-
(
|
|
2211
|
+
(i = h.logger) == null || i.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`), (p = h.logger) == null || p.log(he.DEBUG, `Facets from response: ${JSON.stringify(n)}`);
|
|
2199
2212
|
},
|
|
2200
2213
|
setInitialSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2201
2214
|
var h;
|
|
2202
2215
|
const n = t(), { count: c = 0, time_taken: u = 0 } = a.data;
|
|
2203
|
-
r.set((
|
|
2216
|
+
r.set((i) => ({
|
|
2204
2217
|
isSearchInProgress: !1,
|
|
2205
2218
|
initialSearchClientResponseItems: o,
|
|
2206
2219
|
searchResponseTimeTaken: u,
|
|
2207
2220
|
searchResultsPage: (
|
|
2208
2221
|
// Reset to first page when response count changes
|
|
2209
|
-
c ===
|
|
2222
|
+
c === i.searchResultsCount ? i.searchResultsPage : 1
|
|
2210
2223
|
),
|
|
2211
2224
|
searchResultsCount: c
|
|
2212
2225
|
})), (h = n.logger) == null || h.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`);
|
|
@@ -2222,7 +2235,7 @@ const ps = {
|
|
|
2222
2235
|
isPopoverVisible: a
|
|
2223
2236
|
}),
|
|
2224
2237
|
setSearchMode: (a) => r.set({ searchMode: a }),
|
|
2225
|
-
|
|
2238
|
+
setSortOrder: ({ orderByField: a, sortType: o }) => r.set({ sortType: o, orderByField: a }),
|
|
2226
2239
|
setSearchTerm: (a) => {
|
|
2227
2240
|
const { core: o } = t();
|
|
2228
2241
|
a.length === 0 && (o == null || o.handleInputCleared()), r.set({
|
|
@@ -2230,7 +2243,8 @@ const ps = {
|
|
|
2230
2243
|
facetPathsForIndexFields: {},
|
|
2231
2244
|
...a.trim().length === 0 && {
|
|
2232
2245
|
searchMode: "fuzzy",
|
|
2233
|
-
sortType:
|
|
2246
|
+
sortType: null,
|
|
2247
|
+
orderByField: null
|
|
2234
2248
|
}
|
|
2235
2249
|
});
|
|
2236
2250
|
},
|
|
@@ -2243,7 +2257,7 @@ const ps = {
|
|
|
2243
2257
|
r.set({ searchResultsPerPage: a }), await r.search();
|
|
2244
2258
|
},
|
|
2245
2259
|
setHotKeyAndHotKeyModifier: (a, o) => {
|
|
2246
|
-
const { hotkey: n, hotkeyModifier: c } =
|
|
2260
|
+
const { hotkey: n, hotkeyModifier: c } = ms;
|
|
2247
2261
|
r.set({
|
|
2248
2262
|
hotkey: a || n,
|
|
2249
2263
|
hotkeyModifier: o || c
|
|
@@ -2251,11 +2265,48 @@ const ps = {
|
|
|
2251
2265
|
}
|
|
2252
2266
|
};
|
|
2253
2267
|
return {
|
|
2254
|
-
...
|
|
2268
|
+
...ms,
|
|
2255
2269
|
...r
|
|
2256
2270
|
};
|
|
2257
2271
|
});
|
|
2258
|
-
var
|
|
2272
|
+
var Bs = { exports: {} };
|
|
2273
|
+
/*!
|
|
2274
|
+
Copyright (c) 2018 Jed Watson.
|
|
2275
|
+
Licensed under the MIT License (MIT), see
|
|
2276
|
+
http://jedwatson.github.io/classnames
|
|
2277
|
+
*/
|
|
2278
|
+
(function(e) {
|
|
2279
|
+
(function() {
|
|
2280
|
+
var t = {}.hasOwnProperty;
|
|
2281
|
+
function r() {
|
|
2282
|
+
for (var o = "", n = 0; n < arguments.length; n++) {
|
|
2283
|
+
var c = arguments[n];
|
|
2284
|
+
c && (o = a(o, s(c)));
|
|
2285
|
+
}
|
|
2286
|
+
return o;
|
|
2287
|
+
}
|
|
2288
|
+
function s(o) {
|
|
2289
|
+
if (typeof o == "string" || typeof o == "number")
|
|
2290
|
+
return o;
|
|
2291
|
+
if (typeof o != "object")
|
|
2292
|
+
return "";
|
|
2293
|
+
if (Array.isArray(o))
|
|
2294
|
+
return r.apply(null, o);
|
|
2295
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
2296
|
+
return o.toString();
|
|
2297
|
+
var n = "";
|
|
2298
|
+
for (var c in o)
|
|
2299
|
+
t.call(o, c) && o[c] && (n = a(n, c));
|
|
2300
|
+
return n;
|
|
2301
|
+
}
|
|
2302
|
+
function a(o, n) {
|
|
2303
|
+
return n ? o ? o + " " + n : o + n : o;
|
|
2304
|
+
}
|
|
2305
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
2306
|
+
})();
|
|
2307
|
+
})(Bs);
|
|
2308
|
+
const re = Bs.exports;
|
|
2309
|
+
var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ws = { exports: {} };
|
|
2259
2310
|
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
|
|
2260
2311
|
(function(e, t) {
|
|
2261
2312
|
(function(r, s) {
|
|
@@ -2273,27 +2324,27 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2273
2324
|
seal: u,
|
|
2274
2325
|
create: h
|
|
2275
2326
|
} = Object, {
|
|
2276
|
-
apply:
|
|
2327
|
+
apply: i,
|
|
2277
2328
|
construct: p
|
|
2278
2329
|
} = typeof Reflect < "u" && Reflect;
|
|
2279
2330
|
c || (c = function(y) {
|
|
2280
2331
|
return y;
|
|
2281
2332
|
}), u || (u = function(y) {
|
|
2282
2333
|
return y;
|
|
2283
|
-
}),
|
|
2334
|
+
}), i || (i = function(y, T, E) {
|
|
2284
2335
|
return y.apply(T, E);
|
|
2285
2336
|
}), p || (p = function(y, T) {
|
|
2286
2337
|
return new y(...T);
|
|
2287
2338
|
});
|
|
2288
|
-
const g = q(Array.prototype.forEach), k = q(Array.prototype.lastIndexOf), b = q(Array.prototype.pop), P = q(Array.prototype.push), _ = q(Array.prototype.splice), H = q(String.prototype.toLowerCase), I = q(String.prototype.toString),
|
|
2339
|
+
const g = q(Array.prototype.forEach), k = q(Array.prototype.lastIndexOf), b = q(Array.prototype.pop), P = q(Array.prototype.push), _ = q(Array.prototype.splice), H = q(String.prototype.toLowerCase), I = q(String.prototype.toString), De = q(String.prototype.match), He = q(String.prototype.replace), oa = q(String.prototype.indexOf), ca = q(String.prototype.trim), ae = q(Object.prototype.hasOwnProperty), G = q(RegExp.prototype.test), Ne = ia(TypeError);
|
|
2289
2340
|
function q(R) {
|
|
2290
2341
|
return function(y) {
|
|
2291
2342
|
for (var T = arguments.length, E = new Array(T > 1 ? T - 1 : 0), V = 1; V < T; V++)
|
|
2292
2343
|
E[V - 1] = arguments[V];
|
|
2293
|
-
return
|
|
2344
|
+
return i(R, y, E);
|
|
2294
2345
|
};
|
|
2295
2346
|
}
|
|
2296
|
-
function
|
|
2347
|
+
function ia(R) {
|
|
2297
2348
|
return function() {
|
|
2298
2349
|
for (var y = arguments.length, T = new Array(y), E = 0; E < y; E++)
|
|
2299
2350
|
T[E] = arguments[E];
|
|
@@ -2314,7 +2365,7 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2314
2365
|
}
|
|
2315
2366
|
return R;
|
|
2316
2367
|
}
|
|
2317
|
-
function
|
|
2368
|
+
function la(R) {
|
|
2318
2369
|
for (let y = 0; y < R.length; y++)
|
|
2319
2370
|
ae(R, y) || (R[y] = null);
|
|
2320
2371
|
return R;
|
|
@@ -2322,10 +2373,10 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2322
2373
|
function Se(R) {
|
|
2323
2374
|
const y = h(null);
|
|
2324
2375
|
for (const [T, E] of r(R))
|
|
2325
|
-
ae(R, T) && (Array.isArray(E) ? y[T] =
|
|
2376
|
+
ae(R, T) && (Array.isArray(E) ? y[T] = la(E) : E && typeof E == "object" && E.constructor === Object ? y[T] = Se(E) : y[T] = E);
|
|
2326
2377
|
return y;
|
|
2327
2378
|
}
|
|
2328
|
-
function
|
|
2379
|
+
function Ue(R, y) {
|
|
2329
2380
|
for (; R !== null; ) {
|
|
2330
2381
|
const E = n(R, y);
|
|
2331
2382
|
if (E) {
|
|
@@ -2341,36 +2392,36 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2341
2392
|
}
|
|
2342
2393
|
return T;
|
|
2343
2394
|
}
|
|
2344
|
-
const
|
|
2395
|
+
const pr = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), xt = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Rt = c(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ua = c(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Et = c(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ha = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mr = c(["#text"]), gr = c(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Tt = c(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), vr = c(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), tt = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), da = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), fa = u(/<%[\w\W]*|[\w\W]*%>/gm), pa = u(/\$\{[\w\W]*/gm), ma = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), ga = u(/^aria-[\-\w]+$/), br = u(
|
|
2345
2396
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2346
2397
|
// eslint-disable-line no-useless-escape
|
|
2347
|
-
),
|
|
2398
|
+
), va = u(/^(?:\w+script|data):/i), ba = u(
|
|
2348
2399
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
2349
2400
|
// eslint-disable-line no-control-regex
|
|
2350
|
-
),
|
|
2351
|
-
var
|
|
2401
|
+
), yr = u(/^html$/i), ya = u(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
2402
|
+
var Cr = /* @__PURE__ */ Object.freeze({
|
|
2352
2403
|
__proto__: null,
|
|
2353
|
-
ARIA_ATTR:
|
|
2354
|
-
ATTR_WHITESPACE:
|
|
2355
|
-
CUSTOM_ELEMENT:
|
|
2356
|
-
DATA_ATTR:
|
|
2357
|
-
DOCTYPE_NAME:
|
|
2358
|
-
ERB_EXPR:
|
|
2359
|
-
IS_ALLOWED_URI:
|
|
2360
|
-
IS_SCRIPT_OR_DATA:
|
|
2361
|
-
MUSTACHE_EXPR:
|
|
2362
|
-
TMPLIT_EXPR:
|
|
2404
|
+
ARIA_ATTR: ga,
|
|
2405
|
+
ATTR_WHITESPACE: ba,
|
|
2406
|
+
CUSTOM_ELEMENT: ya,
|
|
2407
|
+
DATA_ATTR: ma,
|
|
2408
|
+
DOCTYPE_NAME: yr,
|
|
2409
|
+
ERB_EXPR: fa,
|
|
2410
|
+
IS_ALLOWED_URI: br,
|
|
2411
|
+
IS_SCRIPT_OR_DATA: va,
|
|
2412
|
+
MUSTACHE_EXPR: da,
|
|
2413
|
+
TMPLIT_EXPR: pa
|
|
2363
2414
|
});
|
|
2364
|
-
const
|
|
2415
|
+
const ze = {
|
|
2365
2416
|
element: 1,
|
|
2366
2417
|
text: 3,
|
|
2367
2418
|
// Deprecated
|
|
2368
2419
|
progressingInstruction: 7,
|
|
2369
2420
|
comment: 8,
|
|
2370
2421
|
document: 9
|
|
2371
|
-
},
|
|
2422
|
+
}, Ca = function() {
|
|
2372
2423
|
return typeof window > "u" ? null : window;
|
|
2373
|
-
},
|
|
2424
|
+
}, Sa = function(y, T) {
|
|
2374
2425
|
if (typeof y != "object" || typeof y.createPolicy != "function")
|
|
2375
2426
|
return null;
|
|
2376
2427
|
let E = null;
|
|
@@ -2389,7 +2440,7 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2389
2440
|
} catch {
|
|
2390
2441
|
return console.warn("TrustedTypes policy " + ie + " could not be created."), null;
|
|
2391
2442
|
}
|
|
2392
|
-
},
|
|
2443
|
+
}, Sr = function() {
|
|
2393
2444
|
return {
|
|
2394
2445
|
afterSanitizeAttributes: [],
|
|
2395
2446
|
afterSanitizeElements: [],
|
|
@@ -2402,10 +2453,10 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2402
2453
|
uponSanitizeShadowNode: []
|
|
2403
2454
|
};
|
|
2404
2455
|
};
|
|
2405
|
-
function
|
|
2406
|
-
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
2407
|
-
const y = (C) =>
|
|
2408
|
-
if (y.version = "3.2.4", y.removed = [], !R || !R.document || R.document.nodeType !==
|
|
2456
|
+
function kr() {
|
|
2457
|
+
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ca();
|
|
2458
|
+
const y = (C) => kr(C);
|
|
2459
|
+
if (y.version = "3.2.4", y.removed = [], !R || !R.document || R.document.nodeType !== ze.document || !R.Element)
|
|
2409
2460
|
return y.isSupported = !1, y;
|
|
2410
2461
|
let {
|
|
2411
2462
|
document: T
|
|
@@ -2414,44 +2465,44 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2414
2465
|
DocumentFragment: ie,
|
|
2415
2466
|
HTMLTemplateElement: xe,
|
|
2416
2467
|
Node: Pt,
|
|
2417
|
-
Element:
|
|
2418
|
-
NodeFilter:
|
|
2419
|
-
NamedNodeMap:
|
|
2420
|
-
HTMLFormElement:
|
|
2421
|
-
DOMParser:
|
|
2422
|
-
trustedTypes:
|
|
2423
|
-
} = R,
|
|
2468
|
+
Element: wr,
|
|
2469
|
+
NodeFilter: je,
|
|
2470
|
+
NamedNodeMap: wa = R.NamedNodeMap || R.MozNamedAttrMap,
|
|
2471
|
+
HTMLFormElement: xa,
|
|
2472
|
+
DOMParser: Ra,
|
|
2473
|
+
trustedTypes: rt
|
|
2474
|
+
} = R, Ve = wr.prototype, Ea = Ue(Ve, "cloneNode"), Ta = Ue(Ve, "remove"), Pa = Ue(Ve, "nextSibling"), $a = Ue(Ve, "childNodes"), st = Ue(Ve, "parentNode");
|
|
2424
2475
|
if (typeof xe == "function") {
|
|
2425
2476
|
const C = T.createElement("template");
|
|
2426
2477
|
C.content && C.content.ownerDocument && (T = C.content.ownerDocument);
|
|
2427
2478
|
}
|
|
2428
|
-
let Y,
|
|
2479
|
+
let Y, Be = "";
|
|
2429
2480
|
const {
|
|
2430
2481
|
implementation: $t,
|
|
2431
|
-
createNodeIterator:
|
|
2432
|
-
createDocumentFragment:
|
|
2433
|
-
getElementsByTagName:
|
|
2482
|
+
createNodeIterator: _a,
|
|
2483
|
+
createDocumentFragment: Ia,
|
|
2484
|
+
getElementsByTagName: Aa
|
|
2434
2485
|
} = T, {
|
|
2435
|
-
importNode:
|
|
2486
|
+
importNode: Ma
|
|
2436
2487
|
} = E;
|
|
2437
|
-
let Z =
|
|
2438
|
-
y.isSupported = typeof r == "function" && typeof
|
|
2488
|
+
let Z = Sr();
|
|
2489
|
+
y.isSupported = typeof r == "function" && typeof st == "function" && $t && $t.createHTMLDocument !== void 0;
|
|
2439
2490
|
const {
|
|
2440
2491
|
MUSTACHE_EXPR: _t,
|
|
2441
2492
|
ERB_EXPR: It,
|
|
2442
2493
|
TMPLIT_EXPR: At,
|
|
2443
|
-
DATA_ATTR:
|
|
2444
|
-
ARIA_ATTR:
|
|
2445
|
-
IS_SCRIPT_OR_DATA:
|
|
2446
|
-
ATTR_WHITESPACE:
|
|
2447
|
-
CUSTOM_ELEMENT:
|
|
2448
|
-
} =
|
|
2494
|
+
DATA_ATTR: La,
|
|
2495
|
+
ARIA_ATTR: Oa,
|
|
2496
|
+
IS_SCRIPT_OR_DATA: Fa,
|
|
2497
|
+
ATTR_WHITESPACE: xr,
|
|
2498
|
+
CUSTOM_ELEMENT: Da
|
|
2499
|
+
} = Cr;
|
|
2449
2500
|
let {
|
|
2450
|
-
IS_ALLOWED_URI:
|
|
2451
|
-
} =
|
|
2452
|
-
const
|
|
2501
|
+
IS_ALLOWED_URI: Rr
|
|
2502
|
+
} = Cr, N = null;
|
|
2503
|
+
const Er = x({}, [...pr, ...xt, ...Rt, ...Et, ...mr]);
|
|
2453
2504
|
let z = null;
|
|
2454
|
-
const
|
|
2505
|
+
const Tr = x({}, [...gr, ...Tt, ...vr, ...tt]);
|
|
2455
2506
|
let O = Object.seal(h(null, {
|
|
2456
2507
|
tagNameCheck: {
|
|
2457
2508
|
writable: !0,
|
|
@@ -2471,55 +2522,55 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2471
2522
|
enumerable: !0,
|
|
2472
2523
|
value: !1
|
|
2473
2524
|
}
|
|
2474
|
-
})),
|
|
2475
|
-
const
|
|
2476
|
-
let Ht = !0,
|
|
2477
|
-
const
|
|
2478
|
-
let
|
|
2479
|
-
const
|
|
2525
|
+
})), We = null, Mt = null, Pr = !0, Lt = !0, $r = !1, _r = !0, Re = !1, Ot = !0, ke = !1, Ft = !1, Dt = !1, Ee = !1, at = !1, nt = !1, Ir = !0, Ar = !1;
|
|
2526
|
+
const Ha = "user-content-";
|
|
2527
|
+
let Ht = !0, Ge = !1, Te = {}, Pe = null;
|
|
2528
|
+
const Mr = x({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
2529
|
+
let Lr = null;
|
|
2530
|
+
const Or = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2480
2531
|
let Nt = null;
|
|
2481
|
-
const
|
|
2532
|
+
const Fr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ot = "http://www.w3.org/1998/Math/MathML", ct = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
|
|
2482
2533
|
let $e = le, Ut = !1, zt = null;
|
|
2483
|
-
const
|
|
2484
|
-
let
|
|
2485
|
-
const
|
|
2486
|
-
let
|
|
2487
|
-
const
|
|
2534
|
+
const Na = x({}, [ot, ct, le], I);
|
|
2535
|
+
let it = x({}, ["mi", "mo", "mn", "ms", "mtext"]), lt = x({}, ["annotation-xml"]);
|
|
2536
|
+
const Ua = x({}, ["title", "style", "font", "a", "script"]);
|
|
2537
|
+
let qe = null;
|
|
2538
|
+
const za = ["application/xhtml+xml", "text/html"], ja = "text/html";
|
|
2488
2539
|
let U = null, _e = null;
|
|
2489
|
-
const
|
|
2540
|
+
const Va = T.createElement("form"), Dr = function(d) {
|
|
2490
2541
|
return d instanceof RegExp || d instanceof Function;
|
|
2491
2542
|
}, jt = function() {
|
|
2492
2543
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2493
2544
|
if (!(_e && _e === d)) {
|
|
2494
|
-
if ((!d || typeof d != "object") && (d = {}), d = Se(d),
|
|
2495
|
-
|
|
2545
|
+
if ((!d || typeof d != "object") && (d = {}), d = Se(d), qe = // eslint-disable-next-line unicorn/prefer-includes
|
|
2546
|
+
za.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? ja : d.PARSER_MEDIA_TYPE, U = qe === "application/xhtml+xml" ? I : H, N = ae(d, "ALLOWED_TAGS") ? x({}, d.ALLOWED_TAGS, U) : Er, z = ae(d, "ALLOWED_ATTR") ? x({}, d.ALLOWED_ATTR, U) : Tr, zt = ae(d, "ALLOWED_NAMESPACES") ? x({}, d.ALLOWED_NAMESPACES, I) : Na, Nt = ae(d, "ADD_URI_SAFE_ATTR") ? x(Se(Fr), d.ADD_URI_SAFE_ATTR, U) : Fr, Lr = ae(d, "ADD_DATA_URI_TAGS") ? x(Se(Or), d.ADD_DATA_URI_TAGS, U) : Or, Pe = ae(d, "FORBID_CONTENTS") ? x({}, d.FORBID_CONTENTS, U) : Mr, We = ae(d, "FORBID_TAGS") ? x({}, d.FORBID_TAGS, U) : {}, Mt = ae(d, "FORBID_ATTR") ? x({}, d.FORBID_ATTR, U) : {}, Te = ae(d, "USE_PROFILES") ? d.USE_PROFILES : !1, Pr = d.ALLOW_ARIA_ATTR !== !1, Lt = d.ALLOW_DATA_ATTR !== !1, $r = d.ALLOW_UNKNOWN_PROTOCOLS || !1, _r = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Re = d.SAFE_FOR_TEMPLATES || !1, Ot = d.SAFE_FOR_XML !== !1, ke = d.WHOLE_DOCUMENT || !1, Ee = d.RETURN_DOM || !1, at = d.RETURN_DOM_FRAGMENT || !1, nt = d.RETURN_TRUSTED_TYPE || !1, Dt = d.FORCE_BODY || !1, Ir = d.SANITIZE_DOM !== !1, Ar = d.SANITIZE_NAMED_PROPS || !1, Ht = d.KEEP_CONTENT !== !1, Ge = d.IN_PLACE || !1, Rr = d.ALLOWED_URI_REGEXP || br, $e = d.NAMESPACE || le, it = d.MATHML_TEXT_INTEGRATION_POINTS || it, lt = d.HTML_INTEGRATION_POINTS || lt, O = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && Dr(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (O.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && Dr(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (O.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (O.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Re && (Lt = !1), at && (Ee = !0), Te && (N = x({}, mr), z = [], Te.html === !0 && (x(N, pr), x(z, gr)), Te.svg === !0 && (x(N, xt), x(z, Tt), x(z, tt)), Te.svgFilters === !0 && (x(N, Rt), x(z, Tt), x(z, tt)), Te.mathMl === !0 && (x(N, Et), x(z, vr), x(z, tt))), d.ADD_TAGS && (N === Er && (N = Se(N)), x(N, d.ADD_TAGS, U)), d.ADD_ATTR && (z === Tr && (z = Se(z)), x(z, d.ADD_ATTR, U)), d.ADD_URI_SAFE_ATTR && x(Nt, d.ADD_URI_SAFE_ATTR, U), d.FORBID_CONTENTS && (Pe === Mr && (Pe = Se(Pe)), x(Pe, d.FORBID_CONTENTS, U)), Ht && (N["#text"] = !0), ke && x(N, ["html", "head", "body"]), N.table && (x(N, ["tbody"]), delete We.tbody), d.TRUSTED_TYPES_POLICY) {
|
|
2496
2547
|
if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2497
|
-
throw
|
|
2548
|
+
throw Ne('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2498
2549
|
if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
2499
|
-
throw
|
|
2500
|
-
Y = d.TRUSTED_TYPES_POLICY,
|
|
2550
|
+
throw Ne('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2551
|
+
Y = d.TRUSTED_TYPES_POLICY, Be = Y.createHTML("");
|
|
2501
2552
|
} else
|
|
2502
|
-
Y === void 0 && (Y =
|
|
2553
|
+
Y === void 0 && (Y = Sa(rt, V)), Y !== null && typeof Be == "string" && (Be = Y.createHTML(""));
|
|
2503
2554
|
c && c(d), _e = d;
|
|
2504
2555
|
}
|
|
2505
|
-
},
|
|
2506
|
-
let m =
|
|
2556
|
+
}, Hr = x({}, [...xt, ...Rt, ...ua]), Nr = x({}, [...Et, ...ha]), Ba = function(d) {
|
|
2557
|
+
let m = st(d);
|
|
2507
2558
|
(!m || !m.tagName) && (m = {
|
|
2508
2559
|
namespaceURI: $e,
|
|
2509
2560
|
tagName: "template"
|
|
2510
2561
|
});
|
|
2511
2562
|
const v = H(d.tagName), M = H(m.tagName);
|
|
2512
|
-
return zt[d.namespaceURI] ? d.namespaceURI ===
|
|
2563
|
+
return zt[d.namespaceURI] ? d.namespaceURI === ct ? m.namespaceURI === le ? v === "svg" : m.namespaceURI === ot ? v === "svg" && (M === "annotation-xml" || it[M]) : !!Hr[v] : d.namespaceURI === ot ? m.namespaceURI === le ? v === "math" : m.namespaceURI === ct ? v === "math" && lt[M] : !!Nr[v] : d.namespaceURI === le ? m.namespaceURI === ct && !lt[M] || m.namespaceURI === ot && !it[M] ? !1 : !Nr[v] && (Ua[v] || !Hr[v]) : !!(qe === "application/xhtml+xml" && zt[d.namespaceURI]) : !1;
|
|
2513
2564
|
}, oe = function(d) {
|
|
2514
2565
|
P(y.removed, {
|
|
2515
2566
|
element: d
|
|
2516
2567
|
});
|
|
2517
2568
|
try {
|
|
2518
|
-
|
|
2569
|
+
st(d).removeChild(d);
|
|
2519
2570
|
} catch {
|
|
2520
|
-
|
|
2571
|
+
Ta(d);
|
|
2521
2572
|
}
|
|
2522
|
-
},
|
|
2573
|
+
}, ut = function(d, m) {
|
|
2523
2574
|
try {
|
|
2524
2575
|
P(y.removed, {
|
|
2525
2576
|
attribute: m.getAttributeNode(d),
|
|
@@ -2532,7 +2583,7 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2532
2583
|
});
|
|
2533
2584
|
}
|
|
2534
2585
|
if (m.removeAttribute(d), d === "is")
|
|
2535
|
-
if (Ee ||
|
|
2586
|
+
if (Ee || at)
|
|
2536
2587
|
try {
|
|
2537
2588
|
oe(m);
|
|
2538
2589
|
} catch {
|
|
@@ -2542,41 +2593,41 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2542
2593
|
m.setAttribute(d, "");
|
|
2543
2594
|
} catch {
|
|
2544
2595
|
}
|
|
2545
|
-
},
|
|
2596
|
+
}, Ur = function(d) {
|
|
2546
2597
|
let m = null, v = null;
|
|
2547
2598
|
if (Dt)
|
|
2548
2599
|
d = "<remove></remove>" + d;
|
|
2549
2600
|
else {
|
|
2550
|
-
const j =
|
|
2601
|
+
const j = De(d, /^[\r\n\t ]+/);
|
|
2551
2602
|
v = j && j[0];
|
|
2552
2603
|
}
|
|
2553
|
-
|
|
2604
|
+
qe === "application/xhtml+xml" && $e === le && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
|
|
2554
2605
|
const M = Y ? Y.createHTML(d) : d;
|
|
2555
2606
|
if ($e === le)
|
|
2556
2607
|
try {
|
|
2557
|
-
m = new
|
|
2608
|
+
m = new Ra().parseFromString(M, qe);
|
|
2558
2609
|
} catch {
|
|
2559
2610
|
}
|
|
2560
2611
|
if (!m || !m.documentElement) {
|
|
2561
2612
|
m = $t.createDocument($e, "template", null);
|
|
2562
2613
|
try {
|
|
2563
|
-
m.documentElement.innerHTML = Ut ?
|
|
2614
|
+
m.documentElement.innerHTML = Ut ? Be : M;
|
|
2564
2615
|
} catch {
|
|
2565
2616
|
}
|
|
2566
2617
|
}
|
|
2567
2618
|
const B = m.body || m.documentElement;
|
|
2568
|
-
return d && v && B.insertBefore(T.createTextNode(v), B.childNodes[0] || null), $e === le ?
|
|
2569
|
-
},
|
|
2570
|
-
return
|
|
2619
|
+
return d && v && B.insertBefore(T.createTextNode(v), B.childNodes[0] || null), $e === le ? Aa.call(m, ke ? "html" : "body")[0] : ke ? m.documentElement : B;
|
|
2620
|
+
}, zr = function(d) {
|
|
2621
|
+
return _a.call(
|
|
2571
2622
|
d.ownerDocument || d,
|
|
2572
2623
|
d,
|
|
2573
2624
|
// eslint-disable-next-line no-bitwise
|
|
2574
|
-
|
|
2625
|
+
je.SHOW_ELEMENT | je.SHOW_COMMENT | je.SHOW_TEXT | je.SHOW_PROCESSING_INSTRUCTION | je.SHOW_CDATA_SECTION,
|
|
2575
2626
|
null
|
|
2576
2627
|
);
|
|
2577
2628
|
}, Vt = function(d) {
|
|
2578
|
-
return d instanceof
|
|
2579
|
-
},
|
|
2629
|
+
return d instanceof xa && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof wa) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
|
|
2630
|
+
}, jr = function(d) {
|
|
2580
2631
|
return typeof Pt == "function" && d instanceof Pt;
|
|
2581
2632
|
};
|
|
2582
2633
|
function ue(C, d, m) {
|
|
@@ -2584,7 +2635,7 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2584
2635
|
v.call(y, d, m, _e);
|
|
2585
2636
|
});
|
|
2586
2637
|
}
|
|
2587
|
-
const
|
|
2638
|
+
const Vr = function(d) {
|
|
2588
2639
|
let m = null;
|
|
2589
2640
|
if (ue(Z.beforeSanitizeElements, d, null), Vt(d))
|
|
2590
2641
|
return oe(d), !0;
|
|
@@ -2592,46 +2643,46 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2592
2643
|
if (ue(Z.uponSanitizeElement, d, {
|
|
2593
2644
|
tagName: v,
|
|
2594
2645
|
allowedTags: N
|
|
2595
|
-
}), d.hasChildNodes() && !
|
|
2646
|
+
}), d.hasChildNodes() && !jr(d.firstElementChild) && G(/<[/\w]/g, d.innerHTML) && G(/<[/\w]/g, d.textContent) || d.nodeType === ze.progressingInstruction || Ot && d.nodeType === ze.comment && G(/<[/\w]/g, d.data))
|
|
2596
2647
|
return oe(d), !0;
|
|
2597
|
-
if (!N[v] ||
|
|
2598
|
-
if (!
|
|
2648
|
+
if (!N[v] || We[v]) {
|
|
2649
|
+
if (!We[v] && Wr(v) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, v) || O.tagNameCheck instanceof Function && O.tagNameCheck(v)))
|
|
2599
2650
|
return !1;
|
|
2600
2651
|
if (Ht && !Pe[v]) {
|
|
2601
|
-
const M =
|
|
2652
|
+
const M = st(d) || d.parentNode, B = $a(d) || d.childNodes;
|
|
2602
2653
|
if (B && M) {
|
|
2603
2654
|
const j = B.length;
|
|
2604
2655
|
for (let J = j - 1; J >= 0; --J) {
|
|
2605
|
-
const ce =
|
|
2606
|
-
ce.__removalCount = (d.__removalCount || 0) + 1, M.insertBefore(ce,
|
|
2656
|
+
const ce = Ea(B[J], !0);
|
|
2657
|
+
ce.__removalCount = (d.__removalCount || 0) + 1, M.insertBefore(ce, Pa(d));
|
|
2607
2658
|
}
|
|
2608
2659
|
}
|
|
2609
2660
|
}
|
|
2610
2661
|
return oe(d), !0;
|
|
2611
2662
|
}
|
|
2612
|
-
return d instanceof
|
|
2613
|
-
m =
|
|
2663
|
+
return d instanceof wr && !Ba(d) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, d.innerHTML) ? (oe(d), !0) : (Re && d.nodeType === ze.text && (m = d.textContent, g([_t, It, At], (M) => {
|
|
2664
|
+
m = He(m, M, " ");
|
|
2614
2665
|
}), d.textContent !== m && (P(y.removed, {
|
|
2615
2666
|
element: d.cloneNode()
|
|
2616
2667
|
}), d.textContent = m)), ue(Z.afterSanitizeElements, d, null), !1);
|
|
2617
|
-
},
|
|
2618
|
-
if (
|
|
2668
|
+
}, Br = function(d, m, v) {
|
|
2669
|
+
if (Ir && (m === "id" || m === "name") && (v in T || v in Va))
|
|
2619
2670
|
return !1;
|
|
2620
|
-
if (!(Lt && !Mt[m] && G(
|
|
2621
|
-
if (!(
|
|
2671
|
+
if (!(Lt && !Mt[m] && G(La, m))) {
|
|
2672
|
+
if (!(Pr && G(Oa, m))) {
|
|
2622
2673
|
if (!z[m] || Mt[m]) {
|
|
2623
2674
|
if (
|
|
2624
2675
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2625
2676
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2626
2677
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2627
|
-
!(
|
|
2678
|
+
!(Wr(d) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, d) || O.tagNameCheck instanceof Function && O.tagNameCheck(d)) && (O.attributeNameCheck instanceof RegExp && G(O.attributeNameCheck, m) || O.attributeNameCheck instanceof Function && O.attributeNameCheck(m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2628
2679
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2629
2680
|
m === "is" && O.allowCustomizedBuiltInElements && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, v) || O.tagNameCheck instanceof Function && O.tagNameCheck(v)))
|
|
2630
2681
|
) return !1;
|
|
2631
2682
|
} else if (!Nt[m]) {
|
|
2632
|
-
if (!G(
|
|
2633
|
-
if (!((m === "src" || m === "xlink:href" || m === "href") && d !== "script" &&
|
|
2634
|
-
if (!(
|
|
2683
|
+
if (!G(Rr, He(v, xr, ""))) {
|
|
2684
|
+
if (!((m === "src" || m === "xlink:href" || m === "href") && d !== "script" && oa(v, "data:") === 0 && Lr[d])) {
|
|
2685
|
+
if (!($r && !G(Fa, He(v, xr, "")))) {
|
|
2635
2686
|
if (v)
|
|
2636
2687
|
return !1;
|
|
2637
2688
|
}
|
|
@@ -2641,9 +2692,9 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2641
2692
|
}
|
|
2642
2693
|
}
|
|
2643
2694
|
return !0;
|
|
2644
|
-
}, Br = function(d) {
|
|
2645
|
-
return d !== "annotation-xml" && Fe(d, Fa);
|
|
2646
2695
|
}, Wr = function(d) {
|
|
2696
|
+
return d !== "annotation-xml" && De(d, Da);
|
|
2697
|
+
}, Gr = function(d) {
|
|
2647
2698
|
ue(Z.beforeSanitizeAttributes, d, null);
|
|
2648
2699
|
const {
|
|
2649
2700
|
attributes: m
|
|
@@ -2663,25 +2714,25 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2663
2714
|
name: j,
|
|
2664
2715
|
namespaceURI: J,
|
|
2665
2716
|
value: ce
|
|
2666
|
-
} = B,
|
|
2667
|
-
let Q = j === "value" ? ce :
|
|
2668
|
-
if (v.attrName =
|
|
2669
|
-
|
|
2717
|
+
} = B, Ye = U(j);
|
|
2718
|
+
let Q = j === "value" ? ce : ca(ce);
|
|
2719
|
+
if (v.attrName = Ye, v.attrValue = Q, v.keepAttr = !0, v.forceKeepAttr = void 0, ue(Z.uponSanitizeAttribute, d, v), Q = v.attrValue, Ar && (Ye === "id" || Ye === "name") && (ut(j, d), Q = Ha + Q), Ot && G(/((--!?|])>)|<\/(style|title)/i, Q)) {
|
|
2720
|
+
ut(j, d);
|
|
2670
2721
|
continue;
|
|
2671
2722
|
}
|
|
2672
|
-
if (v.forceKeepAttr || (
|
|
2723
|
+
if (v.forceKeepAttr || (ut(j, d), !v.keepAttr))
|
|
2673
2724
|
continue;
|
|
2674
|
-
if (
|
|
2675
|
-
|
|
2725
|
+
if (!_r && G(/\/>/i, Q)) {
|
|
2726
|
+
ut(j, d);
|
|
2676
2727
|
continue;
|
|
2677
2728
|
}
|
|
2678
|
-
Re && g([_t, It, At], (
|
|
2679
|
-
Q =
|
|
2729
|
+
Re && g([_t, It, At], (Yr) => {
|
|
2730
|
+
Q = He(Q, Yr, " ");
|
|
2680
2731
|
});
|
|
2681
|
-
const
|
|
2682
|
-
if (
|
|
2683
|
-
if (Y && typeof
|
|
2684
|
-
switch (
|
|
2732
|
+
const qr = U(d.nodeName);
|
|
2733
|
+
if (Br(qr, Ye, Q)) {
|
|
2734
|
+
if (Y && typeof rt == "object" && typeof rt.getAttributeType == "function" && !J)
|
|
2735
|
+
switch (rt.getAttributeType(qr, Ye)) {
|
|
2685
2736
|
case "TrustedHTML": {
|
|
2686
2737
|
Q = Y.createHTML(Q);
|
|
2687
2738
|
break;
|
|
@@ -2698,57 +2749,57 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2698
2749
|
}
|
|
2699
2750
|
}
|
|
2700
2751
|
ue(Z.afterSanitizeAttributes, d, null);
|
|
2701
|
-
},
|
|
2752
|
+
}, Wa = function C(d) {
|
|
2702
2753
|
let m = null;
|
|
2703
|
-
const v =
|
|
2754
|
+
const v = zr(d);
|
|
2704
2755
|
for (ue(Z.beforeSanitizeShadowDOM, d, null); m = v.nextNode(); )
|
|
2705
|
-
ue(Z.uponSanitizeShadowNode, m, null),
|
|
2756
|
+
ue(Z.uponSanitizeShadowNode, m, null), Vr(m), Gr(m), m.content instanceof ie && C(m.content);
|
|
2706
2757
|
ue(Z.afterSanitizeShadowDOM, d, null);
|
|
2707
2758
|
};
|
|
2708
2759
|
return y.sanitize = function(C) {
|
|
2709
2760
|
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, v = null, M = null, B = null;
|
|
2710
|
-
if (Ut = !C, Ut && (C = "<!-->"), typeof C != "string" && !
|
|
2761
|
+
if (Ut = !C, Ut && (C = "<!-->"), typeof C != "string" && !jr(C))
|
|
2711
2762
|
if (typeof C.toString == "function") {
|
|
2712
2763
|
if (C = C.toString(), typeof C != "string")
|
|
2713
|
-
throw
|
|
2764
|
+
throw Ne("dirty is not a string, aborting");
|
|
2714
2765
|
} else
|
|
2715
|
-
throw
|
|
2766
|
+
throw Ne("toString is not a function");
|
|
2716
2767
|
if (!y.isSupported)
|
|
2717
2768
|
return C;
|
|
2718
|
-
if (Ft || jt(d), y.removed = [], typeof C == "string" && (
|
|
2769
|
+
if (Ft || jt(d), y.removed = [], typeof C == "string" && (Ge = !1), Ge) {
|
|
2719
2770
|
if (C.nodeName) {
|
|
2720
2771
|
const ce = U(C.nodeName);
|
|
2721
|
-
if (!N[ce] ||
|
|
2722
|
-
throw
|
|
2772
|
+
if (!N[ce] || We[ce])
|
|
2773
|
+
throw Ne("root node is forbidden and cannot be sanitized in-place");
|
|
2723
2774
|
}
|
|
2724
2775
|
} else if (C instanceof Pt)
|
|
2725
|
-
m =
|
|
2776
|
+
m = Ur("<!---->"), v = m.ownerDocument.importNode(C, !0), v.nodeType === ze.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? m = v : m.appendChild(v);
|
|
2726
2777
|
else {
|
|
2727
2778
|
if (!Ee && !Re && !ke && // eslint-disable-next-line unicorn/prefer-includes
|
|
2728
2779
|
C.indexOf("<") === -1)
|
|
2729
|
-
return Y &&
|
|
2730
|
-
if (m =
|
|
2731
|
-
return Ee ? null :
|
|
2780
|
+
return Y && nt ? Y.createHTML(C) : C;
|
|
2781
|
+
if (m = Ur(C), !m)
|
|
2782
|
+
return Ee ? null : nt ? Be : "";
|
|
2732
2783
|
}
|
|
2733
2784
|
m && Dt && oe(m.firstChild);
|
|
2734
|
-
const j =
|
|
2785
|
+
const j = zr(Ge ? C : m);
|
|
2735
2786
|
for (; M = j.nextNode(); )
|
|
2736
|
-
|
|
2737
|
-
if (
|
|
2787
|
+
Vr(M), Gr(M), M.content instanceof ie && Wa(M.content);
|
|
2788
|
+
if (Ge)
|
|
2738
2789
|
return C;
|
|
2739
2790
|
if (Ee) {
|
|
2740
|
-
if (
|
|
2741
|
-
for (B =
|
|
2791
|
+
if (at)
|
|
2792
|
+
for (B = Ia.call(m.ownerDocument); m.firstChild; )
|
|
2742
2793
|
B.appendChild(m.firstChild);
|
|
2743
2794
|
else
|
|
2744
2795
|
B = m;
|
|
2745
|
-
return (z.shadowroot || z.shadowrootmode) && (B =
|
|
2796
|
+
return (z.shadowroot || z.shadowrootmode) && (B = Ma.call(E, B, !0)), B;
|
|
2746
2797
|
}
|
|
2747
2798
|
let J = ke ? m.outerHTML : m.innerHTML;
|
|
2748
|
-
return ke && N["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && G(
|
|
2799
|
+
return ke && N["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && G(yr, m.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
|
|
2749
2800
|
` + J), Re && g([_t, It, At], (ce) => {
|
|
2750
|
-
J =
|
|
2751
|
-
}), Y &&
|
|
2801
|
+
J = He(J, ce, " ");
|
|
2802
|
+
}), Y && nt ? Y.createHTML(J) : J;
|
|
2752
2803
|
}, y.setConfig = function() {
|
|
2753
2804
|
let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2754
2805
|
jt(C), Ft = !0;
|
|
@@ -2757,7 +2808,7 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2757
2808
|
}, y.isValidAttribute = function(C, d, m) {
|
|
2758
2809
|
_e || jt({});
|
|
2759
2810
|
const v = U(C), M = U(d);
|
|
2760
|
-
return
|
|
2811
|
+
return Br(v, M, m);
|
|
2761
2812
|
}, y.addHook = function(C, d) {
|
|
2762
2813
|
typeof d == "function" && P(Z[C], d);
|
|
2763
2814
|
}, y.removeHook = function(C, d) {
|
|
@@ -2769,14 +2820,14 @@ var Oo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2769
2820
|
}, y.removeHooks = function(C) {
|
|
2770
2821
|
Z[C] = [];
|
|
2771
2822
|
}, y.removeAllHooks = function() {
|
|
2772
|
-
Z =
|
|
2823
|
+
Z = Sr();
|
|
2773
2824
|
}, y;
|
|
2774
2825
|
}
|
|
2775
|
-
var
|
|
2776
|
-
return
|
|
2826
|
+
var ka = kr();
|
|
2827
|
+
return ka;
|
|
2777
2828
|
});
|
|
2778
|
-
})(
|
|
2779
|
-
const Fo =
|
|
2829
|
+
})(Ws);
|
|
2830
|
+
const Fo = Ws.exports, et = (e, ...t) => {
|
|
2780
2831
|
let r = e[0];
|
|
2781
2832
|
for (let s = 0; s < t.length; s++)
|
|
2782
2833
|
r += Fo.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
|
|
@@ -2828,9 +2879,12 @@ const Ho = /* @__PURE__ */ D(class extends F {
|
|
|
2828
2879
|
(r = this.storeUnsubscribe) == null || r.call(this), (s = this.intersectionObserver) == null || s.disconnect(), this.isComponentConnected = !1, clearTimeout(this.adContainerRenderedTimeout);
|
|
2829
2880
|
}
|
|
2830
2881
|
renderADMAd() {
|
|
2882
|
+
var a, o, n, c;
|
|
2831
2883
|
const r = this.adClientResponseItem;
|
|
2832
|
-
if (r.admAd)
|
|
2833
|
-
return
|
|
2884
|
+
if (!r.admAd)
|
|
2885
|
+
return;
|
|
2886
|
+
let s = "<p>Ad Marketplace Ad Placeholder</p>";
|
|
2887
|
+
return (o = (a = this.core) == null ? void 0 : a.config) != null && o.admAdTemplate && (s = (c = (n = this.core) == null ? void 0 : n.config) == null ? void 0 : c.admAdTemplate(r.admAd, { html: et })), l("div", { class: "searchcraft-ad searchcraft-adm-ad", "data-searchcraft-ad-container-id": this.adContainerId, id: `searchcraft-adm-ad-${this.adContainerId}`, innerHTML: s });
|
|
2834
2888
|
}
|
|
2835
2889
|
renderCustomAd() {
|
|
2836
2890
|
var o, n;
|
|
@@ -2839,12 +2893,12 @@ const Ho = /* @__PURE__ */ D(class extends F {
|
|
|
2839
2893
|
return r && (a = r({
|
|
2840
2894
|
searchTerm: this.searchTerm || "",
|
|
2841
2895
|
adContainerId: this.adContainerId
|
|
2842
|
-
}, { html:
|
|
2896
|
+
}, { html: et })), l("div", { class: "searchcraft-ad searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
|
|
2843
2897
|
}
|
|
2844
2898
|
renderNativoAd() {
|
|
2845
2899
|
var s;
|
|
2846
2900
|
const r = ((s = this.core) == null ? void 0 : s.config.nativoAdClassName) || "ntv-item";
|
|
2847
|
-
return
|
|
2901
|
+
return l("div", { id: `searchcraft-native-ad-${this.adContainerId}`, class: re("searchcraft-ad", r), "data-searchcraft-ad-container-id": this.adContainerId });
|
|
2848
2902
|
}
|
|
2849
2903
|
render() {
|
|
2850
2904
|
var r, s;
|
|
@@ -2886,44 +2940,7 @@ function St() {
|
|
|
2886
2940
|
}
|
|
2887
2941
|
});
|
|
2888
2942
|
}
|
|
2889
|
-
const No = St
|
|
2890
|
-
var Bs = { exports: {} };
|
|
2891
|
-
/*!
|
|
2892
|
-
Copyright (c) 2018 Jed Watson.
|
|
2893
|
-
Licensed under the MIT License (MIT), see
|
|
2894
|
-
http://jedwatson.github.io/classnames
|
|
2895
|
-
*/
|
|
2896
|
-
(function(e) {
|
|
2897
|
-
(function() {
|
|
2898
|
-
var t = {}.hasOwnProperty;
|
|
2899
|
-
function r() {
|
|
2900
|
-
for (var o = "", n = 0; n < arguments.length; n++) {
|
|
2901
|
-
var c = arguments[n];
|
|
2902
|
-
c && (o = a(o, s(c)));
|
|
2903
|
-
}
|
|
2904
|
-
return o;
|
|
2905
|
-
}
|
|
2906
|
-
function s(o) {
|
|
2907
|
-
if (typeof o == "string" || typeof o == "number")
|
|
2908
|
-
return o;
|
|
2909
|
-
if (typeof o != "object")
|
|
2910
|
-
return "";
|
|
2911
|
-
if (Array.isArray(o))
|
|
2912
|
-
return r.apply(null, o);
|
|
2913
|
-
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
2914
|
-
return o.toString();
|
|
2915
|
-
var n = "";
|
|
2916
|
-
for (var c in o)
|
|
2917
|
-
t.call(o, c) && o[c] && (n = a(n, c));
|
|
2918
|
-
return n;
|
|
2919
|
-
}
|
|
2920
|
-
function a(o, n) {
|
|
2921
|
-
return n ? o ? o + " " + n : o + n : o;
|
|
2922
|
-
}
|
|
2923
|
-
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
2924
|
-
})();
|
|
2925
|
-
})(Bs);
|
|
2926
|
-
const se = Bs.exports, Uo = /* @__PURE__ */ D(class extends F {
|
|
2943
|
+
const No = St, Uo = /* @__PURE__ */ D(class extends F {
|
|
2927
2944
|
constructor() {
|
|
2928
2945
|
super();
|
|
2929
2946
|
/**
|
|
@@ -2964,11 +2981,11 @@ const se = Bs.exports, Uo = /* @__PURE__ */ D(class extends F {
|
|
|
2964
2981
|
this.__registerHost(), this.buttonClick = be(this, "buttonClick");
|
|
2965
2982
|
}
|
|
2966
2983
|
render() {
|
|
2967
|
-
return
|
|
2984
|
+
return l("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: re("searchcraft-button", {
|
|
2968
2985
|
"searchcraft-button-primary": this.hierarchy === "primary",
|
|
2969
2986
|
"searchcraft-button-tertiary": this.hierarchy === "tertiary",
|
|
2970
2987
|
"searchcraft-button-disabled": this.disabled
|
|
2971
|
-
}), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon :
|
|
2988
|
+
}), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : l(Dn, null, this.iconPosition === "left" && this.icon, l("span", null, this.label), this.iconPosition === "right" && this.icon));
|
|
2972
2989
|
}
|
|
2973
2990
|
}, [0, "searchcraft-button", {
|
|
2974
2991
|
hierarchy: [1],
|
|
@@ -2995,7 +3012,7 @@ const zo = kt, jo = /* @__PURE__ */ D(class extends F {
|
|
|
2995
3012
|
super(), this.__registerHost();
|
|
2996
3013
|
}
|
|
2997
3014
|
render() {
|
|
2998
|
-
return
|
|
3015
|
+
return l("div", { key: "d42f7abf8dfb2620622b8012d868d32f04b2f354", class: "searchcraft-error-message" }, l("slot", { key: "75a7811576ea8afe80a7ae739f5cf2d411f976df" }, "Search term is required."));
|
|
2999
3016
|
}
|
|
3000
3017
|
}, [4, "searchcraft-error-message"]);
|
|
3001
3018
|
function wt() {
|
|
@@ -3010,16 +3027,16 @@ function wt() {
|
|
|
3010
3027
|
});
|
|
3011
3028
|
}
|
|
3012
3029
|
const Vo = wt;
|
|
3013
|
-
function
|
|
3030
|
+
function Gs(e, t) {
|
|
3014
3031
|
const r = { ...e };
|
|
3015
3032
|
for (const s in t)
|
|
3016
|
-
t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] =
|
|
3033
|
+
t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Gs(e[s], t[s]) : r[s] = t[s]);
|
|
3017
3034
|
return r;
|
|
3018
3035
|
}
|
|
3019
3036
|
function Bo(e) {
|
|
3020
3037
|
return e.filter((t, r, s) => !s.some((a, o) => o !== r && a.includes(t)));
|
|
3021
3038
|
}
|
|
3022
|
-
function
|
|
3039
|
+
function gs(e) {
|
|
3023
3040
|
const t = {}, r = (s) => {
|
|
3024
3041
|
var a;
|
|
3025
3042
|
t[s.path] = {
|
|
@@ -3053,13 +3070,13 @@ function Wo(e) {
|
|
|
3053
3070
|
});
|
|
3054
3071
|
}), t;
|
|
3055
3072
|
}
|
|
3056
|
-
function
|
|
3073
|
+
function qs(e) {
|
|
3057
3074
|
const t = {
|
|
3058
3075
|
count: e.count,
|
|
3059
3076
|
path: e.path,
|
|
3060
3077
|
children: []
|
|
3061
3078
|
};
|
|
3062
|
-
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) =>
|
|
3079
|
+
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => qs(r))), t;
|
|
3063
3080
|
}
|
|
3064
3081
|
function Go(e, t) {
|
|
3065
3082
|
const r = Object.keys(e), s = Object.keys(t), a = new Set(s.filter((n) => n.split("/").length > 2).map((n) => n.substring(0, n.lastIndexOf("/"))));
|
|
@@ -3074,7 +3091,7 @@ function qo(e, t, r) {
|
|
|
3074
3091
|
count: 0,
|
|
3075
3092
|
path: "/",
|
|
3076
3093
|
children: a
|
|
3077
|
-
}, c =
|
|
3094
|
+
}, c = gs(o), u = gs(n), h = Go(c, u), i = Gs(h, u), p = Wo(i), g = qs(p);
|
|
3078
3095
|
return {
|
|
3079
3096
|
[e]: g.children
|
|
3080
3097
|
};
|
|
@@ -3113,11 +3130,11 @@ const Yo = /* @__PURE__ */ D(class extends F {
|
|
|
3113
3130
|
handleStateUpdate(r) {
|
|
3114
3131
|
const s = r.searchResponseFacetPrime, a = r.searchResponseTimeTaken;
|
|
3115
3132
|
if (this.fieldName) {
|
|
3116
|
-
if (
|
|
3133
|
+
if (r.searchTerm || (this.facetRoot = void 0), (r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && s) {
|
|
3117
3134
|
this.facetRoot = void 0;
|
|
3118
3135
|
const o = s.find((n) => this.fieldName === Object.keys(n)[0]);
|
|
3119
3136
|
this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = qo(this.fieldName, this.baseFacetRoot, o));
|
|
3120
|
-
}
|
|
3137
|
+
} else !s && Object.keys(this.selectedPaths).length === 0 && (this.facetRoot = void 0);
|
|
3121
3138
|
this.lastSearchTerm = r.searchTerm, this.lastSearchMode = r.searchMode, this.lastSortType = r.sortType, this.lastTimeTaken = a;
|
|
3122
3139
|
}
|
|
3123
3140
|
}
|
|
@@ -3149,14 +3166,14 @@ const Yo = /* @__PURE__ */ D(class extends F {
|
|
|
3149
3166
|
if (!this.fieldName)
|
|
3150
3167
|
return;
|
|
3151
3168
|
const r = (s = this.facetRoot) == null ? void 0 : s[this.fieldName];
|
|
3152
|
-
return
|
|
3169
|
+
return l("div", { class: "searchcraft-facet-list" }, !r && l("p", { class: "searchcraft-facet-list-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((a) => {
|
|
3153
3170
|
var n;
|
|
3154
3171
|
const o = a.children ? (n = a.children) == null ? void 0 : n.some((c) => this.selectedPaths[c.path]) : !1;
|
|
3155
|
-
return
|
|
3172
|
+
return l("div", { key: a.path, class: "searchcraft-facet-list-item" }, l("label", { class: "searchcraft-facet-list-checkbox-label" }, l("div", { class: "searchcraft-facet-list-checkbox-input-wrapper" }, l("input", { class: "searchcraft-facet-list-checkbox-input", checked: this.selectedPaths[a.path], onChange: (c) => this.handleCheckboxChange(a.path), type: "checkbox" }), o ? l("div", { class: "searchcraft-facet-list-checkbox-input-dash-icon" }, l("svg", { width: "14", height: "3", viewBox: "0 0 14 3", fill: "none" }, l("title", null, "Checkbox dash"), l("line", { x1: "1.5", y1: "1.5", x2: "12.5", y2: "1.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" }))) : l("div", { class: "searchcraft-facet-list-checkbox-input-check-icon" }, l("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, l("title", null, "Checkbox check"), l("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.formatLabel(a)), a.children && a.children.length > 0 && l("div", { class: "searchcraft-facet-child-list" }, a.children.map((c) => l("label", { key: c.path, class: "searchcraft-facet-list-checkbox-label searchcraft-facet-child-list-checkbox-label", style: {
|
|
3156
3173
|
display: this.selectedPaths[a.path] ? "flex" : "none"
|
|
3157
|
-
} },
|
|
3174
|
+
} }, l("div", { class: "searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper" }, l("input", { class: "searchcraft-facet-list-checkbox-input searchcraft-facet-child-list-checkbox-input", checked: this.selectedPaths[c.path], onChange: (u) => {
|
|
3158
3175
|
this.handleCheckboxChange(c.path);
|
|
3159
|
-
}, type: "checkbox" }),
|
|
3176
|
+
}, type: "checkbox" }), l("div", { class: "searchcraft-facet-list-checkbox-input-check-icon searchcraft-facet-child-list-checkbox-input-check-icon" }, l("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, l("title", null, "Checkbox check"), l("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.formatSubLabel(c, a)))));
|
|
3160
3177
|
}));
|
|
3161
3178
|
}
|
|
3162
3179
|
}, [0, "searchcraft-facet-list", {
|
|
@@ -3166,7 +3183,7 @@ const Yo = /* @__PURE__ */ D(class extends F {
|
|
|
3166
3183
|
selectedPaths: [32],
|
|
3167
3184
|
lastTimeTaken: [32]
|
|
3168
3185
|
}]);
|
|
3169
|
-
function
|
|
3186
|
+
function Ys() {
|
|
3170
3187
|
if (typeof customElements > "u")
|
|
3171
3188
|
return;
|
|
3172
3189
|
["searchcraft-facet-list"].forEach((t) => {
|
|
@@ -3177,8 +3194,8 @@ function qs() {
|
|
|
3177
3194
|
}
|
|
3178
3195
|
});
|
|
3179
3196
|
}
|
|
3180
|
-
const Zo =
|
|
3181
|
-
function
|
|
3197
|
+
const Zo = Ys;
|
|
3198
|
+
function Ze(e, t) {
|
|
3182
3199
|
if (e && t)
|
|
3183
3200
|
return t.fieldNames.map((r) => {
|
|
3184
3201
|
let s = e[r.fieldName];
|
|
@@ -3196,7 +3213,7 @@ function Ye(e, t) {
|
|
|
3196
3213
|
return s;
|
|
3197
3214
|
}).filter((r) => !!r).join(t.delimiter || " ");
|
|
3198
3215
|
}
|
|
3199
|
-
function
|
|
3216
|
+
function Zs(e) {
|
|
3200
3217
|
switch (e) {
|
|
3201
3218
|
case "hour":
|
|
3202
3219
|
return 36e5;
|
|
@@ -3210,7 +3227,7 @@ function Ys(e) {
|
|
|
3210
3227
|
return 36e5;
|
|
3211
3228
|
}
|
|
3212
3229
|
}
|
|
3213
|
-
function
|
|
3230
|
+
function Qs(e) {
|
|
3214
3231
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
3215
3232
|
}
|
|
3216
3233
|
function Qo(e, t = "en-US", r = {
|
|
@@ -3220,8 +3237,8 @@ function Qo(e, t = "en-US", r = {
|
|
|
3220
3237
|
}) {
|
|
3221
3238
|
const s = new Date(e), o = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), n = 30 * 24 * 60 * 60 * 1e3;
|
|
3222
3239
|
if (o < n) {
|
|
3223
|
-
const c = Math.trunc(o / 1e3), u = Math.trunc(c / 60), h = Math.trunc(u / 60),
|
|
3224
|
-
return
|
|
3240
|
+
const c = Math.trunc(o / 1e3), u = Math.trunc(c / 60), h = Math.trunc(u / 60), i = Math.trunc(h / 24), p = new Intl.RelativeTimeFormat(t, r);
|
|
3241
|
+
return i >= 1 ? p.format(-i, "day") : h >= 1 ? p.format(-h, "hour") : u >= 1 ? p.format(-u, "minute") : p.format(0, "second");
|
|
3225
3242
|
}
|
|
3226
3243
|
return new Intl.DateTimeFormat(t, r).format(s);
|
|
3227
3244
|
}
|
|
@@ -3239,7 +3256,7 @@ const Ko = /* @__PURE__ */ D(class extends F {
|
|
|
3239
3256
|
/**
|
|
3240
3257
|
* The granularity that the value must adhere to.
|
|
3241
3258
|
*/
|
|
3242
|
-
f(this, "granularity",
|
|
3259
|
+
f(this, "granularity", Zs("month"));
|
|
3243
3260
|
/** The type of data allowed. */
|
|
3244
3261
|
f(this, "dataType", "number");
|
|
3245
3262
|
f(this, "endValue", this.max);
|
|
@@ -3271,10 +3288,10 @@ const Ko = /* @__PURE__ */ D(class extends F {
|
|
|
3271
3288
|
}
|
|
3272
3289
|
render() {
|
|
3273
3290
|
const r = this.min, s = this.max, a = (this.startValue - r) / (s - r) * 100, o = (this.endValue - r) / (s - r) * 100, n = this.dataType === "number" ? this.startValue : new Date(this.startValue).getFullYear(), c = this.dataType === "number" ? this.endValue : new Date(this.endValue).getFullYear();
|
|
3274
|
-
return
|
|
3291
|
+
return l("div", { key: "9225b18ce2f40246837d183fcefdd0be7cc22383", class: "searchcraft-slider" }, l("div", { key: "8078c1eda2ceb781282f59216915896fdbe2a8d3", class: "searchcraft-slider-range" }, l("div", { key: "6a6bafa9f7abf41ab24f020cd291a4a08c618afb", class: "searchcraft-slider-active-range", style: {
|
|
3275
3292
|
left: `${a}%`,
|
|
3276
3293
|
width: `${o - a}%`
|
|
3277
|
-
} }),
|
|
3294
|
+
} }), l("input", { key: "f07a91d441d277b8e9eba34e39093393a44bbf53", class: re("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 }), l("input", { key: "0637ea5fe123abe1d77c540b347c78fc8ad3d281", class: re("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 })), l("div", { key: "b62f8d8485915dddefb7ca29f62b4a96d70470c5", class: "searchcraft-slider-label" }, l("span", { key: "fd5d32172ce53d93b858ca54c17b12b80fcdde1d", class: "searchcraft-slider-start-label" }, n), l("span", { key: "8f4d230b78fb8d896a469f17ade3a3fd3162b427", class: "searchcraft-slider-end-label" }, c)));
|
|
3278
3295
|
}
|
|
3279
3296
|
}, [0, "searchcraft-slider", {
|
|
3280
3297
|
max: [2],
|
|
@@ -3285,7 +3302,7 @@ const Ko = /* @__PURE__ */ D(class extends F {
|
|
|
3285
3302
|
startValue: [32],
|
|
3286
3303
|
lastFocusedHandle: [32]
|
|
3287
3304
|
}]);
|
|
3288
|
-
function
|
|
3305
|
+
function Ks() {
|
|
3289
3306
|
if (typeof customElements > "u")
|
|
3290
3307
|
return;
|
|
3291
3308
|
["searchcraft-slider"].forEach((t) => {
|
|
@@ -3330,9 +3347,9 @@ const Xo = /* @__PURE__ */ D(class extends F {
|
|
|
3330
3347
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3331
3348
|
}
|
|
3332
3349
|
render() {
|
|
3333
|
-
return
|
|
3350
|
+
return l("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class: re("searchcraft-toggle-button", {
|
|
3334
3351
|
"searchcraft-toggle-button-active": this.isActive
|
|
3335
|
-
}) },
|
|
3352
|
+
}) }, l("div", { key: "aaa92d7c1aebe241a163a1fba7cd1f8d3804286d" }, l("p", { key: "068b82b17a99bf55ad17818d0dd4c7e95858317b", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && l("p", { key: "39e43e3fad6a2ab09d20f37c6d6865cede3701d9", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), l("button", { key: "5ae352870d4a01c430389e75b967b2eb9d3fa5f7", class: "searchcraft-toggle-button-background", onClick: this.handleToggle, type: "button" }, l("div", { key: "0574ade4e1681ce8e122039c40e761cb68555621", class: "searchcraft-toggle-button-handle" })));
|
|
3336
3353
|
}
|
|
3337
3354
|
}, [0, "searchcraft-toggle-button", {
|
|
3338
3355
|
label: [1],
|
|
@@ -3341,7 +3358,7 @@ const Xo = /* @__PURE__ */ D(class extends F {
|
|
|
3341
3358
|
unsubscribe: [32],
|
|
3342
3359
|
lastSearchTerm: [32]
|
|
3343
3360
|
}]);
|
|
3344
|
-
function
|
|
3361
|
+
function Xs() {
|
|
3345
3362
|
if (typeof customElements > "u")
|
|
3346
3363
|
return;
|
|
3347
3364
|
["searchcraft-toggle-button"].forEach((t) => {
|
|
@@ -3395,43 +3412,49 @@ const Jo = /* @__PURE__ */ D(class extends F {
|
|
|
3395
3412
|
handleExactMatchToggleUpdated(r) {
|
|
3396
3413
|
this.searchStore.setSearchMode(r ? "exact" : "fuzzy"), this.searchStore.search();
|
|
3397
3414
|
}
|
|
3398
|
-
handleMostRecentToggleUpdated(r) {
|
|
3399
|
-
|
|
3415
|
+
handleMostRecentToggleUpdated(r, s) {
|
|
3416
|
+
s ? this.searchStore.setSortOrder({
|
|
3417
|
+
orderByField: r,
|
|
3418
|
+
sortType: "desc"
|
|
3419
|
+
}) : this.searchStore.setSortOrder({
|
|
3420
|
+
orderByField: null,
|
|
3421
|
+
sortType: null
|
|
3422
|
+
}), this.searchStore.search();
|
|
3400
3423
|
}
|
|
3401
3424
|
/**
|
|
3402
3425
|
* Iterate through `items` and render them based on `type`
|
|
3403
3426
|
*/
|
|
3404
3427
|
render() {
|
|
3405
|
-
return
|
|
3428
|
+
return l("div", { key: "7f15e8f1a2e1be763118f9cd4ded34cf7e2902d0", class: "searchcraft-filter-panel" }, this.items.map((r) => {
|
|
3406
3429
|
switch (r.type) {
|
|
3407
3430
|
case "dateRange": {
|
|
3408
|
-
const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n =
|
|
3409
|
-
return
|
|
3431
|
+
const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n = Zs(s.options.granularity);
|
|
3432
|
+
return l("div", { class: "searchcraft-filter-panel-section" }, l("p", { class: "searchcraft-filter-panel-label" }, r.label), l("searchcraft-slider", { min: a, max: o, granularity: n, dataType: "date", onRangeChanged: (c) => {
|
|
3410
3433
|
this.handleDateRangeChanged(s.fieldName, c.detail.startValue, c.detail.endValue);
|
|
3411
3434
|
} }));
|
|
3412
3435
|
}
|
|
3413
3436
|
case "numericRange": {
|
|
3414
3437
|
const s = r;
|
|
3415
|
-
return
|
|
3438
|
+
return l("div", { class: "searchcraft-filter-panel-section" }, l("p", { class: "searchcraft-filter-panel-label" }, r.label), l("searchcraft-slider", { min: s.options.min, max: s.options.max, granularity: s.options.granularity, onRangeChanged: (a) => {
|
|
3416
3439
|
this.handleNumericRangeChanged(s.fieldName, a.detail.startValue, a.detail.endValue);
|
|
3417
3440
|
} }));
|
|
3418
3441
|
}
|
|
3419
3442
|
case "facets": {
|
|
3420
3443
|
const s = r;
|
|
3421
|
-
return
|
|
3444
|
+
return l("div", { class: "searchcraft-filter-panel-section" }, l("p", { class: "searchcraft-filter-panel-label" }, r.label), l("searchcraft-facet-list", { fieldName: s.fieldName, onFacetSelectionUpdated: (a) => {
|
|
3422
3445
|
this.handleFacetSelectionUpdated(s.fieldName, a.detail.paths);
|
|
3423
3446
|
} }));
|
|
3424
3447
|
}
|
|
3425
3448
|
case "exactMatchToggle": {
|
|
3426
3449
|
const s = r;
|
|
3427
|
-
return
|
|
3450
|
+
return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
|
|
3428
3451
|
this.handleExactMatchToggleUpdated(a.detail);
|
|
3429
3452
|
} });
|
|
3430
3453
|
}
|
|
3431
3454
|
case "mostRecentToggle": {
|
|
3432
3455
|
const s = r;
|
|
3433
|
-
return
|
|
3434
|
-
this.handleMostRecentToggleUpdated(a.detail);
|
|
3456
|
+
return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
|
|
3457
|
+
this.handleMostRecentToggleUpdated(s.fieldName, a.detail);
|
|
3435
3458
|
} });
|
|
3436
3459
|
}
|
|
3437
3460
|
}
|
|
@@ -3451,13 +3474,13 @@ function ec() {
|
|
|
3451
3474
|
customElements.get(t) || customElements.define(t, Jo);
|
|
3452
3475
|
break;
|
|
3453
3476
|
case "searchcraft-facet-list":
|
|
3454
|
-
customElements.get(t) ||
|
|
3477
|
+
customElements.get(t) || Ys();
|
|
3455
3478
|
break;
|
|
3456
3479
|
case "searchcraft-slider":
|
|
3457
|
-
customElements.get(t) ||
|
|
3480
|
+
customElements.get(t) || Ks();
|
|
3458
3481
|
break;
|
|
3459
3482
|
case "searchcraft-toggle-button":
|
|
3460
|
-
customElements.get(t) ||
|
|
3483
|
+
customElements.get(t) || Xs();
|
|
3461
3484
|
break;
|
|
3462
3485
|
}
|
|
3463
3486
|
});
|
|
@@ -3473,13 +3496,13 @@ const tc = ec, rc = /* @__PURE__ */ D(class extends F {
|
|
|
3473
3496
|
this.__registerHost();
|
|
3474
3497
|
}
|
|
3475
3498
|
render() {
|
|
3476
|
-
return
|
|
3499
|
+
return l("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class: re("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
|
|
3477
3500
|
}
|
|
3478
3501
|
}, [0, "searchcraft-input-label", {
|
|
3479
3502
|
inputLabelClassName: [1, "input-label-class-name"],
|
|
3480
3503
|
label: [1]
|
|
3481
3504
|
}]);
|
|
3482
|
-
function
|
|
3505
|
+
function dr() {
|
|
3483
3506
|
if (typeof customElements > "u")
|
|
3484
3507
|
return;
|
|
3485
3508
|
["searchcraft-input-label"].forEach((t) => {
|
|
@@ -3577,14 +3600,14 @@ const sc = /* @__PURE__ */ D(class extends F {
|
|
|
3577
3600
|
this.handleReset(), (r = this.unsubscribe) == null || r.call(this);
|
|
3578
3601
|
}
|
|
3579
3602
|
render() {
|
|
3580
|
-
const r = this.inputValue.length > 0, s =
|
|
3603
|
+
const r = this.inputValue.length > 0, s = re("searchcraft-input-form-grid", {
|
|
3581
3604
|
"searchcraft-input-form-grid-button-left": this.buttonPlacement === "left",
|
|
3582
3605
|
"searchcraft-input-form-grid-button-right": this.buttonPlacement === "right",
|
|
3583
3606
|
"searchcraft-input-form-grid-button-none": this.buttonPlacement === "none"
|
|
3584
3607
|
}), o = {
|
|
3585
3608
|
gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
|
|
3586
3609
|
};
|
|
3587
|
-
return
|
|
3610
|
+
return l("form", { key: "6af89b2ab634e0f3e0ef575f98f33d091602f95a", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, l("div", { key: "93fea8e2b80468afeb6014122d5b749d74bfaf35", class: s, style: o }, l("div", { key: "1e5a416843b99aec68c4672a9c78f607347dc9d1", class: "searchcraft-input-form-button" }, l("searchcraft-button", { key: "c38c1df0ce20f914ed76fbc0acad5a22b40e6fff", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && l("div", { key: "2169a4466b0fdc8075c0dc74da442aef28a84d65", class: "searchcraft-input-form-label" }, l("searchcraft-input-label", { key: "a263b5aa2a4d50d297f06c1fe9e6afb64763f097", label: this.inputLabel })), this.error && l("div", { key: "49be2ac0f2d01916e5ea533e6406ee9d4d932178", class: "searchcraft-input-form-error-message" }, l("searchcraft-error-message", { key: "310c9aebcf580d4abe92d288c6b70a5adf083f8e" }, "Something went wrong.")), l("div", { key: "f4702e368815e049586e97cf59541b2dc5460fc0", class: "searchcraft-input-form-input-wrapper" }, l("input", { key: "a8cddd5e937eee1d30fb98eaaa3dbffe96c192ce", autoComplete: "off", class: "searchcraft-input-form-input", onFocus: () => {
|
|
3588
3611
|
var n;
|
|
3589
3612
|
return (n = this.inputFocus) == null ? void 0 : n.emit();
|
|
3590
3613
|
}, onBlur: () => {
|
|
@@ -3592,7 +3615,7 @@ const sc = /* @__PURE__ */ D(class extends F {
|
|
|
3592
3615
|
return (n = this.inputBlur) == null ? void 0 : n.emit();
|
|
3593
3616
|
}, onInput: (n) => {
|
|
3594
3617
|
this.handleInput(n);
|
|
3595
|
-
}, placeholder: this.placeholderValue, type: "text", value: this.inputValue }),
|
|
3618
|
+
}, placeholder: this.placeholderValue, type: "text", value: this.inputValue }), l("div", { key: "616b4dde1ba016cf6a2fba8594a99a3a3f584ef5", class: "searchcraft-input-form-input-icon" }, l("svg", { key: "daaef561677a06a76813375e429be7e053b8b122", class: "searchcraft-input-form-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, l("title", { key: "e6d82ca64dd9bfc663813c239d11e5652aa0b9a1" }, "Search icon"), l("path", { key: "1df856c98c2063c1d0c80027255935f73b513939", 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: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && l("button", { key: "8dd6dfefe0ba909657bd436b559ce35b5004f9ae", type: "button", class: "searchcraft-input-form-clear-button", onClick: this.handleClearInput }, l("svg", { key: "bcdba04d5c0949cacc8e1962d2b3cd40ad995de6", class: "searchcraft-input-form-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, l("title", { key: "e01e7fb9b23daf9434520c4c68c0d7539b37d1f8" }, "Clear icon"), l("path", { key: "ce526d332b6e352cd9cf6008ee2f7497c6769782", 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: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
|
|
3596
3619
|
}
|
|
3597
3620
|
static get watchers() {
|
|
3598
3621
|
return {
|
|
@@ -3612,7 +3635,7 @@ const sc = /* @__PURE__ */ D(class extends F {
|
|
|
3612
3635
|
}, void 0, {
|
|
3613
3636
|
core: ["onCoreChange"]
|
|
3614
3637
|
}]);
|
|
3615
|
-
function
|
|
3638
|
+
function Js() {
|
|
3616
3639
|
if (typeof customElements > "u")
|
|
3617
3640
|
return;
|
|
3618
3641
|
["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
|
|
@@ -3627,12 +3650,12 @@ function Xs() {
|
|
|
3627
3650
|
customElements.get(t) || wt();
|
|
3628
3651
|
break;
|
|
3629
3652
|
case "searchcraft-input-label":
|
|
3630
|
-
customElements.get(t) ||
|
|
3653
|
+
customElements.get(t) || dr();
|
|
3631
3654
|
break;
|
|
3632
3655
|
}
|
|
3633
3656
|
});
|
|
3634
3657
|
}
|
|
3635
|
-
const ac =
|
|
3658
|
+
const ac = Js, nc = dr, oc = /* @__PURE__ */ D(class extends F {
|
|
3636
3659
|
constructor() {
|
|
3637
3660
|
super();
|
|
3638
3661
|
// store vars
|
|
@@ -3664,27 +3687,27 @@ const ac = Xs, nc = hr, oc = /* @__PURE__ */ D(class extends F {
|
|
|
3664
3687
|
this.setSearchResultsPage(r);
|
|
3665
3688
|
}
|
|
3666
3689
|
renderOddPaginationItem(r) {
|
|
3667
|
-
return
|
|
3690
|
+
return l("li", null, l("button", { class: re("searchcraft-pagination-item", {
|
|
3668
3691
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
3669
3692
|
}), onClick: () => this.handleGoToPage(r), type: "button" }, r));
|
|
3670
3693
|
}
|
|
3671
3694
|
renderEvenPaginationItem(r) {
|
|
3672
3695
|
if (!(this.searchResultsPagesCount <= r))
|
|
3673
|
-
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ?
|
|
3696
|
+
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? l("li", null, l("button", { class: re("searchcraft-pagination-item", {
|
|
3674
3697
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
3675
|
-
}), onClick: () => this.handleGoToPage(r), type: "button" }, r)) :
|
|
3698
|
+
}), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : l("li", null, l("span", { class: "searchcraft-pagination-item" }, "..."));
|
|
3676
3699
|
}
|
|
3677
3700
|
renderMiddlePaginationItem() {
|
|
3678
3701
|
if (!(this.searchResultsPagesCount <= 3))
|
|
3679
|
-
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ?
|
|
3702
|
+
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? l("li", null, l("button", { class: re("searchcraft-pagination-item", {
|
|
3680
3703
|
"searchcraft-pagination-item-active": this.searchResultsPage === 3 || this.searchResultsPage === this.searchResultsPagesCount - 2
|
|
3681
|
-
}), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) :
|
|
3704
|
+
}), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) : l("li", null, l("span", { class: "searchcraft-pagination-item searchcraft-pagination-item-active" }, this.searchResultsPage));
|
|
3682
3705
|
}
|
|
3683
3706
|
render() {
|
|
3684
3707
|
if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
|
|
3685
|
-
return
|
|
3708
|
+
return l("div", { class: "searchcraft-pagination" }, l("div", { class: "searchcraft-pagination-control" }, l("searchcraft-button", { disabled: this.searchResultsPage === 1, hierarchy: "tertiary", onButtonClick: () => this.handleGoToPage(Math.max(1, this.searchResultsPage - 1)), label: "Previous", iconPosition: "left", icon: l("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", null, "Previous page icon"), l("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })), l("ul", { class: "searchcraft-pagination-list" }, this.renderOddPaginationItem(1), this.renderEvenPaginationItem(2), this.renderMiddlePaginationItem(), this.renderEvenPaginationItem(this.searchResultsPagesCount > 4 ? this.searchResultsPagesCount - 1 : 4), this.renderOddPaginationItem(this.searchResultsPagesCount)), l("div", { class: "searchcraft-pagination-control" }, l("searchcraft-button", { disabled: this.searchResultsPage === this.searchResultsPagesCount, hierarchy: "tertiary", onButtonClick: () => {
|
|
3686
3709
|
this.handleGoToPage(Math.min(this.searchResultsPagesCount, this.searchResultsPage + 1));
|
|
3687
|
-
}, label: "Next", iconPosition: "right", icon:
|
|
3710
|
+
}, label: "Next", iconPosition: "right", icon: l("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", null, "Next page icon"), l("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })));
|
|
3688
3711
|
}
|
|
3689
3712
|
}, [0, "searchcraft-pagination", {
|
|
3690
3713
|
searchTerm: [32],
|
|
@@ -3728,10 +3751,10 @@ const ic = cc, lc = /* @__PURE__ */ D(class extends F {
|
|
|
3728
3751
|
f(this, "userAgent");
|
|
3729
3752
|
f(this, "unsubscribe", () => {
|
|
3730
3753
|
});
|
|
3731
|
-
f(this, "renderOptionSymbol", () =>
|
|
3732
|
-
f(this, "renderCtrlSymbol", () =>
|
|
3733
|
-
f(this, "renderWindowsMetaSymbol", () =>
|
|
3734
|
-
f(this, "renderMacMetaSymbol", () =>
|
|
3754
|
+
f(this, "renderOptionSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Option key"), l("path", { d: "M283,112c0-11.58,9.42-21,21-21h160c11.58,0,21,9.42,21,21s-9.42,21-21,21h-160c-11.58,0-21-9.42-21-21Z", fill: "currentColor" }), l("path", { d: "M485,400c0,11.58-9.42,21-21,21h-128c-8.29,0-15.82-4.9-19.19-12.47l-122.46-275.53H48c-11.58,0-21-9.42-21-21s9.42-21,21-21h160c8.29,0,15.82,4.9,19.19,12.47l122.46,275.53h114.35c11.58,0,21,9.42,21,21Z", fill: "currentColor" })));
|
|
3755
|
+
f(this, "renderCtrlSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Ctrl key"), l("path", { d: "M388.95,209.4c-.37,5.59-2.9,10.71-7.12,14.4-3.83,3.35-8.74,5.2-13.82,5.2-6.06,0-11.83-2.61-15.81-7.17l-96.2-109.94-96.2,109.94c-3.98,4.56-9.75,7.17-15.81,7.17-5.08,0-9.99-1.84-13.82-5.2-4.22-3.69-6.75-8.81-7.12-14.4-.38-5.6,1.45-11.01,5.15-15.23l112-128c3.98-4.56,9.74-7.17,15.8-7.17s11.82,2.61,15.8,7.17l112,128c3.7,4.22,5.53,9.63,5.15,15.23Z", fill: "currentColor" })));
|
|
3756
|
+
f(this, "renderWindowsMetaSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Windows meta key"), l("path", { d: "M206.115 255.957c-23.854-12.259-47.043-18.479-68.94-18.479-2.978 0-5.976 0.090-8.974 0.354-27.94 2.312-53.461 9.684-69.875 15.414-4.354 1.599-8.817 3.288-13.415 5.153l-44.911 155.697c30.851-11.416 58.146-16.969 83.135-16.969 40.423 0 69.764 15.104 93.996 30.652 11.481-38.959 39.022-133.045 47.241-161.162-5.975-3.642-12.038-7.285-18.257-10.66zM264.174 295.535l-45.223 157.074c13.416 7.686 58.549 32.025 93.106 32.025 27.896 0 59.126-7.148 95.417-21.896l43.178-150.988c-29.316 9.461-57.438 14.26-83.732 14.26-47.975 0-81.557-15.549-102.746-30.475zM146.411 184.395c38.559 0.399 67.076 15.104 90.708 30.251l46.376-158.672c-9.773-5.598-35.403-19.547-53.929-24.3-12.193-2.842-25.010-4.308-38.602-4.308-25.898 0.488-54.194 6.973-86.444 19.9l-44.22 155.298c32.404-12.218 60.322-18.17 86.043-18.17 0.023 0.001 0.068 0.001 0.068 0.001zM512 99.062c-29.407 11.416-58.104 17.233-85.514 17.233-45.843 0-79.646-15.901-101.547-31.183l-45.975 159.118c30.873 19.854 64.145 29.939 99.061 29.939 28.474 0 57.97-6.84 87.731-20.344l-0.091-1.111 1.867-0.443 44.468-153.209z", fill: "currentColor" })));
|
|
3757
|
+
f(this, "renderMacMetaSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Mac meta key"), l("path", { d: "M368,283h-43v-54h43c46.87,0,85-38.13,85-85s-38.13-85-85-85-85,38.13-85,85v43h-54v-43c0-46.87-38.13-85-85-85s-85,38.13-85,85,38.13,85,85,85h43v54h-43c-46.87,0-85,38.13-85,85s38.13,85,85,85,85-38.13,85-85v-43h54v43c0,46.87,38.13,85,85,85s85-38.13,85-85-38.13-85-85-85ZM325,144c0-23.71,19.29-43,43-43s43,19.29,43,43-19.29,43-43,43h-43v-43ZM144,187c-23.71,0-43-19.29-43-43s19.29-43,43-43,43,19.29,43,43v43h-43ZM187,368c0,23.71-19.29,43-43,43s-43-19.29-43-43,19.29-43,43-43h43v43ZM283,283h-54v-54h54v54ZM368,411c-23.71,0-43-19.29-43-43v-43h43c23.71,0,43,19.29,43,43s-19.29,43-43,43Z", fill: "currentColor" })));
|
|
3735
3758
|
this.__registerHost();
|
|
3736
3759
|
}
|
|
3737
3760
|
handleOnClick() {
|
|
@@ -3770,18 +3793,18 @@ const ic = cc, lc = /* @__PURE__ */ D(class extends F {
|
|
|
3770
3793
|
}
|
|
3771
3794
|
}
|
|
3772
3795
|
renderSkeuomorphicSlot() {
|
|
3773
|
-
return
|
|
3796
|
+
return l("div", { class: "searchcraft-popover-button-wrapper" }, l("div", { class: "searchcraft-popover-button-input" }, l("svg", { class: "searchcraft-popover-button-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", version: "1.1" }, l("title", null, "Search icon"), l("path", { 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: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), l("span", null, "Search")), l("div", { class: "searchcraft-popover-button-keycaps" }, l("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-modifier" }, l("span", null, this.hotkeyModifierSymbol)), l("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-key" }, l("span", null, this.hotkey))));
|
|
3774
3797
|
}
|
|
3775
3798
|
renderSlot() {
|
|
3776
3799
|
switch (this.type) {
|
|
3777
3800
|
case "skeuomorphic":
|
|
3778
3801
|
return this.renderSkeuomorphicSlot();
|
|
3779
3802
|
default:
|
|
3780
|
-
return
|
|
3803
|
+
return l("div", null, l("slot", null));
|
|
3781
3804
|
}
|
|
3782
3805
|
}
|
|
3783
3806
|
render() {
|
|
3784
|
-
return
|
|
3807
|
+
return l("button", { key: "74e36b0593ba2cbb03f5ecff1434bc7056bf0db0", class: `searchcraft-popover-button ${this.type ? ` searchcraft-popover-button-${this.type}` : ""}`, innerHTML: typeof this.template < "u" ? this.template({ isPopoverVisible: this.isPopoverVisible }, { html: et }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
|
|
3785
3808
|
}
|
|
3786
3809
|
}, [4, "searchcraft-popover-button", {
|
|
3787
3810
|
template: [16],
|
|
@@ -3821,12 +3844,12 @@ const hc = uc, dc = /* @__PURE__ */ D(class extends F {
|
|
|
3821
3844
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3822
3845
|
}
|
|
3823
3846
|
render() {
|
|
3824
|
-
return
|
|
3847
|
+
return l("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, l("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${Qs(this.searchResultsCount)} Results Found` : " "), l("a", { key: "5476e24cc3fa7fa265bd2b5cba43c8a70d8609ca", class: "searchcraft-popover-footer-link", href: "https://searchcraft.io/", target: "_blank", rel: "noreferrer" }, l("svg", { key: "0a4edf94e9e40a96a93a4e7ba1ffbd081e51b585", class: "searchcraft-popover-footer-link-image", width: "169", height: "16", viewBox: "0 0 169 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", { key: "67813a626922d709a4409028cb0f3f1ce3e2cfe8" }, "Powered by Searchcraft"), l("path", { key: "bf9e46a5f9783edd7167c1c5c1256d0200053969", d: "M5.07288 0.608C7.60088 0.608 8.84888 2.064 8.84888 4.112C8.84888 6.16 7.60088 7.616 5.07288 7.616H1.68088V12H0.336875V0.608H5.07288ZM5.07288 6.4C6.67288 6.4 7.45688 5.552 7.45688 4.112C7.45688 2.672 6.67288 1.824 5.07288 1.824H1.68088V6.4H5.07288ZM13.31 12.192C10.99 12.192 9.31 10.512 9.31 7.872C9.31 5.232 10.99 3.552 13.31 3.552C15.63 3.552 17.31 5.232 17.31 7.872C17.31 10.512 15.63 12.192 13.31 12.192ZM13.31 11.04C14.91 11.04 15.966 9.872 15.966 7.872C15.966 5.872 14.91 4.704 13.31 4.704C11.71 4.704 10.654 5.872 10.654 7.872C10.654 9.872 11.71 11.04 13.31 11.04ZM28.3826 3.744H29.7586L27.0066 12H25.6626L24.4466 8.176C24.1586 7.264 23.8706 6.304 23.6146 5.376C23.3426 6.304 23.0546 7.264 22.7666 8.176L21.5666 12H20.2226L17.4706 3.744H18.8466L20.0146 7.472C20.3346 8.48 20.6226 9.472 20.9106 10.48C21.1826 9.472 21.4706 8.48 21.7906 7.472L22.9426 3.744H24.2866L25.4386 7.472C25.7426 8.464 26.0466 9.456 26.3346 10.448C26.6066 9.456 26.9106 8.464 27.2146 7.472L28.3826 3.744ZM37.5194 7.872V8.32H31.2474C31.3754 10.176 32.3514 11.024 33.7914 11.024C34.9594 11.024 35.6954 10.416 35.9834 9.488H37.3114C36.9114 11.04 35.7274 12.192 33.7594 12.192C31.5034 12.192 29.9194 10.544 29.9194 7.872C29.9194 5.28 31.4394 3.552 33.7274 3.552C36.1914 3.552 37.5194 5.504 37.5194 7.872ZM33.7274 4.72C32.4314 4.72 31.4874 5.536 31.2794 7.168H36.1434C36.0154 5.808 35.1994 4.72 33.7274 4.72ZM42.9101 3.616C43.0381 3.616 43.1661 3.616 43.3421 3.632V4.864H43.0221C41.3741 4.864 40.3181 5.696 40.3181 7.296V12H39.0381V3.744H40.2541V5.2C40.7181 4.336 41.5661 3.616 42.9101 3.616ZM51.2538 7.872V8.32H44.9818C45.1098 10.176 46.0858 11.024 47.5258 11.024C48.6938 11.024 49.4298 10.416 49.7178 9.488H51.0458C50.6458 11.04 49.4618 12.192 47.4938 12.192C45.2378 12.192 43.6538 10.544 43.6538 7.872C43.6538 5.28 45.1738 3.552 47.4618 3.552C49.9258 3.552 51.2538 5.504 51.2538 7.872ZM47.4618 4.72C46.1658 4.72 45.2218 5.536 45.0138 7.168H49.8778C49.7498 5.808 48.9338 4.72 47.4618 4.72ZM58.9805 0.608H60.2605V12H59.0445V10.72C58.4205 11.664 57.4445 12.192 56.2125 12.192C53.8925 12.192 52.3725 10.512 52.3725 7.872C52.3725 5.232 53.8925 3.552 56.2125 3.552C57.4125 3.552 58.3565 4.048 58.9805 4.928V0.608ZM56.3725 11.04C57.9725 11.04 59.0285 9.872 59.0285 7.872C59.0285 5.872 57.9725 4.704 56.3725 4.704C54.7725 4.704 53.7165 5.936 53.7165 7.936C53.7165 9.936 54.7725 11.04 56.3725 11.04ZM69.2736 3.552C71.5936 3.552 73.1136 5.232 73.1136 7.872C73.1136 10.512 71.5936 12.192 69.2736 12.192C68.0416 12.192 67.0656 11.664 66.4416 10.72V12H65.2256V0.608H66.5056V4.928C67.1296 4.048 68.0736 3.552 69.2736 3.552ZM69.1136 11.04C70.7136 11.04 71.7696 9.808 71.7696 7.808C71.7696 5.808 70.7136 4.704 69.1136 4.704C67.5136 4.704 66.4576 5.872 66.4576 7.872C66.4576 9.872 67.5136 11.04 69.1136 11.04ZM79.3795 3.744H80.7715L77.2835 13.296C76.7555 14.752 75.9075 15.184 74.5955 15.184C74.3395 15.184 74.0995 15.168 73.8275 15.136V14.064H74.5795C75.3955 14.064 75.8275 13.696 76.0835 13.04C76.1795 12.8 76.2755 12.528 76.3715 12.272L73.2675 3.744H74.6755L75.8435 7.184C76.2595 8.384 76.6435 9.568 77.0275 10.752C77.3955 9.568 77.7955 8.368 78.2115 7.168L79.3795 3.744ZM89.1546 12.256C86.1146 12.256 84.2906 10.864 84.2746 8.24H86.4026C86.4346 10.032 87.6346 10.512 89.2186 10.512C90.7066 10.512 91.5226 9.936 91.5226 8.864C91.5226 7.968 90.9306 7.568 89.1866 7.216L88.2266 7.024C86.0186 6.608 84.5626 5.632 84.5626 3.568C84.5626 1.68 86.0506 0.351999 88.7866 0.351999C91.9866 0.351999 93.3466 1.856 93.4266 4H91.3306C91.2506 2.784 90.6266 2.096 88.8186 2.096C87.4426 2.096 86.7706 2.64 86.7706 3.504C86.7706 4.416 87.2986 4.832 88.9946 5.184L89.9866 5.376C92.6746 5.904 93.7626 6.944 93.7626 8.752C93.7626 11.008 92.0026 12.256 89.1546 12.256ZM102.952 8.016V8.496H96.7758C96.9198 9.968 97.7518 10.624 98.9198 10.624C99.8798 10.624 100.504 10.176 100.808 9.44H102.744C102.328 11.12 100.888 12.192 98.9038 12.192C96.4718 12.192 94.7918 10.512 94.7918 7.872C94.7918 5.28 96.4238 3.552 98.8718 3.552C101.4 3.552 102.952 5.392 102.952 8.016ZM98.8558 5.12C97.7838 5.12 96.9838 5.728 96.7918 7.088H100.936C100.776 5.92 100.056 5.12 98.8558 5.12ZM111.599 12H109.583C109.455 11.776 109.391 11.392 109.359 10.992C108.815 11.76 107.919 12.192 106.703 12.192C104.943 12.192 103.727 11.312 103.727 9.712C103.727 8.336 104.559 7.36 106.895 7.136L108.143 7.024C108.911 6.928 109.311 6.688 109.311 6.08C109.311 5.44 108.975 5.056 107.807 5.056C106.655 5.056 106.175 5.36 106.095 6.368H104.111C104.223 4.624 105.247 3.552 107.823 3.552C110.287 3.552 111.263 4.544 111.263 6.032V10.432C111.263 11.024 111.375 11.68 111.599 12ZM107.183 10.752C108.255 10.752 109.311 10.176 109.311 8.736V7.984C109.103 8.176 108.799 8.272 108.367 8.32L107.279 8.448C106.159 8.576 105.791 8.976 105.791 9.632C105.791 10.32 106.255 10.752 107.183 10.752ZM117.216 3.616C117.392 3.616 117.536 3.616 117.712 3.648V5.504H117.2C115.712 5.504 114.816 6.24 114.816 7.808V12H112.8V3.744H114.752V5.216C115.152 4.288 115.936 3.616 117.216 3.616ZM122.137 12.192C119.689 12.192 118.057 10.512 118.057 7.872C118.057 5.232 119.673 3.552 122.137 3.552C124.297 3.552 125.737 4.784 125.977 6.72H123.961C123.769 5.696 123.033 5.232 122.137 5.232C120.937 5.232 120.121 6.064 120.121 7.872C120.121 9.68 120.969 10.512 122.137 10.512C123.049 10.512 123.833 10.016 123.993 8.928H126.009C125.785 10.944 124.249 12.192 122.137 12.192ZM131.641 3.552C133.369 3.552 134.537 4.56 134.537 6.528V12H132.521V6.864C132.521 5.808 131.993 5.296 130.969 5.296C130.089 5.296 129.129 5.904 129.129 7.376V12H127.113V0.608H129.129V4.848C129.673 4.096 130.521 3.552 131.641 3.552ZM139.887 12.192C137.439 12.192 135.807 10.512 135.807 7.872C135.807 5.232 137.423 3.552 139.887 3.552C142.047 3.552 143.487 4.784 143.727 6.72H141.711C141.519 5.696 140.783 5.232 139.887 5.232C138.687 5.232 137.871 6.064 137.871 7.872C137.871 9.68 138.719 10.512 139.887 10.512C140.799 10.512 141.583 10.016 141.743 8.928H143.759C143.535 10.944 141.999 12.192 139.887 12.192ZM149.279 3.616C149.455 3.616 149.599 3.616 149.775 3.648V5.504H149.263C147.775 5.504 146.879 6.24 146.879 7.808V12H144.863V3.744H146.815V5.216C147.215 4.288 147.999 3.616 149.279 3.616ZM157.803 12H155.787C155.659 11.776 155.595 11.392 155.563 10.992C155.019 11.76 154.123 12.192 152.907 12.192C151.147 12.192 149.931 11.312 149.931 9.712C149.931 8.336 150.763 7.36 153.099 7.136L154.347 7.024C155.115 6.928 155.515 6.688 155.515 6.08C155.515 5.44 155.179 5.056 154.011 5.056C152.859 5.056 152.379 5.36 152.299 6.368H150.315C150.427 4.624 151.451 3.552 154.027 3.552C156.491 3.552 157.467 4.544 157.467 6.032V10.432C157.467 11.024 157.579 11.68 157.803 12ZM153.387 10.752C154.459 10.752 155.515 10.176 155.515 8.736V7.984C155.307 8.176 155.003 8.272 154.571 8.32L153.483 8.448C152.363 8.576 151.995 8.976 151.995 9.632C151.995 10.32 152.459 10.752 153.387 10.752ZM162.466 2.16C161.746 2.16 161.426 2.512 161.426 3.152V3.744H163.122V5.28H161.426V12H159.426V5.28H158.146V3.744H159.426V3.12C159.426 1.664 160.146 0.559999 162.13 0.559999C162.45 0.559999 162.882 0.575999 163.17 0.608V2.16H162.466ZM168.636 5.28H167.004V9.744C167.004 10.288 167.276 10.464 167.948 10.464H168.636V12C168.268 12.032 167.9 12.064 167.58 12.064C165.836 12.064 165.004 11.472 165.004 9.952V5.28H163.724V3.744H165.004V1.344H167.004V3.744H168.636V5.28Z", fill: "currentColor" }))));
|
|
3825
3848
|
}
|
|
3826
3849
|
}, [0, "searchcraft-popover-footer", {
|
|
3827
3850
|
searchResultsCount: [32]
|
|
3828
3851
|
}]);
|
|
3829
|
-
function
|
|
3852
|
+
function ea() {
|
|
3830
3853
|
if (typeof customElements > "u")
|
|
3831
3854
|
return;
|
|
3832
3855
|
["searchcraft-popover-footer"].forEach((t) => {
|
|
@@ -3837,7 +3860,7 @@ function Js() {
|
|
|
3837
3860
|
}
|
|
3838
3861
|
});
|
|
3839
3862
|
}
|
|
3840
|
-
const fc =
|
|
3863
|
+
const fc = ea, pc = /* @__PURE__ */ D(class extends F {
|
|
3841
3864
|
constructor() {
|
|
3842
3865
|
super();
|
|
3843
3866
|
f(this, "item");
|
|
@@ -3865,7 +3888,7 @@ const fc = Js, pc = /* @__PURE__ */ D(class extends F {
|
|
|
3865
3888
|
}
|
|
3866
3889
|
mapValuesFromDocument(r) {
|
|
3867
3890
|
var s, a, o, n, c;
|
|
3868
|
-
this.title =
|
|
3891
|
+
this.title = Ze(r, (s = this.popoverResultMappings) == null ? void 0 : s.title), this.subtitle = Ze(r, (a = this.popoverResultMappings) == null ? void 0 : a.subtitle), this.href = Ze(r, (o = this.popoverResultMappings) == null ? void 0 : o.href), this.imageSource = Ze(r, (n = this.popoverResultMappings) == null ? void 0 : n.imageSource), this.imageAlt = Ze(r, (c = this.popoverResultMappings) == null ? void 0 : c.imageAlt);
|
|
3869
3892
|
}
|
|
3870
3893
|
connectedCallback() {
|
|
3871
3894
|
this.item && this.mapValuesFromDocument(this.item.document);
|
|
@@ -3873,7 +3896,7 @@ const fc = Js, pc = /* @__PURE__ */ D(class extends F {
|
|
|
3873
3896
|
disconnectedCallback() {
|
|
3874
3897
|
}
|
|
3875
3898
|
render() {
|
|
3876
|
-
return
|
|
3899
|
+
return l("div", { key: "63a2f070ce71cd1330105c03985e32cd1f228b29", class: "searchcraft-popover-list-item" }, l("a", { key: "d9bb09248be9be235147acdfeed1a9f29cd123a2", class: "searchcraft-popover-list-item-link", href: this.href, onClick: this.handleLinkClick.bind(this) }, this.imageSource && l("div", { key: "6af7c3e754885730d8651a593f13b7b5b704a26d", class: "searchcraft-popover-list-item-image-wrapper" }, l("img", { key: "74c7e53467efd83ae95439a7065c1de2748113f5", alt: this.imageAlt, src: this.imageSource, class: "searchcraft-popover-list-item-image" })), l("div", { key: "25a12e5cf582b248773005f5fb58f7a15304d2d1", class: "searchcraft-popover-list-item-content" }, this.title && l("p", { key: "8169f7730feb832178adbc9bdb14a089e955a2ad", class: "searchcraft-popover-list-item-content-title" }, this.title), this.subtitle && l("p", { key: "96812df1bab635e3865bdfdb31f133ca629d800e", class: "searchcraft-popover-list-item-content-subtitle" }, this.subtitle))));
|
|
3877
3900
|
}
|
|
3878
3901
|
}, [0, "searchcraft-popover-list-item", {
|
|
3879
3902
|
item: [16],
|
|
@@ -3885,7 +3908,7 @@ const fc = Js, pc = /* @__PURE__ */ D(class extends F {
|
|
|
3885
3908
|
imageSource: [32],
|
|
3886
3909
|
imageAlt: [32]
|
|
3887
3910
|
}]);
|
|
3888
|
-
function
|
|
3911
|
+
function fr() {
|
|
3889
3912
|
if (typeof customElements > "u")
|
|
3890
3913
|
return;
|
|
3891
3914
|
["searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -3896,7 +3919,7 @@ function dr() {
|
|
|
3896
3919
|
}
|
|
3897
3920
|
});
|
|
3898
3921
|
}
|
|
3899
|
-
var
|
|
3922
|
+
var bs;
|
|
3900
3923
|
const mc = /* @__PURE__ */ D(class extends F {
|
|
3901
3924
|
constructor() {
|
|
3902
3925
|
super();
|
|
@@ -3912,46 +3935,46 @@ const mc = /* @__PURE__ */ D(class extends F {
|
|
|
3912
3935
|
f(this, "adClientResponseItems");
|
|
3913
3936
|
f(this, "searchResultsPage");
|
|
3914
3937
|
f(this, "searchResultsPerPage");
|
|
3915
|
-
f(this, "config", (
|
|
3938
|
+
f(this, "config", (bs = $.getState().core) == null ? void 0 : bs.config);
|
|
3916
3939
|
this.__registerHost();
|
|
3917
3940
|
}
|
|
3918
3941
|
renderWithADMAds() {
|
|
3919
3942
|
var r, s;
|
|
3920
|
-
return
|
|
3943
|
+
return l("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => l("searchcraft-ad", { adClientResponseItem: a, adContainerId: X(), adSource: "adMarketplace", key: a.id })), (s = this.searchClientResponseItems) == null ? void 0 : s.map((a, o) => l("searchcraft-popover-list-item", { item: a, key: a.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + o })));
|
|
3921
3944
|
}
|
|
3922
3945
|
renderWithCustomAds() {
|
|
3923
|
-
var u, h,
|
|
3924
|
-
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((
|
|
3946
|
+
var u, h, i, p;
|
|
3947
|
+
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
|
|
3925
3948
|
for (let g = 0; g < o; g++)
|
|
3926
|
-
r.push(
|
|
3949
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g}-ad` }));
|
|
3927
3950
|
c.forEach((g, k) => {
|
|
3928
3951
|
if (s && k % s === 0 && k + s < c.length && k >= s)
|
|
3929
3952
|
for (let b = 0; b < a; b++)
|
|
3930
|
-
r.push(
|
|
3931
|
-
r.push(
|
|
3953
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g.id}-ad-${b}` }));
|
|
3954
|
+
r.push(l("searchcraft-popover-list-item", { item: g, key: g.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + k }));
|
|
3932
3955
|
});
|
|
3933
3956
|
for (let g = 0; g < n; g++)
|
|
3934
|
-
r.push(
|
|
3935
|
-
return
|
|
3957
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g}-ad` }));
|
|
3958
|
+
return l("div", { class: "searchcraft-popover-list-view" }, r);
|
|
3936
3959
|
}
|
|
3937
3960
|
renderWithNativoAds() {
|
|
3938
|
-
var h,
|
|
3939
|
-
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((
|
|
3961
|
+
var h, i, p, g, k;
|
|
3962
|
+
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
|
|
3940
3963
|
for (let b = 0; b < n; b++)
|
|
3941
|
-
r.push(
|
|
3964
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b}-ad` }));
|
|
3942
3965
|
u.forEach((b, P) => {
|
|
3943
3966
|
if (a && (P + s) % a === 0 && P + a < u.length && P >= a)
|
|
3944
3967
|
for (let _ = 0; _ < o; _++)
|
|
3945
|
-
r.push(
|
|
3946
|
-
r.push(
|
|
3968
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b.id}-ad-${_}` }));
|
|
3969
|
+
r.push(l("searchcraft-popover-list-item", { item: b, key: b.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + P }));
|
|
3947
3970
|
});
|
|
3948
3971
|
for (let b = 0; b < c; b++)
|
|
3949
|
-
r.push(
|
|
3950
|
-
return
|
|
3972
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b}-ad` }));
|
|
3973
|
+
return l("div", { class: "searchcraft-popover-list-view" }, r);
|
|
3951
3974
|
}
|
|
3952
3975
|
renderWithNoAds() {
|
|
3953
3976
|
var r;
|
|
3954
|
-
return
|
|
3977
|
+
return l("div", { class: "searchcraft-popover-list-view" }, (r = this.searchClientResponseItems) == null ? void 0 : r.map((s, a) => l("searchcraft-popover-list-item", { item: s, key: s.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + a })));
|
|
3955
3978
|
}
|
|
3956
3979
|
render() {
|
|
3957
3980
|
var r;
|
|
@@ -3973,7 +3996,7 @@ const mc = /* @__PURE__ */ D(class extends F {
|
|
|
3973
3996
|
searchResultsPage: [2, "search-results-page"],
|
|
3974
3997
|
searchResultsPerPage: [2, "search-results-per-page"]
|
|
3975
3998
|
}]);
|
|
3976
|
-
function
|
|
3999
|
+
function ta() {
|
|
3977
4000
|
if (typeof customElements > "u")
|
|
3978
4001
|
return;
|
|
3979
4002
|
["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -3985,7 +4008,7 @@ function ea() {
|
|
|
3985
4008
|
customElements.get(t) || St();
|
|
3986
4009
|
break;
|
|
3987
4010
|
case "searchcraft-popover-list-item":
|
|
3988
|
-
customElements.get(t) ||
|
|
4011
|
+
customElements.get(t) || fr();
|
|
3989
4012
|
break;
|
|
3990
4013
|
}
|
|
3991
4014
|
});
|
|
@@ -4121,21 +4144,21 @@ const gc = /* @__PURE__ */ D(class extends F {
|
|
|
4121
4144
|
}
|
|
4122
4145
|
renderInlinePopover() {
|
|
4123
4146
|
const r = this.hasResultsToShow && this.isFocused;
|
|
4124
|
-
return
|
|
4147
|
+
return l("div", { class: re("searchcraft-popover-form searchcraft-popover-form-inline", {
|
|
4125
4148
|
"searchcraft-popover-form-active": r
|
|
4126
|
-
}) },
|
|
4149
|
+
}) }, l("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-inline-input" }, l("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this) })), r && l("div", { class: "searchcraft-popover-form-inline-wrapper" }, l("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }), l("searchcraft-popover-footer", null)));
|
|
4127
4150
|
}
|
|
4128
4151
|
renderModalPopover() {
|
|
4129
4152
|
if (this.isPopoverVisibleInState)
|
|
4130
|
-
return
|
|
4153
|
+
return l("div", { class: re("searchcraft-popover-form searchcraft-popover-form-modal", {
|
|
4131
4154
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4132
|
-
}) },
|
|
4155
|
+
}) }, l("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), l("div", { class: "searchcraft-popover-form-modal-wrapper" }, l("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-modal-input" }, l("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), l("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), l("div", { class: "searchcraft-popover-form-modal-popover-list-view" }, this.hasResultsToShow && l("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), l("searchcraft-popover-footer", null)));
|
|
4133
4156
|
}
|
|
4134
4157
|
renderFullscreenPopover() {
|
|
4135
4158
|
if (this.isPopoverVisibleInState)
|
|
4136
|
-
return
|
|
4159
|
+
return l("div", { class: re("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
|
|
4137
4160
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4138
|
-
}) },
|
|
4161
|
+
}) }, l("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input" }, l("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), l("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), l("div", { class: "searchcraft-popover-form-fullscreen-popover-list-view" }, this.hasResultsToShow && l("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), l("searchcraft-popover-footer", null));
|
|
4139
4162
|
}
|
|
4140
4163
|
render() {
|
|
4141
4164
|
switch (this.type) {
|
|
@@ -4165,7 +4188,7 @@ const gc = /* @__PURE__ */ D(class extends F {
|
|
|
4165
4188
|
searchResultsPerPage: [32],
|
|
4166
4189
|
modalElement: [32]
|
|
4167
4190
|
}]);
|
|
4168
|
-
function
|
|
4191
|
+
function ra() {
|
|
4169
4192
|
if (typeof customElements > "u")
|
|
4170
4193
|
return;
|
|
4171
4194
|
["searchcraft-popover-form", "searchcraft-ad", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-form", "searchcraft-input-label", "searchcraft-popover-footer", "searchcraft-popover-form", "searchcraft-popover-list-item", "searchcraft-popover-list-view"].forEach((t) => {
|
|
@@ -4183,27 +4206,27 @@ function ta() {
|
|
|
4183
4206
|
customElements.get(t) || wt();
|
|
4184
4207
|
break;
|
|
4185
4208
|
case "searchcraft-input-form":
|
|
4186
|
-
customElements.get(t) ||
|
|
4209
|
+
customElements.get(t) || Js();
|
|
4187
4210
|
break;
|
|
4188
4211
|
case "searchcraft-input-label":
|
|
4189
|
-
customElements.get(t) ||
|
|
4212
|
+
customElements.get(t) || dr();
|
|
4190
4213
|
break;
|
|
4191
4214
|
case "searchcraft-popover-footer":
|
|
4192
|
-
customElements.get(t) ||
|
|
4215
|
+
customElements.get(t) || ea();
|
|
4193
4216
|
break;
|
|
4194
4217
|
case "searchcraft-popover-form":
|
|
4195
|
-
customElements.get(t) ||
|
|
4218
|
+
customElements.get(t) || ra();
|
|
4196
4219
|
break;
|
|
4197
4220
|
case "searchcraft-popover-list-item":
|
|
4198
|
-
customElements.get(t) ||
|
|
4221
|
+
customElements.get(t) || fr();
|
|
4199
4222
|
break;
|
|
4200
4223
|
case "searchcraft-popover-list-view":
|
|
4201
|
-
customElements.get(t) ||
|
|
4224
|
+
customElements.get(t) || ta();
|
|
4202
4225
|
break;
|
|
4203
4226
|
}
|
|
4204
4227
|
});
|
|
4205
4228
|
}
|
|
4206
|
-
const vc =
|
|
4229
|
+
const vc = ra, bc = fr, yc = ta, Cc = /* @__PURE__ */ D(class extends F {
|
|
4207
4230
|
constructor() {
|
|
4208
4231
|
super();
|
|
4209
4232
|
/**
|
|
@@ -4232,11 +4255,11 @@ const vc = ta, bc = dr, yc = ea, Cc = /* @__PURE__ */ D(class extends F {
|
|
|
4232
4255
|
this.unsubscribe && this.unsubscribe();
|
|
4233
4256
|
}
|
|
4234
4257
|
render() {
|
|
4235
|
-
return !this.searchTerm || this.searchResultsCount === 0 ? null :
|
|
4258
|
+
return !this.searchTerm || this.searchResultsCount === 0 ? null : l("p", { class: "searchcraft-results-info" }, typeof this.template < "u" ? this.template({
|
|
4236
4259
|
range: [Number(this.range[0]), Number(this.range[1])],
|
|
4237
4260
|
count: this.count,
|
|
4238
4261
|
responseTime: this.responseTime
|
|
4239
|
-
}, { html:
|
|
4262
|
+
}, { html: et }) : `${Qs(this.count)} results found in ${this.responseTime}ms`);
|
|
4240
4263
|
}
|
|
4241
4264
|
}, [0, "searchcraft-results-info", {
|
|
4242
4265
|
template: [16],
|
|
@@ -4277,12 +4300,12 @@ const kc = Sc, wc = /* @__PURE__ */ D(class extends F {
|
|
|
4277
4300
|
f(this, "template");
|
|
4278
4301
|
f(this, "templateHtml");
|
|
4279
4302
|
f(this, "handleResultContainerClick", (r) => {
|
|
4280
|
-
var
|
|
4303
|
+
var i;
|
|
4281
4304
|
const s = $.getState(), a = s.getSearchcraftCore();
|
|
4282
4305
|
if (!r.target)
|
|
4283
4306
|
return;
|
|
4284
4307
|
const n = r.target.closest("a");
|
|
4285
|
-
if (!n || !((
|
|
4308
|
+
if (!n || !((i = this.hostElement) != null && i.contains(n)) || !a || !a.measureClient)
|
|
4286
4309
|
return;
|
|
4287
4310
|
const c = this.documentPosition, u = s.searchTerm, h = s.searchClientResponseItems.length || 0;
|
|
4288
4311
|
a.measureClient.sendMeasureEvent("document_clicked", {
|
|
@@ -4303,7 +4326,8 @@ const kc = Sc, wc = /* @__PURE__ */ D(class extends F {
|
|
|
4303
4326
|
if (this.item)
|
|
4304
4327
|
try {
|
|
4305
4328
|
this.templateHtml = (r = this.template) == null ? void 0 : r.call(this, this.item.document, this.index, {
|
|
4306
|
-
html:
|
|
4329
|
+
html: et,
|
|
4330
|
+
source_index: this.item.source_index
|
|
4307
4331
|
});
|
|
4308
4332
|
} catch (s) {
|
|
4309
4333
|
console.error("Invalid search result template:", s);
|
|
@@ -4311,7 +4335,7 @@ const kc = Sc, wc = /* @__PURE__ */ D(class extends F {
|
|
|
4311
4335
|
}
|
|
4312
4336
|
render() {
|
|
4313
4337
|
if (this.item)
|
|
4314
|
-
return typeof this.template > "u" ?
|
|
4338
|
+
return typeof this.template > "u" ? l("div", { class: "searchcraft-search-result searchcraft-search-result-no-template", onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown }, Object.entries(this.item.document).map(([r, s]) => l("p", { key: r }, l("strong", null, r), ": ", s))) : l("div", { class: "searchcraft-search-result", innerHTML: this.templateHtml, onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown });
|
|
4315
4339
|
}
|
|
4316
4340
|
}, [0, "searchcraft-search-result", {
|
|
4317
4341
|
item: [16],
|
|
@@ -4320,7 +4344,7 @@ const kc = Sc, wc = /* @__PURE__ */ D(class extends F {
|
|
|
4320
4344
|
template: [16],
|
|
4321
4345
|
templateHtml: [32]
|
|
4322
4346
|
}]);
|
|
4323
|
-
function
|
|
4347
|
+
function sa() {
|
|
4324
4348
|
if (typeof customElements > "u")
|
|
4325
4349
|
return;
|
|
4326
4350
|
["searchcraft-search-result"].forEach((t) => {
|
|
@@ -4331,7 +4355,7 @@ function ra() {
|
|
|
4331
4355
|
}
|
|
4332
4356
|
});
|
|
4333
4357
|
}
|
|
4334
|
-
const xc =
|
|
4358
|
+
const xc = sa, Rc = /* @__PURE__ */ D(class extends F {
|
|
4335
4359
|
constructor() {
|
|
4336
4360
|
super();
|
|
4337
4361
|
/**
|
|
@@ -4372,50 +4396,50 @@ const xc = ra, Rc = /* @__PURE__ */ D(class extends F {
|
|
|
4372
4396
|
], this.isSearchInProgress = r.isSearchInProgress, this.searchClientResponseItems = [...r.searchClientResponseItems], this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchTerm = r.searchTerm;
|
|
4373
4397
|
}
|
|
4374
4398
|
renderEmptyState() {
|
|
4375
|
-
return
|
|
4399
|
+
return l("div", { class: "searchcraft-search-results-empty-state" }, l("slot", { name: "empty-search" }));
|
|
4376
4400
|
}
|
|
4377
4401
|
renderNoResultsFoundState() {
|
|
4378
|
-
return
|
|
4402
|
+
return l("div", { class: "searchcraft-search-results" }, l("div", { class: "searchcraft-search-results-error-message" }, l("searchcraft-error-message", null, 'No search results found for "', this.searchTerm, '" query.')));
|
|
4379
4403
|
}
|
|
4380
4404
|
renderWithADMAds() {
|
|
4381
4405
|
var s, a, o;
|
|
4382
4406
|
const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
|
|
4383
|
-
return
|
|
4407
|
+
return l("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => l("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: X(), key: n.id })), r.map((n, c) => l("searchcraft-search-result", { key: n.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + c, index: c, item: n, template: this.template })));
|
|
4384
4408
|
}
|
|
4385
4409
|
renderWithCustomAds() {
|
|
4386
|
-
var u, h,
|
|
4387
|
-
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((
|
|
4410
|
+
var u, h, i, p, g, k;
|
|
4411
|
+
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = (g = this.searchClientResponseItems) != null && g.length ? this.searchClientResponseItems : (k = this.initialSearchClientResponseItems) != null && k.length ? this.initialSearchClientResponseItems : [];
|
|
4388
4412
|
for (let b = 0; b < o; b++)
|
|
4389
|
-
r.push(
|
|
4413
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b}-ad` }));
|
|
4390
4414
|
c.forEach((b, P) => {
|
|
4391
4415
|
if (s && P % s === 0 && P + s < c.length && P >= s)
|
|
4392
4416
|
for (let _ = 0; _ < a; _++)
|
|
4393
|
-
r.push(
|
|
4394
|
-
r.push(
|
|
4417
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b.id}-ad-${_}` }));
|
|
4418
|
+
r.push(l("searchcraft-search-result", { key: b.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + P, index: P, item: b, template: this.template }));
|
|
4395
4419
|
});
|
|
4396
4420
|
for (let b = 0; b < n; b++)
|
|
4397
|
-
r.push(
|
|
4398
|
-
return
|
|
4421
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b}-ad` }));
|
|
4422
|
+
return l("div", { class: "searchcraft-search-results" }, r);
|
|
4399
4423
|
}
|
|
4400
4424
|
renderWithNativoAds() {
|
|
4401
|
-
var h,
|
|
4402
|
-
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((
|
|
4425
|
+
var h, i, p, g, k, b, P;
|
|
4426
|
+
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = (b = this.searchClientResponseItems) != null && b.length ? this.searchClientResponseItems : (P = this.initialSearchClientResponseItems) != null && P.length ? this.initialSearchClientResponseItems : [];
|
|
4403
4427
|
for (let _ = 0; _ < n; _++)
|
|
4404
|
-
r.push(
|
|
4428
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
|
|
4405
4429
|
u.forEach((_, H) => {
|
|
4406
4430
|
if (a && (H + s) % a === 0 && H + a < u.length && H >= a)
|
|
4407
4431
|
for (let I = 0; I < o; I++)
|
|
4408
|
-
r.push(
|
|
4409
|
-
r.push(
|
|
4432
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_.id}-ad-${I}` }));
|
|
4433
|
+
r.push(l("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + H, index: H, item: _, template: this.template }));
|
|
4410
4434
|
});
|
|
4411
4435
|
for (let _ = 0; _ < c; _++)
|
|
4412
|
-
r.push(
|
|
4413
|
-
return
|
|
4436
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
|
|
4437
|
+
return l("div", { class: "searchcraft-search-results" }, r);
|
|
4414
4438
|
}
|
|
4415
4439
|
renderWithNoAds() {
|
|
4416
4440
|
var s, a;
|
|
4417
4441
|
const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
|
|
4418
|
-
return
|
|
4442
|
+
return l("div", { class: "searchcraft-search-results" }, r.map((o, n) => l("searchcraft-search-result", { key: o.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + n, index: n, item: o, template: this.template })));
|
|
4419
4443
|
}
|
|
4420
4444
|
render() {
|
|
4421
4445
|
var a;
|
|
@@ -4462,7 +4486,7 @@ function Ec() {
|
|
|
4462
4486
|
customElements.get(t) || wt();
|
|
4463
4487
|
break;
|
|
4464
4488
|
case "searchcraft-search-result":
|
|
4465
|
-
customElements.get(t) ||
|
|
4489
|
+
customElements.get(t) || sa();
|
|
4466
4490
|
break;
|
|
4467
4491
|
}
|
|
4468
4492
|
});
|
|
@@ -4516,7 +4540,7 @@ const Tc = Ec, Pc = /* @__PURE__ */ D(class extends F {
|
|
|
4516
4540
|
this.setSearchResultsPage(r);
|
|
4517
4541
|
}
|
|
4518
4542
|
render() {
|
|
4519
|
-
return
|
|
4543
|
+
return l("div", { key: "15ecbf48c824a161cd83bdab99dace8e44f1ab39", class: "searchcraft-select" }, this.label && l("label", { key: "aba433ae9c27c9405099cffcef923c3ad22d7fda", class: "searchcraft-select-label", id: this.labelId || `${this.inputId}-label`, htmlFor: this.inputId }, this.label), l("div", { key: "8df8a2ff05924c9c55cdd6e3827cd927cddab82a", class: "searchcraft-select-input-wrapper" }, l("select", { key: "1d5f492c2255f8ca1b6ea5e04a2726dda2f2c52f", "aria-labelledby": this.label ? this.labelId || `${this.inputId}-label` : void 0, class: "searchcraft-select-input", disabled: this.disabled, id: this.inputId, name: this.name, onChange: this.handleSelectChange }, (typeof this.options == "string" ? JSON.parse(this.options) : this.options).map(({ label: r, value: s, selected: a }) => l("option", { key: s, value: s, selected: a }, r))), l("svg", { key: "0ec6892b529f2e70027aadea47208582a65a97b7", class: "searchcraft-select-input-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", { key: "bced6b62378491d1d1c629b602d7d033d912c761" }, "Select dropdown icon"), l("path", { key: "659f8ebf9129e2e7941da949d29688c41c1472bb", d: "M5 7.5L10 12.5L15 7.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.caption && l("p", { key: "51217d926f68f79b6c3514f5fd769b56549fdce9", class: "searchcraft-select-caption" }, this.caption));
|
|
4520
4544
|
}
|
|
4521
4545
|
}, [0, "searchcraft-select", {
|
|
4522
4546
|
caption: [1],
|
|
@@ -4530,7 +4554,7 @@ const Tc = Ec, Pc = /* @__PURE__ */ D(class extends F {
|
|
|
4530
4554
|
setSearchResultsPage: [32],
|
|
4531
4555
|
setSearchResultsPerPage: [32]
|
|
4532
4556
|
}]);
|
|
4533
|
-
function
|
|
4557
|
+
function aa() {
|
|
4534
4558
|
if (typeof customElements > "u")
|
|
4535
4559
|
return;
|
|
4536
4560
|
["searchcraft-select"].forEach((t) => {
|
|
@@ -4577,7 +4601,7 @@ const $c = /* @__PURE__ */ D(class extends F {
|
|
|
4577
4601
|
}
|
|
4578
4602
|
render() {
|
|
4579
4603
|
if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
|
|
4580
|
-
return
|
|
4604
|
+
return l("div", { class: "searchcraft-search-results-per-page" }, l("div", { class: "searchcraft-search-results-per-page-select" }, l("label", { class: "searchcraft-search-results-per-page-select-label", htmlFor: "searchcraft-search-results-per-page-select-input" }, "Results Per Page"), l("div", { class: "searchcraft-search-results-per-page-select-input" }, l("searchcraft-select", { inputId: "searchcraft-search-results-per-page-select-input", name: "results-per-page", options: [...Array(5)].map((r, s) => {
|
|
4581
4605
|
const a = this.initialSearchResultsPerPage + Number(this.increment) * s;
|
|
4582
4606
|
return {
|
|
4583
4607
|
label: `${a}`,
|
|
@@ -4607,18 +4631,18 @@ function _c() {
|
|
|
4607
4631
|
customElements.get(t) || customElements.define(t, $c);
|
|
4608
4632
|
break;
|
|
4609
4633
|
case "searchcraft-select":
|
|
4610
|
-
customElements.get(t) ||
|
|
4634
|
+
customElements.get(t) || aa();
|
|
4611
4635
|
break;
|
|
4612
4636
|
}
|
|
4613
4637
|
});
|
|
4614
4638
|
}
|
|
4615
|
-
const Ic = _c, Ac = sa, Mc = Qs, Lc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-adm-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-ad:last-child .searchcraft-adm-ad{border-bottom:none}.searchcraft-adm-ad-link{align-items:flex-start;background-color:rgb(from blue r g b/5%);color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-adm-ad-link:focus,.searchcraft-adm-ad-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-adm-ad-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-adm-ad-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-adm-ad-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-adm-ad-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-adm-ad-content-title,.searchcraft-adm-ad-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-adm-ad-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-adm-ad-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:6px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius-sm);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:block}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:block}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.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);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .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 .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .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 .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{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-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.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 .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
4639
|
+
const Ic = _c, Ac = aa, Mc = Ks, Lc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-ad-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-ad-no-template>p{margin:0}.searchcraft-adm-ad{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:6px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius-sm);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:block}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:block}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.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);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .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 .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .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 .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{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-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.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 .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
4616
4640
|
`, Oc = /* @__PURE__ */ D(class extends F {
|
|
4617
4641
|
constructor() {
|
|
4618
4642
|
super(), this.__registerHost();
|
|
4619
4643
|
}
|
|
4620
4644
|
render() {
|
|
4621
|
-
return
|
|
4645
|
+
return l("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, Lc);
|
|
4622
4646
|
}
|
|
4623
4647
|
}, [0, "searchcraft-theme"]);
|
|
4624
4648
|
function Fc() {
|
|
@@ -4632,16 +4656,16 @@ function Fc() {
|
|
|
4632
4656
|
}
|
|
4633
4657
|
});
|
|
4634
4658
|
}
|
|
4635
|
-
const Dc = Fc, Hc =
|
|
4659
|
+
const Dc = Fc, Hc = Xs, na = () => {
|
|
4636
4660
|
No(), zo(), Vo(), Zo(), tc(), ac(), nc(), ic(), hc(), fc(), vc(), bc(), yc(), kc(), xc(), Ic(), Tc(), Ac(), Mc(), Dc(), Hc();
|
|
4637
4661
|
};
|
|
4638
|
-
globalThis.__scDefineCustomElements__ =
|
|
4639
|
-
const Nc = "@searchcraft/react-sdk", Uc = "0.10.
|
|
4662
|
+
globalThis.__scDefineCustomElements__ = na;
|
|
4663
|
+
const Nc = "@searchcraft/react-sdk", Uc = "0.10.4", vs = {
|
|
4640
4664
|
name: Nc,
|
|
4641
4665
|
version: Uc
|
|
4642
4666
|
};
|
|
4643
4667
|
async function ve(e, t) {
|
|
4644
|
-
const r = Object.entries(t).map(([o, n]) => typeof n == "boolean" ? n ? o : "" : `${o}="${String(n)}"`).filter(Boolean).join(" "), s = `<${e} ${r}></${e}>`, a = await
|
|
4668
|
+
const r = Object.entries(t).map(([o, n]) => typeof n == "boolean" ? n ? o : "" : `${o}="${String(n)}"`).filter(Boolean).join(" "), s = `<${e} ${r}></${e}>`, a = await Ya(s, {
|
|
4645
4669
|
fullDocument: !1,
|
|
4646
4670
|
clientHydrateAnnotations: !0
|
|
4647
4671
|
});
|
|
@@ -4785,8 +4809,8 @@ async function yi(e) {
|
|
|
4785
4809
|
class Ci extends mo {
|
|
4786
4810
|
constructor(t) {
|
|
4787
4811
|
super(t, {
|
|
4788
|
-
sdkName:
|
|
4789
|
-
sdkVersion:
|
|
4812
|
+
sdkName: vs.name,
|
|
4813
|
+
sdkVersion: vs.version
|
|
4790
4814
|
});
|
|
4791
4815
|
}
|
|
4792
4816
|
}
|
|
@@ -4794,7 +4818,7 @@ const Si = () => {
|
|
|
4794
4818
|
const e = document.querySelectorAll("[data-sc-component]");
|
|
4795
4819
|
for (const t of e)
|
|
4796
4820
|
t.innerHTML = t.getAttribute("data-sc-tag") || "";
|
|
4797
|
-
|
|
4821
|
+
na();
|
|
4798
4822
|
};
|
|
4799
4823
|
export {
|
|
4800
4824
|
Ci as Searchcraft,
|
|
@@ -4807,7 +4831,7 @@ export {
|
|
|
4807
4831
|
hi as SearchcraftSearchResults,
|
|
4808
4832
|
yi as SearchcraftSearchResultsPerPage,
|
|
4809
4833
|
vi as SearchcraftTheme,
|
|
4810
|
-
|
|
4834
|
+
na as defineCustomElements,
|
|
4811
4835
|
Si as hydrateSearchcraftComponents
|
|
4812
4836
|
};
|
|
4813
4837
|
//# sourceMappingURL=index.js.map
|