@kestra-io/ui-libs 0.0.249 → 0.0.251
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/plugins/PluginIndex.vue.d.ts +1 -0
- package/dist/components/plugins/PluginIndex.vue.d.ts.map +1 -1
- package/dist/{index-Btqd6xqX.cjs → index-BxbuvsFe.cjs} +12 -12
- package/dist/{index-Btqd6xqX.cjs.map → index-BxbuvsFe.cjs.map} +1 -1
- package/dist/{index-DD-eCpul.js → index-Cw0jnbSC.js} +740 -739
- package/dist/{index-DD-eCpul.js.map → index-Cw0jnbSC.js.map} +1 -1
- package/dist/kestra-index.cjs.js +1 -1
- package/dist/kestra-index.es.js +1 -1
- package/dist/{shikiToolset-JFZHkI0W.cjs → shikiToolset-CEIFqfnA.cjs} +2 -2
- package/dist/{shikiToolset-JFZHkI0W.cjs.map → shikiToolset-CEIFqfnA.cjs.map} +1 -1
- package/dist/{shikiToolset-OJfgApPL.js → shikiToolset-D9uEaauu.js} +2 -2
- package/dist/{shikiToolset-OJfgApPL.js.map → shikiToolset-D9uEaauu.js.map} +1 -1
- package/dist/ui-libs.css +1 -1
- package/package.json +1 -1
- package/src/components/plugins/PluginIndex.vue +3 -1
- package/src/scss/ks-theme-dark.scss +1 -0
- package/src/scss/ks-theme-light.scss +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import vl, { Document as El, YAMLMap as Nn } from "yaml";
|
|
2
2
|
import { S as ut, r as Hr, E as U, U as Re, h as Br, d as zr, a as Gr, c as Wr, g as jr, C as Cl, l as Kr } from "./VueFlowUtils-BzTE7TIL.js";
|
|
3
3
|
import { g as Yr, e as qr, d as Xr, r as Zr, a as Jr, f as Qr, b as eo, c as to, h as no, u as lo, i as io, j as ro, k as oo, l as ao, m as so, n as uo, s as co, p as fo, o as mo, q as po, t as vi, v as go, w as ho, x as bl, y as kl, z as _o, A as yo, B as Ei, C as vo } from "./FlowYamlUtils-CEYKj9tP.js";
|
|
4
|
-
import { createElementBlock as d, openBlock as u, mergeProps as K, createElementVNode as
|
|
4
|
+
import { createElementBlock as d, openBlock as u, mergeProps as K, createElementVNode as y, createCommentVNode as L, toDisplayString as M, defineComponent as de, createBlock as X, getCurrentInstance as cn, inject as Rn, ref as ie, shallowRef as qt, computed as W, watch as Ge, onMounted as Mt, onUnmounted as Ci, h as bt, createVNode as V, Text as Ot, Fragment as Ee, nextTick as dn, onBeforeUnmount as bi, renderSlot as ae, createTextVNode as Ze, normalizeClass as oe, withCtx as G, normalizeStyle as ct, unref as P, toRef as Ll, renderList as Xe, resolveDynamicComponent as mt, createSlots as ki, provide as Sl, normalizeProps as Eo, guardReactiveProps as Co, withModifiers as Li, withAsyncContext as wl, toRaw as bo, reactive as ko, resolveComponent as Lo, defineAsyncComponent as So, Comment as wo, Suspense as No } from "vue";
|
|
5
5
|
import { Handle as Me, useVueFlow as Si, Position as Jt, getSmoothStepPath as To, EdgeLabelRenderer as Ao, VueFlow as Io } from "@vue-flow/core";
|
|
6
6
|
import { Controls as Oo, ControlButton as Nl } from "@vue-flow/controls";
|
|
7
7
|
import Tn from "moment";
|
|
@@ -168,7 +168,7 @@ function Fo(e, t, n, l, r, i) {
|
|
|
168
168
|
height: n.size,
|
|
169
169
|
viewBox: "0 0 24 24"
|
|
170
170
|
}, [
|
|
171
|
-
|
|
171
|
+
y("path", xo, [
|
|
172
172
|
n.title ? (u(), d("title", Uo, M(n.title), 1)) : L("", !0)
|
|
173
173
|
])
|
|
174
174
|
], 8, Vo))
|
|
@@ -206,7 +206,7 @@ function jo(e, t, n, l, r, i) {
|
|
|
206
206
|
height: n.size,
|
|
207
207
|
viewBox: "0 0 24 24"
|
|
208
208
|
}, [
|
|
209
|
-
|
|
209
|
+
y("path", Go, [
|
|
210
210
|
n.title ? (u(), d("title", Wo, M(n.title), 1)) : L("", !0)
|
|
211
211
|
])
|
|
212
212
|
], 8, zo))
|
|
@@ -244,7 +244,7 @@ function Qo(e, t, n, l, r, i) {
|
|
|
244
244
|
height: n.size,
|
|
245
245
|
viewBox: "0 0 24 24"
|
|
246
246
|
}, [
|
|
247
|
-
|
|
247
|
+
y("path", Zo, [
|
|
248
248
|
n.title ? (u(), d("title", Jo, M(n.title), 1)) : L("", !0)
|
|
249
249
|
])
|
|
250
250
|
], 8, Xo))
|
|
@@ -282,7 +282,7 @@ function oa(e, t, n, l, r, i) {
|
|
|
282
282
|
height: n.size,
|
|
283
283
|
viewBox: "0 0 24 24"
|
|
284
284
|
}, [
|
|
285
|
-
|
|
285
|
+
y("path", ia, [
|
|
286
286
|
n.title ? (u(), d("title", ra, M(n.title), 1)) : L("", !0)
|
|
287
287
|
])
|
|
288
288
|
], 8, la))
|
|
@@ -320,7 +320,7 @@ function fa(e, t, n, l, r, i) {
|
|
|
320
320
|
height: n.size,
|
|
321
321
|
viewBox: "0 0 24 24"
|
|
322
322
|
}, [
|
|
323
|
-
|
|
323
|
+
y("path", ca, [
|
|
324
324
|
n.title ? (u(), d("title", da, M(n.title), 1)) : L("", !0)
|
|
325
325
|
])
|
|
326
326
|
], 8, ua))
|
|
@@ -358,7 +358,7 @@ function va(e, t, n, l, r, i) {
|
|
|
358
358
|
height: n.size,
|
|
359
359
|
viewBox: "0 0 24 24"
|
|
360
360
|
}, [
|
|
361
|
-
|
|
361
|
+
y("path", _a, [
|
|
362
362
|
n.title ? (u(), d("title", ya, M(n.title), 1)) : L("", !0)
|
|
363
363
|
])
|
|
364
364
|
], 8, ha))
|
|
@@ -396,7 +396,7 @@ function wa(e, t, n, l, r, i) {
|
|
|
396
396
|
height: n.size,
|
|
397
397
|
viewBox: "0 0 24 24"
|
|
398
398
|
}, [
|
|
399
|
-
|
|
399
|
+
y("path", La, [
|
|
400
400
|
n.title ? (u(), d("title", Sa, M(n.title), 1)) : L("", !0)
|
|
401
401
|
])
|
|
402
402
|
], 8, ka))
|
|
@@ -434,7 +434,7 @@ function $a(e, t, n, l, r, i) {
|
|
|
434
434
|
height: n.size,
|
|
435
435
|
viewBox: "0 0 24 24"
|
|
436
436
|
}, [
|
|
437
|
-
|
|
437
|
+
y("path", Ia, [
|
|
438
438
|
n.title ? (u(), d("title", Oa, M(n.title), 1)) : L("", !0)
|
|
439
439
|
])
|
|
440
440
|
], 8, Aa))
|
|
@@ -472,7 +472,7 @@ function Ua(e, t, n, l, r, i) {
|
|
|
472
472
|
height: n.size,
|
|
473
473
|
viewBox: "0 0 24 24"
|
|
474
474
|
}, [
|
|
475
|
-
|
|
475
|
+
y("path", Va, [
|
|
476
476
|
n.title ? (u(), d("title", xa, M(n.title), 1)) : L("", !0)
|
|
477
477
|
])
|
|
478
478
|
], 8, Ma))
|
|
@@ -510,7 +510,7 @@ function ja(e, t, n, l, r, i) {
|
|
|
510
510
|
height: n.size,
|
|
511
511
|
viewBox: "0 0 24 24"
|
|
512
512
|
}, [
|
|
513
|
-
|
|
513
|
+
y("path", Ga, [
|
|
514
514
|
n.title ? (u(), d("title", Wa, M(n.title), 1)) : L("", !0)
|
|
515
515
|
])
|
|
516
516
|
], 8, za))
|
|
@@ -548,7 +548,7 @@ function Ja(e, t, n, l, r, i) {
|
|
|
548
548
|
height: n.size,
|
|
549
549
|
viewBox: "0 0 24 24"
|
|
550
550
|
}, [
|
|
551
|
-
|
|
551
|
+
y("path", Xa, [
|
|
552
552
|
n.title ? (u(), d("title", Za, M(n.title), 1)) : L("", !0)
|
|
553
553
|
])
|
|
554
554
|
], 8, qa))
|
|
@@ -799,11 +799,11 @@ function es() {
|
|
|
799
799
|
if (typeof i != "string")
|
|
800
800
|
throw new Error("slugify: string argument expected");
|
|
801
801
|
o = typeof o == "string" ? { replacement: o } : o || {};
|
|
802
|
-
var a = l[o.locale] || {}, s = o.replacement === void 0 ? "-" : o.replacement, c = o.trim === void 0 ? !0 : o.trim,
|
|
803
|
-
var v = a[
|
|
804
|
-
return v === void 0 && (v = n[
|
|
802
|
+
var a = l[o.locale] || {}, s = o.replacement === void 0 ? "-" : o.replacement, c = o.trim === void 0 ? !0 : o.trim, h = i.normalize().split("").reduce(function(E, g) {
|
|
803
|
+
var v = a[g];
|
|
804
|
+
return v === void 0 && (v = n[g]), v === void 0 && (v = g), v === s && (v = " "), E + v.replace(o.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
805
805
|
}, "");
|
|
806
|
-
return o.strict && (
|
|
806
|
+
return o.strict && (h = h.replace(/[^A-Za-z0-9\s]/g, "")), c && (h = h.trim()), h = h.replace(/\s+/g, s), o.lower && (h = h.toLowerCase()), h;
|
|
807
807
|
}
|
|
808
808
|
return r.extend = function(i) {
|
|
809
809
|
Object.assign(n, i);
|
|
@@ -859,7 +859,7 @@ function ss(e, t, n, l, r, i) {
|
|
|
859
859
|
height: n.size,
|
|
860
860
|
viewBox: "0 0 24 24"
|
|
861
861
|
}, [
|
|
862
|
-
|
|
862
|
+
y("path", os, [
|
|
863
863
|
n.title ? (u(), d("title", as, M(n.title), 1)) : L("", !0)
|
|
864
864
|
])
|
|
865
865
|
], 8, rs))
|
|
@@ -945,12 +945,12 @@ function bs(e, t = 0, n = e.length) {
|
|
|
945
945
|
i.push(`${s}${" ".repeat(3 - String(s).length)}| ${l[a]}`);
|
|
946
946
|
const c = l[a].length;
|
|
947
947
|
if (a === o) {
|
|
948
|
-
const
|
|
949
|
-
i.push(" | " + " ".repeat(
|
|
948
|
+
const h = t - (r - c) + 1, E = Math.max(1, n > r ? c - h : n - t);
|
|
949
|
+
i.push(" | " + " ".repeat(h) + "^".repeat(E));
|
|
950
950
|
} else if (a > o) {
|
|
951
951
|
if (n > r) {
|
|
952
|
-
const
|
|
953
|
-
i.push(" | " + "^".repeat(
|
|
952
|
+
const h = Math.max(Math.min(n - r, c), 1);
|
|
953
|
+
i.push(" | " + "^".repeat(h));
|
|
954
954
|
}
|
|
955
955
|
r += c + 1;
|
|
956
956
|
}
|
|
@@ -1055,14 +1055,14 @@ const Ts = /<\/?[\w\s="/.':;#-\/]+>/, As = (e) => Ts.test(e), He = " ", Is = "\r
|
|
|
1055
1055
|
function Ds(e) {
|
|
1056
1056
|
const t = e;
|
|
1057
1057
|
let n = 0, l = 1, r = 1, i = 0;
|
|
1058
|
-
const o = (S) => t[S] === Is && t[S + 1] === we, a = (S) => t[S] === we, s = (S) => t[S] === $s, c = (S) => t[S] === Os,
|
|
1058
|
+
const o = (S) => t[S] === Is && t[S + 1] === we, a = (S) => t[S] === we, s = (S) => t[S] === $s, c = (S) => t[S] === Os, h = (S) => o(S) || a(S) || s(S) || c(S), E = () => n, g = () => l, v = () => r, D = () => i, w = (S) => o(S) || s(S) || c(S) ? we : t[S], k = () => w(n), p = () => w(n + i);
|
|
1059
1059
|
function C() {
|
|
1060
|
-
return i = 0,
|
|
1060
|
+
return i = 0, h(n) && (l++, r = 0), o(n) && n++, n++, r++, t[n];
|
|
1061
1061
|
}
|
|
1062
1062
|
function T() {
|
|
1063
1063
|
return o(n + i) && i++, i++, t[n + i];
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function _() {
|
|
1066
1066
|
n = 0, l = 1, r = 1, i = 0;
|
|
1067
1067
|
}
|
|
1068
1068
|
function $(S = 0) {
|
|
@@ -1075,16 +1075,16 @@ function Ds(e) {
|
|
|
1075
1075
|
i = 0;
|
|
1076
1076
|
}
|
|
1077
1077
|
return {
|
|
1078
|
-
index:
|
|
1079
|
-
line:
|
|
1078
|
+
index: E,
|
|
1079
|
+
line: g,
|
|
1080
1080
|
column: v,
|
|
1081
|
-
peekOffset:
|
|
1082
|
-
charAt:
|
|
1081
|
+
peekOffset: D,
|
|
1082
|
+
charAt: w,
|
|
1083
1083
|
currentChar: k,
|
|
1084
1084
|
currentPeek: p,
|
|
1085
1085
|
next: C,
|
|
1086
1086
|
peek: T,
|
|
1087
|
-
reset:
|
|
1087
|
+
reset: _,
|
|
1088
1088
|
resetPeek: $,
|
|
1089
1089
|
skipToPeek: A
|
|
1090
1090
|
};
|
|
@@ -1103,38 +1103,38 @@ function Ms(e, t = {}) {
|
|
|
1103
1103
|
braceNest: 0,
|
|
1104
1104
|
inLinked: !1,
|
|
1105
1105
|
text: ""
|
|
1106
|
-
}, c = () => s, { onError:
|
|
1107
|
-
function
|
|
1106
|
+
}, c = () => s, { onError: h } = t;
|
|
1107
|
+
function E(f, m, N, ...F) {
|
|
1108
1108
|
const fe = c();
|
|
1109
|
-
if (m.column +=
|
|
1109
|
+
if (m.column += N, m.offset += N, h) {
|
|
1110
1110
|
const ge = n ? Mn(fe.startLoc, m) : null, ee = Lt(f, ge, {
|
|
1111
1111
|
domain: Ps,
|
|
1112
1112
|
args: F
|
|
1113
1113
|
});
|
|
1114
|
-
|
|
1114
|
+
h(ee);
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function g(f, m, N) {
|
|
1118
1118
|
f.endLoc = i(), f.currentType = m;
|
|
1119
1119
|
const F = { type: m };
|
|
1120
|
-
return n && (F.loc = Mn(f.startLoc, f.endLoc)),
|
|
1120
|
+
return n && (F.loc = Mn(f.startLoc, f.endLoc)), N != null && (F.value = N), F;
|
|
1121
1121
|
}
|
|
1122
|
-
const v = (f) =>
|
|
1122
|
+
const v = (f) => g(
|
|
1123
1123
|
f,
|
|
1124
1124
|
13
|
|
1125
1125
|
/* TokenTypes.EOF */
|
|
1126
1126
|
);
|
|
1127
|
-
function
|
|
1128
|
-
return f.currentChar() === m ? (f.next(), m) : (
|
|
1127
|
+
function D(f, m) {
|
|
1128
|
+
return f.currentChar() === m ? (f.next(), m) : (E(j.EXPECTED_TOKEN, i(), 0, m), "");
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function w(f) {
|
|
1131
1131
|
let m = "";
|
|
1132
1132
|
for (; f.currentPeek() === He || f.currentPeek() === we; )
|
|
1133
1133
|
m += f.currentPeek(), f.peek();
|
|
1134
1134
|
return m;
|
|
1135
1135
|
}
|
|
1136
1136
|
function k(f) {
|
|
1137
|
-
const m =
|
|
1137
|
+
const m = w(f);
|
|
1138
1138
|
return f.skipToPeek(), m;
|
|
1139
1139
|
}
|
|
1140
1140
|
function p(f) {
|
|
@@ -1152,56 +1152,56 @@ function Ms(e, t = {}) {
|
|
|
1152
1152
|
return m >= 48 && m <= 57;
|
|
1153
1153
|
}
|
|
1154
1154
|
function T(f, m) {
|
|
1155
|
-
const { currentType:
|
|
1156
|
-
if (
|
|
1155
|
+
const { currentType: N } = m;
|
|
1156
|
+
if (N !== 2)
|
|
1157
1157
|
return !1;
|
|
1158
|
-
|
|
1158
|
+
w(f);
|
|
1159
1159
|
const F = p(f.currentPeek());
|
|
1160
1160
|
return f.resetPeek(), F;
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1163
|
-
const { currentType:
|
|
1164
|
-
if (
|
|
1162
|
+
function _(f, m) {
|
|
1163
|
+
const { currentType: N } = m;
|
|
1164
|
+
if (N !== 2)
|
|
1165
1165
|
return !1;
|
|
1166
|
-
|
|
1166
|
+
w(f);
|
|
1167
1167
|
const F = f.currentPeek() === "-" ? f.peek() : f.currentPeek(), fe = C(F);
|
|
1168
1168
|
return f.resetPeek(), fe;
|
|
1169
1169
|
}
|
|
1170
1170
|
function $(f, m) {
|
|
1171
|
-
const { currentType:
|
|
1172
|
-
if (
|
|
1171
|
+
const { currentType: N } = m;
|
|
1172
|
+
if (N !== 2)
|
|
1173
1173
|
return !1;
|
|
1174
|
-
|
|
1174
|
+
w(f);
|
|
1175
1175
|
const F = f.currentPeek() === xl;
|
|
1176
1176
|
return f.resetPeek(), F;
|
|
1177
1177
|
}
|
|
1178
1178
|
function A(f, m) {
|
|
1179
|
-
const { currentType:
|
|
1180
|
-
if (
|
|
1179
|
+
const { currentType: N } = m;
|
|
1180
|
+
if (N !== 7)
|
|
1181
1181
|
return !1;
|
|
1182
|
-
|
|
1182
|
+
w(f);
|
|
1183
1183
|
const F = f.currentPeek() === ".";
|
|
1184
1184
|
return f.resetPeek(), F;
|
|
1185
1185
|
}
|
|
1186
1186
|
function S(f, m) {
|
|
1187
|
-
const { currentType:
|
|
1188
|
-
if (
|
|
1187
|
+
const { currentType: N } = m;
|
|
1188
|
+
if (N !== 8)
|
|
1189
1189
|
return !1;
|
|
1190
|
-
|
|
1190
|
+
w(f);
|
|
1191
1191
|
const F = p(f.currentPeek());
|
|
1192
1192
|
return f.resetPeek(), F;
|
|
1193
1193
|
}
|
|
1194
1194
|
function Y(f, m) {
|
|
1195
|
-
const { currentType:
|
|
1196
|
-
if (!(
|
|
1195
|
+
const { currentType: N } = m;
|
|
1196
|
+
if (!(N === 7 || N === 11))
|
|
1197
1197
|
return !1;
|
|
1198
|
-
|
|
1198
|
+
w(f);
|
|
1199
1199
|
const F = f.currentPeek() === ":";
|
|
1200
1200
|
return f.resetPeek(), F;
|
|
1201
1201
|
}
|
|
1202
1202
|
function Z(f, m) {
|
|
1203
|
-
const { currentType:
|
|
1204
|
-
if (
|
|
1203
|
+
const { currentType: N } = m;
|
|
1204
|
+
if (N !== 9)
|
|
1205
1205
|
return !1;
|
|
1206
1206
|
const F = () => {
|
|
1207
1207
|
const ge = f.currentPeek();
|
|
@@ -1210,20 +1210,20 @@ function Ms(e, t = {}) {
|
|
|
1210
1210
|
return f.resetPeek(), fe;
|
|
1211
1211
|
}
|
|
1212
1212
|
function pe(f) {
|
|
1213
|
-
|
|
1213
|
+
w(f);
|
|
1214
1214
|
const m = f.currentPeek() === "|";
|
|
1215
1215
|
return f.resetPeek(), m;
|
|
1216
1216
|
}
|
|
1217
1217
|
function Te(f, m = !0) {
|
|
1218
|
-
const
|
|
1218
|
+
const N = (fe = !1, ge = "") => {
|
|
1219
1219
|
const ee = f.currentPeek();
|
|
1220
|
-
return ee === "{" || ee === "@" || !ee ? fe : ee === "|" ? !(ge === He || ge === we) : ee === He ? (f.peek(),
|
|
1221
|
-
}, F =
|
|
1220
|
+
return ee === "{" || ee === "@" || !ee ? fe : ee === "|" ? !(ge === He || ge === we) : ee === He ? (f.peek(), N(!0, He)) : ee === we ? (f.peek(), N(!0, we)) : !0;
|
|
1221
|
+
}, F = N();
|
|
1222
1222
|
return m && f.resetPeek(), F;
|
|
1223
1223
|
}
|
|
1224
1224
|
function ue(f, m) {
|
|
1225
|
-
const
|
|
1226
|
-
return
|
|
1225
|
+
const N = f.currentChar();
|
|
1226
|
+
return N === Ke ? Ke : m(N) ? (f.next(), N) : null;
|
|
1227
1227
|
}
|
|
1228
1228
|
function et(f) {
|
|
1229
1229
|
const m = f.charCodeAt(0);
|
|
@@ -1245,7 +1245,7 @@ function Ms(e, t = {}) {
|
|
|
1245
1245
|
m === 36 || // $
|
|
1246
1246
|
m === 45;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function R(f) {
|
|
1249
1249
|
return ue(f, B);
|
|
1250
1250
|
}
|
|
1251
1251
|
function J(f) {
|
|
@@ -1265,57 +1265,57 @@ function Ms(e, t = {}) {
|
|
|
1265
1265
|
return ue(f, je);
|
|
1266
1266
|
}
|
|
1267
1267
|
function it(f) {
|
|
1268
|
-
let m = "",
|
|
1268
|
+
let m = "", N = "";
|
|
1269
1269
|
for (; m = z(f); )
|
|
1270
|
-
|
|
1271
|
-
return
|
|
1270
|
+
N += m;
|
|
1271
|
+
return N;
|
|
1272
1272
|
}
|
|
1273
1273
|
function yn(f) {
|
|
1274
1274
|
let m = "";
|
|
1275
1275
|
for (; ; ) {
|
|
1276
|
-
const
|
|
1277
|
-
if (
|
|
1276
|
+
const N = f.currentChar();
|
|
1277
|
+
if (N === "{" || N === "}" || N === "@" || N === "|" || !N)
|
|
1278
1278
|
break;
|
|
1279
|
-
if (
|
|
1279
|
+
if (N === He || N === we)
|
|
1280
1280
|
if (Te(f))
|
|
1281
|
-
m +=
|
|
1281
|
+
m += N, f.next();
|
|
1282
1282
|
else {
|
|
1283
1283
|
if (pe(f))
|
|
1284
1284
|
break;
|
|
1285
|
-
m +=
|
|
1285
|
+
m += N, f.next();
|
|
1286
1286
|
}
|
|
1287
1287
|
else
|
|
1288
|
-
m +=
|
|
1288
|
+
m += N, f.next();
|
|
1289
1289
|
}
|
|
1290
1290
|
return m;
|
|
1291
1291
|
}
|
|
1292
1292
|
function vn(f) {
|
|
1293
1293
|
k(f);
|
|
1294
|
-
let m = "",
|
|
1295
|
-
for (; m =
|
|
1296
|
-
|
|
1294
|
+
let m = "", N = "";
|
|
1295
|
+
for (; m = R(f); )
|
|
1296
|
+
N += m;
|
|
1297
1297
|
const F = f.currentChar();
|
|
1298
1298
|
if (F && F !== "}" && F !== Ke && F !== He && F !== we && F !== " ") {
|
|
1299
1299
|
const fe = Ft(f);
|
|
1300
|
-
return
|
|
1300
|
+
return E(j.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, N + fe), N + fe;
|
|
1301
1301
|
}
|
|
1302
|
-
return f.currentChar() === Ke &&
|
|
1302
|
+
return f.currentChar() === Ke && E(j.UNTERMINATED_CLOSING_BRACE, i(), 0), N;
|
|
1303
1303
|
}
|
|
1304
1304
|
function En(f) {
|
|
1305
1305
|
k(f);
|
|
1306
1306
|
let m = "";
|
|
1307
|
-
return f.currentChar() === "-" ? (f.next(), m += `-${it(f)}`) : m += it(f), f.currentChar() === Ke &&
|
|
1307
|
+
return f.currentChar() === "-" ? (f.next(), m += `-${it(f)}`) : m += it(f), f.currentChar() === Ke && E(j.UNTERMINATED_CLOSING_BRACE, i(), 0), m;
|
|
1308
1308
|
}
|
|
1309
1309
|
function Cn(f) {
|
|
1310
1310
|
return f !== xl && f !== we;
|
|
1311
1311
|
}
|
|
1312
1312
|
function _l(f) {
|
|
1313
|
-
k(f),
|
|
1314
|
-
let m = "",
|
|
1313
|
+
k(f), D(f, "'");
|
|
1314
|
+
let m = "", N = "";
|
|
1315
1315
|
for (; m = ue(f, Cn); )
|
|
1316
|
-
m === "\\" ?
|
|
1316
|
+
m === "\\" ? N += bn(f) : N += m;
|
|
1317
1317
|
const F = f.currentChar();
|
|
1318
|
-
return F === we || F === Ke ? (
|
|
1318
|
+
return F === we || F === Ke ? (E(j.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), F === we && (f.next(), D(f, "'")), N) : (D(f, "'"), N);
|
|
1319
1319
|
}
|
|
1320
1320
|
function bn(f) {
|
|
1321
1321
|
const m = f.currentChar();
|
|
@@ -1328,16 +1328,16 @@ function Ms(e, t = {}) {
|
|
|
1328
1328
|
case "U":
|
|
1329
1329
|
return Ut(f, m, 6);
|
|
1330
1330
|
default:
|
|
1331
|
-
return
|
|
1331
|
+
return E(j.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, m), "";
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
|
-
function Ut(f, m,
|
|
1335
|
-
|
|
1334
|
+
function Ut(f, m, N) {
|
|
1335
|
+
D(f, m);
|
|
1336
1336
|
let F = "";
|
|
1337
|
-
for (let fe = 0; fe <
|
|
1337
|
+
for (let fe = 0; fe < N; fe++) {
|
|
1338
1338
|
const ge = Se(f);
|
|
1339
1339
|
if (!ge) {
|
|
1340
|
-
|
|
1340
|
+
E(j.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${m}${F}${f.currentChar()}`);
|
|
1341
1341
|
break;
|
|
1342
1342
|
}
|
|
1343
1343
|
F += ge;
|
|
@@ -1349,27 +1349,27 @@ function Ms(e, t = {}) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
function Ft(f) {
|
|
1351
1351
|
k(f);
|
|
1352
|
-
let m = "",
|
|
1352
|
+
let m = "", N = "";
|
|
1353
1353
|
for (; m = ue(f, kn); )
|
|
1354
|
-
|
|
1355
|
-
return
|
|
1354
|
+
N += m;
|
|
1355
|
+
return N;
|
|
1356
1356
|
}
|
|
1357
1357
|
function Ln(f) {
|
|
1358
|
-
let m = "",
|
|
1358
|
+
let m = "", N = "";
|
|
1359
1359
|
for (; m = gt(f); )
|
|
1360
|
-
|
|
1361
|
-
return
|
|
1360
|
+
N += m;
|
|
1361
|
+
return N;
|
|
1362
1362
|
}
|
|
1363
1363
|
function Sn(f) {
|
|
1364
|
-
const m = (
|
|
1364
|
+
const m = (N) => {
|
|
1365
1365
|
const F = f.currentChar();
|
|
1366
|
-
return F === "{" || F === "@" || F === "|" || F === "(" || F === ")" || !F || F === He ?
|
|
1366
|
+
return F === "{" || F === "@" || F === "|" || F === "(" || F === ")" || !F || F === He ? N : (N += F, f.next(), m(N));
|
|
1367
1367
|
};
|
|
1368
1368
|
return m("");
|
|
1369
1369
|
}
|
|
1370
1370
|
function wt(f) {
|
|
1371
1371
|
k(f);
|
|
1372
|
-
const m =
|
|
1372
|
+
const m = D(
|
|
1373
1373
|
f,
|
|
1374
1374
|
"|"
|
|
1375
1375
|
/* TokenChars.Pipe */
|
|
@@ -1377,75 +1377,75 @@ function Ms(e, t = {}) {
|
|
|
1377
1377
|
return k(f), m;
|
|
1378
1378
|
}
|
|
1379
1379
|
function Nt(f, m) {
|
|
1380
|
-
let
|
|
1380
|
+
let N = null;
|
|
1381
1381
|
switch (f.currentChar()) {
|
|
1382
1382
|
case "{":
|
|
1383
|
-
return m.braceNest >= 1 &&
|
|
1383
|
+
return m.braceNest >= 1 && E(j.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), f.next(), N = g(
|
|
1384
1384
|
m,
|
|
1385
1385
|
2,
|
|
1386
1386
|
"{"
|
|
1387
1387
|
/* TokenChars.BraceLeft */
|
|
1388
|
-
), k(f), m.braceNest++,
|
|
1388
|
+
), k(f), m.braceNest++, N;
|
|
1389
1389
|
case "}":
|
|
1390
|
-
return m.braceNest > 0 && m.currentType === 2 &&
|
|
1390
|
+
return m.braceNest > 0 && m.currentType === 2 && E(j.EMPTY_PLACEHOLDER, i(), 0), f.next(), N = g(
|
|
1391
1391
|
m,
|
|
1392
1392
|
3,
|
|
1393
1393
|
"}"
|
|
1394
1394
|
/* TokenChars.BraceRight */
|
|
1395
|
-
), m.braceNest--, m.braceNest > 0 && k(f), m.inLinked && m.braceNest === 0 && (m.inLinked = !1),
|
|
1395
|
+
), m.braceNest--, m.braceNest > 0 && k(f), m.inLinked && m.braceNest === 0 && (m.inLinked = !1), N;
|
|
1396
1396
|
case "@":
|
|
1397
|
-
return m.braceNest > 0 &&
|
|
1397
|
+
return m.braceNest > 0 && E(j.UNTERMINATED_CLOSING_BRACE, i(), 0), N = rt(f, m) || v(m), m.braceNest = 0, N;
|
|
1398
1398
|
default: {
|
|
1399
1399
|
let fe = !0, ge = !0, ee = !0;
|
|
1400
1400
|
if (pe(f))
|
|
1401
|
-
return m.braceNest > 0 &&
|
|
1401
|
+
return m.braceNest > 0 && E(j.UNTERMINATED_CLOSING_BRACE, i(), 0), N = g(m, 1, wt(f)), m.braceNest = 0, m.inLinked = !1, N;
|
|
1402
1402
|
if (m.braceNest > 0 && (m.currentType === 4 || m.currentType === 5 || m.currentType === 6))
|
|
1403
|
-
return
|
|
1403
|
+
return E(j.UNTERMINATED_CLOSING_BRACE, i(), 0), m.braceNest = 0, Tt(f, m);
|
|
1404
1404
|
if (fe = T(f, m))
|
|
1405
|
-
return
|
|
1406
|
-
if (ge =
|
|
1407
|
-
return
|
|
1405
|
+
return N = g(m, 4, vn(f)), k(f), N;
|
|
1406
|
+
if (ge = _(f, m))
|
|
1407
|
+
return N = g(m, 5, En(f)), k(f), N;
|
|
1408
1408
|
if (ee = $(f, m))
|
|
1409
|
-
return
|
|
1409
|
+
return N = g(m, 6, _l(f)), k(f), N;
|
|
1410
1410
|
if (!fe && !ge && !ee)
|
|
1411
|
-
return
|
|
1411
|
+
return N = g(m, 12, Ft(f)), E(j.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, N.value), k(f), N;
|
|
1412
1412
|
break;
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
|
-
return
|
|
1415
|
+
return N;
|
|
1416
1416
|
}
|
|
1417
1417
|
function rt(f, m) {
|
|
1418
|
-
const { currentType:
|
|
1418
|
+
const { currentType: N } = m;
|
|
1419
1419
|
let F = null;
|
|
1420
1420
|
const fe = f.currentChar();
|
|
1421
|
-
switch ((
|
|
1421
|
+
switch ((N === 7 || N === 8 || N === 11 || N === 9) && (fe === we || fe === He) && E(j.INVALID_LINKED_FORMAT, i(), 0), fe) {
|
|
1422
1422
|
case "@":
|
|
1423
|
-
return f.next(), F =
|
|
1423
|
+
return f.next(), F = g(
|
|
1424
1424
|
m,
|
|
1425
1425
|
7,
|
|
1426
1426
|
"@"
|
|
1427
1427
|
/* TokenChars.LinkedAlias */
|
|
1428
1428
|
), m.inLinked = !0, F;
|
|
1429
1429
|
case ".":
|
|
1430
|
-
return k(f), f.next(),
|
|
1430
|
+
return k(f), f.next(), g(
|
|
1431
1431
|
m,
|
|
1432
1432
|
8,
|
|
1433
1433
|
"."
|
|
1434
1434
|
/* TokenChars.LinkedDot */
|
|
1435
1435
|
);
|
|
1436
1436
|
case ":":
|
|
1437
|
-
return k(f), f.next(),
|
|
1437
|
+
return k(f), f.next(), g(
|
|
1438
1438
|
m,
|
|
1439
1439
|
9,
|
|
1440
1440
|
":"
|
|
1441
1441
|
/* TokenChars.LinkedDelimiter */
|
|
1442
1442
|
);
|
|
1443
1443
|
default:
|
|
1444
|
-
return pe(f) ? (F =
|
|
1444
|
+
return pe(f) ? (F = g(m, 1, wt(f)), m.braceNest = 0, m.inLinked = !1, F) : A(f, m) || Y(f, m) ? (k(f), rt(f, m)) : S(f, m) ? (k(f), g(m, 11, Ln(f))) : Z(f, m) ? (k(f), fe === "{" ? Nt(f, m) || F : g(m, 10, Sn(f))) : (N === 7 && E(j.INVALID_LINKED_FORMAT, i(), 0), m.braceNest = 0, m.inLinked = !1, Tt(f, m));
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
function Tt(f, m) {
|
|
1448
|
-
let
|
|
1448
|
+
let N = {
|
|
1449
1449
|
type: 13
|
|
1450
1450
|
/* TokenTypes.EOF */
|
|
1451
1451
|
};
|
|
@@ -1457,7 +1457,7 @@ function Ms(e, t = {}) {
|
|
|
1457
1457
|
case "{":
|
|
1458
1458
|
return Nt(f, m) || v(m);
|
|
1459
1459
|
case "}":
|
|
1460
|
-
return
|
|
1460
|
+
return E(j.UNBALANCED_CLOSING_BRACE, i(), 0), f.next(), g(
|
|
1461
1461
|
m,
|
|
1462
1462
|
3,
|
|
1463
1463
|
"}"
|
|
@@ -1467,17 +1467,17 @@ function Ms(e, t = {}) {
|
|
|
1467
1467
|
return rt(f, m) || v(m);
|
|
1468
1468
|
default: {
|
|
1469
1469
|
if (pe(f))
|
|
1470
|
-
return
|
|
1470
|
+
return N = g(m, 1, wt(f)), m.braceNest = 0, m.inLinked = !1, N;
|
|
1471
1471
|
if (Te(f))
|
|
1472
|
-
return
|
|
1472
|
+
return g(m, 0, yn(f));
|
|
1473
1473
|
break;
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
return
|
|
1476
|
+
return N;
|
|
1477
1477
|
}
|
|
1478
1478
|
function wn() {
|
|
1479
|
-
const { currentType: f, offset: m, startLoc:
|
|
1480
|
-
return s.lastType = f, s.lastOffset = m, s.lastStartLoc =
|
|
1479
|
+
const { currentType: f, offset: m, startLoc: N, endLoc: F } = s;
|
|
1480
|
+
return s.lastType = f, s.lastOffset = m, s.lastStartLoc = N, s.lastEndLoc = F, s.offset = r(), s.startLoc = i(), l.currentChar() === Ke ? g(
|
|
1481
1481
|
s,
|
|
1482
1482
|
13
|
|
1483
1483
|
/* TokenTypes.EOF */
|
|
@@ -1506,9 +1506,9 @@ function Us(e, t, n) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
function Fs(e = {}) {
|
|
1508
1508
|
const t = e.location !== !1, { onError: n } = e;
|
|
1509
|
-
function l(p, C, T,
|
|
1509
|
+
function l(p, C, T, _, ...$) {
|
|
1510
1510
|
const A = p.currentPosition();
|
|
1511
|
-
if (A.offset +=
|
|
1511
|
+
if (A.offset += _, A.column += _, n) {
|
|
1512
1512
|
const S = t ? Mn(T, A) : null, Y = Lt(C, S, {
|
|
1513
1513
|
domain: Vs,
|
|
1514
1514
|
args: $
|
|
@@ -1517,66 +1517,66 @@ function Fs(e = {}) {
|
|
|
1517
1517
|
}
|
|
1518
1518
|
}
|
|
1519
1519
|
function r(p, C, T) {
|
|
1520
|
-
const
|
|
1521
|
-
return t && (
|
|
1520
|
+
const _ = { type: p };
|
|
1521
|
+
return t && (_.start = C, _.end = C, _.loc = { start: T, end: T }), _;
|
|
1522
1522
|
}
|
|
1523
|
-
function i(p, C, T,
|
|
1523
|
+
function i(p, C, T, _) {
|
|
1524
1524
|
t && (p.end = C, p.loc && (p.loc.end = T));
|
|
1525
1525
|
}
|
|
1526
1526
|
function o(p, C) {
|
|
1527
|
-
const T = p.context(),
|
|
1528
|
-
return
|
|
1527
|
+
const T = p.context(), _ = r(3, T.offset, T.startLoc);
|
|
1528
|
+
return _.value = C, i(_, p.currentOffset(), p.currentPosition()), _;
|
|
1529
1529
|
}
|
|
1530
1530
|
function a(p, C) {
|
|
1531
|
-
const T = p.context(), { lastOffset:
|
|
1531
|
+
const T = p.context(), { lastOffset: _, lastStartLoc: $ } = T, A = r(5, _, $);
|
|
1532
1532
|
return A.index = parseInt(C, 10), p.nextToken(), i(A, p.currentOffset(), p.currentPosition()), A;
|
|
1533
1533
|
}
|
|
1534
1534
|
function s(p, C) {
|
|
1535
|
-
const T = p.context(), { lastOffset:
|
|
1535
|
+
const T = p.context(), { lastOffset: _, lastStartLoc: $ } = T, A = r(4, _, $);
|
|
1536
1536
|
return A.key = C, p.nextToken(), i(A, p.currentOffset(), p.currentPosition()), A;
|
|
1537
1537
|
}
|
|
1538
1538
|
function c(p, C) {
|
|
1539
|
-
const T = p.context(), { lastOffset:
|
|
1539
|
+
const T = p.context(), { lastOffset: _, lastStartLoc: $ } = T, A = r(9, _, $);
|
|
1540
1540
|
return A.value = C.replace(xs, Us), p.nextToken(), i(A, p.currentOffset(), p.currentPosition()), A;
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1543
|
-
const C = p.nextToken(), T = p.context(), { lastOffset:
|
|
1544
|
-
return C.type !== 11 ? (l(p, j.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), A.value = "", i(A,
|
|
1542
|
+
function h(p) {
|
|
1543
|
+
const C = p.nextToken(), T = p.context(), { lastOffset: _, lastStartLoc: $ } = T, A = r(8, _, $);
|
|
1544
|
+
return C.type !== 11 ? (l(p, j.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), A.value = "", i(A, _, $), {
|
|
1545
1545
|
nextConsumeToken: C,
|
|
1546
1546
|
node: A
|
|
1547
1547
|
}) : (C.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Be(C)), A.value = C.value || "", i(A, p.currentOffset(), p.currentPosition()), {
|
|
1548
1548
|
node: A
|
|
1549
1549
|
});
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1552
|
-
const T = p.context(),
|
|
1553
|
-
return
|
|
1551
|
+
function E(p, C) {
|
|
1552
|
+
const T = p.context(), _ = r(7, T.offset, T.startLoc);
|
|
1553
|
+
return _.value = C, i(_, p.currentOffset(), p.currentPosition()), _;
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function g(p) {
|
|
1556
1556
|
const C = p.context(), T = r(6, C.offset, C.startLoc);
|
|
1557
|
-
let
|
|
1558
|
-
if (
|
|
1559
|
-
const $ =
|
|
1560
|
-
T.modifier = $.node,
|
|
1557
|
+
let _ = p.nextToken();
|
|
1558
|
+
if (_.type === 8) {
|
|
1559
|
+
const $ = h(p);
|
|
1560
|
+
T.modifier = $.node, _ = $.nextConsumeToken || p.nextToken();
|
|
1561
1561
|
}
|
|
1562
|
-
switch (
|
|
1562
|
+
switch (_.type !== 9 && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, Be(_)), _ = p.nextToken(), _.type === 2 && (_ = p.nextToken()), _.type) {
|
|
1563
1563
|
case 10:
|
|
1564
|
-
|
|
1564
|
+
_.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, Be(_)), T.key = E(p, _.value || "");
|
|
1565
1565
|
break;
|
|
1566
1566
|
case 4:
|
|
1567
|
-
|
|
1567
|
+
_.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, Be(_)), T.key = s(p, _.value || "");
|
|
1568
1568
|
break;
|
|
1569
1569
|
case 5:
|
|
1570
|
-
|
|
1570
|
+
_.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, Be(_)), T.key = a(p, _.value || "");
|
|
1571
1571
|
break;
|
|
1572
1572
|
case 6:
|
|
1573
|
-
|
|
1573
|
+
_.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, Be(_)), T.key = c(p, _.value || "");
|
|
1574
1574
|
break;
|
|
1575
1575
|
default: {
|
|
1576
1576
|
l(p, j.UNEXPECTED_EMPTY_LINKED_KEY, C.lastStartLoc, 0);
|
|
1577
1577
|
const $ = p.context(), A = r(7, $.offset, $.startLoc);
|
|
1578
1578
|
return A.value = "", i(A, $.offset, $.startLoc), T.key = A, i(T, $.offset, $.startLoc), {
|
|
1579
|
-
nextConsumeToken:
|
|
1579
|
+
nextConsumeToken: _,
|
|
1580
1580
|
node: T
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
@@ -1586,7 +1586,7 @@ function Fs(e = {}) {
|
|
|
1586
1586
|
};
|
|
1587
1587
|
}
|
|
1588
1588
|
function v(p) {
|
|
1589
|
-
const C = p.context(), T = C.currentType === 1 ? p.currentOffset() : C.offset,
|
|
1589
|
+
const C = p.context(), T = C.currentType === 1 ? p.currentOffset() : C.offset, _ = C.currentType === 1 ? C.endLoc : C.startLoc, $ = r(2, T, _);
|
|
1590
1590
|
$.items = [];
|
|
1591
1591
|
let A = null;
|
|
1592
1592
|
do {
|
|
@@ -1605,7 +1605,7 @@ function Fs(e = {}) {
|
|
|
1605
1605
|
Z.value == null && l(p, j.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, Be(Z)), $.items.push(c(p, Z.value || ""));
|
|
1606
1606
|
break;
|
|
1607
1607
|
case 7: {
|
|
1608
|
-
const pe =
|
|
1608
|
+
const pe = g(p);
|
|
1609
1609
|
$.items.push(pe.node), A = pe.nextConsumeToken || null;
|
|
1610
1610
|
break;
|
|
1611
1611
|
}
|
|
@@ -1614,24 +1614,24 @@ function Fs(e = {}) {
|
|
|
1614
1614
|
const S = C.currentType === 1 ? C.lastOffset : p.currentOffset(), Y = C.currentType === 1 ? C.lastEndLoc : p.currentPosition();
|
|
1615
1615
|
return i($, S, Y), $;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function D(p, C, T, _) {
|
|
1618
1618
|
const $ = p.context();
|
|
1619
|
-
let A =
|
|
1619
|
+
let A = _.items.length === 0;
|
|
1620
1620
|
const S = r(1, C, T);
|
|
1621
|
-
S.cases = [], S.cases.push(
|
|
1621
|
+
S.cases = [], S.cases.push(_);
|
|
1622
1622
|
do {
|
|
1623
1623
|
const Y = v(p);
|
|
1624
1624
|
A || (A = Y.items.length === 0), S.cases.push(Y);
|
|
1625
1625
|
} while ($.currentType !== 13);
|
|
1626
1626
|
return A && l(p, j.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), i(S, p.currentOffset(), p.currentPosition()), S;
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1629
|
-
const C = p.context(), { offset: T, startLoc:
|
|
1630
|
-
return C.currentType === 13 ? $ :
|
|
1628
|
+
function w(p) {
|
|
1629
|
+
const C = p.context(), { offset: T, startLoc: _ } = C, $ = v(p);
|
|
1630
|
+
return C.currentType === 13 ? $ : D(p, T, _, $);
|
|
1631
1631
|
}
|
|
1632
1632
|
function k(p) {
|
|
1633
|
-
const C = Ms(p, ke({}, e)), T = C.context(),
|
|
1634
|
-
return t &&
|
|
1633
|
+
const C = Ms(p, ke({}, e)), T = C.context(), _ = r(0, T.offset, T.startLoc);
|
|
1634
|
+
return t && _.loc && (_.loc.source = p), _.body = w(C), e.onCacheKey && (_.cacheKey = e.onCacheKey(p)), T.currentType !== 13 && l(C, j.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, p[T.offset] || ""), i(_, C.currentOffset(), C.currentPosition()), _;
|
|
1635
1635
|
}
|
|
1636
1636
|
return { parse: k };
|
|
1637
1637
|
}
|
|
@@ -1796,31 +1796,31 @@ function js(e, t) {
|
|
|
1796
1796
|
};
|
|
1797
1797
|
i && e.loc && (o.source = e.loc.source);
|
|
1798
1798
|
const a = () => o;
|
|
1799
|
-
function s(
|
|
1800
|
-
o.code +=
|
|
1799
|
+
function s(w, k) {
|
|
1800
|
+
o.code += w;
|
|
1801
1801
|
}
|
|
1802
|
-
function c(
|
|
1802
|
+
function c(w, k = !0) {
|
|
1803
1803
|
const p = k ? l : "";
|
|
1804
|
-
s(r ? p + " ".repeat(
|
|
1804
|
+
s(r ? p + " ".repeat(w) : p);
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function h(w = !0) {
|
|
1807
1807
|
const k = ++o.indentLevel;
|
|
1808
|
-
|
|
1808
|
+
w && c(k);
|
|
1809
1809
|
}
|
|
1810
|
-
function
|
|
1810
|
+
function E(w = !0) {
|
|
1811
1811
|
const k = --o.indentLevel;
|
|
1812
|
-
|
|
1812
|
+
w && c(k);
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function g() {
|
|
1815
1815
|
c(o.indentLevel);
|
|
1816
1816
|
}
|
|
1817
1817
|
return {
|
|
1818
1818
|
context: a,
|
|
1819
1819
|
push: s,
|
|
1820
|
-
indent:
|
|
1821
|
-
deindent:
|
|
1822
|
-
newline:
|
|
1823
|
-
helper: (
|
|
1820
|
+
indent: h,
|
|
1821
|
+
deindent: E,
|
|
1822
|
+
newline: g,
|
|
1823
|
+
helper: (w) => `_${w}`,
|
|
1824
1824
|
needIndent: () => o.needIndent
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
@@ -1920,7 +1920,7 @@ const Zs = (e, t = {}) => {
|
|
|
1920
1920
|
breakLineCode: r,
|
|
1921
1921
|
needIndent: i
|
|
1922
1922
|
});
|
|
1923
|
-
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(i), o.length > 0 && (a.push(`const { ${tl(o.map((
|
|
1923
|
+
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(i), o.length > 0 && (a.push(`const { ${tl(o.map((h) => `${h}: _${h}`), ", ")} } = ctx`), a.newline()), a.push("return "), kt(a, e), a.deindent(i), a.push("}"), delete e.helpers;
|
|
1924
1924
|
const { code: s, map: c } = a.context();
|
|
1925
1925
|
return {
|
|
1926
1926
|
ast: e,
|
|
@@ -2423,55 +2423,55 @@ function Su(e) {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
function wu(e) {
|
|
2425
2425
|
const t = [];
|
|
2426
|
-
let n = -1, l = 0, r = 0, i, o, a, s, c,
|
|
2427
|
-
const
|
|
2428
|
-
|
|
2426
|
+
let n = -1, l = 0, r = 0, i, o, a, s, c, h, E;
|
|
2427
|
+
const g = [];
|
|
2428
|
+
g[
|
|
2429
2429
|
0
|
|
2430
2430
|
/* Actions.APPEND */
|
|
2431
2431
|
] = () => {
|
|
2432
2432
|
o === void 0 ? o = a : o += a;
|
|
2433
|
-
},
|
|
2433
|
+
}, g[
|
|
2434
2434
|
1
|
|
2435
2435
|
/* Actions.PUSH */
|
|
2436
2436
|
] = () => {
|
|
2437
2437
|
o !== void 0 && (t.push(o), o = void 0);
|
|
2438
|
-
},
|
|
2438
|
+
}, g[
|
|
2439
2439
|
2
|
|
2440
2440
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
2441
2441
|
] = () => {
|
|
2442
|
-
|
|
2442
|
+
g[
|
|
2443
2443
|
0
|
|
2444
2444
|
/* Actions.APPEND */
|
|
2445
2445
|
](), r++;
|
|
2446
|
-
},
|
|
2446
|
+
}, g[
|
|
2447
2447
|
3
|
|
2448
2448
|
/* Actions.PUSH_SUB_PATH */
|
|
2449
2449
|
] = () => {
|
|
2450
2450
|
if (r > 0)
|
|
2451
|
-
r--, l = 4,
|
|
2451
|
+
r--, l = 4, g[
|
|
2452
2452
|
0
|
|
2453
2453
|
/* Actions.APPEND */
|
|
2454
2454
|
]();
|
|
2455
2455
|
else {
|
|
2456
2456
|
if (r = 0, o === void 0 || (o = Su(o), o === !1))
|
|
2457
2457
|
return !1;
|
|
2458
|
-
|
|
2458
|
+
g[
|
|
2459
2459
|
1
|
|
2460
2460
|
/* Actions.PUSH */
|
|
2461
2461
|
]();
|
|
2462
2462
|
}
|
|
2463
2463
|
};
|
|
2464
2464
|
function v() {
|
|
2465
|
-
const
|
|
2466
|
-
if (l === 5 &&
|
|
2467
|
-
return n++, a = "\\" +
|
|
2465
|
+
const D = e[n + 1];
|
|
2466
|
+
if (l === 5 && D === "'" || l === 6 && D === '"')
|
|
2467
|
+
return n++, a = "\\" + D, g[
|
|
2468
2468
|
0
|
|
2469
2469
|
/* Actions.APPEND */
|
|
2470
2470
|
](), !0;
|
|
2471
2471
|
}
|
|
2472
2472
|
for (; l !== null; )
|
|
2473
2473
|
if (n++, i = e[n], !(i === "\\" && v())) {
|
|
2474
|
-
if (s = Lu(i),
|
|
2474
|
+
if (s = Lu(i), E = lt[l], c = E[s] || E.l || 8, c === 8 || (l = c[0], c[1] !== void 0 && (h = g[c[1]], h && (a = i, h() === !1))))
|
|
2475
2475
|
return;
|
|
2476
2476
|
if (l === 7)
|
|
2477
2477
|
return t;
|
|
@@ -2550,7 +2550,7 @@ const jl = (e) => {
|
|
|
2550
2550
|
}, xu = () => Bi;
|
|
2551
2551
|
let Kl = 0;
|
|
2552
2552
|
function Uu(e = {}) {
|
|
2553
|
-
const t = me(e.onWarn) ? e.onWarn : We, n = x(e.version) ? e.version : Ou, l = x(e.locale) || me(e.locale) ? e.locale : tn, r = me(l) ? tn : l, i = ve(e.fallbackLocale) || te(e.fallbackLocale) || x(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, o = te(e.messages) ? e.messages : On(r), a = te(e.datetimeFormats) ? e.datetimeFormats : On(r), s = te(e.numberFormats) ? e.numberFormats : On(r), c = ke(se(), e.modifiers, $u()),
|
|
2553
|
+
const t = me(e.onWarn) ? e.onWarn : We, n = x(e.version) ? e.version : Ou, l = x(e.locale) || me(e.locale) ? e.locale : tn, r = me(l) ? tn : l, i = ve(e.fallbackLocale) || te(e.fallbackLocale) || x(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, o = te(e.messages) ? e.messages : On(r), a = te(e.datetimeFormats) ? e.datetimeFormats : On(r), s = te(e.numberFormats) ? e.numberFormats : On(r), c = ke(se(), e.modifiers, $u()), h = e.pluralRules || se(), E = me(e.missing) ? e.missing : null, g = ye(e.missingWarn) || en(e.missingWarn) ? e.missingWarn : !0, v = ye(e.fallbackWarn) || en(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, w = !!e.unresolving, k = me(e.postTranslation) ? e.postTranslation : null, p = te(e.processor) ? e.processor : null, C = ye(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, _ = me(e.messageCompiler) ? e.messageCompiler : xi;
|
|
2554
2554
|
process.env.NODE_ENV !== "production" && me(e.messageCompiler) && fs(ft(Ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2555
2555
|
const $ = me(e.messageResolver) ? e.messageResolver : Ui || Nu, A = me(e.localeFallbacker) ? e.localeFallbacker : Fi || yu, S = ne(e.fallbackContext) ? e.fallbackContext : void 0, Y = e, Z = ne(Y.__datetimeFormatters) ? Y.__datetimeFormatters : /* @__PURE__ */ new Map(), pe = ne(Y.__numberFormatters) ? Y.__numberFormatters : /* @__PURE__ */ new Map(), Te = ne(Y.__meta) ? Y.__meta : {};
|
|
2556
2556
|
Kl++;
|
|
@@ -2561,17 +2561,17 @@ function Uu(e = {}) {
|
|
|
2561
2561
|
fallbackLocale: i,
|
|
2562
2562
|
messages: o,
|
|
2563
2563
|
modifiers: c,
|
|
2564
|
-
pluralRules:
|
|
2565
|
-
missing:
|
|
2566
|
-
missingWarn:
|
|
2564
|
+
pluralRules: h,
|
|
2565
|
+
missing: E,
|
|
2566
|
+
missingWarn: g,
|
|
2567
2567
|
fallbackWarn: v,
|
|
2568
|
-
fallbackFormat:
|
|
2569
|
-
unresolving:
|
|
2568
|
+
fallbackFormat: D,
|
|
2569
|
+
unresolving: w,
|
|
2570
2570
|
postTranslation: k,
|
|
2571
2571
|
processor: p,
|
|
2572
2572
|
warnHtmlMessage: C,
|
|
2573
2573
|
escapeParameter: T,
|
|
2574
|
-
messageCompiler:
|
|
2574
|
+
messageCompiler: _,
|
|
2575
2575
|
messageResolver: $,
|
|
2576
2576
|
localeFallbacker: A,
|
|
2577
2577
|
fallbackContext: S,
|
|
@@ -2628,40 +2628,40 @@ function ql(e, ...t) {
|
|
|
2628
2628
|
const { datetimeFormats: n, unresolving: l, fallbackLocale: r, onWarn: i, localeFallbacker: o } = e, { __datetimeFormatters: a } = e;
|
|
2629
2629
|
if (process.env.NODE_ENV !== "production" && !Wi.dateTimeFormat)
|
|
2630
2630
|
return i(ft(Ae.CANNOT_FORMAT_DATE)), nn;
|
|
2631
|
-
const [s, c,
|
|
2631
|
+
const [s, c, h, E] = xn(...t), g = ye(h.missingWarn) ? h.missingWarn : e.missingWarn, v = ye(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, D = !!h.part, w = il(e, h), k = o(
|
|
2632
2632
|
e,
|
|
2633
2633
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2634
2634
|
r,
|
|
2635
|
-
|
|
2635
|
+
w
|
|
2636
2636
|
);
|
|
2637
2637
|
if (!x(s) || s === "")
|
|
2638
|
-
return new Intl.DateTimeFormat(
|
|
2639
|
-
let p = {}, C, T = null,
|
|
2638
|
+
return new Intl.DateTimeFormat(w, E).format(c);
|
|
2639
|
+
let p = {}, C, T = null, _ = w, $ = null;
|
|
2640
2640
|
const A = "datetime format";
|
|
2641
2641
|
for (let Z = 0; Z < k.length; Z++) {
|
|
2642
|
-
if (C = $ = k[Z], process.env.NODE_ENV !== "production" &&
|
|
2642
|
+
if (C = $ = k[Z], process.env.NODE_ENV !== "production" && w !== C && gn(v, s) && i(ft(Ae.FALLBACK_TO_DATE_FORMAT, {
|
|
2643
2643
|
key: s,
|
|
2644
2644
|
target: C
|
|
2645
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
2645
|
+
})), process.env.NODE_ENV !== "production" && w !== C) {
|
|
2646
2646
|
const pe = e.__v_emitter;
|
|
2647
2647
|
pe && pe.emit("fallback", {
|
|
2648
2648
|
type: A,
|
|
2649
2649
|
key: s,
|
|
2650
|
-
from:
|
|
2650
|
+
from: _,
|
|
2651
2651
|
to: $,
|
|
2652
2652
|
groupId: `${A}:${s}`
|
|
2653
2653
|
});
|
|
2654
2654
|
}
|
|
2655
2655
|
if (p = n[C] || {}, T = p[s], te(T))
|
|
2656
2656
|
break;
|
|
2657
|
-
rl(e, s, C,
|
|
2657
|
+
rl(e, s, C, g, A), _ = $;
|
|
2658
2658
|
}
|
|
2659
2659
|
if (!te(T) || !x(C))
|
|
2660
2660
|
return l ? pn : s;
|
|
2661
2661
|
let S = `${C}__${s}`;
|
|
2662
|
-
mn(
|
|
2662
|
+
mn(E) || (S = `${S}__${JSON.stringify(E)}`);
|
|
2663
2663
|
let Y = a.get(S);
|
|
2664
|
-
return Y || (Y = new Intl.DateTimeFormat(C, ke({}, T,
|
|
2664
|
+
return Y || (Y = new Intl.DateTimeFormat(C, ke({}, T, E)), a.set(S, Y)), D ? Y.formatToParts(c) : Y.format(c);
|
|
2665
2665
|
}
|
|
2666
2666
|
const ji = [
|
|
2667
2667
|
"localeMatcher",
|
|
@@ -2722,40 +2722,40 @@ function Zl(e, ...t) {
|
|
|
2722
2722
|
const { numberFormats: n, unresolving: l, fallbackLocale: r, onWarn: i, localeFallbacker: o } = e, { __numberFormatters: a } = e;
|
|
2723
2723
|
if (process.env.NODE_ENV !== "production" && !Wi.numberFormat)
|
|
2724
2724
|
return i(ft(Ae.CANNOT_FORMAT_NUMBER)), nn;
|
|
2725
|
-
const [s, c,
|
|
2725
|
+
const [s, c, h, E] = Un(...t), g = ye(h.missingWarn) ? h.missingWarn : e.missingWarn, v = ye(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn, D = !!h.part, w = il(e, h), k = o(
|
|
2726
2726
|
e,
|
|
2727
2727
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2728
2728
|
r,
|
|
2729
|
-
|
|
2729
|
+
w
|
|
2730
2730
|
);
|
|
2731
2731
|
if (!x(s) || s === "")
|
|
2732
|
-
return new Intl.NumberFormat(
|
|
2733
|
-
let p = {}, C, T = null,
|
|
2732
|
+
return new Intl.NumberFormat(w, E).format(c);
|
|
2733
|
+
let p = {}, C, T = null, _ = w, $ = null;
|
|
2734
2734
|
const A = "number format";
|
|
2735
2735
|
for (let Z = 0; Z < k.length; Z++) {
|
|
2736
|
-
if (C = $ = k[Z], process.env.NODE_ENV !== "production" &&
|
|
2736
|
+
if (C = $ = k[Z], process.env.NODE_ENV !== "production" && w !== C && gn(v, s) && i(ft(Ae.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2737
2737
|
key: s,
|
|
2738
2738
|
target: C
|
|
2739
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
2739
|
+
})), process.env.NODE_ENV !== "production" && w !== C) {
|
|
2740
2740
|
const pe = e.__v_emitter;
|
|
2741
2741
|
pe && pe.emit("fallback", {
|
|
2742
2742
|
type: A,
|
|
2743
2743
|
key: s,
|
|
2744
|
-
from:
|
|
2744
|
+
from: _,
|
|
2745
2745
|
to: $,
|
|
2746
2746
|
groupId: `${A}:${s}`
|
|
2747
2747
|
});
|
|
2748
2748
|
}
|
|
2749
2749
|
if (p = n[C] || {}, T = p[s], te(T))
|
|
2750
2750
|
break;
|
|
2751
|
-
rl(e, s, C,
|
|
2751
|
+
rl(e, s, C, g, A), _ = $;
|
|
2752
2752
|
}
|
|
2753
2753
|
if (!te(T) || !x(C))
|
|
2754
2754
|
return l ? pn : s;
|
|
2755
2755
|
let S = `${C}__${s}`;
|
|
2756
|
-
mn(
|
|
2756
|
+
mn(E) || (S = `${S}__${JSON.stringify(E)}`);
|
|
2757
2757
|
let Y = a.get(S);
|
|
2758
|
-
return Y || (Y = new Intl.NumberFormat(C, ke({}, T,
|
|
2758
|
+
return Y || (Y = new Intl.NumberFormat(C, ke({}, T, E)), a.set(S, Y)), D ? Y.formatToParts(c) : Y.format(c);
|
|
2759
2759
|
}
|
|
2760
2760
|
const Ki = [
|
|
2761
2761
|
"localeMatcher",
|
|
@@ -2811,59 +2811,59 @@ function Yu(e = {}) {
|
|
|
2811
2811
|
const t = e.locale, n = ju(e), l = ne(e.pluralRules) && x(t) && me(e.pluralRules[t]) ? e.pluralRules[t] : Ql, r = ne(e.pluralRules) && x(t) && me(e.pluralRules[t]) ? Ql : void 0, i = (p) => p[l(n, p.length, r)], o = e.list || [], a = (p) => o[p], s = e.named || se();
|
|
2812
2812
|
be(e.pluralIndex) && Ku(n, s);
|
|
2813
2813
|
const c = (p) => s[p];
|
|
2814
|
-
function
|
|
2814
|
+
function h(p, C) {
|
|
2815
2815
|
const T = me(e.messages) ? e.messages(p, !!C) : ne(e.messages) ? e.messages[p] : !1;
|
|
2816
2816
|
return T || (e.parent ? e.parent.message(p) : Bu);
|
|
2817
2817
|
}
|
|
2818
|
-
const
|
|
2818
|
+
const E = (p) => e.modifiers ? e.modifiers[p] : Hu, g = te(e.processor) && me(e.processor.normalize) ? e.processor.normalize : Gu, v = te(e.processor) && me(e.processor.interpolate) ? e.processor.interpolate : Wu, D = te(e.processor) && x(e.processor.type) ? e.processor.type : zu, k = {
|
|
2819
2819
|
list: a,
|
|
2820
2820
|
named: c,
|
|
2821
2821
|
plural: i,
|
|
2822
2822
|
linked: (p, ...C) => {
|
|
2823
|
-
const [T,
|
|
2823
|
+
const [T, _] = C;
|
|
2824
2824
|
let $ = "text", A = "";
|
|
2825
|
-
C.length === 1 ? ne(T) ? (A = T.modifier || A, $ = T.type || $) : x(T) && (A = T || A) : C.length === 2 && (x(T) && (A = T || A), x(
|
|
2826
|
-
const S =
|
|
2825
|
+
C.length === 1 ? ne(T) ? (A = T.modifier || A, $ = T.type || $) : x(T) && (A = T || A) : C.length === 2 && (x(T) && (A = T || A), x(_) && ($ = _ || $));
|
|
2826
|
+
const S = h(p, !0)(k), Y = (
|
|
2827
2827
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2828
2828
|
$ === "vnode" && ve(S) && A ? S[0] : S
|
|
2829
2829
|
);
|
|
2830
|
-
return A ?
|
|
2830
|
+
return A ? E(A)(Y, $) : Y;
|
|
2831
2831
|
},
|
|
2832
|
-
message:
|
|
2833
|
-
type:
|
|
2832
|
+
message: h,
|
|
2833
|
+
type: D,
|
|
2834
2834
|
interpolate: v,
|
|
2835
|
-
normalize:
|
|
2835
|
+
normalize: g,
|
|
2836
2836
|
values: ke(se(), o, s)
|
|
2837
2837
|
};
|
|
2838
2838
|
return k;
|
|
2839
2839
|
}
|
|
2840
2840
|
const ei = () => "", xe = (e) => me(e);
|
|
2841
2841
|
function ti(e, ...t) {
|
|
2842
|
-
const { fallbackFormat: n, postTranslation: l, unresolving: r, messageCompiler: i, fallbackLocale: o, messages: a } = e, [s, c] = Fn(...t),
|
|
2843
|
-
|
|
2842
|
+
const { fallbackFormat: n, postTranslation: l, unresolving: r, messageCompiler: i, fallbackLocale: o, messages: a } = e, [s, c] = Fn(...t), h = ye(c.missingWarn) ? c.missingWarn : e.missingWarn, E = ye(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, g = ye(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, v = !!c.resolvedMessage, D = x(c.default) || ye(c.default) ? ye(c.default) ? i ? s : () => s : c.default : n ? i ? s : () => s : null, w = n || D != null && (x(D) || me(D)), k = il(e, c);
|
|
2843
|
+
g && qu(c);
|
|
2844
2844
|
let [p, C, T] = v ? [
|
|
2845
2845
|
s,
|
|
2846
2846
|
k,
|
|
2847
2847
|
a[k] || se()
|
|
2848
|
-
] : Yi(e, s, k, o,
|
|
2849
|
-
if (!v && !(x(
|
|
2848
|
+
] : Yi(e, s, k, o, E, h), _ = p, $ = s;
|
|
2849
|
+
if (!v && !(x(_) || Fe(_) || xe(_)) && w && (_ = D, $ = _), !v && (!(x(_) || Fe(_) || xe(_)) || !x(C)))
|
|
2850
2850
|
return r ? pn : s;
|
|
2851
|
-
if (process.env.NODE_ENV !== "production" && x(
|
|
2851
|
+
if (process.env.NODE_ENV !== "production" && x(_) && e.messageCompiler == null)
|
|
2852
2852
|
return We(`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 '${s}'.`), s;
|
|
2853
2853
|
let A = !1;
|
|
2854
2854
|
const S = () => {
|
|
2855
2855
|
A = !0;
|
|
2856
|
-
}, Y = xe(
|
|
2856
|
+
}, Y = xe(_) ? _ : qi(e, s, C, _, $, S);
|
|
2857
2857
|
if (A)
|
|
2858
|
-
return
|
|
2858
|
+
return _;
|
|
2859
2859
|
const Z = Qu(e, C, T, c), pe = Yu(Z), Te = Xu(e, Y, pe);
|
|
2860
2860
|
let ue = l ? l(Te, s) : Te;
|
|
2861
|
-
if (
|
|
2861
|
+
if (g && x(ue) && (ue = ys(ue)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2862
2862
|
const et = {
|
|
2863
2863
|
timestamp: Date.now(),
|
|
2864
|
-
key: x(s) ? s : xe(
|
|
2865
|
-
locale: C || (xe(
|
|
2866
|
-
format: x(
|
|
2864
|
+
key: x(s) ? s : xe(_) ? _.key : "",
|
|
2865
|
+
locale: C || (xe(_) ? _.locale : ""),
|
|
2866
|
+
format: x(_) ? _ : xe(_) ? _.source : "",
|
|
2867
2867
|
message: ue
|
|
2868
2868
|
};
|
|
2869
2869
|
et.meta = ke({}, e.__meta, /* @__PURE__ */ Vu() || {}), pu(et);
|
|
@@ -2876,26 +2876,26 @@ function qu(e) {
|
|
|
2876
2876
|
});
|
|
2877
2877
|
}
|
|
2878
2878
|
function Yi(e, t, n, l, r, i) {
|
|
2879
|
-
const { messages: o, onWarn: a, messageResolver: s, localeFallbacker: c } = e,
|
|
2880
|
-
let
|
|
2879
|
+
const { messages: o, onWarn: a, messageResolver: s, localeFallbacker: c } = e, h = c(e, l, n);
|
|
2880
|
+
let E = se(), g, v = null, D = n, w = null;
|
|
2881
2881
|
const k = "translate";
|
|
2882
|
-
for (let p = 0; p <
|
|
2883
|
-
if (
|
|
2882
|
+
for (let p = 0; p < h.length; p++) {
|
|
2883
|
+
if (g = w = h[p], process.env.NODE_ENV !== "production" && n !== g && !Gi(n, g) && gn(r, t) && a(ft(Ae.FALLBACK_TO_TRANSLATE, {
|
|
2884
2884
|
key: t,
|
|
2885
|
-
target:
|
|
2886
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
2885
|
+
target: g
|
|
2886
|
+
})), process.env.NODE_ENV !== "production" && n !== g) {
|
|
2887
2887
|
const $ = e.__v_emitter;
|
|
2888
2888
|
$ && $.emit("fallback", {
|
|
2889
2889
|
type: k,
|
|
2890
2890
|
key: t,
|
|
2891
|
-
from:
|
|
2892
|
-
to:
|
|
2891
|
+
from: D,
|
|
2892
|
+
to: w,
|
|
2893
2893
|
groupId: `${k}:${t}`
|
|
2894
2894
|
});
|
|
2895
2895
|
}
|
|
2896
|
-
|
|
2897
|
-
let C = null, T,
|
|
2898
|
-
if (process.env.NODE_ENV !== "production" && Je && (C = window.performance.now(), T = "intlify-message-resolve-start",
|
|
2896
|
+
E = o[g] || se();
|
|
2897
|
+
let C = null, T, _;
|
|
2898
|
+
if (process.env.NODE_ENV !== "production" && Je && (C = window.performance.now(), T = "intlify-message-resolve-start", _ = "intlify-message-resolve-end", Pe && Pe(T)), (v = s(E, t)) === null && (v = E[t]), process.env.NODE_ENV !== "production" && Je) {
|
|
2899
2899
|
const $ = window.performance.now(), A = e.__v_emitter;
|
|
2900
2900
|
A && C && v && A.emit("message-resolve", {
|
|
2901
2901
|
type: "message-resolve",
|
|
@@ -2903,48 +2903,48 @@ function Yi(e, t, n, l, r, i) {
|
|
|
2903
2903
|
message: v,
|
|
2904
2904
|
time: $ - C,
|
|
2905
2905
|
groupId: `${k}:${t}`
|
|
2906
|
-
}), T &&
|
|
2906
|
+
}), T && _ && Pe && dt && (Pe(_), dt("intlify message resolve", T, _));
|
|
2907
2907
|
}
|
|
2908
2908
|
if (x(v) || Fe(v) || xe(v))
|
|
2909
2909
|
break;
|
|
2910
|
-
if (!Fu(
|
|
2910
|
+
if (!Fu(g, h)) {
|
|
2911
2911
|
const $ = rl(
|
|
2912
2912
|
e,
|
|
2913
2913
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2914
2914
|
t,
|
|
2915
|
-
|
|
2915
|
+
g,
|
|
2916
2916
|
i,
|
|
2917
2917
|
k
|
|
2918
2918
|
);
|
|
2919
2919
|
$ !== t && (v = $);
|
|
2920
2920
|
}
|
|
2921
|
-
|
|
2921
|
+
D = w;
|
|
2922
2922
|
}
|
|
2923
|
-
return [v,
|
|
2923
|
+
return [v, g, E];
|
|
2924
2924
|
}
|
|
2925
2925
|
function qi(e, t, n, l, r, i) {
|
|
2926
2926
|
const { messageCompiler: o, warnHtmlMessage: a } = e;
|
|
2927
2927
|
if (xe(l)) {
|
|
2928
|
-
const
|
|
2929
|
-
return
|
|
2928
|
+
const g = l;
|
|
2929
|
+
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
2930
2930
|
}
|
|
2931
2931
|
if (o == null) {
|
|
2932
|
-
const
|
|
2933
|
-
return
|
|
2932
|
+
const g = (() => l);
|
|
2933
|
+
return g.locale = n, g.key = t, g;
|
|
2934
2934
|
}
|
|
2935
|
-
let s = null, c,
|
|
2936
|
-
process.env.NODE_ENV !== "production" && Je && (s = window.performance.now(), c = "intlify-message-compilation-start",
|
|
2937
|
-
const
|
|
2935
|
+
let s = null, c, h;
|
|
2936
|
+
process.env.NODE_ENV !== "production" && Je && (s = window.performance.now(), c = "intlify-message-compilation-start", h = "intlify-message-compilation-end", Pe && Pe(c));
|
|
2937
|
+
const E = o(l, Zu(e, n, r, l, a, i));
|
|
2938
2938
|
if (process.env.NODE_ENV !== "production" && Je) {
|
|
2939
|
-
const
|
|
2939
|
+
const g = window.performance.now(), v = e.__v_emitter;
|
|
2940
2940
|
v && s && v.emit("message-compilation", {
|
|
2941
2941
|
type: "message-compilation",
|
|
2942
2942
|
message: l,
|
|
2943
|
-
time:
|
|
2943
|
+
time: g - s,
|
|
2944
2944
|
groupId: `translate:${t}`
|
|
2945
|
-
}), c &&
|
|
2945
|
+
}), c && h && Pe && dt && (Pe(h), dt("intlify message compilation", c, h));
|
|
2946
2946
|
}
|
|
2947
|
-
return
|
|
2947
|
+
return E.locale = n, E.key = t, E.source = l, E;
|
|
2948
2948
|
}
|
|
2949
2949
|
function Xu(e, t, n) {
|
|
2950
2950
|
let l = null, r, i;
|
|
@@ -2975,8 +2975,8 @@ function Zu(e, t, n, l, r, i) {
|
|
|
2975
2975
|
warnHtmlMessage: r,
|
|
2976
2976
|
onError: (o) => {
|
|
2977
2977
|
if (i && i(o), process.env.NODE_ENV !== "production") {
|
|
2978
|
-
const a = Ju(l), s = `Message compilation error: ${o.message}`, c = o.location && a && bs(a, o.location.start.offset, o.location.end.offset),
|
|
2979
|
-
|
|
2978
|
+
const a = Ju(l), s = `Message compilation error: ${o.message}`, c = o.location && a && bs(a, o.location.start.offset, o.location.end.offset), h = e.__v_emitter;
|
|
2979
|
+
h && a && h.emit("compile-error", {
|
|
2980
2980
|
message: a,
|
|
2981
2981
|
error: o.message,
|
|
2982
2982
|
start: o.location && o.location.start.offset,
|
|
@@ -2997,15 +2997,15 @@ function Ju(e) {
|
|
|
2997
2997
|
return e.loc.source;
|
|
2998
2998
|
}
|
|
2999
2999
|
function Qu(e, t, n, l) {
|
|
3000
|
-
const { modifiers: r, pluralRules: i, messageResolver: o, fallbackLocale: a, fallbackWarn: s, missingWarn: c, fallbackContext:
|
|
3000
|
+
const { modifiers: r, pluralRules: i, messageResolver: o, fallbackLocale: a, fallbackWarn: s, missingWarn: c, fallbackContext: h } = e, g = {
|
|
3001
3001
|
locale: t,
|
|
3002
3002
|
modifiers: r,
|
|
3003
3003
|
pluralRules: i,
|
|
3004
|
-
messages: (v,
|
|
3005
|
-
let
|
|
3006
|
-
if (
|
|
3004
|
+
messages: (v, D) => {
|
|
3005
|
+
let w = o(n, v);
|
|
3006
|
+
if (w == null && (h || D)) {
|
|
3007
3007
|
const [, , k] = Yi(
|
|
3008
|
-
|
|
3008
|
+
h || e,
|
|
3009
3009
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
3010
3010
|
v,
|
|
3011
3011
|
t,
|
|
@@ -3013,18 +3013,18 @@ function Qu(e, t, n, l) {
|
|
|
3013
3013
|
s,
|
|
3014
3014
|
c
|
|
3015
3015
|
);
|
|
3016
|
-
|
|
3016
|
+
w = o(k, v);
|
|
3017
3017
|
}
|
|
3018
|
-
if (x(
|
|
3018
|
+
if (x(w) || Fe(w)) {
|
|
3019
3019
|
let k = !1;
|
|
3020
|
-
const C = qi(e, v, t,
|
|
3020
|
+
const C = qi(e, v, t, w, v, () => {
|
|
3021
3021
|
k = !0;
|
|
3022
3022
|
});
|
|
3023
3023
|
return k ? ei : C;
|
|
3024
|
-
} else return xe(
|
|
3024
|
+
} else return xe(w) ? w : ei;
|
|
3025
3025
|
}
|
|
3026
3026
|
};
|
|
3027
|
-
return e.processor && (
|
|
3027
|
+
return e.processor && (g.processor = e.processor), l.list && (g.list = l.list), l.named && (g.named = l.named), be(l.plural) && (g.pluralIndex = l.plural), g;
|
|
3028
3028
|
}
|
|
3029
3029
|
Qs();
|
|
3030
3030
|
/*!
|
|
@@ -3197,8 +3197,8 @@ function sc(e = {}) {
|
|
|
3197
3197
|
), s = i(
|
|
3198
3198
|
// prettier-ignore
|
|
3199
3199
|
t && o ? t.fallbackLocale.value : x(e.fallbackLocale) || ve(e.fallbackLocale) || te(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
3200
|
-
), c = i(Zi(a.value, e)),
|
|
3201
|
-
let
|
|
3200
|
+
), c = i(Zi(a.value, e)), h = i(te(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), E = i(te(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
3201
|
+
let g = t ? t.missingWarn : ye(e.missingWarn) || en(e.missingWarn) ? e.missingWarn : !0, v = t ? t.fallbackWarn : ye(e.fallbackWarn) || en(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : ye(e.fallbackRoot) ? e.fallbackRoot : !0, w = !!e.fallbackFormat, k = me(e.missing) ? e.missing : null, p = me(e.missing) ? oi(e.missing) : null, C = me(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : ye(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
3202
3202
|
const $ = t ? t.modifiers : te(e.modifiers) ? e.modifiers : {};
|
|
3203
3203
|
let A = e.pluralRules || t && t.pluralRules, S;
|
|
3204
3204
|
S = (() => {
|
|
@@ -3211,18 +3211,18 @@ function sc(e = {}) {
|
|
|
3211
3211
|
modifiers: $,
|
|
3212
3212
|
pluralRules: A,
|
|
3213
3213
|
missing: p === null ? void 0 : p,
|
|
3214
|
-
missingWarn:
|
|
3214
|
+
missingWarn: g,
|
|
3215
3215
|
fallbackWarn: v,
|
|
3216
|
-
fallbackFormat:
|
|
3216
|
+
fallbackFormat: w,
|
|
3217
3217
|
unresolving: !0,
|
|
3218
3218
|
postTranslation: C === null ? void 0 : C,
|
|
3219
3219
|
warnHtmlMessage: T,
|
|
3220
|
-
escapeParameter:
|
|
3220
|
+
escapeParameter: _,
|
|
3221
3221
|
messageResolver: e.messageResolver,
|
|
3222
3222
|
messageCompiler: e.messageCompiler,
|
|
3223
3223
|
__meta: { framework: "vue" }
|
|
3224
3224
|
};
|
|
3225
|
-
b.datetimeFormats =
|
|
3225
|
+
b.datetimeFormats = h.value, b.numberFormats = E.value, b.__datetimeFormatters = te(S) ? S.__datetimeFormatters : void 0, b.__numberFormatters = te(S) ? S.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (b.__v_emitter = te(S) ? S.__v_emitter : void 0);
|
|
3226
3226
|
const I = Uu(b);
|
|
3227
3227
|
return l && jl(I), I;
|
|
3228
3228
|
})(), It(S, a.value, s.value);
|
|
@@ -3231,8 +3231,8 @@ function sc(e = {}) {
|
|
|
3231
3231
|
a.value,
|
|
3232
3232
|
s.value,
|
|
3233
3233
|
c.value,
|
|
3234
|
-
|
|
3235
|
-
|
|
3234
|
+
h.value,
|
|
3235
|
+
E.value
|
|
3236
3236
|
];
|
|
3237
3237
|
}
|
|
3238
3238
|
const pe = W({
|
|
@@ -3245,11 +3245,11 @@ function sc(e = {}) {
|
|
|
3245
3245
|
set: (b) => {
|
|
3246
3246
|
S.fallbackLocale = b, s.value = b, It(S, a.value, b);
|
|
3247
3247
|
}
|
|
3248
|
-
}), ue = W(() => c.value), et = /* @__PURE__ */ W(() =>
|
|
3248
|
+
}), ue = W(() => c.value), et = /* @__PURE__ */ W(() => h.value), gt = /* @__PURE__ */ W(() => E.value);
|
|
3249
3249
|
function B() {
|
|
3250
3250
|
return me(C) ? C : null;
|
|
3251
3251
|
}
|
|
3252
|
-
function
|
|
3252
|
+
function R(b) {
|
|
3253
3253
|
C = b, S.postTranslation = b;
|
|
3254
3254
|
}
|
|
3255
3255
|
function J() {
|
|
@@ -3272,19 +3272,19 @@ function sc(e = {}) {
|
|
|
3272
3272
|
if (le !== "translate exists" && // for not `te` (e.g `t`)
|
|
3273
3273
|
be(ht) && ht === pn || le === "translate exists" && !ht) {
|
|
3274
3274
|
const [at, Fr] = I();
|
|
3275
|
-
if (process.env.NODE_ENV !== "production" && t && x(at) && je(le, Fr) && (
|
|
3275
|
+
if (process.env.NODE_ENV !== "production" && t && x(at) && je(le, Fr) && (D && (gn(v, at) || zi(g, at)) && We(ln(ze.FALLBACK_TO_ROOT, {
|
|
3276
3276
|
key: at,
|
|
3277
3277
|
type: le
|
|
3278
3278
|
})), process.env.NODE_ENV !== "production")) {
|
|
3279
3279
|
const { __v_emitter: yl } = S;
|
|
3280
|
-
yl &&
|
|
3280
|
+
yl && D && yl.emit("fallback", {
|
|
3281
3281
|
type: le,
|
|
3282
3282
|
key: at,
|
|
3283
3283
|
to: "global",
|
|
3284
3284
|
groupId: `${le}:${at}`
|
|
3285
3285
|
});
|
|
3286
3286
|
}
|
|
3287
|
-
return t &&
|
|
3287
|
+
return t && D ? he(t) : ot(at);
|
|
3288
3288
|
} else {
|
|
3289
3289
|
if (Ht(ht))
|
|
3290
3290
|
return ht;
|
|
@@ -3380,22 +3380,22 @@ function sc(e = {}) {
|
|
|
3380
3380
|
I = le[b], Zt(I, c.value[b]), S.messages = c.value;
|
|
3381
3381
|
}
|
|
3382
3382
|
function f(b) {
|
|
3383
|
-
return
|
|
3383
|
+
return h.value[b] || {};
|
|
3384
3384
|
}
|
|
3385
3385
|
function m(b, I) {
|
|
3386
|
-
|
|
3386
|
+
h.value[b] = I, S.datetimeFormats = h.value, Xl(S, b, I);
|
|
3387
3387
|
}
|
|
3388
|
-
function
|
|
3389
|
-
|
|
3388
|
+
function N(b, I) {
|
|
3389
|
+
h.value[b] = ke(h.value[b] || {}, I), S.datetimeFormats = h.value, Xl(S, b, I);
|
|
3390
3390
|
}
|
|
3391
3391
|
function F(b) {
|
|
3392
|
-
return
|
|
3392
|
+
return E.value[b] || {};
|
|
3393
3393
|
}
|
|
3394
3394
|
function fe(b, I) {
|
|
3395
|
-
|
|
3395
|
+
E.value[b] = I, S.numberFormats = E.value, Jl(S, b, I);
|
|
3396
3396
|
}
|
|
3397
3397
|
function ge(b, I) {
|
|
3398
|
-
|
|
3398
|
+
E.value[b] = ke(E.value[b] || {}, I), S.numberFormats = E.value, Jl(S, b, I);
|
|
3399
3399
|
}
|
|
3400
3400
|
ri++, t && Je && (Ge(t.locale, (b) => {
|
|
3401
3401
|
o && (a.value = b, S.locale = b, It(S, a.value, s.value));
|
|
@@ -3426,10 +3426,10 @@ function sc(e = {}) {
|
|
|
3426
3426
|
return l;
|
|
3427
3427
|
},
|
|
3428
3428
|
get missingWarn() {
|
|
3429
|
-
return
|
|
3429
|
+
return g;
|
|
3430
3430
|
},
|
|
3431
3431
|
set missingWarn(b) {
|
|
3432
|
-
|
|
3432
|
+
g = b, S.missingWarn = g;
|
|
3433
3433
|
},
|
|
3434
3434
|
get fallbackWarn() {
|
|
3435
3435
|
return v;
|
|
@@ -3438,16 +3438,16 @@ function sc(e = {}) {
|
|
|
3438
3438
|
v = b, S.fallbackWarn = v;
|
|
3439
3439
|
},
|
|
3440
3440
|
get fallbackRoot() {
|
|
3441
|
-
return
|
|
3441
|
+
return D;
|
|
3442
3442
|
},
|
|
3443
3443
|
set fallbackRoot(b) {
|
|
3444
|
-
|
|
3444
|
+
D = b;
|
|
3445
3445
|
},
|
|
3446
3446
|
get fallbackFormat() {
|
|
3447
|
-
return
|
|
3447
|
+
return w;
|
|
3448
3448
|
},
|
|
3449
3449
|
set fallbackFormat(b) {
|
|
3450
|
-
|
|
3450
|
+
w = b, S.fallbackFormat = w;
|
|
3451
3451
|
},
|
|
3452
3452
|
get warnHtmlMessage() {
|
|
3453
3453
|
return T;
|
|
@@ -3456,22 +3456,22 @@ function sc(e = {}) {
|
|
|
3456
3456
|
T = b, S.warnHtmlMessage = b;
|
|
3457
3457
|
},
|
|
3458
3458
|
get escapeParameter() {
|
|
3459
|
-
return
|
|
3459
|
+
return _;
|
|
3460
3460
|
},
|
|
3461
3461
|
set escapeParameter(b) {
|
|
3462
|
-
|
|
3462
|
+
_ = b, S.escapeParameter = b;
|
|
3463
3463
|
},
|
|
3464
3464
|
t: it,
|
|
3465
3465
|
getLocaleMessage: rt,
|
|
3466
3466
|
setLocaleMessage: Tt,
|
|
3467
3467
|
mergeLocaleMessage: wn,
|
|
3468
3468
|
getPostTranslationHandler: B,
|
|
3469
|
-
setPostTranslationHandler:
|
|
3469
|
+
setPostTranslationHandler: R,
|
|
3470
3470
|
getMissingHandler: J,
|
|
3471
3471
|
setMissingHandler: z,
|
|
3472
3472
|
[lc]: Ln
|
|
3473
3473
|
};
|
|
3474
|
-
return ee.datetimeFormats = et, ee.numberFormats = gt, ee.rt = yn, ee.te = Sn, ee.tm = Nt, ee.d = vn, ee.n = En, ee.getDateTimeFormat = f, ee.setDateTimeFormat = m, ee.mergeDateTimeFormat =
|
|
3474
|
+
return ee.datetimeFormats = et, ee.numberFormats = gt, ee.rt = yn, ee.te = Sn, ee.tm = Nt, ee.d = vn, ee.n = En, ee.getDateTimeFormat = f, ee.setDateTimeFormat = m, ee.mergeDateTimeFormat = N, ee.getNumberFormat = F, ee.setNumberFormat = fe, ee.mergeNumberFormat = ge, ee[Xi] = n, ee[Hn] = Ut, ee[Bn] = Ft, ee[zn] = kn, process.env.NODE_ENV !== "production" && (ee[Gn] = (b) => {
|
|
3475
3475
|
S.__v_emitter = b;
|
|
3476
3476
|
}, ee[Wn] = () => {
|
|
3477
3477
|
S.__v_emitter = void 0;
|
|
@@ -3528,15 +3528,15 @@ function er(e, t, n, l) {
|
|
|
3528
3528
|
return () => {
|
|
3529
3529
|
const o = { part: !0 };
|
|
3530
3530
|
let a = se();
|
|
3531
|
-
e.locale && (o.locale = e.locale), x(e.format) ? o.key = e.format : ne(e.format) && (x(e.format.key) && (o.key = e.format.key), a = Object.keys(e.format).reduce((
|
|
3531
|
+
e.locale && (o.locale = e.locale), x(e.format) ? o.key = e.format : ne(e.format) && (x(e.format.key) && (o.key = e.format.key), a = Object.keys(e.format).reduce((g, v) => n.includes(v) ? ke(se(), g, { [v]: e.format[v] }) : g, se()));
|
|
3532
3532
|
const s = l(e.value, o, a);
|
|
3533
3533
|
let c = [o.key];
|
|
3534
|
-
ve(s) ? c = s.map((
|
|
3535
|
-
const
|
|
3536
|
-
return cc(
|
|
3534
|
+
ve(s) ? c = s.map((g, v) => {
|
|
3535
|
+
const D = r[g.type], w = D ? D({ [g.type]: g.value, index: v, parts: s }) : [g.value];
|
|
3536
|
+
return cc(w) && (w[0].key = `${g.type}-${v}`), w;
|
|
3537
3537
|
}) : x(s) && (c = [s]);
|
|
3538
|
-
const
|
|
3539
|
-
return bt(
|
|
3538
|
+
const h = ke(se(), i), E = x(e.tag) || ne(e.tag) ? e.tag : Qi();
|
|
3539
|
+
return bt(E, h, c);
|
|
3540
3540
|
};
|
|
3541
3541
|
}
|
|
3542
3542
|
ke({
|
|
@@ -3661,13 +3661,13 @@ const re = /* @__PURE__ */ de({
|
|
|
3661
3661
|
}), bi(async () => {
|
|
3662
3662
|
l.value?.dispose();
|
|
3663
3663
|
}), (o, a) => (u(), d(Ee, null, [
|
|
3664
|
-
|
|
3664
|
+
y("span", K({
|
|
3665
3665
|
ref_key: "$tooltip",
|
|
3666
3666
|
ref: r
|
|
3667
3667
|
}, o.$attrs), [
|
|
3668
3668
|
ae(o.$slots, "default")
|
|
3669
3669
|
], 16),
|
|
3670
|
-
|
|
3670
|
+
y("span", {
|
|
3671
3671
|
class: "d-none",
|
|
3672
3672
|
ref_key: "$tooltipContent",
|
|
3673
3673
|
ref: i
|
|
@@ -3698,8 +3698,8 @@ const re = /* @__PURE__ */ de({
|
|
|
3698
3698
|
let s = o.value && o.value.icon ? window.atob(o.value.icon) : void 0;
|
|
3699
3699
|
s || (s = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="0.75em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 384 512"><path d="M288 32H0v448h384V128l-96-96zm64 416H32V64h224l96 96v288z" fill="currentColor"/></svg>');
|
|
3700
3700
|
const c = document.getElementsByTagName("html")[0].className.indexOf("dark") >= 0;
|
|
3701
|
-
let
|
|
3702
|
-
return t.theme && (
|
|
3701
|
+
let h = Ve(c ? "--bs-gray-900" : "--bs-black") ?? "#FFFFFF";
|
|
3702
|
+
return t.theme && (h = (t.theme === "dark" ? Ve("--bs-gray-900") : Ve("--bs-black")) ?? h), t.variable && (h = Ve(t.variable) ?? h), s = s.replace(/currentColor/g, h), window.btoa(s);
|
|
3703
3703
|
}), o = W(() => t.cls ? (t.icons || {})[a(t.cls)] : t.customIcon);
|
|
3704
3704
|
function a(s) {
|
|
3705
3705
|
return s.includes("$") ? s.substring(0, s.indexOf("$")) : s;
|
|
@@ -3716,7 +3716,7 @@ const re = /* @__PURE__ */ de({
|
|
|
3716
3716
|
title: s.cls
|
|
3717
3717
|
}, {
|
|
3718
3718
|
default: G(() => [
|
|
3719
|
-
|
|
3719
|
+
y("div", {
|
|
3720
3720
|
class: "icon",
|
|
3721
3721
|
style: ct(r.value)
|
|
3722
3722
|
}, null, 4)
|
|
@@ -3757,7 +3757,7 @@ function Lc(e, t, n, l, r, i) {
|
|
|
3757
3757
|
height: n.size,
|
|
3758
3758
|
viewBox: "0 0 24 24"
|
|
3759
3759
|
}, [
|
|
3760
|
-
|
|
3760
|
+
y("path", bc, [
|
|
3761
3761
|
n.title ? (u(), d("title", kc, M(n.title), 1)) : L("", !0)
|
|
3762
3762
|
])
|
|
3763
3763
|
], 8, Cc))
|
|
@@ -3795,7 +3795,7 @@ function Ic(e, t, n, l, r, i) {
|
|
|
3795
3795
|
height: n.size,
|
|
3796
3796
|
viewBox: "0 0 24 24"
|
|
3797
3797
|
}, [
|
|
3798
|
-
|
|
3798
|
+
y("path", Tc, [
|
|
3799
3799
|
n.title ? (u(), d("title", Ac, M(n.title), 1)) : L("", !0)
|
|
3800
3800
|
])
|
|
3801
3801
|
], 8, Nc))
|
|
@@ -3834,11 +3834,11 @@ const Oc = /* @__PURE__ */ H(Sc, [["render", Ic]]), $c = { class: "dependency-te
|
|
|
3834
3834
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.34546 9.63757C4.74074 10.5277 5.31782 11.3221 6.03835 11.9681L7.03434 10.8209C6.4739 10.3185 6.02504 9.70059 5.71758 9.00824C5.41012 8.3159 5.25111 7.56496 5.25111 6.80532C5.25111 6.04568 5.41012 5.29475 5.71758 4.6024C6.02504 3.91006 6.4739 3.29216 7.03434 2.78977L6.03835 1.64258C5.31782 2.28851 4.74074 3.08293 4.34546 3.97307C3.95019 4.86321 3.74575 5.82867 3.74575 6.80532C3.74575 7.78197 3.95019 8.74744 4.34546 9.63757ZM16.955 4.38931C17.4802 3.97411 18.1261 3.74777 18.7913 3.74576C19.5894 3.74576 20.3547 4.06807 20.919 4.64177C21.4833 5.21548 21.8004 5.9936 21.8004 6.80494C21.8004 7.61628 21.4833 8.3944 20.919 8.96811C20.3547 9.54181 19.5894 9.86412 18.7913 9.86412C18.2559 9.86126 17.7312 9.71144 17.2725 9.43048L12.3325 14.4529L11.2688 13.3715L16.2088 8.34906C16.0668 8.10583 15.9592 7.84348 15.8891 7.56973H11.2688V6.04014H15.8891C16.055 5.38511 16.4298 4.80451 16.955 4.38931ZM17.9555 8.07674C18.2029 8.24482 18.4938 8.33453 18.7913 8.33453C19.1902 8.33412 19.5727 8.17284 19.8548 7.88607C20.1368 7.59931 20.2955 7.21049 20.2959 6.80494C20.2959 6.50241 20.2076 6.20668 20.0423 5.95514C19.877 5.70361 19.642 5.50756 19.3671 5.39178C19.0922 5.27601 18.7897 5.24572 18.4978 5.30474C18.206 5.36376 17.9379 5.50944 17.7275 5.72336C17.5171 5.93727 17.3738 6.20982 17.3157 6.50653C17.2577 6.80324 17.2875 7.11079 17.4014 7.39029C17.5152 7.66978 17.7081 7.90867 17.9555 8.07674ZM3.74621 15.2177V16.7473H7.19606L2.2417 21.7842L3.30539 22.8656L8.25975 17.8287V21.336H9.76427V15.2177H3.74621ZM15.7823 18.2769H12.7733V19.8064H15.7823V22.1008H21.8004V15.9825H15.7823V18.2769ZM17.2868 20.5712V17.5121H20.2959V20.5712H17.2868ZM8.02885 9.67292C7.62863 9.31407 7.30809 8.87275 7.08853 8.37827C6.86897 7.88378 6.75542 7.34747 6.75542 6.80494C6.75542 6.26241 6.86897 5.72609 7.08853 5.23161C7.30809 4.73713 7.62863 4.29581 8.02885 3.93696L9.02484 5.08415C8.78458 5.29946 8.59215 5.5643 8.46034 5.86106C8.32853 6.15782 8.26035 6.47971 8.26035 6.80532C8.26035 7.13094 8.32853 7.45282 8.46034 7.74958C8.59215 8.04634 8.78458 8.31118 9.02484 8.52649L8.02885 9.67292Z" fill="white"/>
|
|
3835
3835
|
</svg>`));
|
|
3836
3836
|
return (i, o) => (u(), d(Ee, null, [
|
|
3837
|
-
V(
|
|
3837
|
+
V(P(Me), {
|
|
3838
3838
|
type: "source",
|
|
3839
3839
|
position: e.sourcePosition
|
|
3840
3840
|
}, null, 8, ["position"]),
|
|
3841
|
-
|
|
3841
|
+
y("div", {
|
|
3842
3842
|
class: oe([[`border-${e.data.color}`], "dependency-node-wrapper rounded-3 border"])
|
|
3843
3843
|
}, [
|
|
3844
3844
|
V(tr, {
|
|
@@ -3846,8 +3846,8 @@ const Oc = /* @__PURE__ */ H(Sc, [["render", Ic]]), $c = { class: "dependency-te
|
|
|
3846
3846
|
class: "bg-pink rounded",
|
|
3847
3847
|
theme: "light"
|
|
3848
3848
|
}, null, 8, ["custom-icon"]),
|
|
3849
|
-
|
|
3850
|
-
|
|
3849
|
+
y("div", $c, [
|
|
3850
|
+
y("div", Dc, [
|
|
3851
3851
|
V(re, {
|
|
3852
3852
|
title: e.data.flowId
|
|
3853
3853
|
}, {
|
|
@@ -3857,7 +3857,7 @@ const Oc = /* @__PURE__ */ H(Sc, [["render", Ic]]), $c = { class: "dependency-te
|
|
|
3857
3857
|
_: 1
|
|
3858
3858
|
}, 8, ["title"])
|
|
3859
3859
|
]),
|
|
3860
|
-
|
|
3860
|
+
y("div", Rc, [
|
|
3861
3861
|
V(re, {
|
|
3862
3862
|
title: e.data.namespace
|
|
3863
3863
|
}, {
|
|
@@ -3868,15 +3868,15 @@ const Oc = /* @__PURE__ */ H(Sc, [["render", Ic]]), $c = { class: "dependency-te
|
|
|
3868
3868
|
}, 8, ["title"])
|
|
3869
3869
|
])
|
|
3870
3870
|
]),
|
|
3871
|
-
|
|
3871
|
+
y("div", Pc, [
|
|
3872
3872
|
ae(i.$slots, "badge-button-before", {}, void 0, !0),
|
|
3873
3873
|
e.data.link ? (u(), d("span", {
|
|
3874
3874
|
key: 0,
|
|
3875
3875
|
class: oe(["circle-button", [`bg-${e.data.color}`]]),
|
|
3876
|
-
onClick: o[0] || (o[0] = (a) => i.$emit(
|
|
3876
|
+
onClick: o[0] || (o[0] = (a) => i.$emit(P(U).OPEN_LINK, e.data))
|
|
3877
3877
|
}, [
|
|
3878
3878
|
V(re, {
|
|
3879
|
-
title:
|
|
3879
|
+
title: P(l)("open")
|
|
3880
3880
|
}, {
|
|
3881
3881
|
default: G(() => [
|
|
3882
3882
|
V(nr, {
|
|
@@ -3890,10 +3890,10 @@ const Oc = /* @__PURE__ */ H(Sc, [["render", Ic]]), $c = { class: "dependency-te
|
|
|
3890
3890
|
e.data.expandEnabled ? (u(), d("span", {
|
|
3891
3891
|
key: 1,
|
|
3892
3892
|
class: oe(["circle-button", [`bg-${e.data.color}`]]),
|
|
3893
|
-
onClick: o[1] || (o[1] = (a) => n(
|
|
3893
|
+
onClick: o[1] || (o[1] = (a) => n(P(U).EXPAND_DEPENDENCIES, e.data))
|
|
3894
3894
|
}, [
|
|
3895
3895
|
V(re, {
|
|
3896
|
-
title:
|
|
3896
|
+
title: P(l)("expand")
|
|
3897
3897
|
}, {
|
|
3898
3898
|
default: G(() => [
|
|
3899
3899
|
V(Oc, {
|
|
@@ -3907,7 +3907,7 @@ const Oc = /* @__PURE__ */ H(Sc, [["render", Ic]]), $c = { class: "dependency-te
|
|
|
3907
3907
|
ae(i.$slots, "badge-button-after", {}, void 0, !0)
|
|
3908
3908
|
])
|
|
3909
3909
|
], 2),
|
|
3910
|
-
V(
|
|
3910
|
+
V(P(Me), {
|
|
3911
3911
|
type: "target",
|
|
3912
3912
|
position: e.targetPosition
|
|
3913
3913
|
}, null, 8, ["position"])
|
|
@@ -3954,11 +3954,11 @@ const Vc = {
|
|
|
3954
3954
|
},
|
|
3955
3955
|
setup(e) {
|
|
3956
3956
|
const { id: t, viewport: n } = Si(), l = W(() => {
|
|
3957
|
-
const o = n.value.zoom, [a, s] = Array.isArray(e.gap) ? e.gap : [e.gap, e.gap], c = [a * o || 1, s * o || 1],
|
|
3957
|
+
const o = n.value.zoom, [a, s] = Array.isArray(e.gap) ? e.gap : [e.gap, e.gap], c = [a * o || 1, s * o || 1], h = e.size * o, [E, g] = Array.isArray(e.offset) ? e.offset : [e.offset, e.offset], v = [E * o || 1 + c[0] / 2, g * o || 1 + c[1] / 2];
|
|
3958
3958
|
return {
|
|
3959
3959
|
scaledGap: c,
|
|
3960
3960
|
offset: v,
|
|
3961
|
-
size:
|
|
3961
|
+
size: h
|
|
3962
3962
|
};
|
|
3963
3963
|
}), r = Ll(() => `pattern-${t}${e.id ? `-${e.id}` : ""}`), i = Ll(() => e.color || e.patternColor || Vc[e.variant || qe.Dots]);
|
|
3964
3964
|
return (o, a) => (u(), d("svg", {
|
|
@@ -3969,28 +3969,28 @@ const Vc = {
|
|
|
3969
3969
|
})
|
|
3970
3970
|
}, [
|
|
3971
3971
|
ae(o.$slots, "pattern-container", { id: r.value }, () => [
|
|
3972
|
-
|
|
3972
|
+
y("pattern", {
|
|
3973
3973
|
id: r.value,
|
|
3974
|
-
x:
|
|
3975
|
-
y:
|
|
3974
|
+
x: P(n).x % l.value.scaledGap[0],
|
|
3975
|
+
y: P(n).y % l.value.scaledGap[1],
|
|
3976
3976
|
width: l.value.scaledGap[0],
|
|
3977
3977
|
height: l.value.scaledGap[1],
|
|
3978
3978
|
patternTransform: `translate(-${l.value.offset[0]},-${l.value.offset[1]})`,
|
|
3979
3979
|
patternUnits: "userSpaceOnUse"
|
|
3980
3980
|
}, [
|
|
3981
3981
|
ae(o.$slots, "pattern", {}, () => [
|
|
3982
|
-
o.variant ===
|
|
3982
|
+
o.variant === P(qe).Lines ? (u(), X(P(lr), {
|
|
3983
3983
|
key: 0,
|
|
3984
3984
|
size: o.lineWidth,
|
|
3985
3985
|
color: i.value,
|
|
3986
3986
|
dimensions: l.value.scaledGap
|
|
3987
|
-
}, null, 8, ["size", "color", "dimensions"])) : o.variant ===
|
|
3987
|
+
}, null, 8, ["size", "color", "dimensions"])) : o.variant === P(qe).Dots ? (u(), X(P(ir), {
|
|
3988
3988
|
key: 1,
|
|
3989
3989
|
color: i.value,
|
|
3990
3990
|
radius: l.value.size / 2
|
|
3991
3991
|
}, null, 8, ["color", "radius"])) : L("", !0),
|
|
3992
3992
|
o.bgColor ? (u(), d("svg", Uc, [
|
|
3993
|
-
|
|
3993
|
+
y("rect", {
|
|
3994
3994
|
width: "100%",
|
|
3995
3995
|
height: "100%",
|
|
3996
3996
|
fill: o.bgColor
|
|
@@ -3999,7 +3999,7 @@ const Vc = {
|
|
|
3999
3999
|
])
|
|
4000
4000
|
], 8, xc)
|
|
4001
4001
|
]),
|
|
4002
|
-
|
|
4002
|
+
y("rect", {
|
|
4003
4003
|
x: o.x,
|
|
4004
4004
|
y: o.y,
|
|
4005
4005
|
width: "100%",
|
|
@@ -4041,7 +4041,7 @@ function qc(e, t, n, l, r, i) {
|
|
|
4041
4041
|
height: n.size,
|
|
4042
4042
|
viewBox: "0 0 24 24"
|
|
4043
4043
|
}, [
|
|
4044
|
-
|
|
4044
|
+
y("path", Kc, [
|
|
4045
4045
|
n.title ? (u(), d("title", Yc, M(n.title), 1)) : L("", !0)
|
|
4046
4046
|
])
|
|
4047
4047
|
], 8, jc))
|
|
@@ -4096,10 +4096,10 @@ const Xc = /* @__PURE__ */ H(Gc, [["render", qc]]), Zc = { class: "top-button-di
|
|
|
4096
4096
|
return (i, o) => (u(), d("div", {
|
|
4097
4097
|
class: oe(i.classes)
|
|
4098
4098
|
}, [
|
|
4099
|
-
|
|
4099
|
+
y("span", {
|
|
4100
4100
|
class: oe(["badge rounded-pill text-truncate text-color position-reliative", [`bg-${e.data.color}`]])
|
|
4101
4101
|
}, M(i.clusterName), 3),
|
|
4102
|
-
|
|
4102
|
+
y("div", Zc, [
|
|
4103
4103
|
e.data.collapsable ? (u(), d("span", {
|
|
4104
4104
|
key: 0,
|
|
4105
4105
|
class: oe(["circle-button", [`bg-${e.data.color}`]]),
|
|
@@ -4152,7 +4152,7 @@ function od(e, t, n, l, r, i) {
|
|
|
4152
4152
|
height: n.size,
|
|
4153
4153
|
viewBox: "0 0 24 24"
|
|
4154
4154
|
}, [
|
|
4155
|
-
|
|
4155
|
+
y("path", id, [
|
|
4156
4156
|
n.title ? (u(), d("title", rd, M(n.title), 1)) : L("", !0)
|
|
4157
4157
|
])
|
|
4158
4158
|
], 8, ld))
|
|
@@ -4193,12 +4193,12 @@ const rr = /* @__PURE__ */ H(td, [["render", od]]), ad = {
|
|
|
4193
4193
|
return (t, n) => (u(), d("div", {
|
|
4194
4194
|
class: oe(t.classes)
|
|
4195
4195
|
}, [
|
|
4196
|
-
V(
|
|
4196
|
+
V(P(Me), {
|
|
4197
4197
|
type: "source",
|
|
4198
4198
|
class: "custom-handle",
|
|
4199
4199
|
position: e.sourcePosition
|
|
4200
4200
|
}, null, 8, ["position"]),
|
|
4201
|
-
|
|
4201
|
+
y("div", {
|
|
4202
4202
|
class: oe(["dot", t.classes])
|
|
4203
4203
|
}, [
|
|
4204
4204
|
V(rr, {
|
|
@@ -4206,7 +4206,7 @@ const rr = /* @__PURE__ */ H(td, [["render", od]]), ad = {
|
|
|
4206
4206
|
alt: "circle"
|
|
4207
4207
|
}, null, 8, ["class"])
|
|
4208
4208
|
], 2),
|
|
4209
|
-
V(
|
|
4209
|
+
V(P(Me), {
|
|
4210
4210
|
type: "target",
|
|
4211
4211
|
class: "custom-handle",
|
|
4212
4212
|
position: e.targetPosition
|
|
@@ -4245,7 +4245,7 @@ function gd(e, t, n, l, r, i) {
|
|
|
4245
4245
|
height: n.size,
|
|
4246
4246
|
viewBox: "0 0 24 24"
|
|
4247
4247
|
}, [
|
|
4248
|
-
|
|
4248
|
+
y("path", md, [
|
|
4249
4249
|
n.title ? (u(), d("title", pd, M(n.title), 1)) : L("", !0)
|
|
4250
4250
|
])
|
|
4251
4251
|
], 8, fd))
|
|
@@ -4333,12 +4333,12 @@ const hd = /* @__PURE__ */ H(cd, [["render", gd]]), _d = { class: "add-task-div
|
|
|
4333
4333
|
d: i.value[0],
|
|
4334
4334
|
"marker-end": e.markerEnd
|
|
4335
4335
|
}, null, 14, Ed)) : L("", !0),
|
|
4336
|
-
i.value?.length ? (u(), X(
|
|
4336
|
+
i.value?.length ? (u(), X(P(Ao), {
|
|
4337
4337
|
key: 1,
|
|
4338
4338
|
style: { "z-index": "10" }
|
|
4339
4339
|
}, {
|
|
4340
4340
|
default: G(() => [
|
|
4341
|
-
|
|
4341
|
+
y("div", {
|
|
4342
4342
|
style: ct({
|
|
4343
4343
|
pointerEvents: "all",
|
|
4344
4344
|
position: "absolute",
|
|
@@ -4350,7 +4350,7 @@ const hd = /* @__PURE__ */ H(cd, [["render", gd]]), _d = { class: "add-task-div
|
|
|
4350
4350
|
e.data.haveAdd ? (u(), X(vd, {
|
|
4351
4351
|
key: 0,
|
|
4352
4352
|
"add-task": !0,
|
|
4353
|
-
onClick: a[0] || (a[0] = (s) => o.$emit(
|
|
4353
|
+
onClick: a[0] || (a[0] = (s) => o.$emit(P(U).ADD_TASK, e.data.haveAdd)),
|
|
4354
4354
|
class: oe({ "text-danger": e.data.color })
|
|
4355
4355
|
}, null, 8, ["class"])) : L("", !0)
|
|
4356
4356
|
]),
|
|
@@ -4371,8 +4371,8 @@ const hd = /* @__PURE__ */ H(cd, [["render", gd]]), _d = { class: "add-task-div
|
|
|
4371
4371
|
const t = e;
|
|
4372
4372
|
Ge(
|
|
4373
4373
|
() => t.histories,
|
|
4374
|
-
(v,
|
|
4375
|
-
|
|
4374
|
+
(v, D) => {
|
|
4375
|
+
D[0].date !== v[0].date && a();
|
|
4376
4376
|
}
|
|
4377
4377
|
);
|
|
4378
4378
|
const n = ie(""), l = ie();
|
|
@@ -4382,44 +4382,44 @@ const hd = /* @__PURE__ */ H(cd, [["render", gd]]), _d = { class: "add-task-div
|
|
|
4382
4382
|
const r = W(() => t.histories?.length && new Date(t.histories[0].date.toString()).getTime()), i = W(() => t.histories[t.histories.length - 1]), o = W(() => t.histories.filter((v) => v.date.isValid() && v.date && v.state));
|
|
4383
4383
|
function a() {
|
|
4384
4384
|
l.value || (l.value = setInterval(() => {
|
|
4385
|
-
|
|
4385
|
+
E(), t.histories && !_e.isRunning(i.value.state) && s();
|
|
4386
4386
|
}, 100));
|
|
4387
4387
|
}
|
|
4388
4388
|
function s() {
|
|
4389
4389
|
l.value && (clearInterval(l.value), l.value = void 0);
|
|
4390
4390
|
}
|
|
4391
4391
|
function c() {
|
|
4392
|
-
return
|
|
4392
|
+
return h() - r.value;
|
|
4393
4393
|
}
|
|
4394
|
-
function
|
|
4394
|
+
function h() {
|
|
4395
4395
|
return !t.histories || _e.isRunning(i.value.state) ? +/* @__PURE__ */ new Date() : new Date(i.value.date.toString()).getTime();
|
|
4396
4396
|
}
|
|
4397
|
-
function
|
|
4397
|
+
function E() {
|
|
4398
4398
|
n.value = o.value.length === 0 ? " " : Br(c() / 1e3);
|
|
4399
4399
|
}
|
|
4400
|
-
function
|
|
4400
|
+
function g(v) {
|
|
4401
4401
|
return "ks-duration-tt-square-" + v.toLowerCase();
|
|
4402
4402
|
}
|
|
4403
4403
|
return bi(() => {
|
|
4404
4404
|
s();
|
|
4405
|
-
}), (v,
|
|
4405
|
+
}), (v, D) => (u(), X(re, {
|
|
4406
4406
|
key: i.value.date.toString()
|
|
4407
4407
|
}, {
|
|
4408
4408
|
content: G(() => [
|
|
4409
|
-
(u(!0), d(Ee, null, Xe(o.value, (
|
|
4409
|
+
(u(!0), d(Ee, null, Xe(o.value, (w, k) => (u(), d("span", {
|
|
4410
4410
|
key: "tt-" + k,
|
|
4411
4411
|
class: "ks-duration-tt"
|
|
4412
4412
|
}, [
|
|
4413
|
-
|
|
4414
|
-
class: oe(["ks-duration-tt-square",
|
|
4413
|
+
y("span", {
|
|
4414
|
+
class: oe(["ks-duration-tt-square", g(w.state)])
|
|
4415
4415
|
}, null, 2),
|
|
4416
|
-
|
|
4417
|
-
Ze(M(zr(
|
|
4418
|
-
|
|
4416
|
+
y("strong", null, M(w.state) + ": ", 1),
|
|
4417
|
+
Ze(M(zr(w.date.toISOString(), "iso")) + " ", 1),
|
|
4418
|
+
D[0] || (D[0] = y("br", null, null, -1))
|
|
4419
4419
|
]))), 128))
|
|
4420
4420
|
]),
|
|
4421
4421
|
default: G(() => [
|
|
4422
|
-
|
|
4422
|
+
y("span", { innerHTML: n.value }, null, 8, kd)
|
|
4423
4423
|
]),
|
|
4424
4424
|
_: 1
|
|
4425
4425
|
}));
|
|
@@ -4502,7 +4502,7 @@ function Md(e, t, n, l, r, i) {
|
|
|
4502
4502
|
height: n.size,
|
|
4503
4503
|
viewBox: "0 0 24 24"
|
|
4504
4504
|
}, [
|
|
4505
|
-
|
|
4505
|
+
y("path", Rd, [
|
|
4506
4506
|
n.title ? (u(), d("title", Pd, M(n.title), 1)) : L("", !0)
|
|
4507
4507
|
])
|
|
4508
4508
|
], 8, Dd))
|
|
@@ -4540,7 +4540,7 @@ function zd(e, t, n, l, r, i) {
|
|
|
4540
4540
|
height: n.size,
|
|
4541
4541
|
viewBox: "0 0 24 24"
|
|
4542
4542
|
}, [
|
|
4543
|
-
|
|
4543
|
+
y("path", Hd, [
|
|
4544
4544
|
n.title ? (u(), d("title", Bd, M(n.title), 1)) : L("", !0)
|
|
4545
4545
|
])
|
|
4546
4546
|
], 8, Fd))
|
|
@@ -4587,42 +4587,42 @@ const al = /* @__PURE__ */ H(xd, [["render", zd]]), Gd = { class: "icon rounded"
|
|
|
4587
4587
|
const o = W(() => l.data?.expandable || !1), a = W(() => {
|
|
4588
4588
|
const v = l.data.node.task ?? l.data.node.trigger ?? null;
|
|
4589
4589
|
return v ? v.description ?? null : null;
|
|
4590
|
-
}), s = W(() => Re.afterLastDot(l.id ?? "")), c = W(() => ["default", "danger"].includes(l.data.color) ? "" : l.data.color),
|
|
4590
|
+
}), s = W(() => Re.afterLastDot(l.id ?? "")), c = W(() => ["default", "danger"].includes(l.data.color) ? "" : l.data.color), h = W(() => [
|
|
4591
4591
|
{
|
|
4592
4592
|
"unused-path": l.data.unused,
|
|
4593
4593
|
disabled: l.data.node.task?.disabled || l.data.parent?.taskNode?.task?.disabled
|
|
4594
4594
|
},
|
|
4595
4595
|
l.class
|
|
4596
|
-
]),
|
|
4596
|
+
]), E = W(() => {
|
|
4597
4597
|
if (l.data.node.triggerDeclaration)
|
|
4598
4598
|
return l.data.node.triggerDeclaration.type;
|
|
4599
4599
|
if (l.data.node?.task)
|
|
4600
4600
|
return l.data.node.task.type;
|
|
4601
|
-
}),
|
|
4601
|
+
}), g = W(() => {
|
|
4602
4602
|
if (l.data.node.type?.endsWith("SubflowGraphTask")) {
|
|
4603
4603
|
const v = l.data.node.task.subflowId ?? l.data.node.task;
|
|
4604
4604
|
return v.namespace + " " + v.flowId;
|
|
4605
4605
|
}
|
|
4606
4606
|
return s.value;
|
|
4607
4607
|
});
|
|
4608
|
-
return (v,
|
|
4609
|
-
class: oe(["node-wrapper rounded-3", { ...
|
|
4608
|
+
return (v, D) => (u(), d("div", {
|
|
4609
|
+
class: oe(["node-wrapper rounded-3", { ...h.value, "running-border-animation": v.state === "RUNNING" }]),
|
|
4610
4610
|
style: ct({ borderColor: v.state ? `var(--ks-border-${v.state.toLowerCase()})` : void 0 }),
|
|
4611
4611
|
onMouseover: r,
|
|
4612
4612
|
onMouseleave: i
|
|
4613
4613
|
}, [
|
|
4614
|
-
|
|
4614
|
+
y("div", Gd, [
|
|
4615
4615
|
(u(), X(mt(v.iconComponent || tr), {
|
|
4616
|
-
cls:
|
|
4616
|
+
cls: E.value,
|
|
4617
4617
|
class: oe([c.value, "rounded bg-white"]),
|
|
4618
4618
|
theme: "light",
|
|
4619
4619
|
icons: v.icons
|
|
4620
4620
|
}, null, 8, ["cls", "class", "icons"]))
|
|
4621
4621
|
]),
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
V(re, { title:
|
|
4622
|
+
y("div", Wd, [
|
|
4623
|
+
y("div", jd, [
|
|
4624
|
+
y("div", Kd, [
|
|
4625
|
+
V(re, { title: g.value }, {
|
|
4626
4626
|
default: G(() => [
|
|
4627
4627
|
Ze(M(v.title ?? s.value), 1)
|
|
4628
4628
|
]),
|
|
@@ -4636,7 +4636,7 @@ const al = /* @__PURE__ */ H(xd, [["render", zd]]), Gd = { class: "icon rounded"
|
|
|
4636
4636
|
}, {
|
|
4637
4637
|
default: G(() => [
|
|
4638
4638
|
V(Vd, {
|
|
4639
|
-
onClick:
|
|
4639
|
+
onClick: D[0] || (D[0] = (w) => v.$emit(P(U).SHOW_DESCRIPTION, { id: s.value, description: a.value })),
|
|
4640
4640
|
class: "description-button ms-2"
|
|
4641
4641
|
})
|
|
4642
4642
|
]),
|
|
@@ -4646,12 +4646,12 @@ const al = /* @__PURE__ */ H(xd, [["render", zd]]), Gd = { class: "icon rounded"
|
|
|
4646
4646
|
]),
|
|
4647
4647
|
ae(v.$slots, "content", {}, void 0, !0)
|
|
4648
4648
|
]),
|
|
4649
|
-
|
|
4649
|
+
y("div", qd, [
|
|
4650
4650
|
ae(v.$slots, "badge-button-before", {}, void 0, !0),
|
|
4651
4651
|
v.data.link ? (u(), d("span", {
|
|
4652
4652
|
key: 0,
|
|
4653
4653
|
class: oe(["circle-button", [`bg-${v.data.color}`]]),
|
|
4654
|
-
onClick:
|
|
4654
|
+
onClick: D[1] || (D[1] = (w) => v.$emit(P(U).OPEN_LINK, { link: v.data.link }))
|
|
4655
4655
|
}, [
|
|
4656
4656
|
V(re, {
|
|
4657
4657
|
title: v.$t("open")
|
|
@@ -4668,7 +4668,7 @@ const al = /* @__PURE__ */ H(xd, [["render", zd]]), Gd = { class: "icon rounded"
|
|
|
4668
4668
|
o.value ? (u(), d("span", {
|
|
4669
4669
|
key: 1,
|
|
4670
4670
|
class: oe(["circle-button", [`bg-${v.data.color}`]]),
|
|
4671
|
-
onClick:
|
|
4671
|
+
onClick: D[2] || (D[2] = (w) => v.$emit(P(U).EXPAND))
|
|
4672
4672
|
}, [
|
|
4673
4673
|
V(re, {
|
|
4674
4674
|
title: v.$t("expand")
|
|
@@ -4718,7 +4718,7 @@ function nf(e, t, n, l, r, i) {
|
|
|
4718
4718
|
height: n.size,
|
|
4719
4719
|
viewBox: "0 0 24 24"
|
|
4720
4720
|
}, [
|
|
4721
|
-
|
|
4721
|
+
y("path", ef, [
|
|
4722
4722
|
n.title ? (u(), d("title", tf, M(n.title), 1)) : L("", !0)
|
|
4723
4723
|
])
|
|
4724
4724
|
], 8, Qd))
|
|
@@ -4756,7 +4756,7 @@ function uf(e, t, n, l, r, i) {
|
|
|
4756
4756
|
height: n.size,
|
|
4757
4757
|
viewBox: "0 0 24 24"
|
|
4758
4758
|
}, [
|
|
4759
|
-
|
|
4759
|
+
y("path", af, [
|
|
4760
4760
|
n.title ? (u(), d("title", sf, M(n.title), 1)) : L("", !0)
|
|
4761
4761
|
])
|
|
4762
4762
|
], 8, of))
|
|
@@ -4794,7 +4794,7 @@ function gf(e, t, n, l, r, i) {
|
|
|
4794
4794
|
height: n.size,
|
|
4795
4795
|
viewBox: "0 0 24 24"
|
|
4796
4796
|
}, [
|
|
4797
|
-
|
|
4797
|
+
y("path", mf, [
|
|
4798
4798
|
n.title ? (u(), d("title", pf, M(n.title), 1)) : L("", !0)
|
|
4799
4799
|
])
|
|
4800
4800
|
], 8, ff))
|
|
@@ -4832,7 +4832,7 @@ function bf(e, t, n, l, r, i) {
|
|
|
4832
4832
|
height: n.size,
|
|
4833
4833
|
viewBox: "0 0 24 24"
|
|
4834
4834
|
}, [
|
|
4835
|
-
|
|
4835
|
+
y("path", Ef, [
|
|
4836
4836
|
n.title ? (u(), d("title", Cf, M(n.title), 1)) : L("", !0)
|
|
4837
4837
|
])
|
|
4838
4838
|
], 8, vf))
|
|
@@ -4870,7 +4870,7 @@ function Af(e, t, n, l, r, i) {
|
|
|
4870
4870
|
height: n.size,
|
|
4871
4871
|
viewBox: "0 0 24 24"
|
|
4872
4872
|
}, [
|
|
4873
|
-
|
|
4873
|
+
y("path", Nf, [
|
|
4874
4874
|
n.title ? (u(), d("title", Tf, M(n.title), 1)) : L("", !0)
|
|
4875
4875
|
])
|
|
4876
4876
|
], 8, wf))
|
|
@@ -4908,7 +4908,7 @@ function Mf(e, t, n, l, r, i) {
|
|
|
4908
4908
|
height: n.size,
|
|
4909
4909
|
viewBox: "0 0 24 24"
|
|
4910
4910
|
}, [
|
|
4911
|
-
|
|
4911
|
+
y("path", Rf, [
|
|
4912
4912
|
n.title ? (u(), d("title", Pf, M(n.title), 1)) : L("", !0)
|
|
4913
4913
|
])
|
|
4914
4914
|
], 8, Df))
|
|
@@ -4946,7 +4946,7 @@ function zf(e, t, n, l, r, i) {
|
|
|
4946
4946
|
height: n.size,
|
|
4947
4947
|
viewBox: "0 0 24 24"
|
|
4948
4948
|
}, [
|
|
4949
|
-
|
|
4949
|
+
y("path", Hf, [
|
|
4950
4950
|
n.title ? (u(), d("title", Bf, M(n.title), 1)) : L("", !0)
|
|
4951
4951
|
])
|
|
4952
4952
|
], 8, Ff))
|
|
@@ -4984,7 +4984,7 @@ function qf(e, t, n, l, r, i) {
|
|
|
4984
4984
|
height: n.size,
|
|
4985
4985
|
viewBox: "0 0 24 24"
|
|
4986
4986
|
}, [
|
|
4987
|
-
|
|
4987
|
+
y("path", Kf, [
|
|
4988
4988
|
n.title ? (u(), d("title", Yf, M(n.title), 1)) : L("", !0)
|
|
4989
4989
|
])
|
|
4990
4990
|
], 8, jf))
|
|
@@ -5022,7 +5022,7 @@ function tm(e, t, n, l, r, i) {
|
|
|
5022
5022
|
height: n.size,
|
|
5023
5023
|
viewBox: "0 0 24 24"
|
|
5024
5024
|
}, [
|
|
5025
|
-
|
|
5025
|
+
y("path", Qf, [
|
|
5026
5026
|
n.title ? (u(), d("title", em, M(n.title), 1)) : L("", !0)
|
|
5027
5027
|
])
|
|
5028
5028
|
], 8, Jf))
|
|
@@ -5048,14 +5048,14 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5048
5048
|
const k = n.data.executionId;
|
|
5049
5049
|
if (k)
|
|
5050
5050
|
return k === r?.value?.id ? r?.value : Object.values(i?.value || {}).find((p) => p.id === k);
|
|
5051
|
-
}), c = W(() => s.value && s.value.taskRunList ? s.value.taskRunList : []),
|
|
5051
|
+
}), c = W(() => s.value && s.value.taskRunList ? s.value.taskRunList : []), h = W(() => c.value.filter(
|
|
5052
5052
|
(k) => k.taskId === Re.afterLastDot(n.data.node.uid)
|
|
5053
|
-
)),
|
|
5054
|
-
if (!
|
|
5053
|
+
)), E = W(() => {
|
|
5054
|
+
if (!h.value?.length)
|
|
5055
5055
|
return null;
|
|
5056
|
-
if (
|
|
5057
|
-
return
|
|
5058
|
-
const k =
|
|
5056
|
+
if (h.value.length === 1)
|
|
5057
|
+
return h.value[0].state.current;
|
|
5058
|
+
const k = h.value.map((T) => T.state.current), p = [
|
|
5059
5059
|
_e.FAILED,
|
|
5060
5060
|
_e.KILLED,
|
|
5061
5061
|
_e.WARNING,
|
|
@@ -5067,12 +5067,12 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5067
5067
|
_e.CREATED
|
|
5068
5068
|
];
|
|
5069
5069
|
return k.map((T) => [p.indexOf(T[1]), T]).sort().map((T) => T[1])[0];
|
|
5070
|
-
}),
|
|
5071
|
-
"execution-no-taskrun": !!(s.value &&
|
|
5070
|
+
}), g = W(() => ({
|
|
5071
|
+
"execution-no-taskrun": !!(s.value && h.value && h.value.length === 0)
|
|
5072
5072
|
})), v = W(() => ({
|
|
5073
5073
|
id: n.id,
|
|
5074
5074
|
type: String(n.data.node.task.type)
|
|
5075
|
-
})),
|
|
5075
|
+
})), D = W(() => {
|
|
5076
5076
|
if (n.data.node.type?.endsWith("SubflowGraphTask") && n.enableSubflowInteraction) {
|
|
5077
5077
|
const k = n.data.node.task.subflowId ?? n.data.node.task;
|
|
5078
5078
|
return {
|
|
@@ -5087,35 +5087,35 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5087
5087
|
};
|
|
5088
5088
|
}
|
|
5089
5089
|
return n.data;
|
|
5090
|
-
}),
|
|
5091
|
-
if (
|
|
5090
|
+
}), w = W(() => {
|
|
5091
|
+
if (E.value === _e.RUNNING)
|
|
5092
5092
|
return "task is running";
|
|
5093
|
-
if (
|
|
5093
|
+
if (E.value === _e.SUCCESS)
|
|
5094
5094
|
return "task was successful";
|
|
5095
|
-
if (
|
|
5095
|
+
if (E.value === _e.WARNING)
|
|
5096
5096
|
return "task sent a warning";
|
|
5097
|
-
if (
|
|
5097
|
+
if (E.value === _e.SKIPPED)
|
|
5098
5098
|
return "task was skipped";
|
|
5099
|
-
if (
|
|
5099
|
+
if (E.value === _e.FAILED)
|
|
5100
5100
|
return "task failed";
|
|
5101
5101
|
});
|
|
5102
5102
|
return (k, p) => (u(), d(Ee, null, [
|
|
5103
|
-
V(
|
|
5103
|
+
V(P(Me), {
|
|
5104
5104
|
type: "source",
|
|
5105
5105
|
position: k.sourcePosition
|
|
5106
5106
|
}, null, 8, ["position"]),
|
|
5107
5107
|
V(or, {
|
|
5108
5108
|
id: k.id,
|
|
5109
|
-
data:
|
|
5110
|
-
state:
|
|
5111
|
-
class: oe(
|
|
5109
|
+
data: D.value,
|
|
5110
|
+
state: E.value,
|
|
5111
|
+
class: oe(g.value),
|
|
5112
5112
|
icons: k.icons,
|
|
5113
5113
|
"icon-component": k.iconComponent,
|
|
5114
|
-
onShowDescription: p[6] || (p[6] = (C) => l(
|
|
5115
|
-
onExpand: p[7] || (p[7] = (C) => l(
|
|
5116
|
-
onOpenLink: p[8] || (p[8] = (C) => l(
|
|
5117
|
-
onMouseover: p[9] || (p[9] = (C) => l(
|
|
5118
|
-
onMouseleave: p[10] || (p[10] = (C) => l(
|
|
5114
|
+
onShowDescription: p[6] || (p[6] = (C) => l(P(U).SHOW_DESCRIPTION, C)),
|
|
5115
|
+
onExpand: p[7] || (p[7] = (C) => l(P(U).EXPAND, v.value)),
|
|
5116
|
+
onOpenLink: p[8] || (p[8] = (C) => l(P(U).OPEN_LINK, C)),
|
|
5117
|
+
onMouseover: p[9] || (p[9] = (C) => l(P(U).MOUSE_OVER, C)),
|
|
5118
|
+
onMouseleave: p[10] || (p[10] = (C) => l(P(U).MOUSE_LEAVE))
|
|
5119
5119
|
}, {
|
|
5120
5120
|
content: G(() => [
|
|
5121
5121
|
s.value ? (u(), X(Id, {
|
|
@@ -5124,14 +5124,14 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5124
5124
|
task: k.data.node.task,
|
|
5125
5125
|
color: o.value,
|
|
5126
5126
|
uid: k.data.node.uid,
|
|
5127
|
-
state:
|
|
5127
|
+
state: E.value
|
|
5128
5128
|
}, null, 8, ["execution", "task", "color", "uid", "state"])) : L("", !0),
|
|
5129
5129
|
k.data.node.task ? (u(), d(Ee, { key: 1 }, [
|
|
5130
5130
|
k.playgroundEnabled && k.playgroundReadyToStart ? (u(), d("button", {
|
|
5131
5131
|
key: 0,
|
|
5132
5132
|
type: "button",
|
|
5133
5133
|
class: "playground-button",
|
|
5134
|
-
onClick: p[0] || (p[0] = (C) => l(
|
|
5134
|
+
onClick: p[0] || (p[0] = (C) => l(P(U).RUN_TASK, { task: k.data.node.task }))
|
|
5135
5135
|
}, [
|
|
5136
5136
|
V(re, {
|
|
5137
5137
|
style: { display: "flex" },
|
|
@@ -5149,30 +5149,30 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5149
5149
|
key: 1,
|
|
5150
5150
|
class: "playground-button",
|
|
5151
5151
|
style: ct({
|
|
5152
|
-
color: `var(--ks-content-${
|
|
5153
|
-
backgroundColor: `var(--ks-background-${
|
|
5152
|
+
color: `var(--ks-content-${E.value?.toLowerCase()})`,
|
|
5153
|
+
backgroundColor: `var(--ks-background-${E.value?.toLowerCase()})`
|
|
5154
5154
|
})
|
|
5155
5155
|
}, [
|
|
5156
5156
|
V(re, {
|
|
5157
5157
|
style: { display: "flex" },
|
|
5158
|
-
title:
|
|
5158
|
+
title: w.value ? k.$t(w.value) : void 0
|
|
5159
5159
|
}, {
|
|
5160
5160
|
default: G(() => [
|
|
5161
|
-
|
|
5161
|
+
E.value === P(_e).RUNNING ? (u(), X(ds, {
|
|
5162
5162
|
key: 0,
|
|
5163
|
-
alt:
|
|
5164
|
-
}, null, 8, ["alt"])) :
|
|
5163
|
+
alt: w.value ? k.$t(w.value) : void 0
|
|
5164
|
+
}, null, 8, ["alt"])) : E.value === P(_e).SUCCESS ? (u(), X(sr, {
|
|
5165
5165
|
key: 1,
|
|
5166
|
-
alt:
|
|
5167
|
-
}, null, 8, ["alt"])) :
|
|
5166
|
+
alt: w.value ? k.$t(w.value) : void 0
|
|
5167
|
+
}, null, 8, ["alt"])) : E.value === P(_e).WARNING ? (u(), X(dl, {
|
|
5168
5168
|
key: 2,
|
|
5169
|
-
alt:
|
|
5170
|
-
}, null, 8, ["alt"])) :
|
|
5169
|
+
alt: w.value ? k.$t(w.value) : void 0
|
|
5170
|
+
}, null, 8, ["alt"])) : E.value === P(_e).SKIPPED ? (u(), X(nm, {
|
|
5171
5171
|
key: 3,
|
|
5172
|
-
alt:
|
|
5173
|
-
}, null, 8, ["alt"])) :
|
|
5172
|
+
alt: w.value ? k.$t(w.value) : void 0
|
|
5173
|
+
}, null, 8, ["alt"])) : E.value === P(_e).FAILED ? (u(), X(Qt, {
|
|
5174
5174
|
key: 4,
|
|
5175
|
-
alt:
|
|
5175
|
+
alt: w.value ? k.$t(w.value) : void 0
|
|
5176
5176
|
}, null, 8, ["alt"])) : L("", !0)
|
|
5177
5177
|
]),
|
|
5178
5178
|
_: 1
|
|
@@ -5184,7 +5184,7 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5184
5184
|
k.data.node.task && k.data.node.task.runIf ? (u(), d("span", {
|
|
5185
5185
|
key: 0,
|
|
5186
5186
|
class: oe(["circle-button", ["bg-warning"]]),
|
|
5187
|
-
onClick: p[1] || (p[1] = (C) => l(
|
|
5187
|
+
onClick: p[1] || (p[1] = (C) => l(P(U).SHOW_CONDITION, { id: a.value, task: k.data.node.task, section: P(ut).TASKS }))
|
|
5188
5188
|
}, [
|
|
5189
5189
|
V(re, {
|
|
5190
5190
|
title: k.$t("show task condition")
|
|
@@ -5201,7 +5201,7 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5201
5201
|
s.value ? (u(), d("span", {
|
|
5202
5202
|
key: 1,
|
|
5203
5203
|
class: oe(["circle-button", [`bg-${o.value}`]]),
|
|
5204
|
-
onClick: p[2] || (p[2] = (C) => l(
|
|
5204
|
+
onClick: p[2] || (p[2] = (C) => l(P(U).SHOW_LOGS, { id: a.value, execution: s.value, taskRuns: h.value }))
|
|
5205
5205
|
}, [
|
|
5206
5206
|
V(re, {
|
|
5207
5207
|
title: k.$t("show task logs")
|
|
@@ -5218,7 +5218,7 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5218
5218
|
!s.value && !k.data.isReadOnly && k.data.isFlowable ? (u(), d("span", {
|
|
5219
5219
|
key: 2,
|
|
5220
5220
|
class: oe(["circle-button", [`bg-${o.value}`]]),
|
|
5221
|
-
onClick: p[3] || (p[3] = (C) => l(
|
|
5221
|
+
onClick: p[3] || (p[3] = (C) => l(P(U).ADD_ERROR, { task: k.data.node.task }))
|
|
5222
5222
|
}, [
|
|
5223
5223
|
V(re, {
|
|
5224
5224
|
title: k.$t("add error handler")
|
|
@@ -5235,7 +5235,7 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5235
5235
|
!s.value && !k.data.isReadOnly ? (u(), d("span", {
|
|
5236
5236
|
key: 3,
|
|
5237
5237
|
class: oe(["circle-button", [`bg-${o.value}`]]),
|
|
5238
|
-
onClick: p[4] || (p[4] = (C) => l(
|
|
5238
|
+
onClick: p[4] || (p[4] = (C) => l(P(U).EDIT, { task: k.data.node.task, section: P(ut).TASKS }))
|
|
5239
5239
|
}, [
|
|
5240
5240
|
V(re, {
|
|
5241
5241
|
title: k.$t("edit")
|
|
@@ -5252,7 +5252,7 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5252
5252
|
!s.value && !k.data.isReadOnly ? (u(), d("span", {
|
|
5253
5253
|
key: 4,
|
|
5254
5254
|
class: oe(["circle-button", [`bg-${o.value}`]]),
|
|
5255
|
-
onClick: p[5] || (p[5] = (C) => l(
|
|
5255
|
+
onClick: p[5] || (p[5] = (C) => l(P(U).DELETE, { id: a.value, section: P(ut).TASKS }))
|
|
5256
5256
|
}, [
|
|
5257
5257
|
V(re, {
|
|
5258
5258
|
title: k.$t("delete")
|
|
@@ -5269,7 +5269,7 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5269
5269
|
]),
|
|
5270
5270
|
_: 1
|
|
5271
5271
|
}, 8, ["id", "data", "state", "class", "icons", "icon-component"]),
|
|
5272
|
-
V(
|
|
5272
|
+
V(P(Me), {
|
|
5273
5273
|
type: "target",
|
|
5274
5274
|
position: k.targetPosition
|
|
5275
5275
|
}, null, 8, ["position"])
|
|
@@ -5348,7 +5348,7 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5348
5348
|
}, om = /* @__PURE__ */ Object.assign(rm, {
|
|
5349
5349
|
setup(e) {
|
|
5350
5350
|
return (t, n) => (u(), d(Ee, null, [
|
|
5351
|
-
V(
|
|
5351
|
+
V(P(Me), {
|
|
5352
5352
|
type: "source",
|
|
5353
5353
|
position: e.sourcePosition
|
|
5354
5354
|
}, null, 8, ["position"]),
|
|
@@ -5358,8 +5358,8 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5358
5358
|
color: t.color,
|
|
5359
5359
|
icons: e.icons,
|
|
5360
5360
|
"icon-component": e.iconComponent,
|
|
5361
|
-
onShowDescription: n[2] || (n[2] = (l) => t.forwardEvent(
|
|
5362
|
-
onExpand: n[3] || (n[3] = (l) => t.forwardEvent(
|
|
5361
|
+
onShowDescription: n[2] || (n[2] = (l) => t.forwardEvent(P(U).SHOW_DESCRIPTION, l)),
|
|
5362
|
+
onExpand: n[3] || (n[3] = (l) => t.forwardEvent(P(U).EXPAND, { id: e.id }))
|
|
5363
5363
|
}, ki({ _: 2 }, [
|
|
5364
5364
|
e.data.isReadOnly ? void 0 : {
|
|
5365
5365
|
name: "badge-button-before",
|
|
@@ -5367,7 +5367,7 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5367
5367
|
t.execution ? L("", !0) : (u(), d("span", {
|
|
5368
5368
|
key: 0,
|
|
5369
5369
|
class: oe(["circle-button", [`bg-${t.color}`]]),
|
|
5370
|
-
onClick: n[0] || (n[0] = (l) => t.$emit(
|
|
5370
|
+
onClick: n[0] || (n[0] = (l) => t.$emit(P(U).EDIT, { task: e.data.node.triggerDeclaration, section: P(ut).TRIGGERS }))
|
|
5371
5371
|
}, [
|
|
5372
5372
|
V(re, {
|
|
5373
5373
|
title: t.$t("edit")
|
|
@@ -5384,7 +5384,7 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5384
5384
|
t.execution ? L("", !0) : (u(), d("span", {
|
|
5385
5385
|
key: 1,
|
|
5386
5386
|
class: oe(["circle-button", [`bg-${t.color}`]]),
|
|
5387
|
-
onClick: n[1] || (n[1] = (l) => t.$emit(
|
|
5387
|
+
onClick: n[1] || (n[1] = (l) => t.$emit(P(U).DELETE, { id: t.triggerId, section: P(ut).TRIGGERS }))
|
|
5388
5388
|
}, [
|
|
5389
5389
|
V(re, {
|
|
5390
5390
|
title: t.$t("delete")
|
|
@@ -5402,7 +5402,7 @@ const nm = /* @__PURE__ */ H(Xf, [["render", tm]]), lm = /* @__PURE__ */ de({
|
|
|
5402
5402
|
key: "0"
|
|
5403
5403
|
}
|
|
5404
5404
|
]), 1032, ["id", "data", "color", "icons", "icon-component"]),
|
|
5405
|
-
V(
|
|
5405
|
+
V(P(Me), {
|
|
5406
5406
|
type: "target",
|
|
5407
5407
|
position: e.targetPosition
|
|
5408
5408
|
}, null, 8, ["position"])
|
|
@@ -5440,7 +5440,7 @@ function fm(e, t, n, l, r, i) {
|
|
|
5440
5440
|
height: n.size,
|
|
5441
5441
|
viewBox: "0 0 24 24"
|
|
5442
5442
|
}, [
|
|
5443
|
-
|
|
5443
|
+
y("path", cm, [
|
|
5444
5444
|
n.title ? (u(), d("title", dm, M(n.title), 1)) : L("", !0)
|
|
5445
5445
|
])
|
|
5446
5446
|
], 8, um))
|
|
@@ -5494,24 +5494,24 @@ const mm = /* @__PURE__ */ H(am, [["render", fm]]), pm = { class: "collapsed-clu
|
|
|
5494
5494
|
__name: "CollapsedClusterNode",
|
|
5495
5495
|
setup(e) {
|
|
5496
5496
|
return (t, n) => (u(), d(Ee, null, [
|
|
5497
|
-
V(
|
|
5497
|
+
V(P(Me), {
|
|
5498
5498
|
type: "source",
|
|
5499
5499
|
position: e.sourcePosition
|
|
5500
5500
|
}, null, 8, ["position"]),
|
|
5501
|
-
|
|
5502
|
-
|
|
5501
|
+
y("div", pm, [
|
|
5502
|
+
y("span", gm, [
|
|
5503
5503
|
e.data.iconComponent ? (u(), X(mt(e.data.iconComponent), {
|
|
5504
5504
|
key: 0,
|
|
5505
5505
|
class: oe(`text-${e.data.color} me-2`)
|
|
5506
5506
|
}, null, 8, ["class"])) : L("", !0),
|
|
5507
|
-
Ze(" " + M(
|
|
5507
|
+
Ze(" " + M(P(Re).afterLastDot(e.id)), 1)
|
|
5508
5508
|
]),
|
|
5509
|
-
|
|
5509
|
+
y("div", hm, [
|
|
5510
5510
|
ae(t.$slots, "badge-button-before", {}, void 0, !0),
|
|
5511
5511
|
t.expandable ? (u(), d("span", {
|
|
5512
5512
|
key: 0,
|
|
5513
5513
|
class: oe(["circle-button", [`bg-${e.data.color}`]]),
|
|
5514
|
-
onClick: n[0] || (n[0] = (l) => t.$emit(
|
|
5514
|
+
onClick: n[0] || (n[0] = (l) => t.$emit(P(U).EXPAND, { id: e.id }))
|
|
5515
5515
|
}, [
|
|
5516
5516
|
V(re, {
|
|
5517
5517
|
title: t.$t("expand")
|
|
@@ -5528,7 +5528,7 @@ const mm = /* @__PURE__ */ H(am, [["render", fm]]), pm = { class: "collapsed-clu
|
|
|
5528
5528
|
ae(t.$slots, "badge-button-after", {}, void 0, !0)
|
|
5529
5529
|
])
|
|
5530
5530
|
]),
|
|
5531
|
-
V(
|
|
5531
|
+
V(P(Me), {
|
|
5532
5532
|
type: "target",
|
|
5533
5533
|
position: e.targetPosition
|
|
5534
5534
|
}, null, 8, ["position"])
|
|
@@ -5546,15 +5546,15 @@ const mm = /* @__PURE__ */ H(am, [["render", fm]]), pm = { class: "collapsed-clu
|
|
|
5546
5546
|
};
|
|
5547
5547
|
function bm(e, t, n, l, r, i) {
|
|
5548
5548
|
return u(), d("svg", Cm, [...t[0] || (t[0] = [
|
|
5549
|
-
|
|
5550
|
-
|
|
5549
|
+
y("g", { "clip-path": "url(#clip0_1111_7266)" }, [
|
|
5550
|
+
y("path", {
|
|
5551
5551
|
d: "M1.97852 2.63349C1.97852 2.26366 2.27832 1.96387 2.64814 1.96387L13.3621 1.96387C13.7319 1.96387 14.0317 2.26366 14.0317 2.63349L14.0317 13.3475C14.0317 13.7173 13.7319 14.0171 13.3621 14.0171L2.64814 14.0171C2.27832 14.0171 1.97852 13.7173 1.97852 13.3475L1.97852 2.63349ZM3.31776 8.6601L3.31776 12.6778L12.6925 12.6778L12.6925 8.6601L10.014 8.6601L10.014 7.32085L12.6925 7.32085L12.6925 3.30311L3.31776 3.30311L3.31776 7.32086L5.99626 7.32085L5.99626 8.6601L3.31776 8.6601ZM5.99626 5.98161L8.00513 3.97274L10.014 5.98161L8.67475 5.98161L8.67475 9.99935L10.014 9.99935L8.00513 12.0082L5.99626 9.99935L7.3355 9.99935L7.3355 5.98161L5.99626 5.98161Z",
|
|
5552
5552
|
fill: "currentColor"
|
|
5553
5553
|
})
|
|
5554
5554
|
], -1),
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5555
|
+
y("defs", null, [
|
|
5556
|
+
y("clipPath", { id: "clip0_1111_7266" }, [
|
|
5557
|
+
y("rect", {
|
|
5558
5558
|
width: "16",
|
|
5559
5559
|
height: "16",
|
|
5560
5560
|
fill: "currentColor",
|
|
@@ -5576,15 +5576,15 @@ const km = /* @__PURE__ */ H(Em, [["render", bm], ["__scopeId", "data-v-084c51e6
|
|
|
5576
5576
|
};
|
|
5577
5577
|
function wm(e, t, n, l, r, i) {
|
|
5578
5578
|
return u(), d("svg", Sm, [...t[0] || (t[0] = [
|
|
5579
|
-
|
|
5580
|
-
|
|
5579
|
+
y("g", { "clip-path": "url(#clip0_796_3996)" }, [
|
|
5580
|
+
y("path", {
|
|
5581
5581
|
d: "M13.367 1.979C13.7368 1.979 14.0366 2.27881 14.0366 2.64863V13.3626C14.0366 13.7324 13.7368 14.0322 13.367 14.0322H2.65302C2.2832 14.0322 1.9834 13.7324 1.9834 13.3626V2.64863C1.9834 2.27881 2.2832 1.979 2.65302 1.979H13.367ZM7.34039 3.31825H3.32265V12.693H7.34039V10.0145H8.67963V12.693H12.6974V3.31825H8.67963V5.99675H7.34039V3.31825ZM10.0189 5.99675L12.0278 8.00562L10.0189 10.0145V8.67524H6.00114V10.0145L3.99227 8.00562L6.00114 5.99675V7.33599H10.0189V5.99675Z",
|
|
5582
5582
|
fill: "currentColor"
|
|
5583
5583
|
})
|
|
5584
5584
|
], -1),
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5585
|
+
y("defs", null, [
|
|
5586
|
+
y("clipPath", { id: "clip0_796_3996" }, [
|
|
5587
|
+
y("rect", {
|
|
5588
5588
|
width: "16",
|
|
5589
5589
|
height: "16",
|
|
5590
5590
|
fill: "currentColor"
|
|
@@ -5625,7 +5625,7 @@ function Dm(e, t, n, l, r, i) {
|
|
|
5625
5625
|
height: n.size,
|
|
5626
5626
|
viewBox: "0 0 24 24"
|
|
5627
5627
|
}, [
|
|
5628
|
-
|
|
5628
|
+
y("path", Om, [
|
|
5629
5629
|
n.title ? (u(), d("title", $m, M(n.title), 1)) : L("", !0)
|
|
5630
5630
|
])
|
|
5631
5631
|
], 8, Im))
|
|
@@ -6026,17 +6026,17 @@ async function v1(e, t) {
|
|
|
6026
6026
|
tt(r.cssRules || []).forEach((i, o) => {
|
|
6027
6027
|
if (i.type === CSSRule.IMPORT_RULE) {
|
|
6028
6028
|
let a = o + 1;
|
|
6029
|
-
const s = i.href, c = fi(s).then((
|
|
6029
|
+
const s = i.href, c = fi(s).then((h) => mi(h, t)).then((h) => pi(h).forEach((E) => {
|
|
6030
6030
|
try {
|
|
6031
|
-
r.insertRule(
|
|
6032
|
-
} catch (
|
|
6031
|
+
r.insertRule(E, E.startsWith("@import") ? a += 1 : r.cssRules.length);
|
|
6032
|
+
} catch (g) {
|
|
6033
6033
|
console.error("Error inserting rule from remote css", {
|
|
6034
|
-
rule:
|
|
6035
|
-
error:
|
|
6034
|
+
rule: E,
|
|
6035
|
+
error: g
|
|
6036
6036
|
});
|
|
6037
6037
|
}
|
|
6038
|
-
})).catch((
|
|
6039
|
-
console.error("Error loading remote css",
|
|
6038
|
+
})).catch((h) => {
|
|
6039
|
+
console.error("Error loading remote css", h.toString());
|
|
6040
6040
|
});
|
|
6041
6041
|
l.push(c);
|
|
6042
6042
|
}
|
|
@@ -6103,8 +6103,8 @@ async function S1(e, t = {}) {
|
|
|
6103
6103
|
return await L1(r, t), await hr(r, t), y1(r, t), await Bm(r, n, l);
|
|
6104
6104
|
}
|
|
6105
6105
|
async function yr(e, t = {}) {
|
|
6106
|
-
const { width: n, height: l } = cr(e, t), r = await S1(e, t), i = await on(r), o = document.createElement("canvas"), a = o.getContext("2d"), s = t.pixelRatio || Um(), c = t.canvasWidth || n,
|
|
6107
|
-
return o.width = c * s, o.height =
|
|
6106
|
+
const { width: n, height: l } = cr(e, t), r = await S1(e, t), i = await on(r), o = document.createElement("canvas"), a = o.getContext("2d"), s = t.pixelRatio || Um(), c = t.canvasWidth || n, h = t.canvasHeight || l;
|
|
6107
|
+
return o.width = c * s, o.height = h * s, t.skipAutoScale || Fm(o), o.style.width = `${c}`, o.style.height = `${h}`, t.backgroundColor && (a.fillStyle = t.backgroundColor, a.fillRect(0, 0, o.width, o.height)), a.drawImage(i, 0, 0, o.width, o.height), o;
|
|
6108
6108
|
}
|
|
6109
6109
|
async function w1(e, t = {}) {
|
|
6110
6110
|
return (await yr(e, t)).toDataURL();
|
|
@@ -6116,7 +6116,7 @@ function T1() {
|
|
|
6116
6116
|
const e = ie(""), t = ie("png"), n = ie();
|
|
6117
6117
|
async function l(a, s = {}) {
|
|
6118
6118
|
let c;
|
|
6119
|
-
const
|
|
6119
|
+
const h = s.fileName ?? `vue-flow-screenshot-${Date.now()}`;
|
|
6120
6120
|
switch (s.type) {
|
|
6121
6121
|
case "jpeg":
|
|
6122
6122
|
c = await r(a, s);
|
|
@@ -6128,7 +6128,7 @@ function T1() {
|
|
|
6128
6128
|
c = await i(a, s);
|
|
6129
6129
|
break;
|
|
6130
6130
|
}
|
|
6131
|
-
return s.shouldDownload &&
|
|
6131
|
+
return s.shouldDownload && h !== "" && o(h), c;
|
|
6132
6132
|
}
|
|
6133
6133
|
function r(a, s = { quality: 0.95 }) {
|
|
6134
6134
|
return n.value = null, N1(a, s).then((c) => (e.value = c, t.value = "jpeg", c)).catch((c) => {
|
|
@@ -6245,7 +6245,7 @@ const A1 = {
|
|
|
6245
6245
|
U.SHOW_CONDITION
|
|
6246
6246
|
],
|
|
6247
6247
|
setup(e, { emit: t }) {
|
|
6248
|
-
const n = e, l = ie(!1), r = ie(), { getNodes: i, onNodeDrag: o, onNodeDragStart: a, onNodeDragStop: s, fitView: c, setElements:
|
|
6248
|
+
const n = e, l = ie(!1), r = ie(), { getNodes: i, onNodeDrag: o, onNodeDragStart: a, onNodeDragStop: s, fitView: c, setElements: h, vueFlowRef: E } = Si(n.id), g = ie({}), v = ie([]), D = ie(/* @__PURE__ */ new Set()), w = ie([]), { capture: k } = T1();
|
|
6249
6249
|
Sl(sl, W(() => n.execution)), Sl(ar, W(() => n.subflowsExecutions));
|
|
6250
6250
|
const p = t;
|
|
6251
6251
|
Mt(() => {
|
|
@@ -6258,9 +6258,9 @@ const A1 = {
|
|
|
6258
6258
|
const C = () => {
|
|
6259
6259
|
Wr(n.id), dn(() => {
|
|
6260
6260
|
p("loading", !0);
|
|
6261
|
-
const B =
|
|
6262
|
-
|
|
6263
|
-
const
|
|
6261
|
+
const B = D.value;
|
|
6262
|
+
D.value = /* @__PURE__ */ new Set(), v.value = [], g.value = {}, B.forEach((J) => Y(Cl + J, !1, !1));
|
|
6263
|
+
const R = jr(
|
|
6264
6264
|
n.id,
|
|
6265
6265
|
n.flowId,
|
|
6266
6266
|
n.namespace,
|
|
@@ -6268,20 +6268,20 @@ const A1 = {
|
|
|
6268
6268
|
n.source,
|
|
6269
6269
|
v.value,
|
|
6270
6270
|
n.isHorizontal,
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6271
|
+
g.value,
|
|
6272
|
+
D.value,
|
|
6273
|
+
w.value,
|
|
6274
6274
|
n.isReadOnly,
|
|
6275
6275
|
n.isAllowedEdit,
|
|
6276
6276
|
n.enableSubflowInteraction
|
|
6277
6277
|
);
|
|
6278
|
-
|
|
6278
|
+
R && (h(R), c(), p("loading", !1));
|
|
6279
6279
|
});
|
|
6280
6280
|
}, T = (B) => {
|
|
6281
|
-
l.value || Kr(n.id, B.uid).forEach((
|
|
6282
|
-
|
|
6281
|
+
l.value || Kr(n.id, B.uid).forEach((R) => {
|
|
6282
|
+
R?.type === "task" && (R.style = { ...R.style, outline: "0.5px solid " + Ve("--bs-gray-900") }, R.class = "rounded-3");
|
|
6283
6283
|
});
|
|
6284
|
-
},
|
|
6284
|
+
}, _ = () => {
|
|
6285
6285
|
$();
|
|
6286
6286
|
}, $ = () => {
|
|
6287
6287
|
i.value.filter((B) => B.type === "task" || B.type === "trigger").forEach((B) => {
|
|
@@ -6292,40 +6292,40 @@ const A1 = {
|
|
|
6292
6292
|
l.value = !0, $(), B.node.style = { ...B.node.style, zIndex: 1976 }, r.value = B.node.position;
|
|
6293
6293
|
}), s((B) => {
|
|
6294
6294
|
if (l.value = !1, B.intersections && S(B.intersections, B.node) === null) {
|
|
6295
|
-
const
|
|
6295
|
+
const R = B.node, J = B.intersections.find((z) => z.type === "task");
|
|
6296
6296
|
if (J)
|
|
6297
6297
|
try {
|
|
6298
6298
|
n.source && p("swapped-task", {
|
|
6299
6299
|
newSource: vo({
|
|
6300
6300
|
source: n.source,
|
|
6301
6301
|
section: "tasks",
|
|
6302
|
-
key1: Re.afterLastDot(
|
|
6302
|
+
key1: Re.afterLastDot(R.id) ?? "",
|
|
6303
6303
|
key2: Re.afterLastDot(J.id) ?? ""
|
|
6304
6304
|
}),
|
|
6305
|
-
swappedTasks: [
|
|
6305
|
+
swappedTasks: [R.id, J.id]
|
|
6306
6306
|
});
|
|
6307
6307
|
} catch (z) {
|
|
6308
6308
|
p("message", {
|
|
6309
6309
|
variant: "error",
|
|
6310
6310
|
title: "cannot swap tasks",
|
|
6311
6311
|
message: `${z.message}, ${z.messageOptions}`
|
|
6312
|
-
}),
|
|
6312
|
+
}), R.position = r.value;
|
|
6313
6313
|
}
|
|
6314
6314
|
else
|
|
6315
|
-
|
|
6315
|
+
R.position = r.value;
|
|
6316
6316
|
} else
|
|
6317
6317
|
B.node.position = r.value;
|
|
6318
6318
|
$(), B.node.style = { ...B.node.style, zIndex: 5 }, r.value = null;
|
|
6319
6319
|
});
|
|
6320
6320
|
const A = W(() => n.flowGraph?.clusters ? n.flowGraph.clusters.filter((B) => B.cluster.type.endsWith("SubflowGraphCluster")).map((B) => B.cluster.taskNode.uid + ".") : []);
|
|
6321
6321
|
o((B) => {
|
|
6322
|
-
$(), i.value.filter((
|
|
6323
|
-
|
|
6324
|
-
}), B.intersections && !S(B.intersections, B.node) && B.intersections.filter((
|
|
6325
|
-
|
|
6322
|
+
$(), i.value.filter((R) => R.id !== B.node.id).forEach((R) => {
|
|
6323
|
+
R.type === "trigger" || R.type === "task" && (R.id.startsWith(B.node.id + ".") || B.node.id.startsWith(R.id + ".")) || A?.value?.some((J) => R.id.startsWith(J)) ? R.style = { ...R.style, opacity: "0.5" } : R.style = { ...R.style, opacity: "1" };
|
|
6324
|
+
}), B.intersections && !S(B.intersections, B.node) && B.intersections.filter((R) => R.type === "task").length === 1 && (B.intersections.forEach((R) => {
|
|
6325
|
+
R.type === "task" && (R.style = { ...R.style, outline: "0.5px solid " + Ve("--bs-primary") }, R.class = "rounded-3");
|
|
6326
6326
|
}), B.node.style = { ...B.node.style, outline: "0.5px solid " + Ve("--bs-primary") }, B.node.class = "rounded-3");
|
|
6327
6327
|
});
|
|
6328
|
-
const S = (B,
|
|
6328
|
+
const S = (B, R) => {
|
|
6329
6329
|
const J = B.filter((z) => z.type === "task").map((z) => Re.afterLastDot(z.id));
|
|
6330
6330
|
if (J.length > 1)
|
|
6331
6331
|
return "toomuchtaskerror";
|
|
@@ -6334,7 +6334,7 @@ const A1 = {
|
|
|
6334
6334
|
source: n.source,
|
|
6335
6335
|
sections: ["tasks", "triggers"],
|
|
6336
6336
|
key1: Re.afterLastDot(J[0]) ?? "",
|
|
6337
|
-
key2: Re.afterLastDot(
|
|
6337
|
+
key2: Re.afterLastDot(R.id) ?? "",
|
|
6338
6338
|
keyName: "id"
|
|
6339
6339
|
}))
|
|
6340
6340
|
return "parentchildrenerror";
|
|
@@ -6342,17 +6342,17 @@ const A1 = {
|
|
|
6342
6342
|
return "parentchildrenerror";
|
|
6343
6343
|
}
|
|
6344
6344
|
return B.filter((z) => z.type === "trigger").length > 0 ? "triggererror" : null;
|
|
6345
|
-
}, Y = (B,
|
|
6345
|
+
}, Y = (B, R, J = !1) => {
|
|
6346
6346
|
const z = n.flowGraph.clusters.find((Se) => Se.cluster.uid.endsWith(B)), je = B.replace(Cl, "");
|
|
6347
|
-
|
|
6348
|
-
...
|
|
6347
|
+
D.value.add(je), v.value = v.value.concat(z.nodes.filter((Se) => Se !== je || J)), v.value = v.value.concat([z.cluster.uid]), g.value = {
|
|
6348
|
+
...g.value,
|
|
6349
6349
|
[z.cluster.uid]: je,
|
|
6350
6350
|
[z.start]: je,
|
|
6351
6351
|
[z.end]: je
|
|
6352
6352
|
};
|
|
6353
6353
|
for (let Se of z.nodes)
|
|
6354
6354
|
n.flowGraph.clusters.map((it) => it.cluster.uid).includes(Se) && Y(Se, !1, !0);
|
|
6355
|
-
|
|
6355
|
+
R && C();
|
|
6356
6356
|
}, Z = (B) => {
|
|
6357
6357
|
if ([
|
|
6358
6358
|
"io.kestra.core.tasks.flows.Flow",
|
|
@@ -6364,18 +6364,18 @@ const A1 = {
|
|
|
6364
6364
|
p("expand-subflow", [...n.expandedSubflows, B.id]);
|
|
6365
6365
|
return;
|
|
6366
6366
|
}
|
|
6367
|
-
|
|
6367
|
+
g.value = {}, v.value = [], w.value = [], D.value.delete(B.id), D.value.forEach((J) => Y(J, !1, !1)), C();
|
|
6368
6368
|
}, pe = document.getElementsByTagName("html")[0].className.indexOf("dark") >= 0, Te = ie(!0), ue = ie(!1), et = () => ue.value = !ue.value;
|
|
6369
6369
|
function gt(B) {
|
|
6370
|
-
if (!
|
|
6370
|
+
if (!E.value) {
|
|
6371
6371
|
console.warn("Flow not found");
|
|
6372
6372
|
return;
|
|
6373
6373
|
}
|
|
6374
|
-
Te.value = !1, k(
|
|
6374
|
+
Te.value = !1, k(E.value, { type: B, shouldDownload: !0 }).then(() => Te.value = !0).finally(() => ue.value = !1);
|
|
6375
6375
|
}
|
|
6376
|
-
return (B,
|
|
6376
|
+
return (B, R) => (u(), X(P(Io), {
|
|
6377
6377
|
id: e.id,
|
|
6378
|
-
"default-marker-color":
|
|
6378
|
+
"default-marker-color": P(Ve)("--bs-cyan"),
|
|
6379
6379
|
"fit-view-on-init": "",
|
|
6380
6380
|
"nodes-draggable": !1,
|
|
6381
6381
|
"nodes-connectable": !1,
|
|
@@ -6384,7 +6384,7 @@ const A1 = {
|
|
|
6384
6384
|
}, {
|
|
6385
6385
|
"node-cluster": G((J) => [
|
|
6386
6386
|
V(ed, K(J, {
|
|
6387
|
-
onCollapse:
|
|
6387
|
+
onCollapse: R[0] || (R[0] = (z) => Y(z, !0))
|
|
6388
6388
|
}), null, 16)
|
|
6389
6389
|
]),
|
|
6390
6390
|
"node-dot": G((J) => [
|
|
@@ -6396,17 +6396,17 @@ const A1 = {
|
|
|
6396
6396
|
"icon-component": e.iconComponent,
|
|
6397
6397
|
"playground-enabled": e.playgroundEnabled,
|
|
6398
6398
|
"playground-ready-to-start": e.playgroundReadyToStart,
|
|
6399
|
-
onEdit:
|
|
6400
|
-
onDelete:
|
|
6401
|
-
onRunTask:
|
|
6402
|
-
onExpand:
|
|
6403
|
-
onOpenLink:
|
|
6404
|
-
onShowLogs:
|
|
6405
|
-
onShowDescription:
|
|
6406
|
-
onShowCondition:
|
|
6407
|
-
onMouseover:
|
|
6408
|
-
onMouseleave:
|
|
6409
|
-
onAddError:
|
|
6399
|
+
onEdit: R[1] || (R[1] = (z) => p(P(U).EDIT, z)),
|
|
6400
|
+
onDelete: R[2] || (R[2] = (z) => p(P(U).DELETE, z)),
|
|
6401
|
+
onRunTask: R[3] || (R[3] = (z) => p(P(U).RUN_TASK, z)),
|
|
6402
|
+
onExpand: R[4] || (R[4] = (z) => Z(z)),
|
|
6403
|
+
onOpenLink: R[5] || (R[5] = (z) => p(P(U).OPEN_LINK, z)),
|
|
6404
|
+
onShowLogs: R[6] || (R[6] = (z) => p(P(U).SHOW_LOGS, z)),
|
|
6405
|
+
onShowDescription: R[7] || (R[7] = (z) => p(P(U).SHOW_DESCRIPTION, z)),
|
|
6406
|
+
onShowCondition: R[8] || (R[8] = (z) => p(P(U).SHOW_CONDITION, z)),
|
|
6407
|
+
onMouseover: R[9] || (R[9] = (z) => T(z)),
|
|
6408
|
+
onMouseleave: R[10] || (R[10] = (z) => _()),
|
|
6409
|
+
onAddError: R[11] || (R[11] = (z) => p("on-add-flowable-error", z)),
|
|
6410
6410
|
"enable-subflow-interaction": e.enableSubflowInteraction
|
|
6411
6411
|
}), null, 16, ["icons", "icon-component", "playground-enabled", "playground-ready-to-start", "enable-subflow-interaction"])
|
|
6412
6412
|
]),
|
|
@@ -6416,55 +6416,55 @@ const A1 = {
|
|
|
6416
6416
|
"icon-component": e.iconComponent,
|
|
6417
6417
|
"is-read-only": e.isReadOnly,
|
|
6418
6418
|
"is-allowed-edit": e.isAllowedEdit,
|
|
6419
|
-
onDelete:
|
|
6420
|
-
onEdit:
|
|
6421
|
-
onShowDescription:
|
|
6419
|
+
onDelete: R[12] || (R[12] = (z) => p(P(U).DELETE, z)),
|
|
6420
|
+
onEdit: R[13] || (R[13] = (z) => p(P(U).EDIT, z)),
|
|
6421
|
+
onShowDescription: R[14] || (R[14] = (z) => p(P(U).SHOW_DESCRIPTION, z))
|
|
6422
6422
|
}), null, 16, ["icons", "icon-component", "is-read-only", "is-allowed-edit"])
|
|
6423
6423
|
]),
|
|
6424
6424
|
"node-collapsedcluster": G((J) => [
|
|
6425
6425
|
V(vm, K(J, {
|
|
6426
|
-
onExpand:
|
|
6426
|
+
onExpand: R[15] || (R[15] = (z) => Z(z))
|
|
6427
6427
|
}), null, 16)
|
|
6428
6428
|
]),
|
|
6429
6429
|
"edge-edge": G((J) => [
|
|
6430
6430
|
V(bd, K(J, {
|
|
6431
6431
|
"yaml-source": e.source,
|
|
6432
|
-
onAddTask:
|
|
6432
|
+
onAddTask: R[16] || (R[16] = (z) => p(P(U).ADD_TASK, z)),
|
|
6433
6433
|
"is-read-only": e.isReadOnly,
|
|
6434
6434
|
"is-allowed-edit": e.isAllowedEdit
|
|
6435
6435
|
}), null, 16, ["yaml-source", "is-read-only", "is-allowed-edit"])
|
|
6436
6436
|
]),
|
|
6437
6437
|
default: G(() => [
|
|
6438
|
-
V(
|
|
6439
|
-
"pattern-color": pe ?
|
|
6438
|
+
V(P(zc), {
|
|
6439
|
+
"pattern-color": pe ? P(Ve)("--bs-grey-500") : P(Ve)("--bs-grey-300")
|
|
6440
6440
|
}, null, 8, ["pattern-color"]),
|
|
6441
|
-
Te.value ? (u(), X(
|
|
6441
|
+
Te.value ? (u(), X(P(Oo), {
|
|
6442
6442
|
key: 0,
|
|
6443
6443
|
"show-interactive": !1
|
|
6444
6444
|
}, {
|
|
6445
6445
|
default: G(() => [
|
|
6446
|
-
e.toggleOrientationButton ? (u(), X(
|
|
6446
|
+
e.toggleOrientationButton ? (u(), X(P(Nl), {
|
|
6447
6447
|
key: 0,
|
|
6448
|
-
onClick:
|
|
6448
|
+
onClick: R[17] || (R[17] = (J) => p("toggle-orientation", J))
|
|
6449
6449
|
}, {
|
|
6450
6450
|
default: G(() => [
|
|
6451
6451
|
(u(), X(mt(e.isHorizontal ? Nm : km)))
|
|
6452
6452
|
]),
|
|
6453
6453
|
_: 1
|
|
6454
6454
|
})) : L("", !0),
|
|
6455
|
-
V(
|
|
6455
|
+
V(P(Nl), { onClick: et }, {
|
|
6456
6456
|
default: G(() => [
|
|
6457
6457
|
V(Rm)
|
|
6458
6458
|
]),
|
|
6459
6459
|
_: 1
|
|
6460
6460
|
}),
|
|
6461
6461
|
ue.value ? (u(), d("ul", A1, [
|
|
6462
|
-
|
|
6463
|
-
onClick:
|
|
6462
|
+
y("li", {
|
|
6463
|
+
onClick: R[18] || (R[18] = (J) => gt("jpeg")),
|
|
6464
6464
|
class: "item"
|
|
6465
6465
|
}, " Export as .JPEG "),
|
|
6466
|
-
|
|
6467
|
-
onClick:
|
|
6466
|
+
y("li", {
|
|
6467
|
+
onClick: R[19] || (R[19] = (J) => gt("png")),
|
|
6468
6468
|
class: "item"
|
|
6469
6469
|
}, " Export as .PNG ")
|
|
6470
6470
|
])) : L("", !0)
|
|
@@ -6507,7 +6507,7 @@ function M1(e, t, n, l, r, i) {
|
|
|
6507
6507
|
height: n.size,
|
|
6508
6508
|
viewBox: "0 0 24 24"
|
|
6509
6509
|
}, [
|
|
6510
|
-
|
|
6510
|
+
y("path", R1, [
|
|
6511
6511
|
n.title ? (u(), d("title", P1, M(n.title), 1)) : L("", !0)
|
|
6512
6512
|
])
|
|
6513
6513
|
], 8, D1))
|
|
@@ -6542,24 +6542,24 @@ const V1 = /* @__PURE__ */ H(O1, [["render", M1]]), x1 = {
|
|
|
6542
6542
|
});
|
|
6543
6543
|
});
|
|
6544
6544
|
}
|
|
6545
|
-
function
|
|
6545
|
+
function h() {
|
|
6546
6546
|
clearTimeout(r.value), navigator.clipboard.writeText(n.code.trimEnd()), i.value = t.Check.value, r.value = setTimeout(() => {
|
|
6547
6547
|
i.value = t.ContentCopy.value, r.value = void 0;
|
|
6548
6548
|
}, 2e3);
|
|
6549
6549
|
}
|
|
6550
|
-
return (
|
|
6550
|
+
return (E, g) => (u(), d("div", {
|
|
6551
6551
|
class: "code-block",
|
|
6552
6552
|
onMouseover: c,
|
|
6553
|
-
onMouseleave:
|
|
6553
|
+
onMouseleave: g[0] || (g[0] = (v) => l.value = !1)
|
|
6554
6554
|
}, [
|
|
6555
|
-
|
|
6555
|
+
E.language && !l.value ? (u(), d("div", x1, M(E.language), 1)) : L("", !0),
|
|
6556
6556
|
l.value ? (u(), d(Ee, { key: 1 }, [
|
|
6557
|
-
|
|
6557
|
+
y("button", {
|
|
6558
6558
|
ref_key: "copyButton",
|
|
6559
6559
|
ref: o,
|
|
6560
6560
|
class: "copy"
|
|
6561
6561
|
}, [
|
|
6562
|
-
(u(), X(mt(i.value), { onClick:
|
|
6562
|
+
(u(), X(mt(i.value), { onClick: h }))
|
|
6563
6563
|
], 512),
|
|
6564
6564
|
r.value ? (u(), d("div", {
|
|
6565
6565
|
key: 0,
|
|
@@ -6567,15 +6567,15 @@ const V1 = /* @__PURE__ */ H(O1, [["render", M1]]), x1 = {
|
|
|
6567
6567
|
ref: a,
|
|
6568
6568
|
id: "copied-tooltip",
|
|
6569
6569
|
role: "tooltip"
|
|
6570
|
-
}, [...
|
|
6570
|
+
}, [...g[1] || (g[1] = [
|
|
6571
6571
|
Ze(" Copied! ", -1),
|
|
6572
|
-
|
|
6572
|
+
y("div", {
|
|
6573
6573
|
id: "arrow",
|
|
6574
6574
|
"data-popper-arrow": ""
|
|
6575
6575
|
}, null, -1)
|
|
6576
6576
|
])], 512)) : L("", !0)
|
|
6577
6577
|
], 64)) : L("", !0),
|
|
6578
|
-
|
|
6578
|
+
y("div", { innerHTML: s.value }, null, 8, U1)
|
|
6579
6579
|
], 32));
|
|
6580
6580
|
}
|
|
6581
6581
|
}), gi = /* @__PURE__ */ H(F1, [["__scopeId", "data-v-a899f6a1"]]), H1 = {
|
|
@@ -6610,7 +6610,7 @@ function j1(e, t, n, l, r, i) {
|
|
|
6610
6610
|
height: n.size,
|
|
6611
6611
|
viewBox: "0 0 24 24"
|
|
6612
6612
|
}, [
|
|
6613
|
-
|
|
6613
|
+
y("path", G1, [
|
|
6614
6614
|
n.title ? (u(), d("title", W1, M(n.title), 1)) : L("", !0)
|
|
6615
6615
|
])
|
|
6616
6616
|
], 8, z1))
|
|
@@ -6648,7 +6648,7 @@ function Q1(e, t, n, l, r, i) {
|
|
|
6648
6648
|
height: n.size,
|
|
6649
6649
|
viewBox: "0 0 24 24"
|
|
6650
6650
|
}, [
|
|
6651
|
-
|
|
6651
|
+
y("path", Z1, [
|
|
6652
6652
|
n.title ? (u(), d("title", J1, M(n.title), 1)) : L("", !0)
|
|
6653
6653
|
])
|
|
6654
6654
|
], 8, X1))
|
|
@@ -6683,15 +6683,15 @@ const ep = /* @__PURE__ */ H(Y1, [["render", Q1]]), tp = ["id", "open"], np = {
|
|
|
6683
6683
|
c === o.value && l.value && (s.value = !0, l.value = !1);
|
|
6684
6684
|
},
|
|
6685
6685
|
{ immediate: !0 }
|
|
6686
|
-
), (c,
|
|
6686
|
+
), (c, h) => (u(), d("details", {
|
|
6687
6687
|
id: c.href,
|
|
6688
6688
|
open: s.value
|
|
6689
6689
|
}, [
|
|
6690
|
-
|
|
6690
|
+
y("summary", {
|
|
6691
6691
|
class: oe(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button", { collapsed: l.value }]),
|
|
6692
6692
|
onClick: a
|
|
6693
6693
|
}, [
|
|
6694
|
-
|
|
6694
|
+
y("span", np, [
|
|
6695
6695
|
c.arrow ? (u(), X(mt(l.value ? K1 : ep), {
|
|
6696
6696
|
key: 0,
|
|
6697
6697
|
class: "arrow"
|
|
@@ -6707,7 +6707,7 @@ const ep = /* @__PURE__ */ H(Y1, [["render", Q1]]), tp = ["id", "open"], np = {
|
|
|
6707
6707
|
key: 0,
|
|
6708
6708
|
id: c.href + "-body"
|
|
6709
6709
|
}, [
|
|
6710
|
-
|
|
6710
|
+
y("div", null, [
|
|
6711
6711
|
ae(c.$slots, "content", {}, void 0, !0)
|
|
6712
6712
|
])
|
|
6713
6713
|
], 8, ip)) : L("", !0)
|
|
@@ -6784,7 +6784,7 @@ function mp(e, t, n, l, r, i) {
|
|
|
6784
6784
|
height: n.size,
|
|
6785
6785
|
viewBox: "0 0 24 24"
|
|
6786
6786
|
}, [
|
|
6787
|
-
|
|
6787
|
+
y("path", dp, [
|
|
6788
6788
|
n.title ? (u(), d("title", fp, M(n.title), 1)) : L("", !0)
|
|
6789
6789
|
])
|
|
6790
6790
|
], 8, cp))
|
|
@@ -6822,7 +6822,7 @@ function Ep(e, t, n, l, r, i) {
|
|
|
6822
6822
|
height: n.size,
|
|
6823
6823
|
viewBox: "0 0 24 24"
|
|
6824
6824
|
}, [
|
|
6825
|
-
|
|
6825
|
+
y("path", yp, [
|
|
6826
6826
|
n.title ? (u(), d("title", vp, M(n.title), 1)) : L("", !0)
|
|
6827
6827
|
])
|
|
6828
6828
|
], 8, _p))
|
|
@@ -6860,7 +6860,7 @@ function wp(e, t, n, l, r, i) {
|
|
|
6860
6860
|
height: n.size,
|
|
6861
6861
|
viewBox: "0 0 24 24"
|
|
6862
6862
|
}, [
|
|
6863
|
-
|
|
6863
|
+
y("path", Lp, [
|
|
6864
6864
|
n.title ? (u(), d("title", Sp, M(n.title), 1)) : L("", !0)
|
|
6865
6865
|
])
|
|
6866
6866
|
], 8, kp))
|
|
@@ -6891,10 +6891,10 @@ const Np = /* @__PURE__ */ H(Cp, [["render", wp]]), Tp = { class: "me-3" }, Ap =
|
|
|
6891
6891
|
class: oe("doc-alert alert alert-" + l.type),
|
|
6892
6892
|
role: "alert"
|
|
6893
6893
|
}, [
|
|
6894
|
-
|
|
6894
|
+
y("div", Tp, [
|
|
6895
6895
|
(u(), X(mt(n.value), { class: "alert-icon" }))
|
|
6896
6896
|
]),
|
|
6897
|
-
|
|
6897
|
+
y("div", Ap, [
|
|
6898
6898
|
ae(l.$slots, "default", {}, void 0, !0)
|
|
6899
6899
|
])
|
|
6900
6900
|
], 2));
|
|
@@ -6911,70 +6911,70 @@ const Np = /* @__PURE__ */ H(Cp, [["render", wp]]), Tp = { class: "me-3" }, Ap =
|
|
|
6911
6911
|
const t = e, n = ie(Er(t.property).subType), l = ie(op(t.property)), r = (i) => i.replace(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g, "$1$2$3").replace(new RegExp("(?<!:):(?![: /])", "g"), ": ");
|
|
6912
6912
|
return (i, o) => (u(), d("div", $p, [
|
|
6913
6913
|
n.value ? (u(), d("div", Dp, [
|
|
6914
|
-
o[1] || (o[1] =
|
|
6914
|
+
o[1] || (o[1] = y("span", null, " SubType ", -1)),
|
|
6915
6915
|
n.value.startsWith("#") ? (u(), d("a", {
|
|
6916
6916
|
key: 0,
|
|
6917
6917
|
href: n.value,
|
|
6918
6918
|
onClick: o[0] || (o[0] = Li(() => {
|
|
6919
6919
|
}, ["stop"]))
|
|
6920
6920
|
}, [
|
|
6921
|
-
|
|
6922
|
-
|
|
6921
|
+
y("button", Pp, [
|
|
6922
|
+
y("span", Mp, M(P(vr)(n.value)), 1),
|
|
6923
6923
|
V(Cr)
|
|
6924
6924
|
])
|
|
6925
6925
|
], 8, Rp)) : (u(), d("span", Vp, M(n.value), 1))
|
|
6926
6926
|
])) : L("", !0),
|
|
6927
6927
|
i.property.default !== void 0 ? (u(), d("div", xp, [
|
|
6928
|
-
o[2] || (o[2] =
|
|
6929
|
-
|
|
6928
|
+
o[2] || (o[2] = y("span", null, " Default ", -1)),
|
|
6929
|
+
y("code", Up, M(i.property.default), 1)
|
|
6930
6930
|
])) : L("", !0),
|
|
6931
6931
|
i.property.pattern !== void 0 ? (u(), d("div", Fp, [
|
|
6932
|
-
o[3] || (o[3] =
|
|
6933
|
-
|
|
6932
|
+
o[3] || (o[3] = y("span", null, " Validation RegExp ", -1)),
|
|
6933
|
+
y("code", Hp, M(i.property.pattern), 1)
|
|
6934
6934
|
])) : L("", !0),
|
|
6935
6935
|
i.property.unit !== void 0 && i.property.unit.trim().length > 0 ? (u(), d("div", Bp, [
|
|
6936
|
-
o[4] || (o[4] =
|
|
6937
|
-
|
|
6936
|
+
o[4] || (o[4] = y("span", null, " Unit ", -1)),
|
|
6937
|
+
y("code", zp, M(i.property.unit), 1)
|
|
6938
6938
|
])) : L("", !0),
|
|
6939
6939
|
i.property.minLength !== void 0 ? (u(), d("div", Gp, [
|
|
6940
|
-
o[5] || (o[5] =
|
|
6941
|
-
|
|
6940
|
+
o[5] || (o[5] = y("span", null, " Min length ", -1)),
|
|
6941
|
+
y("code", Wp, M(i.property.minLength), 1)
|
|
6942
6942
|
])) : L("", !0),
|
|
6943
6943
|
i.property.maxLength !== void 0 ? (u(), d("div", jp, [
|
|
6944
|
-
o[6] || (o[6] =
|
|
6945
|
-
|
|
6944
|
+
o[6] || (o[6] = y("span", null, " Max length ", -1)),
|
|
6945
|
+
y("code", Kp, M(i.property.maxLength), 1)
|
|
6946
6946
|
])) : L("", !0),
|
|
6947
6947
|
i.property.minItems !== void 0 ? (u(), d("div", Yp, [
|
|
6948
|
-
o[7] || (o[7] =
|
|
6949
|
-
|
|
6948
|
+
o[7] || (o[7] = y("span", null, " Min items ", -1)),
|
|
6949
|
+
y("code", qp, M(i.property.minItems), 1)
|
|
6950
6950
|
])) : L("", !0),
|
|
6951
6951
|
i.property.maxItems !== void 0 ? (u(), d("div", Xp, [
|
|
6952
|
-
o[8] || (o[8] =
|
|
6953
|
-
|
|
6952
|
+
o[8] || (o[8] = y("span", null, " Max items ", -1)),
|
|
6953
|
+
y("code", Zp, M(i.property.maxItems), 1)
|
|
6954
6954
|
])) : L("", !0),
|
|
6955
6955
|
i.property.minimum !== void 0 ? (u(), d("div", Jp, [
|
|
6956
|
-
o[9] || (o[9] =
|
|
6957
|
-
|
|
6956
|
+
o[9] || (o[9] = y("span", null, " Minimum ", -1)),
|
|
6957
|
+
y("code", Qp, " >= " + M(i.property.minimum), 1)
|
|
6958
6958
|
])) : L("", !0),
|
|
6959
6959
|
i.property.exclusiveMinimum !== void 0 ? (u(), d("div", eg, [
|
|
6960
|
-
o[10] || (o[10] =
|
|
6961
|
-
|
|
6960
|
+
o[10] || (o[10] = y("span", null, " Minimum ", -1)),
|
|
6961
|
+
y("code", tg, " > " + M(i.property.minimum), 1)
|
|
6962
6962
|
])) : L("", !0),
|
|
6963
6963
|
i.property.maximum !== void 0 ? (u(), d("div", ng, [
|
|
6964
|
-
o[11] || (o[11] =
|
|
6965
|
-
|
|
6964
|
+
o[11] || (o[11] = y("span", null, " Maximum ", -1)),
|
|
6965
|
+
y("code", lg, " <= " + M(i.property.maximum), 1)
|
|
6966
6966
|
])) : L("", !0),
|
|
6967
6967
|
i.property.exclusiveMaximum !== void 0 ? (u(), d("div", ig, [
|
|
6968
|
-
o[12] || (o[12] =
|
|
6969
|
-
|
|
6968
|
+
o[12] || (o[12] = y("span", null, " Maximum ", -1)),
|
|
6969
|
+
y("code", rg, " < " + M(i.property.maximum), 1)
|
|
6970
6970
|
])) : L("", !0),
|
|
6971
6971
|
i.property.format !== void 0 ? (u(), d("div", og, [
|
|
6972
|
-
o[13] || (o[13] =
|
|
6973
|
-
|
|
6972
|
+
o[13] || (o[13] = y("span", null, " Format ", -1)),
|
|
6973
|
+
y("code", ag, M(i.property.format), 1)
|
|
6974
6974
|
])) : L("", !0),
|
|
6975
6975
|
l.value !== void 0 ? (u(), d("div", sg, [
|
|
6976
|
-
o[14] || (o[14] =
|
|
6977
|
-
|
|
6976
|
+
o[14] || (o[14] = y("span", null, " Possible Values ", -1)),
|
|
6977
|
+
y("div", ug, [
|
|
6978
6978
|
(u(!0), d(Ee, null, Xe(l.value, (a, s) => (u(), d("code", {
|
|
6979
6979
|
class: "border rounded px-2 py-1",
|
|
6980
6980
|
key: s
|
|
@@ -6982,7 +6982,7 @@ const Np = /* @__PURE__ */ H(Cp, [["render", wp]]), Tp = { class: "me-3" }, Ap =
|
|
|
6982
6982
|
])
|
|
6983
6983
|
])) : L("", !0),
|
|
6984
6984
|
i.property.title !== void 0 || i.property.description !== void 0 ? (u(), d("div", cg, [
|
|
6985
|
-
|
|
6985
|
+
y("div", dg, [
|
|
6986
6986
|
i.property.title !== void 0 ? ae(i.$slots, "markdown", {
|
|
6987
6987
|
key: 0,
|
|
6988
6988
|
content: r(i.property.title)
|
|
@@ -7035,7 +7035,7 @@ function Eg(e, t, n, l, r, i) {
|
|
|
7035
7035
|
height: n.size,
|
|
7036
7036
|
viewBox: "0 0 24 24"
|
|
7037
7037
|
}, [
|
|
7038
|
-
|
|
7038
|
+
y("path", yg, [
|
|
7039
7039
|
n.title ? (u(), d("title", vg, M(n.title), 1)) : L("", !0)
|
|
7040
7040
|
])
|
|
7041
7041
|
], 8, _g))
|
|
@@ -7073,7 +7073,7 @@ function Ng(e, t, n, l, r, i) {
|
|
|
7073
7073
|
height: n.size,
|
|
7074
7074
|
viewBox: "0 0 24 24"
|
|
7075
7075
|
}, [
|
|
7076
|
-
|
|
7076
|
+
y("path", Sg, [
|
|
7077
7077
|
n.title ? (u(), d("title", wg, M(n.title), 1)) : L("", !0)
|
|
7078
7078
|
])
|
|
7079
7079
|
], 8, Lg))
|
|
@@ -7111,7 +7111,7 @@ function Rg(e, t, n, l, r, i) {
|
|
|
7111
7111
|
height: n.size,
|
|
7112
7112
|
viewBox: "0 0 24 24"
|
|
7113
7113
|
}, [
|
|
7114
|
-
|
|
7114
|
+
y("path", $g, [
|
|
7115
7115
|
n.title ? (u(), d("title", Dg, M(n.title), 1)) : L("", !0)
|
|
7116
7116
|
])
|
|
7117
7117
|
], 8, Og))
|
|
@@ -7143,12 +7143,12 @@ const Pg = /* @__PURE__ */ H(Ag, [["render", Rg]]), Mg = { class: "border overfl
|
|
|
7143
7143
|
const i = (a) => a.$dynamic === !0 ? !0 : a.$dynamic === !1 ? !1 : a.anyOf?.some((s) => s.$dynamic === !0) ?? !1;
|
|
7144
7144
|
function o(a) {
|
|
7145
7145
|
const s = [], c = [];
|
|
7146
|
-
for (const
|
|
7147
|
-
typeof a[
|
|
7148
|
-
const
|
|
7149
|
-
return
|
|
7150
|
-
(!a[
|
|
7151
|
-
}),
|
|
7146
|
+
for (const g in a)
|
|
7147
|
+
typeof a[g] == "object" && (a[g] = ap(a[g]), a[g].$required ? s.push(g) : c.push(g));
|
|
7148
|
+
const h = [...s.sort(), ...c.sort()], E = {};
|
|
7149
|
+
return h.forEach((g) => {
|
|
7150
|
+
(!a[g].$deprecated || n.forceInclude?.includes(g)) && (E[g] = a[g]);
|
|
7151
|
+
}), E;
|
|
7152
7152
|
}
|
|
7153
7153
|
return (a, s) => (u(), X(an, {
|
|
7154
7154
|
class: "section-collapsible",
|
|
@@ -7160,14 +7160,14 @@ const Pg = /* @__PURE__ */ H(Ag, [["render", Rg]]), Mg = { class: "border overfl
|
|
|
7160
7160
|
Object.keys(a.properties ?? {}).length > 0 ? {
|
|
7161
7161
|
name: "content",
|
|
7162
7162
|
fn: G(() => [
|
|
7163
|
-
|
|
7164
|
-
(u(!0), d(Ee, null, Xe(o(a.properties), (c,
|
|
7163
|
+
y("div", Mg, [
|
|
7164
|
+
(u(!0), d(Ee, null, Xe(o(a.properties), (c, h) => (u(), X(an, {
|
|
7165
7165
|
class: "property",
|
|
7166
|
-
key:
|
|
7166
|
+
key: h,
|
|
7167
7167
|
arrow: !1,
|
|
7168
|
-
"clickable-text":
|
|
7169
|
-
href: a.href + "_" +
|
|
7170
|
-
onExpand: s[1] || (s[1] = (
|
|
7168
|
+
"clickable-text": h,
|
|
7169
|
+
href: a.href + "_" + h,
|
|
7170
|
+
onExpand: s[1] || (s[1] = (E) => r.value = !0),
|
|
7171
7171
|
"no-url-change": a.noUrlChange
|
|
7172
7172
|
}, {
|
|
7173
7173
|
additionalButtonText: G(() => [
|
|
@@ -7177,14 +7177,14 @@ const Pg = /* @__PURE__ */ H(Ag, [["render", Rg]]), Mg = { class: "border overfl
|
|
|
7177
7177
|
title: "Required"
|
|
7178
7178
|
}, {
|
|
7179
7179
|
default: G(() => [...s[3] || (s[3] = [
|
|
7180
|
-
|
|
7180
|
+
y("span", { class: "text-danger" }, " *", -1)
|
|
7181
7181
|
])]),
|
|
7182
7182
|
_: 1
|
|
7183
7183
|
})) : L("", !0)
|
|
7184
7184
|
]),
|
|
7185
|
-
buttonRight: G(({ collapsed:
|
|
7186
|
-
|
|
7187
|
-
|
|
7185
|
+
buttonRight: G(({ collapsed: E }) => [
|
|
7186
|
+
y("span", Vg, [
|
|
7187
|
+
y("span", xg, [
|
|
7188
7188
|
a.showDynamic && !i(c) ? (u(), X(re, {
|
|
7189
7189
|
key: 0,
|
|
7190
7190
|
class: "d-flex",
|
|
@@ -7216,27 +7216,27 @@ const Pg = /* @__PURE__ */ H(Ag, [["render", Rg]]), Mg = { class: "border overfl
|
|
|
7216
7216
|
_: 1
|
|
7217
7217
|
})) : L("", !0)
|
|
7218
7218
|
]),
|
|
7219
|
-
|
|
7220
|
-
(u(!0), d(Ee, null, Xe(
|
|
7221
|
-
|
|
7219
|
+
y("span", Ug, [
|
|
7220
|
+
(u(!0), d(Ee, null, Xe(P(Er)(c).types, (g) => (u(), d(Ee, { key: g }, [
|
|
7221
|
+
g.startsWith("#") ? (u(), d("a", {
|
|
7222
7222
|
key: 0,
|
|
7223
7223
|
class: "d-flex fw-bold type-box rounded fs-7 px-2 py-1",
|
|
7224
|
-
href:
|
|
7224
|
+
href: g,
|
|
7225
7225
|
onClick: s[0] || (s[0] = Li(() => {
|
|
7226
7226
|
}, ["stop"]))
|
|
7227
7227
|
}, [
|
|
7228
|
-
|
|
7228
|
+
y("span", Hg, M(P(vr)(g)), 1),
|
|
7229
7229
|
V(Cr)
|
|
7230
|
-
], 8, Fg)) : (u(), d("span", Bg, M(
|
|
7230
|
+
], 8, Fg)) : (u(), d("span", Bg, M(g), 1))
|
|
7231
7231
|
], 64))), 128)),
|
|
7232
|
-
(u(), X(mt(
|
|
7232
|
+
(u(), X(mt(E ? pp : Cg), { class: "arrow" }))
|
|
7233
7233
|
])
|
|
7234
7234
|
])
|
|
7235
7235
|
]),
|
|
7236
7236
|
content: G(() => [
|
|
7237
7237
|
V(pg, { property: c }, {
|
|
7238
|
-
markdown: G(({ content:
|
|
7239
|
-
ae(a.$slots, "markdown", { content:
|
|
7238
|
+
markdown: G(({ content: E }) => [
|
|
7239
|
+
ae(a.$slots, "markdown", { content: E }, void 0, !0)
|
|
7240
7240
|
]),
|
|
7241
7241
|
_: 3
|
|
7242
7242
|
}, 8, ["property"])
|
|
@@ -7275,12 +7275,12 @@ const Pg = /* @__PURE__ */ H(Ag, [["render", Rg]]), Mg = { class: "border overfl
|
|
|
7275
7275
|
async setup(e) {
|
|
7276
7276
|
let t, n;
|
|
7277
7277
|
const l = e, r = ie(!1), i = ie(/* @__PURE__ */ new Set()), o = ie(0), a = async () => {
|
|
7278
|
-
const
|
|
7279
|
-
if (!
|
|
7278
|
+
const _ = window.location.hash.slice(1);
|
|
7279
|
+
if (!_ || !l.schema.definitions) {
|
|
7280
7280
|
i.value.clear();
|
|
7281
7281
|
return;
|
|
7282
7282
|
}
|
|
7283
|
-
const $ =
|
|
7283
|
+
const $ = _.includes("#") ? _.split("#").pop()?.split(".").pop() : _;
|
|
7284
7284
|
if ($ && $ in l.schema.definitions) {
|
|
7285
7285
|
r.value = !0, o.value += 1, i.value.clear(), i.value.add($), await dn();
|
|
7286
7286
|
let A = 0;
|
|
@@ -7292,29 +7292,29 @@ const Pg = /* @__PURE__ */ H(Ag, [["render", Rg]]), Mg = { class: "border overfl
|
|
|
7292
7292
|
} else
|
|
7293
7293
|
i.value.clear();
|
|
7294
7294
|
};
|
|
7295
|
-
Ge([() => l.schema, () => l.pluginType], ([
|
|
7296
|
-
(
|
|
7295
|
+
Ge([() => l.schema, () => l.pluginType], ([_, $], [A, S]) => {
|
|
7296
|
+
(_ !== A || $ !== S) && l.schema.definitions && a();
|
|
7297
7297
|
});
|
|
7298
|
-
const s = (
|
|
7298
|
+
const s = (_) => _?.full ? _.code : `id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
|
|
7299
7299
|
type: "${l.pluginType}"
|
|
7300
|
-
`.concat(
|
|
7301
|
-
l.schema.properties?.$metrics?.map((
|
|
7300
|
+
`.concat(_.code), c = ie(null), h = W(() => l.schema.properties?.$examples), E = W(() => Object.fromEntries(
|
|
7301
|
+
l.schema.properties?.$metrics?.map((_) => [_.name, { ..._, name: void 0 }])
|
|
7302
7302
|
)), {
|
|
7303
|
-
githubLight:
|
|
7303
|
+
githubLight: g,
|
|
7304
7304
|
githubDark: v,
|
|
7305
|
-
yaml:
|
|
7306
|
-
python:
|
|
7305
|
+
yaml: D,
|
|
7306
|
+
python: w,
|
|
7307
7307
|
javascript: k,
|
|
7308
7308
|
createJavaScriptRegexEngine: p,
|
|
7309
7309
|
createHighlighterCore: C
|
|
7310
|
-
} = ([t, n] = wl(() => import("./shikiToolset-
|
|
7310
|
+
} = ([t, n] = wl(() => import("./shikiToolset-D9uEaauu.js")), t = await t, n(), t);
|
|
7311
7311
|
c.value = ([t, n] = wl(() => C({
|
|
7312
7312
|
themes: [
|
|
7313
|
-
l.darkMode ? v :
|
|
7313
|
+
l.darkMode ? v : g
|
|
7314
7314
|
],
|
|
7315
7315
|
langs: [
|
|
7316
|
-
|
|
7317
|
-
|
|
7316
|
+
D,
|
|
7317
|
+
w,
|
|
7318
7318
|
k
|
|
7319
7319
|
],
|
|
7320
7320
|
engine: p()
|
|
@@ -7324,48 +7324,48 @@ type: "${l.pluginType}"
|
|
|
7324
7324
|
a(), window.addEventListener("hashchange", a);
|
|
7325
7325
|
}), Ci(() => {
|
|
7326
7326
|
window.removeEventListener("hashchange", a), c.value?.dispose();
|
|
7327
|
-
}), (
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7327
|
+
}), (_, $) => (u(), d("div", Gg, [
|
|
7328
|
+
y("div", null, [
|
|
7329
|
+
_.schema.properties?.$beta ? (u(), d("div", Wg, [...$[0] || ($[0] = [
|
|
7330
|
+
y("p", null, " This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ", -1)
|
|
7331
7331
|
])])) : L("", !0),
|
|
7332
|
-
|
|
7333
|
-
ae(
|
|
7334
|
-
content:
|
|
7332
|
+
_.schema.properties?.title ? (u(), d("div", jg, [
|
|
7333
|
+
ae(_.$slots, "markdown", {
|
|
7334
|
+
content: _.schema.properties.title.replace(/ *:(?![ /])/g, ": ")
|
|
7335
7335
|
}, void 0, !0)
|
|
7336
7336
|
])) : L("", !0),
|
|
7337
|
-
|
|
7338
|
-
ae(
|
|
7339
|
-
content:
|
|
7337
|
+
_.schema.properties?.description ? (u(), d("div", Kg, [
|
|
7338
|
+
ae(_.$slots, "markdown", {
|
|
7339
|
+
content: _.schema.properties.description.replace(/ *:(?![ /])/g, ": ")
|
|
7340
7340
|
}, void 0, !0)
|
|
7341
7341
|
])) : L("", !0),
|
|
7342
7342
|
(u(), X(gi, {
|
|
7343
7343
|
highlighter: c.value,
|
|
7344
7344
|
language: "yaml",
|
|
7345
7345
|
theme: T,
|
|
7346
|
-
code: `type: "${
|
|
7347
|
-
key:
|
|
7346
|
+
code: `type: "${_.pluginType}"`,
|
|
7347
|
+
key: _.pluginType
|
|
7348
7348
|
}, null, 8, ["highlighter", "code"]))
|
|
7349
7349
|
]),
|
|
7350
7350
|
(u(), d("div", {
|
|
7351
7351
|
class: "d-flex flex-column gap-3",
|
|
7352
|
-
key:
|
|
7352
|
+
key: _.pluginType
|
|
7353
7353
|
}, [
|
|
7354
|
-
|
|
7354
|
+
h.value ? (u(), X(an, {
|
|
7355
7355
|
key: 0,
|
|
7356
7356
|
class: "plugin-section",
|
|
7357
7357
|
"clickable-text": "Examples",
|
|
7358
7358
|
href: "examples",
|
|
7359
|
-
"no-url-change":
|
|
7359
|
+
"no-url-change": _.noUrlChange
|
|
7360
7360
|
}, {
|
|
7361
7361
|
content: G(() => [
|
|
7362
|
-
|
|
7363
|
-
(u(!0), d(Ee, null, Xe(
|
|
7364
|
-
key:
|
|
7362
|
+
y("div", Yg, [
|
|
7363
|
+
(u(!0), d(Ee, null, Xe(h.value, (A, S) => (u(), d(Ee, {
|
|
7364
|
+
key: _.pluginType + "-" + S
|
|
7365
7365
|
}, [
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
A.title ? ae(
|
|
7366
|
+
y("div", qg, [
|
|
7367
|
+
y("div", Xg, [
|
|
7368
|
+
A.title ? ae(_.$slots, "markdown", {
|
|
7369
7369
|
key: 0,
|
|
7370
7370
|
content: A.title.replace(/ *:(?![ /])/g, ": ")
|
|
7371
7371
|
}, void 0, !0) : L("", !0)
|
|
@@ -7378,87 +7378,87 @@ type: "${l.pluginType}"
|
|
|
7378
7378
|
code: s(A)
|
|
7379
7379
|
}, null, 8, ["highlighter", "language", "code"])) : L("", !0)
|
|
7380
7380
|
]),
|
|
7381
|
-
S <
|
|
7381
|
+
S < h.value.length - 1 ? (u(), d("hr", Zg)) : L("", !0)
|
|
7382
7382
|
], 64))), 128))
|
|
7383
7383
|
])
|
|
7384
7384
|
]),
|
|
7385
7385
|
_: 3
|
|
7386
7386
|
}, 8, ["no-url-change"])) : L("", !0),
|
|
7387
|
-
|
|
7387
|
+
_.schema.properties?.properties ? (u(), X(Yt, {
|
|
7388
7388
|
key: 1,
|
|
7389
7389
|
class: "plugin-section",
|
|
7390
|
-
properties:
|
|
7390
|
+
properties: _.schema.properties.properties,
|
|
7391
7391
|
"section-name": "Properties",
|
|
7392
7392
|
href: "properties",
|
|
7393
|
-
"initially-expanded":
|
|
7394
|
-
"force-include":
|
|
7395
|
-
"no-url-change":
|
|
7393
|
+
"initially-expanded": _.propsInitiallyExpanded,
|
|
7394
|
+
"force-include": _.forceIncludeProperties,
|
|
7395
|
+
"no-url-change": _.noUrlChange
|
|
7396
7396
|
}, {
|
|
7397
7397
|
markdown: G(({ content: A }) => [
|
|
7398
|
-
|
|
7399
|
-
ae(
|
|
7398
|
+
y("div", Jg, [
|
|
7399
|
+
ae(_.$slots, "markdown", { content: A }, void 0, !0)
|
|
7400
7400
|
])
|
|
7401
7401
|
]),
|
|
7402
7402
|
_: 3
|
|
7403
7403
|
}, 8, ["properties", "initially-expanded", "force-include", "no-url-change"])) : L("", !0),
|
|
7404
|
-
|
|
7404
|
+
_.schema.outputs?.properties && Object.keys(_.schema.outputs.properties).length > 0 ? (u(), X(Yt, {
|
|
7405
7405
|
key: 2,
|
|
7406
7406
|
class: "plugin-section",
|
|
7407
|
-
properties:
|
|
7407
|
+
properties: _.schema.outputs.properties,
|
|
7408
7408
|
"section-name": "Outputs",
|
|
7409
7409
|
href: "outputs",
|
|
7410
7410
|
"show-dynamic": !1,
|
|
7411
|
-
"no-url-change":
|
|
7411
|
+
"no-url-change": _.noUrlChange
|
|
7412
7412
|
}, {
|
|
7413
7413
|
markdown: G(({ content: A }) => [
|
|
7414
|
-
|
|
7415
|
-
ae(
|
|
7414
|
+
y("div", Qg, [
|
|
7415
|
+
ae(_.$slots, "markdown", { content: A }, void 0, !0)
|
|
7416
7416
|
])
|
|
7417
7417
|
]),
|
|
7418
7418
|
_: 3
|
|
7419
7419
|
}, 8, ["properties", "no-url-change"])) : L("", !0),
|
|
7420
|
-
|
|
7420
|
+
_.schema.properties?.$metrics ? (u(), X(Yt, {
|
|
7421
7421
|
key: 3,
|
|
7422
7422
|
class: "plugin-section",
|
|
7423
|
-
properties:
|
|
7423
|
+
properties: E.value,
|
|
7424
7424
|
"section-name": "Metrics",
|
|
7425
7425
|
href: "metrics",
|
|
7426
7426
|
"show-dynamic": !1,
|
|
7427
|
-
"no-url-change":
|
|
7427
|
+
"no-url-change": _.noUrlChange
|
|
7428
7428
|
}, {
|
|
7429
7429
|
markdown: G(({ content: A }) => [
|
|
7430
|
-
|
|
7431
|
-
ae(
|
|
7430
|
+
y("div", eh, [
|
|
7431
|
+
ae(_.$slots, "markdown", { content: A }, void 0, !0)
|
|
7432
7432
|
])
|
|
7433
7433
|
]),
|
|
7434
7434
|
_: 3
|
|
7435
7435
|
}, 8, ["properties", "no-url-change"])) : L("", !0),
|
|
7436
|
-
|
|
7436
|
+
_.schema.definitions && Object.keys(_.schema.definitions).length > 0 ? (u(), X(an, {
|
|
7437
7437
|
class: "plugin-section",
|
|
7438
7438
|
"clickable-text": "Definitions",
|
|
7439
7439
|
href: "definitions",
|
|
7440
7440
|
"initially-expanded": r.value,
|
|
7441
|
-
key: `definitions-${
|
|
7442
|
-
"no-url-change":
|
|
7441
|
+
key: `definitions-${_.pluginType}-${o.value}`,
|
|
7442
|
+
"no-url-change": _.noUrlChange
|
|
7443
7443
|
}, {
|
|
7444
7444
|
content: G(() => [
|
|
7445
|
-
|
|
7446
|
-
(u(!0), d(Ee, null, Xe(Object.entries(
|
|
7445
|
+
y("div", th, [
|
|
7446
|
+
(u(!0), d(Ee, null, Xe(Object.entries(_.schema.definitions), ([A, S]) => (u(), X(Yt, {
|
|
7447
7447
|
properties: S.properties,
|
|
7448
7448
|
"section-name": S.title ?? A.split("_")[0],
|
|
7449
7449
|
href: A,
|
|
7450
7450
|
"show-dynamic": !1,
|
|
7451
7451
|
"initially-expanded": i.value.has(A),
|
|
7452
|
-
key:
|
|
7452
|
+
key: _.pluginType + "-" + A,
|
|
7453
7453
|
class: "plugin-section nested-button-py-2",
|
|
7454
7454
|
onExpand: (Y) => {
|
|
7455
7455
|
r.value = !0, i.value.add(A);
|
|
7456
7456
|
},
|
|
7457
|
-
"no-url-change":
|
|
7457
|
+
"no-url-change": _.noUrlChange
|
|
7458
7458
|
}, {
|
|
7459
7459
|
markdown: G(({ content: Y }) => [
|
|
7460
|
-
|
|
7461
|
-
ae(
|
|
7460
|
+
y("div", nh, [
|
|
7461
|
+
ae(_.$slots, "markdown", { content: Y }, void 0, !0)
|
|
7462
7462
|
])
|
|
7463
7463
|
]),
|
|
7464
7464
|
_: 3
|
|
@@ -7502,7 +7502,7 @@ function uh(e, t, n, l, r, i) {
|
|
|
7502
7502
|
height: n.size,
|
|
7503
7503
|
viewBox: "0 0 24 24"
|
|
7504
7504
|
}, [
|
|
7505
|
-
|
|
7505
|
+
y("path", ah, [
|
|
7506
7506
|
n.title ? (u(), d("title", sh, M(n.title), 1)) : L("", !0)
|
|
7507
7507
|
])
|
|
7508
7508
|
], 8, oh))
|
|
@@ -7521,7 +7521,7 @@ const ch = /* @__PURE__ */ H(ih, [["render", uh]]), dh = ["href"], fh = ["src",
|
|
|
7521
7521
|
href: l.value,
|
|
7522
7522
|
class: "row-link d-flex flex-grow-1 align-items-center gap-7 rounded"
|
|
7523
7523
|
}, [
|
|
7524
|
-
|
|
7524
|
+
y("img", {
|
|
7525
7525
|
src: r.iconB64Svg,
|
|
7526
7526
|
alt: `${r.text} icon`
|
|
7527
7527
|
}, null, 8, fh),
|
|
@@ -7538,52 +7538,53 @@ const ch = /* @__PURE__ */ H(ih, [["render", uh]]), dh = ["href"], fh = ["src",
|
|
|
7538
7538
|
plugins: {},
|
|
7539
7539
|
pluginName: {},
|
|
7540
7540
|
subGroup: {},
|
|
7541
|
-
icons: {}
|
|
7541
|
+
icons: {},
|
|
7542
|
+
routePath: {}
|
|
7542
7543
|
},
|
|
7543
7544
|
emits: ["goTo"],
|
|
7544
7545
|
setup(e) {
|
|
7545
|
-
const t = e, n = W(() => t.plugins.find((
|
|
7546
|
-
let
|
|
7547
|
-
return
|
|
7548
|
-
},
|
|
7549
|
-
function
|
|
7546
|
+
const t = e, n = W(() => t.plugins.find((g) => t.subGroup === void 0 ? !0 : vt(At(g)) === t.subGroup)), l = W(() => n.value?.longDescription ?? n.value?.description), r = W(() => t.plugins.filter((g) => g.name.toLowerCase() === t.pluginName.toLowerCase() && g.subGroup !== void 0)), i = (g) => {
|
|
7547
|
+
let v = g.split(".");
|
|
7548
|
+
return v?.[v.length - 1];
|
|
7549
|
+
}, a = Qn()?.path ?? t.routePath, s = (g) => `${a}/${vt(g)}`, c = (g) => `${a}/${g}`;
|
|
7550
|
+
function h(g) {
|
|
7550
7551
|
return Object.fromEntries(
|
|
7551
|
-
Object.entries(
|
|
7552
|
+
Object.entries(g).filter(([v, D]) => ns(v, D)).map(([v, D]) => [v.replace(/[A-Z]/g, (w) => ` ${w}`), D.filter(({ deprecated: w }) => !w).map(({ cls: w }) => w)])
|
|
7552
7553
|
);
|
|
7553
7554
|
}
|
|
7554
|
-
const
|
|
7555
|
-
return (
|
|
7556
|
-
l.value !== void 0 ? ae(
|
|
7555
|
+
const E = W(() => h(n.value));
|
|
7556
|
+
return (g, v) => (u(), d("div", ph, [
|
|
7557
|
+
l.value !== void 0 ? ae(g.$slots, "markdown", {
|
|
7557
7558
|
key: 0,
|
|
7558
7559
|
content: l.value.replace(/ *:(?![ /])/g, ": ")
|
|
7559
7560
|
}) : L("", !0),
|
|
7560
|
-
|
|
7561
|
-
(u(!0), d(Ee, null, Xe(r.value, (
|
|
7562
|
-
id: `group-${
|
|
7563
|
-
"icon-b64-svg": "data:image/svg+xml;base64," + (
|
|
7564
|
-
text:
|
|
7565
|
-
href:
|
|
7566
|
-
key:
|
|
7561
|
+
g.subGroup === void 0 && g.plugins.length > 1 ? (u(), d("div", gh, [
|
|
7562
|
+
(u(!0), d(Ee, null, Xe(r.value, (D) => (u(), X(hi, {
|
|
7563
|
+
id: `group-${P(vt)(P(At)(D))}`,
|
|
7564
|
+
"icon-b64-svg": "data:image/svg+xml;base64," + (g.icons[D.subGroup] ?? g.icons[D.group]),
|
|
7565
|
+
text: P(At)(D),
|
|
7566
|
+
href: s(P(At)(D)),
|
|
7567
|
+
key: P(At)(D),
|
|
7567
7568
|
class: "text-capitalize",
|
|
7568
|
-
onClick: (
|
|
7569
|
+
onClick: (w) => g.$emit("goTo", { subGroup: D })
|
|
7569
7570
|
}, null, 8, ["id", "icon-b64-svg", "text", "href", "onClick"]))), 128))
|
|
7570
|
-
])) : (u(!0), d(Ee, { key: 2 }, Xe(
|
|
7571
|
+
])) : (u(!0), d(Ee, { key: 2 }, Xe(E.value, (D, w) => (u(), d("div", {
|
|
7571
7572
|
class: "d-flex flex-column elements-section",
|
|
7572
|
-
key:
|
|
7573
|
+
key: w
|
|
7573
7574
|
}, [
|
|
7574
|
-
|
|
7575
|
-
id: `section-${
|
|
7575
|
+
y("h4", {
|
|
7576
|
+
id: `section-${P(vt)(w)}`,
|
|
7576
7577
|
class: "text-capitalize"
|
|
7577
|
-
}, M(
|
|
7578
|
-
|
|
7579
|
-
(u(!0), d(Ee, null, Xe(
|
|
7580
|
-
id:
|
|
7581
|
-
"icon-b64-svg": "data:image/svg+xml;base64," + (
|
|
7582
|
-
text: i(
|
|
7583
|
-
href:
|
|
7584
|
-
key:
|
|
7578
|
+
}, M(w), 9, hh),
|
|
7579
|
+
y("div", _h, [
|
|
7580
|
+
(u(!0), d(Ee, null, Xe(D, (k) => (u(), X(hi, {
|
|
7581
|
+
id: P(vt)(k),
|
|
7582
|
+
"icon-b64-svg": "data:image/svg+xml;base64," + (g.icons[k] ?? g.icons[n.value.subGroup ?? n.value.group] ?? g.icons[n.value.group]),
|
|
7583
|
+
text: i(k),
|
|
7584
|
+
href: c(k),
|
|
7585
|
+
key: k,
|
|
7585
7586
|
class: "text-capitalize",
|
|
7586
|
-
onClick: (
|
|
7587
|
+
onClick: (p) => g.$emit("goTo", { element: k })
|
|
7587
7588
|
}, null, 8, ["id", "icon-b64-svg", "text", "href", "onClick"]))), 128))
|
|
7588
7589
|
])
|
|
7589
7590
|
]))), 128))
|
|
@@ -7664,8 +7665,8 @@ function br(e, t) {
|
|
|
7664
7665
|
continue;
|
|
7665
7666
|
}
|
|
7666
7667
|
if (i === !0 && c === !1 && r.length > 1) {
|
|
7667
|
-
const
|
|
7668
|
-
l.push(r.slice(0, Math.max(0, r.length - 1))), r =
|
|
7668
|
+
const h = r.at(-1);
|
|
7669
|
+
l.push(r.slice(0, Math.max(0, r.length - 1))), r = h + a, i = c;
|
|
7669
7670
|
continue;
|
|
7670
7671
|
}
|
|
7671
7672
|
}
|
|
@@ -9046,7 +9047,7 @@ const Zn = "default", Pr = /^@|^v-on:/, Mr = /^:|^v-bind:/, Hh = /^v-model/, Bh
|
|
|
9046
9047
|
...bo(e.data?.mdc?.components || {}),
|
|
9047
9048
|
...e.components
|
|
9048
9049
|
})), o = W(() => {
|
|
9049
|
-
const c = (e.body?.children || []).map((
|
|
9050
|
+
const c = (e.body?.children || []).map((h) => h.tag || h.type).filter((h) => !gl.includes(h));
|
|
9050
9051
|
return Array.from(new Set(c)).sort().join(".");
|
|
9051
9052
|
}), a = ko({
|
|
9052
9053
|
...e.data
|
|
@@ -9054,9 +9055,9 @@ const Zn = "default", Pr = /^@|^v-on:/, Mr = /^:|^v-bind:/, Hh = /^v-model/, Bh
|
|
|
9054
9055
|
Ge(() => e.data, (c) => {
|
|
9055
9056
|
Object.assign(a, c);
|
|
9056
9057
|
}), await l_(e.body, { tags: i.value });
|
|
9057
|
-
function s(c,
|
|
9058
|
-
const
|
|
9059
|
-
return c.split(".").reduce((
|
|
9058
|
+
function s(c, h) {
|
|
9059
|
+
const E = c.split(".").length - 1;
|
|
9060
|
+
return c.split(".").reduce((g, v, D) => D == E && g ? (g[v] = h, g[v]) : typeof g == "object" ? g[v] : void 0, a);
|
|
9060
9061
|
}
|
|
9061
9062
|
return { tags: i, contentKey: o, route: l, runtimeData: a, updateRuntimeData: s };
|
|
9062
9063
|
},
|
|
@@ -9064,10 +9065,10 @@ const Zn = "default", Pr = /^@|^v-on:/, Mr = /^:|^v-bind:/, Hh = /^v-model/, Bh
|
|
|
9064
9065
|
const { tags: t, tag: n, body: l, data: r, contentKey: i, route: o, unwrap: a, runtimeData: s, updateRuntimeData: c } = e;
|
|
9065
9066
|
if (!l)
|
|
9066
9067
|
return null;
|
|
9067
|
-
const
|
|
9068
|
-
return
|
|
9069
|
-
function
|
|
9070
|
-
const v = Vr(l, bt, { documentMeta:
|
|
9068
|
+
const h = { ...r, tags: t, $route: o, runtimeData: s, updateRuntimeData: c }, E = n !== !1 ? Jn(n || h.component?.name || h.component || "div") : void 0;
|
|
9069
|
+
return E ? bt(E, { ...h.component?.props, class: e.class, ...this.$attrs, key: i }, { default: g }) : g?.();
|
|
9070
|
+
function g() {
|
|
9071
|
+
const v = Vr(l, bt, { documentMeta: h, parentScope: h, resolveComponent: Jn });
|
|
9071
9072
|
return v?.default ? a ? Rr(
|
|
9072
9073
|
v.default(),
|
|
9073
9074
|
typeof a == "string" ? a.split(" ") : ["*"]
|
|
@@ -9084,52 +9085,52 @@ function Kh(e, t, n, l) {
|
|
|
9084
9085
|
const a = e.tag, s = Ur(e, r.tags);
|
|
9085
9086
|
if (e.tag === "binding")
|
|
9086
9087
|
return Yh(e, t, r, i);
|
|
9087
|
-
const c = xr(s) ? (
|
|
9088
|
+
const c = xr(s) ? (g) => g : o;
|
|
9088
9089
|
if (Wh.includes(s))
|
|
9089
9090
|
return t(
|
|
9090
9091
|
"pre",
|
|
9091
9092
|
{ class: "mdc-renderer-dangerous-tag" },
|
|
9092
9093
|
"<" + s + ">" + un(e) + "</" + s + ">"
|
|
9093
9094
|
);
|
|
9094
|
-
const
|
|
9095
|
-
typeof
|
|
9096
|
-
const
|
|
9097
|
-
return l && (
|
|
9098
|
-
|
|
9099
|
-
|
|
9095
|
+
const h = c(s);
|
|
9096
|
+
typeof h == "object" && (h.tag = a);
|
|
9097
|
+
const E = qh(e, r);
|
|
9098
|
+
return l && (E.key = l), t(
|
|
9099
|
+
h,
|
|
9100
|
+
E,
|
|
9100
9101
|
Vr(
|
|
9101
9102
|
e,
|
|
9102
9103
|
t,
|
|
9103
9104
|
{
|
|
9104
9105
|
documentMeta: r,
|
|
9105
|
-
parentScope: { ...i, ...
|
|
9106
|
+
parentScope: { ...i, ...E },
|
|
9106
9107
|
resolveComponent: c
|
|
9107
9108
|
}
|
|
9108
9109
|
)
|
|
9109
9110
|
);
|
|
9110
9111
|
}
|
|
9111
9112
|
function Vr(e, t, n) {
|
|
9112
|
-
const { documentMeta: l, parentScope: r, resolveComponent: i } = n, a = (e.children || []).reduce((c,
|
|
9113
|
-
if (!t_(
|
|
9114
|
-
return c[Zn].children.push(
|
|
9115
|
-
const
|
|
9116
|
-
return c[
|
|
9113
|
+
const { documentMeta: l, parentScope: r, resolveComponent: i } = n, a = (e.children || []).reduce((c, h) => {
|
|
9114
|
+
if (!t_(h))
|
|
9115
|
+
return c[Zn].children.push(h), c;
|
|
9116
|
+
const E = e_(h);
|
|
9117
|
+
return c[E] = c[E] || { props: {}, children: [] }, h.type === "element" && (c[E].props = h.props, c[E].children.push(...h.children || [])), c;
|
|
9117
9118
|
}, {
|
|
9118
9119
|
[Zn]: { props: {}, children: [] }
|
|
9119
9120
|
});
|
|
9120
|
-
return Object.entries(a).reduce((c, [
|
|
9121
|
-
const
|
|
9122
|
-
let
|
|
9121
|
+
return Object.entries(a).reduce((c, [h, { props: E, children: g }]) => (g.length && (c[h] = (v = {}) => {
|
|
9122
|
+
const D = Uh(v, Object.keys(E || {}));
|
|
9123
|
+
let w = g.map((k, p) => Kh(
|
|
9123
9124
|
k,
|
|
9124
9125
|
t,
|
|
9125
9126
|
{
|
|
9126
9127
|
documentMeta: l,
|
|
9127
|
-
parentScope: { ...r, ...
|
|
9128
|
+
parentScope: { ...r, ...D },
|
|
9128
9129
|
resolveComponent: i
|
|
9129
9130
|
},
|
|
9130
9131
|
String(k.props?.key || p)
|
|
9131
9132
|
));
|
|
9132
|
-
return
|
|
9133
|
+
return E?.unwrap && (w = Rr(w, E.unwrap)), n_(w);
|
|
9133
9134
|
}), c), {});
|
|
9134
9135
|
}
|
|
9135
9136
|
function Yh(e, t, n, l = {}) {
|
|
@@ -9138,9 +9139,9 @@ function Yh(e, t, n, l = {}) {
|
|
|
9138
9139
|
...l,
|
|
9139
9140
|
$document: n,
|
|
9140
9141
|
$doc: n
|
|
9141
|
-
}, i = /\.|\[(\d+)\]/, a = (e.props?.value.trim().split(i).filter(Boolean)).reduce((c,
|
|
9142
|
-
if (c &&
|
|
9143
|
-
return typeof c[
|
|
9142
|
+
}, i = /\.|\[(\d+)\]/, a = (e.props?.value.trim().split(i).filter(Boolean)).reduce((c, h) => {
|
|
9143
|
+
if (c && h in c)
|
|
9144
|
+
return typeof c[h] == "function" ? c[h]() : c[h];
|
|
9144
9145
|
}, r), s = e.props?.defaultValue;
|
|
9145
9146
|
return t(Ot, a ?? s ?? "");
|
|
9146
9147
|
}
|
|
@@ -9273,4 +9274,4 @@ export {
|
|
|
9273
9274
|
E_ as k,
|
|
9274
9275
|
v_ as s
|
|
9275
9276
|
};
|
|
9276
|
-
//# sourceMappingURL=index-
|
|
9277
|
+
//# sourceMappingURL=index-Cw0jnbSC.js.map
|