@sinequa/atomic 0.0.123 → 0.0.124
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 +611 -507
- package/dist/atomic.umd.cjs +1 -1
- package/dist/helpers/columns.d.ts +27 -0
- package/dist/helpers/columns.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +5 -4
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/types/config/CCApp.d.ts +3 -1
- package/dist/types/config/CCApp.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/atomic.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
function
|
|
1
|
+
var oe = Object.defineProperty;
|
|
2
|
+
var ce = (e, t, r) => t in e ? oe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var X = (e, t, r) => ce(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
function w(e) {
|
|
5
5
|
const t = new CustomEvent("authenticated", {
|
|
6
6
|
bubbles: !0,
|
|
7
7
|
cancelable: !1,
|
|
@@ -9,33 +9,138 @@ function _(e) {
|
|
|
9
9
|
});
|
|
10
10
|
dispatchEvent(t);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const d = {
|
|
13
13
|
loginPath: "/login",
|
|
14
14
|
createRoutes: !1
|
|
15
15
|
};
|
|
16
|
-
function
|
|
17
|
-
Object.assign(
|
|
16
|
+
function b(e) {
|
|
17
|
+
Object.assign(d, e);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
var
|
|
19
|
+
function rt(e, t, r) {
|
|
20
|
+
var s, i, o, c;
|
|
21
21
|
if (!e || !t) return;
|
|
22
22
|
if (r) {
|
|
23
|
-
const l = Object.keys(t.queries).find((
|
|
24
|
-
let
|
|
25
|
-
l && (
|
|
26
|
-
const
|
|
27
|
-
var
|
|
28
|
-
return (
|
|
23
|
+
const l = Object.keys(t.queries).find((F) => F === (r == null ? void 0 : r.toLowerCase()));
|
|
24
|
+
let f;
|
|
25
|
+
l && (f = t.queries[l]);
|
|
26
|
+
const N = (i = ((s = f == null ? void 0 : f.columnsInfo) == null ? void 0 : s.columns) || []) == null ? void 0 : i.find((F) => {
|
|
27
|
+
var J, W;
|
|
28
|
+
return (W = (J = F.aliases) == null ? void 0 : J.split(",")) == null ? void 0 : W.includes(e);
|
|
29
29
|
});
|
|
30
|
-
if (
|
|
30
|
+
if (N) return N.name;
|
|
31
31
|
}
|
|
32
|
-
const n = (c = (
|
|
33
|
-
var
|
|
34
|
-
return (
|
|
32
|
+
const n = (c = (o = t.indexes) == null ? void 0 : o._) == null ? void 0 : c.columns, a = Object.entries(n).find((l) => {
|
|
33
|
+
var f;
|
|
34
|
+
return (f = l[1].aliases) == null ? void 0 : f.includes(e);
|
|
35
35
|
});
|
|
36
36
|
if (a) return a[0];
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
var v = /* @__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))(v || {}), _ = /* @__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))(_ || {}), S = /* @__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))(S || {});
|
|
39
|
+
const nt = "1.0";
|
|
40
|
+
var ie = /* @__PURE__ */ ((e) => (e[e.Original = 0] = "Original", e[e.Corrected = 1] = "Corrected", e))(ie || {}), le = /* @__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))(le || {});
|
|
41
|
+
function ue(e) {
|
|
42
|
+
if (!e)
|
|
43
|
+
return _.none;
|
|
44
|
+
switch (e.toLocaleLowerCase()) {
|
|
45
|
+
case "bool":
|
|
46
|
+
case "boolean":
|
|
47
|
+
return _.bool;
|
|
48
|
+
case "date":
|
|
49
|
+
return _.date;
|
|
50
|
+
case "datetime":
|
|
51
|
+
return _.dateTime;
|
|
52
|
+
case "time":
|
|
53
|
+
return _.time;
|
|
54
|
+
case "unsigned":
|
|
55
|
+
return _.unsigned;
|
|
56
|
+
case "integer":
|
|
57
|
+
return _.integer;
|
|
58
|
+
case "float":
|
|
59
|
+
return _.float;
|
|
60
|
+
case "double":
|
|
61
|
+
return _.double;
|
|
62
|
+
case "dates":
|
|
63
|
+
return _.dates;
|
|
64
|
+
case "datetimes":
|
|
65
|
+
return _.dateTimes;
|
|
66
|
+
case "times":
|
|
67
|
+
return _.times;
|
|
68
|
+
case "varchar":
|
|
69
|
+
return _.varchar;
|
|
70
|
+
case "binary":
|
|
71
|
+
return _.binary;
|
|
72
|
+
case "string":
|
|
73
|
+
return _.string;
|
|
74
|
+
case "csv":
|
|
75
|
+
return _.csv;
|
|
76
|
+
default:
|
|
77
|
+
return _.none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function de(e) {
|
|
81
|
+
switch (e) {
|
|
82
|
+
case "a":
|
|
83
|
+
return S.a;
|
|
84
|
+
case "c":
|
|
85
|
+
return S.c;
|
|
86
|
+
case "d":
|
|
87
|
+
return S.d;
|
|
88
|
+
case "e":
|
|
89
|
+
return S.e;
|
|
90
|
+
case "i":
|
|
91
|
+
return S.i;
|
|
92
|
+
case "l":
|
|
93
|
+
return S.l;
|
|
94
|
+
case "n":
|
|
95
|
+
return S.n;
|
|
96
|
+
case "t":
|
|
97
|
+
return S.t;
|
|
98
|
+
case "x":
|
|
99
|
+
return S.x;
|
|
100
|
+
case "z":
|
|
101
|
+
return S.z;
|
|
102
|
+
default:
|
|
103
|
+
return S.none;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function fe(e) {
|
|
107
|
+
let t = S.none;
|
|
108
|
+
if (e)
|
|
109
|
+
for (const r of e)
|
|
110
|
+
t |= de(r);
|
|
111
|
+
return t;
|
|
112
|
+
}
|
|
113
|
+
function m(e, t, r, n) {
|
|
114
|
+
const a = ue(t), s = fe(r || "");
|
|
115
|
+
return {
|
|
116
|
+
name: e,
|
|
117
|
+
type: t,
|
|
118
|
+
typeModifier: r,
|
|
119
|
+
eType: a,
|
|
120
|
+
eTypeModifier: s,
|
|
121
|
+
aliases: n
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
const at = {
|
|
125
|
+
id: m("id", "string"),
|
|
126
|
+
text: m("text", "varchar"),
|
|
127
|
+
documentlanguages: m("documentlanguages", "csv", "ci", ["language"]),
|
|
128
|
+
databasealias: m("databasealias", "varchar"),
|
|
129
|
+
globalrelevance: m("globalrelevance", "double"),
|
|
130
|
+
matchingpartnames: m("matchingpartnames", "csv"),
|
|
131
|
+
matchlocations: m("matchlocations", "csv"),
|
|
132
|
+
matchlocationsperpartname: m("matchlocationsperpartname", "varchar"),
|
|
133
|
+
// json
|
|
134
|
+
extracts: m("extracts", "csv"),
|
|
135
|
+
extractsperpartname: m("extractsperpartname", "varchar"),
|
|
136
|
+
// json
|
|
137
|
+
extractslocations: m("extractslocations", "csv"),
|
|
138
|
+
documentweight: m("documentweight", "varchar"),
|
|
139
|
+
groupcount: m("groupcount", "integer"),
|
|
140
|
+
accesslists: m("accesslists", "varchar", void 0, ["accessLists"])
|
|
141
|
+
// json
|
|
142
|
+
};
|
|
143
|
+
function st(e, t) {
|
|
39
144
|
const r = e[t];
|
|
40
145
|
return r === void 0 ? [] : Array.isArray(r) ? r.map((n) => {
|
|
41
146
|
if (typeof n == "string")
|
|
@@ -44,29 +149,29 @@ function Te(e, t) {
|
|
|
44
149
|
return n.display;
|
|
45
150
|
}).filter((n) => n !== void 0) : [String(r)];
|
|
46
151
|
}
|
|
47
|
-
function
|
|
152
|
+
function I(e) {
|
|
48
153
|
return e !== null && typeof e == "object";
|
|
49
154
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
155
|
+
function he(e) {
|
|
156
|
+
return I(e) && Object.prototype.toString.call(e) === "[object ArrayBuffer]";
|
|
52
157
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
158
|
+
function _e(e) {
|
|
159
|
+
return I(e) && Object.prototype.toString.call(e) === "[object Blob]";
|
|
55
160
|
}
|
|
56
|
-
function
|
|
161
|
+
function me(e) {
|
|
57
162
|
return typeof e == "string";
|
|
58
163
|
}
|
|
59
|
-
function
|
|
60
|
-
return (
|
|
164
|
+
function ot(e) {
|
|
165
|
+
return (I(e) || Array.isArray(e)) && !he(e) && !_e(e) && !me(e);
|
|
61
166
|
}
|
|
62
|
-
function
|
|
167
|
+
function we(e = !0) {
|
|
63
168
|
let t = Date.now();
|
|
64
169
|
return (e ? "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" : "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g, (n) => {
|
|
65
170
|
const a = (t + Math.random() * 16) % 16 | 0;
|
|
66
171
|
return t = Math.floor(t / 16), (n === "x" ? a : a & 3 | 8).toString(16);
|
|
67
172
|
});
|
|
68
173
|
}
|
|
69
|
-
function
|
|
174
|
+
function ct(e) {
|
|
70
175
|
if (!e)
|
|
71
176
|
return "``";
|
|
72
177
|
if (e = String(e), e.search(/[\\`]/) === -1)
|
|
@@ -78,65 +183,62 @@ function tt(e) {
|
|
|
78
183
|
}
|
|
79
184
|
return t.push("`"), t.join("");
|
|
80
185
|
}
|
|
81
|
-
function
|
|
186
|
+
function it(e) {
|
|
82
187
|
if (typeof crypto < "u" && crypto.subtle && typeof crypto.subtle.digest == "function")
|
|
83
188
|
try {
|
|
84
|
-
return crypto.subtle.digest("SHA-512", new TextEncoder().encode(e)).then((t) => Array.prototype.map.call(new Uint8Array(t), (r) => ("00" + r.toString(16)).slice(-2)).join("")).catch(() => Promise.resolve(
|
|
189
|
+
return crypto.subtle.digest("SHA-512", new TextEncoder().encode(e)).then((t) => Array.prototype.map.call(new Uint8Array(t), (r) => ("00" + r.toString(16)).slice(-2)).join("")).catch(() => Promise.resolve(B(e)));
|
|
85
190
|
} catch {
|
|
86
|
-
return Promise.resolve(
|
|
191
|
+
return Promise.resolve(B(e));
|
|
87
192
|
}
|
|
88
|
-
return Promise.resolve(
|
|
193
|
+
return Promise.resolve(B(e));
|
|
89
194
|
}
|
|
90
|
-
function
|
|
195
|
+
function B(e) {
|
|
91
196
|
let n = 2166136261;
|
|
92
|
-
for (let
|
|
93
|
-
n ^= e.charCodeAt(
|
|
94
|
-
const a = n.toString(16).padStart(8, "0"),
|
|
197
|
+
for (let f = 0; f < e.length; f++)
|
|
198
|
+
n ^= e.charCodeAt(f), n = n * 16777619 >>> 0;
|
|
199
|
+
const a = n.toString(16).padStart(8, "0"), s = ((n ^ 2863311530) >>> 0).toString(16).padStart(8, "0"), i = ((n ^ 1431655765) >>> 0).toString(16).padStart(8, "0"), o = ((n ^ 3435973836) >>> 0).toString(16).padStart(8, "0"), c = a + s + i + o;
|
|
95
200
|
return (c + c + c + c).substring(0, 128);
|
|
96
201
|
}
|
|
97
|
-
|
|
98
|
-
const nt = "1.0";
|
|
99
|
-
var fe = /* @__PURE__ */ ((e) => (e[e.Original = 0] = "Original", e[e.Corrected = 1] = "Corrected", e))(fe || {}), de = /* @__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))(de || {});
|
|
100
|
-
class g extends Error {
|
|
202
|
+
class p extends Error {
|
|
101
203
|
constructor(r, n) {
|
|
102
204
|
super(r);
|
|
103
|
-
|
|
205
|
+
X(this, "status");
|
|
104
206
|
this.name = "ApiError", this.status = n;
|
|
105
207
|
}
|
|
106
208
|
}
|
|
107
|
-
class
|
|
209
|
+
class ee extends p {
|
|
108
210
|
constructor(t = "Unauthorized access") {
|
|
109
211
|
super(t, 401), this.name = "UnauthorizedError";
|
|
110
212
|
}
|
|
111
213
|
}
|
|
112
|
-
class
|
|
214
|
+
class Se extends p {
|
|
113
215
|
constructor(t = "Server error") {
|
|
114
216
|
super(t, 500), this.name = "ServerError";
|
|
115
217
|
}
|
|
116
218
|
}
|
|
117
|
-
class
|
|
219
|
+
class ge extends p {
|
|
118
220
|
constructor(t = "Request timed out") {
|
|
119
221
|
super(t, 408), this.name = "TimeoutError";
|
|
120
222
|
}
|
|
121
223
|
}
|
|
122
|
-
function
|
|
224
|
+
function lt(e) {
|
|
123
225
|
const t = new AbortController(), { signal: r } = t;
|
|
124
226
|
return e && setTimeout(() => {
|
|
125
|
-
r.aborted || t.abort(new
|
|
227
|
+
r.aborted || t.abort(new ge(`Request timed out after ${e}ms`));
|
|
126
228
|
}, e), { controller: t, signal: r };
|
|
127
229
|
}
|
|
128
|
-
var
|
|
129
|
-
let
|
|
230
|
+
var te = /* @__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))(te || {});
|
|
231
|
+
let y = {
|
|
130
232
|
level: 1,
|
|
131
233
|
enableConsoleOutput: !0
|
|
132
234
|
};
|
|
133
|
-
function
|
|
134
|
-
|
|
235
|
+
function ut(e) {
|
|
236
|
+
y = { ...y, ...e };
|
|
135
237
|
}
|
|
136
|
-
function
|
|
137
|
-
if (e <
|
|
138
|
-
const a = `${`[${
|
|
139
|
-
if (
|
|
238
|
+
function D(e, t, r) {
|
|
239
|
+
if (e < y.level) return;
|
|
240
|
+
const a = `${`[${te[e]}]`} ${t}`;
|
|
241
|
+
if (y.enableConsoleOutput)
|
|
140
242
|
switch (e) {
|
|
141
243
|
case 0:
|
|
142
244
|
console.debug(a, r || "");
|
|
@@ -152,39 +254,39 @@ function U(e, t, r) {
|
|
|
152
254
|
break;
|
|
153
255
|
}
|
|
154
256
|
}
|
|
155
|
-
function
|
|
156
|
-
|
|
257
|
+
function R(e, t) {
|
|
258
|
+
D(0, e, t);
|
|
157
259
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
260
|
+
function g(e, t) {
|
|
261
|
+
D(1, e, t);
|
|
160
262
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
263
|
+
function L(e, t) {
|
|
264
|
+
D(2, e, t);
|
|
163
265
|
}
|
|
164
266
|
function h(e, t) {
|
|
165
|
-
|
|
267
|
+
D(3, e, t);
|
|
166
268
|
}
|
|
167
|
-
async function
|
|
269
|
+
async function dt(e, t = 0, r = 1e3) {
|
|
168
270
|
let n;
|
|
169
271
|
for (let a = 0; a <= t; a++)
|
|
170
272
|
try {
|
|
171
273
|
return await e();
|
|
172
|
-
} catch (
|
|
173
|
-
if (n =
|
|
174
|
-
throw
|
|
175
|
-
a < t && (
|
|
274
|
+
} catch (s) {
|
|
275
|
+
if (n = s, s instanceof p && s.status >= 400 && s.status < 500 && s.status !== 429 || s instanceof DOMException && s.name === "AbortError")
|
|
276
|
+
throw s;
|
|
277
|
+
a < t && (L(`Retrying request (${a + 1}/${t})`, { error: s }), await new Promise((i) => setTimeout(i, r)));
|
|
176
278
|
}
|
|
177
279
|
throw n;
|
|
178
280
|
}
|
|
179
|
-
function
|
|
180
|
-
const t =
|
|
281
|
+
function P(e) {
|
|
282
|
+
const t = H(), r = new Headers(e);
|
|
181
283
|
r.append("Sinequa-Force-Camel-Case", "true"), r.append("accept", "application/json"), t && r.append("Sinequa-csrf-token", t);
|
|
182
|
-
const { userOverride: n, userOverrideActive: a, bearerToken:
|
|
183
|
-
return
|
|
284
|
+
const { userOverride: n, userOverrideActive: a, bearerToken: s } = d;
|
|
285
|
+
return s && r.append("Authorization", `Bearer ${s}`), n && a && (r.append("sinequa-override-user", n.username), r.append("sinequa-override-domain", n.domain)), r;
|
|
184
286
|
}
|
|
185
|
-
async function
|
|
287
|
+
async function C(e, t = "json") {
|
|
186
288
|
const r = e.headers.get("sinequa-jwt-refresh");
|
|
187
|
-
if (r !== null &&
|
|
289
|
+
if (r !== null && U(r), e.status === 200)
|
|
188
290
|
switch (t) {
|
|
189
291
|
case "arraybuffer":
|
|
190
292
|
return await e.arrayBuffer();
|
|
@@ -197,104 +299,104 @@ async function b(e, t = "json") {
|
|
|
197
299
|
return await e.json();
|
|
198
300
|
}
|
|
199
301
|
if (e.status === 401) {
|
|
200
|
-
if (
|
|
201
|
-
throw
|
|
202
|
-
await
|
|
302
|
+
if (d.userOverrideActive)
|
|
303
|
+
throw d.userOverrideActive = !1, L("Unauthorized access attempt with user override", { endpoint: e.url }), new ee("Unauthorized... User override failed.");
|
|
304
|
+
await M(e, 401);
|
|
203
305
|
}
|
|
204
|
-
throw e.status === 500 && (h("Server error occurred", { endpoint: e.url }), await
|
|
306
|
+
throw e.status === 500 && (h("Server error occurred", { endpoint: e.url }), await M(e, 500)), L(`Unexpected response status: ${e.status}`, { endpoint: e.url }), new p(`Request failed with status ${e.status}`, e.status);
|
|
205
307
|
}
|
|
206
|
-
async function
|
|
308
|
+
async function M(e, t) {
|
|
207
309
|
var r;
|
|
208
310
|
try {
|
|
209
311
|
const { done: n, value: a } = await ((r = e.body) == null ? void 0 : r.getReader().read()) || { done: !0, value: void 0 };
|
|
210
312
|
if (n || !a)
|
|
211
|
-
throw new
|
|
212
|
-
const
|
|
213
|
-
throw
|
|
313
|
+
throw new p(`Request failed with status ${t}`, t);
|
|
314
|
+
const s = JSON.parse(new TextDecoder().decode(a));
|
|
315
|
+
throw s.status = t, s;
|
|
214
316
|
} catch (n) {
|
|
215
|
-
throw n instanceof
|
|
317
|
+
throw n instanceof p ? n : t === 401 ? new ee() : t === 500 ? new Se() : new p(`Request failed with status ${t}`, t);
|
|
216
318
|
}
|
|
217
319
|
}
|
|
218
|
-
const
|
|
219
|
-
function
|
|
320
|
+
const ke = /.*\:\(?([><=\d\-\.AND ]+)\)?/;
|
|
321
|
+
function ft(e, t) {
|
|
220
322
|
var a;
|
|
221
|
-
return !(e != null && e.items) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.length) === 0 ? [] : e.items.reduce((
|
|
222
|
-
if (!i.value || i.value === "") return
|
|
223
|
-
const
|
|
224
|
-
return
|
|
225
|
-
operator:
|
|
226
|
-
value:
|
|
227
|
-
display: i.display ||
|
|
228
|
-
filters:
|
|
323
|
+
return !(e != null && e.items) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.length) === 0 ? [] : e.items.reduce((s, i) => {
|
|
324
|
+
if (!i.value || i.value === "") return s;
|
|
325
|
+
const o = be(i, e.column);
|
|
326
|
+
return s.push({
|
|
327
|
+
operator: o.operator,
|
|
328
|
+
value: o.value,
|
|
329
|
+
display: i.display || o.display,
|
|
330
|
+
filters: o.filters,
|
|
229
331
|
disabled: i.count === 0,
|
|
230
332
|
hidden: i.count === 0 && e.isDistribution ? !t : !1
|
|
231
|
-
}),
|
|
333
|
+
}), s;
|
|
232
334
|
}, []);
|
|
233
335
|
}
|
|
234
|
-
function
|
|
235
|
-
const r = t, n = e.value.match(
|
|
336
|
+
function be(e, t) {
|
|
337
|
+
const r = t, n = e.value.match(ke);
|
|
236
338
|
if (n != null && n[1]) {
|
|
237
|
-
const
|
|
238
|
-
const
|
|
339
|
+
const s = (n == null ? void 0 : n[1].split(" AND ")).map((i) => {
|
|
340
|
+
const o = i.indexOf(">=") !== -1 ? "gte" : "lt";
|
|
239
341
|
let c = i.substring(i.indexOf(" ") + 1);
|
|
240
|
-
return { field: r, operator:
|
|
342
|
+
return { field: r, operator: o, value: c, display: e.display || e.value };
|
|
241
343
|
});
|
|
242
|
-
if (
|
|
243
|
-
return { field: r, operator: "and", filters:
|
|
244
|
-
if (
|
|
245
|
-
return { ...
|
|
344
|
+
if (s.length === 2)
|
|
345
|
+
return { field: r, operator: "and", filters: s, value: e.value, display: s[0].display || s[0].value };
|
|
346
|
+
if (s.length === 1)
|
|
347
|
+
return { ...s[0], field: r };
|
|
246
348
|
throw new Error("Failed to parse distribution expression");
|
|
247
349
|
}
|
|
248
350
|
return { field: r, operator: "eq", value: e.value, display: e.display };
|
|
249
351
|
}
|
|
250
|
-
function
|
|
352
|
+
function ht(e, t, r) {
|
|
251
353
|
return e.valuesAreExpressions ? t.display === r.display : t.value === r.value;
|
|
252
354
|
}
|
|
253
|
-
function
|
|
254
|
-
return e.items && (e.items = e.items.map((t) =>
|
|
355
|
+
function pe(e) {
|
|
356
|
+
return e.items && (e.items = e.items.map((t) => pe(t))), e.items && e.items.some((t) => t.$selected || t.$opened) && (e.$opened = !0), e;
|
|
255
357
|
}
|
|
256
|
-
function
|
|
358
|
+
function _t(e, t) {
|
|
257
359
|
const r = [];
|
|
258
360
|
if (e.length > 0) {
|
|
259
|
-
const n = /* @__PURE__ */ new Map(),
|
|
260
|
-
e.forEach((
|
|
261
|
-
if (
|
|
262
|
-
const c =
|
|
263
|
-
|
|
361
|
+
const n = /* @__PURE__ */ new Map(), s = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g, ""), i = new RegExp("\\b" + s, "i");
|
|
362
|
+
e.forEach((o) => {
|
|
363
|
+
if (o.display.length > 1) {
|
|
364
|
+
const c = o.display.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), l = i.exec(c);
|
|
365
|
+
re(r, n, "/", o.display, +(o.frequency || 0), 1, ((l == null ? void 0 : l.index) || 0) + t.length);
|
|
264
366
|
}
|
|
265
367
|
});
|
|
266
368
|
}
|
|
267
369
|
return r;
|
|
268
370
|
}
|
|
269
|
-
function
|
|
270
|
-
const
|
|
371
|
+
function re(e, t, r, n, a, s, i) {
|
|
372
|
+
const o = n.indexOf("/", r.length), c = n.substring(0, o + 1);
|
|
271
373
|
let l = t.get(c);
|
|
272
374
|
if (!l) {
|
|
273
|
-
const
|
|
375
|
+
const f = c.replace(/^\/|\/$/g, "");
|
|
274
376
|
l = {
|
|
275
|
-
value: n.substring(r.length,
|
|
377
|
+
value: n.substring(r.length, o),
|
|
276
378
|
count: a,
|
|
277
379
|
items: [],
|
|
278
380
|
hasChildren: !1,
|
|
279
|
-
$level:
|
|
381
|
+
$level: s,
|
|
280
382
|
$opened: i >= c.length,
|
|
281
|
-
$path:
|
|
383
|
+
$path: f
|
|
282
384
|
}, t.set(c, l), e.push(l);
|
|
283
385
|
}
|
|
284
|
-
c.length < n.length && (l.hasChildren = !0,
|
|
386
|
+
c.length < n.length && (l.hasChildren = !0, re(l.items, t, c, n, a, s + 1, i));
|
|
285
387
|
}
|
|
286
|
-
function
|
|
388
|
+
function mt(e, t) {
|
|
287
389
|
return e.reduce((r, n) => (t(n) ? r.true.push(n) : r.false.push(n), r), { true: [], false: [] });
|
|
288
390
|
}
|
|
289
|
-
const
|
|
290
|
-
function
|
|
391
|
+
const ve = /(([\+\-])?\(([^\)]+)\))|(([\+\-])?\[([^\]]+)\])|(([\+\-])?\"([^\"]+)\")|(([\+\-])?\/([^\/]+)\/)|(([\+\-])?(\S+))/g, Ce = 2, Y = 3, Re = 5, K = 6, xe = 8, Z = 9, Le = 11, E = 12, Pe = 14, T = 15;
|
|
392
|
+
function A(e) {
|
|
291
393
|
if (!e) return [];
|
|
292
|
-
const t = [], r = e.matchAll(
|
|
394
|
+
const t = [], r = e.matchAll(ve);
|
|
293
395
|
for (let n of r)
|
|
294
|
-
n[
|
|
396
|
+
n[Y] ? t.push({ type: "group", value: n[Y], op: n[Ce] }) : n[K] ? t.push({ type: "adjacent", value: n[K], op: n[Re] }) : n[Z] ? t.push({ type: "exact", value: n[Z], op: n[xe] }) : n[E] ? t.push({ type: "regex", value: n[E], op: n[Le] }) : n[T] && t.push({ type: "token", value: n[T], op: n[Pe] });
|
|
295
397
|
return t;
|
|
296
398
|
}
|
|
297
|
-
function
|
|
399
|
+
function G(e) {
|
|
298
400
|
return e.map((t) => {
|
|
299
401
|
const r = t.op || "";
|
|
300
402
|
switch (t.type) {
|
|
@@ -311,28 +413,28 @@ function B(e) {
|
|
|
311
413
|
}
|
|
312
414
|
}).join(" ");
|
|
313
415
|
}
|
|
314
|
-
function
|
|
315
|
-
let n =
|
|
416
|
+
function wt(e, t, r) {
|
|
417
|
+
let n = A(e);
|
|
316
418
|
for (let a of t)
|
|
317
419
|
n.push({ type: "adjacent", value: a, op: r });
|
|
318
|
-
return
|
|
420
|
+
return G(n);
|
|
319
421
|
}
|
|
320
|
-
function
|
|
321
|
-
const r =
|
|
322
|
-
return n !== -1 ? (r.splice(n, 1), t =
|
|
422
|
+
function St(e, t) {
|
|
423
|
+
const r = A(t), n = r.findIndex((a) => a.value === e);
|
|
424
|
+
return n !== -1 ? (r.splice(n, 1), t = G(r)) : t;
|
|
323
425
|
}
|
|
324
|
-
function
|
|
325
|
-
const t =
|
|
326
|
-
return
|
|
426
|
+
function gt(e) {
|
|
427
|
+
const t = A(e).filter((r) => r.type !== "adjacent");
|
|
428
|
+
return G(t);
|
|
327
429
|
}
|
|
328
|
-
function
|
|
329
|
-
return
|
|
430
|
+
function kt(e) {
|
|
431
|
+
return A(e).filter((t) => t.type === "adjacent").map((t) => t.value);
|
|
330
432
|
}
|
|
331
|
-
function
|
|
332
|
-
const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: a, unit:
|
|
333
|
-
return n.format(a * (i ? 1 : -1),
|
|
433
|
+
function bt(e, t, r) {
|
|
434
|
+
const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: a, unit: s, isFuture: i } = Oe(t, r);
|
|
435
|
+
return n.format(a * (i ? 1 : -1), s);
|
|
334
436
|
}
|
|
335
|
-
function
|
|
437
|
+
function Oe(e, t) {
|
|
336
438
|
const r = new Date(e), n = t ? new Date(t) : /* @__PURE__ */ new Date(), a = Math.abs(n.getTime() - r.getTime());
|
|
337
439
|
return {
|
|
338
440
|
offset: Math.floor(a / (1e3 * 60 * 60 * 24)),
|
|
@@ -340,37 +442,37 @@ function Re(e, t) {
|
|
|
340
442
|
isFuture: r > n
|
|
341
443
|
};
|
|
342
444
|
}
|
|
343
|
-
function
|
|
445
|
+
function pt(e) {
|
|
344
446
|
const t = e.target;
|
|
345
447
|
return t && t.nodeName !== "INPUT" && t.nodeName !== "TEXTAREA";
|
|
346
448
|
}
|
|
347
|
-
function
|
|
449
|
+
function vt(e) {
|
|
348
450
|
if (e === void 0) return;
|
|
349
|
-
const { q: t, f: r, p: n, s: a, t:
|
|
451
|
+
const { q: t, f: r, p: n, s: a, t: s, n: i, b: o } = x(e), [c] = e.split("?");
|
|
350
452
|
return {
|
|
351
453
|
path: c,
|
|
352
454
|
text: t,
|
|
353
|
-
filters: r ?
|
|
455
|
+
filters: r ? ne(r) : void 0,
|
|
354
456
|
page: n ? parseInt(n, 10) : void 0,
|
|
355
457
|
sort: a,
|
|
356
|
-
tab:
|
|
458
|
+
tab: s,
|
|
357
459
|
name: i,
|
|
358
|
-
basket:
|
|
460
|
+
basket: o
|
|
359
461
|
};
|
|
360
462
|
}
|
|
361
|
-
function
|
|
463
|
+
function Ct(e) {
|
|
362
464
|
if (!e) return "";
|
|
363
|
-
const { text: t, filters: r, page: n, sort: a, tab:
|
|
364
|
-
t && (c.q = t), r && (c.f = JSON.stringify(r)), n && (c.p = n.toString()), a && (c.s = a),
|
|
465
|
+
const { text: t, filters: r, page: n, sort: a, tab: s, name: i, basket: o } = e, c = {};
|
|
466
|
+
t && (c.q = t), r && (c.f = JSON.stringify(r)), n && (c.p = n.toString()), a && (c.s = a), s && (c.t = s), i && (c.n = i), o && (c.b = o);
|
|
365
467
|
const l = new URLSearchParams(c).toString();
|
|
366
468
|
return l || "";
|
|
367
469
|
}
|
|
368
|
-
function
|
|
470
|
+
function Rt(e) {
|
|
369
471
|
if (e === void 0) return [];
|
|
370
|
-
const { f: t } =
|
|
371
|
-
return
|
|
472
|
+
const { f: t } = x(e);
|
|
473
|
+
return ne(t);
|
|
372
474
|
}
|
|
373
|
-
function
|
|
475
|
+
function ne(e) {
|
|
374
476
|
const t = decodeURIComponent(e);
|
|
375
477
|
try {
|
|
376
478
|
return JSON.parse(t ?? "[]");
|
|
@@ -378,29 +480,29 @@ function ee(e) {
|
|
|
378
480
|
return console.error(`Error parsing filters from URI: ${e}`), [];
|
|
379
481
|
}
|
|
380
482
|
}
|
|
381
|
-
function
|
|
483
|
+
function x(e) {
|
|
382
484
|
const t = e.split("?")[1];
|
|
383
485
|
if (t === void 0) return {};
|
|
384
486
|
const r = new URLSearchParams(t);
|
|
385
487
|
return Object.fromEntries(r);
|
|
386
488
|
}
|
|
387
|
-
function
|
|
388
|
-
const { q: t = "" } =
|
|
489
|
+
function xt(e) {
|
|
490
|
+
const { q: t = "" } = x(e);
|
|
389
491
|
return t;
|
|
390
492
|
}
|
|
391
|
-
function
|
|
392
|
-
const { id: t } =
|
|
493
|
+
function Lt(e) {
|
|
494
|
+
const { id: t } = x(e);
|
|
393
495
|
return decodeURIComponent(t);
|
|
394
496
|
}
|
|
395
|
-
function
|
|
396
|
-
const { p: t = "0" } =
|
|
497
|
+
function Pt(e) {
|
|
498
|
+
const { p: t = "0" } = x(e);
|
|
397
499
|
return parseInt(t, 10);
|
|
398
500
|
}
|
|
399
|
-
function
|
|
400
|
-
const { t } =
|
|
501
|
+
function Ot(e) {
|
|
502
|
+
const { t } = x(e);
|
|
401
503
|
return t;
|
|
402
504
|
}
|
|
403
|
-
function
|
|
505
|
+
function $t(e, t) {
|
|
404
506
|
if (!e)
|
|
405
507
|
return e;
|
|
406
508
|
let r = 0;
|
|
@@ -411,21 +513,21 @@ function Rt(e, t) {
|
|
|
411
513
|
a++;
|
|
412
514
|
e[a] === "]" && (r = a + 1);
|
|
413
515
|
}
|
|
414
|
-
const
|
|
415
|
-
if (!
|
|
516
|
+
const s = q(e, r, !1);
|
|
517
|
+
if (!s)
|
|
416
518
|
return e;
|
|
417
|
-
const i = t.charCodeAt(0),
|
|
418
|
-
let c =
|
|
519
|
+
const i = t.charCodeAt(0), o = t.charCodeAt(1);
|
|
520
|
+
let c = s;
|
|
419
521
|
for (; c; )
|
|
420
|
-
if (i === c.lang1 &&
|
|
421
|
-
const
|
|
422
|
-
return e.substring(
|
|
522
|
+
if (i === c.lang1 && o === c.lang2) {
|
|
523
|
+
const f = q(e, c.end + 4, !0);
|
|
524
|
+
return e.substring(f.start, f.end);
|
|
423
525
|
} else
|
|
424
|
-
c =
|
|
425
|
-
const l = e.substring(
|
|
526
|
+
c = q(e, c.end + 4, !1);
|
|
527
|
+
const l = e.substring(s.start, s.end);
|
|
426
528
|
return l || e;
|
|
427
529
|
}
|
|
428
|
-
function
|
|
530
|
+
function q(e, t, r) {
|
|
429
531
|
for (let n = t, a = e.length - 3; n < a; n++)
|
|
430
532
|
if (e[n] === "[" && e[n + 3] === "]")
|
|
431
533
|
return {
|
|
@@ -442,11 +544,11 @@ function N(e, t, r) {
|
|
|
442
544
|
lang2: -1
|
|
443
545
|
};
|
|
444
546
|
}
|
|
445
|
-
function
|
|
446
|
-
const { useLocale: r, useLocaleAsPrefix: n, indexFile: a, path:
|
|
447
|
-
return [
|
|
547
|
+
function yt(e, t) {
|
|
548
|
+
const { useLocale: r, useLocaleAsPrefix: n, indexFile: a, path: s, folder: i } = t, o = r ? `${e}/` : null, c = n ? `${e}.${a}` : a ?? "";
|
|
549
|
+
return [s, i, `${o || ""}${c}`].filter((l) => l !== void 0).join("/");
|
|
448
550
|
}
|
|
449
|
-
function
|
|
551
|
+
function $(e) {
|
|
450
552
|
const t = new CustomEvent("notification", {
|
|
451
553
|
bubbles: !0,
|
|
452
554
|
cancelable: !1,
|
|
@@ -454,30 +556,30 @@ function P(e) {
|
|
|
454
556
|
});
|
|
455
557
|
dispatchEvent(t);
|
|
456
558
|
}
|
|
457
|
-
const
|
|
559
|
+
const Ut = {
|
|
458
560
|
success: (e, t) => {
|
|
459
|
-
|
|
561
|
+
$({
|
|
460
562
|
type: "success",
|
|
461
563
|
message: e,
|
|
462
564
|
options: t
|
|
463
565
|
});
|
|
464
566
|
},
|
|
465
567
|
info: (e, t) => {
|
|
466
|
-
|
|
568
|
+
$({
|
|
467
569
|
type: "info",
|
|
468
570
|
message: e,
|
|
469
571
|
options: t
|
|
470
572
|
});
|
|
471
573
|
},
|
|
472
574
|
warning: (e, t) => {
|
|
473
|
-
|
|
575
|
+
$({
|
|
474
576
|
type: "warning",
|
|
475
577
|
message: e,
|
|
476
578
|
options: t
|
|
477
579
|
});
|
|
478
580
|
},
|
|
479
581
|
error: (e, t) => {
|
|
480
|
-
|
|
582
|
+
$({
|
|
481
583
|
type: "error",
|
|
482
584
|
message: e,
|
|
483
585
|
options: t
|
|
@@ -485,7 +587,7 @@ const Pt = {
|
|
|
485
587
|
}
|
|
486
588
|
};
|
|
487
589
|
async function u(e, t, r) {
|
|
488
|
-
const n =
|
|
590
|
+
const n = P(r == null ? void 0 : r.headers), { app: a, backendUrl: s } = d, i = {
|
|
489
591
|
app: a,
|
|
490
592
|
...t,
|
|
491
593
|
locale: t.locale || navigator.language,
|
|
@@ -493,106 +595,106 @@ async function u(e, t, r) {
|
|
|
493
595
|
noAutoAuthentication: !0
|
|
494
596
|
};
|
|
495
597
|
e.startsWith("plugin") && (e = `api/v1/${e}`);
|
|
496
|
-
const
|
|
497
|
-
|
|
598
|
+
const o = s ? `${s}/${e}` : `${e}`;
|
|
599
|
+
R(`Making POST request to: ${o}`);
|
|
498
600
|
try {
|
|
499
|
-
const c = await fetch(
|
|
601
|
+
const c = await fetch(o, {
|
|
500
602
|
method: "POST",
|
|
501
603
|
headers: n,
|
|
502
604
|
credentials: "include",
|
|
503
605
|
body: JSON.stringify(i),
|
|
504
606
|
signal: r == null ? void 0 : r.signal
|
|
505
607
|
});
|
|
506
|
-
return
|
|
608
|
+
return C(c, r == null ? void 0 : r.responseType);
|
|
507
609
|
} catch (c) {
|
|
508
610
|
throw h("Error making POST request:", c), c;
|
|
509
611
|
}
|
|
510
612
|
}
|
|
511
|
-
async function
|
|
512
|
-
const n =
|
|
613
|
+
async function k(e, t, r) {
|
|
614
|
+
const n = P(r == null ? void 0 : r.headers), { backendUrl: a } = d, s = t ? `?${new URLSearchParams(t)}` : "";
|
|
513
615
|
e.startsWith("plugin") && (e = `api/v1/${e}`);
|
|
514
|
-
const i = a ? `${a}/${e}${
|
|
515
|
-
|
|
616
|
+
const i = a ? `${a}/${e}${s}` : `${e}${s}`;
|
|
617
|
+
R(`Making GET request to: ${i}`);
|
|
516
618
|
try {
|
|
517
|
-
const
|
|
619
|
+
const o = await fetch(i, {
|
|
518
620
|
method: "GET",
|
|
519
621
|
credentials: "include",
|
|
520
622
|
headers: n,
|
|
521
623
|
signal: r == null ? void 0 : r.signal
|
|
522
624
|
});
|
|
523
|
-
return
|
|
524
|
-
} catch (
|
|
525
|
-
throw h("Error making GET request:",
|
|
625
|
+
return C(o, r == null ? void 0 : r.responseType);
|
|
626
|
+
} catch (o) {
|
|
627
|
+
throw h("Error making GET request:", o), o;
|
|
526
628
|
}
|
|
527
629
|
}
|
|
528
|
-
async function
|
|
529
|
-
const n =
|
|
630
|
+
async function It(e, t, r) {
|
|
631
|
+
const n = P(r == null ? void 0 : r.headers), { app: a, backendUrl: s } = d, i = {
|
|
530
632
|
app: a,
|
|
531
633
|
...t,
|
|
532
634
|
locale: t.locale || navigator.language,
|
|
533
635
|
noUserOverride: !0,
|
|
534
636
|
noAutoAuthentication: !0
|
|
535
|
-
},
|
|
536
|
-
|
|
637
|
+
}, o = `${s}/${e}`;
|
|
638
|
+
R(`Making PUT request to: ${o}`);
|
|
537
639
|
try {
|
|
538
|
-
const c = await fetch(
|
|
640
|
+
const c = await fetch(o, {
|
|
539
641
|
method: "PUT",
|
|
540
642
|
headers: n,
|
|
541
643
|
credentials: "include",
|
|
542
644
|
body: JSON.stringify(i)
|
|
543
645
|
});
|
|
544
|
-
return
|
|
646
|
+
return C(c, r == null ? void 0 : r.responseType);
|
|
545
647
|
} catch (c) {
|
|
546
648
|
throw h("Error making PUT request:", c), c;
|
|
547
649
|
}
|
|
548
650
|
}
|
|
549
|
-
async function
|
|
550
|
-
const n =
|
|
551
|
-
|
|
651
|
+
async function Dt(e, t, r) {
|
|
652
|
+
const n = P(r == null ? void 0 : r.headers), { backendUrl: a } = d, s = t ? `?${new URLSearchParams(t)}` : "", i = a ? `${a}/${e}${s}` : `${e}${s}`;
|
|
653
|
+
R(`Making DELETE request to: ${i}`);
|
|
552
654
|
try {
|
|
553
|
-
const
|
|
655
|
+
const o = await fetch(i, {
|
|
554
656
|
method: "DELETE",
|
|
555
657
|
credentials: "include",
|
|
556
658
|
headers: n
|
|
557
659
|
});
|
|
558
|
-
return
|
|
559
|
-
} catch (
|
|
560
|
-
throw h("Error making DELETE request:",
|
|
660
|
+
return C(o, r == null ? void 0 : r.responseType);
|
|
661
|
+
} catch (o) {
|
|
662
|
+
throw h("Error making DELETE request:", o), o;
|
|
561
663
|
}
|
|
562
664
|
}
|
|
563
|
-
async function
|
|
564
|
-
const n =
|
|
665
|
+
async function At(e, t, r) {
|
|
666
|
+
const n = P(r == null ? void 0 : r.headers), { app: a, backendUrl: s } = d, i = {
|
|
565
667
|
app: a,
|
|
566
668
|
...t,
|
|
567
669
|
locale: t.locale || navigator.language,
|
|
568
670
|
noUserOverride: !0,
|
|
569
671
|
noAutoAuthentication: !0
|
|
570
|
-
},
|
|
571
|
-
|
|
672
|
+
}, o = s ? `${s}/${e}` : `${e}`;
|
|
673
|
+
R(`Making PATCH request to: ${o}`);
|
|
572
674
|
try {
|
|
573
|
-
const c = await fetch(
|
|
675
|
+
const c = await fetch(o, {
|
|
574
676
|
method: "PATCH",
|
|
575
677
|
headers: n,
|
|
576
678
|
credentials: "include",
|
|
577
679
|
body: JSON.stringify(i)
|
|
578
680
|
});
|
|
579
|
-
return
|
|
681
|
+
return C(c, r == null ? void 0 : r.responseType);
|
|
580
682
|
} catch (c) {
|
|
581
683
|
throw h("Error making PATCH request:", c), c;
|
|
582
684
|
}
|
|
583
685
|
}
|
|
584
|
-
let
|
|
585
|
-
function
|
|
586
|
-
let r =
|
|
587
|
-
r && (
|
|
686
|
+
let Q, ae;
|
|
687
|
+
function O(e, t = !0) {
|
|
688
|
+
let r = $e(e.$auditRecord);
|
|
689
|
+
r && (ye(r), t && Ue(r)), e.$auditRecord = r;
|
|
588
690
|
}
|
|
589
|
-
function
|
|
691
|
+
function $e(e) {
|
|
590
692
|
if (!e)
|
|
591
693
|
return;
|
|
592
694
|
let t;
|
|
593
695
|
if (Array.isArray(e))
|
|
594
696
|
t = e;
|
|
595
|
-
else if (
|
|
697
|
+
else if (I(e)) {
|
|
596
698
|
const r = e;
|
|
597
699
|
if (r.auditEvents || r.mlAuditEvents)
|
|
598
700
|
return r;
|
|
@@ -600,57 +702,57 @@ function xe(e) {
|
|
|
600
702
|
}
|
|
601
703
|
return { auditEvents: t };
|
|
602
704
|
}
|
|
603
|
-
function
|
|
705
|
+
function ye(e) {
|
|
604
706
|
var r;
|
|
605
|
-
const t =
|
|
707
|
+
const t = Ie();
|
|
606
708
|
return (r = e.auditEvents) == null || r.forEach((n) => {
|
|
607
709
|
n.detail || (n.detail = {}), n.detail.sessionid = t;
|
|
608
710
|
}), e;
|
|
609
711
|
}
|
|
610
|
-
function
|
|
712
|
+
function Ue(e) {
|
|
611
713
|
var r;
|
|
612
714
|
const t = typeof window < "u" ? decodeURIComponent(window.location.href) : "http://localhost";
|
|
613
715
|
return (r = e == null ? void 0 : e.auditEvents) == null || r.forEach((n) => {
|
|
614
716
|
n.detail || (n.detail = {}), n.detail.url = t;
|
|
615
717
|
}), e;
|
|
616
718
|
}
|
|
617
|
-
function
|
|
618
|
-
return (!
|
|
719
|
+
function Ie() {
|
|
720
|
+
return (!Q || De()) && (Q = we()), ae = /* @__PURE__ */ new Date(), Q;
|
|
619
721
|
}
|
|
620
|
-
function
|
|
621
|
-
return (/* @__PURE__ */ new Date()).getTime() -
|
|
722
|
+
function De() {
|
|
723
|
+
return (/* @__PURE__ */ new Date()).getTime() - ae.getTime() > 10 * 60 * 1e3;
|
|
622
724
|
}
|
|
623
|
-
async function
|
|
725
|
+
async function Ae(e, t = !0) {
|
|
624
726
|
const r = {
|
|
625
|
-
event:
|
|
727
|
+
event: v.None,
|
|
626
728
|
$auditRecord: e
|
|
627
729
|
};
|
|
628
|
-
return
|
|
730
|
+
return O(r, t), u("api/v1/audit.notify", r);
|
|
629
731
|
}
|
|
630
|
-
const
|
|
631
|
-
async function
|
|
632
|
-
var
|
|
633
|
-
const n = ((
|
|
732
|
+
const Nt = { notify: Ae };
|
|
733
|
+
async function Ft(e, t, r) {
|
|
734
|
+
var f;
|
|
735
|
+
const n = ((f = e.items) == null ? void 0 : f.length) || 0, a = 10, s = {
|
|
634
736
|
query: { ...t, action: "aggregate", aggregations: { [e.name]: { skip: n, count: a } } },
|
|
635
737
|
$auditRecord: { auditEvents: [r] }
|
|
636
738
|
};
|
|
637
|
-
|
|
638
|
-
const i = await u("api/v1/query",
|
|
739
|
+
O(s);
|
|
740
|
+
const i = await u("api/v1/query", s), o = await C(i), { aggregations: c } = o, l = c[0];
|
|
639
741
|
return l.$hasMore = l.items.length > a, l.items = [...e.items, ...l.items], Promise.resolve(l);
|
|
640
742
|
}
|
|
641
|
-
async function
|
|
642
|
-
const { app: e } =
|
|
643
|
-
return
|
|
743
|
+
async function Bt() {
|
|
744
|
+
const { app: e } = d, t = new URLSearchParams({ app: e || "" });
|
|
745
|
+
return k("api/v1/app", t);
|
|
644
746
|
}
|
|
645
|
-
async function
|
|
646
|
-
const { app: e } =
|
|
747
|
+
async function Ne() {
|
|
748
|
+
const { app: e } = d, t = new URLSearchParams({
|
|
647
749
|
app: e || "",
|
|
648
750
|
preLogin: "true"
|
|
649
751
|
});
|
|
650
|
-
return
|
|
752
|
+
return k("api/v1/app", t);
|
|
651
753
|
}
|
|
652
|
-
function
|
|
653
|
-
let { backendUrl: e, app: t } =
|
|
754
|
+
function qt() {
|
|
755
|
+
let { backendUrl: e, app: t } = d;
|
|
654
756
|
if (typeof window < "u") {
|
|
655
757
|
if (e || (e = window.location.origin), !t) {
|
|
656
758
|
const r = window.location.pathname.match(
|
|
@@ -658,39 +760,39 @@ function Dt() {
|
|
|
658
760
|
);
|
|
659
761
|
r && (t = r[1]);
|
|
660
762
|
}
|
|
661
|
-
|
|
662
|
-
...
|
|
763
|
+
b({
|
|
764
|
+
...d,
|
|
663
765
|
backendUrl: e,
|
|
664
766
|
app: t
|
|
665
767
|
});
|
|
666
768
|
}
|
|
667
|
-
return
|
|
668
|
-
const { autoOAuthProvider: n, autoSAMLProvider: a } =
|
|
669
|
-
return
|
|
670
|
-
...
|
|
769
|
+
return Ne().then((r) => {
|
|
770
|
+
const { autoOAuthProvider: n, autoSAMLProvider: a } = d, s = !n && !r.autoOAuthProvider && !a && !r.autoSAMLProvider;
|
|
771
|
+
return b({
|
|
772
|
+
...d,
|
|
671
773
|
autoOAuthProvider: n || r.autoOAuthProvider,
|
|
672
774
|
autoSAMLProvider: a || r.autoSAMLProvider,
|
|
673
|
-
useCredentials:
|
|
674
|
-
useSSO:
|
|
775
|
+
useCredentials: s,
|
|
776
|
+
useSSO: s
|
|
675
777
|
}), r;
|
|
676
778
|
}).catch((r) => {
|
|
677
779
|
throw h("atomic:fetchAppPreLogin error", r), r;
|
|
678
780
|
});
|
|
679
781
|
}
|
|
680
|
-
async function
|
|
681
|
-
const n = `api/v1/search.dataset/${e}/${t}`, a = await u(n, { parameters: r }),
|
|
782
|
+
async function Qt(e, t, r = {}) {
|
|
783
|
+
const n = `api/v1/search.dataset/${e}/${t}`, a = await u(n, { parameters: r }), s = t[0].toLowerCase() + t.slice(1), i = a.datasets[s];
|
|
682
784
|
if ("errorCode" in i && "errorMessage" in i)
|
|
683
785
|
throw new Error(i.errorMessage);
|
|
684
786
|
return i;
|
|
685
787
|
}
|
|
686
|
-
async function
|
|
788
|
+
async function Gt(e, t) {
|
|
687
789
|
const r = `api/v1/search.dataset/${e}`, { parameters: n = {}, datasets: a = [] } = t;
|
|
688
790
|
return (await u(r, { parameters: n, datasets: a })).datasets;
|
|
689
791
|
}
|
|
690
|
-
async function
|
|
691
|
-
return await
|
|
792
|
+
async function Vt(e) {
|
|
793
|
+
return await k(`api/v1/search.dataset/${e}`);
|
|
692
794
|
}
|
|
693
|
-
async function
|
|
795
|
+
async function jt(e, t = !0, r) {
|
|
694
796
|
try {
|
|
695
797
|
return (await u("api/v1/labels", {
|
|
696
798
|
action: "list",
|
|
@@ -703,18 +805,18 @@ async function Bt(e, t = !0, r) {
|
|
|
703
805
|
throw h("Error in fetchLabels", n), n;
|
|
704
806
|
}
|
|
705
807
|
}
|
|
706
|
-
async function
|
|
808
|
+
async function Fe() {
|
|
707
809
|
try {
|
|
708
|
-
const { app: e = "" } =
|
|
810
|
+
const { app: e = "" } = d, t = new URLSearchParams({
|
|
709
811
|
app: e,
|
|
710
812
|
action: "getUserRights"
|
|
711
813
|
});
|
|
712
|
-
return
|
|
814
|
+
return k("api/v1/labels", t);
|
|
713
815
|
} catch (e) {
|
|
714
816
|
throw h("Error in getUserRights", e), e;
|
|
715
817
|
}
|
|
716
818
|
}
|
|
717
|
-
async function
|
|
819
|
+
async function Be(e, t, r = !0) {
|
|
718
820
|
try {
|
|
719
821
|
const n = {
|
|
720
822
|
action: "add",
|
|
@@ -724,7 +826,7 @@ async function De(e, t, r = !0) {
|
|
|
724
826
|
$auditRecord: {
|
|
725
827
|
auditEvents: [
|
|
726
828
|
{
|
|
727
|
-
type:
|
|
829
|
+
type: v.Label_AddDoc,
|
|
728
830
|
detail: {
|
|
729
831
|
public: r,
|
|
730
832
|
label: e ? e.toString() : null,
|
|
@@ -745,7 +847,7 @@ async function De(e, t, r = !0) {
|
|
|
745
847
|
throw h("Error in add", n), n;
|
|
746
848
|
}
|
|
747
849
|
}
|
|
748
|
-
async function
|
|
850
|
+
async function qe(e, t, r = !0) {
|
|
749
851
|
try {
|
|
750
852
|
const n = {
|
|
751
853
|
action: "remove",
|
|
@@ -755,7 +857,7 @@ async function Ae(e, t, r = !0) {
|
|
|
755
857
|
$auditRecord: {
|
|
756
858
|
auditEvents: [
|
|
757
859
|
{
|
|
758
|
-
type:
|
|
860
|
+
type: v.Label_RemoveDoc,
|
|
759
861
|
detail: {
|
|
760
862
|
public: r,
|
|
761
863
|
label: e ? e.toString() : null,
|
|
@@ -776,7 +878,7 @@ async function Ae(e, t, r = !0) {
|
|
|
776
878
|
throw h("Error in remove", n), n;
|
|
777
879
|
}
|
|
778
880
|
}
|
|
779
|
-
async function
|
|
881
|
+
async function Qe(e, t, r = !0) {
|
|
780
882
|
try {
|
|
781
883
|
const n = {
|
|
782
884
|
action: "rename",
|
|
@@ -784,7 +886,7 @@ async function Ne(e, t, r = !0) {
|
|
|
784
886
|
newLabel: t,
|
|
785
887
|
public: r,
|
|
786
888
|
auditEvents: {
|
|
787
|
-
type:
|
|
889
|
+
type: v.Label_Rename,
|
|
788
890
|
detail: {
|
|
789
891
|
public: r,
|
|
790
892
|
oldlabel: e ? e.toString() : null,
|
|
@@ -797,14 +899,14 @@ async function Ne(e, t, r = !0) {
|
|
|
797
899
|
throw h("Error in rename", n), n;
|
|
798
900
|
}
|
|
799
901
|
}
|
|
800
|
-
async function
|
|
902
|
+
async function Ge(e, t = !0) {
|
|
801
903
|
try {
|
|
802
904
|
const r = {
|
|
803
905
|
action: "delete",
|
|
804
906
|
labels: e,
|
|
805
907
|
public: t,
|
|
806
908
|
auditEvents: {
|
|
807
|
-
type:
|
|
909
|
+
type: v.Label_Delete,
|
|
808
910
|
detail: {
|
|
809
911
|
public: t,
|
|
810
912
|
label: e ? e.toString() : null
|
|
@@ -816,7 +918,7 @@ async function Fe(e, t = !0) {
|
|
|
816
918
|
throw h("Error in deleteLabels", r), r;
|
|
817
919
|
}
|
|
818
920
|
}
|
|
819
|
-
async function
|
|
921
|
+
async function Ve(e, t, r = !0) {
|
|
820
922
|
try {
|
|
821
923
|
const n = {
|
|
822
924
|
action: "bulkAdd",
|
|
@@ -824,7 +926,7 @@ async function Be(e, t, r = !0) {
|
|
|
824
926
|
query: t,
|
|
825
927
|
public: r,
|
|
826
928
|
auditEvents: {
|
|
827
|
-
type:
|
|
929
|
+
type: v.Label_Add,
|
|
828
930
|
detail: {
|
|
829
931
|
public: r,
|
|
830
932
|
label: e ? e.toString() : null,
|
|
@@ -837,7 +939,7 @@ async function Be(e, t, r = !0) {
|
|
|
837
939
|
throw h("Error in bulkAdd", n), n;
|
|
838
940
|
}
|
|
839
941
|
}
|
|
840
|
-
async function
|
|
942
|
+
async function je(e, t, r = !0) {
|
|
841
943
|
try {
|
|
842
944
|
const n = {
|
|
843
945
|
action: "bulkRemove",
|
|
@@ -845,7 +947,7 @@ async function qe(e, t, r = !0) {
|
|
|
845
947
|
query: t,
|
|
846
948
|
public: r,
|
|
847
949
|
auditEvents: {
|
|
848
|
-
type:
|
|
950
|
+
type: v.Label_Delete,
|
|
849
951
|
detail: {
|
|
850
952
|
public: r,
|
|
851
953
|
label: e ? e.toString() : null,
|
|
@@ -858,16 +960,16 @@ async function qe(e, t, r = !0) {
|
|
|
858
960
|
throw h("Error in bulkRemove", n), n;
|
|
859
961
|
}
|
|
860
962
|
}
|
|
861
|
-
const
|
|
862
|
-
getUserRights:
|
|
863
|
-
add:
|
|
864
|
-
remove:
|
|
865
|
-
rename:
|
|
866
|
-
delete:
|
|
867
|
-
bulkAdd:
|
|
868
|
-
bulkRemove:
|
|
963
|
+
const zt = {
|
|
964
|
+
getUserRights: Fe,
|
|
965
|
+
add: Be,
|
|
966
|
+
remove: qe,
|
|
967
|
+
rename: Qe,
|
|
968
|
+
delete: Ge,
|
|
969
|
+
bulkAdd: Ve,
|
|
970
|
+
bulkRemove: je
|
|
869
971
|
};
|
|
870
|
-
async function
|
|
972
|
+
async function Ht(e, t) {
|
|
871
973
|
if (typeof window > "u")
|
|
872
974
|
return u("api/v1/preview", {
|
|
873
975
|
action: "get",
|
|
@@ -882,7 +984,7 @@ async function Qt(e, t) {
|
|
|
882
984
|
browserUrl: r
|
|
883
985
|
});
|
|
884
986
|
}
|
|
885
|
-
async function
|
|
987
|
+
async function Jt(e) {
|
|
886
988
|
const t = new Headers();
|
|
887
989
|
t.append("content-type", "text");
|
|
888
990
|
const r = await fetch(
|
|
@@ -892,76 +994,76 @@ async function Gt(e) {
|
|
|
892
994
|
headers: t
|
|
893
995
|
}
|
|
894
996
|
);
|
|
895
|
-
|
|
997
|
+
C(r);
|
|
896
998
|
}
|
|
897
|
-
async function
|
|
999
|
+
async function ze() {
|
|
898
1000
|
const e = new URLSearchParams({
|
|
899
1001
|
action: "get",
|
|
900
1002
|
noAutoAuthentication: "true"
|
|
901
1003
|
});
|
|
902
|
-
return
|
|
1004
|
+
return k("api/v1/principal", e);
|
|
903
1005
|
}
|
|
904
|
-
const
|
|
905
|
-
async function
|
|
1006
|
+
const se = 11;
|
|
1007
|
+
async function Wt(e, t, r) {
|
|
906
1008
|
var i;
|
|
907
1009
|
const a = await u("api/v1/query", {
|
|
908
1010
|
query: e,
|
|
909
1011
|
$auditRecord: t,
|
|
910
1012
|
queryIntentData: r
|
|
911
1013
|
});
|
|
912
|
-
a.aggregations.forEach((
|
|
913
|
-
|
|
914
|
-
}), (i = a.records) == null || i.map((
|
|
915
|
-
const
|
|
916
|
-
return Promise.resolve(
|
|
917
|
-
}
|
|
918
|
-
async function
|
|
919
|
-
const { app: n = "" } =
|
|
1014
|
+
a.aggregations.forEach((o) => {
|
|
1015
|
+
o.$hasMore = !1, !o.isDistribution && !o.isTree && o.items && (o.$hasMore = o.items.length === se), o.isTree && o.items && V(o);
|
|
1016
|
+
}), (i = a.records) == null || i.map((o) => Object.assign(o, { value: o.title, type: "default" }));
|
|
1017
|
+
const s = { ...a, nextPage: a.page < Math.ceil(a.rowCount / a.pageSize) ? a.page + 1 : void 0, previousPage: a.page > 1 ? a.page - 1 : void 0 };
|
|
1018
|
+
return Promise.resolve(s);
|
|
1019
|
+
}
|
|
1020
|
+
async function Xt(e, t, r) {
|
|
1021
|
+
const { app: n = "" } = d, a = {
|
|
920
1022
|
methods: [],
|
|
921
1023
|
mode: t,
|
|
922
1024
|
propagateErrors: !0,
|
|
923
1025
|
$auditRecord: { auditEvents: [r] }
|
|
924
1026
|
};
|
|
925
|
-
for (const
|
|
1027
|
+
for (const o of e)
|
|
926
1028
|
a.methods.push({
|
|
927
1029
|
method: "query",
|
|
928
1030
|
app: n,
|
|
929
|
-
query:
|
|
1031
|
+
query: o
|
|
930
1032
|
});
|
|
931
|
-
const
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
c.$hasMore = !1, !c.isDistribution && !c.isTree && c.items && (c.$hasMore = c.items.length ===
|
|
1033
|
+
const s = await u("api/v1/multi", a);
|
|
1034
|
+
s.results.forEach((o) => {
|
|
1035
|
+
o.aggregations.forEach((c) => {
|
|
1036
|
+
c.$hasMore = !1, !c.isDistribution && !c.isTree && c.items && (c.$hasMore = c.items.length === se), c.isTree && V(c);
|
|
935
1037
|
});
|
|
936
|
-
}),
|
|
1038
|
+
}), s.results.forEach((o) => {
|
|
937
1039
|
var c;
|
|
938
|
-
return (c =
|
|
1040
|
+
return (c = o.records) == null ? void 0 : c.map((l) => Object.assign(l, { value: l.title, type: "default" }));
|
|
939
1041
|
});
|
|
940
|
-
const i =
|
|
1042
|
+
const i = s.results.map((o) => ({ ...o, nextPage: o.page < Math.ceil(o.rowCount / o.pageSize) ? o.page + 1 : void 0, previousPage: o.page > 1 ? o.page - 1 : void 0 }));
|
|
941
1043
|
return Promise.resolve(i);
|
|
942
1044
|
}
|
|
943
|
-
function
|
|
1045
|
+
function V(e, t = "", r = 0) {
|
|
944
1046
|
let n = [];
|
|
945
1047
|
return e.items && e.items.forEach((a) => {
|
|
946
|
-
let
|
|
947
|
-
n.push({ path:
|
|
1048
|
+
let s = t ? `${t}/${a.value}` : a.value, i = r + 1;
|
|
1049
|
+
n.push({ path: s, level: i }), a.$path = s, a.$level = i, a.hasChildren ? n = n.concat(V(a, s, i)) : a.hasChildren = !1;
|
|
948
1050
|
}), n;
|
|
949
1051
|
}
|
|
950
|
-
async function
|
|
1052
|
+
async function Mt(e) {
|
|
951
1053
|
const r = await u("api/v1/queryintent", {
|
|
952
1054
|
query: e
|
|
953
1055
|
});
|
|
954
1056
|
return r == null ? void 0 : r.intents;
|
|
955
1057
|
}
|
|
956
|
-
async function
|
|
957
|
-
const { webservice: a, format:
|
|
1058
|
+
async function Yt({ model: e, appName: t, query: r, article: n }) {
|
|
1059
|
+
const { webservice: a, format: s, maxcount: i, exportedColumns: o, export: c } = e, l = {
|
|
958
1060
|
app: t,
|
|
959
1061
|
webservice: a,
|
|
960
1062
|
query: r,
|
|
961
1063
|
type: c,
|
|
962
|
-
format:
|
|
1064
|
+
format: s,
|
|
963
1065
|
maxcount: i,
|
|
964
|
-
exportedColumns:
|
|
1066
|
+
exportedColumns: o,
|
|
965
1067
|
$auditRecord: {
|
|
966
1068
|
auditEvents: [{
|
|
967
1069
|
type: "Search_ExportCSV",
|
|
@@ -971,9 +1073,9 @@ async function Ht({ model: e, appName: t, query: r, article: n }) {
|
|
|
971
1073
|
}]
|
|
972
1074
|
}
|
|
973
1075
|
};
|
|
974
|
-
return
|
|
1076
|
+
return O(l), await u("api/v1/search.queryexport", l, { responseType: "blob" });
|
|
975
1077
|
}
|
|
976
|
-
async function
|
|
1078
|
+
async function Kt(e, t, r) {
|
|
977
1079
|
return (await u(
|
|
978
1080
|
"api/v1/similardocuments",
|
|
979
1081
|
{
|
|
@@ -985,17 +1087,17 @@ async function Jt(e, t, r) {
|
|
|
985
1087
|
{ signal: r }
|
|
986
1088
|
)).data;
|
|
987
1089
|
}
|
|
988
|
-
async function
|
|
1090
|
+
async function Zt(e, t) {
|
|
989
1091
|
var a;
|
|
990
1092
|
const n = await u("api/v1/query.links", {
|
|
991
1093
|
webservice: e,
|
|
992
1094
|
query: t
|
|
993
1095
|
});
|
|
994
|
-
return (a = n == null ? void 0 : n.links) == null ? void 0 : a.map((
|
|
1096
|
+
return (a = n == null ? void 0 : n.links) == null ? void 0 : a.map((s) => ({ ...s, query: t }));
|
|
995
1097
|
}
|
|
996
|
-
async function
|
|
997
|
-
const { app:
|
|
998
|
-
app:
|
|
1098
|
+
async function Et(e, t, r, n, a) {
|
|
1099
|
+
const { app: s } = d, i = {
|
|
1100
|
+
app: s || "",
|
|
999
1101
|
suggestQuery: e,
|
|
1000
1102
|
text: t,
|
|
1001
1103
|
filter: r,
|
|
@@ -1004,12 +1106,12 @@ async function Xt(e, t, r, n, a) {
|
|
|
1004
1106
|
};
|
|
1005
1107
|
try {
|
|
1006
1108
|
return (await u("api/v1/search.suggest", i)).suggests;
|
|
1007
|
-
} catch (
|
|
1008
|
-
throw console.error("Error fetching suggestions:",
|
|
1109
|
+
} catch (o) {
|
|
1110
|
+
throw console.error("Error fetching suggestions:", o), o;
|
|
1009
1111
|
}
|
|
1010
1112
|
}
|
|
1011
|
-
async function
|
|
1012
|
-
const { app: a } =
|
|
1113
|
+
async function Tt(e, t, r, n) {
|
|
1114
|
+
const { app: a } = d;
|
|
1013
1115
|
return (await u("api/v1/suggestquery", {
|
|
1014
1116
|
app: a || "",
|
|
1015
1117
|
suggestQuery: e,
|
|
@@ -1018,9 +1120,9 @@ async function Mt(e, t, r, n) {
|
|
|
1018
1120
|
kinds: n
|
|
1019
1121
|
})).suggests;
|
|
1020
1122
|
}
|
|
1021
|
-
async function
|
|
1123
|
+
async function er(e, t) {
|
|
1022
1124
|
if (!t) return Promise.resolve([]);
|
|
1023
|
-
const { app: r } =
|
|
1125
|
+
const { app: r } = d;
|
|
1024
1126
|
return (await u("api/v1/suggestfield", {
|
|
1025
1127
|
app: r || "",
|
|
1026
1128
|
text: e,
|
|
@@ -1028,47 +1130,47 @@ async function Yt(e, t) {
|
|
|
1028
1130
|
fields: t
|
|
1029
1131
|
})).suggests;
|
|
1030
1132
|
}
|
|
1031
|
-
async function
|
|
1133
|
+
async function tr(e, t, r, n, a, s) {
|
|
1032
1134
|
return u("api/v1/doc.textchunks", {
|
|
1033
1135
|
id: e,
|
|
1034
1136
|
textChunks: t,
|
|
1035
1137
|
highlights: r,
|
|
1036
1138
|
query: n,
|
|
1037
1139
|
leftSentencesCount: a,
|
|
1038
|
-
rightSentencesCount:
|
|
1140
|
+
rightSentencesCount: s
|
|
1039
1141
|
});
|
|
1040
1142
|
}
|
|
1041
|
-
async function
|
|
1042
|
-
const { app: e } =
|
|
1143
|
+
async function rr() {
|
|
1144
|
+
const { app: e } = d, t = new URLSearchParams({
|
|
1043
1145
|
app: e || "",
|
|
1044
1146
|
action: "load"
|
|
1045
1147
|
});
|
|
1046
|
-
return
|
|
1148
|
+
return k("api/v1/usersettings", t);
|
|
1047
1149
|
}
|
|
1048
|
-
async function
|
|
1150
|
+
async function He(e, t) {
|
|
1049
1151
|
const r = {
|
|
1050
1152
|
action: "save",
|
|
1051
1153
|
userSettings: e,
|
|
1052
1154
|
$auditRecord: { auditEvents: [t] }
|
|
1053
1155
|
};
|
|
1054
|
-
return
|
|
1156
|
+
return O(r), u("api/v1/usersettings", r);
|
|
1055
1157
|
}
|
|
1056
|
-
async function
|
|
1158
|
+
async function nr(e, t) {
|
|
1057
1159
|
const n = {
|
|
1058
1160
|
action: "patch",
|
|
1059
1161
|
userSettings: e,
|
|
1060
1162
|
$auditRecord: t ? { auditEvents: [t] } : void 0
|
|
1061
1163
|
};
|
|
1062
|
-
return
|
|
1164
|
+
return O(n), u("api/v1/usersettings", n);
|
|
1063
1165
|
}
|
|
1064
|
-
async function
|
|
1065
|
-
return
|
|
1166
|
+
async function ar() {
|
|
1167
|
+
return He({}, { type: "UserSettings_Reset" });
|
|
1066
1168
|
}
|
|
1067
|
-
async function
|
|
1068
|
-
return await
|
|
1169
|
+
async function sr() {
|
|
1170
|
+
return await k("api/v2/version");
|
|
1069
1171
|
}
|
|
1070
|
-
const
|
|
1071
|
-
const { autoOAuthProvider: e } =
|
|
1172
|
+
const Je = async () => {
|
|
1173
|
+
const { autoOAuthProvider: e } = d;
|
|
1072
1174
|
if (typeof window > "u")
|
|
1073
1175
|
return u("security.oauth", {
|
|
1074
1176
|
action: "getcode",
|
|
@@ -1091,8 +1193,8 @@ const Ve = async () => {
|
|
|
1091
1193
|
} catch (r) {
|
|
1092
1194
|
throw console.error("Failed to authenticate with OAuth", r), r;
|
|
1093
1195
|
}
|
|
1094
|
-
},
|
|
1095
|
-
const { autoSAMLProvider: e } =
|
|
1196
|
+
}, We = async () => {
|
|
1197
|
+
const { autoSAMLProvider: e } = d;
|
|
1096
1198
|
if (typeof window > "u")
|
|
1097
1199
|
return u("security.saml", {
|
|
1098
1200
|
action: "getresponse",
|
|
@@ -1115,7 +1217,7 @@ const Ve = async () => {
|
|
|
1115
1217
|
} catch (r) {
|
|
1116
1218
|
throw console.error("Failed to authenticate with SAML", r), r;
|
|
1117
1219
|
}
|
|
1118
|
-
},
|
|
1220
|
+
}, j = {
|
|
1119
1221
|
store: {},
|
|
1120
1222
|
getItem(e) {
|
|
1121
1223
|
return this.store[e] ?? null;
|
|
@@ -1129,36 +1231,36 @@ const Ve = async () => {
|
|
|
1129
1231
|
clear() {
|
|
1130
1232
|
this.store = {};
|
|
1131
1233
|
}
|
|
1132
|
-
},
|
|
1133
|
-
function
|
|
1134
|
-
return typeof window > "u" || !window.localStorage ?
|
|
1234
|
+
}, z = j;
|
|
1235
|
+
function Xe(e) {
|
|
1236
|
+
return typeof window > "u" || !window.localStorage ? j.getItem(e) : window.localStorage.getItem(e);
|
|
1135
1237
|
}
|
|
1136
|
-
function
|
|
1137
|
-
typeof window > "u" || !window.localStorage ?
|
|
1238
|
+
function Me(e) {
|
|
1239
|
+
typeof window > "u" || !window.localStorage ? j.removeItem(e) : window.localStorage.removeItem(e);
|
|
1138
1240
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return typeof window > "u" || !window.sessionStorage ?
|
|
1241
|
+
function Ye(e) {
|
|
1242
|
+
return typeof window > "u" || !window.sessionStorage ? z.getItem(e) : window.sessionStorage.getItem(e);
|
|
1141
1243
|
}
|
|
1142
|
-
function
|
|
1143
|
-
typeof window > "u" || !window.sessionStorage ?
|
|
1244
|
+
function Ke(e, t) {
|
|
1245
|
+
typeof window > "u" || !window.sessionStorage ? z.setItem(e, t) : window.sessionStorage.setItem(e, t);
|
|
1144
1246
|
}
|
|
1145
|
-
function
|
|
1146
|
-
typeof window > "u" || !window.sessionStorage ?
|
|
1247
|
+
function Ze(e) {
|
|
1248
|
+
typeof window > "u" || !window.sessionStorage ? z.removeItem(e) : window.sessionStorage.removeItem(e);
|
|
1147
1249
|
}
|
|
1148
|
-
const
|
|
1250
|
+
const U = (e) => Ke(
|
|
1149
1251
|
"sinequa-credentials",
|
|
1150
1252
|
JSON.stringify({ data: { csrfToken: e } })
|
|
1151
|
-
),
|
|
1253
|
+
), Ee = async () => {
|
|
1152
1254
|
try {
|
|
1153
|
-
const e = await
|
|
1255
|
+
const e = await k(
|
|
1154
1256
|
"api/v1/challenge?action=getCsrfToken&suppressErrors=true"
|
|
1155
1257
|
);
|
|
1156
|
-
return e != null && e.csrfToken ? (
|
|
1258
|
+
return e != null && e.csrfToken ? (U(e.csrfToken), e.csrfToken) : null;
|
|
1157
1259
|
} catch (e) {
|
|
1158
1260
|
throw h("Failed to get CSRF token", e), e;
|
|
1159
1261
|
}
|
|
1160
1262
|
};
|
|
1161
|
-
async function
|
|
1263
|
+
async function Te(e) {
|
|
1162
1264
|
if (e) {
|
|
1163
1265
|
const { username: t, password: r } = e, n = {
|
|
1164
1266
|
action: "get",
|
|
@@ -1173,7 +1275,7 @@ async function Ye(e) {
|
|
|
1173
1275
|
"api/v1/security.webtoken",
|
|
1174
1276
|
n
|
|
1175
1277
|
);
|
|
1176
|
-
return a != null && a.csrfToken ? (
|
|
1278
|
+
return a != null && a.csrfToken ? (U(a.csrfToken), a.csrfToken) : null;
|
|
1177
1279
|
} catch (a) {
|
|
1178
1280
|
throw console.error("Failed to get JWT", a), a;
|
|
1179
1281
|
}
|
|
@@ -1184,7 +1286,7 @@ async function Ye(e) {
|
|
|
1184
1286
|
noUserOverride: !0,
|
|
1185
1287
|
noAutoAuthentication: !1
|
|
1186
1288
|
// Allow auto authentication for credentialless requests
|
|
1187
|
-
}, { bearerToken: r } =
|
|
1289
|
+
}, { bearerToken: r } = d;
|
|
1188
1290
|
if (!r)
|
|
1189
1291
|
throw new Error(
|
|
1190
1292
|
"Bearer token is required in globalConfig for credentialless JWT retrieval."
|
|
@@ -1197,191 +1299,193 @@ async function Ye(e) {
|
|
|
1197
1299
|
t,
|
|
1198
1300
|
{ headers: n }
|
|
1199
1301
|
);
|
|
1200
|
-
return a.csrfToken ? (
|
|
1302
|
+
return a.csrfToken ? (U(a.csrfToken), a.csrfToken) : null;
|
|
1201
1303
|
} catch (a) {
|
|
1202
1304
|
throw console.error("Failed to get JWT without credentials", a), a;
|
|
1203
1305
|
}
|
|
1204
1306
|
}
|
|
1205
1307
|
}
|
|
1206
|
-
const
|
|
1308
|
+
const H = () => {
|
|
1207
1309
|
var r;
|
|
1208
|
-
const e =
|
|
1310
|
+
const e = Ye("sinequa-credentials");
|
|
1209
1311
|
if (e)
|
|
1210
1312
|
try {
|
|
1211
1313
|
const a = (r = JSON.parse(e).data) == null ? void 0 : r.csrfToken;
|
|
1212
1314
|
if (a !== void 0) return a;
|
|
1213
1315
|
} catch {
|
|
1214
1316
|
}
|
|
1215
|
-
const t =
|
|
1317
|
+
const t = Xe("csrfToken");
|
|
1216
1318
|
return t !== null ? t : null;
|
|
1217
|
-
},
|
|
1319
|
+
}, or = async (e) => {
|
|
1218
1320
|
if (e)
|
|
1219
|
-
|
|
1321
|
+
g("Attempting authentication using credentials"), b({ useCredentials: !0, useSSO: !1 });
|
|
1220
1322
|
else {
|
|
1221
|
-
let
|
|
1323
|
+
let o = null;
|
|
1222
1324
|
try {
|
|
1223
|
-
|
|
1325
|
+
g("Attempting to retrieve CSRF token from the backend"), o = await Ee(), R("CSRF token retrieval result", o ? "success" : "failed");
|
|
1224
1326
|
} catch (c) {
|
|
1225
1327
|
h("Failed to retrieve CSRF token", c);
|
|
1226
1328
|
}
|
|
1227
1329
|
try {
|
|
1228
|
-
if (
|
|
1229
|
-
const { autoOAuthProvider: c, autoSAMLProvider: l, useSAML:
|
|
1230
|
-
if (c && !
|
|
1231
|
-
return
|
|
1330
|
+
if (o === null) {
|
|
1331
|
+
const { autoOAuthProvider: c, autoSAMLProvider: l, useSAML: f } = d;
|
|
1332
|
+
if (c && !f)
|
|
1333
|
+
return g("Initiating OAuth authentication flow"), await Je(), L("OAuth authentication flow did not redirect as expected"), w(!1), !1;
|
|
1232
1334
|
if (l)
|
|
1233
|
-
return
|
|
1234
|
-
|
|
1335
|
+
return g("Initiating SAML authentication flow"), await We(), L("SAML authentication flow did not redirect as expected"), w(!1), !1;
|
|
1336
|
+
g(
|
|
1235
1337
|
"No direct authentication method available, will try SSO then credentials"
|
|
1236
|
-
),
|
|
1338
|
+
), b({ useCredentials: !0, useSSO: !0 });
|
|
1237
1339
|
} else
|
|
1238
|
-
return
|
|
1340
|
+
return g("User authenticated via existing token"), w(!0), !0;
|
|
1239
1341
|
} catch (c) {
|
|
1240
|
-
throw h("Unexpected error during authentication", c),
|
|
1342
|
+
throw h("Unexpected error during authentication", c), w(!1), c;
|
|
1241
1343
|
}
|
|
1242
1344
|
}
|
|
1243
|
-
if (
|
|
1345
|
+
if (d.useCredentials && d.useSSO)
|
|
1244
1346
|
try {
|
|
1245
|
-
if (
|
|
1246
|
-
return
|
|
1247
|
-
} catch (
|
|
1248
|
-
if ((
|
|
1249
|
-
return
|
|
1250
|
-
throw h("SSO authentication failed with unexpected error",
|
|
1347
|
+
if (g("Checking if user is authenticated via SSO"), await ze())
|
|
1348
|
+
return g("User authenticated using SSO"), b({ useCredentials: !1, useSSO: !0 }), w(!0), !0;
|
|
1349
|
+
} catch (o) {
|
|
1350
|
+
if ((o == null ? void 0 : o.status) === 401)
|
|
1351
|
+
return g("SSO authentication failed with 401, falling back to credentials"), b({ useCredentials: !0, useSSO: !1 }), !1;
|
|
1352
|
+
throw h("SSO authentication failed with unexpected error", o), w(!1), h;
|
|
1251
1353
|
}
|
|
1252
|
-
const { useSSO: r } =
|
|
1354
|
+
const { useSSO: r } = d, n = H();
|
|
1253
1355
|
if (n && n !== null || r)
|
|
1254
|
-
return
|
|
1255
|
-
const { useCredentials: a } =
|
|
1256
|
-
if (a && !
|
|
1257
|
-
return h("Credentials are required for authentication"),
|
|
1258
|
-
if (
|
|
1356
|
+
return g("user already authenticated", n), b({ isRedirectUrl: !1 }), w(!0), !0;
|
|
1357
|
+
const { useCredentials: a } = d, { username: s, password: i } = e || {};
|
|
1358
|
+
if (a && !s && !i)
|
|
1359
|
+
return h("Credentials are required for authentication"), w(!1), !1;
|
|
1360
|
+
if (s && i)
|
|
1259
1361
|
try {
|
|
1260
|
-
return
|
|
1261
|
-
} catch (
|
|
1262
|
-
throw
|
|
1362
|
+
return g("authentication using credentials..."), b({ useCredentials: !0, useSSO: !1 }), await Te({ username: s, password: i }), w(!0), !0;
|
|
1363
|
+
} catch (o) {
|
|
1364
|
+
throw w(!1), o;
|
|
1263
1365
|
}
|
|
1264
|
-
return
|
|
1366
|
+
return w(!1), h(
|
|
1265
1367
|
"No authentication method available. Please provide credentials or configure OAuth/SAML."
|
|
1266
1368
|
), !1;
|
|
1267
|
-
},
|
|
1369
|
+
}, et = async () => {
|
|
1268
1370
|
const e = new URLSearchParams({
|
|
1269
1371
|
action: "deleteWebTokenCookie",
|
|
1270
1372
|
noUserOverride: "true",
|
|
1271
1373
|
noAutoAuthentication: "true"
|
|
1272
1374
|
});
|
|
1273
|
-
return
|
|
1274
|
-
},
|
|
1275
|
-
const { useCredentials: e, userOverrideActive: t } =
|
|
1276
|
-
|
|
1277
|
-
},
|
|
1375
|
+
return k("api/v1/challenge", e);
|
|
1376
|
+
}, cr = async () => {
|
|
1377
|
+
const { useCredentials: e, userOverrideActive: t } = d;
|
|
1378
|
+
Me("csrfToken"), Ze("sinequa-credentials"), e && !t ? (await et()).methodresult === "ok" ? w(!1) : console.error("logout failed") : w(!1);
|
|
1379
|
+
}, ir = () => !!H();
|
|
1278
1380
|
export {
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1381
|
+
p as ApiError,
|
|
1382
|
+
Nt as Audit,
|
|
1383
|
+
v as AuditEventType,
|
|
1384
|
+
ie as DidYouMeanKind,
|
|
1385
|
+
_ as EngineType,
|
|
1386
|
+
S as EngineTypeModifier,
|
|
1387
|
+
te as LogLevel,
|
|
1286
1388
|
nt as MINIMUM_COMPATIBLE_SERVER_API_VERSION,
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1389
|
+
le as RFMDisplay,
|
|
1390
|
+
Se as ServerError,
|
|
1391
|
+
ge as TimeoutError,
|
|
1392
|
+
ee as UnauthorizedError,
|
|
1393
|
+
O as addAuditAdditionalInfo,
|
|
1394
|
+
wt as addConcepts,
|
|
1395
|
+
ye as addSessionId,
|
|
1396
|
+
Ue as addUrl,
|
|
1397
|
+
ke as aggItemRegex,
|
|
1398
|
+
ht as aggregationItemStrictCompare,
|
|
1399
|
+
qt as appInitializerFn,
|
|
1400
|
+
mt as bisect,
|
|
1401
|
+
V as buildPathsAndLevels,
|
|
1402
|
+
ut as configureLogger,
|
|
1403
|
+
P as createHeaders,
|
|
1404
|
+
lt as createTimeoutController,
|
|
1405
|
+
R as debug,
|
|
1406
|
+
Dt as del,
|
|
1407
|
+
ar as deleteUserSettings,
|
|
1408
|
+
et as deleteWebTokenCookie,
|
|
1409
|
+
w as emitAuthenticatedEvent,
|
|
1308
1410
|
h as error,
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
Te as
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
vt as
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1411
|
+
ct as escapeExpr,
|
|
1412
|
+
at as extraColumns,
|
|
1413
|
+
Ft as fetchAggregation,
|
|
1414
|
+
Bt as fetchApp,
|
|
1415
|
+
Ne as fetchAppPreLogin,
|
|
1416
|
+
Xt as fetchBulkQuery,
|
|
1417
|
+
Qt as fetchDataset,
|
|
1418
|
+
Vt as fetchDatasetList,
|
|
1419
|
+
Gt as fetchDatasets,
|
|
1420
|
+
jt as fetchLabels,
|
|
1421
|
+
Ht as fetchPreview,
|
|
1422
|
+
Jt as fetchPreviewUrl,
|
|
1423
|
+
ze as fetchPrincipal,
|
|
1424
|
+
Wt as fetchQuery,
|
|
1425
|
+
Yt as fetchQueryExport,
|
|
1426
|
+
Mt as fetchQueryIntent,
|
|
1427
|
+
Kt as fetchSimilarDocuments,
|
|
1428
|
+
Zt as fetchSponsoredLinks,
|
|
1429
|
+
Et as fetchSuggest,
|
|
1430
|
+
er as fetchSuggestField,
|
|
1431
|
+
Tt as fetchSuggestQuery,
|
|
1432
|
+
tr as fetchTextChunks,
|
|
1433
|
+
rr as fetchUserSettings,
|
|
1434
|
+
sr as fetchVersion,
|
|
1435
|
+
k as get,
|
|
1436
|
+
kt as getConcepts,
|
|
1437
|
+
Ee as getCsrfToken,
|
|
1438
|
+
ne as getFiltersFromURI,
|
|
1439
|
+
Rt as getFiltersFromUrl,
|
|
1440
|
+
yt as getHelpIndexUrl,
|
|
1441
|
+
Lt as getIdFromUrl,
|
|
1442
|
+
Te as getJWToken,
|
|
1443
|
+
st as getMetadata,
|
|
1444
|
+
Oe as getOffsetFromDates,
|
|
1445
|
+
Pt as getQueryPageFromUrl,
|
|
1446
|
+
vt as getQueryParamsFromUrl,
|
|
1447
|
+
Ot as getQueryTabFromUrl,
|
|
1448
|
+
xt as getQueryTextFromUrl,
|
|
1449
|
+
bt as getRelativeDate,
|
|
1450
|
+
H as getToken,
|
|
1451
|
+
Ct as getUrlParamsFromQueryParams,
|
|
1452
|
+
d as globalConfig,
|
|
1453
|
+
we as guid,
|
|
1454
|
+
C as handleResponse,
|
|
1455
|
+
g as info,
|
|
1456
|
+
he as isArrayBuffer,
|
|
1457
|
+
ir as isAuthenticated,
|
|
1458
|
+
_e as isBlob,
|
|
1459
|
+
ot as isJsonable,
|
|
1460
|
+
pt as isNotInputEvent,
|
|
1461
|
+
I as isObject,
|
|
1462
|
+
me as isString,
|
|
1463
|
+
zt as labels,
|
|
1464
|
+
or as login,
|
|
1465
|
+
cr as logout,
|
|
1466
|
+
m as makeColumn,
|
|
1467
|
+
Ut as notify,
|
|
1468
|
+
pe as openParentNodes,
|
|
1469
|
+
A as parseText,
|
|
1470
|
+
be as parseValueAndOperatorFromItem,
|
|
1471
|
+
At as patch,
|
|
1472
|
+
nr as patchUserSettings,
|
|
1369
1473
|
u as post,
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1474
|
+
It as put,
|
|
1475
|
+
x as queryParamsFromUrl,
|
|
1476
|
+
St as removeConcept,
|
|
1477
|
+
gt as removeConcepts,
|
|
1478
|
+
rt as resolveToColumnName,
|
|
1479
|
+
G as rewriteText,
|
|
1480
|
+
He as saveUserSettings,
|
|
1481
|
+
b as setGlobalConfig,
|
|
1482
|
+
U as setToken,
|
|
1483
|
+
it as sha512,
|
|
1484
|
+
_t as suggestionsToTreeAggregationNodes,
|
|
1485
|
+
$t as sysLang,
|
|
1486
|
+
ft as translateAggregationToDateOptions,
|
|
1487
|
+
Je as tryOAuthAuthentication,
|
|
1488
|
+
We as trySAMLAuthentication,
|
|
1489
|
+
L as warn,
|
|
1490
|
+
dt as withRetry
|
|
1387
1491
|
};
|