@sinequa/atomic 1.1.3 → 2.0.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/dist/atomic.js +670 -597
- package/dist/atomic.umd.cjs +1 -1
- package/dist/authentication/index.d.ts +1 -1
- package/dist/authentication/index.d.ts.map +1 -1
- package/dist/authentication/session/detect-auth-mode.d.ts +22 -0
- package/dist/authentication/session/detect-auth-mode.d.ts.map +1 -0
- package/dist/authentication/session/index.d.ts +1 -0
- package/dist/authentication/session/index.d.ts.map +1 -1
- package/dist/authentication/session/login.d.ts +15 -3
- package/dist/authentication/session/login.d.ts.map +1 -1
- package/dist/configurations/auth-mode.d.ts +60 -0
- package/dist/configurations/auth-mode.d.ts.map +1 -0
- package/dist/configurations/global.config.d.ts +14 -2
- package/dist/configurations/global.config.d.ts.map +1 -1
- package/dist/configurations/index.d.ts +2 -1
- package/dist/configurations/index.d.ts.map +1 -1
- package/dist/types/filters/legacy-filters.d.ts +1 -1
- package/dist/types/filters/legacy-filters.d.ts.map +1 -1
- package/dist/utils/aggregations.d.ts +2 -2
- package/dist/utils/aggregations.d.ts.map +1 -1
- package/dist/web-api/v1/fetch-app.d.ts +7 -1
- package/dist/web-api/v1/fetch-app.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/atomic.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function m(e) {
|
|
2
2
|
if (typeof CustomEvent > "u" || typeof dispatchEvent > "u")
|
|
3
3
|
return;
|
|
4
4
|
const t = new CustomEvent("authenticated", {
|
|
@@ -8,18 +8,64 @@ function w(e) {
|
|
|
8
8
|
});
|
|
9
9
|
dispatchEvent(t);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const g = {
|
|
12
|
+
credentials: () => ({ kind: "credentials" }),
|
|
13
|
+
sso: () => ({ kind: "sso" }),
|
|
14
|
+
oauth: (e) => ({ kind: "oauth", provider: e }),
|
|
15
|
+
saml: (e) => ({ kind: "saml", provider: e }),
|
|
16
|
+
bearer: (e) => ({ kind: "bearer", token: e }),
|
|
17
|
+
unknown: () => ({ kind: "unknown" })
|
|
18
|
+
};
|
|
19
|
+
function le(e, t) {
|
|
20
|
+
const { useCredentials: r, useSSO: n, useSAML: o } = e;
|
|
21
|
+
return o && t.autoSAMLProvider ? g.saml(t.autoSAMLProvider) : r && n ? g.unknown() : r ? g.credentials() : n ? g.sso() : t.authMode ?? g.unknown();
|
|
22
|
+
}
|
|
23
|
+
const l = {
|
|
12
24
|
loginPath: "/login",
|
|
13
|
-
createRoutes: !1
|
|
25
|
+
createRoutes: !1,
|
|
26
|
+
authMode: g.unknown()
|
|
14
27
|
};
|
|
15
|
-
|
|
16
|
-
|
|
28
|
+
Object.defineProperties(l, {
|
|
29
|
+
useCredentials: {
|
|
30
|
+
enumerable: !1,
|
|
31
|
+
configurable: !0,
|
|
32
|
+
get() {
|
|
33
|
+
const e = l.authMode?.kind;
|
|
34
|
+
return e === "credentials" || e === "unknown";
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
useSSO: {
|
|
38
|
+
enumerable: !1,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
get() {
|
|
41
|
+
const e = l.authMode?.kind;
|
|
42
|
+
return e === "sso" || e === "unknown";
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
useSAML: {
|
|
46
|
+
enumerable: !1,
|
|
47
|
+
configurable: !0,
|
|
48
|
+
get() {
|
|
49
|
+
return l.authMode?.kind === "saml";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
function S(e) {
|
|
54
|
+
const { useCredentials: t, useSSO: r, useSAML: n, authMode: o, ...a } = e;
|
|
55
|
+
if (Object.assign(l, a), o !== void 0) {
|
|
56
|
+
l.authMode = o;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
(t !== void 0 || r !== void 0 || n !== void 0) && (l.authMode = le(
|
|
60
|
+
{ useCredentials: t, useSSO: r, useSAML: n },
|
|
61
|
+
l
|
|
62
|
+
));
|
|
17
63
|
}
|
|
18
|
-
const
|
|
19
|
-
function
|
|
64
|
+
const ue = /.*:\(?([><=\d\-.AND ]+)\)?/;
|
|
65
|
+
function mt(e, t) {
|
|
20
66
|
return !e?.items || e?.items?.length === 0 ? [] : e.items.reduce((o, a) => {
|
|
21
67
|
if (!a.value || a.value === "") return o;
|
|
22
|
-
const s =
|
|
68
|
+
const s = de(a, e.column);
|
|
23
69
|
return o.push({
|
|
24
70
|
operator: s.operator,
|
|
25
71
|
value: s.value,
|
|
@@ -30,67 +76,93 @@ function ut(e, t) {
|
|
|
30
76
|
}), o;
|
|
31
77
|
}, []);
|
|
32
78
|
}
|
|
33
|
-
function
|
|
34
|
-
const r = t, n = e.value.match(
|
|
79
|
+
function de(e, t) {
|
|
80
|
+
const r = t, n = e.value.match(ue);
|
|
35
81
|
if (n?.[1]) {
|
|
36
82
|
const a = (n?.[1].split(" AND ")).map((s) => {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
return { field: r, operator: i, value: c, display: e.display || e.value };
|
|
83
|
+
const c = s.indexOf(">=") !== -1 ? "gte" : "lt", i = s.substring(s.indexOf(" ") + 1);
|
|
84
|
+
return { field: r, operator: c, value: i, display: e.display || e.value };
|
|
40
85
|
});
|
|
41
86
|
if (a.length === 2)
|
|
42
|
-
return {
|
|
87
|
+
return {
|
|
88
|
+
field: r,
|
|
89
|
+
operator: "and",
|
|
90
|
+
filters: a,
|
|
91
|
+
value: e.value,
|
|
92
|
+
display: a[0].display || a[0].value
|
|
93
|
+
};
|
|
43
94
|
if (a.length === 1)
|
|
44
95
|
return { ...a[0], field: r };
|
|
45
96
|
throw new Error("Failed to parse distribution expression");
|
|
46
97
|
}
|
|
47
|
-
return {
|
|
98
|
+
return {
|
|
99
|
+
field: r,
|
|
100
|
+
operator: "eq",
|
|
101
|
+
value: e.value,
|
|
102
|
+
display: e.display
|
|
103
|
+
};
|
|
48
104
|
}
|
|
49
|
-
function
|
|
105
|
+
function wt(e, t, r) {
|
|
50
106
|
return e.valuesAreExpressions ? t.display === r.display : t.value === r.value;
|
|
51
107
|
}
|
|
52
|
-
function
|
|
53
|
-
return e.items && (e.items = e.items.map((t) =>
|
|
108
|
+
function fe(e) {
|
|
109
|
+
return e.items && (e.items = e.items.map((t) => fe(t))), e.items && e.items.some((t) => t.$selected || t.$opened) && (e.$opened = !0), e;
|
|
54
110
|
}
|
|
55
|
-
function
|
|
111
|
+
function _t(e, t) {
|
|
56
112
|
const r = [];
|
|
57
113
|
if (e.length > 0) {
|
|
58
114
|
const n = /* @__PURE__ */ new Map(), a = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g, ""), s = new RegExp("\\b" + a, "i");
|
|
59
|
-
e.forEach((
|
|
60
|
-
if (
|
|
61
|
-
const
|
|
62
|
-
|
|
115
|
+
e.forEach((c) => {
|
|
116
|
+
if (c.display.length > 1) {
|
|
117
|
+
const i = c.display.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), d = s.exec(i);
|
|
118
|
+
te(
|
|
119
|
+
r,
|
|
120
|
+
n,
|
|
121
|
+
"/",
|
|
122
|
+
c.display,
|
|
123
|
+
+(c.frequency || 0),
|
|
124
|
+
1,
|
|
125
|
+
(d?.index || 0) + t.length
|
|
126
|
+
);
|
|
63
127
|
}
|
|
64
128
|
});
|
|
65
129
|
}
|
|
66
130
|
return r;
|
|
67
131
|
}
|
|
68
|
-
function
|
|
69
|
-
const
|
|
70
|
-
let d = t.get(
|
|
132
|
+
function te(e, t, r, n, o, a, s) {
|
|
133
|
+
const c = n.indexOf("/", r.length), i = n.substring(0, c + 1);
|
|
134
|
+
let d = t.get(i);
|
|
71
135
|
if (!d) {
|
|
72
|
-
const
|
|
136
|
+
const k = i.replace(/^\/|\/$/g, "");
|
|
73
137
|
d = {
|
|
74
|
-
value: n.substring(r.length,
|
|
138
|
+
value: n.substring(r.length, c),
|
|
75
139
|
count: o,
|
|
76
140
|
items: [],
|
|
77
141
|
hasChildren: !1,
|
|
78
142
|
$level: a,
|
|
79
|
-
$opened: s >=
|
|
80
|
-
$path:
|
|
81
|
-
}, t.set(
|
|
143
|
+
$opened: s >= i.length,
|
|
144
|
+
$path: k
|
|
145
|
+
}, t.set(i, d), e.push(d);
|
|
82
146
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
147
|
+
i.length < n.length && (d.hasChildren = !0, te(
|
|
148
|
+
d.items,
|
|
149
|
+
t,
|
|
150
|
+
i,
|
|
151
|
+
n,
|
|
152
|
+
o,
|
|
153
|
+
a + 1,
|
|
154
|
+
s
|
|
155
|
+
));
|
|
156
|
+
}
|
|
157
|
+
function kt(e, t) {
|
|
86
158
|
return e.reduce((r, n) => (t(n) ? r.true.push(n) : r.false.push(n), r), { true: [], false: [] });
|
|
87
159
|
}
|
|
88
|
-
const
|
|
89
|
-
function
|
|
160
|
+
const he = /(([\+\-])?\(([^\)]+)\))|(([\+\-])?\[([^\]]+)\])|(([\+\-])?\"([^\"]+)\")|(([\+\-])?\/([^\/]+)\/)|(([\+\-])?(\S+))/g, ge = 2, X = 3, pe = 5, Y = 6, me = 8, K = 9, we = 11, Z = 12, _e = 14, E = 15;
|
|
161
|
+
function N(e) {
|
|
90
162
|
if (!e) return [];
|
|
91
|
-
const t = [], r = e.matchAll(
|
|
163
|
+
const t = [], r = e.matchAll(he);
|
|
92
164
|
for (let n of r)
|
|
93
|
-
n[
|
|
165
|
+
n[X] ? t.push({ type: "group", value: n[X], op: n[ge] }) : n[Y] ? t.push({ type: "adjacent", value: n[Y], op: n[pe] }) : n[K] ? t.push({ type: "exact", value: n[K], op: n[me] }) : n[Z] ? t.push({ type: "regex", value: n[Z], op: n[we] }) : n[E] && t.push({ type: "token", value: n[E], op: n[_e] });
|
|
94
166
|
return t;
|
|
95
167
|
}
|
|
96
168
|
function G(e) {
|
|
@@ -110,28 +182,28 @@ function G(e) {
|
|
|
110
182
|
}
|
|
111
183
|
}).join(" ");
|
|
112
184
|
}
|
|
113
|
-
function
|
|
114
|
-
let n =
|
|
185
|
+
function St(e, t, r) {
|
|
186
|
+
let n = N(e);
|
|
115
187
|
for (let o of t)
|
|
116
188
|
n.push({ type: "adjacent", value: o, op: r });
|
|
117
189
|
return G(n);
|
|
118
190
|
}
|
|
119
|
-
function
|
|
120
|
-
const r =
|
|
191
|
+
function bt(e, t) {
|
|
192
|
+
const r = N(t), n = r.findIndex((o) => o.value === e);
|
|
121
193
|
return n !== -1 ? (r.splice(n, 1), t = G(r)) : t;
|
|
122
194
|
}
|
|
123
|
-
function
|
|
124
|
-
const t =
|
|
195
|
+
function vt(e) {
|
|
196
|
+
const t = N(e).filter((r) => r.type !== "adjacent");
|
|
125
197
|
return G(t);
|
|
126
198
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
199
|
+
function Ct(e) {
|
|
200
|
+
return N(e).filter((t) => t.type === "adjacent").map((t) => t.value);
|
|
129
201
|
}
|
|
130
|
-
function
|
|
131
|
-
const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: o, unit: a, isFuture: s } =
|
|
202
|
+
function Rt(e, t, r) {
|
|
203
|
+
const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: o, unit: a, isFuture: s } = ke(t, r);
|
|
132
204
|
return n.format(o * (s ? 1 : -1), a);
|
|
133
205
|
}
|
|
134
|
-
function
|
|
206
|
+
function ke(e, t) {
|
|
135
207
|
const r = new Date(e), n = t ? new Date(t) : /* @__PURE__ */ new Date(), o = Math.abs(n.getTime() - r.getTime());
|
|
136
208
|
return {
|
|
137
209
|
offset: Math.floor(o / (1e3 * 60 * 60 * 24)),
|
|
@@ -139,37 +211,37 @@ function we(e, t) {
|
|
|
139
211
|
isFuture: r > n
|
|
140
212
|
};
|
|
141
213
|
}
|
|
142
|
-
function
|
|
214
|
+
function Pt(e) {
|
|
143
215
|
const t = e.target;
|
|
144
216
|
return t && t.nodeName !== "INPUT" && t.nodeName !== "TEXTAREA";
|
|
145
217
|
}
|
|
146
|
-
function
|
|
218
|
+
function yt(e) {
|
|
147
219
|
if (e === void 0) return;
|
|
148
|
-
const { q: t, f: r, p: n, s: o, t: a, n: s, b:
|
|
220
|
+
const { q: t, f: r, p: n, s: o, t: a, n: s, b: c } = x(e), [i] = e.split("?");
|
|
149
221
|
return {
|
|
150
|
-
path:
|
|
222
|
+
path: i,
|
|
151
223
|
text: t,
|
|
152
|
-
filters: r ?
|
|
224
|
+
filters: r ? re(r) : void 0,
|
|
153
225
|
page: n ? parseInt(n, 10) : void 0,
|
|
154
226
|
sort: o,
|
|
155
227
|
tab: a,
|
|
156
228
|
name: s,
|
|
157
|
-
basket:
|
|
229
|
+
basket: c
|
|
158
230
|
};
|
|
159
231
|
}
|
|
160
|
-
function
|
|
232
|
+
function xt(e) {
|
|
161
233
|
if (!e) return "";
|
|
162
|
-
const { text: t, filters: r, page: n, sort: o, tab: a, name: s, basket:
|
|
163
|
-
t && (
|
|
164
|
-
const d = new URLSearchParams(
|
|
234
|
+
const { text: t, filters: r, page: n, sort: o, tab: a, name: s, basket: c } = e, i = {};
|
|
235
|
+
t && (i.q = t), r && (i.f = JSON.stringify(r)), n && (i.p = n.toString()), o && (i.s = o), a && (i.t = a), s && (i.n = s), c && (i.b = c);
|
|
236
|
+
const d = new URLSearchParams(i).toString();
|
|
165
237
|
return d || "";
|
|
166
238
|
}
|
|
167
|
-
function
|
|
239
|
+
function Lt(e) {
|
|
168
240
|
if (e === void 0) return [];
|
|
169
|
-
const { f: t } =
|
|
170
|
-
return
|
|
241
|
+
const { f: t } = x(e);
|
|
242
|
+
return re(t);
|
|
171
243
|
}
|
|
172
|
-
function
|
|
244
|
+
function re(e) {
|
|
173
245
|
const t = decodeURIComponent(e);
|
|
174
246
|
try {
|
|
175
247
|
return JSON.parse(t ?? "[]");
|
|
@@ -177,29 +249,29 @@ function te(e) {
|
|
|
177
249
|
return console.error(`Error parsing filters from URI: ${e}`), [];
|
|
178
250
|
}
|
|
179
251
|
}
|
|
180
|
-
function
|
|
252
|
+
function x(e) {
|
|
181
253
|
const t = e.split("?")[1];
|
|
182
254
|
if (t === void 0) return {};
|
|
183
255
|
const r = new URLSearchParams(t);
|
|
184
256
|
return Object.fromEntries(r);
|
|
185
257
|
}
|
|
186
|
-
function
|
|
187
|
-
const { q: t = "" } =
|
|
258
|
+
function $t(e) {
|
|
259
|
+
const { q: t = "" } = x(e);
|
|
188
260
|
return t;
|
|
189
261
|
}
|
|
190
|
-
function
|
|
191
|
-
const { id: t } =
|
|
262
|
+
function Ut(e) {
|
|
263
|
+
const { id: t } = x(e);
|
|
192
264
|
return decodeURIComponent(t);
|
|
193
265
|
}
|
|
194
|
-
function
|
|
195
|
-
const { p: t = "0" } =
|
|
266
|
+
function Ot(e) {
|
|
267
|
+
const { p: t = "0" } = x(e);
|
|
196
268
|
return parseInt(t, 10);
|
|
197
269
|
}
|
|
198
|
-
function
|
|
199
|
-
const { t } =
|
|
270
|
+
function Dt(e) {
|
|
271
|
+
const { t } = x(e);
|
|
200
272
|
return t;
|
|
201
273
|
}
|
|
202
|
-
function
|
|
274
|
+
function It(e, t) {
|
|
203
275
|
if (!e)
|
|
204
276
|
return e;
|
|
205
277
|
let r = 0;
|
|
@@ -210,21 +282,21 @@ function xt(e, t) {
|
|
|
210
282
|
o++;
|
|
211
283
|
e[o] === "]" && (r = o + 1);
|
|
212
284
|
}
|
|
213
|
-
const a =
|
|
285
|
+
const a = B(e, r, !1);
|
|
214
286
|
if (!a)
|
|
215
287
|
return e;
|
|
216
|
-
const s = t.charCodeAt(0),
|
|
217
|
-
let
|
|
218
|
-
for (;
|
|
219
|
-
if (s ===
|
|
220
|
-
const
|
|
221
|
-
return e.substring(
|
|
288
|
+
const s = t.charCodeAt(0), c = t.charCodeAt(1);
|
|
289
|
+
let i = a;
|
|
290
|
+
for (; i; )
|
|
291
|
+
if (s === i.lang1 && c === i.lang2) {
|
|
292
|
+
const k = B(e, i.end + 4, !0);
|
|
293
|
+
return e.substring(k.start, k.end);
|
|
222
294
|
} else
|
|
223
|
-
|
|
295
|
+
i = B(e, i.end + 4, !1);
|
|
224
296
|
const d = e.substring(a.start, a.end);
|
|
225
297
|
return d || e;
|
|
226
298
|
}
|
|
227
|
-
function
|
|
299
|
+
function B(e, t, r) {
|
|
228
300
|
for (let n = t, o = e.length - 3; n < o; n++)
|
|
229
301
|
if (e[n] === "[" && e[n + 3] === "]")
|
|
230
302
|
return {
|
|
@@ -241,11 +313,11 @@ function F(e, t, r) {
|
|
|
241
313
|
lang2: -1
|
|
242
314
|
};
|
|
243
315
|
}
|
|
244
|
-
function
|
|
245
|
-
const { useLocale: r, useLocaleAsPrefix: n, indexFile: o, path: a, folder: s } = t,
|
|
246
|
-
return [a, s, `${
|
|
316
|
+
function At(e, t) {
|
|
317
|
+
const { useLocale: r, useLocaleAsPrefix: n, indexFile: o, path: a, folder: s } = t, c = r ? `${e}/` : null, i = n ? `${e}.${o}` : o ?? "";
|
|
318
|
+
return [a, s, `${c || ""}${i}`].filter((d) => d !== void 0).join("/");
|
|
247
319
|
}
|
|
248
|
-
function
|
|
320
|
+
function O(e) {
|
|
249
321
|
const t = new CustomEvent("notification", {
|
|
250
322
|
bubbles: !0,
|
|
251
323
|
cancelable: !1,
|
|
@@ -253,48 +325,48 @@ function $(e) {
|
|
|
253
325
|
});
|
|
254
326
|
dispatchEvent(t);
|
|
255
327
|
}
|
|
256
|
-
const
|
|
328
|
+
const Nt = {
|
|
257
329
|
success: (e, t) => {
|
|
258
|
-
|
|
330
|
+
O({
|
|
259
331
|
type: "success",
|
|
260
332
|
message: e,
|
|
261
333
|
options: t
|
|
262
334
|
});
|
|
263
335
|
},
|
|
264
336
|
info: (e, t) => {
|
|
265
|
-
|
|
337
|
+
O({
|
|
266
338
|
type: "info",
|
|
267
339
|
message: e,
|
|
268
340
|
options: t
|
|
269
341
|
});
|
|
270
342
|
},
|
|
271
343
|
warning: (e, t) => {
|
|
272
|
-
|
|
344
|
+
O({
|
|
273
345
|
type: "warning",
|
|
274
346
|
message: e,
|
|
275
347
|
options: t
|
|
276
348
|
});
|
|
277
349
|
},
|
|
278
350
|
error: (e, t) => {
|
|
279
|
-
|
|
351
|
+
O({
|
|
280
352
|
type: "error",
|
|
281
353
|
message: e,
|
|
282
354
|
options: t
|
|
283
355
|
});
|
|
284
356
|
}
|
|
285
357
|
};
|
|
286
|
-
var
|
|
287
|
-
let
|
|
358
|
+
var ne = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e[e.NONE = 4] = "NONE", e))(ne || {});
|
|
359
|
+
let D = {
|
|
288
360
|
level: 1,
|
|
289
361
|
enableConsoleOutput: !0
|
|
290
362
|
};
|
|
291
|
-
function
|
|
292
|
-
|
|
363
|
+
function qt(e) {
|
|
364
|
+
D = { ...D, ...e };
|
|
293
365
|
}
|
|
294
|
-
function
|
|
295
|
-
if (e <
|
|
296
|
-
const o = `${`[${
|
|
297
|
-
if (
|
|
366
|
+
function q(e, t, r) {
|
|
367
|
+
if (e < D.level) return;
|
|
368
|
+
const o = `${`[${ne[e]}]`} ${t}`;
|
|
369
|
+
if (D.enableConsoleOutput)
|
|
298
370
|
switch (e) {
|
|
299
371
|
case 0:
|
|
300
372
|
console.debug(o, r || "");
|
|
@@ -310,22 +382,22 @@ function N(e, t, r) {
|
|
|
310
382
|
break;
|
|
311
383
|
}
|
|
312
384
|
}
|
|
313
|
-
function
|
|
314
|
-
|
|
385
|
+
function L(e, t) {
|
|
386
|
+
q(0, e, t);
|
|
315
387
|
}
|
|
316
|
-
function
|
|
317
|
-
|
|
388
|
+
function y(e, t) {
|
|
389
|
+
q(1, e, t);
|
|
318
390
|
}
|
|
319
|
-
function
|
|
320
|
-
|
|
391
|
+
function I(e, t) {
|
|
392
|
+
q(2, e, t);
|
|
321
393
|
}
|
|
322
394
|
function f(e, t) {
|
|
323
|
-
|
|
395
|
+
q(3, e, t);
|
|
324
396
|
}
|
|
325
|
-
function
|
|
397
|
+
function $(e) {
|
|
326
398
|
const t = W(), r = new Headers(e);
|
|
327
399
|
r.append("Sinequa-Force-Camel-Case", "true"), r.append("accept", "application/json"), t && r.append("Sinequa-csrf-token", t);
|
|
328
|
-
const { userOverride: n, userOverrideActive: o, bearerToken: a } =
|
|
400
|
+
const { userOverride: n, userOverrideActive: o, bearerToken: a } = l;
|
|
329
401
|
return a && r.append("Authorization", `Bearer ${a}`), n && o && (r.append("sinequa-override-user", n.username), r.append("sinequa-override-domain", n.domain)), r;
|
|
330
402
|
}
|
|
331
403
|
class R extends Error {
|
|
@@ -334,12 +406,12 @@ class R extends Error {
|
|
|
334
406
|
super(t), this.name = "ApiError", this.status = r;
|
|
335
407
|
}
|
|
336
408
|
}
|
|
337
|
-
class
|
|
409
|
+
class T extends R {
|
|
338
410
|
constructor(t = "Server error") {
|
|
339
411
|
super(t, 500), this.name = "ServerError";
|
|
340
412
|
}
|
|
341
413
|
}
|
|
342
|
-
class
|
|
414
|
+
class Se extends R {
|
|
343
415
|
constructor(t = "Request timed out") {
|
|
344
416
|
super(t, 408), this.name = "TimeoutError";
|
|
345
417
|
}
|
|
@@ -351,7 +423,7 @@ class V extends R {
|
|
|
351
423
|
}
|
|
352
424
|
async function P(e, t = "json") {
|
|
353
425
|
const r = e.headers.get("sinequa-jwt-refresh");
|
|
354
|
-
if (r !== null &&
|
|
426
|
+
if (r !== null && A(r), e.status === 200)
|
|
355
427
|
switch (t) {
|
|
356
428
|
case "arraybuffer":
|
|
357
429
|
return await e.arrayBuffer();
|
|
@@ -363,33 +435,33 @@ async function P(e, t = "json") {
|
|
|
363
435
|
return await e.json();
|
|
364
436
|
}
|
|
365
437
|
if (e.status === 401) {
|
|
366
|
-
if (
|
|
438
|
+
if (l.userOverrideActive) {
|
|
367
439
|
let n = {};
|
|
368
440
|
try {
|
|
369
441
|
n = await e.clone().json();
|
|
370
442
|
} catch {
|
|
371
443
|
}
|
|
372
|
-
throw
|
|
444
|
+
throw I("Unauthorized access attempt with user override", {
|
|
373
445
|
endpoint: e.url,
|
|
374
446
|
error: n
|
|
375
447
|
}), new V(
|
|
376
448
|
n.errorMessage ?? n.message ?? "Unauthorized... User override failed."
|
|
377
449
|
);
|
|
378
450
|
}
|
|
379
|
-
return await
|
|
451
|
+
return await M(e, 401);
|
|
380
452
|
}
|
|
381
|
-
return e.status === 500 ? (f("Server error occurred", { endpoint: e.url }), await
|
|
453
|
+
return e.status === 500 ? (f("Server error occurred", { endpoint: e.url }), await M(e, 500)) : (I(`Unexpected response status: ${e.status}`, {
|
|
382
454
|
endpoint: e.url
|
|
383
|
-
}), await
|
|
455
|
+
}), await M(e, e.status));
|
|
384
456
|
}
|
|
385
|
-
async function
|
|
457
|
+
async function M(e, t) {
|
|
386
458
|
try {
|
|
387
459
|
const { done: r, value: n } = await e.body?.getReader().read() || {
|
|
388
460
|
done: !0,
|
|
389
461
|
value: void 0
|
|
390
462
|
};
|
|
391
463
|
if (r || !n)
|
|
392
|
-
throw t === 401 ? new V() : t === 500 ? new
|
|
464
|
+
throw t === 401 ? new V() : t === 500 ? new T() : new R(`Request failed with status ${t}`, t);
|
|
393
465
|
const o = JSON.parse(new TextDecoder().decode(n));
|
|
394
466
|
throw new Error(
|
|
395
467
|
o.errorMessage || o.message || `Request failed with status ${t}`,
|
|
@@ -401,68 +473,68 @@ async function B(e, t) {
|
|
|
401
473
|
}
|
|
402
474
|
);
|
|
403
475
|
} catch (r) {
|
|
404
|
-
throw r instanceof R ? r : t === 401 ? new V(r.message) : t === 500 ? new
|
|
476
|
+
throw r instanceof R ? r : t === 401 ? new V(r.message) : t === 500 ? new T(r.message) : new R(
|
|
405
477
|
r.message ?? `Request failed with status ${t}`,
|
|
406
478
|
t
|
|
407
479
|
);
|
|
408
480
|
}
|
|
409
481
|
}
|
|
410
|
-
async function
|
|
411
|
-
const n =
|
|
412
|
-
|
|
482
|
+
async function be(e, t, r) {
|
|
483
|
+
const n = $(r?.headers), { backendUrl: o } = l, a = t ? `?${new URLSearchParams(t)}` : "", s = o ? `${o}/${e}${a}` : `${e}${a}`;
|
|
484
|
+
L(`Making DELETE request to: ${s}`);
|
|
413
485
|
try {
|
|
414
|
-
const
|
|
486
|
+
const c = await fetch(s, {
|
|
415
487
|
method: "DELETE",
|
|
416
488
|
credentials: "include",
|
|
417
489
|
headers: n
|
|
418
490
|
});
|
|
419
|
-
return P(
|
|
420
|
-
} catch (
|
|
421
|
-
throw f("Error making DELETE request:",
|
|
491
|
+
return P(c, r?.responseType);
|
|
492
|
+
} catch (c) {
|
|
493
|
+
throw f("Error making DELETE request:", c), c;
|
|
422
494
|
}
|
|
423
495
|
}
|
|
424
|
-
async function
|
|
425
|
-
const n =
|
|
496
|
+
async function _(e, t, r) {
|
|
497
|
+
const n = $(r?.headers), { backendUrl: o } = l, a = t ? `?${new URLSearchParams(t)}` : "";
|
|
426
498
|
e.startsWith("plugin") && (e = `api/v1/${e}`);
|
|
427
499
|
const s = o ? `${o}/${e}${a}` : `${e}${a}`;
|
|
428
|
-
|
|
500
|
+
L(`Making GET request to: ${s}`);
|
|
429
501
|
try {
|
|
430
|
-
const
|
|
502
|
+
const c = await fetch(s, {
|
|
431
503
|
method: "GET",
|
|
432
504
|
credentials: "include",
|
|
433
505
|
headers: n,
|
|
434
506
|
signal: r?.signal
|
|
435
507
|
});
|
|
436
|
-
return P(
|
|
437
|
-
} catch (
|
|
438
|
-
throw f("Error making GET request:",
|
|
508
|
+
return P(c, r?.responseType);
|
|
509
|
+
} catch (c) {
|
|
510
|
+
throw f("Error making GET request:", c), c;
|
|
439
511
|
}
|
|
440
512
|
}
|
|
441
|
-
async function
|
|
442
|
-
const n =
|
|
513
|
+
async function ve(e, t, r) {
|
|
514
|
+
const n = $(r?.headers);
|
|
443
515
|
n.append("content-type", "application/json");
|
|
444
|
-
const { app: o, backendUrl: a } =
|
|
516
|
+
const { app: o, backendUrl: a } = l, s = {
|
|
445
517
|
app: o,
|
|
446
518
|
...t,
|
|
447
519
|
locale: t.locale || navigator.language,
|
|
448
520
|
noUserOverride: !0,
|
|
449
521
|
noAutoAuthentication: !0
|
|
450
|
-
},
|
|
451
|
-
|
|
522
|
+
}, c = a ? `${a}/${e}` : `${e}`;
|
|
523
|
+
L(`Making PATCH request to: ${c}`);
|
|
452
524
|
try {
|
|
453
|
-
const
|
|
525
|
+
const i = await fetch(c, {
|
|
454
526
|
method: "PATCH",
|
|
455
527
|
headers: n,
|
|
456
528
|
credentials: "include",
|
|
457
529
|
body: JSON.stringify(s)
|
|
458
530
|
});
|
|
459
|
-
return P(
|
|
460
|
-
} catch (
|
|
461
|
-
throw f("Error making PATCH request:",
|
|
531
|
+
return P(i, r?.responseType);
|
|
532
|
+
} catch (i) {
|
|
533
|
+
throw f("Error making PATCH request:", i), i;
|
|
462
534
|
}
|
|
463
535
|
}
|
|
464
|
-
async function
|
|
465
|
-
const n =
|
|
536
|
+
async function u(e, t, r) {
|
|
537
|
+
const n = $(r?.headers), { app: o, backendUrl: a } = l;
|
|
466
538
|
n.has("Content-Type") || n.set("Content-Type", "application/json");
|
|
467
539
|
const s = {
|
|
468
540
|
app: o,
|
|
@@ -472,64 +544,64 @@ async function l(e, t, r) {
|
|
|
472
544
|
noAutoAuthentication: !0
|
|
473
545
|
};
|
|
474
546
|
e.startsWith("plugin") && (e = `api/v1/${e}`);
|
|
475
|
-
const
|
|
476
|
-
|
|
547
|
+
const c = a ? `${a}/${e}` : `${e}`;
|
|
548
|
+
L(`Making POST request to: ${c}`);
|
|
477
549
|
try {
|
|
478
|
-
const
|
|
550
|
+
const i = await fetch(c, {
|
|
479
551
|
method: "POST",
|
|
480
552
|
headers: n,
|
|
481
553
|
credentials: "include",
|
|
482
554
|
body: JSON.stringify(s),
|
|
483
555
|
signal: r?.signal
|
|
484
556
|
});
|
|
485
|
-
return P(
|
|
486
|
-
} catch (
|
|
487
|
-
throw f("Error making POST request:",
|
|
557
|
+
return P(i, r?.responseType);
|
|
558
|
+
} catch (i) {
|
|
559
|
+
throw f("Error making POST request:", i), i;
|
|
488
560
|
}
|
|
489
561
|
}
|
|
490
|
-
async function
|
|
491
|
-
const n =
|
|
562
|
+
async function Ft(e, t, r) {
|
|
563
|
+
const n = $(r?.headers), { app: o, backendUrl: a } = l, s = {
|
|
492
564
|
app: o,
|
|
493
565
|
...t,
|
|
494
566
|
locale: t.locale || navigator.language,
|
|
495
567
|
noUserOverride: !0,
|
|
496
568
|
noAutoAuthentication: !0
|
|
497
|
-
},
|
|
498
|
-
|
|
569
|
+
}, c = `${a}/${e}`;
|
|
570
|
+
L(`Making PUT request to: ${c}`);
|
|
499
571
|
try {
|
|
500
|
-
const
|
|
572
|
+
const i = await fetch(c, {
|
|
501
573
|
method: "PUT",
|
|
502
574
|
headers: n,
|
|
503
575
|
credentials: "include",
|
|
504
576
|
body: JSON.stringify(s)
|
|
505
577
|
});
|
|
506
|
-
return P(
|
|
507
|
-
} catch (
|
|
508
|
-
throw f("Error making PUT request:",
|
|
578
|
+
return P(i, r?.responseType);
|
|
579
|
+
} catch (i) {
|
|
580
|
+
throw f("Error making PUT request:", i), i;
|
|
509
581
|
}
|
|
510
582
|
}
|
|
511
583
|
function b(e) {
|
|
512
584
|
const t = new AbortController(), { signal: r } = t;
|
|
513
585
|
return e && setTimeout(() => {
|
|
514
|
-
r.aborted || t.abort(new
|
|
586
|
+
r.aborted || t.abort(new Se(`Request timed out after ${e}ms`));
|
|
515
587
|
}, e), { controller: t, signal: r };
|
|
516
588
|
}
|
|
517
|
-
function
|
|
589
|
+
function oe(e) {
|
|
518
590
|
if (!e) return;
|
|
519
591
|
const t = new Date(e);
|
|
520
592
|
return Number.isNaN(t.getTime()) ? void 0 : t;
|
|
521
593
|
}
|
|
522
|
-
function
|
|
523
|
-
const t =
|
|
594
|
+
function Bt(e) {
|
|
595
|
+
const t = oe(e);
|
|
524
596
|
return !!t && t.getTime() <= Date.now();
|
|
525
597
|
}
|
|
526
|
-
function
|
|
527
|
-
const r =
|
|
598
|
+
function Mt(e, t = 7) {
|
|
599
|
+
const r = oe(e);
|
|
528
600
|
if (!r) return !1;
|
|
529
601
|
const n = Date.now(), o = n + t * 24 * 60 * 60 * 1e3, a = r.getTime();
|
|
530
602
|
return a > n && a <= o;
|
|
531
603
|
}
|
|
532
|
-
async function
|
|
604
|
+
async function jt(e, t = 0, r = 1e3) {
|
|
533
605
|
let n;
|
|
534
606
|
for (let o = 0; o <= t; o++)
|
|
535
607
|
try {
|
|
@@ -537,26 +609,26 @@ async function At(e, t = 0, r = 1e3) {
|
|
|
537
609
|
} catch (a) {
|
|
538
610
|
if (n = a, a instanceof R && a.status >= 400 && a.status < 500 && a.status !== 429 || a instanceof DOMException && a.name === "AbortError")
|
|
539
611
|
throw a;
|
|
540
|
-
o < t && (
|
|
612
|
+
o < t && (I(`Retrying request (${o + 1}/${t})`, { error: a }), await new Promise((s) => setTimeout(s, r)));
|
|
541
613
|
}
|
|
542
614
|
throw n;
|
|
543
615
|
}
|
|
544
|
-
function
|
|
616
|
+
function Qt(e, t, r) {
|
|
545
617
|
if (!e || !t) return;
|
|
546
618
|
if (r) {
|
|
547
|
-
const a = Object.keys(t.queries).find((
|
|
619
|
+
const a = Object.keys(t.queries).find((i) => i === r?.toLowerCase());
|
|
548
620
|
let s;
|
|
549
621
|
a && (s = t.queries[a]);
|
|
550
|
-
const
|
|
551
|
-
if (
|
|
622
|
+
const c = (s?.columnsInfo?.columns || [])?.find((i) => i.aliases?.split(",")?.includes(e));
|
|
623
|
+
if (c) return c.name;
|
|
552
624
|
}
|
|
553
625
|
const n = t.indexes?._?.columns, o = Object.entries(n).find((a) => a[1].aliases?.includes(e));
|
|
554
626
|
if (o) return o[0];
|
|
555
627
|
}
|
|
556
|
-
var C = /* @__PURE__ */ ((e) => (e.None = "None", e.Search_FirstPage = "Search_FirstPage", e.Search_Text = "Search_Text", e.Search_Refine = "Search_Refine", e.Search_Select_Item = "Search_Select_Item", e.Search_Select_Custom = "Search_Select_Custom", e.Search_Select_Concept = "Search_Select_Concept", e.Search_Select_Correction = "Search_Select_Correction", e.Search_GotoPage = "Search_GotoPage", e.Search_GotoTab = "Search_GotoTab", e.Search_DisplayResult = "Search_DisplayResult", e.Search_RemoveResult = "Search_RemoveResult", e.Search_RemoveAdvanced = "Search_RemoveAdvanced", e.Search_SavedQuery = "Search_SavedQuery", e.Search_WebService = "Search_WebService", e.Search_DidYouMean_Original = "Search_DidYouMean_Original", e.Search_DidYouMean_Correction = "Search_DidYouMean_Correction", e.Search_ExportCSV = "Search_ExportCSV", e.Search_SavedQuery_ExportCSV = "Search_SavedQuery_ExportCSV", e.Search_Selection_ExportCSV = "Search_Selection_ExportCSV", e.Search_AlertQuery = "Search_AlertQuery", e.Search_Select_AnalyticsItem = "Search_Select_AnalyticsItem", e.Search_Sort = "Search_Sort", e.Search_Exit_Logout = "Search_Exit_Logout", e.Search_Timeline_Usage = "Search_Timeline_Usage", e.Search_AutoComplete = "Search_Autocomplete", e.Search_Login_Success = "Login_Success_Form", e.Search_QueryIntent_Detected = "Search_QueryIntent_Detected", e.SavedQuery_Add = "SavedQuery_Add", e.SavedQuery_Delete = "SavedQuery_Delete", e.SavedQuery_DeleteAll = "SavedQuery_DeleteAll", e.SavedQuery_Rename = "SavedQuery_Rename", e.Alert_Edit = "Alert_Edit", e.Alert_Delete = "Alert_Delete", e.Alert_DeleteAll = "Alert_DeleteAll", e.Link_Display = "Link_Display", e.Link_Click = "Link_Click", e.Basket_Add = "Basket_Add", e.Basket_Delete = "Basket_Delete", e.Basket_DeleteAll = "Basket_DeleteAll", e.Basket_Rename = "Basket_Rename", e.Basket_AddDoc = "Basket_AddDoc", e.Basket_RemoveDoc = "Basket_RemoveDoc", e.Basket_Open = "Basket_Open", e.Basket_ExportCSV = "Basket_ExportCSV", e.Label_Add = "Label_Add", e.Label_Delete = "Label_Delete", e.Label_Rename = "Label_Rename", e.Label_Open = "Label_Open", e.Label_AddDoc = "Label_AddDoc", e.Label_RemoveDoc = "Label_RemoveDoc", e.Label_ExportCSV = "Label_ExportCSV", e.Label_Menu_ExportCSV = "Label_Menu_ExportCSV", e.Rating_Set = "Rating_Set", e.Rating_Delete = "Rating_Delete", e.Doc_Preview = "Doc_Preview", e.Doc_CacheHtml = "Doc_CacheHtml", e.Doc_CachePdf = "Doc_CachePdf", e.Doc_CacheOriginal = "Doc_CacheOriginal", e.Doc_Url1 = "Doc_Url1", e.Doc_Url2 = "Doc_Url2", e.Preview_Close = "Preview_Close", e.Click_ResultLink = "Click_ResultLink", e.Click_ResultLink1 = "Click_ResultLink1", e.Click_ResultLink2 = "Click_ResultLink2", e.Click_ResultLink3 = "Click_ResultLink3", e.Click_ResultLink4 = "Click_ResultLink4", e.Click_ResultLink5 = "Click_ResultLink5", e.Click_ResultLink6 = "Click_ResultLink6", e.Click_ResultLink7 = "Click_ResultLink7", e.Click_ResultLink8 = "Click_ResultLink8", e.Click_ResultLink9 = "Click_ResultLink9", e.Click_ResultLink10 = "Click_ResultLink10", e.Click_PreviewLink1 = "Click_PreviewLink1", e.Click_PreviewLink2 = "Click_PreviewLink2", e.Click_PreviewLink3 = "Click_PreviewLink3", e.Click_PreviewLink4 = "Click_PreviewLink4", e.Click_PreviewLink5 = "Click_PreviewLink5", e.Click_PreviewLink6 = "Click_PreviewLink6", e.Click_PreviewLink7 = "Click_PreviewLink7", e.Click_PreviewLink8 = "Click_PreviewLink8", e.Click_PreviewLink9 = "Click_PreviewLink9", e.Click_PreviewLink10 = "Click_PreviewLink10", e.RFM_ClickSet = "RFM_ClickSet", e.RFM_ClickReset = "RFM_ClickReset", e.RFM_Like = "RFM_Like", e.RFM_LikeReset = "RFM_LikeReset", e.RFM_Dislike = "RFM_Dislike", e.RFM_Important = "RFM_Important", e.RFM_ImportantReset = "RFM_ImportantReset", e.RFM_Ban = "RFM_Ban", e.Navigation_Exit = "Navigation_Exit", e.Navigation_Return = "Navigation_Return", e.Navigation_Route = "Navigation_Route", e.Answer_Display = "Answer_Display", e.Answer_Click = "Answer_Click", e.Answer_Result = "Answer_Result", e.Answer_Liked = "Answer_Liked", e.Answer_Disliked = "Answer_Disliked", e.Answer_Liked_Cancelled = "Answer_Liked_Cancelled", e.Answer_Disliked_Cancelled = "Answer_Disliked_Cancelled", e.TopPassages_Display = "TopPassages_Display", e.TopPassages_Click = "TopPassages_Click", e.UserSettings_Reset = "UserSettings_Reset", e.Change_Password_Failed = "change.password.failed", e.Change_Password_Success_Form = "change.password.success.form", e.Forgot_Password_Request = "forgot.password.request", e.Login_Denied = "login.denied", e.Login_Success_Form = "login.success.form", e.Send_Reset_Password_Link = "send.reset.password.link", e.Xrest_ChangePassword = "xrest.changepassword", e))(C || {}), h = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.bool = 1] = "bool", e[e.date = 2] = "date", e[e.dateTime = 3] = "dateTime", e[e.time = 4] = "time", e[e.unsigned = 5] = "unsigned", e[e.integer = 6] = "integer", e[e.float = 7] = "float", e[e.double = 8] = "double", e[e.dates = 9] = "dates", e[e.dateTimes = 10] = "dateTimes", e[e.times = 11] = "times", e[e.varchar = 12] = "varchar", e[e.binary = 13] = "binary", e[e.string = 14] = "string", e[e.csv = 15] = "csv", e))(h || {}),
|
|
557
|
-
const
|
|
558
|
-
var
|
|
559
|
-
function
|
|
628
|
+
var C = /* @__PURE__ */ ((e) => (e.None = "None", e.Search_FirstPage = "Search_FirstPage", e.Search_Text = "Search_Text", e.Search_Refine = "Search_Refine", e.Search_Select_Item = "Search_Select_Item", e.Search_Select_Custom = "Search_Select_Custom", e.Search_Select_Concept = "Search_Select_Concept", e.Search_Select_Correction = "Search_Select_Correction", e.Search_GotoPage = "Search_GotoPage", e.Search_GotoTab = "Search_GotoTab", e.Search_DisplayResult = "Search_DisplayResult", e.Search_RemoveResult = "Search_RemoveResult", e.Search_RemoveAdvanced = "Search_RemoveAdvanced", e.Search_SavedQuery = "Search_SavedQuery", e.Search_WebService = "Search_WebService", e.Search_DidYouMean_Original = "Search_DidYouMean_Original", e.Search_DidYouMean_Correction = "Search_DidYouMean_Correction", e.Search_ExportCSV = "Search_ExportCSV", e.Search_SavedQuery_ExportCSV = "Search_SavedQuery_ExportCSV", e.Search_Selection_ExportCSV = "Search_Selection_ExportCSV", e.Search_AlertQuery = "Search_AlertQuery", e.Search_Select_AnalyticsItem = "Search_Select_AnalyticsItem", e.Search_Sort = "Search_Sort", e.Search_Exit_Logout = "Search_Exit_Logout", e.Search_Timeline_Usage = "Search_Timeline_Usage", e.Search_AutoComplete = "Search_Autocomplete", e.Search_Login_Success = "Login_Success_Form", e.Search_QueryIntent_Detected = "Search_QueryIntent_Detected", e.SavedQuery_Add = "SavedQuery_Add", e.SavedQuery_Delete = "SavedQuery_Delete", e.SavedQuery_DeleteAll = "SavedQuery_DeleteAll", e.SavedQuery_Rename = "SavedQuery_Rename", e.Alert_Edit = "Alert_Edit", e.Alert_Delete = "Alert_Delete", e.Alert_DeleteAll = "Alert_DeleteAll", e.Link_Display = "Link_Display", e.Link_Click = "Link_Click", e.Basket_Add = "Basket_Add", e.Basket_Delete = "Basket_Delete", e.Basket_DeleteAll = "Basket_DeleteAll", e.Basket_Rename = "Basket_Rename", e.Basket_AddDoc = "Basket_AddDoc", e.Basket_RemoveDoc = "Basket_RemoveDoc", e.Basket_Open = "Basket_Open", e.Basket_ExportCSV = "Basket_ExportCSV", e.Label_Add = "Label_Add", e.Label_Delete = "Label_Delete", e.Label_Rename = "Label_Rename", e.Label_Open = "Label_Open", e.Label_AddDoc = "Label_AddDoc", e.Label_RemoveDoc = "Label_RemoveDoc", e.Label_ExportCSV = "Label_ExportCSV", e.Label_Menu_ExportCSV = "Label_Menu_ExportCSV", e.Rating_Set = "Rating_Set", e.Rating_Delete = "Rating_Delete", e.Doc_Preview = "Doc_Preview", e.Doc_CacheHtml = "Doc_CacheHtml", e.Doc_CachePdf = "Doc_CachePdf", e.Doc_CacheOriginal = "Doc_CacheOriginal", e.Doc_Url1 = "Doc_Url1", e.Doc_Url2 = "Doc_Url2", e.Preview_Close = "Preview_Close", e.Click_ResultLink = "Click_ResultLink", e.Click_ResultLink1 = "Click_ResultLink1", e.Click_ResultLink2 = "Click_ResultLink2", e.Click_ResultLink3 = "Click_ResultLink3", e.Click_ResultLink4 = "Click_ResultLink4", e.Click_ResultLink5 = "Click_ResultLink5", e.Click_ResultLink6 = "Click_ResultLink6", e.Click_ResultLink7 = "Click_ResultLink7", e.Click_ResultLink8 = "Click_ResultLink8", e.Click_ResultLink9 = "Click_ResultLink9", e.Click_ResultLink10 = "Click_ResultLink10", e.Click_PreviewLink1 = "Click_PreviewLink1", e.Click_PreviewLink2 = "Click_PreviewLink2", e.Click_PreviewLink3 = "Click_PreviewLink3", e.Click_PreviewLink4 = "Click_PreviewLink4", e.Click_PreviewLink5 = "Click_PreviewLink5", e.Click_PreviewLink6 = "Click_PreviewLink6", e.Click_PreviewLink7 = "Click_PreviewLink7", e.Click_PreviewLink8 = "Click_PreviewLink8", e.Click_PreviewLink9 = "Click_PreviewLink9", e.Click_PreviewLink10 = "Click_PreviewLink10", e.RFM_ClickSet = "RFM_ClickSet", e.RFM_ClickReset = "RFM_ClickReset", e.RFM_Like = "RFM_Like", e.RFM_LikeReset = "RFM_LikeReset", e.RFM_Dislike = "RFM_Dislike", e.RFM_Important = "RFM_Important", e.RFM_ImportantReset = "RFM_ImportantReset", e.RFM_Ban = "RFM_Ban", e.Navigation_Exit = "Navigation_Exit", e.Navigation_Return = "Navigation_Return", e.Navigation_Route = "Navigation_Route", e.Answer_Display = "Answer_Display", e.Answer_Click = "Answer_Click", e.Answer_Result = "Answer_Result", e.Answer_Liked = "Answer_Liked", e.Answer_Disliked = "Answer_Disliked", e.Answer_Liked_Cancelled = "Answer_Liked_Cancelled", e.Answer_Disliked_Cancelled = "Answer_Disliked_Cancelled", e.TopPassages_Display = "TopPassages_Display", e.TopPassages_Click = "TopPassages_Click", e.UserSettings_Reset = "UserSettings_Reset", e.Change_Password_Failed = "change.password.failed", e.Change_Password_Success_Form = "change.password.success.form", e.Forgot_Password_Request = "forgot.password.request", e.Login_Denied = "login.denied", e.Login_Success_Form = "login.success.form", e.Send_Reset_Password_Link = "send.reset.password.link", e.Xrest_ChangePassword = "xrest.changepassword", e))(C || {}), h = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.bool = 1] = "bool", e[e.date = 2] = "date", e[e.dateTime = 3] = "dateTime", e[e.time = 4] = "time", e[e.unsigned = 5] = "unsigned", e[e.integer = 6] = "integer", e[e.float = 7] = "float", e[e.double = 8] = "double", e[e.dates = 9] = "dates", e[e.dateTimes = 10] = "dateTimes", e[e.times = 11] = "times", e[e.varchar = 12] = "varchar", e[e.binary = 13] = "binary", e[e.string = 14] = "string", e[e.csv = 15] = "csv", e))(h || {}), w = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.a = 2053] = "a", e[e.c = 4] = "c", e[e.d = 8] = "d", e[e.e = 2068] = "e", e[e.i = 256] = "i", e[e.l = 2052] = "l", e[e.n = 8192] = "n", e[e.t = 524292] = "t", e[e.x = 8388608] = "x", e[e.z = 33554432] = "z", e[e.f_ordinal = 8192] = "f_ordinal", e[e.f_multidates = 8192] = "f_multidates", e[e.f_varchar = 33554432] = "f_varchar", e[e.f_binary = 33562624] = "f_binary", e[e.f_string = 33562888] = "f_string", e[e.f_csv = 42477853] = "f_csv", e[e.f_overridable = 33554696] = "f_overridable", e))(w || {});
|
|
629
|
+
const Vt = "1.0";
|
|
630
|
+
var Ce = /* @__PURE__ */ ((e) => (e[e.Original = 0] = "Original", e[e.Corrected = 1] = "Corrected", e))(Ce || {}), Re = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.positiveRate = 1] = "positiveRate", e[e.mainlyPosRate = 2] = "mainlyPosRate", e[e.unrate = 4] = "unrate", e[e.mainlyNegRate = 8] = "mainlyNegRate", e[e.negativeRate = 16] = "negativeRate", e[e.all = 31] = "all", e[e.positiveOnly = 7] = "positiveOnly", e[e.negativeOnly = 28] = "negativeOnly", e[e.personalAll = 21] = "personalAll", e[e.personalPosOnly = 5] = "personalPosOnly", e[e.personalNegOnly = 20] = "personalNegOnly", e))(Re || {});
|
|
631
|
+
function Pe(e) {
|
|
560
632
|
if (!e)
|
|
561
633
|
return h.none;
|
|
562
634
|
switch (e.toLocaleLowerCase()) {
|
|
@@ -595,41 +667,41 @@ function Ce(e) {
|
|
|
595
667
|
return h.none;
|
|
596
668
|
}
|
|
597
669
|
}
|
|
598
|
-
function
|
|
670
|
+
function ye(e) {
|
|
599
671
|
switch (e) {
|
|
600
672
|
case "a":
|
|
601
|
-
return
|
|
673
|
+
return w.a;
|
|
602
674
|
case "c":
|
|
603
|
-
return
|
|
675
|
+
return w.c;
|
|
604
676
|
case "d":
|
|
605
|
-
return
|
|
677
|
+
return w.d;
|
|
606
678
|
case "e":
|
|
607
|
-
return
|
|
679
|
+
return w.e;
|
|
608
680
|
case "i":
|
|
609
|
-
return
|
|
681
|
+
return w.i;
|
|
610
682
|
case "l":
|
|
611
|
-
return
|
|
683
|
+
return w.l;
|
|
612
684
|
case "n":
|
|
613
|
-
return
|
|
685
|
+
return w.n;
|
|
614
686
|
case "t":
|
|
615
|
-
return
|
|
687
|
+
return w.t;
|
|
616
688
|
case "x":
|
|
617
|
-
return
|
|
689
|
+
return w.x;
|
|
618
690
|
case "z":
|
|
619
|
-
return
|
|
691
|
+
return w.z;
|
|
620
692
|
default:
|
|
621
|
-
return
|
|
693
|
+
return w.none;
|
|
622
694
|
}
|
|
623
695
|
}
|
|
624
|
-
function
|
|
625
|
-
let t =
|
|
696
|
+
function xe(e) {
|
|
697
|
+
let t = w.none;
|
|
626
698
|
if (e)
|
|
627
699
|
for (const r of e)
|
|
628
|
-
t |=
|
|
700
|
+
t |= ye(r);
|
|
629
701
|
return t;
|
|
630
702
|
}
|
|
631
|
-
function
|
|
632
|
-
const o =
|
|
703
|
+
function p(e, t, r, n) {
|
|
704
|
+
const o = Pe(t), a = xe(r || "");
|
|
633
705
|
return {
|
|
634
706
|
name: e,
|
|
635
707
|
type: t,
|
|
@@ -639,29 +711,29 @@ function g(e, t, r, n) {
|
|
|
639
711
|
aliases: n
|
|
640
712
|
};
|
|
641
713
|
}
|
|
642
|
-
const
|
|
643
|
-
id:
|
|
644
|
-
text:
|
|
645
|
-
documentlanguages:
|
|
646
|
-
databasealias:
|
|
647
|
-
globalrelevance:
|
|
648
|
-
matchingpartnames:
|
|
649
|
-
matchlocations:
|
|
650
|
-
matchlocationsperpartname:
|
|
714
|
+
const Gt = {
|
|
715
|
+
id: p("id", "string"),
|
|
716
|
+
text: p("text", "varchar"),
|
|
717
|
+
documentlanguages: p("documentlanguages", "csv", "ci", ["language"]),
|
|
718
|
+
databasealias: p("databasealias", "varchar"),
|
|
719
|
+
globalrelevance: p("globalrelevance", "double"),
|
|
720
|
+
matchingpartnames: p("matchingpartnames", "csv"),
|
|
721
|
+
matchlocations: p("matchlocations", "csv"),
|
|
722
|
+
matchlocationsperpartname: p("matchlocationsperpartname", "varchar"),
|
|
651
723
|
// json
|
|
652
|
-
extracts:
|
|
653
|
-
extractsperpartname:
|
|
724
|
+
extracts: p("extracts", "csv"),
|
|
725
|
+
extractsperpartname: p("extractsperpartname", "varchar"),
|
|
654
726
|
// json
|
|
655
|
-
extractslocations:
|
|
656
|
-
documentweight:
|
|
657
|
-
groupcount:
|
|
658
|
-
accesslists:
|
|
727
|
+
extractslocations: p("extractslocations", "csv"),
|
|
728
|
+
documentweight: p("documentweight", "varchar"),
|
|
729
|
+
groupcount: p("groupcount", "integer"),
|
|
730
|
+
accesslists: p("accesslists", "varchar", void 0, ["accessLists"])
|
|
659
731
|
// json
|
|
660
732
|
};
|
|
661
|
-
function
|
|
733
|
+
function ae(e) {
|
|
662
734
|
return e.filter((t) => !!t);
|
|
663
735
|
}
|
|
664
|
-
const
|
|
736
|
+
const zt = {
|
|
665
737
|
// ── Scalar (leaf) operators ───────────────────────────────────────────────
|
|
666
738
|
/** `field = value`. */
|
|
667
739
|
eq: (e, t) => ({
|
|
@@ -743,23 +815,23 @@ const Bt = {
|
|
|
743
815
|
* Combine filters with logical AND. Falsy operands are ignored; with a single
|
|
744
816
|
* effective operand the operand is returned as-is, with none `undefined`.
|
|
745
817
|
*/
|
|
746
|
-
and: (...e) =>
|
|
818
|
+
and: (...e) => ee("and", e),
|
|
747
819
|
/** Combine filters with logical OR. Same collapsing rules as {@link filter.and}. */
|
|
748
|
-
or: (...e) =>
|
|
820
|
+
or: (...e) => ee("or", e),
|
|
749
821
|
/**
|
|
750
822
|
* Negate filters. Falsy operands are ignored; returns `undefined` if nothing
|
|
751
823
|
* remains. A `not` node is always kept (even with a single operand).
|
|
752
824
|
*/
|
|
753
825
|
not: (...e) => {
|
|
754
|
-
const t =
|
|
826
|
+
const t = ae(e);
|
|
755
827
|
return t.length ? { operator: "not", filters: t } : void 0;
|
|
756
828
|
}
|
|
757
829
|
};
|
|
758
|
-
function
|
|
759
|
-
const r =
|
|
830
|
+
function ee(e, t) {
|
|
831
|
+
const r = ae(t);
|
|
760
832
|
return r.length === 0 ? void 0 : r.length === 1 ? r[0] : { operator: e, filters: r };
|
|
761
833
|
}
|
|
762
|
-
function
|
|
834
|
+
function Ht(e, t) {
|
|
763
835
|
let r = e[t];
|
|
764
836
|
return r === void 0 ? [] : (typeof r == "string" && (r = String(r).split(",")), Array.isArray(r) ? r.map((n) => {
|
|
765
837
|
if (typeof n == "string") return n.trim();
|
|
@@ -767,7 +839,7 @@ function jt(e, t) {
|
|
|
767
839
|
return n.display.trim();
|
|
768
840
|
}).filter((n) => n !== void 0) : [String(r).trim()]);
|
|
769
841
|
}
|
|
770
|
-
function
|
|
842
|
+
function Jt(e, t) {
|
|
771
843
|
let r = e[t];
|
|
772
844
|
if (r === void 0) return [];
|
|
773
845
|
if (typeof r == "string" && (r = String(r).split(",")), Array.isArray(r))
|
|
@@ -784,35 +856,35 @@ function Qt(e, t) {
|
|
|
784
856
|
const n = String(r).trim();
|
|
785
857
|
return [{ display: n, value: n }];
|
|
786
858
|
}
|
|
787
|
-
function
|
|
859
|
+
function F(e) {
|
|
788
860
|
return e !== null && typeof e == "object";
|
|
789
861
|
}
|
|
790
|
-
function
|
|
791
|
-
return
|
|
862
|
+
function Le(e) {
|
|
863
|
+
return F(e) && Object.prototype.toString.call(e) === "[object ArrayBuffer]";
|
|
792
864
|
}
|
|
793
|
-
function
|
|
794
|
-
return
|
|
865
|
+
function $e(e) {
|
|
866
|
+
return F(e) && Object.prototype.toString.call(e) === "[object Blob]";
|
|
795
867
|
}
|
|
796
|
-
function
|
|
868
|
+
function Ue(e) {
|
|
797
869
|
return Object.prototype.toString.call(e) === "[object Date]";
|
|
798
870
|
}
|
|
799
871
|
function Oe(e) {
|
|
800
872
|
return typeof e == "string";
|
|
801
873
|
}
|
|
802
|
-
function
|
|
803
|
-
return (
|
|
874
|
+
function Wt(e) {
|
|
875
|
+
return (F(e) || Array.isArray(e)) && !Le(e) && !$e(e) && !Oe(e);
|
|
804
876
|
}
|
|
805
|
-
function
|
|
877
|
+
function De(e) {
|
|
806
878
|
return e ? (e.getHours() * 60 * 60 + e.getMinutes() * 60 + e.getSeconds()) * 1e3 + e.getMilliseconds() : 0;
|
|
807
879
|
}
|
|
808
|
-
function
|
|
880
|
+
function Ie(e = !0) {
|
|
809
881
|
let t = Date.now();
|
|
810
882
|
return (e ? "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" : "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g, (n) => {
|
|
811
883
|
const o = (t + Math.random() * 16) % 16 | 0;
|
|
812
884
|
return t = Math.floor(t / 16), (n === "x" ? o : o & 3 | 8).toString(16);
|
|
813
885
|
});
|
|
814
886
|
}
|
|
815
|
-
function
|
|
887
|
+
function Xt(e) {
|
|
816
888
|
if (!e)
|
|
817
889
|
return "``";
|
|
818
890
|
if (e = String(e), e.search(/[\\`]/) === -1)
|
|
@@ -824,7 +896,7 @@ function Gt(e) {
|
|
|
824
896
|
}
|
|
825
897
|
return t.push("`"), t.join("");
|
|
826
898
|
}
|
|
827
|
-
function
|
|
899
|
+
function Yt(e) {
|
|
828
900
|
if (typeof crypto < "u" && crypto.subtle && typeof crypto.subtle.digest == "function")
|
|
829
901
|
try {
|
|
830
902
|
return crypto.subtle.digest("SHA-512", new TextEncoder().encode(e)).then(
|
|
@@ -837,23 +909,23 @@ function zt(e) {
|
|
|
837
909
|
}
|
|
838
910
|
function j(e) {
|
|
839
911
|
let n = 2166136261;
|
|
840
|
-
for (let
|
|
841
|
-
n ^= e.charCodeAt(
|
|
842
|
-
const o = n.toString(16).padStart(8, "0"), a = ((n ^ 2863311530) >>> 0).toString(16).padStart(8, "0"), s = ((n ^ 1431655765) >>> 0).toString(16).padStart(8, "0"),
|
|
843
|
-
return (
|
|
912
|
+
for (let k = 0; k < e.length; k++)
|
|
913
|
+
n ^= e.charCodeAt(k), n = n * 16777619 >>> 0;
|
|
914
|
+
const o = n.toString(16).padStart(8, "0"), a = ((n ^ 2863311530) >>> 0).toString(16).padStart(8, "0"), s = ((n ^ 1431655765) >>> 0).toString(16).padStart(8, "0"), c = ((n ^ 3435973836) >>> 0).toString(16).padStart(8, "0"), i = o + a + s + c;
|
|
915
|
+
return (i + i + i + i).substring(0, 128);
|
|
844
916
|
}
|
|
845
|
-
let Q,
|
|
846
|
-
function
|
|
847
|
-
let r =
|
|
848
|
-
r && (
|
|
917
|
+
let Q, se;
|
|
918
|
+
function U(e, t = !0) {
|
|
919
|
+
let r = Ae(e.$auditRecord);
|
|
920
|
+
r && (Ne(r), t && qe(r)), e.$auditRecord = r;
|
|
849
921
|
}
|
|
850
|
-
function
|
|
922
|
+
function Ae(e) {
|
|
851
923
|
if (!e)
|
|
852
924
|
return;
|
|
853
925
|
let t;
|
|
854
926
|
if (Array.isArray(e))
|
|
855
927
|
t = e;
|
|
856
|
-
else if (
|
|
928
|
+
else if (F(e)) {
|
|
857
929
|
const r = e;
|
|
858
930
|
if (r.auditEvents || r.mlAuditEvents)
|
|
859
931
|
return r;
|
|
@@ -861,104 +933,105 @@ function De(e) {
|
|
|
861
933
|
}
|
|
862
934
|
return { auditEvents: t };
|
|
863
935
|
}
|
|
864
|
-
function
|
|
865
|
-
const t =
|
|
936
|
+
function Ne(e) {
|
|
937
|
+
const t = Fe();
|
|
866
938
|
return e.auditEvents?.forEach((r) => {
|
|
867
939
|
r.detail || (r.detail = {}), r.detail.sessionid = t;
|
|
868
940
|
}), e;
|
|
869
941
|
}
|
|
870
|
-
function
|
|
942
|
+
function qe(e) {
|
|
871
943
|
const t = typeof window < "u" ? decodeURIComponent(window.location.href) : "http://localhost";
|
|
872
944
|
return e?.auditEvents?.forEach((r) => {
|
|
873
945
|
r.detail || (r.detail = {}), r.detail.url = t;
|
|
874
946
|
}), e;
|
|
875
947
|
}
|
|
876
|
-
function
|
|
877
|
-
return (!Q ||
|
|
948
|
+
function Fe() {
|
|
949
|
+
return (!Q || Be()) && (Q = Ie()), se = /* @__PURE__ */ new Date(), Q;
|
|
878
950
|
}
|
|
879
|
-
function
|
|
880
|
-
return (/* @__PURE__ */ new Date()).getTime() -
|
|
951
|
+
function Be() {
|
|
952
|
+
return (/* @__PURE__ */ new Date()).getTime() - se.getTime() > 600 * 1e3;
|
|
881
953
|
}
|
|
882
|
-
async function
|
|
954
|
+
async function Me(e, t = !0) {
|
|
883
955
|
const r = {
|
|
884
956
|
event: C.None,
|
|
885
957
|
$auditRecord: e
|
|
886
958
|
};
|
|
887
|
-
return
|
|
959
|
+
return U(r, t), u("api/v1/audit.notify", r);
|
|
888
960
|
}
|
|
889
|
-
const
|
|
890
|
-
async function
|
|
961
|
+
const Kt = { notify: Me };
|
|
962
|
+
async function Zt(e, t, r) {
|
|
891
963
|
const n = e.items?.length || 0, o = 10, a = {
|
|
892
964
|
query: { ...t, action: "aggregate", aggregations: { [e.name]: { skip: n, count: o } } },
|
|
893
965
|
$auditRecord: { auditEvents: [r] }
|
|
894
966
|
};
|
|
895
|
-
|
|
896
|
-
const s = await
|
|
967
|
+
U(a);
|
|
968
|
+
const s = await u("api/v1/query", a), c = await P(s), { aggregations: i } = c, d = i[0];
|
|
897
969
|
return d.$hasMore = d.items.length > o, d.items = [...e.items, ...d.items], Promise.resolve(d);
|
|
898
970
|
}
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
return
|
|
971
|
+
function je(e, t) {
|
|
972
|
+
if (e.authMode?.kind === "credentials") return g.credentials();
|
|
973
|
+
if (e.bearerToken) return g.bearer(e.bearerToken);
|
|
974
|
+
const r = e.autoOAuthProvider || t?.autoOAuthProvider;
|
|
975
|
+
if (r) return g.oauth(r);
|
|
976
|
+
const n = e.autoSAMLProvider || t?.autoSAMLProvider;
|
|
977
|
+
return n ? g.saml(n) : g.unknown();
|
|
978
|
+
}
|
|
979
|
+
async function Et(e) {
|
|
980
|
+
const t = e || l.app, r = new URLSearchParams({ app: t || "" });
|
|
981
|
+
return _("api/v1/app", r);
|
|
902
982
|
}
|
|
903
|
-
async function
|
|
904
|
-
const { app: e } =
|
|
983
|
+
async function Qe() {
|
|
984
|
+
const { app: e } = l, t = new URLSearchParams({
|
|
905
985
|
app: e || "",
|
|
906
986
|
preLogin: "true"
|
|
907
987
|
});
|
|
908
|
-
return
|
|
988
|
+
return _("api/v1/app", t);
|
|
909
989
|
}
|
|
910
|
-
function
|
|
911
|
-
let { backendUrl: e, app: t
|
|
990
|
+
function Ve() {
|
|
991
|
+
let { backendUrl: e, app: t } = l;
|
|
912
992
|
if (typeof window < "u") {
|
|
913
993
|
if (e || (e = window.location.origin), !t) {
|
|
914
|
-
const
|
|
994
|
+
const r = window.location.pathname.match(
|
|
915
995
|
/\/app(?:-debug)?\/([^/#]+)/
|
|
916
996
|
);
|
|
917
|
-
|
|
997
|
+
r && (t = r[1]);
|
|
918
998
|
}
|
|
919
|
-
|
|
920
|
-
...u,
|
|
921
|
-
backendUrl: e,
|
|
922
|
-
app: t
|
|
923
|
-
});
|
|
999
|
+
S({ backendUrl: e, app: t });
|
|
924
1000
|
}
|
|
925
|
-
return
|
|
926
|
-
|
|
927
|
-
useCredentials: !0,
|
|
928
|
-
useSSO: !1,
|
|
1001
|
+
return l.authMode?.kind === "credentials" ? (S({
|
|
1002
|
+
authMode: g.credentials(),
|
|
929
1003
|
autoOAuthProvider: void 0,
|
|
930
1004
|
autoSAMLProvider: void 0,
|
|
931
|
-
bearerToken: void 0
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
autoOAuthProvider:
|
|
938
|
-
autoSAMLProvider:
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}).catch((n) => {
|
|
943
|
-
throw f("atomic:fetchAppPreLogin error", n), n;
|
|
1005
|
+
bearerToken: void 0
|
|
1006
|
+
}), Promise.resolve({})) : Qe().then((r) => {
|
|
1007
|
+
const n = je(l, r);
|
|
1008
|
+
return S({
|
|
1009
|
+
authMode: n,
|
|
1010
|
+
// Persist the resolved providers as inputs so login()/redirect helpers can read them.
|
|
1011
|
+
autoOAuthProvider: l.autoOAuthProvider || r.autoOAuthProvider,
|
|
1012
|
+
autoSAMLProvider: l.autoSAMLProvider || r.autoSAMLProvider
|
|
1013
|
+
}), r;
|
|
1014
|
+
}).catch((r) => {
|
|
1015
|
+
throw f("atomic:fetchAppPreLogin error", r), r;
|
|
944
1016
|
});
|
|
945
1017
|
}
|
|
946
|
-
|
|
947
|
-
|
|
1018
|
+
const Tt = Ve;
|
|
1019
|
+
async function er(e, t, r = {}) {
|
|
1020
|
+
const n = `api/v1/search.dataset/${e}/${t}`, o = await u(n, { parameters: r }), a = t[0].toLowerCase() + t.slice(1), s = o.datasets[a];
|
|
948
1021
|
if ("errorCode" in s && "errorMessage" in s)
|
|
949
1022
|
throw new Error(s.errorMessage);
|
|
950
1023
|
return s;
|
|
951
1024
|
}
|
|
952
|
-
async function
|
|
1025
|
+
async function tr(e, t) {
|
|
953
1026
|
const r = `api/v1/search.dataset/${e}`, { parameters: n = {}, datasets: o = [] } = t;
|
|
954
|
-
return (await
|
|
1027
|
+
return (await u(r, { parameters: n, datasets: o })).datasets;
|
|
955
1028
|
}
|
|
956
|
-
async function
|
|
957
|
-
return await
|
|
1029
|
+
async function rr(e) {
|
|
1030
|
+
return await _(`api/v1/search.dataset/${e}`);
|
|
958
1031
|
}
|
|
959
|
-
async function
|
|
1032
|
+
async function nr(e, t = !0, r) {
|
|
960
1033
|
try {
|
|
961
|
-
return (await
|
|
1034
|
+
return (await u("api/v1/labels", {
|
|
962
1035
|
action: "list",
|
|
963
1036
|
q: e,
|
|
964
1037
|
public: t,
|
|
@@ -969,18 +1042,18 @@ async function Zt(e, t = !0, r) {
|
|
|
969
1042
|
throw f("Error in fetchLabels", n), n;
|
|
970
1043
|
}
|
|
971
1044
|
}
|
|
972
|
-
async function
|
|
1045
|
+
async function Ge() {
|
|
973
1046
|
try {
|
|
974
|
-
const { app: e = "" } =
|
|
1047
|
+
const { app: e = "" } = l, t = new URLSearchParams({
|
|
975
1048
|
app: e,
|
|
976
1049
|
action: "getUserRights"
|
|
977
1050
|
});
|
|
978
|
-
return
|
|
1051
|
+
return _("api/v1/labels", t);
|
|
979
1052
|
} catch (e) {
|
|
980
1053
|
throw f("Error in getUserRights", e), e;
|
|
981
1054
|
}
|
|
982
1055
|
}
|
|
983
|
-
async function
|
|
1056
|
+
async function ze(e, t, r = !0) {
|
|
984
1057
|
try {
|
|
985
1058
|
const n = {
|
|
986
1059
|
action: "add",
|
|
@@ -1006,12 +1079,12 @@ async function Qe(e, t, r = !0) {
|
|
|
1006
1079
|
]
|
|
1007
1080
|
}
|
|
1008
1081
|
};
|
|
1009
|
-
return
|
|
1082
|
+
return u("api/v1/labels", n);
|
|
1010
1083
|
} catch (n) {
|
|
1011
1084
|
throw f("Error in add", n), n;
|
|
1012
1085
|
}
|
|
1013
1086
|
}
|
|
1014
|
-
async function
|
|
1087
|
+
async function He(e, t, r = !0) {
|
|
1015
1088
|
try {
|
|
1016
1089
|
const n = {
|
|
1017
1090
|
action: "remove",
|
|
@@ -1037,12 +1110,12 @@ async function Ve(e, t, r = !0) {
|
|
|
1037
1110
|
]
|
|
1038
1111
|
}
|
|
1039
1112
|
};
|
|
1040
|
-
return
|
|
1113
|
+
return u("api/v1/labels", n);
|
|
1041
1114
|
} catch (n) {
|
|
1042
1115
|
throw f("Error in remove", n), n;
|
|
1043
1116
|
}
|
|
1044
1117
|
}
|
|
1045
|
-
async function
|
|
1118
|
+
async function Je(e, t, r = !0) {
|
|
1046
1119
|
try {
|
|
1047
1120
|
const n = {
|
|
1048
1121
|
action: "rename",
|
|
@@ -1058,12 +1131,12 @@ async function Ge(e, t, r = !0) {
|
|
|
1058
1131
|
}
|
|
1059
1132
|
}
|
|
1060
1133
|
};
|
|
1061
|
-
return
|
|
1134
|
+
return u("api/v1/labels", n);
|
|
1062
1135
|
} catch (n) {
|
|
1063
1136
|
throw f("Error in rename", n), n;
|
|
1064
1137
|
}
|
|
1065
1138
|
}
|
|
1066
|
-
async function
|
|
1139
|
+
async function We(e, t = !0) {
|
|
1067
1140
|
try {
|
|
1068
1141
|
const r = {
|
|
1069
1142
|
action: "delete",
|
|
@@ -1077,12 +1150,12 @@ async function ze(e, t = !0) {
|
|
|
1077
1150
|
}
|
|
1078
1151
|
}
|
|
1079
1152
|
};
|
|
1080
|
-
return
|
|
1153
|
+
return u("api/v1/labels", r);
|
|
1081
1154
|
} catch (r) {
|
|
1082
1155
|
throw f("Error in deleteLabels", r), r;
|
|
1083
1156
|
}
|
|
1084
1157
|
}
|
|
1085
|
-
async function
|
|
1158
|
+
async function Xe(e, t, r = !0) {
|
|
1086
1159
|
try {
|
|
1087
1160
|
const n = {
|
|
1088
1161
|
action: "bulkAdd",
|
|
@@ -1098,12 +1171,12 @@ async function He(e, t, r = !0) {
|
|
|
1098
1171
|
}
|
|
1099
1172
|
}
|
|
1100
1173
|
};
|
|
1101
|
-
return
|
|
1174
|
+
return u("api/v1/labels", n);
|
|
1102
1175
|
} catch (n) {
|
|
1103
1176
|
throw f("Error in bulkAdd", n), n;
|
|
1104
1177
|
}
|
|
1105
1178
|
}
|
|
1106
|
-
async function
|
|
1179
|
+
async function Ye(e, t, r = !0) {
|
|
1107
1180
|
try {
|
|
1108
1181
|
const n = {
|
|
1109
1182
|
action: "bulkRemove",
|
|
@@ -1119,36 +1192,36 @@ async function Je(e, t, r = !0) {
|
|
|
1119
1192
|
}
|
|
1120
1193
|
}
|
|
1121
1194
|
};
|
|
1122
|
-
return
|
|
1195
|
+
return u("api/v1/labels", n);
|
|
1123
1196
|
} catch (n) {
|
|
1124
1197
|
throw f("Error in bulkRemove", n), n;
|
|
1125
1198
|
}
|
|
1126
1199
|
}
|
|
1127
|
-
const
|
|
1128
|
-
getUserRights:
|
|
1129
|
-
add:
|
|
1130
|
-
remove:
|
|
1131
|
-
rename:
|
|
1132
|
-
delete:
|
|
1133
|
-
bulkAdd:
|
|
1134
|
-
bulkRemove:
|
|
1200
|
+
const or = {
|
|
1201
|
+
getUserRights: Ge,
|
|
1202
|
+
add: ze,
|
|
1203
|
+
remove: He,
|
|
1204
|
+
rename: Je,
|
|
1205
|
+
delete: We,
|
|
1206
|
+
bulkAdd: Xe,
|
|
1207
|
+
bulkRemove: Ye
|
|
1135
1208
|
};
|
|
1136
|
-
async function
|
|
1209
|
+
async function ar(e, t) {
|
|
1137
1210
|
if (typeof window > "u")
|
|
1138
|
-
return
|
|
1211
|
+
return u("api/v1/preview", {
|
|
1139
1212
|
action: "get",
|
|
1140
1213
|
id: e,
|
|
1141
1214
|
query: t
|
|
1142
1215
|
});
|
|
1143
1216
|
const r = `${window.location.origin}${window.location.pathname}`, n = { name: t?.name, text: t?.text };
|
|
1144
|
-
return
|
|
1217
|
+
return u("api/v1/preview", {
|
|
1145
1218
|
action: "get",
|
|
1146
1219
|
id: e,
|
|
1147
1220
|
query: n,
|
|
1148
1221
|
browserUrl: r
|
|
1149
1222
|
});
|
|
1150
1223
|
}
|
|
1151
|
-
async function
|
|
1224
|
+
async function sr(e) {
|
|
1152
1225
|
const t = new Headers();
|
|
1153
1226
|
t.append("content-type", "text");
|
|
1154
1227
|
const r = await fetch(
|
|
@@ -1160,23 +1233,23 @@ async function er(e) {
|
|
|
1160
1233
|
);
|
|
1161
1234
|
P(r);
|
|
1162
1235
|
}
|
|
1163
|
-
async function
|
|
1236
|
+
async function Ke() {
|
|
1164
1237
|
const e = new URLSearchParams({
|
|
1165
1238
|
action: "get",
|
|
1166
1239
|
noAutoAuthentication: "true"
|
|
1167
1240
|
});
|
|
1168
|
-
return
|
|
1241
|
+
return _("api/v1/principal", e);
|
|
1169
1242
|
}
|
|
1170
|
-
async function
|
|
1243
|
+
async function Ze(e) {
|
|
1171
1244
|
const t = {
|
|
1172
1245
|
noAutoAuthentication: "true",
|
|
1173
1246
|
...e
|
|
1174
1247
|
}, r = new URLSearchParams();
|
|
1175
1248
|
return Object.entries(t).forEach(([n, o]) => {
|
|
1176
1249
|
o !== void 0 && r.append(n, String(o));
|
|
1177
|
-
}),
|
|
1250
|
+
}), _("api/v1/principal/list", r);
|
|
1178
1251
|
}
|
|
1179
|
-
async function
|
|
1252
|
+
async function Ee(e) {
|
|
1180
1253
|
if (!e)
|
|
1181
1254
|
return Promise.reject(new Error("userid is required"));
|
|
1182
1255
|
const t = new URLSearchParams({
|
|
@@ -1184,27 +1257,27 @@ async function Me(e) {
|
|
|
1184
1257
|
noAutoAuthentication: "true",
|
|
1185
1258
|
userid: e
|
|
1186
1259
|
});
|
|
1187
|
-
return
|
|
1260
|
+
return _("api/v1/principal", t);
|
|
1188
1261
|
}
|
|
1189
|
-
async function
|
|
1262
|
+
async function Te(e) {
|
|
1190
1263
|
if (e.length === 0)
|
|
1191
1264
|
return Promise.reject(new Error("userids is required"));
|
|
1192
1265
|
const t = new URLSearchParams({
|
|
1193
1266
|
noAutoAuthentication: "true",
|
|
1194
1267
|
userids: [...e].join(",")
|
|
1195
1268
|
});
|
|
1196
|
-
return
|
|
1269
|
+
return _("api/v1/principal/userids", t);
|
|
1197
1270
|
}
|
|
1198
|
-
const
|
|
1271
|
+
const ir = {
|
|
1199
1272
|
principal: {
|
|
1200
|
-
get:
|
|
1201
|
-
list:
|
|
1202
|
-
userid:
|
|
1203
|
-
userids:
|
|
1273
|
+
get: Ke,
|
|
1274
|
+
list: Ze,
|
|
1275
|
+
userid: Ee,
|
|
1276
|
+
userids: Te
|
|
1204
1277
|
}
|
|
1205
1278
|
}, ie = 11;
|
|
1206
|
-
async function
|
|
1207
|
-
const o = await
|
|
1279
|
+
async function cr(e, t, r) {
|
|
1280
|
+
const o = await u("api/v1/query", {
|
|
1208
1281
|
query: e,
|
|
1209
1282
|
$auditRecord: t,
|
|
1210
1283
|
queryIntentData: r
|
|
@@ -1215,26 +1288,26 @@ async function rr(e, t, r) {
|
|
|
1215
1288
|
const a = { ...o, nextPage: o.page < Math.ceil(o.rowCount / o.pageSize) ? o.page + 1 : void 0, previousPage: o.page > 1 ? o.page - 1 : void 0 };
|
|
1216
1289
|
return Promise.resolve(a);
|
|
1217
1290
|
}
|
|
1218
|
-
async function
|
|
1219
|
-
const { app: n = "" } =
|
|
1291
|
+
async function lr(e, t, r) {
|
|
1292
|
+
const { app: n = "" } = l, o = {
|
|
1220
1293
|
methods: [],
|
|
1221
1294
|
mode: t,
|
|
1222
1295
|
propagateErrors: !0,
|
|
1223
1296
|
$auditRecord: { auditEvents: [r] }
|
|
1224
1297
|
};
|
|
1225
|
-
for (const
|
|
1298
|
+
for (const c of e)
|
|
1226
1299
|
o.methods.push({
|
|
1227
1300
|
method: "query",
|
|
1228
1301
|
app: n,
|
|
1229
|
-
query:
|
|
1302
|
+
query: c
|
|
1230
1303
|
});
|
|
1231
|
-
const a = await
|
|
1232
|
-
a.results.forEach((
|
|
1233
|
-
|
|
1234
|
-
|
|
1304
|
+
const a = await u("api/v1/multi", o);
|
|
1305
|
+
a.results.forEach((c) => {
|
|
1306
|
+
c.aggregations.forEach((i) => {
|
|
1307
|
+
i.$hasMore = !1, !i.isDistribution && !i.isTree && i.items && (i.$hasMore = i.items.length === ie), i.isTree && z(i);
|
|
1235
1308
|
});
|
|
1236
|
-
}), a.results.forEach((
|
|
1237
|
-
const s = a.results.map((
|
|
1309
|
+
}), a.results.forEach((c) => c.records?.map((i) => Object.assign(i, { value: i.title, type: "default" })));
|
|
1310
|
+
const s = a.results.map((c) => ({ ...c, nextPage: c.page < Math.ceil(c.rowCount / c.pageSize) ? c.page + 1 : void 0, previousPage: c.page > 1 ? c.page - 1 : void 0 }));
|
|
1238
1311
|
return Promise.resolve(s);
|
|
1239
1312
|
}
|
|
1240
1313
|
function z(e, t = "", r = 0) {
|
|
@@ -1244,15 +1317,15 @@ function z(e, t = "", r = 0) {
|
|
|
1244
1317
|
n.push({ path: a, level: s }), o.$path = a, o.$level = s, o.hasChildren ? n = n.concat(z(o, a, s)) : o.hasChildren = !1;
|
|
1245
1318
|
}), n;
|
|
1246
1319
|
}
|
|
1247
|
-
async function
|
|
1248
|
-
const { webservice: o, format: a, maxcount: s, exportedColumns:
|
|
1320
|
+
async function ur({ model: e, appName: t, query: r, article: n }) {
|
|
1321
|
+
const { webservice: o, format: a, maxcount: s, exportedColumns: c, export: i } = e, d = {
|
|
1249
1322
|
app: t,
|
|
1250
1323
|
webservice: o,
|
|
1251
1324
|
query: r,
|
|
1252
|
-
type:
|
|
1325
|
+
type: i,
|
|
1253
1326
|
format: a,
|
|
1254
1327
|
maxcount: s,
|
|
1255
|
-
exportedColumns:
|
|
1328
|
+
exportedColumns: c,
|
|
1256
1329
|
$auditRecord: {
|
|
1257
1330
|
auditEvents: [{
|
|
1258
1331
|
type: "Search_ExportCSV",
|
|
@@ -1262,15 +1335,15 @@ async function or({ model: e, appName: t, query: r, article: n }) {
|
|
|
1262
1335
|
}]
|
|
1263
1336
|
}
|
|
1264
1337
|
};
|
|
1265
|
-
return
|
|
1338
|
+
return U(d), await u("api/v1/search.queryexport", d, { responseType: "blob" });
|
|
1266
1339
|
}
|
|
1267
|
-
async function
|
|
1268
|
-
return (await
|
|
1340
|
+
async function dr(e) {
|
|
1341
|
+
return (await u("api/v1/queryintent", {
|
|
1269
1342
|
query: e
|
|
1270
1343
|
}))?.intents;
|
|
1271
1344
|
}
|
|
1272
|
-
async function
|
|
1273
|
-
return (await
|
|
1345
|
+
async function fr(e, t, r) {
|
|
1346
|
+
return (await u(
|
|
1274
1347
|
"api/v1/similardocuments",
|
|
1275
1348
|
{
|
|
1276
1349
|
sourceDocumentId: e,
|
|
@@ -1281,17 +1354,17 @@ async function sr(e, t, r) {
|
|
|
1281
1354
|
{ signal: r }
|
|
1282
1355
|
)).data;
|
|
1283
1356
|
}
|
|
1284
|
-
async function
|
|
1285
|
-
return (await
|
|
1357
|
+
async function hr(e, t) {
|
|
1358
|
+
return (await u("api/v1/query.links", {
|
|
1286
1359
|
webservice: e,
|
|
1287
1360
|
query: t
|
|
1288
1361
|
}))?.links?.map((o) => ({ ...o, query: t }));
|
|
1289
1362
|
}
|
|
1290
|
-
function
|
|
1363
|
+
function et(e, t) {
|
|
1291
1364
|
if (typeof e == "number")
|
|
1292
1365
|
return `${e}`;
|
|
1293
|
-
if (
|
|
1294
|
-
return
|
|
1366
|
+
if (Ue(e))
|
|
1367
|
+
return tt(e);
|
|
1295
1368
|
if (typeof e == "boolean")
|
|
1296
1369
|
return e ? "true" : "false";
|
|
1297
1370
|
if (e === null)
|
|
@@ -1304,11 +1377,11 @@ function Ye(e, t) {
|
|
|
1304
1377
|
}
|
|
1305
1378
|
return e;
|
|
1306
1379
|
}
|
|
1307
|
-
function
|
|
1380
|
+
function tt(e) {
|
|
1308
1381
|
if (!e)
|
|
1309
1382
|
return "";
|
|
1310
1383
|
try {
|
|
1311
|
-
if (
|
|
1384
|
+
if (De(e) === 0)
|
|
1312
1385
|
return new Intl.DateTimeFormat("en-CA", {
|
|
1313
1386
|
year: "numeric",
|
|
1314
1387
|
month: "2-digit",
|
|
@@ -1327,8 +1400,8 @@ function Ke(e) {
|
|
|
1327
1400
|
return "Invalid date";
|
|
1328
1401
|
}
|
|
1329
1402
|
}
|
|
1330
|
-
async function
|
|
1331
|
-
const { app: a } =
|
|
1403
|
+
async function gr(e, t, r, n, o) {
|
|
1404
|
+
const { app: a } = l, s = {
|
|
1332
1405
|
app: a || "",
|
|
1333
1406
|
suggestQuery: e,
|
|
1334
1407
|
text: t,
|
|
@@ -1337,17 +1410,17 @@ async function cr(e, t, r, n, o) {
|
|
|
1337
1410
|
showSource: o
|
|
1338
1411
|
};
|
|
1339
1412
|
try {
|
|
1340
|
-
return (await
|
|
1413
|
+
return (await u(
|
|
1341
1414
|
"api/v1/search.suggest",
|
|
1342
1415
|
s
|
|
1343
1416
|
)).suggests;
|
|
1344
|
-
} catch (
|
|
1345
|
-
throw console.error("Error fetching suggestions:",
|
|
1417
|
+
} catch (c) {
|
|
1418
|
+
throw console.error("Error fetching suggestions:", c), c;
|
|
1346
1419
|
}
|
|
1347
1420
|
}
|
|
1348
|
-
async function
|
|
1349
|
-
const { app: o } =
|
|
1350
|
-
return (await
|
|
1421
|
+
async function pr(e, t, r, n) {
|
|
1422
|
+
const { app: o } = l;
|
|
1423
|
+
return (await u(
|
|
1351
1424
|
"api/v1/suggestquery",
|
|
1352
1425
|
{
|
|
1353
1426
|
app: o || "",
|
|
@@ -1358,9 +1431,9 @@ async function lr(e, t, r, n) {
|
|
|
1358
1431
|
}
|
|
1359
1432
|
)).suggests;
|
|
1360
1433
|
}
|
|
1361
|
-
async function
|
|
1434
|
+
async function mr(e, t, r) {
|
|
1362
1435
|
if (!t) return Promise.resolve([]);
|
|
1363
|
-
const { app: n } =
|
|
1436
|
+
const { app: n } = l, a = await u(
|
|
1364
1437
|
"api/v1/suggestfield",
|
|
1365
1438
|
{
|
|
1366
1439
|
app: n || "",
|
|
@@ -1370,11 +1443,11 @@ async function ur(e, t, r) {
|
|
|
1370
1443
|
}
|
|
1371
1444
|
);
|
|
1372
1445
|
return a.suggests.forEach((s) => {
|
|
1373
|
-
s.display =
|
|
1446
|
+
s.display = et(s.display);
|
|
1374
1447
|
}), a.suggests;
|
|
1375
1448
|
}
|
|
1376
|
-
async function
|
|
1377
|
-
return
|
|
1449
|
+
async function wr(e, t, r, n, o, a) {
|
|
1450
|
+
return u("api/v1/doc.textchunks", {
|
|
1378
1451
|
id: e,
|
|
1379
1452
|
textChunks: t,
|
|
1380
1453
|
highlights: r,
|
|
@@ -1383,74 +1456,74 @@ async function dr(e, t, r, n, o, a) {
|
|
|
1383
1456
|
rightSentencesCount: a
|
|
1384
1457
|
});
|
|
1385
1458
|
}
|
|
1386
|
-
async function
|
|
1387
|
-
const { app: e } =
|
|
1459
|
+
async function _r() {
|
|
1460
|
+
const { app: e } = l, t = new URLSearchParams({
|
|
1388
1461
|
app: e || "",
|
|
1389
1462
|
action: "load"
|
|
1390
1463
|
});
|
|
1391
|
-
return
|
|
1464
|
+
return _("api/v1/usersettings", t);
|
|
1392
1465
|
}
|
|
1393
|
-
async function
|
|
1466
|
+
async function rt(e, t) {
|
|
1394
1467
|
const r = {
|
|
1395
1468
|
action: "save",
|
|
1396
1469
|
userSettings: e,
|
|
1397
1470
|
$auditRecord: { auditEvents: [t] }
|
|
1398
1471
|
};
|
|
1399
|
-
return
|
|
1472
|
+
return U(r), u("api/v1/usersettings", r);
|
|
1400
1473
|
}
|
|
1401
|
-
async function
|
|
1474
|
+
async function kr(e, t) {
|
|
1402
1475
|
const n = {
|
|
1403
1476
|
action: "patch",
|
|
1404
1477
|
userSettings: e,
|
|
1405
1478
|
$auditRecord: t ? { auditEvents: [t] } : void 0
|
|
1406
1479
|
};
|
|
1407
|
-
return
|
|
1480
|
+
return U(n), u("api/v1/usersettings", n);
|
|
1408
1481
|
}
|
|
1409
|
-
async function
|
|
1410
|
-
return
|
|
1482
|
+
async function Sr() {
|
|
1483
|
+
return rt({}, { type: "UserSettings_Reset" });
|
|
1411
1484
|
}
|
|
1412
|
-
async function
|
|
1413
|
-
return
|
|
1485
|
+
async function br(e, t) {
|
|
1486
|
+
return u("api/v2/security/password/change", { newPassword: e, currentPassword: t });
|
|
1414
1487
|
}
|
|
1415
|
-
async function
|
|
1488
|
+
async function vr(e) {
|
|
1416
1489
|
const t = "api/v2/security/password/ask-reset-email", n = {
|
|
1417
1490
|
changePasswordRedirectUrl: `${window.location.origin}/login?mode=changepassword`,
|
|
1418
1491
|
userName: e
|
|
1419
1492
|
};
|
|
1420
|
-
return
|
|
1493
|
+
return u(t, n);
|
|
1421
1494
|
}
|
|
1422
|
-
async function
|
|
1423
|
-
return await
|
|
1495
|
+
async function Cr(e) {
|
|
1496
|
+
return await _(`api/v2/user-profile/${e}`);
|
|
1424
1497
|
}
|
|
1425
|
-
async function
|
|
1426
|
-
return await
|
|
1498
|
+
async function Rr(e) {
|
|
1499
|
+
return await u("api/v2/user-profile", e);
|
|
1427
1500
|
}
|
|
1428
|
-
async function
|
|
1429
|
-
return await
|
|
1501
|
+
async function Pr(e, t, r) {
|
|
1502
|
+
return await ve(
|
|
1430
1503
|
`api/v2/user-profile/${e.data?.id}/${t}/${r}`,
|
|
1431
1504
|
e
|
|
1432
1505
|
);
|
|
1433
1506
|
}
|
|
1434
|
-
async function
|
|
1507
|
+
async function yr(e, t, r) {
|
|
1435
1508
|
try {
|
|
1436
|
-
return (await
|
|
1509
|
+
return (await be(
|
|
1437
1510
|
`api/v2/user-profile/${e.data?.id}/${t}/${r}`
|
|
1438
1511
|
)).success === !0;
|
|
1439
1512
|
} catch {
|
|
1440
1513
|
return !1;
|
|
1441
1514
|
}
|
|
1442
1515
|
}
|
|
1443
|
-
async function
|
|
1444
|
-
return await
|
|
1516
|
+
async function xr() {
|
|
1517
|
+
return await _("api/v2/version");
|
|
1445
1518
|
}
|
|
1446
|
-
const v = 1e4,
|
|
1447
|
-
const { autoOAuthProvider: e } =
|
|
1519
|
+
const v = 1e4, nt = async () => {
|
|
1520
|
+
const { autoOAuthProvider: e } = l;
|
|
1448
1521
|
if (!e)
|
|
1449
1522
|
throw new Error("autoOAuthProvider is not configured in globalConfig");
|
|
1450
1523
|
if (typeof window > "u")
|
|
1451
1524
|
try {
|
|
1452
1525
|
const { signal: r } = b(v);
|
|
1453
|
-
return await
|
|
1526
|
+
return await u(
|
|
1454
1527
|
"security.oauth",
|
|
1455
1528
|
{
|
|
1456
1529
|
action: "getcode",
|
|
@@ -1470,7 +1543,7 @@ const v = 1e4, Ee = async () => {
|
|
|
1470
1543
|
originalUrl: window.location.href
|
|
1471
1544
|
};
|
|
1472
1545
|
try {
|
|
1473
|
-
const { signal: r } = b(v), n = await
|
|
1546
|
+
const { signal: r } = b(v), n = await u(
|
|
1474
1547
|
"api/v1/security.oauth",
|
|
1475
1548
|
t,
|
|
1476
1549
|
{ signal: r }
|
|
@@ -1483,14 +1556,14 @@ const v = 1e4, Ee = async () => {
|
|
|
1483
1556
|
} catch (r) {
|
|
1484
1557
|
throw f("Failed to authenticate with OAuth", r), r;
|
|
1485
1558
|
}
|
|
1486
|
-
},
|
|
1487
|
-
const { autoSAMLProvider: e } =
|
|
1559
|
+
}, ot = async () => {
|
|
1560
|
+
const { autoSAMLProvider: e } = l;
|
|
1488
1561
|
if (!e)
|
|
1489
1562
|
throw new Error("autoSAMLProvider is not configured in globalConfig");
|
|
1490
1563
|
if (typeof window > "u")
|
|
1491
1564
|
try {
|
|
1492
1565
|
const { signal: r } = b(v);
|
|
1493
|
-
return await
|
|
1566
|
+
return await u(
|
|
1494
1567
|
"security.saml",
|
|
1495
1568
|
{
|
|
1496
1569
|
action: "getresponse",
|
|
@@ -1510,7 +1583,7 @@ const v = 1e4, Ee = async () => {
|
|
|
1510
1583
|
originalUrl: window.location.href
|
|
1511
1584
|
};
|
|
1512
1585
|
try {
|
|
1513
|
-
const { signal: r } = b(v), n = await
|
|
1586
|
+
const { signal: r } = b(v), n = await u(
|
|
1514
1587
|
"api/v1/security.saml",
|
|
1515
1588
|
t,
|
|
1516
1589
|
{ signal: r }
|
|
@@ -1538,39 +1611,39 @@ const v = 1e4, Ee = async () => {
|
|
|
1538
1611
|
this.store = {};
|
|
1539
1612
|
}
|
|
1540
1613
|
}, J = H;
|
|
1541
|
-
function
|
|
1614
|
+
function at(e) {
|
|
1542
1615
|
return typeof window > "u" || !window.localStorage ? H.getItem(e) : window.localStorage.getItem(e);
|
|
1543
1616
|
}
|
|
1544
|
-
function
|
|
1617
|
+
function st(e) {
|
|
1545
1618
|
typeof window > "u" || !window.localStorage ? H.removeItem(e) : window.localStorage.removeItem(e);
|
|
1546
1619
|
}
|
|
1547
|
-
function
|
|
1620
|
+
function it(e) {
|
|
1548
1621
|
return typeof window > "u" || !window.sessionStorage ? J.getItem(e) : window.sessionStorage.getItem(e);
|
|
1549
1622
|
}
|
|
1550
|
-
function
|
|
1623
|
+
function ct(e, t) {
|
|
1551
1624
|
typeof window > "u" || !window.sessionStorage ? J.setItem(e, t) : window.sessionStorage.setItem(e, t);
|
|
1552
1625
|
}
|
|
1553
|
-
function
|
|
1626
|
+
function lt(e) {
|
|
1554
1627
|
typeof window > "u" || !window.sessionStorage ? J.removeItem(e) : window.sessionStorage.removeItem(e);
|
|
1555
1628
|
}
|
|
1556
|
-
const
|
|
1629
|
+
const A = (e) => ct(
|
|
1557
1630
|
"sinequa-credentials",
|
|
1558
1631
|
JSON.stringify({ data: { csrfToken: e } })
|
|
1559
|
-
),
|
|
1632
|
+
), ut = async () => {
|
|
1560
1633
|
try {
|
|
1561
|
-
const { signal: e } = b(v), t = await
|
|
1634
|
+
const { signal: e } = b(v), t = await _(
|
|
1562
1635
|
"api/v1/challenge?action=getCsrfToken&suppressErrors=true",
|
|
1563
1636
|
void 0,
|
|
1564
1637
|
{ signal: e }
|
|
1565
1638
|
);
|
|
1566
1639
|
if (t?.csrfToken)
|
|
1567
|
-
return
|
|
1640
|
+
return A(t.csrfToken), t.csrfToken;
|
|
1568
1641
|
throw new Error("No CSRF token returned");
|
|
1569
1642
|
} catch (e) {
|
|
1570
1643
|
throw f("Failed to get CSRF token", e), e;
|
|
1571
1644
|
}
|
|
1572
1645
|
};
|
|
1573
|
-
async function
|
|
1646
|
+
async function ce(e) {
|
|
1574
1647
|
if (e) {
|
|
1575
1648
|
const { username: t, password: r } = e, n = {
|
|
1576
1649
|
action: "get",
|
|
@@ -1581,12 +1654,12 @@ async function st(e) {
|
|
|
1581
1654
|
noAutoAuthentication: !0
|
|
1582
1655
|
};
|
|
1583
1656
|
try {
|
|
1584
|
-
const { signal: o } = b(v), a = await
|
|
1657
|
+
const { signal: o } = b(v), a = await u(
|
|
1585
1658
|
"api/v1/security.webtoken",
|
|
1586
1659
|
n,
|
|
1587
1660
|
{ signal: o }
|
|
1588
1661
|
);
|
|
1589
|
-
return a?.csrfToken ? (
|
|
1662
|
+
return a?.csrfToken ? (A(a.csrfToken), a.csrfToken) : null;
|
|
1590
1663
|
} catch (o) {
|
|
1591
1664
|
throw f("Failed to get JWT", o), o;
|
|
1592
1665
|
}
|
|
@@ -1597,7 +1670,7 @@ async function st(e) {
|
|
|
1597
1670
|
noUserOverride: !0,
|
|
1598
1671
|
noAutoAuthentication: !1
|
|
1599
1672
|
// Allow auto authentication for credentialless requests
|
|
1600
|
-
}, { bearerToken: r } =
|
|
1673
|
+
}, { bearerToken: r } = l;
|
|
1601
1674
|
if (!r)
|
|
1602
1675
|
throw new Error(
|
|
1603
1676
|
"Bearer token is required in globalConfig for credentialless JWT retrieval."
|
|
@@ -1605,100 +1678,96 @@ async function st(e) {
|
|
|
1605
1678
|
const n = new Headers();
|
|
1606
1679
|
n.append("Sinequa-Force-Camel-Case", "true"), n.append("accept", "application/json"), n.append("Content-Type", "application/json"), n.append("Authorization", `Bearer ${r}`);
|
|
1607
1680
|
try {
|
|
1608
|
-
const { signal: o } = b(v), a = await
|
|
1681
|
+
const { signal: o } = b(v), a = await u(
|
|
1609
1682
|
"api/v1/security.webtoken",
|
|
1610
1683
|
t,
|
|
1611
1684
|
{ headers: n, signal: o }
|
|
1612
1685
|
);
|
|
1613
|
-
return a?.csrfToken ? (
|
|
1686
|
+
return a?.csrfToken ? (A(a.csrfToken), a.csrfToken) : null;
|
|
1614
1687
|
} catch (o) {
|
|
1615
1688
|
throw f("Failed to get JWT without credentials", o), o;
|
|
1616
1689
|
}
|
|
1617
1690
|
}
|
|
1618
1691
|
}
|
|
1619
1692
|
const W = () => {
|
|
1620
|
-
const e =
|
|
1693
|
+
const e = it("sinequa-credentials");
|
|
1621
1694
|
if (e)
|
|
1622
1695
|
try {
|
|
1623
1696
|
const n = JSON.parse(e).data?.csrfToken;
|
|
1624
1697
|
if (n) return n;
|
|
1625
1698
|
} catch (r) {
|
|
1626
|
-
|
|
1699
|
+
I(
|
|
1627
1700
|
"Failed to parse session storage credentials, falling back to local storage",
|
|
1628
1701
|
r
|
|
1629
1702
|
);
|
|
1630
1703
|
}
|
|
1631
|
-
const t =
|
|
1704
|
+
const t = at("csrfToken");
|
|
1632
1705
|
return t || null;
|
|
1633
|
-
},
|
|
1634
|
-
if (e)
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
let i = null;
|
|
1638
|
-
try {
|
|
1639
|
-
S("Attempting to retrieve CSRF token from the backend"), i = await at(), x("CSRF token retrieval result", i ? "success" : "failed");
|
|
1640
|
-
} catch {
|
|
1641
|
-
}
|
|
1642
|
-
try {
|
|
1643
|
-
if (i === null) {
|
|
1644
|
-
const { autoOAuthProvider: c, autoSAMLProvider: d, useSAML: _ } = u;
|
|
1645
|
-
if (c && !_)
|
|
1646
|
-
return S("Initiating OAuth authentication flow"), await Ee(), w(!1), !1;
|
|
1647
|
-
if (d)
|
|
1648
|
-
return S("Initiating SAML authentication flow"), await Te(), w(!1), !1;
|
|
1649
|
-
S(
|
|
1650
|
-
"No direct authentication method available, will try SSO then credentials"
|
|
1651
|
-
), k({ useCredentials: !0, useSSO: !0 });
|
|
1652
|
-
} else
|
|
1653
|
-
return S("User authenticated via existing token"), w(!0), !0;
|
|
1654
|
-
} catch (c) {
|
|
1655
|
-
throw f("Unexpected error during authentication", c), w(!1), c;
|
|
1656
|
-
}
|
|
1657
|
-
return !1;
|
|
1706
|
+
}, Lr = async (e) => {
|
|
1707
|
+
if (e) {
|
|
1708
|
+
const { username: r, password: n } = e;
|
|
1709
|
+
return !r || !n ? (f("Credentials are required for authentication"), m(!1), !1) : dt({ username: r, password: n });
|
|
1658
1710
|
}
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1711
|
+
const t = l.authMode ?? g.unknown();
|
|
1712
|
+
if (t.kind === "credentials")
|
|
1713
|
+
return m(!1), !1;
|
|
1714
|
+
if (t.kind === "bearer")
|
|
1715
|
+
return ft();
|
|
1716
|
+
if (W())
|
|
1717
|
+
return S({ isRedirectUrl: !1 }), m(!0), !0;
|
|
1718
|
+
try {
|
|
1719
|
+
if (y("Checking for an existing session via CSRF token retrieval"), await ut())
|
|
1720
|
+
return y("User already authenticated (existing session / SSO)"), t.kind === "unknown" && S({ authMode: g.sso() }), m(!0), !0;
|
|
1721
|
+
} catch {
|
|
1722
|
+
}
|
|
1723
|
+
switch (t.kind) {
|
|
1724
|
+
case "oauth":
|
|
1725
|
+
return y("Initiating OAuth authentication flow"), await nt(), m(!1), !1;
|
|
1726
|
+
case "saml":
|
|
1727
|
+
return y("Initiating SAML authentication flow"), await ot(), m(!1), !1;
|
|
1728
|
+
case "sso":
|
|
1729
|
+
return m(!1), !1;
|
|
1730
|
+
default:
|
|
1731
|
+
return S({ authMode: g.credentials() }), m(!1), !1;
|
|
1732
|
+
}
|
|
1733
|
+
};
|
|
1734
|
+
async function dt(e) {
|
|
1735
|
+
y("Attempting authentication using credentials"), S({ authMode: g.credentials() });
|
|
1736
|
+
const { userOverrideActive: t, useroverride: r } = l;
|
|
1737
|
+
S({ userOverrideActive: !1, useroverride: void 0 });
|
|
1738
|
+
try {
|
|
1739
|
+
await ce(e);
|
|
1740
|
+
} catch (n) {
|
|
1741
|
+
throw m(!1), n;
|
|
1742
|
+
}
|
|
1743
|
+
return S({ userOverrideActive: t, useroverride: r }), m(!0), !0;
|
|
1744
|
+
}
|
|
1745
|
+
async function ft() {
|
|
1746
|
+
try {
|
|
1747
|
+
if (y("Attempting authentication using bearer token"), await ce())
|
|
1748
|
+
return m(!0), !0;
|
|
1749
|
+
} catch (e) {
|
|
1750
|
+
throw f("Bearer authentication failed", e), m(!1), e;
|
|
1751
|
+
}
|
|
1752
|
+
return m(!1), !1;
|
|
1753
|
+
}
|
|
1754
|
+
const ht = async () => {
|
|
1686
1755
|
const e = new URLSearchParams({
|
|
1687
1756
|
action: "deleteWebTokenCookie",
|
|
1688
1757
|
noUserOverride: "true",
|
|
1689
1758
|
noAutoAuthentication: "true"
|
|
1690
1759
|
}), { signal: t } = b(v);
|
|
1691
|
-
return
|
|
1760
|
+
return _(
|
|
1692
1761
|
"api/v1/challenge",
|
|
1693
1762
|
e,
|
|
1694
1763
|
{ signal: t }
|
|
1695
1764
|
);
|
|
1696
1765
|
};
|
|
1697
|
-
async function
|
|
1698
|
-
const { userOverrideActive: e } =
|
|
1699
|
-
if (
|
|
1766
|
+
async function $r() {
|
|
1767
|
+
const { userOverrideActive: e } = l;
|
|
1768
|
+
if (gt(), !e)
|
|
1700
1769
|
try {
|
|
1701
|
-
const { methodresult: t, logoutUrl: r } = await
|
|
1770
|
+
const { methodresult: t, logoutUrl: r } = await ht();
|
|
1702
1771
|
if (t === "ok")
|
|
1703
1772
|
return r;
|
|
1704
1773
|
f("logout failed");
|
|
@@ -1706,137 +1775,141 @@ async function Cr() {
|
|
|
1706
1775
|
f("logout failed", t);
|
|
1707
1776
|
}
|
|
1708
1777
|
}
|
|
1709
|
-
function
|
|
1710
|
-
|
|
1778
|
+
function gt() {
|
|
1779
|
+
st("csrfToken"), lt("sinequa-credentials"), m(!1);
|
|
1711
1780
|
}
|
|
1712
|
-
const
|
|
1781
|
+
const Ur = () => !!W();
|
|
1713
1782
|
export {
|
|
1714
|
-
|
|
1783
|
+
ir as API,
|
|
1715
1784
|
R as ApiError,
|
|
1716
|
-
|
|
1785
|
+
Kt as Audit,
|
|
1717
1786
|
C as AuditEventType,
|
|
1718
|
-
|
|
1787
|
+
g as AuthMode,
|
|
1788
|
+
Ce as DidYouMeanKind,
|
|
1719
1789
|
h as EngineType,
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1790
|
+
w as EngineTypeModifier,
|
|
1791
|
+
ne as LogLevel,
|
|
1792
|
+
Vt as MINIMUM_COMPATIBLE_SERVER_API_VERSION,
|
|
1793
|
+
Re as RFMDisplay,
|
|
1794
|
+
T as ServerError,
|
|
1795
|
+
Se as TimeoutError,
|
|
1726
1796
|
V as UnauthorizedError,
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1797
|
+
U as addAuditAdditionalInfo,
|
|
1798
|
+
St as addConcepts,
|
|
1799
|
+
Ne as addSessionId,
|
|
1800
|
+
qe as addUrl,
|
|
1801
|
+
ue as aggItemRegex,
|
|
1802
|
+
wt as aggregationItemStrictCompare,
|
|
1803
|
+
Tt as appInitializerFn,
|
|
1804
|
+
kt as bisect,
|
|
1735
1805
|
z as buildPathsAndLevels,
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1806
|
+
gt as clearSessionTokens,
|
|
1807
|
+
qt as configureLogger,
|
|
1808
|
+
$ as createHeaders,
|
|
1739
1809
|
b as createTimeoutController,
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1810
|
+
Rr as createUserProfile,
|
|
1811
|
+
L as debug,
|
|
1812
|
+
be as del,
|
|
1813
|
+
yr as deleteUserProfileProperty,
|
|
1814
|
+
Sr as deleteUserSettings,
|
|
1815
|
+
ht as deleteWebTokenCookie,
|
|
1816
|
+
je as detectAuthMode,
|
|
1817
|
+
m as emitAuthenticatedEvent,
|
|
1747
1818
|
f as error,
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1819
|
+
Xt as escapeExpr,
|
|
1820
|
+
Mt as expiresSoon,
|
|
1821
|
+
Gt as extraColumns,
|
|
1822
|
+
Zt as fetchAggregation,
|
|
1823
|
+
Et as fetchApp,
|
|
1824
|
+
Qe as fetchAppPreLogin,
|
|
1825
|
+
lr as fetchBulkQuery,
|
|
1826
|
+
br as fetchChangePassword,
|
|
1827
|
+
er as fetchDataset,
|
|
1828
|
+
rr as fetchDatasetList,
|
|
1829
|
+
tr as fetchDatasets,
|
|
1830
|
+
nr as fetchLabels,
|
|
1831
|
+
ar as fetchPreview,
|
|
1832
|
+
sr as fetchPreviewUrl,
|
|
1833
|
+
Ke as fetchPrincipal,
|
|
1834
|
+
Ze as fetchPrincipalList,
|
|
1835
|
+
Ee as fetchPrincipalUserid,
|
|
1836
|
+
Te as fetchPrincipalUserids,
|
|
1837
|
+
cr as fetchQuery,
|
|
1838
|
+
ur as fetchQueryExport,
|
|
1839
|
+
dr as fetchQueryIntent,
|
|
1840
|
+
vr as fetchSendPasswordResetEmail,
|
|
1841
|
+
fr as fetchSimilarDocuments,
|
|
1842
|
+
hr as fetchSponsoredLinks,
|
|
1843
|
+
gr as fetchSuggest,
|
|
1844
|
+
mr as fetchSuggestField,
|
|
1845
|
+
pr as fetchSuggestQuery,
|
|
1846
|
+
wr as fetchTextChunks,
|
|
1847
|
+
Cr as fetchUserProfile,
|
|
1848
|
+
_r as fetchUserSettings,
|
|
1849
|
+
xr as fetchVersion,
|
|
1850
|
+
zt as filter,
|
|
1851
|
+
_ as get,
|
|
1852
|
+
Ct as getConcepts,
|
|
1853
|
+
ut as getCsrfToken,
|
|
1854
|
+
re as getFiltersFromURI,
|
|
1855
|
+
Lt as getFiltersFromUrl,
|
|
1856
|
+
At as getHelpIndexUrl,
|
|
1857
|
+
Ut as getIdFromUrl,
|
|
1858
|
+
ce as getJWToken,
|
|
1859
|
+
Ht as getMetadata,
|
|
1860
|
+
Jt as getMetadataWithValues,
|
|
1861
|
+
ke as getOffsetFromDates,
|
|
1862
|
+
Ot as getQueryPageFromUrl,
|
|
1863
|
+
yt as getQueryParamsFromUrl,
|
|
1864
|
+
Dt as getQueryTabFromUrl,
|
|
1865
|
+
$t as getQueryTextFromUrl,
|
|
1866
|
+
Rt as getRelativeDate,
|
|
1867
|
+
De as getTime,
|
|
1797
1868
|
W as getToken,
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1869
|
+
xt as getUrlParamsFromQueryParams,
|
|
1870
|
+
l as globalConfig,
|
|
1871
|
+
Ie as guid,
|
|
1801
1872
|
P as handleResponse,
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1873
|
+
y as info,
|
|
1874
|
+
Ve as initializeAppConfig,
|
|
1875
|
+
Le as isArrayBuffer,
|
|
1876
|
+
Ur as isAuthenticated,
|
|
1877
|
+
$e as isBlob,
|
|
1878
|
+
Ue as isDate,
|
|
1879
|
+
Bt as isExpired,
|
|
1880
|
+
Wt as isJsonable,
|
|
1881
|
+
Pt as isNotInputEvent,
|
|
1882
|
+
F as isObject,
|
|
1811
1883
|
Oe as isString,
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1884
|
+
or as labels,
|
|
1885
|
+
le as legacyBooleansToAuthMode,
|
|
1886
|
+
Lr as login,
|
|
1887
|
+
$r as logout,
|
|
1888
|
+
p as makeColumn,
|
|
1889
|
+
Nt as notify,
|
|
1890
|
+
fe as openParentNodes,
|
|
1891
|
+
N as parseText,
|
|
1892
|
+
de as parseValueAndOperatorFromItem,
|
|
1893
|
+
ve as patch,
|
|
1894
|
+
Pr as patchUserProfile,
|
|
1895
|
+
kr as patchUserSettings,
|
|
1896
|
+
u as post,
|
|
1897
|
+
Ft as put,
|
|
1898
|
+
x as queryParamsFromUrl,
|
|
1899
|
+
bt as removeConcept,
|
|
1900
|
+
vt as removeConcepts,
|
|
1901
|
+
Qt as resolveToColumnName,
|
|
1829
1902
|
G as rewriteText,
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1903
|
+
rt as saveUserSettings,
|
|
1904
|
+
S as setGlobalConfig,
|
|
1905
|
+
A as setToken,
|
|
1906
|
+
Yt as sha512,
|
|
1907
|
+
_t as suggestionsToTreeAggregationNodes,
|
|
1908
|
+
It as sysLang,
|
|
1909
|
+
oe as toDate,
|
|
1910
|
+
mt as translateAggregationToDateOptions,
|
|
1911
|
+
nt as tryOAuthAuthentication,
|
|
1912
|
+
ot as trySAMLAuthentication,
|
|
1913
|
+
I as warn,
|
|
1914
|
+
jt as withRetry
|
|
1842
1915
|
};
|