@searchcraft/vue-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/index.d.ts +32 -10
- package/dist/index.es.js +1067 -1043
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/themes/hologram.css +1 -1
- package/dist/themes/hologram.css.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
const
|
|
1
|
+
var Qa = Object.defineProperty;
|
|
2
|
+
var Ka = (e, t, r) => t in e ? Qa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var f = (e, t, r) => Ka(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { defineComponent as Xa, ref as Ja, getCurrentInstance as en, inject as tn, h as rn } from "vue";
|
|
5
|
+
const sn = "searchcraft-javascript-sdk", Ne = (
|
|
6
6
|
/* searchcraft-javascript-sdk */
|
|
7
7
|
{ experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !1, shadowDom: !1, slotRelocation: !0, updatable: !0 }
|
|
8
8
|
);
|
|
9
|
-
var
|
|
9
|
+
var an = Object.defineProperty, nn = (e, t) => {
|
|
10
10
|
for (var r in t)
|
|
11
|
-
|
|
12
|
-
},
|
|
11
|
+
an(e, r, { get: t[r], enumerable: !0 });
|
|
12
|
+
}, on = "http://www.w3.org/2000/svg", cn = "http://www.w3.org/1999/xhtml", ln = (e, t) => {
|
|
13
13
|
var r;
|
|
14
14
|
const s = t.$cmpMeta$;
|
|
15
15
|
Object.entries((r = s.$members$) != null ? r : {}).map(([o, [n]]) => {
|
|
@@ -27,7 +27,7 @@ var sn = Object.defineProperty, an = (e, t) => {
|
|
|
27
27
|
}), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) : c;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
},
|
|
30
|
+
}, er = /* @__PURE__ */ new WeakMap(), un = (e) => er.delete(e), ke = (e) => er.get(e), hn = (e, t) => {
|
|
31
31
|
const r = {
|
|
32
32
|
$flags$: 0,
|
|
33
33
|
$hostElement$: e,
|
|
@@ -35,9 +35,9 @@ var sn = Object.defineProperty, an = (e, t) => {
|
|
|
35
35
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
36
36
|
};
|
|
37
37
|
r.$onReadyPromise$ = new Promise((a) => r.$onReadyResolve$ = a), e["s-p"] = [], e["s-rc"] = [];
|
|
38
|
-
const s =
|
|
39
|
-
return
|
|
40
|
-
},
|
|
38
|
+
const s = er.set(e, r);
|
|
39
|
+
return ln(e, r), s;
|
|
40
|
+
}, Xr = (e, t) => t in e, St = (e, t) => (0, console.error)(e, t), kt = typeof window < "u" ? window : {}, De = kt.document || { head: {} }, D = kt.HTMLElement || class {
|
|
41
41
|
}, re = {
|
|
42
42
|
$flags$: 0,
|
|
43
43
|
$resourcesUrl$: "",
|
|
@@ -46,80 +46,80 @@ var sn = Object.defineProperty, an = (e, t) => {
|
|
|
46
46
|
ael: (e, t, r, s) => e.addEventListener(t, r, s),
|
|
47
47
|
rel: (e, t, r, s) => e.removeEventListener(t, r, s),
|
|
48
48
|
ce: (e, t) => new CustomEvent(e, t)
|
|
49
|
-
},
|
|
50
|
-
e.push(r),
|
|
51
|
-
},
|
|
49
|
+
}, dn = Ne.shadowDom, fn = (e) => Promise.resolve(e), Qt = !1, Jr = [], Rs = [], pn = (e, t) => (r) => {
|
|
50
|
+
e.push(r), Qt || (Qt = !0, re.$flags$ & 4 ? tr(Kt) : re.raf(Kt));
|
|
51
|
+
}, es = (e) => {
|
|
52
52
|
for (let t = 0; t < e.length; t++)
|
|
53
53
|
try {
|
|
54
54
|
e[t](performance.now());
|
|
55
55
|
} catch (r) {
|
|
56
|
-
|
|
56
|
+
St(r);
|
|
57
57
|
}
|
|
58
58
|
e.length = 0;
|
|
59
|
-
},
|
|
60
|
-
Jr
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
err: () =>
|
|
64
|
-
map: () =>
|
|
65
|
-
ok: () =>
|
|
66
|
-
unwrap: () =>
|
|
67
|
-
unwrapErr: () =>
|
|
59
|
+
}, Kt = () => {
|
|
60
|
+
es(Jr), es(Rs), (Qt = Jr.length > 0) && re.raf(Kt);
|
|
61
|
+
}, tr = (e) => fn().then(e), mn = /* @__PURE__ */ pn(Rs), rr = (e) => (e = typeof e, e === "object" || e === "function"), gn = {};
|
|
62
|
+
nn(gn, {
|
|
63
|
+
err: () => Es,
|
|
64
|
+
map: () => vn,
|
|
65
|
+
ok: () => Xt,
|
|
66
|
+
unwrap: () => bn,
|
|
67
|
+
unwrapErr: () => yn
|
|
68
68
|
});
|
|
69
|
-
var
|
|
69
|
+
var Xt = (e) => ({
|
|
70
70
|
isOk: !0,
|
|
71
71
|
isErr: !1,
|
|
72
72
|
value: e
|
|
73
|
-
}),
|
|
73
|
+
}), Es = (e) => ({
|
|
74
74
|
isOk: !1,
|
|
75
75
|
isErr: !0,
|
|
76
76
|
value: e
|
|
77
77
|
});
|
|
78
|
-
function
|
|
78
|
+
function vn(e, t) {
|
|
79
79
|
if (e.isOk) {
|
|
80
80
|
const r = t(e.value);
|
|
81
|
-
return r instanceof Promise ? r.then((s) =>
|
|
81
|
+
return r instanceof Promise ? r.then((s) => Xt(s)) : Xt(r);
|
|
82
82
|
}
|
|
83
83
|
if (e.isErr) {
|
|
84
84
|
const r = e.value;
|
|
85
|
-
return
|
|
85
|
+
return Es(r);
|
|
86
86
|
}
|
|
87
87
|
throw "should never get here";
|
|
88
88
|
}
|
|
89
|
-
var
|
|
89
|
+
var bn = (e) => {
|
|
90
90
|
if (e.isOk)
|
|
91
91
|
return e.value;
|
|
92
92
|
throw e.value;
|
|
93
|
-
},
|
|
93
|
+
}, yn = (e) => {
|
|
94
94
|
if (e.isErr)
|
|
95
95
|
return e.value;
|
|
96
96
|
throw e.value;
|
|
97
|
-
},
|
|
97
|
+
}, Ps = (e) => {
|
|
98
98
|
const t = e.__childNodes || e.childNodes;
|
|
99
|
-
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" &&
|
|
99
|
+
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ts(t, e.tagName).forEach((r) => {
|
|
100
100
|
var s;
|
|
101
|
-
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s =
|
|
101
|
+
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = Cn(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
|
|
102
102
|
});
|
|
103
103
|
for (const r of t)
|
|
104
|
-
r.nodeType === 1 && (r.__childNodes || r.childNodes).length &&
|
|
104
|
+
r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Ps(r);
|
|
105
105
|
};
|
|
106
|
-
function
|
|
106
|
+
function Ts(e, t, r) {
|
|
107
107
|
let s = 0, a = [], o;
|
|
108
108
|
for (; s < e.length; s++)
|
|
109
|
-
o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...
|
|
109
|
+
o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...Ts(o.childNodes, t, r)];
|
|
110
110
|
return a;
|
|
111
111
|
}
|
|
112
|
-
var
|
|
112
|
+
var Cn = (e, t, r = !0) => {
|
|
113
113
|
const s = [];
|
|
114
114
|
for ((r && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
|
|
115
115
|
s.push(e);
|
|
116
116
|
return s;
|
|
117
|
-
},
|
|
118
|
-
},
|
|
117
|
+
}, ts = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Xe = (e, t = "") => () => {
|
|
118
|
+
}, l = (e, t, ...r) => {
|
|
119
119
|
let s = null, a = null, o = null, n = !1, c = !1;
|
|
120
120
|
const u = [], h = (p) => {
|
|
121
121
|
for (let g = 0; g < p.length; g++)
|
|
122
|
-
s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !
|
|
122
|
+
s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !rr(s)) && (s = String(s)), n && c ? u[u.length - 1].$text$ += s : u.push(n ? vt(null, s) : s), c = n);
|
|
123
123
|
};
|
|
124
124
|
if (h(r), t) {
|
|
125
125
|
t.key && (a = t.key), t.name && (o = t.name);
|
|
@@ -132,11 +132,11 @@ var yn = (e, t, r = !0) => {
|
|
|
132
132
|
return e(
|
|
133
133
|
t === null ? {} : t,
|
|
134
134
|
u,
|
|
135
|
-
|
|
135
|
+
wn
|
|
136
136
|
);
|
|
137
|
-
const
|
|
138
|
-
return
|
|
139
|
-
},
|
|
137
|
+
const i = vt(e, null);
|
|
138
|
+
return i.$attrs$ = t, u.length > 0 && (i.$children$ = u), i.$key$ = a, i.$name$ = o, i;
|
|
139
|
+
}, vt = (e, t) => {
|
|
140
140
|
const r = {
|
|
141
141
|
$flags$: 0,
|
|
142
142
|
$tag$: e,
|
|
@@ -145,57 +145,57 @@ var yn = (e, t, r = !0) => {
|
|
|
145
145
|
$children$: null
|
|
146
146
|
};
|
|
147
147
|
return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
|
|
148
|
-
},
|
|
149
|
-
forEach: (e, t) => e.map(
|
|
150
|
-
map: (e, t) => e.map(
|
|
151
|
-
},
|
|
148
|
+
}, Sn = {}, kn = (e) => e && e.$tag$ === Sn, wn = {
|
|
149
|
+
forEach: (e, t) => e.map(rs).forEach(t),
|
|
150
|
+
map: (e, t) => e.map(rs).map(t).map(xn)
|
|
151
|
+
}, rs = (e) => ({
|
|
152
152
|
vattrs: e.$attrs$,
|
|
153
153
|
vchildren: e.$children$,
|
|
154
154
|
vkey: e.$key$,
|
|
155
155
|
vname: e.$name$,
|
|
156
156
|
vtag: e.$tag$,
|
|
157
157
|
vtext: e.$text$
|
|
158
|
-
}),
|
|
158
|
+
}), xn = (e) => {
|
|
159
159
|
if (typeof e.vtag == "function") {
|
|
160
160
|
const r = { ...e.vattrs };
|
|
161
|
-
return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname),
|
|
161
|
+
return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), l(e.vtag, r, ...e.vchildren || []);
|
|
162
162
|
}
|
|
163
|
-
const t =
|
|
163
|
+
const t = vt(e.vtag, e.vtext);
|
|
164
164
|
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
|
165
|
-
},
|
|
166
|
-
const s =
|
|
165
|
+
}, $s = (e, t) => e != null && !rr(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Rn = (e) => e, Ce = (e, t, r) => {
|
|
166
|
+
const s = Rn(e);
|
|
167
167
|
return {
|
|
168
|
-
emit: (a) =>
|
|
168
|
+
emit: (a) => _s(s, t, {
|
|
169
169
|
bubbles: !0,
|
|
170
170
|
composed: !0,
|
|
171
171
|
cancelable: !0,
|
|
172
172
|
detail: a
|
|
173
173
|
})
|
|
174
174
|
};
|
|
175
|
-
},
|
|
175
|
+
}, _s = (e, t, r) => {
|
|
176
176
|
const s = re.ce(t, r);
|
|
177
177
|
return e.dispatchEvent(s), s;
|
|
178
|
-
},
|
|
178
|
+
}, ft = /* @__PURE__ */ new WeakMap(), ss = (e, t, r, s, a, o) => {
|
|
179
179
|
if (r !== s) {
|
|
180
|
-
let n =
|
|
180
|
+
let n = Xr(e, t), c = t.toLowerCase();
|
|
181
181
|
if (t === "class") {
|
|
182
|
-
const u = e.classList, h =
|
|
183
|
-
let
|
|
184
|
-
e["s-si"] ? (
|
|
185
|
-
p.startsWith(e["s-si"]) &&
|
|
186
|
-
}),
|
|
182
|
+
const u = e.classList, h = as(r);
|
|
183
|
+
let i = as(s);
|
|
184
|
+
e["s-si"] ? (i.push(e["s-si"]), h.forEach((p) => {
|
|
185
|
+
p.startsWith(e["s-si"]) && i.push(p);
|
|
186
|
+
}), 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))));
|
|
187
187
|
} else if (t === "style") {
|
|
188
188
|
for (const u in r)
|
|
189
189
|
(!s || s[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
|
|
190
190
|
for (const u in s)
|
|
191
191
|
(!r || s[u] !== r[u]) && (u.includes("-") ? e.style.setProperty(u, s[u]) : e.style[u] = s[u]);
|
|
192
192
|
} else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
|
|
193
|
-
if (t[2] === "-" ? t = t.slice(3) :
|
|
194
|
-
const u = t.endsWith(
|
|
195
|
-
t = t.replace(
|
|
193
|
+
if (t[2] === "-" ? t = t.slice(3) : Xr(kt, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
|
|
194
|
+
const u = t.endsWith(Is);
|
|
195
|
+
t = t.replace(Pn, ""), r && re.rel(e, t, r, u), s && re.ael(e, t, s, u);
|
|
196
196
|
}
|
|
197
197
|
} else {
|
|
198
|
-
const u =
|
|
198
|
+
const u = rr(s);
|
|
199
199
|
if ((n || u && s !== null) && !a)
|
|
200
200
|
try {
|
|
201
201
|
if (e.tagName.includes("-"))
|
|
@@ -209,14 +209,14 @@ var yn = (e, t, r = !0) => {
|
|
|
209
209
|
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));
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
},
|
|
212
|
+
}, En = /\s/, as = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(En) : []), Is = "Capture", Pn = new RegExp(Is + "$"), As = (e, t, r) => {
|
|
213
213
|
const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, a = e && e.$attrs$ || {}, o = t.$attrs$ || {};
|
|
214
|
-
for (const n of
|
|
215
|
-
n in o ||
|
|
216
|
-
for (const n of
|
|
217
|
-
|
|
214
|
+
for (const n of ns(Object.keys(a)))
|
|
215
|
+
n in o || ss(s, n, a[n], void 0, r, t.$flags$);
|
|
216
|
+
for (const n of ns(Object.keys(o)))
|
|
217
|
+
ss(s, n, a[n], o[n], r, t.$flags$);
|
|
218
218
|
};
|
|
219
|
-
function
|
|
219
|
+
function ns(e) {
|
|
220
220
|
return e.includes("ref") ? (
|
|
221
221
|
// we need to sort these to ensure that `'ref'` is the last attr
|
|
222
222
|
[...e.filter((t) => t !== "ref"), "ref"]
|
|
@@ -225,11 +225,11 @@ function as(e) {
|
|
|
225
225
|
e
|
|
226
226
|
);
|
|
227
227
|
}
|
|
228
|
-
var
|
|
228
|
+
var Jt, sr, bt = !1, yt = !1, ar = !1, ae = !1, Ct = (e, t, r) => {
|
|
229
229
|
var s;
|
|
230
230
|
const a = t.$children$[r];
|
|
231
231
|
let o = 0, n, c, u;
|
|
232
|
-
if (
|
|
232
|
+
if (bt || (ar = !0, a.$tag$ === "slot" && (a.$flags$ |= a.$children$ ? (
|
|
233
233
|
// slot element has fallback content
|
|
234
234
|
// still create an element that "mocks" the slot element
|
|
235
235
|
2
|
|
@@ -244,82 +244,82 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
244
244
|
n = a.$elm$ = De.createTextNode("");
|
|
245
245
|
else {
|
|
246
246
|
if (ae || (ae = a.$tag$ === "svg"), n = a.$elm$ = De.createElementNS(
|
|
247
|
-
ae ?
|
|
248
|
-
!
|
|
249
|
-
), ae && a.$tag$ === "foreignObject" && (ae = !1),
|
|
247
|
+
ae ? on : cn,
|
|
248
|
+
!bt && Ne.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
|
|
249
|
+
), ae && a.$tag$ === "foreignObject" && (ae = !1), As(null, a, ae), a.$children$)
|
|
250
250
|
for (o = 0; o < a.$children$.length; ++o)
|
|
251
|
-
c =
|
|
251
|
+
c = Ct(e, a, o), c && n.appendChild(c);
|
|
252
252
|
a.$tag$ === "svg" ? ae = !1 : n.tagName === "foreignObject" && (ae = !0);
|
|
253
253
|
}
|
|
254
|
-
return n["s-hn"] =
|
|
255
|
-
},
|
|
254
|
+
return n["s-hn"] = sr, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Jt, 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$ && Je(e.$elm$, !1)), n;
|
|
255
|
+
}, Je = (e, t) => {
|
|
256
256
|
re.$flags$ |= 1;
|
|
257
257
|
const r = Array.from(e.__childNodes || e.childNodes);
|
|
258
258
|
e["s-sr"] && Ne.experimentalSlotFixes;
|
|
259
259
|
for (let s = r.length - 1; s >= 0; s--) {
|
|
260
260
|
const a = r[s];
|
|
261
|
-
a["s-hn"] !==
|
|
261
|
+
a["s-hn"] !== sr && a["s-ol"] && (Se(et(a).parentNode, a, et(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, ar = !0), t && Je(a, t);
|
|
262
262
|
}
|
|
263
263
|
re.$flags$ &= -2;
|
|
264
|
-
},
|
|
264
|
+
}, Ms = (e, t, r, s, a, o) => {
|
|
265
265
|
let n = e["s-cr"] && e["s-cr"].parentNode || e, c;
|
|
266
266
|
for (; a <= o; ++a)
|
|
267
|
-
s[a] && (c =
|
|
268
|
-
},
|
|
267
|
+
s[a] && (c = Ct(null, r, a), c && (s[a].$elm$ = c, Se(n, c, et(t))));
|
|
268
|
+
}, Ls = (e, t, r) => {
|
|
269
269
|
for (let s = t; s <= r; ++s) {
|
|
270
270
|
const a = e[s];
|
|
271
271
|
if (a) {
|
|
272
272
|
const o = a.$elm$;
|
|
273
|
-
o && (
|
|
273
|
+
o && (yt = !0, o["s-ol"] ? o["s-ol"].remove() : Je(o, !0), o.remove());
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
},
|
|
277
|
-
let o = 0, n = 0, c = 0, u = 0, h = t.length - 1,
|
|
276
|
+
}, Tn = (e, t, r, s, a = !1) => {
|
|
277
|
+
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, _;
|
|
278
278
|
for (; o <= h && n <= g; )
|
|
279
|
-
if (
|
|
280
|
-
|
|
279
|
+
if (i == null)
|
|
280
|
+
i = t[++o];
|
|
281
281
|
else if (p == null)
|
|
282
282
|
p = t[--h];
|
|
283
283
|
else if (k == null)
|
|
284
284
|
k = s[++n];
|
|
285
285
|
else if (b == null)
|
|
286
286
|
b = s[--g];
|
|
287
|
-
else if (
|
|
288
|
-
Oe(
|
|
289
|
-
else if (
|
|
287
|
+
else if (pt(i, k, a))
|
|
288
|
+
Oe(i, k, a), i = t[++o], k = s[++n];
|
|
289
|
+
else if (pt(p, b, a))
|
|
290
290
|
Oe(p, b, a), p = t[--h], b = s[--g];
|
|
291
|
-
else if (
|
|
292
|
-
(
|
|
293
|
-
else if (
|
|
294
|
-
(
|
|
291
|
+
else if (pt(i, b, a))
|
|
292
|
+
(i.$tag$ === "slot" || b.$tag$ === "slot") && Je(i.$elm$.parentNode, !1), Oe(i, b, a), Se(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], b = s[--g];
|
|
293
|
+
else if (pt(p, k, a))
|
|
294
|
+
(i.$tag$ === "slot" || b.$tag$ === "slot") && Je(p.$elm$.parentNode, !1), Oe(p, k, a), Se(e, p.$elm$, i.$elm$), p = t[--h], k = s[++n];
|
|
295
295
|
else {
|
|
296
296
|
for (c = -1, u = o; u <= h; ++u)
|
|
297
297
|
if (t[u] && t[u].$key$ !== null && t[u].$key$ === k.$key$) {
|
|
298
298
|
c = u;
|
|
299
299
|
break;
|
|
300
300
|
}
|
|
301
|
-
c >= 0 ? (_ = t[c], _.$tag$ !== k.$tag$ ? P =
|
|
302
|
-
|
|
301
|
+
c >= 0 ? (_ = t[c], _.$tag$ !== k.$tag$ ? P = Ct(t && t[n], r, c) : (Oe(_, k, a), t[c] = void 0, P = _.$elm$), k = s[++n]) : (P = Ct(t && t[n], r, n), k = s[++n]), P && Se(
|
|
302
|
+
et(i.$elm$).parentNode,
|
|
303
303
|
P,
|
|
304
|
-
|
|
304
|
+
et(i.$elm$)
|
|
305
305
|
);
|
|
306
306
|
}
|
|
307
|
-
o > h ?
|
|
307
|
+
o > h ? Ms(
|
|
308
308
|
e,
|
|
309
309
|
s[g + 1] == null ? null : s[g + 1].$elm$,
|
|
310
310
|
r,
|
|
311
311
|
s,
|
|
312
312
|
n,
|
|
313
313
|
g
|
|
314
|
-
) : n > g &&
|
|
315
|
-
},
|
|
314
|
+
) : n > g && Ls(t, o, h);
|
|
315
|
+
}, pt = (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, et = (e) => e && e["s-ol"] || e, Oe = (e, t, r = !1) => {
|
|
316
316
|
const s = t.$elm$ = e.$elm$, a = e.$children$, o = t.$children$, n = t.$tag$, c = t.$text$;
|
|
317
317
|
let u;
|
|
318
|
-
c === null ? (ae = n === "svg" ? !0 : n === "foreignObject" ? !1 : ae, n === "slot" && !
|
|
318
|
+
c === null ? (ae = n === "svg" ? !0 : n === "foreignObject" ? !1 : ae, n === "slot" && !bt || As(e, t, ae), a !== null && o !== null ? Tn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), Ms(s, null, t, o, 0, o.length - 1)) : (
|
|
319
319
|
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
320
|
-
!r && Ne.updatable && a !== null &&
|
|
320
|
+
!r && Ne.updatable && a !== null && Ls(a, 0, a.length - 1)
|
|
321
321
|
), ae && n === "svg" && (ae = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
|
|
322
|
-
}, me = [],
|
|
322
|
+
}, me = [], Os = (e) => {
|
|
323
323
|
let t, r, s;
|
|
324
324
|
const a = e.__childNodes || e.childNodes;
|
|
325
325
|
for (const o of a) {
|
|
@@ -328,39 +328,39 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
328
328
|
const n = o["s-sn"];
|
|
329
329
|
for (s = r.length - 1; s >= 0; s--)
|
|
330
330
|
if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== o["s-hn"])
|
|
331
|
-
if (
|
|
331
|
+
if (ts(t, n)) {
|
|
332
332
|
let c = me.find((u) => u.$nodeToRelocate$ === t);
|
|
333
|
-
|
|
333
|
+
yt = !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"], me.push({
|
|
334
334
|
$slotRefNode$: o,
|
|
335
335
|
$nodeToRelocate$: t
|
|
336
336
|
})), t["s-sr"] && me.map((u) => {
|
|
337
|
-
|
|
337
|
+
ts(u.$nodeToRelocate$, t["s-sn"]) && (c = me.find((h) => h.$nodeToRelocate$ === t), c && !u.$slotRefNode$ && (u.$slotRefNode$ = c.$slotRefNode$));
|
|
338
338
|
});
|
|
339
339
|
} else me.some((c) => c.$nodeToRelocate$ === t) || me.push({
|
|
340
340
|
$nodeToRelocate$: t
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
|
-
o.nodeType === 1 &&
|
|
343
|
+
o.nodeType === 1 && Os(o);
|
|
344
344
|
}
|
|
345
|
-
}, Se = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r),
|
|
345
|
+
}, Se = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), $n = (e, t, r = !1) => {
|
|
346
346
|
var s, a, o, n;
|
|
347
|
-
const c = e.$hostElement$, u = e.$vnode$ ||
|
|
348
|
-
if (
|
|
349
|
-
for (const
|
|
350
|
-
c.hasAttribute(
|
|
351
|
-
h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = u.$elm$ = c,
|
|
347
|
+
const c = e.$hostElement$, u = e.$vnode$ || vt(null, null), h = kn(t) ? t : l(null, null, t);
|
|
348
|
+
if (sr = c.tagName, r && h.$attrs$)
|
|
349
|
+
for (const i of Object.keys(h.$attrs$))
|
|
350
|
+
c.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (h.$attrs$[i] = c[i]);
|
|
351
|
+
h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = u.$elm$ = c, bt = dn, Jt = c["s-cr"], yt = !1, Oe(u, h, r);
|
|
352
352
|
{
|
|
353
|
-
if (re.$flags$ |= 1,
|
|
354
|
-
|
|
355
|
-
for (const
|
|
356
|
-
const p =
|
|
353
|
+
if (re.$flags$ |= 1, ar) {
|
|
354
|
+
Os(h.$elm$);
|
|
355
|
+
for (const i of me) {
|
|
356
|
+
const p = i.$nodeToRelocate$;
|
|
357
357
|
if (!p["s-ol"]) {
|
|
358
358
|
const g = De.createTextNode("");
|
|
359
359
|
g["s-nr"] = p, Se(p.parentNode, p["s-ol"] = g, p);
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
for (const
|
|
363
|
-
const p =
|
|
362
|
+
for (const i of me) {
|
|
363
|
+
const p = i.$nodeToRelocate$, g = i.$slotRefNode$;
|
|
364
364
|
if (g) {
|
|
365
365
|
const k = g.parentNode;
|
|
366
366
|
let b = g.nextSibling;
|
|
@@ -385,10 +385,10 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
385
385
|
p.nodeType === 1 && (r && (p["s-ih"] = (n = p.hidden) != null ? n : !1), p.hidden = !0);
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
|
|
388
|
+
yt && Ps(h.$elm$), re.$flags$ &= -2, me.length = 0;
|
|
389
389
|
}
|
|
390
|
-
|
|
391
|
-
},
|
|
390
|
+
Jt = void 0;
|
|
391
|
+
}, Fs = (e, t) => {
|
|
392
392
|
if (t && !e.$onRenderResolve$ && t["s-p"]) {
|
|
393
393
|
const r = t["s-p"].push(
|
|
394
394
|
new Promise(
|
|
@@ -398,55 +398,55 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
398
398
|
)
|
|
399
399
|
);
|
|
400
400
|
}
|
|
401
|
-
},
|
|
401
|
+
}, nr = (e, t) => {
|
|
402
402
|
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
|
403
403
|
e.$flags$ |= 512;
|
|
404
404
|
return;
|
|
405
405
|
}
|
|
406
|
-
return
|
|
407
|
-
},
|
|
408
|
-
const r = e.$hostElement$, s =
|
|
406
|
+
return Fs(e, e.$ancestorComponent$), mn(() => _n(e, t));
|
|
407
|
+
}, _n = (e, t) => {
|
|
408
|
+
const r = e.$hostElement$, s = Xe("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
|
|
409
409
|
if (!a)
|
|
410
410
|
throw new Error(
|
|
411
411
|
`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`
|
|
412
412
|
);
|
|
413
413
|
let o;
|
|
414
|
-
return s(),
|
|
415
|
-
},
|
|
414
|
+
return s(), In(o, () => Mn(e, a, t));
|
|
415
|
+
}, In = (e, t) => An(e) ? e.then(t).catch((r) => {
|
|
416
416
|
console.error(r), t();
|
|
417
|
-
}) : t(),
|
|
417
|
+
}) : t(), An = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Mn = async (e, t, r) => {
|
|
418
418
|
var s;
|
|
419
|
-
const a = e.$hostElement$, o =
|
|
420
|
-
|
|
419
|
+
const a = e.$hostElement$, o = Xe("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Xe("render", e.$cmpMeta$.$tagName$);
|
|
420
|
+
Ln(e, t, a, r), n && (n.map((u) => u()), a["s-rc"] = void 0), c(), o();
|
|
421
421
|
{
|
|
422
|
-
const u = (s = a["s-p"]) != null ? s : [], h = () =>
|
|
422
|
+
const u = (s = a["s-p"]) != null ? s : [], h = () => On(e);
|
|
423
423
|
u.length === 0 ? h() : (Promise.all(u).then(h), e.$flags$ |= 4, u.length = 0);
|
|
424
424
|
}
|
|
425
|
-
},
|
|
425
|
+
}, Ln = (e, t, r, s) => {
|
|
426
426
|
try {
|
|
427
|
-
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2,
|
|
427
|
+
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, $n(e, t, s);
|
|
428
428
|
} catch (a) {
|
|
429
|
-
|
|
429
|
+
St(a, e.$hostElement$);
|
|
430
430
|
}
|
|
431
431
|
return null;
|
|
432
|
-
}, Ln = (e) => {
|
|
433
|
-
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ke("postUpdate", t), a = r, o = e.$ancestorComponent$;
|
|
434
|
-
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Fs(r), Fn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || On()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && er(() => ar(e, !1)), e.$flags$ &= -517;
|
|
435
432
|
}, On = (e) => {
|
|
436
|
-
|
|
437
|
-
|
|
433
|
+
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Xe("postUpdate", t), a = r, o = e.$ancestorComponent$;
|
|
434
|
+
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Ds(r), Dn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Fn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && tr(() => nr(e, !1)), e.$flags$ &= -517;
|
|
435
|
+
}, Fn = (e) => {
|
|
436
|
+
Ds(De.documentElement), tr(() => _s(kt, "appload", { detail: { namespace: sn } }));
|
|
437
|
+
}, Dn = (e, t, r, s) => {
|
|
438
438
|
if (e && e[t])
|
|
439
439
|
try {
|
|
440
440
|
return e[t](r);
|
|
441
441
|
} catch (a) {
|
|
442
|
-
|
|
442
|
+
St(a, s);
|
|
443
443
|
}
|
|
444
|
-
},
|
|
444
|
+
}, Ds = (e) => {
|
|
445
445
|
var t;
|
|
446
446
|
return e.classList.add((t = Ne.hydratedSelectorName) != null ? t : "hydrated");
|
|
447
|
-
},
|
|
447
|
+
}, Hn = (e, t) => ke(e).$instanceValues$.get(t), os = (e, t, r, s) => {
|
|
448
448
|
const a = ke(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, u = o;
|
|
449
|
-
r =
|
|
449
|
+
r = $s(r, s.$members$[t][0]);
|
|
450
450
|
const h = Number.isNaN(n) && Number.isNaN(r);
|
|
451
451
|
if (r !== n && !h) {
|
|
452
452
|
a.$instanceValues$.set(t, r);
|
|
@@ -457,11 +457,11 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
457
457
|
try {
|
|
458
458
|
u[g](r, n, t);
|
|
459
459
|
} catch (k) {
|
|
460
|
-
|
|
460
|
+
St(k, o);
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
|
-
(c & 18) === 2 &&
|
|
464
|
+
(c & 18) === 2 && nr(a, !1);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
}, Nn = (e, t, r) => {
|
|
@@ -472,23 +472,23 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
472
472
|
const n = Object.entries((s = t.$members$) != null ? s : {});
|
|
473
473
|
n.map(([c, [u]]) => {
|
|
474
474
|
if (u & 31 || u & 32) {
|
|
475
|
-
const { get: h, set:
|
|
476
|
-
h && (t.$members$[c][0] |= 2048),
|
|
475
|
+
const { get: h, set: i } = Object.getOwnPropertyDescriptor(o, c) || {};
|
|
476
|
+
h && (t.$members$[c][0] |= 2048), i && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
|
|
477
477
|
get() {
|
|
478
|
-
return h ? h.apply(this) :
|
|
478
|
+
return h ? h.apply(this) : Hn(this, c);
|
|
479
479
|
},
|
|
480
480
|
configurable: !0,
|
|
481
481
|
enumerable: !0
|
|
482
482
|
}), Object.defineProperty(o, c, {
|
|
483
483
|
set(p) {
|
|
484
484
|
const g = ke(this);
|
|
485
|
-
if (
|
|
485
|
+
if (i) {
|
|
486
486
|
const k = u & 32 ? this[c] : g.$hostElement$[c];
|
|
487
|
-
typeof k > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && k && g.$instanceValues$.set(c, k),
|
|
487
|
+
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, [$s(p, u)]), p = u & 32 ? this[c] : g.$hostElement$[c], os(this, c, p, t);
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
490
|
{
|
|
491
|
-
|
|
491
|
+
os(this, c, p, t);
|
|
492
492
|
return;
|
|
493
493
|
}
|
|
494
494
|
}
|
|
@@ -497,27 +497,27 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
497
497
|
});
|
|
498
498
|
{
|
|
499
499
|
const c = /* @__PURE__ */ new Map();
|
|
500
|
-
o.attributeChangedCallback = function(u, h,
|
|
500
|
+
o.attributeChangedCallback = function(u, h, i) {
|
|
501
501
|
re.jmp(() => {
|
|
502
502
|
var p;
|
|
503
503
|
const g = c.get(u);
|
|
504
504
|
if (!(this.hasOwnProperty(g) && Ne.lazyLoad)) {
|
|
505
505
|
if (o.hasOwnProperty(g) && typeof this[g] == "number" && // cast type to number to avoid TS compiler issues
|
|
506
|
-
this[g] ==
|
|
506
|
+
this[g] == i)
|
|
507
507
|
return;
|
|
508
508
|
if (g == null) {
|
|
509
509
|
const b = ke(this), P = b == null ? void 0 : b.$flags$;
|
|
510
|
-
if (P && !(P & 8) && P & 128 &&
|
|
510
|
+
if (P && !(P & 8) && P & 128 && i !== h) {
|
|
511
511
|
const O = this, T = (p = t.$watchers$) == null ? void 0 : p[u];
|
|
512
512
|
T == null || T.forEach((ue) => {
|
|
513
|
-
O[ue] != null && O[ue].call(O,
|
|
513
|
+
O[ue] != null && O[ue].call(O, i, h, u);
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
516
|
return;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
const k = Object.getOwnPropertyDescriptor(o, g);
|
|
520
|
-
|
|
520
|
+
i = i === null && typeof this[g] == "boolean" ? !1 : i, i !== this[g] && (!k.get || k.set) && (this[g] = i);
|
|
521
521
|
});
|
|
522
522
|
}, e.observedAttributes = Array.from(
|
|
523
523
|
/* @__PURE__ */ new Set([
|
|
@@ -526,15 +526,15 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
526
526
|
([u, h]) => h[0] & 15
|
|
527
527
|
/* HasAttribute */
|
|
528
528
|
).map(([u, h]) => {
|
|
529
|
-
const
|
|
530
|
-
return c.set(
|
|
529
|
+
const i = h[1] || u;
|
|
530
|
+
return c.set(i, u), i;
|
|
531
531
|
})
|
|
532
532
|
])
|
|
533
533
|
);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
return e;
|
|
537
|
-
},
|
|
537
|
+
}, Un = async (e, t, r, s) => {
|
|
538
538
|
if (!(t.$flags$ & 32)) {
|
|
539
539
|
t.$flags$ |= 32;
|
|
540
540
|
{
|
|
@@ -545,22 +545,22 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
545
545
|
);
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
const a = t.$ancestorComponent$, o = () =>
|
|
548
|
+
const a = t.$ancestorComponent$, o = () => nr(t, !0);
|
|
549
549
|
a && a["s-rc"] ? a["s-rc"].push(o) : o();
|
|
550
|
-
},
|
|
551
|
-
},
|
|
550
|
+
}, zn = (e, t) => {
|
|
551
|
+
}, jn = (e) => {
|
|
552
552
|
if (!(re.$flags$ & 1)) {
|
|
553
|
-
const t = ke(e), r = t.$cmpMeta$, s =
|
|
553
|
+
const t = ke(e), r = t.$cmpMeta$, s = Xe("connectedCallback", r.$tagName$);
|
|
554
554
|
if (t.$flags$ & 1)
|
|
555
|
-
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() =>
|
|
555
|
+
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => zn());
|
|
556
556
|
else {
|
|
557
557
|
t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
558
|
-
r.$flags$ & 12 &&
|
|
558
|
+
r.$flags$ & 12 && Vn(e);
|
|
559
559
|
{
|
|
560
560
|
let a = e;
|
|
561
561
|
for (; a = a.parentNode || a.host; )
|
|
562
562
|
if (a["s-p"]) {
|
|
563
|
-
|
|
563
|
+
Fs(t, t.$ancestorComponent$ = a);
|
|
564
564
|
break;
|
|
565
565
|
}
|
|
566
566
|
}
|
|
@@ -569,18 +569,18 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
569
569
|
const n = e[a];
|
|
570
570
|
delete e[a], e[a] = n;
|
|
571
571
|
}
|
|
572
|
-
}),
|
|
572
|
+
}), Un(e, t);
|
|
573
573
|
}
|
|
574
574
|
s();
|
|
575
575
|
}
|
|
576
|
-
},
|
|
576
|
+
}, Vn = (e) => {
|
|
577
577
|
const t = e["s-cr"] = De.createComment(
|
|
578
578
|
""
|
|
579
579
|
);
|
|
580
580
|
t["s-cn"] = !0, Se(e, t, e.firstChild);
|
|
581
|
-
},
|
|
582
|
-
re.$flags$ & 1 || ke(e),
|
|
583
|
-
},
|
|
581
|
+
}, Bn = async (e) => {
|
|
582
|
+
re.$flags$ & 1 || ke(e), ft.has(e) && ft.delete(e), e.shadowRoot && ft.has(e.shadowRoot) && ft.delete(e.shadowRoot);
|
|
583
|
+
}, H = (e, t) => {
|
|
584
584
|
const r = {
|
|
585
585
|
$flags$: t[0],
|
|
586
586
|
$tagName$: t[1]
|
|
@@ -590,24 +590,24 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
|
|
|
590
590
|
return Object.assign(e.prototype, {
|
|
591
591
|
__hasHostListenerAttached: !1,
|
|
592
592
|
__registerHost() {
|
|
593
|
-
|
|
593
|
+
hn(this, r);
|
|
594
594
|
},
|
|
595
595
|
connectedCallback() {
|
|
596
|
-
this.__hasHostListenerAttached || (ke(this), this.__hasHostListenerAttached = !0),
|
|
596
|
+
this.__hasHostListenerAttached || (ke(this), this.__hasHostListenerAttached = !0), jn(this), s && s.call(this);
|
|
597
597
|
},
|
|
598
598
|
disconnectedCallback() {
|
|
599
|
-
|
|
599
|
+
Bn(this), a && a.call(this), re.raf(() => {
|
|
600
600
|
var o;
|
|
601
601
|
const n = ke(this);
|
|
602
|
-
((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 &&
|
|
602
|
+
((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 && un(this);
|
|
603
603
|
});
|
|
604
604
|
},
|
|
605
605
|
__attachShadow() {
|
|
606
606
|
this.shadowRoot = this;
|
|
607
607
|
}
|
|
608
608
|
}), e.is = r.$tagName$, Nn(e, r);
|
|
609
|
-
},
|
|
610
|
-
class
|
|
609
|
+
}, Wn = (e, t) => t, Gn = Object.defineProperty, qn = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => qn(e, typeof t != "symbol" ? t + "" : t, r), pe = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(pe || {});
|
|
610
|
+
class Yn {
|
|
611
611
|
constructor(t) {
|
|
612
612
|
A(this, "logLevel"), A(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
|
|
613
613
|
}
|
|
@@ -648,21 +648,21 @@ function ge(e, t, r, s) {
|
|
|
648
648
|
function n(h) {
|
|
649
649
|
try {
|
|
650
650
|
u(s.next(h));
|
|
651
|
-
} catch (
|
|
652
|
-
o(
|
|
651
|
+
} catch (i) {
|
|
652
|
+
o(i);
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
function c(h) {
|
|
656
656
|
try {
|
|
657
657
|
u(s.throw(h));
|
|
658
|
-
} catch (
|
|
659
|
-
o(
|
|
658
|
+
} catch (i) {
|
|
659
|
+
o(i);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
function u(h) {
|
|
663
|
-
var
|
|
664
|
-
h.done ? a(h.value) : (
|
|
665
|
-
p(
|
|
663
|
+
var i;
|
|
664
|
+
h.done ? a(h.value) : (i = h.value, i instanceof r ? i : new r(function(p) {
|
|
665
|
+
p(i);
|
|
666
666
|
})).then(n, c);
|
|
667
667
|
}
|
|
668
668
|
u((s = s.apply(e, [])).next());
|
|
@@ -678,142 +678,142 @@ function ve(e, t) {
|
|
|
678
678
|
}), o;
|
|
679
679
|
function c(u) {
|
|
680
680
|
return function(h) {
|
|
681
|
-
return function(
|
|
681
|
+
return function(i) {
|
|
682
682
|
if (r) throw new TypeError("Generator is already executing.");
|
|
683
|
-
for (; o && (o = 0,
|
|
684
|
-
if (r = 1, s && (a = 2 &
|
|
685
|
-
switch (s = 0, a && (
|
|
683
|
+
for (; o && (o = 0, i[0] && (n = 0)), n; ) try {
|
|
684
|
+
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;
|
|
685
|
+
switch (s = 0, a && (i = [2 & i[0], a.value]), i[0]) {
|
|
686
686
|
case 0:
|
|
687
687
|
case 1:
|
|
688
|
-
a =
|
|
688
|
+
a = i;
|
|
689
689
|
break;
|
|
690
690
|
case 4:
|
|
691
|
-
return n.label++, { value:
|
|
691
|
+
return n.label++, { value: i[1], done: !1 };
|
|
692
692
|
case 5:
|
|
693
|
-
n.label++, s =
|
|
693
|
+
n.label++, s = i[1], i = [0];
|
|
694
694
|
continue;
|
|
695
695
|
case 7:
|
|
696
|
-
|
|
696
|
+
i = n.ops.pop(), n.trys.pop();
|
|
697
697
|
continue;
|
|
698
698
|
default:
|
|
699
|
-
if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) ||
|
|
699
|
+
if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) || i[0] !== 6 && i[0] !== 2)) {
|
|
700
700
|
n = 0;
|
|
701
701
|
continue;
|
|
702
702
|
}
|
|
703
|
-
if (
|
|
704
|
-
n.label =
|
|
703
|
+
if (i[0] === 3 && (!a || i[1] > a[0] && i[1] < a[3])) {
|
|
704
|
+
n.label = i[1];
|
|
705
705
|
break;
|
|
706
706
|
}
|
|
707
|
-
if (
|
|
708
|
-
n.label = a[1], a =
|
|
707
|
+
if (i[0] === 6 && n.label < a[1]) {
|
|
708
|
+
n.label = a[1], a = i;
|
|
709
709
|
break;
|
|
710
710
|
}
|
|
711
711
|
if (a && n.label < a[2]) {
|
|
712
|
-
n.label = a[2], n.ops.push(
|
|
712
|
+
n.label = a[2], n.ops.push(i);
|
|
713
713
|
break;
|
|
714
714
|
}
|
|
715
715
|
a[2] && n.ops.pop(), n.trys.pop();
|
|
716
716
|
continue;
|
|
717
717
|
}
|
|
718
|
-
|
|
718
|
+
i = t.call(e, n);
|
|
719
719
|
} catch (p) {
|
|
720
|
-
|
|
720
|
+
i = [6, p], s = 0;
|
|
721
721
|
} finally {
|
|
722
722
|
r = a = 0;
|
|
723
723
|
}
|
|
724
|
-
if (5 &
|
|
725
|
-
return { value:
|
|
724
|
+
if (5 & i[0]) throw i[1];
|
|
725
|
+
return { value: i[0] ? i[1] : void 0, done: !0 };
|
|
726
726
|
}([u, h]);
|
|
727
727
|
};
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
var be = { exclude: [] },
|
|
731
|
-
typeof window < "u" && (
|
|
732
|
-
},
|
|
733
|
-
return Object.fromEntries(Object.entries(
|
|
730
|
+
var be = { exclude: [] }, Hs = {}, Zn = { timeout: "true" }, ce = function(e, t) {
|
|
731
|
+
typeof window < "u" && (Hs[e] = t);
|
|
732
|
+
}, Qn = function() {
|
|
733
|
+
return Object.fromEntries(Object.entries(Hs).filter(function(e) {
|
|
734
734
|
var t, r = e[0];
|
|
735
735
|
return !(!((t = be == null ? void 0 : be.exclude) === null || t === void 0) && t.includes(r));
|
|
736
736
|
}).map(function(e) {
|
|
737
737
|
return [e[0], (0, e[1])()];
|
|
738
738
|
}));
|
|
739
739
|
};
|
|
740
|
-
function
|
|
740
|
+
function mt(e) {
|
|
741
741
|
return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
|
|
742
742
|
}
|
|
743
743
|
var q = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
744
|
-
function
|
|
744
|
+
function oe(e, t) {
|
|
745
745
|
return e << t | e >>> 32 - t;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function or(e, t) {
|
|
748
748
|
var r;
|
|
749
749
|
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");
|
|
750
750
|
var s = new Uint32Array([t, t, t, t]);
|
|
751
751
|
(function(o, n) {
|
|
752
752
|
for (var c = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * c), h = 0; h < c; h++) {
|
|
753
|
-
var
|
|
754
|
-
|
|
753
|
+
var i = u.subarray(4 * h, 4 * (h + 1));
|
|
754
|
+
i[0] = Math.imul(i[0], q[0]), i[0] = oe(i[0], 15), i[0] = Math.imul(i[0], q[1]), n[0] = n[0] ^ i[0], n[0] = oe(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, i[1] = Math.imul(i[1], q[1]), i[1] = oe(i[1], 16), i[1] = Math.imul(i[1], q[2]), n[1] = n[1] ^ i[1], n[1] = oe(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, i[2] = Math.imul(i[2], q[2]), i[2] = oe(i[2], 17), i[2] = Math.imul(i[2], q[3]), n[2] = n[2] ^ i[2], n[2] = oe(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, i[3] = Math.imul(i[3], q[3]), i[3] = oe(i[3], 18), i[3] = Math.imul(i[3], q[0]), n[3] = n[3] ^ i[3], n[3] = oe(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
|
|
755
755
|
}
|
|
756
756
|
})(e, s), function(o, n) {
|
|
757
|
-
var c = o.byteLength / 16 | 0, u = o.byteLength % 16, h = new Uint32Array(4),
|
|
757
|
+
var c = o.byteLength / 16 | 0, u = o.byteLength % 16, h = new Uint32Array(4), i = new Uint8Array(o, 16 * c, u);
|
|
758
758
|
switch (u) {
|
|
759
759
|
case 15:
|
|
760
|
-
h[3] = h[3] ^
|
|
760
|
+
h[3] = h[3] ^ i[14] << 16;
|
|
761
761
|
case 14:
|
|
762
|
-
h[3] = h[3] ^
|
|
762
|
+
h[3] = h[3] ^ i[13] << 8;
|
|
763
763
|
case 13:
|
|
764
|
-
h[3] = h[3] ^
|
|
764
|
+
h[3] = h[3] ^ i[12] << 0, h[3] = Math.imul(h[3], q[3]), h[3] = oe(h[3], 18), h[3] = Math.imul(h[3], q[0]), n[3] = n[3] ^ h[3];
|
|
765
765
|
case 12:
|
|
766
|
-
h[2] = h[2] ^
|
|
766
|
+
h[2] = h[2] ^ i[11] << 24;
|
|
767
767
|
case 11:
|
|
768
|
-
h[2] = h[2] ^
|
|
768
|
+
h[2] = h[2] ^ i[10] << 16;
|
|
769
769
|
case 10:
|
|
770
|
-
h[2] = h[2] ^
|
|
770
|
+
h[2] = h[2] ^ i[9] << 8;
|
|
771
771
|
case 9:
|
|
772
|
-
h[2] = h[2] ^
|
|
772
|
+
h[2] = h[2] ^ i[8] << 0, h[2] = Math.imul(h[2], q[2]), h[2] = oe(h[2], 17), h[2] = Math.imul(h[2], q[3]), n[2] = n[2] ^ h[2];
|
|
773
773
|
case 8:
|
|
774
|
-
h[1] = h[1] ^
|
|
774
|
+
h[1] = h[1] ^ i[7] << 24;
|
|
775
775
|
case 7:
|
|
776
|
-
h[1] = h[1] ^
|
|
776
|
+
h[1] = h[1] ^ i[6] << 16;
|
|
777
777
|
case 6:
|
|
778
|
-
h[1] = h[1] ^
|
|
778
|
+
h[1] = h[1] ^ i[5] << 8;
|
|
779
779
|
case 5:
|
|
780
|
-
h[1] = h[1] ^
|
|
780
|
+
h[1] = h[1] ^ i[4] << 0, h[1] = Math.imul(h[1], q[1]), h[1] = oe(h[1], 16), h[1] = Math.imul(h[1], q[2]), n[1] = n[1] ^ h[1];
|
|
781
781
|
case 4:
|
|
782
|
-
h[0] = h[0] ^
|
|
782
|
+
h[0] = h[0] ^ i[3] << 24;
|
|
783
783
|
case 3:
|
|
784
|
-
h[0] = h[0] ^
|
|
784
|
+
h[0] = h[0] ^ i[2] << 16;
|
|
785
785
|
case 2:
|
|
786
|
-
h[0] = h[0] ^
|
|
786
|
+
h[0] = h[0] ^ i[1] << 8;
|
|
787
787
|
case 1:
|
|
788
|
-
h[0] = h[0] ^
|
|
788
|
+
h[0] = h[0] ^ i[0] << 0, h[0] = Math.imul(h[0], q[0]), h[0] = oe(h[0], 15), h[0] = Math.imul(h[0], q[1]), n[0] = n[0] ^ h[0];
|
|
789
789
|
}
|
|
790
790
|
}(e, s), function(o, n) {
|
|
791
|
-
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] =
|
|
791
|
+
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] = mt(n[0]), n[1] = mt(n[1]), n[2] = mt(n[2]), n[3] = mt(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;
|
|
792
792
|
}(e, s);
|
|
793
793
|
var a = new Uint8Array(s.buffer);
|
|
794
794
|
return Array.from(a).map(function(o) {
|
|
795
795
|
return o.toString(16).padStart(2, "0");
|
|
796
796
|
}).join("");
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Kn(e, t) {
|
|
799
799
|
return new Promise(function(r) {
|
|
800
800
|
setTimeout(function() {
|
|
801
801
|
return r(t);
|
|
802
802
|
}, e);
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function Xn(e, t, r) {
|
|
806
806
|
return Promise.all(e.map(function(s) {
|
|
807
|
-
return Promise.race([s,
|
|
807
|
+
return Promise.race([s, Kn(t, r)]);
|
|
808
808
|
}));
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function Jn() {
|
|
811
811
|
return ge(this, void 0, void 0, function() {
|
|
812
812
|
var e, t, r, s, a;
|
|
813
813
|
return ve(this, function(o) {
|
|
814
814
|
switch (o.label) {
|
|
815
815
|
case 0:
|
|
816
|
-
return o.trys.push([0, 2, , 3]), e =
|
|
816
|
+
return o.trys.push([0, 2, , 3]), e = Qn(), t = Object.keys(e), [4, Xn(Object.values(e), (be == null ? void 0 : be.timeout) || 1e3, Zn)];
|
|
817
817
|
case 1:
|
|
818
818
|
return r = o.sent(), s = r.filter(function(n) {
|
|
819
819
|
return n !== void 0;
|
|
@@ -844,15 +844,15 @@ function Ns(e, t) {
|
|
|
844
844
|
for (var a in e) s(a);
|
|
845
845
|
return r;
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function eo(e) {
|
|
848
848
|
return ge(this, void 0, void 0, function() {
|
|
849
849
|
var t, r;
|
|
850
850
|
return ve(this, function(s) {
|
|
851
851
|
switch (s.label) {
|
|
852
852
|
case 0:
|
|
853
|
-
return s.trys.push([0, 2, , 3]), [4,
|
|
853
|
+
return s.trys.push([0, 2, , 3]), [4, Jn()];
|
|
854
854
|
case 1:
|
|
855
|
-
return t = s.sent(), r =
|
|
855
|
+
return t = s.sent(), r = or(JSON.stringify(t)), [2, r.toString()];
|
|
856
856
|
case 2:
|
|
857
857
|
throw s.sent();
|
|
858
858
|
case 3:
|
|
@@ -861,19 +861,19 @@ function Jn(e) {
|
|
|
861
861
|
});
|
|
862
862
|
});
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function to(e) {
|
|
865
865
|
for (var t = 0, r = 0; r < e.length; ++r) t += Math.abs(e[r]);
|
|
866
866
|
return t;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function Us(e, t, r) {
|
|
869
869
|
for (var s = [], a = 0; a < e[0].data.length; a++) {
|
|
870
870
|
for (var o = [], n = 0; n < e.length; n++) o.push(e[n].data[a]);
|
|
871
|
-
s.push(
|
|
871
|
+
s.push(ro(o));
|
|
872
872
|
}
|
|
873
873
|
var c = new Uint8ClampedArray(s);
|
|
874
874
|
return new ImageData(c, t, r);
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function ro(e) {
|
|
877
877
|
if (e.length === 0) return 0;
|
|
878
878
|
for (var t = {}, r = 0, s = e; r < s.length; r++)
|
|
879
879
|
t[o = s[r]] = (t[o] || 0) + 1;
|
|
@@ -881,7 +881,7 @@ function to(e) {
|
|
|
881
881
|
for (var o in t) t[o] > t[a] && (a = parseInt(o, 10));
|
|
882
882
|
return a;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function tt() {
|
|
885
885
|
if (typeof navigator > "u") return { name: "unknown", version: "unknown" };
|
|
886
886
|
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++) {
|
|
887
887
|
var a = s[r], o = e.match(a);
|
|
@@ -898,7 +898,7 @@ ce("audio", function() {
|
|
|
898
898
|
o.frequency.value = 1e3;
|
|
899
899
|
var n, c = s.createDynamicsCompressor();
|
|
900
900
|
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) {
|
|
901
|
-
n = u.renderedBuffer.getChannelData(0), t({ sampleHash:
|
|
901
|
+
n = u.renderedBuffer.getChannelData(0), t({ sampleHash: to(n), oscillator: o.type, maxChannels: s.destination.maxChannelCount, channelCountMode: a.channelCountMode });
|
|
902
902
|
}, s.startRendering();
|
|
903
903
|
} catch (u) {
|
|
904
904
|
console.error("Error creating audio fingerprint:", u), r(u);
|
|
@@ -907,14 +907,14 @@ ce("audio", function() {
|
|
|
907
907
|
});
|
|
908
908
|
});
|
|
909
909
|
});
|
|
910
|
-
var
|
|
911
|
-
|
|
910
|
+
var so = tt().name !== "SamsungBrowser" ? 1 : 3, cs = 280, is = 20;
|
|
911
|
+
tt().name != "Firefox" && ce("canvas", function() {
|
|
912
912
|
return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
|
|
913
|
-
var t = Array.from({ length:
|
|
913
|
+
var t = Array.from({ length: so }, function() {
|
|
914
914
|
return function() {
|
|
915
915
|
var r = document.createElement("canvas"), s = r.getContext("2d");
|
|
916
916
|
if (!s) return new ImageData(1, 1);
|
|
917
|
-
r.width =
|
|
917
|
+
r.width = cs, r.height = is;
|
|
918
918
|
var a = s.createLinearGradient(0, 0, r.width, r.height);
|
|
919
919
|
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);
|
|
920
920
|
var o = "Random Text WMwmil10Oo";
|
|
@@ -923,15 +923,15 @@ et().name != "Firefox" && ce("canvas", function() {
|
|
|
923
923
|
return n;
|
|
924
924
|
}();
|
|
925
925
|
});
|
|
926
|
-
e({ commonImageDataHash:
|
|
926
|
+
e({ commonImageDataHash: or(Us(t, cs, is).data.toString()).toString() });
|
|
927
927
|
});
|
|
928
928
|
});
|
|
929
|
-
var Gt,
|
|
930
|
-
function
|
|
929
|
+
var Gt, ao = ["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"], no = ["monospace", "sans-serif", "serif"];
|
|
930
|
+
function ls(e, t) {
|
|
931
931
|
if (!e) throw new Error("Canvas context not supported");
|
|
932
932
|
return e.font = "72px ".concat(t), e.measureText("WwMmLli0Oo").width;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function oo() {
|
|
935
935
|
var e, t = document.createElement("canvas"), r = (e = t.getContext("webgl")) !== null && e !== void 0 ? e : t.getContext("experimental-webgl");
|
|
936
936
|
if (r && "getParameter" in r) try {
|
|
937
937
|
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() };
|
|
@@ -947,19 +947,19 @@ function no() {
|
|
|
947
947
|
}
|
|
948
948
|
return "undefined";
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function co() {
|
|
951
951
|
var e = new Float32Array(1), t = new Uint8Array(e.buffer);
|
|
952
952
|
return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function io(e, t) {
|
|
955
955
|
var r = {};
|
|
956
956
|
return t.forEach(function(s) {
|
|
957
957
|
var a = function(o) {
|
|
958
958
|
if (o.length === 0) return null;
|
|
959
959
|
var n = {};
|
|
960
960
|
o.forEach(function(h) {
|
|
961
|
-
var
|
|
962
|
-
n[
|
|
961
|
+
var i = String(h);
|
|
962
|
+
n[i] = (n[i] || 0) + 1;
|
|
963
963
|
});
|
|
964
964
|
var c = o[0], u = 1;
|
|
965
965
|
return Object.keys(n).forEach(function(h) {
|
|
@@ -973,7 +973,7 @@ function co(e, t) {
|
|
|
973
973
|
a && (r[s] = a);
|
|
974
974
|
}), r;
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function lo() {
|
|
977
977
|
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"] };
|
|
978
978
|
return Object.keys(t).forEach(function(r) {
|
|
979
979
|
t[r].forEach(function(s) {
|
|
@@ -981,7 +981,7 @@ function io() {
|
|
|
981
981
|
});
|
|
982
982
|
}), e;
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function uo() {
|
|
985
985
|
if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
|
|
986
986
|
for (var e = window.ApplePaySession.supportsVersion, t = 15; t > 0; t--) if (e(t)) return t;
|
|
987
987
|
} catch {
|
|
@@ -989,7 +989,7 @@ function lo() {
|
|
|
989
989
|
}
|
|
990
990
|
return 0;
|
|
991
991
|
}
|
|
992
|
-
|
|
992
|
+
tt().name != "Firefox" && ce("fonts", function() {
|
|
993
993
|
var e = this;
|
|
994
994
|
return new Promise(function(t, r) {
|
|
995
995
|
try {
|
|
@@ -1001,7 +1001,7 @@ et().name != "Firefox" && ce("fonts", function() {
|
|
|
1001
1001
|
switch (u.label) {
|
|
1002
1002
|
case 0:
|
|
1003
1003
|
return document.body ? [3, 2] : [4, (h = 50, new Promise(function(p) {
|
|
1004
|
-
return setTimeout(p, h,
|
|
1004
|
+
return setTimeout(p, h, i);
|
|
1005
1005
|
}))];
|
|
1006
1006
|
case 1:
|
|
1007
1007
|
return u.sent(), [3, 0];
|
|
@@ -1011,7 +1011,7 @@ et().name != "Firefox" && ce("fonts", function() {
|
|
|
1011
1011
|
document.body.removeChild(o);
|
|
1012
1012
|
}, 0), [2];
|
|
1013
1013
|
}
|
|
1014
|
-
var h,
|
|
1014
|
+
var h, i;
|
|
1015
1015
|
});
|
|
1016
1016
|
});
|
|
1017
1017
|
})(function(s) {
|
|
@@ -1019,11 +1019,11 @@ et().name != "Firefox" && ce("fonts", function() {
|
|
|
1019
1019
|
return ge(e, void 0, void 0, function() {
|
|
1020
1020
|
var o, n, c, u;
|
|
1021
1021
|
return ve(this, function(h) {
|
|
1022
|
-
return o = a.createElement("canvas"), n = o.getContext("2d"), c =
|
|
1023
|
-
return
|
|
1024
|
-
}), u = {},
|
|
1025
|
-
var p =
|
|
1026
|
-
c.includes(p) || (u[
|
|
1022
|
+
return o = a.createElement("canvas"), n = o.getContext("2d"), c = no.map(function(i) {
|
|
1023
|
+
return ls(n, i);
|
|
1024
|
+
}), u = {}, ao.forEach(function(i) {
|
|
1025
|
+
var p = ls(n, i);
|
|
1026
|
+
c.includes(p) || (u[i] = p);
|
|
1027
1027
|
}), t(u), [2];
|
|
1028
1028
|
});
|
|
1029
1029
|
});
|
|
@@ -1035,7 +1035,7 @@ et().name != "Firefox" && ce("fonts", function() {
|
|
|
1035
1035
|
}), ce("hardware", function() {
|
|
1036
1036
|
return new Promise(function(e, t) {
|
|
1037
1037
|
var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, s = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
1038
|
-
e({ videocard:
|
|
1038
|
+
e({ videocard: oo(), architecture: co(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
|
|
1039
1039
|
});
|
|
1040
1040
|
}), ce("locales", function() {
|
|
1041
1041
|
return new Promise(function(e) {
|
|
@@ -1071,7 +1071,7 @@ et().name != "Firefox" && ce("fonts", function() {
|
|
|
1071
1071
|
});
|
|
1072
1072
|
}();
|
|
1073
1073
|
}), [2, Promise.all(e).then(function(r) {
|
|
1074
|
-
return
|
|
1074
|
+
return io(r, Gt);
|
|
1075
1075
|
})];
|
|
1076
1076
|
});
|
|
1077
1077
|
});
|
|
@@ -1086,15 +1086,15 @@ et().name != "Firefox" && ce("fonts", function() {
|
|
|
1086
1086
|
});
|
|
1087
1087
|
}), ce("screen", function() {
|
|
1088
1088
|
return new Promise(function(e) {
|
|
1089
|
-
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches:
|
|
1089
|
+
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: lo() });
|
|
1090
1090
|
});
|
|
1091
1091
|
}), ce("system", function() {
|
|
1092
1092
|
return new Promise(function(e) {
|
|
1093
|
-
var t =
|
|
1094
|
-
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:
|
|
1093
|
+
var t = tt();
|
|
1094
|
+
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: uo() });
|
|
1095
1095
|
});
|
|
1096
1096
|
});
|
|
1097
|
-
var X,
|
|
1097
|
+
var X, ho = tt().name !== "SamsungBrowser" ? 1 : 3, S = null;
|
|
1098
1098
|
ce("webgl", function() {
|
|
1099
1099
|
return ge(this, void 0, void 0, function() {
|
|
1100
1100
|
var e;
|
|
@@ -1102,7 +1102,7 @@ ce("webgl", function() {
|
|
|
1102
1102
|
typeof document < "u" && ((X = document.createElement("canvas")).width = 200, X.height = 100, S = X.getContext("webgl"));
|
|
1103
1103
|
try {
|
|
1104
1104
|
if (!S) throw new Error("WebGL not supported");
|
|
1105
|
-
return e = Array.from({ length:
|
|
1105
|
+
return e = Array.from({ length: ho }, function() {
|
|
1106
1106
|
return function() {
|
|
1107
1107
|
try {
|
|
1108
1108
|
if (!S) throw new Error("WebGL not supported");
|
|
@@ -1124,9 +1124,9 @@ ce("webgl", function() {
|
|
|
1124
1124
|
if (!n) throw new Error("Failed to create shader program");
|
|
1125
1125
|
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));
|
|
1126
1126
|
S.useProgram(n);
|
|
1127
|
-
for (var c = 137, u = new Float32Array(4 * c), h = 2 * Math.PI / c,
|
|
1128
|
-
var p =
|
|
1129
|
-
u[4 *
|
|
1127
|
+
for (var c = 137, u = new Float32Array(4 * c), h = 2 * Math.PI / c, i = 0; i < c; i++) {
|
|
1128
|
+
var p = i * h;
|
|
1129
|
+
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (X.width / 2), u[4 * i + 3] = Math.sin(p) * (X.height / 2);
|
|
1130
1130
|
}
|
|
1131
1131
|
var g = S.createBuffer();
|
|
1132
1132
|
S.bindBuffer(S.ARRAY_BUFFER, g), S.bufferData(S.ARRAY_BUFFER, u, S.STATIC_DRAW);
|
|
@@ -1140,7 +1140,7 @@ ce("webgl", function() {
|
|
|
1140
1140
|
S && (S.bindBuffer(S.ARRAY_BUFFER, null), S.useProgram(null), S.viewport(0, 0, S.drawingBufferWidth, S.drawingBufferHeight), S.clearColor(0, 0, 0, 0));
|
|
1141
1141
|
}
|
|
1142
1142
|
}();
|
|
1143
|
-
}), [2, { commonImageHash:
|
|
1143
|
+
}), [2, { commonImageHash: or(Us(e, X.width, X.height).data.toString()).toString() }];
|
|
1144
1144
|
} catch {
|
|
1145
1145
|
return [2, { webgl: "unsupported" }];
|
|
1146
1146
|
}
|
|
@@ -1160,14 +1160,14 @@ ce("math", function() {
|
|
|
1160
1160
|
});
|
|
1161
1161
|
});
|
|
1162
1162
|
});
|
|
1163
|
-
const
|
|
1164
|
-
let
|
|
1163
|
+
const fo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1164
|
+
let He = (e = 21) => {
|
|
1165
1165
|
let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
1166
1166
|
for (; e--; )
|
|
1167
|
-
t +=
|
|
1167
|
+
t += fo[r[e] & 63];
|
|
1168
1168
|
return t;
|
|
1169
1169
|
};
|
|
1170
|
-
class
|
|
1170
|
+
class cr {
|
|
1171
1171
|
constructor(t) {
|
|
1172
1172
|
A(this, "config"), this.config = t;
|
|
1173
1173
|
}
|
|
@@ -1185,7 +1185,7 @@ class or {
|
|
|
1185
1185
|
async onAdContainerViewed(t) {
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
|
-
class
|
|
1188
|
+
class po extends cr {
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Gets ads from the adMarketplace API based on the search term.
|
|
1191
1191
|
*/
|
|
@@ -1202,13 +1202,13 @@ class fo extends or {
|
|
|
1202
1202
|
"results-pa": `${this.config.admProductAdQuantity || 0}`
|
|
1203
1203
|
}).toString()}`, s = await (await fetch(r, { method: "GET" })).json(), a = s.product_ads.map(
|
|
1204
1204
|
(n) => ({
|
|
1205
|
-
id:
|
|
1205
|
+
id: He(),
|
|
1206
1206
|
adSource: "adMarketplace",
|
|
1207
1207
|
admAdType: "adm-product-ad",
|
|
1208
1208
|
admAd: n
|
|
1209
1209
|
})
|
|
1210
1210
|
), o = s.text_ads.map((n) => ({
|
|
1211
|
-
id:
|
|
1211
|
+
id: He(),
|
|
1212
1212
|
adSource: "adMarketplace",
|
|
1213
1213
|
admAdType: "adm-text-ad",
|
|
1214
1214
|
admAd: n
|
|
@@ -1221,13 +1221,13 @@ class fo extends or {
|
|
|
1221
1221
|
(r = s.admAd) != null && r.impression_url && fetch(s.admAd.impression_url);
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
class
|
|
1224
|
+
class mo extends cr {
|
|
1225
1225
|
async getAds(t) {
|
|
1226
1226
|
return [];
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
const
|
|
1230
|
-
class
|
|
1229
|
+
const go = 1e3;
|
|
1230
|
+
class vo extends cr {
|
|
1231
1231
|
constructor(t) {
|
|
1232
1232
|
super(t), A(this, "adCallTimeout"), this.addScriptTagToDocument();
|
|
1233
1233
|
}
|
|
@@ -1240,7 +1240,7 @@ class go extends or {
|
|
|
1240
1240
|
this.removeScriptTagFromDocument();
|
|
1241
1241
|
return;
|
|
1242
1242
|
}
|
|
1243
|
-
this.performAdCall(
|
|
1243
|
+
this.performAdCall(go);
|
|
1244
1244
|
}
|
|
1245
1245
|
async onInputCleared() {
|
|
1246
1246
|
this.removeScriptTagFromDocument();
|
|
@@ -1269,8 +1269,8 @@ class go extends or {
|
|
|
1269
1269
|
t && document.head.removeChild(t);
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
|
-
const
|
|
1273
|
-
class
|
|
1272
|
+
const bo = 600;
|
|
1273
|
+
class yo {
|
|
1274
1274
|
constructor(t, r, s) {
|
|
1275
1275
|
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 = {}) => {
|
|
1276
1276
|
const c = {
|
|
@@ -1288,47 +1288,49 @@ class bo {
|
|
|
1288
1288
|
if (a === "document_clicked") {
|
|
1289
1289
|
const u = JSON.stringify(c), h = `${this.baseMeasureUrl}/event`;
|
|
1290
1290
|
try {
|
|
1291
|
-
const
|
|
1291
|
+
const i = await fetch(h, {
|
|
1292
1292
|
method: "POST",
|
|
1293
1293
|
headers: {
|
|
1294
1294
|
"Content-Type": "application/json",
|
|
1295
1295
|
Authorization: this.config.readKey,
|
|
1296
|
-
"X-Sc-User-Id": this.userId
|
|
1296
|
+
"X-Sc-User-Id": this.userId,
|
|
1297
|
+
"X-Sc-Session-Id": this.sessionId
|
|
1297
1298
|
},
|
|
1298
1299
|
body: u,
|
|
1299
1300
|
keepalive: !0
|
|
1300
1301
|
});
|
|
1301
|
-
if (!
|
|
1302
|
+
if (!i.ok)
|
|
1302
1303
|
throw new Error(
|
|
1303
|
-
`Failed to send request: ${
|
|
1304
|
+
`Failed to send request: ${i.status} ${i.statusText}`
|
|
1304
1305
|
);
|
|
1305
|
-
} catch (
|
|
1306
|
-
throw console.error("Error sending MeasureRequest:",
|
|
1306
|
+
} catch (i) {
|
|
1307
|
+
throw console.error("Error sending MeasureRequest:", i), i;
|
|
1307
1308
|
}
|
|
1308
1309
|
} else
|
|
1309
1310
|
this.measureRequestsBatched.push(c), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
|
|
1310
1311
|
const u = JSON.stringify({ items: this.measureRequestsBatched }), h = `${this.baseMeasureUrl}/batch`;
|
|
1311
1312
|
try {
|
|
1312
|
-
const
|
|
1313
|
+
const i = await fetch(h, {
|
|
1313
1314
|
method: "POST",
|
|
1314
1315
|
headers: {
|
|
1315
1316
|
"Content-Type": "application/json",
|
|
1316
1317
|
Authorization: this.config.readKey,
|
|
1317
|
-
"X-Sc-User-Id": this.userId
|
|
1318
|
+
"X-Sc-User-Id": this.userId,
|
|
1319
|
+
"X-Sc-Session-Id": this.sessionId
|
|
1318
1320
|
},
|
|
1319
1321
|
body: u,
|
|
1320
1322
|
keepalive: !0
|
|
1321
1323
|
});
|
|
1322
|
-
if (this.measureRequestsBatched = [], !
|
|
1324
|
+
if (this.measureRequestsBatched = [], !i.ok)
|
|
1323
1325
|
throw new Error(
|
|
1324
|
-
`Failed to send request: ${
|
|
1326
|
+
`Failed to send request: ${i.status} ${i.statusText}`
|
|
1325
1327
|
);
|
|
1326
1328
|
return;
|
|
1327
|
-
} catch (
|
|
1328
|
-
throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:",
|
|
1329
|
+
} catch (i) {
|
|
1330
|
+
throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", i), i;
|
|
1329
1331
|
}
|
|
1330
|
-
},
|
|
1331
|
-
}), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId =
|
|
1332
|
+
}, bo);
|
|
1333
|
+
}), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = He(), this.sendMeasureEvent("sdk_initialized");
|
|
1332
1334
|
}
|
|
1333
1335
|
/**
|
|
1334
1336
|
* Getter for the base url used by the /measure endpoints.
|
|
@@ -1351,7 +1353,7 @@ class bo {
|
|
|
1351
1353
|
};
|
|
1352
1354
|
}
|
|
1353
1355
|
}
|
|
1354
|
-
const
|
|
1356
|
+
const Co = (e) => e.endsWith("/") ? e.slice(0, -1) : e, qt = (e) => {
|
|
1355
1357
|
let t = "";
|
|
1356
1358
|
if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
|
|
1357
1359
|
"‘": "'",
|
|
@@ -1368,7 +1370,7 @@ class ko {
|
|
|
1368
1370
|
constructor(t, r, s) {
|
|
1369
1371
|
A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "getSearchResponseItems", async (a) => {
|
|
1370
1372
|
var o, n, c, u, h;
|
|
1371
|
-
let
|
|
1373
|
+
let i;
|
|
1372
1374
|
const p = typeof a == "string" ? a : a.searchTerm;
|
|
1373
1375
|
try {
|
|
1374
1376
|
return (o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
|
|
@@ -1380,81 +1382,85 @@ class ko {
|
|
|
1380
1382
|
}
|
|
1381
1383
|
}), (n = this.parent.adClient) == null || n.onQuerySubmitted(
|
|
1382
1384
|
typeof a == "string" ? { searchTerm: p, mode: "exact" } : a
|
|
1383
|
-
), typeof a == "string" ?
|
|
1385
|
+
), typeof a == "string" ? i = await this.handleGetSearchResponseItemsWithString(a) : i = await this.handleGetSearchResponseItemsWithObject(a), (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
|
|
1384
1386
|
search_term: p,
|
|
1385
|
-
number_of_documents:
|
|
1387
|
+
number_of_documents: i.data.count
|
|
1386
1388
|
}), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
|
|
1387
1389
|
var g;
|
|
1388
1390
|
(g = this.parent.measureClient) == null || g.sendMeasureEvent("search_completed", {
|
|
1389
1391
|
search_term: p,
|
|
1390
|
-
number_of_documents:
|
|
1392
|
+
number_of_documents: i.data.count
|
|
1391
1393
|
});
|
|
1392
1394
|
}, So), this.parent.emitEvent("query_fetched", {
|
|
1393
1395
|
name: "query_fetched",
|
|
1394
1396
|
data: {
|
|
1395
1397
|
searchTerm: p
|
|
1396
1398
|
}
|
|
1397
|
-
}), (((u =
|
|
1399
|
+
}), (((u = i.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
|
|
1398
1400
|
name: "no_results_returned"
|
|
1399
1401
|
}), (h = this.parent.adClient) == null || h.onQueryFetched(
|
|
1400
1402
|
typeof a == "string" ? { searchTerm: p, mode: "exact" } : a,
|
|
1401
|
-
|
|
1402
|
-
),
|
|
1403
|
+
i
|
|
1404
|
+
), i;
|
|
1403
1405
|
} catch (g) {
|
|
1404
1406
|
throw console.error("Error parsing response:", g), g;
|
|
1405
1407
|
}
|
|
1406
1408
|
}), A(this, "handleGetSearchResponseItemsWithString", async (a) => {
|
|
1407
|
-
|
|
1409
|
+
var o;
|
|
1410
|
+
let n;
|
|
1408
1411
|
try {
|
|
1409
|
-
|
|
1412
|
+
n = JSON.parse(a), n = {
|
|
1410
1413
|
limit: this.config.searchResultsPerPage,
|
|
1411
|
-
|
|
1412
|
-
...o
|
|
1414
|
+
...n
|
|
1413
1415
|
};
|
|
1414
1416
|
} catch {
|
|
1415
1417
|
throw new Error("Error: Query string is not valid json.");
|
|
1416
1418
|
}
|
|
1417
|
-
const
|
|
1419
|
+
const c = await fetch(this.baseSearchUrl, {
|
|
1418
1420
|
method: "POST",
|
|
1419
1421
|
headers: {
|
|
1420
1422
|
Authorization: this.config.readKey,
|
|
1421
1423
|
"Content-Type": "application/json",
|
|
1422
|
-
"X-Sc-User-Id": this.userId
|
|
1424
|
+
"X-Sc-User-Id": this.userId,
|
|
1425
|
+
"X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || He()
|
|
1423
1426
|
},
|
|
1424
|
-
body: JSON.stringify(
|
|
1427
|
+
body: JSON.stringify(n)
|
|
1425
1428
|
});
|
|
1426
|
-
if (!
|
|
1429
|
+
if (!c.ok)
|
|
1427
1430
|
throw new Error(
|
|
1428
|
-
`Error: ${
|
|
1431
|
+
`Error: ${c.statusText} (Status: ${c.status})`
|
|
1429
1432
|
);
|
|
1430
|
-
return await
|
|
1433
|
+
return await c.json();
|
|
1431
1434
|
}), A(this, "handleGetSearchResponseItemsWithObject", async (a) => {
|
|
1435
|
+
var o;
|
|
1432
1436
|
try {
|
|
1433
|
-
const o = {
|
|
1434
|
-
query: this.formatParamsForRequest(a),
|
|
1435
|
-
offset: a.offset || 0,
|
|
1436
|
-
// Default to 0 (first page) if not provided
|
|
1437
|
-
limit: a.limit || this.config.searchResultsPerPage || 20,
|
|
1438
|
-
// Default to 20 if not provided
|
|
1439
|
-
order_by: a.order_by || this.config.indexFieldName
|
|
1440
|
-
};
|
|
1441
|
-
o.order_by && (o.sort = a.sort === "desc" || a.sort === "asc" ? a.sort : "asc");
|
|
1442
1437
|
const n = await fetch(this.baseSearchUrl, {
|
|
1443
1438
|
method: "POST",
|
|
1444
1439
|
headers: {
|
|
1445
1440
|
Authorization: this.config.readKey,
|
|
1446
1441
|
"Content-Type": "application/json",
|
|
1447
|
-
"X-Sc-User-Id": this.userId
|
|
1442
|
+
"X-Sc-User-Id": this.userId,
|
|
1443
|
+
"X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || He()
|
|
1448
1444
|
},
|
|
1449
|
-
body: JSON.stringify(
|
|
1445
|
+
body: JSON.stringify({
|
|
1446
|
+
query: this.formatParamsForRequest(a),
|
|
1447
|
+
offset: a.offset || 0,
|
|
1448
|
+
limit: a.limit || this.config.searchResultsPerPage || 20,
|
|
1449
|
+
...a.order_by && {
|
|
1450
|
+
order_by: a.order_by
|
|
1451
|
+
},
|
|
1452
|
+
...a.sort && {
|
|
1453
|
+
sort: a.sort
|
|
1454
|
+
}
|
|
1455
|
+
})
|
|
1450
1456
|
});
|
|
1451
1457
|
if (!n.ok)
|
|
1452
1458
|
throw new Error(
|
|
1453
1459
|
`Error: ${n.statusText} (Status: ${n.status})`
|
|
1454
1460
|
);
|
|
1455
1461
|
return await n.json();
|
|
1456
|
-
} catch (
|
|
1457
|
-
throw console.error("Error parsing response:",
|
|
1462
|
+
} catch (n) {
|
|
1463
|
+
throw console.error("Error parsing response:", n), n;
|
|
1458
1464
|
}
|
|
1459
1465
|
}), this.parent = t, this.config = r, this.userId = s;
|
|
1460
1466
|
}
|
|
@@ -1472,30 +1478,34 @@ class ko {
|
|
|
1472
1478
|
formatParamsForRequest(t) {
|
|
1473
1479
|
const r = [];
|
|
1474
1480
|
let s = "should";
|
|
1475
|
-
t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((
|
|
1476
|
-
var
|
|
1477
|
-
const
|
|
1478
|
-
|
|
1479
|
-
occur:
|
|
1481
|
+
t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((n) => {
|
|
1482
|
+
var c;
|
|
1483
|
+
const u = (c = t.facetPathsForIndexFields) == null ? void 0 : c[n];
|
|
1484
|
+
u && (s = "must", r.push({
|
|
1485
|
+
occur: "must",
|
|
1480
1486
|
exact: {
|
|
1481
|
-
ctx:
|
|
1487
|
+
ctx: qt(u.value)
|
|
1482
1488
|
}
|
|
1483
1489
|
}));
|
|
1484
|
-
}), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((
|
|
1485
|
-
var
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1488
|
-
occur:
|
|
1490
|
+
}), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((n) => {
|
|
1491
|
+
var c;
|
|
1492
|
+
const u = (c = t.rangeValueForIndexFields) == null ? void 0 : c[n];
|
|
1493
|
+
u && (s = "must", r.push({
|
|
1494
|
+
occur: "must",
|
|
1489
1495
|
exact: {
|
|
1490
|
-
ctx:
|
|
1496
|
+
ctx: qt(u.value)
|
|
1491
1497
|
}
|
|
1492
1498
|
}));
|
|
1493
1499
|
});
|
|
1494
|
-
const a = t.mode === "fuzzy" ? { fuzzy: { ctx:
|
|
1500
|
+
const a = qt(t.searchTerm), o = t.mode === "fuzzy" ? { fuzzy: { ctx: a } } : {
|
|
1501
|
+
exact: {
|
|
1502
|
+
ctx: `${a.startsWith('"') ? a : `"${a}"`}`
|
|
1503
|
+
}
|
|
1504
|
+
};
|
|
1495
1505
|
return r.push({
|
|
1496
|
-
occur: s,
|
|
1506
|
+
occur: t.mode === "exact" ? "must" : s,
|
|
1497
1507
|
// Valid, as 'occur' is a required property in SearchClientQuery
|
|
1498
|
-
...
|
|
1508
|
+
...o
|
|
1499
1509
|
}), r;
|
|
1500
1510
|
}
|
|
1501
1511
|
}
|
|
@@ -1504,16 +1514,17 @@ class wo {
|
|
|
1504
1514
|
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) => {
|
|
1505
1515
|
const n = async () => {
|
|
1506
1516
|
(async () => {
|
|
1507
|
-
var c
|
|
1508
|
-
const
|
|
1509
|
-
if (!
|
|
1517
|
+
var c;
|
|
1518
|
+
const u = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
|
|
1519
|
+
if (!u)
|
|
1510
1520
|
throw new Error("Search client was not initialized.");
|
|
1511
|
-
const
|
|
1512
|
-
|
|
1513
|
-
id:
|
|
1514
|
-
|
|
1521
|
+
const h = (u.data.hits || []).filter((i) => !!i.doc).map((i) => ({
|
|
1522
|
+
id: He(),
|
|
1523
|
+
document: i.doc || { id: -1 },
|
|
1524
|
+
source_index: i.source_index,
|
|
1525
|
+
type: "SearchDocument"
|
|
1515
1526
|
}));
|
|
1516
|
-
a(
|
|
1527
|
+
a(u, h);
|
|
1517
1528
|
})(), (async () => {
|
|
1518
1529
|
if (this.adClient && typeof s != "string") {
|
|
1519
1530
|
const c = await this.adClient.getAds(s);
|
|
@@ -1532,7 +1543,7 @@ class wo {
|
|
|
1532
1543
|
this.config = {
|
|
1533
1544
|
...t,
|
|
1534
1545
|
// Strips off the trailing '/' from an endpointURL if one is accidentally added
|
|
1535
|
-
endpointURL:
|
|
1546
|
+
endpointURL: Co(t.endpointURL)
|
|
1536
1547
|
}, 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());
|
|
1537
1548
|
}
|
|
1538
1549
|
initInputForms() {
|
|
@@ -1561,15 +1572,15 @@ class wo {
|
|
|
1561
1572
|
initClients(t, r) {
|
|
1562
1573
|
setTimeout(async () => {
|
|
1563
1574
|
let s = this.config.userId;
|
|
1564
|
-
switch (s || (s = await
|
|
1575
|
+
switch (s || (s = await eo()), this.measureClient = new yo(t, r, s), this.searchClient = new ko(this, t, s), t.adSource) {
|
|
1565
1576
|
case "adMarketplace":
|
|
1566
|
-
this.adClient = new
|
|
1577
|
+
this.adClient = new po(t);
|
|
1567
1578
|
break;
|
|
1568
1579
|
case "Nativo":
|
|
1569
|
-
this.adClient = new
|
|
1580
|
+
this.adClient = new vo(t);
|
|
1570
1581
|
break;
|
|
1571
1582
|
case "Custom":
|
|
1572
|
-
this.adClient = new
|
|
1583
|
+
this.adClient = new mo(t);
|
|
1573
1584
|
break;
|
|
1574
1585
|
}
|
|
1575
1586
|
this.emitEvent("initialized", {
|
|
@@ -1628,20 +1639,20 @@ class wo {
|
|
|
1628
1639
|
}), (t = this.adClient) == null || t.onInputCleared();
|
|
1629
1640
|
}
|
|
1630
1641
|
}
|
|
1631
|
-
var
|
|
1632
|
-
const
|
|
1642
|
+
var zs = {}, ir = {};
|
|
1643
|
+
const us = (e) => {
|
|
1633
1644
|
let t;
|
|
1634
|
-
const r = /* @__PURE__ */ new Set(), s = (h,
|
|
1645
|
+
const r = /* @__PURE__ */ new Set(), s = (h, i) => {
|
|
1635
1646
|
const p = typeof h == "function" ? h(t) : h;
|
|
1636
1647
|
if (!Object.is(p, t)) {
|
|
1637
1648
|
const g = t;
|
|
1638
|
-
t =
|
|
1649
|
+
t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((k) => k(t, g));
|
|
1639
1650
|
}
|
|
1640
1651
|
}, a = () => t, c = { setState: s, getState: a, getInitialState: () => u, subscribe: (h) => (r.add(h), () => r.delete(h)) }, u = t = e(s, a, c);
|
|
1641
1652
|
return c;
|
|
1642
|
-
}, xo = (e) => e ?
|
|
1643
|
-
|
|
1644
|
-
var
|
|
1653
|
+
}, xo = (e) => e ? us(e) : us;
|
|
1654
|
+
ir.createStore = xo;
|
|
1655
|
+
var lr = {}, js = { exports: {} }, w = {};
|
|
1645
1656
|
/**
|
|
1646
1657
|
* @license React
|
|
1647
1658
|
* react.production.js
|
|
@@ -1651,11 +1662,11 @@ var ir = {}, zs = { exports: {} }, w = {};
|
|
|
1651
1662
|
* This source code is licensed under the MIT license found in the
|
|
1652
1663
|
* LICENSE file in the root directory of this source tree.
|
|
1653
1664
|
*/
|
|
1654
|
-
var
|
|
1665
|
+
var ur = Symbol.for("react.transitional.element"), Ro = Symbol.for("react.portal"), Eo = Symbol.for("react.fragment"), Po = Symbol.for("react.strict_mode"), To = Symbol.for("react.profiler"), $o = Symbol.for("react.consumer"), _o = Symbol.for("react.context"), Io = Symbol.for("react.forward_ref"), Ao = Symbol.for("react.suspense"), Mo = Symbol.for("react.memo"), Vs = Symbol.for("react.lazy"), hs = Symbol.iterator;
|
|
1655
1666
|
function Lo(e) {
|
|
1656
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
1667
|
+
return e === null || typeof e != "object" ? null : (e = hs && e[hs] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1657
1668
|
}
|
|
1658
|
-
var
|
|
1669
|
+
var Bs = {
|
|
1659
1670
|
isMounted: function() {
|
|
1660
1671
|
return !1;
|
|
1661
1672
|
},
|
|
@@ -1665,35 +1676,35 @@ var Vs = {
|
|
|
1665
1676
|
},
|
|
1666
1677
|
enqueueSetState: function() {
|
|
1667
1678
|
}
|
|
1668
|
-
},
|
|
1669
|
-
function
|
|
1670
|
-
this.props = e, this.context = t, this.refs =
|
|
1679
|
+
}, Ws = Object.assign, Gs = {};
|
|
1680
|
+
function Ue(e, t, r) {
|
|
1681
|
+
this.props = e, this.context = t, this.refs = Gs, this.updater = r || Bs;
|
|
1671
1682
|
}
|
|
1672
|
-
|
|
1673
|
-
|
|
1683
|
+
Ue.prototype.isReactComponent = {};
|
|
1684
|
+
Ue.prototype.setState = function(e, t) {
|
|
1674
1685
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1675
1686
|
throw Error(
|
|
1676
1687
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1677
1688
|
);
|
|
1678
1689
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
1679
1690
|
};
|
|
1680
|
-
|
|
1691
|
+
Ue.prototype.forceUpdate = function(e) {
|
|
1681
1692
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1682
1693
|
};
|
|
1683
|
-
function
|
|
1694
|
+
function qs() {
|
|
1684
1695
|
}
|
|
1685
|
-
|
|
1686
|
-
function
|
|
1687
|
-
this.props = e, this.context = t, this.refs =
|
|
1696
|
+
qs.prototype = Ue.prototype;
|
|
1697
|
+
function hr(e, t, r) {
|
|
1698
|
+
this.props = e, this.context = t, this.refs = Gs, this.updater = r || Bs;
|
|
1688
1699
|
}
|
|
1689
|
-
var
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
var
|
|
1700
|
+
var dr = hr.prototype = new qs();
|
|
1701
|
+
dr.constructor = hr;
|
|
1702
|
+
Ws(dr, Ue.prototype);
|
|
1703
|
+
dr.isPureReactComponent = !0;
|
|
1704
|
+
var ds = Array.isArray, L = { H: null, A: null, T: null, S: null }, Ys = Object.prototype.hasOwnProperty;
|
|
1694
1705
|
function fr(e, t, r, s, a, o) {
|
|
1695
1706
|
return r = o.ref, {
|
|
1696
|
-
$$typeof:
|
|
1707
|
+
$$typeof: ur,
|
|
1697
1708
|
type: e,
|
|
1698
1709
|
key: t,
|
|
1699
1710
|
ref: r !== void 0 ? r : null,
|
|
@@ -1710,8 +1721,8 @@ function Oo(e, t) {
|
|
|
1710
1721
|
e.props
|
|
1711
1722
|
);
|
|
1712
1723
|
}
|
|
1713
|
-
function
|
|
1714
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
1724
|
+
function pr(e) {
|
|
1725
|
+
return typeof e == "object" && e !== null && e.$$typeof === ur;
|
|
1715
1726
|
}
|
|
1716
1727
|
function Fo(e) {
|
|
1717
1728
|
var t = { "=": "=0", ":": "=2" };
|
|
@@ -1720,10 +1731,10 @@ function Fo(e) {
|
|
|
1720
1731
|
});
|
|
1721
1732
|
}
|
|
1722
1733
|
var fs = /\/+/g;
|
|
1723
|
-
function
|
|
1734
|
+
function Yt(e, t) {
|
|
1724
1735
|
return typeof e == "object" && e !== null && e.key != null ? Fo("" + e.key) : t.toString(36);
|
|
1725
1736
|
}
|
|
1726
|
-
function
|
|
1737
|
+
function ps() {
|
|
1727
1738
|
}
|
|
1728
1739
|
function Do(e) {
|
|
1729
1740
|
switch (e.status) {
|
|
@@ -1732,7 +1743,7 @@ function Do(e) {
|
|
|
1732
1743
|
case "rejected":
|
|
1733
1744
|
throw e.reason;
|
|
1734
1745
|
default:
|
|
1735
|
-
switch (typeof e.status == "string" ? e.then(
|
|
1746
|
+
switch (typeof e.status == "string" ? e.then(ps, ps) : (e.status = "pending", e.then(
|
|
1736
1747
|
function(t) {
|
|
1737
1748
|
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
1738
1749
|
},
|
|
@@ -1762,11 +1773,11 @@ function Fe(e, t, r, s, a) {
|
|
|
1762
1773
|
break;
|
|
1763
1774
|
case "object":
|
|
1764
1775
|
switch (e.$$typeof) {
|
|
1765
|
-
case
|
|
1776
|
+
case ur:
|
|
1766
1777
|
case Ro:
|
|
1767
1778
|
n = !0;
|
|
1768
1779
|
break;
|
|
1769
|
-
case
|
|
1780
|
+
case Vs:
|
|
1770
1781
|
return n = e._init, Fe(
|
|
1771
1782
|
n(e._payload),
|
|
1772
1783
|
t,
|
|
@@ -1777,9 +1788,9 @@ function Fe(e, t, r, s, a) {
|
|
|
1777
1788
|
}
|
|
1778
1789
|
}
|
|
1779
1790
|
if (n)
|
|
1780
|
-
return a = a(e), n = s === "" ? "." +
|
|
1791
|
+
return a = a(e), n = s === "" ? "." + Yt(e, 0) : s, ds(a) ? (r = "", n != null && (r = n.replace(fs, "$&/") + "/"), Fe(a, t, r, "", function(h) {
|
|
1781
1792
|
return h;
|
|
1782
|
-
})) : a != null && (
|
|
1793
|
+
})) : a != null && (pr(a) && (a = Oo(
|
|
1783
1794
|
a,
|
|
1784
1795
|
r + (a.key == null || e && e.key === a.key ? "" : ("" + a.key).replace(
|
|
1785
1796
|
fs,
|
|
@@ -1788,9 +1799,9 @@ function Fe(e, t, r, s, a) {
|
|
|
1788
1799
|
)), t.push(a)), 1;
|
|
1789
1800
|
n = 0;
|
|
1790
1801
|
var c = s === "" ? "." : s + ":";
|
|
1791
|
-
if (
|
|
1802
|
+
if (ds(e))
|
|
1792
1803
|
for (var u = 0; u < e.length; u++)
|
|
1793
|
-
s = e[u], o = c +
|
|
1804
|
+
s = e[u], o = c + Yt(s, u), n += Fe(
|
|
1794
1805
|
s,
|
|
1795
1806
|
t,
|
|
1796
1807
|
r,
|
|
@@ -1799,7 +1810,7 @@ function Fe(e, t, r, s, a) {
|
|
|
1799
1810
|
);
|
|
1800
1811
|
else if (u = Lo(e), typeof u == "function")
|
|
1801
1812
|
for (e = u.call(e), u = 0; !(s = e.next()).done; )
|
|
1802
|
-
s = s.value, o = c +
|
|
1813
|
+
s = s.value, o = c + Yt(s, u++), n += Fe(
|
|
1803
1814
|
s,
|
|
1804
1815
|
t,
|
|
1805
1816
|
r,
|
|
@@ -1821,14 +1832,14 @@ function Fe(e, t, r, s, a) {
|
|
|
1821
1832
|
}
|
|
1822
1833
|
return n;
|
|
1823
1834
|
}
|
|
1824
|
-
function
|
|
1835
|
+
function gt(e, t, r) {
|
|
1825
1836
|
if (e == null) return e;
|
|
1826
1837
|
var s = [], a = 0;
|
|
1827
1838
|
return Fe(e, s, "", "", function(o) {
|
|
1828
1839
|
return t.call(r, o, a++);
|
|
1829
1840
|
}), s;
|
|
1830
1841
|
}
|
|
1831
|
-
function
|
|
1842
|
+
function Ho(e) {
|
|
1832
1843
|
if (e._status === -1) {
|
|
1833
1844
|
var t = e._result;
|
|
1834
1845
|
t = t(), t.then(
|
|
@@ -1843,7 +1854,7 @@ function No(e) {
|
|
|
1843
1854
|
if (e._status === 1) return e._result.default;
|
|
1844
1855
|
throw e._result;
|
|
1845
1856
|
}
|
|
1846
|
-
var
|
|
1857
|
+
var ms = typeof reportError == "function" ? reportError : function(e) {
|
|
1847
1858
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1848
1859
|
var t = new window.ErrorEvent("error", {
|
|
1849
1860
|
bubbles: !0,
|
|
@@ -1858,12 +1869,12 @@ var ps = typeof reportError == "function" ? reportError : function(e) {
|
|
|
1858
1869
|
}
|
|
1859
1870
|
console.error(e);
|
|
1860
1871
|
};
|
|
1861
|
-
function
|
|
1872
|
+
function No() {
|
|
1862
1873
|
}
|
|
1863
1874
|
w.Children = {
|
|
1864
|
-
map:
|
|
1875
|
+
map: gt,
|
|
1865
1876
|
forEach: function(e, t, r) {
|
|
1866
|
-
|
|
1877
|
+
gt(
|
|
1867
1878
|
e,
|
|
1868
1879
|
function() {
|
|
1869
1880
|
t.apply(this, arguments);
|
|
@@ -1873,27 +1884,27 @@ w.Children = {
|
|
|
1873
1884
|
},
|
|
1874
1885
|
count: function(e) {
|
|
1875
1886
|
var t = 0;
|
|
1876
|
-
return
|
|
1887
|
+
return gt(e, function() {
|
|
1877
1888
|
t++;
|
|
1878
1889
|
}), t;
|
|
1879
1890
|
},
|
|
1880
1891
|
toArray: function(e) {
|
|
1881
|
-
return
|
|
1892
|
+
return gt(e, function(t) {
|
|
1882
1893
|
return t;
|
|
1883
1894
|
}) || [];
|
|
1884
1895
|
},
|
|
1885
1896
|
only: function(e) {
|
|
1886
|
-
if (!
|
|
1897
|
+
if (!pr(e))
|
|
1887
1898
|
throw Error(
|
|
1888
1899
|
"React.Children.only expected to receive a single React element child."
|
|
1889
1900
|
);
|
|
1890
1901
|
return e;
|
|
1891
1902
|
}
|
|
1892
1903
|
};
|
|
1893
|
-
w.Component =
|
|
1904
|
+
w.Component = Ue;
|
|
1894
1905
|
w.Fragment = Eo;
|
|
1895
1906
|
w.Profiler = To;
|
|
1896
|
-
w.PureComponent =
|
|
1907
|
+
w.PureComponent = hr;
|
|
1897
1908
|
w.StrictMode = Po;
|
|
1898
1909
|
w.Suspense = Ao;
|
|
1899
1910
|
w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L;
|
|
@@ -1910,10 +1921,10 @@ w.cloneElement = function(e, t, r) {
|
|
|
1910
1921
|
throw Error(
|
|
1911
1922
|
"The argument must be a React element, but you passed " + e + "."
|
|
1912
1923
|
);
|
|
1913
|
-
var s =
|
|
1924
|
+
var s = Ws({}, e.props), a = e.key, o = void 0;
|
|
1914
1925
|
if (t != null)
|
|
1915
1926
|
for (n in t.ref !== void 0 && (o = void 0), t.key !== void 0 && (a = "" + t.key), t)
|
|
1916
|
-
!
|
|
1927
|
+
!Ys.call(t, n) || n === "key" || n === "__self" || n === "__source" || n === "ref" && t.ref === void 0 || (s[n] = t[n]);
|
|
1917
1928
|
var n = arguments.length - 2;
|
|
1918
1929
|
if (n === 1) s.children = r;
|
|
1919
1930
|
else if (1 < n) {
|
|
@@ -1940,7 +1951,7 @@ w.createElement = function(e, t, r) {
|
|
|
1940
1951
|
var s, a = {}, o = null;
|
|
1941
1952
|
if (t != null)
|
|
1942
1953
|
for (s in t.key !== void 0 && (o = "" + t.key), t)
|
|
1943
|
-
|
|
1954
|
+
Ys.call(t, s) && s !== "key" && s !== "__self" && s !== "__source" && (a[s] = t[s]);
|
|
1944
1955
|
var n = arguments.length - 2;
|
|
1945
1956
|
if (n === 1) a.children = r;
|
|
1946
1957
|
else if (1 < n) {
|
|
@@ -1959,12 +1970,12 @@ w.createRef = function() {
|
|
|
1959
1970
|
w.forwardRef = function(e) {
|
|
1960
1971
|
return { $$typeof: Io, render: e };
|
|
1961
1972
|
};
|
|
1962
|
-
w.isValidElement =
|
|
1973
|
+
w.isValidElement = pr;
|
|
1963
1974
|
w.lazy = function(e) {
|
|
1964
1975
|
return {
|
|
1965
|
-
$$typeof:
|
|
1976
|
+
$$typeof: Vs,
|
|
1966
1977
|
_payload: { _status: -1, _result: e },
|
|
1967
|
-
_init:
|
|
1978
|
+
_init: Ho
|
|
1968
1979
|
};
|
|
1969
1980
|
};
|
|
1970
1981
|
w.memo = function(e, t) {
|
|
@@ -1979,9 +1990,9 @@ w.startTransition = function(e) {
|
|
|
1979
1990
|
L.T = r;
|
|
1980
1991
|
try {
|
|
1981
1992
|
var s = e(), a = L.S;
|
|
1982
|
-
a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(
|
|
1993
|
+
a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(No, ms);
|
|
1983
1994
|
} catch (o) {
|
|
1984
|
-
|
|
1995
|
+
ms(o);
|
|
1985
1996
|
} finally {
|
|
1986
1997
|
L.T = t;
|
|
1987
1998
|
}
|
|
@@ -2047,25 +2058,25 @@ w.useTransition = function() {
|
|
|
2047
2058
|
return L.H.useTransition();
|
|
2048
2059
|
};
|
|
2049
2060
|
w.version = "19.0.0";
|
|
2050
|
-
|
|
2051
|
-
var
|
|
2061
|
+
js.exports = w;
|
|
2062
|
+
var gs = js.exports, Uo = ir;
|
|
2052
2063
|
const zo = (e) => e;
|
|
2053
|
-
function
|
|
2054
|
-
const r =
|
|
2064
|
+
function Zs(e, t = zo) {
|
|
2065
|
+
const r = gs.useSyncExternalStore(
|
|
2055
2066
|
e.subscribe,
|
|
2056
2067
|
() => t(e.getState()),
|
|
2057
2068
|
() => t(e.getInitialState())
|
|
2058
2069
|
);
|
|
2059
|
-
return
|
|
2070
|
+
return gs.useDebugValue(r), r;
|
|
2060
2071
|
}
|
|
2061
|
-
const
|
|
2062
|
-
const t = Uo.createStore(e), r = (s) =>
|
|
2072
|
+
const vs = (e) => {
|
|
2073
|
+
const t = Uo.createStore(e), r = (s) => Zs(t, s);
|
|
2063
2074
|
return Object.assign(r, t), r;
|
|
2064
|
-
}, jo = (e) => e ?
|
|
2065
|
-
|
|
2066
|
-
|
|
2075
|
+
}, jo = (e) => e ? vs(e) : vs;
|
|
2076
|
+
lr.create = jo;
|
|
2077
|
+
lr.useStore = Zs;
|
|
2067
2078
|
(function(e) {
|
|
2068
|
-
var t =
|
|
2079
|
+
var t = ir, r = lr;
|
|
2069
2080
|
Object.keys(t).forEach(function(s) {
|
|
2070
2081
|
s !== "default" && !Object.prototype.hasOwnProperty.call(e, s) && Object.defineProperty(e, s, {
|
|
2071
2082
|
enumerable: !0,
|
|
@@ -2081,8 +2092,8 @@ ir.useStore = Ys;
|
|
|
2081
2092
|
}
|
|
2082
2093
|
});
|
|
2083
2094
|
});
|
|
2084
|
-
})(
|
|
2085
|
-
const
|
|
2095
|
+
})(zs);
|
|
2096
|
+
const bs = {
|
|
2086
2097
|
adClientResponseItems: [],
|
|
2087
2098
|
core: void 0,
|
|
2088
2099
|
hotkey: "k",
|
|
@@ -2102,11 +2113,12 @@ const vs = {
|
|
|
2102
2113
|
searchResultsCount: 0,
|
|
2103
2114
|
searchResultsPerPage: 20,
|
|
2104
2115
|
searchResultsPage: 1,
|
|
2105
|
-
sortType:
|
|
2116
|
+
sortType: void 0,
|
|
2117
|
+
orderByField: void 0,
|
|
2106
2118
|
// Callbacks
|
|
2107
2119
|
afterInit: () => {
|
|
2108
2120
|
}
|
|
2109
|
-
}, I =
|
|
2121
|
+
}, I = zs.createStore((e, t) => {
|
|
2110
2122
|
const r = {
|
|
2111
2123
|
set: (a) => (e(a), t()),
|
|
2112
2124
|
addFacetPathsForIndexField: (a) => r.set((o) => ({
|
|
@@ -2126,7 +2138,7 @@ const vs = {
|
|
|
2126
2138
|
return a;
|
|
2127
2139
|
},
|
|
2128
2140
|
init: (a, o = !1) => {
|
|
2129
|
-
const n = o ? new
|
|
2141
|
+
const n = o ? new Yn({ logLevel: pe.DEBUG }) : void 0, c = r.set({
|
|
2130
2142
|
core: a,
|
|
2131
2143
|
logger: n,
|
|
2132
2144
|
searchResultsPerPage: (a == null ? void 0 : a.config.searchResultsPerPage) || 20
|
|
@@ -2174,6 +2186,7 @@ const vs = {
|
|
|
2174
2186
|
searchTerm: a.searchTerm,
|
|
2175
2187
|
mode: a.searchMode,
|
|
2176
2188
|
sort: a.sortType,
|
|
2189
|
+
order_by: a.orderByField,
|
|
2177
2190
|
facetPathsForIndexFields: a.facetPathsForIndexFields,
|
|
2178
2191
|
rangeValueForIndexFields: a.rangeValueForIndexFields,
|
|
2179
2192
|
offset: a.searchResultsPerPage ? a.searchResultsPerPage * (a.searchResultsPage - 1) : 0,
|
|
@@ -2182,7 +2195,7 @@ const vs = {
|
|
|
2182
2195
|
},
|
|
2183
2196
|
setAdClientResponseItems: (a) => r.set({ adClientResponseItems: a }),
|
|
2184
2197
|
setSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2185
|
-
var
|
|
2198
|
+
var i, p;
|
|
2186
2199
|
const { facets: n, count: c = 0, time_taken: u = 0 } = a.data, h = r.set((g) => ({
|
|
2187
2200
|
isSearchInProgress: !1,
|
|
2188
2201
|
searchClientResponseItems: o,
|
|
@@ -2192,20 +2205,20 @@ const vs = {
|
|
|
2192
2205
|
c === g.searchResultsCount ? g.searchResultsPage : 1
|
|
2193
2206
|
),
|
|
2194
2207
|
searchResultsCount: c,
|
|
2195
|
-
|
|
2208
|
+
searchResponseFacetPrime: n
|
|
2196
2209
|
}));
|
|
2197
|
-
(
|
|
2210
|
+
(i = h.logger) == null || i.log(pe.DEBUG, `Search results: ${JSON.stringify(o)}`), (p = h.logger) == null || p.log(pe.DEBUG, `Facets from response: ${JSON.stringify(n)}`);
|
|
2198
2211
|
},
|
|
2199
2212
|
setInitialSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2200
2213
|
var h;
|
|
2201
2214
|
const n = t(), { count: c = 0, time_taken: u = 0 } = a.data;
|
|
2202
|
-
r.set((
|
|
2215
|
+
r.set((i) => ({
|
|
2203
2216
|
isSearchInProgress: !1,
|
|
2204
2217
|
initialSearchClientResponseItems: o,
|
|
2205
2218
|
searchResponseTimeTaken: u,
|
|
2206
2219
|
searchResultsPage: (
|
|
2207
2220
|
// Reset to first page when response count changes
|
|
2208
|
-
c ===
|
|
2221
|
+
c === i.searchResultsCount ? i.searchResultsPage : 1
|
|
2209
2222
|
),
|
|
2210
2223
|
searchResultsCount: c
|
|
2211
2224
|
})), (h = n.logger) == null || h.log(pe.DEBUG, `Search results: ${JSON.stringify(o)}`);
|
|
@@ -2221,7 +2234,7 @@ const vs = {
|
|
|
2221
2234
|
isPopoverVisible: a
|
|
2222
2235
|
}),
|
|
2223
2236
|
setSearchMode: (a) => r.set({ searchMode: a }),
|
|
2224
|
-
|
|
2237
|
+
setSortOrder: ({ orderByField: a, sortType: o }) => r.set({ sortType: o, orderByField: a }),
|
|
2225
2238
|
setSearchTerm: (a) => {
|
|
2226
2239
|
const { core: o } = t();
|
|
2227
2240
|
a.length === 0 && (o == null || o.handleInputCleared()), r.set({
|
|
@@ -2229,7 +2242,8 @@ const vs = {
|
|
|
2229
2242
|
facetPathsForIndexFields: {},
|
|
2230
2243
|
...a.trim().length === 0 && {
|
|
2231
2244
|
searchMode: "fuzzy",
|
|
2232
|
-
sortType:
|
|
2245
|
+
sortType: null,
|
|
2246
|
+
orderByField: null
|
|
2233
2247
|
}
|
|
2234
2248
|
});
|
|
2235
2249
|
},
|
|
@@ -2242,7 +2256,7 @@ const vs = {
|
|
|
2242
2256
|
r.set({ searchResultsPerPage: a }), await r.search();
|
|
2243
2257
|
},
|
|
2244
2258
|
setHotKeyAndHotKeyModifier: (a, o) => {
|
|
2245
|
-
const { hotkey: n, hotkeyModifier: c } =
|
|
2259
|
+
const { hotkey: n, hotkeyModifier: c } = bs;
|
|
2246
2260
|
r.set({
|
|
2247
2261
|
hotkey: a || n,
|
|
2248
2262
|
hotkeyModifier: o || c
|
|
@@ -2250,11 +2264,48 @@ const vs = {
|
|
|
2250
2264
|
}
|
|
2251
2265
|
};
|
|
2252
2266
|
return {
|
|
2253
|
-
...
|
|
2267
|
+
...bs,
|
|
2254
2268
|
...r
|
|
2255
2269
|
};
|
|
2256
2270
|
});
|
|
2257
|
-
var
|
|
2271
|
+
var Qs = { exports: {} };
|
|
2272
|
+
/*!
|
|
2273
|
+
Copyright (c) 2018 Jed Watson.
|
|
2274
|
+
Licensed under the MIT License (MIT), see
|
|
2275
|
+
http://jedwatson.github.io/classnames
|
|
2276
|
+
*/
|
|
2277
|
+
(function(e) {
|
|
2278
|
+
(function() {
|
|
2279
|
+
var t = {}.hasOwnProperty;
|
|
2280
|
+
function r() {
|
|
2281
|
+
for (var o = "", n = 0; n < arguments.length; n++) {
|
|
2282
|
+
var c = arguments[n];
|
|
2283
|
+
c && (o = a(o, s(c)));
|
|
2284
|
+
}
|
|
2285
|
+
return o;
|
|
2286
|
+
}
|
|
2287
|
+
function s(o) {
|
|
2288
|
+
if (typeof o == "string" || typeof o == "number")
|
|
2289
|
+
return o;
|
|
2290
|
+
if (typeof o != "object")
|
|
2291
|
+
return "";
|
|
2292
|
+
if (Array.isArray(o))
|
|
2293
|
+
return r.apply(null, o);
|
|
2294
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
2295
|
+
return o.toString();
|
|
2296
|
+
var n = "";
|
|
2297
|
+
for (var c in o)
|
|
2298
|
+
t.call(o, c) && o[c] && (n = a(n, c));
|
|
2299
|
+
return n;
|
|
2300
|
+
}
|
|
2301
|
+
function a(o, n) {
|
|
2302
|
+
return n ? o ? o + " " + n : o + n : o;
|
|
2303
|
+
}
|
|
2304
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
2305
|
+
})();
|
|
2306
|
+
})(Qs);
|
|
2307
|
+
const ne = Qs.exports;
|
|
2308
|
+
var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ks = { exports: {} };
|
|
2258
2309
|
/*! @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 */
|
|
2259
2310
|
(function(e, t) {
|
|
2260
2311
|
(function(r, s) {
|
|
@@ -2272,27 +2323,27 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2272
2323
|
seal: u,
|
|
2273
2324
|
create: h
|
|
2274
2325
|
} = Object, {
|
|
2275
|
-
apply:
|
|
2326
|
+
apply: i,
|
|
2276
2327
|
construct: p
|
|
2277
2328
|
} = typeof Reflect < "u" && Reflect;
|
|
2278
2329
|
c || (c = function(y) {
|
|
2279
2330
|
return y;
|
|
2280
2331
|
}), u || (u = function(y) {
|
|
2281
2332
|
return y;
|
|
2282
|
-
}),
|
|
2333
|
+
}), i || (i = function(y, $, E) {
|
|
2283
2334
|
return y.apply($, E);
|
|
2284
2335
|
}), p || (p = function(y, $) {
|
|
2285
2336
|
return new y(...$);
|
|
2286
2337
|
});
|
|
2287
|
-
const g = Y(Array.prototype.forEach), k = Y(Array.prototype.lastIndexOf), b = Y(Array.prototype.pop), P = Y(Array.prototype.push), _ = Y(Array.prototype.splice), O = Y(String.prototype.toLowerCase), T = Y(String.prototype.toString), ue = Y(String.prototype.match), se = Y(String.prototype.replace), we = Y(String.prototype.indexOf),
|
|
2338
|
+
const g = Y(Array.prototype.forEach), k = Y(Array.prototype.lastIndexOf), b = Y(Array.prototype.pop), P = Y(Array.prototype.push), _ = Y(Array.prototype.splice), O = Y(String.prototype.toLowerCase), T = Y(String.prototype.toString), ue = Y(String.prototype.match), se = Y(String.prototype.replace), we = Y(String.prototype.indexOf), N = Y(String.prototype.trim), ee = Y(Object.prototype.hasOwnProperty), U = Y(RegExp.prototype.test), xe = da(TypeError);
|
|
2288
2339
|
function Y(R) {
|
|
2289
2340
|
return function(y) {
|
|
2290
2341
|
for (var $ = arguments.length, E = new Array($ > 1 ? $ - 1 : 0), W = 1; W < $; W++)
|
|
2291
2342
|
E[W - 1] = arguments[W];
|
|
2292
|
-
return
|
|
2343
|
+
return i(R, y, E);
|
|
2293
2344
|
};
|
|
2294
2345
|
}
|
|
2295
|
-
function
|
|
2346
|
+
function da(R) {
|
|
2296
2347
|
return function() {
|
|
2297
2348
|
for (var y = arguments.length, $ = new Array(y), E = 0; E < y; E++)
|
|
2298
2349
|
$[E] = arguments[E];
|
|
@@ -2324,7 +2375,7 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2324
2375
|
ee(R, $) && (Array.isArray(E) ? y[$] = fa(E) : E && typeof E == "object" && E.constructor === Object ? y[$] = Re(E) : y[$] = E);
|
|
2325
2376
|
return y;
|
|
2326
2377
|
}
|
|
2327
|
-
function
|
|
2378
|
+
function ze(R, y) {
|
|
2328
2379
|
for (; R !== null; ) {
|
|
2329
2380
|
const E = n(R, y);
|
|
2330
2381
|
if (E) {
|
|
@@ -2340,36 +2391,36 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2340
2391
|
}
|
|
2341
2392
|
return $;
|
|
2342
2393
|
}
|
|
2343
|
-
const
|
|
2394
|
+
const vr = 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"]), Et = 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"]), Pt = 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"]), pa = 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"]), Tt = 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"]), ma = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), br = c(["#text"]), yr = 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"]), $t = 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"]), Cr = 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"]), st = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ga = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), va = u(/<%[\w\W]*|[\w\W]*%>/gm), ba = u(/\$\{[\w\W]*/gm), ya = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ca = u(/^aria-[\-\w]+$/), Sr = u(
|
|
2344
2395
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2345
2396
|
// eslint-disable-line no-useless-escape
|
|
2346
|
-
),
|
|
2397
|
+
), Sa = u(/^(?:\w+script|data):/i), ka = u(
|
|
2347
2398
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
2348
2399
|
// eslint-disable-line no-control-regex
|
|
2349
|
-
),
|
|
2350
|
-
var
|
|
2400
|
+
), kr = u(/^html$/i), wa = u(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
2401
|
+
var wr = /* @__PURE__ */ Object.freeze({
|
|
2351
2402
|
__proto__: null,
|
|
2352
|
-
ARIA_ATTR:
|
|
2353
|
-
ATTR_WHITESPACE:
|
|
2354
|
-
CUSTOM_ELEMENT:
|
|
2355
|
-
DATA_ATTR:
|
|
2356
|
-
DOCTYPE_NAME:
|
|
2357
|
-
ERB_EXPR:
|
|
2358
|
-
IS_ALLOWED_URI:
|
|
2359
|
-
IS_SCRIPT_OR_DATA:
|
|
2360
|
-
MUSTACHE_EXPR:
|
|
2361
|
-
TMPLIT_EXPR:
|
|
2403
|
+
ARIA_ATTR: Ca,
|
|
2404
|
+
ATTR_WHITESPACE: ka,
|
|
2405
|
+
CUSTOM_ELEMENT: wa,
|
|
2406
|
+
DATA_ATTR: ya,
|
|
2407
|
+
DOCTYPE_NAME: kr,
|
|
2408
|
+
ERB_EXPR: va,
|
|
2409
|
+
IS_ALLOWED_URI: Sr,
|
|
2410
|
+
IS_SCRIPT_OR_DATA: Sa,
|
|
2411
|
+
MUSTACHE_EXPR: ga,
|
|
2412
|
+
TMPLIT_EXPR: ba
|
|
2362
2413
|
});
|
|
2363
|
-
const
|
|
2414
|
+
const je = {
|
|
2364
2415
|
element: 1,
|
|
2365
2416
|
text: 3,
|
|
2366
2417
|
// Deprecated
|
|
2367
2418
|
progressingInstruction: 7,
|
|
2368
2419
|
comment: 8,
|
|
2369
2420
|
document: 9
|
|
2370
|
-
},
|
|
2421
|
+
}, xa = function() {
|
|
2371
2422
|
return typeof window > "u" ? null : window;
|
|
2372
|
-
},
|
|
2423
|
+
}, Ra = function(y, $) {
|
|
2373
2424
|
if (typeof y != "object" || typeof y.createPolicy != "function")
|
|
2374
2425
|
return null;
|
|
2375
2426
|
let E = null;
|
|
@@ -2388,7 +2439,7 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2388
2439
|
} catch {
|
|
2389
2440
|
return console.warn("TrustedTypes policy " + he + " could not be created."), null;
|
|
2390
2441
|
}
|
|
2391
|
-
},
|
|
2442
|
+
}, xr = function() {
|
|
2392
2443
|
return {
|
|
2393
2444
|
afterSanitizeAttributes: [],
|
|
2394
2445
|
afterSanitizeElements: [],
|
|
@@ -2401,10 +2452,10 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2401
2452
|
uponSanitizeShadowNode: []
|
|
2402
2453
|
};
|
|
2403
2454
|
};
|
|
2404
|
-
function
|
|
2405
|
-
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
2406
|
-
const y = (C) =>
|
|
2407
|
-
if (y.version = "3.2.4", y.removed = [], !R || !R.document || R.document.nodeType !==
|
|
2455
|
+
function Rr() {
|
|
2456
|
+
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : xa();
|
|
2457
|
+
const y = (C) => Rr(C);
|
|
2458
|
+
if (y.version = "3.2.4", y.removed = [], !R || !R.document || R.document.nodeType !== je.document || !R.Element)
|
|
2408
2459
|
return y.isSupported = !1, y;
|
|
2409
2460
|
let {
|
|
2410
2461
|
document: $
|
|
@@ -2413,44 +2464,44 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2413
2464
|
DocumentFragment: he,
|
|
2414
2465
|
HTMLTemplateElement: Te,
|
|
2415
2466
|
Node: _t,
|
|
2416
|
-
Element:
|
|
2417
|
-
NodeFilter:
|
|
2418
|
-
NamedNodeMap:
|
|
2419
|
-
HTMLFormElement:
|
|
2420
|
-
DOMParser:
|
|
2421
|
-
trustedTypes:
|
|
2422
|
-
} = R,
|
|
2467
|
+
Element: Er,
|
|
2468
|
+
NodeFilter: Ve,
|
|
2469
|
+
NamedNodeMap: Pa = R.NamedNodeMap || R.MozNamedAttrMap,
|
|
2470
|
+
HTMLFormElement: Ta,
|
|
2471
|
+
DOMParser: $a,
|
|
2472
|
+
trustedTypes: at
|
|
2473
|
+
} = R, Be = Er.prototype, _a = ze(Be, "cloneNode"), Ia = ze(Be, "remove"), Aa = ze(Be, "nextSibling"), Ma = ze(Be, "childNodes"), nt = ze(Be, "parentNode");
|
|
2423
2474
|
if (typeof Te == "function") {
|
|
2424
2475
|
const C = $.createElement("template");
|
|
2425
2476
|
C.content && C.content.ownerDocument && ($ = C.content.ownerDocument);
|
|
2426
2477
|
}
|
|
2427
|
-
let Z,
|
|
2478
|
+
let Z, We = "";
|
|
2428
2479
|
const {
|
|
2429
2480
|
implementation: It,
|
|
2430
|
-
createNodeIterator:
|
|
2431
|
-
createDocumentFragment:
|
|
2432
|
-
getElementsByTagName:
|
|
2481
|
+
createNodeIterator: La,
|
|
2482
|
+
createDocumentFragment: Oa,
|
|
2483
|
+
getElementsByTagName: Fa
|
|
2433
2484
|
} = $, {
|
|
2434
|
-
importNode:
|
|
2485
|
+
importNode: Da
|
|
2435
2486
|
} = E;
|
|
2436
|
-
let Q =
|
|
2437
|
-
y.isSupported = typeof r == "function" && typeof
|
|
2487
|
+
let Q = xr();
|
|
2488
|
+
y.isSupported = typeof r == "function" && typeof nt == "function" && It && It.createHTMLDocument !== void 0;
|
|
2438
2489
|
const {
|
|
2439
2490
|
MUSTACHE_EXPR: At,
|
|
2440
2491
|
ERB_EXPR: Mt,
|
|
2441
2492
|
TMPLIT_EXPR: Lt,
|
|
2442
|
-
DATA_ATTR:
|
|
2493
|
+
DATA_ATTR: Ha,
|
|
2443
2494
|
ARIA_ATTR: Na,
|
|
2444
|
-
IS_SCRIPT_OR_DATA:
|
|
2445
|
-
ATTR_WHITESPACE:
|
|
2446
|
-
CUSTOM_ELEMENT:
|
|
2447
|
-
} =
|
|
2495
|
+
IS_SCRIPT_OR_DATA: Ua,
|
|
2496
|
+
ATTR_WHITESPACE: Pr,
|
|
2497
|
+
CUSTOM_ELEMENT: za
|
|
2498
|
+
} = wr;
|
|
2448
2499
|
let {
|
|
2449
|
-
IS_ALLOWED_URI:
|
|
2450
|
-
} =
|
|
2451
|
-
const
|
|
2500
|
+
IS_ALLOWED_URI: Tr
|
|
2501
|
+
} = wr, z = null;
|
|
2502
|
+
const $r = x({}, [...vr, ...Et, ...Pt, ...Tt, ...br]);
|
|
2452
2503
|
let V = null;
|
|
2453
|
-
const
|
|
2504
|
+
const _r = x({}, [...yr, ...$t, ...Cr, ...st]);
|
|
2454
2505
|
let F = Object.seal(h(null, {
|
|
2455
2506
|
tagNameCheck: {
|
|
2456
2507
|
writable: !0,
|
|
@@ -2470,58 +2521,58 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2470
2521
|
enumerable: !0,
|
|
2471
2522
|
value: !1
|
|
2472
2523
|
}
|
|
2473
|
-
})),
|
|
2474
|
-
const
|
|
2475
|
-
let Ut = !0,
|
|
2476
|
-
const
|
|
2477
|
-
let
|
|
2478
|
-
const
|
|
2524
|
+
})), Ge = null, Ot = null, Ir = !0, Ft = !0, Ar = !1, Mr = !0, $e = !1, Dt = !0, Ee = !1, Ht = !1, Nt = !1, _e = !1, ot = !1, ct = !1, Lr = !0, Or = !1;
|
|
2525
|
+
const ja = "user-content-";
|
|
2526
|
+
let Ut = !0, qe = !1, Ie = {}, Ae = null;
|
|
2527
|
+
const Fr = 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"]);
|
|
2528
|
+
let Dr = null;
|
|
2529
|
+
const Hr = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2479
2530
|
let zt = null;
|
|
2480
|
-
const Nr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
2481
|
-
let Me =
|
|
2482
|
-
const
|
|
2483
|
-
let
|
|
2484
|
-
const
|
|
2485
|
-
let
|
|
2486
|
-
const
|
|
2531
|
+
const Nr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), it = "http://www.w3.org/1998/Math/MathML", lt = "http://www.w3.org/2000/svg", de = "http://www.w3.org/1999/xhtml";
|
|
2532
|
+
let Me = de, jt = !1, Vt = null;
|
|
2533
|
+
const Va = x({}, [it, lt, de], T);
|
|
2534
|
+
let ut = x({}, ["mi", "mo", "mn", "ms", "mtext"]), ht = x({}, ["annotation-xml"]);
|
|
2535
|
+
const Ba = x({}, ["title", "style", "font", "a", "script"]);
|
|
2536
|
+
let Ye = null;
|
|
2537
|
+
const Wa = ["application/xhtml+xml", "text/html"], Ga = "text/html";
|
|
2487
2538
|
let j = null, Le = null;
|
|
2488
|
-
const
|
|
2489
|
-
return
|
|
2539
|
+
const qa = $.createElement("form"), Ur = function(d) {
|
|
2540
|
+
return d instanceof RegExp || d instanceof Function;
|
|
2490
2541
|
}, Bt = function() {
|
|
2491
|
-
let
|
|
2492
|
-
if (!(Le && Le ===
|
|
2493
|
-
if ((!
|
|
2494
|
-
|
|
2495
|
-
if (typeof
|
|
2542
|
+
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2543
|
+
if (!(Le && Le === d)) {
|
|
2544
|
+
if ((!d || typeof d != "object") && (d = {}), d = Re(d), Ye = // eslint-disable-next-line unicorn/prefer-includes
|
|
2545
|
+
Wa.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? Ga : d.PARSER_MEDIA_TYPE, j = Ye === "application/xhtml+xml" ? T : O, z = ee(d, "ALLOWED_TAGS") ? x({}, d.ALLOWED_TAGS, j) : $r, V = ee(d, "ALLOWED_ATTR") ? x({}, d.ALLOWED_ATTR, j) : _r, Vt = ee(d, "ALLOWED_NAMESPACES") ? x({}, d.ALLOWED_NAMESPACES, T) : Va, zt = ee(d, "ADD_URI_SAFE_ATTR") ? x(Re(Nr), d.ADD_URI_SAFE_ATTR, j) : Nr, Dr = ee(d, "ADD_DATA_URI_TAGS") ? x(Re(Hr), d.ADD_DATA_URI_TAGS, j) : Hr, Ae = ee(d, "FORBID_CONTENTS") ? x({}, d.FORBID_CONTENTS, j) : Fr, Ge = ee(d, "FORBID_TAGS") ? x({}, d.FORBID_TAGS, j) : {}, Ot = ee(d, "FORBID_ATTR") ? x({}, d.FORBID_ATTR, j) : {}, Ie = ee(d, "USE_PROFILES") ? d.USE_PROFILES : !1, Ir = d.ALLOW_ARIA_ATTR !== !1, Ft = d.ALLOW_DATA_ATTR !== !1, Ar = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Mr = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $e = d.SAFE_FOR_TEMPLATES || !1, Dt = d.SAFE_FOR_XML !== !1, Ee = d.WHOLE_DOCUMENT || !1, _e = d.RETURN_DOM || !1, ot = d.RETURN_DOM_FRAGMENT || !1, ct = d.RETURN_TRUSTED_TYPE || !1, Nt = d.FORCE_BODY || !1, Lr = d.SANITIZE_DOM !== !1, Or = d.SANITIZE_NAMED_PROPS || !1, Ut = d.KEEP_CONTENT !== !1, qe = d.IN_PLACE || !1, Tr = d.ALLOWED_URI_REGEXP || Sr, Me = d.NAMESPACE || de, ut = d.MATHML_TEXT_INTEGRATION_POINTS || ut, ht = d.HTML_INTEGRATION_POINTS || ht, F = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && Ur(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && Ur(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $e && (Ft = !1), ot && (_e = !0), Ie && (z = x({}, br), V = [], Ie.html === !0 && (x(z, vr), x(V, yr)), Ie.svg === !0 && (x(z, Et), x(V, $t), x(V, st)), Ie.svgFilters === !0 && (x(z, Pt), x(V, $t), x(V, st)), Ie.mathMl === !0 && (x(z, Tt), x(V, Cr), x(V, st))), d.ADD_TAGS && (z === $r && (z = Re(z)), x(z, d.ADD_TAGS, j)), d.ADD_ATTR && (V === _r && (V = Re(V)), x(V, d.ADD_ATTR, j)), d.ADD_URI_SAFE_ATTR && x(zt, d.ADD_URI_SAFE_ATTR, j), d.FORBID_CONTENTS && (Ae === Fr && (Ae = Re(Ae)), x(Ae, d.FORBID_CONTENTS, j)), Ut && (z["#text"] = !0), Ee && x(z, ["html", "head", "body"]), z.table && (x(z, ["tbody"]), delete Ge.tbody), d.TRUSTED_TYPES_POLICY) {
|
|
2546
|
+
if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2496
2547
|
throw xe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2497
|
-
if (typeof
|
|
2548
|
+
if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
2498
2549
|
throw xe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2499
|
-
Z =
|
|
2550
|
+
Z = d.TRUSTED_TYPES_POLICY, We = Z.createHTML("");
|
|
2500
2551
|
} else
|
|
2501
|
-
Z === void 0 && (Z =
|
|
2502
|
-
c && c(
|
|
2552
|
+
Z === void 0 && (Z = Ra(at, W)), Z !== null && typeof We == "string" && (We = Z.createHTML(""));
|
|
2553
|
+
c && c(d), Le = d;
|
|
2503
2554
|
}
|
|
2504
|
-
},
|
|
2505
|
-
let m =
|
|
2555
|
+
}, zr = x({}, [...Et, ...Pt, ...pa]), jr = x({}, [...Tt, ...ma]), Ya = function(d) {
|
|
2556
|
+
let m = nt(d);
|
|
2506
2557
|
(!m || !m.tagName) && (m = {
|
|
2507
2558
|
namespaceURI: Me,
|
|
2508
2559
|
tagName: "template"
|
|
2509
2560
|
});
|
|
2510
|
-
const v = O(
|
|
2511
|
-
return Vt[
|
|
2512
|
-
}, ie = function(
|
|
2561
|
+
const v = O(d.tagName), M = O(m.tagName);
|
|
2562
|
+
return Vt[d.namespaceURI] ? d.namespaceURI === lt ? m.namespaceURI === de ? v === "svg" : m.namespaceURI === it ? v === "svg" && (M === "annotation-xml" || ut[M]) : !!zr[v] : d.namespaceURI === it ? m.namespaceURI === de ? v === "math" : m.namespaceURI === lt ? v === "math" && ht[M] : !!jr[v] : d.namespaceURI === de ? m.namespaceURI === lt && !ht[M] || m.namespaceURI === it && !ut[M] ? !1 : !jr[v] && (Ba[v] || !zr[v]) : !!(Ye === "application/xhtml+xml" && Vt[d.namespaceURI]) : !1;
|
|
2563
|
+
}, ie = function(d) {
|
|
2513
2564
|
P(y.removed, {
|
|
2514
|
-
element:
|
|
2565
|
+
element: d
|
|
2515
2566
|
});
|
|
2516
2567
|
try {
|
|
2517
|
-
|
|
2568
|
+
nt(d).removeChild(d);
|
|
2518
2569
|
} catch {
|
|
2519
|
-
|
|
2570
|
+
Ia(d);
|
|
2520
2571
|
}
|
|
2521
|
-
},
|
|
2572
|
+
}, dt = function(d, m) {
|
|
2522
2573
|
try {
|
|
2523
2574
|
P(y.removed, {
|
|
2524
|
-
attribute: m.getAttributeNode(
|
|
2575
|
+
attribute: m.getAttributeNode(d),
|
|
2525
2576
|
from: m
|
|
2526
2577
|
});
|
|
2527
2578
|
} catch {
|
|
@@ -2530,107 +2581,107 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2530
2581
|
from: m
|
|
2531
2582
|
});
|
|
2532
2583
|
}
|
|
2533
|
-
if (m.removeAttribute(
|
|
2534
|
-
if (_e ||
|
|
2584
|
+
if (m.removeAttribute(d), d === "is")
|
|
2585
|
+
if (_e || ot)
|
|
2535
2586
|
try {
|
|
2536
2587
|
ie(m);
|
|
2537
2588
|
} catch {
|
|
2538
2589
|
}
|
|
2539
2590
|
else
|
|
2540
2591
|
try {
|
|
2541
|
-
m.setAttribute(
|
|
2592
|
+
m.setAttribute(d, "");
|
|
2542
2593
|
} catch {
|
|
2543
2594
|
}
|
|
2544
|
-
},
|
|
2595
|
+
}, Vr = function(d) {
|
|
2545
2596
|
let m = null, v = null;
|
|
2546
|
-
if (
|
|
2547
|
-
|
|
2597
|
+
if (Nt)
|
|
2598
|
+
d = "<remove></remove>" + d;
|
|
2548
2599
|
else {
|
|
2549
|
-
const B = ue(
|
|
2600
|
+
const B = ue(d, /^[\r\n\t ]+/);
|
|
2550
2601
|
v = B && B[0];
|
|
2551
2602
|
}
|
|
2552
|
-
|
|
2553
|
-
const M = Z ? Z.createHTML(
|
|
2554
|
-
if (Me ===
|
|
2603
|
+
Ye === "application/xhtml+xml" && Me === de && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
|
|
2604
|
+
const M = Z ? Z.createHTML(d) : d;
|
|
2605
|
+
if (Me === de)
|
|
2555
2606
|
try {
|
|
2556
|
-
m = new
|
|
2607
|
+
m = new $a().parseFromString(M, Ye);
|
|
2557
2608
|
} catch {
|
|
2558
2609
|
}
|
|
2559
2610
|
if (!m || !m.documentElement) {
|
|
2560
2611
|
m = It.createDocument(Me, "template", null);
|
|
2561
2612
|
try {
|
|
2562
|
-
m.documentElement.innerHTML = jt ?
|
|
2613
|
+
m.documentElement.innerHTML = jt ? We : M;
|
|
2563
2614
|
} catch {
|
|
2564
2615
|
}
|
|
2565
2616
|
}
|
|
2566
2617
|
const G = m.body || m.documentElement;
|
|
2567
|
-
return
|
|
2568
|
-
},
|
|
2569
|
-
return
|
|
2570
|
-
|
|
2571
|
-
|
|
2618
|
+
return d && v && G.insertBefore($.createTextNode(v), G.childNodes[0] || null), Me === de ? Fa.call(m, Ee ? "html" : "body")[0] : Ee ? m.documentElement : G;
|
|
2619
|
+
}, Br = function(d) {
|
|
2620
|
+
return La.call(
|
|
2621
|
+
d.ownerDocument || d,
|
|
2622
|
+
d,
|
|
2572
2623
|
// eslint-disable-next-line no-bitwise
|
|
2573
|
-
|
|
2624
|
+
Ve.SHOW_ELEMENT | Ve.SHOW_COMMENT | Ve.SHOW_TEXT | Ve.SHOW_PROCESSING_INSTRUCTION | Ve.SHOW_CDATA_SECTION,
|
|
2574
2625
|
null
|
|
2575
2626
|
);
|
|
2576
|
-
}, Wt = function(
|
|
2577
|
-
return
|
|
2578
|
-
},
|
|
2579
|
-
return typeof _t == "function" &&
|
|
2627
|
+
}, Wt = function(d) {
|
|
2628
|
+
return d instanceof Ta && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof Pa) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
|
|
2629
|
+
}, Wr = function(d) {
|
|
2630
|
+
return typeof _t == "function" && d instanceof _t;
|
|
2580
2631
|
};
|
|
2581
|
-
function
|
|
2632
|
+
function fe(C, d, m) {
|
|
2582
2633
|
g(C, (v) => {
|
|
2583
|
-
v.call(y,
|
|
2634
|
+
v.call(y, d, m, Le);
|
|
2584
2635
|
});
|
|
2585
2636
|
}
|
|
2586
|
-
const
|
|
2637
|
+
const Gr = function(d) {
|
|
2587
2638
|
let m = null;
|
|
2588
|
-
if (
|
|
2589
|
-
return ie(
|
|
2590
|
-
const v = j(
|
|
2591
|
-
if (
|
|
2639
|
+
if (fe(Q.beforeSanitizeElements, d, null), Wt(d))
|
|
2640
|
+
return ie(d), !0;
|
|
2641
|
+
const v = j(d.nodeName);
|
|
2642
|
+
if (fe(Q.uponSanitizeElement, d, {
|
|
2592
2643
|
tagName: v,
|
|
2593
2644
|
allowedTags: z
|
|
2594
|
-
}),
|
|
2595
|
-
return ie(
|
|
2596
|
-
if (!z[v] ||
|
|
2597
|
-
if (!
|
|
2645
|
+
}), d.hasChildNodes() && !Wr(d.firstElementChild) && U(/<[/\w]/g, d.innerHTML) && U(/<[/\w]/g, d.textContent) || d.nodeType === je.progressingInstruction || Dt && d.nodeType === je.comment && U(/<[/\w]/g, d.data))
|
|
2646
|
+
return ie(d), !0;
|
|
2647
|
+
if (!z[v] || Ge[v]) {
|
|
2648
|
+
if (!Ge[v] && Yr(v) && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, v) || F.tagNameCheck instanceof Function && F.tagNameCheck(v)))
|
|
2598
2649
|
return !1;
|
|
2599
2650
|
if (Ut && !Ae[v]) {
|
|
2600
|
-
const M =
|
|
2651
|
+
const M = nt(d) || d.parentNode, G = Ma(d) || d.childNodes;
|
|
2601
2652
|
if (G && M) {
|
|
2602
2653
|
const B = G.length;
|
|
2603
2654
|
for (let te = B - 1; te >= 0; --te) {
|
|
2604
|
-
const le =
|
|
2605
|
-
le.__removalCount = (
|
|
2655
|
+
const le = _a(G[te], !0);
|
|
2656
|
+
le.__removalCount = (d.__removalCount || 0) + 1, M.insertBefore(le, Aa(d));
|
|
2606
2657
|
}
|
|
2607
2658
|
}
|
|
2608
2659
|
}
|
|
2609
|
-
return ie(
|
|
2660
|
+
return ie(d), !0;
|
|
2610
2661
|
}
|
|
2611
|
-
return
|
|
2662
|
+
return d instanceof Er && !Ya(d) || (v === "noscript" || v === "noembed" || v === "noframes") && U(/<\/no(script|embed|frames)/i, d.innerHTML) ? (ie(d), !0) : ($e && d.nodeType === je.text && (m = d.textContent, g([At, Mt, Lt], (M) => {
|
|
2612
2663
|
m = se(m, M, " ");
|
|
2613
|
-
}),
|
|
2614
|
-
element:
|
|
2615
|
-
}),
|
|
2616
|
-
},
|
|
2617
|
-
if (
|
|
2664
|
+
}), d.textContent !== m && (P(y.removed, {
|
|
2665
|
+
element: d.cloneNode()
|
|
2666
|
+
}), d.textContent = m)), fe(Q.afterSanitizeElements, d, null), !1);
|
|
2667
|
+
}, qr = function(d, m, v) {
|
|
2668
|
+
if (Lr && (m === "id" || m === "name") && (v in $ || v in qa))
|
|
2618
2669
|
return !1;
|
|
2619
|
-
if (!(Ft && !Ot[m] && U(
|
|
2620
|
-
if (!(
|
|
2670
|
+
if (!(Ft && !Ot[m] && U(Ha, m))) {
|
|
2671
|
+
if (!(Ir && U(Na, m))) {
|
|
2621
2672
|
if (!V[m] || Ot[m]) {
|
|
2622
2673
|
if (
|
|
2623
2674
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2624
2675
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2625
2676
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2626
|
-
!(
|
|
2677
|
+
!(Yr(d) && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, d) || F.tagNameCheck instanceof Function && F.tagNameCheck(d)) && (F.attributeNameCheck instanceof RegExp && U(F.attributeNameCheck, m) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2627
2678
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2628
2679
|
m === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, v) || F.tagNameCheck instanceof Function && F.tagNameCheck(v)))
|
|
2629
2680
|
) return !1;
|
|
2630
2681
|
} else if (!zt[m]) {
|
|
2631
|
-
if (!U(
|
|
2632
|
-
if (!((m === "src" || m === "xlink:href" || m === "href") &&
|
|
2633
|
-
if (!(
|
|
2682
|
+
if (!U(Tr, se(v, Pr, ""))) {
|
|
2683
|
+
if (!((m === "src" || m === "xlink:href" || m === "href") && d !== "script" && we(v, "data:") === 0 && Dr[d])) {
|
|
2684
|
+
if (!(Ar && !U(Ua, se(v, Pr, "")))) {
|
|
2634
2685
|
if (v)
|
|
2635
2686
|
return !1;
|
|
2636
2687
|
}
|
|
@@ -2640,14 +2691,14 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2640
2691
|
}
|
|
2641
2692
|
}
|
|
2642
2693
|
return !0;
|
|
2643
|
-
},
|
|
2644
|
-
return
|
|
2645
|
-
},
|
|
2646
|
-
|
|
2694
|
+
}, Yr = function(d) {
|
|
2695
|
+
return d !== "annotation-xml" && ue(d, za);
|
|
2696
|
+
}, Zr = function(d) {
|
|
2697
|
+
fe(Q.beforeSanitizeAttributes, d, null);
|
|
2647
2698
|
const {
|
|
2648
2699
|
attributes: m
|
|
2649
|
-
} =
|
|
2650
|
-
if (!m || Wt(
|
|
2700
|
+
} = d;
|
|
2701
|
+
if (!m || Wt(d))
|
|
2651
2702
|
return;
|
|
2652
2703
|
const v = {
|
|
2653
2704
|
attrName: "",
|
|
@@ -2662,25 +2713,25 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2662
2713
|
name: B,
|
|
2663
2714
|
namespaceURI: te,
|
|
2664
2715
|
value: le
|
|
2665
|
-
} = G,
|
|
2666
|
-
let K = B === "value" ? le :
|
|
2667
|
-
if (v.attrName =
|
|
2668
|
-
|
|
2716
|
+
} = G, Ze = j(B);
|
|
2717
|
+
let K = B === "value" ? le : N(le);
|
|
2718
|
+
if (v.attrName = Ze, v.attrValue = K, v.keepAttr = !0, v.forceKeepAttr = void 0, fe(Q.uponSanitizeAttribute, d, v), K = v.attrValue, Or && (Ze === "id" || Ze === "name") && (dt(B, d), K = ja + K), Dt && U(/((--!?|])>)|<\/(style|title)/i, K)) {
|
|
2719
|
+
dt(B, d);
|
|
2669
2720
|
continue;
|
|
2670
2721
|
}
|
|
2671
|
-
if (v.forceKeepAttr || (
|
|
2722
|
+
if (v.forceKeepAttr || (dt(B, d), !v.keepAttr))
|
|
2672
2723
|
continue;
|
|
2673
|
-
if (!
|
|
2674
|
-
|
|
2724
|
+
if (!Mr && U(/\/>/i, K)) {
|
|
2725
|
+
dt(B, d);
|
|
2675
2726
|
continue;
|
|
2676
2727
|
}
|
|
2677
|
-
$e && g([At, Mt, Lt], (
|
|
2678
|
-
K = se(K,
|
|
2728
|
+
$e && g([At, Mt, Lt], (Kr) => {
|
|
2729
|
+
K = se(K, Kr, " ");
|
|
2679
2730
|
});
|
|
2680
|
-
const
|
|
2681
|
-
if (
|
|
2682
|
-
if (Z && typeof
|
|
2683
|
-
switch (
|
|
2731
|
+
const Qr = j(d.nodeName);
|
|
2732
|
+
if (qr(Qr, Ze, K)) {
|
|
2733
|
+
if (Z && typeof at == "object" && typeof at.getAttributeType == "function" && !te)
|
|
2734
|
+
switch (at.getAttributeType(Qr, Ze)) {
|
|
2684
2735
|
case "TrustedHTML": {
|
|
2685
2736
|
K = Z.createHTML(K);
|
|
2686
2737
|
break;
|
|
@@ -2691,22 +2742,22 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2691
2742
|
}
|
|
2692
2743
|
}
|
|
2693
2744
|
try {
|
|
2694
|
-
te ?
|
|
2745
|
+
te ? d.setAttributeNS(te, B, K) : d.setAttribute(B, K), Wt(d) ? ie(d) : b(y.removed);
|
|
2695
2746
|
} catch {
|
|
2696
2747
|
}
|
|
2697
2748
|
}
|
|
2698
2749
|
}
|
|
2699
|
-
|
|
2700
|
-
},
|
|
2750
|
+
fe(Q.afterSanitizeAttributes, d, null);
|
|
2751
|
+
}, Za = function C(d) {
|
|
2701
2752
|
let m = null;
|
|
2702
|
-
const v =
|
|
2703
|
-
for (
|
|
2704
|
-
|
|
2705
|
-
|
|
2753
|
+
const v = Br(d);
|
|
2754
|
+
for (fe(Q.beforeSanitizeShadowDOM, d, null); m = v.nextNode(); )
|
|
2755
|
+
fe(Q.uponSanitizeShadowNode, m, null), Gr(m), Zr(m), m.content instanceof he && C(m.content);
|
|
2756
|
+
fe(Q.afterSanitizeShadowDOM, d, null);
|
|
2706
2757
|
};
|
|
2707
2758
|
return y.sanitize = function(C) {
|
|
2708
|
-
let
|
|
2709
|
-
if (jt = !C, jt && (C = "<!-->"), typeof C != "string" && !
|
|
2759
|
+
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, v = null, M = null, G = null;
|
|
2760
|
+
if (jt = !C, jt && (C = "<!-->"), typeof C != "string" && !Wr(C))
|
|
2710
2761
|
if (typeof C.toString == "function") {
|
|
2711
2762
|
if (C = C.toString(), typeof C != "string")
|
|
2712
2763
|
throw xe("dirty is not a string, aborting");
|
|
@@ -2714,68 +2765,68 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2714
2765
|
throw xe("toString is not a function");
|
|
2715
2766
|
if (!y.isSupported)
|
|
2716
2767
|
return C;
|
|
2717
|
-
if (
|
|
2768
|
+
if (Ht || Bt(d), y.removed = [], typeof C == "string" && (qe = !1), qe) {
|
|
2718
2769
|
if (C.nodeName) {
|
|
2719
2770
|
const le = j(C.nodeName);
|
|
2720
|
-
if (!z[le] ||
|
|
2771
|
+
if (!z[le] || Ge[le])
|
|
2721
2772
|
throw xe("root node is forbidden and cannot be sanitized in-place");
|
|
2722
2773
|
}
|
|
2723
2774
|
} else if (C instanceof _t)
|
|
2724
|
-
m =
|
|
2775
|
+
m = Vr("<!---->"), v = m.ownerDocument.importNode(C, !0), v.nodeType === je.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? m = v : m.appendChild(v);
|
|
2725
2776
|
else {
|
|
2726
2777
|
if (!_e && !$e && !Ee && // eslint-disable-next-line unicorn/prefer-includes
|
|
2727
2778
|
C.indexOf("<") === -1)
|
|
2728
|
-
return Z &&
|
|
2729
|
-
if (m =
|
|
2730
|
-
return _e ? null :
|
|
2779
|
+
return Z && ct ? Z.createHTML(C) : C;
|
|
2780
|
+
if (m = Vr(C), !m)
|
|
2781
|
+
return _e ? null : ct ? We : "";
|
|
2731
2782
|
}
|
|
2732
|
-
m &&
|
|
2733
|
-
const B =
|
|
2783
|
+
m && Nt && ie(m.firstChild);
|
|
2784
|
+
const B = Br(qe ? C : m);
|
|
2734
2785
|
for (; M = B.nextNode(); )
|
|
2735
|
-
|
|
2736
|
-
if (
|
|
2786
|
+
Gr(M), Zr(M), M.content instanceof he && Za(M.content);
|
|
2787
|
+
if (qe)
|
|
2737
2788
|
return C;
|
|
2738
2789
|
if (_e) {
|
|
2739
|
-
if (
|
|
2740
|
-
for (G =
|
|
2790
|
+
if (ot)
|
|
2791
|
+
for (G = Oa.call(m.ownerDocument); m.firstChild; )
|
|
2741
2792
|
G.appendChild(m.firstChild);
|
|
2742
2793
|
else
|
|
2743
2794
|
G = m;
|
|
2744
|
-
return (V.shadowroot || V.shadowrootmode) && (G =
|
|
2795
|
+
return (V.shadowroot || V.shadowrootmode) && (G = Da.call(E, G, !0)), G;
|
|
2745
2796
|
}
|
|
2746
2797
|
let te = Ee ? m.outerHTML : m.innerHTML;
|
|
2747
|
-
return Ee && z["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && U(
|
|
2798
|
+
return Ee && z["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && U(kr, m.ownerDocument.doctype.name) && (te = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
|
|
2748
2799
|
` + te), $e && g([At, Mt, Lt], (le) => {
|
|
2749
2800
|
te = se(te, le, " ");
|
|
2750
|
-
}), Z &&
|
|
2801
|
+
}), Z && ct ? Z.createHTML(te) : te;
|
|
2751
2802
|
}, y.setConfig = function() {
|
|
2752
2803
|
let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2753
|
-
Bt(C),
|
|
2804
|
+
Bt(C), Ht = !0;
|
|
2754
2805
|
}, y.clearConfig = function() {
|
|
2755
|
-
Le = null,
|
|
2756
|
-
}, y.isValidAttribute = function(C,
|
|
2806
|
+
Le = null, Ht = !1;
|
|
2807
|
+
}, y.isValidAttribute = function(C, d, m) {
|
|
2757
2808
|
Le || Bt({});
|
|
2758
|
-
const v = j(C), M = j(
|
|
2759
|
-
return
|
|
2760
|
-
}, y.addHook = function(C,
|
|
2761
|
-
typeof
|
|
2762
|
-
}, y.removeHook = function(C,
|
|
2763
|
-
if (
|
|
2764
|
-
const m = k(Q[C],
|
|
2809
|
+
const v = j(C), M = j(d);
|
|
2810
|
+
return qr(v, M, m);
|
|
2811
|
+
}, y.addHook = function(C, d) {
|
|
2812
|
+
typeof d == "function" && P(Q[C], d);
|
|
2813
|
+
}, y.removeHook = function(C, d) {
|
|
2814
|
+
if (d !== void 0) {
|
|
2815
|
+
const m = k(Q[C], d);
|
|
2765
2816
|
return m === -1 ? void 0 : _(Q[C], m, 1)[0];
|
|
2766
2817
|
}
|
|
2767
2818
|
return b(Q[C]);
|
|
2768
2819
|
}, y.removeHooks = function(C) {
|
|
2769
2820
|
Q[C] = [];
|
|
2770
2821
|
}, y.removeAllHooks = function() {
|
|
2771
|
-
Q =
|
|
2822
|
+
Q = xr();
|
|
2772
2823
|
}, y;
|
|
2773
2824
|
}
|
|
2774
|
-
var
|
|
2775
|
-
return
|
|
2825
|
+
var Ea = Rr();
|
|
2826
|
+
return Ea;
|
|
2776
2827
|
});
|
|
2777
|
-
})(
|
|
2778
|
-
const Bo =
|
|
2828
|
+
})(Ks);
|
|
2829
|
+
const Bo = Ks.exports, rt = (e, ...t) => {
|
|
2779
2830
|
let r = e[0];
|
|
2780
2831
|
for (let s = 0; s < t.length; s++)
|
|
2781
2832
|
r += Bo.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
|
|
@@ -2787,19 +2838,19 @@ let J = (e = 21) => {
|
|
|
2787
2838
|
t += Wo[r[e] & 63];
|
|
2788
2839
|
return t;
|
|
2789
2840
|
};
|
|
2790
|
-
const Go = /* @__PURE__ */
|
|
2841
|
+
const Go = /* @__PURE__ */ H(class extends D {
|
|
2791
2842
|
constructor() {
|
|
2792
2843
|
super();
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2844
|
+
f(this, "adSource", "Custom");
|
|
2845
|
+
f(this, "adClientResponseItem");
|
|
2846
|
+
f(this, "adContainerId", J());
|
|
2847
|
+
f(this, "searchTerm");
|
|
2848
|
+
f(this, "isSearchInProgress", !1);
|
|
2849
|
+
f(this, "core");
|
|
2850
|
+
f(this, "intersectionObserver");
|
|
2851
|
+
f(this, "storeUnsubscribe");
|
|
2852
|
+
f(this, "adContainerRenderedTimeout");
|
|
2853
|
+
f(this, "isComponentConnected", !0);
|
|
2803
2854
|
this.__registerHost();
|
|
2804
2855
|
}
|
|
2805
2856
|
get hostElement() {
|
|
@@ -2827,9 +2878,12 @@ const Go = /* @__PURE__ */ N(class extends D {
|
|
|
2827
2878
|
(r = this.storeUnsubscribe) == null || r.call(this), (s = this.intersectionObserver) == null || s.disconnect(), this.isComponentConnected = !1, clearTimeout(this.adContainerRenderedTimeout);
|
|
2828
2879
|
}
|
|
2829
2880
|
renderADMAd() {
|
|
2881
|
+
var a, o, n, c;
|
|
2830
2882
|
const r = this.adClientResponseItem;
|
|
2831
|
-
if (r.admAd)
|
|
2832
|
-
return
|
|
2883
|
+
if (!r.admAd)
|
|
2884
|
+
return;
|
|
2885
|
+
let s = "<p>Ad Marketplace Ad Placeholder</p>";
|
|
2886
|
+
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: rt })), l("div", { class: "searchcraft-ad searchcraft-adm-ad", "data-searchcraft-ad-container-id": this.adContainerId, id: `searchcraft-adm-ad-${this.adContainerId}`, innerHTML: s });
|
|
2833
2887
|
}
|
|
2834
2888
|
renderCustomAd() {
|
|
2835
2889
|
var o, n;
|
|
@@ -2838,12 +2892,12 @@ const Go = /* @__PURE__ */ N(class extends D {
|
|
|
2838
2892
|
return r && (a = r({
|
|
2839
2893
|
searchTerm: this.searchTerm || "",
|
|
2840
2894
|
adContainerId: this.adContainerId
|
|
2841
|
-
}, { html:
|
|
2895
|
+
}, { html: rt })), l("div", { class: "searchcraft-ad searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
|
|
2842
2896
|
}
|
|
2843
2897
|
renderNativoAd() {
|
|
2844
2898
|
var s;
|
|
2845
2899
|
const r = ((s = this.core) == null ? void 0 : s.config.nativoAdClassName) || "ntv-item";
|
|
2846
|
-
return
|
|
2900
|
+
return l("div", { id: `searchcraft-native-ad-${this.adContainerId}`, class: ne("searchcraft-ad", r), "data-searchcraft-ad-container-id": this.adContainerId });
|
|
2847
2901
|
}
|
|
2848
2902
|
render() {
|
|
2849
2903
|
var r, s;
|
|
@@ -2885,89 +2939,52 @@ function wt() {
|
|
|
2885
2939
|
}
|
|
2886
2940
|
});
|
|
2887
2941
|
}
|
|
2888
|
-
const qo = wt
|
|
2889
|
-
var Qs = { exports: {} };
|
|
2890
|
-
/*!
|
|
2891
|
-
Copyright (c) 2018 Jed Watson.
|
|
2892
|
-
Licensed under the MIT License (MIT), see
|
|
2893
|
-
http://jedwatson.github.io/classnames
|
|
2894
|
-
*/
|
|
2895
|
-
(function(e) {
|
|
2896
|
-
(function() {
|
|
2897
|
-
var t = {}.hasOwnProperty;
|
|
2898
|
-
function r() {
|
|
2899
|
-
for (var o = "", n = 0; n < arguments.length; n++) {
|
|
2900
|
-
var c = arguments[n];
|
|
2901
|
-
c && (o = a(o, s(c)));
|
|
2902
|
-
}
|
|
2903
|
-
return o;
|
|
2904
|
-
}
|
|
2905
|
-
function s(o) {
|
|
2906
|
-
if (typeof o == "string" || typeof o == "number")
|
|
2907
|
-
return o;
|
|
2908
|
-
if (typeof o != "object")
|
|
2909
|
-
return "";
|
|
2910
|
-
if (Array.isArray(o))
|
|
2911
|
-
return r.apply(null, o);
|
|
2912
|
-
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
2913
|
-
return o.toString();
|
|
2914
|
-
var n = "";
|
|
2915
|
-
for (var c in o)
|
|
2916
|
-
t.call(o, c) && o[c] && (n = a(n, c));
|
|
2917
|
-
return n;
|
|
2918
|
-
}
|
|
2919
|
-
function a(o, n) {
|
|
2920
|
-
return n ? o ? o + " " + n : o + n : o;
|
|
2921
|
-
}
|
|
2922
|
-
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
2923
|
-
})();
|
|
2924
|
-
})(Qs);
|
|
2925
|
-
const oe = Qs.exports, Yo = /* @__PURE__ */ N(class extends D {
|
|
2942
|
+
const qo = wt, Yo = /* @__PURE__ */ H(class extends D {
|
|
2926
2943
|
constructor() {
|
|
2927
2944
|
super();
|
|
2928
2945
|
/**
|
|
2929
2946
|
* Controls the visual representation of the button.
|
|
2930
2947
|
*/
|
|
2931
|
-
|
|
2948
|
+
f(this, "hierarchy", "primary");
|
|
2932
2949
|
/**
|
|
2933
2950
|
* Whether the button is disabled.
|
|
2934
2951
|
*/
|
|
2935
|
-
|
|
2952
|
+
f(this, "disabled", !1);
|
|
2936
2953
|
/**
|
|
2937
2954
|
* The icon element.
|
|
2938
2955
|
*/
|
|
2939
|
-
|
|
2956
|
+
f(this, "icon");
|
|
2940
2957
|
/**
|
|
2941
2958
|
* Should the button only display an icon.
|
|
2942
2959
|
*/
|
|
2943
|
-
|
|
2960
|
+
f(this, "iconOnly", !1);
|
|
2944
2961
|
/**
|
|
2945
2962
|
* The position of the icon.
|
|
2946
2963
|
*/
|
|
2947
|
-
|
|
2964
|
+
f(this, "iconPosition", "left");
|
|
2948
2965
|
/**
|
|
2949
2966
|
* The label for the button.
|
|
2950
2967
|
*/
|
|
2951
|
-
|
|
2968
|
+
f(this, "label", "Search");
|
|
2952
2969
|
/**
|
|
2953
2970
|
* The type of the button.
|
|
2954
2971
|
*/
|
|
2955
|
-
|
|
2972
|
+
f(this, "type", "button");
|
|
2956
2973
|
/**
|
|
2957
2974
|
* The event fired when the button is clicked.
|
|
2958
2975
|
*/
|
|
2959
|
-
|
|
2960
|
-
|
|
2976
|
+
f(this, "buttonClick");
|
|
2977
|
+
f(this, "handleButtonClick", () => {
|
|
2961
2978
|
this.buttonClick.emit();
|
|
2962
2979
|
});
|
|
2963
2980
|
this.__registerHost(), this.buttonClick = Ce(this, "buttonClick");
|
|
2964
2981
|
}
|
|
2965
2982
|
render() {
|
|
2966
|
-
return
|
|
2983
|
+
return l("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: ne("searchcraft-button", {
|
|
2967
2984
|
"searchcraft-button-primary": this.hierarchy === "primary",
|
|
2968
2985
|
"searchcraft-button-tertiary": this.hierarchy === "tertiary",
|
|
2969
2986
|
"searchcraft-button-disabled": this.disabled
|
|
2970
|
-
}), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon :
|
|
2987
|
+
}), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : l(Wn, null, this.iconPosition === "left" && this.icon, l("span", null, this.label), this.iconPosition === "right" && this.icon));
|
|
2971
2988
|
}
|
|
2972
2989
|
}, [0, "searchcraft-button", {
|
|
2973
2990
|
hierarchy: [1],
|
|
@@ -2989,12 +3006,12 @@ function xt() {
|
|
|
2989
3006
|
}
|
|
2990
3007
|
});
|
|
2991
3008
|
}
|
|
2992
|
-
const Zo = xt, Qo = /* @__PURE__ */
|
|
3009
|
+
const Zo = xt, Qo = /* @__PURE__ */ H(class extends D {
|
|
2993
3010
|
constructor() {
|
|
2994
3011
|
super(), this.__registerHost();
|
|
2995
3012
|
}
|
|
2996
3013
|
render() {
|
|
2997
|
-
return
|
|
3014
|
+
return l("div", { key: "d42f7abf8dfb2620622b8012d868d32f04b2f354", class: "searchcraft-error-message" }, l("slot", { key: "75a7811576ea8afe80a7ae739f5cf2d411f976df" }, "Search term is required."));
|
|
2998
3015
|
}
|
|
2999
3016
|
}, [4, "searchcraft-error-message"]);
|
|
3000
3017
|
function Rt() {
|
|
@@ -3009,16 +3026,16 @@ function Rt() {
|
|
|
3009
3026
|
});
|
|
3010
3027
|
}
|
|
3011
3028
|
const Ko = Rt;
|
|
3012
|
-
function
|
|
3029
|
+
function Xs(e, t) {
|
|
3013
3030
|
const r = { ...e };
|
|
3014
3031
|
for (const s in t)
|
|
3015
|
-
t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] =
|
|
3032
|
+
t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Xs(e[s], t[s]) : r[s] = t[s]);
|
|
3016
3033
|
return r;
|
|
3017
3034
|
}
|
|
3018
3035
|
function Xo(e) {
|
|
3019
3036
|
return e.filter((t, r, s) => !s.some((a, o) => o !== r && a.includes(t)));
|
|
3020
3037
|
}
|
|
3021
|
-
function
|
|
3038
|
+
function ys(e) {
|
|
3022
3039
|
const t = {}, r = (s) => {
|
|
3023
3040
|
var a;
|
|
3024
3041
|
t[s.path] = {
|
|
@@ -3052,13 +3069,13 @@ function Jo(e) {
|
|
|
3052
3069
|
});
|
|
3053
3070
|
}), t;
|
|
3054
3071
|
}
|
|
3055
|
-
function
|
|
3072
|
+
function Js(e) {
|
|
3056
3073
|
const t = {
|
|
3057
3074
|
count: e.count,
|
|
3058
3075
|
path: e.path,
|
|
3059
3076
|
children: []
|
|
3060
3077
|
};
|
|
3061
|
-
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) =>
|
|
3078
|
+
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Js(r))), t;
|
|
3062
3079
|
}
|
|
3063
3080
|
function ec(e, t) {
|
|
3064
3081
|
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("/"))));
|
|
@@ -3073,37 +3090,37 @@ function tc(e, t, r) {
|
|
|
3073
3090
|
count: 0,
|
|
3074
3091
|
path: "/",
|
|
3075
3092
|
children: a
|
|
3076
|
-
}, c =
|
|
3093
|
+
}, c = ys(o), u = ys(n), h = ec(c, u), i = Xs(h, u), p = Jo(i), g = Js(p);
|
|
3077
3094
|
return {
|
|
3078
3095
|
[e]: g.children
|
|
3079
3096
|
};
|
|
3080
3097
|
}
|
|
3081
|
-
const rc = /* @__PURE__ */
|
|
3098
|
+
const rc = /* @__PURE__ */ H(class extends D {
|
|
3082
3099
|
constructor() {
|
|
3083
3100
|
super();
|
|
3084
3101
|
/**
|
|
3085
3102
|
* The name of the field where facets are applied.
|
|
3086
3103
|
*/
|
|
3087
|
-
|
|
3104
|
+
f(this, "fieldName", "");
|
|
3088
3105
|
/**
|
|
3089
3106
|
* When the facets are updated.
|
|
3090
3107
|
*/
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3108
|
+
f(this, "facetSelectionUpdated");
|
|
3109
|
+
f(this, "baseFacetRoot");
|
|
3110
|
+
f(this, "facetRoot");
|
|
3111
|
+
f(this, "selectedPaths", {});
|
|
3112
|
+
f(this, "lastTimeTaken");
|
|
3113
|
+
f(this, "hasNewSearchTerm", !1);
|
|
3114
|
+
f(this, "lastSearchTerm");
|
|
3115
|
+
f(this, "lastSearchMode");
|
|
3116
|
+
f(this, "lastSortType");
|
|
3117
|
+
f(this, "unsubscribe");
|
|
3118
|
+
f(this, "searchStore", I.getState());
|
|
3119
|
+
f(this, "formatLabel", (r) => {
|
|
3103
3120
|
const s = r.path.replace(/^\//, ""), a = r.count;
|
|
3104
3121
|
return `${s.replace(/-/g, " ").replace(/\b\w/g, (o) => o.toUpperCase())} (${a})`;
|
|
3105
3122
|
});
|
|
3106
|
-
|
|
3123
|
+
f(this, "formatSubLabel", (r, s) => {
|
|
3107
3124
|
const o = r.path.substring(s.path.length).replace(/^\//, ""), n = r.count;
|
|
3108
3125
|
return `${o.replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())} (${n})`;
|
|
3109
3126
|
});
|
|
@@ -3112,11 +3129,11 @@ const rc = /* @__PURE__ */ N(class extends D {
|
|
|
3112
3129
|
handleStateUpdate(r) {
|
|
3113
3130
|
const s = r.searchResponseFacetPrime, a = r.searchResponseTimeTaken;
|
|
3114
3131
|
if (this.fieldName) {
|
|
3115
|
-
if (
|
|
3132
|
+
if (r.searchTerm || (this.facetRoot = void 0), (r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && s) {
|
|
3116
3133
|
this.facetRoot = void 0;
|
|
3117
3134
|
const o = s.find((n) => this.fieldName === Object.keys(n)[0]);
|
|
3118
3135
|
this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = tc(this.fieldName, this.baseFacetRoot, o));
|
|
3119
|
-
}
|
|
3136
|
+
} else !s && Object.keys(this.selectedPaths).length === 0 && (this.facetRoot = void 0);
|
|
3120
3137
|
this.lastSearchTerm = r.searchTerm, this.lastSearchMode = r.searchMode, this.lastSortType = r.sortType, this.lastTimeTaken = a;
|
|
3121
3138
|
}
|
|
3122
3139
|
}
|
|
@@ -3148,14 +3165,14 @@ const rc = /* @__PURE__ */ N(class extends D {
|
|
|
3148
3165
|
if (!this.fieldName)
|
|
3149
3166
|
return;
|
|
3150
3167
|
const r = (s = this.facetRoot) == null ? void 0 : s[this.fieldName];
|
|
3151
|
-
return
|
|
3168
|
+
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) => {
|
|
3152
3169
|
var n;
|
|
3153
3170
|
const o = a.children ? (n = a.children) == null ? void 0 : n.some((c) => this.selectedPaths[c.path]) : !1;
|
|
3154
|
-
return
|
|
3171
|
+
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: {
|
|
3155
3172
|
display: this.selectedPaths[a.path] ? "flex" : "none"
|
|
3156
|
-
} },
|
|
3173
|
+
} }, 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) => {
|
|
3157
3174
|
this.handleCheckboxChange(c.path);
|
|
3158
|
-
}, type: "checkbox" }),
|
|
3175
|
+
}, 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)))));
|
|
3159
3176
|
}));
|
|
3160
3177
|
}
|
|
3161
3178
|
}, [0, "searchcraft-facet-list", {
|
|
@@ -3165,7 +3182,7 @@ const rc = /* @__PURE__ */ N(class extends D {
|
|
|
3165
3182
|
selectedPaths: [32],
|
|
3166
3183
|
lastTimeTaken: [32]
|
|
3167
3184
|
}]);
|
|
3168
|
-
function
|
|
3185
|
+
function ea() {
|
|
3169
3186
|
if (typeof customElements > "u")
|
|
3170
3187
|
return;
|
|
3171
3188
|
["searchcraft-facet-list"].forEach((t) => {
|
|
@@ -3176,8 +3193,8 @@ function Js() {
|
|
|
3176
3193
|
}
|
|
3177
3194
|
});
|
|
3178
3195
|
}
|
|
3179
|
-
const sc =
|
|
3180
|
-
function
|
|
3196
|
+
const sc = ea;
|
|
3197
|
+
function Qe(e, t) {
|
|
3181
3198
|
if (e && t)
|
|
3182
3199
|
return t.fieldNames.map((r) => {
|
|
3183
3200
|
let s = e[r.fieldName];
|
|
@@ -3195,7 +3212,7 @@ function Ze(e, t) {
|
|
|
3195
3212
|
return s;
|
|
3196
3213
|
}).filter((r) => !!r).join(t.delimiter || " ");
|
|
3197
3214
|
}
|
|
3198
|
-
function
|
|
3215
|
+
function ta(e) {
|
|
3199
3216
|
switch (e) {
|
|
3200
3217
|
case "hour":
|
|
3201
3218
|
return 36e5;
|
|
@@ -3209,7 +3226,7 @@ function ea(e) {
|
|
|
3209
3226
|
return 36e5;
|
|
3210
3227
|
}
|
|
3211
3228
|
}
|
|
3212
|
-
function
|
|
3229
|
+
function ra(e) {
|
|
3213
3230
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
3214
3231
|
}
|
|
3215
3232
|
function ac(e, t = "en-US", r = {
|
|
@@ -3219,47 +3236,47 @@ function ac(e, t = "en-US", r = {
|
|
|
3219
3236
|
}) {
|
|
3220
3237
|
const s = new Date(e), o = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), n = 30 * 24 * 60 * 60 * 1e3;
|
|
3221
3238
|
if (o < n) {
|
|
3222
|
-
const c = Math.trunc(o / 1e3), u = Math.trunc(c / 60), h = Math.trunc(u / 60),
|
|
3223
|
-
return
|
|
3239
|
+
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);
|
|
3240
|
+
return i >= 1 ? p.format(-i, "day") : h >= 1 ? p.format(-h, "hour") : u >= 1 ? p.format(-u, "minute") : p.format(0, "second");
|
|
3224
3241
|
}
|
|
3225
3242
|
return new Intl.DateTimeFormat(t, r).format(s);
|
|
3226
3243
|
}
|
|
3227
|
-
const nc = /* @__PURE__ */
|
|
3244
|
+
const nc = /* @__PURE__ */ H(class extends D {
|
|
3228
3245
|
constructor() {
|
|
3229
3246
|
super();
|
|
3230
3247
|
/**
|
|
3231
3248
|
* The maximum value allowed.
|
|
3232
3249
|
*/
|
|
3233
|
-
|
|
3250
|
+
f(this, "max", 100);
|
|
3234
3251
|
/**
|
|
3235
3252
|
* The minimum value allowed.
|
|
3236
3253
|
*/
|
|
3237
|
-
|
|
3254
|
+
f(this, "min", 0);
|
|
3238
3255
|
/**
|
|
3239
3256
|
* The granularity that the value must adhere to.
|
|
3240
3257
|
*/
|
|
3241
|
-
|
|
3258
|
+
f(this, "granularity", ta("month"));
|
|
3242
3259
|
/** The type of data allowed. */
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3260
|
+
f(this, "dataType", "number");
|
|
3261
|
+
f(this, "endValue", this.max);
|
|
3262
|
+
f(this, "startValue", this.min);
|
|
3263
|
+
f(this, "lastFocusedHandle", "max");
|
|
3247
3264
|
/**
|
|
3248
3265
|
* When the range has changed.
|
|
3249
3266
|
* */
|
|
3250
|
-
|
|
3251
|
-
|
|
3267
|
+
f(this, "rangeChanged");
|
|
3268
|
+
f(this, "emitUpdate", async () => {
|
|
3252
3269
|
var r;
|
|
3253
3270
|
(r = this.rangeChanged) == null || r.emit({
|
|
3254
3271
|
startValue: this.startValue,
|
|
3255
3272
|
endValue: this.endValue
|
|
3256
3273
|
});
|
|
3257
3274
|
});
|
|
3258
|
-
|
|
3275
|
+
f(this, "handleStartValueChange", (r) => {
|
|
3259
3276
|
const s = r.target, a = Number.parseInt(s.value, 10);
|
|
3260
3277
|
this.lastFocusedHandle = "min", a <= this.endValue ? (this.startValue = a, this.emitUpdate()) : (this.startValue = this.endValue, s.value = `${this.endValue}`);
|
|
3261
3278
|
});
|
|
3262
|
-
|
|
3279
|
+
f(this, "handleEndValueChange", (r) => {
|
|
3263
3280
|
const s = r.target, a = Number.parseInt(s.value, 10);
|
|
3264
3281
|
this.lastFocusedHandle = "max", a >= this.startValue ? (this.endValue = a, this.emitUpdate()) : (this.endValue = this.startValue, s.value = `${this.startValue}`);
|
|
3265
3282
|
});
|
|
@@ -3270,10 +3287,10 @@ const nc = /* @__PURE__ */ N(class extends D {
|
|
|
3270
3287
|
}
|
|
3271
3288
|
render() {
|
|
3272
3289
|
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();
|
|
3273
|
-
return
|
|
3290
|
+
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: {
|
|
3274
3291
|
left: `${a}%`,
|
|
3275
3292
|
width: `${o - a}%`
|
|
3276
|
-
} }),
|
|
3293
|
+
} }), l("input", { key: "f07a91d441d277b8e9eba34e39093393a44bbf53", class: ne("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: ne("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)));
|
|
3277
3294
|
}
|
|
3278
3295
|
}, [0, "searchcraft-slider", {
|
|
3279
3296
|
max: [2],
|
|
@@ -3284,7 +3301,7 @@ const nc = /* @__PURE__ */ N(class extends D {
|
|
|
3284
3301
|
startValue: [32],
|
|
3285
3302
|
lastFocusedHandle: [32]
|
|
3286
3303
|
}]);
|
|
3287
|
-
function
|
|
3304
|
+
function sa() {
|
|
3288
3305
|
if (typeof customElements > "u")
|
|
3289
3306
|
return;
|
|
3290
3307
|
["searchcraft-slider"].forEach((t) => {
|
|
@@ -3295,25 +3312,25 @@ function ra() {
|
|
|
3295
3312
|
}
|
|
3296
3313
|
});
|
|
3297
3314
|
}
|
|
3298
|
-
const oc = /* @__PURE__ */
|
|
3315
|
+
const oc = /* @__PURE__ */ H(class extends D {
|
|
3299
3316
|
constructor() {
|
|
3300
3317
|
super();
|
|
3301
3318
|
/**
|
|
3302
3319
|
* The label.
|
|
3303
3320
|
*/
|
|
3304
|
-
|
|
3321
|
+
f(this, "label", "Toggle");
|
|
3305
3322
|
/**
|
|
3306
3323
|
* The secondary label displayed below the main label.
|
|
3307
3324
|
*/
|
|
3308
|
-
|
|
3325
|
+
f(this, "subLabel");
|
|
3309
3326
|
/**
|
|
3310
3327
|
* When the toggle element is changed.
|
|
3311
3328
|
*/
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3329
|
+
f(this, "toggleUpdated");
|
|
3330
|
+
f(this, "isActive", !1);
|
|
3331
|
+
f(this, "unsubscribe");
|
|
3332
|
+
f(this, "lastSearchTerm");
|
|
3333
|
+
f(this, "handleToggle", async () => {
|
|
3317
3334
|
var r;
|
|
3318
3335
|
this.isActive = !this.isActive, (r = this.toggleUpdated) == null || r.emit(this.isActive);
|
|
3319
3336
|
});
|
|
@@ -3329,9 +3346,9 @@ const oc = /* @__PURE__ */ N(class extends D {
|
|
|
3329
3346
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3330
3347
|
}
|
|
3331
3348
|
render() {
|
|
3332
|
-
return
|
|
3349
|
+
return l("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class: ne("searchcraft-toggle-button", {
|
|
3333
3350
|
"searchcraft-toggle-button-active": this.isActive
|
|
3334
|
-
}) },
|
|
3351
|
+
}) }, 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" })));
|
|
3335
3352
|
}
|
|
3336
3353
|
}, [0, "searchcraft-toggle-button", {
|
|
3337
3354
|
label: [1],
|
|
@@ -3340,7 +3357,7 @@ const oc = /* @__PURE__ */ N(class extends D {
|
|
|
3340
3357
|
unsubscribe: [32],
|
|
3341
3358
|
lastSearchTerm: [32]
|
|
3342
3359
|
}]);
|
|
3343
|
-
function
|
|
3360
|
+
function aa() {
|
|
3344
3361
|
if (typeof customElements > "u")
|
|
3345
3362
|
return;
|
|
3346
3363
|
["searchcraft-toggle-button"].forEach((t) => {
|
|
@@ -3351,16 +3368,16 @@ function sa() {
|
|
|
3351
3368
|
}
|
|
3352
3369
|
});
|
|
3353
3370
|
}
|
|
3354
|
-
const cc = /* @__PURE__ */
|
|
3371
|
+
const cc = /* @__PURE__ */ H(class extends D {
|
|
3355
3372
|
constructor() {
|
|
3356
3373
|
super();
|
|
3357
3374
|
/**
|
|
3358
3375
|
* The items to filter.
|
|
3359
3376
|
*/
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3377
|
+
f(this, "items", []);
|
|
3378
|
+
f(this, "unsubscribe");
|
|
3379
|
+
f(this, "lastSearchTerm");
|
|
3380
|
+
f(this, "searchStore", I.getState());
|
|
3364
3381
|
this.__registerHost();
|
|
3365
3382
|
}
|
|
3366
3383
|
componentDidLoad() {
|
|
@@ -3394,43 +3411,49 @@ const cc = /* @__PURE__ */ N(class extends D {
|
|
|
3394
3411
|
handleExactMatchToggleUpdated(r) {
|
|
3395
3412
|
this.searchStore.setSearchMode(r ? "exact" : "fuzzy"), this.searchStore.search();
|
|
3396
3413
|
}
|
|
3397
|
-
handleMostRecentToggleUpdated(r) {
|
|
3398
|
-
|
|
3414
|
+
handleMostRecentToggleUpdated(r, s) {
|
|
3415
|
+
s ? this.searchStore.setSortOrder({
|
|
3416
|
+
orderByField: r,
|
|
3417
|
+
sortType: "desc"
|
|
3418
|
+
}) : this.searchStore.setSortOrder({
|
|
3419
|
+
orderByField: null,
|
|
3420
|
+
sortType: null
|
|
3421
|
+
}), this.searchStore.search();
|
|
3399
3422
|
}
|
|
3400
3423
|
/**
|
|
3401
3424
|
* Iterate through `items` and render them based on `type`
|
|
3402
3425
|
*/
|
|
3403
3426
|
render() {
|
|
3404
|
-
return
|
|
3427
|
+
return l("div", { key: "7f15e8f1a2e1be763118f9cd4ded34cf7e2902d0", class: "searchcraft-filter-panel" }, this.items.map((r) => {
|
|
3405
3428
|
switch (r.type) {
|
|
3406
3429
|
case "dateRange": {
|
|
3407
|
-
const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n =
|
|
3408
|
-
return
|
|
3430
|
+
const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n = ta(s.options.granularity);
|
|
3431
|
+
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) => {
|
|
3409
3432
|
this.handleDateRangeChanged(s.fieldName, c.detail.startValue, c.detail.endValue);
|
|
3410
3433
|
} }));
|
|
3411
3434
|
}
|
|
3412
3435
|
case "numericRange": {
|
|
3413
3436
|
const s = r;
|
|
3414
|
-
return
|
|
3437
|
+
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) => {
|
|
3415
3438
|
this.handleNumericRangeChanged(s.fieldName, a.detail.startValue, a.detail.endValue);
|
|
3416
3439
|
} }));
|
|
3417
3440
|
}
|
|
3418
3441
|
case "facets": {
|
|
3419
3442
|
const s = r;
|
|
3420
|
-
return
|
|
3443
|
+
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) => {
|
|
3421
3444
|
this.handleFacetSelectionUpdated(s.fieldName, a.detail.paths);
|
|
3422
3445
|
} }));
|
|
3423
3446
|
}
|
|
3424
3447
|
case "exactMatchToggle": {
|
|
3425
3448
|
const s = r;
|
|
3426
|
-
return
|
|
3449
|
+
return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
|
|
3427
3450
|
this.handleExactMatchToggleUpdated(a.detail);
|
|
3428
3451
|
} });
|
|
3429
3452
|
}
|
|
3430
3453
|
case "mostRecentToggle": {
|
|
3431
3454
|
const s = r;
|
|
3432
|
-
return
|
|
3433
|
-
this.handleMostRecentToggleUpdated(a.detail);
|
|
3455
|
+
return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
|
|
3456
|
+
this.handleMostRecentToggleUpdated(s.fieldName, a.detail);
|
|
3434
3457
|
} });
|
|
3435
3458
|
}
|
|
3436
3459
|
}
|
|
@@ -3450,35 +3473,35 @@ function ic() {
|
|
|
3450
3473
|
customElements.get(t) || customElements.define(t, cc);
|
|
3451
3474
|
break;
|
|
3452
3475
|
case "searchcraft-facet-list":
|
|
3453
|
-
customElements.get(t) ||
|
|
3476
|
+
customElements.get(t) || ea();
|
|
3454
3477
|
break;
|
|
3455
3478
|
case "searchcraft-slider":
|
|
3456
|
-
customElements.get(t) ||
|
|
3479
|
+
customElements.get(t) || sa();
|
|
3457
3480
|
break;
|
|
3458
3481
|
case "searchcraft-toggle-button":
|
|
3459
|
-
customElements.get(t) ||
|
|
3482
|
+
customElements.get(t) || aa();
|
|
3460
3483
|
break;
|
|
3461
3484
|
}
|
|
3462
3485
|
});
|
|
3463
3486
|
}
|
|
3464
|
-
const lc = ic, uc = /* @__PURE__ */
|
|
3487
|
+
const lc = ic, uc = /* @__PURE__ */ H(class extends D {
|
|
3465
3488
|
constructor() {
|
|
3466
3489
|
super();
|
|
3467
3490
|
/**
|
|
3468
3491
|
* The classname applied to the label element.
|
|
3469
3492
|
*/
|
|
3470
|
-
|
|
3471
|
-
|
|
3493
|
+
f(this, "inputLabelClassName", "");
|
|
3494
|
+
f(this, "label", "");
|
|
3472
3495
|
this.__registerHost();
|
|
3473
3496
|
}
|
|
3474
3497
|
render() {
|
|
3475
|
-
return
|
|
3498
|
+
return l("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class: ne("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
|
|
3476
3499
|
}
|
|
3477
3500
|
}, [0, "searchcraft-input-label", {
|
|
3478
3501
|
inputLabelClassName: [1, "input-label-class-name"],
|
|
3479
3502
|
label: [1]
|
|
3480
3503
|
}]);
|
|
3481
|
-
function
|
|
3504
|
+
function mr() {
|
|
3482
3505
|
if (typeof customElements > "u")
|
|
3483
3506
|
return;
|
|
3484
3507
|
["searchcraft-input-label"].forEach((t) => {
|
|
@@ -3489,53 +3512,53 @@ function pr() {
|
|
|
3489
3512
|
}
|
|
3490
3513
|
});
|
|
3491
3514
|
}
|
|
3492
|
-
const hc = /* @__PURE__ */
|
|
3515
|
+
const hc = /* @__PURE__ */ H(class extends D {
|
|
3493
3516
|
constructor() {
|
|
3494
3517
|
super();
|
|
3495
3518
|
/**
|
|
3496
3519
|
* Whether or not to automatically submit the search term when the input changes.
|
|
3497
3520
|
*/
|
|
3498
|
-
|
|
3521
|
+
f(this, "autoSearch", !0);
|
|
3499
3522
|
/**
|
|
3500
3523
|
* Where to place the search button.
|
|
3501
3524
|
*/
|
|
3502
|
-
|
|
3525
|
+
f(this, "buttonPlacement", "none");
|
|
3503
3526
|
/**
|
|
3504
3527
|
* The label for the submit button.
|
|
3505
3528
|
*/
|
|
3506
|
-
|
|
3529
|
+
f(this, "buttonLabel");
|
|
3507
3530
|
/**
|
|
3508
3531
|
* The label rendered above the input.
|
|
3509
3532
|
*/
|
|
3510
|
-
|
|
3533
|
+
f(this, "inputLabel");
|
|
3511
3534
|
/**
|
|
3512
3535
|
* The input element's placeholder value.
|
|
3513
3536
|
*/
|
|
3514
|
-
|
|
3537
|
+
f(this, "placeholderValue", "Enter Search");
|
|
3515
3538
|
/**
|
|
3516
3539
|
* When the input becomes focused.
|
|
3517
3540
|
*/
|
|
3518
|
-
|
|
3541
|
+
f(this, "inputFocus");
|
|
3519
3542
|
/**
|
|
3520
3543
|
* When the input becomes unfocused.
|
|
3521
3544
|
*/
|
|
3522
|
-
|
|
3545
|
+
f(this, "inputBlur");
|
|
3523
3546
|
/**
|
|
3524
3547
|
* Event emitted when input initializes.
|
|
3525
3548
|
*/
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3549
|
+
f(this, "inputInit");
|
|
3550
|
+
f(this, "inputValue", "");
|
|
3551
|
+
f(this, "searchTerm", "");
|
|
3552
|
+
f(this, "error", !1);
|
|
3553
|
+
f(this, "core");
|
|
3554
|
+
f(this, "searchcraftStore", I.getState());
|
|
3555
|
+
f(this, "unsubscribe", () => {
|
|
3533
3556
|
});
|
|
3534
|
-
|
|
3557
|
+
f(this, "handleInput", (r) => {
|
|
3535
3558
|
const s = r.target;
|
|
3536
3559
|
this.inputValue = s.value, this.autoSearch && this.performSearch(s.value);
|
|
3537
3560
|
});
|
|
3538
|
-
|
|
3561
|
+
f(this, "performSearch", async (r) => {
|
|
3539
3562
|
if (r !== this.searchTerm) {
|
|
3540
3563
|
this.searchcraftStore.setSearchTerm(r.trim()), this.error = !1;
|
|
3541
3564
|
try {
|
|
@@ -3545,13 +3568,13 @@ const hc = /* @__PURE__ */ N(class extends D {
|
|
|
3545
3568
|
}
|
|
3546
3569
|
}
|
|
3547
3570
|
});
|
|
3548
|
-
|
|
3571
|
+
f(this, "handleReset", () => {
|
|
3549
3572
|
this.searchcraftStore.setSearchResultsCount(0), this.searchcraftStore.setSearchTerm(""), this.searchcraftStore.setSearchClientResponseItems([]), this.error = !1;
|
|
3550
3573
|
});
|
|
3551
|
-
|
|
3574
|
+
f(this, "handleClearInput", () => {
|
|
3552
3575
|
this.handleReset();
|
|
3553
3576
|
});
|
|
3554
|
-
|
|
3577
|
+
f(this, "handleFormSubmit", async (r) => {
|
|
3555
3578
|
r.preventDefault(), await this.performSearch(this.inputValue);
|
|
3556
3579
|
});
|
|
3557
3580
|
this.__registerHost(), this.inputFocus = Ce(this, "inputFocus"), this.inputBlur = Ce(this, "inputBlur"), this.inputInit = Ce(this, "inputInit");
|
|
@@ -3576,14 +3599,14 @@ const hc = /* @__PURE__ */ N(class extends D {
|
|
|
3576
3599
|
this.handleReset(), (r = this.unsubscribe) == null || r.call(this);
|
|
3577
3600
|
}
|
|
3578
3601
|
render() {
|
|
3579
|
-
const r = this.inputValue.length > 0, s =
|
|
3602
|
+
const r = this.inputValue.length > 0, s = ne("searchcraft-input-form-grid", {
|
|
3580
3603
|
"searchcraft-input-form-grid-button-left": this.buttonPlacement === "left",
|
|
3581
3604
|
"searchcraft-input-form-grid-button-right": this.buttonPlacement === "right",
|
|
3582
3605
|
"searchcraft-input-form-grid-button-none": this.buttonPlacement === "none"
|
|
3583
3606
|
}), o = {
|
|
3584
3607
|
gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
|
|
3585
3608
|
};
|
|
3586
|
-
return
|
|
3609
|
+
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: () => {
|
|
3587
3610
|
var n;
|
|
3588
3611
|
return (n = this.inputFocus) == null ? void 0 : n.emit();
|
|
3589
3612
|
}, onBlur: () => {
|
|
@@ -3591,7 +3614,7 @@ const hc = /* @__PURE__ */ N(class extends D {
|
|
|
3591
3614
|
return (n = this.inputBlur) == null ? void 0 : n.emit();
|
|
3592
3615
|
}, onInput: (n) => {
|
|
3593
3616
|
this.handleInput(n);
|
|
3594
|
-
}, placeholder: this.placeholderValue, type: "text", value: this.inputValue }),
|
|
3617
|
+
}, 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" }))))));
|
|
3595
3618
|
}
|
|
3596
3619
|
static get watchers() {
|
|
3597
3620
|
return {
|
|
@@ -3611,7 +3634,7 @@ const hc = /* @__PURE__ */ N(class extends D {
|
|
|
3611
3634
|
}, void 0, {
|
|
3612
3635
|
core: ["onCoreChange"]
|
|
3613
3636
|
}]);
|
|
3614
|
-
function
|
|
3637
|
+
function na() {
|
|
3615
3638
|
if (typeof customElements > "u")
|
|
3616
3639
|
return;
|
|
3617
3640
|
["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
|
|
@@ -3626,27 +3649,27 @@ function aa() {
|
|
|
3626
3649
|
customElements.get(t) || Rt();
|
|
3627
3650
|
break;
|
|
3628
3651
|
case "searchcraft-input-label":
|
|
3629
|
-
customElements.get(t) ||
|
|
3652
|
+
customElements.get(t) || mr();
|
|
3630
3653
|
break;
|
|
3631
3654
|
}
|
|
3632
3655
|
});
|
|
3633
3656
|
}
|
|
3634
|
-
const
|
|
3657
|
+
const dc = na, fc = mr, pc = /* @__PURE__ */ H(class extends D {
|
|
3635
3658
|
constructor() {
|
|
3636
3659
|
super();
|
|
3637
3660
|
// store vars
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3661
|
+
f(this, "searchTerm");
|
|
3662
|
+
f(this, "searchResultsPerPage");
|
|
3663
|
+
f(this, "searchResultsPage");
|
|
3664
|
+
f(this, "searchResultsCount");
|
|
3642
3665
|
// local vars
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3666
|
+
f(this, "searchResultsPagesCount", 1);
|
|
3667
|
+
f(this, "searchResultsRangeMin", 1);
|
|
3668
|
+
f(this, "searchResultsRangeMax", 1);
|
|
3646
3669
|
// store functions
|
|
3647
|
-
|
|
3670
|
+
f(this, "setSearchResultsPage", () => {
|
|
3648
3671
|
});
|
|
3649
|
-
|
|
3672
|
+
f(this, "unsubscribe", () => {
|
|
3650
3673
|
});
|
|
3651
3674
|
this.__registerHost();
|
|
3652
3675
|
}
|
|
@@ -3663,27 +3686,27 @@ const fc = aa, dc = pr, pc = /* @__PURE__ */ N(class extends D {
|
|
|
3663
3686
|
this.setSearchResultsPage(r);
|
|
3664
3687
|
}
|
|
3665
3688
|
renderOddPaginationItem(r) {
|
|
3666
|
-
return
|
|
3689
|
+
return l("li", null, l("button", { class: ne("searchcraft-pagination-item", {
|
|
3667
3690
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
3668
3691
|
}), onClick: () => this.handleGoToPage(r), type: "button" }, r));
|
|
3669
3692
|
}
|
|
3670
3693
|
renderEvenPaginationItem(r) {
|
|
3671
3694
|
if (!(this.searchResultsPagesCount <= r))
|
|
3672
|
-
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ?
|
|
3695
|
+
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? l("li", null, l("button", { class: ne("searchcraft-pagination-item", {
|
|
3673
3696
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
3674
|
-
}), onClick: () => this.handleGoToPage(r), type: "button" }, r)) :
|
|
3697
|
+
}), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : l("li", null, l("span", { class: "searchcraft-pagination-item" }, "..."));
|
|
3675
3698
|
}
|
|
3676
3699
|
renderMiddlePaginationItem() {
|
|
3677
3700
|
if (!(this.searchResultsPagesCount <= 3))
|
|
3678
|
-
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ?
|
|
3701
|
+
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? l("li", null, l("button", { class: ne("searchcraft-pagination-item", {
|
|
3679
3702
|
"searchcraft-pagination-item-active": this.searchResultsPage === 3 || this.searchResultsPage === this.searchResultsPagesCount - 2
|
|
3680
|
-
}), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) :
|
|
3703
|
+
}), 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));
|
|
3681
3704
|
}
|
|
3682
3705
|
render() {
|
|
3683
3706
|
if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
|
|
3684
|
-
return
|
|
3707
|
+
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: () => {
|
|
3685
3708
|
this.handleGoToPage(Math.min(this.searchResultsPagesCount, this.searchResultsPage + 1));
|
|
3686
|
-
}, label: "Next", iconPosition: "right", icon:
|
|
3709
|
+
}, 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 })));
|
|
3687
3710
|
}
|
|
3688
3711
|
}, [0, "searchcraft-pagination", {
|
|
3689
3712
|
searchTerm: [32],
|
|
@@ -3709,28 +3732,28 @@ function mc() {
|
|
|
3709
3732
|
}
|
|
3710
3733
|
});
|
|
3711
3734
|
}
|
|
3712
|
-
const gc = mc, vc = /* @__PURE__ */
|
|
3735
|
+
const gc = mc, vc = /* @__PURE__ */ H(class extends D {
|
|
3713
3736
|
constructor() {
|
|
3714
3737
|
super();
|
|
3715
3738
|
/**
|
|
3716
3739
|
* A callback function responsible for rendering the button contents.
|
|
3717
3740
|
*/
|
|
3718
|
-
|
|
3741
|
+
f(this, "template");
|
|
3719
3742
|
/**
|
|
3720
3743
|
* The type of popover button to render.
|
|
3721
3744
|
*/
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3745
|
+
f(this, "type");
|
|
3746
|
+
f(this, "hotkey");
|
|
3747
|
+
f(this, "hotkeyModifier");
|
|
3748
|
+
f(this, "hotkeyModifierSymbol");
|
|
3749
|
+
f(this, "isPopoverVisible");
|
|
3750
|
+
f(this, "userAgent");
|
|
3751
|
+
f(this, "unsubscribe", () => {
|
|
3729
3752
|
});
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3753
|
+
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" })));
|
|
3754
|
+
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" })));
|
|
3755
|
+
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" })));
|
|
3756
|
+
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" })));
|
|
3734
3757
|
this.__registerHost();
|
|
3735
3758
|
}
|
|
3736
3759
|
handleOnClick() {
|
|
@@ -3769,18 +3792,18 @@ const gc = mc, vc = /* @__PURE__ */ N(class extends D {
|
|
|
3769
3792
|
}
|
|
3770
3793
|
}
|
|
3771
3794
|
renderSkeuomorphicSlot() {
|
|
3772
|
-
return
|
|
3795
|
+
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))));
|
|
3773
3796
|
}
|
|
3774
3797
|
renderSlot() {
|
|
3775
3798
|
switch (this.type) {
|
|
3776
3799
|
case "skeuomorphic":
|
|
3777
3800
|
return this.renderSkeuomorphicSlot();
|
|
3778
3801
|
default:
|
|
3779
|
-
return
|
|
3802
|
+
return l("div", null, l("slot", null));
|
|
3780
3803
|
}
|
|
3781
3804
|
}
|
|
3782
3805
|
render() {
|
|
3783
|
-
return
|
|
3806
|
+
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: rt }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
|
|
3784
3807
|
}
|
|
3785
3808
|
}, [4, "searchcraft-popover-button", {
|
|
3786
3809
|
template: [16],
|
|
@@ -3802,11 +3825,11 @@ function bc() {
|
|
|
3802
3825
|
}
|
|
3803
3826
|
});
|
|
3804
3827
|
}
|
|
3805
|
-
const yc = bc, Cc = /* @__PURE__ */
|
|
3828
|
+
const yc = bc, Cc = /* @__PURE__ */ H(class extends D {
|
|
3806
3829
|
constructor() {
|
|
3807
3830
|
super();
|
|
3808
|
-
|
|
3809
|
-
|
|
3831
|
+
f(this, "searchResultsCount");
|
|
3832
|
+
f(this, "unsubscribe", () => {
|
|
3810
3833
|
});
|
|
3811
3834
|
this.__registerHost();
|
|
3812
3835
|
}
|
|
@@ -3820,12 +3843,12 @@ const yc = bc, Cc = /* @__PURE__ */ N(class extends D {
|
|
|
3820
3843
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3821
3844
|
}
|
|
3822
3845
|
render() {
|
|
3823
|
-
return
|
|
3846
|
+
return l("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, l("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${ra(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" }))));
|
|
3824
3847
|
}
|
|
3825
3848
|
}, [0, "searchcraft-popover-footer", {
|
|
3826
3849
|
searchResultsCount: [32]
|
|
3827
3850
|
}]);
|
|
3828
|
-
function
|
|
3851
|
+
function oa() {
|
|
3829
3852
|
if (typeof customElements > "u")
|
|
3830
3853
|
return;
|
|
3831
3854
|
["searchcraft-popover-footer"].forEach((t) => {
|
|
@@ -3836,19 +3859,19 @@ function na() {
|
|
|
3836
3859
|
}
|
|
3837
3860
|
});
|
|
3838
3861
|
}
|
|
3839
|
-
const Sc =
|
|
3862
|
+
const Sc = oa, kc = /* @__PURE__ */ H(class extends D {
|
|
3840
3863
|
constructor() {
|
|
3841
3864
|
super();
|
|
3842
|
-
|
|
3843
|
-
|
|
3865
|
+
f(this, "item");
|
|
3866
|
+
f(this, "popoverResultMappings");
|
|
3844
3867
|
/** The document position relative to the search results (For Measure) */
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3868
|
+
f(this, "documentPosition", 0);
|
|
3869
|
+
f(this, "title");
|
|
3870
|
+
f(this, "subtitle");
|
|
3871
|
+
f(this, "href");
|
|
3872
|
+
f(this, "imageSource");
|
|
3873
|
+
f(this, "imageAlt");
|
|
3874
|
+
f(this, "handleLinkClick", () => {
|
|
3852
3875
|
var a;
|
|
3853
3876
|
const r = I.getState(), s = r.getSearchcraftCore();
|
|
3854
3877
|
if (s) {
|
|
@@ -3864,7 +3887,7 @@ const Sc = na, kc = /* @__PURE__ */ N(class extends D {
|
|
|
3864
3887
|
}
|
|
3865
3888
|
mapValuesFromDocument(r) {
|
|
3866
3889
|
var s, a, o, n, c;
|
|
3867
|
-
this.title =
|
|
3890
|
+
this.title = Qe(r, (s = this.popoverResultMappings) == null ? void 0 : s.title), this.subtitle = Qe(r, (a = this.popoverResultMappings) == null ? void 0 : a.subtitle), this.href = Qe(r, (o = this.popoverResultMappings) == null ? void 0 : o.href), this.imageSource = Qe(r, (n = this.popoverResultMappings) == null ? void 0 : n.imageSource), this.imageAlt = Qe(r, (c = this.popoverResultMappings) == null ? void 0 : c.imageAlt);
|
|
3868
3891
|
}
|
|
3869
3892
|
connectedCallback() {
|
|
3870
3893
|
this.item && this.mapValuesFromDocument(this.item.document);
|
|
@@ -3872,7 +3895,7 @@ const Sc = na, kc = /* @__PURE__ */ N(class extends D {
|
|
|
3872
3895
|
disconnectedCallback() {
|
|
3873
3896
|
}
|
|
3874
3897
|
render() {
|
|
3875
|
-
return
|
|
3898
|
+
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))));
|
|
3876
3899
|
}
|
|
3877
3900
|
}, [0, "searchcraft-popover-list-item", {
|
|
3878
3901
|
item: [16],
|
|
@@ -3884,7 +3907,7 @@ const Sc = na, kc = /* @__PURE__ */ N(class extends D {
|
|
|
3884
3907
|
imageSource: [32],
|
|
3885
3908
|
imageAlt: [32]
|
|
3886
3909
|
}]);
|
|
3887
|
-
function
|
|
3910
|
+
function gr() {
|
|
3888
3911
|
if (typeof customElements > "u")
|
|
3889
3912
|
return;
|
|
3890
3913
|
["searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -3895,62 +3918,62 @@ function mr() {
|
|
|
3895
3918
|
}
|
|
3896
3919
|
});
|
|
3897
3920
|
}
|
|
3898
|
-
var
|
|
3899
|
-
const wc = /* @__PURE__ */
|
|
3921
|
+
var xs;
|
|
3922
|
+
const wc = /* @__PURE__ */ H(class extends D {
|
|
3900
3923
|
constructor() {
|
|
3901
3924
|
super();
|
|
3902
3925
|
/**
|
|
3903
3926
|
* The mappings that define how the data in the documents are mapped to the
|
|
3904
3927
|
* list-view-item elements.
|
|
3905
3928
|
*/
|
|
3906
|
-
|
|
3929
|
+
f(this, "popoverResultMappings");
|
|
3907
3930
|
/**
|
|
3908
3931
|
* The items to render in the list view.
|
|
3909
3932
|
*/
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3933
|
+
f(this, "searchClientResponseItems");
|
|
3934
|
+
f(this, "adClientResponseItems");
|
|
3935
|
+
f(this, "searchResultsPage");
|
|
3936
|
+
f(this, "searchResultsPerPage");
|
|
3937
|
+
f(this, "config", (xs = I.getState().core) == null ? void 0 : xs.config);
|
|
3915
3938
|
this.__registerHost();
|
|
3916
3939
|
}
|
|
3917
3940
|
renderWithADMAds() {
|
|
3918
3941
|
var r, s;
|
|
3919
|
-
return
|
|
3942
|
+
return l("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => l("searchcraft-ad", { adClientResponseItem: a, adContainerId: J(), 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 })));
|
|
3920
3943
|
}
|
|
3921
3944
|
renderWithCustomAds() {
|
|
3922
|
-
var u, h,
|
|
3923
|
-
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((
|
|
3945
|
+
var u, h, i, p;
|
|
3946
|
+
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 || [];
|
|
3924
3947
|
for (let g = 0; g < o; g++)
|
|
3925
|
-
r.push(
|
|
3948
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g}-ad` }));
|
|
3926
3949
|
c.forEach((g, k) => {
|
|
3927
3950
|
if (s && k % s === 0 && k + s < c.length && k >= s)
|
|
3928
3951
|
for (let b = 0; b < a; b++)
|
|
3929
|
-
r.push(
|
|
3930
|
-
r.push(
|
|
3952
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g.id}-ad-${b}` }));
|
|
3953
|
+
r.push(l("searchcraft-popover-list-item", { item: g, key: g.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + k }));
|
|
3931
3954
|
});
|
|
3932
3955
|
for (let g = 0; g < n; g++)
|
|
3933
|
-
r.push(
|
|
3934
|
-
return
|
|
3956
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g}-ad` }));
|
|
3957
|
+
return l("div", { class: "searchcraft-popover-list-view" }, r);
|
|
3935
3958
|
}
|
|
3936
3959
|
renderWithNativoAds() {
|
|
3937
|
-
var h,
|
|
3938
|
-
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((
|
|
3960
|
+
var h, i, p, g, k;
|
|
3961
|
+
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 || [];
|
|
3939
3962
|
for (let b = 0; b < n; b++)
|
|
3940
|
-
r.push(
|
|
3963
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b}-ad` }));
|
|
3941
3964
|
u.forEach((b, P) => {
|
|
3942
3965
|
if (a && (P + s) % a === 0 && P + a < u.length && P >= a)
|
|
3943
3966
|
for (let _ = 0; _ < o; _++)
|
|
3944
|
-
r.push(
|
|
3945
|
-
r.push(
|
|
3967
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b.id}-ad-${_}` }));
|
|
3968
|
+
r.push(l("searchcraft-popover-list-item", { item: b, key: b.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + P }));
|
|
3946
3969
|
});
|
|
3947
3970
|
for (let b = 0; b < c; b++)
|
|
3948
|
-
r.push(
|
|
3949
|
-
return
|
|
3971
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b}-ad` }));
|
|
3972
|
+
return l("div", { class: "searchcraft-popover-list-view" }, r);
|
|
3950
3973
|
}
|
|
3951
3974
|
renderWithNoAds() {
|
|
3952
3975
|
var r;
|
|
3953
|
-
return
|
|
3976
|
+
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 })));
|
|
3954
3977
|
}
|
|
3955
3978
|
render() {
|
|
3956
3979
|
var r;
|
|
@@ -3972,7 +3995,7 @@ const wc = /* @__PURE__ */ N(class extends D {
|
|
|
3972
3995
|
searchResultsPage: [2, "search-results-page"],
|
|
3973
3996
|
searchResultsPerPage: [2, "search-results-per-page"]
|
|
3974
3997
|
}]);
|
|
3975
|
-
function
|
|
3998
|
+
function ca() {
|
|
3976
3999
|
if (typeof customElements > "u")
|
|
3977
4000
|
return;
|
|
3978
4001
|
["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -3984,12 +4007,12 @@ function oa() {
|
|
|
3984
4007
|
customElements.get(t) || wt();
|
|
3985
4008
|
break;
|
|
3986
4009
|
case "searchcraft-popover-list-item":
|
|
3987
|
-
customElements.get(t) ||
|
|
4010
|
+
customElements.get(t) || gr();
|
|
3988
4011
|
break;
|
|
3989
4012
|
}
|
|
3990
4013
|
});
|
|
3991
4014
|
}
|
|
3992
|
-
const xc = /* @__PURE__ */
|
|
4015
|
+
const xc = /* @__PURE__ */ H(class extends D {
|
|
3993
4016
|
constructor() {
|
|
3994
4017
|
super();
|
|
3995
4018
|
/**
|
|
@@ -3998,38 +4021,38 @@ const xc = /* @__PURE__ */ N(class extends D {
|
|
|
3998
4021
|
* - `fullscreen` - Renders in fullscreen view. Used together with the `searchcraft-popover-button` component.
|
|
3999
4022
|
* - `modal` - Renders in a modal view. Used together with the `searchcraft-popover-button` component.
|
|
4000
4023
|
*/
|
|
4001
|
-
|
|
4024
|
+
f(this, "type", "inline");
|
|
4002
4025
|
/**
|
|
4003
4026
|
* Formats the content rendered for each result.
|
|
4004
4027
|
*/
|
|
4005
|
-
|
|
4028
|
+
f(this, "popoverResultMappings");
|
|
4006
4029
|
/**
|
|
4007
4030
|
* The hotkey that activates the popover.
|
|
4008
4031
|
*/
|
|
4009
|
-
|
|
4032
|
+
f(this, "hotkey", "k");
|
|
4010
4033
|
/**
|
|
4011
4034
|
* The hotkey modifier that activates the popover. Used together with the `hotkey` prop.
|
|
4012
4035
|
*/
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4036
|
+
f(this, "hotkeyModifier", "meta");
|
|
4037
|
+
f(this, "isPopoverVisibleInState", !1);
|
|
4038
|
+
f(this, "unsubscribe");
|
|
4039
|
+
f(this, "searchClientResponseItems", []);
|
|
4040
|
+
f(this, "adClientResponseItems", []);
|
|
4041
|
+
f(this, "searchTerm");
|
|
4042
|
+
f(this, "isFocused", !1);
|
|
4043
|
+
f(this, "breakpointSm", 576);
|
|
4044
|
+
f(this, "breakpointMd", 768);
|
|
4045
|
+
f(this, "breakpointLg", 992);
|
|
4046
|
+
f(this, "searchResultsPage");
|
|
4047
|
+
f(this, "searchResultsPerPage");
|
|
4048
|
+
f(this, "modalElement");
|
|
4049
|
+
f(this, "handleDocumentClick", (r) => {
|
|
4027
4050
|
this.hostElement.contains(r.target) || (this.isFocused = !1);
|
|
4028
4051
|
});
|
|
4029
4052
|
/**
|
|
4030
4053
|
* Actions to perform when various keys are pressed within the popover form.
|
|
4031
4054
|
*/
|
|
4032
|
-
|
|
4055
|
+
f(this, "handleDocumentKeyDown", (r) => {
|
|
4033
4056
|
if (r.key === this.hotkey && this.handleHotkeyPressed(r), !!this.hostElement.contains(document.activeElement))
|
|
4034
4057
|
switch (r.key) {
|
|
4035
4058
|
case "ArrowDown":
|
|
@@ -4043,7 +4066,7 @@ const xc = /* @__PURE__ */ N(class extends D {
|
|
|
4043
4066
|
return;
|
|
4044
4067
|
}
|
|
4045
4068
|
});
|
|
4046
|
-
|
|
4069
|
+
f(this, "handleInputInit", () => {
|
|
4047
4070
|
const r = this.hostElement.querySelector(".searchcraft-input-form-input");
|
|
4048
4071
|
r == null || r.focus();
|
|
4049
4072
|
});
|
|
@@ -4120,21 +4143,21 @@ const xc = /* @__PURE__ */ N(class extends D {
|
|
|
4120
4143
|
}
|
|
4121
4144
|
renderInlinePopover() {
|
|
4122
4145
|
const r = this.hasResultsToShow && this.isFocused;
|
|
4123
|
-
return
|
|
4146
|
+
return l("div", { class: ne("searchcraft-popover-form searchcraft-popover-form-inline", {
|
|
4124
4147
|
"searchcraft-popover-form-active": r
|
|
4125
|
-
}) },
|
|
4148
|
+
}) }, 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)));
|
|
4126
4149
|
}
|
|
4127
4150
|
renderModalPopover() {
|
|
4128
4151
|
if (this.isPopoverVisibleInState)
|
|
4129
|
-
return
|
|
4152
|
+
return l("div", { class: ne("searchcraft-popover-form searchcraft-popover-form-modal", {
|
|
4130
4153
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4131
|
-
}) },
|
|
4154
|
+
}) }, 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)));
|
|
4132
4155
|
}
|
|
4133
4156
|
renderFullscreenPopover() {
|
|
4134
4157
|
if (this.isPopoverVisibleInState)
|
|
4135
|
-
return
|
|
4158
|
+
return l("div", { class: ne("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
|
|
4136
4159
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4137
|
-
}) },
|
|
4160
|
+
}) }, 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));
|
|
4138
4161
|
}
|
|
4139
4162
|
render() {
|
|
4140
4163
|
switch (this.type) {
|
|
@@ -4164,7 +4187,7 @@ const xc = /* @__PURE__ */ N(class extends D {
|
|
|
4164
4187
|
searchResultsPerPage: [32],
|
|
4165
4188
|
modalElement: [32]
|
|
4166
4189
|
}]);
|
|
4167
|
-
function
|
|
4190
|
+
function ia() {
|
|
4168
4191
|
if (typeof customElements > "u")
|
|
4169
4192
|
return;
|
|
4170
4193
|
["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) => {
|
|
@@ -4182,43 +4205,43 @@ function ca() {
|
|
|
4182
4205
|
customElements.get(t) || Rt();
|
|
4183
4206
|
break;
|
|
4184
4207
|
case "searchcraft-input-form":
|
|
4185
|
-
customElements.get(t) ||
|
|
4208
|
+
customElements.get(t) || na();
|
|
4186
4209
|
break;
|
|
4187
4210
|
case "searchcraft-input-label":
|
|
4188
|
-
customElements.get(t) ||
|
|
4211
|
+
customElements.get(t) || mr();
|
|
4189
4212
|
break;
|
|
4190
4213
|
case "searchcraft-popover-footer":
|
|
4191
|
-
customElements.get(t) ||
|
|
4214
|
+
customElements.get(t) || oa();
|
|
4192
4215
|
break;
|
|
4193
4216
|
case "searchcraft-popover-form":
|
|
4194
|
-
customElements.get(t) ||
|
|
4217
|
+
customElements.get(t) || ia();
|
|
4195
4218
|
break;
|
|
4196
4219
|
case "searchcraft-popover-list-item":
|
|
4197
|
-
customElements.get(t) ||
|
|
4220
|
+
customElements.get(t) || gr();
|
|
4198
4221
|
break;
|
|
4199
4222
|
case "searchcraft-popover-list-view":
|
|
4200
|
-
customElements.get(t) ||
|
|
4223
|
+
customElements.get(t) || ca();
|
|
4201
4224
|
break;
|
|
4202
4225
|
}
|
|
4203
4226
|
});
|
|
4204
4227
|
}
|
|
4205
|
-
const Rc =
|
|
4228
|
+
const Rc = ia, Ec = gr, Pc = ca, Tc = /* @__PURE__ */ H(class extends D {
|
|
4206
4229
|
constructor() {
|
|
4207
4230
|
super();
|
|
4208
4231
|
/**
|
|
4209
4232
|
* A callback function responsible for rendering the results info.
|
|
4210
4233
|
*/
|
|
4211
|
-
|
|
4234
|
+
f(this, "template");
|
|
4212
4235
|
// store vars
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4236
|
+
f(this, "searchTerm");
|
|
4237
|
+
f(this, "searchResultsPage");
|
|
4238
|
+
f(this, "searchResultsPerPage");
|
|
4239
|
+
f(this, "searchResultsCount");
|
|
4217
4240
|
// local vars
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4241
|
+
f(this, "count", 0);
|
|
4242
|
+
f(this, "range", [0, 0]);
|
|
4243
|
+
f(this, "responseTime", "0");
|
|
4244
|
+
f(this, "unsubscribe", () => {
|
|
4222
4245
|
});
|
|
4223
4246
|
this.__registerHost();
|
|
4224
4247
|
}
|
|
@@ -4231,11 +4254,11 @@ const Rc = ca, Ec = mr, Pc = oa, Tc = /* @__PURE__ */ N(class extends D {
|
|
|
4231
4254
|
this.unsubscribe && this.unsubscribe();
|
|
4232
4255
|
}
|
|
4233
4256
|
render() {
|
|
4234
|
-
return !this.searchTerm || this.searchResultsCount === 0 ? null :
|
|
4257
|
+
return !this.searchTerm || this.searchResultsCount === 0 ? null : l("p", { class: "searchcraft-results-info" }, typeof this.template < "u" ? this.template({
|
|
4235
4258
|
range: [Number(this.range[0]), Number(this.range[1])],
|
|
4236
4259
|
count: this.count,
|
|
4237
4260
|
responseTime: this.responseTime
|
|
4238
|
-
}, { html:
|
|
4261
|
+
}, { html: rt }) : `${ra(this.count)} results found in ${this.responseTime}ms`);
|
|
4239
4262
|
}
|
|
4240
4263
|
}, [0, "searchcraft-results-info", {
|
|
4241
4264
|
template: [16],
|
|
@@ -4258,30 +4281,30 @@ function $c() {
|
|
|
4258
4281
|
}
|
|
4259
4282
|
});
|
|
4260
4283
|
}
|
|
4261
|
-
const _c = $c, Ic = /* @__PURE__ */
|
|
4284
|
+
const _c = $c, Ic = /* @__PURE__ */ H(class extends D {
|
|
4262
4285
|
constructor() {
|
|
4263
4286
|
super();
|
|
4264
|
-
|
|
4287
|
+
f(this, "item");
|
|
4265
4288
|
/**
|
|
4266
4289
|
* The index.
|
|
4267
4290
|
*/
|
|
4268
|
-
|
|
4291
|
+
f(this, "index");
|
|
4269
4292
|
/**
|
|
4270
4293
|
* The position in the document. Used with the "document_clicked" measure event.
|
|
4271
4294
|
*/
|
|
4272
|
-
|
|
4295
|
+
f(this, "documentPosition", 0);
|
|
4273
4296
|
/**
|
|
4274
4297
|
* A callback function responsible for rendering a result.
|
|
4275
4298
|
*/
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
var
|
|
4299
|
+
f(this, "template");
|
|
4300
|
+
f(this, "templateHtml");
|
|
4301
|
+
f(this, "handleResultContainerClick", (r) => {
|
|
4302
|
+
var i;
|
|
4280
4303
|
const s = I.getState(), a = s.getSearchcraftCore();
|
|
4281
4304
|
if (!r.target)
|
|
4282
4305
|
return;
|
|
4283
4306
|
const n = r.target.closest("a");
|
|
4284
|
-
if (!n || !((
|
|
4307
|
+
if (!n || !((i = this.hostElement) != null && i.contains(n)) || !a || !a.measureClient)
|
|
4285
4308
|
return;
|
|
4286
4309
|
const c = this.documentPosition, u = s.searchTerm, h = s.searchClientResponseItems.length || 0;
|
|
4287
4310
|
a.measureClient.sendMeasureEvent("document_clicked", {
|
|
@@ -4290,7 +4313,7 @@ const _c = $c, Ic = /* @__PURE__ */ N(class extends D {
|
|
|
4290
4313
|
search_term: u
|
|
4291
4314
|
});
|
|
4292
4315
|
});
|
|
4293
|
-
|
|
4316
|
+
f(this, "handleKeyDown", () => {
|
|
4294
4317
|
});
|
|
4295
4318
|
this.__registerHost();
|
|
4296
4319
|
}
|
|
@@ -4302,7 +4325,8 @@ const _c = $c, Ic = /* @__PURE__ */ N(class extends D {
|
|
|
4302
4325
|
if (this.item)
|
|
4303
4326
|
try {
|
|
4304
4327
|
this.templateHtml = (r = this.template) == null ? void 0 : r.call(this, this.item.document, this.index, {
|
|
4305
|
-
html:
|
|
4328
|
+
html: rt,
|
|
4329
|
+
source_index: this.item.source_index
|
|
4306
4330
|
});
|
|
4307
4331
|
} catch (s) {
|
|
4308
4332
|
console.error("Invalid search result template:", s);
|
|
@@ -4310,7 +4334,7 @@ const _c = $c, Ic = /* @__PURE__ */ N(class extends D {
|
|
|
4310
4334
|
}
|
|
4311
4335
|
render() {
|
|
4312
4336
|
if (this.item)
|
|
4313
|
-
return typeof this.template > "u" ?
|
|
4337
|
+
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 });
|
|
4314
4338
|
}
|
|
4315
4339
|
}, [0, "searchcraft-search-result", {
|
|
4316
4340
|
item: [16],
|
|
@@ -4319,7 +4343,7 @@ const _c = $c, Ic = /* @__PURE__ */ N(class extends D {
|
|
|
4319
4343
|
template: [16],
|
|
4320
4344
|
templateHtml: [32]
|
|
4321
4345
|
}]);
|
|
4322
|
-
function
|
|
4346
|
+
function la() {
|
|
4323
4347
|
if (typeof customElements > "u")
|
|
4324
4348
|
return;
|
|
4325
4349
|
["searchcraft-search-result"].forEach((t) => {
|
|
@@ -4330,26 +4354,26 @@ function ia() {
|
|
|
4330
4354
|
}
|
|
4331
4355
|
});
|
|
4332
4356
|
}
|
|
4333
|
-
const Ac =
|
|
4357
|
+
const Ac = la, Mc = /* @__PURE__ */ H(class extends D {
|
|
4334
4358
|
constructor() {
|
|
4335
4359
|
super();
|
|
4336
4360
|
/**
|
|
4337
4361
|
* A query that will appears when the component initializes or the search term is ''..
|
|
4338
4362
|
*/
|
|
4339
|
-
|
|
4363
|
+
f(this, "initialQuery");
|
|
4340
4364
|
/**
|
|
4341
4365
|
* A callback function responsible for rendering a result. Passed to `searchcraft-search-result`.
|
|
4342
4366
|
*/
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4367
|
+
f(this, "template");
|
|
4368
|
+
f(this, "adClientResponseItems", []);
|
|
4369
|
+
f(this, "config");
|
|
4370
|
+
f(this, "initialSearchClientResponseItems");
|
|
4371
|
+
f(this, "isSearchInProgress", !0);
|
|
4372
|
+
f(this, "searchClientResponseItems");
|
|
4373
|
+
f(this, "searchResultsPage");
|
|
4374
|
+
f(this, "searchResultsPerPage");
|
|
4375
|
+
f(this, "searchTerm", "");
|
|
4376
|
+
f(this, "unsubscribe", () => {
|
|
4353
4377
|
});
|
|
4354
4378
|
this.__registerHost();
|
|
4355
4379
|
}
|
|
@@ -4371,50 +4395,50 @@ const Ac = ia, Mc = /* @__PURE__ */ N(class extends D {
|
|
|
4371
4395
|
], this.isSearchInProgress = r.isSearchInProgress, this.searchClientResponseItems = [...r.searchClientResponseItems], this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchTerm = r.searchTerm;
|
|
4372
4396
|
}
|
|
4373
4397
|
renderEmptyState() {
|
|
4374
|
-
return
|
|
4398
|
+
return l("div", { class: "searchcraft-search-results-empty-state" }, l("slot", { name: "empty-search" }));
|
|
4375
4399
|
}
|
|
4376
4400
|
renderNoResultsFoundState() {
|
|
4377
|
-
return
|
|
4401
|
+
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.')));
|
|
4378
4402
|
}
|
|
4379
4403
|
renderWithADMAds() {
|
|
4380
4404
|
var s, a, o;
|
|
4381
4405
|
const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
|
|
4382
|
-
return
|
|
4406
|
+
return l("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => l("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: J(), 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 })));
|
|
4383
4407
|
}
|
|
4384
4408
|
renderWithCustomAds() {
|
|
4385
|
-
var u, h,
|
|
4386
|
-
const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((
|
|
4409
|
+
var u, h, i, p, g, k;
|
|
4410
|
+
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 : [];
|
|
4387
4411
|
for (let b = 0; b < o; b++)
|
|
4388
|
-
r.push(
|
|
4412
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b}-ad` }));
|
|
4389
4413
|
c.forEach((b, P) => {
|
|
4390
4414
|
if (s && P % s === 0 && P + s < c.length && P >= s)
|
|
4391
4415
|
for (let _ = 0; _ < a; _++)
|
|
4392
|
-
r.push(
|
|
4393
|
-
r.push(
|
|
4416
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b.id}-ad-${_}` }));
|
|
4417
|
+
r.push(l("searchcraft-search-result", { key: b.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + P, index: P, item: b, template: this.template }));
|
|
4394
4418
|
});
|
|
4395
4419
|
for (let b = 0; b < n; b++)
|
|
4396
|
-
r.push(
|
|
4397
|
-
return
|
|
4420
|
+
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b}-ad` }));
|
|
4421
|
+
return l("div", { class: "searchcraft-search-results" }, r);
|
|
4398
4422
|
}
|
|
4399
4423
|
renderWithNativoAds() {
|
|
4400
|
-
var h,
|
|
4401
|
-
const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((
|
|
4424
|
+
var h, i, p, g, k, b, P;
|
|
4425
|
+
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 : [];
|
|
4402
4426
|
for (let _ = 0; _ < n; _++)
|
|
4403
|
-
r.push(
|
|
4427
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_}-ad` }));
|
|
4404
4428
|
u.forEach((_, O) => {
|
|
4405
4429
|
if (a && (O + s) % a === 0 && O + a < u.length && O >= a)
|
|
4406
4430
|
for (let T = 0; T < o; T++)
|
|
4407
|
-
r.push(
|
|
4408
|
-
r.push(
|
|
4431
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_.id}-ad-${T}` }));
|
|
4432
|
+
r.push(l("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + O, index: O, item: _, template: this.template }));
|
|
4409
4433
|
});
|
|
4410
4434
|
for (let _ = 0; _ < c; _++)
|
|
4411
|
-
r.push(
|
|
4412
|
-
return
|
|
4435
|
+
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_}-ad` }));
|
|
4436
|
+
return l("div", { class: "searchcraft-search-results" }, r);
|
|
4413
4437
|
}
|
|
4414
4438
|
renderWithNoAds() {
|
|
4415
4439
|
var s, a;
|
|
4416
4440
|
const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
|
|
4417
|
-
return
|
|
4441
|
+
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 })));
|
|
4418
4442
|
}
|
|
4419
4443
|
render() {
|
|
4420
4444
|
var a;
|
|
@@ -4461,52 +4485,52 @@ function Lc() {
|
|
|
4461
4485
|
customElements.get(t) || Rt();
|
|
4462
4486
|
break;
|
|
4463
4487
|
case "searchcraft-search-result":
|
|
4464
|
-
customElements.get(t) ||
|
|
4488
|
+
customElements.get(t) || la();
|
|
4465
4489
|
break;
|
|
4466
4490
|
}
|
|
4467
4491
|
});
|
|
4468
4492
|
}
|
|
4469
|
-
const Oc = Lc, Fc = /* @__PURE__ */
|
|
4493
|
+
const Oc = Lc, Fc = /* @__PURE__ */ H(class extends D {
|
|
4470
4494
|
constructor() {
|
|
4471
4495
|
super();
|
|
4472
4496
|
/**
|
|
4473
4497
|
* The caption displayed below the select input.
|
|
4474
4498
|
*/
|
|
4475
|
-
|
|
4499
|
+
f(this, "caption");
|
|
4476
4500
|
/**
|
|
4477
4501
|
* Whether the select input is disabled.
|
|
4478
4502
|
*/
|
|
4479
|
-
|
|
4503
|
+
f(this, "disabled", !1);
|
|
4480
4504
|
/**
|
|
4481
4505
|
* The ID for the select input.
|
|
4482
4506
|
*/
|
|
4483
|
-
|
|
4507
|
+
f(this, "inputId");
|
|
4484
4508
|
/**
|
|
4485
4509
|
* The label of the select input.
|
|
4486
4510
|
*/
|
|
4487
|
-
|
|
4511
|
+
f(this, "label");
|
|
4488
4512
|
/**
|
|
4489
4513
|
* The ID for the label of the select input.
|
|
4490
4514
|
*/
|
|
4491
|
-
|
|
4515
|
+
f(this, "labelId");
|
|
4492
4516
|
/**
|
|
4493
4517
|
* The name of the select input.
|
|
4494
4518
|
*/
|
|
4495
|
-
|
|
4519
|
+
f(this, "name");
|
|
4496
4520
|
/**
|
|
4497
4521
|
* The options for the select input.
|
|
4498
4522
|
*/
|
|
4499
|
-
|
|
4523
|
+
f(this, "options", []);
|
|
4500
4524
|
/**
|
|
4501
4525
|
* The event fired when the select is changed.
|
|
4502
4526
|
*/
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4527
|
+
f(this, "selectChange");
|
|
4528
|
+
f(this, "searchResultsPerPage");
|
|
4529
|
+
f(this, "setSearchResultsPage", () => {
|
|
4506
4530
|
});
|
|
4507
|
-
|
|
4531
|
+
f(this, "setSearchResultsPerPage", () => {
|
|
4508
4532
|
});
|
|
4509
|
-
|
|
4533
|
+
f(this, "handleSelectChange", (r) => {
|
|
4510
4534
|
this.selectChange.emit(r.target.value);
|
|
4511
4535
|
});
|
|
4512
4536
|
this.__registerHost(), this.selectChange = Ce(this, "selectChange");
|
|
@@ -4515,7 +4539,7 @@ const Oc = Lc, Fc = /* @__PURE__ */ N(class extends D {
|
|
|
4515
4539
|
this.setSearchResultsPage(r);
|
|
4516
4540
|
}
|
|
4517
4541
|
render() {
|
|
4518
|
-
return
|
|
4542
|
+
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));
|
|
4519
4543
|
}
|
|
4520
4544
|
}, [0, "searchcraft-select", {
|
|
4521
4545
|
caption: [1],
|
|
@@ -4529,7 +4553,7 @@ const Oc = Lc, Fc = /* @__PURE__ */ N(class extends D {
|
|
|
4529
4553
|
setSearchResultsPage: [32],
|
|
4530
4554
|
setSearchResultsPerPage: [32]
|
|
4531
4555
|
}]);
|
|
4532
|
-
function
|
|
4556
|
+
function ua() {
|
|
4533
4557
|
if (typeof customElements > "u")
|
|
4534
4558
|
return;
|
|
4535
4559
|
["searchcraft-select"].forEach((t) => {
|
|
@@ -4540,28 +4564,28 @@ function la() {
|
|
|
4540
4564
|
}
|
|
4541
4565
|
});
|
|
4542
4566
|
}
|
|
4543
|
-
const Dc = /* @__PURE__ */
|
|
4567
|
+
const Dc = /* @__PURE__ */ H(class extends D {
|
|
4544
4568
|
constructor() {
|
|
4545
4569
|
super();
|
|
4546
4570
|
/**
|
|
4547
4571
|
* The amount the options will increase (e.g. 20 = [20, 40, 60, 80, 100]).
|
|
4548
4572
|
* The base value is defined by the `searchResultsPerPage` option in the configuration.
|
|
4549
4573
|
*/
|
|
4550
|
-
|
|
4574
|
+
f(this, "increment", 20);
|
|
4551
4575
|
// store vars
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4576
|
+
f(this, "searchTerm");
|
|
4577
|
+
f(this, "searchResultsPage");
|
|
4578
|
+
f(this, "searchResultsPerPage");
|
|
4579
|
+
f(this, "searchResultsCount");
|
|
4580
|
+
f(this, "searchResultsPagesCount");
|
|
4557
4581
|
// local vars
|
|
4558
|
-
|
|
4582
|
+
f(this, "initialSearchResultsPerPage");
|
|
4559
4583
|
// store functions
|
|
4560
|
-
|
|
4584
|
+
f(this, "setSearchResultsPerPage", () => {
|
|
4561
4585
|
});
|
|
4562
|
-
|
|
4586
|
+
f(this, "setSearchResultsPage", () => {
|
|
4563
4587
|
});
|
|
4564
|
-
|
|
4588
|
+
f(this, "unsubscribe", () => {
|
|
4565
4589
|
});
|
|
4566
4590
|
this.__registerHost();
|
|
4567
4591
|
}
|
|
@@ -4576,7 +4600,7 @@ const Dc = /* @__PURE__ */ N(class extends D {
|
|
|
4576
4600
|
}
|
|
4577
4601
|
render() {
|
|
4578
4602
|
if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
|
|
4579
|
-
return
|
|
4603
|
+
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) => {
|
|
4580
4604
|
const a = this.initialSearchResultsPerPage + Number(this.increment) * s;
|
|
4581
4605
|
return {
|
|
4582
4606
|
label: `${a}`,
|
|
@@ -4597,7 +4621,7 @@ const Dc = /* @__PURE__ */ N(class extends D {
|
|
|
4597
4621
|
setSearchResultsPerPage: [32],
|
|
4598
4622
|
setSearchResultsPage: [32]
|
|
4599
4623
|
}]);
|
|
4600
|
-
function
|
|
4624
|
+
function Hc() {
|
|
4601
4625
|
if (typeof customElements > "u")
|
|
4602
4626
|
return;
|
|
4603
4627
|
["searchcraft-search-results-per-page", "searchcraft-select"].forEach((t) => {
|
|
@@ -4606,18 +4630,18 @@ function Nc() {
|
|
|
4606
4630
|
customElements.get(t) || customElements.define(t, Dc);
|
|
4607
4631
|
break;
|
|
4608
4632
|
case "searchcraft-select":
|
|
4609
|
-
customElements.get(t) ||
|
|
4633
|
+
customElements.get(t) || ua();
|
|
4610
4634
|
break;
|
|
4611
4635
|
}
|
|
4612
4636
|
});
|
|
4613
4637
|
}
|
|
4614
|
-
const Hc = Nc, Uc = la, zc = ra, jc = `[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 */
|
|
4615
|
-
`, Vc = /* @__PURE__ */
|
|
4638
|
+
const Nc = Hc, Uc = ua, zc = sa, jc = `[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 */
|
|
4639
|
+
`, Vc = /* @__PURE__ */ H(class extends D {
|
|
4616
4640
|
constructor() {
|
|
4617
4641
|
super(), this.__registerHost();
|
|
4618
4642
|
}
|
|
4619
4643
|
render() {
|
|
4620
|
-
return
|
|
4644
|
+
return l("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, jc);
|
|
4621
4645
|
}
|
|
4622
4646
|
}, [0, "searchcraft-theme"]);
|
|
4623
4647
|
function Bc() {
|
|
@@ -4631,61 +4655,61 @@ function Bc() {
|
|
|
4631
4655
|
}
|
|
4632
4656
|
});
|
|
4633
4657
|
}
|
|
4634
|
-
const Wc = Bc, Gc =
|
|
4635
|
-
qo(), Zo(), Ko(), sc(), lc(),
|
|
4658
|
+
const Wc = Bc, Gc = aa, ha = () => {
|
|
4659
|
+
qo(), Zo(), Ko(), sc(), lc(), dc(), fc(), gc(), yc(), Sc(), Rc(), Ec(), Pc(), _c(), Ac(), Nc(), Oc(), Uc(), zc(), Wc(), Gc();
|
|
4636
4660
|
};
|
|
4637
|
-
globalThis.__scDefineCustomElements__ =
|
|
4638
|
-
const qc = "@searchcraft/vue-sdk", Yc = "0.10.
|
|
4661
|
+
globalThis.__scDefineCustomElements__ = ha;
|
|
4662
|
+
const qc = "@searchcraft/vue-sdk", Yc = "0.10.4", Cs = {
|
|
4639
4663
|
name: qc,
|
|
4640
4664
|
version: Yc
|
|
4641
|
-
},
|
|
4665
|
+
}, Zt = "routerLink", Ss = "navManager", Zc = "router", Qc = "aria", Ke = Symbol(), ks = { default: Ke }, ws = (e) => (e == null ? void 0 : e.split(" ")) || [], Kc = (e, t, r = []) => {
|
|
4642
4666
|
var s;
|
|
4643
4667
|
return [...Array.from(((s = e.value) == null ? void 0 : s.classList) || []), ...r].filter((a, o, n) => !t.has(a) && n.indexOf(a) === o);
|
|
4644
4668
|
}, ye = (e, t, r = [], s = [], a, o) => {
|
|
4645
4669
|
t !== void 0 && t();
|
|
4646
|
-
const n =
|
|
4670
|
+
const n = Xa((c, { attrs: u, slots: h, emit: i }) => {
|
|
4647
4671
|
var O;
|
|
4648
|
-
const p =
|
|
4672
|
+
const p = Ja(), g = new Set(ws(u.class)), k = en(), P = ((O = k == null ? void 0 : k.appContext) == null ? void 0 : O.provides[Ss]) ? tn(Ss) : void 0, _ = (T) => {
|
|
4649
4673
|
const { routerLink: ue } = c;
|
|
4650
|
-
if (ue !==
|
|
4674
|
+
if (ue !== Ke)
|
|
4651
4675
|
if (P !== void 0) {
|
|
4652
4676
|
T.preventDefault();
|
|
4653
4677
|
let se = { event: T };
|
|
4654
4678
|
for (const we in c) {
|
|
4655
|
-
const
|
|
4656
|
-
c.hasOwnProperty(we) && we.startsWith(Zc) &&
|
|
4679
|
+
const N = c[we];
|
|
4680
|
+
c.hasOwnProperty(we) && we.startsWith(Zc) && N !== Ke && (se[we] = N);
|
|
4657
4681
|
}
|
|
4658
4682
|
P.navigate(se);
|
|
4659
4683
|
} else
|
|
4660
4684
|
console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
|
|
4661
4685
|
};
|
|
4662
4686
|
return () => {
|
|
4663
|
-
c[a],
|
|
4664
|
-
g.add(
|
|
4687
|
+
c[a], ws(u.class).forEach((N) => {
|
|
4688
|
+
g.add(N);
|
|
4665
4689
|
});
|
|
4666
|
-
const T = c.onClick, ue = (
|
|
4667
|
-
T !== void 0 && T(
|
|
4690
|
+
const T = c.onClick, ue = (N) => {
|
|
4691
|
+
T !== void 0 && T(N), N.defaultPrevented || _(N);
|
|
4668
4692
|
};
|
|
4669
4693
|
let se = {
|
|
4670
4694
|
ref: p,
|
|
4671
4695
|
class: Kc(p, g),
|
|
4672
4696
|
onClick: ue
|
|
4673
4697
|
};
|
|
4674
|
-
for (const
|
|
4675
|
-
const ee = c[
|
|
4676
|
-
(c.hasOwnProperty(
|
|
4677
|
-
const U = "on" +
|
|
4678
|
-
p.value && u.hasOwnProperty(U) && "addEventListener" in p.value && p.value.addEventListener(
|
|
4698
|
+
for (const N in c) {
|
|
4699
|
+
const ee = c[N];
|
|
4700
|
+
(c.hasOwnProperty(N) && ee !== Ke || N.startsWith(Qc)) && (se[N] = ee);
|
|
4701
|
+
const U = "on" + N.slice(0, 1).toUpperCase() + N.slice(1), xe = u[U];
|
|
4702
|
+
p.value && u.hasOwnProperty(U) && "addEventListener" in p.value && p.value.addEventListener(N, xe);
|
|
4679
4703
|
}
|
|
4680
|
-
return
|
|
4704
|
+
return Zt in c && c[Zt] !== Ke && (se = {
|
|
4681
4705
|
...se,
|
|
4682
|
-
href: c[
|
|
4683
|
-
}),
|
|
4706
|
+
href: c[Zt]
|
|
4707
|
+
}), rn(e, se, h.default && h.default());
|
|
4684
4708
|
};
|
|
4685
4709
|
});
|
|
4686
4710
|
if (typeof n != "function") {
|
|
4687
4711
|
let c = [], u = {};
|
|
4688
|
-
u.ROUTER_LINK_VALUE =
|
|
4712
|
+
u.ROUTER_LINK_VALUE = ks, r.forEach((h) => u[h] = ks), c = s, n.name = e, n.emits = c, n.props = u;
|
|
4689
4713
|
}
|
|
4690
4714
|
return n;
|
|
4691
4715
|
}, Xc = /* @__PURE__ */ ye("searchcraft-filter-panel", () => {
|
|
@@ -4728,18 +4752,18 @@ const qc = "@searchcraft/vue-sdk", Yc = "0.10.2", ys = {
|
|
|
4728
4752
|
}, [
|
|
4729
4753
|
"increment"
|
|
4730
4754
|
]), oi = /* @__PURE__ */ ye("searchcraft-theme", () => {
|
|
4731
|
-
}), _i = ai, Ii = Xc, Ai = Jc, Mi = ti, Li = ri, Oi = si, Fi = oi, Di = ei,
|
|
4732
|
-
class
|
|
4755
|
+
}), _i = ai, Ii = Xc, Ai = Jc, Mi = ti, Li = ri, Oi = si, Fi = oi, Di = ei, Hi = ni;
|
|
4756
|
+
class Ni extends wo {
|
|
4733
4757
|
constructor(t) {
|
|
4734
4758
|
super(t, {
|
|
4735
|
-
sdkName:
|
|
4736
|
-
sdkVersion:
|
|
4759
|
+
sdkName: Cs.name,
|
|
4760
|
+
sdkVersion: Cs.version
|
|
4737
4761
|
});
|
|
4738
4762
|
}
|
|
4739
4763
|
}
|
|
4740
|
-
|
|
4764
|
+
ha();
|
|
4741
4765
|
export {
|
|
4742
|
-
|
|
4766
|
+
Ni as Searchcraft,
|
|
4743
4767
|
Ii as SearchcraftFilterPanel,
|
|
4744
4768
|
Ai as SearchcraftInputForm,
|
|
4745
4769
|
Di as SearchcraftPagination,
|
|
@@ -4747,7 +4771,7 @@ export {
|
|
|
4747
4771
|
Li as SearchcraftPopoverForm,
|
|
4748
4772
|
Oi as SearchcraftResultsInfo,
|
|
4749
4773
|
_i as SearchcraftSearchResults,
|
|
4750
|
-
|
|
4774
|
+
Hi as SearchcraftSearchResultsPerPage,
|
|
4751
4775
|
Fi as SearchcraftTheme
|
|
4752
4776
|
};
|
|
4753
4777
|
//# sourceMappingURL=index.es.js.map
|