@gen-epix/ui-client-casedb 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/CaseInfoDialog.js +40 -39
- package/dist/_chunks/CaseInfoDialog.js.map +1 -1
- package/dist/_chunks/Dashboard.js +285 -286
- package/dist/_chunks/Dashboard.js.map +1 -1
- package/dist/_chunks/LineListWidget.js +138 -136
- package/dist/_chunks/LineListWidget.js.map +1 -1
- package/dist/_chunks/{chunk-BV7QT456.js → chunk-OB3PAWPO.js} +3 -3
- package/dist/_chunks/chunk-OB3PAWPO.js.map +1 -0
- package/dist/_chunks/yup.js +2 -2
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/components/ui/HistogramWidget/index.js +161 -162
- package/dist/components/ui/HistogramWidget/index.js.map +1 -1
- package/dist/locale/en.json +6 -0
- package/dist/locale/nl.json +7 -1
- package/dist/pages/CasesDetailPage/index.js +1 -1
- package/dist/pages/ColsAdminPage/index.js +1 -1
- package/dist/pages/ConceptsAdminPage/index.js +1 -1
- package/dist/pages/DimsAdminPage/index.js +1 -1
- package/dist/pages/EventsDetailPage/index.js +1 -1
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +120 -86
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/RefColsAdminPage/index.js +1 -1
- package/dist/pages/RegionSetShapesAdminPage/index.js +1 -1
- package/dist/pages/RegionsAdminPage/index.js +1 -1
- package/dist/pages/UserEffectiveRightsAdminPage/index.js +1 -1
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +1 -1
- package/dist/routes/index.js +93 -91
- package/dist/routes/index.js.map +1 -1
- package/dist/setup/setup.js +2 -3
- package/dist/setup/setup.js.map +1 -1
- package/package.json +26 -26
- package/dist/_chunks/chunk-BV7QT456.js.map +0 -1
|
@@ -35,37 +35,36 @@ import { Component as xe, Fragment as Se, createContext as Ce, createElement as
|
|
|
35
35
|
import { useTranslation as G } from "react-i18next";
|
|
36
36
|
import { Fragment as Oe, jsx as K, jsxs as q } from "react/jsx-runtime";
|
|
37
37
|
import { ResponseHandler as ke } from "@gen-epix/ui-client-common/components/ui/ResponseHandler";
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import { withDialog as ze } from "@gen-epix/ui-core-components/hoc/withDialog";
|
|
38
|
+
import { STEPPER_DIRECTION as Ae, Stepper as je } from "@gen-epix/ui-core-components/components/Stepper";
|
|
39
|
+
import { FormProvider as Me, useForm as Ne, useWatch as Pe } from "react-hook-form";
|
|
40
|
+
import { GenericForm as Fe } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
|
|
41
|
+
import { TableFiltersSidebarItem as Ie, TableFiltersSidebarItemIcon as Le } from "@gen-epix/ui-client-common/components/ui/Table";
|
|
42
|
+
import { withDialog as Re } from "@gen-epix/ui-core-components/hoc/withDialog";
|
|
44
43
|
import { TestIdUtil as J } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
45
|
-
import { FormUtil as
|
|
46
|
-
import
|
|
47
|
-
import { EpiContactDetailsDialog as
|
|
48
|
-
import { SidebarItem as
|
|
49
|
-
import { KeyboardShortcutService as
|
|
50
|
-
import { Spinner as
|
|
51
|
-
import
|
|
52
|
-
import { NestedDropdown as
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import { Switch as
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import { Subject as
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import { MenuDataUtil as
|
|
44
|
+
import { FormUtil as ze } from "@gen-epix/ui-core-form/utils/FormUtil";
|
|
45
|
+
import Be from "@mui/icons-material/Info";
|
|
46
|
+
import { EpiContactDetailsDialog as Ve } from "@gen-epix/ui-client-common/components/epi/EpiContactDetailsDialog";
|
|
47
|
+
import { SidebarItem as He, SidebarMenu as Ue, SidebarMenuItem as We } from "@gen-epix/ui-client-common/components/ui/Sidebar";
|
|
48
|
+
import { KeyboardShortcutService as Ge } from "@gen-epix/ui-core/classes/services/KeyboardShortcutService";
|
|
49
|
+
import { Spinner as Ke } from "@gen-epix/ui-core-components/components/Spinner";
|
|
50
|
+
import qe from "@mui/icons-material/Download";
|
|
51
|
+
import { NestedDropdown as Je } from "@gen-epix/ui-core-components/components/NestedMenu";
|
|
52
|
+
import Ye from "@mui/icons-material/Settings";
|
|
53
|
+
import Xe from "@mui/icons-material/RestartAlt";
|
|
54
|
+
import { Switch as Ze } from "@gen-epix/ui-core-form/components/fields/Switch";
|
|
55
|
+
import Qe from "@mui/icons-material/Widgets";
|
|
56
|
+
import $e from "@mui/icons-material/Search";
|
|
57
|
+
import et from "@mui/icons-material/KeyboardArrowUp";
|
|
58
|
+
import tt from "@mui/icons-material/KeyboardArrowDown";
|
|
59
|
+
import nt from "@mui/icons-material/Tune";
|
|
60
|
+
import rt from "@mui/icons-material/Close";
|
|
61
|
+
import it from "@mui/icons-material/Check";
|
|
62
|
+
import { Subject as at } from "@gen-epix/ui-core/classes/Subject";
|
|
63
|
+
import ot from "@mui/icons-material/ZoomInMap";
|
|
64
|
+
import st from "@mui/icons-material/ZoomOutMap";
|
|
65
|
+
import { MenuDataUtil as ct } from "@gen-epix/ui-client-common/utils/MenuDataUtil";
|
|
67
66
|
//#region src/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.tsx
|
|
68
|
-
var
|
|
67
|
+
var lt = Re(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i }) => {
|
|
69
68
|
let { t: a } = G(), l = Ee(), u = z(c), d = o(u, (e) => e.setFindSimilarCasesResults), f = H(() => r.getTreeConfigurations(i.completeCaseType), [i.completeCaseType]), p = o(u, (e) => e.findSimilarCasesResults), [m, h] = W(p);
|
|
70
69
|
V(() => {
|
|
71
70
|
n(a`Remove similar cases from results`);
|
|
@@ -177,9 +176,9 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
177
176
|
]);
|
|
178
177
|
return /* @__PURE__ */ q(N, {
|
|
179
178
|
sx: { position: "relative" },
|
|
180
|
-
children: [b.length === 0 && /* @__PURE__ */ K(R, { children: a("No similar cases results to remove.") }), b.length > 0 && /* @__PURE__ */ K(
|
|
179
|
+
children: [b.length === 0 && /* @__PURE__ */ K(R, { children: a("No similar cases results to remove.") }), b.length > 0 && /* @__PURE__ */ K(je, {
|
|
181
180
|
activeStep: b[b.length - 1].key,
|
|
182
|
-
direction:
|
|
181
|
+
direction: Ae.VERTICAL,
|
|
183
182
|
hideCompletedIndicator: !0,
|
|
184
183
|
steps: b
|
|
185
184
|
})]
|
|
@@ -189,25 +188,25 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
189
188
|
fullWidth: !0,
|
|
190
189
|
maxWidth: "lg",
|
|
191
190
|
testId: "RemoveFindSimilarCasesResultDialog"
|
|
192
|
-
}),
|
|
193
|
-
let { t: e } = G(), t = z(T), n = o(t, d((e) => e.resetDashboardGeneralSettings)), r = o(t, d((e) => e.dashboardGeneralSettings)), i = o(t, d((e) => e.setDashboardGeneralSettings)), a =
|
|
191
|
+
}), ut = () => {
|
|
192
|
+
let { t: e } = G(), t = z(T), n = o(t, d((e) => e.resetDashboardGeneralSettings)), r = o(t, d((e) => e.dashboardGeneralSettings)), i = o(t, d((e) => e.setDashboardGeneralSettings)), a = Ne({
|
|
194
193
|
defaultValues: r,
|
|
195
194
|
values: r
|
|
196
|
-
}), { control: s } = a, c =
|
|
195
|
+
}), { control: s } = a, c = Pe({ control: s }), l = B(() => {
|
|
197
196
|
n();
|
|
198
197
|
}, [n]);
|
|
199
198
|
V(() => {
|
|
200
199
|
i(c);
|
|
201
200
|
}, [c, i]);
|
|
202
201
|
let u = B(() => {}, []);
|
|
203
|
-
return /* @__PURE__ */ q(
|
|
202
|
+
return /* @__PURE__ */ q(Me, {
|
|
204
203
|
...a,
|
|
205
204
|
children: [/* @__PURE__ */ K("form", {
|
|
206
205
|
autoComplete: "off",
|
|
207
206
|
onSubmit: u,
|
|
208
207
|
children: /* @__PURE__ */ K(N, {
|
|
209
208
|
sx: { marginY: 1 },
|
|
210
|
-
children: /* @__PURE__ */ K(I, { children: /* @__PURE__ */ K(
|
|
209
|
+
children: /* @__PURE__ */ K(I, { children: /* @__PURE__ */ K(Ze, {
|
|
211
210
|
label: e`Enable highlighting across widgets`,
|
|
212
211
|
name: "isHighlightingEnabled"
|
|
213
212
|
}) })
|
|
@@ -222,15 +221,15 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
222
221
|
children: /* @__PURE__ */ K(P, {
|
|
223
222
|
color: "primary",
|
|
224
223
|
onClick: l,
|
|
225
|
-
startIcon: /* @__PURE__ */ K(
|
|
224
|
+
startIcon: /* @__PURE__ */ K(Xe, {}),
|
|
226
225
|
variant: "outlined",
|
|
227
226
|
children: e`Reset general settings`
|
|
228
227
|
})
|
|
229
228
|
})
|
|
230
229
|
})]
|
|
231
230
|
});
|
|
232
|
-
},
|
|
233
|
-
let { t } = G(), n = z(T), r = o(n, d((e) => e.resetDashboardLayout)), a = o(n, d((e) => e.dashboardArrangementConfig)), s = o(n, d((e) => e.setDashboardArrangementConfig)), c =
|
|
231
|
+
}, dt = /* @__PURE__ */ e(t(), 1), ft = ({ onReset: e }) => {
|
|
232
|
+
let { t } = G(), n = z(T), r = o(n, d((e) => e.resetDashboardLayout)), a = o(n, d((e) => e.dashboardArrangementConfig)), s = o(n, d((e) => e.setDashboardArrangementConfig)), c = Ne({ values: { arrangementKey: a.arrangementKey } }), { control: l } = c, u = Pe({ control: l }), f = B(() => {
|
|
234
233
|
r(), e && e();
|
|
235
234
|
}, [e, r]);
|
|
236
235
|
V(() => {
|
|
@@ -242,8 +241,8 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
242
241
|
arrangementWidgetAssignments: i.getArrangementWidgetAssignments(t, M.getInstance().config.dashboard.DEFAULT_WIDGET_ASSIGNMENTS[e])
|
|
243
242
|
});
|
|
244
243
|
}, [u, s]);
|
|
245
|
-
let p =
|
|
246
|
-
return /* @__PURE__ */ q(
|
|
244
|
+
let p = dt.default;
|
|
245
|
+
return /* @__PURE__ */ q(Me, {
|
|
247
246
|
...c,
|
|
248
247
|
children: [/* @__PURE__ */ K("form", {
|
|
249
248
|
autoComplete: "off",
|
|
@@ -266,20 +265,20 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
266
265
|
children: /* @__PURE__ */ K(P, {
|
|
267
266
|
color: "primary",
|
|
268
267
|
onClick: f,
|
|
269
|
-
startIcon: /* @__PURE__ */ K(
|
|
268
|
+
startIcon: /* @__PURE__ */ K(Xe, {}),
|
|
270
269
|
variant: "outlined",
|
|
271
270
|
children: t`Reset dashboard layout`
|
|
272
271
|
})
|
|
273
272
|
})
|
|
274
273
|
})]
|
|
275
274
|
});
|
|
276
|
-
},
|
|
275
|
+
}, pt = ({ widgetName: e }) => {
|
|
277
276
|
let { t } = G(), n = z(T), r = Ee(), i = o(n, d((e) => e.resetWidgetSettings)), a = o(n, d((e) => e.setWidgetSettings)), s = M.getInstance().config.dashboard.WIDGETS[e].configFormFieldsDefinitions, c = M.getInstance().config.dashboard.WIDGETS[e].configDefaultValues, l = H(() => {
|
|
278
|
-
if (s) return
|
|
279
|
-
}, [s]), u =
|
|
277
|
+
if (s) return ze.createYupSchemaFromFormFieldDefinitions(s);
|
|
278
|
+
}, [s]), u = Ne({
|
|
280
279
|
defaultValues: c,
|
|
281
280
|
values: c
|
|
282
|
-
}), { control: f } = u, p =
|
|
281
|
+
}), { control: f } = u, p = Pe({ control: f }), m = B(() => {
|
|
283
282
|
i(e);
|
|
284
283
|
}, [i, e]);
|
|
285
284
|
V(() => {
|
|
@@ -292,7 +291,7 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
292
291
|
let h = B(() => {}, []);
|
|
293
292
|
return /* @__PURE__ */ q(N, { children: [/* @__PURE__ */ K(N, {
|
|
294
293
|
sx: { marginY: 1 },
|
|
295
|
-
children: /* @__PURE__ */ K(
|
|
294
|
+
children: /* @__PURE__ */ K(Fe, {
|
|
296
295
|
formFieldDefinitions: s,
|
|
297
296
|
formId: r,
|
|
298
297
|
formMethods: u,
|
|
@@ -309,24 +308,24 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
309
308
|
children: /* @__PURE__ */ K(P, {
|
|
310
309
|
color: "primary",
|
|
311
310
|
onClick: m,
|
|
312
|
-
startIcon: /* @__PURE__ */ K(
|
|
311
|
+
startIcon: /* @__PURE__ */ K(Xe, {}),
|
|
313
312
|
variant: "outlined",
|
|
314
313
|
children: t("Reset {widgetName} settings", { widgetName: e })
|
|
315
314
|
})
|
|
316
315
|
})
|
|
317
316
|
})] });
|
|
318
|
-
},
|
|
317
|
+
}, mt = Ye, ht = ({ onReset: e }) => {
|
|
319
318
|
let t = be(), { t: n } = G(), r = H(() => {
|
|
320
319
|
let t = [{
|
|
321
|
-
component: /* @__PURE__ */ K(
|
|
320
|
+
component: /* @__PURE__ */ K(ft, { onReset: e }),
|
|
322
321
|
label: n`Dashboard layout`
|
|
323
322
|
}, {
|
|
324
|
-
component: /* @__PURE__ */ K(
|
|
323
|
+
component: /* @__PURE__ */ K(ut, {}),
|
|
325
324
|
label: n`General`
|
|
326
325
|
}];
|
|
327
326
|
return Object.entries(M.getInstance().config.dashboard.WIDGETS).forEach(([e, n]) => {
|
|
328
327
|
n.configFormFieldsDefinitions && t.push({
|
|
329
|
-
component: /* @__PURE__ */ K(
|
|
328
|
+
component: /* @__PURE__ */ K(pt, { widgetName: e }),
|
|
330
329
|
label: n.widgetLabel
|
|
331
330
|
});
|
|
332
331
|
}), t;
|
|
@@ -365,24 +364,24 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
365
364
|
]
|
|
366
365
|
}, t))
|
|
367
366
|
});
|
|
368
|
-
},
|
|
367
|
+
}, gt = ({ onClose: e, onReset: t, open: n }) => {
|
|
369
368
|
let { t: r } = G();
|
|
370
|
-
return /* @__PURE__ */ K(
|
|
371
|
-
closeIcon: /* @__PURE__ */ K(
|
|
369
|
+
return /* @__PURE__ */ K(He, {
|
|
370
|
+
closeIcon: /* @__PURE__ */ K(mt, {}),
|
|
372
371
|
closeIconTooltipText: r`Close settings`,
|
|
373
372
|
onClose: e,
|
|
374
373
|
open: n,
|
|
375
374
|
testIdAttributes: { name: "DashboardSettingsSidebarItem" },
|
|
376
375
|
title: r`Settings`,
|
|
377
376
|
width: 60,
|
|
378
|
-
children: n && /* @__PURE__ */ K(
|
|
377
|
+
children: n && /* @__PURE__ */ K(ht, { onReset: t })
|
|
379
378
|
});
|
|
380
|
-
},
|
|
379
|
+
}, _t = Ce(null), vt = {
|
|
381
380
|
didCatch: !1,
|
|
382
381
|
error: null
|
|
383
|
-
},
|
|
382
|
+
}, yt = class extends xe {
|
|
384
383
|
constructor(e) {
|
|
385
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
384
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = vt;
|
|
386
385
|
}
|
|
387
386
|
static getDerivedStateFromError(e) {
|
|
388
387
|
return {
|
|
@@ -395,18 +394,18 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
395
394
|
t && (this.props.onReset?.({
|
|
396
395
|
args: e,
|
|
397
396
|
reason: "imperative-api"
|
|
398
|
-
}), this.setState(
|
|
397
|
+
}), this.setState(vt));
|
|
399
398
|
}
|
|
400
399
|
componentDidCatch(e, t) {
|
|
401
400
|
this.props.onError?.(e, t);
|
|
402
401
|
}
|
|
403
402
|
componentDidUpdate(e, t) {
|
|
404
403
|
let { didCatch: n } = this.state, { resetKeys: r } = this.props;
|
|
405
|
-
n && t.didCatch &&
|
|
404
|
+
n && t.didCatch && bt(e.resetKeys, r) && (this.props.onReset?.({
|
|
406
405
|
next: r,
|
|
407
406
|
prev: e.resetKeys,
|
|
408
407
|
reason: "keys"
|
|
409
|
-
}), this.setState(
|
|
408
|
+
}), this.setState(vt));
|
|
410
409
|
}
|
|
411
410
|
render() {
|
|
412
411
|
let { children: e, fallbackRender: t, FallbackComponent: n, fallback: r } = this.props, { didCatch: i, error: a } = this.state, o = e;
|
|
@@ -420,20 +419,20 @@ var ut = ze(({ onActionsChange: e, onClose: t, onTitleChange: n, openProps: i })
|
|
|
420
419
|
else if (r !== void 0) o = r;
|
|
421
420
|
else throw a;
|
|
422
421
|
}
|
|
423
|
-
return we(
|
|
422
|
+
return we(_t.Provider, { value: {
|
|
424
423
|
didCatch: i,
|
|
425
424
|
error: a,
|
|
426
425
|
resetErrorBoundary: this.resetErrorBoundary
|
|
427
426
|
} }, o);
|
|
428
427
|
}
|
|
429
428
|
};
|
|
430
|
-
function
|
|
429
|
+
function bt(e = [], t = []) {
|
|
431
430
|
return e.length !== t.length || e.some((e, n) => !Object.is(e, t[n]));
|
|
432
431
|
}
|
|
433
432
|
//#endregion
|
|
434
433
|
//#region src/components/ui/Dashboard/DashboardZoneContext.ts
|
|
435
|
-
var
|
|
436
|
-
let { t: e } = G(), [t, n] = W(null), r = z(T), a = z(
|
|
434
|
+
var xt = Ce(null), St = () => {
|
|
435
|
+
let { t: e } = G(), [t, n] = W(null), r = z(T), a = z(xt), s = o(r, (e) => e.dashboardArrangementConfig), c = o(r, (e) => e.setDashboardArrangementConfig), l = M.getInstance().config.dashboard.WIDGETS, u = a ? i.getAvailableWidgets(s, a, l) : [], d = B((e) => {
|
|
437
436
|
n(e.currentTarget);
|
|
438
437
|
}, []), f = B(() => {
|
|
439
438
|
n(null);
|
|
@@ -465,7 +464,7 @@ var St = Ce(null), Ct = () => {
|
|
|
465
464
|
},
|
|
466
465
|
children: [/* @__PURE__ */ K(P, {
|
|
467
466
|
onClick: d,
|
|
468
|
-
startIcon: /* @__PURE__ */ K(
|
|
467
|
+
startIcon: /* @__PURE__ */ K(Qe, {}),
|
|
469
468
|
variant: "outlined",
|
|
470
469
|
children: e("Add a widget")
|
|
471
470
|
}), /* @__PURE__ */ q(fe, {
|
|
@@ -482,13 +481,13 @@ var St = Ce(null), Ct = () => {
|
|
|
482
481
|
}, e))]
|
|
483
482
|
})]
|
|
484
483
|
});
|
|
485
|
-
},
|
|
484
|
+
}, Ct = (e, t) => ({
|
|
486
485
|
getItem: (n) => e.getState().dashboardPanels[`${t}-${n}`],
|
|
487
486
|
setItem: (n, r) => {
|
|
488
487
|
e.getState().setDashboardPanelConfiguration(`${t}-${n}`, r);
|
|
489
488
|
}
|
|
490
|
-
}),
|
|
491
|
-
let n = z(T), r = z(c), a = o(n, (e) => e.dashboardArrangementConfig), s = o(r, (e) => e.expandedZone), { MIN_PANEL_HEIGHT: u, MIN_PANEL_WIDTH: d } = M.getInstance().config.dashboard, { arrangementKey: f, arrangementWidgetAssignments: p } = a, m = M.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[f], h = f, g = H(() => m?.cells ? i.getArrangementGroupInfos(m, h) : [], [m, h]), _ = H(() =>
|
|
489
|
+
}), wt = ({ disabled: e, ref: t }) => {
|
|
490
|
+
let n = z(T), r = z(c), a = o(n, (e) => e.dashboardArrangementConfig), s = o(r, (e) => e.expandedZone), { MIN_PANEL_HEIGHT: u, MIN_PANEL_WIDTH: d } = M.getInstance().config.dashboard, { arrangementKey: f, arrangementWidgetAssignments: p } = a, m = M.getInstance().config.dashboard.ARRANGEMENT_OPTIONS[f], h = f, g = H(() => m?.cells ? i.getArrangementGroupInfos(m, h) : [], [m, h]), _ = H(() => Ct(n, "epi-dashboard"), [n]), v = D({
|
|
492
491
|
groupId: g[0]?.groupId ?? `${h}-ph-0`,
|
|
493
492
|
storage: _
|
|
494
493
|
}), y = D({
|
|
@@ -603,14 +602,14 @@ var St = Ce(null), Ct = () => {
|
|
|
603
602
|
} }), [xe]);
|
|
604
603
|
let Ce = H(() => {
|
|
605
604
|
let e = M.getInstance().config.dashboard.WIDGETS;
|
|
606
|
-
return Object.fromEntries(Object.entries(e).map(([e, { component: t, widgetLabel: n }]) => [e, /* @__PURE__ */ K(
|
|
605
|
+
return Object.fromEntries(Object.entries(e).map(([e, { component: t, widgetLabel: n }]) => [e, /* @__PURE__ */ K(yt, {
|
|
607
606
|
fallback: /* @__PURE__ */ K(l, { widgetLabel: n }),
|
|
608
607
|
children: we(t)
|
|
609
608
|
}, e)]));
|
|
610
609
|
}, []);
|
|
611
610
|
if (s) {
|
|
612
611
|
let e = p[s];
|
|
613
|
-
return /* @__PURE__ */ K(
|
|
612
|
+
return /* @__PURE__ */ K(xt, {
|
|
614
613
|
value: s,
|
|
615
614
|
children: Ce[e] ?? null
|
|
616
615
|
});
|
|
@@ -636,9 +635,9 @@ var St = Ce(null), Ct = () => {
|
|
|
636
635
|
id: s,
|
|
637
636
|
minSize: i === "vertical" ? u : d,
|
|
638
637
|
style: { overflow: "hidden" },
|
|
639
|
-
children: "name" in n ? /* @__PURE__ */ K(
|
|
638
|
+
children: "name" in n ? /* @__PURE__ */ K(xt, {
|
|
640
639
|
value: n.name,
|
|
641
|
-
children: Ce[p[n.name]] ?? /* @__PURE__ */ K(
|
|
640
|
+
children: Ce[p[n.name]] ?? /* @__PURE__ */ K(St, {})
|
|
642
641
|
}) : B(n)
|
|
643
642
|
}),
|
|
644
643
|
!o && i === "horizontal" && /* @__PURE__ */ K(ne, { disabled: e }),
|
|
@@ -648,7 +647,7 @@ var St = Ce(null), Ct = () => {
|
|
|
648
647
|
});
|
|
649
648
|
};
|
|
650
649
|
return B(m);
|
|
651
|
-
},
|
|
650
|
+
}, Tt = qe, Et = () => {
|
|
652
651
|
let e = be(), { t } = G(), [n, r] = W([]);
|
|
653
652
|
V(() => {
|
|
654
653
|
let e = (e) => {
|
|
@@ -691,63 +690,63 @@ var St = Ce(null), Ct = () => {
|
|
|
691
690
|
]
|
|
692
691
|
}, n.zone))
|
|
693
692
|
});
|
|
694
|
-
},
|
|
693
|
+
}, Dt = ({ onClose: e, open: t }) => {
|
|
695
694
|
let { t: n } = G();
|
|
696
|
-
return /* @__PURE__ */ K(
|
|
697
|
-
closeIcon: /* @__PURE__ */ K(
|
|
695
|
+
return /* @__PURE__ */ K(He, {
|
|
696
|
+
closeIcon: /* @__PURE__ */ K(Tt, {}),
|
|
698
697
|
closeIconTooltipText: n`Close download`,
|
|
699
698
|
onClose: e,
|
|
700
699
|
open: t,
|
|
701
700
|
testIdAttributes: { name: "DashboardDownloadSidebarItem" },
|
|
702
701
|
title: n`Download`,
|
|
703
702
|
width: 60,
|
|
704
|
-
children: t && /* @__PURE__ */ K(
|
|
703
|
+
children: t && /* @__PURE__ */ K(Et, {})
|
|
705
704
|
});
|
|
706
705
|
};
|
|
707
706
|
//#endregion
|
|
708
707
|
//#region ../../node_modules/.pnpm/fuse.js@7.5.0/node_modules/fuse.js/dist/fuse.mjs
|
|
709
708
|
function Y(e) {
|
|
710
|
-
return Array.isArray ? Array.isArray(e) :
|
|
709
|
+
return Array.isArray ? Array.isArray(e) : Ft(e) === "[object Array]";
|
|
711
710
|
}
|
|
712
|
-
function
|
|
711
|
+
function Ot(e) {
|
|
713
712
|
if (typeof e == "string") return e;
|
|
714
713
|
if (typeof e == "bigint") return e.toString();
|
|
715
714
|
let t = e + "";
|
|
716
715
|
return t == "0" && 1 / e == -Infinity ? "-0" : t;
|
|
717
716
|
}
|
|
718
|
-
function
|
|
719
|
-
return e == null ? "" :
|
|
717
|
+
function kt(e) {
|
|
718
|
+
return e == null ? "" : Ot(e);
|
|
720
719
|
}
|
|
721
720
|
function X(e) {
|
|
722
721
|
return typeof e == "string";
|
|
723
722
|
}
|
|
724
|
-
function
|
|
723
|
+
function At(e) {
|
|
725
724
|
return typeof e == "number";
|
|
726
725
|
}
|
|
727
|
-
function
|
|
728
|
-
return e === !0 || e === !1 ||
|
|
726
|
+
function jt(e) {
|
|
727
|
+
return e === !0 || e === !1 || Nt(e) && Ft(e) == "[object Boolean]";
|
|
729
728
|
}
|
|
730
|
-
function
|
|
729
|
+
function Mt(e) {
|
|
731
730
|
return typeof e == "object";
|
|
732
731
|
}
|
|
733
|
-
function
|
|
734
|
-
return
|
|
732
|
+
function Nt(e) {
|
|
733
|
+
return Mt(e) && e !== null;
|
|
735
734
|
}
|
|
736
735
|
function Z(e) {
|
|
737
736
|
return e != null;
|
|
738
737
|
}
|
|
739
|
-
function
|
|
738
|
+
function Pt(e) {
|
|
740
739
|
return !e.trim().length;
|
|
741
740
|
}
|
|
742
|
-
function
|
|
741
|
+
function Ft(e) {
|
|
743
742
|
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
744
743
|
}
|
|
745
|
-
var
|
|
744
|
+
var It = "Incorrect 'index' type", Lt = "Invalid doc index: must be a non-negative integer within the bounds of the docs array", Rt = (e) => `Invalid value for key ${e}`, zt = (e) => `Pattern length exceeds max of ${e}.`, Bt = (e) => `Missing ${e} property in key`, Vt = (e) => `Property 'weight' in key '${e}' must be a positive integer`, Ht = "Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.", Ut = Object.prototype.hasOwnProperty, Wt = class {
|
|
746
745
|
constructor(e) {
|
|
747
746
|
this._keys = [], this._keyMap = {};
|
|
748
747
|
let t = 0;
|
|
749
748
|
e.forEach((e) => {
|
|
750
|
-
let n =
|
|
749
|
+
let n = Gt(e);
|
|
751
750
|
this._keys.push(n), this._keyMap[n.id] = n, t += n.weight;
|
|
752
751
|
}), this._keys.forEach((e) => {
|
|
753
752
|
e.weight /= t;
|
|
@@ -763,14 +762,14 @@ var Lt = "Incorrect 'index' type", Rt = "Invalid doc index: must be a non-negati
|
|
|
763
762
|
return JSON.stringify(this._keys);
|
|
764
763
|
}
|
|
765
764
|
};
|
|
766
|
-
function
|
|
765
|
+
function Gt(e) {
|
|
767
766
|
let t = null, n = null, r = null, i = 1, a = null;
|
|
768
|
-
if (X(e) || Y(e)) r = e, t =
|
|
767
|
+
if (X(e) || Y(e)) r = e, t = Kt(e), n = qt(e);
|
|
769
768
|
else {
|
|
770
|
-
if (!
|
|
769
|
+
if (!Ut.call(e, "name")) throw Error(Bt("name"));
|
|
771
770
|
let o = e.name;
|
|
772
|
-
if (r = o,
|
|
773
|
-
t =
|
|
771
|
+
if (r = o, Ut.call(e, "weight") && e.weight !== void 0 && (i = e.weight, i <= 0)) throw Error(Vt(qt(o)));
|
|
772
|
+
t = Kt(o), n = qt(o), a = e.getFn ?? null;
|
|
774
773
|
}
|
|
775
774
|
return {
|
|
776
775
|
path: t,
|
|
@@ -780,13 +779,13 @@ function Kt(e) {
|
|
|
780
779
|
getFn: a
|
|
781
780
|
};
|
|
782
781
|
}
|
|
783
|
-
function
|
|
782
|
+
function Kt(e) {
|
|
784
783
|
return Y(e) ? e : e.split(".");
|
|
785
784
|
}
|
|
786
|
-
function
|
|
785
|
+
function qt(e) {
|
|
787
786
|
return Y(e) ? e.join(".") : e;
|
|
788
787
|
}
|
|
789
|
-
function
|
|
788
|
+
function Jt(e, t) {
|
|
790
789
|
let n = [], r = !1, i = (e, t, a, o) => {
|
|
791
790
|
if (Z(e)) {
|
|
792
791
|
if (!t[a]) n.push(o === void 0 ? e : {
|
|
@@ -796,8 +795,8 @@ function Yt(e, t) {
|
|
|
796
795
|
else {
|
|
797
796
|
let s = e[t[a]];
|
|
798
797
|
if (!Z(s)) return;
|
|
799
|
-
if (a === t.length - 1 && (X(s) ||
|
|
800
|
-
v:
|
|
798
|
+
if (a === t.length - 1 && (X(s) || At(s) || jt(s) || typeof s == "bigint")) n.push(o === void 0 ? kt(s) : {
|
|
799
|
+
v: kt(s),
|
|
801
800
|
i: o
|
|
802
801
|
});
|
|
803
802
|
else if (Y(s)) {
|
|
@@ -809,45 +808,45 @@ function Yt(e, t) {
|
|
|
809
808
|
};
|
|
810
809
|
return i(e, X(t) ? t.split(".") : t, 0), r ? n : n[0];
|
|
811
810
|
}
|
|
812
|
-
var
|
|
811
|
+
var Yt = {
|
|
813
812
|
includeMatches: !1,
|
|
814
813
|
findAllMatches: !1,
|
|
815
814
|
minMatchCharLength: 1
|
|
816
|
-
},
|
|
815
|
+
}, Xt = {
|
|
817
816
|
isCaseSensitive: !1,
|
|
818
817
|
ignoreDiacritics: !1,
|
|
819
818
|
includeScore: !1,
|
|
820
819
|
keys: [],
|
|
821
820
|
shouldSort: !0,
|
|
822
821
|
sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
|
|
823
|
-
},
|
|
822
|
+
}, Zt = {
|
|
824
823
|
location: 0,
|
|
825
824
|
threshold: .6,
|
|
826
825
|
distance: 100
|
|
827
|
-
},
|
|
826
|
+
}, Qt = {
|
|
828
827
|
useExtendedSearch: !1,
|
|
829
828
|
useTokenSearch: !1,
|
|
830
829
|
tokenize: void 0,
|
|
831
830
|
tokenMatch: "any",
|
|
832
|
-
getFn:
|
|
831
|
+
getFn: Jt,
|
|
833
832
|
ignoreLocation: !1,
|
|
834
833
|
ignoreFieldNorm: !1,
|
|
835
834
|
fieldNormWeight: 1
|
|
836
835
|
}, Q = Object.freeze({
|
|
837
|
-
...Zt,
|
|
838
836
|
...Xt,
|
|
839
|
-
...
|
|
840
|
-
|
|
837
|
+
...Yt,
|
|
838
|
+
...Zt,
|
|
839
|
+
...Qt
|
|
841
840
|
});
|
|
842
|
-
function
|
|
841
|
+
function $t(e) {
|
|
843
842
|
return e >= 9 && e <= 13 || e === 32 || e === 160;
|
|
844
843
|
}
|
|
845
|
-
function
|
|
844
|
+
function en(e = 1, t = 3) {
|
|
846
845
|
let n = /* @__PURE__ */ new Map(), r = 10 ** t;
|
|
847
846
|
return {
|
|
848
847
|
get(t) {
|
|
849
848
|
let i = 0, a = !1;
|
|
850
|
-
for (let e = 0; e < t.length; e++)
|
|
849
|
+
for (let e = 0; e < t.length; e++) $t(t.charCodeAt(e)) ? a = !1 : a ||= (i++, !0);
|
|
851
850
|
if (i === 0 && (i = 1), n.has(i)) return n.get(i);
|
|
852
851
|
let o = Math.round(r / i ** (.5 * e)) / r;
|
|
853
852
|
return n.set(i, o), o;
|
|
@@ -857,9 +856,9 @@ function tn(e = 1, t = 3) {
|
|
|
857
856
|
}
|
|
858
857
|
};
|
|
859
858
|
}
|
|
860
|
-
var
|
|
859
|
+
var tn = class {
|
|
861
860
|
constructor({ getFn: e = Q.getFn, fieldNormWeight: t = Q.fieldNormWeight } = {}) {
|
|
862
|
-
this.norm =
|
|
861
|
+
this.norm = en(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
|
|
863
862
|
}
|
|
864
863
|
setSources(e = []) {
|
|
865
864
|
this.docs = e;
|
|
@@ -886,7 +885,7 @@ var nn = class {
|
|
|
886
885
|
this.records.length = t, this.norm.clear();
|
|
887
886
|
}
|
|
888
887
|
add(e, t) {
|
|
889
|
-
if (!Number.isInteger(t) || t < 0) throw Error(
|
|
888
|
+
if (!Number.isInteger(t) || t < 0) throw Error(Lt);
|
|
890
889
|
if (X(e)) {
|
|
891
890
|
let n = this._createStringRecord(e, t);
|
|
892
891
|
return n && this.records.push(n), n;
|
|
@@ -895,7 +894,7 @@ var nn = class {
|
|
|
895
894
|
return this.records.push(n), n;
|
|
896
895
|
}
|
|
897
896
|
removeAt(e) {
|
|
898
|
-
if (!Number.isInteger(e) || e < 0) throw Error(
|
|
897
|
+
if (!Number.isInteger(e) || e < 0) throw Error(Lt);
|
|
899
898
|
for (let t = 0, n = this.records.length; t < n; t += 1) if (this.records[t].i === e) {
|
|
900
899
|
this.records.splice(t, 1);
|
|
901
900
|
break;
|
|
@@ -924,7 +923,7 @@ var nn = class {
|
|
|
924
923
|
return this.records.length;
|
|
925
924
|
}
|
|
926
925
|
_createStringRecord(e, t) {
|
|
927
|
-
return !Z(e) ||
|
|
926
|
+
return !Z(e) || Pt(e) ? null : {
|
|
928
927
|
v: e,
|
|
929
928
|
i: t,
|
|
930
929
|
n: this.norm.get(e)
|
|
@@ -944,7 +943,7 @@ var nn = class {
|
|
|
944
943
|
let n = i[t];
|
|
945
944
|
if (Z(n)) {
|
|
946
945
|
if (X(n)) {
|
|
947
|
-
if (!
|
|
946
|
+
if (!Pt(n)) {
|
|
948
947
|
let r = {
|
|
949
948
|
v: n,
|
|
950
949
|
i: t,
|
|
@@ -953,8 +952,8 @@ var nn = class {
|
|
|
953
952
|
e.push(r);
|
|
954
953
|
}
|
|
955
954
|
} else if (Z(n.v)) {
|
|
956
|
-
let t = X(n.v) ? n.v :
|
|
957
|
-
if (!
|
|
955
|
+
let t = X(n.v) ? n.v : kt(n.v);
|
|
956
|
+
if (!Pt(t)) {
|
|
958
957
|
let r = {
|
|
959
958
|
v: t,
|
|
960
959
|
i: n.i,
|
|
@@ -966,7 +965,7 @@ var nn = class {
|
|
|
966
965
|
}
|
|
967
966
|
}
|
|
968
967
|
n.$[t] = e;
|
|
969
|
-
} else if (X(i) && !
|
|
968
|
+
} else if (X(i) && !Pt(i)) {
|
|
970
969
|
let e = {
|
|
971
970
|
v: i,
|
|
972
971
|
n: this.norm.get(i)
|
|
@@ -984,21 +983,21 @@ var nn = class {
|
|
|
984
983
|
};
|
|
985
984
|
}
|
|
986
985
|
};
|
|
987
|
-
function
|
|
988
|
-
let i = new
|
|
986
|
+
function nn(e, t, { getFn: n = Q.getFn, fieldNormWeight: r = Q.fieldNormWeight } = {}) {
|
|
987
|
+
let i = new tn({
|
|
989
988
|
getFn: n,
|
|
990
989
|
fieldNormWeight: r
|
|
991
990
|
});
|
|
992
|
-
return i.setKeys(e.map(
|
|
991
|
+
return i.setKeys(e.map(Gt)), i.setSources(t), i.create(), i;
|
|
993
992
|
}
|
|
994
|
-
function
|
|
995
|
-
let { keys: r, records: i } = e, a = new
|
|
993
|
+
function rn(e, { getFn: t = Q.getFn, fieldNormWeight: n = Q.fieldNormWeight } = {}) {
|
|
994
|
+
let { keys: r, records: i } = e, a = new tn({
|
|
996
995
|
getFn: t,
|
|
997
996
|
fieldNormWeight: n
|
|
998
997
|
});
|
|
999
998
|
return a.setKeys(r), a.setIndexRecords(i), a;
|
|
1000
999
|
}
|
|
1001
|
-
function
|
|
1000
|
+
function an(e = [], t = Q.minMatchCharLength) {
|
|
1002
1001
|
let n = [], r = -1, i = -1, a = 0;
|
|
1003
1002
|
for (let o = e.length; a < o; a += 1) {
|
|
1004
1003
|
let o = e[a];
|
|
@@ -1006,8 +1005,8 @@ function on(e = [], t = Q.minMatchCharLength) {
|
|
|
1006
1005
|
}
|
|
1007
1006
|
return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
|
|
1008
1007
|
}
|
|
1009
|
-
function
|
|
1010
|
-
if (t.length > 32) throw Error(
|
|
1008
|
+
function on(e, t, n, { location: r = Q.location, distance: i = Q.distance, threshold: a = Q.threshold, findAllMatches: o = Q.findAllMatches, minMatchCharLength: s = Q.minMatchCharLength, includeMatches: c = Q.includeMatches, ignoreLocation: l = Q.ignoreLocation } = {}) {
|
|
1009
|
+
if (t.length > 32) throw Error(zt(32));
|
|
1011
1010
|
let u = t.length, d = e.length, f = Math.max(0, Math.min(r, d)), p = a, m = f, h = (e, t) => {
|
|
1012
1011
|
let n = e / u;
|
|
1013
1012
|
if (l) return n;
|
|
@@ -1048,12 +1047,12 @@ function sn(e, t, n, { location: r = Q.location, distance: i = Q.distance, thres
|
|
|
1048
1047
|
score: Math.max(.001, b)
|
|
1049
1048
|
};
|
|
1050
1049
|
if (g) {
|
|
1051
|
-
let e =
|
|
1050
|
+
let e = an(_, s);
|
|
1052
1051
|
e.length ? c && (w.indices = e) : w.isMatch = !1;
|
|
1053
1052
|
}
|
|
1054
1053
|
return w;
|
|
1055
1054
|
}
|
|
1056
|
-
function
|
|
1055
|
+
function sn(e) {
|
|
1057
1056
|
let t = {};
|
|
1058
1057
|
for (let n = 0, r = e.length; n < r; n += 1) {
|
|
1059
1058
|
let i = e.charAt(n);
|
|
@@ -1061,7 +1060,7 @@ function cn(e) {
|
|
|
1061
1060
|
}
|
|
1062
1061
|
return t;
|
|
1063
1062
|
}
|
|
1064
|
-
function
|
|
1063
|
+
function cn(e) {
|
|
1065
1064
|
if (e.length <= 1) return e;
|
|
1066
1065
|
e.sort((e, t) => e[0] - t[0] || e[1] - t[1]);
|
|
1067
1066
|
let t = [e[0]];
|
|
@@ -1071,7 +1070,7 @@ function ln(e) {
|
|
|
1071
1070
|
}
|
|
1072
1071
|
return t;
|
|
1073
1072
|
}
|
|
1074
|
-
var
|
|
1073
|
+
var ln = {
|
|
1075
1074
|
ł: "l",
|
|
1076
1075
|
Ł: "L",
|
|
1077
1076
|
đ: "d",
|
|
@@ -1084,7 +1083,7 @@ var un = {
|
|
|
1084
1083
|
Ŧ: "T",
|
|
1085
1084
|
ı: "i",
|
|
1086
1085
|
ß: "ss"
|
|
1087
|
-
},
|
|
1086
|
+
}, un = RegExp("[" + Object.keys(ln).join("") + "]", "g"), dn = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(un, (e) => ln[e]) : (e) => e, fn = class {
|
|
1088
1087
|
constructor(e, { location: t = Q.location, threshold: n = Q.threshold, distance: r = Q.distance, includeMatches: i = Q.includeMatches, findAllMatches: a = Q.findAllMatches, minMatchCharLength: o = Q.minMatchCharLength, isCaseSensitive: s = Q.isCaseSensitive, ignoreDiacritics: c = Q.ignoreDiacritics, ignoreLocation: l = Q.ignoreLocation } = {}) {
|
|
1089
1088
|
if (this.options = {
|
|
1090
1089
|
location: t,
|
|
@@ -1096,11 +1095,11 @@ var un = {
|
|
|
1096
1095
|
isCaseSensitive: s,
|
|
1097
1096
|
ignoreDiacritics: c,
|
|
1098
1097
|
ignoreLocation: l
|
|
1099
|
-
}, e = s ? e : e.toLowerCase(), e = c ?
|
|
1098
|
+
}, e = s ? e : e.toLowerCase(), e = c ? dn(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
|
|
1100
1099
|
let u = (e, t) => {
|
|
1101
1100
|
this.chunks.push({
|
|
1102
1101
|
pattern: e,
|
|
1103
|
-
alphabet:
|
|
1102
|
+
alphabet: sn(e),
|
|
1104
1103
|
startIndex: t
|
|
1105
1104
|
});
|
|
1106
1105
|
}, d = this.pattern.length;
|
|
@@ -1115,7 +1114,7 @@ var un = {
|
|
|
1115
1114
|
}
|
|
1116
1115
|
searchIn(e) {
|
|
1117
1116
|
let { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
|
|
1118
|
-
if (e = t ? e : e.toLowerCase(), e = n ?
|
|
1117
|
+
if (e = t ? e : e.toLowerCase(), e = n ? dn(e) : e, this.pattern === e) {
|
|
1119
1118
|
if (e.length < this.options.minMatchCharLength) return {
|
|
1120
1119
|
isMatch: !1,
|
|
1121
1120
|
score: 1
|
|
@@ -1128,7 +1127,7 @@ var un = {
|
|
|
1128
1127
|
}
|
|
1129
1128
|
let { location: i, distance: a, threshold: o, findAllMatches: s, minMatchCharLength: c, ignoreLocation: l } = this.options, u = [], d = 0, f = !1;
|
|
1130
1129
|
this.chunks.forEach(({ pattern: t, alphabet: n, startIndex: p }) => {
|
|
1131
|
-
let { isMatch: m, score: h, indices: g } =
|
|
1130
|
+
let { isMatch: m, score: h, indices: g } = on(e, t, n, {
|
|
1132
1131
|
location: i + p,
|
|
1133
1132
|
distance: a,
|
|
1134
1133
|
threshold: o,
|
|
@@ -1143,13 +1142,13 @@ var un = {
|
|
|
1143
1142
|
isMatch: f,
|
|
1144
1143
|
score: f ? d / this.chunks.length : 1
|
|
1145
1144
|
};
|
|
1146
|
-
return f && r && (p.indices =
|
|
1145
|
+
return f && r && (p.indices = cn(u)), p;
|
|
1147
1146
|
}
|
|
1148
|
-
},
|
|
1149
|
-
function
|
|
1147
|
+
}, pn = /* @__PURE__ */ new Set(["fuzzy", "include"]);
|
|
1148
|
+
function mn(e) {
|
|
1150
1149
|
return e.startsWith("inverse");
|
|
1151
1150
|
}
|
|
1152
|
-
var
|
|
1151
|
+
var hn = [
|
|
1153
1152
|
{
|
|
1154
1153
|
type: "exact",
|
|
1155
1154
|
multiRegex: /^="(.*)"$/,
|
|
@@ -1269,7 +1268,7 @@ var gn = [
|
|
|
1269
1268
|
multiRegex: /^"(.*)"$/,
|
|
1270
1269
|
singleRegex: /^(.*)$/,
|
|
1271
1270
|
create: (e, t = {}) => {
|
|
1272
|
-
let n = new
|
|
1271
|
+
let n = new fn(e, {
|
|
1273
1272
|
location: t.location ?? Q.location,
|
|
1274
1273
|
threshold: t.threshold ?? Q.threshold,
|
|
1275
1274
|
distance: t.distance ?? Q.distance,
|
|
@@ -1288,8 +1287,8 @@ var gn = [
|
|
|
1288
1287
|
};
|
|
1289
1288
|
}
|
|
1290
1289
|
}
|
|
1291
|
-
],
|
|
1292
|
-
function
|
|
1290
|
+
], gn = hn.length, _n = "\0", vn = "|";
|
|
1291
|
+
function yn(e) {
|
|
1293
1292
|
let t = [], n = e.length, r = 0;
|
|
1294
1293
|
for (; r < n;) {
|
|
1295
1294
|
for (; r < n && e[r] === " ";) r++;
|
|
@@ -1319,21 +1318,21 @@ function bn(e) {
|
|
|
1319
1318
|
}
|
|
1320
1319
|
return t;
|
|
1321
1320
|
}
|
|
1322
|
-
function
|
|
1321
|
+
function bn(e, t) {
|
|
1323
1322
|
let n = e.match(t);
|
|
1324
1323
|
return n ? n[1] : null;
|
|
1325
1324
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return e.replace(/\\\|/g,
|
|
1328
|
-
let n =
|
|
1325
|
+
function xn(e, t = {}) {
|
|
1326
|
+
return e.replace(/\\\|/g, _n).split(vn).map((e) => {
|
|
1327
|
+
let n = yn(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
|
|
1329
1328
|
for (let e = 0, i = n.length; e < i; e += 1) {
|
|
1330
1329
|
let i = n[e], a = !1, o = -1;
|
|
1331
|
-
for (; !a && ++o <
|
|
1332
|
-
let e =
|
|
1330
|
+
for (; !a && ++o < gn;) {
|
|
1331
|
+
let e = hn[o], n = bn(i, e.multiRegex);
|
|
1333
1332
|
n && (r.push(e.create(n, t)), a = !0);
|
|
1334
1333
|
}
|
|
1335
|
-
if (!a) for (o = -1; ++o <
|
|
1336
|
-
let e =
|
|
1334
|
+
if (!a) for (o = -1; ++o < gn;) {
|
|
1335
|
+
let e = hn[o], n = bn(i, e.singleRegex);
|
|
1337
1336
|
if (n) {
|
|
1338
1337
|
r.push(e.create(n, t));
|
|
1339
1338
|
break;
|
|
@@ -1343,7 +1342,7 @@ function Sn(e, t = {}) {
|
|
|
1343
1342
|
return r;
|
|
1344
1343
|
});
|
|
1345
1344
|
}
|
|
1346
|
-
var
|
|
1345
|
+
var Sn = class {
|
|
1347
1346
|
constructor(e, { isCaseSensitive: t = Q.isCaseSensitive, ignoreDiacritics: n = Q.ignoreDiacritics, includeMatches: r = Q.includeMatches, minMatchCharLength: i = Q.minMatchCharLength, ignoreLocation: a = Q.ignoreLocation, findAllMatches: o = Q.findAllMatches, location: s = Q.location, threshold: c = Q.threshold, distance: l = Q.distance } = {}) {
|
|
1348
1347
|
this.query = null, this.options = {
|
|
1349
1348
|
isCaseSensitive: t,
|
|
@@ -1355,7 +1354,7 @@ var Cn = class {
|
|
|
1355
1354
|
location: s,
|
|
1356
1355
|
threshold: c,
|
|
1357
1356
|
distance: l
|
|
1358
|
-
}, e = t ? e : e.toLowerCase(), e = n ?
|
|
1357
|
+
}, e = t ? e : e.toLowerCase(), e = n ? dn(e) : e, this.pattern = e, this.query = xn(this.pattern, this.options);
|
|
1359
1358
|
}
|
|
1360
1359
|
static condition(e, t) {
|
|
1361
1360
|
return t.useExtendedSearch;
|
|
@@ -1367,14 +1366,14 @@ var Cn = class {
|
|
|
1367
1366
|
score: 1
|
|
1368
1367
|
};
|
|
1369
1368
|
let { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
|
|
1370
|
-
e = r ? e : e.toLowerCase(), e = i ?
|
|
1369
|
+
e = r ? e : e.toLowerCase(), e = i ? dn(e) : e;
|
|
1371
1370
|
let a = 0, o = [], s = 0, c = !1;
|
|
1372
1371
|
for (let r = 0, i = t.length; r < i; r += 1) {
|
|
1373
1372
|
let i = t[r];
|
|
1374
1373
|
o.length = 0, a = 0, c = !1;
|
|
1375
1374
|
for (let t = 0, r = i.length; t < r; t += 1) {
|
|
1376
1375
|
let r = i[t], { isMatch: l, indices: u, score: d } = r.search(e);
|
|
1377
|
-
if (l) a += 1, s += d,
|
|
1376
|
+
if (l) a += 1, s += d, mn(r.type) && (c = !0), n && (pn.has(r.type) ? o.push(...u) : o.push(u));
|
|
1378
1377
|
else {
|
|
1379
1378
|
s = 0, a = 0, o.length = 0, c = !1;
|
|
1380
1379
|
break;
|
|
@@ -1385,7 +1384,7 @@ var Cn = class {
|
|
|
1385
1384
|
isMatch: !0,
|
|
1386
1385
|
score: s / a
|
|
1387
1386
|
};
|
|
1388
|
-
return c && (e.hasInverse = !0), n && (e.indices =
|
|
1387
|
+
return c && (e.hasInverse = !0), n && (e.indices = cn(o)), e;
|
|
1389
1388
|
}
|
|
1390
1389
|
}
|
|
1391
1390
|
return {
|
|
@@ -1393,43 +1392,43 @@ var Cn = class {
|
|
|
1393
1392
|
score: 1
|
|
1394
1393
|
};
|
|
1395
1394
|
}
|
|
1396
|
-
},
|
|
1397
|
-
function
|
|
1398
|
-
|
|
1395
|
+
}, Cn = [];
|
|
1396
|
+
function wn(...e) {
|
|
1397
|
+
Cn.push(...e);
|
|
1399
1398
|
}
|
|
1400
|
-
function
|
|
1401
|
-
for (let n = 0, r =
|
|
1402
|
-
let r =
|
|
1399
|
+
function Tn(e, t) {
|
|
1400
|
+
for (let n = 0, r = Cn.length; n < r; n += 1) {
|
|
1401
|
+
let r = Cn[n];
|
|
1403
1402
|
if (r.condition(e, t)) return new r(e, t);
|
|
1404
1403
|
}
|
|
1405
|
-
return new
|
|
1404
|
+
return new fn(e, t);
|
|
1406
1405
|
}
|
|
1407
|
-
var
|
|
1406
|
+
var En = {
|
|
1408
1407
|
AND: "$and",
|
|
1409
1408
|
OR: "$or"
|
|
1410
|
-
},
|
|
1409
|
+
}, Dn = {
|
|
1411
1410
|
PATH: "$path",
|
|
1412
1411
|
PATTERN: "$val"
|
|
1413
|
-
},
|
|
1414
|
-
function
|
|
1412
|
+
}, On = (e) => !!(e[En.AND] || e[En.OR]), kn = (e) => !!e[Dn.PATH], An = (e) => !Y(e) && Mt(e) && !On(e), jn = (e) => ({ [En.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
|
|
1413
|
+
function Mn(e, t, { auto: n = !0 } = {}) {
|
|
1415
1414
|
let r = (e) => {
|
|
1416
1415
|
if (X(e)) {
|
|
1417
1416
|
let r = {
|
|
1418
1417
|
keyId: null,
|
|
1419
1418
|
pattern: e
|
|
1420
1419
|
};
|
|
1421
|
-
return n && (r.searcher =
|
|
1420
|
+
return n && (r.searcher = Tn(e, t)), r;
|
|
1422
1421
|
}
|
|
1423
|
-
let i = Object.keys(e), a =
|
|
1424
|
-
if (!a && i.length > 1 && !
|
|
1425
|
-
if (
|
|
1426
|
-
let r = a ? e[
|
|
1427
|
-
if (!X(o)) throw Error(
|
|
1422
|
+
let i = Object.keys(e), a = kn(e);
|
|
1423
|
+
if (!a && i.length > 1 && !On(e)) return r(jn(e));
|
|
1424
|
+
if (An(e)) {
|
|
1425
|
+
let r = a ? e[Dn.PATH] : i[0], o = a ? e[Dn.PATTERN] : e[r];
|
|
1426
|
+
if (!X(o)) throw Error(Rt(r));
|
|
1428
1427
|
let s = {
|
|
1429
|
-
keyId:
|
|
1428
|
+
keyId: qt(r),
|
|
1430
1429
|
pattern: o
|
|
1431
1430
|
};
|
|
1432
|
-
return n && (s.searcher =
|
|
1431
|
+
return n && (s.searcher = Tn(o, t)), s;
|
|
1433
1432
|
}
|
|
1434
1433
|
let o = {
|
|
1435
1434
|
children: [],
|
|
@@ -1442,21 +1441,21 @@ function Nn(e, t, { auto: n = !0 } = {}) {
|
|
|
1442
1441
|
});
|
|
1443
1442
|
}), o;
|
|
1444
1443
|
};
|
|
1445
|
-
return
|
|
1444
|
+
return On(e) || (e = jn(e)), r(e);
|
|
1446
1445
|
}
|
|
1447
|
-
function
|
|
1446
|
+
function Nn(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
|
|
1448
1447
|
let n = 1;
|
|
1449
1448
|
return e.forEach(({ key: e, norm: r, score: i }) => {
|
|
1450
1449
|
let a = e ? e.weight : null;
|
|
1451
1450
|
n *= (i === 0 && a ? 2 ** -52 : i) ** +((a || 1) * (t ? 1 : r));
|
|
1452
1451
|
}), n;
|
|
1453
1452
|
}
|
|
1454
|
-
function
|
|
1453
|
+
function Pn(e, { ignoreFieldNorm: t = Q.ignoreFieldNorm }) {
|
|
1455
1454
|
e.forEach((e) => {
|
|
1456
|
-
e.score =
|
|
1455
|
+
e.score = Nn(e.matches, { ignoreFieldNorm: t });
|
|
1457
1456
|
});
|
|
1458
1457
|
}
|
|
1459
|
-
var
|
|
1458
|
+
var Fn = class {
|
|
1460
1459
|
constructor(e, t) {
|
|
1461
1460
|
this.limit = e, this.heap = [], this.comparator = t;
|
|
1462
1461
|
}
|
|
@@ -1490,7 +1489,7 @@ var In = class {
|
|
|
1490
1489
|
} while (r !== e);
|
|
1491
1490
|
}
|
|
1492
1491
|
};
|
|
1493
|
-
function
|
|
1492
|
+
function In(e) {
|
|
1494
1493
|
let t = [];
|
|
1495
1494
|
return e.matches.forEach((e) => {
|
|
1496
1495
|
if (!Z(e.indices) || !e.indices.length) return;
|
|
@@ -1501,20 +1500,20 @@ function Ln(e) {
|
|
|
1501
1500
|
e.key && (n.key = e.key.id), e.idx > -1 && (n.refIndex = e.idx), t.push(n);
|
|
1502
1501
|
}), t;
|
|
1503
1502
|
}
|
|
1504
|
-
function
|
|
1503
|
+
function Ln(e, t, { includeMatches: n = Q.includeMatches, includeScore: r = Q.includeScore } = {}) {
|
|
1505
1504
|
return e.map((e) => {
|
|
1506
1505
|
let { idx: i } = e, a = {
|
|
1507
1506
|
item: t[i],
|
|
1508
1507
|
refIndex: i
|
|
1509
1508
|
};
|
|
1510
|
-
return n && (a.matches =
|
|
1509
|
+
return n && (a.matches = In(e)), r && (a.score = e.score), a;
|
|
1511
1510
|
});
|
|
1512
1511
|
}
|
|
1513
|
-
var
|
|
1514
|
-
function
|
|
1515
|
-
|
|
1512
|
+
var Rn = /[\p{L}\p{M}\p{N}_]+/gu, zn = /* @__PURE__ */ new WeakSet();
|
|
1513
|
+
function Bn(e) {
|
|
1514
|
+
zn.has(e) || (zn.add(e), console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`));
|
|
1516
1515
|
}
|
|
1517
|
-
function
|
|
1516
|
+
function Vn(e) {
|
|
1518
1517
|
if (typeof e == "function") {
|
|
1519
1518
|
let t = !1;
|
|
1520
1519
|
return (n) => {
|
|
@@ -1523,20 +1522,20 @@ function Hn(e) {
|
|
|
1523
1522
|
return r;
|
|
1524
1523
|
};
|
|
1525
1524
|
}
|
|
1526
|
-
return e instanceof RegExp ? (e.global ||
|
|
1525
|
+
return e instanceof RegExp ? (e.global || Bn(e), (t) => t.match(e) || []) : (e) => e.match(Rn) || [];
|
|
1527
1526
|
}
|
|
1528
|
-
function
|
|
1529
|
-
let r =
|
|
1527
|
+
function Hn({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
|
|
1528
|
+
let r = Vn(n);
|
|
1530
1529
|
return { tokenize(n) {
|
|
1531
|
-
return e || (n = n.toLowerCase()), t && (n =
|
|
1530
|
+
return e || (n = n.toLowerCase()), t && (n = dn(n)), r(n);
|
|
1532
1531
|
} };
|
|
1533
1532
|
}
|
|
1534
|
-
var
|
|
1533
|
+
var Un = class {
|
|
1535
1534
|
static condition(e, t) {
|
|
1536
1535
|
return t.useTokenSearch;
|
|
1537
1536
|
}
|
|
1538
1537
|
constructor(e, t) {
|
|
1539
|
-
this.options = t, this.analyzer =
|
|
1538
|
+
this.options = t, this.analyzer = Hn({
|
|
1540
1539
|
isCaseSensitive: t.isCaseSensitive,
|
|
1541
1540
|
ignoreDiacritics: t.ignoreDiacritics,
|
|
1542
1541
|
tokenize: t.tokenize
|
|
@@ -1544,7 +1543,7 @@ var Wn = class {
|
|
|
1544
1543
|
let n = this.analyzer.tokenize(e), { df: r, fieldCount: i } = t._invertedIndex;
|
|
1545
1544
|
this.termSearchers = [], this.idfWeights = [];
|
|
1546
1545
|
for (let e of n) {
|
|
1547
|
-
this.termSearchers.push(new
|
|
1546
|
+
this.termSearchers.push(new fn(e, {
|
|
1548
1547
|
location: t.location,
|
|
1549
1548
|
threshold: t.threshold,
|
|
1550
1549
|
distance: t.distance,
|
|
@@ -1578,10 +1577,10 @@ var Wn = class {
|
|
|
1578
1577
|
isMatch: !0,
|
|
1579
1578
|
score: Math.max(.001, s)
|
|
1580
1579
|
};
|
|
1581
|
-
return this.options.includeMatches && t.length && (c.indices =
|
|
1580
|
+
return this.options.includeMatches && t.length && (c.indices = cn(t)), this.combineAll && (this.useMask ? c.matchedMask = a : c.matchedTerms = o, c.termCount = this.numTerms), c;
|
|
1582
1581
|
}
|
|
1583
1582
|
};
|
|
1584
|
-
function
|
|
1583
|
+
function Wn(e, t, n, r) {
|
|
1585
1584
|
let i = r.tokenize(t);
|
|
1586
1585
|
if (!i.length) return;
|
|
1587
1586
|
e.fieldCount++, e.docFieldCount.set(n, (e.docFieldCount.get(n) || 0) + 1);
|
|
@@ -1589,34 +1588,34 @@ function Gn(e, t, n, r) {
|
|
|
1589
1588
|
o || (o = /* @__PURE__ */ new Map(), e.docTermFieldHits.set(n, o));
|
|
1590
1589
|
for (let t of a) o.set(t, (o.get(t) || 0) + 1), e.df.set(t, (e.df.get(t) || 0) + 1);
|
|
1591
1590
|
}
|
|
1592
|
-
function
|
|
1591
|
+
function Gn(e, t, n, r) {
|
|
1593
1592
|
let { i, v: a, $: o } = t;
|
|
1594
1593
|
if (a !== void 0) {
|
|
1595
|
-
|
|
1594
|
+
Wn(e, a, i, r);
|
|
1596
1595
|
return;
|
|
1597
1596
|
}
|
|
1598
1597
|
if (o) for (let t = 0; t < n; t++) {
|
|
1599
1598
|
let n = o[t];
|
|
1600
1599
|
if (n) {
|
|
1601
|
-
if (Array.isArray(n)) for (let t of n)
|
|
1602
|
-
else
|
|
1600
|
+
if (Array.isArray(n)) for (let t of n) Wn(e, t.v, i, r);
|
|
1601
|
+
else Wn(e, n.v, i, r);
|
|
1603
1602
|
}
|
|
1604
1603
|
}
|
|
1605
1604
|
}
|
|
1606
|
-
function
|
|
1605
|
+
function Kn(e, t, n) {
|
|
1607
1606
|
let r = {
|
|
1608
1607
|
fieldCount: 0,
|
|
1609
1608
|
df: /* @__PURE__ */ new Map(),
|
|
1610
1609
|
docFieldCount: /* @__PURE__ */ new Map(),
|
|
1611
1610
|
docTermFieldHits: /* @__PURE__ */ new Map()
|
|
1612
1611
|
};
|
|
1613
|
-
for (let i of e)
|
|
1612
|
+
for (let i of e) Gn(r, i, t, n);
|
|
1614
1613
|
return r;
|
|
1615
1614
|
}
|
|
1616
|
-
function
|
|
1617
|
-
|
|
1615
|
+
function qn(e, t, n, r) {
|
|
1616
|
+
Gn(e, t, n, r);
|
|
1618
1617
|
}
|
|
1619
|
-
function
|
|
1618
|
+
function Jn(e, t) {
|
|
1620
1619
|
let n = e.docFieldCount.get(t);
|
|
1621
1620
|
if (n === void 0) return;
|
|
1622
1621
|
e.fieldCount -= n, e.docFieldCount.delete(t);
|
|
@@ -1629,10 +1628,10 @@ function Yn(e, t) {
|
|
|
1629
1628
|
e.docTermFieldHits.delete(t);
|
|
1630
1629
|
}
|
|
1631
1630
|
}
|
|
1632
|
-
function
|
|
1631
|
+
function Yn(e, t) {
|
|
1633
1632
|
if (t.length === 0) return;
|
|
1634
1633
|
let n = Array.from(new Set(t)).sort((e, t) => e - t);
|
|
1635
|
-
for (let t of n)
|
|
1634
|
+
for (let t of n) Jn(e, t);
|
|
1636
1635
|
let r = (e) => {
|
|
1637
1636
|
let t = 0, r = n.length;
|
|
1638
1637
|
for (; t < r;) {
|
|
@@ -1652,28 +1651,28 @@ var $ = class {
|
|
|
1652
1651
|
this.options = {
|
|
1653
1652
|
...Q,
|
|
1654
1653
|
...t
|
|
1655
|
-
}, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new
|
|
1654
|
+
}, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new Wt(this.options.keys), this._docs = e, this._myIndex = null, this._invertedIndex = null, this.setCollection(e, n), this._lastQuery = null, this._lastSearcher = null;
|
|
1656
1655
|
}
|
|
1657
1656
|
_getSearcher(e) {
|
|
1658
1657
|
if (this._lastQuery === e) return this._lastSearcher;
|
|
1659
|
-
let t =
|
|
1658
|
+
let t = Tn(e, this._invertedIndex ? {
|
|
1660
1659
|
...this.options,
|
|
1661
1660
|
_invertedIndex: this._invertedIndex
|
|
1662
1661
|
} : this.options);
|
|
1663
1662
|
return this._lastQuery = e, this._lastSearcher = t, t;
|
|
1664
1663
|
}
|
|
1665
1664
|
setCollection(e, t) {
|
|
1666
|
-
if (this._docs = e, t && !(t instanceof
|
|
1667
|
-
if (this._myIndex = t ||
|
|
1665
|
+
if (this._docs = e, t && !(t instanceof tn)) throw Error(It);
|
|
1666
|
+
if (this._myIndex = t || nn(this.options.keys, this._docs, {
|
|
1668
1667
|
getFn: this.options.getFn,
|
|
1669
1668
|
fieldNormWeight: this.options.fieldNormWeight
|
|
1670
1669
|
}), this.options.useTokenSearch) {
|
|
1671
|
-
let e =
|
|
1670
|
+
let e = Hn({
|
|
1672
1671
|
isCaseSensitive: this.options.isCaseSensitive,
|
|
1673
1672
|
ignoreDiacritics: this.options.ignoreDiacritics,
|
|
1674
1673
|
tokenize: this.options.tokenize
|
|
1675
1674
|
});
|
|
1676
|
-
this._invertedIndex =
|
|
1675
|
+
this._invertedIndex = Kn(this._myIndex.records, this._myIndex.keys.length, e);
|
|
1677
1676
|
}
|
|
1678
1677
|
this._invalidateSearcherCache();
|
|
1679
1678
|
}
|
|
@@ -1682,12 +1681,12 @@ var $ = class {
|
|
|
1682
1681
|
this._docs.push(e);
|
|
1683
1682
|
let t = this._myIndex.add(e, this._docs.length - 1);
|
|
1684
1683
|
if (this._invertedIndex && t) {
|
|
1685
|
-
let e =
|
|
1684
|
+
let e = Hn({
|
|
1686
1685
|
isCaseSensitive: this.options.isCaseSensitive,
|
|
1687
1686
|
ignoreDiacritics: this.options.ignoreDiacritics,
|
|
1688
1687
|
tokenize: this.options.tokenize
|
|
1689
1688
|
});
|
|
1690
|
-
|
|
1689
|
+
qn(this._invertedIndex, t, this._myIndex.keys.length, e);
|
|
1691
1690
|
}
|
|
1692
1691
|
this._invalidateSearcherCache();
|
|
1693
1692
|
}
|
|
@@ -1695,15 +1694,15 @@ var $ = class {
|
|
|
1695
1694
|
let t = [], n = [];
|
|
1696
1695
|
for (let r = 0, i = this._docs.length; r < i; r += 1) e(this._docs[r], r) && (t.push(this._docs[r]), n.push(r));
|
|
1697
1696
|
if (n.length) {
|
|
1698
|
-
this._invertedIndex &&
|
|
1697
|
+
this._invertedIndex && Yn(this._invertedIndex, n);
|
|
1699
1698
|
let e = new Set(n);
|
|
1700
1699
|
this._docs = this._docs.filter((t, n) => !e.has(n)), this._myIndex.removeAll(n), this._invalidateSearcherCache();
|
|
1701
1700
|
}
|
|
1702
1701
|
return t;
|
|
1703
1702
|
}
|
|
1704
1703
|
removeAt(e) {
|
|
1705
|
-
if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(
|
|
1706
|
-
this._invertedIndex &&
|
|
1704
|
+
if (!Number.isInteger(e) || e < 0 || e >= this._docs.length) throw Error(Lt);
|
|
1705
|
+
this._invertedIndex && Yn(this._invertedIndex, [e]);
|
|
1707
1706
|
let t = this._docs.splice(e, 1)[0];
|
|
1708
1707
|
return this._myIndex.removeAt(e), this._invalidateSearcherCache(), t;
|
|
1709
1708
|
}
|
|
@@ -1723,11 +1722,11 @@ var $ = class {
|
|
|
1723
1722
|
item: e,
|
|
1724
1723
|
refIndex: t
|
|
1725
1724
|
}));
|
|
1726
|
-
return
|
|
1725
|
+
return At(n) && n > -1 && (e = e.slice(0, n)), e;
|
|
1727
1726
|
}
|
|
1728
|
-
let c = a &&
|
|
1727
|
+
let c = a && At(n) && n > 0 && X(e), l = o, u = (e, t) => l(e, t) || e.idx - t.idx, d;
|
|
1729
1728
|
if (c) {
|
|
1730
|
-
let t = new
|
|
1729
|
+
let t = new Fn(n, u);
|
|
1731
1730
|
X(this._docs[0]) ? this._searchStringList(e, {
|
|
1732
1731
|
heap: t,
|
|
1733
1732
|
ignoreFieldNorm: s
|
|
@@ -1735,8 +1734,8 @@ var $ = class {
|
|
|
1735
1734
|
heap: t,
|
|
1736
1735
|
ignoreFieldNorm: s
|
|
1737
1736
|
}), d = t.extractSorted();
|
|
1738
|
-
} else d = X(e) ? X(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e),
|
|
1739
|
-
return
|
|
1737
|
+
} else d = X(e) ? X(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), Pn(d, { ignoreFieldNorm: s }), a && d.sort(X(e) ? u : l), At(n) && n > -1 && (d = d.slice(0, n));
|
|
1738
|
+
return Ln(d, this._docs, {
|
|
1740
1739
|
includeMatches: r,
|
|
1741
1740
|
includeScore: i
|
|
1742
1741
|
});
|
|
@@ -1761,13 +1760,13 @@ var $ = class {
|
|
|
1761
1760
|
idx: a,
|
|
1762
1761
|
matches: l
|
|
1763
1762
|
};
|
|
1764
|
-
t ? (r.score =
|
|
1763
|
+
t ? (r.score = Nn(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : o.push(r);
|
|
1765
1764
|
}
|
|
1766
1765
|
}
|
|
1767
1766
|
}), o;
|
|
1768
1767
|
}
|
|
1769
1768
|
_searchLogical(e) {
|
|
1770
|
-
let t =
|
|
1769
|
+
let t = Mn(e, this.options), n = this._normalizedKeys(), r = (e, t, i) => {
|
|
1771
1770
|
if (!("children" in e)) {
|
|
1772
1771
|
let { keyId: r, searcher: a } = e, o;
|
|
1773
1772
|
return r === null ? (o = [], n.forEach((e, n) => {
|
|
@@ -1790,7 +1789,7 @@ var $ = class {
|
|
|
1790
1789
|
for (let e = 0, n = a.length; e < n; e += 1) {
|
|
1791
1790
|
let n = a[e], c = r(n, t, i);
|
|
1792
1791
|
if (c.length) s.push(...c);
|
|
1793
|
-
else if (o ===
|
|
1792
|
+
else if (o === En.AND) return [];
|
|
1794
1793
|
}
|
|
1795
1794
|
return s;
|
|
1796
1795
|
}, i = this._myIndex.records, a = /* @__PURE__ */ new Map(), o = [];
|
|
@@ -1825,7 +1824,7 @@ var $ = class {
|
|
|
1825
1824
|
item: e,
|
|
1826
1825
|
matches: c
|
|
1827
1826
|
};
|
|
1828
|
-
t ? (r.score =
|
|
1827
|
+
t ? (r.score = Nn(r.matches, { ignoreFieldNorm: n }), t.insert(r)) : s.push(r);
|
|
1829
1828
|
}
|
|
1830
1829
|
}), s;
|
|
1831
1830
|
}
|
|
@@ -1880,16 +1879,16 @@ var $ = class {
|
|
|
1880
1879
|
return n.size === t;
|
|
1881
1880
|
}
|
|
1882
1881
|
};
|
|
1883
|
-
$.version = "7.5.0", $.createIndex =
|
|
1884
|
-
if (n && n.useTokenSearch) throw Error(
|
|
1885
|
-
return
|
|
1882
|
+
$.version = "7.5.0", $.createIndex = nn, $.parseIndex = rn, $.config = Q, $.match = function(e, t, n) {
|
|
1883
|
+
if (n && n.useTokenSearch) throw Error(Ht);
|
|
1884
|
+
return Tn(e, {
|
|
1886
1885
|
...Q,
|
|
1887
1886
|
...n
|
|
1888
1887
|
}).searchIn(t);
|
|
1889
|
-
}, $.parseQuery =
|
|
1890
|
-
e.forEach((e) =>
|
|
1888
|
+
}, $.parseQuery = Mn, wn(Sn), wn(Un), $.use = function(...e) {
|
|
1889
|
+
e.forEach((e) => wn(e));
|
|
1891
1890
|
};
|
|
1892
|
-
var
|
|
1891
|
+
var Xn = $, Zn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, open: i, searchMode: a }) => {
|
|
1893
1892
|
let { t: o } = G(), s = [
|
|
1894
1893
|
{
|
|
1895
1894
|
label: o`Include match`,
|
|
@@ -1936,7 +1935,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
1936
1935
|
"data-search-mode": e.searchMode,
|
|
1937
1936
|
onClick: c,
|
|
1938
1937
|
selected: e.searchMode === a,
|
|
1939
|
-
children: [/* @__PURE__ */ K(ue, { children: e.searchMode === a && /* @__PURE__ */ K(
|
|
1938
|
+
children: [/* @__PURE__ */ K(ue, { children: e.searchMode === a && /* @__PURE__ */ K(it, { fontSize: "small" }) }), /* @__PURE__ */ K(de, { children: e.label })]
|
|
1940
1939
|
}, e.searchMode))
|
|
1941
1940
|
}),
|
|
1942
1941
|
/* @__PURE__ */ K(F, {}),
|
|
@@ -1965,7 +1964,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
1965
1964
|
})
|
|
1966
1965
|
})
|
|
1967
1966
|
});
|
|
1968
|
-
},
|
|
1967
|
+
}, Qn = (e, t) => {
|
|
1969
1968
|
switch (t) {
|
|
1970
1969
|
case "exact-match": return `=${e}`;
|
|
1971
1970
|
case "fuzzy-match": return e;
|
|
@@ -1974,7 +1973,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
1974
1973
|
case "suffix-exact-match": return `${e}$`;
|
|
1975
1974
|
default: return `'${e}`;
|
|
1976
1975
|
}
|
|
1977
|
-
},
|
|
1976
|
+
}, $n = () => {
|
|
1978
1977
|
let e = U(null), t = U(null), r = U(null), i = U(!1), s = U(null), l = U(null), u = U(null), d = z(c), f = o(d, (e) => e.sortedData), p = o(d, (e) => e.completeCaseType), m = be(), { t: h } = G(), [g, _] = W(""), [v, y] = W(null), [b, x] = W([]), [C, w] = W(!1), [T, E] = W(-1), [ee, D] = W("include-match"), [te, O] = W(null), k = z(S), ne = null;
|
|
1979
1978
|
g && (ne = b.length ? T < 0 ? h("{{numResults}} results", { numResults: b.length }) : h("{{current}}/{{numResults}} results", {
|
|
1980
1979
|
current: T + 1,
|
|
@@ -1992,7 +1991,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
1992
1991
|
let o = n.getRowValue({ [e]: t }, i, p);
|
|
1993
1992
|
o.isMissing || (a.concept_set_id || (r[`${e}-raw`] = o.raw), o.full !== o.raw && (r[`${e}-full`] = o.full), o.long !== o.raw && o.long !== o.full && (r[`${e}-long`] = o.long), o.short !== o.raw && o.short !== o.full && o.short !== o.long && (r[`${e}-short`] = o.short));
|
|
1994
1993
|
}), e.push(r);
|
|
1995
|
-
}), new
|
|
1994
|
+
}), new Xn(e, {
|
|
1996
1995
|
ignoreDiacritics: !0,
|
|
1997
1996
|
ignoreLocation: !1,
|
|
1998
1997
|
includeMatches: !0,
|
|
@@ -2026,7 +2025,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2026
2025
|
return;
|
|
2027
2026
|
}
|
|
2028
2027
|
if (!v) return;
|
|
2029
|
-
let e =
|
|
2028
|
+
let e = Qn(g, ee), t = v.search(e).sort((e, t) => e.refIndex - t.refIndex);
|
|
2030
2029
|
x(t), E(-1);
|
|
2031
2030
|
}, [
|
|
2032
2031
|
k,
|
|
@@ -2129,7 +2128,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2129
2128
|
onKeyDown: I,
|
|
2130
2129
|
ref: s,
|
|
2131
2130
|
sx: { color: m.palette.primary.main },
|
|
2132
|
-
children: /* @__PURE__ */ K(
|
|
2131
|
+
children: /* @__PURE__ */ K(et, {})
|
|
2133
2132
|
}),
|
|
2134
2133
|
/* @__PURE__ */ K(L, {
|
|
2135
2134
|
...J.createAttributes("DashboardSearch-NextButton"),
|
|
@@ -2140,7 +2139,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2140
2139
|
onKeyDown: I,
|
|
2141
2140
|
ref: l,
|
|
2142
2141
|
sx: { color: m.palette.primary.main },
|
|
2143
|
-
children: /* @__PURE__ */ K(
|
|
2142
|
+
children: /* @__PURE__ */ K(tt, {})
|
|
2144
2143
|
}),
|
|
2145
2144
|
/* @__PURE__ */ K(L, {
|
|
2146
2145
|
...J.createAttributes("DashboardSearch-SettingsButton"),
|
|
@@ -2149,9 +2148,9 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2149
2148
|
onClick: le,
|
|
2150
2149
|
onKeyDown: I,
|
|
2151
2150
|
ref: r,
|
|
2152
|
-
children: /* @__PURE__ */ K(
|
|
2151
|
+
children: /* @__PURE__ */ K(nt, {})
|
|
2153
2152
|
}),
|
|
2154
|
-
/* @__PURE__ */ K(
|
|
2153
|
+
/* @__PURE__ */ K(Zn, {
|
|
2155
2154
|
anchorEl: te,
|
|
2156
2155
|
onChange: fe,
|
|
2157
2156
|
onClose: ue,
|
|
@@ -2166,7 +2165,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2166
2165
|
onClick: ae,
|
|
2167
2166
|
onKeyDown: I,
|
|
2168
2167
|
ref: u,
|
|
2169
|
-
children: /* @__PURE__ */ K(
|
|
2168
|
+
children: /* @__PURE__ */ K(rt, {})
|
|
2170
2169
|
})
|
|
2171
2170
|
]
|
|
2172
2171
|
}),
|
|
@@ -2210,11 +2209,11 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2210
2209
|
margin: 0,
|
|
2211
2210
|
padding: 0
|
|
2212
2211
|
},
|
|
2213
|
-
children: /* @__PURE__ */ K(
|
|
2212
|
+
children: /* @__PURE__ */ K($e, {})
|
|
2214
2213
|
})
|
|
2215
2214
|
})
|
|
2216
2215
|
});
|
|
2217
|
-
},
|
|
2216
|
+
}, er = ({ caseSet: e }) => {
|
|
2218
2217
|
let { t } = G(), n = be(), r = U(null), i = U(null), a = U(null), s = U(null), l = U(null), f = U(null), p = U(null), S = U(null), T = U(null), E = U(null), ee = U(null), [D, te] = W(!1), [O, k] = W(!1), [ne, A] = W(!1), j = z(c), re = o(j, d((e) => e.fetchData)), ie = o(j, (e) => e.completeCaseType), P = o(j, (e) => e.filters.filter((e) => !e.isInitialFilterValue()).length), se = o(j, (e) => e.isMaxResultsExceeded), F = o(j, (e) => e.isMaxResultsExceededDismissed), I = B(() => {
|
|
2219
2218
|
j.setState({ isMaxResultsExceededDismissed: !0 });
|
|
2220
2219
|
}, [j]);
|
|
@@ -2238,21 +2237,21 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2238
2237
|
};
|
|
2239
2238
|
}, [re]), V(() => {
|
|
2240
2239
|
let e = [
|
|
2241
|
-
|
|
2240
|
+
Ge.getInstance().registerShortcut({
|
|
2242
2241
|
callback: () => {
|
|
2243
2242
|
te((e) => !e);
|
|
2244
2243
|
},
|
|
2245
2244
|
key: "f",
|
|
2246
2245
|
modifier: null
|
|
2247
2246
|
}),
|
|
2248
|
-
|
|
2247
|
+
Ge.getInstance().registerShortcut({
|
|
2249
2248
|
callback: () => {
|
|
2250
2249
|
k((e) => !e);
|
|
2251
2250
|
},
|
|
2252
2251
|
key: "s",
|
|
2253
2252
|
modifier: null
|
|
2254
2253
|
}),
|
|
2255
|
-
|
|
2254
|
+
Ge.getInstance().registerShortcut({
|
|
2256
2255
|
callback: () => {
|
|
2257
2256
|
a.current.open();
|
|
2258
2257
|
},
|
|
@@ -2287,53 +2286,53 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2287
2286
|
r.current?.reset();
|
|
2288
2287
|
}, []), ge = H(() => !!se && !F, [F, se]), _e = M.getInstance().config.dashboard.DASHBOARD_INJECTED_COMPONENT;
|
|
2289
2288
|
return /* @__PURE__ */ q(Oe, { children: [
|
|
2290
|
-
/* @__PURE__ */ q(
|
|
2291
|
-
/* @__PURE__ */ K(
|
|
2289
|
+
/* @__PURE__ */ q(Ue, { children: [
|
|
2290
|
+
/* @__PURE__ */ K(We, {
|
|
2292
2291
|
badgeColor: "secondary",
|
|
2293
2292
|
badgeContent: P,
|
|
2294
2293
|
first: !0,
|
|
2295
|
-
icon: /* @__PURE__ */ K(
|
|
2294
|
+
icon: /* @__PURE__ */ K(Le, {}),
|
|
2296
2295
|
onClick: ce,
|
|
2297
2296
|
testIdAttributes: { name: "filters" },
|
|
2298
2297
|
title: t`Open filters`
|
|
2299
2298
|
}),
|
|
2300
|
-
/* @__PURE__ */ K(
|
|
2299
|
+
/* @__PURE__ */ K(We, {
|
|
2301
2300
|
badgeColor: "secondary",
|
|
2302
|
-
icon: /* @__PURE__ */ K(
|
|
2301
|
+
icon: /* @__PURE__ */ K(mt, {}),
|
|
2303
2302
|
onClick: de,
|
|
2304
2303
|
testIdAttributes: { name: "dashboard" },
|
|
2305
2304
|
title: t`Change dashboard layout`
|
|
2306
2305
|
}),
|
|
2307
|
-
/* @__PURE__ */ K(
|
|
2308
|
-
icon: /* @__PURE__ */ K(
|
|
2306
|
+
/* @__PURE__ */ K(We, {
|
|
2307
|
+
icon: /* @__PURE__ */ K(Be, {}),
|
|
2309
2308
|
onClick: pe,
|
|
2310
2309
|
testIdAttributes: { name: "case" },
|
|
2311
2310
|
title: t`Show case type information`
|
|
2312
2311
|
}),
|
|
2313
|
-
e && /* @__PURE__ */ K(
|
|
2312
|
+
e && /* @__PURE__ */ K(We, {
|
|
2314
2313
|
icon: /* @__PURE__ */ K(m, {}),
|
|
2315
2314
|
onClick: me,
|
|
2316
2315
|
testIdAttributes: { name: "event" },
|
|
2317
2316
|
title: t`Show event information`
|
|
2318
2317
|
}),
|
|
2319
|
-
/* @__PURE__ */ K(
|
|
2320
|
-
icon: /* @__PURE__ */ K(
|
|
2318
|
+
/* @__PURE__ */ K(We, {
|
|
2319
|
+
icon: /* @__PURE__ */ K(Tt, {}),
|
|
2321
2320
|
onClick: fe,
|
|
2322
2321
|
testIdAttributes: { name: "download" },
|
|
2323
2322
|
title: t`Download`
|
|
2324
2323
|
}),
|
|
2325
|
-
/* @__PURE__ */ K(
|
|
2324
|
+
/* @__PURE__ */ K(Ie, {
|
|
2326
2325
|
onClose: L,
|
|
2327
2326
|
open: D
|
|
2328
2327
|
}),
|
|
2329
|
-
/* @__PURE__ */ K(
|
|
2328
|
+
/* @__PURE__ */ K(gt, {
|
|
2330
2329
|
onClose: le,
|
|
2331
2330
|
onReset: he,
|
|
2332
2331
|
open: O
|
|
2333
2332
|
}),
|
|
2334
2333
|
/* @__PURE__ */ K(g, { ref: a }),
|
|
2335
2334
|
e && /* @__PURE__ */ K(h, { ref: i }),
|
|
2336
|
-
/* @__PURE__ */ K(
|
|
2335
|
+
/* @__PURE__ */ K(Dt, {
|
|
2337
2336
|
onClose: ue,
|
|
2338
2337
|
open: ne
|
|
2339
2338
|
})
|
|
@@ -2364,17 +2363,17 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2364
2363
|
display: "flex",
|
|
2365
2364
|
justifyContent: "space-between"
|
|
2366
2365
|
},
|
|
2367
|
-
children: [/* @__PURE__ */ K(C, {}), /* @__PURE__ */ K(
|
|
2366
|
+
children: [/* @__PURE__ */ K(C, {}), /* @__PURE__ */ K($n, {})]
|
|
2368
2367
|
}),
|
|
2369
|
-
/* @__PURE__ */ K(N, { children: /* @__PURE__ */ K(
|
|
2368
|
+
/* @__PURE__ */ K(N, { children: /* @__PURE__ */ K(wt, {
|
|
2370
2369
|
disabled: D || O,
|
|
2371
2370
|
ref: r
|
|
2372
2371
|
}) })
|
|
2373
2372
|
]
|
|
2374
2373
|
}),
|
|
2375
|
-
/* @__PURE__ */ K(
|
|
2374
|
+
/* @__PURE__ */ K(Ve, { ref: s }),
|
|
2376
2375
|
/* @__PURE__ */ K(w, { ref: p }),
|
|
2377
|
-
/* @__PURE__ */ K(
|
|
2376
|
+
/* @__PURE__ */ K(lt, { ref: ee }),
|
|
2378
2377
|
/* @__PURE__ */ K(x, { ref: l }),
|
|
2379
2378
|
/* @__PURE__ */ K(v, { ref: f }),
|
|
2380
2379
|
/* @__PURE__ */ K(y, { ref: S }),
|
|
@@ -2382,11 +2381,11 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2382
2381
|
/* @__PURE__ */ K(_, { ref: E }),
|
|
2383
2382
|
_e && /* @__PURE__ */ K(_e, {})
|
|
2384
2383
|
] });
|
|
2385
|
-
},
|
|
2386
|
-
let n = z(T), r = H(() => new
|
|
2384
|
+
}, tr = ({ caseSet: e, children: t }) => {
|
|
2385
|
+
let n = z(T), r = H(() => new at({
|
|
2387
2386
|
caseIds: [],
|
|
2388
2387
|
origin: null
|
|
2389
|
-
}), []), i = H(() => new
|
|
2388
|
+
}), []), i = H(() => new at(), []), a = H(() => new at(), []), o = B(() => {
|
|
2390
2389
|
r.next({
|
|
2391
2390
|
caseIds: [],
|
|
2392
2391
|
origin: null
|
|
@@ -2416,7 +2415,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2416
2415
|
value: c,
|
|
2417
2416
|
children: t
|
|
2418
2417
|
});
|
|
2419
|
-
},
|
|
2418
|
+
}, nr = f(({ caseSet: e }) => {
|
|
2420
2419
|
let t = z(c), n = o(t, (e) => e.dataError), [r, i] = W(null), a = B(() => {
|
|
2421
2420
|
i(null);
|
|
2422
2421
|
}, []);
|
|
@@ -2427,9 +2426,9 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2427
2426
|
return () => {
|
|
2428
2427
|
e.forEach((e) => e());
|
|
2429
2428
|
};
|
|
2430
|
-
}, []), /* @__PURE__ */ K(
|
|
2429
|
+
}, []), /* @__PURE__ */ K(tr, {
|
|
2431
2430
|
caseSet: e,
|
|
2432
|
-
children: /* @__PURE__ */ K(
|
|
2431
|
+
children: /* @__PURE__ */ K(N, {
|
|
2433
2432
|
sx: {
|
|
2434
2433
|
height: "100%",
|
|
2435
2434
|
position: "relative",
|
|
@@ -2441,15 +2440,15 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2441
2440
|
children: r ? /* @__PURE__ */ K(p, {
|
|
2442
2441
|
cases: r,
|
|
2443
2442
|
onClose: a
|
|
2444
|
-
}) : /* @__PURE__ */ K(
|
|
2443
|
+
}) : /* @__PURE__ */ K(er, { caseSet: e })
|
|
2445
2444
|
})
|
|
2446
2445
|
})
|
|
2447
2446
|
});
|
|
2448
|
-
}),
|
|
2447
|
+
}), rr = ye(F)(({ theme: e }) => ({
|
|
2449
2448
|
marginBottom: e.spacing(.5),
|
|
2450
2449
|
marginTop: e.spacing(.5)
|
|
2451
|
-
})),
|
|
2452
|
-
let d = be(), { t: f } = G(), p = z(T), m = z(c), h = z(
|
|
2450
|
+
})), ir = ({ children: e, expandDisabled: t, isLoading: n, primaryMenu: r, secondaryMenu: a, title: s, warningMessage: l, widgetName: u }) => {
|
|
2451
|
+
let d = be(), { t: f } = G(), p = z(T), m = z(c), h = z(xt), g = o(m, (e) => e.expandZone), _ = o(m, (e) => e.expandedZone), v = o(p, (e) => i.getEnabledWidgets(e.dashboardArrangementConfig).length), y = o(p, (e) => e.setDashboardArrangementConfig), b = _ === h, x = B(() => {
|
|
2453
2452
|
g(_ === h ? null : h);
|
|
2454
2453
|
}, [
|
|
2455
2454
|
g,
|
|
@@ -2489,7 +2488,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2489
2488
|
})
|
|
2490
2489
|
});
|
|
2491
2490
|
if (Te(s)) return s;
|
|
2492
|
-
if (
|
|
2491
|
+
if (ct.isMenuItemData(s)) return /* @__PURE__ */ K(Je, {
|
|
2493
2492
|
ButtonProps: {
|
|
2494
2493
|
color: "inherit",
|
|
2495
2494
|
size: "small",
|
|
@@ -2539,7 +2538,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2539
2538
|
justifySelf: "right",
|
|
2540
2539
|
marginTop: "1px"
|
|
2541
2540
|
},
|
|
2542
|
-
children: [r && /* @__PURE__ */ K(j, { menu: r }), r && /* @__PURE__ */ K(
|
|
2541
|
+
children: [r && /* @__PURE__ */ K(j, { menu: r }), r && /* @__PURE__ */ K(rr, {
|
|
2543
2542
|
"aria-hidden": "true",
|
|
2544
2543
|
flexItem: !0,
|
|
2545
2544
|
orientation: "vertical",
|
|
@@ -2554,7 +2553,7 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2554
2553
|
},
|
|
2555
2554
|
children: [
|
|
2556
2555
|
a && /* @__PURE__ */ K(j, { menu: a }),
|
|
2557
|
-
a && /* @__PURE__ */ K(
|
|
2556
|
+
a && /* @__PURE__ */ K(rr, {
|
|
2558
2557
|
"aria-hidden": "true",
|
|
2559
2558
|
flexItem: !0,
|
|
2560
2559
|
orientation: "vertical",
|
|
@@ -2564,13 +2563,13 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2564
2563
|
disabled: t,
|
|
2565
2564
|
label: b ? f`Collapse` : f`Expand`,
|
|
2566
2565
|
onClick: x,
|
|
2567
|
-
children: [b && /* @__PURE__ */ K(
|
|
2566
|
+
children: [b && /* @__PURE__ */ K(ot, {}), !b && /* @__PURE__ */ K(st, {})]
|
|
2568
2567
|
}),
|
|
2569
2568
|
!b && /* @__PURE__ */ K(A, {
|
|
2570
2569
|
label: f`Remove widget`,
|
|
2571
2570
|
onClick: S,
|
|
2572
2571
|
sx: { marginRight: d.spacing(-1) },
|
|
2573
|
-
children: /* @__PURE__ */ K(
|
|
2572
|
+
children: /* @__PURE__ */ K(rt, {})
|
|
2574
2573
|
})
|
|
2575
2574
|
]
|
|
2576
2575
|
})]
|
|
@@ -2585,12 +2584,12 @@ var Zn = $, Qn = ({ anchorEl: e, onChange: t, onClose: n, onEscapeKeyDown: r, op
|
|
|
2585
2584
|
children: /* @__PURE__ */ K(re, { warningMessage: l })
|
|
2586
2585
|
}), /* @__PURE__ */ q(N, {
|
|
2587
2586
|
sx: { height: l ? `calc(100% - ${d.spacing(3)})` : "100%" },
|
|
2588
|
-
children: [n && /* @__PURE__ */ K(
|
|
2587
|
+
children: [n && /* @__PURE__ */ K(Ke, { label: f`Loading` }), !n && e]
|
|
2589
2588
|
})]
|
|
2590
2589
|
})]
|
|
2591
2590
|
});
|
|
2592
2591
|
};
|
|
2593
2592
|
//#endregion
|
|
2594
|
-
export {
|
|
2593
|
+
export { nr as n, ir as t };
|
|
2595
2594
|
|
|
2596
2595
|
//# sourceMappingURL=Dashboard.js.map
|