@sinequa/atomic 2.0.1 → 2.0.2
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 +433 -412
- 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/index.d.ts +1 -0
- package/dist/authentication/session/index.d.ts.map +1 -1
- package/dist/authentication/session/login.d.ts.map +1 -1
- package/dist/authentication/session/try-auto-authentication.d.ts +19 -0
- package/dist/authentication/session/try-auto-authentication.d.ts.map +1 -0
- package/dist/web-api/helpers/methods/get.d.ts +4 -0
- package/dist/web-api/helpers/methods/get.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/atomic.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function p(e) {
|
|
2
2
|
if (typeof CustomEvent > "u" || typeof dispatchEvent > "u")
|
|
3
3
|
return;
|
|
4
4
|
const t = new CustomEvent("authenticated", {
|
|
@@ -16,7 +16,7 @@ const g = {
|
|
|
16
16
|
bearer: (e) => ({ kind: "bearer", token: e }),
|
|
17
17
|
unknown: () => ({ kind: "unknown" })
|
|
18
18
|
};
|
|
19
|
-
function
|
|
19
|
+
function ge(e, t) {
|
|
20
20
|
const { useCredentials: r, useSSO: n, useSAML: o } = e;
|
|
21
21
|
return o && t.autoSAMLProvider ? g.saml(t.autoSAMLProvider) : r && n ? g.unknown() : r ? g.credentials() : n ? g.sso() : t.authMode ?? g.unknown();
|
|
22
22
|
}
|
|
@@ -50,13 +50,13 @@ Object.defineProperties(l, {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
function
|
|
53
|
+
function k(e) {
|
|
54
54
|
const { useCredentials: t, useSSO: r, useSAML: n, authMode: o, ...a } = e;
|
|
55
55
|
if (Object.assign(l, a), o !== void 0) {
|
|
56
56
|
l.authMode = o;
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
(t !== void 0 || r !== void 0 || n !== void 0) && (l.authMode =
|
|
59
|
+
(t !== void 0 || r !== void 0 || n !== void 0) && (l.authMode = ge(
|
|
60
60
|
{ useCredentials: t, useSSO: r, useSAML: n },
|
|
61
61
|
l
|
|
62
62
|
));
|
|
@@ -76,10 +76,10 @@ const H = {
|
|
|
76
76
|
this.store = {};
|
|
77
77
|
}
|
|
78
78
|
}, J = H;
|
|
79
|
-
function
|
|
79
|
+
function pe(e) {
|
|
80
80
|
return typeof window > "u" || !window.localStorage ? H.getItem(e) : window.localStorage.getItem(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function me(e) {
|
|
83
83
|
typeof window > "u" || !window.localStorage ? H.removeItem(e) : window.localStorage.removeItem(e);
|
|
84
84
|
}
|
|
85
85
|
function W(e) {
|
|
@@ -88,14 +88,14 @@ function W(e) {
|
|
|
88
88
|
function X(e, t) {
|
|
89
89
|
typeof window > "u" || !window.sessionStorage ? J.setItem(e, t) : window.sessionStorage.setItem(e, t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function L(e) {
|
|
92
92
|
typeof window > "u" || !window.sessionStorage ? J.removeItem(e) : window.sessionStorage.removeItem(e);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
function
|
|
94
|
+
const we = /.*:\(?([><=\d\-.AND ]+)\)?/;
|
|
95
|
+
function _t(e, t) {
|
|
96
96
|
return !e?.items || e?.items?.length === 0 ? [] : e.items.reduce((o, a) => {
|
|
97
97
|
if (!a.value || a.value === "") return o;
|
|
98
|
-
const s =
|
|
98
|
+
const s = _e(a, e.column);
|
|
99
99
|
return o.push({
|
|
100
100
|
operator: s.operator,
|
|
101
101
|
value: s.value,
|
|
@@ -106,8 +106,8 @@ function wt(e, t) {
|
|
|
106
106
|
}), o;
|
|
107
107
|
}, []);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
const r = t, n = e.value.match(
|
|
109
|
+
function _e(e, t) {
|
|
110
|
+
const r = t, n = e.value.match(we);
|
|
111
111
|
if (n?.[1]) {
|
|
112
112
|
const a = (n?.[1].split(" AND ")).map((s) => {
|
|
113
113
|
const c = s.indexOf(">=") !== -1 ? "gte" : "lt", i = s.substring(s.indexOf(" ") + 1);
|
|
@@ -132,20 +132,20 @@ function we(e, t) {
|
|
|
132
132
|
display: e.display
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function kt(e, t, r) {
|
|
136
136
|
return e.valuesAreExpressions ? t.display === r.display : t.value === r.value;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
return e.items && (e.items = e.items.map((t) =>
|
|
138
|
+
function ke(e) {
|
|
139
|
+
return e.items && (e.items = e.items.map((t) => ke(t))), e.items && e.items.some((t) => t.$selected || t.$opened) && (e.$opened = !0), e;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function St(e, t) {
|
|
142
142
|
const r = [];
|
|
143
143
|
if (e.length > 0) {
|
|
144
144
|
const n = /* @__PURE__ */ new Map(), a = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g, ""), s = new RegExp("\\b" + a, "i");
|
|
145
145
|
e.forEach((c) => {
|
|
146
146
|
if (c.display.length > 1) {
|
|
147
147
|
const i = c.display.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), d = s.exec(i);
|
|
148
|
-
|
|
148
|
+
se(
|
|
149
149
|
r,
|
|
150
150
|
n,
|
|
151
151
|
"/",
|
|
@@ -159,11 +159,11 @@ function kt(e, t) {
|
|
|
159
159
|
}
|
|
160
160
|
return r;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function se(e, t, r, n, o, a, s) {
|
|
163
163
|
const c = n.indexOf("/", r.length), i = n.substring(0, c + 1);
|
|
164
164
|
let d = t.get(i);
|
|
165
165
|
if (!d) {
|
|
166
|
-
const
|
|
166
|
+
const S = i.replace(/^\/|\/$/g, "");
|
|
167
167
|
d = {
|
|
168
168
|
value: n.substring(r.length, c),
|
|
169
169
|
count: o,
|
|
@@ -171,10 +171,10 @@ function ae(e, t, r, n, o, a, s) {
|
|
|
171
171
|
hasChildren: !1,
|
|
172
172
|
$level: a,
|
|
173
173
|
$opened: s >= i.length,
|
|
174
|
-
$path:
|
|
174
|
+
$path: S
|
|
175
175
|
}, t.set(i, d), e.push(d);
|
|
176
176
|
}
|
|
177
|
-
i.length < n.length && (d.hasChildren = !0,
|
|
177
|
+
i.length < n.length && (d.hasChildren = !0, se(
|
|
178
178
|
d.items,
|
|
179
179
|
t,
|
|
180
180
|
i,
|
|
@@ -184,15 +184,15 @@ function ae(e, t, r, n, o, a, s) {
|
|
|
184
184
|
s
|
|
185
185
|
));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function bt(e, t) {
|
|
188
188
|
return e.reduce((r, n) => (t(n) ? r.true.push(n) : r.false.push(n), r), { true: [], false: [] });
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const Se = /(([\+\-])?\(([^\)]+)\))|(([\+\-])?\[([^\]]+)\])|(([\+\-])?\"([^\"]+)\")|(([\+\-])?\/([^\/]+)\/)|(([\+\-])?(\S+))/g, be = 2, E = 3, ve = 5, T = 6, Ce = 8, ee = 9, Re = 11, te = 12, Pe = 14, re = 15;
|
|
191
191
|
function F(e) {
|
|
192
192
|
if (!e) return [];
|
|
193
|
-
const t = [], r = e.matchAll(
|
|
193
|
+
const t = [], r = e.matchAll(Se);
|
|
194
194
|
for (let n of r)
|
|
195
|
-
n[E] ? t.push({ type: "group", value: n[E], op: n[
|
|
195
|
+
n[E] ? t.push({ type: "group", value: n[E], op: n[be] }) : n[T] ? t.push({ type: "adjacent", value: n[T], op: n[ve] }) : n[ee] ? t.push({ type: "exact", value: n[ee], op: n[Ce] }) : n[te] ? t.push({ type: "regex", value: n[te], op: n[Re] }) : n[re] && t.push({ type: "token", value: n[re], op: n[Pe] });
|
|
196
196
|
return t;
|
|
197
197
|
}
|
|
198
198
|
function Y(e) {
|
|
@@ -212,28 +212,28 @@ function Y(e) {
|
|
|
212
212
|
}
|
|
213
213
|
}).join(" ");
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function vt(e, t, r) {
|
|
216
216
|
let n = F(e);
|
|
217
217
|
for (let o of t)
|
|
218
218
|
n.push({ type: "adjacent", value: o, op: r });
|
|
219
219
|
return Y(n);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Ct(e, t) {
|
|
222
222
|
const r = F(t), n = r.findIndex((o) => o.value === e);
|
|
223
223
|
return n !== -1 ? (r.splice(n, 1), t = Y(r)) : t;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Rt(e) {
|
|
226
226
|
const t = F(e).filter((r) => r.type !== "adjacent");
|
|
227
227
|
return Y(t);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Pt(e) {
|
|
230
230
|
return F(e).filter((t) => t.type === "adjacent").map((t) => t.value);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: o, unit: a, isFuture: s } =
|
|
232
|
+
function yt(e, t, r) {
|
|
233
|
+
const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: o, unit: a, isFuture: s } = ye(t, r);
|
|
234
234
|
return n.format(o * (s ? 1 : -1), a);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function ye(e, t) {
|
|
237
237
|
const r = new Date(e), n = t ? new Date(t) : /* @__PURE__ */ new Date(), o = Math.abs(n.getTime() - r.getTime());
|
|
238
238
|
return {
|
|
239
239
|
offset: Math.floor(o / (1e3 * 60 * 60 * 24)),
|
|
@@ -241,17 +241,17 @@ function Pe(e, t) {
|
|
|
241
241
|
isFuture: r > n
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function xt(e) {
|
|
245
245
|
const t = e.target;
|
|
246
246
|
return t && t.nodeName !== "INPUT" && t.nodeName !== "TEXTAREA";
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function Lt(e) {
|
|
249
249
|
if (e === void 0) return;
|
|
250
|
-
const { q: t, f: r, p: n, s: o, t: a, n: s, b: c } =
|
|
250
|
+
const { q: t, f: r, p: n, s: o, t: a, n: s, b: c } = $(e), [i] = e.split("?");
|
|
251
251
|
return {
|
|
252
252
|
path: i,
|
|
253
253
|
text: t,
|
|
254
|
-
filters: r ?
|
|
254
|
+
filters: r ? ie(r) : void 0,
|
|
255
255
|
page: n ? parseInt(n, 10) : void 0,
|
|
256
256
|
sort: o,
|
|
257
257
|
tab: a,
|
|
@@ -259,19 +259,19 @@ function xt(e) {
|
|
|
259
259
|
basket: c
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function $t(e) {
|
|
263
263
|
if (!e) return "";
|
|
264
264
|
const { text: t, filters: r, page: n, sort: o, tab: a, name: s, basket: c } = e, i = {};
|
|
265
265
|
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);
|
|
266
266
|
const d = new URLSearchParams(i).toString();
|
|
267
267
|
return d || "";
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Ut(e) {
|
|
270
270
|
if (e === void 0) return [];
|
|
271
|
-
const { f: t } =
|
|
272
|
-
return
|
|
271
|
+
const { f: t } = $(e);
|
|
272
|
+
return ie(t);
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function ie(e) {
|
|
275
275
|
const t = decodeURIComponent(e);
|
|
276
276
|
try {
|
|
277
277
|
return JSON.parse(t ?? "[]");
|
|
@@ -279,29 +279,29 @@ function se(e) {
|
|
|
279
279
|
return console.error(`Error parsing filters from URI: ${e}`), [];
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function $(e) {
|
|
283
283
|
const t = e.split("?")[1];
|
|
284
284
|
if (t === void 0) return {};
|
|
285
285
|
const r = new URLSearchParams(t);
|
|
286
286
|
return Object.fromEntries(r);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
const { q: t = "" } =
|
|
288
|
+
function Ot(e) {
|
|
289
|
+
const { q: t = "" } = $(e);
|
|
290
290
|
return t;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
const { id: t } =
|
|
292
|
+
function At(e) {
|
|
293
|
+
const { id: t } = $(e);
|
|
294
294
|
return decodeURIComponent(t);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
const { p: t = "0" } =
|
|
296
|
+
function Dt(e) {
|
|
297
|
+
const { p: t = "0" } = $(e);
|
|
298
298
|
return parseInt(t, 10);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
const { t } =
|
|
300
|
+
function It(e) {
|
|
301
|
+
const { t } = $(e);
|
|
302
302
|
return t;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Nt(e, t) {
|
|
305
305
|
if (!e)
|
|
306
306
|
return e;
|
|
307
307
|
let r = 0;
|
|
@@ -319,8 +319,8 @@ function It(e, t) {
|
|
|
319
319
|
let i = a;
|
|
320
320
|
for (; i; )
|
|
321
321
|
if (s === i.lang1 && c === i.lang2) {
|
|
322
|
-
const
|
|
323
|
-
return e.substring(
|
|
322
|
+
const S = j(e, i.end + 4, !0);
|
|
323
|
+
return e.substring(S.start, S.end);
|
|
324
324
|
} else
|
|
325
325
|
i = j(e, i.end + 4, !1);
|
|
326
326
|
const d = e.substring(a.start, a.end);
|
|
@@ -343,7 +343,7 @@ function j(e, t, r) {
|
|
|
343
343
|
lang2: -1
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function qt(e, t) {
|
|
347
347
|
const { useLocale: r, useLocaleAsPrefix: n, indexFile: o, path: a, folder: s } = t, c = r ? `${e}/` : null, i = n ? `${e}.${o}` : o ?? "";
|
|
348
348
|
return [a, s, `${c || ""}${i}`].filter((d) => d !== void 0).join("/");
|
|
349
349
|
}
|
|
@@ -355,7 +355,7 @@ function D(e) {
|
|
|
355
355
|
});
|
|
356
356
|
dispatchEvent(t);
|
|
357
357
|
}
|
|
358
|
-
const
|
|
358
|
+
const Ft = {
|
|
359
359
|
success: (e, t) => {
|
|
360
360
|
D({
|
|
361
361
|
type: "success",
|
|
@@ -385,17 +385,17 @@ const qt = {
|
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
|
-
var
|
|
388
|
+
var ce = /* @__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))(ce || {});
|
|
389
389
|
let I = {
|
|
390
390
|
level: 1,
|
|
391
391
|
enableConsoleOutput: !0
|
|
392
392
|
};
|
|
393
|
-
function
|
|
393
|
+
function Bt(e) {
|
|
394
394
|
I = { ...I, ...e };
|
|
395
395
|
}
|
|
396
396
|
function B(e, t, r) {
|
|
397
397
|
if (e < I.level) return;
|
|
398
|
-
const o = `${`[${
|
|
398
|
+
const o = `${`[${ce[e]}]`} ${t}`;
|
|
399
399
|
if (I.enableConsoleOutput)
|
|
400
400
|
switch (e) {
|
|
401
401
|
case 0:
|
|
@@ -415,7 +415,7 @@ function B(e, t, r) {
|
|
|
415
415
|
function U(e, t) {
|
|
416
416
|
B(0, e, t);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function b(e, t) {
|
|
419
419
|
B(1, e, t);
|
|
420
420
|
}
|
|
421
421
|
function N(e, t) {
|
|
@@ -430,28 +430,28 @@ function O(e) {
|
|
|
430
430
|
const { userOverride: n, userOverrideActive: o, bearerToken: a } = l;
|
|
431
431
|
return a && r.append("Authorization", `Bearer ${a}`), n && o && (r.append("sinequa-override-user", n.username), r.append("sinequa-override-domain", n.domain)), r;
|
|
432
432
|
}
|
|
433
|
-
class
|
|
433
|
+
class y extends Error {
|
|
434
434
|
status;
|
|
435
435
|
constructor(t, r) {
|
|
436
436
|
super(t), this.name = "ApiError", this.status = r;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
class ne extends
|
|
439
|
+
class ne extends y {
|
|
440
440
|
constructor(t = "Server error") {
|
|
441
441
|
super(t, 500), this.name = "ServerError";
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
class
|
|
444
|
+
class xe extends y {
|
|
445
445
|
constructor(t = "Request timed out") {
|
|
446
446
|
super(t, 408), this.name = "TimeoutError";
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
class G extends
|
|
449
|
+
class G extends y {
|
|
450
450
|
constructor(t = "Unauthorized access") {
|
|
451
451
|
super(t, 401), this.name = "UnauthorizedError";
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
async function
|
|
454
|
+
async function x(e, t = "json") {
|
|
455
455
|
const r = e.headers.get("sinequa-jwt-refresh");
|
|
456
456
|
if (r !== null && q(r), e.status === 200)
|
|
457
457
|
switch (t) {
|
|
@@ -491,7 +491,7 @@ async function Q(e, t) {
|
|
|
491
491
|
value: void 0
|
|
492
492
|
};
|
|
493
493
|
if (r || !n)
|
|
494
|
-
throw t === 401 ? new G() : t === 500 ? new ne() : new
|
|
494
|
+
throw t === 401 ? new G() : t === 500 ? new ne() : new y(`Request failed with status ${t}`, t);
|
|
495
495
|
const o = JSON.parse(new TextDecoder().decode(n));
|
|
496
496
|
throw new Error(
|
|
497
497
|
o.errorMessage || o.message || `Request failed with status ${t}`,
|
|
@@ -503,13 +503,13 @@ async function Q(e, t) {
|
|
|
503
503
|
}
|
|
504
504
|
);
|
|
505
505
|
} catch (r) {
|
|
506
|
-
throw r instanceof
|
|
506
|
+
throw r instanceof y ? r : t === 401 ? new G(r.message) : t === 500 ? new ne(r.message) : new y(
|
|
507
507
|
r.message ?? `Request failed with status ${t}`,
|
|
508
508
|
t
|
|
509
509
|
);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
async function
|
|
512
|
+
async function Le(e, t, r) {
|
|
513
513
|
const n = O(r?.headers), { backendUrl: o } = l, a = t ? `?${new URLSearchParams(t)}` : "", s = o ? `${o}/${e}${a}` : `${e}${a}`;
|
|
514
514
|
U(`Making DELETE request to: ${s}`);
|
|
515
515
|
try {
|
|
@@ -518,12 +518,12 @@ async function xe(e, t, r) {
|
|
|
518
518
|
credentials: "include",
|
|
519
519
|
headers: n
|
|
520
520
|
});
|
|
521
|
-
return
|
|
521
|
+
return x(c, r?.responseType);
|
|
522
522
|
} catch (c) {
|
|
523
523
|
throw f("Error making DELETE request:", c), c;
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
async function
|
|
526
|
+
async function w(e, t, r) {
|
|
527
527
|
const n = O(r?.headers), { backendUrl: o } = l, a = t ? `?${new URLSearchParams(t)}` : "";
|
|
528
528
|
e.startsWith("plugin") && (e = `api/v1/${e}`);
|
|
529
529
|
const s = o ? `${o}/${e}${a}` : `${e}${a}`;
|
|
@@ -533,14 +533,15 @@ async function _(e, t, r) {
|
|
|
533
533
|
method: "GET",
|
|
534
534
|
credentials: "include",
|
|
535
535
|
headers: n,
|
|
536
|
-
signal: r?.signal
|
|
536
|
+
signal: r?.signal,
|
|
537
|
+
redirect: r?.redirect
|
|
537
538
|
});
|
|
538
|
-
return
|
|
539
|
+
return x(c, r?.responseType);
|
|
539
540
|
} catch (c) {
|
|
540
541
|
throw f("Error making GET request:", c), c;
|
|
541
542
|
}
|
|
542
543
|
}
|
|
543
|
-
async function
|
|
544
|
+
async function $e(e, t, r) {
|
|
544
545
|
const n = O(r?.headers);
|
|
545
546
|
n.append("content-type", "application/json");
|
|
546
547
|
const { app: o, backendUrl: a } = l, s = {
|
|
@@ -558,7 +559,7 @@ async function Le(e, t, r) {
|
|
|
558
559
|
credentials: "include",
|
|
559
560
|
body: JSON.stringify(s)
|
|
560
561
|
});
|
|
561
|
-
return
|
|
562
|
+
return x(i, r?.responseType);
|
|
562
563
|
} catch (i) {
|
|
563
564
|
throw f("Error making PATCH request:", i), i;
|
|
564
565
|
}
|
|
@@ -584,12 +585,12 @@ async function u(e, t, r) {
|
|
|
584
585
|
body: JSON.stringify(s),
|
|
585
586
|
signal: r?.signal
|
|
586
587
|
});
|
|
587
|
-
return
|
|
588
|
+
return x(i, r?.responseType);
|
|
588
589
|
} catch (i) {
|
|
589
590
|
throw f("Error making POST request:", i), i;
|
|
590
591
|
}
|
|
591
592
|
}
|
|
592
|
-
async function
|
|
593
|
+
async function Mt(e, t, r) {
|
|
593
594
|
const n = O(r?.headers), { app: o, backendUrl: a } = l, s = {
|
|
594
595
|
app: o,
|
|
595
596
|
...t,
|
|
@@ -605,45 +606,45 @@ async function Bt(e, t, r) {
|
|
|
605
606
|
credentials: "include",
|
|
606
607
|
body: JSON.stringify(s)
|
|
607
608
|
});
|
|
608
|
-
return
|
|
609
|
+
return x(i, r?.responseType);
|
|
609
610
|
} catch (i) {
|
|
610
611
|
throw f("Error making PUT request:", i), i;
|
|
611
612
|
}
|
|
612
613
|
}
|
|
613
|
-
function
|
|
614
|
+
function C(e) {
|
|
614
615
|
const t = new AbortController(), { signal: r } = t;
|
|
615
616
|
return e && setTimeout(() => {
|
|
616
|
-
r.aborted || t.abort(new
|
|
617
|
+
r.aborted || t.abort(new xe(`Request timed out after ${e}ms`));
|
|
617
618
|
}, e), { controller: t, signal: r };
|
|
618
619
|
}
|
|
619
|
-
function
|
|
620
|
+
function le(e) {
|
|
620
621
|
if (!e) return;
|
|
621
622
|
const t = new Date(e);
|
|
622
623
|
return Number.isNaN(t.getTime()) ? void 0 : t;
|
|
623
624
|
}
|
|
624
|
-
function
|
|
625
|
-
const t =
|
|
625
|
+
function jt(e) {
|
|
626
|
+
const t = le(e);
|
|
626
627
|
return !!t && t.getTime() <= Date.now();
|
|
627
628
|
}
|
|
628
|
-
function
|
|
629
|
-
const r =
|
|
629
|
+
function Qt(e, t = 7) {
|
|
630
|
+
const r = le(e);
|
|
630
631
|
if (!r) return !1;
|
|
631
632
|
const n = Date.now(), o = n + t * 24 * 60 * 60 * 1e3, a = r.getTime();
|
|
632
633
|
return a > n && a <= o;
|
|
633
634
|
}
|
|
634
|
-
async function
|
|
635
|
+
async function Vt(e, t = 0, r = 1e3) {
|
|
635
636
|
let n;
|
|
636
637
|
for (let o = 0; o <= t; o++)
|
|
637
638
|
try {
|
|
638
639
|
return await e();
|
|
639
640
|
} catch (a) {
|
|
640
|
-
if (n = a, a instanceof
|
|
641
|
+
if (n = a, a instanceof y && a.status >= 400 && a.status < 500 && a.status !== 429 || a instanceof DOMException && a.name === "AbortError")
|
|
641
642
|
throw a;
|
|
642
643
|
o < t && (N(`Retrying request (${o + 1}/${t})`, { error: a }), await new Promise((s) => setTimeout(s, r)));
|
|
643
644
|
}
|
|
644
645
|
throw n;
|
|
645
646
|
}
|
|
646
|
-
function
|
|
647
|
+
function zt(e, t, r) {
|
|
647
648
|
if (!e || !t) return;
|
|
648
649
|
if (r) {
|
|
649
650
|
const a = Object.keys(t.queries).find((i) => i === r?.toLowerCase());
|
|
@@ -655,10 +656,10 @@ function Vt(e, t, r) {
|
|
|
655
656
|
const n = t.indexes?._?.columns, o = Object.entries(n).find((a) => a[1].aliases?.includes(e));
|
|
656
657
|
if (o) return o[0];
|
|
657
658
|
}
|
|
658
|
-
var
|
|
659
|
-
const
|
|
660
|
-
var
|
|
661
|
-
function
|
|
659
|
+
var P = /* @__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))(P || {}), 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 || {}), _ = /* @__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))(_ || {});
|
|
660
|
+
const Gt = "1.0";
|
|
661
|
+
var Ue = /* @__PURE__ */ ((e) => (e[e.Original = 0] = "Original", e[e.Corrected = 1] = "Corrected", e))(Ue || {}), Oe = /* @__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))(Oe || {});
|
|
662
|
+
function Ae(e) {
|
|
662
663
|
if (!e)
|
|
663
664
|
return h.none;
|
|
664
665
|
switch (e.toLocaleLowerCase()) {
|
|
@@ -697,41 +698,41 @@ function Oe(e) {
|
|
|
697
698
|
return h.none;
|
|
698
699
|
}
|
|
699
700
|
}
|
|
700
|
-
function
|
|
701
|
+
function De(e) {
|
|
701
702
|
switch (e) {
|
|
702
703
|
case "a":
|
|
703
|
-
return
|
|
704
|
+
return _.a;
|
|
704
705
|
case "c":
|
|
705
|
-
return
|
|
706
|
+
return _.c;
|
|
706
707
|
case "d":
|
|
707
|
-
return
|
|
708
|
+
return _.d;
|
|
708
709
|
case "e":
|
|
709
|
-
return
|
|
710
|
+
return _.e;
|
|
710
711
|
case "i":
|
|
711
|
-
return
|
|
712
|
+
return _.i;
|
|
712
713
|
case "l":
|
|
713
|
-
return
|
|
714
|
+
return _.l;
|
|
714
715
|
case "n":
|
|
715
|
-
return
|
|
716
|
+
return _.n;
|
|
716
717
|
case "t":
|
|
717
|
-
return
|
|
718
|
+
return _.t;
|
|
718
719
|
case "x":
|
|
719
|
-
return
|
|
720
|
+
return _.x;
|
|
720
721
|
case "z":
|
|
721
|
-
return
|
|
722
|
+
return _.z;
|
|
722
723
|
default:
|
|
723
|
-
return
|
|
724
|
+
return _.none;
|
|
724
725
|
}
|
|
725
726
|
}
|
|
726
|
-
function
|
|
727
|
-
let t =
|
|
727
|
+
function Ie(e) {
|
|
728
|
+
let t = _.none;
|
|
728
729
|
if (e)
|
|
729
730
|
for (const r of e)
|
|
730
|
-
t |=
|
|
731
|
+
t |= De(r);
|
|
731
732
|
return t;
|
|
732
733
|
}
|
|
733
|
-
function
|
|
734
|
-
const o =
|
|
734
|
+
function m(e, t, r, n) {
|
|
735
|
+
const o = Ae(t), a = Ie(r || "");
|
|
735
736
|
return {
|
|
736
737
|
name: e,
|
|
737
738
|
type: t,
|
|
@@ -741,29 +742,29 @@ function p(e, t, r, n) {
|
|
|
741
742
|
aliases: n
|
|
742
743
|
};
|
|
743
744
|
}
|
|
744
|
-
const
|
|
745
|
-
id:
|
|
746
|
-
text:
|
|
747
|
-
documentlanguages:
|
|
748
|
-
databasealias:
|
|
749
|
-
globalrelevance:
|
|
750
|
-
matchingpartnames:
|
|
751
|
-
matchlocations:
|
|
752
|
-
matchlocationsperpartname:
|
|
745
|
+
const Ht = {
|
|
746
|
+
id: m("id", "string"),
|
|
747
|
+
text: m("text", "varchar"),
|
|
748
|
+
documentlanguages: m("documentlanguages", "csv", "ci", ["language"]),
|
|
749
|
+
databasealias: m("databasealias", "varchar"),
|
|
750
|
+
globalrelevance: m("globalrelevance", "double"),
|
|
751
|
+
matchingpartnames: m("matchingpartnames", "csv"),
|
|
752
|
+
matchlocations: m("matchlocations", "csv"),
|
|
753
|
+
matchlocationsperpartname: m("matchlocationsperpartname", "varchar"),
|
|
753
754
|
// json
|
|
754
|
-
extracts:
|
|
755
|
-
extractsperpartname:
|
|
755
|
+
extracts: m("extracts", "csv"),
|
|
756
|
+
extractsperpartname: m("extractsperpartname", "varchar"),
|
|
756
757
|
// json
|
|
757
|
-
extractslocations:
|
|
758
|
-
documentweight:
|
|
759
|
-
groupcount:
|
|
760
|
-
accesslists:
|
|
758
|
+
extractslocations: m("extractslocations", "csv"),
|
|
759
|
+
documentweight: m("documentweight", "varchar"),
|
|
760
|
+
groupcount: m("groupcount", "integer"),
|
|
761
|
+
accesslists: m("accesslists", "varchar", void 0, ["accessLists"])
|
|
761
762
|
// json
|
|
762
763
|
};
|
|
763
|
-
function
|
|
764
|
+
function ue(e) {
|
|
764
765
|
return e.filter((t) => !!t);
|
|
765
766
|
}
|
|
766
|
-
const
|
|
767
|
+
const Jt = {
|
|
767
768
|
// ── Scalar (leaf) operators ───────────────────────────────────────────────
|
|
768
769
|
/** `field = value`. */
|
|
769
770
|
eq: (e, t) => ({
|
|
@@ -853,15 +854,15 @@ const Ht = {
|
|
|
853
854
|
* remains. A `not` node is always kept (even with a single operand).
|
|
854
855
|
*/
|
|
855
856
|
not: (...e) => {
|
|
856
|
-
const t =
|
|
857
|
+
const t = ue(e);
|
|
857
858
|
return t.length ? { operator: "not", filters: t } : void 0;
|
|
858
859
|
}
|
|
859
860
|
};
|
|
860
861
|
function oe(e, t) {
|
|
861
|
-
const r =
|
|
862
|
+
const r = ue(t);
|
|
862
863
|
return r.length === 0 ? void 0 : r.length === 1 ? r[0] : { operator: e, filters: r };
|
|
863
864
|
}
|
|
864
|
-
function
|
|
865
|
+
function Wt(e, t) {
|
|
865
866
|
let r = e[t];
|
|
866
867
|
return r === void 0 ? [] : (typeof r == "string" && (r = String(r).split(",")), Array.isArray(r) ? r.map((n) => {
|
|
867
868
|
if (typeof n == "string") return n.trim();
|
|
@@ -869,7 +870,7 @@ function Jt(e, t) {
|
|
|
869
870
|
return n.display.trim();
|
|
870
871
|
}).filter((n) => n !== void 0) : [String(r).trim()]);
|
|
871
872
|
}
|
|
872
|
-
function
|
|
873
|
+
function Xt(e, t) {
|
|
873
874
|
let r = e[t];
|
|
874
875
|
if (r === void 0) return [];
|
|
875
876
|
if (typeof r == "string" && (r = String(r).split(",")), Array.isArray(r))
|
|
@@ -889,32 +890,32 @@ function Wt(e, t) {
|
|
|
889
890
|
function M(e) {
|
|
890
891
|
return e !== null && typeof e == "object";
|
|
891
892
|
}
|
|
892
|
-
function
|
|
893
|
+
function Ne(e) {
|
|
893
894
|
return M(e) && Object.prototype.toString.call(e) === "[object ArrayBuffer]";
|
|
894
895
|
}
|
|
895
|
-
function
|
|
896
|
+
function qe(e) {
|
|
896
897
|
return M(e) && Object.prototype.toString.call(e) === "[object Blob]";
|
|
897
898
|
}
|
|
898
|
-
function
|
|
899
|
+
function Fe(e) {
|
|
899
900
|
return Object.prototype.toString.call(e) === "[object Date]";
|
|
900
901
|
}
|
|
901
|
-
function
|
|
902
|
+
function Be(e) {
|
|
902
903
|
return typeof e == "string";
|
|
903
904
|
}
|
|
904
|
-
function
|
|
905
|
-
return (M(e) || Array.isArray(e)) && !
|
|
905
|
+
function Yt(e) {
|
|
906
|
+
return (M(e) || Array.isArray(e)) && !Ne(e) && !qe(e) && !Be(e);
|
|
906
907
|
}
|
|
907
|
-
function
|
|
908
|
+
function Me(e) {
|
|
908
909
|
return e ? (e.getHours() * 60 * 60 + e.getMinutes() * 60 + e.getSeconds()) * 1e3 + e.getMilliseconds() : 0;
|
|
909
910
|
}
|
|
910
|
-
function
|
|
911
|
+
function je(e = !0) {
|
|
911
912
|
let t = Date.now();
|
|
912
913
|
return (e ? "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" : "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g, (n) => {
|
|
913
914
|
const o = (t + Math.random() * 16) % 16 | 0;
|
|
914
915
|
return t = Math.floor(t / 16), (n === "x" ? o : o & 3 | 8).toString(16);
|
|
915
916
|
});
|
|
916
917
|
}
|
|
917
|
-
function
|
|
918
|
+
function Kt(e) {
|
|
918
919
|
if (!e)
|
|
919
920
|
return "``";
|
|
920
921
|
if (e = String(e), e.search(/[\\`]/) === -1)
|
|
@@ -926,7 +927,7 @@ function Yt(e) {
|
|
|
926
927
|
}
|
|
927
928
|
return t.push("`"), t.join("");
|
|
928
929
|
}
|
|
929
|
-
function
|
|
930
|
+
function Zt(e) {
|
|
930
931
|
if (typeof crypto < "u" && crypto.subtle && typeof crypto.subtle.digest == "function")
|
|
931
932
|
try {
|
|
932
933
|
return crypto.subtle.digest("SHA-512", new TextEncoder().encode(e)).then(
|
|
@@ -939,17 +940,17 @@ function Kt(e) {
|
|
|
939
940
|
}
|
|
940
941
|
function V(e) {
|
|
941
942
|
let n = 2166136261;
|
|
942
|
-
for (let
|
|
943
|
-
n ^= e.charCodeAt(
|
|
943
|
+
for (let S = 0; S < e.length; S++)
|
|
944
|
+
n ^= e.charCodeAt(S), n = n * 16777619 >>> 0;
|
|
944
945
|
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;
|
|
945
946
|
return (i + i + i + i).substring(0, 128);
|
|
946
947
|
}
|
|
947
|
-
let z,
|
|
948
|
+
let z, de;
|
|
948
949
|
function A(e, t = !0) {
|
|
949
|
-
let r =
|
|
950
|
-
r && (
|
|
950
|
+
let r = Qe(e.$auditRecord);
|
|
951
|
+
r && (Ve(r), t && ze(r)), e.$auditRecord = r;
|
|
951
952
|
}
|
|
952
|
-
function
|
|
953
|
+
function Qe(e) {
|
|
953
954
|
if (!e)
|
|
954
955
|
return;
|
|
955
956
|
let t;
|
|
@@ -963,42 +964,42 @@ function je(e) {
|
|
|
963
964
|
}
|
|
964
965
|
return { auditEvents: t };
|
|
965
966
|
}
|
|
966
|
-
function
|
|
967
|
-
const t =
|
|
967
|
+
function Ve(e) {
|
|
968
|
+
const t = Ge();
|
|
968
969
|
return e.auditEvents?.forEach((r) => {
|
|
969
970
|
r.detail || (r.detail = {}), r.detail.sessionid = t;
|
|
970
971
|
}), e;
|
|
971
972
|
}
|
|
972
|
-
function
|
|
973
|
+
function ze(e) {
|
|
973
974
|
const t = typeof window < "u" ? decodeURIComponent(window.location.href) : "http://localhost";
|
|
974
975
|
return e?.auditEvents?.forEach((r) => {
|
|
975
976
|
r.detail || (r.detail = {}), r.detail.url = t;
|
|
976
977
|
}), e;
|
|
977
978
|
}
|
|
978
|
-
function ze() {
|
|
979
|
-
return (!z || Ge()) && (z = Me()), ue = /* @__PURE__ */ new Date(), z;
|
|
980
|
-
}
|
|
981
979
|
function Ge() {
|
|
982
|
-
return (
|
|
980
|
+
return (!z || He()) && (z = je()), de = /* @__PURE__ */ new Date(), z;
|
|
983
981
|
}
|
|
984
|
-
|
|
982
|
+
function He() {
|
|
983
|
+
return (/* @__PURE__ */ new Date()).getTime() - de.getTime() > 600 * 1e3;
|
|
984
|
+
}
|
|
985
|
+
async function Je(e, t = !0) {
|
|
985
986
|
const r = {
|
|
986
|
-
event:
|
|
987
|
+
event: P.None,
|
|
987
988
|
$auditRecord: e
|
|
988
989
|
};
|
|
989
990
|
return A(r, t), u("api/v1/audit.notify", r);
|
|
990
991
|
}
|
|
991
|
-
const
|
|
992
|
-
async function
|
|
992
|
+
const Et = { notify: Je };
|
|
993
|
+
async function Tt(e, t, r) {
|
|
993
994
|
const n = e.items?.length || 0, o = 10, a = {
|
|
994
995
|
query: { ...t, action: "aggregate", aggregations: { [e.name]: { skip: n, count: o } } },
|
|
995
996
|
$auditRecord: { auditEvents: [r] }
|
|
996
997
|
};
|
|
997
998
|
A(a);
|
|
998
|
-
const s = await u("api/v1/query", a), c = await
|
|
999
|
+
const s = await u("api/v1/query", a), c = await x(s), { aggregations: i } = c, d = i[0];
|
|
999
1000
|
return d.$hasMore = d.items.length > o, d.items = [...e.items, ...d.items], Promise.resolve(d);
|
|
1000
1001
|
}
|
|
1001
|
-
function
|
|
1002
|
+
function We(e, t) {
|
|
1002
1003
|
if (e.authMode?.kind === "credentials") return g.credentials();
|
|
1003
1004
|
if (e.bearerToken) return g.bearer(e.bearerToken);
|
|
1004
1005
|
const r = e.autoOAuthProvider || t?.autoOAuthProvider;
|
|
@@ -1006,18 +1007,18 @@ function Je(e, t) {
|
|
|
1006
1007
|
const n = e.autoSAMLProvider || t?.autoSAMLProvider;
|
|
1007
1008
|
return n ? g.saml(n) : g.unknown();
|
|
1008
1009
|
}
|
|
1009
|
-
async function
|
|
1010
|
+
async function er(e) {
|
|
1010
1011
|
const t = e || l.app, r = new URLSearchParams({ app: t || "" });
|
|
1011
|
-
return
|
|
1012
|
+
return w("api/v1/app", r);
|
|
1012
1013
|
}
|
|
1013
|
-
async function
|
|
1014
|
+
async function Xe() {
|
|
1014
1015
|
const { app: e } = l, t = new URLSearchParams({
|
|
1015
1016
|
app: e || "",
|
|
1016
1017
|
preLogin: "true"
|
|
1017
1018
|
});
|
|
1018
|
-
return
|
|
1019
|
+
return w("api/v1/app", t);
|
|
1019
1020
|
}
|
|
1020
|
-
function
|
|
1021
|
+
function Ye() {
|
|
1021
1022
|
let { backendUrl: e, app: t } = l;
|
|
1022
1023
|
if (typeof window < "u") {
|
|
1023
1024
|
if (e || (e = window.location.origin), !t) {
|
|
@@ -1026,16 +1027,16 @@ function Xe() {
|
|
|
1026
1027
|
);
|
|
1027
1028
|
r && (t = r[1]);
|
|
1028
1029
|
}
|
|
1029
|
-
|
|
1030
|
+
k({ backendUrl: e, app: t });
|
|
1030
1031
|
}
|
|
1031
|
-
return l.authMode?.kind === "credentials" ? (
|
|
1032
|
+
return l.authMode?.kind === "credentials" ? (k({
|
|
1032
1033
|
authMode: g.credentials(),
|
|
1033
1034
|
autoOAuthProvider: void 0,
|
|
1034
1035
|
autoSAMLProvider: void 0,
|
|
1035
1036
|
bearerToken: void 0
|
|
1036
|
-
}), Promise.resolve({})) :
|
|
1037
|
-
const n =
|
|
1038
|
-
return
|
|
1037
|
+
}), Promise.resolve({})) : Xe().then((r) => {
|
|
1038
|
+
const n = We(l, r);
|
|
1039
|
+
return k({
|
|
1039
1040
|
authMode: n,
|
|
1040
1041
|
// Persist the resolved providers as inputs so login()/redirect helpers can read them.
|
|
1041
1042
|
autoOAuthProvider: l.autoOAuthProvider || r.autoOAuthProvider,
|
|
@@ -1045,21 +1046,21 @@ function Xe() {
|
|
|
1045
1046
|
throw f("atomic:fetchAppPreLogin error", r), r;
|
|
1046
1047
|
});
|
|
1047
1048
|
}
|
|
1048
|
-
const
|
|
1049
|
-
async function
|
|
1049
|
+
const tr = Ye;
|
|
1050
|
+
async function rr(e, t, r = {}) {
|
|
1050
1051
|
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];
|
|
1051
1052
|
if ("errorCode" in s && "errorMessage" in s)
|
|
1052
1053
|
throw new Error(s.errorMessage);
|
|
1053
1054
|
return s;
|
|
1054
1055
|
}
|
|
1055
|
-
async function
|
|
1056
|
+
async function nr(e, t) {
|
|
1056
1057
|
const r = `api/v1/search.dataset/${e}`, { parameters: n = {}, datasets: o = [] } = t;
|
|
1057
1058
|
return (await u(r, { parameters: n, datasets: o })).datasets;
|
|
1058
1059
|
}
|
|
1059
|
-
async function
|
|
1060
|
-
return await
|
|
1060
|
+
async function or(e) {
|
|
1061
|
+
return await w(`api/v1/search.dataset/${e}`);
|
|
1061
1062
|
}
|
|
1062
|
-
async function
|
|
1063
|
+
async function ar(e, t = !0, r) {
|
|
1063
1064
|
try {
|
|
1064
1065
|
return (await u("api/v1/labels", {
|
|
1065
1066
|
action: "list",
|
|
@@ -1072,18 +1073,18 @@ async function or(e, t = !0, r) {
|
|
|
1072
1073
|
throw f("Error in fetchLabels", n), n;
|
|
1073
1074
|
}
|
|
1074
1075
|
}
|
|
1075
|
-
async function
|
|
1076
|
+
async function Ke() {
|
|
1076
1077
|
try {
|
|
1077
1078
|
const { app: e = "" } = l, t = new URLSearchParams({
|
|
1078
1079
|
app: e,
|
|
1079
1080
|
action: "getUserRights"
|
|
1080
1081
|
});
|
|
1081
|
-
return
|
|
1082
|
+
return w("api/v1/labels", t);
|
|
1082
1083
|
} catch (e) {
|
|
1083
1084
|
throw f("Error in getUserRights", e), e;
|
|
1084
1085
|
}
|
|
1085
1086
|
}
|
|
1086
|
-
async function
|
|
1087
|
+
async function Ze(e, t, r = !0) {
|
|
1087
1088
|
try {
|
|
1088
1089
|
const n = {
|
|
1089
1090
|
action: "add",
|
|
@@ -1093,7 +1094,7 @@ async function Ke(e, t, r = !0) {
|
|
|
1093
1094
|
$auditRecord: {
|
|
1094
1095
|
auditEvents: [
|
|
1095
1096
|
{
|
|
1096
|
-
type:
|
|
1097
|
+
type: P.Label_AddDoc,
|
|
1097
1098
|
detail: {
|
|
1098
1099
|
public: r,
|
|
1099
1100
|
label: e ? e.toString() : null,
|
|
@@ -1114,7 +1115,7 @@ async function Ke(e, t, r = !0) {
|
|
|
1114
1115
|
throw f("Error in add", n), n;
|
|
1115
1116
|
}
|
|
1116
1117
|
}
|
|
1117
|
-
async function
|
|
1118
|
+
async function Ee(e, t, r = !0) {
|
|
1118
1119
|
try {
|
|
1119
1120
|
const n = {
|
|
1120
1121
|
action: "remove",
|
|
@@ -1124,7 +1125,7 @@ async function Ze(e, t, r = !0) {
|
|
|
1124
1125
|
$auditRecord: {
|
|
1125
1126
|
auditEvents: [
|
|
1126
1127
|
{
|
|
1127
|
-
type:
|
|
1128
|
+
type: P.Label_RemoveDoc,
|
|
1128
1129
|
detail: {
|
|
1129
1130
|
public: r,
|
|
1130
1131
|
label: e ? e.toString() : null,
|
|
@@ -1145,7 +1146,7 @@ async function Ze(e, t, r = !0) {
|
|
|
1145
1146
|
throw f("Error in remove", n), n;
|
|
1146
1147
|
}
|
|
1147
1148
|
}
|
|
1148
|
-
async function
|
|
1149
|
+
async function Te(e, t, r = !0) {
|
|
1149
1150
|
try {
|
|
1150
1151
|
const n = {
|
|
1151
1152
|
action: "rename",
|
|
@@ -1153,7 +1154,7 @@ async function Ee(e, t, r = !0) {
|
|
|
1153
1154
|
newLabel: t,
|
|
1154
1155
|
public: r,
|
|
1155
1156
|
auditEvents: {
|
|
1156
|
-
type:
|
|
1157
|
+
type: P.Label_Rename,
|
|
1157
1158
|
detail: {
|
|
1158
1159
|
public: r,
|
|
1159
1160
|
oldlabel: e ? e.toString() : null,
|
|
@@ -1166,14 +1167,14 @@ async function Ee(e, t, r = !0) {
|
|
|
1166
1167
|
throw f("Error in rename", n), n;
|
|
1167
1168
|
}
|
|
1168
1169
|
}
|
|
1169
|
-
async function
|
|
1170
|
+
async function et(e, t = !0) {
|
|
1170
1171
|
try {
|
|
1171
1172
|
const r = {
|
|
1172
1173
|
action: "delete",
|
|
1173
1174
|
labels: e,
|
|
1174
1175
|
public: t,
|
|
1175
1176
|
auditEvents: {
|
|
1176
|
-
type:
|
|
1177
|
+
type: P.Label_Delete,
|
|
1177
1178
|
detail: {
|
|
1178
1179
|
public: t,
|
|
1179
1180
|
label: e ? e.toString() : null
|
|
@@ -1185,7 +1186,7 @@ async function Te(e, t = !0) {
|
|
|
1185
1186
|
throw f("Error in deleteLabels", r), r;
|
|
1186
1187
|
}
|
|
1187
1188
|
}
|
|
1188
|
-
async function
|
|
1189
|
+
async function tt(e, t, r = !0) {
|
|
1189
1190
|
try {
|
|
1190
1191
|
const n = {
|
|
1191
1192
|
action: "bulkAdd",
|
|
@@ -1193,7 +1194,7 @@ async function et(e, t, r = !0) {
|
|
|
1193
1194
|
query: t,
|
|
1194
1195
|
public: r,
|
|
1195
1196
|
auditEvents: {
|
|
1196
|
-
type:
|
|
1197
|
+
type: P.Label_Add,
|
|
1197
1198
|
detail: {
|
|
1198
1199
|
public: r,
|
|
1199
1200
|
label: e ? e.toString() : null,
|
|
@@ -1206,7 +1207,7 @@ async function et(e, t, r = !0) {
|
|
|
1206
1207
|
throw f("Error in bulkAdd", n), n;
|
|
1207
1208
|
}
|
|
1208
1209
|
}
|
|
1209
|
-
async function
|
|
1210
|
+
async function rt(e, t, r = !0) {
|
|
1210
1211
|
try {
|
|
1211
1212
|
const n = {
|
|
1212
1213
|
action: "bulkRemove",
|
|
@@ -1214,7 +1215,7 @@ async function tt(e, t, r = !0) {
|
|
|
1214
1215
|
query: t,
|
|
1215
1216
|
public: r,
|
|
1216
1217
|
auditEvents: {
|
|
1217
|
-
type:
|
|
1218
|
+
type: P.Label_Delete,
|
|
1218
1219
|
detail: {
|
|
1219
1220
|
public: r,
|
|
1220
1221
|
label: e ? e.toString() : null,
|
|
@@ -1227,16 +1228,16 @@ async function tt(e, t, r = !0) {
|
|
|
1227
1228
|
throw f("Error in bulkRemove", n), n;
|
|
1228
1229
|
}
|
|
1229
1230
|
}
|
|
1230
|
-
const
|
|
1231
|
-
getUserRights:
|
|
1232
|
-
add:
|
|
1233
|
-
remove:
|
|
1234
|
-
rename:
|
|
1235
|
-
delete:
|
|
1236
|
-
bulkAdd:
|
|
1237
|
-
bulkRemove:
|
|
1231
|
+
const sr = {
|
|
1232
|
+
getUserRights: Ke,
|
|
1233
|
+
add: Ze,
|
|
1234
|
+
remove: Ee,
|
|
1235
|
+
rename: Te,
|
|
1236
|
+
delete: et,
|
|
1237
|
+
bulkAdd: tt,
|
|
1238
|
+
bulkRemove: rt
|
|
1238
1239
|
};
|
|
1239
|
-
async function
|
|
1240
|
+
async function ir(e, t) {
|
|
1240
1241
|
if (typeof window > "u")
|
|
1241
1242
|
return u("api/v1/preview", {
|
|
1242
1243
|
action: "get",
|
|
@@ -1251,7 +1252,7 @@ async function sr(e, t) {
|
|
|
1251
1252
|
browserUrl: r
|
|
1252
1253
|
});
|
|
1253
1254
|
}
|
|
1254
|
-
async function
|
|
1255
|
+
async function cr(e) {
|
|
1255
1256
|
const t = new Headers();
|
|
1256
1257
|
t.append("content-type", "text");
|
|
1257
1258
|
const r = await fetch(
|
|
@@ -1261,25 +1262,25 @@ async function ir(e) {
|
|
|
1261
1262
|
headers: t
|
|
1262
1263
|
}
|
|
1263
1264
|
);
|
|
1264
|
-
|
|
1265
|
+
x(r);
|
|
1265
1266
|
}
|
|
1266
|
-
async function
|
|
1267
|
+
async function nt() {
|
|
1267
1268
|
const e = new URLSearchParams({
|
|
1268
1269
|
action: "get",
|
|
1269
1270
|
noAutoAuthentication: "true"
|
|
1270
1271
|
});
|
|
1271
|
-
return
|
|
1272
|
+
return w("api/v1/principal", e);
|
|
1272
1273
|
}
|
|
1273
|
-
async function
|
|
1274
|
+
async function ot(e) {
|
|
1274
1275
|
const t = {
|
|
1275
1276
|
noAutoAuthentication: "true",
|
|
1276
1277
|
...e
|
|
1277
1278
|
}, r = new URLSearchParams();
|
|
1278
1279
|
return Object.entries(t).forEach(([n, o]) => {
|
|
1279
1280
|
o !== void 0 && r.append(n, String(o));
|
|
1280
|
-
}),
|
|
1281
|
+
}), w("api/v1/principal/list", r);
|
|
1281
1282
|
}
|
|
1282
|
-
async function
|
|
1283
|
+
async function at(e) {
|
|
1283
1284
|
if (!e)
|
|
1284
1285
|
return Promise.reject(new Error("userid is required"));
|
|
1285
1286
|
const t = new URLSearchParams({
|
|
@@ -1287,38 +1288,38 @@ async function ot(e) {
|
|
|
1287
1288
|
noAutoAuthentication: "true",
|
|
1288
1289
|
userid: e
|
|
1289
1290
|
});
|
|
1290
|
-
return
|
|
1291
|
+
return w("api/v1/principal", t);
|
|
1291
1292
|
}
|
|
1292
|
-
async function
|
|
1293
|
+
async function st(e) {
|
|
1293
1294
|
if (e.length === 0)
|
|
1294
1295
|
return Promise.reject(new Error("userids is required"));
|
|
1295
1296
|
const t = new URLSearchParams({
|
|
1296
1297
|
noAutoAuthentication: "true",
|
|
1297
1298
|
userids: [...e].join(",")
|
|
1298
1299
|
});
|
|
1299
|
-
return
|
|
1300
|
+
return w("api/v1/principal/userids", t);
|
|
1300
1301
|
}
|
|
1301
|
-
const
|
|
1302
|
+
const lr = {
|
|
1302
1303
|
principal: {
|
|
1303
|
-
get:
|
|
1304
|
-
list:
|
|
1305
|
-
userid:
|
|
1306
|
-
userids:
|
|
1304
|
+
get: nt,
|
|
1305
|
+
list: ot,
|
|
1306
|
+
userid: at,
|
|
1307
|
+
userids: st
|
|
1307
1308
|
}
|
|
1308
|
-
},
|
|
1309
|
-
async function
|
|
1309
|
+
}, fe = 11;
|
|
1310
|
+
async function ur(e, t, r) {
|
|
1310
1311
|
const o = await u("api/v1/query", {
|
|
1311
1312
|
query: e,
|
|
1312
1313
|
$auditRecord: t,
|
|
1313
1314
|
queryIntentData: r
|
|
1314
1315
|
});
|
|
1315
1316
|
o.aggregations.forEach((s) => {
|
|
1316
|
-
s.$hasMore = !1, !s.isDistribution && !s.isTree && s.items && (s.$hasMore = s.items.length ===
|
|
1317
|
+
s.$hasMore = !1, !s.isDistribution && !s.isTree && s.items && (s.$hasMore = s.items.length === fe), s.isTree && s.items && K(s);
|
|
1317
1318
|
}), o.records?.map((s) => Object.assign(s, { value: s.title, type: "default" }));
|
|
1318
1319
|
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 };
|
|
1319
1320
|
return Promise.resolve(a);
|
|
1320
1321
|
}
|
|
1321
|
-
async function
|
|
1322
|
+
async function dr(e, t, r) {
|
|
1322
1323
|
const { app: n = "" } = l, o = {
|
|
1323
1324
|
methods: [],
|
|
1324
1325
|
mode: t,
|
|
@@ -1334,7 +1335,7 @@ async function ur(e, t, r) {
|
|
|
1334
1335
|
const a = await u("api/v1/multi", o);
|
|
1335
1336
|
a.results.forEach((c) => {
|
|
1336
1337
|
c.aggregations.forEach((i) => {
|
|
1337
|
-
i.$hasMore = !1, !i.isDistribution && !i.isTree && i.items && (i.$hasMore = i.items.length ===
|
|
1338
|
+
i.$hasMore = !1, !i.isDistribution && !i.isTree && i.items && (i.$hasMore = i.items.length === fe), i.isTree && K(i);
|
|
1338
1339
|
});
|
|
1339
1340
|
}), a.results.forEach((c) => c.records?.map((i) => Object.assign(i, { value: i.title, type: "default" })));
|
|
1340
1341
|
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 }));
|
|
@@ -1347,7 +1348,7 @@ function K(e, t = "", r = 0) {
|
|
|
1347
1348
|
n.push({ path: a, level: s }), o.$path = a, o.$level = s, o.hasChildren ? n = n.concat(K(o, a, s)) : o.hasChildren = !1;
|
|
1348
1349
|
}), n;
|
|
1349
1350
|
}
|
|
1350
|
-
async function
|
|
1351
|
+
async function fr({ model: e, appName: t, query: r, article: n }) {
|
|
1351
1352
|
const { webservice: o, format: a, maxcount: s, exportedColumns: c, export: i } = e, d = {
|
|
1352
1353
|
app: t,
|
|
1353
1354
|
webservice: o,
|
|
@@ -1367,12 +1368,12 @@ async function dr({ model: e, appName: t, query: r, article: n }) {
|
|
|
1367
1368
|
};
|
|
1368
1369
|
return A(d), await u("api/v1/search.queryexport", d, { responseType: "blob" });
|
|
1369
1370
|
}
|
|
1370
|
-
async function
|
|
1371
|
+
async function hr(e) {
|
|
1371
1372
|
return (await u("api/v1/queryintent", {
|
|
1372
1373
|
query: e
|
|
1373
1374
|
}))?.intents;
|
|
1374
1375
|
}
|
|
1375
|
-
async function
|
|
1376
|
+
async function gr(e, t, r) {
|
|
1376
1377
|
return (await u(
|
|
1377
1378
|
"api/v1/similardocuments",
|
|
1378
1379
|
{
|
|
@@ -1384,17 +1385,17 @@ async function hr(e, t, r) {
|
|
|
1384
1385
|
{ signal: r }
|
|
1385
1386
|
)).data;
|
|
1386
1387
|
}
|
|
1387
|
-
async function
|
|
1388
|
+
async function pr(e, t) {
|
|
1388
1389
|
return (await u("api/v1/query.links", {
|
|
1389
1390
|
webservice: e,
|
|
1390
1391
|
query: t
|
|
1391
1392
|
}))?.links?.map((o) => ({ ...o, query: t }));
|
|
1392
1393
|
}
|
|
1393
|
-
function
|
|
1394
|
+
function it(e, t) {
|
|
1394
1395
|
if (typeof e == "number")
|
|
1395
1396
|
return `${e}`;
|
|
1396
|
-
if (
|
|
1397
|
-
return
|
|
1397
|
+
if (Fe(e))
|
|
1398
|
+
return ct(e);
|
|
1398
1399
|
if (typeof e == "boolean")
|
|
1399
1400
|
return e ? "true" : "false";
|
|
1400
1401
|
if (e === null)
|
|
@@ -1407,11 +1408,11 @@ function st(e, t) {
|
|
|
1407
1408
|
}
|
|
1408
1409
|
return e;
|
|
1409
1410
|
}
|
|
1410
|
-
function
|
|
1411
|
+
function ct(e) {
|
|
1411
1412
|
if (!e)
|
|
1412
1413
|
return "";
|
|
1413
1414
|
try {
|
|
1414
|
-
if (
|
|
1415
|
+
if (Me(e) === 0)
|
|
1415
1416
|
return new Intl.DateTimeFormat("en-CA", {
|
|
1416
1417
|
year: "numeric",
|
|
1417
1418
|
month: "2-digit",
|
|
@@ -1430,7 +1431,7 @@ function it(e) {
|
|
|
1430
1431
|
return "Invalid date";
|
|
1431
1432
|
}
|
|
1432
1433
|
}
|
|
1433
|
-
async function
|
|
1434
|
+
async function mr(e, t, r, n, o) {
|
|
1434
1435
|
const { app: a } = l, s = {
|
|
1435
1436
|
app: a || "",
|
|
1436
1437
|
suggestQuery: e,
|
|
@@ -1448,7 +1449,7 @@ async function pr(e, t, r, n, o) {
|
|
|
1448
1449
|
throw console.error("Error fetching suggestions:", c), c;
|
|
1449
1450
|
}
|
|
1450
1451
|
}
|
|
1451
|
-
async function
|
|
1452
|
+
async function wr(e, t, r, n) {
|
|
1452
1453
|
const { app: o } = l;
|
|
1453
1454
|
return (await u(
|
|
1454
1455
|
"api/v1/suggestquery",
|
|
@@ -1461,7 +1462,7 @@ async function mr(e, t, r, n) {
|
|
|
1461
1462
|
}
|
|
1462
1463
|
)).suggests;
|
|
1463
1464
|
}
|
|
1464
|
-
async function
|
|
1465
|
+
async function _r(e, t, r) {
|
|
1465
1466
|
if (!t) return Promise.resolve([]);
|
|
1466
1467
|
const { app: n } = l, a = await u(
|
|
1467
1468
|
"api/v1/suggestfield",
|
|
@@ -1473,10 +1474,10 @@ async function wr(e, t, r) {
|
|
|
1473
1474
|
}
|
|
1474
1475
|
);
|
|
1475
1476
|
return a.suggests.forEach((s) => {
|
|
1476
|
-
s.display =
|
|
1477
|
+
s.display = it(s.display);
|
|
1477
1478
|
}), a.suggests;
|
|
1478
1479
|
}
|
|
1479
|
-
async function
|
|
1480
|
+
async function kr(e, t, r, n, o, a) {
|
|
1480
1481
|
return u("api/v1/doc.textchunks", {
|
|
1481
1482
|
id: e,
|
|
1482
1483
|
textChunks: t,
|
|
@@ -1486,14 +1487,14 @@ async function _r(e, t, r, n, o, a) {
|
|
|
1486
1487
|
rightSentencesCount: a
|
|
1487
1488
|
});
|
|
1488
1489
|
}
|
|
1489
|
-
async function
|
|
1490
|
+
async function Sr() {
|
|
1490
1491
|
const { app: e } = l, t = new URLSearchParams({
|
|
1491
1492
|
app: e || "",
|
|
1492
1493
|
action: "load"
|
|
1493
1494
|
});
|
|
1494
|
-
return
|
|
1495
|
+
return w("api/v1/usersettings", t);
|
|
1495
1496
|
}
|
|
1496
|
-
async function
|
|
1497
|
+
async function lt(e, t) {
|
|
1497
1498
|
const r = {
|
|
1498
1499
|
action: "save",
|
|
1499
1500
|
userSettings: e,
|
|
@@ -1501,7 +1502,7 @@ async function ct(e, t) {
|
|
|
1501
1502
|
};
|
|
1502
1503
|
return A(r), u("api/v1/usersettings", r);
|
|
1503
1504
|
}
|
|
1504
|
-
async function
|
|
1505
|
+
async function br(e, t) {
|
|
1505
1506
|
const n = {
|
|
1506
1507
|
action: "patch",
|
|
1507
1508
|
userSettings: e,
|
|
@@ -1509,50 +1510,50 @@ async function Sr(e, t) {
|
|
|
1509
1510
|
};
|
|
1510
1511
|
return A(n), u("api/v1/usersettings", n);
|
|
1511
1512
|
}
|
|
1512
|
-
async function
|
|
1513
|
-
return
|
|
1513
|
+
async function vr() {
|
|
1514
|
+
return lt({}, { type: "UserSettings_Reset" });
|
|
1514
1515
|
}
|
|
1515
|
-
async function
|
|
1516
|
+
async function Cr(e, t) {
|
|
1516
1517
|
return u("api/v2/security/password/change", { newPassword: e, currentPassword: t });
|
|
1517
1518
|
}
|
|
1518
|
-
async function
|
|
1519
|
+
async function Rr(e) {
|
|
1519
1520
|
const t = "api/v2/security/password/ask-reset-email", n = {
|
|
1520
1521
|
changePasswordRedirectUrl: `${window.location.origin}/login?mode=changepassword`,
|
|
1521
1522
|
userName: e
|
|
1522
1523
|
};
|
|
1523
1524
|
return u(t, n);
|
|
1524
1525
|
}
|
|
1525
|
-
async function Rr(e) {
|
|
1526
|
-
return await _(`api/v2/user-profile/${e}`);
|
|
1527
|
-
}
|
|
1528
1526
|
async function Pr(e) {
|
|
1527
|
+
return await w(`api/v2/user-profile/${e}`);
|
|
1528
|
+
}
|
|
1529
|
+
async function yr(e) {
|
|
1529
1530
|
return await u("api/v2/user-profile", e);
|
|
1530
1531
|
}
|
|
1531
|
-
async function
|
|
1532
|
-
return await
|
|
1532
|
+
async function xr(e, t, r) {
|
|
1533
|
+
return await $e(
|
|
1533
1534
|
`api/v2/user-profile/${e.data?.id}/${t}/${r}`,
|
|
1534
1535
|
e
|
|
1535
1536
|
);
|
|
1536
1537
|
}
|
|
1537
|
-
async function
|
|
1538
|
+
async function Lr(e, t, r) {
|
|
1538
1539
|
try {
|
|
1539
|
-
return (await
|
|
1540
|
+
return (await Le(
|
|
1540
1541
|
`api/v2/user-profile/${e.data?.id}/${t}/${r}`
|
|
1541
1542
|
)).success === !0;
|
|
1542
1543
|
} catch {
|
|
1543
1544
|
return !1;
|
|
1544
1545
|
}
|
|
1545
1546
|
}
|
|
1546
|
-
async function
|
|
1547
|
-
return await
|
|
1547
|
+
async function $r() {
|
|
1548
|
+
return await w("api/v2/version");
|
|
1548
1549
|
}
|
|
1549
|
-
const
|
|
1550
|
+
const R = 1e4, v = "sinequa-auth-redirect-attempt", ut = async () => {
|
|
1550
1551
|
const { autoOAuthProvider: e } = l;
|
|
1551
1552
|
if (!e)
|
|
1552
1553
|
throw new Error("autoOAuthProvider is not configured in globalConfig");
|
|
1553
1554
|
if (typeof window > "u")
|
|
1554
1555
|
try {
|
|
1555
|
-
const { signal: r } =
|
|
1556
|
+
const { signal: r } = C(R);
|
|
1556
1557
|
return await u(
|
|
1557
1558
|
"security.oauth",
|
|
1558
1559
|
{
|
|
@@ -1573,7 +1574,7 @@ const C = 1e4, b = "sinequa-auth-redirect-attempt", lt = async () => {
|
|
|
1573
1574
|
originalUrl: window.location.href
|
|
1574
1575
|
};
|
|
1575
1576
|
try {
|
|
1576
|
-
const { signal: r } =
|
|
1577
|
+
const { signal: r } = C(R), n = await u(
|
|
1577
1578
|
"api/v1/security.oauth",
|
|
1578
1579
|
t,
|
|
1579
1580
|
{ signal: r }
|
|
@@ -1581,24 +1582,24 @@ const C = 1e4, b = "sinequa-auth-redirect-attempt", lt = async () => {
|
|
|
1581
1582
|
if (n.redirectUrl) {
|
|
1582
1583
|
const o = new URL(n.redirectUrl, window.location.origin);
|
|
1583
1584
|
if (o.protocol === "https:" || o.protocol === "http:") {
|
|
1584
|
-
if (W(
|
|
1585
|
-
throw
|
|
1585
|
+
if (W(v))
|
|
1586
|
+
throw L(v), new Error(
|
|
1586
1587
|
`OAuth sign-in with provider "${e}" did not establish a session — its callback is likely not authorized for this application.`
|
|
1587
1588
|
);
|
|
1588
|
-
X(
|
|
1589
|
+
X(v, "1"), window.location.href = o.href;
|
|
1589
1590
|
}
|
|
1590
1591
|
}
|
|
1591
1592
|
return n;
|
|
1592
1593
|
} catch (r) {
|
|
1593
1594
|
throw f("Failed to authenticate with OAuth", r), r;
|
|
1594
1595
|
}
|
|
1595
|
-
},
|
|
1596
|
+
}, dt = async () => {
|
|
1596
1597
|
const { autoSAMLProvider: e } = l;
|
|
1597
1598
|
if (!e)
|
|
1598
1599
|
throw new Error("autoSAMLProvider is not configured in globalConfig");
|
|
1599
1600
|
if (typeof window > "u")
|
|
1600
1601
|
try {
|
|
1601
|
-
const { signal: r } =
|
|
1602
|
+
const { signal: r } = C(R);
|
|
1602
1603
|
return await u(
|
|
1603
1604
|
"security.saml",
|
|
1604
1605
|
{
|
|
@@ -1619,7 +1620,7 @@ const C = 1e4, b = "sinequa-auth-redirect-attempt", lt = async () => {
|
|
|
1619
1620
|
originalUrl: window.location.href
|
|
1620
1621
|
};
|
|
1621
1622
|
try {
|
|
1622
|
-
const { signal: r } =
|
|
1623
|
+
const { signal: r } = C(R), n = await u(
|
|
1623
1624
|
"api/v1/security.saml",
|
|
1624
1625
|
t,
|
|
1625
1626
|
{ signal: r }
|
|
@@ -1627,11 +1628,11 @@ const C = 1e4, b = "sinequa-auth-redirect-attempt", lt = async () => {
|
|
|
1627
1628
|
if (n.redirectUrl) {
|
|
1628
1629
|
const o = new URL(n.redirectUrl, window.location.origin);
|
|
1629
1630
|
if (o.protocol === "https:" || o.protocol === "http:") {
|
|
1630
|
-
if (W(
|
|
1631
|
-
throw
|
|
1631
|
+
if (W(v))
|
|
1632
|
+
throw L(v), new Error(
|
|
1632
1633
|
`SAML sign-in with provider "${e}" did not establish a session — its callback is likely not authorized for this application.`
|
|
1633
1634
|
);
|
|
1634
|
-
X(
|
|
1635
|
+
X(v, "1"), window.location.href = o.href;
|
|
1635
1636
|
}
|
|
1636
1637
|
}
|
|
1637
1638
|
return n;
|
|
@@ -1641,9 +1642,9 @@ const C = 1e4, b = "sinequa-auth-redirect-attempt", lt = async () => {
|
|
|
1641
1642
|
}, q = (e) => X(
|
|
1642
1643
|
"sinequa-credentials",
|
|
1643
1644
|
JSON.stringify({ data: { csrfToken: e } })
|
|
1644
|
-
),
|
|
1645
|
+
), ae = async () => {
|
|
1645
1646
|
try {
|
|
1646
|
-
const { signal: e } =
|
|
1647
|
+
const { signal: e } = C(R), t = await w(
|
|
1647
1648
|
"api/v1/challenge?action=getCsrfToken&suppressErrors=true",
|
|
1648
1649
|
void 0,
|
|
1649
1650
|
{ signal: e }
|
|
@@ -1655,7 +1656,7 @@ const C = 1e4, b = "sinequa-auth-redirect-attempt", lt = async () => {
|
|
|
1655
1656
|
throw f("Failed to get CSRF token", e), e;
|
|
1656
1657
|
}
|
|
1657
1658
|
};
|
|
1658
|
-
async function
|
|
1659
|
+
async function he(e) {
|
|
1659
1660
|
if (e) {
|
|
1660
1661
|
const { username: t, password: r } = e, n = {
|
|
1661
1662
|
action: "get",
|
|
@@ -1666,7 +1667,7 @@ async function fe(e) {
|
|
|
1666
1667
|
noAutoAuthentication: !0
|
|
1667
1668
|
};
|
|
1668
1669
|
try {
|
|
1669
|
-
const { signal: o } =
|
|
1670
|
+
const { signal: o } = C(R), a = await u(
|
|
1670
1671
|
"api/v1/security.webtoken",
|
|
1671
1672
|
n,
|
|
1672
1673
|
{ signal: o }
|
|
@@ -1690,7 +1691,7 @@ async function fe(e) {
|
|
|
1690
1691
|
const n = new Headers();
|
|
1691
1692
|
n.append("Sinequa-Force-Camel-Case", "true"), n.append("accept", "application/json"), n.append("Content-Type", "application/json"), n.append("Authorization", `Bearer ${r}`);
|
|
1692
1693
|
try {
|
|
1693
|
-
const { signal: o } =
|
|
1694
|
+
const { signal: o } = C(R), a = await u(
|
|
1694
1695
|
"api/v1/security.webtoken",
|
|
1695
1696
|
t,
|
|
1696
1697
|
{ headers: n, signal: o }
|
|
@@ -1713,73 +1714,92 @@ const Z = () => {
|
|
|
1713
1714
|
r
|
|
1714
1715
|
);
|
|
1715
1716
|
}
|
|
1716
|
-
const t =
|
|
1717
|
+
const t = pe("csrfToken");
|
|
1717
1718
|
return t || null;
|
|
1718
|
-
},
|
|
1719
|
+
}, ft = async () => {
|
|
1720
|
+
try {
|
|
1721
|
+
const { signal: e } = C(R);
|
|
1722
|
+
return await w("api/v1/principal", new URLSearchParams({ action: "get" }), {
|
|
1723
|
+
signal: e,
|
|
1724
|
+
redirect: "manual"
|
|
1725
|
+
}), b("Server auto-authenticated the user (OIDC)"), !0;
|
|
1726
|
+
} catch {
|
|
1727
|
+
return !1;
|
|
1728
|
+
}
|
|
1729
|
+
}, Ur = async (e) => {
|
|
1719
1730
|
if (e) {
|
|
1720
1731
|
const { username: r, password: n } = e;
|
|
1721
|
-
return !r || !n ? (f("Credentials are required for authentication"),
|
|
1732
|
+
return !r || !n ? (f("Credentials are required for authentication"), p(!1), !1) : ht({ username: r, password: n });
|
|
1722
1733
|
}
|
|
1723
1734
|
const t = l.authMode ?? g.unknown();
|
|
1724
1735
|
if (t.kind === "credentials")
|
|
1725
|
-
return
|
|
1736
|
+
return p(!1), !1;
|
|
1726
1737
|
if (t.kind === "bearer")
|
|
1727
|
-
return
|
|
1738
|
+
return gt();
|
|
1728
1739
|
if (Z())
|
|
1729
|
-
return
|
|
1740
|
+
return k({ isRedirectUrl: !1 }), L(v), p(!0), !0;
|
|
1730
1741
|
try {
|
|
1731
|
-
if (
|
|
1732
|
-
return
|
|
1742
|
+
if (b("Checking for an existing session via CSRF token retrieval"), await ae())
|
|
1743
|
+
return b("User already authenticated (existing session / SSO)"), L(v), t.kind === "unknown" && k({ authMode: g.sso() }), p(!0), !0;
|
|
1733
1744
|
} catch {
|
|
1734
1745
|
}
|
|
1735
1746
|
switch (t.kind) {
|
|
1736
1747
|
case "oauth":
|
|
1737
|
-
return
|
|
1748
|
+
return b("Initiating OAuth authentication flow"), await ut(), p(!1), !1;
|
|
1738
1749
|
case "saml":
|
|
1739
|
-
return
|
|
1750
|
+
return b("Initiating SAML authentication flow"), await dt(), p(!1), !1;
|
|
1740
1751
|
case "sso":
|
|
1741
|
-
return
|
|
1742
|
-
default:
|
|
1743
|
-
|
|
1752
|
+
return p(!1), !1;
|
|
1753
|
+
default: {
|
|
1754
|
+
if (b(
|
|
1755
|
+
"No provider declared — probing for server-side auto-authentication (OIDC)"
|
|
1756
|
+
), await ft())
|
|
1757
|
+
try {
|
|
1758
|
+
if (await ae())
|
|
1759
|
+
return b("User auto-authenticated by the server (OIDC)"), L(v), k({ authMode: g.sso() }), p(!0), !0;
|
|
1760
|
+
} catch {
|
|
1761
|
+
}
|
|
1762
|
+
return k({ authMode: g.credentials() }), p(!1), !1;
|
|
1763
|
+
}
|
|
1744
1764
|
}
|
|
1745
1765
|
};
|
|
1746
|
-
async function
|
|
1747
|
-
|
|
1766
|
+
async function ht(e) {
|
|
1767
|
+
b("Attempting authentication using credentials"), k({ authMode: g.credentials() });
|
|
1748
1768
|
const { userOverrideActive: t, userOverride: r } = l;
|
|
1749
|
-
|
|
1769
|
+
k({ userOverrideActive: !1, userOverride: void 0 });
|
|
1750
1770
|
try {
|
|
1751
|
-
await
|
|
1771
|
+
await he(e);
|
|
1752
1772
|
} catch (n) {
|
|
1753
|
-
throw
|
|
1773
|
+
throw p(!1), n;
|
|
1754
1774
|
}
|
|
1755
|
-
return
|
|
1775
|
+
return k({ userOverrideActive: t, userOverride: r }), p(!0), !0;
|
|
1756
1776
|
}
|
|
1757
|
-
async function
|
|
1777
|
+
async function gt() {
|
|
1758
1778
|
try {
|
|
1759
|
-
if (
|
|
1760
|
-
return
|
|
1779
|
+
if (b("Attempting authentication using bearer token"), await he())
|
|
1780
|
+
return p(!0), !0;
|
|
1761
1781
|
} catch (e) {
|
|
1762
|
-
throw f("Bearer authentication failed", e),
|
|
1782
|
+
throw f("Bearer authentication failed", e), p(!1), e;
|
|
1763
1783
|
}
|
|
1764
|
-
return
|
|
1784
|
+
return p(!1), !1;
|
|
1765
1785
|
}
|
|
1766
|
-
const
|
|
1786
|
+
const pt = async () => {
|
|
1767
1787
|
const e = new URLSearchParams({
|
|
1768
1788
|
action: "deleteWebTokenCookie",
|
|
1769
1789
|
noUserOverride: "true",
|
|
1770
1790
|
noAutoAuthentication: "true"
|
|
1771
|
-
}), { signal: t } =
|
|
1772
|
-
return
|
|
1791
|
+
}), { signal: t } = C(R);
|
|
1792
|
+
return w(
|
|
1773
1793
|
"api/v1/challenge",
|
|
1774
1794
|
e,
|
|
1775
1795
|
{ signal: t }
|
|
1776
1796
|
);
|
|
1777
1797
|
};
|
|
1778
|
-
async function
|
|
1798
|
+
async function Or() {
|
|
1779
1799
|
const { userOverrideActive: e } = l;
|
|
1780
|
-
if (
|
|
1800
|
+
if (mt(), !e)
|
|
1781
1801
|
try {
|
|
1782
|
-
const { methodresult: t, logoutUrl: r } = await
|
|
1802
|
+
const { methodresult: t, logoutUrl: r } = await pt();
|
|
1783
1803
|
if (t === "ok")
|
|
1784
1804
|
return r;
|
|
1785
1805
|
f("logout failed");
|
|
@@ -1787,141 +1807,142 @@ async function Ur() {
|
|
|
1787
1807
|
f("logout failed", t);
|
|
1788
1808
|
}
|
|
1789
1809
|
}
|
|
1790
|
-
function
|
|
1791
|
-
|
|
1810
|
+
function mt() {
|
|
1811
|
+
me("csrfToken"), L("sinequa-credentials"), p(!1);
|
|
1792
1812
|
}
|
|
1793
|
-
const
|
|
1813
|
+
const Ar = () => !!Z();
|
|
1794
1814
|
export {
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1815
|
+
lr as API,
|
|
1816
|
+
y as ApiError,
|
|
1817
|
+
Et as Audit,
|
|
1818
|
+
P as AuditEventType,
|
|
1799
1819
|
g as AuthMode,
|
|
1800
|
-
|
|
1820
|
+
Ue as DidYouMeanKind,
|
|
1801
1821
|
h as EngineType,
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1822
|
+
_ as EngineTypeModifier,
|
|
1823
|
+
ce as LogLevel,
|
|
1824
|
+
Gt as MINIMUM_COMPATIBLE_SERVER_API_VERSION,
|
|
1825
|
+
Oe as RFMDisplay,
|
|
1806
1826
|
ne as ServerError,
|
|
1807
|
-
|
|
1827
|
+
xe as TimeoutError,
|
|
1808
1828
|
G as UnauthorizedError,
|
|
1809
1829
|
A as addAuditAdditionalInfo,
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1830
|
+
vt as addConcepts,
|
|
1831
|
+
Ve as addSessionId,
|
|
1832
|
+
ze as addUrl,
|
|
1833
|
+
we as aggItemRegex,
|
|
1834
|
+
kt as aggregationItemStrictCompare,
|
|
1835
|
+
tr as appInitializerFn,
|
|
1836
|
+
bt as bisect,
|
|
1817
1837
|
K as buildPathsAndLevels,
|
|
1818
|
-
|
|
1819
|
-
|
|
1838
|
+
mt as clearSessionTokens,
|
|
1839
|
+
Bt as configureLogger,
|
|
1820
1840
|
O as createHeaders,
|
|
1821
|
-
|
|
1822
|
-
|
|
1841
|
+
C as createTimeoutController,
|
|
1842
|
+
yr as createUserProfile,
|
|
1823
1843
|
U as debug,
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1844
|
+
Le as del,
|
|
1845
|
+
Lr as deleteUserProfileProperty,
|
|
1846
|
+
vr as deleteUserSettings,
|
|
1847
|
+
pt as deleteWebTokenCookie,
|
|
1848
|
+
We as detectAuthMode,
|
|
1849
|
+
p as emitAuthenticatedEvent,
|
|
1830
1850
|
f as error,
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1851
|
+
Kt as escapeExpr,
|
|
1852
|
+
Qt as expiresSoon,
|
|
1853
|
+
Ht as extraColumns,
|
|
1854
|
+
Tt as fetchAggregation,
|
|
1855
|
+
er as fetchApp,
|
|
1856
|
+
Xe as fetchAppPreLogin,
|
|
1857
|
+
dr as fetchBulkQuery,
|
|
1858
|
+
Cr as fetchChangePassword,
|
|
1859
|
+
rr as fetchDataset,
|
|
1860
|
+
or as fetchDatasetList,
|
|
1861
|
+
nr as fetchDatasets,
|
|
1862
|
+
ar as fetchLabels,
|
|
1863
|
+
ir as fetchPreview,
|
|
1864
|
+
cr as fetchPreviewUrl,
|
|
1865
|
+
nt as fetchPrincipal,
|
|
1866
|
+
ot as fetchPrincipalList,
|
|
1867
|
+
at as fetchPrincipalUserid,
|
|
1868
|
+
st as fetchPrincipalUserids,
|
|
1869
|
+
ur as fetchQuery,
|
|
1870
|
+
fr as fetchQueryExport,
|
|
1871
|
+
hr as fetchQueryIntent,
|
|
1872
|
+
Rr as fetchSendPasswordResetEmail,
|
|
1873
|
+
gr as fetchSimilarDocuments,
|
|
1874
|
+
pr as fetchSponsoredLinks,
|
|
1875
|
+
mr as fetchSuggest,
|
|
1876
|
+
_r as fetchSuggestField,
|
|
1877
|
+
wr as fetchSuggestQuery,
|
|
1878
|
+
kr as fetchTextChunks,
|
|
1879
|
+
Pr as fetchUserProfile,
|
|
1880
|
+
Sr as fetchUserSettings,
|
|
1881
|
+
$r as fetchVersion,
|
|
1882
|
+
Jt as filter,
|
|
1883
|
+
w as get,
|
|
1884
|
+
Pt as getConcepts,
|
|
1885
|
+
ae as getCsrfToken,
|
|
1886
|
+
ie as getFiltersFromURI,
|
|
1887
|
+
Ut as getFiltersFromUrl,
|
|
1888
|
+
qt as getHelpIndexUrl,
|
|
1889
|
+
At as getIdFromUrl,
|
|
1890
|
+
he as getJWToken,
|
|
1891
|
+
Wt as getMetadata,
|
|
1892
|
+
Xt as getMetadataWithValues,
|
|
1893
|
+
ye as getOffsetFromDates,
|
|
1894
|
+
Dt as getQueryPageFromUrl,
|
|
1895
|
+
Lt as getQueryParamsFromUrl,
|
|
1896
|
+
It as getQueryTabFromUrl,
|
|
1897
|
+
Ot as getQueryTextFromUrl,
|
|
1898
|
+
yt as getRelativeDate,
|
|
1899
|
+
Me as getTime,
|
|
1880
1900
|
Z as getToken,
|
|
1881
|
-
|
|
1901
|
+
$t as getUrlParamsFromQueryParams,
|
|
1882
1902
|
l as globalConfig,
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1903
|
+
je as guid,
|
|
1904
|
+
x as handleResponse,
|
|
1905
|
+
b as info,
|
|
1906
|
+
Ye as initializeAppConfig,
|
|
1907
|
+
Ne as isArrayBuffer,
|
|
1908
|
+
Ar as isAuthenticated,
|
|
1909
|
+
qe as isBlob,
|
|
1910
|
+
Fe as isDate,
|
|
1911
|
+
jt as isExpired,
|
|
1912
|
+
Yt as isJsonable,
|
|
1913
|
+
xt as isNotInputEvent,
|
|
1894
1914
|
M as isObject,
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1915
|
+
Be as isString,
|
|
1916
|
+
sr as labels,
|
|
1917
|
+
ge as legacyBooleansToAuthMode,
|
|
1918
|
+
Ur as login,
|
|
1919
|
+
Or as logout,
|
|
1920
|
+
m as makeColumn,
|
|
1921
|
+
Ft as notify,
|
|
1922
|
+
ke as openParentNodes,
|
|
1903
1923
|
F as parseText,
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1924
|
+
_e as parseValueAndOperatorFromItem,
|
|
1925
|
+
$e as patch,
|
|
1926
|
+
xr as patchUserProfile,
|
|
1927
|
+
br as patchUserSettings,
|
|
1908
1928
|
u as post,
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1929
|
+
Mt as put,
|
|
1930
|
+
$ as queryParamsFromUrl,
|
|
1931
|
+
Ct as removeConcept,
|
|
1932
|
+
Rt as removeConcepts,
|
|
1933
|
+
zt as resolveToColumnName,
|
|
1914
1934
|
Y as rewriteText,
|
|
1915
|
-
|
|
1916
|
-
|
|
1935
|
+
lt as saveUserSettings,
|
|
1936
|
+
k as setGlobalConfig,
|
|
1917
1937
|
q as setToken,
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
ut as
|
|
1938
|
+
Zt as sha512,
|
|
1939
|
+
St as suggestionsToTreeAggregationNodes,
|
|
1940
|
+
Nt as sysLang,
|
|
1941
|
+
le as toDate,
|
|
1942
|
+
_t as translateAggregationToDateOptions,
|
|
1943
|
+
ft as tryAutoAuthentication,
|
|
1944
|
+
ut as tryOAuthAuthentication,
|
|
1945
|
+
dt as trySAMLAuthentication,
|
|
1925
1946
|
N as warn,
|
|
1926
|
-
|
|
1947
|
+
Vt as withRetry
|
|
1927
1948
|
};
|