@searchcraft/vue-sdk 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -41
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +904 -723
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +11 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/stencil-web-components.d.ts +1 -2
- package/dist/stencil-web-components.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/plugin.d.ts +0 -3
- package/dist/plugin.d.ts.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,772 +1,953 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (I !== A)
|
|
11
|
-
if (g !== void 0) {
|
|
12
|
-
p.preventDefault();
|
|
13
|
-
let b = { event: p };
|
|
14
|
-
for (const P in a) {
|
|
15
|
-
const m = a[P];
|
|
16
|
-
a.hasOwnProperty(P) && P.startsWith(Ne) && m !== A && (b[P] = m);
|
|
17
|
-
}
|
|
18
|
-
g.navigate(b);
|
|
19
|
-
} else
|
|
20
|
-
console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
|
|
21
|
-
};
|
|
22
|
-
return () => {
|
|
23
|
-
a[r], ie(o.class).forEach((m) => {
|
|
24
|
-
u.add(m);
|
|
25
|
-
});
|
|
26
|
-
const p = a.onClick, I = (m) => {
|
|
27
|
-
p !== void 0 && p(m), m.defaultPrevented || S(m);
|
|
28
|
-
};
|
|
29
|
-
let b = {
|
|
30
|
-
ref: c,
|
|
31
|
-
class: ze(c, u),
|
|
32
|
-
onClick: I
|
|
33
|
-
};
|
|
34
|
-
for (const m in a) {
|
|
35
|
-
const re = a[m];
|
|
36
|
-
(a.hasOwnProperty(m) && re !== A || m.startsWith(Ue)) && (b[m] = re);
|
|
37
|
-
const ae = "on" + m.slice(0, 1).toUpperCase() + m.slice(1), Oe = o[ae];
|
|
38
|
-
c.value && o.hasOwnProperty(ae) && "addEventListener" in c.value && c.value.addEventListener(m, Oe);
|
|
1
|
+
import { defineComponent as te, ref as ne, getCurrentInstance as re, inject as ae, h as oe } from "vue";
|
|
2
|
+
var ie = Object.defineProperty, se = (t, n, r) => n in t ? ie(t, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[n] = r, f = (t, n, r) => se(t, typeof n != "symbol" ? n + "" : n, r);
|
|
3
|
+
function w(t, n, r, a) {
|
|
4
|
+
return new (r || (r = Promise))(function(o, i) {
|
|
5
|
+
function e(c) {
|
|
6
|
+
try {
|
|
7
|
+
d(a.next(c));
|
|
8
|
+
} catch (s) {
|
|
9
|
+
i(s);
|
|
39
10
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
11
|
+
}
|
|
12
|
+
function u(c) {
|
|
13
|
+
try {
|
|
14
|
+
d(a.throw(c));
|
|
15
|
+
} catch (s) {
|
|
16
|
+
i(s);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function d(c) {
|
|
20
|
+
var s;
|
|
21
|
+
c.done ? o(c.value) : (s = c.value, s instanceof r ? s : new r(function(h) {
|
|
22
|
+
h(s);
|
|
23
|
+
})).then(e, u);
|
|
24
|
+
}
|
|
25
|
+
d((a = a.apply(t, [])).next());
|
|
45
26
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
27
|
+
}
|
|
28
|
+
function b(t, n) {
|
|
29
|
+
var r, a, o, i, e = { label: 0, sent: function() {
|
|
30
|
+
if (1 & o[0]) throw o[1];
|
|
31
|
+
return o[1];
|
|
32
|
+
}, trys: [], ops: [] };
|
|
33
|
+
return i = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
|
|
34
|
+
return this;
|
|
35
|
+
}), i;
|
|
36
|
+
function u(d) {
|
|
37
|
+
return function(c) {
|
|
38
|
+
return function(s) {
|
|
39
|
+
if (r) throw new TypeError("Generator is already executing.");
|
|
40
|
+
for (; i && (i = 0, s[0] && (e = 0)), e; ) try {
|
|
41
|
+
if (r = 1, a && (o = 2 & s[0] ? a.return : s[0] ? a.throw || ((o = a.return) && o.call(a), 0) : a.next) && !(o = o.call(a, s[1])).done) return o;
|
|
42
|
+
switch (a = 0, o && (s = [2 & s[0], o.value]), s[0]) {
|
|
43
|
+
case 0:
|
|
44
|
+
case 1:
|
|
45
|
+
o = s;
|
|
46
|
+
break;
|
|
47
|
+
case 4:
|
|
48
|
+
return e.label++, { value: s[1], done: !1 };
|
|
49
|
+
case 5:
|
|
50
|
+
e.label++, a = s[1], s = [0];
|
|
51
|
+
continue;
|
|
52
|
+
case 7:
|
|
53
|
+
s = e.ops.pop(), e.trys.pop();
|
|
54
|
+
continue;
|
|
55
|
+
default:
|
|
56
|
+
if (o = e.trys, !((o = o.length > 0 && o[o.length - 1]) || s[0] !== 6 && s[0] !== 2)) {
|
|
57
|
+
e = 0;
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
if (s[0] === 3 && (!o || s[1] > o[0] && s[1] < o[3])) {
|
|
61
|
+
e.label = s[1];
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
if (s[0] === 6 && e.label < o[1]) {
|
|
65
|
+
e.label = o[1], o = s;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
if (o && e.label < o[2]) {
|
|
69
|
+
e.label = o[2], e.ops.push(s);
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
o[2] && e.ops.pop(), e.trys.pop();
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
s = n.call(t, e);
|
|
76
|
+
} catch (h) {
|
|
77
|
+
s = [6, h], a = 0;
|
|
78
|
+
} finally {
|
|
79
|
+
r = o = 0;
|
|
80
|
+
}
|
|
81
|
+
if (5 & s[0]) throw s[1];
|
|
82
|
+
return { value: s[0] ? s[1] : void 0, done: !0 };
|
|
83
|
+
}([d, c]);
|
|
84
|
+
};
|
|
49
85
|
}
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"inputFocus",
|
|
77
|
-
"inputBlur",
|
|
78
|
-
"inputInit",
|
|
79
|
-
"querySubmit"
|
|
80
|
-
], [
|
|
81
|
-
"inputCleared",
|
|
82
|
-
"noResultsReceived",
|
|
83
|
-
"inputFocus",
|
|
84
|
-
"inputBlur",
|
|
85
|
-
"inputInit",
|
|
86
|
-
"querySubmit"
|
|
87
|
-
]), We = /* @__PURE__ */ E("searchcraft-pagination", void 0, [
|
|
88
|
-
"customStyles"
|
|
89
|
-
]), qe = /* @__PURE__ */ E("searchcraft-popover-button"), Ge = /* @__PURE__ */ E("searchcraft-popover-form", void 0, [
|
|
90
|
-
"config",
|
|
91
|
-
"type",
|
|
92
|
-
"popoverResultMappings",
|
|
93
|
-
"hotkey",
|
|
94
|
-
"hotkeyModifier"
|
|
95
|
-
]), Xe = /* @__PURE__ */ E("searchcraft-results-info", void 0, [
|
|
96
|
-
"customFormatter",
|
|
97
|
-
"customStyles"
|
|
98
|
-
]), Ke = /* @__PURE__ */ E("searchcraft-search-results-per-page", void 0, [
|
|
99
|
-
"increment",
|
|
100
|
-
"customStyles"
|
|
101
|
-
]), Ye = /* @__PURE__ */ E("searchcraft-theme", void 0, [
|
|
102
|
-
"theme",
|
|
103
|
-
"customTheme"
|
|
104
|
-
]), Ut = He, zt = Me, Ht = Be, Mt = qe, Bt = Ge, Wt = Xe, qt = Ye, Gt = We, Xt = Ke, Qe = "searchcraft-javascript-sdk", w = (
|
|
105
|
-
/* searchcraft-javascript-sdk */
|
|
106
|
-
{ 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", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, 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, transformTagName: !1, 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 }
|
|
107
|
-
);
|
|
108
|
-
var Je = Object.defineProperty, Ze = (e, t) => {
|
|
109
|
-
for (var s in t)
|
|
110
|
-
Je(e, s, { get: t[s], enumerable: !0 });
|
|
111
|
-
}, Ve = "http://www.w3.org/2000/svg", et = "http://www.w3.org/1999/xhtml", ye = /* @__PURE__ */ new WeakMap(), k = (e) => ye.get(e), tt = (e, t) => {
|
|
112
|
-
const s = {
|
|
113
|
-
$flags$: 0,
|
|
114
|
-
$hostElement$: e,
|
|
115
|
-
$cmpMeta$: t,
|
|
116
|
-
$instanceValues$: /* @__PURE__ */ new Map()
|
|
117
|
-
};
|
|
118
|
-
return s.$onReadyPromise$ = new Promise((r) => s.$onReadyResolve$ = r), e["s-p"] = [], e["s-rc"] = [], ye.set(e, s);
|
|
119
|
-
}, ce = (e, t) => t in e, O = (e, t) => (0, console.error)(e, t), fe = /* @__PURE__ */ new Map(), st = (e, t, s) => {
|
|
120
|
-
const n = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
|
|
121
|
-
if (!r)
|
|
122
|
-
return;
|
|
123
|
-
const i = fe.get(r);
|
|
124
|
-
if (i)
|
|
125
|
-
return i[n];
|
|
126
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
127
|
-
return import(
|
|
128
|
-
/* @vite-ignore */
|
|
129
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
130
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
131
|
-
/* webpackMode: "lazy" */
|
|
132
|
-
`./${r}.entry.js`
|
|
133
|
-
).then(
|
|
134
|
-
(l) => (fe.set(r, l), l[n]),
|
|
135
|
-
(l) => {
|
|
136
|
-
O(l, t.$hostElement$);
|
|
86
|
+
}
|
|
87
|
+
var S = { exclude: [] }, J = {}, ce = { timeout: "true" }, y = function(t, n) {
|
|
88
|
+
typeof window < "u" && (J[t] = n);
|
|
89
|
+
}, ue = function() {
|
|
90
|
+
return Object.fromEntries(Object.entries(J).filter(function(t) {
|
|
91
|
+
var n, r = t[0];
|
|
92
|
+
return !(!((n = S == null ? void 0 : S.exclude) === null || n === void 0) && n.includes(r));
|
|
93
|
+
}).map(function(t) {
|
|
94
|
+
return [t[0], (0, t[1])()];
|
|
95
|
+
}));
|
|
96
|
+
};
|
|
97
|
+
function I(t) {
|
|
98
|
+
return t ^= t >>> 16, t = Math.imul(t, 2246822507), t ^= t >>> 13, t = Math.imul(t, 3266489909), (t ^= t >>> 16) >>> 0;
|
|
99
|
+
}
|
|
100
|
+
var p = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
101
|
+
function v(t, n) {
|
|
102
|
+
return t << n | t >>> 32 - n;
|
|
103
|
+
}
|
|
104
|
+
function D(t, n) {
|
|
105
|
+
var r;
|
|
106
|
+
if (n === void 0 && (n = 0), n = n ? 0 | n : 0, typeof t == "string" && (r = t, t = new TextEncoder().encode(r).buffer), !(t instanceof ArrayBuffer)) throw new TypeError("Expected key to be ArrayBuffer or string");
|
|
107
|
+
var a = new Uint32Array([n, n, n, n]);
|
|
108
|
+
(function(i, e) {
|
|
109
|
+
for (var u = i.byteLength / 16 | 0, d = new Uint32Array(i, 0, 4 * u), c = 0; c < u; c++) {
|
|
110
|
+
var s = d.subarray(4 * c, 4 * (c + 1));
|
|
111
|
+
s[0] = Math.imul(s[0], p[0]), s[0] = v(s[0], 15), s[0] = Math.imul(s[0], p[1]), e[0] = e[0] ^ s[0], e[0] = v(e[0], 19), e[0] = e[0] + e[1], e[0] = Math.imul(e[0], 5) + 1444728091, s[1] = Math.imul(s[1], p[1]), s[1] = v(s[1], 16), s[1] = Math.imul(s[1], p[2]), e[1] = e[1] ^ s[1], e[1] = v(e[1], 17), e[1] = e[1] + e[2], e[1] = Math.imul(e[1], 5) + 197830471, s[2] = Math.imul(s[2], p[2]), s[2] = v(s[2], 17), s[2] = Math.imul(s[2], p[3]), e[2] = e[2] ^ s[2], e[2] = v(e[2], 15), e[2] = e[2] + e[3], e[2] = Math.imul(e[2], 5) + 2530024501, s[3] = Math.imul(s[3], p[3]), s[3] = v(s[3], 18), s[3] = Math.imul(s[3], p[0]), e[3] = e[3] ^ s[3], e[3] = v(e[3], 13), e[3] = e[3] + e[0], e[3] = Math.imul(e[3], 5) + 850148119;
|
|
137
112
|
}
|
|
138
|
-
)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
113
|
+
})(t, a), function(i, e) {
|
|
114
|
+
var u = i.byteLength / 16 | 0, d = i.byteLength % 16, c = new Uint32Array(4), s = new Uint8Array(i, 16 * u, d);
|
|
115
|
+
switch (d) {
|
|
116
|
+
case 15:
|
|
117
|
+
c[3] = c[3] ^ s[14] << 16;
|
|
118
|
+
case 14:
|
|
119
|
+
c[3] = c[3] ^ s[13] << 8;
|
|
120
|
+
case 13:
|
|
121
|
+
c[3] = c[3] ^ s[12] << 0, c[3] = Math.imul(c[3], p[3]), c[3] = v(c[3], 18), c[3] = Math.imul(c[3], p[0]), e[3] = e[3] ^ c[3];
|
|
122
|
+
case 12:
|
|
123
|
+
c[2] = c[2] ^ s[11] << 24;
|
|
124
|
+
case 11:
|
|
125
|
+
c[2] = c[2] ^ s[10] << 16;
|
|
126
|
+
case 10:
|
|
127
|
+
c[2] = c[2] ^ s[9] << 8;
|
|
128
|
+
case 9:
|
|
129
|
+
c[2] = c[2] ^ s[8] << 0, c[2] = Math.imul(c[2], p[2]), c[2] = v(c[2], 17), c[2] = Math.imul(c[2], p[3]), e[2] = e[2] ^ c[2];
|
|
130
|
+
case 8:
|
|
131
|
+
c[1] = c[1] ^ s[7] << 24;
|
|
132
|
+
case 7:
|
|
133
|
+
c[1] = c[1] ^ s[6] << 16;
|
|
134
|
+
case 6:
|
|
135
|
+
c[1] = c[1] ^ s[5] << 8;
|
|
136
|
+
case 5:
|
|
137
|
+
c[1] = c[1] ^ s[4] << 0, c[1] = Math.imul(c[1], p[1]), c[1] = v(c[1], 16), c[1] = Math.imul(c[1], p[2]), e[1] = e[1] ^ c[1];
|
|
138
|
+
case 4:
|
|
139
|
+
c[0] = c[0] ^ s[3] << 24;
|
|
140
|
+
case 3:
|
|
141
|
+
c[0] = c[0] ^ s[2] << 16;
|
|
142
|
+
case 2:
|
|
143
|
+
c[0] = c[0] ^ s[1] << 8;
|
|
144
|
+
case 1:
|
|
145
|
+
c[0] = c[0] ^ s[0] << 0, c[0] = Math.imul(c[0], p[0]), c[0] = v(c[0], 15), c[0] = Math.imul(c[0], p[1]), e[0] = e[0] ^ c[0];
|
|
155
146
|
}
|
|
156
|
-
e
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
147
|
+
}(t, a), function(i, e) {
|
|
148
|
+
e[0] = e[0] ^ i.byteLength, e[1] = e[1] ^ i.byteLength, e[2] = e[2] ^ i.byteLength, e[3] = e[3] ^ i.byteLength, e[0] = e[0] + e[1] | 0, e[0] = e[0] + e[2] | 0, e[0] = e[0] + e[3] | 0, e[1] = e[1] + e[0] | 0, e[2] = e[2] + e[0] | 0, e[3] = e[3] + e[0] | 0, e[0] = I(e[0]), e[1] = I(e[1]), e[2] = I(e[2]), e[3] = I(e[3]), e[0] = e[0] + e[1] | 0, e[0] = e[0] + e[2] | 0, e[0] = e[0] + e[3] | 0, e[1] = e[1] + e[0] | 0, e[2] = e[2] + e[0] | 0, e[3] = e[3] + e[0] | 0;
|
|
149
|
+
}(t, a);
|
|
150
|
+
var o = new Uint8Array(a.buffer);
|
|
151
|
+
return Array.from(o).map(function(i) {
|
|
152
|
+
return i.toString(16).padStart(2, "0");
|
|
153
|
+
}).join("");
|
|
163
154
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
unwrapErr: () => dt
|
|
171
|
-
});
|
|
172
|
-
var X = (e) => ({
|
|
173
|
-
isOk: !0,
|
|
174
|
-
isErr: !1,
|
|
175
|
-
value: e
|
|
176
|
-
}), Se = (e) => ({
|
|
177
|
-
isOk: !1,
|
|
178
|
-
isErr: !0,
|
|
179
|
-
value: e
|
|
180
|
-
});
|
|
181
|
-
function ut(e, t) {
|
|
182
|
-
if (e.isOk) {
|
|
183
|
-
const s = t(e.value);
|
|
184
|
-
return s instanceof Promise ? s.then((n) => X(n)) : X(s);
|
|
185
|
-
}
|
|
186
|
-
if (e.isErr) {
|
|
187
|
-
const s = e.value;
|
|
188
|
-
return Se(s);
|
|
189
|
-
}
|
|
190
|
-
throw "should never get here";
|
|
155
|
+
function de(t, n) {
|
|
156
|
+
return new Promise(function(r) {
|
|
157
|
+
setTimeout(function() {
|
|
158
|
+
return r(n);
|
|
159
|
+
}, t);
|
|
160
|
+
});
|
|
191
161
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
return
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
162
|
+
function le(t, n, r) {
|
|
163
|
+
return Promise.all(t.map(function(a) {
|
|
164
|
+
return Promise.race([a, de(n, r)]);
|
|
165
|
+
}));
|
|
166
|
+
}
|
|
167
|
+
function he() {
|
|
168
|
+
return w(this, void 0, void 0, function() {
|
|
169
|
+
var t, n, r, a, o;
|
|
170
|
+
return b(this, function(i) {
|
|
171
|
+
switch (i.label) {
|
|
172
|
+
case 0:
|
|
173
|
+
return i.trys.push([0, 2, , 3]), t = ue(), n = Object.keys(t), [4, le(Object.values(t), (S == null ? void 0 : S.timeout) || 1e3, ce)];
|
|
174
|
+
case 1:
|
|
175
|
+
return r = i.sent(), a = r.filter(function(e) {
|
|
176
|
+
return e !== void 0;
|
|
177
|
+
}), o = {}, a.forEach(function(e, u) {
|
|
178
|
+
o[n[u]] = e;
|
|
179
|
+
}), [2, X(o, S.exclude || [])];
|
|
180
|
+
case 2:
|
|
181
|
+
throw i.sent();
|
|
182
|
+
case 3:
|
|
183
|
+
return [2];
|
|
184
|
+
}
|
|
185
|
+
});
|
|
205
186
|
});
|
|
206
|
-
for (const s of t)
|
|
207
|
-
s.nodeType === 1 && (s.__childNodes || s.childNodes).length && be(s);
|
|
208
|
-
};
|
|
209
|
-
function Re(e, t, s) {
|
|
210
|
-
let n = 0, r = [], i;
|
|
211
|
-
for (; n < e.length; n++)
|
|
212
|
-
i = e[n], i["s-sr"] && i["s-hn"] === t && s === void 0 && r.push(i), r = [...r, ...Re(i.childNodes, t, s)];
|
|
213
|
-
return r;
|
|
214
187
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
};
|
|
228
|
-
f(s);
|
|
229
|
-
const $ = K(e, null);
|
|
230
|
-
return $.$attrs$ = t, o.length > 0 && ($.$children$ = o), $.$key$ = r, $.$name$ = i, $;
|
|
231
|
-
}, K = (e, t) => {
|
|
232
|
-
const s = {
|
|
233
|
-
$flags$: 0,
|
|
234
|
-
$tag$: e,
|
|
235
|
-
$text$: t,
|
|
236
|
-
$elm$: null,
|
|
237
|
-
$children$: null
|
|
188
|
+
function X(t, n) {
|
|
189
|
+
var r = {}, a = function(i) {
|
|
190
|
+
if (t.hasOwnProperty(i)) {
|
|
191
|
+
var e = t[i];
|
|
192
|
+
if (typeof e != "object" || Array.isArray(e)) n.includes(i) || (r[i] = e);
|
|
193
|
+
else {
|
|
194
|
+
var u = X(e, n.map(function(d) {
|
|
195
|
+
return d.startsWith(i + ".") ? d.slice(i.length + 1) : d;
|
|
196
|
+
}));
|
|
197
|
+
Object.keys(u).length > 0 && (r[i] = u);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
238
200
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
for (const o in n)
|
|
256
|
-
(!s || n[o] !== s[o]) && (o.includes("-") ? e.style.setProperty(o, n[o]) : e.style[o] = n[o]);
|
|
257
|
-
} else if (t !== "key") if (!l && t[0] === "o" && t[1] === "n") {
|
|
258
|
-
if (t[2] === "-" ? t = t.slice(3) : ce(M, a) ? t = a.slice(2) : t = a[2] + t.slice(3), s || n) {
|
|
259
|
-
const o = t.endsWith(Pe);
|
|
260
|
-
t = t.replace(bt, ""), s && v.rel(e, t, s, o), n && v.ael(e, t, n, o);
|
|
201
|
+
for (var o in t) a(o);
|
|
202
|
+
return r;
|
|
203
|
+
}
|
|
204
|
+
function fe(t) {
|
|
205
|
+
return w(this, void 0, void 0, function() {
|
|
206
|
+
var n, r;
|
|
207
|
+
return b(this, function(a) {
|
|
208
|
+
switch (a.label) {
|
|
209
|
+
case 0:
|
|
210
|
+
return a.trys.push([0, 2, , 3]), [4, he()];
|
|
211
|
+
case 1:
|
|
212
|
+
return n = a.sent(), r = D(JSON.stringify(n)), [2, r.toString()];
|
|
213
|
+
case 2:
|
|
214
|
+
throw a.sent();
|
|
215
|
+
case 3:
|
|
216
|
+
return [2];
|
|
261
217
|
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
function me(t) {
|
|
222
|
+
for (var n = 0, r = 0; r < t.length; ++r) n += Math.abs(t[r]);
|
|
223
|
+
return n;
|
|
224
|
+
}
|
|
225
|
+
function Q(t, n, r) {
|
|
226
|
+
for (var a = [], o = 0; o < t[0].data.length; o++) {
|
|
227
|
+
for (var i = [], e = 0; e < t.length; e++) i.push(t[e].data[o]);
|
|
228
|
+
a.push(pe(i));
|
|
229
|
+
}
|
|
230
|
+
var u = new Uint8ClampedArray(a);
|
|
231
|
+
return new ImageData(u, n, r);
|
|
232
|
+
}
|
|
233
|
+
function pe(t) {
|
|
234
|
+
if (t.length === 0) return 0;
|
|
235
|
+
for (var n = {}, r = 0, a = t; r < a.length; r++)
|
|
236
|
+
n[i = a[r]] = (n[i] || 0) + 1;
|
|
237
|
+
var o = t[0];
|
|
238
|
+
for (var i in n) n[i] > n[o] && (o = parseInt(i, 10));
|
|
239
|
+
return o;
|
|
240
|
+
}
|
|
241
|
+
function k() {
|
|
242
|
+
if (typeof navigator > "u") return { name: "unknown", version: "unknown" };
|
|
243
|
+
for (var t = navigator.userAgent, n = { Edg: "Edge", OPR: "Opera" }, r = 0, a = [/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/, /(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/, /(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/, /(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/]; r < a.length; r++) {
|
|
244
|
+
var o = a[r], i = t.match(o);
|
|
245
|
+
if (i && i.groups) return { name: n[i.groups.name] || i.groups.name, version: i.groups.version };
|
|
246
|
+
}
|
|
247
|
+
return { name: "unknown", version: "unknown" };
|
|
248
|
+
}
|
|
249
|
+
y("audio", function() {
|
|
250
|
+
return w(this, void 0, void 0, function() {
|
|
251
|
+
return b(this, function(t) {
|
|
252
|
+
return [2, new Promise(function(n, r) {
|
|
265
253
|
try {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
} catch {
|
|
254
|
+
var a = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), o = a.createBufferSource(), i = a.createOscillator();
|
|
255
|
+
i.frequency.value = 1e3;
|
|
256
|
+
var e, u = a.createDynamicsCompressor();
|
|
257
|
+
u.threshold.value = -50, u.knee.value = 40, u.ratio.value = 12, u.attack.value = 0, u.release.value = 0.2, i.connect(u), u.connect(a.destination), i.start(), a.oncomplete = function(d) {
|
|
258
|
+
e = d.renderedBuffer.getChannelData(0), n({ sampleHash: me(e), oscillator: i.type, maxChannels: a.destination.maxChannelCount, channelCountMode: o.channelCountMode });
|
|
259
|
+
}, a.startRendering();
|
|
260
|
+
} catch (d) {
|
|
261
|
+
console.error("Error creating audio fingerprint:", d), r(d);
|
|
273
262
|
}
|
|
274
|
-
|
|
263
|
+
})];
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
var ge = k().name !== "SamsungBrowser" ? 1 : 3, G = 280, W = 20;
|
|
268
|
+
k().name != "Firefox" && y("canvas", function() {
|
|
269
|
+
return document.createElement("canvas").getContext("2d"), new Promise(function(t) {
|
|
270
|
+
var n = Array.from({ length: ge }, function() {
|
|
271
|
+
return function() {
|
|
272
|
+
var r = document.createElement("canvas"), a = r.getContext("2d");
|
|
273
|
+
if (!a) return new ImageData(1, 1);
|
|
274
|
+
r.width = G, r.height = W;
|
|
275
|
+
var o = a.createLinearGradient(0, 0, r.width, r.height);
|
|
276
|
+
o.addColorStop(0, "red"), o.addColorStop(0.16666666666666666, "orange"), o.addColorStop(0.3333333333333333, "yellow"), o.addColorStop(0.5, "green"), o.addColorStop(0.6666666666666666, "blue"), o.addColorStop(0.8333333333333334, "indigo"), o.addColorStop(1, "violet"), a.fillStyle = o, a.fillRect(0, 0, r.width, r.height);
|
|
277
|
+
var i = "Random Text WMwmil10Oo";
|
|
278
|
+
a.font = "23.123px Arial", a.fillStyle = "black", a.fillText(i, -5, 15), a.fillStyle = "rgba(0, 0, 255, 0.5)", a.fillText(i, -3.3, 17.7), a.beginPath(), a.moveTo(0, 0), a.lineTo(2 * r.width / 7, r.height), a.strokeStyle = "white", a.lineWidth = 2, a.stroke();
|
|
279
|
+
var e = a.getImageData(0, 0, r.width, r.height);
|
|
280
|
+
return e;
|
|
281
|
+
}();
|
|
282
|
+
});
|
|
283
|
+
t({ commonImageDataHash: D(Q(n, G, W).data.toString()).toString() });
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
var O, ve = ["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"], ye = ["monospace", "sans-serif", "serif"];
|
|
287
|
+
function $(t, n) {
|
|
288
|
+
if (!t) throw new Error("Canvas context not supported");
|
|
289
|
+
return t.font, t.font = "72px ".concat(n), t.measureText("WwMmLli0Oo").width;
|
|
290
|
+
}
|
|
291
|
+
function we() {
|
|
292
|
+
var t, n = document.createElement("canvas"), r = (t = n.getContext("webgl")) !== null && t !== void 0 ? t : n.getContext("experimental-webgl");
|
|
293
|
+
if (r && "getParameter" in r) try {
|
|
294
|
+
var a = (r.getParameter(r.VENDOR) || "").toString(), o = (r.getParameter(r.RENDERER) || "").toString(), i = { vendor: a, renderer: o, version: (r.getParameter(r.VERSION) || "").toString(), shadingLanguageVersion: (r.getParameter(r.SHADING_LANGUAGE_VERSION) || "").toString() };
|
|
295
|
+
if (!o.length || !a.length) {
|
|
296
|
+
var e = r.getExtension("WEBGL_debug_renderer_info");
|
|
297
|
+
if (e) {
|
|
298
|
+
var u = (r.getParameter(e.UNMASKED_VENDOR_WEBGL) || "").toString(), d = (r.getParameter(e.UNMASKED_RENDERER_WEBGL) || "").toString();
|
|
299
|
+
u && (i.vendorUnmasked = u), d && (i.rendererUnmasked = d);
|
|
300
|
+
}
|
|
275
301
|
}
|
|
302
|
+
return i;
|
|
303
|
+
} catch {
|
|
276
304
|
}
|
|
277
|
-
|
|
278
|
-
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || {}, i = t.$attrs$ || {};
|
|
279
|
-
for (const l of ge(Object.keys(r)))
|
|
280
|
-
l in i || he(n, l, r[l], void 0, s, t.$flags$);
|
|
281
|
-
for (const l of ge(Object.keys(i)))
|
|
282
|
-
he(n, l, r[l], i[l], s, t.$flags$);
|
|
283
|
-
};
|
|
284
|
-
function ge(e) {
|
|
285
|
-
return e.includes("ref") ? (
|
|
286
|
-
// we need to sort these to ensure that `'ref'` is the last attr
|
|
287
|
-
[...e.filter((t) => t !== "ref"), "ref"]
|
|
288
|
-
) : (
|
|
289
|
-
// no need to sort, return the original array
|
|
290
|
-
e
|
|
291
|
-
);
|
|
305
|
+
return "undefined";
|
|
292
306
|
}
|
|
293
|
-
|
|
294
|
-
var n;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
n[r] && (a = H(null, s, r), a && (n[r].$elm$ = a, _(l, a, D(t))));
|
|
333
|
-
}, Ce = (e, t, s) => {
|
|
334
|
-
for (let n = t; n <= s; ++n) {
|
|
335
|
-
const r = e[n];
|
|
336
|
-
if (r) {
|
|
337
|
-
const i = r.$elm$;
|
|
338
|
-
i && (z = !0, i["s-ol"] ? i["s-ol"].remove() : F(i, !0), i.remove());
|
|
339
|
-
}
|
|
307
|
+
function be() {
|
|
308
|
+
var t = new Float32Array(1), n = new Uint8Array(t.buffer);
|
|
309
|
+
return t[0] = 1 / 0, t[0] = t[0] - t[0], n[3];
|
|
310
|
+
}
|
|
311
|
+
function Se(t, n) {
|
|
312
|
+
var r = {};
|
|
313
|
+
return n.forEach(function(a) {
|
|
314
|
+
var o = function(i) {
|
|
315
|
+
if (i.length === 0) return null;
|
|
316
|
+
var e = {};
|
|
317
|
+
i.forEach(function(c) {
|
|
318
|
+
var s = String(c);
|
|
319
|
+
e[s] = (e[s] || 0) + 1;
|
|
320
|
+
});
|
|
321
|
+
var u = i[0], d = 1;
|
|
322
|
+
return Object.keys(e).forEach(function(c) {
|
|
323
|
+
e[c] > d && (u = c, d = e[c]);
|
|
324
|
+
}), u;
|
|
325
|
+
}(t.map(function(i) {
|
|
326
|
+
return a in i ? i[a] : void 0;
|
|
327
|
+
}).filter(function(i) {
|
|
328
|
+
return i !== void 0;
|
|
329
|
+
}));
|
|
330
|
+
o && (r[a] = o);
|
|
331
|
+
}), r;
|
|
332
|
+
}
|
|
333
|
+
function Ee() {
|
|
334
|
+
var t = [], n = { "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"] };
|
|
335
|
+
return Object.keys(n).forEach(function(r) {
|
|
336
|
+
n[r].forEach(function(a) {
|
|
337
|
+
matchMedia("(".concat(r, ": ").concat(a, ")")).matches && t.push("".concat(r, ": ").concat(a));
|
|
338
|
+
});
|
|
339
|
+
}), t;
|
|
340
|
+
}
|
|
341
|
+
function Pe() {
|
|
342
|
+
if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
|
|
343
|
+
for (var t = window.ApplePaySession.supportsVersion, n = 15; n > 0; n--) if (t(n)) return n;
|
|
344
|
+
} catch {
|
|
345
|
+
return 0;
|
|
340
346
|
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
347
|
+
return 0;
|
|
348
|
+
}
|
|
349
|
+
k().name != "Firefox" && y("fonts", function() {
|
|
350
|
+
var t = this;
|
|
351
|
+
return new Promise(function(n, r) {
|
|
352
|
+
try {
|
|
353
|
+
(function(a) {
|
|
354
|
+
var o;
|
|
355
|
+
w(this, void 0, void 0, function() {
|
|
356
|
+
var i, e, u;
|
|
357
|
+
return b(this, function(d) {
|
|
358
|
+
switch (d.label) {
|
|
359
|
+
case 0:
|
|
360
|
+
return document.body ? [3, 2] : [4, (c = 50, new Promise(function(h) {
|
|
361
|
+
return setTimeout(h, c, s);
|
|
362
|
+
}))];
|
|
363
|
+
case 1:
|
|
364
|
+
return d.sent(), [3, 0];
|
|
365
|
+
case 2:
|
|
366
|
+
if ((i = document.createElement("iframe")).setAttribute("frameBorder", "0"), (e = i.style).setProperty("position", "fixed"), e.setProperty("display", "block", "important"), e.setProperty("visibility", "visible"), e.setProperty("border", "0"), e.setProperty("opacity", "0"), i.src = "about:blank", document.body.appendChild(i), !(u = i.contentDocument || ((o = i.contentWindow) === null || o === void 0 ? void 0 : o.document))) throw new Error("Iframe document is not accessible");
|
|
367
|
+
return a({ iframe: u }), setTimeout(function() {
|
|
368
|
+
document.body.removeChild(i);
|
|
369
|
+
}, 0), [2];
|
|
370
|
+
}
|
|
371
|
+
var c, s;
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
})(function(a) {
|
|
375
|
+
var o = a.iframe;
|
|
376
|
+
return w(t, void 0, void 0, function() {
|
|
377
|
+
var i, e, u, d;
|
|
378
|
+
return b(this, function(c) {
|
|
379
|
+
return i = o.createElement("canvas"), e = i.getContext("2d"), u = ye.map(function(s) {
|
|
380
|
+
return $(e, s);
|
|
381
|
+
}), d = {}, ve.forEach(function(s) {
|
|
382
|
+
var h = $(e, s);
|
|
383
|
+
u.includes(h) || (d[s] = h);
|
|
384
|
+
}), n(d), [2];
|
|
385
|
+
});
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
} catch {
|
|
389
|
+
r({ error: "unsupported" });
|
|
371
390
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
391
|
+
});
|
|
392
|
+
}), y("hardware", function() {
|
|
393
|
+
return new Promise(function(t, n) {
|
|
394
|
+
var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, a = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
395
|
+
t({ videocard: we(), architecture: be(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: a.jsHeapSizeLimit || 0 });
|
|
396
|
+
});
|
|
397
|
+
}), y("locales", function() {
|
|
398
|
+
return new Promise(function(t) {
|
|
399
|
+
t({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
|
|
400
|
+
});
|
|
401
|
+
}), y("permissions", function() {
|
|
402
|
+
return w(this, void 0, void 0, function() {
|
|
403
|
+
var t;
|
|
404
|
+
return b(this, function(n) {
|
|
405
|
+
return O = (S == null ? void 0 : S.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], t = Array.from({ length: (S == null ? void 0 : S.retries) || 3 }, function() {
|
|
406
|
+
return function() {
|
|
407
|
+
return w(this, void 0, void 0, function() {
|
|
408
|
+
var r, a, o, i, e;
|
|
409
|
+
return b(this, function(u) {
|
|
410
|
+
switch (u.label) {
|
|
411
|
+
case 0:
|
|
412
|
+
r = {}, a = 0, o = O, u.label = 1;
|
|
413
|
+
case 1:
|
|
414
|
+
if (!(a < o.length)) return [3, 6];
|
|
415
|
+
i = o[a], u.label = 2;
|
|
416
|
+
case 2:
|
|
417
|
+
return u.trys.push([2, 4, , 5]), [4, navigator.permissions.query({ name: i })];
|
|
418
|
+
case 3:
|
|
419
|
+
return e = u.sent(), r[i] = e.state.toString(), [3, 5];
|
|
420
|
+
case 4:
|
|
421
|
+
return u.sent(), [3, 5];
|
|
422
|
+
case 5:
|
|
423
|
+
return a++, [3, 1];
|
|
424
|
+
case 6:
|
|
425
|
+
return [2, r];
|
|
426
|
+
}
|
|
403
427
|
});
|
|
404
|
-
} else C.some((a) => a.$nodeToRelocate$ === t) || C.push({
|
|
405
|
-
$nodeToRelocate$: t
|
|
406
428
|
});
|
|
407
|
-
|
|
408
|
-
|
|
429
|
+
}();
|
|
430
|
+
}), [2, Promise.all(t).then(function(r) {
|
|
431
|
+
return Se(r, O);
|
|
432
|
+
})];
|
|
433
|
+
});
|
|
434
|
+
});
|
|
435
|
+
}), y("plugins", function() {
|
|
436
|
+
var t = [];
|
|
437
|
+
if (navigator.plugins) for (var n = 0; n < navigator.plugins.length; n++) {
|
|
438
|
+
var r = navigator.plugins[n];
|
|
439
|
+
t.push([r.name, r.filename, r.description].join("|"));
|
|
409
440
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
{
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
return new Promise(function(a) {
|
|
442
|
+
a({ plugins: t });
|
|
443
|
+
});
|
|
444
|
+
}), y("screen", function() {
|
|
445
|
+
return new Promise(function(t) {
|
|
446
|
+
t({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: Ee() });
|
|
447
|
+
});
|
|
448
|
+
}), y("system", function() {
|
|
449
|
+
return new Promise(function(t) {
|
|
450
|
+
var n = k();
|
|
451
|
+
t({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: n.name, version: n.version }, applePayVersion: Pe() });
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
var g, Me = k().name !== "SamsungBrowser" ? 1 : 3, l = null;
|
|
455
|
+
y("webgl", function() {
|
|
456
|
+
return w(this, void 0, void 0, function() {
|
|
457
|
+
var t;
|
|
458
|
+
return b(this, function(n) {
|
|
459
|
+
typeof document < "u" && ((g = document.createElement("canvas")).width = 200, g.height = 100, l = g.getContext("webgl"));
|
|
460
|
+
try {
|
|
461
|
+
if (!l) throw new Error("WebGL not supported");
|
|
462
|
+
return t = Array.from({ length: Me }, function() {
|
|
463
|
+
return function() {
|
|
464
|
+
try {
|
|
465
|
+
if (!l) throw new Error("WebGL not supported");
|
|
466
|
+
var r = `
|
|
467
|
+
attribute vec2 position;
|
|
468
|
+
void main() {
|
|
469
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
470
|
+
}
|
|
471
|
+
`, a = `
|
|
472
|
+
precision mediump float;
|
|
473
|
+
void main() {
|
|
474
|
+
gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color
|
|
475
|
+
}
|
|
476
|
+
`, o = l.createShader(l.VERTEX_SHADER), i = l.createShader(l.FRAGMENT_SHADER);
|
|
477
|
+
if (!o || !i) throw new Error("Failed to create shaders");
|
|
478
|
+
if (l.shaderSource(o, r), l.shaderSource(i, a), l.compileShader(o), !l.getShaderParameter(o, l.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + l.getShaderInfoLog(o));
|
|
479
|
+
if (l.compileShader(i), !l.getShaderParameter(i, l.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + l.getShaderInfoLog(i));
|
|
480
|
+
var e = l.createProgram();
|
|
481
|
+
if (!e) throw new Error("Failed to create shader program");
|
|
482
|
+
if (l.attachShader(e, o), l.attachShader(e, i), l.linkProgram(e), !l.getProgramParameter(e, l.LINK_STATUS)) throw new Error("Shader program linking failed: " + l.getProgramInfoLog(e));
|
|
483
|
+
l.useProgram(e);
|
|
484
|
+
for (var u = 137, d = new Float32Array(4 * u), c = 2 * Math.PI / u, s = 0; s < u; s++) {
|
|
485
|
+
var h = s * c;
|
|
486
|
+
d[4 * s] = 0, d[4 * s + 1] = 0, d[4 * s + 2] = Math.cos(h) * (g.width / 2), d[4 * s + 3] = Math.sin(h) * (g.height / 2);
|
|
443
487
|
}
|
|
444
|
-
|
|
488
|
+
var T = l.createBuffer();
|
|
489
|
+
l.bindBuffer(l.ARRAY_BUFFER, T), l.bufferData(l.ARRAY_BUFFER, d, l.STATIC_DRAW);
|
|
490
|
+
var R = l.getAttribLocation(e, "position");
|
|
491
|
+
l.enableVertexAttribArray(R), l.vertexAttribPointer(R, 2, l.FLOAT, !1, 0, 0), l.viewport(0, 0, g.width, g.height), l.clearColor(0, 0, 0, 1), l.clear(l.COLOR_BUFFER_BIT), l.drawArrays(l.LINES, 0, 2 * u);
|
|
492
|
+
var L = new Uint8ClampedArray(g.width * g.height * 4);
|
|
493
|
+
return l.readPixels(0, 0, g.width, g.height, l.RGBA, l.UNSIGNED_BYTE, L), new ImageData(L, g.width, g.height);
|
|
494
|
+
} catch {
|
|
495
|
+
return new ImageData(1, 1);
|
|
496
|
+
} finally {
|
|
497
|
+
l && (l.bindBuffer(l.ARRAY_BUFFER, null), l.useProgram(null), l.viewport(0, 0, l.drawingBufferWidth, l.drawingBufferHeight), l.clearColor(0, 0, 0, 0));
|
|
445
498
|
}
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}
|
|
450
|
-
c.nodeType === 1 && (s && (c["s-ih"] = (l = c.hidden) != null ? l : !1), c.hidden = !0);
|
|
499
|
+
}();
|
|
500
|
+
}), [2, { commonImageHash: D(Q(t, g.width, g.height).data.toString()).toString() }];
|
|
501
|
+
} catch {
|
|
502
|
+
return [2, { webgl: "unsupported" }];
|
|
451
503
|
}
|
|
452
|
-
|
|
453
|
-
|
|
504
|
+
return [2];
|
|
505
|
+
});
|
|
506
|
+
});
|
|
507
|
+
});
|
|
508
|
+
var M = function(t, n, r, a) {
|
|
509
|
+
for (var o = (r - n) / a, i = 0, e = 0; e < a; e++)
|
|
510
|
+
i += t(n + (e + 0.5) * o);
|
|
511
|
+
return i * o;
|
|
512
|
+
};
|
|
513
|
+
y("math", function() {
|
|
514
|
+
return w(void 0, void 0, void 0, function() {
|
|
515
|
+
return b(this, function(t) {
|
|
516
|
+
return [2, { acos: Math.acos(0.5), asin: M(Math.asin, -1, 1, 97), atan: M(Math.atan, -1, 1, 97), cos: M(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: M(Math.sin, -Math.PI, Math.PI, 97), sinh: M(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: M(Math.tan, 0, 2 * Math.PI, 97), tanh: M(Math.tanh, -9 / 7, 7 / 9, 97) }];
|
|
517
|
+
});
|
|
518
|
+
});
|
|
519
|
+
});
|
|
520
|
+
const Re = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
521
|
+
let _ = (t = 21) => {
|
|
522
|
+
let n = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
523
|
+
for (; t--; )
|
|
524
|
+
n += Re[r[t] & 63];
|
|
525
|
+
return n;
|
|
526
|
+
};
|
|
527
|
+
class B {
|
|
528
|
+
constructor(n) {
|
|
529
|
+
f(this, "config"), this.config = n;
|
|
454
530
|
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
if (t && !e.$onRenderResolve$ && t["s-p"]) {
|
|
458
|
-
const s = t["s-p"].push(
|
|
459
|
-
new Promise(
|
|
460
|
-
(n) => e.$onRenderResolve$ = () => {
|
|
461
|
-
t["s-p"].splice(s - 1, 1), n();
|
|
462
|
-
}
|
|
463
|
-
)
|
|
464
|
-
);
|
|
531
|
+
async getAdsForSearchParams(n) {
|
|
532
|
+
return [];
|
|
465
533
|
}
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
534
|
+
}
|
|
535
|
+
class Ae extends B {
|
|
536
|
+
/**
|
|
537
|
+
* Gets ads from the adMarketplace API based on the search term.
|
|
538
|
+
*/
|
|
539
|
+
async getAdsForSearchParams(n) {
|
|
540
|
+
if (!this.config.admSub)
|
|
541
|
+
return console.error("No admSub specified in config."), [];
|
|
542
|
+
const r = `https://demofeed.is.ampfeed.com/is?${new URLSearchParams({
|
|
543
|
+
partner: "demofeed",
|
|
544
|
+
sub1: this.config.admSub,
|
|
545
|
+
qt: n.searchTerm,
|
|
546
|
+
v: "2.0",
|
|
547
|
+
rfr: "searchcraft.io",
|
|
548
|
+
"results-ta": `${this.config.admTextAdQuantity || 0}`,
|
|
549
|
+
"results-pa": `${this.config.admProductAdQuantity || 0}`
|
|
550
|
+
}).toString()}`, a = await (await fetch(r, { method: "GET" })).json(), o = a.product_ads.map(
|
|
551
|
+
(e) => ({
|
|
552
|
+
id: _(),
|
|
553
|
+
adSource: "adMarketplace",
|
|
554
|
+
admAdType: "adm-product-ad",
|
|
555
|
+
admAd: e
|
|
556
|
+
})
|
|
557
|
+
), i = a.text_ads.map((e) => ({
|
|
558
|
+
id: _(),
|
|
559
|
+
adSource: "adMarketplace",
|
|
560
|
+
admAdType: "adm-text-ad",
|
|
561
|
+
admAd: e
|
|
562
|
+
}));
|
|
563
|
+
return o.concat(i);
|
|
470
564
|
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
throw new Error(
|
|
476
|
-
`Can't render component <${s.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`
|
|
477
|
-
);
|
|
478
|
-
let i;
|
|
479
|
-
return n(), kt(i, () => Et(e, r, t));
|
|
480
|
-
}, kt = (e, t) => Ct(e) ? e.then(t).catch((s) => {
|
|
481
|
-
console.error(s), t();
|
|
482
|
-
}) : t(), Ct = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Et = async (e, t, s) => {
|
|
483
|
-
var n;
|
|
484
|
-
const r = e.$hostElement$, i = L("update", e.$cmpMeta$.$tagName$), l = r["s-rc"], a = L("render", e.$cmpMeta$.$tagName$);
|
|
485
|
-
_t(e, t, r, s), l && (l.map((o) => o()), r["s-rc"] = void 0), a(), i();
|
|
486
|
-
{
|
|
487
|
-
const o = (n = r["s-p"]) != null ? n : [], f = () => Lt(e);
|
|
488
|
-
o.length === 0 ? f() : (Promise.all(o).then(f), e.$flags$ |= 4, o.length = 0);
|
|
565
|
+
}
|
|
566
|
+
class Ce extends B {
|
|
567
|
+
async getAdsForSearchParams(n) {
|
|
568
|
+
return [];
|
|
489
569
|
}
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
O(r, e.$hostElement$);
|
|
570
|
+
}
|
|
571
|
+
class xe extends B {
|
|
572
|
+
async getAdsForSearchParams(n) {
|
|
573
|
+
return [];
|
|
495
574
|
}
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
|
|
575
|
+
}
|
|
576
|
+
const ke = 500;
|
|
577
|
+
class Te {
|
|
578
|
+
constructor(n, r, a) {
|
|
579
|
+
f(this, "measureRequestTimeout"), f(this, "measureRequestsBatched", []), f(this, "config"), f(this, "sdkInfo"), f(this, "userId"), f(this, "sessionId"), f(this, "sendMeasureEvent", (o, i = {}, e = {}) => {
|
|
580
|
+
const u = {
|
|
581
|
+
event_name: o,
|
|
582
|
+
properties: {
|
|
583
|
+
searchcraft_index_names: this.config.index,
|
|
584
|
+
session_id: this.sessionId,
|
|
585
|
+
...i
|
|
586
|
+
},
|
|
587
|
+
user: {
|
|
588
|
+
...this.measureRequestUser,
|
|
589
|
+
...e
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
this.measureRequestsBatched.push(u), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
|
|
593
|
+
const d = JSON.stringify({ items: this.measureRequestsBatched }), c = `${this.baseMeasureUrl}/batch`;
|
|
594
|
+
try {
|
|
595
|
+
const s = await fetch(c, {
|
|
596
|
+
method: "POST",
|
|
597
|
+
headers: {
|
|
598
|
+
"Content-Type": "application/json",
|
|
599
|
+
Authorization: this.config.readKey,
|
|
600
|
+
"X-Sc-User-Id": this.userId
|
|
601
|
+
},
|
|
602
|
+
body: d,
|
|
603
|
+
keepalive: !0
|
|
604
|
+
});
|
|
605
|
+
if (!s.ok)
|
|
606
|
+
throw new Error(
|
|
607
|
+
`Failed to send request: ${s.status} ${s.statusText}`
|
|
608
|
+
);
|
|
609
|
+
this.measureRequestsBatched = [];
|
|
610
|
+
return;
|
|
611
|
+
} catch (s) {
|
|
612
|
+
throw console.error("Error sending MeasureRequest:", s), s;
|
|
613
|
+
}
|
|
614
|
+
}, ke);
|
|
615
|
+
}), this.config = n, this.sdkInfo = r, this.userId = a, this.sessionId = _(), this.sendMeasureEvent("sdk_initialized");
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Getter for the base url used by the /measure endpoints.
|
|
619
|
+
*/
|
|
620
|
+
get baseMeasureUrl() {
|
|
621
|
+
return `${this.config.endpointURL}/measure`;
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Getter for the measure request user. Uses config values + navigator values.
|
|
625
|
+
*/
|
|
626
|
+
get measureRequestUser() {
|
|
627
|
+
return {
|
|
628
|
+
user_id: this.userId,
|
|
629
|
+
locale: navigator.language || "en-US",
|
|
630
|
+
os: navigator.userAgent.includes("Windows") ? "Windows" : navigator.userAgent.includes("Mac") ? "Mac" : navigator.userAgent.includes("Linux") ? "Linux" : "Unknown",
|
|
631
|
+
platform: navigator.platform || "Unknown",
|
|
632
|
+
sdk_name: this.sdkInfo.sdkName,
|
|
633
|
+
sdk_version: this.sdkInfo.sdkVersion,
|
|
634
|
+
user_agent: navigator.userAgent || "Unknown"
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
function Ie(t) {
|
|
639
|
+
const n = [];
|
|
640
|
+
let r = "should";
|
|
641
|
+
return t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((a) => {
|
|
642
|
+
var o;
|
|
643
|
+
const i = (o = t.facetPathsForIndexFields) == null ? void 0 : o[a];
|
|
644
|
+
i && (r = "must", n.push({
|
|
645
|
+
occur: r,
|
|
646
|
+
exact: {
|
|
647
|
+
ctx: i.value
|
|
648
|
+
}
|
|
649
|
+
}));
|
|
650
|
+
}), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((a) => {
|
|
651
|
+
var o;
|
|
652
|
+
const i = (o = t.rangeValueForIndexFields) == null ? void 0 : o[a];
|
|
653
|
+
i && (r = "must", n.push({
|
|
654
|
+
occur: r,
|
|
655
|
+
exact: {
|
|
656
|
+
ctx: i.value
|
|
657
|
+
}
|
|
658
|
+
}));
|
|
659
|
+
}), t.sort === "desc" ? t.order_by = "date_published" : t.order_by = "", n.push({
|
|
660
|
+
occur: r,
|
|
661
|
+
// Valid, as 'occur' is a required property in QueryItem
|
|
662
|
+
[t.mode]: { ctx: t.searchTerm }
|
|
663
|
+
// Ensure dynamic mode is inside queryType
|
|
664
|
+
}), n;
|
|
665
|
+
}
|
|
666
|
+
const _e = (t) => t.endsWith("/") ? t.slice(0, -1) : t, Le = (t) => {
|
|
667
|
+
let n = "";
|
|
668
|
+
if (n = t.trim(), n = n.replace(/[‘’“”]/g, (r) => ({
|
|
669
|
+
"‘": "'",
|
|
670
|
+
"’": "'",
|
|
671
|
+
"“": '"',
|
|
672
|
+
"”": '"'
|
|
673
|
+
})[r] || r), (n.match(/"/g) || []).length % 2 !== 0)
|
|
515
674
|
throw new Error(
|
|
516
|
-
|
|
675
|
+
"The search term contains an uneven number of quote characters."
|
|
517
676
|
);
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
677
|
+
return n;
|
|
678
|
+
};
|
|
679
|
+
class Fe {
|
|
680
|
+
constructor(n, r, a) {
|
|
681
|
+
f(this, "config"), f(this, "userId"), f(this, "parent"), f(this, "getSearchResponse", async (o) => {
|
|
682
|
+
var i, e;
|
|
683
|
+
const u = Le(o.searchTerm);
|
|
684
|
+
(i = this.parent.measureClient) == null || i.sendMeasureEvent("search_requested", {
|
|
685
|
+
search_term: u
|
|
686
|
+
}), this.parent.emitEvent("query_submitted", {
|
|
687
|
+
name: "query_submitted",
|
|
688
|
+
data: {
|
|
689
|
+
searchTerm: u
|
|
529
690
|
}
|
|
530
691
|
});
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
if (!(t.$members$[a][0] & 2048))
|
|
547
|
-
return xt(this, a);
|
|
548
|
-
const c = k(this), u = c ? c.$lazyInstance$ : i;
|
|
549
|
-
return u ? u[a] : void 0;
|
|
550
|
-
}
|
|
692
|
+
try {
|
|
693
|
+
const d = {
|
|
694
|
+
query: Ie(o),
|
|
695
|
+
offset: o.offset || 0,
|
|
696
|
+
// Default to 0 (first page) if not provided
|
|
697
|
+
limit: o.limit || this.config.searchResultsPerPage || 20
|
|
698
|
+
// Default to 20 if not provided
|
|
699
|
+
};
|
|
700
|
+
o.order_by && (d.order_by = o.order_by, d.sort = o.sort === "desc" || o.sort === "asc" ? o.sort : "asc");
|
|
701
|
+
const c = {
|
|
702
|
+
method: "POST",
|
|
703
|
+
headers: {
|
|
704
|
+
Authorization: this.config.readKey,
|
|
705
|
+
"Content-Type": "application/json",
|
|
706
|
+
"X-Sc-User-Id": this.userId
|
|
551
707
|
},
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
t.$members$[a][0] & 4096 && u.$lazyInstance$[a] !== u.$instanceValues$.get(a) && (u.$lazyInstance$[a] = c);
|
|
566
|
-
});
|
|
567
|
-
return;
|
|
568
|
-
}
|
|
569
|
-
const d = () => {
|
|
570
|
-
const h = u.$lazyInstance$[a];
|
|
571
|
-
!u.$instanceValues$.get(a) && h && u.$instanceValues$.set(a, h), u.$lazyInstance$[a] = Y(c, o), W(this, a, u.$lazyInstance$[a], t);
|
|
572
|
-
};
|
|
573
|
-
u.$lazyInstance$ ? d() : u.$onReadyPromise$.then(() => d());
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
});
|
|
708
|
+
body: JSON.stringify(d)
|
|
709
|
+
}, s = await fetch(this.baseSearchUrl, c);
|
|
710
|
+
if (!s.ok)
|
|
711
|
+
throw new Error(
|
|
712
|
+
`Error: ${s.statusText} (Status: ${s.status})`
|
|
713
|
+
);
|
|
714
|
+
const h = await s.json();
|
|
715
|
+
return (e = this.parent.measureClient) == null || e.sendMeasureEvent("search_response_received", {
|
|
716
|
+
search_term: u,
|
|
717
|
+
number_of_documents: h.data.count
|
|
718
|
+
}), h;
|
|
719
|
+
} catch (d) {
|
|
720
|
+
throw console.error("Error parsing response:", d), d;
|
|
577
721
|
}
|
|
578
|
-
}),
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
722
|
+
}), this.parent = n, this.config = r, this.userId = a;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Getter for the base url used by the /search endpoint.
|
|
726
|
+
*/
|
|
727
|
+
get baseSearchUrl() {
|
|
728
|
+
return `${this.config.endpointURL}/index/${this.config.index.join(",")}/search`;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
class Oe {
|
|
732
|
+
constructor(n, r) {
|
|
733
|
+
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, o, i) => {
|
|
734
|
+
const e = async () => {
|
|
735
|
+
(async () => {
|
|
736
|
+
var u, d;
|
|
737
|
+
const c = await ((u = this == null ? void 0 : this.searchClient) == null ? void 0 : u.getSearchResponse(a));
|
|
738
|
+
if (!c)
|
|
739
|
+
throw new Error("Search client was not initialized.");
|
|
740
|
+
const s = (d = c.data.hits || []) == null ? void 0 : d.map((h) => h.doc).filter((h) => !!h).map((h) => ({
|
|
741
|
+
type: "SearchDocument",
|
|
742
|
+
id: _(),
|
|
743
|
+
document: h
|
|
744
|
+
}));
|
|
745
|
+
s.length === 0 && this.emitEvent("no_results_returned", {
|
|
746
|
+
name: "no_results_returned"
|
|
747
|
+
}), o(c, s);
|
|
748
|
+
})(), (async () => {
|
|
749
|
+
if (this.adClient) {
|
|
750
|
+
const u = await this.adClient.getAdsForSearchParams(a);
|
|
751
|
+
i(u);
|
|
600
752
|
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
).map(([o, f]) => {
|
|
611
|
-
const $ = f[1] || o;
|
|
612
|
-
return a.set($, o), $;
|
|
613
|
-
})
|
|
614
|
-
])
|
|
753
|
+
})();
|
|
754
|
+
};
|
|
755
|
+
clearTimeout(this.requestTimeout), this.config.searchDebounceDelay ? this.requestTimeout = setTimeout(
|
|
756
|
+
e,
|
|
757
|
+
this.config.searchDebounceDelay
|
|
758
|
+
) : e();
|
|
759
|
+
}), !n.endpointURL || !n.index || !n.readKey)
|
|
760
|
+
throw new Error(
|
|
761
|
+
"Endpoint URL, Index value(s), and Read Key must be provided"
|
|
615
762
|
);
|
|
616
|
-
|
|
763
|
+
this.config = {
|
|
764
|
+
...n,
|
|
765
|
+
// Strips off the trailing '/' from an endpointURL if one is accidentally added
|
|
766
|
+
endpointURL: _e(n.endpointURL)
|
|
767
|
+
}, this.userId = "", this.initClients(this.config, r), this.initInputForms(), this.startObservingMutations();
|
|
617
768
|
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
r = await a, f();
|
|
628
|
-
} else
|
|
629
|
-
r = a;
|
|
630
|
-
if (!r)
|
|
631
|
-
throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);
|
|
632
|
-
r.isProxied || (s.$watchers$ = r.watchers, we(
|
|
633
|
-
r,
|
|
634
|
-
s,
|
|
635
|
-
2
|
|
636
|
-
/* proxyState */
|
|
637
|
-
), r.isProxied = !0);
|
|
638
|
-
const o = L("createInstance", s.$tagName$);
|
|
639
|
-
t.$flags$ |= 8;
|
|
640
|
-
try {
|
|
641
|
-
new r(t);
|
|
642
|
-
} catch (f) {
|
|
643
|
-
O(f, e);
|
|
644
|
-
}
|
|
645
|
-
t.$flags$ &= -9, t.$flags$ |= 128, o(), J(t.$lazyInstance$, e);
|
|
646
|
-
}
|
|
769
|
+
initInputForms() {
|
|
770
|
+
const n = document.querySelectorAll(
|
|
771
|
+
"searchcraft-input-form"
|
|
772
|
+
);
|
|
773
|
+
setTimeout(() => {
|
|
774
|
+
n.forEach((r) => {
|
|
775
|
+
r.core = this;
|
|
776
|
+
});
|
|
777
|
+
}, 40);
|
|
647
778
|
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
779
|
+
/**
|
|
780
|
+
* When changes happen in the DOM, we want to link any input forms found to the instance of the core.
|
|
781
|
+
*/
|
|
782
|
+
startObservingMutations() {
|
|
783
|
+
new MutationObserver((n, r) => {
|
|
784
|
+
let a = !1;
|
|
785
|
+
for (const o of n)
|
|
786
|
+
o.type === "childList" && o.addedNodes.forEach((i) => {
|
|
787
|
+
i.nodeType === 1 && i.className.toLowerCase() === "searchcraft-input-form" && (a = !0);
|
|
788
|
+
});
|
|
789
|
+
a && this.initInputForms();
|
|
790
|
+
}).observe(document.body, { childList: !0, subtree: !0 });
|
|
791
|
+
}
|
|
792
|
+
initClients(n, r) {
|
|
793
|
+
setTimeout(async () => {
|
|
794
|
+
let a = this.config.userId;
|
|
795
|
+
switch (a || (a = await fe()), this.measureClient = new Te(n, r, a), this.searchClient = new Fe(this, n, a), n.adSource) {
|
|
796
|
+
case "adMarketplace":
|
|
797
|
+
this.adClient = new Ae(n);
|
|
798
|
+
break;
|
|
799
|
+
case "Nativo":
|
|
800
|
+
this.adClient = new xe(n);
|
|
801
|
+
break;
|
|
802
|
+
case "Custom":
|
|
803
|
+
this.adClient = new Ce(n);
|
|
804
|
+
break;
|
|
667
805
|
}
|
|
668
|
-
|
|
669
|
-
if (i & 31 && e.hasOwnProperty(r)) {
|
|
670
|
-
const l = e[r];
|
|
671
|
-
delete e[r], e[r] = l;
|
|
672
|
-
}
|
|
673
|
-
}), wt(e, t, s);
|
|
674
|
-
}
|
|
675
|
-
n();
|
|
806
|
+
}, 300);
|
|
676
807
|
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}, ve = (e, t) => {
|
|
683
|
-
ne(e, "disconnectedCallback", void 0, t || e);
|
|
684
|
-
}, At = async (e) => {
|
|
685
|
-
if (!(v.$flags$ & 1)) {
|
|
686
|
-
const t = k(e);
|
|
687
|
-
t != null && t.$lazyInstance$ ? ve(t.$lazyInstance$, e) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => ve(t.$lazyInstance$, e));
|
|
808
|
+
emitEvent(n, r) {
|
|
809
|
+
var a;
|
|
810
|
+
(a = this.subscriptionEvents[n]) == null || a.forEach((o) => {
|
|
811
|
+
o(r);
|
|
812
|
+
});
|
|
688
813
|
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
814
|
+
subscribe(n, r) {
|
|
815
|
+
return this.subscriptionEvents[n] || (this.subscriptionEvents[n] = []), this.subscriptionEvents[n].push(
|
|
816
|
+
r
|
|
817
|
+
), () => {
|
|
818
|
+
this.subscriptionEvents[n] = this.subscriptionEvents[n].filter((a) => a !== r);
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
const Ue = "@searchcraft/vue-sdk", De = "0.9.0", Be = "Searchcraft Vue SDK.", Ne = "module", je = "Apache-2.0", qe = ["searchcraft"], Ve = { 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" }, Ge = { type: "git", url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/" }, We = { node: ">=18.0.0", npm: ">=10.0.0" }, $e = "./dist/index.umd.js", He = "./dist/index.es.js", Ke = "./dist/index.d.ts", ze = { ".": { 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" }, Ye = ["dist"], Je = { vue: "^3.5.13" }, Xe = { "@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" }, H = {
|
|
823
|
+
name: Ue,
|
|
824
|
+
version: De,
|
|
825
|
+
private: !1,
|
|
826
|
+
description: Be,
|
|
827
|
+
type: Ne,
|
|
828
|
+
license: je,
|
|
829
|
+
keywords: qe,
|
|
830
|
+
scripts: Ve,
|
|
831
|
+
repository: Ge,
|
|
832
|
+
engines: We,
|
|
833
|
+
main: $e,
|
|
834
|
+
module: He,
|
|
835
|
+
types: Ke,
|
|
836
|
+
exports: ze,
|
|
837
|
+
files: Ye,
|
|
838
|
+
peerDependencies: Je,
|
|
839
|
+
devDependencies: Xe
|
|
840
|
+
}, U = "routerLink", K = "navManager", Qe = "router", Ze = "aria", x = Symbol(), z = { default: x }, Y = (t) => (t == null ? void 0 : t.split(" ")) || [], et = (t, n, r = []) => {
|
|
841
|
+
var a;
|
|
842
|
+
return [...Array.from(((a = t.value) == null ? void 0 : a.classList) || []), ...r].filter((o, i, e) => !n.has(o) && e.indexOf(o) === i);
|
|
843
|
+
}, E = (t, n, r = [], a = [], o, i) => {
|
|
844
|
+
const e = te((u, { attrs: d, slots: c, emit: s }) => {
|
|
845
|
+
var j;
|
|
846
|
+
const h = ne(), T = new Set(Y(d.class)), R = re(), N = ((j = R == null ? void 0 : R.appContext) == null ? void 0 : j.provides[K]) ? ae(K) : void 0, Z = (A) => {
|
|
847
|
+
const { routerLink: F } = u;
|
|
848
|
+
if (F !== x)
|
|
849
|
+
if (N !== void 0) {
|
|
850
|
+
A.preventDefault();
|
|
851
|
+
let P = { event: A };
|
|
852
|
+
for (const C in u) {
|
|
853
|
+
const m = u[C];
|
|
854
|
+
u.hasOwnProperty(C) && C.startsWith(Qe) && m !== x && (P[C] = m);
|
|
855
|
+
}
|
|
856
|
+
N.navigate(P);
|
|
857
|
+
} else
|
|
858
|
+
console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
|
|
859
|
+
};
|
|
860
|
+
return () => {
|
|
861
|
+
u[o], Y(d.class).forEach((m) => {
|
|
862
|
+
T.add(m);
|
|
863
|
+
});
|
|
864
|
+
const A = u.onClick, F = (m) => {
|
|
865
|
+
A !== void 0 && A(m), m.defaultPrevented || Z(m);
|
|
704
866
|
};
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
super(b), this.hasRegisteredEventListeners = !1, b = this, tt(b, y);
|
|
710
|
-
}
|
|
711
|
-
connectedCallback() {
|
|
712
|
-
k(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), c && (clearTimeout(c), c = null), u ? $.push(this) : v.jmp(() => Ot(this));
|
|
713
|
-
}
|
|
714
|
-
disconnectedCallback() {
|
|
715
|
-
v.jmp(() => At(this)), v.raf(() => {
|
|
716
|
-
var b;
|
|
717
|
-
const P = k(this);
|
|
718
|
-
((b = P == null ? void 0 : P.$vnode$) == null ? void 0 : b.$elm$) instanceof Node && !P.$vnode$.$elm$.isConnected && delete P.$vnode$.$elm$;
|
|
719
|
-
});
|
|
720
|
-
}
|
|
721
|
-
componentOnReady() {
|
|
722
|
-
return k(this).$onReadyPromise$;
|
|
723
|
-
}
|
|
867
|
+
let P = {
|
|
868
|
+
ref: h,
|
|
869
|
+
class: et(h, T),
|
|
870
|
+
onClick: F
|
|
724
871
|
};
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
u = !1, $.length ? $.map((h) => h.connectedCallback()) : v.jmp(() => c = setTimeout(Le, 30)), n();
|
|
741
|
-
};
|
|
742
|
-
const Dt = () => {
|
|
743
|
-
}, jt = async (e, t) => {
|
|
744
|
-
if (!(typeof window > "u"))
|
|
745
|
-
return await Dt(), Ft([["searchcraft-base-search-results", [[4, "searchcraft-base-search-results", { customStylesForResults: [1, "custom-styles-for-results"], searchResultMappings: [16], resultImagePlacement: [1, "result-image-placement"], buttonLabel: [1, "button-label"], buttonTarget: [1, "button-target"], buttonRel: [1, "button-rel"], containerTarget: [1, "container-target"], containerRel: [1, "container-rel"], searchTerm: [32], searchClientResponseItems: [32], adClientResponseItems: [32], searchResultsPerPage: [32], searchResultsPage: [32] }]]], ["searchcraft-filter-panel", [[0, "searchcraft-filter-panel", { items: [16], unsubscribe: [32], lastSearchTerm: [32] }]]], ["searchcraft-pagination", [[0, "searchcraft-pagination", { customStyles: [1, "custom-styles"], searchTerm: [32], searchResultsPerPage: [32], searchResultsPage: [32], searchResultsCount: [32], searchResultsPagesCount: [32], searchResultsRangeMin: [32], searchResultsRangeMax: [32], setSearchResultsPage: [32] }]]], ["searchcraft-search-results-per-page", [[0, "searchcraft-search-results-per-page", { increment: [8], customStyles: [1, "custom-styles"], searchTerm: [32], searchResultsPage: [32], searchResultsPerPage: [32], searchResultsCount: [32], searchResultsPagesCount: [32], initialSearchResultsPerPage: [32], setSearchResultsPerPage: [32], setSearchResultsPage: [32] }]]], ["searchcraft-popover-button", [[4, "searchcraft-popover-button"]]], ["searchcraft-results-info", [[0, "searchcraft-results-info", { customFormatter: [16], customStyles: [1, "custom-styles"], searchTerm: [32], searchResultsPage: [32], searchResultsPerPage: [32], searchResultsCount: [32], count: [32], range: [32], responseTime: [32] }]]], ["searchcraft-theme", [[0, "searchcraft-theme", { theme: [1], customTheme: [1, "custom-theme"] }]]], ["searchcraft-input-form_2", [[0, "searchcraft-input-form", { config: [16], autoSearch: [4, "auto-search"], buttonPlacement: [1, "button-placement"], buttonLabel: [1, "button-label"], inputLabel: [1, "input-label"], customStyles: [1, "custom-styles"], placeholderValue: [1, "placeholder-value"], searchTerm: [1, "search-term"], inputValue: [32], error: [32], isSearchcraftInitialized: [32] }, null, { config: ["onConfigChange"] }], [0, "searchcraft-popover-list-view", { popoverResultMappings: [16], searchClientResponseItems: [16], adClientResponseItems: [16], searchResultsPage: [2, "search-results-page"], searchResultsPerPage: [2, "search-results-per-page"] }]]], ["searchcraft-popover-form", [[0, "searchcraft-popover-form", { config: [16], type: [1], popoverResultMappings: [16], hotkey: [1], hotkeyModifier: [1, "hotkey-modifier"], isPopoverVisibleInState: [32], unsubscribe: [32], searchClientResponseItems: [32], adClientResponseItems: [32], searchTerm: [32], isFocused: [32], breakpointSm: [32], breakpointMd: [32], breakpointLg: [32], searchResultsPage: [32], searchResultsPerPage: [32], modalElement: [32] }]]], ["searchcraft-select", [[0, "searchcraft-select", { caption: [1], disabled: [4], inputId: [1, "input-id"], label: [1], labelId: [1, "label-id"], name: [1], options: [1], customStyles: [1, "custom-styles"], searchResultsPerPage: [32], setSearchResultsPage: [32], setSearchResultsPerPage: [32] }]]], ["searchcraft-base-search-result_2", [[0, "searchcraft-base-search-result", { item: [16], searchResultMappings: [16], containerTarget: [1, "container-target"], containerRel: [1, "container-rel"], buttonTarget: [1, "button-target"], buttonRel: [1, "button-rel"], imagePlacement: [1, "image-placement"], customStyles: [1, "custom-styles"], documentPosition: [2, "document-position"], titleContent: [32], subtitleContent: [32], bodyContent: [32], footerContent: [32], buttonLabel: [32], buttonHref: [32], containerHref: [32], imageSrc: [32], imageAlt: [32] }], [0, "searchcraft-base-search-result-ad", { adClientResponseItem: [16] }]]], ["searchcraft-facet-list_3", [[0, "searchcraft-facet-list", { fieldName: [1, "field-name"], baseFacetRoot: [32], facetRoot: [32], selectedPaths: [32], lastTimeTaken: [32], hasNewSearchTerm: [32], lastSearchTerm: [32], lastSearchMode: [32], lastSortType: [32], unsubscribe: [32] }], [0, "searchcraft-slider", { max: [2], min: [2], granularity: [2], dataType: [1, "data-type"], endValue: [32], startValue: [32], lastFocusedHandle: [32] }], [0, "searchcraft-toggle-button", { label: [1], subLabel: [1, "sub-label"], isActive: [32], unsubscribe: [32], lastSearchTerm: [32] }]]], ["searchcraft-popover-list-item_2", [[0, "searchcraft-popover-list-item", { item: [16], popoverResultMappings: [16], documentPosition: [2, "document-position"], href: [32], imageSrc: [32], imageAlt: [32], titleContent: [32], subtitleContent: [32] }], [0, "searchcraft-popover-list-item-ad", { adClientResponseItem: [16] }]]], ["searchcraft-button_3", [[0, "searchcraft-input-label", { inputLabelClassName: [1, "input-label-class-name"], label: [1] }], [0, "searchcraft-button", { hierarchy: [1], disabled: [4], icon: [16], iconOnly: [4, "icon-only"], iconPosition: [1, "icon-position"], label: [1], type: [1] }], [0, "searchcraft-error-message", { errorMessage: [1, "error-message"] }]]]], t);
|
|
746
|
-
};
|
|
747
|
-
(function() {
|
|
748
|
-
if (typeof window < "u" && window.Reflect !== void 0 && window.customElements !== void 0) {
|
|
749
|
-
var e = HTMLElement;
|
|
750
|
-
window.HTMLElement = function() {
|
|
751
|
-
return Reflect.construct(e, [], this.constructor);
|
|
752
|
-
}, HTMLElement.prototype = e.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, e);
|
|
872
|
+
for (const m in u) {
|
|
873
|
+
const q = u[m];
|
|
874
|
+
(u.hasOwnProperty(m) && q !== x || m.startsWith(Ze)) && (P[m] = q);
|
|
875
|
+
const V = "on" + m.slice(0, 1).toUpperCase() + m.slice(1), ee = d[V];
|
|
876
|
+
h.value && d.hasOwnProperty(V) && "addEventListener" in h.value && h.value.addEventListener(m, ee);
|
|
877
|
+
}
|
|
878
|
+
return U in u && u[U] !== x && (P = {
|
|
879
|
+
...P,
|
|
880
|
+
href: u[U]
|
|
881
|
+
}), oe(t, P, c.default && c.default());
|
|
882
|
+
};
|
|
883
|
+
});
|
|
884
|
+
if (typeof e != "function") {
|
|
885
|
+
let u = [], d = {};
|
|
886
|
+
d.ROUTER_LINK_VALUE = z, r.forEach((c) => d[c] = z), u = a, e.name = t, e.emits = u, e.props = d;
|
|
753
887
|
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
888
|
+
return e;
|
|
889
|
+
}, tt = /* @__PURE__ */ E("searchcraft-base-search-results", void 0, [
|
|
890
|
+
"customStylesForResults",
|
|
891
|
+
"searchResultMappings",
|
|
892
|
+
"resultImagePlacement",
|
|
893
|
+
"buttonLabel",
|
|
894
|
+
"buttonTarget",
|
|
895
|
+
"buttonRel",
|
|
896
|
+
"containerTarget",
|
|
897
|
+
"containerRel"
|
|
898
|
+
]), nt = /* @__PURE__ */ E("searchcraft-filter-panel", void 0, [
|
|
899
|
+
"items"
|
|
900
|
+
]), rt = /* @__PURE__ */ E("searchcraft-input-form", void 0, [
|
|
901
|
+
"autoSearch",
|
|
902
|
+
"buttonPlacement",
|
|
903
|
+
"buttonLabel",
|
|
904
|
+
"inputLabel",
|
|
905
|
+
"customStyles",
|
|
906
|
+
"placeholderValue",
|
|
907
|
+
"searchTerm",
|
|
908
|
+
"core",
|
|
909
|
+
"inputFocus",
|
|
910
|
+
"inputBlur",
|
|
911
|
+
"inputInit"
|
|
912
|
+
], [
|
|
913
|
+
"inputFocus",
|
|
914
|
+
"inputBlur",
|
|
915
|
+
"inputInit"
|
|
916
|
+
]), at = /* @__PURE__ */ E("searchcraft-pagination", void 0, [
|
|
917
|
+
"customStyles"
|
|
918
|
+
]), ot = /* @__PURE__ */ E("searchcraft-popover-button"), it = /* @__PURE__ */ E("searchcraft-popover-form", void 0, [
|
|
919
|
+
"type",
|
|
920
|
+
"popoverResultMappings",
|
|
921
|
+
"hotkey",
|
|
922
|
+
"hotkeyModifier"
|
|
923
|
+
]), st = /* @__PURE__ */ E("searchcraft-results-info", void 0, [
|
|
924
|
+
"customFormatter",
|
|
925
|
+
"customStyles"
|
|
926
|
+
]), ct = /* @__PURE__ */ E("searchcraft-search-results-per-page", void 0, [
|
|
927
|
+
"increment",
|
|
928
|
+
"customStyles"
|
|
929
|
+
]), ut = /* @__PURE__ */ E("searchcraft-theme", void 0, [
|
|
930
|
+
"theme",
|
|
931
|
+
"customTheme"
|
|
932
|
+
]), lt = tt, ht = nt, ft = rt, mt = ot, pt = it, gt = st, vt = ut, yt = at, wt = ct;
|
|
933
|
+
class bt extends Oe {
|
|
934
|
+
constructor(n) {
|
|
935
|
+
super(n, {
|
|
936
|
+
sdkName: H.name,
|
|
937
|
+
sdkVersion: H.version
|
|
938
|
+
});
|
|
758
939
|
}
|
|
759
|
-
}
|
|
940
|
+
}
|
|
760
941
|
export {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
942
|
+
bt as Searchcraft,
|
|
943
|
+
lt as SearchcraftBaseSearchResults,
|
|
944
|
+
ht as SearchcraftFilterPanel,
|
|
945
|
+
ft as SearchcraftInputForm,
|
|
946
|
+
yt as SearchcraftPagination,
|
|
947
|
+
mt as SearchcraftPopoverButton,
|
|
948
|
+
pt as SearchcraftPopoverForm,
|
|
949
|
+
gt as SearchcraftResultsInfo,
|
|
950
|
+
wt as SearchcraftSearchResultsPerPage,
|
|
951
|
+
vt as SearchcraftTheme
|
|
771
952
|
};
|
|
772
953
|
//# sourceMappingURL=index.es.js.map
|