backflow-ui-renderer 0.1.48 → 0.1.49
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/index.cjs +28 -28
- package/dist/index.js +660 -651
- package/dist/renderer/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2303,26 +2303,26 @@ function iR(e) {
|
|
|
2303
2303
|
}
|
|
2304
2304
|
if (D === "navigate" || D === "toast" || D === "show_toast" || D === "copy_to_clipboard")
|
|
2305
2305
|
return;
|
|
2306
|
-
const { method:
|
|
2307
|
-
x.push({ method:
|
|
2306
|
+
const { method: q, path: z } = nR(Y);
|
|
2307
|
+
x.push({ method: q, path: z }), !z.startsWith("/") && !/^https?:/.test(z) && !z.includes("{{") && n(
|
|
2308
2308
|
"error",
|
|
2309
2309
|
"ROUTE_RELATIVE",
|
|
2310
2310
|
E,
|
|
2311
2311
|
`route "${z}" should start with "/"`,
|
|
2312
2312
|
N
|
|
2313
|
-
),
|
|
2313
|
+
), q !== "GET" && (!O.refetchScope && !O.optimistic && n(
|
|
2314
2314
|
"warn",
|
|
2315
2315
|
"NO_REFETCH",
|
|
2316
2316
|
E,
|
|
2317
|
-
`${
|
|
2317
|
+
`${q} ${z} has no refetchScope`,
|
|
2318
2318
|
N
|
|
2319
2319
|
), O.refetchScope === "view" && n(
|
|
2320
2320
|
"warn",
|
|
2321
2321
|
"REFETCH_VIEW_BROAD",
|
|
2322
2322
|
E,
|
|
2323
|
-
`${
|
|
2323
|
+
`${q} ${z} uses refetchScope:"view" — refetches every active list; prefer named keys e.g. ["listKey"]`,
|
|
2324
2324
|
N
|
|
2325
|
-
),
|
|
2325
|
+
), q === "DELETE" && !((K = O.confirmation) != null && K.enabled) && n(
|
|
2326
2326
|
"warn",
|
|
2327
2327
|
"NO_CONFIRM",
|
|
2328
2328
|
E,
|
|
@@ -2332,7 +2332,7 @@ function iR(e) {
|
|
|
2332
2332
|
"warn",
|
|
2333
2333
|
"NO_FEEDBACK_UI",
|
|
2334
2334
|
E,
|
|
2335
|
-
`${
|
|
2335
|
+
`${q} ${z} has no onSuccess/onError`,
|
|
2336
2336
|
N
|
|
2337
2337
|
));
|
|
2338
2338
|
};
|
|
@@ -2723,7 +2723,7 @@ function sR({
|
|
|
2723
2723
|
...(t.runtimeIssues || []).map(
|
|
2724
2724
|
(z, K) => j(z, c.length + K)
|
|
2725
2725
|
)
|
|
2726
|
-
],
|
|
2726
|
+
], q = _.createElement(
|
|
2727
2727
|
"div",
|
|
2728
2728
|
{
|
|
2729
2729
|
key: "bf-diag-panel",
|
|
@@ -2812,7 +2812,7 @@ function sR({
|
|
|
2812
2812
|
]
|
|
2813
2813
|
)
|
|
2814
2814
|
);
|
|
2815
|
-
return _.createElement(_.Fragment, null,
|
|
2815
|
+
return _.createElement(_.Fragment, null, q, E);
|
|
2816
2816
|
}
|
|
2817
2817
|
function aR(e, t) {
|
|
2818
2818
|
return !(t.enabled ?? oR()) || !e ? null : _.createElement(sR, {
|
|
@@ -5641,7 +5641,7 @@ function JD(e) {
|
|
|
5641
5641
|
const { prevResolvedValues: D = {} } = S, Y = {
|
|
5642
5642
|
...D,
|
|
5643
5643
|
...j
|
|
5644
|
-
},
|
|
5644
|
+
}, q = (Z) => {
|
|
5645
5645
|
N = !0, m.has(Z) && (R = !0, m.delete(Z)), S.needsAnimating[Z] = !0;
|
|
5646
5646
|
const X = e.getValue(Z);
|
|
5647
5647
|
X && (X.liveStyle = !1);
|
|
@@ -5651,7 +5651,7 @@ function JD(e) {
|
|
|
5651
5651
|
if (y.hasOwnProperty(Z))
|
|
5652
5652
|
continue;
|
|
5653
5653
|
let G = !1;
|
|
5654
|
-
wy(X) && wy(it) ? G = !bE(X, it) : G = X !== it, G ? X != null ?
|
|
5654
|
+
wy(X) && wy(it) ? G = !bE(X, it) : G = X !== it, G ? X != null ? q(Z) : m.add(Z) : X !== void 0 && m.has(Z) ? q(Z) : S.protectedKeys[Z] = !0;
|
|
5655
5655
|
}
|
|
5656
5656
|
S.prevProp = A, S.prevResolvedValues = j, S.isActive && (y = { ...y, ...j }), r && e.blockInitialAnimation && (N = !1), N && (!(E && O) || R) && d.push(...W.map((Z) => ({
|
|
5657
5657
|
animation: Z,
|
|
@@ -7688,7 +7688,7 @@ const IB = (e, t) => qb(e) ? new $B(t) : new kB(t, {
|
|
|
7688
7688
|
"whileInView",
|
|
7689
7689
|
"animateLayout"
|
|
7690
7690
|
]);
|
|
7691
|
-
function
|
|
7691
|
+
function H(e, t, ...n) {
|
|
7692
7692
|
const { style: r, className: i, ...o } = t || {};
|
|
7693
7693
|
if (o.motion) {
|
|
7694
7694
|
const l = {};
|
|
@@ -8252,15 +8252,15 @@ function tz(e, t, n) {
|
|
|
8252
8252
|
transition: e.cfg.effects.transition
|
|
8253
8253
|
}
|
|
8254
8254
|
},
|
|
8255
|
-
|
|
8255
|
+
H(
|
|
8256
8256
|
"span",
|
|
8257
8257
|
{ style: { display: "flex", alignItems: "center", gap: "8px" } },
|
|
8258
8258
|
l.icon ? e.renderIcon(l.icon, 14, {
|
|
8259
8259
|
color: e.cfg.colors.primary
|
|
8260
8260
|
}) : null,
|
|
8261
|
-
|
|
8261
|
+
H("span", null, l.title)
|
|
8262
8262
|
),
|
|
8263
|
-
|
|
8263
|
+
H(
|
|
8264
8264
|
"span",
|
|
8265
8265
|
{
|
|
8266
8266
|
style: {
|
|
@@ -8330,12 +8330,12 @@ function ez(e, t, n) {
|
|
|
8330
8330
|
h && (t.loadingComponent ? e.renderComponent(t.loadingComponent, 0, n) : _.createElement(
|
|
8331
8331
|
"div",
|
|
8332
8332
|
{ className: "flex justify-center py-4" },
|
|
8333
|
-
|
|
8333
|
+
H("div", {
|
|
8334
8334
|
className: "w-6 h-6 border-2 border-primary border-t-transparent rounded-full animate-spin"
|
|
8335
8335
|
})
|
|
8336
8336
|
)),
|
|
8337
8337
|
!h && d.length === 0 && t.emptyComponent && e.renderComponent(t.emptyComponent, 0, `${n}-empty`),
|
|
8338
|
-
!h && t.selectable && e.sceneData._selectMode && d.length > 0 &&
|
|
8338
|
+
!h && t.selectable && e.sceneData._selectMode && d.length > 0 && H(
|
|
8339
8339
|
"div",
|
|
8340
8340
|
{
|
|
8341
8341
|
key: `${n}-sel-hdr`,
|
|
@@ -8346,7 +8346,7 @@ function ez(e, t, n) {
|
|
|
8346
8346
|
padding: ((P = t.selectionStyle) == null ? void 0 : P.headerPadding) || "0.5rem 2rem"
|
|
8347
8347
|
}
|
|
8348
8348
|
},
|
|
8349
|
-
|
|
8349
|
+
H(
|
|
8350
8350
|
"button",
|
|
8351
8351
|
{
|
|
8352
8352
|
type: "button",
|
|
@@ -8373,11 +8373,11 @@ function ez(e, t, n) {
|
|
|
8373
8373
|
(S) => d.some((A) => String(A.id) === S)
|
|
8374
8374
|
).length === d.filter((S) => S.id).length && d.length > 0 ? "Deselect all" : "Select all"
|
|
8375
8375
|
),
|
|
8376
|
-
(Array.isArray(e.sceneData._selIds) ? e.sceneData._selIds : []).length > 0 ?
|
|
8376
|
+
(Array.isArray(e.sceneData._selIds) ? e.sceneData._selIds : []).length > 0 ? H(
|
|
8377
8377
|
"div",
|
|
8378
8378
|
{ style: { display: "flex", alignItems: "center", gap: "8px" } },
|
|
8379
8379
|
...(Array.isArray(t.selectActions) ? t.selectActions : []).map(
|
|
8380
|
-
(S, A) =>
|
|
8380
|
+
(S, A) => H(
|
|
8381
8381
|
"button",
|
|
8382
8382
|
{
|
|
8383
8383
|
key: A,
|
|
@@ -8417,7 +8417,7 @@ function ez(e, t, n) {
|
|
|
8417
8417
|
e.renderIcon(S.icon, 12)
|
|
8418
8418
|
)
|
|
8419
8419
|
),
|
|
8420
|
-
|
|
8420
|
+
H(
|
|
8421
8421
|
"span",
|
|
8422
8422
|
{
|
|
8423
8423
|
style: { fontSize: "12px", color: e.cfg.colors.textMuted }
|
|
@@ -8446,7 +8446,7 @@ function ez(e, t, n) {
|
|
|
8446
8446
|
return ((dt = t.sort) == null ? void 0 : dt.direction) === "asc" ? -at : at;
|
|
8447
8447
|
}) : d, O = String(e.sceneData.recordingSearchApplied || "").trim().toLowerCase(), [N, R] = String(
|
|
8448
8448
|
e.sceneData.recordingDateFilterApplied || ""
|
|
8449
|
-
).split("|"), W = N ? Date.parse(`${N}T00:00:00`) : 0, j = R ? Date.parse(`${R}T23:59:59.999`) : Number.POSITIVE_INFINITY, D = (it = t.itemsFilter) != null && it.eq ? e.interpolateText(String(t.itemsFilter.eq)) : "",
|
|
8449
|
+
).split("|"), W = N ? Date.parse(`${N}T00:00:00`) : 0, j = R ? Date.parse(`${R}T23:59:59.999`) : Number.POSITIVE_INFINITY, D = (it = t.itemsFilter) != null && it.eq ? e.interpolateText(String(t.itemsFilter.eq)) : "", q = ((G = t.itemsFilter) != null && G.field && D ? E.filter(
|
|
8450
8450
|
(rt) => String(rt == null ? void 0 : rt[t.itemsFilter.field]) === D
|
|
8451
8451
|
) : E).filter((rt) => {
|
|
8452
8452
|
const ot = !O || [rt.url, rt.title, rt.prompt].some(
|
|
@@ -8455,7 +8455,7 @@ function ez(e, t, n) {
|
|
|
8455
8455
|
return ot && at >= W && at <= j;
|
|
8456
8456
|
}), z = {};
|
|
8457
8457
|
if (S)
|
|
8458
|
-
for (const rt of
|
|
8458
|
+
for (const rt of q)
|
|
8459
8459
|
(z[et = C(A(rt))] || (z[et] = [])).push(rt);
|
|
8460
8460
|
const K = (rt, ot) => {
|
|
8461
8461
|
var at, dt, pt, _t, xt, lt, ut, St;
|
|
@@ -8606,7 +8606,7 @@ function ez(e, t, n) {
|
|
|
8606
8606
|
].filter(
|
|
8607
8607
|
(Kt) => typeof Kt == "string" && Kt.trim() && !Kt.includes("{{")
|
|
8608
8608
|
) : [];
|
|
8609
|
-
return zt.text || zt.label || Yt(zt).slice(0, 2).join(" — ") || String(rt.id || ot),
|
|
8609
|
+
return zt.text || zt.label || Yt(zt).slice(0, 2).join(" — ") || String(rt.id || ot), H(
|
|
8610
8610
|
"div",
|
|
8611
8611
|
{
|
|
8612
8612
|
key: `${n}-item-${ot}`,
|
|
@@ -8629,7 +8629,7 @@ function ez(e, t, n) {
|
|
|
8629
8629
|
outline: "none"
|
|
8630
8630
|
}
|
|
8631
8631
|
},
|
|
8632
|
-
|
|
8632
|
+
H(
|
|
8633
8633
|
"div",
|
|
8634
8634
|
{
|
|
8635
8635
|
style: {
|
|
@@ -8639,7 +8639,7 @@ function ez(e, t, n) {
|
|
|
8639
8639
|
pointerEvents: "none"
|
|
8640
8640
|
}
|
|
8641
8641
|
},
|
|
8642
|
-
|
|
8642
|
+
H(
|
|
8643
8643
|
"button",
|
|
8644
8644
|
{
|
|
8645
8645
|
type: "button",
|
|
@@ -8677,7 +8677,7 @@ function ez(e, t, n) {
|
|
|
8677
8677
|
e.renderComponent(zt, ot, `${n}-item`)
|
|
8678
8678
|
);
|
|
8679
8679
|
}
|
|
8680
|
-
return
|
|
8680
|
+
return H(
|
|
8681
8681
|
"div",
|
|
8682
8682
|
{
|
|
8683
8683
|
key: `${n}-row-${ot}`,
|
|
@@ -8692,7 +8692,7 @@ function ez(e, t, n) {
|
|
|
8692
8692
|
return null;
|
|
8693
8693
|
};
|
|
8694
8694
|
return S ? Object.entries(z).map(
|
|
8695
|
-
([rt, ot], at) =>
|
|
8695
|
+
([rt, ot], at) => H(
|
|
8696
8696
|
"div",
|
|
8697
8697
|
{
|
|
8698
8698
|
key: `${n}-group-${at}`,
|
|
@@ -8702,7 +8702,7 @@ function ez(e, t, n) {
|
|
|
8702
8702
|
gap: "6px"
|
|
8703
8703
|
}
|
|
8704
8704
|
},
|
|
8705
|
-
|
|
8705
|
+
H(
|
|
8706
8706
|
"div",
|
|
8707
8707
|
{
|
|
8708
8708
|
key: `${n}-group-hdr-${at}`,
|
|
@@ -8719,9 +8719,9 @@ function ez(e, t, n) {
|
|
|
8719
8719
|
),
|
|
8720
8720
|
ot.map(K)
|
|
8721
8721
|
)
|
|
8722
|
-
) :
|
|
8722
|
+
) : q.map(K);
|
|
8723
8723
|
})(),
|
|
8724
|
-
o && (r == null ? void 0 : r.hasMore) &&
|
|
8724
|
+
o && (r == null ? void 0 : r.hasMore) && H(
|
|
8725
8725
|
"div",
|
|
8726
8726
|
{
|
|
8727
8727
|
"data-bf-scroll-load": n,
|
|
@@ -8734,7 +8734,7 @@ function ez(e, t, n) {
|
|
|
8734
8734
|
...h && ((r == null ? void 0 : r.page) ?? 0) > 0 ? {} : { pointerEvents: "none", opacity: 0.55 }
|
|
8735
8735
|
}
|
|
8736
8736
|
},
|
|
8737
|
-
h && ((r == null ? void 0 : r.page) ?? 0) > 0 ?
|
|
8737
|
+
h && ((r == null ? void 0 : r.page) ?? 0) > 0 ? H("div", {
|
|
8738
8738
|
style: {
|
|
8739
8739
|
width: "18px",
|
|
8740
8740
|
height: "18px",
|
|
@@ -8743,7 +8743,7 @@ function ez(e, t, n) {
|
|
|
8743
8743
|
borderRadius: "50%",
|
|
8744
8744
|
animation: "bf-spin 0.7s linear infinite"
|
|
8745
8745
|
}
|
|
8746
|
-
}) :
|
|
8746
|
+
}) : H("div", {
|
|
8747
8747
|
style: {
|
|
8748
8748
|
width: "18px",
|
|
8749
8749
|
height: "2px",
|
|
@@ -8770,7 +8770,7 @@ function ez(e, t, n) {
|
|
|
8770
8770
|
},
|
|
8771
8771
|
"◀"
|
|
8772
8772
|
),
|
|
8773
|
-
|
|
8773
|
+
H(
|
|
8774
8774
|
"span",
|
|
8775
8775
|
{ className: "text-xs text-gray-500" },
|
|
8776
8776
|
`${r.page + 1} / ${s}`
|
|
@@ -8802,14 +8802,14 @@ function nz({
|
|
|
8802
8802
|
t.rawStyle && Object.assign(l, t.rawStyle);
|
|
8803
8803
|
const c = (D = e.loading) == null ? void 0 : D[n], h = (Y = e.listData) == null ? void 0 : Y[n], u = Array.isArray(h) ? h : [], d = e.renderMode === "css-driven" ? { "data-bf-r": `${e.scopeId}-${n}` } : {}, m = !!t.sortable, y = t.sortMode === "client" ? "client" : "server", [x, p] = _.useState(null), [v, P] = _.useState({}), S = _.useMemo(() => {
|
|
8804
8804
|
if (!x || y !== "client") return u;
|
|
8805
|
-
const
|
|
8805
|
+
const q = x.dir === "asc" ? 1 : -1;
|
|
8806
8806
|
return [...u].sort((z, K) => {
|
|
8807
8807
|
const Z = z[x.key], X = K[x.key];
|
|
8808
|
-
return Z === X ? 0 : Z == null ? 1 : X == null ? -1 : String(Z).localeCompare(String(X), void 0, { numeric: !0 }) *
|
|
8808
|
+
return Z === X ? 0 : Z == null ? 1 : X == null ? -1 : String(Z).localeCompare(String(X), void 0, { numeric: !0 }) * q;
|
|
8809
8809
|
});
|
|
8810
|
-
}, [u, x, y]), A = (
|
|
8811
|
-
if (!m && !
|
|
8812
|
-
const z =
|
|
8810
|
+
}, [u, x, y]), A = (q) => {
|
|
8811
|
+
if (!m && !q.sortable) return;
|
|
8812
|
+
const z = q.field || q.key;
|
|
8813
8813
|
let K = null;
|
|
8814
8814
|
!x || x.key !== z ? K = { key: z, dir: "asc" } : x.dir === "asc" && (K = { key: z, dir: "desc" }), p(K), y === "server" && K && e.fetchListData(
|
|
8815
8815
|
t.dataSource,
|
|
@@ -8819,7 +8819,7 @@ function nz({
|
|
|
8819
8819
|
K.key,
|
|
8820
8820
|
K.dir
|
|
8821
8821
|
);
|
|
8822
|
-
}, C = (
|
|
8822
|
+
}, C = (q, z) => q.replace(
|
|
8823
8823
|
/\{\{([\w.]+)(?:\s*\|\|\s*([^}]+))?\}\}/g,
|
|
8824
8824
|
(K, Z, X) => {
|
|
8825
8825
|
const it = Z.split(".").reduce(
|
|
@@ -8828,9 +8828,9 @@ function nz({
|
|
|
8828
8828
|
);
|
|
8829
8829
|
return it == null || it === "" ? X ?? "" : String(it);
|
|
8830
8830
|
}
|
|
8831
|
-
), w = async (
|
|
8831
|
+
), w = async (q, z) => {
|
|
8832
8832
|
var X;
|
|
8833
|
-
const K = v[
|
|
8833
|
+
const K = v[q.id ?? ""] || {}, Z = z.filter(
|
|
8834
8834
|
(it) => it.editable && K[it.field || it.key] !== void 0
|
|
8835
8835
|
);
|
|
8836
8836
|
for (const it of Z) {
|
|
@@ -8841,9 +8841,9 @@ function nz({
|
|
|
8841
8841
|
JSON.stringify(K[G])
|
|
8842
8842
|
);
|
|
8843
8843
|
if (rt.startsWith("sdk:"))
|
|
8844
|
-
await e.handleButtonClick(C(rt,
|
|
8844
|
+
await e.handleButtonClick(C(rt, q), {});
|
|
8845
8845
|
else {
|
|
8846
|
-
const ot = C(rt,
|
|
8846
|
+
const ot = C(rt, q);
|
|
8847
8847
|
await fetch(ot, {
|
|
8848
8848
|
method: "PATCH",
|
|
8849
8849
|
headers: { "Content-Type": "application/json" },
|
|
@@ -8853,21 +8853,21 @@ function nz({
|
|
|
8853
8853
|
}
|
|
8854
8854
|
Z.length && ((X = e.showToast) == null || X.call(e, (Z.length === 1, "Saved"), "success"), P((it) => {
|
|
8855
8855
|
const G = { ...it };
|
|
8856
|
-
return delete G[
|
|
8856
|
+
return delete G[q.id ?? ""], G;
|
|
8857
8857
|
}), e.fetchListData(
|
|
8858
8858
|
t.dataSource,
|
|
8859
8859
|
n,
|
|
8860
8860
|
(r == null ? void 0 : r.page) || 0,
|
|
8861
8861
|
(r == null ? void 0 : r.limit) || t.pageSize || 10
|
|
8862
8862
|
));
|
|
8863
|
-
}, E = (
|
|
8864
|
-
const Z = z.field || z.key, X =
|
|
8863
|
+
}, E = (q, z, K) => {
|
|
8864
|
+
const Z = z.field || z.key, X = q.id ?? "";
|
|
8865
8865
|
P((it) => ({
|
|
8866
8866
|
...it,
|
|
8867
8867
|
[X]: { ...it[X] || {}, [Z]: K }
|
|
8868
8868
|
}));
|
|
8869
|
-
}, O = (
|
|
8870
|
-
const K =
|
|
8869
|
+
}, O = (q, z) => {
|
|
8870
|
+
const K = q.field || q.key, Z = z.id ?? "", X = v[Z] || {}, it = X[K] !== void 0 ? X[K] : z[K], G = q.fieldType || "text", et = {
|
|
8871
8871
|
style: {
|
|
8872
8872
|
width: "100%",
|
|
8873
8873
|
background: "transparent",
|
|
@@ -8879,17 +8879,17 @@ function nz({
|
|
|
8879
8879
|
fontFamily: "inherit"
|
|
8880
8880
|
}
|
|
8881
8881
|
}, rt = () => {
|
|
8882
|
-
|
|
8882
|
+
q.onCellChange && X[q.key] !== void 0 && w(z, [q]);
|
|
8883
8883
|
};
|
|
8884
8884
|
if (G === "select" || G === "dropdown")
|
|
8885
|
-
return
|
|
8885
|
+
return H("select", {
|
|
8886
8886
|
...et,
|
|
8887
8887
|
value: String(it ?? ""),
|
|
8888
8888
|
onChange: (ot) => {
|
|
8889
|
-
E(z,
|
|
8889
|
+
E(z, q, ot.target.value), q.onCellChange && w(z, [q]);
|
|
8890
8890
|
},
|
|
8891
|
-
children: (Array.isArray(
|
|
8892
|
-
(ot, at) =>
|
|
8891
|
+
children: (Array.isArray(q.fieldOptions) ? q.fieldOptions : []).map(
|
|
8892
|
+
(ot, at) => H("option", {
|
|
8893
8893
|
key: at,
|
|
8894
8894
|
value: ot.value,
|
|
8895
8895
|
children: ot.label ?? ot.value
|
|
@@ -8898,7 +8898,7 @@ function nz({
|
|
|
8898
8898
|
});
|
|
8899
8899
|
if (G === "multiselect") {
|
|
8900
8900
|
const ot = Array.isArray(it) ? it : [];
|
|
8901
|
-
return
|
|
8901
|
+
return H(
|
|
8902
8902
|
"div",
|
|
8903
8903
|
{
|
|
8904
8904
|
style: {
|
|
@@ -8907,10 +8907,10 @@ function nz({
|
|
|
8907
8907
|
gap: 2
|
|
8908
8908
|
}
|
|
8909
8909
|
},
|
|
8910
|
-
(Array.isArray(
|
|
8910
|
+
(Array.isArray(q.fieldOptions) ? q.fieldOptions : []).map(
|
|
8911
8911
|
(at, dt) => {
|
|
8912
8912
|
const pt = ot.includes(at.value);
|
|
8913
|
-
return
|
|
8913
|
+
return H(
|
|
8914
8914
|
"label",
|
|
8915
8915
|
{
|
|
8916
8916
|
key: dt,
|
|
@@ -8921,21 +8921,21 @@ function nz({
|
|
|
8921
8921
|
fontSize: 12
|
|
8922
8922
|
}
|
|
8923
8923
|
},
|
|
8924
|
-
|
|
8924
|
+
H("input", {
|
|
8925
8925
|
type: "checkbox",
|
|
8926
8926
|
checked: pt,
|
|
8927
8927
|
onChange: (_t) => {
|
|
8928
8928
|
const xt = _t.target.checked ? [...ot, at.value] : ot.filter((lt) => lt !== at.value);
|
|
8929
|
-
E(z,
|
|
8929
|
+
E(z, q, xt), q.onCellChange && w(z, [q]);
|
|
8930
8930
|
}
|
|
8931
8931
|
}),
|
|
8932
|
-
|
|
8932
|
+
H("span", { children: at.label ?? at.value })
|
|
8933
8933
|
);
|
|
8934
8934
|
}
|
|
8935
8935
|
)
|
|
8936
8936
|
);
|
|
8937
8937
|
}
|
|
8938
|
-
return G === "image" ?
|
|
8938
|
+
return G === "image" ? H(
|
|
8939
8939
|
"div",
|
|
8940
8940
|
{
|
|
8941
8941
|
style: {
|
|
@@ -8944,9 +8944,9 @@ function nz({
|
|
|
8944
8944
|
gap: 6
|
|
8945
8945
|
}
|
|
8946
8946
|
},
|
|
8947
|
-
it ?
|
|
8947
|
+
it ? H("img", {
|
|
8948
8948
|
src: String(it),
|
|
8949
|
-
alt:
|
|
8949
|
+
alt: q.label,
|
|
8950
8950
|
style: {
|
|
8951
8951
|
width: 32,
|
|
8952
8952
|
height: 32,
|
|
@@ -8954,27 +8954,27 @@ function nz({
|
|
|
8954
8954
|
objectFit: "cover"
|
|
8955
8955
|
}
|
|
8956
8956
|
}) : null,
|
|
8957
|
-
|
|
8957
|
+
H("input", {
|
|
8958
8958
|
...et,
|
|
8959
8959
|
value: String(it ?? ""),
|
|
8960
|
-
placeholder:
|
|
8961
|
-
onChange: (ot) => E(z,
|
|
8960
|
+
placeholder: q.fieldPlaceholder || "Image URL",
|
|
8961
|
+
onChange: (ot) => E(z, q, ot.target.value),
|
|
8962
8962
|
onBlur: rt
|
|
8963
8963
|
})
|
|
8964
|
-
) :
|
|
8964
|
+
) : H("input", {
|
|
8965
8965
|
...et,
|
|
8966
8966
|
type: G === "number" ? "number" : "text",
|
|
8967
8967
|
value: String(it ?? ""),
|
|
8968
|
-
placeholder:
|
|
8968
|
+
placeholder: q.fieldPlaceholder || "",
|
|
8969
8969
|
onChange: (ot) => E(
|
|
8970
8970
|
z,
|
|
8971
|
-
|
|
8971
|
+
q,
|
|
8972
8972
|
G === "number" ? Number(ot.target.value) : ot.target.value
|
|
8973
8973
|
),
|
|
8974
8974
|
onBlur: rt
|
|
8975
8975
|
});
|
|
8976
|
-
}, N = (
|
|
8977
|
-
const z = v[
|
|
8976
|
+
}, N = (q) => {
|
|
8977
|
+
const z = v[q.id ?? ""];
|
|
8978
8978
|
return !!z && Object.keys(z).some(
|
|
8979
8979
|
(K) => {
|
|
8980
8980
|
var Z;
|
|
@@ -8996,7 +8996,7 @@ function nz({
|
|
|
8996
8996
|
c && (t.loadingComponent ? e.renderComponent(t.loadingComponent, 0, n) : _.createElement(
|
|
8997
8997
|
"div",
|
|
8998
8998
|
{ className: "flex justify-center py-4" },
|
|
8999
|
-
|
|
8999
|
+
H("div", {
|
|
9000
9000
|
className: "w-6 h-6 border-2 border-primary border-t-transparent rounded-full animate-spin"
|
|
9001
9001
|
})
|
|
9002
9002
|
)),
|
|
@@ -9010,17 +9010,17 @@ function nz({
|
|
|
9010
9010
|
"tr",
|
|
9011
9011
|
{},
|
|
9012
9012
|
t.columns.map(
|
|
9013
|
-
(
|
|
9013
|
+
(q) => _.createElement(
|
|
9014
9014
|
"th",
|
|
9015
9015
|
{
|
|
9016
|
-
key:
|
|
9016
|
+
key: q.key,
|
|
9017
9017
|
className: "px-4 py-3 text-left text-sm font-medium text-gray-400"
|
|
9018
9018
|
},
|
|
9019
|
-
(m ||
|
|
9020
|
-
const z = x && x.key ===
|
|
9021
|
-
return
|
|
9019
|
+
(m || q.sortable) && q.sortable !== !1 ? (() => {
|
|
9020
|
+
const z = x && x.key === q.key ? x : null;
|
|
9021
|
+
return H("button", {
|
|
9022
9022
|
type: "button",
|
|
9023
|
-
onClick: () => A(
|
|
9023
|
+
onClick: () => A(q),
|
|
9024
9024
|
style: {
|
|
9025
9025
|
background: "none",
|
|
9026
9026
|
border: "none",
|
|
@@ -9030,9 +9030,9 @@ function nz({
|
|
|
9030
9030
|
cursor: "pointer",
|
|
9031
9031
|
padding: 0
|
|
9032
9032
|
},
|
|
9033
|
-
children: `${
|
|
9033
|
+
children: `${q.label || q.key}${z ? z.dir === "asc" ? " ↑" : " ↓" : " ⇅"}`
|
|
9034
9034
|
});
|
|
9035
|
-
})() :
|
|
9035
|
+
})() : q.label || q.key
|
|
9036
9036
|
)
|
|
9037
9037
|
),
|
|
9038
9038
|
R && _.createElement(
|
|
@@ -9049,22 +9049,22 @@ function nz({
|
|
|
9049
9049
|
"tbody",
|
|
9050
9050
|
{ className: "divide-y divide-gray-700/50" },
|
|
9051
9051
|
S.map(
|
|
9052
|
-
(
|
|
9052
|
+
(q, z) => {
|
|
9053
9053
|
var K;
|
|
9054
9054
|
return _.createElement(
|
|
9055
9055
|
"tr",
|
|
9056
9056
|
{
|
|
9057
|
-
key:
|
|
9057
|
+
key: q.id ?? z,
|
|
9058
9058
|
className: "hover:bg-gray-700/30 transition-colors"
|
|
9059
9059
|
},
|
|
9060
9060
|
(K = t.columns) == null ? void 0 : K.map(
|
|
9061
9061
|
(Z) => _.createElement(
|
|
9062
9062
|
"td",
|
|
9063
9063
|
{ key: Z.key, className: "px-4 py-3 text-sm text-white" },
|
|
9064
|
-
Z.editable ? O(Z,
|
|
9064
|
+
Z.editable ? O(Z, q) : Z.template ? C(Z.template, q) : (() => {
|
|
9065
9065
|
const it = (Z.field || Z.key).split(".").reduce(
|
|
9066
9066
|
(G, et) => G == null ? void 0 : G[et],
|
|
9067
|
-
|
|
9067
|
+
q
|
|
9068
9068
|
);
|
|
9069
9069
|
return it == null || it === "" ? "" : String(it);
|
|
9070
9070
|
})()
|
|
@@ -9073,14 +9073,14 @@ function nz({
|
|
|
9073
9073
|
R && _.createElement(
|
|
9074
9074
|
"td",
|
|
9075
9075
|
{ key: "__save-cell", className: "px-4 py-3 text-sm" },
|
|
9076
|
-
|
|
9076
|
+
H("button", {
|
|
9077
9077
|
type: "button",
|
|
9078
|
-
disabled: !N(
|
|
9079
|
-
onClick: () => w(
|
|
9078
|
+
disabled: !N(q) || c,
|
|
9079
|
+
onClick: () => w(q, t.columns || []),
|
|
9080
9080
|
className: "px-3 py-1 rounded text-xs font-semibold border transition-all disabled:opacity-40 disabled:cursor-not-allowed",
|
|
9081
9081
|
style: {
|
|
9082
|
-
background: N(
|
|
9083
|
-
color: N(
|
|
9082
|
+
background: N(q) ? e.cfg.colors.primary : "transparent",
|
|
9083
|
+
color: N(q) ? "#ffffff" : e.cfg.colors.textSecondary,
|
|
9084
9084
|
borderColor: e.cfg.colors.border
|
|
9085
9085
|
},
|
|
9086
9086
|
children: "Save"
|
|
@@ -9108,7 +9108,7 @@ function nz({
|
|
|
9108
9108
|
},
|
|
9109
9109
|
"◀"
|
|
9110
9110
|
),
|
|
9111
|
-
|
|
9111
|
+
H(
|
|
9112
9112
|
"span",
|
|
9113
9113
|
{ className: "text-xs text-gray-500" },
|
|
9114
9114
|
`${r.page + 1} / ${o}`
|
|
@@ -9728,9 +9728,9 @@ class P_ {
|
|
|
9728
9728
|
const { context: o, bitmapSize: s, mediaSize: l, horizontalPixelRatio: c, verticalPixelRatio: h } = t, u = this.qt.pi || !this.qt.Pi ? n.C : 0, d = this.qt.ki ? n.S : 0, m = n.A + this.ei.Ti, y = n.I + this.ei.Ri, x = n.V, p = n.B, v = this.qt.ri, P = n.P, S = r.Di(o, v), A = Math.ceil(r.Ii(o, v)), C = P + m + y, w = n.S + x + p + A + u, E = Math.max(1, Math.floor(h));
|
|
9729
9729
|
let O = Math.round(C * h);
|
|
9730
9730
|
O % 2 != E % 2 && (O += 1);
|
|
9731
|
-
const N = d > 0 ? Math.max(1, Math.floor(d * c)) : 0, R = Math.round(w * c), W = Math.round(u * c), j = this.ei.Vi ?? this.ei.Bi ?? this.ei.Ei, D = Math.round(j * h) - Math.floor(0.5 * h), Y = Math.floor(D + E / 2 - O / 2),
|
|
9731
|
+
const N = d > 0 ? Math.max(1, Math.floor(d * c)) : 0, R = Math.round(w * c), W = Math.round(u * c), j = this.ei.Vi ?? this.ei.Bi ?? this.ei.Ei, D = Math.round(j * h) - Math.floor(0.5 * h), Y = Math.floor(D + E / 2 - O / 2), q = Y + O, z = i === "right", K = z ? l.width - d : d, Z = z ? s.width - N : N;
|
|
9732
9732
|
let X, it, G;
|
|
9733
|
-
return z ? (X = Z - R, it = Z - W, G = K - u - x - d) : (X = Z + R, it = Z + W, G = K + u + x), { li: z, ai: { _i: Y, mi: D, Si:
|
|
9733
|
+
return z ? (X = Z - R, it = Z - W, G = K - u - x - d) : (X = Z + R, it = Z + W, G = K + u + x), { li: z, ai: { _i: Y, mi: D, Si: q, ui: R, ci: O, ft: 2 * c, di: N, oi: X, fi: Z, wi: it, Mi: E, bi: s.width }, xi: { _i: Y / h, Si: q / h, Ci: G, yi: S } };
|
|
9734
9734
|
}
|
|
9735
9735
|
}
|
|
9736
9736
|
class zp {
|
|
@@ -15578,7 +15578,7 @@ function QC(e, t, n, r, i, o, s, l = 0) {
|
|
|
15578
15578
|
case 2: {
|
|
15579
15579
|
const [E, O] = T0(t, S - 1, S), N = E._t * h, R = E.ut * u, W = O._t * h, j = O.ut * u;
|
|
15580
15580
|
if (c.bezierCurveTo(N, R, W, j, A, C), x) {
|
|
15581
|
-
const D = t[S - 1], Y = D._t * h,
|
|
15581
|
+
const D = t[S - 1], Y = D._t * h, q = D.ut * u, z = ru(Y, q, A, C), K = ru(Y, q, N, R) + ru(N, R, W, j) + ru(W, j, A, C);
|
|
15582
15582
|
p += (z + K) / 2;
|
|
15583
15583
|
}
|
|
15584
15584
|
break;
|
|
@@ -16413,7 +16413,7 @@ function iV() {
|
|
|
16413
16413
|
}
|
|
16414
16414
|
}
|
|
16415
16415
|
}
|
|
16416
|
-
var E = s, O = o, N = e, R = c, W = n, j = m, D = d, Y = t,
|
|
16416
|
+
var E = s, O = o, N = e, R = c, W = n, j = m, D = d, Y = t, q = i, z = r, K = h, Z = u, X = !1, it = !1;
|
|
16417
16417
|
function G(mt) {
|
|
16418
16418
|
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
16419
16419
|
}
|
|
@@ -16456,7 +16456,7 @@ function iV() {
|
|
|
16456
16456
|
function Mt(mt) {
|
|
16457
16457
|
return w(mt) === u;
|
|
16458
16458
|
}
|
|
16459
|
-
ye.ContextConsumer = E, ye.ContextProvider = O, ye.Element = N, ye.ForwardRef = R, ye.Fragment = W, ye.Lazy = j, ye.Memo = D, ye.Portal = Y, ye.Profiler =
|
|
16459
|
+
ye.ContextConsumer = E, ye.ContextProvider = O, ye.Element = N, ye.ForwardRef = R, ye.Fragment = W, ye.Lazy = j, ye.Memo = D, ye.Portal = Y, ye.Profiler = q, ye.StrictMode = z, ye.Suspense = K, ye.SuspenseList = Z, ye.isAsyncMode = G, ye.isConcurrentMode = et, ye.isContextConsumer = rt, ye.isContextProvider = ot, ye.isElement = at, ye.isForwardRef = dt, ye.isFragment = pt, ye.isLazy = _t, ye.isMemo = xt, ye.isPortal = lt, ye.isProfiler = ut, ye.isStrictMode = St, ye.isSuspense = nt, ye.isSuspenseList = Mt, ye.isValidElementType = C, ye.typeOf = w;
|
|
16460
16460
|
}()), ye;
|
|
16461
16461
|
}
|
|
16462
16462
|
process.env.NODE_ENV === "production" ? Uy.exports = rV() : Uy.exports = iV();
|
|
@@ -19263,17 +19263,17 @@ var WZ = function(t) {
|
|
|
19263
19263
|
var D = {
|
|
19264
19264
|
padding: 0,
|
|
19265
19265
|
margin: 0
|
|
19266
|
-
}, Y = (m ? G0(u, m) : u).map(function(
|
|
19267
|
-
if (
|
|
19266
|
+
}, Y = (m ? G0(u, m) : u).map(function(q, z) {
|
|
19267
|
+
if (q.type === "none")
|
|
19268
19268
|
return null;
|
|
19269
19269
|
var K = Rg({
|
|
19270
19270
|
display: "block",
|
|
19271
19271
|
paddingTop: 4,
|
|
19272
19272
|
paddingBottom: 4,
|
|
19273
|
-
color:
|
|
19274
|
-
}, l), Z =
|
|
19273
|
+
color: q.color || "#000"
|
|
19274
|
+
}, l), Z = q.formatter || d || FZ, X = q.value, it = q.name, G = X, et = it;
|
|
19275
19275
|
if (Z && G != null && et != null) {
|
|
19276
|
-
var rt = Z(X, it,
|
|
19276
|
+
var rt = Z(X, it, q, z, u);
|
|
19277
19277
|
if (Array.isArray(rt)) {
|
|
19278
19278
|
var ot = IZ(rt, 2);
|
|
19279
19279
|
G = ot[0], et = ot[1];
|
|
@@ -19294,7 +19294,7 @@ var WZ = function(t) {
|
|
|
19294
19294
|
className: "recharts-tooltip-item-value"
|
|
19295
19295
|
}, G), /* @__PURE__ */ _.createElement("span", {
|
|
19296
19296
|
className: "recharts-tooltip-item-unit"
|
|
19297
|
-
},
|
|
19297
|
+
}, q.unit || ""))
|
|
19298
19298
|
);
|
|
19299
19299
|
});
|
|
19300
19300
|
return /* @__PURE__ */ _.createElement("ul", {
|
|
@@ -19979,9 +19979,9 @@ var im = /* @__PURE__ */ Ea(function(e, t) {
|
|
|
19979
19979
|
var O = hs({
|
|
19980
19980
|
containerWidth: i.width,
|
|
19981
19981
|
containerHeight: i.height
|
|
19982
|
-
}), N = qY(O, 2), R = N[0], W = N[1], j = Th(function(Y,
|
|
19982
|
+
}), N = qY(O, 2), R = N[0], W = N[1], j = Th(function(Y, q) {
|
|
19983
19983
|
W(function(z) {
|
|
19984
|
-
var K = Math.round(Y), Z = Math.round(
|
|
19984
|
+
var K = Math.round(Y), Z = Math.round(q);
|
|
19985
19985
|
return z.containerWidth === K && z.containerHeight === Z ? z : {
|
|
19986
19986
|
containerWidth: K,
|
|
19987
19987
|
containerHeight: Z
|
|
@@ -19997,18 +19997,18 @@ var im = /* @__PURE__ */ Ea(function(e, t) {
|
|
|
19997
19997
|
trailing: !0,
|
|
19998
19998
|
leading: !1
|
|
19999
19999
|
}));
|
|
20000
|
-
var
|
|
20001
|
-
return j(K, Z),
|
|
20002
|
-
|
|
20000
|
+
var q = new ResizeObserver(Y), z = w.current.getBoundingClientRect(), K = z.width, Z = z.height;
|
|
20001
|
+
return j(K, Z), q.observe(w.current), function() {
|
|
20002
|
+
q.disconnect();
|
|
20003
20003
|
};
|
|
20004
20004
|
}, [j, p]);
|
|
20005
20005
|
var D = ho(function() {
|
|
20006
|
-
var Y = R.containerWidth,
|
|
20007
|
-
if (Y < 0 ||
|
|
20006
|
+
var Y = R.containerWidth, q = R.containerHeight;
|
|
20007
|
+
if (Y < 0 || q < 0)
|
|
20008
20008
|
return null;
|
|
20009
20009
|
ai(oa(s) || oa(c), `The width(%s) and height(%s) are both fixed numbers,
|
|
20010
20010
|
maybe you don't need to use a ResponsiveContainer.`, s, c), ai(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
|
|
20011
|
-
var z = oa(s) ? Y : s, K = oa(c) ?
|
|
20011
|
+
var z = oa(s) ? Y : s, K = oa(c) ? q : c;
|
|
20012
20012
|
n && n > 0 && (z ? K = z / n : K && (z = K * n), m && K > m && (K = m)), ai(z > 0 || K > 0, `The width(%s) and height(%s) of chart should be greater than 0,
|
|
20013
20013
|
please check the style of container, or the props width(%s) and height(%s),
|
|
20014
20014
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
@@ -20501,8 +20501,8 @@ var vM = /[ \f\n\r\t\v\u2028\u2029]+/, bM = function(t) {
|
|
|
20501
20501
|
}
|
|
20502
20502
|
var Y = [];
|
|
20503
20503
|
if (d) {
|
|
20504
|
-
var
|
|
20505
|
-
Y.push("scale(".concat((gt(z) ? z /
|
|
20504
|
+
var q = A[0].width, z = S.width;
|
|
20505
|
+
Y.push("scale(".concat((gt(z) ? z / q : 1) / q, ")"));
|
|
20506
20506
|
}
|
|
20507
20507
|
return E && Y.push("rotate(".concat(E, ", ").concat(W, ", ").concat(j, ")")), Y.length && (R.transform = Y.join(" ")), /* @__PURE__ */ _.createElement("text", yv({}, kt(R, !0), {
|
|
20508
20508
|
x: W,
|
|
@@ -21381,34 +21381,34 @@ function _X(e) {
|
|
|
21381
21381
|
var O = (m && m.prefix !== void 0 ? m.prefix : "") + (v === "$" ? n : v === "#" && /[boxX]/.test(E) ? "0" + E.toLowerCase() : ""), N = (v === "$" ? r : /[%p]/.test(E) ? s : "") + (m && m.suffix !== void 0 ? m.suffix : ""), R = tP[E], W = /[defgprs%]/.test(E);
|
|
21382
21382
|
C = C === void 0 ? 6 : /[gprs]/.test(E) ? Math.max(1, Math.min(21, C)) : Math.max(0, Math.min(20, C));
|
|
21383
21383
|
function j(D) {
|
|
21384
|
-
var Y = O,
|
|
21384
|
+
var Y = O, q = N, z, K, Z;
|
|
21385
21385
|
if (E === "c")
|
|
21386
|
-
|
|
21386
|
+
q = R(D) + q, D = "";
|
|
21387
21387
|
else {
|
|
21388
21388
|
D = +D;
|
|
21389
21389
|
var X = D < 0 || 1 / D < 0;
|
|
21390
|
-
if (D = isNaN(D) ? c : R(Math.abs(D), C), w && (D = xX(D)), X && +D == 0 && p !== "+" && (X = !1), Y = (X ? p === "(" ? p : l : p === "-" || p === "(" ? "" : p) + Y,
|
|
21390
|
+
if (D = isNaN(D) ? c : R(Math.abs(D), C), w && (D = xX(D)), X && +D == 0 && p !== "+" && (X = !1), Y = (X ? p === "(" ? p : l : p === "-" || p === "(" ? "" : p) + Y, q = (E === "s" && !isNaN(D) && Dd !== void 0 ? rP[8 + Dd / 3] : "") + q + (X && p === "(" ? ")" : ""), W) {
|
|
21391
21391
|
for (z = -1, K = D.length; ++z < K; )
|
|
21392
21392
|
if (Z = D.charCodeAt(z), 48 > Z || Z > 57) {
|
|
21393
|
-
|
|
21393
|
+
q = (Z === 46 ? i + D.slice(z + 1) : D.slice(z)) + q, D = D.slice(0, z);
|
|
21394
21394
|
break;
|
|
21395
21395
|
}
|
|
21396
21396
|
}
|
|
21397
21397
|
}
|
|
21398
21398
|
A && !P && (D = t(D, 1 / 0));
|
|
21399
|
-
var it = Y.length + D.length +
|
|
21400
|
-
switch (A && P && (D = t(G + D, G.length ? S -
|
|
21399
|
+
var it = Y.length + D.length + q.length, G = it < S ? new Array(S - it + 1).join(y) : "";
|
|
21400
|
+
switch (A && P && (D = t(G + D, G.length ? S - q.length : 1 / 0), G = ""), x) {
|
|
21401
21401
|
case "<":
|
|
21402
|
-
D = Y + D +
|
|
21402
|
+
D = Y + D + q + G;
|
|
21403
21403
|
break;
|
|
21404
21404
|
case "=":
|
|
21405
|
-
D = Y + G + D +
|
|
21405
|
+
D = Y + G + D + q;
|
|
21406
21406
|
break;
|
|
21407
21407
|
case "^":
|
|
21408
|
-
D = G.slice(0, it = G.length >> 1) + Y + D +
|
|
21408
|
+
D = G.slice(0, it = G.length >> 1) + Y + D + q + G.slice(it);
|
|
21409
21409
|
break;
|
|
21410
21410
|
default:
|
|
21411
|
-
D = G + Y + D +
|
|
21411
|
+
D = G + Y + D + q;
|
|
21412
21412
|
break;
|
|
21413
21413
|
}
|
|
21414
21414
|
return o(D);
|
|
@@ -22026,7 +22026,7 @@ function ZX(e) {
|
|
|
22026
22026
|
A: j,
|
|
22027
22027
|
b: D,
|
|
22028
22028
|
B: Y,
|
|
22029
|
-
c:
|
|
22029
|
+
c: q,
|
|
22030
22030
|
d: mP,
|
|
22031
22031
|
e: mP,
|
|
22032
22032
|
f: uJ,
|
|
@@ -22107,7 +22107,7 @@ function ZX(e) {
|
|
|
22107
22107
|
var nt = p.exec(ut.slice(St));
|
|
22108
22108
|
return nt ? (lt.m = v.get(nt[0].toLowerCase()), St + nt[0].length) : -1;
|
|
22109
22109
|
}
|
|
22110
|
-
function
|
|
22110
|
+
function q(lt, ut, St) {
|
|
22111
22111
|
return N(lt, t, ut, St);
|
|
22112
22112
|
}
|
|
22113
22113
|
function z(lt, ut, St) {
|
|
@@ -23529,16 +23529,16 @@ var Wh = /* @__PURE__ */ function(e) {
|
|
|
23529
23529
|
} else
|
|
23530
23530
|
E = O = C;
|
|
23531
23531
|
if (o === "vertical") {
|
|
23532
|
-
var R = u.scale, W = S + i, j = W + s, D = W - s, Y = R(A - E),
|
|
23532
|
+
var R = u.scale, W = S + i, j = W + s, D = W - s, Y = R(A - E), q = R(A + O);
|
|
23533
23533
|
w.push({
|
|
23534
|
-
x1:
|
|
23534
|
+
x1: q,
|
|
23535
23535
|
y1: j,
|
|
23536
|
-
x2:
|
|
23536
|
+
x2: q,
|
|
23537
23537
|
y2: D
|
|
23538
23538
|
}), w.push({
|
|
23539
23539
|
x1: Y,
|
|
23540
23540
|
y1: W,
|
|
23541
|
-
x2:
|
|
23541
|
+
x2: q,
|
|
23542
23542
|
y2: W
|
|
23543
23543
|
}), w.push({
|
|
23544
23544
|
x1: Y,
|
|
@@ -25121,12 +25121,12 @@ var Het = function(t, n) {
|
|
|
25121
25121
|
isExternal: !0,
|
|
25122
25122
|
cornerRadius: s,
|
|
25123
25123
|
cornerIsExternal: c
|
|
25124
|
-
}), j = W.circleTangency, D = W.lineTangency, Y = W.theta,
|
|
25125
|
-
if (
|
|
25124
|
+
}), j = W.circleTangency, D = W.lineTangency, Y = W.theta, q = c ? Math.abs(h - u) : Math.abs(h - u) - R - Y;
|
|
25125
|
+
if (q < 0 && s === 0)
|
|
25126
25126
|
return "".concat(w, "L").concat(n, ",").concat(r, "Z");
|
|
25127
25127
|
w += "L".concat(D.x, ",").concat(D.y, `
|
|
25128
25128
|
A`).concat(s, ",").concat(s, ",0,0,").concat(+(d < 0), ",").concat(j.x, ",").concat(j.y, `
|
|
25129
|
-
A`).concat(i, ",").concat(i, ",0,").concat(+(
|
|
25129
|
+
A`).concat(i, ",").concat(i, ",0,").concat(+(q > 180), ",").concat(+(d > 0), ",").concat(O.x, ",").concat(O.y, `
|
|
25130
25130
|
A`).concat(s, ",").concat(s, ",0,0,").concat(+(d < 0), ",").concat(N.x, ",").concat(N.y, "Z");
|
|
25131
25131
|
} else
|
|
25132
25132
|
w += "L".concat(n, ",").concat(r, "Z");
|
|
@@ -25403,7 +25403,7 @@ function tnt() {
|
|
|
25403
25403
|
}
|
|
25404
25404
|
}
|
|
25405
25405
|
}
|
|
25406
|
-
var w = c, E = h, O = l, N = s, R = t, W = u, j = r, D = x, Y = y,
|
|
25406
|
+
var w = c, E = h, O = l, N = s, R = t, W = u, j = r, D = x, Y = y, q = n, z = o, K = i, Z = d, X = !1;
|
|
25407
25407
|
function it(nt) {
|
|
25408
25408
|
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(nt) || C(nt) === c;
|
|
25409
25409
|
}
|
|
@@ -25443,7 +25443,7 @@ function tnt() {
|
|
|
25443
25443
|
function St(nt) {
|
|
25444
25444
|
return C(nt) === d;
|
|
25445
25445
|
}
|
|
25446
|
-
be.AsyncMode = w, be.ConcurrentMode = E, be.ContextConsumer = O, be.ContextProvider = N, be.Element = R, be.ForwardRef = W, be.Fragment = j, be.Lazy = D, be.Memo = Y, be.Portal =
|
|
25446
|
+
be.AsyncMode = w, be.ConcurrentMode = E, be.ContextConsumer = O, be.ContextProvider = N, be.Element = R, be.ForwardRef = W, be.Fragment = j, be.Lazy = D, be.Memo = Y, be.Portal = q, be.Profiler = z, be.StrictMode = K, be.Suspense = Z, be.isAsyncMode = it, be.isConcurrentMode = G, be.isContextConsumer = et, be.isContextProvider = rt, be.isElement = ot, be.isForwardRef = at, be.isFragment = dt, be.isLazy = pt, be.isMemo = _t, be.isPortal = xt, be.isProfiler = lt, be.isStrictMode = ut, be.isSuspense = St, be.isValidElementType = A, be.typeOf = C;
|
|
25447
25447
|
}()), be;
|
|
25448
25448
|
}
|
|
25449
25449
|
var YP;
|
|
@@ -25761,7 +25761,7 @@ function rnt() {
|
|
|
25761
25761
|
}
|
|
25762
25762
|
function W() {
|
|
25763
25763
|
function G(et, rt, ot, at, dt) {
|
|
25764
|
-
return
|
|
25764
|
+
return q(et[rt]) ? null : new p("Invalid " + at + " `" + dt + "` supplied to " + ("`" + ot + "`, expected a ReactNode."));
|
|
25765
25765
|
}
|
|
25766
25766
|
return v(G);
|
|
25767
25767
|
}
|
|
@@ -25810,7 +25810,7 @@ Valid keys: ` + JSON.stringify(Object.keys(G), null, " ")
|
|
|
25810
25810
|
}
|
|
25811
25811
|
return v(et);
|
|
25812
25812
|
}
|
|
25813
|
-
function
|
|
25813
|
+
function q(G) {
|
|
25814
25814
|
switch (typeof G) {
|
|
25815
25815
|
case "number":
|
|
25816
25816
|
case "string":
|
|
@@ -25820,7 +25820,7 @@ Valid keys: ` + JSON.stringify(Object.keys(G), null, " ")
|
|
|
25820
25820
|
return !G;
|
|
25821
25821
|
case "object":
|
|
25822
25822
|
if (Array.isArray(G))
|
|
25823
|
-
return G.every(
|
|
25823
|
+
return G.every(q);
|
|
25824
25824
|
if (G === null || l(G))
|
|
25825
25825
|
return !0;
|
|
25826
25826
|
var et = d(G);
|
|
@@ -25828,12 +25828,12 @@ Valid keys: ` + JSON.stringify(Object.keys(G), null, " ")
|
|
|
25828
25828
|
var rt = et.call(G), ot;
|
|
25829
25829
|
if (et !== G.entries) {
|
|
25830
25830
|
for (; !(ot = rt.next()).done; )
|
|
25831
|
-
if (!
|
|
25831
|
+
if (!q(ot.value))
|
|
25832
25832
|
return !1;
|
|
25833
25833
|
} else
|
|
25834
25834
|
for (; !(ot = rt.next()).done; ) {
|
|
25835
25835
|
var at = ot.value;
|
|
25836
|
-
if (at && !
|
|
25836
|
+
if (at && !q(at[1]))
|
|
25837
25837
|
return !1;
|
|
25838
25838
|
}
|
|
25839
25839
|
} else
|
|
@@ -28739,7 +28739,7 @@ Ur(So, "getComposedData", function(e) {
|
|
|
28739
28739
|
E = i.map(function(N, R) {
|
|
28740
28740
|
var W = Xe(N, P, 0), j = Xe(N, u, R), D = (gt(W) ? W : 0) / w, Y;
|
|
28741
28741
|
R ? Y = O.endAngle + Yn(p) * c * (W !== 0 ? 1 : 0) : Y = s;
|
|
28742
|
-
var
|
|
28742
|
+
var q = Y + Yn(p) * ((W !== 0 ? y : 0) + D * C), z = (Y + q) / 2, K = (x.innerRadius + x.outerRadius) / 2, Z = [{
|
|
28743
28743
|
name: j,
|
|
28744
28744
|
value: W,
|
|
28745
28745
|
payload: N,
|
|
@@ -28757,7 +28757,7 @@ Ur(So, "getComposedData", function(e) {
|
|
|
28757
28757
|
}, N), x), {}, {
|
|
28758
28758
|
value: Xe(N, P),
|
|
28759
28759
|
startAngle: Y,
|
|
28760
|
-
endAngle:
|
|
28760
|
+
endAngle: q,
|
|
28761
28761
|
payload: N,
|
|
28762
28762
|
paddingAngle: Yn(p) * c
|
|
28763
28763
|
}), O;
|
|
@@ -29819,7 +29819,7 @@ ss(La, "getComposedData", function(e) {
|
|
|
29819
29819
|
var x = t.layout, p = n.type.defaultProps, v = p !== void 0 ? ln(ln({}, p), n.props) : n.props, P = v.dataKey, S = v.children, A = v.minPointSize, C = x === "horizontal" ? s : o, w = h ? C.scale.domain() : null, E = Wtt({
|
|
29820
29820
|
numericAxis: C
|
|
29821
29821
|
}), O = cr(S, Dh), N = d.map(function(R, W) {
|
|
29822
|
-
var j, D, Y,
|
|
29822
|
+
var j, D, Y, q, z, K;
|
|
29823
29823
|
h ? j = Ltt(h[u + W], w) : (j = Xe(R, P), Array.isArray(j) || (j = [E, j]));
|
|
29824
29824
|
var Z = nat(A, Jk.defaultProps.minPointSize)(j[1], W);
|
|
29825
29825
|
if (x === "horizontal") {
|
|
@@ -29831,12 +29831,12 @@ ss(La, "getComposedData", function(e) {
|
|
|
29831
29831
|
offset: y.offset,
|
|
29832
29832
|
entry: R,
|
|
29833
29833
|
index: W
|
|
29834
|
-
}), Y = (X = et ?? G) !== null && X !== void 0 ? X : void 0,
|
|
29834
|
+
}), Y = (X = et ?? G) !== null && X !== void 0 ? X : void 0, q = y.size;
|
|
29835
29835
|
var rt = G - et;
|
|
29836
29836
|
if (z = Number.isNaN(rt) ? 0 : rt, K = {
|
|
29837
29837
|
x: D,
|
|
29838
29838
|
y: s.y,
|
|
29839
|
-
width:
|
|
29839
|
+
width: q,
|
|
29840
29840
|
height: s.height
|
|
29841
29841
|
}, Math.abs(Z) > 0 && Math.abs(z) < Math.abs(Z)) {
|
|
29842
29842
|
var ot = Yn(z || Z) * (Math.abs(Z) - Math.abs(z));
|
|
@@ -29851,20 +29851,20 @@ ss(La, "getComposedData", function(e) {
|
|
|
29851
29851
|
offset: y.offset,
|
|
29852
29852
|
entry: R,
|
|
29853
29853
|
index: W
|
|
29854
|
-
}),
|
|
29854
|
+
}), q = pt - dt, z = y.size, K = {
|
|
29855
29855
|
x: o.x,
|
|
29856
29856
|
y: Y,
|
|
29857
29857
|
width: o.width,
|
|
29858
29858
|
height: z
|
|
29859
|
-
}, Math.abs(Z) > 0 && Math.abs(
|
|
29860
|
-
var _t = Yn(
|
|
29861
|
-
|
|
29859
|
+
}, Math.abs(Z) > 0 && Math.abs(q) < Math.abs(Z)) {
|
|
29860
|
+
var _t = Yn(q || Z) * (Math.abs(Z) - Math.abs(q));
|
|
29861
|
+
q += _t;
|
|
29862
29862
|
}
|
|
29863
29863
|
}
|
|
29864
29864
|
return ln(ln(ln({}, R), {}, {
|
|
29865
29865
|
x: D,
|
|
29866
29866
|
y: Y,
|
|
29867
|
-
width:
|
|
29867
|
+
width: q,
|
|
29868
29868
|
height: z,
|
|
29869
29869
|
value: h ? j : j[1],
|
|
29870
29870
|
payload: R,
|
|
@@ -29872,7 +29872,7 @@ ss(La, "getComposedData", function(e) {
|
|
|
29872
29872
|
}, O && O[W] && O[W].props), {}, {
|
|
29873
29873
|
tooltipPayload: [Pk(n, R)],
|
|
29874
29874
|
tooltipPosition: {
|
|
29875
|
-
x: D +
|
|
29875
|
+
x: D + q / 2,
|
|
29876
29876
|
y: Y + z / 2
|
|
29877
29877
|
}
|
|
29878
29878
|
});
|
|
@@ -29955,9 +29955,9 @@ var _x = function(t, n, r, i, o) {
|
|
|
29955
29955
|
return u.reduce(function(y, x) {
|
|
29956
29956
|
var p = n[x], v = p.orientation, P = p.domain, S = p.padding, A = S === void 0 ? {} : S, C = p.mirror, w = p.reversed, E = "".concat(v).concat(C ? "Mirror" : ""), O, N, R, W, j;
|
|
29957
29957
|
if (p.type === "number" && (p.padding === "gap" || p.padding === "no-gap")) {
|
|
29958
|
-
var D = P[1] - P[0], Y = 1 / 0,
|
|
29959
|
-
if (
|
|
29960
|
-
dt > 0 && (Y = Math.min((at || 0) - (
|
|
29958
|
+
var D = P[1] - P[0], Y = 1 / 0, q = p.categoricalDomain.sort(vV);
|
|
29959
|
+
if (q.forEach(function(at, dt) {
|
|
29960
|
+
dt > 0 && (Y = Math.min((at || 0) - (q[dt - 1] || 0), Y));
|
|
29961
29961
|
}), Number.isFinite(Y)) {
|
|
29962
29962
|
var z = Y / D, K = p.layout === "vertical" ? r.height : r.width;
|
|
29963
29963
|
if (p.padding === "gap" && (O = z * K / 2), p.padding === "no-gap") {
|
|
@@ -31948,7 +31948,7 @@ var As = /* @__PURE__ */ function(e) {
|
|
|
31948
31948
|
var P = this.state.isAnimationFinished, S = l.length === 1, A = Gt("recharts-area", c), C = d && d.allowDataOverflow, w = m && m.allowDataOverflow, E = C || w, O = Bt(v) ? this.id : v, N = (r = kt(s, !1)) !== null && r !== void 0 ? r : {
|
|
31949
31949
|
r: 3,
|
|
31950
31950
|
strokeWidth: 2
|
|
31951
|
-
}, R = N.r, W = R === void 0 ? 3 : R, j = N.strokeWidth, D = j === void 0 ? 2 : j, Y = EV(s) ? s : {},
|
|
31951
|
+
}, R = N.r, W = R === void 0 ? 3 : R, j = N.strokeWidth, D = j === void 0 ? 2 : j, Y = EV(s) ? s : {}, q = Y.clipDot, z = q === void 0 ? !0 : q, K = W * 2 + D;
|
|
31952
31952
|
return /* @__PURE__ */ _.createElement(re, {
|
|
31953
31953
|
className: A
|
|
31954
31954
|
}, C || w ? /* @__PURE__ */ _.createElement("defs", null, /* @__PURE__ */ _.createElement("clipPath", {
|
|
@@ -33512,8 +33512,8 @@ var xb = function(t, n, r, i) {
|
|
|
33512
33512
|
}),
|
|
33513
33513
|
dataStartIndex: c,
|
|
33514
33514
|
dataEndIndex: h
|
|
33515
|
-
}), j = W.length, D, Y,
|
|
33516
|
-
aut(P.domain, C, S) && (D = $v(P.domain, null, C), y && (S === "number" || E !== "auto") && (
|
|
33515
|
+
}), j = W.length, D, Y, q;
|
|
33516
|
+
aut(P.domain, C, S) && (D = $v(P.domain, null, C), y && (S === "number" || E !== "auto") && (q = ku(W, A, "category")));
|
|
33517
33517
|
var z = U$(S);
|
|
33518
33518
|
if (!D || D.length === 0) {
|
|
33519
33519
|
var K, Z = (K = P.domain) !== null && K !== void 0 ? K : z;
|
|
@@ -33536,7 +33536,7 @@ var xb = function(t, n, r, i) {
|
|
|
33536
33536
|
}), A, o, u);
|
|
33537
33537
|
it && (D = it);
|
|
33538
33538
|
}
|
|
33539
|
-
y && (S === "number" || E !== "auto") && (
|
|
33539
|
+
y && (S === "number" || E !== "auto") && (q = ku(W, A, "category"));
|
|
33540
33540
|
} else y ? D = ap(0, j) : l && l[R] && l[R].hasStack && S === "number" ? D = m === "expand" ? [0, 1] : Sk(l[R].stackGroups, c, h) : D = yk(W, i.filter(function(rt) {
|
|
33541
33541
|
var ot = s in rt.props ? rt.props[s] : rt.type.defaultProps[s], at = "hide" in rt.props ? rt.props.hide : rt.type.defaultProps.hide;
|
|
33542
33542
|
return ot === R && (N || !at);
|
|
@@ -33553,7 +33553,7 @@ var xb = function(t, n, r, i) {
|
|
|
33553
33553
|
return ct(ct({}, x), {}, Lt({}, R, ct(ct({}, P), {}, {
|
|
33554
33554
|
axisType: o,
|
|
33555
33555
|
domain: D,
|
|
33556
|
-
categoricalDomain:
|
|
33556
|
+
categoricalDomain: q,
|
|
33557
33557
|
duplicateDomain: Y,
|
|
33558
33558
|
originalDomain: (v = P.domain) !== null && v !== void 0 ? v : z,
|
|
33559
33559
|
isCategorical: y,
|
|
@@ -33677,7 +33677,7 @@ var xb = function(t, n, r, i) {
|
|
|
33677
33677
|
return t[n].height;
|
|
33678
33678
|
}, Om = function(t) {
|
|
33679
33679
|
var n = t.chartName, r = t.GraphicalChild, i = t.defaultTooltipEventType, o = i === void 0 ? "axis" : i, s = t.validateTooltipEventTypes, l = s === void 0 ? ["axis"] : s, c = t.axisComponents, h = t.legendContent, u = t.formatAxisMap, d = t.defaultProps, m = function(P, S) {
|
|
33680
|
-
var A = S.graphicalItems, C = S.stackGroups, w = S.offset, E = S.updateId, O = S.dataStartIndex, N = S.dataEndIndex, R = P.barSize, W = P.layout, j = P.barGap, D = P.barCategoryGap, Y = P.maxBarSize,
|
|
33680
|
+
var A = S.graphicalItems, C = S.stackGroups, w = S.offset, E = S.updateId, O = S.dataStartIndex, N = S.dataEndIndex, R = P.barSize, W = P.layout, j = P.barGap, D = P.barCategoryGap, Y = P.maxBarSize, q = wT(W), z = q.numericAxisName, K = q.cateAxisName, Z = But(A), X = [];
|
|
33681
33681
|
return A.forEach(function(it, G) {
|
|
33682
33682
|
var et = Cm(P.data, {
|
|
33683
33683
|
graphicalItems: [it],
|
|
@@ -33739,7 +33739,7 @@ var xb = function(t, n, r, i) {
|
|
|
33739
33739
|
props: A
|
|
33740
33740
|
}))
|
|
33741
33741
|
return null;
|
|
33742
|
-
var O = A.children, N = A.layout, R = A.stackOffset, W = A.data, j = A.reverseStackOrder, D = wT(N), Y = D.numericAxisName,
|
|
33742
|
+
var O = A.children, N = A.layout, R = A.stackOffset, W = A.data, j = A.reverseStackOrder, D = wT(N), Y = D.numericAxisName, q = D.cateAxisName, z = cr(O, r), K = Ftt(W, z, "".concat(Y, "Id"), "".concat(q, "Id"), R, j), Z = c.reduce(function(rt, ot) {
|
|
33743
33743
|
var at = "".concat(ot.axisType, "Map");
|
|
33744
33744
|
return ct(ct({}, rt), {}, Lt({}, at, Dut(A, ct(ct({}, ot), {}, {
|
|
33745
33745
|
graphicalItems: z,
|
|
@@ -33754,7 +33754,7 @@ var xb = function(t, n, r, i) {
|
|
|
33754
33754
|
Object.keys(Z).forEach(function(rt) {
|
|
33755
33755
|
Z[rt] = u(A, Z[rt], X, rt.replace("Map", ""), n);
|
|
33756
33756
|
});
|
|
33757
|
-
var it = Z["".concat(
|
|
33757
|
+
var it = Z["".concat(q, "Map")], G = jut(it), et = m(A, ct(ct({}, Z), {}, {
|
|
33758
33758
|
dataStartIndex: C,
|
|
33759
33759
|
dataEndIndex: w,
|
|
33760
33760
|
updateId: E,
|
|
@@ -33918,7 +33918,7 @@ var xb = function(t, n, r, i) {
|
|
|
33918
33918
|
updateId: W
|
|
33919
33919
|
}, w.state)));
|
|
33920
33920
|
else if (E.activeTooltipIndex !== void 0) {
|
|
33921
|
-
var Y = E.chartX,
|
|
33921
|
+
var Y = E.chartX, q = E.chartY, z = E.activeTooltipIndex, K = w.state, Z = K.offset, X = K.tooltipTicks;
|
|
33922
33922
|
if (!Z)
|
|
33923
33923
|
return;
|
|
33924
33924
|
if (typeof R == "function")
|
|
@@ -33934,7 +33934,7 @@ var xb = function(t, n, r, i) {
|
|
|
33934
33934
|
var G = ct(ct({}, Z), {}, {
|
|
33935
33935
|
x: Z.left,
|
|
33936
33936
|
y: Z.top
|
|
33937
|
-
}), et = Math.min(Y, G.x + G.width), rt = Math.min(
|
|
33937
|
+
}), et = Math.min(Y, G.x + G.width), rt = Math.min(q, G.y + G.height), ot = X[z] && X[z].value, at = xb(w.state, w.props.data, z), dt = X[z] ? {
|
|
33938
33938
|
x: N === "horizontal" ? X[z].coordinate : et,
|
|
33939
33939
|
y: N === "horizontal" ? rt : X[z].coordinate
|
|
33940
33940
|
} : V$;
|
|
@@ -33947,7 +33947,7 @@ var xb = function(t, n, r, i) {
|
|
|
33947
33947
|
} else
|
|
33948
33948
|
w.setState(E);
|
|
33949
33949
|
}), Lt(w, "renderCursor", function(E) {
|
|
33950
|
-
var O, N = w.state, R = N.isTooltipActive, W = N.activeCoordinate, j = N.activePayload, D = N.offset, Y = N.activeTooltipIndex,
|
|
33950
|
+
var O, N = w.state, R = N.isTooltipActive, W = N.activeCoordinate, j = N.activePayload, D = N.offset, Y = N.activeTooltipIndex, q = N.tooltipAxisBandSize, z = w.getTooltipEventType(), K = (O = E.props.active) !== null && O !== void 0 ? O : R, Z = w.props.layout, X = E.key || "_recharts-cursor";
|
|
33951
33951
|
return /* @__PURE__ */ _.createElement(dut, {
|
|
33952
33952
|
key: X,
|
|
33953
33953
|
activeCoordinate: W,
|
|
@@ -33958,7 +33958,7 @@ var xb = function(t, n, r, i) {
|
|
|
33958
33958
|
isActive: K,
|
|
33959
33959
|
layout: Z,
|
|
33960
33960
|
offset: D,
|
|
33961
|
-
tooltipAxisBandSize:
|
|
33961
|
+
tooltipAxisBandSize: q,
|
|
33962
33962
|
tooltipEventType: z
|
|
33963
33963
|
});
|
|
33964
33964
|
}), Lt(w, "renderPolarAxis", function(E, O, N) {
|
|
@@ -33969,12 +33969,12 @@ var xb = function(t, n, r, i) {
|
|
|
33969
33969
|
ticks: ao(Y, !0)
|
|
33970
33970
|
}));
|
|
33971
33971
|
}), Lt(w, "renderPolarGrid", function(E) {
|
|
33972
|
-
var O = E.props, N = O.radialLines, R = O.polarAngles, W = O.polarRadius, j = w.state, D = j.radiusAxisMap, Y = j.angleAxisMap,
|
|
33972
|
+
var O = E.props, N = O.radialLines, R = O.polarAngles, W = O.polarRadius, j = w.state, D = j.radiusAxisMap, Y = j.angleAxisMap, q = ns(D), z = ns(Y), K = z.cx, Z = z.cy, X = z.innerRadius, it = z.outerRadius;
|
|
33973
33973
|
return /* @__PURE__ */ pn(E, {
|
|
33974
33974
|
polarAngles: Array.isArray(R) ? R : ao(z, !0).map(function(G) {
|
|
33975
33975
|
return G.coordinate;
|
|
33976
33976
|
}),
|
|
33977
|
-
polarRadius: Array.isArray(W) ? W : ao(
|
|
33977
|
+
polarRadius: Array.isArray(W) ? W : ao(q, !0).map(function(G) {
|
|
33978
33978
|
return G.coordinate;
|
|
33979
33979
|
}),
|
|
33980
33980
|
cx: K,
|
|
@@ -33993,8 +33993,8 @@ var xb = function(t, n, r, i) {
|
|
|
33993
33993
|
});
|
|
33994
33994
|
if (!Y)
|
|
33995
33995
|
return null;
|
|
33996
|
-
var
|
|
33997
|
-
return /* @__PURE__ */ pn(
|
|
33996
|
+
var q = Y.item, z = yT(Y, put);
|
|
33997
|
+
return /* @__PURE__ */ pn(q, ct(ct({}, z), {}, {
|
|
33998
33998
|
chartWidth: R,
|
|
33999
33999
|
chartHeight: W,
|
|
34000
34000
|
margin: j,
|
|
@@ -34004,7 +34004,7 @@ var xb = function(t, n, r, i) {
|
|
|
34004
34004
|
var E, O = w.props, N = O.children, R = O.accessibilityLayer, W = wr(N, _r);
|
|
34005
34005
|
if (!W)
|
|
34006
34006
|
return null;
|
|
34007
|
-
var j = w.state, D = j.isTooltipActive, Y = j.activeCoordinate,
|
|
34007
|
+
var j = w.state, D = j.isTooltipActive, Y = j.activeCoordinate, q = j.activePayload, z = j.activeLabel, K = j.offset, Z = (E = W.props.active) !== null && E !== void 0 ? E : D;
|
|
34008
34008
|
return /* @__PURE__ */ pn(W, {
|
|
34009
34009
|
viewBox: ct(ct({}, K), {}, {
|
|
34010
34010
|
x: K.left,
|
|
@@ -34012,12 +34012,12 @@ var xb = function(t, n, r, i) {
|
|
|
34012
34012
|
}),
|
|
34013
34013
|
active: Z,
|
|
34014
34014
|
label: z,
|
|
34015
|
-
payload: Z ?
|
|
34015
|
+
payload: Z ? q : [],
|
|
34016
34016
|
coordinate: Y,
|
|
34017
34017
|
accessibilityLayer: R
|
|
34018
34018
|
});
|
|
34019
34019
|
}), Lt(w, "renderBrush", function(E) {
|
|
34020
|
-
var O = w.props, N = O.margin, R = O.data, W = w.state, j = W.offset, D = W.dataStartIndex, Y = W.dataEndIndex,
|
|
34020
|
+
var O = w.props, N = O.margin, R = O.data, W = w.state, j = W.offset, D = W.dataStartIndex, Y = W.dataEndIndex, q = W.updateId;
|
|
34021
34021
|
return /* @__PURE__ */ pn(E, {
|
|
34022
34022
|
key: E.key || "_recharts-brush",
|
|
34023
34023
|
onChange: Lf(w.handleBrushChange, E.props.onChange),
|
|
@@ -34027,26 +34027,26 @@ var xb = function(t, n, r, i) {
|
|
|
34027
34027
|
width: gt(E.props.width) ? E.props.width : j.width,
|
|
34028
34028
|
startIndex: D,
|
|
34029
34029
|
endIndex: Y,
|
|
34030
|
-
updateId: "brush-".concat(
|
|
34030
|
+
updateId: "brush-".concat(q)
|
|
34031
34031
|
});
|
|
34032
34032
|
}), Lt(w, "renderReferenceElement", function(E, O, N) {
|
|
34033
34033
|
if (!E)
|
|
34034
34034
|
return null;
|
|
34035
|
-
var R = w, W = R.clipPathId, j = w.state, D = j.xAxisMap, Y = j.yAxisMap,
|
|
34035
|
+
var R = w, W = R.clipPathId, j = w.state, D = j.xAxisMap, Y = j.yAxisMap, q = j.offset, z = E.type.defaultProps || {}, K = E.props, Z = K.xAxisId, X = Z === void 0 ? z.xAxisId : Z, it = K.yAxisId, G = it === void 0 ? z.yAxisId : it;
|
|
34036
34036
|
return /* @__PURE__ */ pn(E, {
|
|
34037
34037
|
key: E.key || "".concat(O, "-").concat(N),
|
|
34038
34038
|
xAxis: D[X],
|
|
34039
34039
|
yAxis: Y[G],
|
|
34040
34040
|
viewBox: {
|
|
34041
|
-
x:
|
|
34042
|
-
y:
|
|
34043
|
-
width:
|
|
34044
|
-
height:
|
|
34041
|
+
x: q.left,
|
|
34042
|
+
y: q.top,
|
|
34043
|
+
width: q.width,
|
|
34044
|
+
height: q.height
|
|
34045
34045
|
},
|
|
34046
34046
|
clipPathId: W
|
|
34047
34047
|
});
|
|
34048
34048
|
}), Lt(w, "renderActivePoints", function(E) {
|
|
34049
|
-
var O = E.item, N = E.activePoint, R = E.basePoint, W = E.childIndex, j = E.isRange, D = [], Y = O.props.key,
|
|
34049
|
+
var O = E.item, N = E.activePoint, R = E.basePoint, W = E.childIndex, j = E.isRange, D = [], Y = O.props.key, q = O.item.type.defaultProps !== void 0 ? ct(ct({}, O.item.type.defaultProps), O.item.props) : O.item.props, z = q.activeDot, K = q.dataKey, Z = ct(ct({
|
|
34050
34050
|
index: W,
|
|
34051
34051
|
dataKey: K,
|
|
34052
34052
|
cx: N.x,
|
|
@@ -34066,7 +34066,7 @@ var xb = function(t, n, r, i) {
|
|
|
34066
34066
|
var R = w.filterFormatItem(E, O, N);
|
|
34067
34067
|
if (!R)
|
|
34068
34068
|
return null;
|
|
34069
|
-
var W = w.getTooltipEventType(), j = w.state, D = j.isTooltipActive, Y = j.tooltipAxis,
|
|
34069
|
+
var W = w.getTooltipEventType(), j = w.state, D = j.isTooltipActive, Y = j.tooltipAxis, q = j.activeTooltipIndex, z = j.activeLabel, K = w.props.children, Z = wr(K, _r), X = R.props, it = X.points, G = X.isRange, et = X.baseLine, rt = R.item.type.defaultProps !== void 0 ? ct(ct({}, R.item.type.defaultProps), R.item.props) : R.item.props, ot = rt.activeDot, at = rt.hide, dt = rt.activeBar, pt = rt.activeShape, _t = !!(!at && D && Z && (ot || dt || pt)), xt = {};
|
|
34070
34070
|
W !== "axis" && Z && Z.props.trigger === "click" ? xt = {
|
|
34071
34071
|
onClick: Lf(w.handleItemMouseEnter, E.props.onClick)
|
|
34072
34072
|
} : W !== "axis" && (xt = {
|
|
@@ -34078,15 +34078,15 @@ var xb = function(t, n, r, i) {
|
|
|
34078
34078
|
return typeof Y.dataKey == "function" ? Y.dataKey(Ft.payload) : null;
|
|
34079
34079
|
}
|
|
34080
34080
|
if (_t)
|
|
34081
|
-
if (
|
|
34081
|
+
if (q >= 0) {
|
|
34082
34082
|
var St, nt;
|
|
34083
34083
|
if (Y.dataKey && !Y.allowDuplicatedCategory) {
|
|
34084
34084
|
var Mt = typeof Y.dataKey == "function" ? ut : "payload.".concat(Y.dataKey.toString());
|
|
34085
34085
|
St = gd(it, Mt, z), nt = G && et && gd(et, Mt, z);
|
|
34086
34086
|
} else
|
|
34087
|
-
St = it == null ? void 0 : it[
|
|
34087
|
+
St = it == null ? void 0 : it[q], nt = G && et && et[q];
|
|
34088
34088
|
if (pt || dt) {
|
|
34089
|
-
var mt = E.props.activeIndex !== void 0 ? E.props.activeIndex :
|
|
34089
|
+
var mt = E.props.activeIndex !== void 0 ? E.props.activeIndex : q;
|
|
34090
34090
|
return [/* @__PURE__ */ pn(E, ct(ct(ct({}, R.props), xt), {}, {
|
|
34091
34091
|
activeIndex: mt
|
|
34092
34092
|
})), null, null];
|
|
@@ -34096,7 +34096,7 @@ var xb = function(t, n, r, i) {
|
|
|
34096
34096
|
item: R,
|
|
34097
34097
|
activePoint: St,
|
|
34098
34098
|
basePoint: nt,
|
|
34099
|
-
childIndex:
|
|
34099
|
+
childIndex: q,
|
|
34100
34100
|
isRange: G
|
|
34101
34101
|
})));
|
|
34102
34102
|
} else {
|
|
@@ -34201,7 +34201,7 @@ var xb = function(t, n, r, i) {
|
|
|
34201
34201
|
if (N) {
|
|
34202
34202
|
var R = N.props.defaultIndex;
|
|
34203
34203
|
if (!(typeof R != "number" || R < 0 || R > this.state.tooltipTicks.length - 1)) {
|
|
34204
|
-
var W = this.state.tooltipTicks[R] && this.state.tooltipTicks[R].value, j = xb(this.state, w, R, W), D = this.state.tooltipTicks[R].coordinate, Y = (this.state.offset.top + E) / 2,
|
|
34204
|
+
var W = this.state.tooltipTicks[R] && this.state.tooltipTicks[R].value, j = xb(this.state, w, R, W), D = this.state.tooltipTicks[R].coordinate, Y = (this.state.offset.top + E) / 2, q = O === "horizontal", z = q ? {
|
|
34205
34205
|
x: D,
|
|
34206
34206
|
y: Y
|
|
34207
34207
|
} : {
|
|
@@ -34279,15 +34279,15 @@ var xb = function(t, n, r, i) {
|
|
|
34279
34279
|
}, N = w.width / C.offsetWidth || 1, R = this.inRange(O.chartX, O.chartY, N);
|
|
34280
34280
|
if (!R)
|
|
34281
34281
|
return null;
|
|
34282
|
-
var W = this.state, j = W.xAxisMap, D = W.yAxisMap, Y = this.getTooltipEventType(),
|
|
34282
|
+
var W = this.state, j = W.xAxisMap, D = W.yAxisMap, Y = this.getTooltipEventType(), q = bT(this.state, this.props.data, this.props.layout, R);
|
|
34283
34283
|
if (Y !== "axis" && j && D) {
|
|
34284
34284
|
var z = ns(j).scale, K = ns(D).scale, Z = z && z.invert ? z.invert(O.chartX) : null, X = K && K.invert ? K.invert(O.chartY) : null;
|
|
34285
34285
|
return ct(ct({}, O), {}, {
|
|
34286
34286
|
xValue: Z,
|
|
34287
34287
|
yValue: X
|
|
34288
|
-
},
|
|
34288
|
+
}, q);
|
|
34289
34289
|
}
|
|
34290
|
-
return
|
|
34290
|
+
return q ? ct(ct({}, O), q) : null;
|
|
34291
34291
|
}
|
|
34292
34292
|
}, {
|
|
34293
34293
|
key: "inRange",
|
|
@@ -34302,11 +34302,11 @@ var xb = function(t, n, r, i) {
|
|
|
34302
34302
|
}
|
|
34303
34303
|
var j = this.state, D = j.angleAxisMap, Y = j.radiusAxisMap;
|
|
34304
34304
|
if (D && Y) {
|
|
34305
|
-
var
|
|
34305
|
+
var q = ns(D);
|
|
34306
34306
|
return DP({
|
|
34307
34307
|
x: O,
|
|
34308
34308
|
y: N
|
|
34309
|
-
},
|
|
34309
|
+
}, q);
|
|
34310
34310
|
}
|
|
34311
34311
|
return null;
|
|
34312
34312
|
}
|
|
@@ -34400,13 +34400,13 @@ var xb = function(t, n, r, i) {
|
|
|
34400
34400
|
for (var O = 0, N = w.length; O < N; O++) {
|
|
34401
34401
|
var R = w[O], W = R.props, j = R.item, D = j.type.defaultProps !== void 0 ? ct(ct({}, j.type.defaultProps), j.props) : j.props, Y = co(j.type);
|
|
34402
34402
|
if (Y === "Bar") {
|
|
34403
|
-
var
|
|
34403
|
+
var q = (W.data || []).find(function(X) {
|
|
34404
34404
|
return Krt(A, X);
|
|
34405
34405
|
});
|
|
34406
|
-
if (
|
|
34406
|
+
if (q)
|
|
34407
34407
|
return {
|
|
34408
34408
|
graphicalItem: R,
|
|
34409
|
-
payload:
|
|
34409
|
+
payload: q
|
|
34410
34410
|
};
|
|
34411
34411
|
} else if (Y === "RadialBar") {
|
|
34412
34412
|
var z = (W.data || []).find(function(X) {
|
|
@@ -34439,14 +34439,14 @@ var xb = function(t, n, r, i) {
|
|
|
34439
34439
|
var A = this;
|
|
34440
34440
|
if (!C1(this))
|
|
34441
34441
|
return null;
|
|
34442
|
-
var C = this.props, w = C.children, E = C.className, O = C.width, N = C.height, R = C.style, W = C.compact, j = C.title, D = C.desc, Y = yT(C, mut),
|
|
34442
|
+
var C = this.props, w = C.children, E = C.className, O = C.width, N = C.height, R = C.style, W = C.compact, j = C.title, D = C.desc, Y = yT(C, mut), q = kt(Y, !1);
|
|
34443
34443
|
if (W)
|
|
34444
34444
|
return /* @__PURE__ */ _.createElement(XA, {
|
|
34445
34445
|
state: this.state,
|
|
34446
34446
|
width: this.props.width,
|
|
34447
34447
|
height: this.props.height,
|
|
34448
34448
|
clipPathId: this.clipPathId
|
|
34449
|
-
}, /* @__PURE__ */ _.createElement(Yy, yl({},
|
|
34449
|
+
}, /* @__PURE__ */ _.createElement(Yy, yl({}, q, {
|
|
34450
34450
|
width: O,
|
|
34451
34451
|
height: N,
|
|
34452
34452
|
title: j,
|
|
@@ -34454,9 +34454,9 @@ var xb = function(t, n, r, i) {
|
|
|
34454
34454
|
}), this.renderClipPath(), M1(w, this.renderMap)));
|
|
34455
34455
|
if (this.props.accessibilityLayer) {
|
|
34456
34456
|
var z, K;
|
|
34457
|
-
|
|
34457
|
+
q.tabIndex = (z = this.props.tabIndex) !== null && z !== void 0 ? z : 0, q.role = (K = this.props.role) !== null && K !== void 0 ? K : "application", q.onKeyDown = function(X) {
|
|
34458
34458
|
A.accessibilityManager.keyboardEvent(X);
|
|
34459
|
-
},
|
|
34459
|
+
}, q.onFocus = function() {
|
|
34460
34460
|
A.accessibilityManager.focus();
|
|
34461
34461
|
};
|
|
34462
34462
|
}
|
|
@@ -34478,7 +34478,7 @@ var xb = function(t, n, r, i) {
|
|
|
34478
34478
|
ref: function(it) {
|
|
34479
34479
|
A.container = it;
|
|
34480
34480
|
}
|
|
34481
|
-
}), /* @__PURE__ */ _.createElement(Yy, yl({},
|
|
34481
|
+
}), /* @__PURE__ */ _.createElement(Yy, yl({}, q, {
|
|
34482
34482
|
width: O,
|
|
34483
34483
|
height: N,
|
|
34484
34484
|
title: j,
|
|
@@ -34523,7 +34523,7 @@ var xb = function(t, n, r, i) {
|
|
|
34523
34523
|
});
|
|
34524
34524
|
}
|
|
34525
34525
|
if (S !== P.prevDataKey || A !== P.prevData || w !== P.prevWidth || E !== P.prevHeight || O !== P.prevLayout || N !== P.prevStackOffset || !wl(R, P.prevMargin)) {
|
|
34526
|
-
var Y = xT(v),
|
|
34526
|
+
var Y = xT(v), q = {
|
|
34527
34527
|
// (chartX, chartY) are (0,0) in default state, but we want to keep the last mouse position to avoid
|
|
34528
34528
|
// any flickering
|
|
34529
34529
|
chartX: P.chartX,
|
|
@@ -34533,7 +34533,7 @@ var xb = function(t, n, r, i) {
|
|
|
34533
34533
|
isTooltipActive: P.isTooltipActive
|
|
34534
34534
|
}, z = ct(ct({}, bT(P, A, O)), {}, {
|
|
34535
34535
|
updateId: P.updateId + 1
|
|
34536
|
-
}), K = ct(ct(ct({}, Y),
|
|
34536
|
+
}), K = ct(ct(ct({}, Y), q), z);
|
|
34537
34537
|
return ct(ct(ct({}, K), y(ct({
|
|
34538
34538
|
props: v
|
|
34539
34539
|
}, K), P)), {}, {
|
|
@@ -34682,7 +34682,7 @@ function Gut(e, t, n) {
|
|
|
34682
34682
|
));
|
|
34683
34683
|
}
|
|
34684
34684
|
const h = e.getCommonProps(n, c, t);
|
|
34685
|
-
return
|
|
34685
|
+
return H(
|
|
34686
34686
|
"p",
|
|
34687
34687
|
{ key: n, className: t.className, ...h },
|
|
34688
34688
|
r
|
|
@@ -34691,7 +34691,7 @@ function Gut(e, t, n) {
|
|
|
34691
34691
|
const i = {};
|
|
34692
34692
|
t.fontSize !== void 0 && (i.fontSize = `${t.fontSize}px`), t.fontWeight !== void 0 && (i.fontWeight = t.fontWeight), t.color !== void 0 && (i.color = t.color), t.textAlign !== void 0 && (i.textAlign = t.textAlign);
|
|
34693
34693
|
const o = e.getCommonProps(n, i, t);
|
|
34694
|
-
return
|
|
34694
|
+
return H("p", { key: n, ...o }, r);
|
|
34695
34695
|
}
|
|
34696
34696
|
function Zut(e) {
|
|
34697
34697
|
return e.replace(/<script[\s\S]*?<\/script>/gi, "").replace(/<iframe[\s\S]*?<\/iframe>/gi, "").replace(/\son\w+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi, "");
|
|
@@ -34702,7 +34702,7 @@ function Yut(e, t, n) {
|
|
|
34702
34702
|
{ color: e.cfg.colors.text },
|
|
34703
34703
|
t
|
|
34704
34704
|
);
|
|
34705
|
-
return
|
|
34705
|
+
return H("div", {
|
|
34706
34706
|
key: n,
|
|
34707
34707
|
className: t.className,
|
|
34708
34708
|
...o,
|
|
@@ -34772,7 +34772,7 @@ function Kut(e, t, n) {
|
|
|
34772
34772
|
}
|
|
34773
34773
|
t.icon && (m.display = "inline-flex", m.alignItems = "center", m.gap = 6);
|
|
34774
34774
|
const y = e.getCommonProps(n, m, t);
|
|
34775
|
-
return
|
|
34775
|
+
return H(
|
|
34776
34776
|
"a",
|
|
34777
34777
|
{
|
|
34778
34778
|
key: n,
|
|
@@ -34795,7 +34795,7 @@ function Kut(e, t, n) {
|
|
|
34795
34795
|
alignItems: "center",
|
|
34796
34796
|
gap: 6
|
|
34797
34797
|
}, s = e.getCommonProps(n, o, t);
|
|
34798
|
-
return
|
|
34798
|
+
return H(
|
|
34799
34799
|
"a",
|
|
34800
34800
|
{
|
|
34801
34801
|
key: n,
|
|
@@ -34930,7 +34930,7 @@ function Xut(e, t, n) {
|
|
|
34930
34930
|
}
|
|
34931
34931
|
const N = e.getCommonProps(n, w, t), R = [];
|
|
34932
34932
|
i.icon && !c && R.push(
|
|
34933
|
-
|
|
34933
|
+
H(
|
|
34934
34934
|
"span",
|
|
34935
34935
|
{
|
|
34936
34936
|
key: "icon",
|
|
@@ -34945,7 +34945,7 @@ function Xut(e, t, n) {
|
|
|
34945
34945
|
e.renderIcon(i.icon, t.iconSize || 16)
|
|
34946
34946
|
)
|
|
34947
34947
|
), c && R.unshift(
|
|
34948
|
-
|
|
34948
|
+
H("div", {
|
|
34949
34949
|
key: "spinner",
|
|
34950
34950
|
className: "bf-btn-spinner",
|
|
34951
34951
|
style: {
|
|
@@ -34965,7 +34965,7 @@ function Xut(e, t, n) {
|
|
|
34965
34965
|
E.backgroundColor && (j.currentTarget.style.backgroundColor = E.backgroundColor), E.color && (j.currentTarget.style.color = E.color), E.borderColor && (j.currentTarget.style.borderColor = E.borderColor);
|
|
34966
34966
|
}, W.onMouseLeave = (j) => {
|
|
34967
34967
|
E.backgroundColor && (j.currentTarget.style.backgroundColor = w.backgroundColor || ""), E.color && (j.currentTarget.style.color = w.color || ""), E.borderColor && (j.currentTarget.style.borderColor = w.borderColor || "");
|
|
34968
|
-
}),
|
|
34968
|
+
}), H(
|
|
34969
34969
|
"button",
|
|
34970
34970
|
{
|
|
34971
34971
|
key: n,
|
|
@@ -34995,7 +34995,7 @@ function Xut(e, t, n) {
|
|
|
34995
34995
|
...c && { opacity: 0.6, pointerEvents: "none" }
|
|
34996
34996
|
}, m = e.getCommonProps(n, d, t), y = [];
|
|
34997
34997
|
return c && y.push(
|
|
34998
|
-
|
|
34998
|
+
H("div", {
|
|
34999
34999
|
key: "spinner",
|
|
35000
35000
|
className: "bf-btn-spinner",
|
|
35001
35001
|
style: {
|
|
@@ -35008,7 +35008,7 @@ function Xut(e, t, n) {
|
|
|
35008
35008
|
}
|
|
35009
35009
|
})
|
|
35010
35010
|
), i.icon && !c && y.push(
|
|
35011
|
-
|
|
35011
|
+
H(
|
|
35012
35012
|
"span",
|
|
35013
35013
|
{
|
|
35014
35014
|
key: "icon",
|
|
@@ -35022,7 +35022,7 @@ function Xut(e, t, n) {
|
|
|
35022
35022
|
},
|
|
35023
35023
|
e.renderIcon(i.icon, t.iconSize || 16)
|
|
35024
35024
|
)
|
|
35025
|
-
), y.push(i.label || i.text || (i.icon ? "" : "Button")),
|
|
35025
|
+
), y.push(i.label || i.text || (i.icon ? "" : "Button")), H(
|
|
35026
35026
|
"button",
|
|
35027
35027
|
{
|
|
35028
35028
|
key: n,
|
|
@@ -35055,10 +35055,10 @@ function Jut(e, t, n) {
|
|
|
35055
35055
|
s,
|
|
35056
35056
|
t
|
|
35057
35057
|
);
|
|
35058
|
-
return
|
|
35058
|
+
return H(
|
|
35059
35059
|
"div",
|
|
35060
35060
|
{ key: n, ...u },
|
|
35061
|
-
|
|
35061
|
+
H(
|
|
35062
35062
|
"span",
|
|
35063
35063
|
{
|
|
35064
35064
|
style: {
|
|
@@ -35081,7 +35081,7 @@ function Jut(e, t, n) {
|
|
|
35081
35081
|
...d,
|
|
35082
35082
|
onError: () => e.setImageErrors((y) => ({ ...y, [n]: !0 }))
|
|
35083
35083
|
};
|
|
35084
|
-
return t.onClick && !e.interactionDisabled && (m.onClick = () => e.handleButtonClick(t.onClick)),
|
|
35084
|
+
return t.onClick && !e.interactionDisabled && (m.onClick = () => e.handleButtonClick(t.onClick)), H("img", m);
|
|
35085
35085
|
}
|
|
35086
35086
|
const l = {
|
|
35087
35087
|
width: t.w || t.width || "100%",
|
|
@@ -35097,13 +35097,13 @@ function Jut(e, t, n) {
|
|
|
35097
35097
|
...e.getCommonProps(n, l, t),
|
|
35098
35098
|
onError: () => e.setImageErrors((u) => ({ ...u, [n]: !0 }))
|
|
35099
35099
|
};
|
|
35100
|
-
return t.onClick && !e.interactionDisabled && (c.onClick = () => e.handleButtonClick(t.onClick)),
|
|
35100
|
+
return t.onClick && !e.interactionDisabled && (c.onClick = () => e.handleButtonClick(t.onClick)), H("img", c);
|
|
35101
35101
|
}
|
|
35102
35102
|
function Qut(e, t, n) {
|
|
35103
35103
|
var o;
|
|
35104
35104
|
if (t.className) {
|
|
35105
35105
|
const s = ((o = e.parseClassNameResponsive) == null ? void 0 : o.call(e, t.className, n)) ?? e.parseClassName(t.className), l = e.getCommonProps(n, s, t);
|
|
35106
|
-
return
|
|
35106
|
+
return H("input", {
|
|
35107
35107
|
key: n,
|
|
35108
35108
|
className: t.className,
|
|
35109
35109
|
...l,
|
|
@@ -35137,10 +35137,10 @@ function Qut(e, t, n) {
|
|
|
35137
35137
|
}, i = e.getCommonProps(n, r, t);
|
|
35138
35138
|
if (t.label) {
|
|
35139
35139
|
const s = e.getCommonProps(n, { width: "100%" }, t);
|
|
35140
|
-
return
|
|
35140
|
+
return H(
|
|
35141
35141
|
"div",
|
|
35142
35142
|
{ key: n, ...s },
|
|
35143
|
-
|
|
35143
|
+
H(
|
|
35144
35144
|
"label",
|
|
35145
35145
|
{
|
|
35146
35146
|
style: {
|
|
@@ -35153,7 +35153,7 @@ function Qut(e, t, n) {
|
|
|
35153
35153
|
},
|
|
35154
35154
|
t.label
|
|
35155
35155
|
),
|
|
35156
|
-
|
|
35156
|
+
H("input", {
|
|
35157
35157
|
...i,
|
|
35158
35158
|
name: t.name,
|
|
35159
35159
|
placeholder: t.placeholder,
|
|
@@ -35166,7 +35166,7 @@ function Qut(e, t, n) {
|
|
|
35166
35166
|
})
|
|
35167
35167
|
);
|
|
35168
35168
|
}
|
|
35169
|
-
return
|
|
35169
|
+
return H("input", {
|
|
35170
35170
|
key: n,
|
|
35171
35171
|
...i,
|
|
35172
35172
|
name: t.name,
|
|
@@ -35178,7 +35178,7 @@ function Qut(e, t, n) {
|
|
|
35178
35178
|
}
|
|
35179
35179
|
function tht(e, t, n) {
|
|
35180
35180
|
const r = t.value ? e.interpolateText(String(t.value)) : e.sceneData[t.name || ""] ?? "";
|
|
35181
|
-
return
|
|
35181
|
+
return H("input", {
|
|
35182
35182
|
key: n,
|
|
35183
35183
|
type: "hidden",
|
|
35184
35184
|
name: t.name,
|
|
@@ -35190,15 +35190,15 @@ function eht(e, t, n) {
|
|
|
35190
35190
|
const r = () => {
|
|
35191
35191
|
var l;
|
|
35192
35192
|
return [
|
|
35193
|
-
t.placeholder &&
|
|
35193
|
+
t.placeholder && H("option", { key: "__placeholder", value: "" }, t.placeholder),
|
|
35194
35194
|
...((l = t.options) == null ? void 0 : l.map(
|
|
35195
|
-
(c) =>
|
|
35195
|
+
(c) => H("option", { key: c.value, value: c.value }, c.label)
|
|
35196
35196
|
)) || []
|
|
35197
35197
|
];
|
|
35198
35198
|
};
|
|
35199
35199
|
if (t.className) {
|
|
35200
35200
|
const l = ((s = e.parseClassNameResponsive) == null ? void 0 : s.call(e, t.className, n)) ?? e.parseClassName(t.className), c = e.getCommonProps(n, l, t);
|
|
35201
|
-
return
|
|
35201
|
+
return H(
|
|
35202
35202
|
"select",
|
|
35203
35203
|
{
|
|
35204
35204
|
key: n,
|
|
@@ -35228,10 +35228,10 @@ function eht(e, t, n) {
|
|
|
35228
35228
|
}, o = e.getCommonProps(n, i, t);
|
|
35229
35229
|
if (t.label) {
|
|
35230
35230
|
const l = e.getCommonProps(n, { width: "100%" }, t);
|
|
35231
|
-
return
|
|
35231
|
+
return H(
|
|
35232
35232
|
"div",
|
|
35233
35233
|
{ key: n, ...l },
|
|
35234
|
-
|
|
35234
|
+
H(
|
|
35235
35235
|
"label",
|
|
35236
35236
|
{
|
|
35237
35237
|
style: {
|
|
@@ -35244,7 +35244,7 @@ function eht(e, t, n) {
|
|
|
35244
35244
|
},
|
|
35245
35245
|
t.label
|
|
35246
35246
|
),
|
|
35247
|
-
|
|
35247
|
+
H(
|
|
35248
35248
|
"select",
|
|
35249
35249
|
{
|
|
35250
35250
|
...o,
|
|
@@ -35259,7 +35259,7 @@ function eht(e, t, n) {
|
|
|
35259
35259
|
)
|
|
35260
35260
|
);
|
|
35261
35261
|
}
|
|
35262
|
-
return
|
|
35262
|
+
return H(
|
|
35263
35263
|
"select",
|
|
35264
35264
|
{
|
|
35265
35265
|
key: n,
|
|
@@ -35276,14 +35276,14 @@ function eht(e, t, n) {
|
|
|
35276
35276
|
}
|
|
35277
35277
|
function nht(e, t, n) {
|
|
35278
35278
|
const r = t.className || "flex items-center gap-3 cursor-pointer text-white", i = e.parseClassName(r), o = "w-5 h-5 rounded border-gray-600 bg-gray-800 accent-primary", s = e.parseClassName(o), l = e.getCommonProps(n, i, t);
|
|
35279
|
-
return
|
|
35279
|
+
return H(
|
|
35280
35280
|
"label",
|
|
35281
35281
|
{
|
|
35282
35282
|
key: n,
|
|
35283
35283
|
className: r,
|
|
35284
35284
|
...l
|
|
35285
35285
|
},
|
|
35286
|
-
|
|
35286
|
+
H("input", {
|
|
35287
35287
|
type: "checkbox",
|
|
35288
35288
|
className: o,
|
|
35289
35289
|
style: s,
|
|
@@ -35293,7 +35293,7 @@ function nht(e, t, n) {
|
|
|
35293
35293
|
[t.name || ""]: c.target.checked
|
|
35294
35294
|
}))
|
|
35295
35295
|
}),
|
|
35296
|
-
|
|
35296
|
+
H("span", {}, t.label || "")
|
|
35297
35297
|
);
|
|
35298
35298
|
}
|
|
35299
35299
|
function rht(e, t, n) {
|
|
@@ -35327,7 +35327,7 @@ function rht(e, t, n) {
|
|
|
35327
35327
|
};
|
|
35328
35328
|
l === "solid" ? (c.backgroundColor = s.color, c.color = "#fff") : l === "outline" ? (c.backgroundColor = "transparent", c.color = s.color, c.border = `1px solid ${s.border || s.color}`) : (c.backgroundColor = s.bg, c.color = s.color, t.bordered && (c.border = `1px solid ${s.border || s.color}`)), t.pill && (c.borderRadius = "9999px"), t.className && (c = { ...c, ...e.parseClassName(t.className) });
|
|
35329
35329
|
const h = e.getCommonProps(n, c, t);
|
|
35330
|
-
return
|
|
35330
|
+
return H(
|
|
35331
35331
|
"span",
|
|
35332
35332
|
{ key: n, ...h },
|
|
35333
35333
|
e.interpolateText(t.text || t.label || "")
|
|
@@ -35346,7 +35346,7 @@ function iht(e, t, n) {
|
|
|
35346
35346
|
color: t.color || e.cfg.colors.textSecondary,
|
|
35347
35347
|
...t.className ? e.parseClassName(t.className) : {}
|
|
35348
35348
|
}, i = e.getCommonProps(n, r, t);
|
|
35349
|
-
return
|
|
35349
|
+
return H(
|
|
35350
35350
|
"span",
|
|
35351
35351
|
{ key: n, ...i },
|
|
35352
35352
|
e.interpolateText(t.text || t.label || "")
|
|
@@ -35367,7 +35367,7 @@ function oht(e, t, n) {
|
|
|
35367
35367
|
objectFit: "cover",
|
|
35368
35368
|
...t.className ? e.parseClassName(t.className) : {}
|
|
35369
35369
|
}, u = e.getCommonProps(n, h, t);
|
|
35370
|
-
return
|
|
35370
|
+
return H("img", {
|
|
35371
35371
|
key: n,
|
|
35372
35372
|
src: t.src,
|
|
35373
35373
|
alt: t.alt || t.label || "",
|
|
@@ -35388,7 +35388,7 @@ function oht(e, t, n) {
|
|
|
35388
35388
|
flexShrink: 0,
|
|
35389
35389
|
...t.className ? e.parseClassName(t.className) : {}
|
|
35390
35390
|
}, c = e.getCommonProps(n, l, t);
|
|
35391
|
-
return
|
|
35391
|
+
return H("div", { key: n, ...c }, s);
|
|
35392
35392
|
}
|
|
35393
35393
|
function sht(e, t, n) {
|
|
35394
35394
|
const r = t.progressValue ?? t.value ?? 0, i = t.progressMax ?? 100, o = (y, x) => {
|
|
@@ -35407,7 +35407,7 @@ function sht(e, t, n) {
|
|
|
35407
35407
|
d,
|
|
35408
35408
|
t
|
|
35409
35409
|
);
|
|
35410
|
-
return
|
|
35410
|
+
return H(
|
|
35411
35411
|
"div",
|
|
35412
35412
|
{ key: n, ...m },
|
|
35413
35413
|
(t.progressLabel || t.label) && _.createElement(
|
|
@@ -35420,8 +35420,8 @@ function sht(e, t, n) {
|
|
|
35420
35420
|
color: e.cfg.colors.textMuted
|
|
35421
35421
|
}
|
|
35422
35422
|
},
|
|
35423
|
-
|
|
35424
|
-
|
|
35423
|
+
H("span", null, e.interpolateText(t.progressLabel || t.label || "")),
|
|
35424
|
+
H("span", null, `${s}/${l}`)
|
|
35425
35425
|
),
|
|
35426
35426
|
_.createElement(
|
|
35427
35427
|
"div",
|
|
@@ -35434,7 +35434,7 @@ function sht(e, t, n) {
|
|
|
35434
35434
|
overflow: "hidden"
|
|
35435
35435
|
}
|
|
35436
35436
|
},
|
|
35437
|
-
|
|
35437
|
+
H("div", {
|
|
35438
35438
|
style: {
|
|
35439
35439
|
width: `${Math.min(c, 100)}%`,
|
|
35440
35440
|
height: "100%",
|
|
@@ -35452,10 +35452,10 @@ function aht(e, t, n) {
|
|
|
35452
35452
|
width: "100%",
|
|
35453
35453
|
...t.className ? e.parseClassName(t.className) : {}
|
|
35454
35454
|
}, i = e.getCommonProps(n, r, t);
|
|
35455
|
-
return
|
|
35455
|
+
return H(
|
|
35456
35456
|
"div",
|
|
35457
35457
|
{ key: n, ...i },
|
|
35458
|
-
|
|
35458
|
+
H(
|
|
35459
35459
|
"span",
|
|
35460
35460
|
{
|
|
35461
35461
|
style: {
|
|
@@ -35470,7 +35470,7 @@ function aht(e, t, n) {
|
|
|
35470
35470
|
},
|
|
35471
35471
|
e.renderIcon("search", 14)
|
|
35472
35472
|
),
|
|
35473
|
-
|
|
35473
|
+
H("input", {
|
|
35474
35474
|
type: "text",
|
|
35475
35475
|
name: t.name || "search",
|
|
35476
35476
|
placeholder: t.placeholder || "Search...",
|
|
@@ -35503,7 +35503,7 @@ function lht(e, t, n) {
|
|
|
35503
35503
|
fontSize: "14px",
|
|
35504
35504
|
...t.className ? e.parseClassName(t.className) : {}
|
|
35505
35505
|
}, o = e.getCommonProps(n, i, t);
|
|
35506
|
-
return
|
|
35506
|
+
return H(
|
|
35507
35507
|
"nav",
|
|
35508
35508
|
{ key: n, ...o, "aria-label": "Breadcrumb" },
|
|
35509
35509
|
r.map(
|
|
@@ -35527,7 +35527,7 @@ function lht(e, t, n) {
|
|
|
35527
35527
|
},
|
|
35528
35528
|
h
|
|
35529
35529
|
),
|
|
35530
|
-
!c &&
|
|
35530
|
+
!c && H(
|
|
35531
35531
|
"span",
|
|
35532
35532
|
{ style: { color: e.cfg.colors.border, margin: "0 2px" } },
|
|
35533
35533
|
"/"
|
|
@@ -35571,7 +35571,7 @@ function cht(e, t, n) {
|
|
|
35571
35571
|
alignItems: "center",
|
|
35572
35572
|
justifyContent: "center"
|
|
35573
35573
|
};
|
|
35574
|
-
return c === "fade" ? (w.position = "absolute", w.inset = "0", w.opacity = A === i ? 1 : 0, w.transition = "opacity .5s ease", w.pointerEvents = A === i ? "auto" : "none") : w.flexShrink = 0,
|
|
35574
|
+
return c === "fade" ? (w.position = "absolute", w.inset = "0", w.opacity = A === i ? 1 : 0, w.transition = "opacity .5s ease", w.pointerEvents = A === i ? "auto" : "none") : w.flexShrink = 0, H(
|
|
35575
35575
|
"div",
|
|
35576
35576
|
{ key: `${n}-item-${A}`, style: w },
|
|
35577
35577
|
C
|
|
@@ -35598,14 +35598,14 @@ function cht(e, t, n) {
|
|
|
35598
35598
|
alignItems: "center",
|
|
35599
35599
|
justifyContent: "center"
|
|
35600
35600
|
};
|
|
35601
|
-
return
|
|
35601
|
+
return H(
|
|
35602
35602
|
"div",
|
|
35603
35603
|
{ key: n, ...y },
|
|
35604
|
-
|
|
35605
|
-
u &&
|
|
35604
|
+
H("div", { style: v }, p),
|
|
35605
|
+
u && H(
|
|
35606
35606
|
"div",
|
|
35607
35607
|
{ style: { ...P, left: "8px" } },
|
|
35608
|
-
|
|
35608
|
+
H(
|
|
35609
35609
|
"button",
|
|
35610
35610
|
{
|
|
35611
35611
|
style: {
|
|
@@ -35621,10 +35621,10 @@ function cht(e, t, n) {
|
|
|
35621
35621
|
"<"
|
|
35622
35622
|
)
|
|
35623
35623
|
),
|
|
35624
|
-
u &&
|
|
35624
|
+
u && H(
|
|
35625
35625
|
"div",
|
|
35626
35626
|
{ style: { ...P, right: "8px" } },
|
|
35627
|
-
|
|
35627
|
+
H(
|
|
35628
35628
|
"button",
|
|
35629
35629
|
{
|
|
35630
35630
|
style: {
|
|
@@ -35640,7 +35640,7 @@ function cht(e, t, n) {
|
|
|
35640
35640
|
">"
|
|
35641
35641
|
)
|
|
35642
35642
|
),
|
|
35643
|
-
d &&
|
|
35643
|
+
d && H(
|
|
35644
35644
|
"div",
|
|
35645
35645
|
{
|
|
35646
35646
|
style: {
|
|
@@ -35654,7 +35654,7 @@ function cht(e, t, n) {
|
|
|
35654
35654
|
}
|
|
35655
35655
|
},
|
|
35656
35656
|
r.map(
|
|
35657
|
-
(S, A) =>
|
|
35657
|
+
(S, A) => H("button", {
|
|
35658
35658
|
key: `${n}-dot-${A}`,
|
|
35659
35659
|
"aria-label": `Slide ${A + 1}`,
|
|
35660
35660
|
onClick: () => h(A),
|
|
@@ -35678,7 +35678,7 @@ function uht(e, t, n) {
|
|
|
35678
35678
|
overflow: "hidden",
|
|
35679
35679
|
width: "100%",
|
|
35680
35680
|
...t.className ? e.parseClassName(t.className) : {}
|
|
35681
|
-
}, s = e.getCommonProps(n, o, t), l = (c) =>
|
|
35681
|
+
}, s = e.getCommonProps(n, o, t), l = (c) => H(
|
|
35682
35682
|
"div",
|
|
35683
35683
|
{
|
|
35684
35684
|
key: c,
|
|
@@ -35702,10 +35702,10 @@ function uht(e, t, n) {
|
|
|
35702
35702
|
return e.renderComponent(d, u, `${c}-${n}-marq`);
|
|
35703
35703
|
})
|
|
35704
35704
|
);
|
|
35705
|
-
return
|
|
35705
|
+
return H(
|
|
35706
35706
|
"div",
|
|
35707
35707
|
{ key: n, ...s },
|
|
35708
|
-
|
|
35708
|
+
H(
|
|
35709
35709
|
"div",
|
|
35710
35710
|
{ style: { display: "flex", width: "max-content" } },
|
|
35711
35711
|
l("a"),
|
|
@@ -35718,7 +35718,7 @@ function hht(e, t, n) {
|
|
|
35718
35718
|
var W;
|
|
35719
35719
|
(W = i.current) == null || W.getTracks().forEach((j) => j.stop()), i.current = null;
|
|
35720
35720
|
}, P = async (W) => {
|
|
35721
|
-
var
|
|
35721
|
+
var q, z, K;
|
|
35722
35722
|
const j = new FormData();
|
|
35723
35723
|
j.append("file", W, `${m}-${Date.now()}.jpg`);
|
|
35724
35724
|
const D = await fetch(new URL(p, x).toString(), {
|
|
@@ -35730,15 +35730,15 @@ function hht(e, t, n) {
|
|
|
35730
35730
|
});
|
|
35731
35731
|
if (!D.ok) throw new Error("Upload failed");
|
|
35732
35732
|
const Y = await D.json();
|
|
35733
|
-
return ((
|
|
35733
|
+
return ((q = Y == null ? void 0 : Y.file) == null ? void 0 : q.url) || ((z = Y == null ? void 0 : Y.file) == null ? void 0 : z.publicUrl) || ((K = Y == null ? void 0 : Y.file) == null ? void 0 : K.path) || (Y == null ? void 0 : Y.url) || (Y == null ? void 0 : Y.path) || "";
|
|
35734
35734
|
}, S = async (W, j) => {
|
|
35735
35735
|
var D, Y;
|
|
35736
35736
|
if (s !== "done") {
|
|
35737
35737
|
v();
|
|
35738
35738
|
try {
|
|
35739
35739
|
d(!0);
|
|
35740
|
-
const
|
|
35741
|
-
e.setSceneData((z) => ({ ...z, [m]:
|
|
35740
|
+
const q = j || await P(W);
|
|
35741
|
+
e.setSceneData((z) => ({ ...z, [m]: q })), h(q), l("done"), (D = e.showToast) == null || D.call(
|
|
35742
35742
|
e,
|
|
35743
35743
|
t.successMessage || (j ? "Scanned!" : "Captured & uploaded"),
|
|
35744
35744
|
"success"
|
|
@@ -35771,12 +35771,12 @@ function hht(e, t, n) {
|
|
|
35771
35771
|
});
|
|
35772
35772
|
if (i.current = D, r.current && (r.current.srcObject = D, await r.current.play().catch(() => {
|
|
35773
35773
|
})), l("running"), y) {
|
|
35774
|
-
const
|
|
35775
|
-
if (!
|
|
35774
|
+
const q = window.BarcodeDetector;
|
|
35775
|
+
if (!q) {
|
|
35776
35776
|
l("error"), (W = e.showToast) == null || W.call(e, "QR scanning not supported in this browser", "error");
|
|
35777
35777
|
return;
|
|
35778
35778
|
}
|
|
35779
|
-
const z = new
|
|
35779
|
+
const z = new q();
|
|
35780
35780
|
o.current = window.setInterval(async () => {
|
|
35781
35781
|
const K = r.current;
|
|
35782
35782
|
if (!(!K || !K.videoWidth || s === "done"))
|
|
@@ -35801,7 +35801,7 @@ function hht(e, t, n) {
|
|
|
35801
35801
|
gap: "12px",
|
|
35802
35802
|
width: "100%",
|
|
35803
35803
|
...t.className ? e.parseClassName(t.className) : {}
|
|
35804
|
-
}, E = e.getCommonProps(n, w, t), O =
|
|
35804
|
+
}, E = e.getCommonProps(n, w, t), O = H("video", {
|
|
35805
35805
|
key: "cam-video",
|
|
35806
35806
|
ref: r,
|
|
35807
35807
|
autoPlay: !0,
|
|
@@ -35816,7 +35816,7 @@ function hht(e, t, n) {
|
|
|
35816
35816
|
background: "#0f172a",
|
|
35817
35817
|
display: y || s !== "done" ? void 0 : "none"
|
|
35818
35818
|
}
|
|
35819
|
-
}), N = c ?
|
|
35819
|
+
}), N = c ? H("img", {
|
|
35820
35820
|
key: "cam-result",
|
|
35821
35821
|
src: c,
|
|
35822
35822
|
alt: "captured",
|
|
@@ -35828,7 +35828,7 @@ function hht(e, t, n) {
|
|
|
35828
35828
|
objectFit: "cover",
|
|
35829
35829
|
background: "#0f172a"
|
|
35830
35830
|
}
|
|
35831
|
-
}) : null, R =
|
|
35831
|
+
}) : null, R = H(
|
|
35832
35832
|
"div",
|
|
35833
35833
|
{
|
|
35834
35834
|
key: "cam-actions",
|
|
@@ -35839,7 +35839,7 @@ function hht(e, t, n) {
|
|
|
35839
35839
|
justifyContent: "center"
|
|
35840
35840
|
}
|
|
35841
35841
|
},
|
|
35842
|
-
s !== "done" ?
|
|
35842
|
+
s !== "done" ? H(
|
|
35843
35843
|
"button",
|
|
35844
35844
|
{
|
|
35845
35845
|
key: "cam-capture",
|
|
@@ -35856,7 +35856,7 @@ function hht(e, t, n) {
|
|
|
35856
35856
|
}
|
|
35857
35857
|
},
|
|
35858
35858
|
u ? "Uploading..." : y ? t.captureLabel || "Scan QR" : t.captureLabel || "Capture"
|
|
35859
|
-
) :
|
|
35859
|
+
) : H(
|
|
35860
35860
|
"button",
|
|
35861
35861
|
{
|
|
35862
35862
|
key: "cam-retake",
|
|
@@ -35874,13 +35874,13 @@ function hht(e, t, n) {
|
|
|
35874
35874
|
"Retake"
|
|
35875
35875
|
)
|
|
35876
35876
|
);
|
|
35877
|
-
return
|
|
35877
|
+
return H(
|
|
35878
35878
|
"div",
|
|
35879
35879
|
{ key: n, ...E },
|
|
35880
35880
|
O,
|
|
35881
35881
|
N,
|
|
35882
35882
|
t.captureLabel === !1 ? null : R,
|
|
35883
|
-
s === "error" ?
|
|
35883
|
+
s === "error" ? H(
|
|
35884
35884
|
"p",
|
|
35885
35885
|
{ key: "cam-err", style: { color: "#EF4444", fontSize: "13px" } },
|
|
35886
35886
|
"Camera unavailable — check permissions"
|
|
@@ -35891,7 +35891,7 @@ function fht(e, t, n) {
|
|
|
35891
35891
|
var i;
|
|
35892
35892
|
if (t.className) {
|
|
35893
35893
|
const o = ((i = e.parseClassNameResponsive) == null ? void 0 : i.call(e, t.className, n)) ?? e.parseClassName(t.className), s = e.getCommonProps(n, o, t);
|
|
35894
|
-
return
|
|
35894
|
+
return H("div", {
|
|
35895
35895
|
key: n,
|
|
35896
35896
|
className: t.className,
|
|
35897
35897
|
...s
|
|
@@ -35902,11 +35902,11 @@ function fht(e, t, n) {
|
|
|
35902
35902
|
{ height: t.h || t.height || "24px" },
|
|
35903
35903
|
t
|
|
35904
35904
|
);
|
|
35905
|
-
return
|
|
35905
|
+
return H("div", { key: n, ...r });
|
|
35906
35906
|
}
|
|
35907
35907
|
function dht(e, t, n) {
|
|
35908
35908
|
const r = t.className || "border-gray-700 my-4", i = e.parseClassName(r), o = e.getCommonProps(n, i, t);
|
|
35909
|
-
return
|
|
35909
|
+
return H("hr", {
|
|
35910
35910
|
key: n,
|
|
35911
35911
|
className: r,
|
|
35912
35912
|
...o
|
|
@@ -35922,7 +35922,7 @@ function pht(e, t, n) {
|
|
|
35922
35922
|
for (let m = 0; m < i; m++) {
|
|
35923
35923
|
const y = t.width || (m === i - 1 ? "60%" : "100%");
|
|
35924
35924
|
d.push(
|
|
35925
|
-
|
|
35925
|
+
H("div", {
|
|
35926
35926
|
key: m,
|
|
35927
35927
|
className: "bf-loader-skeleton",
|
|
35928
35928
|
style: {
|
|
@@ -35934,7 +35934,7 @@ function pht(e, t, n) {
|
|
|
35934
35934
|
})
|
|
35935
35935
|
);
|
|
35936
35936
|
}
|
|
35937
|
-
return
|
|
35937
|
+
return H(
|
|
35938
35938
|
"div",
|
|
35939
35939
|
{
|
|
35940
35940
|
key: n,
|
|
@@ -35951,7 +35951,7 @@ function pht(e, t, n) {
|
|
|
35951
35951
|
for (let m = 0; m < i; m++) {
|
|
35952
35952
|
const y = t.width || (m === i - 1 ? "60%" : "100%");
|
|
35953
35953
|
d.push(
|
|
35954
|
-
|
|
35954
|
+
H("div", {
|
|
35955
35955
|
key: m,
|
|
35956
35956
|
className: "bf-loader-shimmer",
|
|
35957
35957
|
style: {
|
|
@@ -35963,7 +35963,7 @@ function pht(e, t, n) {
|
|
|
35963
35963
|
})
|
|
35964
35964
|
);
|
|
35965
35965
|
}
|
|
35966
|
-
return
|
|
35966
|
+
return H(
|
|
35967
35967
|
"div",
|
|
35968
35968
|
{
|
|
35969
35969
|
key: n,
|
|
@@ -35977,7 +35977,7 @@ function pht(e, t, n) {
|
|
|
35977
35977
|
}
|
|
35978
35978
|
if (r === "dots") {
|
|
35979
35979
|
const d = t.color || "currentColor";
|
|
35980
|
-
return
|
|
35980
|
+
return H(
|
|
35981
35981
|
"div",
|
|
35982
35982
|
{
|
|
35983
35983
|
key: n,
|
|
@@ -35992,7 +35992,7 @@ function pht(e, t, n) {
|
|
|
35992
35992
|
...c
|
|
35993
35993
|
},
|
|
35994
35994
|
[0, 1, 2].map(
|
|
35995
|
-
(m) =>
|
|
35995
|
+
(m) => H("div", {
|
|
35996
35996
|
key: m,
|
|
35997
35997
|
className: "bf-loader-dot",
|
|
35998
35998
|
style: {
|
|
@@ -36007,7 +36007,7 @@ function pht(e, t, n) {
|
|
|
36007
36007
|
);
|
|
36008
36008
|
}
|
|
36009
36009
|
if (r === "pulse")
|
|
36010
|
-
return
|
|
36010
|
+
return H(
|
|
36011
36011
|
"div",
|
|
36012
36012
|
{
|
|
36013
36013
|
key: n,
|
|
@@ -36021,7 +36021,7 @@ function pht(e, t, n) {
|
|
|
36021
36021
|
...s,
|
|
36022
36022
|
...c
|
|
36023
36023
|
},
|
|
36024
|
-
|
|
36024
|
+
H("div", {
|
|
36025
36025
|
className: "bf-loader-pulse",
|
|
36026
36026
|
style: {
|
|
36027
36027
|
width: t.size || "32px",
|
|
@@ -36032,7 +36032,7 @@ function pht(e, t, n) {
|
|
|
36032
36032
|
})
|
|
36033
36033
|
);
|
|
36034
36034
|
if (r === "progress")
|
|
36035
|
-
return
|
|
36035
|
+
return H(
|
|
36036
36036
|
"div",
|
|
36037
36037
|
{
|
|
36038
36038
|
key: n,
|
|
@@ -36041,7 +36041,7 @@ function pht(e, t, n) {
|
|
|
36041
36041
|
...s,
|
|
36042
36042
|
...c
|
|
36043
36043
|
},
|
|
36044
|
-
|
|
36044
|
+
H(
|
|
36045
36045
|
"div",
|
|
36046
36046
|
{
|
|
36047
36047
|
style: {
|
|
@@ -36052,7 +36052,7 @@ function pht(e, t, n) {
|
|
|
36052
36052
|
overflow: "hidden"
|
|
36053
36053
|
}
|
|
36054
36054
|
},
|
|
36055
|
-
|
|
36055
|
+
H("div", {
|
|
36056
36056
|
className: "bf-loader-progress-bar",
|
|
36057
36057
|
style: {
|
|
36058
36058
|
height: "100%",
|
|
@@ -36064,7 +36064,7 @@ function pht(e, t, n) {
|
|
|
36064
36064
|
)
|
|
36065
36065
|
);
|
|
36066
36066
|
const h = t.size || "24px";
|
|
36067
|
-
return
|
|
36067
|
+
return H(
|
|
36068
36068
|
"div",
|
|
36069
36069
|
{
|
|
36070
36070
|
key: n,
|
|
@@ -36078,7 +36078,7 @@ function pht(e, t, n) {
|
|
|
36078
36078
|
...s,
|
|
36079
36079
|
...c
|
|
36080
36080
|
},
|
|
36081
|
-
|
|
36081
|
+
H("div", {
|
|
36082
36082
|
className: "bf-loader-spinner",
|
|
36083
36083
|
style: {
|
|
36084
36084
|
width: h,
|
|
@@ -36094,7 +36094,7 @@ function mht(e, t, n) {
|
|
|
36094
36094
|
const r = t.rows || 4;
|
|
36095
36095
|
if (t.className) {
|
|
36096
36096
|
const s = e.parseClassName(t.className), l = e.getCommonProps(n, s, t);
|
|
36097
|
-
return
|
|
36097
|
+
return H("textarea", {
|
|
36098
36098
|
key: n,
|
|
36099
36099
|
className: t.className,
|
|
36100
36100
|
...l,
|
|
@@ -36117,10 +36117,10 @@ function mht(e, t, n) {
|
|
|
36117
36117
|
}, o = e.getCommonProps(n, i, t);
|
|
36118
36118
|
if (t.label) {
|
|
36119
36119
|
const s = e.getCommonProps(n, { width: "100%" }, t);
|
|
36120
|
-
return
|
|
36120
|
+
return H(
|
|
36121
36121
|
"div",
|
|
36122
36122
|
{ key: n, ...s },
|
|
36123
|
-
|
|
36123
|
+
H(
|
|
36124
36124
|
"label",
|
|
36125
36125
|
{
|
|
36126
36126
|
style: {
|
|
@@ -36133,7 +36133,7 @@ function mht(e, t, n) {
|
|
|
36133
36133
|
},
|
|
36134
36134
|
t.label
|
|
36135
36135
|
),
|
|
36136
|
-
|
|
36136
|
+
H("textarea", {
|
|
36137
36137
|
...o,
|
|
36138
36138
|
name: t.name,
|
|
36139
36139
|
placeholder: t.placeholder,
|
|
@@ -36141,7 +36141,7 @@ function mht(e, t, n) {
|
|
|
36141
36141
|
})
|
|
36142
36142
|
);
|
|
36143
36143
|
}
|
|
36144
|
-
return
|
|
36144
|
+
return H("textarea", {
|
|
36145
36145
|
key: n,
|
|
36146
36146
|
...o,
|
|
36147
36147
|
name: t.name,
|
|
@@ -36153,7 +36153,7 @@ function ght(e, t, n) {
|
|
|
36153
36153
|
const r = t.icon || t.name || "", i = t.size || 24, o = e.renderIcon(r, i), s = t.tooltip ? e.interpolateText(t.tooltip) : void 0;
|
|
36154
36154
|
if (t.className) {
|
|
36155
36155
|
const l = e.parseClassName(t.className), c = e.getCommonProps(n, l, t);
|
|
36156
|
-
return
|
|
36156
|
+
return H(
|
|
36157
36157
|
"span",
|
|
36158
36158
|
{
|
|
36159
36159
|
key: n,
|
|
@@ -36164,7 +36164,7 @@ function ght(e, t, n) {
|
|
|
36164
36164
|
o
|
|
36165
36165
|
);
|
|
36166
36166
|
}
|
|
36167
|
-
return s ?
|
|
36167
|
+
return s ? H("span", { key: n, title: s }, o) : _.cloneElement(o, { key: n });
|
|
36168
36168
|
}
|
|
36169
36169
|
function yht(e, t, n) {
|
|
36170
36170
|
const r = t.metricSize || "md", i = r === "sm" ? "1.25rem" : r === "lg" ? "2.5rem" : "1.75rem", o = r === "sm" ? "0.75rem" : r === "lg" ? "1rem" : "0.875rem", s = t.color || e.cfg.colors.primary, l = t.trend === "up" ? "↑" : t.trend === "down" ? "↓" : "", c = t.trendColor || (t.trend === "up" ? e.cfg.colors.success : t.trend === "down" ? e.cfg.colors.danger : e.cfg.colors.textMuted), h = {
|
|
@@ -36177,10 +36177,10 @@ function yht(e, t, n) {
|
|
|
36177
36177
|
border: `1px solid ${e.cfg.colors.borderSubtle}`,
|
|
36178
36178
|
...t.className ? e.parseClassName(t.className) : {}
|
|
36179
36179
|
}, u = e.getCommonProps(n, h, t);
|
|
36180
|
-
return
|
|
36180
|
+
return H(
|
|
36181
36181
|
"div",
|
|
36182
36182
|
{ key: n, ...u },
|
|
36183
|
-
t.label &&
|
|
36183
|
+
t.label && H(
|
|
36184
36184
|
"span",
|
|
36185
36185
|
{
|
|
36186
36186
|
style: {
|
|
@@ -36201,12 +36201,12 @@ function yht(e, t, n) {
|
|
|
36201
36201
|
marginTop: "4px"
|
|
36202
36202
|
}
|
|
36203
36203
|
},
|
|
36204
|
-
t.prefix &&
|
|
36204
|
+
t.prefix && H(
|
|
36205
36205
|
"span",
|
|
36206
36206
|
{ style: { fontSize: i, fontWeight: 700, color: s } },
|
|
36207
36207
|
t.prefix
|
|
36208
36208
|
),
|
|
36209
|
-
|
|
36209
|
+
H(
|
|
36210
36210
|
"span",
|
|
36211
36211
|
{
|
|
36212
36212
|
style: {
|
|
@@ -36217,12 +36217,12 @@ function yht(e, t, n) {
|
|
|
36217
36217
|
},
|
|
36218
36218
|
typeof t.value == "number" ? t.value.toLocaleString() : e.interpolateText(String(t.value ?? ""))
|
|
36219
36219
|
),
|
|
36220
|
-
t.suffix &&
|
|
36220
|
+
t.suffix && H(
|
|
36221
36221
|
"span",
|
|
36222
36222
|
{ style: { fontSize: i, fontWeight: 700, color: s } },
|
|
36223
36223
|
t.suffix
|
|
36224
36224
|
),
|
|
36225
|
-
t.delta &&
|
|
36225
|
+
t.delta && H(
|
|
36226
36226
|
"span",
|
|
36227
36227
|
{
|
|
36228
36228
|
style: {
|
|
@@ -36295,10 +36295,10 @@ function vht(e, t, n) {
|
|
|
36295
36295
|
})
|
|
36296
36296
|
)
|
|
36297
36297
|
);
|
|
36298
|
-
return
|
|
36298
|
+
return H(
|
|
36299
36299
|
"div",
|
|
36300
36300
|
{ key: n, style: e.getCommonProps(n, l, t) },
|
|
36301
|
-
t.title &&
|
|
36301
|
+
t.title && H("div", { style: { marginBottom: "0.75rem" } }, t.title),
|
|
36302
36302
|
u
|
|
36303
36303
|
);
|
|
36304
36304
|
}
|
|
@@ -36319,10 +36319,10 @@ function _T(e, t, n, r = !1) {
|
|
|
36319
36319
|
border: `1px solid ${e.cfg.colors.borderSubtle}`,
|
|
36320
36320
|
...t.className ? e.parseClassName(t.className) : {}
|
|
36321
36321
|
};
|
|
36322
|
-
return
|
|
36322
|
+
return H(
|
|
36323
36323
|
"div",
|
|
36324
36324
|
{ key: n, style: e.getCommonProps(n, l, t) },
|
|
36325
|
-
t.title &&
|
|
36325
|
+
t.title && H("div", { style: { marginBottom: "0.75rem" } }, t.title),
|
|
36326
36326
|
_.createElement(
|
|
36327
36327
|
im,
|
|
36328
36328
|
{ width: "100%", height: o },
|
|
@@ -36375,10 +36375,10 @@ function bht(e, t, n) {
|
|
|
36375
36375
|
border: `1px solid ${e.cfg.colors.borderSubtle}`,
|
|
36376
36376
|
...t.className ? e.parseClassName(t.className) : {}
|
|
36377
36377
|
};
|
|
36378
|
-
return
|
|
36378
|
+
return H(
|
|
36379
36379
|
"div",
|
|
36380
36380
|
{ key: n, style: e.getCommonProps(n, c, t) },
|
|
36381
|
-
t.title &&
|
|
36381
|
+
t.title && H("div", { style: { marginBottom: "0.75rem" } }, t.title),
|
|
36382
36382
|
_.createElement(
|
|
36383
36383
|
im,
|
|
36384
36384
|
{ width: "100%", height: i },
|
|
@@ -36537,10 +36537,10 @@ function ly(e, t, n, r = !1, i = !1) {
|
|
|
36537
36537
|
...t.className ? e.parseClassName(t.className) : {}
|
|
36538
36538
|
}, p = i ? o.map((v, P) => {
|
|
36539
36539
|
const S = Number(v.open), A = Number(v.close), C = Number(v.high), w = Number(v.low), E = A >= S;
|
|
36540
|
-
return
|
|
36540
|
+
return H(
|
|
36541
36541
|
"div",
|
|
36542
36542
|
{ key: P, style: { flex: 1, height: "100%", position: "relative" } },
|
|
36543
|
-
|
|
36543
|
+
H("div", {
|
|
36544
36544
|
style: {
|
|
36545
36545
|
position: "absolute",
|
|
36546
36546
|
left: "50%",
|
|
@@ -36549,7 +36549,7 @@ function ly(e, t, n, r = !1, i = !1) {
|
|
|
36549
36549
|
borderLeft: `1px solid ${E ? "#22c55e" : "#ef4444"}`
|
|
36550
36550
|
}
|
|
36551
36551
|
}),
|
|
36552
|
-
|
|
36552
|
+
H("div", {
|
|
36553
36553
|
style: {
|
|
36554
36554
|
position: "absolute",
|
|
36555
36555
|
left: "25%",
|
|
@@ -36570,10 +36570,10 @@ function ly(e, t, n, r = !1, i = !1) {
|
|
|
36570
36570
|
fillColor: y,
|
|
36571
36571
|
filled: r
|
|
36572
36572
|
});
|
|
36573
|
-
return
|
|
36573
|
+
return H(
|
|
36574
36574
|
"div",
|
|
36575
36575
|
{ key: n, style: e.getCommonProps(n, x, t) },
|
|
36576
|
-
t.title &&
|
|
36576
|
+
t.title && H(
|
|
36577
36577
|
"div",
|
|
36578
36578
|
{
|
|
36579
36579
|
style: {
|
|
@@ -36584,7 +36584,7 @@ function ly(e, t, n, r = !1, i = !1) {
|
|
|
36584
36584
|
},
|
|
36585
36585
|
t.title
|
|
36586
36586
|
),
|
|
36587
|
-
|
|
36587
|
+
H(
|
|
36588
36588
|
"div",
|
|
36589
36589
|
{
|
|
36590
36590
|
style: {
|
|
@@ -36596,7 +36596,7 @@ function ly(e, t, n, r = !1, i = !1) {
|
|
|
36596
36596
|
},
|
|
36597
36597
|
p
|
|
36598
36598
|
),
|
|
36599
|
-
i &&
|
|
36599
|
+
i && H(
|
|
36600
36600
|
"div",
|
|
36601
36601
|
{
|
|
36602
36602
|
style: {
|
|
@@ -36608,7 +36608,7 @@ function ly(e, t, n, r = !1, i = !1) {
|
|
|
36608
36608
|
}
|
|
36609
36609
|
},
|
|
36610
36610
|
...o.map(
|
|
36611
|
-
(v, P) =>
|
|
36611
|
+
(v, P) => H("span", { key: P }, v.label || "")
|
|
36612
36612
|
)
|
|
36613
36613
|
)
|
|
36614
36614
|
);
|
|
@@ -36630,24 +36630,24 @@ function wht(e, t, n) {
|
|
|
36630
36630
|
},
|
|
36631
36631
|
t
|
|
36632
36632
|
);
|
|
36633
|
-
return
|
|
36633
|
+
return H(
|
|
36634
36634
|
"div",
|
|
36635
36635
|
{ key: n, ...u },
|
|
36636
|
-
|
|
36636
|
+
H(
|
|
36637
36637
|
"div",
|
|
36638
36638
|
{},
|
|
36639
|
-
|
|
36639
|
+
H(
|
|
36640
36640
|
"div",
|
|
36641
36641
|
{ style: { color: e.cfg.colors.text, fontWeight: 700 } },
|
|
36642
36642
|
i
|
|
36643
36643
|
),
|
|
36644
|
-
t.label &&
|
|
36644
|
+
t.label && H(
|
|
36645
36645
|
"div",
|
|
36646
36646
|
{ style: { color: e.cfg.colors.textMuted, fontSize: "0.75rem" } },
|
|
36647
36647
|
t.label
|
|
36648
36648
|
)
|
|
36649
36649
|
),
|
|
36650
|
-
|
|
36650
|
+
H(
|
|
36651
36651
|
"div",
|
|
36652
36652
|
{
|
|
36653
36653
|
style: {
|
|
@@ -36657,17 +36657,17 @@ function wht(e, t, n) {
|
|
|
36657
36657
|
fontVariantNumeric: "tabular-nums"
|
|
36658
36658
|
}
|
|
36659
36659
|
},
|
|
36660
|
-
o != null &&
|
|
36660
|
+
o != null && H(
|
|
36661
36661
|
"span",
|
|
36662
36662
|
{ style: { color: e.cfg.colors.text, fontWeight: 700 } },
|
|
36663
36663
|
String(o)
|
|
36664
36664
|
),
|
|
36665
|
-
s != null &&
|
|
36665
|
+
s != null && H(
|
|
36666
36666
|
"span",
|
|
36667
36667
|
{ style: { color: e.cfg.colors.textSecondary } },
|
|
36668
36668
|
String(s)
|
|
36669
36669
|
),
|
|
36670
|
-
l != null &&
|
|
36670
|
+
l != null && H(
|
|
36671
36671
|
"span",
|
|
36672
36672
|
{
|
|
36673
36673
|
style: {
|
|
@@ -36704,9 +36704,9 @@ function _ht({
|
|
|
36704
36704
|
try {
|
|
36705
36705
|
const j = typeof R.data == "string" ? JSON.parse(R.data) : R.data, D = (j == null ? void 0 : j.tick) || ((W = j == null ? void 0 : j.data) == null ? void 0 : W.tick) || (j == null ? void 0 : j.data) || j, Y = Number((D == null ? void 0 : D.quote) ?? (D == null ? void 0 : D.price) ?? (D == null ? void 0 : D.close));
|
|
36706
36706
|
if (!Number.isFinite(Y)) return;
|
|
36707
|
-
const
|
|
36707
|
+
const q = Number(
|
|
36708
36708
|
(D == null ? void 0 : D.epoch) ?? (D == null ? void 0 : D.timestamp) ?? Date.now() / 1e3
|
|
36709
|
-
), z = Math.floor(
|
|
36709
|
+
), z = Math.floor(q / 60) * 60;
|
|
36710
36710
|
u((K) => {
|
|
36711
36711
|
const Z = K[K.length - 1];
|
|
36712
36712
|
if ((Z == null ? void 0 : Z.time) === z)
|
|
@@ -36798,7 +36798,7 @@ function _ht({
|
|
|
36798
36798
|
return;
|
|
36799
36799
|
const C = { "1H": 3600, "4H": 14400, "1D": 86400, "1W": 604800 }[s], w = Number(c.current.time);
|
|
36800
36800
|
C && Number.isFinite(w) && o.current.timeScale().setVisibleRange({ from: w - C, to: w });
|
|
36801
|
-
}, [s]),
|
|
36801
|
+
}, [s]), H(
|
|
36802
36802
|
"div",
|
|
36803
36803
|
{
|
|
36804
36804
|
key: n,
|
|
@@ -36811,11 +36811,11 @@ function _ht({
|
|
|
36811
36811
|
...t.className ? e.parseClassName(t.className) : {}
|
|
36812
36812
|
}
|
|
36813
36813
|
},
|
|
36814
|
-
x.length > 0 &&
|
|
36814
|
+
x.length > 0 && H(
|
|
36815
36815
|
"div",
|
|
36816
36816
|
{ style: { display: "flex", gap: "0.35rem", marginBottom: "0.5rem" } },
|
|
36817
36817
|
...x.map(
|
|
36818
|
-
(C) =>
|
|
36818
|
+
(C) => H(
|
|
36819
36819
|
"button",
|
|
36820
36820
|
{
|
|
36821
36821
|
key: C,
|
|
@@ -36834,7 +36834,7 @@ function _ht({
|
|
|
36834
36834
|
)
|
|
36835
36835
|
)
|
|
36836
36836
|
),
|
|
36837
|
-
|
|
36837
|
+
H("div", {
|
|
36838
36838
|
ref: r,
|
|
36839
36839
|
style: { width: "100%", height: Number(t.height) || 280 }
|
|
36840
36840
|
})
|
|
@@ -36849,7 +36849,7 @@ function Pht(e, t, n) {
|
|
|
36849
36849
|
{ display: "flex", flexDirection: "column", minHeight: "300px" },
|
|
36850
36850
|
t
|
|
36851
36851
|
);
|
|
36852
|
-
return
|
|
36852
|
+
return H(
|
|
36853
36853
|
"div",
|
|
36854
36854
|
{ key: n, className: t.className, ...i },
|
|
36855
36855
|
_.createElement(
|
|
@@ -36876,7 +36876,7 @@ function Aht({
|
|
|
36876
36876
|
},
|
|
36877
36877
|
t
|
|
36878
36878
|
);
|
|
36879
|
-
return
|
|
36879
|
+
return H(
|
|
36880
36880
|
"div",
|
|
36881
36881
|
{
|
|
36882
36882
|
key: n,
|
|
@@ -36940,7 +36940,7 @@ const Cht = _.memo(
|
|
|
36940
36940
|
}, [r]), _.createElement(
|
|
36941
36941
|
"div",
|
|
36942
36942
|
{ style: { width: "100%", marginBottom: "1rem" } },
|
|
36943
|
-
t.label ?
|
|
36943
|
+
t.label ? H(
|
|
36944
36944
|
"label",
|
|
36945
36945
|
{
|
|
36946
36946
|
style: {
|
|
@@ -36980,7 +36980,7 @@ const Cht = _.memo(
|
|
|
36980
36980
|
{ cmd: "italic", label: "I" },
|
|
36981
36981
|
{ cmd: "underline", label: "U" }
|
|
36982
36982
|
].map(
|
|
36983
|
-
(S) =>
|
|
36983
|
+
(S) => H(
|
|
36984
36984
|
"button",
|
|
36985
36985
|
{
|
|
36986
36986
|
key: S.cmd,
|
|
@@ -37005,8 +37005,8 @@ const Cht = _.memo(
|
|
|
37005
37005
|
S.label
|
|
37006
37006
|
)
|
|
37007
37007
|
),
|
|
37008
|
-
|
|
37009
|
-
|
|
37008
|
+
H("span", { key: "spacer", style: { flex: 1 } }),
|
|
37009
|
+
H(
|
|
37010
37010
|
"button",
|
|
37011
37011
|
{
|
|
37012
37012
|
key: "list-btn",
|
|
@@ -37029,7 +37029,7 @@ const Cht = _.memo(
|
|
|
37029
37029
|
},
|
|
37030
37030
|
"☰"
|
|
37031
37031
|
),
|
|
37032
|
-
|
|
37032
|
+
H("span", {
|
|
37033
37033
|
key: "divider",
|
|
37034
37034
|
style: {
|
|
37035
37035
|
width: "1px",
|
|
@@ -37039,7 +37039,7 @@ const Cht = _.memo(
|
|
|
37039
37039
|
alignSelf: "center"
|
|
37040
37040
|
}
|
|
37041
37041
|
}),
|
|
37042
|
-
|
|
37042
|
+
H(
|
|
37043
37043
|
"button",
|
|
37044
37044
|
{
|
|
37045
37045
|
key: "img-btn",
|
|
@@ -37065,7 +37065,7 @@ const Cht = _.memo(
|
|
|
37065
37065
|
},
|
|
37066
37066
|
e.renderIcon("image", 14)
|
|
37067
37067
|
),
|
|
37068
|
-
|
|
37068
|
+
H(
|
|
37069
37069
|
"button",
|
|
37070
37070
|
{
|
|
37071
37071
|
key: "att-btn",
|
|
@@ -37091,7 +37091,7 @@ const Cht = _.memo(
|
|
|
37091
37091
|
},
|
|
37092
37092
|
e.renderIcon("paperclip", 14)
|
|
37093
37093
|
),
|
|
37094
|
-
|
|
37094
|
+
H(
|
|
37095
37095
|
"button",
|
|
37096
37096
|
{
|
|
37097
37097
|
key: "ai-btn",
|
|
@@ -37117,7 +37117,7 @@ const Cht = _.memo(
|
|
|
37117
37117
|
e.renderIcon("sparkles", 14)
|
|
37118
37118
|
)
|
|
37119
37119
|
),
|
|
37120
|
-
|
|
37120
|
+
H("div", {
|
|
37121
37121
|
ref: o,
|
|
37122
37122
|
contentEditable: !0,
|
|
37123
37123
|
suppressContentEditableWarning: !0,
|
|
@@ -37168,7 +37168,7 @@ const Cht = _.memo(
|
|
|
37168
37168
|
},
|
|
37169
37169
|
e.renderIcon("maximize-2", 13)
|
|
37170
37170
|
) : null,
|
|
37171
|
-
|
|
37171
|
+
H("input", {
|
|
37172
37172
|
key: "img-input",
|
|
37173
37173
|
ref: c,
|
|
37174
37174
|
type: "file",
|
|
@@ -37201,7 +37201,7 @@ const Cht = _.memo(
|
|
|
37201
37201
|
}
|
|
37202
37202
|
}
|
|
37203
37203
|
}),
|
|
37204
|
-
|
|
37204
|
+
H("input", {
|
|
37205
37205
|
key: "att-input",
|
|
37206
37206
|
ref: h,
|
|
37207
37207
|
type: "file",
|
|
@@ -37224,11 +37224,11 @@ const Cht = _.memo(
|
|
|
37224
37224
|
const Y = e.uploadFile ? await e.uploadFile(
|
|
37225
37225
|
D,
|
|
37226
37226
|
t.upload,
|
|
37227
|
-
(
|
|
37227
|
+
(q) => {
|
|
37228
37228
|
var z;
|
|
37229
37229
|
return (z = E == null ? void 0 : E.update) == null ? void 0 : z.call(
|
|
37230
37230
|
E,
|
|
37231
|
-
`Uploading ${D.name} (${
|
|
37231
|
+
`Uploading ${D.name} (${q}%)`
|
|
37232
37232
|
);
|
|
37233
37233
|
}
|
|
37234
37234
|
) : "";
|
|
@@ -37259,7 +37259,7 @@ const Cht = _.memo(
|
|
|
37259
37259
|
}
|
|
37260
37260
|
}
|
|
37261
37261
|
}),
|
|
37262
|
-
u ?
|
|
37262
|
+
u ? H(
|
|
37263
37263
|
"div",
|
|
37264
37264
|
{
|
|
37265
37265
|
key: "ai-popup",
|
|
@@ -37276,7 +37276,7 @@ const Cht = _.memo(
|
|
|
37276
37276
|
boxShadow: "0 -4px 24px rgba(0,0,0,0.4)"
|
|
37277
37277
|
}
|
|
37278
37278
|
},
|
|
37279
|
-
|
|
37279
|
+
H("textarea", {
|
|
37280
37280
|
value: m,
|
|
37281
37281
|
onChange: (S) => y(S.target.value),
|
|
37282
37282
|
placeholder: "Ask AI to draft a reply...",
|
|
@@ -37295,7 +37295,7 @@ const Cht = _.memo(
|
|
|
37295
37295
|
boxSizing: "border-box"
|
|
37296
37296
|
}
|
|
37297
37297
|
}),
|
|
37298
|
-
|
|
37298
|
+
H(
|
|
37299
37299
|
"div",
|
|
37300
37300
|
{
|
|
37301
37301
|
style: {
|
|
@@ -37305,7 +37305,7 @@ const Cht = _.memo(
|
|
|
37305
37305
|
marginTop: "8px"
|
|
37306
37306
|
}
|
|
37307
37307
|
},
|
|
37308
|
-
|
|
37308
|
+
H(
|
|
37309
37309
|
"button",
|
|
37310
37310
|
{
|
|
37311
37311
|
type: "button",
|
|
@@ -37325,7 +37325,7 @@ const Cht = _.memo(
|
|
|
37325
37325
|
},
|
|
37326
37326
|
"Cancel"
|
|
37327
37327
|
),
|
|
37328
|
-
|
|
37328
|
+
H(
|
|
37329
37329
|
"button",
|
|
37330
37330
|
{
|
|
37331
37331
|
type: "button",
|
|
@@ -37432,7 +37432,7 @@ const Cht = _.memo(
|
|
|
37432
37432
|
const h = t.variant === "selector", u = Array.isArray(t.items) ? t.items : s;
|
|
37433
37433
|
if (h) {
|
|
37434
37434
|
const d = t.name && (e.sceneData[t.name || ""] || c && localStorage.getItem(c)) || "", m = d || t.placeholder || "Select...";
|
|
37435
|
-
return
|
|
37435
|
+
return H(
|
|
37436
37436
|
"div",
|
|
37437
37437
|
{
|
|
37438
37438
|
ref: o,
|
|
@@ -37461,8 +37461,8 @@ const Cht = _.memo(
|
|
|
37461
37461
|
y.preventDefault(), i(!r);
|
|
37462
37462
|
}
|
|
37463
37463
|
},
|
|
37464
|
-
|
|
37465
|
-
|
|
37464
|
+
H("span", { key: "text" }, m),
|
|
37465
|
+
H(
|
|
37466
37466
|
"span",
|
|
37467
37467
|
{
|
|
37468
37468
|
key: "caret",
|
|
@@ -37549,7 +37549,7 @@ const Cht = _.memo(
|
|
|
37549
37549
|
var y;
|
|
37550
37550
|
const d = !!((y = e.buttonLoading) != null && y[n]), m = [];
|
|
37551
37551
|
return d ? m.push(
|
|
37552
|
-
|
|
37552
|
+
H("span", {
|
|
37553
37553
|
key: "spinner",
|
|
37554
37554
|
className: "bf-btn-spinner",
|
|
37555
37555
|
style: {
|
|
@@ -37562,7 +37562,7 @@ const Cht = _.memo(
|
|
|
37562
37562
|
}
|
|
37563
37563
|
})
|
|
37564
37564
|
) : t.icon && m.push(
|
|
37565
|
-
|
|
37565
|
+
H(
|
|
37566
37566
|
"span",
|
|
37567
37567
|
{
|
|
37568
37568
|
key: "icon",
|
|
@@ -37577,7 +37577,7 @@ const Cht = _.memo(
|
|
|
37577
37577
|
e.renderIcon(t.icon, t.iconSize || 16)
|
|
37578
37578
|
)
|
|
37579
37579
|
), m.push(
|
|
37580
|
-
|
|
37580
|
+
H(
|
|
37581
37581
|
"span",
|
|
37582
37582
|
{ key: "text", style: { lineHeight: "1" } },
|
|
37583
37583
|
t.text || "Button"
|
|
@@ -37683,7 +37683,7 @@ const Cht = _.memo(
|
|
|
37683
37683
|
var v;
|
|
37684
37684
|
const y = `${n}-item-${m}`, x = !!((v = e.buttonLoading) != null && v[y]), p = [];
|
|
37685
37685
|
return x ? p.push(
|
|
37686
|
-
|
|
37686
|
+
H("span", {
|
|
37687
37687
|
key: "spinner",
|
|
37688
37688
|
className: "bf-btn-spinner",
|
|
37689
37689
|
style: {
|
|
@@ -37696,7 +37696,7 @@ const Cht = _.memo(
|
|
|
37696
37696
|
}
|
|
37697
37697
|
})
|
|
37698
37698
|
) : d.icon && p.push(
|
|
37699
|
-
|
|
37699
|
+
H(
|
|
37700
37700
|
"span",
|
|
37701
37701
|
{
|
|
37702
37702
|
key: "icon",
|
|
@@ -37846,14 +37846,14 @@ const q$ = _.memo(
|
|
|
37846
37846
|
const x = (p) => {
|
|
37847
37847
|
e.setSceneData((v) => ({ ...v, [t.name || ""]: p })), i(!1);
|
|
37848
37848
|
};
|
|
37849
|
-
return
|
|
37849
|
+
return H(
|
|
37850
37850
|
"div",
|
|
37851
37851
|
{
|
|
37852
37852
|
key: n,
|
|
37853
37853
|
ref: l,
|
|
37854
37854
|
style: { position: "relative", width: "100%", ...d }
|
|
37855
37855
|
},
|
|
37856
|
-
t.label &&
|
|
37856
|
+
t.label && H(
|
|
37857
37857
|
"label",
|
|
37858
37858
|
{
|
|
37859
37859
|
style: {
|
|
@@ -37866,7 +37866,7 @@ const q$ = _.memo(
|
|
|
37866
37866
|
},
|
|
37867
37867
|
t.label
|
|
37868
37868
|
),
|
|
37869
|
-
|
|
37869
|
+
H(
|
|
37870
37870
|
"button",
|
|
37871
37871
|
{
|
|
37872
37872
|
style: {
|
|
@@ -37887,12 +37887,12 @@ const q$ = _.memo(
|
|
|
37887
37887
|
},
|
|
37888
37888
|
onClick: () => i(!r)
|
|
37889
37889
|
},
|
|
37890
|
-
|
|
37890
|
+
H(
|
|
37891
37891
|
"span",
|
|
37892
37892
|
null,
|
|
37893
37893
|
u ? u.label : t.placeholder || "Select..."
|
|
37894
37894
|
),
|
|
37895
|
-
|
|
37895
|
+
H(
|
|
37896
37896
|
"svg",
|
|
37897
37897
|
{
|
|
37898
37898
|
width: "14",
|
|
@@ -37902,10 +37902,10 @@ const q$ = _.memo(
|
|
|
37902
37902
|
stroke: "currentColor",
|
|
37903
37903
|
strokeWidth: "2"
|
|
37904
37904
|
},
|
|
37905
|
-
|
|
37905
|
+
H("path", { d: "m6 9 6 6 6-6" })
|
|
37906
37906
|
)
|
|
37907
37907
|
),
|
|
37908
|
-
r &&
|
|
37908
|
+
r && H(
|
|
37909
37909
|
"div",
|
|
37910
37910
|
{
|
|
37911
37911
|
style: {
|
|
@@ -37925,7 +37925,7 @@ const q$ = _.memo(
|
|
|
37925
37925
|
flexDirection: "column"
|
|
37926
37926
|
}
|
|
37927
37927
|
},
|
|
37928
|
-
t.searchable !== !1 &&
|
|
37928
|
+
t.searchable !== !1 && H("input", {
|
|
37929
37929
|
style: {
|
|
37930
37930
|
width: "100%",
|
|
37931
37931
|
padding: "8px",
|
|
@@ -37944,11 +37944,11 @@ const q$ = _.memo(
|
|
|
37944
37944
|
},
|
|
37945
37945
|
onClick: (p) => p.stopPropagation()
|
|
37946
37946
|
}),
|
|
37947
|
-
|
|
37947
|
+
H(
|
|
37948
37948
|
"div",
|
|
37949
37949
|
{ style: { overflow: "auto", flex: 1 } },
|
|
37950
37950
|
m.map(
|
|
37951
|
-
(p) =>
|
|
37951
|
+
(p) => H(
|
|
37952
37952
|
"button",
|
|
37953
37953
|
{
|
|
37954
37954
|
key: p.value,
|
|
@@ -37974,7 +37974,7 @@ const q$ = _.memo(
|
|
|
37974
37974
|
p.label
|
|
37975
37975
|
)
|
|
37976
37976
|
),
|
|
37977
|
-
y &&
|
|
37977
|
+
y && H(
|
|
37978
37978
|
"button",
|
|
37979
37979
|
{
|
|
37980
37980
|
style: {
|
|
@@ -38053,7 +38053,7 @@ const ls = {}, Iht = _.memo(
|
|
|
38053
38053
|
return _.createElement(
|
|
38054
38054
|
"div",
|
|
38055
38055
|
{ key: r, style: o || { width: "100%" } },
|
|
38056
|
-
t.label ?
|
|
38056
|
+
t.label ? H(
|
|
38057
38057
|
"label",
|
|
38058
38058
|
{
|
|
38059
38059
|
style: {
|
|
@@ -38066,7 +38066,7 @@ const ls = {}, Iht = _.memo(
|
|
|
38066
38066
|
},
|
|
38067
38067
|
t.label
|
|
38068
38068
|
) : null,
|
|
38069
|
-
|
|
38069
|
+
H(
|
|
38070
38070
|
"select",
|
|
38071
38071
|
{
|
|
38072
38072
|
name: n,
|
|
@@ -38080,13 +38080,13 @@ const ls = {}, Iht = _.memo(
|
|
|
38080
38080
|
[n]: u.target.value
|
|
38081
38081
|
}))
|
|
38082
38082
|
},
|
|
38083
|
-
|
|
38083
|
+
H(
|
|
38084
38084
|
"option",
|
|
38085
38085
|
{ key: "__placeholder", value: "", disabled: !0, hidden: !0 },
|
|
38086
38086
|
h
|
|
38087
38087
|
),
|
|
38088
38088
|
c.map(
|
|
38089
|
-
(u, d) =>
|
|
38089
|
+
(u, d) => H(
|
|
38090
38090
|
"option",
|
|
38091
38091
|
{ key: d, value: typeof u == "string" ? u : u.value },
|
|
38092
38092
|
typeof u == "string" ? u : u.label
|
|
@@ -38154,7 +38154,7 @@ function Rht({
|
|
|
38154
38154
|
});
|
|
38155
38155
|
h(x), d(!1);
|
|
38156
38156
|
}).catch(() => d(!1));
|
|
38157
|
-
}, [t.collection]), u ?
|
|
38157
|
+
}, [t.collection]), u ? H(
|
|
38158
38158
|
"div",
|
|
38159
38159
|
{
|
|
38160
38160
|
key: n,
|
|
@@ -38277,7 +38277,7 @@ const Lht = _.memo(function({
|
|
|
38277
38277
|
return _.createElement(
|
|
38278
38278
|
"div",
|
|
38279
38279
|
{ style: { width: "100%" } },
|
|
38280
|
-
i &&
|
|
38280
|
+
i && H(
|
|
38281
38281
|
"label",
|
|
38282
38282
|
{
|
|
38283
38283
|
style: {
|
|
@@ -38301,7 +38301,7 @@ const Lht = _.memo(function({
|
|
|
38301
38301
|
gap: "8px"
|
|
38302
38302
|
}
|
|
38303
38303
|
},
|
|
38304
|
-
|
|
38304
|
+
H(
|
|
38305
38305
|
"span",
|
|
38306
38306
|
{
|
|
38307
38307
|
style: {
|
|
@@ -38312,7 +38312,7 @@ const Lht = _.memo(function({
|
|
|
38312
38312
|
},
|
|
38313
38313
|
"📎 " + (u || "Test case uploaded")
|
|
38314
38314
|
),
|
|
38315
|
-
|
|
38315
|
+
H(
|
|
38316
38316
|
"button",
|
|
38317
38317
|
{
|
|
38318
38318
|
type: "button",
|
|
@@ -38351,7 +38351,7 @@ const Lht = _.memo(function({
|
|
|
38351
38351
|
},
|
|
38352
38352
|
l ? "Uploading…" : "⬆ Upload a test case"
|
|
38353
38353
|
),
|
|
38354
|
-
|
|
38354
|
+
H("input", {
|
|
38355
38355
|
key: "file-input",
|
|
38356
38356
|
ref: s,
|
|
38357
38357
|
type: "file",
|
|
@@ -38617,7 +38617,7 @@ function G$(e, t, n, r, i, o, s, l) {
|
|
|
38617
38617
|
m,
|
|
38618
38618
|
Math.max(1, Number((A = s[P]) == null ? void 0 : A.fieldSpan) || 1)
|
|
38619
38619
|
);
|
|
38620
|
-
return
|
|
38620
|
+
return H(
|
|
38621
38621
|
"div",
|
|
38622
38622
|
{
|
|
38623
38623
|
key: `${n}-field-grid-${P}`,
|
|
@@ -38650,7 +38650,7 @@ function G$(e, t, n, r, i, o, s, l) {
|
|
|
38650
38650
|
...!P && { backgroundColor: e.cfg.colors.primary },
|
|
38651
38651
|
...!S && { color: "#fff", border: "none" }
|
|
38652
38652
|
}, C = `${n}-submit`, w = !!((x = e.buttonLoading) != null && x[C]), E = () => {
|
|
38653
|
-
var D, Y,
|
|
38653
|
+
var D, Y, q, z, K;
|
|
38654
38654
|
const W = [], j = e.sceneData || {};
|
|
38655
38655
|
for (const Z of s) {
|
|
38656
38656
|
const X = Z.name || ((D = Z.label) == null ? void 0 : D.toLowerCase()), it = j[X], G = Z.label || X;
|
|
@@ -38658,13 +38658,13 @@ function G$(e, t, n, r, i, o, s, l) {
|
|
|
38658
38658
|
W.push(`${G} is required`);
|
|
38659
38659
|
continue;
|
|
38660
38660
|
}
|
|
38661
|
-
it == null || String(it).trim() === "" || ((Y = Z.validation) != null && Y.pattern && !new RegExp(Z.validation.pattern).test(String(it)) && W.push(`${G} is invalid`), ((
|
|
38661
|
+
it == null || String(it).trim() === "" || ((Y = Z.validation) != null && Y.pattern && !new RegExp(Z.validation.pattern).test(String(it)) && W.push(`${G} is invalid`), ((q = Z.validation) == null ? void 0 : q.min) !== void 0 && Number(it) < Number(Z.validation.min) && W.push(`${G} must be at least ${Z.validation.min}`), ((z = Z.validation) == null ? void 0 : z.max) !== void 0 && Number(it) > Number(Z.validation.max) && W.push(`${G} must be at most ${Z.validation.max}`), ((K = Z.validation) == null ? void 0 : K.minLength) !== void 0 && String(it).length < Number(Z.validation.minLength) && W.push(
|
|
38662
38662
|
`${G} must be at least ${Z.validation.minLength} characters`
|
|
38663
38663
|
));
|
|
38664
38664
|
}
|
|
38665
38665
|
return W;
|
|
38666
38666
|
}, O = () => {
|
|
38667
|
-
var Y,
|
|
38667
|
+
var Y, q;
|
|
38668
38668
|
const W = E();
|
|
38669
38669
|
if (W.length) {
|
|
38670
38670
|
(Y = e.showToast) == null || Y.call(e, W, "error");
|
|
@@ -38682,11 +38682,11 @@ function G$(e, t, n, r, i, o, s, l) {
|
|
|
38682
38682
|
payload: l.payload
|
|
38683
38683
|
}
|
|
38684
38684
|
) : Promise.resolve(), D = e.withLoading ? e.withLoading(C, j) : j();
|
|
38685
|
-
(
|
|
38685
|
+
(q = D == null ? void 0 : D.catch) == null || q.call(D, () => {
|
|
38686
38686
|
});
|
|
38687
38687
|
}, N = l.onClick ? () => O() : void 0, R = [];
|
|
38688
38688
|
w ? R.push(
|
|
38689
|
-
|
|
38689
|
+
H("span", {
|
|
38690
38690
|
key: "spinner",
|
|
38691
38691
|
className: "bf-btn-spinner",
|
|
38692
38692
|
style: {
|
|
@@ -38701,7 +38701,7 @@ function G$(e, t, n, r, i, o, s, l) {
|
|
|
38701
38701
|
}
|
|
38702
38702
|
})
|
|
38703
38703
|
) : l.icon && R.push(
|
|
38704
|
-
|
|
38704
|
+
H(
|
|
38705
38705
|
"span",
|
|
38706
38706
|
{
|
|
38707
38707
|
key: "icon",
|
|
@@ -38715,8 +38715,8 @@ function G$(e, t, n, r, i, o, s, l) {
|
|
|
38715
38715
|
},
|
|
38716
38716
|
e.renderIcon(l.icon, l.iconSize || 16)
|
|
38717
38717
|
)
|
|
38718
|
-
), R.push(
|
|
38719
|
-
|
|
38718
|
+
), R.push(H("span", { key: "text" }, l.text || "Submit")), c.push(
|
|
38719
|
+
H(
|
|
38720
38720
|
"button",
|
|
38721
38721
|
{
|
|
38722
38722
|
key: C,
|
|
@@ -38730,7 +38730,7 @@ function G$(e, t, n, r, i, o, s, l) {
|
|
|
38730
38730
|
)
|
|
38731
38731
|
);
|
|
38732
38732
|
}
|
|
38733
|
-
return
|
|
38733
|
+
return H(
|
|
38734
38734
|
"form",
|
|
38735
38735
|
{
|
|
38736
38736
|
key: n,
|
|
@@ -38781,10 +38781,10 @@ const zht = _.memo(
|
|
|
38781
38781
|
const y = s.trim();
|
|
38782
38782
|
y && (r([.../* @__PURE__ */ new Set([...o, y])].join(", ")), l(""));
|
|
38783
38783
|
};
|
|
38784
|
-
return
|
|
38784
|
+
return H(
|
|
38785
38785
|
"div",
|
|
38786
38786
|
{ key: "tags", style: { width: "100%", marginBottom: "1rem" } },
|
|
38787
|
-
t.label ?
|
|
38787
|
+
t.label ? H(
|
|
38788
38788
|
"label",
|
|
38789
38789
|
{
|
|
38790
38790
|
style: {
|
|
@@ -38797,7 +38797,7 @@ const zht = _.memo(
|
|
|
38797
38797
|
},
|
|
38798
38798
|
t.label
|
|
38799
38799
|
) : null,
|
|
38800
|
-
|
|
38800
|
+
H(
|
|
38801
38801
|
"div",
|
|
38802
38802
|
{
|
|
38803
38803
|
style: {
|
|
@@ -38818,7 +38818,7 @@ const zht = _.memo(
|
|
|
38818
38818
|
}
|
|
38819
38819
|
},
|
|
38820
38820
|
...o.map(
|
|
38821
|
-
(y, x) =>
|
|
38821
|
+
(y, x) => H(
|
|
38822
38822
|
"span",
|
|
38823
38823
|
{
|
|
38824
38824
|
key: x,
|
|
@@ -38835,8 +38835,8 @@ const zht = _.memo(
|
|
|
38835
38835
|
lineHeight: "1.4"
|
|
38836
38836
|
}
|
|
38837
38837
|
},
|
|
38838
|
-
|
|
38839
|
-
|
|
38838
|
+
H("span", null, y),
|
|
38839
|
+
H(
|
|
38840
38840
|
"button",
|
|
38841
38841
|
{
|
|
38842
38842
|
type: "button",
|
|
@@ -38860,7 +38860,7 @@ const zht = _.memo(
|
|
|
38860
38860
|
)
|
|
38861
38861
|
)
|
|
38862
38862
|
),
|
|
38863
|
-
|
|
38863
|
+
H("input", {
|
|
38864
38864
|
ref: i,
|
|
38865
38865
|
type: "text",
|
|
38866
38866
|
value: s,
|
|
@@ -38897,8 +38897,8 @@ function Fht(e, t, n) {
|
|
|
38897
38897
|
const v = [], P = /(\*\*(.+?)\*\*)|(\*(.+?)\*)|(`(.+?)`)|(\[(.+?)\]\((.+?)\))|(~~(.+?)~~)/g;
|
|
38898
38898
|
let S = 0, A;
|
|
38899
38899
|
for (; (A = P.exec(p)) !== null; )
|
|
38900
|
-
A.index > S && v.push(p.slice(S, A.index)), A[2] ? v.push(
|
|
38901
|
-
|
|
38900
|
+
A.index > S && v.push(p.slice(S, A.index)), A[2] ? v.push(H("strong", { key: v.length }, A[2])) : A[4] ? v.push(H("em", { key: v.length }, A[4])) : A[6] ? v.push(H("code", { key: v.length }, A[6])) : A[8] ? v.push(
|
|
38901
|
+
H(
|
|
38902
38902
|
"a",
|
|
38903
38903
|
{
|
|
38904
38904
|
key: v.length,
|
|
@@ -38908,7 +38908,7 @@ function Fht(e, t, n) {
|
|
|
38908
38908
|
},
|
|
38909
38909
|
A[8]
|
|
38910
38910
|
)
|
|
38911
|
-
) : A[11] && v.push(
|
|
38911
|
+
) : A[11] && v.push(H("del", { key: v.length }, A[11])), S = A.index + A[0].length;
|
|
38912
38912
|
return S < p.length && v.push(p.slice(S)), v;
|
|
38913
38913
|
}, o = r.split(`
|
|
38914
38914
|
`), s = [];
|
|
@@ -38926,7 +38926,7 @@ function Fht(e, t, n) {
|
|
|
38926
38926
|
}
|
|
38927
38927
|
},
|
|
38928
38928
|
l.items.map(
|
|
38929
|
-
(v, P) =>
|
|
38929
|
+
(v, P) => H("li", { key: `${p}-${P}` }, v)
|
|
38930
38930
|
)
|
|
38931
38931
|
)
|
|
38932
38932
|
), l = null);
|
|
@@ -38935,7 +38935,7 @@ function Fht(e, t, n) {
|
|
|
38935
38935
|
const v = h.join(`
|
|
38936
38936
|
`);
|
|
38937
38937
|
s.push(
|
|
38938
|
-
|
|
38938
|
+
H(
|
|
38939
38939
|
"div",
|
|
38940
38940
|
{
|
|
38941
38941
|
key: p,
|
|
@@ -38946,7 +38946,7 @@ function Fht(e, t, n) {
|
|
|
38946
38946
|
margin: "0.5rem 0"
|
|
38947
38947
|
}
|
|
38948
38948
|
},
|
|
38949
|
-
|
|
38949
|
+
H(
|
|
38950
38950
|
"button",
|
|
38951
38951
|
{
|
|
38952
38952
|
style: {
|
|
@@ -38974,7 +38974,7 @@ function Fht(e, t, n) {
|
|
|
38974
38974
|
})(v);
|
|
38975
38975
|
}
|
|
38976
38976
|
},
|
|
38977
|
-
|
|
38977
|
+
H(
|
|
38978
38978
|
"svg",
|
|
38979
38979
|
{
|
|
38980
38980
|
width: "14",
|
|
@@ -38986,7 +38986,7 @@ function Fht(e, t, n) {
|
|
|
38986
38986
|
strokeLinecap: "round",
|
|
38987
38987
|
strokeLinejoin: "round"
|
|
38988
38988
|
},
|
|
38989
|
-
|
|
38989
|
+
H("rect", {
|
|
38990
38990
|
x: "9",
|
|
38991
38991
|
y: "9",
|
|
38992
38992
|
width: "13",
|
|
@@ -38994,12 +38994,12 @@ function Fht(e, t, n) {
|
|
|
38994
38994
|
rx: "2",
|
|
38995
38995
|
ry: "2"
|
|
38996
38996
|
}),
|
|
38997
|
-
|
|
38997
|
+
H("path", {
|
|
38998
38998
|
d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
|
|
38999
38999
|
})
|
|
39000
39000
|
)
|
|
39001
39001
|
),
|
|
39002
|
-
|
|
39002
|
+
H(
|
|
39003
39003
|
"pre",
|
|
39004
39004
|
{
|
|
39005
39005
|
style: {
|
|
@@ -39011,7 +39011,7 @@ function Fht(e, t, n) {
|
|
|
39011
39011
|
color: "#e2e8f0"
|
|
39012
39012
|
}
|
|
39013
39013
|
},
|
|
39014
|
-
|
|
39014
|
+
H("code", null, v)
|
|
39015
39015
|
)
|
|
39016
39016
|
)
|
|
39017
39017
|
), h = [];
|
|
@@ -39065,7 +39065,7 @@ function Fht(e, t, n) {
|
|
|
39065
39065
|
continue;
|
|
39066
39066
|
}
|
|
39067
39067
|
u(`list-${p}`), s.push(
|
|
39068
|
-
|
|
39068
|
+
H(
|
|
39069
39069
|
"p",
|
|
39070
39070
|
{ key: p, style: { margin: "0.25rem 0" } },
|
|
39071
39071
|
...i(P)
|
|
@@ -39076,7 +39076,7 @@ function Fht(e, t, n) {
|
|
|
39076
39076
|
const m = {};
|
|
39077
39077
|
t.fontSize !== void 0 && (m.fontSize = `${t.fontSize}px`), t.fontWeight !== void 0 && (m.fontWeight = t.fontWeight), t.color !== void 0 && (m.color = t.color), t.textAlign !== void 0 && (m.textAlign = t.textAlign);
|
|
39078
39078
|
const y = t.className ? { ...m, ...e.parseClassName(t.className) } : m, x = e.getCommonProps(n, y, t);
|
|
39079
|
-
return
|
|
39079
|
+
return H("div", { key: n, ...x }, ...s);
|
|
39080
39080
|
}
|
|
39081
39081
|
function Wht(e, t, n) {
|
|
39082
39082
|
const r = e.cfg.colors, i = {
|
|
@@ -39099,7 +39099,7 @@ function Wht(e, t, n) {
|
|
|
39099
39099
|
(e.withLoading ? e.withLoading(`${n}-bn-${h}`, m) : m()).catch(() => {
|
|
39100
39100
|
});
|
|
39101
39101
|
};
|
|
39102
|
-
return
|
|
39102
|
+
return H(
|
|
39103
39103
|
"button",
|
|
39104
39104
|
{
|
|
39105
39105
|
key: `${n}-bn-${h}`,
|
|
@@ -39121,10 +39121,10 @@ function Wht(e, t, n) {
|
|
|
39121
39121
|
"aria-label": c.label || c.icon || "nav item"
|
|
39122
39122
|
},
|
|
39123
39123
|
c.icon ? e.renderIcon(c.icon, 20) : null,
|
|
39124
|
-
c.label ?
|
|
39124
|
+
c.label ? H("span", {}, c.label) : null
|
|
39125
39125
|
);
|
|
39126
39126
|
}), l = e.getCommonProps(n, i, t);
|
|
39127
|
-
return
|
|
39127
|
+
return H("div", { key: n, ...l }, ...s);
|
|
39128
39128
|
}
|
|
39129
39129
|
function Vht(e, t, n) {
|
|
39130
39130
|
const r = Array.isArray(t.panes) ? t.panes : [], i = t.className ? {
|
|
@@ -39147,13 +39147,13 @@ function Vht(e, t, n) {
|
|
|
39147
39147
|
flexDirection: "column",
|
|
39148
39148
|
overflow: "hidden"
|
|
39149
39149
|
}, d = `${n}-split-${c}`;
|
|
39150
|
-
return
|
|
39150
|
+
return H(
|
|
39151
39151
|
"div",
|
|
39152
39152
|
{ key: d, style: u },
|
|
39153
39153
|
l.component ? e.renderComponent(l.component, c, `${n}-split`) : null
|
|
39154
39154
|
);
|
|
39155
39155
|
}), s = e.getCommonProps(n, i, t);
|
|
39156
|
-
return
|
|
39156
|
+
return H("div", { key: n, ...s }, ...o);
|
|
39157
39157
|
}
|
|
39158
39158
|
function Uht(e, t, n) {
|
|
39159
39159
|
const r = e.cfg.colorMode !== "light", i = () => {
|
|
@@ -39172,7 +39172,7 @@ function Uht(e, t, n) {
|
|
|
39172
39172
|
fontSize: 14,
|
|
39173
39173
|
fontFamily: "inherit"
|
|
39174
39174
|
}, s = e.getCommonProps(n, o, t);
|
|
39175
|
-
return
|
|
39175
|
+
return H(
|
|
39176
39176
|
"button",
|
|
39177
39177
|
{
|
|
39178
39178
|
key: n,
|
|
@@ -39180,8 +39180,8 @@ function Uht(e, t, n) {
|
|
|
39180
39180
|
onClick: i,
|
|
39181
39181
|
"aria-label": r ? "Switch to light mode" : "Switch to dark mode"
|
|
39182
39182
|
},
|
|
39183
|
-
|
|
39184
|
-
t.text ?
|
|
39183
|
+
H("span", {}, r ? "☀️" : "🌙"),
|
|
39184
|
+
t.text ? H("span", {}, t.text) : null
|
|
39185
39185
|
);
|
|
39186
39186
|
}
|
|
39187
39187
|
function Hht(e) {
|
|
@@ -39306,7 +39306,7 @@ function qht(e) {
|
|
|
39306
39306
|
return document.addEventListener("fullscreenchange", j), () => document.removeEventListener("fullscreenchange", j);
|
|
39307
39307
|
}, []);
|
|
39308
39308
|
const P = async (j) => {
|
|
39309
|
-
var Y,
|
|
39309
|
+
var Y, q;
|
|
39310
39310
|
j.preventDefault(), j.stopPropagation();
|
|
39311
39311
|
const D = o.current;
|
|
39312
39312
|
if (D) {
|
|
@@ -39314,7 +39314,7 @@ function qht(e) {
|
|
|
39314
39314
|
await ((Y = document.exitFullscreen) == null ? void 0 : Y.call(document));
|
|
39315
39315
|
return;
|
|
39316
39316
|
}
|
|
39317
|
-
await ((
|
|
39317
|
+
await ((q = D.requestFullscreen) == null ? void 0 : q.call(D));
|
|
39318
39318
|
}
|
|
39319
39319
|
};
|
|
39320
39320
|
_.useEffect(() => {
|
|
@@ -39323,7 +39323,7 @@ function qht(e) {
|
|
|
39323
39323
|
if (!t.isAuthenticated || !((K = j == null ? void 0 : j.client) != null && K.createWebSocket) || !i)
|
|
39324
39324
|
return;
|
|
39325
39325
|
let D = null, Y = !1;
|
|
39326
|
-
const
|
|
39326
|
+
const q = (Z) => {
|
|
39327
39327
|
const X = s.current;
|
|
39328
39328
|
if (!X) return;
|
|
39329
39329
|
const it = new Image();
|
|
@@ -39342,7 +39342,7 @@ function qht(e) {
|
|
|
39342
39342
|
} catch {
|
|
39343
39343
|
return;
|
|
39344
39344
|
}
|
|
39345
|
-
(X == null ? void 0 : X.type) === "screencast_frame" && X.frame &&
|
|
39345
|
+
(X == null ? void 0 : X.type) === "screencast_frame" && X.frame && q(X.frame), (X == null ? void 0 : X.type) === "step_paused" && ((it = X.pauseMetadata) != null && it.form) && ((G = X.pauseMetadata) != null && G.approvalId) && (m({}), u({
|
|
39346
39346
|
approvalId: X.pauseMetadata.approvalId,
|
|
39347
39347
|
form: X.pauseMetadata.form
|
|
39348
39348
|
}));
|
|
@@ -39388,9 +39388,9 @@ function qht(e) {
|
|
|
39388
39388
|
}
|
|
39389
39389
|
x(!1), u(null);
|
|
39390
39390
|
}, A = (j) => {
|
|
39391
|
-
const D = d[j.key], Y = (
|
|
39391
|
+
const D = d[j.key], Y = (q) => m((z) => ({ ...z, [j.key]: q }));
|
|
39392
39392
|
if (j.type === "radio" || j.type === "checkbox") {
|
|
39393
|
-
const
|
|
39393
|
+
const q = j.type === "checkbox", z = q ? Array.isArray(D) ? D : [] : [D].filter(Boolean);
|
|
39394
39394
|
return _.createElement(
|
|
39395
39395
|
"div",
|
|
39396
39396
|
{
|
|
@@ -39404,7 +39404,7 @@ function qht(e) {
|
|
|
39404
39404
|
key: K,
|
|
39405
39405
|
type: "button",
|
|
39406
39406
|
onClick: () => Y(
|
|
39407
|
-
|
|
39407
|
+
q ? z.includes(K) ? z.filter((Z) => Z !== K) : [...z, K] : K
|
|
39408
39408
|
),
|
|
39409
39409
|
style: {
|
|
39410
39410
|
padding: "6px 12px",
|
|
@@ -39427,7 +39427,7 @@ function qht(e) {
|
|
|
39427
39427
|
type: j.secure === !0 ? "password" : "text",
|
|
39428
39428
|
placeholder: j.placeholder || "",
|
|
39429
39429
|
value: D || "",
|
|
39430
|
-
onChange: (
|
|
39430
|
+
onChange: (q) => Y(q.target.value),
|
|
39431
39431
|
style: {
|
|
39432
39432
|
width: "100%",
|
|
39433
39433
|
padding: "8px 12px",
|
|
@@ -40056,9 +40056,9 @@ var _b = { exports: {} };
|
|
|
40056
40056
|
requestAnimFrame: j,
|
|
40057
40057
|
cancelAnimFrame: D
|
|
40058
40058
|
};
|
|
40059
|
-
function
|
|
40059
|
+
function q() {
|
|
40060
40060
|
}
|
|
40061
|
-
|
|
40061
|
+
q.extend = function(a) {
|
|
40062
40062
|
var f = function() {
|
|
40063
40063
|
p(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
|
|
40064
40064
|
}, g = f.__super__ = this.prototype, b = o(g);
|
|
@@ -40072,12 +40072,12 @@ var _b = { exports: {} };
|
|
|
40072
40072
|
b._initHooks[M].call(this);
|
|
40073
40073
|
}
|
|
40074
40074
|
}, f;
|
|
40075
|
-
},
|
|
40075
|
+
}, q.include = function(a) {
|
|
40076
40076
|
var f = this.prototype.options;
|
|
40077
40077
|
return i(this.prototype, a), a.options && (this.prototype.options = f, this.mergeOptions(a.options)), this;
|
|
40078
|
-
},
|
|
40078
|
+
}, q.mergeOptions = function(a) {
|
|
40079
40079
|
return i(this.prototype.options, a), this;
|
|
40080
|
-
},
|
|
40080
|
+
}, q.addInitHook = function(a) {
|
|
40081
40081
|
var f = Array.prototype.slice.call(arguments, 1), g = typeof a == "function" ? a : function() {
|
|
40082
40082
|
this[a].apply(this, f);
|
|
40083
40083
|
};
|
|
@@ -40254,7 +40254,7 @@ var _b = { exports: {} };
|
|
|
40254
40254
|
}
|
|
40255
40255
|
};
|
|
40256
40256
|
K.addEventListener = K.on, K.removeEventListener = K.clearAllEventListeners = K.off, K.addOneTimeEventListener = K.once, K.fireEvent = K.fire, K.hasEventListeners = K.listens;
|
|
40257
|
-
var Z =
|
|
40257
|
+
var Z = q.extend(K);
|
|
40258
40258
|
function X(a, f, g) {
|
|
40259
40259
|
this.x = g ? Math.round(a) : a, this.y = g ? Math.round(f) : f;
|
|
40260
40260
|
}
|
|
@@ -42158,7 +42158,7 @@ var _b = { exports: {} };
|
|
|
42158
42158
|
function xi(a, f) {
|
|
42159
42159
|
return new ae(a, f);
|
|
42160
42160
|
}
|
|
42161
|
-
var Hn =
|
|
42161
|
+
var Hn = q.extend({
|
|
42162
42162
|
// @section
|
|
42163
42163
|
// @aka Control Options
|
|
42164
42164
|
options: {
|
|
@@ -42582,7 +42582,7 @@ var _b = { exports: {} };
|
|
|
42582
42582
|
return new Ic(a);
|
|
42583
42583
|
};
|
|
42584
42584
|
Hn.Layers = Cn, Hn.Zoom = js, Hn.Scale = kr, Hn.Attribution = Ic, Jr.layers = rr, Jr.zoom = Zh, Jr.scale = Yh, Jr.attribution = Nm;
|
|
42585
|
-
var $r =
|
|
42585
|
+
var $r = q.extend({
|
|
42586
42586
|
initialize: function(a) {
|
|
42587
42587
|
this._map = a;
|
|
42588
42588
|
},
|
|
@@ -43114,7 +43114,7 @@ var _b = { exports: {} };
|
|
|
43114
43114
|
}
|
|
43115
43115
|
}), Qh = function(a, f) {
|
|
43116
43116
|
return new je(a, f);
|
|
43117
|
-
}, yr =
|
|
43117
|
+
}, yr = q.extend({
|
|
43118
43118
|
/* @section
|
|
43119
43119
|
* @aka Icon options
|
|
43120
43120
|
*
|
|
@@ -46218,10 +46218,10 @@ var _b = { exports: {} };
|
|
|
46218
46218
|
this._zooming = !1, D(this._animRequest), _e(document, "touchmove", this._onTouchMove, this), _e(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
46219
46219
|
}
|
|
46220
46220
|
});
|
|
46221
|
-
ae.addInitHook("addHandler", "touchZoom", F), ae.BoxZoom = Xc, ae.DoubleClickZoom = Jc, ae.Drag = Qc, ae.Keyboard = k, ae.ScrollWheelZoom = $, ae.TapHold = Q, ae.TouchZoom = F, n.Bounds = et, n.Browser = Ot, n.CRS = _t, n.Canvas = Gc, n.Circle = zs, n.CircleMarker = Bs, n.Class =
|
|
46222
|
-
var
|
|
46221
|
+
ae.addInitHook("addHandler", "touchZoom", F), ae.BoxZoom = Xc, ae.DoubleClickZoom = Jc, ae.Drag = Qc, ae.Keyboard = k, ae.ScrollWheelZoom = $, ae.TapHold = Q, ae.TouchZoom = F, n.Bounds = et, n.Browser = Ot, n.CRS = _t, n.Canvas = Gc, n.Circle = zs, n.CircleMarker = Bs, n.Class = q, n.Control = Hn, n.DivIcon = Um, n.DivOverlay = Ir, n.DomEvent = Gh, n.DomUtil = gi, n.Draggable = wi, n.Evented = Z, n.FeatureGroup = je, n.GeoJSON = or, n.GridLayer = Fs, n.Handler = $r, n.Icon = yr, n.ImageOverlay = Wc, n.LatLng = dt, n.LatLngBounds = ot, n.Layer = ir, n.LayerGroup = zo, n.LineUtil = Ha, n.Map = ae, n.Marker = Wo, n.Mixin = Rm, n.Path = ti, n.Point = X, n.PolyUtil = Qr, n.Polygon = br, n.Polyline = vr, n.Popup = Xa, n.PosAnimation = Ds, n.Projection = Lm, n.Rectangle = Kc, n.Renderer = Nr, n.SVG = Zo, n.SVGOverlay = Vc, n.TileLayer = qo, n.Tooltip = Ja, n.Transformation = St, n.Util = Y, n.VideoOverlay = ei, n.bind = s, n.bounds = rt, n.canvas = Zc, n.circle = Vo, n.circleMarker = Fc, n.control = Jr, n.divIcon = Hm, n.extend = i, n.featureGroup = Qh, n.geoJSON = Bm, n.geoJson = zm, n.gridLayer = qm, n.icon = Bc, n.imageOverlay = Fm, n.latLng = pt, n.latLngBounds = at, n.layerGroup = Gn, n.map = xi, n.marker = tf, n.point = G, n.polygon = nf, n.polyline = ef, n.popup = Wm, n.rectangle = af, n.setOptions = p, n.stamp = c, n.svg = Yc, n.svgOverlay = Uc, n.tileLayer = Hc, n.tooltip = Vm, n.transformation = nt, n.version = r, n.videoOverlay = rf;
|
|
46222
|
+
var U = window.L;
|
|
46223
46223
|
n.noConflict = function() {
|
|
46224
|
-
return window.L =
|
|
46224
|
+
return window.L = U, this;
|
|
46225
46225
|
}, window.L = n;
|
|
46226
46226
|
});
|
|
46227
46227
|
})(_b, _b.exports);
|
|
@@ -46472,7 +46472,7 @@ function dft({
|
|
|
46472
46472
|
minHeight: "34px",
|
|
46473
46473
|
padding: "7px 10px"
|
|
46474
46474
|
};
|
|
46475
|
-
return
|
|
46475
|
+
return H(
|
|
46476
46476
|
"div",
|
|
46477
46477
|
{
|
|
46478
46478
|
"aria-live": "polite",
|
|
@@ -46486,7 +46486,7 @@ function dft({
|
|
|
46486
46486
|
zIndex: 1001
|
|
46487
46487
|
}
|
|
46488
46488
|
},
|
|
46489
|
-
n ?
|
|
46489
|
+
n ? H(
|
|
46490
46490
|
"div",
|
|
46491
46491
|
{
|
|
46492
46492
|
style: {
|
|
@@ -46499,7 +46499,7 @@ function dft({
|
|
|
46499
46499
|
}
|
|
46500
46500
|
},
|
|
46501
46501
|
`Drawing polygon: ${r.length} points`
|
|
46502
|
-
) :
|
|
46502
|
+
) : H(
|
|
46503
46503
|
"button",
|
|
46504
46504
|
{
|
|
46505
46505
|
"aria-label": "Draw geofence",
|
|
@@ -46511,7 +46511,7 @@ function dft({
|
|
|
46511
46511
|
e.renderIcon("pencil-ruler", 15),
|
|
46512
46512
|
"Draw fence"
|
|
46513
46513
|
),
|
|
46514
|
-
n ?
|
|
46514
|
+
n ? H(
|
|
46515
46515
|
"button",
|
|
46516
46516
|
{
|
|
46517
46517
|
"aria-label": "Finish geofence",
|
|
@@ -46524,7 +46524,7 @@ function dft({
|
|
|
46524
46524
|
e.renderIcon("check", 15),
|
|
46525
46525
|
"Finish"
|
|
46526
46526
|
) : null,
|
|
46527
|
-
|
|
46527
|
+
H(
|
|
46528
46528
|
"button",
|
|
46529
46529
|
{
|
|
46530
46530
|
"aria-label": "Clear geofence draft",
|
|
@@ -46670,7 +46670,7 @@ function xft({
|
|
|
46670
46670
|
...t.className ? e.parseClassName(t.className) : {}
|
|
46671
46671
|
}, S = e.getCommonProps(n, P, t);
|
|
46672
46672
|
if (!h)
|
|
46673
|
-
return
|
|
46673
|
+
return H(
|
|
46674
46674
|
"div",
|
|
46675
46675
|
{ key: n, ...S },
|
|
46676
46676
|
t.emptyText || "Map location unavailable"
|
|
@@ -46856,7 +46856,7 @@ function sc(e, t, n, r, i, o = !1) {
|
|
|
46856
46856
|
let l = [];
|
|
46857
46857
|
const c = (u) => u && (u.type === "button" || i && (u.type === "link" || u.type === "a")), h = (u) => {
|
|
46858
46858
|
l.length !== 0 && (l.length === 1 ? s.push(e.renderComponent(l[0], u, n)) : s.push(
|
|
46859
|
-
|
|
46859
|
+
H(
|
|
46860
46860
|
"div",
|
|
46861
46861
|
{
|
|
46862
46862
|
key: `${n}-btns-${u}`,
|
|
@@ -47712,10 +47712,10 @@ function Oft({
|
|
|
47712
47712
|
E && e.handleButtonClick(e.interpolateText(E)).catch(() => {
|
|
47713
47713
|
});
|
|
47714
47714
|
}, p = !((P = e.loading) != null && P[n]) && d.length === 0 && (!l || o.trim().length >= c);
|
|
47715
|
-
return
|
|
47715
|
+
return H(
|
|
47716
47716
|
"div",
|
|
47717
47717
|
{ key: n, className: t.className, ...y },
|
|
47718
|
-
l && t.searchable !== !1 ?
|
|
47718
|
+
l && t.searchable !== !1 ? H("input", {
|
|
47719
47719
|
type: "search",
|
|
47720
47720
|
value: o,
|
|
47721
47721
|
placeholder: e.interpolateText(
|
|
@@ -47749,7 +47749,7 @@ function Oft({
|
|
|
47749
47749
|
"vicinity"
|
|
47750
47750
|
])
|
|
47751
47751
|
);
|
|
47752
|
-
return
|
|
47752
|
+
return H(
|
|
47753
47753
|
"button",
|
|
47754
47754
|
{
|
|
47755
47755
|
key: S.id || `${n}-${A}`,
|
|
@@ -47772,7 +47772,7 @@ function Oft({
|
|
|
47772
47772
|
}
|
|
47773
47773
|
},
|
|
47774
47774
|
e.renderIcon("map-pin", 18),
|
|
47775
|
-
|
|
47775
|
+
H(
|
|
47776
47776
|
"span",
|
|
47777
47777
|
{
|
|
47778
47778
|
style: {
|
|
@@ -47783,7 +47783,7 @@ function Oft({
|
|
|
47783
47783
|
minWidth: 0
|
|
47784
47784
|
}
|
|
47785
47785
|
},
|
|
47786
|
-
|
|
47786
|
+
H(
|
|
47787
47787
|
"strong",
|
|
47788
47788
|
{
|
|
47789
47789
|
style: {
|
|
@@ -47794,7 +47794,7 @@ function Oft({
|
|
|
47794
47794
|
},
|
|
47795
47795
|
C || w
|
|
47796
47796
|
),
|
|
47797
|
-
C && w ?
|
|
47797
|
+
C && w ? H(
|
|
47798
47798
|
"span",
|
|
47799
47799
|
{
|
|
47800
47800
|
style: {
|
|
@@ -47807,7 +47807,7 @@ function Oft({
|
|
|
47807
47807
|
)
|
|
47808
47808
|
);
|
|
47809
47809
|
}),
|
|
47810
|
-
p ?
|
|
47810
|
+
p ? H(
|
|
47811
47811
|
"span",
|
|
47812
47812
|
{ style: { color: e.cfg.colors.textMuted, fontSize: "13px" } },
|
|
47813
47813
|
t.emptyText || "No addresses found"
|
|
@@ -47864,7 +47864,7 @@ function Qf(e, t, n, r = "") {
|
|
|
47864
47864
|
whileInView: i.whileInView,
|
|
47865
47865
|
animateLayout: i.animateLayout
|
|
47866
47866
|
} : {};
|
|
47867
|
-
return
|
|
47867
|
+
return H(
|
|
47868
47868
|
c,
|
|
47869
47869
|
{
|
|
47870
47870
|
key: o,
|
|
@@ -47897,7 +47897,7 @@ function Qf(e, t, n, r = "") {
|
|
|
47897
47897
|
transition: i.transition,
|
|
47898
47898
|
animateLayout: i.animateLayout
|
|
47899
47899
|
} : {};
|
|
47900
|
-
return
|
|
47900
|
+
return H("img", {
|
|
47901
47901
|
key: `${o}-${c.url}`,
|
|
47902
47902
|
src: c.url,
|
|
47903
47903
|
alt: c.name || "Replacement image",
|
|
@@ -48674,9 +48674,9 @@ function Fft(e, t, n = !0) {
|
|
|
48674
48674
|
u.paddingRight = Y[1];
|
|
48675
48675
|
continue;
|
|
48676
48676
|
}
|
|
48677
|
-
const
|
|
48678
|
-
if (
|
|
48679
|
-
u.paddingBottom =
|
|
48677
|
+
const q = p.match(/^pb-\[([^\]]+)\]$/);
|
|
48678
|
+
if (q) {
|
|
48679
|
+
u.paddingBottom = q[1];
|
|
48680
48680
|
continue;
|
|
48681
48681
|
}
|
|
48682
48682
|
const z = p.match(/^pl-\[([^\]]+)\]$/);
|
|
@@ -50299,7 +50299,7 @@ function Vft(e, t, n, r) {
|
|
|
50299
50299
|
gap: "16px"
|
|
50300
50300
|
}
|
|
50301
50301
|
},
|
|
50302
|
-
|
|
50302
|
+
H(
|
|
50303
50303
|
"p",
|
|
50304
50304
|
{ style: { color: e.colors.text, fontSize: "1.125rem" } },
|
|
50305
50305
|
"Scene not found"
|
|
@@ -50361,7 +50361,7 @@ function Vft(e, t, n, r) {
|
|
|
50361
50361
|
strokeLinecap: "round",
|
|
50362
50362
|
strokeLinejoin: "round"
|
|
50363
50363
|
},
|
|
50364
|
-
|
|
50364
|
+
H("polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" })
|
|
50365
50365
|
),
|
|
50366
50366
|
"Generate Scene"
|
|
50367
50367
|
)
|
|
@@ -50402,7 +50402,7 @@ function Uft(e) {
|
|
|
50402
50402
|
border: "1px solid rgba(255, 255, 255, 0.08)"
|
|
50403
50403
|
}
|
|
50404
50404
|
},
|
|
50405
|
-
|
|
50405
|
+
H(
|
|
50406
50406
|
"h3",
|
|
50407
50407
|
{
|
|
50408
50408
|
style: {
|
|
@@ -50414,7 +50414,7 @@ function Uft(e) {
|
|
|
50414
50414
|
},
|
|
50415
50415
|
"Sample Modal"
|
|
50416
50416
|
),
|
|
50417
|
-
|
|
50417
|
+
H(
|
|
50418
50418
|
"p",
|
|
50419
50419
|
{
|
|
50420
50420
|
style: {
|
|
@@ -50428,7 +50428,7 @@ function Uft(e) {
|
|
|
50428
50428
|
_.createElement(
|
|
50429
50429
|
"div",
|
|
50430
50430
|
{ style: { display: "flex", gap: "12px", justifyContent: "flex-end" } },
|
|
50431
|
-
|
|
50431
|
+
H(
|
|
50432
50432
|
"button",
|
|
50433
50433
|
{
|
|
50434
50434
|
style: {
|
|
@@ -50444,7 +50444,7 @@ function Uft(e) {
|
|
|
50444
50444
|
},
|
|
50445
50445
|
"Cancel"
|
|
50446
50446
|
),
|
|
50447
|
-
|
|
50447
|
+
H(
|
|
50448
50448
|
"button",
|
|
50449
50449
|
{
|
|
50450
50450
|
style: {
|
|
@@ -50465,7 +50465,7 @@ function Uft(e) {
|
|
|
50465
50465
|
);
|
|
50466
50466
|
}
|
|
50467
50467
|
function NT(e, t, n, r, i, o, s) {
|
|
50468
|
-
var O, N, R, W, j, D, Y,
|
|
50468
|
+
var O, N, R, W, j, D, Y, q, z, K, Z;
|
|
50469
50469
|
if (!e) return null;
|
|
50470
50470
|
const { definition: l, closing: c } = e, h = l.variant ? (O = l.variants) == null ? void 0 : O[l.variant] : void 0, u = {
|
|
50471
50471
|
...l,
|
|
@@ -50533,7 +50533,7 @@ function NT(e, t, n, r, i, o, s) {
|
|
|
50533
50533
|
lg: "min(720px, 92vw)",
|
|
50534
50534
|
full: "90vw"
|
|
50535
50535
|
}[u.size || "sm"] || "min(400px, 92vw)",
|
|
50536
|
-
width: (
|
|
50536
|
+
width: (q = u.style) != null && q.width ? "100%" : x ? "90vw" : p ? "100%" : "90%",
|
|
50537
50537
|
boxShadow: x ? y === "left" ? "4px 0 24px rgba(0, 0, 0, 0.4)" : "-4px 0 24px rgba(0, 0, 0, 0.4)" : p ? "0 -8px 32px rgba(0, 0, 0, 0.45)" : "0 20px 40px rgba(0, 0, 0, 0.4)",
|
|
50538
50538
|
...d ? {
|
|
50539
50539
|
minWidth: "min(360px, 92vw)",
|
|
@@ -50728,7 +50728,7 @@ function qft({
|
|
|
50728
50728
|
initialScene: j,
|
|
50729
50729
|
previewMode: D,
|
|
50730
50730
|
remoteSessionId: Y,
|
|
50731
|
-
devDiagnostics:
|
|
50731
|
+
devDiagnostics: q
|
|
50732
50732
|
}) {
|
|
50733
50733
|
var Hc, qc, of, Nr, Gc, Zc, Go, sf, Ws, Zo, Yc, Kc, af, Xc, Jc, Qc;
|
|
50734
50734
|
const z = (() => {
|
|
@@ -50792,7 +50792,7 @@ function qft({
|
|
|
50792
50792
|
const k = nn.current, I = (k && et.some((F) => F.id === k) ? k : null) || ((Q = et.find(
|
|
50793
50793
|
(F) => F.type === "render_scene" && F.requiresAuth
|
|
50794
50794
|
)) == null ? void 0 : Q.id);
|
|
50795
|
-
I && lt && (xt === "hash" ? Vf(I, Ht, !0) : Uf(I, Ht, !0)), window.location.reload();
|
|
50795
|
+
I && lt && (xt === "hash" ? Vf(I, Ht, !0) : Uf(I, Ht, !0)), I || localStorage.setItem("backflow_post_auth_redirect", "1"), window.location.reload();
|
|
50796
50796
|
};
|
|
50797
50797
|
_.useEffect(() => (Je.current = !1, ON(), () => {
|
|
50798
50798
|
Je.current = !0;
|
|
@@ -50809,9 +50809,9 @@ function qft({
|
|
|
50809
50809
|
}
|
|
50810
50810
|
const I = R || (t == null ? void 0 : t.endpoint), Q = I && /^https?:\/\//.test(I) ? I : window.location.origin, F = new URL("/ws", Q);
|
|
50811
50811
|
F.protocol = F.protocol === "https:" ? "wss:" : "ws:";
|
|
50812
|
-
const
|
|
50812
|
+
const U = F.toString(), a = `agent:${w || "default"}:${Y}`;
|
|
50813
50813
|
return CN(
|
|
50814
|
-
|
|
50814
|
+
U,
|
|
50815
50815
|
a,
|
|
50816
50816
|
r || localStorage.getItem("token") || void 0
|
|
50817
50817
|
), () => Zx();
|
|
@@ -50929,7 +50929,7 @@ function qft({
|
|
|
50929
50929
|
), [Ao, Ms] = _.useState({}), ji = _.useRef({}), ui = _.useCallback(
|
|
50930
50930
|
async (k, $ = !1) => {
|
|
50931
50931
|
if (!ut || !k.appId) return;
|
|
50932
|
-
const I = R || (t == null ? void 0 : t.endpoint) || window.location.origin, Q = !R && typeof I == "string" && I.startsWith("/") ? I.replace(/\/+$/, "") : "", F = /^https?:\/\//.test(I) ? I : window.location.origin,
|
|
50932
|
+
const I = R || (t == null ? void 0 : t.endpoint) || window.location.origin, Q = !R && typeof I == "string" && I.startsWith("/") ? I.replace(/\/+$/, "") : "", F = /^https?:\/\//.test(I) ? I : window.location.origin, U = `${Q}/mobile/apps/${encodeURIComponent(k.appId)}/workflow`, a = await fetch(new URL(U, F).toString(), {
|
|
50933
50933
|
cache: $ ? "no-cache" : "default",
|
|
50934
50934
|
headers: {
|
|
50935
50935
|
Authorization: `Bearer ${r || localStorage.getItem("token") || ""}`
|
|
@@ -50958,8 +50958,8 @@ function qft({
|
|
|
50958
50958
|
var Q;
|
|
50959
50959
|
const k = Cr.filter(
|
|
50960
50960
|
(F) => {
|
|
50961
|
-
var
|
|
50962
|
-
return ((
|
|
50961
|
+
var U;
|
|
50962
|
+
return ((U = F.realtime) == null ? void 0 : U.mode) === "ws";
|
|
50963
50963
|
}
|
|
50964
50964
|
);
|
|
50965
50965
|
if (k.length === 0 || !w) return;
|
|
@@ -50969,15 +50969,15 @@ function qft({
|
|
|
50969
50969
|
`tenant:${w}:entities`
|
|
50970
50970
|
);
|
|
50971
50971
|
return I.onmessage = (F) => {
|
|
50972
|
-
let
|
|
50972
|
+
let U;
|
|
50973
50973
|
try {
|
|
50974
|
-
|
|
50974
|
+
U = JSON.parse(F.data);
|
|
50975
50975
|
} catch {
|
|
50976
50976
|
return;
|
|
50977
50977
|
}
|
|
50978
|
-
if (!(
|
|
50978
|
+
if (!(U.type !== "entity_changed" || U.entity !== "mobile_apps"))
|
|
50979
50979
|
for (const a of k)
|
|
50980
|
-
|
|
50980
|
+
U.id === a.appId && ui(a, !0).catch(() => {
|
|
50981
50981
|
});
|
|
50982
50982
|
}, () => I.close();
|
|
50983
50983
|
}, [Cr, ui, w, t]);
|
|
@@ -50985,7 +50985,7 @@ function qft({
|
|
|
50985
50985
|
{}
|
|
50986
50986
|
), [Tn, Wi] = _.useState({}), [Vi, Oo] = _.useState([]), mr = _.useRef(/* @__PURE__ */ new Set()), Ui = _.useRef(/* @__PURE__ */ new Map()), Mo = _.useCallback(
|
|
50987
50987
|
(k, $) => {
|
|
50988
|
-
if (!(
|
|
50988
|
+
if (!(q ?? Ap())) return;
|
|
50989
50989
|
const I = `${k}:${$}`;
|
|
50990
50990
|
mr.current.has(I) || (mr.current.add(I), Oo((Q) => [
|
|
50991
50991
|
...Q,
|
|
@@ -50997,10 +50997,10 @@ function qft({
|
|
|
50997
50997
|
}
|
|
50998
50998
|
]));
|
|
50999
50999
|
},
|
|
51000
|
-
[Tt,
|
|
51000
|
+
[Tt, q]
|
|
51001
51001
|
), ks = _.useCallback(
|
|
51002
51002
|
(k, $) => {
|
|
51003
|
-
if (!(
|
|
51003
|
+
if (!(q ?? Ap())) return;
|
|
51004
51004
|
const I = Date.now(), Q = (Ui.current.get(k) || []).filter((a) => I - a.at < 2e3), F = Q.find(
|
|
51005
51005
|
(a) => a.componentKey !== $ && I - a.at < 500
|
|
51006
51006
|
);
|
|
@@ -51008,15 +51008,15 @@ function qft({
|
|
|
51008
51008
|
"DATASOURCE_DUPLICATE_RUNTIME",
|
|
51009
51009
|
`"${k}" fetched by ${F.componentKey} and ${$} within 500ms`
|
|
51010
51010
|
);
|
|
51011
|
-
const
|
|
51011
|
+
const U = Q.filter(
|
|
51012
51012
|
(a) => a.componentKey === $
|
|
51013
51013
|
);
|
|
51014
|
-
|
|
51014
|
+
U.length >= 3 && Mo(
|
|
51015
51015
|
"RENDER_FETCH_LOOP",
|
|
51016
|
-
`"${k}" fetched ${
|
|
51016
|
+
`"${k}" fetched ${U.length} times by ${$} within 2s`
|
|
51017
51017
|
);
|
|
51018
51018
|
},
|
|
51019
|
-
[
|
|
51019
|
+
[q, Mo]
|
|
51020
51020
|
);
|
|
51021
51021
|
_.useEffect(() => {
|
|
51022
51022
|
mr.current.clear(), Ui.current.clear(), Oo([]);
|
|
@@ -51058,7 +51058,7 @@ function qft({
|
|
|
51058
51058
|
const Q = `${W}logo.${I}`;
|
|
51059
51059
|
try {
|
|
51060
51060
|
if ((await fetch(Q, { method: "HEAD" })).ok && !$) {
|
|
51061
|
-
k.config.logo = Q, Jt((
|
|
51061
|
+
k.config.logo = Q, Jt((U) => U && { ...U });
|
|
51062
51062
|
return;
|
|
51063
51063
|
}
|
|
51064
51064
|
} catch {
|
|
@@ -51134,7 +51134,7 @@ function qft({
|
|
|
51134
51134
|
}
|
|
51135
51135
|
};
|
|
51136
51136
|
window.addEventListener("message", F);
|
|
51137
|
-
const
|
|
51137
|
+
const U = () => {
|
|
51138
51138
|
var a;
|
|
51139
51139
|
if (!qe.current) {
|
|
51140
51140
|
const f = et.find((b) => b.id === Tt);
|
|
@@ -51142,8 +51142,8 @@ function qft({
|
|
|
51142
51142
|
qe.current = !0, St(!1), Mt(!0);
|
|
51143
51143
|
}
|
|
51144
51144
|
};
|
|
51145
|
-
return window.addEventListener("auth:required",
|
|
51146
|
-
window.removeEventListener("storage", Q), window.removeEventListener("message", F), window.removeEventListener("auth:required",
|
|
51145
|
+
return window.addEventListener("auth:required", U), () => {
|
|
51146
|
+
window.removeEventListener("storage", Q), window.removeEventListener("message", F), window.removeEventListener("auth:required", U);
|
|
51147
51147
|
};
|
|
51148
51148
|
}, []);
|
|
51149
51149
|
const kc = async () => {
|
|
@@ -51178,8 +51178,8 @@ function qft({
|
|
|
51178
51178
|
qe.current
|
|
51179
51179
|
), !qe.current) {
|
|
51180
51180
|
qe.current = !0, localStorage.removeItem("token"), St(!1);
|
|
51181
|
-
const F = et.find((a) => a.id === Tt),
|
|
51182
|
-
($ ||
|
|
51181
|
+
const F = et.find((a) => a.id === Tt), U = ((I = F == null ? void 0 : F.config) == null ? void 0 : I.requireAuth) === !0 || (F == null ? void 0 : F.requiresAuth) === !0;
|
|
51182
|
+
($ || U) && (Mt(!0), Tt && (nn.current = Tt));
|
|
51183
51183
|
}
|
|
51184
51184
|
return !0;
|
|
51185
51185
|
}
|
|
@@ -51222,7 +51222,7 @@ function qft({
|
|
|
51222
51222
|
return delete $.TENANT_ID, delete $.tenantId, delete $.role, $;
|
|
51223
51223
|
}, vi = _.useCallback(
|
|
51224
51224
|
async (k) => {
|
|
51225
|
-
var Q, F,
|
|
51225
|
+
var Q, F, U;
|
|
51226
51226
|
if (!k.action) return;
|
|
51227
51227
|
const $ = String(k.action), I = Er.current;
|
|
51228
51228
|
try {
|
|
@@ -51322,7 +51322,7 @@ function qft({
|
|
|
51322
51322
|
} catch (a) {
|
|
51323
51323
|
if (a instanceof Zi && Ua(a, k == null ? void 0 : k.onError))
|
|
51324
51324
|
return;
|
|
51325
|
-
(
|
|
51325
|
+
(U = k.onError) != null && U.message && Me(k.onError.message, "error");
|
|
51326
51326
|
}
|
|
51327
51327
|
},
|
|
51328
51328
|
[Tt, et, ut]
|
|
@@ -51336,15 +51336,15 @@ function qft({
|
|
|
51336
51336
|
var $, I;
|
|
51337
51337
|
const k = $c.current;
|
|
51338
51338
|
if ($c.current = Tt, k && k !== Tt) {
|
|
51339
|
-
const Q = et.find((
|
|
51339
|
+
const Q = et.find((U) => U.id === k), F = (Q == null ? void 0 : Q.type) === "render_scene" ? Q.config : null;
|
|
51340
51340
|
(I = ($ = F == null ? void 0 : F.events) == null ? void 0 : $.onLeave) != null && I.action && vi(F.events.onLeave);
|
|
51341
51341
|
}
|
|
51342
51342
|
}, [Tt, et, vi]), _.useEffect(() => {
|
|
51343
51343
|
const k = me == null ? void 0 : me.events;
|
|
51344
51344
|
if (!(k != null && k.onVisibilityChange)) return;
|
|
51345
51345
|
const $ = () => {
|
|
51346
|
-
var I, Q, F,
|
|
51347
|
-
document.hidden ? (Q = (I = k.onVisibilityChange) == null ? void 0 : I.onHidden) != null && Q.action && vi(k.onVisibilityChange.onHidden) : (
|
|
51346
|
+
var I, Q, F, U;
|
|
51347
|
+
document.hidden ? (Q = (I = k.onVisibilityChange) == null ? void 0 : I.onHidden) != null && Q.action && vi(k.onVisibilityChange.onHidden) : (U = (F = k.onVisibilityChange) == null ? void 0 : F.onVisible) != null && U.action && vi(k.onVisibilityChange.onVisible);
|
|
51348
51348
|
};
|
|
51349
51349
|
return document.addEventListener("visibilitychange", $), () => document.removeEventListener("visibilitychange", $);
|
|
51350
51350
|
}, [Tt, me == null ? void 0 : me.events, vi]);
|
|
@@ -51359,7 +51359,7 @@ function qft({
|
|
|
51359
51359
|
},
|
|
51360
51360
|
[]
|
|
51361
51361
|
), bi = _.useRef({}), Gh = _.useRef(/* @__PURE__ */ new Map()), Ds = _.useRef(/* @__PURE__ */ new Set()), ae = _.useRef(/* @__PURE__ */ new Set()), xi = _.useRef(null), Hn = _.useRef([]), Jr = _.useRef({}), Cn = _.useCallback(
|
|
51362
|
-
async (k, $, I = 0, Q = 10, F,
|
|
51362
|
+
async (k, $, I = 0, Q = 10, F, U, a, f = !1, g = !1) => {
|
|
51363
51363
|
var B, J;
|
|
51364
51364
|
if (!k || qe.current || !ut) return;
|
|
51365
51365
|
const b = `${$}|${k}|${I}|${f}`, T = Gh.current.get(b) || 0;
|
|
@@ -51391,7 +51391,7 @@ function qft({
|
|
|
51391
51391
|
const ht = Rm(k, {
|
|
51392
51392
|
limit: Q,
|
|
51393
51393
|
page: I
|
|
51394
|
-
}), bt = F ? $r(ht, F,
|
|
51394
|
+
}), bt = F ? $r(ht, F, U) : ht, ft = Hf(bt), wt = await fy(t, ft, Pt);
|
|
51395
51395
|
st = wt, V = (wt == null ? void 0 : wt.emails) || (wt == null ? void 0 : wt.items) || (wt == null ? void 0 : wt.data) || (wt == null ? void 0 : wt.history) || (Array.isArray(wt) ? wt : []), tt = ((B = wt == null ? void 0 : wt.pagination) == null ? void 0 : B.total) ?? (wt == null ? void 0 : wt.count) ?? V.length;
|
|
51396
51396
|
} else if (!td(k)) {
|
|
51397
51397
|
const ht = t == null ? void 0 : t.endpoint, bt = R || (ht && /^https?:\/\//.test(ht) ? ht : window.location.origin);
|
|
@@ -51404,7 +51404,7 @@ function qft({
|
|
|
51404
51404
|
window.location.origin
|
|
51405
51405
|
);
|
|
51406
51406
|
const wt = new URL(ft, bt);
|
|
51407
|
-
wt.searchParams.set("limit", String(Q)), wt.searchParams.set("offset", String(I * Q)), g && wt.searchParams.set("_ts", String(Date.now())), F && (wt.searchParams.set("sort", F), wt.searchParams.set("dir",
|
|
51407
|
+
wt.searchParams.set("limit", String(Q)), wt.searchParams.set("offset", String(I * Q)), g && wt.searchParams.set("_ts", String(Date.now())), F && (wt.searchParams.set("sort", F), wt.searchParams.set("dir", U || "asc"));
|
|
51408
51408
|
const Ut = await fetch(wt.toString(), {
|
|
51409
51409
|
headers: {
|
|
51410
51410
|
Authorization: `Bearer ${r || localStorage.getItem("token") || ""}`
|
|
@@ -51492,12 +51492,12 @@ function qft({
|
|
|
51492
51492
|
return;
|
|
51493
51493
|
}
|
|
51494
51494
|
const $ = ((e == null ? void 0 : e.steps) || []).find(
|
|
51495
|
-
(
|
|
51495
|
+
(U) => U.id === Tt
|
|
51496
51496
|
);
|
|
51497
51497
|
if (!(((F = $ == null ? void 0 : $.config) == null ? void 0 : F.requireAuth) === !0 || ($ == null ? void 0 : $.requiresAuth) === !0 || nt) || js.current === k) return;
|
|
51498
51498
|
let Q = !1;
|
|
51499
51499
|
return (async () => {
|
|
51500
|
-
var
|
|
51500
|
+
var U;
|
|
51501
51501
|
try {
|
|
51502
51502
|
const a = await fetch(`${rr()}/admin/users/me`, {
|
|
51503
51503
|
headers: { Authorization: `Bearer ${k}` }
|
|
@@ -51506,7 +51506,7 @@ function qft({
|
|
|
51506
51506
|
if (a.ok) {
|
|
51507
51507
|
const f = await a.json().catch(() => null);
|
|
51508
51508
|
js.current = k, Z(!1), it(
|
|
51509
|
-
typeof ((
|
|
51509
|
+
typeof ((U = f == null ? void 0 : f.user) == null ? void 0 : U.emailVerified) == "boolean" ? f.user.emailVerified : null
|
|
51510
51510
|
);
|
|
51511
51511
|
} else
|
|
51512
51512
|
Tt && (nn.current = Tt), js.current = null, Z(!0), St(!1), it(null);
|
|
@@ -51521,10 +51521,10 @@ function qft({
|
|
|
51521
51521
|
(k, $, I) => {
|
|
51522
51522
|
!k || $.length === 0 || Kr((Q) => {
|
|
51523
51523
|
const F = { ...Q };
|
|
51524
|
-
for (const [
|
|
51525
|
-
if (a !== k || !Q[
|
|
51526
|
-
const f = Q[
|
|
51527
|
-
I === "remove" && (F[
|
|
51524
|
+
for (const [U, a] of Object.entries(bi.current)) {
|
|
51525
|
+
if (a !== k || !Q[U]) continue;
|
|
51526
|
+
const f = Q[U];
|
|
51527
|
+
I === "remove" && (F[U] = f.filter((g) => !$.includes(g.id)));
|
|
51528
51528
|
}
|
|
51529
51529
|
return F;
|
|
51530
51530
|
});
|
|
@@ -51542,10 +51542,10 @@ function qft({
|
|
|
51542
51542
|
for (const [b, T] of Object.entries(Jr.current))
|
|
51543
51543
|
Object.values(bi.current).includes(T) || F.set(b, { ds: T, dataKey: b });
|
|
51544
51544
|
if (F.size === 0) return;
|
|
51545
|
-
const
|
|
51545
|
+
const U = Array.isArray($) ? new Set($) : void 0, a = (b, T) => Ds.current.has(b) || (T ? Ds.current.has(T) : !1);
|
|
51546
51546
|
for (const [b, { ds: T, dataKey: M }] of F) {
|
|
51547
51547
|
if (!a(b, M)) continue;
|
|
51548
|
-
const B = !!(
|
|
51548
|
+
const B = !!(U != null && U.has(b) || M && (U != null && U.has(M)));
|
|
51549
51549
|
if ($ === "view" || B) {
|
|
51550
51550
|
Cn(
|
|
51551
51551
|
T,
|
|
@@ -51579,22 +51579,25 @@ function qft({
|
|
|
51579
51579
|
(k, $, I, Q) => {
|
|
51580
51580
|
const F = String(k || "").toUpperCase();
|
|
51581
51581
|
if (F === "GET" || Q === !1) return;
|
|
51582
|
-
const
|
|
51583
|
-
if (!
|
|
51582
|
+
const U = Q === "remove" || Q === "merge" || Q === "add" || Q === "refresh" ? Q : F === "DELETE" ? "remove" : F === "PUT" || F === "PATCH" ? "merge" : F === "POST" ? "add" : null;
|
|
51583
|
+
if (!U || U === "refresh") return;
|
|
51584
51584
|
const a = () => {
|
|
51585
51585
|
const g = String($).match(/\/([^/]+)\/?$/);
|
|
51586
51586
|
return g ? decodeURIComponent(g[1]) : void 0;
|
|
51587
51587
|
}, f = [];
|
|
51588
|
-
for (const [g, b] of Object.entries(bi.current))
|
|
51589
|
-
b
|
|
51588
|
+
for (const [g, b] of Object.entries(bi.current)) {
|
|
51589
|
+
if (!b || !$.startsWith(b)) continue;
|
|
51590
|
+
const T = $.slice(b.length);
|
|
51591
|
+
U === "add" && T && !T.startsWith("?") || f.push({ key: g, ds: b });
|
|
51592
|
+
}
|
|
51590
51593
|
f.length !== 0 && Kr((g) => {
|
|
51591
51594
|
const b = { ...g };
|
|
51592
51595
|
for (const { key: T, ds: M } of f) {
|
|
51593
51596
|
const B = g[T] || [];
|
|
51594
|
-
if (
|
|
51597
|
+
if (U === "remove") {
|
|
51595
51598
|
const J = (I == null ? void 0 : I.id) || a();
|
|
51596
51599
|
b[T] = B.filter((V) => V.id !== J);
|
|
51597
|
-
} else if (
|
|
51600
|
+
} else if (U === "merge") {
|
|
51598
51601
|
const J = (I == null ? void 0 : I.id) || a();
|
|
51599
51602
|
b[T] = B.map(
|
|
51600
51603
|
(V) => V.id === J ? { ...V, ...I } : V
|
|
@@ -51604,7 +51607,7 @@ function qft({
|
|
|
51604
51607
|
...I || {},
|
|
51605
51608
|
id: (I == null ? void 0 : I.id) || `temp_${Date.now()}`
|
|
51606
51609
|
};
|
|
51607
|
-
|
|
51610
|
+
U === "add" && J.status === void 0 && (J.status = "queued"), b[T] = [J, ...B];
|
|
51608
51611
|
}
|
|
51609
51612
|
}
|
|
51610
51613
|
return b;
|
|
@@ -51615,9 +51618,9 @@ function qft({
|
|
|
51615
51618
|
(k, $, I, Q) => {
|
|
51616
51619
|
var g;
|
|
51617
51620
|
const F = rr();
|
|
51618
|
-
let
|
|
51621
|
+
let U = !1;
|
|
51619
51622
|
const a = (b) => {
|
|
51620
|
-
|
|
51623
|
+
U || (U = !0, b());
|
|
51621
51624
|
}, f = t == null ? void 0 : t.queues;
|
|
51622
51625
|
if (k === "sse" && (f != null && f.subscribe))
|
|
51623
51626
|
try {
|
|
@@ -51715,14 +51718,14 @@ function qft({
|
|
|
51715
51718
|
const B = await Q.upload(k, $ || {}, I), J = (B == null ? void 0 : B.url) || (B == null ? void 0 : B.path) || "";
|
|
51716
51719
|
return J ? (B == null ? void 0 : B.visibility) === "public" ? J : `${rr()}${J}?token=${F}` : "";
|
|
51717
51720
|
}
|
|
51718
|
-
const
|
|
51719
|
-
|
|
51721
|
+
const U = new FormData();
|
|
51722
|
+
U.append("file", k), $ != null && $.entityType && U.append("entityType", $.entityType), $ != null && $.entityId && U.append("entityId", $.entityId), $ != null && $.visibility && U.append("visibility", $.visibility);
|
|
51720
51723
|
const a = await fetch(`${rr()}/files/upload`, {
|
|
51721
51724
|
method: "POST",
|
|
51722
51725
|
headers: {
|
|
51723
51726
|
Authorization: `Bearer ${r || localStorage.getItem("token") || ""}`
|
|
51724
51727
|
},
|
|
51725
|
-
body:
|
|
51728
|
+
body: U
|
|
51726
51729
|
});
|
|
51727
51730
|
if (!a.ok) throw new Error("Upload failed");
|
|
51728
51731
|
const f = await a.json(), g = ((T = f == null ? void 0 : f.asset) == null ? void 0 : T.url) || (f == null ? void 0 : f.url) || (f == null ? void 0 : f.path) || (f == null ? void 0 : f.id) || "";
|
|
@@ -51733,7 +51736,7 @@ function qft({
|
|
|
51733
51736
|
async (k, $, I, Q) => {
|
|
51734
51737
|
var a;
|
|
51735
51738
|
if (!(k != null && k.endpoint) || Q.length === 0) return;
|
|
51736
|
-
const F = k.endpoint,
|
|
51739
|
+
const F = k.endpoint, U = k.optimistic ?? !0;
|
|
51737
51740
|
try {
|
|
51738
51741
|
const f = await fetch(rr() + F, {
|
|
51739
51742
|
method: "POST",
|
|
@@ -51752,7 +51755,7 @@ function qft({
|
|
|
51752
51755
|
Me(((a = g == null ? void 0 : g.error) == null ? void 0 : a.message) || "Request failed", "error");
|
|
51753
51756
|
return;
|
|
51754
51757
|
}
|
|
51755
|
-
|
|
51758
|
+
U !== !1 && (U === "remove" || U === "refresh" ? U : g.softUpdate || (k.action === "delete" ? "remove" : "refresh")) === "remove" && Zh($, Q, "remove"), Jt((T) => ({
|
|
51756
51759
|
...T,
|
|
51757
51760
|
_selIds: [],
|
|
51758
51761
|
_selectMode: !1
|
|
@@ -51799,31 +51802,31 @@ function qft({
|
|
|
51799
51802
|
), $r = (k, $, I) => {
|
|
51800
51803
|
const Q = Hf(k), F = Q.indexOf("(");
|
|
51801
51804
|
if (F === -1) return k;
|
|
51802
|
-
const
|
|
51803
|
-
if (!
|
|
51805
|
+
const U = Q.slice(F + 1, -1).trim(), a = `sort: "${$}", dir: ${I === "desc" ? '"desc"' : '"asc"'}`;
|
|
51806
|
+
if (!U)
|
|
51804
51807
|
return k.replace(/\(\)$/, `({${a}})`);
|
|
51805
|
-
const f =
|
|
51808
|
+
const f = U.lastIndexOf(",");
|
|
51806
51809
|
if (f === -1)
|
|
51807
|
-
return k.replace(/\(([^)]*)\)$/, `(${
|
|
51808
|
-
const g =
|
|
51810
|
+
return k.replace(/\(([^)]*)\)$/, `(${U}, {${a}})`);
|
|
51811
|
+
const g = U.slice(f + 1).trim();
|
|
51809
51812
|
return g.startsWith("{") ? k.replace(
|
|
51810
51813
|
/\(([^)]*)\)$/,
|
|
51811
|
-
`(${
|
|
51812
|
-
) : k.replace(/\(([^)]*)\)$/, `(${
|
|
51814
|
+
`(${U.slice(0, f)}, {${g.slice(1, -1)}, ${a}})`
|
|
51815
|
+
) : k.replace(/\(([^)]*)\)$/, `(${U}, {${a}})`);
|
|
51813
51816
|
}, Rm = (k, $) => {
|
|
51814
51817
|
const I = Hf(k), Q = I.indexOf("(");
|
|
51815
51818
|
if (Q === -1) return k;
|
|
51816
|
-
const F = I.slice(Q + 1, -1).trim(),
|
|
51819
|
+
const F = I.slice(Q + 1, -1).trim(), U = `limit: ${$.limit}, page: ${$.page}`;
|
|
51817
51820
|
if (!F)
|
|
51818
|
-
return k.replace(/\(\)$/, `({${
|
|
51821
|
+
return k.replace(/\(\)$/, `({${U}})`);
|
|
51819
51822
|
const a = F.lastIndexOf(",");
|
|
51820
51823
|
if (a === -1)
|
|
51821
|
-
return k.replace(/\(([^)]*)\)$/, `(${F}, {${
|
|
51824
|
+
return k.replace(/\(([^)]*)\)$/, `(${F}, {${U}})`);
|
|
51822
51825
|
const f = F.slice(a + 1).trim();
|
|
51823
51826
|
return f.startsWith("{") ? k.replace(
|
|
51824
51827
|
/\(([^)]*)\)$/,
|
|
51825
|
-
`(${F.slice(0, a)}, {${f.slice(1, -1)}, ${
|
|
51826
|
-
) : k.replace(/\(([^)]*)\)$/, `(${F}, {${
|
|
51828
|
+
`(${F.slice(0, a)}, {${f.slice(1, -1)}, ${U}})`
|
|
51829
|
+
) : k.replace(/\(([^)]*)\)$/, `(${F}, {${U}})`);
|
|
51827
51830
|
};
|
|
51828
51831
|
_.useEffect(
|
|
51829
51832
|
() => () => {
|
|
@@ -51862,7 +51865,7 @@ function qft({
|
|
|
51862
51865
|
const Yi = async (k, $) => {
|
|
51863
51866
|
var J, V, tt, st, Pt;
|
|
51864
51867
|
if (qe.current || !ut) return;
|
|
51865
|
-
const { method: I, path: Q } = an(k), F = wi(Q),
|
|
51868
|
+
const { method: I, path: Q } = an(k), F = wi(Q), U = I !== "GET" && I !== "DELETE", a = rr();
|
|
51866
51869
|
I !== "GET" && Yh(
|
|
51867
51870
|
I,
|
|
51868
51871
|
F,
|
|
@@ -51883,7 +51886,7 @@ function qft({
|
|
|
51883
51886
|
"Content-Type": "application/json",
|
|
51884
51887
|
Authorization: `Bearer ${r || localStorage.getItem("token") || ""}`
|
|
51885
51888
|
},
|
|
51886
|
-
...
|
|
51889
|
+
...U ? { body: JSON.stringify(f) } : {}
|
|
51887
51890
|
});
|
|
51888
51891
|
if (await Do(g) || Je.current) return;
|
|
51889
51892
|
let b;
|
|
@@ -51990,12 +51993,12 @@ function qft({
|
|
|
51990
51993
|
}, Qr = (k) => {
|
|
51991
51994
|
var Q, F;
|
|
51992
51995
|
sn(null);
|
|
51993
|
-
const $ = k === "/" && (((Q = et.find((
|
|
51996
|
+
const $ = k === "/" && (((Q = et.find((U) => U.route === "/")) == null ? void 0 : Q.id) || ((F = et.find((U) => U.type === "render_scene")) == null ? void 0 : F.id)) || k;
|
|
51994
51997
|
if (rt($) && !ut) {
|
|
51995
51998
|
nn.current = $, Mt(!0);
|
|
51996
51999
|
return;
|
|
51997
52000
|
}
|
|
51998
|
-
Yt((
|
|
52001
|
+
Yt((U) => [...U, Tt]), Pn($);
|
|
51999
52002
|
}, Va = (k, $ = "error") => {
|
|
52000
52003
|
if (Jt((I) => ({
|
|
52001
52004
|
...I,
|
|
@@ -52041,13 +52044,19 @@ ${k.message}` : k.message;
|
|
|
52041
52044
|
return I.gateAction === "login" ? (gr("login"), !0) : I.gateAction === "upgrade" ? I.uiVariant === "modal" || typeof (I == null ? void 0 : I.modalId) == "string" ? (F(), !0) : $ != null && $.upgradeScene ? (Qr($.upgradeScene), !0) : (F(), !0) : I.gateAction === "block" || I.gateAction === "warn" || I.warning ? (F(), !0) : !1;
|
|
52042
52045
|
};
|
|
52043
52046
|
_.useEffect(() => {
|
|
52047
|
+
var U;
|
|
52044
52048
|
if (!ut || K) return;
|
|
52045
|
-
const k = nn.current
|
|
52046
|
-
|
|
52049
|
+
const k = nn.current, $ = k && et.some((a) => a.id === k), Q = localStorage.getItem("backflow_post_auth_redirect") === "1" ? (U = et.find(
|
|
52050
|
+
(a) => {
|
|
52051
|
+
var f;
|
|
52052
|
+
return a.type === "render_scene" && (a.requiresAuth || ((f = a.config) == null ? void 0 : f.requiresAuth) === !0);
|
|
52053
|
+
}
|
|
52054
|
+
)) == null ? void 0 : U.id : null, F = $ ? k : Q;
|
|
52055
|
+
F && (localStorage.removeItem("backflow_post_auth_redirect"), nn.current = null, Qr(F));
|
|
52047
52056
|
}, [ut, K, et]);
|
|
52048
52057
|
const Me = (k, $ = "success", I) => {
|
|
52049
52058
|
const Q = Array.isArray(k) ? k.join(`
|
|
52050
|
-
`) : k, F = $ === "success",
|
|
52059
|
+
`) : k, F = $ === "success", U = F ? "#10B981" : "#EF4444", a = ie.toast || {}, f = I ?? a.duration ?? 3e3, g = a.position || "bottom-right", b = {
|
|
52051
52060
|
"bottom-right": { right: "24px", bottom: "24px" },
|
|
52052
52061
|
"bottom-left": { left: "24px", bottom: "24px" },
|
|
52053
52062
|
"bottom-center": {
|
|
@@ -52067,8 +52076,8 @@ ${k.message}` : k.message;
|
|
|
52067
52076
|
height: "22px",
|
|
52068
52077
|
minWidth: "22px",
|
|
52069
52078
|
borderRadius: "50%",
|
|
52070
|
-
backgroundColor: `${
|
|
52071
|
-
color:
|
|
52079
|
+
backgroundColor: `${U}26`,
|
|
52080
|
+
color: U,
|
|
52072
52081
|
fontSize: "12px",
|
|
52073
52082
|
fontWeight: "700"
|
|
52074
52083
|
});
|
|
@@ -52121,26 +52130,26 @@ ${k.message}` : k.message;
|
|
|
52121
52130
|
if ($ && (k != null && k.onSuccess)) {
|
|
52122
52131
|
const I = Array.isArray(k.onSuccess) ? k.onSuccess : [k.onSuccess];
|
|
52123
52132
|
for (const Q of I) {
|
|
52124
|
-
const { type: F, value:
|
|
52133
|
+
const { type: F, value: U, title: a, key: f } = Q;
|
|
52125
52134
|
switch (F) {
|
|
52126
52135
|
case "toast":
|
|
52127
|
-
Me(
|
|
52136
|
+
Me(U || "Success!", "success");
|
|
52128
52137
|
break;
|
|
52129
52138
|
case "navigate":
|
|
52130
|
-
|
|
52139
|
+
U && Qr(U);
|
|
52131
52140
|
break;
|
|
52132
52141
|
case "redirect":
|
|
52133
|
-
|
|
52142
|
+
U && (window.location.href = U);
|
|
52134
52143
|
break;
|
|
52135
52144
|
case "modal":
|
|
52136
|
-
|
|
52145
|
+
U && Oe[U] ? sn({ id: U, definition: Oe[U] }) : sn({
|
|
52137
52146
|
id: "__legacy",
|
|
52138
52147
|
definition: {
|
|
52139
52148
|
title: a || "Success",
|
|
52140
|
-
components:
|
|
52149
|
+
components: U ? [
|
|
52141
52150
|
{
|
|
52142
52151
|
type: "text",
|
|
52143
|
-
text:
|
|
52152
|
+
text: U,
|
|
52144
52153
|
color: ie.colorMode === "light" ? "rgba(0,0,0,0.65)" : "rgba(255,255,255,0.7)",
|
|
52145
52154
|
fontSize: 14
|
|
52146
52155
|
}
|
|
@@ -52150,10 +52159,10 @@ ${k.message}` : k.message;
|
|
|
52150
52159
|
});
|
|
52151
52160
|
break;
|
|
52152
52161
|
case "route":
|
|
52153
|
-
|
|
52162
|
+
U && Yi(U);
|
|
52154
52163
|
break;
|
|
52155
52164
|
case "set_data":
|
|
52156
|
-
f &&
|
|
52165
|
+
f && U !== void 0 && Jt((g) => ({ ...g, [f]: U }));
|
|
52157
52166
|
break;
|
|
52158
52167
|
}
|
|
52159
52168
|
}
|
|
@@ -52282,7 +52291,7 @@ ${k.message}` : k.message;
|
|
|
52282
52291
|
} finally {
|
|
52283
52292
|
Mr(!1);
|
|
52284
52293
|
}
|
|
52285
|
-
},
|
|
52294
|
+
}, U = (At) => {
|
|
52286
52295
|
gr(At), le(null), At !== "reset" && (qi(""), Et("")), Ns(""), Rn({});
|
|
52287
52296
|
}, a = ie.colorMode === "dark", f = a ? "#f3f4f6" : "#111827", g = a ? "#9ca3af" : "#6b7280", b = a ? "#374151" : "#f3f4f6", T = a ? "#4b5563" : "#d1d5db", M = a ? "#ffffff" : "#000000", B = a ? "#000000" : "#ffffff", J = a ? "#1f2937" : "#ffffff", V = "#ef4444", tt = (At = "12px") => ({
|
|
52288
52297
|
width: "100%",
|
|
@@ -52420,7 +52429,7 @@ ${k.message}` : k.message;
|
|
|
52420
52429
|
key: At,
|
|
52421
52430
|
style: { position: "relative", marginBottom: "12px" }
|
|
52422
52431
|
},
|
|
52423
|
-
|
|
52432
|
+
H("input", {
|
|
52424
52433
|
key: "input",
|
|
52425
52434
|
type: Io[At] ? "text" : "password",
|
|
52426
52435
|
placeholder: It,
|
|
@@ -52595,7 +52604,7 @@ ${k.message}` : k.message;
|
|
|
52595
52604
|
})
|
|
52596
52605
|
)
|
|
52597
52606
|
)), ft.push(
|
|
52598
|
-
|
|
52607
|
+
H("input", {
|
|
52599
52608
|
key: "email",
|
|
52600
52609
|
type: "email",
|
|
52601
52610
|
placeholder: "Email Address",
|
|
@@ -52695,7 +52704,7 @@ ${k.message}` : k.message;
|
|
|
52695
52704
|
cursor: "pointer",
|
|
52696
52705
|
marginBottom: "16px"
|
|
52697
52706
|
},
|
|
52698
|
-
onClick: () =>
|
|
52707
|
+
onClick: () => U("forgot")
|
|
52699
52708
|
},
|
|
52700
52709
|
"Forgot password?"
|
|
52701
52710
|
)
|
|
@@ -52710,7 +52719,7 @@ ${k.message}` : k.message;
|
|
|
52710
52719
|
textAlign: "center",
|
|
52711
52720
|
cursor: "pointer"
|
|
52712
52721
|
},
|
|
52713
|
-
onClick: () =>
|
|
52722
|
+
onClick: () => U("register")
|
|
52714
52723
|
},
|
|
52715
52724
|
"Don’t have an account? Register"
|
|
52716
52725
|
)
|
|
@@ -52744,7 +52753,7 @@ ${k.message}` : k.message;
|
|
|
52744
52753
|
"Create an account to get started"
|
|
52745
52754
|
)
|
|
52746
52755
|
), ft.push(
|
|
52747
|
-
|
|
52756
|
+
H("input", {
|
|
52748
52757
|
key: "email",
|
|
52749
52758
|
type: "email",
|
|
52750
52759
|
placeholder: "Email",
|
|
@@ -52868,7 +52877,7 @@ ${k.message}` : k.message;
|
|
|
52868
52877
|
textAlign: "center",
|
|
52869
52878
|
cursor: "pointer"
|
|
52870
52879
|
},
|
|
52871
|
-
onClick: () =>
|
|
52880
|
+
onClick: () => U("login")
|
|
52872
52881
|
},
|
|
52873
52882
|
"Already have an account? Sign In"
|
|
52874
52883
|
)
|
|
@@ -52902,7 +52911,7 @@ ${k.message}` : k.message;
|
|
|
52902
52911
|
"Enter your email to receive a reset link"
|
|
52903
52912
|
)
|
|
52904
52913
|
), ft.push(
|
|
52905
|
-
|
|
52914
|
+
H("input", {
|
|
52906
52915
|
key: "email",
|
|
52907
52916
|
type: "email",
|
|
52908
52917
|
placeholder: "Email",
|
|
@@ -52979,7 +52988,7 @@ ${k.message}` : k.message;
|
|
|
52979
52988
|
textAlign: "center",
|
|
52980
52989
|
cursor: "pointer"
|
|
52981
52990
|
},
|
|
52982
|
-
onClick: () =>
|
|
52991
|
+
onClick: () => U("login")
|
|
52983
52992
|
},
|
|
52984
52993
|
"Back to Sign In"
|
|
52985
52994
|
)
|
|
@@ -53013,7 +53022,7 @@ ${k.message}` : k.message;
|
|
|
53013
53022
|
"Enter the reset code and your new password"
|
|
53014
53023
|
)
|
|
53015
53024
|
), ft.push(
|
|
53016
|
-
|
|
53025
|
+
H("input", {
|
|
53017
53026
|
key: "code",
|
|
53018
53027
|
type: "text",
|
|
53019
53028
|
placeholder: "Reset code",
|
|
@@ -53093,7 +53102,7 @@ ${k.message}` : k.message;
|
|
|
53093
53102
|
textAlign: "center",
|
|
53094
53103
|
cursor: "pointer"
|
|
53095
53104
|
},
|
|
53096
|
-
onClick: () =>
|
|
53105
|
+
onClick: () => U("login")
|
|
53097
53106
|
},
|
|
53098
53107
|
"Back to Sign In"
|
|
53099
53108
|
)
|
|
@@ -53207,43 +53216,43 @@ ${k.message}` : k.message;
|
|
|
53207
53216
|
}, Rc = async (k, $, I) => {
|
|
53208
53217
|
var Q, F;
|
|
53209
53218
|
try {
|
|
53210
|
-
let
|
|
53211
|
-
const a =
|
|
53219
|
+
let U = String(Ha(k) ?? "");
|
|
53220
|
+
const a = U.match(
|
|
53212
53221
|
/^\{\{\s*(.+?)\s*\?\s*(.*?)\s+:\s+(.*?)\s*\}\}$/
|
|
53213
53222
|
);
|
|
53214
|
-
a && (
|
|
53215
|
-
const f =
|
|
53223
|
+
a && (U = qa(a[1]) ? a[2] : a[3]);
|
|
53224
|
+
const f = U.split(";").map((V) => V.trim()).filter(Boolean);
|
|
53216
53225
|
if (f.length > 1) {
|
|
53217
53226
|
for (const V of f)
|
|
53218
53227
|
await Rc(V, void 0, I);
|
|
53219
53228
|
return;
|
|
53220
53229
|
}
|
|
53221
|
-
if (
|
|
53230
|
+
if (U === "go_back") {
|
|
53222
53231
|
pr();
|
|
53223
53232
|
return;
|
|
53224
53233
|
}
|
|
53225
|
-
if (
|
|
53234
|
+
if (U === "toggle_theme") {
|
|
53226
53235
|
Fa(
|
|
53227
53236
|
(he._colorMode || ie.colorMode) === "dark" ? "light" : "dark"
|
|
53228
53237
|
);
|
|
53229
53238
|
return;
|
|
53230
53239
|
}
|
|
53231
|
-
if (
|
|
53240
|
+
if (U === "close_modal") {
|
|
53232
53241
|
er();
|
|
53233
53242
|
return;
|
|
53234
53243
|
}
|
|
53235
|
-
const g =
|
|
53244
|
+
const g = U.match(/^(toast|show_toast):(.*)$/);
|
|
53236
53245
|
if (g) {
|
|
53237
53246
|
const V = g[2].trim();
|
|
53238
53247
|
V && Me(V, "success");
|
|
53239
53248
|
return;
|
|
53240
53249
|
}
|
|
53241
|
-
const b =
|
|
53250
|
+
const b = U.match(/^scroll_to:([\w-]+)$/);
|
|
53242
53251
|
if (b) {
|
|
53243
53252
|
(Q = document.getElementById(b[1])) == null || Q.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
53244
53253
|
return;
|
|
53245
53254
|
}
|
|
53246
|
-
const T =
|
|
53255
|
+
const T = U.match(/^set_data:([\w.]+)=(.*)$/);
|
|
53247
53256
|
if (T) {
|
|
53248
53257
|
Jt((V) => ({
|
|
53249
53258
|
...V,
|
|
@@ -53251,7 +53260,7 @@ ${k.message}` : k.message;
|
|
|
53251
53260
|
}));
|
|
53252
53261
|
return;
|
|
53253
53262
|
}
|
|
53254
|
-
const M =
|
|
53263
|
+
const M = U.match(/^native:([a-z][\w.-]*)$/i);
|
|
53255
53264
|
if (M) {
|
|
53256
53265
|
if (!i) {
|
|
53257
53266
|
Me("Native app required", "error");
|
|
@@ -53267,7 +53276,7 @@ ${k.message}` : k.message;
|
|
|
53267
53276
|
}
|
|
53268
53277
|
return;
|
|
53269
53278
|
}
|
|
53270
|
-
const B =
|
|
53279
|
+
const B = U.match(/^copy_to_clipboard:([\s\S]*)$/);
|
|
53271
53280
|
if (B) {
|
|
53272
53281
|
const V = B[1];
|
|
53273
53282
|
try {
|
|
@@ -53279,7 +53288,7 @@ ${k.message}` : k.message;
|
|
|
53279
53288
|
Me("Copied to clipboard", "success");
|
|
53280
53289
|
return;
|
|
53281
53290
|
}
|
|
53282
|
-
const J =
|
|
53291
|
+
const J = U.match(
|
|
53283
53292
|
/^auth:(login|register|forgot|reset|logout)$/
|
|
53284
53293
|
);
|
|
53285
53294
|
if (J) {
|
|
@@ -53292,20 +53301,20 @@ ${k.message}` : k.message;
|
|
|
53292
53301
|
le(null), gr(J[1]), Mt(!0);
|
|
53293
53302
|
return;
|
|
53294
53303
|
}
|
|
53295
|
-
if (
|
|
53304
|
+
if (U === "accept_startup_modal") {
|
|
53296
53305
|
const V = ie.startupModal;
|
|
53297
53306
|
V && localStorage.setItem(`backflow_startup_modal_${V}`, "1"), er();
|
|
53298
53307
|
const tt = et.find((st) => st.route === "/");
|
|
53299
53308
|
tt && (Yt((st) => [...st, Tt]), Pn(tt.id));
|
|
53300
53309
|
return;
|
|
53301
53310
|
}
|
|
53302
|
-
if (
|
|
53311
|
+
if (U === "decline_startup_modal") {
|
|
53303
53312
|
er();
|
|
53304
53313
|
const V = et.find((tt) => tt.route === "/");
|
|
53305
53314
|
V && (Yt((tt) => [...tt, Tt]), Pn(V.id));
|
|
53306
53315
|
return;
|
|
53307
53316
|
}
|
|
53308
|
-
if (
|
|
53317
|
+
if (U === "toggle_select") {
|
|
53309
53318
|
Jt((V) => ({
|
|
53310
53319
|
...V,
|
|
53311
53320
|
_selectMode: !V._selectMode,
|
|
@@ -53313,15 +53322,15 @@ ${k.message}` : k.message;
|
|
|
53313
53322
|
}));
|
|
53314
53323
|
return;
|
|
53315
53324
|
}
|
|
53316
|
-
if (
|
|
53317
|
-
Qr(
|
|
53318
|
-
else if (
|
|
53319
|
-
Qr(
|
|
53320
|
-
else if (td(
|
|
53321
|
-
const V = Hf(
|
|
53325
|
+
if (U.startsWith("go_to_step:"))
|
|
53326
|
+
Qr(U.replace("go_to_step:", "")), jo($, !0);
|
|
53327
|
+
else if (U.startsWith("navigate:"))
|
|
53328
|
+
Qr(U.replace("navigate:", "")), jo($, !0);
|
|
53329
|
+
else if (td(U) && t) {
|
|
53330
|
+
const V = Hf(U), tt = await fy(t, V, he);
|
|
53322
53331
|
tt != null && tt.data ? Jt((st) => ({ ...st, ...tt.data })) : tt && typeof tt == "object" && !Array.isArray(tt) && Jt((st) => ({ ...st, ...tt })), tt != null && tt.url && String(tt.url).startsWith("http") && window.open(String(tt.url), "_blank", "noopener,noreferrer"), jo($, !0);
|
|
53323
|
-
} else if (
|
|
53324
|
-
const V =
|
|
53332
|
+
} else if (U.startsWith("show_modal:")) {
|
|
53333
|
+
const V = U.replace("show_modal:", "");
|
|
53325
53334
|
if (Oe[V]) {
|
|
53326
53335
|
const tt = Oe[V];
|
|
53327
53336
|
if (Is(
|
|
@@ -53367,20 +53376,20 @@ ${k.message}` : k.message;
|
|
|
53367
53376
|
});
|
|
53368
53377
|
}
|
|
53369
53378
|
jo($, !0);
|
|
53370
|
-
} else
|
|
53371
|
-
|
|
53379
|
+
} else U.startsWith("execute_workflow:") ? (await Yi(
|
|
53380
|
+
U.replace("execute_workflow:", ""),
|
|
53372
53381
|
I
|
|
53373
|
-
), jo($, !0)) :
|
|
53374
|
-
} catch (
|
|
53375
|
-
if (dy("[handleButtonClick] caught error:",
|
|
53382
|
+
), jo($, !0)) : U.startsWith("fetch:") && (await Yi(U.replace("fetch:", ""), I), o == null || o(U.replace("fetch:", "")), jo($, !0));
|
|
53383
|
+
} catch (U) {
|
|
53384
|
+
if (dy("[handleButtonClick] caught error:", U, "callbacks:", $), (U == null ? void 0 : U.status) === 401) {
|
|
53376
53385
|
await Do({ status: 401 }, !0);
|
|
53377
53386
|
return;
|
|
53378
53387
|
}
|
|
53379
|
-
if (
|
|
53380
|
-
if (Ua(
|
|
53381
|
-
Me(
|
|
53388
|
+
if (U instanceof Zi) {
|
|
53389
|
+
if (Ua(U, $ == null ? void 0 : $.onError)) return;
|
|
53390
|
+
Me(U.errors.length > 1 ? U.errors : U.errors[0], "error");
|
|
53382
53391
|
} else (F = $ == null ? void 0 : $.onError) != null && F.message ? Me($.onError.message, "error") : Me(
|
|
53383
|
-
|
|
53392
|
+
U instanceof Error ? U.message : "An error occurred",
|
|
53384
53393
|
"error"
|
|
53385
53394
|
);
|
|
53386
53395
|
}
|
|
@@ -53480,19 +53489,19 @@ ${k.message}` : k.message;
|
|
|
53480
53489
|
}
|
|
53481
53490
|
if (k.startsWith("{") && k.endsWith("}"))
|
|
53482
53491
|
return String(Dn(k.slice(1, -1)) ?? "");
|
|
53483
|
-
const
|
|
53484
|
-
return /^[A-Za-z_][\w.-]*$/.test(
|
|
53492
|
+
const U = k.trim();
|
|
53493
|
+
return /^[A-Za-z_][\w.-]*$/.test(U) ? String(Dn(U) ?? "") : String(k ?? "");
|
|
53485
53494
|
}, Ha = (k) => k ? k.replace(
|
|
53486
53495
|
/\{\{\s*\[([\w/.-]+)\](?:\.([\w.]+(?:\|\w+)?))?\s*(?:\|\|\s*(.+?))?\}\}/g,
|
|
53487
53496
|
($, I, Q, F) => {
|
|
53488
|
-
let
|
|
53497
|
+
let U, a = Q;
|
|
53489
53498
|
if (Q != null && Q.includes("|")) {
|
|
53490
53499
|
const g = Q.split("|");
|
|
53491
|
-
a = g[0],
|
|
53500
|
+
a = g[0], U = g[1];
|
|
53492
53501
|
}
|
|
53493
53502
|
const f = Dn(a ? `${I}.${a}` : I);
|
|
53494
53503
|
if (f != null) {
|
|
53495
|
-
const g =
|
|
53504
|
+
const g = U ? _i(f, U) : f;
|
|
53496
53505
|
return Array.isArray(g) || typeof g == "object" ? JSON.stringify(g) : String(g);
|
|
53497
53506
|
}
|
|
53498
53507
|
return F !== void 0 ? F.replace(/^["']|["']$/g, "") : "";
|
|
@@ -53500,20 +53509,20 @@ ${k.message}` : k.message;
|
|
|
53500
53509
|
).replace(
|
|
53501
53510
|
/\{\{(\w+(?:\.\w+)*)\s*(?:\|(date|time|datetime|timeago)\s*)?(?:\|\|\s*(.+?))?\}\}/g,
|
|
53502
53511
|
($, I, Q, F) => {
|
|
53503
|
-
const
|
|
53512
|
+
const U = I.split(".");
|
|
53504
53513
|
let a = he;
|
|
53505
|
-
for (const f of
|
|
53514
|
+
for (const f of U) a = a == null ? void 0 : a[f];
|
|
53506
53515
|
if (a !== void 0)
|
|
53507
53516
|
return Q ? _i(a, Q) : String(a);
|
|
53508
53517
|
if (xi.current) {
|
|
53509
53518
|
let f = xi.current;
|
|
53510
|
-
for (const g of
|
|
53519
|
+
for (const g of U) f = f == null ? void 0 : f[g];
|
|
53511
53520
|
if (f !== void 0)
|
|
53512
53521
|
return Q ? _i(f, Q) : String(f);
|
|
53513
53522
|
}
|
|
53514
|
-
if (
|
|
53523
|
+
if (U[0] === "config") {
|
|
53515
53524
|
let f = e == null ? void 0 : e.config;
|
|
53516
|
-
for (const g of
|
|
53525
|
+
for (const g of U.slice(1)) f = f == null ? void 0 : f[g];
|
|
53517
53526
|
if (f !== void 0) return String(f);
|
|
53518
53527
|
}
|
|
53519
53528
|
return F !== void 0 ? F.replace(/^["']|["']$/g, "") : "";
|
|
@@ -53522,16 +53531,16 @@ ${k.message}` : k.message;
|
|
|
53522
53531
|
if (!k) return !0;
|
|
53523
53532
|
if (typeof k == "object")
|
|
53524
53533
|
try {
|
|
53525
|
-
const
|
|
53534
|
+
const U = (f) => {
|
|
53526
53535
|
const g = Date.parse(String(f));
|
|
53527
53536
|
return Number.isNaN(g) ? Number(f) : g;
|
|
53528
53537
|
}, a = {
|
|
53529
53538
|
...he,
|
|
53530
53539
|
...$,
|
|
53531
53540
|
now: () => Date.now(),
|
|
53532
|
-
date:
|
|
53533
|
-
isAfter: (f, g) =>
|
|
53534
|
-
isBefore: (f, g) =>
|
|
53541
|
+
date: U,
|
|
53542
|
+
isAfter: (f, g) => U(f) > U(g),
|
|
53543
|
+
isBefore: (f, g) => U(f) < U(g),
|
|
53535
53544
|
includes: (f, g) => Array.isArray(f) ? f.includes(g) : String(f ?? "").includes(String(g ?? "")),
|
|
53536
53545
|
length: (f) => String(f ?? "").length,
|
|
53537
53546
|
lower: (f) => String(f ?? "").toLowerCase(),
|
|
@@ -53543,14 +53552,14 @@ ${k.message}` : k.message;
|
|
|
53543
53552
|
} catch {
|
|
53544
53553
|
return !1;
|
|
53545
53554
|
}
|
|
53546
|
-
const I = (
|
|
53555
|
+
const I = (U) => {
|
|
53547
53556
|
var f;
|
|
53548
|
-
if (
|
|
53557
|
+
if (U === "auth") {
|
|
53549
53558
|
const g = (f = e == null ? void 0 : e.auth) == null ? void 0 : f.signedIn;
|
|
53550
53559
|
return g === void 0 ? ut : g;
|
|
53551
53560
|
}
|
|
53552
|
-
if (
|
|
53553
|
-
const g =
|
|
53561
|
+
if (U.startsWith("[") && U.includes("]")) {
|
|
53562
|
+
const g = U.indexOf("]"), b = Ge.current[U.slice(1, g)], T = U.slice(g + 1).replace(/^\./, "");
|
|
53554
53563
|
let M;
|
|
53555
53564
|
const B = T.split(".").filter(Boolean);
|
|
53556
53565
|
B[0] === "response" || B[0] === "items" ? M = b : M = (b == null ? void 0 : b.items) ?? b;
|
|
@@ -53561,33 +53570,33 @@ ${k.message}` : k.message;
|
|
|
53561
53570
|
return M;
|
|
53562
53571
|
}
|
|
53563
53572
|
let a = $;
|
|
53564
|
-
for (const g of
|
|
53573
|
+
for (const g of U.split(".")) a = a == null ? void 0 : a[g];
|
|
53565
53574
|
return a;
|
|
53566
53575
|
}, Q = k.trim();
|
|
53567
53576
|
if (Q.includes("||"))
|
|
53568
|
-
return Q.split("||").some((
|
|
53577
|
+
return Q.split("||").some((U) => Ki(U, $));
|
|
53569
53578
|
if (Q.includes("&&"))
|
|
53570
|
-
return Q.split("&&").every((
|
|
53579
|
+
return Q.split("&&").every((U) => Ki(U, $));
|
|
53571
53580
|
if (Q.startsWith("!"))
|
|
53572
53581
|
return !I(Q.slice(1).trim());
|
|
53573
53582
|
const F = Q.match(
|
|
53574
53583
|
/^(\[[^\]]+\](?:\.\w+)*|\w+(?:\.\w+)*)\s*(==|!=|>|<|>=|<=)\s*(.+)$/
|
|
53575
53584
|
);
|
|
53576
53585
|
if (F) {
|
|
53577
|
-
const
|
|
53586
|
+
const U = I(F[1]), a = F[3].trim().replace(/^["']|["']$/g, "");
|
|
53578
53587
|
switch (F[2]) {
|
|
53579
53588
|
case "==":
|
|
53580
|
-
return String(
|
|
53589
|
+
return String(U) === a;
|
|
53581
53590
|
case "!=":
|
|
53582
|
-
return String(
|
|
53591
|
+
return String(U) !== a;
|
|
53583
53592
|
case ">":
|
|
53584
|
-
return Number(
|
|
53593
|
+
return Number(U) > Number(a);
|
|
53585
53594
|
case "<":
|
|
53586
|
-
return Number(
|
|
53595
|
+
return Number(U) < Number(a);
|
|
53587
53596
|
case ">=":
|
|
53588
|
-
return Number(
|
|
53597
|
+
return Number(U) >= Number(a);
|
|
53589
53598
|
case "<=":
|
|
53590
|
-
return Number(
|
|
53599
|
+
return Number(U) <= Number(a);
|
|
53591
53600
|
}
|
|
53592
53601
|
}
|
|
53593
53602
|
return !!I(Q);
|
|
@@ -53600,14 +53609,14 @@ ${k.message}` : k.message;
|
|
|
53600
53609
|
const I = { ...k };
|
|
53601
53610
|
return $.scale !== void 0 && $.scale !== 100 && (I.transform = `scale(${$.scale / 100})`, I.transformOrigin = "center center"), $.spacing !== void 0 && $.spacing !== 0 && (I.margin = `${$.spacing}px`), $.alignment && $.alignment !== "center" && (I.textAlign = $.alignment, $.alignment === "left" ? (I.marginLeft = "0", I.marginRight = "auto") : $.alignment === "right" && (I.marginLeft = "auto", I.marginRight = "0")), $.color && (I.color = $.color), $.background && (I.backgroundColor = $.background), $.borderColor && (I.borderColor = $.borderColor), I;
|
|
53602
53611
|
}, Jh = (k, $, I) => {
|
|
53603
|
-
const Q = I == null ? void 0 : I.componentClass,
|
|
53612
|
+
const Q = I == null ? void 0 : I.componentClass, U = h === k || u && Q && u === Q, a = I ? Dm($, I) : $, f = Lm(
|
|
53604
53613
|
a,
|
|
53605
53614
|
k,
|
|
53606
53615
|
Q
|
|
53607
53616
|
), g = (I == null ? void 0 : I.className) || "";
|
|
53608
53617
|
/\bfont-serif\b/.test(g) && (f.fontFamily = ie.typography.headingFontFamily), /\bfont-sans\b/.test(g) && (f.fontFamily = ie.typography.fontFamily), I != null && I.fieldSpan && I.fieldSpan > 1 && (f.gridColumn = `span ${I.fieldSpan} / span ${I.fieldSpan}`), I != null && I.rawStyle && Object.assign(f, I.rawStyle);
|
|
53609
53618
|
const b = _t === "css-driven" ? { "data-bf-r": `${yn}-${k}` } : {};
|
|
53610
|
-
if (
|
|
53619
|
+
if (U) {
|
|
53611
53620
|
const M = f.boxShadow ? `${f.boxShadow}, ` : "";
|
|
53612
53621
|
return {
|
|
53613
53622
|
"data-component-key": k,
|
|
@@ -53662,32 +53671,32 @@ ${k.message}` : k.message;
|
|
|
53662
53671
|
String(F.gridTemplateColumns || "none")
|
|
53663
53672
|
)), I.textSize.size > 0 && (F.fontSize = g("fontSize", "1rem")), I.borderRadius.size > 0 && (F.borderRadius = g("borderRadius", "0px")), I.padding.p.size > 0 && (F.padding = g("padding", "0px")), I.padding.px.size > 0 && (F.paddingLeft = g("paddingLeft", "0px"), F.paddingRight = g("paddingRight", "0px")), I.padding.py.size > 0 && (F.paddingTop = g("paddingTop", "0px"), F.paddingBottom = g("paddingBottom", "0px")), I.margin.all.size > 0 && (F.margin = g("margin", "0px")), I.margin.t.size > 0 && (F.marginTop = g("marginTop", "0px")), I.margin.r.size > 0 && (F.marginRight = g("marginRight", "0px")), I.margin.b.size > 0 && (F.marginBottom = g("marginBottom", "0px")), I.margin.l.size > 0 && (F.marginLeft = g("marginLeft", "0px")), I.margin.x.size > 0 && (F.marginLeft = g("marginLeft", "0px"), F.marginRight = g("marginRight", "0px")), I.margin.y.size > 0 && (F.marginTop = g("marginTop", "0px"), F.marginBottom = g("marginBottom", "0px")), F;
|
|
53664
53673
|
}
|
|
53665
|
-
const
|
|
53674
|
+
const U = Xt;
|
|
53666
53675
|
if (I.flexDirection.size > 0 && (F.flexDirection = Rt(
|
|
53667
53676
|
I.flexDirection,
|
|
53668
|
-
|
|
53677
|
+
U,
|
|
53669
53678
|
"column"
|
|
53670
|
-
)), I.gap.size > 0 && (F.gap = Rt(I.gap,
|
|
53679
|
+
)), I.gap.size > 0 && (F.gap = Rt(I.gap, U, "0px")), I.width.size > 0 && (F.width = Rt(I.width, U, "auto")), I.minHeight.size > 0 && (F.minHeight = Rt(I.minHeight, U, "0px")), I.alignItems.size > 0 && (F.alignItems = Rt(I.alignItems, U, "stretch")), I.justifyContent.size > 0 && (F.justifyContent = Rt(
|
|
53671
53680
|
I.justifyContent,
|
|
53672
|
-
|
|
53681
|
+
U,
|
|
53673
53682
|
"flex-start"
|
|
53674
|
-
)), I.display.size > 0 && (F.display = Rt(I.display,
|
|
53675
|
-
const f = Rt(I.gridCols,
|
|
53683
|
+
)), I.display.size > 0 && (F.display = Rt(I.display, U, "flex")), I.gridCols.size > 0) {
|
|
53684
|
+
const f = Rt(I.gridCols, U, 1);
|
|
53676
53685
|
F.gridTemplateColumns = `repeat(${f}, minmax(0, 1fr))`;
|
|
53677
53686
|
}
|
|
53678
53687
|
return I.gridTemplateColumns.size > 0 && (F.gridTemplateColumns = Rt(
|
|
53679
53688
|
I.gridTemplateColumns,
|
|
53680
|
-
|
|
53689
|
+
U,
|
|
53681
53690
|
String(F.gridTemplateColumns || "none")
|
|
53682
|
-
)), I.textSize.size > 0 && (F.fontSize = Rt(I.textSize,
|
|
53691
|
+
)), I.textSize.size > 0 && (F.fontSize = Rt(I.textSize, U, "1rem")), I.borderRadius.size > 0 && (F.borderRadius = Rt(I.borderRadius, U, "0px")), I.padding.p.size > 0 && (F.padding = Rt(I.padding.p, U, "0px")), I.padding.px.size > 0 && (F.paddingLeft = Rt(I.padding.px, U, "0px"), F.paddingRight = Rt(I.padding.px, U, "0px")), I.padding.py.size > 0 && (F.paddingTop = Rt(I.padding.py, U, "0px"), F.paddingBottom = Rt(I.padding.py, U, "0px")), I.margin.all.size > 0 && (F.margin = Rt(I.margin.all, U, "0px")), I.margin.t.size > 0 && (F.marginTop = Rt(I.margin.t, U, "0px")), I.margin.r.size > 0 && (F.marginRight = Rt(I.margin.r, U, "0px")), I.margin.b.size > 0 && (F.marginBottom = Rt(I.margin.b, U, "0px")), I.margin.l.size > 0 && (F.marginLeft = Rt(I.margin.l, U, "0px")), I.margin.x.size > 0 && (F.marginLeft = Rt(I.margin.x, U, "0px"), F.marginRight = Rt(I.margin.x, U, "0px")), I.margin.y.size > 0 && (F.marginTop = Rt(I.margin.y, U, "0px"), F.marginBottom = Rt(I.margin.y, U, "0px")), F;
|
|
53683
53692
|
}, ir = _.useRef(/* @__PURE__ */ new Map()), zo = _.useCallback(
|
|
53684
53693
|
async (k) => {
|
|
53685
53694
|
const $ = ir.current.get(k);
|
|
53686
53695
|
if ($) return $;
|
|
53687
|
-
const I = r || localStorage.getItem("token") || "", Q = t == null ? void 0 : t.endpoint, F = R || (typeof Q == "string" ? Q.replace(/\/+$/, "") : "") || "/api",
|
|
53696
|
+
const I = r || localStorage.getItem("token") || "", Q = t == null ? void 0 : t.endpoint, F = R || (typeof Q == "string" ? Q.replace(/\/+$/, "") : "") || "/api", U = `?collection=${encodeURIComponent(k)}`;
|
|
53688
53697
|
for (const a of [
|
|
53689
|
-
`${F}/tenant/schema${
|
|
53690
|
-
`${F}/admin/schema${
|
|
53698
|
+
`${F}/tenant/schema${U}`,
|
|
53699
|
+
`${F}/admin/schema${U}`
|
|
53691
53700
|
])
|
|
53692
53701
|
try {
|
|
53693
53702
|
const f = await fetch(a, {
|
|
@@ -53795,15 +53804,15 @@ ${k.message}` : k.message;
|
|
|
53795
53804
|
"data-bf-scroll-load"
|
|
53796
53805
|
);
|
|
53797
53806
|
if (!Q || Fc.current[Q]) continue;
|
|
53798
|
-
const F = ti.current[Q],
|
|
53799
|
-
if (!
|
|
53807
|
+
const F = ti.current[Q], U = bi.current[Q];
|
|
53808
|
+
if (!U || !(F != null && F.hasMore) || Bs.current[Q])
|
|
53800
53809
|
continue;
|
|
53801
53810
|
Fc.current[Q] = !0;
|
|
53802
53811
|
const a = Wo.current[Q] || 1;
|
|
53803
53812
|
Wo.current[Q] = a + 1;
|
|
53804
53813
|
const f = tf.current[Q];
|
|
53805
53814
|
Cn(
|
|
53806
|
-
|
|
53815
|
+
U,
|
|
53807
53816
|
Q,
|
|
53808
53817
|
a,
|
|
53809
53818
|
F.limit,
|
|
@@ -54028,8 +54037,8 @@ ${k.message}` : k.message;
|
|
|
54028
54037
|
for (const [a, f] of Vn.current)
|
|
54029
54038
|
a.startsWith("modal") && (f(), Vn.current.delete(a), delete yr.current[a]);
|
|
54030
54039
|
}
|
|
54031
|
-
const
|
|
54032
|
-
$ = /* @__PURE__ */ new Set(),
|
|
54040
|
+
const U = F ? Oe == null ? void 0 : Oe[F.id] : void 0;
|
|
54041
|
+
$ = /* @__PURE__ */ new Set(), U && Array.isArray(U == null ? void 0 : U.components) && I(U.components, "modal"), Ds.current = /* @__PURE__ */ new Set([
|
|
54033
54042
|
...ae.current,
|
|
54034
54043
|
...$
|
|
54035
54044
|
]);
|
|
@@ -54048,8 +54057,8 @@ ${k.message}` : k.message;
|
|
|
54048
54057
|
const vr = _.useMemo(() => {
|
|
54049
54058
|
if (!me || _t !== "css-driven") return null;
|
|
54050
54059
|
const k = /* @__PURE__ */ new Map(), $ = (I, Q) => {
|
|
54051
|
-
I.forEach((F,
|
|
54052
|
-
const a = `${Q}-${
|
|
54060
|
+
I.forEach((F, U) => {
|
|
54061
|
+
const a = `${Q}-${U}`;
|
|
54053
54062
|
if (F.className) {
|
|
54054
54063
|
const f = g_(F.className);
|
|
54055
54064
|
if (m_(f)) {
|
|
@@ -54075,10 +54084,10 @@ ${k.message}` : k.message;
|
|
|
54075
54084
|
headers: { Authorization: `Bearer ${k}` }
|
|
54076
54085
|
});
|
|
54077
54086
|
if (!F.ok) return;
|
|
54078
|
-
const { token:
|
|
54079
|
-
if (!
|
|
54087
|
+
const { token: U } = await F.json();
|
|
54088
|
+
if (!U || I) return;
|
|
54080
54089
|
$ = new EventSource(
|
|
54081
|
-
`${Q}${or}/subscribe?token=${encodeURIComponent(
|
|
54090
|
+
`${Q}${or}/subscribe?token=${encodeURIComponent(U)}`
|
|
54082
54091
|
), $.onmessage = (a) => {
|
|
54083
54092
|
try {
|
|
54084
54093
|
const f = JSON.parse(a.data);
|
|
@@ -54175,9 +54184,9 @@ ${k.message}` : k.message;
|
|
|
54175
54184
|
Uc(Ji);
|
|
54176
54185
|
for (const k of rf) Uc(k.components);
|
|
54177
54186
|
const Ir = rf.filter((k) => Vc.has(k.id) ? !1 : k.sceneIds === "*" ? !0 : Array.isArray(k.sceneIds) ? k.sceneIds.includes("*") || k.sceneIds.includes(Tt) : !1), Xa = Cr.map((k) => {
|
|
54178
|
-
var Q, F,
|
|
54187
|
+
var Q, F, U;
|
|
54179
54188
|
const $ = Ao[k.id], I = k.sourceSceneId ? (Q = $ == null ? void 0 : $.steps) == null ? void 0 : Q.find((a) => a.id === k.sourceSceneId) : (F = $ == null ? void 0 : $.steps) == null ? void 0 : F.find((a) => a.type === "render_scene");
|
|
54180
|
-
return (
|
|
54189
|
+
return (U = I == null ? void 0 : I.config) != null && U.components ? { ...k, components: I.config.components } : null;
|
|
54181
54190
|
}).filter(Boolean);
|
|
54182
54191
|
je = [...Ji], (Zo = (Ws = ei.layout) == null ? void 0 : Ws.header) != null && Zo.length ? je.splice(0, 0, ...ei.layout.header) : (Kc = (Yc = te == null ? void 0 : te.layout) == null ? void 0 : Yc.header) != null && Kc.length && je.splice(0, 0, ...te.layout.header);
|
|
54183
54192
|
for (const k of Ir || []) {
|
|
@@ -54186,17 +54195,17 @@ ${k.message}` : k.message;
|
|
|
54186
54195
|
if (k.targetKey) {
|
|
54187
54196
|
const Q = k.targetKey.split("-").filter(Boolean).map(Number);
|
|
54188
54197
|
if (Q.length > 0) {
|
|
54189
|
-
let F = je,
|
|
54198
|
+
let F = je, U = Q[0];
|
|
54190
54199
|
for (let f = 0; f < Q.length - 1; f++) {
|
|
54191
54200
|
const g = F[Q[f]];
|
|
54192
54201
|
if (!g || !Array.isArray(g.children)) break;
|
|
54193
|
-
F = g.children,
|
|
54202
|
+
F = g.children, U = Q[f + 1];
|
|
54194
54203
|
}
|
|
54195
54204
|
const a = k.targetPosition || "before";
|
|
54196
54205
|
if (a === "inside") {
|
|
54197
|
-
const f = F[
|
|
54206
|
+
const f = F[U];
|
|
54198
54207
|
f && (Array.isArray(f.children) || (f.children = []), f.children.unshift(...$));
|
|
54199
|
-
} else a === "after" ? F.splice(
|
|
54208
|
+
} else a === "after" ? F.splice(U + 1, 0, ...$) : F.splice(U, 0, ...$);
|
|
54200
54209
|
continue;
|
|
54201
54210
|
}
|
|
54202
54211
|
}
|
|
@@ -54207,15 +54216,15 @@ ${k.message}` : k.message;
|
|
|
54207
54216
|
if (k.targetKey) {
|
|
54208
54217
|
const $ = k.targetKey.split("-").filter(Boolean).map(Number);
|
|
54209
54218
|
let I = je, Q = $[0];
|
|
54210
|
-
for (let
|
|
54211
|
-
const a = I[$[
|
|
54219
|
+
for (let U = 0; U < $.length - 1; U++) {
|
|
54220
|
+
const a = I[$[U]];
|
|
54212
54221
|
if (!a || !Array.isArray(a.children)) break;
|
|
54213
|
-
I = a.children, Q = $[
|
|
54222
|
+
I = a.children, Q = $[U + 1];
|
|
54214
54223
|
}
|
|
54215
54224
|
const F = k.targetPosition || "before";
|
|
54216
54225
|
if (F === "inside") {
|
|
54217
|
-
const
|
|
54218
|
-
|
|
54226
|
+
const U = I[Q];
|
|
54227
|
+
U && (Array.isArray(U.children) || (U.children = []), U.children.unshift(...k.components));
|
|
54219
54228
|
} else F === "after" ? I.splice(Q + 1, 0, ...k.components) : I.splice(Q, 0, ...k.components);
|
|
54220
54229
|
continue;
|
|
54221
54230
|
}
|
|
@@ -54347,7 +54356,7 @@ ${k.message}` : k.message;
|
|
|
54347
54356
|
isAuthenticated: ut,
|
|
54348
54357
|
colorMode: ie.colorMode,
|
|
54349
54358
|
runtimeIssues: Vi,
|
|
54350
|
-
enabled:
|
|
54359
|
+
enabled: q,
|
|
54351
54360
|
navigateToScene: Qr,
|
|
54352
54361
|
openModal: (k) => {
|
|
54353
54362
|
const $ = Oe[k];
|
|
@@ -54385,7 +54394,7 @@ ${k.message}` : k.message;
|
|
|
54385
54394
|
return _.createElement(
|
|
54386
54395
|
_.Fragment,
|
|
54387
54396
|
null,
|
|
54388
|
-
|
|
54397
|
+
H("style", { key: "css-reset" }, Ya),
|
|
54389
54398
|
qo,
|
|
54390
54399
|
Wm,
|
|
54391
54400
|
Ja,
|