denwa-react-shared 1.0.55 → 1.0.57
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/denwa-react-shared.cjs.js +1 -1
- package/dist/denwa-react-shared.es.js +65 -53
- package/dist/denwa-react-shared.umd.js +105 -105
- package/dist/{index-oXYF94qW.js → index-C8L1Y2Ev.js} +91 -53
- package/dist/{index-BAK1sSR7.cjs → index-CP8vrfK_.cjs} +1 -1
- package/dist/{index-CAhyXZcU.js → index-KKEmMzl9.js} +1 -1
- package/dist/{index-ButRlkn4.cjs → index-Kv2fbOv4.cjs} +94 -94
- package/dist/shared/lib/form.d.ts +15 -0
- package/dist/shared/ui/text-editor/index.d.ts +1 -0
- package/dist/shared/ui/text-editor/types.d.ts +4 -0
- package/dist/{table-head-CAhxsyy_.cjs → table-head-DDmJ0kBz.cjs} +1 -1
- package/dist/{table-head-D-i8kn5V.js → table-head-z1hTTQq3.js} +1 -1
- package/package.json +1 -1
|
@@ -7039,6 +7039,32 @@ const vM = ({
|
|
|
7039
7039
|
}), a.push(l);
|
|
7040
7040
|
}
|
|
7041
7041
|
return a;
|
|
7042
|
+
}, Dde = async ({
|
|
7043
|
+
nodes: e,
|
|
7044
|
+
sourceLanguage: t,
|
|
7045
|
+
targetLanguage: r,
|
|
7046
|
+
translateText: n
|
|
7047
|
+
}) => {
|
|
7048
|
+
const o = ((c) => {
|
|
7049
|
+
const d = [], v = [...c];
|
|
7050
|
+
for (; v.length > 0; ) {
|
|
7051
|
+
const p = v.pop();
|
|
7052
|
+
p && ("text" in p && p.text && d.push(p.text), Array.isArray(p.children) && v.push(...p.children));
|
|
7053
|
+
}
|
|
7054
|
+
return d;
|
|
7055
|
+
})(e), i = o.map((c) => c ? n(c, t, r) : ""), s = await Promise.all(i), l = {};
|
|
7056
|
+
s.forEach((c, d) => {
|
|
7057
|
+
if (!c) {
|
|
7058
|
+
l[o[d]] = "";
|
|
7059
|
+
return;
|
|
7060
|
+
}
|
|
7061
|
+
c.status === 200 && (l[o[d]] = c.data.data.translatedText);
|
|
7062
|
+
});
|
|
7063
|
+
const u = (c) => c.map((d) => {
|
|
7064
|
+
const v = { ...d };
|
|
7065
|
+
return "text" in v && v.text && l[v.text] && (v.text = l[v.text]), Array.isArray(v.children) && (v.children = u(v.children)), v;
|
|
7066
|
+
});
|
|
7067
|
+
return u(e);
|
|
7042
7068
|
}, CM = ({
|
|
7043
7069
|
userRoles: e,
|
|
7044
7070
|
comparedUserRoles: t,
|
|
@@ -7058,7 +7084,7 @@ const vM = ({
|
|
|
7058
7084
|
isPriorityEqual: n === a,
|
|
7059
7085
|
isPriorityLower: n < a
|
|
7060
7086
|
};
|
|
7061
|
-
},
|
|
7087
|
+
}, Ide = (e, t) => ((t == null ? void 0 : t.label) ?? "").toLowerCase().indexOf(e.toLowerCase()) >= 0, $M = Ya({
|
|
7062
7088
|
statusCode: Kl().optional(),
|
|
7063
7089
|
message: Pr().optional().nullable(),
|
|
7064
7090
|
messages: Pr().array().optional().nullable(),
|
|
@@ -7090,9 +7116,9 @@ const vM = ({
|
|
|
7090
7116
|
exp: Kl()
|
|
7091
7117
|
})
|
|
7092
7118
|
})
|
|
7093
|
-
}), Ide = Ya({
|
|
7094
|
-
tempFiles: Pr().array()
|
|
7095
7119
|
}), Rde = Ya({
|
|
7120
|
+
tempFiles: Pr().array()
|
|
7121
|
+
}), Ade = Ya({
|
|
7096
7122
|
files: Ya({
|
|
7097
7123
|
imageName: Pr(),
|
|
7098
7124
|
originalFileExtension: Pr(),
|
|
@@ -7178,12 +7204,12 @@ const vM = ({
|
|
|
7178
7204
|
secure: !0,
|
|
7179
7205
|
"max-age": b
|
|
7180
7206
|
}), ((C = (y = d.tokens) == null ? void 0 : y.accessToken) == null ? void 0 : C.token) ?? "";
|
|
7181
|
-
},
|
|
7207
|
+
}, _de = (e, t) => {
|
|
7182
7208
|
const r = t.flat(), n = /* @__PURE__ */ new Map();
|
|
7183
7209
|
return r.forEach((a) => {
|
|
7184
7210
|
!a[e] || n.has(a[e]) || n.set(a[e], a);
|
|
7185
7211
|
}), Array.from(n.values());
|
|
7186
|
-
},
|
|
7212
|
+
}, Pde = UA((e, t) => ({
|
|
7187
7213
|
isLoading: !1,
|
|
7188
7214
|
isFirstLoadCompleted: !1,
|
|
7189
7215
|
currentSession: void 0,
|
|
@@ -7258,7 +7284,7 @@ const vM = ({
|
|
|
7258
7284
|
var wM = /* @__PURE__ */ ((e) => (e.russian = "ru", e.english = "en", e.arabic = "ar", e))(wM || {}), xM = /* @__PURE__ */ ((e) => (e[e.January = 1] = "January", e[e.February = 2] = "February", e[e.March = 3] = "March", e[e.April = 4] = "April", e[e.May = 5] = "May", e[e.June = 6] = "June", e[e.July = 7] = "July", e[e.August = 8] = "August", e[e.September = 9] = "September", e[e.October = 10] = "October", e[e.November = 11] = "November", e[e.December = 12] = "December", e))(xM || {});
|
|
7259
7285
|
const OM = "_container_j6rsl_1", DM = {
|
|
7260
7286
|
container: OM
|
|
7261
|
-
},
|
|
7287
|
+
}, Nde = ({ children: e }) => /* @__PURE__ */ Be.jsx("div", { className: DM.container, children: e });
|
|
7262
7288
|
var Fg = { exports: {} };
|
|
7263
7289
|
/*!
|
|
7264
7290
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -7645,7 +7671,7 @@ var LM = Number(LA.split(".")[0]), J1 = function(t, r) {
|
|
|
7645
7671
|
function eb(e) {
|
|
7646
7672
|
return /* @__PURE__ */ L1(e) && !$O(e);
|
|
7647
7673
|
}
|
|
7648
|
-
var
|
|
7674
|
+
var Mde = function(t) {
|
|
7649
7675
|
return eb(t) && wo(t);
|
|
7650
7676
|
}, Fi = function(t) {
|
|
7651
7677
|
if (t && eb(t)) {
|
|
@@ -10465,7 +10491,7 @@ const db = Bv(Im), xu = {
|
|
|
10465
10491
|
getPrefixCls: LB,
|
|
10466
10492
|
iconPrefixCls: Rm
|
|
10467
10493
|
}), {
|
|
10468
|
-
Consumer:
|
|
10494
|
+
Consumer: Tde
|
|
10469
10495
|
} = Tt, j2 = {};
|
|
10470
10496
|
function xn(e) {
|
|
10471
10497
|
const t = f.useContext(Tt), {
|
|
@@ -13418,7 +13444,7 @@ const Nm = /* @__PURE__ */ f.createContext(null), Jo = (e, t) => {
|
|
|
13418
13444
|
return /* @__PURE__ */ f.createElement(Nm.Provider, {
|
|
13419
13445
|
value: f.useMemo(() => r, [r])
|
|
13420
13446
|
}, t);
|
|
13421
|
-
},
|
|
13447
|
+
}, Bde = (e) => {
|
|
13422
13448
|
const {
|
|
13423
13449
|
getPrefixCls: t,
|
|
13424
13450
|
direction: r
|
|
@@ -15910,7 +15936,7 @@ function w9(e) {
|
|
|
15910
15936
|
height: p
|
|
15911
15937
|
};
|
|
15912
15938
|
}
|
|
15913
|
-
function
|
|
15939
|
+
function Fde(e) {
|
|
15914
15940
|
return typeof document > "u" ? 0 : (a0 === void 0 && (a0 = w9()), a0.width);
|
|
15915
15941
|
}
|
|
15916
15942
|
function Rk(e) {
|
|
@@ -37307,7 +37333,7 @@ process.env.NODE_ENV !== "production" && ($y.displayName = "Drawer");
|
|
|
37307
37333
|
function QS(e) {
|
|
37308
37334
|
return ["small", "middle", "large"].includes(e);
|
|
37309
37335
|
}
|
|
37310
|
-
function
|
|
37336
|
+
function jde(e) {
|
|
37311
37337
|
return e ? typeof e == "number" && !Number.isNaN(e) : !1;
|
|
37312
37338
|
}
|
|
37313
37339
|
const wI = ["wrap", "nowrap", "wrap-reverse"], xI = ["flex-start", "flex-end", "start", "end", "center", "space-between", "space-around", "space-evenly", "stretch", "normal", "left", "right"], OI = ["center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "baseline", "normal", "stretch"], TY = (e, t) => {
|
|
@@ -46563,7 +46589,7 @@ Dy.LIST_IGNORE = ql;
|
|
|
46563
46589
|
const Nee = "_readOnly_1qyk0_1", Mee = "_noData_1qyk0_6", wE = {
|
|
46564
46590
|
readOnly: Nee,
|
|
46565
46591
|
noData: Mee
|
|
46566
|
-
},
|
|
46592
|
+
}, Lde = ({
|
|
46567
46593
|
configLocale: e,
|
|
46568
46594
|
noDateText: t,
|
|
46569
46595
|
currentValue: r,
|
|
@@ -46587,7 +46613,7 @@ const Nee = "_readOnly_1qyk0_1", Mee = "_noData_1qyk0_6", wE = {
|
|
|
46587
46613
|
}, Tee = "_form_6uo9h_1", Bee = "_buttons_6uo9h_5", xE = {
|
|
46588
46614
|
form: Tee,
|
|
46589
46615
|
buttons: Bee
|
|
46590
|
-
},
|
|
46616
|
+
}, kde = ({
|
|
46591
46617
|
children: e,
|
|
46592
46618
|
language: t,
|
|
46593
46619
|
saveText: r,
|
|
@@ -46643,7 +46669,7 @@ const Nee = "_readOnly_1qyk0_1", Mee = "_noData_1qyk0_6", wE = {
|
|
|
46643
46669
|
)
|
|
46644
46670
|
] })
|
|
46645
46671
|
] });
|
|
46646
|
-
},
|
|
46672
|
+
}, zde = ({
|
|
46647
46673
|
fallback: e = "data:image/png;base64,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",
|
|
46648
46674
|
...t
|
|
46649
46675
|
}) => /* @__PURE__ */ Be.jsx(sg, { ...t, fallback: e });
|
|
@@ -50621,7 +50647,7 @@ const one = ({ downloadText: e }) => /* @__PURE__ */ Be.jsxs("button", { style:
|
|
|
50621
50647
|
[po.readOnly]: r
|
|
50622
50648
|
})
|
|
50623
50649
|
}
|
|
50624
|
-
),
|
|
50650
|
+
), Hde = ({
|
|
50625
50651
|
emptyText: e,
|
|
50626
50652
|
className: t,
|
|
50627
50653
|
readOnly: r,
|
|
@@ -50637,7 +50663,7 @@ const one = ({ downloadText: e }) => /* @__PURE__ */ Be.jsxs("button", { style:
|
|
|
50637
50663
|
[po.readOnly]: r
|
|
50638
50664
|
})
|
|
50639
50665
|
}
|
|
50640
|
-
),
|
|
50666
|
+
), Vde = ({
|
|
50641
50667
|
emptyText: e,
|
|
50642
50668
|
className: t,
|
|
50643
50669
|
readOnly: r,
|
|
@@ -50773,7 +50799,7 @@ const one = ({ downloadText: e }) => /* @__PURE__ */ Be.jsxs("button", { style:
|
|
|
50773
50799
|
))
|
|
50774
50800
|
}
|
|
50775
50801
|
);
|
|
50776
|
-
},
|
|
50802
|
+
}, Wde = ({
|
|
50777
50803
|
labelText: e,
|
|
50778
50804
|
loadingErrorText: t,
|
|
50779
50805
|
emptyText: r,
|
|
@@ -50877,7 +50903,7 @@ const one = ({ downloadText: e }) => /* @__PURE__ */ Be.jsxs("button", { style:
|
|
|
50877
50903
|
inputNumber: hne,
|
|
50878
50904
|
readOnly: bne,
|
|
50879
50905
|
noData: yne
|
|
50880
|
-
},
|
|
50906
|
+
}, Ude = ({
|
|
50881
50907
|
emptyText: e,
|
|
50882
50908
|
className: t,
|
|
50883
50909
|
readOnly: r,
|
|
@@ -51317,7 +51343,7 @@ class su extends ne.Component {
|
|
|
51317
51343
|
}
|
|
51318
51344
|
}
|
|
51319
51345
|
var _ne = Cl(hg(bl((e) => /* @__PURE__ */ ne.createElement(su, no({}, e, { name: "Placemark" })), !0, ["Placemark"])));
|
|
51320
|
-
const
|
|
51346
|
+
const qde = ({
|
|
51321
51347
|
latitude: e,
|
|
51322
51348
|
longitude: t,
|
|
51323
51349
|
defaultLatitude: r = 55.757056,
|
|
@@ -51394,9 +51420,9 @@ const Ude = ({
|
|
|
51394
51420
|
}, Pne = "_readOnly_e6ors_1", Nne = "_noData_e6ors_19", KE = {
|
|
51395
51421
|
readOnly: Pne,
|
|
51396
51422
|
noData: Nne
|
|
51397
|
-
},
|
|
51423
|
+
}, Gde = ({ value: e, emptyText: t }) => /* @__PURE__ */ Be.jsx(Sa.Text, { className: ce(KE.readOnly, KE.noData), children: e || t }), Mne = "_flex_jguhl_2", Tne = {
|
|
51398
51424
|
flex: Mne
|
|
51399
|
-
},
|
|
51425
|
+
}, Kde = ({
|
|
51400
51426
|
notFoundText: e,
|
|
51401
51427
|
dataName: t,
|
|
51402
51428
|
value: r,
|
|
@@ -51459,7 +51485,7 @@ const Ude = ({
|
|
|
51459
51485
|
}
|
|
51460
51486
|
)
|
|
51461
51487
|
] });
|
|
51462
|
-
},
|
|
51488
|
+
}, Yde = ({ children: e, spinFontSize: t = 36, ...r }) => /* @__PURE__ */ Be.jsx(lg, { ...r, indicator: /* @__PURE__ */ Be.jsx(fR, { style: { fontSize: t } }), children: e });
|
|
51463
51489
|
var ER = Symbol.for("immer-nothing"), YE = Symbol.for("immer-draftable"), sa = Symbol.for("immer-state"), Bne = process.env.NODE_ENV !== "production" ? [
|
|
51464
51490
|
// All error codes, starting by 0:
|
|
51465
51491
|
function(e) {
|
|
@@ -64662,7 +64688,7 @@ const mp = /* @__PURE__ */ Gn($ce), Sce = ({ tooltipText: e, linkErrorText: t, o
|
|
|
64662
64688
|
type: "paragraph",
|
|
64663
64689
|
children: [{ text: "" }]
|
|
64664
64690
|
}
|
|
64665
|
-
], { useToken: Ice } = cg,
|
|
64691
|
+
], { useToken: Ice } = cg, Zde = ({
|
|
64666
64692
|
boldText: e,
|
|
64667
64693
|
italicText: t,
|
|
64668
64694
|
underlineText: r,
|
|
@@ -64783,10 +64809,10 @@ const mp = /* @__PURE__ */ Gn($ce), Sce = ({ tooltipText: e, linkErrorText: t, o
|
|
|
64783
64809
|
]
|
|
64784
64810
|
}
|
|
64785
64811
|
), zce = M4(
|
|
64786
|
-
() => import("./table-head-
|
|
64812
|
+
() => import("./table-head-z1hTTQq3.js").then(({ TableHead: e }) => ({ default: e }))
|
|
64787
64813
|
), Hce = M4(
|
|
64788
|
-
() => import("./index-
|
|
64789
|
-
),
|
|
64814
|
+
() => import("./index-KKEmMzl9.js").then(({ BaseTable: e }) => ({ default: e }))
|
|
64815
|
+
), Xde = ({
|
|
64790
64816
|
drawerContent: e,
|
|
64791
64817
|
sortTooltipText: t,
|
|
64792
64818
|
updateDataText: r,
|
|
@@ -64963,7 +64989,7 @@ const mp = /* @__PURE__ */ Gn($ce), Sce = ({ tooltipText: e, linkErrorText: t, o
|
|
|
64963
64989
|
export {
|
|
64964
64990
|
$o as $,
|
|
64965
64991
|
BP as A,
|
|
64966
|
-
|
|
64992
|
+
Ude as B,
|
|
64967
64993
|
Nn as C,
|
|
64968
64994
|
xo as D,
|
|
64969
64995
|
qn as E,
|
|
@@ -64985,7 +65011,7 @@ export {
|
|
|
64985
65011
|
aa as U,
|
|
64986
65012
|
Gm as V,
|
|
64987
65013
|
Ta as W,
|
|
64988
|
-
|
|
65014
|
+
Mde as X,
|
|
64989
65015
|
Eo as Y,
|
|
64990
65016
|
Fi as Z,
|
|
64991
65017
|
ue as _,
|
|
@@ -65003,8 +65029,8 @@ export {
|
|
|
65003
65029
|
ir as a9,
|
|
65004
65030
|
Zj as aA,
|
|
65005
65031
|
QS as aB,
|
|
65006
|
-
|
|
65007
|
-
|
|
65032
|
+
Bde as aC,
|
|
65033
|
+
jde as aD,
|
|
65008
65034
|
Jo as aE,
|
|
65009
65035
|
Us as aF,
|
|
65010
65036
|
wo as aG,
|
|
@@ -65016,7 +65042,7 @@ export {
|
|
|
65016
65042
|
tn as aM,
|
|
65017
65043
|
xO as aN,
|
|
65018
65044
|
ws as aO,
|
|
65019
|
-
|
|
65045
|
+
Fde as aP,
|
|
65020
65046
|
Rk as aQ,
|
|
65021
65047
|
M$ as aR,
|
|
65022
65048
|
C8 as aS,
|
|
@@ -65070,39 +65096,39 @@ export {
|
|
|
65070
65096
|
xde as bB,
|
|
65071
65097
|
yM as bC,
|
|
65072
65098
|
Ode as bD,
|
|
65073
|
-
|
|
65074
|
-
|
|
65075
|
-
|
|
65076
|
-
|
|
65077
|
-
|
|
65078
|
-
|
|
65079
|
-
|
|
65080
|
-
|
|
65081
|
-
|
|
65082
|
-
|
|
65083
|
-
|
|
65084
|
-
|
|
65085
|
-
|
|
65086
|
-
|
|
65099
|
+
Dde as bE,
|
|
65100
|
+
CM as bF,
|
|
65101
|
+
Ide as bG,
|
|
65102
|
+
vM as bH,
|
|
65103
|
+
mM as bI,
|
|
65104
|
+
gM as bJ,
|
|
65105
|
+
yde as bK,
|
|
65106
|
+
pM as bL,
|
|
65107
|
+
d2 as bM,
|
|
65108
|
+
As as bN,
|
|
65109
|
+
co as bO,
|
|
65110
|
+
EM as bP,
|
|
65111
|
+
_de as bQ,
|
|
65112
|
+
Nde as bR,
|
|
65087
65113
|
Lde as bS,
|
|
65088
65114
|
kde as bT,
|
|
65089
|
-
|
|
65090
|
-
|
|
65091
|
-
|
|
65115
|
+
zde as bU,
|
|
65116
|
+
Wde as bV,
|
|
65117
|
+
mne as bW,
|
|
65092
65118
|
Hde as bX,
|
|
65093
|
-
|
|
65094
|
-
|
|
65119
|
+
Vde as bY,
|
|
65120
|
+
Cne as bZ,
|
|
65095
65121
|
qde as b_,
|
|
65096
65122
|
r5 as ba,
|
|
65097
65123
|
fR as bb,
|
|
65098
|
-
|
|
65124
|
+
Pde as bc,
|
|
65099
65125
|
mn as bd,
|
|
65100
65126
|
TP as be,
|
|
65101
65127
|
dde as bf,
|
|
65102
65128
|
$M as bg,
|
|
65103
65129
|
SM as bh,
|
|
65104
|
-
|
|
65105
|
-
|
|
65130
|
+
Rde as bi,
|
|
65131
|
+
Ade as bj,
|
|
65106
65132
|
wM as bk,
|
|
65107
65133
|
xM as bl,
|
|
65108
65134
|
ude as bm,
|
|
@@ -65123,6 +65149,18 @@ export {
|
|
|
65123
65149
|
Kde as c0,
|
|
65124
65150
|
Yde as c1,
|
|
65125
65151
|
Zde as c2,
|
|
65152
|
+
dA as c3,
|
|
65153
|
+
fA as c4,
|
|
65154
|
+
vA as c5,
|
|
65155
|
+
Lle as c6,
|
|
65156
|
+
mA as c7,
|
|
65157
|
+
gA as c8,
|
|
65158
|
+
kle as c9,
|
|
65159
|
+
j1 as ca,
|
|
65160
|
+
zle as cb,
|
|
65161
|
+
Ox as cc,
|
|
65162
|
+
pA as cd,
|
|
65163
|
+
Xde as ce,
|
|
65126
65164
|
Ot as d,
|
|
65127
65165
|
$r as e,
|
|
65128
65166
|
Ee as f,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-ButRlkn4.cjs"),H=require("react"),oa=require("react-dom");function ra(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=ra(H);function sn(e){return e!=null&&e===e.window}const aa=e=>{var t,o;if(typeof window>"u")return 0;let n=0;return sn(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(n=e.scrollTop),e&&!sn(e)&&typeof n!="number"&&(n=(o=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||o===void 0?void 0:o.scrollTop),n};function ia(e,t,o,n){const a=o-t;return e/=n/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function la(e,t={}){const{getContainer:o=()=>window,callback:n,duration:a=450}=t,i=o(),d=aa(i),l=Date.now(),c=()=>{const p=Date.now()-l,g=ia(p>a?a:p,d,e,a);sn(i)?i.scrollTo(window.pageXOffset,g):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,p<a?r.wrapperRaf(c):typeof n=="function"&&n()};r.wrapperRaf(c)}const sa=e=>typeof e!="object"&&typeof e!="function"||e===null;var da={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ca=function(t,o){return s.createElement(r.Icon$1,r._extends({},t,{ref:o,icon:da}))},To=s.forwardRef(ca);process.env.NODE_ENV!=="production"&&(To.displayName="BarsOutlined");const ua=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),fa=e=>{const{antCls:t,componentCls:o,colorText:n,footerBg:a,headerHeight:i,headerPadding:d,headerColor:l,footerPadding:c,fontSize:u,bodyBg:p,headerBg:g}=e;return{[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:i,padding:d,color:l,lineHeight:r.unit(i),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:c,color:n,fontSize:u,background:a},[`${o}-content`]:{flex:"auto",color:n,minHeight:0}}},Do=e=>{const{colorBgLayout:t,controlHeight:o,controlHeightLG:n,colorText:a,controlHeightSM:i,marginXXS:d,colorTextLightSolid:l,colorBgContainer:c}=e,u=n*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:n+d*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:n,zeroTriggerHeight:n,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},Bo=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];r.genStyleHooks("Layout",e=>[fa(e)],Do,{deprecatedTokens:Bo});const pa=e=>{const{componentCls:t,siderBg:o,motionDurationMid:n,motionDurationSlow:a,antCls:i,triggerHeight:d,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:p,zeroTriggerHeight:g,borderRadiusLG:m,lightSiderBg:f,lightTriggerColor:v,lightTriggerBg:C,bodyBg:h}=e;return{[t]:{position:"relative",minWidth:0,background:o,transition:`all ${n}, background 0s`,"&-has-trigger":{paddingBottom:d},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:d,color:l,lineHeight:r.unit(d),textAlign:"center",background:c,cursor:"pointer",transition:`all ${n}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:g,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderRadius:`0 ${r.unit(m)} ${r.unit(m)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderRadius:`${r.unit(m)} 0 0 ${r.unit(m)}`}},"&-light":{background:f,[`${t}-trigger`]:{color:v,background:C},[`${t}-zero-width-trigger`]:{color:v,background:C,border:`1px solid ${h}`,borderInlineStart:0}}}}},ma=r.genStyleHooks(["Layout","Sider"],e=>[pa(e)],Do,{deprecatedTokens:Bo});var ga=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Qn={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},va=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),xn=s.createContext({}),ha=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),ba=s.forwardRef((e,t)=>{const{prefixCls:o,className:n,trigger:a,children:i,defaultCollapsed:d=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:p=!1,width:g=200,collapsedWidth:m=80,zeroWidthTriggerStyle:f,breakpoint:v,onCollapse:C,onBreakpoint:h}=e,b=ga(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=H.useContext(ua),[x,w]=H.useState("collapsed"in e?e.collapsed:d),[$,N]=H.useState(!1);H.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const k=(X,de)=>{"collapsed"in e||w(X),C==null||C(X,de)},{getPrefixCls:_,direction:y}=H.useContext(r.ConfigContext),T=_("layout-sider",o),[R,O,P]=ma(T),I=H.useRef(null);I.current=X=>{N(X.matches),h==null||h(X.matches),x!==X.matches&&k(X.matches,"responsive")},H.useEffect(()=>{function X(he){var j;return(j=I.current)===null||j===void 0?void 0:j.call(I,he)}let de;return typeof(window==null?void 0:window.matchMedia)<"u"&&v&&v in Qn&&(de=window.matchMedia(`screen and (max-width: ${Qn[v]})`),r.addMediaQueryListener(de,X),X(de)),()=>{r.removeMediaQueryListener(de,X)}},[v]),H.useEffect(()=>{const X=ha("ant-sider-");return S.addSider(X),()=>S.removeSider(X)},[]);const E=()=>{k(!x,"clickTrigger")},D=r.omit(b,["collapsed"]),B=x?m:g,K=va(B)?`${B}px`:String(B),M=parseFloat(String(m||0))===0?s.createElement("span",{onClick:E,className:r.cn(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${p?"right":"left"}`),style:f},a||s.createElement(To,null)):null,A=y==="rtl"==!p,Y={expanded:A?s.createElement(r.RefIcon$2,null):s.createElement(r.RefIcon$1,null),collapsed:A?s.createElement(r.RefIcon$1,null):s.createElement(r.RefIcon$2,null)}[x?"collapsed":"expanded"],J=a!==null?M||s.createElement("div",{className:`${T}-trigger`,onClick:E,style:{width:K}},a||Y):null,oe=Object.assign(Object.assign({},c),{flex:`0 0 ${K}`,maxWidth:K,minWidth:K,width:K}),re=r.cn(T,`${T}-${l}`,{[`${T}-collapsed`]:!!x,[`${T}-has-trigger`]:u&&a!==null&&!M,[`${T}-below`]:!!$,[`${T}-zero-width`]:parseFloat(K)===0},n,O,P),Z=s.useMemo(()=>({siderCollapsed:x}),[x]);return R(s.createElement(xn.Provider,{value:Z},s.createElement("aside",Object.assign({className:re},D,{style:oe,ref:t}),s.createElement("div",{className:`${T}-children`},i),u||$&&M?J:null)))});process.env.NODE_ENV!=="production"&&(ba.displayName="Sider");const zt=H.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ya=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Ko=e=>{const{prefixCls:t,className:o,dashed:n}=e,a=ya(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=s.useContext(r.ConfigContext),d=i("menu",t),l=r.cn({[`${d}-item-divider-dashed`]:!!n},o);return s.createElement(r.Divider,Object.assign({className:l},a))},Mo=e=>{var t;const{className:o,children:n,icon:a,title:i,danger:d,extra:l}=e,{prefixCls:c,firstLevel:u,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:m}=s.useContext(zt),f=x=>{const w=n==null?void 0:n[0],$=s.createElement("span",{className:r.cn(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},n);return(!a||s.isValidElement(n)&&n.type==="span")&&n&&x&&u&&typeof w=="string"?s.createElement("div",{className:`${c}-inline-collapsed-noicon`},w.charAt(0)):$},{siderCollapsed:v}=s.useContext(xn);let C=i;typeof i>"u"?C=u?n:"":i===!1&&(C="");const h={title:C};!v&&!m&&(h.title=null,h.open=!1);const b=r.toArray(n).length;let S=s.createElement(r.MenuItem,Object.assign({},r.omit(e,["title","icon","danger"]),{className:r.cn({[`${c}-item-danger`]:d,[`${c}-item-only-child`]:(a?b+1:b)===1},o),title:typeof i=="string"?i:void 0}),r.cloneElement(a,{className:r.cn(s.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${c}-item-icon`)}),f(m));return g||(S=s.createElement(r.Tooltip,Object.assign({},h,{placement:p==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),S)),S};var Ca=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const jt=s.createContext(null),zo=s.forwardRef((e,t)=>{const{children:o}=e,n=Ca(e,["children"]),a=s.useContext(jt),i=s.useMemo(()=>Object.assign(Object.assign({},a),n),[a,n.prefixCls,n.mode,n.selectable,n.rootClassName]),d=r.supportNodeRef(o),l=r.useComposeRef(t,d?r.getNodeRef(o):null);return s.createElement(jt.Provider,{value:i},s.createElement(r.ContextIsolator,{space:!0},d?s.cloneElement(o,{ref:l}):o))}),xa=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:a,lineWidth:i,lineType:d,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${r.unit(i)} ${d} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-Kv2fbOv4.cjs"),H=require("react"),oa=require("react-dom");function ra(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=ra(H);function sn(e){return e!=null&&e===e.window}const aa=e=>{var t,o;if(typeof window>"u")return 0;let n=0;return sn(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(n=e.scrollTop),e&&!sn(e)&&typeof n!="number"&&(n=(o=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||o===void 0?void 0:o.scrollTop),n};function ia(e,t,o,n){const a=o-t;return e/=n/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function la(e,t={}){const{getContainer:o=()=>window,callback:n,duration:a=450}=t,i=o(),d=aa(i),l=Date.now(),c=()=>{const p=Date.now()-l,g=ia(p>a?a:p,d,e,a);sn(i)?i.scrollTo(window.pageXOffset,g):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,p<a?r.wrapperRaf(c):typeof n=="function"&&n()};r.wrapperRaf(c)}const sa=e=>typeof e!="object"&&typeof e!="function"||e===null;var da={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ca=function(t,o){return s.createElement(r.Icon$1,r._extends({},t,{ref:o,icon:da}))},To=s.forwardRef(ca);process.env.NODE_ENV!=="production"&&(To.displayName="BarsOutlined");const ua=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),fa=e=>{const{antCls:t,componentCls:o,colorText:n,footerBg:a,headerHeight:i,headerPadding:d,headerColor:l,footerPadding:c,fontSize:u,bodyBg:p,headerBg:g}=e;return{[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:i,padding:d,color:l,lineHeight:r.unit(i),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:c,color:n,fontSize:u,background:a},[`${o}-content`]:{flex:"auto",color:n,minHeight:0}}},Do=e=>{const{colorBgLayout:t,controlHeight:o,controlHeightLG:n,colorText:a,controlHeightSM:i,marginXXS:d,colorTextLightSolid:l,colorBgContainer:c}=e,u=n*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:n+d*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:n,zeroTriggerHeight:n,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},Bo=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];r.genStyleHooks("Layout",e=>[fa(e)],Do,{deprecatedTokens:Bo});const pa=e=>{const{componentCls:t,siderBg:o,motionDurationMid:n,motionDurationSlow:a,antCls:i,triggerHeight:d,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:p,zeroTriggerHeight:g,borderRadiusLG:m,lightSiderBg:f,lightTriggerColor:v,lightTriggerBg:C,bodyBg:h}=e;return{[t]:{position:"relative",minWidth:0,background:o,transition:`all ${n}, background 0s`,"&-has-trigger":{paddingBottom:d},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:d,color:l,lineHeight:r.unit(d),textAlign:"center",background:c,cursor:"pointer",transition:`all ${n}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:g,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderRadius:`0 ${r.unit(m)} ${r.unit(m)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderRadius:`${r.unit(m)} 0 0 ${r.unit(m)}`}},"&-light":{background:f,[`${t}-trigger`]:{color:v,background:C},[`${t}-zero-width-trigger`]:{color:v,background:C,border:`1px solid ${h}`,borderInlineStart:0}}}}},ma=r.genStyleHooks(["Layout","Sider"],e=>[pa(e)],Do,{deprecatedTokens:Bo});var ga=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Qn={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},va=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),xn=s.createContext({}),ha=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),ba=s.forwardRef((e,t)=>{const{prefixCls:o,className:n,trigger:a,children:i,defaultCollapsed:d=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:p=!1,width:g=200,collapsedWidth:m=80,zeroWidthTriggerStyle:f,breakpoint:v,onCollapse:C,onBreakpoint:h}=e,b=ga(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=H.useContext(ua),[x,w]=H.useState("collapsed"in e?e.collapsed:d),[$,N]=H.useState(!1);H.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const k=(X,de)=>{"collapsed"in e||w(X),C==null||C(X,de)},{getPrefixCls:_,direction:y}=H.useContext(r.ConfigContext),T=_("layout-sider",o),[R,O,P]=ma(T),I=H.useRef(null);I.current=X=>{N(X.matches),h==null||h(X.matches),x!==X.matches&&k(X.matches,"responsive")},H.useEffect(()=>{function X(he){var j;return(j=I.current)===null||j===void 0?void 0:j.call(I,he)}let de;return typeof(window==null?void 0:window.matchMedia)<"u"&&v&&v in Qn&&(de=window.matchMedia(`screen and (max-width: ${Qn[v]})`),r.addMediaQueryListener(de,X),X(de)),()=>{r.removeMediaQueryListener(de,X)}},[v]),H.useEffect(()=>{const X=ha("ant-sider-");return S.addSider(X),()=>S.removeSider(X)},[]);const E=()=>{k(!x,"clickTrigger")},D=r.omit(b,["collapsed"]),B=x?m:g,K=va(B)?`${B}px`:String(B),M=parseFloat(String(m||0))===0?s.createElement("span",{onClick:E,className:r.cn(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${p?"right":"left"}`),style:f},a||s.createElement(To,null)):null,A=y==="rtl"==!p,Y={expanded:A?s.createElement(r.RefIcon$2,null):s.createElement(r.RefIcon$1,null),collapsed:A?s.createElement(r.RefIcon$1,null):s.createElement(r.RefIcon$2,null)}[x?"collapsed":"expanded"],J=a!==null?M||s.createElement("div",{className:`${T}-trigger`,onClick:E,style:{width:K}},a||Y):null,oe=Object.assign(Object.assign({},c),{flex:`0 0 ${K}`,maxWidth:K,minWidth:K,width:K}),re=r.cn(T,`${T}-${l}`,{[`${T}-collapsed`]:!!x,[`${T}-has-trigger`]:u&&a!==null&&!M,[`${T}-below`]:!!$,[`${T}-zero-width`]:parseFloat(K)===0},n,O,P),Z=s.useMemo(()=>({siderCollapsed:x}),[x]);return R(s.createElement(xn.Provider,{value:Z},s.createElement("aside",Object.assign({className:re},D,{style:oe,ref:t}),s.createElement("div",{className:`${T}-children`},i),u||$&&M?J:null)))});process.env.NODE_ENV!=="production"&&(ba.displayName="Sider");const zt=H.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ya=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Ko=e=>{const{prefixCls:t,className:o,dashed:n}=e,a=ya(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=s.useContext(r.ConfigContext),d=i("menu",t),l=r.cn({[`${d}-item-divider-dashed`]:!!n},o);return s.createElement(r.Divider,Object.assign({className:l},a))},Mo=e=>{var t;const{className:o,children:n,icon:a,title:i,danger:d,extra:l}=e,{prefixCls:c,firstLevel:u,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:m}=s.useContext(zt),f=x=>{const w=n==null?void 0:n[0],$=s.createElement("span",{className:r.cn(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},n);return(!a||s.isValidElement(n)&&n.type==="span")&&n&&x&&u&&typeof w=="string"?s.createElement("div",{className:`${c}-inline-collapsed-noicon`},w.charAt(0)):$},{siderCollapsed:v}=s.useContext(xn);let C=i;typeof i>"u"?C=u?n:"":i===!1&&(C="");const h={title:C};!v&&!m&&(h.title=null,h.open=!1);const b=r.toArray(n).length;let S=s.createElement(r.MenuItem,Object.assign({},r.omit(e,["title","icon","danger"]),{className:r.cn({[`${c}-item-danger`]:d,[`${c}-item-only-child`]:(a?b+1:b)===1},o),title:typeof i=="string"?i:void 0}),r.cloneElement(a,{className:r.cn(s.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${c}-item-icon`)}),f(m));return g||(S=s.createElement(r.Tooltip,Object.assign({},h,{placement:p==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),S)),S};var Ca=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const jt=s.createContext(null),zo=s.forwardRef((e,t)=>{const{children:o}=e,n=Ca(e,["children"]),a=s.useContext(jt),i=s.useMemo(()=>Object.assign(Object.assign({},a),n),[a,n.prefixCls,n.mode,n.selectable,n.rootClassName]),d=r.supportNodeRef(o),l=r.useComposeRef(t,d?r.getNodeRef(o):null);return s.createElement(jt.Provider,{value:i},s.createElement(r.ContextIsolator,{space:!0},d?s.cloneElement(o,{ref:l}):o))}),xa=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:a,lineWidth:i,lineType:d,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${r.unit(i)} ${d} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
|
|
2
2
|
> ${t}-item-active,
|
|
3
3
|
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Sa=({componentCls:e,menuArrowOffset:t,calc:o})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
4
4
|
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${r.unit(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${r.unit(t)})`}}}}),Jn=e=>Object.assign({},r.genFocusOutline(e)),eo=(e,t)=>{const{componentCls:o,itemColor:n,itemSelectedColor:a,subMenuItemSelectedColor:i,groupTitleColor:d,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:p,activeBarWidth:g,activeBarBorderWidth:m,motionDurationSlow:f,motionEaseInOut:v,motionEaseOut:C,itemPaddingInline:h,motionDurationMid:b,itemHoverColor:S,lineType:x,colorSplit:w,itemDisabledColor:$,dangerItemColor:N,dangerItemHoverColor:k,dangerItemSelectedColor:_,dangerItemActiveBg:y,dangerItemSelectedBg:T,popupBg:R,itemHoverBg:O,itemActiveBg:P,menuSubMenuBg:I,horizontalItemSelectedColor:E,horizontalItemSelectedBg:D,horizontalItemBorderRadius:B,horizontalItemHoverBg:K}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:n,background:l,[`&${o}-root:focus-visible`]:Object.assign({},Jn(e)),[`${o}-item`]:{"&-group-title, &-extra":{color:d}},[`${o}-submenu-selected > ${o}-submenu-title`]:{color:i},[`${o}-item, ${o}-submenu-title`]:{color:n,[`&:not(${o}-item-disabled):focus-visible`]:Object.assign({},Jn(e))},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${$} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:S}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:P}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:P}}},[`${o}-item-danger`]:{color:N,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:k}},[`&${o}-item:active`]:{background:y}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:a,[`&${o}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:u,[`&${o}-item-danger`]:{backgroundColor:T}},[`&${o}-submenu > ${o}`]:{backgroundColor:I},[`&${o}-popup > ${o}`]:{backgroundColor:R},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:R},[`&${o}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${o}-item, > ${o}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${r.unit(p)} solid transparent`,transition:`border-color ${f} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:K,"&::after":{borderBottomWidth:p,borderBottomColor:E}},"&-selected":{color:E,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:p,borderBottomColor:E}}}}),[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${r.unit(m)} ${x} ${w}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:c},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${r.unit(g)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${C}`,`opacity ${b} ${C}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${v}`,`opacity ${b} ${v}`].join(",")}}}}}},to=e=>{const{componentCls:t,itemHeight:o,itemMarginInline:n,padding:a,menuArrowSize:i,marginXS:d,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,p=e.calc(i).add(a).add(d).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:r.unit(o),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:l,width:c},[`> ${t}-item,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as Pt, K as dt, f as be, i as Et, k as z, L as Ze, M as Sl, N as $l, o as Nt, c as X, O as Wn, P as qn, Q as wl, U as $n, V as El, W as Vt, G as Xn, X as Nl, Y as kl, Z as Il, $ as Ol, l as sn, t as _r, m as Dt, a0 as zr, a1 as yn, a2 as Hr, a3 as Gn, r as st, a4 as Rt, a5 as Rl, a6 as Pl, a7 as Lr, a8 as Tl, a9 as kt, aa as mt, ab as Mt, ac as Dl, ad as jr, ae as Ar, af as Kl, ag as Bl, ah as Ml, ai as _l, aj as zl, ak as Hl, al as qo, j as Xo, am as Ll, an as jl, ao as so, e as wn, ap as Al, aq as Fl, ar as Vl, as as Wl, d as at, _ as we, g as _, a as V, b as Fr, at as Vr, au as Wr, av as qr, aw as Xr, n as ql, q as Gr, ax as on, h as gt, ay as Be, az as me, p as Xl, aA as Gl, aB as Go, aC as Ul, aD as Uo, aE as Yl, H as Tt, u as St, aF as rn, aG as Yo, aH as Ur, aI as co, aJ as uo, aK as Ql, aL as Qo, aM as Zl, aN as fo, aO as Zo, aP as Jo, aQ as er, aR as Jl, aS as Yr, aT as ei, aU as ti, C as ni, aV as oi, aW as ri, aX as ai, aY as ve, aZ as xt, a_ as li, a$ as ii, b0 as si, b1 as di, b2 as ci, b3 as Qr, b4 as tr, b5 as ui, b6 as fi, b7 as pi, b8 as mi, b9 as gi, ba as vi, y as Lt, bb as hi } from "./index-
|
|
1
|
+
import { J as Pt, K as dt, f as be, i as Et, k as z, L as Ze, M as Sl, N as $l, o as Nt, c as X, O as Wn, P as qn, Q as wl, U as $n, V as El, W as Vt, G as Xn, X as Nl, Y as kl, Z as Il, $ as Ol, l as sn, t as _r, m as Dt, a0 as zr, a1 as yn, a2 as Hr, a3 as Gn, r as st, a4 as Rt, a5 as Rl, a6 as Pl, a7 as Lr, a8 as Tl, a9 as kt, aa as mt, ab as Mt, ac as Dl, ad as jr, ae as Ar, af as Kl, ag as Bl, ah as Ml, ai as _l, aj as zl, ak as Hl, al as qo, j as Xo, am as Ll, an as jl, ao as so, e as wn, ap as Al, aq as Fl, ar as Vl, as as Wl, d as at, _ as we, g as _, a as V, b as Fr, at as Vr, au as Wr, av as qr, aw as Xr, n as ql, q as Gr, ax as on, h as gt, ay as Be, az as me, p as Xl, aA as Gl, aB as Go, aC as Ul, aD as Uo, aE as Yl, H as Tt, u as St, aF as rn, aG as Yo, aH as Ur, aI as co, aJ as uo, aK as Ql, aL as Qo, aM as Zl, aN as fo, aO as Zo, aP as Jo, aQ as er, aR as Jl, aS as Yr, aT as ei, aU as ti, C as ni, aV as oi, aW as ri, aX as ai, aY as ve, aZ as xt, a_ as li, a$ as ii, b0 as si, b1 as di, b2 as ci, b3 as Qr, b4 as tr, b5 as ui, b6 as fi, b7 as pi, b8 as mi, b9 as gi, ba as vi, y as Lt, bb as hi } from "./index-C8L1Y2Ev.js";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import he, { useContext as nr, useState as an, useEffect as en, useRef as bt, createContext as bi, forwardRef as po, useImperativeHandle as mo, useMemo as rt, useCallback as jt } from "react";
|
|
4
4
|
import { unstable_batchedUpdates as yi } from "react-dom";
|