@searchcraft/vue-sdk 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +51 -8
- package/dist/index.es.js +737 -643
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var fn = Object.defineProperty;
|
|
2
2
|
var dn = (e, t, r) => t in e ? fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var h = (e, t, r) => dn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { defineComponent as pn, ref as mn, getCurrentInstance as gn, inject as
|
|
4
|
+
import { defineComponent as pn, ref as mn, getCurrentInstance as gn, inject as vn, h as bn } from "vue";
|
|
5
5
|
var yn = Object.defineProperty, Sn = (e, t, r) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, F = (e, t, r) => Sn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
6
6
|
function Se(e, t, r, a) {
|
|
7
7
|
return new (r || (r = Promise))(function(n, o) {
|
|
@@ -87,12 +87,12 @@ function we(e, t) {
|
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var Re = { exclude: [] }, za = {}, wn = { timeout: "true" }, he = function(e, t) {
|
|
91
91
|
typeof window < "u" && (za[e] = t);
|
|
92
|
-
},
|
|
92
|
+
}, Rn = function() {
|
|
93
93
|
return Object.fromEntries(Object.entries(za).filter(function(e) {
|
|
94
94
|
var t, r = e[0];
|
|
95
|
-
return !(!((t =
|
|
95
|
+
return !(!((t = Re == null ? void 0 : Re.exclude) === null || t === void 0) && t.includes(r));
|
|
96
96
|
}).map(function(e) {
|
|
97
97
|
return [e[0], (0, e[1])()];
|
|
98
98
|
}));
|
|
@@ -100,8 +100,8 @@ var Ee = { exclude: [] }, za = {}, wn = { timeout: "true" }, he = function(e, t)
|
|
|
100
100
|
function St(e) {
|
|
101
101
|
return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
function
|
|
103
|
+
var Q = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
104
|
+
function ce(e, t) {
|
|
105
105
|
return e << t | e >>> 32 - t;
|
|
106
106
|
}
|
|
107
107
|
function hr(e, t) {
|
|
@@ -111,7 +111,7 @@ function hr(e, t) {
|
|
|
111
111
|
(function(o, s) {
|
|
112
112
|
for (var c = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * c), l = 0; l < c; l++) {
|
|
113
113
|
var i = u.subarray(4 * l, 4 * (l + 1));
|
|
114
|
-
i[0] = Math.imul(i[0],
|
|
114
|
+
i[0] = Math.imul(i[0], Q[0]), i[0] = ce(i[0], 15), i[0] = Math.imul(i[0], Q[1]), s[0] = s[0] ^ i[0], s[0] = ce(s[0], 19), s[0] = s[0] + s[1], s[0] = Math.imul(s[0], 5) + 1444728091, i[1] = Math.imul(i[1], Q[1]), i[1] = ce(i[1], 16), i[1] = Math.imul(i[1], Q[2]), s[1] = s[1] ^ i[1], s[1] = ce(s[1], 17), s[1] = s[1] + s[2], s[1] = Math.imul(s[1], 5) + 197830471, i[2] = Math.imul(i[2], Q[2]), i[2] = ce(i[2], 17), i[2] = Math.imul(i[2], Q[3]), s[2] = s[2] ^ i[2], s[2] = ce(s[2], 15), s[2] = s[2] + s[3], s[2] = Math.imul(s[2], 5) + 2530024501, i[3] = Math.imul(i[3], Q[3]), i[3] = ce(i[3], 18), i[3] = Math.imul(i[3], Q[0]), s[3] = s[3] ^ i[3], s[3] = ce(s[3], 13), s[3] = s[3] + s[0], s[3] = Math.imul(s[3], 5) + 850148119;
|
|
115
115
|
}
|
|
116
116
|
})(e, a), function(o, s) {
|
|
117
117
|
var c = o.byteLength / 16 | 0, u = o.byteLength % 16, l = new Uint32Array(4), i = new Uint8Array(o, 16 * c, u);
|
|
@@ -121,7 +121,7 @@ function hr(e, t) {
|
|
|
121
121
|
case 14:
|
|
122
122
|
l[3] = l[3] ^ i[13] << 8;
|
|
123
123
|
case 13:
|
|
124
|
-
l[3] = l[3] ^ i[12] << 0, l[3] = Math.imul(l[3],
|
|
124
|
+
l[3] = l[3] ^ i[12] << 0, l[3] = Math.imul(l[3], Q[3]), l[3] = ce(l[3], 18), l[3] = Math.imul(l[3], Q[0]), s[3] = s[3] ^ l[3];
|
|
125
125
|
case 12:
|
|
126
126
|
l[2] = l[2] ^ i[11] << 24;
|
|
127
127
|
case 11:
|
|
@@ -129,7 +129,7 @@ function hr(e, t) {
|
|
|
129
129
|
case 10:
|
|
130
130
|
l[2] = l[2] ^ i[9] << 8;
|
|
131
131
|
case 9:
|
|
132
|
-
l[2] = l[2] ^ i[8] << 0, l[2] = Math.imul(l[2],
|
|
132
|
+
l[2] = l[2] ^ i[8] << 0, l[2] = Math.imul(l[2], Q[2]), l[2] = ce(l[2], 17), l[2] = Math.imul(l[2], Q[3]), s[2] = s[2] ^ l[2];
|
|
133
133
|
case 8:
|
|
134
134
|
l[1] = l[1] ^ i[7] << 24;
|
|
135
135
|
case 7:
|
|
@@ -137,7 +137,7 @@ function hr(e, t) {
|
|
|
137
137
|
case 6:
|
|
138
138
|
l[1] = l[1] ^ i[5] << 8;
|
|
139
139
|
case 5:
|
|
140
|
-
l[1] = l[1] ^ i[4] << 0, l[1] = Math.imul(l[1],
|
|
140
|
+
l[1] = l[1] ^ i[4] << 0, l[1] = Math.imul(l[1], Q[1]), l[1] = ce(l[1], 16), l[1] = Math.imul(l[1], Q[2]), s[1] = s[1] ^ l[1];
|
|
141
141
|
case 4:
|
|
142
142
|
l[0] = l[0] ^ i[3] << 24;
|
|
143
143
|
case 3:
|
|
@@ -145,7 +145,7 @@ function hr(e, t) {
|
|
|
145
145
|
case 2:
|
|
146
146
|
l[0] = l[0] ^ i[1] << 8;
|
|
147
147
|
case 1:
|
|
148
|
-
l[0] = l[0] ^ i[0] << 0, l[0] = Math.imul(l[0],
|
|
148
|
+
l[0] = l[0] ^ i[0] << 0, l[0] = Math.imul(l[0], Q[0]), l[0] = ce(l[0], 15), l[0] = Math.imul(l[0], Q[1]), s[0] = s[0] ^ l[0];
|
|
149
149
|
}
|
|
150
150
|
}(e, a), function(o, s) {
|
|
151
151
|
s[0] = s[0] ^ o.byteLength, s[1] = s[1] ^ o.byteLength, s[2] = s[2] ^ o.byteLength, s[3] = s[3] ^ o.byteLength, s[0] = s[0] + s[1] | 0, s[0] = s[0] + s[2] | 0, s[0] = s[0] + s[3] | 0, s[1] = s[1] + s[0] | 0, s[2] = s[2] + s[0] | 0, s[3] = s[3] + s[0] | 0, s[0] = St(s[0]), s[1] = St(s[1]), s[2] = St(s[2]), s[3] = St(s[3]), s[0] = s[0] + s[1] | 0, s[0] = s[0] + s[2] | 0, s[0] = s[0] + s[3] | 0, s[1] = s[1] + s[0] | 0, s[2] = s[2] + s[0] | 0, s[3] = s[3] + s[0] | 0;
|
|
@@ -155,7 +155,7 @@ function hr(e, t) {
|
|
|
155
155
|
return o.toString(16).padStart(2, "0");
|
|
156
156
|
}).join("");
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function En(e, t) {
|
|
159
159
|
return new Promise(function(r) {
|
|
160
160
|
setTimeout(function() {
|
|
161
161
|
return r(t);
|
|
@@ -164,7 +164,7 @@ function Rn(e, t) {
|
|
|
164
164
|
}
|
|
165
165
|
function kn(e, t, r) {
|
|
166
166
|
return Promise.all(e.map(function(a) {
|
|
167
|
-
return Promise.race([a,
|
|
167
|
+
return Promise.race([a, En(t, r)]);
|
|
168
168
|
}));
|
|
169
169
|
}
|
|
170
170
|
function Pn() {
|
|
@@ -173,13 +173,13 @@ function Pn() {
|
|
|
173
173
|
return we(this, function(o) {
|
|
174
174
|
switch (o.label) {
|
|
175
175
|
case 0:
|
|
176
|
-
return o.trys.push([0, 2, , 3]), e =
|
|
176
|
+
return o.trys.push([0, 2, , 3]), e = Rn(), t = Object.keys(e), [4, kn(Object.values(e), (Re == null ? void 0 : Re.timeout) || 1e3, wn)];
|
|
177
177
|
case 1:
|
|
178
178
|
return r = o.sent(), a = r.filter(function(s) {
|
|
179
179
|
return s !== void 0;
|
|
180
180
|
}), n = {}, a.forEach(function(s, c) {
|
|
181
181
|
n[t[c]] = s;
|
|
182
|
-
}), [2, Ha(n,
|
|
182
|
+
}), [2, Ha(n, Re.exclude || [])];
|
|
183
183
|
case 2:
|
|
184
184
|
throw o.sent();
|
|
185
185
|
case 3:
|
|
@@ -405,7 +405,7 @@ st().name != "Firefox" && he("fonts", function() {
|
|
|
405
405
|
return Se(this, void 0, void 0, function() {
|
|
406
406
|
var e;
|
|
407
407
|
return we(this, function(t) {
|
|
408
|
-
return rr = (
|
|
408
|
+
return rr = (Re == null ? void 0 : Re.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (Re == null ? void 0 : Re.retries) || 3 }, function() {
|
|
409
409
|
return function() {
|
|
410
410
|
return Se(this, void 0, void 0, function() {
|
|
411
411
|
var r, a, n, o, s;
|
|
@@ -454,18 +454,18 @@ st().name != "Firefox" && he("fonts", function() {
|
|
|
454
454
|
e({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: t.name, version: t.version }, applePayVersion: Fn() });
|
|
455
455
|
});
|
|
456
456
|
});
|
|
457
|
-
var
|
|
457
|
+
var te, Dn = st().name !== "SamsungBrowser" ? 1 : 3, R = null;
|
|
458
458
|
he("webgl", function() {
|
|
459
459
|
return Se(this, void 0, void 0, function() {
|
|
460
460
|
var e;
|
|
461
461
|
return we(this, function(t) {
|
|
462
|
-
typeof document < "u" && ((
|
|
462
|
+
typeof document < "u" && ((te = document.createElement("canvas")).width = 200, te.height = 100, R = te.getContext("webgl"));
|
|
463
463
|
try {
|
|
464
|
-
if (!
|
|
464
|
+
if (!R) throw new Error("WebGL not supported");
|
|
465
465
|
return e = Array.from({ length: Dn }, function() {
|
|
466
466
|
return function() {
|
|
467
467
|
try {
|
|
468
|
-
if (!
|
|
468
|
+
if (!R) throw new Error("WebGL not supported");
|
|
469
469
|
var r = `
|
|
470
470
|
attribute vec2 position;
|
|
471
471
|
void main() {
|
|
@@ -476,31 +476,31 @@ he("webgl", function() {
|
|
|
476
476
|
void main() {
|
|
477
477
|
gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color
|
|
478
478
|
}
|
|
479
|
-
`, n =
|
|
479
|
+
`, n = R.createShader(R.VERTEX_SHADER), o = R.createShader(R.FRAGMENT_SHADER);
|
|
480
480
|
if (!n || !o) throw new Error("Failed to create shaders");
|
|
481
|
-
if (
|
|
482
|
-
if (
|
|
483
|
-
var s =
|
|
481
|
+
if (R.shaderSource(n, r), R.shaderSource(o, a), R.compileShader(n), !R.getShaderParameter(n, R.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + R.getShaderInfoLog(n));
|
|
482
|
+
if (R.compileShader(o), !R.getShaderParameter(o, R.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + R.getShaderInfoLog(o));
|
|
483
|
+
var s = R.createProgram();
|
|
484
484
|
if (!s) throw new Error("Failed to create shader program");
|
|
485
|
-
if (
|
|
486
|
-
|
|
485
|
+
if (R.attachShader(s, n), R.attachShader(s, o), R.linkProgram(s), !R.getProgramParameter(s, R.LINK_STATUS)) throw new Error("Shader program linking failed: " + R.getProgramInfoLog(s));
|
|
486
|
+
R.useProgram(s);
|
|
487
487
|
for (var c = 137, u = new Float32Array(4 * c), l = 2 * Math.PI / c, i = 0; i < c; i++) {
|
|
488
488
|
var p = i * l;
|
|
489
|
-
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (
|
|
489
|
+
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (te.width / 2), u[4 * i + 3] = Math.sin(p) * (te.height / 2);
|
|
490
490
|
}
|
|
491
|
-
var
|
|
492
|
-
|
|
493
|
-
var
|
|
494
|
-
|
|
495
|
-
var
|
|
496
|
-
return
|
|
491
|
+
var m = R.createBuffer();
|
|
492
|
+
R.bindBuffer(R.ARRAY_BUFFER, m), R.bufferData(R.ARRAY_BUFFER, u, R.STATIC_DRAW);
|
|
493
|
+
var b = R.getAttribLocation(s, "position");
|
|
494
|
+
R.enableVertexAttribArray(b), R.vertexAttribPointer(b, 2, R.FLOAT, !1, 0, 0), R.viewport(0, 0, te.width, te.height), R.clearColor(0, 0, 0, 1), R.clear(R.COLOR_BUFFER_BIT), R.drawArrays(R.LINES, 0, 2 * c);
|
|
495
|
+
var v = new Uint8ClampedArray(te.width * te.height * 4);
|
|
496
|
+
return R.readPixels(0, 0, te.width, te.height, R.RGBA, R.UNSIGNED_BYTE, v), new ImageData(v, te.width, te.height);
|
|
497
497
|
} catch {
|
|
498
498
|
return new ImageData(1, 1);
|
|
499
499
|
} finally {
|
|
500
|
-
|
|
500
|
+
R && (R.bindBuffer(R.ARRAY_BUFFER, null), R.useProgram(null), R.viewport(0, 0, R.drawingBufferWidth, R.drawingBufferHeight), R.clearColor(0, 0, 0, 0));
|
|
501
501
|
}
|
|
502
502
|
}();
|
|
503
|
-
}), [2, { commonImageHash: hr(Ba(e,
|
|
503
|
+
}), [2, { commonImageHash: hr(Ba(e, te.width, te.height).data.toString()).toString() }];
|
|
504
504
|
} catch {
|
|
505
505
|
return [2, { webgl: "unsupported" }];
|
|
506
506
|
}
|
|
@@ -534,6 +534,12 @@ class fr {
|
|
|
534
534
|
async getAdsForSearchParams(t) {
|
|
535
535
|
return [];
|
|
536
536
|
}
|
|
537
|
+
async onQuerySubmitted(t) {
|
|
538
|
+
}
|
|
539
|
+
async onQueryFetched(t, r) {
|
|
540
|
+
}
|
|
541
|
+
async onInputCleared() {
|
|
542
|
+
}
|
|
537
543
|
}
|
|
538
544
|
class Un extends fr {
|
|
539
545
|
/**
|
|
@@ -572,9 +578,41 @@ class zn extends fr {
|
|
|
572
578
|
}
|
|
573
579
|
}
|
|
574
580
|
class Hn extends fr {
|
|
581
|
+
constructor(t) {
|
|
582
|
+
super(t), this.addScriptTagToDocument();
|
|
583
|
+
}
|
|
584
|
+
async onQuerySubmitted(t) {
|
|
585
|
+
this.addScriptTagToDocument();
|
|
586
|
+
}
|
|
587
|
+
async onQueryFetched(t, r) {
|
|
588
|
+
var a;
|
|
589
|
+
if ((((a = r.data.hits) == null ? void 0 : a.length) || 0) === 0) {
|
|
590
|
+
this.removeScriptTagFromDocument();
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
this.addScriptTagToDocument();
|
|
594
|
+
try {
|
|
595
|
+
PostRelease == null || PostRelease.Start({ ptd: [this.config.nativoPlacementId] });
|
|
596
|
+
} catch (n) {
|
|
597
|
+
console.error(n);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
async onInputCleared() {
|
|
601
|
+
this.removeScriptTagFromDocument();
|
|
602
|
+
}
|
|
575
603
|
async getAdsForSearchParams(t) {
|
|
576
604
|
return [];
|
|
577
605
|
}
|
|
606
|
+
addScriptTagToDocument() {
|
|
607
|
+
if (!document.head.querySelector("#nativo-tag")) {
|
|
608
|
+
const t = document.createElement("script");
|
|
609
|
+
t.type = "text/javascript", t.src = "https://s.ntv.io/serve/load.js", t.id = "nativo-tag", t.setAttribute("data-ntv-set-no-auto-start", "true"), document.head.appendChild(t);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
removeScriptTagFromDocument() {
|
|
613
|
+
const t = document.head.querySelector("#nativo-tag");
|
|
614
|
+
t && document.head.removeChild(t);
|
|
615
|
+
}
|
|
578
616
|
}
|
|
579
617
|
const Bn = 500;
|
|
580
618
|
class jn {
|
|
@@ -638,7 +676,7 @@ class jn {
|
|
|
638
676
|
};
|
|
639
677
|
}
|
|
640
678
|
}
|
|
641
|
-
function
|
|
679
|
+
function Wn(e) {
|
|
642
680
|
const t = [];
|
|
643
681
|
let r = "should";
|
|
644
682
|
return e.facetPathsForIndexFields && Object.keys(e.facetPathsForIndexFields).forEach((a) => {
|
|
@@ -666,7 +704,7 @@ function Gn(e) {
|
|
|
666
704
|
// Ensure dynamic mode is inside queryType
|
|
667
705
|
}), t;
|
|
668
706
|
}
|
|
669
|
-
const
|
|
707
|
+
const Gn = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Vn = (e) => {
|
|
670
708
|
let t = "";
|
|
671
709
|
if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
|
|
672
710
|
"‘": "'",
|
|
@@ -679,48 +717,55 @@ const Wn = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Vn = (e) => {
|
|
|
679
717
|
);
|
|
680
718
|
return t;
|
|
681
719
|
};
|
|
682
|
-
class
|
|
720
|
+
class qn {
|
|
683
721
|
constructor(t, r, a) {
|
|
684
722
|
F(this, "config"), F(this, "userId"), F(this, "parent"), F(this, "getSearchResponse", async (n) => {
|
|
685
|
-
var o, s;
|
|
686
|
-
const
|
|
723
|
+
var o, s, c, u, l;
|
|
724
|
+
const i = Vn(n.searchTerm);
|
|
687
725
|
(o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
|
|
688
|
-
search_term:
|
|
726
|
+
search_term: i
|
|
689
727
|
}), this.parent.emitEvent("query_submitted", {
|
|
690
728
|
name: "query_submitted",
|
|
691
729
|
data: {
|
|
692
|
-
searchTerm:
|
|
730
|
+
searchTerm: i
|
|
693
731
|
}
|
|
694
|
-
});
|
|
732
|
+
}), (s = this.parent.adClient) == null || s.onQuerySubmitted(n);
|
|
695
733
|
try {
|
|
696
|
-
const
|
|
697
|
-
query:
|
|
734
|
+
const p = {
|
|
735
|
+
query: Wn(n),
|
|
698
736
|
offset: n.offset || 0,
|
|
699
737
|
// Default to 0 (first page) if not provided
|
|
700
738
|
limit: n.limit || this.config.searchResultsPerPage || 20
|
|
701
739
|
// Default to 20 if not provided
|
|
702
740
|
};
|
|
703
|
-
n.order_by && (
|
|
704
|
-
const
|
|
741
|
+
n.order_by && (p.order_by = n.order_by, p.sort = n.sort === "desc" || n.sort === "asc" ? n.sort : "asc");
|
|
742
|
+
const m = {
|
|
705
743
|
method: "POST",
|
|
706
744
|
headers: {
|
|
707
745
|
Authorization: this.config.readKey,
|
|
708
746
|
"Content-Type": "application/json",
|
|
709
747
|
"X-Sc-User-Id": this.userId
|
|
710
748
|
},
|
|
711
|
-
body: JSON.stringify(
|
|
712
|
-
},
|
|
713
|
-
if (!
|
|
749
|
+
body: JSON.stringify(p)
|
|
750
|
+
}, b = await fetch(this.baseSearchUrl, m);
|
|
751
|
+
if (!b.ok)
|
|
714
752
|
throw new Error(
|
|
715
|
-
`Error: ${
|
|
753
|
+
`Error: ${b.statusText} (Status: ${b.status})`
|
|
716
754
|
);
|
|
717
|
-
const
|
|
718
|
-
return (
|
|
719
|
-
search_term:
|
|
720
|
-
number_of_documents:
|
|
721
|
-
}),
|
|
722
|
-
|
|
723
|
-
|
|
755
|
+
const v = await b.json();
|
|
756
|
+
return (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
|
|
757
|
+
search_term: i,
|
|
758
|
+
number_of_documents: v.data.count
|
|
759
|
+
}), this.parent.emitEvent("query_fetched", {
|
|
760
|
+
name: "query_fetched",
|
|
761
|
+
data: {
|
|
762
|
+
searchTerm: i
|
|
763
|
+
}
|
|
764
|
+
}), (((u = v.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
|
|
765
|
+
name: "no_results_returned"
|
|
766
|
+
}), (l = this.parent.adClient) == null || l.onQueryFetched(n, v), v;
|
|
767
|
+
} catch (p) {
|
|
768
|
+
throw console.error("Error parsing response:", p), p;
|
|
724
769
|
}
|
|
725
770
|
}), this.parent = t, this.config = r, this.userId = a;
|
|
726
771
|
}
|
|
@@ -731,7 +776,7 @@ class Yn {
|
|
|
731
776
|
return `${this.config.endpointURL}/index/${this.config.index.join(",")}/search`;
|
|
732
777
|
}
|
|
733
778
|
}
|
|
734
|
-
class
|
|
779
|
+
class Yn {
|
|
735
780
|
constructor(t, r) {
|
|
736
781
|
if (F(this, "config"), F(this, "measureClient"), F(this, "searchClient"), F(this, "adClient"), F(this, "userId"), F(this, "requestTimeout"), F(this, "subscriptionEvents", {}), F(this, "getItems", (a, n, o) => {
|
|
737
782
|
const s = async () => {
|
|
@@ -745,9 +790,7 @@ class qn {
|
|
|
745
790
|
id: Ct(),
|
|
746
791
|
document: p
|
|
747
792
|
}));
|
|
748
|
-
|
|
749
|
-
name: "no_results_returned"
|
|
750
|
-
}), n(l, i);
|
|
793
|
+
n(l, i);
|
|
751
794
|
})(), (async () => {
|
|
752
795
|
if (this.adClient) {
|
|
753
796
|
const c = await this.adClient.getAdsForSearchParams(a);
|
|
@@ -766,7 +809,7 @@ class qn {
|
|
|
766
809
|
this.config = {
|
|
767
810
|
...t,
|
|
768
811
|
// Strips off the trailing '/' from an endpointURL if one is accidentally added
|
|
769
|
-
endpointURL:
|
|
812
|
+
endpointURL: Gn(t.endpointURL)
|
|
770
813
|
}, this.userId = "", this.initClients(this.config, r), this.initInputForms(), this.startObservingMutations();
|
|
771
814
|
}
|
|
772
815
|
initInputForms() {
|
|
@@ -795,7 +838,7 @@ class qn {
|
|
|
795
838
|
initClients(t, r) {
|
|
796
839
|
setTimeout(async () => {
|
|
797
840
|
let a = this.config.userId;
|
|
798
|
-
switch (a || (a = await Cn()), this.measureClient = new jn(t, r, a), this.searchClient = new
|
|
841
|
+
switch (a || (a = await Cn()), this.measureClient = new jn(t, r, a), this.searchClient = new qn(this, t, a), t.adSource) {
|
|
799
842
|
case "adMarketplace":
|
|
800
843
|
this.adClient = new Un(t);
|
|
801
844
|
break;
|
|
@@ -821,14 +864,41 @@ class qn {
|
|
|
821
864
|
this.subscriptionEvents[t] = this.subscriptionEvents[t].filter((a) => a !== r);
|
|
822
865
|
};
|
|
823
866
|
}
|
|
867
|
+
/**
|
|
868
|
+
* Called when a `<searchcraft-ad>` component is rendered
|
|
869
|
+
*/
|
|
870
|
+
handleAdContainerRendered(t) {
|
|
871
|
+
var r;
|
|
872
|
+
if (t.adSource === "adMarketplace") {
|
|
873
|
+
const a = t.adClientResponseItem;
|
|
874
|
+
(r = a.admAd) != null && r.impression_url && fetch(a.admAd.impression_url);
|
|
875
|
+
}
|
|
876
|
+
this.emitEvent("ad_container_rendered", {
|
|
877
|
+
name: "ad_container_rendered",
|
|
878
|
+
data: {
|
|
879
|
+
adContainerId: t.adContainerId,
|
|
880
|
+
adSource: t.adSource,
|
|
881
|
+
searchTerm: t.searchTerm
|
|
882
|
+
}
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* Perform various actions when the input is cleared
|
|
887
|
+
*/
|
|
888
|
+
handleInputCleared() {
|
|
889
|
+
var t;
|
|
890
|
+
this.emitEvent("input_cleared", {
|
|
891
|
+
name: "input_cleared"
|
|
892
|
+
}), (t = this.adClient) == null || t.onInputCleared();
|
|
893
|
+
}
|
|
824
894
|
}
|
|
825
|
-
const
|
|
895
|
+
const Qn = "searchcraft-javascript-sdk", Ve = (
|
|
826
896
|
/* searchcraft-javascript-sdk */
|
|
827
897
|
{ allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !1, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, modernPropertyDecls: !0, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !1, svg: !0, taskQueue: !0, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !1, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
|
|
828
898
|
);
|
|
829
|
-
var
|
|
899
|
+
var Kn = Object.defineProperty, Xn = (e, t) => {
|
|
830
900
|
for (var r in t)
|
|
831
|
-
|
|
901
|
+
Kn(e, r, { get: t[r], enumerable: !0 });
|
|
832
902
|
}, Jn = "http://www.w3.org/2000/svg", Zn = "http://www.w3.org/1999/xhtml", eo = (e, t) => {
|
|
833
903
|
var r;
|
|
834
904
|
const a = t.$cmpMeta$;
|
|
@@ -857,8 +927,8 @@ var Xn = Object.defineProperty, Qn = (e, t) => {
|
|
|
857
927
|
r.$onReadyPromise$ = new Promise((n) => r.$onReadyResolve$ = n), e["s-p"] = [], e["s-rc"] = [];
|
|
858
928
|
const a = dr.set(e, r);
|
|
859
929
|
return eo(e, r), a;
|
|
860
|
-
}, da = (e, t) => t in e, At = (e, t) => (0, console.error)(e, t), It = typeof window < "u" ? window : {},
|
|
861
|
-
},
|
|
930
|
+
}, da = (e, t) => t in e, At = (e, t) => (0, console.error)(e, t), It = typeof window < "u" ? window : {}, Ge = It.document || { head: {} }, D = It.HTMLElement || class {
|
|
931
|
+
}, ne = {
|
|
862
932
|
$flags$: 0,
|
|
863
933
|
$resourcesUrl$: "",
|
|
864
934
|
jmp: (e) => e(),
|
|
@@ -867,7 +937,7 @@ var Xn = Object.defineProperty, Qn = (e, t) => {
|
|
|
867
937
|
rel: (e, t, r, a) => e.removeEventListener(t, r, a),
|
|
868
938
|
ce: (e, t) => new CustomEvent(e, t)
|
|
869
939
|
}, ao = Ve.shadowDom, so = (e) => Promise.resolve(e), ir = !1, pa = [], ja = [], no = (e, t) => (r) => {
|
|
870
|
-
e.push(r), ir || (ir = !0,
|
|
940
|
+
e.push(r), ir || (ir = !0, ne.$flags$ & 4 ? pr(cr) : ne.raf(cr));
|
|
871
941
|
}, ma = (e) => {
|
|
872
942
|
for (let t = 0; t < e.length; t++)
|
|
873
943
|
try {
|
|
@@ -877,10 +947,10 @@ var Xn = Object.defineProperty, Qn = (e, t) => {
|
|
|
877
947
|
}
|
|
878
948
|
e.length = 0;
|
|
879
949
|
}, cr = () => {
|
|
880
|
-
ma(pa), ma(ja), (ir = pa.length > 0) &&
|
|
950
|
+
ma(pa), ma(ja), (ir = pa.length > 0) && ne.raf(cr);
|
|
881
951
|
}, pr = (e) => so().then(e), oo = /* @__PURE__ */ no(ja), mr = (e) => (e = typeof e, e === "object" || e === "function"), io = {};
|
|
882
|
-
|
|
883
|
-
err: () =>
|
|
952
|
+
Xn(io, {
|
|
953
|
+
err: () => Wa,
|
|
884
954
|
map: () => co,
|
|
885
955
|
ok: () => lr,
|
|
886
956
|
unwrap: () => lo,
|
|
@@ -890,7 +960,7 @@ var lr = (e) => ({
|
|
|
890
960
|
isOk: !0,
|
|
891
961
|
isErr: !1,
|
|
892
962
|
value: e
|
|
893
|
-
}),
|
|
963
|
+
}), Wa = (e) => ({
|
|
894
964
|
isOk: !1,
|
|
895
965
|
isErr: !0,
|
|
896
966
|
value: e
|
|
@@ -902,7 +972,7 @@ function co(e, t) {
|
|
|
902
972
|
}
|
|
903
973
|
if (e.isErr) {
|
|
904
974
|
const r = e.value;
|
|
905
|
-
return
|
|
975
|
+
return Wa(r);
|
|
906
976
|
}
|
|
907
977
|
throw "should never get here";
|
|
908
978
|
}
|
|
@@ -914,14 +984,14 @@ var lo = (e) => {
|
|
|
914
984
|
if (e.isErr)
|
|
915
985
|
return e.value;
|
|
916
986
|
throw e.value;
|
|
917
|
-
},
|
|
987
|
+
}, Ga = (e) => {
|
|
918
988
|
const t = e.__childNodes || e.childNodes;
|
|
919
989
|
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Va(t, e.tagName).forEach((r) => {
|
|
920
990
|
var a;
|
|
921
991
|
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((a = ho(r, r["s-sn"], !1)) != null && a.length ? r.hidden = !0 : r.hidden = !1);
|
|
922
992
|
});
|
|
923
993
|
for (const r of t)
|
|
924
|
-
r.nodeType === 1 && (r.__childNodes || r.childNodes).length &&
|
|
994
|
+
r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Ga(r);
|
|
925
995
|
};
|
|
926
996
|
function Va(e, t, r) {
|
|
927
997
|
let a = 0, n = [], o;
|
|
@@ -938,14 +1008,14 @@ var ho = (e, t, r = !0) => {
|
|
|
938
1008
|
}, d = (e, t, ...r) => {
|
|
939
1009
|
let a = null, n = null, o = null, s = !1, c = !1;
|
|
940
1010
|
const u = [], l = (p) => {
|
|
941
|
-
for (let
|
|
942
|
-
a = p[
|
|
1011
|
+
for (let m = 0; m < p.length; m++)
|
|
1012
|
+
a = p[m], Array.isArray(a) ? l(a) : a != null && typeof a != "boolean" && ((s = typeof e != "function" && !mr(a)) && (a = String(a)), s && c ? u[u.length - 1].$text$ += a : u.push(s ? Tt(null, a) : a), c = s);
|
|
943
1013
|
};
|
|
944
1014
|
if (l(r), t) {
|
|
945
1015
|
t.key && (n = t.key), t.name && (o = t.name);
|
|
946
1016
|
{
|
|
947
1017
|
const p = t.className || t.class;
|
|
948
|
-
p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((
|
|
1018
|
+
p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((m) => p[m]).join(" "));
|
|
949
1019
|
}
|
|
950
1020
|
}
|
|
951
1021
|
if (typeof e == "function")
|
|
@@ -966,9 +1036,9 @@ var ho = (e, t, r = !0) => {
|
|
|
966
1036
|
};
|
|
967
1037
|
return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
|
|
968
1038
|
}, fo = {}, po = (e) => e && e.$tag$ === fo, mo = {
|
|
969
|
-
forEach: (e, t) => e.map(
|
|
970
|
-
map: (e, t) => e.map(
|
|
971
|
-
},
|
|
1039
|
+
forEach: (e, t) => e.map(va).forEach(t),
|
|
1040
|
+
map: (e, t) => e.map(va).map(t).map(go)
|
|
1041
|
+
}, va = (e) => ({
|
|
972
1042
|
vattrs: e.$attrs$,
|
|
973
1043
|
vchildren: e.$children$,
|
|
974
1044
|
vkey: e.$key$,
|
|
@@ -982,20 +1052,20 @@ var ho = (e, t, r = !0) => {
|
|
|
982
1052
|
}
|
|
983
1053
|
const t = Tt(e.vtag, e.vtext);
|
|
984
1054
|
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
|
985
|
-
},
|
|
986
|
-
const a =
|
|
1055
|
+
}, qa = (e, t) => e != null && !mr(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, vo = (e) => e, ke = (e, t, r) => {
|
|
1056
|
+
const a = vo(e);
|
|
987
1057
|
return {
|
|
988
|
-
emit: (n) =>
|
|
1058
|
+
emit: (n) => Ya(a, t, {
|
|
989
1059
|
bubbles: !0,
|
|
990
1060
|
composed: !0,
|
|
991
1061
|
cancelable: !0,
|
|
992
1062
|
detail: n
|
|
993
1063
|
})
|
|
994
1064
|
};
|
|
995
|
-
},
|
|
996
|
-
const a =
|
|
1065
|
+
}, Ya = (e, t, r) => {
|
|
1066
|
+
const a = ne.ce(t, r);
|
|
997
1067
|
return e.dispatchEvent(a), a;
|
|
998
|
-
}, wt = /* @__PURE__ */ new WeakMap(),
|
|
1068
|
+
}, wt = /* @__PURE__ */ new WeakMap(), ba = (e, t, r, a, n, o) => {
|
|
999
1069
|
if (r !== a) {
|
|
1000
1070
|
let s = da(e, t), c = t.toLowerCase();
|
|
1001
1071
|
if (t === "class") {
|
|
@@ -1011,8 +1081,8 @@ var ho = (e, t, r = !0) => {
|
|
|
1011
1081
|
(!r || a[u] !== r[u]) && (u.includes("-") ? e.style.setProperty(u, a[u]) : e.style[u] = a[u]);
|
|
1012
1082
|
} else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
|
|
1013
1083
|
if (t[2] === "-" ? t = t.slice(3) : da(It, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || a) {
|
|
1014
|
-
const u = t.endsWith(
|
|
1015
|
-
t = t.replace(yo, ""), r &&
|
|
1084
|
+
const u = t.endsWith(Qa);
|
|
1085
|
+
t = t.replace(yo, ""), r && ne.rel(e, t, r, u), a && ne.ael(e, t, a, u);
|
|
1016
1086
|
}
|
|
1017
1087
|
} else {
|
|
1018
1088
|
const u = mr(a);
|
|
@@ -1029,12 +1099,12 @@ var ho = (e, t, r = !0) => {
|
|
|
1029
1099
|
a == null || a === !1 ? (a !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!s || o & 4 || n) && !u && (a = a === !0 ? "" : a, e.setAttribute(t, a));
|
|
1030
1100
|
}
|
|
1031
1101
|
}
|
|
1032
|
-
},
|
|
1102
|
+
}, bo = /\s/, ya = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(bo) : []), Qa = "Capture", yo = new RegExp(Qa + "$"), Ka = (e, t, r) => {
|
|
1033
1103
|
const a = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, n = e && e.$attrs$ || {}, o = t.$attrs$ || {};
|
|
1034
1104
|
for (const s of Sa(Object.keys(n)))
|
|
1035
|
-
s in o ||
|
|
1105
|
+
s in o || ba(a, s, n[s], void 0, r, t.$flags$);
|
|
1036
1106
|
for (const s of Sa(Object.keys(o)))
|
|
1037
|
-
|
|
1107
|
+
ba(a, s, n[s], o[s], r, t.$flags$);
|
|
1038
1108
|
};
|
|
1039
1109
|
function Sa(e) {
|
|
1040
1110
|
return e.includes("ref") ? (
|
|
@@ -1045,11 +1115,11 @@ function Sa(e) {
|
|
|
1045
1115
|
e
|
|
1046
1116
|
);
|
|
1047
1117
|
}
|
|
1048
|
-
var ur, gr, xt = !1, $t = !1,
|
|
1118
|
+
var ur, gr, xt = !1, $t = !1, vr = !1, ie = !1, _t = (e, t, r) => {
|
|
1049
1119
|
var a;
|
|
1050
1120
|
const n = t.$children$[r];
|
|
1051
1121
|
let o = 0, s, c, u;
|
|
1052
|
-
if (xt || (
|
|
1122
|
+
if (xt || (vr = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
|
|
1053
1123
|
// slot element has fallback content
|
|
1054
1124
|
// still create an element that "mocks" the slot element
|
|
1055
1125
|
2
|
|
@@ -1059,29 +1129,29 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1059
1129
|
// where actual slot content should sit next to
|
|
1060
1130
|
1
|
|
1061
1131
|
))), n.$text$ !== null)
|
|
1062
|
-
s = n.$elm$ =
|
|
1132
|
+
s = n.$elm$ = Ge.createTextNode(n.$text$);
|
|
1063
1133
|
else if (n.$flags$ & 1)
|
|
1064
|
-
s = n.$elm$ =
|
|
1134
|
+
s = n.$elm$ = Ge.createTextNode("");
|
|
1065
1135
|
else {
|
|
1066
|
-
if (
|
|
1067
|
-
|
|
1136
|
+
if (ie || (ie = n.$tag$ === "svg"), s = n.$elm$ = Ge.createElementNS(
|
|
1137
|
+
ie ? Jn : Zn,
|
|
1068
1138
|
!xt && Ve.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
|
|
1069
|
-
),
|
|
1139
|
+
), ie && n.$tag$ === "foreignObject" && (ie = !1), Ka(null, n, ie), n.$children$)
|
|
1070
1140
|
for (o = 0; o < n.$children$.length; ++o)
|
|
1071
1141
|
c = _t(e, n, o), c && s.appendChild(c);
|
|
1072
|
-
n.$tag$ === "svg" ?
|
|
1142
|
+
n.$tag$ === "svg" ? ie = !1 : s.tagName === "foreignObject" && (ie = !0);
|
|
1073
1143
|
}
|
|
1074
1144
|
return s["s-hn"] = gr, n.$flags$ & 3 && (s["s-sr"] = !0, s["s-cr"] = ur, s["s-sn"] = n.$name$ || "", s["s-rf"] = (a = n.$attrs$) == null ? void 0 : a.ref, u = e && e.$children$ && e.$children$[r], u && u.$tag$ === n.$tag$ && e.$elm$ && ot(e.$elm$, !1)), s;
|
|
1075
1145
|
}, ot = (e, t) => {
|
|
1076
|
-
|
|
1146
|
+
ne.$flags$ |= 1;
|
|
1077
1147
|
const r = Array.from(e.__childNodes || e.childNodes);
|
|
1078
1148
|
e["s-sr"] && Ve.experimentalSlotFixes;
|
|
1079
1149
|
for (let a = r.length - 1; a >= 0; a--) {
|
|
1080
1150
|
const n = r[a];
|
|
1081
|
-
n["s-hn"] !== gr && n["s-ol"] && (Pe(it(n).parentNode, n, it(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0,
|
|
1151
|
+
n["s-hn"] !== gr && n["s-ol"] && (Pe(it(n).parentNode, n, it(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, vr = !0), t && ot(n, t);
|
|
1082
1152
|
}
|
|
1083
|
-
|
|
1084
|
-
},
|
|
1153
|
+
ne.$flags$ &= -2;
|
|
1154
|
+
}, Xa = (e, t, r, a, n, o) => {
|
|
1085
1155
|
let s = e["s-cr"] && e["s-cr"].parentNode || e, c;
|
|
1086
1156
|
for (; n <= o; ++n)
|
|
1087
1157
|
a[n] && (c = _t(null, r, n), c && (a[n].$elm$ = c, Pe(s, c, it(t))));
|
|
@@ -1094,51 +1164,51 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1094
1164
|
}
|
|
1095
1165
|
}
|
|
1096
1166
|
}, So = (e, t, r, a, n = !1) => {
|
|
1097
|
-
let o = 0, s = 0, c = 0, u = 0, l = t.length - 1, i = t[0], p = t[l],
|
|
1098
|
-
for (; o <= l && s <=
|
|
1167
|
+
let o = 0, s = 0, c = 0, u = 0, l = t.length - 1, i = t[0], p = t[l], m = a.length - 1, b = a[0], v = a[m], $, U;
|
|
1168
|
+
for (; o <= l && s <= m; )
|
|
1099
1169
|
if (i == null)
|
|
1100
1170
|
i = t[++o];
|
|
1101
1171
|
else if (p == null)
|
|
1102
1172
|
p = t[--l];
|
|
1103
|
-
else if (
|
|
1104
|
-
|
|
1105
|
-
else if (
|
|
1106
|
-
|
|
1107
|
-
else if (
|
|
1108
|
-
je(i,
|
|
1109
|
-
else if (
|
|
1110
|
-
je(p,
|
|
1111
|
-
else if (
|
|
1112
|
-
(i.$tag$ === "slot" ||
|
|
1113
|
-
else if (
|
|
1114
|
-
(i.$tag$ === "slot" ||
|
|
1173
|
+
else if (b == null)
|
|
1174
|
+
b = a[++s];
|
|
1175
|
+
else if (v == null)
|
|
1176
|
+
v = a[--m];
|
|
1177
|
+
else if (Rt(i, b, n))
|
|
1178
|
+
je(i, b, n), i = t[++o], b = a[++s];
|
|
1179
|
+
else if (Rt(p, v, n))
|
|
1180
|
+
je(p, v, n), p = t[--l], v = a[--m];
|
|
1181
|
+
else if (Rt(i, v, n))
|
|
1182
|
+
(i.$tag$ === "slot" || v.$tag$ === "slot") && ot(i.$elm$.parentNode, !1), je(i, v, n), Pe(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], v = a[--m];
|
|
1183
|
+
else if (Rt(p, b, n))
|
|
1184
|
+
(i.$tag$ === "slot" || v.$tag$ === "slot") && ot(p.$elm$.parentNode, !1), je(p, b, n), Pe(e, p.$elm$, i.$elm$), p = t[--l], b = a[++s];
|
|
1115
1185
|
else {
|
|
1116
1186
|
for (c = -1, u = o; u <= l; ++u)
|
|
1117
|
-
if (t[u] && t[u].$key$ !== null && t[u].$key$ ===
|
|
1187
|
+
if (t[u] && t[u].$key$ !== null && t[u].$key$ === b.$key$) {
|
|
1118
1188
|
c = u;
|
|
1119
1189
|
break;
|
|
1120
1190
|
}
|
|
1121
|
-
c >= 0 ? (
|
|
1191
|
+
c >= 0 ? (U = t[c], U.$tag$ !== b.$tag$ ? $ = _t(t && t[s], r, c) : (je(U, b, n), t[c] = void 0, $ = U.$elm$), b = a[++s]) : ($ = _t(t && t[s], r, s), b = a[++s]), $ && Pe(
|
|
1122
1192
|
it(i.$elm$).parentNode,
|
|
1123
|
-
|
|
1193
|
+
$,
|
|
1124
1194
|
it(i.$elm$)
|
|
1125
1195
|
);
|
|
1126
1196
|
}
|
|
1127
|
-
o > l ?
|
|
1197
|
+
o > l ? Xa(
|
|
1128
1198
|
e,
|
|
1129
|
-
a[
|
|
1199
|
+
a[m + 1] == null ? null : a[m + 1].$elm$,
|
|
1130
1200
|
r,
|
|
1131
1201
|
a,
|
|
1132
1202
|
s,
|
|
1133
|
-
|
|
1134
|
-
) : s >
|
|
1135
|
-
},
|
|
1203
|
+
m
|
|
1204
|
+
) : s > m && Ja(t, o, l);
|
|
1205
|
+
}, Rt = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, it = (e) => e && e["s-ol"] || e, je = (e, t, r = !1) => {
|
|
1136
1206
|
const a = t.$elm$ = e.$elm$, n = e.$children$, o = t.$children$, s = t.$tag$, c = t.$text$;
|
|
1137
1207
|
let u;
|
|
1138
|
-
c === null ? (
|
|
1208
|
+
c === null ? (ie = s === "svg" ? !0 : s === "foreignObject" ? !1 : ie, s === "slot" && !xt || Ka(e, t, ie), n !== null && o !== null ? So(a, n, t, o, r) : o !== null ? (e.$text$ !== null && (a.textContent = ""), Xa(a, null, t, o, 0, o.length - 1)) : (
|
|
1139
1209
|
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
1140
1210
|
!r && Ve.updatable && n !== null && Ja(n, 0, n.length - 1)
|
|
1141
|
-
),
|
|
1211
|
+
), ie && s === "svg" && (ie = !1)) : (u = a["s-cr"]) ? u.parentNode.textContent = c : e.$text$ !== c && (a.data = c);
|
|
1142
1212
|
}, ye = [], Za = (e) => {
|
|
1143
1213
|
let t, r, a;
|
|
1144
1214
|
const n = e.__childNodes || e.childNodes;
|
|
@@ -1170,42 +1240,42 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1170
1240
|
c.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (l.$attrs$[i] = c[i]);
|
|
1171
1241
|
l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = u.$elm$ = c, xt = ao, ur = c["s-cr"], $t = !1, je(u, l, r);
|
|
1172
1242
|
{
|
|
1173
|
-
if (
|
|
1243
|
+
if (ne.$flags$ |= 1, vr) {
|
|
1174
1244
|
Za(l.$elm$);
|
|
1175
1245
|
for (const i of ye) {
|
|
1176
1246
|
const p = i.$nodeToRelocate$;
|
|
1177
1247
|
if (!p["s-ol"]) {
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1248
|
+
const m = Ge.createTextNode("");
|
|
1249
|
+
m["s-nr"] = p, Pe(p.parentNode, p["s-ol"] = m, p);
|
|
1180
1250
|
}
|
|
1181
1251
|
}
|
|
1182
1252
|
for (const i of ye) {
|
|
1183
|
-
const p = i.$nodeToRelocate$,
|
|
1184
|
-
if (
|
|
1185
|
-
const
|
|
1186
|
-
let
|
|
1253
|
+
const p = i.$nodeToRelocate$, m = i.$slotRefNode$;
|
|
1254
|
+
if (m) {
|
|
1255
|
+
const b = m.parentNode;
|
|
1256
|
+
let v = m.nextSibling;
|
|
1187
1257
|
{
|
|
1188
|
-
let
|
|
1189
|
-
for (;
|
|
1190
|
-
let
|
|
1191
|
-
if (
|
|
1192
|
-
for (
|
|
1193
|
-
|
|
1194
|
-
if (
|
|
1195
|
-
|
|
1258
|
+
let V = (a = p["s-ol"]) == null ? void 0 : a.previousSibling;
|
|
1259
|
+
for (; V; ) {
|
|
1260
|
+
let _ = (n = V["s-nr"]) != null ? n : null;
|
|
1261
|
+
if (_ && _["s-sn"] === p["s-sn"] && b === (_.__parentNode || _.parentNode)) {
|
|
1262
|
+
for (_ = _.nextSibling; _ === p || _ != null && _["s-sr"]; )
|
|
1263
|
+
_ = _ == null ? void 0 : _.nextSibling;
|
|
1264
|
+
if (!_ || !_["s-nr"]) {
|
|
1265
|
+
v = _;
|
|
1196
1266
|
break;
|
|
1197
1267
|
}
|
|
1198
1268
|
}
|
|
1199
|
-
|
|
1269
|
+
V = V.previousSibling;
|
|
1200
1270
|
}
|
|
1201
1271
|
}
|
|
1202
|
-
const
|
|
1203
|
-
(!
|
|
1272
|
+
const $ = p.__parentNode || p.parentNode, U = p.__nextSibling || p.nextSibling;
|
|
1273
|
+
(!v && b !== $ || U !== v) && p !== v && (!p["s-hn"] && p["s-ol"] && (p["s-hn"] = p["s-ol"].parentNode.nodeName), Pe(b, p, v), p.nodeType === 1 && p.tagName !== "SLOT-FB" && (p.hidden = (o = p["s-ih"]) != null ? o : !1)), p && typeof m["s-rf"] == "function" && m["s-rf"](p);
|
|
1204
1274
|
} else
|
|
1205
1275
|
p.nodeType === 1 && (r && (p["s-ih"] = (s = p.hidden) != null ? s : !1), p.hidden = !0);
|
|
1206
1276
|
}
|
|
1207
1277
|
}
|
|
1208
|
-
$t &&
|
|
1278
|
+
$t && Ga(l.$elm$), ne.$flags$ &= -2, ye.length = 0;
|
|
1209
1279
|
}
|
|
1210
1280
|
ur = void 0;
|
|
1211
1281
|
}, es = (e, t) => {
|
|
@@ -1218,21 +1288,21 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1218
1288
|
)
|
|
1219
1289
|
);
|
|
1220
1290
|
}
|
|
1221
|
-
},
|
|
1291
|
+
}, br = (e, t) => {
|
|
1222
1292
|
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
|
1223
1293
|
e.$flags$ |= 512;
|
|
1224
1294
|
return;
|
|
1225
1295
|
}
|
|
1226
|
-
return es(e, e.$ancestorComponent$), oo(() =>
|
|
1227
|
-
},
|
|
1296
|
+
return es(e, e.$ancestorComponent$), oo(() => Ro(e, t));
|
|
1297
|
+
}, Ro = (e, t) => {
|
|
1228
1298
|
const r = e.$hostElement$, a = nt("scheduleUpdate", e.$cmpMeta$.$tagName$), n = r;
|
|
1229
1299
|
if (!n)
|
|
1230
1300
|
throw new Error(
|
|
1231
1301
|
`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
1232
1302
|
);
|
|
1233
1303
|
let o;
|
|
1234
|
-
return a(),
|
|
1235
|
-
},
|
|
1304
|
+
return a(), Eo(o, () => Po(e, n, t));
|
|
1305
|
+
}, Eo = (e, t) => ko(e) ? e.then(t).catch((r) => {
|
|
1236
1306
|
console.error(r), t();
|
|
1237
1307
|
}) : t(), ko = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Po = async (e, t, r) => {
|
|
1238
1308
|
var a;
|
|
@@ -1251,9 +1321,9 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1251
1321
|
return null;
|
|
1252
1322
|
}, To = (e) => {
|
|
1253
1323
|
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, a = nt("postUpdate", t), n = r, o = e.$ancestorComponent$;
|
|
1254
|
-
e.$flags$ & 64 ? a() : (e.$flags$ |= 64, ts(r), $o(n, "componentDidLoad", void 0, r), a(), e.$onReadyResolve$(r), o || xo()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && pr(() =>
|
|
1324
|
+
e.$flags$ & 64 ? a() : (e.$flags$ |= 64, ts(r), $o(n, "componentDidLoad", void 0, r), a(), e.$onReadyResolve$(r), o || xo()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && pr(() => br(e, !1)), e.$flags$ &= -517;
|
|
1255
1325
|
}, xo = (e) => {
|
|
1256
|
-
ts(
|
|
1326
|
+
ts(Ge.documentElement), pr(() => Ya(It, "appload", { detail: { namespace: Qn } }));
|
|
1257
1327
|
}, $o = (e, t, r, a) => {
|
|
1258
1328
|
if (e && e[t])
|
|
1259
1329
|
try {
|
|
@@ -1266,22 +1336,22 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1266
1336
|
return e.classList.add((t = Ve.hydratedSelectorName) != null ? t : "hydrated");
|
|
1267
1337
|
}, _o = (e, t) => Ce(e).$instanceValues$.get(t), wa = (e, t, r, a) => {
|
|
1268
1338
|
const n = Ce(e), o = e, s = n.$instanceValues$.get(t), c = n.$flags$, u = o;
|
|
1269
|
-
r =
|
|
1339
|
+
r = qa(r, a.$members$[t][0]);
|
|
1270
1340
|
const l = Number.isNaN(s) && Number.isNaN(r);
|
|
1271
1341
|
if (r !== s && !l) {
|
|
1272
1342
|
n.$instanceValues$.set(t, r);
|
|
1273
1343
|
{
|
|
1274
1344
|
if (a.$watchers$ && c & 128) {
|
|
1275
1345
|
const p = a.$watchers$[t];
|
|
1276
|
-
p && p.map((
|
|
1346
|
+
p && p.map((m) => {
|
|
1277
1347
|
try {
|
|
1278
|
-
u[
|
|
1279
|
-
} catch (
|
|
1280
|
-
At(
|
|
1348
|
+
u[m](r, s, t);
|
|
1349
|
+
} catch (b) {
|
|
1350
|
+
At(b, o);
|
|
1281
1351
|
}
|
|
1282
1352
|
});
|
|
1283
1353
|
}
|
|
1284
|
-
(c & 18) === 2 &&
|
|
1354
|
+
(c & 18) === 2 && br(n, !1);
|
|
1285
1355
|
}
|
|
1286
1356
|
}
|
|
1287
1357
|
}, Ao = (e, t, r) => {
|
|
@@ -1301,10 +1371,10 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1301
1371
|
enumerable: !0
|
|
1302
1372
|
}), Object.defineProperty(o, c, {
|
|
1303
1373
|
set(p) {
|
|
1304
|
-
const
|
|
1374
|
+
const m = Ce(this);
|
|
1305
1375
|
if (i) {
|
|
1306
|
-
const
|
|
1307
|
-
typeof
|
|
1376
|
+
const b = u & 32 ? this[c] : m.$hostElement$[c];
|
|
1377
|
+
typeof b > "u" && m.$instanceValues$.get(c) ? p = m.$instanceValues$.get(c) : !m.$instanceValues$.get(c) && b && m.$instanceValues$.set(c, b), i.apply(this, [qa(p, u)]), p = u & 32 ? this[c] : m.$hostElement$[c], wa(this, c, p, t);
|
|
1308
1378
|
return;
|
|
1309
1379
|
}
|
|
1310
1380
|
{
|
|
@@ -1318,26 +1388,26 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1318
1388
|
{
|
|
1319
1389
|
const c = /* @__PURE__ */ new Map();
|
|
1320
1390
|
o.attributeChangedCallback = function(u, l, i) {
|
|
1321
|
-
|
|
1391
|
+
ne.jmp(() => {
|
|
1322
1392
|
var p;
|
|
1323
|
-
const
|
|
1324
|
-
if (!(this.hasOwnProperty(
|
|
1325
|
-
if (o.hasOwnProperty(
|
|
1326
|
-
this[
|
|
1393
|
+
const m = c.get(u);
|
|
1394
|
+
if (!(this.hasOwnProperty(m) && Ve.lazyLoad)) {
|
|
1395
|
+
if (o.hasOwnProperty(m) && typeof this[m] == "number" && // cast type to number to avoid TS compiler issues
|
|
1396
|
+
this[m] == i)
|
|
1327
1397
|
return;
|
|
1328
|
-
if (
|
|
1329
|
-
const
|
|
1330
|
-
if (
|
|
1331
|
-
const
|
|
1332
|
-
|
|
1333
|
-
|
|
1398
|
+
if (m == null) {
|
|
1399
|
+
const v = Ce(this), $ = v == null ? void 0 : v.$flags$;
|
|
1400
|
+
if ($ && !($ & 8) && $ & 128 && i !== l) {
|
|
1401
|
+
const V = this, _ = (p = t.$watchers$) == null ? void 0 : p[u];
|
|
1402
|
+
_ == null || _.forEach((me) => {
|
|
1403
|
+
V[me] != null && V[me].call(V, i, l, u);
|
|
1334
1404
|
});
|
|
1335
1405
|
}
|
|
1336
1406
|
return;
|
|
1337
1407
|
}
|
|
1338
1408
|
}
|
|
1339
|
-
const
|
|
1340
|
-
i = i === null && typeof this[
|
|
1409
|
+
const b = Object.getOwnPropertyDescriptor(o, m);
|
|
1410
|
+
i = i === null && typeof this[m] == "boolean" ? !1 : i, i !== this[m] && (!b.get || b.set) && (this[m] = i);
|
|
1341
1411
|
});
|
|
1342
1412
|
}, e.observedAttributes = Array.from(
|
|
1343
1413
|
/* @__PURE__ */ new Set([
|
|
@@ -1365,11 +1435,11 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1365
1435
|
);
|
|
1366
1436
|
}
|
|
1367
1437
|
}
|
|
1368
|
-
const n = t.$ancestorComponent$, o = () =>
|
|
1438
|
+
const n = t.$ancestorComponent$, o = () => br(t, !0);
|
|
1369
1439
|
n && n["s-rc"] ? n["s-rc"].push(o) : o();
|
|
1370
1440
|
}, Mo = (e, t) => {
|
|
1371
1441
|
}, Lo = (e) => {
|
|
1372
|
-
if (!(
|
|
1442
|
+
if (!(ne.$flags$ & 1)) {
|
|
1373
1443
|
const t = Ce(e), r = t.$cmpMeta$, a = nt("connectedCallback", r.$tagName$);
|
|
1374
1444
|
if (t.$flags$ & 1)
|
|
1375
1445
|
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Mo());
|
|
@@ -1394,12 +1464,12 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1394
1464
|
a();
|
|
1395
1465
|
}
|
|
1396
1466
|
}, Oo = (e) => {
|
|
1397
|
-
const t = e["s-cr"] =
|
|
1467
|
+
const t = e["s-cr"] = Ge.createComment(
|
|
1398
1468
|
""
|
|
1399
1469
|
);
|
|
1400
1470
|
t["s-cn"] = !0, Pe(e, t, e.firstChild);
|
|
1401
1471
|
}, Fo = async (e) => {
|
|
1402
|
-
|
|
1472
|
+
ne.$flags$ & 1 || Ce(e), wt.has(e) && wt.delete(e), e.shadowRoot && wt.has(e.shadowRoot) && wt.delete(e.shadowRoot);
|
|
1403
1473
|
}, N = (e, t) => {
|
|
1404
1474
|
const r = {
|
|
1405
1475
|
$flags$: t[0],
|
|
@@ -1416,7 +1486,7 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1416
1486
|
this.__hasHostListenerAttached || (Ce(this), this.__hasHostListenerAttached = !0), Lo(this), a && a.call(this);
|
|
1417
1487
|
},
|
|
1418
1488
|
disconnectedCallback() {
|
|
1419
|
-
Fo(this), n && n.call(this),
|
|
1489
|
+
Fo(this), n && n.call(this), ne.raf(() => {
|
|
1420
1490
|
var o;
|
|
1421
1491
|
const s = Ce(this);
|
|
1422
1492
|
((o = s == null ? void 0 : s.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !s.$vnode$.$elm$.isConnected && delete s.$vnode$, this instanceof Node && !this.isConnected && to(this);
|
|
@@ -1426,10 +1496,10 @@ var ur, gr, xt = !1, $t = !1, br = !1, oe = !1, _t = (e, t, r) => {
|
|
|
1426
1496
|
this.shadowRoot = this;
|
|
1427
1497
|
}
|
|
1428
1498
|
}), e.is = r.$tagName$, Ao(e, r);
|
|
1429
|
-
}, yr = (e, t) => t, Do = Object.defineProperty, No = (e, t, r) => t in e ? Do(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
1499
|
+
}, yr = (e, t) => t, Do = Object.defineProperty, No = (e, t, r) => t in e ? Do(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ra = (e, t, r) => No(e, typeof t != "symbol" ? t + "" : t, r), Me = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Me || {});
|
|
1430
1500
|
class Uo {
|
|
1431
1501
|
constructor(t) {
|
|
1432
|
-
|
|
1502
|
+
Ra(this, "logLevel"), Ra(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
|
|
1433
1503
|
}
|
|
1434
1504
|
defaultFormatter(t, r) {
|
|
1435
1505
|
return `[${Me[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
|
|
@@ -1547,14 +1617,14 @@ function Oe(e, t) {
|
|
|
1547
1617
|
};
|
|
1548
1618
|
}
|
|
1549
1619
|
}
|
|
1550
|
-
var
|
|
1620
|
+
var Et = { exclude: [] }, zo = {}, fe = function(e, t) {
|
|
1551
1621
|
typeof window < "u" && (zo[e] = t);
|
|
1552
1622
|
};
|
|
1553
1623
|
function kt(e) {
|
|
1554
1624
|
return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
|
|
1555
1625
|
}
|
|
1556
1626
|
var K = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
1557
|
-
function
|
|
1627
|
+
function le(e, t) {
|
|
1558
1628
|
return e << t | e >>> 32 - t;
|
|
1559
1629
|
}
|
|
1560
1630
|
function rs(e, t) {
|
|
@@ -1564,7 +1634,7 @@ function rs(e, t) {
|
|
|
1564
1634
|
(function(o, s) {
|
|
1565
1635
|
for (var c = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * c), l = 0; l < c; l++) {
|
|
1566
1636
|
var i = u.subarray(4 * l, 4 * (l + 1));
|
|
1567
|
-
i[0] = Math.imul(i[0], K[0]), i[0] =
|
|
1637
|
+
i[0] = Math.imul(i[0], K[0]), i[0] = le(i[0], 15), i[0] = Math.imul(i[0], K[1]), s[0] = s[0] ^ i[0], s[0] = le(s[0], 19), s[0] = s[0] + s[1], s[0] = Math.imul(s[0], 5) + 1444728091, i[1] = Math.imul(i[1], K[1]), i[1] = le(i[1], 16), i[1] = Math.imul(i[1], K[2]), s[1] = s[1] ^ i[1], s[1] = le(s[1], 17), s[1] = s[1] + s[2], s[1] = Math.imul(s[1], 5) + 197830471, i[2] = Math.imul(i[2], K[2]), i[2] = le(i[2], 17), i[2] = Math.imul(i[2], K[3]), s[2] = s[2] ^ i[2], s[2] = le(s[2], 15), s[2] = s[2] + s[3], s[2] = Math.imul(s[2], 5) + 2530024501, i[3] = Math.imul(i[3], K[3]), i[3] = le(i[3], 18), i[3] = Math.imul(i[3], K[0]), s[3] = s[3] ^ i[3], s[3] = le(s[3], 13), s[3] = s[3] + s[0], s[3] = Math.imul(s[3], 5) + 850148119;
|
|
1568
1638
|
}
|
|
1569
1639
|
})(e, a), function(o, s) {
|
|
1570
1640
|
var c = o.byteLength / 16 | 0, u = o.byteLength % 16, l = new Uint32Array(4), i = new Uint8Array(o, 16 * c, u);
|
|
@@ -1574,7 +1644,7 @@ function rs(e, t) {
|
|
|
1574
1644
|
case 14:
|
|
1575
1645
|
l[3] = l[3] ^ i[13] << 8;
|
|
1576
1646
|
case 13:
|
|
1577
|
-
l[3] = l[3] ^ i[12] << 0, l[3] = Math.imul(l[3], K[3]), l[3] =
|
|
1647
|
+
l[3] = l[3] ^ i[12] << 0, l[3] = Math.imul(l[3], K[3]), l[3] = le(l[3], 18), l[3] = Math.imul(l[3], K[0]), s[3] = s[3] ^ l[3];
|
|
1578
1648
|
case 12:
|
|
1579
1649
|
l[2] = l[2] ^ i[11] << 24;
|
|
1580
1650
|
case 11:
|
|
@@ -1582,7 +1652,7 @@ function rs(e, t) {
|
|
|
1582
1652
|
case 10:
|
|
1583
1653
|
l[2] = l[2] ^ i[9] << 8;
|
|
1584
1654
|
case 9:
|
|
1585
|
-
l[2] = l[2] ^ i[8] << 0, l[2] = Math.imul(l[2], K[2]), l[2] =
|
|
1655
|
+
l[2] = l[2] ^ i[8] << 0, l[2] = Math.imul(l[2], K[2]), l[2] = le(l[2], 17), l[2] = Math.imul(l[2], K[3]), s[2] = s[2] ^ l[2];
|
|
1586
1656
|
case 8:
|
|
1587
1657
|
l[1] = l[1] ^ i[7] << 24;
|
|
1588
1658
|
case 7:
|
|
@@ -1590,7 +1660,7 @@ function rs(e, t) {
|
|
|
1590
1660
|
case 6:
|
|
1591
1661
|
l[1] = l[1] ^ i[5] << 8;
|
|
1592
1662
|
case 5:
|
|
1593
|
-
l[1] = l[1] ^ i[4] << 0, l[1] = Math.imul(l[1], K[1]), l[1] =
|
|
1663
|
+
l[1] = l[1] ^ i[4] << 0, l[1] = Math.imul(l[1], K[1]), l[1] = le(l[1], 16), l[1] = Math.imul(l[1], K[2]), s[1] = s[1] ^ l[1];
|
|
1594
1664
|
case 4:
|
|
1595
1665
|
l[0] = l[0] ^ i[3] << 24;
|
|
1596
1666
|
case 3:
|
|
@@ -1598,7 +1668,7 @@ function rs(e, t) {
|
|
|
1598
1668
|
case 2:
|
|
1599
1669
|
l[0] = l[0] ^ i[1] << 8;
|
|
1600
1670
|
case 1:
|
|
1601
|
-
l[0] = l[0] ^ i[0] << 0, l[0] = Math.imul(l[0], K[0]), l[0] =
|
|
1671
|
+
l[0] = l[0] ^ i[0] << 0, l[0] = Math.imul(l[0], K[0]), l[0] = le(l[0], 15), l[0] = Math.imul(l[0], K[1]), s[0] = s[0] ^ l[0];
|
|
1602
1672
|
}
|
|
1603
1673
|
}(e, a), function(o, s) {
|
|
1604
1674
|
s[0] = s[0] ^ o.byteLength, s[1] = s[1] ^ o.byteLength, s[2] = s[2] ^ o.byteLength, s[3] = s[3] ^ o.byteLength, s[0] = s[0] + s[1] | 0, s[0] = s[0] + s[2] | 0, s[0] = s[0] + s[3] | 0, s[1] = s[1] + s[0] | 0, s[2] = s[2] + s[0] | 0, s[3] = s[3] + s[0] | 0, s[0] = kt(s[0]), s[1] = kt(s[1]), s[2] = kt(s[2]), s[3] = kt(s[3]), s[0] = s[0] + s[1] | 0, s[0] = s[0] + s[2] | 0, s[0] = s[0] + s[3] | 0, s[1] = s[1] + s[0] | 0, s[2] = s[2] + s[0] | 0, s[3] = s[3] + s[0] | 0;
|
|
@@ -1654,14 +1724,14 @@ fe("audio", function() {
|
|
|
1654
1724
|
});
|
|
1655
1725
|
});
|
|
1656
1726
|
});
|
|
1657
|
-
var jo = ct().name !== "SamsungBrowser" ? 1 : 3,
|
|
1727
|
+
var jo = ct().name !== "SamsungBrowser" ? 1 : 3, Ea = 280, ka = 20;
|
|
1658
1728
|
ct().name != "Firefox" && fe("canvas", function() {
|
|
1659
1729
|
return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
|
|
1660
1730
|
var t = Array.from({ length: jo }, function() {
|
|
1661
1731
|
return function() {
|
|
1662
1732
|
var r = document.createElement("canvas"), a = r.getContext("2d");
|
|
1663
1733
|
if (!a) return new ImageData(1, 1);
|
|
1664
|
-
r.width =
|
|
1734
|
+
r.width = Ea, r.height = ka;
|
|
1665
1735
|
var n = a.createLinearGradient(0, 0, r.width, r.height);
|
|
1666
1736
|
n.addColorStop(0, "red"), n.addColorStop(0.16666666666666666, "orange"), n.addColorStop(0.3333333333333333, "yellow"), n.addColorStop(0.5, "green"), n.addColorStop(0.6666666666666666, "blue"), n.addColorStop(0.8333333333333334, "indigo"), n.addColorStop(1, "violet"), a.fillStyle = n, a.fillRect(0, 0, r.width, r.height);
|
|
1667
1737
|
var o = "Random Text WMwmil10Oo";
|
|
@@ -1670,10 +1740,10 @@ ct().name != "Firefox" && fe("canvas", function() {
|
|
|
1670
1740
|
return s;
|
|
1671
1741
|
}();
|
|
1672
1742
|
});
|
|
1673
|
-
e({ commonImageDataHash: rs(as(t,
|
|
1743
|
+
e({ commonImageDataHash: rs(as(t, Ea, ka).data.toString()).toString() });
|
|
1674
1744
|
});
|
|
1675
1745
|
});
|
|
1676
|
-
var ar,
|
|
1746
|
+
var ar, Wo = ["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"], Go = ["monospace", "sans-serif", "serif"];
|
|
1677
1747
|
function Pa(e, t) {
|
|
1678
1748
|
if (!e) throw new Error("Canvas context not supported");
|
|
1679
1749
|
return e.font = "72px ".concat(t), e.measureText("WwMmLli0Oo").width;
|
|
@@ -1694,11 +1764,11 @@ function Vo() {
|
|
|
1694
1764
|
}
|
|
1695
1765
|
return "undefined";
|
|
1696
1766
|
}
|
|
1697
|
-
function
|
|
1767
|
+
function qo() {
|
|
1698
1768
|
var e = new Float32Array(1), t = new Uint8Array(e.buffer);
|
|
1699
1769
|
return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
|
|
1700
1770
|
}
|
|
1701
|
-
function
|
|
1771
|
+
function Yo(e, t) {
|
|
1702
1772
|
var r = {};
|
|
1703
1773
|
return t.forEach(function(a) {
|
|
1704
1774
|
var n = function(o) {
|
|
@@ -1720,7 +1790,7 @@ function qo(e, t) {
|
|
|
1720
1790
|
n && (r[a] = n);
|
|
1721
1791
|
}), r;
|
|
1722
1792
|
}
|
|
1723
|
-
function
|
|
1793
|
+
function Qo() {
|
|
1724
1794
|
var e = [], t = { "prefers-contrast": ["high", "more", "low", "less", "forced", "no-preference"], "any-hover": ["hover", "none"], "any-pointer": ["none", "coarse", "fine"], pointer: ["none", "coarse", "fine"], hover: ["hover", "none"], update: ["fast", "slow"], "inverted-colors": ["inverted", "none"], "prefers-reduced-motion": ["reduce", "no-preference"], "prefers-reduced-transparency": ["reduce", "no-preference"], scripting: ["none", "initial-only", "enabled"], "forced-colors": ["active", "none"] };
|
|
1725
1795
|
return Object.keys(t).forEach(function(r) {
|
|
1726
1796
|
t[r].forEach(function(a) {
|
|
@@ -1728,7 +1798,7 @@ function Ko() {
|
|
|
1728
1798
|
});
|
|
1729
1799
|
}), e;
|
|
1730
1800
|
}
|
|
1731
|
-
function
|
|
1801
|
+
function Ko() {
|
|
1732
1802
|
if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
|
|
1733
1803
|
for (var e = window.ApplePaySession.supportsVersion, t = 15; t > 0; t--) if (e(t)) return t;
|
|
1734
1804
|
} catch {
|
|
@@ -1766,9 +1836,9 @@ ct().name != "Firefox" && fe("fonts", function() {
|
|
|
1766
1836
|
return Le(e, void 0, void 0, function() {
|
|
1767
1837
|
var o, s, c, u;
|
|
1768
1838
|
return Oe(this, function(l) {
|
|
1769
|
-
return o = n.createElement("canvas"), s = o.getContext("2d"), c =
|
|
1839
|
+
return o = n.createElement("canvas"), s = o.getContext("2d"), c = Go.map(function(i) {
|
|
1770
1840
|
return Pa(s, i);
|
|
1771
|
-
}), u = {},
|
|
1841
|
+
}), u = {}, Wo.forEach(function(i) {
|
|
1772
1842
|
var p = Pa(s, i);
|
|
1773
1843
|
c.includes(p) || (u[i] = p);
|
|
1774
1844
|
}), t(u), [2];
|
|
@@ -1782,7 +1852,7 @@ ct().name != "Firefox" && fe("fonts", function() {
|
|
|
1782
1852
|
}), fe("hardware", function() {
|
|
1783
1853
|
return new Promise(function(e, t) {
|
|
1784
1854
|
var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, a = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
1785
|
-
e({ videocard: Vo(), architecture:
|
|
1855
|
+
e({ videocard: Vo(), architecture: qo(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: a.jsHeapSizeLimit || 0 });
|
|
1786
1856
|
});
|
|
1787
1857
|
}), fe("locales", function() {
|
|
1788
1858
|
return new Promise(function(e) {
|
|
@@ -1792,7 +1862,7 @@ ct().name != "Firefox" && fe("fonts", function() {
|
|
|
1792
1862
|
return Le(this, void 0, void 0, function() {
|
|
1793
1863
|
var e;
|
|
1794
1864
|
return Oe(this, function(t) {
|
|
1795
|
-
return ar = (
|
|
1865
|
+
return ar = (Et == null ? void 0 : Et.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (Et == null ? void 0 : Et.retries) || 3 }, function() {
|
|
1796
1866
|
return function() {
|
|
1797
1867
|
return Le(this, void 0, void 0, function() {
|
|
1798
1868
|
var r, a, n, o, s;
|
|
@@ -1818,7 +1888,7 @@ ct().name != "Firefox" && fe("fonts", function() {
|
|
|
1818
1888
|
});
|
|
1819
1889
|
}();
|
|
1820
1890
|
}), [2, Promise.all(e).then(function(r) {
|
|
1821
|
-
return
|
|
1891
|
+
return Yo(r, ar);
|
|
1822
1892
|
})];
|
|
1823
1893
|
});
|
|
1824
1894
|
});
|
|
@@ -1833,23 +1903,23 @@ ct().name != "Firefox" && fe("fonts", function() {
|
|
|
1833
1903
|
});
|
|
1834
1904
|
}), fe("screen", function() {
|
|
1835
1905
|
return new Promise(function(e) {
|
|
1836
|
-
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches:
|
|
1906
|
+
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: Qo() });
|
|
1837
1907
|
});
|
|
1838
1908
|
}), fe("system", function() {
|
|
1839
1909
|
return new Promise(function(e) {
|
|
1840
1910
|
var t = ct();
|
|
1841
|
-
e({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: t.name, version: t.version }, applePayVersion:
|
|
1911
|
+
e({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: t.name, version: t.version }, applePayVersion: Ko() });
|
|
1842
1912
|
});
|
|
1843
1913
|
});
|
|
1844
|
-
var
|
|
1914
|
+
var re, Xo = ct().name !== "SamsungBrowser" ? 1 : 3, E = null;
|
|
1845
1915
|
fe("webgl", function() {
|
|
1846
1916
|
return Le(this, void 0, void 0, function() {
|
|
1847
1917
|
var e;
|
|
1848
1918
|
return Oe(this, function(t) {
|
|
1849
|
-
typeof document < "u" && ((
|
|
1919
|
+
typeof document < "u" && ((re = document.createElement("canvas")).width = 200, re.height = 100, E = re.getContext("webgl"));
|
|
1850
1920
|
try {
|
|
1851
1921
|
if (!E) throw new Error("WebGL not supported");
|
|
1852
|
-
return e = Array.from({ length:
|
|
1922
|
+
return e = Array.from({ length: Xo }, function() {
|
|
1853
1923
|
return function() {
|
|
1854
1924
|
try {
|
|
1855
1925
|
if (!E) throw new Error("WebGL not supported");
|
|
@@ -1873,21 +1943,21 @@ fe("webgl", function() {
|
|
|
1873
1943
|
E.useProgram(s);
|
|
1874
1944
|
for (var c = 137, u = new Float32Array(4 * c), l = 2 * Math.PI / c, i = 0; i < c; i++) {
|
|
1875
1945
|
var p = i * l;
|
|
1876
|
-
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (
|
|
1946
|
+
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (re.width / 2), u[4 * i + 3] = Math.sin(p) * (re.height / 2);
|
|
1877
1947
|
}
|
|
1878
|
-
var
|
|
1879
|
-
E.bindBuffer(E.ARRAY_BUFFER,
|
|
1880
|
-
var
|
|
1881
|
-
E.enableVertexAttribArray(
|
|
1882
|
-
var
|
|
1883
|
-
return E.readPixels(0, 0,
|
|
1948
|
+
var m = E.createBuffer();
|
|
1949
|
+
E.bindBuffer(E.ARRAY_BUFFER, m), E.bufferData(E.ARRAY_BUFFER, u, E.STATIC_DRAW);
|
|
1950
|
+
var b = E.getAttribLocation(s, "position");
|
|
1951
|
+
E.enableVertexAttribArray(b), E.vertexAttribPointer(b, 2, E.FLOAT, !1, 0, 0), E.viewport(0, 0, re.width, re.height), E.clearColor(0, 0, 0, 1), E.clear(E.COLOR_BUFFER_BIT), E.drawArrays(E.LINES, 0, 2 * c);
|
|
1952
|
+
var v = new Uint8ClampedArray(re.width * re.height * 4);
|
|
1953
|
+
return E.readPixels(0, 0, re.width, re.height, E.RGBA, E.UNSIGNED_BYTE, v), new ImageData(v, re.width, re.height);
|
|
1884
1954
|
} catch {
|
|
1885
1955
|
return new ImageData(1, 1);
|
|
1886
1956
|
} finally {
|
|
1887
1957
|
E && (E.bindBuffer(E.ARRAY_BUFFER, null), E.useProgram(null), E.viewport(0, 0, E.drawingBufferWidth, E.drawingBufferHeight), E.clearColor(0, 0, 0, 0));
|
|
1888
1958
|
}
|
|
1889
1959
|
}();
|
|
1890
|
-
}), [2, { commonImageHash: rs(as(e,
|
|
1960
|
+
}), [2, { commonImageHash: rs(as(e, re.width, re.height).data.toString()).toString() }];
|
|
1891
1961
|
} catch {
|
|
1892
1962
|
return [2, { webgl: "unsupported" }];
|
|
1893
1963
|
}
|
|
@@ -1913,8 +1983,8 @@ const Ca = (e) => {
|
|
|
1913
1983
|
const r = /* @__PURE__ */ new Set(), a = (l, i) => {
|
|
1914
1984
|
const p = typeof l == "function" ? l(t) : l;
|
|
1915
1985
|
if (!Object.is(p, t)) {
|
|
1916
|
-
const
|
|
1917
|
-
t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((
|
|
1986
|
+
const m = t;
|
|
1987
|
+
t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((b) => b(t, m));
|
|
1918
1988
|
}
|
|
1919
1989
|
}, n = () => t, c = { setState: a, getState: n, getInitialState: () => u, subscribe: (l) => (r.add(l), () => r.delete(l)) }, u = t = e(a, n, c);
|
|
1920
1990
|
return c;
|
|
@@ -1930,7 +2000,7 @@ var wr = {}, ns = { exports: {} }, k = {};
|
|
|
1930
2000
|
* This source code is licensed under the MIT license found in the
|
|
1931
2001
|
* LICENSE file in the root directory of this source tree.
|
|
1932
2002
|
*/
|
|
1933
|
-
var
|
|
2003
|
+
var Rr = Symbol.for("react.transitional.element"), Zo = Symbol.for("react.portal"), ei = Symbol.for("react.fragment"), ti = Symbol.for("react.strict_mode"), ri = Symbol.for("react.profiler"), ai = Symbol.for("react.consumer"), si = Symbol.for("react.context"), ni = Symbol.for("react.forward_ref"), oi = Symbol.for("react.suspense"), ii = Symbol.for("react.memo"), os = Symbol.for("react.lazy"), Ta = Symbol.iterator;
|
|
1934
2004
|
function ci(e) {
|
|
1935
2005
|
return e === null || typeof e != "object" ? null : (e = Ta && e[Ta] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1936
2006
|
}
|
|
@@ -1945,34 +2015,34 @@ var is = {
|
|
|
1945
2015
|
enqueueSetState: function() {
|
|
1946
2016
|
}
|
|
1947
2017
|
}, cs = Object.assign, ls = {};
|
|
1948
|
-
function
|
|
2018
|
+
function qe(e, t, r) {
|
|
1949
2019
|
this.props = e, this.context = t, this.refs = ls, this.updater = r || is;
|
|
1950
2020
|
}
|
|
1951
|
-
|
|
1952
|
-
|
|
2021
|
+
qe.prototype.isReactComponent = {};
|
|
2022
|
+
qe.prototype.setState = function(e, t) {
|
|
1953
2023
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1954
2024
|
throw Error(
|
|
1955
2025
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1956
2026
|
);
|
|
1957
2027
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
1958
2028
|
};
|
|
1959
|
-
|
|
2029
|
+
qe.prototype.forceUpdate = function(e) {
|
|
1960
2030
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1961
2031
|
};
|
|
1962
2032
|
function us() {
|
|
1963
2033
|
}
|
|
1964
|
-
us.prototype =
|
|
1965
|
-
function
|
|
2034
|
+
us.prototype = qe.prototype;
|
|
2035
|
+
function Er(e, t, r) {
|
|
1966
2036
|
this.props = e, this.context = t, this.refs = ls, this.updater = r || is;
|
|
1967
2037
|
}
|
|
1968
|
-
var kr =
|
|
1969
|
-
kr.constructor =
|
|
1970
|
-
cs(kr,
|
|
2038
|
+
var kr = Er.prototype = new us();
|
|
2039
|
+
kr.constructor = Er;
|
|
2040
|
+
cs(kr, qe.prototype);
|
|
1971
2041
|
kr.isPureReactComponent = !0;
|
|
1972
|
-
var xa = Array.isArray,
|
|
2042
|
+
var xa = Array.isArray, L = { H: null, A: null, T: null, S: null }, hs = Object.prototype.hasOwnProperty;
|
|
1973
2043
|
function Pr(e, t, r, a, n, o) {
|
|
1974
2044
|
return r = o.ref, {
|
|
1975
|
-
$$typeof:
|
|
2045
|
+
$$typeof: Rr,
|
|
1976
2046
|
type: e,
|
|
1977
2047
|
key: t,
|
|
1978
2048
|
ref: r !== void 0 ? r : null,
|
|
@@ -1990,7 +2060,7 @@ function li(e, t) {
|
|
|
1990
2060
|
);
|
|
1991
2061
|
}
|
|
1992
2062
|
function Cr(e) {
|
|
1993
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
2063
|
+
return typeof e == "object" && e !== null && e.$$typeof === Rr;
|
|
1994
2064
|
}
|
|
1995
2065
|
function ui(e) {
|
|
1996
2066
|
var t = { "=": "=0", ":": "=2" };
|
|
@@ -2027,7 +2097,7 @@ function hi(e) {
|
|
|
2027
2097
|
}
|
|
2028
2098
|
throw e;
|
|
2029
2099
|
}
|
|
2030
|
-
function
|
|
2100
|
+
function We(e, t, r, a, n) {
|
|
2031
2101
|
var o = typeof e;
|
|
2032
2102
|
(o === "undefined" || o === "boolean") && (e = null);
|
|
2033
2103
|
var s = !1;
|
|
@@ -2041,12 +2111,12 @@ function Ge(e, t, r, a, n) {
|
|
|
2041
2111
|
break;
|
|
2042
2112
|
case "object":
|
|
2043
2113
|
switch (e.$$typeof) {
|
|
2044
|
-
case
|
|
2114
|
+
case Rr:
|
|
2045
2115
|
case Zo:
|
|
2046
2116
|
s = !0;
|
|
2047
2117
|
break;
|
|
2048
2118
|
case os:
|
|
2049
|
-
return s = e._init,
|
|
2119
|
+
return s = e._init, We(
|
|
2050
2120
|
s(e._payload),
|
|
2051
2121
|
t,
|
|
2052
2122
|
r,
|
|
@@ -2056,7 +2126,7 @@ function Ge(e, t, r, a, n) {
|
|
|
2056
2126
|
}
|
|
2057
2127
|
}
|
|
2058
2128
|
if (s)
|
|
2059
|
-
return n = n(e), s = a === "" ? "." + sr(e, 0) : a, xa(n) ? (r = "", s != null && (r = s.replace($a, "$&/") + "/"),
|
|
2129
|
+
return n = n(e), s = a === "" ? "." + sr(e, 0) : a, xa(n) ? (r = "", s != null && (r = s.replace($a, "$&/") + "/"), We(n, t, r, "", function(l) {
|
|
2060
2130
|
return l;
|
|
2061
2131
|
})) : n != null && (Cr(n) && (n = li(
|
|
2062
2132
|
n,
|
|
@@ -2069,7 +2139,7 @@ function Ge(e, t, r, a, n) {
|
|
|
2069
2139
|
var c = a === "" ? "." : a + ":";
|
|
2070
2140
|
if (xa(e))
|
|
2071
2141
|
for (var u = 0; u < e.length; u++)
|
|
2072
|
-
a = e[u], o = c + sr(a, u), s +=
|
|
2142
|
+
a = e[u], o = c + sr(a, u), s += We(
|
|
2073
2143
|
a,
|
|
2074
2144
|
t,
|
|
2075
2145
|
r,
|
|
@@ -2078,7 +2148,7 @@ function Ge(e, t, r, a, n) {
|
|
|
2078
2148
|
);
|
|
2079
2149
|
else if (u = ci(e), typeof u == "function")
|
|
2080
2150
|
for (e = u.call(e), u = 0; !(a = e.next()).done; )
|
|
2081
|
-
a = a.value, o = c + sr(a, u++), s +=
|
|
2151
|
+
a = a.value, o = c + sr(a, u++), s += We(
|
|
2082
2152
|
a,
|
|
2083
2153
|
t,
|
|
2084
2154
|
r,
|
|
@@ -2087,7 +2157,7 @@ function Ge(e, t, r, a, n) {
|
|
|
2087
2157
|
);
|
|
2088
2158
|
else if (o === "object") {
|
|
2089
2159
|
if (typeof e.then == "function")
|
|
2090
|
-
return
|
|
2160
|
+
return We(
|
|
2091
2161
|
hi(e),
|
|
2092
2162
|
t,
|
|
2093
2163
|
r,
|
|
@@ -2103,7 +2173,7 @@ function Ge(e, t, r, a, n) {
|
|
|
2103
2173
|
function Pt(e, t, r) {
|
|
2104
2174
|
if (e == null) return e;
|
|
2105
2175
|
var a = [], n = 0;
|
|
2106
|
-
return
|
|
2176
|
+
return We(e, a, "", "", function(o) {
|
|
2107
2177
|
return t.call(r, o, n++);
|
|
2108
2178
|
}), a;
|
|
2109
2179
|
}
|
|
@@ -2169,13 +2239,13 @@ k.Children = {
|
|
|
2169
2239
|
return e;
|
|
2170
2240
|
}
|
|
2171
2241
|
};
|
|
2172
|
-
k.Component =
|
|
2242
|
+
k.Component = qe;
|
|
2173
2243
|
k.Fragment = ei;
|
|
2174
2244
|
k.Profiler = ri;
|
|
2175
|
-
k.PureComponent =
|
|
2245
|
+
k.PureComponent = Er;
|
|
2176
2246
|
k.StrictMode = ti;
|
|
2177
2247
|
k.Suspense = oi;
|
|
2178
|
-
k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
2248
|
+
k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L;
|
|
2179
2249
|
k.act = function() {
|
|
2180
2250
|
throw Error("act(...) is not supported in production builds of React.");
|
|
2181
2251
|
};
|
|
@@ -2254,76 +2324,76 @@ k.memo = function(e, t) {
|
|
|
2254
2324
|
};
|
|
2255
2325
|
};
|
|
2256
2326
|
k.startTransition = function(e) {
|
|
2257
|
-
var t =
|
|
2258
|
-
|
|
2327
|
+
var t = L.T, r = {};
|
|
2328
|
+
L.T = r;
|
|
2259
2329
|
try {
|
|
2260
|
-
var a = e(), n =
|
|
2330
|
+
var a = e(), n = L.S;
|
|
2261
2331
|
n !== null && n(r, a), typeof a == "object" && a !== null && typeof a.then == "function" && a.then(di, Aa);
|
|
2262
2332
|
} catch (o) {
|
|
2263
2333
|
Aa(o);
|
|
2264
2334
|
} finally {
|
|
2265
|
-
|
|
2335
|
+
L.T = t;
|
|
2266
2336
|
}
|
|
2267
2337
|
};
|
|
2268
2338
|
k.unstable_useCacheRefresh = function() {
|
|
2269
|
-
return
|
|
2339
|
+
return L.H.useCacheRefresh();
|
|
2270
2340
|
};
|
|
2271
2341
|
k.use = function(e) {
|
|
2272
|
-
return
|
|
2342
|
+
return L.H.use(e);
|
|
2273
2343
|
};
|
|
2274
2344
|
k.useActionState = function(e, t, r) {
|
|
2275
|
-
return
|
|
2345
|
+
return L.H.useActionState(e, t, r);
|
|
2276
2346
|
};
|
|
2277
2347
|
k.useCallback = function(e, t) {
|
|
2278
|
-
return
|
|
2348
|
+
return L.H.useCallback(e, t);
|
|
2279
2349
|
};
|
|
2280
2350
|
k.useContext = function(e) {
|
|
2281
|
-
return
|
|
2351
|
+
return L.H.useContext(e);
|
|
2282
2352
|
};
|
|
2283
2353
|
k.useDebugValue = function() {
|
|
2284
2354
|
};
|
|
2285
2355
|
k.useDeferredValue = function(e, t) {
|
|
2286
|
-
return
|
|
2356
|
+
return L.H.useDeferredValue(e, t);
|
|
2287
2357
|
};
|
|
2288
2358
|
k.useEffect = function(e, t) {
|
|
2289
|
-
return
|
|
2359
|
+
return L.H.useEffect(e, t);
|
|
2290
2360
|
};
|
|
2291
2361
|
k.useId = function() {
|
|
2292
|
-
return
|
|
2362
|
+
return L.H.useId();
|
|
2293
2363
|
};
|
|
2294
2364
|
k.useImperativeHandle = function(e, t, r) {
|
|
2295
|
-
return
|
|
2365
|
+
return L.H.useImperativeHandle(e, t, r);
|
|
2296
2366
|
};
|
|
2297
2367
|
k.useInsertionEffect = function(e, t) {
|
|
2298
|
-
return
|
|
2368
|
+
return L.H.useInsertionEffect(e, t);
|
|
2299
2369
|
};
|
|
2300
2370
|
k.useLayoutEffect = function(e, t) {
|
|
2301
|
-
return
|
|
2371
|
+
return L.H.useLayoutEffect(e, t);
|
|
2302
2372
|
};
|
|
2303
2373
|
k.useMemo = function(e, t) {
|
|
2304
|
-
return
|
|
2374
|
+
return L.H.useMemo(e, t);
|
|
2305
2375
|
};
|
|
2306
2376
|
k.useOptimistic = function(e, t) {
|
|
2307
|
-
return
|
|
2377
|
+
return L.H.useOptimistic(e, t);
|
|
2308
2378
|
};
|
|
2309
2379
|
k.useReducer = function(e, t, r) {
|
|
2310
|
-
return
|
|
2380
|
+
return L.H.useReducer(e, t, r);
|
|
2311
2381
|
};
|
|
2312
2382
|
k.useRef = function(e) {
|
|
2313
|
-
return
|
|
2383
|
+
return L.H.useRef(e);
|
|
2314
2384
|
};
|
|
2315
2385
|
k.useState = function(e) {
|
|
2316
|
-
return
|
|
2386
|
+
return L.H.useState(e);
|
|
2317
2387
|
};
|
|
2318
2388
|
k.useSyncExternalStore = function(e, t, r) {
|
|
2319
|
-
return
|
|
2389
|
+
return L.H.useSyncExternalStore(
|
|
2320
2390
|
e,
|
|
2321
2391
|
t,
|
|
2322
2392
|
r
|
|
2323
2393
|
);
|
|
2324
2394
|
};
|
|
2325
2395
|
k.useTransition = function() {
|
|
2326
|
-
return
|
|
2396
|
+
return L.H.useTransition();
|
|
2327
2397
|
};
|
|
2328
2398
|
k.version = "19.0.0";
|
|
2329
2399
|
ns.exports = k;
|
|
@@ -2361,7 +2431,7 @@ wr.useStore = fs;
|
|
|
2361
2431
|
});
|
|
2362
2432
|
});
|
|
2363
2433
|
})(ss);
|
|
2364
|
-
const
|
|
2434
|
+
const vi = {
|
|
2365
2435
|
adClientResponseItems: [],
|
|
2366
2436
|
core: void 0,
|
|
2367
2437
|
logger: void 0,
|
|
@@ -2378,7 +2448,7 @@ const bi = {
|
|
|
2378
2448
|
searchResultsPerPage: 20,
|
|
2379
2449
|
searchResultsPage: 1,
|
|
2380
2450
|
sortType: "asc"
|
|
2381
|
-
},
|
|
2451
|
+
}, A = ss.createStore((e, t) => {
|
|
2382
2452
|
const r = {
|
|
2383
2453
|
addFacetPathsForIndexField: (n) => e((o) => ({
|
|
2384
2454
|
facetPathsForIndexFields: {
|
|
@@ -2441,18 +2511,18 @@ const bi = {
|
|
|
2441
2511
|
}
|
|
2442
2512
|
e({ isSearchInProgress: !0 });
|
|
2443
2513
|
const o = (l, i) => {
|
|
2444
|
-
var
|
|
2514
|
+
var m, b;
|
|
2445
2515
|
const p = l.data.facets;
|
|
2446
|
-
e((
|
|
2516
|
+
e((v) => ({
|
|
2447
2517
|
isSearchInProgress: !1,
|
|
2448
2518
|
searchClientResponseItems: i,
|
|
2449
2519
|
searchResponseTimeTaken: l.data.time_taken || 0,
|
|
2450
2520
|
searchResultsPage: (
|
|
2451
2521
|
// reset to first page when response count changes
|
|
2452
|
-
l.data.count ===
|
|
2522
|
+
l.data.count === v.searchResultsCount ? v.searchResultsPage : 1
|
|
2453
2523
|
),
|
|
2454
2524
|
searchResultsCount: l.data.count || 0
|
|
2455
|
-
})), p && e({ searchResponseFacetPrime: p }), (
|
|
2525
|
+
})), p && e({ searchResponseFacetPrime: p }), (m = n.logger) == null || m.log(Me.DEBUG, `Search results: ${JSON.stringify(i)}`), (b = n.logger) == null || b.log(Me.DEBUG, `Facets from response: ${JSON.stringify(p)}`);
|
|
2456
2526
|
}, s = (l) => {
|
|
2457
2527
|
e({ adClientResponseItems: l });
|
|
2458
2528
|
};
|
|
@@ -2475,9 +2545,7 @@ const bi = {
|
|
|
2475
2545
|
setSortType: (n) => e({ sortType: n }),
|
|
2476
2546
|
setSearchTerm: (n) => {
|
|
2477
2547
|
const { core: o } = t();
|
|
2478
|
-
|
|
2479
|
-
name: "input_cleared"
|
|
2480
|
-
}), e({
|
|
2548
|
+
n.length === 0 && (o == null || o.handleInputCleared()), e({
|
|
2481
2549
|
searchTerm: n,
|
|
2482
2550
|
facetPathsForIndexFields: {},
|
|
2483
2551
|
...n.trim().length === 0 && {
|
|
@@ -2495,16 +2563,16 @@ const bi = {
|
|
|
2495
2563
|
}
|
|
2496
2564
|
};
|
|
2497
2565
|
return {
|
|
2498
|
-
...
|
|
2566
|
+
...vi,
|
|
2499
2567
|
...r
|
|
2500
2568
|
};
|
|
2501
2569
|
});
|
|
2502
|
-
var
|
|
2570
|
+
var bi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ds = { exports: {} };
|
|
2503
2571
|
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
|
|
2504
2572
|
(function(e, t) {
|
|
2505
2573
|
(function(r, a) {
|
|
2506
2574
|
e.exports = a();
|
|
2507
|
-
})(
|
|
2575
|
+
})(bi, function() {
|
|
2508
2576
|
const {
|
|
2509
2577
|
entries: r,
|
|
2510
2578
|
setPrototypeOf: a,
|
|
@@ -2520,58 +2588,58 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2520
2588
|
apply: i,
|
|
2521
2589
|
construct: p
|
|
2522
2590
|
} = typeof Reflect < "u" && Reflect;
|
|
2523
|
-
c || (c = function(
|
|
2524
|
-
return
|
|
2525
|
-
}), u || (u = function(
|
|
2526
|
-
return
|
|
2527
|
-
}), i || (i = function(
|
|
2528
|
-
return
|
|
2529
|
-
}), p || (p = function(
|
|
2530
|
-
return new
|
|
2591
|
+
c || (c = function(S) {
|
|
2592
|
+
return S;
|
|
2593
|
+
}), u || (u = function(S) {
|
|
2594
|
+
return S;
|
|
2595
|
+
}), i || (i = function(S, x, T) {
|
|
2596
|
+
return S.apply(x, T);
|
|
2597
|
+
}), p || (p = function(S, x) {
|
|
2598
|
+
return new S(...x);
|
|
2531
2599
|
});
|
|
2532
|
-
const
|
|
2600
|
+
const m = X(Array.prototype.forEach), b = X(Array.prototype.lastIndexOf), v = X(Array.prototype.pop), $ = X(Array.prototype.push), U = X(Array.prototype.splice), V = X(String.prototype.toLowerCase), _ = X(String.prototype.toString), me = X(String.prototype.match), oe = X(String.prototype.replace), Te = X(String.prototype.indexOf), z = X(String.prototype.trim), ae = X(Object.prototype.hasOwnProperty), H = X(RegExp.prototype.test), xe = Ts(TypeError);
|
|
2533
2601
|
function X(C) {
|
|
2534
|
-
return function(
|
|
2535
|
-
for (var x = arguments.length, T = new Array(x > 1 ? x - 1 : 0),
|
|
2536
|
-
T[
|
|
2537
|
-
return i(C,
|
|
2602
|
+
return function(S) {
|
|
2603
|
+
for (var x = arguments.length, T = new Array(x > 1 ? x - 1 : 0), q = 1; q < x; q++)
|
|
2604
|
+
T[q - 1] = arguments[q];
|
|
2605
|
+
return i(C, S, T);
|
|
2538
2606
|
};
|
|
2539
2607
|
}
|
|
2540
2608
|
function Ts(C) {
|
|
2541
2609
|
return function() {
|
|
2542
|
-
for (var
|
|
2610
|
+
for (var S = arguments.length, x = new Array(S), T = 0; T < S; T++)
|
|
2543
2611
|
x[T] = arguments[T];
|
|
2544
2612
|
return p(C, x);
|
|
2545
2613
|
};
|
|
2546
2614
|
}
|
|
2547
|
-
function P(C,
|
|
2548
|
-
let x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
2615
|
+
function P(C, S) {
|
|
2616
|
+
let x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : V;
|
|
2549
2617
|
a && a(C, null);
|
|
2550
|
-
let T =
|
|
2618
|
+
let T = S.length;
|
|
2551
2619
|
for (; T--; ) {
|
|
2552
|
-
let
|
|
2553
|
-
if (typeof
|
|
2554
|
-
const ge = x(
|
|
2555
|
-
ge !==
|
|
2620
|
+
let q = S[T];
|
|
2621
|
+
if (typeof q == "string") {
|
|
2622
|
+
const ge = x(q);
|
|
2623
|
+
ge !== q && (n(S) || (S[T] = ge), q = ge);
|
|
2556
2624
|
}
|
|
2557
|
-
C[
|
|
2625
|
+
C[q] = !0;
|
|
2558
2626
|
}
|
|
2559
2627
|
return C;
|
|
2560
2628
|
}
|
|
2561
2629
|
function xs(C) {
|
|
2562
|
-
for (let
|
|
2563
|
-
|
|
2630
|
+
for (let S = 0; S < C.length; S++)
|
|
2631
|
+
ae(C, S) || (C[S] = null);
|
|
2564
2632
|
return C;
|
|
2565
2633
|
}
|
|
2566
2634
|
function $e(C) {
|
|
2567
|
-
const
|
|
2635
|
+
const S = l(null);
|
|
2568
2636
|
for (const [x, T] of r(C))
|
|
2569
|
-
|
|
2570
|
-
return
|
|
2637
|
+
ae(C, x) && (Array.isArray(T) ? S[x] = xs(T) : T && typeof T == "object" && T.constructor === Object ? S[x] = $e(T) : S[x] = T);
|
|
2638
|
+
return S;
|
|
2571
2639
|
}
|
|
2572
|
-
function
|
|
2640
|
+
function Ye(C, S) {
|
|
2573
2641
|
for (; C !== null; ) {
|
|
2574
|
-
const T = s(C,
|
|
2642
|
+
const T = s(C, S);
|
|
2575
2643
|
if (T) {
|
|
2576
2644
|
if (T.get)
|
|
2577
2645
|
return X(T.get);
|
|
@@ -2605,7 +2673,7 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2605
2673
|
MUSTACHE_EXPR: As,
|
|
2606
2674
|
TMPLIT_EXPR: Ms
|
|
2607
2675
|
});
|
|
2608
|
-
const
|
|
2676
|
+
const Qe = {
|
|
2609
2677
|
element: 1,
|
|
2610
2678
|
attribute: 2,
|
|
2611
2679
|
text: 3,
|
|
@@ -2623,15 +2691,15 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2623
2691
|
// Deprecated
|
|
2624
2692
|
}, Us = function() {
|
|
2625
2693
|
return typeof window > "u" ? null : window;
|
|
2626
|
-
}, zs = function(
|
|
2627
|
-
if (typeof
|
|
2694
|
+
}, zs = function(S, x) {
|
|
2695
|
+
if (typeof S != "object" || typeof S.createPolicy != "function")
|
|
2628
2696
|
return null;
|
|
2629
2697
|
let T = null;
|
|
2630
|
-
const
|
|
2631
|
-
x && x.hasAttribute(
|
|
2698
|
+
const q = "data-tt-policy-suffix";
|
|
2699
|
+
x && x.hasAttribute(q) && (T = x.getAttribute(q));
|
|
2632
2700
|
const ge = "dompurify" + (T ? "#" + T : "");
|
|
2633
2701
|
try {
|
|
2634
|
-
return
|
|
2702
|
+
return S.createPolicy(ge, {
|
|
2635
2703
|
createHTML(Fe) {
|
|
2636
2704
|
return Fe;
|
|
2637
2705
|
},
|
|
@@ -2657,42 +2725,42 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2657
2725
|
};
|
|
2658
2726
|
function Dr() {
|
|
2659
2727
|
let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Us();
|
|
2660
|
-
const
|
|
2661
|
-
if (
|
|
2662
|
-
return
|
|
2728
|
+
const S = (w) => Dr(w);
|
|
2729
|
+
if (S.version = "3.2.4", S.removed = [], !C || !C.document || C.document.nodeType !== Qe.document || !C.Element)
|
|
2730
|
+
return S.isSupported = !1, S;
|
|
2663
2731
|
let {
|
|
2664
2732
|
document: x
|
|
2665
2733
|
} = C;
|
|
2666
|
-
const T = x,
|
|
2734
|
+
const T = x, q = T.currentScript, {
|
|
2667
2735
|
DocumentFragment: ge,
|
|
2668
2736
|
HTMLTemplateElement: Fe,
|
|
2669
2737
|
Node: zt,
|
|
2670
2738
|
Element: Nr,
|
|
2671
|
-
NodeFilter:
|
|
2739
|
+
NodeFilter: Ke,
|
|
2672
2740
|
NamedNodeMap: Bs = C.NamedNodeMap || C.MozNamedAttrMap,
|
|
2673
2741
|
HTMLFormElement: js,
|
|
2674
|
-
DOMParser:
|
|
2742
|
+
DOMParser: Ws,
|
|
2675
2743
|
trustedTypes: ht
|
|
2676
|
-
} = C,
|
|
2744
|
+
} = C, Xe = Nr.prototype, Gs = Ye(Xe, "cloneNode"), Vs = Ye(Xe, "remove"), qs = Ye(Xe, "nextSibling"), Ys = Ye(Xe, "childNodes"), ft = Ye(Xe, "parentNode");
|
|
2677
2745
|
if (typeof Fe == "function") {
|
|
2678
|
-
const
|
|
2679
|
-
|
|
2746
|
+
const w = x.createElement("template");
|
|
2747
|
+
w.content && w.content.ownerDocument && (x = w.content.ownerDocument);
|
|
2680
2748
|
}
|
|
2681
|
-
let
|
|
2749
|
+
let J, Je = "";
|
|
2682
2750
|
const {
|
|
2683
2751
|
implementation: Ht,
|
|
2684
|
-
createNodeIterator:
|
|
2685
|
-
createDocumentFragment:
|
|
2686
|
-
getElementsByTagName:
|
|
2752
|
+
createNodeIterator: Qs,
|
|
2753
|
+
createDocumentFragment: Ks,
|
|
2754
|
+
getElementsByTagName: Xs
|
|
2687
2755
|
} = x, {
|
|
2688
2756
|
importNode: Js
|
|
2689
2757
|
} = T;
|
|
2690
|
-
let
|
|
2691
|
-
|
|
2758
|
+
let Z = Fr();
|
|
2759
|
+
S.isSupported = typeof r == "function" && typeof ft == "function" && Ht && Ht.createHTMLDocument !== void 0;
|
|
2692
2760
|
const {
|
|
2693
2761
|
MUSTACHE_EXPR: Bt,
|
|
2694
2762
|
ERB_EXPR: jt,
|
|
2695
|
-
TMPLIT_EXPR:
|
|
2763
|
+
TMPLIT_EXPR: Wt,
|
|
2696
2764
|
DATA_ATTR: Zs,
|
|
2697
2765
|
ARIA_ATTR: en,
|
|
2698
2766
|
IS_SCRIPT_OR_DATA: tn,
|
|
@@ -2701,11 +2769,11 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2701
2769
|
} = Or;
|
|
2702
2770
|
let {
|
|
2703
2771
|
IS_ALLOWED_URI: zr
|
|
2704
|
-
} = Or,
|
|
2772
|
+
} = Or, B = null;
|
|
2705
2773
|
const Hr = P({}, [...$r, ...Ft, ...Dt, ...Nt, ..._r]);
|
|
2706
|
-
let
|
|
2774
|
+
let W = null;
|
|
2707
2775
|
const Br = P({}, [...Ar, ...Ut, ...Ir, ...ut]);
|
|
2708
|
-
let
|
|
2776
|
+
let O = Object.seal(l(null, {
|
|
2709
2777
|
tagNameCheck: {
|
|
2710
2778
|
writable: !0,
|
|
2711
2779
|
configurable: !1,
|
|
@@ -2724,47 +2792,47 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2724
2792
|
enumerable: !0,
|
|
2725
2793
|
value: !1
|
|
2726
2794
|
}
|
|
2727
|
-
})), Ze = null,
|
|
2795
|
+
})), Ze = null, Gt = null, jr = !0, Vt = !0, Wr = !1, Gr = !0, De = !1, qt = !0, _e = !1, Yt = !1, Qt = !1, Ne = !1, dt = !1, pt = !1, Vr = !0, qr = !1;
|
|
2728
2796
|
const an = "user-content-";
|
|
2729
|
-
let
|
|
2730
|
-
const
|
|
2731
|
-
let
|
|
2732
|
-
const
|
|
2733
|
-
let
|
|
2734
|
-
const
|
|
2735
|
-
let He =
|
|
2736
|
-
const sn = P({}, [mt, gt,
|
|
2737
|
-
let
|
|
2797
|
+
let Kt = !0, et = !1, Ue = {}, ze = null;
|
|
2798
|
+
const Yr = P({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
2799
|
+
let Qr = null;
|
|
2800
|
+
const Kr = P({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2801
|
+
let Xt = null;
|
|
2802
|
+
const Xr = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), mt = "http://www.w3.org/1998/Math/MathML", gt = "http://www.w3.org/2000/svg", ve = "http://www.w3.org/1999/xhtml";
|
|
2803
|
+
let He = ve, Jt = !1, Zt = null;
|
|
2804
|
+
const sn = P({}, [mt, gt, ve], _);
|
|
2805
|
+
let vt = P({}, ["mi", "mo", "mn", "ms", "mtext"]), bt = P({}, ["annotation-xml"]);
|
|
2738
2806
|
const nn = P({}, ["title", "style", "font", "a", "script"]);
|
|
2739
2807
|
let tt = null;
|
|
2740
2808
|
const on = ["application/xhtml+xml", "text/html"], cn = "text/html";
|
|
2741
|
-
let
|
|
2809
|
+
let j = null, Be = null;
|
|
2742
2810
|
const ln = x.createElement("form"), Jr = function(f) {
|
|
2743
2811
|
return f instanceof RegExp || f instanceof Function;
|
|
2744
2812
|
}, er = function() {
|
|
2745
2813
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2746
2814
|
if (!(Be && Be === f)) {
|
|
2747
2815
|
if ((!f || typeof f != "object") && (f = {}), f = $e(f), tt = // eslint-disable-next-line unicorn/prefer-includes
|
|
2748
|
-
on.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? cn : f.PARSER_MEDIA_TYPE,
|
|
2816
|
+
on.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? cn : f.PARSER_MEDIA_TYPE, j = tt === "application/xhtml+xml" ? _ : V, B = ae(f, "ALLOWED_TAGS") ? P({}, f.ALLOWED_TAGS, j) : Hr, W = ae(f, "ALLOWED_ATTR") ? P({}, f.ALLOWED_ATTR, j) : Br, Zt = ae(f, "ALLOWED_NAMESPACES") ? P({}, f.ALLOWED_NAMESPACES, _) : sn, Xt = ae(f, "ADD_URI_SAFE_ATTR") ? P($e(Xr), f.ADD_URI_SAFE_ATTR, j) : Xr, Qr = ae(f, "ADD_DATA_URI_TAGS") ? P($e(Kr), f.ADD_DATA_URI_TAGS, j) : Kr, ze = ae(f, "FORBID_CONTENTS") ? P({}, f.FORBID_CONTENTS, j) : Yr, Ze = ae(f, "FORBID_TAGS") ? P({}, f.FORBID_TAGS, j) : {}, Gt = ae(f, "FORBID_ATTR") ? P({}, f.FORBID_ATTR, j) : {}, Ue = ae(f, "USE_PROFILES") ? f.USE_PROFILES : !1, jr = f.ALLOW_ARIA_ATTR !== !1, Vt = f.ALLOW_DATA_ATTR !== !1, Wr = f.ALLOW_UNKNOWN_PROTOCOLS || !1, Gr = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, De = f.SAFE_FOR_TEMPLATES || !1, qt = f.SAFE_FOR_XML !== !1, _e = f.WHOLE_DOCUMENT || !1, Ne = f.RETURN_DOM || !1, dt = f.RETURN_DOM_FRAGMENT || !1, pt = f.RETURN_TRUSTED_TYPE || !1, Qt = f.FORCE_BODY || !1, Vr = f.SANITIZE_DOM !== !1, qr = f.SANITIZE_NAMED_PROPS || !1, Kt = f.KEEP_CONTENT !== !1, et = f.IN_PLACE || !1, zr = f.ALLOWED_URI_REGEXP || Mr, He = f.NAMESPACE || ve, vt = f.MATHML_TEXT_INTEGRATION_POINTS || vt, bt = f.HTML_INTEGRATION_POINTS || bt, O = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && Jr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (O.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && Jr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (O.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (O.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), De && (Vt = !1), dt && (Ne = !0), Ue && (B = P({}, _r), W = [], Ue.html === !0 && (P(B, $r), P(W, Ar)), Ue.svg === !0 && (P(B, Ft), P(W, Ut), P(W, ut)), Ue.svgFilters === !0 && (P(B, Dt), P(W, Ut), P(W, ut)), Ue.mathMl === !0 && (P(B, Nt), P(W, Ir), P(W, ut))), f.ADD_TAGS && (B === Hr && (B = $e(B)), P(B, f.ADD_TAGS, j)), f.ADD_ATTR && (W === Br && (W = $e(W)), P(W, f.ADD_ATTR, j)), f.ADD_URI_SAFE_ATTR && P(Xt, f.ADD_URI_SAFE_ATTR, j), f.FORBID_CONTENTS && (ze === Yr && (ze = $e(ze)), P(ze, f.FORBID_CONTENTS, j)), Kt && (B["#text"] = !0), _e && P(B, ["html", "head", "body"]), B.table && (P(B, ["tbody"]), delete Ze.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
2749
2817
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2750
2818
|
throw xe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2751
2819
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
2752
2820
|
throw xe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2753
|
-
|
|
2821
|
+
J = f.TRUSTED_TYPES_POLICY, Je = J.createHTML("");
|
|
2754
2822
|
} else
|
|
2755
|
-
|
|
2823
|
+
J === void 0 && (J = zs(ht, q)), J !== null && typeof Je == "string" && (Je = J.createHTML(""));
|
|
2756
2824
|
c && c(f), Be = f;
|
|
2757
2825
|
}
|
|
2758
2826
|
}, Zr = P({}, [...Ft, ...Dt, ...$s]), ea = P({}, [...Nt, ..._s]), un = function(f) {
|
|
2759
|
-
let
|
|
2760
|
-
(!
|
|
2827
|
+
let g = ft(f);
|
|
2828
|
+
(!g || !g.tagName) && (g = {
|
|
2761
2829
|
namespaceURI: He,
|
|
2762
2830
|
tagName: "template"
|
|
2763
2831
|
});
|
|
2764
|
-
const
|
|
2765
|
-
return Zt[f.namespaceURI] ? f.namespaceURI === gt ?
|
|
2832
|
+
const y = V(f.tagName), I = V(g.tagName);
|
|
2833
|
+
return Zt[f.namespaceURI] ? f.namespaceURI === gt ? g.namespaceURI === ve ? y === "svg" : g.namespaceURI === mt ? y === "svg" && (I === "annotation-xml" || vt[I]) : !!Zr[y] : f.namespaceURI === mt ? g.namespaceURI === ve ? y === "math" : g.namespaceURI === gt ? y === "math" && bt[I] : !!ea[y] : f.namespaceURI === ve ? g.namespaceURI === gt && !bt[I] || g.namespaceURI === mt && !vt[I] ? !1 : !ea[y] && (nn[y] || !Zr[y]) : !!(tt === "application/xhtml+xml" && Zt[f.namespaceURI]) : !1;
|
|
2766
2834
|
}, de = function(f) {
|
|
2767
|
-
|
|
2835
|
+
$(S.removed, {
|
|
2768
2836
|
element: f
|
|
2769
2837
|
});
|
|
2770
2838
|
try {
|
|
@@ -2772,59 +2840,59 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2772
2840
|
} catch {
|
|
2773
2841
|
Vs(f);
|
|
2774
2842
|
}
|
|
2775
|
-
}, yt = function(f,
|
|
2843
|
+
}, yt = function(f, g) {
|
|
2776
2844
|
try {
|
|
2777
|
-
|
|
2778
|
-
attribute:
|
|
2779
|
-
from:
|
|
2845
|
+
$(S.removed, {
|
|
2846
|
+
attribute: g.getAttributeNode(f),
|
|
2847
|
+
from: g
|
|
2780
2848
|
});
|
|
2781
2849
|
} catch {
|
|
2782
|
-
|
|
2850
|
+
$(S.removed, {
|
|
2783
2851
|
attribute: null,
|
|
2784
|
-
from:
|
|
2852
|
+
from: g
|
|
2785
2853
|
});
|
|
2786
2854
|
}
|
|
2787
|
-
if (
|
|
2855
|
+
if (g.removeAttribute(f), f === "is")
|
|
2788
2856
|
if (Ne || dt)
|
|
2789
2857
|
try {
|
|
2790
|
-
de(
|
|
2858
|
+
de(g);
|
|
2791
2859
|
} catch {
|
|
2792
2860
|
}
|
|
2793
2861
|
else
|
|
2794
2862
|
try {
|
|
2795
|
-
|
|
2863
|
+
g.setAttribute(f, "");
|
|
2796
2864
|
} catch {
|
|
2797
2865
|
}
|
|
2798
2866
|
}, ta = function(f) {
|
|
2799
|
-
let
|
|
2800
|
-
if (
|
|
2867
|
+
let g = null, y = null;
|
|
2868
|
+
if (Qt)
|
|
2801
2869
|
f = "<remove></remove>" + f;
|
|
2802
2870
|
else {
|
|
2803
2871
|
const G = me(f, /^[\r\n\t ]+/);
|
|
2804
|
-
|
|
2872
|
+
y = G && G[0];
|
|
2805
2873
|
}
|
|
2806
|
-
tt === "application/xhtml+xml" && He ===
|
|
2807
|
-
const
|
|
2808
|
-
if (He ===
|
|
2874
|
+
tt === "application/xhtml+xml" && He === ve && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
|
|
2875
|
+
const I = J ? J.createHTML(f) : f;
|
|
2876
|
+
if (He === ve)
|
|
2809
2877
|
try {
|
|
2810
|
-
|
|
2878
|
+
g = new Ws().parseFromString(I, tt);
|
|
2811
2879
|
} catch {
|
|
2812
2880
|
}
|
|
2813
|
-
if (!
|
|
2814
|
-
|
|
2881
|
+
if (!g || !g.documentElement) {
|
|
2882
|
+
g = Ht.createDocument(He, "template", null);
|
|
2815
2883
|
try {
|
|
2816
|
-
|
|
2884
|
+
g.documentElement.innerHTML = Jt ? Je : I;
|
|
2817
2885
|
} catch {
|
|
2818
2886
|
}
|
|
2819
2887
|
}
|
|
2820
|
-
const Y =
|
|
2821
|
-
return f &&
|
|
2888
|
+
const Y = g.body || g.documentElement;
|
|
2889
|
+
return f && y && Y.insertBefore(x.createTextNode(y), Y.childNodes[0] || null), He === ve ? Xs.call(g, _e ? "html" : "body")[0] : _e ? g.documentElement : Y;
|
|
2822
2890
|
}, ra = function(f) {
|
|
2823
|
-
return
|
|
2891
|
+
return Qs.call(
|
|
2824
2892
|
f.ownerDocument || f,
|
|
2825
2893
|
f,
|
|
2826
2894
|
// eslint-disable-next-line no-bitwise
|
|
2827
|
-
|
|
2895
|
+
Ke.SHOW_ELEMENT | Ke.SHOW_COMMENT | Ke.SHOW_TEXT | Ke.SHOW_PROCESSING_INSTRUCTION | Ke.SHOW_CDATA_SECTION,
|
|
2828
2896
|
null
|
|
2829
2897
|
);
|
|
2830
2898
|
}, tr = function(f) {
|
|
@@ -2832,60 +2900,60 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2832
2900
|
}, aa = function(f) {
|
|
2833
2901
|
return typeof zt == "function" && f instanceof zt;
|
|
2834
2902
|
};
|
|
2835
|
-
function
|
|
2836
|
-
|
|
2837
|
-
|
|
2903
|
+
function be(w, f, g) {
|
|
2904
|
+
m(w, (y) => {
|
|
2905
|
+
y.call(S, f, g, Be);
|
|
2838
2906
|
});
|
|
2839
2907
|
}
|
|
2840
2908
|
const sa = function(f) {
|
|
2841
|
-
let
|
|
2842
|
-
if (
|
|
2909
|
+
let g = null;
|
|
2910
|
+
if (be(Z.beforeSanitizeElements, f, null), tr(f))
|
|
2843
2911
|
return de(f), !0;
|
|
2844
|
-
const
|
|
2845
|
-
if (
|
|
2846
|
-
tagName:
|
|
2847
|
-
allowedTags:
|
|
2848
|
-
}), f.hasChildNodes() && !aa(f.firstElementChild) &&
|
|
2912
|
+
const y = j(f.nodeName);
|
|
2913
|
+
if (be(Z.uponSanitizeElement, f, {
|
|
2914
|
+
tagName: y,
|
|
2915
|
+
allowedTags: B
|
|
2916
|
+
}), f.hasChildNodes() && !aa(f.firstElementChild) && H(/<[/\w]/g, f.innerHTML) && H(/<[/\w]/g, f.textContent) || f.nodeType === Qe.progressingInstruction || qt && f.nodeType === Qe.comment && H(/<[/\w]/g, f.data))
|
|
2849
2917
|
return de(f), !0;
|
|
2850
|
-
if (!
|
|
2851
|
-
if (!Ze[
|
|
2918
|
+
if (!B[y] || Ze[y]) {
|
|
2919
|
+
if (!Ze[y] && oa(y) && (O.tagNameCheck instanceof RegExp && H(O.tagNameCheck, y) || O.tagNameCheck instanceof Function && O.tagNameCheck(y)))
|
|
2852
2920
|
return !1;
|
|
2853
|
-
if (
|
|
2854
|
-
const
|
|
2855
|
-
if (Y &&
|
|
2921
|
+
if (Kt && !ze[y]) {
|
|
2922
|
+
const I = ft(f) || f.parentNode, Y = Ys(f) || f.childNodes;
|
|
2923
|
+
if (Y && I) {
|
|
2856
2924
|
const G = Y.length;
|
|
2857
|
-
for (let
|
|
2858
|
-
const pe =
|
|
2859
|
-
pe.__removalCount = (f.__removalCount || 0) + 1,
|
|
2925
|
+
for (let se = G - 1; se >= 0; --se) {
|
|
2926
|
+
const pe = Gs(Y[se], !0);
|
|
2927
|
+
pe.__removalCount = (f.__removalCount || 0) + 1, I.insertBefore(pe, qs(f));
|
|
2860
2928
|
}
|
|
2861
2929
|
}
|
|
2862
2930
|
}
|
|
2863
2931
|
return de(f), !0;
|
|
2864
2932
|
}
|
|
2865
|
-
return f instanceof Nr && !un(f) || (
|
|
2866
|
-
|
|
2867
|
-
}), f.textContent !==
|
|
2933
|
+
return f instanceof Nr && !un(f) || (y === "noscript" || y === "noembed" || y === "noframes") && H(/<\/no(script|embed|frames)/i, f.innerHTML) ? (de(f), !0) : (De && f.nodeType === Qe.text && (g = f.textContent, m([Bt, jt, Wt], (I) => {
|
|
2934
|
+
g = oe(g, I, " ");
|
|
2935
|
+
}), f.textContent !== g && ($(S.removed, {
|
|
2868
2936
|
element: f.cloneNode()
|
|
2869
|
-
}), f.textContent =
|
|
2870
|
-
}, na = function(f,
|
|
2871
|
-
if (Vr && (
|
|
2937
|
+
}), f.textContent = g)), be(Z.afterSanitizeElements, f, null), !1);
|
|
2938
|
+
}, na = function(f, g, y) {
|
|
2939
|
+
if (Vr && (g === "id" || g === "name") && (y in x || y in ln))
|
|
2872
2940
|
return !1;
|
|
2873
|
-
if (!(Vt && !
|
|
2874
|
-
if (!(jr &&
|
|
2875
|
-
if (!
|
|
2941
|
+
if (!(Vt && !Gt[g] && H(Zs, g))) {
|
|
2942
|
+
if (!(jr && H(en, g))) {
|
|
2943
|
+
if (!W[g] || Gt[g]) {
|
|
2876
2944
|
if (
|
|
2877
2945
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2878
2946
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2879
2947
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2880
|
-
!(oa(f) && (
|
|
2948
|
+
!(oa(f) && (O.tagNameCheck instanceof RegExp && H(O.tagNameCheck, f) || O.tagNameCheck instanceof Function && O.tagNameCheck(f)) && (O.attributeNameCheck instanceof RegExp && H(O.attributeNameCheck, g) || O.attributeNameCheck instanceof Function && O.attributeNameCheck(g)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2881
2949
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2882
|
-
|
|
2950
|
+
g === "is" && O.allowCustomizedBuiltInElements && (O.tagNameCheck instanceof RegExp && H(O.tagNameCheck, y) || O.tagNameCheck instanceof Function && O.tagNameCheck(y)))
|
|
2883
2951
|
) return !1;
|
|
2884
|
-
} else if (!
|
|
2885
|
-
if (!
|
|
2886
|
-
if (!((
|
|
2887
|
-
if (!(
|
|
2888
|
-
if (
|
|
2952
|
+
} else if (!Xt[g]) {
|
|
2953
|
+
if (!H(zr, oe(y, Ur, ""))) {
|
|
2954
|
+
if (!((g === "src" || g === "xlink:href" || g === "href") && f !== "script" && Te(y, "data:") === 0 && Qr[f])) {
|
|
2955
|
+
if (!(Wr && !H(tn, oe(y, Ur, "")))) {
|
|
2956
|
+
if (y)
|
|
2889
2957
|
return !1;
|
|
2890
2958
|
}
|
|
2891
2959
|
}
|
|
@@ -2897,133 +2965,133 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2897
2965
|
}, oa = function(f) {
|
|
2898
2966
|
return f !== "annotation-xml" && me(f, rn);
|
|
2899
2967
|
}, ia = function(f) {
|
|
2900
|
-
|
|
2968
|
+
be(Z.beforeSanitizeAttributes, f, null);
|
|
2901
2969
|
const {
|
|
2902
|
-
attributes:
|
|
2970
|
+
attributes: g
|
|
2903
2971
|
} = f;
|
|
2904
|
-
if (!
|
|
2972
|
+
if (!g || tr(f))
|
|
2905
2973
|
return;
|
|
2906
|
-
const
|
|
2974
|
+
const y = {
|
|
2907
2975
|
attrName: "",
|
|
2908
2976
|
attrValue: "",
|
|
2909
2977
|
keepAttr: !0,
|
|
2910
|
-
allowedAttributes:
|
|
2978
|
+
allowedAttributes: W,
|
|
2911
2979
|
forceKeepAttr: void 0
|
|
2912
2980
|
};
|
|
2913
|
-
let
|
|
2914
|
-
for (;
|
|
2915
|
-
const Y =
|
|
2981
|
+
let I = g.length;
|
|
2982
|
+
for (; I--; ) {
|
|
2983
|
+
const Y = g[I], {
|
|
2916
2984
|
name: G,
|
|
2917
|
-
namespaceURI:
|
|
2985
|
+
namespaceURI: se,
|
|
2918
2986
|
value: pe
|
|
2919
|
-
} = Y, rt =
|
|
2920
|
-
let
|
|
2921
|
-
if (
|
|
2987
|
+
} = Y, rt = j(G);
|
|
2988
|
+
let ee = G === "value" ? pe : z(pe);
|
|
2989
|
+
if (y.attrName = rt, y.attrValue = ee, y.keepAttr = !0, y.forceKeepAttr = void 0, be(Z.uponSanitizeAttribute, f, y), ee = y.attrValue, qr && (rt === "id" || rt === "name") && (yt(G, f), ee = an + ee), qt && H(/((--!?|])>)|<\/(style|title)/i, ee)) {
|
|
2922
2990
|
yt(G, f);
|
|
2923
2991
|
continue;
|
|
2924
2992
|
}
|
|
2925
|
-
if (
|
|
2993
|
+
if (y.forceKeepAttr || (yt(G, f), !y.keepAttr))
|
|
2926
2994
|
continue;
|
|
2927
|
-
if (!
|
|
2995
|
+
if (!Gr && H(/\/>/i, ee)) {
|
|
2928
2996
|
yt(G, f);
|
|
2929
2997
|
continue;
|
|
2930
2998
|
}
|
|
2931
|
-
De &&
|
|
2932
|
-
|
|
2999
|
+
De && m([Bt, jt, Wt], (la) => {
|
|
3000
|
+
ee = oe(ee, la, " ");
|
|
2933
3001
|
});
|
|
2934
|
-
const ca =
|
|
2935
|
-
if (na(ca, rt,
|
|
2936
|
-
if (
|
|
3002
|
+
const ca = j(f.nodeName);
|
|
3003
|
+
if (na(ca, rt, ee)) {
|
|
3004
|
+
if (J && typeof ht == "object" && typeof ht.getAttributeType == "function" && !se)
|
|
2937
3005
|
switch (ht.getAttributeType(ca, rt)) {
|
|
2938
3006
|
case "TrustedHTML": {
|
|
2939
|
-
|
|
3007
|
+
ee = J.createHTML(ee);
|
|
2940
3008
|
break;
|
|
2941
3009
|
}
|
|
2942
3010
|
case "TrustedScriptURL": {
|
|
2943
|
-
|
|
3011
|
+
ee = J.createScriptURL(ee);
|
|
2944
3012
|
break;
|
|
2945
3013
|
}
|
|
2946
3014
|
}
|
|
2947
3015
|
try {
|
|
2948
|
-
|
|
3016
|
+
se ? f.setAttributeNS(se, G, ee) : f.setAttribute(G, ee), tr(f) ? de(f) : v(S.removed);
|
|
2949
3017
|
} catch {
|
|
2950
3018
|
}
|
|
2951
3019
|
}
|
|
2952
3020
|
}
|
|
2953
|
-
|
|
2954
|
-
}, hn = function
|
|
2955
|
-
let
|
|
2956
|
-
const
|
|
2957
|
-
for (
|
|
2958
|
-
|
|
2959
|
-
|
|
3021
|
+
be(Z.afterSanitizeAttributes, f, null);
|
|
3022
|
+
}, hn = function w(f) {
|
|
3023
|
+
let g = null;
|
|
3024
|
+
const y = ra(f);
|
|
3025
|
+
for (be(Z.beforeSanitizeShadowDOM, f, null); g = y.nextNode(); )
|
|
3026
|
+
be(Z.uponSanitizeShadowNode, g, null), sa(g), ia(g), g.content instanceof ge && w(g.content);
|
|
3027
|
+
be(Z.afterSanitizeShadowDOM, f, null);
|
|
2960
3028
|
};
|
|
2961
|
-
return
|
|
2962
|
-
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
2963
|
-
if (Jt = !
|
|
2964
|
-
if (typeof
|
|
2965
|
-
if (
|
|
3029
|
+
return S.sanitize = function(w) {
|
|
3030
|
+
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, g = null, y = null, I = null, Y = null;
|
|
3031
|
+
if (Jt = !w, Jt && (w = "<!-->"), typeof w != "string" && !aa(w))
|
|
3032
|
+
if (typeof w.toString == "function") {
|
|
3033
|
+
if (w = w.toString(), typeof w != "string")
|
|
2966
3034
|
throw xe("dirty is not a string, aborting");
|
|
2967
3035
|
} else
|
|
2968
3036
|
throw xe("toString is not a function");
|
|
2969
|
-
if (!
|
|
2970
|
-
return
|
|
2971
|
-
if (
|
|
2972
|
-
if (
|
|
2973
|
-
const pe =
|
|
2974
|
-
if (!
|
|
3037
|
+
if (!S.isSupported)
|
|
3038
|
+
return w;
|
|
3039
|
+
if (Yt || er(f), S.removed = [], typeof w == "string" && (et = !1), et) {
|
|
3040
|
+
if (w.nodeName) {
|
|
3041
|
+
const pe = j(w.nodeName);
|
|
3042
|
+
if (!B[pe] || Ze[pe])
|
|
2975
3043
|
throw xe("root node is forbidden and cannot be sanitized in-place");
|
|
2976
3044
|
}
|
|
2977
|
-
} else if (
|
|
2978
|
-
|
|
3045
|
+
} else if (w instanceof zt)
|
|
3046
|
+
g = ta("<!---->"), y = g.ownerDocument.importNode(w, !0), y.nodeType === Qe.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? g = y : g.appendChild(y);
|
|
2979
3047
|
else {
|
|
2980
3048
|
if (!Ne && !De && !_e && // eslint-disable-next-line unicorn/prefer-includes
|
|
2981
|
-
|
|
2982
|
-
return
|
|
2983
|
-
if (
|
|
3049
|
+
w.indexOf("<") === -1)
|
|
3050
|
+
return J && pt ? J.createHTML(w) : w;
|
|
3051
|
+
if (g = ta(w), !g)
|
|
2984
3052
|
return Ne ? null : pt ? Je : "";
|
|
2985
3053
|
}
|
|
2986
|
-
|
|
2987
|
-
const G = ra(et ?
|
|
2988
|
-
for (;
|
|
2989
|
-
sa(
|
|
3054
|
+
g && Qt && de(g.firstChild);
|
|
3055
|
+
const G = ra(et ? w : g);
|
|
3056
|
+
for (; I = G.nextNode(); )
|
|
3057
|
+
sa(I), ia(I), I.content instanceof ge && hn(I.content);
|
|
2990
3058
|
if (et)
|
|
2991
|
-
return
|
|
3059
|
+
return w;
|
|
2992
3060
|
if (Ne) {
|
|
2993
3061
|
if (dt)
|
|
2994
|
-
for (Y =
|
|
2995
|
-
Y.appendChild(
|
|
3062
|
+
for (Y = Ks.call(g.ownerDocument); g.firstChild; )
|
|
3063
|
+
Y.appendChild(g.firstChild);
|
|
2996
3064
|
else
|
|
2997
|
-
Y =
|
|
2998
|
-
return (
|
|
3065
|
+
Y = g;
|
|
3066
|
+
return (W.shadowroot || W.shadowrootmode) && (Y = Js.call(T, Y, !0)), Y;
|
|
2999
3067
|
}
|
|
3000
|
-
let
|
|
3001
|
-
return _e &&
|
|
3002
|
-
` +
|
|
3003
|
-
|
|
3004
|
-
}),
|
|
3005
|
-
},
|
|
3006
|
-
let
|
|
3007
|
-
er(
|
|
3008
|
-
},
|
|
3009
|
-
Be = null,
|
|
3010
|
-
},
|
|
3068
|
+
let se = _e ? g.outerHTML : g.innerHTML;
|
|
3069
|
+
return _e && B["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && H(Lr, g.ownerDocument.doctype.name) && (se = "<!DOCTYPE " + g.ownerDocument.doctype.name + `>
|
|
3070
|
+
` + se), De && m([Bt, jt, Wt], (pe) => {
|
|
3071
|
+
se = oe(se, pe, " ");
|
|
3072
|
+
}), J && pt ? J.createHTML(se) : se;
|
|
3073
|
+
}, S.setConfig = function() {
|
|
3074
|
+
let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3075
|
+
er(w), Yt = !0;
|
|
3076
|
+
}, S.clearConfig = function() {
|
|
3077
|
+
Be = null, Yt = !1;
|
|
3078
|
+
}, S.isValidAttribute = function(w, f, g) {
|
|
3011
3079
|
Be || er({});
|
|
3012
|
-
const
|
|
3013
|
-
return na(
|
|
3014
|
-
},
|
|
3015
|
-
typeof f == "function" &&
|
|
3016
|
-
},
|
|
3080
|
+
const y = j(w), I = j(f);
|
|
3081
|
+
return na(y, I, g);
|
|
3082
|
+
}, S.addHook = function(w, f) {
|
|
3083
|
+
typeof f == "function" && $(Z[w], f);
|
|
3084
|
+
}, S.removeHook = function(w, f) {
|
|
3017
3085
|
if (f !== void 0) {
|
|
3018
|
-
const
|
|
3019
|
-
return
|
|
3086
|
+
const g = b(Z[w], f);
|
|
3087
|
+
return g === -1 ? void 0 : U(Z[w], g, 1)[0];
|
|
3020
3088
|
}
|
|
3021
|
-
return
|
|
3022
|
-
},
|
|
3023
|
-
|
|
3024
|
-
},
|
|
3025
|
-
|
|
3026
|
-
},
|
|
3089
|
+
return v(Z[w]);
|
|
3090
|
+
}, S.removeHooks = function(w) {
|
|
3091
|
+
Z[w] = [];
|
|
3092
|
+
}, S.removeAllHooks = function() {
|
|
3093
|
+
Z = Fr();
|
|
3094
|
+
}, S;
|
|
3027
3095
|
}
|
|
3028
3096
|
var Hs = Dr();
|
|
3029
3097
|
return Hs;
|
|
@@ -3036,7 +3104,7 @@ let wi = (e = 21) => {
|
|
|
3036
3104
|
t += Si[r[e] & 63];
|
|
3037
3105
|
return t;
|
|
3038
3106
|
};
|
|
3039
|
-
const
|
|
3107
|
+
const Ri = /* @__PURE__ */ N(class extends D {
|
|
3040
3108
|
constructor() {
|
|
3041
3109
|
super();
|
|
3042
3110
|
h(this, "adSource", "Custom");
|
|
@@ -3049,21 +3117,15 @@ const Ei = /* @__PURE__ */ N(class extends D {
|
|
|
3049
3117
|
this.__registerHost();
|
|
3050
3118
|
}
|
|
3051
3119
|
connectedCallback() {
|
|
3052
|
-
var a
|
|
3053
|
-
const r =
|
|
3054
|
-
|
|
3055
|
-
this.searchTerm =
|
|
3056
|
-
}), (
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
name: "ad_container_rendered",
|
|
3062
|
-
data: {
|
|
3063
|
-
adContainerId: this.adContainerId,
|
|
3064
|
-
adSource: this.adSource,
|
|
3065
|
-
searchTerm: this.searchTerm
|
|
3066
|
-
}
|
|
3120
|
+
var a;
|
|
3121
|
+
const r = A.getState();
|
|
3122
|
+
this.core = r.core, this.searchTerm = r.searchTerm, this.unsubscribe = A.subscribe((n) => {
|
|
3123
|
+
this.searchTerm = n.searchTerm;
|
|
3124
|
+
}), (a = this.core) == null || a.handleAdContainerRendered({
|
|
3125
|
+
adClientResponseItem: this.adClientResponseItem,
|
|
3126
|
+
adContainerId: this.adContainerId,
|
|
3127
|
+
adSource: this.adSource,
|
|
3128
|
+
searchTerm: this.searchTerm
|
|
3067
3129
|
});
|
|
3068
3130
|
}
|
|
3069
3131
|
disconnectedCallback() {
|
|
@@ -3084,7 +3146,9 @@ const Ei = /* @__PURE__ */ N(class extends D {
|
|
|
3084
3146
|
})), d("div", { class: "searchcraft-custom-ad", id: a, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: yi.sanitize(n) });
|
|
3085
3147
|
}
|
|
3086
3148
|
renderNativoAd() {
|
|
3087
|
-
|
|
3149
|
+
var a;
|
|
3150
|
+
const r = ((a = this.core) == null ? void 0 : a.config.nativoAdClassName) || "ntv-item";
|
|
3151
|
+
return d("div", { class: r });
|
|
3088
3152
|
}
|
|
3089
3153
|
render() {
|
|
3090
3154
|
switch (this.adSource) {
|
|
@@ -3109,13 +3173,13 @@ function Mt() {
|
|
|
3109
3173
|
["searchcraft-ad"].forEach((t) => {
|
|
3110
3174
|
switch (t) {
|
|
3111
3175
|
case "searchcraft-ad":
|
|
3112
|
-
customElements.get(t) || customElements.define(t,
|
|
3176
|
+
customElements.get(t) || customElements.define(t, Ri);
|
|
3113
3177
|
break;
|
|
3114
3178
|
}
|
|
3115
3179
|
});
|
|
3116
3180
|
}
|
|
3117
|
-
const
|
|
3118
|
-
function
|
|
3181
|
+
const Ei = Mt;
|
|
3182
|
+
function ue(e, t) {
|
|
3119
3183
|
if (e && t)
|
|
3120
3184
|
return t.fieldNames.map((r) => {
|
|
3121
3185
|
let a = e[r.fieldName];
|
|
@@ -3196,7 +3260,7 @@ const Pi = /* @__PURE__ */ N(class extends D {
|
|
|
3196
3260
|
h(this, "containerHref");
|
|
3197
3261
|
h(this, "imageSrc");
|
|
3198
3262
|
h(this, "imageAlt");
|
|
3199
|
-
h(this, "searchcraftStore",
|
|
3263
|
+
h(this, "searchcraftStore", A.getState());
|
|
3200
3264
|
h(this, "handleLinkClick", () => {
|
|
3201
3265
|
var a;
|
|
3202
3266
|
const r = this.searchcraftStore.getSearchcraftInstance();
|
|
@@ -3225,7 +3289,7 @@ const Pi = /* @__PURE__ */ N(class extends D {
|
|
|
3225
3289
|
}
|
|
3226
3290
|
mapValuesFromDocument(r) {
|
|
3227
3291
|
var a, n, o, s, c, u, l;
|
|
3228
|
-
this.titleContent =
|
|
3292
|
+
this.titleContent = ue(r, (a = this.searchResultMappings) == null ? void 0 : a.title), this.subtitleContent = ue(r, (n = this.searchResultMappings) == null ? void 0 : n.subtitle), this.bodyContent = ue(r, (o = this.searchResultMappings) == null ? void 0 : o.body), this.containerHref = ue(r, (s = this.searchResultMappings) == null ? void 0 : s.containerHref), this.buttonHref = ue(r, (c = this.searchResultMappings) == null ? void 0 : c.buttonHref), this.imageSrc = ue(r, (u = this.searchResultMappings) == null ? void 0 : u.imageSource), this.footerContent = ue(r, (l = this.searchResultMappings) == null ? void 0 : l.footer);
|
|
3229
3293
|
}
|
|
3230
3294
|
render() {
|
|
3231
3295
|
const r = this.parseStyles(), a = this.imageSrc && d("img", { alt: this.imageAlt, class: "searchcraft-search-result-image", src: this.imageSrc, style: r.image || {} }), n = d(yr, null, this.imageSrc && this.imagePlacement === "left" && a, d("div", { class: "searchcraft-base-search-result-content-container" }, this.titleContent && d("h2", { class: "searchcraft-base-search-result-title", style: r.title || {} }, this.titleContent), this.subtitleContent && d("h3", { class: "searchcraft-base-search-result-subtitle", style: r.subtitle || {} }, this.subtitleContent), this.bodyContent && d("p", { class: "searchcraft-base-search-result-body-content", style: r.primaryContent || {} }, this.bodyContent), this.footerContent && d("p", { class: "searchcraft-base-search-result-footer-content", style: r.secondaryContent || {} }, this.footerContent), this.buttonHref && !this.containerHref && this.buttonLabel && d("a", { class: "searchcraft-search-result-button", href: this.buttonHref, style: r.button || {}, target: this.buttonTarget, rel: this.buttonRel }, this.buttonLabel)), this.imageSrc && this.imagePlacement === "right" && a);
|
|
@@ -3345,7 +3409,7 @@ const $i = /* @__PURE__ */ N(class extends D {
|
|
|
3345
3409
|
h(this, "adClientResponseItems", []);
|
|
3346
3410
|
h(this, "searchResultsPerPage");
|
|
3347
3411
|
h(this, "searchResultsPage");
|
|
3348
|
-
h(this, "isSearchInProgress", !
|
|
3412
|
+
h(this, "isSearchInProgress", !0);
|
|
3349
3413
|
h(this, "config");
|
|
3350
3414
|
h(this, "unsubscribe", () => {
|
|
3351
3415
|
});
|
|
@@ -3357,9 +3421,9 @@ const $i = /* @__PURE__ */ N(class extends D {
|
|
|
3357
3421
|
}
|
|
3358
3422
|
componentDidLoad() {
|
|
3359
3423
|
var a;
|
|
3360
|
-
this.unsubscribe =
|
|
3361
|
-
const r =
|
|
3362
|
-
this.searchClientResponseItems = r.searchClientResponseItems, this.searchTerm = r.searchTerm, this.config = (a = r.core) == null ? void 0 : a.config;
|
|
3424
|
+
this.unsubscribe = A.subscribe((n) => this.handleStateChange(n));
|
|
3425
|
+
const r = A.getState();
|
|
3426
|
+
this.handleStateChange(r), this.searchClientResponseItems = r.searchClientResponseItems, this.searchTerm = r.searchTerm, this.config = (a = r.core) == null ? void 0 : a.config;
|
|
3363
3427
|
}
|
|
3364
3428
|
disconnectedCallback() {
|
|
3365
3429
|
var r;
|
|
@@ -3382,16 +3446,31 @@ const $i = /* @__PURE__ */ N(class extends D {
|
|
|
3382
3446
|
renderWithCustomAds() {
|
|
3383
3447
|
var u, l, i, p;
|
|
3384
3448
|
const r = [], a = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, n = ((l = this.config) == null ? void 0 : l.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, s = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
|
|
3385
|
-
for (let
|
|
3386
|
-
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${
|
|
3387
|
-
c.forEach((
|
|
3388
|
-
if (a &&
|
|
3389
|
-
for (let
|
|
3390
|
-
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${
|
|
3391
|
-
r.push(d("searchcraft-base-search-result", { key:
|
|
3449
|
+
for (let m = 0; m < o; m++)
|
|
3450
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m}-ad` }));
|
|
3451
|
+
c.forEach((m, b) => {
|
|
3452
|
+
if (a && b % a === 0 && b + a < c.length && b >= a)
|
|
3453
|
+
for (let v = 0; v < n; v++)
|
|
3454
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m.id}-ad-${v}` }));
|
|
3455
|
+
r.push(d("searchcraft-base-search-result", { key: m.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + b, searchResultMappings: this.searchResultMappings, item: m }));
|
|
3392
3456
|
});
|
|
3393
|
-
for (let
|
|
3394
|
-
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${
|
|
3457
|
+
for (let m = 0; m < s; m++)
|
|
3458
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m}-ad` }));
|
|
3459
|
+
return d("div", { class: "searchcraft-search-results-container" }, r);
|
|
3460
|
+
}
|
|
3461
|
+
renderWithNativoAds() {
|
|
3462
|
+
var l, i, p, m, b;
|
|
3463
|
+
const r = [], a = ((l = this.config) == null ? void 0 : l.nativoAdInterstialStartIndex) || 0, n = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, s = ((m = this.config) == null ? void 0 : m.nativoAdStartQuantity) || 0, c = ((b = this.config) == null ? void 0 : b.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
|
|
3464
|
+
for (let v = 0; v < s; v++)
|
|
3465
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${v}-ad` }));
|
|
3466
|
+
u.forEach((v, $) => {
|
|
3467
|
+
if (n && ($ + a) % n === 0 && $ + n < u.length && $ >= n)
|
|
3468
|
+
for (let U = 0; U < o; U++)
|
|
3469
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${v.id}-ad-${U}` }));
|
|
3470
|
+
r.push(d("searchcraft-base-search-result", { key: v.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + $, searchResultMappings: this.searchResultMappings, item: v }));
|
|
3471
|
+
});
|
|
3472
|
+
for (let v = 0; v < c; v++)
|
|
3473
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${v}-ad` }));
|
|
3395
3474
|
return d("div", { class: "searchcraft-search-results-container" }, r);
|
|
3396
3475
|
}
|
|
3397
3476
|
renderWithNoAds() {
|
|
@@ -3409,6 +3488,8 @@ const $i = /* @__PURE__ */ N(class extends D {
|
|
|
3409
3488
|
return this.renderWithADMAds();
|
|
3410
3489
|
case "Custom":
|
|
3411
3490
|
return this.renderWithCustomAds();
|
|
3491
|
+
case "Nativo":
|
|
3492
|
+
return this.renderWithNativoAds();
|
|
3412
3493
|
default:
|
|
3413
3494
|
return this.renderWithNoAds();
|
|
3414
3495
|
}
|
|
@@ -3487,7 +3568,7 @@ var gs = { exports: {} };
|
|
|
3487
3568
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
3488
3569
|
})();
|
|
3489
3570
|
})(gs);
|
|
3490
|
-
const
|
|
3571
|
+
const M = gs.exports, Ii = /* @__PURE__ */ N(class extends D {
|
|
3491
3572
|
constructor() {
|
|
3492
3573
|
super();
|
|
3493
3574
|
/**
|
|
@@ -3528,7 +3609,7 @@ const I = gs.exports, Ii = /* @__PURE__ */ N(class extends D {
|
|
|
3528
3609
|
this.__registerHost(), this.buttonClick = ke(this, "buttonClick");
|
|
3529
3610
|
}
|
|
3530
3611
|
render() {
|
|
3531
|
-
return d("button", { key: "ff883b930d03da6cbfb40badd3be1de0a873f853", "aria-label": this.label, class:
|
|
3612
|
+
return d("button", { key: "ff883b930d03da6cbfb40badd3be1de0a873f853", "aria-label": this.label, class: M("searchcraft-button", {
|
|
3532
3613
|
"searchcraft-button-primary": this.hierarchy === "primary",
|
|
3533
3614
|
"searchcraft-button-tertiary": this.hierarchy === "tertiary",
|
|
3534
3615
|
"searchcraft-button-disabled": this.disabled
|
|
@@ -3555,10 +3636,10 @@ function Ot() {
|
|
|
3555
3636
|
});
|
|
3556
3637
|
}
|
|
3557
3638
|
const Mi = Ot, Li = Lt;
|
|
3558
|
-
function
|
|
3639
|
+
function vs(e, t) {
|
|
3559
3640
|
const r = { ...e };
|
|
3560
3641
|
for (const a in t)
|
|
3561
|
-
t.hasOwnProperty(a) && (t[a] instanceof Object && e[a] instanceof Object ? r[a] =
|
|
3642
|
+
t.hasOwnProperty(a) && (t[a] instanceof Object && e[a] instanceof Object ? r[a] = vs(e[a], t[a]) : r[a] = t[a]);
|
|
3562
3643
|
return r;
|
|
3563
3644
|
}
|
|
3564
3645
|
function Oi(e) {
|
|
@@ -3598,13 +3679,13 @@ function Fi(e) {
|
|
|
3598
3679
|
});
|
|
3599
3680
|
}), t;
|
|
3600
3681
|
}
|
|
3601
|
-
function
|
|
3682
|
+
function bs(e) {
|
|
3602
3683
|
const t = {
|
|
3603
3684
|
count: e.count,
|
|
3604
3685
|
path: e.path,
|
|
3605
3686
|
children: []
|
|
3606
3687
|
};
|
|
3607
|
-
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) =>
|
|
3688
|
+
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => bs(r))), t;
|
|
3608
3689
|
}
|
|
3609
3690
|
function Di(e, t) {
|
|
3610
3691
|
const r = Object.keys(e), a = Object.keys(t), n = new Set(a.filter((s) => s.split("/").length > 2).map((s) => s.substring(0, s.lastIndexOf("/"))));
|
|
@@ -3619,9 +3700,9 @@ function Ni(e, t, r) {
|
|
|
3619
3700
|
count: 0,
|
|
3620
3701
|
path: "/",
|
|
3621
3702
|
children: n
|
|
3622
|
-
}, c = La(o), u = La(s), l = Di(c, u), i =
|
|
3703
|
+
}, c = La(o), u = La(s), l = Di(c, u), i = vs(l, u), p = Fi(i), m = bs(p);
|
|
3623
3704
|
return {
|
|
3624
|
-
[e]:
|
|
3705
|
+
[e]: m.children
|
|
3625
3706
|
};
|
|
3626
3707
|
}
|
|
3627
3708
|
const Ui = /* @__PURE__ */ N(class extends D {
|
|
@@ -3644,7 +3725,7 @@ const Ui = /* @__PURE__ */ N(class extends D {
|
|
|
3644
3725
|
h(this, "lastSearchMode");
|
|
3645
3726
|
h(this, "lastSortType");
|
|
3646
3727
|
h(this, "unsubscribe");
|
|
3647
|
-
h(this, "searchStore",
|
|
3728
|
+
h(this, "searchStore", A.getState());
|
|
3648
3729
|
h(this, "formatLabel", (r) => {
|
|
3649
3730
|
const a = r.path.replace(/^\//, ""), n = r.count;
|
|
3650
3731
|
return `${a.replace(/-/g, " ").replace(/\b\w/g, (o) => o.toUpperCase())} (${n})`;
|
|
@@ -3667,7 +3748,7 @@ const Ui = /* @__PURE__ */ N(class extends D {
|
|
|
3667
3748
|
}
|
|
3668
3749
|
}
|
|
3669
3750
|
connectedCallback() {
|
|
3670
|
-
this.handleStateUpdate(this.searchStore), this.unsubscribe =
|
|
3751
|
+
this.handleStateUpdate(this.searchStore), this.unsubscribe = A.subscribe((r) => {
|
|
3671
3752
|
this.handleStateUpdate(r);
|
|
3672
3753
|
});
|
|
3673
3754
|
}
|
|
@@ -3694,14 +3775,14 @@ const Ui = /* @__PURE__ */ N(class extends D {
|
|
|
3694
3775
|
if (!this.fieldName)
|
|
3695
3776
|
return;
|
|
3696
3777
|
const r = (a = this.facetRoot) == null ? void 0 : a[this.fieldName];
|
|
3697
|
-
return d("div", { class:
|
|
3778
|
+
return d("div", { class: M("filtersListContainer", "searchcraft-filters-list-container") }, !r && d("p", { class: "searchcraft-facet-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((n) => {
|
|
3698
3779
|
var s;
|
|
3699
3780
|
const o = n.children ? (s = n.children) == null ? void 0 : s.some((c) => this.selectedPaths[c.path]) : !1;
|
|
3700
|
-
return d("div", { key: n.path, class:
|
|
3781
|
+
return d("div", { key: n.path, class: M("searchcraft-filters-list-item") }, d("label", { class: M("filterCheckboxLabel", "searchcraft-filters-list-checkbox-label") }, d("input", { checked: this.selectedPaths[n.path], onChange: (c) => this.handleCheckboxChange(n.path), type: "checkbox" }), o ? d("div", { class: M("dashContainer", "searchcraft-filter-list-dash-container") }, d("svg", { width: "14", height: "3", viewBox: "0 0 14 3", fill: "none" }, d("title", null, "Checkbox Dash"), d("line", { x1: "1.5", y1: "1.5", x2: "12.5", y2: "1.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" }))) : d("div", { class: M("checkContainer", "searchcraft-filter-list-check-container") }, d("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, d("title", null, "Checkbox Check"), d("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.formatLabel(n)), n.children && n.children.length > 0 && d(yr, null, n.children.map((c) => d("label", { key: c.path, class: M("childFilterCheckboxLabel", "searchcraft-child-filter-checkbox-label"), style: {
|
|
3701
3782
|
display: this.selectedPaths[n.path] ? "flex" : "none"
|
|
3702
3783
|
} }, d("input", { checked: this.selectedPaths[c.path], onChange: (u) => {
|
|
3703
3784
|
this.handleCheckboxChange(c.path);
|
|
3704
|
-
}, type: "checkbox" }), d("div", { class:
|
|
3785
|
+
}, type: "checkbox" }), d("div", { class: M("checkContainer", "searchcraft-filter-list-check-container") }, d("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, d("title", null, "Checkbox Check"), d("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.formatSubLabel(c, n)))));
|
|
3705
3786
|
}));
|
|
3706
3787
|
}
|
|
3707
3788
|
}, [0, "searchcraft-facet-list", {
|
|
@@ -3776,7 +3857,7 @@ const zi = ys, Hi = /* @__PURE__ */ N(class extends D {
|
|
|
3776
3857
|
return d("div", { key: "ec4a36e1ce6534b7c077114086d759e0b1e7a24e", class: "searchcraft-slider-container" }, d("div", { key: "35487cbeaeeb23052631804704645ca929340f70", class: "searchcraft-slider-range-container" }, d("div", { key: "186e699def8e7a6e58e8ad5f04953ac1c6584344", class: "searchcraft-slider-active-range", style: {
|
|
3777
3858
|
left: `${n}%`,
|
|
3778
3859
|
width: `${o - n}%`
|
|
3779
|
-
} }), d("input", { key: "97638e2a1471888c2be47f7526e9dd98fea58683", class:
|
|
3860
|
+
} }), d("input", { key: "97638e2a1471888c2be47f7526e9dd98fea58683", class: M("searchcraft-slider-input", "searchcraft-slider-input-min-handle"), max: this.max, min: this.min, onInput: this.handleStartValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "min" ? "2" : "1" }, type: "range", value: this.startValue }), d("input", { key: "db2abded80b606d17bde1677e4acc09a85e6e20e", class: M("searchcraft-slider-input", "searchcraft-slider-input-max-handle"), max: this.max, min: this.min, onInput: this.handleEndValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "max" ? "2" : "1" }, type: "range", value: this.endValue })), d("div", { key: "83954b6955a872a17377d506d2d8458059acac03", class: "searchcraft-slider-label-container" }, d("span", { key: "b5315b4438385ecf5df3f76579fdf102b6a8c39c", class: "searchcraft-slider-label" }, s), d("span", { key: "875094ac7ee69e04c3a16407388dd27f167b3c8f", class: "searchcraft-slider-label" }, c)));
|
|
3780
3861
|
}
|
|
3781
3862
|
}, [0, "searchcraft-slider", {
|
|
3782
3863
|
max: [2],
|
|
@@ -3823,7 +3904,7 @@ const Bi = /* @__PURE__ */ N(class extends D {
|
|
|
3823
3904
|
this.__registerHost(), this.toggleUpdated = ke(this, "toggleUpdated");
|
|
3824
3905
|
}
|
|
3825
3906
|
connectedCallback() {
|
|
3826
|
-
this.unsubscribe =
|
|
3907
|
+
this.unsubscribe = A.subscribe((r) => {
|
|
3827
3908
|
r.searchTerm !== this.lastSearchTerm && r.searchTerm.trim().length === 0 && (this.isActive = !1), this.lastSearchTerm = r.searchTerm;
|
|
3828
3909
|
});
|
|
3829
3910
|
}
|
|
@@ -3832,9 +3913,9 @@ const Bi = /* @__PURE__ */ N(class extends D {
|
|
|
3832
3913
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3833
3914
|
}
|
|
3834
3915
|
render() {
|
|
3835
|
-
return d("div", { key: "25f3acd2b5dd6837182c8f07c092c54c35542c2f", class: "searchcraft-toggle-button-container" }, d("div", { key: "d2951f2673af55159ad6f39d381d272a3f9f872b" }, d("p", { key: "2468e261d46b454ce896b614ca2a076d27a31a8b", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && d("p", { key: "1d9887dc12f30fb1982cf0d8a692ebfeca8edc1a", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), d("button", { key: "f51bb553d6b210233aa6ebfc4318aa521036d922", class:
|
|
3916
|
+
return d("div", { key: "25f3acd2b5dd6837182c8f07c092c54c35542c2f", class: "searchcraft-toggle-button-container" }, d("div", { key: "d2951f2673af55159ad6f39d381d272a3f9f872b" }, d("p", { key: "2468e261d46b454ce896b614ca2a076d27a31a8b", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && d("p", { key: "1d9887dc12f30fb1982cf0d8a692ebfeca8edc1a", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), d("button", { key: "f51bb553d6b210233aa6ebfc4318aa521036d922", class: M("searchcraft-toggle-button-background", {
|
|
3836
3917
|
active: this.isActive
|
|
3837
|
-
}), onClick: this.handleToggle, type: "button" }, d("div", { key: "a34339f1bb5ab4742d897b01b61fe6c8c23e7e1e", class:
|
|
3918
|
+
}), onClick: this.handleToggle, type: "button" }, d("div", { key: "a34339f1bb5ab4742d897b01b61fe6c8c23e7e1e", class: M("searchcraft-toggle-button-handle", {
|
|
3838
3919
|
active: this.isActive
|
|
3839
3920
|
}) })));
|
|
3840
3921
|
}
|
|
@@ -3865,11 +3946,11 @@ const ji = /* @__PURE__ */ N(class extends D {
|
|
|
3865
3946
|
h(this, "items", []);
|
|
3866
3947
|
h(this, "unsubscribe");
|
|
3867
3948
|
h(this, "lastSearchTerm");
|
|
3868
|
-
h(this, "searchStore",
|
|
3949
|
+
h(this, "searchStore", A.getState());
|
|
3869
3950
|
this.__registerHost();
|
|
3870
3951
|
}
|
|
3871
3952
|
componentDidLoad() {
|
|
3872
|
-
this.unsubscribe =
|
|
3953
|
+
this.unsubscribe = A.subscribe((r) => {
|
|
3873
3954
|
this.lastSearchTerm = r.searchTerm || "";
|
|
3874
3955
|
});
|
|
3875
3956
|
}
|
|
@@ -3946,7 +4027,7 @@ const ji = /* @__PURE__ */ N(class extends D {
|
|
|
3946
4027
|
unsubscribe: [32],
|
|
3947
4028
|
lastSearchTerm: [32]
|
|
3948
4029
|
}]);
|
|
3949
|
-
function
|
|
4030
|
+
function Wi() {
|
|
3950
4031
|
if (typeof customElements > "u")
|
|
3951
4032
|
return;
|
|
3952
4033
|
["searchcraft-filter-panel", "searchcraft-facet-list", "searchcraft-slider", "searchcraft-toggle-button"].forEach((t) => {
|
|
@@ -3966,7 +4047,7 @@ function Gi() {
|
|
|
3966
4047
|
}
|
|
3967
4048
|
});
|
|
3968
4049
|
}
|
|
3969
|
-
const
|
|
4050
|
+
const Gi = Wi, Vi = /* @__PURE__ */ N(class extends D {
|
|
3970
4051
|
constructor() {
|
|
3971
4052
|
super();
|
|
3972
4053
|
/**
|
|
@@ -3977,7 +4058,7 @@ const Wi = Gi, Vi = /* @__PURE__ */ N(class extends D {
|
|
|
3977
4058
|
this.__registerHost();
|
|
3978
4059
|
}
|
|
3979
4060
|
render() {
|
|
3980
|
-
return d("label", { key: "528396d4be9f22ff0c02d95d8bcea056576aed41", class:
|
|
4061
|
+
return d("label", { key: "528396d4be9f22ff0c02d95d8bcea056576aed41", class: M("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
|
|
3981
4062
|
}
|
|
3982
4063
|
}, [0, "searchcraft-input-label", {
|
|
3983
4064
|
inputLabelClassName: [1, "input-label-class-name"],
|
|
@@ -3994,7 +4075,7 @@ function Tr() {
|
|
|
3994
4075
|
}
|
|
3995
4076
|
});
|
|
3996
4077
|
}
|
|
3997
|
-
const
|
|
4078
|
+
const qi = /* @__PURE__ */ N(class extends D {
|
|
3998
4079
|
constructor() {
|
|
3999
4080
|
super();
|
|
4000
4081
|
/**
|
|
@@ -4021,10 +4102,6 @@ const Yi = /* @__PURE__ */ N(class extends D {
|
|
|
4021
4102
|
* The input element's placeholder value.
|
|
4022
4103
|
*/
|
|
4023
4104
|
h(this, "placeholderValue", "Enter Search");
|
|
4024
|
-
/**
|
|
4025
|
-
* The starting value of the input element.
|
|
4026
|
-
*/
|
|
4027
|
-
h(this, "searchTerm", "");
|
|
4028
4105
|
/**
|
|
4029
4106
|
* When the input becomes focused.
|
|
4030
4107
|
*/
|
|
@@ -4037,16 +4114,17 @@ const Yi = /* @__PURE__ */ N(class extends D {
|
|
|
4037
4114
|
* Event emitted when input initializes.
|
|
4038
4115
|
*/
|
|
4039
4116
|
h(this, "inputInit");
|
|
4040
|
-
h(this, "inputValue",
|
|
4117
|
+
h(this, "inputValue", "");
|
|
4118
|
+
h(this, "searchTerm", "");
|
|
4041
4119
|
h(this, "error", !1);
|
|
4042
4120
|
h(this, "core");
|
|
4043
|
-
h(this, "searchStore",
|
|
4121
|
+
h(this, "searchStore", A.getState());
|
|
4044
4122
|
h(this, "handleOnInput", (r) => {
|
|
4045
4123
|
const a = r.target;
|
|
4046
4124
|
this.inputValue = a.value, this.autoSearch && this.performSearch(a.value);
|
|
4047
4125
|
});
|
|
4048
4126
|
h(this, "performSearch", async (r) => {
|
|
4049
|
-
if (r !==
|
|
4127
|
+
if (r !== A.getState().searchTerm) {
|
|
4050
4128
|
this.searchTerm = r.trim(), this.error = !1, this.searchStore.setSearchTerm(this.searchTerm);
|
|
4051
4129
|
try {
|
|
4052
4130
|
await this.searchStore.search();
|
|
@@ -4074,14 +4152,14 @@ const Yi = /* @__PURE__ */ N(class extends D {
|
|
|
4074
4152
|
this.init();
|
|
4075
4153
|
}
|
|
4076
4154
|
render() {
|
|
4077
|
-
const r = lt(this.customStyles), a = this.inputValue.length > 0, n =
|
|
4155
|
+
const r = lt(this.customStyles), a = this.inputValue.length > 0, n = M("searchcraft-input-grid", {
|
|
4078
4156
|
"searchcraft-input-grid-buttonLeft": this.buttonPlacement === "left",
|
|
4079
4157
|
"searchcraft-input-grid-buttonRight": this.buttonPlacement === "right",
|
|
4080
4158
|
"searchcraft-input-grid-buttonNone": this.buttonPlacement === "none"
|
|
4081
4159
|
}), s = {
|
|
4082
4160
|
gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
|
|
4083
4161
|
};
|
|
4084
|
-
return d("form", { key: "
|
|
4162
|
+
return d("form", { key: "f08b30d8688e110230c99dbdc0b08aaa259680d1", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, d("div", { key: "32e8cbea58acd0d1e8b14a3ca7363f648df052f1", class: n, style: s }, d("div", { key: "769484880d0228a5b865fad2c83e6537ae55686a", class: "searchcraft-input-button-wrapper" }, d("searchcraft-button", { key: "75902602813c266d77c038d106f5a033ff64c477", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && d("div", { key: "356356b1eac93b52f8622c9c2f414fe76b70e0fe", class: "searchcraft-input-label-wrapper" }, d("searchcraft-input-label", { key: "4c5a680712b8d26a6326dde48223317b690e7a30", label: this.inputLabel })), this.error && d("div", { key: "e2275fe0907d60e13ac3cb6b2a23e0872c475eb3", class: "searchcraft-input-error-wrapper" }, d("searchcraft-error-message", { key: "26e7ffbe8fe43f3f5340176e68cf7763d71c4eab", errorMessage: "Something went wrong." })), d("div", { key: "cfc0d53d4ec644fd453fe39b3091986d9abf2b49", class: "searchcraft-input-wrapper" }, d("input", { key: "44dcf30e32dcf4de2aeb5c64d445db468fde605b", autoComplete: "off", class: "searchcraft-input", onFocus: () => {
|
|
4085
4163
|
var c;
|
|
4086
4164
|
return (c = this.inputFocus) == null ? void 0 : c.emit();
|
|
4087
4165
|
}, onBlur: () => {
|
|
@@ -4089,7 +4167,7 @@ const Yi = /* @__PURE__ */ N(class extends D {
|
|
|
4089
4167
|
return (c = this.inputBlur) == null ? void 0 : c.emit();
|
|
4090
4168
|
}, onInput: (c) => {
|
|
4091
4169
|
this.handleOnInput(c);
|
|
4092
|
-
}, placeholder: this.placeholderValue, style: r, type: "text", value: this.inputValue }), d("div", { key: "
|
|
4170
|
+
}, placeholder: this.placeholderValue, style: r, type: "text", value: this.inputValue }), d("div", { key: "a510ee45c5c1fcd8991220dcaed42bdbcef39b49", class: "searchcraft-input-search-icon-wrapper" }, d("svg", { key: "5dc9bc129a7f550f400aa23b09b38df7aa412821", class: "searchcraft-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, d("title", { key: "af9c2cb95db7d1f182d4312bccefa97ac95e06aa", id: "searchcraft-title" }, "Searchcraft Search Icon Light"), d("path", { key: "c2e8b250f1113670cb2435664a57725563d34efd", 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" }))), a && d("button", { key: "0630c1533ab1c9654e9e984a1194759dec2ab535", type: "button", class: "searchcraft-input-clear-button", onClick: this.handleClearInput }, d("svg", { key: "052abaa409746a98ee94e09e87e5345c05687dba", class: "searchcraft-input-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, d("title", { key: "795d7435b5cac2069063a6e6bf40868ddba76516", id: "icon-title" }, "Searchcraft Clear Input Icon Light"), d("path", { key: "29be529ce60d62136bde73baa2600f3664479c7f", 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" }))))));
|
|
4093
4171
|
}
|
|
4094
4172
|
static get watchers() {
|
|
4095
4173
|
return {
|
|
@@ -4103,20 +4181,20 @@ const Yi = /* @__PURE__ */ N(class extends D {
|
|
|
4103
4181
|
inputLabel: [1, "input-label"],
|
|
4104
4182
|
customStyles: [1, "custom-styles"],
|
|
4105
4183
|
placeholderValue: [1, "placeholder-value"],
|
|
4106
|
-
searchTerm: [1, "search-term"],
|
|
4107
4184
|
core: [16],
|
|
4108
4185
|
inputValue: [32],
|
|
4186
|
+
searchTerm: [32],
|
|
4109
4187
|
error: [32]
|
|
4110
4188
|
}, void 0, {
|
|
4111
4189
|
core: ["onCoreChange"]
|
|
4112
4190
|
}]);
|
|
4113
|
-
function
|
|
4191
|
+
function Rs() {
|
|
4114
4192
|
if (typeof customElements > "u")
|
|
4115
4193
|
return;
|
|
4116
4194
|
["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
|
|
4117
4195
|
switch (t) {
|
|
4118
4196
|
case "searchcraft-input-form":
|
|
4119
|
-
customElements.get(t) || customElements.define(t,
|
|
4197
|
+
customElements.get(t) || customElements.define(t, qi);
|
|
4120
4198
|
break;
|
|
4121
4199
|
case "searchcraft-button":
|
|
4122
4200
|
customElements.get(t) || Ot();
|
|
@@ -4130,7 +4208,7 @@ function Es() {
|
|
|
4130
4208
|
}
|
|
4131
4209
|
});
|
|
4132
4210
|
}
|
|
4133
|
-
const
|
|
4211
|
+
const Yi = Rs, Qi = Tr, Ki = /* @__PURE__ */ N(class extends D {
|
|
4134
4212
|
constructor() {
|
|
4135
4213
|
super();
|
|
4136
4214
|
/**
|
|
@@ -4154,7 +4232,7 @@ const qi = Es, Ki = Tr, Xi = /* @__PURE__ */ N(class extends D {
|
|
|
4154
4232
|
this.__registerHost();
|
|
4155
4233
|
}
|
|
4156
4234
|
componentDidLoad() {
|
|
4157
|
-
this.unsubscribe =
|
|
4235
|
+
this.unsubscribe = A.subscribe((r) => {
|
|
4158
4236
|
this.searchTerm = r.searchTerm, this.searchResultsPerPage = r.searchResultsPerPage, this.searchResultsPage = r.searchResultsPage, this.searchResultsCount = r.searchResultsCount, this.searchResultsPagesCount = Math.ceil(this.searchResultsCount / this.searchResultsPerPage), this.searchResultsRangeMin = (this.searchResultsPage - 1) * this.searchResultsPerPage + 1, this.searchResultsRangeMax = (this.searchResultsPerPage - 1) * this.searchResultsPerPage + this.searchResultsPerPage, this.setSearchResultsPage = r.setSearchResultsPage;
|
|
4159
4237
|
});
|
|
4160
4238
|
}
|
|
@@ -4166,25 +4244,25 @@ const qi = Es, Ki = Tr, Xi = /* @__PURE__ */ N(class extends D {
|
|
|
4166
4244
|
this.setSearchResultsPage(r);
|
|
4167
4245
|
}
|
|
4168
4246
|
renderOddPaginationItem(r) {
|
|
4169
|
-
return d("li", null, d("button", { class:
|
|
4247
|
+
return d("li", null, d("button", { class: M("searchcraft-pagination-item", {
|
|
4170
4248
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
4171
4249
|
}), onClick: () => this.handleGoToPage(r), type: "button" }, r));
|
|
4172
4250
|
}
|
|
4173
4251
|
renderEvenPaginationItem(r) {
|
|
4174
4252
|
if (!(this.searchResultsPagesCount <= r))
|
|
4175
|
-
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? d("li", null, d("button", { class:
|
|
4253
|
+
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? d("li", null, d("button", { class: M("searchcraft-pagination-item", {
|
|
4176
4254
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
4177
4255
|
}), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : d("li", null, d("span", { class: "searchcraft-pagination-item" }, "..."));
|
|
4178
4256
|
}
|
|
4179
4257
|
renderMiddlePaginationItem() {
|
|
4180
4258
|
if (!(this.searchResultsPagesCount <= 3))
|
|
4181
|
-
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? d("li", null, d("button", { class:
|
|
4259
|
+
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? d("li", null, d("button", { class: M("searchcraft-pagination-item", {
|
|
4182
4260
|
"searchcraft-pagination-item-active": this.searchResultsPage === 3 || this.searchResultsPage === this.searchResultsPagesCount - 2
|
|
4183
4261
|
}), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) : d("li", null, d("span", { class: "searchcraft-pagination-item searchcraft-pagination-item-active" }, this.searchResultsPage));
|
|
4184
4262
|
}
|
|
4185
4263
|
render() {
|
|
4186
4264
|
if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
|
|
4187
|
-
return d("div", { class:
|
|
4265
|
+
return d("div", { class: M("searchcraft-pagination", lt(this.customStyles || {})) }, d("div", { class: "searchcraft-pagination-control" }, d("searchcraft-button", { disabled: this.searchResultsPage === 1, hierarchy: "tertiary", onButtonClick: () => this.handleGoToPage(Math.max(1, this.searchResultsPage - 1)), label: "Previous", iconPosition: "left", icon: d("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("title", null, "Previous page icon"), d("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })), d("ul", { class: "searchcraft-pagination-list" }, this.renderOddPaginationItem(1), this.renderEvenPaginationItem(2), this.renderMiddlePaginationItem(), this.renderEvenPaginationItem(this.searchResultsPagesCount > 4 ? this.searchResultsPagesCount - 1 : 4), this.renderOddPaginationItem(this.searchResultsPagesCount)), d("div", { class: "searchcraft-pagination-control" }, d("searchcraft-button", { disabled: this.searchResultsPage === this.searchResultsPagesCount, hierarchy: "tertiary", onButtonClick: () => {
|
|
4188
4266
|
this.handleGoToPage(Math.min(this.searchResultsPagesCount, this.searchResultsPage + 1));
|
|
4189
4267
|
}, label: "Next", iconPosition: "right", icon: d("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("title", null, "Next page icon"), d("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })));
|
|
4190
4268
|
}
|
|
@@ -4199,13 +4277,13 @@ const qi = Es, Ki = Tr, Xi = /* @__PURE__ */ N(class extends D {
|
|
|
4199
4277
|
searchResultsRangeMax: [32],
|
|
4200
4278
|
setSearchResultsPage: [32]
|
|
4201
4279
|
}]);
|
|
4202
|
-
function
|
|
4280
|
+
function Xi() {
|
|
4203
4281
|
if (typeof customElements > "u")
|
|
4204
4282
|
return;
|
|
4205
4283
|
["searchcraft-pagination", "searchcraft-button"].forEach((t) => {
|
|
4206
4284
|
switch (t) {
|
|
4207
4285
|
case "searchcraft-pagination":
|
|
4208
|
-
customElements.get(t) || customElements.define(t,
|
|
4286
|
+
customElements.get(t) || customElements.define(t, Ki);
|
|
4209
4287
|
break;
|
|
4210
4288
|
case "searchcraft-button":
|
|
4211
4289
|
customElements.get(t) || Ot();
|
|
@@ -4213,12 +4291,12 @@ function Qi() {
|
|
|
4213
4291
|
}
|
|
4214
4292
|
});
|
|
4215
4293
|
}
|
|
4216
|
-
const Ji =
|
|
4294
|
+
const Ji = Xi, Zi = /* @__PURE__ */ N(class extends D {
|
|
4217
4295
|
constructor() {
|
|
4218
4296
|
super(), this.__registerHost();
|
|
4219
4297
|
}
|
|
4220
4298
|
handleOnClick() {
|
|
4221
|
-
|
|
4299
|
+
A.getState().setPopoverVisibility(!0);
|
|
4222
4300
|
}
|
|
4223
4301
|
render() {
|
|
4224
4302
|
return d("button", { key: "a8ee70b49a5309cfb1363a272ea0870c48c59688", type: "button", onClick: this.handleOnClick.bind(this) }, d("slot", { key: "9ac712ed1f6e69d73e7ade3d42501fb67a02c7ff" }));
|
|
@@ -4249,7 +4327,7 @@ const tc = ec, rc = /* @__PURE__ */ N(class extends D {
|
|
|
4249
4327
|
h(this, "subtitleContent");
|
|
4250
4328
|
h(this, "handleLinkClick", () => {
|
|
4251
4329
|
var n;
|
|
4252
|
-
const r =
|
|
4330
|
+
const r = A.getState(), a = r.getSearchcraftInstance();
|
|
4253
4331
|
if (a) {
|
|
4254
4332
|
const o = this.documentPosition, s = r.searchTerm, c = r.searchClientResponseItems.length || 0;
|
|
4255
4333
|
(n = a.measureClient) == null || n.sendMeasureEvent("document_clicked", {
|
|
@@ -4263,7 +4341,7 @@ const tc = ec, rc = /* @__PURE__ */ N(class extends D {
|
|
|
4263
4341
|
}
|
|
4264
4342
|
mapValuesFromDocument(r) {
|
|
4265
4343
|
var a, n, o, s, c;
|
|
4266
|
-
this.titleContent =
|
|
4344
|
+
this.titleContent = ue(r, (a = this.popoverResultMappings) == null ? void 0 : a.title), this.subtitleContent = ue(r, (n = this.popoverResultMappings) == null ? void 0 : n.subtitle), this.href = ue(r, (o = this.popoverResultMappings) == null ? void 0 : o.href), this.imageSrc = ue(r, (s = this.popoverResultMappings) == null ? void 0 : s.imageSource), this.imageAlt = ue(r, (c = this.popoverResultMappings) == null ? void 0 : c.imageAlt);
|
|
4267
4345
|
}
|
|
4268
4346
|
connectedCallback() {
|
|
4269
4347
|
this.item && this.mapValuesFromDocument(this.item.document);
|
|
@@ -4310,7 +4388,7 @@ const ac = /* @__PURE__ */ N(class extends D {
|
|
|
4310
4388
|
h(this, "adClientResponseItems");
|
|
4311
4389
|
h(this, "searchResultsPage");
|
|
4312
4390
|
h(this, "searchResultsPerPage");
|
|
4313
|
-
h(this, "config", (Ua =
|
|
4391
|
+
h(this, "config", (Ua = A.getState().core) == null ? void 0 : Ua.config);
|
|
4314
4392
|
this.__registerHost();
|
|
4315
4393
|
}
|
|
4316
4394
|
renderWithADMAds() {
|
|
@@ -4320,16 +4398,31 @@ const ac = /* @__PURE__ */ N(class extends D {
|
|
|
4320
4398
|
renderWithCustomAds() {
|
|
4321
4399
|
var u, l, i, p;
|
|
4322
4400
|
const r = [], a = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, n = ((l = this.config) == null ? void 0 : l.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, s = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
|
|
4323
|
-
for (let
|
|
4324
|
-
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${
|
|
4325
|
-
c.forEach((
|
|
4326
|
-
if (a &&
|
|
4327
|
-
for (let
|
|
4328
|
-
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${
|
|
4329
|
-
r.push(d("searchcraft-popover-list-item", { item:
|
|
4401
|
+
for (let m = 0; m < o; m++)
|
|
4402
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m}-ad` }));
|
|
4403
|
+
c.forEach((m, b) => {
|
|
4404
|
+
if (a && b % a === 0 && b + a < c.length && b >= a)
|
|
4405
|
+
for (let v = 0; v < n; v++)
|
|
4406
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m.id}-ad-${v}` }));
|
|
4407
|
+
r.push(d("searchcraft-popover-list-item", { item: m, key: m.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + b }));
|
|
4330
4408
|
});
|
|
4331
|
-
for (let
|
|
4332
|
-
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${
|
|
4409
|
+
for (let m = 0; m < s; m++)
|
|
4410
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m}-ad` }));
|
|
4411
|
+
return d("div", { class: "searchcraft-popover-list-view" }, r);
|
|
4412
|
+
}
|
|
4413
|
+
renderWithNativoAds() {
|
|
4414
|
+
var l, i, p, m, b;
|
|
4415
|
+
const r = [], a = ((l = this.config) == null ? void 0 : l.nativoAdInterstialStartIndex) || 0, n = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, s = ((m = this.config) == null ? void 0 : m.nativoAdStartQuantity) || 0, c = ((b = this.config) == null ? void 0 : b.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
|
|
4416
|
+
for (let v = 0; v < s; v++)
|
|
4417
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${v}-ad` }));
|
|
4418
|
+
u.forEach((v, $) => {
|
|
4419
|
+
if (n && ($ + a) % n === 0 && $ + n < u.length && $ >= n)
|
|
4420
|
+
for (let U = 0; U < o; U++)
|
|
4421
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${v.id}-ad-${U}` }));
|
|
4422
|
+
r.push(d("searchcraft-popover-list-item", { item: v, key: v.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + $ }));
|
|
4423
|
+
});
|
|
4424
|
+
for (let v = 0; v < c; v++)
|
|
4425
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${v}-ad` }));
|
|
4333
4426
|
return d("div", { class: "searchcraft-popover-list-view" }, r);
|
|
4334
4427
|
}
|
|
4335
4428
|
renderWithNoAds() {
|
|
@@ -4343,6 +4436,8 @@ const ac = /* @__PURE__ */ N(class extends D {
|
|
|
4343
4436
|
return this.renderWithADMAds();
|
|
4344
4437
|
case "Custom":
|
|
4345
4438
|
return this.renderWithCustomAds();
|
|
4439
|
+
case "Nativo":
|
|
4440
|
+
return this.renderWithNativoAds();
|
|
4346
4441
|
default:
|
|
4347
4442
|
return this.renderWithNoAds();
|
|
4348
4443
|
}
|
|
@@ -4354,7 +4449,7 @@ const ac = /* @__PURE__ */ N(class extends D {
|
|
|
4354
4449
|
searchResultsPage: [2, "search-results-page"],
|
|
4355
4450
|
searchResultsPerPage: [2, "search-results-per-page"]
|
|
4356
4451
|
}]);
|
|
4357
|
-
function
|
|
4452
|
+
function Es() {
|
|
4358
4453
|
if (typeof customElements > "u")
|
|
4359
4454
|
return;
|
|
4360
4455
|
["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -4420,7 +4515,7 @@ const sc = /* @__PURE__ */ N(class extends D {
|
|
|
4420
4515
|
r.preventDefault(), this.focusOnNextListItem(r.key);
|
|
4421
4516
|
break;
|
|
4422
4517
|
case "Escape":
|
|
4423
|
-
|
|
4518
|
+
A.getState().setPopoverVisibility(!1);
|
|
4424
4519
|
break;
|
|
4425
4520
|
default:
|
|
4426
4521
|
return;
|
|
@@ -4437,7 +4532,7 @@ const sc = /* @__PURE__ */ N(class extends D {
|
|
|
4437
4532
|
}
|
|
4438
4533
|
componentDidLoad() {
|
|
4439
4534
|
const r = getComputedStyle(document.documentElement);
|
|
4440
|
-
this.breakpointSm = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-sm").trim()), this.breakpointMd = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-md").trim()), this.breakpointLg = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-lg").trim()), this.isPopoverVisibleInState =
|
|
4535
|
+
this.breakpointSm = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-sm").trim()), this.breakpointMd = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-md").trim()), this.breakpointLg = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-lg").trim()), this.isPopoverVisibleInState = A.getState().isPopoverVisible, document.addEventListener("click", this.handleDocumentClick), document.addEventListener("keydown", this.handleDocumentKeyDown), this.unsubscribe = A.subscribe((a) => {
|
|
4441
4536
|
this.isPopoverVisibleInState !== a.isPopoverVisible && this.handlePopoverVisibilityChange(a.isPopoverVisible), this.searchClientResponseItems = [...a.searchClientResponseItems], this.adClientResponseItems = [...a.adClientResponseItems], this.searchTerm = a.searchTerm, this.searchResultsPage = a.searchResultsPage, this.searchResultsPerPage = a.searchResultsPerPage;
|
|
4442
4537
|
});
|
|
4443
4538
|
}
|
|
@@ -4456,10 +4551,10 @@ const sc = /* @__PURE__ */ N(class extends D {
|
|
|
4456
4551
|
* focusing on the input will open a modal version of the popover form.
|
|
4457
4552
|
*/
|
|
4458
4553
|
handleInputFocus() {
|
|
4459
|
-
this.isFocused = !0, this.type === "inline" && window.visualViewport && window.visualViewport.width < this.breakpointSm && (
|
|
4554
|
+
this.isFocused = !0, this.type === "inline" && window.visualViewport && window.visualViewport.width < this.breakpointSm && (A.getState().setPopoverVisibility(!0), this.modalElement || (this.modalElement = document.createElement("searchcraft-popover-form"), this.modalElement.popoverResultMappings = this.popoverResultMappings, this.modalElement.setAttribute("type", "fullscreen"), document.body.appendChild(this.modalElement)));
|
|
4460
4555
|
}
|
|
4461
4556
|
handleModalBackdropClick(r) {
|
|
4462
|
-
|
|
4557
|
+
A.getState().setPopoverVisibility(!1);
|
|
4463
4558
|
}
|
|
4464
4559
|
/**
|
|
4465
4560
|
* When a hotkey is pressed, tests if the modifiers also match.
|
|
@@ -4471,10 +4566,10 @@ const sc = /* @__PURE__ */ N(class extends D {
|
|
|
4471
4566
|
const a = this.hostElement.querySelector(".searchcraft-input");
|
|
4472
4567
|
a == null || a.focus();
|
|
4473
4568
|
} else
|
|
4474
|
-
|
|
4569
|
+
A.getState().setPopoverVisibility(!this.isPopoverVisibleInState);
|
|
4475
4570
|
}
|
|
4476
4571
|
handleCancelButtonClick() {
|
|
4477
|
-
|
|
4572
|
+
A.getState().setPopoverVisibility(!1);
|
|
4478
4573
|
}
|
|
4479
4574
|
/**
|
|
4480
4575
|
* Moves focus to the next/previous list item in the list view. If you are at the top
|
|
@@ -4502,14 +4597,14 @@ const sc = /* @__PURE__ */ N(class extends D {
|
|
|
4502
4597
|
return this.searchTerm && ((a = (r = this.searchTerm) == null ? void 0 : r.trim()) == null ? void 0 : a.length) > 0 && this.searchClientResponseItems.length > 0;
|
|
4503
4598
|
}
|
|
4504
4599
|
renderInlinePopover() {
|
|
4505
|
-
const r = this.hasResultsToShow && this.isFocused, a =
|
|
4600
|
+
const r = this.hasResultsToShow && this.isFocused, a = M("searchcraft-popover-form searchcraft-popover-form-inline", {
|
|
4506
4601
|
"searchcraft-popover-form-active": r
|
|
4507
4602
|
});
|
|
4508
4603
|
return d("div", { class: a }, d("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this) }), r && d("div", { class: "searchcraft-popover-inline-wrapper-outer" }, d("div", { class: "searchcraft-popover-inline-wrapper-inner" }, d("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }))));
|
|
4509
4604
|
}
|
|
4510
4605
|
renderModalPopover() {
|
|
4511
4606
|
if (this.isPopoverVisibleInState) {
|
|
4512
|
-
const r =
|
|
4607
|
+
const r = M("searchcraft-popover-form", {
|
|
4513
4608
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4514
4609
|
});
|
|
4515
4610
|
return d("div", { class: "searchcraft-popover-form-modal" }, d("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), d("div", { class: "searchcraft-popover-form-modal-inner" }, d("div", { class: r }, d("div", { class: "searchcraft-popover-form-input-wrapper" }, d("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), d("button", { type: "button", class: "searchcraft-popover-form-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), this.hasResultsToShow && d("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }))));
|
|
@@ -4565,7 +4660,7 @@ function ks() {
|
|
|
4565
4660
|
customElements.get(t) || Lt();
|
|
4566
4661
|
break;
|
|
4567
4662
|
case "searchcraft-input-form":
|
|
4568
|
-
customElements.get(t) ||
|
|
4663
|
+
customElements.get(t) || Rs();
|
|
4569
4664
|
break;
|
|
4570
4665
|
case "searchcraft-input-label":
|
|
4571
4666
|
customElements.get(t) || Tr();
|
|
@@ -4577,12 +4672,12 @@ function ks() {
|
|
|
4577
4672
|
customElements.get(t) || xr();
|
|
4578
4673
|
break;
|
|
4579
4674
|
case "searchcraft-popover-list-view":
|
|
4580
|
-
customElements.get(t) ||
|
|
4675
|
+
customElements.get(t) || Es();
|
|
4581
4676
|
break;
|
|
4582
4677
|
}
|
|
4583
4678
|
});
|
|
4584
4679
|
}
|
|
4585
|
-
const nc = ks, oc = xr, ic =
|
|
4680
|
+
const nc = ks, oc = xr, ic = Es, cc = /* @__PURE__ */ N(class extends D {
|
|
4586
4681
|
constructor() {
|
|
4587
4682
|
super();
|
|
4588
4683
|
/**
|
|
@@ -4613,7 +4708,7 @@ const nc = ks, oc = xr, ic = Rs, cc = /* @__PURE__ */ N(class extends D {
|
|
|
4613
4708
|
this.__registerHost();
|
|
4614
4709
|
}
|
|
4615
4710
|
connectedCallback() {
|
|
4616
|
-
this.unsubscribe =
|
|
4711
|
+
this.unsubscribe = A.subscribe((r) => {
|
|
4617
4712
|
this.searchTerm = r.searchTerm, this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchResultsCount = r.searchResultsCount, this.count = this.searchResultsCount, this.range[0] = this.searchResultsPage <= 1 ? 1 : this.searchResultsPerPage * (this.searchResultsPage - 1), this.range[1] = this.searchResultsPerPage * this.searchResultsPage, this.range[1] = this.range[1] > this.searchResultsCount ? this.searchResultsCount : this.range[1], this.responseTime = ((r.searchResponseTimeTaken || 0) * 1e3).toFixed(2);
|
|
4618
4713
|
});
|
|
4619
4714
|
}
|
|
@@ -4621,7 +4716,7 @@ const nc = ks, oc = xr, ic = Rs, cc = /* @__PURE__ */ N(class extends D {
|
|
|
4621
4716
|
this.unsubscribe && this.unsubscribe();
|
|
4622
4717
|
}
|
|
4623
4718
|
render() {
|
|
4624
|
-
return !this.searchTerm || this.searchResultsCount === 0 ? null : d("p", { class:
|
|
4719
|
+
return !this.searchTerm || this.searchResultsCount === 0 ? null : d("p", { class: M("searchcraft-results-info", lt(this.customStyles || {})) }, this.customFormatter ? this.customFormatter([
|
|
4625
4720
|
nr(this.range[0]),
|
|
4626
4721
|
nr(this.range[1])
|
|
4627
4722
|
], nr(this.count), this.responseTime) : `${this.count} results found in ${this.responseTime}ms`);
|
|
@@ -4701,7 +4796,7 @@ const uc = lc, hc = /* @__PURE__ */ N(class extends D {
|
|
|
4701
4796
|
this.setSearchResultsPage(r);
|
|
4702
4797
|
}
|
|
4703
4798
|
render() {
|
|
4704
|
-
return d("div", { key: "5024d49d89a3649a5de591d37ded304a9dfb36d9", class:
|
|
4799
|
+
return d("div", { key: "5024d49d89a3649a5de591d37ded304a9dfb36d9", class: M("searchcraft-select", lt(this.customStyles || {})) }, this.label && d("label", { key: "005aea9b190e5a6c041721e20395be23f76faab6", class: "searchcraft-select-label", id: this.labelId || `${this.inputId}-label`, htmlFor: this.inputId }, this.label), d("div", { key: "209d56844c0bcd241e73bafcad24fac927fe7ffa", class: "searchcraft-select-input-wrapper" }, d("select", { key: "010c9e596ef45a303f84c0ac0fa54ab67556d7b6", "aria-labelledby": this.label ? this.labelId || `${this.inputId}-label` : void 0, class: "searchcraft-select-input", disabled: this.disabled, id: this.inputId, name: this.name, onChange: this.handleSelectChange }, (typeof this.options == "string" ? JSON.parse(this.options) : this.options).map(({ label: r, value: a, selected: n }) => d("option", { key: a, value: a, selected: n }, r))), d("svg", { key: "51d9fb79381468ee0992475ba376df5a5961116c", class: "searchcraft-select-input-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("title", { key: "59186138953557764915d41708d4bcc23a9bb97f" }, "Select dropdown icon"), d("path", { key: "ec2c962df16cb68bdaf3e2c32e57d875a63957a9", d: "M5 7.5L10 12.5L15 7.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.caption && d("p", { key: "742bc2dbd8371938894d49bb37d429d1b7a07d7a", class: "searchcraft-select-caption" }, this.caption));
|
|
4705
4800
|
}
|
|
4706
4801
|
}, [0, "searchcraft-select", {
|
|
4707
4802
|
caption: [1],
|
|
@@ -4757,9 +4852,9 @@ const fc = /* @__PURE__ */ N(class extends D {
|
|
|
4757
4852
|
this.__registerHost();
|
|
4758
4853
|
}
|
|
4759
4854
|
componentDidLoad() {
|
|
4760
|
-
this.unsubscribe =
|
|
4855
|
+
this.unsubscribe = A.subscribe((r) => {
|
|
4761
4856
|
this.searchTerm = r.searchTerm, this.searchResultsPerPage = r.searchResultsPerPage, this.searchResultsPage = r.searchResultsPage, this.searchResultsCount = r.searchResultsCount, this.searchResultsPagesCount = Math.ceil(this.searchResultsCount / this.searchResultsPerPage), this.setSearchResultsPage = r.setSearchResultsPage, this.setSearchResultsPerPage = r.setSearchResultsPerPage;
|
|
4762
|
-
}), this.initialSearchResultsPerPage =
|
|
4857
|
+
}), this.initialSearchResultsPerPage = A.getState().searchResultsPerPage;
|
|
4763
4858
|
}
|
|
4764
4859
|
disconnectedCallback() {
|
|
4765
4860
|
var r;
|
|
@@ -4767,7 +4862,7 @@ const fc = /* @__PURE__ */ N(class extends D {
|
|
|
4767
4862
|
}
|
|
4768
4863
|
render() {
|
|
4769
4864
|
if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
|
|
4770
|
-
return d("div", { class:
|
|
4865
|
+
return d("div", { class: M("searchcraft-search-results-per-page", lt(this.customStyles || {})) }, d("div", { class: "searchcraft-search-results-per-page-select" }, d("label", { class: "searchcraft-search-results-per-page-select-label", htmlFor: "searchcraft-search-results-per-page-select-input" }, "Results Per Page"), d("div", { class: "searchcraft-search-results-per-page-select-input" }, d("searchcraft-select", { inputId: "searchcraft-search-results-per-page-select-input", name: "results-per-page", options: [...Array(5)].map((r, a) => {
|
|
4771
4866
|
const n = this.initialSearchResultsPerPage + Number(this.increment) * a;
|
|
4772
4867
|
return {
|
|
4773
4868
|
label: `${n}`,
|
|
@@ -4803,8 +4898,8 @@ function dc() {
|
|
|
4803
4898
|
}
|
|
4804
4899
|
});
|
|
4805
4900
|
}
|
|
4806
|
-
const pc = dc, mc = Ps, gc = Ss, bc = `: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)}: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: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var(--sc-color-background-hover, #fafafa);--sc-color-background-active: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, #f7f7f7 );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-secondary-hover, var(--sc-color-background-hover, #e6e6e6) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var(--sc-color-foreground-secondary, #404040);--sc-border-neutral: rgba(0, 0, 0, 0.1);--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var(--sc-color-brand-hover, #2e2e2e);--sc-color-brand-active: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var(--sc-color-brand-active, #292929);--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-surface-brand-secondary-hover: var( --sc-color-brand-secondary-hover, var(--sc-color-brand-hover, #ebebeb) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active, #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: hsl(from var(--sc-color-success) h s 30);--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, #009900 );--sc-color-success-primary-active: hsl(from var(--sc-color-success) h s 20);--sc-surface-success-primary-active: var( --sc-color-success-primary-active, #006600 );--sc-color-success-secondary: hsl(from var(--sc-color-success) h s 90);--sc-surface-success-secondary: var(--sc-color-success-secondary, #ccffcc);--sc-color-success-secondary-hover: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, #e6ffe6 );--sc-color-success-secondary-active: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, #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: hsl(from var(--sc-color-caution) h s 30);--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, #e57300 );--sc-color-caution-primary-active: hsl(from var(--sc-color-caution) h s 20);--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, #b25a00 );--sc-color-caution-secondary: hsl(from var(--sc-color-caution) h s 90);--sc-surface-caution-secondary: var(--sc-color-caution-secondary, #ffd9b3);--sc-color-caution-secondary-hover: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, #ffe5cc );--sc-color-caution-secondary-active: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, #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: hsl(from var(--sc-color-danger) h s 30);--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, #e50000 );--sc-color-danger-primary-active: hsl(from var(--sc-color-danger) h s 20);--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, #b30000 );--sc-color-danger-secondary: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var(--sc-color-danger-secondary, #ffcccc);--sc-color-danger-secondary-hover: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, #ffe7e7 );--sc-color-danger-secondary-active: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, #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: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover: hsl(from var(--sc-color-success) h s 30%);--sc-color-success-primary-active: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary: hsl(from var(--sc-color-success) h s 90%);--sc-color-success-secondary-hover: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active: 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: hsl(from var(--sc-color-caution) h s 30%);--sc-color-caution-primary-active: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary: hsl(from var(--sc-color-caution) h s 90%);--sc-color-caution-secondary-hover: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active: 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: hsl(from var(--sc-color-danger) h s 30%);--sc-color-danger-primary-active: hsl(from var(--sc-color-danger) h s 20%);--sc-color-danger-secondary: hsl(from var(--sc-color-danger) h s 90%);--sc-color-danger-secondary-hover: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active: 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-custom-ad{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size)}.searchcraft-adm-ad{all:unset;display:flex;flex-direction:row;cursor:pointer;gap:8px;padding-right:var(--sc-popover-list-item-padding-horizontal);padding-left:var(--sc-popover-list-item-padding-horizontal);padding-top:var(--sc-popover-list-item-padding-vertical);padding-bottom:var(--sc-popover-list-item-padding-vertical);border:1px solid blue}.searchcraft-adm-ad:focus{background-color:var(--sc-surface-neutral-secondary-active);color:var(--sc-content-neutral-secondary)}.searchcraft-adm-ad:hover{background-color:var(--sc-surface-neutral-secondary-hover);color:var(--sc-content-neutral-secondary)}.searchcraft-adm-ad-title{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);margin:0;color:inherit}.searchcraft-adm-ad-subtitle{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);margin:0;color:inherit}.searchcraft-adm-ad-image-wrapper{width:var(--sc-popover-list-item-image-size);height:var(--sc-popover-list-item-image-size);display:flex;align-items:center;justify-content:center;flex-shrink:0}.searchcraft-adm-ad-image{max-width:var(--sc-popover-list-item-image-size);max-height:var(--sc-popover-list-item-image-size)}.searchcraft-adm-ad-info-wrapper{display:flex;flex-direction:column;gap:8px;justify-content:center}.searchcraft-search-result-container{all:unset;align-items:flex-start;border-radius:var(--sc-border-radius-lg);display:flex;flex-direction:column;gap:16px;padding:8px;color:inherit;background-color:var(--sc-surface-neutral-primary)}@media(min-width: 768px){.searchcraft-search-result-container{flex-direction:row}}a.searchcraft-search-result-container{cursor:pointer;transition:background-color 100ms}.searchcraft-base-search-result-content-container{flex:1;display:flex;flex-direction:column;gap:8px}.searchcraft-search-result-image{border-radius:calc(--sc-border-radius-lg - 8px);border-radius:calc(var(--sc-border-radius-lg) - 8px);width:100%}@media(min-width: 768px){.searchcraft-search-result-image{width:200px}}.searchcraft-base-search-result-title{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin:0}.searchcraft-base-search-result-subtitle{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);color:var(--sc-content-disabled);margin:0}.searchcraft-base-search-result-body-content{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-base-search-result-footer-content{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-disabled);margin:0}.searchcraft-search-results-container{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state-container{text-align:center}.searchcraft-search-results-error-message-container{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);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-error-message{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);color:var(--sc-content-danger);margin:0}.filtersListContainer{width:100%}.filterCheckboxLabel{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}.filterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.filterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.filterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.filterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.filterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.childFilterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:12px;margin-left:24px;position:relative}.childFilterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px;-webkit-font-smoothing:antialiased}.childFilterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.childFilterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.childFilterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.childFilterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.checkContainer{display:none;height:16px;width:16px;position:absolute;top:9px;left:8px}.dashContainer{display:none;height:3px;width:14px;position:absolute;top:3px;left:9px}.searchcraft-facet-message{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-bold)}:root{--sc-input-border-radius: var(--sc-border-radius);--sc-input-search-icon-size: 20px;--sc-input-clear-icon-size: 20px;--sc-input-padding-left: 44px;--sc-input-padding-right: 44px}.searchcraft-input-grid{display:grid;gap:4px 8px}.searchcraft-input-grid-buttonLeft{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-grid-buttonLeft .searchcraft-input-button-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-label-wrapper{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-error-wrapper{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-grid-buttonRight .searchcraft-input-button-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonNone{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-grid-buttonNone .searchcraft-input-button-wrapper{display:none}.searchcraft-input-grid-buttonNone .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-wrapper{position:relative;display:flex}.searchcraft-input{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-border-radius);border:none;color:var(--sc-content-neutral-primary);outline:none;padding-left:var(--sc-input-padding-left);padding-right:var(--sc-input-padding-right);padding-top:12px;padding-bottom:12px;flex:1}.searchcraft-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input:focus{outline:var(--sc-border-brand) solid 2px}.searchcraft-input:focus::placeholder{opacity:0}.searchcraft-input.error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input.error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-search-icon-wrapper{align-items:center;justify-content:center;display:flex;position:absolute;pointer-events:none;bottom:0;left:0;top:0;width:var(--sc-input-padding-left)}.searchcraft-input-search-icon{pointer-events:none;width:var(--sc-input-search-icon-size);height:var(--sc-input-search-icon-size);color:var(--sc-content-neutral-secondary)}.searchcraft-input-clear-button{all:unset;align-items:center;justify-content:center;cursor:pointer;display:flex;position:absolute;border:none;outline:none;bottom:0;right:0;top:0;width:var(--sc-input-padding-right)}.searchcraft-input-clear-icon{width:var(--sc-input-clear-icon-size);height:var(--sc-input-clear-icon-size);color:var(--sc-content-brand)}.searchcraft-input-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-form-border-radius: var(--sc-border-radius);--sc-popover-list-view-height: 400px;--sc-popover-list-item-image-size: 60px;--sc-popover-list-item-padding-horizontal: 8px;--sc-popover-list-item-padding-vertical: 8px;--sc-popover-modal-max-width: 570px}.searchcraft-popover-form{display:flex;flex-direction:column;flex:1}.searchcraft-popover-form .searchcraft-popover-form-input-wrapper{padding:12px;background-color:var(--sc-surface-neutral-secondary);display:flex;flex-direction:row;gap:4px}.searchcraft-popover-form .searchcraft-popover-form-input-wrapper>searchcraft-input-form{flex:1}.searchcraft-popover-form .searchcraft-popover-form-cancel-button{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);border-radius:calc(--sc-popover-form-border-radius - 12px);border-radius:calc(var(--sc-popover-form-border-radius) - 12px);border:0;outline:0;padding:0;flex-shrink:0;background:none;cursor:pointer;padding-left:12px;padding-right:12px}.searchcraft-popover-form .searchcraft-popover-form-cancel-button:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-popover-form .searchcraft-popover-form-cancel-button:focus{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-popover-form-inline .searchcraft-input{border-top-left-radius:var(--sc-popover-form-border-radius);border-top-right-radius:var(--sc-popover-form-border-radius);border-bottom-left-radius:var(--sc-popover-form-border-radius);border-bottom-right-radius:var(--sc-popover-form-border-radius);border:none;outline:none}.searchcraft-popover-form-inline.searchcraft-popover-form-active .searchcraft-input{border-top-left-radius:var(--sc-popover-form-border-radius);border-top-right-radius:var(--sc-popover-form-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-outer{position:relative}.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-inner{position:absolute;height:var(--sc-popover-list-view-height);z-index:1000;width:100%}.searchcraft-popover-form-inline .searchcraft-popover-list-view{display:flex;flex-direction:column;overflow:auto;background-color:var(--sc-surface-neutral-secondary);border-bottom-left-radius:var(--sc-popover-form-border-radius);border-bottom-right-radius:var(--sc-popover-form-border-radius);max-height:var(--sc-popover-list-view-height)}.searchcraft-popover-form-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding:0;background-color:var(--sc-surface-neutral-secondary)}@media(min-width: 576px){.searchcraft-popover-form-modal{padding:16px;background-color:rgba(0,0,0,0)}}.searchcraft-popover-form-modal .searchcraft-input{border-radius:calc(--sc-popover-form-border-radius - 12px);border-radius:calc(var(--sc-popover-form-border-radius) - 12px);outline-width:1px;outline-color:var(--sc-border-neutral)}.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop{position:absolute;inset:0;background-color:rgba(0,0,0,.5);display:none}@media(min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner{position:absolute;inset:0;z-index:1002;margin-top:0px;display:flex;border-radius:var(--sc-popover-form-border-radius);overflow:hidden}@media(min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner{inset:auto;position:relative;width:100%;margin-top:100px;max-width:var(--sc-popover-modal-max-width)}}.searchcraft-popover-form-modal .searchcraft-popover-list-view{display:flex;flex-direction:column;overflow:auto;background-color:var(--sc-surface-neutral-secondary);border-bottom-left-radius:0;border-bottom-right-radius:0}@media(min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-list-view{max-height:var(--sc-popover-list-view-height)}}.searchcraft-popover-form-modal searchcraft-popover-list-view{overflow:scroll}@media(min-width: 576px){.searchcraft-popover-form-modal searchcraft-popover-list-view{overflow:auto}}.searchcraft-popover-form-fullscreen{position:fixed;inset:0;z-index:1000;background-color:var(--sc-surface-neutral-secondary)}.searchcraft-popover-form-fullscreen .searchcraft-popover-form{position:absolute;inset:0}.searchcraft-popover-form-fullscreen .searchcraft-input{border-radius:calc(--sc-popover-form-border-radius - 12px);border-radius:calc(var(--sc-popover-form-border-radius) - 12px);outline-width:1px;outline-color:var(--sc-border-neutral)}.searchcraft-popover-form-fullscreen searchcraft-popover-list-view{overflow:scroll}.searchcraft-popover-list-item{all:unset;color:var(--sc-content-neutral-secondary);display:flex;flex-direction:row;cursor:pointer;gap:8px;padding-right:var(--sc-popover-list-item-padding-horizontal);padding-left:var(--sc-popover-list-item-padding-horizontal);padding-top:var(--sc-popover-list-item-padding-vertical);padding-bottom:var(--sc-popover-list-item-padding-vertical)}.searchcraft-popover-list-item:focus{background-color:var(--sc-surface-neutral-secondary-active);color:var(--sc-content-neutral-secondary)}.searchcraft-popover-list-item:hover{background-color:var(--sc-surface-neutral-secondary-hover);color:var(--sc-content-neutral-secondary)}.searchcraft-popover-list-item-title{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);margin:0;color:inherit}.searchcraft-popover-list-item-subtitle{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);margin:0;color:inherit}.searchcraft-popover-list-item-image-wrapper{width:var(--sc-popover-list-item-image-size);height:var(--sc-popover-list-item-image-size);display:flex;align-items:center;justify-content:center;flex-shrink:0}.searchcraft-popover-list-item-image{max-width:var(--sc-popover-list-item-image-size);max-height:var(--sc-popover-list-item-image-size)}.searchcraft-popover-list-item-info-wrapper{display:flex;flex-direction:column;gap:8px;justify-content:center}.searchcraft-results-info{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-primary);margin:0}.searchcraft-slider-container{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range-container{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range-container::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range-container .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-input{appearance:none;background: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-container .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range-container .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label-container{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro",sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-label{min-width:30px;text-align:center}.searchcraft-toggle-button-container{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-toggle-button-background{transition:background-color .2s;background:var(--sc-surface-disabled);border:none;border-radius:16px;cursor:pointer;height:26px;position:relative;width:44px;flex-shrink:0}.searchcraft-toggle-button-background.active{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-handle.active{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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);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{pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size)}.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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
4807
|
-
`,
|
|
4901
|
+
const pc = dc, mc = Ps, gc = Ss, vc = `: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)}: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: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var(--sc-color-background-hover, #fafafa);--sc-color-background-active: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, #f7f7f7 );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-secondary-hover, var(--sc-color-background-hover, #e6e6e6) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var(--sc-color-foreground-secondary, #404040);--sc-border-neutral: rgba(0, 0, 0, 0.1);--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var(--sc-color-brand-hover, #2e2e2e);--sc-color-brand-active: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var(--sc-color-brand-active, #292929);--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-surface-brand-secondary-hover: var( --sc-color-brand-secondary-hover, var(--sc-color-brand-hover, #ebebeb) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active, #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: hsl(from var(--sc-color-success) h s 30);--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, #009900 );--sc-color-success-primary-active: hsl(from var(--sc-color-success) h s 20);--sc-surface-success-primary-active: var( --sc-color-success-primary-active, #006600 );--sc-color-success-secondary: hsl(from var(--sc-color-success) h s 90);--sc-surface-success-secondary: var(--sc-color-success-secondary, #ccffcc);--sc-color-success-secondary-hover: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, #e6ffe6 );--sc-color-success-secondary-active: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, #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: hsl(from var(--sc-color-caution) h s 30);--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, #e57300 );--sc-color-caution-primary-active: hsl(from var(--sc-color-caution) h s 20);--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, #b25a00 );--sc-color-caution-secondary: hsl(from var(--sc-color-caution) h s 90);--sc-surface-caution-secondary: var(--sc-color-caution-secondary, #ffd9b3);--sc-color-caution-secondary-hover: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, #ffe5cc );--sc-color-caution-secondary-active: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, #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: hsl(from var(--sc-color-danger) h s 30);--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, #e50000 );--sc-color-danger-primary-active: hsl(from var(--sc-color-danger) h s 20);--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, #b30000 );--sc-color-danger-secondary: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var(--sc-color-danger-secondary, #ffcccc);--sc-color-danger-secondary-hover: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, #ffe7e7 );--sc-color-danger-secondary-active: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, #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: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover: hsl(from var(--sc-color-success) h s 30%);--sc-color-success-primary-active: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary: hsl(from var(--sc-color-success) h s 90%);--sc-color-success-secondary-hover: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active: 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: hsl(from var(--sc-color-caution) h s 30%);--sc-color-caution-primary-active: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary: hsl(from var(--sc-color-caution) h s 90%);--sc-color-caution-secondary-hover: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active: 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: hsl(from var(--sc-color-danger) h s 30%);--sc-color-danger-primary-active: hsl(from var(--sc-color-danger) h s 20%);--sc-color-danger-secondary: hsl(from var(--sc-color-danger) h s 90%);--sc-color-danger-secondary-hover: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active: 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-custom-ad{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size)}.searchcraft-adm-ad{all:unset;display:flex;flex-direction:row;cursor:pointer;gap:8px;padding-right:var(--sc-popover-list-item-padding-horizontal);padding-left:var(--sc-popover-list-item-padding-horizontal);padding-top:var(--sc-popover-list-item-padding-vertical);padding-bottom:var(--sc-popover-list-item-padding-vertical);border:1px solid blue}.searchcraft-adm-ad:focus{background-color:var(--sc-surface-neutral-secondary-active);color:var(--sc-content-neutral-secondary)}.searchcraft-adm-ad:hover{background-color:var(--sc-surface-neutral-secondary-hover);color:var(--sc-content-neutral-secondary)}.searchcraft-adm-ad-title{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);margin:0;color:inherit}.searchcraft-adm-ad-subtitle{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);margin:0;color:inherit}.searchcraft-adm-ad-image-wrapper{width:var(--sc-popover-list-item-image-size);height:var(--sc-popover-list-item-image-size);display:flex;align-items:center;justify-content:center;flex-shrink:0}.searchcraft-adm-ad-image{max-width:var(--sc-popover-list-item-image-size);max-height:var(--sc-popover-list-item-image-size)}.searchcraft-adm-ad-info-wrapper{display:flex;flex-direction:column;gap:8px;justify-content:center}.searchcraft-search-result-container{all:unset;align-items:flex-start;border-radius:var(--sc-border-radius-lg);display:flex;flex-direction:column;gap:16px;padding:8px;color:inherit;background-color:var(--sc-surface-neutral-primary)}@media(min-width: 768px){.searchcraft-search-result-container{flex-direction:row}}a.searchcraft-search-result-container{cursor:pointer;transition:background-color 100ms}.searchcraft-base-search-result-content-container{flex:1;display:flex;flex-direction:column;gap:8px}.searchcraft-search-result-image{border-radius:calc(--sc-border-radius-lg - 8px);border-radius:calc(var(--sc-border-radius-lg) - 8px);width:100%}@media(min-width: 768px){.searchcraft-search-result-image{width:200px}}.searchcraft-base-search-result-title{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin:0}.searchcraft-base-search-result-subtitle{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);color:var(--sc-content-disabled);margin:0}.searchcraft-base-search-result-body-content{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-base-search-result-footer-content{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-disabled);margin:0}.searchcraft-search-results-container{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state-container{text-align:center}.searchcraft-search-results-error-message-container{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);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-error-message{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);color:var(--sc-content-danger);margin:0}.filtersListContainer{width:100%}.filterCheckboxLabel{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}.filterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.filterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.filterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.filterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.filterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.childFilterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:12px;margin-left:24px;position:relative}.childFilterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px;-webkit-font-smoothing:antialiased}.childFilterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.childFilterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.childFilterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.childFilterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.checkContainer{display:none;height:16px;width:16px;position:absolute;top:9px;left:8px}.dashContainer{display:none;height:3px;width:14px;position:absolute;top:3px;left:9px}.searchcraft-facet-message{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-bold)}:root{--sc-input-border-radius: var(--sc-border-radius);--sc-input-search-icon-size: 20px;--sc-input-clear-icon-size: 20px;--sc-input-padding-left: 44px;--sc-input-padding-right: 44px}.searchcraft-input-grid{display:grid;gap:4px 8px}.searchcraft-input-grid-buttonLeft{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-grid-buttonLeft .searchcraft-input-button-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-label-wrapper{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-error-wrapper{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-grid-buttonRight .searchcraft-input-button-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonNone{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-grid-buttonNone .searchcraft-input-button-wrapper{display:none}.searchcraft-input-grid-buttonNone .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-wrapper{position:relative;display:flex}.searchcraft-input{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-border-radius);border:none;color:var(--sc-content-neutral-primary);outline:none;padding-left:var(--sc-input-padding-left);padding-right:var(--sc-input-padding-right);padding-top:12px;padding-bottom:12px;flex:1}.searchcraft-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input:focus{outline:var(--sc-border-brand) solid 2px}.searchcraft-input:focus::placeholder{opacity:0}.searchcraft-input.error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input.error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-search-icon-wrapper{align-items:center;justify-content:center;display:flex;position:absolute;pointer-events:none;bottom:0;left:0;top:0;width:var(--sc-input-padding-left)}.searchcraft-input-search-icon{pointer-events:none;width:var(--sc-input-search-icon-size);height:var(--sc-input-search-icon-size);color:var(--sc-content-neutral-secondary)}.searchcraft-input-clear-button{all:unset;align-items:center;justify-content:center;cursor:pointer;display:flex;position:absolute;border:none;outline:none;bottom:0;right:0;top:0;width:var(--sc-input-padding-right)}.searchcraft-input-clear-icon{width:var(--sc-input-clear-icon-size);height:var(--sc-input-clear-icon-size);color:var(--sc-content-brand)}.searchcraft-input-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-form-border-radius: var(--sc-border-radius);--sc-popover-list-view-height: 400px;--sc-popover-list-item-image-size: 60px;--sc-popover-list-item-padding-horizontal: 8px;--sc-popover-list-item-padding-vertical: 8px;--sc-popover-modal-max-width: 570px}.searchcraft-popover-form{display:flex;flex-direction:column;flex:1}.searchcraft-popover-form .searchcraft-popover-form-input-wrapper{padding:12px;background-color:var(--sc-surface-neutral-secondary);display:flex;flex-direction:row;gap:4px}.searchcraft-popover-form .searchcraft-popover-form-input-wrapper>searchcraft-input-form{flex:1}.searchcraft-popover-form .searchcraft-popover-form-cancel-button{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);border-radius:calc(--sc-popover-form-border-radius - 12px);border-radius:calc(var(--sc-popover-form-border-radius) - 12px);border:0;outline:0;padding:0;flex-shrink:0;background:none;cursor:pointer;padding-left:12px;padding-right:12px}.searchcraft-popover-form .searchcraft-popover-form-cancel-button:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-popover-form .searchcraft-popover-form-cancel-button:focus{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-popover-form-inline .searchcraft-input{border-top-left-radius:var(--sc-popover-form-border-radius);border-top-right-radius:var(--sc-popover-form-border-radius);border-bottom-left-radius:var(--sc-popover-form-border-radius);border-bottom-right-radius:var(--sc-popover-form-border-radius);border:none;outline:none}.searchcraft-popover-form-inline.searchcraft-popover-form-active .searchcraft-input{border-top-left-radius:var(--sc-popover-form-border-radius);border-top-right-radius:var(--sc-popover-form-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-outer{position:relative}.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-inner{position:absolute;height:var(--sc-popover-list-view-height);z-index:1000;width:100%}.searchcraft-popover-form-inline .searchcraft-popover-list-view{display:flex;flex-direction:column;overflow:auto;background-color:var(--sc-surface-neutral-secondary);border-bottom-left-radius:var(--sc-popover-form-border-radius);border-bottom-right-radius:var(--sc-popover-form-border-radius);max-height:var(--sc-popover-list-view-height)}.searchcraft-popover-form-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding:0;background-color:var(--sc-surface-neutral-secondary)}@media(min-width: 576px){.searchcraft-popover-form-modal{padding:16px;background-color:rgba(0,0,0,0)}}.searchcraft-popover-form-modal .searchcraft-input{border-radius:calc(--sc-popover-form-border-radius - 12px);border-radius:calc(var(--sc-popover-form-border-radius) - 12px);outline-width:1px;outline-color:var(--sc-border-neutral)}.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop{position:absolute;inset:0;background-color:rgba(0,0,0,.5);display:none}@media(min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner{position:absolute;inset:0;z-index:1002;margin-top:0px;display:flex;border-radius:var(--sc-popover-form-border-radius);overflow:hidden}@media(min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner{inset:auto;position:relative;width:100%;margin-top:100px;max-width:var(--sc-popover-modal-max-width)}}.searchcraft-popover-form-modal .searchcraft-popover-list-view{display:flex;flex-direction:column;overflow:auto;background-color:var(--sc-surface-neutral-secondary);border-bottom-left-radius:0;border-bottom-right-radius:0}@media(min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-list-view{max-height:var(--sc-popover-list-view-height)}}.searchcraft-popover-form-modal searchcraft-popover-list-view{overflow:scroll}@media(min-width: 576px){.searchcraft-popover-form-modal searchcraft-popover-list-view{overflow:auto}}.searchcraft-popover-form-fullscreen{position:fixed;inset:0;z-index:1000;background-color:var(--sc-surface-neutral-secondary)}.searchcraft-popover-form-fullscreen .searchcraft-popover-form{position:absolute;inset:0}.searchcraft-popover-form-fullscreen .searchcraft-input{border-radius:calc(--sc-popover-form-border-radius - 12px);border-radius:calc(var(--sc-popover-form-border-radius) - 12px);outline-width:1px;outline-color:var(--sc-border-neutral)}.searchcraft-popover-form-fullscreen searchcraft-popover-list-view{overflow:scroll}.searchcraft-popover-list-item{all:unset;color:var(--sc-content-neutral-secondary);display:flex;flex-direction:row;cursor:pointer;gap:8px;padding-right:var(--sc-popover-list-item-padding-horizontal);padding-left:var(--sc-popover-list-item-padding-horizontal);padding-top:var(--sc-popover-list-item-padding-vertical);padding-bottom:var(--sc-popover-list-item-padding-vertical)}.searchcraft-popover-list-item:focus{background-color:var(--sc-surface-neutral-secondary-active);color:var(--sc-content-neutral-secondary)}.searchcraft-popover-list-item:hover{background-color:var(--sc-surface-neutral-secondary-hover);color:var(--sc-content-neutral-secondary)}.searchcraft-popover-list-item-title{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);margin:0;color:inherit}.searchcraft-popover-list-item-subtitle{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);margin:0;color:inherit}.searchcraft-popover-list-item-image-wrapper{width:var(--sc-popover-list-item-image-size);height:var(--sc-popover-list-item-image-size);display:flex;align-items:center;justify-content:center;flex-shrink:0}.searchcraft-popover-list-item-image{max-width:var(--sc-popover-list-item-image-size);max-height:var(--sc-popover-list-item-image-size)}.searchcraft-popover-list-item-info-wrapper{display:flex;flex-direction:column;gap:8px;justify-content:center}.searchcraft-results-info{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-primary);margin:0}.searchcraft-slider-container{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range-container{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range-container::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range-container .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-input{appearance:none;background: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-container .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range-container .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label-container{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro",sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-label{min-width:30px;text-align:center}.searchcraft-toggle-button-container{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-toggle-button-background{transition:background-color .2s;background:var(--sc-surface-disabled);border:none;border-radius:16px;cursor:pointer;height:26px;position:relative;width:44px;flex-shrink:0}.searchcraft-toggle-button-background.active{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-handle.active{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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);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{pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size)}.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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
4902
|
+
`, bc = /* @__PURE__ */ N(class extends D {
|
|
4808
4903
|
constructor() {
|
|
4809
4904
|
super();
|
|
4810
4905
|
/**
|
|
@@ -4820,7 +4915,7 @@ const pc = dc, mc = Ps, gc = Ss, bc = `:root{--sc-text-base-size: 1em;--sc-text-
|
|
|
4820
4915
|
}
|
|
4821
4916
|
componentDidLoad() {
|
|
4822
4917
|
const r = document.querySelector("#searchcraft-theme") || document.createElement("style");
|
|
4823
|
-
r.innerHTML =
|
|
4918
|
+
r.innerHTML = vc, r.id = "searchcraft-theme";
|
|
4824
4919
|
const a = document.head || document.getElementsByTagName("head")[0];
|
|
4825
4920
|
a.contains(r) || (a.firstChild ? a.insertBefore(r, a.firstChild) : a.appendChild(r)), document.body.dataset.theme = this.theme || "light", Object.entries(JSON.parse(this.customTheme || "[]")).map(([n, o]) => {
|
|
4826
4921
|
document.documentElement.style.setProperty(`--${this.camelToKebab(n)}`, `${o}`);
|
|
@@ -4838,18 +4933,18 @@ function yc() {
|
|
|
4838
4933
|
["searchcraft-theme"].forEach((t) => {
|
|
4839
4934
|
switch (t) {
|
|
4840
4935
|
case "searchcraft-theme":
|
|
4841
|
-
customElements.get(t) || customElements.define(t,
|
|
4936
|
+
customElements.get(t) || customElements.define(t, bc);
|
|
4842
4937
|
break;
|
|
4843
4938
|
}
|
|
4844
4939
|
});
|
|
4845
4940
|
}
|
|
4846
4941
|
const Sc = yc, wc = ws, Cs = () => {
|
|
4847
|
-
|
|
4942
|
+
Ei(), Ci(), Ai(), Mi(), Li(), zi(), Gi(), Yi(), Qi(), Ji(), tc(), nc(), oc(), ic(), uc(), pc(), mc(), gc(), Sc(), wc();
|
|
4848
4943
|
};
|
|
4849
4944
|
Cs();
|
|
4850
|
-
const
|
|
4851
|
-
name:
|
|
4852
|
-
version:
|
|
4945
|
+
const Rc = "@searchcraft/vue-sdk", Ec = "0.9.5", kc = "Searchcraft Vue SDK.", Pc = "module", Cc = "Apache-2.0", Tc = ["searchcraft"], xc = { dev: "vite", clean: "rm -rf dist", build: "yarn clean && vite build && yarn docs", docs: "typedoc --options typedoc.json", preview: "vite preview", "build-only": "vite build", "type-check": "vue-tsc --build" }, $c = { type: "git", url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/" }, _c = { node: ">=18.0.0", npm: ">=10.0.0" }, Ac = "./dist/index.umd.js", Ic = "./dist/index.es.js", Mc = "./dist/index.d.ts", Lc = { ".": { types: "./dist/index.d.ts", import: "./dist/index.es.js", require: "./dist/index.umd.js" }, "./components": "./dist/components/index.d.ts", "./plugin": "./dist/plugin.d.ts" }, Oc = ["dist"], Fc = { vue: "^3.5.13" }, Dc = { "@searchcraft/core": "^0.9.5", "@searchcraft/javascript-sdk": "^0.9.5", "@tsconfig/node22": "^22.0.0", "@types/node": "^22.10.7", "@vitejs/plugin-vue": "^5.2.1", "@vitejs/plugin-vue-jsx": "^4.1.1", "@vue/runtime-dom": "^3.5.13", "@vue/tsconfig": "^0.7.0", "npm-run-all2": "^7.0.2", vite: "^6.0.11", "vite-plugin-dts": "^4.5.0", "vite-plugin-vue-devtools": "^7.7.0", "vue-docgen-web-types": "^0.1.8", "vue-tsc": "^2.2.0" }, Oa = {
|
|
4946
|
+
name: Rc,
|
|
4947
|
+
version: Ec,
|
|
4853
4948
|
private: !1,
|
|
4854
4949
|
description: kc,
|
|
4855
4950
|
type: Pc,
|
|
@@ -4868,46 +4963,46 @@ const Ec = "@searchcraft/vue-sdk", Rc = "0.9.4", kc = "Searchcraft Vue SDK.", Pc
|
|
|
4868
4963
|
}, or = "routerLink", Fa = "navManager", Nc = "router", Uc = "aria", at = Symbol(), Da = { default: at }, Na = (e) => (e == null ? void 0 : e.split(" ")) || [], zc = (e, t, r = []) => {
|
|
4869
4964
|
var a;
|
|
4870
4965
|
return [...Array.from(((a = e.value) == null ? void 0 : a.classList) || []), ...r].filter((n, o, s) => !t.has(n) && s.indexOf(n) === o);
|
|
4871
|
-
},
|
|
4966
|
+
}, Ee = (e, t, r = [], a = [], n, o) => {
|
|
4872
4967
|
t !== void 0 && t();
|
|
4873
4968
|
const s = pn((c, { attrs: u, slots: l, emit: i }) => {
|
|
4874
|
-
var
|
|
4875
|
-
const p = mn(),
|
|
4969
|
+
var V;
|
|
4970
|
+
const p = mn(), m = new Set(Na(u.class)), b = gn(), $ = ((V = b == null ? void 0 : b.appContext) == null ? void 0 : V.provides[Fa]) ? vn(Fa) : void 0, U = (_) => {
|
|
4876
4971
|
const { routerLink: me } = c;
|
|
4877
4972
|
if (me !== at)
|
|
4878
|
-
if (
|
|
4879
|
-
|
|
4880
|
-
let
|
|
4973
|
+
if ($ !== void 0) {
|
|
4974
|
+
_.preventDefault();
|
|
4975
|
+
let oe = { event: _ };
|
|
4881
4976
|
for (const Te in c) {
|
|
4882
|
-
const
|
|
4883
|
-
c.hasOwnProperty(Te) && Te.startsWith(Nc) &&
|
|
4977
|
+
const z = c[Te];
|
|
4978
|
+
c.hasOwnProperty(Te) && Te.startsWith(Nc) && z !== at && (oe[Te] = z);
|
|
4884
4979
|
}
|
|
4885
|
-
|
|
4980
|
+
$.navigate(oe);
|
|
4886
4981
|
} else
|
|
4887
4982
|
console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
|
|
4888
4983
|
};
|
|
4889
4984
|
return () => {
|
|
4890
|
-
c[n], Na(u.class).forEach((
|
|
4891
|
-
|
|
4985
|
+
c[n], Na(u.class).forEach((z) => {
|
|
4986
|
+
m.add(z);
|
|
4892
4987
|
});
|
|
4893
|
-
const
|
|
4894
|
-
|
|
4988
|
+
const _ = c.onClick, me = (z) => {
|
|
4989
|
+
_ !== void 0 && _(z), z.defaultPrevented || U(z);
|
|
4895
4990
|
};
|
|
4896
|
-
let
|
|
4991
|
+
let oe = {
|
|
4897
4992
|
ref: p,
|
|
4898
|
-
class: zc(p,
|
|
4993
|
+
class: zc(p, m),
|
|
4899
4994
|
onClick: me
|
|
4900
4995
|
};
|
|
4901
|
-
for (const
|
|
4902
|
-
const
|
|
4903
|
-
(c.hasOwnProperty(
|
|
4904
|
-
const
|
|
4905
|
-
p.value && u.hasOwnProperty(
|
|
4996
|
+
for (const z in c) {
|
|
4997
|
+
const ae = c[z];
|
|
4998
|
+
(c.hasOwnProperty(z) && ae !== at || z.startsWith(Uc)) && (oe[z] = ae);
|
|
4999
|
+
const H = "on" + z.slice(0, 1).toUpperCase() + z.slice(1), xe = u[H];
|
|
5000
|
+
p.value && u.hasOwnProperty(H) && "addEventListener" in p.value && p.value.addEventListener(z, xe);
|
|
4906
5001
|
}
|
|
4907
|
-
return or in c && c[or] !== at && (
|
|
4908
|
-
...
|
|
5002
|
+
return or in c && c[or] !== at && (oe = {
|
|
5003
|
+
...oe,
|
|
4909
5004
|
href: c[or]
|
|
4910
|
-
}),
|
|
5005
|
+
}), bn(e, oe, l.default && l.default());
|
|
4911
5006
|
};
|
|
4912
5007
|
});
|
|
4913
5008
|
if (typeof s != "function") {
|
|
@@ -4915,7 +5010,7 @@ const Ec = "@searchcraft/vue-sdk", Rc = "0.9.4", kc = "Searchcraft Vue SDK.", Pc
|
|
|
4915
5010
|
u.ROUTER_LINK_VALUE = Da, r.forEach((l) => u[l] = Da), c = a, s.name = e, s.emits = c, s.props = u;
|
|
4916
5011
|
}
|
|
4917
5012
|
return s;
|
|
4918
|
-
}, Hc = /* @__PURE__ */
|
|
5013
|
+
}, Hc = /* @__PURE__ */ Ee("searchcraft-base-search-results", () => {
|
|
4919
5014
|
}, [
|
|
4920
5015
|
"customStylesForResults",
|
|
4921
5016
|
"searchResultMappings",
|
|
@@ -4925,10 +5020,10 @@ const Ec = "@searchcraft/vue-sdk", Rc = "0.9.4", kc = "Searchcraft Vue SDK.", Pc
|
|
|
4925
5020
|
"buttonRel",
|
|
4926
5021
|
"containerTarget",
|
|
4927
5022
|
"containerRel"
|
|
4928
|
-
]), Bc = /* @__PURE__ */
|
|
5023
|
+
]), Bc = /* @__PURE__ */ Ee("searchcraft-filter-panel", () => {
|
|
4929
5024
|
}, [
|
|
4930
5025
|
"items"
|
|
4931
|
-
]), jc = /* @__PURE__ */
|
|
5026
|
+
]), jc = /* @__PURE__ */ Ee("searchcraft-input-form", () => {
|
|
4932
5027
|
}, [
|
|
4933
5028
|
"autoSearch",
|
|
4934
5029
|
"buttonPlacement",
|
|
@@ -4936,7 +5031,6 @@ const Ec = "@searchcraft/vue-sdk", Rc = "0.9.4", kc = "Searchcraft Vue SDK.", Pc
|
|
|
4936
5031
|
"inputLabel",
|
|
4937
5032
|
"customStyles",
|
|
4938
5033
|
"placeholderValue",
|
|
4939
|
-
"searchTerm",
|
|
4940
5034
|
"core",
|
|
4941
5035
|
"inputFocus",
|
|
4942
5036
|
"inputBlur",
|
|
@@ -4945,30 +5039,30 @@ const Ec = "@searchcraft/vue-sdk", Rc = "0.9.4", kc = "Searchcraft Vue SDK.", Pc
|
|
|
4945
5039
|
"inputFocus",
|
|
4946
5040
|
"inputBlur",
|
|
4947
5041
|
"inputInit"
|
|
4948
|
-
]),
|
|
5042
|
+
]), Wc = /* @__PURE__ */ Ee("searchcraft-pagination", () => {
|
|
4949
5043
|
}, [
|
|
4950
5044
|
"customStyles"
|
|
4951
|
-
]),
|
|
4952
|
-
}), Vc = /* @__PURE__ */
|
|
5045
|
+
]), Gc = /* @__PURE__ */ Ee("searchcraft-popover-button", () => {
|
|
5046
|
+
}), Vc = /* @__PURE__ */ Ee("searchcraft-popover-form", () => {
|
|
4953
5047
|
}, [
|
|
4954
5048
|
"type",
|
|
4955
5049
|
"popoverResultMappings",
|
|
4956
5050
|
"hotkey",
|
|
4957
5051
|
"hotkeyModifier"
|
|
4958
|
-
]),
|
|
5052
|
+
]), qc = /* @__PURE__ */ Ee("searchcraft-results-info", () => {
|
|
4959
5053
|
}, [
|
|
4960
5054
|
"customFormatter",
|
|
4961
5055
|
"customStyles"
|
|
4962
|
-
]),
|
|
5056
|
+
]), Yc = /* @__PURE__ */ Ee("searchcraft-search-results-per-page", () => {
|
|
4963
5057
|
}, [
|
|
4964
5058
|
"increment",
|
|
4965
5059
|
"customStyles"
|
|
4966
|
-
]),
|
|
5060
|
+
]), Qc = /* @__PURE__ */ Ee("searchcraft-theme", () => {
|
|
4967
5061
|
}, [
|
|
4968
5062
|
"theme",
|
|
4969
5063
|
"customTheme"
|
|
4970
|
-
]),
|
|
4971
|
-
class Tl extends
|
|
5064
|
+
]), bl = Hc, yl = Bc, Sl = jc, wl = Gc, Rl = Vc, El = qc, kl = Qc, Pl = Wc, Cl = Yc;
|
|
5065
|
+
class Tl extends Yn {
|
|
4972
5066
|
constructor(t) {
|
|
4973
5067
|
super(t, {
|
|
4974
5068
|
sdkName: Oa.name,
|
|
@@ -4979,13 +5073,13 @@ class Tl extends qn {
|
|
|
4979
5073
|
Cs();
|
|
4980
5074
|
export {
|
|
4981
5075
|
Tl as Searchcraft,
|
|
4982
|
-
|
|
5076
|
+
bl as SearchcraftBaseSearchResults,
|
|
4983
5077
|
yl as SearchcraftFilterPanel,
|
|
4984
5078
|
Sl as SearchcraftInputForm,
|
|
4985
5079
|
Pl as SearchcraftPagination,
|
|
4986
5080
|
wl as SearchcraftPopoverButton,
|
|
4987
|
-
|
|
4988
|
-
|
|
5081
|
+
Rl as SearchcraftPopoverForm,
|
|
5082
|
+
El as SearchcraftResultsInfo,
|
|
4989
5083
|
Cl as SearchcraftSearchResultsPerPage,
|
|
4990
5084
|
kl as SearchcraftTheme
|
|
4991
5085
|
};
|