@cccsaurora/clue-ui 1.2.4-patch.270 → 1.2.4-patch.273
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/{ActionForm-Ch0DGVGr.js → ActionForm-CwsfB99X.js} +239 -243
- package/{AnnotationDetails-C8E_Xvaf.js → AnnotationDetails-Bw2JdtTL.js} +1 -1
- package/{AnnotationPreview-CLCms-Fm.js → AnnotationPreview-BO7rVnOP.js} +1 -1
- package/components/AnnotationDetailPopover.js +1 -1
- package/components/AnnotationDetails.js +2 -2
- package/components/AnnotationPreview.js +1 -1
- package/components/EnrichedCard.js +1 -1
- package/components/EnrichedChip.js +2 -2
- package/components/EnrichedTypography.js +2 -2
- package/components/RetryFailedEnrichments.js +1 -1
- package/components/SourcePicker.js +1 -1
- package/components/actions/ActionForm.js +1 -1
- package/components/actions/ExecutePopover.js +1 -1
- package/components/actions/ResultModal.js +1 -1
- package/components/enrichment/EnrichPopover.js +1 -1
- package/components/fetchers/Fetcher.js +2 -2
- package/components/group/GroupControl.js +1 -1
- package/components/stats/QueryStatus.js +1 -1
- package/en/translation.json +1 -1
- package/fr/translation.json +1 -1
- package/hooks/ClueActionContext.js +1 -1
- package/hooks/ClueGroupContext.js +1 -1
- package/hooks/CluePopupContext.js +2 -2
- package/hooks/ClueProvider.js +2 -2
- package/hooks/selectors.js +1 -1
- package/hooks/useActionResult.js +4 -2
- package/hooks/useAnnotations.js +1 -1
- package/hooks/useClueActions.js +1 -1
- package/hooks/useErrors.js +1 -1
- package/hooks/useFetcherResult.js +1 -1
- package/icons/Action.js +2 -2
- package/icons/Assessment.js +1 -1
- package/icons/Context.js +1 -1
- package/icons/Opinion.js +1 -1
- package/main.js +3 -3
- package/package.json +1 -1
|
@@ -4,15 +4,15 @@ import { JsonForms as Pn } from "@jsonforms/react";
|
|
|
4
4
|
import { Modal as bs, Paper as Es, Stack as se, Typography as Pe, Divider as Dt, LinearProgress as kn, Button as st, IconButton as Nn, Box as xe, CircularProgress as Cn, Collapse as jn } from "@mui/material";
|
|
5
5
|
import Ss from "./components/display/icons/Iconified.js";
|
|
6
6
|
import { J as Rn } from "./index-BK-zfYhR.js";
|
|
7
|
-
import { ClueComponentContext as
|
|
7
|
+
import { ClueComponentContext as ut } from "./hooks/ClueComponentContext.js";
|
|
8
8
|
import { g as On } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
9
9
|
import { x as Tn, y as Ps, z as In } from "./index-BHAe_V9n.js";
|
|
10
10
|
import { a as Ht } from "./useClueTypeConfig-Ct9Ygter.js";
|
|
11
11
|
import { d as ks } from "./_baseGet-DSZygzyq.js";
|
|
12
12
|
import { b as Mn } from "./_baseSlice-M5RKzt1A.js";
|
|
13
13
|
import { i as Vn } from "./utils-DmwSUrum.js";
|
|
14
|
-
import { useState as de, useRef as Fn, useMemo as ke, useEffect as Wt, memo as Ns, useCallback as
|
|
15
|
-
import { u as
|
|
14
|
+
import { useState as de, useRef as Fn, useMemo as ke, useEffect as Wt, memo as Ns, useCallback as Re } from "react";
|
|
15
|
+
import { u as Ce, c as An, a as Kn } from "./index-Dj5C04IX.js";
|
|
16
16
|
import lt from "./components/ErrorBoundary.js";
|
|
17
17
|
import { adaptSchema as qn } from "./components/actions/form/schemaAdapter.js";
|
|
18
18
|
import { I as zn } from "./iconify-BBckr5AQ.js";
|
|
@@ -20,9 +20,9 @@ import { C as Un } from "./ClueEnrichContext-KqRuuWNS.js";
|
|
|
20
20
|
import { ClueFetcherContext as Ln } from "./hooks/ClueFetcherContext.js";
|
|
21
21
|
import Gn from "./components/ClassificationChip.js";
|
|
22
22
|
import Jn from "./components/actions/formats/index.js";
|
|
23
|
-
import { SNACKBAR_EVENT_ID as
|
|
23
|
+
import { SNACKBAR_EVENT_ID as pt } from "./data/event.js";
|
|
24
24
|
import { dayjs as Hn } from "./utils/time.js";
|
|
25
|
-
import { safeDispatchEvent as
|
|
25
|
+
import { safeDispatchEvent as yt } from "./utils/window.js";
|
|
26
26
|
import Bn from "./hooks/useClue.js";
|
|
27
27
|
import { i as Qn } from "./isNil-CjWwlQS3.js";
|
|
28
28
|
function Xn(e, t, r) {
|
|
@@ -54,7 +54,7 @@ var go = $o("toUpperCase");
|
|
|
54
54
|
function wo(e) {
|
|
55
55
|
return go(ks(e).toLowerCase());
|
|
56
56
|
}
|
|
57
|
-
var tr = { exports: {} }, Vs = {}, fe = {}, Be = {},
|
|
57
|
+
var tr = { exports: {} }, Vs = {}, fe = {}, Be = {}, ft = {}, K = {}, dt = {};
|
|
58
58
|
(function(e) {
|
|
59
59
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
60
60
|
class t {
|
|
@@ -451,7 +451,7 @@ var rr = {};
|
|
|
451
451
|
let R = w.length;
|
|
452
452
|
for (; R--; ) {
|
|
453
453
|
const O = w[R];
|
|
454
|
-
O.optimizeNames(o, c) || (
|
|
454
|
+
O.optimizeNames(o, c) || (ee(o, O.names), w.splice(R, 1));
|
|
455
455
|
}
|
|
456
456
|
return w.length > 0 ? this : void 0;
|
|
457
457
|
}
|
|
@@ -830,7 +830,7 @@ var rr = {};
|
|
|
830
830
|
return O instanceof t._Code && O._items.some((q) => q instanceof t.Name && o[q.str] === 1 && c[q.str] !== void 0);
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function ee(_, o) {
|
|
834
834
|
for (const c in o)
|
|
835
835
|
_[c] = (_[c] || 0) - (o[c] || 0);
|
|
836
836
|
}
|
|
@@ -838,14 +838,14 @@ var rr = {};
|
|
|
838
838
|
return typeof _ == "boolean" || typeof _ == "number" || _ === null ? !_ : (0, t._)`!${S(_)}`;
|
|
839
839
|
}
|
|
840
840
|
e.not = Fe;
|
|
841
|
-
const
|
|
841
|
+
const Ae = p(e.operators.AND);
|
|
842
842
|
function _e(..._) {
|
|
843
|
-
return _.reduce(
|
|
843
|
+
return _.reduce(Ae);
|
|
844
844
|
}
|
|
845
845
|
e.and = _e;
|
|
846
|
-
const
|
|
846
|
+
const Ke = p(e.operators.OR);
|
|
847
847
|
function k(..._) {
|
|
848
|
-
return _.reduce(
|
|
848
|
+
return _.reduce(Ke);
|
|
849
849
|
}
|
|
850
850
|
e.or = k;
|
|
851
851
|
function p(_) {
|
|
@@ -854,11 +854,11 @@ var rr = {};
|
|
|
854
854
|
function S(_) {
|
|
855
855
|
return _ instanceof t.Name ? _ : (0, t._)`(${_})`;
|
|
856
856
|
}
|
|
857
|
-
})(
|
|
857
|
+
})(K);
|
|
858
858
|
var N = {};
|
|
859
859
|
Object.defineProperty(N, "__esModule", { value: !0 });
|
|
860
860
|
N.checkStrictMode = N.getErrorPath = N.Type = N.useFunc = N.setEvaluated = N.evaluatedPropsToName = N.mergeEvaluated = N.eachItem = N.unescapeJsonPointer = N.escapeJsonPointer = N.escapeFragment = N.unescapeFragment = N.schemaRefOrVal = N.schemaHasRulesButRef = N.schemaHasRules = N.checkUnknownRules = N.alwaysValidSchema = N.toHash = void 0;
|
|
861
|
-
const L =
|
|
861
|
+
const L = K, bo = dt;
|
|
862
862
|
function Eo(e) {
|
|
863
863
|
const t = {};
|
|
864
864
|
for (const r of e)
|
|
@@ -867,7 +867,7 @@ function Eo(e) {
|
|
|
867
867
|
}
|
|
868
868
|
N.toHash = Eo;
|
|
869
869
|
function So(e, t) {
|
|
870
|
-
return typeof t == "boolean" ? t : Object.keys(t).length === 0 ? !0 : (Fs(e, t), !
|
|
870
|
+
return typeof t == "boolean" ? t : Object.keys(t).length === 0 ? !0 : (Fs(e, t), !As(t, e.self.RULES.all));
|
|
871
871
|
}
|
|
872
872
|
N.alwaysValidSchema = So;
|
|
873
873
|
function Fs(e, t = e.schema) {
|
|
@@ -879,7 +879,7 @@ function Fs(e, t = e.schema) {
|
|
|
879
879
|
n[a] || zs(e, `unknown keyword: "${a}"`);
|
|
880
880
|
}
|
|
881
881
|
N.checkUnknownRules = Fs;
|
|
882
|
-
function
|
|
882
|
+
function As(e, t) {
|
|
883
883
|
if (typeof e == "boolean")
|
|
884
884
|
return !e;
|
|
885
885
|
for (const r in e)
|
|
@@ -887,7 +887,7 @@ function Ks(e, t) {
|
|
|
887
887
|
return !0;
|
|
888
888
|
return !1;
|
|
889
889
|
}
|
|
890
|
-
N.schemaHasRules =
|
|
890
|
+
N.schemaHasRules = As;
|
|
891
891
|
function Po(e, t) {
|
|
892
892
|
if (typeof e == "boolean")
|
|
893
893
|
return !e;
|
|
@@ -908,7 +908,7 @@ function ko({ topSchemaRef: e, schemaPath: t }, r, s, n) {
|
|
|
908
908
|
}
|
|
909
909
|
N.schemaRefOrVal = ko;
|
|
910
910
|
function No(e) {
|
|
911
|
-
return
|
|
911
|
+
return Ks(decodeURIComponent(e));
|
|
912
912
|
}
|
|
913
913
|
N.unescapeFragment = No;
|
|
914
914
|
function Co(e) {
|
|
@@ -919,10 +919,10 @@ function lr(e) {
|
|
|
919
919
|
return typeof e == "number" ? `${e}` : e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
920
920
|
}
|
|
921
921
|
N.escapeJsonPointer = lr;
|
|
922
|
-
function
|
|
922
|
+
function Ks(e) {
|
|
923
923
|
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
924
924
|
}
|
|
925
|
-
N.unescapeJsonPointer =
|
|
925
|
+
N.unescapeJsonPointer = Ks;
|
|
926
926
|
function jo(e, t) {
|
|
927
927
|
if (Array.isArray(e))
|
|
928
928
|
for (const r of e)
|
|
@@ -996,7 +996,7 @@ function zs(e, t, r = e.opts.strictSchema) {
|
|
|
996
996
|
N.checkStrictMode = zs;
|
|
997
997
|
var ye = {};
|
|
998
998
|
Object.defineProperty(ye, "__esModule", { value: !0 });
|
|
999
|
-
const D =
|
|
999
|
+
const D = K, To = {
|
|
1000
1000
|
// validation function arguments
|
|
1001
1001
|
data: new D.Name("data"),
|
|
1002
1002
|
// data passed to validation function
|
|
@@ -1028,7 +1028,7 @@ const D = A, To = {
|
|
|
1028
1028
|
ye.default = To;
|
|
1029
1029
|
(function(e) {
|
|
1030
1030
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
1031
|
-
const t =
|
|
1031
|
+
const t = K, r = N, s = ye;
|
|
1032
1032
|
e.keywordError = {
|
|
1033
1033
|
message: ({ keyword: h }) => (0, t.str)`must pass "${h}" keyword validation`
|
|
1034
1034
|
}, e.keyword$DataError = {
|
|
@@ -1098,22 +1098,22 @@ ye.default = To;
|
|
|
1098
1098
|
const { keyword: j, data: C, schemaValue: U, it: J } = h, { opts: ne, propertyName: ae, topSchemaRef: me, schemaPath: be } = J;
|
|
1099
1099
|
P.push([m.keyword, j], [m.params, typeof f == "function" ? f(h) : f || (0, t._)`{}`]), ne.messages && P.push([m.message, typeof $ == "function" ? $(h) : $]), ne.verbose && P.push([m.schema, U], [m.parentSchema, (0, t._)`${me}${be}`], [s.default.data, C]), ae && P.push([m.propertyName, ae]);
|
|
1100
1100
|
}
|
|
1101
|
-
})(
|
|
1101
|
+
})(ft);
|
|
1102
1102
|
Object.defineProperty(Be, "__esModule", { value: !0 });
|
|
1103
1103
|
Be.boolOrEmptySchema = Be.topBoolOrEmptySchema = void 0;
|
|
1104
|
-
const Io =
|
|
1104
|
+
const Io = ft, Mo = K, Vo = ye, Fo = {
|
|
1105
1105
|
message: "boolean schema is false"
|
|
1106
1106
|
};
|
|
1107
|
-
function
|
|
1107
|
+
function Ao(e) {
|
|
1108
1108
|
const { gen: t, schema: r, validateName: s } = e;
|
|
1109
1109
|
r === !1 ? Us(e, !1) : typeof r == "object" && r.$async === !0 ? t.return(Vo.default.data) : (t.assign((0, Mo._)`${s}.errors`, null), t.return(!0));
|
|
1110
1110
|
}
|
|
1111
|
-
Be.topBoolOrEmptySchema =
|
|
1112
|
-
function
|
|
1111
|
+
Be.topBoolOrEmptySchema = Ao;
|
|
1112
|
+
function Ko(e, t) {
|
|
1113
1113
|
const { gen: r, schema: s } = e;
|
|
1114
1114
|
s === !1 ? (r.var(t, !1), Us(e)) : r.var(t, !0);
|
|
1115
1115
|
}
|
|
1116
|
-
Be.boolOrEmptySchema =
|
|
1116
|
+
Be.boolOrEmptySchema = Ko;
|
|
1117
1117
|
function Us(e, t) {
|
|
1118
1118
|
const { gen: r, data: s } = e, n = {
|
|
1119
1119
|
gen: r,
|
|
@@ -1127,14 +1127,14 @@ function Us(e, t) {
|
|
|
1127
1127
|
};
|
|
1128
1128
|
(0, Io.reportError)(n, Fo, void 0, t);
|
|
1129
1129
|
}
|
|
1130
|
-
var X = {},
|
|
1131
|
-
Object.defineProperty(
|
|
1132
|
-
|
|
1130
|
+
var X = {}, Me = {};
|
|
1131
|
+
Object.defineProperty(Me, "__esModule", { value: !0 });
|
|
1132
|
+
Me.getRules = Me.isJSONType = void 0;
|
|
1133
1133
|
const qo = ["string", "number", "integer", "boolean", "null", "object", "array"], zo = new Set(qo);
|
|
1134
1134
|
function Uo(e) {
|
|
1135
1135
|
return typeof e == "string" && zo.has(e);
|
|
1136
1136
|
}
|
|
1137
|
-
|
|
1137
|
+
Me.isJSONType = Uo;
|
|
1138
1138
|
function Lo() {
|
|
1139
1139
|
const e = {
|
|
1140
1140
|
number: { type: "number", rules: [] },
|
|
@@ -1150,7 +1150,7 @@ function Lo() {
|
|
|
1150
1150
|
keywords: {}
|
|
1151
1151
|
};
|
|
1152
1152
|
}
|
|
1153
|
-
|
|
1153
|
+
Me.getRules = Lo;
|
|
1154
1154
|
var ge = {};
|
|
1155
1155
|
Object.defineProperty(ge, "__esModule", { value: !0 });
|
|
1156
1156
|
ge.shouldUseRule = ge.shouldUseGroup = ge.schemaHasRulesForType = void 0;
|
|
@@ -1170,7 +1170,7 @@ function Gs(e, t) {
|
|
|
1170
1170
|
ge.shouldUseRule = Gs;
|
|
1171
1171
|
Object.defineProperty(X, "__esModule", { value: !0 });
|
|
1172
1172
|
X.reportTypeError = X.checkDataTypes = X.checkDataType = X.coerceAndCheckDataType = X.getJSONTypes = X.getSchemaTypes = X.DataType = void 0;
|
|
1173
|
-
const Jo =
|
|
1173
|
+
const Jo = Me, Ho = ge, Bo = ft, F = K, Js = N;
|
|
1174
1174
|
var Je;
|
|
1175
1175
|
(function(e) {
|
|
1176
1176
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
@@ -1315,7 +1315,7 @@ function xo(e) {
|
|
|
1315
1315
|
var jt = {};
|
|
1316
1316
|
Object.defineProperty(jt, "__esModule", { value: !0 });
|
|
1317
1317
|
jt.assignDefaults = void 0;
|
|
1318
|
-
const ze =
|
|
1318
|
+
const ze = K, ea = N;
|
|
1319
1319
|
function ta(e, t) {
|
|
1320
1320
|
const { properties: r, items: s } = e.schema;
|
|
1321
1321
|
if (t === "object" && r)
|
|
@@ -1336,25 +1336,25 @@ function rs(e, t, r) {
|
|
|
1336
1336
|
let u = (0, ze._)`${d} === undefined`;
|
|
1337
1337
|
i.useDefaults === "empty" && (u = (0, ze._)`${u} || ${d} === null || ${d} === ""`), s.if(u, (0, ze._)`${d} = ${(0, ze.stringify)(r)}`);
|
|
1338
1338
|
}
|
|
1339
|
-
var pe = {},
|
|
1340
|
-
Object.defineProperty(
|
|
1341
|
-
|
|
1342
|
-
const G =
|
|
1339
|
+
var pe = {}, A = {};
|
|
1340
|
+
Object.defineProperty(A, "__esModule", { value: !0 });
|
|
1341
|
+
A.validateUnion = A.validateArray = A.usePattern = A.callValidateCode = A.schemaProperties = A.allSchemaProperties = A.noPropertyInData = A.propertyInData = A.isOwnProperty = A.hasPropFunc = A.reportMissingProp = A.checkMissingProp = A.checkReportMissingProp = void 0;
|
|
1342
|
+
const G = K, mr = N, Ee = ye, ra = N;
|
|
1343
1343
|
function sa(e, t) {
|
|
1344
1344
|
const { gen: r, data: s, it: n } = e;
|
|
1345
1345
|
r.if(pr(r, s, t, n.opts.ownProperties), () => {
|
|
1346
1346
|
e.setParams({ missingProperty: (0, G._)`${t}` }, !0), e.error();
|
|
1347
1347
|
});
|
|
1348
1348
|
}
|
|
1349
|
-
|
|
1349
|
+
A.checkReportMissingProp = sa;
|
|
1350
1350
|
function na({ gen: e, data: t, it: { opts: r } }, s, n) {
|
|
1351
1351
|
return (0, G.or)(...s.map((a) => (0, G.and)(pr(e, t, a, r.ownProperties), (0, G._)`${n} = ${a}`)));
|
|
1352
1352
|
}
|
|
1353
|
-
|
|
1353
|
+
A.checkMissingProp = na;
|
|
1354
1354
|
function oa(e, t) {
|
|
1355
1355
|
e.setParams({ missingProperty: t }, !0), e.error();
|
|
1356
1356
|
}
|
|
1357
|
-
|
|
1357
|
+
A.reportMissingProp = oa;
|
|
1358
1358
|
function Qs(e) {
|
|
1359
1359
|
return e.scopeValue("func", {
|
|
1360
1360
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -1362,29 +1362,29 @@ function Qs(e) {
|
|
|
1362
1362
|
code: (0, G._)`Object.prototype.hasOwnProperty`
|
|
1363
1363
|
});
|
|
1364
1364
|
}
|
|
1365
|
-
|
|
1365
|
+
A.hasPropFunc = Qs;
|
|
1366
1366
|
function hr(e, t, r) {
|
|
1367
1367
|
return (0, G._)`${Qs(e)}.call(${t}, ${r})`;
|
|
1368
1368
|
}
|
|
1369
|
-
|
|
1369
|
+
A.isOwnProperty = hr;
|
|
1370
1370
|
function aa(e, t, r, s) {
|
|
1371
1371
|
const n = (0, G._)`${t}${(0, G.getProperty)(r)} !== undefined`;
|
|
1372
1372
|
return s ? (0, G._)`${n} && ${hr(e, t, r)}` : n;
|
|
1373
1373
|
}
|
|
1374
|
-
|
|
1374
|
+
A.propertyInData = aa;
|
|
1375
1375
|
function pr(e, t, r, s) {
|
|
1376
1376
|
const n = (0, G._)`${t}${(0, G.getProperty)(r)} === undefined`;
|
|
1377
1377
|
return s ? (0, G.or)(n, (0, G.not)(hr(e, t, r))) : n;
|
|
1378
1378
|
}
|
|
1379
|
-
|
|
1379
|
+
A.noPropertyInData = pr;
|
|
1380
1380
|
function Xs(e) {
|
|
1381
1381
|
return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
|
|
1382
1382
|
}
|
|
1383
|
-
|
|
1383
|
+
A.allSchemaProperties = Xs;
|
|
1384
1384
|
function ia(e, t) {
|
|
1385
1385
|
return Xs(t).filter((r) => !(0, mr.alwaysValidSchema)(e, t[r]));
|
|
1386
1386
|
}
|
|
1387
|
-
|
|
1387
|
+
A.schemaProperties = ia;
|
|
1388
1388
|
function ca({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: s, schemaPath: n, errorPath: a }, it: i }, d, u, l) {
|
|
1389
1389
|
const m = l ? (0, G._)`${e}, ${t}, ${s}${n}` : t, y = [
|
|
1390
1390
|
[Ee.default.instancePath, (0, G.strConcat)(Ee.default.instancePath, a)],
|
|
@@ -1396,7 +1396,7 @@ function ca({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: s, schemaPath:
|
|
|
1396
1396
|
const b = (0, G._)`${m}, ${r.object(...y)}`;
|
|
1397
1397
|
return u !== G.nil ? (0, G._)`${d}.call(${u}, ${b})` : (0, G._)`${d}(${b})`;
|
|
1398
1398
|
}
|
|
1399
|
-
|
|
1399
|
+
A.callValidateCode = ca;
|
|
1400
1400
|
const la = (0, G._)`new RegExp`;
|
|
1401
1401
|
function da({ gen: e, it: { opts: t } }, r) {
|
|
1402
1402
|
const s = t.unicodeRegExp ? "u" : "", { regExp: n } = t.code, a = n(r, s);
|
|
@@ -1406,7 +1406,7 @@ function da({ gen: e, it: { opts: t } }, r) {
|
|
|
1406
1406
|
code: (0, G._)`${n.code === "new RegExp" ? la : (0, ra.useFunc)(e, n)}(${r}, ${s})`
|
|
1407
1407
|
});
|
|
1408
1408
|
}
|
|
1409
|
-
|
|
1409
|
+
A.usePattern = da;
|
|
1410
1410
|
function ua(e) {
|
|
1411
1411
|
const { gen: t, data: r, keyword: s, it: n } = e, a = t.name("valid");
|
|
1412
1412
|
if (n.allErrors) {
|
|
@@ -1425,7 +1425,7 @@ function ua(e) {
|
|
|
1425
1425
|
});
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
-
|
|
1428
|
+
A.validateArray = ua;
|
|
1429
1429
|
function fa(e) {
|
|
1430
1430
|
const { gen: t, schema: r, keyword: s, it: n } = e;
|
|
1431
1431
|
if (!Array.isArray(r))
|
|
@@ -1442,17 +1442,17 @@ function fa(e) {
|
|
|
1442
1442
|
t.assign(i, (0, G._)`${i} || ${d}`), e.mergeValidEvaluated(m, d) || t.if((0, G.not)(i));
|
|
1443
1443
|
})), e.result(i, () => e.reset(), () => e.error(!0));
|
|
1444
1444
|
}
|
|
1445
|
-
|
|
1445
|
+
A.validateUnion = fa;
|
|
1446
1446
|
Object.defineProperty(pe, "__esModule", { value: !0 });
|
|
1447
1447
|
pe.validateKeywordUsage = pe.validSchemaType = pe.funcKeywordCode = pe.macroKeywordCode = void 0;
|
|
1448
|
-
const
|
|
1448
|
+
const x = K, Oe = ye, ma = A, ha = ft;
|
|
1449
1449
|
function pa(e, t) {
|
|
1450
1450
|
const { gen: r, keyword: s, schema: n, parentSchema: a, it: i } = e, d = t.macro.call(i.self, n, a, i), u = Ys(r, s, d);
|
|
1451
1451
|
i.opts.validateSchema !== !1 && i.self.validateSchema(d, !0);
|
|
1452
1452
|
const l = r.name("valid");
|
|
1453
1453
|
e.subschema({
|
|
1454
1454
|
schema: d,
|
|
1455
|
-
schemaPath:
|
|
1455
|
+
schemaPath: x.nil,
|
|
1456
1456
|
errSchemaPath: `${i.errSchemaPath}/${s}`,
|
|
1457
1457
|
topSchemaRef: u,
|
|
1458
1458
|
compositeRule: !0
|
|
@@ -1475,30 +1475,30 @@ function ya(e, t) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
function E() {
|
|
1477
1477
|
const f = s.let("ruleErrs", null);
|
|
1478
|
-
return s.try(() => v((0,
|
|
1478
|
+
return s.try(() => v((0, x._)`await `), ($) => s.assign(y, !1).if((0, x._)`${$} instanceof ${u.ValidationError}`, () => s.assign(f, (0, x._)`${$}.errors`), () => s.throw($))), f;
|
|
1479
1479
|
}
|
|
1480
1480
|
function g() {
|
|
1481
|
-
const f = (0,
|
|
1482
|
-
return s.assign(f, null), v(
|
|
1481
|
+
const f = (0, x._)`${m}.errors`;
|
|
1482
|
+
return s.assign(f, null), v(x.nil), f;
|
|
1483
1483
|
}
|
|
1484
|
-
function v(f = t.async ? (0,
|
|
1485
|
-
const $ = u.opts.passContext ?
|
|
1486
|
-
s.assign(y, (0,
|
|
1484
|
+
function v(f = t.async ? (0, x._)`await ` : x.nil) {
|
|
1485
|
+
const $ = u.opts.passContext ? Oe.default.this : Oe.default.self, P = !("compile" in t && !d || t.schema === !1);
|
|
1486
|
+
s.assign(y, (0, x._)`${f}${(0, ma.callValidateCode)(e, m, $, P)}`, t.modifying);
|
|
1487
1487
|
}
|
|
1488
1488
|
function h(f) {
|
|
1489
1489
|
var $;
|
|
1490
|
-
s.if((0,
|
|
1490
|
+
s.if((0, x.not)(($ = t.valid) !== null && $ !== void 0 ? $ : y), f);
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
1493
|
pe.funcKeywordCode = ya;
|
|
1494
1494
|
function ss(e) {
|
|
1495
1495
|
const { gen: t, data: r, it: s } = e;
|
|
1496
|
-
t.if(s.parentData, () => t.assign(r, (0,
|
|
1496
|
+
t.if(s.parentData, () => t.assign(r, (0, x._)`${s.parentData}[${s.parentDataProperty}]`));
|
|
1497
1497
|
}
|
|
1498
1498
|
function _a(e, t) {
|
|
1499
1499
|
const { gen: r } = e;
|
|
1500
|
-
r.if((0,
|
|
1501
|
-
r.assign(
|
|
1500
|
+
r.if((0, x._)`Array.isArray(${t})`, () => {
|
|
1501
|
+
r.assign(Oe.default.vErrors, (0, x._)`${Oe.default.vErrors} === null ? ${t} : ${Oe.default.vErrors}.concat(${t})`).assign(Oe.default.errors, (0, x._)`${Oe.default.vErrors}.length`), (0, ha.extendErrors)(e);
|
|
1502
1502
|
}, () => e.error());
|
|
1503
1503
|
}
|
|
1504
1504
|
function va({ schemaEnv: e }, t) {
|
|
@@ -1508,7 +1508,7 @@ function va({ schemaEnv: e }, t) {
|
|
|
1508
1508
|
function Ys(e, t, r) {
|
|
1509
1509
|
if (r === void 0)
|
|
1510
1510
|
throw new Error(`keyword "${t}" failed to compile`);
|
|
1511
|
-
return e.scopeValue("keyword", typeof r == "function" ? { ref: r } : { ref: r, code: (0,
|
|
1511
|
+
return e.scopeValue("keyword", typeof r == "function" ? { ref: r } : { ref: r, code: (0, x.stringify)(r) });
|
|
1512
1512
|
}
|
|
1513
1513
|
function $a(e, t, r = !1) {
|
|
1514
1514
|
return !t.length || t.some((s) => s === "array" ? Array.isArray(e) : s === "object" ? e && typeof e == "object" && !Array.isArray(e) : typeof e == s || r && typeof e > "u");
|
|
@@ -1532,7 +1532,7 @@ pe.validateKeywordUsage = ga;
|
|
|
1532
1532
|
var Ne = {};
|
|
1533
1533
|
Object.defineProperty(Ne, "__esModule", { value: !0 });
|
|
1534
1534
|
Ne.extendSubschemaMode = Ne.extendSubschemaData = Ne.getSubschema = void 0;
|
|
1535
|
-
const he =
|
|
1535
|
+
const he = K, Zs = N;
|
|
1536
1536
|
function wa(e, { keyword: t, schemaProp: r, schema: s, schemaPath: n, errSchemaPath: a, topSchemaRef: i }) {
|
|
1537
1537
|
if (t !== void 0 && s !== void 0)
|
|
1538
1538
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
@@ -1692,7 +1692,7 @@ function Ia(e, t) {
|
|
|
1692
1692
|
Z.getSchemaRefs = Ia;
|
|
1693
1693
|
Object.defineProperty(fe, "__esModule", { value: !0 });
|
|
1694
1694
|
fe.getData = fe.KeywordCxt = fe.validateFunctionCode = void 0;
|
|
1695
|
-
const en = Be, ns = X, yr = ge,
|
|
1695
|
+
const en = Be, ns = X, yr = ge, Pt = X, Ma = jt, nt = pe, Bt = Ne, T = K, M = ye, Va = Z, we = N, et = ft;
|
|
1696
1696
|
function Fa(e) {
|
|
1697
1697
|
if (sn(e) && (nn(e), rn(e))) {
|
|
1698
1698
|
qa(e);
|
|
@@ -1703,13 +1703,13 @@ function Fa(e) {
|
|
|
1703
1703
|
fe.validateFunctionCode = Fa;
|
|
1704
1704
|
function tn({ gen: e, validateName: t, schema: r, schemaEnv: s, opts: n }, a) {
|
|
1705
1705
|
n.code.es5 ? e.func(t, (0, T._)`${M.default.data}, ${M.default.valCxt}`, s.$async, () => {
|
|
1706
|
-
e.code((0, T._)`"use strict"; ${os(r, n)}`),
|
|
1707
|
-
}) : e.func(t, (0, T._)`${M.default.data}, ${
|
|
1706
|
+
e.code((0, T._)`"use strict"; ${os(r, n)}`), Ka(e, n), e.code(a);
|
|
1707
|
+
}) : e.func(t, (0, T._)`${M.default.data}, ${Aa(n)}`, s.$async, () => e.code(os(r, n)).code(a));
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function Aa(e) {
|
|
1710
1710
|
return (0, T._)`{${M.default.instancePath}="", ${M.default.parentData}, ${M.default.parentDataProperty}, ${M.default.rootData}=${M.default.data}${e.dynamicRef ? (0, T._)`, ${M.default.dynamicAnchors}={}` : T.nil}}={}`;
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function Ka(e, t) {
|
|
1713
1713
|
e.if(M.default.valCxt, () => {
|
|
1714
1714
|
e.var(M.default.instancePath, (0, T._)`${M.default.valCxt}.${M.default.instancePath}`), e.var(M.default.parentData, (0, T._)`${M.default.valCxt}.${M.default.parentData}`), e.var(M.default.parentDataProperty, (0, T._)`${M.default.valCxt}.${M.default.parentDataProperty}`), e.var(M.default.rootData, (0, T._)`${M.default.valCxt}.${M.default.rootData}`), t.dynamicRef && e.var(M.default.dynamicAnchors, (0, T._)`${M.default.valCxt}.${M.default.dynamicAnchors}`);
|
|
1715
1715
|
}, () => {
|
|
@@ -1807,7 +1807,7 @@ function as(e, t, r, s) {
|
|
|
1807
1807
|
y(m.post);
|
|
1808
1808
|
});
|
|
1809
1809
|
function y(b) {
|
|
1810
|
-
(0, yr.shouldUseGroup)(a, b) && (b.type ? (n.if((0,
|
|
1810
|
+
(0, yr.shouldUseGroup)(a, b) && (b.type ? (n.if((0, Pt.checkDataType)(b.type, i, u.strictNumbers)), is(e, b), t.length === 1 && t[0] === b.type && r && (n.else(), (0, Pt.reportTypeError)(e)), n.endIf()) : is(e, b), d || n.if((0, T._)`${M.default.errors} === ${s || 0}`));
|
|
1811
1811
|
}
|
|
1812
1812
|
}
|
|
1813
1813
|
function is(e, t) {
|
|
@@ -1933,7 +1933,7 @@ class ln {
|
|
|
1933
1933
|
if (!(r instanceof T.Name))
|
|
1934
1934
|
throw new Error("ajv implementation error");
|
|
1935
1935
|
const u = Array.isArray(s) ? s : [s];
|
|
1936
|
-
return (0, T._)`${(0,
|
|
1936
|
+
return (0, T._)`${(0, Pt.checkDataTypes)(u, r, a.opts.strictNumbers, Pt.DataType.Wrong)}`;
|
|
1937
1937
|
}
|
|
1938
1938
|
return T.nil;
|
|
1939
1939
|
}
|
|
@@ -2000,14 +2000,14 @@ function un(e, { dataLevel: t, dataNames: r, dataPathArr: s }) {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
}
|
|
2002
2002
|
fe.getData = un;
|
|
2003
|
-
var
|
|
2004
|
-
Object.defineProperty(
|
|
2003
|
+
var mt = {};
|
|
2004
|
+
Object.defineProperty(mt, "__esModule", { value: !0 });
|
|
2005
2005
|
class si extends Error {
|
|
2006
2006
|
constructor(t) {
|
|
2007
2007
|
super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
|
|
2008
2008
|
}
|
|
2009
2009
|
}
|
|
2010
|
-
|
|
2010
|
+
mt.default = si;
|
|
2011
2011
|
var Xe = {};
|
|
2012
2012
|
Object.defineProperty(Xe, "__esModule", { value: !0 });
|
|
2013
2013
|
const Qt = Z;
|
|
@@ -2020,7 +2020,7 @@ Xe.default = ni;
|
|
|
2020
2020
|
var re = {};
|
|
2021
2021
|
Object.defineProperty(re, "__esModule", { value: !0 });
|
|
2022
2022
|
re.resolveSchema = re.getCompilingSchema = re.resolveRef = re.compileSchema = re.SchemaEnv = void 0;
|
|
2023
|
-
const ce =
|
|
2023
|
+
const ce = K, oi = mt, je = ye, ue = Z, cs = N, ai = fe;
|
|
2024
2024
|
class Rt {
|
|
2025
2025
|
constructor(t) {
|
|
2026
2026
|
var r;
|
|
@@ -2045,10 +2045,10 @@ function vr(e) {
|
|
|
2045
2045
|
const l = {
|
|
2046
2046
|
gen: i,
|
|
2047
2047
|
allErrors: this.opts.allErrors,
|
|
2048
|
-
data:
|
|
2049
|
-
parentData:
|
|
2050
|
-
parentDataProperty:
|
|
2051
|
-
dataNames: [
|
|
2048
|
+
data: je.default.data,
|
|
2049
|
+
parentData: je.default.parentData,
|
|
2050
|
+
parentDataProperty: je.default.parentDataProperty,
|
|
2051
|
+
dataNames: [je.default.data],
|
|
2052
2052
|
dataPathArr: [ce.nil],
|
|
2053
2053
|
// TODO can its length be used as dataLevel if nil is removed?
|
|
2054
2054
|
dataLevel: 0,
|
|
@@ -2071,8 +2071,8 @@ function vr(e) {
|
|
|
2071
2071
|
try {
|
|
2072
2072
|
this._compilations.add(e), (0, ai.validateFunctionCode)(l), i.optimize(this.opts.code.optimize);
|
|
2073
2073
|
const y = i.toString();
|
|
2074
|
-
m = `${i.scopeRefs(
|
|
2075
|
-
const E = new Function(`${
|
|
2074
|
+
m = `${i.scopeRefs(je.default.scope)}return ${y}`, this.opts.code.process && (m = this.opts.code.process(m, e));
|
|
2075
|
+
const E = new Function(`${je.default.self}`, `${je.default.scope}`, m)(this, this.scope.get());
|
|
2076
2076
|
if (this.scope.value(u, { ref: E }), E.errors = null, E.schema = e.schema, E.schemaEnv = e, e.$async && (E.$async = !0), this.opts.code.source === !0 && (E.source = { validateName: u, validateCode: y, scopeValues: i._values }), this.opts.unevaluated) {
|
|
2077
2077
|
const { props: g, items: v } = l;
|
|
2078
2078
|
E.evaluated = {
|
|
@@ -2205,7 +2205,7 @@ $r.default = mn;
|
|
|
2205
2205
|
Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
|
|
2206
2206
|
return t.KeywordCxt;
|
|
2207
2207
|
} });
|
|
2208
|
-
var r =
|
|
2208
|
+
var r = K;
|
|
2209
2209
|
Object.defineProperty(e, "_", { enumerable: !0, get: function() {
|
|
2210
2210
|
return r._;
|
|
2211
2211
|
} }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
|
|
@@ -2219,7 +2219,7 @@ $r.default = mn;
|
|
|
2219
2219
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
2220
2220
|
return r.CodeGen;
|
|
2221
2221
|
} });
|
|
2222
|
-
const s =
|
|
2222
|
+
const s = mt, n = Xe, a = Me, i = re, d = K, u = Z, l = X, m = N, y = vi, b = $r, E = (k, p) => new RegExp(k, p);
|
|
2223
2223
|
E.code = "new RegExp";
|
|
2224
2224
|
const g = ["removeAdditional", "useDefaults", "coerceTypes"], v = /* @__PURE__ */ new Set([
|
|
2225
2225
|
"validate",
|
|
@@ -2257,7 +2257,7 @@ $r.default = mn;
|
|
|
2257
2257
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
2258
2258
|
}, $ = 200;
|
|
2259
2259
|
function P(k) {
|
|
2260
|
-
var p, S, _, o, c, w, R, O, q, I, B, ve, De, $e, qe, Mt, Vt, Ft,
|
|
2260
|
+
var p, S, _, o, c, w, R, O, q, I, B, ve, De, $e, qe, Mt, Vt, Ft, At, Kt, qt, zt, Ut, Lt, Gt;
|
|
2261
2261
|
const We = k.strict, Jt = (p = k.code) === null || p === void 0 ? void 0 : p.optimize, Wr = Jt === !0 || Jt === void 0 ? 1 : Jt || 0, xr = (_ = (S = k.code) === null || S === void 0 ? void 0 : S.regExp) !== null && _ !== void 0 ? _ : E, bn = (o = k.uriResolver) !== null && o !== void 0 ? o : b.default;
|
|
2262
2262
|
return {
|
|
2263
2263
|
strictSchema: (w = (c = k.strictSchema) !== null && c !== void 0 ? c : We) !== null && w !== void 0 ? w : !0,
|
|
@@ -2270,8 +2270,8 @@ $r.default = mn;
|
|
|
2270
2270
|
loopEnum: (Mt = k.loopEnum) !== null && Mt !== void 0 ? Mt : $,
|
|
2271
2271
|
meta: (Vt = k.meta) !== null && Vt !== void 0 ? Vt : !0,
|
|
2272
2272
|
messages: (Ft = k.messages) !== null && Ft !== void 0 ? Ft : !0,
|
|
2273
|
-
inlineRefs: (
|
|
2274
|
-
schemaId: (
|
|
2273
|
+
inlineRefs: (At = k.inlineRefs) !== null && At !== void 0 ? At : !0,
|
|
2274
|
+
schemaId: (Kt = k.schemaId) !== null && Kt !== void 0 ? Kt : "$id",
|
|
2275
2275
|
addUsedSchema: (qt = k.addUsedSchema) !== null && qt !== void 0 ? qt : !0,
|
|
2276
2276
|
validateSchema: (zt = k.validateSchema) !== null && zt !== void 0 ? zt : !0,
|
|
2277
2277
|
validateFormats: (Ut = k.validateFormats) !== null && Ut !== void 0 ? Ut : !0,
|
|
@@ -2448,14 +2448,14 @@ $r.default = mn;
|
|
|
2448
2448
|
} else
|
|
2449
2449
|
throw new Error("invalid addKeywords parameters");
|
|
2450
2450
|
if (H.call(this, _, S), !S)
|
|
2451
|
-
return (0, m.eachItem)(_, (c) =>
|
|
2452
|
-
|
|
2451
|
+
return (0, m.eachItem)(_, (c) => ee.call(this, c)), this;
|
|
2452
|
+
Ae.call(this, S);
|
|
2453
2453
|
const o = {
|
|
2454
2454
|
...S,
|
|
2455
2455
|
type: (0, l.getJSONTypes)(S.type),
|
|
2456
2456
|
schemaType: (0, l.getJSONTypes)(S.schemaType)
|
|
2457
2457
|
};
|
|
2458
|
-
return (0, m.eachItem)(_, o.type.length === 0 ? (c) =>
|
|
2458
|
+
return (0, m.eachItem)(_, o.type.length === 0 ? (c) => ee.call(this, c, o) : (c) => o.type.forEach((w) => ee.call(this, c, o, w))), this;
|
|
2459
2459
|
}
|
|
2460
2460
|
getKeyword(p) {
|
|
2461
2461
|
const S = this.RULES.all[p];
|
|
@@ -2491,7 +2491,7 @@ $r.default = mn;
|
|
|
2491
2491
|
if (typeof O != "object")
|
|
2492
2492
|
continue;
|
|
2493
2493
|
const { $data: q } = O.definition, I = w[R];
|
|
2494
|
-
q && I && (w[R] =
|
|
2494
|
+
q && I && (w[R] = Ke(I));
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
2497
2497
|
return p;
|
|
@@ -2605,7 +2605,7 @@ $r.default = mn;
|
|
|
2605
2605
|
}), !!p && p.$data && !("code" in p || "validate" in p))
|
|
2606
2606
|
throw new Error('$data keyword must have "code" or "validate" function');
|
|
2607
2607
|
}
|
|
2608
|
-
function
|
|
2608
|
+
function ee(k, p, S) {
|
|
2609
2609
|
var _;
|
|
2610
2610
|
const o = p == null ? void 0 : p.post;
|
|
2611
2611
|
if (S && o)
|
|
@@ -2628,14 +2628,14 @@ $r.default = mn;
|
|
|
2628
2628
|
const _ = k.rules.findIndex((o) => o.keyword === S);
|
|
2629
2629
|
_ >= 0 ? k.rules.splice(_, 0, p) : (k.rules.push(p), this.logger.warn(`rule ${S} is not defined`));
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function Ae(k) {
|
|
2632
2632
|
let { metaSchema: p } = k;
|
|
2633
|
-
p !== void 0 && (k.$data && this.opts.$data && (p =
|
|
2633
|
+
p !== void 0 && (k.$data && this.opts.$data && (p = Ke(p)), k.validateSchema = this.compile(p, !0));
|
|
2634
2634
|
}
|
|
2635
2635
|
const _e = {
|
|
2636
2636
|
$ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
|
|
2637
2637
|
};
|
|
2638
|
-
function
|
|
2638
|
+
function Ke(k) {
|
|
2639
2639
|
return { anyOf: [k, _e] };
|
|
2640
2640
|
}
|
|
2641
2641
|
})(Vs);
|
|
@@ -2648,10 +2648,10 @@ const $i = {
|
|
|
2648
2648
|
}
|
|
2649
2649
|
};
|
|
2650
2650
|
br.default = $i;
|
|
2651
|
-
var
|
|
2652
|
-
Object.defineProperty(
|
|
2653
|
-
|
|
2654
|
-
const gi = Xe, ls =
|
|
2651
|
+
var Ve = {};
|
|
2652
|
+
Object.defineProperty(Ve, "__esModule", { value: !0 });
|
|
2653
|
+
Ve.callRef = Ve.getValidate = void 0;
|
|
2654
|
+
const gi = Xe, ls = A, te = K, Ue = ye, ds = re, _t = N, wi = {
|
|
2655
2655
|
keyword: "$ref",
|
|
2656
2656
|
schemaType: "string",
|
|
2657
2657
|
code(e) {
|
|
@@ -2666,13 +2666,13 @@ const gi = Xe, ls = K, te = A, Ue = ye, ds = re, yt = N, wi = {
|
|
|
2666
2666
|
return E(m);
|
|
2667
2667
|
function y() {
|
|
2668
2668
|
if (a === l)
|
|
2669
|
-
return
|
|
2669
|
+
return bt(e, i, a, a.$async);
|
|
2670
2670
|
const g = t.scopeValue("root", { ref: l });
|
|
2671
|
-
return
|
|
2671
|
+
return bt(e, (0, te._)`${g}.validate`, l, l.$async);
|
|
2672
2672
|
}
|
|
2673
2673
|
function b(g) {
|
|
2674
2674
|
const v = hn(e, g);
|
|
2675
|
-
|
|
2675
|
+
bt(e, v, g, g.$async);
|
|
2676
2676
|
}
|
|
2677
2677
|
function E(g) {
|
|
2678
2678
|
const v = t.scopeValue("schema", d.code.source === !0 ? { ref: g, code: (0, te.stringify)(g) } : { ref: g }), h = t.name("valid"), f = e.subschema({
|
|
@@ -2690,8 +2690,8 @@ function hn(e, t) {
|
|
|
2690
2690
|
const { gen: r } = e;
|
|
2691
2691
|
return t.validate ? r.scopeValue("validate", { ref: t.validate }) : (0, te._)`${r.scopeValue("wrapper", { ref: t })}.validate`;
|
|
2692
2692
|
}
|
|
2693
|
-
|
|
2694
|
-
function
|
|
2693
|
+
Ve.getValidate = hn;
|
|
2694
|
+
function bt(e, t, r, s) {
|
|
2695
2695
|
const { gen: n, it: a } = e, { allErrors: i, schemaEnv: d, opts: u } = a, l = u.passContext ? Ue.default.this : te.nil;
|
|
2696
2696
|
s ? m() : y();
|
|
2697
2697
|
function m() {
|
|
@@ -2718,24 +2718,24 @@ function wt(e, t, r, s) {
|
|
|
2718
2718
|
const h = (v = r == null ? void 0 : r.validate) === null || v === void 0 ? void 0 : v.evaluated;
|
|
2719
2719
|
if (a.props !== !0)
|
|
2720
2720
|
if (h && !h.dynamicProps)
|
|
2721
|
-
h.props !== void 0 && (a.props =
|
|
2721
|
+
h.props !== void 0 && (a.props = _t.mergeEvaluated.props(n, h.props, a.props));
|
|
2722
2722
|
else {
|
|
2723
2723
|
const f = n.var("props", (0, te._)`${g}.evaluated.props`);
|
|
2724
|
-
a.props =
|
|
2724
|
+
a.props = _t.mergeEvaluated.props(n, f, a.props, te.Name);
|
|
2725
2725
|
}
|
|
2726
2726
|
if (a.items !== !0)
|
|
2727
2727
|
if (h && !h.dynamicItems)
|
|
2728
|
-
h.items !== void 0 && (a.items =
|
|
2728
|
+
h.items !== void 0 && (a.items = _t.mergeEvaluated.items(n, h.items, a.items));
|
|
2729
2729
|
else {
|
|
2730
2730
|
const f = n.var("items", (0, te._)`${g}.evaluated.items`);
|
|
2731
|
-
a.items =
|
|
2731
|
+
a.items = _t.mergeEvaluated.items(n, f, a.items, te.Name);
|
|
2732
2732
|
}
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
2735
|
-
|
|
2736
|
-
|
|
2735
|
+
Ve.callRef = bt;
|
|
2736
|
+
Ve.default = wi;
|
|
2737
2737
|
Object.defineProperty(wr, "__esModule", { value: !0 });
|
|
2738
|
-
const bi = br, Ei =
|
|
2738
|
+
const bi = br, Ei = Ve, Si = [
|
|
2739
2739
|
"$schema",
|
|
2740
2740
|
"$id",
|
|
2741
2741
|
"$defs",
|
|
@@ -2748,29 +2748,29 @@ const bi = br, Ei = Me, Si = [
|
|
|
2748
2748
|
wr.default = Si;
|
|
2749
2749
|
var Er = {}, Sr = {};
|
|
2750
2750
|
Object.defineProperty(Sr, "__esModule", { value: !0 });
|
|
2751
|
-
const
|
|
2751
|
+
const kt = K, Se = kt.operators, Nt = {
|
|
2752
2752
|
maximum: { okStr: "<=", ok: Se.LTE, fail: Se.GT },
|
|
2753
2753
|
minimum: { okStr: ">=", ok: Se.GTE, fail: Se.LT },
|
|
2754
2754
|
exclusiveMaximum: { okStr: "<", ok: Se.LT, fail: Se.GTE },
|
|
2755
2755
|
exclusiveMinimum: { okStr: ">", ok: Se.GT, fail: Se.LTE }
|
|
2756
2756
|
}, Pi = {
|
|
2757
|
-
message: ({ keyword: e, schemaCode: t }) => (0,
|
|
2758
|
-
params: ({ keyword: e, schemaCode: t }) => (0,
|
|
2757
|
+
message: ({ keyword: e, schemaCode: t }) => (0, kt.str)`must be ${Nt[e].okStr} ${t}`,
|
|
2758
|
+
params: ({ keyword: e, schemaCode: t }) => (0, kt._)`{comparison: ${Nt[e].okStr}, limit: ${t}}`
|
|
2759
2759
|
}, ki = {
|
|
2760
|
-
keyword: Object.keys(
|
|
2760
|
+
keyword: Object.keys(Nt),
|
|
2761
2761
|
type: "number",
|
|
2762
2762
|
schemaType: "number",
|
|
2763
2763
|
$data: !0,
|
|
2764
2764
|
error: Pi,
|
|
2765
2765
|
code(e) {
|
|
2766
2766
|
const { keyword: t, data: r, schemaCode: s } = e;
|
|
2767
|
-
e.fail$data((0,
|
|
2767
|
+
e.fail$data((0, kt._)`${r} ${Nt[t].fail} ${s} || isNaN(${r})`);
|
|
2768
2768
|
}
|
|
2769
2769
|
};
|
|
2770
2770
|
Sr.default = ki;
|
|
2771
2771
|
var Pr = {};
|
|
2772
2772
|
Object.defineProperty(Pr, "__esModule", { value: !0 });
|
|
2773
|
-
const ot =
|
|
2773
|
+
const ot = K, Ni = {
|
|
2774
2774
|
message: ({ schemaCode: e }) => (0, ot.str)`must be multiple of ${e}`,
|
|
2775
2775
|
params: ({ schemaCode: e }) => (0, ot._)`{multipleOf: ${e}}`
|
|
2776
2776
|
}, Ci = {
|
|
@@ -2797,12 +2797,12 @@ function pn(e) {
|
|
|
2797
2797
|
Nr.default = pn;
|
|
2798
2798
|
pn.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
2799
2799
|
Object.defineProperty(kr, "__esModule", { value: !0 });
|
|
2800
|
-
const
|
|
2800
|
+
const Te = K, ji = N, Ri = Nr, Oi = {
|
|
2801
2801
|
message({ keyword: e, schemaCode: t }) {
|
|
2802
2802
|
const r = e === "maxLength" ? "more" : "fewer";
|
|
2803
|
-
return (0,
|
|
2803
|
+
return (0, Te.str)`must NOT have ${r} than ${t} characters`;
|
|
2804
2804
|
},
|
|
2805
|
-
params: ({ schemaCode: e }) => (0,
|
|
2805
|
+
params: ({ schemaCode: e }) => (0, Te._)`{limit: ${e}}`
|
|
2806
2806
|
}, Ti = {
|
|
2807
2807
|
keyword: ["maxLength", "minLength"],
|
|
2808
2808
|
type: "string",
|
|
@@ -2810,14 +2810,14 @@ const Oe = A, ji = N, Ri = Nr, Oi = {
|
|
|
2810
2810
|
$data: !0,
|
|
2811
2811
|
error: Oi,
|
|
2812
2812
|
code(e) {
|
|
2813
|
-
const { keyword: t, data: r, schemaCode: s, it: n } = e, a = t === "maxLength" ?
|
|
2814
|
-
e.fail$data((0,
|
|
2813
|
+
const { keyword: t, data: r, schemaCode: s, it: n } = e, a = t === "maxLength" ? Te.operators.GT : Te.operators.LT, i = n.opts.unicode === !1 ? (0, Te._)`${r}.length` : (0, Te._)`${(0, ji.useFunc)(e.gen, Ri.default)}(${r})`;
|
|
2814
|
+
e.fail$data((0, Te._)`${i} ${a} ${s}`);
|
|
2815
2815
|
}
|
|
2816
2816
|
};
|
|
2817
2817
|
kr.default = Ti;
|
|
2818
2818
|
var Cr = {};
|
|
2819
2819
|
Object.defineProperty(Cr, "__esModule", { value: !0 });
|
|
2820
|
-
const Ii =
|
|
2820
|
+
const Ii = A, Mi = N, Ge = K, Vi = {
|
|
2821
2821
|
message: ({ schemaCode: e }) => (0, Ge.str)`must match pattern "${e}"`,
|
|
2822
2822
|
params: ({ schemaCode: e }) => (0, Ge._)`{pattern: ${e}}`
|
|
2823
2823
|
}, Fi = {
|
|
@@ -2840,27 +2840,27 @@ const Ii = K, Mi = N, Ge = A, Vi = {
|
|
|
2840
2840
|
Cr.default = Fi;
|
|
2841
2841
|
var jr = {};
|
|
2842
2842
|
Object.defineProperty(jr, "__esModule", { value: !0 });
|
|
2843
|
-
const at =
|
|
2843
|
+
const at = K, Ai = {
|
|
2844
2844
|
message({ keyword: e, schemaCode: t }) {
|
|
2845
2845
|
const r = e === "maxProperties" ? "more" : "fewer";
|
|
2846
2846
|
return (0, at.str)`must NOT have ${r} than ${t} properties`;
|
|
2847
2847
|
},
|
|
2848
2848
|
params: ({ schemaCode: e }) => (0, at._)`{limit: ${e}}`
|
|
2849
|
-
},
|
|
2849
|
+
}, Ki = {
|
|
2850
2850
|
keyword: ["maxProperties", "minProperties"],
|
|
2851
2851
|
type: "object",
|
|
2852
2852
|
schemaType: "number",
|
|
2853
2853
|
$data: !0,
|
|
2854
|
-
error:
|
|
2854
|
+
error: Ai,
|
|
2855
2855
|
code(e) {
|
|
2856
2856
|
const { keyword: t, data: r, schemaCode: s } = e, n = t === "maxProperties" ? at.operators.GT : at.operators.LT;
|
|
2857
2857
|
e.fail$data((0, at._)`Object.keys(${r}).length ${n} ${s}`);
|
|
2858
2858
|
}
|
|
2859
2859
|
};
|
|
2860
|
-
jr.default =
|
|
2860
|
+
jr.default = Ki;
|
|
2861
2861
|
var Rr = {};
|
|
2862
2862
|
Object.defineProperty(Rr, "__esModule", { value: !0 });
|
|
2863
|
-
const tt =
|
|
2863
|
+
const tt = A, it = K, qi = N, zi = {
|
|
2864
2864
|
message: ({ params: { missingProperty: e } }) => (0, it.str)`must have required property '${e}'`,
|
|
2865
2865
|
params: ({ params: { missingProperty: e } }) => (0, it._)`{missingProperty: ${e}}`
|
|
2866
2866
|
}, Ui = {
|
|
@@ -2914,7 +2914,7 @@ const tt = K, it = A, qi = N, zi = {
|
|
|
2914
2914
|
Rr.default = Ui;
|
|
2915
2915
|
var Or = {};
|
|
2916
2916
|
Object.defineProperty(Or, "__esModule", { value: !0 });
|
|
2917
|
-
const ct =
|
|
2917
|
+
const ct = K, Li = {
|
|
2918
2918
|
message({ keyword: e, schemaCode: t }) {
|
|
2919
2919
|
const r = e === "maxItems" ? "more" : "fewer";
|
|
2920
2920
|
return (0, ct.str)`must NOT have ${r} than ${t} items`;
|
|
@@ -2932,13 +2932,13 @@ const ct = A, Li = {
|
|
|
2932
2932
|
}
|
|
2933
2933
|
};
|
|
2934
2934
|
Or.default = Gi;
|
|
2935
|
-
var Tr = {},
|
|
2936
|
-
Object.defineProperty(
|
|
2935
|
+
var Tr = {}, ht = {};
|
|
2936
|
+
Object.defineProperty(ht, "__esModule", { value: !0 });
|
|
2937
2937
|
const yn = Ps;
|
|
2938
2938
|
yn.code = 'require("ajv/dist/runtime/equal").default';
|
|
2939
|
-
|
|
2939
|
+
ht.default = yn;
|
|
2940
2940
|
Object.defineProperty(Tr, "__esModule", { value: !0 });
|
|
2941
|
-
const Yt = X, Y =
|
|
2941
|
+
const Yt = X, Y = K, Ji = N, Hi = ht, Bi = {
|
|
2942
2942
|
message: ({ params: { i: e, j: t } }) => (0, Y.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
|
|
2943
2943
|
params: ({ params: { i: e, j: t } }) => (0, Y._)`{i: ${e}, j: ${t}}`
|
|
2944
2944
|
}, Qi = {
|
|
@@ -2979,7 +2979,7 @@ const Yt = X, Y = A, Ji = N, Hi = mt, Bi = {
|
|
|
2979
2979
|
Tr.default = Qi;
|
|
2980
2980
|
var Ir = {};
|
|
2981
2981
|
Object.defineProperty(Ir, "__esModule", { value: !0 });
|
|
2982
|
-
const ar =
|
|
2982
|
+
const ar = K, Xi = N, Yi = ht, Zi = {
|
|
2983
2983
|
message: "must be equal to constant",
|
|
2984
2984
|
params: ({ schemaCode: e }) => (0, ar._)`{allowedValue: ${e}}`
|
|
2985
2985
|
}, Di = {
|
|
@@ -2994,7 +2994,7 @@ const ar = A, Xi = N, Yi = mt, Zi = {
|
|
|
2994
2994
|
Ir.default = Di;
|
|
2995
2995
|
var Mr = {};
|
|
2996
2996
|
Object.defineProperty(Mr, "__esModule", { value: !0 });
|
|
2997
|
-
const rt =
|
|
2997
|
+
const rt = K, Wi = N, xi = ht, ec = {
|
|
2998
2998
|
message: "must be equal to one of the allowed values",
|
|
2999
2999
|
params: ({ schemaCode: e }) => (0, rt._)`{allowedValues: ${e}}`
|
|
3000
3000
|
}, tc = {
|
|
@@ -3053,9 +3053,9 @@ Er.default = fc;
|
|
|
3053
3053
|
var Vr = {}, Ye = {};
|
|
3054
3054
|
Object.defineProperty(Ye, "__esModule", { value: !0 });
|
|
3055
3055
|
Ye.validateAdditionalItems = void 0;
|
|
3056
|
-
const
|
|
3057
|
-
message: ({ params: { len: e } }) => (0,
|
|
3058
|
-
params: ({ params: { len: e } }) => (0,
|
|
3056
|
+
const Ie = K, ir = N, mc = {
|
|
3057
|
+
message: ({ params: { len: e } }) => (0, Ie.str)`must NOT have more than ${e} items`,
|
|
3058
|
+
params: ({ params: { len: e } }) => (0, Ie._)`{limit: ${e}}`
|
|
3059
3059
|
}, hc = {
|
|
3060
3060
|
keyword: "additionalItems",
|
|
3061
3061
|
type: "array",
|
|
@@ -3074,16 +3074,16 @@ const Te = A, ir = N, mc = {
|
|
|
3074
3074
|
function _n(e, t) {
|
|
3075
3075
|
const { gen: r, schema: s, data: n, keyword: a, it: i } = e;
|
|
3076
3076
|
i.items = !0;
|
|
3077
|
-
const d = r.const("len", (0,
|
|
3077
|
+
const d = r.const("len", (0, Ie._)`${n}.length`);
|
|
3078
3078
|
if (s === !1)
|
|
3079
|
-
e.setParams({ len: t.length }), e.pass((0,
|
|
3079
|
+
e.setParams({ len: t.length }), e.pass((0, Ie._)`${d} <= ${t.length}`);
|
|
3080
3080
|
else if (typeof s == "object" && !(0, ir.alwaysValidSchema)(i, s)) {
|
|
3081
|
-
const l = r.var("valid", (0,
|
|
3082
|
-
r.if((0,
|
|
3081
|
+
const l = r.var("valid", (0, Ie._)`${d} <= ${t.length}`);
|
|
3082
|
+
r.if((0, Ie.not)(l), () => u(l)), e.ok(l);
|
|
3083
3083
|
}
|
|
3084
3084
|
function u(l) {
|
|
3085
3085
|
r.forRange("i", t.length, d, (m) => {
|
|
3086
|
-
e.subschema({ keyword: a, dataProp: m, dataPropType: ir.Type.Num }, l), i.allErrors || r.if((0,
|
|
3086
|
+
e.subschema({ keyword: a, dataProp: m, dataPropType: ir.Type.Num }, l), i.allErrors || r.if((0, Ie.not)(l), () => r.break());
|
|
3087
3087
|
});
|
|
3088
3088
|
}
|
|
3089
3089
|
}
|
|
@@ -3092,7 +3092,7 @@ Ye.default = hc;
|
|
|
3092
3092
|
var Fr = {}, Ze = {};
|
|
3093
3093
|
Object.defineProperty(Ze, "__esModule", { value: !0 });
|
|
3094
3094
|
Ze.validateTuple = void 0;
|
|
3095
|
-
const us =
|
|
3095
|
+
const us = K, Et = N, pc = A, yc = {
|
|
3096
3096
|
keyword: "items",
|
|
3097
3097
|
type: "array",
|
|
3098
3098
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -3101,15 +3101,15 @@ const us = A, bt = N, pc = K, yc = {
|
|
|
3101
3101
|
const { schema: t, it: r } = e;
|
|
3102
3102
|
if (Array.isArray(t))
|
|
3103
3103
|
return vn(e, "additionalItems", t);
|
|
3104
|
-
r.items = !0, !(0,
|
|
3104
|
+
r.items = !0, !(0, Et.alwaysValidSchema)(r, t) && e.ok((0, pc.validateArray)(e));
|
|
3105
3105
|
}
|
|
3106
3106
|
};
|
|
3107
3107
|
function vn(e, t, r = e.schema) {
|
|
3108
3108
|
const { gen: s, parentSchema: n, data: a, keyword: i, it: d } = e;
|
|
3109
|
-
m(n), d.opts.unevaluated && r.length && d.items !== !0 && (d.items =
|
|
3109
|
+
m(n), d.opts.unevaluated && r.length && d.items !== !0 && (d.items = Et.mergeEvaluated.items(s, r.length, d.items));
|
|
3110
3110
|
const u = s.name("valid"), l = s.const("len", (0, us._)`${a}.length`);
|
|
3111
3111
|
r.forEach((y, b) => {
|
|
3112
|
-
(0,
|
|
3112
|
+
(0, Et.alwaysValidSchema)(d, y) || (s.if((0, us._)`${l} > ${b}`, () => e.subschema({
|
|
3113
3113
|
keyword: i,
|
|
3114
3114
|
schemaProp: b,
|
|
3115
3115
|
dataProp: b
|
|
@@ -3119,7 +3119,7 @@ function vn(e, t, r = e.schema) {
|
|
|
3119
3119
|
const { opts: b, errSchemaPath: E } = d, g = r.length, v = g === y.minItems && (g === y.maxItems || y[t] === !1);
|
|
3120
3120
|
if (b.strictTuples && !v) {
|
|
3121
3121
|
const h = `"${i}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${E}"`;
|
|
3122
|
-
(0,
|
|
3122
|
+
(0, Et.checkStrictMode)(d, h, b.strictTuples);
|
|
3123
3123
|
}
|
|
3124
3124
|
}
|
|
3125
3125
|
}
|
|
@@ -3134,9 +3134,9 @@ const _c = Ze, vc = {
|
|
|
3134
3134
|
code: (e) => (0, _c.validateTuple)(e, "items")
|
|
3135
3135
|
};
|
|
3136
3136
|
Fr.default = vc;
|
|
3137
|
-
var
|
|
3138
|
-
Object.defineProperty(
|
|
3139
|
-
const fs =
|
|
3137
|
+
var Ar = {};
|
|
3138
|
+
Object.defineProperty(Ar, "__esModule", { value: !0 });
|
|
3139
|
+
const fs = K, $c = N, gc = A, wc = Ye, bc = {
|
|
3140
3140
|
message: ({ params: { len: e } }) => (0, fs.str)`must NOT have more than ${e} items`,
|
|
3141
3141
|
params: ({ params: { len: e } }) => (0, fs._)`{limit: ${e}}`
|
|
3142
3142
|
}, Ec = {
|
|
@@ -3150,10 +3150,10 @@ const fs = A, $c = N, gc = K, wc = Ye, bc = {
|
|
|
3150
3150
|
s.items = !0, !(0, $c.alwaysValidSchema)(s, t) && (n ? (0, wc.validateAdditionalItems)(e, n) : e.ok((0, gc.validateArray)(e)));
|
|
3151
3151
|
}
|
|
3152
3152
|
};
|
|
3153
|
-
|
|
3154
|
-
var
|
|
3155
|
-
Object.defineProperty(
|
|
3156
|
-
const oe =
|
|
3153
|
+
Ar.default = Ec;
|
|
3154
|
+
var Kr = {};
|
|
3155
|
+
Object.defineProperty(Kr, "__esModule", { value: !0 });
|
|
3156
|
+
const oe = K, vt = N, Sc = {
|
|
3157
3157
|
message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, oe.str)`must contain at least ${e} valid item(s)` : (0, oe.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
|
|
3158
3158
|
params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, oe._)`{minContains: ${e}}` : (0, oe._)`{minContains: ${e}, maxContains: ${t}}`
|
|
3159
3159
|
}, Pc = {
|
|
@@ -3170,14 +3170,14 @@ const oe = A, _t = N, Sc = {
|
|
|
3170
3170
|
a.opts.next ? (i = u === void 0 ? 1 : u, d = l) : i = 1;
|
|
3171
3171
|
const m = t.const("len", (0, oe._)`${n}.length`);
|
|
3172
3172
|
if (e.setParams({ min: i, max: d }), d === void 0 && i === 0) {
|
|
3173
|
-
(0,
|
|
3173
|
+
(0, vt.checkStrictMode)(a, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
|
|
3174
3174
|
return;
|
|
3175
3175
|
}
|
|
3176
3176
|
if (d !== void 0 && i > d) {
|
|
3177
|
-
(0,
|
|
3177
|
+
(0, vt.checkStrictMode)(a, '"minContains" > "maxContains" is always invalid'), e.fail();
|
|
3178
3178
|
return;
|
|
3179
3179
|
}
|
|
3180
|
-
if ((0,
|
|
3180
|
+
if ((0, vt.alwaysValidSchema)(a, r)) {
|
|
3181
3181
|
let v = (0, oe._)`${m} >= ${i}`;
|
|
3182
3182
|
d !== void 0 && (v = (0, oe._)`${v} && ${m} <= ${d}`), e.pass(v);
|
|
3183
3183
|
return;
|
|
@@ -3194,7 +3194,7 @@ const oe = A, _t = N, Sc = {
|
|
|
3194
3194
|
e.subschema({
|
|
3195
3195
|
keyword: "contains",
|
|
3196
3196
|
dataProp: f,
|
|
3197
|
-
dataPropType:
|
|
3197
|
+
dataPropType: vt.Type.Num,
|
|
3198
3198
|
compositeRule: !0
|
|
3199
3199
|
}, v), h();
|
|
3200
3200
|
});
|
|
@@ -3204,11 +3204,11 @@ const oe = A, _t = N, Sc = {
|
|
|
3204
3204
|
}
|
|
3205
3205
|
}
|
|
3206
3206
|
};
|
|
3207
|
-
|
|
3207
|
+
Kr.default = Pc;
|
|
3208
3208
|
var $n = {};
|
|
3209
3209
|
(function(e) {
|
|
3210
3210
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
3211
|
-
const t =
|
|
3211
|
+
const t = K, r = N, s = A;
|
|
3212
3212
|
e.error = {
|
|
3213
3213
|
message: ({ params: { property: u, depsCount: l, deps: m } }) => {
|
|
3214
3214
|
const y = l === 1 ? "property" : "properties";
|
|
@@ -3278,7 +3278,7 @@ var $n = {};
|
|
|
3278
3278
|
})($n);
|
|
3279
3279
|
var qr = {};
|
|
3280
3280
|
Object.defineProperty(qr, "__esModule", { value: !0 });
|
|
3281
|
-
const gn =
|
|
3281
|
+
const gn = K, kc = N, Nc = {
|
|
3282
3282
|
message: "property name must be valid",
|
|
3283
3283
|
params: ({ params: e }) => (0, gn._)`{propertyName: ${e.propertyName}}`
|
|
3284
3284
|
}, Cc = {
|
|
@@ -3307,7 +3307,7 @@ const gn = A, kc = N, Nc = {
|
|
|
3307
3307
|
qr.default = Cc;
|
|
3308
3308
|
var Tt = {};
|
|
3309
3309
|
Object.defineProperty(Tt, "__esModule", { value: !0 });
|
|
3310
|
-
const
|
|
3310
|
+
const $t = A, le = K, jc = ye, gt = N, Rc = {
|
|
3311
3311
|
message: "must NOT have additional properties",
|
|
3312
3312
|
params: ({ params: e }) => (0, le._)`{additionalProperty: ${e.additionalProperty}}`
|
|
3313
3313
|
}, Oc = {
|
|
@@ -3322,9 +3322,9 @@ const vt = K, le = A, jc = ye, $t = N, Rc = {
|
|
|
3322
3322
|
if (!a)
|
|
3323
3323
|
throw new Error("ajv implementation error");
|
|
3324
3324
|
const { allErrors: d, opts: u } = i;
|
|
3325
|
-
if (i.props = !0, u.removeAdditional !== "all" && (0,
|
|
3325
|
+
if (i.props = !0, u.removeAdditional !== "all" && (0, gt.alwaysValidSchema)(i, r))
|
|
3326
3326
|
return;
|
|
3327
|
-
const l = (0,
|
|
3327
|
+
const l = (0, $t.allSchemaProperties)(s.properties), m = (0, $t.allSchemaProperties)(s.patternProperties);
|
|
3328
3328
|
y(), e.ok((0, le._)`${a} === ${jc.default.errors}`);
|
|
3329
3329
|
function y() {
|
|
3330
3330
|
t.forIn("key", n, (h) => {
|
|
@@ -3334,10 +3334,10 @@ const vt = K, le = A, jc = ye, $t = N, Rc = {
|
|
|
3334
3334
|
function b(h) {
|
|
3335
3335
|
let f;
|
|
3336
3336
|
if (l.length > 8) {
|
|
3337
|
-
const $ = (0,
|
|
3338
|
-
f = (0,
|
|
3337
|
+
const $ = (0, gt.schemaRefOrVal)(i, s.properties, "properties");
|
|
3338
|
+
f = (0, $t.isOwnProperty)(t, $, h);
|
|
3339
3339
|
} else l.length ? f = (0, le.or)(...l.map(($) => (0, le._)`${h} === ${$}`)) : f = le.nil;
|
|
3340
|
-
return m.length && (f = (0, le.or)(f, ...m.map(($) => (0, le._)`${(0,
|
|
3340
|
+
return m.length && (f = (0, le.or)(f, ...m.map(($) => (0, le._)`${(0, $t.usePattern)(e, $)}.test(${h})`))), (0, le.not)(f);
|
|
3341
3341
|
}
|
|
3342
3342
|
function E(h) {
|
|
3343
3343
|
t.code((0, le._)`delete ${n}[${h}]`);
|
|
@@ -3351,7 +3351,7 @@ const vt = K, le = A, jc = ye, $t = N, Rc = {
|
|
|
3351
3351
|
e.setParams({ additionalProperty: h }), e.error(), d || t.break();
|
|
3352
3352
|
return;
|
|
3353
3353
|
}
|
|
3354
|
-
if (typeof r == "object" && !(0,
|
|
3354
|
+
if (typeof r == "object" && !(0, gt.alwaysValidSchema)(i, r)) {
|
|
3355
3355
|
const f = t.name("valid");
|
|
3356
3356
|
u.removeAdditional === "failing" ? (v(h, f, !1), t.if((0, le.not)(f), () => {
|
|
3357
3357
|
e.reset(), E(h);
|
|
@@ -3362,7 +3362,7 @@ const vt = K, le = A, jc = ye, $t = N, Rc = {
|
|
|
3362
3362
|
const P = {
|
|
3363
3363
|
keyword: "additionalProperties",
|
|
3364
3364
|
dataProp: h,
|
|
3365
|
-
dataPropType:
|
|
3365
|
+
dataPropType: gt.Type.Str
|
|
3366
3366
|
};
|
|
3367
3367
|
$ === !1 && Object.assign(P, {
|
|
3368
3368
|
compositeRule: !0,
|
|
@@ -3375,7 +3375,7 @@ const vt = K, le = A, jc = ye, $t = N, Rc = {
|
|
|
3375
3375
|
Tt.default = Oc;
|
|
3376
3376
|
var zr = {};
|
|
3377
3377
|
Object.defineProperty(zr, "__esModule", { value: !0 });
|
|
3378
|
-
const Tc = fe, ms =
|
|
3378
|
+
const Tc = fe, ms = A, Zt = N, hs = Tt, Ic = {
|
|
3379
3379
|
keyword: "properties",
|
|
3380
3380
|
type: "object",
|
|
3381
3381
|
schemaType: "object",
|
|
@@ -3407,7 +3407,7 @@ const Tc = fe, ms = K, Zt = N, hs = Tt, Ic = {
|
|
|
3407
3407
|
zr.default = Ic;
|
|
3408
3408
|
var Ur = {};
|
|
3409
3409
|
Object.defineProperty(Ur, "__esModule", { value: !0 });
|
|
3410
|
-
const ps =
|
|
3410
|
+
const ps = A, wt = K, ys = N, _s = N, Mc = {
|
|
3411
3411
|
keyword: "patternProperties",
|
|
3412
3412
|
type: "object",
|
|
3413
3413
|
schemaType: "object",
|
|
@@ -3416,7 +3416,7 @@ const ps = K, gt = A, ys = N, _s = N, Mc = {
|
|
|
3416
3416
|
if (d.length === 0 || u.length === d.length && (!a.opts.unevaluated || a.props === !0))
|
|
3417
3417
|
return;
|
|
3418
3418
|
const l = i.strictSchema && !i.allowMatchingProperties && n.properties, m = t.name("valid");
|
|
3419
|
-
a.props !== !0 && !(a.props instanceof
|
|
3419
|
+
a.props !== !0 && !(a.props instanceof wt.Name) && (a.props = (0, _s.evaluatedPropsToName)(t, a.props));
|
|
3420
3420
|
const { props: y } = a;
|
|
3421
3421
|
b();
|
|
3422
3422
|
function b() {
|
|
@@ -3429,14 +3429,14 @@ const ps = K, gt = A, ys = N, _s = N, Mc = {
|
|
|
3429
3429
|
}
|
|
3430
3430
|
function g(v) {
|
|
3431
3431
|
t.forIn("key", s, (h) => {
|
|
3432
|
-
t.if((0,
|
|
3432
|
+
t.if((0, wt._)`${(0, ps.usePattern)(e, v)}.test(${h})`, () => {
|
|
3433
3433
|
const f = u.includes(v);
|
|
3434
3434
|
f || e.subschema({
|
|
3435
3435
|
keyword: "patternProperties",
|
|
3436
3436
|
schemaProp: v,
|
|
3437
3437
|
dataProp: h,
|
|
3438
3438
|
dataPropType: _s.Type.Str
|
|
3439
|
-
}, m), a.opts.unevaluated && y !== !0 ? t.assign((0,
|
|
3439
|
+
}, m), a.opts.unevaluated && y !== !0 ? t.assign((0, wt._)`${y}[${h}]`, !0) : !f && !a.allErrors && t.if((0, wt.not)(m), () => t.break());
|
|
3440
3440
|
});
|
|
3441
3441
|
});
|
|
3442
3442
|
}
|
|
@@ -3468,19 +3468,19 @@ const Vc = N, Fc = {
|
|
|
3468
3468
|
Lr.default = Fc;
|
|
3469
3469
|
var Gr = {};
|
|
3470
3470
|
Object.defineProperty(Gr, "__esModule", { value: !0 });
|
|
3471
|
-
const
|
|
3471
|
+
const Ac = A, Kc = {
|
|
3472
3472
|
keyword: "anyOf",
|
|
3473
3473
|
schemaType: "array",
|
|
3474
3474
|
trackErrors: !0,
|
|
3475
|
-
code:
|
|
3475
|
+
code: Ac.validateUnion,
|
|
3476
3476
|
error: { message: "must match a schema in anyOf" }
|
|
3477
3477
|
};
|
|
3478
|
-
Gr.default =
|
|
3478
|
+
Gr.default = Kc;
|
|
3479
3479
|
var Jr = {};
|
|
3480
3480
|
Object.defineProperty(Jr, "__esModule", { value: !0 });
|
|
3481
|
-
const
|
|
3481
|
+
const St = K, qc = N, zc = {
|
|
3482
3482
|
message: "must match exactly one schema in oneOf",
|
|
3483
|
-
params: ({ params: e }) => (0,
|
|
3483
|
+
params: ({ params: e }) => (0, St._)`{passingSchemas: ${e.passing}}`
|
|
3484
3484
|
}, Uc = {
|
|
3485
3485
|
keyword: "oneOf",
|
|
3486
3486
|
schemaType: "array",
|
|
@@ -3501,8 +3501,8 @@ const Et = A, qc = N, zc = {
|
|
|
3501
3501
|
keyword: "oneOf",
|
|
3502
3502
|
schemaProp: y,
|
|
3503
3503
|
compositeRule: !0
|
|
3504
|
-
}, u), y > 0 && t.if((0,
|
|
3505
|
-
t.assign(i, !0), t.assign(d, y), b && e.mergeEvaluated(b,
|
|
3504
|
+
}, u), y > 0 && t.if((0, St._)`${u} && ${i}`).assign(i, !1).assign(d, (0, St._)`[${d}, ${y}]`).else(), t.if(u, () => {
|
|
3505
|
+
t.assign(i, !0), t.assign(d, y), b && e.mergeEvaluated(b, St.Name);
|
|
3506
3506
|
});
|
|
3507
3507
|
});
|
|
3508
3508
|
}
|
|
@@ -3530,9 +3530,9 @@ const Lc = N, Gc = {
|
|
|
3530
3530
|
Hr.default = Gc;
|
|
3531
3531
|
var Br = {};
|
|
3532
3532
|
Object.defineProperty(Br, "__esModule", { value: !0 });
|
|
3533
|
-
const
|
|
3534
|
-
message: ({ params: e }) => (0,
|
|
3535
|
-
params: ({ params: e }) => (0,
|
|
3533
|
+
const Ct = K, wn = N, Jc = {
|
|
3534
|
+
message: ({ params: e }) => (0, Ct.str)`must match "${e.ifClause}" schema`,
|
|
3535
|
+
params: ({ params: e }) => (0, Ct._)`{failingKeyword: ${e.ifClause}}`
|
|
3536
3536
|
}, Hc = {
|
|
3537
3537
|
keyword: "if",
|
|
3538
3538
|
schemaType: ["object", "boolean"],
|
|
@@ -3548,7 +3548,7 @@ const Nt = A, wn = N, Jc = {
|
|
|
3548
3548
|
if (u(), e.reset(), n && a) {
|
|
3549
3549
|
const m = t.let("ifClause");
|
|
3550
3550
|
e.setParams({ ifClause: m }), t.if(d, l("then", m), l("else", m));
|
|
3551
|
-
} else n ? t.if(d, l("then")) : t.if((0,
|
|
3551
|
+
} else n ? t.if(d, l("then")) : t.if((0, Ct.not)(d), l("else"));
|
|
3552
3552
|
e.pass(i, () => e.error(!0));
|
|
3553
3553
|
function u() {
|
|
3554
3554
|
const m = e.subschema({
|
|
@@ -3562,7 +3562,7 @@ const Nt = A, wn = N, Jc = {
|
|
|
3562
3562
|
function l(m, y) {
|
|
3563
3563
|
return () => {
|
|
3564
3564
|
const b = e.subschema({ keyword: m }, d);
|
|
3565
|
-
t.assign(i, d), e.mergeValidEvaluated(b, i), y ? t.assign(y, (0,
|
|
3565
|
+
t.assign(i, d), e.mergeValidEvaluated(b, i), y ? t.assign(y, (0, Ct._)`${m}`) : e.setParams({ ifClause: m });
|
|
3566
3566
|
};
|
|
3567
3567
|
}
|
|
3568
3568
|
}
|
|
@@ -3583,7 +3583,7 @@ const Bc = N, Qc = {
|
|
|
3583
3583
|
};
|
|
3584
3584
|
Qr.default = Qc;
|
|
3585
3585
|
Object.defineProperty(Vr, "__esModule", { value: !0 });
|
|
3586
|
-
const Xc = Ye, Yc = Fr, Zc = Ze, Dc =
|
|
3586
|
+
const Xc = Ye, Yc = Fr, Zc = Ze, Dc = Ar, Wc = Kr, xc = $n, el = qr, tl = Tt, rl = zr, sl = Ur, nl = Lr, ol = Gr, al = Jr, il = Hr, cl = Br, ll = Qr;
|
|
3587
3587
|
function dl(e = !1) {
|
|
3588
3588
|
const t = [
|
|
3589
3589
|
// any
|
|
@@ -3605,7 +3605,7 @@ function dl(e = !1) {
|
|
|
3605
3605
|
Vr.default = dl;
|
|
3606
3606
|
var Xr = {}, Yr = {};
|
|
3607
3607
|
Object.defineProperty(Yr, "__esModule", { value: !0 });
|
|
3608
|
-
const Q =
|
|
3608
|
+
const Q = K, ul = {
|
|
3609
3609
|
message: ({ schemaCode: e }) => (0, Q.str)`must match format "${e}"`,
|
|
3610
3610
|
params: ({ schemaCode: e }) => (0, Q._)`{format: ${e}}`
|
|
3611
3611
|
}, fl = {
|
|
@@ -3707,7 +3707,7 @@ var gs;
|
|
|
3707
3707
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
3708
3708
|
})(gs || (It.DiscrError = gs = {}));
|
|
3709
3709
|
Object.defineProperty(Zr, "__esModule", { value: !0 });
|
|
3710
|
-
const Le =
|
|
3710
|
+
const Le = K, cr = It, ws = re, gl = Xe, wl = N, bl = {
|
|
3711
3711
|
message: ({ params: { discrError: e, tagName: t } }) => e === cr.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
|
|
3712
3712
|
params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0, Le._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`
|
|
3713
3713
|
}, El = {
|
|
@@ -4042,7 +4042,7 @@ const Sl = "http://json-schema.org/draft-07/schema#", Pl = "http://json-schema.o
|
|
|
4042
4042
|
Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
|
|
4043
4043
|
return l.KeywordCxt;
|
|
4044
4044
|
} });
|
|
4045
|
-
var m =
|
|
4045
|
+
var m = K;
|
|
4046
4046
|
Object.defineProperty(t, "_", { enumerable: !0, get: function() {
|
|
4047
4047
|
return m._;
|
|
4048
4048
|
} }), Object.defineProperty(t, "str", { enumerable: !0, get: function() {
|
|
@@ -4056,7 +4056,7 @@ const Sl = "http://json-schema.org/draft-07/schema#", Pl = "http://json-schema.o
|
|
|
4056
4056
|
} }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
|
|
4057
4057
|
return m.CodeGen;
|
|
4058
4058
|
} });
|
|
4059
|
-
var y =
|
|
4059
|
+
var y = mt;
|
|
4060
4060
|
Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
|
|
4061
4061
|
return y.default;
|
|
4062
4062
|
} });
|
|
@@ -4066,28 +4066,24 @@ const Sl = "http://json-schema.org/draft-07/schema#", Pl = "http://json-schema.o
|
|
|
4066
4066
|
} });
|
|
4067
4067
|
})(tr, tr.exports);
|
|
4068
4068
|
var Ol = tr.exports;
|
|
4069
|
-
const Tl = /* @__PURE__ */ On(Ol), pd = (e) =>
|
|
4070
|
-
const [r, s] = de(e), n = Fn(null), a = Il((
|
|
4069
|
+
const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ce(Ln, e), Il = (e) => Ce(Dr, e), yd = (e) => Ce(Un, e), _d = (e) => Ce(ut, e), Ml = (e, t = 2e3) => {
|
|
4070
|
+
const [r, s] = de(e), n = Fn(null), { t: a } = Ce(ut, (l) => l.i18next), i = Il((l) => l.getActionStatus), d = ke(() => e == null ? void 0 : e.task_id, [e == null ? void 0 : e.task_id]), u = ke(() => e == null ? void 0 : e.actionId, [e == null ? void 0 : e.actionId]);
|
|
4071
4071
|
return Wt(() => {
|
|
4072
|
-
if ((e == null ? void 0 : e.outcome) !== "pending" || !
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
} else {
|
|
4083
|
-
if (u) return;
|
|
4084
|
-
s({ ...m }), n.current = setTimeout(l, t);
|
|
4085
|
-
}
|
|
4072
|
+
if ((e == null ? void 0 : e.outcome) !== "pending" || !d)
|
|
4073
|
+
return;
|
|
4074
|
+
let l = !1;
|
|
4075
|
+
const m = async () => {
|
|
4076
|
+
var E;
|
|
4077
|
+
const y = await i(u, d);
|
|
4078
|
+
if (l)
|
|
4079
|
+
return;
|
|
4080
|
+
let b;
|
|
4081
|
+
y ? y.outcome === "success" || y.outcome === "failure" ? b = { ...y, done: !0 } : b = y : b = { outcome: "failure", summary: a("error.unexpected"), done: !0 }, s(b), b.done ? (E = e == null ? void 0 : e.onComplete) == null || E.call(e, { ...e, ...b }) : n.current = setTimeout(m, t);
|
|
4086
4082
|
};
|
|
4087
|
-
return
|
|
4088
|
-
|
|
4083
|
+
return m(), () => {
|
|
4084
|
+
l = !0, n.current && clearTimeout(n.current);
|
|
4089
4085
|
};
|
|
4090
|
-
}, [
|
|
4086
|
+
}, [u, i, t, e, e == null ? void 0 : e.outcome, a, d]), Wt(() => {
|
|
4091
4087
|
s(e);
|
|
4092
4088
|
}, [e]), ke(
|
|
4093
4089
|
() => e || r ? { ...e, ...r } : void 0,
|
|
@@ -4095,7 +4091,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4095
4091
|
);
|
|
4096
4092
|
}, Vl = ({ result: e, onClose: t, show: r = !1 }) => {
|
|
4097
4093
|
var i, d;
|
|
4098
|
-
const { t: s } =
|
|
4094
|
+
const { t: s } = Ce(ut, (u) => u.i18next), n = Ml(e), a = ke(
|
|
4099
4095
|
() => (n == null ? void 0 : n.outcome) === "success" || (n == null ? void 0 : n.outcome) === "failure" || (n == null ? void 0 : n.done),
|
|
4100
4096
|
[n == null ? void 0 : n.done, n == null ? void 0 : n.outcome]
|
|
4101
4097
|
);
|
|
@@ -4127,7 +4123,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4127
4123
|
/* @__PURE__ */ V(st, { variant: "outlined", color: "error", onClick: t, children: s("close") })
|
|
4128
4124
|
] })
|
|
4129
4125
|
] }) }) }) }) : null;
|
|
4130
|
-
}, Fl = Ns(Vl),
|
|
4126
|
+
}, Fl = Ns(Vl), Al = new Tl({ removeAdditional: !0, coerceTypes: !0, strict: !1 }), Dr = An(null), vd = ({
|
|
4131
4127
|
baseURL: e,
|
|
4132
4128
|
children: t,
|
|
4133
4129
|
classification: r,
|
|
@@ -4135,10 +4131,10 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4135
4131
|
getToken: n,
|
|
4136
4132
|
onNetworkCall: a
|
|
4137
4133
|
}) => {
|
|
4138
|
-
const { t: i, i18n: d } =
|
|
4134
|
+
const { t: i, i18n: d } = Ce(ut, (z) => z.i18next), { ready: u } = Bn(), [l, m] = de(null), [y, b] = de({}), [E, g] = de(!1), [v, h] = de(null), [f, $] = de(!1), [P, j] = de({}), C = ke(() => {
|
|
4139
4135
|
const z = {}, H = n == null ? void 0 : n();
|
|
4140
4136
|
return H && (z.Authorization = `Bearer ${H}`), a ? a({ baseURL: e, headers: z }) : { baseURL: e, headers: z };
|
|
4141
|
-
}, [e, n, a]), U =
|
|
4137
|
+
}, [e, n, a]), U = Re(async () => {
|
|
4142
4138
|
if (!u)
|
|
4143
4139
|
return;
|
|
4144
4140
|
const z = await Ht.actions.get(C);
|
|
@@ -4147,12 +4143,12 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4147
4143
|
Wt(() => {
|
|
4148
4144
|
U();
|
|
4149
4145
|
}, [e, u]);
|
|
4150
|
-
const J =
|
|
4151
|
-
(z, H,
|
|
4146
|
+
const J = Re(
|
|
4147
|
+
(z, H, ee) => JSON.stringify({ type: z, value: H, classification: ee ?? r }),
|
|
4152
4148
|
[r]
|
|
4153
|
-
), ne =
|
|
4154
|
-
async (z, H,
|
|
4155
|
-
const { forceMenu:
|
|
4149
|
+
), ne = Re(
|
|
4150
|
+
async (z, H, ee, Fe) => {
|
|
4151
|
+
const { forceMenu: Ae, onComplete: _e, onCancel: Ke, skipMenu: k, skipResultModal: p, timeout: S, includeContext: _, extraContext: o } = {
|
|
4156
4152
|
forceMenu: !1,
|
|
4157
4153
|
skipResultModal: !1,
|
|
4158
4154
|
skipMenu: !1,
|
|
@@ -4167,7 +4163,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4167
4163
|
throw new Error("Invalid action id");
|
|
4168
4164
|
const c = H.map(
|
|
4169
4165
|
(I) => I.type === "telemetry" ? { ...I, value: JSON.stringify(I.value) } : I
|
|
4170
|
-
), w = P[z], R =
|
|
4166
|
+
), w = P[z], R = Al.compile(w.params), O = { selectors: c, ...ee };
|
|
4171
4167
|
let q = null;
|
|
4172
4168
|
if (_ && (q = {
|
|
4173
4169
|
timestamp: Hn().toISOString(),
|
|
@@ -4176,11 +4172,11 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4176
4172
|
}), Qn(o) || (q = {
|
|
4177
4173
|
...q ?? {},
|
|
4178
4174
|
...o
|
|
4179
|
-
}), $(!0), !R(O) ||
|
|
4180
|
-
if (k && !
|
|
4175
|
+
}), $(!0), !R(O) || Ae) {
|
|
4176
|
+
if (k && !Ae)
|
|
4181
4177
|
throw console.error(`Form is not valid (${R.errors.length} errors)`), new Error("Form is not completed");
|
|
4182
|
-
(l == null ? void 0 : l.id) === z && (console.error(`Form is not valid (${R.errors.length} errors)`),
|
|
4183
|
-
new CustomEvent(
|
|
4178
|
+
(l == null ? void 0 : l.id) === z && (console.error(`Form is not valid (${R.errors.length} errors)`), yt(
|
|
4179
|
+
new CustomEvent(pt, {
|
|
4184
4180
|
detail: {
|
|
4185
4181
|
message: i("action.error.validation"),
|
|
4186
4182
|
level: "error"
|
|
@@ -4194,7 +4190,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4194
4190
|
skipResultModal: p,
|
|
4195
4191
|
context: q,
|
|
4196
4192
|
onComplete: _e,
|
|
4197
|
-
onCancel:
|
|
4193
|
+
onCancel: Ke,
|
|
4198
4194
|
timeout: S
|
|
4199
4195
|
});
|
|
4200
4196
|
return;
|
|
@@ -4220,8 +4216,8 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4220
4216
|
{}
|
|
4221
4217
|
)
|
|
4222
4218
|
};
|
|
4223
|
-
}),
|
|
4224
|
-
new CustomEvent(
|
|
4219
|
+
}), yt(
|
|
4220
|
+
new CustomEvent(pt, {
|
|
4225
4221
|
detail: {
|
|
4226
4222
|
message: /* @__PURE__ */ W(se, { direction: "row", alignItems: "center", spacing: 0.5, width: "100%", children: [
|
|
4227
4223
|
/* @__PURE__ */ V(Pe, { children: I.summary }),
|
|
@@ -4243,8 +4239,8 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4243
4239
|
})
|
|
4244
4240
|
), I.outcome === "success" && m(null), I.outcome === "pending" && (h({ ...I, actionId: z, action: w, onComplete: _e }), p || g(!0), m(null)), I.format && (h({ ...I, actionId: z, action: w }), I.format !== "pivot" && !p ? g(!0) : window.open(I.output, "_blank", "noreferrer"));
|
|
4245
4241
|
} catch (I) {
|
|
4246
|
-
|
|
4247
|
-
new CustomEvent(
|
|
4242
|
+
yt(
|
|
4243
|
+
new CustomEvent(pt, {
|
|
4248
4244
|
detail: {
|
|
4249
4245
|
message: I.toString(),
|
|
4250
4246
|
level: "error"
|
|
@@ -4256,15 +4252,15 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4256
4252
|
}
|
|
4257
4253
|
},
|
|
4258
4254
|
[P, s, J, d == null ? void 0 : d.language, C, l == null ? void 0 : l.id, i]
|
|
4259
|
-
), ae =
|
|
4255
|
+
), ae = Re(
|
|
4260
4256
|
async (z, H) => {
|
|
4261
4257
|
try {
|
|
4262
4258
|
return await Ht.actions.status.get(z, H, {}, C);
|
|
4263
|
-
} catch (
|
|
4264
|
-
|
|
4265
|
-
new CustomEvent(
|
|
4259
|
+
} catch (ee) {
|
|
4260
|
+
yt(
|
|
4261
|
+
new CustomEvent(pt, {
|
|
4266
4262
|
detail: {
|
|
4267
|
-
message:
|
|
4263
|
+
message: ee.toString(),
|
|
4268
4264
|
level: "error"
|
|
4269
4265
|
}
|
|
4270
4266
|
})
|
|
@@ -4272,11 +4268,11 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4272
4268
|
}
|
|
4273
4269
|
},
|
|
4274
4270
|
[C]
|
|
4275
|
-
), me =
|
|
4271
|
+
), me = Re(() => {
|
|
4276
4272
|
var z;
|
|
4277
4273
|
(z = l == null ? void 0 : l.onCancel) == null || z.call(l), m(null), $(!1);
|
|
4278
|
-
}, [l
|
|
4279
|
-
(z, H,
|
|
4274
|
+
}, [l]), be = Re(
|
|
4275
|
+
(z, H, ee) => y[J(z, H, ee)] ?? [],
|
|
4280
4276
|
[y, J]
|
|
4281
4277
|
), ie = ke(
|
|
4282
4278
|
() => ({
|
|
@@ -4304,11 +4300,11 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4304
4300
|
)
|
|
4305
4301
|
] })
|
|
4306
4302
|
] });
|
|
4307
|
-
},
|
|
4303
|
+
}, Kl = () => Kn(Dr), ql = En.map((e) => ({
|
|
4308
4304
|
...e,
|
|
4309
4305
|
renderer: ({ ...t }) => /* @__PURE__ */ V(lt, { children: /* @__PURE__ */ V(e.renderer, { ...t }) })
|
|
4310
4306
|
})), zl = ({ runningActionData: e }) => {
|
|
4311
|
-
const { executeAction: t, cancelAction: r } =
|
|
4307
|
+
const { executeAction: t, cancelAction: r } = Kl(), { t: s } = Ce(ut, (v) => v.i18next), [n, a] = de(!1), [i, d] = de(null), [u, l] = de(e == null ? void 0 : e.params), [m, y] = de(!1), b = ke(
|
|
4312
4308
|
() => e != null && e.action ? { ...qn(e.action.params), ...e.action.extra_schema ?? {} } : null,
|
|
4313
4309
|
[e == null ? void 0 : e.action]
|
|
4314
4310
|
), E = ke(
|
|
@@ -4329,7 +4325,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e),
|
|
|
4329
4325
|
})
|
|
4330
4326
|
}),
|
|
4331
4327
|
[b == null ? void 0 : b.properties, b == null ? void 0 : b.required]
|
|
4332
|
-
), g =
|
|
4328
|
+
), g = Re(async () => {
|
|
4333
4329
|
try {
|
|
4334
4330
|
a(!0);
|
|
4335
4331
|
const v = {};
|
|
@@ -4458,5 +4454,5 @@ export {
|
|
|
4458
4454
|
wo as e,
|
|
4459
4455
|
Ml as f,
|
|
4460
4456
|
Dr as g,
|
|
4461
|
-
|
|
4457
|
+
Kl as u
|
|
4462
4458
|
};
|