@xola/ui-kit 2.1.2 → 2.1.3
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 +516 -514
- package/build/ui-kit.umd.js +9 -9
- package/package.json +1 -1
package/build/ui-kit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Transition as ye, Dialog as Qe, Switch as kn } from "@headlessui/react";
|
|
2
2
|
import c from "prop-types";
|
|
3
|
-
import * as
|
|
4
|
-
import n, { cloneElement as gt, Fragment as fe, useState as
|
|
3
|
+
import * as j from "react";
|
|
4
|
+
import n, { cloneElement as gt, Fragment as fe, useState as re, useEffect as _e, Children as Se, createContext as ht, useRef as de, useCallback as ae, useMemo as Ne, useContext as Te, useLayoutEffect as lo, forwardRef as An, createElement as He, Component as t1 } from "react";
|
|
5
5
|
import I from "clsx";
|
|
6
6
|
import Ln from "@tippyjs/react";
|
|
7
7
|
import { followCursor as co } from "tippy.js";
|
|
@@ -12,7 +12,7 @@ import { round as nt, isString as dr, isEmpty as mr, isArray as n1, isFunction a
|
|
|
12
12
|
import o1 from "react-select";
|
|
13
13
|
import { createPortal as a1 } from "react-dom";
|
|
14
14
|
import i1 from "nouislider-react";
|
|
15
|
-
import
|
|
15
|
+
import G from "dayjs";
|
|
16
16
|
import s1, { DateUtils as l1 } from "react-day-picker";
|
|
17
17
|
import uo from "google-libphonenumber";
|
|
18
18
|
import pr from "react-hot-toast";
|
|
@@ -684,7 +684,7 @@ Rn.propTypes = {
|
|
|
684
684
|
const A1 = {
|
|
685
685
|
background: "linear-gradient(138.65deg, #583DFF 19.59%, #F849C7 62.96%, #FFC03D 97.07%)"
|
|
686
686
|
}, Ve = ({ logo: e, children: t, className: o, footer: a, notifications: r, isFixed: i = !0, onLogoClick: l }) => {
|
|
687
|
-
const [s, u] =
|
|
687
|
+
const [s, u] = re(!1), [d, m] = re(!1);
|
|
688
688
|
_e(() => {
|
|
689
689
|
u(!1), m(!1);
|
|
690
690
|
}, [r]);
|
|
@@ -692,9 +692,9 @@ const A1 = {
|
|
|
692
692
|
s || m(!1), u(!s);
|
|
693
693
|
}, w = () => {
|
|
694
694
|
d || u(!1), m(!d);
|
|
695
|
-
}, { announcements: x, notices: v } = r != null ? r : {}, h = (v == null ? void 0 : v.count) <= 0 || !v, f = (b,
|
|
696
|
-
var y,
|
|
697
|
-
b === "left" ? (
|
|
695
|
+
}, { announcements: x, notices: v } = r != null ? r : {}, h = (v == null ? void 0 : v.count) <= 0 || !v, f = (b, C) => {
|
|
696
|
+
var y, A;
|
|
697
|
+
b === "left" ? (C && u(!1), (y = x.onClose) == null || y.call(x)) : (C && m(!1), (A = v.onClose) == null || A.call(v));
|
|
698
698
|
};
|
|
699
699
|
return /* @__PURE__ */ n.createElement("div", {
|
|
700
700
|
className: I(
|
|
@@ -1151,39 +1151,39 @@ function Ni(e, t, o) {
|
|
|
1151
1151
|
if (typeof e != "function")
|
|
1152
1152
|
throw new TypeError(Ai);
|
|
1153
1153
|
t = xr(t) || 0, ki(o) && (m = !!o.leading, g = "maxWait" in o, i = g ? Li(xr(o.maxWait) || 0, t) : i, w = "trailing" in o ? !!o.trailing : w);
|
|
1154
|
-
function x(
|
|
1155
|
-
var L = a,
|
|
1156
|
-
return a = r = void 0, d =
|
|
1154
|
+
function x(k) {
|
|
1155
|
+
var L = a, N = r;
|
|
1156
|
+
return a = r = void 0, d = k, l = e.apply(N, L), l;
|
|
1157
1157
|
}
|
|
1158
|
-
function v(
|
|
1159
|
-
return d =
|
|
1158
|
+
function v(k) {
|
|
1159
|
+
return d = k, s = setTimeout(b, t), m ? x(k) : l;
|
|
1160
1160
|
}
|
|
1161
|
-
function h(
|
|
1162
|
-
var L =
|
|
1163
|
-
return g ? Mi(V, i -
|
|
1161
|
+
function h(k) {
|
|
1162
|
+
var L = k - u, N = k - d, V = t - L;
|
|
1163
|
+
return g ? Mi(V, i - N) : V;
|
|
1164
1164
|
}
|
|
1165
|
-
function f(
|
|
1166
|
-
var L =
|
|
1167
|
-
return u === void 0 || L >= t || L < 0 || g &&
|
|
1165
|
+
function f(k) {
|
|
1166
|
+
var L = k - u, N = k - d;
|
|
1167
|
+
return u === void 0 || L >= t || L < 0 || g && N >= i;
|
|
1168
1168
|
}
|
|
1169
1169
|
function b() {
|
|
1170
|
-
var
|
|
1171
|
-
if (f(
|
|
1172
|
-
return k
|
|
1173
|
-
s = setTimeout(b, h(
|
|
1170
|
+
var k = _t();
|
|
1171
|
+
if (f(k))
|
|
1172
|
+
return C(k);
|
|
1173
|
+
s = setTimeout(b, h(k));
|
|
1174
1174
|
}
|
|
1175
|
-
function k
|
|
1176
|
-
return s = void 0, w && a ? x(
|
|
1175
|
+
function C(k) {
|
|
1176
|
+
return s = void 0, w && a ? x(k) : (a = r = void 0, l);
|
|
1177
1177
|
}
|
|
1178
1178
|
function y() {
|
|
1179
1179
|
s !== void 0 && clearTimeout(s), d = 0, a = u = r = s = void 0;
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1182
|
-
return s === void 0 ? l :
|
|
1181
|
+
function A() {
|
|
1182
|
+
return s === void 0 ? l : C(_t());
|
|
1183
1183
|
}
|
|
1184
1184
|
function E() {
|
|
1185
|
-
var
|
|
1186
|
-
if (a = arguments, r = this, u =
|
|
1185
|
+
var k = _t(), L = f(k);
|
|
1186
|
+
if (a = arguments, r = this, u = k, L) {
|
|
1187
1187
|
if (s === void 0)
|
|
1188
1188
|
return v(u);
|
|
1189
1189
|
if (g)
|
|
@@ -1191,7 +1191,7 @@ function Ni(e, t, o) {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
return s === void 0 && (s = setTimeout(b, t)), l;
|
|
1193
1193
|
}
|
|
1194
|
-
return E.cancel = y, E.flush =
|
|
1194
|
+
return E.cancel = y, E.flush = A, E;
|
|
1195
1195
|
}
|
|
1196
1196
|
var Bi = Ni;
|
|
1197
1197
|
const yt = typeof window > "u" ? !1 : window.navigator.userAgent.includes("Macintosh");
|
|
@@ -1206,10 +1206,10 @@ const Bo = ht({
|
|
|
1206
1206
|
value: a
|
|
1207
1207
|
}, e);
|
|
1208
1208
|
}, dn = (e) => {
|
|
1209
|
-
const { generateId: t } = Te(Bo), [o] =
|
|
1209
|
+
const { generateId: t } = Te(Bo), [o] = re(() => `${e}-${t()}`);
|
|
1210
1210
|
return o;
|
|
1211
1211
|
}, Si = () => {
|
|
1212
|
-
const [e, t] =
|
|
1212
|
+
const [e, t] = re(!1);
|
|
1213
1213
|
return _e(() => {
|
|
1214
1214
|
t(!0);
|
|
1215
1215
|
}, []), e;
|
|
@@ -1264,47 +1264,47 @@ const Vi = Bi((e, t) => e(t), 500), So = ({
|
|
|
1264
1264
|
shouldHideMenu: m = !1,
|
|
1265
1265
|
...g
|
|
1266
1266
|
}) => {
|
|
1267
|
-
const [w, x] =
|
|
1268
|
-
_ !== Kt.stateChangeTypes.InputBlur && _ !== Kt.stateChangeTypes.FunctionCloseMenu && (
|
|
1269
|
-
}, V = ({ inputValue:
|
|
1270
|
-
h(
|
|
1267
|
+
const [w, x] = re(!0), [v, h] = re(o != null ? o : ""), f = de(), b = dn("search-input"), C = dn("search-menu"), y = Si(), [A, E] = re(!0), k = { value: v }, L = v ? [k, ...t] : [], N = ({ selectedItem: W, type: _ }) => {
|
|
1268
|
+
_ !== Kt.stateChangeTypes.InputBlur && _ !== Kt.stateChangeTypes.FunctionCloseMenu && (W === k ? (r == null || r(v), f.current.blur()) : W && (i == null || i(W), f.current.blur()), B());
|
|
1269
|
+
}, V = ({ inputValue: W }) => {
|
|
1270
|
+
h(W), a && Vi(a, W);
|
|
1271
1271
|
}, {
|
|
1272
1272
|
isOpen: P,
|
|
1273
|
-
openMenu:
|
|
1273
|
+
openMenu: X,
|
|
1274
1274
|
getMenuProps: D,
|
|
1275
|
-
getInputProps:
|
|
1276
|
-
getComboboxProps:
|
|
1275
|
+
getInputProps: Q,
|
|
1276
|
+
getComboboxProps: O,
|
|
1277
1277
|
highlightedIndex: z,
|
|
1278
|
-
getItemProps:
|
|
1279
|
-
closeMenu:
|
|
1278
|
+
getItemProps: $,
|
|
1279
|
+
closeMenu: B
|
|
1280
1280
|
} = Kt({
|
|
1281
1281
|
items: L,
|
|
1282
1282
|
inputValue: v,
|
|
1283
1283
|
onInputValueChange: V,
|
|
1284
1284
|
itemToString: () => v,
|
|
1285
1285
|
defaultHighlightedIndex: 0,
|
|
1286
|
-
onSelectedItemChange:
|
|
1286
|
+
onSelectedItemChange: N
|
|
1287
1287
|
});
|
|
1288
1288
|
_e(() => {
|
|
1289
1289
|
P ? E(!1) : setTimeout(() => E(!0), 1);
|
|
1290
1290
|
}, [P, E]);
|
|
1291
|
-
const
|
|
1292
|
-
x(!1),
|
|
1293
|
-
},
|
|
1294
|
-
ur(yt ? "cmd+k" : "ctrl+k", (
|
|
1295
|
-
|
|
1291
|
+
const R = () => {
|
|
1292
|
+
x(!1), X();
|
|
1293
|
+
}, H = (P || !A || u) && L.length > 0 && !m, q = H && !s && L.length <= 1;
|
|
1294
|
+
ur(yt ? "cmd+k" : "ctrl+k", (W) => {
|
|
1295
|
+
W.preventDefault(), f.current.focus();
|
|
1296
1296
|
}), ur("esc", () => f.current.blur(), { enableOnTags: ["INPUT"] });
|
|
1297
|
-
const
|
|
1297
|
+
const te = H || !d;
|
|
1298
1298
|
return /* @__PURE__ */ n.createElement("div", {
|
|
1299
1299
|
className: "ui-search relative w-full"
|
|
1300
1300
|
}, /* @__PURE__ */ n.createElement("div", {
|
|
1301
|
-
...
|
|
1301
|
+
...O({ className: "w-full relative rounded-md" })
|
|
1302
1302
|
}, /* @__PURE__ */ n.createElement("div", {
|
|
1303
1303
|
className: "pointer-events-none absolute inset-y-0 -top-0.5 left-0 hidden items-center md:flex"
|
|
1304
1304
|
}, /* @__PURE__ */ n.createElement(Fo, {
|
|
1305
1305
|
className: "h-4 w-4 text-gray-darker"
|
|
1306
1306
|
})), /* @__PURE__ */ n.createElement("input", {
|
|
1307
|
-
...
|
|
1307
|
+
...Q({
|
|
1308
1308
|
id: b,
|
|
1309
1309
|
type: "text",
|
|
1310
1310
|
className: I(
|
|
@@ -1313,9 +1313,9 @@ const Vi = Bi((e, t) => e(t), 500), So = ({
|
|
|
1313
1313
|
e
|
|
1314
1314
|
),
|
|
1315
1315
|
ref: f,
|
|
1316
|
-
onFocus:
|
|
1316
|
+
onFocus: R,
|
|
1317
1317
|
onBlur: () => x(!0),
|
|
1318
|
-
onChange: (
|
|
1318
|
+
onChange: (W) => h(W.target.value),
|
|
1319
1319
|
...g
|
|
1320
1320
|
})
|
|
1321
1321
|
}), /* @__PURE__ */ n.createElement("div", {
|
|
@@ -1326,17 +1326,17 @@ const Vi = Bi((e, t) => e(t), 500), So = ({
|
|
|
1326
1326
|
char: "K"
|
|
1327
1327
|
})) : null)), /* @__PURE__ */ n.createElement("ul", {
|
|
1328
1328
|
...D({
|
|
1329
|
-
id:
|
|
1329
|
+
id: C,
|
|
1330
1330
|
className: I(
|
|
1331
1331
|
"ui-search-menu",
|
|
1332
1332
|
"absolute top-10 divide-y divide-gray-light w-full xl:w-2/3 max-h-[75vh] border border-blue-light mt-1 rounded overflow-auto z-10 bg-white",
|
|
1333
|
-
{ hidden: !
|
|
1333
|
+
{ hidden: !H }
|
|
1334
1334
|
)
|
|
1335
1335
|
})
|
|
1336
|
-
},
|
|
1337
|
-
key:
|
|
1338
|
-
|
|
1339
|
-
},
|
|
1336
|
+
}, te ? L.map((W, _) => /* @__PURE__ */ n.createElement("li", {
|
|
1337
|
+
key: W,
|
|
1338
|
+
...$({ key: _, item: W, index: _, className: "ui-search-item" })
|
|
1339
|
+
}, W === k ? /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("div", {
|
|
1340
1340
|
className: I(
|
|
1341
1341
|
"cursor-pointer p-2",
|
|
1342
1342
|
z === _ ? "bg-blue-light text-white" : ""
|
|
@@ -1345,9 +1345,9 @@ const Vi = Bi((e, t) => e(t), 500), So = ({
|
|
|
1345
1345
|
className: "p-3 text-center"
|
|
1346
1346
|
}, /* @__PURE__ */ n.createElement(ft, {
|
|
1347
1347
|
size: "small"
|
|
1348
|
-
})) : null) : l == null ? void 0 : l(
|
|
1348
|
+
})) : null) : l == null ? void 0 : l(W, z === _))) : null, te && q ? /* @__PURE__ */ n.createElement("li", {
|
|
1349
1349
|
className: "cursor-not-allowed p-2"
|
|
1350
|
-
}, "No results found") : null,
|
|
1350
|
+
}, "No results found") : null, te && L.length < 5 ? /* @__PURE__ */ n.createElement("li", {
|
|
1351
1351
|
className: "search-footer pointer-events sticky bottom-0 flex space-x-5 p-2 text-sm text-gray-dark"
|
|
1352
1352
|
}, /* @__PURE__ */ n.createElement("span", {
|
|
1353
1353
|
className: "flex items-center"
|
|
@@ -1836,7 +1836,7 @@ var _i = /* @__PURE__ */ function() {
|
|
|
1836
1836
|
return a.parentNode && a.parentNode.removeChild(a);
|
|
1837
1837
|
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
1838
1838
|
}, e;
|
|
1839
|
-
}(), ie = "-ms-", Dt = "-moz-",
|
|
1839
|
+
}(), ie = "-ms-", Dt = "-moz-", Z = "-webkit-", Un = "comm", Qn = "rule", qn = "decl", $i = "@import", jo = "@keyframes", es = Math.abs, Yt = String.fromCharCode, ts = Object.assign;
|
|
1840
1840
|
function ns(e, t) {
|
|
1841
1841
|
return oe(e, 0) ^ 45 ? (((t << 2 ^ oe(e, 0)) << 2 ^ oe(e, 1)) << 2 ^ oe(e, 2)) << 2 ^ oe(e, 3) : 0;
|
|
1842
1842
|
}
|
|
@@ -1846,7 +1846,7 @@ function Po(e) {
|
|
|
1846
1846
|
function rs(e, t) {
|
|
1847
1847
|
return (e = t.exec(e)) ? e[0] : e;
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function U(e, t, o) {
|
|
1850
1850
|
return e.replace(t, o);
|
|
1851
1851
|
}
|
|
1852
1852
|
function hn(e, t) {
|
|
@@ -1870,7 +1870,7 @@ function wt(e, t) {
|
|
|
1870
1870
|
function os(e, t) {
|
|
1871
1871
|
return e.map(t).join("");
|
|
1872
1872
|
}
|
|
1873
|
-
var Jt = 1, Ke = 1, Zo = 0, me = 0,
|
|
1873
|
+
var Jt = 1, Ke = 1, Zo = 0, me = 0, ne = 0, et = "";
|
|
1874
1874
|
function Ut(e, t, o, a, r, i, l) {
|
|
1875
1875
|
return { value: e, root: t, parent: o, type: a, props: r, children: i, line: Jt, column: Ke, length: l, return: "" };
|
|
1876
1876
|
}
|
|
@@ -1878,13 +1878,13 @@ function ot(e, t) {
|
|
|
1878
1878
|
return ts(Ut("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
1879
1879
|
}
|
|
1880
1880
|
function as() {
|
|
1881
|
-
return
|
|
1881
|
+
return ne;
|
|
1882
1882
|
}
|
|
1883
1883
|
function is() {
|
|
1884
|
-
return
|
|
1884
|
+
return ne = me > 0 ? oe(et, --me) : 0, Ke--, ne === 10 && (Ke = 1, Jt--), ne;
|
|
1885
1885
|
}
|
|
1886
1886
|
function pe() {
|
|
1887
|
-
return
|
|
1887
|
+
return ne = me < Zo ? oe(et, me++) : 0, Ke++, ne === 10 && (Ke = 1, Jt++), ne;
|
|
1888
1888
|
}
|
|
1889
1889
|
function ke() {
|
|
1890
1890
|
return oe(et, me);
|
|
@@ -1937,23 +1937,23 @@ function At(e) {
|
|
|
1937
1937
|
return Po(bt(me - 1, fn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1938
1938
|
}
|
|
1939
1939
|
function ss(e) {
|
|
1940
|
-
for (; (
|
|
1940
|
+
for (; (ne = ke()) && ne < 33; )
|
|
1941
1941
|
pe();
|
|
1942
|
-
return ut(e) > 2 || ut(
|
|
1942
|
+
return ut(e) > 2 || ut(ne) > 3 ? "" : " ";
|
|
1943
1943
|
}
|
|
1944
1944
|
function ls(e, t) {
|
|
1945
|
-
for (; --t && pe() && !(
|
|
1945
|
+
for (; --t && pe() && !(ne < 48 || ne > 102 || ne > 57 && ne < 65 || ne > 70 && ne < 97); )
|
|
1946
1946
|
;
|
|
1947
1947
|
return bt(e, kt() + (t < 6 && ke() == 32 && pe() == 32));
|
|
1948
1948
|
}
|
|
1949
1949
|
function fn(e) {
|
|
1950
1950
|
for (; pe(); )
|
|
1951
|
-
switch (
|
|
1951
|
+
switch (ne) {
|
|
1952
1952
|
case e:
|
|
1953
1953
|
return me;
|
|
1954
1954
|
case 34:
|
|
1955
1955
|
case 39:
|
|
1956
|
-
e !== 34 && e !== 39 && fn(
|
|
1956
|
+
e !== 34 && e !== 39 && fn(ne);
|
|
1957
1957
|
break;
|
|
1958
1958
|
case 40:
|
|
1959
1959
|
e === 41 && fn(e);
|
|
@@ -1965,8 +1965,8 @@ function fn(e) {
|
|
|
1965
1965
|
return me;
|
|
1966
1966
|
}
|
|
1967
1967
|
function cs(e, t) {
|
|
1968
|
-
for (; pe() && e +
|
|
1969
|
-
if (e +
|
|
1968
|
+
for (; pe() && e + ne !== 47 + 10; )
|
|
1969
|
+
if (e + ne === 42 + 42 && ke() === 47)
|
|
1970
1970
|
break;
|
|
1971
1971
|
return "/*" + bt(t, me - 1) + "*" + Yt(e === 47 ? e : pe());
|
|
1972
1972
|
}
|
|
@@ -1979,17 +1979,17 @@ function ds(e) {
|
|
|
1979
1979
|
return Yo(Lt("", null, null, null, [""], e = Xo(e), 0, [0], e));
|
|
1980
1980
|
}
|
|
1981
1981
|
function Lt(e, t, o, a, r, i, l, s, u) {
|
|
1982
|
-
for (var d = 0, m = 0, g = l, w = 0, x = 0, v = 0, h = 1, f = 1, b = 1,
|
|
1983
|
-
switch (v =
|
|
1982
|
+
for (var d = 0, m = 0, g = l, w = 0, x = 0, v = 0, h = 1, f = 1, b = 1, C = 0, y = "", A = r, E = i, k = a, L = y; f; )
|
|
1983
|
+
switch (v = C, C = pe()) {
|
|
1984
1984
|
case 40:
|
|
1985
1985
|
if (v != 108 && oe(L, g - 1) == 58) {
|
|
1986
|
-
hn(L +=
|
|
1986
|
+
hn(L += U(At(C), "&", "&\f"), "&\f") != -1 && (b = -1);
|
|
1987
1987
|
break;
|
|
1988
1988
|
}
|
|
1989
1989
|
case 34:
|
|
1990
1990
|
case 39:
|
|
1991
1991
|
case 91:
|
|
1992
|
-
L += At(
|
|
1992
|
+
L += At(C);
|
|
1993
1993
|
break;
|
|
1994
1994
|
case 9:
|
|
1995
1995
|
case 10:
|
|
@@ -2015,28 +2015,28 @@ function Lt(e, t, o, a, r, i, l, s, u) {
|
|
|
2015
2015
|
case 125 * h:
|
|
2016
2016
|
case 59:
|
|
2017
2017
|
case 0:
|
|
2018
|
-
switch (
|
|
2018
|
+
switch (C) {
|
|
2019
2019
|
case 0:
|
|
2020
2020
|
case 125:
|
|
2021
2021
|
f = 0;
|
|
2022
2022
|
case 59 + m:
|
|
2023
|
-
x > 0 && Ie(L) - g && wt(x > 32 ? yr(L + ";", a, o, g - 1) : yr(
|
|
2023
|
+
x > 0 && Ie(L) - g && wt(x > 32 ? yr(L + ";", a, o, g - 1) : yr(U(L, " ", "") + ";", a, o, g - 2), u);
|
|
2024
2024
|
break;
|
|
2025
2025
|
case 59:
|
|
2026
2026
|
L += ";";
|
|
2027
2027
|
default:
|
|
2028
|
-
if (wt(
|
|
2028
|
+
if (wt(k = Cr(L, t, o, d, m, r, s, y, A = [], E = [], g), i), C === 123)
|
|
2029
2029
|
if (m === 0)
|
|
2030
|
-
Lt(L, t,
|
|
2030
|
+
Lt(L, t, k, k, A, i, g, s, E);
|
|
2031
2031
|
else
|
|
2032
2032
|
switch (w === 99 && oe(L, 3) === 110 ? 100 : w) {
|
|
2033
2033
|
case 100:
|
|
2034
2034
|
case 109:
|
|
2035
2035
|
case 115:
|
|
2036
|
-
Lt(e,
|
|
2036
|
+
Lt(e, k, k, a && wt(Cr(e, k, k, 0, 0, r, s, y, r, A = [], g), E), r, E, g, s, a ? A : E);
|
|
2037
2037
|
break;
|
|
2038
2038
|
default:
|
|
2039
|
-
Lt(L,
|
|
2039
|
+
Lt(L, k, k, k, [""], E, 0, s, E);
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
2042
|
d = m = x = 0, h = b = 1, y = L = "", g = l;
|
|
@@ -2045,12 +2045,12 @@ function Lt(e, t, o, a, r, i, l, s, u) {
|
|
|
2045
2045
|
g = 1 + Ie(L), x = v;
|
|
2046
2046
|
default:
|
|
2047
2047
|
if (h < 1) {
|
|
2048
|
-
if (
|
|
2048
|
+
if (C == 123)
|
|
2049
2049
|
--h;
|
|
2050
|
-
else if (
|
|
2050
|
+
else if (C == 125 && h++ == 0 && is() == 125)
|
|
2051
2051
|
continue;
|
|
2052
2052
|
}
|
|
2053
|
-
switch (L += Yt(
|
|
2053
|
+
switch (L += Yt(C), C * h) {
|
|
2054
2054
|
case 38:
|
|
2055
2055
|
b = m > 0 ? 1 : (L += "\f", -1);
|
|
2056
2056
|
break;
|
|
@@ -2058,7 +2058,7 @@ function Lt(e, t, o, a, r, i, l, s, u) {
|
|
|
2058
2058
|
s[d++] = (Ie(L) - 1) * b, b = 1;
|
|
2059
2059
|
break;
|
|
2060
2060
|
case 64:
|
|
2061
|
-
ke() === 45 && (L += At(pe())), w = ke(), m = g = Ie(y = L += us(kt())),
|
|
2061
|
+
ke() === 45 && (L += At(pe())), w = ke(), m = g = Ie(y = L += us(kt())), C++;
|
|
2062
2062
|
break;
|
|
2063
2063
|
case 45:
|
|
2064
2064
|
v === 45 && Ie(L) == 2 && (h = 0);
|
|
@@ -2068,8 +2068,8 @@ function Lt(e, t, o, a, r, i, l, s, u) {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
function Cr(e, t, o, a, r, i, l, s, u, d, m) {
|
|
2070
2070
|
for (var g = r - 1, w = r === 0 ? i : [""], x = Kn(w), v = 0, h = 0, f = 0; v < a; ++v)
|
|
2071
|
-
for (var b = 0,
|
|
2072
|
-
(y = Po(h > 0 ? w[b] + " " +
|
|
2071
|
+
for (var b = 0, C = ct(e, g + 1, g = es(h = l[v])), y = e; b < x; ++b)
|
|
2072
|
+
(y = Po(h > 0 ? w[b] + " " + C : U(C, /&\f/g, w[b]))) && (u[f++] = y);
|
|
2073
2073
|
return Ut(e, t, o, r === 0 ? Qn : s, u, d, m);
|
|
2074
2074
|
}
|
|
2075
2075
|
function ms(e, t, o) {
|
|
@@ -2197,7 +2197,7 @@ var vs = function(t, o, a) {
|
|
|
2197
2197
|
function Uo(e, t) {
|
|
2198
2198
|
switch (ns(e, t)) {
|
|
2199
2199
|
case 5103:
|
|
2200
|
-
return
|
|
2200
|
+
return Z + "print-" + e + e;
|
|
2201
2201
|
case 5737:
|
|
2202
2202
|
case 4201:
|
|
2203
2203
|
case 3177:
|
|
@@ -2223,44 +2223,44 @@ function Uo(e, t) {
|
|
|
2223
2223
|
case 5365:
|
|
2224
2224
|
case 5621:
|
|
2225
2225
|
case 3829:
|
|
2226
|
-
return
|
|
2226
|
+
return Z + e + e;
|
|
2227
2227
|
case 5349:
|
|
2228
2228
|
case 4246:
|
|
2229
2229
|
case 4810:
|
|
2230
2230
|
case 6968:
|
|
2231
2231
|
case 2756:
|
|
2232
|
-
return
|
|
2232
|
+
return Z + e + Dt + e + ie + e + e;
|
|
2233
2233
|
case 6828:
|
|
2234
2234
|
case 4268:
|
|
2235
|
-
return
|
|
2235
|
+
return Z + e + ie + e + e;
|
|
2236
2236
|
case 6165:
|
|
2237
|
-
return
|
|
2237
|
+
return Z + e + ie + "flex-" + e + e;
|
|
2238
2238
|
case 5187:
|
|
2239
|
-
return
|
|
2239
|
+
return Z + e + U(e, /(\w+).+(:[^]+)/, Z + "box-$1$2" + ie + "flex-$1$2") + e;
|
|
2240
2240
|
case 5443:
|
|
2241
|
-
return
|
|
2241
|
+
return Z + e + ie + "flex-item-" + U(e, /flex-|-self/, "") + e;
|
|
2242
2242
|
case 4675:
|
|
2243
|
-
return
|
|
2243
|
+
return Z + e + ie + "flex-line-pack" + U(e, /align-content|flex-|-self/, "") + e;
|
|
2244
2244
|
case 5548:
|
|
2245
|
-
return
|
|
2245
|
+
return Z + e + ie + U(e, "shrink", "negative") + e;
|
|
2246
2246
|
case 5292:
|
|
2247
|
-
return
|
|
2247
|
+
return Z + e + ie + U(e, "basis", "preferred-size") + e;
|
|
2248
2248
|
case 6060:
|
|
2249
|
-
return
|
|
2249
|
+
return Z + "box-" + U(e, "-grow", "") + Z + e + ie + U(e, "grow", "positive") + e;
|
|
2250
2250
|
case 4554:
|
|
2251
|
-
return
|
|
2251
|
+
return Z + U(e, /([^-])(transform)/g, "$1" + Z + "$2") + e;
|
|
2252
2252
|
case 6187:
|
|
2253
|
-
return
|
|
2253
|
+
return U(U(U(e, /(zoom-|grab)/, Z + "$1"), /(image-set)/, Z + "$1"), e, "") + e;
|
|
2254
2254
|
case 5495:
|
|
2255
2255
|
case 3959:
|
|
2256
|
-
return
|
|
2256
|
+
return U(e, /(image-set\([^]*)/, Z + "$1$`$1");
|
|
2257
2257
|
case 4968:
|
|
2258
|
-
return
|
|
2258
|
+
return U(U(e, /(.+:)(flex-)?(.*)/, Z + "box-pack:$3" + ie + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Z + e + e;
|
|
2259
2259
|
case 4095:
|
|
2260
2260
|
case 3583:
|
|
2261
2261
|
case 4068:
|
|
2262
2262
|
case 2532:
|
|
2263
|
-
return
|
|
2263
|
+
return U(e, /(.+)-inline(.+)/, Z + "$1$2") + e;
|
|
2264
2264
|
case 8116:
|
|
2265
2265
|
case 7059:
|
|
2266
2266
|
case 5753:
|
|
@@ -2279,9 +2279,9 @@ function Uo(e, t) {
|
|
|
2279
2279
|
if (oe(e, t + 4) !== 45)
|
|
2280
2280
|
break;
|
|
2281
2281
|
case 102:
|
|
2282
|
-
return
|
|
2282
|
+
return U(e, /(.+:)(.+)-([^]+)/, "$1" + Z + "$2-$3$1" + Dt + (oe(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
2283
2283
|
case 115:
|
|
2284
|
-
return ~hn(e, "stretch") ? Uo(
|
|
2284
|
+
return ~hn(e, "stretch") ? Uo(U(e, "stretch", "fill-available"), t) + e : e;
|
|
2285
2285
|
}
|
|
2286
2286
|
break;
|
|
2287
2287
|
case 4949:
|
|
@@ -2290,21 +2290,21 @@ function Uo(e, t) {
|
|
|
2290
2290
|
case 6444:
|
|
2291
2291
|
switch (oe(e, Ie(e) - 3 - (~hn(e, "!important") && 10))) {
|
|
2292
2292
|
case 107:
|
|
2293
|
-
return
|
|
2293
|
+
return U(e, ":", ":" + Z) + e;
|
|
2294
2294
|
case 101:
|
|
2295
|
-
return
|
|
2295
|
+
return U(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Z + (oe(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Z + "$2$3$1" + ie + "$2box$3") + e;
|
|
2296
2296
|
}
|
|
2297
2297
|
break;
|
|
2298
2298
|
case 5936:
|
|
2299
2299
|
switch (oe(e, t + 11)) {
|
|
2300
2300
|
case 114:
|
|
2301
|
-
return
|
|
2301
|
+
return Z + e + ie + U(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
2302
2302
|
case 108:
|
|
2303
|
-
return
|
|
2303
|
+
return Z + e + ie + U(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
2304
2304
|
case 45:
|
|
2305
|
-
return
|
|
2305
|
+
return Z + e + ie + U(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
2306
2306
|
}
|
|
2307
|
-
return
|
|
2307
|
+
return Z + e + ie + e + e;
|
|
2308
2308
|
}
|
|
2309
2309
|
return e;
|
|
2310
2310
|
}
|
|
@@ -2316,7 +2316,7 @@ var Ls = function(t, o, a, r) {
|
|
|
2316
2316
|
break;
|
|
2317
2317
|
case jo:
|
|
2318
2318
|
return qe([ot(t, {
|
|
2319
|
-
value:
|
|
2319
|
+
value: U(t.value, "@", "@" + Z)
|
|
2320
2320
|
})], r);
|
|
2321
2321
|
case Qn:
|
|
2322
2322
|
if (t.length)
|
|
@@ -2325,15 +2325,15 @@ var Ls = function(t, o, a, r) {
|
|
|
2325
2325
|
case ":read-only":
|
|
2326
2326
|
case ":read-write":
|
|
2327
2327
|
return qe([ot(t, {
|
|
2328
|
-
props: [
|
|
2328
|
+
props: [U(i, /:(read-\w+)/, ":" + Dt + "$1")]
|
|
2329
2329
|
})], r);
|
|
2330
2330
|
case "::placeholder":
|
|
2331
2331
|
return qe([ot(t, {
|
|
2332
|
-
props: [
|
|
2332
|
+
props: [U(i, /:(plac\w+)/, ":" + Z + "input-$1")]
|
|
2333
2333
|
}), ot(t, {
|
|
2334
|
-
props: [
|
|
2334
|
+
props: [U(i, /:(plac\w+)/, ":" + Dt + "$1")]
|
|
2335
2335
|
}), ot(t, {
|
|
2336
|
-
props: [
|
|
2336
|
+
props: [U(i, /:(plac\w+)/, ie + "input-$1")]
|
|
2337
2337
|
})], r);
|
|
2338
2338
|
}
|
|
2339
2339
|
return "";
|
|
@@ -2377,10 +2377,10 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
2377
2377
|
})], w = gs(d.concat(r, g)), x = function(f) {
|
|
2378
2378
|
return qe(ds(f), w);
|
|
2379
2379
|
};
|
|
2380
|
-
u = function(f, b,
|
|
2381
|
-
m =
|
|
2380
|
+
u = function(f, b, C, y) {
|
|
2381
|
+
m = C, process.env.NODE_ENV !== "production" && b.map !== void 0 && (m = {
|
|
2382
2382
|
insert: function(E) {
|
|
2383
|
-
|
|
2383
|
+
C.insert(E + b.map);
|
|
2384
2384
|
}
|
|
2385
2385
|
}), x(f ? f + "{" + b.styles + "}" : b.styles), y && (v.inserted[b.name] = !0);
|
|
2386
2386
|
};
|
|
@@ -2401,7 +2401,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
2401
2401
|
insert: u
|
|
2402
2402
|
};
|
|
2403
2403
|
return v.sheet.hydrate(s), v;
|
|
2404
|
-
}, Qo = { exports: {} },
|
|
2404
|
+
}, Qo = { exports: {} }, Y = {};
|
|
2405
2405
|
/** @license React v16.13.1
|
|
2406
2406
|
* react-is.production.min.js
|
|
2407
2407
|
*
|
|
@@ -2413,13 +2413,13 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
2413
2413
|
var Lr;
|
|
2414
2414
|
function Bs() {
|
|
2415
2415
|
if (Lr)
|
|
2416
|
-
return
|
|
2416
|
+
return Y;
|
|
2417
2417
|
Lr = 1;
|
|
2418
|
-
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, g = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118,
|
|
2418
|
+
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, g = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
2419
2419
|
function y(E) {
|
|
2420
2420
|
if (typeof E == "object" && E !== null) {
|
|
2421
|
-
var
|
|
2422
|
-
switch (
|
|
2421
|
+
var k = E.$$typeof;
|
|
2422
|
+
switch (k) {
|
|
2423
2423
|
case t:
|
|
2424
2424
|
switch (E = E.type, E) {
|
|
2425
2425
|
case u:
|
|
@@ -2438,46 +2438,46 @@ function Bs() {
|
|
|
2438
2438
|
case l:
|
|
2439
2439
|
return E;
|
|
2440
2440
|
default:
|
|
2441
|
-
return
|
|
2441
|
+
return k;
|
|
2442
2442
|
}
|
|
2443
2443
|
}
|
|
2444
2444
|
case o:
|
|
2445
|
-
return
|
|
2445
|
+
return k;
|
|
2446
2446
|
}
|
|
2447
2447
|
}
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function A(E) {
|
|
2450
2450
|
return y(E) === d;
|
|
2451
2451
|
}
|
|
2452
|
-
return
|
|
2453
|
-
return
|
|
2454
|
-
},
|
|
2452
|
+
return Y.AsyncMode = u, Y.ConcurrentMode = d, Y.ContextConsumer = s, Y.ContextProvider = l, Y.Element = t, Y.ForwardRef = m, Y.Fragment = a, Y.Lazy = v, Y.Memo = x, Y.Portal = o, Y.Profiler = i, Y.StrictMode = r, Y.Suspense = g, Y.isAsyncMode = function(E) {
|
|
2453
|
+
return A(E) || y(E) === u;
|
|
2454
|
+
}, Y.isConcurrentMode = A, Y.isContextConsumer = function(E) {
|
|
2455
2455
|
return y(E) === s;
|
|
2456
|
-
},
|
|
2456
|
+
}, Y.isContextProvider = function(E) {
|
|
2457
2457
|
return y(E) === l;
|
|
2458
|
-
},
|
|
2458
|
+
}, Y.isElement = function(E) {
|
|
2459
2459
|
return typeof E == "object" && E !== null && E.$$typeof === t;
|
|
2460
|
-
},
|
|
2460
|
+
}, Y.isForwardRef = function(E) {
|
|
2461
2461
|
return y(E) === m;
|
|
2462
|
-
},
|
|
2462
|
+
}, Y.isFragment = function(E) {
|
|
2463
2463
|
return y(E) === a;
|
|
2464
|
-
},
|
|
2464
|
+
}, Y.isLazy = function(E) {
|
|
2465
2465
|
return y(E) === v;
|
|
2466
|
-
},
|
|
2466
|
+
}, Y.isMemo = function(E) {
|
|
2467
2467
|
return y(E) === x;
|
|
2468
|
-
},
|
|
2468
|
+
}, Y.isPortal = function(E) {
|
|
2469
2469
|
return y(E) === o;
|
|
2470
|
-
},
|
|
2470
|
+
}, Y.isProfiler = function(E) {
|
|
2471
2471
|
return y(E) === i;
|
|
2472
|
-
},
|
|
2472
|
+
}, Y.isStrictMode = function(E) {
|
|
2473
2473
|
return y(E) === r;
|
|
2474
|
-
},
|
|
2474
|
+
}, Y.isSuspense = function(E) {
|
|
2475
2475
|
return y(E) === g;
|
|
2476
|
-
},
|
|
2477
|
-
return typeof E == "string" || typeof E == "function" || E === a || E === d || E === i || E === r || E === g || E === w || typeof E == "object" && E !== null && (E.$$typeof === v || E.$$typeof === x || E.$$typeof === l || E.$$typeof === s || E.$$typeof === m || E.$$typeof === f || E.$$typeof === b || E.$$typeof ===
|
|
2478
|
-
},
|
|
2476
|
+
}, Y.isValidElementType = function(E) {
|
|
2477
|
+
return typeof E == "string" || typeof E == "function" || E === a || E === d || E === i || E === r || E === g || E === w || typeof E == "object" && E !== null && (E.$$typeof === v || E.$$typeof === x || E.$$typeof === l || E.$$typeof === s || E.$$typeof === m || E.$$typeof === f || E.$$typeof === b || E.$$typeof === C || E.$$typeof === h);
|
|
2478
|
+
}, Y.typeOf = y, Y;
|
|
2479
2479
|
}
|
|
2480
|
-
var
|
|
2480
|
+
var J = {};
|
|
2481
2481
|
/** @license React v16.13.1
|
|
2482
2482
|
* react-is.development.js
|
|
2483
2483
|
*
|
|
@@ -2489,16 +2489,16 @@ var U = {};
|
|
|
2489
2489
|
var Mr;
|
|
2490
2490
|
function Fs() {
|
|
2491
2491
|
return Mr || (Mr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2492
|
-
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, g = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118,
|
|
2493
|
-
function y(
|
|
2494
|
-
return typeof
|
|
2492
|
+
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, g = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
2493
|
+
function y(M) {
|
|
2494
|
+
return typeof M == "string" || typeof M == "function" || M === a || M === d || M === i || M === r || M === g || M === w || typeof M == "object" && M !== null && (M.$$typeof === v || M.$$typeof === x || M.$$typeof === l || M.$$typeof === s || M.$$typeof === m || M.$$typeof === f || M.$$typeof === b || M.$$typeof === C || M.$$typeof === h);
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2497
|
-
if (typeof
|
|
2498
|
-
var Me =
|
|
2496
|
+
function A(M) {
|
|
2497
|
+
if (typeof M == "object" && M !== null) {
|
|
2498
|
+
var Me = M.$$typeof;
|
|
2499
2499
|
switch (Me) {
|
|
2500
2500
|
case t:
|
|
2501
|
-
var be =
|
|
2501
|
+
var be = M.type;
|
|
2502
2502
|
switch (be) {
|
|
2503
2503
|
case u:
|
|
2504
2504
|
case d:
|
|
@@ -2525,48 +2525,48 @@ function Fs() {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
|
-
var E = u,
|
|
2529
|
-
function
|
|
2530
|
-
return
|
|
2528
|
+
var E = u, k = d, L = s, N = l, V = t, P = m, X = a, D = v, Q = x, O = o, z = i, $ = r, B = g, R = !1;
|
|
2529
|
+
function H(M) {
|
|
2530
|
+
return R || (R = !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.")), q(M) || A(M) === u;
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2533
|
-
return
|
|
2532
|
+
function q(M) {
|
|
2533
|
+
return A(M) === d;
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2536
|
-
return
|
|
2535
|
+
function te(M) {
|
|
2536
|
+
return A(M) === s;
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2539
|
-
return
|
|
2538
|
+
function W(M) {
|
|
2539
|
+
return A(M) === l;
|
|
2540
2540
|
}
|
|
2541
|
-
function _(
|
|
2542
|
-
return typeof
|
|
2541
|
+
function _(M) {
|
|
2542
|
+
return typeof M == "object" && M !== null && M.$$typeof === t;
|
|
2543
2543
|
}
|
|
2544
|
-
function ge(
|
|
2545
|
-
return
|
|
2544
|
+
function ge(M) {
|
|
2545
|
+
return A(M) === m;
|
|
2546
2546
|
}
|
|
2547
|
-
function he(
|
|
2548
|
-
return
|
|
2547
|
+
function he(M) {
|
|
2548
|
+
return A(M) === a;
|
|
2549
2549
|
}
|
|
2550
|
-
function ue(
|
|
2551
|
-
return
|
|
2550
|
+
function ue(M) {
|
|
2551
|
+
return A(M) === v;
|
|
2552
2552
|
}
|
|
2553
|
-
function ce(
|
|
2554
|
-
return
|
|
2553
|
+
function ce(M) {
|
|
2554
|
+
return A(M) === x;
|
|
2555
2555
|
}
|
|
2556
|
-
function ve(
|
|
2557
|
-
return
|
|
2556
|
+
function ve(M) {
|
|
2557
|
+
return A(M) === o;
|
|
2558
2558
|
}
|
|
2559
|
-
function Ee(
|
|
2560
|
-
return
|
|
2559
|
+
function Ee(M) {
|
|
2560
|
+
return A(M) === i;
|
|
2561
2561
|
}
|
|
2562
|
-
function Re(
|
|
2563
|
-
return
|
|
2562
|
+
function Re(M) {
|
|
2563
|
+
return A(M) === r;
|
|
2564
2564
|
}
|
|
2565
|
-
function Le(
|
|
2566
|
-
return
|
|
2565
|
+
function Le(M) {
|
|
2566
|
+
return A(M) === g;
|
|
2567
2567
|
}
|
|
2568
|
-
|
|
2569
|
-
}()),
|
|
2568
|
+
J.AsyncMode = E, J.ConcurrentMode = k, J.ContextConsumer = L, J.ContextProvider = N, J.Element = V, J.ForwardRef = P, J.Fragment = X, J.Lazy = D, J.Memo = Q, J.Portal = O, J.Profiler = z, J.StrictMode = $, J.Suspense = B, J.isAsyncMode = H, J.isConcurrentMode = q, J.isContextConsumer = te, J.isContextProvider = W, J.isElement = _, J.isForwardRef = ge, J.isFragment = he, J.isLazy = ue, J.isMemo = ce, J.isPortal = ve, J.isProfiler = Ee, J.isStrictMode = Re, J.isSuspense = Le, J.isValidElementType = y, J.typeOf = A;
|
|
2569
|
+
}()), J;
|
|
2570
2570
|
}
|
|
2571
2571
|
(function(e) {
|
|
2572
2572
|
process.env.NODE_ENV === "production" ? e.exports = Bs() : e.exports = Fs();
|
|
@@ -2827,7 +2827,7 @@ var we, mt = function(t, o, a) {
|
|
|
2827
2827
|
};
|
|
2828
2828
|
}, Xs = function(t) {
|
|
2829
2829
|
return t();
|
|
2830
|
-
}, na =
|
|
2830
|
+
}, na = j["useInsertionEffect"] ? j["useInsertionEffect"] : !1, ra = na || Xs, Tr = na || lo, tr = {}.hasOwnProperty, nr = /* @__PURE__ */ ht(
|
|
2831
2831
|
typeof HTMLElement < "u" ? /* @__PURE__ */ Ns({
|
|
2832
2832
|
key: "css"
|
|
2833
2833
|
}) : null
|
|
@@ -3465,7 +3465,7 @@ function B0(e) {
|
|
|
3465
3465
|
};
|
|
3466
3466
|
if (!o || !o.offsetParent)
|
|
3467
3467
|
return d;
|
|
3468
|
-
var m = u.getBoundingClientRect(), g = m.height, w = o.getBoundingClientRect(), x = w.bottom, v = w.height, h = w.top, f = o.offsetParent.getBoundingClientRect(), b = f.top,
|
|
3468
|
+
var m = u.getBoundingClientRect(), g = m.height, w = o.getBoundingClientRect(), x = w.bottom, v = w.height, h = w.top, f = o.offsetParent.getBoundingClientRect(), b = f.top, C = l ? window.innerHeight : x0(u), y = ma(u), A = parseInt(getComputedStyle(o).marginBottom, 10), E = parseInt(getComputedStyle(o).marginTop, 10), k = b - E, L = C - h, N = k + y, V = g - y - h, P = x - C + y + A, X = y + h - E, D = 160;
|
|
3469
3469
|
switch (r) {
|
|
3470
3470
|
case "auto":
|
|
3471
3471
|
case "bottom":
|
|
@@ -3481,17 +3481,17 @@ function B0(e) {
|
|
|
3481
3481
|
};
|
|
3482
3482
|
if (!l && V >= a || l && L >= a) {
|
|
3483
3483
|
i && Et(u, P, D);
|
|
3484
|
-
var
|
|
3484
|
+
var Q = l ? L - A : V - A;
|
|
3485
3485
|
return {
|
|
3486
3486
|
placement: "bottom",
|
|
3487
|
-
maxHeight:
|
|
3487
|
+
maxHeight: Q
|
|
3488
3488
|
};
|
|
3489
3489
|
}
|
|
3490
3490
|
if (r === "auto" || l) {
|
|
3491
|
-
var
|
|
3492
|
-
return z >= a && (
|
|
3491
|
+
var O = t, z = l ? k : N;
|
|
3492
|
+
return z >= a && (O = Math.min(z - A - s, t)), {
|
|
3493
3493
|
placement: "top",
|
|
3494
|
-
maxHeight:
|
|
3494
|
+
maxHeight: O
|
|
3495
3495
|
};
|
|
3496
3496
|
}
|
|
3497
3497
|
if (r === "bottom")
|
|
@@ -3501,21 +3501,21 @@ function B0(e) {
|
|
|
3501
3501
|
};
|
|
3502
3502
|
break;
|
|
3503
3503
|
case "top":
|
|
3504
|
-
if (
|
|
3504
|
+
if (k >= v)
|
|
3505
3505
|
return {
|
|
3506
3506
|
placement: "top",
|
|
3507
3507
|
maxHeight: t
|
|
3508
3508
|
};
|
|
3509
|
-
if (
|
|
3510
|
-
return i && Et(u,
|
|
3509
|
+
if (N >= v && !l)
|
|
3510
|
+
return i && Et(u, X, D), {
|
|
3511
3511
|
placement: "top",
|
|
3512
3512
|
maxHeight: t
|
|
3513
3513
|
};
|
|
3514
|
-
if (!l &&
|
|
3515
|
-
var
|
|
3516
|
-
return (!l &&
|
|
3514
|
+
if (!l && N >= a || l && k >= a) {
|
|
3515
|
+
var $ = t;
|
|
3516
|
+
return (!l && N >= a || l && k >= a) && ($ = l ? k - E : N - E), i && Et(u, X, D), {
|
|
3517
3517
|
placement: "top",
|
|
3518
|
-
maxHeight:
|
|
3518
|
+
maxHeight: $
|
|
3519
3519
|
};
|
|
3520
3520
|
}
|
|
3521
3521
|
return {
|
|
@@ -3548,25 +3548,25 @@ var ga = function(t) {
|
|
|
3548
3548
|
marginTop: s.menuGutter
|
|
3549
3549
|
});
|
|
3550
3550
|
}, ha = /* @__PURE__ */ ht(null), T0 = function(t) {
|
|
3551
|
-
var o = t.children, a = t.minMenuHeight, r = t.maxMenuHeight, i = t.menuPlacement, l = t.menuPosition, s = t.menuShouldScrollIntoView, u = t.theme, d = Te(ha) || {}, m = d.setPortalPlacement, g = de(null), w =
|
|
3551
|
+
var o = t.children, a = t.minMenuHeight, r = t.maxMenuHeight, i = t.menuPlacement, l = t.menuPosition, s = t.menuShouldScrollIntoView, u = t.theme, d = Te(ha) || {}, m = d.setPortalPlacement, g = de(null), w = re(r), x = Be(w, 2), v = x[0], h = x[1], f = re(null), b = Be(f, 2), C = b[0], y = b[1], A = u.spacing.controlHeight;
|
|
3552
3552
|
return xn(function() {
|
|
3553
3553
|
var E = g.current;
|
|
3554
3554
|
if (!!E) {
|
|
3555
|
-
var
|
|
3555
|
+
var k = l === "fixed", L = s && !k, N = B0({
|
|
3556
3556
|
maxHeight: r,
|
|
3557
3557
|
menuEl: E,
|
|
3558
3558
|
minHeight: a,
|
|
3559
3559
|
placement: i,
|
|
3560
3560
|
shouldScroll: L,
|
|
3561
|
-
isFixedPosition:
|
|
3562
|
-
controlHeight:
|
|
3561
|
+
isFixedPosition: k,
|
|
3562
|
+
controlHeight: A
|
|
3563
3563
|
});
|
|
3564
|
-
h(
|
|
3564
|
+
h(N.maxHeight), y(N.placement), m == null || m(N.placement);
|
|
3565
3565
|
}
|
|
3566
|
-
}, [r, i, l, s, a, m,
|
|
3566
|
+
}, [r, i, l, s, a, m, A]), o({
|
|
3567
3567
|
ref: g,
|
|
3568
3568
|
placerProps: T(T({}, t), {}, {
|
|
3569
|
-
placement:
|
|
3569
|
+
placement: C || ga(i),
|
|
3570
3570
|
maxHeight: v
|
|
3571
3571
|
})
|
|
3572
3572
|
});
|
|
@@ -3634,14 +3634,14 @@ var H0 = function(t) {
|
|
|
3634
3634
|
zIndex: 1
|
|
3635
3635
|
};
|
|
3636
3636
|
}, O0 = function(t) {
|
|
3637
|
-
var o = t.appendTo, a = t.children, r = t.controlElement, i = t.innerProps, l = t.menuPlacement, s = t.menuPosition, u = de(null), d = de(null), m =
|
|
3637
|
+
var o = t.appendTo, a = t.children, r = t.controlElement, i = t.innerProps, l = t.menuPlacement, s = t.menuPosition, u = de(null), d = de(null), m = re(ga(l)), g = Be(m, 2), w = g[0], x = g[1], v = Ne(function() {
|
|
3638
3638
|
return {
|
|
3639
3639
|
setPortalPlacement: x
|
|
3640
3640
|
};
|
|
3641
|
-
}, []), h =
|
|
3641
|
+
}, []), h = re(null), f = Be(h, 2), b = f[0], C = f[1], y = ae(function() {
|
|
3642
3642
|
if (!!r) {
|
|
3643
|
-
var L = C0(r),
|
|
3644
|
-
(V !== (b == null ? void 0 : b.offset) || L.left !== (b == null ? void 0 : b.rect.left) || L.width !== (b == null ? void 0 : b.rect.width)) &&
|
|
3643
|
+
var L = C0(r), N = s === "fixed" ? 0 : window.pageYOffset, V = L[w] + N;
|
|
3644
|
+
(V !== (b == null ? void 0 : b.offset) || L.left !== (b == null ? void 0 : b.rect.left) || L.width !== (b == null ? void 0 : b.rect.width)) && C({
|
|
3645
3645
|
offset: V,
|
|
3646
3646
|
rect: L
|
|
3647
3647
|
});
|
|
@@ -3650,20 +3650,20 @@ var H0 = function(t) {
|
|
|
3650
3650
|
xn(function() {
|
|
3651
3651
|
y();
|
|
3652
3652
|
}, [y]);
|
|
3653
|
-
var
|
|
3653
|
+
var A = ae(function() {
|
|
3654
3654
|
typeof d.current == "function" && (d.current(), d.current = null), r && u.current && (d.current = f0(r, u.current, y, {
|
|
3655
3655
|
elementResize: "ResizeObserver" in window
|
|
3656
3656
|
}));
|
|
3657
3657
|
}, [r, y]);
|
|
3658
3658
|
xn(function() {
|
|
3659
|
-
|
|
3660
|
-
}, [
|
|
3659
|
+
A();
|
|
3660
|
+
}, [A]);
|
|
3661
3661
|
var E = ae(function(L) {
|
|
3662
|
-
u.current = L,
|
|
3663
|
-
}, [
|
|
3662
|
+
u.current = L, A();
|
|
3663
|
+
}, [A]);
|
|
3664
3664
|
if (!o && s !== "fixed" || !b)
|
|
3665
3665
|
return null;
|
|
3666
|
-
var
|
|
3666
|
+
var k = F("div", S({
|
|
3667
3667
|
ref: E
|
|
3668
3668
|
}, ee(T(T({}, t), {}, {
|
|
3669
3669
|
offset: b.offset,
|
|
@@ -3674,7 +3674,7 @@ var H0 = function(t) {
|
|
|
3674
3674
|
}), i), a);
|
|
3675
3675
|
return F(ha.Provider, {
|
|
3676
3676
|
value: v
|
|
3677
|
-
}, o ? /* @__PURE__ */ a1(
|
|
3677
|
+
}, o ? /* @__PURE__ */ a1(k, o) : k);
|
|
3678
3678
|
}, W0 = function(t) {
|
|
3679
3679
|
var o = t.isDisabled, a = t.isRtl;
|
|
3680
3680
|
return {
|
|
@@ -4235,54 +4235,54 @@ var Rl = process.env.NODE_ENV === "production" ? {
|
|
|
4235
4235
|
return "".concat(a).concat(o ? " for search term " + o : "", ".");
|
|
4236
4236
|
}
|
|
4237
4237
|
}, Dl = function(t) {
|
|
4238
|
-
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, g = u.getOptionLabel, w = u.inputValue, x = u.isMulti, v = u.isOptionDisabled, h = u.isSearchable, f = u.menuIsOpen, b = u.options,
|
|
4238
|
+
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, g = u.getOptionLabel, w = u.inputValue, x = u.isMulti, v = u.isOptionDisabled, h = u.isSearchable, f = u.menuIsOpen, b = u.options, C = u.screenReaderStatus, y = u.tabSelectsValue, A = u["aria-label"], E = u["aria-live"], k = Ne(function() {
|
|
4239
4239
|
return T(T({}, Gl), m || {});
|
|
4240
4240
|
}, [m]), L = Ne(function() {
|
|
4241
|
-
var
|
|
4242
|
-
if (o &&
|
|
4243
|
-
var z = o.option,
|
|
4241
|
+
var O = "";
|
|
4242
|
+
if (o && k.onChange) {
|
|
4243
|
+
var z = o.option, $ = o.options, B = o.removedValue, R = o.removedValues, H = o.value, q = function(ce) {
|
|
4244
4244
|
return Array.isArray(ce) ? null : ce;
|
|
4245
|
-
},
|
|
4246
|
-
isDisabled:
|
|
4247
|
-
label:
|
|
4245
|
+
}, te = B || z || q(H), W = te ? g(te) : "", _ = $ || R || void 0, ge = _ ? _.map(g) : [], he = T({
|
|
4246
|
+
isDisabled: te && v(te, s),
|
|
4247
|
+
label: W,
|
|
4248
4248
|
labels: ge
|
|
4249
4249
|
}, o);
|
|
4250
|
-
|
|
4250
|
+
O = k.onChange(he);
|
|
4251
4251
|
}
|
|
4252
|
-
return
|
|
4253
|
-
}, [o,
|
|
4254
|
-
var
|
|
4255
|
-
if (z &&
|
|
4256
|
-
var
|
|
4252
|
+
return O;
|
|
4253
|
+
}, [o, k, v, s, g]), N = Ne(function() {
|
|
4254
|
+
var O = "", z = a || r, $ = !!(a && s && s.includes(a));
|
|
4255
|
+
if (z && k.onFocus) {
|
|
4256
|
+
var B = {
|
|
4257
4257
|
focused: z,
|
|
4258
4258
|
label: g(z),
|
|
4259
4259
|
isDisabled: v(z, s),
|
|
4260
|
-
isSelected:
|
|
4260
|
+
isSelected: $,
|
|
4261
4261
|
options: i,
|
|
4262
4262
|
context: z === a ? "menu" : "value",
|
|
4263
4263
|
selectValue: s
|
|
4264
4264
|
};
|
|
4265
|
-
|
|
4265
|
+
O = k.onFocus(B);
|
|
4266
4266
|
}
|
|
4267
|
-
return
|
|
4268
|
-
}, [a, r, g, v,
|
|
4269
|
-
var
|
|
4270
|
-
if (f && b.length &&
|
|
4271
|
-
var z =
|
|
4267
|
+
return O;
|
|
4268
|
+
}, [a, r, g, v, k, i, s]), V = Ne(function() {
|
|
4269
|
+
var O = "";
|
|
4270
|
+
if (f && b.length && k.onFilter) {
|
|
4271
|
+
var z = C({
|
|
4272
4272
|
count: i.length
|
|
4273
4273
|
});
|
|
4274
|
-
|
|
4274
|
+
O = k.onFilter({
|
|
4275
4275
|
inputValue: w,
|
|
4276
4276
|
resultsMessage: z
|
|
4277
4277
|
});
|
|
4278
4278
|
}
|
|
4279
|
-
return
|
|
4280
|
-
}, [i, w, f,
|
|
4281
|
-
var
|
|
4282
|
-
if (
|
|
4279
|
+
return O;
|
|
4280
|
+
}, [i, w, f, k, b, C]), P = Ne(function() {
|
|
4281
|
+
var O = "";
|
|
4282
|
+
if (k.guidance) {
|
|
4283
4283
|
var z = r ? "value" : f ? "menu" : "input";
|
|
4284
|
-
|
|
4285
|
-
"aria-label":
|
|
4284
|
+
O = k.guidance({
|
|
4285
|
+
"aria-label": A,
|
|
4286
4286
|
context: z,
|
|
4287
4287
|
isDisabled: a && v(a, s),
|
|
4288
4288
|
isMulti: x,
|
|
@@ -4290,19 +4290,19 @@ var Rl = process.env.NODE_ENV === "production" ? {
|
|
|
4290
4290
|
tabSelectsValue: y
|
|
4291
4291
|
});
|
|
4292
4292
|
}
|
|
4293
|
-
return
|
|
4294
|
-
}, [
|
|
4293
|
+
return O;
|
|
4294
|
+
}, [A, a, r, x, v, h, f, k, s, y]), X = "".concat(N, " ").concat(V, " ").concat(P), D = F(fe, null, F("span", {
|
|
4295
4295
|
id: "aria-selection"
|
|
4296
4296
|
}, L), F("span", {
|
|
4297
4297
|
id: "aria-context"
|
|
4298
|
-
},
|
|
4298
|
+
}, X)), Q = (o == null ? void 0 : o.action) === "initial-input-focus";
|
|
4299
4299
|
return F(fe, null, F(Jr, {
|
|
4300
4300
|
id: d
|
|
4301
|
-
},
|
|
4301
|
+
}, Q && D), F(Jr, {
|
|
4302
4302
|
"aria-live": E,
|
|
4303
4303
|
"aria-atomic": "false",
|
|
4304
4304
|
"aria-relevant": "additions text"
|
|
4305
|
-
}, l && !
|
|
4305
|
+
}, l && !Q && D));
|
|
4306
4306
|
}, En = [{
|
|
4307
4307
|
base: "A",
|
|
4308
4308
|
letters: "A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"
|
|
@@ -4612,8 +4612,8 @@ var Zl = function(t) {
|
|
|
4612
4612
|
function Xl(e) {
|
|
4613
4613
|
var t = e.isEnabled, o = e.onBottomArrive, a = e.onBottomLeave, r = e.onTopArrive, i = e.onTopLeave, l = de(!1), s = de(!1), u = de(0), d = de(null), m = ae(function(f, b) {
|
|
4614
4614
|
if (d.current !== null) {
|
|
4615
|
-
var
|
|
4616
|
-
|
|
4615
|
+
var C = d.current, y = C.scrollTop, A = C.scrollHeight, E = C.clientHeight, k = d.current, L = b > 0, N = A - E - y, V = !1;
|
|
4616
|
+
N > b && l.current && (a && a(f), l.current = !1), L && s.current && (i && i(f), s.current = !1), L && b > N ? (o && !l.current && o(f), k.scrollTop = A, V = !0, l.current = !0) : !L && -b > y && (r && !s.current && r(f), k.scrollTop = 0, V = !0, s.current = !0), V && Zl(f);
|
|
4617
4617
|
}
|
|
4618
4618
|
}, [o, a, r, i]), g = ae(function(f) {
|
|
4619
4619
|
m(f, f.deltaY);
|
|
@@ -5141,7 +5141,7 @@ var Ga = function(t) {
|
|
|
5141
5141
|
}, r.onValueInputFocus = function(s) {
|
|
5142
5142
|
s.preventDefault(), s.stopPropagation(), r.focus();
|
|
5143
5143
|
}, r.onKeyDown = function(s) {
|
|
5144
|
-
var u = r.props, d = u.isMulti, m = u.backspaceRemovesValue, g = u.escapeClearsValue, w = u.inputValue, x = u.isClearable, v = u.isDisabled, h = u.menuIsOpen, f = u.onKeyDown, b = u.tabSelectsValue,
|
|
5144
|
+
var u = r.props, d = u.isMulti, m = u.backspaceRemovesValue, g = u.escapeClearsValue, w = u.inputValue, x = u.isClearable, v = u.isDisabled, h = u.menuIsOpen, f = u.onKeyDown, b = u.tabSelectsValue, C = u.openMenuOnFocus, y = r.state, A = y.focusedOption, E = y.focusedValue, k = y.selectValue;
|
|
5145
5145
|
if (!v && !(typeof f == "function" && (f(s), s.defaultPrevented))) {
|
|
5146
5146
|
switch (r.blockOptionHover = !0, s.key) {
|
|
5147
5147
|
case "ArrowLeft":
|
|
@@ -5167,17 +5167,17 @@ var Ga = function(t) {
|
|
|
5167
5167
|
}
|
|
5168
5168
|
break;
|
|
5169
5169
|
case "Tab":
|
|
5170
|
-
if (r.isComposing || s.shiftKey || !h || !b || !
|
|
5170
|
+
if (r.isComposing || s.shiftKey || !h || !b || !A || C && r.isOptionSelected(A, k))
|
|
5171
5171
|
return;
|
|
5172
|
-
r.selectOption(
|
|
5172
|
+
r.selectOption(A);
|
|
5173
5173
|
break;
|
|
5174
5174
|
case "Enter":
|
|
5175
5175
|
if (s.keyCode === 229)
|
|
5176
5176
|
break;
|
|
5177
5177
|
if (h) {
|
|
5178
|
-
if (!
|
|
5178
|
+
if (!A || r.isComposing)
|
|
5179
5179
|
return;
|
|
5180
|
-
r.selectOption(
|
|
5180
|
+
r.selectOption(A);
|
|
5181
5181
|
break;
|
|
5182
5182
|
}
|
|
5183
5183
|
return;
|
|
@@ -5196,9 +5196,9 @@ var Ga = function(t) {
|
|
|
5196
5196
|
r.openMenu("first");
|
|
5197
5197
|
break;
|
|
5198
5198
|
}
|
|
5199
|
-
if (!
|
|
5199
|
+
if (!A)
|
|
5200
5200
|
return;
|
|
5201
|
-
r.selectOption(
|
|
5201
|
+
r.selectOption(A);
|
|
5202
5202
|
break;
|
|
5203
5203
|
case "ArrowUp":
|
|
5204
5204
|
h ? r.focusOption("up") : r.openMenu("last");
|
|
@@ -5438,7 +5438,7 @@ var Ga = function(t) {
|
|
|
5438
5438
|
}, {
|
|
5439
5439
|
key: "renderInput",
|
|
5440
5440
|
value: function() {
|
|
5441
|
-
var r = this.props, i = r.isDisabled, l = r.isSearchable, s = r.inputId, u = r.inputValue, d = r.tabIndex, m = r.form, g = r.menuIsOpen, w = r.required, x = this.getComponents(), v = x.Input, h = this.state, f = h.inputIsHidden, b = h.ariaSelection,
|
|
5441
|
+
var r = this.props, i = r.isDisabled, l = r.isSearchable, s = r.inputId, u = r.inputValue, d = r.tabIndex, m = r.form, g = r.menuIsOpen, w = r.required, x = this.getComponents(), v = x.Input, h = this.state, f = h.inputIsHidden, b = h.ariaSelection, C = this.commonProps, y = s || this.getElementId("input"), A = T(T(T({
|
|
5442
5442
|
"aria-autocomplete": "list",
|
|
5443
5443
|
"aria-expanded": g,
|
|
5444
5444
|
"aria-haspopup": !0,
|
|
@@ -5458,7 +5458,7 @@ var Ga = function(t) {
|
|
|
5458
5458
|
} : {
|
|
5459
5459
|
"aria-describedby": this.getElementId("placeholder")
|
|
5460
5460
|
});
|
|
5461
|
-
return l ? /* @__PURE__ */
|
|
5461
|
+
return l ? /* @__PURE__ */ j.createElement(v, S({}, C, {
|
|
5462
5462
|
autoCapitalize: "none",
|
|
5463
5463
|
autoComplete: "off",
|
|
5464
5464
|
autoCorrect: "off",
|
|
@@ -5474,7 +5474,7 @@ var Ga = function(t) {
|
|
|
5474
5474
|
form: m,
|
|
5475
5475
|
type: "text",
|
|
5476
5476
|
value: u
|
|
5477
|
-
},
|
|
5477
|
+
}, A)) : /* @__PURE__ */ j.createElement(Pl, S({
|
|
5478
5478
|
id: y,
|
|
5479
5479
|
innerRef: this.getInputRef,
|
|
5480
5480
|
onBlur: this.onInputBlur,
|
|
@@ -5485,25 +5485,25 @@ var Ga = function(t) {
|
|
|
5485
5485
|
inputMode: "none",
|
|
5486
5486
|
form: m,
|
|
5487
5487
|
value: ""
|
|
5488
|
-
},
|
|
5488
|
+
}, A));
|
|
5489
5489
|
}
|
|
5490
5490
|
}, {
|
|
5491
5491
|
key: "renderPlaceholderOrValue",
|
|
5492
5492
|
value: function() {
|
|
5493
|
-
var r = this, i = this.getComponents(), l = i.MultiValue, s = i.MultiValueContainer, u = i.MultiValueLabel, d = i.MultiValueRemove, m = i.SingleValue, g = i.Placeholder, w = this.commonProps, x = this.props, v = x.controlShouldRenderValue, h = x.isDisabled, f = x.isMulti, b = x.inputValue,
|
|
5493
|
+
var r = this, i = this.getComponents(), l = i.MultiValue, s = i.MultiValueContainer, u = i.MultiValueLabel, d = i.MultiValueRemove, m = i.SingleValue, g = i.Placeholder, w = this.commonProps, x = this.props, v = x.controlShouldRenderValue, h = x.isDisabled, f = x.isMulti, b = x.inputValue, C = x.placeholder, y = this.state, A = y.selectValue, E = y.focusedValue, k = y.isFocused;
|
|
5494
5494
|
if (!this.hasValue() || !v)
|
|
5495
|
-
return b ? null : /* @__PURE__ */
|
|
5495
|
+
return b ? null : /* @__PURE__ */ j.createElement(g, S({}, w, {
|
|
5496
5496
|
key: "placeholder",
|
|
5497
5497
|
isDisabled: h,
|
|
5498
|
-
isFocused:
|
|
5498
|
+
isFocused: k,
|
|
5499
5499
|
innerProps: {
|
|
5500
5500
|
id: this.getElementId("placeholder")
|
|
5501
5501
|
}
|
|
5502
|
-
}),
|
|
5502
|
+
}), C);
|
|
5503
5503
|
if (f)
|
|
5504
|
-
return
|
|
5505
|
-
var P =
|
|
5506
|
-
return /* @__PURE__ */
|
|
5504
|
+
return A.map(function(N, V) {
|
|
5505
|
+
var P = N === E, X = "".concat(r.getOptionLabel(N), "-").concat(r.getOptionValue(N));
|
|
5506
|
+
return /* @__PURE__ */ j.createElement(l, S({}, w, {
|
|
5507
5507
|
components: {
|
|
5508
5508
|
Container: s,
|
|
5509
5509
|
Label: u,
|
|
@@ -5511,26 +5511,26 @@ var Ga = function(t) {
|
|
|
5511
5511
|
},
|
|
5512
5512
|
isFocused: P,
|
|
5513
5513
|
isDisabled: h,
|
|
5514
|
-
key:
|
|
5514
|
+
key: X,
|
|
5515
5515
|
index: V,
|
|
5516
5516
|
removeProps: {
|
|
5517
5517
|
onClick: function() {
|
|
5518
|
-
return r.removeValue(
|
|
5518
|
+
return r.removeValue(N);
|
|
5519
5519
|
},
|
|
5520
5520
|
onTouchEnd: function() {
|
|
5521
|
-
return r.removeValue(
|
|
5521
|
+
return r.removeValue(N);
|
|
5522
5522
|
},
|
|
5523
|
-
onMouseDown: function(
|
|
5524
|
-
|
|
5523
|
+
onMouseDown: function(Q) {
|
|
5524
|
+
Q.preventDefault();
|
|
5525
5525
|
}
|
|
5526
5526
|
},
|
|
5527
|
-
data:
|
|
5528
|
-
}), r.formatOptionLabel(
|
|
5527
|
+
data: N
|
|
5528
|
+
}), r.formatOptionLabel(N, "value"));
|
|
5529
5529
|
});
|
|
5530
5530
|
if (b)
|
|
5531
5531
|
return null;
|
|
5532
|
-
var L =
|
|
5533
|
-
return /* @__PURE__ */
|
|
5532
|
+
var L = A[0];
|
|
5533
|
+
return /* @__PURE__ */ j.createElement(m, S({}, w, {
|
|
5534
5534
|
data: L,
|
|
5535
5535
|
isDisabled: h
|
|
5536
5536
|
}), this.formatOptionLabel(L, "value"));
|
|
@@ -5546,7 +5546,7 @@ var Ga = function(t) {
|
|
|
5546
5546
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
5547
5547
|
"aria-hidden": "true"
|
|
5548
5548
|
};
|
|
5549
|
-
return /* @__PURE__ */
|
|
5549
|
+
return /* @__PURE__ */ j.createElement(i, S({}, l, {
|
|
5550
5550
|
innerProps: g,
|
|
5551
5551
|
isFocused: m
|
|
5552
5552
|
}));
|
|
@@ -5560,7 +5560,7 @@ var Ga = function(t) {
|
|
|
5560
5560
|
var g = {
|
|
5561
5561
|
"aria-hidden": "true"
|
|
5562
5562
|
};
|
|
5563
|
-
return /* @__PURE__ */
|
|
5563
|
+
return /* @__PURE__ */ j.createElement(i, S({}, l, {
|
|
5564
5564
|
innerProps: g,
|
|
5565
5565
|
isDisabled: u,
|
|
5566
5566
|
isFocused: m
|
|
@@ -5573,7 +5573,7 @@ var Ga = function(t) {
|
|
|
5573
5573
|
if (!i || !l)
|
|
5574
5574
|
return null;
|
|
5575
5575
|
var s = this.commonProps, u = this.props.isDisabled, d = this.state.isFocused;
|
|
5576
|
-
return /* @__PURE__ */
|
|
5576
|
+
return /* @__PURE__ */ j.createElement(l, S({}, s, {
|
|
5577
5577
|
isDisabled: u,
|
|
5578
5578
|
isFocused: d
|
|
5579
5579
|
}));
|
|
@@ -5589,7 +5589,7 @@ var Ga = function(t) {
|
|
|
5589
5589
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
5590
5590
|
"aria-hidden": "true"
|
|
5591
5591
|
};
|
|
5592
|
-
return /* @__PURE__ */
|
|
5592
|
+
return /* @__PURE__ */ j.createElement(i, S({}, l, {
|
|
5593
5593
|
innerProps: d,
|
|
5594
5594
|
isDisabled: s,
|
|
5595
5595
|
isFocused: u
|
|
@@ -5598,22 +5598,22 @@ var Ga = function(t) {
|
|
|
5598
5598
|
}, {
|
|
5599
5599
|
key: "renderMenu",
|
|
5600
5600
|
value: function() {
|
|
5601
|
-
var r = this, i = this.getComponents(), l = i.Group, s = i.GroupHeading, u = i.Menu, d = i.MenuList, m = i.MenuPortal, g = i.LoadingMessage, w = i.NoOptionsMessage, x = i.Option, v = this.commonProps, h = this.state.focusedOption, f = this.props, b = f.captureMenuScroll,
|
|
5601
|
+
var r = this, i = this.getComponents(), l = i.Group, s = i.GroupHeading, u = i.Menu, d = i.MenuList, m = i.MenuPortal, g = i.LoadingMessage, w = i.NoOptionsMessage, x = i.Option, v = this.commonProps, h = this.state.focusedOption, f = this.props, b = f.captureMenuScroll, C = f.inputValue, y = f.isLoading, A = f.loadingMessage, E = f.minMenuHeight, k = f.maxMenuHeight, L = f.menuIsOpen, N = f.menuPlacement, V = f.menuPosition, P = f.menuPortalTarget, X = f.menuShouldBlockScroll, D = f.menuShouldScrollIntoView, Q = f.noOptionsMessage, O = f.onMenuScrollToTop, z = f.onMenuScrollToBottom;
|
|
5602
5602
|
if (!L)
|
|
5603
5603
|
return null;
|
|
5604
|
-
var
|
|
5605
|
-
var he = _.type, ue = _.data, ce = _.isDisabled, ve = _.isSelected, Ee = _.label, Re = _.value, Le = h === ue,
|
|
5604
|
+
var $ = function(_, ge) {
|
|
5605
|
+
var he = _.type, ue = _.data, ce = _.isDisabled, ve = _.isSelected, Ee = _.label, Re = _.value, Le = h === ue, M = ce ? void 0 : function() {
|
|
5606
5606
|
return r.onOptionHover(ue);
|
|
5607
5607
|
}, Me = ce ? void 0 : function() {
|
|
5608
5608
|
return r.selectOption(ue);
|
|
5609
5609
|
}, be = "".concat(r.getElementId("option"), "-").concat(ge), Fe = {
|
|
5610
5610
|
id: be,
|
|
5611
5611
|
onClick: Me,
|
|
5612
|
-
onMouseMove:
|
|
5613
|
-
onMouseOver:
|
|
5612
|
+
onMouseMove: M,
|
|
5613
|
+
onMouseOver: M,
|
|
5614
5614
|
tabIndex: -1
|
|
5615
5615
|
};
|
|
5616
|
-
return /* @__PURE__ */
|
|
5616
|
+
return /* @__PURE__ */ j.createElement(x, S({}, v, {
|
|
5617
5617
|
innerProps: Fe,
|
|
5618
5618
|
data: ue,
|
|
5619
5619
|
isDisabled: ce,
|
|
@@ -5625,51 +5625,51 @@ var Ga = function(t) {
|
|
|
5625
5625
|
isFocused: Le,
|
|
5626
5626
|
innerRef: Le ? r.getFocusedOptionRef : void 0
|
|
5627
5627
|
}), r.formatOptionLabel(_.data, "menu"));
|
|
5628
|
-
},
|
|
5628
|
+
}, B;
|
|
5629
5629
|
if (this.hasOptions())
|
|
5630
|
-
|
|
5631
|
-
if (
|
|
5632
|
-
var _ =
|
|
5633
|
-
return /* @__PURE__ */
|
|
5630
|
+
B = this.getCategorizedOptions().map(function(W) {
|
|
5631
|
+
if (W.type === "group") {
|
|
5632
|
+
var _ = W.data, ge = W.options, he = W.index, ue = "".concat(r.getElementId("group"), "-").concat(he), ce = "".concat(ue, "-heading");
|
|
5633
|
+
return /* @__PURE__ */ j.createElement(l, S({}, v, {
|
|
5634
5634
|
key: ue,
|
|
5635
5635
|
data: _,
|
|
5636
5636
|
options: ge,
|
|
5637
5637
|
Heading: s,
|
|
5638
5638
|
headingProps: {
|
|
5639
5639
|
id: ce,
|
|
5640
|
-
data:
|
|
5640
|
+
data: W.data
|
|
5641
5641
|
},
|
|
5642
|
-
label: r.formatGroupLabel(
|
|
5643
|
-
}),
|
|
5644
|
-
return
|
|
5642
|
+
label: r.formatGroupLabel(W.data)
|
|
5643
|
+
}), W.options.map(function(ve) {
|
|
5644
|
+
return $(ve, "".concat(he, "-").concat(ve.index));
|
|
5645
5645
|
}));
|
|
5646
|
-
} else if (
|
|
5647
|
-
return
|
|
5646
|
+
} else if (W.type === "option")
|
|
5647
|
+
return $(W, "".concat(W.index));
|
|
5648
5648
|
});
|
|
5649
5649
|
else if (y) {
|
|
5650
|
-
var
|
|
5651
|
-
inputValue:
|
|
5650
|
+
var R = A({
|
|
5651
|
+
inputValue: C
|
|
5652
5652
|
});
|
|
5653
|
-
if (
|
|
5653
|
+
if (R === null)
|
|
5654
5654
|
return null;
|
|
5655
|
-
|
|
5655
|
+
B = /* @__PURE__ */ j.createElement(g, v, R);
|
|
5656
5656
|
} else {
|
|
5657
|
-
var
|
|
5658
|
-
inputValue:
|
|
5657
|
+
var H = Q({
|
|
5658
|
+
inputValue: C
|
|
5659
5659
|
});
|
|
5660
|
-
if (
|
|
5660
|
+
if (H === null)
|
|
5661
5661
|
return null;
|
|
5662
|
-
|
|
5662
|
+
B = /* @__PURE__ */ j.createElement(w, v, H);
|
|
5663
5663
|
}
|
|
5664
|
-
var
|
|
5664
|
+
var q = {
|
|
5665
5665
|
minMenuHeight: E,
|
|
5666
|
-
maxMenuHeight:
|
|
5667
|
-
menuPlacement:
|
|
5666
|
+
maxMenuHeight: k,
|
|
5667
|
+
menuPlacement: N,
|
|
5668
5668
|
menuPosition: V,
|
|
5669
5669
|
menuShouldScrollIntoView: D
|
|
5670
|
-
},
|
|
5671
|
-
var _ =
|
|
5672
|
-
return /* @__PURE__ */
|
|
5670
|
+
}, te = /* @__PURE__ */ j.createElement(T0, S({}, v, q), function(W) {
|
|
5671
|
+
var _ = W.ref, ge = W.placerProps, he = ge.placement, ue = ge.maxHeight;
|
|
5672
|
+
return /* @__PURE__ */ j.createElement(u, S({}, v, q, {
|
|
5673
5673
|
innerRef: _,
|
|
5674
5674
|
innerProps: {
|
|
5675
5675
|
onMouseDown: r.onMenuMouseDown,
|
|
@@ -5678,28 +5678,28 @@ var Ga = function(t) {
|
|
|
5678
5678
|
},
|
|
5679
5679
|
isLoading: y,
|
|
5680
5680
|
placement: he
|
|
5681
|
-
}), /* @__PURE__ */
|
|
5681
|
+
}), /* @__PURE__ */ j.createElement(ql, {
|
|
5682
5682
|
captureEnabled: b,
|
|
5683
|
-
onTopArrive:
|
|
5683
|
+
onTopArrive: O,
|
|
5684
5684
|
onBottomArrive: z,
|
|
5685
|
-
lockEnabled:
|
|
5685
|
+
lockEnabled: X
|
|
5686
5686
|
}, function(ce) {
|
|
5687
|
-
return /* @__PURE__ */
|
|
5687
|
+
return /* @__PURE__ */ j.createElement(d, S({}, v, {
|
|
5688
5688
|
innerRef: function(Ee) {
|
|
5689
5689
|
r.getMenuListRef(Ee), ce(Ee);
|
|
5690
5690
|
},
|
|
5691
5691
|
isLoading: y,
|
|
5692
5692
|
maxHeight: ue,
|
|
5693
5693
|
focusedOption: h
|
|
5694
|
-
}),
|
|
5694
|
+
}), B);
|
|
5695
5695
|
}));
|
|
5696
5696
|
});
|
|
5697
|
-
return P || V === "fixed" ? /* @__PURE__ */
|
|
5697
|
+
return P || V === "fixed" ? /* @__PURE__ */ j.createElement(m, S({}, v, {
|
|
5698
5698
|
appendTo: P,
|
|
5699
5699
|
controlElement: this.controlRef,
|
|
5700
|
-
menuPlacement:
|
|
5700
|
+
menuPlacement: N,
|
|
5701
5701
|
menuPosition: V
|
|
5702
|
-
}),
|
|
5702
|
+
}), te) : te;
|
|
5703
5703
|
}
|
|
5704
5704
|
}, {
|
|
5705
5705
|
key: "renderFormField",
|
|
@@ -5707,7 +5707,7 @@ var Ga = function(t) {
|
|
|
5707
5707
|
var r = this, i = this.props, l = i.delimiter, s = i.isDisabled, u = i.isMulti, d = i.name, m = i.required, g = this.state.selectValue;
|
|
5708
5708
|
if (!(!d || s)) {
|
|
5709
5709
|
if (m && !this.hasValue())
|
|
5710
|
-
return /* @__PURE__ */
|
|
5710
|
+
return /* @__PURE__ */ j.createElement($l, {
|
|
5711
5711
|
name: d,
|
|
5712
5712
|
onFocus: this.onValueInputFocus
|
|
5713
5713
|
});
|
|
@@ -5716,29 +5716,29 @@ var Ga = function(t) {
|
|
|
5716
5716
|
var w = g.map(function(h) {
|
|
5717
5717
|
return r.getOptionValue(h);
|
|
5718
5718
|
}).join(l);
|
|
5719
|
-
return /* @__PURE__ */
|
|
5719
|
+
return /* @__PURE__ */ j.createElement("input", {
|
|
5720
5720
|
name: d,
|
|
5721
5721
|
type: "hidden",
|
|
5722
5722
|
value: w
|
|
5723
5723
|
});
|
|
5724
5724
|
} else {
|
|
5725
5725
|
var x = g.length > 0 ? g.map(function(h, f) {
|
|
5726
|
-
return /* @__PURE__ */
|
|
5726
|
+
return /* @__PURE__ */ j.createElement("input", {
|
|
5727
5727
|
key: "i-".concat(f),
|
|
5728
5728
|
name: d,
|
|
5729
5729
|
type: "hidden",
|
|
5730
5730
|
value: r.getOptionValue(h)
|
|
5731
5731
|
});
|
|
5732
|
-
}) : /* @__PURE__ */
|
|
5732
|
+
}) : /* @__PURE__ */ j.createElement("input", {
|
|
5733
5733
|
name: d,
|
|
5734
5734
|
type: "hidden",
|
|
5735
5735
|
value: ""
|
|
5736
5736
|
});
|
|
5737
|
-
return /* @__PURE__ */
|
|
5737
|
+
return /* @__PURE__ */ j.createElement("div", null, x);
|
|
5738
5738
|
}
|
|
5739
5739
|
else {
|
|
5740
5740
|
var v = g[0] ? this.getOptionValue(g[0]) : "";
|
|
5741
|
-
return /* @__PURE__ */
|
|
5741
|
+
return /* @__PURE__ */ j.createElement("input", {
|
|
5742
5742
|
name: d,
|
|
5743
5743
|
type: "hidden",
|
|
5744
5744
|
value: v
|
|
@@ -5750,7 +5750,7 @@ var Ga = function(t) {
|
|
|
5750
5750
|
key: "renderLiveRegion",
|
|
5751
5751
|
value: function() {
|
|
5752
5752
|
var r = this.commonProps, i = this.state, l = i.ariaSelection, s = i.focusedOption, u = i.focusedValue, d = i.isFocused, m = i.selectValue, g = this.getFocusableOptions();
|
|
5753
|
-
return /* @__PURE__ */
|
|
5753
|
+
return /* @__PURE__ */ j.createElement(Dl, S({}, r, {
|
|
5754
5754
|
id: this.getElementId("live-region"),
|
|
5755
5755
|
ariaSelection: l,
|
|
5756
5756
|
focusedOption: s,
|
|
@@ -5764,7 +5764,7 @@ var Ga = function(t) {
|
|
|
5764
5764
|
key: "render",
|
|
5765
5765
|
value: function() {
|
|
5766
5766
|
var r = this.getComponents(), i = r.Control, l = r.IndicatorsContainer, s = r.SelectContainer, u = r.ValueContainer, d = this.props, m = d.className, g = d.id, w = d.isDisabled, x = d.menuIsOpen, v = this.state.isFocused, h = this.commonProps = this.getCommonProps();
|
|
5767
|
-
return /* @__PURE__ */
|
|
5767
|
+
return /* @__PURE__ */ j.createElement(s, S({}, h, {
|
|
5768
5768
|
className: m,
|
|
5769
5769
|
innerProps: {
|
|
5770
5770
|
id: g,
|
|
@@ -5772,7 +5772,7 @@ var Ga = function(t) {
|
|
|
5772
5772
|
},
|
|
5773
5773
|
isDisabled: w,
|
|
5774
5774
|
isFocused: v
|
|
5775
|
-
}), this.renderLiveRegion(), /* @__PURE__ */
|
|
5775
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ j.createElement(i, S({}, h, {
|
|
5776
5776
|
innerRef: this.getControlRef,
|
|
5777
5777
|
innerProps: {
|
|
5778
5778
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -5781,37 +5781,37 @@ var Ga = function(t) {
|
|
|
5781
5781
|
isDisabled: w,
|
|
5782
5782
|
isFocused: v,
|
|
5783
5783
|
menuIsOpen: x
|
|
5784
|
-
}), /* @__PURE__ */
|
|
5784
|
+
}), /* @__PURE__ */ j.createElement(u, S({}, h, {
|
|
5785
5785
|
isDisabled: w
|
|
5786
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */
|
|
5786
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ j.createElement(l, S({}, h, {
|
|
5787
5787
|
isDisabled: w
|
|
5788
5788
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
5789
5789
|
}
|
|
5790
5790
|
}], [{
|
|
5791
5791
|
key: "getDerivedStateFromProps",
|
|
5792
5792
|
value: function(r, i) {
|
|
5793
|
-
var l = i.prevProps, s = i.clearFocusValueOnUpdate, u = i.inputIsHiddenAfterUpdate, d = i.ariaSelection, m = i.isFocused, g = i.prevWasFocused, w = r.options, x = r.value, v = r.menuIsOpen, h = r.inputValue, f = r.isMulti, b = Ot(x),
|
|
5793
|
+
var l = i.prevProps, s = i.clearFocusValueOnUpdate, u = i.inputIsHiddenAfterUpdate, d = i.ariaSelection, m = i.isFocused, g = i.prevWasFocused, w = r.options, x = r.value, v = r.menuIsOpen, h = r.inputValue, f = r.isMulti, b = Ot(x), C = {};
|
|
5794
5794
|
if (l && (x !== l.value || w !== l.options || v !== l.menuIsOpen || h !== l.inputValue)) {
|
|
5795
|
-
var y = v ? cc(r, b) : [],
|
|
5796
|
-
|
|
5795
|
+
var y = v ? cc(r, b) : [], A = s ? uc(i, b) : null, E = dc(i, y);
|
|
5796
|
+
C = {
|
|
5797
5797
|
selectValue: b,
|
|
5798
5798
|
focusedOption: E,
|
|
5799
|
-
focusedValue:
|
|
5799
|
+
focusedValue: A,
|
|
5800
5800
|
clearFocusValueOnUpdate: !1
|
|
5801
5801
|
};
|
|
5802
5802
|
}
|
|
5803
|
-
var
|
|
5803
|
+
var k = u != null && r !== l ? {
|
|
5804
5804
|
inputIsHidden: u,
|
|
5805
5805
|
inputIsHiddenAfterUpdate: void 0
|
|
5806
|
-
} : {}, L = d,
|
|
5807
|
-
return m && !
|
|
5806
|
+
} : {}, L = d, N = m && g;
|
|
5807
|
+
return m && !N && (L = {
|
|
5808
5808
|
value: st(f, b, b[0] || null),
|
|
5809
5809
|
options: b,
|
|
5810
5810
|
action: "initial-input-focus"
|
|
5811
|
-
},
|
|
5811
|
+
}, N = !g), (d == null ? void 0 : d.action) === "initial-input-focus" && (L = null), T(T(T({}, C), k), {}, {
|
|
5812
5812
|
prevProps: r,
|
|
5813
5813
|
ariaSelection: L,
|
|
5814
|
-
prevWasFocused:
|
|
5814
|
+
prevWasFocused: N
|
|
5815
5815
|
});
|
|
5816
5816
|
}
|
|
5817
5817
|
}]), o;
|
|
@@ -5819,24 +5819,24 @@ var Ga = function(t) {
|
|
|
5819
5819
|
Da.defaultProps = lc;
|
|
5820
5820
|
var pc = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
5821
5821
|
function gc(e) {
|
|
5822
|
-
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, g = e.onMenuClose, w = e.onMenuOpen, x = e.value, v = Ze(e, pc), h =
|
|
5823
|
-
typeof d == "function" && d(
|
|
5824
|
-
}, [d]), D = ae(function(
|
|
5825
|
-
var
|
|
5826
|
-
typeof m == "function" && (
|
|
5827
|
-
}, [m]),
|
|
5828
|
-
typeof w == "function" && w(),
|
|
5829
|
-
}, [w]),
|
|
5830
|
-
typeof g == "function" && g(),
|
|
5831
|
-
}, [g]), z = s !== void 0 ? s : b,
|
|
5822
|
+
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, g = e.onMenuClose, w = e.onMenuOpen, x = e.value, v = Ze(e, pc), h = re(s !== void 0 ? s : o), f = Be(h, 2), b = f[0], C = f[1], y = re(u !== void 0 ? u : r), A = Be(y, 2), E = A[0], k = A[1], L = re(x !== void 0 ? x : l), N = Be(L, 2), V = N[0], P = N[1], X = ae(function(R, H) {
|
|
5823
|
+
typeof d == "function" && d(R, H), P(R);
|
|
5824
|
+
}, [d]), D = ae(function(R, H) {
|
|
5825
|
+
var q;
|
|
5826
|
+
typeof m == "function" && (q = m(R, H)), C(q !== void 0 ? q : R);
|
|
5827
|
+
}, [m]), Q = ae(function() {
|
|
5828
|
+
typeof w == "function" && w(), k(!0);
|
|
5829
|
+
}, [w]), O = ae(function() {
|
|
5830
|
+
typeof g == "function" && g(), k(!1);
|
|
5831
|
+
}, [g]), z = s !== void 0 ? s : b, $ = u !== void 0 ? u : E, B = x !== void 0 ? x : V;
|
|
5832
5832
|
return T(T({}, v), {}, {
|
|
5833
5833
|
inputValue: z,
|
|
5834
|
-
menuIsOpen:
|
|
5835
|
-
onChange:
|
|
5834
|
+
menuIsOpen: $,
|
|
5835
|
+
onChange: X,
|
|
5836
5836
|
onInputChange: D,
|
|
5837
|
-
onMenuClose:
|
|
5838
|
-
onMenuOpen:
|
|
5839
|
-
value:
|
|
5837
|
+
onMenuClose: O,
|
|
5838
|
+
onMenuOpen: Q,
|
|
5839
|
+
value: B
|
|
5840
5840
|
});
|
|
5841
5841
|
}
|
|
5842
5842
|
var hc = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"], oo = function() {
|
|
@@ -5862,40 +5862,40 @@ var hc = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
5862
5862
|
}
|
|
5863
5863
|
};
|
|
5864
5864
|
function fc(e) {
|
|
5865
|
-
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 ? an.formatCreateLabel : i, s = e.isValidNewOption, u = s === void 0 ? an.isValidNewOption : s, d = e.getNewOptionData, m = d === void 0 ? an.getNewOptionData : d, g = e.onCreateOption, w = e.options, x = w === void 0 ? [] : w, v = e.onChange, h = Ze(e, hc), f = h.getOptionValue, b = f === void 0 ? Ma : f,
|
|
5866
|
-
return u(
|
|
5865
|
+
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 ? an.formatCreateLabel : i, s = e.isValidNewOption, u = s === void 0 ? an.isValidNewOption : s, d = e.getNewOptionData, m = d === void 0 ? an.getNewOptionData : d, g = e.onCreateOption, w = e.options, x = w === void 0 ? [] : w, v = e.onChange, h = Ze(e, hc), f = h.getOptionValue, b = f === void 0 ? Ma : f, C = h.getOptionLabel, y = C === void 0 ? La : C, A = h.inputValue, E = h.isLoading, k = h.isMulti, L = h.value, N = h.name, V = Ne(function() {
|
|
5866
|
+
return u(A, Ot(L), x, {
|
|
5867
5867
|
getOptionValue: b,
|
|
5868
5868
|
getOptionLabel: y
|
|
5869
|
-
}) ? m(
|
|
5870
|
-
}, [l, m, y, b,
|
|
5869
|
+
}) ? m(A, l(A)) : void 0;
|
|
5870
|
+
}, [l, m, y, b, A, u, x, L]), P = Ne(function() {
|
|
5871
5871
|
return (o || !E) && V ? r === "first" ? [V].concat(lt(x)) : [].concat(lt(x), [V]) : x;
|
|
5872
|
-
}, [o, r, E, V, x]),
|
|
5873
|
-
if (
|
|
5874
|
-
return v(D,
|
|
5875
|
-
var
|
|
5876
|
-
if (
|
|
5872
|
+
}, [o, r, E, V, x]), X = ae(function(D, Q) {
|
|
5873
|
+
if (Q.action !== "select-option")
|
|
5874
|
+
return v(D, Q);
|
|
5875
|
+
var O = Array.isArray(D) ? D : [D];
|
|
5876
|
+
if (O[O.length - 1] === V) {
|
|
5877
5877
|
if (g)
|
|
5878
|
-
g(
|
|
5878
|
+
g(A);
|
|
5879
5879
|
else {
|
|
5880
|
-
var z = m(
|
|
5880
|
+
var z = m(A, A), $ = {
|
|
5881
5881
|
action: "create-option",
|
|
5882
|
-
name:
|
|
5882
|
+
name: N,
|
|
5883
5883
|
option: z
|
|
5884
5884
|
};
|
|
5885
|
-
v(st(
|
|
5885
|
+
v(st(k, [].concat(lt(Ot(L)), [z]), z), $);
|
|
5886
5886
|
}
|
|
5887
5887
|
return;
|
|
5888
5888
|
}
|
|
5889
|
-
v(D,
|
|
5890
|
-
}, [m,
|
|
5889
|
+
v(D, Q);
|
|
5890
|
+
}, [m, A, k, N, V, g, v, L]);
|
|
5891
5891
|
return T(T({}, h), {}, {
|
|
5892
5892
|
options: P,
|
|
5893
|
-
onChange:
|
|
5893
|
+
onChange: X
|
|
5894
5894
|
});
|
|
5895
5895
|
}
|
|
5896
5896
|
var vc = /* @__PURE__ */ An(function(e, t) {
|
|
5897
5897
|
var o = gc(e), a = fc(o);
|
|
5898
|
-
return /* @__PURE__ */
|
|
5898
|
+
return /* @__PURE__ */ j.createElement(Da, S({
|
|
5899
5899
|
ref: t
|
|
5900
5900
|
}, a));
|
|
5901
5901
|
});
|
|
@@ -6191,12 +6191,12 @@ const ao = {
|
|
|
6191
6191
|
...u
|
|
6192
6192
|
}) => {
|
|
6193
6193
|
var f;
|
|
6194
|
-
const [d, m] =
|
|
6195
|
-
const { name:
|
|
6196
|
-
m({ ...d, [
|
|
6194
|
+
const [d, m] = re({ email: "", password: "", shouldRemember: !1, ...e }), g = (b) => {
|
|
6195
|
+
const { name: C, value: y } = b.target;
|
|
6196
|
+
m({ ...d, [C]: y });
|
|
6197
6197
|
}, w = (b) => {
|
|
6198
|
-
const { name:
|
|
6199
|
-
m({ ...d, [
|
|
6198
|
+
const { name: C, checked: y } = b.target;
|
|
6199
|
+
m({ ...d, [C]: y });
|
|
6200
6200
|
}, x = (b) => {
|
|
6201
6201
|
b.preventDefault(), a(d);
|
|
6202
6202
|
}, h = {
|
|
@@ -6291,14 +6291,14 @@ kc.propTypes = {
|
|
|
6291
6291
|
passwordResetUrl: c.string
|
|
6292
6292
|
};
|
|
6293
6293
|
const Cn = ({ selectedDate: e, date: t, getContent: o, currentMonth: a, disabled: r = !1 }) => {
|
|
6294
|
-
const i =
|
|
6294
|
+
const i = G(a).isSame(t, "month");
|
|
6295
6295
|
if (o && i)
|
|
6296
6296
|
return /* @__PURE__ */ n.createElement(Wa, {
|
|
6297
6297
|
selectedDate: e,
|
|
6298
6298
|
date: t,
|
|
6299
6299
|
getContent: o
|
|
6300
6300
|
});
|
|
6301
|
-
const l = e &&
|
|
6301
|
+
const l = e && G(e).isSame(t, "day");
|
|
6302
6302
|
return /* @__PURE__ */ n.createElement("div", {
|
|
6303
6303
|
className: I(
|
|
6304
6304
|
"ui-date-picker-day",
|
|
@@ -6315,7 +6315,7 @@ Cn.propTypes = {
|
|
|
6315
6315
|
currentMonth: c.objectOf(Date)
|
|
6316
6316
|
};
|
|
6317
6317
|
const Wa = ({ selectedDate: e, date: t, getContent: o }) => {
|
|
6318
|
-
const a = t.getDate(), r = o(a, t), i = e &&
|
|
6318
|
+
const a = t.getDate(), r = o(a, t), i = e && G(e).isSame(t, "day");
|
|
6319
6319
|
return /* @__PURE__ */ n.createElement("div", {
|
|
6320
6320
|
className: "ui-day-content align-center flex flex-col justify-center"
|
|
6321
6321
|
}, /* @__PURE__ */ n.createElement("div", {
|
|
@@ -6329,7 +6329,7 @@ Wa.propTypes = {
|
|
|
6329
6329
|
date: c.objectOf(Date),
|
|
6330
6330
|
getContent: c.func.isRequired
|
|
6331
6331
|
};
|
|
6332
|
-
const ln =
|
|
6332
|
+
const ln = G(), ja = ({ date: e, onChange: t, currentMonth: o }) => {
|
|
6333
6333
|
const a = [...Array.from({ length: 12 }).keys()].map((s) => ln.month(s).format("MMM")), r = [...Array.from({ length: ln.year() - 2012 + 5 + 1 }).keys()].map(
|
|
6334
6334
|
(s) => ln.year(2012 + s).format("YYYY")
|
|
6335
6335
|
), i = (s) => {
|
|
@@ -6509,72 +6509,72 @@ const K = {
|
|
|
6509
6509
|
}
|
|
6510
6510
|
}, Lc = {
|
|
6511
6511
|
[K.YESTERDAY]: () => {
|
|
6512
|
-
const e =
|
|
6512
|
+
const e = G().subtract(1, "day");
|
|
6513
6513
|
return {
|
|
6514
6514
|
from: e.startOf("day").toDate(),
|
|
6515
6515
|
to: e.endOf("day").toDate()
|
|
6516
6516
|
};
|
|
6517
6517
|
},
|
|
6518
6518
|
[K.TODAY]: () => ({
|
|
6519
|
-
from:
|
|
6520
|
-
to:
|
|
6519
|
+
from: G().startOf("day").toDate(),
|
|
6520
|
+
to: G().endOf("day").toDate()
|
|
6521
6521
|
}),
|
|
6522
6522
|
[K.LAST_WEEK]: () => {
|
|
6523
|
-
const e =
|
|
6523
|
+
const e = G().subtract(7, "day");
|
|
6524
6524
|
return {
|
|
6525
6525
|
from: e.startOf("week").toDate(),
|
|
6526
6526
|
to: e.endOf("week").toDate()
|
|
6527
6527
|
};
|
|
6528
6528
|
},
|
|
6529
6529
|
[K.TRAILING_WEEK]: () => ({
|
|
6530
|
-
from:
|
|
6531
|
-
to:
|
|
6530
|
+
from: G().subtract(7, "day").startOf("dat").toDate(),
|
|
6531
|
+
to: G().subtract(1, "day").endOf("day").toDate()
|
|
6532
6532
|
}),
|
|
6533
6533
|
[K.THIS_WEEK]: () => ({
|
|
6534
|
-
from:
|
|
6535
|
-
to:
|
|
6534
|
+
from: G().startOf("week").toDate(),
|
|
6535
|
+
to: G().endOf("week").toDate()
|
|
6536
6536
|
}),
|
|
6537
6537
|
[K.LAST_MONTH]: () => {
|
|
6538
|
-
const e =
|
|
6538
|
+
const e = G().subtract(1, "month");
|
|
6539
6539
|
return {
|
|
6540
6540
|
from: e.startOf("month").toDate(),
|
|
6541
6541
|
to: e.endOf("month").toDate()
|
|
6542
6542
|
};
|
|
6543
6543
|
},
|
|
6544
6544
|
[K.TRAILING_MONTH]: () => ({
|
|
6545
|
-
from:
|
|
6546
|
-
to:
|
|
6545
|
+
from: G().subtract(1, "month").startOf("day").toDate(),
|
|
6546
|
+
to: G().subtract(1, "day").endOf("day").toDate()
|
|
6547
6547
|
}),
|
|
6548
6548
|
[K.THIS_MONTH]: () => ({
|
|
6549
|
-
from:
|
|
6550
|
-
to:
|
|
6549
|
+
from: G().startOf("month").toDate(),
|
|
6550
|
+
to: G().endOf("month").toDate()
|
|
6551
6551
|
}),
|
|
6552
6552
|
[K.LAST_QUARTER]: () => ({
|
|
6553
|
-
from:
|
|
6554
|
-
to:
|
|
6553
|
+
from: G().startOf("month").subtract(3, "month").toDate(),
|
|
6554
|
+
to: G().startOf("month").subtract(1, "day").toDate()
|
|
6555
6555
|
}),
|
|
6556
6556
|
[K.TRAILING_QUARTER]: () => ({
|
|
6557
|
-
from:
|
|
6558
|
-
to:
|
|
6557
|
+
from: G().subtract(3, "month").startOf("day").toDate(),
|
|
6558
|
+
to: G().subtract(1, "day").endOf("day").toDate()
|
|
6559
6559
|
}),
|
|
6560
6560
|
[K.THIS_QUARTER]: () => ({
|
|
6561
|
-
from:
|
|
6562
|
-
to:
|
|
6561
|
+
from: G().startOf("Q").toDate(),
|
|
6562
|
+
to: G().endOf("Q").toDate()
|
|
6563
6563
|
}),
|
|
6564
6564
|
[K.LAST_YEAR]: () => {
|
|
6565
|
-
const e =
|
|
6565
|
+
const e = G().subtract(1, "year");
|
|
6566
6566
|
return {
|
|
6567
6567
|
from: e.startOf("year").toDate(),
|
|
6568
6568
|
to: e.endOf("year").toDate()
|
|
6569
6569
|
};
|
|
6570
6570
|
},
|
|
6571
6571
|
[K.TRAILING_YEAR]: () => ({
|
|
6572
|
-
from:
|
|
6573
|
-
to:
|
|
6572
|
+
from: G().subtract(1, "year").startOf("day").toDate(),
|
|
6573
|
+
to: G().subtract(1, "day").endOf("day").toDate()
|
|
6574
6574
|
}),
|
|
6575
6575
|
[K.THIS_YEAR]: () => ({
|
|
6576
|
-
from:
|
|
6577
|
-
to:
|
|
6576
|
+
from: G().startOf("year").toDate(),
|
|
6577
|
+
to: G().endOf("year").toDate()
|
|
6578
6578
|
})
|
|
6579
6579
|
}, Xa = ({
|
|
6580
6580
|
ranges: e = ["day", "week", "month", "quarter", "year"],
|
|
@@ -6634,57 +6634,58 @@ const Nt = {
|
|
|
6634
6634
|
components: g = {},
|
|
6635
6635
|
getTooltip: w,
|
|
6636
6636
|
upcomingDates: x,
|
|
6637
|
-
|
|
6637
|
+
timezoneName: v = null,
|
|
6638
|
+
...h
|
|
6638
6639
|
}) => {
|
|
6639
|
-
var
|
|
6640
|
-
const
|
|
6640
|
+
var z, $;
|
|
6641
|
+
const f = e === Nt.single ? t : t.from, [b, C] = re(f), [y, A] = re(""), E = e === Nt.range;
|
|
6641
6642
|
_e(() => {
|
|
6642
|
-
l == null || l(
|
|
6643
|
-
}, [
|
|
6644
|
-
const
|
|
6645
|
-
if (!
|
|
6646
|
-
if (
|
|
6643
|
+
l == null || l(b);
|
|
6644
|
+
}, [b, l]);
|
|
6645
|
+
const k = (B, R, H) => {
|
|
6646
|
+
if (!R.disabled)
|
|
6647
|
+
if (A(""), E)
|
|
6647
6648
|
if (t.from && t.to)
|
|
6648
|
-
i({ from: B, to: null },
|
|
6649
|
+
i({ from: B, to: null }, R, H);
|
|
6649
6650
|
else if ((t.from || t.to).getTime() === B.getTime()) {
|
|
6650
|
-
const
|
|
6651
|
-
i({ from:
|
|
6651
|
+
const q = G(B).startOf("day").toDate(), te = G(B).endOf("day").toDate();
|
|
6652
|
+
i({ from: q, to: te }, R, H);
|
|
6652
6653
|
} else
|
|
6653
|
-
i(l1.addDayToRange(B, t),
|
|
6654
|
+
i(l1.addDayToRange(B, t), R, H);
|
|
6654
6655
|
else
|
|
6655
|
-
i(B,
|
|
6656
|
-
},
|
|
6657
|
-
if (
|
|
6656
|
+
i(B, R, H);
|
|
6657
|
+
}, L = (B, R, H) => {
|
|
6658
|
+
if (E)
|
|
6658
6659
|
return;
|
|
6659
|
-
const
|
|
6660
|
-
|
|
6661
|
-
},
|
|
6662
|
-
|
|
6663
|
-
},
|
|
6664
|
-
|
|
6665
|
-
},
|
|
6660
|
+
const q = v ? G().tz(v).toDate() : new Date();
|
|
6661
|
+
R.disabled || X(q) ? (C(q), l == null || l(q)) : i(B, R, H);
|
|
6662
|
+
}, N = (B, R) => {
|
|
6663
|
+
C(R.from), i(R, u, null);
|
|
6664
|
+
}, V = (B) => {
|
|
6665
|
+
C(B), l == null || l(B);
|
|
6666
|
+
}, P = r ? ({ date: B }) => /* @__PURE__ */ n.createElement(ja, {
|
|
6666
6667
|
date: B,
|
|
6667
|
-
currentMonth:
|
|
6668
|
-
onChange:
|
|
6669
|
-
}) : void 0,
|
|
6670
|
-
const
|
|
6671
|
-
return
|
|
6668
|
+
currentMonth: b,
|
|
6669
|
+
onChange: V
|
|
6670
|
+
}) : void 0, X = (B) => n1(a) ? a.some((R) => G(R).isSame(B, "day")) : (r1(a), a(B)), D = (B) => {
|
|
6671
|
+
const R = w == null ? void 0 : w(B), H = X(B);
|
|
6672
|
+
return R ? /* @__PURE__ */ n.createElement(Gn, {
|
|
6672
6673
|
placement: "top",
|
|
6673
|
-
content:
|
|
6674
|
+
content: R
|
|
6674
6675
|
}, /* @__PURE__ */ n.createElement(Cn, {
|
|
6675
|
-
disabled:
|
|
6676
|
+
disabled: H,
|
|
6676
6677
|
selectedDate: t,
|
|
6677
6678
|
date: B,
|
|
6678
6679
|
getContent: o,
|
|
6679
|
-
currentMonth:
|
|
6680
|
+
currentMonth: b
|
|
6680
6681
|
})) : /* @__PURE__ */ n.createElement(Cn, {
|
|
6681
|
-
disabled:
|
|
6682
|
+
disabled: H,
|
|
6682
6683
|
selectedDate: t,
|
|
6683
6684
|
date: B,
|
|
6684
6685
|
getContent: o,
|
|
6685
|
-
currentMonth:
|
|
6686
|
+
currentMonth: b
|
|
6686
6687
|
});
|
|
6687
|
-
},
|
|
6688
|
+
}, Q = E ? { start: t.from, end: t.to } : null, O = E && ((z = t.from) == null ? void 0 : z.getTime()) !== (($ = t.to) == null ? void 0 : $.getTime());
|
|
6688
6689
|
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("div", {
|
|
6689
6690
|
className: "flex"
|
|
6690
6691
|
}, x ? /* @__PURE__ */ n.createElement("div", {
|
|
@@ -6694,48 +6695,48 @@ const Nt = {
|
|
|
6694
6695
|
}, "Upcoming"), (x == null ? void 0 : x.length) > 0 ? /* @__PURE__ */ n.createElement("div", {
|
|
6695
6696
|
className: "mt-5"
|
|
6696
6697
|
}, x == null ? void 0 : x.map((B) => {
|
|
6697
|
-
const
|
|
6698
|
+
const R = G(B).isSame(G(t), "day"), H = G(B).format();
|
|
6698
6699
|
return /* @__PURE__ */ n.createElement("div", {
|
|
6699
|
-
key:
|
|
6700
|
+
key: H,
|
|
6700
6701
|
value: !0,
|
|
6701
6702
|
className: I(
|
|
6702
6703
|
"mx-6 mt-3 flex min-w-40 cursor-pointer items-center justify-center",
|
|
6703
6704
|
"rounded border border-gray py-3 hover:border-blue hover:bg-blue hover:text-white",
|
|
6704
|
-
{ "border-blue bg-blue text-white":
|
|
6705
|
+
{ "border-blue bg-blue text-white": R }
|
|
6705
6706
|
),
|
|
6706
|
-
onClick: (
|
|
6707
|
-
|
|
6707
|
+
onClick: (q) => {
|
|
6708
|
+
k(B, {}, q), V(B);
|
|
6708
6709
|
}
|
|
6709
|
-
},
|
|
6710
|
+
}, G(B).format("ddd DD MMMM"));
|
|
6710
6711
|
})) : /* @__PURE__ */ n.createElement("div", {
|
|
6711
6712
|
className: "mx-6 mt-7 max-w-40 items-center justify-center rounded bg-yellow-lighter p-3"
|
|
6712
6713
|
}, "There is no future availability for this product.")) : null, /* @__PURE__ */ n.createElement(s1, {
|
|
6713
6714
|
showOutsideDays: !0,
|
|
6714
6715
|
className: I(
|
|
6715
6716
|
"ui-date-picker rounded-lg pt-3",
|
|
6716
|
-
|
|
6717
|
+
O ? "date-range-picker" : null,
|
|
6717
6718
|
o ? "has-custom-content" : null,
|
|
6718
6719
|
u.waitlist ? "has-custom-content" : null
|
|
6719
6720
|
),
|
|
6720
6721
|
todayButton: e === "single" ? "Today" : void 0,
|
|
6721
6722
|
selectedDays: t,
|
|
6722
|
-
month:
|
|
6723
|
-
modifiers: { ...u, ...
|
|
6724
|
-
numberOfMonths:
|
|
6723
|
+
month: b,
|
|
6724
|
+
modifiers: { ...u, ...Q },
|
|
6725
|
+
numberOfMonths: E ? 2 : 1,
|
|
6725
6726
|
disabledDays: a,
|
|
6726
|
-
captionElement:
|
|
6727
|
-
renderDay:
|
|
6727
|
+
captionElement: P,
|
|
6728
|
+
renderDay: D,
|
|
6728
6729
|
navbarElement: Za,
|
|
6729
|
-
onDayClick:
|
|
6730
|
-
onMonthChange:
|
|
6731
|
-
onTodayButtonClick:
|
|
6732
|
-
...
|
|
6733
|
-
})), g.Footer ? /* @__PURE__ */ n.createElement(g.Footer, null) : null,
|
|
6730
|
+
onDayClick: k,
|
|
6731
|
+
onMonthChange: V,
|
|
6732
|
+
onTodayButtonClick: L,
|
|
6733
|
+
...h
|
|
6734
|
+
})), g.Footer ? /* @__PURE__ */ n.createElement(g.Footer, null) : null, O && m && /* @__PURE__ */ n.createElement("div", {
|
|
6734
6735
|
className: "ml-auto w-6/12 pl-5 pr-10 pb-5"
|
|
6735
6736
|
}, /* @__PURE__ */ n.createElement(Xa, {
|
|
6736
|
-
value:
|
|
6737
|
+
value: y,
|
|
6737
6738
|
ranges: d,
|
|
6738
|
-
onChange:
|
|
6739
|
+
onChange: N,
|
|
6739
6740
|
onSubmit: s
|
|
6740
6741
|
})));
|
|
6741
6742
|
};
|
|
@@ -6752,7 +6753,8 @@ lr.propTypes = {
|
|
|
6752
6753
|
ranges: c.arrayOf(c.oneOf(["day", "week", "month", "quarter", "year"])),
|
|
6753
6754
|
shouldShowRelativeRanges: c.bool,
|
|
6754
6755
|
components: c.shape({ Footer: c.oneOfType([c.node, c.func]) }),
|
|
6755
|
-
getTooltip: c.func
|
|
6756
|
+
getTooltip: c.func,
|
|
6757
|
+
timezoneName: c.string
|
|
6756
6758
|
};
|
|
6757
6759
|
var Ya = { exports: {} };
|
|
6758
6760
|
(function(e, t) {
|
|
@@ -6767,8 +6769,8 @@ var Ya = { exports: {} };
|
|
|
6767
6769
|
var d = this.$locale().formats, m = function(g, w) {
|
|
6768
6770
|
return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, v, h) {
|
|
6769
6771
|
var f = h && h.toUpperCase();
|
|
6770
|
-
return v || w[h] || o[h] || w[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(b,
|
|
6771
|
-
return
|
|
6772
|
+
return v || w[h] || o[h] || w[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(b, C, y) {
|
|
6773
|
+
return C || y.slice(1);
|
|
6772
6774
|
});
|
|
6773
6775
|
});
|
|
6774
6776
|
}(u, d === void 0 ? {} : d);
|
|
@@ -6793,17 +6795,17 @@ var Ja = { exports: {} };
|
|
|
6793
6795
|
(this.zone || (this.zone = {})).offset = function(f) {
|
|
6794
6796
|
if (!f || f === "Z")
|
|
6795
6797
|
return 0;
|
|
6796
|
-
var b = f.match(/([+-]|\d\d)/g),
|
|
6797
|
-
return
|
|
6798
|
+
var b = f.match(/([+-]|\d\d)/g), C = 60 * b[1] + (+b[2] || 0);
|
|
6799
|
+
return C === 0 ? 0 : b[0] === "+" ? -C : C;
|
|
6798
6800
|
}(h);
|
|
6799
6801
|
}], g = function(h) {
|
|
6800
6802
|
var f = s[h];
|
|
6801
6803
|
return f && (f.indexOf ? f : f.s.concat(f.f));
|
|
6802
6804
|
}, w = function(h, f) {
|
|
6803
|
-
var b,
|
|
6804
|
-
if (
|
|
6805
|
+
var b, C = s.meridiem;
|
|
6806
|
+
if (C) {
|
|
6805
6807
|
for (var y = 1; y <= 24; y += 1)
|
|
6806
|
-
if (h.indexOf(
|
|
6808
|
+
if (h.indexOf(C(y, 0, f)) > -1) {
|
|
6807
6809
|
b = y > 12;
|
|
6808
6810
|
break;
|
|
6809
6811
|
}
|
|
@@ -6823,11 +6825,11 @@ var Ja = { exports: {} };
|
|
|
6823
6825
|
}], 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(h) {
|
|
6824
6826
|
var f = s.ordinal, b = h.match(/\d+/);
|
|
6825
6827
|
if (this.day = b[0], f)
|
|
6826
|
-
for (var
|
|
6827
|
-
f(
|
|
6828
|
+
for (var C = 1; C <= 31; C += 1)
|
|
6829
|
+
f(C).replace(/\[|\]/g, "") === h && (this.day = C);
|
|
6828
6830
|
}], M: [i, d("month")], MM: [r, d("month")], MMM: [l, function(h) {
|
|
6829
|
-
var f = g("months"), b = (g("monthsShort") || f.map(function(
|
|
6830
|
-
return
|
|
6831
|
+
var f = g("months"), b = (g("monthsShort") || f.map(function(C) {
|
|
6832
|
+
return C.substr(0, 3);
|
|
6831
6833
|
})).indexOf(h) + 1;
|
|
6832
6834
|
if (b < 1)
|
|
6833
6835
|
throw new Error();
|
|
@@ -6843,67 +6845,67 @@ var Ja = { exports: {} };
|
|
|
6843
6845
|
function v(h) {
|
|
6844
6846
|
var f, b;
|
|
6845
6847
|
f = h, b = s && s.formats;
|
|
6846
|
-
for (var
|
|
6847
|
-
var D =
|
|
6848
|
-
return P || b[
|
|
6849
|
-
return
|
|
6848
|
+
for (var C = (h = f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(V, P, X) {
|
|
6849
|
+
var D = X && X.toUpperCase();
|
|
6850
|
+
return P || b[X] || o[X] || b[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(Q, O, z) {
|
|
6851
|
+
return O || z.slice(1);
|
|
6850
6852
|
});
|
|
6851
|
-
})).match(a), y =
|
|
6852
|
-
var E =
|
|
6853
|
-
|
|
6853
|
+
})).match(a), y = C.length, A = 0; A < y; A += 1) {
|
|
6854
|
+
var E = C[A], k = x[E], L = k && k[0], N = k && k[1];
|
|
6855
|
+
C[A] = N ? { regex: L, parser: N } : E.replace(/^\[|\]$/g, "");
|
|
6854
6856
|
}
|
|
6855
6857
|
return function(V) {
|
|
6856
|
-
for (var P = {},
|
|
6857
|
-
var
|
|
6858
|
-
if (typeof
|
|
6859
|
-
D +=
|
|
6858
|
+
for (var P = {}, X = 0, D = 0; X < y; X += 1) {
|
|
6859
|
+
var Q = C[X];
|
|
6860
|
+
if (typeof Q == "string")
|
|
6861
|
+
D += Q.length;
|
|
6860
6862
|
else {
|
|
6861
|
-
var
|
|
6862
|
-
z.call(P,
|
|
6863
|
+
var O = Q.regex, z = Q.parser, $ = V.substr(D), B = O.exec($)[0];
|
|
6864
|
+
z.call(P, B), V = V.replace(B, "");
|
|
6863
6865
|
}
|
|
6864
6866
|
}
|
|
6865
|
-
return function(
|
|
6866
|
-
var
|
|
6867
|
-
if (
|
|
6868
|
-
var
|
|
6869
|
-
|
|
6867
|
+
return function(R) {
|
|
6868
|
+
var H = R.afternoon;
|
|
6869
|
+
if (H !== void 0) {
|
|
6870
|
+
var q = R.hours;
|
|
6871
|
+
H ? q < 12 && (R.hours += 12) : q === 12 && (R.hours = 0), delete R.afternoon;
|
|
6870
6872
|
}
|
|
6871
6873
|
}(P), P;
|
|
6872
6874
|
};
|
|
6873
6875
|
}
|
|
6874
6876
|
return function(h, f, b) {
|
|
6875
6877
|
b.p.customParseFormat = !0, h && h.parseTwoDigitYear && (u = h.parseTwoDigitYear);
|
|
6876
|
-
var
|
|
6877
|
-
|
|
6878
|
-
var E =
|
|
6879
|
-
this.$u =
|
|
6880
|
-
var
|
|
6881
|
-
if (typeof
|
|
6882
|
-
var V = L[2] === !0, P = L[3] === !0,
|
|
6883
|
-
P && (D = L[2]), s = this.$locale(), !V && D && (s = b.Ls[D]), this.$d = function(B,
|
|
6878
|
+
var C = f.prototype, y = C.parse;
|
|
6879
|
+
C.parse = function(A) {
|
|
6880
|
+
var E = A.date, k = A.utc, L = A.args;
|
|
6881
|
+
this.$u = k;
|
|
6882
|
+
var N = L[1];
|
|
6883
|
+
if (typeof N == "string") {
|
|
6884
|
+
var V = L[2] === !0, P = L[3] === !0, X = V || P, D = L[2];
|
|
6885
|
+
P && (D = L[2]), s = this.$locale(), !V && D && (s = b.Ls[D]), this.$d = function($, B, R) {
|
|
6884
6886
|
try {
|
|
6885
|
-
if (["x", "X"].indexOf(
|
|
6886
|
-
return new Date((
|
|
6887
|
-
var
|
|
6888
|
-
|
|
6889
|
-
var
|
|
6890
|
-
return ce ? new Date(Date.UTC(Re, Le, Ee,
|
|
6887
|
+
if (["x", "X"].indexOf(B) > -1)
|
|
6888
|
+
return new Date((B === "X" ? 1e3 : 1) * $);
|
|
6889
|
+
var H = v(B)($), q = H.year, te = H.month, W = H.day, _ = H.hours, ge = H.minutes, he = H.seconds, ue = H.milliseconds, ce = H.zone, ve = new Date(), Ee = W || (q || te ? 1 : ve.getDate()), Re = q || ve.getFullYear(), Le = 0;
|
|
6890
|
+
q && !te || (Le = te > 0 ? te - 1 : ve.getMonth());
|
|
6891
|
+
var M = _ || 0, Me = ge || 0, be = he || 0, Fe = ue || 0;
|
|
6892
|
+
return ce ? new Date(Date.UTC(Re, Le, Ee, M, Me, be, Fe + 60 * ce.offset * 1e3)) : R ? new Date(Date.UTC(Re, Le, Ee, M, Me, be, Fe)) : new Date(Re, Le, Ee, M, Me, be, Fe);
|
|
6891
6893
|
} catch {
|
|
6892
6894
|
return new Date("");
|
|
6893
6895
|
}
|
|
6894
|
-
}(E,
|
|
6895
|
-
} else if (
|
|
6896
|
-
for (var
|
|
6897
|
-
L[1] =
|
|
6896
|
+
}(E, N, k), this.init(), D && D !== !0 && (this.$L = this.locale(D).$L), X && E != this.format(N) && (this.$d = new Date("")), s = {};
|
|
6897
|
+
} else if (N instanceof Array)
|
|
6898
|
+
for (var Q = N.length, O = 1; O <= Q; O += 1) {
|
|
6899
|
+
L[1] = N[O - 1];
|
|
6898
6900
|
var z = b.apply(this, L);
|
|
6899
6901
|
if (z.isValid()) {
|
|
6900
6902
|
this.$d = z.$d, this.$L = z.$L, this.init();
|
|
6901
6903
|
break;
|
|
6902
6904
|
}
|
|
6903
|
-
|
|
6905
|
+
O === Q && (this.$d = new Date(""));
|
|
6904
6906
|
}
|
|
6905
6907
|
else
|
|
6906
|
-
y.call(this,
|
|
6908
|
+
y.call(this, A);
|
|
6907
6909
|
};
|
|
6908
6910
|
};
|
|
6909
6911
|
});
|
|
@@ -6937,13 +6939,13 @@ var Ua = { exports: {} };
|
|
|
6937
6939
|
});
|
|
6938
6940
|
})(Ua);
|
|
6939
6941
|
const Bc = Ua.exports;
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
const Fc = (e, t = "YYYY-MM-DD") =>
|
|
6942
|
+
G.extend(Nc);
|
|
6943
|
+
G.extend(Mc);
|
|
6944
|
+
G.extend(Bc);
|
|
6945
|
+
const Fc = (e, t = "YYYY-MM-DD") => G(e).format(t), M4 = (e, t = "h:mm a") => {
|
|
6944
6946
|
const o = String(e).padStart(4, 0);
|
|
6945
|
-
return
|
|
6946
|
-
}, N4 = (e) =>
|
|
6947
|
+
return G(o, "hhmm").format(t);
|
|
6948
|
+
}, N4 = (e) => G(new Date(Number.parseInt(e.slice(0, 8), 16) * 1e3)), Sc = ({
|
|
6947
6949
|
value: e,
|
|
6948
6950
|
variant: t = "single",
|
|
6949
6951
|
dateFormat: o = "ddd, LL",
|
|
@@ -6955,10 +6957,10 @@ const Fc = (e, t = "YYYY-MM-DD") => R(e).format(t), M4 = (e, t = "h:mm a") => {
|
|
|
6955
6957
|
getDayContent: u,
|
|
6956
6958
|
...d
|
|
6957
6959
|
}) => {
|
|
6958
|
-
const [m, g] =
|
|
6960
|
+
const [m, g] = re(e), [w, x] = re(!1), v = () => {
|
|
6959
6961
|
x(!w);
|
|
6960
|
-
}, h = (
|
|
6961
|
-
t === "single" ? (a == null || a(
|
|
6962
|
+
}, h = (C, y, A) => {
|
|
6963
|
+
t === "single" ? (a == null || a(C, y, A), v()) : a == null || a(C, m, y, A);
|
|
6962
6964
|
}, f = () => {
|
|
6963
6965
|
g(e), a == null || a(e), x(!1);
|
|
6964
6966
|
}, b = () => {
|
|
@@ -7071,7 +7073,7 @@ const Tc = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
7071
7073
|
requirements: u = null,
|
|
7072
7074
|
...d
|
|
7073
7075
|
}) => {
|
|
7074
|
-
const m = de(), [g, w] =
|
|
7076
|
+
const m = de(), [g, w] = re(0), x = () => {
|
|
7075
7077
|
m.current.click();
|
|
7076
7078
|
}, v = (f) => {
|
|
7077
7079
|
const [b] = f.target.files;
|