reykit 1.0.150 → 1.0.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +250 -246
- package/dist/src/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1077,7 +1077,7 @@ Error generating stack: ` + c.message + `
|
|
|
1077
1077
|
` + c.stack;
|
|
1078
1078
|
}
|
|
1079
1079
|
}
|
|
1080
|
-
var He = Object.prototype.hasOwnProperty, De = a.unstable_scheduleCallback, We = a.unstable_cancelCallback, nt = a.unstable_shouldYield, at = a.unstable_requestPaint, Ye = a.unstable_now, Re = a.unstable_getCurrentPriorityLevel, qe = a.unstable_ImmediatePriority,
|
|
1080
|
+
var He = Object.prototype.hasOwnProperty, De = a.unstable_scheduleCallback, We = a.unstable_cancelCallback, nt = a.unstable_shouldYield, at = a.unstable_requestPaint, Ye = a.unstable_now, Re = a.unstable_getCurrentPriorityLevel, qe = a.unstable_ImmediatePriority, Ge = a.unstable_UserBlockingPriority, Xe = a.unstable_NormalPriority, st = a.unstable_LowPriority, ot = a.unstable_IdlePriority, zt = a.log, Rt = a.unstable_setDisableYieldValue, xt = null, mt = null;
|
|
1081
1081
|
function Ut(n) {
|
|
1082
1082
|
if (typeof zt == "function" && Rt(n), mt && typeof mt.setStrictMode == "function")
|
|
1083
1083
|
try {
|
|
@@ -7925,7 +7925,7 @@ Error generating stack: ` + c.message + `
|
|
|
7925
7925
|
switch (c !== null && We(c), Dt(r)) {
|
|
7926
7926
|
case 2:
|
|
7927
7927
|
case 8:
|
|
7928
|
-
r =
|
|
7928
|
+
r = Ge;
|
|
7929
7929
|
break;
|
|
7930
7930
|
case 32:
|
|
7931
7931
|
r = Xe;
|
|
@@ -10118,7 +10118,7 @@ Error generating stack: ` + c.message + `
|
|
|
10118
10118
|
switch (Re()) {
|
|
10119
10119
|
case qe:
|
|
10120
10120
|
return 2;
|
|
10121
|
-
case
|
|
10121
|
+
case Ge:
|
|
10122
10122
|
return 8;
|
|
10123
10123
|
case Xe:
|
|
10124
10124
|
case st:
|
|
@@ -11311,7 +11311,7 @@ Error generating stack: ` + O.message + `
|
|
|
11311
11311
|
var e = yf;
|
|
11312
11312
|
return yf <<= 1, (yf & 62914560) === 0 && (yf = 4194304), e;
|
|
11313
11313
|
}
|
|
11314
|
-
function
|
|
11314
|
+
function Ge(e) {
|
|
11315
11315
|
for (var t = [], o = 0; 31 > o; o++) t.push(e);
|
|
11316
11316
|
return t;
|
|
11317
11317
|
}
|
|
@@ -24541,7 +24541,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
24541
24541
|
}
|
|
24542
24542
|
}
|
|
24543
24543
|
function up(e, t, o, s, f, p, x, O, B) {
|
|
24544
|
-
for (this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = Ip, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes =
|
|
24544
|
+
for (this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = Ip, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = Ge(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Ge(0), this.hiddenUpdates = Ge(null), this.identifierPrefix = s, this.onUncaughtError = f, this.onCaughtError = p, this.onRecoverableError = x, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = B, this.incompleteTransitions = /* @__PURE__ */ new Map(), this.passiveEffectDuration = this.effectDuration = -0, this.memoizedUpdaters = /* @__PURE__ */ new Set(), e = this.pendingUpdatersLaneMap = [], t = 0; 31 > t; t++) e.push(/* @__PURE__ */ new Set());
|
|
24545
24545
|
this._debugRootType = o ? "hydrateRoot()" : "createRoot()";
|
|
24546
24546
|
}
|
|
24547
24547
|
function cp(e, t, o, s, f, p, x, O, B, Y, pe, he) {
|
|
@@ -29577,7 +29577,7 @@ const gU = "data-parent", mD = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
29577
29577
|
} = Fo({
|
|
29578
29578
|
disabled: ye,
|
|
29579
29579
|
native: H
|
|
29580
|
-
}), qe = le?.validation ?? X, [
|
|
29580
|
+
}), qe = le?.validation ?? X, [Ge, Xe] = Rl({
|
|
29581
29581
|
controlled: Oe && Ze && !N ? Ze.includes(Oe) : Le,
|
|
29582
29582
|
default: Oe && De && !N ? De.includes(Oe) : g,
|
|
29583
29583
|
name: "Checkbox",
|
|
@@ -29590,16 +29590,16 @@ const gU = "data-parent", mD = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
29590
29590
|
return () => {
|
|
29591
29591
|
!at.current || re === xa || (at.current = !1, re(gt, void 0));
|
|
29592
29592
|
};
|
|
29593
|
-
}, [re, nt]), Gg(We, Fe,
|
|
29593
|
+
}, [re, nt]), Gg(We, Fe, Ge, void 0, !le);
|
|
29594
29594
|
const st = S.useRef(null), ot = El(w, st, qe.inputRef), zt = SC(v, ae, st, !H, Te ?? void 0);
|
|
29595
29595
|
$e(() => {
|
|
29596
|
-
st.current && (st.current.indeterminate = ze,
|
|
29597
|
-
}, [
|
|
29598
|
-
le && !N || (q(ve), F(
|
|
29596
|
+
st.current && (st.current.indeterminate = ze, Ge && F(!0));
|
|
29597
|
+
}, [Ge, ze, F]), Pg(Ge, () => {
|
|
29598
|
+
le && !N || (q(ve), F(Ge), Q(Ge !== L.initialValue), k() ? qe.commit(Ge) : qe.commit(Ge, !0));
|
|
29599
29599
|
});
|
|
29600
29600
|
const Rt = ma(
|
|
29601
29601
|
{
|
|
29602
|
-
checked:
|
|
29602
|
+
checked: Ge,
|
|
29603
29603
|
disabled: ye,
|
|
29604
29604
|
form: C,
|
|
29605
29605
|
// parent checkboxes unset `name` to be excluded from form submission
|
|
@@ -29633,11 +29633,11 @@ const gU = "data-parent", mD = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
29633
29633
|
// React <19 sets an empty value if `undefined` is passed explicitly
|
|
29634
29634
|
// To avoid this, we only set the value if it's defined
|
|
29635
29635
|
V !== void 0 ? {
|
|
29636
|
-
value: (le ?
|
|
29636
|
+
value: (le ? Ge && V : V) || ""
|
|
29637
29637
|
} : gn,
|
|
29638
29638
|
ne,
|
|
29639
29639
|
le ? qe.getValidationProps : qe.getInputValidationProps
|
|
29640
|
-
), xt = xe ? !!Le :
|
|
29640
|
+
), xt = xe ? !!Le : Ge, mt = xe && ze || R;
|
|
29641
29641
|
S.useEffect(() => {
|
|
29642
29642
|
if (!ge || !Oe)
|
|
29643
29643
|
return;
|
|
@@ -29659,7 +29659,7 @@ const gU = "data-parent", mD = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
29659
29659
|
props: [{
|
|
29660
29660
|
id: H ? Te ?? void 0 : Fe,
|
|
29661
29661
|
role: "checkbox",
|
|
29662
|
-
"aria-checked": ze ? "mixed" :
|
|
29662
|
+
"aria-checked": ze ? "mixed" : Ge,
|
|
29663
29663
|
"aria-readonly": z || void 0,
|
|
29664
29664
|
"aria-required": U || void 0,
|
|
29665
29665
|
"aria-labelledby": zt,
|
|
@@ -29702,7 +29702,7 @@ const gU = "data-parent", mD = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
29702
29702
|
});
|
|
29703
29703
|
return /* @__PURE__ */ E.jsxs(AC.Provider, {
|
|
29704
29704
|
value: Ut,
|
|
29705
|
-
children: [qn, !
|
|
29705
|
+
children: [qn, !Ge && !le && ve && !N && _ !== void 0 && /* @__PURE__ */ E.jsx("input", {
|
|
29706
29706
|
type: "hidden",
|
|
29707
29707
|
form: C,
|
|
29708
29708
|
name: ve,
|
|
@@ -31181,7 +31181,7 @@ const YD = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
31181
31181
|
controlled: q,
|
|
31182
31182
|
default: g ?? M,
|
|
31183
31183
|
name: "Slider"
|
|
31184
|
-
}), Se = S.useRef(null), Te = S.useRef(null), Ne = S.useRef([]), Le = S.useRef(null), ze = S.useRef(null), Ee = S.useRef(-1), je = S.useRef(null), Ze = S.useRef(null), He = S.useRef("none"), De = ua(C), [We, nt] = S.useState(-1), [at, Ye] = S.useState(-1), [Re, qe] = S.useState(!1), [
|
|
31184
|
+
}), Se = S.useRef(null), Te = S.useRef(null), Ne = S.useRef([]), Le = S.useRef(null), ze = S.useRef(null), Ee = S.useRef(-1), je = S.useRef(null), Ze = S.useRef(null), He = S.useRef("none"), De = ua(C), [We, nt] = S.useState(-1), [at, Ye] = S.useState(-1), [Re, qe] = S.useState(!1), [Ge, Xe] = S.useState(() => /* @__PURE__ */ new Map()), [st, ot] = S.useState([void 0, void 0]), zt = Je((ft) => {
|
|
31185
31185
|
nt(ft), ft !== -1 && Ye(ft);
|
|
31186
31186
|
});
|
|
31187
31187
|
Gg(Te, Q, Oe), Pg(Oe, () => {
|
|
@@ -31271,10 +31271,10 @@ const YD = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
31271
31271
|
state: qn,
|
|
31272
31272
|
step: H,
|
|
31273
31273
|
thumbCollisionBehavior: P,
|
|
31274
|
-
thumbMap:
|
|
31274
|
+
thumbMap: Ge,
|
|
31275
31275
|
thumbRefs: Ne,
|
|
31276
31276
|
values: mt
|
|
31277
|
-
}), [We, Te, xe, F, ye, Re, re, De, Kt, st, T, at, Ze, He, z, R, D, M, N, ve, K, V, Le, ze, Ee, je, Rt, zt, qe, ot, ge, Ut, qn, H, P, I,
|
|
31277
|
+
}), [We, Te, xe, F, ye, Re, re, De, Kt, st, T, at, Ze, He, z, R, D, M, N, ve, K, V, Le, ze, Ee, je, Rt, zt, qe, ot, ge, Ut, qn, H, P, I, Ge, Ne, mt]), vt = it("div", i, {
|
|
31278
31278
|
state: qn,
|
|
31279
31279
|
ref: [u, Se],
|
|
31280
31280
|
props: [{
|
|
@@ -31524,7 +31524,7 @@ const qD = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
31524
31524
|
bottom: He,
|
|
31525
31525
|
left: De,
|
|
31526
31526
|
right: We
|
|
31527
|
-
} = Ee.getBoundingClientRect(), nt = tV(te.current, k), at = ne.current, Ye = (k ? Ze : je) - nt.start - nt.end - at * 2, Re = _.current ?? 0, qe = ze.x - Re,
|
|
31527
|
+
} = Ee.getBoundingClientRect(), nt = tV(te.current, k), at = ne.current, Ye = (k ? Ze : je) - nt.start - nt.end - at * 2, Re = _.current ?? 0, qe = ze.x - Re, Ge = ze.y - Re, Xe = k ? He - Ge - nt.end : ($ === "rtl" ? We - qe : qe - De) - nt.start, st = _a((Xe - at) / Ye, 0, 1);
|
|
31528
31528
|
let ot = (D - M) * st + M;
|
|
31529
31529
|
if (ot = GD(ot, F, M), ot = _a(ot, M, D), !L)
|
|
31530
31530
|
return {
|
|
@@ -31891,13 +31891,13 @@ const ZD = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
31891
31891
|
setTouched: Ze,
|
|
31892
31892
|
setFocused: He,
|
|
31893
31893
|
validationMode: De
|
|
31894
|
-
} = $s(), We = S.useRef(null), nt = S.useRef(null), at = S.useRef(!1), Ye = Dn(), Re = Yg(), qe = ze ? Ye : Re,
|
|
31894
|
+
} = $s(), We = S.useRef(null), nt = S.useRef(null), at = S.useRef(!1), Ye = Dn(), Re = Yg(), qe = ze ? Ye : Re, Ge = S.useMemo(() => ({
|
|
31895
31895
|
inputId: qe
|
|
31896
31896
|
}), [qe]), {
|
|
31897
31897
|
ref: Xe,
|
|
31898
31898
|
index: st
|
|
31899
31899
|
} = dc({
|
|
31900
|
-
metadata:
|
|
31900
|
+
metadata: Ge
|
|
31901
31901
|
}), ot = ze ? M ?? st : 0, zt = ot === Te.length - 1, Rt = Te[ot], xt = ZE(Rt, te, X), [mt, Ut] = S.useState(), Kt = XD(), qn = Z >= 0 && Z < Te.length ? Z : -1, gt = Je(() => {
|
|
31902
31902
|
const wt = ee.current, Zt = We.current;
|
|
31903
31903
|
if (!wt || !Zt)
|
|
@@ -33651,7 +33651,7 @@ function b1(a) {
|
|
|
33651
33651
|
function ze(Ze) {
|
|
33652
33652
|
const He = Ze.relatedTarget, De = Ze.currentTarget, We = Na(Ze);
|
|
33653
33653
|
queueMicrotask(() => {
|
|
33654
|
-
const nt = P(), at = z.context.triggerElements, Ye = Fe(), Re = He?.hasAttribute(y0("focus-guard")) && [ae.current, W.current, K?.beforeInsideRef.current, K?.afterInsideRef.current, K?.beforeOutsideRef.current, K?.afterOutsideRef.current, rc(w), rc(R)].includes(He), qe = !(ut(U, He) || ut(_, He) || ut(He, _) || ut(K?.portalNode, He) || Ye.some((
|
|
33654
|
+
const nt = P(), at = z.context.triggerElements, Ye = Fe(), Re = He?.hasAttribute(y0("focus-guard")) && [ae.current, W.current, K?.beforeInsideRef.current, K?.afterInsideRef.current, K?.beforeOutsideRef.current, K?.afterOutsideRef.current, rc(w), rc(R)].includes(He), qe = !(ut(U, He) || ut(_, He) || ut(He, _) || ut(K?.portalNode, He) || Ye.some((Ge) => Ge === He || ut(Ge, He)) || He != null && at.hasElement(He) || at.hasMatchingElement((Ge) => ut(Ge, He)) || Re || J && (cc(J.nodesRef.current, nt).find((Ge) => ut(Ge.context?.elements.floating, He) || ut(Ge.context?.elements.domReference, He)) || $M(J.nodesRef.current, nt).find((Ge) => [Ge.context?.elements.floating, GE(Ge.context?.elements.floating)].includes(He) || Ge.context?.elements.domReference === He)));
|
|
33655
33655
|
if (De === U && ve && C2(ve, Z), v && De !== U && !d1(We) && uo(Te) === Te.body) {
|
|
33656
33656
|
if (Bn(ve) && (ve.focus(), v === "popup")) {
|
|
33657
33657
|
xe.request(() => {
|
|
@@ -33659,7 +33659,7 @@ function b1(a) {
|
|
|
33659
33659
|
});
|
|
33660
33660
|
return;
|
|
33661
33661
|
}
|
|
33662
|
-
const
|
|
33662
|
+
const Ge = Oe(), Xe = k.current, st = (Xe && Ge.includes(Xe) ? Xe : null) || Ge[Ge.length - 1] || ve;
|
|
33663
33663
|
Bn(st) && st.focus();
|
|
33664
33664
|
}
|
|
33665
33665
|
if (H.current.insideReactTree) {
|
|
@@ -34024,7 +34024,7 @@ function nm(a, i = {}) {
|
|
|
34024
34024
|
P.current = !1, I.current = !1;
|
|
34025
34025
|
}
|
|
34026
34026
|
function Oe() {
|
|
34027
|
-
const Re = ee.current, qe = Re === "pen" || !Re ? "mouse" : Re,
|
|
34027
|
+
const Re = ee.current, qe = Re === "pen" || !Re ? "mouse" : Re, Ge = _(), Xe = typeof Ge == "function" ? Ge() : Ge;
|
|
34028
34028
|
return typeof Xe == "string" ? Xe : Xe[qe];
|
|
34029
34029
|
}
|
|
34030
34030
|
function Fe(Re) {
|
|
@@ -34032,8 +34032,8 @@ function nm(a, i = {}) {
|
|
|
34032
34032
|
return qe === "intentional" && Re.type !== "click" || qe === "sloppy" && Re.type === "click";
|
|
34033
34033
|
}
|
|
34034
34034
|
function Se(Re) {
|
|
34035
|
-
const qe = M.current.floatingContext?.nodeId,
|
|
34036
|
-
return $(Re) ||
|
|
34035
|
+
const qe = M.current.floatingContext?.nodeId, Ge = N && cc(N.nodesRef.current, qe).some((Xe) => wT(Re, Xe.context?.elements.floating));
|
|
34036
|
+
return $(Re) || Ge;
|
|
34037
34037
|
}
|
|
34038
34038
|
function Te(Re) {
|
|
34039
34039
|
if (Fe(Re)) {
|
|
@@ -34044,7 +34044,7 @@ function nm(a, i = {}) {
|
|
|
34044
34044
|
K();
|
|
34045
34045
|
return;
|
|
34046
34046
|
}
|
|
34047
|
-
const qe = Na(Re),
|
|
34047
|
+
const qe = Na(Re), Ge = `[${y0("inert")}]`, Xe = Jt(qe) ? qe.getRootNode() : null, st = Array.from((Mg(Xe) ? Xe : Gt(R.select("floatingElement"))).querySelectorAll(Ge)), ot = R.context.triggerElements;
|
|
34048
34048
|
if (qe && (ot.hasElement(qe) || ot.hasMatchingElement((Rt) => ut(Rt, qe))))
|
|
34049
34049
|
return;
|
|
34050
34050
|
let zt = Jt(qe) ? qe : null;
|
|
@@ -34090,10 +34090,10 @@ function nm(a, i = {}) {
|
|
|
34090
34090
|
}));
|
|
34091
34091
|
}
|
|
34092
34092
|
function ze(Re, qe) {
|
|
34093
|
-
const
|
|
34094
|
-
if (!
|
|
34093
|
+
const Ge = Na(Re);
|
|
34094
|
+
if (!Ge)
|
|
34095
34095
|
return;
|
|
34096
|
-
const Xe = Qt(
|
|
34096
|
+
const Xe = Qt(Ge, Re.type, () => {
|
|
34097
34097
|
qe(Re), Xe();
|
|
34098
34098
|
});
|
|
34099
34099
|
}
|
|
@@ -34129,7 +34129,7 @@ function nm(a, i = {}) {
|
|
|
34129
34129
|
const qe = Re.touches[0];
|
|
34130
34130
|
if (!qe)
|
|
34131
34131
|
return;
|
|
34132
|
-
const
|
|
34132
|
+
const Ge = Math.abs(qe.clientX - Q.current.startX), Xe = Math.abs(qe.clientY - Q.current.startY), st = Math.sqrt(Ge * Ge + Xe * Xe);
|
|
34133
34133
|
st > 5 && (Q.current.dismissOnTouchEnd = !0), st > 10 && (Te(Re), F.clear(), Q.current = null);
|
|
34134
34134
|
}
|
|
34135
34135
|
function De(Re) {
|
|
@@ -36275,7 +36275,7 @@ function Rz(a, i) {
|
|
|
36275
36275
|
if (re.current && (k.current = -1, Ne()), (!ne.current || !re.current) && L.current && (X.current != null || L.current === !0 && X.current == null)) {
|
|
36276
36276
|
let Ye = 0;
|
|
36277
36277
|
const Re = () => {
|
|
36278
|
-
u.current[0] == null ? (Ye < 2 && (Ye ? (
|
|
36278
|
+
u.current[0] == null ? (Ye < 2 && (Ye ? (Ge) => Te.request(Ge) : queueMicrotask)(Re), Ye += 1) : (k.current = X.current == null || YT(X.current, A, R) || T ? VE(u) : JT(u), X.current = null, ae());
|
|
36279
36279
|
};
|
|
36280
36280
|
Re();
|
|
36281
36281
|
}
|
|
@@ -36284,8 +36284,8 @@ function Rz(a, i) {
|
|
|
36284
36284
|
}, [g, q, Z, d, Oe, T, u, A, R, ae, Ne, Te]), $e(() => {
|
|
36285
36285
|
if (!g || Z || !$ || w || !re.current)
|
|
36286
36286
|
return;
|
|
36287
|
-
const Ye = $.nodesRef.current, Re = Ye.find((Xe) => Xe.id === oe)?.context?.elements.floating, qe = uo(Gt(Z)),
|
|
36288
|
-
Re && !
|
|
36287
|
+
const Ye = $.nodesRef.current, Re = Ye.find((Xe) => Xe.id === oe)?.context?.elements.floating, qe = uo(Gt(Z)), Ge = Ye.some((Xe) => Xe.context && ut(Xe.context.elements.floating, qe));
|
|
36288
|
+
Re && !Ge && te.current && Re.focus({
|
|
36289
36289
|
preventScroll: !0
|
|
36290
36290
|
});
|
|
36291
36291
|
}, [g, Z, $, oe, w]), $e(() => {
|
|
@@ -36305,8 +36305,8 @@ function Rz(a, i) {
|
|
|
36305
36305
|
OE(Ye.key, Ee()) || Qo(Ye), I.setOpen(!1, pt(PE, Ye.nativeEvent)), Bn(ee) && (w ? $?.events.emit("virtualfocus", ee) : ee.focus());
|
|
36306
36306
|
return;
|
|
36307
36307
|
}
|
|
36308
|
-
const Re = k.current, qe = VE(u, z),
|
|
36309
|
-
if (J || (Ye.key === "Home" && (Qo(Ye), k.current = qe, ae(Ye)), Ye.key === "End" && (Qo(Ye), k.current =
|
|
36308
|
+
const Re = k.current, qe = VE(u, z), Ge = JT(u, z);
|
|
36309
|
+
if (J || (Ye.key === "Home" && (Qo(Ye), k.current = qe, ae(Ye)), Ye.key === "End" && (Qo(Ye), k.current = Ge, ae(Ye))), _ > 1) {
|
|
36310
36310
|
const Xe = Array.from({
|
|
36311
36311
|
length: u.current.length
|
|
36312
36312
|
}, () => ({
|
|
@@ -36324,7 +36324,7 @@ function Rz(a, i) {
|
|
|
36324
36324
|
minIndex: ot,
|
|
36325
36325
|
maxIndex: zt,
|
|
36326
36326
|
prevIndex: kA(
|
|
36327
|
-
k.current >
|
|
36327
|
+
k.current > Ge ? qe : k.current,
|
|
36328
36328
|
Xe,
|
|
36329
36329
|
st,
|
|
36330
36330
|
_,
|
|
@@ -36341,16 +36341,16 @@ function Rz(a, i) {
|
|
|
36341
36341
|
}
|
|
36342
36342
|
if (OE(Ye.key, A)) {
|
|
36343
36343
|
if (Qo(Ye), q && !w && uo(Ye.currentTarget.ownerDocument) === Ye.currentTarget) {
|
|
36344
|
-
k.current = YT(Ye.key, A, R) ? qe :
|
|
36344
|
+
k.current = YT(Ye.key, A, R) ? qe : Ge, ae(Ye);
|
|
36345
36345
|
return;
|
|
36346
36346
|
}
|
|
36347
|
-
YT(Ye.key, A, R) ? C ? Re >=
|
|
36347
|
+
YT(Ye.key, A, R) ? C ? Re >= Ge ? b && Re !== u.current.length ? k.current = -1 : (le.current = !1, k.current = qe) : k.current = Xo(u.current, {
|
|
36348
36348
|
startingIndex: Re,
|
|
36349
36349
|
disabledIndices: z
|
|
36350
|
-
}) : k.current = Math.min(
|
|
36350
|
+
}) : k.current = Math.min(Ge, Xo(u.current, {
|
|
36351
36351
|
startingIndex: Re,
|
|
36352
36352
|
disabledIndices: z
|
|
36353
|
-
})) : C ? Re <= qe ? b && Re !== -1 ? k.current = u.current.length : (le.current = !1, k.current =
|
|
36353
|
+
})) : C ? Re <= qe ? b && Re !== -1 ? k.current = u.current.length : (le.current = !1, k.current = Ge) : k.current = Xo(u.current, {
|
|
36354
36354
|
startingIndex: Re,
|
|
36355
36355
|
decrement: !0,
|
|
36356
36356
|
disabledIndices: z
|
|
@@ -36379,8 +36379,8 @@ function Rz(a, i) {
|
|
|
36379
36379
|
le.current = !0;
|
|
36380
36380
|
const qe = Re.relatedTarget;
|
|
36381
36381
|
if (!(!M || u.current.includes(qe)) && Fe.current && (xe.current?.(), xe.current = null, k.current = -1, ae(Re), !w)) {
|
|
36382
|
-
const
|
|
36383
|
-
|
|
36382
|
+
const Ge = K.current, Xe = uo(Gt(Ge));
|
|
36383
|
+
Ge && ut(Ge, Xe) && Ge.focus({
|
|
36384
36384
|
preventScroll: !0
|
|
36385
36385
|
});
|
|
36386
36386
|
}
|
|
@@ -36404,36 +36404,36 @@ function Rz(a, i) {
|
|
|
36404
36404
|
te.current = !0;
|
|
36405
36405
|
}
|
|
36406
36406
|
}), [De, Ze, K, A, J, I, q, w, ee]), nt = S.useMemo(() => {
|
|
36407
|
-
function Ye(
|
|
36408
|
-
I.setOpen(!0, pt(PE,
|
|
36407
|
+
function Ye(Ge) {
|
|
36408
|
+
I.setOpen(!0, pt(PE, Ge.nativeEvent, Ge.currentTarget));
|
|
36409
36409
|
}
|
|
36410
|
-
function Re(
|
|
36411
|
-
D === "auto" && RC(
|
|
36410
|
+
function Re(Ge) {
|
|
36411
|
+
D === "auto" && RC(Ge.nativeEvent) && (L.current = !w);
|
|
36412
36412
|
}
|
|
36413
|
-
function qe(
|
|
36414
|
-
L.current = D, D === "auto" && BA(
|
|
36413
|
+
function qe(Ge) {
|
|
36414
|
+
L.current = D, D === "auto" && BA(Ge.nativeEvent) && (L.current = !0);
|
|
36415
36415
|
}
|
|
36416
36416
|
return {
|
|
36417
|
-
onKeyDown(
|
|
36417
|
+
onKeyDown(Ge) {
|
|
36418
36418
|
const Xe = I.select("open");
|
|
36419
36419
|
te.current = !1;
|
|
36420
|
-
const st =
|
|
36420
|
+
const st = Ge.key.startsWith("Arrow"), ot = aH(Ge.key, Ee(), R), zt = OE(Ge.key, A), Rt = (T ? ot : zt) || Ge.key === "Enter" || Ge.key.trim() === "";
|
|
36421
36421
|
if (w && Xe)
|
|
36422
|
-
return Ze(
|
|
36422
|
+
return Ze(Ge);
|
|
36423
36423
|
if (!(!Xe && !N && st)) {
|
|
36424
36424
|
if (Rt) {
|
|
36425
|
-
const xt = OE(
|
|
36426
|
-
X.current = T && xt ? null :
|
|
36425
|
+
const xt = OE(Ge.key, Ee());
|
|
36426
|
+
X.current = T && xt ? null : Ge.key;
|
|
36427
36427
|
}
|
|
36428
36428
|
if (T) {
|
|
36429
|
-
ot && (Qo(
|
|
36429
|
+
ot && (Qo(Ge), Xe ? (k.current = je(), ae(Ge)) : Ye(Ge));
|
|
36430
36430
|
return;
|
|
36431
36431
|
}
|
|
36432
|
-
zt && (Oe.current != null && (k.current = Oe.current), Qo(
|
|
36432
|
+
zt && (Oe.current != null && (k.current = Oe.current), Qo(Ge), !Xe && N ? Ye(Ge) : Ze(Ge), Xe && ae(Ge));
|
|
36433
36433
|
}
|
|
36434
36434
|
},
|
|
36435
|
-
onFocus(
|
|
36436
|
-
I.select("open") && !w && (k.current = -1, ae(
|
|
36435
|
+
onFocus(Ge) {
|
|
36436
|
+
I.select("open") && !w && (k.current = -1, ae(Ge));
|
|
36437
36437
|
},
|
|
36438
36438
|
onPointerDown: qe,
|
|
36439
36439
|
onPointerEnter: qe,
|
|
@@ -36902,7 +36902,7 @@ function pH(a) {
|
|
|
36902
36902
|
scrollUpArrowVisible: !1,
|
|
36903
36903
|
scrollDownArrowVisible: !1,
|
|
36904
36904
|
hasScrollArrows: !1
|
|
36905
|
-
})).current, qe = Lt(Re, jt.activeIndex),
|
|
36905
|
+
})).current, qe = Lt(Re, jt.activeIndex), Ge = Lt(Re, jt.selectedIndex), Xe = Lt(Re, jt.triggerElement), st = Lt(Re, jt.positionerElement), ot = AV(at), zt = at ?? ot, Rt = S.useMemo(() => V && Array.isArray(ne) && ne.length === 0 ? "" : Cg(ne, P), [V, ne, P]), xt = S.useMemo(() => V && Array.isArray(ne) ? ne.map((Dt) => Cg(Dt, P)) : Cg(ne, P), [V, ne, P]), mt = ua(Re.state.triggerElement), Ut = Je(() => xt);
|
|
36906
36906
|
Gg(mt, ae, ne, Ut);
|
|
36907
36907
|
const Kt = S.useRef(ne), qn = V ? Array.isArray(ne) && ne.length > 0 : ne != null;
|
|
36908
36908
|
$e(() => {
|
|
@@ -36973,7 +36973,7 @@ function pH(a) {
|
|
|
36973
36973
|
enabled: !D && !W,
|
|
36974
36974
|
listRef: ye,
|
|
36975
36975
|
activeIndex: qe,
|
|
36976
|
-
selectedIndex:
|
|
36976
|
+
selectedIndex: Ge,
|
|
36977
36977
|
disabledIndices: Xs,
|
|
36978
36978
|
onNavigate(Dt) {
|
|
36979
36979
|
Dt === null && !ge || Re.set("activeIndex", Dt);
|
|
@@ -36983,7 +36983,7 @@ function pH(a) {
|
|
|
36983
36983
|
enabled: !D && !W && (ge || !V),
|
|
36984
36984
|
listRef: ve,
|
|
36985
36985
|
activeIndex: qe,
|
|
36986
|
-
selectedIndex:
|
|
36986
|
+
selectedIndex: Ge,
|
|
36987
36987
|
onMatch(Dt) {
|
|
36988
36988
|
ge ? Re.set("activeIndex", Dt) : ft(Ne.current[Dt], pt("none"));
|
|
36989
36989
|
},
|
|
@@ -37643,7 +37643,7 @@ function ny(a) {
|
|
|
37643
37643
|
placement: Ye,
|
|
37644
37644
|
context: Re,
|
|
37645
37645
|
isPositioned: qe,
|
|
37646
|
-
floatingStyles:
|
|
37646
|
+
floatingStyles: Ge
|
|
37647
37647
|
} = eH({
|
|
37648
37648
|
rootContext: N,
|
|
37649
37649
|
open: M ? z : void 0,
|
|
@@ -37663,10 +37663,10 @@ function ny(a) {
|
|
|
37663
37663
|
[st]: We
|
|
37664
37664
|
} : {
|
|
37665
37665
|
position: ot,
|
|
37666
|
-
...
|
|
37666
|
+
...Ge
|
|
37667
37667
|
};
|
|
37668
37668
|
return qe || (vt.opacity = 0), vt;
|
|
37669
|
-
}, [V, ot, Xe, De, st, We,
|
|
37669
|
+
}, [V, ot, Xe, De, st, We, Ge, qe]), Rt = S.useRef(null);
|
|
37670
37670
|
$e(() => {
|
|
37671
37671
|
if (!z)
|
|
37672
37672
|
return;
|
|
@@ -38077,7 +38077,7 @@ const _H = {
|
|
|
38077
38077
|
return;
|
|
38078
38078
|
}
|
|
38079
38079
|
const Ee = q2(ne), je = u0(ne.getBoundingClientRect().height, "y", Ee), Ze = Gt(ne), He = getComputedStyle(ne), De = parseFloat(He.marginTop), We = parseFloat(He.marginBottom), nt = G2(getComputedStyle(T.current)), at = Math.min(Ze.documentElement.clientHeight - De - We, nt), Ye = Ne.scrollTop, Re = zE(Ne);
|
|
38080
|
-
let qe = 0,
|
|
38080
|
+
let qe = 0, Ge = null, Xe = !1, st = !1;
|
|
38081
38081
|
const ot = (mt) => {
|
|
38082
38082
|
ne.style.height = `${mt}px`;
|
|
38083
38083
|
}, zt = (mt, Ut) => {
|
|
@@ -38089,13 +38089,13 @@ const _H = {
|
|
|
38089
38089
|
return;
|
|
38090
38090
|
}
|
|
38091
38091
|
if (at - xt > $r)
|
|
38092
|
-
Le ? st = !0 :
|
|
38092
|
+
Le ? st = !0 : Ge = 0;
|
|
38093
38093
|
else if (Xe = !0, ze && Ye < Re) {
|
|
38094
38094
|
const mt = je + Rt - at;
|
|
38095
|
-
|
|
38095
|
+
Ge = Ye - (Rt - mt);
|
|
38096
38096
|
}
|
|
38097
|
-
if (qe = Math.ceil(qe), qe !== 0 && ot(qe), st ||
|
|
38098
|
-
const mt = zE(Ne), Ut = st ? mt : _a(
|
|
38097
|
+
if (qe = Math.ceil(qe), qe !== 0 && ot(qe), st || Ge != null) {
|
|
38098
|
+
const mt = zE(Ne), Ut = st ? mt : _a(Ge, 0, mt);
|
|
38099
38099
|
Math.abs(Ne.scrollTop - Ut) > $r && (Ne.scrollTop = Ut);
|
|
38100
38100
|
}
|
|
38101
38101
|
(Xe || qe >= at - $r) && (ge.current = !0), U();
|
|
@@ -38140,7 +38140,7 @@ const _H = {
|
|
|
38140
38140
|
try {
|
|
38141
38141
|
let ze = N.current;
|
|
38142
38142
|
ze?.isConnected || (ze = !jt.hasSelectedValue(C.state) && M.current?.isConnected ? M.current : null);
|
|
38143
|
-
const Ee = D.current, je = getComputedStyle(ne), Ze = getComputedStyle(Ne), He = Gt(re), De = An(ne), We = q2(re), nt = _E(re.getBoundingClientRect(), We), at = _E(ne.getBoundingClientRect(), We), Ye = nt.height, Re = le || Ne, qe = Re.scrollHeight,
|
|
38143
|
+
const Ee = D.current, je = getComputedStyle(ne), Ze = getComputedStyle(Ne), He = Gt(re), De = An(ne), We = q2(re), nt = _E(re.getBoundingClientRect(), We), at = _E(ne.getBoundingClientRect(), We), Ye = nt.height, Re = le || Ne, qe = Re.scrollHeight, Ge = parseFloat(Ze.borderBottomWidth), Xe = parseFloat(je.marginTop) || 10, st = parseFloat(je.marginBottom) || 10, ot = parseFloat(je.minHeight) || 100, zt = G2(Ze), Rt = 5, xt = 5, mt = 20, Ut = He.documentElement.clientHeight - Xe - st, Kt = He.documentElement.clientWidth, qn = Ut - nt.bottom + Ye;
|
|
38144
38144
|
let gt, vt = oe === "rtl" ? nt.right - at.width : nt.left, ft = 0;
|
|
38145
38145
|
if (ze && Ee) {
|
|
38146
38146
|
const et = _E(Ee.getBoundingClientRect(), We);
|
|
@@ -38148,7 +38148,7 @@ const _H = {
|
|
|
38148
38148
|
const ct = et.top - nt.top + et.height / 2;
|
|
38149
38149
|
ft = gt.top - at.top + gt.height / 2 - ct;
|
|
38150
38150
|
}
|
|
38151
|
-
const Tt = qn + ft + st +
|
|
38151
|
+
const Tt = qn + ft + st + Ge;
|
|
38152
38152
|
let bt = Math.min(Ut, Tt);
|
|
38153
38153
|
const Vt = Ut - Xe - st, St = Tt - bt, un = Kt - xt;
|
|
38154
38154
|
ne.style.left = `${_a(vt, Rt, un - at.width)}px`, ne.style.height = `${bt}px`, ne.style.maxHeight = "auto", ne.style.marginTop = `${Xe}px`, ne.style.marginBottom = `${st}px`, Ne.style.height = "100%";
|
|
@@ -40078,7 +40078,7 @@ const H1 = v1(function(i) {
|
|
|
40078
40078
|
const qe = S.useMemo(() => ({
|
|
40079
40079
|
store: I,
|
|
40080
40080
|
parent: P
|
|
40081
|
-
}), [I, P]),
|
|
40081
|
+
}), [I, P]), Ge = /* @__PURE__ */ E.jsx(N1.Provider, {
|
|
40082
40082
|
value: qe,
|
|
40083
40083
|
children: typeof u == "function" ? u({
|
|
40084
40084
|
payload: ae
|
|
@@ -40086,8 +40086,8 @@ const H1 = v1(function(i) {
|
|
|
40086
40086
|
});
|
|
40087
40087
|
return X.type === void 0 || X.type === "context-menu" ? /* @__PURE__ */ E.jsx(D0, {
|
|
40088
40088
|
externalTree: ee,
|
|
40089
|
-
children:
|
|
40090
|
-
}) :
|
|
40089
|
+
children: Ge
|
|
40090
|
+
}) : Ge;
|
|
40091
40091
|
});
|
|
40092
40092
|
process.env.NODE_ENV !== "production" && (H1.displayName = "MenuRoot");
|
|
40093
40093
|
function Fz(a) {
|
|
@@ -45283,7 +45283,7 @@ const eA = {
|
|
|
45283
45283
|
function qe(et, ct) {
|
|
45284
45284
|
!A || !M || (A.style.setProperty(Yl.popupWidth, `${et}px`), A.style.setProperty(Yl.popupHeight, `${ct}px`), M.style.setProperty(pr.positionerWidth, `${et}px`), M.style.setProperty(pr.positionerHeight, `${ct}px`));
|
|
45285
45285
|
}
|
|
45286
|
-
function
|
|
45286
|
+
function Ge() {
|
|
45287
45287
|
at(!0);
|
|
45288
45288
|
const et = new AbortController();
|
|
45289
45289
|
ee.current.abortController = et, ee.current.owner = L, We(() => {
|
|
@@ -45303,7 +45303,7 @@ const eA = {
|
|
|
45303
45303
|
height: nn
|
|
45304
45304
|
} = Og(A), Pn = Dt || Le.current.width, zn = nn || Le.current.height;
|
|
45305
45305
|
(ct === 0 || et === 0) && (et = Pn, ct = zn), A.style.setProperty(Yl.popupWidth, `${et}px`), A.style.setProperty(Yl.popupHeight, `${ct}px`), M.style.setProperty(pr.positionerWidth, `${xn ? et : Pn}px`), M.style.setProperty(pr.positionerHeight, `${xn ? ct : zn}px`), ge.request(() => {
|
|
45306
|
-
je.current && (A.style.setProperty(Yl.popupWidth, `${Pn}px`), A.style.setProperty(Yl.popupHeight, `${zn}px`), xn && (M.style.setProperty(pr.positionerWidth, `${Pn}px`), M.style.setProperty(pr.positionerHeight, `${zn}px`)),
|
|
45306
|
+
je.current && (A.style.setProperty(Yl.popupWidth, `${Pn}px`), A.style.setProperty(Yl.popupHeight, `${zn}px`), xn && (M.style.setProperty(pr.positionerWidth, `${Pn}px`), M.style.setProperty(pr.positionerHeight, `${zn}px`)), Ge());
|
|
45307
45307
|
});
|
|
45308
45308
|
}), st = Je((et, ct) => {
|
|
45309
45309
|
!A || !M || (ge.cancel(), ne.cancel(), at(!0), !(et === 0 || ct === 0) && (qe(et, ct), ne.request(() => {
|
|
@@ -45314,7 +45314,7 @@ const eA = {
|
|
|
45314
45314
|
height: xn
|
|
45315
45315
|
} = Og(A), Dt = At || et || Le.current.width, nn = xn || ct || Le.current.height;
|
|
45316
45316
|
qe(et, ct), ge.request(() => {
|
|
45317
|
-
je.current && (qe(Dt, nn),
|
|
45317
|
+
je.current && (qe(Dt, nn), Ge());
|
|
45318
45318
|
});
|
|
45319
45319
|
});
|
|
45320
45320
|
})));
|
|
@@ -46813,13 +46813,13 @@ const Rw = {
|
|
|
46813
46813
|
if (k.current) {
|
|
46814
46814
|
const at = k.current.scrollHeight, Ye = k.current.clientHeight, Re = k.current.scrollWidth, qe = k.current.clientWidth;
|
|
46815
46815
|
if (ae.current && X.current && ve.current === "vertical") {
|
|
46816
|
-
const
|
|
46816
|
+
const Ge = hr(X.current, "padding", "y"), Xe = hr(ae.current, "margin", "y"), st = ae.current.offsetHeight, ot = X.current.offsetHeight - st - Ge - Xe, zt = We / ot;
|
|
46817
46817
|
k.current.scrollTop = xe.current + zt * (at - Ye), De.preventDefault(), V(!0), R.start(UE, () => {
|
|
46818
46818
|
V(!1);
|
|
46819
46819
|
});
|
|
46820
46820
|
}
|
|
46821
46821
|
if (W.current && te.current && ve.current === "horizontal") {
|
|
46822
|
-
const
|
|
46822
|
+
const Ge = hr(te.current, "padding", "x"), Xe = hr(W.current, "margin", "x"), st = W.current.offsetWidth, ot = te.current.offsetWidth - st - Ge - Xe, zt = nt / ot;
|
|
46823
46823
|
k.current.scrollLeft = ye.current + zt * (Re - qe), De.preventDefault(), U(!0), w.start(UE, () => {
|
|
46824
46824
|
U(!1);
|
|
46825
46825
|
});
|
|
@@ -46980,7 +46980,7 @@ const Dj = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
46980
46980
|
let It = 0;
|
|
46981
46981
|
F === "rtl" ? It = _a(-Ne, 0, We) : It = _a(Ne, 0, We), at = Vg(It, We), Ye = We - at;
|
|
46982
46982
|
}
|
|
46983
|
-
const Re = je ? 0 : _a(Te, 0, nt), qe = je ? 0 : Vg(Re, nt),
|
|
46983
|
+
const Re = je ? 0 : _a(Te, 0, nt), qe = je ? 0 : Vg(Re, nt), Ge = je ? 0 : nt - qe, Xe = Ze ? 0 : Se, st = je ? 0 : Fe;
|
|
46984
46984
|
let ot = 0, zt = 0;
|
|
46985
46985
|
!Ze && !je && (ot = ne?.offsetWidth || 0, zt = le?.offsetHeight || 0);
|
|
46986
46986
|
const Rt = M.width === 0 && M.height === 0, xt = Rt ? ot : 0, mt = Rt ? zt : 0, Ut = hr(le, "padding", "x"), Kt = hr(ne, "padding", "y"), qn = hr(xe, "margin", "x"), gt = hr(ge, "margin", "y"), vt = Xe - Ut - qn, ft = st - Kt - gt, Tt = le ? Math.min(le.offsetWidth - xt, vt) : vt, bt = ne ? Math.min(ne.offsetHeight - mt, ft) : ft, Vt = Math.max(aA, Tt * He), St = Math.max(aA, bt * De);
|
|
@@ -46995,7 +46995,7 @@ const Dj = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
46995
46995
|
const It = le.offsetWidth - Vt - Ut - qn, wt = Oe - Se, Zt = wt === 0 ? 0 : Ne / wt, dn = F === "rtl" ? _a(Zt * It, -It, 0) : _a(Zt * It, 0, It);
|
|
46996
46996
|
xe.style.transform = `translate3d(${dn}px,0,0)`;
|
|
46997
46997
|
}
|
|
46998
|
-
const un = [[Xf.scrollAreaOverflowXStart, at], [Xf.scrollAreaOverflowXEnd, Ye], [Xf.scrollAreaOverflowYStart, qe], [Xf.scrollAreaOverflowYEnd,
|
|
46998
|
+
const un = [[Xf.scrollAreaOverflowXStart, at], [Xf.scrollAreaOverflowXEnd, Ye], [Xf.scrollAreaOverflowYStart, qe], [Xf.scrollAreaOverflowYEnd, Ge]];
|
|
46999
46999
|
for (const [It, wt] of un)
|
|
47000
47000
|
re.style.setProperty(It, `${wt}px`);
|
|
47001
47001
|
ye && (Ze || je ? N({
|
|
@@ -47009,7 +47009,7 @@ const Dj = /* @__PURE__ */ S.forwardRef(function(i, u) {
|
|
|
47009
47009
|
xStart: !Ze && at > Z.xStart,
|
|
47010
47010
|
xEnd: !Ze && Ye > Z.xEnd,
|
|
47011
47011
|
yStart: !je && qe > Z.yStart,
|
|
47012
|
-
yEnd: !je &&
|
|
47012
|
+
yEnd: !je && Ge > Z.yEnd
|
|
47013
47013
|
};
|
|
47014
47014
|
I((It) => It.xStart === On.xStart && It.xEnd === On.xEnd && It.yStart === On.yStart && It.yEnd === On.yEnd ? It : On);
|
|
47015
47015
|
});
|
|
@@ -48178,7 +48178,7 @@ function tI() {
|
|
|
48178
48178
|
PopupBoxContent: V_
|
|
48179
48179
|
};
|
|
48180
48180
|
}
|
|
48181
|
-
const
|
|
48181
|
+
const ke = {
|
|
48182
48182
|
icon: eI,
|
|
48183
48183
|
Link: C4,
|
|
48184
48184
|
Button: vr,
|
|
@@ -48421,17 +48421,20 @@ const Ge = {
|
|
|
48421
48421
|
EmptyMedia: K9,
|
|
48422
48422
|
EmptyTitle: $9,
|
|
48423
48423
|
usePopupBox: tI
|
|
48424
|
-
}
|
|
48425
|
-
|
|
48424
|
+
}, nI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48425
|
+
__proto__: null,
|
|
48426
|
+
default: ke
|
|
48427
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
48428
|
+
function aI({ dict: a }) {
|
|
48426
48429
|
const { pathname: i } = O4(), u = a[i] || [];
|
|
48427
|
-
return /* @__PURE__ */ E.jsx(
|
|
48430
|
+
return /* @__PURE__ */ E.jsx(ke.Breadcrumb, { children: /* @__PURE__ */ E.jsx(ke.BreadcrumbList, { children: u.map(
|
|
48428
48431
|
(d, m) => /* @__PURE__ */ E.jsxs(m4, { children: [
|
|
48429
|
-
/* @__PURE__ */ E.jsx(
|
|
48430
|
-
m < u.length - 1 && /* @__PURE__ */ E.jsx(
|
|
48432
|
+
/* @__PURE__ */ E.jsx(ke.BreadcrumbItem, { children: d.href ? /* @__PURE__ */ E.jsx(ke.BreadcrumbLink, { href: d.href, children: d.label }) : /* @__PURE__ */ E.jsx(ke.BreadcrumbPage, { children: d.label }) }),
|
|
48433
|
+
m < u.length - 1 && /* @__PURE__ */ E.jsx(ke.BreadcrumbSeparator, { className: "-mx-1 md:mx-0" })
|
|
48431
48434
|
] }, m)
|
|
48432
48435
|
) }) });
|
|
48433
48436
|
}
|
|
48434
|
-
function
|
|
48437
|
+
function oI({
|
|
48435
48438
|
childrens: a,
|
|
48436
48439
|
handleCycle: i,
|
|
48437
48440
|
onClick: u,
|
|
@@ -48442,7 +48445,7 @@ function aI({
|
|
|
48442
48445
|
};
|
|
48443
48446
|
return /* @__PURE__ */ E.jsx("button", { onClick: v, ...d, children: a[m] });
|
|
48444
48447
|
}
|
|
48445
|
-
function
|
|
48448
|
+
function lI({
|
|
48446
48449
|
handleFormData: a,
|
|
48447
48450
|
link: i,
|
|
48448
48451
|
onSubmit: u,
|
|
@@ -48459,7 +48462,7 @@ function oI({
|
|
|
48459
48462
|
return /* @__PURE__ */ E.jsx("form", { onSubmit: g, ...d });
|
|
48460
48463
|
}
|
|
48461
48464
|
const Bj = h4(null);
|
|
48462
|
-
function
|
|
48465
|
+
function iI({ children: a }) {
|
|
48463
48466
|
const [i, u] = kl(!1), d = {
|
|
48464
48467
|
isLoading: i,
|
|
48465
48468
|
setIsLoading: u
|
|
@@ -48469,7 +48472,7 @@ function lI({ children: a }) {
|
|
|
48469
48472
|
i && /* @__PURE__ */ E.jsx("div", { className: "fixed inset-0 z-50 flex justify-center items-center bg-black/5", children: /* @__PURE__ */ E.jsx("div", { className: "flex justify-center items-center size-10 rounded-full bg-white shadow-md", children: /* @__PURE__ */ E.jsx(uC, { role: "status", "aria-label": "Loading", className: "size-full animate-spin" }) }) })
|
|
48470
48473
|
] });
|
|
48471
48474
|
}
|
|
48472
|
-
function
|
|
48475
|
+
function rI() {
|
|
48473
48476
|
const a = g4(Bj);
|
|
48474
48477
|
if (!a) throw new Error("must be used within Loading component");
|
|
48475
48478
|
return {
|
|
@@ -48484,7 +48487,7 @@ function iI() {
|
|
|
48484
48487
|
}
|
|
48485
48488
|
};
|
|
48486
48489
|
}
|
|
48487
|
-
function
|
|
48490
|
+
function sI({
|
|
48488
48491
|
children: a,
|
|
48489
48492
|
position: i = "top-center",
|
|
48490
48493
|
richColors: u = !0,
|
|
@@ -48494,7 +48497,7 @@ function rI({
|
|
|
48494
48497
|
return /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
48495
48498
|
a,
|
|
48496
48499
|
/* @__PURE__ */ E.jsx(
|
|
48497
|
-
|
|
48500
|
+
ke.Toaster,
|
|
48498
48501
|
{
|
|
48499
48502
|
position: i,
|
|
48500
48503
|
richColors: u,
|
|
@@ -48521,7 +48524,7 @@ function iC(a, i, u) {
|
|
|
48521
48524
|
let d;
|
|
48522
48525
|
return i === void 0 ? d = lC(a) : d = lC(a, i, u), Array.from(d);
|
|
48523
48526
|
}
|
|
48524
|
-
function
|
|
48527
|
+
function uI(a, i) {
|
|
48525
48528
|
return a.includes(i) ? a.filter((d) => d !== i) : [...a, i];
|
|
48526
48529
|
}
|
|
48527
48530
|
function Lj(a, i, u = "asc") {
|
|
@@ -48560,16 +48563,16 @@ function Ij(a) {
|
|
|
48560
48563
|
);
|
|
48561
48564
|
return i;
|
|
48562
48565
|
}
|
|
48563
|
-
const
|
|
48566
|
+
const cI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48564
48567
|
__proto__: null,
|
|
48565
48568
|
compare: Lj,
|
|
48566
48569
|
countArr: Ij,
|
|
48567
48570
|
range: lC,
|
|
48568
48571
|
rangeArr: iC,
|
|
48569
48572
|
sort: rC,
|
|
48570
|
-
toggleArr:
|
|
48573
|
+
toggleArr: uI
|
|
48571
48574
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
48572
|
-
function
|
|
48575
|
+
function fI({
|
|
48573
48576
|
data: a,
|
|
48574
48577
|
setData: i,
|
|
48575
48578
|
headerOption: u,
|
|
@@ -48599,7 +48602,7 @@ function cI({
|
|
|
48599
48602
|
)).slice((M - 1) * w, M * w), [I, q] = kl(v && []);
|
|
48600
48603
|
return /* @__PURE__ */ E.jsxs("div", { className: "relative flex flex-col gap-4 size-full", children: [
|
|
48601
48604
|
/* @__PURE__ */ E.jsx(
|
|
48602
|
-
|
|
48605
|
+
dI,
|
|
48603
48606
|
{
|
|
48604
48607
|
data: a,
|
|
48605
48608
|
headerOption: z,
|
|
@@ -48616,7 +48619,7 @@ function cI({
|
|
|
48616
48619
|
}
|
|
48617
48620
|
),
|
|
48618
48621
|
/* @__PURE__ */ E.jsx(
|
|
48619
|
-
|
|
48622
|
+
pI,
|
|
48620
48623
|
{
|
|
48621
48624
|
pageData: P,
|
|
48622
48625
|
setData: i,
|
|
@@ -48628,7 +48631,7 @@ function cI({
|
|
|
48628
48631
|
}
|
|
48629
48632
|
),
|
|
48630
48633
|
/* @__PURE__ */ E.jsx(
|
|
48631
|
-
|
|
48634
|
+
mI,
|
|
48632
48635
|
{
|
|
48633
48636
|
total: a.length,
|
|
48634
48637
|
pageSize: w,
|
|
@@ -48641,7 +48644,7 @@ function cI({
|
|
|
48641
48644
|
)
|
|
48642
48645
|
] });
|
|
48643
48646
|
}
|
|
48644
|
-
function
|
|
48647
|
+
function dI({
|
|
48645
48648
|
data: a,
|
|
48646
48649
|
headerOption: i,
|
|
48647
48650
|
setHeaderOption: u,
|
|
@@ -48668,18 +48671,18 @@ function fI({
|
|
|
48668
48671
|
let U;
|
|
48669
48672
|
return /* @__PURE__ */ E.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
48670
48673
|
/* @__PURE__ */ E.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
48671
|
-
b && C && /* @__PURE__ */ E.jsxs(
|
|
48672
|
-
/* @__PURE__ */ E.jsxs(
|
|
48673
|
-
/* @__PURE__ */ E.jsx(
|
|
48674
|
+
b && C && /* @__PURE__ */ E.jsxs(ke.DropdownMenu, { modal: !1, children: [
|
|
48675
|
+
/* @__PURE__ */ E.jsxs(ke.DropdownMenuTrigger, { render: /* @__PURE__ */ E.jsx(ke.Button, { variant: "outline", size: "sm" }), children: [
|
|
48676
|
+
/* @__PURE__ */ E.jsx(ke.icon.ListTodo, {}),
|
|
48674
48677
|
{
|
|
48675
48678
|
en: /* @__PURE__ */ E.jsx(E.Fragment, { children: /* @__PURE__ */ E.jsx("span", { className: "hidden lg:inline", children: "Batch" }) }),
|
|
48676
48679
|
zh: /* @__PURE__ */ E.jsx(E.Fragment, { children: /* @__PURE__ */ E.jsx("span", { className: "hidden lg:inline", children: "批量" }) })
|
|
48677
48680
|
}[w]
|
|
48678
48681
|
] }),
|
|
48679
|
-
/* @__PURE__ */ E.jsx(
|
|
48682
|
+
/* @__PURE__ */ E.jsx(ke.DropdownMenuContent, { align: "start", className: "w-auto", children: /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
48680
48683
|
(U = typeof b == "function" ? b(C) : b).options && Object.entries(U.options).map(
|
|
48681
48684
|
([_, V], H) => /* @__PURE__ */ E.jsx(
|
|
48682
|
-
|
|
48685
|
+
ke.DropdownMenuItem,
|
|
48683
48686
|
{
|
|
48684
48687
|
onClick: () => {
|
|
48685
48688
|
V && V(C);
|
|
@@ -48690,10 +48693,10 @@ function fI({
|
|
|
48690
48693
|
H
|
|
48691
48694
|
)
|
|
48692
48695
|
),
|
|
48693
|
-
U.options && U.destructiveOptions && /* @__PURE__ */ E.jsx(
|
|
48696
|
+
U.options && U.destructiveOptions && /* @__PURE__ */ E.jsx(ke.DropdownMenuSeparator, {}),
|
|
48694
48697
|
U.destructiveOptions && Object.entries(U.destructiveOptions).map(
|
|
48695
48698
|
([_, V], H) => /* @__PURE__ */ E.jsx(
|
|
48696
|
-
|
|
48699
|
+
ke.DropdownMenuItem,
|
|
48697
48700
|
{
|
|
48698
48701
|
variant: "destructive",
|
|
48699
48702
|
onClick: () => {
|
|
@@ -48707,17 +48710,17 @@ function fI({
|
|
|
48707
48710
|
)
|
|
48708
48711
|
] }) })
|
|
48709
48712
|
] }),
|
|
48710
|
-
/* @__PURE__ */ E.jsxs(
|
|
48711
|
-
/* @__PURE__ */ E.jsxs(
|
|
48712
|
-
/* @__PURE__ */ E.jsx(
|
|
48713
|
+
/* @__PURE__ */ E.jsxs(ke.DropdownMenu, { children: [
|
|
48714
|
+
/* @__PURE__ */ E.jsxs(ke.DropdownMenuTrigger, { render: /* @__PURE__ */ E.jsx(ke.Button, { variant: "outline", size: "sm" }), children: [
|
|
48715
|
+
/* @__PURE__ */ E.jsx(ke.icon.Columns3Cog, {}),
|
|
48713
48716
|
{
|
|
48714
48717
|
en: /* @__PURE__ */ E.jsx(E.Fragment, { children: /* @__PURE__ */ E.jsx("span", { className: "hidden lg:inline", children: "Columns" }) }),
|
|
48715
48718
|
zh: /* @__PURE__ */ E.jsx(E.Fragment, { children: /* @__PURE__ */ E.jsx("span", { className: "hidden lg:inline", children: "字段" }) })
|
|
48716
48719
|
}[w]
|
|
48717
48720
|
] }),
|
|
48718
|
-
/* @__PURE__ */ E.jsx(
|
|
48721
|
+
/* @__PURE__ */ E.jsx(ke.DropdownMenuContent, { align: "start", className: "w-auto", children: i.map(
|
|
48719
48722
|
({ key: _, name: V, isHide: H }, P) => /* @__PURE__ */ E.jsx(
|
|
48720
|
-
|
|
48723
|
+
ke.DropdownMenuCheckboxItem,
|
|
48721
48724
|
{
|
|
48722
48725
|
checked: !H,
|
|
48723
48726
|
onCheckedChange: (I) => {
|
|
@@ -48735,7 +48738,7 @@ function fI({
|
|
|
48735
48738
|
) })
|
|
48736
48739
|
] }),
|
|
48737
48740
|
v && v.map(({ name: _, method: V }, H) => /* @__PURE__ */ E.jsx(
|
|
48738
|
-
|
|
48741
|
+
ke.Button,
|
|
48739
48742
|
{
|
|
48740
48743
|
variant: "outline",
|
|
48741
48744
|
size: "sm",
|
|
@@ -48748,16 +48751,16 @@ function fI({
|
|
|
48748
48751
|
))
|
|
48749
48752
|
] }),
|
|
48750
48753
|
/* @__PURE__ */ E.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
48751
|
-
i.map(({ key: _, name: V, isGroup: H }, P) => H && /* @__PURE__ */ E.jsxs(
|
|
48752
|
-
/* @__PURE__ */ E.jsxs(
|
|
48753
|
-
/* @__PURE__ */ E.jsx(
|
|
48754
|
+
i.map(({ key: _, name: V, isGroup: H }, P) => H && /* @__PURE__ */ E.jsxs(ke.Popover, { children: [
|
|
48755
|
+
/* @__PURE__ */ E.jsxs(ke.PopoverTrigger, { className: "hidden lg:flex", render: /* @__PURE__ */ E.jsx(ke.Button, { variant: "outline", size: "sm" }), children: [
|
|
48756
|
+
/* @__PURE__ */ E.jsx(ke.icon.GroupIcon, {}),
|
|
48754
48757
|
/* @__PURE__ */ E.jsx("span", { children: V })
|
|
48755
48758
|
] }),
|
|
48756
|
-
/* @__PURE__ */ E.jsx(
|
|
48757
|
-
/* @__PURE__ */ E.jsx(
|
|
48758
|
-
/* @__PURE__ */ E.jsxs(
|
|
48759
|
+
/* @__PURE__ */ E.jsx(ke.PopoverContent, { align: "start", className: "w-[200px] p-0", children: /* @__PURE__ */ E.jsx(ke.Command, { className: "pt-0", children: /* @__PURE__ */ E.jsxs(ke.CommandList, { className: "max-h-full", children: [
|
|
48760
|
+
/* @__PURE__ */ E.jsx(ke.CommandEmpty, { children: { en: "No content", zh: "无内容" }[w] }),
|
|
48761
|
+
/* @__PURE__ */ E.jsxs(ke.CommandItem, { className: "relative py-0.5", children: [
|
|
48759
48762
|
/* @__PURE__ */ E.jsx(
|
|
48760
|
-
|
|
48763
|
+
ke.Input,
|
|
48761
48764
|
{
|
|
48762
48765
|
placeholder: { en: "Search...", zh: "搜索..." }[w],
|
|
48763
48766
|
value: D[_] ?? "",
|
|
@@ -48770,17 +48773,17 @@ function fI({
|
|
|
48770
48773
|
className: "pl-6 bg-transparent border-0 shadow-none focus-visible:ring-0"
|
|
48771
48774
|
}
|
|
48772
48775
|
),
|
|
48773
|
-
/* @__PURE__ */ E.jsx(
|
|
48776
|
+
/* @__PURE__ */ E.jsx(ke.icon.Search, { className: ie(
|
|
48774
48777
|
"group-data-[collapsible=icon]:hidden pointer-events-none size-4 -translate-y-1/2 opacity-50 select-none",
|
|
48775
48778
|
"absolute top-1/2 left-2"
|
|
48776
48779
|
) })
|
|
48777
48780
|
] }),
|
|
48778
|
-
/* @__PURE__ */ E.jsx(
|
|
48779
|
-
/* @__PURE__ */ E.jsx(
|
|
48781
|
+
/* @__PURE__ */ E.jsx(ke.CommandSeparator, { className: "mb-1" }),
|
|
48782
|
+
/* @__PURE__ */ E.jsx(ke.CommandGroup, { className: "max-h-[50vh] overflow-y-auto scrollbar-thin p-0", children: [...N[_]].sort(
|
|
48780
48783
|
(([I, q], [Z, ee]) => ee - q)
|
|
48781
48784
|
).map(
|
|
48782
48785
|
([I, q], Z) => /* @__PURE__ */ E.jsxs(
|
|
48783
|
-
|
|
48786
|
+
ke.CommandItem,
|
|
48784
48787
|
{
|
|
48785
48788
|
value: String(I ?? ""),
|
|
48786
48789
|
onSelect: () => {
|
|
@@ -48793,7 +48796,7 @@ function fI({
|
|
|
48793
48796
|
className: "[&>svg:last-child]:hidden",
|
|
48794
48797
|
children: [
|
|
48795
48798
|
/* @__PURE__ */ E.jsx(
|
|
48796
|
-
|
|
48799
|
+
ke.Checkbox,
|
|
48797
48800
|
{
|
|
48798
48801
|
checked: !!T[_]?.includes(I),
|
|
48799
48802
|
className: "[&_svg]:!text-primary-foreground"
|
|
@@ -48807,9 +48810,9 @@ function fI({
|
|
|
48807
48810
|
)
|
|
48808
48811
|
) }),
|
|
48809
48812
|
T[_] && T[_].length !== 0 && /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
48810
|
-
/* @__PURE__ */ E.jsx(
|
|
48813
|
+
/* @__PURE__ */ E.jsx(ke.CommandSeparator, { className: "my-1" }),
|
|
48811
48814
|
/* @__PURE__ */ E.jsx(
|
|
48812
|
-
|
|
48815
|
+
ke.CommandItem,
|
|
48813
48816
|
{
|
|
48814
48817
|
onSelect: () => {
|
|
48815
48818
|
R({ ...T, [_]: [] }), M({
|
|
@@ -48824,17 +48827,17 @@ function fI({
|
|
|
48824
48827
|
] })
|
|
48825
48828
|
] }) }) })
|
|
48826
48829
|
] }, P)),
|
|
48827
|
-
/* @__PURE__ */ E.jsxs(
|
|
48830
|
+
/* @__PURE__ */ E.jsxs(ke.DropdownMenu, { onOpenChange: () => {
|
|
48828
48831
|
A("");
|
|
48829
48832
|
}, children: [
|
|
48830
|
-
/* @__PURE__ */ E.jsx(
|
|
48831
|
-
/* @__PURE__ */ E.jsx(
|
|
48832
|
-
|
|
48833
|
+
/* @__PURE__ */ E.jsx(ke.DropdownMenuTrigger, { className: "block lg:hidden", render: /* @__PURE__ */ E.jsx(ke.Button, { variant: "outline", size: "sm" }), children: /* @__PURE__ */ E.jsx(ke.icon.GroupIcon, {}) }),
|
|
48834
|
+
/* @__PURE__ */ E.jsx(ke.DropdownMenuContent, { className: "w-48", children: i.map(({ key: _, name: V, isGroup: H }, P) => H && /* @__PURE__ */ E.jsxs(
|
|
48835
|
+
ke.DropdownMenuSub,
|
|
48833
48836
|
{
|
|
48834
48837
|
open: z === _,
|
|
48835
48838
|
children: [
|
|
48836
48839
|
/* @__PURE__ */ E.jsxs(
|
|
48837
|
-
|
|
48840
|
+
ke.DropdownMenuSubTrigger,
|
|
48838
48841
|
{
|
|
48839
48842
|
className: "[&>svg:last-child]:hidden",
|
|
48840
48843
|
onClick: (I) => {
|
|
@@ -48845,7 +48848,7 @@ function fI({
|
|
|
48845
48848
|
children: [
|
|
48846
48849
|
/* @__PURE__ */ E.jsx("span", { children: V }),
|
|
48847
48850
|
/* @__PURE__ */ E.jsx(
|
|
48848
|
-
|
|
48851
|
+
ke.icon.ChevronDown,
|
|
48849
48852
|
{
|
|
48850
48853
|
className: ie(
|
|
48851
48854
|
"ml-auto size-4 opacity-50 transition-transform duration-200",
|
|
@@ -48857,17 +48860,17 @@ function fI({
|
|
|
48857
48860
|
}
|
|
48858
48861
|
),
|
|
48859
48862
|
/* @__PURE__ */ E.jsx(
|
|
48860
|
-
|
|
48863
|
+
ke.DropdownMenuSubContent,
|
|
48861
48864
|
{
|
|
48862
48865
|
side: "bottom",
|
|
48863
48866
|
align: "end",
|
|
48864
48867
|
sideOffset: 4,
|
|
48865
48868
|
className: "w-[75vw] max-w-[320px] p-0",
|
|
48866
|
-
children: /* @__PURE__ */ E.jsx(
|
|
48867
|
-
/* @__PURE__ */ E.jsx(
|
|
48868
|
-
/* @__PURE__ */ E.jsxs(
|
|
48869
|
+
children: /* @__PURE__ */ E.jsx(ke.Command, { className: "pt-0", children: /* @__PURE__ */ E.jsxs(ke.CommandList, { className: "max-h-full", children: [
|
|
48870
|
+
/* @__PURE__ */ E.jsx(ke.CommandEmpty, { children: { en: "No content", zh: "无内容" }[w] }),
|
|
48871
|
+
/* @__PURE__ */ E.jsxs(ke.CommandItem, { className: "relative py-0.5", children: [
|
|
48869
48872
|
/* @__PURE__ */ E.jsx(
|
|
48870
|
-
|
|
48873
|
+
ke.Input,
|
|
48871
48874
|
{
|
|
48872
48875
|
placeholder: { en: "Search...", zh: "搜索..." }[w],
|
|
48873
48876
|
value: D[_] ?? "",
|
|
@@ -48880,17 +48883,17 @@ function fI({
|
|
|
48880
48883
|
className: "pl-6 bg-transparent border-0 shadow-none focus-visible:ring-0"
|
|
48881
48884
|
}
|
|
48882
48885
|
),
|
|
48883
|
-
/* @__PURE__ */ E.jsx(
|
|
48886
|
+
/* @__PURE__ */ E.jsx(ke.icon.Search, { className: ie(
|
|
48884
48887
|
"group-data-[collapsible=icon]:hidden pointer-events-none size-4 -translate-y-1/2 opacity-50 select-none",
|
|
48885
48888
|
"absolute top-1/2 left-2"
|
|
48886
48889
|
) })
|
|
48887
48890
|
] }),
|
|
48888
|
-
/* @__PURE__ */ E.jsx(
|
|
48889
|
-
/* @__PURE__ */ E.jsx(
|
|
48891
|
+
/* @__PURE__ */ E.jsx(ke.CommandSeparator, { className: "mb-1" }),
|
|
48892
|
+
/* @__PURE__ */ E.jsx(ke.CommandGroup, { className: "max-h-[50vh] overflow-y-auto scrollbar-thin p-0", children: [...N[_]].sort(
|
|
48890
48893
|
(([I, q], [Z, ee]) => ee - q)
|
|
48891
48894
|
).map(
|
|
48892
48895
|
([I, q], Z) => /* @__PURE__ */ E.jsxs(
|
|
48893
|
-
|
|
48896
|
+
ke.CommandItem,
|
|
48894
48897
|
{
|
|
48895
48898
|
value: String(I ?? ""),
|
|
48896
48899
|
onSelect: () => {
|
|
@@ -48903,7 +48906,7 @@ function fI({
|
|
|
48903
48906
|
className: "[&>svg:last-child]:hidden",
|
|
48904
48907
|
children: [
|
|
48905
48908
|
/* @__PURE__ */ E.jsx(
|
|
48906
|
-
|
|
48909
|
+
ke.Checkbox,
|
|
48907
48910
|
{
|
|
48908
48911
|
checked: !!T[_]?.includes(I),
|
|
48909
48912
|
className: "[&_svg]:!text-primary-foreground"
|
|
@@ -48917,9 +48920,9 @@ function fI({
|
|
|
48917
48920
|
)
|
|
48918
48921
|
) }),
|
|
48919
48922
|
T[_] && T[_].length !== 0 && /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
48920
|
-
/* @__PURE__ */ E.jsx(
|
|
48923
|
+
/* @__PURE__ */ E.jsx(ke.CommandSeparator, { className: "my-1" }),
|
|
48921
48924
|
/* @__PURE__ */ E.jsx(
|
|
48922
|
-
|
|
48925
|
+
ke.CommandItem,
|
|
48923
48926
|
{
|
|
48924
48927
|
onSelect: () => {
|
|
48925
48928
|
R({ ...T, [_]: [] }), M({
|
|
@@ -48943,7 +48946,7 @@ function fI({
|
|
|
48943
48946
|
g && /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
|
|
48944
48947
|
/* @__PURE__ */ E.jsxs("div", { className: "relative py-0.5 hidden lg:block", children: [
|
|
48945
48948
|
/* @__PURE__ */ E.jsx(
|
|
48946
|
-
|
|
48949
|
+
ke.Input,
|
|
48947
48950
|
{
|
|
48948
48951
|
placeholder: g.placeholder || { en: "Search...", zh: "搜索..." }[w],
|
|
48949
48952
|
value: d,
|
|
@@ -48953,21 +48956,21 @@ function fI({
|
|
|
48953
48956
|
className: "h-8 pl-[1.95rem]"
|
|
48954
48957
|
}
|
|
48955
48958
|
),
|
|
48956
|
-
/* @__PURE__ */ E.jsx(
|
|
48959
|
+
/* @__PURE__ */ E.jsx(ke.icon.Search, { className: ie(
|
|
48957
48960
|
"group-data-[collapsible=icon]:hidden pointer-events-none size-4 -translate-y-1/2 opacity-50 select-none",
|
|
48958
48961
|
"absolute top-1/2 left-2"
|
|
48959
48962
|
) })
|
|
48960
48963
|
] }),
|
|
48961
|
-
/* @__PURE__ */ E.jsxs(
|
|
48962
|
-
/* @__PURE__ */ E.jsx(
|
|
48964
|
+
/* @__PURE__ */ E.jsxs(ke.DropdownMenu, { children: [
|
|
48965
|
+
/* @__PURE__ */ E.jsx(ke.DropdownMenuTrigger, { className: "block lg:hidden", render: /* @__PURE__ */ E.jsx(ke.Button, { variant: "outline", size: "sm" }), children: /* @__PURE__ */ E.jsx(ke.icon.Search, {}) }),
|
|
48963
48966
|
/* @__PURE__ */ E.jsx(
|
|
48964
|
-
|
|
48967
|
+
ke.DropdownMenuContent,
|
|
48965
48968
|
{
|
|
48966
48969
|
sideOffset: 4,
|
|
48967
48970
|
align: "end",
|
|
48968
48971
|
className: "w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg p-0",
|
|
48969
48972
|
children: /* @__PURE__ */ E.jsx(
|
|
48970
|
-
|
|
48973
|
+
ke.Input,
|
|
48971
48974
|
{
|
|
48972
48975
|
placeholder: g.placeholder || { en: "Search...", zh: "搜索..." }[w],
|
|
48973
48976
|
value: d,
|
|
@@ -48984,7 +48987,7 @@ function fI({
|
|
|
48984
48987
|
] })
|
|
48985
48988
|
] });
|
|
48986
48989
|
}
|
|
48987
|
-
function
|
|
48990
|
+
function pI({
|
|
48988
48991
|
pageData: a,
|
|
48989
48992
|
setData: i,
|
|
48990
48993
|
headerOption: u,
|
|
@@ -48993,16 +48996,16 @@ function dI({
|
|
|
48993
48996
|
rowOption: g,
|
|
48994
48997
|
language: v
|
|
48995
48998
|
}) {
|
|
48996
|
-
const { PopupBox: b, PopupBoxTrigger: C, PopupBoxContent: T } =
|
|
48999
|
+
const { PopupBox: b, PopupBoxTrigger: C, PopupBoxContent: T } = ke.usePopupBox();
|
|
48997
49000
|
let R;
|
|
48998
|
-
return /* @__PURE__ */ E.jsx("div", { className: "rounded-lg border overflow-hidden", children: /* @__PURE__ */ E.jsxs(
|
|
49001
|
+
return /* @__PURE__ */ E.jsx("div", { className: "rounded-lg border overflow-hidden", children: /* @__PURE__ */ E.jsxs(ke.Table, { className: ie(
|
|
48999
49002
|
"[&_th]:py-1.5 [&_td]:py-3 md:[&_th]:py-2 md:[&_td]:py-3.5",
|
|
49000
49003
|
d && "[&_th:first-child]:w-8 [&_td:first-child]:w-8",
|
|
49001
49004
|
g && "[&_th:last-child]:w-16 [&_td:last-child]:w-16"
|
|
49002
49005
|
), children: [
|
|
49003
|
-
/* @__PURE__ */ E.jsx(
|
|
49004
|
-
d && /* @__PURE__ */ E.jsx(
|
|
49005
|
-
|
|
49006
|
+
/* @__PURE__ */ E.jsx(ke.TableHeader, { className: "sticky top-0 z-10 bg-muted", children: /* @__PURE__ */ E.jsxs(ke.TableRow, { children: [
|
|
49007
|
+
d && /* @__PURE__ */ E.jsx(ke.TableHead, { className: "pl-2 md:pl-3", children: /* @__PURE__ */ E.jsx(
|
|
49008
|
+
ke.Checkbox,
|
|
49006
49009
|
{
|
|
49007
49010
|
checked: a.length !== 0 && a.every((w) => d.includes(w)),
|
|
49008
49011
|
onCheckedChange: (w) => {
|
|
@@ -49012,12 +49015,12 @@ function dI({
|
|
|
49012
49015
|
}
|
|
49013
49016
|
) }),
|
|
49014
49017
|
u.map(
|
|
49015
|
-
({ key: w, name: D, isHide: M, isSort: N, sortMethod: z }, A) => !M && /* @__PURE__ */ E.jsx(
|
|
49018
|
+
({ key: w, name: D, isHide: M, isSort: N, sortMethod: z }, A) => !M && /* @__PURE__ */ E.jsx(ke.TableHead, { className: "overflow-hidden", children: N ? /* @__PURE__ */ E.jsxs(ke.DropdownMenu, { children: [
|
|
49016
49019
|
/* @__PURE__ */ E.jsxs(
|
|
49017
|
-
|
|
49020
|
+
ke.DropdownMenuTrigger,
|
|
49018
49021
|
{
|
|
49019
49022
|
render: /* @__PURE__ */ E.jsx(
|
|
49020
|
-
|
|
49023
|
+
ke.Button,
|
|
49021
49024
|
{
|
|
49022
49025
|
variant: "ghost",
|
|
49023
49026
|
size: "sm",
|
|
@@ -49029,35 +49032,35 @@ function dI({
|
|
|
49029
49032
|
),
|
|
49030
49033
|
children: [
|
|
49031
49034
|
/* @__PURE__ */ E.jsx("span", { children: D }),
|
|
49032
|
-
/* @__PURE__ */ E.jsx(
|
|
49035
|
+
/* @__PURE__ */ E.jsx(ke.icon.ChevronsUpDown, {})
|
|
49033
49036
|
]
|
|
49034
49037
|
}
|
|
49035
49038
|
),
|
|
49036
|
-
/* @__PURE__ */ E.jsxs(
|
|
49037
|
-
/* @__PURE__ */ E.jsxs(
|
|
49039
|
+
/* @__PURE__ */ E.jsxs(ke.DropdownMenuContent, { align: "start", className: "w-auto", children: [
|
|
49040
|
+
/* @__PURE__ */ E.jsxs(ke.DropdownMenuItem, { onClick: () => {
|
|
49038
49041
|
i((U) => z ? [...U].sort(z) : rC(U, "asc", w));
|
|
49039
49042
|
}, children: [
|
|
49040
|
-
/* @__PURE__ */ E.jsx(
|
|
49043
|
+
/* @__PURE__ */ E.jsx(ke.icon.ChevronUp, {}),
|
|
49041
49044
|
/* @__PURE__ */ E.jsx("span", { children: { en: "Asc", zh: "升序" }[v] })
|
|
49042
49045
|
] }),
|
|
49043
|
-
/* @__PURE__ */ E.jsxs(
|
|
49046
|
+
/* @__PURE__ */ E.jsxs(ke.DropdownMenuItem, { onClick: () => {
|
|
49044
49047
|
i((U) => z ? [...U].sort(z).reverse() : rC(U, "desc", w));
|
|
49045
49048
|
}, children: [
|
|
49046
|
-
/* @__PURE__ */ E.jsx(
|
|
49049
|
+
/* @__PURE__ */ E.jsx(ke.icon.ChevronDown, {}),
|
|
49047
49050
|
/* @__PURE__ */ E.jsx("span", { children: { en: "Desc", zh: "降序" }[v] })
|
|
49048
49051
|
] })
|
|
49049
49052
|
] })
|
|
49050
49053
|
] }) : D }, A)
|
|
49051
49054
|
),
|
|
49052
|
-
g && /* @__PURE__ */ E.jsx(
|
|
49055
|
+
g && /* @__PURE__ */ E.jsx(ke.TableHead, {})
|
|
49053
49056
|
] }) }),
|
|
49054
|
-
/* @__PURE__ */ E.jsx(
|
|
49055
|
-
|
|
49057
|
+
/* @__PURE__ */ E.jsx(ke.TableBody, { children: a.map((w, D) => /* @__PURE__ */ E.jsxs(
|
|
49058
|
+
ke.TableRow,
|
|
49056
49059
|
{
|
|
49057
49060
|
className: d && d.includes(w) ? "bg-muted/50" : "",
|
|
49058
49061
|
children: [
|
|
49059
|
-
d && /* @__PURE__ */ E.jsx(
|
|
49060
|
-
|
|
49062
|
+
d && /* @__PURE__ */ E.jsx(ke.TableCell, { className: "pl-2 md:pl-3", children: /* @__PURE__ */ E.jsx(
|
|
49063
|
+
ke.Checkbox,
|
|
49061
49064
|
{
|
|
49062
49065
|
checked: d.includes(w),
|
|
49063
49066
|
onCheckedChange: (M) => {
|
|
@@ -49065,23 +49068,23 @@ function dI({
|
|
|
49065
49068
|
}
|
|
49066
49069
|
}
|
|
49067
49070
|
) }),
|
|
49068
|
-
u.map(({ key: M, isHide: N }, z) => !N && /* @__PURE__ */ E.jsx(
|
|
49071
|
+
u.map(({ key: M, isHide: N }, z) => !N && /* @__PURE__ */ E.jsx(ke.TableCell, { className: "overflow-hidden whitespace-nowrap max-w-xs truncate", children: /* @__PURE__ */ E.jsxs(b, { children: [
|
|
49069
49072
|
/* @__PURE__ */ E.jsx(C, { children: rA(w[M]) }),
|
|
49070
49073
|
/* @__PURE__ */ E.jsx(T, { align: "start", sideOffset: -34, alignOffset: -16, className: "break-all", children: rA(w[M]) })
|
|
49071
49074
|
] }) }, z)),
|
|
49072
|
-
g && /* @__PURE__ */ E.jsx(
|
|
49073
|
-
/* @__PURE__ */ E.jsx(
|
|
49074
|
-
|
|
49075
|
+
g && /* @__PURE__ */ E.jsx(ke.TableCell, { className: "overflow-hidden", children: /* @__PURE__ */ E.jsxs(ke.DropdownMenu, { modal: !1, children: [
|
|
49076
|
+
/* @__PURE__ */ E.jsx(ke.DropdownMenuTrigger, { render: /* @__PURE__ */ E.jsx(
|
|
49077
|
+
ke.Button,
|
|
49075
49078
|
{
|
|
49076
49079
|
variant: "ghost",
|
|
49077
49080
|
className: "flex size-4 text-muted-foreground data-[state=open]:bg-muted",
|
|
49078
49081
|
size: "icon"
|
|
49079
49082
|
}
|
|
49080
|
-
), children: /* @__PURE__ */ E.jsx(
|
|
49081
|
-
/* @__PURE__ */ E.jsxs(
|
|
49083
|
+
), children: /* @__PURE__ */ E.jsx(ke.icon.EllipsisVertical, {}) }),
|
|
49084
|
+
/* @__PURE__ */ E.jsxs(ke.DropdownMenuContent, { align: "end", className: "w-auto", children: [
|
|
49082
49085
|
(R = typeof g == "function" ? g(w) : g).options && Object.entries(R.options).map(
|
|
49083
49086
|
([M, N], z) => /* @__PURE__ */ E.jsx(
|
|
49084
|
-
|
|
49087
|
+
ke.DropdownMenuItem,
|
|
49085
49088
|
{
|
|
49086
49089
|
onClick: () => {
|
|
49087
49090
|
N && N(w);
|
|
@@ -49092,10 +49095,10 @@ function dI({
|
|
|
49092
49095
|
z
|
|
49093
49096
|
)
|
|
49094
49097
|
),
|
|
49095
|
-
R.options && R.destructiveOptions && /* @__PURE__ */ E.jsx(
|
|
49098
|
+
R.options && R.destructiveOptions && /* @__PURE__ */ E.jsx(ke.DropdownMenuSeparator, {}),
|
|
49096
49099
|
R.destructiveOptions && Object.entries(R.destructiveOptions).map(
|
|
49097
49100
|
([M, N], z) => /* @__PURE__ */ E.jsx(
|
|
49098
|
-
|
|
49101
|
+
ke.DropdownMenuItem,
|
|
49099
49102
|
{
|
|
49100
49103
|
variant: "destructive",
|
|
49101
49104
|
onClick: () => {
|
|
@@ -49115,7 +49118,7 @@ function dI({
|
|
|
49115
49118
|
)) })
|
|
49116
49119
|
] }) });
|
|
49117
49120
|
}
|
|
49118
|
-
function
|
|
49121
|
+
function mI({
|
|
49119
49122
|
total: a,
|
|
49120
49123
|
pageSize: i,
|
|
49121
49124
|
setPageSize: u,
|
|
@@ -49131,9 +49134,9 @@ function pI({
|
|
|
49131
49134
|
/* @__PURE__ */ E.jsx("div", { className: "hidden flex-1 text-sm text-muted-foreground lg:flex", children: g ? { en: `${g.length} / ${a} row(s) selected`, zh: `已选择 ${g.length} / ${a} 条` }[v] : { en: `${a} row(s)`, zh: `共 ${a} 条` }[v] }),
|
|
49132
49135
|
/* @__PURE__ */ E.jsxs("div", { className: "flex w-full items-center gap-8 lg:w-fit", children: [
|
|
49133
49136
|
/* @__PURE__ */ E.jsxs("div", { className: "hidden items-center gap-2 lg:flex", children: [
|
|
49134
|
-
/* @__PURE__ */ E.jsx(
|
|
49137
|
+
/* @__PURE__ */ E.jsx(ke.Label, { htmlFor: "rows-per-page", className: "text-sm font-medium", children: { en: "Per page", zh: "每页" }[v] }),
|
|
49135
49138
|
/* @__PURE__ */ E.jsxs(
|
|
49136
|
-
|
|
49139
|
+
ke.Combobox,
|
|
49137
49140
|
{
|
|
49138
49141
|
items: M,
|
|
49139
49142
|
value: `${i}`,
|
|
@@ -49142,7 +49145,7 @@ function pI({
|
|
|
49142
49145
|
},
|
|
49143
49146
|
children: [
|
|
49144
49147
|
/* @__PURE__ */ E.jsx(
|
|
49145
|
-
|
|
49148
|
+
ke.ComboboxInput,
|
|
49146
49149
|
{
|
|
49147
49150
|
id: "rows-per-page",
|
|
49148
49151
|
value: b,
|
|
@@ -49159,16 +49162,16 @@ function pI({
|
|
|
49159
49162
|
className: "w-13 h-8"
|
|
49160
49163
|
}
|
|
49161
49164
|
),
|
|
49162
|
-
/* @__PURE__ */ E.jsx(
|
|
49165
|
+
/* @__PURE__ */ E.jsx(ke.ComboboxContent, { side: "top", className: "max-h-60 overflow-y-auto", children: /* @__PURE__ */ E.jsx(ke.ComboboxList, { children: (z, A) => /* @__PURE__ */ E.jsx(ke.ComboboxItem, { value: z, children: z }, A) }) })
|
|
49163
49166
|
]
|
|
49164
49167
|
}
|
|
49165
49168
|
),
|
|
49166
|
-
/* @__PURE__ */ E.jsx(
|
|
49169
|
+
/* @__PURE__ */ E.jsx(ke.Label, { htmlFor: "rows-per-page", className: "text-sm font-medium", children: { en: "rows", zh: "条" }[v] })
|
|
49167
49170
|
] }),
|
|
49168
49171
|
/* @__PURE__ */ E.jsx("div", { className: "flex w-fit items-center justify-center text-sm font-medium", children: /* @__PURE__ */ E.jsxs("div", { className: "ml-auto flex items-center gap-2 lg:ml-0", children: [
|
|
49169
|
-
/* @__PURE__ */ E.jsx(
|
|
49172
|
+
/* @__PURE__ */ E.jsx(ke.Label, { htmlFor: "jump-page", className: "text-sm font-medium", children: { en: "Page", zh: "第" }[v] }),
|
|
49170
49173
|
/* @__PURE__ */ E.jsxs(
|
|
49171
|
-
|
|
49174
|
+
ke.Combobox,
|
|
49172
49175
|
{
|
|
49173
49176
|
items: N,
|
|
49174
49177
|
value: `${d}`,
|
|
@@ -49177,7 +49180,7 @@ function pI({
|
|
|
49177
49180
|
},
|
|
49178
49181
|
children: [
|
|
49179
49182
|
/* @__PURE__ */ E.jsx(
|
|
49180
|
-
|
|
49183
|
+
ke.ComboboxInput,
|
|
49181
49184
|
{
|
|
49182
49185
|
id: "jump-page",
|
|
49183
49186
|
value: T,
|
|
@@ -49194,15 +49197,15 @@ function pI({
|
|
|
49194
49197
|
className: "w-13 h-8"
|
|
49195
49198
|
}
|
|
49196
49199
|
),
|
|
49197
|
-
/* @__PURE__ */ E.jsx(
|
|
49200
|
+
/* @__PURE__ */ E.jsx(ke.ComboboxContent, { side: "top", className: "max-h-60 overflow-y-auto", children: /* @__PURE__ */ E.jsx(ke.ComboboxList, { children: (z, A) => /* @__PURE__ */ E.jsx(ke.ComboboxItem, { value: z, children: z }, A) }) })
|
|
49198
49201
|
]
|
|
49199
49202
|
}
|
|
49200
49203
|
),
|
|
49201
|
-
/* @__PURE__ */ E.jsx(
|
|
49204
|
+
/* @__PURE__ */ E.jsx(ke.Label, { htmlFor: "jump-page", className: "text-sm font-medium", children: { en: ` of ${w}`, zh: ` / ${w} 页` }[v] })
|
|
49202
49205
|
] }) }),
|
|
49203
49206
|
/* @__PURE__ */ E.jsxs("div", { className: "ml-auto flex items-center gap-2 lg:ml-0", children: [
|
|
49204
49207
|
/* @__PURE__ */ E.jsx(
|
|
49205
|
-
|
|
49208
|
+
ke.Button,
|
|
49206
49209
|
{
|
|
49207
49210
|
variant: "outline",
|
|
49208
49211
|
className: "hidden h-8 w-8 p-0 lg:flex",
|
|
@@ -49210,11 +49213,11 @@ function pI({
|
|
|
49210
49213
|
m(1);
|
|
49211
49214
|
},
|
|
49212
49215
|
disabled: d === 1,
|
|
49213
|
-
children: /* @__PURE__ */ E.jsx(
|
|
49216
|
+
children: /* @__PURE__ */ E.jsx(ke.icon.ChevronsLeft, {})
|
|
49214
49217
|
}
|
|
49215
49218
|
),
|
|
49216
49219
|
/* @__PURE__ */ E.jsx(
|
|
49217
|
-
|
|
49220
|
+
ke.Button,
|
|
49218
49221
|
{
|
|
49219
49222
|
variant: "outline",
|
|
49220
49223
|
className: "size-8",
|
|
@@ -49223,11 +49226,11 @@ function pI({
|
|
|
49223
49226
|
m(d - 1);
|
|
49224
49227
|
},
|
|
49225
49228
|
disabled: d === 1,
|
|
49226
|
-
children: /* @__PURE__ */ E.jsx(
|
|
49229
|
+
children: /* @__PURE__ */ E.jsx(ke.icon.ChevronLeft, {})
|
|
49227
49230
|
}
|
|
49228
49231
|
),
|
|
49229
49232
|
/* @__PURE__ */ E.jsx(
|
|
49230
|
-
|
|
49233
|
+
ke.Button,
|
|
49231
49234
|
{
|
|
49232
49235
|
variant: "outline",
|
|
49233
49236
|
className: "size-8",
|
|
@@ -49236,11 +49239,11 @@ function pI({
|
|
|
49236
49239
|
m(d + 1);
|
|
49237
49240
|
},
|
|
49238
49241
|
disabled: d === w,
|
|
49239
|
-
children: /* @__PURE__ */ E.jsx(
|
|
49242
|
+
children: /* @__PURE__ */ E.jsx(ke.icon.ChevronRight, {})
|
|
49240
49243
|
}
|
|
49241
49244
|
),
|
|
49242
49245
|
/* @__PURE__ */ E.jsx(
|
|
49243
|
-
|
|
49246
|
+
ke.Button,
|
|
49244
49247
|
{
|
|
49245
49248
|
variant: "outline",
|
|
49246
49249
|
className: "hidden size-8 lg:flex",
|
|
@@ -49249,7 +49252,7 @@ function pI({
|
|
|
49249
49252
|
m(w);
|
|
49250
49253
|
},
|
|
49251
49254
|
disabled: d === w,
|
|
49252
|
-
children: /* @__PURE__ */ E.jsx(
|
|
49255
|
+
children: /* @__PURE__ */ E.jsx(ke.icon.ChevronsRight, {})
|
|
49253
49256
|
}
|
|
49254
49257
|
)
|
|
49255
49258
|
] })
|
|
@@ -49259,7 +49262,7 @@ function pI({
|
|
|
49259
49262
|
function rA(a) {
|
|
49260
49263
|
return y4(a) ? a : a instanceof Date ? a.toLocaleString() : a == null ? "" : typeof a == "object" ? JSON.stringify(a) : String(a);
|
|
49261
49264
|
}
|
|
49262
|
-
function
|
|
49265
|
+
function hI({
|
|
49263
49266
|
openIcon: a,
|
|
49264
49267
|
closeIcon: i,
|
|
49265
49268
|
tooltip: u,
|
|
@@ -49307,32 +49310,32 @@ function mI({
|
|
|
49307
49310
|
]
|
|
49308
49311
|
}
|
|
49309
49312
|
);
|
|
49310
|
-
return u ? /* @__PURE__ */ E.jsxs(
|
|
49311
|
-
/* @__PURE__ */ E.jsx(
|
|
49312
|
-
/* @__PURE__ */ E.jsx(
|
|
49313
|
+
return u ? /* @__PURE__ */ E.jsxs(ke.Tooltip, { children: [
|
|
49314
|
+
/* @__PURE__ */ E.jsx(ke.TooltipTrigger, { render: A }),
|
|
49315
|
+
/* @__PURE__ */ E.jsx(ke.TooltipContent, { side: d, children: u })
|
|
49313
49316
|
] }) : A;
|
|
49314
49317
|
}
|
|
49315
|
-
const
|
|
49318
|
+
const gI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
49316
49319
|
__proto__: null,
|
|
49317
|
-
Breadcrumb:
|
|
49318
|
-
CycleButton:
|
|
49319
|
-
Form:
|
|
49320
|
-
IconToggle:
|
|
49321
|
-
Loading:
|
|
49322
|
-
Notice:
|
|
49323
|
-
Table:
|
|
49320
|
+
Breadcrumb: aI,
|
|
49321
|
+
CycleButton: oI,
|
|
49322
|
+
Form: lI,
|
|
49323
|
+
IconToggle: hI,
|
|
49324
|
+
Loading: iI,
|
|
49325
|
+
Notice: sI,
|
|
49326
|
+
Table: fI,
|
|
49324
49327
|
notice: V4,
|
|
49325
|
-
ui:
|
|
49326
|
-
useLoading:
|
|
49328
|
+
ui: ke,
|
|
49329
|
+
useLoading: rI
|
|
49327
49330
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
49328
|
-
function
|
|
49331
|
+
function yI() {
|
|
49329
49332
|
document.documentElement.classList.add("debug");
|
|
49330
49333
|
}
|
|
49331
|
-
const
|
|
49334
|
+
const vI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
49332
49335
|
__proto__: null,
|
|
49333
|
-
debugCss:
|
|
49336
|
+
debugCss: yI
|
|
49334
49337
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
49335
|
-
class
|
|
49338
|
+
class bI {
|
|
49336
49339
|
/**
|
|
49337
49340
|
* Build instance.
|
|
49338
49341
|
*
|
|
@@ -49433,9 +49436,9 @@ function kj(a, i) {
|
|
|
49433
49436
|
const u = a instanceof Blob ? window.URL.createObjectURL(a) : a, d = document.createElement("a");
|
|
49434
49437
|
d.download = i, d.href = u, d.style.display = "none", document.body.appendChild(d), d.click(), d.remove(), a instanceof Blob && URL.revokeObjectURL(u);
|
|
49435
49438
|
}
|
|
49436
|
-
const
|
|
49439
|
+
const xI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
49437
49440
|
__proto__: null,
|
|
49438
|
-
Storager:
|
|
49441
|
+
Storager: bI,
|
|
49439
49442
|
downloadFile: kj,
|
|
49440
49443
|
openFile: Yj
|
|
49441
49444
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -49443,15 +49446,15 @@ async function K1(a, i) {
|
|
|
49443
49446
|
const u = i && i.width, d = (i && i.margin) ?? 0;
|
|
49444
49447
|
return await H4.toDataURL(a, { width: u, margin: d });
|
|
49445
49448
|
}
|
|
49446
|
-
async function
|
|
49449
|
+
async function SI(a, i) {
|
|
49447
49450
|
const u = await K1(a, i), m = await (await fetch(u)).blob();
|
|
49448
49451
|
return Yj(m), u;
|
|
49449
49452
|
}
|
|
49450
|
-
async function
|
|
49453
|
+
async function EI(a, i) {
|
|
49451
49454
|
const u = await K1(a, i), d = (i && i.fileName) ?? "qrcode.png", g = await (await fetch(u)).blob();
|
|
49452
49455
|
return kj(g, d), u;
|
|
49453
49456
|
}
|
|
49454
|
-
async function
|
|
49457
|
+
async function RI(a, i, u) {
|
|
49455
49458
|
const d = await K1(a, u);
|
|
49456
49459
|
if (typeof i == "string") {
|
|
49457
49460
|
const m = document.getElementById(i);
|
|
@@ -49460,14 +49463,14 @@ async function EI(a, i, u) {
|
|
|
49460
49463
|
}
|
|
49461
49464
|
return i.setAttribute("src", d), d;
|
|
49462
49465
|
}
|
|
49463
|
-
const
|
|
49466
|
+
const TI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
49464
49467
|
__proto__: null,
|
|
49465
|
-
downloadQrcode:
|
|
49468
|
+
downloadQrcode: EI,
|
|
49466
49469
|
getQrcode: K1,
|
|
49467
|
-
openQrcode:
|
|
49468
|
-
setQrcode:
|
|
49470
|
+
openQrcode: SI,
|
|
49471
|
+
setQrcode: RI
|
|
49469
49472
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
49470
|
-
async function
|
|
49473
|
+
async function CI(a, i) {
|
|
49471
49474
|
let {
|
|
49472
49475
|
params: u,
|
|
49473
49476
|
body: d,
|
|
@@ -49502,27 +49505,28 @@ async function TI(a, i) {
|
|
|
49502
49505
|
}
|
|
49503
49506
|
return C;
|
|
49504
49507
|
}
|
|
49505
|
-
const
|
|
49508
|
+
const OI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
49506
49509
|
__proto__: null,
|
|
49507
|
-
request:
|
|
49508
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
49510
|
+
request: CI
|
|
49511
|
+
}, Symbol.toStringTag, { value: "Module" })), wI = /^((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/, NI = /^https?:\/\/[^\s/$.?#].[^\s]*$/, MI = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/, AI = /^1[3-9]\d{9}$/, DI = /^[\u4e00-\u9fa5]+$/, zI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
49509
49512
|
__proto__: null,
|
|
49510
|
-
PATTERN_CN:
|
|
49511
|
-
PATTERN_EMAIL:
|
|
49512
|
-
PATTERN_IP:
|
|
49513
|
-
PATTERN_PHONE:
|
|
49514
|
-
PATTERN_URL:
|
|
49515
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
49516
|
-
component:
|
|
49517
|
-
|
|
49518
|
-
|
|
49519
|
-
|
|
49520
|
-
|
|
49521
|
-
|
|
49513
|
+
PATTERN_CN: DI,
|
|
49514
|
+
PATTERN_EMAIL: MI,
|
|
49515
|
+
PATTERN_IP: wI,
|
|
49516
|
+
PATTERN_PHONE: AI,
|
|
49517
|
+
PATTERN_URL: NI
|
|
49518
|
+
}, Symbol.toStringTag, { value: "Module" })), KI = {
|
|
49519
|
+
component: gI,
|
|
49520
|
+
ui: nI,
|
|
49521
|
+
base: vI,
|
|
49522
|
+
data: cI,
|
|
49523
|
+
image: TI,
|
|
49524
|
+
net: OI,
|
|
49525
|
+
re: zI,
|
|
49522
49526
|
react: $4,
|
|
49523
49527
|
twc: O5,
|
|
49524
|
-
window:
|
|
49528
|
+
window: xI
|
|
49525
49529
|
};
|
|
49526
49530
|
export {
|
|
49527
|
-
|
|
49531
|
+
KI as default
|
|
49528
49532
|
};
|