prosperita-dumbo-react 1.2.31 → 1.2.32
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ie from "react";
|
|
2
|
-
import We, { useRef as me, useDebugValue as Lo, createElement as Ui, useContext as wr, useState as U, useEffect as
|
|
2
|
+
import We, { useRef as me, useDebugValue as Lo, createElement as Ui, useContext as wr, useState as U, useEffect as ke, useCallback as q, forwardRef as Qi, useLayoutEffect as Ls, createContext as Gs, useMemo as Ne, Component as q1, Fragment as yi } from "react";
|
|
3
3
|
import { createPortal as eu } from "react-dom";
|
|
4
4
|
const tu = localStorage.getItem("@app:activated_theme_dumbo"), Ur = tu || "banvox", mt = {
|
|
5
5
|
default: {
|
|
@@ -1048,14 +1048,14 @@ function fu() {
|
|
|
1048
1048
|
xe.unshift("Warning: " + F), Function.prototype.apply.call(console[C], console, xe);
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
|
-
var k = !1, w = !1, E = !1, T = !1, L = !1,
|
|
1052
|
-
|
|
1053
|
-
function
|
|
1051
|
+
var k = !1, w = !1, E = !1, T = !1, L = !1, H;
|
|
1052
|
+
H = Symbol.for("react.module.reference");
|
|
1053
|
+
function ee(C) {
|
|
1054
1054
|
return !!(typeof C == "string" || typeof C == "function" || C === i || C === a || L || C === r || C === d || C === p || T || C === v || k || w || E || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === g || C.$$typeof === l || C.$$typeof === u || C.$$typeof === s || // This needs to include all possible module reference object
|
|
1055
1055
|
// types supported by any Flight configuration anywhere since
|
|
1056
1056
|
// we don't know which Flight build this will end up being used
|
|
1057
1057
|
// with.
|
|
1058
|
-
C.$$typeof ===
|
|
1058
|
+
C.$$typeof === H || C.getModuleId !== void 0));
|
|
1059
1059
|
}
|
|
1060
1060
|
function oe(C, F, G) {
|
|
1061
1061
|
var ne = C.displayName;
|
|
@@ -1112,14 +1112,14 @@ function fu() {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
return null;
|
|
1114
1114
|
}
|
|
1115
|
-
var M = Object.assign,
|
|
1115
|
+
var M = Object.assign, Z = 0, N, X, j, $, D, te, Q;
|
|
1116
1116
|
function ue() {
|
|
1117
1117
|
}
|
|
1118
1118
|
ue.__reactDisabledLog = !0;
|
|
1119
1119
|
function Ae() {
|
|
1120
1120
|
{
|
|
1121
|
-
if (
|
|
1122
|
-
|
|
1121
|
+
if (Z === 0) {
|
|
1122
|
+
N = console.log, X = console.info, j = console.warn, $ = console.error, D = console.group, te = console.groupCollapsed, Q = console.groupEnd;
|
|
1123
1123
|
var C = {
|
|
1124
1124
|
configurable: !0,
|
|
1125
1125
|
enumerable: !0,
|
|
@@ -1136,12 +1136,12 @@ function fu() {
|
|
|
1136
1136
|
groupEnd: C
|
|
1137
1137
|
});
|
|
1138
1138
|
}
|
|
1139
|
-
|
|
1139
|
+
Z++;
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
1142
|
function ve() {
|
|
1143
1143
|
{
|
|
1144
|
-
if (
|
|
1144
|
+
if (Z--, Z === 0) {
|
|
1145
1145
|
var C = {
|
|
1146
1146
|
configurable: !0,
|
|
1147
1147
|
enumerable: !0,
|
|
@@ -1149,7 +1149,7 @@ function fu() {
|
|
|
1149
1149
|
};
|
|
1150
1150
|
Object.defineProperties(console, {
|
|
1151
1151
|
log: M({}, C, {
|
|
1152
|
-
value:
|
|
1152
|
+
value: N
|
|
1153
1153
|
}),
|
|
1154
1154
|
info: M({}, C, {
|
|
1155
1155
|
value: X
|
|
@@ -1161,31 +1161,31 @@ function fu() {
|
|
|
1161
1161
|
value: $
|
|
1162
1162
|
}),
|
|
1163
1163
|
group: M({}, C, {
|
|
1164
|
-
value:
|
|
1164
|
+
value: D
|
|
1165
1165
|
}),
|
|
1166
1166
|
groupCollapsed: M({}, C, {
|
|
1167
|
-
value:
|
|
1167
|
+
value: te
|
|
1168
1168
|
}),
|
|
1169
1169
|
groupEnd: M({}, C, {
|
|
1170
1170
|
value: Q
|
|
1171
1171
|
})
|
|
1172
1172
|
});
|
|
1173
1173
|
}
|
|
1174
|
-
|
|
1174
|
+
Z < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
|
-
var ye = m.ReactCurrentDispatcher,
|
|
1177
|
+
var ye = m.ReactCurrentDispatcher, Pe;
|
|
1178
1178
|
function Ce(C, F, G) {
|
|
1179
1179
|
{
|
|
1180
|
-
if (
|
|
1180
|
+
if (Pe === void 0)
|
|
1181
1181
|
try {
|
|
1182
1182
|
throw Error();
|
|
1183
1183
|
} catch (de) {
|
|
1184
1184
|
var ne = de.stack.trim().match(/\n( *(at )?)/);
|
|
1185
|
-
|
|
1185
|
+
Pe = ne && ne[1] || "";
|
|
1186
1186
|
}
|
|
1187
1187
|
return `
|
|
1188
|
-
` +
|
|
1188
|
+
` + Pe + C;
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
var Ve = !1, ze;
|
|
@@ -1193,7 +1193,7 @@ function fu() {
|
|
|
1193
1193
|
var je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1194
1194
|
ze = new je();
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function W(C, F) {
|
|
1197
1197
|
if (!C || Ve)
|
|
1198
1198
|
return "";
|
|
1199
1199
|
{
|
|
@@ -1265,7 +1265,7 @@ function fu() {
|
|
|
1265
1265
|
return typeof C == "function" && ze.set(C, kt), kt;
|
|
1266
1266
|
}
|
|
1267
1267
|
function ut(C, F, G) {
|
|
1268
|
-
return
|
|
1268
|
+
return W(C, !1);
|
|
1269
1269
|
}
|
|
1270
1270
|
function ot(C) {
|
|
1271
1271
|
var F = C.prototype;
|
|
@@ -1275,7 +1275,7 @@ function fu() {
|
|
|
1275
1275
|
if (C == null)
|
|
1276
1276
|
return "";
|
|
1277
1277
|
if (typeof C == "function")
|
|
1278
|
-
return
|
|
1278
|
+
return W(C, ot(C));
|
|
1279
1279
|
if (typeof C == "string")
|
|
1280
1280
|
return Ce(C);
|
|
1281
1281
|
switch (C) {
|
|
@@ -1570,7 +1570,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
1570
1570
|
var Ro = {};
|
|
1571
1571
|
function Mo(C, F, G, ne, de, xe) {
|
|
1572
1572
|
{
|
|
1573
|
-
var ce =
|
|
1573
|
+
var ce = ee(C);
|
|
1574
1574
|
if (!ce) {
|
|
1575
1575
|
var se = "";
|
|
1576
1576
|
(C === void 0 || typeof C == "object" && C !== null && Object.keys(C).length === 0) && (se += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -2664,25 +2664,25 @@ function vd(e, t, n) {
|
|
|
2664
2664
|
var m = new md(n, b, i ? r.componentStyle : void 0);
|
|
2665
2665
|
function A(k, w) {
|
|
2666
2666
|
return function(E, T, L) {
|
|
2667
|
-
var
|
|
2667
|
+
var H = E.attrs, ee = E.componentStyle, oe = E.defaultProps, B = E.foldedComponentIds, R = E.styledComponentId, M = E.target, Z = We.useContext(sc), N = Qo(), X = E.shouldForwardProp || N.shouldForwardProp;
|
|
2668
2668
|
process.env.NODE_ENV !== "production" && Lo(R);
|
|
2669
|
-
var j = Ou(T,
|
|
2670
|
-
for (var Ce, Ve = Je(Je({}, ye), { className: void 0, theme:
|
|
2669
|
+
var j = Ou(T, Z, oe) || en, $ = function(ve, ye, Pe) {
|
|
2670
|
+
for (var Ce, Ve = Je(Je({}, ye), { className: void 0, theme: Pe }), ze = 0; ze < ve.length; ze += 1) {
|
|
2671
2671
|
var je = tn(Ce = ve[ze]) ? Ce(Ve) : Ce;
|
|
2672
|
-
for (var
|
|
2673
|
-
Ve[
|
|
2672
|
+
for (var W in je)
|
|
2673
|
+
Ve[W] = W === "className" ? Ft(Ve[W], je[W]) : W === "style" ? Je(Je({}, Ve[W]), je[W]) : je[W];
|
|
2674
2674
|
}
|
|
2675
2675
|
return ye.className && (Ve.className = Ft(Ve.className, ye.className)), Ve;
|
|
2676
|
-
}(
|
|
2676
|
+
}(H, T, j), D = $.as || M, te = {};
|
|
2677
2677
|
for (var Q in $)
|
|
2678
|
-
$[Q] === void 0 || Q[0] === "$" || Q === "as" || Q === "theme" && $.theme === j || (Q === "forwardedAs" ?
|
|
2678
|
+
$[Q] === void 0 || Q[0] === "$" || Q === "as" || Q === "theme" && $.theme === j || (Q === "forwardedAs" ? te.as = $.forwardedAs : X && !X(Q, D) || (te[Q] = $[Q], X || process.env.NODE_ENV !== "development" || bu(Q) || qo.has(Q) || !Si.has(D) || (qo.add(Q), console.warn('styled-components: it looks like an unknown prop "'.concat(Q, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
2679
2679
|
var ue = function(ve, ye) {
|
|
2680
|
-
var
|
|
2680
|
+
var Pe = Qo(), Ce = ve.generateAndInjectStyles(ye, Pe.styleSheet, Pe.stylis);
|
|
2681
2681
|
return process.env.NODE_ENV !== "production" && Lo(Ce), Ce;
|
|
2682
|
-
}(
|
|
2682
|
+
}(ee, $);
|
|
2683
2683
|
process.env.NODE_ENV !== "production" && E.warnTooManyClasses && E.warnTooManyClasses(ue);
|
|
2684
2684
|
var Ae = Ft(B, R);
|
|
2685
|
-
return ue && (Ae += " " + ue), $.className && (Ae += " " + $.className),
|
|
2685
|
+
return ue && (Ae += " " + ue), $.className && (Ae += " " + $.className), te[ei(D) && !Si.has(D) ? "class" : "className"] = Ae, te.ref = L, Ui(D, te);
|
|
2686
2686
|
}(S, k, w);
|
|
2687
2687
|
}
|
|
2688
2688
|
A.displayName = g;
|
|
@@ -2693,16 +2693,16 @@ function vd(e, t, n) {
|
|
|
2693
2693
|
this._foldedDefaultProps = i ? function(w) {
|
|
2694
2694
|
for (var E = [], T = 1; T < arguments.length; T++)
|
|
2695
2695
|
E[T - 1] = arguments[T];
|
|
2696
|
-
for (var L = 0,
|
|
2697
|
-
ki(w,
|
|
2696
|
+
for (var L = 0, H = E; L < H.length; L++)
|
|
2697
|
+
ki(w, H[L], !0);
|
|
2698
2698
|
return w;
|
|
2699
2699
|
}({}, r.defaultProps, k) : k;
|
|
2700
2700
|
} }), process.env.NODE_ENV !== "production" && (Gu(g, b), S.warnTooManyClasses = function(k, w) {
|
|
2701
2701
|
var E = {}, T = !1;
|
|
2702
2702
|
return function(L) {
|
|
2703
2703
|
if (!T && (E[L] = !0, Object.keys(E).length >= 200)) {
|
|
2704
|
-
var
|
|
2705
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(k).concat(
|
|
2704
|
+
var H = w ? ' with the id of "'.concat(w, '"') : "";
|
|
2705
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(k).concat(H, `.
|
|
2706
2706
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
2707
2707
|
Example:
|
|
2708
2708
|
const Component = styled.div.attrs(props => ({
|
|
@@ -3801,7 +3801,7 @@ const qd = ({
|
|
|
3801
3801
|
noRadius: A,
|
|
3802
3802
|
onChange: S
|
|
3803
3803
|
}) => {
|
|
3804
|
-
const [k, w] = U(a || v), [E, T] = U("password"), [L,
|
|
3804
|
+
const [k, w] = U(a || v), [E, T] = U("password"), [L, H] = U(n === "number" ? 0 : ""), ee = me(null), oe = (X) => {
|
|
3805
3805
|
const j = X.target.value.length, $ = X.target.maxLength || 0;
|
|
3806
3806
|
w($ - j), S && S(X);
|
|
3807
3807
|
}, B = () => {
|
|
@@ -3810,28 +3810,28 @@ const qd = ({
|
|
|
3810
3810
|
);
|
|
3811
3811
|
}, R = (X) => {
|
|
3812
3812
|
const j = X.target.value;
|
|
3813
|
-
|
|
3813
|
+
H(n === "number" ? Number(j) : j), S && S(X);
|
|
3814
3814
|
}, M = () => {
|
|
3815
|
-
if (
|
|
3816
|
-
const X = Number(
|
|
3817
|
-
|
|
3815
|
+
if (ee.current) {
|
|
3816
|
+
const X = Number(ee.current.value) + 1;
|
|
3817
|
+
H(X.toString());
|
|
3818
3818
|
const j = {
|
|
3819
3819
|
value: X.toString(),
|
|
3820
3820
|
name: I
|
|
3821
3821
|
};
|
|
3822
3822
|
S && S({ target: j });
|
|
3823
3823
|
}
|
|
3824
|
-
},
|
|
3825
|
-
if (
|
|
3826
|
-
const X = Number(
|
|
3827
|
-
|
|
3824
|
+
}, Z = () => {
|
|
3825
|
+
if (ee.current) {
|
|
3826
|
+
const X = Number(ee.current.value) - 1;
|
|
3827
|
+
H(X.toString());
|
|
3828
3828
|
const j = {
|
|
3829
3829
|
value: X.toString(),
|
|
3830
3830
|
name: I
|
|
3831
3831
|
};
|
|
3832
3832
|
S && S({ target: j });
|
|
3833
3833
|
}
|
|
3834
|
-
},
|
|
3834
|
+
}, N = {
|
|
3835
3835
|
position: "absolute",
|
|
3836
3836
|
right: 0,
|
|
3837
3837
|
left: 0,
|
|
@@ -3842,7 +3842,7 @@ const qd = ({
|
|
|
3842
3842
|
color: "red",
|
|
3843
3843
|
borderRadius: "5px"
|
|
3844
3844
|
};
|
|
3845
|
-
return
|
|
3845
|
+
return ke(() => {
|
|
3846
3846
|
w(a);
|
|
3847
3847
|
}, [a, v, L]), /* @__PURE__ */ o(V, { children: g ? /* @__PURE__ */ o(ri, { type: n, loading: g, forSlider: x, children: /* @__PURE__ */ y(
|
|
3848
3848
|
xt,
|
|
@@ -3852,7 +3852,7 @@ const qd = ({
|
|
|
3852
3852
|
children: [
|
|
3853
3853
|
/* @__PURE__ */ y(ii, { children: [
|
|
3854
3854
|
/* @__PURE__ */ o(ca, { children: t }),
|
|
3855
|
-
/* @__PURE__ */ o(Te, { style:
|
|
3855
|
+
/* @__PURE__ */ o(Te, { style: N, count: 1 })
|
|
3856
3856
|
] }),
|
|
3857
3857
|
/* @__PURE__ */ y(ii, { style: { width: "100%" }, children: [
|
|
3858
3858
|
n === "textarea" ? /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
@@ -3883,11 +3883,11 @@ const qd = ({
|
|
|
3883
3883
|
readOnly: p
|
|
3884
3884
|
}
|
|
3885
3885
|
) }),
|
|
3886
|
-
/* @__PURE__ */ o(Te, { style:
|
|
3886
|
+
/* @__PURE__ */ o(Te, { style: N, count: 1 })
|
|
3887
3887
|
] }),
|
|
3888
3888
|
/* @__PURE__ */ y(ii, { children: [
|
|
3889
3889
|
/* @__PURE__ */ o(sa, { children: e }),
|
|
3890
|
-
/* @__PURE__ */ o(Te, { style:
|
|
3890
|
+
/* @__PURE__ */ o(Te, { style: N, count: 1 })
|
|
3891
3891
|
] })
|
|
3892
3892
|
]
|
|
3893
3893
|
}
|
|
@@ -3979,7 +3979,7 @@ const qd = ({
|
|
|
3979
3979
|
readOnly: p,
|
|
3980
3980
|
disabled: u,
|
|
3981
3981
|
forModal: f,
|
|
3982
|
-
onClick:
|
|
3982
|
+
onClick: Z,
|
|
3983
3983
|
children: hc
|
|
3984
3984
|
}
|
|
3985
3985
|
),
|
|
@@ -4013,7 +4013,7 @@ const qd = ({
|
|
|
4013
4013
|
/* @__PURE__ */ o(
|
|
4014
4014
|
ni,
|
|
4015
4015
|
{
|
|
4016
|
-
ref:
|
|
4016
|
+
ref: ee,
|
|
4017
4017
|
type: "date",
|
|
4018
4018
|
id: "date",
|
|
4019
4019
|
error: l,
|
|
@@ -4053,7 +4053,7 @@ const qd = ({
|
|
|
4053
4053
|
] }) : /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
4054
4054
|
ni,
|
|
4055
4055
|
{
|
|
4056
|
-
ref:
|
|
4056
|
+
ref: ee,
|
|
4057
4057
|
type: n === "password" ? E : n,
|
|
4058
4058
|
error: l,
|
|
4059
4059
|
size: s,
|
|
@@ -4309,10 +4309,10 @@ const oi = h.div`
|
|
|
4309
4309
|
};
|
|
4310
4310
|
x && x({ target: R });
|
|
4311
4311
|
}
|
|
4312
|
-
},
|
|
4312
|
+
}, H = (B) => {
|
|
4313
4313
|
const { value: R } = B.target;
|
|
4314
4314
|
S(B.target.maxLength - R.length), x && x(B);
|
|
4315
|
-
},
|
|
4315
|
+
}, ee = (B) => {
|
|
4316
4316
|
const R = B.target.value;
|
|
4317
4317
|
w(n === "number" ? Number(R) : R), x && x(B);
|
|
4318
4318
|
}, oe = {
|
|
@@ -4326,7 +4326,7 @@ const oi = h.div`
|
|
|
4326
4326
|
color: "red",
|
|
4327
4327
|
borderRadius: "8px"
|
|
4328
4328
|
};
|
|
4329
|
-
return
|
|
4329
|
+
return ke(() => {
|
|
4330
4330
|
S(a);
|
|
4331
4331
|
}, [a, m, k]), /* @__PURE__ */ o(V, { children: p ? /* @__PURE__ */ o(oi, { type: n, loading: p, children: /* @__PURE__ */ o(
|
|
4332
4332
|
xt,
|
|
@@ -4389,7 +4389,7 @@ const oi = h.div`
|
|
|
4389
4389
|
{
|
|
4390
4390
|
maxLength: a,
|
|
4391
4391
|
value: m,
|
|
4392
|
-
onChange:
|
|
4392
|
+
onChange: H,
|
|
4393
4393
|
cols: s,
|
|
4394
4394
|
id: b,
|
|
4395
4395
|
rows: i,
|
|
@@ -4442,7 +4442,7 @@ const oi = h.div`
|
|
|
4442
4442
|
fa,
|
|
4443
4443
|
{
|
|
4444
4444
|
value: n !== "number" ? m : k,
|
|
4445
|
-
onChange:
|
|
4445
|
+
onChange: ee,
|
|
4446
4446
|
type: n,
|
|
4447
4447
|
error: l,
|
|
4448
4448
|
maxLength: a,
|
|
@@ -4754,7 +4754,7 @@ line-height: 28px;
|
|
|
4754
4754
|
},
|
|
4755
4755
|
[u]
|
|
4756
4756
|
);
|
|
4757
|
-
|
|
4757
|
+
ke(() => (r && document.addEventListener("mousedown", I), () => {
|
|
4758
4758
|
document.removeEventListener("mousedown", I);
|
|
4759
4759
|
}), [r, I]);
|
|
4760
4760
|
const f = (x, m) => m === 0 && (i == null ? void 0 : i.length) === 3 ? "70%" : "50%";
|
|
@@ -5199,7 +5199,7 @@ const ma = (e) => {
|
|
|
5199
5199
|
}, g = (b) => {
|
|
5200
5200
|
d.current && !d.current.contains(b.target) && s(!1);
|
|
5201
5201
|
};
|
|
5202
|
-
return
|
|
5202
|
+
return ke(() => (document.addEventListener("click", g), () => {
|
|
5203
5203
|
document.removeEventListener("click", g);
|
|
5204
5204
|
}), []), /* @__PURE__ */ o(V, { children: /* @__PURE__ */ y(H0, { ref: d, drop: a, ...e, children: [
|
|
5205
5205
|
/* @__PURE__ */ o(M0, { ...e, children: i === "default" || i === "combo button" ? /* @__PURE__ */ o(V, { children: /* @__PURE__ */ y("div", { onClick: p, style: { width: "100%" }, children: [
|
|
@@ -5633,50 +5633,50 @@ const Z0 = {
|
|
|
5633
5633
|
clearFiles: v,
|
|
5634
5634
|
view: I,
|
|
5635
5635
|
noList: f
|
|
5636
|
-
} = e, [x, m] = U([]), [A, S] = U(!1), [k, w] = U([]), [E, T] = U(!1), [L,
|
|
5637
|
-
const X = x[
|
|
5638
|
-
X && (
|
|
5639
|
-
}, oe = (
|
|
5640
|
-
|
|
5641
|
-
const X = Array.from(
|
|
5636
|
+
} = e, [x, m] = U([]), [A, S] = U(!1), [k, w] = U([]), [E, T] = U(!1), [L, H] = U(null), ee = (N) => {
|
|
5637
|
+
const X = x[N];
|
|
5638
|
+
X && (H(URL.createObjectURL(X)), T(!0));
|
|
5639
|
+
}, oe = (N) => {
|
|
5640
|
+
N.stopPropagation();
|
|
5641
|
+
const X = Array.from(N.target.files || []);
|
|
5642
5642
|
m((j) => {
|
|
5643
5643
|
const $ = X.filter(
|
|
5644
|
-
(
|
|
5644
|
+
(D) => !j.some((te) => te.name === D.name)
|
|
5645
5645
|
);
|
|
5646
5646
|
return [...j, ...$];
|
|
5647
|
-
}), n && n(
|
|
5648
|
-
}, B = (
|
|
5649
|
-
m((X) => X.filter((j, $) => $ !==
|
|
5650
|
-
(X) => X.filter((j) => j !==
|
|
5651
|
-
), i && i(
|
|
5652
|
-
}, R = (
|
|
5653
|
-
|
|
5647
|
+
}), n && n(N);
|
|
5648
|
+
}, B = (N) => {
|
|
5649
|
+
m((X) => X.filter((j, $) => $ !== N)), w(
|
|
5650
|
+
(X) => X.filter((j) => j !== N)
|
|
5651
|
+
), i && i(N);
|
|
5652
|
+
}, R = (N) => {
|
|
5653
|
+
N.preventDefault(), S(!0);
|
|
5654
5654
|
}, M = () => {
|
|
5655
5655
|
S(!1);
|
|
5656
|
-
},
|
|
5657
|
-
|
|
5658
|
-
const X = Array.from(
|
|
5656
|
+
}, Z = (N) => {
|
|
5657
|
+
N.preventDefault(), S(!1);
|
|
5658
|
+
const X = Array.from(N.dataTransfer.files);
|
|
5659
5659
|
if (m((j) => {
|
|
5660
5660
|
const $ = X.filter(
|
|
5661
|
-
(
|
|
5661
|
+
(D) => !j.some((te) => te.name === D.name)
|
|
5662
5662
|
);
|
|
5663
5663
|
return [...j, ...$];
|
|
5664
5664
|
}), n) {
|
|
5665
5665
|
const j = {
|
|
5666
|
-
...
|
|
5667
|
-
target: { files:
|
|
5666
|
+
...N,
|
|
5667
|
+
target: { files: N.dataTransfer.files }
|
|
5668
5668
|
};
|
|
5669
5669
|
n(
|
|
5670
5670
|
j
|
|
5671
5671
|
);
|
|
5672
5672
|
}
|
|
5673
5673
|
};
|
|
5674
|
-
return
|
|
5675
|
-
const
|
|
5674
|
+
return ke(() => {
|
|
5675
|
+
const N = setTimeout(() => {
|
|
5676
5676
|
w(() => [...x.filter((j) => j.name).map((j) => j.name)]);
|
|
5677
5677
|
}, 500);
|
|
5678
|
-
return () => clearTimeout(
|
|
5679
|
-
}, [x]),
|
|
5678
|
+
return () => clearTimeout(N);
|
|
5679
|
+
}, [x]), ke(() => {
|
|
5680
5680
|
v && m([]);
|
|
5681
5681
|
}, [v]), /* @__PURE__ */ o(V, { children: s ? /* @__PURE__ */ o(V, { children: /* @__PURE__ */ y(
|
|
5682
5682
|
xt,
|
|
@@ -5730,7 +5730,7 @@ const Z0 = {
|
|
|
5730
5730
|
...e,
|
|
5731
5731
|
onDragOver: R,
|
|
5732
5732
|
onDragLeave: M,
|
|
5733
|
-
onDrop:
|
|
5733
|
+
onDrop: Z,
|
|
5734
5734
|
on: A,
|
|
5735
5735
|
disabled: r,
|
|
5736
5736
|
accept: u,
|
|
@@ -5753,28 +5753,28 @@ const Z0 = {
|
|
|
5753
5753
|
}
|
|
5754
5754
|
),
|
|
5755
5755
|
!f && /* @__PURE__ */ y(X0, { ...e, children: [
|
|
5756
|
-
x.map((
|
|
5756
|
+
x.map((N, X) => /* @__PURE__ */ y(
|
|
5757
5757
|
z0,
|
|
5758
5758
|
{
|
|
5759
|
-
error: Number((
|
|
5759
|
+
error: Number((N.size / (1024 * 1024)).toFixed(5)) >= a,
|
|
5760
5760
|
...e,
|
|
5761
5761
|
children: [
|
|
5762
5762
|
/* @__PURE__ */ y(Y0, { ...e, children: [
|
|
5763
|
-
/* @__PURE__ */ o(j0, { children:
|
|
5763
|
+
/* @__PURE__ */ o(j0, { children: N.name }),
|
|
5764
5764
|
/* @__PURE__ */ y(J0, { ...e, children: [
|
|
5765
|
-
/* @__PURE__ */ o(_0, { children: k.includes(
|
|
5765
|
+
/* @__PURE__ */ o(_0, { children: k.includes(N.name) ? /* @__PURE__ */ o("span", { onClick: () => B(X), children: fr }) : /* @__PURE__ */ o(np, { status: "active" }) }),
|
|
5766
5766
|
I && /* @__PURE__ */ o(
|
|
5767
5767
|
U0,
|
|
5768
5768
|
{
|
|
5769
|
-
onClick: () =>
|
|
5769
|
+
onClick: () => ee(X),
|
|
5770
5770
|
...e,
|
|
5771
5771
|
children: Md
|
|
5772
5772
|
}
|
|
5773
5773
|
),
|
|
5774
|
-
Number((
|
|
5774
|
+
Number((N.size / (1024 * 1024)).toFixed(5)) >= a && /* @__PURE__ */ o("img", { src: Ue })
|
|
5775
5775
|
] })
|
|
5776
5776
|
] }),
|
|
5777
|
-
Number((
|
|
5777
|
+
Number((N.size / (1024 * 1024)).toFixed(5)) >= a && /* @__PURE__ */ y(
|
|
5778
5778
|
"div",
|
|
5779
5779
|
{
|
|
5780
5780
|
style: {
|
|
@@ -5792,7 +5792,7 @@ const Z0 = {
|
|
|
5792
5792
|
)
|
|
5793
5793
|
]
|
|
5794
5794
|
},
|
|
5795
|
-
|
|
5795
|
+
N.name
|
|
5796
5796
|
)),
|
|
5797
5797
|
x.length > 0 && /* @__PURE__ */ o(
|
|
5798
5798
|
C0,
|
|
@@ -6358,22 +6358,22 @@ letter-spacing: 0.16px;
|
|
|
6358
6358
|
}, L = (B) => {
|
|
6359
6359
|
const R = B.target.value;
|
|
6360
6360
|
console.log(R), x && (x == null ? void 0 : x.length) > 0 && S(!0), m(R), u && u(B);
|
|
6361
|
-
},
|
|
6361
|
+
}, H = {
|
|
6362
6362
|
position: "absolute",
|
|
6363
6363
|
top: "0",
|
|
6364
6364
|
right: "0",
|
|
6365
6365
|
bottom: "0",
|
|
6366
6366
|
padding: "0",
|
|
6367
6367
|
left: "0"
|
|
6368
|
-
},
|
|
6368
|
+
}, ee = (B) => B.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
6369
6369
|
l.filter((B) => {
|
|
6370
|
-
const R =
|
|
6370
|
+
const R = ee(B.label).toLowerCase(), M = ee(x || "").toLowerCase();
|
|
6371
6371
|
return R.includes(M);
|
|
6372
6372
|
});
|
|
6373
6373
|
const oe = l;
|
|
6374
|
-
return
|
|
6374
|
+
return ke(() => (document.addEventListener("mousedown", T), () => {
|
|
6375
6375
|
document.removeEventListener("mousedown", T);
|
|
6376
|
-
}), []),
|
|
6376
|
+
}), []), ke(() => {
|
|
6377
6377
|
f && m(s || "Selecione");
|
|
6378
6378
|
}, [f, d]), /* @__PURE__ */ o(V, { children: b ? /* @__PURE__ */ o(
|
|
6379
6379
|
xt,
|
|
@@ -6388,7 +6388,7 @@ letter-spacing: 0.16px;
|
|
|
6388
6388
|
style: { top: "0", left: "0", wordWrap: "break-word" },
|
|
6389
6389
|
children: [
|
|
6390
6390
|
i,
|
|
6391
|
-
/* @__PURE__ */ o(Te, { count: 1, style:
|
|
6391
|
+
/* @__PURE__ */ o(Te, { count: 1, style: H })
|
|
6392
6392
|
]
|
|
6393
6393
|
}
|
|
6394
6394
|
) }),
|
|
@@ -6414,15 +6414,15 @@ letter-spacing: 0.16px;
|
|
|
6414
6414
|
...e
|
|
6415
6415
|
}
|
|
6416
6416
|
),
|
|
6417
|
-
/* @__PURE__ */ o(Te, { count: 1, style:
|
|
6417
|
+
/* @__PURE__ */ o(Te, { count: 1, style: H })
|
|
6418
6418
|
]
|
|
6419
6419
|
}
|
|
6420
6420
|
),
|
|
6421
6421
|
r === "default" && a && /* @__PURE__ */ o("div", { style: { position: "relative", margin: "0", padding: "0", display: "flex;" }, children: /* @__PURE__ */ y(La, { ...e, children: [
|
|
6422
6422
|
/* @__PURE__ */ o("p", { style: { margin: "0", padding: "0", wordWrap: "break-word", width: "100%", boxSizing: "border-box" }, children: a }),
|
|
6423
|
-
/* @__PURE__ */ o(Te, { count: 1, style:
|
|
6423
|
+
/* @__PURE__ */ o(Te, { count: 1, style: H })
|
|
6424
6424
|
] }) }),
|
|
6425
|
-
r === "fluid" && /* @__PURE__ */ o(Te, { count: 1, style:
|
|
6425
|
+
r === "fluid" && /* @__PURE__ */ o(Te, { count: 1, style: H })
|
|
6426
6426
|
] })
|
|
6427
6427
|
}
|
|
6428
6428
|
) : /* @__PURE__ */ y($a, { ...e, ref: k, tabIndex: 1, children: [
|
|
@@ -7217,19 +7217,19 @@ function yt(e, t) {
|
|
|
7217
7217
|
}
|
|
7218
7218
|
var Pp = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
7219
7219
|
function Bp(e) {
|
|
7220
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, a = e.defaultValue, l = a === void 0 ? null : a, u = e.inputValue, s = e.menuIsOpen, d = e.onChange, p = e.onInputChange, g = e.onMenuClose, b = e.onMenuOpen, v = e.value, I = yt(e, Pp), f = U(u !== void 0 ? u : n), x = vt(f, 2), m = x[0], A = x[1], S = U(s !== void 0 ? s : r), k = vt(S, 2), w = k[0], E = k[1], T = U(v !== void 0 ? v : l), L = vt(T, 2),
|
|
7221
|
-
typeof d == "function" && d(j, $),
|
|
7220
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, i = e.defaultMenuIsOpen, r = i === void 0 ? !1 : i, a = e.defaultValue, l = a === void 0 ? null : a, u = e.inputValue, s = e.menuIsOpen, d = e.onChange, p = e.onInputChange, g = e.onMenuClose, b = e.onMenuOpen, v = e.value, I = yt(e, Pp), f = U(u !== void 0 ? u : n), x = vt(f, 2), m = x[0], A = x[1], S = U(s !== void 0 ? s : r), k = vt(S, 2), w = k[0], E = k[1], T = U(v !== void 0 ? v : l), L = vt(T, 2), H = L[0], ee = L[1], oe = q(function(j, $) {
|
|
7221
|
+
typeof d == "function" && d(j, $), ee(j);
|
|
7222
7222
|
}, [d]), B = q(function(j, $) {
|
|
7223
|
-
var
|
|
7224
|
-
typeof p == "function" && (
|
|
7223
|
+
var D;
|
|
7224
|
+
typeof p == "function" && (D = p(j, $)), A(D !== void 0 ? D : j);
|
|
7225
7225
|
}, [p]), R = q(function() {
|
|
7226
7226
|
typeof b == "function" && b(), E(!0);
|
|
7227
7227
|
}, [b]), M = q(function() {
|
|
7228
7228
|
typeof g == "function" && g(), E(!1);
|
|
7229
|
-
}, [g]),
|
|
7229
|
+
}, [g]), Z = u !== void 0 ? u : m, N = s !== void 0 ? s : w, X = v !== void 0 ? v : H;
|
|
7230
7230
|
return J(J({}, I), {}, {
|
|
7231
|
-
inputValue:
|
|
7232
|
-
menuIsOpen:
|
|
7231
|
+
inputValue: Z,
|
|
7232
|
+
menuIsOpen: N,
|
|
7233
7233
|
onChange: oe,
|
|
7234
7234
|
onInputChange: B,
|
|
7235
7235
|
onMenuClose: M,
|
|
@@ -7982,16 +7982,16 @@ var nl;
|
|
|
7982
7982
|
function vf() {
|
|
7983
7983
|
return nl || (nl = 1, process.env.NODE_ENV !== "production" && function() {
|
|
7984
7984
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, m = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
|
|
7985
|
-
function S(
|
|
7986
|
-
return typeof
|
|
7987
|
-
|
|
7985
|
+
function S(W) {
|
|
7986
|
+
return typeof W == "string" || typeof W == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
7987
|
+
W === i || W === d || W === a || W === r || W === g || W === b || typeof W == "object" && W !== null && (W.$$typeof === I || W.$$typeof === v || W.$$typeof === l || W.$$typeof === u || W.$$typeof === p || W.$$typeof === x || W.$$typeof === m || W.$$typeof === A || W.$$typeof === f);
|
|
7988
7988
|
}
|
|
7989
|
-
function k(
|
|
7990
|
-
if (typeof
|
|
7991
|
-
var ut =
|
|
7989
|
+
function k(W) {
|
|
7990
|
+
if (typeof W == "object" && W !== null) {
|
|
7991
|
+
var ut = W.$$typeof;
|
|
7992
7992
|
switch (ut) {
|
|
7993
7993
|
case t:
|
|
7994
|
-
var ot =
|
|
7994
|
+
var ot = W.type;
|
|
7995
7995
|
switch (ot) {
|
|
7996
7996
|
case s:
|
|
7997
7997
|
case d:
|
|
@@ -8018,47 +8018,47 @@ function vf() {
|
|
|
8018
8018
|
}
|
|
8019
8019
|
}
|
|
8020
8020
|
}
|
|
8021
|
-
var w = s, E = d, T = u, L = l,
|
|
8022
|
-
function $(
|
|
8023
|
-
return j || (j = !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.")),
|
|
8021
|
+
var w = s, E = d, T = u, L = l, H = t, ee = p, oe = i, B = I, R = v, M = n, Z = a, N = r, X = g, j = !1;
|
|
8022
|
+
function $(W) {
|
|
8023
|
+
return j || (j = !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.")), D(W) || k(W) === s;
|
|
8024
8024
|
}
|
|
8025
|
-
function
|
|
8026
|
-
return k(
|
|
8025
|
+
function D(W) {
|
|
8026
|
+
return k(W) === d;
|
|
8027
8027
|
}
|
|
8028
|
-
function
|
|
8029
|
-
return k(
|
|
8028
|
+
function te(W) {
|
|
8029
|
+
return k(W) === u;
|
|
8030
8030
|
}
|
|
8031
|
-
function Q(
|
|
8032
|
-
return k(
|
|
8031
|
+
function Q(W) {
|
|
8032
|
+
return k(W) === l;
|
|
8033
8033
|
}
|
|
8034
|
-
function ue(
|
|
8035
|
-
return typeof
|
|
8034
|
+
function ue(W) {
|
|
8035
|
+
return typeof W == "object" && W !== null && W.$$typeof === t;
|
|
8036
8036
|
}
|
|
8037
|
-
function Ae(
|
|
8038
|
-
return k(
|
|
8037
|
+
function Ae(W) {
|
|
8038
|
+
return k(W) === p;
|
|
8039
8039
|
}
|
|
8040
|
-
function ve(
|
|
8041
|
-
return k(
|
|
8040
|
+
function ve(W) {
|
|
8041
|
+
return k(W) === i;
|
|
8042
8042
|
}
|
|
8043
|
-
function ye(
|
|
8044
|
-
return k(
|
|
8043
|
+
function ye(W) {
|
|
8044
|
+
return k(W) === I;
|
|
8045
8045
|
}
|
|
8046
|
-
function
|
|
8047
|
-
return k(
|
|
8046
|
+
function Pe(W) {
|
|
8047
|
+
return k(W) === v;
|
|
8048
8048
|
}
|
|
8049
|
-
function Ce(
|
|
8050
|
-
return k(
|
|
8049
|
+
function Ce(W) {
|
|
8050
|
+
return k(W) === n;
|
|
8051
8051
|
}
|
|
8052
|
-
function Ve(
|
|
8053
|
-
return k(
|
|
8052
|
+
function Ve(W) {
|
|
8053
|
+
return k(W) === a;
|
|
8054
8054
|
}
|
|
8055
|
-
function ze(
|
|
8056
|
-
return k(
|
|
8055
|
+
function ze(W) {
|
|
8056
|
+
return k(W) === r;
|
|
8057
8057
|
}
|
|
8058
|
-
function je(
|
|
8059
|
-
return k(
|
|
8058
|
+
function je(W) {
|
|
8059
|
+
return k(W) === g;
|
|
8060
8060
|
}
|
|
8061
|
-
he.AsyncMode = w, he.ConcurrentMode = E, he.ContextConsumer = T, he.ContextProvider = L, he.Element =
|
|
8061
|
+
he.AsyncMode = w, he.ConcurrentMode = E, he.ContextConsumer = T, he.ContextProvider = L, he.Element = H, he.ForwardRef = ee, he.Fragment = oe, he.Lazy = B, he.Memo = R, he.Portal = M, he.Profiler = Z, he.StrictMode = N, he.Suspense = X, he.isAsyncMode = $, he.isConcurrentMode = D, he.isContextConsumer = te, he.isContextProvider = Q, he.isElement = ue, he.isForwardRef = Ae, he.isFragment = ve, he.isLazy = ye, he.isMemo = Pe, he.isPortal = Ce, he.isProfiler = Ve, he.isStrictMode = ze, he.isSuspense = je, he.isValidElementType = S, he.typeOf = k;
|
|
8062
8062
|
}()), he;
|
|
8063
8063
|
}
|
|
8064
8064
|
process.env.NODE_ENV === "production" ? Gi.exports = mf() : Gi.exports = vf();
|
|
@@ -8756,7 +8756,7 @@ function vg(e) {
|
|
|
8756
8756
|
};
|
|
8757
8757
|
if (!n || !n.offsetParent)
|
|
8758
8758
|
return d;
|
|
8759
|
-
var p = s.getBoundingClientRect(), g = p.height, b = n.getBoundingClientRect(), v = b.bottom, I = b.height, f = b.top, x = n.offsetParent.getBoundingClientRect(), m = x.top, A = l ? window.innerHeight : ag(s), S = Xc(s), k = parseInt(getComputedStyle(n).marginBottom, 10), w = parseInt(getComputedStyle(n).marginTop, 10), E = m - w, T = A - f, L = E + S,
|
|
8759
|
+
var p = s.getBoundingClientRect(), g = p.height, b = n.getBoundingClientRect(), v = b.bottom, I = b.height, f = b.top, x = n.offsetParent.getBoundingClientRect(), m = x.top, A = l ? window.innerHeight : ag(s), S = Xc(s), k = parseInt(getComputedStyle(n).marginBottom, 10), w = parseInt(getComputedStyle(n).marginTop, 10), E = m - w, T = A - f, L = E + S, H = g - S - f, ee = v - A + S + k, oe = S + f - w, B = 160;
|
|
8760
8760
|
switch (r) {
|
|
8761
8761
|
case "auto":
|
|
8762
8762
|
case "bottom":
|
|
@@ -8765,28 +8765,28 @@ function vg(e) {
|
|
|
8765
8765
|
placement: "bottom",
|
|
8766
8766
|
maxHeight: t
|
|
8767
8767
|
};
|
|
8768
|
-
if (
|
|
8769
|
-
return a && zn(s,
|
|
8768
|
+
if (H >= I && !l)
|
|
8769
|
+
return a && zn(s, ee, B), {
|
|
8770
8770
|
placement: "bottom",
|
|
8771
8771
|
maxHeight: t
|
|
8772
8772
|
};
|
|
8773
|
-
if (!l &&
|
|
8774
|
-
a && zn(s,
|
|
8775
|
-
var R = l ? T - k :
|
|
8773
|
+
if (!l && H >= i || l && T >= i) {
|
|
8774
|
+
a && zn(s, ee, B);
|
|
8775
|
+
var R = l ? T - k : H - k;
|
|
8776
8776
|
return {
|
|
8777
8777
|
placement: "bottom",
|
|
8778
8778
|
maxHeight: R
|
|
8779
8779
|
};
|
|
8780
8780
|
}
|
|
8781
8781
|
if (r === "auto" || l) {
|
|
8782
|
-
var M = t,
|
|
8783
|
-
return
|
|
8782
|
+
var M = t, Z = l ? E : L;
|
|
8783
|
+
return Z >= i && (M = Math.min(Z - k - u, t)), {
|
|
8784
8784
|
placement: "top",
|
|
8785
8785
|
maxHeight: M
|
|
8786
8786
|
};
|
|
8787
8787
|
}
|
|
8788
8788
|
if (r === "bottom")
|
|
8789
|
-
return a && yr(s,
|
|
8789
|
+
return a && yr(s, ee), {
|
|
8790
8790
|
placement: "bottom",
|
|
8791
8791
|
maxHeight: t
|
|
8792
8792
|
};
|
|
@@ -8803,10 +8803,10 @@ function vg(e) {
|
|
|
8803
8803
|
maxHeight: t
|
|
8804
8804
|
};
|
|
8805
8805
|
if (!l && L >= i || l && E >= i) {
|
|
8806
|
-
var
|
|
8807
|
-
return (!l && L >= i || l && E >= i) && (
|
|
8806
|
+
var N = t;
|
|
8807
|
+
return (!l && L >= i || l && E >= i) && (N = l ? E - w : L - w), a && zn(s, oe, B), {
|
|
8808
8808
|
placement: "top",
|
|
8809
|
-
maxHeight:
|
|
8809
|
+
maxHeight: N
|
|
8810
8810
|
};
|
|
8811
8811
|
}
|
|
8812
8812
|
return {
|
|
@@ -8930,9 +8930,9 @@ var jc = function(t) {
|
|
|
8930
8930
|
};
|
|
8931
8931
|
}, []), f = U(null), x = vt(f, 2), m = x[0], A = x[1], S = q(function() {
|
|
8932
8932
|
if (r) {
|
|
8933
|
-
var T = cg(r), L = u === "fixed" ? 0 : window.pageYOffset,
|
|
8934
|
-
(
|
|
8935
|
-
offset:
|
|
8933
|
+
var T = cg(r), L = u === "fixed" ? 0 : window.pageYOffset, H = T[b] + L;
|
|
8934
|
+
(H !== (m == null ? void 0 : m.offset) || T.left !== (m == null ? void 0 : m.rect.left) || T.width !== (m == null ? void 0 : m.rect.width)) && A({
|
|
8935
|
+
offset: H,
|
|
8936
8936
|
rect: T
|
|
8937
8937
|
});
|
|
8938
8938
|
}
|
|
@@ -9533,56 +9533,56 @@ var M2 = process.env.NODE_ENV === "production" ? {
|
|
|
9533
9533
|
}, O2 = function(t) {
|
|
9534
9534
|
var n = t.ariaSelection, i = t.focusedOption, r = t.focusedValue, a = t.focusableOptions, l = t.isFocused, u = t.selectValue, s = t.selectProps, d = t.id, p = t.isAppleDevice, g = s.ariaLiveMessages, b = s.getOptionLabel, v = s.inputValue, I = s.isMulti, f = s.isOptionDisabled, x = s.isSearchable, m = s.menuIsOpen, A = s.options, S = s.screenReaderStatus, k = s.tabSelectsValue, w = s.isLoading, E = s["aria-label"], T = s["aria-live"], L = Ne(function() {
|
|
9535
9535
|
return J(J({}, G2), g || {});
|
|
9536
|
-
}, [g]),
|
|
9537
|
-
var
|
|
9536
|
+
}, [g]), H = Ne(function() {
|
|
9537
|
+
var Z = "";
|
|
9538
9538
|
if (n && L.onChange) {
|
|
9539
|
-
var
|
|
9539
|
+
var N = n.option, X = n.options, j = n.removedValue, $ = n.removedValues, D = n.value, te = function(Ce) {
|
|
9540
9540
|
return Array.isArray(Ce) ? null : Ce;
|
|
9541
|
-
}, Q = j ||
|
|
9541
|
+
}, Q = j || N || te(D), ue = Q ? b(Q) : "", Ae = X || $ || void 0, ve = Ae ? Ae.map(b) : [], ye = J({
|
|
9542
9542
|
// multiSelected items are usually items that have already been selected
|
|
9543
9543
|
// or set by the user as a default value so we assume they are not disabled
|
|
9544
9544
|
isDisabled: Q && f(Q, u),
|
|
9545
9545
|
label: ue,
|
|
9546
9546
|
labels: ve
|
|
9547
9547
|
}, n);
|
|
9548
|
-
|
|
9548
|
+
Z = L.onChange(ye);
|
|
9549
9549
|
}
|
|
9550
|
-
return
|
|
9551
|
-
}, [n, L, f, u, b]),
|
|
9552
|
-
var
|
|
9553
|
-
if (
|
|
9550
|
+
return Z;
|
|
9551
|
+
}, [n, L, f, u, b]), ee = Ne(function() {
|
|
9552
|
+
var Z = "", N = i || r, X = !!(i && u && u.includes(i));
|
|
9553
|
+
if (N && L.onFocus) {
|
|
9554
9554
|
var j = {
|
|
9555
|
-
focused:
|
|
9556
|
-
label: b(
|
|
9557
|
-
isDisabled: f(
|
|
9555
|
+
focused: N,
|
|
9556
|
+
label: b(N),
|
|
9557
|
+
isDisabled: f(N, u),
|
|
9558
9558
|
isSelected: X,
|
|
9559
9559
|
options: a,
|
|
9560
|
-
context:
|
|
9560
|
+
context: N === i ? "menu" : "value",
|
|
9561
9561
|
selectValue: u,
|
|
9562
9562
|
isAppleDevice: p
|
|
9563
9563
|
};
|
|
9564
|
-
|
|
9564
|
+
Z = L.onFocus(j);
|
|
9565
9565
|
}
|
|
9566
|
-
return
|
|
9566
|
+
return Z;
|
|
9567
9567
|
}, [i, r, b, f, L, a, u, p]), oe = Ne(function() {
|
|
9568
|
-
var
|
|
9568
|
+
var Z = "";
|
|
9569
9569
|
if (m && A.length && !w && L.onFilter) {
|
|
9570
|
-
var
|
|
9570
|
+
var N = S({
|
|
9571
9571
|
count: a.length
|
|
9572
9572
|
});
|
|
9573
|
-
|
|
9573
|
+
Z = L.onFilter({
|
|
9574
9574
|
inputValue: v,
|
|
9575
|
-
resultsMessage:
|
|
9575
|
+
resultsMessage: N
|
|
9576
9576
|
});
|
|
9577
9577
|
}
|
|
9578
|
-
return
|
|
9578
|
+
return Z;
|
|
9579
9579
|
}, [a, v, m, L, A, S, w]), B = (n == null ? void 0 : n.action) === "initial-input-focus", R = Ne(function() {
|
|
9580
|
-
var
|
|
9580
|
+
var Z = "";
|
|
9581
9581
|
if (L.guidance) {
|
|
9582
|
-
var
|
|
9583
|
-
|
|
9582
|
+
var N = r ? "value" : m ? "menu" : "input";
|
|
9583
|
+
Z = L.guidance({
|
|
9584
9584
|
"aria-label": E,
|
|
9585
|
-
context:
|
|
9585
|
+
context: N,
|
|
9586
9586
|
isDisabled: i && f(i, u),
|
|
9587
9587
|
isMulti: I,
|
|
9588
9588
|
isSearchable: x,
|
|
@@ -9590,12 +9590,12 @@ var M2 = process.env.NODE_ENV === "production" ? {
|
|
|
9590
9590
|
isInitialFocus: B
|
|
9591
9591
|
});
|
|
9592
9592
|
}
|
|
9593
|
-
return
|
|
9593
|
+
return Z;
|
|
9594
9594
|
}, [E, i, r, I, f, x, m, L, u, k, B]), M = Y(yi, null, Y("span", {
|
|
9595
9595
|
id: "aria-selection"
|
|
9596
|
-
},
|
|
9596
|
+
}, H), Y("span", {
|
|
9597
9597
|
id: "aria-focused"
|
|
9598
|
-
},
|
|
9598
|
+
}, ee), Y("span", {
|
|
9599
9599
|
id: "aria-results"
|
|
9600
9600
|
}, oe), Y("span", {
|
|
9601
9601
|
id: "aria-guidance"
|
|
@@ -9922,8 +9922,8 @@ var j2 = function(t) {
|
|
|
9922
9922
|
function _2(e) {
|
|
9923
9923
|
var t = e.isEnabled, n = e.onBottomArrive, i = e.onBottomLeave, r = e.onTopArrive, a = e.onTopLeave, l = me(!1), u = me(!1), s = me(0), d = me(null), p = q(function(x, m) {
|
|
9924
9924
|
if (d.current !== null) {
|
|
9925
|
-
var A = d.current, S = A.scrollTop, k = A.scrollHeight, w = A.clientHeight, E = d.current, T = m > 0, L = k - w - S,
|
|
9926
|
-
L > m && l.current && (i && i(x), l.current = !1), T && u.current && (a && a(x), u.current = !1), T && m > L ? (n && !l.current && n(x), E.scrollTop = k,
|
|
9925
|
+
var A = d.current, S = A.scrollTop, k = A.scrollHeight, w = A.clientHeight, E = d.current, T = m > 0, L = k - w - S, H = !1;
|
|
9926
|
+
L > m && l.current && (i && i(x), l.current = !1), T && u.current && (a && a(x), u.current = !1), T && m > L ? (n && !l.current && n(x), E.scrollTop = k, H = !0, l.current = !0) : !T && -m > S && (r && !u.current && r(x), E.scrollTop = 0, H = !0, u.current = !0), H && j2(x);
|
|
9927
9927
|
}
|
|
9928
9928
|
}, [n, i, r, a]), g = q(function(x) {
|
|
9929
9929
|
p(x, x.deltaY);
|
|
@@ -9942,7 +9942,7 @@ function _2(e) {
|
|
|
9942
9942
|
}, [v, b, g]), f = q(function(x) {
|
|
9943
9943
|
x && (x.removeEventListener("wheel", g, !1), x.removeEventListener("touchstart", b, !1), x.removeEventListener("touchmove", v, !1));
|
|
9944
9944
|
}, [v, b, g]);
|
|
9945
|
-
return
|
|
9945
|
+
return ke(function() {
|
|
9946
9946
|
if (t) {
|
|
9947
9947
|
var x = d.current;
|
|
9948
9948
|
return I(x), function() {
|
|
@@ -10002,7 +10002,7 @@ function Y2(e) {
|
|
|
10002
10002
|
}), d && yl() && (d.removeEventListener("touchmove", ml, Jt), s && (s.removeEventListener("touchstart", xl, Jt), s.removeEventListener("touchmove", vl, Jt)));
|
|
10003
10003
|
}
|
|
10004
10004
|
}, [i]);
|
|
10005
|
-
return
|
|
10005
|
+
return ke(function() {
|
|
10006
10006
|
if (t) {
|
|
10007
10007
|
var s = a.current;
|
|
10008
10008
|
return l(s), function() {
|
|
@@ -10900,18 +10900,18 @@ var c1 = function(t) {
|
|
|
10900
10900
|
}
|
|
10901
10901
|
}), A);
|
|
10902
10902
|
if (x)
|
|
10903
|
-
return k.map(function(L,
|
|
10904
|
-
var
|
|
10903
|
+
return k.map(function(L, H) {
|
|
10904
|
+
var ee = L === w, oe = "".concat(r.getOptionLabel(L), "-").concat(r.getOptionValue(L));
|
|
10905
10905
|
return /* @__PURE__ */ ie.createElement(l, K({}, b, {
|
|
10906
10906
|
components: {
|
|
10907
10907
|
Container: u,
|
|
10908
10908
|
Label: s,
|
|
10909
10909
|
Remove: d
|
|
10910
10910
|
},
|
|
10911
|
-
isFocused:
|
|
10911
|
+
isFocused: ee,
|
|
10912
10912
|
isDisabled: f,
|
|
10913
10913
|
key: oe,
|
|
10914
|
-
index:
|
|
10914
|
+
index: H,
|
|
10915
10915
|
removeProps: {
|
|
10916
10916
|
onClick: function() {
|
|
10917
10917
|
return r.removeValue(L);
|
|
@@ -10997,19 +10997,19 @@ var c1 = function(t) {
|
|
|
10997
10997
|
}, {
|
|
10998
10998
|
key: "renderMenu",
|
|
10999
10999
|
value: function() {
|
|
11000
|
-
var r = this, a = this.getComponents(), l = a.Group, u = a.GroupHeading, s = a.Menu, d = a.MenuList, p = a.MenuPortal, g = a.LoadingMessage, b = a.NoOptionsMessage, v = a.Option, I = this.commonProps, f = this.state.focusedOption, x = this.props, m = x.captureMenuScroll, A = x.inputValue, S = x.isLoading, k = x.loadingMessage, w = x.minMenuHeight, E = x.maxMenuHeight, T = x.menuIsOpen, L = x.menuPlacement,
|
|
11000
|
+
var r = this, a = this.getComponents(), l = a.Group, u = a.GroupHeading, s = a.Menu, d = a.MenuList, p = a.MenuPortal, g = a.LoadingMessage, b = a.NoOptionsMessage, v = a.Option, I = this.commonProps, f = this.state.focusedOption, x = this.props, m = x.captureMenuScroll, A = x.inputValue, S = x.isLoading, k = x.loadingMessage, w = x.minMenuHeight, E = x.maxMenuHeight, T = x.menuIsOpen, L = x.menuPlacement, H = x.menuPosition, ee = x.menuPortalTarget, oe = x.menuShouldBlockScroll, B = x.menuShouldScrollIntoView, R = x.noOptionsMessage, M = x.onMenuScrollToTop, Z = x.onMenuScrollToBottom;
|
|
11001
11001
|
if (!T)
|
|
11002
11002
|
return null;
|
|
11003
|
-
var
|
|
11004
|
-
var ve = ue.type, ye = ue.data,
|
|
11003
|
+
var N = function(ue, Ae) {
|
|
11004
|
+
var ve = ue.type, ye = ue.data, Pe = ue.isDisabled, Ce = ue.isSelected, Ve = ue.label, ze = ue.value, je = f === ye, W = Pe ? void 0 : function() {
|
|
11005
11005
|
return r.onOptionHover(ye);
|
|
11006
|
-
}, ut =
|
|
11006
|
+
}, ut = Pe ? void 0 : function() {
|
|
11007
11007
|
return r.selectOption(ye);
|
|
11008
11008
|
}, ot = "".concat(r.getElementId("option"), "-").concat(Ae), at = {
|
|
11009
11009
|
id: ot,
|
|
11010
11010
|
onClick: ut,
|
|
11011
|
-
onMouseMove:
|
|
11012
|
-
onMouseOver:
|
|
11011
|
+
onMouseMove: W,
|
|
11012
|
+
onMouseOver: W,
|
|
11013
11013
|
tabIndex: -1,
|
|
11014
11014
|
role: "option",
|
|
11015
11015
|
"aria-selected": r.isAppleDevice ? void 0 : Ce
|
|
@@ -11018,7 +11018,7 @@ var c1 = function(t) {
|
|
|
11018
11018
|
return /* @__PURE__ */ ie.createElement(v, K({}, I, {
|
|
11019
11019
|
innerProps: at,
|
|
11020
11020
|
data: ye,
|
|
11021
|
-
isDisabled:
|
|
11021
|
+
isDisabled: Pe,
|
|
11022
11022
|
isSelected: Ce,
|
|
11023
11023
|
key: ot,
|
|
11024
11024
|
label: Ve,
|
|
@@ -11031,22 +11031,22 @@ var c1 = function(t) {
|
|
|
11031
11031
|
if (this.hasOptions())
|
|
11032
11032
|
X = this.getCategorizedOptions().map(function(Q) {
|
|
11033
11033
|
if (Q.type === "group") {
|
|
11034
|
-
var ue = Q.data, Ae = Q.options, ve = Q.index, ye = "".concat(r.getElementId("group"), "-").concat(ve),
|
|
11034
|
+
var ue = Q.data, Ae = Q.options, ve = Q.index, ye = "".concat(r.getElementId("group"), "-").concat(ve), Pe = "".concat(ye, "-heading");
|
|
11035
11035
|
return /* @__PURE__ */ ie.createElement(l, K({}, I, {
|
|
11036
11036
|
key: ye,
|
|
11037
11037
|
data: ue,
|
|
11038
11038
|
options: Ae,
|
|
11039
11039
|
Heading: u,
|
|
11040
11040
|
headingProps: {
|
|
11041
|
-
id:
|
|
11041
|
+
id: Pe,
|
|
11042
11042
|
data: Q.data
|
|
11043
11043
|
},
|
|
11044
11044
|
label: r.formatGroupLabel(Q.data)
|
|
11045
11045
|
}), Q.options.map(function(Ce) {
|
|
11046
|
-
return
|
|
11046
|
+
return N(Ce, "".concat(ve, "-").concat(Ce.index));
|
|
11047
11047
|
}));
|
|
11048
11048
|
} else if (Q.type === "option")
|
|
11049
|
-
return
|
|
11049
|
+
return N(Q, "".concat(Q.index));
|
|
11050
11050
|
});
|
|
11051
11051
|
else if (S) {
|
|
11052
11052
|
var j = k({
|
|
@@ -11063,15 +11063,15 @@ var c1 = function(t) {
|
|
|
11063
11063
|
return null;
|
|
11064
11064
|
X = /* @__PURE__ */ ie.createElement(b, I, $);
|
|
11065
11065
|
}
|
|
11066
|
-
var
|
|
11066
|
+
var D = {
|
|
11067
11067
|
minMenuHeight: w,
|
|
11068
11068
|
maxMenuHeight: E,
|
|
11069
11069
|
menuPlacement: L,
|
|
11070
|
-
menuPosition:
|
|
11070
|
+
menuPosition: H,
|
|
11071
11071
|
menuShouldScrollIntoView: B
|
|
11072
|
-
},
|
|
11072
|
+
}, te = /* @__PURE__ */ ie.createElement(Cg, K({}, I, D), function(Q) {
|
|
11073
11073
|
var ue = Q.ref, Ae = Q.placerProps, ve = Ae.placement, ye = Ae.maxHeight;
|
|
11074
|
-
return /* @__PURE__ */ ie.createElement(s, K({}, I,
|
|
11074
|
+
return /* @__PURE__ */ ie.createElement(s, K({}, I, D, {
|
|
11075
11075
|
innerRef: ue,
|
|
11076
11076
|
innerProps: {
|
|
11077
11077
|
onMouseDown: r.onMenuMouseDown,
|
|
@@ -11082,12 +11082,12 @@ var c1 = function(t) {
|
|
|
11082
11082
|
}), /* @__PURE__ */ ie.createElement(K2, {
|
|
11083
11083
|
captureEnabled: m,
|
|
11084
11084
|
onTopArrive: M,
|
|
11085
|
-
onBottomArrive:
|
|
11085
|
+
onBottomArrive: Z,
|
|
11086
11086
|
lockEnabled: oe
|
|
11087
|
-
}, function(
|
|
11087
|
+
}, function(Pe) {
|
|
11088
11088
|
return /* @__PURE__ */ ie.createElement(d, K({}, I, {
|
|
11089
11089
|
innerRef: function(Ve) {
|
|
11090
|
-
r.getMenuListRef(Ve),
|
|
11090
|
+
r.getMenuListRef(Ve), Pe(Ve);
|
|
11091
11091
|
},
|
|
11092
11092
|
innerProps: {
|
|
11093
11093
|
role: "listbox",
|
|
@@ -11100,12 +11100,12 @@ var c1 = function(t) {
|
|
|
11100
11100
|
}), X);
|
|
11101
11101
|
}));
|
|
11102
11102
|
});
|
|
11103
|
-
return
|
|
11104
|
-
appendTo:
|
|
11103
|
+
return ee || H === "fixed" ? /* @__PURE__ */ ie.createElement(p, K({}, I, {
|
|
11104
|
+
appendTo: ee,
|
|
11105
11105
|
controlElement: this.controlRef,
|
|
11106
11106
|
menuPlacement: L,
|
|
11107
|
-
menuPosition:
|
|
11108
|
-
}),
|
|
11107
|
+
menuPosition: H
|
|
11108
|
+
}), te) : te;
|
|
11109
11109
|
}
|
|
11110
11110
|
}, {
|
|
11111
11111
|
key: "renderFormField",
|
|
@@ -11208,17 +11208,17 @@ var c1 = function(t) {
|
|
|
11208
11208
|
clearFocusValueOnUpdate: !1
|
|
11209
11209
|
};
|
|
11210
11210
|
}
|
|
11211
|
-
var
|
|
11211
|
+
var H = s != null && r !== l ? {
|
|
11212
11212
|
inputIsHidden: s,
|
|
11213
11213
|
inputIsHiddenAfterUpdate: void 0
|
|
11214
|
-
} : {},
|
|
11215
|
-
return p && !oe && (
|
|
11214
|
+
} : {}, ee = d, oe = p && g;
|
|
11215
|
+
return p && !oe && (ee = {
|
|
11216
11216
|
value: _n(m, A, A[0] || null),
|
|
11217
11217
|
options: A,
|
|
11218
11218
|
action: "initial-input-focus"
|
|
11219
|
-
}, oe = !g), (d == null ? void 0 : d.action) === "initial-input-focus" && (
|
|
11219
|
+
}, oe = !g), (d == null ? void 0 : d.action) === "initial-input-focus" && (ee = null), J(J(J({}, S), H), {}, {
|
|
11220
11220
|
prevProps: r,
|
|
11221
|
-
ariaSelection:
|
|
11221
|
+
ariaSelection: ee,
|
|
11222
11222
|
prevWasFocused: oe
|
|
11223
11223
|
});
|
|
11224
11224
|
}
|
|
@@ -11447,7 +11447,7 @@ const x7 = (e) => {
|
|
|
11447
11447
|
}
|
|
11448
11448
|
`, C7 = (e) => {
|
|
11449
11449
|
const { selectedIndex: t, disabled: n, options: i, type: r } = e, [a, l] = U(t);
|
|
11450
|
-
|
|
11450
|
+
ke(() => {
|
|
11451
11451
|
l(t);
|
|
11452
11452
|
}, [t]);
|
|
11453
11453
|
const u = (s, d) => {
|
|
@@ -11760,7 +11760,7 @@ const D5 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
11760
11760
|
}, m = me(null), A = (S) => {
|
|
11761
11761
|
m.current && !m.current.contains(S.target) && g(!1);
|
|
11762
11762
|
};
|
|
11763
|
-
return
|
|
11763
|
+
return ke(() => (document.addEventListener("mousedown", A), () => {
|
|
11764
11764
|
document.removeEventListener("mousedown", A);
|
|
11765
11765
|
}), []), /* @__PURE__ */ y(R5, { children: [
|
|
11766
11766
|
/* @__PURE__ */ y(M5, { style: { background: u || c.focus }, children: [
|
|
@@ -11988,9 +11988,9 @@ const D5 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
11988
11988
|
}, b = () => {
|
|
11989
11989
|
l((I) => !I);
|
|
11990
11990
|
};
|
|
11991
|
-
|
|
11991
|
+
ke(() => (document.addEventListener("mousedown", g), () => {
|
|
11992
11992
|
document.removeEventListener("mousedown", g);
|
|
11993
|
-
}), []),
|
|
11993
|
+
}), []), ke(() => {
|
|
11994
11994
|
p && d.current && d.current.focus();
|
|
11995
11995
|
}, [a]);
|
|
11996
11996
|
const v = n.map((I, f) => t ? f === i - 1 ? [
|
|
@@ -12310,9 +12310,9 @@ const lh = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
12310
12310
|
rowSizes: b
|
|
12311
12311
|
}) => {
|
|
12312
12312
|
const [v, I] = U(0), [f, x] = U(t[0]), [m, A] = U([]), S = (B) => {
|
|
12313
|
-
const R = B.target.value.toLocaleLowerCase(), M = e.filter((
|
|
12313
|
+
const R = B.target.value.toLocaleLowerCase(), M = e.filter((Z) => a.some((N) => {
|
|
12314
12314
|
var j;
|
|
12315
|
-
const X = (j = String(
|
|
12315
|
+
const X = (j = String(Z[typeof N == "string" ? N : ""])) == null ? void 0 : j.toLocaleLowerCase();
|
|
12316
12316
|
return X == null ? void 0 : X.includes(R);
|
|
12317
12317
|
}));
|
|
12318
12318
|
A(M), I(0);
|
|
@@ -12330,12 +12330,12 @@ const lh = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
12330
12330
|
const R = B + f;
|
|
12331
12331
|
return R >= k.length ? B : R;
|
|
12332
12332
|
});
|
|
12333
|
-
}, [f, k.length]),
|
|
12333
|
+
}, [f, k.length]), H = q(() => {
|
|
12334
12334
|
I((B) => {
|
|
12335
12335
|
const R = B - f;
|
|
12336
12336
|
return R < 0 ? 0 : R;
|
|
12337
12337
|
});
|
|
12338
|
-
}, [f]),
|
|
12338
|
+
}, [f]), ee = q(
|
|
12339
12339
|
(B) => {
|
|
12340
12340
|
const R = Number(B.target.value);
|
|
12341
12341
|
I((R - 1) * f);
|
|
@@ -12449,7 +12449,7 @@ const lh = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
12449
12449
|
w.map((B, R) => /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
12450
12450
|
th,
|
|
12451
12451
|
{
|
|
12452
|
-
children: s == null ? void 0 : s.map((M,
|
|
12452
|
+
children: s == null ? void 0 : s.map((M, Z) => /* @__PURE__ */ o(eh, { rowSizes: b, columnTitles: a, rowData: e, pageSizes: t, children: typeof M == "string" ? B[M] : M }, Z))
|
|
12453
12453
|
},
|
|
12454
12454
|
R
|
|
12455
12455
|
) }))
|
|
@@ -12494,7 +12494,7 @@ const lh = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
12494
12494
|
{
|
|
12495
12495
|
name: "select",
|
|
12496
12496
|
value: T,
|
|
12497
|
-
onChange:
|
|
12497
|
+
onChange: ee,
|
|
12498
12498
|
children: Array.from({ length: E }, (B, R) => /* @__PURE__ */ o(Tl, { value: R + 1, children: R + 1 }, R + 1))
|
|
12499
12499
|
}
|
|
12500
12500
|
),
|
|
@@ -12509,7 +12509,7 @@ const lh = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
12509
12509
|
/* @__PURE__ */ o(Xe, { align: "top", size: "small", label: "Página Anterior", width: "110px", children: /* @__PURE__ */ o(
|
|
12510
12510
|
El,
|
|
12511
12511
|
{
|
|
12512
|
-
onClick:
|
|
12512
|
+
onClick: H,
|
|
12513
12513
|
disabled: v === 0,
|
|
12514
12514
|
style: {
|
|
12515
12515
|
borderLeft: "none",
|
|
@@ -13585,9 +13585,9 @@ function z6(e) {
|
|
|
13585
13585
|
validateOnMount: l,
|
|
13586
13586
|
onSubmit: p
|
|
13587
13587
|
}, g), v = me(b.initialValues), I = me(b.initialErrors || Pt), f = me(b.initialTouched || Un), x = me(b.initialStatus), m = me(!1), A = me({});
|
|
13588
|
-
process.env.NODE_ENV !== "production" &&
|
|
13588
|
+
process.env.NODE_ENV !== "production" && ke(function() {
|
|
13589
13589
|
typeof u > "u" || (process.env.NODE_ENV !== "production" ? Ut(!1, "isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.") : Ut(!1));
|
|
13590
|
-
}, []),
|
|
13590
|
+
}, []), ke(function() {
|
|
13591
13591
|
return m.current = !0, function() {
|
|
13592
13592
|
m.current = !1;
|
|
13593
13593
|
};
|
|
@@ -13614,7 +13614,7 @@ function z6(e) {
|
|
|
13614
13614
|
process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", le), _(le);
|
|
13615
13615
|
}) : z(re);
|
|
13616
13616
|
});
|
|
13617
|
-
}, [b.validate]),
|
|
13617
|
+
}, [b.validate]), H = q(function(P, O) {
|
|
13618
13618
|
var z = b.validationSchema, _ = lt(z) ? z(O) : z, re = O && _.validateAt ? _.validateAt(O, P) : _6(P, _);
|
|
13619
13619
|
return new Promise(function(le, Fe) {
|
|
13620
13620
|
re.then(function() {
|
|
@@ -13623,7 +13623,7 @@ function z6(e) {
|
|
|
13623
13623
|
Ke.name === "ValidationError" ? le(j6(Ke)) : (process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", Ke), Fe(Ke));
|
|
13624
13624
|
});
|
|
13625
13625
|
});
|
|
13626
|
-
}, [b.validationSchema]),
|
|
13626
|
+
}, [b.validationSchema]), ee = q(function(P, O) {
|
|
13627
13627
|
return new Promise(function(z) {
|
|
13628
13628
|
return z(A.current[P].validate(O));
|
|
13629
13629
|
});
|
|
@@ -13631,21 +13631,21 @@ function z6(e) {
|
|
|
13631
13631
|
var O = Object.keys(A.current).filter(function(_) {
|
|
13632
13632
|
return lt(A.current[_].validate);
|
|
13633
13633
|
}), z = O.length > 0 ? O.map(function(_) {
|
|
13634
|
-
return
|
|
13634
|
+
return ee(_, qe(P, _));
|
|
13635
13635
|
}) : [Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];
|
|
13636
13636
|
return Promise.all(z).then(function(_) {
|
|
13637
13637
|
return _.reduce(function(re, le, Fe) {
|
|
13638
13638
|
return le === "DO_NOT_DELETE_YOU_WILL_BE_FIRED" || le && (re = Lt(re, O[Fe], le)), re;
|
|
13639
13639
|
}, {});
|
|
13640
13640
|
});
|
|
13641
|
-
}, [
|
|
13642
|
-
return Promise.all([oe(P), b.validationSchema ?
|
|
13641
|
+
}, [ee]), B = q(function(P) {
|
|
13642
|
+
return Promise.all([oe(P), b.validationSchema ? H(P) : {}, b.validate ? L(P) : {}]).then(function(O) {
|
|
13643
13643
|
var z = O[0], _ = O[1], re = O[2], le = Zi.all([z, _, re], {
|
|
13644
13644
|
arrayMerge: Y6
|
|
13645
13645
|
});
|
|
13646
13646
|
return le;
|
|
13647
13647
|
});
|
|
13648
|
-
}, [b.validate, b.validationSchema, oe, L,
|
|
13648
|
+
}, [b.validate, b.validationSchema, oe, L, H]), R = rt(function(P) {
|
|
13649
13649
|
return P === void 0 && (P = E.values), T({
|
|
13650
13650
|
type: "SET_ISVALIDATING",
|
|
13651
13651
|
payload: !0
|
|
@@ -13659,7 +13659,7 @@ function z6(e) {
|
|
|
13659
13659
|
})), O;
|
|
13660
13660
|
});
|
|
13661
13661
|
});
|
|
13662
|
-
|
|
13662
|
+
ke(function() {
|
|
13663
13663
|
l && m.current === !0 && Vt(v.current, b.initialValues) && R(v.current);
|
|
13664
13664
|
}, [l, R]);
|
|
13665
13665
|
var M = q(function(P) {
|
|
@@ -13685,25 +13685,25 @@ function z6(e) {
|
|
|
13685
13685
|
} else
|
|
13686
13686
|
le();
|
|
13687
13687
|
}, [b.initialErrors, b.initialStatus, b.initialTouched, b.onReset]);
|
|
13688
|
-
|
|
13688
|
+
ke(function() {
|
|
13689
13689
|
m.current === !0 && !Vt(v.current, b.initialValues) && d && (v.current = b.initialValues, M(), l && R(v.current));
|
|
13690
|
-
}, [d, b.initialValues, M, l, R]),
|
|
13690
|
+
}, [d, b.initialValues, M, l, R]), ke(function() {
|
|
13691
13691
|
d && m.current === !0 && !Vt(I.current, b.initialErrors) && (I.current = b.initialErrors || Pt, T({
|
|
13692
13692
|
type: "SET_ERRORS",
|
|
13693
13693
|
payload: b.initialErrors || Pt
|
|
13694
13694
|
}));
|
|
13695
|
-
}, [d, b.initialErrors]),
|
|
13695
|
+
}, [d, b.initialErrors]), ke(function() {
|
|
13696
13696
|
d && m.current === !0 && !Vt(f.current, b.initialTouched) && (f.current = b.initialTouched || Un, T({
|
|
13697
13697
|
type: "SET_TOUCHED",
|
|
13698
13698
|
payload: b.initialTouched || Un
|
|
13699
13699
|
}));
|
|
13700
|
-
}, [d, b.initialTouched]),
|
|
13700
|
+
}, [d, b.initialTouched]), ke(function() {
|
|
13701
13701
|
d && m.current === !0 && !Vt(x.current, b.initialStatus) && (x.current = b.initialStatus, T({
|
|
13702
13702
|
type: "SET_STATUS",
|
|
13703
13703
|
payload: b.initialStatus
|
|
13704
13704
|
}));
|
|
13705
13705
|
}, [d, b.initialStatus, b.initialTouched]);
|
|
13706
|
-
var
|
|
13706
|
+
var Z = rt(function(P) {
|
|
13707
13707
|
if (A.current[P] && lt(A.current[P].validate)) {
|
|
13708
13708
|
var O = qe(E.values, P), z = A.current[P].validate(O);
|
|
13709
13709
|
return vi(z) ? (T({
|
|
@@ -13733,7 +13733,7 @@ function z6(e) {
|
|
|
13733
13733
|
return T({
|
|
13734
13734
|
type: "SET_ISVALIDATING",
|
|
13735
13735
|
payload: !0
|
|
13736
|
-
}),
|
|
13736
|
+
}), H(E.values, P).then(function(_) {
|
|
13737
13737
|
return _;
|
|
13738
13738
|
}).then(function(_) {
|
|
13739
13739
|
T({
|
|
@@ -13748,7 +13748,7 @@ function z6(e) {
|
|
|
13748
13748
|
});
|
|
13749
13749
|
});
|
|
13750
13750
|
return Promise.resolve();
|
|
13751
|
-
}),
|
|
13751
|
+
}), N = q(function(P, O) {
|
|
13752
13752
|
var z = O.validate;
|
|
13753
13753
|
A.current[P] = {
|
|
13754
13754
|
validate: z
|
|
@@ -13767,7 +13767,7 @@ function z6(e) {
|
|
|
13767
13767
|
type: "SET_ERRORS",
|
|
13768
13768
|
payload: P
|
|
13769
13769
|
});
|
|
13770
|
-
}, []),
|
|
13770
|
+
}, []), D = rt(function(P, O) {
|
|
13771
13771
|
var z = lt(P) ? P(E.values) : P;
|
|
13772
13772
|
T({
|
|
13773
13773
|
type: "SET_VALUES",
|
|
@@ -13775,7 +13775,7 @@ function z6(e) {
|
|
|
13775
13775
|
});
|
|
13776
13776
|
var _ = O === void 0 ? n : O;
|
|
13777
13777
|
return _ ? R(z) : Promise.resolve();
|
|
13778
|
-
}),
|
|
13778
|
+
}), te = q(function(P, O) {
|
|
13779
13779
|
T({
|
|
13780
13780
|
type: "SET_FIELD_ERROR",
|
|
13781
13781
|
payload: {
|
|
@@ -13829,7 +13829,7 @@ function z6(e) {
|
|
|
13829
13829
|
documentationAnchorLink: "handleblur-e-any--void",
|
|
13830
13830
|
handlerName: "handleBlur"
|
|
13831
13831
|
}), ve(Fe, !0);
|
|
13832
|
-
}, [ve]),
|
|
13832
|
+
}, [ve]), Pe = rt(function(P) {
|
|
13833
13833
|
if (mi(P))
|
|
13834
13834
|
return function(O) {
|
|
13835
13835
|
return ye(O, P);
|
|
@@ -13883,7 +13883,7 @@ function z6(e) {
|
|
|
13883
13883
|
}), O))
|
|
13884
13884
|
throw P;
|
|
13885
13885
|
});
|
|
13886
|
-
}),
|
|
13886
|
+
}), W = rt(function(P) {
|
|
13887
13887
|
if (P && P.preventDefault && lt(P.preventDefault) && P.preventDefault(), P && P.stopPropagation && lt(P.stopPropagation) && P.stopPropagation(), process.env.NODE_ENV !== "production" && typeof document < "u") {
|
|
13888
13888
|
var O = Z6();
|
|
13889
13889
|
O !== null && O instanceof HTMLButtonElement && (O.attributes && O.attributes.getNamedItem("type") || (process.env.NODE_ENV !== "production" ? Ut(!1, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.') : Ut(!1)));
|
|
@@ -13894,15 +13894,15 @@ function z6(e) {
|
|
|
13894
13894
|
}), ut = {
|
|
13895
13895
|
resetForm: M,
|
|
13896
13896
|
validateForm: R,
|
|
13897
|
-
validateField:
|
|
13897
|
+
validateField: Z,
|
|
13898
13898
|
setErrors: $,
|
|
13899
|
-
setFieldError:
|
|
13899
|
+
setFieldError: te,
|
|
13900
13900
|
setFieldTouched: ve,
|
|
13901
13901
|
setFieldValue: Q,
|
|
13902
13902
|
setStatus: Ve,
|
|
13903
13903
|
setSubmitting: ze,
|
|
13904
13904
|
setTouched: j,
|
|
13905
|
-
setValues:
|
|
13905
|
+
setValues: D,
|
|
13906
13906
|
setFormikState: Ce,
|
|
13907
13907
|
submitForm: je
|
|
13908
13908
|
}, ot = rt(function() {
|
|
@@ -13927,22 +13927,22 @@ function z6(e) {
|
|
|
13927
13927
|
return ve(P, z, _);
|
|
13928
13928
|
},
|
|
13929
13929
|
setError: function(z) {
|
|
13930
|
-
return
|
|
13930
|
+
return te(P, z);
|
|
13931
13931
|
}
|
|
13932
13932
|
};
|
|
13933
|
-
}, [Q, ve,
|
|
13933
|
+
}, [Q, ve, te]), Rn = q(function(P) {
|
|
13934
13934
|
var O = Nr(P), z = O ? P.name : P, _ = qe(E.values, z), re = {
|
|
13935
13935
|
name: z,
|
|
13936
13936
|
value: _,
|
|
13937
13937
|
onChange: Ae,
|
|
13938
|
-
onBlur:
|
|
13938
|
+
onBlur: Pe
|
|
13939
13939
|
};
|
|
13940
13940
|
if (O) {
|
|
13941
13941
|
var le = P.type, Fe = P.value, Ke = P.as, zt = P.multiple;
|
|
13942
13942
|
le === "checkbox" ? Fe === void 0 ? re.checked = !!_ : (re.checked = !!(Array.isArray(_) && ~_.indexOf(Fe)), re.value = Fe) : le === "radio" ? (re.checked = _ === Fe, re.value = Fe) : Ke === "select" && zt && (re.value = re.value || [], re.multiple = !0);
|
|
13943
13943
|
}
|
|
13944
13944
|
return re;
|
|
13945
|
-
}, [
|
|
13945
|
+
}, [Pe, Ae, E.values]), It = Ne(function() {
|
|
13946
13946
|
return !Vt(v.current, E.values);
|
|
13947
13947
|
}, [v.current, E.values]), Dr = Ne(function() {
|
|
13948
13948
|
return typeof u < "u" ? It ? E.errors && Object.keys(E.errors).length === 0 : u !== !1 && lt(u) ? u(b) : u : E.errors && Object.keys(E.errors).length === 0;
|
|
@@ -13951,27 +13951,27 @@ function z6(e) {
|
|
|
13951
13951
|
initialErrors: I.current,
|
|
13952
13952
|
initialTouched: f.current,
|
|
13953
13953
|
initialStatus: x.current,
|
|
13954
|
-
handleBlur:
|
|
13954
|
+
handleBlur: Pe,
|
|
13955
13955
|
handleChange: Ae,
|
|
13956
13956
|
handleReset: at,
|
|
13957
|
-
handleSubmit:
|
|
13957
|
+
handleSubmit: W,
|
|
13958
13958
|
resetForm: M,
|
|
13959
13959
|
setErrors: $,
|
|
13960
13960
|
setFormikState: Ce,
|
|
13961
13961
|
setFieldTouched: ve,
|
|
13962
13962
|
setFieldValue: Q,
|
|
13963
|
-
setFieldError:
|
|
13963
|
+
setFieldError: te,
|
|
13964
13964
|
setStatus: Ve,
|
|
13965
13965
|
setSubmitting: ze,
|
|
13966
13966
|
setTouched: j,
|
|
13967
|
-
setValues:
|
|
13967
|
+
setValues: D,
|
|
13968
13968
|
submitForm: je,
|
|
13969
13969
|
validateForm: R,
|
|
13970
|
-
validateField:
|
|
13970
|
+
validateField: Z,
|
|
13971
13971
|
isValid: Dr,
|
|
13972
13972
|
dirty: It,
|
|
13973
13973
|
unregisterField: X,
|
|
13974
|
-
registerField:
|
|
13974
|
+
registerField: N,
|
|
13975
13975
|
getFieldProps: Rn,
|
|
13976
13976
|
getFieldMeta: Et,
|
|
13977
13977
|
getFieldHelpers: Fn,
|
|
@@ -14055,7 +14055,7 @@ function U6(e, t, n) {
|
|
|
14055
14055
|
return !!t;
|
|
14056
14056
|
return t && n && !r ? i.concat(n) : r ? i.slice(0, a).concat(i.slice(a + 1)) : i;
|
|
14057
14057
|
}
|
|
14058
|
-
var Q6 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Ls :
|
|
14058
|
+
var Q6 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Ls : ke;
|
|
14059
14059
|
function rt(e) {
|
|
14060
14060
|
var t = me(e);
|
|
14061
14061
|
return Q6(function() {
|
|
@@ -14134,7 +14134,7 @@ const q6 = h.input`
|
|
|
14134
14134
|
const v = Number(b.target.value);
|
|
14135
14135
|
!isNaN(v) && v >= t && v <= e ? (d(b.target.value), u(v), a("range", b.target.value)) : d(b.target.value);
|
|
14136
14136
|
}, [t, e, a]);
|
|
14137
|
-
return
|
|
14137
|
+
return ke(() => {
|
|
14138
14138
|
r !== void 0 && (u(r), d(String(r)), a("range", String(r)));
|
|
14139
14139
|
}, [r, a]), /* @__PURE__ */ y(
|
|
14140
14140
|
e3,
|
|
@@ -14565,41 +14565,41 @@ const d3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
14565
14565
|
columnSizes: p
|
|
14566
14566
|
}) => {
|
|
14567
14567
|
const [g, b] = U(0), [v, I] = U(t[0]), [f, x] = U([]), [m, A] = U(!1), [S, k] = U(), w = (M) => {
|
|
14568
|
-
const
|
|
14569
|
-
var
|
|
14570
|
-
const $ = (
|
|
14571
|
-
return $ == null ? void 0 : $.includes(
|
|
14568
|
+
const Z = M.target.value.toLocaleLowerCase(), N = e.filter((X) => a.some((j) => {
|
|
14569
|
+
var D;
|
|
14570
|
+
const $ = (D = String(X[j])) == null ? void 0 : D.toLocaleLowerCase();
|
|
14571
|
+
return $ == null ? void 0 : $.includes(Z);
|
|
14572
14572
|
}));
|
|
14573
|
-
x(
|
|
14573
|
+
x(N), b(0);
|
|
14574
14574
|
}, E = f.length > 0 ? f : e, T = Ne(
|
|
14575
14575
|
() => E.slice(g, g + v),
|
|
14576
14576
|
[E, g, v]
|
|
14577
14577
|
), L = Ne(
|
|
14578
14578
|
() => Math.ceil(E.length / v),
|
|
14579
14579
|
[E.length, v]
|
|
14580
|
-
),
|
|
14580
|
+
), H = Ne(
|
|
14581
14581
|
() => Math.floor(g / v) + 1,
|
|
14582
14582
|
[g, v]
|
|
14583
|
-
),
|
|
14583
|
+
), ee = q(() => {
|
|
14584
14584
|
b((M) => {
|
|
14585
|
-
const
|
|
14586
|
-
return
|
|
14585
|
+
const Z = M + v;
|
|
14586
|
+
return Z >= E.length ? M : Z;
|
|
14587
14587
|
});
|
|
14588
14588
|
}, [v, E.length]), oe = q(() => {
|
|
14589
14589
|
b((M) => {
|
|
14590
|
-
const
|
|
14591
|
-
return
|
|
14590
|
+
const Z = M - v;
|
|
14591
|
+
return Z < 0 ? 0 : Z;
|
|
14592
14592
|
});
|
|
14593
14593
|
}, [v]), B = q(
|
|
14594
14594
|
(M) => {
|
|
14595
|
-
const
|
|
14596
|
-
b((
|
|
14595
|
+
const Z = Number(M.target.value);
|
|
14596
|
+
b((Z - 1) * v);
|
|
14597
14597
|
},
|
|
14598
14598
|
[v]
|
|
14599
14599
|
), R = q(
|
|
14600
14600
|
(M) => {
|
|
14601
|
-
const
|
|
14602
|
-
I(
|
|
14601
|
+
const Z = Number(M.target.value);
|
|
14602
|
+
I(Z), b(0);
|
|
14603
14603
|
},
|
|
14604
14604
|
[]
|
|
14605
14605
|
);
|
|
@@ -14629,7 +14629,7 @@ const d3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
14629
14629
|
onChange: w
|
|
14630
14630
|
}
|
|
14631
14631
|
),
|
|
14632
|
-
/* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((M) => M.position === "left").map((M,
|
|
14632
|
+
/* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((M) => M.position === "left").map((M, Z) => /* @__PURE__ */ o("div", { style: { marginLeft: "1px" }, children: /* @__PURE__ */ o(
|
|
14633
14633
|
Ze,
|
|
14634
14634
|
{
|
|
14635
14635
|
onClick: M.onClick,
|
|
@@ -14642,16 +14642,16 @@ const d3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
14642
14642
|
disabled: M.disabled,
|
|
14643
14643
|
borderNone: !0
|
|
14644
14644
|
}
|
|
14645
|
-
) },
|
|
14646
|
-
/* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((M) => M.position === "right").map((M,
|
|
14645
|
+
) }, Z)) }),
|
|
14646
|
+
/* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter((M) => M.position === "right").map((M, Z) => {
|
|
14647
14647
|
var j, $;
|
|
14648
|
-
const
|
|
14648
|
+
const N = m && Z === S;
|
|
14649
14649
|
return /* @__PURE__ */ y("div", { style: { marginRight: "1px", position: "relative" }, children: [
|
|
14650
14650
|
/* @__PURE__ */ o(
|
|
14651
14651
|
Ze,
|
|
14652
14652
|
{
|
|
14653
|
-
onClick: (
|
|
14654
|
-
|
|
14653
|
+
onClick: (D) => {
|
|
14654
|
+
D.stopPropagation(), M.dropOptions ? (A((te) => !te), k(Z)) : M.onClick && M.onClick();
|
|
14655
14655
|
},
|
|
14656
14656
|
kind: M.kind,
|
|
14657
14657
|
size: M.size || "small",
|
|
@@ -14663,7 +14663,7 @@ const d3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
14663
14663
|
borderNone: !0
|
|
14664
14664
|
}
|
|
14665
14665
|
),
|
|
14666
|
-
|
|
14666
|
+
N && /* @__PURE__ */ o("div", { style: { position: "absolute", left: "-160px", zIndex: "6" }, children: ($ = (j = M.dropOptions) == null ? void 0 : j.options) == null ? void 0 : $.map((D, te) => /* @__PURE__ */ o(g3, { children: /* @__PURE__ */ o(h3, { onClick: D.onClick, tabIndex: 0, children: /* @__PURE__ */ o(
|
|
14667
14667
|
"a",
|
|
14668
14668
|
{
|
|
14669
14669
|
style: {
|
|
@@ -14671,15 +14671,15 @@ const d3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
14671
14671
|
textDecoration: "none",
|
|
14672
14672
|
textAlign: "start"
|
|
14673
14673
|
},
|
|
14674
|
-
children:
|
|
14674
|
+
children: D.label
|
|
14675
14675
|
}
|
|
14676
|
-
) }) },
|
|
14677
|
-
] },
|
|
14676
|
+
) }) }, te)) })
|
|
14677
|
+
] }, Z);
|
|
14678
14678
|
}) })
|
|
14679
14679
|
] }),
|
|
14680
14680
|
e && e.length > 0 ? /* @__PURE__ */ y(V, { children: [
|
|
14681
14681
|
/* @__PURE__ */ y(as, { children: [
|
|
14682
|
-
/* @__PURE__ */ o(ls, { children: a.map((M,
|
|
14682
|
+
/* @__PURE__ */ o(ls, { children: a.map((M, Z) => /* @__PURE__ */ o(ss, { children: /* @__PURE__ */ o(
|
|
14683
14683
|
cs,
|
|
14684
14684
|
{
|
|
14685
14685
|
pageSizes: t,
|
|
@@ -14688,13 +14688,13 @@ const d3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
14688
14688
|
columnSizes: p,
|
|
14689
14689
|
children: M
|
|
14690
14690
|
}
|
|
14691
|
-
) },
|
|
14692
|
-
T.map((M,
|
|
14691
|
+
) }, Z)) }),
|
|
14692
|
+
T.map((M, Z) => /* @__PURE__ */ o(
|
|
14693
14693
|
l3,
|
|
14694
14694
|
{
|
|
14695
|
-
children: Object.keys(M).map((
|
|
14695
|
+
children: Object.keys(M).map((N) => /* @__PURE__ */ o(a3, { rowSizes: d, columnTitles: a, rowData: e, pageSizes: t, children: M[N] }, N))
|
|
14696
14696
|
},
|
|
14697
|
-
|
|
14697
|
+
Z
|
|
14698
14698
|
))
|
|
14699
14699
|
] }),
|
|
14700
14700
|
/* @__PURE__ */ y(c3, { children: [
|
|
@@ -14707,7 +14707,7 @@ const d3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
14707
14707
|
borderRight: `1px solid ${c.borderSubtle01}`
|
|
14708
14708
|
},
|
|
14709
14709
|
children: [
|
|
14710
|
-
/* @__PURE__ */ o(ps, { name: "select", onChange: R, children: t.map((M,
|
|
14710
|
+
/* @__PURE__ */ o(ps, { name: "select", onChange: R, children: t.map((M, Z) => /* @__PURE__ */ o(ds, { value: M, children: M }, Z)) }),
|
|
14711
14711
|
/* @__PURE__ */ y(fs, { children: [
|
|
14712
14712
|
g + 1,
|
|
14713
14713
|
" – ",
|
|
@@ -14736,9 +14736,9 @@ const d3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
14736
14736
|
ps,
|
|
14737
14737
|
{
|
|
14738
14738
|
name: "select",
|
|
14739
|
-
value:
|
|
14739
|
+
value: H,
|
|
14740
14740
|
onChange: B,
|
|
14741
|
-
children: Array.from({ length: L }, (M,
|
|
14741
|
+
children: Array.from({ length: L }, (M, Z) => /* @__PURE__ */ o(ds, { value: Z + 1, children: Z + 1 }, Z + 1))
|
|
14742
14742
|
}
|
|
14743
14743
|
),
|
|
14744
14744
|
/* @__PURE__ */ y(fs, { children: [
|
|
@@ -14772,7 +14772,7 @@ const d3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
14772
14772
|
children: /* @__PURE__ */ o(
|
|
14773
14773
|
us,
|
|
14774
14774
|
{
|
|
14775
|
-
onClick:
|
|
14775
|
+
onClick: ee,
|
|
14776
14776
|
disabled: g + v >= E.length,
|
|
14777
14777
|
style: {
|
|
14778
14778
|
borderRight: "none",
|
|
@@ -15474,47 +15474,47 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15474
15474
|
arrow: f
|
|
15475
15475
|
}) => {
|
|
15476
15476
|
const [x, m] = U(0), [A, S] = U(t[0]), [k, w] = U([]), [E, T] = U(Array(e.length).fill(!1)), L = ($) => {
|
|
15477
|
-
const
|
|
15477
|
+
const D = $.target.value.toLocaleLowerCase(), te = e.filter((Q) => a.some((ue) => {
|
|
15478
15478
|
var ve;
|
|
15479
15479
|
const Ae = (ve = String(Q[typeof ue == "string" ? ue : ""])) == null ? void 0 : ve.toLocaleLowerCase();
|
|
15480
|
-
return Ae == null ? void 0 : Ae.includes(
|
|
15480
|
+
return Ae == null ? void 0 : Ae.includes(D);
|
|
15481
15481
|
}));
|
|
15482
|
-
w(
|
|
15483
|
-
},
|
|
15484
|
-
() =>
|
|
15485
|
-
[
|
|
15482
|
+
w(te), m(0);
|
|
15483
|
+
}, H = k.length > 0 ? k : e, ee = Ne(
|
|
15484
|
+
() => H.slice(x, x + A),
|
|
15485
|
+
[H, x, A]
|
|
15486
15486
|
), oe = Ne(
|
|
15487
|
-
() => Math.ceil(
|
|
15488
|
-
[
|
|
15487
|
+
() => Math.ceil(H.length / A),
|
|
15488
|
+
[H.length, A]
|
|
15489
15489
|
), B = Ne(
|
|
15490
15490
|
() => Math.floor(x / A) + 1,
|
|
15491
15491
|
[x, A]
|
|
15492
15492
|
), R = q(() => {
|
|
15493
15493
|
m(($) => {
|
|
15494
|
-
const
|
|
15495
|
-
return
|
|
15494
|
+
const D = $ + A;
|
|
15495
|
+
return D >= H.length ? $ : D;
|
|
15496
15496
|
});
|
|
15497
|
-
}, [A,
|
|
15497
|
+
}, [A, H.length]), M = q(() => {
|
|
15498
15498
|
m(($) => {
|
|
15499
|
-
const
|
|
15500
|
-
return
|
|
15499
|
+
const D = $ - A;
|
|
15500
|
+
return D < 0 ? 0 : D;
|
|
15501
15501
|
});
|
|
15502
|
-
}, [A]),
|
|
15502
|
+
}, [A]), Z = q(
|
|
15503
15503
|
($) => {
|
|
15504
|
-
const
|
|
15505
|
-
m((
|
|
15504
|
+
const D = Number($.target.value);
|
|
15505
|
+
m((D - 1) * A);
|
|
15506
15506
|
},
|
|
15507
15507
|
[A]
|
|
15508
|
-
),
|
|
15508
|
+
), N = q(
|
|
15509
15509
|
($) => {
|
|
15510
|
-
const
|
|
15511
|
-
S(
|
|
15510
|
+
const D = Number($.target.value);
|
|
15511
|
+
S(D), m(0);
|
|
15512
15512
|
},
|
|
15513
15513
|
[]
|
|
15514
15514
|
), X = ($) => {
|
|
15515
|
-
T((
|
|
15516
|
-
const
|
|
15517
|
-
return
|
|
15515
|
+
T((D) => {
|
|
15516
|
+
const te = [...D];
|
|
15517
|
+
return te[$] = !te[$], te;
|
|
15518
15518
|
});
|
|
15519
15519
|
}, j = ($) => E[$] ? "up" : "down";
|
|
15520
15520
|
return /* @__PURE__ */ o(V, { children: /* @__PURE__ */ y(
|
|
@@ -15544,7 +15544,7 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15544
15544
|
onChange: L
|
|
15545
15545
|
}
|
|
15546
15546
|
),
|
|
15547
|
-
/* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter(($) => $.position === "left").map(($,
|
|
15547
|
+
/* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter(($) => $.position === "left").map(($, D) => /* @__PURE__ */ o("div", { style: { marginLeft: "1px" }, children: /* @__PURE__ */ o(
|
|
15548
15548
|
Ze,
|
|
15549
15549
|
{
|
|
15550
15550
|
onClick: $.onClick,
|
|
@@ -15557,12 +15557,12 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15557
15557
|
width: $.width,
|
|
15558
15558
|
borderNone: !0
|
|
15559
15559
|
}
|
|
15560
|
-
) },
|
|
15561
|
-
/* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter(($) => $.position === "right").map(($,
|
|
15560
|
+
) }, D)) }),
|
|
15561
|
+
/* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center" }, children: n == null ? void 0 : n.filter(($) => $.position === "right").map(($, D) => /* @__PURE__ */ o("div", { style: { marginRight: "1px" }, children: /* @__PURE__ */ o(
|
|
15562
15562
|
Ze,
|
|
15563
15563
|
{
|
|
15564
|
-
onClick: (
|
|
15565
|
-
$.onClick && $.onClick(),
|
|
15564
|
+
onClick: (te) => {
|
|
15565
|
+
$.onClick && $.onClick(), te.stopPropagation(), te.preventDefault();
|
|
15566
15566
|
},
|
|
15567
15567
|
kind: $.kind,
|
|
15568
15568
|
size: $.size || "small",
|
|
@@ -15573,7 +15573,7 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15573
15573
|
width: $.width,
|
|
15574
15574
|
borderNone: !0
|
|
15575
15575
|
}
|
|
15576
|
-
) },
|
|
15576
|
+
) }, D)) })
|
|
15577
15577
|
] }),
|
|
15578
15578
|
e && e.length > 0 ? /* @__PURE__ */ y(V, { children: [
|
|
15579
15579
|
(g == null ? void 0 : g.active) && /* @__PURE__ */ o("div", { style: {
|
|
@@ -15624,7 +15624,7 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15624
15624
|
}
|
|
15625
15625
|
}
|
|
15626
15626
|
),
|
|
15627
|
-
a.map(($,
|
|
15627
|
+
a.map(($, D) => /* @__PURE__ */ o(xs, { children: /* @__PURE__ */ o(
|
|
15628
15628
|
A3,
|
|
15629
15629
|
{
|
|
15630
15630
|
columnTitles: a,
|
|
@@ -15633,17 +15633,17 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15633
15633
|
columnSizes: I,
|
|
15634
15634
|
children: $
|
|
15635
15635
|
}
|
|
15636
|
-
) },
|
|
15636
|
+
) }, D))
|
|
15637
15637
|
] }),
|
|
15638
|
-
|
|
15638
|
+
ee.map(($, D) => /* @__PURE__ */ y(V, { children: [
|
|
15639
15639
|
/* @__PURE__ */ y(
|
|
15640
15640
|
vs,
|
|
15641
15641
|
{
|
|
15642
15642
|
onClick: () => {
|
|
15643
|
-
X(
|
|
15643
|
+
X(D), $.onClick && $.onClick();
|
|
15644
15644
|
},
|
|
15645
15645
|
style: {
|
|
15646
|
-
borderBottom:
|
|
15646
|
+
borderBottom: D === ee.length - 1 ? "0" : "1px solid #C6C6C6"
|
|
15647
15647
|
},
|
|
15648
15648
|
children: [
|
|
15649
15649
|
/* @__PURE__ */ o(
|
|
@@ -15667,7 +15667,7 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15667
15667
|
display: "flex",
|
|
15668
15668
|
margin: "0 auto",
|
|
15669
15669
|
transition: ".5s",
|
|
15670
|
-
transform: j(
|
|
15670
|
+
transform: j(D) === "up" ? "rotate(180deg) translateY(0%)" : "rotate(0deg) translateY(0%)"
|
|
15671
15671
|
},
|
|
15672
15672
|
children: /* @__PURE__ */ o(
|
|
15673
15673
|
Ze,
|
|
@@ -15678,35 +15678,35 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15678
15678
|
kind: "ghost",
|
|
15679
15679
|
size: "small",
|
|
15680
15680
|
label: "",
|
|
15681
|
-
onClick: (
|
|
15682
|
-
|
|
15681
|
+
onClick: (te) => {
|
|
15682
|
+
te.stopPropagation(), T((Q) => {
|
|
15683
15683
|
const ue = [...Q];
|
|
15684
|
-
return ue[
|
|
15684
|
+
return ue[D] = !ue[D], ue;
|
|
15685
15685
|
});
|
|
15686
15686
|
}
|
|
15687
15687
|
},
|
|
15688
|
-
|
|
15688
|
+
D
|
|
15689
15689
|
)
|
|
15690
15690
|
}
|
|
15691
15691
|
)
|
|
15692
15692
|
}
|
|
15693
15693
|
),
|
|
15694
|
-
d == null ? void 0 : d.map((
|
|
15694
|
+
d == null ? void 0 : d.map((te, Q) => /* @__PURE__ */ o(
|
|
15695
15695
|
xi,
|
|
15696
15696
|
{
|
|
15697
15697
|
rowSizes: v,
|
|
15698
15698
|
columnTitles: a,
|
|
15699
15699
|
rowData: e,
|
|
15700
15700
|
pageSizes: t,
|
|
15701
|
-
children: typeof
|
|
15701
|
+
children: typeof te == "string" ? $[te] : te
|
|
15702
15702
|
},
|
|
15703
15703
|
Q
|
|
15704
15704
|
))
|
|
15705
15705
|
]
|
|
15706
15706
|
},
|
|
15707
|
-
|
|
15707
|
+
D
|
|
15708
15708
|
),
|
|
15709
|
-
E[
|
|
15709
|
+
E[D] && /* @__PURE__ */ o(
|
|
15710
15710
|
vs,
|
|
15711
15711
|
{
|
|
15712
15712
|
children: /* @__PURE__ */ o(
|
|
@@ -15726,7 +15726,7 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15726
15726
|
minHeight: "100px",
|
|
15727
15727
|
width: "95%",
|
|
15728
15728
|
borderTop: `1px solid ${c.borderSubtle01}`
|
|
15729
|
-
}, children: /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o("div", { style: { width: "90%", margin: "20px auto" }, children: s == null ? void 0 : s.map((
|
|
15729
|
+
}, children: /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o("div", { style: { width: "90%", margin: "20px auto" }, children: s == null ? void 0 : s.map((te) => /* @__PURE__ */ o("p", { style: { margin: "2px" }, children: te + "" + $[typeof te == "string" ? te : ""] })) }) }) })
|
|
15730
15730
|
}
|
|
15731
15731
|
)
|
|
15732
15732
|
}
|
|
@@ -15743,13 +15743,13 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15743
15743
|
borderRight: `1px solid ${c.borderSubtle01}`
|
|
15744
15744
|
},
|
|
15745
15745
|
children: [
|
|
15746
|
-
/* @__PURE__ */ o(Is, { name: "select", onChange:
|
|
15746
|
+
/* @__PURE__ */ o(Is, { name: "select", onChange: N, children: t.map(($, D) => /* @__PURE__ */ o(Cs, { value: $, children: $ }, D)) }),
|
|
15747
15747
|
/* @__PURE__ */ y(ws, { children: [
|
|
15748
15748
|
x + 1,
|
|
15749
15749
|
" – ",
|
|
15750
|
-
Math.min(x + A,
|
|
15750
|
+
Math.min(x + A, H.length),
|
|
15751
15751
|
" de ",
|
|
15752
|
-
|
|
15752
|
+
H.length,
|
|
15753
15753
|
" itens"
|
|
15754
15754
|
] })
|
|
15755
15755
|
]
|
|
@@ -15773,8 +15773,8 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15773
15773
|
{
|
|
15774
15774
|
name: "select",
|
|
15775
15775
|
value: B,
|
|
15776
|
-
onChange:
|
|
15777
|
-
children: Array.from({ length: oe }, ($,
|
|
15776
|
+
onChange: Z,
|
|
15777
|
+
children: Array.from({ length: oe }, ($, D) => /* @__PURE__ */ o(Cs, { value: D + 1, children: D + 1 }, D + 1))
|
|
15778
15778
|
}
|
|
15779
15779
|
),
|
|
15780
15780
|
/* @__PURE__ */ y(ws, { children: [
|
|
@@ -15802,11 +15802,11 @@ const k3 = /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
|
15802
15802
|
ys,
|
|
15803
15803
|
{
|
|
15804
15804
|
onClick: R,
|
|
15805
|
-
disabled: x + A >=
|
|
15805
|
+
disabled: x + A >= H.length,
|
|
15806
15806
|
style: {
|
|
15807
15807
|
borderRight: "none",
|
|
15808
|
-
opacity: x + A >=
|
|
15809
|
-
cursor: x + A >=
|
|
15808
|
+
opacity: x + A >= H.length ? ".5" : "1",
|
|
15809
|
+
cursor: x + A >= H.length ? "not-allowed" : "pointer"
|
|
15810
15810
|
},
|
|
15811
15811
|
children: k3
|
|
15812
15812
|
}
|
|
@@ -16108,22 +16108,27 @@ letter-spacing: 0.32px;
|
|
|
16108
16108
|
forSlider: v,
|
|
16109
16109
|
onChange: I,
|
|
16110
16110
|
borderNone: f,
|
|
16111
|
-
noRadius: x
|
|
16111
|
+
noRadius: x,
|
|
16112
|
+
SymbolCipher: m,
|
|
16113
|
+
randomSymbol: A,
|
|
16114
|
+
clearFilds: S
|
|
16112
16115
|
}) => {
|
|
16113
|
-
const [
|
|
16114
|
-
const
|
|
16115
|
-
if (
|
|
16116
|
-
const
|
|
16117
|
-
...
|
|
16116
|
+
const [k, w] = U(p || "0,00"), E = (T) => {
|
|
16117
|
+
const L = T.target.value.replace(m || "", "").replace(A || "", "").trim(), H = q3(L);
|
|
16118
|
+
if (w(H), I) {
|
|
16119
|
+
const ee = {
|
|
16120
|
+
...T,
|
|
16118
16121
|
target: {
|
|
16119
|
-
...
|
|
16120
|
-
value:
|
|
16122
|
+
...T.target,
|
|
16123
|
+
value: H
|
|
16121
16124
|
}
|
|
16122
16125
|
};
|
|
16123
|
-
|
|
16126
|
+
(T.target instanceof HTMLInputElement || T.target instanceof HTMLTextAreaElement) && I(ee);
|
|
16124
16127
|
}
|
|
16125
16128
|
};
|
|
16126
|
-
return
|
|
16129
|
+
return ke(() => {
|
|
16130
|
+
S && w("0,00");
|
|
16131
|
+
}, [S, g, I]), /* @__PURE__ */ o("div", { children: /* @__PURE__ */ y(Y3, { type: n, forSlider: v, children: [
|
|
16127
16132
|
/* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
16128
16133
|
K3,
|
|
16129
16134
|
{
|
|
@@ -16157,13 +16162,14 @@ letter-spacing: 0.32px;
|
|
|
16157
16162
|
size: u ?? "large",
|
|
16158
16163
|
placeholder: d,
|
|
16159
16164
|
disabled: l,
|
|
16160
|
-
value: `R$ ${
|
|
16161
|
-
onChange:
|
|
16165
|
+
value: `R$ ${p || k}`,
|
|
16166
|
+
onChange: E,
|
|
16162
16167
|
readOnly: s,
|
|
16163
16168
|
name: g,
|
|
16164
16169
|
forModal: b,
|
|
16165
16170
|
forSlider: v,
|
|
16166
|
-
maxLength: r
|
|
16171
|
+
maxLength: r,
|
|
16172
|
+
clearFilds: S
|
|
16167
16173
|
}
|
|
16168
16174
|
),
|
|
16169
16175
|
/* @__PURE__ */ o(
|