@gpustack/core-ui 1.0.6 → 1.0.7
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/{editor-wrap-DFbXkvlV.js → editor-wrap-DBTG5A-7.js} +1 -1
- package/dist/{highlight-code-BGo6UgwT.js → highlight-code-C6xOjDyX.js} +1 -1
- package/dist/index.es.js +749 -743
- package/dist/markdown.es.js +1 -1
- package/dist/src/lib/components/form/textarea.d.ts +5 -1
- package/dist/src/lib/components/form/wrapper/index.d.ts +2 -2
- package/dist/src/lib/components/table/components/layout.d.ts +2 -2
- package/dist/src/lib/context/CoreUIContext.d.ts +9 -1
- package/dist/src/lib/hooks/index.d.ts +3 -1
- package/dist/src/lib/hooks/useCurrentUser.d.ts +3 -0
- package/dist/src/lib/hooks/useTableFetch.d.ts +3 -0
- package/dist/{useIntl-BZWVSOXz.js → useIntl-Ch0EABFx.js} +10 -4
- package/dist/yaml-editor.es.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as e, r as t, t as n } from "./rolldown-runtime-BETGA6I9.js";
|
|
2
|
-
import { i as r, n as i, r as a, t as o } from "./useIntl-
|
|
2
|
+
import { i as r, n as i, r as a, t as o } from "./useIntl-Ch0EABFx.js";
|
|
3
3
|
import { t as s } from "./lodash-k2j6dYGv.js";
|
|
4
|
-
import { a as c, i as l, n as u, o as d, r as f, t as p } from "./highlight-code-
|
|
4
|
+
import { a as c, i as l, n as u, o as d, r as f, t as p } from "./highlight-code-C6xOjDyX.js";
|
|
5
5
|
import { A as m, _ as h, a as g, c as _, f as v, g as y, n as b, s as x, y as S } from "./utils-CAmt8TVf.js";
|
|
6
|
-
import { t as C } from "./editor-wrap-
|
|
6
|
+
import { t as C } from "./editor-wrap-DBTG5A-7.js";
|
|
7
7
|
import w from "axios";
|
|
8
8
|
import * as T from "react";
|
|
9
9
|
import E, { PureComponent as D, createContext as O, createElement as k, forwardRef as A, isValidElement as j, memo as M, useCallback as N, useContext as P, useEffect as F, useImperativeHandle as I, useLayoutEffect as L, useMemo as R, useRef as z, useState as B, version as ee } from "react";
|
|
@@ -3302,8 +3302,14 @@ function fa() {
|
|
|
3302
3302
|
};
|
|
3303
3303
|
}
|
|
3304
3304
|
//#endregion
|
|
3305
|
-
//#region src/lib/
|
|
3306
|
-
var pa =
|
|
3305
|
+
//#region src/lib/hooks/useCurrentUser.ts
|
|
3306
|
+
var pa = () => {
|
|
3307
|
+
let { hooks: e } = i();
|
|
3308
|
+
return e.useCurrentUser();
|
|
3309
|
+
}, ma = ((e) => {
|
|
3310
|
+
let { hooks: t } = i();
|
|
3311
|
+
return t.useTableFetch(e);
|
|
3312
|
+
}), ha = J.div`
|
|
3307
3313
|
padding: 8px 12px;
|
|
3308
3314
|
padding-right: 4px;
|
|
3309
3315
|
.title {
|
|
@@ -3321,11 +3327,11 @@ var pa = J.div`
|
|
|
3321
3327
|
gap: 8px;
|
|
3322
3328
|
justify-content: flex-end;
|
|
3323
3329
|
}
|
|
3324
|
-
`,
|
|
3330
|
+
`, ga = J.div`
|
|
3325
3331
|
font-weight: 500;
|
|
3326
3332
|
margin-bottom: 8px;
|
|
3327
3333
|
margin-top: 4px;
|
|
3328
|
-
`,
|
|
3334
|
+
`, _a = J.span`
|
|
3329
3335
|
color: var(--ant-color-text-secondary);
|
|
3330
3336
|
> span {
|
|
3331
3337
|
display: flex;
|
|
@@ -3336,7 +3342,7 @@ var pa = J.div`
|
|
|
3336
3342
|
display: none;
|
|
3337
3343
|
}
|
|
3338
3344
|
}
|
|
3339
|
-
`,
|
|
3345
|
+
`, va = (e) => {
|
|
3340
3346
|
let t = o(), { localStore: n } = i(), { readColumnSettings: r, writeColumnSettings: a } = n || {}, { tableName: s, contentHeight: c, width: u = 420, columns: d, selectedColumns: f, defaultSelectedColumns: p, grouped: m, onReset: h, onChange: g, fixedColumns: _ } = e, [v, y] = E.useState(!1), [b, x] = E.useState(p || []);
|
|
3341
3347
|
E.useEffect(() => {
|
|
3342
3348
|
v && x(f ?? p ?? []);
|
|
@@ -3363,7 +3369,7 @@ var pa = J.div`
|
|
|
3363
3369
|
trigger: "click",
|
|
3364
3370
|
arrow: !1,
|
|
3365
3371
|
placement: "bottomRight",
|
|
3366
|
-
content: /* @__PURE__ */ U(
|
|
3372
|
+
content: /* @__PURE__ */ U(ha, { children: [
|
|
3367
3373
|
!m && /* @__PURE__ */ H("div", {
|
|
3368
3374
|
className: "title",
|
|
3369
3375
|
children: t.formatMessage({ id: "benchmark.table.columnSettings" })
|
|
@@ -3374,13 +3380,13 @@ var pa = J.div`
|
|
|
3374
3380
|
children: /* @__PURE__ */ H(G.Group, {
|
|
3375
3381
|
value: b,
|
|
3376
3382
|
onChange: C,
|
|
3377
|
-
children: /* @__PURE__ */ H(V, { children: m ? d.map((e, t) => /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H(
|
|
3383
|
+
children: /* @__PURE__ */ H(V, { children: m ? d.map((e, t) => /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H(ga, { children: e.title }), /* @__PURE__ */ H(St, { children: e.children?.map((e) => /* @__PURE__ */ H(ct, {
|
|
3378
3384
|
span: 12,
|
|
3379
3385
|
children: /* @__PURE__ */ H(G, {
|
|
3380
3386
|
disabled: _?.includes(e.dataIndex || ""),
|
|
3381
3387
|
value: e.dataIndex,
|
|
3382
3388
|
style: { marginBottom: 8 },
|
|
3383
|
-
children: /* @__PURE__ */ H(
|
|
3389
|
+
children: /* @__PURE__ */ H(_a, { children: e.title })
|
|
3384
3390
|
})
|
|
3385
3391
|
}, e.dataIndex)) })] }, t)) : /* @__PURE__ */ H(St, { children: d.map((e) => /* @__PURE__ */ H(ct, {
|
|
3386
3392
|
span: 12,
|
|
@@ -3388,7 +3394,7 @@ var pa = J.div`
|
|
|
3388
3394
|
disabled: _?.includes(e.dataIndex || ""),
|
|
3389
3395
|
value: e.dataIndex,
|
|
3390
3396
|
style: { marginBottom: 8 },
|
|
3391
|
-
children: /* @__PURE__ */ H(
|
|
3397
|
+
children: /* @__PURE__ */ H(_a, { children: e.title })
|
|
3392
3398
|
})
|
|
3393
3399
|
}, e.dataIndex)) }) })
|
|
3394
3400
|
})
|
|
@@ -3438,25 +3444,25 @@ var pa = J.div`
|
|
|
3438
3444
|
})
|
|
3439
3445
|
})
|
|
3440
3446
|
});
|
|
3441
|
-
},
|
|
3442
|
-
let e = P(
|
|
3447
|
+
}, ya = O({}), ba = () => {
|
|
3448
|
+
let e = P(ya);
|
|
3443
3449
|
if (!e) throw Error("useWrapperContext must be used within a WrapperProvider");
|
|
3444
3450
|
return e;
|
|
3445
|
-
},
|
|
3451
|
+
}, xa = J.div`
|
|
3446
3452
|
flex: 1;
|
|
3447
3453
|
display: flex;
|
|
3448
3454
|
flex-direction: column;
|
|
3449
3455
|
justify-content: space-between;
|
|
3450
3456
|
position: relative;
|
|
3451
3457
|
width: 100%;
|
|
3452
|
-
`,
|
|
3458
|
+
`, Sa = J.div`
|
|
3453
3459
|
flex: 1;
|
|
3454
3460
|
position: relative;
|
|
3455
3461
|
overflow-y: auto;
|
|
3456
|
-
`,
|
|
3462
|
+
`, Ca = J.div`
|
|
3457
3463
|
padding-block: 0;
|
|
3458
3464
|
background-color: var(--ant-color-bg-elevated);
|
|
3459
|
-
`,
|
|
3465
|
+
`, wa = ({ children: e, footer: t, maxHeight: n, styles: r = {} }) => {
|
|
3460
3466
|
let i = E.useRef(null), a = E.useRef(null), o = E.useRef(null), { initialize: s, instance: c, scrollEventElement: l, scrollToBottom: u, scrollToTarget: f, getScrollElementScrollableHeight: p } = d({ options: { scrollbars: { autoHide: "move" } } });
|
|
3461
3467
|
E.useEffect(() => {
|
|
3462
3468
|
i.current && s(i.current);
|
|
@@ -3464,7 +3470,7 @@ var pa = J.div`
|
|
|
3464
3470
|
let m = N((e) => {
|
|
3465
3471
|
o.current.style.paddingBottom = `${e}px`;
|
|
3466
3472
|
}, []);
|
|
3467
|
-
return /* @__PURE__ */ H(
|
|
3473
|
+
return /* @__PURE__ */ H(ya.Provider, {
|
|
3468
3474
|
value: {
|
|
3469
3475
|
scroller: i,
|
|
3470
3476
|
osInstance: c,
|
|
@@ -3474,12 +3480,12 @@ var pa = J.div`
|
|
|
3474
3480
|
scrollToTarget: f,
|
|
3475
3481
|
setSScrollContentPaddingBottom: m
|
|
3476
3482
|
},
|
|
3477
|
-
children: /* @__PURE__ */ U(
|
|
3483
|
+
children: /* @__PURE__ */ U(xa, {
|
|
3478
3484
|
style: {
|
|
3479
3485
|
height: n || "100%",
|
|
3480
3486
|
...r.wrapper
|
|
3481
3487
|
},
|
|
3482
|
-
children: [/* @__PURE__ */ H(
|
|
3488
|
+
children: [/* @__PURE__ */ H(Sa, {
|
|
3483
3489
|
ref: i,
|
|
3484
3490
|
style: {
|
|
3485
3491
|
padding: "16px 24px",
|
|
@@ -3489,25 +3495,25 @@ var pa = J.div`
|
|
|
3489
3495
|
ref: o,
|
|
3490
3496
|
children: e
|
|
3491
3497
|
})
|
|
3492
|
-
}), t && /* @__PURE__ */ H(
|
|
3498
|
+
}), t && /* @__PURE__ */ H(Ca, {
|
|
3493
3499
|
ref: a,
|
|
3494
3500
|
children: t
|
|
3495
3501
|
})]
|
|
3496
3502
|
})
|
|
3497
3503
|
});
|
|
3498
|
-
},
|
|
3504
|
+
}, Ta = {
|
|
3499
3505
|
color: "var(--color-white-tertiary)",
|
|
3500
3506
|
itemColorHover: "var(--color-white-secondary)",
|
|
3501
3507
|
itemSelectedColor: "var(--color-white-primary)",
|
|
3502
3508
|
thumbBgColor: "var(--color-white-primary)",
|
|
3503
3509
|
fontWeight: 400
|
|
3504
|
-
},
|
|
3510
|
+
}, Ea = {
|
|
3505
3511
|
color: "var(--ant-segmented-item-color)",
|
|
3506
3512
|
itemColorHover: "var(--ant-segmented-item-hover-color)",
|
|
3507
3513
|
itemSelectedColor: "var(--ant-segmented-item-selected-color)",
|
|
3508
3514
|
thumbBgColor: "var(--ant-color-primary)",
|
|
3509
3515
|
fontWeight: 500
|
|
3510
|
-
},
|
|
3516
|
+
}, Da = J.div`
|
|
3511
3517
|
.ant-segmented.segment-line {
|
|
3512
3518
|
padding: 0;
|
|
3513
3519
|
background-color: transparent;
|
|
@@ -3569,12 +3575,12 @@ var pa = J.div`
|
|
|
3569
3575
|
display: none;
|
|
3570
3576
|
}
|
|
3571
3577
|
}
|
|
3572
|
-
`,
|
|
3578
|
+
`, Oa = (e) => {
|
|
3573
3579
|
let { height: t = 32, size: n = "small", options: r = [], className: i = "segment-line", theme: a = "dark", showTitle: o = !1, ...s } = e;
|
|
3574
|
-
return /* @__PURE__ */ H(
|
|
3580
|
+
return /* @__PURE__ */ H(Da, {
|
|
3575
3581
|
className: o ? "with-title" : "",
|
|
3576
3582
|
$height: t,
|
|
3577
|
-
$theme: a === "dark" ?
|
|
3583
|
+
$theme: a === "dark" ? Ta : Ea,
|
|
3578
3584
|
children: /* @__PURE__ */ H(Ct, {
|
|
3579
3585
|
...s,
|
|
3580
3586
|
size: n,
|
|
@@ -3582,17 +3588,17 @@ var pa = J.div`
|
|
|
3582
3588
|
className: i
|
|
3583
3589
|
})
|
|
3584
3590
|
});
|
|
3585
|
-
},
|
|
3591
|
+
}, ka = J.div`
|
|
3586
3592
|
width: 100%;
|
|
3587
3593
|
padding-inline: 12px 10px;
|
|
3588
3594
|
display: flex;
|
|
3589
3595
|
align-items: center;
|
|
3590
3596
|
justify-content: space-between;
|
|
3591
3597
|
background-color: var(--color-editor-header-bg);
|
|
3592
|
-
`,
|
|
3598
|
+
`, Aa = (e) => {
|
|
3593
3599
|
let { code: t, copyText: n = "", defaultValue: r, options: i = [], headerHeight: a = 40, height: o = 380, showTitle: s = !1, lang: c, onChange: l } = e || {}, [d, f] = E.useState(r || "");
|
|
3594
3600
|
return /* @__PURE__ */ H(C, {
|
|
3595
|
-
header: /* @__PURE__ */ U(
|
|
3601
|
+
header: /* @__PURE__ */ U(ka, { children: [/* @__PURE__ */ H(Oa, {
|
|
3596
3602
|
height: a,
|
|
3597
3603
|
defaultValue: r,
|
|
3598
3604
|
value: d,
|
|
@@ -3615,22 +3621,22 @@ var pa = J.div`
|
|
|
3615
3621
|
copyable: !1
|
|
3616
3622
|
})
|
|
3617
3623
|
});
|
|
3618
|
-
},
|
|
3624
|
+
}, ja = {
|
|
3619
3625
|
"content-wrapper": "style-module__content-wrapper___Iy8gK",
|
|
3620
3626
|
content: "style-module__content___HqnAN",
|
|
3621
3627
|
title: "style-module__title___o8-uH"
|
|
3622
|
-
},
|
|
3623
|
-
className:
|
|
3628
|
+
}, Ma = ({ children: e, title: t = !1, titleStyle: n, contentStyle: r }) => /* @__PURE__ */ U("div", {
|
|
3629
|
+
className: ja["content-wrapper"],
|
|
3624
3630
|
children: [t && /* @__PURE__ */ H("div", {
|
|
3625
|
-
className:
|
|
3631
|
+
className: ja.title,
|
|
3626
3632
|
style: { ...n },
|
|
3627
3633
|
children: t
|
|
3628
3634
|
}), /* @__PURE__ */ H("div", {
|
|
3629
|
-
className:
|
|
3635
|
+
className: ja.content,
|
|
3630
3636
|
style: { ...r },
|
|
3631
3637
|
children: e
|
|
3632
3638
|
})]
|
|
3633
|
-
}),
|
|
3639
|
+
}), Na = zt(({ css: e }) => ({
|
|
3634
3640
|
"delete-modal-content": e`
|
|
3635
3641
|
display: flex;
|
|
3636
3642
|
font-size: var(--font-size-middle);
|
|
@@ -3657,7 +3663,7 @@ var pa = J.div`
|
|
|
3657
3663
|
margin-top: 8px;
|
|
3658
3664
|
}
|
|
3659
3665
|
`
|
|
3660
|
-
})),
|
|
3666
|
+
})), Pa = J.div`
|
|
3661
3667
|
margin-top: 20px;
|
|
3662
3668
|
margin-left: 30px;
|
|
3663
3669
|
display: flex;
|
|
@@ -3667,8 +3673,8 @@ var pa = J.div`
|
|
|
3667
3673
|
font-weight: 700;
|
|
3668
3674
|
color: var(--ant-color-warning);
|
|
3669
3675
|
}
|
|
3670
|
-
`,
|
|
3671
|
-
let n = o(), { styles: r } =
|
|
3676
|
+
`, Fa = A((e, t) => {
|
|
3677
|
+
let n = o(), { styles: r } = Na(), { saveScrollHeight: i, restoreScrollHeight: a } = Mi(), [s, c] = B(!1), [l, u] = B({ checked: !1 }), [d, f] = B(!1), [p, m] = B({}), h = (e) => {
|
|
3672
3678
|
i(), m(e), u({ checked: e.checkConfig?.defautlChecked || !1 }), c(!0);
|
|
3673
3679
|
}, g = () => {
|
|
3674
3680
|
c(!1), a();
|
|
@@ -3728,7 +3734,7 @@ var pa = J.div`
|
|
|
3728
3734
|
name: p.name
|
|
3729
3735
|
}) : "" }
|
|
3730
3736
|
}),
|
|
3731
|
-
p.checkConfig && /* @__PURE__ */ H(
|
|
3737
|
+
p.checkConfig && /* @__PURE__ */ H(Pa, { children: /* @__PURE__ */ H(G, {
|
|
3732
3738
|
checked: l.checked,
|
|
3733
3739
|
onChange: (e) => u({ checked: e.target.checked }),
|
|
3734
3740
|
children: /* @__PURE__ */ H("span", {
|
|
@@ -3738,16 +3744,16 @@ var pa = J.div`
|
|
|
3738
3744
|
}) })
|
|
3739
3745
|
]
|
|
3740
3746
|
});
|
|
3741
|
-
}),
|
|
3747
|
+
}), Ia = { "divider-line": "index-module__divider-line___W2S2g" }, La = () => /* @__PURE__ */ H("div", { className: Ia["divider-line"] }), Ra = J.div`
|
|
3742
3748
|
display: flex;
|
|
3743
3749
|
align-items: center;
|
|
3744
3750
|
flex-wrap: wrap;
|
|
3745
3751
|
.title {
|
|
3746
3752
|
margin-right: 8px;
|
|
3747
3753
|
}
|
|
3748
|
-
`,
|
|
3754
|
+
`, za = ({ link: e, title: t }) => {
|
|
3749
3755
|
let n = o();
|
|
3750
|
-
return /* @__PURE__ */ U(
|
|
3756
|
+
return /* @__PURE__ */ U(Ra, { children: [t && /* @__PURE__ */ H("span", {
|
|
3751
3757
|
className: "title",
|
|
3752
3758
|
children: t
|
|
3753
3759
|
}), /* @__PURE__ */ U(W, {
|
|
@@ -3761,7 +3767,7 @@ var pa = J.div`
|
|
|
3761
3767
|
className: "font-size-14"
|
|
3762
3768
|
})]
|
|
3763
3769
|
})] });
|
|
3764
|
-
},
|
|
3770
|
+
}, Ba = { middle: "index-module__middle___pMpZ3" }, Va = ({ items: e, size: t = "middle", trigger: n = ["hover"], showText: r, disabled: i, variant: a, color: s, extra: c, onSelect: l }) => {
|
|
3765
3771
|
let u = X.default.head(e), d = o(), f = (t) => {
|
|
3766
3772
|
let n = X.default.find(e, { key: t.key });
|
|
3767
3773
|
l(t.key, n);
|
|
@@ -3772,7 +3778,7 @@ var pa = J.div`
|
|
|
3772
3778
|
return e?.length ? /* @__PURE__ */ H(V, { children: e?.length === 1 ? /* @__PURE__ */ H(q, {
|
|
3773
3779
|
title: d.formatMessage({ id: u?.label }),
|
|
3774
3780
|
children: /* @__PURE__ */ H(W, {
|
|
3775
|
-
className:
|
|
3781
|
+
className: Ba[t],
|
|
3776
3782
|
icon: u?.icon,
|
|
3777
3783
|
size: t,
|
|
3778
3784
|
...u?.props,
|
|
@@ -3781,7 +3787,7 @@ var pa = J.div`
|
|
|
3781
3787
|
}) : /* @__PURE__ */ U(Dt.Compact, { children: [/* @__PURE__ */ H(V, { children: r ? /* @__PURE__ */ U(W, {
|
|
3782
3788
|
...u?.props,
|
|
3783
3789
|
disabled: u?.disabled || i,
|
|
3784
|
-
className:
|
|
3790
|
+
className: Ba[t],
|
|
3785
3791
|
onClick: p,
|
|
3786
3792
|
size: t,
|
|
3787
3793
|
icon: u?.icon,
|
|
@@ -3792,7 +3798,7 @@ var pa = J.div`
|
|
|
3792
3798
|
title: d.formatMessage({ id: u?.label }),
|
|
3793
3799
|
children: /* @__PURE__ */ H(W, {
|
|
3794
3800
|
...u?.props,
|
|
3795
|
-
className:
|
|
3801
|
+
className: Ba[t],
|
|
3796
3802
|
onClick: p,
|
|
3797
3803
|
size: t,
|
|
3798
3804
|
icon: u?.icon,
|
|
@@ -3819,15 +3825,15 @@ var pa = J.div`
|
|
|
3819
3825
|
size: t,
|
|
3820
3826
|
variant: a,
|
|
3821
3827
|
color: "default",
|
|
3822
|
-
className:
|
|
3828
|
+
className: Ba[t]
|
|
3823
3829
|
}, "menu")
|
|
3824
3830
|
})] }) }) : /* @__PURE__ */ H("span", {});
|
|
3825
|
-
},
|
|
3831
|
+
}, Ha = ({ schema: e, onSubmit: t }) => /* @__PURE__ */ H(V, { children: /* @__PURE__ */ H(K, {
|
|
3826
3832
|
form: K.useFormInstance(),
|
|
3827
3833
|
onFinish: (e) => {
|
|
3828
3834
|
t(e);
|
|
3829
3835
|
}
|
|
3830
|
-
}) }),
|
|
3836
|
+
}) }), Ua = (e) => {
|
|
3831
3837
|
let { required: t, description: n, label: r, labelExtra: i } = e || {};
|
|
3832
3838
|
return r ? /* @__PURE__ */ U("span", {
|
|
3833
3839
|
className: "label-text",
|
|
@@ -3850,7 +3856,7 @@ var pa = J.div`
|
|
|
3850
3856
|
})] })
|
|
3851
3857
|
}), i]
|
|
3852
3858
|
}) : null;
|
|
3853
|
-
},
|
|
3859
|
+
}, Wa = J.div`
|
|
3854
3860
|
position: relative;
|
|
3855
3861
|
padding: 14px;
|
|
3856
3862
|
padding-top: 34px;
|
|
@@ -3866,16 +3872,16 @@ var pa = J.div`
|
|
|
3866
3872
|
top: 12px;
|
|
3867
3873
|
color: var(--ant-color-text-tertiary);
|
|
3868
3874
|
}
|
|
3869
|
-
`,
|
|
3875
|
+
`, Ga = J.div`
|
|
3870
3876
|
margin-top: 8px;
|
|
3871
|
-
`,
|
|
3877
|
+
`, Ka = ({ required: e, children: t, label: n, description: r, labelExtra: i, onAdd: a, btnText: s, disabled: c, button: l, styles: u }) => {
|
|
3872
3878
|
let d = o();
|
|
3873
|
-
return /* @__PURE__ */ U(
|
|
3879
|
+
return /* @__PURE__ */ U(Wa, {
|
|
3874
3880
|
style: u?.wrapper,
|
|
3875
3881
|
children: [
|
|
3876
3882
|
n && /* @__PURE__ */ H("span", {
|
|
3877
3883
|
className: "label",
|
|
3878
|
-
children: /* @__PURE__ */ H(
|
|
3884
|
+
children: /* @__PURE__ */ H(Ua, {
|
|
3879
3885
|
required: e,
|
|
3880
3886
|
label: n,
|
|
3881
3887
|
description: r,
|
|
@@ -3883,7 +3889,7 @@ var pa = J.div`
|
|
|
3883
3889
|
})
|
|
3884
3890
|
}),
|
|
3885
3891
|
t,
|
|
3886
|
-
!c && /* @__PURE__ */ H(
|
|
3892
|
+
!c && /* @__PURE__ */ H(Ga, { children: l || /* @__PURE__ */ U(W, {
|
|
3887
3893
|
variant: "filled",
|
|
3888
3894
|
color: "default",
|
|
3889
3895
|
block: !0,
|
|
@@ -3893,19 +3899,19 @@ var pa = J.div`
|
|
|
3893
3899
|
}) })
|
|
3894
3900
|
]
|
|
3895
3901
|
});
|
|
3896
|
-
}, { Link:
|
|
3902
|
+
}, { Link: qa } = Pt, Ja = J.div`
|
|
3897
3903
|
display: flex;
|
|
3898
3904
|
justify-content: center;
|
|
3899
3905
|
align-items: center;
|
|
3900
3906
|
padding-block: 12px;
|
|
3901
|
-
`,
|
|
3907
|
+
`, Ya = () => /* @__PURE__ */ H(Ja, { children: /* @__PURE__ */ H(qa, { children: /* @__PURE__ */ H(ke, {}) }) }), Xa = ({ loading: e, notFoundContent: t }) => {
|
|
3902
3908
|
let n = o();
|
|
3903
|
-
return e ? /* @__PURE__ */ H(
|
|
3909
|
+
return e ? /* @__PURE__ */ H(Ya, {}) : /* @__PURE__ */ H(Ja, { children: t || /* @__PURE__ */ H(pt, {
|
|
3904
3910
|
style: { marginBlock: 0 },
|
|
3905
3911
|
description: n.formatMessage({ id: "common.data.empty" }),
|
|
3906
3912
|
image: pt.PRESENTED_IMAGE_SIMPLE
|
|
3907
3913
|
}) });
|
|
3908
|
-
},
|
|
3914
|
+
}, Za = "transparent", Qa = J.div`
|
|
3909
3915
|
position: relative;
|
|
3910
3916
|
display: flex;
|
|
3911
3917
|
justify-content: flex-start;
|
|
@@ -3964,7 +3970,7 @@ var pa = J.div`
|
|
|
3964
3970
|
}
|
|
3965
3971
|
}
|
|
3966
3972
|
}
|
|
3967
|
-
`,
|
|
3973
|
+
`, $a = J.div.attrs((e) => ({ className: (0, Y.default)({
|
|
3968
3974
|
__wrapper__: !0,
|
|
3969
3975
|
"no-wrapper-style": e.$noWrapperStyle,
|
|
3970
3976
|
"no-label": e.$nolabel
|
|
@@ -3987,7 +3993,7 @@ var pa = J.div`
|
|
|
3987
3993
|
&.no-label {
|
|
3988
3994
|
padding-block: 0;
|
|
3989
3995
|
}
|
|
3990
|
-
`,
|
|
3996
|
+
`, eo = J.div.attrs((e) => ({ className: (0, Y.default)({
|
|
3991
3997
|
"isfoucs-has-value": e.$isFocus,
|
|
3992
3998
|
"blur-no-value": !e.$isFocus,
|
|
3993
3999
|
"has-prefix": e.$hasPrefix
|
|
@@ -4015,15 +4021,15 @@ var pa = J.div`
|
|
|
4015
4021
|
&.has-prefix {
|
|
4016
4022
|
top: 10px !important;
|
|
4017
4023
|
}
|
|
4018
|
-
`,
|
|
4024
|
+
`, to = J.div.attrs({ className: "__inner__" })`
|
|
4019
4025
|
width: 100%;
|
|
4020
4026
|
display: flex;
|
|
4021
|
-
`,
|
|
4027
|
+
`, no = J.div`
|
|
4022
4028
|
position: absolute;
|
|
4023
4029
|
right: 12px;
|
|
4024
4030
|
top: 8px;
|
|
4025
4031
|
z-index: 10;
|
|
4026
|
-
`,
|
|
4032
|
+
`, ro = J.div`
|
|
4027
4033
|
position: relative;
|
|
4028
4034
|
border-radius: 0 var(--ant-border-radius) var(--ant-border-radius) 0;
|
|
4029
4035
|
color: var(--ant-color-text-tertiary);
|
|
@@ -4033,9 +4039,9 @@ var pa = J.div`
|
|
|
4033
4039
|
display: flex;
|
|
4034
4040
|
align-items: center;
|
|
4035
4041
|
background-color: var(--ant-color-fill-secondary);
|
|
4036
|
-
`,
|
|
4042
|
+
`, io = ({ children: e, label: t, isFocus: n, status: r, className: i, disabled: a, classList: o, description: s, required: c, extra: l, variant: u, addAfter: d, hasPrefix: f, noWrapperStyle: p, labelExtra: m, onClick: h }) => {
|
|
4037
4043
|
let { token: g } = Rt.useToken();
|
|
4038
|
-
return /* @__PURE__ */ U(
|
|
4044
|
+
return /* @__PURE__ */ U(Qa, {
|
|
4039
4045
|
className: (0, Y.default)(r ? `validate-status-${r}` : "", i, o, u, {
|
|
4040
4046
|
"seal-input-wrapper-addafter": d,
|
|
4041
4047
|
"seal-input-wrapper-disabled": a
|
|
@@ -4053,29 +4059,29 @@ var pa = J.div`
|
|
|
4053
4059
|
"--ant-input-active-shadow": `0 0 0 2px ${g.controlOutline}`,
|
|
4054
4060
|
"--ant-input-active-bg": g.colorBgContainer
|
|
4055
4061
|
},
|
|
4056
|
-
children: [/* @__PURE__ */ U(
|
|
4062
|
+
children: [/* @__PURE__ */ U($a, {
|
|
4057
4063
|
$noWrapperStyle: p,
|
|
4058
4064
|
$nolabel: !t,
|
|
4059
4065
|
onClick: h,
|
|
4060
4066
|
children: [
|
|
4061
|
-
t && /* @__PURE__ */ H(
|
|
4067
|
+
t && /* @__PURE__ */ H(eo, {
|
|
4062
4068
|
$isFocus: n,
|
|
4063
4069
|
$hasPrefix: f,
|
|
4064
4070
|
onClick: h,
|
|
4065
4071
|
className: "label-wrapper",
|
|
4066
|
-
children: /* @__PURE__ */ H(
|
|
4072
|
+
children: /* @__PURE__ */ H(Ua, {
|
|
4067
4073
|
label: t,
|
|
4068
4074
|
required: c,
|
|
4069
4075
|
description: s,
|
|
4070
4076
|
labelExtra: m
|
|
4071
4077
|
})
|
|
4072
4078
|
}),
|
|
4073
|
-
l && /* @__PURE__ */ H(
|
|
4074
|
-
/* @__PURE__ */ H(
|
|
4079
|
+
l && /* @__PURE__ */ H(no, { children: l }),
|
|
4080
|
+
/* @__PURE__ */ H(to, { children: e })
|
|
4075
4081
|
]
|
|
4076
|
-
}), d && /* @__PURE__ */ H(
|
|
4082
|
+
}), d && /* @__PURE__ */ H(ro, { children: d })]
|
|
4077
4083
|
});
|
|
4078
|
-
},
|
|
4084
|
+
}, ao = J.div`
|
|
4079
4085
|
flex: 1;
|
|
4080
4086
|
.seal-select-wrapper {
|
|
4081
4087
|
border: none;
|
|
@@ -4282,7 +4288,7 @@ var pa = J.div`
|
|
|
4282
4288
|
}
|
|
4283
4289
|
}
|
|
4284
4290
|
}
|
|
4285
|
-
`,
|
|
4291
|
+
`, oo = Pt.Link, so = (e) => {
|
|
4286
4292
|
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, trim: o = !0, onSelect: s, onBlur: c, checkStatus: l, extra: u, style: d, addAfter: f, suffixIcon: p, loading: m, allowClear: h, clearSpaceOnBlur: g, showSearch: _, ...v } = e, [y, b] = B(!1), x = z(null), S = "";
|
|
4287
4293
|
try {
|
|
4288
4294
|
a && (S = K?.Item?.useStatus?.()?.status || "");
|
|
@@ -4306,10 +4312,10 @@ var pa = J.div`
|
|
|
4306
4312
|
s?.(e, t);
|
|
4307
4313
|
}, O = (t) => {
|
|
4308
4314
|
o && (t.target.value = t.target.value?.trim()), e.onInput?.(t);
|
|
4309
|
-
}, k = () => m ? /* @__PURE__ */ H(
|
|
4310
|
-
return /* @__PURE__ */ H(
|
|
4315
|
+
}, k = () => m ? /* @__PURE__ */ H(oo, { children: /* @__PURE__ */ H(ke, {}) }) : p || null, A = (e) => m ? /* @__PURE__ */ H(Ya, {}) : e || null;
|
|
4316
|
+
return /* @__PURE__ */ H(ao, {
|
|
4311
4317
|
style: d,
|
|
4312
|
-
children: /* @__PURE__ */ H(
|
|
4318
|
+
children: /* @__PURE__ */ H(io, {
|
|
4313
4319
|
className: "seal-select-wrapper",
|
|
4314
4320
|
status: l || S,
|
|
4315
4321
|
extra: u,
|
|
@@ -4340,7 +4346,7 @@ var pa = J.div`
|
|
|
4340
4346
|
})
|
|
4341
4347
|
})
|
|
4342
4348
|
});
|
|
4343
|
-
},
|
|
4349
|
+
}, co = J.div`
|
|
4344
4350
|
.seal-input-number {
|
|
4345
4351
|
padding-right: 0;
|
|
4346
4352
|
.isfoucs-has-value {
|
|
@@ -4404,7 +4410,7 @@ var pa = J.div`
|
|
|
4404
4410
|
box-shadow: none;
|
|
4405
4411
|
padding-block: 5px;
|
|
4406
4412
|
padding-inline: ${14}px;
|
|
4407
|
-
background-color: ${
|
|
4413
|
+
background-color: ${Za};
|
|
4408
4414
|
}
|
|
4409
4415
|
.ant-input.seal-textarea {
|
|
4410
4416
|
flex: 1;
|
|
@@ -4419,7 +4425,7 @@ var pa = J.div`
|
|
|
4419
4425
|
border: none;
|
|
4420
4426
|
box-shadow: none;
|
|
4421
4427
|
padding: 0;
|
|
4422
|
-
background-color: ${
|
|
4428
|
+
background-color: ${Za};
|
|
4423
4429
|
flex: 1;
|
|
4424
4430
|
|
|
4425
4431
|
&:hover .ant-input-number-handler-wrap,
|
|
@@ -4515,7 +4521,7 @@ var pa = J.div`
|
|
|
4515
4521
|
.ant-input-number-input:placeholder-shown {
|
|
4516
4522
|
font-size: var(--ant-font-size);
|
|
4517
4523
|
}
|
|
4518
|
-
`,
|
|
4524
|
+
`, lo = (e) => {
|
|
4519
4525
|
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "";
|
|
4520
4526
|
try {
|
|
4521
4527
|
if (a) {
|
|
@@ -4539,7 +4545,7 @@ var pa = J.div`
|
|
|
4539
4545
|
}, h = (t) => {
|
|
4540
4546
|
e.onInput?.(t);
|
|
4541
4547
|
};
|
|
4542
|
-
return /* @__PURE__ */ H(
|
|
4548
|
+
return /* @__PURE__ */ H(co, { children: /* @__PURE__ */ H(io, {
|
|
4543
4549
|
status: u,
|
|
4544
4550
|
label: t,
|
|
4545
4551
|
isFocus: s,
|
|
@@ -4559,7 +4565,7 @@ var pa = J.div`
|
|
|
4559
4565
|
onChange: f
|
|
4560
4566
|
})
|
|
4561
4567
|
}) });
|
|
4562
|
-
},
|
|
4568
|
+
}, uo = (e) => {
|
|
4563
4569
|
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "";
|
|
4564
4570
|
try {
|
|
4565
4571
|
a && (u = K?.Item?.useStatus?.()?.status || "");
|
|
@@ -4580,7 +4586,7 @@ var pa = J.div`
|
|
|
4580
4586
|
}, h = (...t) => {
|
|
4581
4587
|
e.onSearch?.(...t);
|
|
4582
4588
|
};
|
|
4583
|
-
return /* @__PURE__ */ H(
|
|
4589
|
+
return /* @__PURE__ */ H(co, { children: /* @__PURE__ */ H(io, {
|
|
4584
4590
|
status: u,
|
|
4585
4591
|
label: t,
|
|
4586
4592
|
isFocus: s,
|
|
@@ -4598,7 +4604,7 @@ var pa = J.div`
|
|
|
4598
4604
|
onChange: f
|
|
4599
4605
|
})
|
|
4600
4606
|
}) });
|
|
4601
|
-
},
|
|
4607
|
+
}, fo = (e) => {
|
|
4602
4608
|
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, ...o } = e, [s, c] = B(!1), l = z(null), u = "";
|
|
4603
4609
|
try {
|
|
4604
4610
|
a && (u = K?.Item?.useStatus?.()?.status || "");
|
|
@@ -4617,7 +4623,7 @@ var pa = J.div`
|
|
|
4617
4623
|
}, m = (t) => {
|
|
4618
4624
|
t.target.value = t.target.value?.trim?.(), l.current?.input?.value || c(!1), e.onBlur?.(t);
|
|
4619
4625
|
};
|
|
4620
|
-
return /* @__PURE__ */ H(
|
|
4626
|
+
return /* @__PURE__ */ H(co, { children: /* @__PURE__ */ H(io, {
|
|
4621
4627
|
status: u,
|
|
4622
4628
|
label: t,
|
|
4623
4629
|
isFocus: s,
|
|
@@ -4637,13 +4643,13 @@ var pa = J.div`
|
|
|
4637
4643
|
onChange: f
|
|
4638
4644
|
})
|
|
4639
4645
|
}) });
|
|
4640
|
-
},
|
|
4646
|
+
}, po = J.div.attrs({ className: "seal-textarea-label" })`
|
|
4641
4647
|
display: flex;
|
|
4642
4648
|
align-items: center;
|
|
4643
4649
|
justify-content: flex-start;
|
|
4644
4650
|
padding-bottom: 2px;
|
|
4645
4651
|
background-color: var(--ant-color-bg-container);
|
|
4646
|
-
`,
|
|
4652
|
+
`, mo = (e) => {
|
|
4647
4653
|
let { label: t, placeholder: n, onChange: r, onFocus: i, onBlur: a, onInput: o, style: s, required: c, isInFormItems: l = !0, description: u, variant: d, extra: f, addAfter: p, trim: m, scaleSize: h, alwaysFocus: g, ..._ } = e, [v, y] = B(!1), b = z(null), x = "";
|
|
4648
4654
|
try {
|
|
4649
4655
|
l && (x = K?.Item?.useStatus?.()?.status || "");
|
|
@@ -4677,11 +4683,11 @@ var pa = J.div`
|
|
|
4677
4683
|
}, D = (e) => {
|
|
4678
4684
|
o?.(e);
|
|
4679
4685
|
};
|
|
4680
|
-
return /* @__PURE__ */ H(
|
|
4686
|
+
return /* @__PURE__ */ H(co, {
|
|
4681
4687
|
className: "textarea-input-wrapper",
|
|
4682
|
-
children: /* @__PURE__ */ H(
|
|
4688
|
+
children: /* @__PURE__ */ H(io, {
|
|
4683
4689
|
status: x,
|
|
4684
|
-
label: t && /* @__PURE__ */ H(
|
|
4690
|
+
label: t && /* @__PURE__ */ H(po, { children: t }),
|
|
4685
4691
|
isFocus: g || v,
|
|
4686
4692
|
required: c,
|
|
4687
4693
|
description: u,
|
|
@@ -4705,8 +4711,8 @@ var pa = J.div`
|
|
|
4705
4711
|
})
|
|
4706
4712
|
})
|
|
4707
4713
|
});
|
|
4708
|
-
},
|
|
4709
|
-
TextArea:
|
|
4714
|
+
}, ho = {
|
|
4715
|
+
TextArea: mo,
|
|
4710
4716
|
Input: (e) => {
|
|
4711
4717
|
let { label: t, placeholder: n, required: r, description: i, isInFormItems: a = !0, variant: o, addAfter: s, checkStatus: c, trim: l = !0, loading: u, labelExtra: d, style: f, ...p } = e, [m, h] = B(!1), g = z(null), _ = "";
|
|
4712
4718
|
try {
|
|
@@ -4731,9 +4737,9 @@ var pa = J.div`
|
|
|
4731
4737
|
}, S = (t) => {
|
|
4732
4738
|
e.onInput?.(t);
|
|
4733
4739
|
};
|
|
4734
|
-
return /* @__PURE__ */ H(
|
|
4740
|
+
return /* @__PURE__ */ H(co, {
|
|
4735
4741
|
style: f,
|
|
4736
|
-
children: /* @__PURE__ */ H(
|
|
4742
|
+
children: /* @__PURE__ */ H(io, {
|
|
4737
4743
|
status: c || _,
|
|
4738
4744
|
label: t,
|
|
4739
4745
|
labelExtra: d,
|
|
@@ -4757,10 +4763,10 @@ var pa = J.div`
|
|
|
4757
4763
|
})
|
|
4758
4764
|
});
|
|
4759
4765
|
},
|
|
4760
|
-
Password:
|
|
4761
|
-
Number:
|
|
4762
|
-
Search:
|
|
4763
|
-
},
|
|
4766
|
+
Password: fo,
|
|
4767
|
+
Number: lo,
|
|
4768
|
+
Search: uo
|
|
4769
|
+
}, go = { footer: "styles-module__footer___OVLXu" }, _o = A((e, t) => {
|
|
4764
4770
|
let { notFoundContent: n, loading: r, ...i } = e, [a, o] = E.useState(!1), s = E.useRef(null);
|
|
4765
4771
|
I(t, () => ({ ...s.current || {} }));
|
|
4766
4772
|
let c = (t) => {
|
|
@@ -4770,7 +4776,7 @@ var pa = J.div`
|
|
|
4770
4776
|
}, u = () => e.suffixIcon ? e.suffixIcon : e.showSearch && a ? void 0 : /* @__PURE__ */ H(Z, { type: "icon-down" });
|
|
4771
4777
|
return /* @__PURE__ */ H(wt, {
|
|
4772
4778
|
...i,
|
|
4773
|
-
notFoundContent: /* @__PURE__ */ H(
|
|
4779
|
+
notFoundContent: /* @__PURE__ */ H(Xa, {
|
|
4774
4780
|
loading: r,
|
|
4775
4781
|
notFoundContent: n
|
|
4776
4782
|
}),
|
|
@@ -4780,11 +4786,11 @@ var pa = J.div`
|
|
|
4780
4786
|
onBlur: l,
|
|
4781
4787
|
suffixIcon: u(),
|
|
4782
4788
|
popupRender: e.footer ? (t) => /* @__PURE__ */ U(V, { children: [t, e.footer && /* @__PURE__ */ H("div", {
|
|
4783
|
-
className:
|
|
4789
|
+
className: go.footer,
|
|
4784
4790
|
children: e.footer
|
|
4785
4791
|
})] }) : void 0
|
|
4786
4792
|
});
|
|
4787
|
-
}),
|
|
4793
|
+
}), vo = (e) => {
|
|
4788
4794
|
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, notFoundContent: u = null, loading: d, footer: f, alwaysFocus: p = !1, styles: m, ...h } = e, g = o(), [_, y] = B(!1), b = z(null), x = "";
|
|
4789
4795
|
try {
|
|
4790
4796
|
x = l ? K?.Item?.useStatus?.()?.status || "" : e.status || "";
|
|
@@ -4804,7 +4810,7 @@ var pa = J.div`
|
|
|
4804
4810
|
}, E = (t) => {
|
|
4805
4811
|
c && e.value === null ? y(!0) : e.value || y(!1), e.onBlur?.(t);
|
|
4806
4812
|
};
|
|
4807
|
-
return /* @__PURE__ */ H(
|
|
4813
|
+
return /* @__PURE__ */ H(ao, { children: /* @__PURE__ */ H(io, {
|
|
4808
4814
|
className: "seal-select-wrapper",
|
|
4809
4815
|
status: x,
|
|
4810
4816
|
label: t,
|
|
@@ -4813,7 +4819,7 @@ var pa = J.div`
|
|
|
4813
4819
|
description: a,
|
|
4814
4820
|
disabled: e.disabled,
|
|
4815
4821
|
onClick: C,
|
|
4816
|
-
children: /* @__PURE__ */ H(
|
|
4822
|
+
children: /* @__PURE__ */ H(_o, {
|
|
4817
4823
|
...h,
|
|
4818
4824
|
styles: m,
|
|
4819
4825
|
placeholder: n,
|
|
@@ -4823,19 +4829,19 @@ var pa = J.div`
|
|
|
4823
4829
|
onFocus: T,
|
|
4824
4830
|
onBlur: E,
|
|
4825
4831
|
onChange: w,
|
|
4826
|
-
notFoundContent: /* @__PURE__ */ H(
|
|
4832
|
+
notFoundContent: /* @__PURE__ */ H(Xa, {
|
|
4827
4833
|
loading: d,
|
|
4828
4834
|
notFoundContent: u
|
|
4829
4835
|
}),
|
|
4830
4836
|
children: r
|
|
4831
4837
|
})
|
|
4832
4838
|
}) });
|
|
4833
|
-
},
|
|
4839
|
+
}, yo = {
|
|
4834
4840
|
default: 500,
|
|
4835
4841
|
large: 600,
|
|
4836
4842
|
small: 400,
|
|
4837
4843
|
mini: 300
|
|
4838
|
-
},
|
|
4844
|
+
}, bo = J.div`
|
|
4839
4845
|
.__wrapper__ {
|
|
4840
4846
|
height: 100%;
|
|
4841
4847
|
justify-content: center;
|
|
@@ -4886,7 +4892,7 @@ var pa = J.div`
|
|
|
4886
4892
|
}
|
|
4887
4893
|
}
|
|
4888
4894
|
}
|
|
4889
|
-
`,
|
|
4895
|
+
`, xo = (e) => {
|
|
4890
4896
|
let { label: t, value: n, required: r, description: i, isInFormItems: a = !0, max: o, min: s, step: c, defaultValue: l, checkStatus: u, inputnumber: d = !1, labelWidth: f, tooltip: p = { open: !1 }, ...m } = e, h = "";
|
|
4891
4897
|
try {
|
|
4892
4898
|
a && (h = K?.Item?.useStatus?.()?.status || "");
|
|
@@ -4896,15 +4902,15 @@ var pa = J.div`
|
|
|
4896
4902
|
let g = (t) => {
|
|
4897
4903
|
e.onChange?.(t);
|
|
4898
4904
|
};
|
|
4899
|
-
return /* @__PURE__ */ H(
|
|
4905
|
+
return /* @__PURE__ */ H(bo, {
|
|
4900
4906
|
className: "slider-wrapper",
|
|
4901
|
-
children: /* @__PURE__ */ H(
|
|
4907
|
+
children: /* @__PURE__ */ H(io, {
|
|
4902
4908
|
required: r,
|
|
4903
4909
|
status: u || h,
|
|
4904
4910
|
label: /* @__PURE__ */ U("span", {
|
|
4905
4911
|
className: "slider-label",
|
|
4906
|
-
style: { width: f ||
|
|
4907
|
-
children: [/* @__PURE__ */ H(
|
|
4912
|
+
style: { width: f || yo.mini },
|
|
4913
|
+
children: [/* @__PURE__ */ H(Ua, {
|
|
4908
4914
|
label: t,
|
|
4909
4915
|
description: i
|
|
4910
4916
|
}), d ? /* @__PURE__ */ H(_t, {
|
|
@@ -4947,7 +4953,7 @@ var pa = J.div`
|
|
|
4947
4953
|
})
|
|
4948
4954
|
})
|
|
4949
4955
|
});
|
|
4950
|
-
},
|
|
4956
|
+
}, So = J.div`
|
|
4951
4957
|
display: flex;
|
|
4952
4958
|
align-items: center;
|
|
4953
4959
|
justify-content: space-between;
|
|
@@ -4956,7 +4962,7 @@ var pa = J.div`
|
|
|
4956
4962
|
.ant-switch {
|
|
4957
4963
|
margin-top: 0 !important;
|
|
4958
4964
|
}
|
|
4959
|
-
`,
|
|
4965
|
+
`, Co = (e) => {
|
|
4960
4966
|
let { label: t, value: n, required: r, description: i, isInFormItems: a = !0, defaultValue: o, checkStatus: s, labelWidth: c, size: l = "small", ...u } = e, d = "";
|
|
4961
4967
|
try {
|
|
4962
4968
|
a && (d = K?.Item?.useStatus?.()?.status || "");
|
|
@@ -4966,12 +4972,12 @@ var pa = J.div`
|
|
|
4966
4972
|
let f = (t, n) => {
|
|
4967
4973
|
e.onChange?.(t, n);
|
|
4968
4974
|
};
|
|
4969
|
-
return /* @__PURE__ */ H(
|
|
4975
|
+
return /* @__PURE__ */ H(io, {
|
|
4970
4976
|
required: r,
|
|
4971
4977
|
status: s || d,
|
|
4972
4978
|
className: "no-focus",
|
|
4973
4979
|
disabled: e.disabled,
|
|
4974
|
-
children: /* @__PURE__ */ U(
|
|
4980
|
+
children: /* @__PURE__ */ U(So, { children: [/* @__PURE__ */ H(Ua, {
|
|
4975
4981
|
label: t,
|
|
4976
4982
|
description: i
|
|
4977
4983
|
}), /* @__PURE__ */ H(kt, {
|
|
@@ -4987,17 +4993,17 @@ var pa = J.div`
|
|
|
4987
4993
|
onChange: f
|
|
4988
4994
|
})] })
|
|
4989
4995
|
});
|
|
4990
|
-
},
|
|
4991
|
-
InputNumber:
|
|
4992
|
-
Select:
|
|
4993
|
-
Slider:
|
|
4994
|
-
TextArea:
|
|
4995
|
-
Input:
|
|
4996
|
+
}, wo = {
|
|
4997
|
+
InputNumber: ho.Number,
|
|
4998
|
+
Select: vo,
|
|
4999
|
+
Slider: xo,
|
|
5000
|
+
TextArea: ho.TextArea,
|
|
5001
|
+
Input: ho.Input,
|
|
4996
5002
|
Checkbox: G,
|
|
4997
|
-
Switch:
|
|
4998
|
-
AutoComplete:
|
|
4999
|
-
},
|
|
5000
|
-
let g =
|
|
5003
|
+
Switch: Co,
|
|
5004
|
+
AutoComplete: so
|
|
5005
|
+
}, To = ({ widget: e, title: t, required: n, placeholder: r, options: i, description: a, enum: o, style: s, value: c, min: l, max: u, status: d, checked: f, isInFormItems: p, disabled: m, onChange: h }) => {
|
|
5006
|
+
let g = wo[e], _ = o?.map((e) => ({
|
|
5001
5007
|
label: e,
|
|
5002
5008
|
value: e
|
|
5003
5009
|
}));
|
|
@@ -5020,17 +5026,17 @@ var pa = J.div`
|
|
|
5020
5026
|
},
|
|
5021
5027
|
onChange: h
|
|
5022
5028
|
}) : null;
|
|
5023
|
-
},
|
|
5029
|
+
}, Eo = J.div`
|
|
5024
5030
|
display: flex;
|
|
5025
5031
|
align-items: center;
|
|
5026
5032
|
justify-content: space-between;
|
|
5027
5033
|
margin-bottom: 8px;
|
|
5028
|
-
`,
|
|
5034
|
+
`, Do = J.div`
|
|
5029
5035
|
display: flex;
|
|
5030
5036
|
align-items: center;
|
|
5031
5037
|
gap: 8px;
|
|
5032
5038
|
width: 100%;
|
|
5033
|
-
`,
|
|
5039
|
+
`, Oo = ({ schemaList: e, data: t, onChange: n, validateStatus: r, disabled: i }) => {
|
|
5034
5040
|
let a = (e, t) => {
|
|
5035
5041
|
if (t?.target?.type === "checkbox") {
|
|
5036
5042
|
let r = t.target?.checked;
|
|
@@ -5040,7 +5046,7 @@ var pa = J.div`
|
|
|
5040
5046
|
n?.({ [e]: r });
|
|
5041
5047
|
}
|
|
5042
5048
|
};
|
|
5043
|
-
return /* @__PURE__ */ H(V, { children: e.map((e) => /* @__PURE__ */ k(
|
|
5049
|
+
return /* @__PURE__ */ H(V, { children: e.map((e) => /* @__PURE__ */ k(To, {
|
|
5044
5050
|
status: r?.[e.name],
|
|
5045
5051
|
widget: e.type,
|
|
5046
5052
|
...e,
|
|
@@ -5051,7 +5057,7 @@ var pa = J.div`
|
|
|
5051
5057
|
isInFormItems: !1,
|
|
5052
5058
|
onChange: (t) => a(e.name, t)
|
|
5053
5059
|
})) });
|
|
5054
|
-
},
|
|
5060
|
+
}, ko = ({ dataList: e = [], label: t, btnText: n, properties: r = {}, requiredFields: i = [], minItems: a = 0, validateStatusList: o = [], disabled: s, onAdd: c, onDelete: l, onChange: u }) => {
|
|
5055
5061
|
let [d, f] = E.useState(e || []), p = R(() => Object.entries(r).map(([e, t]) => ({
|
|
5056
5062
|
...t,
|
|
5057
5063
|
required: i.includes(e),
|
|
@@ -5076,12 +5082,12 @@ var pa = J.div`
|
|
|
5076
5082
|
!e.length && a > 0 && m();
|
|
5077
5083
|
}, []), F(() => {
|
|
5078
5084
|
f(e);
|
|
5079
|
-
}, [e]), /* @__PURE__ */ H(
|
|
5085
|
+
}, [e]), /* @__PURE__ */ H(Ka, {
|
|
5080
5086
|
label: t,
|
|
5081
5087
|
btnText: n,
|
|
5082
5088
|
onAdd: m,
|
|
5083
5089
|
disabled: s,
|
|
5084
|
-
children: d.map((e, t) => /* @__PURE__ */ U(
|
|
5090
|
+
children: d.map((e, t) => /* @__PURE__ */ U(Eo, { children: [/* @__PURE__ */ H(Do, { children: /* @__PURE__ */ H(Oo, {
|
|
5085
5091
|
schemaList: p,
|
|
5086
5092
|
data: e,
|
|
5087
5093
|
validateStatus: o?.[t],
|
|
@@ -5103,7 +5109,7 @@ var pa = J.div`
|
|
|
5103
5109
|
};
|
|
5104
5110
|
//#endregion
|
|
5105
5111
|
//#region src/lib/components/dynamic-form/hooks/use-validate-fields.ts
|
|
5106
|
-
function
|
|
5112
|
+
function Ao(e) {
|
|
5107
5113
|
let { requiredFields: t, setValidateStatusList: n } = e, r = z(!1), i = (e, t) => !e, a = (e, t) => !0;
|
|
5108
5114
|
return {
|
|
5109
5115
|
listMapValidator: async (e, o) => {
|
|
@@ -5140,11 +5146,11 @@ nn.use([
|
|
|
5140
5146
|
an,
|
|
5141
5147
|
on
|
|
5142
5148
|
]);
|
|
5143
|
-
var
|
|
5149
|
+
var jo = nn, Mo = A(({ options: e, width: t, height: n, chartHeight: r }, i) => {
|
|
5144
5150
|
let a = z(null), o = z(), s = z(!1), c = z(), l = z(!1);
|
|
5145
5151
|
I(i, () => ({ chart: o.current }));
|
|
5146
5152
|
let u = () => {
|
|
5147
|
-
a.current && (o.current?.clear(), o.current =
|
|
5153
|
+
a.current && (o.current?.clear(), o.current = jo.init(a.current));
|
|
5148
5154
|
}, d = (e) => {
|
|
5149
5155
|
o.current && (o.current?.clear(), o.current?.setOption(e, {
|
|
5150
5156
|
notMerge: !0,
|
|
@@ -5189,13 +5195,13 @@ var ko = nn, Ao = A(({ options: e, width: t, height: n, chartHeight: r }, i) =>
|
|
|
5189
5195
|
}
|
|
5190
5196
|
})
|
|
5191
5197
|
});
|
|
5192
|
-
}),
|
|
5198
|
+
}), No = {
|
|
5193
5199
|
left: 0,
|
|
5194
5200
|
right: 0,
|
|
5195
5201
|
bottom: 20,
|
|
5196
5202
|
containLabel: !0
|
|
5197
5203
|
};
|
|
5198
|
-
function
|
|
5204
|
+
function Po() {
|
|
5199
5205
|
let { config: e } = i(), { isDarkTheme: t, theme: n } = e, { useToken: r } = Rt, { token: a } = r(), o = R(() => ({
|
|
5200
5206
|
titleColor: a.colorText,
|
|
5201
5207
|
splitLineColor: a.colorBorder,
|
|
@@ -5231,7 +5237,7 @@ function Mo() {
|
|
|
5231
5237
|
}), `<div class="${r >= 12 ? "tooltip-wrapper tooltip-grid" : "tooltip-wrapper"}">${n}</div>`;
|
|
5232
5238
|
}
|
|
5233
5239
|
},
|
|
5234
|
-
grid:
|
|
5240
|
+
grid: No,
|
|
5235
5241
|
legend: {
|
|
5236
5242
|
itemWidth: 8,
|
|
5237
5243
|
itemHeight: 8,
|
|
@@ -5386,7 +5392,7 @@ function Mo() {
|
|
|
5386
5392
|
}
|
|
5387
5393
|
//#endregion
|
|
5388
5394
|
//#region src/lib/components/empty-data/index.tsx
|
|
5389
|
-
var
|
|
5395
|
+
var Fo = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
5390
5396
|
style: {
|
|
5391
5397
|
width: "100%",
|
|
5392
5398
|
height: e || "100%"
|
|
@@ -5404,8 +5410,8 @@ var No = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5404
5410
|
style: { height: "100%" },
|
|
5405
5411
|
children: /* @__PURE__ */ H(pt, { image: pt.PRESENTED_IMAGE_SIMPLE })
|
|
5406
5412
|
})]
|
|
5407
|
-
}),
|
|
5408
|
-
let { seriesData: t, xAxisData: n, height: r, width: i, labelFormatter: a, legendData: o, title: s, stack: c = "total" } = e, { barItemConfig: l, grid: u, legend: d, title: f, tooltip: p, xAxis: m, yAxis: h } =
|
|
5413
|
+
}), Io = (e) => {
|
|
5414
|
+
let { seriesData: t, xAxisData: n, height: r, width: i, labelFormatter: a, legendData: o, title: s, stack: c = "total" } = e, { barItemConfig: l, grid: u, legend: d, title: f, tooltip: p, xAxis: m, yAxis: h } = Po(), g = typeof s == "string" ? s : s?.text ?? "", _ = R(() => {
|
|
5409
5415
|
let e = {
|
|
5410
5416
|
title: { text: "" },
|
|
5411
5417
|
grid: u,
|
|
@@ -5460,23 +5466,23 @@ var No = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5460
5466
|
l,
|
|
5461
5467
|
c
|
|
5462
5468
|
]);
|
|
5463
|
-
return /* @__PURE__ */ H(V, { children: t.length ? /* @__PURE__ */ H(
|
|
5469
|
+
return /* @__PURE__ */ H(V, { children: t.length ? /* @__PURE__ */ H(Mo, {
|
|
5464
5470
|
height: r,
|
|
5465
5471
|
options: _,
|
|
5466
5472
|
width: i || "100%"
|
|
5467
|
-
}) : /* @__PURE__ */ H(
|
|
5473
|
+
}) : /* @__PURE__ */ H(Fo, {
|
|
5468
5474
|
height: r,
|
|
5469
5475
|
title: g
|
|
5470
5476
|
}) });
|
|
5471
|
-
},
|
|
5472
|
-
let { gaugeItemConfig: t, title: n, chartColorMap: r } =
|
|
5473
|
-
return !i && i !== 0 ? /* @__PURE__ */ H(
|
|
5477
|
+
}, Lo = (e) => e <= 50 || e === void 0 ? "rgb(84, 204, 152, 80%)" : e <= 80 ? "rgba(250, 173, 20, 80%)" : "rgba(255, 77, 79, 80%)", Ro = (e) => {
|
|
5478
|
+
let { gaugeItemConfig: t, title: n, chartColorMap: r } = Po(), { value: i, height: a, width: o, labelFormatter: s, title: c, color: l, gaugeConfig: u } = e, d = typeof c == "string" ? c : c?.text;
|
|
5479
|
+
return !i && i !== 0 ? /* @__PURE__ */ H(Fo, {
|
|
5474
5480
|
height: a,
|
|
5475
5481
|
title: d
|
|
5476
|
-
}) : /* @__PURE__ */ H(
|
|
5482
|
+
}) : /* @__PURE__ */ H(Mo, {
|
|
5477
5483
|
height: a,
|
|
5478
5484
|
options: (() => {
|
|
5479
|
-
let e = l ||
|
|
5485
|
+
let e = l || Lo(i), a = {
|
|
5480
5486
|
...t,
|
|
5481
5487
|
...u
|
|
5482
5488
|
};
|
|
@@ -5517,8 +5523,8 @@ var No = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5517
5523
|
})(),
|
|
5518
5524
|
width: o || "100%"
|
|
5519
5525
|
});
|
|
5520
|
-
},
|
|
5521
|
-
let { seriesData: t, xAxisData: n, height: r, width: i, labelFormatter: a, legendData: o, maxItems: s, barWidth: c = 20, title: l } = e, { token: u, grid: d, legend: f, title: p, tooltip: m, xAxis: h, yAxis: g } =
|
|
5526
|
+
}, zo = (e) => {
|
|
5527
|
+
let { seriesData: t, xAxisData: n, height: r, width: i, labelFormatter: a, legendData: o, maxItems: s, barWidth: c = 20, title: l } = e, { token: u, grid: d, legend: f, title: p, tooltip: m, xAxis: h, yAxis: g } = Po(), _ = typeof l == "string" ? l : l?.text ?? "", v = R(() => {
|
|
5522
5528
|
let e = {
|
|
5523
5529
|
title: {
|
|
5524
5530
|
...p,
|
|
@@ -5618,17 +5624,17 @@ var No = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5618
5624
|
c,
|
|
5619
5625
|
s
|
|
5620
5626
|
]);
|
|
5621
|
-
return /* @__PURE__ */ H(V, { children: R(() => t?.every?.((e) => !e?.data?.length), [t]) ? /* @__PURE__ */ H(
|
|
5627
|
+
return /* @__PURE__ */ H(V, { children: R(() => t?.every?.((e) => !e?.data?.length), [t]) ? /* @__PURE__ */ H(Fo, {
|
|
5622
5628
|
height: r,
|
|
5623
5629
|
title: _
|
|
5624
|
-
}) : /* @__PURE__ */ H(
|
|
5630
|
+
}) : /* @__PURE__ */ H(Mo, {
|
|
5625
5631
|
height: r,
|
|
5626
5632
|
chartHeight: typeof r == "number" ? r - 10 : void 0,
|
|
5627
5633
|
options: v,
|
|
5628
5634
|
width: i || "100%"
|
|
5629
5635
|
}) });
|
|
5630
|
-
},
|
|
5631
|
-
let { seriesData: t, xAxisData: n, yAxisName: r, height: i, width: a, labelFormatter: o, tooltipValueFormatter: s = null, legendData: c = [], smooth: l, title: u, legendOptions: d, gridOptions: f, titleOptions: p, showArea: m } = e, { grid: h, legend: g, lineItemConfig: v, title: y, tooltip: b, xAxis: x, yAxis: S } =
|
|
5636
|
+
}, Bo = jo.graphic.LinearGradient, Vo = (e) => {
|
|
5637
|
+
let { seriesData: t, xAxisData: n, yAxisName: r, height: i, width: a, labelFormatter: o, tooltipValueFormatter: s = null, legendData: c = [], smooth: l, title: u, legendOptions: d, gridOptions: f, titleOptions: p, showArea: m } = e, { grid: h, legend: g, lineItemConfig: v, title: y, tooltip: b, xAxis: x, yAxis: S } = Po(), C = typeof u == "string" ? u : u?.text ?? "", w = (e, t) => o ? o(e, t) : t === n.length - 1 ? "" : e, T = {
|
|
5632
5638
|
title: { text: "" },
|
|
5633
5639
|
grid: {
|
|
5634
5640
|
...h,
|
|
@@ -5676,7 +5682,7 @@ var No = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5676
5682
|
...v.lineStyle,
|
|
5677
5683
|
color: e.color
|
|
5678
5684
|
},
|
|
5679
|
-
areaStyle: m ? { color: new
|
|
5685
|
+
areaStyle: m ? { color: new Bo(0, 0, 0, 1, [{
|
|
5680
5686
|
offset: 0,
|
|
5681
5687
|
color: t[0]
|
|
5682
5688
|
}, {
|
|
@@ -5717,20 +5723,20 @@ var No = ({ height: e, title: t }) => /* @__PURE__ */ U("div", {
|
|
|
5717
5723
|
c,
|
|
5718
5724
|
T
|
|
5719
5725
|
]);
|
|
5720
|
-
return /* @__PURE__ */ H(V, { children: t.length ? /* @__PURE__ */ H(
|
|
5726
|
+
return /* @__PURE__ */ H(V, { children: t.length ? /* @__PURE__ */ H(Mo, {
|
|
5721
5727
|
height: i,
|
|
5722
5728
|
options: E,
|
|
5723
5729
|
width: a || "100%"
|
|
5724
|
-
}) : /* @__PURE__ */ H(
|
|
5730
|
+
}) : /* @__PURE__ */ H(Fo, {
|
|
5725
5731
|
height: i,
|
|
5726
5732
|
title: C
|
|
5727
5733
|
}) });
|
|
5728
5734
|
};
|
|
5729
5735
|
//#endregion
|
|
5730
5736
|
//#region src/lib/components/echarts/mix-line-bar.tsx
|
|
5731
|
-
|
|
5732
|
-
var
|
|
5733
|
-
let { seriesData: t, xAxisData: n, yAxisName: r, height: i, width: a, labelFormatter: o, tooltipValueFormatter: s = null, legendData: c = [], smooth: l, title: u, chartData: d } = e, { grid: f, legend: p, lineItemConfig: m, barItemConfig: h, title: g, tooltip: v, xAxis: y, yAxis: b } =
|
|
5737
|
+
jo.graphic.LinearGradient;
|
|
5738
|
+
var Ho = (e) => {
|
|
5739
|
+
let { seriesData: t, xAxisData: n, yAxisName: r, height: i, width: a, labelFormatter: o, tooltipValueFormatter: s = null, legendData: c = [], smooth: l, title: u, chartData: d } = e, { grid: f, legend: p, lineItemConfig: m, barItemConfig: h, title: g, tooltip: v, xAxis: y, yAxis: b } = Po(), x = typeof u == "string" ? u : u?.text ?? "", { line: S, bar: C } = d, w = {
|
|
5734
5740
|
title: { text: "" },
|
|
5735
5741
|
grid: {
|
|
5736
5742
|
...f,
|
|
@@ -5817,16 +5823,16 @@ var Bo = (e) => {
|
|
|
5817
5823
|
c,
|
|
5818
5824
|
w
|
|
5819
5825
|
]);
|
|
5820
|
-
return /* @__PURE__ */ H(V, { children: !S.length && !C.length ? /* @__PURE__ */ H(
|
|
5826
|
+
return /* @__PURE__ */ H(V, { children: !S.length && !C.length ? /* @__PURE__ */ H(Fo, {
|
|
5821
5827
|
height: i,
|
|
5822
5828
|
title: x
|
|
5823
|
-
}) : /* @__PURE__ */ H(
|
|
5829
|
+
}) : /* @__PURE__ */ H(Mo, {
|
|
5824
5830
|
height: i,
|
|
5825
5831
|
options: T,
|
|
5826
5832
|
width: a || "100%"
|
|
5827
5833
|
}) });
|
|
5828
|
-
},
|
|
5829
|
-
let { grid: t, title: n, isDark: r, chartColorMap: i } =
|
|
5834
|
+
}, Uo = (e) => {
|
|
5835
|
+
let { grid: t, title: n, isDark: r, chartColorMap: i } = Po(), { seriesData: a, xAxisData: o, height: s, width: c, showEmpty: l, title: u, xMax: d = 1, yMax: f = 1 } = e, p = typeof u == "string" ? u : u?.text ?? "", m = z(null), h = R(() => {
|
|
5830
5836
|
let e = r ? {
|
|
5831
5837
|
split: i.splitLineColor,
|
|
5832
5838
|
axis: i.axislabelColor,
|
|
@@ -5956,16 +5962,16 @@ var Bo = (e) => {
|
|
|
5956
5962
|
h,
|
|
5957
5963
|
g
|
|
5958
5964
|
]);
|
|
5959
|
-
return /* @__PURE__ */ H(V, { children: !a.length && l ? /* @__PURE__ */ H(
|
|
5965
|
+
return /* @__PURE__ */ H(V, { children: !a.length && l ? /* @__PURE__ */ H(Fo, {
|
|
5960
5966
|
height: s,
|
|
5961
5967
|
title: p
|
|
5962
|
-
}) : /* @__PURE__ */ H(
|
|
5968
|
+
}) : /* @__PURE__ */ H(Mo, {
|
|
5963
5969
|
ref: m,
|
|
5964
5970
|
height: s,
|
|
5965
5971
|
options: v,
|
|
5966
5972
|
width: c || "100%"
|
|
5967
5973
|
}) });
|
|
5968
|
-
},
|
|
5974
|
+
}, Wo = J.div`
|
|
5969
5975
|
position: relative;
|
|
5970
5976
|
.cp-btn {
|
|
5971
5977
|
position: absolute;
|
|
@@ -5979,7 +5985,7 @@ var Bo = (e) => {
|
|
|
5979
5985
|
.msg {
|
|
5980
5986
|
display: none;
|
|
5981
5987
|
}
|
|
5982
|
-
`,
|
|
5988
|
+
`, Go = ({ errMsg: e }) => /* @__PURE__ */ U(Wo, { children: [/* @__PURE__ */ H(Pt.Text, {
|
|
5983
5989
|
className: "cp-btn",
|
|
5984
5990
|
copyable: {
|
|
5985
5991
|
text: e,
|
|
@@ -5992,14 +5998,14 @@ var Bo = (e) => {
|
|
|
5992
5998
|
className: "msg",
|
|
5993
5999
|
children: e
|
|
5994
6000
|
})
|
|
5995
|
-
}), e] }),
|
|
6001
|
+
}), e] }), Ko = {
|
|
5996
6002
|
wrapper: "style-module__wrapper___Iefxu",
|
|
5997
6003
|
show: "style-module__show___DHsIc",
|
|
5998
6004
|
container: "style-module__container___SWN9K",
|
|
5999
6005
|
title: "style-module__title___NIE5q",
|
|
6000
6006
|
"btn-wrapper": "style-module__btn-wrapper___e1BuB",
|
|
6001
6007
|
buttons: "style-module__buttons___8nshx"
|
|
6002
|
-
},
|
|
6008
|
+
}, qo = A(({ children: e, open: t, width: n = 300, contentHeight: r = 400, initialValues: i = {}, styles: a, onClose: s, onClear: c, onValuesChange: u }, d) => {
|
|
6003
6009
|
let f = o(), [p] = K.useForm(), m = () => {
|
|
6004
6010
|
p.resetFields(Object.keys(i)), p.resetFields(), u?.({}, p.getFieldsValue());
|
|
6005
6011
|
}, h = () => {
|
|
@@ -6013,7 +6019,7 @@ var Bo = (e) => {
|
|
|
6013
6019
|
getValues: () => p.getFieldsValue(),
|
|
6014
6020
|
setValues: (e) => p.setFieldsValue(e)
|
|
6015
6021
|
})), /* @__PURE__ */ H("div", {
|
|
6016
|
-
className: (0, Y.default)(
|
|
6022
|
+
className: (0, Y.default)(Ko.wrapper, { [Ko.show]: t }),
|
|
6017
6023
|
style: {
|
|
6018
6024
|
width: t ? n : 0,
|
|
6019
6025
|
height: r,
|
|
@@ -6024,9 +6030,9 @@ var Bo = (e) => {
|
|
|
6024
6030
|
width: n,
|
|
6025
6031
|
...a?.container
|
|
6026
6032
|
},
|
|
6027
|
-
className:
|
|
6033
|
+
className: Ko.container,
|
|
6028
6034
|
children: [/* @__PURE__ */ U("div", {
|
|
6029
|
-
className:
|
|
6035
|
+
className: Ko.title,
|
|
6030
6036
|
children: [/* @__PURE__ */ H("span", {
|
|
6031
6037
|
style: {
|
|
6032
6038
|
fontWeight: 500,
|
|
@@ -6062,7 +6068,7 @@ var Bo = (e) => {
|
|
|
6062
6068
|
})]
|
|
6063
6069
|
})
|
|
6064
6070
|
});
|
|
6065
|
-
}),
|
|
6071
|
+
}), Jo = ({ onOk: e, onCancel: t, cancelText: n, okText: r, showCancel: i = !0, showOk: a = !0, htmlType: s = "button" }) => {
|
|
6066
6072
|
let c = o();
|
|
6067
6073
|
return /* @__PURE__ */ U(Dt, {
|
|
6068
6074
|
size: 40,
|
|
@@ -6079,14 +6085,14 @@ var Bo = (e) => {
|
|
|
6079
6085
|
children: n || c.formatMessage({ id: "common.button.cancel" })
|
|
6080
6086
|
})]
|
|
6081
6087
|
});
|
|
6082
|
-
},
|
|
6088
|
+
}, Yo = J.div`
|
|
6083
6089
|
display: flex;
|
|
6084
6090
|
justify-content: space-between;
|
|
6085
6091
|
align-items: center;
|
|
6086
6092
|
gap: 20px;
|
|
6087
|
-
`,
|
|
6093
|
+
`, Xo = ({ onOk: e, onCancel: t, cancelText: n, okText: r, okBtnProps: i, cancelBtnProps: a, loading: s, htmlType: c = "button", style: l, showOkBtn: u = !0, styles: d, description: f, extra: p, showCancelBtn: m = !0, form: h }) => {
|
|
6088
6094
|
let g = o();
|
|
6089
|
-
return /* @__PURE__ */ U(
|
|
6095
|
+
return /* @__PURE__ */ U(Yo, {
|
|
6090
6096
|
style: { ...d?.wrapper },
|
|
6091
6097
|
children: [/* @__PURE__ */ H("div", { children: f }), /* @__PURE__ */ U(Dt, {
|
|
6092
6098
|
size: 20,
|
|
@@ -6114,22 +6120,22 @@ var Bo = (e) => {
|
|
|
6114
6120
|
};
|
|
6115
6121
|
//#endregion
|
|
6116
6122
|
//#region ../../node_modules/.pnpm/react-hotkeys-hook@4.6.2_react-dom@18.3.1_react@18.3.1/node_modules/react-hotkeys-hook/dist/react-hotkeys-hook.esm.js
|
|
6117
|
-
function
|
|
6118
|
-
return
|
|
6123
|
+
function Zo() {
|
|
6124
|
+
return Zo = Object.assign ? Object.assign.bind() : function(e) {
|
|
6119
6125
|
for (var t = 1; t < arguments.length; t++) {
|
|
6120
6126
|
var n = arguments[t];
|
|
6121
6127
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
6122
6128
|
}
|
|
6123
6129
|
return e;
|
|
6124
|
-
},
|
|
6130
|
+
}, Zo.apply(null, arguments);
|
|
6125
6131
|
}
|
|
6126
|
-
var
|
|
6132
|
+
var Qo = [
|
|
6127
6133
|
"shift",
|
|
6128
6134
|
"alt",
|
|
6129
6135
|
"meta",
|
|
6130
6136
|
"mod",
|
|
6131
6137
|
"ctrl"
|
|
6132
|
-
],
|
|
6138
|
+
], $o = {
|
|
6133
6139
|
esc: "escape",
|
|
6134
6140
|
return: "enter",
|
|
6135
6141
|
".": "period",
|
|
@@ -6150,19 +6156,19 @@ var Xo = [
|
|
|
6150
6156
|
ControlLeft: "ctrl",
|
|
6151
6157
|
ControlRight: "ctrl"
|
|
6152
6158
|
};
|
|
6153
|
-
function
|
|
6154
|
-
return (e &&
|
|
6159
|
+
function es(e) {
|
|
6160
|
+
return (e && $o[e] || e || "").trim().toLowerCase().replace(/key|digit|numpad|arrow/, "");
|
|
6155
6161
|
}
|
|
6156
|
-
function
|
|
6157
|
-
return
|
|
6162
|
+
function ts(e) {
|
|
6163
|
+
return Qo.includes(e);
|
|
6158
6164
|
}
|
|
6159
|
-
function
|
|
6165
|
+
function ns(e, t) {
|
|
6160
6166
|
return t === void 0 && (t = ","), e.split(t);
|
|
6161
6167
|
}
|
|
6162
|
-
function
|
|
6168
|
+
function rs(e, t, n) {
|
|
6163
6169
|
t === void 0 && (t = "+");
|
|
6164
6170
|
var r = e.toLocaleLowerCase().split(t).map(function(e) {
|
|
6165
|
-
return
|
|
6171
|
+
return es(e);
|
|
6166
6172
|
}), i = {
|
|
6167
6173
|
alt: r.includes("alt"),
|
|
6168
6174
|
ctrl: r.includes("ctrl") || r.includes("control"),
|
|
@@ -6170,9 +6176,9 @@ function ts(e, t, n) {
|
|
|
6170
6176
|
meta: r.includes("meta"),
|
|
6171
6177
|
mod: r.includes("mod")
|
|
6172
6178
|
}, a = r.filter(function(e) {
|
|
6173
|
-
return !
|
|
6179
|
+
return !Qo.includes(e);
|
|
6174
6180
|
});
|
|
6175
|
-
return
|
|
6181
|
+
return Zo({}, i, {
|
|
6176
6182
|
keys: a,
|
|
6177
6183
|
description: n,
|
|
6178
6184
|
hotkey: e
|
|
@@ -6180,66 +6186,66 @@ function ts(e, t, n) {
|
|
|
6180
6186
|
}
|
|
6181
6187
|
(function() {
|
|
6182
6188
|
typeof document < "u" && (document.addEventListener("keydown", function(e) {
|
|
6183
|
-
e.key !== void 0 &&
|
|
6189
|
+
e.key !== void 0 && ss([es(e.key), es(e.code)]);
|
|
6184
6190
|
}), document.addEventListener("keyup", function(e) {
|
|
6185
|
-
e.key !== void 0 &&
|
|
6191
|
+
e.key !== void 0 && cs([es(e.key), es(e.code)]);
|
|
6186
6192
|
})), typeof window < "u" && window.addEventListener("blur", function() {
|
|
6187
|
-
|
|
6193
|
+
is.clear();
|
|
6188
6194
|
});
|
|
6189
6195
|
})();
|
|
6190
|
-
var
|
|
6191
|
-
function
|
|
6196
|
+
var is = /* @__PURE__ */ new Set();
|
|
6197
|
+
function as(e) {
|
|
6192
6198
|
return Array.isArray(e);
|
|
6193
6199
|
}
|
|
6194
|
-
function
|
|
6195
|
-
return t === void 0 && (t = ","), (
|
|
6196
|
-
return
|
|
6200
|
+
function os(e, t) {
|
|
6201
|
+
return t === void 0 && (t = ","), (as(e) ? e : e.split(t)).every(function(e) {
|
|
6202
|
+
return is.has(e.trim().toLowerCase());
|
|
6197
6203
|
});
|
|
6198
6204
|
}
|
|
6199
|
-
function
|
|
6205
|
+
function ss(e) {
|
|
6200
6206
|
var t = Array.isArray(e) ? e : [e];
|
|
6201
|
-
|
|
6202
|
-
return
|
|
6207
|
+
is.has("meta") && is.forEach(function(e) {
|
|
6208
|
+
return !ts(e) && is.delete(e.toLowerCase());
|
|
6203
6209
|
}), t.forEach(function(e) {
|
|
6204
|
-
return
|
|
6210
|
+
return is.add(e.toLowerCase());
|
|
6205
6211
|
});
|
|
6206
6212
|
}
|
|
6207
|
-
function
|
|
6208
|
-
e === "meta" ?
|
|
6209
|
-
return
|
|
6213
|
+
function cs(e) {
|
|
6214
|
+
e === "meta" ? is.clear() : (Array.isArray(e) ? e : [e]).forEach(function(e) {
|
|
6215
|
+
return is.delete(e.toLowerCase());
|
|
6210
6216
|
});
|
|
6211
6217
|
}
|
|
6212
|
-
function
|
|
6218
|
+
function ls(e, t, n) {
|
|
6213
6219
|
(typeof n == "function" && n(e, t) || n === !0) && e.preventDefault();
|
|
6214
6220
|
}
|
|
6215
|
-
function
|
|
6221
|
+
function us(e, t, n) {
|
|
6216
6222
|
return typeof n == "function" ? n(e, t) : n === !0 || n === void 0;
|
|
6217
6223
|
}
|
|
6218
|
-
function
|
|
6219
|
-
return
|
|
6224
|
+
function ds(e) {
|
|
6225
|
+
return fs(e, [
|
|
6220
6226
|
"input",
|
|
6221
6227
|
"textarea",
|
|
6222
6228
|
"select"
|
|
6223
6229
|
]);
|
|
6224
6230
|
}
|
|
6225
|
-
function
|
|
6231
|
+
function fs(e, t) {
|
|
6226
6232
|
t === void 0 && (t = !1);
|
|
6227
6233
|
var n = e.target, r = e.composed, i = null;
|
|
6228
|
-
return i =
|
|
6234
|
+
return i = ps(n) && r ? e.composedPath()[0] && e.composedPath()[0].tagName : n && n.tagName, as(t) ? !!(i && t && t.some(function(e) {
|
|
6229
6235
|
return e.toLowerCase() === i?.toLowerCase();
|
|
6230
6236
|
})) : !!(i && t && t);
|
|
6231
6237
|
}
|
|
6232
|
-
function
|
|
6238
|
+
function ps(e) {
|
|
6233
6239
|
return !!e.tagName && !e.tagName.startsWith("-") && e.tagName.includes("-");
|
|
6234
6240
|
}
|
|
6235
|
-
function
|
|
6241
|
+
function ms(e, t) {
|
|
6236
6242
|
return e.length === 0 && t ? (console.warn("A hotkey has the \"scopes\" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>"), !0) : t ? e.some(function(e) {
|
|
6237
6243
|
return t.includes(e);
|
|
6238
6244
|
}) || e.includes("*") : !0;
|
|
6239
6245
|
}
|
|
6240
|
-
var
|
|
6246
|
+
var hs = function(e, t, n) {
|
|
6241
6247
|
n === void 0 && (n = !1);
|
|
6242
|
-
var r = t.alt, i = t.meta, a = t.mod, o = t.shift, s = t.ctrl, c = t.keys, l = e.key, u = e.code, d = e.ctrlKey, f = e.metaKey, p = e.shiftKey, m = e.altKey, h =
|
|
6248
|
+
var r = t.alt, i = t.meta, a = t.mod, o = t.shift, s = t.ctrl, c = t.keys, l = e.key, u = e.code, d = e.ctrlKey, f = e.metaKey, p = e.shiftKey, m = e.altKey, h = es(u), g = l.toLowerCase();
|
|
6243
6249
|
if (!(c != null && c.includes(h)) && !(c != null && c.includes(g)) && ![
|
|
6244
6250
|
"ctrl",
|
|
6245
6251
|
"control",
|
|
@@ -6255,53 +6261,53 @@ var ps = function(e, t, n) {
|
|
|
6255
6261
|
if (!f && !d) return !1;
|
|
6256
6262
|
} else if (i === !f && g !== "meta" && g !== "os" || s === !d && g !== "ctrl" && g !== "control") return !1;
|
|
6257
6263
|
}
|
|
6258
|
-
return c && c.length === 1 && (c.includes(g) || c.includes(h)) ? !0 : c ?
|
|
6259
|
-
},
|
|
6260
|
-
return P(
|
|
6264
|
+
return c && c.length === 1 && (c.includes(g) || c.includes(h)) ? !0 : c ? os(c) : !c;
|
|
6265
|
+
}, gs = /* @__PURE__ */ O(void 0), _s = function() {
|
|
6266
|
+
return P(gs);
|
|
6261
6267
|
};
|
|
6262
|
-
function
|
|
6268
|
+
function vs(e, t) {
|
|
6263
6269
|
return e && t && typeof e == "object" && typeof t == "object" ? Object.keys(e).length === Object.keys(t).length && Object.keys(e).reduce(function(n, r) {
|
|
6264
|
-
return n &&
|
|
6270
|
+
return n && vs(e[r], t[r]);
|
|
6265
6271
|
}, !0) : e === t;
|
|
6266
6272
|
}
|
|
6267
|
-
var
|
|
6273
|
+
var ys = /* @__PURE__ */ O({
|
|
6268
6274
|
hotkeys: [],
|
|
6269
6275
|
enabledScopes: [],
|
|
6270
6276
|
toggleScope: function() {},
|
|
6271
6277
|
enableScope: function() {},
|
|
6272
6278
|
disableScope: function() {}
|
|
6273
|
-
}),
|
|
6274
|
-
return P(
|
|
6279
|
+
}), bs = function() {
|
|
6280
|
+
return P(ys);
|
|
6275
6281
|
};
|
|
6276
|
-
function
|
|
6282
|
+
function xs(e) {
|
|
6277
6283
|
var t = z(void 0);
|
|
6278
|
-
return
|
|
6284
|
+
return vs(t.current, e) || (t.current = e), t.current;
|
|
6279
6285
|
}
|
|
6280
|
-
var
|
|
6286
|
+
var Ss = function(e) {
|
|
6281
6287
|
e.stopPropagation(), e.preventDefault(), e.stopImmediatePropagation();
|
|
6282
|
-
},
|
|
6283
|
-
function
|
|
6284
|
-
var i = B(null), a = i[0], o = i[1], s = z(!1), c = n instanceof Array ? r instanceof Array ? void 0 : r : n, l =
|
|
6288
|
+
}, Cs = typeof window < "u" ? L : F;
|
|
6289
|
+
function ws(e, t, n, r) {
|
|
6290
|
+
var i = B(null), a = i[0], o = i[1], s = z(!1), c = n instanceof Array ? r instanceof Array ? void 0 : r : n, l = as(e) ? e.join(c?.splitKey) : e, u = n instanceof Array ? n : r instanceof Array ? r : void 0, d = N(t, u ?? []), f = z(d);
|
|
6285
6291
|
u ? f.current = d : f.current = t;
|
|
6286
|
-
var p =
|
|
6287
|
-
return
|
|
6288
|
-
if (!(p?.enabled === !1 || !
|
|
6292
|
+
var p = xs(c), m = bs().enabledScopes, h = _s();
|
|
6293
|
+
return Cs(function() {
|
|
6294
|
+
if (!(p?.enabled === !1 || !ms(m, p?.scopes))) {
|
|
6289
6295
|
var e = function(e, t) {
|
|
6290
6296
|
var n;
|
|
6291
|
-
if (t === void 0 && (t = !1), !(
|
|
6297
|
+
if (t === void 0 && (t = !1), !(ds(e) && !fs(e, p?.enableOnFormTags))) {
|
|
6292
6298
|
if (a !== null) {
|
|
6293
6299
|
var r = a.getRootNode();
|
|
6294
6300
|
if ((r instanceof Document || r instanceof ShadowRoot) && r.activeElement !== a && !a.contains(r.activeElement)) {
|
|
6295
|
-
|
|
6301
|
+
Ss(e);
|
|
6296
6302
|
return;
|
|
6297
6303
|
}
|
|
6298
6304
|
}
|
|
6299
|
-
(n = e.target) != null && n.isContentEditable && !(p != null && p.enableOnContentEditable) ||
|
|
6300
|
-
var r, i =
|
|
6301
|
-
if (
|
|
6305
|
+
(n = e.target) != null && n.isContentEditable && !(p != null && p.enableOnContentEditable) || ns(l, p?.splitKey).forEach(function(n) {
|
|
6306
|
+
var r, i = rs(n, p?.combinationKey);
|
|
6307
|
+
if (hs(e, i, p?.ignoreModifiers) || (r = i.keys) != null && r.includes("*")) {
|
|
6302
6308
|
if (p != null && p.ignoreEventWhen != null && p.ignoreEventWhen(e) || t && s.current) return;
|
|
6303
|
-
if (
|
|
6304
|
-
|
|
6309
|
+
if (ls(e, i, p?.preventDefault), !us(e, i, p?.enabled)) {
|
|
6310
|
+
Ss(e);
|
|
6305
6311
|
return;
|
|
6306
6312
|
}
|
|
6307
6313
|
f.current(e, i), t || (s.current = !0);
|
|
@@ -6309,15 +6315,15 @@ function Ss(e, t, n, r) {
|
|
|
6309
6315
|
});
|
|
6310
6316
|
}
|
|
6311
6317
|
}, t = function(t) {
|
|
6312
|
-
t.key !== void 0 && (
|
|
6318
|
+
t.key !== void 0 && (ss(es(t.code)), (p?.keydown === void 0 && p?.keyup !== !0 || p != null && p.keydown) && e(t));
|
|
6313
6319
|
}, n = function(t) {
|
|
6314
|
-
t.key !== void 0 && (
|
|
6320
|
+
t.key !== void 0 && (cs(es(t.code)), s.current = !1, p != null && p.keyup && e(t, !0));
|
|
6315
6321
|
}, r = a || c?.document || document;
|
|
6316
|
-
return r.addEventListener("keyup", n, c?.eventListenerOptions), r.addEventListener("keydown", t, c?.eventListenerOptions), h &&
|
|
6317
|
-
return h.addHotkey(
|
|
6322
|
+
return r.addEventListener("keyup", n, c?.eventListenerOptions), r.addEventListener("keydown", t, c?.eventListenerOptions), h && ns(l, p?.splitKey).forEach(function(e) {
|
|
6323
|
+
return h.addHotkey(rs(e, p?.combinationKey, p?.description));
|
|
6318
6324
|
}), function() {
|
|
6319
|
-
r.removeEventListener("keyup", n, c?.eventListenerOptions), r.removeEventListener("keydown", t, c?.eventListenerOptions), h &&
|
|
6320
|
-
return h.removeHotkey(
|
|
6325
|
+
r.removeEventListener("keyup", n, c?.eventListenerOptions), r.removeEventListener("keydown", t, c?.eventListenerOptions), h && ns(l, p?.splitKey).forEach(function(e) {
|
|
6326
|
+
return h.removeHotkey(rs(e, p?.combinationKey, p?.description));
|
|
6321
6327
|
});
|
|
6322
6328
|
};
|
|
6323
6329
|
}
|
|
@@ -6330,7 +6336,7 @@ function Ss(e, t, n, r) {
|
|
|
6330
6336
|
}
|
|
6331
6337
|
//#endregion
|
|
6332
6338
|
//#region src/lib/config/hotkeys.ts
|
|
6333
|
-
var
|
|
6339
|
+
var Ts = h(), Es = {
|
|
6334
6340
|
CREATE: ["Alt+Ctrl+N", "Alt+Meta+N"],
|
|
6335
6341
|
CLEAR: ["Alt+Ctrl+K", "Alt+Meta+K"],
|
|
6336
6342
|
RIGHT: ["Ctrl+RIGHT", "Meta+RIGHT"],
|
|
@@ -6358,15 +6364,15 @@ var Cs = h(), ws = {
|
|
|
6358
6364
|
FOCUS: ["/", "/"],
|
|
6359
6365
|
ADD: ["Alt+Ctrl+Enter", "Alt+Meta+Enter"],
|
|
6360
6366
|
ESC: ["Esc", "Esc"]
|
|
6361
|
-
},
|
|
6362
|
-
let n =
|
|
6367
|
+
}, Ds = Object.entries(Es).map(([e, t]) => {
|
|
6368
|
+
let n = Ts.isMac && t[1] || t[0];
|
|
6363
6369
|
return {
|
|
6364
6370
|
keybinding: n,
|
|
6365
6371
|
command: e,
|
|
6366
|
-
textKeybinding:
|
|
6367
|
-
iconKeybinding:
|
|
6372
|
+
textKeybinding: Ts.isMac ? n.replace("Meta", "Cmd").replace("Alt", "Option") : n.replace("Ctrl", "Ctrl"),
|
|
6373
|
+
iconKeybinding: Ts.isMac ? n.replace("Meta", "⌘").replace("Alt", "⌥") : n.replace("Ctrl", "Ctrl")
|
|
6368
6374
|
};
|
|
6369
|
-
}).reduce((e, t) => (e[t.command] = t, e), {}),
|
|
6375
|
+
}).reduce((e, t) => (e[t.command] = t, e), {}), Os = zt(({ css: e, token: t }) => ({ hintOverlay: e`
|
|
6370
6376
|
position: fixed;
|
|
6371
6377
|
top: 50%;
|
|
6372
6378
|
left: 50%;
|
|
@@ -6394,8 +6400,8 @@ var Cs = h(), ws = {
|
|
|
6394
6400
|
}
|
|
6395
6401
|
}
|
|
6396
6402
|
` }));
|
|
6397
|
-
function
|
|
6398
|
-
let { enabled: t = !0, message: n, throttleDelay: r = 3e3 } = e || {}, i = o(), { styles: a } =
|
|
6403
|
+
function ks(e) {
|
|
6404
|
+
let { enabled: t = !0, message: n, throttleDelay: r = 3e3 } = e || {}, i = o(), { styles: a } = Os(), [s, c] = B(!1), l = z(null), u = z(!1), d = R(() => (0, X.throttle)(() => {
|
|
6399
6405
|
u.current || (u.current = !0, c(!0), l.current && clearTimeout(l.current), l.current = setTimeout(() => {
|
|
6400
6406
|
c(!1), u.current = !1;
|
|
6401
6407
|
}, 2e3));
|
|
@@ -6403,7 +6409,7 @@ function Ds(e) {
|
|
|
6403
6409
|
leading: !0,
|
|
6404
6410
|
trailing: !1
|
|
6405
6411
|
}), [r]);
|
|
6406
|
-
return
|
|
6412
|
+
return ws(Es.ESC, () => {
|
|
6407
6413
|
t && d();
|
|
6408
6414
|
}, { enabled: t }), F(() => () => {
|
|
6409
6415
|
l.current && clearTimeout(l.current), d.cancel();
|
|
@@ -6414,8 +6420,8 @@ function Ds(e) {
|
|
|
6414
6420
|
}
|
|
6415
6421
|
//#endregion
|
|
6416
6422
|
//#region src/lib/components/scroller-modal/gs-drawer.tsx
|
|
6417
|
-
var
|
|
6418
|
-
let { title: t, closable: n = !0, mask: r, styles: i, ...a } = e, { EscHint: o } =
|
|
6423
|
+
var As = (e) => {
|
|
6424
|
+
let { title: t, closable: n = !0, mask: r, styles: i, ...a } = e, { EscHint: o } = ks({ enabled: !e.keyboard && e.open }), s = (t) => {
|
|
6419
6425
|
e.onClose?.(t);
|
|
6420
6426
|
};
|
|
6421
6427
|
return /* @__PURE__ */ H(V, { children: /* @__PURE__ */ U(dt, {
|
|
@@ -6455,11 +6461,11 @@ var Os = (e) => {
|
|
|
6455
6461
|
}),
|
|
6456
6462
|
children: [a.children, o]
|
|
6457
6463
|
}) });
|
|
6458
|
-
},
|
|
6464
|
+
}, js = {
|
|
6459
6465
|
padding: "16px 24px 8px",
|
|
6460
6466
|
display: "flex",
|
|
6461
6467
|
justifyContent: "flex-end"
|
|
6462
|
-
},
|
|
6468
|
+
}, Ms = ({ title: e, open: t, onCancel: n, onSubmit: r, children: i, width: a = 600, subTitle: o, footer: s, loading: c }) => /* @__PURE__ */ H(As, {
|
|
6463
6469
|
title: /* @__PURE__ */ U(V, { children: [e, o && /* @__PURE__ */ H(Mt, {
|
|
6464
6470
|
variant: "outlined",
|
|
6465
6471
|
style: {
|
|
@@ -6480,17 +6486,17 @@ var Os = (e) => {
|
|
|
6480
6486
|
keyboard: !1,
|
|
6481
6487
|
styles: { wrapper: { width: a } },
|
|
6482
6488
|
footer: !1,
|
|
6483
|
-
children: /* @__PURE__ */ H(
|
|
6489
|
+
children: /* @__PURE__ */ H(wa, {
|
|
6484
6490
|
styles: { container: { paddingBlock: 0 } },
|
|
6485
|
-
footer: s ?? /* @__PURE__ */ H(
|
|
6491
|
+
footer: s ?? /* @__PURE__ */ H(Xo, {
|
|
6486
6492
|
onOk: r,
|
|
6487
6493
|
onCancel: n,
|
|
6488
6494
|
loading: c,
|
|
6489
|
-
style:
|
|
6495
|
+
style: js
|
|
6490
6496
|
}),
|
|
6491
6497
|
children: i
|
|
6492
6498
|
})
|
|
6493
|
-
}),
|
|
6499
|
+
}), Ns = (e) => {
|
|
6494
6500
|
let t = o(), { data: n, optionNode: r, notFoundContent: i } = e;
|
|
6495
6501
|
if (n.value === "__EMPTY__") return /* @__PURE__ */ H(pt, {
|
|
6496
6502
|
image: !1,
|
|
@@ -6512,7 +6518,7 @@ var Os = (e) => {
|
|
|
6512
6518
|
ghost: !0,
|
|
6513
6519
|
children: /* @__PURE__ */ H("span", { children: n.label })
|
|
6514
6520
|
});
|
|
6515
|
-
},
|
|
6521
|
+
}, Ps = (e) => {
|
|
6516
6522
|
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, alwaysFocus: u = !1, optionNode: d, notFoundContent: p, size: m = "middle", tagRender: h, displayRender: g, ..._ } = e, y = o(), [b, x] = B(!1), S = z(null), [C, w] = B(!1), T = "";
|
|
6517
6523
|
try {
|
|
6518
6524
|
if (l) {
|
|
@@ -6549,7 +6555,7 @@ var Os = (e) => {
|
|
|
6549
6555
|
filled: !0,
|
|
6550
6556
|
children: M(e)
|
|
6551
6557
|
});
|
|
6552
|
-
return /* @__PURE__ */ H(
|
|
6558
|
+
return /* @__PURE__ */ H(ao, { children: /* @__PURE__ */ H(io, {
|
|
6553
6559
|
className: (0, Y.default)("seal-select-wrapper", { "seal-cascader-wrapper-small": m === "small" }),
|
|
6554
6560
|
classList: C ? "dropdown-visible" : "",
|
|
6555
6561
|
status: T,
|
|
@@ -6564,7 +6570,7 @@ var Os = (e) => {
|
|
|
6564
6570
|
placeholder: n,
|
|
6565
6571
|
className: m === "small" ? "seal-cascader-small" : "",
|
|
6566
6572
|
suffixIcon: /* @__PURE__ */ H(Z, { type: "icon-down" }),
|
|
6567
|
-
optionRender: (e) => /* @__PURE__ */ H(
|
|
6573
|
+
optionRender: (e) => /* @__PURE__ */ H(Ns, {
|
|
6568
6574
|
data: e,
|
|
6569
6575
|
notFoundContent: p,
|
|
6570
6576
|
optionNode: d
|
|
@@ -6580,7 +6586,7 @@ var Os = (e) => {
|
|
|
6580
6586
|
onOpenChange: j
|
|
6581
6587
|
})
|
|
6582
6588
|
}) });
|
|
6583
|
-
},
|
|
6589
|
+
}, Fs = J.div`
|
|
6584
6590
|
display: flex;
|
|
6585
6591
|
align-items: center;
|
|
6586
6592
|
justify-content: space-between;
|
|
@@ -6590,7 +6596,7 @@ var Os = (e) => {
|
|
|
6590
6596
|
.ant-checkbox-wrapper {
|
|
6591
6597
|
margin-top: 0 !important;
|
|
6592
6598
|
}
|
|
6593
|
-
`,
|
|
6599
|
+
`, Is = (e) => {
|
|
6594
6600
|
let { label: t, checked: n, required: r, description: i, isInFormItems: a = !0, defaultChecked: o, checkStatus: s, ...c } = e, l = "";
|
|
6595
6601
|
try {
|
|
6596
6602
|
a && (l = K?.Item?.useStatus?.()?.status || "");
|
|
@@ -6600,15 +6606,15 @@ var Os = (e) => {
|
|
|
6600
6606
|
let u = (t) => {
|
|
6601
6607
|
e.onChange?.(t);
|
|
6602
6608
|
};
|
|
6603
|
-
return /* @__PURE__ */ H(
|
|
6609
|
+
return /* @__PURE__ */ H(io, {
|
|
6604
6610
|
required: r,
|
|
6605
6611
|
status: s || l,
|
|
6606
6612
|
className: "no-focus",
|
|
6607
|
-
children: /* @__PURE__ */ U(
|
|
6613
|
+
children: /* @__PURE__ */ U(Fs, {
|
|
6608
6614
|
onClick: () => {
|
|
6609
6615
|
u({ target: { checked: !n } });
|
|
6610
6616
|
},
|
|
6611
|
-
children: [/* @__PURE__ */ H(
|
|
6617
|
+
children: [/* @__PURE__ */ H(Ua, {
|
|
6612
6618
|
label: t,
|
|
6613
6619
|
description: i
|
|
6614
6620
|
}), /* @__PURE__ */ H(G, {
|
|
@@ -6624,7 +6630,7 @@ var Os = (e) => {
|
|
|
6624
6630
|
})]
|
|
6625
6631
|
})
|
|
6626
6632
|
});
|
|
6627
|
-
},
|
|
6633
|
+
}, Ls = ({ description: e, label: t, checked: n, onChange: r, ...i }) => /* @__PURE__ */ H(G, {
|
|
6628
6634
|
className: "p-l-6",
|
|
6629
6635
|
checked: n,
|
|
6630
6636
|
onChange: r,
|
|
@@ -6639,17 +6645,17 @@ var Os = (e) => {
|
|
|
6639
6645
|
style: { color: "var(--ant-color-text-tertiary)" }
|
|
6640
6646
|
})]
|
|
6641
6647
|
})
|
|
6642
|
-
}),
|
|
6648
|
+
}), Rs = E.memo((e) => {
|
|
6643
6649
|
let t = o(), { type: n, label: r, attrs: i, style: a, value: s, ...c } = e, l = N((n) => {
|
|
6644
6650
|
switch (n) {
|
|
6645
|
-
case "Checkbox": return /* @__PURE__ */ H(
|
|
6651
|
+
case "Checkbox": return /* @__PURE__ */ H(Ua, {
|
|
6646
6652
|
required: e.required,
|
|
6647
6653
|
label: r.isLocalized ? t.formatMessage({ id: r.text }) : r.text
|
|
6648
6654
|
});
|
|
6649
6655
|
default: return null;
|
|
6650
6656
|
}
|
|
6651
6657
|
}, [t, n]), u = R(() => n === "Checkbox" ? { checked: s } : { value: s }, [n, s]);
|
|
6652
|
-
return E.createElement(
|
|
6658
|
+
return E.createElement(wo[n], {
|
|
6653
6659
|
...c,
|
|
6654
6660
|
...i,
|
|
6655
6661
|
...u,
|
|
@@ -6659,11 +6665,11 @@ var Os = (e) => {
|
|
|
6659
6665
|
},
|
|
6660
6666
|
label: r.isLocalized ? t.formatMessage({ id: r.text }) : r.text
|
|
6661
6667
|
}, l(n));
|
|
6662
|
-
}),
|
|
6668
|
+
}), zs = J.div`
|
|
6663
6669
|
display: flex;
|
|
6664
6670
|
align-items: center;
|
|
6665
6671
|
gap: 8px;
|
|
6666
|
-
`,
|
|
6672
|
+
`, Bs = J.div`
|
|
6667
6673
|
.ant-select-item {
|
|
6668
6674
|
padding-inline-start: 8px;
|
|
6669
6675
|
&:hover {
|
|
@@ -6677,7 +6683,7 @@ var Os = (e) => {
|
|
|
6677
6683
|
background-color: var(--ant-select-option-active-bg);
|
|
6678
6684
|
}
|
|
6679
6685
|
}
|
|
6680
|
-
`,
|
|
6686
|
+
`, Vs = J.div`
|
|
6681
6687
|
margin-bottom: 10px;
|
|
6682
6688
|
padding: 5px 8px;
|
|
6683
6689
|
font-size: 12px;
|
|
@@ -6685,9 +6691,9 @@ var Os = (e) => {
|
|
|
6685
6691
|
.ant-checkbox-wrapper {
|
|
6686
6692
|
color: var(--ant-color-text-tertiary);
|
|
6687
6693
|
}
|
|
6688
|
-
`,
|
|
6694
|
+
`, Hs = J(Mt)`
|
|
6689
6695
|
border-radius: 12px;
|
|
6690
|
-
`,
|
|
6696
|
+
`, Us = A((e, t) => {
|
|
6691
6697
|
let n = o(), { options: r = [], showTags: i, styles: a = {}, optionLabelRender: s, maxTagCount: c, ...l } = e, [u, d] = E.useState({
|
|
6692
6698
|
checked: !1,
|
|
6693
6699
|
indeterminate: !1
|
|
@@ -6697,7 +6703,7 @@ var Os = (e) => {
|
|
|
6697
6703
|
}, [r]);
|
|
6698
6704
|
let y = (e, t) => {
|
|
6699
6705
|
let { value: n, label: r } = e;
|
|
6700
|
-
return /* @__PURE__ */ U(
|
|
6706
|
+
return /* @__PURE__ */ U(zs, { children: [l.value?.includes?.(n) ? /* @__PURE__ */ H(G, { checked: !0 }) : /* @__PURE__ */ H(G, {}), /* @__PURE__ */ H(f, {
|
|
6701
6707
|
ghost: !0,
|
|
6702
6708
|
children: s ? s(e) : r
|
|
6703
6709
|
})] });
|
|
@@ -6709,7 +6715,7 @@ var Os = (e) => {
|
|
|
6709
6715
|
});
|
|
6710
6716
|
let r = [...l.value || []];
|
|
6711
6717
|
r = t ? Array.from(new Set([...r, ...n])) : r.filter((e) => !n.includes(e)), l.onChange?.(r, p || []);
|
|
6712
|
-
}, x = (e) => /* @__PURE__ */ U(
|
|
6718
|
+
}, x = (e) => /* @__PURE__ */ U(Bs, { children: [l.mode === "multiple" && /* @__PURE__ */ H(Vs, { children: /* @__PURE__ */ H(G, {
|
|
6713
6719
|
checked: u.checked,
|
|
6714
6720
|
indeterminate: u.indeterminate,
|
|
6715
6721
|
onChange: b,
|
|
@@ -6735,7 +6741,7 @@ var Os = (e) => {
|
|
|
6735
6741
|
});
|
|
6736
6742
|
}, T = (e) => {
|
|
6737
6743
|
let { label: t } = e, r = e.isMaxTag ? t.slice(0, -3).slice(1) : t;
|
|
6738
|
-
return /* @__PURE__ */ H(
|
|
6744
|
+
return /* @__PURE__ */ H(Hs, {
|
|
6739
6745
|
variant: "filled",
|
|
6740
6746
|
closable: e.closable,
|
|
6741
6747
|
onClose: e.onClose,
|
|
@@ -6779,7 +6785,7 @@ var Os = (e) => {
|
|
|
6779
6785
|
})), /* @__PURE__ */ H("div", {
|
|
6780
6786
|
ref: h,
|
|
6781
6787
|
style: { ...a.wrapper },
|
|
6782
|
-
children: /* @__PURE__ */ H(
|
|
6788
|
+
children: /* @__PURE__ */ H(_o, {
|
|
6783
6789
|
...l,
|
|
6784
6790
|
style: {
|
|
6785
6791
|
width: l.style?.width || "100%",
|
|
@@ -6806,7 +6812,7 @@ var Os = (e) => {
|
|
|
6806
6812
|
children: e.children
|
|
6807
6813
|
})
|
|
6808
6814
|
});
|
|
6809
|
-
}),
|
|
6815
|
+
}), Ws = (e) => {
|
|
6810
6816
|
let { label: t, placeholder: n, children: r, required: i, description: a, options: s, allowNull: c, isInFormItems: l = !0, notFoundContent: u = null, ...d } = e, f = o(), [p, m] = B(!1), h = z(null), g = "";
|
|
6811
6817
|
try {
|
|
6812
6818
|
g = l ? K?.Item?.useStatus?.()?.status || "" : e.status || "";
|
|
@@ -6826,7 +6832,7 @@ var Os = (e) => {
|
|
|
6826
6832
|
}, S = (t) => {
|
|
6827
6833
|
c && e.value === null ? m(!0) : e.value || m(!1), e.onBlur?.(t);
|
|
6828
6834
|
};
|
|
6829
|
-
return /* @__PURE__ */ H(
|
|
6835
|
+
return /* @__PURE__ */ H(ao, { children: /* @__PURE__ */ H(io, {
|
|
6830
6836
|
className: "seal-select-wrapper",
|
|
6831
6837
|
status: g,
|
|
6832
6838
|
label: t,
|
|
@@ -6835,7 +6841,7 @@ var Os = (e) => {
|
|
|
6835
6841
|
description: a,
|
|
6836
6842
|
disabled: e.disabled,
|
|
6837
6843
|
onClick: y,
|
|
6838
|
-
children: /* @__PURE__ */ H(
|
|
6844
|
+
children: /* @__PURE__ */ H(Us, {
|
|
6839
6845
|
...d,
|
|
6840
6846
|
ref: h,
|
|
6841
6847
|
options: r ? null : _,
|
|
@@ -6846,7 +6852,7 @@ var Os = (e) => {
|
|
|
6846
6852
|
children: r
|
|
6847
6853
|
})
|
|
6848
6854
|
}) });
|
|
6849
|
-
},
|
|
6855
|
+
}, Gs = J(W)`
|
|
6850
6856
|
background-color: transparent !important;
|
|
6851
6857
|
padding: 0;
|
|
6852
6858
|
.anticon {
|
|
@@ -6859,13 +6865,13 @@ var Os = (e) => {
|
|
|
6859
6865
|
color: var(--ant-color-text-tertiary);
|
|
6860
6866
|
}
|
|
6861
6867
|
}
|
|
6862
|
-
`,
|
|
6868
|
+
`, Ks = ({ onClick: e }) => /* @__PURE__ */ H(Gs, {
|
|
6863
6869
|
icon: /* @__PURE__ */ H(se, {}),
|
|
6864
6870
|
shape: "circle",
|
|
6865
6871
|
type: "text",
|
|
6866
6872
|
onClick: e,
|
|
6867
6873
|
size: "small"
|
|
6868
|
-
}),
|
|
6874
|
+
}), qs = ({ layout: e = {
|
|
6869
6875
|
rows: 1,
|
|
6870
6876
|
cols: 1
|
|
6871
6877
|
}, column: t = 2, dataList: n, editable: r, responseable: i, gutter: a, onDelete: o, onClick: s, autoBgColor: c, autoSize: l, style: u }) => {
|
|
@@ -6990,7 +6996,7 @@ var Os = (e) => {
|
|
|
6990
6996
|
onClick: () => f(e)
|
|
6991
6997
|
})) })
|
|
6992
6998
|
}) : null });
|
|
6993
|
-
},
|
|
6999
|
+
}, Js = (e) => {
|
|
6994
7000
|
let { data: t, onDeleteImage: n, onUploadImage: r, onChange: i, onSelect: a, onDelete: s, style: c, label: l, placeholder: u, height: d = 46 } = e, f = o(), p = E.useRef(null), [m, h] = B({
|
|
6995
7001
|
minRows: 1,
|
|
6996
7002
|
maxRows: 1,
|
|
@@ -7095,7 +7101,7 @@ var Os = (e) => {
|
|
|
7095
7101
|
children: [l && /* @__PURE__ */ H("span", {
|
|
7096
7102
|
className: "title",
|
|
7097
7103
|
children: l
|
|
7098
|
-
}), /* @__PURE__ */ H(
|
|
7104
|
+
}), /* @__PURE__ */ H(qs, {
|
|
7099
7105
|
editable: !0,
|
|
7100
7106
|
dataList: t.imgs,
|
|
7101
7107
|
onDelete: D
|
|
@@ -7108,7 +7114,7 @@ var Os = (e) => {
|
|
|
7108
7114
|
children: [x, /* @__PURE__ */ U("div", {
|
|
7109
7115
|
className: "actions",
|
|
7110
7116
|
children: [
|
|
7111
|
-
!k && (t.content || !!t.imgs?.length) && /* @__PURE__ */ H(
|
|
7117
|
+
!k && (t.content || !!t.imgs?.length) && /* @__PURE__ */ H(Ks, { onClick: T }),
|
|
7112
7118
|
S,
|
|
7113
7119
|
/* @__PURE__ */ H(q, {
|
|
7114
7120
|
title: f.formatMessage({ id: "common.button.delete" }),
|
|
@@ -7126,7 +7132,7 @@ var Os = (e) => {
|
|
|
7126
7132
|
]
|
|
7127
7133
|
})
|
|
7128
7134
|
});
|
|
7129
|
-
},
|
|
7135
|
+
}, Ys = J.div`
|
|
7130
7136
|
display: flex;
|
|
7131
7137
|
flex-direction: column;
|
|
7132
7138
|
justify-content: center;
|
|
@@ -7135,15 +7141,15 @@ var Os = (e) => {
|
|
|
7135
7141
|
border-radius: var(--ant-border-radius);
|
|
7136
7142
|
padding: 12px 14px;
|
|
7137
7143
|
min-height: 54px;
|
|
7138
|
-
`,
|
|
7144
|
+
`, Xs = J.div`
|
|
7139
7145
|
display: flex;
|
|
7140
7146
|
justify-content: space-between;
|
|
7141
7147
|
align-items: center;
|
|
7142
|
-
`,
|
|
7148
|
+
`, Zs = (e) => {
|
|
7143
7149
|
let { label: t, description: n, checked: r, defaultChecked: i, onChange: a, children: o, style: s, alwaysShowChildren: c = !0, size: l, btnTips: u } = e, [d, f] = B(i || !1);
|
|
7144
|
-
return /* @__PURE__ */ U(
|
|
7150
|
+
return /* @__PURE__ */ U(Ys, {
|
|
7145
7151
|
style: s,
|
|
7146
|
-
children: [/* @__PURE__ */ U(
|
|
7152
|
+
children: [/* @__PURE__ */ U(Xs, { children: [/* @__PURE__ */ H(Ua, {
|
|
7147
7153
|
label: t,
|
|
7148
7154
|
description: n
|
|
7149
7155
|
}), /* @__PURE__ */ H(q, {
|
|
@@ -7157,7 +7163,7 @@ var Os = (e) => {
|
|
|
7157
7163
|
})
|
|
7158
7164
|
})] }), (c || d) && o]
|
|
7159
7165
|
});
|
|
7160
|
-
},
|
|
7166
|
+
}, Qs = ({ style: e }) => /* @__PURE__ */ U("svg", {
|
|
7161
7167
|
width: "23",
|
|
7162
7168
|
height: "23",
|
|
7163
7169
|
viewBox: "0 0 23 23",
|
|
@@ -7179,7 +7185,7 @@ var Os = (e) => {
|
|
|
7179
7185
|
stopColor: "#f05a28"
|
|
7180
7186
|
})]
|
|
7181
7187
|
}) })]
|
|
7182
|
-
}),
|
|
7188
|
+
}), $s = {
|
|
7183
7189
|
EditOutlined: E.createElement(ge),
|
|
7184
7190
|
ExperimentOutlined: E.createElement(ye),
|
|
7185
7191
|
DeleteOutlined: E.createElement(de),
|
|
@@ -7227,8 +7233,8 @@ var Os = (e) => {
|
|
|
7227
7233
|
Disabled: E.createElement(Z, { type: "icon-disabled" }),
|
|
7228
7234
|
CopyOutlined: E.createElement(ue),
|
|
7229
7235
|
Metrics: E.createElement(Z, { type: "icon-metrics" })
|
|
7230
|
-
},
|
|
7231
|
-
function
|
|
7236
|
+
}, ec = "rgba(0, 0, 255, 0.3)";
|
|
7237
|
+
function tc(e) {
|
|
7232
7238
|
let { isDisabled: t, invertMask: n, maskUpload: r, lineWidth: i, translatePos: a, onSave: o } = e, s = z(!1), c = z(null), l = z(null), u = z(null), d = z([]), f = z([]), p = z(!1), m = z(null), h = z(1), g = z(1), _ = z({
|
|
7233
7239
|
x: 0,
|
|
7234
7240
|
y: 0
|
|
@@ -7300,7 +7306,7 @@ function $s(e) {
|
|
|
7300
7306
|
lineWidth: i
|
|
7301
7307
|
}, {
|
|
7302
7308
|
lineWidth: i,
|
|
7303
|
-
color:
|
|
7309
|
+
color: ec,
|
|
7304
7310
|
compositeOperation: "destination-out"
|
|
7305
7311
|
}), P(o, {
|
|
7306
7312
|
x: r,
|
|
@@ -7308,7 +7314,7 @@ function $s(e) {
|
|
|
7308
7314
|
lineWidth: i
|
|
7309
7315
|
}, {
|
|
7310
7316
|
lineWidth: i,
|
|
7311
|
-
color:
|
|
7317
|
+
color: ec,
|
|
7312
7318
|
compositeOperation: "source-over"
|
|
7313
7319
|
}), o.restore();
|
|
7314
7320
|
}, L = (e) => {
|
|
@@ -7396,7 +7402,7 @@ function $s(e) {
|
|
|
7396
7402
|
}
|
|
7397
7403
|
//#endregion
|
|
7398
7404
|
//#region src/lib/components/image-editor/hooks/use-zoom.ts
|
|
7399
|
-
function
|
|
7405
|
+
function nc(e) {
|
|
7400
7406
|
let t = .2, n = .1, { overlayCanvasRef: r, canvasRef: i, offscreenCanvasRef: a, cursorRef: o, lineWidth: s, translatePos: c, autoScale: l, baseScale: u, isLoadingMaskRef: d } = e, [f, p] = B(1), m = (e) => {
|
|
7401
7407
|
if (l.current <= t || l.current >= 8) return;
|
|
7402
7408
|
let n = r.current.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, c = o / n.width, u = s / n.height;
|
|
@@ -7432,16 +7438,16 @@ function ec(e) {
|
|
|
7432
7438
|
baseScale: u
|
|
7433
7439
|
};
|
|
7434
7440
|
}
|
|
7435
|
-
var
|
|
7441
|
+
var rc = {
|
|
7436
7442
|
"editor-wrapper": "index-module__editor-wrapper___-q6TM",
|
|
7437
7443
|
tools: "index-module__tools___Vs6ua",
|
|
7438
7444
|
"editor-content": "index-module__editor-content___YIk-U",
|
|
7439
7445
|
"overlay-canvas": "index-module__overlay-canvas___SaATc",
|
|
7440
7446
|
"overlay-canvas--disabled": "index-module__overlay-canvas--disabled___5TrsB"
|
|
7441
|
-
},
|
|
7447
|
+
}, ic = (e) => {
|
|
7442
7448
|
let { disabled: t, loading: n, lineWidth: r, invertMask: i, accept: a, handleBrushSizeChange: s, undo: c, onClear: l, handleFitView: u, handleUpdateImageList: d, handleUpdateMaskList: f } = e, p = o();
|
|
7443
7449
|
return /* @__PURE__ */ U("div", {
|
|
7444
|
-
className:
|
|
7450
|
+
className: rc.tools,
|
|
7445
7451
|
children: [
|
|
7446
7452
|
/* @__PURE__ */ H(q, {
|
|
7447
7453
|
placement: "bottomLeft",
|
|
@@ -7482,7 +7488,7 @@ var tc = {
|
|
|
7482
7488
|
/* @__PURE__ */ H(q, {
|
|
7483
7489
|
title: /* @__PURE__ */ U("span", { children: [
|
|
7484
7490
|
"[",
|
|
7485
|
-
|
|
7491
|
+
Ds.UNDO.textKeybinding,
|
|
7486
7492
|
"]",
|
|
7487
7493
|
/* @__PURE__ */ H("span", {
|
|
7488
7494
|
className: "m-l-5",
|
|
@@ -7533,7 +7539,7 @@ var tc = {
|
|
|
7533
7539
|
})
|
|
7534
7540
|
]
|
|
7535
7541
|
});
|
|
7536
|
-
},
|
|
7542
|
+
}, ac = (e) => {
|
|
7537
7543
|
let t = o(), { disabled: n, isOriginal: r, invertMask: i, handleOnChangeMask: a, downloadMask: s, download: c } = e;
|
|
7538
7544
|
return /* @__PURE__ */ U("div", {
|
|
7539
7545
|
className: "tools",
|
|
@@ -7573,7 +7579,7 @@ var tc = {
|
|
|
7573
7579
|
})
|
|
7574
7580
|
})]
|
|
7575
7581
|
});
|
|
7576
|
-
},
|
|
7582
|
+
}, oc = J.div`
|
|
7577
7583
|
position: absolute;
|
|
7578
7584
|
top: 0;
|
|
7579
7585
|
bottom: 0;
|
|
@@ -7583,9 +7589,9 @@ var tc = {
|
|
|
7583
7589
|
height: 100%;
|
|
7584
7590
|
width: ${(e) => `${e.width ? `${e.width}px` : "100%"}`};
|
|
7585
7591
|
z-index: 100;
|
|
7586
|
-
`,
|
|
7592
|
+
`, sc = (e) => {
|
|
7587
7593
|
let { width: t, height: n } = e;
|
|
7588
|
-
return /* @__PURE__ */ H(
|
|
7594
|
+
return /* @__PURE__ */ H(oc, {
|
|
7589
7595
|
width: t,
|
|
7590
7596
|
height: n,
|
|
7591
7597
|
children: /* @__PURE__ */ H(Ot, {
|
|
@@ -7593,7 +7599,7 @@ var tc = {
|
|
|
7593
7599
|
size: "middle"
|
|
7594
7600
|
})
|
|
7595
7601
|
});
|
|
7596
|
-
},
|
|
7602
|
+
}, cc = "rgba(0, 0, 255, 0.3)", lc = A(({ loading: e, imageSrc: t, disabled: n, imageStatus: r, maskUpload: i, accept: a, onSave: o, onScaleImageSize: s, handleUpdateImageList: c, handleUpdateMaskList: l }, u) => {
|
|
7597
7603
|
let d = z(null), f = z(null), p = z(null), [m, h] = B(60), g = z({
|
|
7598
7604
|
x: 0,
|
|
7599
7605
|
y: 0
|
|
@@ -7601,14 +7607,14 @@ var tc = {
|
|
|
7601
7607
|
width: 0,
|
|
7602
7608
|
height: 0,
|
|
7603
7609
|
loading: !1
|
|
7604
|
-
}), { canvasRef: C, overlayCanvasRef: w, offscreenCanvasRef: T, cursorRef: E, strokesRef: D, currentStroke: O, mouseDownState: k, autoScale: A, baseScale: j, maskStorkeRef: M, isLoadingMaskRef: P, setMaskStrokes: L, draw: ee, drawStroke: V, startDrawing: te, endDrawing: ne, handleMouseMove: re, handleMouseLeave: ie, handleMouseEnter: ae, saveImage: oe, resetCanvas: se, creatOffscreenCanvas: ce, generateMask: le, getTransformLineWidth: ue, getTransformedPoint: de, setStrokes: fe, setTransform: pe, clearOverlayCanvas: me, clearCanvas: he, fitView: ge, handleMouseDown: _e, handleMouseUp: ve } =
|
|
7610
|
+
}), { canvasRef: C, overlayCanvasRef: w, offscreenCanvasRef: T, cursorRef: E, strokesRef: D, currentStroke: O, mouseDownState: k, autoScale: A, baseScale: j, maskStorkeRef: M, isLoadingMaskRef: P, setMaskStrokes: L, draw: ee, drawStroke: V, startDrawing: te, endDrawing: ne, handleMouseMove: re, handleMouseLeave: ie, handleMouseEnter: ae, saveImage: oe, resetCanvas: se, creatOffscreenCanvas: ce, generateMask: le, getTransformLineWidth: ue, getTransformedPoint: de, setStrokes: fe, setTransform: pe, clearOverlayCanvas: me, clearCanvas: he, fitView: ge, handleMouseDown: _e, handleMouseUp: ve } = tc({
|
|
7605
7611
|
lineWidth: m,
|
|
7606
7612
|
translatePos: g,
|
|
7607
7613
|
isDisabled: n,
|
|
7608
7614
|
invertMask: v,
|
|
7609
7615
|
maskUpload: i,
|
|
7610
7616
|
onSave: o
|
|
7611
|
-
}), { handleOnWheel: ye, setActiveScale: be, activeScale: xe } =
|
|
7617
|
+
}), { handleOnWheel: ye, setActiveScale: be, activeScale: xe } = nc({
|
|
7612
7618
|
overlayCanvasRef: w,
|
|
7613
7619
|
canvasRef: C,
|
|
7614
7620
|
offscreenCanvasRef: T,
|
|
@@ -7767,10 +7773,10 @@ var tc = {
|
|
|
7767
7773
|
}, [i]), F(() => {
|
|
7768
7774
|
Se && E.current && (E.current.style.display = "none");
|
|
7769
7775
|
}, [Se]), /* @__PURE__ */ U("div", {
|
|
7770
|
-
className:
|
|
7776
|
+
className: rc["editor-wrapper"],
|
|
7771
7777
|
children: [/* @__PURE__ */ U("div", {
|
|
7772
7778
|
className: "flex-between",
|
|
7773
|
-
children: [/* @__PURE__ */ H(
|
|
7779
|
+
children: [/* @__PURE__ */ H(ic, {
|
|
7774
7780
|
handleBrushSizeChange: Le,
|
|
7775
7781
|
undo: Oe,
|
|
7776
7782
|
onClear: Te,
|
|
@@ -7782,7 +7788,7 @@ var tc = {
|
|
|
7782
7788
|
invertMask: v,
|
|
7783
7789
|
loading: e,
|
|
7784
7790
|
accept: a
|
|
7785
|
-
}), /* @__PURE__ */ H(
|
|
7791
|
+
}), /* @__PURE__ */ H(ac, {
|
|
7786
7792
|
handleOnChangeMask: Re,
|
|
7787
7793
|
invertMask: v,
|
|
7788
7794
|
downloadMask: we,
|
|
@@ -7792,7 +7798,7 @@ var tc = {
|
|
|
7792
7798
|
maskUpload: i
|
|
7793
7799
|
})]
|
|
7794
7800
|
}), /* @__PURE__ */ U("div", {
|
|
7795
|
-
className:
|
|
7801
|
+
className: rc["editor-content"],
|
|
7796
7802
|
ref: p,
|
|
7797
7803
|
style: {
|
|
7798
7804
|
position: "relative",
|
|
@@ -7801,7 +7807,7 @@ var tc = {
|
|
|
7801
7807
|
flex: 1
|
|
7802
7808
|
},
|
|
7803
7809
|
children: [
|
|
7804
|
-
x.loading && /* @__PURE__ */ H(
|
|
7810
|
+
x.loading && /* @__PURE__ */ H(sc, {
|
|
7805
7811
|
width: x.width,
|
|
7806
7812
|
height: x.height
|
|
7807
7813
|
}),
|
|
@@ -7814,7 +7820,7 @@ var tc = {
|
|
|
7814
7820
|
}),
|
|
7815
7821
|
/* @__PURE__ */ H("canvas", {
|
|
7816
7822
|
ref: w,
|
|
7817
|
-
className: (0, Y.default)(
|
|
7823
|
+
className: (0, Y.default)(rc["overlay-canvas"], { [rc["overlay-canvas--disabled"]]: Se }),
|
|
7818
7824
|
style: {
|
|
7819
7825
|
position: "absolute",
|
|
7820
7826
|
zIndex: 10,
|
|
@@ -7842,7 +7848,7 @@ var tc = {
|
|
|
7842
7848
|
position: "fixed",
|
|
7843
7849
|
width: m * xe,
|
|
7844
7850
|
height: m * xe,
|
|
7845
|
-
backgroundColor:
|
|
7851
|
+
backgroundColor: cc,
|
|
7846
7852
|
borderRadius: "50%",
|
|
7847
7853
|
pointerEvents: "none",
|
|
7848
7854
|
cursor: "none",
|
|
@@ -7852,21 +7858,21 @@ var tc = {
|
|
|
7852
7858
|
]
|
|
7853
7859
|
})]
|
|
7854
7860
|
});
|
|
7855
|
-
}),
|
|
7861
|
+
}), uc = E.memo(lc);
|
|
7856
7862
|
//#endregion
|
|
7857
7863
|
//#region src/lib/components/image-editor/extract-image-colors.ts
|
|
7858
|
-
function
|
|
7864
|
+
function dc(e, t) {
|
|
7859
7865
|
let n = document.createElement("canvas");
|
|
7860
7866
|
return n.width = e, n.height = t, {
|
|
7861
7867
|
canvas: n,
|
|
7862
7868
|
ctx: n.getContext("2d")
|
|
7863
7869
|
};
|
|
7864
7870
|
}
|
|
7865
|
-
function
|
|
7871
|
+
function fc(e, t, n, r) {
|
|
7866
7872
|
let i = (n * r + t) * 4;
|
|
7867
7873
|
return e[i] === 255 && e[i + 1] === 255 && e[i + 2] === 255;
|
|
7868
7874
|
}
|
|
7869
|
-
function
|
|
7875
|
+
function pc(e, t, n, r, i, a, o) {
|
|
7870
7876
|
let s = [[r, i]], c = [
|
|
7871
7877
|
[1, 0],
|
|
7872
7878
|
[-1, 0],
|
|
@@ -7879,43 +7885,43 @@ function dc(e, t, n, r, i, a, o) {
|
|
|
7879
7885
|
];
|
|
7880
7886
|
for (; s.length;) {
|
|
7881
7887
|
let [r, i] = s.pop();
|
|
7882
|
-
r < 0 || i < 0 || r >= t || i >= n || a[i][r] || !
|
|
7888
|
+
r < 0 || i < 0 || r >= t || i >= n || a[i][r] || !fc(e, r, i, t) || (a[i][r] = !0, o.push({
|
|
7883
7889
|
x: r,
|
|
7884
7890
|
y: i
|
|
7885
7891
|
}), c.forEach(([e, t]) => s.push([r + e, i + t])));
|
|
7886
7892
|
}
|
|
7887
7893
|
}
|
|
7888
|
-
function
|
|
7894
|
+
function mc(e) {
|
|
7889
7895
|
let { data: t, width: n, height: r } = e, i = Array.from({ length: r }, () => Array(n).fill(!1)), a = [];
|
|
7890
|
-
for (let e = 0; e < r; e++) for (let o = 0; o < n; o++) if (
|
|
7896
|
+
for (let e = 0; e < r; e++) for (let o = 0; o < n; o++) if (fc(t, o, e, n) && !i[e][o]) {
|
|
7891
7897
|
let s = [];
|
|
7892
|
-
|
|
7898
|
+
pc(t, n, r, o, e, i, s), a.push(s);
|
|
7893
7899
|
}
|
|
7894
7900
|
return a;
|
|
7895
7901
|
}
|
|
7896
|
-
function
|
|
7902
|
+
function hc(e) {
|
|
7897
7903
|
return new Promise((t, n) => {
|
|
7898
7904
|
let r = new Image();
|
|
7899
7905
|
r.src = e, r.onload = () => t(r), r.onerror = () => n(/* @__PURE__ */ Error("Image loading failed"));
|
|
7900
7906
|
});
|
|
7901
7907
|
}
|
|
7902
|
-
async function
|
|
7903
|
-
let t = await
|
|
7908
|
+
async function gc(e) {
|
|
7909
|
+
let t = await hc(e), { canvas: n, ctx: r } = dc(t.width, t.height);
|
|
7904
7910
|
r.drawImage(t, 0, 0);
|
|
7905
|
-
let i =
|
|
7911
|
+
let i = mc(r.getImageData(0, 0, t.width, t.height));
|
|
7906
7912
|
return URL.revokeObjectURL(t.src), i;
|
|
7907
7913
|
}
|
|
7908
7914
|
//#endregion
|
|
7909
7915
|
//#region ../../node_modules/.pnpm/react-intersection-observer@9.16.0_react-dom@18.3.1_react@18.3.1/node_modules/react-intersection-observer/dist/index.mjs
|
|
7910
|
-
var
|
|
7911
|
-
function
|
|
7912
|
-
return e ?
|
|
7916
|
+
var _c = /* @__PURE__ */ new Map(), vc = /* @__PURE__ */ new WeakMap(), yc = 0, bc = void 0;
|
|
7917
|
+
function xc(e) {
|
|
7918
|
+
return e ? vc.has(e) ? vc.get(e) : (yc += 1, vc.set(e, yc.toString()), vc.get(e)) : "0";
|
|
7913
7919
|
}
|
|
7914
|
-
function
|
|
7915
|
-
return Object.keys(e).sort().filter((t) => e[t] !== void 0).map((t) => `${t}_${t === "root" ?
|
|
7920
|
+
function Sc(e) {
|
|
7921
|
+
return Object.keys(e).sort().filter((t) => e[t] !== void 0).map((t) => `${t}_${t === "root" ? xc(e.root) : e[t]}`).toString();
|
|
7916
7922
|
}
|
|
7917
|
-
function
|
|
7918
|
-
let t =
|
|
7923
|
+
function Cc(e) {
|
|
7924
|
+
let t = Sc(e), n = _c.get(t);
|
|
7919
7925
|
if (!n) {
|
|
7920
7926
|
let r = /* @__PURE__ */ new Map(), i, a = new IntersectionObserver((t) => {
|
|
7921
7927
|
t.forEach((t) => {
|
|
@@ -7930,11 +7936,11 @@ function xc(e) {
|
|
|
7930
7936
|
id: t,
|
|
7931
7937
|
observer: a,
|
|
7932
7938
|
elements: r
|
|
7933
|
-
},
|
|
7939
|
+
}, _c.set(t, n);
|
|
7934
7940
|
}
|
|
7935
7941
|
return n;
|
|
7936
7942
|
}
|
|
7937
|
-
function
|
|
7943
|
+
function wc(e, t, n = {}, r = bc) {
|
|
7938
7944
|
if (window.IntersectionObserver === void 0 && r !== void 0) {
|
|
7939
7945
|
let i = e.getBoundingClientRect();
|
|
7940
7946
|
return t(r, {
|
|
@@ -7947,13 +7953,13 @@ function Sc(e, t, n = {}, r = vc) {
|
|
|
7947
7953
|
rootBounds: i
|
|
7948
7954
|
}), () => {};
|
|
7949
7955
|
}
|
|
7950
|
-
let { id: i, observer: a, elements: o } =
|
|
7956
|
+
let { id: i, observer: a, elements: o } = Cc(n), s = o.get(e) || [];
|
|
7951
7957
|
return o.has(e) || o.set(e, s), s.push(t), a.observe(e), function() {
|
|
7952
|
-
s.splice(s.indexOf(t), 1), s.length === 0 && (o.delete(e), a.unobserve(e)), o.size === 0 && (a.disconnect(),
|
|
7958
|
+
s.splice(s.indexOf(t), 1), s.length === 0 && (o.delete(e), a.unobserve(e)), o.size === 0 && (a.disconnect(), _c.delete(i));
|
|
7953
7959
|
};
|
|
7954
7960
|
}
|
|
7955
7961
|
T.Component;
|
|
7956
|
-
function
|
|
7962
|
+
function Tc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i, triggerOnce: a, skip: o, initialInView: s, fallbackInView: c, onChange: l } = {}) {
|
|
7957
7963
|
let [u, d] = T.useState(null), f = T.useRef(l), [p, m] = T.useState({
|
|
7958
7964
|
inView: !!s,
|
|
7959
7965
|
entry: void 0
|
|
@@ -7961,7 +7967,7 @@ function Cc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i
|
|
|
7961
7967
|
f.current = l, T.useEffect(() => {
|
|
7962
7968
|
if (o || !u) return;
|
|
7963
7969
|
let s;
|
|
7964
|
-
return s =
|
|
7970
|
+
return s = wc(u, (e, t) => {
|
|
7965
7971
|
m({
|
|
7966
7972
|
inView: e,
|
|
7967
7973
|
entry: t
|
|
@@ -8000,8 +8006,8 @@ function Cc({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i
|
|
|
8000
8006
|
}
|
|
8001
8007
|
//#endregion
|
|
8002
8008
|
//#region src/lib/components/infinite-scroller/use-infinite-scroll.ts
|
|
8003
|
-
function
|
|
8004
|
-
let { ref: o, inView: s } =
|
|
8009
|
+
function Ec({ total: e, current: t, loading: n, refresh: r, onBottom: i, throttleDelay: a = 300 }) {
|
|
8010
|
+
let { ref: o, inView: s } = Tc({ threshold: .2 }), c = z(!0), l = Bt((0, X.throttle)(() => {
|
|
8005
8011
|
n || t >= e || (i?.(), r(t + 1));
|
|
8006
8012
|
}, a));
|
|
8007
8013
|
return F(() => {
|
|
@@ -8019,8 +8025,8 @@ function wc({ total: e, current: t, loading: n, refresh: r, onBottom: i, throttl
|
|
|
8019
8025
|
}
|
|
8020
8026
|
//#endregion
|
|
8021
8027
|
//#region src/lib/components/infinite-scroller/index.tsx
|
|
8022
|
-
var
|
|
8023
|
-
let { children: t, ...n } = e, r = o(), { observerRef: i, throttledLoadMore: a } =
|
|
8028
|
+
var Dc = (e) => {
|
|
8029
|
+
let { children: t, ...n } = e, r = o(), { observerRef: i, throttledLoadMore: a } = Ec(n);
|
|
8024
8030
|
return /* @__PURE__ */ U("div", {
|
|
8025
8031
|
className: "relative",
|
|
8026
8032
|
style: { width: "100%" },
|
|
@@ -8048,18 +8054,18 @@ var Tc = (e) => {
|
|
|
8048
8054
|
/* @__PURE__ */ H(mt.BackTop, { visibilityHeight: 1e3 })
|
|
8049
8055
|
]
|
|
8050
8056
|
});
|
|
8051
|
-
},
|
|
8052
|
-
let e = P(
|
|
8057
|
+
}, Oc = O({}), kc = () => {
|
|
8058
|
+
let e = P(Oc);
|
|
8053
8059
|
if (!e) throw Error("useScrollerContext must be used within a ScrollerProvider");
|
|
8054
8060
|
return e;
|
|
8055
|
-
},
|
|
8061
|
+
}, Ac = ({ children: e, value: t }) => /* @__PURE__ */ H(Oc.Provider, {
|
|
8056
8062
|
value: t,
|
|
8057
8063
|
children: e
|
|
8058
|
-
}),
|
|
8064
|
+
}), jc = J.div`
|
|
8059
8065
|
display: flex;
|
|
8060
8066
|
flex-wrap: wrap;
|
|
8061
8067
|
gap: 6px;
|
|
8062
|
-
`,
|
|
8068
|
+
`, Mc = ({ labels: e }) => /* @__PURE__ */ H(jc, { children: X.default.map(e, (e, t) => /* @__PURE__ */ U(f, {
|
|
8063
8069
|
className: "m-r-0",
|
|
8064
8070
|
maxWidth: 155,
|
|
8065
8071
|
style: {
|
|
@@ -8067,12 +8073,12 @@ var Tc = (e) => {
|
|
|
8067
8073
|
borderRadius: 12
|
|
8068
8074
|
},
|
|
8069
8075
|
children: [/* @__PURE__ */ H("span", { children: t }), /* @__PURE__ */ U("span", { children: [":", e] })]
|
|
8070
|
-
}, t)) }),
|
|
8071
|
-
let e = E.useContext(
|
|
8076
|
+
}, t)) }), Nc = E.createContext({}), Pc = () => {
|
|
8077
|
+
let e = E.useContext(Nc);
|
|
8072
8078
|
if (!e) throw Error("useLabelSelectorContext must be used within a LabelSelectorProvider");
|
|
8073
8079
|
return e;
|
|
8074
|
-
},
|
|
8075
|
-
let d = o(), [f, p] = B(!1), { options: m, placeholder: h = [] } =
|
|
8080
|
+
}, Fc = ({ labels: e, label: t, labelList: n, seperator: r, keyAddon: i, valueAddon: a, disabled: s, onChange: c, onDelete: l, onBlur: u }) => {
|
|
8081
|
+
let d = o(), [f, p] = B(!1), { options: m, placeholder: h = [] } = Pc(), g = m?.filter((n) => !X.default.has(e, n.value) || n.value === t.key), _ = R(() => m?.find((e) => e.value === t.key)?.children || [], [t.key, m]), v = (e) => {
|
|
8076
8082
|
c?.({
|
|
8077
8083
|
key: t.key,
|
|
8078
8084
|
value: e
|
|
@@ -8099,7 +8105,7 @@ var Tc = (e) => {
|
|
|
8099
8105
|
children: i ?? /* @__PURE__ */ H(q, {
|
|
8100
8106
|
open: f,
|
|
8101
8107
|
title: d.formatMessage({ id: "resources.table.key.tips" }),
|
|
8102
|
-
children: /* @__PURE__ */ H(
|
|
8108
|
+
children: /* @__PURE__ */ H(so, {
|
|
8103
8109
|
options: g,
|
|
8104
8110
|
disabled: s,
|
|
8105
8111
|
checkStatus: "success",
|
|
@@ -8116,7 +8122,7 @@ var Tc = (e) => {
|
|
|
8116
8122
|
}),
|
|
8117
8123
|
/* @__PURE__ */ H("div", {
|
|
8118
8124
|
className: "label-value",
|
|
8119
|
-
children: a ?? /* @__PURE__ */ H(
|
|
8125
|
+
children: a ?? /* @__PURE__ */ H(so, {
|
|
8120
8126
|
options: _,
|
|
8121
8127
|
disabled: s,
|
|
8122
8128
|
checkStatus: t.value ? "success" : "",
|
|
@@ -8136,7 +8142,7 @@ var Tc = (e) => {
|
|
|
8136
8142
|
})
|
|
8137
8143
|
]
|
|
8138
8144
|
});
|
|
8139
|
-
},
|
|
8145
|
+
}, Ic = ({ label: e, labelList: t, seperator: n, keyAddon: r, valueAddon: i, disabled: a, onChange: s, onDelete: c, onPaste: l, onBlur: u }) => {
|
|
8140
8146
|
let d = o(), [f, p] = B(!1), m = (t) => {
|
|
8141
8147
|
let n = t.target.value;
|
|
8142
8148
|
s?.({
|
|
@@ -8166,7 +8172,7 @@ var Tc = (e) => {
|
|
|
8166
8172
|
children: r ?? /* @__PURE__ */ H(q, {
|
|
8167
8173
|
open: f,
|
|
8168
8174
|
title: d.formatMessage({ id: "resources.table.key.tips" }),
|
|
8169
|
-
children: /* @__PURE__ */ H("span", { children: /* @__PURE__ */ H(
|
|
8175
|
+
children: /* @__PURE__ */ H("span", { children: /* @__PURE__ */ H(ho.Input, {
|
|
8170
8176
|
disabled: a,
|
|
8171
8177
|
checkStatus: "success",
|
|
8172
8178
|
label: d.formatMessage({ id: "common.input.key" }),
|
|
@@ -8183,7 +8189,7 @@ var Tc = (e) => {
|
|
|
8183
8189
|
}),
|
|
8184
8190
|
/* @__PURE__ */ H("div", {
|
|
8185
8191
|
className: "label-value",
|
|
8186
|
-
children: i ?? /* @__PURE__ */ H(
|
|
8192
|
+
children: i ?? /* @__PURE__ */ H(ho.Input, {
|
|
8187
8193
|
trim: !1,
|
|
8188
8194
|
disabled: a,
|
|
8189
8195
|
checkStatus: e.value ? "success" : "",
|
|
@@ -8203,7 +8209,7 @@ var Tc = (e) => {
|
|
|
8203
8209
|
})
|
|
8204
8210
|
]
|
|
8205
8211
|
});
|
|
8206
|
-
},
|
|
8212
|
+
}, Lc = ({ labels: e, labelList: t, onChange: n, onLabelListChange: r, onPaste: i, onBlur: a, onDelete: o, disabled: s, label: c, btnText: l, description: u, isAutoComplete: d }) => {
|
|
8207
8213
|
let f = (e) => {
|
|
8208
8214
|
let t = X.default.reduce(e, (e, t) => (t.key && (e[t.key] = t.value), e), {});
|
|
8209
8215
|
n?.(t);
|
|
@@ -8220,13 +8226,13 @@ var Tc = (e) => {
|
|
|
8220
8226
|
let n = X.default.cloneDeep(t);
|
|
8221
8227
|
n.splice(e, 1), r(n), f(n), o?.(e);
|
|
8222
8228
|
};
|
|
8223
|
-
return /* @__PURE__ */ H(
|
|
8229
|
+
return /* @__PURE__ */ H(Ka, {
|
|
8224
8230
|
label: c,
|
|
8225
8231
|
description: u,
|
|
8226
8232
|
onAdd: m,
|
|
8227
8233
|
disabled: s,
|
|
8228
8234
|
btnText: l,
|
|
8229
|
-
children: /* @__PURE__ */ H(V, { children: d ? t?.map((n, r) => /* @__PURE__ */ H(
|
|
8235
|
+
children: /* @__PURE__ */ H(V, { children: d ? t?.map((n, r) => /* @__PURE__ */ H(Fc, {
|
|
8230
8236
|
disabled: s,
|
|
8231
8237
|
label: n,
|
|
8232
8238
|
seperator: ":",
|
|
@@ -8236,7 +8242,7 @@ var Tc = (e) => {
|
|
|
8236
8242
|
onChange: (e) => p(r, e),
|
|
8237
8243
|
onPaste: (e) => i?.(e, r),
|
|
8238
8244
|
onBlur: (e, t) => a?.(e, t, r)
|
|
8239
|
-
}, r)) : t?.map((e, n) => /* @__PURE__ */ H(
|
|
8245
|
+
}, r)) : t?.map((e, n) => /* @__PURE__ */ H(Ic, {
|
|
8240
8246
|
disabled: s,
|
|
8241
8247
|
label: e,
|
|
8242
8248
|
seperator: ":",
|
|
@@ -8247,7 +8253,7 @@ var Tc = (e) => {
|
|
|
8247
8253
|
onBlur: (e, t) => a?.(e, t, n)
|
|
8248
8254
|
}, n)) })
|
|
8249
8255
|
});
|
|
8250
|
-
},
|
|
8256
|
+
}, Rc = ({ value: e, onChange: t, onBlur: n, onDelete: r, disabled: i, label: a, btnText: s, description: c, isAutoComplete: l, enablePaste: u = !0 }) => {
|
|
8251
8257
|
let d = o(), [f, p] = B({}), [m, h] = B([]);
|
|
8252
8258
|
F(() => {
|
|
8253
8259
|
let t = e ?? {};
|
|
@@ -8264,7 +8270,7 @@ var Tc = (e) => {
|
|
|
8264
8270
|
let n = X.default.reduce(e, (e, t) => (t.key && (e[t.key] = t.value), e), {});
|
|
8265
8271
|
t?.(n);
|
|
8266
8272
|
};
|
|
8267
|
-
return /* @__PURE__ */ H(
|
|
8273
|
+
return /* @__PURE__ */ H(Lc, {
|
|
8268
8274
|
disabled: i,
|
|
8269
8275
|
label: a,
|
|
8270
8276
|
btnText: s,
|
|
@@ -8291,16 +8297,16 @@ var Tc = (e) => {
|
|
|
8291
8297
|
onBlur: n,
|
|
8292
8298
|
onDelete: r
|
|
8293
8299
|
});
|
|
8294
|
-
},
|
|
8300
|
+
}, zc = ({ children: e, value: t }) => /* @__PURE__ */ H(Nc.Provider, {
|
|
8295
8301
|
value: t,
|
|
8296
8302
|
children: e
|
|
8297
|
-
}),
|
|
8303
|
+
}), Bc = /[^=]+=[^=]*$/, Vc = (e) => {
|
|
8298
8304
|
let { value: t, label: n, onChange: r, onBlur: i, onPaste: a, sourceOptions: o, trim: s = !0 } = e, c = E.useRef(0), l = E.useRef(""), [u, d] = E.useState([]), f = (e) => {
|
|
8299
8305
|
if (!e) {
|
|
8300
8306
|
d(o || []);
|
|
8301
8307
|
return;
|
|
8302
8308
|
}
|
|
8303
|
-
let t = e.match(
|
|
8309
|
+
let t = e.match(Bc);
|
|
8304
8310
|
if (!t) {
|
|
8305
8311
|
d(X.default.filter(o, (t) => t.label.includes(e)));
|
|
8306
8312
|
return;
|
|
@@ -8312,12 +8318,12 @@ var Tc = (e) => {
|
|
|
8312
8318
|
}
|
|
8313
8319
|
d(X.default.filter(i.opts, (e) => e.label.includes(r)));
|
|
8314
8320
|
}, p = (e) => {
|
|
8315
|
-
let t = l.current.match(
|
|
8321
|
+
let t = l.current.match(Bc);
|
|
8316
8322
|
r(t ? `${X.default.split(t[0], "=")[0]}=${e}` : e?.trim());
|
|
8317
8323
|
}, m = X.default.debounce((e) => {
|
|
8318
8324
|
c.current = e.target.selectionStart, l.current = e.target.value.slice(0, c.current), f(l.current);
|
|
8319
8325
|
}, 100);
|
|
8320
|
-
return /* @__PURE__ */ H(
|
|
8326
|
+
return /* @__PURE__ */ H(so, {
|
|
8321
8327
|
placeholder: e.placeholder,
|
|
8322
8328
|
defaultActiveFirstOption: !0,
|
|
8323
8329
|
value: t,
|
|
@@ -8338,7 +8344,7 @@ var Tc = (e) => {
|
|
|
8338
8344
|
},
|
|
8339
8345
|
onPaste: a
|
|
8340
8346
|
});
|
|
8341
|
-
},
|
|
8347
|
+
}, Hc = (e) => {
|
|
8342
8348
|
let { onRemove: t, onChange: n, onBlur: r, onPaste: i, label: a, value: o, options: s, trim: c = !0, data: l, required: u, renderItem: d } = e, f = (e) => {
|
|
8343
8349
|
n(e);
|
|
8344
8350
|
};
|
|
@@ -8348,7 +8354,7 @@ var Tc = (e) => {
|
|
|
8348
8354
|
onChange: f,
|
|
8349
8355
|
onBlur: r,
|
|
8350
8356
|
onPaste: i
|
|
8351
|
-
}) : /* @__PURE__ */ H(
|
|
8357
|
+
}) : /* @__PURE__ */ H(Vc, {
|
|
8352
8358
|
value: o,
|
|
8353
8359
|
onChange: f,
|
|
8354
8360
|
onBlur: r,
|
|
@@ -8366,7 +8372,7 @@ var Tc = (e) => {
|
|
|
8366
8372
|
onClick: t
|
|
8367
8373
|
})]
|
|
8368
8374
|
});
|
|
8369
|
-
},
|
|
8375
|
+
}, Uc = (e) => {
|
|
8370
8376
|
let { value: t, label: n, description: r, onChange: i, onBlur: a, onDelete: o, btnText: s, options: c, labelExtra: l, trim: u = !0, styles: d, required: f, renderItem: p } = e, [m, h] = E.useState([]), g = E.useRef(0), _ = () => {
|
|
8371
8377
|
g.current += 1;
|
|
8372
8378
|
}, v = (e) => {
|
|
@@ -8413,7 +8419,7 @@ var Tc = (e) => {
|
|
|
8413
8419
|
})));
|
|
8414
8420
|
}, [t]), F(() => {
|
|
8415
8421
|
f && m.length === 0 && x();
|
|
8416
|
-
}, [f]), /* @__PURE__ */ H(
|
|
8422
|
+
}, [f]), /* @__PURE__ */ H(Ka, {
|
|
8417
8423
|
styles: d,
|
|
8418
8424
|
label: n,
|
|
8419
8425
|
required: f,
|
|
@@ -8421,7 +8427,7 @@ var Tc = (e) => {
|
|
|
8421
8427
|
labelExtra: l,
|
|
8422
8428
|
onAdd: x,
|
|
8423
8429
|
btnText: s,
|
|
8424
|
-
children: /* @__PURE__ */ H(V, { children: X.default.map(m, (t, n) => /* @__PURE__ */ H(
|
|
8430
|
+
children: /* @__PURE__ */ H(V, { children: X.default.map(m, (t, n) => /* @__PURE__ */ H(Hc, {
|
|
8425
8431
|
required: f && m.length === 1,
|
|
8426
8432
|
placeholder: e.placeholder,
|
|
8427
8433
|
options: c,
|
|
@@ -8435,7 +8441,7 @@ var Tc = (e) => {
|
|
|
8435
8441
|
renderItem: p
|
|
8436
8442
|
}, t.uid)) })
|
|
8437
8443
|
});
|
|
8438
|
-
},
|
|
8444
|
+
}, Wc = A((e, t) => {
|
|
8439
8445
|
let { dataList: n, height: r, showNum: i, onScroll: a, diffHeight: o = 96 } = e, { initialize: s, updateScrollerPosition: c, updateScrollerPositionToTop: l, generateInstance: u, scrollEventElement: f, instance: p, initialized: m } = d({ options: { scrollbars: { theme: "os-theme-light" } } }), [h, g] = B(window.innerHeight - o), _ = z({}), v = z(!1), y = N(() => {
|
|
8440
8446
|
c(0);
|
|
8441
8447
|
}, [c]), b = X.default.debounce(() => {
|
|
@@ -8495,7 +8501,7 @@ var Tc = (e) => {
|
|
|
8495
8501
|
}, e.uid))
|
|
8496
8502
|
})
|
|
8497
8503
|
});
|
|
8498
|
-
}),
|
|
8504
|
+
}), Gc = E.memo(Wc), Kc = (e) => {
|
|
8499
8505
|
let { page: t, total: n, pageSize: r, onNext: i, onPrev: a, onBackend: s, onToFirst: c } = e, l = o();
|
|
8500
8506
|
return /* @__PURE__ */ U("div", {
|
|
8501
8507
|
className: "pagination",
|
|
@@ -8569,8 +8575,8 @@ var Tc = (e) => {
|
|
|
8569
8575
|
})] })
|
|
8570
8576
|
]
|
|
8571
8577
|
});
|
|
8572
|
-
},
|
|
8573
|
-
let [e, t] = B(
|
|
8578
|
+
}, qc = 1e3, Jc = () => {
|
|
8579
|
+
let [e, t] = B(qc), [n, r] = B(1), [i, a] = B(1);
|
|
8574
8580
|
return {
|
|
8575
8581
|
nextPage: () => {
|
|
8576
8582
|
r(n + 1);
|
|
@@ -8590,8 +8596,8 @@ var Tc = (e) => {
|
|
|
8590
8596
|
page: n,
|
|
8591
8597
|
totalPage: i
|
|
8592
8598
|
};
|
|
8593
|
-
},
|
|
8594
|
-
let { diffHeight: n, url: r, tail: i, enableScorllLoad: a = !0, isDownloading: o, params: s } = e, { pageSize: c, page: l, setPage: u, setTotalPage: d, totalPage: f } =
|
|
8599
|
+
}, Yc = A((e, t) => {
|
|
8600
|
+
let { diffHeight: n, url: r, tail: i, enableScorllLoad: a = !0, isDownloading: o, params: s } = e, { pageSize: c, page: l, setPage: u, setTotalPage: d, totalPage: f } = Jc(), { setChunkFetch: p } = Fi(), m = z(null), [h, g] = B([]), _ = z(null), v = z(i), [y, b] = B(!1), [x, S] = B(!1), [C, w] = B([]), T = z(null), E = z(!1), D = z(l), O = z(f), k = z(!1), [A, j] = B([]), M = z({
|
|
8595
8601
|
pos: "bottom",
|
|
8596
8602
|
page: 1
|
|
8597
8603
|
}), P = z(0), L = z(!1);
|
|
@@ -8696,7 +8702,7 @@ var Tc = (e) => {
|
|
|
8696
8702
|
children: /* @__PURE__ */ U("div", {
|
|
8697
8703
|
className: "wrap",
|
|
8698
8704
|
children: [
|
|
8699
|
-
/* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(
|
|
8705
|
+
/* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(Gc, {
|
|
8700
8706
|
ref: T,
|
|
8701
8707
|
dataList: A,
|
|
8702
8708
|
diffHeight: n,
|
|
@@ -8711,7 +8717,7 @@ var Tc = (e) => {
|
|
|
8711
8717
|
className: "pg",
|
|
8712
8718
|
children: /* @__PURE__ */ H("div", {
|
|
8713
8719
|
className: (0, Y.default)("pg-inner", { "at-top": !0 }),
|
|
8714
|
-
children: /* @__PURE__ */ H(
|
|
8720
|
+
children: /* @__PURE__ */ H(Kc, {
|
|
8715
8721
|
page: l,
|
|
8716
8722
|
total: f,
|
|
8717
8723
|
pageSize: c,
|
|
@@ -8725,7 +8731,7 @@ var Tc = (e) => {
|
|
|
8725
8731
|
]
|
|
8726
8732
|
})
|
|
8727
8733
|
});
|
|
8728
|
-
}),
|
|
8734
|
+
}), Xc = J.div`
|
|
8729
8735
|
display: flex;
|
|
8730
8736
|
margin-bottom: 12px;
|
|
8731
8737
|
align-items: center;
|
|
@@ -8745,14 +8751,14 @@ var Tc = (e) => {
|
|
|
8745
8751
|
margin-left: 10px;
|
|
8746
8752
|
flex: none;
|
|
8747
8753
|
}
|
|
8748
|
-
`,
|
|
8754
|
+
`, Zc = ({ dataList: e, label: t, description: n, disabled: r, btnText: i, children: a, onDelete: o, onAdd: s, styles: c }) => /* @__PURE__ */ H(Ka, {
|
|
8749
8755
|
styles: c,
|
|
8750
8756
|
label: t,
|
|
8751
8757
|
description: n,
|
|
8752
8758
|
onAdd: s,
|
|
8753
8759
|
disabled: r,
|
|
8754
8760
|
btnText: i,
|
|
8755
|
-
children: e.map((e, t) => /* @__PURE__ */ U(
|
|
8761
|
+
children: e.map((e, t) => /* @__PURE__ */ U(Xc, { children: [a?.(e, t), !r && /* @__PURE__ */ H(W, {
|
|
8756
8762
|
size: "small",
|
|
8757
8763
|
className: "btn",
|
|
8758
8764
|
type: "default",
|
|
@@ -8760,7 +8766,7 @@ var Tc = (e) => {
|
|
|
8760
8766
|
onClick: () => o?.(t, e),
|
|
8761
8767
|
children: /* @__PURE__ */ H(Ae, {})
|
|
8762
8768
|
})] }, t))
|
|
8763
|
-
}),
|
|
8769
|
+
}), Qc = J.div`
|
|
8764
8770
|
display: flex;
|
|
8765
8771
|
justify-content: center;
|
|
8766
8772
|
margin-block: 16px;
|
|
@@ -8770,9 +8776,9 @@ var Tc = (e) => {
|
|
|
8770
8776
|
opacity: 0;
|
|
8771
8777
|
transition: opacity 0.3s ease-in-out;
|
|
8772
8778
|
}
|
|
8773
|
-
`,
|
|
8779
|
+
`, $c = (e) => {
|
|
8774
8780
|
let { show: t, loading: n, loadMore: r } = e, i = o();
|
|
8775
|
-
return /* @__PURE__ */ H(V, { children: t ? /* @__PURE__ */ H(
|
|
8781
|
+
return /* @__PURE__ */ H(V, { children: t ? /* @__PURE__ */ H(Qc, {
|
|
8776
8782
|
className: n ? "loading" : "",
|
|
8777
8783
|
children: /* @__PURE__ */ H(W, {
|
|
8778
8784
|
onClick: r,
|
|
@@ -8782,7 +8788,7 @@ var Tc = (e) => {
|
|
|
8782
8788
|
children: i.formatMessage({ id: "common.button.more" })
|
|
8783
8789
|
})
|
|
8784
8790
|
}) : null });
|
|
8785
|
-
},
|
|
8791
|
+
}, el = J(pt)`
|
|
8786
8792
|
display: flex;
|
|
8787
8793
|
flex-direction: column;
|
|
8788
8794
|
justify-content: center;
|
|
@@ -8800,30 +8806,30 @@ var Tc = (e) => {
|
|
|
8800
8806
|
.ant-empty-footer {
|
|
8801
8807
|
display: flex;
|
|
8802
8808
|
}
|
|
8803
|
-
`,
|
|
8809
|
+
`, tl = J.div`
|
|
8804
8810
|
margin-bottom: 16px;
|
|
8805
8811
|
display: flex;
|
|
8806
8812
|
justify-content: center;
|
|
8807
8813
|
align-items: center;
|
|
8808
|
-
`,
|
|
8814
|
+
`, nl = J.div`
|
|
8809
8815
|
margin-bottom: 8px;
|
|
8810
8816
|
display: flex;
|
|
8811
8817
|
justify-content: center;
|
|
8812
8818
|
align-items: center;
|
|
8813
|
-
`,
|
|
8819
|
+
`, rl = J.div`
|
|
8814
8820
|
display: flex;
|
|
8815
8821
|
flex-direction: column;
|
|
8816
8822
|
gap: 12px;
|
|
8817
8823
|
justify-content: center;
|
|
8818
8824
|
align-items: center;
|
|
8819
|
-
`,
|
|
8825
|
+
`, il = (e) => {
|
|
8820
8826
|
let { filters: t, noFoundText: n, loadend: r, loading: i, dataSource: a, buttonText: o, onClick: s } = e, c = R(() => {
|
|
8821
8827
|
let e = X.default.omit(t, ["page", "perPage"]);
|
|
8822
8828
|
return Object.values(e || {}).some((e) => Array.isArray(e) ? e.length > 0 : !!e);
|
|
8823
8829
|
}, [t]);
|
|
8824
|
-
return /* @__PURE__ */ H(V, { children: !i && r && !a?.length ? /* @__PURE__ */ H(
|
|
8825
|
-
image: c ? /* @__PURE__ */ H(
|
|
8826
|
-
description: /* @__PURE__ */ U(
|
|
8830
|
+
return /* @__PURE__ */ H(V, { children: !i && r && !a?.length ? /* @__PURE__ */ H(el, {
|
|
8831
|
+
image: c ? /* @__PURE__ */ H(nl, { children: pt.PRESENTED_IMAGE_SIMPLE }) : /* @__PURE__ */ H(tl, { children: e.image }),
|
|
8832
|
+
description: /* @__PURE__ */ U(rl, { children: [!c && /* @__PURE__ */ H(Pt.Text, {
|
|
8827
8833
|
style: {
|
|
8828
8834
|
fontSize: "16px",
|
|
8829
8835
|
fontWeight: 500
|
|
@@ -8840,7 +8846,7 @@ var Tc = (e) => {
|
|
|
8840
8846
|
children: o
|
|
8841
8847
|
}))
|
|
8842
8848
|
}) : /* @__PURE__ */ H("span", {}) });
|
|
8843
|
-
},
|
|
8849
|
+
}, al = J(at)`
|
|
8844
8850
|
.ant-breadcrumb-link {
|
|
8845
8851
|
font-size: 16px;
|
|
8846
8852
|
font-weight: 500;
|
|
@@ -8855,27 +8861,27 @@ var Tc = (e) => {
|
|
|
8855
8861
|
display: flex;
|
|
8856
8862
|
align-items: center;
|
|
8857
8863
|
}
|
|
8858
|
-
`,
|
|
8864
|
+
`, ol = ({ items: e }) => /* @__PURE__ */ H(al, {
|
|
8859
8865
|
separator: /* @__PURE__ */ H(Z, {
|
|
8860
8866
|
type: "icon-down2",
|
|
8861
8867
|
rotate: -90
|
|
8862
8868
|
}),
|
|
8863
8869
|
items: e
|
|
8864
|
-
}),
|
|
8870
|
+
}), sl = {
|
|
8865
8871
|
wrapper: "filters-button-module__wrapper___wgAvR",
|
|
8866
8872
|
count: "filters-button-module__count___9Uazh",
|
|
8867
8873
|
buttonWrapper: "filters-button-module__buttonWrapper___s0HOa",
|
|
8868
8874
|
"close-btn": "filters-button-module__close-btn___COdze"
|
|
8869
|
-
},
|
|
8875
|
+
}, cl = {
|
|
8870
8876
|
"page-tools": "index-module__page-tools___qC1VM",
|
|
8871
8877
|
left: "index-module__left___RQSzE",
|
|
8872
8878
|
right: "index-module__right___xVhib"
|
|
8873
|
-
},
|
|
8879
|
+
}, ll = ({ onClick: e, onClear: t, count: n }) => {
|
|
8874
8880
|
let r = (e) => {
|
|
8875
8881
|
e.stopPropagation(), t();
|
|
8876
8882
|
}, i = o();
|
|
8877
8883
|
return /* @__PURE__ */ H("div", {
|
|
8878
|
-
className:
|
|
8884
|
+
className: sl.buttonWrapper,
|
|
8879
8885
|
children: /* @__PURE__ */ H(W, {
|
|
8880
8886
|
onClick: e,
|
|
8881
8887
|
style: { color: "var(--ant-color-text-tertiary)" },
|
|
@@ -8884,15 +8890,15 @@ var Tc = (e) => {
|
|
|
8884
8890
|
style: { fontSize: 14 }
|
|
8885
8891
|
}),
|
|
8886
8892
|
children: /* @__PURE__ */ U("span", {
|
|
8887
|
-
className:
|
|
8893
|
+
className: sl.wrapper,
|
|
8888
8894
|
children: [
|
|
8889
8895
|
/* @__PURE__ */ H("span", { children: i.formatMessage({ id: "common.filter.label" }) }),
|
|
8890
8896
|
!!n && /* @__PURE__ */ H("span", {
|
|
8891
|
-
className:
|
|
8897
|
+
className: sl.count,
|
|
8892
8898
|
children: n
|
|
8893
8899
|
}),
|
|
8894
8900
|
!!n && /* @__PURE__ */ H("span", {
|
|
8895
|
-
className:
|
|
8901
|
+
className: sl["close-btn"],
|
|
8896
8902
|
onClick: r,
|
|
8897
8903
|
children: /* @__PURE__ */ H(se, {})
|
|
8898
8904
|
})
|
|
@@ -8900,7 +8906,7 @@ var Tc = (e) => {
|
|
|
8900
8906
|
})
|
|
8901
8907
|
})
|
|
8902
8908
|
});
|
|
8903
|
-
},
|
|
8909
|
+
}, ul = (e) => {
|
|
8904
8910
|
let { left: t, right: n, marginBottom: r = 0, marginTop: i = 30, style: a } = e, o = R(() => {
|
|
8905
8911
|
let e = {};
|
|
8906
8912
|
return e.marginBottom = `${r}px`, e.marginTop = `${i}px`, a && Object.assign(e, a), e;
|
|
@@ -8910,23 +8916,23 @@ var Tc = (e) => {
|
|
|
8910
8916
|
a
|
|
8911
8917
|
]);
|
|
8912
8918
|
return /* @__PURE__ */ U("div", {
|
|
8913
|
-
className:
|
|
8919
|
+
className: cl["page-tools"],
|
|
8914
8920
|
style: o,
|
|
8915
8921
|
children: [/* @__PURE__ */ H("div", {
|
|
8916
|
-
className:
|
|
8922
|
+
className: cl.left,
|
|
8917
8923
|
children: t
|
|
8918
8924
|
}), /* @__PURE__ */ H("div", {
|
|
8919
|
-
className:
|
|
8925
|
+
className: cl.right,
|
|
8920
8926
|
children: n
|
|
8921
8927
|
})]
|
|
8922
8928
|
});
|
|
8923
|
-
},
|
|
8929
|
+
}, dl = (e) => {
|
|
8924
8930
|
let { handleInputChange: t, handleSelectChange: n, handleSearch: r, handleDeleteByBatch: i = null, handleClickPrimary: a = null, rowSelection: s, actionItems: c = [], selectOptions: l, showSelect: u, buttonText: d, buttonIcon: f, actionType: p = "button", marginBottom: m = 10, marginTop: h = 10, inputHolder: g, selectHolder: _, select: v, right: y, left: b, widths: x, filtersButtonProps: S } = e, C = o();
|
|
8925
|
-
return /* @__PURE__ */ H(
|
|
8931
|
+
return /* @__PURE__ */ H(ul, {
|
|
8926
8932
|
marginBottom: m,
|
|
8927
8933
|
marginTop: 0,
|
|
8928
8934
|
left: b || /* @__PURE__ */ U(Dt, { children: [
|
|
8929
|
-
S?.show && /* @__PURE__ */ H(
|
|
8935
|
+
S?.show && /* @__PURE__ */ H(ll, {
|
|
8930
8936
|
onClear: S.onClear,
|
|
8931
8937
|
onClick: S.onClick,
|
|
8932
8938
|
count: S.count
|
|
@@ -8938,7 +8944,7 @@ var Tc = (e) => {
|
|
|
8938
8944
|
allowClear: !0,
|
|
8939
8945
|
onChange: t
|
|
8940
8946
|
}),
|
|
8941
|
-
u && /* @__PURE__ */ H(
|
|
8947
|
+
u && /* @__PURE__ */ H(_o, {
|
|
8942
8948
|
allowClear: !0,
|
|
8943
8949
|
showSearch: v?.showSearch,
|
|
8944
8950
|
placeholder: _,
|
|
@@ -8986,7 +8992,7 @@ var Tc = (e) => {
|
|
|
8986
8992
|
})]
|
|
8987
8993
|
}))
|
|
8988
8994
|
});
|
|
8989
|
-
},
|
|
8995
|
+
}, fl = { seal_custom_popover: "index-module__seal_custom_popover___IA6li" }, pl = (e) => {
|
|
8990
8996
|
let { className: t, children: n, style: r, ...i } = e;
|
|
8991
8997
|
return /* @__PURE__ */ H("div", {
|
|
8992
8998
|
className: "popover-wrapper",
|
|
@@ -8994,11 +9000,11 @@ var Tc = (e) => {
|
|
|
8994
9000
|
...i,
|
|
8995
9001
|
style: { ...r },
|
|
8996
9002
|
"data-maxHeight": "300px",
|
|
8997
|
-
classNames: { root: (0, Y.default)(t,
|
|
9003
|
+
classNames: { root: (0, Y.default)(t, fl.seal_custom_popover) },
|
|
8998
9004
|
children: n
|
|
8999
9005
|
})
|
|
9000
9006
|
});
|
|
9001
|
-
},
|
|
9007
|
+
}, ml = M((e) => {
|
|
9002
9008
|
let { defaultOpen: t, percent: n, download: r, label: i, successPercent: a } = e, [o, s] = E.useState(!1), c = R(() => r ? "var(--ant-color-primary)" : n <= 50 ? "var(--ant-color-success)" : n <= 80 ? "var(--ant-color-warning)" : "var(--ant-color-error)", [n]);
|
|
9003
9009
|
F(() => {
|
|
9004
9010
|
s(t || !1);
|
|
@@ -9034,7 +9040,7 @@ var Tc = (e) => {
|
|
|
9034
9040
|
styles: { body: { paddingInline: 12 } },
|
|
9035
9041
|
children: l
|
|
9036
9042
|
}) : l });
|
|
9037
|
-
}),
|
|
9043
|
+
}), hl = (e) => {
|
|
9038
9044
|
let { options: t, value: n, onChange: r, gap: i = 12 } = e;
|
|
9039
9045
|
return /* @__PURE__ */ H(Dt, {
|
|
9040
9046
|
className: "radio-button-wrap",
|
|
@@ -9045,7 +9051,7 @@ var Tc = (e) => {
|
|
|
9045
9051
|
children: e.label
|
|
9046
9052
|
}, e.value))
|
|
9047
9053
|
});
|
|
9048
|
-
},
|
|
9054
|
+
}, gl = ({ defaultSpan: e = 8, dataList: t, renderItem: n, resizable: r = !0 }) => {
|
|
9049
9055
|
let { span: i, handleResize: a } = oa({ defaultSpan: e });
|
|
9050
9056
|
return /* @__PURE__ */ H(ci, {
|
|
9051
9057
|
onResize: a,
|
|
@@ -9061,7 +9067,7 @@ var Tc = (e) => {
|
|
|
9061
9067
|
};
|
|
9062
9068
|
//#endregion
|
|
9063
9069
|
//#region src/lib/components/scroll-spy-tabs/use-field-scroll.ts
|
|
9064
|
-
function
|
|
9070
|
+
function _l({ activeKey: e, setActiveKey: t, segmentOptions: n, defaultWait: r = 300, segmentedTop: i = {
|
|
9065
9071
|
top: 0,
|
|
9066
9072
|
offsetTop: 96
|
|
9067
9073
|
}, getScrollElementScrollableHeight: a }) {
|
|
@@ -9099,15 +9105,15 @@ function hl({ activeKey: e, setActiveKey: t, segmentOptions: n, defaultWait: r =
|
|
|
9099
9105
|
}
|
|
9100
9106
|
//#endregion
|
|
9101
9107
|
//#region src/lib/components/scroll-spy-tabs/index.tsx
|
|
9102
|
-
var
|
|
9108
|
+
var vl = J.div`
|
|
9103
9109
|
position: sticky;
|
|
9104
9110
|
top: ${(e) => e.$top || 0}px;
|
|
9105
9111
|
z-index: 10;
|
|
9106
9112
|
margin-bottom: 16px;
|
|
9107
9113
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9108
9114
|
background-color: var(--ant-color-bg-elevated);
|
|
9109
|
-
`,
|
|
9110
|
-
let [c, l] = E.useState(r || n[0]?.value || ""), { scrollToSegment: u, holderHeight: d } =
|
|
9115
|
+
`, yl = A(({ getScrollElementScrollableHeight: e, segmentedTop: t, segmentOptions: n, defaultTarget: r, activeKey: i, setActiveKey: a, children: o }, s) => {
|
|
9116
|
+
let [c, l] = E.useState(r || n[0]?.value || ""), { scrollToSegment: u, holderHeight: d } = _l({
|
|
9111
9117
|
activeKey: i,
|
|
9112
9118
|
setActiveKey: a,
|
|
9113
9119
|
segmentOptions: n,
|
|
@@ -9119,9 +9125,9 @@ var gl = J.div`
|
|
|
9119
9125
|
f(e);
|
|
9120
9126
|
};
|
|
9121
9127
|
return I(s, () => ({ handleTargetChange: p })), /* @__PURE__ */ U("div", { children: [
|
|
9122
|
-
n.length > 0 && /* @__PURE__ */ H(
|
|
9128
|
+
n.length > 0 && /* @__PURE__ */ H(vl, {
|
|
9123
9129
|
$top: t.top,
|
|
9124
|
-
children: /* @__PURE__ */ H(
|
|
9130
|
+
children: /* @__PURE__ */ H(Oa, {
|
|
9125
9131
|
theme: "light",
|
|
9126
9132
|
defaultValue: c,
|
|
9127
9133
|
value: c,
|
|
@@ -9135,7 +9141,7 @@ var gl = J.div`
|
|
|
9135
9141
|
style: { height: d }
|
|
9136
9142
|
})
|
|
9137
9143
|
] });
|
|
9138
|
-
}),
|
|
9144
|
+
}), bl = (e) => {
|
|
9139
9145
|
let { requiredFields: t, onTargetChange: n, updateActiveKey: r } = e;
|
|
9140
9146
|
return { handleOnFinishFailed: (e) => {
|
|
9141
9147
|
let { errorFields: i } = e;
|
|
@@ -9149,7 +9155,7 @@ var gl = J.div`
|
|
|
9149
9155
|
}), e.length > 0 && (r(e.sort((e, t) => e.sort - t.sort).map((e) => e.key)), n(e[0].key));
|
|
9150
9156
|
}
|
|
9151
9157
|
} };
|
|
9152
|
-
},
|
|
9158
|
+
}, xl = (e) => {
|
|
9153
9159
|
let [t, n] = B(e.initalActiveKeys), [r, i] = B(e.initialCollapseKeys || e.initalActiveKeys);
|
|
9154
9160
|
return {
|
|
9155
9161
|
activeKey: t,
|
|
@@ -9166,18 +9172,18 @@ var gl = J.div`
|
|
|
9166
9172
|
n((t) => [...new Set([...t, ...e])]), i((t) => [...new Set([...t, ...e])]);
|
|
9167
9173
|
}
|
|
9168
9174
|
};
|
|
9169
|
-
},
|
|
9175
|
+
}, Sl = O({ scrollToBottom: () => {} }), Cl = J.div`
|
|
9170
9176
|
max-height: ${({ $maxHeight: e }) => typeof e == "number" ? `${e}px` : e};
|
|
9171
9177
|
overflow-y: auto;
|
|
9172
9178
|
width: 100%;
|
|
9173
|
-
`,
|
|
9179
|
+
`, wl = J.div`
|
|
9174
9180
|
display: flex;
|
|
9175
9181
|
align-items: center;
|
|
9176
9182
|
max-width: 360px;
|
|
9177
9183
|
text-overflow: ellipsis;
|
|
9178
9184
|
overflow: hidden;
|
|
9179
9185
|
white-space: nowrap;
|
|
9180
|
-
`,
|
|
9186
|
+
`, Tl = (e) => {
|
|
9181
9187
|
let t = E.useRef(null), { saveScrollHeight: n, restoreScrollHeight: r } = Mi(), { initialize: i, destroyInstance: a, scrollToBottom: o } = d();
|
|
9182
9188
|
return E.useEffect(() => {
|
|
9183
9189
|
e.open ? n() : r();
|
|
@@ -9190,7 +9196,7 @@ var gl = J.div`
|
|
|
9190
9196
|
};
|
|
9191
9197
|
}, [e.open, i]), /* @__PURE__ */ H(vt, {
|
|
9192
9198
|
...e,
|
|
9193
|
-
title: /* @__PURE__ */ H(
|
|
9199
|
+
title: /* @__PURE__ */ H(wl, { children: e.title }),
|
|
9194
9200
|
destroyOnHidden: !0,
|
|
9195
9201
|
styles: {
|
|
9196
9202
|
container: { padding: 0 },
|
|
@@ -9207,9 +9213,9 @@ var gl = J.div`
|
|
|
9207
9213
|
margin: "0"
|
|
9208
9214
|
} : {}
|
|
9209
9215
|
},
|
|
9210
|
-
children: /* @__PURE__ */ H(
|
|
9216
|
+
children: /* @__PURE__ */ H(Sl.Provider, {
|
|
9211
9217
|
value: { scrollToBottom: o },
|
|
9212
|
-
children: /* @__PURE__ */ H(
|
|
9218
|
+
children: /* @__PURE__ */ H(Cl, {
|
|
9213
9219
|
ref: t,
|
|
9214
9220
|
"data-overlayscrollbars-initialize": !0,
|
|
9215
9221
|
className: "overlay-scroller-wrapper",
|
|
@@ -9223,11 +9229,11 @@ var gl = J.div`
|
|
|
9223
9229
|
})
|
|
9224
9230
|
})
|
|
9225
9231
|
});
|
|
9226
|
-
},
|
|
9232
|
+
}, El = J.ul`
|
|
9227
9233
|
list-style: none;
|
|
9228
9234
|
margin: 0;
|
|
9229
9235
|
padding: 0;
|
|
9230
|
-
`,
|
|
9236
|
+
`, Dl = J.li`
|
|
9231
9237
|
display: flex;
|
|
9232
9238
|
align-items: center;
|
|
9233
9239
|
padding: 5px 12px;
|
|
@@ -9237,7 +9243,7 @@ var gl = J.div`
|
|
|
9237
9243
|
&:hover {
|
|
9238
9244
|
background-color: var(--ant-control-item-bg-hover);
|
|
9239
9245
|
}
|
|
9240
|
-
`,
|
|
9246
|
+
`, Ol = ({ maxHeight: e, dataList: t, selectedKeys: n, onSelectChange: r, renderTitle: i }) => {
|
|
9241
9247
|
let a = (e) => {
|
|
9242
9248
|
let t = e.key;
|
|
9243
9249
|
r(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
@@ -9245,7 +9251,7 @@ var gl = J.div`
|
|
|
9245
9251
|
return /* @__PURE__ */ H(l, {
|
|
9246
9252
|
style: { paddingInline: 0 },
|
|
9247
9253
|
maxHeight: e,
|
|
9248
|
-
children: /* @__PURE__ */ H(
|
|
9254
|
+
children: /* @__PURE__ */ H(El, { children: t.map((e) => /* @__PURE__ */ U(Dl, {
|
|
9249
9255
|
selected: n.includes(e.key),
|
|
9250
9256
|
onClick: () => a(e),
|
|
9251
9257
|
children: [/* @__PURE__ */ H(G, { checked: n.includes(e.key) }), i ? i(e) : /* @__PURE__ */ H(f, {
|
|
@@ -9254,16 +9260,16 @@ var gl = J.div`
|
|
|
9254
9260
|
})]
|
|
9255
9261
|
}, e.key)) })
|
|
9256
9262
|
});
|
|
9257
|
-
},
|
|
9263
|
+
}, kl = J.div`
|
|
9258
9264
|
border: 1px solid var(--ant-color-border);
|
|
9259
9265
|
border-radius: var(--ant-border-radius);
|
|
9260
9266
|
overflow-y: auto;
|
|
9261
9267
|
max-height: ${({ $maxHeight: e }) => e ? `${e + 2}px` : "auto"};
|
|
9262
|
-
`,
|
|
9268
|
+
`, Al = J.div`
|
|
9263
9269
|
padding: 0;
|
|
9264
9270
|
`;
|
|
9265
9271
|
J.div``;
|
|
9266
|
-
var
|
|
9272
|
+
var jl = J.div`
|
|
9267
9273
|
padding: 8px 12px 8px;
|
|
9268
9274
|
display: flex;
|
|
9269
9275
|
gap: 8px;
|
|
@@ -9271,7 +9277,7 @@ var kl = J.div`
|
|
|
9271
9277
|
justify-content: space-between;
|
|
9272
9278
|
border-bottom: 1px solid var(--ant-color-split);
|
|
9273
9279
|
background-color: var(--ant-color-fill-alter);
|
|
9274
|
-
`,
|
|
9280
|
+
`, Ml = ({ height: e = 300, leftWidth: t = 260, options: n, selectedKeys: r, searchPlaceholder: i, notFoundContent: a, onSelectChange: s, styles: c }) => {
|
|
9275
9281
|
let l = o(), [u, d] = E.useState(!1), [f, p] = E.useState(!1), [m, h] = B(""), g = R(() => n.filter((e) => e.title.toLowerCase().includes(m.toLowerCase())), [n, m]), _ = (e) => {
|
|
9276
9282
|
h(e.target.value);
|
|
9277
9283
|
}, v = (e) => {
|
|
@@ -9293,11 +9299,11 @@ var kl = J.div`
|
|
|
9293
9299
|
};
|
|
9294
9300
|
return F(() => {
|
|
9295
9301
|
y(r);
|
|
9296
|
-
}, [r, n]), /* @__PURE__ */ H(
|
|
9302
|
+
}, [r, n]), /* @__PURE__ */ H(kl, {
|
|
9297
9303
|
$maxHeight: e,
|
|
9298
9304
|
$leftWidth: t,
|
|
9299
9305
|
style: c?.container,
|
|
9300
|
-
children: /* @__PURE__ */ U(
|
|
9306
|
+
children: /* @__PURE__ */ U(Al, { children: [/* @__PURE__ */ U(jl, {
|
|
9301
9307
|
style: c?.header,
|
|
9302
9308
|
children: [/* @__PURE__ */ U("span", {
|
|
9303
9309
|
style: {
|
|
@@ -9325,7 +9331,7 @@ var kl = J.div`
|
|
|
9325
9331
|
},
|
|
9326
9332
|
onChange: _
|
|
9327
9333
|
})]
|
|
9328
|
-
}), g.length > 0 ? /* @__PURE__ */ H(
|
|
9334
|
+
}), g.length > 0 ? /* @__PURE__ */ H(Ol, {
|
|
9329
9335
|
maxHeight: e - 50,
|
|
9330
9336
|
dataList: g,
|
|
9331
9337
|
selectedKeys: r,
|
|
@@ -9337,54 +9343,54 @@ var kl = J.div`
|
|
|
9337
9343
|
description: a
|
|
9338
9344
|
})] })
|
|
9339
9345
|
});
|
|
9340
|
-
},
|
|
9346
|
+
}, Nl = [
|
|
9341
9347
|
{
|
|
9342
9348
|
scope: "playground",
|
|
9343
9349
|
command: "shortcuts.playground.newmessage",
|
|
9344
|
-
keybinding:
|
|
9350
|
+
keybinding: Ds.CREATE.iconKeybinding
|
|
9345
9351
|
},
|
|
9346
9352
|
{
|
|
9347
9353
|
scope: "playground",
|
|
9348
9354
|
command: "shortcuts.playground.clearmessage",
|
|
9349
|
-
keybinding:
|
|
9355
|
+
keybinding: Ds.CLEAR.iconKeybinding
|
|
9350
9356
|
},
|
|
9351
9357
|
{
|
|
9352
9358
|
scope: "playground",
|
|
9353
9359
|
command: "shortcuts.playground.toggleparams",
|
|
9354
|
-
keybinding:
|
|
9360
|
+
keybinding: Ds.RIGHT.iconKeybinding
|
|
9355
9361
|
},
|
|
9356
9362
|
{
|
|
9357
9363
|
scope: "models",
|
|
9358
9364
|
command: "shortcuts.models.newmodelHF",
|
|
9359
|
-
keybinding:
|
|
9365
|
+
keybinding: Ds.NEW1.iconKeybinding
|
|
9360
9366
|
},
|
|
9361
9367
|
{
|
|
9362
9368
|
scope: "models",
|
|
9363
9369
|
command: "shortcuts.models.newmodelLM",
|
|
9364
|
-
keybinding:
|
|
9370
|
+
keybinding: Ds.NEW2.iconKeybinding
|
|
9365
9371
|
},
|
|
9366
9372
|
{
|
|
9367
9373
|
scope: "models",
|
|
9368
9374
|
command: "shortcuts.models.search",
|
|
9369
|
-
keybinding:
|
|
9375
|
+
keybinding: Ds.SEARCH.iconKeybinding
|
|
9370
9376
|
},
|
|
9371
9377
|
{
|
|
9372
9378
|
scope: "resources",
|
|
9373
9379
|
command: "shortcuts.resources.addworker",
|
|
9374
|
-
keybinding:
|
|
9380
|
+
keybinding: Ds.CREATE.iconKeybinding
|
|
9375
9381
|
},
|
|
9376
9382
|
{
|
|
9377
9383
|
scope: "API keys",
|
|
9378
9384
|
command: "shortcuts.apikeys.new",
|
|
9379
|
-
keybinding:
|
|
9385
|
+
keybinding: Ds.CREATE.iconKeybinding
|
|
9380
9386
|
},
|
|
9381
9387
|
{
|
|
9382
9388
|
scope: "users",
|
|
9383
9389
|
command: "shortcuts.users.new",
|
|
9384
|
-
keybinding:
|
|
9390
|
+
keybinding: Ds.CREATE.iconKeybinding
|
|
9385
9391
|
}
|
|
9386
|
-
],
|
|
9387
|
-
let [t, n] = E.useState(
|
|
9392
|
+
], Pl = ({ intl: e }) => {
|
|
9393
|
+
let [t, n] = E.useState(Nl), r = [
|
|
9388
9394
|
{
|
|
9389
9395
|
title: "Scope",
|
|
9390
9396
|
dataIndex: "scope",
|
|
@@ -9406,7 +9412,7 @@ var kl = J.div`
|
|
|
9406
9412
|
}
|
|
9407
9413
|
], i = X.default.debounce((e) => {
|
|
9408
9414
|
let t = e.target.value;
|
|
9409
|
-
n(X.default.filter(
|
|
9415
|
+
n(X.default.filter(Nl, (e) => e.command.toLowerCase().includes(t.toLowerCase()) || e.scope.toLowerCase().includes(t.toLowerCase())));
|
|
9410
9416
|
}, 300);
|
|
9411
9417
|
return /* @__PURE__ */ U("div", {
|
|
9412
9418
|
className: "short-cuts",
|
|
@@ -9440,82 +9446,82 @@ var kl = J.div`
|
|
|
9440
9446
|
};
|
|
9441
9447
|
//#endregion
|
|
9442
9448
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
9443
|
-
function
|
|
9449
|
+
function Fl(e) {
|
|
9444
9450
|
var t = typeof e;
|
|
9445
9451
|
return e != null && (t == "object" || t == "function");
|
|
9446
9452
|
}
|
|
9447
9453
|
//#endregion
|
|
9448
9454
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
9449
|
-
var
|
|
9450
|
-
return
|
|
9451
|
-
},
|
|
9452
|
-
function
|
|
9453
|
-
for (var t = e.length; t-- &&
|
|
9455
|
+
var Il = typeof global == "object" && global && global.Object === Object && global, Ll = typeof self == "object" && self && self.Object === Object && self, Rl = Il || Ll || Function("return this")(), zl = function() {
|
|
9456
|
+
return Rl.Date.now();
|
|
9457
|
+
}, Bl = /\s/;
|
|
9458
|
+
function Vl(e) {
|
|
9459
|
+
for (var t = e.length; t-- && Bl.test(e.charAt(t)););
|
|
9454
9460
|
return t;
|
|
9455
9461
|
}
|
|
9456
9462
|
//#endregion
|
|
9457
9463
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
|
|
9458
|
-
var
|
|
9459
|
-
function
|
|
9460
|
-
return e && e.slice(0,
|
|
9464
|
+
var Hl = /^\s+/;
|
|
9465
|
+
function Ul(e) {
|
|
9466
|
+
return e && e.slice(0, Vl(e) + 1).replace(Hl, "");
|
|
9461
9467
|
}
|
|
9462
9468
|
//#endregion
|
|
9463
9469
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
9464
|
-
var
|
|
9465
|
-
function
|
|
9466
|
-
var t =
|
|
9470
|
+
var Wl = Rl.Symbol, Gl = Object.prototype, Kl = Gl.hasOwnProperty, ql = Gl.toString, Jl = Wl ? Wl.toStringTag : void 0;
|
|
9471
|
+
function Yl(e) {
|
|
9472
|
+
var t = Kl.call(e, Jl), n = e[Jl];
|
|
9467
9473
|
try {
|
|
9468
|
-
e[
|
|
9474
|
+
e[Jl] = void 0;
|
|
9469
9475
|
var r = !0;
|
|
9470
9476
|
} catch {}
|
|
9471
|
-
var i =
|
|
9472
|
-
return r && (t ? e[
|
|
9477
|
+
var i = ql.call(e);
|
|
9478
|
+
return r && (t ? e[Jl] = n : delete e[Jl]), i;
|
|
9473
9479
|
}
|
|
9474
9480
|
//#endregion
|
|
9475
9481
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
9476
|
-
var
|
|
9477
|
-
function
|
|
9478
|
-
return
|
|
9482
|
+
var Xl = Object.prototype.toString;
|
|
9483
|
+
function Zl(e) {
|
|
9484
|
+
return Xl.call(e);
|
|
9479
9485
|
}
|
|
9480
9486
|
//#endregion
|
|
9481
9487
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
9482
|
-
var
|
|
9483
|
-
function
|
|
9484
|
-
return e == null ? e === void 0 ?
|
|
9488
|
+
var Ql = "[object Null]", $l = "[object Undefined]", eu = Wl ? Wl.toStringTag : void 0;
|
|
9489
|
+
function tu(e) {
|
|
9490
|
+
return e == null ? e === void 0 ? $l : Ql : eu && eu in Object(e) ? Yl(e) : Zl(e);
|
|
9485
9491
|
}
|
|
9486
9492
|
//#endregion
|
|
9487
9493
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
9488
|
-
function
|
|
9494
|
+
function nu(e) {
|
|
9489
9495
|
return typeof e == "object" && !!e;
|
|
9490
9496
|
}
|
|
9491
9497
|
//#endregion
|
|
9492
9498
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
9493
|
-
var
|
|
9494
|
-
function
|
|
9495
|
-
return typeof e == "symbol" ||
|
|
9499
|
+
var ru = "[object Symbol]";
|
|
9500
|
+
function iu(e) {
|
|
9501
|
+
return typeof e == "symbol" || nu(e) && tu(e) == ru;
|
|
9496
9502
|
}
|
|
9497
9503
|
//#endregion
|
|
9498
9504
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
|
|
9499
|
-
var
|
|
9500
|
-
function
|
|
9505
|
+
var au = NaN, ou = /^[-+]0x[0-9a-f]+$/i, su = /^0b[01]+$/i, cu = /^0o[0-7]+$/i, lu = parseInt;
|
|
9506
|
+
function uu(e) {
|
|
9501
9507
|
if (typeof e == "number") return e;
|
|
9502
|
-
if (
|
|
9503
|
-
if (
|
|
9508
|
+
if (iu(e)) return au;
|
|
9509
|
+
if (Fl(e)) {
|
|
9504
9510
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
9505
|
-
e =
|
|
9511
|
+
e = Fl(t) ? t + "" : t;
|
|
9506
9512
|
}
|
|
9507
9513
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
9508
|
-
e =
|
|
9509
|
-
var n =
|
|
9510
|
-
return n ||
|
|
9514
|
+
e = Ul(e);
|
|
9515
|
+
var n = su.test(e);
|
|
9516
|
+
return n || cu.test(e) ? lu(e.slice(2), n ? 2 : 8) : ou.test(e) ? au : +e;
|
|
9511
9517
|
}
|
|
9512
9518
|
//#endregion
|
|
9513
9519
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
|
|
9514
|
-
var
|
|
9515
|
-
function
|
|
9520
|
+
var du = "Expected a function", fu = Math.max, pu = Math.min;
|
|
9521
|
+
function mu(e, t, n) {
|
|
9516
9522
|
var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
|
|
9517
|
-
if (typeof e != "function") throw TypeError(
|
|
9518
|
-
t =
|
|
9523
|
+
if (typeof e != "function") throw TypeError(du);
|
|
9524
|
+
t = uu(t) || 0, Fl(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? fu(uu(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
|
|
9519
9525
|
function p(t) {
|
|
9520
9526
|
var n = r, a = i;
|
|
9521
9527
|
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
@@ -9525,14 +9531,14 @@ function fu(e, t, n) {
|
|
|
9525
9531
|
}
|
|
9526
9532
|
function h(e) {
|
|
9527
9533
|
var n = e - c, r = e - l, i = t - n;
|
|
9528
|
-
return d ?
|
|
9534
|
+
return d ? pu(i, a - r) : i;
|
|
9529
9535
|
}
|
|
9530
9536
|
function g(e) {
|
|
9531
9537
|
var n = e - c, r = e - l;
|
|
9532
9538
|
return c === void 0 || n >= t || n < 0 || d && r >= a;
|
|
9533
9539
|
}
|
|
9534
9540
|
function _() {
|
|
9535
|
-
var e =
|
|
9541
|
+
var e = zl();
|
|
9536
9542
|
if (g(e)) return v(e);
|
|
9537
9543
|
s = setTimeout(_, h(e));
|
|
9538
9544
|
}
|
|
@@ -9543,10 +9549,10 @@ function fu(e, t, n) {
|
|
|
9543
9549
|
s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
|
|
9544
9550
|
}
|
|
9545
9551
|
function b() {
|
|
9546
|
-
return s === void 0 ? o : v(
|
|
9552
|
+
return s === void 0 ? o : v(zl());
|
|
9547
9553
|
}
|
|
9548
9554
|
function x() {
|
|
9549
|
-
var e =
|
|
9555
|
+
var e = zl(), n = g(e);
|
|
9550
9556
|
if (r = arguments, i = this, c = e, n) {
|
|
9551
9557
|
if (s === void 0) return m(c);
|
|
9552
9558
|
if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
|
|
@@ -9557,11 +9563,11 @@ function fu(e, t, n) {
|
|
|
9557
9563
|
}
|
|
9558
9564
|
//#endregion
|
|
9559
9565
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/throttle.js
|
|
9560
|
-
var
|
|
9561
|
-
function
|
|
9566
|
+
var hu = "Expected a function";
|
|
9567
|
+
function gu(e, t, n) {
|
|
9562
9568
|
var r = !0, i = !0;
|
|
9563
|
-
if (typeof e != "function") throw TypeError(
|
|
9564
|
-
return
|
|
9569
|
+
if (typeof e != "function") throw TypeError(hu);
|
|
9570
|
+
return Fl(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), mu(e, t, {
|
|
9565
9571
|
leading: r,
|
|
9566
9572
|
maxWait: t,
|
|
9567
9573
|
trailing: i
|
|
@@ -9569,19 +9575,19 @@ function mu(e, t, n) {
|
|
|
9569
9575
|
}
|
|
9570
9576
|
//#endregion
|
|
9571
9577
|
//#region ../../node_modules/.pnpm/simplebar-core@1.3.2/node_modules/simplebar-core/dist/index.mjs
|
|
9572
|
-
var
|
|
9573
|
-
return
|
|
9578
|
+
var _u = function() {
|
|
9579
|
+
return _u = Object.assign || function(e) {
|
|
9574
9580
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
9575
9581
|
return e;
|
|
9576
|
-
},
|
|
9582
|
+
}, _u.apply(this, arguments);
|
|
9577
9583
|
};
|
|
9578
|
-
function
|
|
9584
|
+
function vu(e) {
|
|
9579
9585
|
return !e || !e.ownerDocument || !e.ownerDocument.defaultView ? window : e.ownerDocument.defaultView;
|
|
9580
9586
|
}
|
|
9581
|
-
function
|
|
9587
|
+
function yu(e) {
|
|
9582
9588
|
return !e || !e.ownerDocument ? document : e.ownerDocument;
|
|
9583
9589
|
}
|
|
9584
|
-
var
|
|
9590
|
+
var bu = function(e) {
|
|
9585
9591
|
return Array.prototype.reduce.call(e, function(e, t) {
|
|
9586
9592
|
var n = t.name.match(/data-simplebar-(.+)/);
|
|
9587
9593
|
if (n) {
|
|
@@ -9604,58 +9610,58 @@ var vu = function(e) {
|
|
|
9604
9610
|
return e;
|
|
9605
9611
|
}, {});
|
|
9606
9612
|
};
|
|
9607
|
-
function
|
|
9613
|
+
function xu(e, t) {
|
|
9608
9614
|
var n;
|
|
9609
9615
|
e && (n = e.classList).add.apply(n, t.split(" "));
|
|
9610
9616
|
}
|
|
9611
|
-
function
|
|
9617
|
+
function Su(e, t) {
|
|
9612
9618
|
e && t.split(" ").forEach(function(t) {
|
|
9613
9619
|
e.classList.remove(t);
|
|
9614
9620
|
});
|
|
9615
9621
|
}
|
|
9616
|
-
function
|
|
9622
|
+
function Cu(e) {
|
|
9617
9623
|
return `.${e.split(" ").join(".")}`;
|
|
9618
9624
|
}
|
|
9619
|
-
var
|
|
9625
|
+
var wu = !!(typeof window < "u" && window.document && window.document.createElement), Tu = /* @__PURE__ */ Object.freeze({
|
|
9620
9626
|
__proto__: null,
|
|
9621
|
-
addClasses:
|
|
9622
|
-
canUseDOM:
|
|
9623
|
-
classNamesToQuery:
|
|
9624
|
-
getElementDocument:
|
|
9625
|
-
getElementWindow:
|
|
9626
|
-
getOptions:
|
|
9627
|
-
removeClasses:
|
|
9628
|
-
}),
|
|
9629
|
-
|
|
9630
|
-
|
|
9627
|
+
addClasses: xu,
|
|
9628
|
+
canUseDOM: wu,
|
|
9629
|
+
classNamesToQuery: Cu,
|
|
9630
|
+
getElementDocument: yu,
|
|
9631
|
+
getElementWindow: vu,
|
|
9632
|
+
getOptions: bu,
|
|
9633
|
+
removeClasses: Su
|
|
9634
|
+
}), Eu = null, Du = null;
|
|
9635
|
+
wu && window.addEventListener("resize", function() {
|
|
9636
|
+
Du !== window.devicePixelRatio && (Du = window.devicePixelRatio, Eu = null);
|
|
9631
9637
|
});
|
|
9632
|
-
function
|
|
9633
|
-
if (
|
|
9634
|
-
if (typeof document > "u") return
|
|
9638
|
+
function Ou() {
|
|
9639
|
+
if (Eu === null) {
|
|
9640
|
+
if (typeof document > "u") return Eu = 0, Eu;
|
|
9635
9641
|
var e = document.body, t = document.createElement("div");
|
|
9636
9642
|
t.classList.add("simplebar-hide-scrollbar"), e.appendChild(t);
|
|
9637
9643
|
var n = t.getBoundingClientRect().right;
|
|
9638
|
-
e.removeChild(t),
|
|
9644
|
+
e.removeChild(t), Eu = n;
|
|
9639
9645
|
}
|
|
9640
|
-
return
|
|
9646
|
+
return Eu;
|
|
9641
9647
|
}
|
|
9642
|
-
var
|
|
9648
|
+
var ku = vu, Au = yu, ju = bu, Mu = xu, Nu = Su, Q = Cu, Pu = function() {
|
|
9643
9649
|
function e(t, n) {
|
|
9644
9650
|
n === void 0 && (n = {});
|
|
9645
9651
|
var r = this;
|
|
9646
9652
|
if (this.removePreventClickId = null, this.minScrollbarWidth = 20, this.stopScrollDelay = 175, this.isScrolling = !1, this.isMouseEntering = !1, this.isDragging = !1, this.scrollXTicking = !1, this.scrollYTicking = !1, this.wrapperEl = null, this.contentWrapperEl = null, this.contentEl = null, this.offsetEl = null, this.maskEl = null, this.placeholderEl = null, this.heightAutoObserverWrapperEl = null, this.heightAutoObserverEl = null, this.rtlHelpers = null, this.scrollbarWidth = 0, this.resizeObserver = null, this.mutationObserver = null, this.elStyles = null, this.isRtl = null, this.mouseX = 0, this.mouseY = 0, this.onMouseMove = function() {}, this.onWindowResize = function() {}, this.onStopScrolling = function() {}, this.onMouseEntered = function() {}, this.onScroll = function() {
|
|
9647
|
-
var e =
|
|
9648
|
-
r.scrollXTicking ||= (e.requestAnimationFrame(r.scrollX), !0), r.scrollYTicking ||= (e.requestAnimationFrame(r.scrollY), !0), r.isScrolling || (r.isScrolling = !0,
|
|
9653
|
+
var e = ku(r.el);
|
|
9654
|
+
r.scrollXTicking ||= (e.requestAnimationFrame(r.scrollX), !0), r.scrollYTicking ||= (e.requestAnimationFrame(r.scrollY), !0), r.isScrolling || (r.isScrolling = !0, Mu(r.el, r.classNames.scrolling)), r.showScrollbar("x"), r.showScrollbar("y"), r.onStopScrolling();
|
|
9649
9655
|
}, this.scrollX = function() {
|
|
9650
9656
|
r.axis.x.isOverflowing && r.positionScrollbar("x"), r.scrollXTicking = !1;
|
|
9651
9657
|
}, this.scrollY = function() {
|
|
9652
9658
|
r.axis.y.isOverflowing && r.positionScrollbar("y"), r.scrollYTicking = !1;
|
|
9653
9659
|
}, this._onStopScrolling = function() {
|
|
9654
|
-
|
|
9660
|
+
Nu(r.el, r.classNames.scrolling), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isScrolling = !1;
|
|
9655
9661
|
}, this.onMouseEnter = function() {
|
|
9656
|
-
r.isMouseEntering ||= (
|
|
9662
|
+
r.isMouseEntering ||= (Mu(r.el, r.classNames.mouseEntered), r.showScrollbar("x"), r.showScrollbar("y"), !0), r.onMouseEntered();
|
|
9657
9663
|
}, this._onMouseEntered = function() {
|
|
9658
|
-
|
|
9664
|
+
Nu(r.el, r.classNames.mouseEntered), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isMouseEntering = !1;
|
|
9659
9665
|
}, this._onMouseMove = function(e) {
|
|
9660
9666
|
r.mouseX = e.clientX, r.mouseY = e.clientY, (r.axis.x.isOverflowing || r.axis.x.forceVisible) && r.onMouseMoveForAxis("x"), (r.axis.y.isOverflowing || r.axis.y.forceVisible) && r.onMouseMoveForAxis("y");
|
|
9661
9667
|
}, this.onMouseLeave = function() {
|
|
@@ -9678,13 +9684,13 @@ var Du = gu, Ou = _u, ku = vu, Au = yu, ju = bu, Q = xu, Mu = function() {
|
|
|
9678
9684
|
}
|
|
9679
9685
|
}, this.onEndDrag = function(e) {
|
|
9680
9686
|
r.isDragging = !1;
|
|
9681
|
-
var t =
|
|
9682
|
-
e.preventDefault(), e.stopPropagation(),
|
|
9687
|
+
var t = Au(r.el), n = ku(r.el);
|
|
9688
|
+
e.preventDefault(), e.stopPropagation(), Nu(r.el, r.classNames.dragging), r.onStopScrolling(), t.removeEventListener("mousemove", r.drag, !0), t.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = n.setTimeout(function() {
|
|
9683
9689
|
t.removeEventListener("click", r.preventClick, !0), t.removeEventListener("dblclick", r.preventClick, !0), r.removePreventClickId = null;
|
|
9684
9690
|
});
|
|
9685
9691
|
}, this.preventClick = function(e) {
|
|
9686
9692
|
e.preventDefault(), e.stopPropagation();
|
|
9687
|
-
}, this.el = t, this.options =
|
|
9693
|
+
}, this.el = t, this.options = _u(_u({}, e.defaultOptions), n), this.classNames = _u(_u({}, e.defaultOptions.classNames), n.classNames), this.axis = {
|
|
9688
9694
|
x: {
|
|
9689
9695
|
scrollOffsetAttr: "scrollLeft",
|
|
9690
9696
|
sizeAttr: "width",
|
|
@@ -9732,7 +9738,7 @@ var Du = gu, Ou = _u, ku = vu, Au = yu, ju = bu, Q = xu, Mu = function() {
|
|
|
9732
9738
|
}
|
|
9733
9739
|
}
|
|
9734
9740
|
}, typeof this.el != "object" || !this.el.nodeName) throw Error(`Argument passed to SimpleBar must be an HTML element instead of ${this.el}`);
|
|
9735
|
-
this.onMouseMove =
|
|
9741
|
+
this.onMouseMove = gu(this._onMouseMove, 64), this.onWindowResize = mu(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = mu(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = mu(this._onMouseEntered, this.stopScrollDelay), this.init();
|
|
9736
9742
|
}
|
|
9737
9743
|
return e.getRtlHelpers = function() {
|
|
9738
9744
|
if (e.rtlHelpers) return e.rtlHelpers;
|
|
@@ -9750,22 +9756,22 @@ var Du = gu, Ou = _u, ku = vu, Au = yu, ju = bu, Q = xu, Mu = function() {
|
|
|
9750
9756
|
}, e.rtlHelpers;
|
|
9751
9757
|
}, e.prototype.getScrollbarWidth = function() {
|
|
9752
9758
|
try {
|
|
9753
|
-
return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 :
|
|
9759
|
+
return this.contentWrapperEl && getComputedStyle(this.contentWrapperEl, "::-webkit-scrollbar").display === "none" || "scrollbarWidth" in document.documentElement.style || "-ms-overflow-style" in document.documentElement.style ? 0 : Ou();
|
|
9754
9760
|
} catch {
|
|
9755
|
-
return
|
|
9761
|
+
return Ou();
|
|
9756
9762
|
}
|
|
9757
9763
|
}, e.getOffset = function(e) {
|
|
9758
|
-
var t = e.getBoundingClientRect(), n =
|
|
9764
|
+
var t = e.getBoundingClientRect(), n = Au(e), r = ku(e);
|
|
9759
9765
|
return {
|
|
9760
9766
|
top: t.top + (r.pageYOffset || n.documentElement.scrollTop),
|
|
9761
9767
|
left: t.left + (r.pageXOffset || n.documentElement.scrollLeft)
|
|
9762
9768
|
};
|
|
9763
9769
|
}, e.prototype.init = function() {
|
|
9764
|
-
|
|
9770
|
+
wu && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
|
|
9765
9771
|
}, e.prototype.initDOM = function() {
|
|
9766
|
-
this.wrapperEl = this.el.querySelector(Q(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(Q(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(Q(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(Q(this.classNames.offset)), this.maskEl = this.el.querySelector(Q(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, Q(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(Q(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(Q(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, `${Q(this.classNames.track)}${Q(this.classNames.horizontal)}`), this.axis.y.track.el = this.findChild(this.el, `${Q(this.classNames.track)}${Q(this.classNames.vertical)}`), this.axis.x.scrollbar.el = this.axis.x.track.el?.querySelector(Q(this.classNames.scrollbar)) || null, this.axis.y.scrollbar.el = this.axis.y.track.el?.querySelector(Q(this.classNames.scrollbar)) || null, this.options.autoHide || (
|
|
9772
|
+
this.wrapperEl = this.el.querySelector(Q(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(Q(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(Q(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(Q(this.classNames.offset)), this.maskEl = this.el.querySelector(Q(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, Q(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(Q(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(Q(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, `${Q(this.classNames.track)}${Q(this.classNames.horizontal)}`), this.axis.y.track.el = this.findChild(this.el, `${Q(this.classNames.track)}${Q(this.classNames.vertical)}`), this.axis.x.scrollbar.el = this.axis.x.track.el?.querySelector(Q(this.classNames.scrollbar)) || null, this.axis.y.scrollbar.el = this.axis.y.track.el?.querySelector(Q(this.classNames.scrollbar)) || null, this.options.autoHide || (Mu(this.axis.x.scrollbar.el, this.classNames.visible), Mu(this.axis.y.scrollbar.el, this.classNames.visible));
|
|
9767
9773
|
}, e.prototype.initListeners = function() {
|
|
9768
|
-
var e = this, t, n =
|
|
9774
|
+
var e = this, t, n = ku(this.el);
|
|
9769
9775
|
if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (t = this.contentWrapperEl) == null || t.addEventListener("scroll", this.onScroll), n.addEventListener("resize", this.onWindowResize), this.contentEl) {
|
|
9770
9776
|
if (window.ResizeObserver) {
|
|
9771
9777
|
var r = !1;
|
|
@@ -9789,7 +9795,7 @@ var Du = gu, Ou = _u, ku = vu, Au = yu, ju = bu, Q = xu, Mu = function() {
|
|
|
9789
9795
|
}
|
|
9790
9796
|
}, e.prototype.recalculate = function() {
|
|
9791
9797
|
if (!(!this.heightAutoObserverEl || !this.contentEl || !this.contentWrapperEl || !this.wrapperEl || !this.placeholderEl)) {
|
|
9792
|
-
this.elStyles =
|
|
9798
|
+
this.elStyles = ku(this.el).getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
|
|
9793
9799
|
var e = this.contentEl.offsetWidth, t = this.heightAutoObserverEl.offsetHeight <= 1, n = this.heightAutoObserverEl.offsetWidth <= 1 || e > 0, r = this.contentWrapperEl.offsetWidth, i = this.elStyles.overflowX, a = this.elStyles.overflowY;
|
|
9794
9800
|
this.contentEl.style.padding = `${this.elStyles.paddingTop} ${this.elStyles.paddingRight} ${this.elStyles.paddingBottom} ${this.elStyles.paddingLeft}`, this.wrapperEl.style.margin = `-${this.elStyles.paddingTop} -${this.elStyles.paddingRight} -${this.elStyles.paddingBottom} -${this.elStyles.paddingLeft}`;
|
|
9795
9801
|
var o = this.contentEl.scrollHeight, s = this.contentEl.scrollWidth;
|
|
@@ -9817,28 +9823,28 @@ var Du = gu, Ou = _u, ku = vu, Au = yu, ju = bu, Q = xu, Mu = function() {
|
|
|
9817
9823
|
var t = this.axis[e].track.el, n = this.axis[e].scrollbar.el;
|
|
9818
9824
|
!t || !n || !this.contentWrapperEl || (this.axis[e].isOverflowing || this.axis[e].forceVisible ? (t.style.visibility = "visible", this.contentWrapperEl.style[this.axis[e].overflowAttr] = "scroll", this.el.classList.add(`${this.classNames.scrollable}-${e}`)) : (t.style.visibility = "hidden", this.contentWrapperEl.style[this.axis[e].overflowAttr] = "hidden", this.el.classList.remove(`${this.classNames.scrollable}-${e}`)), this.axis[e].isOverflowing ? n.style.display = "block" : n.style.display = "none");
|
|
9819
9825
|
}, e.prototype.showScrollbar = function(e) {
|
|
9820
|
-
e === void 0 && (e = "y"), this.axis[e].isOverflowing && !this.axis[e].scrollbar.isVisible && (
|
|
9826
|
+
e === void 0 && (e = "y"), this.axis[e].isOverflowing && !this.axis[e].scrollbar.isVisible && (Mu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !0);
|
|
9821
9827
|
}, e.prototype.hideScrollbar = function(e) {
|
|
9822
|
-
e === void 0 && (e = "y"), !this.isDragging && this.axis[e].isOverflowing && this.axis[e].scrollbar.isVisible && (
|
|
9828
|
+
e === void 0 && (e = "y"), !this.isDragging && this.axis[e].isOverflowing && this.axis[e].scrollbar.isVisible && (Nu(this.axis[e].scrollbar.el, this.classNames.visible), this.axis[e].scrollbar.isVisible = !1);
|
|
9823
9829
|
}, e.prototype.hideNativeScrollbar = function() {
|
|
9824
9830
|
this.offsetEl && (this.offsetEl.style[this.isRtl ? "left" : "right"] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? `-${this.scrollbarWidth}px` : "0px", this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? `-${this.scrollbarWidth}px` : "0px");
|
|
9825
9831
|
}, e.prototype.onMouseMoveForAxis = function(e) {
|
|
9826
9832
|
e === void 0 && (e = "y");
|
|
9827
9833
|
var t = this.axis[e];
|
|
9828
|
-
!t.track.el || !t.scrollbar.el || (t.track.rect = t.track.el.getBoundingClientRect(), t.scrollbar.rect = t.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(t.track.rect) ? (this.showScrollbar(e),
|
|
9834
|
+
!t.track.el || !t.scrollbar.el || (t.track.rect = t.track.el.getBoundingClientRect(), t.scrollbar.rect = t.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(t.track.rect) ? (this.showScrollbar(e), Mu(t.track.el, this.classNames.hover), this.isWithinBounds(t.scrollbar.rect) ? Mu(t.scrollbar.el, this.classNames.hover) : Nu(t.scrollbar.el, this.classNames.hover)) : (Nu(t.track.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e)));
|
|
9829
9835
|
}, e.prototype.onMouseLeaveForAxis = function(e) {
|
|
9830
|
-
e === void 0 && (e = "y"),
|
|
9836
|
+
e === void 0 && (e = "y"), Nu(this.axis[e].track.el, this.classNames.hover), Nu(this.axis[e].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(e);
|
|
9831
9837
|
}, e.prototype.onDragStart = function(e, t) {
|
|
9832
9838
|
t === void 0 && (t = "y"), this.isDragging = !0;
|
|
9833
|
-
var n =
|
|
9834
|
-
this.axis[t].dragOffset = a - (i.rect?.[this.axis[t].offsetAttr] || 0), this.draggedAxis = t,
|
|
9839
|
+
var n = Au(this.el), r = ku(this.el), i = this.axis[t].scrollbar, a = t === "y" ? e.pageY : e.pageX;
|
|
9840
|
+
this.axis[t].dragOffset = a - (i.rect?.[this.axis[t].offsetAttr] || 0), this.draggedAxis = t, Mu(this.el, this.classNames.dragging), n.addEventListener("mousemove", this.drag, !0), n.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (n.addEventListener("click", this.preventClick, !0), n.addEventListener("dblclick", this.preventClick, !0)) : (r.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
|
|
9835
9841
|
}, e.prototype.onTrackClick = function(e, t) {
|
|
9836
9842
|
var n = this;
|
|
9837
9843
|
t === void 0 && (t = "y");
|
|
9838
9844
|
var r = this.axis[t];
|
|
9839
9845
|
if (!(!this.options.clickOnTrack || !r.scrollbar.el || !this.contentWrapperEl)) {
|
|
9840
9846
|
e.preventDefault();
|
|
9841
|
-
var i =
|
|
9847
|
+
var i = ku(this.el);
|
|
9842
9848
|
this.axis[t].scrollbar.rect = r.scrollbar.el.getBoundingClientRect();
|
|
9843
9849
|
var a = this.axis[t].scrollbar.rect?.[this.axis[t].offsetAttr] ?? 0, o = parseInt(this.elStyles?.[this.axis[t].sizeAttr] ?? "0px", 10), s = this.contentWrapperEl[this.axis[t].scrollOffsetAttr], c = (t === "y" ? this.mouseY - a : this.mouseX - a) < 0 ? -1 : 1, l = c === -1 ? s - o : s + o, u = 40, d = function() {
|
|
9844
9850
|
n.contentWrapperEl && (c === -1 ? s > l && (s -= u, n.contentWrapperEl[n.axis[t].scrollOffsetAttr] = s, i.requestAnimationFrame(d)) : s < l && (s += u, n.contentWrapperEl[n.axis[t].scrollOffsetAttr] = s, i.requestAnimationFrame(d)));
|
|
@@ -9850,7 +9856,7 @@ var Du = gu, Ou = _u, ku = vu, Au = yu, ju = bu, Q = xu, Mu = function() {
|
|
|
9850
9856
|
}, e.prototype.getScrollElement = function() {
|
|
9851
9857
|
return this.contentWrapperEl;
|
|
9852
9858
|
}, e.prototype.removeListeners = function() {
|
|
9853
|
-
var e =
|
|
9859
|
+
var e = ku(this.el);
|
|
9854
9860
|
this.el.removeEventListener("mouseenter", this.onMouseEnter), this.el.removeEventListener("pointerdown", this.onPointerEvent, !0), this.el.removeEventListener("mousemove", this.onMouseMove), this.el.removeEventListener("mouseleave", this.onMouseLeave), this.contentWrapperEl && this.contentWrapperEl.removeEventListener("scroll", this.onScroll), e.removeEventListener("resize", this.onWindowResize), this.mutationObserver && this.mutationObserver.disconnect(), this.resizeObserver && this.resizeObserver.disconnect(), this.onMouseMove.cancel(), this.onWindowResize.cancel(), this.onStopScrolling.cancel(), this.onMouseEntered.cancel();
|
|
9855
9861
|
}, e.prototype.unMount = function() {
|
|
9856
9862
|
this.removeListeners();
|
|
@@ -9891,52 +9897,52 @@ var Du = gu, Ou = _u, ku = vu, Au = yu, ju = bu, Q = xu, Mu = function() {
|
|
|
9891
9897
|
scrollableNode: null,
|
|
9892
9898
|
contentNode: null,
|
|
9893
9899
|
autoHide: !0
|
|
9894
|
-
}, e.getOptions =
|
|
9895
|
-
}(),
|
|
9896
|
-
return
|
|
9900
|
+
}, e.getOptions = ju, e.helpers = Tu, e;
|
|
9901
|
+
}(), Fu = function() {
|
|
9902
|
+
return Fu = Object.assign || function(e) {
|
|
9897
9903
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
9898
9904
|
return e;
|
|
9899
|
-
},
|
|
9905
|
+
}, Fu.apply(this, arguments);
|
|
9900
9906
|
};
|
|
9901
|
-
function
|
|
9907
|
+
function Iu(e, t) {
|
|
9902
9908
|
var n = {};
|
|
9903
9909
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
9904
9910
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
9905
9911
|
return n;
|
|
9906
9912
|
}
|
|
9907
|
-
var
|
|
9908
|
-
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, a =
|
|
9913
|
+
var Lu = T.forwardRef(function(e, t) {
|
|
9914
|
+
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, a = Iu(e, ["children", "scrollableNodeProps"]), o = T.useRef(), s = T.useRef(), c = T.useRef(), l = {}, u = {};
|
|
9909
9915
|
Object.keys(a).forEach(function(e) {
|
|
9910
|
-
Object.prototype.hasOwnProperty.call(
|
|
9916
|
+
Object.prototype.hasOwnProperty.call(Pu.defaultOptions, e) ? l[e] = a[e] : u[e] = a[e];
|
|
9911
9917
|
});
|
|
9912
|
-
var d =
|
|
9918
|
+
var d = Fu(Fu({}, Pu.defaultOptions.classNames), l.classNames), f = Fu(Fu({}, i), {
|
|
9913
9919
|
className: `${d.contentWrapper}${i.className ? ` ${i.className}` : ""}`,
|
|
9914
|
-
tabIndex: l.tabIndex ||
|
|
9920
|
+
tabIndex: l.tabIndex || Pu.defaultOptions.tabIndex,
|
|
9915
9921
|
role: "region",
|
|
9916
|
-
"aria-label": l.ariaLabel ||
|
|
9922
|
+
"aria-label": l.ariaLabel || Pu.defaultOptions.ariaLabel
|
|
9917
9923
|
});
|
|
9918
9924
|
return T.useEffect(function() {
|
|
9919
9925
|
var e;
|
|
9920
|
-
return s.current = f.ref ? f.ref.current : s.current, o.current && (e = new
|
|
9926
|
+
return s.current = f.ref ? f.ref.current : s.current, o.current && (e = new Pu(o.current, Fu(Fu(Fu({}, l), s.current && { scrollableNode: s.current }), c.current && { contentNode: c.current })), typeof t == "function" ? t(e) : t && (t.current = e)), function() {
|
|
9921
9927
|
e?.unMount(), e = null, typeof t == "function" && t(null);
|
|
9922
9928
|
};
|
|
9923
|
-
}, []), T.createElement("div",
|
|
9929
|
+
}, []), T.createElement("div", Fu({
|
|
9924
9930
|
"data-simplebar": "init",
|
|
9925
9931
|
ref: o
|
|
9926
9932
|
}, u), T.createElement("div", { className: d.wrapper }, T.createElement("div", { className: d.heightAutoObserverWrapperEl }, T.createElement("div", { className: d.heightAutoObserverEl })), T.createElement("div", { className: d.mask }, T.createElement("div", { className: d.offset }, typeof n == "function" ? n({
|
|
9927
9933
|
scrollableNodeRef: s,
|
|
9928
|
-
scrollableNodeProps:
|
|
9934
|
+
scrollableNodeProps: Fu(Fu({}, f), { ref: s }),
|
|
9929
9935
|
contentNodeRef: c,
|
|
9930
9936
|
contentNodeProps: {
|
|
9931
9937
|
className: d.contentEl,
|
|
9932
9938
|
ref: c
|
|
9933
9939
|
}
|
|
9934
|
-
}) : T.createElement("div",
|
|
9940
|
+
}) : T.createElement("div", Fu({}, f), T.createElement("div", { className: d.contentEl }, n)))), T.createElement("div", { className: d.placeholder })), T.createElement("div", { className: `${d.track} ${d.horizontal}` }, T.createElement("div", { className: d.scrollbar })), T.createElement("div", { className: `${d.track} ${d.vertical}` }, T.createElement("div", { className: d.scrollbar })));
|
|
9935
9941
|
});
|
|
9936
|
-
|
|
9942
|
+
Lu.displayName = "SimpleBar";
|
|
9937
9943
|
//#endregion
|
|
9938
9944
|
//#region src/lib/components/simple-overlay/index.tsx
|
|
9939
|
-
var
|
|
9945
|
+
var Ru = J.div`
|
|
9940
9946
|
.simplebar-scrollbar::before {
|
|
9941
9947
|
width: var(--scrollbar-size);
|
|
9942
9948
|
background: var(--scrollbar-handle-bg);
|
|
@@ -9947,7 +9953,7 @@ var Iu = J.div`
|
|
|
9947
9953
|
background: var(--scrollbar-handle-light-bg);
|
|
9948
9954
|
}
|
|
9949
9955
|
}
|
|
9950
|
-
`,
|
|
9956
|
+
`, zu = ({ height: e, children: t, style: n, disableTrigger: r, onScrollEnd: a }) => {
|
|
9951
9957
|
let { config: o } = i(), { isDarkTheme: s } = o, c = E.useRef(null);
|
|
9952
9958
|
return F(() => {
|
|
9953
9959
|
let e = (e) => {
|
|
@@ -9961,9 +9967,9 @@ var Iu = J.div`
|
|
|
9961
9967
|
e,
|
|
9962
9968
|
r,
|
|
9963
9969
|
a
|
|
9964
|
-
]), /* @__PURE__ */ H(
|
|
9970
|
+
]), /* @__PURE__ */ H(Ru, {
|
|
9965
9971
|
className: s ? "dark" : "light",
|
|
9966
|
-
children: /* @__PURE__ */ H(
|
|
9972
|
+
children: /* @__PURE__ */ H(Lu, {
|
|
9967
9973
|
ref: c,
|
|
9968
9974
|
style: {
|
|
9969
9975
|
height: e,
|
|
@@ -9972,13 +9978,13 @@ var Iu = J.div`
|
|
|
9972
9978
|
children: t
|
|
9973
9979
|
})
|
|
9974
9980
|
});
|
|
9975
|
-
},
|
|
9981
|
+
}, Bu = E.memo(({ columns: e }) => {
|
|
9976
9982
|
let t = o();
|
|
9977
9983
|
return /* @__PURE__ */ H("tr", { children: e.map((e, n) => /* @__PURE__ */ H("th", { children: /* @__PURE__ */ H("span", {
|
|
9978
9984
|
className: "cell-span cell-header",
|
|
9979
9985
|
children: e.locale ? t.formatMessage({ id: e.title }) : e.title
|
|
9980
9986
|
}) }, n)) });
|
|
9981
|
-
}),
|
|
9987
|
+
}), Vu = (e) => {
|
|
9982
9988
|
let { row: t, column: n, rowIndex: r, colIndex: i, dataList: a } = e;
|
|
9983
9989
|
return R(() => n.render ? n.render({
|
|
9984
9990
|
dataIndex: n.key,
|
|
@@ -10020,24 +10026,24 @@ var Iu = J.div`
|
|
|
10020
10026
|
}) : t[n.key]
|
|
10021
10027
|
})
|
|
10022
10028
|
}, i);
|
|
10023
|
-
},
|
|
10029
|
+
}, Hu = ({ row: e, columns: t, rowIndex: n, dataList: r }) => /* @__PURE__ */ H("tr", { children: t.map((t, i) => /* @__PURE__ */ H(Vu, {
|
|
10024
10030
|
rowIndex: n,
|
|
10025
10031
|
colIndex: i,
|
|
10026
10032
|
dataList: r,
|
|
10027
10033
|
row: e,
|
|
10028
10034
|
column: t
|
|
10029
|
-
}, i)) }),
|
|
10035
|
+
}, i)) }), Uu = (e) => {
|
|
10030
10036
|
let { columns: t, dataSource: n, rowKey: r, theme: i, bordered: a = !0 } = e;
|
|
10031
10037
|
return /* @__PURE__ */ H("div", { children: /* @__PURE__ */ U("table", {
|
|
10032
10038
|
className: (0, Y.default)("simple-table", i, { "simple-table-bordered": a }),
|
|
10033
|
-
children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H(
|
|
10039
|
+
children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H(Bu, { columns: t }) }), /* @__PURE__ */ H("tbody", { children: n.map((e, i) => /* @__PURE__ */ H(Hu, {
|
|
10034
10040
|
row: e,
|
|
10035
10041
|
rowIndex: i,
|
|
10036
10042
|
columns: t,
|
|
10037
10043
|
dataList: n
|
|
10038
10044
|
}, e[r])) })]
|
|
10039
10045
|
}) });
|
|
10040
|
-
},
|
|
10046
|
+
}, Wu = (e) => {
|
|
10041
10047
|
let { data: t, fieldList: n, style: r } = e, i = o();
|
|
10042
10048
|
return /* @__PURE__ */ H("span", {
|
|
10043
10049
|
className: "flex",
|
|
@@ -10061,7 +10067,7 @@ var Iu = J.div`
|
|
|
10061
10067
|
}) : null]
|
|
10062
10068
|
}, e.key || r))
|
|
10063
10069
|
});
|
|
10064
|
-
},
|
|
10070
|
+
}, Gu = A((e, t) => {
|
|
10065
10071
|
let { autoplay: n = !1 } = e, r = E.useRef(null), i = z(null), a = z(null), o = z(null), s = N(() => {
|
|
10066
10072
|
i.current = new (window.AudioContext || window.webkitAudioContext)(), a.current = i.current.createAnalyser(), a.current.fftSize = 512, o.current = new Uint8Array(a.current.frequencyBinCount);
|
|
10067
10073
|
}, []), c = N(() => {
|
|
@@ -10127,7 +10133,7 @@ var Iu = J.div`
|
|
|
10127
10133
|
},
|
|
10128
10134
|
preload: "metadata"
|
|
10129
10135
|
});
|
|
10130
|
-
}),
|
|
10136
|
+
}), Ku = A((e, t) => {
|
|
10131
10137
|
let { isStream: n } = e;
|
|
10132
10138
|
console.log("Rendering SpeechItem with props:", e.isStream, e.analyserData);
|
|
10133
10139
|
let r = o(), [i, a] = B(e.autoplay || e.isPlaying), [s, c] = B(0), [l, u] = B({
|
|
@@ -10245,7 +10251,7 @@ var Iu = J.div`
|
|
|
10245
10251
|
width: "100%"
|
|
10246
10252
|
},
|
|
10247
10253
|
ref: h,
|
|
10248
|
-
children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(
|
|
10254
|
+
children: /* @__PURE__ */ U(V, { children: [!_ && /* @__PURE__ */ H(Gu, {
|
|
10249
10255
|
...e,
|
|
10250
10256
|
url: e.audioUrl,
|
|
10251
10257
|
onReady: k,
|
|
@@ -10265,7 +10271,7 @@ var Iu = J.div`
|
|
|
10265
10271
|
})] })
|
|
10266
10272
|
})
|
|
10267
10273
|
}), M()] });
|
|
10268
|
-
}),
|
|
10274
|
+
}), qu = (e) => /* @__PURE__ */ H("div", { children: e.dataList.map((t) => /* @__PURE__ */ H(Ku, {
|
|
10269
10275
|
...t,
|
|
10270
10276
|
isStream: e.isStream,
|
|
10271
10277
|
isPlaying: e.isPlaying,
|
|
@@ -10273,12 +10279,12 @@ var Iu = J.div`
|
|
|
10273
10279
|
onPause: e.onPause,
|
|
10274
10280
|
ref: e.playerRef,
|
|
10275
10281
|
analyserData: e.analyserData
|
|
10276
|
-
}, t.uid)) }),
|
|
10282
|
+
}, t.uid)) }), Ju = J.span`
|
|
10277
10283
|
white-space: nowrap;
|
|
10278
10284
|
overflow: hidden;
|
|
10279
10285
|
text-overflow: ellipsis;
|
|
10280
|
-
`,
|
|
10281
|
-
let { text: s, status: l } = t, d = R(() => zi[l], [l]), f = R(() => t.message ?
|
|
10286
|
+
`, Yu = /<a (.*?)>(.*?)<\/a>/g, Xu = ({ style: e, statusValue: t, download: n, extra: r, actions: i = [], maxTooltipWidth: a = 250, suffix: o }) => {
|
|
10287
|
+
let { text: s, status: l } = t, d = R(() => zi[l], [l]), f = R(() => t.message ? Yu.test(t.message || "") : !1, [t.message]), p = R(() => t.message ? t.message?.match(Yu) ? t.message?.replace(Yu, "<a $1 target=\"_blank\">$2</a>") : t.message : "", [t.message]), m = () => {
|
|
10282
10288
|
let e = n?.percent || 0;
|
|
10283
10289
|
return n && e > 0 && e <= 100 ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ U("span", {
|
|
10284
10290
|
className: "progress",
|
|
@@ -10286,7 +10292,7 @@ var Iu = J.div`
|
|
|
10286
10292
|
}), /* @__PURE__ */ H("span", {
|
|
10287
10293
|
className: "download",
|
|
10288
10294
|
style: { width: `${X.default.round(e, 0)}%` }
|
|
10289
|
-
})] }) : /* @__PURE__ */ H(
|
|
10295
|
+
})] }) : /* @__PURE__ */ H(Ju, { children: s });
|
|
10290
10296
|
}, h = /* @__PURE__ */ U("div", {
|
|
10291
10297
|
className: "status-content-wrapper",
|
|
10292
10298
|
children: [/* @__PURE__ */ U("div", {
|
|
@@ -10352,7 +10358,7 @@ var Iu = J.div`
|
|
|
10352
10358
|
children: [m(), o && /* @__PURE__ */ H("span", { children: o })]
|
|
10353
10359
|
})
|
|
10354
10360
|
});
|
|
10355
|
-
},
|
|
10361
|
+
}, Zu = (e) => {
|
|
10356
10362
|
let { title: t, style: n, align: r, firstCell: i, lastCell: a, sortOrder: s, sortDirections: c = [
|
|
10357
10363
|
"ascend",
|
|
10358
10364
|
"descend",
|
|
@@ -10407,7 +10413,7 @@ var Iu = J.div`
|
|
|
10407
10413
|
})
|
|
10408
10414
|
})
|
|
10409
10415
|
});
|
|
10410
|
-
},
|
|
10416
|
+
}, Qu = (e) => {
|
|
10411
10417
|
let { onSort: t, sortDirections: n, sorterList: r, showSorterTooltip: i } = e;
|
|
10412
10418
|
return /* @__PURE__ */ H(St, {
|
|
10413
10419
|
className: "row",
|
|
@@ -10415,7 +10421,7 @@ var Iu = J.div`
|
|
|
10415
10421
|
let { title: s, dataIndex: c, align: l, width: u, span: d, headerStyle: f, sortOrder: p, sorter: m, defaultSortOrder: h } = a;
|
|
10416
10422
|
return /* @__PURE__ */ H(ct, {
|
|
10417
10423
|
span: d,
|
|
10418
|
-
children: /* @__PURE__ */ H(
|
|
10424
|
+
children: /* @__PURE__ */ H(Zu, {
|
|
10419
10425
|
onSort: t,
|
|
10420
10426
|
showSorterTooltip: i,
|
|
10421
10427
|
sorter: m,
|
|
@@ -10434,7 +10440,7 @@ var Iu = J.div`
|
|
|
10434
10440
|
}, c || o);
|
|
10435
10441
|
})
|
|
10436
10442
|
});
|
|
10437
|
-
},
|
|
10443
|
+
}, $u = (e) => {
|
|
10438
10444
|
let { hasColumns: t, expandable: n, enableSelection: r, onSelectAll: i, onExpandAll: a, indeterminate: s, selectAll: c, expandAll: l, disabled: u } = e;
|
|
10439
10445
|
o();
|
|
10440
10446
|
let d = () => {
|
|
@@ -10487,13 +10493,13 @@ var Iu = J.div`
|
|
|
10487
10493
|
className: "header-row-prefix-wrapper",
|
|
10488
10494
|
children: /* @__PURE__ */ H(G, { disabled: u })
|
|
10489
10495
|
}) : null : null;
|
|
10490
|
-
},
|
|
10496
|
+
}, ed = (e) => {
|
|
10491
10497
|
let { children: t } = e;
|
|
10492
10498
|
return /* @__PURE__ */ H("div", {
|
|
10493
10499
|
className: "row-children",
|
|
10494
10500
|
children: t
|
|
10495
10501
|
});
|
|
10496
|
-
},
|
|
10502
|
+
}, td = E.createContext({}), nd = E.createContext({}), rd = J.div`
|
|
10497
10503
|
width: 30px;
|
|
10498
10504
|
margin-right: 5px;
|
|
10499
10505
|
&.disable-expand {
|
|
@@ -10501,11 +10507,11 @@ var Iu = J.div`
|
|
|
10501
10507
|
display: none;
|
|
10502
10508
|
}
|
|
10503
10509
|
}
|
|
10504
|
-
`,
|
|
10510
|
+
`, id = (e) => {
|
|
10505
10511
|
let { expandable: t, enableSelection: n, expanded: r, checked: i, disableExpand: a, handleRowExpand: o, handleSelectChange: s } = e, c = R(() => r, [r]);
|
|
10506
10512
|
return t && n ? /* @__PURE__ */ U("div", {
|
|
10507
10513
|
className: "row-prefix-wrapper",
|
|
10508
|
-
children: [/* @__PURE__ */ H(
|
|
10514
|
+
children: [/* @__PURE__ */ H(rd, {
|
|
10509
10515
|
className: (0, Y.default)({ "disable-expand": a }),
|
|
10510
10516
|
children: X.default.isBoolean(t) ? /* @__PURE__ */ H(W, {
|
|
10511
10517
|
type: "text",
|
|
@@ -10523,7 +10529,7 @@ var Iu = J.div`
|
|
|
10523
10529
|
})]
|
|
10524
10530
|
}) : t ? /* @__PURE__ */ H("div", {
|
|
10525
10531
|
className: "row-prefix-wrapper",
|
|
10526
|
-
children: /* @__PURE__ */ H(
|
|
10532
|
+
children: /* @__PURE__ */ H(rd, {
|
|
10527
10533
|
className: (0, Y.default)({ "disable-expand": a }),
|
|
10528
10534
|
children: X.default.isBoolean(t) ? /* @__PURE__ */ H(W, {
|
|
10529
10535
|
type: "text",
|
|
@@ -10544,11 +10550,11 @@ var Iu = J.div`
|
|
|
10544
10550
|
checked: i
|
|
10545
10551
|
})
|
|
10546
10552
|
}) : null;
|
|
10547
|
-
},
|
|
10553
|
+
}, ad = J.div`
|
|
10548
10554
|
max-width: 100%;
|
|
10549
10555
|
display: flex;
|
|
10550
10556
|
align-items: center;
|
|
10551
|
-
`,
|
|
10557
|
+
`, od = (e) => {
|
|
10552
10558
|
let t = o(), { isEditing: n, editable: r, handleSubmit: i, handleUndo: a, handleEdit: s } = e;
|
|
10553
10559
|
return r ? n ? /* @__PURE__ */ U("span", {
|
|
10554
10560
|
className: "flex-column",
|
|
@@ -10584,7 +10590,7 @@ var Iu = J.div`
|
|
|
10584
10590
|
})
|
|
10585
10591
|
}, "edit")
|
|
10586
10592
|
}) : null;
|
|
10587
|
-
},
|
|
10593
|
+
}, sd = (e) => {
|
|
10588
10594
|
let { editable: t, current: n, isEditing: r, row: i, render: a, onChange: o } = e;
|
|
10589
10595
|
return r && t ? typeof t == "object" && t?.valueType === "number" ? /* @__PURE__ */ H(_t, {
|
|
10590
10596
|
style: { width: "80px" },
|
|
@@ -10595,9 +10601,9 @@ var Iu = J.div`
|
|
|
10595
10601
|
value: n,
|
|
10596
10602
|
onChange: (e) => o(e.target.value)
|
|
10597
10603
|
}) : a ? a(n, i) : n;
|
|
10598
|
-
},
|
|
10599
|
-
let { row: t, onCell: n } = P(
|
|
10600
|
-
return /* @__PURE__ */ U(
|
|
10604
|
+
}, cd = (e) => {
|
|
10605
|
+
let { row: t, onCell: n } = P(td), { dataIndex: r, render: i, editable: a } = e, [o, s] = E.useState(!1), [c, l] = E.useState(null);
|
|
10606
|
+
return /* @__PURE__ */ U(ad, { children: [/* @__PURE__ */ H(sd, {
|
|
10601
10607
|
onChange: (e) => {
|
|
10602
10608
|
l(e);
|
|
10603
10609
|
},
|
|
@@ -10606,7 +10612,7 @@ var Iu = J.div`
|
|
|
10606
10612
|
current: o ? c : t[r],
|
|
10607
10613
|
row: t,
|
|
10608
10614
|
render: i
|
|
10609
|
-
}), /* @__PURE__ */ H(
|
|
10615
|
+
}), /* @__PURE__ */ H(od, {
|
|
10610
10616
|
editable: a,
|
|
10611
10617
|
isEditing: o,
|
|
10612
10618
|
handleEdit: () => {
|
|
@@ -10626,7 +10632,7 @@ var Iu = J.div`
|
|
|
10626
10632
|
s(!1);
|
|
10627
10633
|
}
|
|
10628
10634
|
})] });
|
|
10629
|
-
},
|
|
10635
|
+
}, ld = J.div`
|
|
10630
10636
|
padding: var(--ant-table-cell-padding-block)
|
|
10631
10637
|
var(--ant-table-cell-padding-inline);
|
|
10632
10638
|
display: flex;
|
|
@@ -10649,22 +10655,22 @@ var Iu = J.div`
|
|
|
10649
10655
|
&.center {
|
|
10650
10656
|
justify-content: center;
|
|
10651
10657
|
}
|
|
10652
|
-
`,
|
|
10658
|
+
`, ud = (e) => {
|
|
10653
10659
|
let { dataIndex: t, render: n, align: r, editable: i, dataField: a } = e;
|
|
10654
|
-
return /* @__PURE__ */ H(
|
|
10660
|
+
return /* @__PURE__ */ H(ld, {
|
|
10655
10661
|
className: (0, Y.default)("cell", {
|
|
10656
10662
|
left: r === "left",
|
|
10657
10663
|
center: r === "center",
|
|
10658
10664
|
right: r === "right"
|
|
10659
10665
|
}),
|
|
10660
|
-
children: /* @__PURE__ */ H(
|
|
10666
|
+
children: /* @__PURE__ */ H(cd, {
|
|
10661
10667
|
dataIndex: a || t,
|
|
10662
10668
|
render: n,
|
|
10663
10669
|
editable: i
|
|
10664
10670
|
})
|
|
10665
10671
|
});
|
|
10666
|
-
},
|
|
10667
|
-
let { record: t, rowIndex: n, expandable: r, rowSelection: i, expandedRowKeys: a = [], rowKey: o, childParentKey: s, columns: c, pollingChildren: l, watchChildren: u, onCell: d, onExpand: f, renderChildren: p, loadChildren: m, loadChildrenAPI: h } = e, g = E.useContext(
|
|
10672
|
+
}, dd = (e) => {
|
|
10673
|
+
let { record: t, rowIndex: n, expandable: r, rowSelection: i, expandedRowKeys: a = [], rowKey: o, childParentKey: s, columns: c, pollingChildren: l, watchChildren: u, onCell: d, onExpand: f, renderChildren: p, loadChildren: m, loadChildrenAPI: h } = e, g = E.useContext(nd), [_, v] = B([]), [y, b] = B(!1), x = z(null), S = z(null), C = z([]);
|
|
10668
10674
|
C.current = _;
|
|
10669
10675
|
let w = z(null), [T, D] = B(!0), [O, k] = B(!1);
|
|
10670
10676
|
F(() => () => {
|
|
@@ -10715,7 +10721,7 @@ var Iu = J.div`
|
|
|
10715
10721
|
};
|
|
10716
10722
|
}, []), F(() => (T && I(), () => {
|
|
10717
10723
|
S.current?.current?.cancel?.();
|
|
10718
|
-
}), [T, g.allChildren]), /* @__PURE__ */ H(
|
|
10724
|
+
}), [T, g.allChildren]), /* @__PURE__ */ H(td.Provider, {
|
|
10719
10725
|
value: {
|
|
10720
10726
|
row: {
|
|
10721
10727
|
...t,
|
|
@@ -10727,7 +10733,7 @@ var Iu = J.div`
|
|
|
10727
10733
|
className: "row-box",
|
|
10728
10734
|
children: [/* @__PURE__ */ U("div", {
|
|
10729
10735
|
className: (0, Y.default)("row-wrapper", { "row-wrapper-selected": j }),
|
|
10730
|
-
children: [/* @__PURE__ */ H(
|
|
10736
|
+
children: [/* @__PURE__ */ H(id, {
|
|
10731
10737
|
expandable: r,
|
|
10732
10738
|
enableSelection: i?.enableSelection,
|
|
10733
10739
|
expanded: A,
|
|
@@ -10739,7 +10745,7 @@ var Iu = J.div`
|
|
|
10739
10745
|
className: "seal-table-row",
|
|
10740
10746
|
children: c?.map(({ key: e, ...t }) => /* @__PURE__ */ H(ct, {
|
|
10741
10747
|
span: t.span,
|
|
10742
|
-
children: /* @__PURE__ */ H(
|
|
10748
|
+
children: /* @__PURE__ */ H(ud, { ...t })
|
|
10743
10749
|
}, `${t.dataIndex}-${n}`))
|
|
10744
10750
|
})]
|
|
10745
10751
|
}), A && !V && /* @__PURE__ */ H("div", {
|
|
@@ -10752,9 +10758,9 @@ var Iu = J.div`
|
|
|
10752
10758
|
})]
|
|
10753
10759
|
})
|
|
10754
10760
|
});
|
|
10755
|
-
},
|
|
10761
|
+
}, fd = ({ dataSource: e, rowKey: t, rowSelection: n, expandable: r, expandedRowKeys: i, onExpand: a, childParentKey: o, pollingChildren: s, watchChildren: c, renderChildren: l, loadChildren: u, loadChildrenAPI: d, columns: f, onCell: p, empty: m }) => e.length ? /* @__PURE__ */ H("div", {
|
|
10756
10762
|
className: "seal-table-content",
|
|
10757
|
-
children: e.map((e, m) => /* @__PURE__ */ H(
|
|
10763
|
+
children: e.map((e, m) => /* @__PURE__ */ H(dd, {
|
|
10758
10764
|
record: e,
|
|
10759
10765
|
rowIndex: m,
|
|
10760
10766
|
columns: f,
|
|
@@ -10774,7 +10780,7 @@ var Iu = J.div`
|
|
|
10774
10780
|
}) : /* @__PURE__ */ H("div", {
|
|
10775
10781
|
className: "empty-wrapper",
|
|
10776
10782
|
children: m || /* @__PURE__ */ H(pt, { image: pt.PRESENTED_IMAGE_SIMPLE })
|
|
10777
|
-
}),
|
|
10783
|
+
}), pd = (e) => {
|
|
10778
10784
|
let t = e.filter((e) => e.defaultSortOrder);
|
|
10779
10785
|
return t.length === 0 ? [] : t.map((e) => ({
|
|
10780
10786
|
columnKey: e.key || e.dataIndex,
|
|
@@ -10782,8 +10788,8 @@ var Iu = J.div`
|
|
|
10782
10788
|
order: e.defaultSortOrder || null
|
|
10783
10789
|
}));
|
|
10784
10790
|
};
|
|
10785
|
-
function
|
|
10786
|
-
let { onTableSort: t, columns: n } = e, r = z(
|
|
10791
|
+
function md(e) {
|
|
10792
|
+
let { onTableSort: t, columns: n } = e, r = z(pd(n || [])), [i, a] = B(pd(n || []));
|
|
10787
10793
|
return {
|
|
10788
10794
|
sorterListRef: r,
|
|
10789
10795
|
sorterList: i,
|
|
@@ -10810,7 +10816,7 @@ function fd(e) {
|
|
|
10810
10816
|
}
|
|
10811
10817
|
//#endregion
|
|
10812
10818
|
//#region src/lib/components/table/index.tsx
|
|
10813
|
-
var
|
|
10819
|
+
var hd = J.div`
|
|
10814
10820
|
width: 100%;
|
|
10815
10821
|
--ant-table-cell-padding-inline: ${(e) => e.$token.cellPaddingInline}px;
|
|
10816
10822
|
--ant-table-cell-padding-block: ${(e) => e.$token.cellPaddingBlock}px;
|
|
@@ -10821,8 +10827,8 @@ var pd = J.div`
|
|
|
10821
10827
|
--ant-table-row-hover-bg: ${(e) => e.$token.rowHoverBg};
|
|
10822
10828
|
--ant-table-header-icon-color: ${(e) => e.$token.tableHeaderIconColor};
|
|
10823
10829
|
--ant-table-header-icon-hover-color: ${(e) => e.$token.tableHeaderIconHoverColor};
|
|
10824
|
-
`,
|
|
10825
|
-
let { columns: t, children: n, rowKey: r, childParentKey: i, onExpand: a, onExpandAll: o, onTableSort: s, onCell: c, expandedRowKeys: l, loading: u, loadend: d, expandable: f, pollingChildren: p, watchChildren: m, rowSelection: h, pagination: g, empty: _, sortDirections: v, showSorterTooltip: y, renderChildren: b, loadChildren: x, loadChildrenAPI: S } = e, { handleOnTableSort: C, sorterList: w } =
|
|
10830
|
+
`, gd = (e) => {
|
|
10831
|
+
let { columns: t, children: n, rowKey: r, childParentKey: i, onExpand: a, onExpandAll: o, onTableSort: s, onCell: c, expandedRowKeys: l, loading: u, loadend: d, expandable: f, pollingChildren: p, watchChildren: m, rowSelection: h, pagination: g, empty: _, sortDirections: v, showSorterTooltip: y, renderChildren: b, loadChildren: x, loadChildrenAPI: S } = e, { handleOnTableSort: C, sorterList: w } = md({
|
|
10826
10832
|
onTableSort: s,
|
|
10827
10833
|
columns: t
|
|
10828
10834
|
}), { token: T } = Rt.useToken(), D = R(() => t || E.Children.toArray(n).filter(E.isValidElement).map((e) => {
|
|
@@ -10874,7 +10880,7 @@ var pd = J.div`
|
|
|
10874
10880
|
}, F = (e, t) => {
|
|
10875
10881
|
g?.onShowSizeChange?.(e, t);
|
|
10876
10882
|
};
|
|
10877
|
-
return console.log("token.table", T), /* @__PURE__ */ U(
|
|
10883
|
+
return console.log("token.table", T), /* @__PURE__ */ U(hd, {
|
|
10878
10884
|
$token: {
|
|
10879
10885
|
...T.Table,
|
|
10880
10886
|
tableHeaderIconColor: T.colorTextQuaternary,
|
|
@@ -10885,7 +10891,7 @@ var pd = J.div`
|
|
|
10885
10891
|
className: "seal-table-container",
|
|
10886
10892
|
children: [/* @__PURE__ */ U("div", {
|
|
10887
10893
|
className: "header-row-wrapper",
|
|
10888
|
-
children: [/* @__PURE__ */ H(
|
|
10894
|
+
children: [/* @__PURE__ */ H($u, {
|
|
10889
10895
|
selectAll: k.selectAll,
|
|
10890
10896
|
indeterminate: k.indeterminate,
|
|
10891
10897
|
onSelectAll: M,
|
|
@@ -10895,7 +10901,7 @@ var pd = J.div`
|
|
|
10895
10901
|
enableSelection: h?.enableSelection,
|
|
10896
10902
|
disabled: !e.dataSource?.length,
|
|
10897
10903
|
hasColumns: D.length > 0
|
|
10898
|
-
}), /* @__PURE__ */ H(
|
|
10904
|
+
}), /* @__PURE__ */ H(Qu, {
|
|
10899
10905
|
onSort: C,
|
|
10900
10906
|
columns: D,
|
|
10901
10907
|
sortDirections: v,
|
|
@@ -10905,7 +10911,7 @@ var pd = J.div`
|
|
|
10905
10911
|
}), /* @__PURE__ */ H(Ot, {
|
|
10906
10912
|
spinning: u,
|
|
10907
10913
|
size: "middle",
|
|
10908
|
-
children: /* @__PURE__ */ H(
|
|
10914
|
+
children: /* @__PURE__ */ H(fd, {
|
|
10909
10915
|
empty: _,
|
|
10910
10916
|
dataSource: e.dataSource,
|
|
10911
10917
|
columns: D,
|
|
@@ -10933,16 +10939,16 @@ var pd = J.div`
|
|
|
10933
10939
|
})]
|
|
10934
10940
|
});
|
|
10935
10941
|
};
|
|
10936
|
-
|
|
10942
|
+
gd.RowChildren = ed;
|
|
10937
10943
|
//#endregion
|
|
10938
10944
|
//#region src/lib/components/table/table-provider.tsx
|
|
10939
|
-
var
|
|
10945
|
+
var _d = ({ value: e, children: t }) => /* @__PURE__ */ H(nd.Provider, {
|
|
10940
10946
|
value: e,
|
|
10941
10947
|
children: t
|
|
10942
|
-
}),
|
|
10948
|
+
}), vd = ({ value: e, children: t }) => /* @__PURE__ */ H(td.Provider, {
|
|
10943
10949
|
value: e,
|
|
10944
10950
|
children: t
|
|
10945
|
-
}),
|
|
10951
|
+
}), yd = (e) => {
|
|
10946
10952
|
let { gap: t = 0, dataList: n, renderTag: r } = e, i = z(null), [a, o] = B({
|
|
10947
10953
|
start: 0,
|
|
10948
10954
|
end: n.length
|
|
@@ -11006,7 +11012,7 @@ var hd = ({ value: e, children: t }) => /* @__PURE__ */ H(ed.Provider, {
|
|
|
11006
11012
|
})]
|
|
11007
11013
|
})
|
|
11008
11014
|
});
|
|
11009
|
-
},
|
|
11015
|
+
}, bd = J(Mt)`
|
|
11010
11016
|
display: flex;
|
|
11011
11017
|
align-items: center;
|
|
11012
11018
|
justify-content: center;
|
|
@@ -11016,9 +11022,9 @@ var hd = ({ value: e, children: t }) => /* @__PURE__ */ H(ed.Provider, {
|
|
|
11016
11022
|
height: 22px;
|
|
11017
11023
|
opacity: 0.7;
|
|
11018
11024
|
margin: 0;
|
|
11019
|
-
`,
|
|
11025
|
+
`, xd = ({ opacity: e, style: t, children: n, ...r }) => {
|
|
11020
11026
|
let { config: a } = i(), { isDarkTheme: o } = a;
|
|
11021
|
-
return /* @__PURE__ */ H(
|
|
11027
|
+
return /* @__PURE__ */ H(bd, {
|
|
11022
11028
|
...r,
|
|
11023
11029
|
variant: "outlined",
|
|
11024
11030
|
style: {
|
|
@@ -11028,10 +11034,10 @@ var hd = ({ value: e, children: t }) => /* @__PURE__ */ H(ed.Provider, {
|
|
|
11028
11034
|
children: n
|
|
11029
11035
|
});
|
|
11030
11036
|
};
|
|
11031
|
-
|
|
11037
|
+
xd.displayName = "ThemeTag";
|
|
11032
11038
|
//#endregion
|
|
11033
11039
|
//#region src/lib/components/templates/card.tsx
|
|
11034
|
-
var
|
|
11040
|
+
var Sd = J.div.attrs({ className: "template-card-wrapper" })`
|
|
11035
11041
|
overflow: hidden;
|
|
11036
11042
|
display: flex;
|
|
11037
11043
|
padding: 16px 16px;
|
|
@@ -11068,31 +11074,31 @@ var bd = J.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11068
11074
|
pointer-events: none;
|
|
11069
11075
|
border-style: dashed;
|
|
11070
11076
|
}
|
|
11071
|
-
`,
|
|
11077
|
+
`, Cd = J.div.attrs({ className: "template-card-content" })`
|
|
11072
11078
|
width: 100%;
|
|
11073
11079
|
flex: 1;
|
|
11074
11080
|
color: var(--ant-color-text-tertiary);
|
|
11075
|
-
`,
|
|
11081
|
+
`, wd = J.div.attrs({ className: "template-card-inner" })`
|
|
11076
11082
|
display: flex;
|
|
11077
11083
|
width: 100%;
|
|
11078
11084
|
flex-direction: column;
|
|
11079
11085
|
justify-content: flex-start;
|
|
11080
11086
|
gap: 8px;
|
|
11081
11087
|
height: 100%;
|
|
11082
|
-
`,
|
|
11088
|
+
`, Td = J.div.attrs({ className: "template-card-icon" })`
|
|
11083
11089
|
display: flex;
|
|
11084
11090
|
align-items: center;
|
|
11085
11091
|
margin-right: 16px;
|
|
11086
11092
|
font-size: 32px;
|
|
11087
|
-
`,
|
|
11093
|
+
`, Ed = J.div.attrs({ className: "template-card-header" })`
|
|
11088
11094
|
font-weight: bold;
|
|
11089
11095
|
font-size: var(--font-size-base);
|
|
11090
11096
|
display: flex;
|
|
11091
11097
|
align-items: center;
|
|
11092
11098
|
justify-content: space-between;
|
|
11093
|
-
`,
|
|
11099
|
+
`, Dd = (e) => {
|
|
11094
11100
|
let { className: t, height: n, children: r, clickable: i = !0, ghost: a = !1, header: o, footer: s, icon: c, active: l, disabled: u, hoverable: d, onClick: f } = e;
|
|
11095
|
-
return /* @__PURE__ */ U(
|
|
11101
|
+
return /* @__PURE__ */ U(Sd, {
|
|
11096
11102
|
className: (0, Y.default)(t, {
|
|
11097
11103
|
clickable: i,
|
|
11098
11104
|
hoverable: d,
|
|
@@ -11104,17 +11110,17 @@ var bd = J.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11104
11110
|
onClick: () => {
|
|
11105
11111
|
u || !i || f?.();
|
|
11106
11112
|
},
|
|
11107
|
-
children: [c && /* @__PURE__ */ H(
|
|
11108
|
-
o && /* @__PURE__ */ H(
|
|
11109
|
-
r && /* @__PURE__ */ H(
|
|
11113
|
+
children: [c && /* @__PURE__ */ H(Td, { children: c }), /* @__PURE__ */ U(wd, { children: [
|
|
11114
|
+
o && /* @__PURE__ */ H(Ed, { children: o }),
|
|
11115
|
+
r && /* @__PURE__ */ H(Cd, { children: r }),
|
|
11110
11116
|
s
|
|
11111
11117
|
] })]
|
|
11112
11118
|
});
|
|
11113
|
-
},
|
|
11119
|
+
}, Od = J.div`
|
|
11114
11120
|
.ant-skeleton-paragraph {
|
|
11115
11121
|
margin-bottom: 0;
|
|
11116
11122
|
}
|
|
11117
|
-
`,
|
|
11123
|
+
`, kd = (e) => /* @__PURE__ */ H(gl, {
|
|
11118
11124
|
dataList: [
|
|
11119
11125
|
,
|
|
11120
11126
|
,
|
|
@@ -11123,7 +11129,7 @@ var bd = J.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11123
11129
|
,
|
|
11124
11130
|
,
|
|
11125
11131
|
].fill({ label: "skeleton" }),
|
|
11126
|
-
renderItem: () => /* @__PURE__ */ H(
|
|
11132
|
+
renderItem: () => /* @__PURE__ */ H(Od, { children: /* @__PURE__ */ H(Tt, {
|
|
11127
11133
|
avatar: { size: 32 },
|
|
11128
11134
|
paragraph: { rows: 2 },
|
|
11129
11135
|
style: {
|
|
@@ -11134,7 +11140,7 @@ var bd = J.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11134
11140
|
},
|
|
11135
11141
|
...e.skeletonProps || {}
|
|
11136
11142
|
}) })
|
|
11137
|
-
}),
|
|
11143
|
+
}), Ad = J.div`
|
|
11138
11144
|
width: 100%;
|
|
11139
11145
|
position: absolute;
|
|
11140
11146
|
display: flex;
|
|
@@ -11147,30 +11153,30 @@ var bd = J.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11147
11153
|
.skelton-wrapper {
|
|
11148
11154
|
width: 100%;
|
|
11149
11155
|
}
|
|
11150
|
-
`,
|
|
11156
|
+
`, jd = ({ loading: e, isFirst: t }) => /* @__PURE__ */ H("div", { children: e && /* @__PURE__ */ H(Ad, { children: /* @__PURE__ */ H(Ot, {
|
|
11151
11157
|
size: "middle",
|
|
11152
11158
|
spinning: e,
|
|
11153
11159
|
style: { width: "100%" },
|
|
11154
11160
|
classNames: { root: "skelton-wrapper" },
|
|
11155
|
-
children: t && /* @__PURE__ */ H(
|
|
11156
|
-
}) }) }),
|
|
11157
|
-
let { dataList: t, loading: n, isFirst: r, defaultSpan: i = 8, resizable: a = !0, renderItem: o } = e, { total: s, current: c, loading: l, refresh: u } =
|
|
11158
|
-
return /* @__PURE__ */ U(
|
|
11161
|
+
children: t && /* @__PURE__ */ H(kd, {})
|
|
11162
|
+
}) }) }), Md = (e) => {
|
|
11163
|
+
let { dataList: t, loading: n, isFirst: r, defaultSpan: i = 8, resizable: a = !0, renderItem: o } = e, { total: s, current: c, loading: l, refresh: u } = kc();
|
|
11164
|
+
return /* @__PURE__ */ U(Dc, {
|
|
11159
11165
|
total: s,
|
|
11160
11166
|
current: c,
|
|
11161
11167
|
loading: l,
|
|
11162
11168
|
refresh: u,
|
|
11163
|
-
children: [/* @__PURE__ */ H(
|
|
11169
|
+
children: [/* @__PURE__ */ H(gl, {
|
|
11164
11170
|
dataList: t,
|
|
11165
11171
|
renderItem: o,
|
|
11166
11172
|
defaultSpan: i,
|
|
11167
11173
|
resizable: a
|
|
11168
|
-
}), /* @__PURE__ */ H(
|
|
11174
|
+
}), /* @__PURE__ */ H(jd, {
|
|
11169
11175
|
loading: n,
|
|
11170
11176
|
isFirst: r
|
|
11171
11177
|
})]
|
|
11172
11178
|
});
|
|
11173
|
-
},
|
|
11179
|
+
}, Nd = /* @__PURE__ */ n(((e, t) => {
|
|
11174
11180
|
(function(n, r) {
|
|
11175
11181
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.FitAddon = r() : n.FitAddon = r();
|
|
11176
11182
|
})(self, (() => (() => {
|
|
@@ -11201,7 +11207,7 @@ var bd = J.div.attrs({ className: "template-card-wrapper" })`
|
|
|
11201
11207
|
};
|
|
11202
11208
|
})(), e;
|
|
11203
11209
|
})()));
|
|
11204
|
-
})),
|
|
11210
|
+
})), Pd = /* @__PURE__ */ n(((e, t) => {
|
|
11205
11211
|
(function(n, r) {
|
|
11206
11212
|
if (typeof e == "object" && typeof t == "object") t.exports = r();
|
|
11207
11213
|
else if (typeof define == "function" && define.amd) define([], r);
|
|
@@ -18308,9 +18314,9 @@ var bd = J.div.attrs({ className: "template-card-wrapper" })`
|
|
|
18308
18314
|
e.Terminal = d;
|
|
18309
18315
|
})(), r;
|
|
18310
18316
|
})()));
|
|
18311
|
-
})),
|
|
18312
|
-
|
|
18313
|
-
var
|
|
18317
|
+
})), Fd = Nd();
|
|
18318
|
+
Pd();
|
|
18319
|
+
var Id = zt(({ token: e, css: t }) => ({
|
|
18314
18320
|
wrap: t`
|
|
18315
18321
|
position: relative;
|
|
18316
18322
|
text-align: left;
|
|
@@ -18329,16 +18335,16 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18329
18335
|
background-color: var(--color-logs-bg);
|
|
18330
18336
|
border-radius: 0 0 8px 8px;
|
|
18331
18337
|
`
|
|
18332
|
-
})),
|
|
18338
|
+
})), Ld = [
|
|
18333
18339
|
"bash",
|
|
18334
18340
|
"sh",
|
|
18335
18341
|
"powershell",
|
|
18336
18342
|
"pwsh",
|
|
18337
18343
|
"cmd",
|
|
18338
18344
|
"bash"
|
|
18339
|
-
],
|
|
18340
|
-
let { height: n, url: r, theme: i } = e, { styles: a } =
|
|
18341
|
-
u.current >=
|
|
18345
|
+
], Rd = "--- press Y to reconnect! ---", zd = A((e, t) => {
|
|
18346
|
+
let { height: n, url: r, theme: i } = e, { styles: a } = Id(), o = E.useRef(null), s = E.useRef(null), c = E.useRef(null), l = E.useRef(""), u = E.useRef(0), d = E.useRef(null), f = E.useRef(5), p = E.useRef(5), h = E.useRef(!0), g = E.useRef(!1), _ = E.useRef(null), v = E.useRef(!1), y = E.useRef(0), [b, x] = E.useState(0), S = new Fd.FitAddon(), C = (e) => {
|
|
18347
|
+
u.current >= Ld.length - 1 || (e ? u.current = 0 : u.current += 1, l.current = `${r}&${m.stringify({ shell: Ld[u.current] })}`);
|
|
18342
18348
|
}, w = () => (d.current && d.current.readyState) === 1, T = () => {
|
|
18343
18349
|
let { cols: e, rows: t } = c.current || {};
|
|
18344
18350
|
w() && d.current?.send(`#{"width":${e},"height":${t}}#`);
|
|
@@ -18361,7 +18367,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18361
18367
|
1011,
|
|
18362
18368
|
1006,
|
|
18363
18369
|
1e3
|
|
18364
|
-
].includes(b) ? (v.current = !0, h.current && c.current?.reset?.(), g.current || (c.current?.write?.(j(`(${b})${e.reason}\r\n`)), c.current?.write?.(M(`\r${
|
|
18370
|
+
].includes(b) ? (v.current = !0, h.current && c.current?.reset?.(), g.current || (c.current?.write?.(j(`(${b})${e.reason}\r\n`)), c.current?.write?.(M(`\r${Rd}`))), h.current = !0) : e.reason && c.current?.write?.(j(`(${b})${e.reason}\r\n`)), g.current = !1;
|
|
18365
18371
|
}, R = (e) => {
|
|
18366
18372
|
let { message: t } = e;
|
|
18367
18373
|
t || (t = "disconnected!", v.current = !0, h.current = !0, g.current = !1), y.current = d.current.readyState, c.current?.write?.(M(`\r${t}`));
|
|
@@ -18395,55 +18401,55 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18395
18401
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
18396
18402
|
return e;
|
|
18397
18403
|
}, $.apply(this, arguments);
|
|
18398
|
-
},
|
|
18404
|
+
}, Bd = {
|
|
18399
18405
|
width: "100%",
|
|
18400
18406
|
height: "10px",
|
|
18401
18407
|
top: "0px",
|
|
18402
18408
|
left: "0px",
|
|
18403
18409
|
cursor: "row-resize"
|
|
18404
|
-
},
|
|
18410
|
+
}, Vd = {
|
|
18405
18411
|
width: "10px",
|
|
18406
18412
|
height: "100%",
|
|
18407
18413
|
top: "0px",
|
|
18408
18414
|
left: "0px",
|
|
18409
18415
|
cursor: "col-resize"
|
|
18410
|
-
},
|
|
18416
|
+
}, Hd = {
|
|
18411
18417
|
width: "20px",
|
|
18412
18418
|
height: "20px",
|
|
18413
18419
|
position: "absolute",
|
|
18414
18420
|
zIndex: 1
|
|
18415
|
-
},
|
|
18416
|
-
top: $($({},
|
|
18417
|
-
right: $($({},
|
|
18421
|
+
}, Ud = {
|
|
18422
|
+
top: $($({}, Bd), { top: "-5px" }),
|
|
18423
|
+
right: $($({}, Vd), {
|
|
18418
18424
|
left: void 0,
|
|
18419
18425
|
right: "-5px"
|
|
18420
18426
|
}),
|
|
18421
|
-
bottom: $($({},
|
|
18427
|
+
bottom: $($({}, Bd), {
|
|
18422
18428
|
top: void 0,
|
|
18423
18429
|
bottom: "-5px"
|
|
18424
18430
|
}),
|
|
18425
|
-
left: $($({},
|
|
18426
|
-
topRight: $($({},
|
|
18431
|
+
left: $($({}, Vd), { left: "-5px" }),
|
|
18432
|
+
topRight: $($({}, Hd), {
|
|
18427
18433
|
right: "-10px",
|
|
18428
18434
|
top: "-10px",
|
|
18429
18435
|
cursor: "ne-resize"
|
|
18430
18436
|
}),
|
|
18431
|
-
bottomRight: $($({},
|
|
18437
|
+
bottomRight: $($({}, Hd), {
|
|
18432
18438
|
right: "-10px",
|
|
18433
18439
|
bottom: "-10px",
|
|
18434
18440
|
cursor: "se-resize"
|
|
18435
18441
|
}),
|
|
18436
|
-
bottomLeft: $($({},
|
|
18442
|
+
bottomLeft: $($({}, Hd), {
|
|
18437
18443
|
left: "-10px",
|
|
18438
18444
|
bottom: "-10px",
|
|
18439
18445
|
cursor: "sw-resize"
|
|
18440
18446
|
}),
|
|
18441
|
-
topLeft: $($({},
|
|
18447
|
+
topLeft: $($({}, Hd), {
|
|
18442
18448
|
left: "-10px",
|
|
18443
18449
|
top: "-10px",
|
|
18444
18450
|
cursor: "nw-resize"
|
|
18445
18451
|
})
|
|
18446
|
-
},
|
|
18452
|
+
}, Wd = M(function(e) {
|
|
18447
18453
|
var t = e.onResizeStart, n = e.direction, r = e.children, i = e.replaceStyles, a = e.className, o = N(function(e) {
|
|
18448
18454
|
t(e, n);
|
|
18449
18455
|
}, [t, n]), s = N(function(e) {
|
|
@@ -18452,7 +18458,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18452
18458
|
return $($({
|
|
18453
18459
|
position: "absolute",
|
|
18454
18460
|
userSelect: "none"
|
|
18455
|
-
},
|
|
18461
|
+
}, Ud[n]), i ?? {});
|
|
18456
18462
|
}, [i, n]);
|
|
18457
18463
|
return H("div", {
|
|
18458
18464
|
className: a || void 0,
|
|
@@ -18461,7 +18467,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18461
18467
|
onTouchStart: s,
|
|
18462
18468
|
children: r
|
|
18463
18469
|
});
|
|
18464
|
-
}),
|
|
18470
|
+
}), Gd = (function() {
|
|
18465
18471
|
var e = function(t, n) {
|
|
18466
18472
|
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
18467
18473
|
e.__proto__ = t;
|
|
@@ -18477,34 +18483,34 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18477
18483
|
}
|
|
18478
18484
|
t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
18479
18485
|
};
|
|
18480
|
-
})(),
|
|
18481
|
-
return
|
|
18486
|
+
})(), Kd = function() {
|
|
18487
|
+
return Kd = Object.assign || function(e) {
|
|
18482
18488
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
18483
18489
|
return e;
|
|
18484
|
-
},
|
|
18485
|
-
},
|
|
18490
|
+
}, Kd.apply(this, arguments);
|
|
18491
|
+
}, qd = {
|
|
18486
18492
|
width: "auto",
|
|
18487
18493
|
height: "auto"
|
|
18488
|
-
},
|
|
18494
|
+
}, Jd = function(e, t, n) {
|
|
18489
18495
|
return Math.max(Math.min(e, n), t);
|
|
18490
|
-
},
|
|
18496
|
+
}, Yd = function(e, t, n) {
|
|
18491
18497
|
var r = Math.round(e / t);
|
|
18492
18498
|
return r * t + n * (r - 1);
|
|
18493
|
-
},
|
|
18499
|
+
}, Xd = function(e, t) {
|
|
18494
18500
|
return new RegExp(e, "i").test(t);
|
|
18495
|
-
},
|
|
18501
|
+
}, Zd = function(e) {
|
|
18496
18502
|
return !!(e.touches && e.touches.length);
|
|
18497
|
-
},
|
|
18503
|
+
}, Qd = function(e) {
|
|
18498
18504
|
return !!((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0));
|
|
18499
|
-
},
|
|
18505
|
+
}, $d = function(e, t, n) {
|
|
18500
18506
|
n === void 0 && (n = 0);
|
|
18501
18507
|
var r = t.reduce(function(n, r, i) {
|
|
18502
18508
|
return Math.abs(r - e) < Math.abs(t[n] - e) ? i : n;
|
|
18503
18509
|
}, 0), i = Math.abs(t[r] - e);
|
|
18504
18510
|
return n === 0 || i < n ? t[r] : e;
|
|
18505
|
-
},
|
|
18511
|
+
}, ef = function(e) {
|
|
18506
18512
|
return e = e.toString(), e === "auto" || e.endsWith("px") || e.endsWith("%") || e.endsWith("vh") || e.endsWith("vw") || e.endsWith("vmax") || e.endsWith("vmin") ? e : `${e}px`;
|
|
18507
|
-
},
|
|
18513
|
+
}, tf = function(e, t, n, r) {
|
|
18508
18514
|
if (e && typeof e == "string") {
|
|
18509
18515
|
if (e.endsWith("px")) return Number(e.replace("px", ""));
|
|
18510
18516
|
if (e.endsWith("%")) {
|
|
@@ -18521,17 +18527,17 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18521
18527
|
}
|
|
18522
18528
|
}
|
|
18523
18529
|
return e;
|
|
18524
|
-
},
|
|
18525
|
-
return r =
|
|
18530
|
+
}, nf = function(e, t, n, r, i, a, o) {
|
|
18531
|
+
return r = tf(r, e.width, t, n), i = tf(i, e.height, t, n), a = tf(a, e.width, t, n), o = tf(o, e.height, t, n), {
|
|
18526
18532
|
maxWidth: r === void 0 ? void 0 : Number(r),
|
|
18527
18533
|
maxHeight: i === void 0 ? void 0 : Number(i),
|
|
18528
18534
|
minWidth: a === void 0 ? void 0 : Number(a),
|
|
18529
18535
|
minHeight: o === void 0 ? void 0 : Number(o)
|
|
18530
18536
|
};
|
|
18531
|
-
},
|
|
18537
|
+
}, rf = function(e) {
|
|
18532
18538
|
return Array.isArray(e) ? e : [e, e];
|
|
18533
|
-
},
|
|
18534
|
-
|
|
18539
|
+
}, af = /* @__PURE__ */ "as.ref.style.className.grid.gridGap.snap.bounds.boundsByDirection.size.defaultSize.minWidth.minHeight.maxWidth.maxHeight.lockAspectRatio.lockAspectRatioExtraWidth.lockAspectRatioExtraHeight.enable.handleStyles.handleClasses.handleWrapperStyle.handleWrapperClass.children.onResizeStart.onResize.onResizeStop.handleComponent.scale.resizeRatio.snapGap".split("."), of = "__resizable_base__", sf = function(e) {
|
|
18540
|
+
Gd(t, e);
|
|
18535
18541
|
function t(t) {
|
|
18536
18542
|
var n = e.call(this, t) || this;
|
|
18537
18543
|
return n.ratio = 1, n.resizable = null, n.parentLeft = 0, n.parentTop = 0, n.resizableLeft = 0, n.resizableRight = 0, n.resizableTop = 0, n.resizableBottom = 0, n.targetLeft = 0, n.targetTop = 0, n.delta = {
|
|
@@ -18542,7 +18548,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18542
18548
|
var e = n.parentNode;
|
|
18543
18549
|
if (!e) return null;
|
|
18544
18550
|
var t = n.window.document.createElement("div");
|
|
18545
|
-
return t.style.width = "100%", t.style.height = "100%", t.style.position = "absolute", t.style.transform = "scale(0, 0)", t.style.left = "0", t.style.flex = "0 0 100%", t.classList ? t.classList.add(
|
|
18551
|
+
return t.style.width = "100%", t.style.height = "100%", t.style.position = "absolute", t.style.transform = "scale(0, 0)", t.style.left = "0", t.style.flex = "0 0 100%", t.classList ? t.classList.add(of) : t.className += of, e.appendChild(t), t;
|
|
18546
18552
|
}, n.removeBase = function(e) {
|
|
18547
18553
|
var t = n.parentNode;
|
|
18548
18554
|
t && t.removeChild(e);
|
|
@@ -18587,7 +18593,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18587
18593
|
configurable: !0
|
|
18588
18594
|
}), Object.defineProperty(t.prototype, "propsSize", {
|
|
18589
18595
|
get: function() {
|
|
18590
|
-
return this.props.size || this.props.defaultSize ||
|
|
18596
|
+
return this.props.size || this.props.defaultSize || qd;
|
|
18591
18597
|
},
|
|
18592
18598
|
enumerable: !1,
|
|
18593
18599
|
configurable: !0
|
|
@@ -18614,11 +18620,11 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18614
18620
|
var n = e.getParentSize();
|
|
18615
18621
|
return `${Number(e.state[t].toString().replace("px", "")) / n[t] * 100}%`;
|
|
18616
18622
|
}
|
|
18617
|
-
return
|
|
18623
|
+
return ef(e.state[t]);
|
|
18618
18624
|
};
|
|
18619
18625
|
return {
|
|
18620
|
-
width: t && t.width !== void 0 && !this.state.isResizing ?
|
|
18621
|
-
height: t && t.height !== void 0 && !this.state.isResizing ?
|
|
18626
|
+
width: t && t.width !== void 0 && !this.state.isResizing ? ef(t.width) : n("width"),
|
|
18627
|
+
height: t && t.height !== void 0 && !this.state.isResizing ? ef(t.height) : n("height")
|
|
18622
18628
|
};
|
|
18623
18629
|
},
|
|
18624
18630
|
enumerable: !1,
|
|
@@ -18665,7 +18671,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18665
18671
|
var n = this.propsSize && this.propsSize[t];
|
|
18666
18672
|
return this.state[t] === "auto" && this.state.original[t] === e && (n === void 0 || n === "auto") ? "auto" : e;
|
|
18667
18673
|
}, t.prototype.calculateNewMaxFromBoundary = function(e, t) {
|
|
18668
|
-
var n = this.props.boundsByDirection, r = this.state.direction, i = n &&
|
|
18674
|
+
var n = this.props.boundsByDirection, r = this.state.direction, i = n && Xd("left", r), a = n && Xd("top", r), o, s;
|
|
18669
18675
|
if (this.props.bounds === "parent") {
|
|
18670
18676
|
var c = this.parentNode;
|
|
18671
18677
|
c && (o = i ? this.resizableRight - this.parentLeft : c.offsetWidth + (this.parentLeft - this.resizableLeft), s = a ? this.resizableBottom - this.parentTop : c.offsetHeight + (this.parentTop - this.resizableTop));
|
|
@@ -18675,8 +18681,8 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18675
18681
|
maxHeight: t
|
|
18676
18682
|
};
|
|
18677
18683
|
}, t.prototype.calculateNewSizeFromDirection = function(e, t) {
|
|
18678
|
-
var n = this.props.scale || 1, r =
|
|
18679
|
-
return
|
|
18684
|
+
var n = this.props.scale || 1, r = rf(this.props.resizeRatio || 1), i = r[0], a = r[1], o = this.state, s = o.direction, c = o.original, l = this.props, u = l.lockAspectRatio, d = l.lockAspectRatioExtraHeight, f = l.lockAspectRatioExtraWidth, p = c.width, m = c.height, h = d || 0, g = f || 0;
|
|
18685
|
+
return Xd("right", s) && (p = c.width + (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), Xd("left", s) && (p = c.width - (e - c.x) * i / n, u && (m = (p - g) / this.ratio + h)), Xd("bottom", s) && (m = c.height + (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), Xd("top", s) && (m = c.height - (t - c.y) * a / n, u && (p = (m - h) * this.ratio + g)), {
|
|
18680
18686
|
newWidth: p,
|
|
18681
18687
|
newHeight: m
|
|
18682
18688
|
};
|
|
@@ -18684,8 +18690,8 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18684
18690
|
var i = this.props, a = i.lockAspectRatio, o = i.lockAspectRatioExtraHeight, s = i.lockAspectRatioExtraWidth, c = r.width === void 0 ? 10 : r.width, l = n.width === void 0 || n.width < 0 ? e : n.width, u = r.height === void 0 ? 10 : r.height, d = n.height === void 0 || n.height < 0 ? t : n.height, f = o || 0, p = s || 0;
|
|
18685
18691
|
if (a) {
|
|
18686
18692
|
var m = (u - f) * this.ratio + p, h = (d - f) * this.ratio + p, g = (c - p) / this.ratio + f, _ = (l - p) / this.ratio + f, v = Math.max(c, m), y = Math.min(l, h), b = Math.max(u, g), x = Math.min(d, _);
|
|
18687
|
-
e =
|
|
18688
|
-
} else e =
|
|
18693
|
+
e = Jd(e, v, y), t = Jd(t, b, x);
|
|
18694
|
+
} else e = Jd(e, c, l), t = Jd(t, u, d);
|
|
18689
18695
|
return {
|
|
18690
18696
|
newWidth: e,
|
|
18691
18697
|
newHeight: t
|
|
@@ -18710,7 +18716,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18710
18716
|
}, t.prototype.onResizeStart = function(e, t) {
|
|
18711
18717
|
if (!(!this.resizable || !this.window)) {
|
|
18712
18718
|
var n = 0, r = 0;
|
|
18713
|
-
if (e.nativeEvent &&
|
|
18719
|
+
if (e.nativeEvent && Qd(e.nativeEvent) ? (n = e.nativeEvent.clientX, r = e.nativeEvent.clientY) : e.nativeEvent && Zd(e.nativeEvent) && (n = e.nativeEvent.touches[0].clientX, r = e.nativeEvent.touches[0].clientY), !(this.props.onResizeStart && this.resizable && this.props.onResizeStart(e, t, this.resizable) === !1)) {
|
|
18714
18720
|
this.props.size && (this.props.size.height !== void 0 && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), this.props.size.width !== void 0 && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height;
|
|
18715
18721
|
var i, a = this.window.getComputedStyle(this.resizable);
|
|
18716
18722
|
if (a.flexBasis !== "auto") {
|
|
@@ -18726,7 +18732,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18726
18732
|
height: this.size.height
|
|
18727
18733
|
},
|
|
18728
18734
|
isResizing: !0,
|
|
18729
|
-
backgroundStyle:
|
|
18735
|
+
backgroundStyle: Kd(Kd({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(e.target).cursor || "auto" }),
|
|
18730
18736
|
direction: t,
|
|
18731
18737
|
flexBasis: i
|
|
18732
18738
|
};
|
|
@@ -18736,13 +18742,13 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18736
18742
|
}, t.prototype.onMouseMove = function(e) {
|
|
18737
18743
|
var t = this;
|
|
18738
18744
|
if (!(!this.state.isResizing || !this.resizable || !this.window)) {
|
|
18739
|
-
if (this.window.TouchEvent &&
|
|
18745
|
+
if (this.window.TouchEvent && Zd(e)) try {
|
|
18740
18746
|
e.preventDefault(), e.stopPropagation();
|
|
18741
18747
|
} catch {}
|
|
18742
|
-
var n = this.props, r = n.maxWidth, i = n.maxHeight, a = n.minWidth, o = n.minHeight, s =
|
|
18748
|
+
var n = this.props, r = n.maxWidth, i = n.maxHeight, a = n.minWidth, o = n.minHeight, s = Zd(e) ? e.touches[0].clientX : e.clientX, c = Zd(e) ? e.touches[0].clientY : e.clientY, l = this.state, u = l.direction, d = l.original, f = l.width, p = l.height, m = this.getParentSize(), h = nf(m, this.window.innerWidth, this.window.innerHeight, r, i, a, o);
|
|
18743
18749
|
r = h.maxWidth, i = h.maxHeight, a = h.minWidth, o = h.minHeight;
|
|
18744
18750
|
var g = this.calculateNewSizeFromDirection(s, c), _ = g.newHeight, v = g.newWidth, y = this.calculateNewMaxFromBoundary(r, i);
|
|
18745
|
-
this.props.snap && this.props.snap.x && (v =
|
|
18751
|
+
this.props.snap && this.props.snap.x && (v = $d(v, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (_ = $d(_, this.props.snap.y, this.props.snapGap));
|
|
18746
18752
|
var b = this.calculateNewSizeFromAspectRatio(v, _, {
|
|
18747
18753
|
width: y.maxWidth,
|
|
18748
18754
|
height: y.maxHeight
|
|
@@ -18751,7 +18757,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18751
18757
|
height: o
|
|
18752
18758
|
});
|
|
18753
18759
|
if (v = b.newWidth, _ = b.newHeight, this.props.grid) {
|
|
18754
|
-
var x =
|
|
18760
|
+
var x = Yd(v, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), S = Yd(_, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), C = this.props.snapGap || 0, w = C === 0 || Math.abs(x - v) <= C ? x : v, T = C === 0 || Math.abs(S - _) <= C ? S : _;
|
|
18755
18761
|
v = w, _ = T;
|
|
18756
18762
|
}
|
|
18757
18763
|
var E = {
|
|
@@ -18799,7 +18805,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18799
18805
|
height: this.props.size.height ?? "auto"
|
|
18800
18806
|
}), this.unbindEvents(), this.setState({
|
|
18801
18807
|
isResizing: !1,
|
|
18802
|
-
backgroundStyle:
|
|
18808
|
+
backgroundStyle: Kd(Kd({}, this.state.backgroundStyle), { cursor: "auto" })
|
|
18803
18809
|
}));
|
|
18804
18810
|
}, t.prototype.updateSize = function(e) {
|
|
18805
18811
|
this.setState({
|
|
@@ -18812,7 +18818,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18812
18818
|
className: o,
|
|
18813
18819
|
style: a,
|
|
18814
18820
|
children: Object.keys(n).map(function(t) {
|
|
18815
|
-
return n[t] === !1 ? null : H(
|
|
18821
|
+
return n[t] === !1 ? null : H(Wd, {
|
|
18816
18822
|
direction: t,
|
|
18817
18823
|
onResizeStart: e.onResizeStart,
|
|
18818
18824
|
replaceStyles: r && r[t],
|
|
@@ -18823,8 +18829,8 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18823
18829
|
}) : null;
|
|
18824
18830
|
}, t.prototype.render = function() {
|
|
18825
18831
|
var e = this, t = Object.keys(this.props).reduce(function(t, n) {
|
|
18826
|
-
return
|
|
18827
|
-
}, {}), n =
|
|
18832
|
+
return af.indexOf(n) === -1 && (t[n] = e.props[n]), t;
|
|
18833
|
+
}, {}), n = Kd(Kd(Kd({
|
|
18828
18834
|
position: "relative",
|
|
18829
18835
|
userSelect: this.state.isResizing ? "none" : "auto"
|
|
18830
18836
|
}, this.props.style), this.sizeStyle), {
|
|
@@ -18835,7 +18841,7 @@ var Pd = zt(({ token: e, css: t }) => ({
|
|
|
18835
18841
|
boxSizing: "border-box",
|
|
18836
18842
|
flexShrink: 0
|
|
18837
18843
|
});
|
|
18838
|
-
return this.state.flexBasis && (n.flexBasis = this.state.flexBasis), U(this.props.as || "div",
|
|
18844
|
+
return this.state.flexBasis && (n.flexBasis = this.state.flexBasis), U(this.props.as || "div", Kd({
|
|
18839
18845
|
style: n,
|
|
18840
18846
|
className: this.props.className
|
|
18841
18847
|
}, t, {
|
|
@@ -18889,11 +18895,11 @@ J(W)`
|
|
|
18889
18895
|
background: none !important;
|
|
18890
18896
|
}
|
|
18891
18897
|
`;
|
|
18892
|
-
var
|
|
18898
|
+
var cf = A((e, t) => {
|
|
18893
18899
|
let { defaultWidth: n, defaultHeight: r = 180, minHeight: i = 180, maxHeight: a = 400, children: s, onReSize: c, onReSizeStop: l, ...u } = e;
|
|
18894
18900
|
o();
|
|
18895
18901
|
let d = z(null);
|
|
18896
|
-
return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(
|
|
18902
|
+
return I(t, () => ({ container: d.current })), /* @__PURE__ */ H(sf, {
|
|
18897
18903
|
ref: d,
|
|
18898
18904
|
enable: { top: !0 },
|
|
18899
18905
|
defaultSize: {
|
|
@@ -18908,7 +18914,7 @@ var of = A((e, t) => {
|
|
|
18908
18914
|
...u,
|
|
18909
18915
|
children: s
|
|
18910
18916
|
});
|
|
18911
|
-
}),
|
|
18917
|
+
}), lf = J.div`
|
|
18912
18918
|
.ant-tabs {
|
|
18913
18919
|
.ant-tabs-tab {
|
|
18914
18920
|
positon: relative;
|
|
@@ -18968,11 +18974,11 @@ var of = A((e, t) => {
|
|
|
18968
18974
|
color: var(--ant-color-text);
|
|
18969
18975
|
}
|
|
18970
18976
|
}
|
|
18971
|
-
`,
|
|
18977
|
+
`, uf = ({ terminals: e, currentActive: t, onClose: n }) => {
|
|
18972
18978
|
let [r, i] = B(t || e[0]?.url || ""), [a, o] = B(300), s = E.useRef(null), c = R(() => e.map((e) => ({
|
|
18973
18979
|
key: e.url,
|
|
18974
18980
|
label: e.name,
|
|
18975
|
-
children: /* @__PURE__ */ H(
|
|
18981
|
+
children: /* @__PURE__ */ H(zd, {
|
|
18976
18982
|
height: a,
|
|
18977
18983
|
url: e.url
|
|
18978
18984
|
})
|
|
@@ -18982,10 +18988,10 @@ var of = A((e, t) => {
|
|
|
18982
18988
|
}, 200);
|
|
18983
18989
|
return F(() => {
|
|
18984
18990
|
t && i(t);
|
|
18985
|
-
}, [t]), /* @__PURE__ */ H(
|
|
18991
|
+
}, [t]), /* @__PURE__ */ H(cf, {
|
|
18986
18992
|
onReSize: l,
|
|
18987
18993
|
ref: s,
|
|
18988
|
-
children: /* @__PURE__ */ H(
|
|
18994
|
+
children: /* @__PURE__ */ H(lf, { children: /* @__PURE__ */ H(jt, {
|
|
18989
18995
|
type: "editable-card",
|
|
18990
18996
|
hideAdd: !0,
|
|
18991
18997
|
activeKey: r,
|
|
@@ -19001,11 +19007,11 @@ var of = A((e, t) => {
|
|
|
19001
19007
|
}) }
|
|
19002
19008
|
}) })
|
|
19003
19009
|
});
|
|
19004
|
-
},
|
|
19010
|
+
}, df = ({ terminals: e, open: t, onClose: n, currentActive: r }) => /* @__PURE__ */ H(uf, {
|
|
19005
19011
|
terminals: e,
|
|
19006
19012
|
currentActive: r,
|
|
19007
19013
|
onClose: n
|
|
19008
|
-
}),
|
|
19014
|
+
}), ff = J.ul`
|
|
19009
19015
|
list-style: none;
|
|
19010
19016
|
padding-left: 0;
|
|
19011
19017
|
margin: 0;
|
|
@@ -19023,16 +19029,16 @@ var of = A((e, t) => {
|
|
|
19023
19029
|
display: inline-flex;
|
|
19024
19030
|
}
|
|
19025
19031
|
}
|
|
19026
|
-
`,
|
|
19032
|
+
`, pf = (e) => {
|
|
19027
19033
|
let t = o(), { list: n } = e;
|
|
19028
|
-
return /* @__PURE__ */ H(
|
|
19034
|
+
return /* @__PURE__ */ H(ff, { children: n.map((e, n) => /* @__PURE__ */ U("li", { children: [/* @__PURE__ */ U("span", {
|
|
19029
19035
|
className: "title",
|
|
19030
19036
|
children: [e.title?.locale ? t.formatMessage({ id: e.title?.text || "" }) : e.title, ":"]
|
|
19031
19037
|
}), /* @__PURE__ */ H("span", {
|
|
19032
19038
|
className: "content",
|
|
19033
19039
|
children: t.formatMessage({ id: e.tips })
|
|
19034
19040
|
})] }, n)) });
|
|
19035
|
-
},
|
|
19041
|
+
}, mf = J.div`
|
|
19036
19042
|
.ant-transfer-section {
|
|
19037
19043
|
width: 100%;
|
|
19038
19044
|
height: 300px;
|
|
@@ -19089,12 +19095,12 @@ var of = A((e, t) => {
|
|
|
19089
19095
|
.ant-pagination {
|
|
19090
19096
|
justify-content: center;
|
|
19091
19097
|
}
|
|
19092
|
-
`,
|
|
19098
|
+
`, hf = (e) => {
|
|
19093
19099
|
let t = o(), n = (e) => e.selectedCount ? /* @__PURE__ */ H("span", {
|
|
19094
19100
|
style: { color: "var(--ant-color-text-secondary)" },
|
|
19095
19101
|
children: t.formatMessage({ id: "common.select.count" }, { count: e.selectedCount })
|
|
19096
19102
|
}) : null;
|
|
19097
|
-
return /* @__PURE__ */ H(
|
|
19103
|
+
return /* @__PURE__ */ H(mf, { children: /* @__PURE__ */ H(Nt, {
|
|
19098
19104
|
...e,
|
|
19099
19105
|
selectAllLabels: e.selectAllLabels || [n, n],
|
|
19100
19106
|
selectionsIcon: /* @__PURE__ */ H(je, { style: {
|
|
@@ -19102,7 +19108,7 @@ var of = A((e, t) => {
|
|
|
19102
19108
|
marginBottom: 3
|
|
19103
19109
|
} })
|
|
19104
19110
|
}) });
|
|
19105
|
-
},
|
|
19111
|
+
}, gf = A((e, t) => {
|
|
19106
19112
|
let { minHeight: n = 50, header: r, variant: i = "bordered", children: a, setCollapsed: o } = e, [s, c] = B(!0), l = z(null);
|
|
19107
19113
|
F(() => {
|
|
19108
19114
|
l?.current && (l.current.style.minHeight = s ? `${l.current.scrollHeight || 0}px` : "0px");
|
|
@@ -19135,7 +19141,7 @@ var of = A((e, t) => {
|
|
|
19135
19141
|
})
|
|
19136
19142
|
})]
|
|
19137
19143
|
});
|
|
19138
|
-
}),
|
|
19144
|
+
}), _f = (e) => {
|
|
19139
19145
|
let [t, n] = It.useMessage(), { icon: r, accept: i, type: a, size: s = "large", shape: c = "circle" } = e, l = o(), u = (e) => !1, d = (n) => e.maxFileSize && n.size > e.maxFileSize ? (t.open({
|
|
19140
19146
|
type: "warning",
|
|
19141
19147
|
content: l.formatMessage({ id: "playground.uploadfile.sizeError" }, { size: `${b(e.maxFileSize)}` })
|
|
@@ -19172,7 +19178,7 @@ var of = A((e, t) => {
|
|
|
19172
19178
|
})
|
|
19173
19179
|
}), n]
|
|
19174
19180
|
});
|
|
19175
|
-
},
|
|
19181
|
+
}, vf = A((e, t) => {
|
|
19176
19182
|
let { lang: n, value: r, config: i, defaultLang: a, height: o = 380, theme: s = "vs-dark", header: c, variant: l = "borderless", placeholder: u } = e, d = z(null), f = (e) => {
|
|
19177
19183
|
e.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
|
|
19178
19184
|
noSemanticValidation: !1,
|
|
@@ -19227,4 +19233,4 @@ var of = A((e, t) => {
|
|
|
19227
19233
|
});
|
|
19228
19234
|
});
|
|
19229
19235
|
//#endregion
|
|
19230
|
-
export { pn as AlertBlockInfo, ln as AlertInfo, gn as AudioAnimation, yn as AudioPlayer,
|
|
19236
|
+
export { pn as AlertBlockInfo, ln as AlertInfo, gn as AudioAnimation, yn as AudioPlayer, so as AutoComplete, On as AutoImage, f as AutoTooltip, Io as BarChart, _o as BaseSelect, di as BibtexViewer, pi as CardWrapper, Ps as Cascader, cd as CellContent, Mo as Chart, vi as CheckButtons, Is as Checkbox, Ls as CheckboxField, xi as CollapseContainer, wi as CollapsePanel, va as ColumnSettings, wa as ColumnWrapper, Aa as CommandViewer, Ma as ContentWrapper, u as CopyButton, cn as CoreUIProvider, Fa as DeleteModal, La as DividerLine, za as DocLink, Ei as DropdownActions, Va as DropdownButtons, Ha as DynamicForm, C as EditorWrap, Go as ErrorMessage, Rs as FieldComponent, dl as FilterBar, qo as FilterForm, ll as FiltersButton, Jo as FormButtons, Ms as FormDrawer, As as GSDrawer, Ro as GaugeChart, Qs as GrafanaIcon, zo as HBarChart, Si as HeadlessCollapse, p as HighlightCode, yo as INPUT_WIDTH, Z as IconFont, uc as ImageEditor, Dc as InfiniteScroller, Ac as InfiniteScrollerProvider, Wu as InfoColumn, ho as Input, lo as InputNumber, uo as InputSearch, Mc as LabelCell, Ua as LabelInfo, Rc as LabelSelector, zc as LabelSelectorProvider, Vo as LineChart, Uc as ListInput, ko as ListMap, Yc as LogsViewer, Zc as MetadataList, Ho as MixLineBarChart, Xo as ModalFooter, $c as MoreButton, Ws as MultipleSelect, il as NoResult, l as OverlayScroller, ol as PageBreadcrumb, qc as PageSize, ul as PageTools, fo as Password, pl as Popover, ml as ProgressBar, hl as RadioButtons, gl as ResizeContainer, cf as ResizePanel, ed as RowChildren, Js as RowTextarea, Uo as ScatterChart, yl as ScrollSpyTabs, Tl as ScrollerModal, Oa as SegmentLine, vo as Select, Ml as SelectPanel, Pl as Shortcut, Tn as SimpleAudio, _i as SimpleCard, zu as SimpleOverlay, Us as SimpleSelect, Uu as SimpleTable, li as SingleImage, xo as Slider, Ks as SmallCloseButton, qu as SpeechContent, Xu as StatusTag, Co as Switch, Zs as SwitchInput, gd as Table, _d as TableProvider, vd as TableRowProvider, yd as TagsWrapper, Dd as TemplateCard, Md as TemplateCardList, kd as TemplateCardSkeleton, df as TerminalTabs, mo as Textarea, xd as ThemeTag, qs as ThumbImage, pf as TooltipList, c as TooltipOverlayScroller, hf as Transfer, gf as TransitionWrapper, _f as UploadAudio, Oi as UploadImage, vf as ViewerEditor, zd as XTerminal, Ii as config, $s as icons, gc as processImage, Ti as useActions, Ai as useAddImage, ji as useAppUtils, Mi as useBodyScroll, Fi as useChunkFetch, qi as useChunkRequest, Ji as useContainerScroll, i as useCoreUIContext, pa as useCurrentUser, Yi as useDeferredRequest, ta as useDownloadLogs, Zi as useDownloadStream, na as useExpandedRowKeys, bl as useFinishFailed, o as useIntl, d as useOverlayScroller, ia as useQueryData, ia as useRequest, ra as useQueryDataList, aa as useRequestToken, oa as useResponsive, xl as useScrollActiveChange, kc as useScrollerContext, ma as useTableFetch, la as useTableMultiSort, sa as useTableRowSelection, ca as useTableSort, md as useTableSorter, ua as useUpdateChunkedList, Ao as useValidateFields, da as useWatchList, fa as useWindowResize, ba as useWrapperContext, S as utils };
|