@espresso-lab/mantine-data-table 2.0.2 → 2.0.4
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.es.js +802 -792
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -34,9 +34,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
34
34
|
};
|
|
35
35
|
})()), Ur;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var En;
|
|
38
38
|
function Ro() {
|
|
39
|
-
return
|
|
39
|
+
return En || (En = 1, process.env.NODE_ENV === "production" ? cr.exports = Po() : cr.exports = Mo()), cr.exports;
|
|
40
40
|
}
|
|
41
41
|
var Ye = Ro(), wr = class {
|
|
42
42
|
constructor() {
|
|
@@ -69,7 +69,7 @@ var Ye = Ro(), wr = class {
|
|
|
69
69
|
clearTimeout: (t) => clearTimeout(t),
|
|
70
70
|
setInterval: (t, e) => setInterval(t, e),
|
|
71
71
|
clearInterval: (t) => clearInterval(t)
|
|
72
|
-
},
|
|
72
|
+
}, Eo = class {
|
|
73
73
|
// We cannot have TimeoutManager<T> as we must instantiate it with a concrete
|
|
74
74
|
// type at app boot; and if we leave that type, then any new timer provider
|
|
75
75
|
// would need to support ReturnType<typeof setTimeout>, which is infeasible.
|
|
@@ -96,14 +96,14 @@ var Ye = Ro(), wr = class {
|
|
|
96
96
|
clearInterval(t) {
|
|
97
97
|
this.#t.clearInterval(t);
|
|
98
98
|
}
|
|
99
|
-
}, ur = new
|
|
100
|
-
function
|
|
99
|
+
}, ur = new Eo();
|
|
100
|
+
function To(t) {
|
|
101
101
|
setTimeout(t, 0);
|
|
102
102
|
}
|
|
103
103
|
var nr = typeof window > "u" || "Deno" in globalThis;
|
|
104
104
|
function br() {
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Tn(t) {
|
|
107
107
|
return typeof t == "number" && t >= 0 && t !== 1 / 0;
|
|
108
108
|
}
|
|
109
109
|
function Lo(t, e) {
|
|
@@ -247,7 +247,7 @@ function Yn() {
|
|
|
247
247
|
}), e(s);
|
|
248
248
|
}, r;
|
|
249
249
|
}
|
|
250
|
-
var Yo =
|
|
250
|
+
var Yo = To;
|
|
251
251
|
function Io() {
|
|
252
252
|
let t = [], e = 0, r = (a) => {
|
|
253
253
|
a();
|
|
@@ -472,7 +472,7 @@ var Bo = class extends wr {
|
|
|
472
472
|
this.options.staleTime,
|
|
473
473
|
this.#e
|
|
474
474
|
);
|
|
475
|
-
if (nr || this.#n.isStale || !
|
|
475
|
+
if (nr || this.#n.isStale || !Tn(t))
|
|
476
476
|
return;
|
|
477
477
|
const r = Lo(this.#n.dataUpdatedAt, t) + 1;
|
|
478
478
|
this.#c = ur.setTimeout(() => {
|
|
@@ -483,7 +483,7 @@ var Bo = class extends wr {
|
|
|
483
483
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#e) : this.options.refetchInterval) ?? !1;
|
|
484
484
|
}
|
|
485
485
|
#y(t) {
|
|
486
|
-
this.#C(), this.#l = t, !(nr || et(this.options.enabled, this.#e) === !1 || !
|
|
486
|
+
this.#C(), this.#l = t, !(nr || et(this.options.enabled, this.#e) === !1 || !Tn(this.#l) || this.#l === 0) && (this.#u = ur.setInterval(() => {
|
|
487
487
|
(this.options.refetchIntervalInBackground || $o.isFocused()) && this.#d();
|
|
488
488
|
}, this.#l));
|
|
489
489
|
}
|
|
@@ -508,10 +508,10 @@ var Bo = class extends wr {
|
|
|
508
508
|
}
|
|
509
509
|
let { error: m, errorUpdatedAt: b, status: D } = h;
|
|
510
510
|
f = h.data;
|
|
511
|
-
let
|
|
511
|
+
let T = !1;
|
|
512
512
|
if (e.placeholderData !== void 0 && f === void 0 && D === "pending") {
|
|
513
513
|
let O;
|
|
514
|
-
s?.isPlaceholderData && e.placeholderData === i?.placeholderData ? (O = s.data,
|
|
514
|
+
s?.isPlaceholderData && e.placeholderData === i?.placeholderData ? (O = s.data, T = !0) : O = typeof e.placeholderData == "function" ? e.placeholderData(
|
|
515
515
|
this.#f?.state.data,
|
|
516
516
|
this.#f
|
|
517
517
|
) : e.placeholderData, O !== void 0 && (D = "success", f = $n(
|
|
@@ -520,7 +520,7 @@ var Bo = class extends wr {
|
|
|
520
520
|
e
|
|
521
521
|
), p = !0);
|
|
522
522
|
}
|
|
523
|
-
if (e.select && f !== void 0 && !
|
|
523
|
+
if (e.select && f !== void 0 && !T)
|
|
524
524
|
if (s && f === l?.data && e.select === this.#p)
|
|
525
525
|
f = this.#h;
|
|
526
526
|
else
|
|
@@ -530,12 +530,12 @@ var Bo = class extends wr {
|
|
|
530
530
|
this.#i = O;
|
|
531
531
|
}
|
|
532
532
|
this.#i && (m = this.#i, f = this.#h, b = Date.now(), D = "error");
|
|
533
|
-
const $ = h.fetchStatus === "fetching", Y = D === "pending",
|
|
533
|
+
const $ = h.fetchStatus === "fetching", Y = D === "pending", W = D === "error", L = Y && $, A = f !== void 0, M = {
|
|
534
534
|
status: D,
|
|
535
535
|
fetchStatus: h.fetchStatus,
|
|
536
536
|
isPending: Y,
|
|
537
537
|
isSuccess: D === "success",
|
|
538
|
-
isError:
|
|
538
|
+
isError: W,
|
|
539
539
|
isInitialLoading: L,
|
|
540
540
|
isLoading: L,
|
|
541
541
|
data: f,
|
|
@@ -549,10 +549,10 @@ var Bo = class extends wr {
|
|
|
549
549
|
isFetchedAfterMount: h.dataUpdateCount > c.dataUpdateCount || h.errorUpdateCount > c.errorUpdateCount,
|
|
550
550
|
isFetching: $,
|
|
551
551
|
isRefetching: $ && !Y,
|
|
552
|
-
isLoadingError:
|
|
552
|
+
isLoadingError: W && !A,
|
|
553
553
|
isPaused: h.fetchStatus === "paused",
|
|
554
554
|
isPlaceholderData: p,
|
|
555
|
-
isRefetchError:
|
|
555
|
+
isRefetchError: W && A,
|
|
556
556
|
isStale: ln(t, e),
|
|
557
557
|
refetch: this.refetch,
|
|
558
558
|
promise: this.#a,
|
|
@@ -561,7 +561,7 @@ var Bo = class extends wr {
|
|
|
561
561
|
if (this.options.experimental_prefetchInRender) {
|
|
562
562
|
const O = M.data !== void 0, _ = M.status === "error" && !O, k = (R) => {
|
|
563
563
|
_ ? R.reject(M.error) : O && R.resolve(M.data);
|
|
564
|
-
},
|
|
564
|
+
}, E = () => {
|
|
565
565
|
const R = this.#a = M.promise = Yn();
|
|
566
566
|
k(R);
|
|
567
567
|
}, I = this.#a;
|
|
@@ -570,10 +570,10 @@ var Bo = class extends wr {
|
|
|
570
570
|
t.queryHash === r.queryHash && k(I);
|
|
571
571
|
break;
|
|
572
572
|
case "fulfilled":
|
|
573
|
-
(_ || M.data !== I.value) &&
|
|
573
|
+
(_ || M.data !== I.value) && E();
|
|
574
574
|
break;
|
|
575
575
|
case "rejected":
|
|
576
|
-
(!_ || M.error !== I.reason) &&
|
|
576
|
+
(!_ || M.error !== I.reason) && E();
|
|
577
577
|
break;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
@@ -791,10 +791,10 @@ function Ko() {
|
|
|
791
791
|
function t(u) {
|
|
792
792
|
if (u == null) return null;
|
|
793
793
|
if (typeof u == "function")
|
|
794
|
-
return u.$$typeof ===
|
|
794
|
+
return u.$$typeof === E ? null : u.displayName || u.name || null;
|
|
795
795
|
if (typeof u == "string") return u;
|
|
796
796
|
switch (u) {
|
|
797
|
-
case
|
|
797
|
+
case T:
|
|
798
798
|
return "Fragment";
|
|
799
799
|
case Y:
|
|
800
800
|
return "Profiler";
|
|
@@ -815,17 +815,17 @@ function Ko() {
|
|
|
815
815
|
return "Portal";
|
|
816
816
|
case L:
|
|
817
817
|
return u.displayName || "Context";
|
|
818
|
-
case
|
|
818
|
+
case W:
|
|
819
819
|
return (u._context.displayName || "Context") + ".Consumer";
|
|
820
820
|
case A:
|
|
821
|
-
var
|
|
822
|
-
return u = u.displayName, u || (u =
|
|
821
|
+
var w = u.render;
|
|
822
|
+
return u = u.displayName, u || (u = w.displayName || w.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
|
|
823
823
|
case O:
|
|
824
|
-
return
|
|
824
|
+
return w = u.displayName || null, w !== null ? w : t(u.type) || "Memo";
|
|
825
825
|
case _:
|
|
826
|
-
|
|
826
|
+
w = u._payload, u = u._init;
|
|
827
827
|
try {
|
|
828
|
-
return t(u(
|
|
828
|
+
return t(u(w));
|
|
829
829
|
} catch {
|
|
830
830
|
}
|
|
831
831
|
}
|
|
@@ -837,27 +837,27 @@ function Ko() {
|
|
|
837
837
|
function r(u) {
|
|
838
838
|
try {
|
|
839
839
|
e(u);
|
|
840
|
-
var
|
|
840
|
+
var w = !1;
|
|
841
841
|
} catch {
|
|
842
|
-
|
|
842
|
+
w = !0;
|
|
843
843
|
}
|
|
844
|
-
if (
|
|
845
|
-
|
|
846
|
-
var
|
|
847
|
-
return
|
|
848
|
-
|
|
844
|
+
if (w) {
|
|
845
|
+
w = console;
|
|
846
|
+
var C = w.error, F = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
847
|
+
return C.call(
|
|
848
|
+
w,
|
|
849
849
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
850
|
-
|
|
850
|
+
F
|
|
851
851
|
), e(u);
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
function n(u) {
|
|
855
|
-
if (u ===
|
|
855
|
+
if (u === T) return "<>";
|
|
856
856
|
if (typeof u == "object" && u !== null && u.$$typeof === _)
|
|
857
857
|
return "<...>";
|
|
858
858
|
try {
|
|
859
|
-
var
|
|
860
|
-
return
|
|
859
|
+
var w = t(u);
|
|
860
|
+
return w ? "<" + w + ">" : "<...>";
|
|
861
861
|
} catch {
|
|
862
862
|
return "<...>";
|
|
863
863
|
}
|
|
@@ -871,20 +871,20 @@ function Ko() {
|
|
|
871
871
|
}
|
|
872
872
|
function i(u) {
|
|
873
873
|
if (R.call(u, "key")) {
|
|
874
|
-
var
|
|
875
|
-
if (
|
|
874
|
+
var w = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
875
|
+
if (w && w.isReactWarning) return !1;
|
|
876
876
|
}
|
|
877
877
|
return u.key !== void 0;
|
|
878
878
|
}
|
|
879
|
-
function a(u,
|
|
880
|
-
function
|
|
879
|
+
function a(u, w) {
|
|
880
|
+
function C() {
|
|
881
881
|
y || (y = !0, console.error(
|
|
882
882
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
883
|
-
|
|
883
|
+
w
|
|
884
884
|
));
|
|
885
885
|
}
|
|
886
|
-
|
|
887
|
-
get:
|
|
886
|
+
C.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
887
|
+
get: C,
|
|
888
888
|
configurable: !0
|
|
889
889
|
});
|
|
890
890
|
}
|
|
@@ -894,14 +894,14 @@ function Ko() {
|
|
|
894
894
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
895
895
|
)), u = this.props.ref, u !== void 0 ? u : null;
|
|
896
896
|
}
|
|
897
|
-
function d(u,
|
|
898
|
-
var B =
|
|
897
|
+
function d(u, w, C, F, V, q) {
|
|
898
|
+
var B = C.ref;
|
|
899
899
|
return u = {
|
|
900
900
|
$$typeof: b,
|
|
901
901
|
type: u,
|
|
902
|
-
key:
|
|
903
|
-
props:
|
|
904
|
-
_owner:
|
|
902
|
+
key: w,
|
|
903
|
+
props: C,
|
|
904
|
+
_owner: F
|
|
905
905
|
}, (B !== void 0 ? B : null) !== null ? Object.defineProperty(u, "ref", {
|
|
906
906
|
enumerable: !1,
|
|
907
907
|
get: c
|
|
@@ -927,49 +927,49 @@ function Ko() {
|
|
|
927
927
|
value: q
|
|
928
928
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
929
929
|
}
|
|
930
|
-
function h(u,
|
|
931
|
-
var B =
|
|
930
|
+
function h(u, w, C, F, V, q) {
|
|
931
|
+
var B = w.children;
|
|
932
932
|
if (B !== void 0)
|
|
933
|
-
if (
|
|
933
|
+
if (F)
|
|
934
934
|
if (S(B)) {
|
|
935
|
-
for (
|
|
936
|
-
p(B[
|
|
935
|
+
for (F = 0; F < B.length; F++)
|
|
936
|
+
p(B[F]);
|
|
937
937
|
Object.freeze && Object.freeze(B);
|
|
938
938
|
} else
|
|
939
939
|
console.error(
|
|
940
940
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
941
941
|
);
|
|
942
942
|
else p(B);
|
|
943
|
-
if (R.call(
|
|
943
|
+
if (R.call(w, "key")) {
|
|
944
944
|
B = t(u);
|
|
945
|
-
var U = Object.keys(
|
|
945
|
+
var U = Object.keys(w).filter(function(H) {
|
|
946
946
|
return H !== "key";
|
|
947
947
|
});
|
|
948
|
-
|
|
948
|
+
F = 0 < U.length ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}", P[B + F] || (U = 0 < U.length ? "{" + U.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
949
949
|
`A props object containing a "key" prop is being spread into JSX:
|
|
950
950
|
let props = %s;
|
|
951
951
|
<%s {...props} />
|
|
952
952
|
React keys must be passed directly to JSX without using spread:
|
|
953
953
|
let props = %s;
|
|
954
954
|
<%s key={someKey} {...props} />`,
|
|
955
|
-
|
|
955
|
+
F,
|
|
956
956
|
B,
|
|
957
957
|
U,
|
|
958
958
|
B
|
|
959
|
-
), P[B +
|
|
959
|
+
), P[B + F] = !0);
|
|
960
960
|
}
|
|
961
|
-
if (B = null,
|
|
962
|
-
|
|
963
|
-
for (var Q in
|
|
964
|
-
Q !== "key" && (
|
|
965
|
-
} else
|
|
961
|
+
if (B = null, C !== void 0 && (r(C), B = "" + C), i(w) && (r(w.key), B = "" + w.key), "key" in w) {
|
|
962
|
+
C = {};
|
|
963
|
+
for (var Q in w)
|
|
964
|
+
Q !== "key" && (C[Q] = w[Q]);
|
|
965
|
+
} else C = w;
|
|
966
966
|
return B && a(
|
|
967
|
-
|
|
967
|
+
C,
|
|
968
968
|
typeof u == "function" ? u.displayName || u.name || "Unknown" : u
|
|
969
969
|
), d(
|
|
970
970
|
u,
|
|
971
971
|
B,
|
|
972
|
-
|
|
972
|
+
C,
|
|
973
973
|
s(),
|
|
974
974
|
V,
|
|
975
975
|
q
|
|
@@ -981,7 +981,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
981
981
|
function f(u) {
|
|
982
982
|
return typeof u == "object" && u !== null && u.$$typeof === b;
|
|
983
983
|
}
|
|
984
|
-
var m = tr, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), D = /* @__PURE__ */ Symbol.for("react.portal"),
|
|
984
|
+
var m = tr, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), D = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), $ = /* @__PURE__ */ Symbol.for("react.strict_mode"), Y = /* @__PURE__ */ Symbol.for("react.profiler"), W = /* @__PURE__ */ Symbol.for("react.consumer"), L = /* @__PURE__ */ Symbol.for("react.context"), A = /* @__PURE__ */ Symbol.for("react.forward_ref"), N = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), O = /* @__PURE__ */ Symbol.for("react.memo"), _ = /* @__PURE__ */ Symbol.for("react.lazy"), k = /* @__PURE__ */ Symbol.for("react.activity"), E = /* @__PURE__ */ Symbol.for("react.client.reference"), I = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, R = Object.prototype.hasOwnProperty, S = Array.isArray, g = console.createTask ? console.createTask : function() {
|
|
985
985
|
return null;
|
|
986
986
|
};
|
|
987
987
|
m = {
|
|
@@ -989,29 +989,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
989
989
|
return u();
|
|
990
990
|
}
|
|
991
991
|
};
|
|
992
|
-
var y, j = {},
|
|
992
|
+
var y, j = {}, x = m.react_stack_bottom_frame.bind(
|
|
993
993
|
m,
|
|
994
994
|
l
|
|
995
|
-
)(),
|
|
996
|
-
Kt.Fragment =
|
|
997
|
-
var
|
|
995
|
+
)(), v = g(n(l)), P = {};
|
|
996
|
+
Kt.Fragment = T, Kt.jsx = function(u, w, C) {
|
|
997
|
+
var F = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
998
998
|
return h(
|
|
999
999
|
u,
|
|
1000
|
-
C,
|
|
1001
1000
|
w,
|
|
1001
|
+
C,
|
|
1002
1002
|
!1,
|
|
1003
|
-
|
|
1004
|
-
|
|
1003
|
+
F ? Error("react-stack-top-frame") : x,
|
|
1004
|
+
F ? g(n(u)) : v
|
|
1005
1005
|
);
|
|
1006
|
-
}, Kt.jsxs = function(u,
|
|
1007
|
-
var
|
|
1006
|
+
}, Kt.jsxs = function(u, w, C) {
|
|
1007
|
+
var F = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
1008
1008
|
return h(
|
|
1009
1009
|
u,
|
|
1010
|
-
C,
|
|
1011
1010
|
w,
|
|
1011
|
+
C,
|
|
1012
1012
|
!0,
|
|
1013
|
-
|
|
1014
|
-
|
|
1013
|
+
F ? Error("react-stack-top-frame") : x,
|
|
1014
|
+
F ? g(n(u)) : v
|
|
1015
1015
|
);
|
|
1016
1016
|
};
|
|
1017
1017
|
})()), Kt;
|
|
@@ -1157,7 +1157,7 @@ function cn(t, e) {
|
|
|
1157
1157
|
const _s = ss(void 0), ua = async () => ({
|
|
1158
1158
|
"Content-Type": "application/json"
|
|
1159
1159
|
});
|
|
1160
|
-
function
|
|
1160
|
+
function oc(t) {
|
|
1161
1161
|
const e = Ye.c(10), {
|
|
1162
1162
|
children: r,
|
|
1163
1163
|
baseUrl: n,
|
|
@@ -1181,7 +1181,7 @@ function Ht() {
|
|
|
1181
1181
|
throw new Error("useDataTable must be used within a DataTableProvider");
|
|
1182
1182
|
return t;
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function ac(t) {
|
|
1185
1185
|
if (typeof t == "string")
|
|
1186
1186
|
try {
|
|
1187
1187
|
const e = JSON.parse(t);
|
|
@@ -1243,7 +1243,7 @@ async function ma(t, e, r) {
|
|
|
1243
1243
|
});
|
|
1244
1244
|
return n.status === 204 ? e : n.json();
|
|
1245
1245
|
}
|
|
1246
|
-
async function
|
|
1246
|
+
async function ic(t, e, r, n) {
|
|
1247
1247
|
const s = await Ut(e, {
|
|
1248
1248
|
method: t,
|
|
1249
1249
|
headers: await r(),
|
|
@@ -1390,19 +1390,19 @@ function Ma() {
|
|
|
1390
1390
|
(function(r, n) {
|
|
1391
1391
|
t.exports = n();
|
|
1392
1392
|
})(Pa, (function() {
|
|
1393
|
-
var r = 1e3, n = 6e4, s = 36e5, l = "millisecond", i = "second", a = "minute", c = "hour", d = "day", h = "week", p = "month", f = "quarter", m = "year", b = "date", D = "Invalid Date",
|
|
1393
|
+
var r = 1e3, n = 6e4, s = 36e5, l = "millisecond", i = "second", a = "minute", c = "hour", d = "day", h = "week", p = "month", f = "quarter", m = "year", b = "date", D = "Invalid Date", T = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, $ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(S) {
|
|
1394
1394
|
var g = ["th", "st", "nd", "rd"], y = S % 100;
|
|
1395
1395
|
return "[" + S + (g[(y - 20) % 10] || g[y] || g[0]) + "]";
|
|
1396
|
-
} },
|
|
1396
|
+
} }, W = function(S, g, y) {
|
|
1397
1397
|
var j = String(S);
|
|
1398
1398
|
return !j || j.length >= g ? S : "" + Array(g + 1 - j.length).join(y) + S;
|
|
1399
|
-
}, L = { s:
|
|
1400
|
-
var g = -S.utcOffset(), y = Math.abs(g), j = Math.floor(y / 60),
|
|
1401
|
-
return (g <= 0 ? "+" : "-") +
|
|
1399
|
+
}, L = { s: W, z: function(S) {
|
|
1400
|
+
var g = -S.utcOffset(), y = Math.abs(g), j = Math.floor(y / 60), x = y % 60;
|
|
1401
|
+
return (g <= 0 ? "+" : "-") + W(j, 2, "0") + ":" + W(x, 2, "0");
|
|
1402
1402
|
}, m: function S(g, y) {
|
|
1403
1403
|
if (g.date() < y.date()) return -S(y, g);
|
|
1404
|
-
var j = 12 * (y.year() - g.year()) + (y.month() - g.month()),
|
|
1405
|
-
return +(-(j + (y -
|
|
1404
|
+
var j = 12 * (y.year() - g.year()) + (y.month() - g.month()), x = g.clone().add(j, p), v = y - x < 0, P = g.clone().add(j + (v ? -1 : 1), p);
|
|
1405
|
+
return +(-(j + (y - x) / (v ? x - P : P - x)) || 0);
|
|
1406
1406
|
}, a: function(S) {
|
|
1407
1407
|
return S < 0 ? Math.ceil(S) || 0 : Math.floor(S);
|
|
1408
1408
|
}, p: function(S) {
|
|
@@ -1414,24 +1414,24 @@ function Ma() {
|
|
|
1414
1414
|
var M = "$isDayjsObject", O = function(S) {
|
|
1415
1415
|
return S instanceof I || !(!S || !S[M]);
|
|
1416
1416
|
}, _ = function S(g, y, j) {
|
|
1417
|
-
var
|
|
1417
|
+
var x;
|
|
1418
1418
|
if (!g) return A;
|
|
1419
1419
|
if (typeof g == "string") {
|
|
1420
|
-
var
|
|
1421
|
-
N[
|
|
1420
|
+
var v = g.toLowerCase();
|
|
1421
|
+
N[v] && (x = v), y && (N[v] = y, x = v);
|
|
1422
1422
|
var P = g.split("-");
|
|
1423
|
-
if (!
|
|
1423
|
+
if (!x && P.length > 1) return S(P[0]);
|
|
1424
1424
|
} else {
|
|
1425
1425
|
var u = g.name;
|
|
1426
|
-
N[u] = g,
|
|
1426
|
+
N[u] = g, x = u;
|
|
1427
1427
|
}
|
|
1428
|
-
return !j &&
|
|
1428
|
+
return !j && x && (A = x), x || !j && A;
|
|
1429
1429
|
}, k = function(S, g) {
|
|
1430
1430
|
if (O(S)) return S.clone();
|
|
1431
1431
|
var y = typeof g == "object" ? g : {};
|
|
1432
1432
|
return y.date = S, y.args = arguments, new I(y);
|
|
1433
|
-
},
|
|
1434
|
-
|
|
1433
|
+
}, E = L;
|
|
1434
|
+
E.l = _, E.i = O, E.w = function(S, g) {
|
|
1435
1435
|
return k(S, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
1436
1436
|
};
|
|
1437
1437
|
var I = (function() {
|
|
@@ -1441,154 +1441,154 @@ function Ma() {
|
|
|
1441
1441
|
var g = S.prototype;
|
|
1442
1442
|
return g.parse = function(y) {
|
|
1443
1443
|
this.$d = (function(j) {
|
|
1444
|
-
var
|
|
1445
|
-
if (
|
|
1446
|
-
if (
|
|
1447
|
-
if (
|
|
1448
|
-
if (typeof
|
|
1449
|
-
var P =
|
|
1444
|
+
var x = j.date, v = j.utc;
|
|
1445
|
+
if (x === null) return /* @__PURE__ */ new Date(NaN);
|
|
1446
|
+
if (E.u(x)) return /* @__PURE__ */ new Date();
|
|
1447
|
+
if (x instanceof Date) return new Date(x);
|
|
1448
|
+
if (typeof x == "string" && !/Z$/i.test(x)) {
|
|
1449
|
+
var P = x.match(T);
|
|
1450
1450
|
if (P) {
|
|
1451
|
-
var u = P[2] - 1 || 0,
|
|
1452
|
-
return
|
|
1451
|
+
var u = P[2] - 1 || 0, w = (P[7] || "0").substring(0, 3);
|
|
1452
|
+
return v ? new Date(Date.UTC(P[1], u, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, w)) : new Date(P[1], u, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, w);
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
|
-
return new Date(
|
|
1455
|
+
return new Date(x);
|
|
1456
1456
|
})(y), this.init();
|
|
1457
1457
|
}, g.init = function() {
|
|
1458
1458
|
var y = this.$d;
|
|
1459
1459
|
this.$y = y.getFullYear(), this.$M = y.getMonth(), this.$D = y.getDate(), this.$W = y.getDay(), this.$H = y.getHours(), this.$m = y.getMinutes(), this.$s = y.getSeconds(), this.$ms = y.getMilliseconds();
|
|
1460
1460
|
}, g.$utils = function() {
|
|
1461
|
-
return
|
|
1461
|
+
return E;
|
|
1462
1462
|
}, g.isValid = function() {
|
|
1463
1463
|
return this.$d.toString() !== D;
|
|
1464
1464
|
}, g.isSame = function(y, j) {
|
|
1465
|
-
var
|
|
1466
|
-
return this.startOf(j) <=
|
|
1465
|
+
var x = k(y);
|
|
1466
|
+
return this.startOf(j) <= x && x <= this.endOf(j);
|
|
1467
1467
|
}, g.isAfter = function(y, j) {
|
|
1468
1468
|
return k(y) < this.startOf(j);
|
|
1469
1469
|
}, g.isBefore = function(y, j) {
|
|
1470
1470
|
return this.endOf(j) < k(y);
|
|
1471
|
-
}, g.$g = function(y, j,
|
|
1472
|
-
return
|
|
1471
|
+
}, g.$g = function(y, j, x) {
|
|
1472
|
+
return E.u(y) ? this[j] : this.set(x, y);
|
|
1473
1473
|
}, g.unix = function() {
|
|
1474
1474
|
return Math.floor(this.valueOf() / 1e3);
|
|
1475
1475
|
}, g.valueOf = function() {
|
|
1476
1476
|
return this.$d.getTime();
|
|
1477
1477
|
}, g.startOf = function(y, j) {
|
|
1478
|
-
var
|
|
1479
|
-
var X =
|
|
1480
|
-
return
|
|
1481
|
-
},
|
|
1482
|
-
return
|
|
1483
|
-
},
|
|
1478
|
+
var x = this, v = !!E.u(j) || j, P = E.p(y), u = function(Q, H) {
|
|
1479
|
+
var X = E.w(x.$u ? Date.UTC(x.$y, H, Q) : new Date(x.$y, H, Q), x);
|
|
1480
|
+
return v ? X : X.endOf(d);
|
|
1481
|
+
}, w = function(Q, H) {
|
|
1482
|
+
return E.w(x.toDate()[Q].apply(x.toDate("s"), (v ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), x);
|
|
1483
|
+
}, C = this.$W, F = this.$M, V = this.$D, q = "set" + (this.$u ? "UTC" : "");
|
|
1484
1484
|
switch (P) {
|
|
1485
1485
|
case m:
|
|
1486
|
-
return
|
|
1486
|
+
return v ? u(1, 0) : u(31, 11);
|
|
1487
1487
|
case p:
|
|
1488
|
-
return
|
|
1488
|
+
return v ? u(1, F) : u(0, F + 1);
|
|
1489
1489
|
case h:
|
|
1490
|
-
var B = this.$locale().weekStart || 0, U = (
|
|
1491
|
-
return u(
|
|
1490
|
+
var B = this.$locale().weekStart || 0, U = (C < B ? C + 7 : C) - B;
|
|
1491
|
+
return u(v ? V - U : V + (6 - U), F);
|
|
1492
1492
|
case d:
|
|
1493
1493
|
case b:
|
|
1494
|
-
return
|
|
1494
|
+
return w(q + "Hours", 0);
|
|
1495
1495
|
case c:
|
|
1496
|
-
return
|
|
1496
|
+
return w(q + "Minutes", 1);
|
|
1497
1497
|
case a:
|
|
1498
|
-
return
|
|
1498
|
+
return w(q + "Seconds", 2);
|
|
1499
1499
|
case i:
|
|
1500
|
-
return
|
|
1500
|
+
return w(q + "Milliseconds", 3);
|
|
1501
1501
|
default:
|
|
1502
1502
|
return this.clone();
|
|
1503
1503
|
}
|
|
1504
1504
|
}, g.endOf = function(y) {
|
|
1505
1505
|
return this.startOf(y, !1);
|
|
1506
1506
|
}, g.$set = function(y, j) {
|
|
1507
|
-
var
|
|
1508
|
-
if (
|
|
1509
|
-
var
|
|
1510
|
-
|
|
1511
|
-
} else u && this.$d[u](
|
|
1507
|
+
var x, v = E.p(y), P = "set" + (this.$u ? "UTC" : ""), u = (x = {}, x[d] = P + "Date", x[b] = P + "Date", x[p] = P + "Month", x[m] = P + "FullYear", x[c] = P + "Hours", x[a] = P + "Minutes", x[i] = P + "Seconds", x[l] = P + "Milliseconds", x)[v], w = v === d ? this.$D + (j - this.$W) : j;
|
|
1508
|
+
if (v === p || v === m) {
|
|
1509
|
+
var C = this.clone().set(b, 1);
|
|
1510
|
+
C.$d[u](w), C.init(), this.$d = C.set(b, Math.min(this.$D, C.daysInMonth())).$d;
|
|
1511
|
+
} else u && this.$d[u](w);
|
|
1512
1512
|
return this.init(), this;
|
|
1513
1513
|
}, g.set = function(y, j) {
|
|
1514
1514
|
return this.clone().$set(y, j);
|
|
1515
1515
|
}, g.get = function(y) {
|
|
1516
|
-
return this[
|
|
1516
|
+
return this[E.p(y)]();
|
|
1517
1517
|
}, g.add = function(y, j) {
|
|
1518
|
-
var
|
|
1518
|
+
var x, v = this;
|
|
1519
1519
|
y = Number(y);
|
|
1520
|
-
var P =
|
|
1521
|
-
var V = k(
|
|
1522
|
-
return
|
|
1520
|
+
var P = E.p(j), u = function(F) {
|
|
1521
|
+
var V = k(v);
|
|
1522
|
+
return E.w(V.date(V.date() + Math.round(F * y)), v);
|
|
1523
1523
|
};
|
|
1524
1524
|
if (P === p) return this.set(p, this.$M + y);
|
|
1525
1525
|
if (P === m) return this.set(m, this.$y + y);
|
|
1526
1526
|
if (P === d) return u(1);
|
|
1527
1527
|
if (P === h) return u(7);
|
|
1528
|
-
var
|
|
1529
|
-
return
|
|
1528
|
+
var w = (x = {}, x[a] = n, x[c] = s, x[i] = r, x)[P] || 1, C = this.$d.getTime() + y * w;
|
|
1529
|
+
return E.w(C, this);
|
|
1530
1530
|
}, g.subtract = function(y, j) {
|
|
1531
1531
|
return this.add(-1 * y, j);
|
|
1532
1532
|
}, g.format = function(y) {
|
|
1533
|
-
var j = this,
|
|
1534
|
-
if (!this.isValid()) return
|
|
1535
|
-
var
|
|
1536
|
-
return H && (H[X] || H(j,
|
|
1533
|
+
var j = this, x = this.$locale();
|
|
1534
|
+
if (!this.isValid()) return x.invalidDate || D;
|
|
1535
|
+
var v = y || "YYYY-MM-DDTHH:mm:ssZ", P = E.z(this), u = this.$H, w = this.$m, C = this.$M, F = x.weekdays, V = x.months, q = x.meridiem, B = function(H, X, J, ee) {
|
|
1536
|
+
return H && (H[X] || H(j, v)) || J[X].slice(0, ee);
|
|
1537
1537
|
}, U = function(H) {
|
|
1538
|
-
return
|
|
1538
|
+
return E.s(u % 12 || 12, H, "0");
|
|
1539
1539
|
}, Q = q || function(H, X, J) {
|
|
1540
1540
|
var ee = H < 12 ? "AM" : "PM";
|
|
1541
1541
|
return J ? ee.toLowerCase() : ee;
|
|
1542
1542
|
};
|
|
1543
|
-
return
|
|
1543
|
+
return v.replace($, (function(H, X) {
|
|
1544
1544
|
return X || (function(J) {
|
|
1545
1545
|
switch (J) {
|
|
1546
1546
|
case "YY":
|
|
1547
1547
|
return String(j.$y).slice(-2);
|
|
1548
1548
|
case "YYYY":
|
|
1549
|
-
return
|
|
1549
|
+
return E.s(j.$y, 4, "0");
|
|
1550
1550
|
case "M":
|
|
1551
|
-
return
|
|
1551
|
+
return C + 1;
|
|
1552
1552
|
case "MM":
|
|
1553
|
-
return
|
|
1553
|
+
return E.s(C + 1, 2, "0");
|
|
1554
1554
|
case "MMM":
|
|
1555
|
-
return B(
|
|
1555
|
+
return B(x.monthsShort, C, V, 3);
|
|
1556
1556
|
case "MMMM":
|
|
1557
|
-
return B(V,
|
|
1557
|
+
return B(V, C);
|
|
1558
1558
|
case "D":
|
|
1559
1559
|
return j.$D;
|
|
1560
1560
|
case "DD":
|
|
1561
|
-
return
|
|
1561
|
+
return E.s(j.$D, 2, "0");
|
|
1562
1562
|
case "d":
|
|
1563
1563
|
return String(j.$W);
|
|
1564
1564
|
case "dd":
|
|
1565
|
-
return B(
|
|
1565
|
+
return B(x.weekdaysMin, j.$W, F, 2);
|
|
1566
1566
|
case "ddd":
|
|
1567
|
-
return B(
|
|
1567
|
+
return B(x.weekdaysShort, j.$W, F, 3);
|
|
1568
1568
|
case "dddd":
|
|
1569
|
-
return
|
|
1569
|
+
return F[j.$W];
|
|
1570
1570
|
case "H":
|
|
1571
1571
|
return String(u);
|
|
1572
1572
|
case "HH":
|
|
1573
|
-
return
|
|
1573
|
+
return E.s(u, 2, "0");
|
|
1574
1574
|
case "h":
|
|
1575
1575
|
return U(1);
|
|
1576
1576
|
case "hh":
|
|
1577
1577
|
return U(2);
|
|
1578
1578
|
case "a":
|
|
1579
|
-
return Q(u,
|
|
1579
|
+
return Q(u, w, !0);
|
|
1580
1580
|
case "A":
|
|
1581
|
-
return Q(u,
|
|
1581
|
+
return Q(u, w, !1);
|
|
1582
1582
|
case "m":
|
|
1583
|
-
return String(
|
|
1583
|
+
return String(w);
|
|
1584
1584
|
case "mm":
|
|
1585
|
-
return
|
|
1585
|
+
return E.s(w, 2, "0");
|
|
1586
1586
|
case "s":
|
|
1587
1587
|
return String(j.$s);
|
|
1588
1588
|
case "ss":
|
|
1589
|
-
return
|
|
1589
|
+
return E.s(j.$s, 2, "0");
|
|
1590
1590
|
case "SSS":
|
|
1591
|
-
return
|
|
1591
|
+
return E.s(j.$ms, 3, "0");
|
|
1592
1592
|
case "Z":
|
|
1593
1593
|
return P;
|
|
1594
1594
|
}
|
|
@@ -1597,49 +1597,49 @@ function Ma() {
|
|
|
1597
1597
|
}));
|
|
1598
1598
|
}, g.utcOffset = function() {
|
|
1599
1599
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1600
|
-
}, g.diff = function(y, j,
|
|
1601
|
-
var
|
|
1602
|
-
return
|
|
1600
|
+
}, g.diff = function(y, j, x) {
|
|
1601
|
+
var v, P = this, u = E.p(j), w = k(y), C = (w.utcOffset() - this.utcOffset()) * n, F = this - w, V = function() {
|
|
1602
|
+
return E.m(P, w);
|
|
1603
1603
|
};
|
|
1604
1604
|
switch (u) {
|
|
1605
1605
|
case m:
|
|
1606
|
-
|
|
1606
|
+
v = V() / 12;
|
|
1607
1607
|
break;
|
|
1608
1608
|
case p:
|
|
1609
|
-
|
|
1609
|
+
v = V();
|
|
1610
1610
|
break;
|
|
1611
1611
|
case f:
|
|
1612
|
-
|
|
1612
|
+
v = V() / 3;
|
|
1613
1613
|
break;
|
|
1614
1614
|
case h:
|
|
1615
|
-
|
|
1615
|
+
v = (F - C) / 6048e5;
|
|
1616
1616
|
break;
|
|
1617
1617
|
case d:
|
|
1618
|
-
|
|
1618
|
+
v = (F - C) / 864e5;
|
|
1619
1619
|
break;
|
|
1620
1620
|
case c:
|
|
1621
|
-
|
|
1621
|
+
v = F / s;
|
|
1622
1622
|
break;
|
|
1623
1623
|
case a:
|
|
1624
|
-
|
|
1624
|
+
v = F / n;
|
|
1625
1625
|
break;
|
|
1626
1626
|
case i:
|
|
1627
|
-
|
|
1627
|
+
v = F / r;
|
|
1628
1628
|
break;
|
|
1629
1629
|
default:
|
|
1630
|
-
|
|
1630
|
+
v = F;
|
|
1631
1631
|
}
|
|
1632
|
-
return
|
|
1632
|
+
return x ? v : E.a(v);
|
|
1633
1633
|
}, g.daysInMonth = function() {
|
|
1634
1634
|
return this.endOf(p).$D;
|
|
1635
1635
|
}, g.$locale = function() {
|
|
1636
1636
|
return N[this.$L];
|
|
1637
1637
|
}, g.locale = function(y, j) {
|
|
1638
1638
|
if (!y) return this.$L;
|
|
1639
|
-
var
|
|
1640
|
-
return
|
|
1639
|
+
var x = this.clone(), v = _(y, j, !0);
|
|
1640
|
+
return v && (x.$L = v), x;
|
|
1641
1641
|
}, g.clone = function() {
|
|
1642
|
-
return
|
|
1642
|
+
return E.w(this.$d, this);
|
|
1643
1643
|
}, g.toDate = function() {
|
|
1644
1644
|
return new Date(this.valueOf());
|
|
1645
1645
|
}, g.toJSON = function() {
|
|
@@ -1743,7 +1743,7 @@ function js({
|
|
|
1743
1743
|
size: l
|
|
1744
1744
|
}) : a.focus());
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1746
|
+
function Ea(t) {
|
|
1747
1747
|
switch (t) {
|
|
1748
1748
|
case "ArrowDown":
|
|
1749
1749
|
return "down";
|
|
@@ -1757,7 +1757,7 @@ function Ta(t) {
|
|
|
1757
1757
|
return null;
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function Ta(t) {
|
|
1761
1761
|
return t.current?.map((e) => e.map((r) => r.length));
|
|
1762
1762
|
}
|
|
1763
1763
|
function un({
|
|
@@ -1767,10 +1767,10 @@ function un({
|
|
|
1767
1767
|
cellIndex: n,
|
|
1768
1768
|
event: s
|
|
1769
1769
|
}) {
|
|
1770
|
-
const l =
|
|
1770
|
+
const l = Ea(s.key);
|
|
1771
1771
|
if (l) {
|
|
1772
1772
|
s.preventDefault();
|
|
1773
|
-
const i =
|
|
1773
|
+
const i = Ta(t);
|
|
1774
1774
|
js({
|
|
1775
1775
|
controlsRef: t,
|
|
1776
1776
|
direction: l,
|
|
@@ -1864,10 +1864,10 @@ const $a = sr((t, { size: e }) => ({
|
|
|
1864
1864
|
outside: m,
|
|
1865
1865
|
selected: b,
|
|
1866
1866
|
renderDay: D,
|
|
1867
|
-
inRange:
|
|
1867
|
+
inRange: T,
|
|
1868
1868
|
firstInRange: $,
|
|
1869
1869
|
lastInRange: Y,
|
|
1870
|
-
hidden:
|
|
1870
|
+
hidden: W,
|
|
1871
1871
|
static: L,
|
|
1872
1872
|
highlightToday: A,
|
|
1873
1873
|
attributes: N,
|
|
@@ -1889,18 +1889,18 @@ const $a = sr((t, { size: e }) => ({
|
|
|
1889
1889
|
return /* @__PURE__ */ o.jsx(
|
|
1890
1890
|
Zt,
|
|
1891
1891
|
{
|
|
1892
|
-
...O("day", { style:
|
|
1892
|
+
...O("day", { style: W ? { display: "none" } : void 0 }),
|
|
1893
1893
|
component: L ? "div" : "button",
|
|
1894
1894
|
ref: e,
|
|
1895
1895
|
disabled: h,
|
|
1896
1896
|
"data-today": z(d).isSame(/* @__PURE__ */ new Date(), "day") || void 0,
|
|
1897
|
-
"data-hidden":
|
|
1897
|
+
"data-hidden": W || void 0,
|
|
1898
1898
|
"data-highlight-today": A || void 0,
|
|
1899
1899
|
"data-disabled": h || void 0,
|
|
1900
1900
|
"data-weekend": !h && !m && f || void 0,
|
|
1901
1901
|
"data-outside": !h && m || void 0,
|
|
1902
1902
|
"data-selected": !h && b || void 0,
|
|
1903
|
-
"data-in-range":
|
|
1903
|
+
"data-in-range": T && !h || void 0,
|
|
1904
1904
|
"data-first-in-range": $ && !h || void 0,
|
|
1905
1905
|
"data-last-in-range": Y && !h || void 0,
|
|
1906
1906
|
"data-static": L || void 0,
|
|
@@ -1922,7 +1922,7 @@ function Ya({
|
|
|
1922
1922
|
typeof e == "string" ? s.push(z(n).add(l, "days").locale(t).format(e)) : s.push(e(z(n).add(l, "days").format("YYYY-MM-DD")));
|
|
1923
1923
|
return s;
|
|
1924
1924
|
}
|
|
1925
|
-
var
|
|
1925
|
+
var Es = { weekday: "m_18a3eca" };
|
|
1926
1926
|
const Ia = sr((t, { size: e }) => ({
|
|
1927
1927
|
weekdaysRow: {
|
|
1928
1928
|
"--wr-fz": xr(e),
|
|
@@ -1943,10 +1943,10 @@ const Ia = sr((t, { size: e }) => ({
|
|
|
1943
1943
|
__staticSelector: m,
|
|
1944
1944
|
withWeekNumbers: b,
|
|
1945
1945
|
attributes: D,
|
|
1946
|
-
...
|
|
1946
|
+
...T
|
|
1947
1947
|
} = r, $ = St({
|
|
1948
1948
|
name: m || "WeekdaysRow",
|
|
1949
|
-
classes:
|
|
1949
|
+
classes: Es,
|
|
1950
1950
|
props: r,
|
|
1951
1951
|
className: s,
|
|
1952
1952
|
style: l,
|
|
@@ -1957,17 +1957,17 @@ const Ia = sr((t, { size: e }) => ({
|
|
|
1957
1957
|
vars: c,
|
|
1958
1958
|
varsResolver: Ia,
|
|
1959
1959
|
rootSelector: "weekdaysRow"
|
|
1960
|
-
}), Y = Dt(),
|
|
1960
|
+
}), Y = Dt(), W = Ya({
|
|
1961
1961
|
locale: Y.getLocale(d),
|
|
1962
1962
|
format: p,
|
|
1963
1963
|
firstDayOfWeek: Y.getFirstDayOfWeek(h)
|
|
1964
1964
|
}).map((L, A) => /* @__PURE__ */ o.jsx(f, { ...$("weekday"), children: L }, A));
|
|
1965
|
-
return /* @__PURE__ */ o.jsxs(ue, { component: "tr", ref: e, ...$("weekdaysRow"), ...
|
|
1965
|
+
return /* @__PURE__ */ o.jsxs(ue, { component: "tr", ref: e, ...$("weekdaysRow"), ...T, children: [
|
|
1966
1966
|
b && /* @__PURE__ */ o.jsx(f, { ...$("weekday"), children: "#" }),
|
|
1967
|
-
|
|
1967
|
+
W
|
|
1968
1968
|
] });
|
|
1969
1969
|
});
|
|
1970
|
-
hn.classes =
|
|
1970
|
+
hn.classes = Es;
|
|
1971
1971
|
hn.displayName = "@mantine/dates/WeekdaysRow";
|
|
1972
1972
|
function Fa(t, e = 1) {
|
|
1973
1973
|
let r = z(t);
|
|
@@ -2012,7 +2012,7 @@ function za({
|
|
|
2012
2012
|
function fn(t, e) {
|
|
2013
2013
|
return z(t).format("YYYY-MM") === z(e).format("YYYY-MM");
|
|
2014
2014
|
}
|
|
2015
|
-
function
|
|
2015
|
+
function Ts(t, e) {
|
|
2016
2016
|
return e ? z(t).isAfter(z(e).subtract(1, "day"), "day") : !0;
|
|
2017
2017
|
}
|
|
2018
2018
|
function Ls(t, e) {
|
|
@@ -2028,7 +2028,7 @@ function Va({
|
|
|
2028
2028
|
month: i
|
|
2029
2029
|
}) {
|
|
2030
2030
|
const a = t.flat().filter(
|
|
2031
|
-
(h) => Ls(h, r) &&
|
|
2031
|
+
(h) => Ls(h, r) && Ts(h, e) && !s?.(h) && !n?.(h)?.disabled && (!l || fn(h, i))
|
|
2032
2032
|
), c = a.find((h) => n?.(h)?.selected);
|
|
2033
2033
|
if (c)
|
|
2034
2034
|
return c;
|
|
@@ -2094,10 +2094,10 @@ const Ga = {
|
|
|
2094
2094
|
month: m,
|
|
2095
2095
|
weekendDays: b,
|
|
2096
2096
|
getDayProps: D,
|
|
2097
|
-
excludeDate:
|
|
2097
|
+
excludeDate: T,
|
|
2098
2098
|
minDate: $,
|
|
2099
2099
|
maxDate: Y,
|
|
2100
|
-
renderDay:
|
|
2100
|
+
renderDay: W,
|
|
2101
2101
|
hideOutsideDates: L,
|
|
2102
2102
|
hideWeekdays: A,
|
|
2103
2103
|
getDayAriaLabel: N,
|
|
@@ -2105,15 +2105,15 @@ const Ga = {
|
|
|
2105
2105
|
__getDayRef: O,
|
|
2106
2106
|
__onDayKeyDown: _,
|
|
2107
2107
|
__onDayClick: k,
|
|
2108
|
-
__onDayMouseEnter:
|
|
2108
|
+
__onDayMouseEnter: E,
|
|
2109
2109
|
__preventFocus: I,
|
|
2110
2110
|
__stopPropagation: R,
|
|
2111
2111
|
withCellSpacing: S,
|
|
2112
2112
|
size: g,
|
|
2113
2113
|
highlightToday: y,
|
|
2114
2114
|
withWeekNumbers: j,
|
|
2115
|
-
attributes:
|
|
2116
|
-
...
|
|
2115
|
+
attributes: x,
|
|
2116
|
+
...v
|
|
2117
2117
|
} = r, P = St({
|
|
2118
2118
|
name: d || "Month",
|
|
2119
2119
|
classes: Ns,
|
|
@@ -2123,29 +2123,29 @@ const Ga = {
|
|
|
2123
2123
|
classNames: n,
|
|
2124
2124
|
styles: i,
|
|
2125
2125
|
unstyled: a,
|
|
2126
|
-
attributes:
|
|
2126
|
+
attributes: x,
|
|
2127
2127
|
vars: c,
|
|
2128
2128
|
varsResolver: Ka,
|
|
2129
2129
|
rootSelector: "month"
|
|
2130
|
-
}), u = Dt(),
|
|
2130
|
+
}), u = Dt(), w = za({
|
|
2131
2131
|
month: m,
|
|
2132
2132
|
firstDayOfWeek: u.getFirstDayOfWeek(p),
|
|
2133
2133
|
consistentWeeks: u.consistentWeeks
|
|
2134
|
-
}),
|
|
2135
|
-
dates:
|
|
2134
|
+
}), C = Va({
|
|
2135
|
+
dates: w,
|
|
2136
2136
|
minDate: Qe($),
|
|
2137
2137
|
maxDate: Qe(Y),
|
|
2138
2138
|
getDayProps: D,
|
|
2139
|
-
excludeDate:
|
|
2139
|
+
excludeDate: T,
|
|
2140
2140
|
hideOutsideDates: L,
|
|
2141
2141
|
month: m
|
|
2142
|
-
}), { resolvedClassNames:
|
|
2142
|
+
}), { resolvedClassNames: F, resolvedStyles: V } = ls({
|
|
2143
2143
|
classNames: n,
|
|
2144
2144
|
styles: i,
|
|
2145
2145
|
props: r
|
|
2146
|
-
}), q =
|
|
2146
|
+
}), q = w.map((B, U) => {
|
|
2147
2147
|
const Q = B.map((H, X) => {
|
|
2148
|
-
const J = !fn(H, m), ee = N?.(H) || z(H).locale(h || u.locale).format("D MMMM YYYY"), ae = D?.(H), de = z(H).isSame(
|
|
2148
|
+
const J = !fn(H, m), ee = N?.(H) || z(H).locale(h || u.locale).format("D MMMM YYYY"), ae = D?.(H), de = z(H).isSame(C, "date");
|
|
2149
2149
|
return /* @__PURE__ */ o.jsx(
|
|
2150
2150
|
"td",
|
|
2151
2151
|
{
|
|
@@ -2155,12 +2155,12 @@ const Ga = {
|
|
|
2155
2155
|
dn,
|
|
2156
2156
|
{
|
|
2157
2157
|
__staticSelector: d || "Month",
|
|
2158
|
-
classNames:
|
|
2158
|
+
classNames: F,
|
|
2159
2159
|
styles: V,
|
|
2160
2160
|
unstyled: a,
|
|
2161
2161
|
"data-mantine-stop-propagation": R || void 0,
|
|
2162
2162
|
highlightToday: y,
|
|
2163
|
-
renderDay:
|
|
2163
|
+
renderDay: W,
|
|
2164
2164
|
date: H,
|
|
2165
2165
|
size: g,
|
|
2166
2166
|
weekend: u.getWeekendDays(b).includes(z(H).get("day")),
|
|
@@ -2168,7 +2168,7 @@ const Ga = {
|
|
|
2168
2168
|
hidden: L ? J : !1,
|
|
2169
2169
|
"aria-label": ee,
|
|
2170
2170
|
static: M,
|
|
2171
|
-
disabled:
|
|
2171
|
+
disabled: T?.(H) || !Ls(H, Qe(Y)) || !Ts(H, Qe($)),
|
|
2172
2172
|
ref: (te) => {
|
|
2173
2173
|
te && O?.(U, X, te);
|
|
2174
2174
|
},
|
|
@@ -2177,7 +2177,7 @@ const Ga = {
|
|
|
2177
2177
|
ae?.onKeyDown?.(te), _?.(te, { rowIndex: U, cellIndex: X, date: H });
|
|
2178
2178
|
},
|
|
2179
2179
|
onMouseEnter: (te) => {
|
|
2180
|
-
ae?.onMouseEnter?.(te),
|
|
2180
|
+
ae?.onMouseEnter?.(te), E?.(te, H);
|
|
2181
2181
|
},
|
|
2182
2182
|
onClick: (te) => {
|
|
2183
2183
|
ae?.onClick?.(te), k?.(te, H);
|
|
@@ -2197,7 +2197,7 @@ const Ga = {
|
|
|
2197
2197
|
Q
|
|
2198
2198
|
] }, U);
|
|
2199
2199
|
});
|
|
2200
|
-
return /* @__PURE__ */ o.jsxs(ue, { component: "table", ...P("month"), size: g, ref: e, ...
|
|
2200
|
+
return /* @__PURE__ */ o.jsxs(ue, { component: "table", ...P("month"), size: g, ref: e, ...v, children: [
|
|
2201
2201
|
!A && /* @__PURE__ */ o.jsx("thead", { ...P("monthThead"), children: /* @__PURE__ */ o.jsx(
|
|
2202
2202
|
hn,
|
|
2203
2203
|
{
|
|
@@ -2206,7 +2206,7 @@ const Ga = {
|
|
|
2206
2206
|
firstDayOfWeek: p,
|
|
2207
2207
|
weekdayFormat: f,
|
|
2208
2208
|
size: g,
|
|
2209
|
-
classNames:
|
|
2209
|
+
classNames: F,
|
|
2210
2210
|
styles: V,
|
|
2211
2211
|
unstyled: a,
|
|
2212
2212
|
withWeekNumbers: j
|
|
@@ -2238,7 +2238,7 @@ const Ja = sr((t, { size: e }) => ({
|
|
|
2238
2238
|
selected: m,
|
|
2239
2239
|
disabled: b,
|
|
2240
2240
|
attributes: D,
|
|
2241
|
-
...
|
|
2241
|
+
...T
|
|
2242
2242
|
} = r, $ = St({
|
|
2243
2243
|
name: f || "PickerControl",
|
|
2244
2244
|
classes: As,
|
|
@@ -2266,7 +2266,7 @@ const Ja = sr((t, { size: e }) => ({
|
|
|
2266
2266
|
"data-first-in-range": d && !b || void 0,
|
|
2267
2267
|
"data-last-in-range": h && !b || void 0,
|
|
2268
2268
|
disabled: b,
|
|
2269
|
-
...
|
|
2269
|
+
...T
|
|
2270
2270
|
}
|
|
2271
2271
|
);
|
|
2272
2272
|
});
|
|
@@ -2319,10 +2319,10 @@ const Xa = {
|
|
|
2319
2319
|
maxDate: m,
|
|
2320
2320
|
getYearControlProps: b,
|
|
2321
2321
|
__staticSelector: D,
|
|
2322
|
-
__getControlRef:
|
|
2322
|
+
__getControlRef: T,
|
|
2323
2323
|
__onControlKeyDown: $,
|
|
2324
2324
|
__onControlClick: Y,
|
|
2325
|
-
__onControlMouseEnter:
|
|
2325
|
+
__onControlMouseEnter: W,
|
|
2326
2326
|
__preventFocus: L,
|
|
2327
2327
|
__stopPropagation: A,
|
|
2328
2328
|
withCellSpacing: N,
|
|
@@ -2341,14 +2341,14 @@ const Xa = {
|
|
|
2341
2341
|
attributes: O,
|
|
2342
2342
|
vars: c,
|
|
2343
2343
|
rootSelector: "yearsList"
|
|
2344
|
-
}),
|
|
2344
|
+
}), E = Dt(), I = Ys(d), R = Za({
|
|
2345
2345
|
years: I,
|
|
2346
2346
|
minDate: f,
|
|
2347
2347
|
maxDate: m,
|
|
2348
2348
|
getYearControlProps: b
|
|
2349
2349
|
}), S = I.map((g, y) => {
|
|
2350
|
-
const j = g.map((
|
|
2351
|
-
const P = b?.(
|
|
2350
|
+
const j = g.map((x, v) => {
|
|
2351
|
+
const P = b?.(x), u = z(x).isSame(R, "year");
|
|
2352
2352
|
return /* @__PURE__ */ o.jsx(
|
|
2353
2353
|
"td",
|
|
2354
2354
|
{
|
|
@@ -2361,29 +2361,29 @@ const Xa = {
|
|
|
2361
2361
|
size: M,
|
|
2362
2362
|
unstyled: a,
|
|
2363
2363
|
"data-mantine-stop-propagation": A || void 0,
|
|
2364
|
-
disabled: $s({ year:
|
|
2365
|
-
ref: (
|
|
2366
|
-
|
|
2364
|
+
disabled: $s({ year: x, minDate: f, maxDate: m }),
|
|
2365
|
+
ref: (w) => {
|
|
2366
|
+
w && T?.(y, v, w);
|
|
2367
2367
|
},
|
|
2368
2368
|
...P,
|
|
2369
|
-
onKeyDown: (
|
|
2370
|
-
P?.onKeyDown?.(
|
|
2369
|
+
onKeyDown: (w) => {
|
|
2370
|
+
P?.onKeyDown?.(w), $?.(w, { rowIndex: y, cellIndex: v, date: x });
|
|
2371
2371
|
},
|
|
2372
|
-
onClick: (
|
|
2373
|
-
P?.onClick?.(
|
|
2372
|
+
onClick: (w) => {
|
|
2373
|
+
P?.onClick?.(w), Y?.(w, x);
|
|
2374
2374
|
},
|
|
2375
|
-
onMouseEnter: (
|
|
2376
|
-
P?.onMouseEnter?.(
|
|
2375
|
+
onMouseEnter: (w) => {
|
|
2376
|
+
P?.onMouseEnter?.(w), W?.(w, x);
|
|
2377
2377
|
},
|
|
2378
|
-
onMouseDown: (
|
|
2379
|
-
P?.onMouseDown?.(
|
|
2378
|
+
onMouseDown: (w) => {
|
|
2379
|
+
P?.onMouseDown?.(w), L && w.preventDefault();
|
|
2380
2380
|
},
|
|
2381
2381
|
tabIndex: L || !u ? -1 : 0,
|
|
2382
|
-
children: P?.children ?? z(
|
|
2382
|
+
children: P?.children ?? z(x).locale(E.getLocale(p)).format(h)
|
|
2383
2383
|
}
|
|
2384
2384
|
)
|
|
2385
2385
|
},
|
|
2386
|
-
|
|
2386
|
+
v
|
|
2387
2387
|
);
|
|
2388
2388
|
});
|
|
2389
2389
|
return /* @__PURE__ */ o.jsx("tr", { ...k("yearsListRow"), children: j }, y);
|
|
@@ -2436,10 +2436,10 @@ const ri = {
|
|
|
2436
2436
|
minDate: m,
|
|
2437
2437
|
maxDate: b,
|
|
2438
2438
|
getMonthControlProps: D,
|
|
2439
|
-
__getControlRef:
|
|
2439
|
+
__getControlRef: T,
|
|
2440
2440
|
__onControlKeyDown: $,
|
|
2441
2441
|
__onControlClick: Y,
|
|
2442
|
-
__onControlMouseEnter:
|
|
2442
|
+
__onControlMouseEnter: W,
|
|
2443
2443
|
__preventFocus: L,
|
|
2444
2444
|
__stopPropagation: A,
|
|
2445
2445
|
withCellSpacing: N,
|
|
@@ -2458,14 +2458,14 @@ const ri = {
|
|
|
2458
2458
|
attributes: O,
|
|
2459
2459
|
vars: c,
|
|
2460
2460
|
rootSelector: "monthsList"
|
|
2461
|
-
}),
|
|
2461
|
+
}), E = Dt(), I = ti(h), R = ei({
|
|
2462
2462
|
months: I,
|
|
2463
2463
|
minDate: Qe(m),
|
|
2464
2464
|
maxDate: Qe(b),
|
|
2465
2465
|
getMonthControlProps: D
|
|
2466
2466
|
}), S = I.map((g, y) => {
|
|
2467
|
-
const j = g.map((
|
|
2468
|
-
const P = D?.(
|
|
2467
|
+
const j = g.map((x, v) => {
|
|
2468
|
+
const P = D?.(x), u = z(x).isSame(R, "month");
|
|
2469
2469
|
return /* @__PURE__ */ o.jsx(
|
|
2470
2470
|
"td",
|
|
2471
2471
|
{
|
|
@@ -2480,32 +2480,32 @@ const ri = {
|
|
|
2480
2480
|
__staticSelector: d || "MonthsList",
|
|
2481
2481
|
"data-mantine-stop-propagation": A || void 0,
|
|
2482
2482
|
disabled: Fs({
|
|
2483
|
-
month:
|
|
2483
|
+
month: x,
|
|
2484
2484
|
minDate: Qe(m),
|
|
2485
2485
|
maxDate: Qe(b)
|
|
2486
2486
|
}),
|
|
2487
|
-
ref: (
|
|
2488
|
-
|
|
2487
|
+
ref: (w) => {
|
|
2488
|
+
w && T?.(y, v, w);
|
|
2489
2489
|
},
|
|
2490
2490
|
...P,
|
|
2491
|
-
onKeyDown: (
|
|
2492
|
-
P?.onKeyDown?.(
|
|
2491
|
+
onKeyDown: (w) => {
|
|
2492
|
+
P?.onKeyDown?.(w), $?.(w, { rowIndex: y, cellIndex: v, date: x });
|
|
2493
2493
|
},
|
|
2494
|
-
onClick: (
|
|
2495
|
-
P?.onClick?.(
|
|
2494
|
+
onClick: (w) => {
|
|
2495
|
+
P?.onClick?.(w), Y?.(w, x);
|
|
2496
2496
|
},
|
|
2497
|
-
onMouseEnter: (
|
|
2498
|
-
P?.onMouseEnter?.(
|
|
2497
|
+
onMouseEnter: (w) => {
|
|
2498
|
+
P?.onMouseEnter?.(w), W?.(w, x);
|
|
2499
2499
|
},
|
|
2500
|
-
onMouseDown: (
|
|
2501
|
-
P?.onMouseDown?.(
|
|
2500
|
+
onMouseDown: (w) => {
|
|
2501
|
+
P?.onMouseDown?.(w), L && w.preventDefault();
|
|
2502
2502
|
},
|
|
2503
2503
|
tabIndex: L || !u ? -1 : 0,
|
|
2504
|
-
children: P?.children ?? z(
|
|
2504
|
+
children: P?.children ?? z(x).locale(E.getLocale(f)).format(p)
|
|
2505
2505
|
}
|
|
2506
2506
|
)
|
|
2507
2507
|
},
|
|
2508
|
-
|
|
2508
|
+
v
|
|
2509
2509
|
);
|
|
2510
2510
|
});
|
|
2511
2511
|
return /* @__PURE__ */ o.jsx("tr", { ...k("monthsListRow"), children: j }, y);
|
|
@@ -2540,10 +2540,10 @@ const ni = {
|
|
|
2540
2540
|
onNext: m,
|
|
2541
2541
|
onPrevious: b,
|
|
2542
2542
|
onLevelClick: D,
|
|
2543
|
-
label:
|
|
2543
|
+
label: T,
|
|
2544
2544
|
nextDisabled: $,
|
|
2545
2545
|
previousDisabled: Y,
|
|
2546
|
-
hasNextLevel:
|
|
2546
|
+
hasNextLevel: W,
|
|
2547
2547
|
levelControlAriaLabel: L,
|
|
2548
2548
|
withNext: A,
|
|
2549
2549
|
withPrevious: N,
|
|
@@ -2551,7 +2551,7 @@ const ni = {
|
|
|
2551
2551
|
__staticSelector: O,
|
|
2552
2552
|
__preventFocus: _,
|
|
2553
2553
|
__stopPropagation: k,
|
|
2554
|
-
attributes:
|
|
2554
|
+
attributes: E,
|
|
2555
2555
|
...I
|
|
2556
2556
|
} = r, R = St({
|
|
2557
2557
|
name: O || "CalendarHeader",
|
|
@@ -2562,11 +2562,11 @@ const ni = {
|
|
|
2562
2562
|
classNames: n,
|
|
2563
2563
|
styles: i,
|
|
2564
2564
|
unstyled: a,
|
|
2565
|
-
attributes:
|
|
2565
|
+
attributes: E,
|
|
2566
2566
|
vars: c,
|
|
2567
2567
|
varsResolver: si,
|
|
2568
2568
|
rootSelector: "calendarHeader"
|
|
2569
|
-
}), S = _ ? (
|
|
2569
|
+
}), S = _ ? (v) => v.preventDefault() : void 0, g = N && /* @__PURE__ */ hr(
|
|
2570
2570
|
Zt,
|
|
2571
2571
|
{
|
|
2572
2572
|
...R("calendarHeaderControl"),
|
|
@@ -2592,19 +2592,19 @@ const ni = {
|
|
|
2592
2592
|
), y = /* @__PURE__ */ hr(
|
|
2593
2593
|
Zt,
|
|
2594
2594
|
{
|
|
2595
|
-
component:
|
|
2595
|
+
component: W ? "button" : "div",
|
|
2596
2596
|
...R("calendarHeaderLevel"),
|
|
2597
2597
|
key: "level",
|
|
2598
|
-
onClick:
|
|
2598
|
+
onClick: W ? D : void 0,
|
|
2599
2599
|
unstyled: a,
|
|
2600
|
-
onMouseDown:
|
|
2601
|
-
disabled: !
|
|
2602
|
-
"data-static": !
|
|
2600
|
+
onMouseDown: W ? S : void 0,
|
|
2601
|
+
disabled: !W,
|
|
2602
|
+
"data-static": !W || void 0,
|
|
2603
2603
|
"aria-label": L,
|
|
2604
|
-
tabIndex: _ || !
|
|
2604
|
+
tabIndex: _ || !W ? -1 : 0,
|
|
2605
2605
|
"data-mantine-stop-propagation": k || void 0
|
|
2606
2606
|
},
|
|
2607
|
-
|
|
2607
|
+
T
|
|
2608
2608
|
), j = A && /* @__PURE__ */ hr(
|
|
2609
2609
|
Zt,
|
|
2610
2610
|
{
|
|
@@ -2628,8 +2628,8 @@ const ni = {
|
|
|
2628
2628
|
size: "45%"
|
|
2629
2629
|
}
|
|
2630
2630
|
)
|
|
2631
|
-
),
|
|
2632
|
-
return /* @__PURE__ */ o.jsx(ue, { ...R("calendarHeader"), ref: e, ...I, children:
|
|
2631
|
+
), x = M.map((v) => v === "previous" ? g : v === "level" ? y : v === "next" ? j : null);
|
|
2632
|
+
return /* @__PURE__ */ o.jsx(ue, { ...R("calendarHeader"), ref: e, ...I, children: x });
|
|
2633
2633
|
});
|
|
2634
2634
|
_t.classes = zs;
|
|
2635
2635
|
_t.displayName = "@mantine/dates/CalendarHeader";
|
|
@@ -2656,10 +2656,10 @@ const ai = {
|
|
|
2656
2656
|
// CalendarHeader settings
|
|
2657
2657
|
__preventFocus: b,
|
|
2658
2658
|
nextIcon: D,
|
|
2659
|
-
previousIcon:
|
|
2659
|
+
previousIcon: T,
|
|
2660
2660
|
nextLabel: $,
|
|
2661
2661
|
previousLabel: Y,
|
|
2662
|
-
onNext:
|
|
2662
|
+
onNext: W,
|
|
2663
2663
|
onPrevious: L,
|
|
2664
2664
|
nextDisabled: A,
|
|
2665
2665
|
previousDisabled: N,
|
|
@@ -2668,47 +2668,47 @@ const ai = {
|
|
|
2668
2668
|
withPrevious: _,
|
|
2669
2669
|
headerControlsOrder: k,
|
|
2670
2670
|
// Other props
|
|
2671
|
-
decadeLabelFormat:
|
|
2671
|
+
decadeLabelFormat: E,
|
|
2672
2672
|
classNames: I,
|
|
2673
2673
|
styles: R,
|
|
2674
2674
|
unstyled: S,
|
|
2675
2675
|
__staticSelector: g,
|
|
2676
2676
|
__stopPropagation: y,
|
|
2677
2677
|
size: j,
|
|
2678
|
-
attributes:
|
|
2679
|
-
...
|
|
2680
|
-
} = r, P = Dt(), [u,
|
|
2678
|
+
attributes: x,
|
|
2679
|
+
...v
|
|
2680
|
+
} = r, P = Dt(), [u, w] = oi(n), C = {
|
|
2681
2681
|
__staticSelector: g || "DecadeLevel",
|
|
2682
2682
|
classNames: I,
|
|
2683
2683
|
styles: R,
|
|
2684
2684
|
unstyled: S,
|
|
2685
2685
|
size: j,
|
|
2686
|
-
attributes:
|
|
2687
|
-
},
|
|
2688
|
-
return /* @__PURE__ */ o.jsxs(ue, { "data-decade-level": !0, size: j, ref: e, ...
|
|
2686
|
+
attributes: x
|
|
2687
|
+
}, F = typeof A == "boolean" ? A : i ? !z(w).endOf("year").isBefore(i) : !1, V = typeof N == "boolean" ? N : l ? !z(u).startOf("year").isAfter(l) : !1, q = (B, U) => z(B).locale(s || P.locale).format(U);
|
|
2688
|
+
return /* @__PURE__ */ o.jsxs(ue, { "data-decade-level": !0, size: j, ref: e, ...v, children: [
|
|
2689
2689
|
/* @__PURE__ */ o.jsx(
|
|
2690
2690
|
_t,
|
|
2691
2691
|
{
|
|
2692
|
-
label: typeof
|
|
2693
|
-
|
|
2694
|
-
|
|
2692
|
+
label: typeof E == "function" ? E(u, w) : `${q(u, E)} – ${q(
|
|
2693
|
+
w,
|
|
2694
|
+
E
|
|
2695
2695
|
)}`,
|
|
2696
2696
|
__preventFocus: b,
|
|
2697
2697
|
__stopPropagation: y,
|
|
2698
2698
|
nextIcon: D,
|
|
2699
|
-
previousIcon:
|
|
2699
|
+
previousIcon: T,
|
|
2700
2700
|
nextLabel: $,
|
|
2701
2701
|
previousLabel: Y,
|
|
2702
|
-
onNext:
|
|
2702
|
+
onNext: W,
|
|
2703
2703
|
onPrevious: L,
|
|
2704
|
-
nextDisabled:
|
|
2704
|
+
nextDisabled: F,
|
|
2705
2705
|
previousDisabled: V,
|
|
2706
2706
|
hasNextLevel: !1,
|
|
2707
2707
|
levelControlAriaLabel: M,
|
|
2708
2708
|
withNext: O,
|
|
2709
2709
|
withPrevious: _,
|
|
2710
2710
|
headerControlsOrder: k,
|
|
2711
|
-
...
|
|
2711
|
+
...C
|
|
2712
2712
|
}
|
|
2713
2713
|
),
|
|
2714
2714
|
/* @__PURE__ */ o.jsx(
|
|
@@ -2727,7 +2727,7 @@ const ai = {
|
|
|
2727
2727
|
__preventFocus: b,
|
|
2728
2728
|
__stopPropagation: y,
|
|
2729
2729
|
withCellSpacing: m,
|
|
2730
|
-
...
|
|
2730
|
+
...C
|
|
2731
2731
|
}
|
|
2732
2732
|
)
|
|
2733
2733
|
] });
|
|
@@ -2753,10 +2753,10 @@ const ii = {
|
|
|
2753
2753
|
// CalendarHeader settings
|
|
2754
2754
|
__preventFocus: b,
|
|
2755
2755
|
nextIcon: D,
|
|
2756
|
-
previousIcon:
|
|
2756
|
+
previousIcon: T,
|
|
2757
2757
|
nextLabel: $,
|
|
2758
2758
|
previousLabel: Y,
|
|
2759
|
-
onNext:
|
|
2759
|
+
onNext: W,
|
|
2760
2760
|
onPrevious: L,
|
|
2761
2761
|
onLevelClick: A,
|
|
2762
2762
|
nextDisabled: N,
|
|
@@ -2764,7 +2764,7 @@ const ii = {
|
|
|
2764
2764
|
hasNextLevel: O,
|
|
2765
2765
|
levelControlAriaLabel: _,
|
|
2766
2766
|
withNext: k,
|
|
2767
|
-
withPrevious:
|
|
2767
|
+
withPrevious: E,
|
|
2768
2768
|
headerControlsOrder: I,
|
|
2769
2769
|
// Other props
|
|
2770
2770
|
yearLabelFormat: R,
|
|
@@ -2772,40 +2772,40 @@ const ii = {
|
|
|
2772
2772
|
__stopPropagation: g,
|
|
2773
2773
|
size: y,
|
|
2774
2774
|
classNames: j,
|
|
2775
|
-
styles:
|
|
2776
|
-
unstyled:
|
|
2775
|
+
styles: x,
|
|
2776
|
+
unstyled: v,
|
|
2777
2777
|
attributes: P,
|
|
2778
2778
|
...u
|
|
2779
|
-
} = r,
|
|
2779
|
+
} = r, w = Dt(), C = {
|
|
2780
2780
|
__staticSelector: S || "YearLevel",
|
|
2781
2781
|
classNames: j,
|
|
2782
|
-
styles:
|
|
2783
|
-
unstyled:
|
|
2782
|
+
styles: x,
|
|
2783
|
+
unstyled: v,
|
|
2784
2784
|
size: y,
|
|
2785
2785
|
attributes: P
|
|
2786
|
-
},
|
|
2786
|
+
}, F = typeof N == "boolean" ? N : i ? !z(n).endOf("year").isBefore(i) : !1, V = typeof M == "boolean" ? M : l ? !z(n).startOf("year").isAfter(l) : !1;
|
|
2787
2787
|
return /* @__PURE__ */ o.jsxs(ue, { "data-year-level": !0, size: y, ref: e, ...u, children: [
|
|
2788
2788
|
/* @__PURE__ */ o.jsx(
|
|
2789
2789
|
_t,
|
|
2790
2790
|
{
|
|
2791
|
-
label: typeof R == "function" ? R(n) : z(n).locale(s ||
|
|
2791
|
+
label: typeof R == "function" ? R(n) : z(n).locale(s || w.locale).format(R),
|
|
2792
2792
|
__preventFocus: b,
|
|
2793
2793
|
__stopPropagation: g,
|
|
2794
2794
|
nextIcon: D,
|
|
2795
|
-
previousIcon:
|
|
2795
|
+
previousIcon: T,
|
|
2796
2796
|
nextLabel: $,
|
|
2797
2797
|
previousLabel: Y,
|
|
2798
|
-
onNext:
|
|
2798
|
+
onNext: W,
|
|
2799
2799
|
onPrevious: L,
|
|
2800
2800
|
onLevelClick: A,
|
|
2801
|
-
nextDisabled:
|
|
2801
|
+
nextDisabled: F,
|
|
2802
2802
|
previousDisabled: V,
|
|
2803
2803
|
hasNextLevel: O,
|
|
2804
2804
|
levelControlAriaLabel: _,
|
|
2805
2805
|
withNext: k,
|
|
2806
|
-
withPrevious:
|
|
2806
|
+
withPrevious: E,
|
|
2807
2807
|
headerControlsOrder: I,
|
|
2808
|
-
...
|
|
2808
|
+
...C
|
|
2809
2809
|
}
|
|
2810
2810
|
),
|
|
2811
2811
|
/* @__PURE__ */ o.jsx(
|
|
@@ -2824,7 +2824,7 @@ const ii = {
|
|
|
2824
2824
|
__preventFocus: b,
|
|
2825
2825
|
__stopPropagation: g,
|
|
2826
2826
|
withCellSpacing: m,
|
|
2827
|
-
...
|
|
2827
|
+
...C
|
|
2828
2828
|
}
|
|
2829
2829
|
)
|
|
2830
2830
|
] });
|
|
@@ -2849,10 +2849,10 @@ const li = {
|
|
|
2849
2849
|
hideOutsideDates: m,
|
|
2850
2850
|
hideWeekdays: b,
|
|
2851
2851
|
getDayAriaLabel: D,
|
|
2852
|
-
__getDayRef:
|
|
2852
|
+
__getDayRef: T,
|
|
2853
2853
|
__onDayKeyDown: $,
|
|
2854
2854
|
__onDayClick: Y,
|
|
2855
|
-
__onDayMouseEnter:
|
|
2855
|
+
__onDayMouseEnter: W,
|
|
2856
2856
|
withCellSpacing: L,
|
|
2857
2857
|
highlightToday: A,
|
|
2858
2858
|
withWeekNumbers: N,
|
|
@@ -2861,21 +2861,21 @@ const li = {
|
|
|
2861
2861
|
__stopPropagation: O,
|
|
2862
2862
|
nextIcon: _,
|
|
2863
2863
|
previousIcon: k,
|
|
2864
|
-
nextLabel:
|
|
2864
|
+
nextLabel: E,
|
|
2865
2865
|
previousLabel: I,
|
|
2866
2866
|
onNext: R,
|
|
2867
2867
|
onPrevious: S,
|
|
2868
2868
|
onLevelClick: g,
|
|
2869
2869
|
nextDisabled: y,
|
|
2870
2870
|
previousDisabled: j,
|
|
2871
|
-
hasNextLevel:
|
|
2872
|
-
levelControlAriaLabel:
|
|
2871
|
+
hasNextLevel: x,
|
|
2872
|
+
levelControlAriaLabel: v,
|
|
2873
2873
|
withNext: P,
|
|
2874
2874
|
withPrevious: u,
|
|
2875
|
-
headerControlsOrder:
|
|
2875
|
+
headerControlsOrder: w,
|
|
2876
2876
|
// Other props
|
|
2877
|
-
monthLabelFormat:
|
|
2878
|
-
classNames:
|
|
2877
|
+
monthLabelFormat: C,
|
|
2878
|
+
classNames: F,
|
|
2879
2879
|
styles: V,
|
|
2880
2880
|
unstyled: q,
|
|
2881
2881
|
__staticSelector: B,
|
|
@@ -2885,7 +2885,7 @@ const li = {
|
|
|
2885
2885
|
...X
|
|
2886
2886
|
} = r, J = Dt(), ee = {
|
|
2887
2887
|
__staticSelector: B || "MonthLevel",
|
|
2888
|
-
classNames:
|
|
2888
|
+
classNames: F,
|
|
2889
2889
|
styles: V,
|
|
2890
2890
|
unstyled: q,
|
|
2891
2891
|
size: U,
|
|
@@ -2895,23 +2895,23 @@ const li = {
|
|
|
2895
2895
|
/* @__PURE__ */ o.jsx(
|
|
2896
2896
|
_t,
|
|
2897
2897
|
{
|
|
2898
|
-
label: typeof
|
|
2898
|
+
label: typeof C == "function" ? C(n) : z(n).locale(s || J.locale).format(C),
|
|
2899
2899
|
__preventFocus: M,
|
|
2900
2900
|
__stopPropagation: O,
|
|
2901
2901
|
nextIcon: _,
|
|
2902
2902
|
previousIcon: k,
|
|
2903
|
-
nextLabel:
|
|
2903
|
+
nextLabel: E,
|
|
2904
2904
|
previousLabel: I,
|
|
2905
2905
|
onNext: R,
|
|
2906
2906
|
onPrevious: S,
|
|
2907
2907
|
onLevelClick: g,
|
|
2908
2908
|
nextDisabled: ae,
|
|
2909
2909
|
previousDisabled: de,
|
|
2910
|
-
hasNextLevel:
|
|
2911
|
-
levelControlAriaLabel:
|
|
2910
|
+
hasNextLevel: x,
|
|
2911
|
+
levelControlAriaLabel: v,
|
|
2912
2912
|
withNext: P,
|
|
2913
2913
|
withPrevious: u,
|
|
2914
|
-
headerControlsOrder:
|
|
2914
|
+
headerControlsOrder: w,
|
|
2915
2915
|
...ee
|
|
2916
2916
|
}
|
|
2917
2917
|
),
|
|
@@ -2931,10 +2931,10 @@ const li = {
|
|
|
2931
2931
|
hideOutsideDates: m,
|
|
2932
2932
|
hideWeekdays: b,
|
|
2933
2933
|
getDayAriaLabel: D,
|
|
2934
|
-
__getDayRef:
|
|
2934
|
+
__getDayRef: T,
|
|
2935
2935
|
__onDayKeyDown: $,
|
|
2936
2936
|
__onDayClick: Y,
|
|
2937
|
-
__onDayMouseEnter:
|
|
2937
|
+
__onDayMouseEnter: W,
|
|
2938
2938
|
__preventFocus: M,
|
|
2939
2939
|
__stopPropagation: O,
|
|
2940
2940
|
static: Q,
|
|
@@ -2996,10 +2996,10 @@ const ci = {
|
|
|
2996
2996
|
nextIcon: m,
|
|
2997
2997
|
previousIcon: b,
|
|
2998
2998
|
nextLabel: D,
|
|
2999
|
-
previousLabel:
|
|
2999
|
+
previousLabel: T,
|
|
3000
3000
|
onNext: $,
|
|
3001
3001
|
onPrevious: Y,
|
|
3002
|
-
nextDisabled:
|
|
3002
|
+
nextDisabled: W,
|
|
3003
3003
|
previousDisabled: L,
|
|
3004
3004
|
headerControlsOrder: A,
|
|
3005
3005
|
// Other settings
|
|
@@ -3008,37 +3008,37 @@ const ci = {
|
|
|
3008
3008
|
unstyled: O,
|
|
3009
3009
|
__staticSelector: _,
|
|
3010
3010
|
__stopPropagation: k,
|
|
3011
|
-
numberOfColumns:
|
|
3011
|
+
numberOfColumns: E,
|
|
3012
3012
|
levelControlAriaLabel: I,
|
|
3013
3013
|
decadeLabelFormat: R,
|
|
3014
3014
|
size: S,
|
|
3015
3015
|
vars: g,
|
|
3016
3016
|
attributes: y,
|
|
3017
3017
|
...j
|
|
3018
|
-
} = r,
|
|
3019
|
-
const
|
|
3018
|
+
} = r, x = ie([]), v = Array(E).fill(0).map((P, u) => {
|
|
3019
|
+
const w = z(n).add(u * 10, "years").format("YYYY-MM-DD");
|
|
3020
3020
|
return /* @__PURE__ */ o.jsx(
|
|
3021
3021
|
Pr,
|
|
3022
3022
|
{
|
|
3023
3023
|
size: S,
|
|
3024
3024
|
yearsListFormat: a,
|
|
3025
|
-
decade:
|
|
3026
|
-
withNext: u ===
|
|
3025
|
+
decade: w,
|
|
3026
|
+
withNext: u === E - 1,
|
|
3027
3027
|
withPrevious: u === 0,
|
|
3028
3028
|
decadeLabelFormat: R,
|
|
3029
3029
|
__onControlClick: d,
|
|
3030
3030
|
__onControlMouseEnter: h,
|
|
3031
|
-
__onControlKeyDown: (
|
|
3031
|
+
__onControlKeyDown: (C, F) => un({
|
|
3032
3032
|
levelIndex: u,
|
|
3033
|
-
rowIndex:
|
|
3034
|
-
cellIndex:
|
|
3035
|
-
event:
|
|
3036
|
-
controlsRef:
|
|
3033
|
+
rowIndex: F.rowIndex,
|
|
3034
|
+
cellIndex: F.cellIndex,
|
|
3035
|
+
event: C,
|
|
3036
|
+
controlsRef: x
|
|
3037
3037
|
}),
|
|
3038
|
-
__getControlRef: (
|
|
3039
|
-
Array.isArray(
|
|
3038
|
+
__getControlRef: (C, F, V) => {
|
|
3039
|
+
Array.isArray(x.current[u]) || (x.current[u] = []), Array.isArray(x.current[u][C]) || (x.current[u][C] = []), x.current[u][C][F] = V;
|
|
3040
3040
|
},
|
|
3041
|
-
levelControlAriaLabel: typeof I == "function" ? I(
|
|
3041
|
+
levelControlAriaLabel: typeof I == "function" ? I(w) : I,
|
|
3042
3042
|
locale: s,
|
|
3043
3043
|
minDate: l,
|
|
3044
3044
|
maxDate: i,
|
|
@@ -3047,10 +3047,10 @@ const ci = {
|
|
|
3047
3047
|
nextIcon: m,
|
|
3048
3048
|
previousIcon: b,
|
|
3049
3049
|
nextLabel: D,
|
|
3050
|
-
previousLabel:
|
|
3050
|
+
previousLabel: T,
|
|
3051
3051
|
onNext: $,
|
|
3052
3052
|
onPrevious: Y,
|
|
3053
|
-
nextDisabled:
|
|
3053
|
+
nextDisabled: W,
|
|
3054
3054
|
previousDisabled: L,
|
|
3055
3055
|
getYearControlProps: c,
|
|
3056
3056
|
__staticSelector: _ || "DecadeLevelGroup",
|
|
@@ -3075,7 +3075,7 @@ const ci = {
|
|
|
3075
3075
|
unstyled: O,
|
|
3076
3076
|
attributes: y,
|
|
3077
3077
|
...j,
|
|
3078
|
-
children:
|
|
3078
|
+
children: v
|
|
3079
3079
|
}
|
|
3080
3080
|
);
|
|
3081
3081
|
});
|
|
@@ -3083,7 +3083,7 @@ Or.classes = { ...kt.classes, ...Pr.classes };
|
|
|
3083
3083
|
Or.displayName = "@mantine/dates/DecadeLevelGroup";
|
|
3084
3084
|
const ui = {
|
|
3085
3085
|
numberOfColumns: 1
|
|
3086
|
-
},
|
|
3086
|
+
}, Er = ke((t, e) => {
|
|
3087
3087
|
const r = Re("YearLevelGroup", ui, t), {
|
|
3088
3088
|
// YearLevel settings
|
|
3089
3089
|
year: n,
|
|
@@ -3100,10 +3100,10 @@ const ui = {
|
|
|
3100
3100
|
nextIcon: m,
|
|
3101
3101
|
previousIcon: b,
|
|
3102
3102
|
nextLabel: D,
|
|
3103
|
-
previousLabel:
|
|
3103
|
+
previousLabel: T,
|
|
3104
3104
|
onNext: $,
|
|
3105
3105
|
onPrevious: Y,
|
|
3106
|
-
onLevelClick:
|
|
3106
|
+
onLevelClick: W,
|
|
3107
3107
|
nextDisabled: L,
|
|
3108
3108
|
previousDisabled: A,
|
|
3109
3109
|
hasNextLevel: N,
|
|
@@ -3112,40 +3112,40 @@ const ui = {
|
|
|
3112
3112
|
classNames: O,
|
|
3113
3113
|
styles: _,
|
|
3114
3114
|
unstyled: k,
|
|
3115
|
-
__staticSelector:
|
|
3115
|
+
__staticSelector: E,
|
|
3116
3116
|
__stopPropagation: I,
|
|
3117
3117
|
numberOfColumns: R,
|
|
3118
3118
|
levelControlAriaLabel: S,
|
|
3119
3119
|
yearLabelFormat: g,
|
|
3120
3120
|
size: y,
|
|
3121
3121
|
vars: j,
|
|
3122
|
-
attributes:
|
|
3123
|
-
...
|
|
3124
|
-
} = r, P = ie([]), u = Array(R).fill(0).map((
|
|
3125
|
-
const
|
|
3122
|
+
attributes: x,
|
|
3123
|
+
...v
|
|
3124
|
+
} = r, P = ie([]), u = Array(R).fill(0).map((w, C) => {
|
|
3125
|
+
const F = z(n).add(C, "years").format("YYYY-MM-DD");
|
|
3126
3126
|
return /* @__PURE__ */ o.jsx(
|
|
3127
3127
|
Mr,
|
|
3128
3128
|
{
|
|
3129
3129
|
size: y,
|
|
3130
3130
|
monthsListFormat: a,
|
|
3131
|
-
year:
|
|
3132
|
-
withNext:
|
|
3133
|
-
withPrevious:
|
|
3131
|
+
year: F,
|
|
3132
|
+
withNext: C === R - 1,
|
|
3133
|
+
withPrevious: C === 0,
|
|
3134
3134
|
yearLabelFormat: g,
|
|
3135
3135
|
__stopPropagation: I,
|
|
3136
3136
|
__onControlClick: d,
|
|
3137
3137
|
__onControlMouseEnter: h,
|
|
3138
3138
|
__onControlKeyDown: (V, q) => un({
|
|
3139
|
-
levelIndex:
|
|
3139
|
+
levelIndex: C,
|
|
3140
3140
|
rowIndex: q.rowIndex,
|
|
3141
3141
|
cellIndex: q.cellIndex,
|
|
3142
3142
|
event: V,
|
|
3143
3143
|
controlsRef: P
|
|
3144
3144
|
}),
|
|
3145
3145
|
__getControlRef: (V, q, B) => {
|
|
3146
|
-
Array.isArray(P.current[
|
|
3146
|
+
Array.isArray(P.current[C]) || (P.current[C] = []), Array.isArray(P.current[C][V]) || (P.current[C][V] = []), P.current[C][V][q] = B;
|
|
3147
3147
|
},
|
|
3148
|
-
levelControlAriaLabel: typeof S == "function" ? S(
|
|
3148
|
+
levelControlAriaLabel: typeof S == "function" ? S(F) : S,
|
|
3149
3149
|
locale: s,
|
|
3150
3150
|
minDate: l,
|
|
3151
3151
|
maxDate: i,
|
|
@@ -3153,10 +3153,10 @@ const ui = {
|
|
|
3153
3153
|
nextIcon: m,
|
|
3154
3154
|
previousIcon: b,
|
|
3155
3155
|
nextLabel: D,
|
|
3156
|
-
previousLabel:
|
|
3156
|
+
previousLabel: T,
|
|
3157
3157
|
onNext: $,
|
|
3158
3158
|
onPrevious: Y,
|
|
3159
|
-
onLevelClick:
|
|
3159
|
+
onLevelClick: W,
|
|
3160
3160
|
nextDisabled: L,
|
|
3161
3161
|
previousDisabled: A,
|
|
3162
3162
|
hasNextLevel: N,
|
|
@@ -3164,12 +3164,12 @@ const ui = {
|
|
|
3164
3164
|
classNames: O,
|
|
3165
3165
|
styles: _,
|
|
3166
3166
|
unstyled: k,
|
|
3167
|
-
__staticSelector:
|
|
3167
|
+
__staticSelector: E || "YearLevelGroup",
|
|
3168
3168
|
withCellSpacing: p,
|
|
3169
3169
|
headerControlsOrder: M,
|
|
3170
|
-
attributes:
|
|
3170
|
+
attributes: x
|
|
3171
3171
|
},
|
|
3172
|
-
|
|
3172
|
+
C
|
|
3173
3173
|
);
|
|
3174
3174
|
});
|
|
3175
3175
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -3177,21 +3177,21 @@ const ui = {
|
|
|
3177
3177
|
{
|
|
3178
3178
|
classNames: O,
|
|
3179
3179
|
styles: _,
|
|
3180
|
-
__staticSelector:
|
|
3180
|
+
__staticSelector: E || "YearLevelGroup",
|
|
3181
3181
|
ref: e,
|
|
3182
3182
|
size: y,
|
|
3183
3183
|
unstyled: k,
|
|
3184
|
-
attributes:
|
|
3185
|
-
...
|
|
3184
|
+
attributes: x,
|
|
3185
|
+
...v,
|
|
3186
3186
|
children: u
|
|
3187
3187
|
}
|
|
3188
3188
|
);
|
|
3189
3189
|
});
|
|
3190
|
-
|
|
3191
|
-
|
|
3190
|
+
Er.classes = { ...Mr.classes, ...kt.classes };
|
|
3191
|
+
Er.displayName = "@mantine/dates/YearLevelGroup";
|
|
3192
3192
|
const di = {
|
|
3193
3193
|
numberOfColumns: 1
|
|
3194
|
-
},
|
|
3194
|
+
}, Tr = ke((t, e) => {
|
|
3195
3195
|
const r = Re("MonthLevelGroup", di, t), {
|
|
3196
3196
|
// Month settings
|
|
3197
3197
|
month: n,
|
|
@@ -3207,10 +3207,10 @@ const di = {
|
|
|
3207
3207
|
hideOutsideDates: m,
|
|
3208
3208
|
hideWeekdays: b,
|
|
3209
3209
|
getDayAriaLabel: D,
|
|
3210
|
-
__onDayClick:
|
|
3210
|
+
__onDayClick: T,
|
|
3211
3211
|
__onDayMouseEnter: $,
|
|
3212
3212
|
withCellSpacing: Y,
|
|
3213
|
-
highlightToday:
|
|
3213
|
+
highlightToday: W,
|
|
3214
3214
|
withWeekNumbers: L,
|
|
3215
3215
|
// CalendarHeader settings
|
|
3216
3216
|
__preventFocus: A,
|
|
@@ -3219,7 +3219,7 @@ const di = {
|
|
|
3219
3219
|
nextLabel: O,
|
|
3220
3220
|
previousLabel: _,
|
|
3221
3221
|
onNext: k,
|
|
3222
|
-
onPrevious:
|
|
3222
|
+
onPrevious: E,
|
|
3223
3223
|
onLevelClick: I,
|
|
3224
3224
|
nextDisabled: R,
|
|
3225
3225
|
previousDisabled: S,
|
|
@@ -3227,13 +3227,13 @@ const di = {
|
|
|
3227
3227
|
headerControlsOrder: y,
|
|
3228
3228
|
// Other settings
|
|
3229
3229
|
classNames: j,
|
|
3230
|
-
styles:
|
|
3231
|
-
unstyled:
|
|
3230
|
+
styles: x,
|
|
3231
|
+
unstyled: v,
|
|
3232
3232
|
numberOfColumns: P,
|
|
3233
3233
|
levelControlAriaLabel: u,
|
|
3234
|
-
monthLabelFormat:
|
|
3235
|
-
__staticSelector:
|
|
3236
|
-
__stopPropagation:
|
|
3234
|
+
monthLabelFormat: w,
|
|
3235
|
+
__staticSelector: C,
|
|
3236
|
+
__stopPropagation: F,
|
|
3237
3237
|
size: V,
|
|
3238
3238
|
static: q,
|
|
3239
3239
|
vars: B,
|
|
@@ -3247,9 +3247,9 @@ const di = {
|
|
|
3247
3247
|
month: ae,
|
|
3248
3248
|
withNext: ee === P - 1,
|
|
3249
3249
|
withPrevious: ee === 0,
|
|
3250
|
-
monthLabelFormat:
|
|
3251
|
-
__stopPropagation:
|
|
3252
|
-
__onDayClick:
|
|
3250
|
+
monthLabelFormat: w,
|
|
3251
|
+
__stopPropagation: F,
|
|
3252
|
+
__onDayClick: T,
|
|
3253
3253
|
__onDayMouseEnter: $,
|
|
3254
3254
|
__onDayKeyDown: (de, te) => un({
|
|
3255
3255
|
levelIndex: ee,
|
|
@@ -3280,19 +3280,19 @@ const di = {
|
|
|
3280
3280
|
nextLabel: O,
|
|
3281
3281
|
previousLabel: _,
|
|
3282
3282
|
onNext: k,
|
|
3283
|
-
onPrevious:
|
|
3283
|
+
onPrevious: E,
|
|
3284
3284
|
onLevelClick: I,
|
|
3285
3285
|
nextDisabled: R,
|
|
3286
3286
|
previousDisabled: S,
|
|
3287
3287
|
hasNextLevel: g,
|
|
3288
3288
|
classNames: j,
|
|
3289
|
-
styles:
|
|
3290
|
-
unstyled:
|
|
3291
|
-
__staticSelector:
|
|
3289
|
+
styles: x,
|
|
3290
|
+
unstyled: v,
|
|
3291
|
+
__staticSelector: C || "MonthLevelGroup",
|
|
3292
3292
|
size: V,
|
|
3293
3293
|
static: q,
|
|
3294
3294
|
withCellSpacing: Y,
|
|
3295
|
-
highlightToday:
|
|
3295
|
+
highlightToday: W,
|
|
3296
3296
|
withWeekNumbers: L,
|
|
3297
3297
|
headerControlsOrder: y,
|
|
3298
3298
|
attributes: U
|
|
@@ -3304,8 +3304,8 @@ const di = {
|
|
|
3304
3304
|
kt,
|
|
3305
3305
|
{
|
|
3306
3306
|
classNames: j,
|
|
3307
|
-
styles:
|
|
3308
|
-
__staticSelector:
|
|
3307
|
+
styles: x,
|
|
3308
|
+
__staticSelector: C || "MonthLevelGroup",
|
|
3309
3309
|
ref: e,
|
|
3310
3310
|
size: V,
|
|
3311
3311
|
attributes: U,
|
|
@@ -3314,8 +3314,8 @@ const di = {
|
|
|
3314
3314
|
}
|
|
3315
3315
|
);
|
|
3316
3316
|
});
|
|
3317
|
-
|
|
3318
|
-
|
|
3317
|
+
Tr.classes = { ...kt.classes, ...Rr.classes };
|
|
3318
|
+
Tr.displayName = "@mantine/dates/MonthLevelGroup";
|
|
3319
3319
|
const qn = (t) => t === "range" ? [null, null] : t === "multiple" ? [] : null, Qn = (t, e) => {
|
|
3320
3320
|
const r = e ? Ps : Qe;
|
|
3321
3321
|
return Array.isArray(t) ? t.map(r) : r(t);
|
|
@@ -3373,10 +3373,10 @@ const fi = {
|
|
|
3373
3373
|
columnsToScroll: m,
|
|
3374
3374
|
ariaLabels: b,
|
|
3375
3375
|
nextLabel: D,
|
|
3376
|
-
previousLabel:
|
|
3376
|
+
previousLabel: T,
|
|
3377
3377
|
onYearSelect: $,
|
|
3378
3378
|
onMonthSelect: Y,
|
|
3379
|
-
onYearMouseEnter:
|
|
3379
|
+
onYearMouseEnter: W,
|
|
3380
3380
|
onMonthMouseEnter: L,
|
|
3381
3381
|
headerControlsOrder: A,
|
|
3382
3382
|
__updateDateOnYearSelect: N,
|
|
@@ -3385,20 +3385,20 @@ const fi = {
|
|
|
3385
3385
|
__setLevelRef: _,
|
|
3386
3386
|
// MonthLevelGroup props
|
|
3387
3387
|
firstDayOfWeek: k,
|
|
3388
|
-
weekdayFormat:
|
|
3388
|
+
weekdayFormat: E,
|
|
3389
3389
|
weekendDays: I,
|
|
3390
3390
|
getDayProps: R,
|
|
3391
3391
|
excludeDate: S,
|
|
3392
3392
|
renderDay: g,
|
|
3393
3393
|
hideOutsideDates: y,
|
|
3394
3394
|
hideWeekdays: j,
|
|
3395
|
-
getDayAriaLabel:
|
|
3396
|
-
monthLabelFormat:
|
|
3395
|
+
getDayAriaLabel: x,
|
|
3396
|
+
monthLabelFormat: v,
|
|
3397
3397
|
nextIcon: P,
|
|
3398
3398
|
previousIcon: u,
|
|
3399
|
-
__onDayClick:
|
|
3400
|
-
__onDayMouseEnter:
|
|
3401
|
-
withCellSpacing:
|
|
3399
|
+
__onDayClick: w,
|
|
3400
|
+
__onDayMouseEnter: C,
|
|
3401
|
+
withCellSpacing: F,
|
|
3402
3402
|
highlightToday: V,
|
|
3403
3403
|
withWeekNumbers: q,
|
|
3404
3404
|
// YearLevelGroup props
|
|
@@ -3416,7 +3416,7 @@ const fi = {
|
|
|
3416
3416
|
minDate: te,
|
|
3417
3417
|
maxDate: je,
|
|
3418
3418
|
locale: pe,
|
|
3419
|
-
__staticSelector:
|
|
3419
|
+
__staticSelector: Te,
|
|
3420
3420
|
size: Oe,
|
|
3421
3421
|
__preventFocus: lt,
|
|
3422
3422
|
__stopPropagation: Ie,
|
|
@@ -3451,7 +3451,7 @@ const fi = {
|
|
|
3451
3451
|
ze(K);
|
|
3452
3452
|
});
|
|
3453
3453
|
const ut = {
|
|
3454
|
-
__staticSelector:
|
|
3454
|
+
__staticSelector: Te || "Calendar",
|
|
3455
3455
|
styles: gt,
|
|
3456
3456
|
classNames: pt,
|
|
3457
3457
|
unstyled: de,
|
|
@@ -3460,7 +3460,7 @@ const fi = {
|
|
|
3460
3460
|
}, Ne = m || f || 1, dt = /* @__PURE__ */ new Date(), Pt = te && z(dt).isAfter(te) ? te : z(dt).format("YYYY-MM-DD"), we = jt || Pt, Mt = () => {
|
|
3461
3461
|
const K = z(we).add(Ne, "month").format("YYYY-MM-DD");
|
|
3462
3462
|
G?.(K), Ce(K);
|
|
3463
|
-
},
|
|
3463
|
+
}, Ee = () => {
|
|
3464
3464
|
const K = z(we).subtract(Ne, "month").format("YYYY-MM-DD");
|
|
3465
3465
|
ge?.(K), Ce(K);
|
|
3466
3466
|
}, ht = () => {
|
|
@@ -3513,22 +3513,22 @@ const fi = {
|
|
|
3513
3513
|
};
|
|
3514
3514
|
return /* @__PURE__ */ o.jsxs(ue, { ref: at, size: Oe, "data-calendar": !0, ...Le, children: [
|
|
3515
3515
|
Ge === "month" && /* @__PURE__ */ o.jsx(
|
|
3516
|
-
|
|
3516
|
+
Tr,
|
|
3517
3517
|
{
|
|
3518
3518
|
month: we,
|
|
3519
3519
|
minDate: te,
|
|
3520
3520
|
maxDate: je,
|
|
3521
3521
|
firstDayOfWeek: k,
|
|
3522
|
-
weekdayFormat:
|
|
3522
|
+
weekdayFormat: E,
|
|
3523
3523
|
weekendDays: I,
|
|
3524
3524
|
getDayProps: R,
|
|
3525
3525
|
excludeDate: S,
|
|
3526
3526
|
renderDay: g,
|
|
3527
3527
|
hideOutsideDates: y,
|
|
3528
3528
|
hideWeekdays: j,
|
|
3529
|
-
getDayAriaLabel:
|
|
3529
|
+
getDayAriaLabel: x,
|
|
3530
3530
|
onNext: Mt,
|
|
3531
|
-
onPrevious:
|
|
3531
|
+
onPrevious: Ee,
|
|
3532
3532
|
hasNextLevel: s !== "month",
|
|
3533
3533
|
onLevelClick: () => ze("year"),
|
|
3534
3534
|
numberOfColumns: f,
|
|
@@ -3536,15 +3536,15 @@ const fi = {
|
|
|
3536
3536
|
levelControlAriaLabel: b?.monthLevelControl,
|
|
3537
3537
|
nextLabel: b?.nextMonth ?? D,
|
|
3538
3538
|
nextIcon: P,
|
|
3539
|
-
previousLabel: b?.previousMonth ??
|
|
3539
|
+
previousLabel: b?.previousMonth ?? T,
|
|
3540
3540
|
previousIcon: u,
|
|
3541
|
-
monthLabelFormat:
|
|
3542
|
-
__onDayClick:
|
|
3543
|
-
__onDayMouseEnter:
|
|
3541
|
+
monthLabelFormat: v,
|
|
3542
|
+
__onDayClick: w,
|
|
3543
|
+
__onDayMouseEnter: C,
|
|
3544
3544
|
__preventFocus: lt,
|
|
3545
3545
|
__stopPropagation: Ie,
|
|
3546
3546
|
static: fe,
|
|
3547
|
-
withCellSpacing:
|
|
3547
|
+
withCellSpacing: F,
|
|
3548
3548
|
highlightToday: V,
|
|
3549
3549
|
withWeekNumbers: q,
|
|
3550
3550
|
headerControlsOrder: A,
|
|
@@ -3552,7 +3552,7 @@ const fi = {
|
|
|
3552
3552
|
}
|
|
3553
3553
|
),
|
|
3554
3554
|
Ge === "year" && /* @__PURE__ */ o.jsx(
|
|
3555
|
-
|
|
3555
|
+
Er,
|
|
3556
3556
|
{
|
|
3557
3557
|
year: we,
|
|
3558
3558
|
numberOfColumns: f,
|
|
@@ -3568,7 +3568,7 @@ const fi = {
|
|
|
3568
3568
|
levelControlAriaLabel: b?.yearLevelControl,
|
|
3569
3569
|
nextLabel: b?.nextYear ?? D,
|
|
3570
3570
|
nextIcon: P,
|
|
3571
|
-
previousLabel: b?.previousYear ??
|
|
3571
|
+
previousLabel: b?.previousYear ?? T,
|
|
3572
3572
|
previousIcon: u,
|
|
3573
3573
|
yearLabelFormat: Q,
|
|
3574
3574
|
__onControlMouseEnter: L,
|
|
@@ -3577,7 +3577,7 @@ const fi = {
|
|
|
3577
3577
|
},
|
|
3578
3578
|
__preventFocus: lt,
|
|
3579
3579
|
__stopPropagation: Ie,
|
|
3580
|
-
withCellSpacing:
|
|
3580
|
+
withCellSpacing: F,
|
|
3581
3581
|
headerControlsOrder: A,
|
|
3582
3582
|
...ut
|
|
3583
3583
|
}
|
|
@@ -3596,16 +3596,16 @@ const fi = {
|
|
|
3596
3596
|
numberOfColumns: f,
|
|
3597
3597
|
nextLabel: b?.nextDecade ?? D,
|
|
3598
3598
|
nextIcon: P,
|
|
3599
|
-
previousLabel: b?.previousDecade ??
|
|
3599
|
+
previousLabel: b?.previousDecade ?? T,
|
|
3600
3600
|
previousIcon: u,
|
|
3601
3601
|
decadeLabelFormat: J,
|
|
3602
|
-
__onControlMouseEnter:
|
|
3602
|
+
__onControlMouseEnter: W,
|
|
3603
3603
|
__onControlClick: (K, le) => {
|
|
3604
3604
|
N && Ce(le), ze(Jt("year", l, s)), $?.(le);
|
|
3605
3605
|
},
|
|
3606
3606
|
__preventFocus: lt,
|
|
3607
3607
|
__stopPropagation: Ie,
|
|
3608
|
-
withCellSpacing:
|
|
3608
|
+
withCellSpacing: F,
|
|
3609
3609
|
headerControlsOrder: A,
|
|
3610
3610
|
...ut
|
|
3611
3611
|
}
|
|
@@ -3614,8 +3614,8 @@ const fi = {
|
|
|
3614
3614
|
});
|
|
3615
3615
|
Lr.classes = {
|
|
3616
3616
|
...Or.classes,
|
|
3617
|
-
...
|
|
3618
|
-
...
|
|
3617
|
+
...Er.classes,
|
|
3618
|
+
...Tr.classes
|
|
3619
3619
|
};
|
|
3620
3620
|
Lr.displayName = "@mantine/dates/Calendar";
|
|
3621
3621
|
function mi(t) {
|
|
@@ -3635,10 +3635,10 @@ function mi(t) {
|
|
|
3635
3635
|
ariaLabels: m,
|
|
3636
3636
|
nextLabel: b,
|
|
3637
3637
|
previousLabel: D,
|
|
3638
|
-
onYearSelect:
|
|
3638
|
+
onYearSelect: T,
|
|
3639
3639
|
onMonthSelect: $,
|
|
3640
3640
|
onYearMouseEnter: Y,
|
|
3641
|
-
onMonthMouseEnter:
|
|
3641
|
+
onMonthMouseEnter: W,
|
|
3642
3642
|
onNextMonth: L,
|
|
3643
3643
|
onPreviousMonth: A,
|
|
3644
3644
|
onNextYear: N,
|
|
@@ -3646,7 +3646,7 @@ function mi(t) {
|
|
|
3646
3646
|
onNextDecade: O,
|
|
3647
3647
|
onPreviousDecade: _,
|
|
3648
3648
|
withCellSpacing: k,
|
|
3649
|
-
highlightToday:
|
|
3649
|
+
highlightToday: E,
|
|
3650
3650
|
__updateDateOnYearSelect: I,
|
|
3651
3651
|
__updateDateOnMonthSelect: R,
|
|
3652
3652
|
__setDateRef: S,
|
|
@@ -3654,13 +3654,13 @@ function mi(t) {
|
|
|
3654
3654
|
withWeekNumbers: y,
|
|
3655
3655
|
headerControlsOrder: j,
|
|
3656
3656
|
// MonthLevelGroup props
|
|
3657
|
-
firstDayOfWeek:
|
|
3658
|
-
weekdayFormat:
|
|
3657
|
+
firstDayOfWeek: x,
|
|
3658
|
+
weekdayFormat: v,
|
|
3659
3659
|
weekendDays: P,
|
|
3660
3660
|
getDayProps: u,
|
|
3661
|
-
excludeDate:
|
|
3662
|
-
renderDay:
|
|
3663
|
-
hideOutsideDates:
|
|
3661
|
+
excludeDate: w,
|
|
3662
|
+
renderDay: C,
|
|
3663
|
+
hideOutsideDates: F,
|
|
3664
3664
|
hideWeekdays: V,
|
|
3665
3665
|
getDayAriaLabel: q,
|
|
3666
3666
|
monthLabelFormat: B,
|
|
@@ -3679,7 +3679,7 @@ function mi(t) {
|
|
|
3679
3679
|
minDate: te,
|
|
3680
3680
|
maxDate: je,
|
|
3681
3681
|
locale: pe,
|
|
3682
|
-
...
|
|
3682
|
+
...Te
|
|
3683
3683
|
} = t;
|
|
3684
3684
|
return {
|
|
3685
3685
|
calendarProps: {
|
|
@@ -3698,10 +3698,10 @@ function mi(t) {
|
|
|
3698
3698
|
ariaLabels: m,
|
|
3699
3699
|
nextLabel: b,
|
|
3700
3700
|
previousLabel: D,
|
|
3701
|
-
onYearSelect:
|
|
3701
|
+
onYearSelect: T,
|
|
3702
3702
|
onMonthSelect: $,
|
|
3703
3703
|
onYearMouseEnter: Y,
|
|
3704
|
-
onMonthMouseEnter:
|
|
3704
|
+
onMonthMouseEnter: W,
|
|
3705
3705
|
onNextMonth: L,
|
|
3706
3706
|
onPreviousMonth: A,
|
|
3707
3707
|
onNextYear: N,
|
|
@@ -3709,20 +3709,20 @@ function mi(t) {
|
|
|
3709
3709
|
onNextDecade: O,
|
|
3710
3710
|
onPreviousDecade: _,
|
|
3711
3711
|
withCellSpacing: k,
|
|
3712
|
-
highlightToday:
|
|
3712
|
+
highlightToday: E,
|
|
3713
3713
|
__updateDateOnYearSelect: I,
|
|
3714
3714
|
__updateDateOnMonthSelect: R,
|
|
3715
3715
|
__setDateRef: S,
|
|
3716
3716
|
withWeekNumbers: y,
|
|
3717
3717
|
headerControlsOrder: j,
|
|
3718
3718
|
// MonthLevelGroup props
|
|
3719
|
-
firstDayOfWeek:
|
|
3720
|
-
weekdayFormat:
|
|
3719
|
+
firstDayOfWeek: x,
|
|
3720
|
+
weekdayFormat: v,
|
|
3721
3721
|
weekendDays: P,
|
|
3722
3722
|
getDayProps: u,
|
|
3723
|
-
excludeDate:
|
|
3724
|
-
renderDay:
|
|
3725
|
-
hideOutsideDates:
|
|
3723
|
+
excludeDate: w,
|
|
3724
|
+
renderDay: C,
|
|
3725
|
+
hideOutsideDates: F,
|
|
3726
3726
|
hideWeekdays: V,
|
|
3727
3727
|
getDayAriaLabel: q,
|
|
3728
3728
|
monthLabelFormat: B,
|
|
@@ -3742,7 +3742,7 @@ function mi(t) {
|
|
|
3742
3742
|
maxDate: je,
|
|
3743
3743
|
locale: pe
|
|
3744
3744
|
},
|
|
3745
|
-
others:
|
|
3745
|
+
others: Te
|
|
3746
3746
|
};
|
|
3747
3747
|
}
|
|
3748
3748
|
function pi(t) {
|
|
@@ -3773,10 +3773,10 @@ const bi = {
|
|
|
3773
3773
|
valueFormat: m,
|
|
3774
3774
|
dateParser: b,
|
|
3775
3775
|
minDate: D,
|
|
3776
|
-
maxDate:
|
|
3776
|
+
maxDate: T,
|
|
3777
3777
|
fixOnBlur: $,
|
|
3778
3778
|
onFocus: Y,
|
|
3779
|
-
onBlur:
|
|
3779
|
+
onBlur: W,
|
|
3780
3780
|
onClick: L,
|
|
3781
3781
|
onKeyDown: A,
|
|
3782
3782
|
readOnly: N,
|
|
@@ -3784,17 +3784,17 @@ const bi = {
|
|
|
3784
3784
|
form: O,
|
|
3785
3785
|
rightSection: _,
|
|
3786
3786
|
unstyled: k,
|
|
3787
|
-
classNames:
|
|
3787
|
+
classNames: E,
|
|
3788
3788
|
styles: I,
|
|
3789
3789
|
allowDeselect: R,
|
|
3790
3790
|
date: S,
|
|
3791
3791
|
defaultDate: g,
|
|
3792
3792
|
onDateChange: y,
|
|
3793
3793
|
getMonthControlProps: j,
|
|
3794
|
-
getYearControlProps:
|
|
3795
|
-
disabled:
|
|
3794
|
+
getYearControlProps: x,
|
|
3795
|
+
disabled: v,
|
|
3796
3796
|
...P
|
|
3797
|
-
} = r, u = ie(null),
|
|
3797
|
+
} = r, u = ie(null), w = ie(null), [C, F] = se(!1), { calendarProps: V, others: q } = mi(P), B = Dt(), Q = b || ((G) => {
|
|
3798
3798
|
const ge = z(G, m, B.getLocale(f)).toDate();
|
|
3799
3799
|
return Number.isNaN(ge.getTime()) ? pi(G) : z(ge).format("YYYY-MM-DD");
|
|
3800
3800
|
}), H = R !== void 0 ? R : c, X = (G) => G ? z(G).locale(B.getLocale(f)).format(m) : "", [J, ee, ae] = tn({
|
|
@@ -3815,53 +3815,53 @@ const bi = {
|
|
|
3815
3815
|
be(() => {
|
|
3816
3816
|
pe(X(J));
|
|
3817
3817
|
}, [B.getLocale(f)]);
|
|
3818
|
-
const
|
|
3818
|
+
const Te = (G) => {
|
|
3819
3819
|
const ge = G.currentTarget.value;
|
|
3820
|
-
if (pe(ge),
|
|
3820
|
+
if (pe(ge), F(!0), ge.trim() === "" && (R || c))
|
|
3821
3821
|
ee(null);
|
|
3822
3822
|
else {
|
|
3823
3823
|
const fe = Q(ge);
|
|
3824
|
-
fe && gi({ date: fe, minDate: D, maxDate:
|
|
3824
|
+
fe && gi({ date: fe, minDate: D, maxDate: T }) && (ee(fe), te(fe));
|
|
3825
3825
|
}
|
|
3826
3826
|
}, Oe = (G) => {
|
|
3827
|
-
|
|
3827
|
+
W?.(G), F(!1), $ && pe(X(J));
|
|
3828
3828
|
}, lt = (G) => {
|
|
3829
|
-
Y?.(G),
|
|
3829
|
+
Y?.(G), F(!0);
|
|
3830
3830
|
}, Ie = (G) => {
|
|
3831
|
-
L?.(G),
|
|
3831
|
+
L?.(G), F(!0);
|
|
3832
3832
|
}, nt = (G) => {
|
|
3833
|
-
G.key === "Escape" &&
|
|
3833
|
+
G.key === "Escape" && F(!1), A?.(G);
|
|
3834
3834
|
}, Fe = (G) => ({
|
|
3835
3835
|
...p?.(G),
|
|
3836
3836
|
selected: z(J).isSame(G, "day"),
|
|
3837
3837
|
onClick: (ge) => {
|
|
3838
3838
|
p?.(G).onClick?.(ge);
|
|
3839
3839
|
const fe = H && z(J).isSame(G, "day") ? null : G;
|
|
3840
|
-
ee(fe), !ae && fe && pe(X(fe)),
|
|
3840
|
+
ee(fe), !ae && fe && pe(X(fe)), F(!1);
|
|
3841
3841
|
}
|
|
3842
3842
|
}), We = /* @__PURE__ */ o.jsx(
|
|
3843
3843
|
fr.ClearButton,
|
|
3844
3844
|
{
|
|
3845
3845
|
onClick: () => {
|
|
3846
|
-
ee(null), !ae && pe(""),
|
|
3846
|
+
ee(null), !ae && pe(""), F(!1);
|
|
3847
3847
|
},
|
|
3848
3848
|
unstyled: k,
|
|
3849
3849
|
...d
|
|
3850
3850
|
}
|
|
3851
|
-
), st = c && !!J && !N && !
|
|
3851
|
+
), st = c && !!J && !N && !v;
|
|
3852
3852
|
return yo(() => {
|
|
3853
|
-
J !== void 0 && !
|
|
3854
|
-
}, [J]), vs(() =>
|
|
3853
|
+
J !== void 0 && !C && pe(X(J));
|
|
3854
|
+
}, [J]), vs(() => F(!1), void 0, [
|
|
3855
3855
|
u.current,
|
|
3856
|
-
|
|
3856
|
+
w.current
|
|
3857
3857
|
]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3858
3858
|
/* @__PURE__ */ o.jsx(fr.Wrapper, { ...s, __staticSelector: "DateInput", ref: u, children: /* @__PURE__ */ o.jsxs(
|
|
3859
3859
|
Xt,
|
|
3860
3860
|
{
|
|
3861
|
-
opened:
|
|
3861
|
+
opened: C,
|
|
3862
3862
|
trapFocus: !1,
|
|
3863
3863
|
position: "bottom-start",
|
|
3864
|
-
disabled: N ||
|
|
3864
|
+
disabled: N || v,
|
|
3865
3865
|
withRoles: !1,
|
|
3866
3866
|
unstyled: k,
|
|
3867
3867
|
...h,
|
|
@@ -3874,7 +3874,7 @@ const bi = {
|
|
|
3874
3874
|
autoComplete: "off",
|
|
3875
3875
|
ref: e,
|
|
3876
3876
|
value: je,
|
|
3877
|
-
onChange:
|
|
3877
|
+
onChange: Te,
|
|
3878
3878
|
onBlur: Oe,
|
|
3879
3879
|
onFocus: lt,
|
|
3880
3880
|
onClick: Ie,
|
|
@@ -3885,7 +3885,7 @@ const bi = {
|
|
|
3885
3885
|
__clearable: st,
|
|
3886
3886
|
...n,
|
|
3887
3887
|
...q,
|
|
3888
|
-
disabled:
|
|
3888
|
+
disabled: v,
|
|
3889
3889
|
__staticSelector: "DateInput"
|
|
3890
3890
|
}
|
|
3891
3891
|
) }),
|
|
@@ -3894,18 +3894,18 @@ const bi = {
|
|
|
3894
3894
|
{
|
|
3895
3895
|
onMouseDown: (G) => G.preventDefault(),
|
|
3896
3896
|
"data-dates-dropdown": !0,
|
|
3897
|
-
ref:
|
|
3897
|
+
ref: w,
|
|
3898
3898
|
children: /* @__PURE__ */ o.jsx(
|
|
3899
3899
|
Lr,
|
|
3900
3900
|
{
|
|
3901
3901
|
__staticSelector: "DateInput",
|
|
3902
3902
|
...V,
|
|
3903
|
-
classNames:
|
|
3903
|
+
classNames: E,
|
|
3904
3904
|
styles: I,
|
|
3905
3905
|
unstyled: k,
|
|
3906
3906
|
__preventFocus: !0,
|
|
3907
3907
|
minDate: D,
|
|
3908
|
-
maxDate:
|
|
3908
|
+
maxDate: T,
|
|
3909
3909
|
locale: f,
|
|
3910
3910
|
getDayProps: Fe,
|
|
3911
3911
|
size: n.size,
|
|
@@ -3917,7 +3917,7 @@ const bi = {
|
|
|
3917
3917
|
}),
|
|
3918
3918
|
getYearControlProps: (G) => ({
|
|
3919
3919
|
selected: typeof J == "string" ? z(G).isSame(J, "year") : !1,
|
|
3920
|
-
...
|
|
3920
|
+
...x?.(G)
|
|
3921
3921
|
}),
|
|
3922
3922
|
attributes: s.attributes
|
|
3923
3923
|
}
|
|
@@ -3943,92 +3943,93 @@ function yi(t) {
|
|
|
3943
3943
|
} = t, [c, d] = se(0), [h, p] = se(!1), [f, m] = se(), {
|
|
3944
3944
|
mutateAsync: b,
|
|
3945
3945
|
isError: D,
|
|
3946
|
-
error:
|
|
3946
|
+
error: T,
|
|
3947
3947
|
isPending: $
|
|
3948
3948
|
} = xa(l, s), {
|
|
3949
3949
|
mutateAsync: Y,
|
|
3950
|
-
isPending:
|
|
3951
|
-
} = ks(l, s), L = $ ||
|
|
3950
|
+
isPending: W
|
|
3951
|
+
} = ks(l, s), L = $ || W;
|
|
3952
3952
|
let A;
|
|
3953
|
-
e[0] !== r ? (A = new Set(r.filter(
|
|
3953
|
+
e[0] !== r ? (A = new Set(r.filter(Si).map(wi)), e[0] = r, e[1] = A) : A = e[1];
|
|
3954
3954
|
let N;
|
|
3955
3955
|
e[2] !== A ? (N = [...A], e[2] = A, e[3] = N) : N = e[3];
|
|
3956
3956
|
const M = N;
|
|
3957
3957
|
let O;
|
|
3958
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = function(
|
|
3959
|
-
return typeof
|
|
3958
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = function(C, F) {
|
|
3959
|
+
return typeof C.required == "function" ? C.required(F ?? {}) : !!C.required;
|
|
3960
3960
|
}, e[4] = O) : O = e[4];
|
|
3961
3961
|
const _ = O;
|
|
3962
3962
|
let k;
|
|
3963
|
-
e[5] !== r ? (k = r.reduce(
|
|
3964
|
-
let
|
|
3963
|
+
e[5] !== r ? (k = r.reduce(Ci, {}), e[5] = r, e[6] = k) : k = e[6];
|
|
3964
|
+
let E;
|
|
3965
3965
|
if (e[7] !== r) {
|
|
3966
|
-
let
|
|
3967
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3966
|
+
let w;
|
|
3967
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (C, F) => (C[F.id] = (V, q) => F.conditional && !F.conditional(q) || !_(F, q) || V ? null : "Pflichtfeld", C), e[9] = w) : w = e[9], E = r.filter(xi).reduce(w, {}), e[7] = r, e[8] = E;
|
|
3968
3968
|
} else
|
|
3969
|
-
|
|
3969
|
+
E = e[8];
|
|
3970
3970
|
let I;
|
|
3971
|
-
e[10] !== k || e[11] !==
|
|
3971
|
+
e[10] !== k || e[11] !== E ? (I = {
|
|
3972
3972
|
mode: "uncontrolled",
|
|
3973
3973
|
initialValues: k,
|
|
3974
|
-
validate:
|
|
3975
|
-
}, e[10] = k, e[11] =
|
|
3974
|
+
validate: E
|
|
3975
|
+
}, e[10] = k, e[11] = E, e[12] = I) : I = e[12];
|
|
3976
3976
|
const R = bs(I);
|
|
3977
3977
|
let S;
|
|
3978
|
-
e[13] !== R || e[14] !== f ? (S = function(
|
|
3979
|
-
const
|
|
3980
|
-
if (
|
|
3978
|
+
e[13] !== R || e[14] !== f ? (S = function(C) {
|
|
3979
|
+
const F = R.getValues();
|
|
3980
|
+
if (C.conditional && !C.conditional(F))
|
|
3981
3981
|
return null;
|
|
3982
|
-
const V = _(
|
|
3982
|
+
const V = _(C, F);
|
|
3983
3983
|
return /* @__PURE__ */ o.jsxs(as, { children: [
|
|
3984
|
-
(
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3984
|
+
(C.type === void 0 || C.type == "text") && /* @__PURE__ */ o.jsx(cs, { label: C.column.title, placeholder: C.placeholder ?? "", ...R.getInputProps(C.id), type: C.id.includes("email") ? "email" : void 0, required: V }, R.key(C.id)),
|
|
3985
|
+
C.type === "number" && /* @__PURE__ */ o.jsx(us, { decimalSeparator: ",", label: C.column.title, placeholder: C.placeholder ?? "", ...R.getInputProps(C.id), required: V }, R.key(C.id)),
|
|
3986
|
+
C.type === "date" && /* @__PURE__ */ o.jsx(Nr, { label: C.column.title, placeholder: C.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...R.getInputProps(C.id), required: V }, R.key(C.id)),
|
|
3987
|
+
C.type === "boolean" && /* @__PURE__ */ o.jsx(Bt, { mt: "md", label: C.column.title, ...R.getInputProps(C.id, {
|
|
3988
3988
|
type: "checkbox"
|
|
3989
|
-
}), required: V }, R.key(
|
|
3990
|
-
|
|
3991
|
-
|
|
3989
|
+
}), required: V }, R.key(C.id)),
|
|
3990
|
+
C.type === "textarea" && /* @__PURE__ */ o.jsx(ds, { label: C.column.title, placeholder: C.placeholder ?? "", ...R.getInputProps(C.id), minRows: 3, autosize: !0, required: V }, R.key(C.id)),
|
|
3991
|
+
C.type === "custom" && C.render && C.render({
|
|
3992
3992
|
...R.getValues(),
|
|
3993
3993
|
...f && {
|
|
3994
3994
|
id: f
|
|
3995
3995
|
}
|
|
3996
3996
|
}, R.setValues, p, {
|
|
3997
|
-
error: R.getInputProps(
|
|
3997
|
+
error: R.getInputProps(C.id).error,
|
|
3998
3998
|
required: V
|
|
3999
3999
|
})
|
|
4000
|
-
] },
|
|
4000
|
+
] }, C.id);
|
|
4001
4001
|
}, e[13] = R, e[14] = f, e[15] = S) : S = e[15];
|
|
4002
4002
|
const g = S;
|
|
4003
4003
|
let y;
|
|
4004
|
-
e[16] !==
|
|
4004
|
+
e[16] !== T?.message || e[17] !== T?.name || e[18] !== D ? (y = D && /* @__PURE__ */ o.jsx(Cr, { variant: "outline", color: "red", title: T?.name ?? "Fehler aufgetreten", mb: "lg", children: T?.message ?? "Fehler aufgetreten" }), e[16] = T?.message, e[17] = T?.name, e[18] = D, e[19] = y) : y = e[19];
|
|
4005
4005
|
let j;
|
|
4006
|
-
e[20] !== c || e[21] !== b || e[22] !== R || e[23] !== D || e[24] !== n || e[25] !== a || e[26] !== f || e[27] !== M.length || e[28] !== Y ? (j = R.onSubmit(async (
|
|
4006
|
+
e[20] !== c || e[21] !== b || e[22] !== R || e[23] !== D || e[24] !== n || e[25] !== a || e[26] !== f || e[27] !== M.length || e[28] !== Y ? (j = R.onSubmit(async (w) => {
|
|
4007
|
+
const C = Object.fromEntries(Object.entries(w).map(vi));
|
|
4007
4008
|
if (f)
|
|
4008
4009
|
await Y({
|
|
4009
4010
|
...C,
|
|
4010
4011
|
id: f
|
|
4011
4012
|
});
|
|
4012
4013
|
else {
|
|
4013
|
-
const
|
|
4014
|
-
m(
|
|
4014
|
+
const F = await b(C);
|
|
4015
|
+
m(F.id), a?.(F.id);
|
|
4015
4016
|
}
|
|
4016
4017
|
M.length && c < M.length - 1 ? D || d(c + 1) : D || (R.setInitialValues(C), R.reset(), n());
|
|
4017
4018
|
}), e[20] = c, e[21] = b, e[22] = R, e[23] = D, e[24] = n, e[25] = a, e[26] = f, e[27] = M.length, e[28] = Y, e[29] = j) : j = e[29];
|
|
4018
|
-
let v;
|
|
4019
|
-
e[30] !== c || e[31] !== r || e[32] !== g || e[33] !== i || e[34] !== M ? (v = M.length ? /* @__PURE__ */ o.jsx(gr, { active: c, size: "sm", children: M.map((C) => /* @__PURE__ */ o.jsx(gr.Step, { ...i && i[C - 1] ? {
|
|
4020
|
-
label: i[C - 1].label
|
|
4021
|
-
} : {}, children: r.filter((w) => w.step === C).map((w) => g(w)) }, C)) }) : r.map((C) => g(C)), e[30] = c, e[31] = r, e[32] = g, e[33] = i, e[34] = M, e[35] = v) : v = e[35];
|
|
4022
4019
|
let x;
|
|
4023
|
-
e[
|
|
4020
|
+
e[30] !== c || e[31] !== r || e[32] !== g || e[33] !== i || e[34] !== M ? (x = M.length ? /* @__PURE__ */ o.jsx(gr, { active: c, size: "sm", children: M.map((w) => /* @__PURE__ */ o.jsx(gr.Step, { ...i && i[w - 1] ? {
|
|
4021
|
+
label: i[w - 1].label
|
|
4022
|
+
} : {}, children: r.filter((C) => C.step === w).map((C) => g(C)) }, w)) }) : r.map((w) => g(w)), e[30] = c, e[31] = r, e[32] = g, e[33] = i, e[34] = M, e[35] = x) : x = e[35];
|
|
4023
|
+
let v;
|
|
4024
|
+
e[36] !== c || e[37] !== h || e[38] !== L || e[39] !== n || e[40] !== M.length ? (v = !h && /* @__PURE__ */ o.jsxs(Me, { mt: "md", justify: "end", children: [
|
|
4024
4025
|
/* @__PURE__ */ o.jsx(mt, { onClick: () => M.length ? c === 0 ? n() : d(c - 1) : n(), variant: "outline", children: M.length ? c === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
4025
4026
|
/* @__PURE__ */ o.jsx(mt, { type: "submit", loading: L, children: M.length ? c === M.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
|
|
4026
|
-
] }), e[36] = c, e[37] = h, e[38] = L, e[39] = n, e[40] = M.length, e[41] =
|
|
4027
|
+
] }), e[36] = c, e[37] = h, e[38] = L, e[39] = n, e[40] = M.length, e[41] = v) : v = e[41];
|
|
4027
4028
|
let P;
|
|
4028
|
-
e[42] !==
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
] }), e[42] =
|
|
4029
|
+
e[42] !== x || e[43] !== v || e[44] !== j ? (P = /* @__PURE__ */ o.jsxs("form", { onSubmit: j, children: [
|
|
4030
|
+
x,
|
|
4031
|
+
v
|
|
4032
|
+
] }), e[42] = x, e[43] = v, e[44] = j, e[45] = P) : P = e[45];
|
|
4032
4033
|
let u;
|
|
4033
4034
|
return e[46] !== P || e[47] !== y ? (u = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
4034
4035
|
y,
|
|
@@ -4036,38 +4037,42 @@ function yi(t) {
|
|
|
4036
4037
|
] }), e[46] = P, e[47] = y, e[48] = u) : u = e[48], u;
|
|
4037
4038
|
}
|
|
4038
4039
|
function vi(t) {
|
|
4040
|
+
const [e, r] = t;
|
|
4041
|
+
return [e, r === "" ? void 0 : r];
|
|
4042
|
+
}
|
|
4043
|
+
function xi(t) {
|
|
4039
4044
|
return t.required;
|
|
4040
4045
|
}
|
|
4041
|
-
function
|
|
4046
|
+
function Ci(t, e) {
|
|
4042
4047
|
return t[e.id] = e.type === "boolean" ? !1 : e.defaultValue ?? "", t;
|
|
4043
4048
|
}
|
|
4044
|
-
function
|
|
4049
|
+
function wi(t) {
|
|
4045
4050
|
return t.step;
|
|
4046
4051
|
}
|
|
4047
|
-
function
|
|
4052
|
+
function Si(t) {
|
|
4048
4053
|
return typeof t.step == "number";
|
|
4049
4054
|
}
|
|
4050
|
-
var [
|
|
4055
|
+
var [Di, mn] = no("useDataTableColumnsContext must be used within DataTableColumnProvider"), Gn = (t) => {
|
|
4051
4056
|
let { children: e, columnsOrder: r, setColumnsOrder: n, columnsToggle: s, setColumnsToggle: l, resetColumnsOrder: i, resetColumnsToggle: a, setColumnWidth: c, setMultipleColumnWidths: d, resetColumnsWidth: h } = t, [p, f] = se(""), [m, b] = se("");
|
|
4052
|
-
return o.jsx(
|
|
4057
|
+
return o.jsx(Di, { value: { sourceColumn: p, setSourceColumn: f, targetColumn: m, setTargetColumn: b, columnsToggle: s, setColumnsToggle: l, swapColumns: () => {
|
|
4053
4058
|
if (!r || !n || !p || !m) return;
|
|
4054
|
-
let D = r.indexOf(p),
|
|
4055
|
-
if (D !== -1 &&
|
|
4059
|
+
let D = r.indexOf(p), T = r.indexOf(m);
|
|
4060
|
+
if (D !== -1 && T !== -1) {
|
|
4056
4061
|
let $ = r.splice(D, 1)[0];
|
|
4057
|
-
r.splice(
|
|
4062
|
+
r.splice(T, 0, $), n([...r]);
|
|
4058
4063
|
}
|
|
4059
4064
|
}, resetColumnsOrder: i, resetColumnsToggle: a, setColumnWidth: c, setMultipleColumnWidths: d, resetColumnsWidth: h }, children: e });
|
|
4060
4065
|
};
|
|
4061
|
-
function
|
|
4066
|
+
function _i() {
|
|
4062
4067
|
return o.jsx("tr", { className: "mantine-datatable-empty-row", children: o.jsx("td", {}) });
|
|
4063
4068
|
}
|
|
4064
|
-
function
|
|
4069
|
+
function ki() {
|
|
4065
4070
|
return o.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [o.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), o.jsx("path", { d: "M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74" }), o.jsx("path", { d: "M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6" }), o.jsx("path", { d: "M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4" }), o.jsx("path", { d: "M3 3l18 18" })] });
|
|
4066
4071
|
}
|
|
4067
|
-
function
|
|
4068
|
-
return o.jsx(It, { className: "mantine-datatable-empty-state", "data-active": r || void 0, children: n || o.jsxs(o.Fragment, { children: [t || o.jsx("div", { className: "mantine-datatable-empty-state-icon", children: o.jsx(
|
|
4072
|
+
function ji({ icon: t, text: e, active: r, children: n }) {
|
|
4073
|
+
return o.jsx(It, { className: "mantine-datatable-empty-state", "data-active": r || void 0, children: n || o.jsxs(o.Fragment, { children: [t || o.jsx("div", { className: "mantine-datatable-empty-state-icon", children: o.jsx(ki, {}) }), o.jsx(rt, { component: "div", size: "sm", c: "dimmed", children: e })] }) });
|
|
4069
4074
|
}
|
|
4070
|
-
function
|
|
4075
|
+
function Pi({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
4071
4076
|
function n(p, f) {
|
|
4072
4077
|
let m = [];
|
|
4073
4078
|
return p.forEach((b) => {
|
|
@@ -4087,50 +4092,50 @@ function ji({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
|
4087
4092
|
let d = n(l, e), h = JSON.stringify(l);
|
|
4088
4093
|
return JSON.stringify(d) !== h && a(d), { columnsOrder: d, setColumnsOrder: a, resetColumnsOrder: c };
|
|
4089
4094
|
}
|
|
4090
|
-
function
|
|
4091
|
-
let l = ie(!1), i = ie({}), [a, c] = se(!0), d = qe(() => e.some((_) => _.resizable && !_.hidden && _.accessor !== "__selection__"), [e]), h = qe(() => e.filter((_) => _.resizable && !_.hidden && _.accessor !== "__selection__"), [e]), p = qe(() => h.some((_) => _.width === void 0 || _.width === "" || _.width === "initial"), [h]), f = ve(() => e.filter((_) => _.accessor !== "__selection__").map((_) => ({ [_.accessor]: _.width ?? "auto" })), [e]), [m, b] = on({ key: t ? `${t}-columns-width` : "", defaultValue: t ? f() : void 0, getInitialValueInEffect: !1 }), [D,
|
|
4095
|
+
function Mi({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, onFixedLayoutChange: s }) {
|
|
4096
|
+
let l = ie(!1), i = ie({}), [a, c] = se(!0), d = qe(() => e.some((_) => _.resizable && !_.hidden && _.accessor !== "__selection__"), [e]), h = qe(() => e.filter((_) => _.resizable && !_.hidden && _.accessor !== "__selection__"), [e]), p = qe(() => h.some((_) => _.width === void 0 || _.width === "" || _.width === "initial"), [h]), f = ve(() => e.filter((_) => _.accessor !== "__selection__").map((_) => ({ [_.accessor]: _.width ?? "auto" })), [e]), [m, b] = on({ key: t ? `${t}-columns-width` : "", defaultValue: t ? f() : void 0, getInitialValueInEffect: !1 }), [D, T] = se(() => f());
|
|
4092
4097
|
be(() => {
|
|
4093
4098
|
c(!1);
|
|
4094
4099
|
}, []);
|
|
4095
4100
|
let $ = ve(() => {
|
|
4096
4101
|
if (!n?.current || a) return {};
|
|
4097
|
-
let _ = n.current, k = Array.from(_.querySelectorAll("th[data-accessor]")),
|
|
4102
|
+
let _ = n.current, k = Array.from(_.querySelectorAll("th[data-accessor]")), E = {};
|
|
4098
4103
|
return k.forEach((I) => {
|
|
4099
4104
|
let R = I.getAttribute("data-accessor");
|
|
4100
4105
|
if (!R || R === "__selection__") return;
|
|
4101
4106
|
let S = h.find((g) => g.accessor === R);
|
|
4102
4107
|
if (S && (S.width === void 0 || S.width === "" || S.width === "initial")) {
|
|
4103
4108
|
let g = I.getBoundingClientRect();
|
|
4104
|
-
|
|
4109
|
+
E[R] = Math.round(g.width);
|
|
4105
4110
|
}
|
|
4106
|
-
}),
|
|
4111
|
+
}), E;
|
|
4107
4112
|
}, [n, h, a]), Y = ve((_) => {
|
|
4108
|
-
let k = _.filter((I) => I.accessor !== "__selection__"),
|
|
4113
|
+
let k = _.filter((I) => I.accessor !== "__selection__"), E = D.map((I) => {
|
|
4109
4114
|
let R = Object.keys(I)[0], S = k.find((g) => g.accessor === R);
|
|
4110
4115
|
return S ? { [R]: S.width } : I;
|
|
4111
4116
|
});
|
|
4112
|
-
E
|
|
4113
|
-
}, [D, t, b]),
|
|
4117
|
+
T(E), t && b(E);
|
|
4118
|
+
}, [D, t, b]), W = ve((_) => {
|
|
4114
4119
|
Y(_);
|
|
4115
4120
|
}, [Y]), L = ve(() => {
|
|
4116
4121
|
if (!(!n?.current || !s || a)) if (p) s(!1), requestAnimationFrame(() => {
|
|
4117
4122
|
requestAnimationFrame(() => {
|
|
4118
4123
|
let _ = $();
|
|
4119
4124
|
i.current = { ...i.current, ..._ };
|
|
4120
|
-
let k = e.filter((
|
|
4121
|
-
let I =
|
|
4125
|
+
let k = e.filter((E) => E.accessor !== "__selection__").map((E) => {
|
|
4126
|
+
let I = E.accessor, R = m?.find((g) => Object.keys(g)[0] === I);
|
|
4122
4127
|
if (R && R[I] !== "auto") return { [I]: R[I] };
|
|
4123
4128
|
let S = _[I];
|
|
4124
|
-
return S ? { [I]: `${S}px` } : { [I]:
|
|
4129
|
+
return S ? { [I]: `${S}px` } : { [I]: E.width ?? "auto" };
|
|
4125
4130
|
});
|
|
4126
|
-
|
|
4131
|
+
T(k), setTimeout(() => {
|
|
4127
4132
|
s(!0), l.current = !0;
|
|
4128
4133
|
}, 10);
|
|
4129
4134
|
});
|
|
4130
4135
|
});
|
|
4131
4136
|
else {
|
|
4132
4137
|
let _ = e.filter((k) => k.accessor !== "__selection__").map((k) => ({ [k.accessor]: k.width ?? "auto" }));
|
|
4133
|
-
|
|
4138
|
+
T(_), s(!0), l.current = !0;
|
|
4134
4139
|
}
|
|
4135
4140
|
}, [n, s, a, p, $, e, m]), A = L;
|
|
4136
4141
|
be(() => {
|
|
@@ -4144,7 +4149,7 @@ function Pi({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
|
|
|
4144
4149
|
}, 50);
|
|
4145
4150
|
return () => clearTimeout(_);
|
|
4146
4151
|
}, [d, s, a, L]), be(() => {
|
|
4147
|
-
a || !t || !r || m && m.length > 0 &&
|
|
4152
|
+
a || !t || !r || m && m.length > 0 && T(m);
|
|
4148
4153
|
}, [a, t, r, m]);
|
|
4149
4154
|
let N = ve(() => {
|
|
4150
4155
|
t && b(f()), i.current = {}, l.current = !1, s && (s(!1), setTimeout(() => {
|
|
@@ -4154,14 +4159,14 @@ function Pi({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
|
|
|
4154
4159
|
Y([{ accessor: _, width: k }]);
|
|
4155
4160
|
}, [Y]), O = qe(() => d ? D.filter((_) => {
|
|
4156
4161
|
let k = Object.keys(_)[0];
|
|
4157
|
-
return h.some((
|
|
4162
|
+
return h.some((E) => E.accessor === k);
|
|
4158
4163
|
}).every((_) => {
|
|
4159
4164
|
let k = Object.values(_)[0];
|
|
4160
4165
|
return k === "auto" || k === "initial";
|
|
4161
4166
|
}) : !1, [d, D, h]);
|
|
4162
|
-
return { columnsWidth: D, setColumnsWidth: Y, setColumnWidth: M, setMultipleColumnWidths:
|
|
4167
|
+
return { columnsWidth: D, setColumnsWidth: Y, setColumnWidth: M, setMultipleColumnWidths: W, resetColumnsWidth: N, hasResizableColumns: d, allResizableWidthsInitial: O, measureAndSetColumnWidths: A };
|
|
4163
4168
|
}
|
|
4164
|
-
function
|
|
4169
|
+
function Ri({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
4165
4170
|
function n(p, f) {
|
|
4166
4171
|
let m = [];
|
|
4167
4172
|
return p.forEach((b) => {
|
|
@@ -4181,9 +4186,9 @@ function Mi({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
|
|
|
4181
4186
|
let d = n(l, e), h = JSON.stringify(l);
|
|
4182
4187
|
return JSON.stringify(d) !== h && a(d), { columnsToggle: d, setColumnsToggle: a, resetColumnsToggle: c };
|
|
4183
4188
|
}
|
|
4184
|
-
var
|
|
4185
|
-
let { columnsOrder: i, setColumnsOrder: a, resetColumnsOrder: c } =
|
|
4186
|
-
return { effectiveColumns: qe(() => i ? i.map((L) => e.find((A) => A.accessor === L)).map((L) => ({ ...L, hidden: L?.hidden || !d.find((A) => A.accessor === L?.accessor)?.toggled })).map((L) => L?.accessor === "__selection__" ? L : { ...L, width: f.find((A) => A[L?.accessor])?.[L?.accessor] }) : e, [e, i, d, f]), setColumnsOrder: a, columnsOrder: i, resetColumnsOrder: c, columnsToggle: d, setColumnsToggle: h, resetColumnsToggle: p, columnsWidth: f, setColumnsWidth: m, setColumnWidth: b, setMultipleColumnWidths: D, resetColumnsWidth:
|
|
4189
|
+
var Oi = ({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, scrollViewportRef: s, onFixedLayoutChange: l }) => {
|
|
4190
|
+
let { columnsOrder: i, setColumnsOrder: a, resetColumnsOrder: c } = Pi({ key: t, columns: e, getInitialValueInEffect: r }), { columnsToggle: d, setColumnsToggle: h, resetColumnsToggle: p } = Ri({ key: t, columns: e, getInitialValueInEffect: r }), { columnsWidth: f, setColumnsWidth: m, setColumnWidth: b, setMultipleColumnWidths: D, resetColumnsWidth: T, hasResizableColumns: $, allResizableWidthsInitial: Y, measureAndSetColumnWidths: W } = Mi({ key: t, columns: e, getInitialValueInEffect: r, headerRef: n, onFixedLayoutChange: l });
|
|
4191
|
+
return { effectiveColumns: qe(() => i ? i.map((L) => e.find((A) => A.accessor === L)).map((L) => ({ ...L, hidden: L?.hidden || !d.find((A) => A.accessor === L?.accessor)?.toggled })).map((L) => L?.accessor === "__selection__" ? L : { ...L, width: f.find((A) => A[L?.accessor])?.[L?.accessor] }) : e, [e, i, d, f]), setColumnsOrder: a, columnsOrder: i, resetColumnsOrder: c, columnsToggle: d, setColumnsToggle: h, resetColumnsToggle: p, columnsWidth: f, setColumnsWidth: m, setColumnWidth: b, setMultipleColumnWidths: D, resetColumnsWidth: T, hasResizableColumns: $, allResizableWidthsInitial: Y, measureAndSetColumnWidths: W };
|
|
4187
4192
|
}, Kn = typeof window < "u" ? is : be;
|
|
4188
4193
|
function Jn(t) {
|
|
4189
4194
|
let e = ie(t);
|
|
@@ -4208,7 +4213,7 @@ function Qr(t, e, r) {
|
|
|
4208
4213
|
};
|
|
4209
4214
|
}
|
|
4210
4215
|
}
|
|
4211
|
-
function
|
|
4216
|
+
function Ei({ scrollCallbacks: t, withRowBorders: e }) {
|
|
4212
4217
|
let r = { root: ie(null), table: ie(null), scrollViewport: ie(null), header: ie(null), footer: ie(null), selectionColumnHeader: ie(null) }, { root: n, table: s, scrollViewport: l, header: i, footer: a, selectionColumnHeader: c } = r, d = Jn({ withRowBorders: e }), h = Jn(t), p = ie(() => {
|
|
4213
4218
|
}), f = ie(() => {
|
|
4214
4219
|
}), m = ve((b) => {
|
|
@@ -4222,29 +4227,29 @@ function Oi({ scrollCallbacks: t, withRowBorders: e }) {
|
|
|
4222
4227
|
Xe(n.current, es, `${b.width}px`);
|
|
4223
4228
|
}, () => Xe(n.current, es, "0")), [c.current]), Kn(() => {
|
|
4224
4229
|
if (typeof window === void 0) return;
|
|
4225
|
-
let b = { top: !0, bottom: !0, left: !0, right: !0 }, D = { width: 0, height: 0 },
|
|
4230
|
+
let b = { top: !0, bottom: !0, left: !0, right: !0 }, D = { width: 0, height: 0 }, T = { width: 0, height: 0 };
|
|
4226
4231
|
function $(N, M) {
|
|
4227
4232
|
let O = b[N];
|
|
4228
4233
|
return b[N] = M, Xe(n.current, `--mantine-datatable-${N}-shadow-opacity`, M ? "0" : "1"), O;
|
|
4229
4234
|
}
|
|
4230
4235
|
function Y() {
|
|
4231
|
-
let N = D.height -
|
|
4236
|
+
let N = D.height - T.height, M = N < 0;
|
|
4232
4237
|
Xe(n.current, "--mantine-datatable-footer-position", M ? "relative" : "sticky"), Xe(n.current, "--mantine-datatable-footer-bottom", M ? `${N}px` : "0");
|
|
4233
4238
|
}
|
|
4234
|
-
function
|
|
4235
|
-
d.current.withRowBorders && D.height <
|
|
4239
|
+
function W() {
|
|
4240
|
+
d.current.withRowBorders && D.height < T.height ? Xe(n.current, ts, `${Lt("1px")} solid var(--mantine-datatable-border-color)`) : Xe(n.current, ts, "unset");
|
|
4236
4241
|
}
|
|
4237
|
-
f.current =
|
|
4242
|
+
f.current = W;
|
|
4238
4243
|
function L() {
|
|
4239
|
-
let N = h.current, M = l.current, O = M?.scrollTop ?? 0, _ = M?.scrollLeft ?? 0, k = O === 0,
|
|
4240
|
-
k && k !== I && N.onScrollToTop?.(),
|
|
4241
|
-
let S = M ? getComputedStyle(M).direction === "rtl" : !1, g = (M?.scrollWidth ?? 0) -
|
|
4244
|
+
let N = h.current, M = l.current, O = M?.scrollTop ?? 0, _ = M?.scrollLeft ?? 0, k = O === 0, E = D.height - O - T.height < 1, I = $("top", k), R = $("bottom", E);
|
|
4245
|
+
k && k !== I && N.onScrollToTop?.(), E && E !== R && N.onScrollToBottom?.();
|
|
4246
|
+
let S = M ? getComputedStyle(M).direction === "rtl" : !1, g = (M?.scrollWidth ?? 0) - T.width, y, j;
|
|
4242
4247
|
if (S) {
|
|
4243
4248
|
let P = Math.abs(_);
|
|
4244
4249
|
j = P < 1, y = g - P < 1;
|
|
4245
|
-
} else y = _ < 1, j = D.width - _ -
|
|
4246
|
-
let
|
|
4247
|
-
y && y !==
|
|
4250
|
+
} else y = _ < 1, j = D.width - _ - T.width < 1;
|
|
4251
|
+
let x = $("left", y), v = $("right", j);
|
|
4252
|
+
y && y !== x && N.onScrollToLeft?.(), j && j !== v && N.onScrollToRight?.();
|
|
4248
4253
|
}
|
|
4249
4254
|
p.current = L;
|
|
4250
4255
|
let A = new ResizeObserver((N) => {
|
|
@@ -4254,11 +4259,11 @@ function Oi({ scrollCallbacks: t, withRowBorders: e }) {
|
|
|
4254
4259
|
break;
|
|
4255
4260
|
}
|
|
4256
4261
|
case "DIV": {
|
|
4257
|
-
|
|
4262
|
+
T = rn(M);
|
|
4258
4263
|
break;
|
|
4259
4264
|
}
|
|
4260
4265
|
}
|
|
4261
|
-
L(), Y(),
|
|
4266
|
+
L(), Y(), W();
|
|
4262
4267
|
});
|
|
4263
4268
|
return A.observe(s.current), A.observe(l.current), () => {
|
|
4264
4269
|
A.disconnect();
|
|
@@ -4273,7 +4278,7 @@ function Ti(t) {
|
|
|
4273
4278
|
r(null);
|
|
4274
4279
|
}, [n]), { lastSelectionChangeIndex: e, setLastSelectionChangeIndex: r };
|
|
4275
4280
|
}
|
|
4276
|
-
function
|
|
4281
|
+
function Li(t, e) {
|
|
4277
4282
|
let r = () => {
|
|
4278
4283
|
e(t.map((s) => s.matches));
|
|
4279
4284
|
}, n = t.map((s) => {
|
|
@@ -4287,20 +4292,20 @@ function Ei(t, e) {
|
|
|
4287
4292
|
n.forEach((s) => s());
|
|
4288
4293
|
};
|
|
4289
4294
|
}
|
|
4290
|
-
function
|
|
4295
|
+
function Ni(t, e) {
|
|
4291
4296
|
return e || (typeof window < "u" && "matchMedia" in window ? t.map((r) => window.matchMedia(r).matches) : t.map(() => !1));
|
|
4292
4297
|
}
|
|
4293
|
-
function
|
|
4294
|
-
let [n, s] = se(r ? e :
|
|
4298
|
+
function Ai(t, e, { getInitialValueInEffect: r } = { getInitialValueInEffect: !0 }) {
|
|
4299
|
+
let [n, s] = se(r ? e : Ni(t, e)), l = ie(null);
|
|
4295
4300
|
return be(() => {
|
|
4296
|
-
if ("matchMedia" in window) return l.current = t.map((i) => window.matchMedia(i)), s(l.current.map((i) => i.matches)),
|
|
4301
|
+
if ("matchMedia" in window) return l.current = t.map((i) => window.matchMedia(i)), s(l.current.map((i) => i.matches)), Li(l.current, (i) => {
|
|
4297
4302
|
s(i);
|
|
4298
4303
|
});
|
|
4299
4304
|
}, [t]), n;
|
|
4300
4305
|
}
|
|
4301
|
-
function
|
|
4306
|
+
function $i(t) {
|
|
4302
4307
|
let e = ps(), r = qe(() => t.map((s) => (typeof s == "function" ? s(e) : s) ?? ""), [t, e]), n = qe(() => t.map(() => !0), [t]);
|
|
4303
|
-
return
|
|
4308
|
+
return Ai(r, n);
|
|
4304
4309
|
}
|
|
4305
4310
|
function Ar(t) {
|
|
4306
4311
|
let e = ps(), r = typeof t == "function" ? t(e) : t;
|
|
@@ -4310,7 +4315,7 @@ function pn(t) {
|
|
|
4310
4315
|
let e = t.replace(/([a-z\d])([A-Z]+)/g, "$1 $2").replace(/\W|_/g, " ").trim().toLowerCase();
|
|
4311
4316
|
return `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
4312
4317
|
}
|
|
4313
|
-
function
|
|
4318
|
+
function Yi(t, e, r) {
|
|
4314
4319
|
return t.filter((n) => !e.map(r).includes(r(n)));
|
|
4315
4320
|
}
|
|
4316
4321
|
function Gr(t, e) {
|
|
@@ -4339,10 +4344,10 @@ function Us(t, e, r = 0) {
|
|
|
4339
4344
|
for (let s of t) s.groups && s.groups.length > 0 && n.push(...Us(s.groups, e, r + 1));
|
|
4340
4345
|
return n;
|
|
4341
4346
|
}
|
|
4342
|
-
function
|
|
4347
|
+
function Ii(t, e, r) {
|
|
4343
4348
|
return r ? !t || e : !1;
|
|
4344
4349
|
}
|
|
4345
|
-
function
|
|
4350
|
+
function Fi({ rowExpansion: t, records: e, idAccessor: r }) {
|
|
4346
4351
|
let n = [];
|
|
4347
4352
|
if (t && e) {
|
|
4348
4353
|
let { trigger: a, allowMultiple: c, initiallyExpanded: d } = t;
|
|
@@ -4359,43 +4364,43 @@ function Ii({ rowExpansion: t, records: e, idAccessor: r }) {
|
|
|
4359
4364
|
}, collapseRow: f, collapseProps: h, content: ({ record: m, index: b }) => () => p({ record: m, index: b, collapse: () => f(m) }) };
|
|
4360
4365
|
}
|
|
4361
4366
|
}
|
|
4362
|
-
function
|
|
4367
|
+
function Wi(t, e) {
|
|
4363
4368
|
let [r, n] = se(t), [s, l] = se(t), i = jn(() => n(!0), 0), a = jn(() => l(!1), e || 200);
|
|
4364
4369
|
return be(() => {
|
|
4365
4370
|
t ? (a.clear(), l(!0), i.start()) : (i.clear(), n(!1), a.start());
|
|
4366
4371
|
}, [i, a, t]), { expanded: r, visible: s };
|
|
4367
4372
|
}
|
|
4368
|
-
var bn = "mantine-datatable-nowrap", yn = "mantine-datatable-ellipsis", Vt = "mantine-datatable-pointer-cursor", qs = "mantine-datatable-context-menu-cursor",
|
|
4369
|
-
function
|
|
4373
|
+
var bn = "mantine-datatable-nowrap", yn = "mantine-datatable-ellipsis", Vt = "mantine-datatable-pointer-cursor", qs = "mantine-datatable-context-menu-cursor", zi = "mantine-datatable-text-selection-disabled", $r = "mantine-datatable-text-align-left", Yr = "mantine-datatable-text-align-center", Ir = "mantine-datatable-text-align-right";
|
|
4374
|
+
function Vi({ className: t, style: e, visibleMediaQuery: r, title: n, noWrap: s, ellipsis: l, textAlign: i, width: a }) {
|
|
4370
4375
|
return Ar(r) ? o.jsx(or, { className: he({ [bn]: s || l, [yn]: l, [$r]: i === "left", [Yr]: i === "center", [Ir]: i === "right" }, t), style: [{ width: a, minWidth: a, maxWidth: a }, e], children: n }) : null;
|
|
4371
4376
|
}
|
|
4372
|
-
function
|
|
4377
|
+
function Bi({ shadowVisible: t }) {
|
|
4373
4378
|
return o.jsx(or, { className: "mantine-datatable-footer-selector-placeholder-cell", "data-shadow-visible": t || void 0 });
|
|
4374
4379
|
}
|
|
4375
|
-
function
|
|
4376
|
-
return o.jsx(io, { ref: i, className: he("mantine-datatable-footer", t), style: e, children: o.jsxs(Wt, { children: [s && o.jsx(
|
|
4380
|
+
function Hi({ className: t, style: e, columns: r, defaultColumnProps: n, selectionVisible: s, selectorCellShadowVisible: l, ref: i }) {
|
|
4381
|
+
return o.jsx(io, { ref: i, className: he("mantine-datatable-footer", t), style: e, children: o.jsxs(Wt, { children: [s && o.jsx(Bi, { shadowVisible: l }), r.map(({ hidden: a, ...c }) => {
|
|
4377
4382
|
if (a) return null;
|
|
4378
|
-
let { accessor: d, visibleMediaQuery: h, textAlign: p, width: f, footer: m, footerClassName: b, footerStyle: D, noWrap:
|
|
4379
|
-
return o.jsx(
|
|
4383
|
+
let { accessor: d, visibleMediaQuery: h, textAlign: p, width: f, footer: m, footerClassName: b, footerStyle: D, noWrap: T, ellipsis: $ } = { ...n, ...c };
|
|
4384
|
+
return o.jsx(Vi, { className: b, style: D, visibleMediaQuery: h, textAlign: p, width: f, title: m, noWrap: T, ellipsis: $ }, d);
|
|
4380
4385
|
})] }) });
|
|
4381
4386
|
}
|
|
4382
|
-
function
|
|
4383
|
-
let m = qe(() => e && e.length > 0 ? e : r && r.length > 0 ? gn([{ id: t, columns: e, groups: r }]) : [], [e, r, t]), b = qe(() => m.map(({ visibleMediaQuery: A }) => A), [m]), D =
|
|
4384
|
-
return
|
|
4387
|
+
function Ui({ group: { id: t, columns: e, groups: r, title: n, textAlign: s, className: l, style: i }, maxDepth: a, currentDepth: c, previousGroups: d, isLastGroup: h, withColumnBorders: p = !1, totalTableColumns: f }) {
|
|
4388
|
+
let m = qe(() => e && e.length > 0 ? e : r && r.length > 0 ? gn([{ id: t, columns: e, groups: r }]) : [], [e, r, t]), b = qe(() => m.map(({ visibleMediaQuery: A }) => A), [m]), D = $i(b), T = qe(() => nn({ columns: e, groups: r }, D), [t, e, r, D]), $ = qe(() => d.reduce((A, N) => A + nn(N, D), 0), [d, D]), Y = r && r.length > 0 ? 1 : a - c, W = $ + T < f, L = Ii(h, W, p);
|
|
4389
|
+
return T > 0 ? o.jsx(or, { colSpan: T, rowSpan: Y > 1 ? Y : void 0, className: he("mantine-datatable-column-group-header-cell", { [$r]: s === "left", [Yr]: s === "center", [Ir]: s === "right", "mantine-datatable-column-group-header-cell--needs-border": L }, l), style: i, children: n ?? pn(t) }) : null;
|
|
4385
4390
|
}
|
|
4386
|
-
function
|
|
4391
|
+
function qi() {
|
|
4387
4392
|
return o.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [o.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), o.jsx("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" })] });
|
|
4388
4393
|
}
|
|
4389
|
-
function
|
|
4394
|
+
function Qi() {
|
|
4390
4395
|
return o.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [o.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), o.jsx("path", { d: "M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z", strokeWidth: "0", fill: "currentColor" })] });
|
|
4391
4396
|
}
|
|
4392
|
-
function
|
|
4393
|
-
let [s, { close: l, toggle: i }] = xo(!1), a = e ?
|
|
4397
|
+
function Gi({ children: t, isActive: e, filterPopoverProps: r, filterPopoverDisableClickOutside: n }) {
|
|
4398
|
+
let [s, { close: l, toggle: i }] = xo(!1), a = e ? Qi : qi, c = vs(l);
|
|
4394
4399
|
return n && (c = void 0), o.jsxs(Xt, { withArrow: !0, shadow: "md", opened: s, onClose: l, trapFocus: !0, ...r, children: [o.jsx(hs, { children: o.jsx(zt, { className: "mantine-datatable-header-cell-filter-action-icon", "data-active": e || void 0, size: "sm", variant: "default", onClick: (d) => {
|
|
4395
4400
|
d.preventDefault(), i();
|
|
4396
4401
|
}, onKeyDown: (d) => d.stopPropagation(), children: o.jsx(a, {}) }) }), o.jsx(fs, { ref: c, onClick: (d) => d.stopPropagation(), onKeyDown: (d) => d.stopPropagation(), children: typeof t == "function" ? t({ close: l }) : t })] });
|
|
4397
4402
|
}
|
|
4398
|
-
var
|
|
4403
|
+
var Ki = (t) => {
|
|
4399
4404
|
let { accessor: e, columnRef: r } = t, [n, s] = se(!1), l = ie(0), i = ie({ current: 0, next: 0 }), { dir: a } = ho(), c = a === "rtl", { setMultipleColumnWidths: d } = mn(), h = ve((f) => {
|
|
4400
4405
|
if (f.preventDefault(), f.stopPropagation(), !r.current) return;
|
|
4401
4406
|
let m = r.current, b = m.nextElementSibling;
|
|
@@ -4407,32 +4412,32 @@ var Gi = (t) => {
|
|
|
4407
4412
|
if (!b) return;
|
|
4408
4413
|
let D = b.getAttribute("data-accessor");
|
|
4409
4414
|
if (!D) return;
|
|
4410
|
-
let
|
|
4415
|
+
let T = D === "__selection__";
|
|
4411
4416
|
s(!0), l.current = f.clientX;
|
|
4412
4417
|
let $ = m.offsetWidth, Y = b.offsetWidth;
|
|
4413
4418
|
i.current = { current: $, next: Y };
|
|
4414
|
-
let
|
|
4419
|
+
let W = (A) => {
|
|
4415
4420
|
if (!r.current) return;
|
|
4416
4421
|
let N = r.current, M = N.nextElementSibling;
|
|
4417
4422
|
if (!M) return;
|
|
4418
4423
|
let O = A.clientX - l.current;
|
|
4419
4424
|
c && (O = -O);
|
|
4420
|
-
let _ = 50, k = i.current.current - _,
|
|
4425
|
+
let _ = 50, k = i.current.current - _, E = i.current.next - _, I = Math.max(-k, Math.min(O, E)), R = i.current.current + I, S = i.current.next - I;
|
|
4421
4426
|
N.style.width = `${R}px`, M.style.width = `${S}px`, N.style.minWidth = `${R}px`, N.style.maxWidth = `${R}px`, M.style.minWidth = `${S}px`, M.style.maxWidth = `${S}px`;
|
|
4422
4427
|
}, L = () => {
|
|
4423
4428
|
if (!r.current) return;
|
|
4424
4429
|
let A = r.current, N = A.nextElementSibling;
|
|
4425
4430
|
s(!1), document.body.style.cursor = "initial", document.body.style.userSelect = "initial";
|
|
4426
4431
|
let M = parseInt(A.style.width) || A.offsetWidth, O = N ? parseInt(N.style.width) || N.offsetWidth : 0, _ = [{ accessor: e, width: `${M}px` }];
|
|
4427
|
-
if (N && !
|
|
4432
|
+
if (N && !T) {
|
|
4428
4433
|
let k = N.getAttribute("data-accessor");
|
|
4429
4434
|
k && _.push({ accessor: k, width: `${O}px` });
|
|
4430
4435
|
}
|
|
4431
4436
|
setTimeout(() => {
|
|
4432
4437
|
d(_);
|
|
4433
|
-
}, 0), document.removeEventListener("mousemove",
|
|
4438
|
+
}, 0), document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", L);
|
|
4434
4439
|
};
|
|
4435
|
-
document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove",
|
|
4440
|
+
document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", W), document.addEventListener("mouseup", L);
|
|
4436
4441
|
}, [e, r, c, d]), p = ve(() => {
|
|
4437
4442
|
if (!r.current) return;
|
|
4438
4443
|
let f = r.current, m = f.nextElementSibling;
|
|
@@ -4449,131 +4454,131 @@ var Gi = (t) => {
|
|
|
4449
4454
|
}, [e, r, d]);
|
|
4450
4455
|
return o.jsx("div", { className: "mantine-datatable-header-resizable-handle", style: { cursor: n ? "col-resize" : void 0 }, onMouseDown: h, onDoubleClick: p, onClick: (f) => f.stopPropagation(), title: "Drag to resize column, double-click to reset" });
|
|
4451
4456
|
};
|
|
4452
|
-
function
|
|
4457
|
+
function Ji() {
|
|
4453
4458
|
return o.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [o.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), o.jsx("path", { d: "M12 5l0 14" }), o.jsx("path", { d: "M16 9l-4 -4" }), o.jsx("path", { d: "M8 9l4 -4" })] });
|
|
4454
4459
|
}
|
|
4455
|
-
function
|
|
4460
|
+
function Zi() {
|
|
4456
4461
|
return o.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [o.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), o.jsx("path", { d: "M8 7l4 -4l4 4" }), o.jsx("path", { d: "M8 17l4 4l4 -4" }), o.jsx("path", { d: "M12 3l0 18" })] });
|
|
4457
4462
|
}
|
|
4458
|
-
function
|
|
4463
|
+
function Xi() {
|
|
4459
4464
|
return o.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [o.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), o.jsx("path", { d: "M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), o.jsx("path", { d: "M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), o.jsx("path", { d: "M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), o.jsx("path", { d: "M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), o.jsx("path", { d: "M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), o.jsx("path", { d: "M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" })] });
|
|
4460
4465
|
}
|
|
4461
|
-
function
|
|
4466
|
+
function el() {
|
|
4462
4467
|
return o.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [o.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), o.jsx("path", { d: "M18 6l-12 12" }), o.jsx("path", { d: "M6 6l12 12" })] });
|
|
4463
4468
|
}
|
|
4464
|
-
function
|
|
4465
|
-
let { setSourceColumn:
|
|
4469
|
+
function tl({ className: t, style: e, accessor: r, visibleMediaQuery: n, title: s, sortable: l, draggable: i, toggleable: a, resizable: c, sortIcons: d, textAlign: h, width: p, sortStatus: f, onSortStatusChange: m, filter: b, filterPopoverProps: D, filterPopoverDisableClickOutside: T, filtering: $, sortKey: Y }) {
|
|
4470
|
+
let { setSourceColumn: W, setTargetColumn: L, swapColumns: A, setColumnsToggle: N } = mn(), [M, O] = se(!1), _ = ie(null);
|
|
4466
4471
|
if (!Ar(n)) return null;
|
|
4467
|
-
let k = s ?? pn(r),
|
|
4468
|
-
|
|
4469
|
-
} : void 0, R = (
|
|
4470
|
-
|
|
4471
|
-
}, S = (
|
|
4472
|
-
|
|
4472
|
+
let k = s ?? pn(r), E = typeof k == "string" ? k : void 0, I = l && m ? (v) => {
|
|
4473
|
+
v?.defaultPrevented || m({ sortKey: Y, columnAccessor: r, direction: f?.columnAccessor === r ? f.direction === "asc" ? "desc" : "asc" : f?.direction ?? "asc" });
|
|
4474
|
+
} : void 0, R = (v) => {
|
|
4475
|
+
v.stopPropagation(), W(r), O(!1);
|
|
4476
|
+
}, S = (v) => {
|
|
4477
|
+
v.preventDefault(), L(r), O(!0);
|
|
4473
4478
|
}, g = () => {
|
|
4474
4479
|
L(r), O(!1), A();
|
|
4475
4480
|
}, y = () => {
|
|
4476
4481
|
O(!0);
|
|
4477
4482
|
}, j = () => {
|
|
4478
4483
|
O(!1);
|
|
4479
|
-
},
|
|
4480
|
-
|
|
4484
|
+
}, x = (v) => {
|
|
4485
|
+
v.stopPropagation(), N((P) => P.map((u) => u.accessor === r ? { ...u, toggled: !1 } : u));
|
|
4481
4486
|
};
|
|
4482
|
-
return o.jsxs(or, { "data-accessor": r, className: he({ "mantine-datatable-header-cell-sortable": l, "mantine-datatable-header-cell-toggleable": a, "mantine-datatable-header-cell-resizable": c }, t), style: [{ width: p, ...c ? {} : { minWidth: p, maxWidth: p } }, e], role: l ? "button" : void 0, tabIndex: l ? 0 : void 0, onClick: I, onKeyDown: (
|
|
4483
|
-
|
|
4484
|
-
}, children: o.jsx(
|
|
4487
|
+
return o.jsxs(or, { "data-accessor": r, className: he({ "mantine-datatable-header-cell-sortable": l, "mantine-datatable-header-cell-toggleable": a, "mantine-datatable-header-cell-resizable": c }, t), style: [{ width: p, ...c ? {} : { minWidth: p, maxWidth: p } }, e], role: l ? "button" : void 0, tabIndex: l ? 0 : void 0, onClick: I, onKeyDown: (v) => v.key === "Enter" && I?.(), ref: _, children: [o.jsxs(Me, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [o.jsxs(co, { align: "center", w: "100%", className: he({ "mantine-datatable-header-cell-draggable": i, "mantine-datatable-header-cell-drag-over": M }), draggable: i, onDragStart: i ? R : void 0, onDragEnter: i ? y : void 0, onDragOver: i ? S : void 0, onDrop: i ? g : void 0, onDragLeave: i ? j : void 0, children: [i ? o.jsx(It, { role: "img", "aria-label": "Drag column", children: o.jsx(zt, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (v) => {
|
|
4488
|
+
v.stopPropagation();
|
|
4489
|
+
}, children: o.jsx(Xi, {}) }) }) : null, o.jsx(ue, { className: he("mantine-datatable-header-cell-sortable-text", { [$r]: h === "left", [Yr]: h === "center", [Ir]: h === "right" }, bn, yn), title: E, children: k })] }), a ? o.jsx(It, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: o.jsx(zt, { size: "xs", variant: "light", onClick: x, children: o.jsx(el, {}) }) }) : null, l || f?.columnAccessor === r ? o.jsx(o.Fragment, { children: f?.columnAccessor === r ? o.jsx(It, { className: he("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": f.direction === "desc" }), role: "img", "aria-label": `Sorted ${f.direction === "desc" ? "descending" : "ascending"}`, children: d?.sorted || o.jsx(Ji, {}) }) : o.jsx(It, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: d?.unsorted || o.jsx(Zi, {}) }) }) : null, b ? o.jsx(Gi, { filterPopoverProps: D, isActive: !!$, filterPopoverDisableClickOutside: T, children: b }) : null] }), c && r !== "__selection__" ? o.jsx(Ki, { accessor: r, columnRef: _ }) : null] });
|
|
4485
4490
|
}
|
|
4486
|
-
function
|
|
4491
|
+
function rl({ className: t, style: e, trigger: r, shadowVisible: n, checked: s, indeterminate: l, checkboxProps: i, onChange: a, rowSpan: c, ref: d }) {
|
|
4487
4492
|
let h = !i.disabled;
|
|
4488
4493
|
return o.jsx(or, { ref: d, className: he("mantine-datatable-header-selector-cell", { [Vt]: r === "cell" && h }, t), style: e, rowSpan: c, "data-shadow-visible": n || void 0, "data-accessor": "__selection__", onClick: r === "cell" && h ? a : void 0, children: o.jsx(Bt, { classNames: h ? { input: Vt } : void 0, checked: s, indeterminate: l, onChange: a, ...i, disabled: !(a || i.onChange) || i.disabled }) });
|
|
4489
4494
|
}
|
|
4490
|
-
function
|
|
4491
|
-
let L = c ? Hs(c) : 0, A = L > 0 ? L + 1 : 1, N = h ? o.jsx(
|
|
4495
|
+
function nl({ selectionColumnHeaderRef: t, className: e, style: r, sortStatus: n, sortIcons: s, onSortStatusChange: l, columns: i, defaultColumnProps: a, groups: c, selectionTrigger: d, selectionVisible: h, selectionChecked: p, selectionIndeterminate: f, onSelectionChange: m, selectionCheckboxProps: b, selectorCellShadowVisible: D, selectionColumnClassName: T, selectionColumnStyle: $, withColumnBorders: Y = !1, ref: W }) {
|
|
4496
|
+
let L = c ? Hs(c) : 0, A = L > 0 ? L + 1 : 1, N = h ? o.jsx(rl, { ref: t, className: T, style: $, trigger: d, shadowVisible: D, checked: p, indeterminate: f, checkboxProps: b, onChange: m, rowSpan: c ? A : void 0 }) : null, { columnsToggle: M, setColumnsToggle: O } = mn(), [_, k] = se(!1), E = i.some((S) => S.toggleable), I = E ? Object.fromEntries(i.map(({ accessor: S, title: g }) => [S, g ?? pn(String(S))])) : void 0, R = o.jsxs(ao, { className: he("mantine-datatable-header", e), style: r, ref: W, onContextMenu: E ? (S) => {
|
|
4492
4497
|
S.preventDefault(), k((g) => !g);
|
|
4493
4498
|
} : void 0, children: [c && Array.from({ length: L }, (S, g) => {
|
|
4494
4499
|
let y = Us(c, g);
|
|
4495
|
-
return o.jsxs(Wt, { children: [g === 0 && N, y.map((j,
|
|
4500
|
+
return o.jsxs(Wt, { children: [g === 0 && N, y.map((j, x) => o.jsx(Ui, { group: j, maxDepth: L, currentDepth: g, previousGroups: y.slice(0, x), isLastGroup: x === y.length - 1, withColumnBorders: Y, totalTableColumns: i.length }, j.id))] }, `group-depth-${g}`);
|
|
4496
4501
|
}), o.jsxs(Wt, { children: [!c && N, i.map(({ hidden: S, ...g }, y) => {
|
|
4497
4502
|
if (S) return null;
|
|
4498
|
-
let { accessor: j, visibleMediaQuery:
|
|
4499
|
-
return o.jsx(
|
|
4503
|
+
let { accessor: j, visibleMediaQuery: x, textAlign: v, width: P, title: u, sortable: w, draggable: C, toggleable: F, resizable: V, titleClassName: q, titleStyle: B, filter: U, filterPopoverProps: Q, filterPopoverDisableClickOutside: H, filtering: X, sortKey: J } = { ...a, ...g };
|
|
4504
|
+
return o.jsx(tl, { accessor: j, className: q, style: B, visibleMediaQuery: x, textAlign: v, width: P, title: u, sortable: w, draggable: C, toggleable: F, resizable: V && y < i.length - 1, sortStatus: n, sortIcons: s, sortKey: J, onSortStatusChange: l, filter: U, filterPopoverProps: Q, filterPopoverDisableClickOutside: H, filtering: X }, j);
|
|
4500
4505
|
})] })] });
|
|
4501
|
-
return
|
|
4506
|
+
return E ? o.jsxs(Xt, { position: "bottom", withArrow: !0, shadow: "md", opened: _, onChange: k, children: [o.jsx(hs, { children: R }), o.jsx(fs, { children: o.jsx(rr, { children: M.filter((S) => S.toggleable).map((S) => o.jsx(Me, { children: o.jsx(Bt, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: I[S.accessor], checked: S.toggled, onChange: (g) => {
|
|
4502
4507
|
O(M.map((y) => y.accessor === S.accessor ? { ...y, toggled: g.currentTarget.checked } : y));
|
|
4503
4508
|
} }) }, S.accessor)) }) })] }) : R;
|
|
4504
4509
|
}
|
|
4505
|
-
function
|
|
4510
|
+
function sl({ fetching: t, customContent: e, backgroundBlur: r, size: n, type: s, color: l }) {
|
|
4506
4511
|
return o.jsx(It, { className: he("mantine-datatable-loader", { "mantine-datatable-loader-fetching": t }), style: [{ backdropFilter: r ? `blur(${r}px)` : void 0 }], children: t && (e || o.jsx(lo, { size: n, type: s, color: l })) });
|
|
4507
4512
|
}
|
|
4508
4513
|
function me(t, e, r) {
|
|
4509
4514
|
return t ? uo({ color: typeof t == "object" ? t[r] : t, theme: e }).value : void 0;
|
|
4510
4515
|
}
|
|
4511
|
-
function
|
|
4516
|
+
function ol({ theme: t, c: e, backgroundColor: r, borderColor: n, rowBorderColor: s, stripedColor: l, highlightOnHoverColor: i }) {
|
|
4512
4517
|
return { "--mantine-datatable-color-light": me(e, t, "light"), "--mantine-datatable-color-dark": me(e, t, "dark"), "--mantine-datatable-background-color-light": me(r, t, "light"), "--mantine-datatable-background-color-dark": me(r, t, "dark"), "--mantine-datatable-border-color-light": me(n, t, "light"), "--mantine-datatable-border-color-dark": me(n, t, "dark"), "--mantine-datatable-row-border-color-light": me(s, t, "light"), "--mantine-datatable-row-border-color-dark": me(s, t, "dark"), "--mantine-datatable-striped-color-light": me(l, t, "light"), "--mantine-datatable-striped-color-dark": me(l, t, "dark"), "--mantine-datatable-highlight-on-hover-color-light": me(i, t, "light"), "--mantine-datatable-highlight-on-hover-color-dark": me(i, t, "dark") };
|
|
4513
4518
|
}
|
|
4514
4519
|
function Qs({ theme: t, paginationActiveTextColor: e, paginationActiveBackgroundColor: r }) {
|
|
4515
4520
|
return { "--mantine-datatable-pagination-active-text-color-light": me(e, t, "light"), "--mantine-datatable-pagination-active-text-color-dark": me(e, t, "dark"), "--mantine-datatable-pagination-active-background-color-light": me(r, t, "light"), "--mantine-datatable-pagination-active-background-color-dark": me(r, t, "dark") };
|
|
4516
4521
|
}
|
|
4517
|
-
function
|
|
4522
|
+
function al({ theme: t, color: e, backgroundColor: r }) {
|
|
4518
4523
|
return { "--mantine-datatable-row-color-light": me(e, t, "light"), "--mantine-datatable-row-color-dark": me(e, t, "dark"), "--mantine-datatable-row-background-color-light": me(r, t, "light"), "--mantine-datatable-row-background-color-dark": me(r, t, "dark") };
|
|
4519
4524
|
}
|
|
4520
|
-
function
|
|
4525
|
+
function il() {
|
|
4521
4526
|
return o.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [o.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), o.jsx("path", { d: "M8 9l4 -4l4 4" }), o.jsx("path", { d: "M16 15l-4 4l-4 -4" })] });
|
|
4522
4527
|
}
|
|
4523
4528
|
var rs = { xs: Lt(22), sm: Lt(26), md: Lt(32), lg: Lt(38), xl: Lt(44) };
|
|
4524
|
-
function
|
|
4525
|
-
return o.jsxs(Me, { gap: "xs", children: [o.jsx(rt, { component: "div", size: t, children: e }), o.jsxs(tt, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [o.jsx(fo, { children: o.jsx(mt, { size: t, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: o.jsx(
|
|
4529
|
+
function ll({ size: t, label: e, values: r, value: n, activeTextColor: s, activeBackgroundColor: l, onChange: i }) {
|
|
4530
|
+
return o.jsxs(Me, { gap: "xs", children: [o.jsx(rt, { component: "div", size: t, children: e }), o.jsxs(tt, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [o.jsx(fo, { children: o.jsx(mt, { size: t, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: o.jsx(il, {}), style: [{ fontWeight: "normal" }, (a) => ({ height: rs[t], paddingLeft: a.spacing[t], paddingRight: a.spacing[t] })], children: n }) }), o.jsx(mo, { children: r.map((a) => {
|
|
4526
4531
|
let c = a === n;
|
|
4527
4532
|
return o.jsx(po, { className: he({ "mantine-datatable-page-size-selector-active": c }), style: [{ height: rs[t] }, c && (s || l) ? (d) => Qs({ theme: d, paginationActiveTextColor: s, paginationActiveBackgroundColor: l }) : void 0], disabled: c, onClick: () => i(a), children: o.jsx(rt, { component: "div", size: t, children: a }) }, a);
|
|
4528
4533
|
}) })] })] });
|
|
4529
4534
|
}
|
|
4530
|
-
function
|
|
4535
|
+
function cl({ className: t, style: e, fetching: r, page: n, onPageChange: s, paginationWithEdges: l, paginationWithControls: i, paginationActiveTextColor: a, paginationActiveBackgroundColor: c, paginationSize: d, loadingText: h, noRecordsText: p, paginationText: f, totalRecords: m, recordsPerPage: b, onRecordsPerPageChange: D, recordsPerPageLabel: T, recordsPerPageOptions: $, recordsLength: Y, horizontalSpacing: W, paginationWrapBreakpoint: L, getPaginationControlProps: A, getPaginationItemProps: N, renderPagination: M }) {
|
|
4531
4536
|
let O;
|
|
4532
4537
|
if (m) {
|
|
4533
4538
|
let g = (n - 1) * b + 1, y = g + (Y || 0) - 1;
|
|
4534
4539
|
O = f({ from: g, to: y, totalRecords: m });
|
|
4535
4540
|
} else O = r ? h : p;
|
|
4536
|
-
let _ = m && b ? Math.max(1, Math.ceil(m / b)) : 1, k = m ? (n - 1) * (b ?? 0) + 1 : void 0,
|
|
4537
|
-
return o.jsx(ue, { px:
|
|
4541
|
+
let _ = m && b ? Math.max(1, Math.ceil(m / b)) : 1, k = m ? (n - 1) * (b ?? 0) + 1 : void 0, E = m ? (k ?? 1) + (Y ?? 0) - 1 : void 0, I = !Ar(({ breakpoints: g }) => `(min-width: ${typeof L == "number" ? `${Lt(L)}rem` : g[L] || L})`), R = { Text: (g) => o.jsx(rt, { component: "div", className: "mantine-datatable-pagination-text", size: d, ...g, children: O }), PageSizeSelector: (g) => $ ? o.jsx(ll, { activeTextColor: a, activeBackgroundColor: c, size: d, label: T, values: $, value: b, onChange: D, ...g }) : o.jsx(o.Fragment, {}), Pagination: (g) => o.jsx(gs, { classNames: { root: he("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !Y }), control: "mantine-datatable-pagination-pages-control" }, style: a || c ? (y) => Qs({ theme: y, paginationActiveTextColor: a, paginationActiveBackgroundColor: c }) : void 0, withEdges: l, withControls: i, value: n, onChange: s, size: d, total: _, getControlProps: A, getItemProps: N, ...g }) }, S = { state: { paginationSize: d, page: n, totalPages: _, totalRecords: m, recordsPerPage: b, recordsLength: Y, fetching: r, from: k, to: E, isWrapped: I }, actions: { setPage: (g) => s?.(g), setRecordsPerPage: D ? (g) => D(g) : void 0 }, Controls: R };
|
|
4542
|
+
return o.jsx(ue, { px: W ?? "xs", py: "xs", className: he("mantine-datatable-pagination", t), style: [{ flexDirection: I ? "column" : "row" }, e], children: typeof M == "function" ? M(S) : o.jsxs(o.Fragment, { children: [o.jsx(R.Text, {}), o.jsx(R.PageSizeSelector, {}), o.jsx(R.Pagination, {})] }) });
|
|
4538
4543
|
}
|
|
4539
|
-
function
|
|
4544
|
+
function ul({ className: t, style: e, visibleMediaQuery: r, record: n, index: s, onClick: l, onDoubleClick: i, onContextMenu: a, noWrap: c, ellipsis: d, textAlign: h, width: p, accessor: f, render: m, defaultRender: b, customCellAttributes: D }) {
|
|
4540
4545
|
return Ar(r) ? o.jsx(sn, { className: he({ [bn]: c || d, [yn]: d, [Vt]: l || i, [qs]: a, [$r]: h === "left", [Yr]: h === "center", [Ir]: h === "right" }, t), style: [{ width: p, minWidth: p, maxWidth: p }, e], onClick: l, onDoubleClick: i, onContextMenu: a, ...D?.(n, s), children: m ? m(n, s) : b ? b(n, s, f) : Bs(n, f) }) : null;
|
|
4541
4546
|
}
|
|
4542
|
-
function
|
|
4543
|
-
let { expanded: s, visible: l } =
|
|
4547
|
+
function dl({ open: t, colSpan: e, content: r, collapseProps: n }) {
|
|
4548
|
+
let { expanded: s, visible: l } = Wi(t, n?.transitionDuration);
|
|
4544
4549
|
return l ? o.jsxs(o.Fragment, { children: [o.jsx(Wt, {}), o.jsx(Wt, { children: o.jsx(sn, { className: "mantine-datatable-row-expansion-cell", colSpan: e, children: o.jsx(ms, { in: s, ...n, children: o.jsx("div", { className: "mantine-datatable-row-expansion-cell-content", children: r() }) }) }) })] }) : null;
|
|
4545
4550
|
}
|
|
4546
|
-
function
|
|
4551
|
+
function hl({ className: t, style: e, record: r, index: n, trigger: s, onChange: l, withRightShadow: i, checkboxProps: a, getCheckboxProps: c, ...d }) {
|
|
4547
4552
|
let h = { ...a, ...c(r, n) }, p = !d.disabled && !h.disabled, f = (m) => {
|
|
4548
4553
|
m.stopPropagation(), s === "cell" && p && l?.(m);
|
|
4549
4554
|
};
|
|
4550
4555
|
return o.jsx(sn, { className: he("mantine-datatable-row-selector-cell", { [Vt]: s === "cell" && p }, t), style: e, "data-shadow-visible": i || void 0, onClick: f, children: o.jsx(Bt, { classNames: p ? { input: Vt } : void 0, onChange: l, ...d, ...h }) });
|
|
4551
4556
|
}
|
|
4552
|
-
function
|
|
4553
|
-
let I = o.jsxs(o.Fragment, { children: [i && o.jsx(
|
|
4557
|
+
function fl({ record: t, index: e, columns: r, defaultColumnProps: n, defaultColumnRender: s, selectionTrigger: l, selectionVisible: i, selectionChecked: a, onSelectionChange: c, isRecordSelectable: d, selectionCheckboxProps: h, getSelectionCheckboxProps: p, onClick: f, onDoubleClick: m, onContextMenu: b, onCellClick: D, onCellDoubleClick: T, onCellContextMenu: $, expansion: Y, customAttributes: W, color: L, backgroundColor: A, className: N, style: M, selectorCellShadowVisible: O, selectionColumnClassName: _, selectionColumnStyle: k, rowFactory: E }) {
|
|
4558
|
+
let I = o.jsxs(o.Fragment, { children: [i && o.jsx(hl, { className: _, style: k, record: t, index: e, trigger: l, withRightShadow: O, checked: a, disabled: !c || (d ? !d(t, e) : !1), onChange: c, checkboxProps: h, getCheckboxProps: p }), r.map(({ hidden: g, hiddenContent: y, ...j }, x) => {
|
|
4554
4559
|
if (g || y) return null;
|
|
4555
|
-
let { accessor:
|
|
4556
|
-
return o.jsx(
|
|
4557
|
-
})] }), R = Y && o.jsx(
|
|
4558
|
-
return
|
|
4560
|
+
let { accessor: v, visibleMediaQuery: P, textAlign: u, noWrap: w, ellipsis: C, width: F, render: V, cellsClassName: q, cellsStyle: B, customCellAttributes: U } = { ...n, ...j };
|
|
4561
|
+
return o.jsx(ul, { className: typeof q == "function" ? q(t, e) : q, style: B?.(t, e), visibleMediaQuery: P, record: t, index: e, onClick: D ? (Q) => D({ event: Q, record: t, index: e, column: j, columnIndex: x }) : void 0, onDoubleClick: T ? (Q) => T({ event: Q, record: t, index: e, column: j, columnIndex: x }) : void 0, onContextMenu: $ ? (Q) => $({ event: Q, record: t, index: e, column: j, columnIndex: x }) : void 0, accessor: v, textAlign: u, noWrap: w, ellipsis: C, width: F, render: V, defaultRender: s, customCellAttributes: U }, v);
|
|
4562
|
+
})] }), R = Y && o.jsx(dl, { colSpan: r.filter(({ hidden: g }) => !g).length + (i ? 1 : 0), open: Y.isRowExpanded(t), content: Y.content({ record: t, index: e }), collapseProps: Y.collapseProps }), S = ml({ record: t, index: e, selectionChecked: a, onClick: f, onDoubleClick: m, onContextMenu: b, expansion: Y, customAttributes: W, color: L, backgroundColor: A, className: N, style: M });
|
|
4563
|
+
return E ? E({ record: t, index: e, rowProps: S, children: I, expandedElement: R }) : o.jsxs(o.Fragment, { children: [o.jsx(Wt, { ...S, children: I }), R] });
|
|
4559
4564
|
}
|
|
4560
|
-
function
|
|
4565
|
+
function ml({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClick: s, onContextMenu: l, expansion: i, customAttributes: a, color: c, backgroundColor: d, className: h, style: p }) {
|
|
4561
4566
|
return { className: he("mantine-datatable-row", { [Vt]: n || s || i?.isExpandable({ record: t, index: e }) && i?.expandOnClick }, { [qs]: l }, typeof h == "function" ? h(t, e) : h), "data-selected": r || void 0, onClick: (f) => {
|
|
4562
4567
|
if (i) {
|
|
4563
|
-
let { isExpandable: m, isRowExpanded: b, expandOnClick: D, expandRow:
|
|
4564
|
-
m({ record: t, index: e }) && D && (b(t) ? $(t) :
|
|
4568
|
+
let { isExpandable: m, isRowExpanded: b, expandOnClick: D, expandRow: T, collapseRow: $ } = i;
|
|
4569
|
+
m({ record: t, index: e }) && D && (b(t) ? $(t) : T(t));
|
|
4565
4570
|
}
|
|
4566
4571
|
n?.({ event: f, record: t, index: e });
|
|
4567
4572
|
}, onDoubleClick: s ? (f) => s({ event: f, record: t, index: e }) : void 0, onContextMenu: l ? (f) => l({ event: f, record: t, index: e }) : void 0, style: [c || d ? (f) => {
|
|
4568
4573
|
let m = c?.(t, e), b = d?.(t, e);
|
|
4569
|
-
return
|
|
4574
|
+
return al({ theme: f, color: m, backgroundColor: b });
|
|
4570
4575
|
} : void 0, p?.(t, e)], ...a?.(t, e) ?? {} };
|
|
4571
4576
|
}
|
|
4572
|
-
function
|
|
4577
|
+
function pl({ leftShadowBehind: t, rightShadowBehind: e, onScrollPositionChange: r, children: n, viewportRef: s, scrollAreaProps: l }) {
|
|
4573
4578
|
return o.jsxs(oo, { ...l, viewportRef: s, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [n, o.jsx(ue, { className: he("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), o.jsx("div", { className: he("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": t }) }), o.jsx("div", { className: he("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": e }) }), o.jsx(ue, { className: he("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
|
|
4574
4579
|
}
|
|
4575
|
-
function
|
|
4576
|
-
let Se = qe(() => p ? gn(p) : d, [d, p]), [Ue, it] = se(!1), { refs: ye, onScroll: At } =
|
|
4580
|
+
function gl({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: s, maxHeight: l, shadow: i, verticalAlign: a = "center", fetching: c, columns: d, storeColumnsKey: h, groups: p, pinFirstColumn: f, pinLastColumn: m, defaultColumnProps: b, defaultColumnRender: D, idAccessor: T = "id", records: $, selectionTrigger: Y = "checkbox", selectedRecords: W, onSelectedRecordsChange: L, selectionColumnClassName: A, selectionColumnStyle: N, isRecordSelectable: M, selectionCheckboxProps: O, allRecordsSelectionCheckboxProps: _ = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: k = (Se, Ue) => ({ "aria-label": `Select record ${Ue + 1}` }), sortStatus: E, sortIcons: I, onSortStatusChange: R, horizontalSpacing: S, page: g, onPageChange: y, totalRecords: j, recordsPerPage: x, onRecordsPerPageChange: v, recordsPerPageOptions: P, recordsPerPageLabel: u = "Records per page", paginationWithEdges: w, paginationWithControls: C, paginationActiveTextColor: F, paginationActiveBackgroundColor: V, paginationSize: q = "sm", paginationText: B = ({ from: Se, to: Ue, totalRecords: it }) => `${Se} - ${Ue} / ${it}`, paginationWrapBreakpoint: U = "sm", getPaginationControlProps: Q = (Se) => Se === "previous" ? { "aria-label": "Previous page" } : Se === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: H, renderPagination: X, loaderBackgroundBlur: J, customLoader: ee, loaderSize: ae, loaderType: de, loaderColor: te, loadingText: je = "...", emptyState: pe, noRecordsText: Te = "No records", noRecordsIcon: Oe, highlightOnHover: lt, striped: Ie, noHeader: nt, onRowClick: Fe, onRowDoubleClick: We, onRowContextMenu: st, onCellClick: G, onCellDoubleClick: ge, onCellContextMenu: fe, onScroll: ct, onScrollToTop: oe, onScrollToBottom: Le, onScrollToLeft: pt, onScrollToRight: gt, c: Ge, backgroundColor: ze, borderColor: jt, rowBorderColor: Ce, stripedColor: ut, highlightOnHoverColor: Ne, rowColor: dt, rowBackgroundColor: Pt, rowExpansion: we, rowClassName: Mt, rowStyle: Ee, customRowAttributes: ht, scrollViewportRef: Ve, scrollAreaProps: ot, tableRef: Be, bodyRef: Ke, m: at, my: K, mx: le, mt: Ae, mb: Je, ml: bt, mr: yt, className: Nt, classNames: ft, style: vt, styles: He, rowFactory: xt, tableWrapper: Ct, ...Rt }) {
|
|
4581
|
+
let Se = qe(() => p ? gn(p) : d, [d, p]), [Ue, it] = se(!1), { refs: ye, onScroll: At } = Ei({ scrollCallbacks: { onScroll: ct, onScrollToTop: oe, onScrollToBottom: Le, onScrollToLeft: pt, onScrollToRight: gt }, withRowBorders: Rt.withRowBorders }), Z = Oi({ key: h, columns: Se, headerRef: ye.header, scrollViewportRef: ye.scrollViewport, onFixedLayoutChange: it }), re = kn(ye.table, Be), Ze = kn(ye.scrollViewport, Ve), De = Fi({ rowExpansion: we, records: $, idAccessor: T }), ce = ie(!1), _e = ie(g), wt = ie($), $e = ve((ne) => {
|
|
4577
4582
|
ce.current = !0, wt.current = $, y(ne);
|
|
4578
4583
|
}, [y, $]);
|
|
4579
4584
|
be(() => {
|
|
@@ -4589,21 +4594,21 @@ function pl({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, hei
|
|
|
4589
4594
|
});
|
|
4590
4595
|
return () => cancelAnimationFrame(Ot);
|
|
4591
4596
|
}, [c, $, ye.scrollViewport]);
|
|
4592
|
-
let vn = $?.map((ne) => Pe(ne,
|
|
4593
|
-
|
|
4594
|
-
}, [ir,
|
|
4595
|
-
return o.jsx(Gn, { ...Z, children: o.jsxs(ue, { ref: ye.root, ...Zs, className: he("mantine-datatable", { "mantine-datatable-with-border": t }, Nt, ft?.root), style: [(ne) => ({ ...
|
|
4596
|
-
let zr = Pe(ne,
|
|
4597
|
-
return L &&
|
|
4597
|
+
let vn = $?.map((ne) => Pe(ne, T)), $t = !!W, Qt = W?.map((ne) => Pe(ne, T)), xn = vn !== void 0 && Qt !== void 0 && Qt.length > 0, Fr = M ? $?.filter(M) : $, ar = Fr?.map((ne) => Pe(ne, T)), ir = xn && ar.every((ne) => Qt.includes(ne)), Gs = xn && ar.some((ne) => Qt.includes(ne)), Ks = ve(() => {
|
|
4598
|
+
W && L && L(ir ? W.filter((ne) => !ar.includes(Pe(ne, T))) : Gr([...W, ...Fr], (ne) => Pe(ne, T)));
|
|
4599
|
+
}, [ir, T, L, ar, Fr, W]), { lastSelectionChangeIndex: lr, setLastSelectionChangeIndex: Js } = Ti(vn), Wr = $t && !f, Zs = { m: at, my: K, mx: le, mt: Ae, mb: Je, ml: bt, mr: yt }, Xs = ve(({ children: ne }) => Ct ? Ct({ children: ne }) : ne, [Ct]);
|
|
4600
|
+
return o.jsx(Gn, { ...Z, children: o.jsxs(ue, { ref: ye.root, ...Zs, className: he("mantine-datatable", { "mantine-datatable-with-border": t }, Nt, ft?.root), style: [(ne) => ({ ...ol({ theme: ne, c: Ge, backgroundColor: ze, borderColor: jt, rowBorderColor: Ce, stripedColor: ut, highlightOnHoverColor: Ne }), borderRadius: ne.radius[e] || e, boxShadow: ne.shadows[i] || i, height: n, minHeight: s, maxHeight: l }), vt, He?.root, { position: "relative" }], children: [o.jsx(pl, { viewportRef: Ze, leftShadowBehind: $t || !!f, rightShadowBehind: m, onScrollPositionChange: At, scrollAreaProps: ot, children: o.jsx(Xs, { children: o.jsxs(so, { ref: re, horizontalSpacing: S, className: he("mantine-datatable-table", { [zi]: r, "mantine-datatable-vertical-align-top": a === "top", "mantine-datatable-vertical-align-bottom": a === "bottom", "mantine-datatable-pin-last-column": m, "mantine-datatable-selection-column-visible": $t, "mantine-datatable-pin-first-column": f, "mantine-datatable-resizable-columns": Z.hasResizableColumns && Ue }, ft?.table), style: { ...He?.table }, "data-striped": qt && Ie || void 0, "data-highlight-on-hover": lt || void 0, ...Rt, children: [nt ? null : o.jsx(Gn, { ...Z, children: o.jsx(nl, { ref: ye.header, selectionColumnHeaderRef: ye.selectionColumnHeader, className: ft?.header, style: He?.header, columns: Se, defaultColumnProps: b, groups: p, sortStatus: E, sortIcons: I, onSortStatusChange: R, selectionTrigger: Y, selectionVisible: $t, selectionChecked: ir, selectionIndeterminate: Gs && !ir, onSelectionChange: Ks, selectionCheckboxProps: { ...O, ..._ }, selectorCellShadowVisible: Wr, selectionColumnClassName: A, selectionColumnStyle: N, withColumnBorders: Rt.withColumnBorders }) }), o.jsx("tbody", { ref: Ke, children: qt ? $.map((ne, Ot) => {
|
|
4601
|
+
let zr = Pe(ne, T), Vr = Qt?.includes(zr) || !1, Cn;
|
|
4602
|
+
return L && W && (Cn = (eo) => {
|
|
4598
4603
|
if (eo.nativeEvent.shiftKey && lr !== null) {
|
|
4599
|
-
let Yt = $.filter(Ot > lr ? (
|
|
4600
|
-
L(Vr ?
|
|
4601
|
-
} else L(Vr ?
|
|
4604
|
+
let Yt = $.filter(Ot > lr ? (Et, Tt) => Tt >= lr && Tt <= Ot && (M ? M(Et, Tt) : !0) : (Et, Tt) => Tt >= Ot && Tt <= lr && (M ? M(Et, Tt) : !0));
|
|
4605
|
+
L(Vr ? Yi(W, Yt, (Et) => Pe(Et, T)) : Gr([...W, ...Yt], (Et) => Pe(Et, T)));
|
|
4606
|
+
} else L(Vr ? W.filter((Yt) => Pe(Yt, T) !== zr) : Gr([...W, ne], (Yt) => Pe(Yt, T)));
|
|
4602
4607
|
Js(Ot);
|
|
4603
|
-
}), o.jsx(
|
|
4604
|
-
}) : o.jsx(
|
|
4608
|
+
}), o.jsx(fl, { record: ne, index: Ot, columns: Se, defaultColumnProps: b, defaultColumnRender: D, selectionTrigger: Y, selectionVisible: $t, selectionChecked: Vr, onSelectionChange: Cn, isRecordSelectable: M, selectionCheckboxProps: O, getSelectionCheckboxProps: k, onClick: Fe, onDoubleClick: We, onCellClick: G, onCellDoubleClick: ge, onContextMenu: st, onCellContextMenu: fe, expansion: De, color: dt, backgroundColor: Pt, className: Mt, style: Ee, customAttributes: ht, selectorCellShadowVisible: Wr, selectionColumnClassName: A, selectionColumnStyle: N, idAccessor: T, rowFactory: xt }, zr);
|
|
4609
|
+
}) : o.jsx(_i, {}) }), Se.some(({ footer: ne }) => ne) && o.jsx(Hi, { ref: ye.footer, className: ft?.footer, style: He?.footer, columns: Se, defaultColumnProps: b, selectionVisible: $t, selectorCellShadowVisible: Wr })] }) }) }), !!(g && qt) && o.jsx(cl, { className: ft?.pagination, style: He?.pagination, horizontalSpacing: S, fetching: c, page: g, onPageChange: $e, totalRecords: j, recordsPerPage: x, onRecordsPerPageChange: v, recordsPerPageOptions: P, recordsPerPageLabel: u, paginationWithEdges: w, paginationWithControls: C, paginationActiveTextColor: F, paginationActiveBackgroundColor: V, paginationSize: q, paginationText: B, paginationWrapBreakpoint: U, getPaginationControlProps: Q, getPaginationItemProps: H, noRecordsText: Te, loadingText: je, recordsLength: qt, renderPagination: X }), o.jsx(sl, { fetching: c, backgroundBlur: J, customContent: ee, size: ae, type: de, color: te }), o.jsx(ji, { icon: Oe, text: Te, active: !c && !qt, children: pe })] }) });
|
|
4605
4610
|
}
|
|
4606
|
-
function
|
|
4611
|
+
function bl(t) {
|
|
4607
4612
|
const e = Ye.c(42), {
|
|
4608
4613
|
fields: r,
|
|
4609
4614
|
onClose: n,
|
|
@@ -4617,18 +4622,18 @@ function gl(t) {
|
|
|
4617
4622
|
} = ga(l, s, i), {
|
|
4618
4623
|
mutateAsync: b,
|
|
4619
4624
|
isError: D,
|
|
4620
|
-
error:
|
|
4625
|
+
error: T,
|
|
4621
4626
|
isPending: $
|
|
4622
4627
|
} = ks(l, s);
|
|
4623
4628
|
let Y;
|
|
4624
|
-
e[0] !== r ? (Y = new Set(r.filter(
|
|
4625
|
-
let
|
|
4626
|
-
e[2] !== Y ? (
|
|
4627
|
-
const L =
|
|
4629
|
+
e[0] !== r ? (Y = new Set(r.filter(Dl).map(Sl)), e[0] = r, e[1] = Y) : Y = e[1];
|
|
4630
|
+
let W;
|
|
4631
|
+
e[2] !== Y ? (W = [...Y], e[2] = Y, e[3] = W) : W = e[3];
|
|
4632
|
+
const L = W;
|
|
4628
4633
|
let A;
|
|
4629
|
-
e[4] !== r ? (A = r.reduce(
|
|
4634
|
+
e[4] !== r ? (A = r.reduce(wl, {}), e[4] = r, e[5] = A) : A = e[5];
|
|
4630
4635
|
let N;
|
|
4631
|
-
e[6] !== r ? (N = r.filter(
|
|
4636
|
+
e[6] !== r ? (N = r.filter(Cl).reduce(xl, {}), e[6] = r, e[7] = N) : N = e[7];
|
|
4632
4637
|
let M;
|
|
4633
4638
|
e[8] !== A || e[9] !== N ? (M = {
|
|
4634
4639
|
mode: "uncontrolled",
|
|
@@ -4639,65 +4644,66 @@ function gl(t) {
|
|
|
4639
4644
|
let _;
|
|
4640
4645
|
e[11] !== f || e[12] !== r || e[13] !== O ? (_ = () => {
|
|
4641
4646
|
if (f) {
|
|
4642
|
-
const
|
|
4647
|
+
const x = {
|
|
4643
4648
|
...f
|
|
4644
4649
|
};
|
|
4645
|
-
r.forEach((
|
|
4646
|
-
const P =
|
|
4647
|
-
|
|
4648
|
-
}), O.initialize(
|
|
4650
|
+
r.forEach((v) => {
|
|
4651
|
+
const P = v.id;
|
|
4652
|
+
v.type === "boolean" && x[P] === null ? x[P] = !1 : v.type === "date" && x[P] ? x[P] = new Date(x[P]) : x[P] === null && (x[P] = "");
|
|
4653
|
+
}), O.initialize(x), O.setValues(x);
|
|
4649
4654
|
}
|
|
4650
4655
|
}, e[11] = f, e[12] = r, e[13] = O, e[14] = _) : _ = e[14];
|
|
4651
4656
|
let k;
|
|
4652
4657
|
e[15] !== f ? (k = [f], e[15] = f, e[16] = k) : k = e[16], be(_, k);
|
|
4653
|
-
let
|
|
4654
|
-
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
4655
|
-
return typeof
|
|
4656
|
-
}, e[17] =
|
|
4657
|
-
const I =
|
|
4658
|
+
let E;
|
|
4659
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = function(v, P) {
|
|
4660
|
+
return typeof v.required == "function" ? v.required(P ?? {}) : !!v.required;
|
|
4661
|
+
}, e[17] = E) : E = e[17];
|
|
4662
|
+
const I = E;
|
|
4658
4663
|
let R;
|
|
4659
|
-
e[18] !== O || e[19] !== i ? (R = function(
|
|
4664
|
+
e[18] !== O || e[19] !== i ? (R = function(v) {
|
|
4660
4665
|
const P = O.getValues();
|
|
4661
|
-
if (
|
|
4666
|
+
if (v.conditional && !v.conditional(P))
|
|
4662
4667
|
return null;
|
|
4663
|
-
const u = I(
|
|
4668
|
+
const u = I(v, P);
|
|
4664
4669
|
return /* @__PURE__ */ o.jsxs(as, { children: [
|
|
4665
|
-
(
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4670
|
+
(v.type === void 0 || v.type == "text") && /* @__PURE__ */ o.jsx(cs, { label: v.column.title, placeholder: v.placeholder ?? "", ...O.getInputProps(v.id), type: v.id.includes("email") ? "email" : void 0, required: u }, O.key(v.id)),
|
|
4671
|
+
v.type === "number" && /* @__PURE__ */ o.jsx(us, { decimalSeparator: ",", label: v.column.title, placeholder: v.placeholder ?? "", ...O.getInputProps(v.id), required: u }, O.key(v.id)),
|
|
4672
|
+
v.type === "date" && /* @__PURE__ */ o.jsx(Nr, { label: v.column.title, placeholder: v.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...O.getInputProps(v.id), required: u }, O.key(v.id)),
|
|
4673
|
+
v.type === "boolean" && /* @__PURE__ */ o.jsx(Bt, { mt: "md", label: v.column.title, ...O.getInputProps(v.id, {
|
|
4669
4674
|
type: "checkbox"
|
|
4670
|
-
}), required: u }, O.key(
|
|
4671
|
-
|
|
4672
|
-
|
|
4675
|
+
}), required: u }, O.key(v.id)),
|
|
4676
|
+
v.type === "textarea" && /* @__PURE__ */ o.jsx(ds, { label: v.column.title, placeholder: v.placeholder ?? "", ...O.getInputProps(v.id), minRows: 3, autosize: !0, required: u }, O.key(v.id)),
|
|
4677
|
+
v.type === "custom" && v.render && v.render({
|
|
4673
4678
|
...O.getValues(),
|
|
4674
4679
|
id: i
|
|
4675
4680
|
}, O.setValues, p, {
|
|
4676
|
-
error: O.getInputProps(
|
|
4681
|
+
error: O.getInputProps(v.id).error,
|
|
4677
4682
|
required: u
|
|
4678
4683
|
})
|
|
4679
|
-
] },
|
|
4684
|
+
] }, v.id);
|
|
4680
4685
|
}, e[18] = O, e[19] = i, e[20] = R) : R = e[20];
|
|
4681
4686
|
const S = R;
|
|
4682
4687
|
let g;
|
|
4683
|
-
e[21] !== D || e[22] !==
|
|
4688
|
+
e[21] !== D || e[22] !== T?.message || e[23] !== T?.name ? (g = D && /* @__PURE__ */ o.jsx(Cr, { variant: "outline", color: "red", title: T?.name ?? "Fehler aufgetreten", mb: "lg", children: T?.message ?? "Fehler aufgetreten" }), e[21] = D, e[22] = T?.message, e[23] = T?.name, e[24] = g) : g = e[24];
|
|
4684
4689
|
let y;
|
|
4685
4690
|
e[25] !== c || e[26] !== r || e[27] !== O || e[28] !== h || e[29] !== i || e[30] !== m || e[31] !== $ || e[32] !== D || e[33] !== n || e[34] !== S || e[35] !== a || e[36] !== L || e[37] !== b ? (y = m ? /* @__PURE__ */ o.jsxs(rr, { gap: "md", children: [
|
|
4686
4691
|
/* @__PURE__ */ o.jsx(Ft, { height: 40 }),
|
|
4687
|
-
Array(r.length).fill(0).map(
|
|
4692
|
+
Array(r.length).fill(0).map(vl),
|
|
4688
4693
|
/* @__PURE__ */ o.jsxs(Me, { mt: "md", justify: "end", children: [
|
|
4689
4694
|
/* @__PURE__ */ o.jsx(Ft, { width: 100, height: 36 }),
|
|
4690
4695
|
/* @__PURE__ */ o.jsx(Ft, { width: 100, height: 36 })
|
|
4691
4696
|
] })
|
|
4692
|
-
] }) : /* @__PURE__ */ o.jsxs("form", { onSubmit: O.onSubmit(async (
|
|
4697
|
+
] }) : /* @__PURE__ */ o.jsxs("form", { onSubmit: O.onSubmit(async (x) => {
|
|
4698
|
+
const v = Object.fromEntries(Object.entries(x).map(yl));
|
|
4693
4699
|
await b({
|
|
4694
4700
|
...v,
|
|
4695
4701
|
id: i
|
|
4696
4702
|
}), L.length && c < L.length - 1 ? D || d(c + 1) : D || (O.setInitialValues(v), O.reset(), n());
|
|
4697
4703
|
}), children: [
|
|
4698
|
-
L.length ? /* @__PURE__ */ o.jsx(gr, { active: c, size: "sm", children: L.map((
|
|
4699
|
-
label: a[
|
|
4700
|
-
} : {}, children: r.filter((
|
|
4704
|
+
L.length ? /* @__PURE__ */ o.jsx(gr, { active: c, size: "sm", children: L.map((x) => /* @__PURE__ */ o.jsx(gr.Step, { ...a && a[x - 1] ? {
|
|
4705
|
+
label: a[x - 1].label
|
|
4706
|
+
} : {}, children: r.filter((v) => v.step === x).map((v) => S(v)) }, x)) }) : r.map((x) => S(x)),
|
|
4701
4707
|
!h && /* @__PURE__ */ o.jsxs(Me, { mt: "md", justify: "end", children: [
|
|
4702
4708
|
/* @__PURE__ */ o.jsx(mt, { onClick: () => L.length ? c === 0 ? n() : d(c - 1) : n(), variant: "outline", children: L.length ? c === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
|
|
4703
4709
|
/* @__PURE__ */ o.jsx(mt, { type: "submit", loading: $, children: L.length ? c === L.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
|
|
@@ -4709,25 +4715,29 @@ function gl(t) {
|
|
|
4709
4715
|
y
|
|
4710
4716
|
] }), e[39] = g, e[40] = y, e[41] = j) : j = e[41], j;
|
|
4711
4717
|
}
|
|
4712
|
-
function
|
|
4718
|
+
function yl(t) {
|
|
4719
|
+
const [e, r] = t;
|
|
4720
|
+
return [e, r === "" ? void 0 : r];
|
|
4721
|
+
}
|
|
4722
|
+
function vl(t, e) {
|
|
4713
4723
|
return /* @__PURE__ */ o.jsx(Ft, { height: 35 }, `skeleton-field-${e}`);
|
|
4714
4724
|
}
|
|
4715
|
-
function
|
|
4725
|
+
function xl(t, e) {
|
|
4716
4726
|
return t[e.id] = (r, n) => e.conditional && !e.conditional(n) || !(typeof e.required == "function" ? e.required(n) : !!e.required) || r ? null : "Pflichtfeld", t;
|
|
4717
4727
|
}
|
|
4718
|
-
function
|
|
4728
|
+
function Cl(t) {
|
|
4719
4729
|
return t.required;
|
|
4720
4730
|
}
|
|
4721
|
-
function
|
|
4731
|
+
function wl(t, e) {
|
|
4722
4732
|
return t[e.id] = e.type === "boolean" ? e.defaultValue ?? !1 : e.defaultValue ?? "", t;
|
|
4723
4733
|
}
|
|
4724
|
-
function
|
|
4734
|
+
function Sl(t) {
|
|
4725
4735
|
return t.step;
|
|
4726
4736
|
}
|
|
4727
|
-
function
|
|
4737
|
+
function Dl(t) {
|
|
4728
4738
|
return typeof t.step == "number";
|
|
4729
4739
|
}
|
|
4730
|
-
function
|
|
4740
|
+
function _l({
|
|
4731
4741
|
queryKey: t,
|
|
4732
4742
|
apiPath: e,
|
|
4733
4743
|
onClose: r,
|
|
@@ -4757,7 +4767,7 @@ function Sl({
|
|
|
4757
4767
|
] })
|
|
4758
4768
|
] }) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
4759
4769
|
}
|
|
4760
|
-
function
|
|
4770
|
+
function kl(t, e) {
|
|
4761
4771
|
const r = Ye.c(8);
|
|
4762
4772
|
let n;
|
|
4763
4773
|
r[0] !== t || r[1] !== e ? (n = () => {
|
|
@@ -4773,7 +4783,7 @@ function Dl(t, e) {
|
|
|
4773
4783
|
let c;
|
|
4774
4784
|
return r[5] !== a || r[6] !== s ? (c = [s, a], r[5] = a, r[6] = s, r[7] = c) : c = r[7], c;
|
|
4775
4785
|
}
|
|
4776
|
-
const
|
|
4786
|
+
const jl = [/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, /^\d{4}-\d{2}-\d{2}$/, /^\d{1,2}\/\d{1,2}\/\d{4}$/, /^\d{1,2}\.\d{1,2}\.\d{4}$/], Pl = (t, e) => {
|
|
4777
4787
|
const r = t.map((i) => i[e]).filter((i) => i != null && i !== "");
|
|
4778
4788
|
if (r.length === 0) return "string";
|
|
4779
4789
|
const n = r.slice(0, 100), s = {
|
|
@@ -4790,7 +4800,7 @@ const _l = [/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, /^\d{4}-\d{2}-\d{2}$/, /^\d{
|
|
|
4790
4800
|
s.number++;
|
|
4791
4801
|
return;
|
|
4792
4802
|
}
|
|
4793
|
-
if (
|
|
4803
|
+
if (jl.some((c) => c.test(a))) {
|
|
4794
4804
|
const c = new Date(a);
|
|
4795
4805
|
if (!isNaN(c.getTime())) {
|
|
4796
4806
|
s.date++;
|
|
@@ -4821,9 +4831,9 @@ function ns(t, e) {
|
|
|
4821
4831
|
return String(t).toLowerCase().trim();
|
|
4822
4832
|
}
|
|
4823
4833
|
}
|
|
4824
|
-
const
|
|
4834
|
+
const Ml = (t, e, r = "asc") => {
|
|
4825
4835
|
if (!t || t.length === 0) return [];
|
|
4826
|
-
const n =
|
|
4836
|
+
const n = Pl(t, e);
|
|
4827
4837
|
return [...t].sort((s, l) => {
|
|
4828
4838
|
const i = s[e], a = l[e], c = i == null || i === "", d = a == null || a === "";
|
|
4829
4839
|
if (c && d) return 0;
|
|
@@ -4833,20 +4843,20 @@ const jl = (t, e, r = "asc") => {
|
|
|
4833
4843
|
return h === null && p === null ? 0 : h === null ? r === "asc" ? 1 : -1 : p === null || h < p ? r === "asc" ? -1 : 1 : h > p ? r === "asc" ? 1 : -1 : 0;
|
|
4834
4844
|
});
|
|
4835
4845
|
};
|
|
4836
|
-
function
|
|
4846
|
+
function Rl(t, e) {
|
|
4837
4847
|
return e.split(".").reduce((r, n) => {
|
|
4838
4848
|
if (r && typeof r == "object" && n in r)
|
|
4839
4849
|
return r[n];
|
|
4840
4850
|
}, t);
|
|
4841
4851
|
}
|
|
4842
|
-
function
|
|
4852
|
+
function Ol(t, e) {
|
|
4843
4853
|
const r = e.column;
|
|
4844
4854
|
if (r.render)
|
|
4845
4855
|
return r.render(t, 0);
|
|
4846
|
-
const n = r.accessor ?? e.id, s =
|
|
4856
|
+
const n = r.accessor ?? e.id, s = Rl(t, n);
|
|
4847
4857
|
return s == null ? /* @__PURE__ */ o.jsx(rt, { c: "dimmed", children: "–" }) : typeof s == "boolean" ? /* @__PURE__ */ o.jsx(rt, { fz: "sm", children: s ? "Ja" : "Nein" }) : /* @__PURE__ */ o.jsx(rt, { fz: "sm", children: String(s) });
|
|
4848
4858
|
}
|
|
4849
|
-
function
|
|
4859
|
+
function El(t) {
|
|
4850
4860
|
const e = Ye.c(10), {
|
|
4851
4861
|
field: r,
|
|
4852
4862
|
record: n
|
|
@@ -4854,7 +4864,7 @@ function Rl(t) {
|
|
|
4854
4864
|
let l;
|
|
4855
4865
|
e[0] !== s ? (l = /* @__PURE__ */ o.jsx(rt, { fw: 700, fz: "sm", children: s }), e[0] = s, e[1] = l) : l = e[1];
|
|
4856
4866
|
let i;
|
|
4857
|
-
e[2] !== r || e[3] !== n ? (i =
|
|
4867
|
+
e[2] !== r || e[3] !== n ? (i = Ol(n, r), e[2] = r, e[3] = n, e[4] = i) : i = e[4];
|
|
4858
4868
|
let a;
|
|
4859
4869
|
e[5] !== i ? (a = /* @__PURE__ */ o.jsx(ue, { ta: "right", fz: "sm", children: i }), e[5] = i, e[6] = a) : a = e[6];
|
|
4860
4870
|
let c;
|
|
@@ -4863,7 +4873,7 @@ function Rl(t) {
|
|
|
4863
4873
|
a
|
|
4864
4874
|
] }), e[7] = l, e[8] = a, e[9] = c) : c = e[9], c;
|
|
4865
4875
|
}
|
|
4866
|
-
function
|
|
4876
|
+
function Tl(t) {
|
|
4867
4877
|
const e = Ye.c(42), {
|
|
4868
4878
|
records: r,
|
|
4869
4879
|
fields: n,
|
|
@@ -4881,39 +4891,39 @@ function Ol(t) {
|
|
|
4881
4891
|
let b;
|
|
4882
4892
|
e[0] !== l ? (b = l === void 0 ? [] : l, e[0] = l, e[1] = b) : b = e[1];
|
|
4883
4893
|
const D = b;
|
|
4884
|
-
let
|
|
4885
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
4886
|
-
const [$, Y] = se(
|
|
4887
|
-
let
|
|
4888
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
4894
|
+
let T;
|
|
4895
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ new Set(), e[2] = T) : T = e[2];
|
|
4896
|
+
const [$, Y] = se(T);
|
|
4897
|
+
let W;
|
|
4898
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (R) => {
|
|
4889
4899
|
Y((S) => {
|
|
4890
4900
|
const g = new Set(S);
|
|
4891
4901
|
return g.has(R) ? g.delete(R) : g.add(R), g;
|
|
4892
4902
|
});
|
|
4893
|
-
}, e[3] =
|
|
4894
|
-
const L =
|
|
4903
|
+
}, e[3] = W) : W = e[3];
|
|
4904
|
+
const L = W;
|
|
4895
4905
|
let A, N, M, O, _, k;
|
|
4896
4906
|
if (e[4] !== c || e[5] !== h || e[6] !== d || e[7] !== $ || e[8] !== n || e[9] !== a || e[10] !== i || e[11] !== r || e[12] !== m || e[13] !== D || e[14] !== s || e[15] !== f) {
|
|
4897
4907
|
k = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
4898
4908
|
e: {
|
|
4899
|
-
const R = n.filter(
|
|
4909
|
+
const R = n.filter(Il), S = R.filter(Yl).reduce($l, []);
|
|
4900
4910
|
let g;
|
|
4901
|
-
e[22] !== D ? (g = (u) => D.some((
|
|
4911
|
+
e[22] !== D ? (g = (u) => D.some((w) => w.id === u.id), e[22] = D, e[23] = g) : g = e[23];
|
|
4902
4912
|
const y = g;
|
|
4903
4913
|
let j;
|
|
4904
4914
|
e[24] !== y || e[25] !== i || e[26] !== D ? (j = (u) => {
|
|
4905
|
-
i && (y(u) ? i(D.filter((
|
|
4915
|
+
i && (y(u) ? i(D.filter((w) => w.id !== u.id)) : i([...D, u]));
|
|
4906
4916
|
}, e[24] = y, e[25] = i, e[26] = D, e[27] = j) : j = e[27];
|
|
4907
|
-
const
|
|
4908
|
-
let
|
|
4909
|
-
e[28] !== a || e[29] !== s || e[30] !==
|
|
4917
|
+
const x = j;
|
|
4918
|
+
let v;
|
|
4919
|
+
e[28] !== a || e[29] !== s || e[30] !== x ? (v = (u, w, C) => {
|
|
4910
4920
|
a ? a({
|
|
4911
4921
|
record: u,
|
|
4912
|
-
index:
|
|
4913
|
-
event:
|
|
4914
|
-
}) : s &&
|
|
4915
|
-
}, e[28] = a, e[29] = s, e[30] =
|
|
4916
|
-
const P =
|
|
4922
|
+
index: w,
|
|
4923
|
+
event: C
|
|
4924
|
+
}) : s && x(u);
|
|
4925
|
+
}, e[28] = a, e[29] = s, e[30] = x, e[31] = v) : v = e[31];
|
|
4926
|
+
const P = v;
|
|
4917
4927
|
if (r.length === 0) {
|
|
4918
4928
|
let u;
|
|
4919
4929
|
e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ o.jsx(rt, { c: "dimmed", ta: "center", py: "xl", children: "Keine Einträge gefunden" }), e[32] = u) : u = e[32], k = u;
|
|
@@ -4924,16 +4934,16 @@ function Ol(t) {
|
|
|
4924
4934
|
flex: 1
|
|
4925
4935
|
} }),
|
|
4926
4936
|
/* @__PURE__ */ o.jsx(zt, { variant: "filled", size: "input-sm", onClick: () => f.onSortChange(f.field, f.direction === "asc" ? "desc" : "asc"), children: f.direction === "asc" ? /* @__PURE__ */ o.jsx(Co, { size: 18 }) : /* @__PURE__ */ o.jsx(wo, { size: 18 }) })
|
|
4927
|
-
] }), _ = r.map((u,
|
|
4928
|
-
const
|
|
4929
|
-
return /* @__PURE__ */ o.jsx(tr.Fragment, { children: /* @__PURE__ */ o.jsxs(ue, { bg:
|
|
4937
|
+
] }), _ = r.map((u, w) => {
|
|
4938
|
+
const C = y(u), F = !!a || !!s, V = u.id ?? w, q = $.has(V);
|
|
4939
|
+
return /* @__PURE__ */ o.jsx(tr.Fragment, { children: /* @__PURE__ */ o.jsxs(ue, { bg: C ? "var(--mantine-primary-color-light)" : "var(--mantine-color-body)", bd: C ? void 0 : "1px solid var(--mantine-color-default-border)", style: {
|
|
4930
4940
|
borderRadius: "var(--mantine-radius-md)",
|
|
4931
4941
|
overflow: "hidden"
|
|
4932
4942
|
}, children: [
|
|
4933
4943
|
/* @__PURE__ */ o.jsxs(ue, { w: "100%", style: {
|
|
4934
|
-
cursor:
|
|
4944
|
+
cursor: F || m ? "pointer" : "default"
|
|
4935
4945
|
}, onClick: (B) => {
|
|
4936
|
-
m && !a ? L(V) : P(u,
|
|
4946
|
+
m && !a ? L(V) : P(u, w, B);
|
|
4937
4947
|
}, children: [
|
|
4938
4948
|
(s || m || c && c.length > 0) && /* @__PURE__ */ o.jsxs(Me, { px: "sm", pt: "sm", justify: "space-between", children: [
|
|
4939
4949
|
/* @__PURE__ */ o.jsxs(Me, { gap: "xs", children: [
|
|
@@ -4947,12 +4957,12 @@ function Ol(t) {
|
|
|
4947
4957
|
transform: q ? "rotate(0deg)" : "rotate(-90deg)",
|
|
4948
4958
|
transition: "transform 200ms"
|
|
4949
4959
|
} }) }),
|
|
4950
|
-
s && /* @__PURE__ */ o.jsx(Bt, { checked:
|
|
4960
|
+
s && /* @__PURE__ */ o.jsx(Bt, { checked: C, onChange: () => x(u), onClick: Al })
|
|
4951
4961
|
] }),
|
|
4952
4962
|
c && c.length > 0 && (() => {
|
|
4953
4963
|
const B = c.filter((U) => !(U.label === "Bearbeiten" && d && !d(u) || U.label === "Löschen" && h && !h(u)));
|
|
4954
4964
|
return B.length === 0 ? null : /* @__PURE__ */ o.jsxs(tt, { shadow: "md", position: "bottom-end", children: [
|
|
4955
|
-
/* @__PURE__ */ o.jsx(tt.Target, { children: /* @__PURE__ */ o.jsx(zt, { variant: "subtle", color: "gray", size: "sm", onClick:
|
|
4965
|
+
/* @__PURE__ */ o.jsx(tt.Target, { children: /* @__PURE__ */ o.jsx(zt, { variant: "subtle", color: "gray", size: "sm", onClick: Nl, children: /* @__PURE__ */ o.jsx(Do, { size: 16 }) }) }),
|
|
4956
4966
|
/* @__PURE__ */ o.jsx(tt.Dropdown, { children: B.map((U, Q) => /* @__PURE__ */ o.jsx(tt.Item, { leftSection: U.icon, onClick: (H) => {
|
|
4957
4967
|
H.stopPropagation(), U.onClick([u]);
|
|
4958
4968
|
}, children: U.label }, `card_action_${Q}`)) })
|
|
@@ -4961,7 +4971,7 @@ function Ol(t) {
|
|
|
4961
4971
|
] }),
|
|
4962
4972
|
R.map((B, U) => /* @__PURE__ */ o.jsxs(tr.Fragment, { children: [
|
|
4963
4973
|
U > 0 && /* @__PURE__ */ o.jsx(_n, {}),
|
|
4964
|
-
/* @__PURE__ */ o.jsx(
|
|
4974
|
+
/* @__PURE__ */ o.jsx(El, { field: B, record: u })
|
|
4965
4975
|
] }, B.id))
|
|
4966
4976
|
] }),
|
|
4967
4977
|
m && /* @__PURE__ */ o.jsxs(ms, { in: q, children: [
|
|
@@ -4976,48 +4986,48 @@ function Ol(t) {
|
|
|
4976
4986
|
A = e[16], N = e[17], M = e[18], O = e[19], _ = e[20], k = e[21];
|
|
4977
4987
|
if (k !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
4978
4988
|
return k;
|
|
4979
|
-
let
|
|
4980
|
-
e[33] !== p ? (
|
|
4989
|
+
let E;
|
|
4990
|
+
e[33] !== p ? (E = p && p.totalRecords > p.recordsPerPage && /* @__PURE__ */ o.jsxs(rr, { gap: "xs", mt: "sm", children: [
|
|
4981
4991
|
/* @__PURE__ */ o.jsx(Me, { justify: "center", children: /* @__PURE__ */ o.jsx(gs, { total: Math.ceil(p.totalRecords / p.recordsPerPage), value: p.page, onChange: p.onPageChange, size: "sm" }) }),
|
|
4982
4992
|
p.recordsPerPageOptions && p.onRecordsPerPageChange && /* @__PURE__ */ o.jsxs(Me, { justify: "center", gap: "xs", children: [
|
|
4983
4993
|
/* @__PURE__ */ o.jsx(rt, { fz: "xs", c: "dimmed", children: "Einträge pro Seite:" }),
|
|
4984
|
-
/* @__PURE__ */ o.jsx(Dn, { data: p.recordsPerPageOptions.map(
|
|
4994
|
+
/* @__PURE__ */ o.jsx(Dn, { data: p.recordsPerPageOptions.map(Ll), value: String(p.recordsPerPage), onChange: (R) => R && p.onRecordsPerPageChange(Number(R)), allowDeselect: !1, size: "xs", w: 70 })
|
|
4985
4995
|
] })
|
|
4986
|
-
] }), e[33] = p, e[34] =
|
|
4996
|
+
] }), e[33] = p, e[34] = E) : E = e[34];
|
|
4987
4997
|
let I;
|
|
4988
|
-
return e[35] !== A || e[36] !==
|
|
4998
|
+
return e[35] !== A || e[36] !== E || e[37] !== N || e[38] !== M || e[39] !== O || e[40] !== _ ? (I = /* @__PURE__ */ o.jsxs(A, { gap: N, my: M, children: [
|
|
4989
4999
|
O,
|
|
4990
5000
|
_,
|
|
4991
|
-
|
|
4992
|
-
] }), e[35] = A, e[36] =
|
|
5001
|
+
E
|
|
5002
|
+
] }), e[35] = A, e[36] = E, e[37] = N, e[38] = M, e[39] = O, e[40] = _, e[41] = I) : I = e[41], I;
|
|
4993
5003
|
}
|
|
4994
|
-
function
|
|
5004
|
+
function Ll(t) {
|
|
4995
5005
|
return {
|
|
4996
5006
|
value: String(t),
|
|
4997
5007
|
label: String(t)
|
|
4998
5008
|
};
|
|
4999
5009
|
}
|
|
5000
|
-
function
|
|
5010
|
+
function Nl(t) {
|
|
5001
5011
|
return t.stopPropagation();
|
|
5002
5012
|
}
|
|
5003
|
-
function
|
|
5013
|
+
function Al(t) {
|
|
5004
5014
|
return t.stopPropagation();
|
|
5005
5015
|
}
|
|
5006
|
-
function
|
|
5016
|
+
function $l(t, e) {
|
|
5007
5017
|
const r = e.column.accessor ?? e.id;
|
|
5008
5018
|
return t.some((n) => n.value === r) || t.push({
|
|
5009
5019
|
value: r,
|
|
5010
5020
|
label: e.column.title ?? e.id
|
|
5011
5021
|
}), t;
|
|
5012
5022
|
}
|
|
5013
|
-
function
|
|
5023
|
+
function Yl(t) {
|
|
5014
5024
|
return t.column.sortable !== !1;
|
|
5015
5025
|
}
|
|
5016
|
-
function
|
|
5026
|
+
function Il(t) {
|
|
5017
5027
|
return t.list && t.column;
|
|
5018
5028
|
}
|
|
5019
5029
|
const Kr = [10, 15, 50, 100, 500];
|
|
5020
|
-
function
|
|
5030
|
+
function Fl(t) {
|
|
5021
5031
|
const e = Ye.c(133), {
|
|
5022
5032
|
title: r,
|
|
5023
5033
|
queryKey: n,
|
|
@@ -5033,10 +5043,10 @@ function Yl(t) {
|
|
|
5033
5043
|
steps: m,
|
|
5034
5044
|
defaultSort: b,
|
|
5035
5045
|
onSortChange: D,
|
|
5036
|
-
createButtonText:
|
|
5046
|
+
createButtonText: T,
|
|
5037
5047
|
queryParams: $,
|
|
5038
5048
|
tabs: Y,
|
|
5039
|
-
defaultTab:
|
|
5049
|
+
defaultTab: W,
|
|
5040
5050
|
activeTab: L,
|
|
5041
5051
|
onActiveTabChange: A,
|
|
5042
5052
|
canUpdate: N,
|
|
@@ -5044,19 +5054,19 @@ function Yl(t) {
|
|
|
5044
5054
|
showRefresh: O,
|
|
5045
5055
|
rowExpansion: _,
|
|
5046
5056
|
onRowClick: k,
|
|
5047
|
-
mobileCards:
|
|
5048
|
-
} = t, I = O === void 0 ? !0 : O, R =
|
|
5057
|
+
mobileCards: E
|
|
5058
|
+
} = t, I = O === void 0 ? !0 : O, R = E === void 0 ? !1 : E, [S, g] = se(W || (Y && Y.length > 0 ? Y[0].value : null)), y = L !== void 0 ? L : S;
|
|
5049
5059
|
let j;
|
|
5050
5060
|
e[0] !== L || e[1] !== A ? (j = (Z) => {
|
|
5051
5061
|
L === void 0 && g(Z), A && A(Z);
|
|
5052
5062
|
}, e[0] = L, e[1] = A, e[2] = j) : j = e[2];
|
|
5053
|
-
const
|
|
5054
|
-
let
|
|
5055
|
-
e[3] !== y || e[4] !== Y ? (
|
|
5056
|
-
const P =
|
|
5063
|
+
const x = j;
|
|
5064
|
+
let v;
|
|
5065
|
+
e[3] !== y || e[4] !== Y ? (v = Y?.find((Z) => Z.value === y), e[3] = y, e[4] = Y, e[5] = v) : v = e[5];
|
|
5066
|
+
const P = v, u = P?.queryParams || {}, w = P?.apiPath ?? l, C = P?.mutationApiPath ?? i ?? w, F = {
|
|
5057
5067
|
...$,
|
|
5058
5068
|
...u
|
|
5059
|
-
}, V =
|
|
5069
|
+
}, V = F ? "?" + Object.entries(F).filter(Xl).map(Zl).join("&") : "";
|
|
5060
5070
|
let q;
|
|
5061
5071
|
e[6] !== y || e[7] !== n ? (q = y ? [...n, y] : n, e[6] = y, e[7] = n, e[8] = q) : q = e[8];
|
|
5062
5072
|
const B = q, {
|
|
@@ -5065,7 +5075,7 @@ function Yl(t) {
|
|
|
5065
5075
|
isError: H,
|
|
5066
5076
|
isRefetching: X,
|
|
5067
5077
|
refetch: J
|
|
5068
|
-
} = ya(
|
|
5078
|
+
} = ya(w + V, B), {
|
|
5069
5079
|
queryClient: ee
|
|
5070
5080
|
} = Ht();
|
|
5071
5081
|
let ae, de;
|
|
@@ -5117,17 +5127,17 @@ function Yl(t) {
|
|
|
5117
5127
|
return Z[Ze] === re.value;
|
|
5118
5128
|
return !0;
|
|
5119
5129
|
})), je = b?.field ?? c[0].id, pe = b?.direction ?? "desc";
|
|
5120
|
-
let
|
|
5121
|
-
e[14] !== je || e[15] !== pe ? (
|
|
5130
|
+
let Te;
|
|
5131
|
+
e[14] !== je || e[15] !== pe ? (Te = {
|
|
5122
5132
|
columnAccessor: je,
|
|
5123
5133
|
direction: pe
|
|
5124
|
-
}, e[14] = je, e[15] = pe, e[16] =
|
|
5125
|
-
const [Oe, lt] = se(
|
|
5134
|
+
}, e[14] = je, e[15] = pe, e[16] = Te) : Te = e[16];
|
|
5135
|
+
const [Oe, lt] = se(Te);
|
|
5126
5136
|
let Ie;
|
|
5127
5137
|
e[17] !== D ? (Ie = (Z) => {
|
|
5128
5138
|
lt(Z), D && D(String(Z.columnAccessor), Z.direction);
|
|
5129
5139
|
}, e[17] = D, e[18] = Ie) : Ie = e[18];
|
|
5130
|
-
const nt = Ie, Fe =
|
|
5140
|
+
const nt = Ie, Fe = Ml(te, Oe.columnAccessor, Oe.direction), [We, st] = kl(Kr[1], "mantine-table-page-size"), [G, ge] = se(1), fe = h ? Fe.slice((G - 1) * We, G * We) : Fe;
|
|
5131
5141
|
let ct;
|
|
5132
5142
|
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ct = [], e[19] = ct) : ct = e[19];
|
|
5133
5143
|
const [oe, Le] = se(ct);
|
|
@@ -5139,14 +5149,14 @@ function Yl(t) {
|
|
|
5139
5149
|
e[21] !== y ? (gt = [y], e[21] = y, e[22] = gt) : gt = e[22], be(pt, gt);
|
|
5140
5150
|
const [Ge, ze] = se(!1), [jt, Ce] = se(!1), [ut, Ne] = se(!1);
|
|
5141
5151
|
let dt;
|
|
5142
|
-
e[23] !== c ? (dt = c.some(
|
|
5152
|
+
e[23] !== c ? (dt = c.some(Jl), e[23] = c, e[24] = dt) : dt = e[24];
|
|
5143
5153
|
const Pt = dt;
|
|
5144
5154
|
let we;
|
|
5145
|
-
e[25] !== c ? (we = c.some(
|
|
5155
|
+
e[25] !== c ? (we = c.some(Kl), e[25] = c, e[26] = we) : we = e[26];
|
|
5146
5156
|
const Mt = we;
|
|
5147
|
-
let
|
|
5157
|
+
let Ee;
|
|
5148
5158
|
if (e[27] !== f || e[28] !== Mt || e[29] !== Pt) {
|
|
5149
|
-
if (
|
|
5159
|
+
if (Ee = [], Pt) {
|
|
5150
5160
|
let Z;
|
|
5151
5161
|
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ o.jsx(Pn, { size: 14 }), e[31] = Z) : Z = e[31];
|
|
5152
5162
|
let re;
|
|
@@ -5156,9 +5166,9 @@ function Yl(t) {
|
|
|
5156
5166
|
onClick: (Ze) => {
|
|
5157
5167
|
Le(Ze), Ce(!0);
|
|
5158
5168
|
}
|
|
5159
|
-
}, e[32] = re) : re = e[32],
|
|
5169
|
+
}, e[32] = re) : re = e[32], Ee.push(re);
|
|
5160
5170
|
}
|
|
5161
|
-
if (f &&
|
|
5171
|
+
if (f && Ee.push(...f), Mt) {
|
|
5162
5172
|
let Z;
|
|
5163
5173
|
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ o.jsx(Mn, { size: 14 }), e[33] = Z) : Z = e[33];
|
|
5164
5174
|
let re;
|
|
@@ -5168,11 +5178,11 @@ function Yl(t) {
|
|
|
5168
5178
|
onClick: (Ze) => {
|
|
5169
5179
|
Le(Ze), Ne(!0);
|
|
5170
5180
|
}
|
|
5171
|
-
}, e[34] = re) : re = e[34],
|
|
5181
|
+
}, e[34] = re) : re = e[34], Ee.push(re);
|
|
5172
5182
|
}
|
|
5173
|
-
e[27] = f, e[28] = Mt, e[29] = Pt, e[30] =
|
|
5183
|
+
e[27] = f, e[28] = Mt, e[29] = Pt, e[30] = Ee;
|
|
5174
5184
|
} else
|
|
5175
|
-
|
|
5185
|
+
Ee = e[30];
|
|
5176
5186
|
const ht = r ? "space-between" : "end";
|
|
5177
5187
|
let Ve;
|
|
5178
5188
|
e[35] !== r ? (Ve = r && (typeof r == "string" ? /* @__PURE__ */ o.jsx(go, { order: 4, children: r }) : r), e[35] = r, e[36] = Ve) : Ve = e[36];
|
|
@@ -5183,8 +5193,8 @@ function Yl(t) {
|
|
|
5183
5193
|
let Be;
|
|
5184
5194
|
e[38] !== J || e[39] !== I ? (Be = I && /* @__PURE__ */ o.jsx(zt, { variant: "subtle", onClick: () => J(), "aria-label": "Neuladen", children: /* @__PURE__ */ o.jsx(ko, {}) }), e[38] = J, e[39] = I, e[40] = Be) : Be = e[40];
|
|
5185
5195
|
let Ke;
|
|
5186
|
-
e[41] !== f || e[42] !== M || e[43] !== N || e[44] !== c || e[45] !== R || e[46] !== oe || e[47] !== d ? (Ke = (c.some(
|
|
5187
|
-
const Z = c.find(
|
|
5196
|
+
e[41] !== f || e[42] !== M || e[43] !== N || e[44] !== c || e[45] !== R || e[46] !== oe || e[47] !== d ? (Ke = (c.some(Gl) || d) && (() => {
|
|
5197
|
+
const Z = c.find(Ql) && (!N || oe.length > 0 && N(oe[0])), re = c.find(ql) && (!M || oe.length > 0 && M(oe[0])), Ze = (f ?? []).length > 0, De = Z || re || Ze;
|
|
5188
5198
|
return /* @__PURE__ */ o.jsx(ue, { ...R ? {
|
|
5189
5199
|
visibleFrom: "sm"
|
|
5190
5200
|
} : {}, children: /* @__PURE__ */ o.jsxs(tt, { shadow: "md", children: [
|
|
@@ -5199,7 +5209,7 @@ function Yl(t) {
|
|
|
5199
5209
|
] }) });
|
|
5200
5210
|
})(), e[41] = f, e[42] = M, e[43] = N, e[44] = c, e[45] = R, e[46] = oe, e[47] = d, e[48] = Ke) : Ke = e[48];
|
|
5201
5211
|
let at;
|
|
5202
|
-
e[49] !==
|
|
5212
|
+
e[49] !== T || e[50] !== c || e[51] !== Q ? (at = c.find(Ul) && /* @__PURE__ */ o.jsx(mt, { onClick: () => ze(!0), disabled: Q, children: T ?? "Erstellen" }), e[49] = T, e[50] = c, e[51] = Q, e[52] = at) : at = e[52];
|
|
5203
5213
|
let K;
|
|
5204
5214
|
e[53] !== a || e[54] !== Be || e[55] !== Ke || e[56] !== at ? (K = /* @__PURE__ */ o.jsxs(Me, { align: "center", gap: "xs", wrap: "wrap", justify: "end", style: ot, children: [
|
|
5205
5215
|
Be,
|
|
@@ -5213,19 +5223,19 @@ function Yl(t) {
|
|
|
5213
5223
|
K
|
|
5214
5224
|
] }), e[58] = ht, e[59] = Ve, e[60] = K, e[61] = le) : le = e[61];
|
|
5215
5225
|
let Ae;
|
|
5216
|
-
e[62] !== y || e[63] !==
|
|
5226
|
+
e[62] !== y || e[63] !== x || e[64] !== Y ? (Ae = Y && Y.length > 0 && /* @__PURE__ */ o.jsx(Jr, { value: y, onChange: x, mt: "md", children: /* @__PURE__ */ o.jsx(Jr.List, { children: Y.map(Hl) }) }), e[62] = y, e[63] = x, e[64] = Y, e[65] = Ae) : Ae = e[65];
|
|
5217
5227
|
let Je;
|
|
5218
5228
|
e[66] !== H ? (Je = H && /* @__PURE__ */ o.jsx(Cr, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ o.jsx(jo, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), e[66] = H, e[67] = Je) : Je = e[67];
|
|
5219
5229
|
let bt;
|
|
5220
5230
|
e[68] !== Q || e[69] !== X ? (bt = (Q || X) && /* @__PURE__ */ o.jsxs(rr, { my: "md", children: [
|
|
5221
5231
|
/* @__PURE__ */ o.jsx(Ft, { height: 40 }),
|
|
5222
|
-
Array(5).fill(0).map(
|
|
5232
|
+
Array(5).fill(0).map(Bl)
|
|
5223
5233
|
] }), e[68] = Q, e[69] = X, e[70] = bt) : bt = e[70];
|
|
5224
5234
|
let yt;
|
|
5225
|
-
e[71] !== M || e[72] !== N || e[73] !== c || e[74] !== nt || e[75] !== H || e[76] !== Q || e[77] !== X || e[78] !==
|
|
5235
|
+
e[71] !== M || e[72] !== N || e[73] !== c || e[74] !== nt || e[75] !== H || e[76] !== Q || e[77] !== X || e[78] !== Ee || e[79] !== R || e[80] !== k || e[81] !== G || e[82] !== We || e[83] !== h || e[84] !== fe || e[85] !== _ || e[86] !== oe || e[87] !== d || e[88] !== ge || e[89] !== st || e[90] !== Oe || e[91] !== Fe ? (yt = !Q && !X && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
5226
5236
|
/* @__PURE__ */ o.jsx(ue, { ...R ? {
|
|
5227
5237
|
visibleFrom: "sm"
|
|
5228
|
-
} : {}, children: /* @__PURE__ */ o.jsx(
|
|
5238
|
+
} : {}, children: /* @__PURE__ */ o.jsx(gl, { my: "md", striped: !0, highlightOnHover: !0, minHeight: 150, fetching: H, records: fe, sortStatus: Oe, onSortStatusChange: nt, ...d && {
|
|
5229
5239
|
selectedRecords: oe,
|
|
5230
5240
|
onSelectedRecordsChange: Le
|
|
5231
5241
|
}, ...h && fe.length && {
|
|
@@ -5249,12 +5259,12 @@ function Yl(t) {
|
|
|
5249
5259
|
expanded: _.expanded
|
|
5250
5260
|
}
|
|
5251
5261
|
}
|
|
5252
|
-
}, columns: c.map(
|
|
5262
|
+
}, columns: c.map(Vl), noRecordsText: "Keine Einträge gefunden", onRowClick: k, ...k && {
|
|
5253
5263
|
style: {
|
|
5254
5264
|
cursor: "pointer"
|
|
5255
5265
|
}
|
|
5256
5266
|
} }) }),
|
|
5257
|
-
R && /* @__PURE__ */ o.jsx(ue, { hiddenFrom: "sm", children: /* @__PURE__ */ o.jsx(
|
|
5267
|
+
R && /* @__PURE__ */ o.jsx(ue, { hiddenFrom: "sm", children: /* @__PURE__ */ o.jsx(Tl, { records: fe, fields: c, selection: d, selectedRecords: oe, onSelectedRecordsChange: Le, onRowClick: k, sort: {
|
|
5258
5268
|
field: String(Oe.columnAccessor),
|
|
5259
5269
|
direction: Oe.direction,
|
|
5260
5270
|
onSortChange: (Z, re) => {
|
|
@@ -5278,29 +5288,29 @@ function Yl(t) {
|
|
|
5278
5288
|
rowExpansion: {
|
|
5279
5289
|
content: _.content
|
|
5280
5290
|
}
|
|
5281
|
-
}, ...
|
|
5282
|
-
actions:
|
|
5291
|
+
}, ...Ee.length > 0 && {
|
|
5292
|
+
actions: Ee,
|
|
5283
5293
|
canUpdate: N,
|
|
5284
5294
|
canDelete: M
|
|
5285
5295
|
} }) })
|
|
5286
|
-
] }), e[71] = M, e[72] = N, e[73] = c, e[74] = nt, e[75] = H, e[76] = Q, e[77] = X, e[78] =
|
|
5296
|
+
] }), e[71] = M, e[72] = N, e[73] = c, e[74] = nt, e[75] = H, e[76] = Q, e[77] = X, e[78] = Ee, e[79] = R, e[80] = k, e[81] = G, e[82] = We, e[83] = h, e[84] = fe, e[85] = _, e[86] = oe, e[87] = d, e[88] = ge, e[89] = st, e[90] = Oe, e[91] = Fe, e[92] = yt) : yt = e[92];
|
|
5287
5297
|
let Nt;
|
|
5288
5298
|
e[93] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Nt = () => {
|
|
5289
5299
|
Ce(!1), Le([]);
|
|
5290
5300
|
}, e[93] = Nt) : Nt = e[93];
|
|
5291
5301
|
const ft = r ?? "Bearbeiten";
|
|
5292
5302
|
let vt;
|
|
5293
|
-
e[94] !==
|
|
5303
|
+
e[94] !== C || e[95] !== c || e[96] !== n || e[97] !== oe[0] || e[98] !== oe.length || e[99] !== m ? (vt = oe.length > 0 && /* @__PURE__ */ o.jsx(bl, { fields: c.filter(zl), queryKey: n, apiPath: C, id: oe[0].id, onClose: () => {
|
|
5294
5304
|
Ce(!1), Le([]);
|
|
5295
|
-
}, steps: m }), e[94] =
|
|
5305
|
+
}, steps: m }), e[94] = C, e[95] = c, e[96] = n, e[97] = oe[0], e[98] = oe.length, e[99] = m, e[100] = vt) : vt = e[100];
|
|
5296
5306
|
let He;
|
|
5297
5307
|
e[101] !== ft || e[102] !== vt || e[103] !== jt ? (He = /* @__PURE__ */ o.jsx(Br, { opened: jt, onClose: Nt, title: ft, children: vt }), e[101] = ft, e[102] = vt, e[103] = jt, e[104] = He) : He = e[104];
|
|
5298
5308
|
let xt;
|
|
5299
|
-
e[105] !== ut || e[106] !==
|
|
5309
|
+
e[105] !== ut || e[106] !== C || e[107] !== n || e[108] !== oe || e[109] !== r ? (xt = oe.length > 0 && /* @__PURE__ */ o.jsx(Br, { opened: ut, onClose: () => {
|
|
5300
5310
|
Ne(!1), Le([]);
|
|
5301
|
-
}, title: r ?? "Löschen", children: /* @__PURE__ */ o.jsx(
|
|
5311
|
+
}, title: r ?? "Löschen", children: /* @__PURE__ */ o.jsx(_l, { onClose: () => {
|
|
5302
5312
|
Ne(!1), Le([]);
|
|
5303
|
-
}, queryKey: n, apiPath:
|
|
5313
|
+
}, queryKey: n, apiPath: C, selectedRecords: oe }) }), e[105] = ut, e[106] = C, e[107] = n, e[108] = oe, e[109] = r, e[110] = xt) : xt = e[110];
|
|
5304
5314
|
let Ct;
|
|
5305
5315
|
e[111] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ct = () => {
|
|
5306
5316
|
ze(!1);
|
|
@@ -5311,9 +5321,9 @@ function Yl(t) {
|
|
|
5311
5321
|
ze(!1);
|
|
5312
5322
|
}, e[112] = Se) : Se = e[112];
|
|
5313
5323
|
let Ue;
|
|
5314
|
-
e[113] !== c ? (Ue = c.filter(
|
|
5324
|
+
e[113] !== c ? (Ue = c.filter(Wl), e[113] = c, e[114] = Ue) : Ue = e[114];
|
|
5315
5325
|
let it;
|
|
5316
|
-
e[115] !==
|
|
5326
|
+
e[115] !== C || e[116] !== n || e[117] !== m || e[118] !== Ue ? (it = /* @__PURE__ */ o.jsx(yi, { queryKey: n, apiPath: C, onClose: Se, fields: Ue, steps: m }), e[115] = C, e[116] = n, e[117] = m, e[118] = Ue, e[119] = it) : it = e[119];
|
|
5317
5327
|
let ye;
|
|
5318
5328
|
e[120] !== Ge || e[121] !== Rt || e[122] !== it ? (ye = /* @__PURE__ */ o.jsx(Br, { opened: Ge, onClose: Ct, title: Rt, children: it }), e[120] = Ge, e[121] = Rt, e[122] = it, e[123] = ye) : ye = e[123];
|
|
5319
5329
|
let At;
|
|
@@ -5328,73 +5338,73 @@ function Yl(t) {
|
|
|
5328
5338
|
ye
|
|
5329
5339
|
] }), e[124] = le, e[125] = Ae, e[126] = Je, e[127] = bt, e[128] = yt, e[129] = He, e[130] = xt, e[131] = ye, e[132] = At) : At = e[132], At;
|
|
5330
5340
|
}
|
|
5331
|
-
function
|
|
5341
|
+
function Wl(t) {
|
|
5332
5342
|
return t.create;
|
|
5333
5343
|
}
|
|
5334
|
-
function
|
|
5344
|
+
function zl(t) {
|
|
5335
5345
|
return t.update;
|
|
5336
5346
|
}
|
|
5337
|
-
function
|
|
5347
|
+
function Vl(t) {
|
|
5338
5348
|
return t.column;
|
|
5339
5349
|
}
|
|
5340
|
-
function
|
|
5350
|
+
function Bl(t, e) {
|
|
5341
5351
|
return /* @__PURE__ */ o.jsx(Ft, { height: 35 }, `skeleton-${e}`);
|
|
5342
5352
|
}
|
|
5343
|
-
function
|
|
5353
|
+
function Hl(t) {
|
|
5344
5354
|
return /* @__PURE__ */ o.jsx(Jr.Tab, { value: t.value, leftSection: t.icon, children: t.label }, t.value);
|
|
5345
5355
|
}
|
|
5346
|
-
function
|
|
5356
|
+
function Ul(t) {
|
|
5347
5357
|
return t.create;
|
|
5348
5358
|
}
|
|
5349
|
-
function
|
|
5359
|
+
function ql(t) {
|
|
5350
5360
|
return t.delete;
|
|
5351
5361
|
}
|
|
5352
|
-
function
|
|
5362
|
+
function Ql(t) {
|
|
5353
5363
|
return t.update;
|
|
5354
5364
|
}
|
|
5355
|
-
function
|
|
5365
|
+
function Gl(t) {
|
|
5356
5366
|
return t.update;
|
|
5357
5367
|
}
|
|
5358
|
-
function
|
|
5368
|
+
function Kl(t) {
|
|
5359
5369
|
return t.delete;
|
|
5360
5370
|
}
|
|
5361
|
-
function
|
|
5371
|
+
function Jl(t) {
|
|
5362
5372
|
return t.update;
|
|
5363
5373
|
}
|
|
5364
|
-
function
|
|
5374
|
+
function Zl(t) {
|
|
5365
5375
|
const [e, r] = t;
|
|
5366
5376
|
return `${e}=${encodeURIComponent(r ?? "")}`;
|
|
5367
5377
|
}
|
|
5368
|
-
function
|
|
5378
|
+
function Xl(t) {
|
|
5369
5379
|
const [, e] = t;
|
|
5370
5380
|
return e != null;
|
|
5371
5381
|
}
|
|
5372
|
-
function
|
|
5382
|
+
function lc(t) {
|
|
5373
5383
|
const e = Ye.c(2);
|
|
5374
5384
|
let r;
|
|
5375
|
-
return e[0] !== t ? (r = /* @__PURE__ */ o.jsx(
|
|
5385
|
+
return e[0] !== t ? (r = /* @__PURE__ */ o.jsx(Fl, { ...t }), e[0] = t, e[1] = r) : r = e[1], r;
|
|
5376
5386
|
}
|
|
5377
5387
|
export {
|
|
5378
5388
|
yi as CreateModal,
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5389
|
+
lc as DataTable,
|
|
5390
|
+
oc as DataTableProvider,
|
|
5391
|
+
_l as DeleteModal,
|
|
5392
|
+
Tl as MobileCardList,
|
|
5393
|
+
bl as UpdateModal,
|
|
5394
|
+
ic as api,
|
|
5385
5395
|
ma as createOne,
|
|
5386
5396
|
fa as deleteOne,
|
|
5387
5397
|
da as getAll,
|
|
5388
5398
|
ha as getOne,
|
|
5389
|
-
|
|
5390
|
-
|
|
5399
|
+
ac as parseApiError,
|
|
5400
|
+
Ml as sortData,
|
|
5391
5401
|
pa as updateOne,
|
|
5392
5402
|
xa as useAddOne,
|
|
5393
5403
|
Ht as useDataTable,
|
|
5394
5404
|
_a as useDeleteOne,
|
|
5395
5405
|
ya as useGetAll,
|
|
5396
5406
|
ga as useGetOne,
|
|
5397
|
-
|
|
5407
|
+
kl as usePersistentState,
|
|
5398
5408
|
ks as useUpdateOne
|
|
5399
5409
|
};
|
|
5400
5410
|
//# sourceMappingURL=index.es.js.map
|