componentes-exagono 0.2.60 → 0.2.62
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/componentes-exagono.css +1 -1
- package/dist/index.es.js +443 -443
- package/dist/index.umd.js +12 -12
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -103,14 +103,14 @@ function Zm() {
|
|
|
103
103
|
// with.
|
|
104
104
|
E.$$typeof === T || E.getModuleId !== void 0));
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function U(E, ne, ge) {
|
|
107
107
|
var Ie = E.displayName;
|
|
108
108
|
if (Ie)
|
|
109
109
|
return Ie;
|
|
110
110
|
var Ge = ne.displayName || ne.name || "";
|
|
111
111
|
return Ge !== "" ? ge + "(" + Ge + ")" : ge;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function H(E) {
|
|
114
114
|
return E.displayName || "Context";
|
|
115
115
|
}
|
|
116
116
|
function W(E) {
|
|
@@ -138,12 +138,12 @@ function Zm() {
|
|
|
138
138
|
switch (E.$$typeof) {
|
|
139
139
|
case i:
|
|
140
140
|
var ne = E;
|
|
141
|
-
return
|
|
141
|
+
return H(ne) + ".Consumer";
|
|
142
142
|
case s:
|
|
143
143
|
var ge = E;
|
|
144
|
-
return
|
|
144
|
+
return H(ge._context) + ".Provider";
|
|
145
145
|
case c:
|
|
146
|
-
return
|
|
146
|
+
return U(E, E.render, "ForwardRef");
|
|
147
147
|
case f:
|
|
148
148
|
var Ie = E.displayName || null;
|
|
149
149
|
return Ie !== null ? Ie : W(E.type) || "Memo";
|
|
@@ -159,9 +159,9 @@ function Zm() {
|
|
|
159
159
|
return null;
|
|
160
160
|
}
|
|
161
161
|
var Z = Object.assign, ie = 0, Y, z, ce, fe, N, Q, De;
|
|
162
|
-
function
|
|
162
|
+
function we() {
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
we.__reactDisabledLog = !0;
|
|
165
165
|
function Ee() {
|
|
166
166
|
{
|
|
167
167
|
if (ie === 0) {
|
|
@@ -169,7 +169,7 @@ function Zm() {
|
|
|
169
169
|
var E = {
|
|
170
170
|
configurable: !0,
|
|
171
171
|
enumerable: !0,
|
|
172
|
-
value:
|
|
172
|
+
value: we,
|
|
173
173
|
writable: !0
|
|
174
174
|
};
|
|
175
175
|
Object.defineProperties(console, {
|
|
@@ -847,7 +847,7 @@ function cg() {
|
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
|
-
var y = c, F = d, S = i, D = s, T = r, k = u,
|
|
850
|
+
var y = c, F = d, S = i, D = s, T = r, k = u, U = n, H = g, W = m, Z = t, ie = a, Y = o, z = f, ce = !1;
|
|
851
851
|
function fe(O) {
|
|
852
852
|
return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), N(O) || _(O) === c;
|
|
853
853
|
}
|
|
@@ -860,7 +860,7 @@ function cg() {
|
|
|
860
860
|
function De(O) {
|
|
861
861
|
return _(O) === s;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function we(O) {
|
|
864
864
|
return typeof O == "object" && O !== null && O.$$typeof === r;
|
|
865
865
|
}
|
|
866
866
|
function Ee(O) {
|
|
@@ -887,7 +887,7 @@ function cg() {
|
|
|
887
887
|
function je(O) {
|
|
888
888
|
return _(O) === f;
|
|
889
889
|
}
|
|
890
|
-
tt.AsyncMode = y, tt.ConcurrentMode = F, tt.ContextConsumer = S, tt.ContextProvider = D, tt.Element = T, tt.ForwardRef = k, tt.Fragment =
|
|
890
|
+
tt.AsyncMode = y, tt.ConcurrentMode = F, tt.ContextConsumer = S, tt.ContextProvider = D, tt.Element = T, tt.ForwardRef = k, tt.Fragment = U, tt.Lazy = H, tt.Memo = W, tt.Portal = Z, tt.Profiler = ie, tt.StrictMode = Y, tt.Suspense = z, tt.isAsyncMode = fe, tt.isConcurrentMode = N, tt.isContextConsumer = Q, tt.isContextProvider = De, tt.isElement = we, tt.isForwardRef = Ee, tt.isFragment = ae, tt.isLazy = le, tt.isMemo = X, tt.isPortal = ye, tt.isProfiler = Ae, tt.isStrictMode = ue, tt.isSuspense = je, tt.isValidElementType = w, tt.typeOf = _;
|
|
891
891
|
})()), tt;
|
|
892
892
|
}
|
|
893
893
|
var hu;
|
|
@@ -1047,7 +1047,7 @@ function dg() {
|
|
|
1047
1047
|
objectOf: D,
|
|
1048
1048
|
oneOf: S,
|
|
1049
1049
|
oneOfType: T,
|
|
1050
|
-
shape:
|
|
1050
|
+
shape: H,
|
|
1051
1051
|
exact: W
|
|
1052
1052
|
};
|
|
1053
1053
|
function g(N, Q) {
|
|
@@ -1060,7 +1060,7 @@ function dg() {
|
|
|
1060
1060
|
function v(N) {
|
|
1061
1061
|
if (process.env.NODE_ENV !== "production")
|
|
1062
1062
|
var Q = {}, De = 0;
|
|
1063
|
-
function
|
|
1063
|
+
function we(ae, le, X, ye, Ae, ue, je) {
|
|
1064
1064
|
if (ye = ye || h, ue = ue || X, je !== t) {
|
|
1065
1065
|
if (c) {
|
|
1066
1066
|
var O = new Error(
|
|
@@ -1077,12 +1077,12 @@ function dg() {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
return le[X] == null ? ae ? le[X] === null ? new p("The " + Ae + " `" + ue + "` is marked as required " + ("in `" + ye + "`, but its value is `null`.")) : new p("The " + Ae + " `" + ue + "` is marked as required in " + ("`" + ye + "`, but its value is `undefined`.")) : null : N(le, X, ye, Ae, ue);
|
|
1079
1079
|
}
|
|
1080
|
-
var Ee =
|
|
1081
|
-
return Ee.isRequired =
|
|
1080
|
+
var Ee = we.bind(null, !1);
|
|
1081
|
+
return Ee.isRequired = we.bind(null, !0), Ee;
|
|
1082
1082
|
}
|
|
1083
1083
|
function b(N) {
|
|
1084
|
-
function Q(De,
|
|
1085
|
-
var ye = De[
|
|
1084
|
+
function Q(De, we, Ee, ae, le, X) {
|
|
1085
|
+
var ye = De[we], Ae = Y(ye);
|
|
1086
1086
|
if (Ae !== N) {
|
|
1087
1087
|
var ue = z(ye);
|
|
1088
1088
|
return new p(
|
|
@@ -1098,10 +1098,10 @@ function dg() {
|
|
|
1098
1098
|
return v(s);
|
|
1099
1099
|
}
|
|
1100
1100
|
function w(N) {
|
|
1101
|
-
function Q(De,
|
|
1101
|
+
function Q(De, we, Ee, ae, le) {
|
|
1102
1102
|
if (typeof N != "function")
|
|
1103
1103
|
return new p("Property `" + le + "` of component `" + Ee + "` has invalid PropType notation inside arrayOf.");
|
|
1104
|
-
var X = De[
|
|
1104
|
+
var X = De[we];
|
|
1105
1105
|
if (!Array.isArray(X)) {
|
|
1106
1106
|
var ye = Y(X);
|
|
1107
1107
|
return new p("Invalid " + ae + " `" + le + "` of type " + ("`" + ye + "` supplied to `" + Ee + "`, expected an array."));
|
|
@@ -1116,31 +1116,31 @@ function dg() {
|
|
|
1116
1116
|
return v(Q);
|
|
1117
1117
|
}
|
|
1118
1118
|
function _() {
|
|
1119
|
-
function N(Q, De,
|
|
1119
|
+
function N(Q, De, we, Ee, ae) {
|
|
1120
1120
|
var le = Q[De];
|
|
1121
1121
|
if (!i(le)) {
|
|
1122
1122
|
var X = Y(le);
|
|
1123
|
-
return new p("Invalid " + Ee + " `" + ae + "` of type " + ("`" + X + "` supplied to `" +
|
|
1123
|
+
return new p("Invalid " + Ee + " `" + ae + "` of type " + ("`" + X + "` supplied to `" + we + "`, expected a single ReactElement."));
|
|
1124
1124
|
}
|
|
1125
1125
|
return null;
|
|
1126
1126
|
}
|
|
1127
1127
|
return v(N);
|
|
1128
1128
|
}
|
|
1129
1129
|
function y() {
|
|
1130
|
-
function N(Q, De,
|
|
1130
|
+
function N(Q, De, we, Ee, ae) {
|
|
1131
1131
|
var le = Q[De];
|
|
1132
1132
|
if (!e.isValidElementType(le)) {
|
|
1133
1133
|
var X = Y(le);
|
|
1134
|
-
return new p("Invalid " + Ee + " `" + ae + "` of type " + ("`" + X + "` supplied to `" +
|
|
1134
|
+
return new p("Invalid " + Ee + " `" + ae + "` of type " + ("`" + X + "` supplied to `" + we + "`, expected a single ReactElement type."));
|
|
1135
1135
|
}
|
|
1136
1136
|
return null;
|
|
1137
1137
|
}
|
|
1138
1138
|
return v(N);
|
|
1139
1139
|
}
|
|
1140
1140
|
function F(N) {
|
|
1141
|
-
function Q(De,
|
|
1142
|
-
if (!(De[
|
|
1143
|
-
var X = N.name || h, ye = fe(De[
|
|
1141
|
+
function Q(De, we, Ee, ae, le) {
|
|
1142
|
+
if (!(De[we] instanceof N)) {
|
|
1143
|
+
var X = N.name || h, ye = fe(De[we]);
|
|
1144
1144
|
return new p("Invalid " + ae + " `" + le + "` of type " + ("`" + ye + "` supplied to `" + Ee + "`, expected ") + ("instance of `" + X + "`."));
|
|
1145
1145
|
}
|
|
1146
1146
|
return null;
|
|
@@ -1152,8 +1152,8 @@ function dg() {
|
|
|
1152
1152
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1153
1153
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1154
1154
|
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
1155
|
-
function Q(De,
|
|
1156
|
-
for (var X = De[
|
|
1155
|
+
function Q(De, we, Ee, ae, le) {
|
|
1156
|
+
for (var X = De[we], ye = 0; ye < N.length; ye++)
|
|
1157
1157
|
if (g(X, N[ye]))
|
|
1158
1158
|
return null;
|
|
1159
1159
|
var Ae = JSON.stringify(N, function(je, O) {
|
|
@@ -1165,10 +1165,10 @@ function dg() {
|
|
|
1165
1165
|
return v(Q);
|
|
1166
1166
|
}
|
|
1167
1167
|
function D(N) {
|
|
1168
|
-
function Q(De,
|
|
1168
|
+
function Q(De, we, Ee, ae, le) {
|
|
1169
1169
|
if (typeof N != "function")
|
|
1170
1170
|
return new p("Property `" + le + "` of component `" + Ee + "` has invalid PropType notation inside objectOf.");
|
|
1171
|
-
var X = De[
|
|
1171
|
+
var X = De[we], ye = Y(X);
|
|
1172
1172
|
if (ye !== "object")
|
|
1173
1173
|
return new p("Invalid " + ae + " `" + le + "` of type " + ("`" + ye + "` supplied to `" + Ee + "`, expected an object."));
|
|
1174
1174
|
for (var Ae in X)
|
|
@@ -1191,7 +1191,7 @@ function dg() {
|
|
|
1191
1191
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce(De) + " at index " + Q + "."
|
|
1192
1192
|
), s;
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function we(Ee, ae, le, X, ye) {
|
|
1195
1195
|
for (var Ae = [], ue = 0; ue < N.length; ue++) {
|
|
1196
1196
|
var je = N[ue], O = je(Ee, ae, le, X, ye, t);
|
|
1197
1197
|
if (O == null)
|
|
@@ -1201,28 +1201,28 @@ function dg() {
|
|
|
1201
1201
|
var be = Ae.length > 0 ? ", expected one of type [" + Ae.join(", ") + "]" : "";
|
|
1202
1202
|
return new p("Invalid " + X + " `" + ye + "` supplied to " + ("`" + le + "`" + be + "."));
|
|
1203
1203
|
}
|
|
1204
|
-
return v(
|
|
1204
|
+
return v(we);
|
|
1205
1205
|
}
|
|
1206
1206
|
function k() {
|
|
1207
|
-
function N(Q, De,
|
|
1208
|
-
return Z(Q[De]) ? null : new p("Invalid " + Ee + " `" + ae + "` supplied to " + ("`" +
|
|
1207
|
+
function N(Q, De, we, Ee, ae) {
|
|
1208
|
+
return Z(Q[De]) ? null : new p("Invalid " + Ee + " `" + ae + "` supplied to " + ("`" + we + "`, expected a ReactNode."));
|
|
1209
1209
|
}
|
|
1210
1210
|
return v(N);
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function U(N, Q, De, we, Ee) {
|
|
1213
1213
|
return new p(
|
|
1214
|
-
(N || "React class") + ": " + Q + " type `" + De + "." +
|
|
1214
|
+
(N || "React class") + ": " + Q + " type `" + De + "." + we + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Ee + "`."
|
|
1215
1215
|
);
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1218
|
-
function Q(De,
|
|
1219
|
-
var X = De[
|
|
1217
|
+
function H(N) {
|
|
1218
|
+
function Q(De, we, Ee, ae, le) {
|
|
1219
|
+
var X = De[we], ye = Y(X);
|
|
1220
1220
|
if (ye !== "object")
|
|
1221
1221
|
return new p("Invalid " + ae + " `" + le + "` of type `" + ye + "` " + ("supplied to `" + Ee + "`, expected `object`."));
|
|
1222
1222
|
for (var Ae in N) {
|
|
1223
1223
|
var ue = N[Ae];
|
|
1224
1224
|
if (typeof ue != "function")
|
|
1225
|
-
return
|
|
1225
|
+
return U(Ee, ae, le, Ae, z(ue));
|
|
1226
1226
|
var je = ue(X, Ae, Ee, ae, le + "." + Ae, t);
|
|
1227
1227
|
if (je)
|
|
1228
1228
|
return je;
|
|
@@ -1232,18 +1232,18 @@ function dg() {
|
|
|
1232
1232
|
return v(Q);
|
|
1233
1233
|
}
|
|
1234
1234
|
function W(N) {
|
|
1235
|
-
function Q(De,
|
|
1236
|
-
var X = De[
|
|
1235
|
+
function Q(De, we, Ee, ae, le) {
|
|
1236
|
+
var X = De[we], ye = Y(X);
|
|
1237
1237
|
if (ye !== "object")
|
|
1238
1238
|
return new p("Invalid " + ae + " `" + le + "` of type `" + ye + "` " + ("supplied to `" + Ee + "`, expected `object`."));
|
|
1239
|
-
var Ae = r({}, De[
|
|
1239
|
+
var Ae = r({}, De[we], N);
|
|
1240
1240
|
for (var ue in Ae) {
|
|
1241
1241
|
var je = N[ue];
|
|
1242
1242
|
if (n(N, ue) && typeof je != "function")
|
|
1243
|
-
return
|
|
1243
|
+
return U(Ee, ae, le, ue, z(je));
|
|
1244
1244
|
if (!je)
|
|
1245
1245
|
return new p(
|
|
1246
|
-
"Invalid " + ae + " `" + le + "` key `" + ue + "` supplied to `" + Ee + "`.\nBad object: " + JSON.stringify(De[
|
|
1246
|
+
"Invalid " + ae + " `" + le + "` key `" + ue + "` supplied to `" + Ee + "`.\nBad object: " + JSON.stringify(De[we], null, " ") + `
|
|
1247
1247
|
Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
|
|
1248
1248
|
);
|
|
1249
1249
|
var O = je(X, ue, Ee, ae, le + "." + ue, t);
|
|
@@ -1269,14 +1269,14 @@ Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
|
|
|
1269
1269
|
return !0;
|
|
1270
1270
|
var Q = f(N);
|
|
1271
1271
|
if (Q) {
|
|
1272
|
-
var De = Q.call(N),
|
|
1272
|
+
var De = Q.call(N), we;
|
|
1273
1273
|
if (Q !== N.entries) {
|
|
1274
|
-
for (; !(
|
|
1275
|
-
if (!Z(
|
|
1274
|
+
for (; !(we = De.next()).done; )
|
|
1275
|
+
if (!Z(we.value))
|
|
1276
1276
|
return !1;
|
|
1277
1277
|
} else
|
|
1278
|
-
for (; !(
|
|
1279
|
-
var Ee =
|
|
1278
|
+
for (; !(we = De.next()).done; ) {
|
|
1279
|
+
var Ee = we.value;
|
|
1280
1280
|
if (Ee && !Z(Ee[1]))
|
|
1281
1281
|
return !1;
|
|
1282
1282
|
}
|
|
@@ -2692,7 +2692,7 @@ function Tv() {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
2694
|
}
|
|
2695
|
-
var y = c, F = d, S = i, D = s, T = r, k = u,
|
|
2695
|
+
var y = c, F = d, S = i, D = s, T = r, k = u, U = n, H = g, W = m, Z = t, ie = a, Y = o, z = f, ce = !1;
|
|
2696
2696
|
function fe(O) {
|
|
2697
2697
|
return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), N(O) || _(O) === c;
|
|
2698
2698
|
}
|
|
@@ -2705,7 +2705,7 @@ function Tv() {
|
|
|
2705
2705
|
function De(O) {
|
|
2706
2706
|
return _(O) === s;
|
|
2707
2707
|
}
|
|
2708
|
-
function
|
|
2708
|
+
function we(O) {
|
|
2709
2709
|
return typeof O == "object" && O !== null && O.$$typeof === r;
|
|
2710
2710
|
}
|
|
2711
2711
|
function Ee(O) {
|
|
@@ -2732,7 +2732,7 @@ function Tv() {
|
|
|
2732
2732
|
function je(O) {
|
|
2733
2733
|
return _(O) === f;
|
|
2734
2734
|
}
|
|
2735
|
-
nt.AsyncMode = y, nt.ConcurrentMode = F, nt.ContextConsumer = S, nt.ContextProvider = D, nt.Element = T, nt.ForwardRef = k, nt.Fragment =
|
|
2735
|
+
nt.AsyncMode = y, nt.ConcurrentMode = F, nt.ContextConsumer = S, nt.ContextProvider = D, nt.Element = T, nt.ForwardRef = k, nt.Fragment = U, nt.Lazy = H, nt.Memo = W, nt.Portal = Z, nt.Profiler = ie, nt.StrictMode = Y, nt.Suspense = z, nt.isAsyncMode = fe, nt.isConcurrentMode = N, nt.isContextConsumer = Q, nt.isContextProvider = De, nt.isElement = we, nt.isForwardRef = Ee, nt.isFragment = ae, nt.isLazy = le, nt.isMemo = X, nt.isPortal = ye, nt.isProfiler = Ae, nt.isStrictMode = ue, nt.isSuspense = je, nt.isValidElementType = w, nt.typeOf = _;
|
|
2736
2736
|
})()), nt;
|
|
2737
2737
|
}
|
|
2738
2738
|
var Fu;
|
|
@@ -3176,8 +3176,8 @@ var qv = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
3176
3176
|
var D = Pa(f.concat(y), b.registered, F);
|
|
3177
3177
|
_ += b.key + "-" + D.name, s !== void 0 && (_ += " " + s);
|
|
3178
3178
|
var T = d && i === void 0 ? Uu(w) : c, k = {};
|
|
3179
|
-
for (var
|
|
3180
|
-
d &&
|
|
3179
|
+
for (var U in v)
|
|
3180
|
+
d && U === "as" || T(U) && (k[U] = v[U]);
|
|
3181
3181
|
return k.className = _, x && (k.ref = x), /* @__PURE__ */ G.createElement(G.Fragment, null, /* @__PURE__ */ G.createElement(Qv, {
|
|
3182
3182
|
cache: b,
|
|
3183
3183
|
serialized: D,
|
|
@@ -4196,14 +4196,14 @@ function gh(e, r) {
|
|
|
4196
4196
|
[t.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/, "*:where($1)")]: r
|
|
4197
4197
|
} : t.palette.mode === e ? r : {};
|
|
4198
4198
|
}
|
|
4199
|
-
const
|
|
4199
|
+
const e1 = ["breakpoints", "palette", "spacing", "shape"];
|
|
4200
4200
|
function vh(e = {}, ...r) {
|
|
4201
4201
|
const {
|
|
4202
4202
|
breakpoints: t = {},
|
|
4203
4203
|
palette: n = {},
|
|
4204
4204
|
spacing: o,
|
|
4205
4205
|
shape: a = {}
|
|
4206
|
-
} = e, s = Rn(e,
|
|
4206
|
+
} = e, s = Rn(e, e1), i = fh(t), c = w2(o);
|
|
4207
4207
|
let d = Kr({
|
|
4208
4208
|
breakpoints: i,
|
|
4209
4209
|
direction: "ltr",
|
|
@@ -4222,12 +4222,12 @@ function vh(e = {}, ...r) {
|
|
|
4222
4222
|
});
|
|
4223
4223
|
}, d;
|
|
4224
4224
|
}
|
|
4225
|
-
const
|
|
4225
|
+
const t1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4226
4226
|
__proto__: null,
|
|
4227
4227
|
default: vh,
|
|
4228
4228
|
private_createBreakpoints: fh,
|
|
4229
4229
|
unstable_applyStyles: gh
|
|
4230
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4230
|
+
}, Symbol.toStringTag, { value: "Module" })), r1 = /* @__PURE__ */ fn(t1), n1 = ["sx"], o1 = (e) => {
|
|
4231
4231
|
var r, t;
|
|
4232
4232
|
const n = {
|
|
4233
4233
|
systemProps: {},
|
|
@@ -4237,13 +4237,13 @@ const ty = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4237
4237
|
o[a] ? n.systemProps[a] = e[a] : n.otherProps[a] = e[a];
|
|
4238
4238
|
}), n;
|
|
4239
4239
|
};
|
|
4240
|
-
function
|
|
4240
|
+
function a1(e) {
|
|
4241
4241
|
const {
|
|
4242
4242
|
sx: r
|
|
4243
|
-
} = e, t = Rn(e,
|
|
4243
|
+
} = e, t = Rn(e, n1), {
|
|
4244
4244
|
systemProps: n,
|
|
4245
4245
|
otherProps: o
|
|
4246
|
-
} =
|
|
4246
|
+
} = o1(t);
|
|
4247
4247
|
let a;
|
|
4248
4248
|
return Array.isArray(r) ? a = [n, ...r] : typeof r == "function" ? a = (...s) => {
|
|
4249
4249
|
const i = r(...s);
|
|
@@ -4252,28 +4252,28 @@ function ay(e) {
|
|
|
4252
4252
|
sx: a
|
|
4253
4253
|
});
|
|
4254
4254
|
}
|
|
4255
|
-
const
|
|
4255
|
+
const s1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4256
4256
|
__proto__: null,
|
|
4257
4257
|
default: Si,
|
|
4258
|
-
extendSxProp:
|
|
4258
|
+
extendSxProp: a1,
|
|
4259
4259
|
unstable_createStyleFunctionSx: mh,
|
|
4260
4260
|
unstable_defaultSxConfig: $a
|
|
4261
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4261
|
+
}, Symbol.toStringTag, { value: "Module" })), i1 = /* @__PURE__ */ fn(s1);
|
|
4262
4262
|
var Ku;
|
|
4263
|
-
function
|
|
4263
|
+
function c1() {
|
|
4264
4264
|
if (Ku) return jn;
|
|
4265
4265
|
Ku = 1;
|
|
4266
4266
|
var e = pt();
|
|
4267
4267
|
Object.defineProperty(jn, "__esModule", {
|
|
4268
4268
|
value: !0
|
|
4269
4269
|
}), jn.default = S, jn.shouldForwardProp = v, jn.systemDefaultTheme = void 0;
|
|
4270
|
-
var r = e(Jg()), t = e(ev()), n = m(s2), o = i2, a = e(c2), s = e(l2), i = e(
|
|
4270
|
+
var r = e(Jg()), t = e(ev()), n = m(s2), o = i2, a = e(c2), s = e(l2), i = e(r1), c = e(i1);
|
|
4271
4271
|
const d = ["ownerState"], u = ["variants"], f = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
4272
4272
|
function h(D) {
|
|
4273
4273
|
if (typeof WeakMap != "function") return null;
|
|
4274
4274
|
var T = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap();
|
|
4275
|
-
return (h = function(
|
|
4276
|
-
return
|
|
4275
|
+
return (h = function(U) {
|
|
4276
|
+
return U ? k : T;
|
|
4277
4277
|
})(D);
|
|
4278
4278
|
}
|
|
4279
4279
|
function m(D, T) {
|
|
@@ -4281,12 +4281,12 @@ function cy() {
|
|
|
4281
4281
|
if (D === null || typeof D != "object" && typeof D != "function") return { default: D };
|
|
4282
4282
|
var k = h(T);
|
|
4283
4283
|
if (k && k.has(D)) return k.get(D);
|
|
4284
|
-
var
|
|
4284
|
+
var U = { __proto__: null }, H = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
4285
4285
|
for (var W in D) if (W !== "default" && Object.prototype.hasOwnProperty.call(D, W)) {
|
|
4286
|
-
var Z =
|
|
4287
|
-
Z && (Z.get || Z.set) ? Object.defineProperty(
|
|
4286
|
+
var Z = H ? Object.getOwnPropertyDescriptor(D, W) : null;
|
|
4287
|
+
Z && (Z.get || Z.set) ? Object.defineProperty(U, W, Z) : U[W] = D[W];
|
|
4288
4288
|
}
|
|
4289
|
-
return
|
|
4289
|
+
return U.default = D, k && k.set(D, U), U;
|
|
4290
4290
|
}
|
|
4291
4291
|
function g(D) {
|
|
4292
4292
|
return Object.keys(D).length === 0;
|
|
@@ -4316,15 +4316,15 @@ function cy() {
|
|
|
4316
4316
|
}
|
|
4317
4317
|
function F(D, T, k) {
|
|
4318
4318
|
let {
|
|
4319
|
-
ownerState:
|
|
4320
|
-
} = T,
|
|
4319
|
+
ownerState: U
|
|
4320
|
+
} = T, H = (0, t.default)(T, d);
|
|
4321
4321
|
const W = typeof D == "function" ? D((0, r.default)({
|
|
4322
|
-
ownerState:
|
|
4323
|
-
},
|
|
4322
|
+
ownerState: U
|
|
4323
|
+
}, H)) : D;
|
|
4324
4324
|
if (Array.isArray(W))
|
|
4325
4325
|
return W.flatMap((Z) => F(Z, (0, r.default)({
|
|
4326
|
-
ownerState:
|
|
4327
|
-
},
|
|
4326
|
+
ownerState: U
|
|
4327
|
+
}, H), k));
|
|
4328
4328
|
if (W && typeof W == "object" && Array.isArray(W.variants)) {
|
|
4329
4329
|
const {
|
|
4330
4330
|
variants: Z = []
|
|
@@ -4333,14 +4333,14 @@ function cy() {
|
|
|
4333
4333
|
return Z.forEach((z) => {
|
|
4334
4334
|
let ce = !0;
|
|
4335
4335
|
if (typeof z.props == "function" ? ce = z.props((0, r.default)({
|
|
4336
|
-
ownerState:
|
|
4337
|
-
},
|
|
4338
|
-
|
|
4336
|
+
ownerState: U
|
|
4337
|
+
}, H, U)) : Object.keys(z.props).forEach((fe) => {
|
|
4338
|
+
U?.[fe] !== z.props[fe] && H[fe] !== z.props[fe] && (ce = !1);
|
|
4339
4339
|
}), ce) {
|
|
4340
4340
|
Array.isArray(Y) || (Y = [Y]);
|
|
4341
4341
|
const fe = typeof z.style == "function" ? z.style((0, r.default)({
|
|
4342
|
-
ownerState:
|
|
4343
|
-
},
|
|
4342
|
+
ownerState: U
|
|
4343
|
+
}, H, U)) : z.style;
|
|
4344
4344
|
Y.push(k ? b((0, n.internal_serializeStyles)(fe), k) : fe);
|
|
4345
4345
|
}
|
|
4346
4346
|
}), Y;
|
|
@@ -4351,8 +4351,8 @@ function cy() {
|
|
|
4351
4351
|
const {
|
|
4352
4352
|
themeId: T,
|
|
4353
4353
|
defaultTheme: k = x,
|
|
4354
|
-
rootShouldForwardProp:
|
|
4355
|
-
slotShouldForwardProp:
|
|
4354
|
+
rootShouldForwardProp: U = v,
|
|
4355
|
+
slotShouldForwardProp: H = v
|
|
4356
4356
|
} = D, W = (Z) => (0, c.default)((0, r.default)({}, Z, {
|
|
4357
4357
|
theme: _((0, r.default)({}, Z, {
|
|
4358
4358
|
defaultTheme: k,
|
|
@@ -4369,7 +4369,7 @@ function cy() {
|
|
|
4369
4369
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
4370
4370
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
4371
4371
|
overridesResolver: N = y(w(z))
|
|
4372
|
-
} = ie, Q = (0, t.default)(ie, f), De = Y && Y.startsWith("Mui") || z ? "components" : "custom",
|
|
4372
|
+
} = ie, Q = (0, t.default)(ie, f), De = Y && Y.startsWith("Mui") || z ? "components" : "custom", we = ce !== void 0 ? ce : (
|
|
4373
4373
|
// TODO v6: remove `Root` in the next major release
|
|
4374
4374
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
4375
4375
|
z && z !== "Root" && z !== "root" || !1
|
|
@@ -4377,7 +4377,7 @@ function cy() {
|
|
|
4377
4377
|
let ae;
|
|
4378
4378
|
process.env.NODE_ENV !== "production" && Y && (ae = `${Y}-${w(z || "Root")}`);
|
|
4379
4379
|
let le = v;
|
|
4380
|
-
z === "Root" || z === "root" ? le =
|
|
4380
|
+
z === "Root" || z === "root" ? le = U : z ? le = H : p(Z) && (le = void 0);
|
|
4381
4381
|
const X = (0, n.default)(Z, (0, r.default)({
|
|
4382
4382
|
shouldForwardProp: le,
|
|
4383
4383
|
label: ae
|
|
@@ -4406,7 +4406,7 @@ function cy() {
|
|
|
4406
4406
|
theme: Je
|
|
4407
4407
|
}), Je.modularCssLayers ? "theme" : void 0);
|
|
4408
4408
|
}), N(Ne, St);
|
|
4409
|
-
}), Y && !
|
|
4409
|
+
}), Y && !we && be.push((Ne) => {
|
|
4410
4410
|
var Je;
|
|
4411
4411
|
const At = _((0, r.default)({}, Ne, {
|
|
4412
4412
|
defaultTheme: k,
|
|
@@ -4435,9 +4435,9 @@ function cy() {
|
|
|
4435
4435
|
}
|
|
4436
4436
|
return jn;
|
|
4437
4437
|
}
|
|
4438
|
-
var
|
|
4439
|
-
const
|
|
4440
|
-
function
|
|
4438
|
+
var l1 = /* @__PURE__ */ c1();
|
|
4439
|
+
const u1 = /* @__PURE__ */ ft(l1);
|
|
4440
|
+
function d1(e, r) {
|
|
4441
4441
|
return st({
|
|
4442
4442
|
toolbar: {
|
|
4443
4443
|
minHeight: 56,
|
|
@@ -4453,16 +4453,16 @@ function dy(e, r) {
|
|
|
4453
4453
|
}, r);
|
|
4454
4454
|
}
|
|
4455
4455
|
var Tt = {};
|
|
4456
|
-
const
|
|
4456
|
+
const f1 = /* @__PURE__ */ fn(mg), p1 = /* @__PURE__ */ fn(Zg);
|
|
4457
4457
|
var Qu;
|
|
4458
|
-
function
|
|
4458
|
+
function h1() {
|
|
4459
4459
|
if (Qu) return Tt;
|
|
4460
4460
|
Qu = 1;
|
|
4461
4461
|
var e = pt();
|
|
4462
4462
|
Object.defineProperty(Tt, "__esModule", {
|
|
4463
4463
|
value: !0
|
|
4464
4464
|
}), Tt.alpha = g, Tt.blend = F, Tt.colorChannel = void 0, Tt.darken = v, Tt.decomposeColor = s, Tt.emphasize = _, Tt.getContrastRatio = m, Tt.getLuminance = h, Tt.hexToRgb = o, Tt.hslToRgb = f, Tt.lighten = x, Tt.private_safeAlpha = p, Tt.private_safeColorChannel = void 0, Tt.private_safeDarken = b, Tt.private_safeEmphasize = y, Tt.private_safeLighten = w, Tt.recomposeColor = d, Tt.rgbToHex = u;
|
|
4465
|
-
var r = e(
|
|
4465
|
+
var r = e(f1), t = e(p1);
|
|
4466
4466
|
function n(S, D = 0, T = 1) {
|
|
4467
4467
|
return process.env.NODE_ENV !== "production" && (S < D || S > T) && console.error(`MUI: The value provided ${S} is out of range [${D}, ${T}].`), (0, t.default)(S, D, T);
|
|
4468
4468
|
}
|
|
@@ -4470,7 +4470,7 @@ function hy() {
|
|
|
4470
4470
|
S = S.slice(1);
|
|
4471
4471
|
const D = new RegExp(`.{1,${S.length >= 6 ? 2 : 1}}`, "g");
|
|
4472
4472
|
let T = S.match(D);
|
|
4473
|
-
return T && T[0].length === 1 && (T = T.map((k) => k + k)), T ? `rgb${T.length === 4 ? "a" : ""}(${T.map((k,
|
|
4473
|
+
return T && T[0].length === 1 && (T = T.map((k) => k + k)), T ? `rgb${T.length === 4 ? "a" : ""}(${T.map((k, U) => U < 3 ? parseInt(k, 16) : Math.round(parseInt(k, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
4474
4474
|
}
|
|
4475
4475
|
function a(S) {
|
|
4476
4476
|
const D = S.toString(16);
|
|
@@ -4485,17 +4485,17 @@ function hy() {
|
|
|
4485
4485
|
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(T) === -1)
|
|
4486
4486
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${S}\` color.
|
|
4487
4487
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : (0, r.default)(9, S));
|
|
4488
|
-
let k = S.substring(D + 1, S.length - 1),
|
|
4488
|
+
let k = S.substring(D + 1, S.length - 1), U;
|
|
4489
4489
|
if (T === "color") {
|
|
4490
|
-
if (k = k.split(" "),
|
|
4491
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${
|
|
4492
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, r.default)(10,
|
|
4490
|
+
if (k = k.split(" "), U = k.shift(), k.length === 4 && k[3].charAt(0) === "/" && (k[3] = k[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(U) === -1)
|
|
4491
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${U}\` color space.
|
|
4492
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, r.default)(10, U));
|
|
4493
4493
|
} else
|
|
4494
4494
|
k = k.split(",");
|
|
4495
|
-
return k = k.map((
|
|
4495
|
+
return k = k.map((H) => parseFloat(H)), {
|
|
4496
4496
|
type: T,
|
|
4497
4497
|
values: k,
|
|
4498
|
-
colorSpace:
|
|
4498
|
+
colorSpace: U
|
|
4499
4499
|
};
|
|
4500
4500
|
}
|
|
4501
4501
|
const i = (S) => {
|
|
@@ -4519,7 +4519,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
4519
4519
|
let {
|
|
4520
4520
|
values: k
|
|
4521
4521
|
} = S;
|
|
4522
|
-
return D.indexOf("rgb") !== -1 ? k = k.map((
|
|
4522
|
+
return D.indexOf("rgb") !== -1 ? k = k.map((U, H) => H < 3 ? parseInt(U, 10) : U) : D.indexOf("hsl") !== -1 && (k[1] = `${k[1]}%`, k[2] = `${k[2]}%`), D.indexOf("color") !== -1 ? k = `${T} ${k.join(" ")}` : k = `${k.join(", ")}`, `${D}(${k})`;
|
|
4523
4523
|
}
|
|
4524
4524
|
function u(S) {
|
|
4525
4525
|
if (S.indexOf("#") === 0)
|
|
@@ -4533,7 +4533,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
4533
4533
|
S = s(S);
|
|
4534
4534
|
const {
|
|
4535
4535
|
values: D
|
|
4536
|
-
} = S, T = D[0], k = D[1] / 100,
|
|
4536
|
+
} = S, T = D[0], k = D[1] / 100, U = D[2] / 100, H = k * Math.min(U, 1 - U), W = (Y, z = (Y + T / 30) % 12) => U - H * Math.max(Math.min(z - 3, 9 - z, 1), -1);
|
|
4537
4537
|
let Z = "rgb";
|
|
4538
4538
|
const ie = [Math.round(W(0) * 255), Math.round(W(8) * 255), Math.round(W(4) * 255)];
|
|
4539
4539
|
return S.type === "hsla" && (Z += "a", ie.push(D[3])), d({
|
|
@@ -4604,7 +4604,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
4604
4604
|
}
|
|
4605
4605
|
}
|
|
4606
4606
|
function F(S, D, T, k = 1) {
|
|
4607
|
-
const
|
|
4607
|
+
const U = (ie, Y) => Math.round((ie ** (1 / k) * (1 - T) + Y ** (1 / k) * T) ** k), H = s(S), W = s(D), Z = [U(H.values[0], W.values[0]), U(H.values[1], W.values[1]), U(H.values[2], W.values[2])];
|
|
4608
4608
|
return d({
|
|
4609
4609
|
type: "rgb",
|
|
4610
4610
|
values: Z
|
|
@@ -4612,11 +4612,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
4612
4612
|
}
|
|
4613
4613
|
return Tt;
|
|
4614
4614
|
}
|
|
4615
|
-
var Ws = /* @__PURE__ */
|
|
4615
|
+
var Ws = /* @__PURE__ */ h1();
|
|
4616
4616
|
const Da = {
|
|
4617
4617
|
black: "#000",
|
|
4618
4618
|
white: "#fff"
|
|
4619
|
-
},
|
|
4619
|
+
}, m1 = {
|
|
4620
4620
|
50: "#fafafa",
|
|
4621
4621
|
100: "#f5f5f5",
|
|
4622
4622
|
200: "#eeeeee",
|
|
@@ -4669,7 +4669,7 @@ const Da = {
|
|
|
4669
4669
|
700: "#388e3c",
|
|
4670
4670
|
800: "#2e7d32",
|
|
4671
4671
|
900: "#1b5e20"
|
|
4672
|
-
},
|
|
4672
|
+
}, g1 = ["mode", "contrastThreshold", "tonalOffset"], Xu = {
|
|
4673
4673
|
// The colors used to style the text.
|
|
4674
4674
|
text: {
|
|
4675
4675
|
// The most important text.
|
|
@@ -4736,7 +4736,7 @@ function Ju(e, r, t, n) {
|
|
|
4736
4736
|
const o = n.light || n, a = n.dark || n * 1.5;
|
|
4737
4737
|
e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = Ws.lighten(e.main, o) : r === "dark" && (e.dark = Ws.darken(e.main, a)));
|
|
4738
4738
|
}
|
|
4739
|
-
function
|
|
4739
|
+
function v1(e = "light") {
|
|
4740
4740
|
return e === "dark" ? {
|
|
4741
4741
|
main: Xn[200],
|
|
4742
4742
|
light: Xn[50],
|
|
@@ -4747,7 +4747,7 @@ function vy(e = "light") {
|
|
|
4747
4747
|
dark: Xn[800]
|
|
4748
4748
|
};
|
|
4749
4749
|
}
|
|
4750
|
-
function
|
|
4750
|
+
function y1(e = "light") {
|
|
4751
4751
|
return e === "dark" ? {
|
|
4752
4752
|
main: Kn[200],
|
|
4753
4753
|
light: Kn[50],
|
|
@@ -4758,7 +4758,7 @@ function yy(e = "light") {
|
|
|
4758
4758
|
dark: Kn[700]
|
|
4759
4759
|
};
|
|
4760
4760
|
}
|
|
4761
|
-
function
|
|
4761
|
+
function b1(e = "light") {
|
|
4762
4762
|
return e === "dark" ? {
|
|
4763
4763
|
main: Qn[500],
|
|
4764
4764
|
light: Qn[300],
|
|
@@ -4769,7 +4769,7 @@ function by(e = "light") {
|
|
|
4769
4769
|
dark: Qn[800]
|
|
4770
4770
|
};
|
|
4771
4771
|
}
|
|
4772
|
-
function
|
|
4772
|
+
function x1(e = "light") {
|
|
4773
4773
|
return e === "dark" ? {
|
|
4774
4774
|
main: Jn[400],
|
|
4775
4775
|
light: Jn[300],
|
|
@@ -4780,7 +4780,7 @@ function xy(e = "light") {
|
|
|
4780
4780
|
dark: Jn[900]
|
|
4781
4781
|
};
|
|
4782
4782
|
}
|
|
4783
|
-
function
|
|
4783
|
+
function w1(e = "light") {
|
|
4784
4784
|
return e === "dark" ? {
|
|
4785
4785
|
main: eo[400],
|
|
4786
4786
|
light: eo[300],
|
|
@@ -4791,7 +4791,7 @@ function wy(e = "light") {
|
|
|
4791
4791
|
dark: eo[900]
|
|
4792
4792
|
};
|
|
4793
4793
|
}
|
|
4794
|
-
function
|
|
4794
|
+
function _1(e = "light") {
|
|
4795
4795
|
return e === "dark" ? {
|
|
4796
4796
|
main: Po[400],
|
|
4797
4797
|
light: Po[300],
|
|
@@ -4803,12 +4803,12 @@ function _y(e = "light") {
|
|
|
4803
4803
|
dark: Po[900]
|
|
4804
4804
|
};
|
|
4805
4805
|
}
|
|
4806
|
-
function
|
|
4806
|
+
function S1(e) {
|
|
4807
4807
|
const {
|
|
4808
4808
|
mode: r = "light",
|
|
4809
4809
|
contrastThreshold: t = 3,
|
|
4810
4810
|
tonalOffset: n = 0.2
|
|
4811
|
-
} = e, o = Rn(e,
|
|
4811
|
+
} = e, o = Rn(e, g1), a = e.primary || v1(r), s = e.secondary || y1(r), i = e.error || b1(r), c = e.info || x1(r), d = e.success || w1(r), u = e.warning || _1(r);
|
|
4812
4812
|
function f(p) {
|
|
4813
4813
|
const v = Ws.getContrastRatio(p, lc.text.primary) >= t ? lc.text.primary : Xu.text.primary;
|
|
4814
4814
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -4888,7 +4888,7 @@ const theme2 = createTheme({ palette: {
|
|
|
4888
4888
|
name: "success"
|
|
4889
4889
|
}),
|
|
4890
4890
|
// The grey colors.
|
|
4891
|
-
grey:
|
|
4891
|
+
grey: m1,
|
|
4892
4892
|
// Used by `getContrastText()` to maximize the contrast between
|
|
4893
4893
|
// the background and the text.
|
|
4894
4894
|
contrastThreshold: t,
|
|
@@ -4902,14 +4902,14 @@ const theme2 = createTheme({ palette: {
|
|
|
4902
4902
|
tonalOffset: n
|
|
4903
4903
|
}, m[r]), o);
|
|
4904
4904
|
}
|
|
4905
|
-
const
|
|
4906
|
-
function
|
|
4905
|
+
const C1 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
4906
|
+
function E1(e) {
|
|
4907
4907
|
return Math.round(e * 1e5) / 1e5;
|
|
4908
4908
|
}
|
|
4909
4909
|
const ed = {
|
|
4910
4910
|
textTransform: "uppercase"
|
|
4911
4911
|
}, td = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
4912
|
-
function
|
|
4912
|
+
function D1(e, r) {
|
|
4913
4913
|
const t = typeof r == "function" ? r(e) : r, {
|
|
4914
4914
|
fontFamily: n = td,
|
|
4915
4915
|
// The default font size of the Material Specification.
|
|
@@ -4925,7 +4925,7 @@ function Dy(e, r) {
|
|
|
4925
4925
|
// Apply the CSS properties to all the variants.
|
|
4926
4926
|
allVariants: u,
|
|
4927
4927
|
pxToRem: f
|
|
4928
|
-
} = t, h = Rn(t,
|
|
4928
|
+
} = t, h = Rn(t, C1);
|
|
4929
4929
|
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof d != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
4930
4930
|
const m = o / 14, g = f || ((b) => `${b / d * m}rem`), p = (b, x, w, _, y) => st({
|
|
4931
4931
|
fontFamily: n,
|
|
@@ -4934,7 +4934,7 @@ function Dy(e, r) {
|
|
|
4934
4934
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
4935
4935
|
lineHeight: w
|
|
4936
4936
|
}, n === td ? {
|
|
4937
|
-
letterSpacing: `${
|
|
4937
|
+
letterSpacing: `${E1(_ / x)}em`
|
|
4938
4938
|
} : {}, y, u), v = {
|
|
4939
4939
|
h1: p(a, 96, 1.167, -1.5),
|
|
4940
4940
|
h2: p(a, 60, 1.2, -0.5),
|
|
@@ -4972,11 +4972,11 @@ function Dy(e, r) {
|
|
|
4972
4972
|
// No need to clone deep
|
|
4973
4973
|
});
|
|
4974
4974
|
}
|
|
4975
|
-
const
|
|
4975
|
+
const k1 = 0.2, A1 = 0.14, R1 = 0.12;
|
|
4976
4976
|
function Et(...e) {
|
|
4977
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${
|
|
4977
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${k1})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${A1})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${R1})`].join(",");
|
|
4978
4978
|
}
|
|
4979
|
-
const
|
|
4979
|
+
const T1 = ["none", Et(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), Et(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), Et(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), Et(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), Et(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), Et(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), Et(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), Et(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), Et(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), Et(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), Et(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), Et(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), Et(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), Et(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), Et(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), Et(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), Et(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), Et(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), Et(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), Et(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), Et(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), Et(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), Et(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), Et(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], O1 = ["duration", "easing", "delay"], M1 = {
|
|
4980
4980
|
// This is the most common easing curve.
|
|
4981
4981
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
4982
4982
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -4986,7 +4986,7 @@ const Ty = ["none", Et(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), Et(0, 3, 1, -2, 0,
|
|
|
4986
4986
|
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
4987
4987
|
// The sharp curve is used by objects that may return to the screen at any time.
|
|
4988
4988
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
4989
|
-
},
|
|
4989
|
+
}, I1 = {
|
|
4990
4990
|
shortest: 150,
|
|
4991
4991
|
shorter: 200,
|
|
4992
4992
|
short: 250,
|
|
@@ -5002,22 +5002,22 @@ const Ty = ["none", Et(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), Et(0, 3, 1, -2, 0,
|
|
|
5002
5002
|
function rd(e) {
|
|
5003
5003
|
return `${Math.round(e)}ms`;
|
|
5004
5004
|
}
|
|
5005
|
-
function
|
|
5005
|
+
function j1(e) {
|
|
5006
5006
|
if (!e)
|
|
5007
5007
|
return 0;
|
|
5008
5008
|
const r = e / 36;
|
|
5009
5009
|
return Math.round((4 + 15 * r ** 0.25 + r / 5) * 10);
|
|
5010
5010
|
}
|
|
5011
|
-
function
|
|
5012
|
-
const r = st({},
|
|
5011
|
+
function P1(e) {
|
|
5012
|
+
const r = st({}, M1, e.easing), t = st({}, I1, e.duration);
|
|
5013
5013
|
return st({
|
|
5014
|
-
getAutoHeightDuration:
|
|
5014
|
+
getAutoHeightDuration: j1,
|
|
5015
5015
|
create: (o = ["all"], a = {}) => {
|
|
5016
5016
|
const {
|
|
5017
5017
|
duration: s = t.standard,
|
|
5018
5018
|
easing: i = r.easeInOut,
|
|
5019
5019
|
delay: c = 0
|
|
5020
|
-
} = a, d = Rn(a,
|
|
5020
|
+
} = a, d = Rn(a, O1);
|
|
5021
5021
|
if (process.env.NODE_ENV !== "production") {
|
|
5022
5022
|
const u = (h) => typeof h == "string", f = (h) => !isNaN(parseFloat(h));
|
|
5023
5023
|
!u(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !f(s) && !u(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), u(i) || console.error('MUI: Argument "easing" must be a string.'), !f(c) && !u(c) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
@@ -5030,7 +5030,7 @@ function Py(e) {
|
|
|
5030
5030
|
duration: t
|
|
5031
5031
|
});
|
|
5032
5032
|
}
|
|
5033
|
-
const
|
|
5033
|
+
const N1 = {
|
|
5034
5034
|
mobileStepper: 1e3,
|
|
5035
5035
|
fab: 1050,
|
|
5036
5036
|
speedDial: 1050,
|
|
@@ -5039,27 +5039,27 @@ const Ny = {
|
|
|
5039
5039
|
modal: 1300,
|
|
5040
5040
|
snackbar: 1400,
|
|
5041
5041
|
tooltip: 1500
|
|
5042
|
-
},
|
|
5043
|
-
function $
|
|
5042
|
+
}, F1 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
5043
|
+
function $1(e = {}, ...r) {
|
|
5044
5044
|
const {
|
|
5045
5045
|
mixins: t = {},
|
|
5046
5046
|
palette: n = {},
|
|
5047
5047
|
transitions: o = {},
|
|
5048
5048
|
typography: a = {}
|
|
5049
|
-
} = e, s = Rn(e,
|
|
5049
|
+
} = e, s = Rn(e, F1);
|
|
5050
5050
|
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
5051
5051
|
// `generateCssVars` is the closest identifier for checking that the `options` is a result of `extendTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
5052
5052
|
e.generateCssVars === void 0)
|
|
5053
5053
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : _a(18));
|
|
5054
|
-
const i =
|
|
5054
|
+
const i = S1(n), c = vh(e);
|
|
5055
5055
|
let d = Kr(c, {
|
|
5056
|
-
mixins:
|
|
5056
|
+
mixins: d1(c.breakpoints, t),
|
|
5057
5057
|
palette: i,
|
|
5058
5058
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
5059
|
-
shadows:
|
|
5060
|
-
typography:
|
|
5061
|
-
transitions:
|
|
5062
|
-
zIndex: st({},
|
|
5059
|
+
shadows: T1.slice(),
|
|
5060
|
+
typography: D1(i, a),
|
|
5061
|
+
transitions: P1(o),
|
|
5062
|
+
zIndex: st({}, N1)
|
|
5063
5063
|
});
|
|
5064
5064
|
if (d = Kr(d, s), d = r.reduce((u, f) => Kr(u, f), d), process.env.NODE_ENV !== "production") {
|
|
5065
5065
|
const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (h, m) => {
|
|
@@ -5092,20 +5092,20 @@ function $y(e = {}, ...r) {
|
|
|
5092
5092
|
});
|
|
5093
5093
|
}, d;
|
|
5094
5094
|
}
|
|
5095
|
-
const
|
|
5096
|
-
function
|
|
5095
|
+
const z1 = $1(), L1 = "$$material";
|
|
5096
|
+
function B1(e) {
|
|
5097
5097
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
5098
5098
|
}
|
|
5099
|
-
const
|
|
5100
|
-
themeId:
|
|
5101
|
-
defaultTheme:
|
|
5102
|
-
rootShouldForwardProp:
|
|
5099
|
+
const V1 = (e) => B1(e) && e !== "classes", W1 = u1({
|
|
5100
|
+
themeId: L1,
|
|
5101
|
+
defaultTheme: z1,
|
|
5102
|
+
rootShouldForwardProp: V1
|
|
5103
5103
|
});
|
|
5104
|
-
function
|
|
5104
|
+
function U1(e) {
|
|
5105
5105
|
return pl("MuiSvgIcon", e);
|
|
5106
5106
|
}
|
|
5107
5107
|
Yg("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
5108
|
-
const
|
|
5108
|
+
const H1 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], Y1 = (e) => {
|
|
5109
5109
|
const {
|
|
5110
5110
|
color: r,
|
|
5111
5111
|
fontSize: t,
|
|
@@ -5113,8 +5113,8 @@ const Hy = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5113
5113
|
} = e, o = {
|
|
5114
5114
|
root: ["root", r !== "inherit" && `color${kn(r)}`, `fontSize${kn(t)}`]
|
|
5115
5115
|
};
|
|
5116
|
-
return Wg(o,
|
|
5117
|
-
},
|
|
5116
|
+
return Wg(o, U1, n);
|
|
5117
|
+
}, q1 = W1("svg", {
|
|
5118
5118
|
name: "MuiSvgIcon",
|
|
5119
5119
|
slot: "Root",
|
|
5120
5120
|
overridesResolver: (e, r) => {
|
|
@@ -5167,7 +5167,7 @@ const Hy = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5167
5167
|
inheritViewBox: u = !1,
|
|
5168
5168
|
titleAccess: f,
|
|
5169
5169
|
viewBox: h = "0 0 24 24"
|
|
5170
|
-
} = n, m = Rn(n,
|
|
5170
|
+
} = n, m = Rn(n, H1), g = /* @__PURE__ */ G.isValidElement(o) && o.type === "svg", p = st({}, n, {
|
|
5171
5171
|
color: s,
|
|
5172
5172
|
component: i,
|
|
5173
5173
|
fontSize: c,
|
|
@@ -5177,8 +5177,8 @@ const Hy = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
5177
5177
|
hasSvgAsChild: g
|
|
5178
5178
|
}), v = {};
|
|
5179
5179
|
u || (v.viewBox = h);
|
|
5180
|
-
const b =
|
|
5181
|
-
return /* @__PURE__ */ l.jsxs(
|
|
5180
|
+
const b = Y1(p);
|
|
5181
|
+
return /* @__PURE__ */ l.jsxs(q1, st({
|
|
5182
5182
|
as: i,
|
|
5183
5183
|
className: qt(b.root, a),
|
|
5184
5184
|
focusable: "false",
|
|
@@ -5266,7 +5266,7 @@ process.env.NODE_ENV !== "production" && (Us.propTypes = {
|
|
|
5266
5266
|
viewBox: ze.string
|
|
5267
5267
|
});
|
|
5268
5268
|
Us.muiName = "SvgIcon";
|
|
5269
|
-
function
|
|
5269
|
+
function Z1(e, r) {
|
|
5270
5270
|
function t(n, o) {
|
|
5271
5271
|
return /* @__PURE__ */ l.jsx(Us, st({
|
|
5272
5272
|
"data-testid": `${r}Icon`,
|
|
@@ -5277,16 +5277,16 @@ function Zy(e, r) {
|
|
|
5277
5277
|
}
|
|
5278
5278
|
return process.env.NODE_ENV !== "production" && (t.displayName = `${r}Icon`), t.muiName = Us.muiName, /* @__PURE__ */ G.memo(/* @__PURE__ */ G.forwardRef(t));
|
|
5279
5279
|
}
|
|
5280
|
-
const
|
|
5280
|
+
const G1 = {
|
|
5281
5281
|
configure: (e) => {
|
|
5282
5282
|
process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
5283
5283
|
`)), qp.configure(e);
|
|
5284
5284
|
}
|
|
5285
|
-
},
|
|
5285
|
+
}, K1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5286
5286
|
__proto__: null,
|
|
5287
5287
|
capitalize: kn,
|
|
5288
5288
|
createChainedFunction: Sg,
|
|
5289
|
-
createSvgIcon:
|
|
5289
|
+
createSvgIcon: Z1,
|
|
5290
5290
|
debounce: Cg,
|
|
5291
5291
|
deprecatedPropType: Eg,
|
|
5292
5292
|
isMuiElement: Dg,
|
|
@@ -5294,7 +5294,7 @@ const Gy = {
|
|
|
5294
5294
|
ownerWindow: kg,
|
|
5295
5295
|
requirePropFactory: Ag,
|
|
5296
5296
|
setRef: Hp,
|
|
5297
|
-
unstable_ClassNameGenerator:
|
|
5297
|
+
unstable_ClassNameGenerator: G1,
|
|
5298
5298
|
unstable_useEnhancedEffect: Yp,
|
|
5299
5299
|
unstable_useId: Tg,
|
|
5300
5300
|
unsupportedProp: Og,
|
|
@@ -5302,7 +5302,7 @@ const Gy = {
|
|
|
5302
5302
|
useEventCallback: Ig,
|
|
5303
5303
|
useForkRef: jg,
|
|
5304
5304
|
useIsFocusVisible: Vg
|
|
5305
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5305
|
+
}, Symbol.toStringTag, { value: "Module" })), Q1 = /* @__PURE__ */ fn(K1);
|
|
5306
5306
|
var nd;
|
|
5307
5307
|
function vt() {
|
|
5308
5308
|
return nd || (nd = 1, (function(e) {
|
|
@@ -5315,11 +5315,11 @@ function vt() {
|
|
|
5315
5315
|
return r.createSvgIcon;
|
|
5316
5316
|
}
|
|
5317
5317
|
});
|
|
5318
|
-
var r =
|
|
5318
|
+
var r = Q1;
|
|
5319
5319
|
})(Ki)), Ki;
|
|
5320
5320
|
}
|
|
5321
5321
|
var od;
|
|
5322
|
-
function
|
|
5322
|
+
function X1() {
|
|
5323
5323
|
if (od) return Io;
|
|
5324
5324
|
od = 1;
|
|
5325
5325
|
var e = pt();
|
|
@@ -5331,10 +5331,10 @@ function Xy() {
|
|
|
5331
5331
|
d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
|
|
5332
5332
|
}), "Menu"), Io;
|
|
5333
5333
|
}
|
|
5334
|
-
var
|
|
5335
|
-
const
|
|
5334
|
+
var J1 = /* @__PURE__ */ X1();
|
|
5335
|
+
const ey = /* @__PURE__ */ ft(J1);
|
|
5336
5336
|
var No = {}, ad;
|
|
5337
|
-
function
|
|
5337
|
+
function ty() {
|
|
5338
5338
|
if (ad) return No;
|
|
5339
5339
|
ad = 1;
|
|
5340
5340
|
var e = pt();
|
|
@@ -5346,10 +5346,10 @@ function t1() {
|
|
|
5346
5346
|
d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
5347
5347
|
}), "ChevronLeft"), No;
|
|
5348
5348
|
}
|
|
5349
|
-
var
|
|
5350
|
-
const
|
|
5349
|
+
var ry = /* @__PURE__ */ ty();
|
|
5350
|
+
const ny = /* @__PURE__ */ ft(ry);
|
|
5351
5351
|
var Fo = {}, sd;
|
|
5352
|
-
function
|
|
5352
|
+
function oy() {
|
|
5353
5353
|
if (sd) return Fo;
|
|
5354
5354
|
sd = 1;
|
|
5355
5355
|
var e = pt();
|
|
@@ -5361,8 +5361,8 @@ function o1() {
|
|
|
5361
5361
|
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
5362
5362
|
}), "ChevronRight"), Fo;
|
|
5363
5363
|
}
|
|
5364
|
-
var
|
|
5365
|
-
const
|
|
5364
|
+
var ay = /* @__PURE__ */ oy();
|
|
5365
|
+
const sy = /* @__PURE__ */ ft(ay), iy = ({ header: e, sidebar: r, mainContent: t }) => {
|
|
5366
5366
|
const [n, o] = me(!1), [a, s] = me(!1), i = () => {
|
|
5367
5367
|
o(!n);
|
|
5368
5368
|
}, c = () => {
|
|
@@ -5370,23 +5370,23 @@ const s1 = /* @__PURE__ */ ft(a1), i1 = ({ header: e, sidebar: r, mainContent: t
|
|
|
5370
5370
|
};
|
|
5371
5371
|
return /* @__PURE__ */ l.jsxs("div", { className: `${Or.dashboardContainer} ${a ? Or.sidebarCollapsed : ""}`, children: [
|
|
5372
5372
|
/* @__PURE__ */ l.jsxs("header", { className: Or.header, children: [
|
|
5373
|
-
/* @__PURE__ */ l.jsx(Wt, { onClick: i, className: Or.menuButton, children: /* @__PURE__ */ l.jsx(
|
|
5373
|
+
/* @__PURE__ */ l.jsx(Wt, { onClick: i, className: Or.menuButton, children: /* @__PURE__ */ l.jsx(ey, {}) }),
|
|
5374
5374
|
/* @__PURE__ */ l.jsx("div", { className: Or.headerContent, children: e })
|
|
5375
5375
|
] }),
|
|
5376
5376
|
/* @__PURE__ */ l.jsxs("aside", { className: `${Or.sidebar} ${n ? Or.sidebarOpen : ""}`, children: [
|
|
5377
5377
|
/* @__PURE__ */ l.jsx("div", { className: Or.sidebarContent, children: r }),
|
|
5378
|
-
/* @__PURE__ */ l.jsx(Wt, { onClick: c, className: Or.collapseButton, style: { display: "none" }, children: a ? /* @__PURE__ */ l.jsx(
|
|
5378
|
+
/* @__PURE__ */ l.jsx(Wt, { onClick: c, className: Or.collapseButton, style: { display: "none" }, children: a ? /* @__PURE__ */ l.jsx(sy, {}) : /* @__PURE__ */ l.jsx(ny, {}) })
|
|
5379
5379
|
] }),
|
|
5380
5380
|
/* @__PURE__ */ l.jsx("main", { className: Or.mainContent, children: t }),
|
|
5381
5381
|
n && /* @__PURE__ */ l.jsx("div", { className: Or.overlay, onClick: i })
|
|
5382
5382
|
] });
|
|
5383
|
-
},
|
|
5384
|
-
headerContainer:
|
|
5385
|
-
navAndDate:
|
|
5386
|
-
navButton:
|
|
5387
|
-
datePickerInput:
|
|
5388
|
-
datePickerButton:
|
|
5389
|
-
addEventButton:
|
|
5383
|
+
}, cy = "_headerContainer_if4sf_1", ly = "_navAndDate_if4sf_17", uy = "_navButton_if4sf_29", dy = "_datePickerInput_if4sf_61", fy = "_datePickerButton_if4sf_91", py = "_addEventButton_if4sf_135", Nn = {
|
|
5384
|
+
headerContainer: cy,
|
|
5385
|
+
navAndDate: ly,
|
|
5386
|
+
navButton: uy,
|
|
5387
|
+
datePickerInput: dy,
|
|
5388
|
+
datePickerButton: fy,
|
|
5389
|
+
addEventButton: py
|
|
5390
5390
|
};
|
|
5391
5391
|
function Ci() {
|
|
5392
5392
|
return typeof window < "u";
|
|
@@ -5414,7 +5414,7 @@ function Jr(e) {
|
|
|
5414
5414
|
function id(e) {
|
|
5415
5415
|
return !Ci() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof vr(e).ShadowRoot;
|
|
5416
5416
|
}
|
|
5417
|
-
const
|
|
5417
|
+
const hy = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
5418
5418
|
function za(e) {
|
|
5419
5419
|
const {
|
|
5420
5420
|
overflow: r,
|
|
@@ -5422,15 +5422,15 @@ function za(e) {
|
|
|
5422
5422
|
overflowY: n,
|
|
5423
5423
|
display: o
|
|
5424
5424
|
} = Dr(e);
|
|
5425
|
-
return /auto|scroll|overlay|hidden|clip/.test(r + n + t) && !
|
|
5425
|
+
return /auto|scroll|overlay|hidden|clip/.test(r + n + t) && !hy.has(o);
|
|
5426
5426
|
}
|
|
5427
|
-
const
|
|
5428
|
-
function
|
|
5429
|
-
return
|
|
5427
|
+
const my = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
5428
|
+
function gy(e) {
|
|
5429
|
+
return my.has(Eo(e));
|
|
5430
5430
|
}
|
|
5431
|
-
const
|
|
5431
|
+
const vy = [":popover-open", ":modal"];
|
|
5432
5432
|
function Ei(e) {
|
|
5433
|
-
return
|
|
5433
|
+
return vy.some((r) => {
|
|
5434
5434
|
try {
|
|
5435
5435
|
return e.matches(r);
|
|
5436
5436
|
} catch {
|
|
@@ -5438,12 +5438,12 @@ function Ei(e) {
|
|
|
5438
5438
|
}
|
|
5439
5439
|
});
|
|
5440
5440
|
}
|
|
5441
|
-
const
|
|
5441
|
+
const yy = ["transform", "translate", "scale", "rotate", "perspective"], by = ["transform", "translate", "scale", "rotate", "perspective", "filter"], xy = ["paint", "layout", "strict", "content"];
|
|
5442
5442
|
function Sl(e) {
|
|
5443
5443
|
const r = Cl(), t = nr(e) ? Dr(e) : e;
|
|
5444
|
-
return
|
|
5444
|
+
return yy.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !r && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !r && (t.filter ? t.filter !== "none" : !1) || by.some((n) => (t.willChange || "").includes(n)) || xy.some((n) => (t.contain || "").includes(n));
|
|
5445
5445
|
}
|
|
5446
|
-
function
|
|
5446
|
+
function wy(e) {
|
|
5447
5447
|
let r = An(e);
|
|
5448
5448
|
for (; Jr(r) && !vo(r); ) {
|
|
5449
5449
|
if (Sl(r))
|
|
@@ -5457,9 +5457,9 @@ function w1(e) {
|
|
|
5457
5457
|
function Cl() {
|
|
5458
5458
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
5459
5459
|
}
|
|
5460
|
-
const
|
|
5460
|
+
const _y = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
5461
5461
|
function vo(e) {
|
|
5462
|
-
return
|
|
5462
|
+
return _y.has(Eo(e));
|
|
5463
5463
|
}
|
|
5464
5464
|
function Dr(e) {
|
|
5465
5465
|
return vr(e).getComputedStyle(e);
|
|
@@ -5505,16 +5505,16 @@ function Bc(e) {
|
|
|
5505
5505
|
const yo = Math.min, Wn = Math.max, Hs = Math.round, as = Math.floor, Xr = (e) => ({
|
|
5506
5506
|
x: e,
|
|
5507
5507
|
y: e
|
|
5508
|
-
}),
|
|
5508
|
+
}), Sy = {
|
|
5509
5509
|
left: "right",
|
|
5510
5510
|
right: "left",
|
|
5511
5511
|
bottom: "top",
|
|
5512
5512
|
top: "bottom"
|
|
5513
|
-
},
|
|
5513
|
+
}, Cy = {
|
|
5514
5514
|
start: "end",
|
|
5515
5515
|
end: "start"
|
|
5516
5516
|
};
|
|
5517
|
-
function
|
|
5517
|
+
function Ey(e, r, t) {
|
|
5518
5518
|
return Wn(e, yo(r, t));
|
|
5519
5519
|
}
|
|
5520
5520
|
function ki(e, r) {
|
|
@@ -5526,54 +5526,54 @@ function bo(e) {
|
|
|
5526
5526
|
function La(e) {
|
|
5527
5527
|
return e.split("-")[1];
|
|
5528
5528
|
}
|
|
5529
|
-
function
|
|
5529
|
+
function Dy(e) {
|
|
5530
5530
|
return e === "x" ? "y" : "x";
|
|
5531
5531
|
}
|
|
5532
5532
|
function El(e) {
|
|
5533
5533
|
return e === "y" ? "height" : "width";
|
|
5534
5534
|
}
|
|
5535
|
-
const
|
|
5535
|
+
const ky = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
5536
5536
|
function $n(e) {
|
|
5537
|
-
return
|
|
5537
|
+
return ky.has(bo(e)) ? "y" : "x";
|
|
5538
5538
|
}
|
|
5539
5539
|
function Dl(e) {
|
|
5540
|
-
return
|
|
5540
|
+
return Dy($n(e));
|
|
5541
5541
|
}
|
|
5542
|
-
function
|
|
5542
|
+
function Ay(e, r, t) {
|
|
5543
5543
|
t === void 0 && (t = !1);
|
|
5544
5544
|
const n = La(e), o = Dl(e), a = El(o);
|
|
5545
5545
|
let s = o === "x" ? n === (t ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
5546
5546
|
return r.reference[a] > r.floating[a] && (s = Ys(s)), [s, Ys(s)];
|
|
5547
5547
|
}
|
|
5548
|
-
function
|
|
5548
|
+
function Ry(e) {
|
|
5549
5549
|
const r = Ys(e);
|
|
5550
5550
|
return [Vc(e), r, Vc(r)];
|
|
5551
5551
|
}
|
|
5552
5552
|
function Vc(e) {
|
|
5553
|
-
return e.replace(/start|end/g, (r) =>
|
|
5553
|
+
return e.replace(/start|end/g, (r) => Cy[r]);
|
|
5554
5554
|
}
|
|
5555
|
-
const cd = ["left", "right"], ld = ["right", "left"],
|
|
5556
|
-
function
|
|
5555
|
+
const cd = ["left", "right"], ld = ["right", "left"], Ty = ["top", "bottom"], Oy = ["bottom", "top"];
|
|
5556
|
+
function My(e, r, t) {
|
|
5557
5557
|
switch (e) {
|
|
5558
5558
|
case "top":
|
|
5559
5559
|
case "bottom":
|
|
5560
5560
|
return t ? r ? ld : cd : r ? cd : ld;
|
|
5561
5561
|
case "left":
|
|
5562
5562
|
case "right":
|
|
5563
|
-
return r ?
|
|
5563
|
+
return r ? Ty : Oy;
|
|
5564
5564
|
default:
|
|
5565
5565
|
return [];
|
|
5566
5566
|
}
|
|
5567
5567
|
}
|
|
5568
|
-
function
|
|
5568
|
+
function Iy(e, r, t, n) {
|
|
5569
5569
|
const o = La(e);
|
|
5570
|
-
let a =
|
|
5570
|
+
let a = My(bo(e), t === "start", n);
|
|
5571
5571
|
return o && (a = a.map((s) => s + "-" + o), r && (a = a.concat(a.map(Vc)))), a;
|
|
5572
5572
|
}
|
|
5573
5573
|
function Ys(e) {
|
|
5574
|
-
return e.replace(/left|right|bottom|top/g, (r) =>
|
|
5574
|
+
return e.replace(/left|right|bottom|top/g, (r) => Sy[r]);
|
|
5575
5575
|
}
|
|
5576
|
-
function
|
|
5576
|
+
function jy(e) {
|
|
5577
5577
|
return {
|
|
5578
5578
|
top: 0,
|
|
5579
5579
|
right: 0,
|
|
@@ -5583,7 +5583,7 @@ function j1(e) {
|
|
|
5583
5583
|
};
|
|
5584
5584
|
}
|
|
5585
5585
|
function xh(e) {
|
|
5586
|
-
return typeof e != "number" ?
|
|
5586
|
+
return typeof e != "number" ? jy(e) : {
|
|
5587
5587
|
top: e,
|
|
5588
5588
|
right: e,
|
|
5589
5589
|
bottom: e,
|
|
@@ -5608,17 +5608,17 @@ function qs(e) {
|
|
|
5608
5608
|
y: t
|
|
5609
5609
|
};
|
|
5610
5610
|
}
|
|
5611
|
-
var
|
|
5612
|
-
}, Zs =
|
|
5613
|
-
const
|
|
5611
|
+
var Py = typeof document < "u", Ny = function() {
|
|
5612
|
+
}, Zs = Py ? nl : Ny;
|
|
5613
|
+
const Fy = {
|
|
5614
5614
|
...G
|
|
5615
|
-
}, $
|
|
5616
|
-
function
|
|
5615
|
+
}, $y = Fy.useInsertionEffect, zy = $y || ((e) => e());
|
|
5616
|
+
function Ly(e) {
|
|
5617
5617
|
const r = G.useRef(() => {
|
|
5618
5618
|
if (process.env.NODE_ENV !== "production")
|
|
5619
5619
|
throw new Error("Cannot call an event handler while rendering.");
|
|
5620
5620
|
});
|
|
5621
|
-
return
|
|
5621
|
+
return zy(() => {
|
|
5622
5622
|
r.current = e;
|
|
5623
5623
|
}), G.useCallback(function() {
|
|
5624
5624
|
for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
|
|
@@ -5674,7 +5674,7 @@ function ud(e, r, t) {
|
|
|
5674
5674
|
}
|
|
5675
5675
|
return m;
|
|
5676
5676
|
}
|
|
5677
|
-
const
|
|
5677
|
+
const By = async (e, r, t) => {
|
|
5678
5678
|
const {
|
|
5679
5679
|
placement: n = "bottom",
|
|
5680
5680
|
strategy: o = "absolute",
|
|
@@ -5735,7 +5735,7 @@ const B1 = async (e, r, t) => {
|
|
|
5735
5735
|
middlewareData: m
|
|
5736
5736
|
};
|
|
5737
5737
|
};
|
|
5738
|
-
async function
|
|
5738
|
+
async function Vy(e, r) {
|
|
5739
5739
|
var t;
|
|
5740
5740
|
r === void 0 && (r = {});
|
|
5741
5741
|
const {
|
|
@@ -5780,7 +5780,7 @@ async function V1(e, r) {
|
|
|
5780
5780
|
right: (y.right - b.right + g.right) / _.x
|
|
5781
5781
|
};
|
|
5782
5782
|
}
|
|
5783
|
-
const
|
|
5783
|
+
const Wy = (e) => ({
|
|
5784
5784
|
name: "arrow",
|
|
5785
5785
|
options: e,
|
|
5786
5786
|
async fn(r) {
|
|
@@ -5804,7 +5804,7 @@ const W1 = (e) => ({
|
|
|
5804
5804
|
}, m = Dl(o), g = El(m), p = await s.getDimensions(d), v = m === "y", b = v ? "top" : "left", x = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", _ = a.reference[g] + a.reference[m] - h[m] - a.floating[g], y = h[m] - a.reference[m], F = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
|
5805
5805
|
let S = F ? F[w] : 0;
|
|
5806
5806
|
(!S || !await (s.isElement == null ? void 0 : s.isElement(F))) && (S = i.floating[w] || a.floating[g]);
|
|
5807
|
-
const D = _ / 2 - y / 2, T = S / 2 - p[g] / 2 - 1, k = yo(f[b], T),
|
|
5807
|
+
const D = _ / 2 - y / 2, T = S / 2 - p[g] / 2 - 1, k = yo(f[b], T), U = yo(f[x], T), H = k, W = S - p[g] - U, Z = S / 2 - p[g] / 2 + D, ie = Ey(H, Z, W), Y = !c.arrow && La(o) != null && Z !== ie && a.reference[g] / 2 - (Z < H ? k : U) - p[g] / 2 < 0, z = Y ? Z < H ? Z - H : Z - W : 0;
|
|
5808
5808
|
return {
|
|
5809
5809
|
[m]: h[m] + z,
|
|
5810
5810
|
data: {
|
|
@@ -5817,7 +5817,7 @@ const W1 = (e) => ({
|
|
|
5817
5817
|
reset: Y
|
|
5818
5818
|
};
|
|
5819
5819
|
}
|
|
5820
|
-
}),
|
|
5820
|
+
}), Uy = function(e) {
|
|
5821
5821
|
return e === void 0 && (e = {}), {
|
|
5822
5822
|
name: "flip",
|
|
5823
5823
|
options: e,
|
|
@@ -5841,20 +5841,20 @@ const W1 = (e) => ({
|
|
|
5841
5841
|
} = ki(e, r);
|
|
5842
5842
|
if ((t = a.arrow) != null && t.alignmentOffset)
|
|
5843
5843
|
return {};
|
|
5844
|
-
const b = bo(o), x = $n(i), w = bo(i) === i, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), y = h || (w || !p ? [Ys(i)] :
|
|
5845
|
-
!h && F && y.push(...
|
|
5846
|
-
const S = [i, ...y], D = await
|
|
5844
|
+
const b = bo(o), x = $n(i), w = bo(i) === i, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), y = h || (w || !p ? [Ys(i)] : Ry(i)), F = g !== "none";
|
|
5845
|
+
!h && F && y.push(...Iy(i, p, g, _));
|
|
5846
|
+
const S = [i, ...y], D = await Vy(r, v), T = [];
|
|
5847
5847
|
let k = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
5848
5848
|
if (u && T.push(D[b]), f) {
|
|
5849
|
-
const Z =
|
|
5849
|
+
const Z = Ay(o, s, _);
|
|
5850
5850
|
T.push(D[Z[0]], D[Z[1]]);
|
|
5851
5851
|
}
|
|
5852
5852
|
if (k = [...k, {
|
|
5853
5853
|
placement: o,
|
|
5854
5854
|
overflows: T
|
|
5855
5855
|
}], !T.every((Z) => Z <= 0)) {
|
|
5856
|
-
var
|
|
5857
|
-
const Z = (((
|
|
5856
|
+
var U, H;
|
|
5857
|
+
const Z = (((U = a.flip) == null ? void 0 : U.index) || 0) + 1, ie = S[Z];
|
|
5858
5858
|
if (ie && (!(f === "alignment" ? x !== $n(ie) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5859
5859
|
// overflows the main axis.
|
|
5860
5860
|
k.every((ce) => $n(ce.placement) === x ? ce.overflows[0] > 0 : !0)))
|
|
@@ -5867,7 +5867,7 @@ const W1 = (e) => ({
|
|
|
5867
5867
|
placement: ie
|
|
5868
5868
|
}
|
|
5869
5869
|
};
|
|
5870
|
-
let Y = (
|
|
5870
|
+
let Y = (H = k.filter((z) => z.overflows[0] <= 0).sort((z, ce) => z.overflows[1] - ce.overflows[1])[0]) == null ? void 0 : H.placement;
|
|
5871
5871
|
if (!Y)
|
|
5872
5872
|
switch (m) {
|
|
5873
5873
|
case "bestFit": {
|
|
@@ -5898,13 +5898,13 @@ const W1 = (e) => ({
|
|
|
5898
5898
|
return {};
|
|
5899
5899
|
}
|
|
5900
5900
|
};
|
|
5901
|
-
},
|
|
5902
|
-
async function
|
|
5901
|
+
}, Hy = /* @__PURE__ */ new Set(["left", "top"]);
|
|
5902
|
+
async function Yy(e, r) {
|
|
5903
5903
|
const {
|
|
5904
5904
|
placement: t,
|
|
5905
5905
|
platform: n,
|
|
5906
5906
|
elements: o
|
|
5907
|
-
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = bo(t), i = La(t), c = $n(t) === "y", d =
|
|
5907
|
+
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = bo(t), i = La(t), c = $n(t) === "y", d = Hy.has(s) ? -1 : 1, u = a && c ? -1 : 1, f = ki(r, e);
|
|
5908
5908
|
let {
|
|
5909
5909
|
mainAxis: h,
|
|
5910
5910
|
crossAxis: m,
|
|
@@ -5926,7 +5926,7 @@ async function Y1(e, r) {
|
|
|
5926
5926
|
y: m * u
|
|
5927
5927
|
};
|
|
5928
5928
|
}
|
|
5929
|
-
const
|
|
5929
|
+
const qy = function(e) {
|
|
5930
5930
|
return e === void 0 && (e = 0), {
|
|
5931
5931
|
name: "offset",
|
|
5932
5932
|
options: e,
|
|
@@ -5937,7 +5937,7 @@ const q1 = function(e) {
|
|
|
5937
5937
|
y: a,
|
|
5938
5938
|
placement: s,
|
|
5939
5939
|
middlewareData: i
|
|
5940
|
-
} = r, c = await
|
|
5940
|
+
} = r, c = await Yy(r, e);
|
|
5941
5941
|
return s === ((t = i.offset) == null ? void 0 : t.placement) && (n = i.arrow) != null && n.alignmentOffset ? {} : {
|
|
5942
5942
|
x: o + c.x,
|
|
5943
5943
|
y: a + c.y,
|
|
@@ -5977,15 +5977,15 @@ function co(e) {
|
|
|
5977
5977
|
y: i
|
|
5978
5978
|
};
|
|
5979
5979
|
}
|
|
5980
|
-
const
|
|
5980
|
+
const Zy = /* @__PURE__ */ Xr(0);
|
|
5981
5981
|
function _h(e) {
|
|
5982
5982
|
const r = vr(e);
|
|
5983
|
-
return !Cl() || !r.visualViewport ?
|
|
5983
|
+
return !Cl() || !r.visualViewport ? Zy : {
|
|
5984
5984
|
x: r.visualViewport.offsetLeft,
|
|
5985
5985
|
y: r.visualViewport.offsetTop
|
|
5986
5986
|
};
|
|
5987
5987
|
}
|
|
5988
|
-
function
|
|
5988
|
+
function Gy(e, r, t) {
|
|
5989
5989
|
return r === void 0 && (r = !1), !t || r && t !== vr(e) ? !1 : r;
|
|
5990
5990
|
}
|
|
5991
5991
|
function Yn(e, r, t, n) {
|
|
@@ -5993,7 +5993,7 @@ function Yn(e, r, t, n) {
|
|
|
5993
5993
|
const o = e.getBoundingClientRect(), a = kl(e);
|
|
5994
5994
|
let s = Xr(1);
|
|
5995
5995
|
r && (n ? nr(n) && (s = co(n)) : s = co(e));
|
|
5996
|
-
const i =
|
|
5996
|
+
const i = Gy(a, t, n) ? _h(a) : Xr(0);
|
|
5997
5997
|
let c = (o.left + i.x) / s.x, d = (o.top + i.y) / s.y, u = o.width / s.x, f = o.height / s.y;
|
|
5998
5998
|
if (a) {
|
|
5999
5999
|
const h = vr(a), m = n && nr(n) ? vr(n) : n;
|
|
@@ -6021,7 +6021,7 @@ function Sh(e, r) {
|
|
|
6021
6021
|
y: o
|
|
6022
6022
|
};
|
|
6023
6023
|
}
|
|
6024
|
-
function
|
|
6024
|
+
function Ky(e) {
|
|
6025
6025
|
let {
|
|
6026
6026
|
elements: r,
|
|
6027
6027
|
rect: t,
|
|
@@ -6048,10 +6048,10 @@ function K1(e) {
|
|
|
6048
6048
|
y: t.y * d.y - c.scrollTop * d.y + u.y + h.y
|
|
6049
6049
|
};
|
|
6050
6050
|
}
|
|
6051
|
-
function
|
|
6051
|
+
function Qy(e) {
|
|
6052
6052
|
return Array.from(e.getClientRects());
|
|
6053
6053
|
}
|
|
6054
|
-
function
|
|
6054
|
+
function Xy(e) {
|
|
6055
6055
|
const r = en(e), t = Di(e), n = e.ownerDocument.body, o = Wn(r.scrollWidth, r.clientWidth, n.scrollWidth, n.clientWidth), a = Wn(r.scrollHeight, r.clientHeight, n.scrollHeight, n.clientHeight);
|
|
6056
6056
|
let s = -t.scrollLeft + Ai(e);
|
|
6057
6057
|
const i = -t.scrollTop;
|
|
@@ -6063,7 +6063,7 @@ function X1(e) {
|
|
|
6063
6063
|
};
|
|
6064
6064
|
}
|
|
6065
6065
|
const dd = 25;
|
|
6066
|
-
function
|
|
6066
|
+
function Jy(e, r) {
|
|
6067
6067
|
const t = vr(e), n = en(e), o = t.visualViewport;
|
|
6068
6068
|
let a = n.clientWidth, s = n.clientHeight, i = 0, c = 0;
|
|
6069
6069
|
if (o) {
|
|
@@ -6096,9 +6096,9 @@ function tb(e, r) {
|
|
|
6096
6096
|
function fd(e, r, t) {
|
|
6097
6097
|
let n;
|
|
6098
6098
|
if (r === "viewport")
|
|
6099
|
-
n =
|
|
6099
|
+
n = Jy(e, t);
|
|
6100
6100
|
else if (r === "document")
|
|
6101
|
-
n =
|
|
6101
|
+
n = Xy(en(e));
|
|
6102
6102
|
else if (nr(r))
|
|
6103
6103
|
n = tb(r, t);
|
|
6104
6104
|
else {
|
|
@@ -6206,9 +6206,9 @@ function Eh(e, r) {
|
|
|
6206
6206
|
return t;
|
|
6207
6207
|
}
|
|
6208
6208
|
let n = pd(e, r);
|
|
6209
|
-
for (; n &&
|
|
6209
|
+
for (; n && gy(n) && uc(n); )
|
|
6210
6210
|
n = pd(n, r);
|
|
6211
|
-
return n && vo(n) && uc(n) && !Sl(n) ? t : n ||
|
|
6211
|
+
return n && vo(n) && uc(n) && !Sl(n) ? t : n || wy(e) || t;
|
|
6212
6212
|
}
|
|
6213
6213
|
const sb = async function(e) {
|
|
6214
6214
|
const r = this.getOffsetParent || Eh, t = this.getDimensions, n = await t(e.floating);
|
|
@@ -6226,12 +6226,12 @@ function ib(e) {
|
|
|
6226
6226
|
return Dr(e).direction === "rtl";
|
|
6227
6227
|
}
|
|
6228
6228
|
const cb = {
|
|
6229
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
6229
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ky,
|
|
6230
6230
|
getDocumentElement: en,
|
|
6231
6231
|
getClippingRect: nb,
|
|
6232
6232
|
getOffsetParent: Eh,
|
|
6233
6233
|
getElementRects: sb,
|
|
6234
|
-
getClientRects:
|
|
6234
|
+
getClientRects: Qy,
|
|
6235
6235
|
getDimensions: ob,
|
|
6236
6236
|
getScale: co,
|
|
6237
6237
|
isElement: nr,
|
|
@@ -6322,7 +6322,7 @@ function ub(e, r, t, n) {
|
|
|
6322
6322
|
}), f?.(), (b = m) == null || b.disconnect(), m = null, c && cancelAnimationFrame(g);
|
|
6323
6323
|
};
|
|
6324
6324
|
}
|
|
6325
|
-
const db =
|
|
6325
|
+
const db = qy, fb = Uy, hd = Wy, pb = (e, r, t) => {
|
|
6326
6326
|
const n = /* @__PURE__ */ new Map(), o = {
|
|
6327
6327
|
platform: cb,
|
|
6328
6328
|
...t
|
|
@@ -6330,7 +6330,7 @@ const db = q1, fb = U1, hd = W1, pb = (e, r, t) => {
|
|
|
6330
6330
|
...o.platform,
|
|
6331
6331
|
_c: n
|
|
6332
6332
|
};
|
|
6333
|
-
return
|
|
6333
|
+
return By(e, r, {
|
|
6334
6334
|
...o,
|
|
6335
6335
|
platform: a
|
|
6336
6336
|
});
|
|
@@ -6407,7 +6407,7 @@ function gb(e) {
|
|
|
6407
6407
|
ce !== F.current && (F.current = ce, p(ce));
|
|
6408
6408
|
}, []), w = G.useCallback((ce) => {
|
|
6409
6409
|
ce !== S.current && (S.current = ce, b(ce));
|
|
6410
|
-
}, []), _ = a || g, y = s || v, F = G.useRef(null), S = G.useRef(null), D = G.useRef(u), T = c != null, k = dc(c),
|
|
6410
|
+
}, []), _ = a || g, y = s || v, F = G.useRef(null), S = G.useRef(null), D = G.useRef(u), T = c != null, k = dc(c), U = dc(o), H = dc(d), W = G.useCallback(() => {
|
|
6411
6411
|
if (!F.current || !S.current)
|
|
6412
6412
|
return;
|
|
6413
6413
|
const ce = {
|
|
@@ -6415,20 +6415,20 @@ function gb(e) {
|
|
|
6415
6415
|
strategy: t,
|
|
6416
6416
|
middleware: h
|
|
6417
6417
|
};
|
|
6418
|
-
|
|
6418
|
+
U.current && (ce.platform = U.current), pb(F.current, S.current, ce).then((fe) => {
|
|
6419
6419
|
const N = {
|
|
6420
6420
|
...fe,
|
|
6421
6421
|
// The floating element's position may be recomputed while it's closed
|
|
6422
6422
|
// but still mounted (such as when transitioning out). To ensure
|
|
6423
6423
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
6424
6424
|
// setting it to `true` when `open === false` (must be specified).
|
|
6425
|
-
isPositioned:
|
|
6425
|
+
isPositioned: H.current !== !1
|
|
6426
6426
|
};
|
|
6427
6427
|
Z.current && !Gs(D.current, N) && (D.current = N, Um.flushSync(() => {
|
|
6428
6428
|
f(N);
|
|
6429
6429
|
}));
|
|
6430
6430
|
});
|
|
6431
|
-
}, [h, r, t,
|
|
6431
|
+
}, [h, r, t, U, H]);
|
|
6432
6432
|
ks(() => {
|
|
6433
6433
|
d === !1 && D.current.isPositioned && (D.current.isPositioned = !1, f((ce) => ({
|
|
6434
6434
|
...ce,
|
|
@@ -6585,20 +6585,20 @@ const kb = /* @__PURE__ */ G.forwardRef(function(r, t) {
|
|
|
6585
6585
|
const [_, y] = n.split("-"), F = _ === "top" || _ === "bottom";
|
|
6586
6586
|
let S = f;
|
|
6587
6587
|
(F && s != null && s.x || !F && s != null && s.y) && (S = null);
|
|
6588
|
-
const D = u * 2, T = D / 2, k = i / 2 * (d / -8 + 1),
|
|
6588
|
+
const D = u * 2, T = D / 2, k = i / 2 * (d / -8 + 1), U = c / 2 * d / 4, H = !!m, W = S && y === "end" ? "bottom" : "top";
|
|
6589
6589
|
let Z = S && y === "end" ? "right" : "left";
|
|
6590
6590
|
S && x && (Z = y === "end" ? "left" : "right");
|
|
6591
|
-
const ie = a?.x != null ? S || a.x : "", Y = a?.y != null ? S || a.y : "", z = m || "M0,0" + (" H" + i) + (" L" + (i - k) + "," + (c -
|
|
6592
|
-
top:
|
|
6593
|
-
left:
|
|
6594
|
-
bottom:
|
|
6595
|
-
right:
|
|
6591
|
+
const ie = a?.x != null ? S || a.x : "", Y = a?.y != null ? S || a.y : "", z = m || "M0,0" + (" H" + i) + (" L" + (i - k) + "," + (c - U)) + (" Q" + i / 2 + "," + c + " " + k + "," + (c - U)) + " Z", ce = {
|
|
6592
|
+
top: H ? "rotate(180deg)" : "",
|
|
6593
|
+
left: H ? "rotate(90deg)" : "rotate(-90deg)",
|
|
6594
|
+
bottom: H ? "" : "rotate(180deg)",
|
|
6595
|
+
right: H ? "rotate(-90deg)" : "rotate(90deg)"
|
|
6596
6596
|
}[_];
|
|
6597
6597
|
return /* @__PURE__ */ l.jsxs("svg", {
|
|
6598
6598
|
...v,
|
|
6599
6599
|
"aria-hidden": !0,
|
|
6600
6600
|
ref: t,
|
|
6601
|
-
width:
|
|
6601
|
+
width: H ? i : i + D,
|
|
6602
6602
|
height: i,
|
|
6603
6603
|
viewBox: "0 0 " + i + " " + (c > i ? c : i),
|
|
6604
6604
|
style: {
|
|
@@ -6606,7 +6606,7 @@ const kb = /* @__PURE__ */ G.forwardRef(function(r, t) {
|
|
|
6606
6606
|
pointerEvents: "none",
|
|
6607
6607
|
[Z]: ie,
|
|
6608
6608
|
[W]: Y,
|
|
6609
|
-
[_]: F ||
|
|
6609
|
+
[_]: F || H ? "100%" : "calc(100% - " + D / 2 + "px)",
|
|
6610
6610
|
transform: [ce, g].filter((fe) => !!fe).join(" "),
|
|
6611
6611
|
...p
|
|
6612
6612
|
},
|
|
@@ -6623,7 +6623,7 @@ const kb = /* @__PURE__ */ G.forwardRef(function(r, t) {
|
|
|
6623
6623
|
id: b,
|
|
6624
6624
|
children: /* @__PURE__ */ l.jsx("rect", {
|
|
6625
6625
|
x: -T,
|
|
6626
|
-
y: T * (
|
|
6626
|
+
y: T * (H ? -1 : 1),
|
|
6627
6627
|
width: i + D,
|
|
6628
6628
|
height: i
|
|
6629
6629
|
})
|
|
@@ -6660,7 +6660,7 @@ function Ib(e) {
|
|
|
6660
6660
|
const m = n.reference;
|
|
6661
6661
|
m && !nr(m) && Db("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
6662
6662
|
}
|
|
6663
|
-
const [c, d] = G.useState(n.reference), u =
|
|
6663
|
+
const [c, d] = G.useState(n.reference), u = Ly((m, g, p) => {
|
|
6664
6664
|
a.current.openEvent = m ? g : void 0, s.emit("openchange", {
|
|
6665
6665
|
open: m,
|
|
6666
6666
|
event: g,
|
|
@@ -7700,43 +7700,43 @@ var cx = (
|
|
|
7700
7700
|
var s, i = t.props, c = i.selected, d = i.preSelection, u = i.setPreSelection, f = i.minDate, h = i.maxDate, m = i.showFourColumnMonthYearPicker, g = i.showTwoColumnMonthYearPicker;
|
|
7701
7701
|
if (d) {
|
|
7702
7702
|
var p = Md(m, g), v = t.getVerticalOffset(p), b = (s = mc[p]) === null || s === void 0 ? void 0 : s.grid, x = function(S, D, T) {
|
|
7703
|
-
var k,
|
|
7703
|
+
var k, U, H = D, W = T;
|
|
7704
7704
|
switch (S) {
|
|
7705
7705
|
case ve.ArrowRight:
|
|
7706
|
-
|
|
7706
|
+
H = Dn(D, us), W = T === 11 ? 0 : T + us;
|
|
7707
7707
|
break;
|
|
7708
7708
|
case ve.ArrowLeft:
|
|
7709
|
-
|
|
7709
|
+
H = Vn(D, us), W = T === 0 ? 11 : T - us;
|
|
7710
7710
|
break;
|
|
7711
7711
|
case ve.ArrowUp:
|
|
7712
|
-
|
|
7712
|
+
H = Vn(D, v), W = !((k = b?.[0]) === null || k === void 0) && k.includes(T) ? T + 12 - v : T - v;
|
|
7713
7713
|
break;
|
|
7714
7714
|
case ve.ArrowDown:
|
|
7715
|
-
|
|
7715
|
+
H = Dn(D, v), W = !((U = b?.[b.length - 1]) === null || U === void 0) && U.includes(T) ? T - 12 + v : T + v;
|
|
7716
7716
|
break;
|
|
7717
7717
|
}
|
|
7718
|
-
return { newCalculatedDate:
|
|
7718
|
+
return { newCalculatedDate: H, newCalculatedMonth: W };
|
|
7719
7719
|
}, w = function(S, D, T) {
|
|
7720
|
-
for (var k = 40,
|
|
7720
|
+
for (var k = 40, U = S, H = !1, W = 0, Z = x(U, D, T), ie = Z.newCalculatedDate, Y = Z.newCalculatedMonth; !H; ) {
|
|
7721
7721
|
if (W >= k) {
|
|
7722
7722
|
ie = D, Y = T;
|
|
7723
7723
|
break;
|
|
7724
7724
|
}
|
|
7725
7725
|
if (f && ie < f) {
|
|
7726
|
-
|
|
7727
|
-
var z = x(
|
|
7726
|
+
U = ve.ArrowRight;
|
|
7727
|
+
var z = x(U, ie, Y);
|
|
7728
7728
|
ie = z.newCalculatedDate, Y = z.newCalculatedMonth;
|
|
7729
7729
|
}
|
|
7730
7730
|
if (h && ie > h) {
|
|
7731
|
-
|
|
7732
|
-
var z = x(
|
|
7731
|
+
U = ve.ArrowLeft;
|
|
7732
|
+
var z = x(U, ie, Y);
|
|
7733
7733
|
ie = z.newCalculatedDate, Y = z.newCalculatedMonth;
|
|
7734
7734
|
}
|
|
7735
7735
|
if (qb(ie, t.props)) {
|
|
7736
|
-
var z = x(
|
|
7736
|
+
var z = x(U, ie, Y);
|
|
7737
7737
|
ie = z.newCalculatedDate, Y = z.newCalculatedMonth;
|
|
7738
7738
|
} else
|
|
7739
|
-
|
|
7739
|
+
H = !0;
|
|
7740
7740
|
W++;
|
|
7741
7741
|
}
|
|
7742
7742
|
return { newCalculatedDate: ie, newCalculatedMonth: Y };
|
|
@@ -9112,13 +9112,13 @@ var gc = "Date input not valid.", Rx = (
|
|
|
9112
9112
|
if (m) {
|
|
9113
9113
|
var w = n.props.rangeSeparator, _ = w.trim(), y = x.split(v.includes(_) ? w : _, 2).map(function(W) {
|
|
9114
9114
|
return W.trim();
|
|
9115
|
-
}), F = y[0], S = y[1], D = fc(F ?? "", v, n.props.locale, b), T = D ? fc(S ?? "", v, n.props.locale, b) : null, k = g?.getTime() !== D?.getTime(),
|
|
9116
|
-
if (!k && !
|
|
9115
|
+
}), F = y[0], S = y[1], D = fc(F ?? "", v, n.props.locale, b), T = D ? fc(S ?? "", v, n.props.locale, b) : null, k = g?.getTime() !== D?.getTime(), U = p?.getTime() !== T?.getTime();
|
|
9116
|
+
if (!k && !U || D && Sr(D, n.props) || T && Sr(T, n.props))
|
|
9117
9117
|
return;
|
|
9118
9118
|
(i = (s = n.props).onChange) === null || i === void 0 || i.call(s, [D, T], f);
|
|
9119
9119
|
} else {
|
|
9120
|
-
var
|
|
9121
|
-
(
|
|
9120
|
+
var H = fc(x, v, n.props.locale, b, (c = n.props.selected) !== null && c !== void 0 ? c : void 0);
|
|
9121
|
+
(H || !x) && n.setSelected(H, f, !0);
|
|
9122
9122
|
}
|
|
9123
9123
|
}
|
|
9124
9124
|
}, n.handleSelect = function(o, a, s) {
|
|
@@ -9299,8 +9299,8 @@ var gc = "Date input not valid.", Rx = (
|
|
|
9299
9299
|
return;
|
|
9300
9300
|
}
|
|
9301
9301
|
if (o.preventDefault(), n.setState({ lastPreSelectChange: vc }), w && n.setSelected(k), n.setPreSelection(k), _) {
|
|
9302
|
-
var
|
|
9303
|
-
|
|
9302
|
+
var U = tr(S), H = tr(k), W = Le(S), Z = Le(k);
|
|
9303
|
+
U !== H || W !== Z ? n.setState({ shouldFocusDayInline: !0 }) : n.setState({ shouldFocusDayInline: !1 });
|
|
9304
9304
|
}
|
|
9305
9305
|
}
|
|
9306
9306
|
}, n.onPopperKeyDown = function(o) {
|
|
@@ -9452,7 +9452,7 @@ const Ox = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
9452
9452
|
/* @__PURE__ */ l.jsx("img", { src: zh }),
|
|
9453
9453
|
"Agregar evento"
|
|
9454
9454
|
] })
|
|
9455
|
-
] }), Nx = "
|
|
9455
|
+
] }), Nx = "_sidebarContainer_1jp1a_1", Fx = "_leadsSection_1jp1a_17", $x = "_leadCard_1jp1a_33", zx = "_leadIcon_1jp1a_71", Lx = "_leadDays_1jp1a_81", Bx = "_leadCount_1jp1a_91", Vx = "_eventsSection_1jp1a_103", Wx = "_eventGroup_1jp1a_143", Ux = "_eventGroupDate_1jp1a_151", Hx = "_eventItem_1jp1a_163", Yx = "_eventDetails_1jp1a_195", qx = "_eventTitle_1jp1a_209", Zx = "_eventTime_1jp1a_231", Gx = "_calendarsSection_1jp1a_253", Kx = "_collapsibleHeader_1jp1a_269", Qx = "_headerTitle_1jp1a_297", Xx = "_calendarCount_1jp1a_311", Jx = "_chevronIcon_1jp1a_329", ew = "_collapsed_1jp1a_337", tw = "_collapsibleContent_1jp1a_345", rw = "_hidden_1jp1a_365", nw = "_circularCheckbox_1jp1a_383", ow = "_checkedIcon_1jp1a_401", aw = "_calendarIcon_1jp1a_417", sw = "_syncButton_1jp1a_433", iw = "_eventsContainer_1jp1a_485", cw = "_calendarsList_1jp1a_559", lw = "_calendarItemText_1jp1a_617", uw = "_addEventButton_1jp1a_643", dw = "_customCheckIcon_1jp1a_697", fw = "_uncheckedCircle_1jp1a_713", pw = "_calendarSelectButton_1jp1a_727", hw = "_calendarSelected_1jp1a_779", mw = "_currentUserCalendarTitle_1jp1a_799", gw = "_tabsContainer_1jp1a_835", vw = "_tabButton_1jp1a_855", yw = "_activeTab_1jp1a_891", bw = "_alertBadge_1jp1a_905", _e = {
|
|
9456
9456
|
sidebarContainer: Nx,
|
|
9457
9457
|
leadsSection: Fx,
|
|
9458
9458
|
leadCard: $x,
|
|
@@ -12167,8 +12167,8 @@ const b0 = ol(void 0), xR = ({ config: e, children: r }) => (dt(() => {
|
|
|
12167
12167
|
}
|
|
12168
12168
|
};
|
|
12169
12169
|
return /* @__PURE__ */ l.jsxs("div", { className: "flex", children: [
|
|
12170
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12171
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12170
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.syncButton, onClick: a, children: [
|
|
12171
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.customCheckIcon, children: /* @__PURE__ */ l.jsx("div", { className: _e.uncheckedCircle }) }),
|
|
12172
12172
|
/* @__PURE__ */ l.jsx("img", { src: x0, width: 18 }),
|
|
12173
12173
|
/* @__PURE__ */ l.jsx("span", { children: "Google Calendar" })
|
|
12174
12174
|
] }),
|
|
@@ -12231,8 +12231,8 @@ const b0 = ol(void 0), xR = ({ config: e, children: r }) => (dt(() => {
|
|
|
12231
12231
|
}
|
|
12232
12232
|
};
|
|
12233
12233
|
return /* @__PURE__ */ l.jsxs("div", { className: "flex", children: [
|
|
12234
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12235
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12234
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.syncButton, onClick: a, children: [
|
|
12235
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.customCheckIcon, children: /* @__PURE__ */ l.jsx("div", { className: _e.uncheckedCircle }) }),
|
|
12236
12236
|
/* @__PURE__ */ l.jsx("img", { src: w0, width: 20 }),
|
|
12237
12237
|
/* @__PURE__ */ l.jsx("span", { children: "Outlook" })
|
|
12238
12238
|
] }),
|
|
@@ -12849,10 +12849,10 @@ const YS = {
|
|
|
12849
12849
|
const [n, o] = me(r), [a, s] = me(null);
|
|
12850
12850
|
return dt(() => {
|
|
12851
12851
|
o(r);
|
|
12852
|
-
}, [r]), /* @__PURE__ */ l.jsx(P, { sx: { width: "100%", maxHeight: "600px", overflowY: "auto" }, children: /* @__PURE__ */ l.jsx(Hn, { disablePadding: !0, children: n.length === 0 ? /* @__PURE__ */ l.jsxs("div", { className:
|
|
12853
|
-
/* @__PURE__ */ l.jsx("img", { src: _0, alt: "Todo en orden", className:
|
|
12854
|
-
/* @__PURE__ */ l.jsx("h4", { className:
|
|
12855
|
-
/* @__PURE__ */ l.jsx("p", { className:
|
|
12852
|
+
}, [r]), /* @__PURE__ */ l.jsx(P, { sx: { width: "100%", maxHeight: "600px", overflowY: "auto" }, children: /* @__PURE__ */ l.jsx(Hn, { disablePadding: !0, children: n.length === 0 ? /* @__PURE__ */ l.jsxs("div", { className: _e.emptyStateContainer, children: [
|
|
12853
|
+
/* @__PURE__ */ l.jsx("img", { src: _0, alt: "Todo en orden", className: _e.emptyStateImage }),
|
|
12854
|
+
/* @__PURE__ */ l.jsx("h4", { className: _e.emptyStateTitle, children: "Todo en orden aquí" }),
|
|
12855
|
+
/* @__PURE__ */ l.jsx("p", { className: _e.emptyStateText, children: "Por el momento no tienes invitaciones pendientes." })
|
|
12856
12856
|
] }) : n.map((i) => /* @__PURE__ */ l.jsx(SC, { notificacion: i, onAccept: t }, i?.notificacionID)) }) });
|
|
12857
12857
|
}, EC = ({
|
|
12858
12858
|
onEventClick: e,
|
|
@@ -12903,29 +12903,29 @@ const YS = {
|
|
|
12903
12903
|
b("Error al sincronizar eventos con Outlook Calendar.", { variant: "error" });
|
|
12904
12904
|
} finally {
|
|
12905
12905
|
}
|
|
12906
|
-
}, [
|
|
12907
|
-
|
|
12906
|
+
}, [U, H] = me("events"), W = (z) => {
|
|
12907
|
+
H(z);
|
|
12908
12908
|
}, [Z, ie] = me(!0), Y = () => {
|
|
12909
12909
|
ie((z) => !z);
|
|
12910
12910
|
};
|
|
12911
|
-
return /* @__PURE__ */ l.jsxs("div", { className:
|
|
12912
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12913
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12914
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12915
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12916
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12917
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12911
|
+
return /* @__PURE__ */ l.jsxs("div", { className: _e.sidebarContainer, children: [
|
|
12912
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.leadsSection, children: [
|
|
12913
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.leadCard, children: [
|
|
12914
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.leadIcon, children: /* @__PURE__ */ l.jsx("img", { src: Vd }) }),
|
|
12915
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.leadText, children: [
|
|
12916
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.leadDays, children: "+30 días sin atender" }),
|
|
12917
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.leadCount, children: [
|
|
12918
12918
|
t,
|
|
12919
12919
|
" ",
|
|
12920
12920
|
/* @__PURE__ */ l.jsx("span", { style: { fontSize: 10, fontWeight: "normal" }, children: "leads" })
|
|
12921
12921
|
] })
|
|
12922
12922
|
] })
|
|
12923
12923
|
] }),
|
|
12924
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12925
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12926
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12927
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12928
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12924
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.leadCard, children: [
|
|
12925
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.leadIcon, children: /* @__PURE__ */ l.jsx("img", { src: Vd }) }),
|
|
12926
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.leadText, children: [
|
|
12927
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.leadDays, children: "+90 días sin atender" }),
|
|
12928
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.leadCount, children: [
|
|
12929
12929
|
n,
|
|
12930
12930
|
" ",
|
|
12931
12931
|
/* @__PURE__ */ l.jsx("span", { style: { fontSize: 10, fontWeight: "normal" }, children: "leads" })
|
|
@@ -12933,23 +12933,23 @@ const YS = {
|
|
|
12933
12933
|
] })
|
|
12934
12934
|
] })
|
|
12935
12935
|
] }),
|
|
12936
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12937
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12938
|
-
/* @__PURE__ */ l.jsx("button", { className: `${
|
|
12939
|
-
/* @__PURE__ */ l.jsxs("button", { className: `${
|
|
12936
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.eventsSection, children: [
|
|
12937
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.tabsContainer, children: [
|
|
12938
|
+
/* @__PURE__ */ l.jsx("button", { className: `${_e.tabButton} ${U === "events" ? _e.activeTab : ""}`, onClick: () => W("events"), children: "Eventos" }),
|
|
12939
|
+
/* @__PURE__ */ l.jsxs("button", { className: `${_e.tabButton} ${U === "alerts" ? _e.activeTab : ""}`, onClick: () => W("alerts"), children: [
|
|
12940
12940
|
"Alertas",
|
|
12941
|
-
m > 0 && /* @__PURE__ */ l.jsx("span", { className:
|
|
12941
|
+
m > 0 && /* @__PURE__ */ l.jsx("span", { className: _e.alertBadge, children: m > 99 ? "99+" : m })
|
|
12942
12942
|
] })
|
|
12943
12943
|
] }),
|
|
12944
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12945
|
-
|
|
12946
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12944
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.eventsContainer, children: [
|
|
12945
|
+
U === "events" && /* @__PURE__ */ l.jsx(l.Fragment, { children: Object.keys(w).length > 0 ? Object.entries(w).map(([z, ce]) => /* @__PURE__ */ l.jsxs("div", { className: `${_e.eventGroup}`, children: [
|
|
12946
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.eventGroupDate, children: [
|
|
12947
12947
|
/* @__PURE__ */ l.jsx("img", { src: r_, width: 15 }),
|
|
12948
12948
|
" ",
|
|
12949
12949
|
z
|
|
12950
12950
|
] }),
|
|
12951
12951
|
ce.map((fe) => {
|
|
12952
|
-
const N = Re(fe.color || "#ffcc00"), Q = N.toString(), De = N.clone().darken(15).toString(),
|
|
12952
|
+
const N = Re(fe.color || "#ffcc00"), Q = N.toString(), De = N.clone().darken(15).toString(), we = new Intl.DateTimeFormat("es-ES", {
|
|
12953
12953
|
hour: "numeric",
|
|
12954
12954
|
minute: "2-digit",
|
|
12955
12955
|
hour12: !0
|
|
@@ -12957,7 +12957,7 @@ const YS = {
|
|
|
12957
12957
|
return /* @__PURE__ */ l.jsxs(
|
|
12958
12958
|
"div",
|
|
12959
12959
|
{
|
|
12960
|
-
className:
|
|
12960
|
+
className: _e.eventItem,
|
|
12961
12961
|
style: {
|
|
12962
12962
|
backgroundColor: Q,
|
|
12963
12963
|
borderLeft: `4px solid ${De}`,
|
|
@@ -12971,13 +12971,13 @@ const YS = {
|
|
|
12971
12971
|
},
|
|
12972
12972
|
onClick: () => e(fe),
|
|
12973
12973
|
children: [
|
|
12974
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
12975
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12974
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.eventDetails, style: { flex: 1 }, children: [
|
|
12975
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.eventTitle, style: { fontWeight: "500", fontSize: "12px", color: "#333" }, children: fe.titulo.length > 32 ? `${fe.titulo.substring(0, 32)}...` : fe.titulo }),
|
|
12976
12976
|
fe.nombreAnfitrion && /* @__PURE__ */ l.jsxs("div", { style: { display: "flex", alignItems: "center", marginTop: "4px", color: "#555" }, children: [
|
|
12977
12977
|
/* @__PURE__ */ l.jsx("img", { src: Uh, width: 16, style: { marginRight: "6px", opacity: 0.7 } }),
|
|
12978
12978
|
/* @__PURE__ */ l.jsx("span", { style: { fontSize: "13px" }, children: fe.nombreAnfitrion })
|
|
12979
12979
|
] }),
|
|
12980
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
12980
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.eventTime, style: { fontSize: "12px", marginTop: "4px", opacity: 0.7 }, children: `${we.format(fe.fechaInicio).toLowerCase()} - ${we.format(fe.fechaFin).toLowerCase()}` })
|
|
12981
12981
|
] }),
|
|
12982
12982
|
fe.link && /* @__PURE__ */ l.jsx("a", { onClick: (Ee) => Ee.stopPropagation(), href: fe.link, target: "_blank", rel: "noopener noreferrer", style: { display: "flex", alignItems: "center", padding: "4px" }, children: /* @__PURE__ */ l.jsx("img", { src: n_, alt: "Video", width: 20, style: { opacity: 0.8 } }) })
|
|
12983
12983
|
]
|
|
@@ -12985,45 +12985,45 @@ const YS = {
|
|
|
12985
12985
|
fe.eventoID
|
|
12986
12986
|
);
|
|
12987
12987
|
})
|
|
12988
|
-
] }, z)) : /* @__PURE__ */ l.jsxs("div", { className:
|
|
12989
|
-
/* @__PURE__ */ l.jsx("img", { src: _0, alt: "Todo en orden", className:
|
|
12990
|
-
/* @__PURE__ */ l.jsx("h4", { className:
|
|
12991
|
-
/* @__PURE__ */ l.jsx("p", { className:
|
|
12992
|
-
/* @__PURE__ */ l.jsxs("button", { className:
|
|
12988
|
+
] }, z)) : /* @__PURE__ */ l.jsxs("div", { className: _e.emptyStateContainer, children: [
|
|
12989
|
+
/* @__PURE__ */ l.jsx("img", { src: _0, alt: "Todo en orden", className: _e.emptyStateImage }),
|
|
12990
|
+
/* @__PURE__ */ l.jsx("h4", { className: _e.emptyStateTitle, children: "Tu agenda está despejada" }),
|
|
12991
|
+
/* @__PURE__ */ l.jsx("p", { className: _e.emptyStateText, children: "Parece que no tienes ningún evento en tu calendario. ¿Te gustaría añadir uno? " }),
|
|
12992
|
+
/* @__PURE__ */ l.jsxs("button", { className: _e.addEventButton, onClick: s, children: [
|
|
12993
12993
|
/* @__PURE__ */ l.jsx("img", { src: zh }),
|
|
12994
12994
|
"Agregar evento"
|
|
12995
12995
|
] })
|
|
12996
12996
|
] }) }),
|
|
12997
|
-
|
|
12997
|
+
U === "alerts" && /* @__PURE__ */ l.jsx(P, { children: /* @__PURE__ */ l.jsx(CC, { userId: a, notifications: h, onAceppInvitacion: g }) })
|
|
12998
12998
|
] })
|
|
12999
12999
|
] }),
|
|
13000
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
13001
|
-
/* @__PURE__ */ l.jsxs("button", { onClick: F, className:
|
|
13002
|
-
/* @__PURE__ */ l.jsxs("div", { className:
|
|
13000
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.calendarsSection, children: [
|
|
13001
|
+
/* @__PURE__ */ l.jsxs("button", { onClick: F, className: _e.collapsibleHeader, children: [
|
|
13002
|
+
/* @__PURE__ */ l.jsxs("div", { className: _e.headerTitle, children: [
|
|
13003
13003
|
/* @__PURE__ */ l.jsx("span", { style: { fontSize: "14px" }, children: "Calendarios" }),
|
|
13004
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
13004
|
+
/* @__PURE__ */ l.jsx("span", { className: _e.calendarCount, children: "1" })
|
|
13005
13005
|
] }),
|
|
13006
|
-
/* @__PURE__ */ l.jsx(Aw, { className: `${
|
|
13006
|
+
/* @__PURE__ */ l.jsx(Aw, { className: `${_e.chevronIcon} ${_ ? _e.collapsed : ""}` })
|
|
13007
13007
|
] }),
|
|
13008
|
-
/* @__PURE__ */ l.jsxs("div", { className: `${
|
|
13009
|
-
/* @__PURE__ */ l.jsxs("button", { className: `${
|
|
13010
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
13011
|
-
/* @__PURE__ */ l.jsx(Dw, { size: 16, className:
|
|
13012
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
13008
|
+
/* @__PURE__ */ l.jsxs("div", { className: `${_e.collapsibleContent} ${_ ? _e.hidden : ""}`, children: [
|
|
13009
|
+
/* @__PURE__ */ l.jsxs("button", { className: `${_e.calendarSelectButton} ${Z ? _e.calendarSelected : ""}`, onClick: Y, style: { "--calendar-color": "#1976D2" }, children: [
|
|
13010
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.customCheckIcon, children: /* @__PURE__ */ l.jsx("div", { className: _e.circularCheckbox, children: /* @__PURE__ */ l.jsx(yc, { size: 16, className: _e.checkedIcon }) }) }),
|
|
13011
|
+
/* @__PURE__ */ l.jsx(Dw, { size: 16, className: _e.calendarIcon }),
|
|
13012
|
+
/* @__PURE__ */ l.jsx("span", { className: _e.calendarItemText, children: "Mi calendario" })
|
|
13013
13013
|
] }),
|
|
13014
|
-
v.userEmail ? /* @__PURE__ */ l.jsxs("div", { className:
|
|
13015
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
13014
|
+
v.userEmail ? /* @__PURE__ */ l.jsxs("div", { className: _e.syncButton, onClick: k, children: [
|
|
13015
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.circularCheckbox, children: /* @__PURE__ */ l.jsx(yc, { size: 16, className: _e.checkedIcon }) }),
|
|
13016
13016
|
/* @__PURE__ */ l.jsx("img", { src: w0, width: 20 }),
|
|
13017
13017
|
/* @__PURE__ */ l.jsx("span", { style: { fontSize: "14px" }, children: "Sincronizar Outlook" })
|
|
13018
13018
|
] }) : /* @__PURE__ */ l.jsx(NS, { disID: o, usrID: a }),
|
|
13019
|
-
p?.userEmail ? /* @__PURE__ */ l.jsxs("div", { className:
|
|
13020
|
-
/* @__PURE__ */ l.jsx("div", { className:
|
|
13019
|
+
p?.userEmail ? /* @__PURE__ */ l.jsxs("div", { className: _e.syncButton, onClick: T, children: [
|
|
13020
|
+
/* @__PURE__ */ l.jsx("div", { className: _e.circularCheckbox, children: /* @__PURE__ */ l.jsx(yc, { size: 16, className: _e.checkedIcon }) }),
|
|
13021
13021
|
/* @__PURE__ */ l.jsx("img", { src: x0, width: 18 }),
|
|
13022
13022
|
/* @__PURE__ */ l.jsx("span", { style: { fontSize: "14px" }, children: "Sincronizar Google" })
|
|
13023
13023
|
] }) : /* @__PURE__ */ l.jsx(PS, { disID: o, usrID: a }),
|
|
13024
13024
|
v?.userEmail && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
13025
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
13026
|
-
d ? /* @__PURE__ */ l.jsx(js, { size: 24 }) : c.length > 0 ? /* @__PURE__ */ l.jsx(Hn, { dense: !0, className:
|
|
13025
|
+
/* @__PURE__ */ l.jsx("span", { className: _e.currentUserCalendarTitle, style: { marginTop: "10px" }, children: v?.userEmail }),
|
|
13026
|
+
d ? /* @__PURE__ */ l.jsx(js, { size: 24 }) : c.length > 0 ? /* @__PURE__ */ l.jsx(Hn, { dense: !0, className: _e.calendarsList, children: c.map((z) => /* @__PURE__ */ l.jsx(
|
|
13027
13027
|
po,
|
|
13028
13028
|
{
|
|
13029
13029
|
secondaryAction: /* @__PURE__ */ l.jsx(
|
|
@@ -13041,14 +13041,14 @@ const YS = {
|
|
|
13041
13041
|
}
|
|
13042
13042
|
),
|
|
13043
13043
|
disablePadding: !0,
|
|
13044
|
-
children: /* @__PURE__ */ l.jsx(Ps, { primary: z.summary.length > 25 ? `${z.summary.substring(0, 25)}...` : z.summary, className:
|
|
13044
|
+
children: /* @__PURE__ */ l.jsx(Ps, { primary: z.summary.length > 25 ? `${z.summary.substring(0, 25)}...` : z.summary, className: _e.calendarItemText })
|
|
13045
13045
|
},
|
|
13046
13046
|
z.id
|
|
13047
13047
|
)) }) : /* @__PURE__ */ l.jsx("p", { style: { fontSize: "12px" }, children: "No se encontraron calendarios." })
|
|
13048
13048
|
] }),
|
|
13049
13049
|
p?.userEmail && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
13050
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
13051
|
-
d ? /* @__PURE__ */ l.jsx(js, { size: 24 }) : i.length > 0 ? /* @__PURE__ */ l.jsx(Hn, { dense: !0, className:
|
|
13050
|
+
/* @__PURE__ */ l.jsx("span", { className: _e.currentUserCalendarTitle, style: { marginTop: "10px" }, children: p?.userEmail }),
|
|
13051
|
+
d ? /* @__PURE__ */ l.jsx(js, { size: 24 }) : i.length > 0 ? /* @__PURE__ */ l.jsx(Hn, { dense: !0, className: _e.calendarsList, children: i.map((z) => /* @__PURE__ */ l.jsx(
|
|
13052
13052
|
po,
|
|
13053
13053
|
{
|
|
13054
13054
|
secondaryAction: /* @__PURE__ */ l.jsx(
|
|
@@ -13066,7 +13066,7 @@ const YS = {
|
|
|
13066
13066
|
}
|
|
13067
13067
|
),
|
|
13068
13068
|
disablePadding: !0,
|
|
13069
|
-
children: /* @__PURE__ */ l.jsx(Ps, { primary: z.summary.length > 25 ? `${z.summary.substring(0, 25)}...` : z.summary, className:
|
|
13069
|
+
children: /* @__PURE__ */ l.jsx(Ps, { primary: z.summary.length > 25 ? `${z.summary.substring(0, 25)}...` : z.summary, className: _e.calendarItemText })
|
|
13070
13070
|
},
|
|
13071
13071
|
z.id
|
|
13072
13072
|
)) }) : /* @__PURE__ */ l.jsx("p", { style: { fontSize: "12px" }, children: "No se encontraron calendarios." })
|
|
@@ -13986,20 +13986,20 @@ var to = (e) => Ft(e) && !ni(e) ? e : {
|
|
|
13986
13986
|
const { ref: s, refs: i, required: c, maxLength: d, minLength: u, min: f, max: h, pattern: m, validate: g, name: p, valueAsNumber: v, mount: b } = e._f, x = he(t, p);
|
|
13987
13987
|
if (!b || r.has(p))
|
|
13988
13988
|
return {};
|
|
13989
|
-
const w = i ? i[0] : s, _ = (
|
|
13990
|
-
o && w.reportValidity && (w.setCustomValidity(hr(
|
|
13991
|
-
}, y = {}, F = Yl(s), S = qa(s), D = F || S, T = (v || Hl(s)) && Nt(s.value) && Nt(x) || ti(s) && s.value === "" || x === "" || Array.isArray(x) && !x.length, k = Ul.bind(null, p, n, y),
|
|
13992
|
-
const z =
|
|
13989
|
+
const w = i ? i[0] : s, _ = (H) => {
|
|
13990
|
+
o && w.reportValidity && (w.setCustomValidity(hr(H) ? "" : H || ""), w.reportValidity());
|
|
13991
|
+
}, y = {}, F = Yl(s), S = qa(s), D = F || S, T = (v || Hl(s)) && Nt(s.value) && Nt(x) || ti(s) && s.value === "" || x === "" || Array.isArray(x) && !x.length, k = Ul.bind(null, p, n, y), U = (H, W, Z, ie = rn.maxLength, Y = rn.minLength) => {
|
|
13992
|
+
const z = H ? W : Z;
|
|
13993
13993
|
y[p] = {
|
|
13994
|
-
type:
|
|
13994
|
+
type: H ? ie : Y,
|
|
13995
13995
|
message: z,
|
|
13996
13996
|
ref: s,
|
|
13997
|
-
...k(
|
|
13997
|
+
...k(H ? ie : Y, z)
|
|
13998
13998
|
};
|
|
13999
13999
|
};
|
|
14000
14000
|
if (a ? !Array.isArray(x) || !x.length : c && (!D && (T || sr(x)) || hr(x) && !x || S && !j0(i).isValid || F && !N0(i).isValid)) {
|
|
14001
|
-
const { value:
|
|
14002
|
-
if (
|
|
14001
|
+
const { value: H, message: W } = Is(c) ? { value: !!c, message: c } : to(c);
|
|
14002
|
+
if (H && (y[p] = {
|
|
14003
14003
|
type: rn.required,
|
|
14004
14004
|
message: W,
|
|
14005
14005
|
ref: w,
|
|
@@ -14008,26 +14008,26 @@ var to = (e) => Ft(e) && !ni(e) ? e : {
|
|
|
14008
14008
|
return _(W), y;
|
|
14009
14009
|
}
|
|
14010
14010
|
if (!T && (!sr(f) || !sr(h))) {
|
|
14011
|
-
let
|
|
14011
|
+
let H, W;
|
|
14012
14012
|
const Z = to(h), ie = to(f);
|
|
14013
14013
|
if (!sr(x) && !isNaN(x)) {
|
|
14014
14014
|
const Y = s.valueAsNumber || x && +x;
|
|
14015
|
-
sr(Z.value) || (
|
|
14015
|
+
sr(Z.value) || (H = Y > Z.value), sr(ie.value) || (W = Y < ie.value);
|
|
14016
14016
|
} else {
|
|
14017
14017
|
const Y = s.valueAsDate || new Date(x), z = (N) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + N), ce = s.type == "time", fe = s.type == "week";
|
|
14018
|
-
Gr(Z.value) && x && (
|
|
14018
|
+
Gr(Z.value) && x && (H = ce ? z(x) > z(Z.value) : fe ? x > Z.value : Y > new Date(Z.value)), Gr(ie.value) && x && (W = ce ? z(x) < z(ie.value) : fe ? x < ie.value : Y < new Date(ie.value));
|
|
14019
14019
|
}
|
|
14020
|
-
if ((
|
|
14020
|
+
if ((H || W) && (U(!!H, Z.message, ie.message, rn.max, rn.min), !n))
|
|
14021
14021
|
return _(y[p].message), y;
|
|
14022
14022
|
}
|
|
14023
14023
|
if ((d || u) && !T && (Gr(x) || a && Array.isArray(x))) {
|
|
14024
|
-
const
|
|
14025
|
-
if ((Z || ie) && (
|
|
14024
|
+
const H = to(d), W = to(u), Z = !sr(H.value) && x.length > +H.value, ie = !sr(W.value) && x.length < +W.value;
|
|
14025
|
+
if ((Z || ie) && (U(Z, H.message, W.message), !n))
|
|
14026
14026
|
return _(y[p].message), y;
|
|
14027
14027
|
}
|
|
14028
14028
|
if (m && !T && Gr(x)) {
|
|
14029
|
-
const { value:
|
|
14030
|
-
if (ni(
|
|
14029
|
+
const { value: H, message: W } = to(m);
|
|
14030
|
+
if (ni(H) && !x.match(H) && (y[p] = {
|
|
14031
14031
|
type: rn.pattern,
|
|
14032
14032
|
message: W,
|
|
14033
14033
|
ref: s,
|
|
@@ -14037,26 +14037,26 @@ var to = (e) => Ft(e) && !ni(e) ? e : {
|
|
|
14037
14037
|
}
|
|
14038
14038
|
if (g) {
|
|
14039
14039
|
if (Nr(g)) {
|
|
14040
|
-
const
|
|
14040
|
+
const H = await g(x, t), W = xf(H, w);
|
|
14041
14041
|
if (W && (y[p] = {
|
|
14042
14042
|
...W,
|
|
14043
14043
|
...k(rn.validate, W.message)
|
|
14044
14044
|
}, !n))
|
|
14045
14045
|
return _(W.message), y;
|
|
14046
14046
|
} else if (Ft(g)) {
|
|
14047
|
-
let
|
|
14047
|
+
let H = {};
|
|
14048
14048
|
for (const W in g) {
|
|
14049
|
-
if (!ir(
|
|
14049
|
+
if (!ir(H) && !n)
|
|
14050
14050
|
break;
|
|
14051
14051
|
const Z = xf(await g[W](x, t), w, W);
|
|
14052
|
-
Z && (
|
|
14052
|
+
Z && (H = {
|
|
14053
14053
|
...Z,
|
|
14054
14054
|
...k(W, Z.message)
|
|
14055
|
-
}, _(Z.message), n && (y[p] =
|
|
14055
|
+
}, _(Z.message), n && (y[p] = H));
|
|
14056
14056
|
}
|
|
14057
|
-
if (!ir(
|
|
14057
|
+
if (!ir(H) && (y[p] = {
|
|
14058
14058
|
ref: w,
|
|
14059
|
-
...
|
|
14059
|
+
...H
|
|
14060
14060
|
}, !n))
|
|
14061
14061
|
return y;
|
|
14062
14062
|
}
|
|
@@ -14145,7 +14145,7 @@ function yE(e = {}) {
|
|
|
14145
14145
|
}
|
|
14146
14146
|
(u.dirtyFields || f.dirtyFields) && (t.dirtyFields = qo(o, a)), h.state.next({
|
|
14147
14147
|
name: C,
|
|
14148
|
-
isDirty:
|
|
14148
|
+
isDirty: U(C, R),
|
|
14149
14149
|
dirtyFields: t.dirtyFields,
|
|
14150
14150
|
errors: t.errors,
|
|
14151
14151
|
isValid: t.isValid
|
|
@@ -14174,7 +14174,7 @@ function yE(e = {}) {
|
|
|
14174
14174
|
};
|
|
14175
14175
|
if (!r.disabled) {
|
|
14176
14176
|
if (!$ || oe) {
|
|
14177
|
-
(u.isDirty || f.isDirty) && (J = t.isDirty, t.isDirty = Se.isDirty =
|
|
14177
|
+
(u.isDirty || f.isDirty) && (J = t.isDirty, t.isDirty = Se.isDirty = U(), M = J !== Se.isDirty);
|
|
14178
14178
|
const Me = nn(he(o, C), R);
|
|
14179
14179
|
J = !!he(t.dirtyFields, C), Me ? Bt(t.dirtyFields, C) : ct(t.dirtyFields, C, !0), Se.dirtyFields = t.dirtyFields, M = M || (u.dirtyFields || f.dirtyFields) && J !== !Me;
|
|
14180
14180
|
}
|
|
@@ -14238,7 +14238,7 @@ function yE(e = {}) {
|
|
|
14238
14238
|
R && (R._f.refs ? R._f.refs.every(($) => !Sc($)) : !Sc(R._f.ref)) && X(C);
|
|
14239
14239
|
}
|
|
14240
14240
|
i.unMount = /* @__PURE__ */ new Set();
|
|
14241
|
-
},
|
|
14241
|
+
}, U = (C, R) => !r.disabled && (C && R && ct(a, C, R), !nn(N(), o)), H = (C, R, $) => R0(C, i, {
|
|
14242
14242
|
...s.mount ? a : Nt(R) ? o : Gr(C) ? { [C]: R } : R
|
|
14243
14243
|
}, $, R), W = (C) => zl(he(s.mount ? a : o, C, r.shouldUnregister ? he(o, C, []) : [])), Z = (C, R, $ = {}) => {
|
|
14244
14244
|
const oe = he(n, C);
|
|
@@ -14268,7 +14268,7 @@ function yE(e = {}) {
|
|
|
14268
14268
|
}), (u.isDirty || u.dirtyFields || f.isDirty || f.dirtyFields) && $.shouldDirty && h.state.next({
|
|
14269
14269
|
name: C,
|
|
14270
14270
|
dirtyFields: qo(o, a),
|
|
14271
|
-
isDirty:
|
|
14271
|
+
isDirty: U(C, M)
|
|
14272
14272
|
})) : oe && !oe._f && !sr(M) ? ie(C, M, $) : Z(C, M, $), yf(C, i) && h.state.next({ ...t, name: C }), h.state.next({
|
|
14273
14273
|
name: s.mount ? C : void 0,
|
|
14274
14274
|
values: Yt(a)
|
|
@@ -14334,7 +14334,7 @@ function yE(e = {}) {
|
|
|
14334
14334
|
C && ba(C).forEach((R) => Bt(t.errors, R)), h.state.next({
|
|
14335
14335
|
errors: C ? t.errors : {}
|
|
14336
14336
|
});
|
|
14337
|
-
},
|
|
14337
|
+
}, we = (C, R, $) => {
|
|
14338
14338
|
const oe = (he(n, C, { _f: {} })._f || {}).ref, se = he(t.errors, C) || {}, { ref: M, message: J, type: Se, ...Me } = se;
|
|
14339
14339
|
ct(t.errors, C, {
|
|
14340
14340
|
...Me,
|
|
@@ -14346,8 +14346,8 @@ function yE(e = {}) {
|
|
|
14346
14346
|
isValid: !1
|
|
14347
14347
|
}), $ && $.shouldFocus && oe && oe.focus && oe.focus();
|
|
14348
14348
|
}, Ee = (C, R) => Nr(C) ? h.state.subscribe({
|
|
14349
|
-
next: ($) => "values" in $ && C(
|
|
14350
|
-
}) :
|
|
14349
|
+
next: ($) => "values" in $ && C(H(void 0, R), $)
|
|
14350
|
+
}) : H(C, R, !0), ae = (C) => h.state.subscribe({
|
|
14351
14351
|
next: (R) => {
|
|
14352
14352
|
pE(C.name, R.name, C.exact) && fE(R, C.formState || u, Je, C.reRenderRoot) && C.callback({
|
|
14353
14353
|
values: { ...a },
|
|
@@ -14369,7 +14369,7 @@ function yE(e = {}) {
|
|
|
14369
14369
|
values: Yt(a)
|
|
14370
14370
|
}), h.state.next({
|
|
14371
14371
|
...t,
|
|
14372
|
-
...R.keepDirty ? { isDirty:
|
|
14372
|
+
...R.keepDirty ? { isDirty: U() } : {}
|
|
14373
14373
|
}), !R.keepIsValid && p();
|
|
14374
14374
|
}, ye = ({ disabled: C, name: R }) => {
|
|
14375
14375
|
(hr(C) && s.mount || C || i.disabled.has(R)) && (C ? i.disabled.add(R) : i.disabled.delete(R));
|
|
@@ -14464,7 +14464,7 @@ function yE(e = {}) {
|
|
|
14464
14464
|
}), oe)
|
|
14465
14465
|
throw oe;
|
|
14466
14466
|
}, be = (C, R = {}) => {
|
|
14467
|
-
he(n, C) && (Nt(R.defaultValue) ? Y(C, Yt(he(o, C))) : (Y(C, R.defaultValue), ct(o, C, Yt(R.defaultValue))), R.keepTouched || Bt(t.touchedFields, C), R.keepDirty || (Bt(t.dirtyFields, C), t.isDirty = R.defaultValue ?
|
|
14467
|
+
he(n, C) && (Nt(R.defaultValue) ? Y(C, Yt(he(o, C))) : (Y(C, R.defaultValue), ct(o, C, Yt(R.defaultValue))), R.keepTouched || Bt(t.touchedFields, C), R.keepDirty || (Bt(t.dirtyFields, C), t.isDirty = R.defaultValue ? U(C, Yt(he(o, C))) : U()), R.keepError || (Bt(t.errors, C), u.isValid && p()), h.state.next({ ...t }));
|
|
14468
14468
|
}, Ve = (C, R = {}) => {
|
|
14469
14469
|
const $ = C ? Yt(C) : o, oe = Yt($), se = ir(C), M = se ? o : oe;
|
|
14470
14470
|
if (R.keepDefaultValues || (o = $), !R.keepValues) {
|
|
@@ -14538,12 +14538,12 @@ function yE(e = {}) {
|
|
|
14538
14538
|
unregister: X,
|
|
14539
14539
|
getFieldState: Q,
|
|
14540
14540
|
handleSubmit: O,
|
|
14541
|
-
setError:
|
|
14541
|
+
setError: we,
|
|
14542
14542
|
_subscribe: ae,
|
|
14543
14543
|
_runSchema: S,
|
|
14544
14544
|
_focusError: ue,
|
|
14545
|
-
_getWatch:
|
|
14546
|
-
_getDirty:
|
|
14545
|
+
_getWatch: H,
|
|
14546
|
+
_getDirty: U,
|
|
14547
14547
|
_setValid: p,
|
|
14548
14548
|
_setFieldArray: b,
|
|
14549
14549
|
_setDisabledField: ye,
|
|
@@ -14604,7 +14604,7 @@ function yE(e = {}) {
|
|
|
14604
14604
|
resetField: be,
|
|
14605
14605
|
clearErrors: De,
|
|
14606
14606
|
unregister: X,
|
|
14607
|
-
setError:
|
|
14607
|
+
setError: we,
|
|
14608
14608
|
setFocus: Ne,
|
|
14609
14609
|
getFieldState: Q
|
|
14610
14610
|
};
|
|
@@ -17761,7 +17761,7 @@ const b5 = {
|
|
|
17761
17761
|
const [u, f, h] = e.split("-").map(Number), m = new Date(u, f - 1, h, c, d);
|
|
17762
17762
|
return En(m) ? m : null;
|
|
17763
17763
|
}, w5 = ({ isVisible: e, onClose: r, onSave: t, onDelete: n, selectedDate: o, initialEvent: a, userId: s, masNombreBD: i, disId: c, gmail: d, onReenviar: u }) => {
|
|
17764
|
-
const [f, h] = me(!1), [m, g] = me(!1), p = Xe(/* @__PURE__ */ new Date(), "yyyy-MM-dd"), [v, b] = me(""), [x, w] = me([]), [_, y] = me(!1), F = C0(), [S, D] = me([]), [T, k] = me(""), [
|
|
17764
|
+
const [f, h] = me(!1), [m, g] = me(!1), p = Xe(/* @__PURE__ */ new Date(), "yyyy-MM-dd"), [v, b] = me(""), [x, w] = me([]), [_, y] = me(!1), F = C0(), [S, D] = me([]), [T, k] = me(""), [U, H] = me(ap), [W, Z] = me(!1), [ie, Y] = me(""), [z, ce] = me(!1), [fe, N] = me([]), [Q, De] = me([]), we = y5(ie, 300), Ee = U.filter((I) => I.tieneConflicto).length, [ae, le] = me(!1), {
|
|
17765
17765
|
control: X,
|
|
17766
17766
|
handleSubmit: ye,
|
|
17767
17767
|
reset: Ae,
|
|
@@ -17853,9 +17853,9 @@ const b5 = {
|
|
|
17853
17853
|
estatus: "CONFIRMADA",
|
|
17854
17854
|
tieneConflicto: !1
|
|
17855
17855
|
};
|
|
17856
|
-
|
|
17856
|
+
H([re, ...V]);
|
|
17857
17857
|
} else
|
|
17858
|
-
|
|
17858
|
+
H(ap);
|
|
17859
17859
|
a.solID ? g(!0) : g(!1);
|
|
17860
17860
|
} else {
|
|
17861
17861
|
const I = o || /* @__PURE__ */ new Date(), V = /* @__PURE__ */ new Date(), re = new Date(I.getFullYear(), I.getMonth(), I.getDate(), V.getHours(), V.getMinutes()), de = jc(re, 1);
|
|
@@ -17887,7 +17887,7 @@ const b5 = {
|
|
|
17887
17887
|
disID: c ?? null
|
|
17888
17888
|
}), At = ye(
|
|
17889
17889
|
(I) => {
|
|
17890
|
-
const V =
|
|
17890
|
+
const V = U.map((de) => Je(de)), re = {
|
|
17891
17891
|
...I,
|
|
17892
17892
|
invitados: V
|
|
17893
17893
|
};
|
|
@@ -17971,17 +17971,17 @@ const b5 = {
|
|
|
17971
17971
|
}
|
|
17972
17972
|
})
|
|
17973
17973
|
);
|
|
17974
|
-
|
|
17974
|
+
H(ke);
|
|
17975
17975
|
};
|
|
17976
17976
|
dt(() => {
|
|
17977
|
-
|
|
17977
|
+
U.filter((V) => !V.isHost).length > 0 && C && R && oe && Ce(U);
|
|
17978
17978
|
}, [C, R, oe]);
|
|
17979
17979
|
const qe = async (I) => {
|
|
17980
|
-
if (
|
|
17980
|
+
if (U.some((Pe) => Pe.correo === I.correo)) return;
|
|
17981
17981
|
ce(!0);
|
|
17982
17982
|
const re = O("fechaInicio"), de = O("horaInicio"), ke = O("horaFin");
|
|
17983
17983
|
if (!c || !I.correo || !re || !de || !ke) {
|
|
17984
|
-
|
|
17984
|
+
H((Pe) => [
|
|
17985
17985
|
...Pe,
|
|
17986
17986
|
{
|
|
17987
17987
|
...I,
|
|
@@ -17993,7 +17993,7 @@ const b5 = {
|
|
|
17993
17993
|
return;
|
|
17994
17994
|
}
|
|
17995
17995
|
try {
|
|
17996
|
-
const Pe = await F.VerificarConflicto(c, I.correo, re, de + ":00", ke + ":00"), Ze = Array.isArray(Pe) ? Pe[0] : Pe, $e = String(Ze
|
|
17996
|
+
const Pe = await F.VerificarConflicto(c, I.correo, re, de + ":00", ke + ":00"), Ze = Array.isArray(Pe) ? Pe[0] : Pe, $e = String(Ze?.tieneConflicto).toLowerCase() === "true", Ut = {
|
|
17997
17997
|
...I,
|
|
17998
17998
|
estatus: "PENDIENTE",
|
|
17999
17999
|
isHost: !1,
|
|
@@ -18003,12 +18003,12 @@ const b5 = {
|
|
|
18003
18003
|
const yr = await F.getDisponibilidadUsuario(c, I.correo, re, "60");
|
|
18004
18004
|
N(yr);
|
|
18005
18005
|
}
|
|
18006
|
-
|
|
18006
|
+
H((yr) => [...yr, Ut]);
|
|
18007
18007
|
} catch (Pe) {
|
|
18008
|
-
console.error("Error al verificar conflicto:", Pe),
|
|
18008
|
+
console.error("Error al verificar conflicto:", Pe), H((Ze) => [...Ze, { ...I, tieneConflicto: !1, isHost: !1 }]);
|
|
18009
18009
|
}
|
|
18010
18010
|
}, yt = (I) => {
|
|
18011
|
-
|
|
18011
|
+
H((V) => V.filter((re) => re.nombre !== I));
|
|
18012
18012
|
}, bt = () => {
|
|
18013
18013
|
Z(!1);
|
|
18014
18014
|
}, Qt = (I) => {
|
|
@@ -18024,11 +18024,11 @@ const b5 = {
|
|
|
18024
18024
|
};
|
|
18025
18025
|
};
|
|
18026
18026
|
dt(() => {
|
|
18027
|
-
|
|
18028
|
-
const
|
|
18029
|
-
De(re);
|
|
18027
|
+
console.log("debouncedSearchText.length", we.length), we.length > 2 && c ? (async () => {
|
|
18028
|
+
const V = await F.getUsuariosInvitados(c, we), re = V.map(Qt).filter((de) => de.usrID !== s && !U.some((ke) => ke.correo === de.correo));
|
|
18029
|
+
console.log("sugerencias", V), De(re);
|
|
18030
18030
|
})() : De([]);
|
|
18031
|
-
}, [
|
|
18031
|
+
}, [we, U]);
|
|
18032
18032
|
const or = (I) => {
|
|
18033
18033
|
Y(I);
|
|
18034
18034
|
}, Xt = (I) => {
|
|
@@ -18442,8 +18442,8 @@ const b5 = {
|
|
|
18442
18442
|
}
|
|
18443
18443
|
) }) }),
|
|
18444
18444
|
/* @__PURE__ */ l.jsx("div", { className: "row mb-2", children: /* @__PURE__ */ l.jsx("div", { className: "col-12", children: /* @__PURE__ */ l.jsx(l5, { onSelectGuest: qe, availableSuggestions: Q, onInputTextChange: or }) }) }),
|
|
18445
|
-
(z || Ee > 0) && /* @__PURE__ */ l.jsx("div", { className: "row mb-2", children: /* @__PURE__ */ l.jsx("div", { className: "col-12", children: /* @__PURE__ */ l.jsx(v5, { guests:
|
|
18446
|
-
a?.invitados && a?.invitados?.length > 0 && /* @__PURE__ */ l.jsx("div", { className: "row mb-2", children: /* @__PURE__ */ l.jsx("div", { className: "col-12", children: /* @__PURE__ */ l.jsx(P, { children: /* @__PURE__ */ l.jsx(e5, { guests:
|
|
18445
|
+
(z || Ee > 0) && /* @__PURE__ */ l.jsx("div", { className: "row mb-2", children: /* @__PURE__ */ l.jsx("div", { className: "col-12", children: /* @__PURE__ */ l.jsx(v5, { guests: U, conflictCount: Ee, onViewSuggestions: () => Z(!0), onDeleteGuest: yt }) }) }),
|
|
18446
|
+
a?.invitados && a?.invitados?.length > 0 && /* @__PURE__ */ l.jsx("div", { className: "row mb-2", children: /* @__PURE__ */ l.jsx("div", { className: "col-12", children: /* @__PURE__ */ l.jsx(P, { children: /* @__PURE__ */ l.jsx(e5, { guests: U, onReenviar: u, esOrganizador: a?.esOrganizador }) }) }) }),
|
|
18447
18447
|
/* @__PURE__ */ l.jsx(s5, { open: W, handleClose: bt, suggestions: fe, onSelectSlot: Xt }),
|
|
18448
18448
|
/* @__PURE__ */ l.jsxs(P, { sx: { display: "flex", alignItems: "center", mt: 1, mb: 1, px: 0 }, children: [
|
|
18449
18449
|
/* @__PURE__ */ l.jsx(P, { sx: { minWidth: 40, display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ l.jsx("img", { src: "https://fonts.gstatic.com/s/i/productlogos/meet_2020q4/v1/web-512dp/logo_meet_2020q4_color_2x_web_512dp.png", alt: "Meet", style: { width: 22, height: 22 } }) }),
|
|
@@ -18958,8 +18958,8 @@ const N5 = (e, r, t) => {
|
|
|
18958
18958
|
const [u, f, h] = e.split("-").map(Number), m = new Date(u, f - 1, h, c, d);
|
|
18959
18959
|
return En(m) ? m : null;
|
|
18960
18960
|
}, _R = ({ userId: e, leads30Days: r, leads90Days: t, disId: n, masNombreBD: o, usrNombre: a }) => {
|
|
18961
|
-
const [s, i] = me(/* @__PURE__ */ new Date()), [c, d] = me([]), [u, f] = me(!1), [h, m] = me(null), [g, p] = me(null), [v, b] = me([]), { enqueueSnackbar: x } = ul(), w = C0(), _ = Nl(), y = Fl(), [F, S] = me(!1), [D, T] = me([]), [k,
|
|
18962
|
-
T(te),
|
|
18961
|
+
const [s, i] = me(/* @__PURE__ */ new Date()), [c, d] = me([]), [u, f] = me(!1), [h, m] = me(null), [g, p] = me(null), [v, b] = me([]), { enqueueSnackbar: x } = ul(), w = C0(), _ = Nl(), y = Fl(), [F, S] = me(!1), [D, T] = me([]), [k, U] = me(null), { session: H, sessionoutlook: W } = Yh(), { googleEvents: Z, setGoogleEvents: ie, outlookEvents: Y, setOutlookEvents: z } = M5(), [ce, fe] = me([]), [N, Q] = me([]), [De, we] = me([]), [Ee, ae] = me(!1), [le, X] = me([]), [ye, Ae] = me(), ue = (te, I) => {
|
|
18962
|
+
T(te), U(I), S(!0);
|
|
18963
18963
|
}, je = async () => {
|
|
18964
18964
|
if (e === void 0 || n === void 0) return;
|
|
18965
18965
|
const te = await w.getNotificacionesXUsuario(e, n);
|
|
@@ -18988,7 +18988,7 @@ const N5 = (e, r, t) => {
|
|
|
18988
18988
|
}, [e]), dt(() => {
|
|
18989
18989
|
if (!n || !e) return;
|
|
18990
18990
|
const te = [...c];
|
|
18991
|
-
if (Z.length > 0 &&
|
|
18991
|
+
if (Z.length > 0 && H?.userEmail) {
|
|
18992
18992
|
const I = Z.map((V) => I5(V, n, e));
|
|
18993
18993
|
te.push(...I);
|
|
18994
18994
|
}
|
|
@@ -18997,7 +18997,7 @@ const N5 = (e, r, t) => {
|
|
|
18997
18997
|
te.push(...I);
|
|
18998
18998
|
}
|
|
18999
18999
|
fe(te);
|
|
19000
|
-
}, [c, Z, Y, n, e,
|
|
19000
|
+
}, [c, Z, Y, n, e, H?.userEmail, W?.userEmail]);
|
|
19001
19001
|
const O = async (te) => {
|
|
19002
19002
|
try {
|
|
19003
19003
|
if (te?.isGoogleEvent || te.isOutlookEvent)
|
|
@@ -19112,10 +19112,10 @@ const N5 = (e, r, t) => {
|
|
|
19112
19112
|
be(), Qt();
|
|
19113
19113
|
}
|
|
19114
19114
|
}, oe = async () => {
|
|
19115
|
-
if (!(!
|
|
19115
|
+
if (!(!H?.userEmail || !n)) {
|
|
19116
19116
|
ae(!0);
|
|
19117
19117
|
try {
|
|
19118
|
-
const I = (await _.getGoogleCalendars(
|
|
19118
|
+
const I = (await _.getGoogleCalendars(H.userEmail, n)).map((re) => ({ ...re, selected: !0 }));
|
|
19119
19119
|
Q(I);
|
|
19120
19120
|
const V = I.map((re) => re.id);
|
|
19121
19121
|
Se(V);
|
|
@@ -19135,7 +19135,7 @@ const N5 = (e, r, t) => {
|
|
|
19135
19135
|
ae(!0);
|
|
19136
19136
|
try {
|
|
19137
19137
|
const I = (await y.getOutlookCalendars(W.userEmail, n)).map((re) => ({ ...re, selected: !0 }));
|
|
19138
|
-
|
|
19138
|
+
we(I);
|
|
19139
19139
|
const V = I.map((re) => re.id);
|
|
19140
19140
|
Me(V);
|
|
19141
19141
|
} catch (te) {
|
|
@@ -19146,24 +19146,24 @@ const N5 = (e, r, t) => {
|
|
|
19146
19146
|
}
|
|
19147
19147
|
}, J = async (te) => {
|
|
19148
19148
|
const I = De.map((re) => re.id === te ? { ...re, selected: !re.selected } : re);
|
|
19149
|
-
|
|
19149
|
+
we(I);
|
|
19150
19150
|
const V = I.filter((re) => re.selected).map((re) => re.id);
|
|
19151
19151
|
Me(V);
|
|
19152
19152
|
};
|
|
19153
19153
|
dt(() => {
|
|
19154
19154
|
oe();
|
|
19155
|
-
}, [
|
|
19155
|
+
}, [H?.userEmail, n]), dt(() => {
|
|
19156
19156
|
M();
|
|
19157
19157
|
}, [W?.userEmail, n]);
|
|
19158
19158
|
const Se = async (te) => {
|
|
19159
|
-
if (!
|
|
19159
|
+
if (!H?.userEmail || !n) return;
|
|
19160
19160
|
const I = te || N.filter((V) => V.selected).map((V) => V.id);
|
|
19161
19161
|
try {
|
|
19162
19162
|
const V = {
|
|
19163
19163
|
disID: n,
|
|
19164
19164
|
year: s.getFullYear(),
|
|
19165
19165
|
month: s.getMonth() + 1,
|
|
19166
|
-
usrMail:
|
|
19166
|
+
usrMail: H.userEmail,
|
|
19167
19167
|
calendarIds: I
|
|
19168
19168
|
}, re = await _.getGoogleEventsByMonth(V);
|
|
19169
19169
|
ie(re);
|
|
@@ -19239,7 +19239,7 @@ const N5 = (e, r, t) => {
|
|
|
19239
19239
|
}, Xt = yt ? or[yt] : null;
|
|
19240
19240
|
return /* @__PURE__ */ l.jsxs("div", { id: "Agenda", style: { height: "100%", width: "100%" }, children: [
|
|
19241
19241
|
/* @__PURE__ */ l.jsx(
|
|
19242
|
-
|
|
19242
|
+
iy,
|
|
19243
19243
|
{
|
|
19244
19244
|
header: /* @__PURE__ */ l.jsx(Px, { currentDate: s, onPrevMonth: Ye, onNextMonth: Ne, onAddEvent: St, onDateChange: C }),
|
|
19245
19245
|
sidebar: /* @__PURE__ */ l.jsx(
|
|
@@ -19277,7 +19277,7 @@ const N5 = (e, r, t) => {
|
|
|
19277
19277
|
userId: e,
|
|
19278
19278
|
masNombreBD: o,
|
|
19279
19279
|
disId: n,
|
|
19280
|
-
gmail:
|
|
19280
|
+
gmail: "llopez@exagono.net",
|
|
19281
19281
|
onReenviar: qe
|
|
19282
19282
|
}
|
|
19283
19283
|
),
|
|
@@ -19881,7 +19881,7 @@ function A4({
|
|
|
19881
19881
|
idAdminSistemas: F
|
|
19882
19882
|
}) {
|
|
19883
19883
|
if (!t) return null;
|
|
19884
|
-
const S = 3, [D, T] = me(null), k = !!D, [
|
|
19884
|
+
const S = 3, [D, T] = me(null), k = !!D, [U, H] = me(!1), [W, Z] = me(null), [ie, Y] = me(
|
|
19885
19885
|
c ?? []
|
|
19886
19886
|
), [z, ce] = me(null), fe = ot(() => [...d].sort(
|
|
19887
19887
|
(L, K) => new Date(K.FechaAsignacion).getTime() - new Date(L.FechaAsignacion).getTime()
|
|
@@ -19889,7 +19889,7 @@ function A4({
|
|
|
19889
19889
|
dt(() => {
|
|
19890
19890
|
c && c.length && Y(c);
|
|
19891
19891
|
}, [c]);
|
|
19892
|
-
const N = c?.length ? c : ie, Q = o?.title ?? ((L) => L?.Nombre || L?.name || "Sin título"), De = o?.infoItems ?? [],
|
|
19892
|
+
const N = c?.length ? c : ie, Q = o?.title ?? ((L) => L?.Nombre || L?.name || "Sin título"), De = o?.infoItems ?? [], we = (L) => L.nombreAsesor?.trim() || (L.Email ? L.Email : "Sistema"), Ee = (L) => {
|
|
19893
19893
|
const K = L || "", xe = K.split(" ").filter(Boolean);
|
|
19894
19894
|
return xe.length >= 2 ? (xe[0][0] + xe[1][0]).toUpperCase() : (K[0] || "?").toUpperCase();
|
|
19895
19895
|
}, ae = (L) => L?.SolID ?? L?.solID ?? L?.SolId ?? L?.SOLID ?? null, le = ot(() => {
|
|
@@ -20266,10 +20266,10 @@ function A4({
|
|
|
20266
20266
|
});
|
|
20267
20267
|
if (!x) {
|
|
20268
20268
|
const br = Rr ?? Ct;
|
|
20269
|
-
Z(xe), ce(br),
|
|
20269
|
+
Z(xe), ce(br), H(!0);
|
|
20270
20270
|
}
|
|
20271
20271
|
}, Be = () => {
|
|
20272
|
-
_?.(t), Z(null), ce(null),
|
|
20272
|
+
_?.(t), Z(null), ce(null), H(!1);
|
|
20273
20273
|
}, Ht = A.useRef(!1), ht = A.useRef(null), Mt = A.useCallback(() => {
|
|
20274
20274
|
if (!Ht.current) {
|
|
20275
20275
|
Ht.current = !0;
|
|
@@ -20500,7 +20500,7 @@ function A4({
|
|
|
20500
20500
|
je.length === 0 && /* @__PURE__ */ l.jsx(pe, { variant: "body2", color: "text.secondary", children: "Sin actividad registrada." }),
|
|
20501
20501
|
/* @__PURE__ */ l.jsxs(P, { children: [
|
|
20502
20502
|
je?.map((L, K) => {
|
|
20503
|
-
const xe =
|
|
20503
|
+
const xe = we(L), Oe = S4(L.comentario || "");
|
|
20504
20504
|
return /* @__PURE__ */ l.jsxs(P, { sx: { pb: 1.5 }, children: [
|
|
20505
20505
|
/* @__PURE__ */ l.jsxs(
|
|
20506
20506
|
Tr,
|
|
@@ -20673,7 +20673,7 @@ function A4({
|
|
|
20673
20673
|
]
|
|
20674
20674
|
}
|
|
20675
20675
|
),
|
|
20676
|
-
|
|
20676
|
+
U ? /* @__PURE__ */ l.jsxs(
|
|
20677
20677
|
P,
|
|
20678
20678
|
{
|
|
20679
20679
|
sx: {
|
|
@@ -21206,8 +21206,8 @@ function wp(e, r, t) {
|
|
|
21206
21206
|
header: a.email ?? "Correo",
|
|
21207
21207
|
accessor: (k) => k[n.email],
|
|
21208
21208
|
cell: s.email ?? ((k) => {
|
|
21209
|
-
const
|
|
21210
|
-
return
|
|
21209
|
+
const U = String(k[n.email] ?? "");
|
|
21210
|
+
return U ? /* @__PURE__ */ l.jsx("a", { href: `mailto:${U}`, children: U }) : /* @__PURE__ */ l.jsx("span", { className: "text-muted", children: "—" });
|
|
21211
21211
|
}),
|
|
21212
21212
|
width: 230
|
|
21213
21213
|
},
|
|
@@ -21215,7 +21215,7 @@ function wp(e, r, t) {
|
|
|
21215
21215
|
key: "acciones",
|
|
21216
21216
|
header: "",
|
|
21217
21217
|
cell: s.acciones ?? ((k) => {
|
|
21218
|
-
const
|
|
21218
|
+
const U = kc(u.whatsapp, k, !0), H = kc(u.email, k, !0), W = kc(u.view, k, !0), Z = h.phone?.(k), ie = h.email?.(k), Y = (fe) => {
|
|
21219
21219
|
if (fe.stopPropagation(), f.onWhatsApp)
|
|
21220
21220
|
return f.onWhatsApp(k);
|
|
21221
21221
|
if (!Z) return;
|
|
@@ -21229,7 +21229,7 @@ function wp(e, r, t) {
|
|
|
21229
21229
|
fe.stopPropagation(), f.onView && f.onView(k);
|
|
21230
21230
|
};
|
|
21231
21231
|
return /* @__PURE__ */ l.jsxs("div", { className: g, children: [
|
|
21232
|
-
|
|
21232
|
+
U && /* @__PURE__ */ l.jsx(
|
|
21233
21233
|
"button",
|
|
21234
21234
|
{
|
|
21235
21235
|
type: "button",
|
|
@@ -21240,7 +21240,7 @@ function wp(e, r, t) {
|
|
|
21240
21240
|
children: /* @__PURE__ */ l.jsx("img", { src: z5, alt: "WhatsApp" })
|
|
21241
21241
|
}
|
|
21242
21242
|
),
|
|
21243
|
-
|
|
21243
|
+
H && /* @__PURE__ */ l.jsx(
|
|
21244
21244
|
"button",
|
|
21245
21245
|
{
|
|
21246
21246
|
type: "button",
|
|
@@ -21280,7 +21280,7 @@ function wp(e, r, t) {
|
|
|
21280
21280
|
new Set(o.map((k) => String(k)).filter((k) => _.has(k)))
|
|
21281
21281
|
), S = y.filter((k) => !F.includes(k)), D = [...F, ...S], T = "acciones";
|
|
21282
21282
|
if (_.has(T)) {
|
|
21283
|
-
const k = D.filter((
|
|
21283
|
+
const k = D.filter((U) => U !== T);
|
|
21284
21284
|
D.splice(0, D.length, ...k, T);
|
|
21285
21285
|
}
|
|
21286
21286
|
return D.map((k) => _.get(k));
|
|
@@ -21313,8 +21313,8 @@ function SR(e) {
|
|
|
21313
21313
|
isCrmMode: D,
|
|
21314
21314
|
onSolicitudBaseUrl: T,
|
|
21315
21315
|
onIframeClose: k,
|
|
21316
|
-
reloadInfo:
|
|
21317
|
-
idAdminSistemas:
|
|
21316
|
+
reloadInfo: U,
|
|
21317
|
+
idAdminSistemas: H = !1
|
|
21318
21318
|
//Por defecto
|
|
21319
21319
|
} = e, [W, Z] = me(a ?? null), [ie, Y] = me({
|
|
21320
21320
|
open: !1,
|
|
@@ -21330,7 +21330,7 @@ function SR(e) {
|
|
|
21330
21330
|
fields: {},
|
|
21331
21331
|
order: []
|
|
21332
21332
|
// si te pasan order sin defaults, se aplicará solo a dinámicas
|
|
21333
|
-
}), [t, d]),
|
|
21333
|
+
}), [t, d]), we = ot(() => {
|
|
21334
21334
|
if (!n || !W) return r;
|
|
21335
21335
|
const ae = De.find((X) => X.key === W.key);
|
|
21336
21336
|
if (!ae) return r;
|
|
@@ -21374,7 +21374,7 @@ function SR(e) {
|
|
|
21374
21374
|
},
|
|
21375
21375
|
ae.key
|
|
21376
21376
|
)) }) }),
|
|
21377
|
-
/* @__PURE__ */ l.jsx("tbody", { children:
|
|
21377
|
+
/* @__PURE__ */ l.jsx("tbody", { children: we.map((ae, le) => (
|
|
21378
21378
|
// <tr key={rowKey(row, ri)}>
|
|
21379
21379
|
/* @__PURE__ */ l.jsx(
|
|
21380
21380
|
"tr",
|
|
@@ -21435,8 +21435,8 @@ function SR(e) {
|
|
|
21435
21435
|
isCrmMode: D,
|
|
21436
21436
|
onSolicitudBaseUrl: T,
|
|
21437
21437
|
onIframeClose: k,
|
|
21438
|
-
reloadInfo:
|
|
21439
|
-
idAdminSistemas:
|
|
21438
|
+
reloadInfo: U,
|
|
21439
|
+
idAdminSistemas: H
|
|
21440
21440
|
}
|
|
21441
21441
|
)
|
|
21442
21442
|
] });
|
|
@@ -21915,10 +21915,10 @@ function CR(e) {
|
|
|
21915
21915
|
}, k = A.useCallback(
|
|
21916
21916
|
(M) => f ? f(M) : M?.IdAuto,
|
|
21917
21917
|
[f]
|
|
21918
|
-
),
|
|
21918
|
+
), U = ot(() => {
|
|
21919
21919
|
const M = /* @__PURE__ */ new Map();
|
|
21920
21920
|
return (d ?? []).forEach((J, Se) => M.set(k(J), Se)), M;
|
|
21921
|
-
}, [d, k]),
|
|
21921
|
+
}, [d, k]), H = bn(/* @__PURE__ */ new Set()), W = ot(() => {
|
|
21922
21922
|
const M = /* @__PURE__ */ new Map();
|
|
21923
21923
|
return (d ?? []).forEach(
|
|
21924
21924
|
(J) => M.set(f ? f(J) : J?.IdAuto, J)
|
|
@@ -21932,19 +21932,19 @@ function CR(e) {
|
|
|
21932
21932
|
}), Y = (M) => M == null ? !1 : typeof M == "string" ? M.trim().length > 0 : Array.isArray(M) ? M.length > 0 : typeof M == "number" ? !Number.isNaN(M) : typeof M == "object" ? Object.keys(M).length > 0 : !0, z = ot(() => Z.length ? ie?.every(Y) ?? !1 : !0, [ie, Z]), {
|
|
21933
21933
|
handleSubmit: ce,
|
|
21934
21934
|
formState: { isSubmitting: fe, isDirty: N, isValid: Q }
|
|
21935
|
-
} = x, De = u ?? ((M, J) => JSON.stringify(M).toLowerCase().includes(J.toLowerCase())),
|
|
21935
|
+
} = x, De = u ?? ((M, J) => JSON.stringify(M).toLowerCase().includes(J.toLowerCase())), we = ot(
|
|
21936
21936
|
() => w.trim() ? d?.filter((M) => De(M, w)) : d,
|
|
21937
21937
|
[d, w, De]
|
|
21938
21938
|
), Ee = ot(() => {
|
|
21939
|
-
if (!
|
|
21940
|
-
const M =
|
|
21939
|
+
if (!we) return we;
|
|
21940
|
+
const M = H.current, J = [...we];
|
|
21941
21941
|
return J.sort((Se, Me) => {
|
|
21942
21942
|
const j = M.has(k(Se)) ? 0 : 1, ee = M.has(k(Me)) ? 0 : 1;
|
|
21943
21943
|
if (j !== ee) return j - ee;
|
|
21944
|
-
const Ce =
|
|
21944
|
+
const Ce = U.get(k(Se)) ?? 0, qe = U.get(k(Me)) ?? 0;
|
|
21945
21945
|
return Ce - qe;
|
|
21946
21946
|
}), J;
|
|
21947
|
-
}, [
|
|
21947
|
+
}, [we, U, k]), {
|
|
21948
21948
|
currentItems: ae,
|
|
21949
21949
|
totalPages: le,
|
|
21950
21950
|
showingFrom: X,
|
|
@@ -22449,8 +22449,8 @@ function ER({
|
|
|
22449
22449
|
return () => clearTimeout(Ce);
|
|
22450
22450
|
}
|
|
22451
22451
|
}, [p]);
|
|
22452
|
-
const [x, w] = me(""), [_, y] = me(!1), [F, S] = me(!1), [D, T] = me(!1), [k,
|
|
22453
|
-
W([...t.selectedIds]),
|
|
22452
|
+
const [x, w] = me(""), [_, y] = me(!1), [F, S] = me(!1), [D, T] = me(!1), [k, U] = me(""), [H, W] = me([]), Z = D ? H : t.selectedIds, ie = () => {
|
|
22453
|
+
W([...t.selectedIds]), U(""), T(!0);
|
|
22454
22454
|
}, Y = () => {
|
|
22455
22455
|
T(!1), W([]);
|
|
22456
22456
|
}, z = () => {
|
|
@@ -22458,7 +22458,7 @@ function ER({
|
|
|
22458
22458
|
At.map(
|
|
22459
22459
|
(Ce, qe) => String(Mr(Ce, qe, h.id))
|
|
22460
22460
|
)
|
|
22461
|
-
), ee =
|
|
22461
|
+
), ee = H.filter((Ce) => j.has(String(Ce)));
|
|
22462
22462
|
n({ ...t, selectedIds: ee }), T(!1);
|
|
22463
22463
|
}, ce = (j, ee) => yn(j ?? "") === yn(ee ?? "");
|
|
22464
22464
|
function fe(j, ee, Ce, qe, yt) {
|
|
@@ -22474,16 +22474,16 @@ function ER({
|
|
|
22474
22474
|
y,
|
|
22475
22475
|
S
|
|
22476
22476
|
);
|
|
22477
|
-
}, Q = (j) => n({ ...t, message: j }), De = (j) => n({ ...t, attachments: [...t.attachments, ...j] }),
|
|
22477
|
+
}, Q = (j) => n({ ...t, message: j }), De = (j) => n({ ...t, attachments: [...t.attachments, ...j] }), we = (j) => n({
|
|
22478
22478
|
...t,
|
|
22479
22479
|
attachments: t.attachments.filter((ee) => ee.name !== j)
|
|
22480
22480
|
}), Ee = (j) => {
|
|
22481
22481
|
if (D)
|
|
22482
22482
|
if (d) {
|
|
22483
|
-
const ee = new Set(
|
|
22483
|
+
const ee = new Set(H);
|
|
22484
22484
|
ee.has(j) ? ee.delete(j) : ee.add(j), W(Array.from(ee));
|
|
22485
22485
|
} else {
|
|
22486
|
-
const ee =
|
|
22486
|
+
const ee = H.includes(j);
|
|
22487
22487
|
W(ee ? [] : [j]);
|
|
22488
22488
|
}
|
|
22489
22489
|
else if (d) {
|
|
@@ -22932,7 +22932,7 @@ function ER({
|
|
|
22932
22932
|
Wt,
|
|
22933
22933
|
{
|
|
22934
22934
|
edge: "end",
|
|
22935
|
-
onClick: () =>
|
|
22935
|
+
onClick: () => we(j.name),
|
|
22936
22936
|
size: "small",
|
|
22937
22937
|
children: /* @__PURE__ */ l.jsx(Lr, { fontSize: "small" })
|
|
22938
22938
|
}
|
|
@@ -23034,7 +23034,7 @@ function ER({
|
|
|
23034
23034
|
fullWidth: !0,
|
|
23035
23035
|
size: "small",
|
|
23036
23036
|
value: k,
|
|
23037
|
-
onChange: (j) =>
|
|
23037
|
+
onChange: (j) => U(j.target.value),
|
|
23038
23038
|
sx: { mb: 2 }
|
|
23039
23039
|
}
|
|
23040
23040
|
),
|