workflow-editor 0.0.65-up → 0.0.66-up-rc1
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/lib/{401-082f153a.js → 401-80a0280c.js} +1 -1
- package/lib/{404-f95275e3.js → 404-0fe5eb35.js} +1 -1
- package/lib/{iframe-page-eac0213f.js → iframe-page-4b3ead36.js} +1 -1
- package/lib/{index-cd023a70.js → index-c035a556.js} +977 -935
- package/lib/{tab-content-iframe-index-2d8801b1.js → tab-content-iframe-index-8b4a9034.js} +1 -1
- package/lib/{tab-content-index-f83a413e.js → tab-content-index-c83389d3.js} +1 -1
- package/lib/{tache-subprocess-history-8dab30b9.js → tache-subprocess-history-d7268ee8.js} +1 -1
- package/lib/workflow-editor.css +1 -1
- package/lib/workflow-editor.js +1 -1
- package/lib/workflow-editor.umd.cjs +27 -27
- package/package.json +2 -2
- package/packages/plugins/formValidatorUtil.js +53 -19
|
@@ -206,8 +206,8 @@ function installModule(e, t, o, r, n) {
|
|
|
206
206
|
var m = s + d;
|
|
207
207
|
registerMutation(e, m, c, u);
|
|
208
208
|
}), r.forEachAction(function(c, d) {
|
|
209
|
-
var m = c.root ? d : s + d,
|
|
210
|
-
registerAction(e, m,
|
|
209
|
+
var m = c.root ? d : s + d, b = c.handler || c;
|
|
210
|
+
registerAction(e, m, b, u);
|
|
211
211
|
}), r.forEachGetter(function(c, d) {
|
|
212
212
|
var m = s + d;
|
|
213
213
|
registerGetter(e, m, c, u);
|
|
@@ -667,10 +667,10 @@ var Store = function e(t) {
|
|
|
667
667
|
var i = t.devtools;
|
|
668
668
|
this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new ModuleCollection(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = i;
|
|
669
669
|
var s = this, l = this, a = l.dispatch, u = l.commit;
|
|
670
|
-
this.dispatch = function(m,
|
|
671
|
-
return a.call(s, m,
|
|
672
|
-
}, this.commit = function(m,
|
|
673
|
-
return u.call(s, m,
|
|
670
|
+
this.dispatch = function(m, b) {
|
|
671
|
+
return a.call(s, m, b);
|
|
672
|
+
}, this.commit = function(m, b, C) {
|
|
673
|
+
return u.call(s, m, b, C);
|
|
674
674
|
}, this.strict = n;
|
|
675
675
|
var c = this._modules.root.state;
|
|
676
676
|
installModule(this, c, [], this._modules.root), resetStoreState(this, c), r.forEach(function(d) {
|
|
@@ -725,24 +725,24 @@ Store.prototype.dispatch = function(t, o) {
|
|
|
725
725
|
return new Promise(function(c, d) {
|
|
726
726
|
u.then(function(m) {
|
|
727
727
|
try {
|
|
728
|
-
r._actionSubscribers.filter(function(
|
|
729
|
-
return
|
|
730
|
-
}).forEach(function(
|
|
731
|
-
return
|
|
728
|
+
r._actionSubscribers.filter(function(b) {
|
|
729
|
+
return b.after;
|
|
730
|
+
}).forEach(function(b) {
|
|
731
|
+
return b.after(l, r.state);
|
|
732
732
|
});
|
|
733
|
-
} catch (
|
|
734
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(
|
|
733
|
+
} catch (b) {
|
|
734
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(b));
|
|
735
735
|
}
|
|
736
736
|
c(m);
|
|
737
737
|
}, function(m) {
|
|
738
738
|
try {
|
|
739
|
-
r._actionSubscribers.filter(function(
|
|
740
|
-
return
|
|
741
|
-
}).forEach(function(
|
|
742
|
-
return
|
|
739
|
+
r._actionSubscribers.filter(function(b) {
|
|
740
|
+
return b.error;
|
|
741
|
+
}).forEach(function(b) {
|
|
742
|
+
return b.error(l, r.state, m);
|
|
743
743
|
});
|
|
744
|
-
} catch (
|
|
745
|
-
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(
|
|
744
|
+
} catch (b) {
|
|
745
|
+
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(b));
|
|
746
746
|
}
|
|
747
747
|
d(m);
|
|
748
748
|
});
|
|
@@ -1014,7 +1014,7 @@ const RE_HTML_TAG = /<\/?[\w\s="/.':;#-\/]+>/, detectHtmlTag = (e) => RE_HTML_TA
|
|
|
1014
1014
|
function createScanner(e) {
|
|
1015
1015
|
const t = e;
|
|
1016
1016
|
let o = 0, r = 1, n = 1, i = 0;
|
|
1017
|
-
const s = (O) => t[O] === CHAR_CR && t[O + 1] === CHAR_LF, l = (O) => t[O] === CHAR_LF, a = (O) => t[O] === CHAR_PS, u = (O) => t[O] === CHAR_LS, c = (O) => s(O) || l(O) || a(O) || u(O), d = () => o, m = () => r,
|
|
1017
|
+
const s = (O) => t[O] === CHAR_CR && t[O + 1] === CHAR_LF, l = (O) => t[O] === CHAR_LF, a = (O) => t[O] === CHAR_PS, u = (O) => t[O] === CHAR_LS, c = (O) => s(O) || l(O) || a(O) || u(O), d = () => o, m = () => r, b = () => n, C = () => i, w = (O) => s(O) || a(O) || u(O) ? CHAR_LF : t[O], E = () => w(o), p = () => w(o + i);
|
|
1018
1018
|
function f() {
|
|
1019
1019
|
return i = 0, c(o) && (r++, n = 0), s(o) && o++, o++, n++, t[o];
|
|
1020
1020
|
}
|
|
@@ -1036,8 +1036,8 @@ function createScanner(e) {
|
|
|
1036
1036
|
return {
|
|
1037
1037
|
index: d,
|
|
1038
1038
|
line: m,
|
|
1039
|
-
column:
|
|
1040
|
-
peekOffset:
|
|
1039
|
+
column: b,
|
|
1040
|
+
peekOffset: C,
|
|
1041
1041
|
charAt: w,
|
|
1042
1042
|
currentChar: E,
|
|
1043
1043
|
currentPeek: p,
|
|
@@ -1063,27 +1063,27 @@ function createTokenizer(e, t = {}) {
|
|
|
1063
1063
|
inLinked: !1,
|
|
1064
1064
|
text: ""
|
|
1065
1065
|
}, u = () => a, { onError: c } = t;
|
|
1066
|
-
function d(N, T, I, ...
|
|
1067
|
-
const
|
|
1066
|
+
function d(N, T, I, ...M) {
|
|
1067
|
+
const F = u();
|
|
1068
1068
|
if (T.column += I, T.offset += I, c) {
|
|
1069
|
-
const W = o ? createLocation(
|
|
1069
|
+
const W = o ? createLocation(F.startLoc, T) : null, le = createCompileError(N, W, {
|
|
1070
1070
|
domain: ERROR_DOMAIN$3,
|
|
1071
|
-
args:
|
|
1071
|
+
args: M
|
|
1072
1072
|
});
|
|
1073
1073
|
c(le);
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
1076
|
function m(N, T, I) {
|
|
1077
1077
|
N.endLoc = i(), N.currentType = T;
|
|
1078
|
-
const
|
|
1079
|
-
return o && (
|
|
1078
|
+
const M = { type: T };
|
|
1079
|
+
return o && (M.loc = createLocation(N.startLoc, N.endLoc)), I != null && (M.value = I), M;
|
|
1080
1080
|
}
|
|
1081
|
-
const
|
|
1081
|
+
const b = (N) => m(
|
|
1082
1082
|
N,
|
|
1083
1083
|
14
|
|
1084
1084
|
/* TokenTypes.EOF */
|
|
1085
1085
|
);
|
|
1086
|
-
function
|
|
1086
|
+
function C(N, T) {
|
|
1087
1087
|
return N.currentChar() === T ? (N.next(), T) : (d(CompileErrorCodes.EXPECTED_TOKEN, i(), 0, T), "");
|
|
1088
1088
|
}
|
|
1089
1089
|
function w(N) {
|
|
@@ -1115,58 +1115,58 @@ function createTokenizer(e, t = {}) {
|
|
|
1115
1115
|
if (I !== 2)
|
|
1116
1116
|
return !1;
|
|
1117
1117
|
w(N);
|
|
1118
|
-
const
|
|
1119
|
-
return N.resetPeek(),
|
|
1118
|
+
const M = p(N.currentPeek());
|
|
1119
|
+
return N.resetPeek(), M;
|
|
1120
1120
|
}
|
|
1121
1121
|
function v(N, T) {
|
|
1122
1122
|
const { currentType: I } = T;
|
|
1123
1123
|
if (I !== 2)
|
|
1124
1124
|
return !1;
|
|
1125
1125
|
w(N);
|
|
1126
|
-
const
|
|
1127
|
-
return N.resetPeek(),
|
|
1126
|
+
const M = N.currentPeek() === "-" ? N.peek() : N.currentPeek(), F = f(M);
|
|
1127
|
+
return N.resetPeek(), F;
|
|
1128
1128
|
}
|
|
1129
1129
|
function k(N, T) {
|
|
1130
1130
|
const { currentType: I } = T;
|
|
1131
1131
|
if (I !== 2)
|
|
1132
1132
|
return !1;
|
|
1133
1133
|
w(N);
|
|
1134
|
-
const
|
|
1135
|
-
return N.resetPeek(),
|
|
1134
|
+
const M = N.currentPeek() === LITERAL_DELIMITER;
|
|
1135
|
+
return N.resetPeek(), M;
|
|
1136
1136
|
}
|
|
1137
1137
|
function $(N, T) {
|
|
1138
1138
|
const { currentType: I } = T;
|
|
1139
1139
|
if (I !== 8)
|
|
1140
1140
|
return !1;
|
|
1141
1141
|
w(N);
|
|
1142
|
-
const
|
|
1143
|
-
return N.resetPeek(),
|
|
1142
|
+
const M = N.currentPeek() === ".";
|
|
1143
|
+
return N.resetPeek(), M;
|
|
1144
1144
|
}
|
|
1145
1145
|
function O(N, T) {
|
|
1146
1146
|
const { currentType: I } = T;
|
|
1147
1147
|
if (I !== 9)
|
|
1148
1148
|
return !1;
|
|
1149
1149
|
w(N);
|
|
1150
|
-
const
|
|
1151
|
-
return N.resetPeek(),
|
|
1150
|
+
const M = p(N.currentPeek());
|
|
1151
|
+
return N.resetPeek(), M;
|
|
1152
1152
|
}
|
|
1153
1153
|
function x(N, T) {
|
|
1154
1154
|
const { currentType: I } = T;
|
|
1155
1155
|
if (!(I === 8 || I === 12))
|
|
1156
1156
|
return !1;
|
|
1157
1157
|
w(N);
|
|
1158
|
-
const
|
|
1159
|
-
return N.resetPeek(),
|
|
1158
|
+
const M = N.currentPeek() === ":";
|
|
1159
|
+
return N.resetPeek(), M;
|
|
1160
1160
|
}
|
|
1161
1161
|
function S(N, T) {
|
|
1162
1162
|
const { currentType: I } = T;
|
|
1163
1163
|
if (I !== 10)
|
|
1164
1164
|
return !1;
|
|
1165
|
-
const
|
|
1165
|
+
const M = () => {
|
|
1166
1166
|
const W = N.currentPeek();
|
|
1167
|
-
return W === "{" ? p(N.peek()) : W === "@" || W === "%" || W === "|" || W === ":" || W === "." || W === CHAR_SP || !W ? !1 : W === CHAR_LF ? (N.peek(),
|
|
1168
|
-
},
|
|
1169
|
-
return N.resetPeek(),
|
|
1167
|
+
return W === "{" ? p(N.peek()) : W === "@" || W === "%" || W === "|" || W === ":" || W === "." || W === CHAR_SP || !W ? !1 : W === CHAR_LF ? (N.peek(), M()) : p(W);
|
|
1168
|
+
}, F = M();
|
|
1169
|
+
return N.resetPeek(), F;
|
|
1170
1170
|
}
|
|
1171
1171
|
function B(N) {
|
|
1172
1172
|
w(N);
|
|
@@ -1181,11 +1181,11 @@ function createTokenizer(e, t = {}) {
|
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
1183
|
function L(N, T = !0) {
|
|
1184
|
-
const I = (
|
|
1184
|
+
const I = (F = !1, W = "", le = !1) => {
|
|
1185
1185
|
const ae = N.currentPeek();
|
|
1186
|
-
return ae === "{" ? W === "%" ? !1 :
|
|
1187
|
-
},
|
|
1188
|
-
return T && N.resetPeek(),
|
|
1186
|
+
return ae === "{" ? W === "%" ? !1 : F : ae === "@" || !ae ? W === "%" ? !0 : F : ae === "%" ? (N.peek(), I(F, "%", !0)) : ae === "|" ? W === "%" || le ? !0 : !(W === CHAR_SP || W === CHAR_LF) : ae === CHAR_SP ? (N.peek(), I(!0, CHAR_SP, le)) : ae === CHAR_LF ? (N.peek(), I(!0, CHAR_LF, le)) : !0;
|
|
1187
|
+
}, M = I();
|
|
1188
|
+
return T && N.resetPeek(), M;
|
|
1189
1189
|
}
|
|
1190
1190
|
function G(N, T) {
|
|
1191
1191
|
const I = N.currentChar();
|
|
@@ -1193,26 +1193,26 @@ function createTokenizer(e, t = {}) {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
function ne(N) {
|
|
1195
1195
|
return G(N, (I) => {
|
|
1196
|
-
const
|
|
1197
|
-
return
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1196
|
+
const M = I.charCodeAt(0);
|
|
1197
|
+
return M >= 97 && M <= 122 || // a-z
|
|
1198
|
+
M >= 65 && M <= 90 || // A-Z
|
|
1199
|
+
M >= 48 && M <= 57 || // 0-9
|
|
1200
|
+
M === 95 || // _
|
|
1201
|
+
M === 36;
|
|
1202
1202
|
});
|
|
1203
1203
|
}
|
|
1204
1204
|
function re(N) {
|
|
1205
1205
|
return G(N, (I) => {
|
|
1206
|
-
const
|
|
1207
|
-
return
|
|
1206
|
+
const M = I.charCodeAt(0);
|
|
1207
|
+
return M >= 48 && M <= 57;
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
1210
|
function te(N) {
|
|
1211
1211
|
return G(N, (I) => {
|
|
1212
|
-
const
|
|
1213
|
-
return
|
|
1214
|
-
|
|
1215
|
-
|
|
1212
|
+
const M = I.charCodeAt(0);
|
|
1213
|
+
return M >= 48 && M <= 57 || // 0-9
|
|
1214
|
+
M >= 65 && M <= 70 || // A-F
|
|
1215
|
+
M >= 97 && M <= 102;
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
1218
|
function j(N) {
|
|
@@ -1263,13 +1263,13 @@ function createTokenizer(e, t = {}) {
|
|
|
1263
1263
|
return N.currentChar() === "-" ? (N.next(), T += `-${j(N)}`) : T += j(N), N.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), T;
|
|
1264
1264
|
}
|
|
1265
1265
|
function J(N) {
|
|
1266
|
-
E(N),
|
|
1266
|
+
E(N), C(N, "'");
|
|
1267
1267
|
let T = "", I = "";
|
|
1268
|
-
const
|
|
1269
|
-
for (; T = G(N,
|
|
1268
|
+
const M = (W) => W !== LITERAL_DELIMITER && W !== CHAR_LF;
|
|
1269
|
+
for (; T = G(N, M); )
|
|
1270
1270
|
T === "\\" ? I += se(N) : I += T;
|
|
1271
|
-
const
|
|
1272
|
-
return
|
|
1271
|
+
const F = N.currentChar();
|
|
1272
|
+
return F === CHAR_LF || F === EOF ? (d(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), F === CHAR_LF && (N.next(), C(N, "'")), I) : (C(N, "'"), I);
|
|
1273
1273
|
}
|
|
1274
1274
|
function se(N) {
|
|
1275
1275
|
const T = N.currentChar();
|
|
@@ -1286,23 +1286,23 @@ function createTokenizer(e, t = {}) {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
function X(N, T, I) {
|
|
1289
|
-
|
|
1290
|
-
let
|
|
1291
|
-
for (let
|
|
1289
|
+
C(N, T);
|
|
1290
|
+
let M = "";
|
|
1291
|
+
for (let F = 0; F < I; F++) {
|
|
1292
1292
|
const W = te(N);
|
|
1293
1293
|
if (!W) {
|
|
1294
|
-
d(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${T}${
|
|
1294
|
+
d(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${T}${M}${N.currentChar()}`);
|
|
1295
1295
|
break;
|
|
1296
1296
|
}
|
|
1297
|
-
|
|
1297
|
+
M += W;
|
|
1298
1298
|
}
|
|
1299
|
-
return `\\${T}${
|
|
1299
|
+
return `\\${T}${M}`;
|
|
1300
1300
|
}
|
|
1301
1301
|
function ie(N) {
|
|
1302
1302
|
E(N);
|
|
1303
1303
|
let T = "", I = "";
|
|
1304
|
-
const
|
|
1305
|
-
for (; T = G(N,
|
|
1304
|
+
const M = (F) => F !== "{" && F !== "}" && F !== CHAR_SP && F !== CHAR_LF;
|
|
1305
|
+
for (; T = G(N, M); )
|
|
1306
1306
|
I += T;
|
|
1307
1307
|
return I;
|
|
1308
1308
|
}
|
|
@@ -1312,16 +1312,16 @@ function createTokenizer(e, t = {}) {
|
|
|
1312
1312
|
I += T;
|
|
1313
1313
|
return I;
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1316
|
-
const T = (I = !1,
|
|
1317
|
-
const
|
|
1318
|
-
return
|
|
1315
|
+
function y(N) {
|
|
1316
|
+
const T = (I = !1, M) => {
|
|
1317
|
+
const F = N.currentChar();
|
|
1318
|
+
return F === "{" || F === "%" || F === "@" || F === "|" || F === "(" || F === ")" || !F || F === CHAR_SP ? M : F === CHAR_LF || F === DOT ? (M += F, N.next(), T(I, M)) : (M += F, N.next(), T(!0, M));
|
|
1319
1319
|
};
|
|
1320
1320
|
return T(!1, "");
|
|
1321
1321
|
}
|
|
1322
1322
|
function _(N) {
|
|
1323
1323
|
E(N);
|
|
1324
|
-
const T =
|
|
1324
|
+
const T = C(
|
|
1325
1325
|
N,
|
|
1326
1326
|
"|"
|
|
1327
1327
|
/* TokenChars.Pipe */
|
|
@@ -1346,20 +1346,20 @@ function createTokenizer(e, t = {}) {
|
|
|
1346
1346
|
/* TokenChars.BraceRight */
|
|
1347
1347
|
), T.braceNest--, T.braceNest > 0 && E(N), T.inLinked && T.braceNest === 0 && (T.inLinked = !1), I;
|
|
1348
1348
|
case "@":
|
|
1349
|
-
return T.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), I = V(N, T) ||
|
|
1349
|
+
return T.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), I = V(N, T) || b(T), T.braceNest = 0, I;
|
|
1350
1350
|
default:
|
|
1351
|
-
let
|
|
1351
|
+
let F = !0, W = !0, le = !0;
|
|
1352
1352
|
if (B(N))
|
|
1353
1353
|
return T.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), I = m(T, 1, _(N)), T.braceNest = 0, T.inLinked = !1, I;
|
|
1354
1354
|
if (T.braceNest > 0 && (T.currentType === 5 || T.currentType === 6 || T.currentType === 7))
|
|
1355
1355
|
return d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, i(), 0), T.braceNest = 0, R(N, T);
|
|
1356
|
-
if (
|
|
1356
|
+
if (F = g(N, T))
|
|
1357
1357
|
return I = m(T, 5, q(N)), E(N), I;
|
|
1358
1358
|
if (W = v(N, T))
|
|
1359
1359
|
return I = m(T, 6, Q(N)), E(N), I;
|
|
1360
1360
|
if (le = k(N, T))
|
|
1361
1361
|
return I = m(T, 7, J(N)), E(N), I;
|
|
1362
|
-
if (!
|
|
1362
|
+
if (!F && !W && !le)
|
|
1363
1363
|
return I = m(T, 13, ie(N)), d(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, I.value), E(N), I;
|
|
1364
1364
|
break;
|
|
1365
1365
|
}
|
|
@@ -1367,16 +1367,16 @@ function createTokenizer(e, t = {}) {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
function V(N, T) {
|
|
1369
1369
|
const { currentType: I } = T;
|
|
1370
|
-
let
|
|
1371
|
-
const
|
|
1372
|
-
switch ((I === 8 || I === 9 || I === 12 || I === 10) && (
|
|
1370
|
+
let M = null;
|
|
1371
|
+
const F = N.currentChar();
|
|
1372
|
+
switch ((I === 8 || I === 9 || I === 12 || I === 10) && (F === CHAR_LF || F === CHAR_SP) && d(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), F) {
|
|
1373
1373
|
case "@":
|
|
1374
|
-
return N.next(),
|
|
1374
|
+
return N.next(), M = m(
|
|
1375
1375
|
T,
|
|
1376
1376
|
8,
|
|
1377
1377
|
"@"
|
|
1378
1378
|
/* TokenChars.LinkedAlias */
|
|
1379
|
-
), T.inLinked = !0,
|
|
1379
|
+
), T.inLinked = !0, M;
|
|
1380
1380
|
case ".":
|
|
1381
1381
|
return E(N), N.next(), m(
|
|
1382
1382
|
T,
|
|
@@ -1392,7 +1392,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1392
1392
|
/* TokenChars.LinkedDelimiter */
|
|
1393
1393
|
);
|
|
1394
1394
|
default:
|
|
1395
|
-
return B(N) ? (
|
|
1395
|
+
return B(N) ? (M = m(T, 1, _(N)), T.braceNest = 0, T.inLinked = !1, M) : $(N, T) || x(N, T) ? (E(N), V(N, T)) : O(N, T) ? (E(N), m(T, 12, oe(N))) : S(N, T) ? (E(N), F === "{" ? P(N, T) || M : m(T, 11, y(N))) : (I === 8 && d(CompileErrorCodes.INVALID_LINKED_FORMAT, i(), 0), T.braceNest = 0, T.inLinked = !1, R(N, T));
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
function R(N, T) {
|
|
@@ -1401,12 +1401,12 @@ function createTokenizer(e, t = {}) {
|
|
|
1401
1401
|
/* TokenTypes.EOF */
|
|
1402
1402
|
};
|
|
1403
1403
|
if (T.braceNest > 0)
|
|
1404
|
-
return P(N, T) ||
|
|
1404
|
+
return P(N, T) || b(T);
|
|
1405
1405
|
if (T.inLinked)
|
|
1406
|
-
return V(N, T) ||
|
|
1406
|
+
return V(N, T) || b(T);
|
|
1407
1407
|
switch (N.currentChar()) {
|
|
1408
1408
|
case "{":
|
|
1409
|
-
return P(N, T) ||
|
|
1409
|
+
return P(N, T) || b(T);
|
|
1410
1410
|
case "}":
|
|
1411
1411
|
return d(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, i(), 0), N.next(), m(
|
|
1412
1412
|
T,
|
|
@@ -1415,12 +1415,12 @@ function createTokenizer(e, t = {}) {
|
|
|
1415
1415
|
/* TokenChars.BraceRight */
|
|
1416
1416
|
);
|
|
1417
1417
|
case "@":
|
|
1418
|
-
return V(N, T) ||
|
|
1418
|
+
return V(N, T) || b(T);
|
|
1419
1419
|
default:
|
|
1420
1420
|
if (B(N))
|
|
1421
1421
|
return I = m(T, 1, _(N)), T.braceNest = 0, T.inLinked = !1, I;
|
|
1422
|
-
const { isModulo:
|
|
1423
|
-
if (
|
|
1422
|
+
const { isModulo: F, hasSpace: W } = H(N);
|
|
1423
|
+
if (F)
|
|
1424
1424
|
return W ? m(T, 0, Y(N)) : m(T, 4, z(N));
|
|
1425
1425
|
if (L(N))
|
|
1426
1426
|
return m(T, 0, Y(N));
|
|
@@ -1429,8 +1429,8 @@ function createTokenizer(e, t = {}) {
|
|
|
1429
1429
|
return I;
|
|
1430
1430
|
}
|
|
1431
1431
|
function U() {
|
|
1432
|
-
const { currentType: N, offset: T, startLoc: I, endLoc:
|
|
1433
|
-
return a.lastType = N, a.lastOffset = T, a.lastStartLoc = I, a.lastEndLoc =
|
|
1432
|
+
const { currentType: N, offset: T, startLoc: I, endLoc: M } = a;
|
|
1433
|
+
return a.lastType = N, a.lastOffset = T, a.lastStartLoc = I, a.lastEndLoc = M, a.offset = n(), a.startLoc = i(), r.currentChar() === EOF ? m(
|
|
1434
1434
|
a,
|
|
1435
1435
|
14
|
|
1436
1436
|
/* TokenTypes.EOF */
|
|
@@ -1536,7 +1536,7 @@ function createParser(e = {}) {
|
|
|
1536
1536
|
node: g
|
|
1537
1537
|
};
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1539
|
+
function b(p) {
|
|
1540
1540
|
const f = p.context(), g = f.currentType === 1 ? p.currentOffset() : f.offset, v = f.currentType === 1 ? f.endLoc : f.startLoc, k = n(2, g, v);
|
|
1541
1541
|
k.items = [];
|
|
1542
1542
|
let $ = null;
|
|
@@ -1564,20 +1564,20 @@ function createParser(e = {}) {
|
|
|
1564
1564
|
const O = f.currentType === 1 ? f.lastOffset : p.currentOffset(), x = f.currentType === 1 ? f.lastEndLoc : p.currentPosition();
|
|
1565
1565
|
return i(k, O, x), k;
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1567
|
+
function C(p, f, g, v) {
|
|
1568
1568
|
const k = p.context();
|
|
1569
1569
|
let $ = v.items.length === 0;
|
|
1570
1570
|
const O = n(1, f, g);
|
|
1571
1571
|
O.cases = [], O.cases.push(v);
|
|
1572
1572
|
do {
|
|
1573
|
-
const x =
|
|
1573
|
+
const x = b(p);
|
|
1574
1574
|
$ || ($ = x.items.length === 0), O.cases.push(x);
|
|
1575
1575
|
} while (k.currentType !== 14);
|
|
1576
1576
|
return $ && r(p, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, g, 0), i(O, p.currentOffset(), p.currentPosition()), O;
|
|
1577
1577
|
}
|
|
1578
1578
|
function w(p) {
|
|
1579
|
-
const f = p.context(), { offset: g, startLoc: v } = f, k =
|
|
1580
|
-
return f.currentType === 14 ? k :
|
|
1579
|
+
const f = p.context(), { offset: g, startLoc: v } = f, k = b(p);
|
|
1580
|
+
return f.currentType === 14 ? k : C(p, g, v, k);
|
|
1581
1581
|
}
|
|
1582
1582
|
function E(p) {
|
|
1583
1583
|
const f = createTokenizer(p, assign$2({}, e)), g = f.context(), v = n(0, g.offset, g.startLoc);
|
|
@@ -1752,7 +1752,7 @@ function createCodeGenerator(e, t) {
|
|
|
1752
1752
|
const p = --l.indentLevel;
|
|
1753
1753
|
E && c(p);
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function b() {
|
|
1756
1756
|
c(l.indentLevel);
|
|
1757
1757
|
}
|
|
1758
1758
|
return {
|
|
@@ -1760,7 +1760,7 @@ function createCodeGenerator(e, t) {
|
|
|
1760
1760
|
push: u,
|
|
1761
1761
|
indent: d,
|
|
1762
1762
|
deindent: m,
|
|
1763
|
-
newline:
|
|
1763
|
+
newline: b,
|
|
1764
1764
|
helper: (E) => `_${E}`,
|
|
1765
1765
|
needIndent: () => l.needIndent
|
|
1766
1766
|
};
|
|
@@ -2119,16 +2119,16 @@ function parse(e) {
|
|
|
2119
2119
|
]();
|
|
2120
2120
|
}
|
|
2121
2121
|
};
|
|
2122
|
-
function
|
|
2123
|
-
const
|
|
2124
|
-
if (r === 5 &&
|
|
2125
|
-
return o++, l = "\\" +
|
|
2122
|
+
function b() {
|
|
2123
|
+
const C = e[o + 1];
|
|
2124
|
+
if (r === 5 && C === "'" || r === 6 && C === '"')
|
|
2125
|
+
return o++, l = "\\" + C, m[
|
|
2126
2126
|
0
|
|
2127
2127
|
/* Actions.APPEND */
|
|
2128
2128
|
](), !0;
|
|
2129
2129
|
}
|
|
2130
2130
|
for (; r !== null; )
|
|
2131
|
-
if (o++, i = e[o], !(i === "\\" &&
|
|
2131
|
+
if (o++, i = e[o], !(i === "\\" && b())) {
|
|
2132
2132
|
if (a = getPathCharType(i), d = pathStateMachine[r], u = d[a] || d.l || 8, u === 8 || (r = u[0], u[1] !== void 0 && (c = m[u[1]], c && (l = i, c() === !1))))
|
|
2133
2133
|
return;
|
|
2134
2134
|
if (r === 7)
|
|
@@ -2174,7 +2174,7 @@ function createMessageContext(e = {}) {
|
|
|
2174
2174
|
const f = isFunction$3(e.messages) ? e.messages(p) : isObject$4(e.messages) ? e.messages[p] : !1;
|
|
2175
2175
|
return f || (e.parent ? e.parent.message(p) : DEFAULT_MESSAGE);
|
|
2176
2176
|
}
|
|
2177
|
-
const d = (p) => e.modifiers ? e.modifiers[p] : DEFAULT_MODIFIER, m = isPlainObject$1(e.processor) && isFunction$3(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE,
|
|
2177
|
+
const d = (p) => e.modifiers ? e.modifiers[p] : DEFAULT_MODIFIER, m = isPlainObject$1(e.processor) && isFunction$3(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE, b = isPlainObject$1(e.processor) && isFunction$3(e.processor.interpolate) ? e.processor.interpolate : DEFAULT_INTERPOLATE, C = isPlainObject$1(e.processor) && isString$5(e.processor.type) ? e.processor.type : DEFAULT_MESSAGE_DATA_TYPE, E = {
|
|
2178
2178
|
list: l,
|
|
2179
2179
|
named: u,
|
|
2180
2180
|
plural: i,
|
|
@@ -2189,8 +2189,8 @@ function createMessageContext(e = {}) {
|
|
|
2189
2189
|
return $ ? d($)(x, k) : x;
|
|
2190
2190
|
},
|
|
2191
2191
|
message: c,
|
|
2192
|
-
type:
|
|
2193
|
-
interpolate:
|
|
2192
|
+
type: C,
|
|
2193
|
+
interpolate: b,
|
|
2194
2194
|
normalize: m,
|
|
2195
2195
|
values: assign$3({}, s, a)
|
|
2196
2196
|
};
|
|
@@ -2319,7 +2319,7 @@ const setFallbackContext = (e) => {
|
|
|
2319
2319
|
}, getFallbackContext = () => _fallbackContext;
|
|
2320
2320
|
let _cid = 0;
|
|
2321
2321
|
function createCoreContext(e = {}) {
|
|
2322
|
-
const t = isFunction$3(e.onWarn) ? e.onWarn : warn$1, o = isString$5(e.version) ? e.version : VERSION$2, r = isString$5(e.locale) || isFunction$3(e.locale) ? e.locale : DEFAULT_LOCALE, n = isFunction$3(r) ? DEFAULT_LOCALE : r, i = isArray$7(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$5(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = isPlainObject$1(e.messages) ? e.messages : { [n]: {} }, l = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, a = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [n]: {} }, u = assign$3({}, e.modifiers || {}, getDefaultLinkedModifiers()), c = e.pluralRules || {}, d = isFunction$3(e.missing) ? e.missing : null, m = isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0,
|
|
2322
|
+
const t = isFunction$3(e.onWarn) ? e.onWarn : warn$1, o = isString$5(e.version) ? e.version : VERSION$2, r = isString$5(e.locale) || isFunction$3(e.locale) ? e.locale : DEFAULT_LOCALE, n = isFunction$3(r) ? DEFAULT_LOCALE : r, i = isArray$7(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$5(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = isPlainObject$1(e.messages) ? e.messages : { [n]: {} }, l = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, a = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [n]: {} }, u = assign$3({}, e.modifiers || {}, getDefaultLinkedModifiers()), c = e.pluralRules || {}, d = isFunction$3(e.missing) ? e.missing : null, m = isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0, b = isBoolean$1(e.fallbackWarn) || isRegExp$1(e.fallbackWarn) ? e.fallbackWarn : !0, C = !!e.fallbackFormat, w = !!e.unresolving, E = isFunction$3(e.postTranslation) ? e.postTranslation : null, p = isPlainObject$1(e.processor) ? e.processor : null, f = isBoolean$1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, g = !!e.escapeParameter, v = isFunction$3(e.messageCompiler) ? e.messageCompiler : _compiler;
|
|
2323
2323
|
process.env.NODE_ENV !== "production" && isFunction$3(e.messageCompiler) && warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2324
2324
|
const k = isFunction$3(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, $ = isFunction$3(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, O = isObject$4(e.fallbackContext) ? e.fallbackContext : void 0, x = e, S = isObject$4(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), B = isObject$4(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), H = isObject$4(x.__meta) ? x.__meta : {};
|
|
2325
2325
|
_cid++;
|
|
@@ -2333,8 +2333,8 @@ function createCoreContext(e = {}) {
|
|
|
2333
2333
|
pluralRules: c,
|
|
2334
2334
|
missing: d,
|
|
2335
2335
|
missingWarn: m,
|
|
2336
|
-
fallbackWarn:
|
|
2337
|
-
fallbackFormat:
|
|
2336
|
+
fallbackWarn: b,
|
|
2337
|
+
fallbackFormat: C,
|
|
2338
2338
|
unresolving: w,
|
|
2339
2339
|
postTranslation: E,
|
|
2340
2340
|
processor: p,
|
|
@@ -2496,14 +2496,14 @@ function compile(e, t) {
|
|
|
2496
2496
|
}
|
|
2497
2497
|
const NOOP_MESSAGE_FUNCTION = () => "", isMessageFunction = (e) => isFunction$3(e);
|
|
2498
2498
|
function translate$1(e, ...t) {
|
|
2499
|
-
const { fallbackFormat: o, postTranslation: r, unresolving: n, messageCompiler: i, fallbackLocale: s, messages: l } = e, [a, u] = parseTranslateArgs(...t), c = isBoolean$1(u.missingWarn) ? u.missingWarn : e.missingWarn, d = isBoolean$1(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, m = isBoolean$1(u.escapeParameter) ? u.escapeParameter : e.escapeParameter,
|
|
2499
|
+
const { fallbackFormat: o, postTranslation: r, unresolving: n, messageCompiler: i, fallbackLocale: s, messages: l } = e, [a, u] = parseTranslateArgs(...t), c = isBoolean$1(u.missingWarn) ? u.missingWarn : e.missingWarn, d = isBoolean$1(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, m = isBoolean$1(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, b = !!u.resolvedMessage, C = isString$5(u.default) || isBoolean$1(u.default) ? isBoolean$1(u.default) ? i ? a : () => a : u.default : o ? i ? a : () => a : "", w = o || C !== "", E = getLocale(e, u);
|
|
2500
2500
|
m && escapeParams(u);
|
|
2501
|
-
let [p, f, g] =
|
|
2501
|
+
let [p, f, g] = b ? [
|
|
2502
2502
|
a,
|
|
2503
2503
|
E,
|
|
2504
2504
|
l[E] || {}
|
|
2505
2505
|
] : resolveMessageFormat(e, a, E, s, d, c), v = p, k = a;
|
|
2506
|
-
if (!
|
|
2506
|
+
if (!b && !(isString$5(v) || isMessageAST(v) || isMessageFunction(v)) && w && (v = C, k = v), !b && (!(isString$5(v) || isMessageAST(v) || isMessageFunction(v)) || !isString$5(f)))
|
|
2507
2507
|
return n ? NOT_REOSLVED : a;
|
|
2508
2508
|
if (process.env.NODE_ENV !== "production" && isString$5(v) && e.messageCompiler == null)
|
|
2509
2509
|
return warn$1(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${a}'.`), a;
|
|
@@ -2533,7 +2533,7 @@ function escapeParams(e) {
|
|
|
2533
2533
|
}
|
|
2534
2534
|
function resolveMessageFormat(e, t, o, r, n, i) {
|
|
2535
2535
|
const { messages: s, onWarn: l, messageResolver: a, localeFallbacker: u } = e, c = u(e, r, o);
|
|
2536
|
-
let d = {}, m,
|
|
2536
|
+
let d = {}, m, b = null, C = o, w = null;
|
|
2537
2537
|
const E = "translate";
|
|
2538
2538
|
for (let p = 0; p < c.length; p++) {
|
|
2539
2539
|
if (m = w = c[p], process.env.NODE_ENV !== "production" && o !== m && isTranslateFallbackWarn(n, t) && l(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
|
|
@@ -2544,24 +2544,24 @@ function resolveMessageFormat(e, t, o, r, n, i) {
|
|
|
2544
2544
|
$ && $.emit("fallback", {
|
|
2545
2545
|
type: E,
|
|
2546
2546
|
key: t,
|
|
2547
|
-
from:
|
|
2547
|
+
from: C,
|
|
2548
2548
|
to: w,
|
|
2549
2549
|
groupId: `${E}:${t}`
|
|
2550
2550
|
});
|
|
2551
2551
|
}
|
|
2552
2552
|
d = s[m] || {};
|
|
2553
2553
|
let f = null, g, v;
|
|
2554
|
-
if (process.env.NODE_ENV !== "production" && inBrowser && (f = window.performance.now(), g = "intlify-message-resolve-start", v = "intlify-message-resolve-end", mark && mark(g)), (
|
|
2554
|
+
if (process.env.NODE_ENV !== "production" && inBrowser && (f = window.performance.now(), g = "intlify-message-resolve-start", v = "intlify-message-resolve-end", mark && mark(g)), (b = a(d, t)) === null && (b = d[t]), process.env.NODE_ENV !== "production" && inBrowser) {
|
|
2555
2555
|
const $ = window.performance.now(), O = e.__v_emitter;
|
|
2556
|
-
O && f &&
|
|
2556
|
+
O && f && b && O.emit("message-resolve", {
|
|
2557
2557
|
type: "message-resolve",
|
|
2558
2558
|
key: t,
|
|
2559
|
-
message:
|
|
2559
|
+
message: b,
|
|
2560
2560
|
time: $ - f,
|
|
2561
2561
|
groupId: `${E}:${t}`
|
|
2562
2562
|
}), g && v && mark && measure && (mark(v), measure("intlify message resolve", g, v));
|
|
2563
2563
|
}
|
|
2564
|
-
if (isString$5(
|
|
2564
|
+
if (isString$5(b) || isMessageAST(b) || isMessageFunction(b))
|
|
2565
2565
|
break;
|
|
2566
2566
|
const k = handleMissing(
|
|
2567
2567
|
e,
|
|
@@ -2571,9 +2571,9 @@ function resolveMessageFormat(e, t, o, r, n, i) {
|
|
|
2571
2571
|
i,
|
|
2572
2572
|
E
|
|
2573
2573
|
);
|
|
2574
|
-
k !== t && (
|
|
2574
|
+
k !== t && (b = k), C = w;
|
|
2575
2575
|
}
|
|
2576
|
-
return [
|
|
2576
|
+
return [b, m, d];
|
|
2577
2577
|
}
|
|
2578
2578
|
function compileMessageFormat(e, t, o, r, n, i) {
|
|
2579
2579
|
const { messageCompiler: s, warnHtmlMessage: l } = e;
|
|
@@ -2589,8 +2589,8 @@ function compileMessageFormat(e, t, o, r, n, i) {
|
|
|
2589
2589
|
process.env.NODE_ENV !== "production" && inBrowser && (a = window.performance.now(), u = "intlify-message-compilation-start", c = "intlify-message-compilation-end", mark && mark(u));
|
|
2590
2590
|
const d = s(r, getCompileContext(e, o, n, r, l, i));
|
|
2591
2591
|
if (process.env.NODE_ENV !== "production" && inBrowser) {
|
|
2592
|
-
const m = window.performance.now(),
|
|
2593
|
-
|
|
2592
|
+
const m = window.performance.now(), b = e.__v_emitter;
|
|
2593
|
+
b && a && b.emit("message-compilation", {
|
|
2594
2594
|
type: "message-compilation",
|
|
2595
2595
|
message: r,
|
|
2596
2596
|
time: m - a,
|
|
@@ -2654,20 +2654,20 @@ function getMessageContextOptions(e, t, o, r) {
|
|
|
2654
2654
|
locale: t,
|
|
2655
2655
|
modifiers: n,
|
|
2656
2656
|
pluralRules: i,
|
|
2657
|
-
messages: (
|
|
2658
|
-
let
|
|
2659
|
-
if (
|
|
2660
|
-
const [, , w] = resolveMessageFormat(c,
|
|
2661
|
-
|
|
2657
|
+
messages: (b) => {
|
|
2658
|
+
let C = s(o, b);
|
|
2659
|
+
if (C == null && c) {
|
|
2660
|
+
const [, , w] = resolveMessageFormat(c, b, t, l, a, u);
|
|
2661
|
+
C = s(w, b);
|
|
2662
2662
|
}
|
|
2663
|
-
if (isString$5(
|
|
2663
|
+
if (isString$5(C) || isMessageAST(C)) {
|
|
2664
2664
|
let w = !1;
|
|
2665
|
-
const p = compileMessageFormat(e,
|
|
2665
|
+
const p = compileMessageFormat(e, b, t, C, b, () => {
|
|
2666
2666
|
w = !0;
|
|
2667
2667
|
});
|
|
2668
2668
|
return w ? NOOP_MESSAGE_FUNCTION : p;
|
|
2669
2669
|
} else
|
|
2670
|
-
return isMessageFunction(
|
|
2670
|
+
return isMessageFunction(C) ? C : NOOP_MESSAGE_FUNCTION;
|
|
2671
2671
|
}
|
|
2672
2672
|
};
|
|
2673
2673
|
return e.processor && (m.processor = e.processor), r.list && (m.list = r.list), r.named && (m.named = r.named), isNumber$3(r.plural) && (m.pluralIndex = r.plural), m;
|
|
@@ -2680,7 +2680,7 @@ function datetime(e, ...t) {
|
|
|
2680
2680
|
const { datetimeFormats: o, unresolving: r, fallbackLocale: n, onWarn: i, localeFallbacker: s } = e, { __datetimeFormatters: l } = e;
|
|
2681
2681
|
if (process.env.NODE_ENV !== "production" && !Availabilities.dateTimeFormat)
|
|
2682
2682
|
return i(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)), MISSING_RESOLVE_VALUE;
|
|
2683
|
-
const [a, u, c, d] = parseDateTimeArgs(...t), m = isBoolean$1(c.missingWarn) ? c.missingWarn : e.missingWarn,
|
|
2683
|
+
const [a, u, c, d] = parseDateTimeArgs(...t), m = isBoolean$1(c.missingWarn) ? c.missingWarn : e.missingWarn, b = isBoolean$1(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, C = !!c.part, w = getLocale(e, c), E = s(
|
|
2684
2684
|
e,
|
|
2685
2685
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2686
2686
|
n,
|
|
@@ -2691,7 +2691,7 @@ function datetime(e, ...t) {
|
|
|
2691
2691
|
let p = {}, f, g = null, v = w, k = null;
|
|
2692
2692
|
const $ = "datetime format";
|
|
2693
2693
|
for (let S = 0; S < E.length; S++) {
|
|
2694
|
-
if (f = k = E[S], process.env.NODE_ENV !== "production" && w !== f && isTranslateFallbackWarn(
|
|
2694
|
+
if (f = k = E[S], process.env.NODE_ENV !== "production" && w !== f && isTranslateFallbackWarn(b, a) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
|
2695
2695
|
key: a,
|
|
2696
2696
|
target: f
|
|
2697
2697
|
})), process.env.NODE_ENV !== "production" && w !== f) {
|
|
@@ -2713,7 +2713,7 @@ function datetime(e, ...t) {
|
|
|
2713
2713
|
let O = `${f}__${a}`;
|
|
2714
2714
|
isEmptyObject(d) || (O = `${O}__${JSON.stringify(d)}`);
|
|
2715
2715
|
let x = l.get(O);
|
|
2716
|
-
return x || (x = new Intl.DateTimeFormat(f, assign$3({}, g, d)), l.set(O, x)),
|
|
2716
|
+
return x || (x = new Intl.DateTimeFormat(f, assign$3({}, g, d)), l.set(O, x)), C ? x.formatToParts(u) : x.format(u);
|
|
2717
2717
|
}
|
|
2718
2718
|
const DATETIME_FORMAT_OPTIONS_KEYS = [
|
|
2719
2719
|
"localeMatcher",
|
|
@@ -2774,7 +2774,7 @@ function number$1(e, ...t) {
|
|
|
2774
2774
|
const { numberFormats: o, unresolving: r, fallbackLocale: n, onWarn: i, localeFallbacker: s } = e, { __numberFormatters: l } = e;
|
|
2775
2775
|
if (process.env.NODE_ENV !== "production" && !Availabilities.numberFormat)
|
|
2776
2776
|
return i(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)), MISSING_RESOLVE_VALUE;
|
|
2777
|
-
const [a, u, c, d] = parseNumberArgs(...t), m = isBoolean$1(c.missingWarn) ? c.missingWarn : e.missingWarn,
|
|
2777
|
+
const [a, u, c, d] = parseNumberArgs(...t), m = isBoolean$1(c.missingWarn) ? c.missingWarn : e.missingWarn, b = isBoolean$1(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, C = !!c.part, w = getLocale(e, c), E = s(
|
|
2778
2778
|
e,
|
|
2779
2779
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2780
2780
|
n,
|
|
@@ -2785,7 +2785,7 @@ function number$1(e, ...t) {
|
|
|
2785
2785
|
let p = {}, f, g = null, v = w, k = null;
|
|
2786
2786
|
const $ = "number format";
|
|
2787
2787
|
for (let S = 0; S < E.length; S++) {
|
|
2788
|
-
if (f = k = E[S], process.env.NODE_ENV !== "production" && w !== f && isTranslateFallbackWarn(
|
|
2788
|
+
if (f = k = E[S], process.env.NODE_ENV !== "production" && w !== f && isTranslateFallbackWarn(b, a) && i(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2789
2789
|
key: a,
|
|
2790
2790
|
target: f
|
|
2791
2791
|
})), process.env.NODE_ENV !== "production" && w !== f) {
|
|
@@ -2807,7 +2807,7 @@ function number$1(e, ...t) {
|
|
|
2807
2807
|
let O = `${f}__${a}`;
|
|
2808
2808
|
isEmptyObject(d) || (O = `${O}__${JSON.stringify(d)}`);
|
|
2809
2809
|
let x = l.get(O);
|
|
2810
|
-
return x || (x = new Intl.NumberFormat(f, assign$3({}, g, d)), l.set(O, x)),
|
|
2810
|
+
return x || (x = new Intl.NumberFormat(f, assign$3({}, g, d)), l.set(O, x)), C ? x.formatToParts(u) : x.format(u);
|
|
2811
2811
|
}
|
|
2812
2812
|
const NUMBER_FORMAT_OPTIONS_KEYS = [
|
|
2813
2813
|
"localeMatcher",
|
|
@@ -3025,7 +3025,7 @@ function createComposer(e = {}, t) {
|
|
|
3025
3025
|
// prettier-ignore
|
|
3026
3026
|
o && s ? o.fallbackLocale.value : isString$5(e.fallbackLocale) || isArray$7(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
3027
3027
|
), u = ref(getLocaleMessages(l.value, e)), c = ref(isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), d = ref(isPlainObject$1(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
3028
|
-
let m = o ? o.missingWarn : isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0,
|
|
3028
|
+
let m = o ? o.missingWarn : isBoolean$1(e.missingWarn) || isRegExp$1(e.missingWarn) ? e.missingWarn : !0, b = o ? o.fallbackWarn : isBoolean$1(e.fallbackWarn) || isRegExp$1(e.fallbackWarn) ? e.fallbackWarn : !0, C = o ? o.fallbackRoot : isBoolean$1(e.fallbackRoot) ? e.fallbackRoot : !0, w = !!e.fallbackFormat, E = isFunction$3(e.missing) ? e.missing : null, p = isFunction$3(e.missing) ? defineCoreMissingHandler(e.missing) : null, f = isFunction$3(e.postTranslation) ? e.postTranslation : null, g = o ? o.warnHtmlMessage : isBoolean$1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, v = !!e.escapeParameter;
|
|
3029
3029
|
const k = o ? o.modifiers : isPlainObject$1(e.modifiers) ? e.modifiers : {};
|
|
3030
3030
|
let $ = e.pluralRules || o && o.pluralRules, O;
|
|
3031
3031
|
O = (() => {
|
|
@@ -3039,7 +3039,7 @@ function createComposer(e = {}, t) {
|
|
|
3039
3039
|
pluralRules: $,
|
|
3040
3040
|
missing: p === null ? void 0 : p,
|
|
3041
3041
|
missingWarn: m,
|
|
3042
|
-
fallbackWarn:
|
|
3042
|
+
fallbackWarn: b,
|
|
3043
3043
|
fallbackFormat: w,
|
|
3044
3044
|
unresolving: !0,
|
|
3045
3045
|
postTranslation: f === null ? void 0 : f,
|
|
@@ -3099,19 +3099,19 @@ function createComposer(e = {}, t) {
|
|
|
3099
3099
|
if (K !== "translate exists" && // for not `te` (e.g `t`)
|
|
3100
3100
|
isNumber$3(ue) && ue === NOT_REOSLVED || K === "translate exists" && !ue) {
|
|
3101
3101
|
const [de, we] = D();
|
|
3102
|
-
if (process.env.NODE_ENV !== "production" && o && isString$5(de) && Y(K, we) && (
|
|
3102
|
+
if (process.env.NODE_ENV !== "production" && o && isString$5(de) && Y(K, we) && (C && (isTranslateFallbackWarn(b, de) || isTranslateMissingWarn(m, de)) && warn$1(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT, {
|
|
3103
3103
|
key: de,
|
|
3104
3104
|
type: K
|
|
3105
3105
|
})), process.env.NODE_ENV !== "production")) {
|
|
3106
3106
|
const { __v_emitter: he } = O;
|
|
3107
|
-
he &&
|
|
3107
|
+
he && C && he.emit("fallback", {
|
|
3108
3108
|
type: K,
|
|
3109
3109
|
key: de,
|
|
3110
3110
|
to: "global",
|
|
3111
3111
|
groupId: `${K}:${de}`
|
|
3112
3112
|
});
|
|
3113
3113
|
}
|
|
3114
|
-
return o &&
|
|
3114
|
+
return o && C ? Z(o) : ce(de);
|
|
3115
3115
|
} else {
|
|
3116
3116
|
if (pe(ue))
|
|
3117
3117
|
return ue;
|
|
@@ -3136,7 +3136,7 @@ function createComposer(e = {}, t) {
|
|
|
3136
3136
|
function ie(A) {
|
|
3137
3137
|
return A.map((D) => isString$5(D) || isNumber$3(D) || isBoolean$1(D) ? createTextNode(String(D)) : D);
|
|
3138
3138
|
}
|
|
3139
|
-
const
|
|
3139
|
+
const y = {
|
|
3140
3140
|
normalize: ie,
|
|
3141
3141
|
interpolate: (A) => A,
|
|
3142
3142
|
type: "vnode"
|
|
@@ -3147,7 +3147,7 @@ function createComposer(e = {}, t) {
|
|
|
3147
3147
|
let K;
|
|
3148
3148
|
const Z = D;
|
|
3149
3149
|
try {
|
|
3150
|
-
Z.processor =
|
|
3150
|
+
Z.processor = y, K = Reflect.apply(translate$1, null, [Z, ...A]);
|
|
3151
3151
|
} finally {
|
|
3152
3152
|
Z.processor = null;
|
|
3153
3153
|
}
|
|
@@ -3213,7 +3213,7 @@ function createComposer(e = {}, t) {
|
|
|
3213
3213
|
function I(A) {
|
|
3214
3214
|
return u.value[A] || {};
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function M(A, D) {
|
|
3217
3217
|
if (i) {
|
|
3218
3218
|
const K = { [A]: D };
|
|
3219
3219
|
for (const Z in K)
|
|
@@ -3222,7 +3222,7 @@ function createComposer(e = {}, t) {
|
|
|
3222
3222
|
}
|
|
3223
3223
|
u.value[A] = D, O.messages = u.value;
|
|
3224
3224
|
}
|
|
3225
|
-
function
|
|
3225
|
+
function F(A, D) {
|
|
3226
3226
|
u.value[A] = u.value[A] || {};
|
|
3227
3227
|
const K = { [A]: D };
|
|
3228
3228
|
for (const Z in K)
|
|
@@ -3282,16 +3282,16 @@ function createComposer(e = {}, t) {
|
|
|
3282
3282
|
m = A, O.missingWarn = m;
|
|
3283
3283
|
},
|
|
3284
3284
|
get fallbackWarn() {
|
|
3285
|
-
return
|
|
3285
|
+
return b;
|
|
3286
3286
|
},
|
|
3287
3287
|
set fallbackWarn(A) {
|
|
3288
|
-
|
|
3288
|
+
b = A, O.fallbackWarn = b;
|
|
3289
3289
|
},
|
|
3290
3290
|
get fallbackRoot() {
|
|
3291
|
-
return
|
|
3291
|
+
return C;
|
|
3292
3292
|
},
|
|
3293
3293
|
set fallbackRoot(A) {
|
|
3294
|
-
|
|
3294
|
+
C = A;
|
|
3295
3295
|
},
|
|
3296
3296
|
get fallbackFormat() {
|
|
3297
3297
|
return w;
|
|
@@ -3313,8 +3313,8 @@ function createComposer(e = {}, t) {
|
|
|
3313
3313
|
},
|
|
3314
3314
|
t: Q,
|
|
3315
3315
|
getLocaleMessage: I,
|
|
3316
|
-
setLocaleMessage:
|
|
3317
|
-
mergeLocaleMessage:
|
|
3316
|
+
setLocaleMessage: M,
|
|
3317
|
+
mergeLocaleMessage: F,
|
|
3318
3318
|
getPostTranslationHandler: re,
|
|
3319
3319
|
setPostTranslationHandler: te,
|
|
3320
3320
|
getMissingHandler: j,
|
|
@@ -3328,21 +3328,21 @@ function createComposer(e = {}, t) {
|
|
|
3328
3328
|
}), ee;
|
|
3329
3329
|
}
|
|
3330
3330
|
function convertComposerOptions(e) {
|
|
3331
|
-
const t = isString$5(e.locale) ? e.locale : DEFAULT_LOCALE, o = isString$5(e.fallbackLocale) || isArray$7(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = isFunction$3(e.missing) ? e.missing : void 0, n = isBoolean$1(e.silentTranslationWarn) || isRegExp$1(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, i = isBoolean$1(e.silentFallbackWarn) || isRegExp$1(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, s = isBoolean$1(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, a = isPlainObject$1(e.modifiers) ? e.modifiers : {}, u = e.pluralizationRules, c = isFunction$3(e.postTranslation) ? e.postTranslation : void 0, d = isString$5(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml,
|
|
3331
|
+
const t = isString$5(e.locale) ? e.locale : DEFAULT_LOCALE, o = isString$5(e.fallbackLocale) || isArray$7(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = isFunction$3(e.missing) ? e.missing : void 0, n = isBoolean$1(e.silentTranslationWarn) || isRegExp$1(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, i = isBoolean$1(e.silentFallbackWarn) || isRegExp$1(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, s = isBoolean$1(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, a = isPlainObject$1(e.modifiers) ? e.modifiers : {}, u = e.pluralizationRules, c = isFunction$3(e.postTranslation) ? e.postTranslation : void 0, d = isString$5(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml, b = isBoolean$1(e.sync) ? e.sync : !0;
|
|
3332
3332
|
process.env.NODE_ENV !== "production" && e.formatter && warn$1(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && warn$1(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
|
3333
|
-
let
|
|
3333
|
+
let C = e.messages;
|
|
3334
3334
|
if (isPlainObject$1(e.sharedMessages)) {
|
|
3335
3335
|
const k = e.sharedMessages;
|
|
3336
|
-
|
|
3336
|
+
C = Object.keys(k).reduce((O, x) => {
|
|
3337
3337
|
const S = O[x] || (O[x] = {});
|
|
3338
3338
|
return assign$3(S, k[x]), O;
|
|
3339
|
-
},
|
|
3339
|
+
}, C || {});
|
|
3340
3340
|
}
|
|
3341
3341
|
const { __i18n: w, __root: E, __injectWithOption: p } = e, f = e.datetimeFormats, g = e.numberFormats, v = e.flatJson;
|
|
3342
3342
|
return {
|
|
3343
3343
|
locale: t,
|
|
3344
3344
|
fallbackLocale: o,
|
|
3345
|
-
messages:
|
|
3345
|
+
messages: C,
|
|
3346
3346
|
flatJson: v,
|
|
3347
3347
|
datetimeFormats: f,
|
|
3348
3348
|
numberFormats: g,
|
|
@@ -3357,7 +3357,7 @@ function convertComposerOptions(e) {
|
|
|
3357
3357
|
warnHtmlMessage: d,
|
|
3358
3358
|
escapeParameter: m,
|
|
3359
3359
|
messageResolver: e.messageResolver,
|
|
3360
|
-
inheritLocale:
|
|
3360
|
+
inheritLocale: b,
|
|
3361
3361
|
__i18n: w,
|
|
3362
3362
|
__root: E,
|
|
3363
3363
|
__injectWithOption: p
|
|
@@ -3646,12 +3646,12 @@ function renderFormatter(e, t, o, r) {
|
|
|
3646
3646
|
return () => {
|
|
3647
3647
|
const s = { part: !0 };
|
|
3648
3648
|
let l = {};
|
|
3649
|
-
e.locale && (s.locale = e.locale), isString$5(e.format) ? s.key = e.format : isObject$4(e.format) && (isString$5(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((m,
|
|
3649
|
+
e.locale && (s.locale = e.locale), isString$5(e.format) ? s.key = e.format : isObject$4(e.format) && (isString$5(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((m, b) => o.includes(b) ? assign$3({}, m, { [b]: e.format[b] }) : m, {}));
|
|
3650
3650
|
const a = r(e.value, s, l);
|
|
3651
3651
|
let u = [s.key];
|
|
3652
|
-
isArray$7(a) ? u = a.map((m,
|
|
3653
|
-
const
|
|
3654
|
-
return isVNode(w) && (w[0].key = `${m.type}-${
|
|
3652
|
+
isArray$7(a) ? u = a.map((m, b) => {
|
|
3653
|
+
const C = n[m.type], w = C ? C({ [m.type]: m.value, index: b, parts: a }) : [m.value];
|
|
3654
|
+
return isVNode(w) && (w[0].key = `${m.type}-${b}`), w;
|
|
3655
3655
|
}) : isString$5(a) && (u = [a]);
|
|
3656
3656
|
const c = assign$3({}, i), d = isString$5(e.tag) || isObject$4(e.tag) ? e.tag : getFragmentableTag();
|
|
3657
3657
|
return h$1(d, c, u);
|
|
@@ -4112,8 +4112,8 @@ function createI18n(e = {}, t) {
|
|
|
4112
4112
|
function u(m) {
|
|
4113
4113
|
return i.get(m) || null;
|
|
4114
4114
|
}
|
|
4115
|
-
function c(m,
|
|
4116
|
-
i.set(m,
|
|
4115
|
+
function c(m, b) {
|
|
4116
|
+
i.set(m, b);
|
|
4117
4117
|
}
|
|
4118
4118
|
function d(m) {
|
|
4119
4119
|
i.delete(m);
|
|
@@ -4129,18 +4129,18 @@ function createI18n(e = {}, t) {
|
|
|
4129
4129
|
return n;
|
|
4130
4130
|
},
|
|
4131
4131
|
// install plugin
|
|
4132
|
-
async install(
|
|
4133
|
-
if (process.env.NODE_ENV !== "production" && (
|
|
4134
|
-
const p =
|
|
4132
|
+
async install(b, ...C) {
|
|
4133
|
+
if (process.env.NODE_ENV !== "production" && (b.__VUE_I18N__ = m), b.__VUE_I18N_SYMBOL__ = a, b.provide(b.__VUE_I18N_SYMBOL__, m), isPlainObject$1(C[0])) {
|
|
4134
|
+
const p = C[0];
|
|
4135
4135
|
m.__composerExtend = p.__composerExtend, m.__vueI18nExtend = p.__vueI18nExtend;
|
|
4136
4136
|
}
|
|
4137
4137
|
let w = null;
|
|
4138
|
-
!o && r && (w = injectGlobalFields(
|
|
4139
|
-
const E =
|
|
4140
|
-
if (
|
|
4138
|
+
!o && r && (w = injectGlobalFields(b, m.global)), __VUE_I18N_FULL_INSTALL__ && apply(b, m, ...C), __VUE_I18N_LEGACY_API__ && o && b.mixin(defineMixin(l, l.__composer, m));
|
|
4139
|
+
const E = b.unmount;
|
|
4140
|
+
if (b.unmount = () => {
|
|
4141
4141
|
w && w(), m.dispose(), E();
|
|
4142
4142
|
}, process.env.NODE_ENV !== "production") {
|
|
4143
|
-
if (!await enableDevTools(
|
|
4143
|
+
if (!await enableDevTools(b, m))
|
|
4144
4144
|
throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
4145
4145
|
const f = createEmitter();
|
|
4146
4146
|
if (o) {
|
|
@@ -4267,7 +4267,7 @@ function useI18nForLegacy(e, t, o, r = {}) {
|
|
|
4267
4267
|
), a = ref(
|
|
4268
4268
|
// prettier-ignore
|
|
4269
4269
|
!n || s ? o.fallbackLocale.value : isString$5(r.fallbackLocale) || isArray$7(r.fallbackLocale) || isPlainObject$1(r.fallbackLocale) || r.fallbackLocale === !1 ? r.fallbackLocale : l.value
|
|
4270
|
-
), u = ref(getLocaleMessages(l.value, r)), c = ref(isPlainObject$1(r.datetimeFormats) ? r.datetimeFormats : { [l.value]: {} }), d = ref(isPlainObject$1(r.numberFormats) ? r.numberFormats : { [l.value]: {} }), m = n ? o.missingWarn : isBoolean$1(r.missingWarn) || isRegExp$1(r.missingWarn) ? r.missingWarn : !0,
|
|
4270
|
+
), u = ref(getLocaleMessages(l.value, r)), c = ref(isPlainObject$1(r.datetimeFormats) ? r.datetimeFormats : { [l.value]: {} }), d = ref(isPlainObject$1(r.numberFormats) ? r.numberFormats : { [l.value]: {} }), m = n ? o.missingWarn : isBoolean$1(r.missingWarn) || isRegExp$1(r.missingWarn) ? r.missingWarn : !0, b = n ? o.fallbackWarn : isBoolean$1(r.fallbackWarn) || isRegExp$1(r.fallbackWarn) ? r.fallbackWarn : !0, C = n ? o.fallbackRoot : isBoolean$1(r.fallbackRoot) ? r.fallbackRoot : !0, w = !!r.fallbackFormat, E = isFunction$3(r.missing) ? r.missing : null, p = isFunction$3(r.postTranslation) ? r.postTranslation : null, f = n ? o.warnHtmlMessage : isBoolean$1(r.warnHtmlMessage) ? r.warnHtmlMessage : !0, g = !!r.escapeParameter, v = n ? o.modifiers : isPlainObject$1(r.modifiers) ? r.modifiers : {}, k = r.pluralRules || n && o.pluralRules;
|
|
4271
4271
|
function $() {
|
|
4272
4272
|
return [
|
|
4273
4273
|
l.value,
|
|
@@ -4333,7 +4333,7 @@ function useI18nForLegacy(e, t, o, r = {}) {
|
|
|
4333
4333
|
function oe(T) {
|
|
4334
4334
|
return i.value ? i.value.getDateTimeFormat(T) : {};
|
|
4335
4335
|
}
|
|
4336
|
-
function
|
|
4336
|
+
function y(T, I) {
|
|
4337
4337
|
i.value && (i.value.setDateTimeFormat(T, I), c.value[T] = I);
|
|
4338
4338
|
}
|
|
4339
4339
|
function _(T, I) {
|
|
@@ -4382,13 +4382,13 @@ function useI18nForLegacy(e, t, o, r = {}) {
|
|
|
4382
4382
|
i.value && (i.value.missingWarn = T);
|
|
4383
4383
|
},
|
|
4384
4384
|
get fallbackWarn() {
|
|
4385
|
-
return i.value ? i.value.fallbackWarn :
|
|
4385
|
+
return i.value ? i.value.fallbackWarn : b;
|
|
4386
4386
|
},
|
|
4387
4387
|
set fallbackWarn(T) {
|
|
4388
4388
|
i.value && (i.value.missingWarn = T);
|
|
4389
4389
|
},
|
|
4390
4390
|
get fallbackRoot() {
|
|
4391
|
-
return i.value ? i.value.fallbackRoot :
|
|
4391
|
+
return i.value ? i.value.fallbackRoot : C;
|
|
4392
4392
|
},
|
|
4393
4393
|
set fallbackRoot(T) {
|
|
4394
4394
|
i.value && (i.value.fallbackRoot = T);
|
|
@@ -4425,7 +4425,7 @@ function useI18nForLegacy(e, t, o, r = {}) {
|
|
|
4425
4425
|
setLocaleMessage: X,
|
|
4426
4426
|
mergeLocaleMessage: ie,
|
|
4427
4427
|
getDateTimeFormat: oe,
|
|
4428
|
-
setDateTimeFormat:
|
|
4428
|
+
setDateTimeFormat: y,
|
|
4429
4429
|
mergeDateTimeFormat: _,
|
|
4430
4430
|
getNumberFormat: P,
|
|
4431
4431
|
setNumberFormat: V,
|
|
@@ -4438,7 +4438,7 @@ function useI18nForLegacy(e, t, o, r = {}) {
|
|
|
4438
4438
|
T.mergeDateTimeFormat(I, c.value[I]);
|
|
4439
4439
|
}), Object.keys(d.value).forEach((I) => {
|
|
4440
4440
|
T.mergeNumberFormat(I, d.value[I]);
|
|
4441
|
-
}), T.escapeParameter = g, T.fallbackFormat = w, T.fallbackRoot =
|
|
4441
|
+
}), T.escapeParameter = g, T.fallbackFormat = w, T.fallbackRoot = C, T.fallbackWarn = b, T.missingWarn = m, T.warnHtmlMessage = f;
|
|
4442
4442
|
}
|
|
4443
4443
|
return onBeforeMount(() => {
|
|
4444
4444
|
if (e.proxy == null || e.proxy.$i18n == null)
|
|
@@ -4790,6 +4790,18 @@ const en$1 = {
|
|
|
4790
4790
|
},
|
|
4791
4791
|
imatrixUIPromptMessage: {
|
|
4792
4792
|
NoContent: "No content"
|
|
4793
|
+
},
|
|
4794
|
+
chatEmbed: {
|
|
4795
|
+
name: "Assistant",
|
|
4796
|
+
history: "History",
|
|
4797
|
+
minimize: "Minimize",
|
|
4798
|
+
fullscreen: "Full Screen",
|
|
4799
|
+
close: "Close",
|
|
4800
|
+
regenerate: "Regenerate",
|
|
4801
|
+
copy: "Copy",
|
|
4802
|
+
newChat: "New Chat",
|
|
4803
|
+
copySuccess: "Copy successful",
|
|
4804
|
+
requestFailed: "Request failed!"
|
|
4793
4805
|
}
|
|
4794
4806
|
}, cn$1 = {
|
|
4795
4807
|
imatrixUIPublicModel: {
|
|
@@ -5092,6 +5104,18 @@ const en$1 = {
|
|
|
5092
5104
|
},
|
|
5093
5105
|
imatrixUIPromptMessage: {
|
|
5094
5106
|
NoContent: "暂无内容"
|
|
5107
|
+
},
|
|
5108
|
+
chatEmbed: {
|
|
5109
|
+
name: "小助手",
|
|
5110
|
+
history: "历史记录",
|
|
5111
|
+
minimize: "缩小",
|
|
5112
|
+
fullscreen: "全屏",
|
|
5113
|
+
close: "关闭",
|
|
5114
|
+
regenerate: "重新生成",
|
|
5115
|
+
copy: "复制",
|
|
5116
|
+
newChat: "新建会话",
|
|
5117
|
+
copySuccess: "复制成功",
|
|
5118
|
+
requestFailed: "请求会话失败!"
|
|
5095
5119
|
}
|
|
5096
5120
|
}, messages$2 = {
|
|
5097
5121
|
en: en$1,
|
|
@@ -5130,27 +5154,27 @@ class AmountCalculator extends CalculatorFactoryWf {
|
|
|
5130
5154
|
super();
|
|
5131
5155
|
const o = "operator.number.ge", r = "operator.number.le", n = "operator.number.gt", i = "operator.number.lt", s = "operator.number.ne", l = "operator.number.eq", a = "operator.text.neq", u = "operator.text.eq";
|
|
5132
5156
|
if (t.indexOf(o) > 0) {
|
|
5133
|
-
const c = o, d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(),
|
|
5134
|
-
|
|
5157
|
+
const c = o, d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(), b = Number(d), C = Number(m);
|
|
5158
|
+
b === null ? this.result = !1 : this.result = b >= C;
|
|
5135
5159
|
} else if (t.indexOf(r) > 0) {
|
|
5136
|
-
const c = r, d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(),
|
|
5137
|
-
|
|
5160
|
+
const c = r, d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(), b = Number(d), C = Number(m);
|
|
5161
|
+
b === null ? this.result = !1 : this.result = b <= C;
|
|
5138
5162
|
} else if (t.indexOf(n) > 0) {
|
|
5139
|
-
const c = n, d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(),
|
|
5140
|
-
|
|
5163
|
+
const c = n, d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(), b = Number(d), C = Number(m);
|
|
5164
|
+
b === null ? this.result = !1 : this.result = b > C;
|
|
5141
5165
|
} else if (t.indexOf(i) > 0) {
|
|
5142
|
-
const c = i, d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(),
|
|
5143
|
-
|
|
5166
|
+
const c = i, d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(), b = Number(d), C = Number(m);
|
|
5167
|
+
b === null ? this.result = !1 : this.result = b < C;
|
|
5144
5168
|
} else if (t.indexOf(s) > 0 || t.indexOf(a) > 0) {
|
|
5145
5169
|
let c = s;
|
|
5146
5170
|
t.indexOf(a) > 0 && (c = a);
|
|
5147
|
-
const d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(),
|
|
5148
|
-
|
|
5171
|
+
const d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(), b = Number(d), C = Number(m);
|
|
5172
|
+
b === null ? this.result = !1 : this.result = b !== C;
|
|
5149
5173
|
} else if (t.indexOf(l) > 0 || t.indexOf(u) > 0) {
|
|
5150
5174
|
let c = l;
|
|
5151
5175
|
t.indexOf(u) > 0 && (c = u);
|
|
5152
|
-
const d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(),
|
|
5153
|
-
this.isEQEmptyValue(
|
|
5176
|
+
const d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim(), b = Number(d), C = Number(m);
|
|
5177
|
+
this.isEQEmptyValue(b, c, C) ? this.result = !0 : b === null ? this.result = !1 : this.result = b === C;
|
|
5154
5178
|
}
|
|
5155
5179
|
}
|
|
5156
5180
|
}
|
|
@@ -5168,40 +5192,40 @@ class NumberCalculator extends CalculatorFactoryWf {
|
|
|
5168
5192
|
const c = o;
|
|
5169
5193
|
let d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim();
|
|
5170
5194
|
d || (d = "0"), m ? m = m.replaceAll("'", "") : m = "0";
|
|
5171
|
-
const
|
|
5172
|
-
|
|
5195
|
+
const b = Number(d), C = Number(m);
|
|
5196
|
+
b === null ? this.result = !1 : this.result = b >= C;
|
|
5173
5197
|
} else if (t.indexOf(r) > 0) {
|
|
5174
5198
|
const c = r;
|
|
5175
5199
|
let d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim();
|
|
5176
5200
|
d || (d = "0"), m ? m = m.replaceAll("'", "") : m = "0";
|
|
5177
|
-
const
|
|
5178
|
-
|
|
5201
|
+
const b = Number(d), C = Number(m);
|
|
5202
|
+
b === null ? this.result = !1 : this.result = b <= C;
|
|
5179
5203
|
} else if (t.indexOf(n) > 0) {
|
|
5180
5204
|
const c = n;
|
|
5181
5205
|
let d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim();
|
|
5182
5206
|
d || (d = "0"), m ? m = m.replaceAll("'", "") : m = "0";
|
|
5183
|
-
const
|
|
5184
|
-
|
|
5207
|
+
const b = Number(d), C = Number(m);
|
|
5208
|
+
b === null ? this.result = !1 : this.result = b > C;
|
|
5185
5209
|
} else if (t.indexOf(i) > 0) {
|
|
5186
5210
|
const c = i;
|
|
5187
5211
|
let d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim();
|
|
5188
5212
|
d || (d = "0"), m ? m = m.replaceAll("'", "") : m = "0";
|
|
5189
|
-
const
|
|
5190
|
-
|
|
5213
|
+
const b = Number(d), C = Number(m);
|
|
5214
|
+
b === null ? this.result = !1 : this.result = b < C;
|
|
5191
5215
|
} else if (t.indexOf(s) > 0 || t.indexOf(a) > 0) {
|
|
5192
5216
|
let c = s;
|
|
5193
5217
|
t.indexOf(a) > 0 && (c = a);
|
|
5194
5218
|
let d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim();
|
|
5195
5219
|
d || (d = "0"), m ? m = m.replaceAll("'", "") : m = "0";
|
|
5196
|
-
const
|
|
5197
|
-
|
|
5220
|
+
const b = Number(d), C = Number(m);
|
|
5221
|
+
b === null ? this.result = !1 : this.result = b !== C;
|
|
5198
5222
|
} else if (t.indexOf(l) > 0 || t.indexOf(u) > 0) {
|
|
5199
5223
|
let c = l;
|
|
5200
5224
|
t.indexOf(u) > 0 && (c = u);
|
|
5201
5225
|
let d = t.substring(0, t.indexOf(c)).trim(), m = t.substring(t.indexOf(c) + c.length).trim();
|
|
5202
5226
|
d || (d = "0"), m ? m = m.replaceAll("'", "") : m = "0";
|
|
5203
|
-
const
|
|
5204
|
-
this.isEQEmptyValue(
|
|
5227
|
+
const b = Number(d), C = Number(m);
|
|
5228
|
+
this.isEQEmptyValue(b, c, C) ? this.result = !0 : b === null ? this.result = !1 : this.result = b === C;
|
|
5205
5229
|
}
|
|
5206
5230
|
}
|
|
5207
5231
|
}
|
|
@@ -5219,38 +5243,38 @@ class DateCalculator extends CalculatorFactoryWf {
|
|
|
5219
5243
|
const u = r;
|
|
5220
5244
|
let c = t.substring(0, t.indexOf(u)).trim(), d = t.substring(t.indexOf(u) + u.length).trim();
|
|
5221
5245
|
o && o === "DATE" && c.indexOf(":") > 0 && (c = c.substring(0, c.indexOf(":"))), o && o === "DATE" && d.indexOf(":") > 0 && (d = d.substring(0, d.indexOf(":")));
|
|
5222
|
-
const m = new Date(c).getTime(),
|
|
5223
|
-
m === null ? this.result = !1 : this.result = m >=
|
|
5246
|
+
const m = new Date(c).getTime(), b = new Date(d).getTime();
|
|
5247
|
+
m === null ? this.result = !1 : this.result = m >= b;
|
|
5224
5248
|
} else if (t.indexOf(n) > 0) {
|
|
5225
5249
|
const u = n;
|
|
5226
5250
|
let c = t.substring(0, t.indexOf(u)).trim(), d = t.substring(t.indexOf(u) + u.length).trim();
|
|
5227
5251
|
o && o === "DATE" && c.indexOf(":") > 0 && (c = c.substring(0, c.indexOf(":"))), o && o === "DATE" && d.indexOf(":") > 0 && (d = d.substring(0, d.indexOf(":")));
|
|
5228
|
-
const m = new Date(c).getTime(),
|
|
5229
|
-
m === null ? this.result = !1 : this.result = m <=
|
|
5252
|
+
const m = new Date(c).getTime(), b = new Date(d).getTime();
|
|
5253
|
+
m === null ? this.result = !1 : this.result = m <= b;
|
|
5230
5254
|
} else if (t.indexOf(i) > 0) {
|
|
5231
5255
|
const u = i;
|
|
5232
5256
|
let c = t.substring(0, t.indexOf(u)).trim(), d = t.substring(t.indexOf(u) + u.length).trim();
|
|
5233
5257
|
o && o === "DATE" && c.indexOf(":") > 0 && (c = c.substring(0, c.indexOf(":"))), o && o === "DATE" && d.indexOf(":") > 0 && (d = d.substring(0, d.indexOf(":")));
|
|
5234
|
-
const m = new Date(c).getTime(),
|
|
5235
|
-
m === null ? this.result = !1 : this.result = m >
|
|
5258
|
+
const m = new Date(c).getTime(), b = new Date(d).getTime();
|
|
5259
|
+
m === null ? this.result = !1 : this.result = m > b;
|
|
5236
5260
|
} else if (t.indexOf(s) > 0) {
|
|
5237
5261
|
const u = s;
|
|
5238
5262
|
let c = t.substring(0, t.indexOf(u)).trim(), d = t.substring(t.indexOf(u) + u.length).trim();
|
|
5239
5263
|
o && o === "DATE" && c.indexOf(":") > 0 && (c = c.substring(0, c.indexOf(":"))), o && o === "DATE" && d.indexOf(":") > 0 && (d = d.substring(0, d.indexOf(":")));
|
|
5240
|
-
const m = new Date(c).getTime(),
|
|
5241
|
-
m === null ? this.result = !1 : this.result = m <
|
|
5264
|
+
const m = new Date(c).getTime(), b = new Date(d).getTime();
|
|
5265
|
+
m === null ? this.result = !1 : this.result = m < b;
|
|
5242
5266
|
} else if (t.indexOf(l) > 0) {
|
|
5243
5267
|
const u = l;
|
|
5244
5268
|
let c = t.substring(0, t.indexOf(u)).trim(), d = t.substring(t.indexOf(u) + u.length).trim();
|
|
5245
5269
|
o && o === "DATE" && c.indexOf(":") > 0 && (c = c.substring(0, c.indexOf(":"))), o && o === "DATE" && d.indexOf(":") > 0 && (d = d.substring(0, d.indexOf(":")));
|
|
5246
|
-
const m = new Date(c).getTime(),
|
|
5247
|
-
m === null ? this.result = !1 : this.result = m !==
|
|
5270
|
+
const m = new Date(c).getTime(), b = new Date(d).getTime();
|
|
5271
|
+
m === null ? this.result = !1 : this.result = m !== b;
|
|
5248
5272
|
} else if (t.indexOf(a) > 0) {
|
|
5249
5273
|
const u = a;
|
|
5250
5274
|
let c = t.substring(0, t.indexOf(u)).trim(), d = t.substring(t.indexOf(u) + u.length).trim();
|
|
5251
5275
|
o && o === "DATE" && c.indexOf(":") > 0 && (c = c.substring(0, c.indexOf(":"))), o && o === "DATE" && d.indexOf(":") > 0 && (d = d.substring(0, d.indexOf(":")));
|
|
5252
|
-
const m = new Date(c).getTime(),
|
|
5253
|
-
this.isEQEmptyValue(m, u,
|
|
5276
|
+
const m = new Date(c).getTime(), b = new Date(d).getTime();
|
|
5277
|
+
this.isEQEmptyValue(m, u, b) ? this.result = !0 : m === null ? this.result = !1 : this.result = m === b;
|
|
5254
5278
|
}
|
|
5255
5279
|
}
|
|
5256
5280
|
}
|
|
@@ -5332,7 +5356,7 @@ function parseFieldCondition(e, t, o, r, n, i, s) {
|
|
|
5332
5356
|
const u = e.substring(
|
|
5333
5357
|
e.indexOf(l) + l.length,
|
|
5334
5358
|
e.indexOf(a)
|
|
5335
|
-
), c = e.substring(0, e.indexOf(" ")), d = e.substring(e.indexOf(" ") + 1), m = d.substring(d.indexOf(" ") + 1).trim(),
|
|
5359
|
+
), c = e.substring(0, e.indexOf(" ")), d = e.substring(e.indexOf(" ") + 1), m = d.substring(d.indexOf(" ") + 1).trim(), b = getPropValue(
|
|
5336
5360
|
m,
|
|
5337
5361
|
o,
|
|
5338
5362
|
n,
|
|
@@ -5341,12 +5365,12 @@ function parseFieldCondition(e, t, o, r, n, i, s) {
|
|
|
5341
5365
|
r,
|
|
5342
5366
|
i
|
|
5343
5367
|
);
|
|
5344
|
-
|
|
5345
|
-
const
|
|
5346
|
-
if ((
|
|
5368
|
+
b != null && (e = e.replace(m, b.toString()));
|
|
5369
|
+
const C = getValue$2(r, u);
|
|
5370
|
+
if ((C == null || C === "") && (t === "DATE" || t === "TIME"))
|
|
5347
5371
|
return !1;
|
|
5348
|
-
console.log("对应值为:",
|
|
5349
|
-
const w = getAbstractUserFactoryWf(t), E = e.replace(c,
|
|
5372
|
+
console.log("对应值为:", C);
|
|
5373
|
+
const w = getAbstractUserFactoryWf(t), E = e.replace(c, C), f = new w(E).result;
|
|
5350
5374
|
return console.log("判断结果为:", f), f;
|
|
5351
5375
|
}
|
|
5352
5376
|
function splitExpression(e) {
|
|
@@ -6065,21 +6089,21 @@ function toFormData(e, t, o) {
|
|
|
6065
6089
|
const r = o.metaTokens, n = o.visitor || c, i = o.dots, s = o.indexes, a = (o.Blob || typeof Blob < "u" && Blob) && utils$1.isSpecCompliantForm(t);
|
|
6066
6090
|
if (!utils$1.isFunction(n))
|
|
6067
6091
|
throw new TypeError("visitor must be a function");
|
|
6068
|
-
function u(
|
|
6069
|
-
if (
|
|
6092
|
+
function u(C) {
|
|
6093
|
+
if (C === null)
|
|
6070
6094
|
return "";
|
|
6071
|
-
if (utils$1.isDate(
|
|
6072
|
-
return
|
|
6073
|
-
if (!a && utils$1.isBlob(
|
|
6095
|
+
if (utils$1.isDate(C))
|
|
6096
|
+
return C.toISOString();
|
|
6097
|
+
if (!a && utils$1.isBlob(C))
|
|
6074
6098
|
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
6075
|
-
return utils$1.isArrayBuffer(
|
|
6099
|
+
return utils$1.isArrayBuffer(C) || utils$1.isTypedArray(C) ? a && typeof Blob == "function" ? new Blob([C]) : Buffer.from(C) : C;
|
|
6076
6100
|
}
|
|
6077
|
-
function c(
|
|
6078
|
-
let p =
|
|
6079
|
-
if (
|
|
6101
|
+
function c(C, w, E) {
|
|
6102
|
+
let p = C;
|
|
6103
|
+
if (C && !E && typeof C == "object") {
|
|
6080
6104
|
if (utils$1.endsWith(w, "{}"))
|
|
6081
|
-
w = r ? w : w.slice(0, -2),
|
|
6082
|
-
else if (utils$1.isArray(
|
|
6105
|
+
w = r ? w : w.slice(0, -2), C = JSON.stringify(C);
|
|
6106
|
+
else if (utils$1.isArray(C) && isFlatArray(C) || (utils$1.isFileList(C) || utils$1.endsWith(w, "[]")) && (p = utils$1.toArray(C)))
|
|
6083
6107
|
return w = removeBrackets(w), p.forEach(function(g, v) {
|
|
6084
6108
|
!(utils$1.isUndefined(g) || g === null) && t.append(
|
|
6085
6109
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -6088,31 +6112,31 @@ function toFormData(e, t, o) {
|
|
|
6088
6112
|
);
|
|
6089
6113
|
}), !1;
|
|
6090
6114
|
}
|
|
6091
|
-
return isVisitable(
|
|
6115
|
+
return isVisitable(C) ? !0 : (t.append(renderKey(E, w, i), u(C)), !1);
|
|
6092
6116
|
}
|
|
6093
6117
|
const d = [], m = Object.assign(predicates, {
|
|
6094
6118
|
defaultVisitor: c,
|
|
6095
6119
|
convertValue: u,
|
|
6096
6120
|
isVisitable
|
|
6097
6121
|
});
|
|
6098
|
-
function C
|
|
6099
|
-
if (!utils$1.isUndefined(
|
|
6100
|
-
if (d.indexOf(
|
|
6122
|
+
function b(C, w) {
|
|
6123
|
+
if (!utils$1.isUndefined(C)) {
|
|
6124
|
+
if (d.indexOf(C) !== -1)
|
|
6101
6125
|
throw Error("Circular reference detected in " + w.join("."));
|
|
6102
|
-
d.push(
|
|
6126
|
+
d.push(C), utils$1.forEach(C, function(p, f) {
|
|
6103
6127
|
(!(utils$1.isUndefined(p) || p === null) && n.call(
|
|
6104
6128
|
t,
|
|
6105
6129
|
p,
|
|
6106
6130
|
utils$1.isString(f) ? f.trim() : f,
|
|
6107
6131
|
w,
|
|
6108
6132
|
m
|
|
6109
|
-
)) === !0 &&
|
|
6133
|
+
)) === !0 && b(p, w ? w.concat(f) : [f]);
|
|
6110
6134
|
}), d.pop();
|
|
6111
6135
|
}
|
|
6112
6136
|
}
|
|
6113
6137
|
if (!utils$1.isObject(e))
|
|
6114
6138
|
throw new TypeError("data must be an object");
|
|
6115
|
-
return
|
|
6139
|
+
return b(e), t;
|
|
6116
6140
|
}
|
|
6117
6141
|
function encode$1(e) {
|
|
6118
6142
|
const t = {
|
|
@@ -6584,8 +6608,8 @@ function speedometer(e, t) {
|
|
|
6584
6608
|
m += o[d++], d = d % e;
|
|
6585
6609
|
if (n = (n + 1) % e, n === i && (i = (i + 1) % e), u - s < t)
|
|
6586
6610
|
return;
|
|
6587
|
-
const
|
|
6588
|
-
return
|
|
6611
|
+
const b = c && u - c;
|
|
6612
|
+
return b ? Math.round(m * 1e3 / b) : void 0;
|
|
6589
6613
|
};
|
|
6590
6614
|
}
|
|
6591
6615
|
function throttle(e, t) {
|
|
@@ -6786,13 +6810,13 @@ const resolveConfig = (e) => {
|
|
|
6786
6810
|
function d() {
|
|
6787
6811
|
if (!c)
|
|
6788
6812
|
return;
|
|
6789
|
-
const
|
|
6813
|
+
const b = AxiosHeaders$1.from(
|
|
6790
6814
|
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
6791
6815
|
), w = {
|
|
6792
6816
|
data: !l || l === "text" || l === "json" ? c.responseText : c.response,
|
|
6793
6817
|
status: c.status,
|
|
6794
6818
|
statusText: c.statusText,
|
|
6795
|
-
headers:
|
|
6819
|
+
headers: b,
|
|
6796
6820
|
config: e,
|
|
6797
6821
|
request: c
|
|
6798
6822
|
};
|
|
@@ -6809,18 +6833,18 @@ const resolveConfig = (e) => {
|
|
|
6809
6833
|
}, c.onerror = function() {
|
|
6810
6834
|
r(new AxiosError("Network Error", AxiosError.ERR_NETWORK, n, c)), c = null;
|
|
6811
6835
|
}, c.ontimeout = function() {
|
|
6812
|
-
let
|
|
6836
|
+
let C = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
6813
6837
|
const w = n.transitional || transitionalDefaults;
|
|
6814
|
-
n.timeoutErrorMessage && (
|
|
6815
|
-
|
|
6838
|
+
n.timeoutErrorMessage && (C = n.timeoutErrorMessage), r(new AxiosError(
|
|
6839
|
+
C,
|
|
6816
6840
|
w.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
6817
6841
|
n,
|
|
6818
6842
|
c
|
|
6819
6843
|
)), c = null;
|
|
6820
|
-
}, i === void 0 && s.setContentType(null), "setRequestHeader" in c && utils$1.forEach(s.toJSON(), function(
|
|
6821
|
-
c.setRequestHeader(w,
|
|
6822
|
-
}), utils$1.isUndefined(n.withCredentials) || (c.withCredentials = !!n.withCredentials), l && l !== "json" && (c.responseType = n.responseType), typeof n.onDownloadProgress == "function" && c.addEventListener("progress", progressEventReducer(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", progressEventReducer(n.onUploadProgress)), (n.cancelToken || n.signal) && (a = (
|
|
6823
|
-
c && (r(!
|
|
6844
|
+
}, i === void 0 && s.setContentType(null), "setRequestHeader" in c && utils$1.forEach(s.toJSON(), function(C, w) {
|
|
6845
|
+
c.setRequestHeader(w, C);
|
|
6846
|
+
}), utils$1.isUndefined(n.withCredentials) || (c.withCredentials = !!n.withCredentials), l && l !== "json" && (c.responseType = n.responseType), typeof n.onDownloadProgress == "function" && c.addEventListener("progress", progressEventReducer(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", progressEventReducer(n.onUploadProgress)), (n.cancelToken || n.signal) && (a = (b) => {
|
|
6847
|
+
c && (r(!b || b.type ? new CanceledError(null, e, c) : b), c.abort(), c = null);
|
|
6824
6848
|
}, n.cancelToken && n.cancelToken.subscribe(a), n.signal && (n.signal.aborted ? a() : n.signal.addEventListener("abort", a)));
|
|
6825
6849
|
const m = parseProtocol(n.url);
|
|
6826
6850
|
if (m && platform.protocols.indexOf(m) === -1) {
|
|
@@ -6945,10 +6969,10 @@ const getBodyLength = async (e) => {
|
|
|
6945
6969
|
fetchOptions: m
|
|
6946
6970
|
} = resolveConfig(e);
|
|
6947
6971
|
u = u ? (u + "").toLowerCase() : "text";
|
|
6948
|
-
let [
|
|
6972
|
+
let [b, C] = n || i || s ? composeSignals$1([n, i], s) : [], w, E;
|
|
6949
6973
|
const p = () => {
|
|
6950
6974
|
!w && setTimeout(() => {
|
|
6951
|
-
|
|
6975
|
+
b && b.unsubscribe();
|
|
6952
6976
|
}), w = !0;
|
|
6953
6977
|
};
|
|
6954
6978
|
let f;
|
|
@@ -6966,7 +6990,7 @@ const getBodyLength = async (e) => {
|
|
|
6966
6990
|
}
|
|
6967
6991
|
utils$1.isString(d) || (d = d ? "cors" : "omit"), E = new Request(t, {
|
|
6968
6992
|
...m,
|
|
6969
|
-
signal:
|
|
6993
|
+
signal: b,
|
|
6970
6994
|
method: o.toUpperCase(),
|
|
6971
6995
|
headers: c.normalize().toJSON(),
|
|
6972
6996
|
body: r,
|
|
@@ -6991,7 +7015,7 @@ const getBodyLength = async (e) => {
|
|
|
6991
7015
|
}
|
|
6992
7016
|
u = u || "text";
|
|
6993
7017
|
let k = await resolvers[utils$1.findKey(resolvers, u) || "text"](g, e);
|
|
6994
|
-
return !v && p(),
|
|
7018
|
+
return !v && p(), C && C(), await new Promise(($, O) => {
|
|
6995
7019
|
settle($, O, {
|
|
6996
7020
|
data: k,
|
|
6997
7021
|
headers: AxiosHeaders$1.from(g.headers),
|
|
@@ -7173,8 +7197,8 @@ class Axios {
|
|
|
7173
7197
|
);
|
|
7174
7198
|
i && utils$1.forEach(
|
|
7175
7199
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
7176
|
-
(
|
|
7177
|
-
delete i[
|
|
7200
|
+
(C) => {
|
|
7201
|
+
delete i[C];
|
|
7178
7202
|
}
|
|
7179
7203
|
), o.headers = AxiosHeaders$1.concat(s, i);
|
|
7180
7204
|
const l = [];
|
|
@@ -7188,26 +7212,26 @@ class Axios {
|
|
|
7188
7212
|
});
|
|
7189
7213
|
let c, d = 0, m;
|
|
7190
7214
|
if (!a) {
|
|
7191
|
-
const
|
|
7192
|
-
for (
|
|
7193
|
-
c = c.then(
|
|
7215
|
+
const C = [dispatchRequest.bind(this), void 0];
|
|
7216
|
+
for (C.unshift.apply(C, l), C.push.apply(C, u), m = C.length, c = Promise.resolve(o); d < m; )
|
|
7217
|
+
c = c.then(C[d++], C[d++]);
|
|
7194
7218
|
return c;
|
|
7195
7219
|
}
|
|
7196
7220
|
m = l.length;
|
|
7197
|
-
let
|
|
7221
|
+
let b = o;
|
|
7198
7222
|
for (d = 0; d < m; ) {
|
|
7199
|
-
const
|
|
7223
|
+
const C = l[d++], w = l[d++];
|
|
7200
7224
|
try {
|
|
7201
|
-
|
|
7225
|
+
b = C(b);
|
|
7202
7226
|
} catch (E) {
|
|
7203
7227
|
w.call(this, E);
|
|
7204
7228
|
break;
|
|
7205
7229
|
}
|
|
7206
7230
|
}
|
|
7207
7231
|
try {
|
|
7208
|
-
c = dispatchRequest.call(this,
|
|
7209
|
-
} catch (
|
|
7210
|
-
return Promise.reject(
|
|
7232
|
+
c = dispatchRequest.call(this, b);
|
|
7233
|
+
} catch (C) {
|
|
7234
|
+
return Promise.reject(C);
|
|
7211
7235
|
}
|
|
7212
7236
|
for (d = 0, m = u.length; d < m; )
|
|
7213
7237
|
c = c.then(u[d++], u[d++]);
|
|
@@ -11325,7 +11349,7 @@ function _sfc_render$10(e, t, o, r, n, i) {
|
|
|
11325
11349
|
type: i.getType(d),
|
|
11326
11350
|
closable: "",
|
|
11327
11351
|
"disable-transitions": !1,
|
|
11328
|
-
onClose: (
|
|
11352
|
+
onClose: (b) => i.handleClose(d)
|
|
11329
11353
|
}, {
|
|
11330
11354
|
default: withCtx(() => [
|
|
11331
11355
|
createTextVNode(toDisplayString$1(i.showText(d)), 1)
|
|
@@ -12277,7 +12301,7 @@ const systemRoleTreeInline_vue_vue_type_style_index_0_lang = "", __default__$5 =
|
|
|
12277
12301
|
}
|
|
12278
12302
|
};
|
|
12279
12303
|
function _sfc_render$$(e, t, o, r, n, i) {
|
|
12280
|
-
const s = resolveComponent("el-radio"), l = resolveComponent("el-row"), a = resolveComponent("el-tab-pane"), u = resolveComponent("inline-department-user-tree"), c = resolveComponent("inline-department-tree"), d = resolveComponent("inline-workgroup-tree"), m = resolveComponent("inline-system-role-tree"),
|
|
12304
|
+
const s = resolveComponent("el-radio"), l = resolveComponent("el-row"), a = resolveComponent("el-tab-pane"), u = resolveComponent("inline-department-user-tree"), c = resolveComponent("inline-department-tree"), d = resolveComponent("inline-workgroup-tree"), m = resolveComponent("inline-system-role-tree"), b = resolveComponent("el-col"), C = resolveComponent("el-collapse-item"), w = resolveComponent("el-collapse"), E = resolveComponent("el-radio-group"), p = resolveComponent("el-tabs"), f = resolveComponent("el-button"), g = resolveComponent("el-dialog");
|
|
12281
12305
|
return openBlock(), createBlock(g, {
|
|
12282
12306
|
title: n.titleName,
|
|
12283
12307
|
"model-value": "",
|
|
@@ -12389,7 +12413,7 @@ function _sfc_render$$(e, t, o, r, n, i) {
|
|
|
12389
12413
|
default: withCtx(() => [
|
|
12390
12414
|
createVNode(l, { style: { width: "100%" } }, {
|
|
12391
12415
|
default: withCtx(() => [
|
|
12392
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.customFormFields, (v) => (openBlock(), createBlock(
|
|
12416
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.customFormFields, (v) => (openBlock(), createBlock(b, {
|
|
12393
12417
|
key: v.name,
|
|
12394
12418
|
span: 8
|
|
12395
12419
|
}, {
|
|
@@ -12414,14 +12438,14 @@ function _sfc_render$$(e, t, o, r, n, i) {
|
|
|
12414
12438
|
style: { width: "100%" }
|
|
12415
12439
|
}, {
|
|
12416
12440
|
default: withCtx(() => [
|
|
12417
|
-
createVNode(
|
|
12441
|
+
createVNode(C, {
|
|
12418
12442
|
title: e.$t("workflowEditor.task.baseField"),
|
|
12419
12443
|
name: "baseField"
|
|
12420
12444
|
}, {
|
|
12421
12445
|
default: withCtx(() => [
|
|
12422
12446
|
createVNode(l, null, {
|
|
12423
12447
|
default: withCtx(() => [
|
|
12424
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.baseFormFields, (v) => (openBlock(), createBlock(
|
|
12448
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.baseFormFields, (v) => (openBlock(), createBlock(b, {
|
|
12425
12449
|
key: v.name,
|
|
12426
12450
|
span: 8
|
|
12427
12451
|
}, {
|
|
@@ -12596,7 +12620,7 @@ const ValueSelectionDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$15, [["rend
|
|
|
12596
12620
|
}
|
|
12597
12621
|
}, _hoisted_1$w = { style: { overflow: "auto" } };
|
|
12598
12622
|
function _sfc_render$_(e, t, o, r, n, i) {
|
|
12599
|
-
const s = resolveComponent("el-button"), l = resolveComponent("el-row"), a = resolveComponent("el-option"), u = resolveComponent("el-select"), c = resolveComponent("el-table-column"), d = resolveComponent("el-input"), m = resolveComponent("el-table"),
|
|
12623
|
+
const s = resolveComponent("el-button"), l = resolveComponent("el-row"), a = resolveComponent("el-option"), u = resolveComponent("el-select"), c = resolveComponent("el-table-column"), d = resolveComponent("el-input"), m = resolveComponent("el-table"), b = resolveComponent("value-selection-dialog");
|
|
12600
12624
|
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
12601
12625
|
createVNode(l, null, {
|
|
12602
12626
|
default: withCtx(() => [
|
|
@@ -12666,12 +12690,12 @@ function _sfc_render$_(e, t, o, r, n, i) {
|
|
|
12666
12690
|
label: "(",
|
|
12667
12691
|
width: "90"
|
|
12668
12692
|
}, {
|
|
12669
|
-
default: withCtx((
|
|
12693
|
+
default: withCtx((C) => [
|
|
12670
12694
|
createVNode(u, {
|
|
12671
|
-
modelValue:
|
|
12672
|
-
"onUpdate:modelValue": (w) =>
|
|
12695
|
+
modelValue: C.row.leftBracket,
|
|
12696
|
+
"onUpdate:modelValue": (w) => C.row.leftBracket = w,
|
|
12673
12697
|
placeholder: "",
|
|
12674
|
-
onFocus: (w) => i.selectRow(
|
|
12698
|
+
onFocus: (w) => i.selectRow(C.row)
|
|
12675
12699
|
}, {
|
|
12676
12700
|
default: withCtx(() => [
|
|
12677
12701
|
createVNode(a, {
|
|
@@ -12700,10 +12724,10 @@ function _sfc_render$_(e, t, o, r, n, i) {
|
|
|
12700
12724
|
label: e.$t("workflowEditor.common.fieldName"),
|
|
12701
12725
|
width: "200"
|
|
12702
12726
|
}, {
|
|
12703
|
-
default: withCtx((
|
|
12727
|
+
default: withCtx((C) => [
|
|
12704
12728
|
createVNode(d, {
|
|
12705
|
-
value: i.format(
|
|
12706
|
-
onClick: (w) => i.selectField(
|
|
12729
|
+
value: i.format(C.row.key),
|
|
12730
|
+
onClick: (w) => i.selectField(C.row)
|
|
12707
12731
|
}, null, 8, ["value", "onClick"])
|
|
12708
12732
|
]),
|
|
12709
12733
|
_: 1
|
|
@@ -12712,15 +12736,15 @@ function _sfc_render$_(e, t, o, r, n, i) {
|
|
|
12712
12736
|
label: e.$t("workflowEditor.common.operator"),
|
|
12713
12737
|
width: "110"
|
|
12714
12738
|
}, {
|
|
12715
|
-
default: withCtx((
|
|
12739
|
+
default: withCtx((C) => [
|
|
12716
12740
|
createVNode(u, {
|
|
12717
|
-
modelValue:
|
|
12718
|
-
"onUpdate:modelValue": (w) =>
|
|
12741
|
+
modelValue: C.row.operator,
|
|
12742
|
+
"onUpdate:modelValue": (w) => C.row.operator = w,
|
|
12719
12743
|
placeholder: "",
|
|
12720
|
-
onFocus: (w) => i.selectRow(
|
|
12744
|
+
onFocus: (w) => i.selectRow(C.row)
|
|
12721
12745
|
}, {
|
|
12722
12746
|
default: withCtx(() => [
|
|
12723
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.getOperatorOptions(
|
|
12747
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.getOperatorOptions(C.row.key), (w) => (openBlock(), createBlock(a, {
|
|
12724
12748
|
key: w.name,
|
|
12725
12749
|
label: w.label,
|
|
12726
12750
|
value: w.name
|
|
@@ -12734,16 +12758,16 @@ function _sfc_render$_(e, t, o, r, n, i) {
|
|
|
12734
12758
|
createVNode(c, {
|
|
12735
12759
|
label: e.$t("workflowEditor.common.value")
|
|
12736
12760
|
}, {
|
|
12737
|
-
default: withCtx((
|
|
12738
|
-
|
|
12761
|
+
default: withCtx((C) => [
|
|
12762
|
+
C.row.key.indexOf("${field[") >= 0 || i.isTransitionOtherField(C.row.key) ? (openBlock(), createBlock(d, {
|
|
12739
12763
|
key: 0,
|
|
12740
|
-
modelValue:
|
|
12741
|
-
"onUpdate:modelValue": (w) =>
|
|
12764
|
+
modelValue: C.row.value,
|
|
12765
|
+
"onUpdate:modelValue": (w) => C.row.value = w,
|
|
12742
12766
|
modelModifiers: { trim: !0 }
|
|
12743
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) :
|
|
12767
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : C.row.key === "${approvalResult}" ? (openBlock(), createBlock(u, {
|
|
12744
12768
|
key: 1,
|
|
12745
|
-
modelValue:
|
|
12746
|
-
"onUpdate:modelValue": (w) =>
|
|
12769
|
+
modelValue: C.row.value,
|
|
12770
|
+
"onUpdate:modelValue": (w) => C.row.value = w,
|
|
12747
12771
|
modelModifiers: { trim: !0 }
|
|
12748
12772
|
}, {
|
|
12749
12773
|
default: withCtx(() => [
|
|
@@ -12759,7 +12783,7 @@ function _sfc_render$_(e, t, o, r, n, i) {
|
|
|
12759
12783
|
_: 2
|
|
12760
12784
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : (openBlock(), createBlock(d, {
|
|
12761
12785
|
key: 2,
|
|
12762
|
-
value: i.format(
|
|
12786
|
+
value: i.format(C.row.value, C.row),
|
|
12763
12787
|
readonly: "",
|
|
12764
12788
|
onClick: i.selectValue
|
|
12765
12789
|
}, null, 8, ["value", "onClick"]))
|
|
@@ -12770,12 +12794,12 @@ function _sfc_render$_(e, t, o, r, n, i) {
|
|
|
12770
12794
|
prop: "rightBracket",
|
|
12771
12795
|
label: ")",
|
|
12772
12796
|
width: "90",
|
|
12773
|
-
onFocus: t[0] || (t[0] = (
|
|
12797
|
+
onFocus: t[0] || (t[0] = (C) => i.selectRow(e.scope.row))
|
|
12774
12798
|
}, {
|
|
12775
|
-
default: withCtx((
|
|
12799
|
+
default: withCtx((C) => [
|
|
12776
12800
|
createVNode(u, {
|
|
12777
|
-
modelValue:
|
|
12778
|
-
"onUpdate:modelValue": (w) =>
|
|
12801
|
+
modelValue: C.row.rightBracket,
|
|
12802
|
+
"onUpdate:modelValue": (w) => C.row.rightBracket = w,
|
|
12779
12803
|
placeholder: ""
|
|
12780
12804
|
}, {
|
|
12781
12805
|
default: withCtx(() => [
|
|
@@ -12806,12 +12830,12 @@ function _sfc_render$_(e, t, o, r, n, i) {
|
|
|
12806
12830
|
label: e.$t("workflowEditorPublicModel.andOr"),
|
|
12807
12831
|
width: "110"
|
|
12808
12832
|
}, {
|
|
12809
|
-
default: withCtx((
|
|
12833
|
+
default: withCtx((C) => [
|
|
12810
12834
|
createVNode(u, {
|
|
12811
|
-
modelValue:
|
|
12812
|
-
"onUpdate:modelValue": (w) =>
|
|
12835
|
+
modelValue: C.row.logicOperator,
|
|
12836
|
+
"onUpdate:modelValue": (w) => C.row.logicOperator = w,
|
|
12813
12837
|
placeholder: e.$t("workflowEditorMessage.pleaseSelect"),
|
|
12814
|
-
onFocus: (w) => i.selectRow(
|
|
12838
|
+
onFocus: (w) => i.selectRow(C.row)
|
|
12815
12839
|
}, {
|
|
12816
12840
|
default: withCtx(() => [
|
|
12817
12841
|
createVNode(a, {
|
|
@@ -12831,7 +12855,7 @@ function _sfc_render$_(e, t, o, r, n, i) {
|
|
|
12831
12855
|
]),
|
|
12832
12856
|
_: 1
|
|
12833
12857
|
}, 8, ["data", "onCurrentChange"]),
|
|
12834
|
-
n.currentInput ? (openBlock(), createBlock(
|
|
12858
|
+
n.currentInput ? (openBlock(), createBlock(b, {
|
|
12835
12859
|
key: 0,
|
|
12836
12860
|
title: n.valueDialogTitle,
|
|
12837
12861
|
"show-organization": n.showOrganization,
|
|
@@ -13256,17 +13280,17 @@ function _sfc_render$Y(e, t, o, r, n, i) {
|
|
|
13256
13280
|
"append-to-body": "",
|
|
13257
13281
|
"model-value": "",
|
|
13258
13282
|
top: "5vh",
|
|
13259
|
-
onOpen: t[2] || (t[2] = (
|
|
13260
|
-
onOpend: t[3] || (t[3] = (
|
|
13261
|
-
onClose: t[4] || (t[4] = (
|
|
13262
|
-
onClosed: t[5] || (t[5] = (
|
|
13283
|
+
onOpen: t[2] || (t[2] = (b) => e.$emit("open")),
|
|
13284
|
+
onOpend: t[3] || (t[3] = (b) => e.$emit("opend")),
|
|
13285
|
+
onClose: t[4] || (t[4] = (b) => e.$emit("close")),
|
|
13286
|
+
onClosed: t[5] || (t[5] = (b) => e.$emit("closed"))
|
|
13263
13287
|
}, {
|
|
13264
13288
|
default: withCtx(() => [
|
|
13265
13289
|
createElementVNode("div", _hoisted_1$v, [
|
|
13266
13290
|
createVNode(s, {
|
|
13267
13291
|
type: "primary",
|
|
13268
13292
|
size: "small",
|
|
13269
|
-
onClick: t[0] || (t[0] = (
|
|
13293
|
+
onClick: t[0] || (t[0] = (b) => i.saveI18nSet("form"))
|
|
13270
13294
|
}, {
|
|
13271
13295
|
default: withCtx(() => [
|
|
13272
13296
|
createTextVNode(toDisplayString$1(e.$t("workflowEditorPublicModel.determine")), 1)
|
|
@@ -13301,7 +13325,7 @@ function _sfc_render$Y(e, t, o, r, n, i) {
|
|
|
13301
13325
|
default: withCtx(() => [
|
|
13302
13326
|
createVNode(l, {
|
|
13303
13327
|
modelValue: n.i18nModel.key,
|
|
13304
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
13328
|
+
"onUpdate:modelValue": t[1] || (t[1] = (b) => n.i18nModel.key = b),
|
|
13305
13329
|
style: { width: "80%" }
|
|
13306
13330
|
}, null, 8, ["modelValue"])
|
|
13307
13331
|
]),
|
|
@@ -13313,18 +13337,18 @@ function _sfc_render$Y(e, t, o, r, n, i) {
|
|
|
13313
13337
|
]),
|
|
13314
13338
|
_: 1
|
|
13315
13339
|
}),
|
|
13316
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.keys(n.languages), (
|
|
13340
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.keys(n.languages), (b) => (openBlock(), createBlock(c, { key: b }, {
|
|
13317
13341
|
default: withCtx(() => [
|
|
13318
13342
|
createVNode(u, { span: 24 }, {
|
|
13319
13343
|
default: withCtx(() => [
|
|
13320
13344
|
createVNode(a, {
|
|
13321
|
-
label: n.languages[
|
|
13322
|
-
prop:
|
|
13345
|
+
label: n.languages[b],
|
|
13346
|
+
prop: b
|
|
13323
13347
|
}, {
|
|
13324
13348
|
default: withCtx(() => [
|
|
13325
13349
|
createVNode(l, {
|
|
13326
|
-
modelValue: n.i18nModel.values[
|
|
13327
|
-
"onUpdate:modelValue": (
|
|
13350
|
+
modelValue: n.i18nModel.values[b],
|
|
13351
|
+
"onUpdate:modelValue": (C) => n.i18nModel.values[b] = C
|
|
13328
13352
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
13329
13353
|
]),
|
|
13330
13354
|
_: 2
|
|
@@ -13599,7 +13623,7 @@ const SelectMailTemplates = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["render
|
|
|
13599
13623
|
}
|
|
13600
13624
|
}, _withScopeId = (e) => (pushScopeId("data-v-a219b06d"), e = e(), popScopeId(), e), _hoisted_1$s = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "percent" }, " % ", -1));
|
|
13601
13625
|
function _sfc_render$V(e, t, o, r, n, i) {
|
|
13602
|
-
const s = resolveComponent("i18n-input"), l = resolveComponent("el-form-item"), a = resolveComponent("el-col"), u = resolveComponent("el-input"), c = resolveComponent("el-row"), d = resolveComponent("task-title"), m = resolveComponent("el-switch"),
|
|
13626
|
+
const s = resolveComponent("i18n-input"), l = resolveComponent("el-form-item"), a = resolveComponent("el-col"), u = resolveComponent("el-input"), c = resolveComponent("el-row"), d = resolveComponent("task-title"), m = resolveComponent("el-switch"), b = resolveComponent("select-mail-templates"), C = resolveComponent("el-radio"), w = resolveComponent("el-radio-group"), E = resolveComponent("el-input-number"), p = resolveComponent("custom-actions"), f = resolveComponent("el-form");
|
|
13603
13627
|
return openBlock(), createBlock(f, {
|
|
13604
13628
|
model: n.formModel,
|
|
13605
13629
|
"label-width": "110px"
|
|
@@ -13683,7 +13707,7 @@ function _sfc_render$V(e, t, o, r, n, i) {
|
|
|
13683
13707
|
label: e.$t("workflowEditor.task.selectNoticeTemplate")
|
|
13684
13708
|
}, {
|
|
13685
13709
|
default: withCtx(() => [
|
|
13686
|
-
createVNode(
|
|
13710
|
+
createVNode(b, {
|
|
13687
13711
|
modelValue: i.tache.mailTemplateCode,
|
|
13688
13712
|
"onUpdate:modelValue": t[5] || (t[5] = (g) => i.tache.mailTemplateCode = g),
|
|
13689
13713
|
onSetValue: i.setMailTemplateCode
|
|
@@ -13696,7 +13720,7 @@ function _sfc_render$V(e, t, o, r, n, i) {
|
|
|
13696
13720
|
label: e.$t("workflowEditor.task.selectMailTemplate")
|
|
13697
13721
|
}, {
|
|
13698
13722
|
default: withCtx(() => [
|
|
13699
|
-
createVNode(
|
|
13723
|
+
createVNode(b, {
|
|
13700
13724
|
modelValue: i.tache.mailPointTemplateCode,
|
|
13701
13725
|
"onUpdate:modelValue": t[6] || (t[6] = (g) => i.tache.mailPointTemplateCode = g),
|
|
13702
13726
|
onSetValue: i.setMailPointTemplateCode
|
|
@@ -13713,25 +13737,25 @@ function _sfc_render$V(e, t, o, r, n, i) {
|
|
|
13713
13737
|
"onUpdate:modelValue": t[7] || (t[7] = (g) => i.tache.processingMode.type = g)
|
|
13714
13738
|
}, {
|
|
13715
13739
|
default: withCtx(() => [
|
|
13716
|
-
createVNode(
|
|
13740
|
+
createVNode(C, { label: "EDIT" }, {
|
|
13717
13741
|
default: withCtx(() => [
|
|
13718
13742
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.editorial")), 1)
|
|
13719
13743
|
]),
|
|
13720
13744
|
_: 1
|
|
13721
13745
|
}),
|
|
13722
|
-
createVNode(
|
|
13746
|
+
createVNode(C, { label: "APPROVE" }, {
|
|
13723
13747
|
default: withCtx(() => [
|
|
13724
13748
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.approvalType")), 1)
|
|
13725
13749
|
]),
|
|
13726
13750
|
_: 1
|
|
13727
13751
|
}),
|
|
13728
|
-
createVNode(
|
|
13752
|
+
createVNode(C, { label: "COUNTERSIGN" }, {
|
|
13729
13753
|
default: withCtx(() => [
|
|
13730
13754
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.countersign")), 1)
|
|
13731
13755
|
]),
|
|
13732
13756
|
_: 1
|
|
13733
13757
|
}),
|
|
13734
|
-
createVNode(
|
|
13758
|
+
createVNode(C, { label: "VOTE" }, {
|
|
13735
13759
|
default: withCtx(() => [
|
|
13736
13760
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.voting")), 1)
|
|
13737
13761
|
]),
|
|
@@ -13753,13 +13777,13 @@ function _sfc_render$V(e, t, o, r, n, i) {
|
|
|
13753
13777
|
"onUpdate:modelValue": t[8] || (t[8] = (g) => i.tache.processingMode.moreTransactor = g)
|
|
13754
13778
|
}, {
|
|
13755
13779
|
default: withCtx(() => [
|
|
13756
|
-
createVNode(
|
|
13780
|
+
createVNode(C, { label: !1 }, {
|
|
13757
13781
|
default: withCtx(() => [
|
|
13758
13782
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.anyOneCanHandleIt")), 1)
|
|
13759
13783
|
]),
|
|
13760
13784
|
_: 1
|
|
13761
13785
|
}),
|
|
13762
|
-
createVNode(
|
|
13786
|
+
createVNode(C, { label: !0 }, {
|
|
13763
13787
|
default: withCtx(() => [
|
|
13764
13788
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.forAll")), 1)
|
|
13765
13789
|
]),
|
|
@@ -13920,7 +13944,7 @@ const BasicProperties$5 = /* @__PURE__ */ _export_sfc$1(_sfc_main$_, [["render",
|
|
|
13920
13944
|
}
|
|
13921
13945
|
}, _hoisted_1$r = ["title"], _hoisted_2$h = ["title"], _hoisted_3$6 = ["title"], _hoisted_4$3 = ["title"], _hoisted_5$2 = ["title"], _hoisted_6$2 = ["title"], _hoisted_7$1 = ["title"], _hoisted_8$1 = ["title"], _hoisted_9 = ["title"], _hoisted_10 = ["title"], _hoisted_11 = ["title"], _hoisted_12 = ["title"];
|
|
13922
13946
|
function _sfc_render$U(e, t, o, r, n, i) {
|
|
13923
|
-
const s = resolveComponent("el-checkbox"), l = resolveComponent("el-col"), a = resolveComponent("el-row"), u = resolveComponent("el-collapse-item"), c = resolveComponent("el-collapse"), d = resolveComponent("el-checkbox-group"), m = resolveComponent("el-radio"),
|
|
13947
|
+
const s = resolveComponent("el-checkbox"), l = resolveComponent("el-col"), a = resolveComponent("el-row"), u = resolveComponent("el-collapse-item"), c = resolveComponent("el-collapse"), d = resolveComponent("el-checkbox-group"), m = resolveComponent("el-radio"), b = resolveComponent("el-radio-group"), C = resolveComponent("el-form-item"), w = resolveComponent("el-switch"), E = resolveComponent("additional-condition"), p = resolveComponent("el-form"), f = resolveComponent("el-button"), g = resolveComponent("el-dialog");
|
|
13924
13948
|
return openBlock(), createBlock(g, {
|
|
13925
13949
|
id: "appContainer",
|
|
13926
13950
|
width: "60%",
|
|
@@ -14232,11 +14256,11 @@ function _sfc_render$U(e, t, o, r, n, i) {
|
|
|
14232
14256
|
]),
|
|
14233
14257
|
_: 1
|
|
14234
14258
|
}, 8, ["modelValue"]),
|
|
14235
|
-
createVNode(
|
|
14259
|
+
createVNode(C, {
|
|
14236
14260
|
label: e.$t("workflowEditor.task.editingMethod")
|
|
14237
14261
|
}, {
|
|
14238
14262
|
default: withCtx(() => [
|
|
14239
|
-
createVNode(
|
|
14263
|
+
createVNode(b, {
|
|
14240
14264
|
modelValue: n.formModel.constraintRule,
|
|
14241
14265
|
"onUpdate:modelValue": t[2] || (t[2] = (v) => n.formModel.constraintRule = v)
|
|
14242
14266
|
}, {
|
|
@@ -14259,7 +14283,7 @@ function _sfc_render$U(e, t, o, r, n, i) {
|
|
|
14259
14283
|
]),
|
|
14260
14284
|
_: 1
|
|
14261
14285
|
}, 8, ["label"]),
|
|
14262
|
-
createVNode(
|
|
14286
|
+
createVNode(C, {
|
|
14263
14287
|
label: e.$t("workflowEditor.task.additionalConditions")
|
|
14264
14288
|
}, {
|
|
14265
14289
|
default: withCtx(() => [
|
|
@@ -14383,7 +14407,7 @@ const EditableFieldSelection = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["ren
|
|
|
14383
14407
|
}
|
|
14384
14408
|
}, _hoisted_1$q = { style: { width: "100%" } };
|
|
14385
14409
|
function _sfc_render$T(e, t, o, r, n, i) {
|
|
14386
|
-
const s = resolveComponent("el-button"), l = resolveComponent("el-row"), a = resolveComponent("el-table-column"), u = resolveComponent("el-radio"), c = resolveComponent("el-radio-group"), d = resolveComponent("el-input"), m = resolveComponent("el-table"),
|
|
14410
|
+
const s = resolveComponent("el-button"), l = resolveComponent("el-row"), a = resolveComponent("el-table-column"), u = resolveComponent("el-radio"), c = resolveComponent("el-radio-group"), d = resolveComponent("el-input"), m = resolveComponent("el-table"), b = resolveComponent("editable-field-selection"), C = resolveComponent("additional-condition-dialog");
|
|
14387
14411
|
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
14388
14412
|
createVNode(l, null, {
|
|
14389
14413
|
default: withCtx(() => [
|
|
@@ -14492,13 +14516,13 @@ function _sfc_render$T(e, t, o, r, n, i) {
|
|
|
14492
14516
|
]),
|
|
14493
14517
|
_: 1
|
|
14494
14518
|
}, 8, ["data", "onSelectionChange", "onCurrentChange"]),
|
|
14495
|
-
n.showFieldSelection ? (openBlock(), createBlock(
|
|
14519
|
+
n.showFieldSelection ? (openBlock(), createBlock(b, {
|
|
14496
14520
|
key: 0,
|
|
14497
14521
|
"disabled-fields": n.disabledFields,
|
|
14498
14522
|
onInputValue: i.setSelectedFields,
|
|
14499
14523
|
onClose: t[0] || (t[0] = (w) => n.showFieldSelection = !1)
|
|
14500
14524
|
}, null, 8, ["disabled-fields", "onInputValue"])) : createCommentVNode("", !0),
|
|
14501
|
-
n.showAdditionalCondition ? (openBlock(), createBlock(
|
|
14525
|
+
n.showAdditionalCondition ? (openBlock(), createBlock(C, {
|
|
14502
14526
|
key: 1,
|
|
14503
14527
|
modelValue: n.currentRow.condition,
|
|
14504
14528
|
"onUpdate:modelValue": t[1] || (t[1] = (w) => n.currentRow.condition = w),
|
|
@@ -14518,17 +14542,17 @@ const EditableFields = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["render", _s
|
|
|
14518
14542
|
var r = n[o];
|
|
14519
14543
|
if (r.indexOf("(") !== -1) {
|
|
14520
14544
|
this.operationArr && this.operationArr.push([]), s = "", l = "", a = "", u = "", c = "", d = "";
|
|
14521
|
-
const
|
|
14522
|
-
if (s =
|
|
14523
|
-
const
|
|
14524
|
-
this.operationArr[i - 1] =
|
|
14545
|
+
const b = r.split("${field[");
|
|
14546
|
+
if (s = b[0], l = b[1].replace("]}", ""), this.operationArr) {
|
|
14547
|
+
const C = this.getOperators(this.fieldMap[l]);
|
|
14548
|
+
this.operationArr[i - 1] = C;
|
|
14525
14549
|
}
|
|
14526
14550
|
continue;
|
|
14527
14551
|
}
|
|
14528
14552
|
if (r.indexOf("(") === -1 && r.indexOf("${field[") !== -1) {
|
|
14529
14553
|
if (this.operationArr && this.operationArr.push([]), s = "", l = "", a = "", u = "", c = "", d = "", l = r.replace("${field[", "").replace("]}", ""), this.operationArr) {
|
|
14530
|
-
const
|
|
14531
|
-
this.operationArr[i - 1] =
|
|
14554
|
+
const b = this.getOperators(this.fieldMap[l]);
|
|
14555
|
+
this.operationArr[i - 1] = b;
|
|
14532
14556
|
}
|
|
14533
14557
|
continue;
|
|
14534
14558
|
}
|
|
@@ -14759,8 +14783,8 @@ function parseCondition(e, t) {
|
|
|
14759
14783
|
continue;
|
|
14760
14784
|
let s = "", l = "", a = "", u = "", c = "", d = "condition.operator.or";
|
|
14761
14785
|
const m = i.split(" ");
|
|
14762
|
-
let
|
|
14763
|
-
|
|
14786
|
+
let b = m[0].indexOf("${");
|
|
14787
|
+
b > 0 ? (s = m[0].substring(0, b), l = m[0].substring(b)) : l = m[0], a = m[1], b = m[2].indexOf(")"), b > 0 ? (u = m[2].substring(0, b), c = m[2].substring(b)) : u = m[2], m.length === 4 && (d = m[3]), e.push({
|
|
14764
14788
|
id: n,
|
|
14765
14789
|
leftBracket: s,
|
|
14766
14790
|
key: l,
|
|
@@ -14901,7 +14925,7 @@ const _sfc_main$X = {
|
|
|
14901
14925
|
}
|
|
14902
14926
|
};
|
|
14903
14927
|
function _sfc_render$S(e, t, o, r, n, i) {
|
|
14904
|
-
const s = resolveComponent("el-button"), l = resolveComponent("el-row"), a = resolveComponent("el-option"), u = resolveComponent("el-select"), c = resolveComponent("el-table-column"), d = resolveComponent("el-input"), m = resolveComponent("el-table"),
|
|
14928
|
+
const s = resolveComponent("el-button"), l = resolveComponent("el-row"), a = resolveComponent("el-option"), u = resolveComponent("el-select"), c = resolveComponent("el-table-column"), d = resolveComponent("el-input"), m = resolveComponent("el-table"), b = resolveComponent("value-selection-dialog");
|
|
14905
14929
|
return openBlock(), createElementBlock("div", null, [
|
|
14906
14930
|
createVNode(l, null, {
|
|
14907
14931
|
default: withCtx(() => [
|
|
@@ -14971,12 +14995,12 @@ function _sfc_render$S(e, t, o, r, n, i) {
|
|
|
14971
14995
|
label: "(",
|
|
14972
14996
|
width: "90"
|
|
14973
14997
|
}, {
|
|
14974
|
-
default: withCtx((
|
|
14998
|
+
default: withCtx((C) => [
|
|
14975
14999
|
createVNode(u, {
|
|
14976
|
-
modelValue:
|
|
14977
|
-
"onUpdate:modelValue": (w) =>
|
|
15000
|
+
modelValue: C.row.leftBracket,
|
|
15001
|
+
"onUpdate:modelValue": (w) => C.row.leftBracket = w,
|
|
14978
15002
|
placeholder: "",
|
|
14979
|
-
onFocus: (w) => i.selectRow(
|
|
15003
|
+
onFocus: (w) => i.selectRow(C.row)
|
|
14980
15004
|
}, {
|
|
14981
15005
|
default: withCtx(() => [
|
|
14982
15006
|
createVNode(a, {
|
|
@@ -15005,12 +15029,12 @@ function _sfc_render$S(e, t, o, r, n, i) {
|
|
|
15005
15029
|
label: e.$t("workflowEditor.common.type"),
|
|
15006
15030
|
width: "110"
|
|
15007
15031
|
}, {
|
|
15008
|
-
default: withCtx((
|
|
15032
|
+
default: withCtx((C) => [
|
|
15009
15033
|
createVNode(u, {
|
|
15010
|
-
modelValue:
|
|
15011
|
-
"onUpdate:modelValue": (w) =>
|
|
15034
|
+
modelValue: C.row.key,
|
|
15035
|
+
"onUpdate:modelValue": (w) => C.row.key = w,
|
|
15012
15036
|
placeholder: "",
|
|
15013
|
-
onFocus: (w) => i.selectRow(
|
|
15037
|
+
onFocus: (w) => i.selectRow(C.row),
|
|
15014
15038
|
onChange: i.handleKeyChange
|
|
15015
15039
|
}, {
|
|
15016
15040
|
default: withCtx(() => [
|
|
@@ -15040,12 +15064,12 @@ function _sfc_render$S(e, t, o, r, n, i) {
|
|
|
15040
15064
|
label: e.$t("workflowEditor.common.operator"),
|
|
15041
15065
|
width: "110"
|
|
15042
15066
|
}, {
|
|
15043
|
-
default: withCtx((
|
|
15067
|
+
default: withCtx((C) => [
|
|
15044
15068
|
createVNode(u, {
|
|
15045
|
-
modelValue:
|
|
15046
|
-
"onUpdate:modelValue": (w) =>
|
|
15069
|
+
modelValue: C.row.operator,
|
|
15070
|
+
"onUpdate:modelValue": (w) => C.row.operator = w,
|
|
15047
15071
|
placeholder: "",
|
|
15048
|
-
onFocus: (w) => i.selectRow(
|
|
15072
|
+
onFocus: (w) => i.selectRow(C.row)
|
|
15049
15073
|
}, {
|
|
15050
15074
|
default: withCtx(() => [
|
|
15051
15075
|
createVNode(a, {
|
|
@@ -15065,11 +15089,11 @@ function _sfc_render$S(e, t, o, r, n, i) {
|
|
|
15065
15089
|
createVNode(c, {
|
|
15066
15090
|
label: e.$t("workflowEditor.common.value")
|
|
15067
15091
|
}, {
|
|
15068
|
-
default: withCtx((
|
|
15092
|
+
default: withCtx((C) => [
|
|
15069
15093
|
createVNode(d, {
|
|
15070
|
-
value: i.format(
|
|
15094
|
+
value: i.format(C.row.value),
|
|
15071
15095
|
readonly: "",
|
|
15072
|
-
onClick: (w) => i.openValueDialog(
|
|
15096
|
+
onClick: (w) => i.openValueDialog(C.row)
|
|
15073
15097
|
}, null, 8, ["value", "onClick"])
|
|
15074
15098
|
]),
|
|
15075
15099
|
_: 1
|
|
@@ -15078,12 +15102,12 @@ function _sfc_render$S(e, t, o, r, n, i) {
|
|
|
15078
15102
|
prop: "rightBracket",
|
|
15079
15103
|
label: ")",
|
|
15080
15104
|
width: "90",
|
|
15081
|
-
onFocus: t[0] || (t[0] = (
|
|
15105
|
+
onFocus: t[0] || (t[0] = (C) => i.selectRow(e.scope.row))
|
|
15082
15106
|
}, {
|
|
15083
|
-
default: withCtx((
|
|
15107
|
+
default: withCtx((C) => [
|
|
15084
15108
|
createVNode(u, {
|
|
15085
|
-
modelValue:
|
|
15086
|
-
"onUpdate:modelValue": (w) =>
|
|
15109
|
+
modelValue: C.row.rightBracket,
|
|
15110
|
+
"onUpdate:modelValue": (w) => C.row.rightBracket = w,
|
|
15087
15111
|
placeholder: ""
|
|
15088
15112
|
}, {
|
|
15089
15113
|
default: withCtx(() => [
|
|
@@ -15114,12 +15138,12 @@ function _sfc_render$S(e, t, o, r, n, i) {
|
|
|
15114
15138
|
label: e.$t("workflowEditorPublicModel.andOr"),
|
|
15115
15139
|
width: "110"
|
|
15116
15140
|
}, {
|
|
15117
|
-
default: withCtx((
|
|
15141
|
+
default: withCtx((C) => [
|
|
15118
15142
|
createVNode(u, {
|
|
15119
|
-
modelValue:
|
|
15120
|
-
"onUpdate:modelValue": (w) =>
|
|
15143
|
+
modelValue: C.row.logicOperator,
|
|
15144
|
+
"onUpdate:modelValue": (w) => C.row.logicOperator = w,
|
|
15121
15145
|
placeholder: e.$t("workflowEditorMessage.pleaseSelect"),
|
|
15122
|
-
onFocus: (w) => i.selectRow(
|
|
15146
|
+
onFocus: (w) => i.selectRow(C.row)
|
|
15123
15147
|
}, {
|
|
15124
15148
|
default: withCtx(() => [
|
|
15125
15149
|
createVNode(a, {
|
|
@@ -15139,7 +15163,7 @@ function _sfc_render$S(e, t, o, r, n, i) {
|
|
|
15139
15163
|
]),
|
|
15140
15164
|
_: 1
|
|
15141
15165
|
}, 8, ["data", "onCurrentChange"]),
|
|
15142
|
-
n.showValueDialog ? (openBlock(), createBlock(
|
|
15166
|
+
n.showValueDialog ? (openBlock(), createBlock(b, {
|
|
15143
15167
|
key: 0,
|
|
15144
15168
|
"standard-fields": i.standardFields,
|
|
15145
15169
|
"org-type": n.currentRow.key.substring(n.currentRow.key.indexOf("{") + 1, n.currentRow.key.lastIndexOf("}")),
|
|
@@ -15275,7 +15299,7 @@ const CommonUserCondition = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["render
|
|
|
15275
15299
|
}
|
|
15276
15300
|
}, _hoisted_1$p = { style: { "overflow-y": "auto", "max-height": "500px" } }, _hoisted_2$g = { class: "operation-area" }, _hoisted_3$5 = { class: "clearfix" }, _hoisted_4$2 = { class: "clearfix" };
|
|
15277
15301
|
function _sfc_render$R(e, t, o, r, n, i) {
|
|
15278
|
-
const s = resolveComponent("el-button"), l = resolveComponent("common-user-condition"), a = resolveComponent("el-card"), u = resolveComponent("additional-condition"), c = resolveComponent("el-row"), d = resolveComponent("el-option"), m = resolveComponent("el-select"),
|
|
15302
|
+
const s = resolveComponent("el-button"), l = resolveComponent("common-user-condition"), a = resolveComponent("el-card"), u = resolveComponent("additional-condition"), c = resolveComponent("el-row"), d = resolveComponent("el-option"), m = resolveComponent("el-select"), b = resolveComponent("el-table-column"), C = resolveComponent("el-date-picker"), w = resolveComponent("el-input"), E = resolveComponent("el-table"), p = resolveComponent("el-dialog");
|
|
15279
15303
|
return openBlock(), createBlock(p, {
|
|
15280
15304
|
"show-close": !0,
|
|
15281
15305
|
"append-to-body": !0,
|
|
@@ -15389,7 +15413,7 @@ function _sfc_render$R(e, t, o, r, n, i) {
|
|
|
15389
15413
|
onCurrentChange: i.handleCurrentChange
|
|
15390
15414
|
}, {
|
|
15391
15415
|
default: withCtx(() => [
|
|
15392
|
-
createVNode(
|
|
15416
|
+
createVNode(b, {
|
|
15393
15417
|
prop: "leftBracket",
|
|
15394
15418
|
label: "(",
|
|
15395
15419
|
width: "90"
|
|
@@ -15425,7 +15449,7 @@ function _sfc_render$R(e, t, o, r, n, i) {
|
|
|
15425
15449
|
]),
|
|
15426
15450
|
_: 1
|
|
15427
15451
|
}),
|
|
15428
|
-
createVNode(
|
|
15452
|
+
createVNode(b, {
|
|
15429
15453
|
label: e.$t("workflowEditor.common.fieldName"),
|
|
15430
15454
|
width: "200"
|
|
15431
15455
|
}, {
|
|
@@ -15452,7 +15476,7 @@ function _sfc_render$R(e, t, o, r, n, i) {
|
|
|
15452
15476
|
]),
|
|
15453
15477
|
_: 1
|
|
15454
15478
|
}, 8, ["label"]),
|
|
15455
|
-
createVNode(
|
|
15479
|
+
createVNode(b, {
|
|
15456
15480
|
label: e.$t("workflowEditor.common.operator"),
|
|
15457
15481
|
width: "110"
|
|
15458
15482
|
}, {
|
|
@@ -15476,7 +15500,7 @@ function _sfc_render$R(e, t, o, r, n, i) {
|
|
|
15476
15500
|
]),
|
|
15477
15501
|
_: 1
|
|
15478
15502
|
}, 8, ["label"]),
|
|
15479
|
-
createVNode(
|
|
15503
|
+
createVNode(b, {
|
|
15480
15504
|
label: e.$t("workflowEditor.common.value")
|
|
15481
15505
|
}, {
|
|
15482
15506
|
default: withCtx((f) => [
|
|
@@ -15613,7 +15637,7 @@ function _sfc_render$R(e, t, o, r, n, i) {
|
|
|
15613
15637
|
]),
|
|
15614
15638
|
_: 2
|
|
15615
15639
|
}, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange", "onFocus"])) : createCommentVNode("", !0),
|
|
15616
|
-
f.row.dataType === "DATE" && f.row.propValueType === "input" ? (openBlock(), createBlock(
|
|
15640
|
+
f.row.dataType === "DATE" && f.row.propValueType === "input" ? (openBlock(), createBlock(C, {
|
|
15617
15641
|
key: 3,
|
|
15618
15642
|
modelValue: f.row.propValue,
|
|
15619
15643
|
"onUpdate:modelValue": (g) => f.row.propValue = g,
|
|
@@ -15624,7 +15648,7 @@ function _sfc_render$R(e, t, o, r, n, i) {
|
|
|
15624
15648
|
type: "date",
|
|
15625
15649
|
onChange: (g) => i.changePropValue(f.$index)
|
|
15626
15650
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : createCommentVNode("", !0),
|
|
15627
|
-
f.row.dataType === "TIME" && f.row.propValueType === "input" ? (openBlock(), createBlock(
|
|
15651
|
+
f.row.dataType === "TIME" && f.row.propValueType === "input" ? (openBlock(), createBlock(C, {
|
|
15628
15652
|
key: 4,
|
|
15629
15653
|
modelValue: f.row.propValue,
|
|
15630
15654
|
"onUpdate:modelValue": (g) => f.row.propValue = g,
|
|
@@ -15716,7 +15740,7 @@ function _sfc_render$R(e, t, o, r, n, i) {
|
|
|
15716
15740
|
]),
|
|
15717
15741
|
_: 1
|
|
15718
15742
|
}, 8, ["label"]),
|
|
15719
|
-
createVNode(
|
|
15743
|
+
createVNode(b, {
|
|
15720
15744
|
prop: "rightBracket",
|
|
15721
15745
|
label: ")",
|
|
15722
15746
|
width: "90",
|
|
@@ -15752,7 +15776,7 @@ function _sfc_render$R(e, t, o, r, n, i) {
|
|
|
15752
15776
|
]),
|
|
15753
15777
|
_: 1
|
|
15754
15778
|
}),
|
|
15755
|
-
createVNode(
|
|
15779
|
+
createVNode(b, {
|
|
15756
15780
|
label: e.$t("workflowEditorPublicModel.andOr"),
|
|
15757
15781
|
prop: "logicOperator",
|
|
15758
15782
|
width: "110"
|
|
@@ -15962,7 +15986,7 @@ const selectionConditions = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["render
|
|
|
15962
15986
|
}
|
|
15963
15987
|
};
|
|
15964
15988
|
function _sfc_render$Q(e, t, o, r, n, i) {
|
|
15965
|
-
const s = resolveComponent("el-checkbox"), l = resolveComponent("el-col"), a = resolveComponent("el-checkbox-group"), u = resolveComponent("el-row"), c = resolveComponent("selection-conditions"), d = resolveComponent("el-button"), m = resolveComponent("el-table-column"),
|
|
15989
|
+
const s = resolveComponent("el-checkbox"), l = resolveComponent("el-col"), a = resolveComponent("el-checkbox-group"), u = resolveComponent("el-row"), c = resolveComponent("selection-conditions"), d = resolveComponent("el-button"), m = resolveComponent("el-table-column"), b = resolveComponent("el-option"), C = resolveComponent("el-select"), w = resolveComponent("el-radio"), E = resolveComponent("el-radio-group"), p = resolveComponent("Tools"), f = resolveComponent("el-icon"), g = resolveComponent("el-table");
|
|
15966
15990
|
return openBlock(), createElementBlock("div", null, [
|
|
15967
15991
|
createElementVNode("div", null, [
|
|
15968
15992
|
createVNode(u, null, {
|
|
@@ -16094,7 +16118,7 @@ function _sfc_render$Q(e, t, o, r, n, i) {
|
|
|
16094
16118
|
align: "center"
|
|
16095
16119
|
}, {
|
|
16096
16120
|
default: withCtx((v) => [
|
|
16097
|
-
createVNode(
|
|
16121
|
+
createVNode(C, {
|
|
16098
16122
|
modelValue: v.row.name,
|
|
16099
16123
|
"onUpdate:modelValue": (k) => v.row.name = k,
|
|
16100
16124
|
size: "small",
|
|
@@ -16102,11 +16126,11 @@ function _sfc_render$Q(e, t, o, r, n, i) {
|
|
|
16102
16126
|
onChange: i.combinationParameters
|
|
16103
16127
|
}, {
|
|
16104
16128
|
default: withCtx(() => [
|
|
16105
|
-
createVNode(
|
|
16129
|
+
createVNode(b, {
|
|
16106
16130
|
label: e.$t("workflowEditor.condition.allFields"),
|
|
16107
16131
|
value: "all_fields"
|
|
16108
16132
|
}, null, 8, ["label"]),
|
|
16109
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.attributeArr, (k) => (openBlock(), createBlock(
|
|
16133
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.attributeArr, (k) => (openBlock(), createBlock(b, {
|
|
16110
16134
|
key: k.value,
|
|
16111
16135
|
label: k.label,
|
|
16112
16136
|
value: k.value
|
|
@@ -16296,7 +16320,7 @@ const editableChildFieldSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["
|
|
|
16296
16320
|
function _sfc_render$P(e, t, o, r, n, i) {
|
|
16297
16321
|
const s = resolveComponent("el-col"), l = resolveComponent("el-switch"), a = resolveComponent("el-row"), u = resolveComponent("el-input"), c = resolveComponent("el-button"), d = resolveComponent("editable-child-field-setting"), m = resolveComponent("el-card");
|
|
16298
16322
|
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
16299
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(e.subtableConditionMap, (
|
|
16323
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(e.subtableConditionMap, (b, C) => (openBlock(), createElementBlock("span", { key: C }, [
|
|
16300
16324
|
createVNode(m, { class: "box-card" }, {
|
|
16301
16325
|
default: withCtx(() => [
|
|
16302
16326
|
createElementVNode("div", _hoisted_2$f, [
|
|
@@ -16304,20 +16328,20 @@ function _sfc_render$P(e, t, o, r, n, i) {
|
|
|
16304
16328
|
default: withCtx(() => [
|
|
16305
16329
|
createVNode(s, { span: 12 }, {
|
|
16306
16330
|
default: withCtx(() => [
|
|
16307
|
-
createElementVNode("span", null, toDisplayString$1(
|
|
16331
|
+
createElementVNode("span", null, toDisplayString$1(C), 1)
|
|
16308
16332
|
]),
|
|
16309
16333
|
_: 2
|
|
16310
16334
|
}, 1024),
|
|
16311
|
-
n.selectedFieldMap[
|
|
16335
|
+
n.selectedFieldMap[C] ? (openBlock(), createBlock(s, {
|
|
16312
16336
|
key: 0,
|
|
16313
16337
|
span: 12
|
|
16314
16338
|
}, {
|
|
16315
16339
|
default: withCtx(() => [
|
|
16316
16340
|
createVNode(l, {
|
|
16317
|
-
modelValue: n.selectedFieldMap[
|
|
16318
|
-
"onUpdate:modelValue": (w) => n.selectedFieldMap[
|
|
16341
|
+
modelValue: n.selectedFieldMap[C].sumPermission,
|
|
16342
|
+
"onUpdate:modelValue": (w) => n.selectedFieldMap[C].sumPermission = w,
|
|
16319
16343
|
"inactive-text": e.$t("workflowEditor.condition.accessControl"),
|
|
16320
|
-
onChange: (w) => i.changeSumPermission(
|
|
16344
|
+
onChange: (w) => i.changeSumPermission(C)
|
|
16321
16345
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "inactive-text", "onChange"])
|
|
16322
16346
|
]),
|
|
16323
16347
|
_: 2
|
|
@@ -16329,19 +16353,19 @@ function _sfc_render$P(e, t, o, r, n, i) {
|
|
|
16329
16353
|
default: withCtx(() => [
|
|
16330
16354
|
createVNode(s, null, {
|
|
16331
16355
|
default: withCtx(() => [
|
|
16332
|
-
n.selectedFieldMap[
|
|
16356
|
+
n.selectedFieldMap[C] && n.selectedFieldMap[C].sumPermission ? (openBlock(), createElementBlock("span", _hoisted_3$4, [
|
|
16333
16357
|
createElementVNode("span", _hoisted_4$1, toDisplayString$1(e.$t("workflowEditor.condition.formBindingModel")) + ":", 1),
|
|
16334
16358
|
createElementVNode("span", _hoisted_5$1, [
|
|
16335
16359
|
createVNode(u, {
|
|
16336
|
-
modelValue: n.selectedFieldMap[
|
|
16337
|
-
"onUpdate:modelValue": (w) => n.selectedFieldMap[
|
|
16360
|
+
modelValue: n.selectedFieldMap[C].modelName,
|
|
16361
|
+
"onUpdate:modelValue": (w) => n.selectedFieldMap[C].modelName = w,
|
|
16338
16362
|
style: { width: "300px" }
|
|
16339
16363
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
16340
16364
|
]),
|
|
16341
16365
|
createVNode(c, {
|
|
16342
16366
|
icon: "el-icon-refresh",
|
|
16343
16367
|
type: "text",
|
|
16344
|
-
onClick: (w) => i.refreshModelName(
|
|
16368
|
+
onClick: (w) => i.refreshModelName(C)
|
|
16345
16369
|
}, null, 8, ["onClick"])
|
|
16346
16370
|
])) : createCommentVNode("", !0)
|
|
16347
16371
|
]),
|
|
@@ -16351,10 +16375,10 @@ function _sfc_render$P(e, t, o, r, n, i) {
|
|
|
16351
16375
|
_: 2
|
|
16352
16376
|
}, 1024)
|
|
16353
16377
|
]),
|
|
16354
|
-
n.selectedFieldMap[
|
|
16378
|
+
n.selectedFieldMap[C] && n.selectedFieldMap[C].sumPermission ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
16355
16379
|
createVNode(d, {
|
|
16356
|
-
setting: n.selectedFieldMap[
|
|
16357
|
-
"table-name":
|
|
16380
|
+
setting: n.selectedFieldMap[C],
|
|
16381
|
+
"table-name": C,
|
|
16358
16382
|
onCombinationParameters: i.combinationParameters
|
|
16359
16383
|
}, null, 8, ["setting", "table-name", "onCombinationParameters"])
|
|
16360
16384
|
])) : createCommentVNode("", !0)
|
|
@@ -16638,7 +16662,7 @@ const SystemRoleTree = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _s
|
|
|
16638
16662
|
style: { width: "100%", "vertical-align": "middle" }
|
|
16639
16663
|
}, _hoisted_2$e = { class: "el-dropdown-link" }, _hoisted_3$3 = /* @__PURE__ */ createElementVNode("i", { class: "fa fa-search" }, null, -1);
|
|
16640
16664
|
function _sfc_render$N(e, t, o, r, n, i) {
|
|
16641
|
-
const s = resolveComponent("el-checkbox"), l = resolveComponent("el-checkbox-group"), a = resolveComponent("el-col"), u = resolveComponent("el-dropdown-item"), c = resolveComponent("el-dropdown-menu"), d = resolveComponent("el-dropdown"), m = resolveComponent("el-button"),
|
|
16665
|
+
const s = resolveComponent("el-checkbox"), l = resolveComponent("el-checkbox-group"), a = resolveComponent("el-col"), u = resolveComponent("el-dropdown-item"), c = resolveComponent("el-dropdown-menu"), d = resolveComponent("el-dropdown"), m = resolveComponent("el-button"), b = resolveComponent("el-row"), C = resolveComponent("el-input"), w = resolveComponent("department-user-tree"), E = resolveComponent("department-tree"), p = resolveComponent("workgroup-tree"), f = resolveComponent("system-role-tree"), g = resolveComponent("form-fields"), v = resolveComponent("el-form-item");
|
|
16642
16666
|
return openBlock(), createBlock(v, {
|
|
16643
16667
|
label: o.label,
|
|
16644
16668
|
"label-width": o.labelWidth
|
|
@@ -16698,7 +16722,7 @@ function _sfc_render$N(e, t, o, r, n, i) {
|
|
|
16698
16722
|
n.showUserList ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
16699
16723
|
createVNode(a, null, {
|
|
16700
16724
|
default: withCtx(() => [
|
|
16701
|
-
createVNode(
|
|
16725
|
+
createVNode(b, null, {
|
|
16702
16726
|
default: withCtx(() => [
|
|
16703
16727
|
createVNode(a, { span: 4 }, {
|
|
16704
16728
|
default: withCtx(() => [
|
|
@@ -16801,11 +16825,11 @@ function _sfc_render$N(e, t, o, r, n, i) {
|
|
|
16801
16825
|
]),
|
|
16802
16826
|
_: 1
|
|
16803
16827
|
}),
|
|
16804
|
-
createVNode(
|
|
16828
|
+
createVNode(b, null, {
|
|
16805
16829
|
default: withCtx(() => [
|
|
16806
16830
|
createVNode(a, null, {
|
|
16807
16831
|
default: withCtx(() => [
|
|
16808
|
-
createVNode(
|
|
16832
|
+
createVNode(C, {
|
|
16809
16833
|
modelValue: n.selectedUsersShowValue,
|
|
16810
16834
|
"onUpdate:modelValue": t[6] || (t[6] = (k) => n.selectedUsersShowValue = k),
|
|
16811
16835
|
type: "textarea",
|
|
@@ -16925,8 +16949,8 @@ const UserSelection = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sf
|
|
|
16925
16949
|
methods: {}
|
|
16926
16950
|
};
|
|
16927
16951
|
function _sfc_render$M(e, t, o, r, n, i) {
|
|
16928
|
-
const s = resolveComponent("el-switch"), l = resolveComponent("el-form-item"), a = resolveComponent("editable-fields"), u = resolveComponent("editable-child-fields"), c = resolveComponent("el-checkbox"), d = resolveComponent("additional-condition"), m = resolveComponent("user-selection"),
|
|
16929
|
-
return openBlock(), createBlock(
|
|
16952
|
+
const s = resolveComponent("el-switch"), l = resolveComponent("el-form-item"), a = resolveComponent("editable-fields"), u = resolveComponent("editable-child-fields"), c = resolveComponent("el-checkbox"), d = resolveComponent("additional-condition"), m = resolveComponent("user-selection"), b = resolveComponent("el-card"), C = resolveComponent("el-form");
|
|
16953
|
+
return openBlock(), createBlock(C, { model: n.formModel }, {
|
|
16930
16954
|
default: withCtx(() => [
|
|
16931
16955
|
createVNode(l, {
|
|
16932
16956
|
label: e.$t("workflowEditor.task.allowEditingForms")
|
|
@@ -17198,7 +17222,7 @@ function _sfc_render$M(e, t, o, r, n, i) {
|
|
|
17198
17222
|
]),
|
|
17199
17223
|
_: 1
|
|
17200
17224
|
}, 8, ["label"]),
|
|
17201
|
-
n.formModel.attachment.permission ? (openBlock(), createBlock(
|
|
17225
|
+
n.formModel.attachment.permission ? (openBlock(), createBlock(b, {
|
|
17202
17226
|
key: 0,
|
|
17203
17227
|
class: "box-card"
|
|
17204
17228
|
}, {
|
|
@@ -17397,14 +17421,14 @@ const PermissionSettings$2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["rende
|
|
|
17397
17421
|
style: { width: "100%" }
|
|
17398
17422
|
}, _hoisted_2$d = { key: 1 }, _hoisted_3$2 = { key: 0 };
|
|
17399
17423
|
function _sfc_render$L(e, t, o, r, n, i) {
|
|
17400
|
-
const s = resolveComponent("el-radio"), l = resolveComponent("el-radio-group"), a = resolveComponent("common-user-condition"), u = resolveComponent("el-form-item"), c = resolveComponent("el-input"), d = resolveComponent("form-fields"), m = resolveComponent("el-checkbox"),
|
|
17401
|
-
return openBlock(), createBlock(
|
|
17424
|
+
const s = resolveComponent("el-radio"), l = resolveComponent("el-radio-group"), a = resolveComponent("common-user-condition"), u = resolveComponent("el-form-item"), c = resolveComponent("el-input"), d = resolveComponent("form-fields"), m = resolveComponent("el-checkbox"), b = resolveComponent("el-form");
|
|
17425
|
+
return openBlock(), createBlock(b, { model: n.formModel }, {
|
|
17402
17426
|
default: withCtx(() => [
|
|
17403
17427
|
createVNode(u, { label: "" }, {
|
|
17404
17428
|
default: withCtx(() => [
|
|
17405
17429
|
createVNode(l, {
|
|
17406
17430
|
modelValue: n.formModel.transactor,
|
|
17407
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
17431
|
+
"onUpdate:modelValue": t[0] || (t[0] = (C) => n.formModel.transactor = C),
|
|
17408
17432
|
onChange: i.transactorChange
|
|
17409
17433
|
}, {
|
|
17410
17434
|
default: withCtx(() => [
|
|
@@ -17447,7 +17471,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17447
17471
|
n.formModel.transactor === "byCondition" ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
17448
17472
|
createVNode(a, {
|
|
17449
17473
|
modelValue: n.formModel.userCondition,
|
|
17450
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
17474
|
+
"onUpdate:modelValue": t[1] || (t[1] = (C) => n.formModel.userCondition = C),
|
|
17451
17475
|
"used-in": "transactor"
|
|
17452
17476
|
}, null, 8, ["modelValue"])
|
|
17453
17477
|
])) : createCommentVNode("", !0)
|
|
@@ -17464,7 +17488,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17464
17488
|
default: withCtx(() => [
|
|
17465
17489
|
createVNode(c, {
|
|
17466
17490
|
value: i.formatLabel(n.formModel.selectedField),
|
|
17467
|
-
onClick: t[2] || (t[2] = (
|
|
17491
|
+
onClick: t[2] || (t[2] = (C) => n.showFormFields = !0)
|
|
17468
17492
|
}, null, 8, ["value"]),
|
|
17469
17493
|
n.showFormFields ? (openBlock(), createBlock(d, {
|
|
17470
17494
|
key: 0,
|
|
@@ -17480,7 +17504,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17480
17504
|
default: withCtx(() => [
|
|
17481
17505
|
createVNode(m, {
|
|
17482
17506
|
modelValue: n.formModel.additionalCondition.onlyInCreatorDepartment,
|
|
17483
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
17507
|
+
"onUpdate:modelValue": t[3] || (t[3] = (C) => n.formModel.additionalCondition.onlyInCreatorDepartment = C)
|
|
17484
17508
|
}, {
|
|
17485
17509
|
default: withCtx(() => [
|
|
17486
17510
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.process.handlingYyThePersonnelOfTheDepartmentOfTheInitiator")), 1)
|
|
@@ -17489,7 +17513,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17489
17513
|
}, 8, ["modelValue"]),
|
|
17490
17514
|
createVNode(m, {
|
|
17491
17515
|
modelValue: n.formModel.additionalCondition.withCreatorDepartment,
|
|
17492
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
17516
|
+
"onUpdate:modelValue": t[4] || (t[4] = (C) => n.formModel.additionalCondition.withCreatorDepartment = C)
|
|
17493
17517
|
}, {
|
|
17494
17518
|
default: withCtx(() => [
|
|
17495
17519
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.process.personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling")), 1)
|
|
@@ -17498,7 +17522,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17498
17522
|
}, 8, ["modelValue"]),
|
|
17499
17523
|
createVNode(m, {
|
|
17500
17524
|
modelValue: n.formModel.additionalCondition.selectOneFromMultiple,
|
|
17501
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
17525
|
+
"onUpdate:modelValue": t[5] || (t[5] = (C) => n.formModel.additionalCondition.selectOneFromMultiple = C)
|
|
17502
17526
|
}, {
|
|
17503
17527
|
default: withCtx(() => [
|
|
17504
17528
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.process.selectSpecificHandler")), 1)
|
|
@@ -17507,7 +17531,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17507
17531
|
}, 8, ["modelValue"]),
|
|
17508
17532
|
createVNode(m, {
|
|
17509
17533
|
modelValue: n.formModel.additionalCondition.selectOneFromDept,
|
|
17510
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
17534
|
+
"onUpdate:modelValue": t[6] || (t[6] = (C) => n.formModel.additionalCondition.selectOneFromDept = C)
|
|
17511
17535
|
}, {
|
|
17512
17536
|
default: withCtx(() => [
|
|
17513
17537
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.process.selectOneFromDept")), 1)
|
|
@@ -17517,7 +17541,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17517
17541
|
o.isSubprocess ? (openBlock(), createBlock(m, {
|
|
17518
17542
|
key: 0,
|
|
17519
17543
|
modelValue: n.formModel.additionalCondition.generateOneInstanceFromDept,
|
|
17520
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
17544
|
+
"onUpdate:modelValue": t[7] || (t[7] = (C) => n.formModel.additionalCondition.generateOneInstanceFromDept = C)
|
|
17521
17545
|
}, {
|
|
17522
17546
|
default: withCtx(() => [
|
|
17523
17547
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.process.generateOneInstanceFromDept")), 1)
|
|
@@ -17527,7 +17551,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17527
17551
|
n.isCountersign ? (openBlock(), createBlock(m, {
|
|
17528
17552
|
key: 1,
|
|
17529
17553
|
modelValue: n.formModel.additionalCondition.activateOneVoteVeto,
|
|
17530
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
17554
|
+
"onUpdate:modelValue": t[8] || (t[8] = (C) => n.formModel.additionalCondition.activateOneVoteVeto = C)
|
|
17531
17555
|
}, {
|
|
17532
17556
|
default: withCtx(() => [
|
|
17533
17557
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.process.activateOneVoteVeto")), 1)
|
|
@@ -17544,7 +17568,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17544
17568
|
default: withCtx(() => [
|
|
17545
17569
|
createVNode(l, {
|
|
17546
17570
|
modelValue: n.formModel.additionalCondition.selectType,
|
|
17547
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
17571
|
+
"onUpdate:modelValue": t[9] || (t[9] = (C) => n.formModel.additionalCondition.selectType = C)
|
|
17548
17572
|
}, {
|
|
17549
17573
|
default: withCtx(() => [
|
|
17550
17574
|
createVNode(s, { label: "customType" }, {
|
|
@@ -17573,7 +17597,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17573
17597
|
default: withCtx(() => [
|
|
17574
17598
|
createVNode(c, {
|
|
17575
17599
|
modelValue: n.formModel.additionalCondition.selectUrl,
|
|
17576
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
17600
|
+
"onUpdate:modelValue": t[10] || (t[10] = (C) => n.formModel.additionalCondition.selectUrl = C)
|
|
17577
17601
|
}, null, 8, ["modelValue"])
|
|
17578
17602
|
]),
|
|
17579
17603
|
_: 1
|
|
@@ -17592,7 +17616,7 @@ function _sfc_render$L(e, t, o, r, n, i) {
|
|
|
17592
17616
|
default: withCtx(() => [
|
|
17593
17617
|
createVNode(c, {
|
|
17594
17618
|
modelValue: n.formModel.url,
|
|
17595
|
-
"onUpdate:modelValue": t[11] || (t[11] = (
|
|
17619
|
+
"onUpdate:modelValue": t[11] || (t[11] = (C) => n.formModel.url = C),
|
|
17596
17620
|
modelModifiers: { trim: !0 },
|
|
17597
17621
|
onChange: i.handleUrlChange
|
|
17598
17622
|
}, null, 8, ["modelValue", "onChange"])
|
|
@@ -17739,7 +17763,7 @@ const TransactorSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render"
|
|
|
17739
17763
|
}
|
|
17740
17764
|
};
|
|
17741
17765
|
function _sfc_render$K(e, t, o, r, n, i) {
|
|
17742
|
-
const s = resolveComponent("el-button"), l = resolveComponent("el-row"), a = resolveComponent("el-table-column"), u = resolveComponent("el-input"), c = resolveComponent("el-option"), d = resolveComponent("el-select"), m = resolveComponent("el-table"),
|
|
17766
|
+
const s = resolveComponent("el-button"), l = resolveComponent("el-row"), a = resolveComponent("el-table-column"), u = resolveComponent("el-input"), c = resolveComponent("el-option"), d = resolveComponent("el-select"), m = resolveComponent("el-table"), b = resolveComponent("form-fields");
|
|
17743
17767
|
return openBlock(), createElementBlock("div", null, [
|
|
17744
17768
|
createVNode(l, { style: { "margin-bottom": "5px" } }, {
|
|
17745
17769
|
default: withCtx(() => [
|
|
@@ -17788,13 +17812,13 @@ function _sfc_render$K(e, t, o, r, n, i) {
|
|
|
17788
17812
|
label: e.$t("workflowEditor.common.name"),
|
|
17789
17813
|
width: "150"
|
|
17790
17814
|
}, {
|
|
17791
|
-
default: withCtx((
|
|
17815
|
+
default: withCtx((C) => [
|
|
17792
17816
|
createVNode(u, {
|
|
17793
|
-
value: i.getFieldLabel(
|
|
17817
|
+
value: i.getFieldLabel(C.row.name),
|
|
17794
17818
|
placeholder: e.$t("workflowEditorMessage.pleaseEnterContent"),
|
|
17795
17819
|
readonly: "",
|
|
17796
17820
|
onClick: t[0] || (t[0] = (w) => n.showFormFields = !0),
|
|
17797
|
-
onBlur: (w) => i.checkName(
|
|
17821
|
+
onBlur: (w) => i.checkName(C.row.name)
|
|
17798
17822
|
}, null, 8, ["value", "placeholder", "onBlur"])
|
|
17799
17823
|
]),
|
|
17800
17824
|
_: 1
|
|
@@ -17804,16 +17828,16 @@ function _sfc_render$K(e, t, o, r, n, i) {
|
|
|
17804
17828
|
label: e.$t("workflowEditor.common.fieldValue"),
|
|
17805
17829
|
width: "200"
|
|
17806
17830
|
}, {
|
|
17807
|
-
default: withCtx((
|
|
17831
|
+
default: withCtx((C) => [
|
|
17808
17832
|
createVNode(d, {
|
|
17809
|
-
modelValue:
|
|
17810
|
-
"onUpdate:modelValue": (w) =>
|
|
17833
|
+
modelValue: C.row.value,
|
|
17834
|
+
"onUpdate:modelValue": (w) => C.row.value = w,
|
|
17811
17835
|
multiple: "",
|
|
17812
17836
|
filterable: "",
|
|
17813
17837
|
"allow-create": "",
|
|
17814
17838
|
"default-first-option": "",
|
|
17815
17839
|
placeholder: e.$t("workflowEditorMessage.pleaseSelect"),
|
|
17816
|
-
onBlur: (w) => i.checkValue(
|
|
17840
|
+
onBlur: (w) => i.checkValue(C.row.value)
|
|
17817
17841
|
}, {
|
|
17818
17842
|
default: withCtx(() => [
|
|
17819
17843
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.keys, (w) => (openBlock(), createBlock(c, {
|
|
@@ -17831,10 +17855,10 @@ function _sfc_render$K(e, t, o, r, n, i) {
|
|
|
17831
17855
|
prop: "separator",
|
|
17832
17856
|
label: e.$t("workflowEditor.common.separator")
|
|
17833
17857
|
}, {
|
|
17834
|
-
default: withCtx((
|
|
17858
|
+
default: withCtx((C) => [
|
|
17835
17859
|
createVNode(u, {
|
|
17836
|
-
modelValue:
|
|
17837
|
-
"onUpdate:modelValue": (w) =>
|
|
17860
|
+
modelValue: C.row.separator,
|
|
17861
|
+
"onUpdate:modelValue": (w) => C.row.separator = w,
|
|
17838
17862
|
modelModifiers: { trim: !0 }
|
|
17839
17863
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
17840
17864
|
]),
|
|
@@ -17844,10 +17868,10 @@ function _sfc_render$K(e, t, o, r, n, i) {
|
|
|
17844
17868
|
prop: "fillType",
|
|
17845
17869
|
label: e.$t("workflowEditor.common.fillInMethod")
|
|
17846
17870
|
}, {
|
|
17847
|
-
default: withCtx((
|
|
17871
|
+
default: withCtx((C) => [
|
|
17848
17872
|
createVNode(d, {
|
|
17849
|
-
modelValue:
|
|
17850
|
-
"onUpdate:modelValue": (w) =>
|
|
17873
|
+
modelValue: C.row.fillType,
|
|
17874
|
+
"onUpdate:modelValue": (w) => C.row.fillType = w
|
|
17851
17875
|
}, {
|
|
17852
17876
|
default: withCtx(() => [
|
|
17853
17877
|
createVNode(c, {
|
|
@@ -17872,10 +17896,10 @@ function _sfc_render$K(e, t, o, r, n, i) {
|
|
|
17872
17896
|
prop: "fillTime",
|
|
17873
17897
|
label: e.$t("workflowEditor.common.fillInTime")
|
|
17874
17898
|
}, {
|
|
17875
|
-
default: withCtx((
|
|
17899
|
+
default: withCtx((C) => [
|
|
17876
17900
|
createVNode(d, {
|
|
17877
|
-
modelValue:
|
|
17878
|
-
"onUpdate:modelValue": (w) =>
|
|
17901
|
+
modelValue: C.row.fillTime,
|
|
17902
|
+
"onUpdate:modelValue": (w) => C.row.fillTime = w
|
|
17879
17903
|
}, {
|
|
17880
17904
|
default: withCtx(() => [
|
|
17881
17905
|
createVNode(c, {
|
|
@@ -17895,7 +17919,7 @@ function _sfc_render$K(e, t, o, r, n, i) {
|
|
|
17895
17919
|
]),
|
|
17896
17920
|
_: 1
|
|
17897
17921
|
}, 8, ["data", "onCurrentChange"]),
|
|
17898
|
-
n.showFormFields ? (openBlock(), createBlock(
|
|
17922
|
+
n.showFormFields ? (openBlock(), createBlock(b, {
|
|
17899
17923
|
key: 0,
|
|
17900
17924
|
onClose: i.setField
|
|
17901
17925
|
}, null, 8, ["onClose"])) : createCommentVNode("", !0)
|
|
@@ -18324,7 +18348,7 @@ const CommonNoticeTool = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render",
|
|
|
18324
18348
|
}
|
|
18325
18349
|
}, _hoisted_1$k = { key: 0 }, _hoisted_2$c = { key: 2 };
|
|
18326
18350
|
function _sfc_render$G(e, t, o, r, n, i) {
|
|
18327
|
-
const s = resolveComponent("el-switch"), l = resolveComponent("el-form-item"), a = resolveComponent("common-notice-tool"), u = resolveComponent("select-mail-templates"), c = resolveComponent("el-input-number"), d = resolveComponent("el-option"), m = resolveComponent("el-select"),
|
|
18351
|
+
const s = resolveComponent("el-switch"), l = resolveComponent("el-form-item"), a = resolveComponent("common-notice-tool"), u = resolveComponent("select-mail-templates"), c = resolveComponent("el-input-number"), d = resolveComponent("el-option"), m = resolveComponent("el-select"), b = resolveComponent("el-radio"), C = resolveComponent("el-checkbox"), w = resolveComponent("common-user-condition"), E = resolveComponent("el-form");
|
|
18328
18352
|
return openBlock(), createBlock(E, {
|
|
18329
18353
|
model: n.model,
|
|
18330
18354
|
"label-width": "80px"
|
|
@@ -18438,7 +18462,7 @@ function _sfc_render$G(e, t, o, r, n, i) {
|
|
|
18438
18462
|
}, 8, ["label"]),
|
|
18439
18463
|
createVNode(l, null, {
|
|
18440
18464
|
default: withCtx(() => [
|
|
18441
|
-
createVNode(
|
|
18465
|
+
createVNode(b, {
|
|
18442
18466
|
modelValue: n.showNotice,
|
|
18443
18467
|
"onUpdate:modelValue": t[8] || (t[8] = (p) => n.showNotice = p),
|
|
18444
18468
|
label: !1
|
|
@@ -18448,7 +18472,7 @@ function _sfc_render$G(e, t, o, r, n, i) {
|
|
|
18448
18472
|
]),
|
|
18449
18473
|
_: 1
|
|
18450
18474
|
}, 8, ["modelValue"]),
|
|
18451
|
-
createVNode(
|
|
18475
|
+
createVNode(b, {
|
|
18452
18476
|
modelValue: n.showNotice,
|
|
18453
18477
|
"onUpdate:modelValue": t[9] || (t[9] = (p) => n.showNotice = p),
|
|
18454
18478
|
label: !0
|
|
@@ -18491,7 +18515,7 @@ function _sfc_render$G(e, t, o, r, n, i) {
|
|
|
18491
18515
|
style: { "margin-bottom": "5px" }
|
|
18492
18516
|
}, {
|
|
18493
18517
|
default: withCtx(() => [
|
|
18494
|
-
createVNode(
|
|
18518
|
+
createVNode(C, {
|
|
18495
18519
|
modelValue: n.model.containTransferUser,
|
|
18496
18520
|
"onUpdate:modelValue": t[12] || (t[12] = (p) => n.model.containTransferUser = p)
|
|
18497
18521
|
}, {
|
|
@@ -18518,7 +18542,7 @@ function _sfc_render$G(e, t, o, r, n, i) {
|
|
|
18518
18542
|
style: { "margin-bottom": "5px" }
|
|
18519
18543
|
}, {
|
|
18520
18544
|
default: withCtx(() => [
|
|
18521
|
-
createVNode(
|
|
18545
|
+
createVNode(C, {
|
|
18522
18546
|
modelValue: n.model.containNoticeUser,
|
|
18523
18547
|
"onUpdate:modelValue": t[14] || (t[14] = (p) => n.model.containNoticeUser = p)
|
|
18524
18548
|
}, {
|
|
@@ -18598,9 +18622,9 @@ const Reminder = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_ren
|
|
|
18598
18622
|
}
|
|
18599
18623
|
}, _hoisted_1$j = { class: "clearfix" }, _hoisted_2$b = { class: "sub-li" }, _hoisted_3$1 = { class: "sub-li" }, _hoisted_4 = { class: "clearfix" }, _hoisted_5 = { class: "sub-li" }, _hoisted_6 = { class: "sub-li" }, _hoisted_7 = { class: "sub-li" }, _hoisted_8 = { class: "sub-li" };
|
|
18600
18624
|
function _sfc_render$F(e, t, o, r, n, i) {
|
|
18601
|
-
const s = resolveComponent("Warning"), l = resolveComponent("el-icon"), a = resolveComponent("el-tooltip"), u = resolveComponent("common-notice-tool"), c = resolveComponent("select-mail-templates"), d = resolveComponent("el-form-item"), m = resolveComponent("el-form"),
|
|
18625
|
+
const s = resolveComponent("Warning"), l = resolveComponent("el-icon"), a = resolveComponent("el-tooltip"), u = resolveComponent("common-notice-tool"), c = resolveComponent("select-mail-templates"), d = resolveComponent("el-form-item"), m = resolveComponent("el-form"), b = resolveComponent("el-card"), C = resolveComponent("reminder");
|
|
18602
18626
|
return openBlock(), createElementBlock("div", null, [
|
|
18603
|
-
createVNode(
|
|
18627
|
+
createVNode(b, { class: "box-card" }, {
|
|
18604
18628
|
header: withCtx(() => [
|
|
18605
18629
|
createElementVNode("div", _hoisted_1$j, [
|
|
18606
18630
|
createElementVNode("span", null, toDisplayString$1(e.$t("workflowEditor.common.taskNotice")), 1),
|
|
@@ -18671,7 +18695,7 @@ function _sfc_render$F(e, t, o, r, n, i) {
|
|
|
18671
18695
|
]),
|
|
18672
18696
|
_: 1
|
|
18673
18697
|
}),
|
|
18674
|
-
createVNode(
|
|
18698
|
+
createVNode(b, {
|
|
18675
18699
|
class: "box-card",
|
|
18676
18700
|
style: { "margin-top": "10px" }
|
|
18677
18701
|
}, {
|
|
@@ -18702,7 +18726,7 @@ function _sfc_render$F(e, t, o, r, n, i) {
|
|
|
18702
18726
|
])
|
|
18703
18727
|
]),
|
|
18704
18728
|
default: withCtx(() => [
|
|
18705
|
-
createVNode(
|
|
18729
|
+
createVNode(C, {
|
|
18706
18730
|
modelValue: n.reminderObj,
|
|
18707
18731
|
"onUpdate:modelValue": t[3] || (t[3] = (w) => n.reminderObj = w),
|
|
18708
18732
|
isProcess: o.isProcess
|
|
@@ -18754,7 +18778,7 @@ const NoticeReminder = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _s
|
|
|
18754
18778
|
}
|
|
18755
18779
|
};
|
|
18756
18780
|
function _sfc_render$E(e, t, o, r, n, i) {
|
|
18757
|
-
const s = resolveComponent("basic-properties"), l = resolveComponent("el-tab-pane"), a = resolveComponent("transactor-settings"), u = resolveComponent("permission-settings"), c = resolveComponent("auto-filled-fields"), d = resolveComponent("notice-reminder"), m = resolveComponent("events"),
|
|
18781
|
+
const s = resolveComponent("basic-properties"), l = resolveComponent("el-tab-pane"), a = resolveComponent("transactor-settings"), u = resolveComponent("permission-settings"), c = resolveComponent("auto-filled-fields"), d = resolveComponent("notice-reminder"), m = resolveComponent("events"), b = resolveComponent("variables"), C = resolveComponent("el-tabs"), w = resolveComponent("el-dialog");
|
|
18758
18782
|
return openBlock(), createBlock(w, {
|
|
18759
18783
|
"model-value": "",
|
|
18760
18784
|
top: "10vh",
|
|
@@ -18768,7 +18792,7 @@ function _sfc_render$E(e, t, o, r, n, i) {
|
|
|
18768
18792
|
onClosed: t[10] || (t[10] = (E) => e.$emit("closed"))
|
|
18769
18793
|
}, {
|
|
18770
18794
|
default: withCtx(() => [
|
|
18771
|
-
createVNode(
|
|
18795
|
+
createVNode(C, {
|
|
18772
18796
|
modelValue: n.activeTab,
|
|
18773
18797
|
"onUpdate:modelValue": t[6] || (t[6] = (E) => n.activeTab = E),
|
|
18774
18798
|
type: "border-card",
|
|
@@ -18856,7 +18880,7 @@ function _sfc_render$E(e, t, o, r, n, i) {
|
|
|
18856
18880
|
name: "variables"
|
|
18857
18881
|
}, {
|
|
18858
18882
|
default: withCtx(() => [
|
|
18859
|
-
createVNode(
|
|
18883
|
+
createVNode(b, {
|
|
18860
18884
|
model: o.model.ref.variables
|
|
18861
18885
|
}, null, 8, ["model"])
|
|
18862
18886
|
]),
|
|
@@ -19001,7 +19025,7 @@ function requireString_decoder() {
|
|
|
19001
19025
|
this.fillLast = a, f = 4;
|
|
19002
19026
|
break;
|
|
19003
19027
|
case "base64":
|
|
19004
|
-
this.text =
|
|
19028
|
+
this.text = b, this.end = C, f = 3;
|
|
19005
19029
|
break;
|
|
19006
19030
|
default:
|
|
19007
19031
|
this.write = w, this.end = E;
|
|
@@ -19085,11 +19109,11 @@ function requireString_decoder() {
|
|
|
19085
19109
|
}
|
|
19086
19110
|
return f;
|
|
19087
19111
|
}
|
|
19088
|
-
function
|
|
19112
|
+
function b(p, f) {
|
|
19089
19113
|
var g = (p.length - f) % 3;
|
|
19090
19114
|
return g === 0 ? p.toString("base64", f) : (this.lastNeed = 3 - g, this.lastTotal = 3, g === 1 ? this.lastChar[0] = p[p.length - 1] : (this.lastChar[0] = p[p.length - 2], this.lastChar[1] = p[p.length - 1]), p.toString("base64", f, p.length - g));
|
|
19091
19115
|
}
|
|
19092
|
-
function
|
|
19116
|
+
function C(p) {
|
|
19093
19117
|
var f = p && p.length ? this.write(p) : "";
|
|
19094
19118
|
return this.lastNeed ? f + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : f;
|
|
19095
19119
|
}
|
|
@@ -19103,8 +19127,8 @@ function requireString_decoder() {
|
|
|
19103
19127
|
}
|
|
19104
19128
|
(function(e) {
|
|
19105
19129
|
(function(t) {
|
|
19106
|
-
t.parser = function(
|
|
19107
|
-
return new r(
|
|
19130
|
+
t.parser = function(y, _) {
|
|
19131
|
+
return new r(y, _);
|
|
19108
19132
|
}, t.SAXParser = r, t.SAXStream = c, t.createStream = u, t.MAX_BUFFER_LENGTH = 64 * 1024;
|
|
19109
19133
|
var o = [
|
|
19110
19134
|
"comment",
|
|
@@ -19140,52 +19164,52 @@ function requireString_decoder() {
|
|
|
19140
19164
|
"opennamespace",
|
|
19141
19165
|
"closenamespace"
|
|
19142
19166
|
];
|
|
19143
|
-
function r(
|
|
19167
|
+
function r(y, _) {
|
|
19144
19168
|
if (!(this instanceof r))
|
|
19145
|
-
return new r(
|
|
19169
|
+
return new r(y, _);
|
|
19146
19170
|
var P = this;
|
|
19147
|
-
i(P), P.q = P.c = "", P.bufferCheckPosition = t.MAX_BUFFER_LENGTH, P.opt = _ || {}, P.opt.lowercase = P.opt.lowercase || P.opt.lowercasetags, P.looseCase = P.opt.lowercase ? "toLowerCase" : "toUpperCase", P.tags = [], P.closed = P.closedRoot = P.sawRoot = !1, P.tag = P.error = null, P.strict = !!
|
|
19171
|
+
i(P), P.q = P.c = "", P.bufferCheckPosition = t.MAX_BUFFER_LENGTH, P.opt = _ || {}, P.opt.lowercase = P.opt.lowercase || P.opt.lowercasetags, P.looseCase = P.opt.lowercase ? "toLowerCase" : "toUpperCase", P.tags = [], P.closed = P.closedRoot = P.sawRoot = !1, P.tag = P.error = null, P.strict = !!y, P.noscript = !!(y || P.opt.noscript), P.state = S.BEGIN, P.strictEntities = P.opt.strictEntities, P.ENTITIES = P.strictEntities ? Object.create(t.XML_ENTITIES) : Object.create(t.ENTITIES), P.attribList = [], P.opt.xmlns && (P.ns = Object.create(w)), P.trackPosition = P.opt.position !== !1, P.trackPosition && (P.position = P.line = P.column = 0), H(P, "onready");
|
|
19148
19172
|
}
|
|
19149
|
-
Object.create || (Object.create = function(
|
|
19173
|
+
Object.create || (Object.create = function(y) {
|
|
19150
19174
|
function _() {
|
|
19151
19175
|
}
|
|
19152
|
-
_.prototype =
|
|
19176
|
+
_.prototype = y;
|
|
19153
19177
|
var P = new _();
|
|
19154
19178
|
return P;
|
|
19155
|
-
}), Object.keys || (Object.keys = function(
|
|
19179
|
+
}), Object.keys || (Object.keys = function(y) {
|
|
19156
19180
|
var _ = [];
|
|
19157
|
-
for (var P in
|
|
19158
|
-
|
|
19181
|
+
for (var P in y)
|
|
19182
|
+
y.hasOwnProperty(P) && _.push(P);
|
|
19159
19183
|
return _;
|
|
19160
19184
|
});
|
|
19161
|
-
function n(
|
|
19185
|
+
function n(y) {
|
|
19162
19186
|
for (var _ = Math.max(t.MAX_BUFFER_LENGTH, 10), P = 0, V = 0, R = o.length; V < R; V++) {
|
|
19163
|
-
var U =
|
|
19187
|
+
var U = y[o[V]].length;
|
|
19164
19188
|
if (U > _)
|
|
19165
19189
|
switch (o[V]) {
|
|
19166
19190
|
case "textNode":
|
|
19167
|
-
G(
|
|
19191
|
+
G(y);
|
|
19168
19192
|
break;
|
|
19169
19193
|
case "cdata":
|
|
19170
|
-
L(
|
|
19194
|
+
L(y, "oncdata", y.cdata), y.cdata = "";
|
|
19171
19195
|
break;
|
|
19172
19196
|
case "script":
|
|
19173
|
-
L(
|
|
19197
|
+
L(y, "onscript", y.script), y.script = "";
|
|
19174
19198
|
break;
|
|
19175
19199
|
default:
|
|
19176
|
-
re(
|
|
19200
|
+
re(y, "Max buffer length exceeded: " + o[V]);
|
|
19177
19201
|
}
|
|
19178
19202
|
P = Math.max(P, U);
|
|
19179
19203
|
}
|
|
19180
19204
|
var N = t.MAX_BUFFER_LENGTH - P;
|
|
19181
|
-
|
|
19205
|
+
y.bufferCheckPosition = N + y.position;
|
|
19182
19206
|
}
|
|
19183
|
-
function i(
|
|
19207
|
+
function i(y) {
|
|
19184
19208
|
for (var _ = 0, P = o.length; _ < P; _++)
|
|
19185
|
-
|
|
19209
|
+
y[o[_]] = "";
|
|
19186
19210
|
}
|
|
19187
|
-
function s(
|
|
19188
|
-
G(
|
|
19211
|
+
function s(y) {
|
|
19212
|
+
G(y), y.cdata !== "" && (L(y, "oncdata", y.cdata), y.cdata = ""), y.script !== "" && (L(y, "onscript", y.script), y.script = "");
|
|
19189
19213
|
}
|
|
19190
19214
|
r.prototype = {
|
|
19191
19215
|
end: function() {
|
|
@@ -19211,16 +19235,16 @@ function requireString_decoder() {
|
|
|
19211
19235
|
}
|
|
19212
19236
|
l || (l = function() {
|
|
19213
19237
|
});
|
|
19214
|
-
var a = t.EVENTS.filter(function(
|
|
19215
|
-
return
|
|
19238
|
+
var a = t.EVENTS.filter(function(y) {
|
|
19239
|
+
return y !== "error" && y !== "end";
|
|
19216
19240
|
});
|
|
19217
|
-
function u(
|
|
19218
|
-
return new c(
|
|
19241
|
+
function u(y, _) {
|
|
19242
|
+
return new c(y, _);
|
|
19219
19243
|
}
|
|
19220
|
-
function c(
|
|
19244
|
+
function c(y, _) {
|
|
19221
19245
|
if (!(this instanceof c))
|
|
19222
|
-
return new c(
|
|
19223
|
-
l.apply(this), this._parser = new r(
|
|
19246
|
+
return new c(y, _);
|
|
19247
|
+
l.apply(this), this._parser = new r(y, _), this.writable = !0, this.readable = !0;
|
|
19224
19248
|
var P = this;
|
|
19225
19249
|
this._parser.onend = function() {
|
|
19226
19250
|
P.emit("end");
|
|
@@ -19245,40 +19269,40 @@ function requireString_decoder() {
|
|
|
19245
19269
|
constructor: {
|
|
19246
19270
|
value: c
|
|
19247
19271
|
}
|
|
19248
|
-
}), c.prototype.write = function(
|
|
19249
|
-
if (typeof Buffer == "function" && typeof Buffer.isBuffer == "function" && Buffer.isBuffer(
|
|
19272
|
+
}), c.prototype.write = function(y) {
|
|
19273
|
+
if (typeof Buffer == "function" && typeof Buffer.isBuffer == "function" && Buffer.isBuffer(y)) {
|
|
19250
19274
|
if (!this._decoder) {
|
|
19251
19275
|
var _ = requireString_decoder().StringDecoder;
|
|
19252
19276
|
this._decoder = new _("utf8");
|
|
19253
19277
|
}
|
|
19254
|
-
|
|
19278
|
+
y = this._decoder.write(y);
|
|
19255
19279
|
}
|
|
19256
|
-
return this._parser.write(
|
|
19257
|
-
}, c.prototype.end = function(
|
|
19258
|
-
return
|
|
19259
|
-
}, c.prototype.on = function(
|
|
19280
|
+
return this._parser.write(y.toString()), this.emit("data", y), !0;
|
|
19281
|
+
}, c.prototype.end = function(y) {
|
|
19282
|
+
return y && y.length && this.write(y), this._parser.end(), !0;
|
|
19283
|
+
}, c.prototype.on = function(y, _) {
|
|
19260
19284
|
var P = this;
|
|
19261
|
-
return !P._parser["on" +
|
|
19285
|
+
return !P._parser["on" + y] && a.indexOf(y) !== -1 && (P._parser["on" + y] = function() {
|
|
19262
19286
|
var V = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
19263
|
-
V.splice(0, 0,
|
|
19264
|
-
}), l.prototype.on.call(P,
|
|
19287
|
+
V.splice(0, 0, y), P.emit.apply(P, V);
|
|
19288
|
+
}), l.prototype.on.call(P, y, _);
|
|
19265
19289
|
};
|
|
19266
|
-
var d = "[CDATA[", m = "DOCTYPE",
|
|
19267
|
-
function v(
|
|
19268
|
-
return
|
|
19269
|
-
` ||
|
|
19290
|
+
var d = "[CDATA[", m = "DOCTYPE", b = "http://www.w3.org/XML/1998/namespace", C = "http://www.w3.org/2000/xmlns/", w = { xml: b, xmlns: C }, E = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, p = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, f = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, g = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
19291
|
+
function v(y) {
|
|
19292
|
+
return y === " " || y === `
|
|
19293
|
+
` || y === "\r" || y === " ";
|
|
19270
19294
|
}
|
|
19271
|
-
function k(
|
|
19272
|
-
return
|
|
19295
|
+
function k(y) {
|
|
19296
|
+
return y === '"' || y === "'";
|
|
19273
19297
|
}
|
|
19274
|
-
function $(
|
|
19275
|
-
return
|
|
19298
|
+
function $(y) {
|
|
19299
|
+
return y === ">" || v(y);
|
|
19276
19300
|
}
|
|
19277
|
-
function O(
|
|
19278
|
-
return
|
|
19301
|
+
function O(y, _) {
|
|
19302
|
+
return y.test(_);
|
|
19279
19303
|
}
|
|
19280
|
-
function x(
|
|
19281
|
-
return !O(
|
|
19304
|
+
function x(y, _) {
|
|
19305
|
+
return !O(y, _);
|
|
19282
19306
|
}
|
|
19283
19307
|
var S = 0;
|
|
19284
19308
|
t.STATE = {
|
|
@@ -19614,157 +19638,157 @@ function requireString_decoder() {
|
|
|
19614
19638
|
clubs: 9827,
|
|
19615
19639
|
hearts: 9829,
|
|
19616
19640
|
diams: 9830
|
|
19617
|
-
}, Object.keys(t.ENTITIES).forEach(function(
|
|
19618
|
-
var _ = t.ENTITIES[
|
|
19619
|
-
t.ENTITIES[
|
|
19641
|
+
}, Object.keys(t.ENTITIES).forEach(function(y) {
|
|
19642
|
+
var _ = t.ENTITIES[y], P = typeof _ == "number" ? String.fromCharCode(_) : _;
|
|
19643
|
+
t.ENTITIES[y] = P;
|
|
19620
19644
|
});
|
|
19621
19645
|
for (var B in t.STATE)
|
|
19622
19646
|
t.STATE[t.STATE[B]] = B;
|
|
19623
19647
|
S = t.STATE;
|
|
19624
|
-
function H(
|
|
19625
|
-
|
|
19648
|
+
function H(y, _, P) {
|
|
19649
|
+
y[_] && y[_](P);
|
|
19626
19650
|
}
|
|
19627
|
-
function L(
|
|
19628
|
-
|
|
19651
|
+
function L(y, _, P) {
|
|
19652
|
+
y.textNode && G(y), H(y, _, P);
|
|
19629
19653
|
}
|
|
19630
|
-
function G(
|
|
19631
|
-
|
|
19654
|
+
function G(y) {
|
|
19655
|
+
y.textNode = ne(y.opt, y.textNode), y.textNode && H(y, "ontext", y.textNode), y.textNode = "";
|
|
19632
19656
|
}
|
|
19633
|
-
function ne(
|
|
19634
|
-
return
|
|
19657
|
+
function ne(y, _) {
|
|
19658
|
+
return y.trim && (_ = _.trim()), y.normalize && (_ = _.replace(/\s+/g, " ")), _;
|
|
19635
19659
|
}
|
|
19636
|
-
function re(
|
|
19637
|
-
return G(
|
|
19638
|
-
Line: ` +
|
|
19639
|
-
Column: ` +
|
|
19640
|
-
Char: ` +
|
|
19660
|
+
function re(y, _) {
|
|
19661
|
+
return G(y), y.trackPosition && (_ += `
|
|
19662
|
+
Line: ` + y.line + `
|
|
19663
|
+
Column: ` + y.column + `
|
|
19664
|
+
Char: ` + y.c), _ = new Error(_), y.error = _, H(y, "onerror", _), y;
|
|
19641
19665
|
}
|
|
19642
|
-
function te(
|
|
19643
|
-
return
|
|
19666
|
+
function te(y) {
|
|
19667
|
+
return y.sawRoot && !y.closedRoot && j(y, "Unclosed root tag"), y.state !== S.BEGIN && y.state !== S.BEGIN_WHITESPACE && y.state !== S.TEXT && re(y, "Unexpected end"), G(y), y.c = "", y.closed = !0, H(y, "onend"), r.call(y, y.strict, y.opt), y;
|
|
19644
19668
|
}
|
|
19645
|
-
function j(
|
|
19646
|
-
if (typeof
|
|
19669
|
+
function j(y, _) {
|
|
19670
|
+
if (typeof y != "object" || !(y instanceof r))
|
|
19647
19671
|
throw new Error("bad call to strictFail");
|
|
19648
|
-
|
|
19672
|
+
y.strict && re(y, _);
|
|
19649
19673
|
}
|
|
19650
|
-
function z(
|
|
19651
|
-
|
|
19652
|
-
var _ =
|
|
19653
|
-
|
|
19674
|
+
function z(y) {
|
|
19675
|
+
y.strict || (y.tagName = y.tagName[y.looseCase]());
|
|
19676
|
+
var _ = y.tags[y.tags.length - 1] || y, P = y.tag = { name: y.tagName, attributes: {} };
|
|
19677
|
+
y.opt.xmlns && (P.ns = _.ns), y.attribList.length = 0, L(y, "onopentagstart", P);
|
|
19654
19678
|
}
|
|
19655
|
-
function Y(
|
|
19656
|
-
var P =
|
|
19657
|
-
return _ &&
|
|
19679
|
+
function Y(y, _) {
|
|
19680
|
+
var P = y.indexOf(":"), V = P < 0 ? ["", y] : y.split(":"), R = V[0], U = V[1];
|
|
19681
|
+
return _ && y === "xmlns" && (R = "xmlns", U = ""), { prefix: R, local: U };
|
|
19658
19682
|
}
|
|
19659
|
-
function q(
|
|
19660
|
-
if (
|
|
19661
|
-
|
|
19683
|
+
function q(y) {
|
|
19684
|
+
if (y.strict || (y.attribName = y.attribName[y.looseCase]()), y.attribList.indexOf(y.attribName) !== -1 || y.tag.attributes.hasOwnProperty(y.attribName)) {
|
|
19685
|
+
y.attribName = y.attribValue = "";
|
|
19662
19686
|
return;
|
|
19663
19687
|
}
|
|
19664
|
-
if (
|
|
19665
|
-
var _ = Y(
|
|
19688
|
+
if (y.opt.xmlns) {
|
|
19689
|
+
var _ = Y(y.attribName, !0), P = _.prefix, V = _.local;
|
|
19666
19690
|
if (P === "xmlns")
|
|
19667
|
-
if (V === "xml" &&
|
|
19691
|
+
if (V === "xml" && y.attribValue !== b)
|
|
19668
19692
|
j(
|
|
19669
|
-
|
|
19670
|
-
"xml: prefix must be bound to " +
|
|
19671
|
-
Actual: ` +
|
|
19693
|
+
y,
|
|
19694
|
+
"xml: prefix must be bound to " + b + `
|
|
19695
|
+
Actual: ` + y.attribValue
|
|
19672
19696
|
);
|
|
19673
|
-
else if (V === "xmlns" &&
|
|
19697
|
+
else if (V === "xmlns" && y.attribValue !== C)
|
|
19674
19698
|
j(
|
|
19675
|
-
|
|
19676
|
-
"xmlns: prefix must be bound to " +
|
|
19677
|
-
Actual: ` +
|
|
19699
|
+
y,
|
|
19700
|
+
"xmlns: prefix must be bound to " + C + `
|
|
19701
|
+
Actual: ` + y.attribValue
|
|
19678
19702
|
);
|
|
19679
19703
|
else {
|
|
19680
|
-
var R =
|
|
19681
|
-
R.ns === U.ns && (R.ns = Object.create(U.ns)), R.ns[V] =
|
|
19704
|
+
var R = y.tag, U = y.tags[y.tags.length - 1] || y;
|
|
19705
|
+
R.ns === U.ns && (R.ns = Object.create(U.ns)), R.ns[V] = y.attribValue;
|
|
19682
19706
|
}
|
|
19683
|
-
|
|
19707
|
+
y.attribList.push([y.attribName, y.attribValue]);
|
|
19684
19708
|
} else
|
|
19685
|
-
|
|
19686
|
-
name:
|
|
19687
|
-
value:
|
|
19709
|
+
y.tag.attributes[y.attribName] = y.attribValue, L(y, "onattribute", {
|
|
19710
|
+
name: y.attribName,
|
|
19711
|
+
value: y.attribValue
|
|
19688
19712
|
});
|
|
19689
|
-
|
|
19713
|
+
y.attribName = y.attribValue = "";
|
|
19690
19714
|
}
|
|
19691
|
-
function Q(
|
|
19692
|
-
if (
|
|
19693
|
-
var P =
|
|
19694
|
-
P.prefix = V.prefix, P.local = V.local, P.uri = P.ns[V.prefix] || "", P.prefix && !P.uri && (j(
|
|
19695
|
-
var R =
|
|
19715
|
+
function Q(y, _) {
|
|
19716
|
+
if (y.opt.xmlns) {
|
|
19717
|
+
var P = y.tag, V = Y(y.tagName);
|
|
19718
|
+
P.prefix = V.prefix, P.local = V.local, P.uri = P.ns[V.prefix] || "", P.prefix && !P.uri && (j(y, "Unbound namespace prefix: " + JSON.stringify(y.tagName)), P.uri = V.prefix);
|
|
19719
|
+
var R = y.tags[y.tags.length - 1] || y;
|
|
19696
19720
|
P.ns && R.ns !== P.ns && Object.keys(P.ns).forEach(function(fe) {
|
|
19697
|
-
L(
|
|
19721
|
+
L(y, "onopennamespace", {
|
|
19698
19722
|
prefix: fe,
|
|
19699
19723
|
uri: P.ns[fe]
|
|
19700
19724
|
});
|
|
19701
19725
|
});
|
|
19702
|
-
for (var U = 0, N =
|
|
19703
|
-
var T =
|
|
19726
|
+
for (var U = 0, N = y.attribList.length; U < N; U++) {
|
|
19727
|
+
var T = y.attribList[U], I = T[0], M = T[1], F = Y(I, !0), W = F.prefix, le = F.local, ae = W === "" ? "" : P.ns[W] || "", me = {
|
|
19704
19728
|
name: I,
|
|
19705
|
-
value:
|
|
19729
|
+
value: M,
|
|
19706
19730
|
prefix: W,
|
|
19707
19731
|
local: le,
|
|
19708
19732
|
uri: ae
|
|
19709
19733
|
};
|
|
19710
|
-
W && W !== "xmlns" && !ae && (j(
|
|
19734
|
+
W && W !== "xmlns" && !ae && (j(y, "Unbound namespace prefix: " + JSON.stringify(W)), me.uri = W), y.tag.attributes[I] = me, L(y, "onattribute", me);
|
|
19711
19735
|
}
|
|
19712
|
-
|
|
19736
|
+
y.attribList.length = 0;
|
|
19713
19737
|
}
|
|
19714
|
-
|
|
19738
|
+
y.tag.isSelfClosing = !!_, y.sawRoot = !0, y.tags.push(y.tag), L(y, "onopentag", y.tag), _ || (!y.noscript && y.tagName.toLowerCase() === "script" ? y.state = S.SCRIPT : y.state = S.TEXT, y.tag = null, y.tagName = ""), y.attribName = y.attribValue = "", y.attribList.length = 0;
|
|
19715
19739
|
}
|
|
19716
|
-
function J(
|
|
19717
|
-
if (!
|
|
19718
|
-
j(
|
|
19740
|
+
function J(y) {
|
|
19741
|
+
if (!y.tagName) {
|
|
19742
|
+
j(y, "Weird empty close tag."), y.textNode += "</>", y.state = S.TEXT;
|
|
19719
19743
|
return;
|
|
19720
19744
|
}
|
|
19721
|
-
if (
|
|
19722
|
-
if (
|
|
19723
|
-
|
|
19745
|
+
if (y.script) {
|
|
19746
|
+
if (y.tagName !== "script") {
|
|
19747
|
+
y.script += "</" + y.tagName + ">", y.tagName = "", y.state = S.SCRIPT;
|
|
19724
19748
|
return;
|
|
19725
19749
|
}
|
|
19726
|
-
L(
|
|
19750
|
+
L(y, "onscript", y.script), y.script = "";
|
|
19727
19751
|
}
|
|
19728
|
-
var _ =
|
|
19729
|
-
|
|
19752
|
+
var _ = y.tags.length, P = y.tagName;
|
|
19753
|
+
y.strict || (P = P[y.looseCase]());
|
|
19730
19754
|
for (var V = P; _--; ) {
|
|
19731
|
-
var R =
|
|
19755
|
+
var R = y.tags[_];
|
|
19732
19756
|
if (R.name !== V)
|
|
19733
|
-
j(
|
|
19757
|
+
j(y, "Unexpected close tag");
|
|
19734
19758
|
else
|
|
19735
19759
|
break;
|
|
19736
19760
|
}
|
|
19737
19761
|
if (_ < 0) {
|
|
19738
|
-
j(
|
|
19762
|
+
j(y, "Unmatched closing tag: " + y.tagName), y.textNode += "</" + y.tagName + ">", y.state = S.TEXT;
|
|
19739
19763
|
return;
|
|
19740
19764
|
}
|
|
19741
|
-
|
|
19742
|
-
for (var U =
|
|
19743
|
-
var N =
|
|
19744
|
-
|
|
19765
|
+
y.tagName = P;
|
|
19766
|
+
for (var U = y.tags.length; U-- > _; ) {
|
|
19767
|
+
var N = y.tag = y.tags.pop();
|
|
19768
|
+
y.tagName = y.tag.name, L(y, "onclosetag", y.tagName);
|
|
19745
19769
|
var T = {};
|
|
19746
19770
|
for (var I in N.ns)
|
|
19747
19771
|
T[I] = N.ns[I];
|
|
19748
|
-
var
|
|
19749
|
-
|
|
19750
|
-
var W = N.ns[
|
|
19751
|
-
L(
|
|
19772
|
+
var M = y.tags[y.tags.length - 1] || y;
|
|
19773
|
+
y.opt.xmlns && N.ns !== M.ns && Object.keys(N.ns).forEach(function(F) {
|
|
19774
|
+
var W = N.ns[F];
|
|
19775
|
+
L(y, "onclosenamespace", { prefix: F, uri: W });
|
|
19752
19776
|
});
|
|
19753
19777
|
}
|
|
19754
|
-
_ === 0 && (
|
|
19778
|
+
_ === 0 && (y.closedRoot = !0), y.tagName = y.attribValue = y.attribName = "", y.attribList.length = 0, y.state = S.TEXT;
|
|
19755
19779
|
}
|
|
19756
|
-
function se(
|
|
19757
|
-
var _ =
|
|
19758
|
-
return
|
|
19780
|
+
function se(y) {
|
|
19781
|
+
var _ = y.entity, P = _.toLowerCase(), V, R = "";
|
|
19782
|
+
return y.ENTITIES[_] ? y.ENTITIES[_] : y.ENTITIES[P] ? y.ENTITIES[P] : (_ = P, _.charAt(0) === "#" && (_.charAt(1) === "x" ? (_ = _.slice(2), V = parseInt(_, 16), R = V.toString(16)) : (_ = _.slice(1), V = parseInt(_, 10), R = V.toString(10))), _ = _.replace(/^0+/, ""), isNaN(V) || R.toLowerCase() !== _ ? (j(y, "Invalid character entity"), "&" + y.entity + ";") : String.fromCodePoint(V));
|
|
19759
19783
|
}
|
|
19760
|
-
function X(
|
|
19761
|
-
_ === "<" ? (
|
|
19784
|
+
function X(y, _) {
|
|
19785
|
+
_ === "<" ? (y.state = S.OPEN_WAKA, y.startTagPosition = y.position) : v(_) || (j(y, "Non-whitespace before first tag."), y.textNode = _, y.state = S.TEXT);
|
|
19762
19786
|
}
|
|
19763
|
-
function ie(
|
|
19787
|
+
function ie(y, _) {
|
|
19764
19788
|
var P = "";
|
|
19765
|
-
return _ <
|
|
19789
|
+
return _ < y.length && (P = y.charAt(_)), P;
|
|
19766
19790
|
}
|
|
19767
|
-
function oe(
|
|
19791
|
+
function oe(y) {
|
|
19768
19792
|
var _ = this;
|
|
19769
19793
|
if (this.error)
|
|
19770
19794
|
throw this.error;
|
|
@@ -19773,10 +19797,10 @@ Actual: ` + b.attribValue
|
|
|
19773
19797
|
_,
|
|
19774
19798
|
"Cannot write after close. Assign an onready handler."
|
|
19775
19799
|
);
|
|
19776
|
-
if (
|
|
19800
|
+
if (y === null)
|
|
19777
19801
|
return te(_);
|
|
19778
|
-
typeof
|
|
19779
|
-
for (var P = 0, V = ""; V = ie(
|
|
19802
|
+
typeof y == "object" && (y = y.toString());
|
|
19803
|
+
for (var P = 0, V = ""; V = ie(y, P++), _.c = V, !!V; )
|
|
19780
19804
|
switch (_.trackPosition && (_.position++, V === `
|
|
19781
19805
|
` ? (_.line++, _.column = 0) : _.column++), _.state) {
|
|
19782
19806
|
case S.BEGIN:
|
|
@@ -19790,9 +19814,9 @@ Actual: ` + b.attribValue
|
|
|
19790
19814
|
case S.TEXT:
|
|
19791
19815
|
if (_.sawRoot && !_.closedRoot) {
|
|
19792
19816
|
for (var R = P - 1; V && V !== "<" && V !== "&"; )
|
|
19793
|
-
V = ie(
|
|
19817
|
+
V = ie(y, P++), V && _.trackPosition && (_.position++, V === `
|
|
19794
19818
|
` ? (_.line++, _.column = 0) : _.column++);
|
|
19795
|
-
_.textNode +=
|
|
19819
|
+
_.textNode += y.substring(R, P - 1);
|
|
19796
19820
|
}
|
|
19797
19821
|
V === "<" && !(_.sawRoot && _.closedRoot && !_.strict) ? (_.state = S.OPEN_WAKA, _.startTagPosition = _.position) : (!v(V) && (!_.sawRoot || _.closedRoot) && j(_, "Text data outside of root node."), V === "&" ? _.state = S.TEXT_ENTITY : _.textNode += V);
|
|
19798
19822
|
continue;
|
|
@@ -19966,20 +19990,20 @@ Actual: ` + b.attribValue
|
|
|
19966
19990
|
}
|
|
19967
19991
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
19968
19992
|
String.fromCodePoint || function() {
|
|
19969
|
-
var
|
|
19993
|
+
var y = String.fromCharCode, _ = Math.floor, P = function() {
|
|
19970
19994
|
var V = 16384, R = [], U, N, T = -1, I = arguments.length;
|
|
19971
19995
|
if (!I)
|
|
19972
19996
|
return "";
|
|
19973
|
-
for (var
|
|
19974
|
-
var
|
|
19975
|
-
if (!isFinite(
|
|
19976
|
-
|
|
19977
|
-
|
|
19978
|
-
_(
|
|
19979
|
-
throw RangeError("Invalid code point: " +
|
|
19980
|
-
|
|
19997
|
+
for (var M = ""; ++T < I; ) {
|
|
19998
|
+
var F = Number(arguments[T]);
|
|
19999
|
+
if (!isFinite(F) || // `NaN`, `+Infinity`, or `-Infinity`
|
|
20000
|
+
F < 0 || // not a valid Unicode code point
|
|
20001
|
+
F > 1114111 || // not a valid Unicode code point
|
|
20002
|
+
_(F) !== F)
|
|
20003
|
+
throw RangeError("Invalid code point: " + F);
|
|
20004
|
+
F <= 65535 ? R.push(F) : (F -= 65536, U = (F >> 10) + 55296, N = F % 1024 + 56320, R.push(U, N)), (T + 1 === I || R.length > V) && (M += y.apply(null, R), R.length = 0);
|
|
19981
20005
|
}
|
|
19982
|
-
return
|
|
20006
|
+
return M;
|
|
19983
20007
|
};
|
|
19984
20008
|
Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", {
|
|
19985
20009
|
value: P,
|
|
@@ -20531,13 +20555,13 @@ const processService = {
|
|
|
20531
20555
|
}
|
|
20532
20556
|
};
|
|
20533
20557
|
function _sfc_render$D(e, t, o, r, n, i) {
|
|
20534
|
-
const s = resolveComponent("i18n-input"), l = resolveComponent("el-form-item"), a = resolveComponent("el-col"), u = resolveComponent("el-input"), c = resolveComponent("department-user-tree"), d = resolveComponent("el-option"), m = resolveComponent("el-select"),
|
|
20558
|
+
const s = resolveComponent("i18n-input"), l = resolveComponent("el-form-item"), a = resolveComponent("el-col"), u = resolveComponent("el-input"), c = resolveComponent("department-user-tree"), d = resolveComponent("el-option"), m = resolveComponent("el-select"), b = resolveComponent("el-cascader"), C = resolveComponent("el-row"), w = resolveComponent("el-form");
|
|
20535
20559
|
return openBlock(), createBlock(w, {
|
|
20536
20560
|
model: n.formModel,
|
|
20537
20561
|
"label-width": "100px"
|
|
20538
20562
|
}, {
|
|
20539
20563
|
default: withCtx(() => [
|
|
20540
|
-
createVNode(
|
|
20564
|
+
createVNode(C, null, {
|
|
20541
20565
|
default: withCtx(() => [
|
|
20542
20566
|
createVNode(a, { span: 12 }, {
|
|
20543
20567
|
default: withCtx(() => [
|
|
@@ -20695,7 +20719,7 @@ function _sfc_render$D(e, t, o, r, n, i) {
|
|
|
20695
20719
|
rules: [n.requiredRule]
|
|
20696
20720
|
}, {
|
|
20697
20721
|
default: withCtx(() => [
|
|
20698
|
-
createVNode(
|
|
20722
|
+
createVNode(b, {
|
|
20699
20723
|
modelValue: n.selectedForm,
|
|
20700
20724
|
"onUpdate:modelValue": t[7] || (t[7] = (E) => n.selectedForm = E),
|
|
20701
20725
|
"show-all-levels": !1,
|
|
@@ -21280,7 +21304,7 @@ function _sfc_render$y(e, t, o, r, n, i) {
|
|
|
21280
21304
|
default: withCtx(() => [
|
|
21281
21305
|
createVNode(s, {
|
|
21282
21306
|
modelValue: n.showNotice,
|
|
21283
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
21307
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => n.showNotice = b)
|
|
21284
21308
|
}, null, 8, ["modelValue"])
|
|
21285
21309
|
]),
|
|
21286
21310
|
_: 1
|
|
@@ -21288,7 +21312,7 @@ function _sfc_render$y(e, t, o, r, n, i) {
|
|
|
21288
21312
|
n.showNotice ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
21289
21313
|
createVNode(a, {
|
|
21290
21314
|
modelValue: n.model.informType,
|
|
21291
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
21315
|
+
"onUpdate:modelValue": t[1] || (t[1] = (b) => n.model.informType = b),
|
|
21292
21316
|
label: e.$t("workflowEditor.common.notificationMethod"),
|
|
21293
21317
|
"custom-msg": n.model.customMsg,
|
|
21294
21318
|
onInputMsg: i.setCustomMsg
|
|
@@ -21301,7 +21325,7 @@ function _sfc_render$y(e, t, o, r, n, i) {
|
|
|
21301
21325
|
default: withCtx(() => [
|
|
21302
21326
|
createVNode(u, {
|
|
21303
21327
|
modelValue: n.model.mailTemplateCode,
|
|
21304
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
21328
|
+
"onUpdate:modelValue": t[2] || (t[2] = (b) => n.model.mailTemplateCode = b),
|
|
21305
21329
|
onSetValue: i.setMailTemplateCode
|
|
21306
21330
|
}, null, 8, ["modelValue", "onSetValue"])
|
|
21307
21331
|
]),
|
|
@@ -21315,7 +21339,7 @@ function _sfc_render$y(e, t, o, r, n, i) {
|
|
|
21315
21339
|
default: withCtx(() => [
|
|
21316
21340
|
createVNode(u, {
|
|
21317
21341
|
modelValue: n.model.mailPointTemplateCode,
|
|
21318
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
21342
|
+
"onUpdate:modelValue": t[3] || (t[3] = (b) => n.model.mailPointTemplateCode = b),
|
|
21319
21343
|
onSetValue: i.setMailPointTemplateCode
|
|
21320
21344
|
}, null, 8, ["modelValue", "onSetValue"])
|
|
21321
21345
|
]),
|
|
@@ -21323,7 +21347,7 @@ function _sfc_render$y(e, t, o, r, n, i) {
|
|
|
21323
21347
|
}, 8, ["label"])) : createCommentVNode("", !0),
|
|
21324
21348
|
createVNode(c, {
|
|
21325
21349
|
modelValue: n.model.userCondition,
|
|
21326
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
21350
|
+
"onUpdate:modelValue": t[4] || (t[4] = (b) => n.model.userCondition = b),
|
|
21327
21351
|
label: e.$t("workflowEditor.common.addressee")
|
|
21328
21352
|
}, null, 8, ["modelValue", "label"]),
|
|
21329
21353
|
createVNode(l, {
|
|
@@ -21332,7 +21356,7 @@ function _sfc_render$y(e, t, o, r, n, i) {
|
|
|
21332
21356
|
default: withCtx(() => [
|
|
21333
21357
|
createVNode(d, {
|
|
21334
21358
|
modelValue: n.model.subject,
|
|
21335
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
21359
|
+
"onUpdate:modelValue": t[5] || (t[5] = (b) => n.model.subject = b),
|
|
21336
21360
|
placeholder: e.$t("workflowEditorMessage.pleaseEnterASubject")
|
|
21337
21361
|
}, null, 8, ["modelValue", "placeholder"])
|
|
21338
21362
|
]),
|
|
@@ -21344,7 +21368,7 @@ function _sfc_render$y(e, t, o, r, n, i) {
|
|
|
21344
21368
|
default: withCtx(() => [
|
|
21345
21369
|
createVNode(d, {
|
|
21346
21370
|
modelValue: n.model.content,
|
|
21347
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
21371
|
+
"onUpdate:modelValue": t[6] || (t[6] = (b) => n.model.content = b),
|
|
21348
21372
|
type: "textarea",
|
|
21349
21373
|
autosize: { minRows: 4, maxRows: 10 },
|
|
21350
21374
|
placeholder: e.$t("workflowEditorMessage.pleaseEnterContent")
|
|
@@ -21500,7 +21524,7 @@ const NoticeSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["render", _s
|
|
|
21500
21524
|
}
|
|
21501
21525
|
};
|
|
21502
21526
|
function _sfc_render$w(e, t, o, r, n, i) {
|
|
21503
|
-
const s = resolveComponent("basic-properties"), l = resolveComponent("el-tab-pane"), a = resolveComponent("permission-settings"), u = resolveComponent("notice-settings"), c = resolveComponent("notice-reminder"), d = resolveComponent("parameter-settings"), m = resolveComponent("events"),
|
|
21527
|
+
const s = resolveComponent("basic-properties"), l = resolveComponent("el-tab-pane"), a = resolveComponent("permission-settings"), u = resolveComponent("notice-settings"), c = resolveComponent("notice-reminder"), d = resolveComponent("parameter-settings"), m = resolveComponent("events"), b = resolveComponent("variables"), C = resolveComponent("el-tabs"), w = resolveComponent("el-dialog");
|
|
21504
21528
|
return openBlock(), createBlock(w, {
|
|
21505
21529
|
"model-value": "",
|
|
21506
21530
|
title: e.$t("workflowEditor.process.processProperties"),
|
|
@@ -21514,7 +21538,7 @@ function _sfc_render$w(e, t, o, r, n, i) {
|
|
|
21514
21538
|
onClosed: t[10] || (t[10] = (E) => e.$emit("closed"))
|
|
21515
21539
|
}, {
|
|
21516
21540
|
default: withCtx(() => [
|
|
21517
|
-
createVNode(
|
|
21541
|
+
createVNode(C, {
|
|
21518
21542
|
modelValue: n.activeTab,
|
|
21519
21543
|
"onUpdate:modelValue": t[6] || (t[6] = (E) => n.activeTab = E),
|
|
21520
21544
|
type: "border-card",
|
|
@@ -21602,7 +21626,7 @@ function _sfc_render$w(e, t, o, r, n, i) {
|
|
|
21602
21626
|
name: "variables"
|
|
21603
21627
|
}, {
|
|
21604
21628
|
default: withCtx(() => [
|
|
21605
|
-
createVNode(
|
|
21629
|
+
createVNode(b, {
|
|
21606
21630
|
model: o.model.properties.variables
|
|
21607
21631
|
}, null, 8, ["model"])
|
|
21608
21632
|
]),
|
|
@@ -21820,7 +21844,7 @@ const BasicProperties$3 = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render",
|
|
|
21820
21844
|
}
|
|
21821
21845
|
};
|
|
21822
21846
|
function _sfc_render$t(e, t, o, r, n, i) {
|
|
21823
|
-
const s = resolveComponent("basic-properties"), l = resolveComponent("el-tab-pane"), a = resolveComponent("notice"), u = resolveComponent("auto-filled-fields"), c = resolveComponent("el-switch"), d = resolveComponent("el-form-item"), m = resolveComponent("el-input"),
|
|
21847
|
+
const s = resolveComponent("basic-properties"), l = resolveComponent("el-tab-pane"), a = resolveComponent("notice"), u = resolveComponent("auto-filled-fields"), c = resolveComponent("el-switch"), d = resolveComponent("el-form-item"), m = resolveComponent("el-input"), b = resolveComponent("el-form"), C = resolveComponent("el-tabs"), w = resolveComponent("el-dialog");
|
|
21824
21848
|
return openBlock(), createBlock(w, {
|
|
21825
21849
|
"model-value": "",
|
|
21826
21850
|
title: e.$t("workflowEditor.transition.flowProperties"),
|
|
@@ -21834,7 +21858,7 @@ function _sfc_render$t(e, t, o, r, n, i) {
|
|
|
21834
21858
|
onClosed: t[8] || (t[8] = (E) => e.$emit("closed"))
|
|
21835
21859
|
}, {
|
|
21836
21860
|
default: withCtx(() => [
|
|
21837
|
-
createVNode(
|
|
21861
|
+
createVNode(C, {
|
|
21838
21862
|
modelValue: n.activeTab,
|
|
21839
21863
|
"onUpdate:modelValue": t[4] || (t[4] = (E) => n.activeTab = E),
|
|
21840
21864
|
type: "border-card"
|
|
@@ -21883,7 +21907,7 @@ function _sfc_render$t(e, t, o, r, n, i) {
|
|
|
21883
21907
|
name: "events"
|
|
21884
21908
|
}, {
|
|
21885
21909
|
default: withCtx(() => [
|
|
21886
|
-
createVNode(
|
|
21910
|
+
createVNode(b, null, {
|
|
21887
21911
|
default: withCtx(() => [
|
|
21888
21912
|
createVNode(d, {
|
|
21889
21913
|
label: e.$t("workflowEditor.transition.triggerFlowThroughEvent")
|
|
@@ -22174,8 +22198,8 @@ const HumanDecisionPropertiesEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$v,
|
|
|
22174
22198
|
}
|
|
22175
22199
|
};
|
|
22176
22200
|
function _sfc_render$p(e, t, o, r, n, i) {
|
|
22177
|
-
const s = resolveComponent("i18n-input"), l = resolveComponent("el-form-item"), a = resolveComponent("el-col"), u = resolveComponent("el-input"), c = resolveComponent("el-row"), d = resolveComponent("task-title"), m = resolveComponent("el-switch"),
|
|
22178
|
-
return openBlock(), createBlock(
|
|
22201
|
+
const s = resolveComponent("i18n-input"), l = resolveComponent("el-form-item"), a = resolveComponent("el-col"), u = resolveComponent("el-input"), c = resolveComponent("el-row"), d = resolveComponent("task-title"), m = resolveComponent("el-switch"), b = resolveComponent("el-form");
|
|
22202
|
+
return openBlock(), createBlock(b, {
|
|
22179
22203
|
model: n.formModel,
|
|
22180
22204
|
"label-width": "110px"
|
|
22181
22205
|
}, {
|
|
@@ -22190,7 +22214,7 @@ function _sfc_render$p(e, t, o, r, n, i) {
|
|
|
22190
22214
|
default: withCtx(() => [
|
|
22191
22215
|
createVNode(s, {
|
|
22192
22216
|
modelValue: n.formModel.name,
|
|
22193
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
22217
|
+
"onUpdate:modelValue": t[0] || (t[0] = (C) => n.formModel.name = C),
|
|
22194
22218
|
"i18n-key": i.tache.i18nKey ? i.tache.i18nKey : "name." + n.formModel.id,
|
|
22195
22219
|
onSetI18n: i.setI18nValue
|
|
22196
22220
|
}, null, 8, ["modelValue", "i18n-key", "onSetI18n"])
|
|
@@ -22208,7 +22232,7 @@ function _sfc_render$p(e, t, o, r, n, i) {
|
|
|
22208
22232
|
default: withCtx(() => [
|
|
22209
22233
|
createVNode(u, {
|
|
22210
22234
|
modelValue: n.formModel.id,
|
|
22211
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
22235
|
+
"onUpdate:modelValue": t[1] || (t[1] = (C) => n.formModel.id = C),
|
|
22212
22236
|
onBlur: i.validateId
|
|
22213
22237
|
}, null, 8, ["modelValue", "onBlur"])
|
|
22214
22238
|
]),
|
|
@@ -22226,7 +22250,7 @@ function _sfc_render$p(e, t, o, r, n, i) {
|
|
|
22226
22250
|
default: withCtx(() => [
|
|
22227
22251
|
createVNode(d, {
|
|
22228
22252
|
modelValue: i.tache.taskTitle,
|
|
22229
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
22253
|
+
"onUpdate:modelValue": t[2] || (t[2] = (C) => i.tache.taskTitle = C)
|
|
22230
22254
|
}, null, 8, ["modelValue"])
|
|
22231
22255
|
]),
|
|
22232
22256
|
_: 1
|
|
@@ -22237,7 +22261,7 @@ function _sfc_render$p(e, t, o, r, n, i) {
|
|
|
22237
22261
|
default: withCtx(() => [
|
|
22238
22262
|
createVNode(m, {
|
|
22239
22263
|
modelValue: i.tache.mailNotice,
|
|
22240
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
22264
|
+
"onUpdate:modelValue": t[3] || (t[3] = (C) => i.tache.mailNotice = C)
|
|
22241
22265
|
}, null, 8, ["modelValue"])
|
|
22242
22266
|
]),
|
|
22243
22267
|
_: 1
|
|
@@ -22248,7 +22272,7 @@ function _sfc_render$p(e, t, o, r, n, i) {
|
|
|
22248
22272
|
default: withCtx(() => [
|
|
22249
22273
|
createVNode(u, {
|
|
22250
22274
|
modelValue: i.tache.taskUrl,
|
|
22251
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
22275
|
+
"onUpdate:modelValue": t[4] || (t[4] = (C) => i.tache.taskUrl = C)
|
|
22252
22276
|
}, null, 8, ["modelValue"])
|
|
22253
22277
|
]),
|
|
22254
22278
|
_: 1
|
|
@@ -22259,7 +22283,7 @@ function _sfc_render$p(e, t, o, r, n, i) {
|
|
|
22259
22283
|
default: withCtx(() => [
|
|
22260
22284
|
createVNode(u, {
|
|
22261
22285
|
modelValue: i.tache.remark,
|
|
22262
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
22286
|
+
"onUpdate:modelValue": t[5] || (t[5] = (C) => i.tache.remark = C),
|
|
22263
22287
|
type: "textarea",
|
|
22264
22288
|
autosize: ""
|
|
22265
22289
|
}, null, 8, ["modelValue"])
|
|
@@ -22561,23 +22585,23 @@ const PermissionSettings = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render"
|
|
|
22561
22585
|
}
|
|
22562
22586
|
};
|
|
22563
22587
|
function _sfc_render$n(e, t, o, r, n, i) {
|
|
22564
|
-
const s = resolveComponent("basic-properties"), l = resolveComponent("el-tab-pane"), a = resolveComponent("transactor-settings"), u = resolveComponent("notice-reminder"), c = resolveComponent("events"), d = resolveComponent("permission-settings"), m = resolveComponent("el-tabs"),
|
|
22565
|
-
return openBlock(), createBlock(
|
|
22588
|
+
const s = resolveComponent("basic-properties"), l = resolveComponent("el-tab-pane"), a = resolveComponent("transactor-settings"), u = resolveComponent("notice-reminder"), c = resolveComponent("events"), d = resolveComponent("permission-settings"), m = resolveComponent("el-tabs"), b = resolveComponent("el-dialog");
|
|
22589
|
+
return openBlock(), createBlock(b, {
|
|
22566
22590
|
"model-value": "",
|
|
22567
22591
|
title: e.$t("workflowEditor.task.propertiesOfCCTask"),
|
|
22568
22592
|
center: !0,
|
|
22569
22593
|
top: "10vh",
|
|
22570
22594
|
"append-to-body": "",
|
|
22571
22595
|
class: "properties-editor",
|
|
22572
|
-
onOpen: t[5] || (t[5] = (
|
|
22573
|
-
onOpend: t[6] || (t[6] = (
|
|
22574
|
-
onClose: t[7] || (t[7] = (
|
|
22575
|
-
onClosed: t[8] || (t[8] = (
|
|
22596
|
+
onOpen: t[5] || (t[5] = (C) => e.$emit("open")),
|
|
22597
|
+
onOpend: t[6] || (t[6] = (C) => e.$emit("opend")),
|
|
22598
|
+
onClose: t[7] || (t[7] = (C) => e.$emit("close")),
|
|
22599
|
+
onClosed: t[8] || (t[8] = (C) => e.$emit("closed"))
|
|
22576
22600
|
}, {
|
|
22577
22601
|
default: withCtx(() => [
|
|
22578
22602
|
createVNode(m, {
|
|
22579
22603
|
modelValue: n.activeTab,
|
|
22580
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
22604
|
+
"onUpdate:modelValue": t[4] || (t[4] = (C) => n.activeTab = C),
|
|
22581
22605
|
type: "border-card",
|
|
22582
22606
|
onTabClick: i.handleClick
|
|
22583
22607
|
}, {
|
|
@@ -22589,9 +22613,9 @@ function _sfc_render$n(e, t, o, r, n, i) {
|
|
|
22589
22613
|
default: withCtx(() => [
|
|
22590
22614
|
createVNode(s, {
|
|
22591
22615
|
id: o.model.ref.attr.id,
|
|
22592
|
-
"onUpdate:id": t[0] || (t[0] = (
|
|
22616
|
+
"onUpdate:id": t[0] || (t[0] = (C) => o.model.ref.attr.id = C),
|
|
22593
22617
|
name: o.model.ref.attr.name,
|
|
22594
|
-
"onUpdate:name": t[1] || (t[1] = (
|
|
22618
|
+
"onUpdate:name": t[1] || (t[1] = (C) => o.model.ref.attr.name = C),
|
|
22595
22619
|
model: o.model.ref.basicProperties
|
|
22596
22620
|
}, null, 8, ["id", "name", "model"])
|
|
22597
22621
|
]),
|
|
@@ -22628,7 +22652,7 @@ function _sfc_render$n(e, t, o, r, n, i) {
|
|
|
22628
22652
|
default: withCtx(() => [
|
|
22629
22653
|
createVNode(c, {
|
|
22630
22654
|
modelValue: o.model.ref.events,
|
|
22631
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
22655
|
+
"onUpdate:modelValue": t[2] || (t[2] = (C) => o.model.ref.events = C)
|
|
22632
22656
|
}, null, 8, ["modelValue"])
|
|
22633
22657
|
]),
|
|
22634
22658
|
_: 1
|
|
@@ -22640,7 +22664,7 @@ function _sfc_render$n(e, t, o, r, n, i) {
|
|
|
22640
22664
|
default: withCtx(() => [
|
|
22641
22665
|
createVNode(d, {
|
|
22642
22666
|
modelValue: o.model.ref.permissionSettings,
|
|
22643
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
22667
|
+
"onUpdate:modelValue": t[3] || (t[3] = (C) => o.model.ref.permissionSettings = C)
|
|
22644
22668
|
}, null, 8, ["modelValue"])
|
|
22645
22669
|
]),
|
|
22646
22670
|
_: 1
|
|
@@ -23007,7 +23031,7 @@ function _sfc_render$k(e, t, o, r, n, i) {
|
|
|
23007
23031
|
createVNode(u, {
|
|
23008
23032
|
value: i.showSourceFieldLabel(m.row.source),
|
|
23009
23033
|
placeholder: e.$t("workflowEditorMessage.pleaseSelect"),
|
|
23010
|
-
onClick: t[0] || (t[0] = (
|
|
23034
|
+
onClick: t[0] || (t[0] = (b) => n.showSourceFields = !0)
|
|
23011
23035
|
}, null, 8, ["value", "placeholder"])
|
|
23012
23036
|
]),
|
|
23013
23037
|
_: 1
|
|
@@ -23020,7 +23044,7 @@ function _sfc_render$k(e, t, o, r, n, i) {
|
|
|
23020
23044
|
createVNode(u, {
|
|
23021
23045
|
value: i.showTargetFieldLabel(m.row.target),
|
|
23022
23046
|
placeholder: e.$t("workflowEditorMessage.pleaseSelect"),
|
|
23023
|
-
onClick: t[1] || (t[1] = (
|
|
23047
|
+
onClick: t[1] || (t[1] = (b) => n.showTargetFields = !0)
|
|
23024
23048
|
}, null, 8, ["value", "placeholder"])
|
|
23025
23049
|
]),
|
|
23026
23050
|
_: 1
|
|
@@ -23138,7 +23162,7 @@ const FieldMappings = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sf
|
|
|
23138
23162
|
}
|
|
23139
23163
|
};
|
|
23140
23164
|
function _sfc_render$j(e, t, o, r, n, i) {
|
|
23141
|
-
const s = resolveComponent("i18n-input"), l = resolveComponent("el-form-item"), a = resolveComponent("el-col"), u = resolveComponent("el-input"), c = resolveComponent("el-row"), d = resolveComponent("task-title"), m = resolveComponent("el-cascader"),
|
|
23165
|
+
const s = resolveComponent("i18n-input"), l = resolveComponent("el-form-item"), a = resolveComponent("el-col"), u = resolveComponent("el-input"), c = resolveComponent("el-row"), d = resolveComponent("task-title"), m = resolveComponent("el-cascader"), b = resolveComponent("el-switch"), C = resolveComponent("el-radio"), w = resolveComponent("el-radio-group"), E = resolveComponent("field-mappings"), p = resolveComponent("el-form");
|
|
23142
23166
|
return openBlock(), createBlock(p, { model: n.formModel }, {
|
|
23143
23167
|
default: withCtx(() => [
|
|
23144
23168
|
createVNode(c, null, {
|
|
@@ -23214,7 +23238,7 @@ function _sfc_render$j(e, t, o, r, n, i) {
|
|
|
23214
23238
|
"label-width": "140px"
|
|
23215
23239
|
}, {
|
|
23216
23240
|
default: withCtx(() => [
|
|
23217
|
-
createVNode(
|
|
23241
|
+
createVNode(b, {
|
|
23218
23242
|
modelValue: n.formModel.tache.isSharedForm,
|
|
23219
23243
|
"onUpdate:modelValue": t[4] || (t[4] = (f) => n.formModel.tache.isSharedForm = f)
|
|
23220
23244
|
}, null, 8, ["modelValue"])
|
|
@@ -23226,13 +23250,13 @@ function _sfc_render$j(e, t, o, r, n, i) {
|
|
|
23226
23250
|
"onUpdate:modelValue": t[5] || (t[5] = (f) => n.formModel.tache.moreTransactor = f)
|
|
23227
23251
|
}, {
|
|
23228
23252
|
default: withCtx(() => [
|
|
23229
|
-
createVNode(
|
|
23253
|
+
createVNode(C, { label: !1 }, {
|
|
23230
23254
|
default: withCtx(() => [
|
|
23231
23255
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.anyOneCanHandleIt")), 1)
|
|
23232
23256
|
]),
|
|
23233
23257
|
_: 1
|
|
23234
23258
|
}),
|
|
23235
|
-
createVNode(
|
|
23259
|
+
createVNode(C, { label: !0 }, {
|
|
23236
23260
|
default: withCtx(() => [
|
|
23237
23261
|
createTextVNode(toDisplayString$1(e.$t("workflowEditor.task.forAll")), 1)
|
|
23238
23262
|
]),
|
|
@@ -23900,12 +23924,12 @@ var FileSaver_min = { exports: {} };
|
|
|
23900
23924
|
} : function(a, u, c, d) {
|
|
23901
23925
|
if (d = d || open("", "_blank"), d && (d.document.title = d.document.body.innerText = "downloading..."), typeof a == "string")
|
|
23902
23926
|
return r(a, u, c);
|
|
23903
|
-
var m = a.type === "application/octet-stream",
|
|
23904
|
-
if ((
|
|
23927
|
+
var m = a.type === "application/octet-stream", b = /constructor/i.test(s.HTMLElement) || s.safari, C = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
23928
|
+
if ((C || m && b) && typeof FileReader == "object") {
|
|
23905
23929
|
var w = new FileReader();
|
|
23906
23930
|
w.onloadend = function() {
|
|
23907
23931
|
var f = w.result;
|
|
23908
|
-
f =
|
|
23932
|
+
f = C ? f : f.replace(/^data:[^;]*;/, "data:attachment/file;"), d ? d.location.href = f : location = f, d = null;
|
|
23909
23933
|
}, w.readAsDataURL(a);
|
|
23910
23934
|
} else {
|
|
23911
23935
|
var E = s.URL || s.webkitURL, p = E.createObjectURL(a);
|
|
@@ -24456,7 +24480,7 @@ var prism = { exports: {} };
|
|
|
24456
24480
|
delete g.rest;
|
|
24457
24481
|
}
|
|
24458
24482
|
var $ = new d();
|
|
24459
|
-
return m($, $.head, f), c(f, $, g, $.head, 0),
|
|
24483
|
+
return m($, $.head, f), c(f, $, g, $.head, 0), C($);
|
|
24460
24484
|
},
|
|
24461
24485
|
/**
|
|
24462
24486
|
* @namespace
|
|
@@ -24567,11 +24591,11 @@ var prism = { exports: {} };
|
|
|
24567
24591
|
Q--, q = f.slice(Y, X), J.index -= Y;
|
|
24568
24592
|
} else if (J = u(j, 0, q, G), !J)
|
|
24569
24593
|
continue;
|
|
24570
|
-
var oe = J.index,
|
|
24594
|
+
var oe = J.index, y = J[0], _ = q.slice(0, oe), P = q.slice(oe + y.length), V = Y + q.length;
|
|
24571
24595
|
O && V > O.reach && (O.reach = V);
|
|
24572
24596
|
var R = z.prev;
|
|
24573
|
-
_ && (R = m(g, R, _), Y += _.length),
|
|
24574
|
-
var U = new a(x, L ? l.tokenize(
|
|
24597
|
+
_ && (R = m(g, R, _), Y += _.length), b(g, R, Q);
|
|
24598
|
+
var U = new a(x, L ? l.tokenize(y, L) : y, re, y);
|
|
24575
24599
|
if (z = m(g, R, U), P && m(g, z, P), Q > 1) {
|
|
24576
24600
|
var N = {
|
|
24577
24601
|
cause: x + "," + B,
|
|
@@ -24592,12 +24616,12 @@ var prism = { exports: {} };
|
|
|
24592
24616
|
var k = g.next, $ = { value: v, prev: g, next: k };
|
|
24593
24617
|
return g.next = $, k.prev = $, f.length++, $;
|
|
24594
24618
|
}
|
|
24595
|
-
function
|
|
24619
|
+
function b(f, g, v) {
|
|
24596
24620
|
for (var k = g.next, $ = 0; $ < v && k !== f.tail; $++)
|
|
24597
24621
|
k = k.next;
|
|
24598
24622
|
g.next = k, k.prev = g, f.length -= $;
|
|
24599
24623
|
}
|
|
24600
|
-
function
|
|
24624
|
+
function C(f) {
|
|
24601
24625
|
for (var g = [], v = f.head.next; v !== f.tail; )
|
|
24602
24626
|
g.push(v.value), v = v.next;
|
|
24603
24627
|
return g;
|
|
@@ -25015,7 +25039,7 @@ var prism = { exports: {} };
|
|
|
25015
25039
|
f.readyState == 4 && (f.status < 400 && f.responseText ? E(f.responseText) : f.status >= 400 ? p(n(f.status, f.statusText)) : p(i));
|
|
25016
25040
|
}, f.send(null);
|
|
25017
25041
|
}
|
|
25018
|
-
function
|
|
25042
|
+
function b(w) {
|
|
25019
25043
|
var E = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w || "");
|
|
25020
25044
|
if (E) {
|
|
25021
25045
|
var p = Number(E[1]), f = E[2], g = E[3];
|
|
@@ -25044,7 +25068,7 @@ var prism = { exports: {} };
|
|
|
25044
25068
|
f,
|
|
25045
25069
|
function($) {
|
|
25046
25070
|
E.setAttribute(l, u);
|
|
25047
|
-
var O =
|
|
25071
|
+
var O = b(E.getAttribute("data-range"));
|
|
25048
25072
|
if (O) {
|
|
25049
25073
|
var x = $.split(/\r\n?|\n/g), S = O[0], B = O[1] == null ? x.length : O[1];
|
|
25050
25074
|
S < 0 && (S += x.length), S = Math.max(0, Math.min(S - 1, x.length)), B < 0 && (B += x.length), B = Math.max(0, Math.min(B, x.length)), $ = x.slice(S, B).join(`
|
|
@@ -25070,9 +25094,9 @@ var prism = { exports: {} };
|
|
|
25070
25094
|
o.highlightElement(g);
|
|
25071
25095
|
}
|
|
25072
25096
|
};
|
|
25073
|
-
var
|
|
25097
|
+
var C = !1;
|
|
25074
25098
|
o.fileHighlight = function() {
|
|
25075
|
-
|
|
25099
|
+
C || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), C = !0), o.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
25076
25100
|
};
|
|
25077
25101
|
}();
|
|
25078
25102
|
})(prism);
|
|
@@ -25196,8 +25220,8 @@ function useEventListener(...e) {
|
|
|
25196
25220
|
Array.isArray(o) || (o = [o]), Array.isArray(r) || (r = [r]);
|
|
25197
25221
|
const i = [], s = () => {
|
|
25198
25222
|
i.forEach((c) => c()), i.length = 0;
|
|
25199
|
-
}, l = (c, d, m,
|
|
25200
|
-
s(), c && i.push(...o.flatMap((m) => r.map((
|
|
25223
|
+
}, l = (c, d, m, b) => (c.addEventListener(d, m, b), () => c.removeEventListener(d, m, b)), a = watch(() => [unrefElement(t), resolveUnref(n)], ([c, d]) => {
|
|
25224
|
+
s(), c && i.push(...o.flatMap((m) => r.map((b) => l(c, m, b, d))));
|
|
25201
25225
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
25202
25226
|
a(), s();
|
|
25203
25227
|
};
|
|
@@ -25599,7 +25623,7 @@ const epPropKey = "__epPropKey", definePropType = (e) => e, isEpProp = (e) => is
|
|
|
25599
25623
|
validator: o || s ? (u) => {
|
|
25600
25624
|
let c = !1, d = [];
|
|
25601
25625
|
if (o && (d = Array.from(o), hasOwn(e, "default") && d.push(n), c || (c = d.includes(u))), s && (c || (c = s(u))), !c && d.length > 0) {
|
|
25602
|
-
const m = [...new Set(d)].map((
|
|
25626
|
+
const m = [...new Set(d)].map((b) => JSON.stringify(b)).join(", ");
|
|
25603
25627
|
warn$2(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${m}], got value ${JSON.stringify(u)}.`);
|
|
25604
25628
|
}
|
|
25605
25629
|
return c;
|
|
@@ -26164,24 +26188,24 @@ var AsyncValidationError = /* @__PURE__ */ function(e) {
|
|
|
26164
26188
|
}(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
26165
26189
|
function asyncMap(e, t, o, r, n) {
|
|
26166
26190
|
if (t.first) {
|
|
26167
|
-
var i = new Promise(function(m,
|
|
26168
|
-
var
|
|
26169
|
-
return r(p), p.length ?
|
|
26191
|
+
var i = new Promise(function(m, b) {
|
|
26192
|
+
var C = function(p) {
|
|
26193
|
+
return r(p), p.length ? b(new AsyncValidationError(p, convertFieldsError(p))) : m(n);
|
|
26170
26194
|
}, w = flattenObjArr(e);
|
|
26171
|
-
asyncSerialArray(w, o,
|
|
26195
|
+
asyncSerialArray(w, o, C);
|
|
26172
26196
|
});
|
|
26173
26197
|
return i.catch(function(m) {
|
|
26174
26198
|
return m;
|
|
26175
26199
|
}), i;
|
|
26176
26200
|
}
|
|
26177
|
-
var s = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], l = Object.keys(e), a = l.length, u = 0, c = [], d = new Promise(function(m,
|
|
26178
|
-
var
|
|
26201
|
+
var s = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], l = Object.keys(e), a = l.length, u = 0, c = [], d = new Promise(function(m, b) {
|
|
26202
|
+
var C = function(E) {
|
|
26179
26203
|
if (c.push.apply(c, E), u++, u === a)
|
|
26180
|
-
return r(c), c.length ?
|
|
26204
|
+
return r(c), c.length ? b(new AsyncValidationError(c, convertFieldsError(c))) : m(n);
|
|
26181
26205
|
};
|
|
26182
26206
|
l.length || (r(c), m(n)), l.forEach(function(w) {
|
|
26183
26207
|
var E = e[w];
|
|
26184
|
-
s.indexOf(w) !== -1 ? asyncSerialArray(E, o,
|
|
26208
|
+
s.indexOf(w) !== -1 ? asyncSerialArray(E, o, C) : asyncParallelArray(E, o, C);
|
|
26185
26209
|
});
|
|
26186
26210
|
});
|
|
26187
26211
|
return d.catch(function(m) {
|
|
@@ -26247,7 +26271,7 @@ var required$1 = function e(t, o, r, n, i, s) {
|
|
|
26247
26271
|
}, a.v6 = function(g) {
|
|
26248
26272
|
return g && g.exact ? l : new RegExp("" + t(g) + n + t(g), "g");
|
|
26249
26273
|
};
|
|
26250
|
-
var u = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", d = a.v4().source, m = a.v6().source,
|
|
26274
|
+
var u = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", d = a.v4().source, m = a.v6().source, b = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", C = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", w = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", E = "(?::\\d{2,5})?", p = '(?:[/?#][^\\s"]*)?', f = "(?:" + u + "|www\\.)" + c + "(?:localhost|" + d + "|" + m + "|" + b + C + w + ")" + E + p;
|
|
26251
26275
|
return urlReg = new RegExp("(?:^" + f + "$)", "i"), urlReg;
|
|
26252
26276
|
}, pattern$2 = {
|
|
26253
26277
|
// http://emailregex.com/
|
|
@@ -26305,10 +26329,10 @@ var required$1 = function e(t, o, r, n, i, s) {
|
|
|
26305
26329
|
var s = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], l = t.type;
|
|
26306
26330
|
s.indexOf(l) > -1 ? types[l](o) || n.push(format(i.messages.types[l], t.fullField, t.type)) : l && typeof o !== t.type && n.push(format(i.messages.types[l], t.fullField, t.type));
|
|
26307
26331
|
}, range = function e(t, o, r, n, i) {
|
|
26308
|
-
var s = typeof t.len == "number", l = typeof t.min == "number", a = typeof t.max == "number", u = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = o, d = null, m = typeof o == "number",
|
|
26309
|
-
if (m ? d = "number" :
|
|
26332
|
+
var s = typeof t.len == "number", l = typeof t.min == "number", a = typeof t.max == "number", u = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = o, d = null, m = typeof o == "number", b = typeof o == "string", C = Array.isArray(o);
|
|
26333
|
+
if (m ? d = "number" : b ? d = "string" : C && (d = "array"), !d)
|
|
26310
26334
|
return !1;
|
|
26311
|
-
|
|
26335
|
+
C && (c = o.length), b && (c = o.replace(u, "_").length), s ? c !== t.len && n.push(format(i.messages[d].len, t.fullField, t.len)) : l && !a && c < t.min ? n.push(format(i.messages[d].min, t.fullField, t.min)) : a && !l && c > t.max ? n.push(format(i.messages[d].max, t.fullField, t.max)) : l && a && (c < t.min || c > t.max) && n.push(format(i.messages[d].range, t.fullField, t.min, t.max));
|
|
26312
26336
|
}, ENUM$1 = "enum", enumerable$1 = function e(t, o, r, n, i) {
|
|
26313
26337
|
t[ENUM$1] = Array.isArray(t[ENUM$1]) ? t[ENUM$1] : [], t[ENUM$1].indexOf(o) === -1 && n.push(format(i.messages[ENUM$1], t.fullField, t[ENUM$1].join(", ")));
|
|
26314
26338
|
}, pattern$1 = function e(t, o, r, n, i) {
|
|
@@ -26559,8 +26583,8 @@ var messages = newMessages(), Schema = /* @__PURE__ */ function() {
|
|
|
26559
26583
|
d === messages && (d = newMessages()), deepMerge(d, a.messages), a.messages = d;
|
|
26560
26584
|
} else
|
|
26561
26585
|
a.messages = this.messages();
|
|
26562
|
-
var m = {},
|
|
26563
|
-
|
|
26586
|
+
var m = {}, b = a.keys || Object.keys(this.rules);
|
|
26587
|
+
b.forEach(function(w) {
|
|
26564
26588
|
var E = s.rules[w], p = l[w];
|
|
26565
26589
|
E.forEach(function(f) {
|
|
26566
26590
|
var g = f;
|
|
@@ -26574,7 +26598,7 @@ var messages = newMessages(), Schema = /* @__PURE__ */ function() {
|
|
|
26574
26598
|
}));
|
|
26575
26599
|
});
|
|
26576
26600
|
});
|
|
26577
|
-
var
|
|
26601
|
+
var C = {};
|
|
26578
26602
|
return asyncMap(m, a, function(w, E) {
|
|
26579
26603
|
var p = w.rule, f = (p.type === "object" || p.type === "array") && (typeof p.fields == "object" || typeof p.defaultField == "object");
|
|
26580
26604
|
f = f && (p.required || !p.required && w.value), p.field = w.field;
|
|
@@ -26590,7 +26614,7 @@ var messages = newMessages(), Schema = /* @__PURE__ */ function() {
|
|
|
26590
26614
|
!a.suppressWarning && O.length && e.warning("async-validator:", O), O.length && p.message !== void 0 && (O = [].concat(p.message));
|
|
26591
26615
|
var x = O.map(complementError(p, l));
|
|
26592
26616
|
if (a.first && x.length)
|
|
26593
|
-
return
|
|
26617
|
+
return C[p.field] = 1, E(x);
|
|
26594
26618
|
if (!f)
|
|
26595
26619
|
E(x);
|
|
26596
26620
|
else {
|
|
@@ -26800,10 +26824,10 @@ const ElBadge = withInstall(Badge), messageTypes = ["success", "info", "warning"
|
|
|
26800
26824
|
setup(e, { expose: t }) {
|
|
26801
26825
|
const o = e, { Close: r } = TypeComponents, { ns: n, zIndex: i } = useGlobalComponentSettings("message"), { currentZIndex: s, nextZIndex: l } = i, a = ref(), u = ref(!1), c = ref(0);
|
|
26802
26826
|
let d;
|
|
26803
|
-
const m = computed(() => o.type ? o.type === "error" ? "danger" : o.type : "info"),
|
|
26827
|
+
const m = computed(() => o.type ? o.type === "error" ? "danger" : o.type : "info"), b = computed(() => {
|
|
26804
26828
|
const O = o.type;
|
|
26805
26829
|
return { [n.bm("icon", O)]: O && TypeComponentsMap[O] };
|
|
26806
|
-
}),
|
|
26830
|
+
}), C = computed(() => o.icon || TypeComponentsMap[o.type] || ""), w = computed(() => getLastOffset(o.id)), E = computed(() => getOffsetOrSpace(o.id, o.offset) + w.value), p = computed(() => c.value + E.value), f = computed(() => ({
|
|
26807
26831
|
top: `${E.value}px`,
|
|
26808
26832
|
zIndex: s.value
|
|
26809
26833
|
}));
|
|
@@ -26860,12 +26884,12 @@ const ElBadge = withInstall(Badge), messageTypes = ["success", "info", "warning"
|
|
|
26860
26884
|
type: unref(m),
|
|
26861
26885
|
class: normalizeClass(unref(n).e("badge"))
|
|
26862
26886
|
}, null, 8, ["value", "type", "class"])) : createCommentVNode("v-if", !0),
|
|
26863
|
-
unref(
|
|
26887
|
+
unref(C) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
26864
26888
|
key: 1,
|
|
26865
|
-
class: normalizeClass([unref(n).e("icon"), unref(
|
|
26889
|
+
class: normalizeClass([unref(n).e("icon"), unref(b)])
|
|
26866
26890
|
}, {
|
|
26867
26891
|
default: withCtx(() => [
|
|
26868
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(
|
|
26892
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(C))))
|
|
26869
26893
|
]),
|
|
26870
26894
|
_: 1
|
|
26871
26895
|
}, 8, ["class"])) : createCommentVNode("v-if", !0),
|
|
@@ -27632,18 +27656,18 @@ function createCurrentLocation(e, t) {
|
|
|
27632
27656
|
function useHistoryListeners(e, t, o, r) {
|
|
27633
27657
|
let n = [], i = [], s = null;
|
|
27634
27658
|
const l = ({ state: m }) => {
|
|
27635
|
-
const
|
|
27659
|
+
const b = createCurrentLocation(e, location), C = o.value, w = t.value;
|
|
27636
27660
|
let E = 0;
|
|
27637
27661
|
if (m) {
|
|
27638
|
-
if (o.value =
|
|
27662
|
+
if (o.value = b, t.value = m, s && s === C) {
|
|
27639
27663
|
s = null;
|
|
27640
27664
|
return;
|
|
27641
27665
|
}
|
|
27642
27666
|
E = w ? m.position - w.position : 0;
|
|
27643
27667
|
} else
|
|
27644
|
-
r(
|
|
27668
|
+
r(b);
|
|
27645
27669
|
n.forEach((p) => {
|
|
27646
|
-
p(o.value,
|
|
27670
|
+
p(o.value, C, {
|
|
27647
27671
|
delta: E,
|
|
27648
27672
|
type: NavigationType.pop,
|
|
27649
27673
|
direction: E ? E > 0 ? NavigationDirection.forward : NavigationDirection.back : NavigationDirection.unknown
|
|
@@ -27655,11 +27679,11 @@ function useHistoryListeners(e, t, o, r) {
|
|
|
27655
27679
|
}
|
|
27656
27680
|
function u(m) {
|
|
27657
27681
|
n.push(m);
|
|
27658
|
-
const
|
|
27659
|
-
const
|
|
27660
|
-
|
|
27682
|
+
const b = () => {
|
|
27683
|
+
const C = n.indexOf(m);
|
|
27684
|
+
C > -1 && n.splice(C, 1);
|
|
27661
27685
|
};
|
|
27662
|
-
return i.push(
|
|
27686
|
+
return i.push(b), b;
|
|
27663
27687
|
}
|
|
27664
27688
|
function c() {
|
|
27665
27689
|
const { history: m } = window;
|
|
@@ -27707,8 +27731,8 @@ function useHistoryStateNavigation(e) {
|
|
|
27707
27731
|
const d = e.indexOf("#"), m = d > -1 ? (o.host && document.querySelector("base") ? e : e.slice(d)) + a : createBaseLocation() + e + a;
|
|
27708
27732
|
try {
|
|
27709
27733
|
t[c ? "replaceState" : "pushState"](u, "", m), n.value = u;
|
|
27710
|
-
} catch (
|
|
27711
|
-
process.env.NODE_ENV !== "production" ? warn("Error with push/replace State",
|
|
27734
|
+
} catch (b) {
|
|
27735
|
+
process.env.NODE_ENV !== "production" ? warn("Error with push/replace State", b) : console.error(b), o[c ? "replace" : "assign"](m);
|
|
27712
27736
|
}
|
|
27713
27737
|
}
|
|
27714
27738
|
function s(a, u) {
|
|
@@ -27856,31 +27880,31 @@ function tokensToParser(e, t) {
|
|
|
27856
27880
|
o.strict && !u.length && (n += "/");
|
|
27857
27881
|
for (let d = 0; d < u.length; d++) {
|
|
27858
27882
|
const m = u[d];
|
|
27859
|
-
let
|
|
27883
|
+
let b = 40 + (o.sensitive ? 0.25 : 0);
|
|
27860
27884
|
if (m.type === 0)
|
|
27861
|
-
d || (n += "/"), n += m.value.replace(REGEX_CHARS_RE, "\\$&"),
|
|
27885
|
+
d || (n += "/"), n += m.value.replace(REGEX_CHARS_RE, "\\$&"), b += 40;
|
|
27862
27886
|
else if (m.type === 1) {
|
|
27863
|
-
const { value:
|
|
27887
|
+
const { value: C, repeatable: w, optional: E, regexp: p } = m;
|
|
27864
27888
|
i.push({
|
|
27865
|
-
name:
|
|
27889
|
+
name: C,
|
|
27866
27890
|
repeatable: w,
|
|
27867
27891
|
optional: E
|
|
27868
27892
|
});
|
|
27869
27893
|
const f = p || BASE_PARAM_PATTERN;
|
|
27870
27894
|
if (f !== BASE_PARAM_PATTERN) {
|
|
27871
|
-
|
|
27895
|
+
b += 10;
|
|
27872
27896
|
try {
|
|
27873
27897
|
new RegExp(`(${f})`);
|
|
27874
27898
|
} catch (v) {
|
|
27875
|
-
throw new Error(`Invalid custom RegExp for param "${
|
|
27899
|
+
throw new Error(`Invalid custom RegExp for param "${C}" (${f}): ` + v.message);
|
|
27876
27900
|
}
|
|
27877
27901
|
}
|
|
27878
27902
|
let g = w ? `((?:${f})(?:/(?:${f}))*)` : `(${f})`;
|
|
27879
27903
|
d || (g = // avoid an optional / if there are more segments e.g. /:p?-static
|
|
27880
27904
|
// or /:p?-:p2
|
|
27881
|
-
E && u.length < 2 ? `(?:/${g})` : "/" + g), E && (g += "?"), n += g,
|
|
27905
|
+
E && u.length < 2 ? `(?:/${g})` : "/" + g), E && (g += "?"), n += g, b += 20, E && (b += -8), w && (b += -20), f === ".*" && (b += -50);
|
|
27882
27906
|
}
|
|
27883
|
-
c.push(
|
|
27907
|
+
c.push(b);
|
|
27884
27908
|
}
|
|
27885
27909
|
r.push(c);
|
|
27886
27910
|
}
|
|
@@ -27895,8 +27919,8 @@ function tokensToParser(e, t) {
|
|
|
27895
27919
|
if (!c)
|
|
27896
27920
|
return null;
|
|
27897
27921
|
for (let m = 1; m < c.length; m++) {
|
|
27898
|
-
const
|
|
27899
|
-
d[
|
|
27922
|
+
const b = c[m] || "", C = i[m - 1];
|
|
27923
|
+
d[C.name] = b && C.repeatable ? b.split("/") : b;
|
|
27900
27924
|
}
|
|
27901
27925
|
return d;
|
|
27902
27926
|
}
|
|
@@ -27904,19 +27928,19 @@ function tokensToParser(e, t) {
|
|
|
27904
27928
|
let c = "", d = !1;
|
|
27905
27929
|
for (const m of e) {
|
|
27906
27930
|
(!d || !c.endsWith("/")) && (c += "/"), d = !1;
|
|
27907
|
-
for (const
|
|
27908
|
-
if (
|
|
27909
|
-
c +=
|
|
27910
|
-
else if (
|
|
27911
|
-
const { value:
|
|
27931
|
+
for (const b of m)
|
|
27932
|
+
if (b.type === 0)
|
|
27933
|
+
c += b.value;
|
|
27934
|
+
else if (b.type === 1) {
|
|
27935
|
+
const { value: C, repeatable: w, optional: E } = b, p = C in u ? u[C] : "";
|
|
27912
27936
|
if (isArray(p) && !w)
|
|
27913
|
-
throw new Error(`Provided param "${
|
|
27937
|
+
throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);
|
|
27914
27938
|
const f = isArray(p) ? p.join("/") : p;
|
|
27915
27939
|
if (!f)
|
|
27916
27940
|
if (E)
|
|
27917
27941
|
m.length < 2 && (c.endsWith("/") ? c = c.slice(0, -1) : d = !0);
|
|
27918
27942
|
else
|
|
27919
|
-
throw new Error(`Missing required param "${
|
|
27943
|
+
throw new Error(`Missing required param "${C}"`);
|
|
27920
27944
|
c += f;
|
|
27921
27945
|
}
|
|
27922
27946
|
}
|
|
@@ -27972,8 +27996,8 @@ function tokenizePath(e) {
|
|
|
27972
27996
|
return [[ROOT_TOKEN]];
|
|
27973
27997
|
if (!e.startsWith("/"))
|
|
27974
27998
|
throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
|
|
27975
|
-
function t(
|
|
27976
|
-
throw new Error(`ERR (${o})/"${u}": ${
|
|
27999
|
+
function t(b) {
|
|
28000
|
+
throw new Error(`ERR (${o})/"${u}": ${b}`);
|
|
27977
28001
|
}
|
|
27978
28002
|
let o = 0, r = o;
|
|
27979
28003
|
const n = [];
|
|
@@ -28048,21 +28072,21 @@ function createRouterMatcher(e, t) {
|
|
|
28048
28072
|
return r.get(c);
|
|
28049
28073
|
}
|
|
28050
28074
|
function i(c, d, m) {
|
|
28051
|
-
const
|
|
28052
|
-
process.env.NODE_ENV !== "production" && checkChildMissingNameWithEmptyPath(
|
|
28075
|
+
const b = !m, C = normalizeRouteRecord(c);
|
|
28076
|
+
process.env.NODE_ENV !== "production" && checkChildMissingNameWithEmptyPath(C, d), C.aliasOf = m && m.record;
|
|
28053
28077
|
const w = mergeOptions(t, c), E = [
|
|
28054
|
-
|
|
28078
|
+
C
|
|
28055
28079
|
];
|
|
28056
28080
|
if ("alias" in c) {
|
|
28057
28081
|
const g = typeof c.alias == "string" ? [c.alias] : c.alias;
|
|
28058
28082
|
for (const v of g)
|
|
28059
|
-
E.push(assign({},
|
|
28083
|
+
E.push(assign({}, C, {
|
|
28060
28084
|
// this allows us to hold a copy of the `components` option
|
|
28061
28085
|
// so that async components cache is hold on the original record
|
|
28062
|
-
components: m ? m.record.components :
|
|
28086
|
+
components: m ? m.record.components : C.components,
|
|
28063
28087
|
path: v,
|
|
28064
28088
|
// we might be the child of an alias
|
|
28065
|
-
aliasOf: m ? m.record :
|
|
28089
|
+
aliasOf: m ? m.record : C
|
|
28066
28090
|
// the aliases are always of the same kind as the original since they
|
|
28067
28091
|
// are defined on the same record
|
|
28068
28092
|
}));
|
|
@@ -28077,8 +28101,8 @@ function createRouterMatcher(e, t) {
|
|
|
28077
28101
|
if (process.env.NODE_ENV !== "production" && g.path === "*")
|
|
28078
28102
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
28079
28103
|
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);
|
|
28080
|
-
if (p = createRouteRecordMatcher(g, d, w), process.env.NODE_ENV !== "production" && d && v[0] === "/" && checkMissingParamsInAbsolutePath(p, d), m ? (m.alias.push(p), process.env.NODE_ENV !== "production" && checkSameParams(m, p)) : (f = f || p, f !== p && f.alias.push(p),
|
|
28081
|
-
const k =
|
|
28104
|
+
if (p = createRouteRecordMatcher(g, d, w), process.env.NODE_ENV !== "production" && d && v[0] === "/" && checkMissingParamsInAbsolutePath(p, d), m ? (m.alias.push(p), process.env.NODE_ENV !== "production" && checkSameParams(m, p)) : (f = f || p, f !== p && f.alias.push(p), b && c.name && !isAliasRecord(p) && s(c.name)), C.children) {
|
|
28105
|
+
const k = C.children;
|
|
28082
28106
|
for (let $ = 0; $ < k.length; $++)
|
|
28083
28107
|
i(k[$], p, m && m.children[$]);
|
|
28084
28108
|
}
|
|
@@ -28109,7 +28133,7 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
|
|
|
28109
28133
|
o.splice(d, 0, c), c.record.name && !isAliasRecord(c) && r.set(c.record.name, c);
|
|
28110
28134
|
}
|
|
28111
28135
|
function u(c, d) {
|
|
28112
|
-
let m,
|
|
28136
|
+
let m, b = {}, C, w;
|
|
28113
28137
|
if ("name" in c && c.name) {
|
|
28114
28138
|
if (m = r.get(c.name), !m)
|
|
28115
28139
|
throw createRouterError(1, {
|
|
@@ -28119,7 +28143,7 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
|
|
|
28119
28143
|
const f = Object.keys(c.params || {}).filter((g) => !m.keys.find((v) => v.name === g));
|
|
28120
28144
|
f.length && warn(`Discarded invalid param(s) "${f.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
|
|
28121
28145
|
}
|
|
28122
|
-
w = m.record.name,
|
|
28146
|
+
w = m.record.name, b = assign(
|
|
28123
28147
|
// paramsFromLocation is a new object
|
|
28124
28148
|
paramsFromLocation(
|
|
28125
28149
|
d.params,
|
|
@@ -28130,16 +28154,16 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
|
|
|
28130
28154
|
// discard any existing params in the current location that do not exist here
|
|
28131
28155
|
// #1497 this ensures better active/exact matching
|
|
28132
28156
|
c.params && paramsFromLocation(c.params, m.keys.map((f) => f.name))
|
|
28133
|
-
),
|
|
28157
|
+
), C = m.stringify(b);
|
|
28134
28158
|
} else if ("path" in c)
|
|
28135
|
-
|
|
28159
|
+
C = c.path, process.env.NODE_ENV !== "production" && !C.startsWith("/") && warn(`The Matcher cannot resolve relative paths but received "${C}". Unless you directly called \`matcher.resolve("${C}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), m = o.find((f) => f.re.test(C)), m && (b = m.parse(C), w = m.record.name);
|
|
28136
28160
|
else {
|
|
28137
28161
|
if (m = d.name ? r.get(d.name) : o.find((f) => f.re.test(d.path)), !m)
|
|
28138
28162
|
throw createRouterError(1, {
|
|
28139
28163
|
location: c,
|
|
28140
28164
|
currentLocation: d
|
|
28141
28165
|
});
|
|
28142
|
-
w = m.record.name,
|
|
28166
|
+
w = m.record.name, b = assign({}, d.params, c.params), C = m.stringify(b);
|
|
28143
28167
|
}
|
|
28144
28168
|
const E = [];
|
|
28145
28169
|
let p = m;
|
|
@@ -28147,8 +28171,8 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
|
|
|
28147
28171
|
E.unshift(p.record), p = p.parent;
|
|
28148
28172
|
return {
|
|
28149
28173
|
name: w,
|
|
28150
|
-
path:
|
|
28151
|
-
params:
|
|
28174
|
+
path: C,
|
|
28175
|
+
params: b,
|
|
28152
28176
|
matched: E,
|
|
28153
28177
|
meta: mergeMetaFields(E)
|
|
28154
28178
|
};
|
|
@@ -28390,14 +28414,14 @@ function useLink(e) {
|
|
|
28390
28414
|
const m = d.findIndex(isSameRouteRecord.bind(null, c));
|
|
28391
28415
|
if (m > -1)
|
|
28392
28416
|
return m;
|
|
28393
|
-
const
|
|
28417
|
+
const b = getOriginalPath(a[u - 2]);
|
|
28394
28418
|
return (
|
|
28395
28419
|
// we are dealing with nested routes
|
|
28396
28420
|
u > 1 && // if the parent and matched route have the same path, this link is
|
|
28397
28421
|
// referring to the empty child. Or we currently are on a different
|
|
28398
28422
|
// child of the same parent
|
|
28399
|
-
getOriginalPath(c) ===
|
|
28400
|
-
d[d.length - 1].path !==
|
|
28423
|
+
getOriginalPath(c) === b && // avoid comparing the child with its parent
|
|
28424
|
+
d[d.length - 1].path !== b ? d.findIndex(isSameRouteRecord.bind(null, a[u - 2])) : m
|
|
28401
28425
|
);
|
|
28402
28426
|
}), i = computed(() => n.value > -1 && includesParams(o.params, r.value.params)), s = computed(() => n.value > -1 && n.value === o.matched.length - 1 && isSameRouteLocationParams(o.params, r.value.params));
|
|
28403
28427
|
function l(a = {}) {
|
|
@@ -28519,15 +28543,15 @@ const getLinkClass = (e, t, o) => e ?? t ?? o, RouterViewImpl = /* @__PURE__ */
|
|
|
28519
28543
|
}), l = computed(() => n.value.matched[s.value]);
|
|
28520
28544
|
provide(viewDepthKey, computed(() => s.value + 1)), provide(matchedRouteKey, l), provide(routerViewLocationKey, n);
|
|
28521
28545
|
const a = ref();
|
|
28522
|
-
return watch(() => [a.value, l.value, e.name], ([u, c, d], [m,
|
|
28523
|
-
c && (c.instances[d] = u,
|
|
28546
|
+
return watch(() => [a.value, l.value, e.name], ([u, c, d], [m, b, C]) => {
|
|
28547
|
+
c && (c.instances[d] = u, b && b !== c && u && u === m && (c.leaveGuards.size || (c.leaveGuards = b.leaveGuards), c.updateGuards.size || (c.updateGuards = b.updateGuards))), u && c && // if there is no instance but to and from are the same this might be
|
|
28524
28548
|
// the first visit
|
|
28525
|
-
(!
|
|
28549
|
+
(!b || !isSameRouteRecord(c, b) || !m) && (c.enterCallbacks[d] || []).forEach((w) => w(u));
|
|
28526
28550
|
}, { flush: "post" }), () => {
|
|
28527
28551
|
const u = n.value, c = e.name, d = l.value, m = d && d.components[c];
|
|
28528
28552
|
if (!m)
|
|
28529
28553
|
return normalizeSlot(o.default, { Component: m, route: u });
|
|
28530
|
-
const
|
|
28554
|
+
const b = d.props[c], C = b ? b === !0 ? u.params : typeof b == "function" ? b(u) : b : null, E = h$1(m, assign({}, C, t, {
|
|
28531
28555
|
onVnodeUnmounted: (p) => {
|
|
28532
28556
|
p.component.isUnmounted && (d.instances[c] = null);
|
|
28533
28557
|
},
|
|
@@ -28628,12 +28652,12 @@ function addDevtools(e, t, o) {
|
|
|
28628
28652
|
});
|
|
28629
28653
|
}
|
|
28630
28654
|
isArray(d.__vrl_devtools) && (d.__devtoolsApi = n, d.__vrl_devtools.forEach((m) => {
|
|
28631
|
-
let
|
|
28632
|
-
m.isExactActive ? (
|
|
28655
|
+
let b = ORANGE_400, C = "";
|
|
28656
|
+
m.isExactActive ? (b = LIME_500, C = "This is exactly active") : m.isActive && (b = BLUE_600, C = "This link is active"), c.tags.push({
|
|
28633
28657
|
label: m.route.path,
|
|
28634
28658
|
textColor: 0,
|
|
28635
|
-
tooltip:
|
|
28636
|
-
backgroundColor:
|
|
28659
|
+
tooltip: C,
|
|
28660
|
+
backgroundColor: b
|
|
28637
28661
|
});
|
|
28638
28662
|
}));
|
|
28639
28663
|
}), watch(t.currentRoute, () => {
|
|
@@ -28677,10 +28701,10 @@ function addDevtools(e, t, o) {
|
|
|
28677
28701
|
}
|
|
28678
28702
|
});
|
|
28679
28703
|
}), t.afterEach((c, d, m) => {
|
|
28680
|
-
const
|
|
28704
|
+
const b = {
|
|
28681
28705
|
guard: formatDisplay("afterEach")
|
|
28682
28706
|
};
|
|
28683
|
-
m ? (
|
|
28707
|
+
m ? (b.failure = {
|
|
28684
28708
|
_custom: {
|
|
28685
28709
|
type: Error,
|
|
28686
28710
|
readOnly: !0,
|
|
@@ -28688,13 +28712,13 @@ function addDevtools(e, t, o) {
|
|
|
28688
28712
|
tooltip: "Navigation Failure",
|
|
28689
28713
|
value: m
|
|
28690
28714
|
}
|
|
28691
|
-
},
|
|
28715
|
+
}, b.status = formatDisplay("❌")) : b.status = formatDisplay("✅"), b.from = formatRouteLocation(d, "Current Location during this navigation"), b.to = formatRouteLocation(c, "Target location"), n.addTimelineEvent({
|
|
28692
28716
|
layerId: i,
|
|
28693
28717
|
event: {
|
|
28694
28718
|
title: "End of navigation",
|
|
28695
28719
|
subtitle: c.fullPath,
|
|
28696
28720
|
time: n.now(),
|
|
28697
|
-
data:
|
|
28721
|
+
data: b,
|
|
28698
28722
|
logType: m ? "warning" : "default",
|
|
28699
28723
|
groupId: c.meta.__navigationId
|
|
28700
28724
|
}
|
|
@@ -28724,7 +28748,7 @@ function addDevtools(e, t, o) {
|
|
|
28724
28748
|
u = c, c.app === e && c.inspectorId === l && a();
|
|
28725
28749
|
}), n.on.getInspectorState((c) => {
|
|
28726
28750
|
if (c.app === e && c.inspectorId === l) {
|
|
28727
|
-
const m = o.getRoutes().find((
|
|
28751
|
+
const m = o.getRoutes().find((b) => b.record.__vd_id === c.nodeId);
|
|
28728
28752
|
m && (c.state = {
|
|
28729
28753
|
options: formatRouteRecordMatcherForStateInspector(m)
|
|
28730
28754
|
});
|
|
@@ -28848,55 +28872,55 @@ function createRouter(e) {
|
|
|
28848
28872
|
const i = useCallbacks(), s = useCallbacks(), l = useCallbacks(), a = shallowRef(START_LOCATION_NORMALIZED);
|
|
28849
28873
|
let u = START_LOCATION_NORMALIZED;
|
|
28850
28874
|
isBrowser && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
28851
|
-
const c = applyToParams.bind(null, (
|
|
28875
|
+
const c = applyToParams.bind(null, (y) => "" + y), d = applyToParams.bind(null, encodeParam), m = (
|
|
28852
28876
|
// @ts-expect-error: intentionally avoid the type check
|
|
28853
28877
|
applyToParams.bind(null, decode)
|
|
28854
28878
|
);
|
|
28855
|
-
function
|
|
28879
|
+
function b(y, _) {
|
|
28856
28880
|
let P, V;
|
|
28857
|
-
return isRouteName(
|
|
28881
|
+
return isRouteName(y) ? (P = t.getRecordMatcher(y), V = _) : V = y, t.addRoute(V, P);
|
|
28858
28882
|
}
|
|
28859
|
-
function y
|
|
28860
|
-
const _ = t.getRecordMatcher(
|
|
28861
|
-
_ ? t.removeRoute(_) : process.env.NODE_ENV !== "production" && warn(`Cannot remove non-existent route "${String(
|
|
28883
|
+
function C(y) {
|
|
28884
|
+
const _ = t.getRecordMatcher(y);
|
|
28885
|
+
_ ? t.removeRoute(_) : process.env.NODE_ENV !== "production" && warn(`Cannot remove non-existent route "${String(y)}"`);
|
|
28862
28886
|
}
|
|
28863
28887
|
function w() {
|
|
28864
|
-
return t.getRoutes().map((
|
|
28888
|
+
return t.getRoutes().map((y) => y.record);
|
|
28865
28889
|
}
|
|
28866
|
-
function E(
|
|
28867
|
-
return !!t.getRecordMatcher(
|
|
28890
|
+
function E(y) {
|
|
28891
|
+
return !!t.getRecordMatcher(y);
|
|
28868
28892
|
}
|
|
28869
|
-
function p(
|
|
28870
|
-
if (_ = assign({}, _ || a.value), typeof
|
|
28871
|
-
const T = parseURL(o,
|
|
28872
|
-
return process.env.NODE_ENV !== "production" && (
|
|
28893
|
+
function p(y, _) {
|
|
28894
|
+
if (_ = assign({}, _ || a.value), typeof y == "string") {
|
|
28895
|
+
const T = parseURL(o, y, _.path), I = t.resolve({ path: T.path }, _), M = n.createHref(T.fullPath);
|
|
28896
|
+
return process.env.NODE_ENV !== "production" && (M.startsWith("//") ? warn(`Location "${y}" resolved to "${M}". A resolved location cannot start with multiple slashes.`) : I.matched.length || warn(`No match found for location with path "${y}"`)), assign(T, I, {
|
|
28873
28897
|
params: m(I.params),
|
|
28874
28898
|
hash: decode(T.hash),
|
|
28875
28899
|
redirectedFrom: void 0,
|
|
28876
|
-
href:
|
|
28900
|
+
href: M
|
|
28877
28901
|
});
|
|
28878
28902
|
}
|
|
28879
28903
|
let P;
|
|
28880
|
-
if ("path" in
|
|
28881
|
-
process.env.NODE_ENV !== "production" && "params" in
|
|
28882
|
-
Object.keys(
|
|
28883
|
-
path: parseURL(o,
|
|
28904
|
+
if ("path" in y)
|
|
28905
|
+
process.env.NODE_ENV !== "production" && "params" in y && !("name" in y) && // @ts-expect-error: the type is never
|
|
28906
|
+
Object.keys(y.params).length && warn(`Path "${y.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), P = assign({}, y, {
|
|
28907
|
+
path: parseURL(o, y.path, _.path).path
|
|
28884
28908
|
});
|
|
28885
28909
|
else {
|
|
28886
|
-
const T = assign({},
|
|
28910
|
+
const T = assign({}, y.params);
|
|
28887
28911
|
for (const I in T)
|
|
28888
28912
|
T[I] == null && delete T[I];
|
|
28889
|
-
P = assign({},
|
|
28913
|
+
P = assign({}, y, {
|
|
28890
28914
|
params: d(T)
|
|
28891
28915
|
}), _.params = d(_.params);
|
|
28892
28916
|
}
|
|
28893
|
-
const V = t.resolve(P, _), R =
|
|
28917
|
+
const V = t.resolve(P, _), R = y.hash || "";
|
|
28894
28918
|
process.env.NODE_ENV !== "production" && R && !R.startsWith("#") && warn(`A \`hash\` should always start with the character "#". Replace "${R}" with "#${R}".`), V.params = c(m(V.params));
|
|
28895
|
-
const U = stringifyURL(r, assign({},
|
|
28919
|
+
const U = stringifyURL(r, assign({}, y, {
|
|
28896
28920
|
hash: encodeHash(R),
|
|
28897
28921
|
path: V.path
|
|
28898
28922
|
})), N = n.createHref(U);
|
|
28899
|
-
return process.env.NODE_ENV !== "production" && (N.startsWith("//") ? warn(`Location "${
|
|
28923
|
+
return process.env.NODE_ENV !== "production" && (N.startsWith("//") ? warn(`Location "${y}" resolved to "${N}". A resolved location cannot start with multiple slashes.`) : V.matched.length || warn(`No match found for location with path "${"path" in y ? y.path : y}"`)), assign({
|
|
28900
28924
|
fullPath: U,
|
|
28901
28925
|
// keep the hash encoded so fullPath is effectively path + encodedQuery +
|
|
28902
28926
|
// hash
|
|
@@ -28907,51 +28931,51 @@ function createRouter(e) {
|
|
|
28907
28931
|
// numbers at `$route.query`, but at the point, the user will have to
|
|
28908
28932
|
// use their own type anyway.
|
|
28909
28933
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
|
28910
|
-
r === stringifyQuery ? normalizeQuery(
|
|
28934
|
+
r === stringifyQuery ? normalizeQuery(y.query) : y.query || {}
|
|
28911
28935
|
)
|
|
28912
28936
|
}, V, {
|
|
28913
28937
|
redirectedFrom: void 0,
|
|
28914
28938
|
href: N
|
|
28915
28939
|
});
|
|
28916
28940
|
}
|
|
28917
|
-
function f(
|
|
28918
|
-
return typeof
|
|
28941
|
+
function f(y) {
|
|
28942
|
+
return typeof y == "string" ? parseURL(o, y, a.value.path) : assign({}, y);
|
|
28919
28943
|
}
|
|
28920
|
-
function g(
|
|
28921
|
-
if (u !==
|
|
28944
|
+
function g(y, _) {
|
|
28945
|
+
if (u !== y)
|
|
28922
28946
|
return createRouterError(8, {
|
|
28923
28947
|
from: _,
|
|
28924
|
-
to:
|
|
28948
|
+
to: y
|
|
28925
28949
|
});
|
|
28926
28950
|
}
|
|
28927
|
-
function v(
|
|
28928
|
-
return O(
|
|
28951
|
+
function v(y) {
|
|
28952
|
+
return O(y);
|
|
28929
28953
|
}
|
|
28930
|
-
function k(
|
|
28931
|
-
return v(assign(f(
|
|
28954
|
+
function k(y) {
|
|
28955
|
+
return v(assign(f(y), { replace: !0 }));
|
|
28932
28956
|
}
|
|
28933
|
-
function $(
|
|
28934
|
-
const _ =
|
|
28957
|
+
function $(y) {
|
|
28958
|
+
const _ = y.matched[y.matched.length - 1];
|
|
28935
28959
|
if (_ && _.redirect) {
|
|
28936
28960
|
const { redirect: P } = _;
|
|
28937
|
-
let V = typeof P == "function" ? P(
|
|
28961
|
+
let V = typeof P == "function" ? P(y) : P;
|
|
28938
28962
|
if (typeof V == "string" && (V = V.includes("?") || V.includes("#") ? V = f(V) : (
|
|
28939
28963
|
// force empty params
|
|
28940
28964
|
{ path: V }
|
|
28941
28965
|
), V.params = {}), process.env.NODE_ENV !== "production" && !("path" in V) && !("name" in V))
|
|
28942
28966
|
throw warn(`Invalid redirect found:
|
|
28943
28967
|
${JSON.stringify(V, null, 2)}
|
|
28944
|
-
when navigating to "${
|
|
28968
|
+
when navigating to "${y.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
|
|
28945
28969
|
return assign({
|
|
28946
|
-
query:
|
|
28947
|
-
hash:
|
|
28970
|
+
query: y.query,
|
|
28971
|
+
hash: y.hash,
|
|
28948
28972
|
// avoid transferring params if the redirect has a path
|
|
28949
|
-
params: "path" in V ? {} :
|
|
28973
|
+
params: "path" in V ? {} : y.params
|
|
28950
28974
|
}, V);
|
|
28951
28975
|
}
|
|
28952
28976
|
}
|
|
28953
|
-
function O(
|
|
28954
|
-
const P = u = p(
|
|
28977
|
+
function O(y, _) {
|
|
28978
|
+
const P = u = p(y), V = a.value, R = y.state, U = y.force, N = y.replace === !0, T = $(P);
|
|
28955
28979
|
if (T)
|
|
28956
28980
|
return O(
|
|
28957
28981
|
assign(f(T), {
|
|
@@ -28964,8 +28988,8 @@ ${JSON.stringify(V, null, 2)}
|
|
|
28964
28988
|
);
|
|
28965
28989
|
const I = P;
|
|
28966
28990
|
I.redirectedFrom = _;
|
|
28967
|
-
let
|
|
28968
|
-
return !U && isSameRouteLocation(r, V, P) && (
|
|
28991
|
+
let M;
|
|
28992
|
+
return !U && isSameRouteLocation(r, V, P) && (M = createRouterError(16, { to: I, from: V }), Q(
|
|
28969
28993
|
V,
|
|
28970
28994
|
V,
|
|
28971
28995
|
// this is a push, the only way for it to be triggered from a
|
|
@@ -28974,25 +28998,25 @@ ${JSON.stringify(V, null, 2)}
|
|
|
28974
28998
|
// This cannot be the first navigation because the initial location
|
|
28975
28999
|
// cannot be manually navigated to
|
|
28976
29000
|
!1
|
|
28977
|
-
)), (
|
|
29001
|
+
)), (M ? Promise.resolve(M) : B(I, V)).catch((F) => isNavigationFailure(F) ? (
|
|
28978
29002
|
// navigation redirects still mark the router as ready
|
|
28979
29003
|
isNavigationFailure(
|
|
28980
|
-
|
|
29004
|
+
F,
|
|
28981
29005
|
2
|
|
28982
29006
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
28983
|
-
) ?
|
|
29007
|
+
) ? F : q(F)
|
|
28984
29008
|
) : (
|
|
28985
29009
|
// reject any unknown error
|
|
28986
|
-
z(
|
|
28987
|
-
)).then((
|
|
28988
|
-
if (
|
|
29010
|
+
z(F, I, V)
|
|
29011
|
+
)).then((F) => {
|
|
29012
|
+
if (F) {
|
|
28989
29013
|
if (isNavigationFailure(
|
|
28990
|
-
|
|
29014
|
+
F,
|
|
28991
29015
|
2
|
|
28992
29016
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
28993
29017
|
))
|
|
28994
29018
|
return process.env.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
|
|
28995
|
-
isSameRouteLocation(r, p(
|
|
29019
|
+
isSameRouteLocation(r, p(F.to), I) && // and we have done it a couple of times
|
|
28996
29020
|
_ && // @ts-expect-error: added only in dev
|
|
28997
29021
|
(_._count = _._count ? (
|
|
28998
29022
|
// @ts-expect-error
|
|
@@ -29003,45 +29027,45 @@ ${JSON.stringify(V, null, 2)}
|
|
|
29003
29027
|
assign({
|
|
29004
29028
|
// preserve an existing replacement but allow the redirect to override it
|
|
29005
29029
|
replace: N
|
|
29006
|
-
}, f(
|
|
29007
|
-
state: typeof
|
|
29030
|
+
}, f(F.to), {
|
|
29031
|
+
state: typeof F.to == "object" ? assign({}, R, F.to.state) : R,
|
|
29008
29032
|
force: U
|
|
29009
29033
|
}),
|
|
29010
29034
|
// preserve the original redirectedFrom if any
|
|
29011
29035
|
_ || I
|
|
29012
29036
|
);
|
|
29013
29037
|
} else
|
|
29014
|
-
|
|
29015
|
-
return H(I, V,
|
|
29038
|
+
F = L(I, V, !0, N, R);
|
|
29039
|
+
return H(I, V, F), F;
|
|
29016
29040
|
});
|
|
29017
29041
|
}
|
|
29018
|
-
function x(
|
|
29019
|
-
const P = g(
|
|
29042
|
+
function x(y, _) {
|
|
29043
|
+
const P = g(y, _);
|
|
29020
29044
|
return P ? Promise.reject(P) : Promise.resolve();
|
|
29021
29045
|
}
|
|
29022
|
-
function S(
|
|
29046
|
+
function S(y) {
|
|
29023
29047
|
const _ = X.values().next().value;
|
|
29024
|
-
return _ && typeof _.runWithContext == "function" ? _.runWithContext(
|
|
29048
|
+
return _ && typeof _.runWithContext == "function" ? _.runWithContext(y) : y();
|
|
29025
29049
|
}
|
|
29026
|
-
function B(
|
|
29050
|
+
function B(y, _) {
|
|
29027
29051
|
let P;
|
|
29028
|
-
const [V, R, U] = extractChangingRecords(
|
|
29029
|
-
P = extractComponentsGuards(V.reverse(), "beforeRouteLeave",
|
|
29052
|
+
const [V, R, U] = extractChangingRecords(y, _);
|
|
29053
|
+
P = extractComponentsGuards(V.reverse(), "beforeRouteLeave", y, _);
|
|
29030
29054
|
for (const T of V)
|
|
29031
29055
|
T.leaveGuards.forEach((I) => {
|
|
29032
|
-
P.push(guardToPromiseFn(I,
|
|
29056
|
+
P.push(guardToPromiseFn(I, y, _));
|
|
29033
29057
|
});
|
|
29034
|
-
const N = x.bind(null,
|
|
29058
|
+
const N = x.bind(null, y, _);
|
|
29035
29059
|
return P.push(N), oe(P).then(() => {
|
|
29036
29060
|
P = [];
|
|
29037
29061
|
for (const T of i.list())
|
|
29038
|
-
P.push(guardToPromiseFn(T,
|
|
29062
|
+
P.push(guardToPromiseFn(T, y, _));
|
|
29039
29063
|
return P.push(N), oe(P);
|
|
29040
29064
|
}).then(() => {
|
|
29041
|
-
P = extractComponentsGuards(R, "beforeRouteUpdate",
|
|
29065
|
+
P = extractComponentsGuards(R, "beforeRouteUpdate", y, _);
|
|
29042
29066
|
for (const T of R)
|
|
29043
29067
|
T.updateGuards.forEach((I) => {
|
|
29044
|
-
P.push(guardToPromiseFn(I,
|
|
29068
|
+
P.push(guardToPromiseFn(I, y, _));
|
|
29045
29069
|
});
|
|
29046
29070
|
return P.push(N), oe(P);
|
|
29047
29071
|
}).then(() => {
|
|
@@ -29050,14 +29074,14 @@ ${JSON.stringify(V, null, 2)}
|
|
|
29050
29074
|
if (T.beforeEnter)
|
|
29051
29075
|
if (isArray(T.beforeEnter))
|
|
29052
29076
|
for (const I of T.beforeEnter)
|
|
29053
|
-
P.push(guardToPromiseFn(I,
|
|
29077
|
+
P.push(guardToPromiseFn(I, y, _));
|
|
29054
29078
|
else
|
|
29055
|
-
P.push(guardToPromiseFn(T.beforeEnter,
|
|
29079
|
+
P.push(guardToPromiseFn(T.beforeEnter, y, _));
|
|
29056
29080
|
return P.push(N), oe(P);
|
|
29057
|
-
}).then(() => (
|
|
29081
|
+
}).then(() => (y.matched.forEach((T) => T.enterCallbacks = {}), P = extractComponentsGuards(U, "beforeRouteEnter", y, _), P.push(N), oe(P))).then(() => {
|
|
29058
29082
|
P = [];
|
|
29059
29083
|
for (const T of s.list())
|
|
29060
|
-
P.push(guardToPromiseFn(T,
|
|
29084
|
+
P.push(guardToPromiseFn(T, y, _));
|
|
29061
29085
|
return P.push(N), oe(P);
|
|
29062
29086
|
}).catch((T) => isNavigationFailure(
|
|
29063
29087
|
T,
|
|
@@ -29065,22 +29089,22 @@ ${JSON.stringify(V, null, 2)}
|
|
|
29065
29089
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
29066
29090
|
) ? T : Promise.reject(T));
|
|
29067
29091
|
}
|
|
29068
|
-
function H(
|
|
29069
|
-
l.list().forEach((V) => S(() => V(
|
|
29092
|
+
function H(y, _, P) {
|
|
29093
|
+
l.list().forEach((V) => S(() => V(y, _, P)));
|
|
29070
29094
|
}
|
|
29071
|
-
function L(
|
|
29072
|
-
const U = g(
|
|
29095
|
+
function L(y, _, P, V, R) {
|
|
29096
|
+
const U = g(y, _);
|
|
29073
29097
|
if (U)
|
|
29074
29098
|
return U;
|
|
29075
29099
|
const N = _ === START_LOCATION_NORMALIZED, T = isBrowser ? history.state : {};
|
|
29076
|
-
P && (V || N ? n.replace(
|
|
29100
|
+
P && (V || N ? n.replace(y.fullPath, assign({
|
|
29077
29101
|
scroll: N && T && T.scroll
|
|
29078
|
-
}, R)) : n.push(
|
|
29102
|
+
}, R)) : n.push(y.fullPath, R)), a.value = y, Q(y, _, P, N), q();
|
|
29079
29103
|
}
|
|
29080
29104
|
let G;
|
|
29081
29105
|
function ne() {
|
|
29082
|
-
G || (G = n.listen((
|
|
29083
|
-
const V = p(
|
|
29106
|
+
G || (G = n.listen((y, _, P) => {
|
|
29107
|
+
const V = p(y), R = $(V);
|
|
29084
29108
|
if (R) {
|
|
29085
29109
|
O(assign(R, { replace: !0 }), V).catch(noop);
|
|
29086
29110
|
return;
|
|
@@ -29126,33 +29150,33 @@ ${JSON.stringify(V, null, 2)}
|
|
|
29126
29150
|
}));
|
|
29127
29151
|
}
|
|
29128
29152
|
let re = useCallbacks(), te = useCallbacks(), j;
|
|
29129
|
-
function z(
|
|
29130
|
-
q(
|
|
29153
|
+
function z(y, _, P) {
|
|
29154
|
+
q(y);
|
|
29131
29155
|
const V = te.list();
|
|
29132
|
-
return V.length ? V.forEach((R) => R(
|
|
29156
|
+
return V.length ? V.forEach((R) => R(y, _, P)) : (process.env.NODE_ENV !== "production" && warn("uncaught error during route navigation:"), console.error(y)), Promise.reject(y);
|
|
29133
29157
|
}
|
|
29134
29158
|
function Y() {
|
|
29135
|
-
return j && a.value !== START_LOCATION_NORMALIZED ? Promise.resolve() : new Promise((
|
|
29136
|
-
re.add([
|
|
29159
|
+
return j && a.value !== START_LOCATION_NORMALIZED ? Promise.resolve() : new Promise((y, _) => {
|
|
29160
|
+
re.add([y, _]);
|
|
29137
29161
|
});
|
|
29138
29162
|
}
|
|
29139
|
-
function q(
|
|
29140
|
-
return j || (j = !
|
|
29163
|
+
function q(y) {
|
|
29164
|
+
return j || (j = !y, ne(), re.list().forEach(([_, P]) => y ? P(y) : _()), re.reset()), y;
|
|
29141
29165
|
}
|
|
29142
|
-
function Q(
|
|
29166
|
+
function Q(y, _, P, V) {
|
|
29143
29167
|
const { scrollBehavior: R } = e;
|
|
29144
29168
|
if (!isBrowser || !R)
|
|
29145
29169
|
return Promise.resolve();
|
|
29146
|
-
const U = !P && getSavedScrollPosition(getScrollKey(
|
|
29147
|
-
return nextTick().then(() => R(
|
|
29170
|
+
const U = !P && getSavedScrollPosition(getScrollKey(y.fullPath, 0)) || (V || !P) && history.state && history.state.scroll || null;
|
|
29171
|
+
return nextTick().then(() => R(y, _, U)).then((N) => N && scrollToPosition(N)).catch((N) => z(N, y, _));
|
|
29148
29172
|
}
|
|
29149
|
-
const J = (
|
|
29173
|
+
const J = (y) => n.go(y);
|
|
29150
29174
|
let se;
|
|
29151
29175
|
const X = /* @__PURE__ */ new Set(), ie = {
|
|
29152
29176
|
currentRoute: a,
|
|
29153
29177
|
listening: !0,
|
|
29154
|
-
addRoute:
|
|
29155
|
-
removeRoute:
|
|
29178
|
+
addRoute: b,
|
|
29179
|
+
removeRoute: C,
|
|
29156
29180
|
hasRoute: E,
|
|
29157
29181
|
getRoutes: w,
|
|
29158
29182
|
resolve: p,
|
|
@@ -29167,9 +29191,9 @@ ${JSON.stringify(V, null, 2)}
|
|
|
29167
29191
|
afterEach: l.add,
|
|
29168
29192
|
onError: te.add,
|
|
29169
29193
|
isReady: Y,
|
|
29170
|
-
install(
|
|
29194
|
+
install(y) {
|
|
29171
29195
|
const _ = this;
|
|
29172
|
-
|
|
29196
|
+
y.component("RouterLink", RouterLink), y.component("RouterView", RouterView), y.config.globalProperties.$router = _, Object.defineProperty(y.config.globalProperties, "$route", {
|
|
29173
29197
|
enumerable: !0,
|
|
29174
29198
|
get: () => unref(a)
|
|
29175
29199
|
}), isBrowser && // used for the initial navigation client side to avoid pushing
|
|
@@ -29183,15 +29207,15 @@ ${JSON.stringify(V, null, 2)}
|
|
|
29183
29207
|
get: () => a.value[R],
|
|
29184
29208
|
enumerable: !0
|
|
29185
29209
|
});
|
|
29186
|
-
|
|
29187
|
-
const V =
|
|
29188
|
-
X.add(
|
|
29189
|
-
X.delete(
|
|
29190
|
-
}, process.env.NODE_ENV !== "production" && isBrowser && addDevtools(
|
|
29210
|
+
y.provide(routerKey, _), y.provide(routeLocationKey, shallowReactive(P)), y.provide(routerViewLocationKey, a);
|
|
29211
|
+
const V = y.unmount;
|
|
29212
|
+
X.add(y), y.unmount = function() {
|
|
29213
|
+
X.delete(y), X.size < 1 && (u = START_LOCATION_NORMALIZED, G && G(), G = null, a.value = START_LOCATION_NORMALIZED, se = !1, j = !1), V();
|
|
29214
|
+
}, process.env.NODE_ENV !== "production" && isBrowser && addDevtools(y, _, t);
|
|
29191
29215
|
}
|
|
29192
29216
|
};
|
|
29193
|
-
function oe(
|
|
29194
|
-
return
|
|
29217
|
+
function oe(y) {
|
|
29218
|
+
return y.reduce((_, P) => _.then(() => S(P)), Promise.resolve());
|
|
29195
29219
|
}
|
|
29196
29220
|
return ie;
|
|
29197
29221
|
}
|
|
@@ -29559,7 +29583,7 @@ const _sfc_main$8 = defineComponent({
|
|
|
29559
29583
|
)
|
|
29560
29584
|
])
|
|
29561
29585
|
) : a.push(
|
|
29562
|
-
h$1("div", { class:
|
|
29586
|
+
h$1("div", { class: c }, [
|
|
29563
29587
|
h$1(
|
|
29564
29588
|
"div",
|
|
29565
29589
|
{
|
|
@@ -29570,7 +29594,7 @@ const _sfc_main$8 = defineComponent({
|
|
|
29570
29594
|
])
|
|
29571
29595
|
)), a;
|
|
29572
29596
|
}
|
|
29573
|
-
}),
|
|
29597
|
+
}), Item_vue_vue_type_style_index_0_scoped_06486485_lang = "", Item = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["__scopeId", "data-v-06486485"]]), _sfc_main$7 = {
|
|
29574
29598
|
props: {
|
|
29575
29599
|
to: {
|
|
29576
29600
|
type: Object,
|
|
@@ -30001,7 +30025,7 @@ const Layout = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_rende
|
|
|
30001
30025
|
children: [
|
|
30002
30026
|
{
|
|
30003
30027
|
path: "page",
|
|
30004
|
-
component: () => import("./iframe-page-
|
|
30028
|
+
component: () => import("./iframe-page-4b3ead36.js"),
|
|
30005
30029
|
hidden: !0
|
|
30006
30030
|
}
|
|
30007
30031
|
]
|
|
@@ -30018,27 +30042,27 @@ const Layout = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_rende
|
|
|
30018
30042
|
},
|
|
30019
30043
|
{
|
|
30020
30044
|
path: "/404",
|
|
30021
|
-
component: () => import("./404-
|
|
30045
|
+
component: () => import("./404-0fe5eb35.js"),
|
|
30022
30046
|
hidden: !0
|
|
30023
30047
|
},
|
|
30024
30048
|
{
|
|
30025
30049
|
path: "/401",
|
|
30026
|
-
component: () => import("./401-
|
|
30050
|
+
component: () => import("./401-80a0280c.js"),
|
|
30027
30051
|
hidden: !0
|
|
30028
30052
|
},
|
|
30029
30053
|
{
|
|
30030
30054
|
path: "/show-sub-wf-history",
|
|
30031
|
-
component: () => import("./tache-subprocess-history-
|
|
30055
|
+
component: () => import("./tache-subprocess-history-d7268ee8.js"),
|
|
30032
30056
|
hidden: !0
|
|
30033
30057
|
},
|
|
30034
30058
|
{
|
|
30035
30059
|
path: "/tab-content-index",
|
|
30036
|
-
component: () => import("./tab-content-index-
|
|
30060
|
+
component: () => import("./tab-content-index-c83389d3.js"),
|
|
30037
30061
|
hidden: !0
|
|
30038
30062
|
},
|
|
30039
30063
|
{
|
|
30040
30064
|
path: "/tab-content-iframe-index",
|
|
30041
|
-
component: () => import("./tab-content-iframe-index-
|
|
30065
|
+
component: () => import("./tab-content-iframe-index-8b4a9034.js"),
|
|
30042
30066
|
hidden: !0
|
|
30043
30067
|
}
|
|
30044
30068
|
], protectedRouterMap = [];
|
|
@@ -30099,7 +30123,15 @@ const permission = {
|
|
|
30099
30123
|
});
|
|
30100
30124
|
}
|
|
30101
30125
|
}
|
|
30102
|
-
}
|
|
30126
|
+
};
|
|
30127
|
+
function setActiveMenuToChatAiStore(e) {
|
|
30128
|
+
try {
|
|
30129
|
+
window.top.ChatAiStore && window.top.ChatAiStore.setActiveMenu(e);
|
|
30130
|
+
} catch (t) {
|
|
30131
|
+
console.error("ChatAiStore not found", t);
|
|
30132
|
+
}
|
|
30133
|
+
}
|
|
30134
|
+
const tabContent = {
|
|
30103
30135
|
state: {
|
|
30104
30136
|
openTab: [],
|
|
30105
30137
|
// 所有打开的路由
|
|
@@ -30123,7 +30155,11 @@ const permission = {
|
|
|
30123
30155
|
},
|
|
30124
30156
|
// 设置当前激活的tab
|
|
30125
30157
|
set_active_index(e, t) {
|
|
30126
|
-
e.
|
|
30158
|
+
const o = e.openTab.find((r) => r.code === t);
|
|
30159
|
+
setActiveMenuToChatAiStore({
|
|
30160
|
+
menuCode: t,
|
|
30161
|
+
menuName: (o == null ? void 0 : o.name) || ""
|
|
30162
|
+
}), e.activeIndex = t;
|
|
30127
30163
|
},
|
|
30128
30164
|
// 清空tabs
|
|
30129
30165
|
clear_tabs(e, t) {
|
|
@@ -30667,7 +30703,7 @@ const workflowEditor_vue_vue_type_style_index_0_scoped_22c505ff_lang = "", _sfc_
|
|
|
30667
30703
|
class: "xml line-numbers"
|
|
30668
30704
|
};
|
|
30669
30705
|
function _sfc_render$3(e, t, o, r, n, i) {
|
|
30670
|
-
const s = resolveComponent("el-button"), l = resolveComponent("el-option"), a = resolveComponent("el-select"), u = resolveComponent("el-row"), c = resolveComponent("toolbox"), d = resolveComponent("workflow-canvas"), m = resolveComponent("el-tab-pane"),
|
|
30706
|
+
const s = resolveComponent("el-button"), l = resolveComponent("el-option"), a = resolveComponent("el-select"), u = resolveComponent("el-row"), c = resolveComponent("toolbox"), d = resolveComponent("workflow-canvas"), m = resolveComponent("el-tab-pane"), b = resolveComponent("el-tabs"), C = resolveComponent("icon-svg"), w = resolveComponent("context-menu"), E = resolveComponent("admin-save-dialog"), p = resolveDirective("permission");
|
|
30671
30707
|
return openBlock(), createElementBlock("div", {
|
|
30672
30708
|
ref: "wfEditor",
|
|
30673
30709
|
style: { position: "relative", height: "100%" },
|
|
@@ -30778,7 +30814,7 @@ function _sfc_render$3(e, t, o, r, n, i) {
|
|
|
30778
30814
|
oncontextmenu: "return false"
|
|
30779
30815
|
})),
|
|
30780
30816
|
createElementVNode("section", _hoisted_1$3, [
|
|
30781
|
-
createVNode(
|
|
30817
|
+
createVNode(b, {
|
|
30782
30818
|
modelValue: e.activeTab,
|
|
30783
30819
|
"onUpdate:modelValue": t[3] || (t[3] = (f) => e.activeTab = f),
|
|
30784
30820
|
class: "tabs"
|
|
@@ -30822,7 +30858,7 @@ function _sfc_render$3(e, t, o, r, n, i) {
|
|
|
30822
30858
|
}, 8, ["modelValue"])
|
|
30823
30859
|
])
|
|
30824
30860
|
], 32),
|
|
30825
|
-
e.componentToDraw ? (openBlock(), createBlock(
|
|
30861
|
+
e.componentToDraw ? (openBlock(), createBlock(C, {
|
|
30826
30862
|
key: 0,
|
|
30827
30863
|
style: normalizeStyle({
|
|
30828
30864
|
height: i.componentInfo.height,
|
|
@@ -31049,14 +31085,14 @@ function i18nOperation(e, t, o, r) {
|
|
|
31049
31085
|
(c + "").indexOf("key_") < 0 && (d = "key_" + d), u[d] = s[c];
|
|
31050
31086
|
const m = s[c];
|
|
31051
31087
|
if (m.indexOf("${taskNodeId:") >= 0) {
|
|
31052
|
-
const
|
|
31088
|
+
const b = m.substring(
|
|
31053
31089
|
m.indexOf(":") + 1,
|
|
31054
31090
|
m.indexOf("##")
|
|
31055
|
-
),
|
|
31091
|
+
), C = m.substring(
|
|
31056
31092
|
m.indexOf("##") + 2,
|
|
31057
31093
|
m.lastIndexOf("}")
|
|
31058
|
-
), w = o[
|
|
31059
|
-
w && w[r] && w[r] !== "" ? u[d] = w[r] : u[d] =
|
|
31094
|
+
), w = o[b];
|
|
31095
|
+
w && w[r] && w[r] !== "" ? u[d] = w[r] : u[d] = C;
|
|
31060
31096
|
}
|
|
31061
31097
|
}
|
|
31062
31098
|
n = getI18n$1().t("workflowHistoryList." + l, u);
|
|
@@ -31471,13 +31507,13 @@ function getValidator(e, t, o, r, n, i) {
|
|
|
31471
31507
|
return e && e.forEach((d) => {
|
|
31472
31508
|
const m = d.canEdit;
|
|
31473
31509
|
if (typeof m < "u" && m === !0) {
|
|
31474
|
-
let
|
|
31475
|
-
if (
|
|
31476
|
-
o === !0 && (
|
|
31477
|
-
const
|
|
31510
|
+
let b = d.name;
|
|
31511
|
+
if (b) {
|
|
31512
|
+
o === !0 && (b = b);
|
|
31513
|
+
const C = d.condition, w = null;
|
|
31478
31514
|
let E = null;
|
|
31479
|
-
if (
|
|
31480
|
-
|
|
31515
|
+
if (b.indexOf(".") > 0 && b.indexOf("$") === 0 ? E = !0 : E = parseSubTablePermissionCondition(
|
|
31516
|
+
C,
|
|
31481
31517
|
l,
|
|
31482
31518
|
w,
|
|
31483
31519
|
t,
|
|
@@ -31486,10 +31522,10 @@ function getValidator(e, t, o, r, n, i) {
|
|
|
31486
31522
|
i
|
|
31487
31523
|
), E != null && E === !0) {
|
|
31488
31524
|
let p = {};
|
|
31489
|
-
if (
|
|
31490
|
-
|
|
31491
|
-
else if (
|
|
31492
|
-
const f =
|
|
31525
|
+
if (b.indexOf(".") > 0)
|
|
31526
|
+
b.indexOf("$") === 0 ? setSubObjectFieldRule(d, u, t, o, l) : setMainObjectFieldRule(d, s, t, o, l);
|
|
31527
|
+
else if (b.indexOf("$") === 0) {
|
|
31528
|
+
const f = b.substring(b.indexOf("$") + 1);
|
|
31493
31529
|
a[f] = {
|
|
31494
31530
|
required: !0,
|
|
31495
31531
|
message: getI18n().t("workflowEditorMessage.subTableMustInputDatas", {
|
|
@@ -31497,7 +31533,7 @@ function getValidator(e, t, o, r, n, i) {
|
|
|
31497
31533
|
})
|
|
31498
31534
|
};
|
|
31499
31535
|
} else
|
|
31500
|
-
p = getLeafPropRule(d, l), s[
|
|
31536
|
+
p = getLeafPropRule(d, l), s[b] = p;
|
|
31501
31537
|
}
|
|
31502
31538
|
}
|
|
31503
31539
|
}
|
|
@@ -31549,89 +31585,94 @@ function setSubObjectFieldRule(e, t, o, r, n) {
|
|
|
31549
31585
|
} else
|
|
31550
31586
|
t[s][a] = getLeafPropRule(u, n);
|
|
31551
31587
|
}
|
|
31552
|
-
function validator(e, t, o, r, n, i) {
|
|
31553
|
-
return validatorEntity(e, t, o, !0, r, n, i);
|
|
31588
|
+
function validator(e, t, o, r, n, i, s) {
|
|
31589
|
+
return validatorEntity(e, t, o, !0, r, n, i, s);
|
|
31554
31590
|
}
|
|
31555
|
-
function validatorEntity(e, t, o, r, n, i, s) {
|
|
31556
|
-
let
|
|
31557
|
-
|
|
31591
|
+
function validatorEntity(e, t, o, r, n, i, s, l) {
|
|
31592
|
+
let a = !1;
|
|
31593
|
+
const u = new Schema(t);
|
|
31594
|
+
let c;
|
|
31595
|
+
if (u.validate(
|
|
31558
31596
|
e,
|
|
31559
31597
|
{
|
|
31560
31598
|
first: !0
|
|
31561
31599
|
},
|
|
31562
|
-
(
|
|
31563
|
-
|
|
31564
|
-
|
|
31565
|
-
|
|
31566
|
-
d = u[0].field, typeof o < "u" && o !== null ? i !== void 0 && s !== void 0 ? l = getI18n().t("workflowEditorMessage.pageRecordLine", {
|
|
31600
|
+
(d, m) => {
|
|
31601
|
+
if (d) {
|
|
31602
|
+
const b = d[0].message;
|
|
31603
|
+
c = d[0].field, typeof o < "u" && o !== null ? i !== void 0 && s !== void 0 ? a = getI18n().t("workflowEditorMessage.pageRecordLine", {
|
|
31567
31604
|
pageNum: i,
|
|
31568
31605
|
row: s
|
|
31569
|
-
}) + "," +
|
|
31606
|
+
}) + "," + b : a = getI18n().t("workflowEditorMessage.recordLine", {
|
|
31570
31607
|
row: o + 1
|
|
31571
|
-
}) + "," +
|
|
31608
|
+
}) + "," + b : a = b;
|
|
31572
31609
|
} else
|
|
31573
|
-
|
|
31574
|
-
if (
|
|
31610
|
+
a = !0;
|
|
31611
|
+
if (c && r === !0 && n !== void 0 && n === !0 && /[A-Z]+/.test(c) && e[c.toLowerCase()] !== void 0) {
|
|
31575
31612
|
const C = JSON.parse(JSON.stringify(e));
|
|
31576
|
-
C[
|
|
31613
|
+
C[c.toUpperCase()] = e[c.toLowerCase()], delete C[c.toLowerCase()], a = validatorEntity(C, t, o, !1, n, i, s);
|
|
31577
31614
|
}
|
|
31578
31615
|
}
|
|
31579
|
-
), l
|
|
31616
|
+
), l) {
|
|
31617
|
+
let d = { msg: a, field: c };
|
|
31618
|
+
return i !== void 0 && s !== void 0 ? (d.pageNum = i, d.rowIndex = s) : d.rowIndex = o, d;
|
|
31619
|
+
} else
|
|
31620
|
+
return a;
|
|
31580
31621
|
}
|
|
31581
|
-
function validateSub(e, t, o, r, n, i, s, l, a) {
|
|
31582
|
-
let
|
|
31583
|
-
if (o && (
|
|
31622
|
+
function validateSub(e, t, o, r, n, i, s, l, a, u) {
|
|
31623
|
+
let c = {};
|
|
31624
|
+
if (o && (c = JSON.parse(JSON.stringify(o))), t) {
|
|
31584
31625
|
console.log("formValidator333--subRules=", t);
|
|
31585
|
-
const
|
|
31586
|
-
for (let
|
|
31587
|
-
const
|
|
31626
|
+
const d = Object.keys(t);
|
|
31627
|
+
for (let m = 0; m < d.length; m++) {
|
|
31628
|
+
const b = d[m], C = t[b];
|
|
31588
31629
|
console.log("formValidator44--subFieldRule=", C);
|
|
31589
|
-
const
|
|
31590
|
-
console.log("formValidator555--subFieldProps=",
|
|
31591
|
-
let
|
|
31592
|
-
|
|
31593
|
-
const
|
|
31594
|
-
if (
|
|
31595
|
-
return delete
|
|
31596
|
-
let
|
|
31597
|
-
a && a[
|
|
31598
|
-
for (let
|
|
31599
|
-
const
|
|
31600
|
-
|
|
31630
|
+
const w = Object.keys(C);
|
|
31631
|
+
console.log("formValidator555--subFieldProps=", w);
|
|
31632
|
+
let E = e[b];
|
|
31633
|
+
E || (E = []);
|
|
31634
|
+
const p = validateTotalSubTable(c, e, b);
|
|
31635
|
+
if (p !== !0)
|
|
31636
|
+
return delete c[b], u ? { msg: p, listCode: b } : p;
|
|
31637
|
+
let f, g = [];
|
|
31638
|
+
a && a[b] && (f = a[b].pageSize, g = a[b].fields || []);
|
|
31639
|
+
for (let v = 0; v < E.length; v++) {
|
|
31640
|
+
const k = E[v], $ = packageRowRule(
|
|
31641
|
+
w,
|
|
31601
31642
|
C,
|
|
31602
|
-
|
|
31643
|
+
E[v],
|
|
31603
31644
|
n,
|
|
31604
31645
|
e,
|
|
31605
31646
|
i,
|
|
31606
31647
|
s,
|
|
31607
31648
|
l,
|
|
31608
|
-
|
|
31649
|
+
g
|
|
31609
31650
|
);
|
|
31610
|
-
console.log("formValidator666--rowRule=",
|
|
31611
|
-
let
|
|
31612
|
-
|
|
31613
|
-
const
|
|
31614
|
-
if (
|
|
31615
|
-
const
|
|
31616
|
-
typeof
|
|
31617
|
-
row:
|
|
31651
|
+
console.log("formValidator666--rowRule=", $);
|
|
31652
|
+
let O, x;
|
|
31653
|
+
f !== void 0 && f > 0 && (O = Math.ceil((v + 1) / f), x = v + 1 - (O - 1) * f), Object.keys($).forEach((B) => {
|
|
31654
|
+
const H = $[B];
|
|
31655
|
+
if (H && H.rules && ($[B] = H.rules), H && H.beforeValidate) {
|
|
31656
|
+
const L = H.beforeValidate;
|
|
31657
|
+
typeof L == "function" && L({
|
|
31658
|
+
row: k,
|
|
31618
31659
|
parent: e,
|
|
31619
|
-
rowIndex:
|
|
31620
|
-
}) === !1 && (
|
|
31660
|
+
rowIndex: v
|
|
31661
|
+
}) === !1 && ($[B] = []);
|
|
31621
31662
|
}
|
|
31622
31663
|
});
|
|
31623
|
-
const
|
|
31624
|
-
if (
|
|
31625
|
-
return
|
|
31664
|
+
const S = validator(k, $, v, r, O, x, u);
|
|
31665
|
+
if (!u && S !== !0 || u && S.msg !== !0)
|
|
31666
|
+
return u && (S.listCode = b), S;
|
|
31626
31667
|
}
|
|
31627
31668
|
}
|
|
31628
31669
|
}
|
|
31629
|
-
for (const
|
|
31630
|
-
const
|
|
31631
|
-
if (
|
|
31632
|
-
return
|
|
31670
|
+
for (const d in c) {
|
|
31671
|
+
const m = validateTotalSubTable(c, e, d);
|
|
31672
|
+
if (m !== !0)
|
|
31673
|
+
return u ? { msg: m, listCode: prop } : m;
|
|
31633
31674
|
}
|
|
31634
|
-
return !0;
|
|
31675
|
+
return u ? { msg: !0, listCode: prop } : !0;
|
|
31635
31676
|
}
|
|
31636
31677
|
function getEntityId(e) {
|
|
31637
31678
|
if (e && e.id)
|
|
@@ -31645,8 +31686,8 @@ function packageRowRule(e, t, o, r, n, i, s, l, a) {
|
|
|
31645
31686
|
const m = e[d];
|
|
31646
31687
|
if (a.indexOf(m) < 0)
|
|
31647
31688
|
continue;
|
|
31648
|
-
const
|
|
31649
|
-
|
|
31689
|
+
const b = t[m], C = b.condition, w = parseSubTablePermissionCondition(
|
|
31690
|
+
C,
|
|
31650
31691
|
r,
|
|
31651
31692
|
n,
|
|
31652
31693
|
o,
|
|
@@ -31656,10 +31697,10 @@ function packageRowRule(e, t, o, r, n, i, s, l, a) {
|
|
|
31656
31697
|
);
|
|
31657
31698
|
if (w != null && w === !0)
|
|
31658
31699
|
if (u === void 0)
|
|
31659
|
-
c[m] =
|
|
31700
|
+
c[m] = b;
|
|
31660
31701
|
else {
|
|
31661
|
-
const E =
|
|
31662
|
-
(!E || E.indexOf(u) >= 0) && (c[m] =
|
|
31702
|
+
const E = b.rowIndexes;
|
|
31703
|
+
(!E || E.indexOf(u) >= 0) && (c[m] = b);
|
|
31663
31704
|
}
|
|
31664
31705
|
}
|
|
31665
31706
|
return c;
|
|
@@ -31668,24 +31709,25 @@ function validateTotalSubTable(e, t, o) {
|
|
|
31668
31709
|
let r = t[o];
|
|
31669
31710
|
return r || (r = []), r.length === 0 && e && e[o] && e[o].required !== void 0 && e[o].required === !0 ? e[o].message : !0;
|
|
31670
31711
|
}
|
|
31671
|
-
function formValidator$1(e, t, o, r, n, i, s) {
|
|
31672
|
-
const
|
|
31673
|
-
if (
|
|
31674
|
-
const
|
|
31675
|
-
let
|
|
31676
|
-
return
|
|
31712
|
+
function formValidator$1(e, t, o, r, n, i, s, l) {
|
|
31713
|
+
const a = Object.keys(t);
|
|
31714
|
+
if (a.indexOf("rules") >= 0 && a.indexOf("subRules") >= 0 && a.indexOf("totalSubRules") >= 0) {
|
|
31715
|
+
const u = t.rules, c = t.subRules, d = t.totalSubRules, m = t.dataTypeMap;
|
|
31716
|
+
let b = validator(e, u, null, o, null, null, l);
|
|
31717
|
+
return (!l && b === !0 || l && b.msg === !0) && (c || d) && (b = validateSub(
|
|
31677
31718
|
e,
|
|
31678
|
-
u,
|
|
31679
31719
|
c,
|
|
31680
|
-
o,
|
|
31681
31720
|
d,
|
|
31721
|
+
o,
|
|
31722
|
+
m,
|
|
31682
31723
|
r,
|
|
31683
31724
|
n,
|
|
31684
31725
|
i,
|
|
31685
|
-
s
|
|
31686
|
-
|
|
31726
|
+
s,
|
|
31727
|
+
l
|
|
31728
|
+
)), b;
|
|
31687
31729
|
} else
|
|
31688
|
-
return validator(e, t, null, o);
|
|
31730
|
+
return validator(e, t, null, o, null, null, l);
|
|
31689
31731
|
}
|
|
31690
31732
|
function underscoreName(e) {
|
|
31691
31733
|
return e;
|