@xola/ui-kit 2.1.29 → 2.1.30
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/build/ui-kit.mjs +290 -290
- package/build/ui-kit.umd.js +7 -7
- package/package.json +1 -1
package/build/ui-kit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Transition as Ce, Dialog as Ke, Switch as Rn } from "@headlessui/react";
|
|
2
2
|
import c from "prop-types";
|
|
3
3
|
import * as j from "react";
|
|
4
|
-
import n, { useState as
|
|
4
|
+
import n, { useState as ne, useEffect as Te, cloneElement as bt, Fragment as be, Children as Se, createContext as wt, useRef as ge, useCallback as ue, useMemo as Me, useContext as Ve, useLayoutEffect as vo, forwardRef as Gn, createElement as We, Component as pa } from "react";
|
|
5
5
|
import y from "clsx";
|
|
6
6
|
import { range as ga, round as ot, isNumber as ha, isString as vr, isEmpty as br, isFunction as fn, isArray as vn, merge as _e } from "lodash";
|
|
7
7
|
import zn from "@tippyjs/react";
|
|
@@ -200,7 +200,7 @@ const ka = {
|
|
|
200
200
|
children: l,
|
|
201
201
|
...s
|
|
202
202
|
}) => {
|
|
203
|
-
const [u, d] =
|
|
203
|
+
const [u, d] = ne(!1);
|
|
204
204
|
Te(() => {
|
|
205
205
|
if (o && !t) {
|
|
206
206
|
d(!0);
|
|
@@ -707,7 +707,7 @@ const Oa = {}, Ha = {
|
|
|
707
707
|
isStickyHeader: s = !0,
|
|
708
708
|
isStickyFooter: u = !0
|
|
709
709
|
}) => {
|
|
710
|
-
const [d, m] =
|
|
710
|
+
const [d, m] = ne(!1), [h, b] = ne(!1);
|
|
711
711
|
Te(() => {
|
|
712
712
|
m(!1), b(!1);
|
|
713
713
|
}, [r]);
|
|
@@ -715,10 +715,10 @@ const Oa = {}, Ha = {
|
|
|
715
715
|
d || b(!1), m(!d);
|
|
716
716
|
}, w = () => {
|
|
717
717
|
h || m(!1), b(!h);
|
|
718
|
-
}, { announcements: g, notices: f } = r != null ? r : {}, v = (f == null ? void 0 : f.count) <= 0 || !f,
|
|
719
|
-
var
|
|
720
|
-
k === "left" ? (
|
|
721
|
-
},
|
|
718
|
+
}, { announcements: g, notices: f } = r != null ? r : {}, v = (f == null ? void 0 : f.count) <= 0 || !f, A = (k, E) => {
|
|
719
|
+
var x, I;
|
|
720
|
+
k === "left" ? (E && m(!1), (x = g.onClose) == null || x.call(g)) : (E && b(!1), (I = f.onClose) == null || I.call(f));
|
|
721
|
+
}, L = s && u;
|
|
722
722
|
return /* @__PURE__ */ n.createElement(
|
|
723
723
|
"div",
|
|
724
724
|
{
|
|
@@ -726,7 +726,7 @@ const Oa = {}, Ha = {
|
|
|
726
726
|
Oa,
|
|
727
727
|
"ui-sidebar",
|
|
728
728
|
i ? "fixed" : "relative",
|
|
729
|
-
!
|
|
729
|
+
!L && "overflow-y-auto",
|
|
730
730
|
"z-20 flex h-full w-16 flex-col bg-black py-2 px-1 text-white md:w-24 xl:w-50",
|
|
731
731
|
o
|
|
732
732
|
)
|
|
@@ -751,7 +751,7 @@ const Oa = {}, Ha = {
|
|
|
751
751
|
title: g.title,
|
|
752
752
|
content: g.content,
|
|
753
753
|
isOpen: d,
|
|
754
|
-
onClose: (k) =>
|
|
754
|
+
onClose: (k) => A("left", !!k)
|
|
755
755
|
}
|
|
756
756
|
),
|
|
757
757
|
f && /* @__PURE__ */ n.createElement(
|
|
@@ -763,10 +763,10 @@ const Oa = {}, Ha = {
|
|
|
763
763
|
title: f.title,
|
|
764
764
|
content: f.content,
|
|
765
765
|
isOpen: h,
|
|
766
|
-
onClose: (k) =>
|
|
766
|
+
onClose: (k) => A("right", !!k)
|
|
767
767
|
}
|
|
768
768
|
),
|
|
769
|
-
/* @__PURE__ */ n.createElement("div", { className: y("flex-grow space-y-2",
|
|
769
|
+
/* @__PURE__ */ n.createElement("div", { className: y("flex-grow space-y-2", L && "overflow-y-auto") }, /* @__PURE__ */ n.createElement("div", { className: "text-center" }, e != null ? e : /* @__PURE__ */ n.createElement(
|
|
770
770
|
Bo,
|
|
771
771
|
{
|
|
772
772
|
className: y(
|
|
@@ -1205,39 +1205,39 @@ function ji(e, t, o) {
|
|
|
1205
1205
|
if (typeof e != "function")
|
|
1206
1206
|
throw new TypeError(Oi);
|
|
1207
1207
|
t = Mr(t) || 0, Di(o) && (m = !!o.leading, h = "maxWait" in o, i = h ? Hi(Mr(o.maxWait) || 0, t) : i, b = "trailing" in o ? !!o.trailing : b);
|
|
1208
|
-
function C(
|
|
1208
|
+
function C(x) {
|
|
1209
1209
|
var I = a, M = r;
|
|
1210
|
-
return a = r = void 0, d =
|
|
1210
|
+
return a = r = void 0, d = x, l = e.apply(M, I), l;
|
|
1211
1211
|
}
|
|
1212
|
-
function w(
|
|
1213
|
-
return d =
|
|
1212
|
+
function w(x) {
|
|
1213
|
+
return d = x, s = setTimeout(v, t), m ? C(x) : l;
|
|
1214
1214
|
}
|
|
1215
|
-
function g(
|
|
1216
|
-
var I =
|
|
1215
|
+
function g(x) {
|
|
1216
|
+
var I = x - u, M = x - d, T = t - I;
|
|
1217
1217
|
return h ? Wi(T, i - M) : T;
|
|
1218
1218
|
}
|
|
1219
|
-
function f(
|
|
1220
|
-
var I =
|
|
1219
|
+
function f(x) {
|
|
1220
|
+
var I = x - u, M = x - d;
|
|
1221
1221
|
return u === void 0 || I >= t || I < 0 || h && M >= i;
|
|
1222
1222
|
}
|
|
1223
1223
|
function v() {
|
|
1224
|
-
var
|
|
1225
|
-
if (f(
|
|
1226
|
-
return
|
|
1227
|
-
s = setTimeout(v, g(
|
|
1224
|
+
var x = an();
|
|
1225
|
+
if (f(x))
|
|
1226
|
+
return A(x);
|
|
1227
|
+
s = setTimeout(v, g(x));
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return s = void 0, b && a ? C(
|
|
1229
|
+
function A(x) {
|
|
1230
|
+
return s = void 0, b && a ? C(x) : (a = r = void 0, l);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function L() {
|
|
1233
1233
|
s !== void 0 && clearTimeout(s), d = 0, a = u = r = s = void 0;
|
|
1234
1234
|
}
|
|
1235
1235
|
function k() {
|
|
1236
|
-
return s === void 0 ? l :
|
|
1236
|
+
return s === void 0 ? l : A(an());
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
var
|
|
1240
|
-
if (a = arguments, r = this, u =
|
|
1238
|
+
function E() {
|
|
1239
|
+
var x = an(), I = f(x);
|
|
1240
|
+
if (a = arguments, r = this, u = x, I) {
|
|
1241
1241
|
if (s === void 0)
|
|
1242
1242
|
return w(u);
|
|
1243
1243
|
if (h)
|
|
@@ -1245,7 +1245,7 @@ function ji(e, t, o) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
return s === void 0 && (s = setTimeout(v, t)), l;
|
|
1247
1247
|
}
|
|
1248
|
-
return
|
|
1248
|
+
return E.cancel = L, E.flush = k, E;
|
|
1249
1249
|
}
|
|
1250
1250
|
var Pi = ji;
|
|
1251
1251
|
const Lt = typeof window > "u" ? !1 : window.navigator.userAgent.includes("Macintosh");
|
|
@@ -1258,10 +1258,10 @@ const jo = wt({
|
|
|
1258
1258
|
const t = ge(1), o = ue(() => t.current++, [t]), a = Me(() => ({ generateId: o }), [o]);
|
|
1259
1259
|
return /* @__PURE__ */ n.createElement(jo.Provider, { value: a }, e);
|
|
1260
1260
|
}, yn = (e) => {
|
|
1261
|
-
const { generateId: t } = Ve(jo), [o] =
|
|
1261
|
+
const { generateId: t } = Ve(jo), [o] = ne(() => `${e}-${t()}`);
|
|
1262
1262
|
return o;
|
|
1263
1263
|
}, Xi = () => {
|
|
1264
|
-
const [e, t] =
|
|
1264
|
+
const [e, t] = ne(!1);
|
|
1265
1265
|
return Te(() => {
|
|
1266
1266
|
t(!0);
|
|
1267
1267
|
}, []), e;
|
|
@@ -1317,8 +1317,8 @@ const Ji = Pi((e, t) => e(t), 500), Zo = ({
|
|
|
1317
1317
|
minChars: h = 0,
|
|
1318
1318
|
...b
|
|
1319
1319
|
}) => {
|
|
1320
|
-
const [C, w] =
|
|
1321
|
-
|
|
1320
|
+
const [C, w] = ne(!0), [g, f] = ne(o != null ? o : ""), v = ge(), A = yn("search-input"), L = yn("search-menu"), k = Xi(), [E, x] = ne(!0), I = { value: g }, M = g ? [I, ...t] : [], T = ({ selectedItem: D, type: oe }) => {
|
|
1321
|
+
oe !== on.stateChangeTypes.InputBlur && oe !== on.stateChangeTypes.FunctionCloseMenu && (D === I ? (r == null || r(g), v.current.blur()) : D && (i == null || i(D), v.current.blur()), ee());
|
|
1322
1322
|
}, X = ({ inputValue: D }) => {
|
|
1323
1323
|
f(D), a && Ji(a, D);
|
|
1324
1324
|
}, {
|
|
@@ -1328,7 +1328,7 @@ const Ji = Pi((e, t) => e(t), 500), Zo = ({
|
|
|
1328
1328
|
getInputProps: z,
|
|
1329
1329
|
getComboboxProps: O,
|
|
1330
1330
|
highlightedIndex: _,
|
|
1331
|
-
getItemProps:
|
|
1331
|
+
getItemProps: re,
|
|
1332
1332
|
closeMenu: ee
|
|
1333
1333
|
} = on({
|
|
1334
1334
|
items: M,
|
|
@@ -1339,11 +1339,11 @@ const Ji = Pi((e, t) => e(t), 500), Zo = ({
|
|
|
1339
1339
|
onSelectedItemChange: T
|
|
1340
1340
|
});
|
|
1341
1341
|
Te(() => {
|
|
1342
|
-
H ?
|
|
1343
|
-
}, [H,
|
|
1342
|
+
H ? x(!1) : setTimeout(() => x(!0), 1);
|
|
1343
|
+
}, [H, x]);
|
|
1344
1344
|
const q = () => {
|
|
1345
1345
|
w(!1), G();
|
|
1346
|
-
}, $ = (H || !
|
|
1346
|
+
}, $ = (H || !E || u) && M.length > 0 && !m, se = $ && !s && M.length <= 1 && g.length >= h;
|
|
1347
1347
|
wr(Lt ? "cmd+k" : "ctrl+k", (D) => {
|
|
1348
1348
|
D.preventDefault(), v.current.focus();
|
|
1349
1349
|
}), wr("esc", () => v.current.blur(), { enableOnTags: ["INPUT"] });
|
|
@@ -1352,7 +1352,7 @@ const Ji = Pi((e, t) => e(t), 500), Zo = ({
|
|
|
1352
1352
|
"input",
|
|
1353
1353
|
{
|
|
1354
1354
|
...z({
|
|
1355
|
-
id:
|
|
1355
|
+
id: A,
|
|
1356
1356
|
type: "text",
|
|
1357
1357
|
className: y(
|
|
1358
1358
|
"ui-search-input",
|
|
@@ -1370,7 +1370,7 @@ const Ji = Pi((e, t) => e(t), 500), Zo = ({
|
|
|
1370
1370
|
"ul",
|
|
1371
1371
|
{
|
|
1372
1372
|
...P({
|
|
1373
|
-
id:
|
|
1373
|
+
id: L,
|
|
1374
1374
|
className: y(
|
|
1375
1375
|
"ui-search-menu",
|
|
1376
1376
|
"absolute top-10 divide-y divide-gray-light w-full xl:w-[590px] max-h-[75vh] border border-secondary-lighter shadow-xl mt-1 rounded overflow-auto z-10 bg-white",
|
|
@@ -1378,16 +1378,16 @@ const Ji = Pi((e, t) => e(t), 500), Zo = ({
|
|
|
1378
1378
|
)
|
|
1379
1379
|
})
|
|
1380
1380
|
},
|
|
1381
|
-
K ? M.map((D,
|
|
1381
|
+
K ? M.map((D, oe) => /* @__PURE__ */ n.createElement("li", { key: D, ...re({ key: oe, item: D, index: oe, className: "ui-search-item" }) }, D === I ? s ? /* @__PURE__ */ n.createElement("div", { className: "p-3 text-center" }, /* @__PURE__ */ n.createElement(Ut, { size: "small" })) : g.length < h ? /* @__PURE__ */ n.createElement(
|
|
1382
1382
|
"div",
|
|
1383
1383
|
{
|
|
1384
1384
|
className: y(
|
|
1385
1385
|
"cursor-pointer p-2",
|
|
1386
|
-
_ ===
|
|
1386
|
+
_ === oe ? "bg-blue-light text-white" : ""
|
|
1387
1387
|
)
|
|
1388
1388
|
},
|
|
1389
1389
|
`Enter at least ${h} characters to begin search`
|
|
1390
|
-
) : null : l == null ? void 0 : l(D, _ ===
|
|
1390
|
+
) : null : l == null ? void 0 : l(D, _ === oe))) : null,
|
|
1391
1391
|
K && se ? /* @__PURE__ */ n.createElement("li", { className: "cursor-not-allowed p-2" }, "No results found") : null,
|
|
1392
1392
|
K && M.length < 5 ? /* @__PURE__ */ n.createElement("li", { className: "search-footer pointer-events sticky bottom-0 flex space-x-5 p-2 text-sm text-gray-dark" }, /* @__PURE__ */ n.createElement("span", { className: "flex items-center" }, /* @__PURE__ */ n.createElement(De, { char: "up", className: "mr-0.5" }), /* @__PURE__ */ n.createElement(De, { char: "down", className: "mr-2" }), " navigate results"), /* @__PURE__ */ n.createElement("span", { className: "flex items-center" }, /* @__PURE__ */ n.createElement(De, { char: "enter", className: "mr-2" }), " submit"), /* @__PURE__ */ n.createElement("span", { className: "flex items-center" }, /* @__PURE__ */ n.createElement(De, { char: "esc", className: "mr-2" }), " close search")) : null
|
|
1393
1393
|
));
|
|
@@ -1925,17 +1925,17 @@ function I0(e) {
|
|
|
1925
1925
|
return o1(Bt("", null, null, null, [""], e = r1(e), 0, [0], e));
|
|
1926
1926
|
}
|
|
1927
1927
|
function Bt(e, t, o, a, r, i, l, s, u) {
|
|
1928
|
-
for (var d = 0, m = 0, h = l, b = 0, C = 0, w = 0, g = 1, f = 1, v = 1,
|
|
1929
|
-
switch (w =
|
|
1928
|
+
for (var d = 0, m = 0, h = l, b = 0, C = 0, w = 0, g = 1, f = 1, v = 1, A = 0, L = "", k = r, E = i, x = a, I = L; f; )
|
|
1929
|
+
switch (w = A, A = fe()) {
|
|
1930
1930
|
case 40:
|
|
1931
1931
|
if (w != 108 && ce(I, h - 1) == 58) {
|
|
1932
|
-
An(I += U(Nt(
|
|
1932
|
+
An(I += U(Nt(A), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
1933
1933
|
break;
|
|
1934
1934
|
}
|
|
1935
1935
|
case 34:
|
|
1936
1936
|
case 39:
|
|
1937
1937
|
case 91:
|
|
1938
|
-
I += Nt(
|
|
1938
|
+
I += Nt(A);
|
|
1939
1939
|
break;
|
|
1940
1940
|
case 9:
|
|
1941
1941
|
case 10:
|
|
@@ -1961,7 +1961,7 @@ function Bt(e, t, o, a, r, i, l, s, u) {
|
|
|
1961
1961
|
case 125 * g:
|
|
1962
1962
|
case 59:
|
|
1963
1963
|
case 0:
|
|
1964
|
-
switch (
|
|
1964
|
+
switch (A) {
|
|
1965
1965
|
case 0:
|
|
1966
1966
|
case 125:
|
|
1967
1967
|
f = 0;
|
|
@@ -1971,32 +1971,32 @@ function Bt(e, t, o, a, r, i, l, s, u) {
|
|
|
1971
1971
|
case 59:
|
|
1972
1972
|
I += ";";
|
|
1973
1973
|
default:
|
|
1974
|
-
if (Ct(
|
|
1974
|
+
if (Ct(x = Fr(I, t, o, d, m, r, s, L, k = [], E = [], h), i), A === 123)
|
|
1975
1975
|
if (m === 0)
|
|
1976
|
-
Bt(I, t,
|
|
1976
|
+
Bt(I, t, x, x, k, i, h, s, E);
|
|
1977
1977
|
else
|
|
1978
1978
|
switch (b === 99 && ce(I, 3) === 110 ? 100 : b) {
|
|
1979
1979
|
case 100:
|
|
1980
1980
|
case 109:
|
|
1981
1981
|
case 115:
|
|
1982
|
-
Bt(e,
|
|
1982
|
+
Bt(e, x, x, a && Ct(Fr(e, x, x, 0, 0, r, s, L, r, k = [], h), E), r, E, h, s, a ? k : E);
|
|
1983
1983
|
break;
|
|
1984
1984
|
default:
|
|
1985
|
-
Bt(I,
|
|
1985
|
+
Bt(I, x, x, x, [""], E, 0, s, E);
|
|
1986
1986
|
}
|
|
1987
1987
|
}
|
|
1988
|
-
d = m = C = 0, g = v = 1,
|
|
1988
|
+
d = m = C = 0, g = v = 1, L = I = "", h = l;
|
|
1989
1989
|
break;
|
|
1990
1990
|
case 58:
|
|
1991
1991
|
h = 1 + Ee(I), C = w;
|
|
1992
1992
|
default:
|
|
1993
1993
|
if (g < 1) {
|
|
1994
|
-
if (
|
|
1994
|
+
if (A == 123)
|
|
1995
1995
|
--g;
|
|
1996
|
-
else if (
|
|
1996
|
+
else if (A == 125 && g++ == 0 && w0() == 125)
|
|
1997
1997
|
continue;
|
|
1998
1998
|
}
|
|
1999
|
-
switch (I += $t(
|
|
1999
|
+
switch (I += $t(A), A * g) {
|
|
2000
2000
|
case 38:
|
|
2001
2001
|
v = m > 0 ? 1 : (I += "\f", -1);
|
|
2002
2002
|
break;
|
|
@@ -2004,7 +2004,7 @@ function Bt(e, t, o, a, r, i, l, s, u) {
|
|
|
2004
2004
|
s[d++] = (Ee(I) - 1) * v, v = 1;
|
|
2005
2005
|
break;
|
|
2006
2006
|
case 64:
|
|
2007
|
-
Ie() === 45 && (I += Nt(fe())), b = Ie(), m = h = Ee(
|
|
2007
|
+
Ie() === 45 && (I += Nt(fe())), b = Ie(), m = h = Ee(L = I += C0(Mt())), A++;
|
|
2008
2008
|
break;
|
|
2009
2009
|
case 45:
|
|
2010
2010
|
w === 45 && Ee(I) == 2 && (g = 0);
|
|
@@ -2014,8 +2014,8 @@ function Bt(e, t, o, a, r, i, l, s, u) {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
function Fr(e, t, o, a, r, i, l, s, u, d, m) {
|
|
2016
2016
|
for (var h = r - 1, b = r === 0 ? i : [""], C = or(b), w = 0, g = 0, f = 0; w < a; ++w)
|
|
2017
|
-
for (var v = 0,
|
|
2018
|
-
(
|
|
2017
|
+
for (var v = 0, A = pt(e, h + 1, h = p0(g = l[w])), L = e; v < C; ++v)
|
|
2018
|
+
(L = t1(g > 0 ? b[v] + " " + A : U(A, /&\f/g, b[v]))) && (u[f++] = L);
|
|
2019
2019
|
return tn(e, t, o, r === 0 ? nr : s, u, d, m);
|
|
2020
2020
|
}
|
|
2021
2021
|
function k0(e, t, o) {
|
|
@@ -2323,12 +2323,12 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
2323
2323
|
})], b = L0(d.concat(r, h)), C = function(f) {
|
|
2324
2324
|
return $e(I0(f), b);
|
|
2325
2325
|
};
|
|
2326
|
-
u = function(f, v,
|
|
2327
|
-
m =
|
|
2328
|
-
insert: function(
|
|
2329
|
-
|
|
2326
|
+
u = function(f, v, A, L) {
|
|
2327
|
+
m = A, process.env.NODE_ENV !== "production" && v.map !== void 0 && (m = {
|
|
2328
|
+
insert: function(E) {
|
|
2329
|
+
A.insert(E + v.map);
|
|
2330
2330
|
}
|
|
2331
|
-
}), C(f ? f + "{" + v.styles + "}" : v.styles),
|
|
2331
|
+
}), C(f ? f + "{" + v.styles + "}" : v.styles), L && (w.inserted[v.name] = !0);
|
|
2332
2332
|
};
|
|
2333
2333
|
}
|
|
2334
2334
|
var w = {
|
|
@@ -2361,67 +2361,67 @@ function P0() {
|
|
|
2361
2361
|
if (Rr)
|
|
2362
2362
|
return Y;
|
|
2363
2363
|
Rr = 1;
|
|
2364
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118,
|
|
2365
|
-
function
|
|
2366
|
-
if (typeof
|
|
2367
|
-
var
|
|
2368
|
-
switch (
|
|
2364
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
|
|
2365
|
+
function L(E) {
|
|
2366
|
+
if (typeof E == "object" && E !== null) {
|
|
2367
|
+
var x = E.$$typeof;
|
|
2368
|
+
switch (x) {
|
|
2369
2369
|
case t:
|
|
2370
|
-
switch (
|
|
2370
|
+
switch (E = E.type, E) {
|
|
2371
2371
|
case u:
|
|
2372
2372
|
case d:
|
|
2373
2373
|
case a:
|
|
2374
2374
|
case i:
|
|
2375
2375
|
case r:
|
|
2376
2376
|
case h:
|
|
2377
|
-
return
|
|
2377
|
+
return E;
|
|
2378
2378
|
default:
|
|
2379
|
-
switch (
|
|
2379
|
+
switch (E = E && E.$$typeof, E) {
|
|
2380
2380
|
case s:
|
|
2381
2381
|
case m:
|
|
2382
2382
|
case w:
|
|
2383
2383
|
case C:
|
|
2384
2384
|
case l:
|
|
2385
|
-
return x;
|
|
2386
|
-
default:
|
|
2387
2385
|
return E;
|
|
2386
|
+
default:
|
|
2387
|
+
return x;
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
2390
|
case o:
|
|
2391
|
-
return
|
|
2391
|
+
return x;
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
|
-
function k(
|
|
2396
|
-
return
|
|
2397
|
-
}
|
|
2398
|
-
return Y.AsyncMode = u, Y.ConcurrentMode = d, Y.ContextConsumer = s, Y.ContextProvider = l, Y.Element = t, Y.ForwardRef = m, Y.Fragment = a, Y.Lazy = w, Y.Memo = C, Y.Portal = o, Y.Profiler = i, Y.StrictMode = r, Y.Suspense = h, Y.isAsyncMode = function(
|
|
2399
|
-
return k(
|
|
2400
|
-
}, Y.isConcurrentMode = k, Y.isContextConsumer = function(
|
|
2401
|
-
return
|
|
2402
|
-
}, Y.isContextProvider = function(
|
|
2403
|
-
return
|
|
2404
|
-
}, Y.isElement = function(
|
|
2405
|
-
return typeof
|
|
2406
|
-
}, Y.isForwardRef = function(
|
|
2407
|
-
return
|
|
2408
|
-
}, Y.isFragment = function(
|
|
2409
|
-
return
|
|
2410
|
-
}, Y.isLazy = function(
|
|
2411
|
-
return
|
|
2412
|
-
}, Y.isMemo = function(
|
|
2413
|
-
return
|
|
2414
|
-
}, Y.isPortal = function(
|
|
2415
|
-
return
|
|
2416
|
-
}, Y.isProfiler = function(
|
|
2417
|
-
return
|
|
2418
|
-
}, Y.isStrictMode = function(
|
|
2419
|
-
return
|
|
2420
|
-
}, Y.isSuspense = function(
|
|
2421
|
-
return
|
|
2422
|
-
}, Y.isValidElementType = function(
|
|
2423
|
-
return typeof
|
|
2424
|
-
}, Y.typeOf =
|
|
2395
|
+
function k(E) {
|
|
2396
|
+
return L(E) === d;
|
|
2397
|
+
}
|
|
2398
|
+
return Y.AsyncMode = u, Y.ConcurrentMode = d, Y.ContextConsumer = s, Y.ContextProvider = l, Y.Element = t, Y.ForwardRef = m, Y.Fragment = a, Y.Lazy = w, Y.Memo = C, Y.Portal = o, Y.Profiler = i, Y.StrictMode = r, Y.Suspense = h, Y.isAsyncMode = function(E) {
|
|
2399
|
+
return k(E) || L(E) === u;
|
|
2400
|
+
}, Y.isConcurrentMode = k, Y.isContextConsumer = function(E) {
|
|
2401
|
+
return L(E) === s;
|
|
2402
|
+
}, Y.isContextProvider = function(E) {
|
|
2403
|
+
return L(E) === l;
|
|
2404
|
+
}, Y.isElement = function(E) {
|
|
2405
|
+
return typeof E == "object" && E !== null && E.$$typeof === t;
|
|
2406
|
+
}, Y.isForwardRef = function(E) {
|
|
2407
|
+
return L(E) === m;
|
|
2408
|
+
}, Y.isFragment = function(E) {
|
|
2409
|
+
return L(E) === a;
|
|
2410
|
+
}, Y.isLazy = function(E) {
|
|
2411
|
+
return L(E) === w;
|
|
2412
|
+
}, Y.isMemo = function(E) {
|
|
2413
|
+
return L(E) === C;
|
|
2414
|
+
}, Y.isPortal = function(E) {
|
|
2415
|
+
return L(E) === o;
|
|
2416
|
+
}, Y.isProfiler = function(E) {
|
|
2417
|
+
return L(E) === i;
|
|
2418
|
+
}, Y.isStrictMode = function(E) {
|
|
2419
|
+
return L(E) === r;
|
|
2420
|
+
}, Y.isSuspense = function(E) {
|
|
2421
|
+
return L(E) === h;
|
|
2422
|
+
}, Y.isValidElementType = function(E) {
|
|
2423
|
+
return typeof E == "string" || typeof E == "function" || E === a || E === d || E === i || E === r || E === h || E === b || typeof E == "object" && E !== null && (E.$$typeof === w || E.$$typeof === C || E.$$typeof === l || E.$$typeof === s || E.$$typeof === m || E.$$typeof === f || E.$$typeof === v || E.$$typeof === A || E.$$typeof === g);
|
|
2424
|
+
}, Y.typeOf = L, Y;
|
|
2425
2425
|
}
|
|
2426
2426
|
var J = {};
|
|
2427
2427
|
/** @license React v16.13.1
|
|
@@ -2435,9 +2435,9 @@ var J = {};
|
|
|
2435
2435
|
var Gr;
|
|
2436
2436
|
function Z0() {
|
|
2437
2437
|
return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2438
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118,
|
|
2439
|
-
function
|
|
2440
|
-
return typeof N == "string" || typeof N == "function" || N === a || N === d || N === i || N === r || N === h || N === b || typeof N == "object" && N !== null && (N.$$typeof === w || N.$$typeof === C || N.$$typeof === l || N.$$typeof === s || N.$$typeof === m || N.$$typeof === f || N.$$typeof === v || N.$$typeof ===
|
|
2438
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
|
|
2439
|
+
function L(N) {
|
|
2440
|
+
return typeof N == "string" || typeof N == "function" || N === a || N === d || N === i || N === r || N === h || N === b || typeof N == "object" && N !== null && (N.$$typeof === w || N.$$typeof === C || N.$$typeof === l || N.$$typeof === s || N.$$typeof === m || N.$$typeof === f || N.$$typeof === v || N.$$typeof === A || N.$$typeof === g);
|
|
2441
2441
|
}
|
|
2442
2442
|
function k(N) {
|
|
2443
2443
|
if (typeof N == "object" && N !== null) {
|
|
@@ -2471,7 +2471,7 @@ function Z0() {
|
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
|
-
var
|
|
2474
|
+
var E = u, x = d, I = s, M = l, T = t, X = m, H = a, G = w, P = C, z = o, O = i, _ = r, re = h, ee = !1;
|
|
2475
2475
|
function q(N) {
|
|
2476
2476
|
return ee || (ee = !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) || k(N) === u;
|
|
2477
2477
|
}
|
|
@@ -2487,7 +2487,7 @@ function Z0() {
|
|
|
2487
2487
|
function D(N) {
|
|
2488
2488
|
return typeof N == "object" && N !== null && N.$$typeof === t;
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2490
|
+
function oe(N) {
|
|
2491
2491
|
return k(N) === m;
|
|
2492
2492
|
}
|
|
2493
2493
|
function R(N) {
|
|
@@ -2511,7 +2511,7 @@ function Z0() {
|
|
|
2511
2511
|
function Ae(N) {
|
|
2512
2512
|
return k(N) === h;
|
|
2513
2513
|
}
|
|
2514
|
-
J.AsyncMode =
|
|
2514
|
+
J.AsyncMode = E, J.ConcurrentMode = x, J.ContextConsumer = I, J.ContextProvider = M, J.Element = T, J.ForwardRef = X, J.Fragment = H, J.Lazy = G, J.Memo = P, J.Portal = z, J.Profiler = O, J.StrictMode = _, J.Suspense = re, J.isAsyncMode = q, J.isConcurrentMode = $, J.isContextConsumer = se, J.isContextProvider = K, J.isElement = D, J.isForwardRef = oe, J.isFragment = R, J.isLazy = W, J.isMemo = te, J.isPortal = le, J.isProfiler = ve, J.isStrictMode = Ge, J.isSuspense = Ae, J.isValidElementType = L, J.typeOf = k;
|
|
2515
2515
|
}()), J;
|
|
2516
2516
|
}
|
|
2517
2517
|
(function(e) {
|
|
@@ -3411,7 +3411,7 @@ function Ps(e) {
|
|
|
3411
3411
|
};
|
|
3412
3412
|
if (!o || !o.offsetParent)
|
|
3413
3413
|
return d;
|
|
3414
|
-
var m = u.getBoundingClientRect(), h = m.height, b = o.getBoundingClientRect(), C = b.bottom, w = b.height, g = b.top, f = o.offsetParent.getBoundingClientRect(), v = f.top,
|
|
3414
|
+
var m = u.getBoundingClientRect(), h = m.height, b = o.getBoundingClientRect(), C = b.bottom, w = b.height, g = b.top, f = o.offsetParent.getBoundingClientRect(), v = f.top, A = l ? window.innerHeight : Ts(u), L = I1(u), k = parseInt(getComputedStyle(o).marginBottom, 10), E = parseInt(getComputedStyle(o).marginTop, 10), x = v - E, I = A - g, M = x + L, T = h - L - g, X = C - A + L + k, H = L + g - E, G = 160;
|
|
3415
3415
|
switch (r) {
|
|
3416
3416
|
case "auto":
|
|
3417
3417
|
case "bottom":
|
|
@@ -3434,7 +3434,7 @@ function Ps(e) {
|
|
|
3434
3434
|
};
|
|
3435
3435
|
}
|
|
3436
3436
|
if (r === "auto" || l) {
|
|
3437
|
-
var z = t, O = l ?
|
|
3437
|
+
var z = t, O = l ? x : M;
|
|
3438
3438
|
return O >= a && (z = Math.min(O - k - s, t)), {
|
|
3439
3439
|
placement: "top",
|
|
3440
3440
|
maxHeight: z
|
|
@@ -3447,7 +3447,7 @@ function Ps(e) {
|
|
|
3447
3447
|
};
|
|
3448
3448
|
break;
|
|
3449
3449
|
case "top":
|
|
3450
|
-
if (
|
|
3450
|
+
if (x >= w)
|
|
3451
3451
|
return {
|
|
3452
3452
|
placement: "top",
|
|
3453
3453
|
maxHeight: t
|
|
@@ -3457,9 +3457,9 @@ function Ps(e) {
|
|
|
3457
3457
|
placement: "top",
|
|
3458
3458
|
maxHeight: t
|
|
3459
3459
|
};
|
|
3460
|
-
if (!l && M >= a || l &&
|
|
3460
|
+
if (!l && M >= a || l && x >= a) {
|
|
3461
3461
|
var _ = t;
|
|
3462
|
-
return (!l && M >= a || l &&
|
|
3462
|
+
return (!l && M >= a || l && x >= a) && (_ = l ? x - E : M - E), i && kt(u, H, G), {
|
|
3463
3463
|
placement: "top",
|
|
3464
3464
|
maxHeight: _
|
|
3465
3465
|
};
|
|
@@ -3494,25 +3494,25 @@ var A1 = function(t) {
|
|
|
3494
3494
|
marginTop: s.menuGutter
|
|
3495
3495
|
});
|
|
3496
3496
|
}, L1 = /* @__PURE__ */ wt(null), Ys = function(t) {
|
|
3497
|
-
var o = t.children, a = t.minMenuHeight, r = t.maxMenuHeight, i = t.menuPlacement, l = t.menuPosition, s = t.menuShouldScrollIntoView, u = t.theme, d = Ve(L1) || {}, m = d.setPortalPlacement, h = ge(null), b =
|
|
3497
|
+
var o = t.children, a = t.minMenuHeight, r = t.maxMenuHeight, i = t.menuPlacement, l = t.menuPosition, s = t.menuShouldScrollIntoView, u = t.theme, d = Ve(L1) || {}, m = d.setPortalPlacement, h = ge(null), b = ne(r), C = Ne(b, 2), w = C[0], g = C[1], f = ne(null), v = Ne(f, 2), A = v[0], L = v[1], k = u.spacing.controlHeight;
|
|
3498
3498
|
return Fn(function() {
|
|
3499
|
-
var
|
|
3500
|
-
if (!!
|
|
3501
|
-
var
|
|
3499
|
+
var E = h.current;
|
|
3500
|
+
if (!!E) {
|
|
3501
|
+
var x = l === "fixed", I = s && !x, M = Ps({
|
|
3502
3502
|
maxHeight: r,
|
|
3503
|
-
menuEl:
|
|
3503
|
+
menuEl: E,
|
|
3504
3504
|
minHeight: a,
|
|
3505
3505
|
placement: i,
|
|
3506
3506
|
shouldScroll: I,
|
|
3507
|
-
isFixedPosition:
|
|
3507
|
+
isFixedPosition: x,
|
|
3508
3508
|
controlHeight: k
|
|
3509
3509
|
});
|
|
3510
|
-
g(M.maxHeight),
|
|
3510
|
+
g(M.maxHeight), L(M.placement), m == null || m(M.placement);
|
|
3511
3511
|
}
|
|
3512
3512
|
}, [r, i, l, s, a, m, k]), o({
|
|
3513
3513
|
ref: h,
|
|
3514
3514
|
placerProps: V(V({}, t), {}, {
|
|
3515
|
-
placement:
|
|
3515
|
+
placement: A || A1(i),
|
|
3516
3516
|
maxHeight: w
|
|
3517
3517
|
})
|
|
3518
3518
|
});
|
|
@@ -3580,37 +3580,37 @@ var Ks = function(t) {
|
|
|
3580
3580
|
zIndex: 1
|
|
3581
3581
|
};
|
|
3582
3582
|
}, $s = function(t) {
|
|
3583
|
-
var o = t.appendTo, a = t.children, r = t.controlElement, i = t.innerProps, l = t.menuPlacement, s = t.menuPosition, u = ge(null), d = ge(null), m =
|
|
3583
|
+
var o = t.appendTo, a = t.children, r = t.controlElement, i = t.innerProps, l = t.menuPlacement, s = t.menuPosition, u = ge(null), d = ge(null), m = ne(A1(l)), h = Ne(m, 2), b = h[0], C = h[1], w = Me(function() {
|
|
3584
3584
|
return {
|
|
3585
3585
|
setPortalPlacement: C
|
|
3586
3586
|
};
|
|
3587
|
-
}, []), g =
|
|
3587
|
+
}, []), g = ne(null), f = Ne(g, 2), v = f[0], A = f[1], L = ue(function() {
|
|
3588
3588
|
if (!!r) {
|
|
3589
3589
|
var I = Gs(r), M = s === "fixed" ? 0 : window.pageYOffset, T = I[b] + M;
|
|
3590
|
-
(T !== (v == null ? void 0 : v.offset) || I.left !== (v == null ? void 0 : v.rect.left) || I.width !== (v == null ? void 0 : v.rect.width)) &&
|
|
3590
|
+
(T !== (v == null ? void 0 : v.offset) || I.left !== (v == null ? void 0 : v.rect.left) || I.width !== (v == null ? void 0 : v.rect.width)) && A({
|
|
3591
3591
|
offset: T,
|
|
3592
3592
|
rect: I
|
|
3593
3593
|
});
|
|
3594
3594
|
}
|
|
3595
3595
|
}, [r, s, b, v == null ? void 0 : v.offset, v == null ? void 0 : v.rect.left, v == null ? void 0 : v.rect.width]);
|
|
3596
3596
|
Fn(function() {
|
|
3597
|
-
|
|
3598
|
-
}, [
|
|
3597
|
+
L();
|
|
3598
|
+
}, [L]);
|
|
3599
3599
|
var k = ue(function() {
|
|
3600
|
-
typeof d.current == "function" && (d.current(), d.current = null), r && u.current && (d.current = Ns(r, u.current,
|
|
3600
|
+
typeof d.current == "function" && (d.current(), d.current = null), r && u.current && (d.current = Ns(r, u.current, L, {
|
|
3601
3601
|
elementResize: "ResizeObserver" in window
|
|
3602
3602
|
}));
|
|
3603
|
-
}, [r,
|
|
3603
|
+
}, [r, L]);
|
|
3604
3604
|
Fn(function() {
|
|
3605
3605
|
k();
|
|
3606
3606
|
}, [k]);
|
|
3607
|
-
var
|
|
3607
|
+
var E = ue(function(I) {
|
|
3608
3608
|
u.current = I, k();
|
|
3609
3609
|
}, [k]);
|
|
3610
3610
|
if (!o && s !== "fixed" || !v)
|
|
3611
3611
|
return null;
|
|
3612
|
-
var
|
|
3613
|
-
ref:
|
|
3612
|
+
var x = F("div", S({
|
|
3613
|
+
ref: E
|
|
3614
3614
|
}, ae(V(V({}, t), {}, {
|
|
3615
3615
|
offset: v.offset,
|
|
3616
3616
|
position: s,
|
|
@@ -3620,7 +3620,7 @@ var Ks = function(t) {
|
|
|
3620
3620
|
}), i), a);
|
|
3621
3621
|
return F(L1.Provider, {
|
|
3622
3622
|
value: w
|
|
3623
|
-
}, o ? /* @__PURE__ */ va(
|
|
3623
|
+
}, o ? /* @__PURE__ */ va(x, o) : x);
|
|
3624
3624
|
}, el = function(t) {
|
|
3625
3625
|
var o = t.isDisabled, a = t.isRtl;
|
|
3626
3626
|
return {
|
|
@@ -4181,25 +4181,25 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4181
4181
|
return "".concat(a).concat(o ? " for search term " + o : "", ".");
|
|
4182
4182
|
}
|
|
4183
4183
|
}, _l = function(t) {
|
|
4184
|
-
var o = t.ariaSelection, a = t.focusedOption, r = t.focusedValue, i = t.focusableOptions, l = t.isFocused, s = t.selectValue, u = t.selectProps, d = t.id, m = u.ariaLiveMessages, h = u.getOptionLabel, b = u.inputValue, C = u.isMulti, w = u.isOptionDisabled, g = u.isSearchable, f = u.menuIsOpen, v = u.options,
|
|
4184
|
+
var o = t.ariaSelection, a = t.focusedOption, r = t.focusedValue, i = t.focusableOptions, l = t.isFocused, s = t.selectValue, u = t.selectProps, d = t.id, m = u.ariaLiveMessages, h = u.getOptionLabel, b = u.inputValue, C = u.isMulti, w = u.isOptionDisabled, g = u.isSearchable, f = u.menuIsOpen, v = u.options, A = u.screenReaderStatus, L = u.tabSelectsValue, k = u["aria-label"], E = u["aria-live"], x = Me(function() {
|
|
4185
4185
|
return V(V({}, Ql), m || {});
|
|
4186
4186
|
}, [m]), I = Me(function() {
|
|
4187
4187
|
var z = "";
|
|
4188
|
-
if (o &&
|
|
4189
|
-
var O = o.option, _ = o.options,
|
|
4188
|
+
if (o && x.onChange) {
|
|
4189
|
+
var O = o.option, _ = o.options, re = o.removedValue, ee = o.removedValues, q = o.value, $ = function(te) {
|
|
4190
4190
|
return Array.isArray(te) ? null : te;
|
|
4191
|
-
}, se =
|
|
4191
|
+
}, se = re || O || $(q), K = se ? h(se) : "", D = _ || ee || void 0, oe = D ? D.map(h) : [], R = V({
|
|
4192
4192
|
isDisabled: se && w(se, s),
|
|
4193
4193
|
label: K,
|
|
4194
|
-
labels:
|
|
4194
|
+
labels: oe
|
|
4195
4195
|
}, o);
|
|
4196
|
-
z =
|
|
4196
|
+
z = x.onChange(R);
|
|
4197
4197
|
}
|
|
4198
4198
|
return z;
|
|
4199
|
-
}, [o,
|
|
4199
|
+
}, [o, x, w, s, h]), M = Me(function() {
|
|
4200
4200
|
var z = "", O = a || r, _ = !!(a && s && s.includes(a));
|
|
4201
|
-
if (O &&
|
|
4202
|
-
var
|
|
4201
|
+
if (O && x.onFocus) {
|
|
4202
|
+
var re = {
|
|
4203
4203
|
focused: O,
|
|
4204
4204
|
label: h(O),
|
|
4205
4205
|
isDisabled: w(O, s),
|
|
@@ -4208,36 +4208,36 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4208
4208
|
context: O === a ? "menu" : "value",
|
|
4209
4209
|
selectValue: s
|
|
4210
4210
|
};
|
|
4211
|
-
z =
|
|
4211
|
+
z = x.onFocus(re);
|
|
4212
4212
|
}
|
|
4213
4213
|
return z;
|
|
4214
|
-
}, [a, r, h, w,
|
|
4214
|
+
}, [a, r, h, w, x, i, s]), T = Me(function() {
|
|
4215
4215
|
var z = "";
|
|
4216
|
-
if (f && v.length &&
|
|
4217
|
-
var O =
|
|
4216
|
+
if (f && v.length && x.onFilter) {
|
|
4217
|
+
var O = A({
|
|
4218
4218
|
count: i.length
|
|
4219
4219
|
});
|
|
4220
|
-
z =
|
|
4220
|
+
z = x.onFilter({
|
|
4221
4221
|
inputValue: b,
|
|
4222
4222
|
resultsMessage: O
|
|
4223
4223
|
});
|
|
4224
4224
|
}
|
|
4225
4225
|
return z;
|
|
4226
|
-
}, [i, b, f,
|
|
4226
|
+
}, [i, b, f, x, v, A]), X = Me(function() {
|
|
4227
4227
|
var z = "";
|
|
4228
|
-
if (
|
|
4228
|
+
if (x.guidance) {
|
|
4229
4229
|
var O = r ? "value" : f ? "menu" : "input";
|
|
4230
|
-
z =
|
|
4230
|
+
z = x.guidance({
|
|
4231
4231
|
"aria-label": k,
|
|
4232
4232
|
context: O,
|
|
4233
4233
|
isDisabled: a && w(a, s),
|
|
4234
4234
|
isMulti: C,
|
|
4235
4235
|
isSearchable: g,
|
|
4236
|
-
tabSelectsValue:
|
|
4236
|
+
tabSelectsValue: L
|
|
4237
4237
|
});
|
|
4238
4238
|
}
|
|
4239
4239
|
return z;
|
|
4240
|
-
}, [k, a, r, C, w, g, f,
|
|
4240
|
+
}, [k, a, r, C, w, g, f, x, s, L]), H = "".concat(M, " ").concat(T, " ").concat(X), G = F(be, null, F("span", {
|
|
4241
4241
|
id: "aria-selection"
|
|
4242
4242
|
}, I), F("span", {
|
|
4243
4243
|
id: "aria-context"
|
|
@@ -4245,7 +4245,7 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4245
4245
|
return F(be, null, F(to, {
|
|
4246
4246
|
id: d
|
|
4247
4247
|
}, P && G), F(to, {
|
|
4248
|
-
"aria-live":
|
|
4248
|
+
"aria-live": E,
|
|
4249
4249
|
"aria-atomic": "false",
|
|
4250
4250
|
"aria-relevant": "additions text"
|
|
4251
4251
|
}, l && !P && G));
|
|
@@ -4558,8 +4558,8 @@ var rc = function(t) {
|
|
|
4558
4558
|
function oc(e) {
|
|
4559
4559
|
var t = e.isEnabled, o = e.onBottomArrive, a = e.onBottomLeave, r = e.onTopArrive, i = e.onTopLeave, l = ge(!1), s = ge(!1), u = ge(0), d = ge(null), m = ue(function(f, v) {
|
|
4560
4560
|
if (d.current !== null) {
|
|
4561
|
-
var
|
|
4562
|
-
M > v && l.current && (a && a(f), l.current = !1), I && s.current && (i && i(f), s.current = !1), I && v > M ? (o && !l.current && o(f),
|
|
4561
|
+
var A = d.current, L = A.scrollTop, k = A.scrollHeight, E = A.clientHeight, x = d.current, I = v > 0, M = k - E - L, T = !1;
|
|
4562
|
+
M > v && l.current && (a && a(f), l.current = !1), I && s.current && (i && i(f), s.current = !1), I && v > M ? (o && !l.current && o(f), x.scrollTop = k, T = !0, l.current = !0) : !I && -v > L && (r && !s.current && r(f), x.scrollTop = 0, T = !0, s.current = !0), T && rc(f);
|
|
4563
4563
|
}
|
|
4564
4564
|
}, [o, a, r, i]), h = ue(function(f) {
|
|
4565
4565
|
m(f, f.deltaY);
|
|
@@ -5087,7 +5087,7 @@ var U1 = function(t) {
|
|
|
5087
5087
|
}, r.onValueInputFocus = function(s) {
|
|
5088
5088
|
s.preventDefault(), s.stopPropagation(), r.focus();
|
|
5089
5089
|
}, r.onKeyDown = function(s) {
|
|
5090
|
-
var u = r.props, d = u.isMulti, m = u.backspaceRemovesValue, h = u.escapeClearsValue, b = u.inputValue, C = u.isClearable, w = u.isDisabled, g = u.menuIsOpen, f = u.onKeyDown, v = u.tabSelectsValue,
|
|
5090
|
+
var u = r.props, d = u.isMulti, m = u.backspaceRemovesValue, h = u.escapeClearsValue, b = u.inputValue, C = u.isClearable, w = u.isDisabled, g = u.menuIsOpen, f = u.onKeyDown, v = u.tabSelectsValue, A = u.openMenuOnFocus, L = r.state, k = L.focusedOption, E = L.focusedValue, x = L.selectValue;
|
|
5091
5091
|
if (!w && !(typeof f == "function" && (f(s), s.defaultPrevented))) {
|
|
5092
5092
|
switch (r.blockOptionHover = !0, s.key) {
|
|
5093
5093
|
case "ArrowLeft":
|
|
@@ -5104,8 +5104,8 @@ var U1 = function(t) {
|
|
|
5104
5104
|
case "Backspace":
|
|
5105
5105
|
if (b)
|
|
5106
5106
|
return;
|
|
5107
|
-
if (
|
|
5108
|
-
r.removeValue(
|
|
5107
|
+
if (E)
|
|
5108
|
+
r.removeValue(E);
|
|
5109
5109
|
else {
|
|
5110
5110
|
if (!m)
|
|
5111
5111
|
return;
|
|
@@ -5113,7 +5113,7 @@ var U1 = function(t) {
|
|
|
5113
5113
|
}
|
|
5114
5114
|
break;
|
|
5115
5115
|
case "Tab":
|
|
5116
|
-
if (r.isComposing || s.shiftKey || !g || !v || !k ||
|
|
5116
|
+
if (r.isComposing || s.shiftKey || !g || !v || !k || A && r.isOptionSelected(k, x))
|
|
5117
5117
|
return;
|
|
5118
5118
|
r.selectOption(k);
|
|
5119
5119
|
break;
|
|
@@ -5384,7 +5384,7 @@ var U1 = function(t) {
|
|
|
5384
5384
|
}, {
|
|
5385
5385
|
key: "renderInput",
|
|
5386
5386
|
value: function() {
|
|
5387
|
-
var r = this.props, i = r.isDisabled, l = r.isSearchable, s = r.inputId, u = r.inputValue, d = r.tabIndex, m = r.form, h = r.menuIsOpen, b = r.required, C = this.getComponents(), w = C.Input, g = this.state, f = g.inputIsHidden, v = g.ariaSelection,
|
|
5387
|
+
var r = this.props, i = r.isDisabled, l = r.isSearchable, s = r.inputId, u = r.inputValue, d = r.tabIndex, m = r.form, h = r.menuIsOpen, b = r.required, C = this.getComponents(), w = C.Input, g = this.state, f = g.inputIsHidden, v = g.ariaSelection, A = this.commonProps, L = s || this.getElementId("input"), k = V(V(V({
|
|
5388
5388
|
"aria-autocomplete": "list",
|
|
5389
5389
|
"aria-expanded": h,
|
|
5390
5390
|
"aria-haspopup": !0,
|
|
@@ -5404,11 +5404,11 @@ var U1 = function(t) {
|
|
|
5404
5404
|
} : {
|
|
5405
5405
|
"aria-describedby": this.getElementId("placeholder")
|
|
5406
5406
|
});
|
|
5407
|
-
return l ? /* @__PURE__ */ j.createElement(w, S({},
|
|
5407
|
+
return l ? /* @__PURE__ */ j.createElement(w, S({}, A, {
|
|
5408
5408
|
autoCapitalize: "none",
|
|
5409
5409
|
autoComplete: "off",
|
|
5410
5410
|
autoCorrect: "off",
|
|
5411
|
-
id:
|
|
5411
|
+
id: L,
|
|
5412
5412
|
innerRef: this.getInputRef,
|
|
5413
5413
|
isDisabled: i,
|
|
5414
5414
|
isHidden: f,
|
|
@@ -5421,7 +5421,7 @@ var U1 = function(t) {
|
|
|
5421
5421
|
type: "text",
|
|
5422
5422
|
value: u
|
|
5423
5423
|
}, k)) : /* @__PURE__ */ j.createElement(nc, S({
|
|
5424
|
-
id:
|
|
5424
|
+
id: L,
|
|
5425
5425
|
innerRef: this.getInputRef,
|
|
5426
5426
|
onBlur: this.onInputBlur,
|
|
5427
5427
|
onChange: Wt,
|
|
@@ -5436,19 +5436,19 @@ var U1 = function(t) {
|
|
|
5436
5436
|
}, {
|
|
5437
5437
|
key: "renderPlaceholderOrValue",
|
|
5438
5438
|
value: function() {
|
|
5439
|
-
var r = this, i = this.getComponents(), l = i.MultiValue, s = i.MultiValueContainer, u = i.MultiValueLabel, d = i.MultiValueRemove, m = i.SingleValue, h = i.Placeholder, b = this.commonProps, C = this.props, w = C.controlShouldRenderValue, g = C.isDisabled, f = C.isMulti, v = C.inputValue,
|
|
5439
|
+
var r = this, i = this.getComponents(), l = i.MultiValue, s = i.MultiValueContainer, u = i.MultiValueLabel, d = i.MultiValueRemove, m = i.SingleValue, h = i.Placeholder, b = this.commonProps, C = this.props, w = C.controlShouldRenderValue, g = C.isDisabled, f = C.isMulti, v = C.inputValue, A = C.placeholder, L = this.state, k = L.selectValue, E = L.focusedValue, x = L.isFocused;
|
|
5440
5440
|
if (!this.hasValue() || !w)
|
|
5441
5441
|
return v ? null : /* @__PURE__ */ j.createElement(h, S({}, b, {
|
|
5442
5442
|
key: "placeholder",
|
|
5443
5443
|
isDisabled: g,
|
|
5444
|
-
isFocused:
|
|
5444
|
+
isFocused: x,
|
|
5445
5445
|
innerProps: {
|
|
5446
5446
|
id: this.getElementId("placeholder")
|
|
5447
5447
|
}
|
|
5448
|
-
}),
|
|
5448
|
+
}), A);
|
|
5449
5449
|
if (f)
|
|
5450
5450
|
return k.map(function(M, T) {
|
|
5451
|
-
var X = M ===
|
|
5451
|
+
var X = M === E, H = "".concat(r.getOptionLabel(M), "-").concat(r.getOptionValue(M));
|
|
5452
5452
|
return /* @__PURE__ */ j.createElement(l, S({}, b, {
|
|
5453
5453
|
components: {
|
|
5454
5454
|
Container: s,
|
|
@@ -5544,15 +5544,15 @@ var U1 = function(t) {
|
|
|
5544
5544
|
}, {
|
|
5545
5545
|
key: "renderMenu",
|
|
5546
5546
|
value: function() {
|
|
5547
|
-
var r = this, i = this.getComponents(), l = i.Group, s = i.GroupHeading, u = i.Menu, d = i.MenuList, m = i.MenuPortal, h = i.LoadingMessage, b = i.NoOptionsMessage, C = i.Option, w = this.commonProps, g = this.state.focusedOption, f = this.props, v = f.captureMenuScroll,
|
|
5547
|
+
var r = this, i = this.getComponents(), l = i.Group, s = i.GroupHeading, u = i.Menu, d = i.MenuList, m = i.MenuPortal, h = i.LoadingMessage, b = i.NoOptionsMessage, C = i.Option, w = this.commonProps, g = this.state.focusedOption, f = this.props, v = f.captureMenuScroll, A = f.inputValue, L = f.isLoading, k = f.loadingMessage, E = f.minMenuHeight, x = f.maxMenuHeight, I = f.menuIsOpen, M = f.menuPlacement, T = f.menuPosition, X = f.menuPortalTarget, H = f.menuShouldBlockScroll, G = f.menuShouldScrollIntoView, P = f.noOptionsMessage, z = f.onMenuScrollToTop, O = f.onMenuScrollToBottom;
|
|
5548
5548
|
if (!I)
|
|
5549
5549
|
return null;
|
|
5550
|
-
var _ = function(D,
|
|
5550
|
+
var _ = function(D, oe) {
|
|
5551
5551
|
var R = D.type, W = D.data, te = D.isDisabled, le = D.isSelected, ve = D.label, Ge = D.value, Ae = g === W, N = te ? void 0 : function() {
|
|
5552
5552
|
return r.onOptionHover(W);
|
|
5553
5553
|
}, Le = te ? void 0 : function() {
|
|
5554
5554
|
return r.selectOption(W);
|
|
5555
|
-
}, we = "".concat(r.getElementId("option"), "-").concat(
|
|
5555
|
+
}, we = "".concat(r.getElementId("option"), "-").concat(oe), Fe = {
|
|
5556
5556
|
id: we,
|
|
5557
5557
|
onClick: Le,
|
|
5558
5558
|
onMouseMove: N,
|
|
@@ -5571,15 +5571,15 @@ var U1 = function(t) {
|
|
|
5571
5571
|
isFocused: Ae,
|
|
5572
5572
|
innerRef: Ae ? r.getFocusedOptionRef : void 0
|
|
5573
5573
|
}), r.formatOptionLabel(D.data, "menu"));
|
|
5574
|
-
},
|
|
5574
|
+
}, re;
|
|
5575
5575
|
if (this.hasOptions())
|
|
5576
|
-
|
|
5576
|
+
re = this.getCategorizedOptions().map(function(K) {
|
|
5577
5577
|
if (K.type === "group") {
|
|
5578
|
-
var D = K.data,
|
|
5578
|
+
var D = K.data, oe = K.options, R = K.index, W = "".concat(r.getElementId("group"), "-").concat(R), te = "".concat(W, "-heading");
|
|
5579
5579
|
return /* @__PURE__ */ j.createElement(l, S({}, w, {
|
|
5580
5580
|
key: W,
|
|
5581
5581
|
data: D,
|
|
5582
|
-
options:
|
|
5582
|
+
options: oe,
|
|
5583
5583
|
Heading: s,
|
|
5584
5584
|
headingProps: {
|
|
5585
5585
|
id: te,
|
|
@@ -5592,29 +5592,29 @@ var U1 = function(t) {
|
|
|
5592
5592
|
} else if (K.type === "option")
|
|
5593
5593
|
return _(K, "".concat(K.index));
|
|
5594
5594
|
});
|
|
5595
|
-
else if (
|
|
5595
|
+
else if (L) {
|
|
5596
5596
|
var ee = k({
|
|
5597
|
-
inputValue:
|
|
5597
|
+
inputValue: A
|
|
5598
5598
|
});
|
|
5599
5599
|
if (ee === null)
|
|
5600
5600
|
return null;
|
|
5601
|
-
|
|
5601
|
+
re = /* @__PURE__ */ j.createElement(h, w, ee);
|
|
5602
5602
|
} else {
|
|
5603
5603
|
var q = P({
|
|
5604
|
-
inputValue:
|
|
5604
|
+
inputValue: A
|
|
5605
5605
|
});
|
|
5606
5606
|
if (q === null)
|
|
5607
5607
|
return null;
|
|
5608
|
-
|
|
5608
|
+
re = /* @__PURE__ */ j.createElement(b, w, q);
|
|
5609
5609
|
}
|
|
5610
5610
|
var $ = {
|
|
5611
|
-
minMenuHeight:
|
|
5612
|
-
maxMenuHeight:
|
|
5611
|
+
minMenuHeight: E,
|
|
5612
|
+
maxMenuHeight: x,
|
|
5613
5613
|
menuPlacement: M,
|
|
5614
5614
|
menuPosition: T,
|
|
5615
5615
|
menuShouldScrollIntoView: G
|
|
5616
5616
|
}, se = /* @__PURE__ */ j.createElement(Ys, S({}, w, $), function(K) {
|
|
5617
|
-
var D = K.ref,
|
|
5617
|
+
var D = K.ref, oe = K.placerProps, R = oe.placement, W = oe.maxHeight;
|
|
5618
5618
|
return /* @__PURE__ */ j.createElement(u, S({}, w, $, {
|
|
5619
5619
|
innerRef: D,
|
|
5620
5620
|
innerProps: {
|
|
@@ -5622,7 +5622,7 @@ var U1 = function(t) {
|
|
|
5622
5622
|
onMouseMove: r.onMenuMouseMove,
|
|
5623
5623
|
id: r.getElementId("listbox")
|
|
5624
5624
|
},
|
|
5625
|
-
isLoading:
|
|
5625
|
+
isLoading: L,
|
|
5626
5626
|
placement: R
|
|
5627
5627
|
}), /* @__PURE__ */ j.createElement(cc, {
|
|
5628
5628
|
captureEnabled: v,
|
|
@@ -5634,10 +5634,10 @@ var U1 = function(t) {
|
|
|
5634
5634
|
innerRef: function(ve) {
|
|
5635
5635
|
r.getMenuListRef(ve), te(ve);
|
|
5636
5636
|
},
|
|
5637
|
-
isLoading:
|
|
5637
|
+
isLoading: L,
|
|
5638
5638
|
maxHeight: W,
|
|
5639
5639
|
focusedOption: g
|
|
5640
|
-
}),
|
|
5640
|
+
}), re);
|
|
5641
5641
|
}));
|
|
5642
5642
|
});
|
|
5643
5643
|
return X || T === "fixed" ? /* @__PURE__ */ j.createElement(m, S({}, w, {
|
|
@@ -5736,17 +5736,17 @@ var U1 = function(t) {
|
|
|
5736
5736
|
}], [{
|
|
5737
5737
|
key: "getDerivedStateFromProps",
|
|
5738
5738
|
value: function(r, i) {
|
|
5739
|
-
var l = i.prevProps, s = i.clearFocusValueOnUpdate, u = i.inputIsHiddenAfterUpdate, d = i.ariaSelection, m = i.isFocused, h = i.prevWasFocused, b = r.options, C = r.value, w = r.menuIsOpen, g = r.inputValue, f = r.isMulti, v = jt(C),
|
|
5739
|
+
var l = i.prevProps, s = i.clearFocusValueOnUpdate, u = i.inputIsHiddenAfterUpdate, d = i.ariaSelection, m = i.isFocused, h = i.prevWasFocused, b = r.options, C = r.value, w = r.menuIsOpen, g = r.inputValue, f = r.isMulti, v = jt(C), A = {};
|
|
5740
5740
|
if (l && (C !== l.value || b !== l.options || w !== l.menuIsOpen || g !== l.inputValue)) {
|
|
5741
|
-
var
|
|
5742
|
-
|
|
5741
|
+
var L = w ? yc(r, v) : [], k = s ? Cc(i, v) : null, E = Ic(i, L);
|
|
5742
|
+
A = {
|
|
5743
5743
|
selectValue: v,
|
|
5744
|
-
focusedOption:
|
|
5744
|
+
focusedOption: E,
|
|
5745
5745
|
focusedValue: k,
|
|
5746
5746
|
clearFocusValueOnUpdate: !1
|
|
5747
5747
|
};
|
|
5748
5748
|
}
|
|
5749
|
-
var
|
|
5749
|
+
var x = u != null && r !== l ? {
|
|
5750
5750
|
inputIsHidden: u,
|
|
5751
5751
|
inputIsHiddenAfterUpdate: void 0
|
|
5752
5752
|
} : {}, I = d, M = m && h;
|
|
@@ -5754,7 +5754,7 @@ var U1 = function(t) {
|
|
|
5754
5754
|
value: ct(f, v, v[0] || null),
|
|
5755
5755
|
options: v,
|
|
5756
5756
|
action: "initial-input-focus"
|
|
5757
|
-
}, M = !h), (d == null ? void 0 : d.action) === "initial-input-focus" && (I = null), V(V(V({},
|
|
5757
|
+
}, M = !h), (d == null ? void 0 : d.action) === "initial-input-focus" && (I = null), V(V(V({}, A), x), {}, {
|
|
5758
5758
|
prevProps: r,
|
|
5759
5759
|
ariaSelection: I,
|
|
5760
5760
|
prevWasFocused: M
|
|
@@ -5765,16 +5765,16 @@ var U1 = function(t) {
|
|
|
5765
5765
|
Q1.defaultProps = Ec;
|
|
5766
5766
|
var Ac = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5767
5767
|
function Lc(e) {
|
|
5768
|
-
var t = e.defaultInputValue, o = t === void 0 ? "" : t, a = e.defaultMenuIsOpen, r = a === void 0 ? !1 : a, i = e.defaultValue, l = i === void 0 ? null : i, s = e.inputValue, u = e.menuIsOpen, d = e.onChange, m = e.onInputChange, h = e.onMenuClose, b = e.onMenuOpen, C = e.value, w = Ye(e, Ac), g =
|
|
5768
|
+
var t = e.defaultInputValue, o = t === void 0 ? "" : t, a = e.defaultMenuIsOpen, r = a === void 0 ? !1 : a, i = e.defaultValue, l = i === void 0 ? null : i, s = e.inputValue, u = e.menuIsOpen, d = e.onChange, m = e.onInputChange, h = e.onMenuClose, b = e.onMenuOpen, C = e.value, w = Ye(e, Ac), g = ne(s !== void 0 ? s : o), f = Ne(g, 2), v = f[0], A = f[1], L = ne(u !== void 0 ? u : r), k = Ne(L, 2), E = k[0], x = k[1], I = ne(C !== void 0 ? C : l), M = Ne(I, 2), T = M[0], X = M[1], H = ue(function(ee, q) {
|
|
5769
5769
|
typeof d == "function" && d(ee, q), X(ee);
|
|
5770
5770
|
}, [d]), G = ue(function(ee, q) {
|
|
5771
5771
|
var $;
|
|
5772
|
-
typeof m == "function" && ($ = m(ee, q)),
|
|
5772
|
+
typeof m == "function" && ($ = m(ee, q)), A($ !== void 0 ? $ : ee);
|
|
5773
5773
|
}, [m]), P = ue(function() {
|
|
5774
|
-
typeof b == "function" && b(),
|
|
5774
|
+
typeof b == "function" && b(), x(!0);
|
|
5775
5775
|
}, [b]), z = ue(function() {
|
|
5776
|
-
typeof h == "function" && h(),
|
|
5777
|
-
}, [h]), O = s !== void 0 ? s : v, _ = u !== void 0 ? u :
|
|
5776
|
+
typeof h == "function" && h(), x(!1);
|
|
5777
|
+
}, [h]), O = s !== void 0 ? s : v, _ = u !== void 0 ? u : E, re = C !== void 0 ? C : T;
|
|
5778
5778
|
return V(V({}, w), {}, {
|
|
5779
5779
|
inputValue: O,
|
|
5780
5780
|
menuIsOpen: _,
|
|
@@ -5782,7 +5782,7 @@ function Lc(e) {
|
|
|
5782
5782
|
onInputChange: G,
|
|
5783
5783
|
onMenuClose: z,
|
|
5784
5784
|
onMenuOpen: P,
|
|
5785
|
-
value:
|
|
5785
|
+
value: re
|
|
5786
5786
|
});
|
|
5787
5787
|
}
|
|
5788
5788
|
var Mc = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"], po = function() {
|
|
@@ -5808,14 +5808,14 @@ var Mc = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
5808
5808
|
}
|
|
5809
5809
|
};
|
|
5810
5810
|
function Nc(e) {
|
|
5811
|
-
var t = e.allowCreateWhileLoading, o = t === void 0 ? !1 : t, a = e.createOptionPosition, r = a === void 0 ? "last" : a, i = e.formatCreateLabel, l = i === void 0 ? pn.formatCreateLabel : i, s = e.isValidNewOption, u = s === void 0 ? pn.isValidNewOption : s, d = e.getNewOptionData, m = d === void 0 ? pn.getNewOptionData : d, h = e.onCreateOption, b = e.options, C = b === void 0 ? [] : b, w = e.onChange, g = Ye(e, Mc), f = g.getOptionValue, v = f === void 0 ? H1 : f,
|
|
5811
|
+
var t = e.allowCreateWhileLoading, o = t === void 0 ? !1 : t, a = e.createOptionPosition, r = a === void 0 ? "last" : a, i = e.formatCreateLabel, l = i === void 0 ? pn.formatCreateLabel : i, s = e.isValidNewOption, u = s === void 0 ? pn.isValidNewOption : s, d = e.getNewOptionData, m = d === void 0 ? pn.getNewOptionData : d, h = e.onCreateOption, b = e.options, C = b === void 0 ? [] : b, w = e.onChange, g = Ye(e, Mc), f = g.getOptionValue, v = f === void 0 ? H1 : f, A = g.getOptionLabel, L = A === void 0 ? O1 : A, k = g.inputValue, E = g.isLoading, x = g.isMulti, I = g.value, M = g.name, T = Me(function() {
|
|
5812
5812
|
return u(k, jt(I), C, {
|
|
5813
5813
|
getOptionValue: v,
|
|
5814
|
-
getOptionLabel:
|
|
5814
|
+
getOptionLabel: L
|
|
5815
5815
|
}) ? m(k, l(k)) : void 0;
|
|
5816
|
-
}, [l, m,
|
|
5817
|
-
return (o || !
|
|
5818
|
-
}, [o, r,
|
|
5816
|
+
}, [l, m, L, v, k, u, C, I]), X = Me(function() {
|
|
5817
|
+
return (o || !E) && T ? r === "first" ? [T].concat(ut(C)) : [].concat(ut(C), [T]) : C;
|
|
5818
|
+
}, [o, r, E, T, C]), H = ue(function(G, P) {
|
|
5819
5819
|
if (P.action !== "select-option")
|
|
5820
5820
|
return w(G, P);
|
|
5821
5821
|
var z = Array.isArray(G) ? G : [G];
|
|
@@ -5828,12 +5828,12 @@ function Nc(e) {
|
|
|
5828
5828
|
name: M,
|
|
5829
5829
|
option: O
|
|
5830
5830
|
};
|
|
5831
|
-
w(ct(
|
|
5831
|
+
w(ct(x, [].concat(ut(jt(I)), [O]), O), _);
|
|
5832
5832
|
}
|
|
5833
5833
|
return;
|
|
5834
5834
|
}
|
|
5835
5835
|
w(G, P);
|
|
5836
|
-
}, [m, k,
|
|
5836
|
+
}, [m, k, x, M, T, h, w, I]);
|
|
5837
5837
|
return V(V({}, g), {}, {
|
|
5838
5838
|
options: X,
|
|
5839
5839
|
onChange: H
|
|
@@ -6158,12 +6158,12 @@ const go = {
|
|
|
6158
6158
|
...u
|
|
6159
6159
|
}) => {
|
|
6160
6160
|
var f;
|
|
6161
|
-
const [d, m] =
|
|
6162
|
-
const { name:
|
|
6163
|
-
m({ ...d, [
|
|
6161
|
+
const [d, m] = ne({ email: "", password: "", shouldRemember: !1, ...e }), h = (v) => {
|
|
6162
|
+
const { name: A, value: L } = v.target;
|
|
6163
|
+
m({ ...d, [A]: L });
|
|
6164
6164
|
}, b = (v) => {
|
|
6165
|
-
const { name:
|
|
6166
|
-
m({ ...d, [
|
|
6165
|
+
const { name: A, checked: L } = v.target;
|
|
6166
|
+
m({ ...d, [A]: L });
|
|
6167
6167
|
}, C = (v) => {
|
|
6168
6168
|
v.preventDefault(), a(d);
|
|
6169
6169
|
}, g = {
|
|
@@ -6526,14 +6526,14 @@ const na = ({
|
|
|
6526
6526
|
handleTodayClick: C,
|
|
6527
6527
|
...w
|
|
6528
6528
|
}) => {
|
|
6529
|
-
const g = B(t == null ? void 0 : t.from).isSame(B(t == null ? void 0 : t.to), "month"), f = r ? ({ date:
|
|
6530
|
-
const I = e == null ? void 0 : e(
|
|
6529
|
+
const g = B(t == null ? void 0 : t.from).isSame(B(t == null ? void 0 : t.to), "month"), f = r ? ({ date: x }) => /* @__PURE__ */ n.createElement(Xt, { date: x, currentMonth: i, onChange: h }) : void 0, v = r ? ({ date: x }) => /* @__PURE__ */ n.createElement(Xt, { date: x, currentMonth: s, onChange: b }) : void 0, A = (x) => fn(l) ? l(x) || B(x).isAfter(t.to, "day") : vn(l) ? l.some((I) => B(I).isSame(x, "day")) || B(x).isAfter(t.to, "day") : B(x).isAfter(t.to, "day"), L = (x) => g ? !0 : fn(l) ? l(x) || B(x).isBefore(t == null ? void 0 : t.from, "day") : vn(l) ? l.some((I) => B(I).isSame(x, "day")) || B(x).isBefore(t == null ? void 0 : t.from, "day") : B(x).isBefore(t == null ? void 0 : t.from, "day"), k = (x) => {
|
|
6530
|
+
const I = e == null ? void 0 : e(x), M = A(x);
|
|
6531
6531
|
return I ? /* @__PURE__ */ n.createElement(mt, { placement: "top", content: I }, /* @__PURE__ */ n.createElement(
|
|
6532
6532
|
He,
|
|
6533
6533
|
{
|
|
6534
6534
|
disabled: M,
|
|
6535
6535
|
selectedDate: t,
|
|
6536
|
-
date:
|
|
6536
|
+
date: x,
|
|
6537
6537
|
getContent: o,
|
|
6538
6538
|
currentMonth: i
|
|
6539
6539
|
}
|
|
@@ -6542,19 +6542,19 @@ const na = ({
|
|
|
6542
6542
|
{
|
|
6543
6543
|
disabled: M,
|
|
6544
6544
|
selectedDate: t,
|
|
6545
|
-
date:
|
|
6545
|
+
date: x,
|
|
6546
6546
|
getContent: o,
|
|
6547
6547
|
currentMonth: i
|
|
6548
6548
|
}
|
|
6549
6549
|
);
|
|
6550
|
-
},
|
|
6551
|
-
const I = e == null ? void 0 : e(
|
|
6550
|
+
}, E = (x) => {
|
|
6551
|
+
const I = e == null ? void 0 : e(x), M = L(x);
|
|
6552
6552
|
return I ? /* @__PURE__ */ n.createElement(mt, { placement: "top", content: I }, /* @__PURE__ */ n.createElement(
|
|
6553
6553
|
He,
|
|
6554
6554
|
{
|
|
6555
6555
|
disabled: M,
|
|
6556
6556
|
selectedDate: t,
|
|
6557
|
-
date:
|
|
6557
|
+
date: x,
|
|
6558
6558
|
getContent: o,
|
|
6559
6559
|
currentMonth: s
|
|
6560
6560
|
}
|
|
@@ -6563,7 +6563,7 @@ const na = ({
|
|
|
6563
6563
|
{
|
|
6564
6564
|
disabled: M,
|
|
6565
6565
|
selectedDate: t,
|
|
6566
|
-
date:
|
|
6566
|
+
date: x,
|
|
6567
6567
|
getContent: o,
|
|
6568
6568
|
currentMonth: s
|
|
6569
6569
|
}
|
|
@@ -6580,13 +6580,13 @@ const na = ({
|
|
|
6580
6580
|
),
|
|
6581
6581
|
month: i,
|
|
6582
6582
|
modifiers: { ...u, start: t == null ? void 0 : t.from },
|
|
6583
|
-
disabledDays:
|
|
6583
|
+
disabledDays: A,
|
|
6584
6584
|
navbarElement: Yt,
|
|
6585
6585
|
captionElement: f,
|
|
6586
6586
|
selectedDays: d,
|
|
6587
6587
|
renderDay: k,
|
|
6588
6588
|
getTooltip: e,
|
|
6589
|
-
onDayClick: (
|
|
6589
|
+
onDayClick: (x, I, M) => m(x, I, M, !0),
|
|
6590
6590
|
onMonthChange: h,
|
|
6591
6591
|
onTodayButtonClick: C,
|
|
6592
6592
|
...w
|
|
@@ -6602,13 +6602,13 @@ const na = ({
|
|
|
6602
6602
|
),
|
|
6603
6603
|
month: s,
|
|
6604
6604
|
modifiers: g ? {} : { ...u, end: t == null ? void 0 : t.to },
|
|
6605
|
-
disabledDays:
|
|
6605
|
+
disabledDays: L,
|
|
6606
6606
|
navbarElement: Yt,
|
|
6607
6607
|
captionElement: v,
|
|
6608
6608
|
selectedDays: g ? [] : d,
|
|
6609
|
-
renderDay:
|
|
6609
|
+
renderDay: E,
|
|
6610
6610
|
getTooltip: e,
|
|
6611
|
-
onDayClick: (
|
|
6611
|
+
onDayClick: (x, I, M) => m(x, I, M, !1),
|
|
6612
6612
|
onMonthChange: b,
|
|
6613
6613
|
onTodayButtonClick: C,
|
|
6614
6614
|
...w
|
|
@@ -6676,10 +6676,10 @@ const St = {
|
|
|
6676
6676
|
timezoneName: w = null,
|
|
6677
6677
|
...g
|
|
6678
6678
|
}) => {
|
|
6679
|
-
var K, D,
|
|
6680
|
-
const f = e === St.single ? t : t == null ? void 0 : t.from, [v,
|
|
6679
|
+
var K, D, oe;
|
|
6680
|
+
const f = e === St.single ? t : t == null ? void 0 : t.from, [v, A] = ne(f), [L, k] = ne(t == null ? void 0 : t.from), [E, x] = ne(
|
|
6681
6681
|
B(t == null ? void 0 : t.to).isSame(B(t == null ? void 0 : t.from), "month") ? B(t == null ? void 0 : t.from).add(1, "month").toDate() : (K = t == null ? void 0 : t.to) != null ? K : B(t == null ? void 0 : t.from).add(1, "month").toDate()
|
|
6682
|
-
), [I, M] =
|
|
6682
|
+
), [I, M] = ne(""), T = e === St.range;
|
|
6683
6683
|
Te(() => {
|
|
6684
6684
|
l == null || l(v);
|
|
6685
6685
|
}, [v, l]);
|
|
@@ -6687,15 +6687,15 @@ const St = {
|
|
|
6687
6687
|
if (T)
|
|
6688
6688
|
return;
|
|
6689
6689
|
const le = w ? B().tz(w).toDate() : new Date();
|
|
6690
|
-
W.disabled || H(le) ? (
|
|
6690
|
+
W.disabled || H(le) ? (A(le), l == null || l(le)) : i(R, W, te);
|
|
6691
6691
|
}, H = (R) => vn(a) ? a.some((W) => B(W).isSame(R, "day")) : (fn(a), a(R)), G = (R, W) => {
|
|
6692
|
-
|
|
6692
|
+
A(W.from), k(W.from), i(W, u, null);
|
|
6693
6693
|
}, P = (R) => {
|
|
6694
|
-
|
|
6694
|
+
A(R), l == null || l(R);
|
|
6695
6695
|
}, z = (R) => {
|
|
6696
6696
|
k(R), l == null || l(R);
|
|
6697
6697
|
}, O = (R) => {
|
|
6698
|
-
|
|
6698
|
+
x(R), l == null || l(R);
|
|
6699
6699
|
}, _ = (R, W, te) => {
|
|
6700
6700
|
if (!W.disabled)
|
|
6701
6701
|
if (B(t == null ? void 0 : t.from).isSame(R, "month") && z(R), M(""), T)
|
|
@@ -6708,7 +6708,7 @@ const St = {
|
|
|
6708
6708
|
i(wa.addDayToRange(R, t), W, te);
|
|
6709
6709
|
else
|
|
6710
6710
|
i(R, W, te);
|
|
6711
|
-
},
|
|
6711
|
+
}, re = r ? ({ date: R }) => /* @__PURE__ */ n.createElement(Xt, { date: R, currentMonth: v, onChange: P }) : void 0, ee = (R) => {
|
|
6712
6712
|
const W = b == null ? void 0 : b(R), te = H(R);
|
|
6713
6713
|
return W ? /* @__PURE__ */ n.createElement(mt, { placement: "top", content: W }, /* @__PURE__ */ n.createElement(
|
|
6714
6714
|
He,
|
|
@@ -6729,7 +6729,7 @@ const St = {
|
|
|
6729
6729
|
currentMonth: v
|
|
6730
6730
|
}
|
|
6731
6731
|
);
|
|
6732
|
-
}, q = T ? { start: t == null ? void 0 : t.from, end: t.to } : null, $ = T && ((D = t == null ? void 0 : t.from) == null ? void 0 : D.getTime()) !== ((
|
|
6732
|
+
}, q = T ? { start: t == null ? void 0 : t.from, end: t.to } : null, $ = T && ((D = t == null ? void 0 : t.from) == null ? void 0 : D.getTime()) !== ((oe = t.to) == null ? void 0 : oe.getTime()), se = t && (B.isDayjs(t) || T ? t : B(t).toDate());
|
|
6733
6733
|
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("div", { className: "flex" }, C ? /* @__PURE__ */ n.createElement(
|
|
6734
6734
|
ra,
|
|
6735
6735
|
{
|
|
@@ -6743,8 +6743,8 @@ const St = {
|
|
|
6743
6743
|
{
|
|
6744
6744
|
isDateRangeStyle: $,
|
|
6745
6745
|
shouldShowYearPicker: r,
|
|
6746
|
-
startMonth:
|
|
6747
|
-
endMonth:
|
|
6746
|
+
startMonth: L,
|
|
6747
|
+
endMonth: E,
|
|
6748
6748
|
modifiers: { ...u, ...q },
|
|
6749
6749
|
getTooltip: b,
|
|
6750
6750
|
disabledDays: a,
|
|
@@ -6771,7 +6771,7 @@ const St = {
|
|
|
6771
6771
|
month: v,
|
|
6772
6772
|
modifiers: { ...u, ...q },
|
|
6773
6773
|
disabledDays: a,
|
|
6774
|
-
captionElement:
|
|
6774
|
+
captionElement: re,
|
|
6775
6775
|
renderDay: ee,
|
|
6776
6776
|
navbarElement: Yt,
|
|
6777
6777
|
onDayClick: _,
|
|
@@ -6820,8 +6820,8 @@ var oa = { exports: {} };
|
|
|
6820
6820
|
var d = this.$locale().formats, m = function(h, b) {
|
|
6821
6821
|
return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(C, w, g) {
|
|
6822
6822
|
var f = g && g.toUpperCase();
|
|
6823
|
-
return w || b[g] || o[g] || b[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(v,
|
|
6824
|
-
return
|
|
6823
|
+
return w || b[g] || o[g] || b[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(v, A, L) {
|
|
6824
|
+
return A || L.slice(1);
|
|
6825
6825
|
});
|
|
6826
6826
|
});
|
|
6827
6827
|
}(u, d === void 0 ? {} : d);
|
|
@@ -6846,18 +6846,18 @@ var aa = { exports: {} };
|
|
|
6846
6846
|
(this.zone || (this.zone = {})).offset = function(f) {
|
|
6847
6847
|
if (!f || f === "Z")
|
|
6848
6848
|
return 0;
|
|
6849
|
-
var v = f.match(/([+-]|\d\d)/g),
|
|
6850
|
-
return
|
|
6849
|
+
var v = f.match(/([+-]|\d\d)/g), A = 60 * v[1] + (+v[2] || 0);
|
|
6850
|
+
return A === 0 ? 0 : v[0] === "+" ? -A : A;
|
|
6851
6851
|
}(g);
|
|
6852
6852
|
}], h = function(g) {
|
|
6853
6853
|
var f = s[g];
|
|
6854
6854
|
return f && (f.indexOf ? f : f.s.concat(f.f));
|
|
6855
6855
|
}, b = function(g, f) {
|
|
6856
|
-
var v,
|
|
6857
|
-
if (
|
|
6858
|
-
for (var
|
|
6859
|
-
if (g.indexOf(L
|
|
6860
|
-
v =
|
|
6856
|
+
var v, A = s.meridiem;
|
|
6857
|
+
if (A) {
|
|
6858
|
+
for (var L = 1; L <= 24; L += 1)
|
|
6859
|
+
if (g.indexOf(A(L, 0, f)) > -1) {
|
|
6860
|
+
v = L > 12;
|
|
6861
6861
|
break;
|
|
6862
6862
|
}
|
|
6863
6863
|
} else
|
|
@@ -6876,11 +6876,11 @@ var aa = { exports: {} };
|
|
|
6876
6876
|
}], s: [i, d("seconds")], ss: [i, d("seconds")], m: [i, d("minutes")], mm: [i, d("minutes")], H: [i, d("hours")], h: [i, d("hours")], HH: [i, d("hours")], hh: [i, d("hours")], D: [i, d("day")], DD: [r, d("day")], Do: [l, function(g) {
|
|
6877
6877
|
var f = s.ordinal, v = g.match(/\d+/);
|
|
6878
6878
|
if (this.day = v[0], f)
|
|
6879
|
-
for (var
|
|
6880
|
-
f(
|
|
6879
|
+
for (var A = 1; A <= 31; A += 1)
|
|
6880
|
+
f(A).replace(/\[|\]/g, "") === g && (this.day = A);
|
|
6881
6881
|
}], M: [i, d("month")], MM: [r, d("month")], MMM: [l, function(g) {
|
|
6882
|
-
var f = h("months"), v = (h("monthsShort") || f.map(function(
|
|
6883
|
-
return
|
|
6882
|
+
var f = h("months"), v = (h("monthsShort") || f.map(function(A) {
|
|
6883
|
+
return A.substr(0, 3);
|
|
6884
6884
|
})).indexOf(g) + 1;
|
|
6885
6885
|
if (v < 1)
|
|
6886
6886
|
throw new Error();
|
|
@@ -6896,23 +6896,23 @@ var aa = { exports: {} };
|
|
|
6896
6896
|
function w(g) {
|
|
6897
6897
|
var f, v;
|
|
6898
6898
|
f = g, v = s && s.formats;
|
|
6899
|
-
for (var
|
|
6899
|
+
for (var A = (g = f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, X, H) {
|
|
6900
6900
|
var G = H && H.toUpperCase();
|
|
6901
6901
|
return X || v[H] || o[H] || v[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(P, z, O) {
|
|
6902
6902
|
return z || O.slice(1);
|
|
6903
6903
|
});
|
|
6904
|
-
})).match(a),
|
|
6905
|
-
var
|
|
6906
|
-
|
|
6904
|
+
})).match(a), L = A.length, k = 0; k < L; k += 1) {
|
|
6905
|
+
var E = A[k], x = C[E], I = x && x[0], M = x && x[1];
|
|
6906
|
+
A[k] = M ? { regex: I, parser: M } : E.replace(/^\[|\]$/g, "");
|
|
6907
6907
|
}
|
|
6908
6908
|
return function(T) {
|
|
6909
|
-
for (var X = {}, H = 0, G = 0; H <
|
|
6910
|
-
var P =
|
|
6909
|
+
for (var X = {}, H = 0, G = 0; H < L; H += 1) {
|
|
6910
|
+
var P = A[H];
|
|
6911
6911
|
if (typeof P == "string")
|
|
6912
6912
|
G += P.length;
|
|
6913
6913
|
else {
|
|
6914
|
-
var z = P.regex, O = P.parser, _ = T.substr(G),
|
|
6915
|
-
O.call(X,
|
|
6914
|
+
var z = P.regex, O = P.parser, _ = T.substr(G), re = z.exec(_)[0];
|
|
6915
|
+
O.call(X, re), T = T.replace(re, "");
|
|
6916
6916
|
}
|
|
6917
6917
|
}
|
|
6918
6918
|
return function(ee) {
|
|
@@ -6926,25 +6926,25 @@ var aa = { exports: {} };
|
|
|
6926
6926
|
}
|
|
6927
6927
|
return function(g, f, v) {
|
|
6928
6928
|
v.p.customParseFormat = !0, g && g.parseTwoDigitYear && (u = g.parseTwoDigitYear);
|
|
6929
|
-
var
|
|
6930
|
-
|
|
6931
|
-
var
|
|
6932
|
-
this.$u =
|
|
6929
|
+
var A = f.prototype, L = A.parse;
|
|
6930
|
+
A.parse = function(k) {
|
|
6931
|
+
var E = k.date, x = k.utc, I = k.args;
|
|
6932
|
+
this.$u = x;
|
|
6933
6933
|
var M = I[1];
|
|
6934
6934
|
if (typeof M == "string") {
|
|
6935
6935
|
var T = I[2] === !0, X = I[3] === !0, H = T || X, G = I[2];
|
|
6936
|
-
X && (G = I[2]), s = this.$locale(), !T && G && (s = v.Ls[G]), this.$d = function(_,
|
|
6936
|
+
X && (G = I[2]), s = this.$locale(), !T && G && (s = v.Ls[G]), this.$d = function(_, re, ee) {
|
|
6937
6937
|
try {
|
|
6938
|
-
if (["x", "X"].indexOf(
|
|
6939
|
-
return new Date((
|
|
6940
|
-
var q = w(
|
|
6938
|
+
if (["x", "X"].indexOf(re) > -1)
|
|
6939
|
+
return new Date((re === "X" ? 1e3 : 1) * _);
|
|
6940
|
+
var q = w(re)(_), $ = q.year, se = q.month, K = q.day, D = q.hours, oe = q.minutes, R = q.seconds, W = q.milliseconds, te = q.zone, le = new Date(), ve = K || ($ || se ? 1 : le.getDate()), Ge = $ || le.getFullYear(), Ae = 0;
|
|
6941
6941
|
$ && !se || (Ae = se > 0 ? se - 1 : le.getMonth());
|
|
6942
|
-
var N = D || 0, Le =
|
|
6942
|
+
var N = D || 0, Le = oe || 0, we = R || 0, Fe = W || 0;
|
|
6943
6943
|
return te ? new Date(Date.UTC(Ge, Ae, ve, N, Le, we, Fe + 60 * te.offset * 1e3)) : ee ? new Date(Date.UTC(Ge, Ae, ve, N, Le, we, Fe)) : new Date(Ge, Ae, ve, N, Le, we, Fe);
|
|
6944
6944
|
} catch {
|
|
6945
6945
|
return new Date("");
|
|
6946
6946
|
}
|
|
6947
|
-
}(
|
|
6947
|
+
}(E, M, x), this.init(), G && G !== !0 && (this.$L = this.locale(G).$L), H && E != this.format(M) && (this.$d = new Date("")), s = {};
|
|
6948
6948
|
} else if (M instanceof Array)
|
|
6949
6949
|
for (var P = M.length, z = 1; z <= P; z += 1) {
|
|
6950
6950
|
I[1] = M[z - 1];
|
|
@@ -6956,7 +6956,7 @@ var aa = { exports: {} };
|
|
|
6956
6956
|
z === P && (this.$d = new Date(""));
|
|
6957
6957
|
}
|
|
6958
6958
|
else
|
|
6959
|
-
|
|
6959
|
+
L.call(this, k);
|
|
6960
6960
|
};
|
|
6961
6961
|
};
|
|
6962
6962
|
});
|
|
@@ -7009,21 +7009,21 @@ const Xc = (e, t = "YYYY-MM-DD") => B(e).format(t), q4 = (e, t = "h:mm a") => {
|
|
|
7009
7009
|
getDayContent: d,
|
|
7010
7010
|
...m
|
|
7011
7011
|
}) => {
|
|
7012
|
-
const [h, b] =
|
|
7013
|
-
|
|
7014
|
-
},
|
|
7015
|
-
t === "single" ? (r == null || r(
|
|
7016
|
-
},
|
|
7017
|
-
|
|
7012
|
+
const [h] = ne(e), [b, C] = ne(e), [w, g] = ne(!1), f = () => {
|
|
7013
|
+
g(!w);
|
|
7014
|
+
}, v = (k, E, x) => {
|
|
7015
|
+
t === "single" ? (r == null || r(k, E, x), f()) : r == null || r(k, b, E, x);
|
|
7016
|
+
}, A = () => {
|
|
7017
|
+
C(e), r == null || r(e), g(!1);
|
|
7018
7018
|
}, L = () => {
|
|
7019
|
-
|
|
7019
|
+
!(e != null && e.to) && t === "range" && r(h), f();
|
|
7020
7020
|
};
|
|
7021
7021
|
return Te(() => {
|
|
7022
|
-
|
|
7022
|
+
C(e);
|
|
7023
7023
|
}, [e]), /* @__PURE__ */ n.createElement(
|
|
7024
7024
|
ke,
|
|
7025
7025
|
{
|
|
7026
|
-
visible:
|
|
7026
|
+
visible: w,
|
|
7027
7027
|
maxWidth: 900,
|
|
7028
7028
|
distance: 18,
|
|
7029
7029
|
placement: "bottom",
|
|
@@ -7031,7 +7031,7 @@ const Xc = (e, t = "YYYY-MM-DD") => B(e).format(t), q4 = (e, t = "h:mm a") => {
|
|
|
7031
7031
|
onClickOutside: L,
|
|
7032
7032
|
...u
|
|
7033
7033
|
},
|
|
7034
|
-
i ? bt(i, { onClick:
|
|
7034
|
+
i ? bt(i, { onClick: f }) : /* @__PURE__ */ n.createElement(
|
|
7035
7035
|
sa,
|
|
7036
7036
|
{
|
|
7037
7037
|
readOnly: !0,
|
|
@@ -7039,18 +7039,18 @@ const Xc = (e, t = "YYYY-MM-DD") => B(e).format(t), q4 = (e, t = "h:mm a") => {
|
|
|
7039
7039
|
value: e ? Xc(e, o) : "",
|
|
7040
7040
|
placeholder: a,
|
|
7041
7041
|
className: l == null ? void 0 : l.input,
|
|
7042
|
-
onClick:
|
|
7042
|
+
onClick: f
|
|
7043
7043
|
}
|
|
7044
7044
|
),
|
|
7045
|
-
/* @__PURE__ */ n.createElement(ke.Content, { className: "pr-1" },
|
|
7045
|
+
/* @__PURE__ */ n.createElement(ke.Content, { className: "pr-1" }, w && /* @__PURE__ */ n.createElement(
|
|
7046
7046
|
hr,
|
|
7047
7047
|
{
|
|
7048
7048
|
variant: t,
|
|
7049
7049
|
getDayContent: d,
|
|
7050
7050
|
value: e,
|
|
7051
7051
|
components: s,
|
|
7052
|
-
onChange:
|
|
7053
|
-
onSubmitDateRange:
|
|
7052
|
+
onChange: v,
|
|
7053
|
+
onSubmitDateRange: A,
|
|
7054
7054
|
...m
|
|
7055
7055
|
}
|
|
7056
7056
|
))
|
|
@@ -7111,18 +7111,18 @@ const Jc = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
7111
7111
|
onError: m,
|
|
7112
7112
|
...h
|
|
7113
7113
|
}) => {
|
|
7114
|
-
const b = ge(), [C, w] =
|
|
7114
|
+
const b = ge(), [C, w] = ne(0), g = () => {
|
|
7115
7115
|
b.current.click();
|
|
7116
7116
|
}, f = (k) => {
|
|
7117
|
-
const [
|
|
7118
|
-
if (a && 1048576 * a <
|
|
7117
|
+
const [E] = k.target.files;
|
|
7118
|
+
if (a && 1048576 * a < E.size) {
|
|
7119
7119
|
m(`Image size shouldn't exceed ${a}MB`);
|
|
7120
7120
|
return;
|
|
7121
7121
|
}
|
|
7122
|
-
u(
|
|
7122
|
+
u(E);
|
|
7123
7123
|
}, v = () => {
|
|
7124
7124
|
w(C + 1), d();
|
|
7125
|
-
},
|
|
7125
|
+
}, A = typeof i == "string" ? (i == null ? void 0 : i.trim().length) > 0 : !!i, L = l ? l.trim().length > 0 : !1;
|
|
7126
7126
|
return /* @__PURE__ */ n.createElement("div", { className: y("flex items-center rounded bg-gray-lighter p-4", r ? "space-x-2" : "space-x-3") }, /* @__PURE__ */ n.createElement("div", null, e ? /* @__PURE__ */ n.createElement(Vt, { src: e, size: t }) : /* @__PURE__ */ n.createElement(
|
|
7127
7127
|
"div",
|
|
7128
7128
|
{
|
|
@@ -7142,7 +7142,7 @@ const Jc = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
7142
7142
|
onClick: v
|
|
7143
7143
|
},
|
|
7144
7144
|
"Delete"
|
|
7145
|
-
), /* @__PURE__ */ n.createElement(wn, { disabled: o, isLoading: o, onClick: g },
|
|
7145
|
+
), /* @__PURE__ */ n.createElement(wn, { disabled: o, isLoading: o, onClick: g }, L ? l.trim() : "Upload New Photo")) : /* @__PURE__ */ n.createElement(wn, { disabled: o, isLoading: o, onClick: g }, L ? l.trim() : e ? "Replace Photo" : "Upload New Photo")), /* @__PURE__ */ n.createElement(
|
|
7146
7146
|
"input",
|
|
7147
7147
|
{
|
|
7148
7148
|
key: C,
|
|
@@ -7154,7 +7154,7 @@ const Jc = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
7154
7154
|
onChange: f,
|
|
7155
7155
|
...h
|
|
7156
7156
|
}
|
|
7157
|
-
), /* @__PURE__ */ n.createElement("div", { className: "text-xs text-gray-darker" },
|
|
7157
|
+
), /* @__PURE__ */ n.createElement("div", { className: "text-xs text-gray-darker" }, A ? i : /* @__PURE__ */ n.createElement("div", null, "Check that the image is in PNG or JPG format", a ? ` and does not exceed ${a}MB` : ""))));
|
|
7158
7158
|
};
|
|
7159
7159
|
Uc.propTypes = {
|
|
7160
7160
|
src: c.string,
|