@searchcraft/javascript-sdk 0.10.1 → 0.10.3
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/components/index.d.ts +148 -83
- package/dist/components/index.js +7 -33
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-84e2cbd6.js → p-06bac1fc.js} +3 -3
- package/dist/components/{p-84e2cbd6.js.map → p-06bac1fc.js.map} +1 -1
- package/dist/components/p-4d37616e.js +105 -0
- package/dist/components/p-4d37616e.js.map +1 -0
- package/dist/components/{p-172a848d.js → p-508ee769.js} +8 -7
- package/dist/components/p-508ee769.js.map +1 -0
- package/dist/components/{p-3e65aa91.js → p-53c795bd.js} +4 -10
- package/dist/components/p-53c795bd.js.map +1 -0
- package/dist/components/{p-0077f677.js → p-5a4be632.js} +34 -22
- package/dist/components/p-5a4be632.js.map +1 -0
- package/dist/components/{p-5d17ace0.js → p-6717ab82.js} +7 -7
- package/dist/components/{p-5d17ace0.js.map → p-6717ab82.js.map} +1 -1
- package/dist/components/{p-868803f9.js → p-7c650118.js} +2 -2
- package/dist/components/{p-868803f9.js.map → p-7c650118.js.map} +1 -1
- package/dist/components/{p-13e81b5d.js → p-ad569b01.js} +12 -7
- package/dist/components/p-ad569b01.js.map +1 -0
- package/dist/components/{p-17c646e2.js → p-d4558d44.js} +563 -476
- package/dist/components/p-d4558d44.js.map +1 -0
- package/dist/components/{p-2be1a382.js → p-da1fb5c0.js} +2 -2
- package/dist/components/{p-2be1a382.js.map → p-da1fb5c0.js.map} +1 -1
- package/dist/components/{p-a62a2e74.js → p-fd564261.js} +4 -4
- package/dist/components/{p-a62a2e74.js.map → p-fd564261.js.map} +1 -1
- package/dist/components/searchcraft-ad.js +1 -1
- package/dist/components/searchcraft-facet-list.js +1 -1
- package/dist/components/searchcraft-filter-panel.js +20 -9
- package/dist/components/searchcraft-filter-panel.js.map +1 -1
- package/dist/components/searchcraft-input-form.js +1 -1
- package/dist/components/searchcraft-pagination.js +1 -1
- package/dist/components/searchcraft-popover-button.js +5 -3
- package/dist/components/searchcraft-popover-button.js.map +1 -1
- package/dist/components/searchcraft-popover-footer.js +1 -1
- package/dist/components/searchcraft-popover-form.js +8 -8
- package/dist/components/searchcraft-popover-form.js.map +1 -1
- package/dist/components/searchcraft-popover-list-item.js +1 -1
- package/dist/components/searchcraft-popover-list-view.js +1 -1
- package/dist/components/searchcraft-results-info.js +2 -2
- package/dist/components/searchcraft-search-result.js +1 -1
- package/dist/components/searchcraft-search-results-per-page.js +1 -1
- package/dist/components/searchcraft-search-results.js +69 -32
- package/dist/components/searchcraft-search-results.js.map +1 -1
- package/dist/components/searchcraft-slider.js +1 -1
- package/dist/components/searchcraft-theme.js +1 -1
- package/dist/components/searchcraft-theme.js.map +1 -1
- package/dist/components/searchcraft-toggle-button.js +1 -1
- package/dist/hydrate/index.js +491 -377
- package/dist/hydrate/index.mjs +491 -377
- package/dist/themes/hologram.css +1 -1
- package/dist/themes/hologram.css.map +1 -1
- package/dist/types/components/searchcraft-facet-list/searchcraft-facet-list.d.ts +1 -1
- package/dist/types/components/searchcraft-filter-panel/searchcraft-filter-panel.d.ts +1 -1
- package/dist/types/components/searchcraft-input-form/searchcraft-input-form.d.ts +7 -3
- package/dist/types/components/searchcraft-popover-button/searchcraft-popover-button.d.ts +3 -3
- package/dist/types/components/searchcraft-search-results/searchcraft-search-results.d.ts +10 -5
- package/dist/types/components.d.ts +20 -12
- package/dist/types/index.d.ts +0 -1
- package/dist/types/store/SearchcraftStore.types.d.ts +21 -8
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/units.d.ts +19 -6
- package/package.json +4 -7
- package/dist/components/p-0077f677.js.map +0 -1
- package/dist/components/p-13e81b5d.js.map +0 -1
- package/dist/components/p-172a848d.js.map +0 -1
- package/dist/components/p-17c646e2.js.map +0 -1
- package/dist/components/p-3e65aa91.js.map +0 -1
- package/dist/components/p-6104fe5d.js +0 -84
- package/dist/components/p-6104fe5d.js.map +0 -1
- package/dist/types/utils/styles.d.ts +0 -3
package/dist/hydrate/index.mjs
CHANGED
|
@@ -335,7 +335,7 @@ var uniqueTime = (key, measureText) => {
|
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
|
-
var h
|
|
338
|
+
var h = (nodeName, vnodeData, ...children) => {
|
|
339
339
|
let child = null;
|
|
340
340
|
let key = null;
|
|
341
341
|
let slotName = null;
|
|
@@ -437,7 +437,7 @@ var convertToPrivate = (node) => {
|
|
|
437
437
|
if (node.vname) {
|
|
438
438
|
vnodeData.name = node.vname;
|
|
439
439
|
}
|
|
440
|
-
return h
|
|
440
|
+
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
441
441
|
}
|
|
442
442
|
const vnode = newVNode(node.vtag, node.vtext);
|
|
443
443
|
vnode.$attrs$ = node.vattrs;
|
|
@@ -1275,7 +1275,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1275
1275
|
var _c, _d;
|
|
1276
1276
|
const hostElm = hostRef.$hostElement$;
|
|
1277
1277
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1278
|
-
const rootVnode = isHost(renderFnResults) ? renderFnResults : h
|
|
1278
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1279
1279
|
hostTagName = hostElm.tagName;
|
|
1280
1280
|
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1281
1281
|
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
@@ -1947,14 +1947,14 @@ var hAsync = (nodeName, vnodeData, ...children) => {
|
|
|
1947
1947
|
const flatChildren = children.flat(Infinity);
|
|
1948
1948
|
if (flatChildren.some((child) => child instanceof Promise)) {
|
|
1949
1949
|
return Promise.all(flatChildren).then((resolvedChildren) => {
|
|
1950
|
-
return h
|
|
1950
|
+
return h(nodeName, vnodeData, ...resolvedChildren);
|
|
1951
1951
|
}).catch((err2) => {
|
|
1952
|
-
return h
|
|
1952
|
+
return h(nodeName, vnodeData);
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
1955
|
-
return h
|
|
1955
|
+
return h(nodeName, vnodeData, ...flatChildren);
|
|
1956
1956
|
}
|
|
1957
|
-
return h
|
|
1957
|
+
return h(nodeName, vnodeData);
|
|
1958
1958
|
};
|
|
1959
1959
|
function proxyHostElement(elm, cstr) {
|
|
1960
1960
|
const cmpMeta = cstr.cmpMeta;
|
|
@@ -3177,17 +3177,17 @@ Object.keys(react).forEach(function (k) {
|
|
|
3177
3177
|
}(zustand));
|
|
3178
3178
|
|
|
3179
3179
|
var B = Object.defineProperty;
|
|
3180
|
-
var
|
|
3181
|
-
var
|
|
3182
|
-
var
|
|
3183
|
-
class
|
|
3180
|
+
var N = (a, e, n) => e in a ? B(a, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[e] = n;
|
|
3181
|
+
var l = (a, e, n) => N(a, typeof e != "symbol" ? e + "" : e, n);
|
|
3182
|
+
var O = /* @__PURE__ */ ((a) => (a[a.DEBUG = 0] = "DEBUG", a[a.INFO = 1] = "INFO", a[a.WARN = 2] = "WARN", a[a.ERROR = 3] = "ERROR", a))(O || {});
|
|
3183
|
+
class pe {
|
|
3184
3184
|
constructor(e) {
|
|
3185
|
-
|
|
3186
|
-
|
|
3185
|
+
l(this, "logLevel");
|
|
3186
|
+
l(this, "logFormatter");
|
|
3187
3187
|
this.logLevel = e.logLevel || 1, this.logFormatter = e.logFormatter || this.defaultFormatter;
|
|
3188
3188
|
}
|
|
3189
3189
|
defaultFormatter(e, n) {
|
|
3190
|
-
return `[${
|
|
3190
|
+
return `[${O[e]}] ${( new Date()).toISOString()}: ${n}`;
|
|
3191
3191
|
}
|
|
3192
3192
|
debug(e) {
|
|
3193
3193
|
this.logLevel <= 0 && console.log(this.logFormatter(0, e));
|
|
@@ -3218,112 +3218,112 @@ class ve {
|
|
|
3218
3218
|
}
|
|
3219
3219
|
}
|
|
3220
3220
|
}
|
|
3221
|
-
function w(
|
|
3222
|
-
return new (n || (n = Promise))(function(
|
|
3221
|
+
function w(a, e, n, r) {
|
|
3222
|
+
return new (n || (n = Promise))(function(i, o) {
|
|
3223
3223
|
function t(c) {
|
|
3224
3224
|
try {
|
|
3225
|
-
|
|
3225
|
+
h(r.next(c));
|
|
3226
3226
|
} catch (s) {
|
|
3227
|
-
|
|
3227
|
+
o(s);
|
|
3228
3228
|
}
|
|
3229
3229
|
}
|
|
3230
3230
|
function u(c) {
|
|
3231
3231
|
try {
|
|
3232
|
-
|
|
3232
|
+
h(r.throw(c));
|
|
3233
3233
|
} catch (s) {
|
|
3234
|
-
|
|
3234
|
+
o(s);
|
|
3235
3235
|
}
|
|
3236
3236
|
}
|
|
3237
|
-
function
|
|
3237
|
+
function h(c) {
|
|
3238
3238
|
var s;
|
|
3239
|
-
c.done ?
|
|
3240
|
-
|
|
3239
|
+
c.done ? i(c.value) : (s = c.value, s instanceof n ? s : new n(function(p) {
|
|
3240
|
+
p(s);
|
|
3241
3241
|
})).then(t, u);
|
|
3242
3242
|
}
|
|
3243
|
-
|
|
3243
|
+
h((r = r.apply(a, [])).next());
|
|
3244
3244
|
});
|
|
3245
3245
|
}
|
|
3246
|
-
function y(
|
|
3247
|
-
var n,
|
|
3248
|
-
if (1 &
|
|
3249
|
-
return
|
|
3246
|
+
function y(a, e) {
|
|
3247
|
+
var n, r, i, o, t = { label: 0, sent: function() {
|
|
3248
|
+
if (1 & i[0]) throw i[1];
|
|
3249
|
+
return i[1];
|
|
3250
3250
|
}, trys: [], ops: [] };
|
|
3251
|
-
return
|
|
3251
|
+
return o = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
3252
3252
|
return this;
|
|
3253
|
-
}),
|
|
3254
|
-
function u(
|
|
3253
|
+
}), o;
|
|
3254
|
+
function u(h) {
|
|
3255
3255
|
return function(c) {
|
|
3256
3256
|
return function(s) {
|
|
3257
3257
|
if (n) throw new TypeError("Generator is already executing.");
|
|
3258
|
-
for (;
|
|
3259
|
-
if (n = 1,
|
|
3260
|
-
switch (
|
|
3258
|
+
for (; o && (o = 0, s[0] && (t = 0)), t; ) try {
|
|
3259
|
+
if (n = 1, r && (i = 2 & s[0] ? r.return : s[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) && !(i = i.call(r, s[1])).done) return i;
|
|
3260
|
+
switch (r = 0, i && (s = [2 & s[0], i.value]), s[0]) {
|
|
3261
3261
|
case 0:
|
|
3262
3262
|
case 1:
|
|
3263
|
-
|
|
3263
|
+
i = s;
|
|
3264
3264
|
break;
|
|
3265
3265
|
case 4:
|
|
3266
3266
|
return t.label++, { value: s[1], done: !1 };
|
|
3267
3267
|
case 5:
|
|
3268
|
-
t.label++,
|
|
3268
|
+
t.label++, r = s[1], s = [0];
|
|
3269
3269
|
continue;
|
|
3270
3270
|
case 7:
|
|
3271
3271
|
s = t.ops.pop(), t.trys.pop();
|
|
3272
3272
|
continue;
|
|
3273
3273
|
default:
|
|
3274
|
-
if (
|
|
3274
|
+
if (i = t.trys, !((i = i.length > 0 && i[i.length - 1]) || s[0] !== 6 && s[0] !== 2)) {
|
|
3275
3275
|
t = 0;
|
|
3276
3276
|
continue;
|
|
3277
3277
|
}
|
|
3278
|
-
if (s[0] === 3 && (!
|
|
3278
|
+
if (s[0] === 3 && (!i || s[1] > i[0] && s[1] < i[3])) {
|
|
3279
3279
|
t.label = s[1];
|
|
3280
3280
|
break;
|
|
3281
3281
|
}
|
|
3282
|
-
if (s[0] === 6 && t.label <
|
|
3283
|
-
t.label =
|
|
3282
|
+
if (s[0] === 6 && t.label < i[1]) {
|
|
3283
|
+
t.label = i[1], i = s;
|
|
3284
3284
|
break;
|
|
3285
3285
|
}
|
|
3286
|
-
if (
|
|
3287
|
-
t.label =
|
|
3286
|
+
if (i && t.label < i[2]) {
|
|
3287
|
+
t.label = i[2], t.ops.push(s);
|
|
3288
3288
|
break;
|
|
3289
3289
|
}
|
|
3290
|
-
|
|
3290
|
+
i[2] && t.ops.pop(), t.trys.pop();
|
|
3291
3291
|
continue;
|
|
3292
3292
|
}
|
|
3293
|
-
s = e.call(
|
|
3294
|
-
} catch (
|
|
3295
|
-
s = [6,
|
|
3293
|
+
s = e.call(a, t);
|
|
3294
|
+
} catch (p) {
|
|
3295
|
+
s = [6, p], r = 0;
|
|
3296
3296
|
} finally {
|
|
3297
|
-
n =
|
|
3297
|
+
n = i = 0;
|
|
3298
3298
|
}
|
|
3299
3299
|
if (5 & s[0]) throw s[1];
|
|
3300
3300
|
return { value: s[0] ? s[1] : void 0, done: !0 };
|
|
3301
|
-
}([
|
|
3301
|
+
}([h, c]);
|
|
3302
3302
|
};
|
|
3303
3303
|
}
|
|
3304
3304
|
}
|
|
3305
|
-
var
|
|
3306
|
-
typeof window < "u" && (
|
|
3305
|
+
var S = { exclude: [] }, D = {}, v = function(a, e) {
|
|
3306
|
+
typeof window < "u" && (D[a] = e);
|
|
3307
3307
|
};
|
|
3308
|
-
function
|
|
3309
|
-
return
|
|
3308
|
+
function T(a) {
|
|
3309
|
+
return a ^= a >>> 16, a = Math.imul(a, 2246822507), a ^= a >>> 13, a = Math.imul(a, 3266489909), (a ^= a >>> 16) >>> 0;
|
|
3310
3310
|
}
|
|
3311
3311
|
var m = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
3312
|
-
function g(
|
|
3313
|
-
return
|
|
3312
|
+
function g(a, e) {
|
|
3313
|
+
return a << e | a >>> 32 - e;
|
|
3314
3314
|
}
|
|
3315
|
-
function
|
|
3315
|
+
function I(a, e) {
|
|
3316
3316
|
var n;
|
|
3317
|
-
if (e === void 0 && (e = 0), e = e ? 0 | e : 0, typeof
|
|
3318
|
-
var
|
|
3319
|
-
(((function(
|
|
3320
|
-
for (var u =
|
|
3321
|
-
var s =
|
|
3317
|
+
if (e === void 0 && (e = 0), e = e ? 0 | e : 0, typeof a == "string" && (n = a, a = new TextEncoder().encode(n).buffer), !(a instanceof ArrayBuffer)) throw new TypeError("Expected key to be ArrayBuffer or string");
|
|
3318
|
+
var r = new Uint32Array([e, e, e, e]);
|
|
3319
|
+
(((function(o, t) {
|
|
3320
|
+
for (var u = o.byteLength / 16 | 0, h = new Uint32Array(o, 0, 4 * u), c = 0; c < u; c++) {
|
|
3321
|
+
var s = h.subarray(4 * c, 4 * (c + 1));
|
|
3322
3322
|
s[0] = Math.imul(s[0], m[0]), s[0] = g(s[0], 15), s[0] = Math.imul(s[0], m[1]), t[0] = t[0] ^ s[0], t[0] = g(t[0], 19), t[0] = t[0] + t[1], t[0] = Math.imul(t[0], 5) + 1444728091, s[1] = Math.imul(s[1], m[1]), s[1] = g(s[1], 16), s[1] = Math.imul(s[1], m[2]), t[1] = t[1] ^ s[1], t[1] = g(t[1], 17), t[1] = t[1] + t[2], t[1] = Math.imul(t[1], 5) + 197830471, s[2] = Math.imul(s[2], m[2]), s[2] = g(s[2], 17), s[2] = Math.imul(s[2], m[3]), t[2] = t[2] ^ s[2], t[2] = g(t[2], 15), t[2] = t[2] + t[3], t[2] = Math.imul(t[2], 5) + 2530024501, s[3] = Math.imul(s[3], m[3]), s[3] = g(s[3], 18), s[3] = Math.imul(s[3], m[0]), t[3] = t[3] ^ s[3], t[3] = g(t[3], 13), t[3] = t[3] + t[0], t[3] = Math.imul(t[3], 5) + 850148119;
|
|
3323
3323
|
}
|
|
3324
|
-
})))(
|
|
3325
|
-
var u =
|
|
3326
|
-
switch (
|
|
3324
|
+
})))(a, r), function(o, t) {
|
|
3325
|
+
var u = o.byteLength / 16 | 0, h = o.byteLength % 16, c = new Uint32Array(4), s = new Uint8Array(o, 16 * u, h);
|
|
3326
|
+
switch (h) {
|
|
3327
3327
|
case 15:
|
|
3328
3328
|
c[3] = c[3] ^ s[14] << 16;
|
|
3329
3329
|
case 14:
|
|
@@ -3355,178 +3355,178 @@ function M(r, e) {
|
|
|
3355
3355
|
case 1:
|
|
3356
3356
|
c[0] = c[0] ^ s[0] << 0, c[0] = Math.imul(c[0], m[0]), c[0] = g(c[0], 15), c[0] = Math.imul(c[0], m[1]), t[0] = t[0] ^ c[0];
|
|
3357
3357
|
}
|
|
3358
|
-
}(
|
|
3359
|
-
t[0] = t[0] ^
|
|
3360
|
-
}(
|
|
3361
|
-
var
|
|
3362
|
-
return Array.from(
|
|
3363
|
-
return
|
|
3358
|
+
}(a, r), function(o, t) {
|
|
3359
|
+
t[0] = t[0] ^ o.byteLength, t[1] = t[1] ^ o.byteLength, t[2] = t[2] ^ o.byteLength, t[3] = t[3] ^ o.byteLength, t[0] = t[0] + t[1] | 0, t[0] = t[0] + t[2] | 0, t[0] = t[0] + t[3] | 0, t[1] = t[1] + t[0] | 0, t[2] = t[2] + t[0] | 0, t[3] = t[3] + t[0] | 0, t[0] = T(t[0]), t[1] = T(t[1]), t[2] = T(t[2]), t[3] = T(t[3]), t[0] = t[0] + t[1] | 0, t[0] = t[0] + t[2] | 0, t[0] = t[0] + t[3] | 0, t[1] = t[1] + t[0] | 0, t[2] = t[2] + t[0] | 0, t[3] = t[3] + t[0] | 0;
|
|
3360
|
+
}(a, r);
|
|
3361
|
+
var i = new Uint8Array(r.buffer);
|
|
3362
|
+
return Array.from(i).map(function(o) {
|
|
3363
|
+
return o.toString(16).padStart(2, "0");
|
|
3364
3364
|
}).join("");
|
|
3365
3365
|
}
|
|
3366
|
-
function H(
|
|
3367
|
-
for (var e = 0, n = 0; n <
|
|
3366
|
+
function H(a) {
|
|
3367
|
+
for (var e = 0, n = 0; n < a.length; ++n) e += Math.abs(a[n]);
|
|
3368
3368
|
return e;
|
|
3369
3369
|
}
|
|
3370
|
-
function L(
|
|
3371
|
-
for (var
|
|
3372
|
-
for (var
|
|
3373
|
-
|
|
3370
|
+
function L(a, e, n) {
|
|
3371
|
+
for (var r = [], i = 0; i < a[0].data.length; i++) {
|
|
3372
|
+
for (var o = [], t = 0; t < a.length; t++) o.push(a[t].data[i]);
|
|
3373
|
+
r.push(Q(o));
|
|
3374
3374
|
}
|
|
3375
|
-
var u = new Uint8ClampedArray(
|
|
3375
|
+
var u = new Uint8ClampedArray(r);
|
|
3376
3376
|
return new ImageData(u, e, n);
|
|
3377
3377
|
}
|
|
3378
|
-
function Q(
|
|
3379
|
-
if (
|
|
3380
|
-
for (var e = {}, n = 0,
|
|
3381
|
-
e[
|
|
3382
|
-
var
|
|
3383
|
-
for (var
|
|
3384
|
-
return
|
|
3378
|
+
function Q(a) {
|
|
3379
|
+
if (a.length === 0) return 0;
|
|
3380
|
+
for (var e = {}, n = 0, r = a; n < r.length; n++)
|
|
3381
|
+
e[o = r[n]] = (e[o] || 0) + 1;
|
|
3382
|
+
var i = a[0];
|
|
3383
|
+
for (var o in e) e[o] > e[i] && (i = parseInt(o, 10));
|
|
3384
|
+
return i;
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3386
|
+
function C() {
|
|
3387
3387
|
if (typeof navigator > "u") return { name: "unknown", version: "unknown" };
|
|
3388
|
-
for (var
|
|
3389
|
-
var
|
|
3390
|
-
if (
|
|
3388
|
+
for (var a = navigator.userAgent, e = { Edg: "Edge", OPR: "Opera" }, n = 0, r = [/(?<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+)?)/]; n < r.length; n++) {
|
|
3389
|
+
var i = r[n], o = a.match(i);
|
|
3390
|
+
if (o && o.groups) return { name: e[o.groups.name] || o.groups.name, version: o.groups.version };
|
|
3391
3391
|
}
|
|
3392
3392
|
return { name: "unknown", version: "unknown" };
|
|
3393
3393
|
}
|
|
3394
3394
|
v("audio", function() {
|
|
3395
3395
|
return w(this, void 0, void 0, function() {
|
|
3396
|
-
return y(this, function(
|
|
3396
|
+
return y(this, function(a) {
|
|
3397
3397
|
return [2, new Promise(function(e, n) {
|
|
3398
3398
|
try {
|
|
3399
|
-
var
|
|
3400
|
-
|
|
3401
|
-
var t, u =
|
|
3402
|
-
u.threshold.value = -50, u.knee.value = 40, u.ratio.value = 12, u.attack.value = 0, u.release.value = 0.2,
|
|
3403
|
-
t =
|
|
3404
|
-
},
|
|
3405
|
-
} catch (
|
|
3406
|
-
console.error("Error creating audio fingerprint:",
|
|
3399
|
+
var r = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), i = r.createBufferSource(), o = r.createOscillator();
|
|
3400
|
+
o.frequency.value = 1e3;
|
|
3401
|
+
var t, u = r.createDynamicsCompressor();
|
|
3402
|
+
u.threshold.value = -50, u.knee.value = 40, u.ratio.value = 12, u.attack.value = 0, u.release.value = 0.2, o.connect(u), u.connect(r.destination), o.start(), r.oncomplete = function(h) {
|
|
3403
|
+
t = h.renderedBuffer.getChannelData(0), e({ sampleHash: H(t), oscillator: o.type, maxChannels: r.destination.maxChannelCount, channelCountMode: i.channelCountMode });
|
|
3404
|
+
}, r.startRendering();
|
|
3405
|
+
} catch (h) {
|
|
3406
|
+
console.error("Error creating audio fingerprint:", h), n(h);
|
|
3407
3407
|
}
|
|
3408
3408
|
})];
|
|
3409
3409
|
});
|
|
3410
3410
|
});
|
|
3411
3411
|
});
|
|
3412
|
-
var
|
|
3413
|
-
|
|
3414
|
-
return document.createElement("canvas").getContext("2d"), new Promise(function(
|
|
3415
|
-
var e = Array.from({ length:
|
|
3412
|
+
var K = C().name !== "SamsungBrowser" ? 1 : 3, P = 280, k = 20;
|
|
3413
|
+
C().name != "Firefox" && v("canvas", function() {
|
|
3414
|
+
return document.createElement("canvas").getContext("2d"), new Promise(function(a) {
|
|
3415
|
+
var e = Array.from({ length: K }, function() {
|
|
3416
3416
|
return function() {
|
|
3417
|
-
var n = document.createElement("canvas"),
|
|
3418
|
-
if (!
|
|
3419
|
-
n.width =
|
|
3420
|
-
var
|
|
3421
|
-
|
|
3422
|
-
var
|
|
3423
|
-
|
|
3424
|
-
var t =
|
|
3417
|
+
var n = document.createElement("canvas"), r = n.getContext("2d");
|
|
3418
|
+
if (!r) return new ImageData(1, 1);
|
|
3419
|
+
n.width = P, n.height = k;
|
|
3420
|
+
var i = r.createLinearGradient(0, 0, n.width, n.height);
|
|
3421
|
+
i.addColorStop(0, "red"), i.addColorStop(0.16666666666666666, "orange"), i.addColorStop(0.3333333333333333, "yellow"), i.addColorStop(0.5, "green"), i.addColorStop(0.6666666666666666, "blue"), i.addColorStop(0.8333333333333334, "indigo"), i.addColorStop(1, "violet"), r.fillStyle = i, r.fillRect(0, 0, n.width, n.height);
|
|
3422
|
+
var o = "Random Text WMwmil10Oo";
|
|
3423
|
+
r.font = "23.123px Arial", r.fillStyle = "black", r.fillText(o, -5, 15), r.fillStyle = "rgba(0, 0, 255, 0.5)", r.fillText(o, -3.3, 17.7), r.beginPath(), r.moveTo(0, 0), r.lineTo(2 * n.width / 7, n.height), r.strokeStyle = "white", r.lineWidth = 2, r.stroke();
|
|
3424
|
+
var t = r.getImageData(0, 0, n.width, n.height);
|
|
3425
3425
|
return t;
|
|
3426
3426
|
}();
|
|
3427
3427
|
});
|
|
3428
|
-
|
|
3428
|
+
a({ commonImageDataHash: I(L(e, P, k).data.toString()).toString() });
|
|
3429
3429
|
});
|
|
3430
3430
|
});
|
|
3431
|
-
var
|
|
3432
|
-
function
|
|
3433
|
-
if (!
|
|
3434
|
-
return
|
|
3431
|
+
var A, X = ["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"], J = ["monospace", "sans-serif", "serif"];
|
|
3432
|
+
function F(a, e) {
|
|
3433
|
+
if (!a) throw new Error("Canvas context not supported");
|
|
3434
|
+
return a.font = "72px ".concat(e), a.measureText("WwMmLli0Oo").width;
|
|
3435
3435
|
}
|
|
3436
3436
|
function Y() {
|
|
3437
|
-
var
|
|
3437
|
+
var a, e = document.createElement("canvas"), n = (a = e.getContext("webgl")) !== null && a !== void 0 ? a : e.getContext("experimental-webgl");
|
|
3438
3438
|
if (n && "getParameter" in n) try {
|
|
3439
|
-
var
|
|
3440
|
-
if (!
|
|
3439
|
+
var r = (n.getParameter(n.VENDOR) || "").toString(), i = (n.getParameter(n.RENDERER) || "").toString(), o = { vendor: r, renderer: i, version: (n.getParameter(n.VERSION) || "").toString(), shadingLanguageVersion: (n.getParameter(n.SHADING_LANGUAGE_VERSION) || "").toString() };
|
|
3440
|
+
if (!i.length || !r.length) {
|
|
3441
3441
|
var t = n.getExtension("WEBGL_debug_renderer_info");
|
|
3442
3442
|
if (t) {
|
|
3443
|
-
var u = (n.getParameter(t.UNMASKED_VENDOR_WEBGL) || "").toString(),
|
|
3444
|
-
u && (
|
|
3443
|
+
var u = (n.getParameter(t.UNMASKED_VENDOR_WEBGL) || "").toString(), h = (n.getParameter(t.UNMASKED_RENDERER_WEBGL) || "").toString();
|
|
3444
|
+
u && (o.vendorUnmasked = u), h && (o.rendererUnmasked = h);
|
|
3445
3445
|
}
|
|
3446
3446
|
}
|
|
3447
|
-
return
|
|
3447
|
+
return o;
|
|
3448
3448
|
} catch {
|
|
3449
3449
|
}
|
|
3450
3450
|
return "undefined";
|
|
3451
3451
|
}
|
|
3452
|
-
function
|
|
3453
|
-
var
|
|
3454
|
-
return
|
|
3452
|
+
function Z() {
|
|
3453
|
+
var a = new Float32Array(1), e = new Uint8Array(a.buffer);
|
|
3454
|
+
return a[0] = 1 / 0, a[0] = a[0] - a[0], e[3];
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function ee(a, e) {
|
|
3457
3457
|
var n = {};
|
|
3458
|
-
return e.forEach(function(
|
|
3459
|
-
var
|
|
3460
|
-
if (
|
|
3458
|
+
return e.forEach(function(r) {
|
|
3459
|
+
var i = function(o) {
|
|
3460
|
+
if (o.length === 0) return null;
|
|
3461
3461
|
var t = {};
|
|
3462
|
-
|
|
3462
|
+
o.forEach(function(c) {
|
|
3463
3463
|
var s = String(c);
|
|
3464
3464
|
t[s] = (t[s] || 0) + 1;
|
|
3465
3465
|
});
|
|
3466
|
-
var u =
|
|
3466
|
+
var u = o[0], h = 1;
|
|
3467
3467
|
return Object.keys(t).forEach(function(c) {
|
|
3468
|
-
t[c] >
|
|
3468
|
+
t[c] > h && (u = c, h = t[c]);
|
|
3469
3469
|
}), u;
|
|
3470
|
-
}(
|
|
3471
|
-
return
|
|
3472
|
-
}).filter(function(
|
|
3473
|
-
return
|
|
3470
|
+
}(a.map(function(o) {
|
|
3471
|
+
return r in o ? o[r] : void 0;
|
|
3472
|
+
}).filter(function(o) {
|
|
3473
|
+
return o !== void 0;
|
|
3474
3474
|
}));
|
|
3475
|
-
|
|
3475
|
+
i && (n[r] = i);
|
|
3476
3476
|
}), n;
|
|
3477
3477
|
}
|
|
3478
|
-
function
|
|
3479
|
-
var
|
|
3478
|
+
function te() {
|
|
3479
|
+
var a = [], e = { "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"] };
|
|
3480
3480
|
return Object.keys(e).forEach(function(n) {
|
|
3481
|
-
e[n].forEach(function(
|
|
3482
|
-
matchMedia("(".concat(n, ": ").concat(
|
|
3481
|
+
e[n].forEach(function(r) {
|
|
3482
|
+
matchMedia("(".concat(n, ": ").concat(r, ")")).matches && a.push("".concat(n, ": ").concat(r));
|
|
3483
3483
|
});
|
|
3484
|
-
}),
|
|
3484
|
+
}), a;
|
|
3485
3485
|
}
|
|
3486
|
-
function
|
|
3486
|
+
function ne() {
|
|
3487
3487
|
if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
|
|
3488
|
-
for (var
|
|
3488
|
+
for (var a = window.ApplePaySession.supportsVersion, e = 15; e > 0; e--) if (a(e)) return e;
|
|
3489
3489
|
} catch {
|
|
3490
3490
|
return 0;
|
|
3491
3491
|
}
|
|
3492
3492
|
return 0;
|
|
3493
3493
|
}
|
|
3494
|
-
|
|
3495
|
-
var
|
|
3494
|
+
C().name != "Firefox" && v("fonts", function() {
|
|
3495
|
+
var a = this;
|
|
3496
3496
|
return new Promise(function(e, n) {
|
|
3497
3497
|
try {
|
|
3498
|
-
(function(
|
|
3499
|
-
var
|
|
3498
|
+
(function(r) {
|
|
3499
|
+
var i;
|
|
3500
3500
|
w(this, void 0, void 0, function() {
|
|
3501
|
-
var
|
|
3502
|
-
return y(this, function(
|
|
3503
|
-
switch (
|
|
3501
|
+
var o, t, u;
|
|
3502
|
+
return y(this, function(h) {
|
|
3503
|
+
switch (h.label) {
|
|
3504
3504
|
case 0:
|
|
3505
|
-
return document.body ? [3, 2] : [4, (c = 50, new Promise(function(
|
|
3506
|
-
return setTimeout(
|
|
3505
|
+
return document.body ? [3, 2] : [4, (c = 50, new Promise(function(p) {
|
|
3506
|
+
return setTimeout(p, c, s);
|
|
3507
3507
|
}))];
|
|
3508
3508
|
case 1:
|
|
3509
|
-
return
|
|
3509
|
+
return h.sent(), [3, 0];
|
|
3510
3510
|
case 2:
|
|
3511
|
-
if ((
|
|
3512
|
-
return
|
|
3513
|
-
document.body.removeChild(
|
|
3511
|
+
if ((o = document.createElement("iframe")).setAttribute("frameBorder", "0"), (t = o.style).setProperty("position", "fixed"), t.setProperty("display", "block", "important"), t.setProperty("visibility", "visible"), t.setProperty("border", "0"), t.setProperty("opacity", "0"), o.src = "about:blank", document.body.appendChild(o), !(u = o.contentDocument || ((i = o.contentWindow) === null || i === void 0 ? void 0 : i.document))) throw new Error("Iframe document is not accessible");
|
|
3512
|
+
return r({ iframe: u }), setTimeout(function() {
|
|
3513
|
+
document.body.removeChild(o);
|
|
3514
3514
|
}, 0), [2];
|
|
3515
3515
|
}
|
|
3516
3516
|
var c, s;
|
|
3517
3517
|
});
|
|
3518
3518
|
});
|
|
3519
|
-
})(function(
|
|
3520
|
-
var
|
|
3521
|
-
return w(
|
|
3522
|
-
var
|
|
3519
|
+
})(function(r) {
|
|
3520
|
+
var i = r.iframe;
|
|
3521
|
+
return w(a, void 0, void 0, function() {
|
|
3522
|
+
var o, t, u, h;
|
|
3523
3523
|
return y(this, function(c) {
|
|
3524
|
-
return
|
|
3525
|
-
return
|
|
3526
|
-
}),
|
|
3527
|
-
var
|
|
3528
|
-
u.includes(
|
|
3529
|
-
}), e(
|
|
3524
|
+
return o = i.createElement("canvas"), t = o.getContext("2d"), u = J.map(function(s) {
|
|
3525
|
+
return F(t, s);
|
|
3526
|
+
}), h = {}, X.forEach(function(s) {
|
|
3527
|
+
var p = F(t, s);
|
|
3528
|
+
u.includes(p) || (h[s] = p);
|
|
3529
|
+
}), e(h), [2];
|
|
3530
3530
|
});
|
|
3531
3531
|
});
|
|
3532
3532
|
});
|
|
@@ -3535,76 +3535,76 @@ E().name != "Firefox" && v("fonts", function() {
|
|
|
3535
3535
|
}
|
|
3536
3536
|
});
|
|
3537
3537
|
}), v("hardware", function() {
|
|
3538
|
-
return new Promise(function(
|
|
3539
|
-
var n = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0,
|
|
3540
|
-
|
|
3538
|
+
return new Promise(function(a, e) {
|
|
3539
|
+
var n = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, r = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
3540
|
+
a({ videocard: Y(), architecture: Z(), deviceMemory: n.toString() || "undefined", jsHeapSizeLimit: r.jsHeapSizeLimit || 0 });
|
|
3541
3541
|
});
|
|
3542
3542
|
}), v("locales", function() {
|
|
3543
|
-
return new Promise(function(
|
|
3544
|
-
|
|
3543
|
+
return new Promise(function(a) {
|
|
3544
|
+
a({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
|
|
3545
3545
|
});
|
|
3546
3546
|
}), v("permissions", function() {
|
|
3547
3547
|
return w(this, void 0, void 0, function() {
|
|
3548
|
-
var
|
|
3548
|
+
var a;
|
|
3549
3549
|
return y(this, function(e) {
|
|
3550
|
-
return
|
|
3550
|
+
return A = (S == null ? void 0 : S.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], a = Array.from({ length: (S == null ? void 0 : S.retries) || 3 }, function() {
|
|
3551
3551
|
return function() {
|
|
3552
3552
|
return w(this, void 0, void 0, function() {
|
|
3553
|
-
var n,
|
|
3553
|
+
var n, r, i, o, t;
|
|
3554
3554
|
return y(this, function(u) {
|
|
3555
3555
|
switch (u.label) {
|
|
3556
3556
|
case 0:
|
|
3557
|
-
n = {},
|
|
3557
|
+
n = {}, r = 0, i = A, u.label = 1;
|
|
3558
3558
|
case 1:
|
|
3559
|
-
if (!(
|
|
3560
|
-
|
|
3559
|
+
if (!(r < i.length)) return [3, 6];
|
|
3560
|
+
o = i[r], u.label = 2;
|
|
3561
3561
|
case 2:
|
|
3562
|
-
return u.trys.push([2, 4, , 5]), [4, navigator.permissions.query({ name:
|
|
3562
|
+
return u.trys.push([2, 4, , 5]), [4, navigator.permissions.query({ name: o })];
|
|
3563
3563
|
case 3:
|
|
3564
|
-
return t = u.sent(), n[
|
|
3564
|
+
return t = u.sent(), n[o] = t.state.toString(), [3, 5];
|
|
3565
3565
|
case 4:
|
|
3566
3566
|
return u.sent(), [3, 5];
|
|
3567
3567
|
case 5:
|
|
3568
|
-
return
|
|
3568
|
+
return r++, [3, 1];
|
|
3569
3569
|
case 6:
|
|
3570
3570
|
return [2, n];
|
|
3571
3571
|
}
|
|
3572
3572
|
});
|
|
3573
3573
|
});
|
|
3574
3574
|
}();
|
|
3575
|
-
}), [2, Promise.all(
|
|
3576
|
-
return
|
|
3575
|
+
}), [2, Promise.all(a).then(function(n) {
|
|
3576
|
+
return ee(n, A);
|
|
3577
3577
|
})];
|
|
3578
3578
|
});
|
|
3579
3579
|
});
|
|
3580
3580
|
}), v("plugins", function() {
|
|
3581
|
-
var
|
|
3581
|
+
var a = [];
|
|
3582
3582
|
if (navigator.plugins) for (var e = 0; e < navigator.plugins.length; e++) {
|
|
3583
3583
|
var n = navigator.plugins[e];
|
|
3584
|
-
|
|
3584
|
+
a.push([n.name, n.filename, n.description].join("|"));
|
|
3585
3585
|
}
|
|
3586
|
-
return new Promise(function(
|
|
3587
|
-
|
|
3586
|
+
return new Promise(function(r) {
|
|
3587
|
+
r({ plugins: a });
|
|
3588
3588
|
});
|
|
3589
3589
|
}), v("screen", function() {
|
|
3590
|
-
return new Promise(function(
|
|
3591
|
-
|
|
3590
|
+
return new Promise(function(a) {
|
|
3591
|
+
a({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: te() });
|
|
3592
3592
|
});
|
|
3593
3593
|
}), v("system", function() {
|
|
3594
|
-
return new Promise(function(
|
|
3595
|
-
var e =
|
|
3596
|
-
|
|
3594
|
+
return new Promise(function(a) {
|
|
3595
|
+
var e = C();
|
|
3596
|
+
a({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: e.name, version: e.version }, applePayVersion: ne() });
|
|
3597
3597
|
});
|
|
3598
3598
|
});
|
|
3599
|
-
var
|
|
3599
|
+
var f, re = C().name !== "SamsungBrowser" ? 1 : 3, d = null;
|
|
3600
3600
|
v("webgl", function() {
|
|
3601
3601
|
return w(this, void 0, void 0, function() {
|
|
3602
|
-
var
|
|
3602
|
+
var a;
|
|
3603
3603
|
return y(this, function(e) {
|
|
3604
|
-
typeof document < "u" && ((
|
|
3604
|
+
typeof document < "u" && ((f = document.createElement("canvas")).width = 200, f.height = 100, d = f.getContext("webgl"));
|
|
3605
3605
|
try {
|
|
3606
3606
|
if (!d) throw new Error("WebGL not supported");
|
|
3607
|
-
return
|
|
3607
|
+
return a = Array.from({ length: re }, function() {
|
|
3608
3608
|
return function() {
|
|
3609
3609
|
try {
|
|
3610
3610
|
if (!d) throw new Error("WebGL not supported");
|
|
@@ -3613,36 +3613,36 @@ v("webgl", function() {
|
|
|
3613
3613
|
void main() {
|
|
3614
3614
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
3615
3615
|
}
|
|
3616
|
-
`,
|
|
3616
|
+
`, r = `
|
|
3617
3617
|
precision mediump float;
|
|
3618
3618
|
void main() {
|
|
3619
3619
|
gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color
|
|
3620
3620
|
}
|
|
3621
|
-
`,
|
|
3622
|
-
if (!
|
|
3623
|
-
if (d.shaderSource(
|
|
3624
|
-
if (d.compileShader(
|
|
3621
|
+
`, i = d.createShader(d.VERTEX_SHADER), o = d.createShader(d.FRAGMENT_SHADER);
|
|
3622
|
+
if (!i || !o) throw new Error("Failed to create shaders");
|
|
3623
|
+
if (d.shaderSource(i, n), d.shaderSource(o, r), d.compileShader(i), !d.getShaderParameter(i, d.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + d.getShaderInfoLog(i));
|
|
3624
|
+
if (d.compileShader(o), !d.getShaderParameter(o, d.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + d.getShaderInfoLog(o));
|
|
3625
3625
|
var t = d.createProgram();
|
|
3626
3626
|
if (!t) throw new Error("Failed to create shader program");
|
|
3627
|
-
if (d.attachShader(t,
|
|
3627
|
+
if (d.attachShader(t, i), d.attachShader(t, o), d.linkProgram(t), !d.getProgramParameter(t, d.LINK_STATUS)) throw new Error("Shader program linking failed: " + d.getProgramInfoLog(t));
|
|
3628
3628
|
d.useProgram(t);
|
|
3629
|
-
for (var u = 137,
|
|
3630
|
-
var
|
|
3631
|
-
|
|
3629
|
+
for (var u = 137, h = new Float32Array(4 * u), c = 2 * Math.PI / u, s = 0; s < u; s++) {
|
|
3630
|
+
var p = s * c;
|
|
3631
|
+
h[4 * s] = 0, h[4 * s + 1] = 0, h[4 * s + 2] = Math.cos(p) * (f.width / 2), h[4 * s + 3] = Math.sin(p) * (f.height / 2);
|
|
3632
3632
|
}
|
|
3633
|
-
var
|
|
3634
|
-
d.bindBuffer(d.ARRAY_BUFFER,
|
|
3633
|
+
var q = d.createBuffer();
|
|
3634
|
+
d.bindBuffer(d.ARRAY_BUFFER, q), d.bufferData(d.ARRAY_BUFFER, h, d.STATIC_DRAW);
|
|
3635
3635
|
var R = d.getAttribLocation(t, "position");
|
|
3636
|
-
d.enableVertexAttribArray(R), d.vertexAttribPointer(R, 2, d.FLOAT, !1, 0, 0), d.viewport(0, 0,
|
|
3637
|
-
var x = new Uint8ClampedArray(
|
|
3638
|
-
return d.readPixels(0, 0,
|
|
3636
|
+
d.enableVertexAttribArray(R), d.vertexAttribPointer(R, 2, d.FLOAT, !1, 0, 0), d.viewport(0, 0, f.width, f.height), d.clearColor(0, 0, 0, 1), d.clear(d.COLOR_BUFFER_BIT), d.drawArrays(d.LINES, 0, 2 * u);
|
|
3637
|
+
var x = new Uint8ClampedArray(f.width * f.height * 4);
|
|
3638
|
+
return d.readPixels(0, 0, f.width, f.height, d.RGBA, d.UNSIGNED_BYTE, x), new ImageData(x, f.width, f.height);
|
|
3639
3639
|
} catch {
|
|
3640
3640
|
return new ImageData(1, 1);
|
|
3641
3641
|
} finally {
|
|
3642
3642
|
d && (d.bindBuffer(d.ARRAY_BUFFER, null), d.useProgram(null), d.viewport(0, 0, d.drawingBufferWidth, d.drawingBufferHeight), d.clearColor(0, 0, 0, 0));
|
|
3643
3643
|
}
|
|
3644
3644
|
}();
|
|
3645
|
-
}), [2, { commonImageHash:
|
|
3645
|
+
}), [2, { commonImageHash: I(L(a, f.width, f.height).data.toString()).toString() }];
|
|
3646
3646
|
} catch {
|
|
3647
3647
|
return [2, { webgl: "unsupported" }];
|
|
3648
3648
|
}
|
|
@@ -3650,15 +3650,15 @@ v("webgl", function() {
|
|
|
3650
3650
|
});
|
|
3651
3651
|
});
|
|
3652
3652
|
});
|
|
3653
|
-
var
|
|
3654
|
-
for (var
|
|
3655
|
-
|
|
3656
|
-
return
|
|
3653
|
+
var b = function(a, e, n, r) {
|
|
3654
|
+
for (var i = (n - e) / r, o = 0, t = 0; t < r; t++)
|
|
3655
|
+
o += a(e + (t + 0.5) * i);
|
|
3656
|
+
return o * i;
|
|
3657
3657
|
};
|
|
3658
3658
|
v("math", function() {
|
|
3659
3659
|
return w(void 0, void 0, void 0, function() {
|
|
3660
|
-
return y(this, function(
|
|
3661
|
-
return [2, { acos: Math.acos(0.5), asin:
|
|
3660
|
+
return y(this, function(a) {
|
|
3661
|
+
return [2, { acos: Math.acos(0.5), asin: b(Math.asin, -1, 1, 97), atan: b(Math.atan, -1, 1, 97), cos: b(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: b(Math.sin, -Math.PI, Math.PI, 97), sinh: b(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: b(Math.tan, 0, 2 * Math.PI, 97), tanh: b(Math.tanh, -9 / 7, 7 / 9, 97) }];
|
|
3662
3662
|
});
|
|
3663
3663
|
});
|
|
3664
3664
|
});
|
|
@@ -3670,10 +3670,12 @@ const initialSearchcraftStateValues = {
|
|
|
3670
3670
|
hotkeyModifier: 'meta',
|
|
3671
3671
|
logger: undefined,
|
|
3672
3672
|
facetPathsForIndexFields: {},
|
|
3673
|
+
initialQuery: '',
|
|
3674
|
+
initialSearchClientResponseItems: [],
|
|
3673
3675
|
isPopoverVisible: false,
|
|
3674
3676
|
isSearchInProgress: false,
|
|
3675
|
-
searchTerm: '',
|
|
3676
3677
|
rangeValueForIndexFields: {},
|
|
3678
|
+
searchTerm: '',
|
|
3677
3679
|
searchMode: 'fuzzy',
|
|
3678
3680
|
searchClientResponseItems: [],
|
|
3679
3681
|
searchResponseTimeTaken: undefined,
|
|
@@ -3681,38 +3683,49 @@ const initialSearchcraftStateValues = {
|
|
|
3681
3683
|
searchResultsCount: 0,
|
|
3682
3684
|
searchResultsPerPage: 20,
|
|
3683
3685
|
searchResultsPage: 1,
|
|
3684
|
-
sortType:
|
|
3686
|
+
sortType: undefined,
|
|
3687
|
+
orderByField: undefined,
|
|
3688
|
+
// Callbacks
|
|
3689
|
+
afterInit: () => { },
|
|
3685
3690
|
};
|
|
3686
|
-
const searchcraftStore = zustand.createStore((
|
|
3691
|
+
const searchcraftStore = zustand.createStore((_set, get) => {
|
|
3687
3692
|
const functions = {
|
|
3688
|
-
|
|
3693
|
+
set: (state) => {
|
|
3694
|
+
_set(state);
|
|
3695
|
+
return get();
|
|
3696
|
+
},
|
|
3697
|
+
addFacetPathsForIndexField: (facetPaths) => functions.set((state) => ({
|
|
3689
3698
|
facetPathsForIndexFields: {
|
|
3690
3699
|
...state.facetPathsForIndexFields,
|
|
3691
|
-
[
|
|
3700
|
+
[facetPaths.fieldName]: facetPaths,
|
|
3692
3701
|
},
|
|
3693
3702
|
})),
|
|
3694
|
-
addRangeValueForIndexField: (
|
|
3703
|
+
addRangeValueForIndexField: (rangeValue) => functions.set((state) => ({
|
|
3695
3704
|
rangeValueForIndexFields: {
|
|
3696
3705
|
...state.rangeValueForIndexFields,
|
|
3697
|
-
[
|
|
3706
|
+
[rangeValue.fieldName]: rangeValue,
|
|
3698
3707
|
},
|
|
3699
3708
|
})),
|
|
3700
|
-
|
|
3709
|
+
getSearchcraftCore: () => {
|
|
3701
3710
|
const { core } = get();
|
|
3702
3711
|
return core;
|
|
3703
3712
|
},
|
|
3704
|
-
|
|
3705
|
-
const core = searchcraftInstance;
|
|
3713
|
+
init: (core, debug = false) => {
|
|
3706
3714
|
const logger = debug
|
|
3707
|
-
? new
|
|
3715
|
+
? new pe({ logLevel: O.DEBUG })
|
|
3708
3716
|
: undefined;
|
|
3709
|
-
set({
|
|
3717
|
+
const state = functions.set({
|
|
3710
3718
|
core,
|
|
3711
3719
|
logger,
|
|
3712
|
-
searchResultsPerPage: core
|
|
3720
|
+
searchResultsPerPage: core?.config.searchResultsPerPage || 20,
|
|
3721
|
+
});
|
|
3722
|
+
core?.subscribe('initialized', () => {
|
|
3723
|
+
if (state.afterInit) {
|
|
3724
|
+
state.afterInit(state);
|
|
3725
|
+
}
|
|
3713
3726
|
});
|
|
3714
3727
|
},
|
|
3715
|
-
removeFacetPathsForIndexField: (fieldName) => set((state) => {
|
|
3728
|
+
removeFacetPathsForIndexField: (fieldName) => functions.set((state) => {
|
|
3716
3729
|
const currentPaths = state.facetPathsForIndexFields;
|
|
3717
3730
|
delete currentPaths[fieldName];
|
|
3718
3731
|
return {
|
|
@@ -3721,7 +3734,7 @@ const searchcraftStore = zustand.createStore((set, get) => {
|
|
|
3721
3734
|
},
|
|
3722
3735
|
};
|
|
3723
3736
|
}),
|
|
3724
|
-
removeRangeValueForIndexField: (fieldName) => set((state) => {
|
|
3737
|
+
removeRangeValueForIndexField: (fieldName) => functions.set((state) => {
|
|
3725
3738
|
const currentValues = state.rangeValueForIndexFields;
|
|
3726
3739
|
delete currentValues[fieldName];
|
|
3727
3740
|
return {
|
|
@@ -3731,19 +3744,19 @@ const searchcraftStore = zustand.createStore((set, get) => {
|
|
|
3731
3744
|
};
|
|
3732
3745
|
}),
|
|
3733
3746
|
resetFacetPaths: () => {
|
|
3734
|
-
set({
|
|
3747
|
+
functions.set({
|
|
3735
3748
|
facetPathsForIndexFields: {},
|
|
3736
3749
|
});
|
|
3737
3750
|
},
|
|
3738
3751
|
search: async () => {
|
|
3739
3752
|
const state = get();
|
|
3740
|
-
state.logger?.log(
|
|
3753
|
+
state.logger?.log(O.INFO, `Starting search with search term: "${state.searchTerm}"`);
|
|
3741
3754
|
if (!state.core) {
|
|
3742
3755
|
throw new Error('Searchcraft instance is not initialized.');
|
|
3743
3756
|
}
|
|
3744
3757
|
if (!state.searchTerm.trim()) {
|
|
3745
|
-
state.logger?.log(
|
|
3746
|
-
set({
|
|
3758
|
+
state.logger?.log(O.INFO, 'No search request was made: search term was empty.');
|
|
3759
|
+
functions.set({
|
|
3747
3760
|
searchClientResponseItems: [],
|
|
3748
3761
|
searchResultsCount: 0,
|
|
3749
3762
|
searchResultsPage: 1,
|
|
@@ -3751,50 +3764,67 @@ const searchcraftStore = zustand.createStore((set, get) => {
|
|
|
3751
3764
|
});
|
|
3752
3765
|
return;
|
|
3753
3766
|
}
|
|
3754
|
-
set({ isSearchInProgress: true });
|
|
3755
|
-
|
|
3756
|
-
const facetsFromResponse = response.data.facets;
|
|
3757
|
-
set((state) => {
|
|
3758
|
-
return {
|
|
3759
|
-
isSearchInProgress: false,
|
|
3760
|
-
searchClientResponseItems: items,
|
|
3761
|
-
searchResponseTimeTaken: response.data.time_taken || 0,
|
|
3762
|
-
searchResultsPage:
|
|
3763
|
-
// reset to first page when response count changes
|
|
3764
|
-
response.data.count === state.searchResultsCount
|
|
3765
|
-
? state.searchResultsPage
|
|
3766
|
-
: 1,
|
|
3767
|
-
searchResultsCount: response.data.count || 0,
|
|
3768
|
-
};
|
|
3769
|
-
});
|
|
3770
|
-
if (facetsFromResponse) {
|
|
3771
|
-
set({ searchResponseFacetPrime: facetsFromResponse });
|
|
3772
|
-
}
|
|
3773
|
-
state.logger?.log(D.DEBUG, `Search results: ${JSON.stringify(items)}`);
|
|
3774
|
-
state.logger?.log(D.DEBUG, `Facets from response: ${JSON.stringify(facetsFromResponse)}`);
|
|
3775
|
-
};
|
|
3776
|
-
const handleAdResponse = (adClientResponseItems) => {
|
|
3777
|
-
set({ adClientResponseItems });
|
|
3778
|
-
};
|
|
3779
|
-
state.core.getItems({
|
|
3767
|
+
functions.set({ isSearchInProgress: true });
|
|
3768
|
+
state.core.getResponseItems({
|
|
3780
3769
|
searchTerm: state.searchTerm,
|
|
3781
3770
|
mode: state.searchMode,
|
|
3782
3771
|
sort: state.sortType,
|
|
3772
|
+
order_by: state.orderByField,
|
|
3783
3773
|
facetPathsForIndexFields: state.facetPathsForIndexFields,
|
|
3784
3774
|
rangeValueForIndexFields: state.rangeValueForIndexFields,
|
|
3785
3775
|
offset: state.searchResultsPerPage
|
|
3786
3776
|
? state.searchResultsPerPage * (state.searchResultsPage - 1)
|
|
3787
3777
|
: 0,
|
|
3788
3778
|
limit: state.searchResultsPerPage,
|
|
3789
|
-
},
|
|
3779
|
+
}, functions.setSearchClientResponseItemsFromResponse, functions.setAdClientResponseItems);
|
|
3790
3780
|
},
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3781
|
+
setAdClientResponseItems: (items) => functions.set({ adClientResponseItems: items }),
|
|
3782
|
+
setSearchClientResponseItemsFromResponse: (response, items) => {
|
|
3783
|
+
const { facets, count = 0, time_taken = 0 } = response.data;
|
|
3784
|
+
const state = functions.set((state) => {
|
|
3785
|
+
return {
|
|
3786
|
+
isSearchInProgress: false,
|
|
3787
|
+
searchClientResponseItems: items,
|
|
3788
|
+
searchResponseTimeTaken: time_taken,
|
|
3789
|
+
searchResultsPage:
|
|
3790
|
+
// Reset to first page when response count changes
|
|
3791
|
+
count === state.searchResultsCount ? state.searchResultsPage : 1,
|
|
3792
|
+
searchResultsCount: count,
|
|
3793
|
+
...(facets && { searchResponseFacetPrime: facets }),
|
|
3794
|
+
};
|
|
3794
3795
|
});
|
|
3796
|
+
state.logger?.log(O.DEBUG, `Search results: ${JSON.stringify(items)}`);
|
|
3797
|
+
state.logger?.log(O.DEBUG, `Facets from response: ${JSON.stringify(facets)}`);
|
|
3798
|
+
},
|
|
3799
|
+
setInitialSearchClientResponseItemsFromResponse: (response, items) => {
|
|
3800
|
+
const state = get();
|
|
3801
|
+
const { count = 0, time_taken = 0 } = response.data;
|
|
3802
|
+
functions.set((state) => {
|
|
3803
|
+
return {
|
|
3804
|
+
isSearchInProgress: false,
|
|
3805
|
+
initialSearchClientResponseItems: items,
|
|
3806
|
+
searchResponseTimeTaken: time_taken,
|
|
3807
|
+
searchResultsPage:
|
|
3808
|
+
// Reset to first page when response count changes
|
|
3809
|
+
count === state.searchResultsCount ? state.searchResultsPage : 1,
|
|
3810
|
+
searchResultsCount: count,
|
|
3811
|
+
};
|
|
3812
|
+
});
|
|
3813
|
+
state.logger?.log(O.DEBUG, `Search results: ${JSON.stringify(items)}`);
|
|
3814
|
+
},
|
|
3815
|
+
setInitialQuery: async (query) => {
|
|
3816
|
+
const state = functions.set({ initialQuery: query });
|
|
3817
|
+
state.logger?.log(O.INFO, `Starting search with query: "${state.initialQuery}"`);
|
|
3818
|
+
if (!state.core) {
|
|
3819
|
+
throw new Error('Searchcraft instance is not initialized.');
|
|
3820
|
+
}
|
|
3821
|
+
await state.core.getResponseItems(query, functions.setInitialSearchClientResponseItemsFromResponse, functions.setAdClientResponseItems);
|
|
3795
3822
|
},
|
|
3796
|
-
|
|
3797
|
-
|
|
3823
|
+
setPopoverVisibility: (isVisible) => functions.set({
|
|
3824
|
+
isPopoverVisible: isVisible,
|
|
3825
|
+
}),
|
|
3826
|
+
setSearchMode: (mode) => functions.set({ searchMode: mode }),
|
|
3827
|
+
setSortOrder: ({ orderByField, sortType }) => functions.set({ sortType, orderByField }),
|
|
3798
3828
|
setSearchTerm: (searchTerm) => {
|
|
3799
3829
|
const { core } = get();
|
|
3800
3830
|
if (searchTerm.length === 0) {
|
|
@@ -3803,27 +3833,29 @@ const searchcraftStore = zustand.createStore((set, get) => {
|
|
|
3803
3833
|
/**
|
|
3804
3834
|
* When a new searchTerm is set, also reset the sort type, search mode, and facet paths.
|
|
3805
3835
|
*/
|
|
3806
|
-
set({
|
|
3836
|
+
functions.set({
|
|
3807
3837
|
searchTerm,
|
|
3808
3838
|
facetPathsForIndexFields: {},
|
|
3809
3839
|
...(searchTerm.trim().length === 0 && {
|
|
3810
3840
|
searchMode: 'fuzzy',
|
|
3811
|
-
sortType:
|
|
3841
|
+
sortType: null,
|
|
3842
|
+
orderByField: null,
|
|
3812
3843
|
}),
|
|
3813
3844
|
});
|
|
3814
3845
|
},
|
|
3815
|
-
setSearchClientResponseItems: (items) => set({ searchClientResponseItems: items }),
|
|
3846
|
+
setSearchClientResponseItems: (items) => functions.set({ searchClientResponseItems: items }),
|
|
3847
|
+
setSearchResultsCount: (count) => functions.set({ searchResultsCount: count }),
|
|
3816
3848
|
setSearchResultsPage: async (page) => {
|
|
3817
|
-
set({ searchResultsPage: page });
|
|
3849
|
+
functions.set({ searchResultsPage: page });
|
|
3818
3850
|
await functions.search();
|
|
3819
3851
|
},
|
|
3820
3852
|
setSearchResultsPerPage: async (perPage) => {
|
|
3821
|
-
set({ searchResultsPerPage: perPage });
|
|
3853
|
+
functions.set({ searchResultsPerPage: perPage });
|
|
3822
3854
|
await functions.search();
|
|
3823
3855
|
},
|
|
3824
3856
|
setHotKeyAndHotKeyModifier: (hotkey, hotkeyModifier) => {
|
|
3825
3857
|
const { hotkey: initialHotkey, hotkeyModifier: initialHotkeyModifier } = initialSearchcraftStateValues;
|
|
3826
|
-
set({
|
|
3858
|
+
functions.set({
|
|
3827
3859
|
hotkey: hotkey || initialHotkey,
|
|
3828
3860
|
hotkeyModifier: hotkeyModifier || initialHotkeyModifier,
|
|
3829
3861
|
});
|
|
@@ -3966,7 +3998,6 @@ function mergeFacetRoots(fieldName, currentRoot, incomingRoot) {
|
|
|
3966
3998
|
|
|
3967
3999
|
/**
|
|
3968
4000
|
* Given a document and a SearchResultMapping, return a mapped value from the document.
|
|
3969
|
-
*
|
|
3970
4001
|
* Applies formatting based on the values specified in the `SearchResultFieldName` values.
|
|
3971
4002
|
*
|
|
3972
4003
|
* @param document
|
|
@@ -3981,8 +4012,7 @@ function getDocumentValueFromSearchResultMapping(document, mapping) {
|
|
|
3981
4012
|
if (valueFound) {
|
|
3982
4013
|
switch (fieldNameDetails.dataType) {
|
|
3983
4014
|
case 'date': {
|
|
3984
|
-
|
|
3985
|
-
valueFound = getFormattedTimeFromNow(valueFound);
|
|
4015
|
+
valueFound = formatRelativeDate(valueFound, fieldNameDetails.dateFormatLocale, fieldNameDetails.dateFormatOptions);
|
|
3986
4016
|
break;
|
|
3987
4017
|
}
|
|
3988
4018
|
case 'number': {
|
|
@@ -3997,6 +4027,12 @@ function getDocumentValueFromSearchResultMapping(document, mapping) {
|
|
|
3997
4027
|
.join(mapping.delimiter || ' ');
|
|
3998
4028
|
}
|
|
3999
4029
|
}
|
|
4030
|
+
/**
|
|
4031
|
+
* Convert different units of time to milliseconds.
|
|
4032
|
+
*
|
|
4033
|
+
* @param unit - The unit of time
|
|
4034
|
+
* @returns {number}
|
|
4035
|
+
*/
|
|
4000
4036
|
function getMillis(unit) {
|
|
4001
4037
|
const millisInHour = 60 * 60 * 1000;
|
|
4002
4038
|
const millisInDay = 24 * millisInHour;
|
|
@@ -4015,34 +4051,51 @@ function getMillis(unit) {
|
|
|
4015
4051
|
return 3600000;
|
|
4016
4052
|
}
|
|
4017
4053
|
}
|
|
4054
|
+
/**
|
|
4055
|
+
* Format a number with commas as thousands separators.
|
|
4056
|
+
*
|
|
4057
|
+
* @param number - The number to be formatted.
|
|
4058
|
+
* @returns {string} - The formatted number as a string.
|
|
4059
|
+
*/
|
|
4018
4060
|
function formatNumberWithCommas(number) {
|
|
4019
4061
|
return number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
4020
4062
|
}
|
|
4021
4063
|
/**
|
|
4022
|
-
*
|
|
4023
|
-
*
|
|
4064
|
+
* Format a date or date string. The string is formatted relative to today's date
|
|
4065
|
+
* (e.g. 2 days ago) until the date range is greater than a month.
|
|
4024
4066
|
*
|
|
4025
|
-
* @param
|
|
4026
|
-
* @
|
|
4067
|
+
* @param dateInput - The date to be formatted.
|
|
4068
|
+
* @param locale - The language used for formatting the date.
|
|
4069
|
+
* @param options - The non-default options used for formatting the date.
|
|
4070
|
+
* @returns {string} - The formatted date as a string.
|
|
4027
4071
|
*/
|
|
4028
|
-
function
|
|
4072
|
+
function formatRelativeDate(dateInput, locale = 'en-US', options = {
|
|
4073
|
+
day: 'numeric',
|
|
4074
|
+
month: 'long',
|
|
4075
|
+
year: 'numeric',
|
|
4076
|
+
}) {
|
|
4077
|
+
const date = new Date(dateInput);
|
|
4029
4078
|
const now = new Date();
|
|
4030
|
-
const
|
|
4031
|
-
const
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4079
|
+
const diffMillis = now.getTime() - date.getTime();
|
|
4080
|
+
const oneMonthInMillis = 30 * 24 * 60 * 60 * 1000; // Approx. 1 month in ms
|
|
4081
|
+
if (diffMillis < oneMonthInMillis) {
|
|
4082
|
+
const diffSeconds = Math.trunc(diffMillis / 1000);
|
|
4083
|
+
const diffMinutes = Math.trunc(diffSeconds / 60);
|
|
4084
|
+
const diffHours = Math.trunc(diffMinutes / 60);
|
|
4085
|
+
const diffDays = Math.trunc(diffHours / 24);
|
|
4086
|
+
const relativeTimeFormat = new Intl.RelativeTimeFormat(locale, options);
|
|
4087
|
+
if (diffDays >= 1) {
|
|
4088
|
+
return relativeTimeFormat.format(-diffDays, 'day');
|
|
4089
|
+
}
|
|
4090
|
+
if (diffHours >= 1) {
|
|
4091
|
+
return relativeTimeFormat.format(-diffHours, 'hour');
|
|
4092
|
+
}
|
|
4093
|
+
if (diffMinutes >= 1) {
|
|
4094
|
+
return relativeTimeFormat.format(-diffMinutes, 'minute');
|
|
4095
|
+
}
|
|
4096
|
+
return relativeTimeFormat.format(0, 'second');
|
|
4044
4097
|
}
|
|
4045
|
-
return
|
|
4098
|
+
return new Intl.DateTimeFormat(locale, options).format(date);
|
|
4046
4099
|
}
|
|
4047
4100
|
|
|
4048
4101
|
var purify = {exports: {}};
|
|
@@ -5459,8 +5512,7 @@ class SearchcraftFacetList {
|
|
|
5459
5512
|
}
|
|
5460
5513
|
/** Things to do when the state's search term has changed, but before the response received */
|
|
5461
5514
|
if (state.searchTerm !== this.lastSearchTerm ||
|
|
5462
|
-
state.searchMode !== this.lastSearchMode
|
|
5463
|
-
state.sortType !== this.lastSortType) {
|
|
5515
|
+
state.searchMode !== this.lastSearchMode) {
|
|
5464
5516
|
this.selectedPaths = {};
|
|
5465
5517
|
this.hasNewSearchTerm = true;
|
|
5466
5518
|
}
|
|
@@ -5559,12 +5611,7 @@ class SearchcraftFacetList {
|
|
|
5559
5611
|
"baseFacetRoot": [32],
|
|
5560
5612
|
"facetRoot": [32],
|
|
5561
5613
|
"selectedPaths": [32],
|
|
5562
|
-
"lastTimeTaken": [32]
|
|
5563
|
-
"hasNewSearchTerm": [32],
|
|
5564
|
-
"lastSearchTerm": [32],
|
|
5565
|
-
"lastSearchMode": [32],
|
|
5566
|
-
"lastSortType": [32],
|
|
5567
|
-
"unsubscribe": [32]
|
|
5614
|
+
"lastTimeTaken": [32]
|
|
5568
5615
|
},
|
|
5569
5616
|
"$listeners$": undefined,
|
|
5570
5617
|
"$lazyBundleId$": "-",
|
|
@@ -5661,15 +5708,26 @@ class SearchcraftFilterPanel {
|
|
|
5661
5708
|
this.searchStore.setSearchMode(isActive ? 'exact' : 'fuzzy');
|
|
5662
5709
|
this.searchStore.search();
|
|
5663
5710
|
}
|
|
5664
|
-
handleMostRecentToggleUpdated(isActive) {
|
|
5665
|
-
|
|
5711
|
+
handleMostRecentToggleUpdated(fieldName, isActive) {
|
|
5712
|
+
if (isActive) {
|
|
5713
|
+
this.searchStore.setSortOrder({
|
|
5714
|
+
orderByField: fieldName,
|
|
5715
|
+
sortType: 'desc',
|
|
5716
|
+
});
|
|
5717
|
+
}
|
|
5718
|
+
else {
|
|
5719
|
+
this.searchStore.setSortOrder({
|
|
5720
|
+
orderByField: null,
|
|
5721
|
+
sortType: null,
|
|
5722
|
+
});
|
|
5723
|
+
}
|
|
5666
5724
|
this.searchStore.search();
|
|
5667
5725
|
}
|
|
5668
5726
|
/**
|
|
5669
5727
|
* Iterate through `items` and render them based on `type`
|
|
5670
5728
|
*/
|
|
5671
5729
|
render() {
|
|
5672
|
-
return (hAsync("div", { key: '
|
|
5730
|
+
return (hAsync("div", { key: '7f15e8f1a2e1be763118f9cd4ded34cf7e2902d0', class: 'searchcraft-filter-panel' }, this.items.map((filterItem) => {
|
|
5673
5731
|
switch (filterItem.type) {
|
|
5674
5732
|
case 'dateRange': {
|
|
5675
5733
|
const item = filterItem;
|
|
@@ -5704,7 +5762,7 @@ class SearchcraftFilterPanel {
|
|
|
5704
5762
|
case 'mostRecentToggle': {
|
|
5705
5763
|
const item = filterItem;
|
|
5706
5764
|
return (hAsync("searchcraft-toggle-button", { label: item.label, subLabel: item.options.subLabel, onToggleUpdated: (event) => {
|
|
5707
|
-
this.handleMostRecentToggleUpdated(event.detail);
|
|
5765
|
+
this.handleMostRecentToggleUpdated(item.fieldName, event.detail);
|
|
5708
5766
|
} }));
|
|
5709
5767
|
}
|
|
5710
5768
|
}
|
|
@@ -5796,20 +5854,31 @@ class SearchcraftInputForm {
|
|
|
5796
5854
|
searchTerm = '';
|
|
5797
5855
|
error = false;
|
|
5798
5856
|
core;
|
|
5799
|
-
|
|
5857
|
+
searchcraftStore = searchcraftStore.getState();
|
|
5858
|
+
unsubscribe = () => { };
|
|
5800
5859
|
init() {
|
|
5801
5860
|
if (this.core) {
|
|
5802
|
-
this.
|
|
5861
|
+
this.searchcraftStore.init(this.core);
|
|
5803
5862
|
this.inputInit?.emit();
|
|
5804
5863
|
}
|
|
5805
5864
|
}
|
|
5806
|
-
|
|
5865
|
+
onCoreChange() {
|
|
5807
5866
|
this.init();
|
|
5808
5867
|
}
|
|
5809
|
-
|
|
5868
|
+
connectedCallback() {
|
|
5810
5869
|
this.init();
|
|
5811
5870
|
}
|
|
5812
|
-
|
|
5871
|
+
componentDidLoad() {
|
|
5872
|
+
this.unsubscribe = searchcraftStore.subscribe((state) => {
|
|
5873
|
+
this.searchTerm = state.searchTerm;
|
|
5874
|
+
this.inputValue = state.searchTerm;
|
|
5875
|
+
});
|
|
5876
|
+
}
|
|
5877
|
+
disconnectedCallback() {
|
|
5878
|
+
this.handleReset();
|
|
5879
|
+
this.unsubscribe?.();
|
|
5880
|
+
}
|
|
5881
|
+
handleInput = (event) => {
|
|
5813
5882
|
const input = event.target;
|
|
5814
5883
|
this.inputValue = input.value;
|
|
5815
5884
|
if (!this.autoSearch) {
|
|
@@ -5817,31 +5886,32 @@ class SearchcraftInputForm {
|
|
|
5817
5886
|
}
|
|
5818
5887
|
this.performSearch(input.value);
|
|
5819
5888
|
};
|
|
5820
|
-
performSearch = async (
|
|
5821
|
-
if (
|
|
5889
|
+
performSearch = async (searchTerm) => {
|
|
5890
|
+
if (searchTerm === this.searchTerm) {
|
|
5822
5891
|
return;
|
|
5823
5892
|
}
|
|
5824
|
-
this.searchTerm
|
|
5893
|
+
this.searchcraftStore.setSearchTerm(searchTerm.trim());
|
|
5825
5894
|
this.error = false;
|
|
5826
|
-
this.searchStore.setSearchTerm(this.searchTerm);
|
|
5827
5895
|
try {
|
|
5828
|
-
await this.
|
|
5896
|
+
await this.searchcraftStore.search();
|
|
5829
5897
|
}
|
|
5830
5898
|
catch (error) {
|
|
5831
|
-
console.
|
|
5899
|
+
console.error(`Search for ${searchTerm} failed:`, error);
|
|
5832
5900
|
this.error = true;
|
|
5833
5901
|
}
|
|
5834
5902
|
};
|
|
5835
|
-
|
|
5836
|
-
this.
|
|
5837
|
-
this.
|
|
5838
|
-
this.
|
|
5839
|
-
this.searchStore.setSearchClientResponseItems([]);
|
|
5903
|
+
handleReset = () => {
|
|
5904
|
+
this.searchcraftStore.setSearchResultsCount(0);
|
|
5905
|
+
this.searchcraftStore.setSearchTerm('');
|
|
5906
|
+
this.searchcraftStore.setSearchClientResponseItems([]);
|
|
5840
5907
|
this.error = false;
|
|
5841
5908
|
};
|
|
5909
|
+
handleClearInput = () => {
|
|
5910
|
+
this.handleReset();
|
|
5911
|
+
};
|
|
5842
5912
|
handleFormSubmit = async (event) => {
|
|
5843
5913
|
event.preventDefault();
|
|
5844
|
-
await this.performSearch(this.
|
|
5914
|
+
await this.performSearch(this.inputValue);
|
|
5845
5915
|
};
|
|
5846
5916
|
render() {
|
|
5847
5917
|
const isShowingClearButton = this.inputValue.length > 0;
|
|
@@ -5854,9 +5924,9 @@ class SearchcraftInputForm {
|
|
|
5854
5924
|
const inputGridStyles = {
|
|
5855
5925
|
gap: shouldHaveVerticalGap ? '4px 8px' : '0px 8px',
|
|
5856
5926
|
};
|
|
5857
|
-
return (hAsync("form", { key: '
|
|
5858
|
-
this.
|
|
5859
|
-
}, placeholder: this.placeholderValue, type: 'text', value: this.inputValue }), hAsync("div", { key: '
|
|
5927
|
+
return (hAsync("form", { key: '6af89b2ab634e0f3e0ef575f98f33d091602f95a', class: 'searchcraft-input-form', onSubmit: this.handleFormSubmit }, hAsync("div", { key: '93fea8e2b80468afeb6014122d5b749d74bfaf35', class: inputGridClassNames, style: inputGridStyles }, hAsync("div", { key: '1e5a416843b99aec68c4672a9c78f607347dc9d1', class: 'searchcraft-input-form-button' }, hAsync("searchcraft-button", { key: 'c38c1df0ce20f914ed76fbc0acad5a22b40e6fff', onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && (hAsync("div", { key: '2169a4466b0fdc8075c0dc74da442aef28a84d65', class: 'searchcraft-input-form-label' }, hAsync("searchcraft-input-label", { key: 'a263b5aa2a4d50d297f06c1fe9e6afb64763f097', label: this.inputLabel }))), this.error && (hAsync("div", { key: '49be2ac0f2d01916e5ea533e6406ee9d4d932178', class: 'searchcraft-input-form-error-message' }, hAsync("searchcraft-error-message", { key: '310c9aebcf580d4abe92d288c6b70a5adf083f8e' }, "Something went wrong."))), hAsync("div", { key: 'f4702e368815e049586e97cf59541b2dc5460fc0', class: 'searchcraft-input-form-input-wrapper' }, hAsync("input", { key: 'a8cddd5e937eee1d30fb98eaaa3dbffe96c192ce', autoComplete: 'off', class: 'searchcraft-input-form-input', onFocus: () => this.inputFocus?.emit(), onBlur: () => this.inputBlur?.emit(), onInput: (event) => {
|
|
5928
|
+
this.handleInput(event);
|
|
5929
|
+
}, placeholder: this.placeholderValue, type: 'text', value: this.inputValue }), hAsync("div", { key: '616b4dde1ba016cf6a2fba8594a99a3a3f584ef5', class: 'searchcraft-input-form-input-icon' }, hAsync("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' }, hAsync("title", { key: 'e6d82ca64dd9bfc663813c239d11e5652aa0b9a1' }, "Search icon"), hAsync("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' }))), isShowingClearButton && (hAsync("button", { key: '8dd6dfefe0ba909657bd436b559ce35b5004f9ae', type: 'button', class: 'searchcraft-input-form-clear-button', onClick: this.handleClearInput }, hAsync("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' }, hAsync("title", { key: 'e01e7fb9b23daf9434520c4c68c0d7539b37d1f8' }, "Clear icon"), hAsync("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' }))))))));
|
|
5860
5930
|
}
|
|
5861
5931
|
static get watchers() { return {
|
|
5862
5932
|
"core": ["onCoreChange"]
|
|
@@ -6076,7 +6146,7 @@ class SearchcraftPagination {
|
|
|
6076
6146
|
* // index.js
|
|
6077
6147
|
* const popoverButton = document.querySelector('searchcraft-popover-button');
|
|
6078
6148
|
*
|
|
6079
|
-
* popoverButton.template = (isPopoverVisible, { html }) => html`
|
|
6149
|
+
* popoverButton.template = ({ isPopoverVisible }, { html }) => html`
|
|
6080
6150
|
* <span>Click me</span>
|
|
6081
6151
|
* `;
|
|
6082
6152
|
* ```
|
|
@@ -6084,7 +6154,7 @@ class SearchcraftPagination {
|
|
|
6084
6154
|
* @react-example
|
|
6085
6155
|
* ```jsx
|
|
6086
6156
|
* <SearchcraftPopoverButton
|
|
6087
|
-
* template={(isPopoverVisible, { html }) => html`
|
|
6157
|
+
* template={({ isPopoverVisible }, { html }) => html`
|
|
6088
6158
|
* <span>Click me</span>
|
|
6089
6159
|
* `}
|
|
6090
6160
|
* >
|
|
@@ -6095,7 +6165,7 @@ class SearchcraftPagination {
|
|
|
6095
6165
|
* @vue-example
|
|
6096
6166
|
* ```jsx
|
|
6097
6167
|
* <SearchcraftPopoverButton
|
|
6098
|
-
* :template={(isPopoverVisible, { html }) => html`
|
|
6168
|
+
* :template={({ isPopoverVisible }, { html }) => html`
|
|
6099
6169
|
* <span>Click me</span>
|
|
6100
6170
|
* `}
|
|
6101
6171
|
* >
|
|
@@ -6190,8 +6260,10 @@ class SearchcraftPopoverButton {
|
|
|
6190
6260
|
}
|
|
6191
6261
|
}
|
|
6192
6262
|
render() {
|
|
6193
|
-
return (hAsync("button", { key: '
|
|
6194
|
-
|
|
6263
|
+
return (hAsync("button", { key: '74e36b0593ba2cbb03f5ecff1434bc7056bf0db0', class: `searchcraft-popover-button ${this.type ? ` searchcraft-popover-button-${this.type}` : ''}`, innerHTML: typeof this.template !== 'undefined'
|
|
6264
|
+
? this.template({ isPopoverVisible: this.isPopoverVisible }, { html })
|
|
6265
|
+
: undefined, onClick: this.handleOnClick.bind(this), type: 'button' }, typeof this.template !== 'undefined'
|
|
6266
|
+
? undefined
|
|
6195
6267
|
: this.type
|
|
6196
6268
|
? this.renderSlot()
|
|
6197
6269
|
: 'Open Popover'));
|
|
@@ -6486,14 +6558,14 @@ class SearchcraftPopoverForm {
|
|
|
6486
6558
|
if (this.isPopoverVisibleInState) {
|
|
6487
6559
|
return (hAsync("div", { class: classNames('searchcraft-popover-form searchcraft-popover-form-modal', {
|
|
6488
6560
|
'searchcraft-popover-form-active': this.hasResultsToShow,
|
|
6489
|
-
}) }, hAsync("div", { class: 'searchcraft-popover-form-modal-backdrop', onClick: this.handleModalBackdropClick }), hAsync("div", { class: 'searchcraft-popover-form-modal-wrapper' }, hAsync("div", { class: 'searchcraft-popover-form-input searchcraft-popover-form-modal-input' }, hAsync("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), hAsync("button", { type: 'button', class: 'searchcraft-popover-form-
|
|
6561
|
+
}) }, hAsync("div", { class: 'searchcraft-popover-form-modal-backdrop', onClick: this.handleModalBackdropClick }), hAsync("div", { class: 'searchcraft-popover-form-modal-wrapper' }, hAsync("div", { class: 'searchcraft-popover-form-input searchcraft-popover-form-modal-input' }, hAsync("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), hAsync("button", { type: 'button', class: 'searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button', onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), hAsync("div", { class: 'searchcraft-popover-form-modal-popover-list-view' }, this.hasResultsToShow && (hAsync("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }))), hAsync("searchcraft-popover-footer", null))));
|
|
6490
6562
|
}
|
|
6491
6563
|
}
|
|
6492
6564
|
renderFullscreenPopover() {
|
|
6493
6565
|
if (this.isPopoverVisibleInState) {
|
|
6494
6566
|
return (hAsync("div", { class: classNames('searchcraft-popover-form searchcraft-popover-form-fullscreen', {
|
|
6495
6567
|
'searchcraft-popover-form-active': this.hasResultsToShow,
|
|
6496
|
-
}) }, hAsync("div", { class: 'searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input' }, hAsync("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), hAsync("button", { type: 'button', class: 'searchcraft-popover-form-
|
|
6568
|
+
}) }, hAsync("div", { class: 'searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input' }, hAsync("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), hAsync("button", { type: 'button', class: 'searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button', onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), hAsync("div", { class: 'searchcraft-popover-form-fullscreen-popover-list-view' }, this.hasResultsToShow && (hAsync("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }))), hAsync("searchcraft-popover-footer", null)));
|
|
6497
6569
|
}
|
|
6498
6570
|
}
|
|
6499
6571
|
render() {
|
|
@@ -6566,12 +6638,12 @@ class SearchcraftPopoverListItem {
|
|
|
6566
6638
|
disconnectedCallback() { }
|
|
6567
6639
|
handleLinkClick = () => {
|
|
6568
6640
|
const state = searchcraftStore.getState();
|
|
6569
|
-
const
|
|
6570
|
-
if (
|
|
6641
|
+
const core = state.getSearchcraftCore();
|
|
6642
|
+
if (core) {
|
|
6571
6643
|
const document_position = this.documentPosition;
|
|
6572
6644
|
const search_term = state.searchTerm;
|
|
6573
6645
|
const number_of_documents = state.searchClientResponseItems.length || 0;
|
|
6574
|
-
|
|
6646
|
+
core.measureClient?.sendMeasureEvent('document_clicked', {
|
|
6575
6647
|
document_position,
|
|
6576
6648
|
number_of_documents,
|
|
6577
6649
|
search_term,
|
|
@@ -6579,7 +6651,7 @@ class SearchcraftPopoverListItem {
|
|
|
6579
6651
|
}
|
|
6580
6652
|
};
|
|
6581
6653
|
render() {
|
|
6582
|
-
return (hAsync("div", { key: '
|
|
6654
|
+
return (hAsync("div", { key: '63a2f070ce71cd1330105c03985e32cd1f228b29', class: 'searchcraft-popover-list-item' }, hAsync("a", { key: 'd9bb09248be9be235147acdfeed1a9f29cd123a2', class: 'searchcraft-popover-list-item-link', href: this.href, onClick: this.handleLinkClick.bind(this) }, this.imageSource && (hAsync("div", { key: '6af7c3e754885730d8651a593f13b7b5b704a26d', class: 'searchcraft-popover-list-item-image-wrapper' }, hAsync("img", { key: '74c7e53467efd83ae95439a7065c1de2748113f5', alt: this.imageAlt, src: this.imageSource, class: 'searchcraft-popover-list-item-image' }))), hAsync("div", { key: '25a12e5cf582b248773005f5fb58f7a15304d2d1', class: 'searchcraft-popover-list-item-content' }, this.title && (hAsync("p", { key: '8169f7730feb832178adbc9bdb14a089e955a2ad', class: 'searchcraft-popover-list-item-content-title' }, this.title)), this.subtitle && (hAsync("p", { key: '96812df1bab635e3865bdfdb31f133ca629d800e', class: 'searchcraft-popover-list-item-content-subtitle' }, this.subtitle))))));
|
|
6583
6655
|
}
|
|
6584
6656
|
static get cmpMeta() { return {
|
|
6585
6657
|
"$flags$": 0,
|
|
@@ -6673,23 +6745,27 @@ class SearchcraftPopoverListItemAd {
|
|
|
6673
6745
|
if (!item.admAd) {
|
|
6674
6746
|
return;
|
|
6675
6747
|
}
|
|
6676
|
-
|
|
6748
|
+
let templateHtml = '<p>Ad Marketplace Ad Placeholder</p>';
|
|
6749
|
+
if (this.core?.config?.admAdTemplate) {
|
|
6750
|
+
templateHtml = this.core?.config?.admAdTemplate(item.admAd, { html });
|
|
6751
|
+
}
|
|
6752
|
+
return (hAsync("div", { class: 'searchcraft-ad searchcraft-adm-ad', "data-searchcraft-ad-container-id": this.adContainerId, id: `searchcraft-adm-ad-${this.adContainerId}`, innerHTML: templateHtml }));
|
|
6677
6753
|
}
|
|
6678
6754
|
renderCustomAd() {
|
|
6679
6755
|
const templateRenderFunction = this.core?.config?.customAdTemplate;
|
|
6680
6756
|
const containerId = `searchcraft-custom-ad-${this.adContainerId}`;
|
|
6681
|
-
let
|
|
6757
|
+
let templateHtml = '<p>Custom Ad Placeholder</p>';
|
|
6682
6758
|
if (templateRenderFunction) {
|
|
6683
|
-
|
|
6759
|
+
templateHtml = templateRenderFunction({
|
|
6684
6760
|
searchTerm: this.searchTerm || '',
|
|
6685
6761
|
adContainerId: this.adContainerId,
|
|
6686
6762
|
}, { html });
|
|
6687
6763
|
}
|
|
6688
|
-
return (hAsync("div", { class: 'searchcraft-custom-ad', id: containerId, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML:
|
|
6764
|
+
return (hAsync("div", { class: 'searchcraft-ad searchcraft-custom-ad', id: containerId, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: templateHtml }));
|
|
6689
6765
|
}
|
|
6690
6766
|
renderNativoAd() {
|
|
6691
6767
|
const nativoClassName = this.core?.config.nativoAdClassName || 'ntv-item';
|
|
6692
|
-
return hAsync("div", { class: nativoClassName });
|
|
6768
|
+
return (hAsync("div", { id: `searchcraft-native-ad-${this.adContainerId}`, class: classNames('searchcraft-ad', nativoClassName), "data-searchcraft-ad-container-id": this.adContainerId }));
|
|
6693
6769
|
}
|
|
6694
6770
|
render() {
|
|
6695
6771
|
// Don't render ads while search is in progress
|
|
@@ -7010,16 +7086,17 @@ class SearchcraftSearchResult {
|
|
|
7010
7086
|
try {
|
|
7011
7087
|
this.templateHtml = this.template?.(this.item.document, this.index, {
|
|
7012
7088
|
html,
|
|
7089
|
+
source_index: this.item.source_index,
|
|
7013
7090
|
});
|
|
7014
7091
|
}
|
|
7015
7092
|
catch (error) {
|
|
7016
|
-
console.error(
|
|
7093
|
+
console.error('Invalid search result template:', error);
|
|
7017
7094
|
}
|
|
7018
7095
|
}
|
|
7019
7096
|
}
|
|
7020
7097
|
handleResultContainerClick = (event) => {
|
|
7021
7098
|
const state = searchcraftStore.getState();
|
|
7022
|
-
const
|
|
7099
|
+
const core = state.getSearchcraftCore();
|
|
7023
7100
|
if (!event.target) {
|
|
7024
7101
|
return;
|
|
7025
7102
|
}
|
|
@@ -7027,14 +7104,14 @@ class SearchcraftSearchResult {
|
|
|
7027
7104
|
const link = target.closest('a');
|
|
7028
7105
|
if (!link ||
|
|
7029
7106
|
!this.hostElement?.contains(link) ||
|
|
7030
|
-
!
|
|
7031
|
-
!
|
|
7107
|
+
!core ||
|
|
7108
|
+
!core.measureClient) {
|
|
7032
7109
|
return;
|
|
7033
7110
|
}
|
|
7034
7111
|
const document_position = this.documentPosition;
|
|
7035
7112
|
const search_term = state.searchTerm;
|
|
7036
7113
|
const number_of_documents = state.searchClientResponseItems.length || 0;
|
|
7037
|
-
|
|
7114
|
+
core.measureClient.sendMeasureEvent('document_clicked', {
|
|
7038
7115
|
document_position,
|
|
7039
7116
|
number_of_documents,
|
|
7040
7117
|
search_term,
|
|
@@ -7124,37 +7201,50 @@ class SearchcraftSearchResults {
|
|
|
7124
7201
|
constructor(hostRef) {
|
|
7125
7202
|
registerInstance(this, hostRef);
|
|
7126
7203
|
}
|
|
7204
|
+
/**
|
|
7205
|
+
* A query that will appears when the component initializes or the search term is ''..
|
|
7206
|
+
*/
|
|
7207
|
+
initialQuery;
|
|
7127
7208
|
/**
|
|
7128
7209
|
* A callback function responsible for rendering a result. Passed to `searchcraft-search-result`.
|
|
7129
7210
|
*/
|
|
7130
7211
|
template;
|
|
7131
|
-
searchTerm = '';
|
|
7132
|
-
searchClientResponseItems;
|
|
7133
7212
|
adClientResponseItems = [];
|
|
7134
|
-
searchResultsPerPage;
|
|
7135
|
-
searchResultsPage;
|
|
7136
|
-
isSearchInProgress = true;
|
|
7137
7213
|
config;
|
|
7214
|
+
initialSearchClientResponseItems;
|
|
7215
|
+
isSearchInProgress = true;
|
|
7216
|
+
searchClientResponseItems;
|
|
7217
|
+
searchResultsPage;
|
|
7218
|
+
searchResultsPerPage;
|
|
7219
|
+
searchTerm = '';
|
|
7138
7220
|
unsubscribe = () => { };
|
|
7139
7221
|
componentDidLoad() {
|
|
7222
|
+
const state = searchcraftStore.getState();
|
|
7223
|
+
this.handleStateChange(state);
|
|
7224
|
+
this.searchClientResponseItems = state.searchClientResponseItems;
|
|
7225
|
+
this.searchTerm = state.searchTerm;
|
|
7226
|
+
this.config = state.core?.config;
|
|
7227
|
+
state.afterInit = (state) => {
|
|
7228
|
+
if (this.initialQuery) {
|
|
7229
|
+
state.setInitialQuery(this.initialQuery);
|
|
7230
|
+
}
|
|
7231
|
+
};
|
|
7140
7232
|
this.unsubscribe = searchcraftStore.subscribe((state) => this.handleStateChange(state));
|
|
7141
|
-
const currentState = searchcraftStore.getState();
|
|
7142
|
-
this.handleStateChange(currentState);
|
|
7143
|
-
this.searchClientResponseItems = currentState.searchClientResponseItems;
|
|
7144
|
-
this.searchTerm = currentState.searchTerm;
|
|
7145
|
-
this.config = currentState.core?.config;
|
|
7146
7233
|
}
|
|
7147
7234
|
disconnectedCallback() {
|
|
7148
7235
|
this.unsubscribe?.();
|
|
7149
7236
|
}
|
|
7150
7237
|
handleStateChange(state) {
|
|
7151
|
-
this.searchClientResponseItems = [...state.searchClientResponseItems];
|
|
7152
7238
|
this.adClientResponseItems = [...state.adClientResponseItems];
|
|
7153
|
-
this.searchTerm = state.searchTerm;
|
|
7154
|
-
this.searchResultsPage = state.searchResultsPage;
|
|
7155
|
-
this.searchResultsPerPage = state.searchResultsPerPage;
|
|
7156
7239
|
this.config = state.core?.config;
|
|
7240
|
+
this.initialSearchClientResponseItems = [
|
|
7241
|
+
...state.initialSearchClientResponseItems,
|
|
7242
|
+
];
|
|
7157
7243
|
this.isSearchInProgress = state.isSearchInProgress;
|
|
7244
|
+
this.searchClientResponseItems = [...state.searchClientResponseItems];
|
|
7245
|
+
this.searchResultsPage = state.searchResultsPage;
|
|
7246
|
+
this.searchResultsPerPage = state.searchResultsPerPage;
|
|
7247
|
+
this.searchTerm = state.searchTerm;
|
|
7158
7248
|
}
|
|
7159
7249
|
renderEmptyState() {
|
|
7160
7250
|
return (hAsync("div", { class: 'searchcraft-search-results-empty-state' }, hAsync("slot", { name: 'empty-search' })));
|
|
@@ -7163,7 +7253,12 @@ class SearchcraftSearchResults {
|
|
|
7163
7253
|
return (hAsync("div", { class: 'searchcraft-search-results' }, hAsync("div", { class: 'searchcraft-search-results-error-message' }, hAsync("searchcraft-error-message", null, "No search results found for \"", this.searchTerm, "\" query."))));
|
|
7164
7254
|
}
|
|
7165
7255
|
renderWithADMAds() {
|
|
7166
|
-
|
|
7256
|
+
const items = this.searchClientResponseItems?.length
|
|
7257
|
+
? this.searchClientResponseItems
|
|
7258
|
+
: this.initialSearchClientResponseItems?.length
|
|
7259
|
+
? this.initialSearchClientResponseItems
|
|
7260
|
+
: [];
|
|
7261
|
+
return (hAsync("div", { class: 'searchcraft-search-results' }, this.adClientResponseItems?.map((item) => (hAsync("searchcraft-ad", { adSource: 'adMarketplace', adClientResponseItem: item, adContainerId: nanoid(), key: item.id }))), items.map((item, index) => (hAsync("searchcraft-search-result", { key: item.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + index, index: index, item: item, template: this.template })))));
|
|
7167
7262
|
}
|
|
7168
7263
|
renderWithCustomAds() {
|
|
7169
7264
|
const itemsToRender = [];
|
|
@@ -7171,16 +7266,20 @@ class SearchcraftSearchResults {
|
|
|
7171
7266
|
const interstitialQuantity = this.config?.customAdInterstitialQuantity || 1;
|
|
7172
7267
|
const adStartQuantity = this.config?.customAdStartQuantity || 0;
|
|
7173
7268
|
const adEndQuantity = this.config?.customAdEndQuantity || 0;
|
|
7174
|
-
const
|
|
7269
|
+
const items = this.searchClientResponseItems?.length
|
|
7270
|
+
? this.searchClientResponseItems
|
|
7271
|
+
: this.initialSearchClientResponseItems?.length
|
|
7272
|
+
? this.initialSearchClientResponseItems
|
|
7273
|
+
: [];
|
|
7175
7274
|
// Renders ads at beginning
|
|
7176
7275
|
for (let n = 0; n < adStartQuantity; n++) {
|
|
7177
7276
|
itemsToRender.push(hAsync("searchcraft-ad", { adSource: 'Custom', adContainerId: nanoid(), key: `${n}-ad` }));
|
|
7178
7277
|
}
|
|
7179
7278
|
// Renders search results + interstitial ads
|
|
7180
|
-
|
|
7279
|
+
items.forEach((item, index) => {
|
|
7181
7280
|
if (interstitialInterval &&
|
|
7182
7281
|
index % interstitialInterval === 0 &&
|
|
7183
|
-
index + interstitialInterval <
|
|
7282
|
+
index + interstitialInterval < items.length &&
|
|
7184
7283
|
index >= interstitialInterval) {
|
|
7185
7284
|
for (let n = 0; n < interstitialQuantity; n++) {
|
|
7186
7285
|
itemsToRender.push(hAsync("searchcraft-ad", { adSource: 'Custom', adContainerId: nanoid(), key: `${item.id}-ad-${n}` }));
|
|
@@ -7201,16 +7300,20 @@ class SearchcraftSearchResults {
|
|
|
7201
7300
|
const interstitialQuantity = this.config?.nativoAdInterstitialQuantity || 1;
|
|
7202
7301
|
const adStartQuantity = this.config?.nativoAdStartQuantity || 0;
|
|
7203
7302
|
const adEndQuantity = this.config?.nativoAdEndQuantity || 0;
|
|
7204
|
-
const
|
|
7303
|
+
const items = this.searchClientResponseItems?.length
|
|
7304
|
+
? this.searchClientResponseItems
|
|
7305
|
+
: this.initialSearchClientResponseItems?.length
|
|
7306
|
+
? this.initialSearchClientResponseItems
|
|
7307
|
+
: [];
|
|
7205
7308
|
// Renders ads at beginning
|
|
7206
7309
|
for (let n = 0; n < adStartQuantity; n++) {
|
|
7207
7310
|
itemsToRender.push(hAsync("searchcraft-ad", { adSource: 'Nativo', adContainerId: nanoid(), key: `${n}-ad` }));
|
|
7208
7311
|
}
|
|
7209
7312
|
// Renders search results + interstitial ads
|
|
7210
|
-
|
|
7313
|
+
items.forEach((item, index) => {
|
|
7211
7314
|
if (interstitialInterval &&
|
|
7212
7315
|
(index + interstitialStartIndex) % interstitialInterval === 0 &&
|
|
7213
|
-
index + interstitialInterval <
|
|
7316
|
+
index + interstitialInterval < items.length &&
|
|
7214
7317
|
index >= interstitialInterval) {
|
|
7215
7318
|
for (let n = 0; n < interstitialQuantity; n++) {
|
|
7216
7319
|
itemsToRender.push(hAsync("searchcraft-ad", { adSource: 'Nativo', adContainerId: nanoid(), key: `${item.id}-ad-${n}` }));
|
|
@@ -7225,14 +7328,23 @@ class SearchcraftSearchResults {
|
|
|
7225
7328
|
return hAsync("div", { class: 'searchcraft-search-results' }, itemsToRender);
|
|
7226
7329
|
}
|
|
7227
7330
|
renderWithNoAds() {
|
|
7228
|
-
|
|
7331
|
+
const items = this.searchClientResponseItems?.length
|
|
7332
|
+
? this.searchClientResponseItems
|
|
7333
|
+
: this.initialSearchClientResponseItems?.length
|
|
7334
|
+
? this.initialSearchClientResponseItems
|
|
7335
|
+
: [];
|
|
7336
|
+
return (hAsync("div", { class: 'searchcraft-search-results' }, items.map((item, index) => (hAsync("searchcraft-search-result", { key: item.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + index, index: index, item: item, template: this.template })))));
|
|
7229
7337
|
}
|
|
7230
7338
|
render() {
|
|
7231
|
-
|
|
7339
|
+
const searchClientResponseItems = this.searchClientResponseItems || [];
|
|
7340
|
+
const initialSearchClientResponseItems = this.initialSearchClientResponseItems || [];
|
|
7341
|
+
if (this.searchTerm === '' &&
|
|
7342
|
+
initialSearchClientResponseItems.length === 0 &&
|
|
7343
|
+
!this.isSearchInProgress) {
|
|
7232
7344
|
return this.renderEmptyState();
|
|
7233
7345
|
}
|
|
7234
7346
|
if (this.searchTerm.length > 0 &&
|
|
7235
|
-
|
|
7347
|
+
searchClientResponseItems.length === 0 &&
|
|
7236
7348
|
!this.isSearchInProgress) {
|
|
7237
7349
|
return this.renderNoResultsFoundState();
|
|
7238
7350
|
}
|
|
@@ -7251,14 +7363,16 @@ class SearchcraftSearchResults {
|
|
|
7251
7363
|
"$flags$": 4,
|
|
7252
7364
|
"$tagName$": "searchcraft-search-results",
|
|
7253
7365
|
"$members$": {
|
|
7366
|
+
"initialQuery": [1, "initial-query"],
|
|
7254
7367
|
"template": [16],
|
|
7255
|
-
"searchTerm": [32],
|
|
7256
|
-
"searchClientResponseItems": [32],
|
|
7257
7368
|
"adClientResponseItems": [32],
|
|
7258
|
-
"
|
|
7259
|
-
"
|
|
7369
|
+
"config": [32],
|
|
7370
|
+
"initialSearchClientResponseItems": [32],
|
|
7260
7371
|
"isSearchInProgress": [32],
|
|
7261
|
-
"
|
|
7372
|
+
"searchClientResponseItems": [32],
|
|
7373
|
+
"searchResultsPage": [32],
|
|
7374
|
+
"searchResultsPerPage": [32],
|
|
7375
|
+
"searchTerm": [32]
|
|
7262
7376
|
},
|
|
7263
7377
|
"$listeners$": undefined,
|
|
7264
7378
|
"$lazyBundleId$": "-",
|
|
@@ -7562,7 +7676,7 @@ class SearchcraftSlider {
|
|
|
7562
7676
|
}; }
|
|
7563
7677
|
}
|
|
7564
7678
|
|
|
7565
|
-
var styles = `[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-brand);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}.searchcraft-popover-form-input-cancel-button{background:none;border:none;cursor:pointer}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding: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-popover-list-view{flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.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);border-radius:var(--sc-border-radius-2xl);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{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-input-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);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-input-cancel-button{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 32px;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}.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 */
|
|
7679
|
+
var styles = `[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 */
|
|
7566
7680
|
`;
|
|
7567
7681
|
|
|
7568
7682
|
/**
|