@hiver/connector-admin 0.0.9 → 0.0.10-beta.10
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/app/connectors/index.d.ts +1 -1
- package/app/connectors/index.d.ts.map +1 -1
- package/app/connectors/pages/auth-success/index.d.ts +2 -0
- package/app/connectors/pages/auth-success/index.d.ts.map +1 -0
- package/app/connectors/pages/auth-success/styles.d.ts +4 -0
- package/app/connectors/pages/auth-success/styles.d.ts.map +1 -0
- package/app/connectors/pages/connector-view/agent/index.d.ts.map +1 -1
- package/app/connectors/pages/connector-view/agent/styles.d.ts +4 -0
- package/app/connectors/pages/connector-view/agent/styles.d.ts.map +1 -0
- package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
- package/app/connectors/pages/settings/index.d.ts.map +1 -1
- package/app/connectors/pages/settings/styles.d.ts +1 -0
- package/app/connectors/pages/settings/styles.d.ts.map +1 -1
- package/app/connectors/pages/upgrade-page/index.d.ts +3 -0
- package/app/connectors/pages/upgrade-page/index.d.ts.map +1 -0
- package/app/connectors/pages/upgrade-page/style.d.ts +16 -0
- package/app/connectors/pages/upgrade-page/style.d.ts.map +1 -0
- package/app/connectors/router.d.ts +1 -1
- package/app/connectors/router.d.ts.map +1 -1
- package/components/layouts/sidebar/index.d.ts.map +1 -1
- package/components/layouts/sidebar/styles.d.ts.map +1 -1
- package/components/ui/form/index.d.ts +19 -0
- package/components/ui/form/index.d.ts.map +1 -0
- package/components/ui/form/styles.d.ts +4 -0
- package/components/ui/form/styles.d.ts.map +1 -0
- package/components/ui/form-fields/index.d.ts.map +1 -1
- package/components/ui/select/style.d.ts +2 -0
- package/components/ui/select/style.d.ts.map +1 -0
- package/constants/api.d.ts +1 -0
- package/constants/api.d.ts.map +1 -1
- package/constants/app-constants.d.ts +2 -0
- package/constants/app-constants.d.ts.map +1 -1
- package/constants/global-constants.d.ts +11 -0
- package/constants/global-constants.d.ts.map +1 -0
- package/constants/router-paths.d.ts +1 -0
- package/constants/router-paths.d.ts.map +1 -1
- package/context/index.d.ts +12 -0
- package/context/index.d.ts.map +1 -1
- package/context/main-app-provider/index.d.ts.map +1 -1
- package/features/agent/components/agent-landing/index.d.ts +3 -0
- package/features/agent/components/agent-landing/index.d.ts.map +1 -0
- package/features/agent/components/agent-landing/styles.d.ts +8 -0
- package/features/agent/components/agent-landing/styles.d.ts.map +1 -0
- package/features/agent/constants/index.d.ts +6 -0
- package/features/agent/constants/index.d.ts.map +1 -0
- package/features/auth/api/index.d.ts +8 -0
- package/features/auth/api/index.d.ts.map +1 -0
- package/features/auth/components/api-executor/index.d.ts +8 -0
- package/features/auth/components/api-executor/index.d.ts.map +1 -0
- package/features/auth/components/api-executor/styles.d.ts +12 -0
- package/features/auth/components/api-executor/styles.d.ts.map +1 -0
- package/features/auth/components/auth-form/index.d.ts +12 -0
- package/features/auth/components/auth-form/index.d.ts.map +1 -0
- package/features/auth/components/auth-form/reducer.d.ts +11 -0
- package/features/auth/components/auth-form/reducer.d.ts.map +1 -0
- package/features/auth/components/auth-form/styles.d.ts +8 -0
- package/features/auth/components/auth-form/styles.d.ts.map +1 -0
- package/features/auth/components/auth-header-skeleton/index.d.ts +2 -0
- package/features/auth/components/auth-header-skeleton/index.d.ts.map +1 -0
- package/features/auth/constants/api.d.ts +6 -0
- package/features/auth/constants/api.d.ts.map +1 -0
- package/features/auth/constants/form-config.d.ts +71 -0
- package/features/auth/constants/form-config.d.ts.map +1 -0
- package/features/auth/constants/index.d.ts +8 -1
- package/features/auth/constants/index.d.ts.map +1 -1
- package/features/auth/store/initial-state.d.ts +19 -0
- package/features/auth/store/initial-state.d.ts.map +1 -0
- package/features/auth/store/selectors.d.ts +12 -0
- package/features/auth/store/selectors.d.ts.map +1 -0
- package/features/auth/store/slice.d.ts +76 -0
- package/features/auth/store/slice.d.ts.map +1 -0
- package/features/auth/types/connector.d.ts +2 -0
- package/features/auth/types/connector.d.ts.map +1 -0
- package/features/auth/types/form.d.ts +24 -0
- package/features/auth/types/form.d.ts.map +1 -0
- package/features/auth/types/request.d.ts +34 -0
- package/features/auth/types/request.d.ts.map +1 -0
- package/features/auth/utils/index.d.ts +13 -0
- package/features/auth/utils/index.d.ts.map +1 -0
- package/features/auth/utils/type-guards.d.ts +8 -0
- package/features/auth/utils/type-guards.d.ts.map +1 -0
- package/features/connector-library/constants/api.d.ts.map +1 -1
- package/features/connector-library/store/initial-state.d.ts +3 -2
- package/features/connector-library/store/initial-state.d.ts.map +1 -1
- package/features/connector-library/store/selectors.d.ts +1 -1
- package/features/connector-library/store/selectors.d.ts.map +1 -1
- package/features/connector-library/store/slice.d.ts +7 -3
- package/features/connector-library/store/slice.d.ts.map +1 -1
- package/features/connector-library/types/connector.d.ts +2 -43
- package/features/connector-library/types/connector.d.ts.map +1 -1
- package/features/request-new-connector/api/index.d.ts +8 -0
- package/features/request-new-connector/api/index.d.ts.map +1 -0
- package/features/request-new-connector/components/custom-connector-card/index.d.ts +1 -0
- package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -0
- package/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
- package/features/request-new-connector/constants/api.d.ts +2 -0
- package/features/request-new-connector/constants/api.d.ts.map +1 -0
- package/features/request-new-connector/constants/index.d.ts +4 -0
- package/features/request-new-connector/constants/index.d.ts.map +1 -1
- package/features/request-new-connector/types/index.d.ts +16 -1
- package/features/request-new-connector/types/index.d.ts.map +1 -1
- package/features/toast-message/CloseButton.d.ts +4 -0
- package/features/toast-message/CloseButton.d.ts.map +1 -0
- package/features/toast-message/HiverIconToast.d.ts +7 -0
- package/features/toast-message/HiverIconToast.d.ts.map +1 -0
- package/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
- package/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
- package/features/toast-message/constants/toast.d.ts +4 -0
- package/features/toast-message/constants/toast.d.ts.map +1 -0
- package/features/toast-message/showMessage.d.ts +13 -0
- package/features/toast-message/showMessage.d.ts.map +1 -0
- package/features/toast-message/style.d.ts +7 -0
- package/features/toast-message/style.d.ts.map +1 -0
- package/{index-D5knnyWw.js → index-4Ya8UV6m.js} +25 -25
- package/{index-g_hNAZie.js → index-B0FKVOr3.js} +11936 -10514
- package/{index-0ckwA6Bt.js → index-BrMDvXFi.js} +972 -1115
- package/index-CJ9BUeJ0.js +71 -0
- package/index-DpmW8med.js +3784 -0
- package/index-Dt_sSW5G.js +711 -0
- package/index-HS7-EA71.js +66 -0
- package/index.es.js +1 -1
- package/index.umd.js +541 -228
- package/package.json +1 -1
- package/store/hooks.d.ts +4 -0
- package/store/hooks.d.ts.map +1 -1
- package/store/index.d.ts +8 -0
- package/store/index.d.ts.map +1 -1
- package/store/request-connector-api/initial-state.d.ts +9 -0
- package/store/request-connector-api/initial-state.d.ts.map +1 -0
- package/store/request-connector-api/selectors.d.ts +5 -0
- package/store/request-connector-api/selectors.d.ts.map +1 -0
- package/store/request-connector-api/slice.d.ts +39 -0
- package/store/request-connector-api/slice.d.ts.map +1 -0
- package/styled-ui-components-CGjzlsAh.js +2253 -0
- package/testing/mocks/handlers/auth.d.ts +2 -0
- package/testing/mocks/handlers/auth.d.ts.map +1 -0
- package/testing/mocks/handlers/connector-template.d.ts +8 -0
- package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
- package/testing/mocks/handlers/request-connector-api.d.ts +2 -0
- package/testing/mocks/handlers/request-connector-api.d.ts.map +1 -0
- package/testing/mocks/handlers/update-connector.d.ts.map +1 -1
- package/testing/mocks/handlers.d.ts.map +1 -1
- package/testing/setup-store.d.ts +4 -0
- package/testing/setup-store.d.ts.map +1 -1
- package/types/common.d.ts +2 -0
- package/types/common.d.ts.map +1 -0
- package/types/connector.d.ts +60 -0
- package/types/connector.d.ts.map +1 -0
- package/types/json.d.ts +7 -0
- package/types/json.d.ts.map +1 -0
- package/types/router.d.ts +6 -0
- package/types/router.d.ts.map +1 -1
- package/utils/index.d.ts +13 -0
- package/utils/index.d.ts.map +1 -1
- package/utils/type-guards.d.ts +3 -0
- package/utils/type-guards.d.ts.map +1 -0
- package/Typography-BvoDUPsi.js +0 -174
- package/features/auth/components/auth.d.ts +0 -2
- package/features/auth/components/auth.d.ts.map +0 -1
- package/features/connector-library/utils/type-guards.d.ts +0 -7
- package/features/connector-library/utils/type-guards.d.ts.map +0 -1
- package/features/settings/components/auth/auth.d.ts +0 -2
- package/features/settings/components/auth/auth.d.ts.map +0 -1
- package/features/settings/constants/auth.d.ts +0 -2
- package/features/settings/constants/auth.d.ts.map +0 -1
- package/index-CPqWySPe.js +0 -2954
- package/index-CWnqz_7p.js +0 -55
- package/index-CihMwBsW.js +0 -5
- package/index-xau7jZsj.js +0 -40
|
@@ -0,0 +1,3784 @@
|
|
|
1
|
+
import { s as N, S as ge, L as Ye, T as be, j as A, ah as En, ai as x, aj as Dt, ak as lt, al as Fn, B as M, am as Bn, an as Vn, ao as Sn, ap as Ve, N as $e, a3 as Lt, aq as Ie, ar as st, as as Tn, at as ct, Q as le, au as Wn, av as Rn, V as Ce, aw as Nn, ax as Xn, ay as Zn, az as wn, aA as Pn, u as Hn, aB as Dn, aC as Ln, aD as On, a1 as Mn, aE as kn, $ as Jn, aF as dt, a0 as Yn, aG as jn, aH as gt } from "./index-B0FKVOr3.js";
|
|
2
|
+
import * as T from "react";
|
|
3
|
+
import zn, { useState as j, useCallback as D, useLayoutEffect as Un, useRef as q, useMemo as me, createContext as Qn, useContext as _n, Component as Kn, Fragment as je, useEffect as ee, forwardRef as $n, useReducer as qn } from "react";
|
|
4
|
+
import { createPortal as ei } from "react-dom";
|
|
5
|
+
import { T as ti, C as bt, e as ni, f as ii } from "./styled-ui-components-CGjzlsAh.js";
|
|
6
|
+
const ui = "Custom Connectors", ai = "Salesforce API connector", ri = "Settings", pt = [ui, ai, ri], oi = N(ge)`
|
|
7
|
+
margin-bottom: 36px;
|
|
8
|
+
.arrow {
|
|
9
|
+
border: solid ${Ye.palette.gray.gray3};
|
|
10
|
+
border-width: 0 2px 2px 0;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
padding: 3px;
|
|
13
|
+
transform: rotate(-45deg);
|
|
14
|
+
-webkit-transform: rotate(-45deg);
|
|
15
|
+
height: 5px;
|
|
16
|
+
}
|
|
17
|
+
`, li = N(be)`
|
|
18
|
+
margin-right: 4px;
|
|
19
|
+
&.last {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
`, si = N(ge)`
|
|
23
|
+
width: 20px;
|
|
24
|
+
height: 20px;
|
|
25
|
+
margin-right: 4px;
|
|
26
|
+
padding-right: 6px;
|
|
27
|
+
`, ci = () => /* @__PURE__ */ A.jsx(oi, { direction: "row", alignItems: "center", "data-testid": "breadCrumbs", children: pt.map((n, e) => {
|
|
28
|
+
const i = e === pt.length - 1, u = i ? Ye.palette.gray.black : Ye.palette.gray.gray4, t = i ? "lastCrumb" : `crumb-${e}`;
|
|
29
|
+
return /* @__PURE__ */ A.jsxs(ge, { direction: "row", alignItems: "center", children: [
|
|
30
|
+
/* @__PURE__ */ A.jsx(li, { className: i ? "last" : "", variant: "h3", color: u, "data-testid": t, children: n }),
|
|
31
|
+
i ? null : /* @__PURE__ */ A.jsx(si, { direction: "row", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ A.jsx("div", { className: "arrow" }) })
|
|
32
|
+
] }, n.replace(/\s/g, ""));
|
|
33
|
+
}) });
|
|
34
|
+
function de(n) {
|
|
35
|
+
"@babel/helpers - typeof";
|
|
36
|
+
return de = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
37
|
+
return typeof e;
|
|
38
|
+
} : function(e) {
|
|
39
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
40
|
+
}, de(n);
|
|
41
|
+
}
|
|
42
|
+
function di(n, e) {
|
|
43
|
+
if (de(n) != "object" || !n) return n;
|
|
44
|
+
var i = n[Symbol.toPrimitive];
|
|
45
|
+
if (i !== void 0) {
|
|
46
|
+
var u = i.call(n, e || "default");
|
|
47
|
+
if (de(u) != "object") return u;
|
|
48
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
49
|
+
}
|
|
50
|
+
return (e === "string" ? String : Number)(n);
|
|
51
|
+
}
|
|
52
|
+
function Ot(n) {
|
|
53
|
+
var e = di(n, "string");
|
|
54
|
+
return de(e) == "symbol" ? e : e + "";
|
|
55
|
+
}
|
|
56
|
+
function ve(n, e, i) {
|
|
57
|
+
return (e = Ot(e)) in n ? Object.defineProperty(n, e, {
|
|
58
|
+
value: i,
|
|
59
|
+
enumerable: !0,
|
|
60
|
+
configurable: !0,
|
|
61
|
+
writable: !0
|
|
62
|
+
}) : n[e] = i, n;
|
|
63
|
+
}
|
|
64
|
+
function It(n, e) {
|
|
65
|
+
var i = Object.keys(n);
|
|
66
|
+
if (Object.getOwnPropertySymbols) {
|
|
67
|
+
var u = Object.getOwnPropertySymbols(n);
|
|
68
|
+
e && (u = u.filter(function(t) {
|
|
69
|
+
return Object.getOwnPropertyDescriptor(n, t).enumerable;
|
|
70
|
+
})), i.push.apply(i, u);
|
|
71
|
+
}
|
|
72
|
+
return i;
|
|
73
|
+
}
|
|
74
|
+
function y(n) {
|
|
75
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
76
|
+
var i = arguments[e] != null ? arguments[e] : {};
|
|
77
|
+
e % 2 ? It(Object(i), !0).forEach(function(u) {
|
|
78
|
+
ve(n, u, i[u]);
|
|
79
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : It(Object(i)).forEach(function(u) {
|
|
80
|
+
Object.defineProperty(n, u, Object.getOwnPropertyDescriptor(i, u));
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return n;
|
|
84
|
+
}
|
|
85
|
+
function gi(n) {
|
|
86
|
+
if (Array.isArray(n)) return n;
|
|
87
|
+
}
|
|
88
|
+
function bi(n, e) {
|
|
89
|
+
var i = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
|
|
90
|
+
if (i != null) {
|
|
91
|
+
var u, t, r, o, s = [], a = !0, l = !1;
|
|
92
|
+
try {
|
|
93
|
+
if (r = (i = i.call(n)).next, e === 0) {
|
|
94
|
+
if (Object(i) !== i) return;
|
|
95
|
+
a = !1;
|
|
96
|
+
} else for (; !(a = (u = r.call(i)).done) && (s.push(u.value), s.length !== e); a = !0) ;
|
|
97
|
+
} catch (c) {
|
|
98
|
+
l = !0, t = c;
|
|
99
|
+
} finally {
|
|
100
|
+
try {
|
|
101
|
+
if (!a && i.return != null && (o = i.return(), Object(o) !== o)) return;
|
|
102
|
+
} finally {
|
|
103
|
+
if (l) throw t;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return s;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function ze(n, e) {
|
|
110
|
+
(e == null || e > n.length) && (e = n.length);
|
|
111
|
+
for (var i = 0, u = Array(e); i < e; i++) u[i] = n[i];
|
|
112
|
+
return u;
|
|
113
|
+
}
|
|
114
|
+
function Mt(n, e) {
|
|
115
|
+
if (n) {
|
|
116
|
+
if (typeof n == "string") return ze(n, e);
|
|
117
|
+
var i = {}.toString.call(n).slice(8, -1);
|
|
118
|
+
return i === "Object" && n.constructor && (i = n.constructor.name), i === "Map" || i === "Set" ? Array.from(n) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? ze(n, e) : void 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function pi() {
|
|
122
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
123
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
124
|
+
}
|
|
125
|
+
function te(n, e) {
|
|
126
|
+
return gi(n) || bi(n, e) || Mt(n, e) || pi();
|
|
127
|
+
}
|
|
128
|
+
function Ii(n, e) {
|
|
129
|
+
if (n == null) return {};
|
|
130
|
+
var i = {};
|
|
131
|
+
for (var u in n) if ({}.hasOwnProperty.call(n, u)) {
|
|
132
|
+
if (e.includes(u)) continue;
|
|
133
|
+
i[u] = n[u];
|
|
134
|
+
}
|
|
135
|
+
return i;
|
|
136
|
+
}
|
|
137
|
+
function ie(n, e) {
|
|
138
|
+
if (n == null) return {};
|
|
139
|
+
var i, u, t = Ii(n, e);
|
|
140
|
+
if (Object.getOwnPropertySymbols) {
|
|
141
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
142
|
+
for (u = 0; u < r.length; u++) i = r[u], e.includes(i) || {}.propertyIsEnumerable.call(n, i) && (t[i] = n[i]);
|
|
143
|
+
}
|
|
144
|
+
return t;
|
|
145
|
+
}
|
|
146
|
+
var mi = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
147
|
+
function fi(n) {
|
|
148
|
+
var e = n.defaultInputValue, i = e === void 0 ? "" : e, u = n.defaultMenuIsOpen, t = u === void 0 ? !1 : u, r = n.defaultValue, o = r === void 0 ? null : r, s = n.inputValue, a = n.menuIsOpen, l = n.onChange, c = n.onInputChange, d = n.onMenuClose, b = n.onMenuOpen, I = n.value, h = ie(n, mi), p = j(s !== void 0 ? s : i), g = te(p, 2), m = g[0], f = g[1], C = j(a !== void 0 ? a : t), E = te(C, 2), v = E[0], V = E[1], S = j(I !== void 0 ? I : o), F = te(S, 2), W = F[0], P = F[1], L = D(function(k, ue) {
|
|
149
|
+
typeof l == "function" && l(k, ue), P(k);
|
|
150
|
+
}, [l]), H = D(function(k, ue) {
|
|
151
|
+
var ae;
|
|
152
|
+
typeof c == "function" && (ae = c(k, ue)), f(ae !== void 0 ? ae : k);
|
|
153
|
+
}, [c]), z = D(function() {
|
|
154
|
+
typeof b == "function" && b(), V(!0);
|
|
155
|
+
}, [b]), U = D(function() {
|
|
156
|
+
typeof d == "function" && d(), V(!1);
|
|
157
|
+
}, [d]), w = s !== void 0 ? s : m, X = a !== void 0 ? a : v, Y = I !== void 0 ? I : W;
|
|
158
|
+
return y(y({}, h), {}, {
|
|
159
|
+
inputValue: w,
|
|
160
|
+
menuIsOpen: X,
|
|
161
|
+
onChange: L,
|
|
162
|
+
onInputChange: H,
|
|
163
|
+
onMenuClose: U,
|
|
164
|
+
onMenuOpen: z,
|
|
165
|
+
value: Y
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
function G() {
|
|
169
|
+
return G = Object.assign ? Object.assign.bind() : function(n) {
|
|
170
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
171
|
+
var i = arguments[e];
|
|
172
|
+
for (var u in i) ({}).hasOwnProperty.call(i, u) && (n[u] = i[u]);
|
|
173
|
+
}
|
|
174
|
+
return n;
|
|
175
|
+
}, G.apply(null, arguments);
|
|
176
|
+
}
|
|
177
|
+
function hi(n, e) {
|
|
178
|
+
if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
179
|
+
}
|
|
180
|
+
function mt(n, e) {
|
|
181
|
+
for (var i = 0; i < e.length; i++) {
|
|
182
|
+
var u = e[i];
|
|
183
|
+
u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(n, Ot(u.key), u);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function Ci(n, e, i) {
|
|
187
|
+
return e && mt(n.prototype, e), i && mt(n, i), Object.defineProperty(n, "prototype", {
|
|
188
|
+
writable: !1
|
|
189
|
+
}), n;
|
|
190
|
+
}
|
|
191
|
+
function Ue(n, e) {
|
|
192
|
+
return Ue = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, u) {
|
|
193
|
+
return i.__proto__ = u, i;
|
|
194
|
+
}, Ue(n, e);
|
|
195
|
+
}
|
|
196
|
+
function vi(n, e) {
|
|
197
|
+
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
198
|
+
n.prototype = Object.create(e && e.prototype, {
|
|
199
|
+
constructor: {
|
|
200
|
+
value: n,
|
|
201
|
+
writable: !0,
|
|
202
|
+
configurable: !0
|
|
203
|
+
}
|
|
204
|
+
}), Object.defineProperty(n, "prototype", {
|
|
205
|
+
writable: !1
|
|
206
|
+
}), e && Ue(n, e);
|
|
207
|
+
}
|
|
208
|
+
function Se(n) {
|
|
209
|
+
return Se = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
210
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
211
|
+
}, Se(n);
|
|
212
|
+
}
|
|
213
|
+
function kt() {
|
|
214
|
+
try {
|
|
215
|
+
var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
216
|
+
}));
|
|
217
|
+
} catch {
|
|
218
|
+
}
|
|
219
|
+
return (kt = function() {
|
|
220
|
+
return !!n;
|
|
221
|
+
})();
|
|
222
|
+
}
|
|
223
|
+
function Ai(n) {
|
|
224
|
+
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
225
|
+
return n;
|
|
226
|
+
}
|
|
227
|
+
function xi(n, e) {
|
|
228
|
+
if (e && (de(e) == "object" || typeof e == "function")) return e;
|
|
229
|
+
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
230
|
+
return Ai(n);
|
|
231
|
+
}
|
|
232
|
+
function yi(n) {
|
|
233
|
+
var e = kt();
|
|
234
|
+
return function() {
|
|
235
|
+
var i, u = Se(n);
|
|
236
|
+
if (e) {
|
|
237
|
+
var t = Se(this).constructor;
|
|
238
|
+
i = Reflect.construct(u, arguments, t);
|
|
239
|
+
} else i = u.apply(this, arguments);
|
|
240
|
+
return xi(this, i);
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function Gi(n) {
|
|
244
|
+
if (Array.isArray(n)) return ze(n);
|
|
245
|
+
}
|
|
246
|
+
function Ei(n) {
|
|
247
|
+
if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
|
|
248
|
+
}
|
|
249
|
+
function Fi() {
|
|
250
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
251
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
252
|
+
}
|
|
253
|
+
function qe(n) {
|
|
254
|
+
return Gi(n) || Ei(n) || Mt(n) || Fi();
|
|
255
|
+
}
|
|
256
|
+
function Bi(n, e) {
|
|
257
|
+
return e || (e = n.slice(0)), Object.freeze(Object.defineProperties(n, {
|
|
258
|
+
raw: {
|
|
259
|
+
value: Object.freeze(e)
|
|
260
|
+
}
|
|
261
|
+
}));
|
|
262
|
+
}
|
|
263
|
+
const Vi = Math.min, Si = Math.max, Te = Math.round, ye = Math.floor, We = (n) => ({
|
|
264
|
+
x: n,
|
|
265
|
+
y: n
|
|
266
|
+
});
|
|
267
|
+
function Ti(n) {
|
|
268
|
+
const {
|
|
269
|
+
x: e,
|
|
270
|
+
y: i,
|
|
271
|
+
width: u,
|
|
272
|
+
height: t
|
|
273
|
+
} = n;
|
|
274
|
+
return {
|
|
275
|
+
width: u,
|
|
276
|
+
height: t,
|
|
277
|
+
top: i,
|
|
278
|
+
left: e,
|
|
279
|
+
right: e + u,
|
|
280
|
+
bottom: i + t,
|
|
281
|
+
x: e,
|
|
282
|
+
y: i
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
function we() {
|
|
286
|
+
return typeof window < "u";
|
|
287
|
+
}
|
|
288
|
+
function Jt(n) {
|
|
289
|
+
return jt(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
|
290
|
+
}
|
|
291
|
+
function ne(n) {
|
|
292
|
+
var e;
|
|
293
|
+
return (n == null || (e = n.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
294
|
+
}
|
|
295
|
+
function Yt(n) {
|
|
296
|
+
var e;
|
|
297
|
+
return (e = (jt(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : e.documentElement;
|
|
298
|
+
}
|
|
299
|
+
function jt(n) {
|
|
300
|
+
return we() ? n instanceof Node || n instanceof ne(n).Node : !1;
|
|
301
|
+
}
|
|
302
|
+
function Wi(n) {
|
|
303
|
+
return we() ? n instanceof Element || n instanceof ne(n).Element : !1;
|
|
304
|
+
}
|
|
305
|
+
function et(n) {
|
|
306
|
+
return we() ? n instanceof HTMLElement || n instanceof ne(n).HTMLElement : !1;
|
|
307
|
+
}
|
|
308
|
+
function ft(n) {
|
|
309
|
+
return !we() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof ne(n).ShadowRoot;
|
|
310
|
+
}
|
|
311
|
+
function zt(n) {
|
|
312
|
+
const {
|
|
313
|
+
overflow: e,
|
|
314
|
+
overflowX: i,
|
|
315
|
+
overflowY: u,
|
|
316
|
+
display: t
|
|
317
|
+
} = tt(n);
|
|
318
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + u + i) && !["inline", "contents"].includes(t);
|
|
319
|
+
}
|
|
320
|
+
function Ri() {
|
|
321
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
322
|
+
}
|
|
323
|
+
function Ni(n) {
|
|
324
|
+
return ["html", "body", "#document"].includes(Jt(n));
|
|
325
|
+
}
|
|
326
|
+
function tt(n) {
|
|
327
|
+
return ne(n).getComputedStyle(n);
|
|
328
|
+
}
|
|
329
|
+
function Xi(n) {
|
|
330
|
+
if (Jt(n) === "html")
|
|
331
|
+
return n;
|
|
332
|
+
const e = (
|
|
333
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
334
|
+
n.assignedSlot || // DOM Element detected.
|
|
335
|
+
n.parentNode || // ShadowRoot detected.
|
|
336
|
+
ft(n) && n.host || // Fallback.
|
|
337
|
+
Yt(n)
|
|
338
|
+
);
|
|
339
|
+
return ft(e) ? e.host : e;
|
|
340
|
+
}
|
|
341
|
+
function Ut(n) {
|
|
342
|
+
const e = Xi(n);
|
|
343
|
+
return Ni(e) ? n.ownerDocument ? n.ownerDocument.body : n.body : et(e) && zt(e) ? e : Ut(e);
|
|
344
|
+
}
|
|
345
|
+
function Re(n, e, i) {
|
|
346
|
+
var u;
|
|
347
|
+
e === void 0 && (e = []), i === void 0 && (i = !0);
|
|
348
|
+
const t = Ut(n), r = t === ((u = n.ownerDocument) == null ? void 0 : u.body), o = ne(t);
|
|
349
|
+
if (r) {
|
|
350
|
+
const s = Qe(o);
|
|
351
|
+
return e.concat(o, o.visualViewport || [], zt(t) ? t : [], s && i ? Re(s) : []);
|
|
352
|
+
}
|
|
353
|
+
return e.concat(t, Re(t, [], i));
|
|
354
|
+
}
|
|
355
|
+
function Qe(n) {
|
|
356
|
+
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
357
|
+
}
|
|
358
|
+
function Zi(n) {
|
|
359
|
+
const e = tt(n);
|
|
360
|
+
let i = parseFloat(e.width) || 0, u = parseFloat(e.height) || 0;
|
|
361
|
+
const t = et(n), r = t ? n.offsetWidth : i, o = t ? n.offsetHeight : u, s = Te(i) !== r || Te(u) !== o;
|
|
362
|
+
return s && (i = r, u = o), {
|
|
363
|
+
width: i,
|
|
364
|
+
height: u,
|
|
365
|
+
$: s
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
function nt(n) {
|
|
369
|
+
return Wi(n) ? n : n.contextElement;
|
|
370
|
+
}
|
|
371
|
+
function ht(n) {
|
|
372
|
+
const e = nt(n);
|
|
373
|
+
if (!et(e))
|
|
374
|
+
return We(1);
|
|
375
|
+
const i = e.getBoundingClientRect(), {
|
|
376
|
+
width: u,
|
|
377
|
+
height: t,
|
|
378
|
+
$: r
|
|
379
|
+
} = Zi(e);
|
|
380
|
+
let o = (r ? Te(i.width) : i.width) / u, s = (r ? Te(i.height) : i.height) / t;
|
|
381
|
+
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
382
|
+
x: o,
|
|
383
|
+
y: s
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
const wi = /* @__PURE__ */ We(0);
|
|
387
|
+
function Pi(n) {
|
|
388
|
+
const e = ne(n);
|
|
389
|
+
return !Ri() || !e.visualViewport ? wi : {
|
|
390
|
+
x: e.visualViewport.offsetLeft,
|
|
391
|
+
y: e.visualViewport.offsetTop
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
function Hi(n, e, i) {
|
|
395
|
+
return !1;
|
|
396
|
+
}
|
|
397
|
+
function Ct(n, e, i, u) {
|
|
398
|
+
e === void 0 && (e = !1);
|
|
399
|
+
const t = n.getBoundingClientRect(), r = nt(n);
|
|
400
|
+
let o = We(1);
|
|
401
|
+
e && (o = ht(n));
|
|
402
|
+
const s = Hi() ? Pi(r) : We(0);
|
|
403
|
+
let a = (t.left + s.x) / o.x, l = (t.top + s.y) / o.y, c = t.width / o.x, d = t.height / o.y;
|
|
404
|
+
if (r) {
|
|
405
|
+
const b = ne(r), I = u;
|
|
406
|
+
let h = b, p = Qe(h);
|
|
407
|
+
for (; p && u && I !== h; ) {
|
|
408
|
+
const g = ht(p), m = p.getBoundingClientRect(), f = tt(p), C = m.left + (p.clientLeft + parseFloat(f.paddingLeft)) * g.x, E = m.top + (p.clientTop + parseFloat(f.paddingTop)) * g.y;
|
|
409
|
+
a *= g.x, l *= g.y, c *= g.x, d *= g.y, a += C, l += E, h = ne(p), p = Qe(h);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
return Ti({
|
|
413
|
+
width: c,
|
|
414
|
+
height: d,
|
|
415
|
+
x: a,
|
|
416
|
+
y: l
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
function Di(n, e) {
|
|
420
|
+
let i = null, u;
|
|
421
|
+
const t = Yt(n);
|
|
422
|
+
function r() {
|
|
423
|
+
var s;
|
|
424
|
+
clearTimeout(u), (s = i) == null || s.disconnect(), i = null;
|
|
425
|
+
}
|
|
426
|
+
function o(s, a) {
|
|
427
|
+
s === void 0 && (s = !1), a === void 0 && (a = 1), r();
|
|
428
|
+
const {
|
|
429
|
+
left: l,
|
|
430
|
+
top: c,
|
|
431
|
+
width: d,
|
|
432
|
+
height: b
|
|
433
|
+
} = n.getBoundingClientRect();
|
|
434
|
+
if (s || e(), !d || !b)
|
|
435
|
+
return;
|
|
436
|
+
const I = ye(c), h = ye(t.clientWidth - (l + d)), p = ye(t.clientHeight - (c + b)), g = ye(l), f = {
|
|
437
|
+
rootMargin: -I + "px " + -h + "px " + -p + "px " + -g + "px",
|
|
438
|
+
threshold: Si(0, Vi(1, a)) || 1
|
|
439
|
+
};
|
|
440
|
+
let C = !0;
|
|
441
|
+
function E(v) {
|
|
442
|
+
const V = v[0].intersectionRatio;
|
|
443
|
+
if (V !== a) {
|
|
444
|
+
if (!C)
|
|
445
|
+
return o();
|
|
446
|
+
V ? o(!1, V) : u = setTimeout(() => {
|
|
447
|
+
o(!1, 1e-7);
|
|
448
|
+
}, 1e3);
|
|
449
|
+
}
|
|
450
|
+
C = !1;
|
|
451
|
+
}
|
|
452
|
+
try {
|
|
453
|
+
i = new IntersectionObserver(E, {
|
|
454
|
+
...f,
|
|
455
|
+
// Handle <iframe>s
|
|
456
|
+
root: t.ownerDocument
|
|
457
|
+
});
|
|
458
|
+
} catch {
|
|
459
|
+
i = new IntersectionObserver(E, f);
|
|
460
|
+
}
|
|
461
|
+
i.observe(n);
|
|
462
|
+
}
|
|
463
|
+
return o(!0), r;
|
|
464
|
+
}
|
|
465
|
+
function Li(n, e, i, u) {
|
|
466
|
+
u === void 0 && (u = {});
|
|
467
|
+
const {
|
|
468
|
+
ancestorScroll: t = !0,
|
|
469
|
+
ancestorResize: r = !0,
|
|
470
|
+
elementResize: o = typeof ResizeObserver == "function",
|
|
471
|
+
layoutShift: s = typeof IntersectionObserver == "function",
|
|
472
|
+
animationFrame: a = !1
|
|
473
|
+
} = u, l = nt(n), c = t || r ? [...l ? Re(l) : [], ...Re(e)] : [];
|
|
474
|
+
c.forEach((m) => {
|
|
475
|
+
t && m.addEventListener("scroll", i, {
|
|
476
|
+
passive: !0
|
|
477
|
+
}), r && m.addEventListener("resize", i);
|
|
478
|
+
});
|
|
479
|
+
const d = l && s ? Di(l, i) : null;
|
|
480
|
+
let b = -1, I = null;
|
|
481
|
+
o && (I = new ResizeObserver((m) => {
|
|
482
|
+
let [f] = m;
|
|
483
|
+
f && f.target === l && I && (I.unobserve(e), cancelAnimationFrame(b), b = requestAnimationFrame(() => {
|
|
484
|
+
var C;
|
|
485
|
+
(C = I) == null || C.observe(e);
|
|
486
|
+
})), i();
|
|
487
|
+
}), l && !a && I.observe(l), I.observe(e));
|
|
488
|
+
let h, p = a ? Ct(n) : null;
|
|
489
|
+
a && g();
|
|
490
|
+
function g() {
|
|
491
|
+
const m = Ct(n);
|
|
492
|
+
p && (m.x !== p.x || m.y !== p.y || m.width !== p.width || m.height !== p.height) && i(), p = m, h = requestAnimationFrame(g);
|
|
493
|
+
}
|
|
494
|
+
return i(), () => {
|
|
495
|
+
var m;
|
|
496
|
+
c.forEach((f) => {
|
|
497
|
+
t && f.removeEventListener("scroll", i), r && f.removeEventListener("resize", i);
|
|
498
|
+
}), d == null || d(), (m = I) == null || m.disconnect(), I = null, a && cancelAnimationFrame(h);
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
var _e = Un, Oi = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ne = function() {
|
|
502
|
+
};
|
|
503
|
+
function Mi(n, e) {
|
|
504
|
+
return e ? e[0] === "-" ? n + e : n + "__" + e : n;
|
|
505
|
+
}
|
|
506
|
+
function ki(n, e) {
|
|
507
|
+
for (var i = arguments.length, u = new Array(i > 2 ? i - 2 : 0), t = 2; t < i; t++)
|
|
508
|
+
u[t - 2] = arguments[t];
|
|
509
|
+
var r = [].concat(u);
|
|
510
|
+
if (e && n)
|
|
511
|
+
for (var o in e)
|
|
512
|
+
e.hasOwnProperty(o) && e[o] && r.push("".concat(Mi(n, o)));
|
|
513
|
+
return r.filter(function(s) {
|
|
514
|
+
return s;
|
|
515
|
+
}).map(function(s) {
|
|
516
|
+
return String(s).trim();
|
|
517
|
+
}).join(" ");
|
|
518
|
+
}
|
|
519
|
+
var vt = function(e) {
|
|
520
|
+
return $i(e) ? e.filter(Boolean) : de(e) === "object" && e !== null ? [e] : [];
|
|
521
|
+
}, Qt = function(e) {
|
|
522
|
+
e.className, e.clearValue, e.cx, e.getStyles, e.getClassNames, e.getValue, e.hasValue, e.isMulti, e.isRtl, e.options, e.selectOption, e.selectProps, e.setValue, e.theme;
|
|
523
|
+
var i = ie(e, Oi);
|
|
524
|
+
return y({}, i);
|
|
525
|
+
}, R = function(e, i, u) {
|
|
526
|
+
var t = e.cx, r = e.getStyles, o = e.getClassNames, s = e.className;
|
|
527
|
+
return {
|
|
528
|
+
css: r(i, e),
|
|
529
|
+
className: t(u ?? {}, o(i, e), s)
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
function Pe(n) {
|
|
533
|
+
return [document.documentElement, document.body, window].indexOf(n) > -1;
|
|
534
|
+
}
|
|
535
|
+
function Ji(n) {
|
|
536
|
+
return Pe(n) ? window.innerHeight : n.clientHeight;
|
|
537
|
+
}
|
|
538
|
+
function _t(n) {
|
|
539
|
+
return Pe(n) ? window.pageYOffset : n.scrollTop;
|
|
540
|
+
}
|
|
541
|
+
function Xe(n, e) {
|
|
542
|
+
if (Pe(n)) {
|
|
543
|
+
window.scrollTo(0, e);
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
n.scrollTop = e;
|
|
547
|
+
}
|
|
548
|
+
function Yi(n) {
|
|
549
|
+
var e = getComputedStyle(n), i = e.position === "absolute", u = /(auto|scroll)/;
|
|
550
|
+
if (e.position === "fixed") return document.documentElement;
|
|
551
|
+
for (var t = n; t = t.parentElement; )
|
|
552
|
+
if (e = getComputedStyle(t), !(i && e.position === "static") && u.test(e.overflow + e.overflowY + e.overflowX))
|
|
553
|
+
return t;
|
|
554
|
+
return document.documentElement;
|
|
555
|
+
}
|
|
556
|
+
function ji(n, e, i, u) {
|
|
557
|
+
return i * ((n = n / u - 1) * n * n + 1) + e;
|
|
558
|
+
}
|
|
559
|
+
function Ge(n, e) {
|
|
560
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, u = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Ne, t = _t(n), r = e - t, o = 10, s = 0;
|
|
561
|
+
function a() {
|
|
562
|
+
s += o;
|
|
563
|
+
var l = ji(s, t, r, i);
|
|
564
|
+
Xe(n, l), s < i ? window.requestAnimationFrame(a) : u(n);
|
|
565
|
+
}
|
|
566
|
+
a();
|
|
567
|
+
}
|
|
568
|
+
function At(n, e) {
|
|
569
|
+
var i = n.getBoundingClientRect(), u = e.getBoundingClientRect(), t = e.offsetHeight / 3;
|
|
570
|
+
u.bottom + t > i.bottom ? Xe(n, Math.min(e.offsetTop + e.clientHeight - n.offsetHeight + t, n.scrollHeight)) : u.top - t < i.top && Xe(n, Math.max(e.offsetTop - t, 0));
|
|
571
|
+
}
|
|
572
|
+
function zi(n) {
|
|
573
|
+
var e = n.getBoundingClientRect();
|
|
574
|
+
return {
|
|
575
|
+
bottom: e.bottom,
|
|
576
|
+
height: e.height,
|
|
577
|
+
left: e.left,
|
|
578
|
+
right: e.right,
|
|
579
|
+
top: e.top,
|
|
580
|
+
width: e.width
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
function xt() {
|
|
584
|
+
try {
|
|
585
|
+
return document.createEvent("TouchEvent"), !0;
|
|
586
|
+
} catch {
|
|
587
|
+
return !1;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
function Ui() {
|
|
591
|
+
try {
|
|
592
|
+
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
593
|
+
} catch {
|
|
594
|
+
return !1;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
var Kt = !1, Qi = {
|
|
598
|
+
get passive() {
|
|
599
|
+
return Kt = !0;
|
|
600
|
+
}
|
|
601
|
+
}, Ee = typeof window < "u" ? window : {};
|
|
602
|
+
Ee.addEventListener && Ee.removeEventListener && (Ee.addEventListener("p", Ne, Qi), Ee.removeEventListener("p", Ne, !1));
|
|
603
|
+
var _i = Kt;
|
|
604
|
+
function Ki(n) {
|
|
605
|
+
return n != null;
|
|
606
|
+
}
|
|
607
|
+
function $i(n) {
|
|
608
|
+
return Array.isArray(n);
|
|
609
|
+
}
|
|
610
|
+
function Fe(n, e, i) {
|
|
611
|
+
return n ? e : i;
|
|
612
|
+
}
|
|
613
|
+
var qi = function(e) {
|
|
614
|
+
for (var i = arguments.length, u = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
|
|
615
|
+
u[t - 1] = arguments[t];
|
|
616
|
+
var r = Object.entries(e).filter(function(o) {
|
|
617
|
+
var s = te(o, 1), a = s[0];
|
|
618
|
+
return !u.includes(a);
|
|
619
|
+
});
|
|
620
|
+
return r.reduce(function(o, s) {
|
|
621
|
+
var a = te(s, 2), l = a[0], c = a[1];
|
|
622
|
+
return o[l] = c, o;
|
|
623
|
+
}, {});
|
|
624
|
+
}, eu = ["children", "innerProps"], tu = ["children", "innerProps"];
|
|
625
|
+
function nu(n) {
|
|
626
|
+
var e = n.maxHeight, i = n.menuEl, u = n.minHeight, t = n.placement, r = n.shouldScroll, o = n.isFixedPosition, s = n.controlHeight, a = Yi(i), l = {
|
|
627
|
+
placement: "bottom",
|
|
628
|
+
maxHeight: e
|
|
629
|
+
};
|
|
630
|
+
if (!i || !i.offsetParent) return l;
|
|
631
|
+
var c = a.getBoundingClientRect(), d = c.height, b = i.getBoundingClientRect(), I = b.bottom, h = b.height, p = b.top, g = i.offsetParent.getBoundingClientRect(), m = g.top, f = o ? window.innerHeight : Ji(a), C = _t(a), E = parseInt(getComputedStyle(i).marginBottom, 10), v = parseInt(getComputedStyle(i).marginTop, 10), V = m - v, S = f - p, F = V + C, W = d - C - p, P = I - f + C + E, L = C + p - v, H = 160;
|
|
632
|
+
switch (t) {
|
|
633
|
+
case "auto":
|
|
634
|
+
case "bottom":
|
|
635
|
+
if (S >= h)
|
|
636
|
+
return {
|
|
637
|
+
placement: "bottom",
|
|
638
|
+
maxHeight: e
|
|
639
|
+
};
|
|
640
|
+
if (W >= h && !o)
|
|
641
|
+
return r && Ge(a, P, H), {
|
|
642
|
+
placement: "bottom",
|
|
643
|
+
maxHeight: e
|
|
644
|
+
};
|
|
645
|
+
if (!o && W >= u || o && S >= u) {
|
|
646
|
+
r && Ge(a, P, H);
|
|
647
|
+
var z = o ? S - E : W - E;
|
|
648
|
+
return {
|
|
649
|
+
placement: "bottom",
|
|
650
|
+
maxHeight: z
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
if (t === "auto" || o) {
|
|
654
|
+
var U = e, w = o ? V : F;
|
|
655
|
+
return w >= u && (U = Math.min(w - E - s, e)), {
|
|
656
|
+
placement: "top",
|
|
657
|
+
maxHeight: U
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
if (t === "bottom")
|
|
661
|
+
return r && Xe(a, P), {
|
|
662
|
+
placement: "bottom",
|
|
663
|
+
maxHeight: e
|
|
664
|
+
};
|
|
665
|
+
break;
|
|
666
|
+
case "top":
|
|
667
|
+
if (V >= h)
|
|
668
|
+
return {
|
|
669
|
+
placement: "top",
|
|
670
|
+
maxHeight: e
|
|
671
|
+
};
|
|
672
|
+
if (F >= h && !o)
|
|
673
|
+
return r && Ge(a, L, H), {
|
|
674
|
+
placement: "top",
|
|
675
|
+
maxHeight: e
|
|
676
|
+
};
|
|
677
|
+
if (!o && F >= u || o && V >= u) {
|
|
678
|
+
var X = e;
|
|
679
|
+
return (!o && F >= u || o && V >= u) && (X = o ? V - v : F - v), r && Ge(a, L, H), {
|
|
680
|
+
placement: "top",
|
|
681
|
+
maxHeight: X
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
return {
|
|
685
|
+
placement: "bottom",
|
|
686
|
+
maxHeight: e
|
|
687
|
+
};
|
|
688
|
+
default:
|
|
689
|
+
throw new Error('Invalid placement provided "'.concat(t, '".'));
|
|
690
|
+
}
|
|
691
|
+
return l;
|
|
692
|
+
}
|
|
693
|
+
function iu(n) {
|
|
694
|
+
var e = {
|
|
695
|
+
bottom: "top",
|
|
696
|
+
top: "bottom"
|
|
697
|
+
};
|
|
698
|
+
return n ? e[n] : "bottom";
|
|
699
|
+
}
|
|
700
|
+
var $t = function(e) {
|
|
701
|
+
return e === "auto" ? "bottom" : e;
|
|
702
|
+
}, uu = function(e, i) {
|
|
703
|
+
var u, t = e.placement, r = e.theme, o = r.borderRadius, s = r.spacing, a = r.colors;
|
|
704
|
+
return y((u = {
|
|
705
|
+
label: "menu"
|
|
706
|
+
}, ve(u, iu(t), "100%"), ve(u, "position", "absolute"), ve(u, "width", "100%"), ve(u, "zIndex", 1), u), i ? {} : {
|
|
707
|
+
backgroundColor: a.neutral0,
|
|
708
|
+
borderRadius: o,
|
|
709
|
+
boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
|
|
710
|
+
marginBottom: s.menuGutter,
|
|
711
|
+
marginTop: s.menuGutter
|
|
712
|
+
});
|
|
713
|
+
}, qt = /* @__PURE__ */ Qn(null), au = function(e) {
|
|
714
|
+
var i = e.children, u = e.minMenuHeight, t = e.maxMenuHeight, r = e.menuPlacement, o = e.menuPosition, s = e.menuShouldScrollIntoView, a = e.theme, l = _n(qt) || {}, c = l.setPortalPlacement, d = q(null), b = j(t), I = te(b, 2), h = I[0], p = I[1], g = j(null), m = te(g, 2), f = m[0], C = m[1], E = a.spacing.controlHeight;
|
|
715
|
+
return _e(function() {
|
|
716
|
+
var v = d.current;
|
|
717
|
+
if (v) {
|
|
718
|
+
var V = o === "fixed", S = s && !V, F = nu({
|
|
719
|
+
maxHeight: t,
|
|
720
|
+
menuEl: v,
|
|
721
|
+
minHeight: u,
|
|
722
|
+
placement: r,
|
|
723
|
+
shouldScroll: S,
|
|
724
|
+
isFixedPosition: V,
|
|
725
|
+
controlHeight: E
|
|
726
|
+
});
|
|
727
|
+
p(F.maxHeight), C(F.placement), c == null || c(F.placement);
|
|
728
|
+
}
|
|
729
|
+
}, [t, r, o, s, u, c, E]), i({
|
|
730
|
+
ref: d,
|
|
731
|
+
placerProps: y(y({}, e), {}, {
|
|
732
|
+
placement: f || $t(r),
|
|
733
|
+
maxHeight: h
|
|
734
|
+
})
|
|
735
|
+
});
|
|
736
|
+
}, ru = function(e) {
|
|
737
|
+
var i = e.children, u = e.innerRef, t = e.innerProps;
|
|
738
|
+
return x("div", G({}, R(e, "menu", {
|
|
739
|
+
menu: !0
|
|
740
|
+
}), {
|
|
741
|
+
ref: u
|
|
742
|
+
}, t), i);
|
|
743
|
+
}, ou = ru, lu = function(e, i) {
|
|
744
|
+
var u = e.maxHeight, t = e.theme.spacing.baseUnit;
|
|
745
|
+
return y({
|
|
746
|
+
maxHeight: u,
|
|
747
|
+
overflowY: "auto",
|
|
748
|
+
position: "relative",
|
|
749
|
+
// required for offset[Height, Top] > keyboard scroll
|
|
750
|
+
WebkitOverflowScrolling: "touch"
|
|
751
|
+
}, i ? {} : {
|
|
752
|
+
paddingBottom: t,
|
|
753
|
+
paddingTop: t
|
|
754
|
+
});
|
|
755
|
+
}, su = function(e) {
|
|
756
|
+
var i = e.children, u = e.innerProps, t = e.innerRef, r = e.isMulti;
|
|
757
|
+
return x("div", G({}, R(e, "menuList", {
|
|
758
|
+
"menu-list": !0,
|
|
759
|
+
"menu-list--is-multi": r
|
|
760
|
+
}), {
|
|
761
|
+
ref: t
|
|
762
|
+
}, u), i);
|
|
763
|
+
}, en = function(e, i) {
|
|
764
|
+
var u = e.theme, t = u.spacing.baseUnit, r = u.colors;
|
|
765
|
+
return y({
|
|
766
|
+
textAlign: "center"
|
|
767
|
+
}, i ? {} : {
|
|
768
|
+
color: r.neutral40,
|
|
769
|
+
padding: "".concat(t * 2, "px ").concat(t * 3, "px")
|
|
770
|
+
});
|
|
771
|
+
}, cu = en, du = en, gu = function(e) {
|
|
772
|
+
var i = e.children, u = i === void 0 ? "No options" : i, t = e.innerProps, r = ie(e, eu);
|
|
773
|
+
return x("div", G({}, R(y(y({}, r), {}, {
|
|
774
|
+
children: u,
|
|
775
|
+
innerProps: t
|
|
776
|
+
}), "noOptionsMessage", {
|
|
777
|
+
"menu-notice": !0,
|
|
778
|
+
"menu-notice--no-options": !0
|
|
779
|
+
}), t), u);
|
|
780
|
+
}, bu = function(e) {
|
|
781
|
+
var i = e.children, u = i === void 0 ? "Loading..." : i, t = e.innerProps, r = ie(e, tu);
|
|
782
|
+
return x("div", G({}, R(y(y({}, r), {}, {
|
|
783
|
+
children: u,
|
|
784
|
+
innerProps: t
|
|
785
|
+
}), "loadingMessage", {
|
|
786
|
+
"menu-notice": !0,
|
|
787
|
+
"menu-notice--loading": !0
|
|
788
|
+
}), t), u);
|
|
789
|
+
}, pu = function(e) {
|
|
790
|
+
var i = e.rect, u = e.offset, t = e.position;
|
|
791
|
+
return {
|
|
792
|
+
left: i.left,
|
|
793
|
+
position: t,
|
|
794
|
+
top: u,
|
|
795
|
+
width: i.width,
|
|
796
|
+
zIndex: 1
|
|
797
|
+
};
|
|
798
|
+
}, Iu = function(e) {
|
|
799
|
+
var i = e.appendTo, u = e.children, t = e.controlElement, r = e.innerProps, o = e.menuPlacement, s = e.menuPosition, a = q(null), l = q(null), c = j($t(o)), d = te(c, 2), b = d[0], I = d[1], h = me(function() {
|
|
800
|
+
return {
|
|
801
|
+
setPortalPlacement: I
|
|
802
|
+
};
|
|
803
|
+
}, []), p = j(null), g = te(p, 2), m = g[0], f = g[1], C = D(function() {
|
|
804
|
+
if (t) {
|
|
805
|
+
var S = zi(t), F = s === "fixed" ? 0 : window.pageYOffset, W = S[b] + F;
|
|
806
|
+
(W !== (m == null ? void 0 : m.offset) || S.left !== (m == null ? void 0 : m.rect.left) || S.width !== (m == null ? void 0 : m.rect.width)) && f({
|
|
807
|
+
offset: W,
|
|
808
|
+
rect: S
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
}, [t, s, b, m == null ? void 0 : m.offset, m == null ? void 0 : m.rect.left, m == null ? void 0 : m.rect.width]);
|
|
812
|
+
_e(function() {
|
|
813
|
+
C();
|
|
814
|
+
}, [C]);
|
|
815
|
+
var E = D(function() {
|
|
816
|
+
typeof l.current == "function" && (l.current(), l.current = null), t && a.current && (l.current = Li(t, a.current, C, {
|
|
817
|
+
elementResize: "ResizeObserver" in window
|
|
818
|
+
}));
|
|
819
|
+
}, [t, C]);
|
|
820
|
+
_e(function() {
|
|
821
|
+
E();
|
|
822
|
+
}, [E]);
|
|
823
|
+
var v = D(function(S) {
|
|
824
|
+
a.current = S, E();
|
|
825
|
+
}, [E]);
|
|
826
|
+
if (!i && s !== "fixed" || !m) return null;
|
|
827
|
+
var V = x("div", G({
|
|
828
|
+
ref: v
|
|
829
|
+
}, R(y(y({}, e), {}, {
|
|
830
|
+
offset: m.offset,
|
|
831
|
+
position: s,
|
|
832
|
+
rect: m.rect
|
|
833
|
+
}), "menuPortal", {
|
|
834
|
+
"menu-portal": !0
|
|
835
|
+
}), r), u);
|
|
836
|
+
return x(qt.Provider, {
|
|
837
|
+
value: h
|
|
838
|
+
}, i ? /* @__PURE__ */ ei(V, i) : V);
|
|
839
|
+
}, mu = function(e) {
|
|
840
|
+
var i = e.isDisabled, u = e.isRtl;
|
|
841
|
+
return {
|
|
842
|
+
label: "container",
|
|
843
|
+
direction: u ? "rtl" : void 0,
|
|
844
|
+
pointerEvents: i ? "none" : void 0,
|
|
845
|
+
// cancel mouse events when disabled
|
|
846
|
+
position: "relative"
|
|
847
|
+
};
|
|
848
|
+
}, fu = function(e) {
|
|
849
|
+
var i = e.children, u = e.innerProps, t = e.isDisabled, r = e.isRtl;
|
|
850
|
+
return x("div", G({}, R(e, "container", {
|
|
851
|
+
"--is-disabled": t,
|
|
852
|
+
"--is-rtl": r
|
|
853
|
+
}), u), i);
|
|
854
|
+
}, hu = function(e, i) {
|
|
855
|
+
var u = e.theme.spacing, t = e.isMulti, r = e.hasValue, o = e.selectProps.controlShouldRenderValue;
|
|
856
|
+
return y({
|
|
857
|
+
alignItems: "center",
|
|
858
|
+
display: t && r && o ? "flex" : "grid",
|
|
859
|
+
flex: 1,
|
|
860
|
+
flexWrap: "wrap",
|
|
861
|
+
WebkitOverflowScrolling: "touch",
|
|
862
|
+
position: "relative",
|
|
863
|
+
overflow: "hidden"
|
|
864
|
+
}, i ? {} : {
|
|
865
|
+
padding: "".concat(u.baseUnit / 2, "px ").concat(u.baseUnit * 2, "px")
|
|
866
|
+
});
|
|
867
|
+
}, Cu = function(e) {
|
|
868
|
+
var i = e.children, u = e.innerProps, t = e.isMulti, r = e.hasValue;
|
|
869
|
+
return x("div", G({}, R(e, "valueContainer", {
|
|
870
|
+
"value-container": !0,
|
|
871
|
+
"value-container--is-multi": t,
|
|
872
|
+
"value-container--has-value": r
|
|
873
|
+
}), u), i);
|
|
874
|
+
}, vu = function() {
|
|
875
|
+
return {
|
|
876
|
+
alignItems: "center",
|
|
877
|
+
alignSelf: "stretch",
|
|
878
|
+
display: "flex",
|
|
879
|
+
flexShrink: 0
|
|
880
|
+
};
|
|
881
|
+
}, Au = function(e) {
|
|
882
|
+
var i = e.children, u = e.innerProps;
|
|
883
|
+
return x("div", G({}, R(e, "indicatorsContainer", {
|
|
884
|
+
indicators: !0
|
|
885
|
+
}), u), i);
|
|
886
|
+
}, yt, xu = ["size"], yu = ["innerProps", "isRtl", "size"];
|
|
887
|
+
function Gu() {
|
|
888
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
889
|
+
}
|
|
890
|
+
var Eu = process.env.NODE_ENV === "production" ? {
|
|
891
|
+
name: "8mmkcg",
|
|
892
|
+
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
|
|
893
|
+
} : {
|
|
894
|
+
name: "tj5bde-Svg",
|
|
895
|
+
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
|
|
896
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWR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PikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",
|
|
897
|
+
toString: Gu
|
|
898
|
+
}, tn = function(e) {
|
|
899
|
+
var i = e.size, u = ie(e, xu);
|
|
900
|
+
return x("svg", G({
|
|
901
|
+
height: i,
|
|
902
|
+
width: i,
|
|
903
|
+
viewBox: "0 0 20 20",
|
|
904
|
+
"aria-hidden": "true",
|
|
905
|
+
focusable: "false",
|
|
906
|
+
css: Eu
|
|
907
|
+
}, u));
|
|
908
|
+
}, it = function(e) {
|
|
909
|
+
return x(tn, G({
|
|
910
|
+
size: 20
|
|
911
|
+
}, e), x("path", {
|
|
912
|
+
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
913
|
+
}));
|
|
914
|
+
}, nn = function(e) {
|
|
915
|
+
return x(tn, G({
|
|
916
|
+
size: 20
|
|
917
|
+
}, e), x("path", {
|
|
918
|
+
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
919
|
+
}));
|
|
920
|
+
}, un = function(e, i) {
|
|
921
|
+
var u = e.isFocused, t = e.theme, r = t.spacing.baseUnit, o = t.colors;
|
|
922
|
+
return y({
|
|
923
|
+
label: "indicatorContainer",
|
|
924
|
+
display: "flex",
|
|
925
|
+
transition: "color 150ms"
|
|
926
|
+
}, i ? {} : {
|
|
927
|
+
color: u ? o.neutral60 : o.neutral20,
|
|
928
|
+
padding: r * 2,
|
|
929
|
+
":hover": {
|
|
930
|
+
color: u ? o.neutral80 : o.neutral40
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
}, Fu = un, Bu = function(e) {
|
|
934
|
+
var i = e.children, u = e.innerProps;
|
|
935
|
+
return x("div", G({}, R(e, "dropdownIndicator", {
|
|
936
|
+
indicator: !0,
|
|
937
|
+
"dropdown-indicator": !0
|
|
938
|
+
}), u), i || x(nn, null));
|
|
939
|
+
}, Vu = un, Su = function(e) {
|
|
940
|
+
var i = e.children, u = e.innerProps;
|
|
941
|
+
return x("div", G({}, R(e, "clearIndicator", {
|
|
942
|
+
indicator: !0,
|
|
943
|
+
"clear-indicator": !0
|
|
944
|
+
}), u), i || x(it, null));
|
|
945
|
+
}, Tu = function(e, i) {
|
|
946
|
+
var u = e.isDisabled, t = e.theme, r = t.spacing.baseUnit, o = t.colors;
|
|
947
|
+
return y({
|
|
948
|
+
label: "indicatorSeparator",
|
|
949
|
+
alignSelf: "stretch",
|
|
950
|
+
width: 1
|
|
951
|
+
}, i ? {} : {
|
|
952
|
+
backgroundColor: u ? o.neutral10 : o.neutral20,
|
|
953
|
+
marginBottom: r * 2,
|
|
954
|
+
marginTop: r * 2
|
|
955
|
+
});
|
|
956
|
+
}, Wu = function(e) {
|
|
957
|
+
var i = e.innerProps;
|
|
958
|
+
return x("span", G({}, i, R(e, "indicatorSeparator", {
|
|
959
|
+
"indicator-separator": !0
|
|
960
|
+
})));
|
|
961
|
+
}, Ru = En(yt || (yt = Bi([`
|
|
962
|
+
0%, 80%, 100% { opacity: 0; }
|
|
963
|
+
40% { opacity: 1; }
|
|
964
|
+
`]))), Nu = function(e, i) {
|
|
965
|
+
var u = e.isFocused, t = e.size, r = e.theme, o = r.colors, s = r.spacing.baseUnit;
|
|
966
|
+
return y({
|
|
967
|
+
label: "loadingIndicator",
|
|
968
|
+
display: "flex",
|
|
969
|
+
transition: "color 150ms",
|
|
970
|
+
alignSelf: "center",
|
|
971
|
+
fontSize: t,
|
|
972
|
+
lineHeight: 1,
|
|
973
|
+
marginRight: t,
|
|
974
|
+
textAlign: "center",
|
|
975
|
+
verticalAlign: "middle"
|
|
976
|
+
}, i ? {} : {
|
|
977
|
+
color: u ? o.neutral60 : o.neutral20,
|
|
978
|
+
padding: s * 2
|
|
979
|
+
});
|
|
980
|
+
}, De = function(e) {
|
|
981
|
+
var i = e.delay, u = e.offset;
|
|
982
|
+
return x("span", {
|
|
983
|
+
css: /* @__PURE__ */ Dt({
|
|
984
|
+
animation: "".concat(Ru, " 1s ease-in-out ").concat(i, "ms infinite;"),
|
|
985
|
+
backgroundColor: "currentColor",
|
|
986
|
+
borderRadius: "1em",
|
|
987
|
+
display: "inline-block",
|
|
988
|
+
marginLeft: u ? "1em" : void 0,
|
|
989
|
+
height: "1em",
|
|
990
|
+
verticalAlign: "top",
|
|
991
|
+
width: "1em"
|
|
992
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZU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bmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")
|
|
993
|
+
});
|
|
994
|
+
}, Xu = function(e) {
|
|
995
|
+
var i = e.innerProps, u = e.isRtl, t = e.size, r = t === void 0 ? 4 : t, o = ie(e, yu);
|
|
996
|
+
return x("div", G({}, R(y(y({}, o), {}, {
|
|
997
|
+
innerProps: i,
|
|
998
|
+
isRtl: u,
|
|
999
|
+
size: r
|
|
1000
|
+
}), "loadingIndicator", {
|
|
1001
|
+
indicator: !0,
|
|
1002
|
+
"loading-indicator": !0
|
|
1003
|
+
}), i), x(De, {
|
|
1004
|
+
delay: 0,
|
|
1005
|
+
offset: u
|
|
1006
|
+
}), x(De, {
|
|
1007
|
+
delay: 160,
|
|
1008
|
+
offset: !0
|
|
1009
|
+
}), x(De, {
|
|
1010
|
+
delay: 320,
|
|
1011
|
+
offset: !u
|
|
1012
|
+
}));
|
|
1013
|
+
}, Zu = function(e, i) {
|
|
1014
|
+
var u = e.isDisabled, t = e.isFocused, r = e.theme, o = r.colors, s = r.borderRadius, a = r.spacing;
|
|
1015
|
+
return y({
|
|
1016
|
+
label: "control",
|
|
1017
|
+
alignItems: "center",
|
|
1018
|
+
cursor: "default",
|
|
1019
|
+
display: "flex",
|
|
1020
|
+
flexWrap: "wrap",
|
|
1021
|
+
justifyContent: "space-between",
|
|
1022
|
+
minHeight: a.controlHeight,
|
|
1023
|
+
outline: "0 !important",
|
|
1024
|
+
position: "relative",
|
|
1025
|
+
transition: "all 100ms"
|
|
1026
|
+
}, i ? {} : {
|
|
1027
|
+
backgroundColor: u ? o.neutral5 : o.neutral0,
|
|
1028
|
+
borderColor: u ? o.neutral10 : t ? o.primary : o.neutral20,
|
|
1029
|
+
borderRadius: s,
|
|
1030
|
+
borderStyle: "solid",
|
|
1031
|
+
borderWidth: 1,
|
|
1032
|
+
boxShadow: t ? "0 0 0 1px ".concat(o.primary) : void 0,
|
|
1033
|
+
"&:hover": {
|
|
1034
|
+
borderColor: t ? o.primary : o.neutral30
|
|
1035
|
+
}
|
|
1036
|
+
});
|
|
1037
|
+
}, wu = function(e) {
|
|
1038
|
+
var i = e.children, u = e.isDisabled, t = e.isFocused, r = e.innerRef, o = e.innerProps, s = e.menuIsOpen;
|
|
1039
|
+
return x("div", G({
|
|
1040
|
+
ref: r
|
|
1041
|
+
}, R(e, "control", {
|
|
1042
|
+
control: !0,
|
|
1043
|
+
"control--is-disabled": u,
|
|
1044
|
+
"control--is-focused": t,
|
|
1045
|
+
"control--menu-is-open": s
|
|
1046
|
+
}), o, {
|
|
1047
|
+
"aria-disabled": u || void 0
|
|
1048
|
+
}), i);
|
|
1049
|
+
}, Pu = wu, Hu = ["data"], Du = function(e, i) {
|
|
1050
|
+
var u = e.theme.spacing;
|
|
1051
|
+
return i ? {} : {
|
|
1052
|
+
paddingBottom: u.baseUnit * 2,
|
|
1053
|
+
paddingTop: u.baseUnit * 2
|
|
1054
|
+
};
|
|
1055
|
+
}, Lu = function(e) {
|
|
1056
|
+
var i = e.children, u = e.cx, t = e.getStyles, r = e.getClassNames, o = e.Heading, s = e.headingProps, a = e.innerProps, l = e.label, c = e.theme, d = e.selectProps;
|
|
1057
|
+
return x("div", G({}, R(e, "group", {
|
|
1058
|
+
group: !0
|
|
1059
|
+
}), a), x(o, G({}, s, {
|
|
1060
|
+
selectProps: d,
|
|
1061
|
+
theme: c,
|
|
1062
|
+
getStyles: t,
|
|
1063
|
+
getClassNames: r,
|
|
1064
|
+
cx: u
|
|
1065
|
+
}), l), x("div", null, i));
|
|
1066
|
+
}, Ou = function(e, i) {
|
|
1067
|
+
var u = e.theme, t = u.colors, r = u.spacing;
|
|
1068
|
+
return y({
|
|
1069
|
+
label: "group",
|
|
1070
|
+
cursor: "default",
|
|
1071
|
+
display: "block"
|
|
1072
|
+
}, i ? {} : {
|
|
1073
|
+
color: t.neutral40,
|
|
1074
|
+
fontSize: "75%",
|
|
1075
|
+
fontWeight: 500,
|
|
1076
|
+
marginBottom: "0.25em",
|
|
1077
|
+
paddingLeft: r.baseUnit * 3,
|
|
1078
|
+
paddingRight: r.baseUnit * 3,
|
|
1079
|
+
textTransform: "uppercase"
|
|
1080
|
+
});
|
|
1081
|
+
}, Mu = function(e) {
|
|
1082
|
+
var i = Qt(e);
|
|
1083
|
+
i.data;
|
|
1084
|
+
var u = ie(i, Hu);
|
|
1085
|
+
return x("div", G({}, R(e, "groupHeading", {
|
|
1086
|
+
"group-heading": !0
|
|
1087
|
+
}), u));
|
|
1088
|
+
}, ku = Lu, Ju = ["innerRef", "isDisabled", "isHidden", "inputClassName"], Yu = function(e, i) {
|
|
1089
|
+
var u = e.isDisabled, t = e.value, r = e.theme, o = r.spacing, s = r.colors;
|
|
1090
|
+
return y(y({
|
|
1091
|
+
visibility: u ? "hidden" : "visible",
|
|
1092
|
+
// force css to recompute when value change due to @emotion bug.
|
|
1093
|
+
// We can remove it whenever the bug is fixed.
|
|
1094
|
+
transform: t ? "translateZ(0)" : ""
|
|
1095
|
+
}, ju), i ? {} : {
|
|
1096
|
+
margin: o.baseUnit / 2,
|
|
1097
|
+
paddingBottom: o.baseUnit / 2,
|
|
1098
|
+
paddingTop: o.baseUnit / 2,
|
|
1099
|
+
color: s.neutral80
|
|
1100
|
+
});
|
|
1101
|
+
}, an = {
|
|
1102
|
+
gridArea: "1 / 2",
|
|
1103
|
+
font: "inherit",
|
|
1104
|
+
minWidth: "2px",
|
|
1105
|
+
border: 0,
|
|
1106
|
+
margin: 0,
|
|
1107
|
+
outline: 0,
|
|
1108
|
+
padding: 0
|
|
1109
|
+
}, ju = {
|
|
1110
|
+
flex: "1 1 auto",
|
|
1111
|
+
display: "inline-grid",
|
|
1112
|
+
gridArea: "1 / 1 / 2 / 3",
|
|
1113
|
+
gridTemplateColumns: "0 min-content",
|
|
1114
|
+
"&:after": y({
|
|
1115
|
+
content: 'attr(data-value) " "',
|
|
1116
|
+
visibility: "hidden",
|
|
1117
|
+
whiteSpace: "pre"
|
|
1118
|
+
}, an)
|
|
1119
|
+
}, zu = function(e) {
|
|
1120
|
+
return y({
|
|
1121
|
+
label: "input",
|
|
1122
|
+
color: "inherit",
|
|
1123
|
+
background: 0,
|
|
1124
|
+
opacity: e ? 0 : 1,
|
|
1125
|
+
width: "100%"
|
|
1126
|
+
}, an);
|
|
1127
|
+
}, Uu = function(e) {
|
|
1128
|
+
var i = e.cx, u = e.value, t = Qt(e), r = t.innerRef, o = t.isDisabled, s = t.isHidden, a = t.inputClassName, l = ie(t, Ju);
|
|
1129
|
+
return x("div", G({}, R(e, "input", {
|
|
1130
|
+
"input-container": !0
|
|
1131
|
+
}), {
|
|
1132
|
+
"data-value": u || ""
|
|
1133
|
+
}), x("input", G({
|
|
1134
|
+
className: i({
|
|
1135
|
+
input: !0
|
|
1136
|
+
}, a),
|
|
1137
|
+
ref: r,
|
|
1138
|
+
style: zu(s),
|
|
1139
|
+
disabled: o
|
|
1140
|
+
}, l)));
|
|
1141
|
+
}, Qu = Uu, _u = function(e, i) {
|
|
1142
|
+
var u = e.theme, t = u.spacing, r = u.borderRadius, o = u.colors;
|
|
1143
|
+
return y({
|
|
1144
|
+
label: "multiValue",
|
|
1145
|
+
display: "flex",
|
|
1146
|
+
minWidth: 0
|
|
1147
|
+
}, i ? {} : {
|
|
1148
|
+
backgroundColor: o.neutral10,
|
|
1149
|
+
borderRadius: r / 2,
|
|
1150
|
+
margin: t.baseUnit / 2
|
|
1151
|
+
});
|
|
1152
|
+
}, Ku = function(e, i) {
|
|
1153
|
+
var u = e.theme, t = u.borderRadius, r = u.colors, o = e.cropWithEllipsis;
|
|
1154
|
+
return y({
|
|
1155
|
+
overflow: "hidden",
|
|
1156
|
+
textOverflow: o || o === void 0 ? "ellipsis" : void 0,
|
|
1157
|
+
whiteSpace: "nowrap"
|
|
1158
|
+
}, i ? {} : {
|
|
1159
|
+
borderRadius: t / 2,
|
|
1160
|
+
color: r.neutral80,
|
|
1161
|
+
fontSize: "85%",
|
|
1162
|
+
padding: 3,
|
|
1163
|
+
paddingLeft: 6
|
|
1164
|
+
});
|
|
1165
|
+
}, $u = function(e, i) {
|
|
1166
|
+
var u = e.theme, t = u.spacing, r = u.borderRadius, o = u.colors, s = e.isFocused;
|
|
1167
|
+
return y({
|
|
1168
|
+
alignItems: "center",
|
|
1169
|
+
display: "flex"
|
|
1170
|
+
}, i ? {} : {
|
|
1171
|
+
borderRadius: r / 2,
|
|
1172
|
+
backgroundColor: s ? o.dangerLight : void 0,
|
|
1173
|
+
paddingLeft: t.baseUnit,
|
|
1174
|
+
paddingRight: t.baseUnit,
|
|
1175
|
+
":hover": {
|
|
1176
|
+
backgroundColor: o.dangerLight,
|
|
1177
|
+
color: o.danger
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
}, rn = function(e) {
|
|
1181
|
+
var i = e.children, u = e.innerProps;
|
|
1182
|
+
return x("div", u, i);
|
|
1183
|
+
}, qu = rn, ea = rn;
|
|
1184
|
+
function ta(n) {
|
|
1185
|
+
var e = n.children, i = n.innerProps;
|
|
1186
|
+
return x("div", G({
|
|
1187
|
+
role: "button"
|
|
1188
|
+
}, i), e || x(it, {
|
|
1189
|
+
size: 14
|
|
1190
|
+
}));
|
|
1191
|
+
}
|
|
1192
|
+
var na = function(e) {
|
|
1193
|
+
var i = e.children, u = e.components, t = e.data, r = e.innerProps, o = e.isDisabled, s = e.removeProps, a = e.selectProps, l = u.Container, c = u.Label, d = u.Remove;
|
|
1194
|
+
return x(l, {
|
|
1195
|
+
data: t,
|
|
1196
|
+
innerProps: y(y({}, R(e, "multiValue", {
|
|
1197
|
+
"multi-value": !0,
|
|
1198
|
+
"multi-value--is-disabled": o
|
|
1199
|
+
})), r),
|
|
1200
|
+
selectProps: a
|
|
1201
|
+
}, x(c, {
|
|
1202
|
+
data: t,
|
|
1203
|
+
innerProps: y({}, R(e, "multiValueLabel", {
|
|
1204
|
+
"multi-value__label": !0
|
|
1205
|
+
})),
|
|
1206
|
+
selectProps: a
|
|
1207
|
+
}, i), x(d, {
|
|
1208
|
+
data: t,
|
|
1209
|
+
innerProps: y(y({}, R(e, "multiValueRemove", {
|
|
1210
|
+
"multi-value__remove": !0
|
|
1211
|
+
})), {}, {
|
|
1212
|
+
"aria-label": "Remove ".concat(i || "option")
|
|
1213
|
+
}, s),
|
|
1214
|
+
selectProps: a
|
|
1215
|
+
}));
|
|
1216
|
+
}, ia = na, ua = function(e, i) {
|
|
1217
|
+
var u = e.isDisabled, t = e.isFocused, r = e.isSelected, o = e.theme, s = o.spacing, a = o.colors;
|
|
1218
|
+
return y({
|
|
1219
|
+
label: "option",
|
|
1220
|
+
cursor: "default",
|
|
1221
|
+
display: "block",
|
|
1222
|
+
fontSize: "inherit",
|
|
1223
|
+
width: "100%",
|
|
1224
|
+
userSelect: "none",
|
|
1225
|
+
WebkitTapHighlightColor: "rgba(0, 0, 0, 0)"
|
|
1226
|
+
}, i ? {} : {
|
|
1227
|
+
backgroundColor: r ? a.primary : t ? a.primary25 : "transparent",
|
|
1228
|
+
color: u ? a.neutral20 : r ? a.neutral0 : "inherit",
|
|
1229
|
+
padding: "".concat(s.baseUnit * 2, "px ").concat(s.baseUnit * 3, "px"),
|
|
1230
|
+
// provide some affordance on touch devices
|
|
1231
|
+
":active": {
|
|
1232
|
+
backgroundColor: u ? void 0 : r ? a.primary : a.primary50
|
|
1233
|
+
}
|
|
1234
|
+
});
|
|
1235
|
+
}, aa = function(e) {
|
|
1236
|
+
var i = e.children, u = e.isDisabled, t = e.isFocused, r = e.isSelected, o = e.innerRef, s = e.innerProps;
|
|
1237
|
+
return x("div", G({}, R(e, "option", {
|
|
1238
|
+
option: !0,
|
|
1239
|
+
"option--is-disabled": u,
|
|
1240
|
+
"option--is-focused": t,
|
|
1241
|
+
"option--is-selected": r
|
|
1242
|
+
}), {
|
|
1243
|
+
ref: o,
|
|
1244
|
+
"aria-disabled": u
|
|
1245
|
+
}, s), i);
|
|
1246
|
+
}, ra = aa, oa = function(e, i) {
|
|
1247
|
+
var u = e.theme, t = u.spacing, r = u.colors;
|
|
1248
|
+
return y({
|
|
1249
|
+
label: "placeholder",
|
|
1250
|
+
gridArea: "1 / 1 / 2 / 3"
|
|
1251
|
+
}, i ? {} : {
|
|
1252
|
+
color: r.neutral50,
|
|
1253
|
+
marginLeft: t.baseUnit / 2,
|
|
1254
|
+
marginRight: t.baseUnit / 2
|
|
1255
|
+
});
|
|
1256
|
+
}, la = function(e) {
|
|
1257
|
+
var i = e.children, u = e.innerProps;
|
|
1258
|
+
return x("div", G({}, R(e, "placeholder", {
|
|
1259
|
+
placeholder: !0
|
|
1260
|
+
}), u), i);
|
|
1261
|
+
}, sa = la, ca = function(e, i) {
|
|
1262
|
+
var u = e.isDisabled, t = e.theme, r = t.spacing, o = t.colors;
|
|
1263
|
+
return y({
|
|
1264
|
+
label: "singleValue",
|
|
1265
|
+
gridArea: "1 / 1 / 2 / 3",
|
|
1266
|
+
maxWidth: "100%",
|
|
1267
|
+
overflow: "hidden",
|
|
1268
|
+
textOverflow: "ellipsis",
|
|
1269
|
+
whiteSpace: "nowrap"
|
|
1270
|
+
}, i ? {} : {
|
|
1271
|
+
color: u ? o.neutral40 : o.neutral80,
|
|
1272
|
+
marginLeft: r.baseUnit / 2,
|
|
1273
|
+
marginRight: r.baseUnit / 2
|
|
1274
|
+
});
|
|
1275
|
+
}, da = function(e) {
|
|
1276
|
+
var i = e.children, u = e.isDisabled, t = e.innerProps;
|
|
1277
|
+
return x("div", G({}, R(e, "singleValue", {
|
|
1278
|
+
"single-value": !0,
|
|
1279
|
+
"single-value--is-disabled": u
|
|
1280
|
+
}), t), i);
|
|
1281
|
+
}, ga = da, on = {
|
|
1282
|
+
ClearIndicator: Su,
|
|
1283
|
+
Control: Pu,
|
|
1284
|
+
DropdownIndicator: Bu,
|
|
1285
|
+
DownChevron: nn,
|
|
1286
|
+
CrossIcon: it,
|
|
1287
|
+
Group: ku,
|
|
1288
|
+
GroupHeading: Mu,
|
|
1289
|
+
IndicatorsContainer: Au,
|
|
1290
|
+
IndicatorSeparator: Wu,
|
|
1291
|
+
Input: Qu,
|
|
1292
|
+
LoadingIndicator: Xu,
|
|
1293
|
+
Menu: ou,
|
|
1294
|
+
MenuList: su,
|
|
1295
|
+
MenuPortal: Iu,
|
|
1296
|
+
LoadingMessage: bu,
|
|
1297
|
+
NoOptionsMessage: gu,
|
|
1298
|
+
MultiValue: ia,
|
|
1299
|
+
MultiValueContainer: qu,
|
|
1300
|
+
MultiValueLabel: ea,
|
|
1301
|
+
MultiValueRemove: ta,
|
|
1302
|
+
Option: ra,
|
|
1303
|
+
Placeholder: sa,
|
|
1304
|
+
SelectContainer: fu,
|
|
1305
|
+
SingleValue: ga,
|
|
1306
|
+
ValueContainer: Cu
|
|
1307
|
+
}, ba = function(e) {
|
|
1308
|
+
return y(y({}, on), e.components);
|
|
1309
|
+
}, Gt = Number.isNaN || function(e) {
|
|
1310
|
+
return typeof e == "number" && e !== e;
|
|
1311
|
+
};
|
|
1312
|
+
function pa(n, e) {
|
|
1313
|
+
return !!(n === e || Gt(n) && Gt(e));
|
|
1314
|
+
}
|
|
1315
|
+
function Ia(n, e) {
|
|
1316
|
+
if (n.length !== e.length)
|
|
1317
|
+
return !1;
|
|
1318
|
+
for (var i = 0; i < n.length; i++)
|
|
1319
|
+
if (!pa(n[i], e[i]))
|
|
1320
|
+
return !1;
|
|
1321
|
+
return !0;
|
|
1322
|
+
}
|
|
1323
|
+
function ma(n, e) {
|
|
1324
|
+
e === void 0 && (e = Ia);
|
|
1325
|
+
var i = null;
|
|
1326
|
+
function u() {
|
|
1327
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1328
|
+
t[r] = arguments[r];
|
|
1329
|
+
if (i && i.lastThis === this && e(t, i.lastArgs))
|
|
1330
|
+
return i.lastResult;
|
|
1331
|
+
var o = n.apply(this, t);
|
|
1332
|
+
return i = {
|
|
1333
|
+
lastResult: o,
|
|
1334
|
+
lastArgs: t,
|
|
1335
|
+
lastThis: this
|
|
1336
|
+
}, o;
|
|
1337
|
+
}
|
|
1338
|
+
return u.clear = function() {
|
|
1339
|
+
i = null;
|
|
1340
|
+
}, u;
|
|
1341
|
+
}
|
|
1342
|
+
function fa() {
|
|
1343
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1344
|
+
}
|
|
1345
|
+
var ha = process.env.NODE_ENV === "production" ? {
|
|
1346
|
+
name: "7pg0cj-a11yText",
|
|
1347
|
+
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
|
|
1348
|
+
} : {
|
|
1349
|
+
name: "1f43avz-a11yText-A11yText",
|
|
1350
|
+
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",
|
|
1351
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
1352
|
+
toString: fa
|
|
1353
|
+
}, Ca = function(e) {
|
|
1354
|
+
return x("span", G({
|
|
1355
|
+
css: ha
|
|
1356
|
+
}, e));
|
|
1357
|
+
}, Et = Ca, va = {
|
|
1358
|
+
guidance: function(e) {
|
|
1359
|
+
var i = e.isSearchable, u = e.isMulti, t = e.tabSelectsValue, r = e.context, o = e.isInitialFocus;
|
|
1360
|
+
switch (r) {
|
|
1361
|
+
case "menu":
|
|
1362
|
+
return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(t ? ", press Tab to select the option and exit the menu" : "", ".");
|
|
1363
|
+
case "input":
|
|
1364
|
+
return o ? "".concat(e["aria-label"] || "Select", " is focused ").concat(i ? ",type to refine list" : "", ", press Down to open the menu, ").concat(u ? " press left to focus selected values" : "") : "";
|
|
1365
|
+
case "value":
|
|
1366
|
+
return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
|
|
1367
|
+
default:
|
|
1368
|
+
return "";
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
onChange: function(e) {
|
|
1372
|
+
var i = e.action, u = e.label, t = u === void 0 ? "" : u, r = e.labels, o = e.isDisabled;
|
|
1373
|
+
switch (i) {
|
|
1374
|
+
case "deselect-option":
|
|
1375
|
+
case "pop-value":
|
|
1376
|
+
case "remove-value":
|
|
1377
|
+
return "option ".concat(t, ", deselected.");
|
|
1378
|
+
case "clear":
|
|
1379
|
+
return "All selected options have been cleared.";
|
|
1380
|
+
case "initial-input-focus":
|
|
1381
|
+
return "option".concat(r.length > 1 ? "s" : "", " ").concat(r.join(","), ", selected.");
|
|
1382
|
+
case "select-option":
|
|
1383
|
+
return o ? "option ".concat(t, " is disabled. Select another option.") : "option ".concat(t, ", selected.");
|
|
1384
|
+
default:
|
|
1385
|
+
return "";
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
onFocus: function(e) {
|
|
1389
|
+
var i = e.context, u = e.focused, t = e.options, r = e.label, o = r === void 0 ? "" : r, s = e.selectValue, a = e.isDisabled, l = e.isSelected, c = e.isAppleDevice, d = function(p, g) {
|
|
1390
|
+
return p && p.length ? "".concat(p.indexOf(g) + 1, " of ").concat(p.length) : "";
|
|
1391
|
+
};
|
|
1392
|
+
if (i === "value" && s)
|
|
1393
|
+
return "value ".concat(o, " focused, ").concat(d(s, u), ".");
|
|
1394
|
+
if (i === "menu" && c) {
|
|
1395
|
+
var b = a ? " disabled" : "", I = "".concat(l ? " selected" : "").concat(b);
|
|
1396
|
+
return "".concat(o).concat(I, ", ").concat(d(t, u), ".");
|
|
1397
|
+
}
|
|
1398
|
+
return "";
|
|
1399
|
+
},
|
|
1400
|
+
onFilter: function(e) {
|
|
1401
|
+
var i = e.inputValue, u = e.resultsMessage;
|
|
1402
|
+
return "".concat(u).concat(i ? " for search term " + i : "", ".");
|
|
1403
|
+
}
|
|
1404
|
+
}, Aa = function(e) {
|
|
1405
|
+
var i = e.ariaSelection, u = e.focusedOption, t = e.focusedValue, r = e.focusableOptions, o = e.isFocused, s = e.selectValue, a = e.selectProps, l = e.id, c = e.isAppleDevice, d = a.ariaLiveMessages, b = a.getOptionLabel, I = a.inputValue, h = a.isMulti, p = a.isOptionDisabled, g = a.isSearchable, m = a.menuIsOpen, f = a.options, C = a.screenReaderStatus, E = a.tabSelectsValue, v = a.isLoading, V = a["aria-label"], S = a["aria-live"], F = me(function() {
|
|
1406
|
+
return y(y({}, va), d || {});
|
|
1407
|
+
}, [d]), W = me(function() {
|
|
1408
|
+
var w = "";
|
|
1409
|
+
if (i && F.onChange) {
|
|
1410
|
+
var X = i.option, Y = i.options, k = i.removedValue, ue = i.removedValues, ae = i.value, Ae = function(_) {
|
|
1411
|
+
return Array.isArray(_) ? null : _;
|
|
1412
|
+
}, Z = k || X || Ae(ae), O = Z ? b(Z) : "", Q = Y || ue || void 0, re = Q ? Q.map(b) : [], J = y({
|
|
1413
|
+
// multiSelected items are usually items that have already been selected
|
|
1414
|
+
// or set by the user as a default value so we assume they are not disabled
|
|
1415
|
+
isDisabled: Z && p(Z, s),
|
|
1416
|
+
label: O,
|
|
1417
|
+
labels: re
|
|
1418
|
+
}, i);
|
|
1419
|
+
w = F.onChange(J);
|
|
1420
|
+
}
|
|
1421
|
+
return w;
|
|
1422
|
+
}, [i, F, p, s, b]), P = me(function() {
|
|
1423
|
+
var w = "", X = u || t, Y = !!(u && s && s.includes(u));
|
|
1424
|
+
if (X && F.onFocus) {
|
|
1425
|
+
var k = {
|
|
1426
|
+
focused: X,
|
|
1427
|
+
label: b(X),
|
|
1428
|
+
isDisabled: p(X, s),
|
|
1429
|
+
isSelected: Y,
|
|
1430
|
+
options: r,
|
|
1431
|
+
context: X === u ? "menu" : "value",
|
|
1432
|
+
selectValue: s,
|
|
1433
|
+
isAppleDevice: c
|
|
1434
|
+
};
|
|
1435
|
+
w = F.onFocus(k);
|
|
1436
|
+
}
|
|
1437
|
+
return w;
|
|
1438
|
+
}, [u, t, b, p, F, r, s, c]), L = me(function() {
|
|
1439
|
+
var w = "";
|
|
1440
|
+
if (m && f.length && !v && F.onFilter) {
|
|
1441
|
+
var X = C({
|
|
1442
|
+
count: r.length
|
|
1443
|
+
});
|
|
1444
|
+
w = F.onFilter({
|
|
1445
|
+
inputValue: I,
|
|
1446
|
+
resultsMessage: X
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
return w;
|
|
1450
|
+
}, [r, I, m, F, f, C, v]), H = (i == null ? void 0 : i.action) === "initial-input-focus", z = me(function() {
|
|
1451
|
+
var w = "";
|
|
1452
|
+
if (F.guidance) {
|
|
1453
|
+
var X = t ? "value" : m ? "menu" : "input";
|
|
1454
|
+
w = F.guidance({
|
|
1455
|
+
"aria-label": V,
|
|
1456
|
+
context: X,
|
|
1457
|
+
isDisabled: u && p(u, s),
|
|
1458
|
+
isMulti: h,
|
|
1459
|
+
isSearchable: g,
|
|
1460
|
+
tabSelectsValue: E,
|
|
1461
|
+
isInitialFocus: H
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
return w;
|
|
1465
|
+
}, [V, u, t, h, p, g, m, F, s, E, H]), U = x(je, null, x("span", {
|
|
1466
|
+
id: "aria-selection"
|
|
1467
|
+
}, W), x("span", {
|
|
1468
|
+
id: "aria-focused"
|
|
1469
|
+
}, P), x("span", {
|
|
1470
|
+
id: "aria-results"
|
|
1471
|
+
}, L), x("span", {
|
|
1472
|
+
id: "aria-guidance"
|
|
1473
|
+
}, z));
|
|
1474
|
+
return x(je, null, x(Et, {
|
|
1475
|
+
id: l
|
|
1476
|
+
}, H && U), x(Et, {
|
|
1477
|
+
"aria-live": S,
|
|
1478
|
+
"aria-atomic": "false",
|
|
1479
|
+
"aria-relevant": "additions text",
|
|
1480
|
+
role: "log"
|
|
1481
|
+
}, o && !H && U));
|
|
1482
|
+
}, xa = Aa, Ke = [{
|
|
1483
|
+
base: "A",
|
|
1484
|
+
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
1485
|
+
}, {
|
|
1486
|
+
base: "AA",
|
|
1487
|
+
letters: "Ꜳ"
|
|
1488
|
+
}, {
|
|
1489
|
+
base: "AE",
|
|
1490
|
+
letters: "ÆǼǢ"
|
|
1491
|
+
}, {
|
|
1492
|
+
base: "AO",
|
|
1493
|
+
letters: "Ꜵ"
|
|
1494
|
+
}, {
|
|
1495
|
+
base: "AU",
|
|
1496
|
+
letters: "Ꜷ"
|
|
1497
|
+
}, {
|
|
1498
|
+
base: "AV",
|
|
1499
|
+
letters: "ꜸꜺ"
|
|
1500
|
+
}, {
|
|
1501
|
+
base: "AY",
|
|
1502
|
+
letters: "Ꜽ"
|
|
1503
|
+
}, {
|
|
1504
|
+
base: "B",
|
|
1505
|
+
letters: "BⒷBḂḄḆɃƂƁ"
|
|
1506
|
+
}, {
|
|
1507
|
+
base: "C",
|
|
1508
|
+
letters: "CⒸCĆĈĊČÇḈƇȻꜾ"
|
|
1509
|
+
}, {
|
|
1510
|
+
base: "D",
|
|
1511
|
+
letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"
|
|
1512
|
+
}, {
|
|
1513
|
+
base: "DZ",
|
|
1514
|
+
letters: "DZDŽ"
|
|
1515
|
+
}, {
|
|
1516
|
+
base: "Dz",
|
|
1517
|
+
letters: "DzDž"
|
|
1518
|
+
}, {
|
|
1519
|
+
base: "E",
|
|
1520
|
+
letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"
|
|
1521
|
+
}, {
|
|
1522
|
+
base: "F",
|
|
1523
|
+
letters: "FⒻFḞƑꝻ"
|
|
1524
|
+
}, {
|
|
1525
|
+
base: "G",
|
|
1526
|
+
letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"
|
|
1527
|
+
}, {
|
|
1528
|
+
base: "H",
|
|
1529
|
+
letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"
|
|
1530
|
+
}, {
|
|
1531
|
+
base: "I",
|
|
1532
|
+
letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"
|
|
1533
|
+
}, {
|
|
1534
|
+
base: "J",
|
|
1535
|
+
letters: "JⒿJĴɈ"
|
|
1536
|
+
}, {
|
|
1537
|
+
base: "K",
|
|
1538
|
+
letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"
|
|
1539
|
+
}, {
|
|
1540
|
+
base: "L",
|
|
1541
|
+
letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"
|
|
1542
|
+
}, {
|
|
1543
|
+
base: "LJ",
|
|
1544
|
+
letters: "LJ"
|
|
1545
|
+
}, {
|
|
1546
|
+
base: "Lj",
|
|
1547
|
+
letters: "Lj"
|
|
1548
|
+
}, {
|
|
1549
|
+
base: "M",
|
|
1550
|
+
letters: "MⓂMḾṀṂⱮƜ"
|
|
1551
|
+
}, {
|
|
1552
|
+
base: "N",
|
|
1553
|
+
letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"
|
|
1554
|
+
}, {
|
|
1555
|
+
base: "NJ",
|
|
1556
|
+
letters: "NJ"
|
|
1557
|
+
}, {
|
|
1558
|
+
base: "Nj",
|
|
1559
|
+
letters: "Nj"
|
|
1560
|
+
}, {
|
|
1561
|
+
base: "O",
|
|
1562
|
+
letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"
|
|
1563
|
+
}, {
|
|
1564
|
+
base: "OI",
|
|
1565
|
+
letters: "Ƣ"
|
|
1566
|
+
}, {
|
|
1567
|
+
base: "OO",
|
|
1568
|
+
letters: "Ꝏ"
|
|
1569
|
+
}, {
|
|
1570
|
+
base: "OU",
|
|
1571
|
+
letters: "Ȣ"
|
|
1572
|
+
}, {
|
|
1573
|
+
base: "P",
|
|
1574
|
+
letters: "PⓅPṔṖƤⱣꝐꝒꝔ"
|
|
1575
|
+
}, {
|
|
1576
|
+
base: "Q",
|
|
1577
|
+
letters: "QⓆQꝖꝘɊ"
|
|
1578
|
+
}, {
|
|
1579
|
+
base: "R",
|
|
1580
|
+
letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"
|
|
1581
|
+
}, {
|
|
1582
|
+
base: "S",
|
|
1583
|
+
letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"
|
|
1584
|
+
}, {
|
|
1585
|
+
base: "T",
|
|
1586
|
+
letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"
|
|
1587
|
+
}, {
|
|
1588
|
+
base: "TZ",
|
|
1589
|
+
letters: "Ꜩ"
|
|
1590
|
+
}, {
|
|
1591
|
+
base: "U",
|
|
1592
|
+
letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"
|
|
1593
|
+
}, {
|
|
1594
|
+
base: "V",
|
|
1595
|
+
letters: "VⓋVṼṾƲꝞɅ"
|
|
1596
|
+
}, {
|
|
1597
|
+
base: "VY",
|
|
1598
|
+
letters: "Ꝡ"
|
|
1599
|
+
}, {
|
|
1600
|
+
base: "W",
|
|
1601
|
+
letters: "WⓌWẀẂŴẆẄẈⱲ"
|
|
1602
|
+
}, {
|
|
1603
|
+
base: "X",
|
|
1604
|
+
letters: "XⓍXẊẌ"
|
|
1605
|
+
}, {
|
|
1606
|
+
base: "Y",
|
|
1607
|
+
letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"
|
|
1608
|
+
}, {
|
|
1609
|
+
base: "Z",
|
|
1610
|
+
letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"
|
|
1611
|
+
}, {
|
|
1612
|
+
base: "a",
|
|
1613
|
+
letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"
|
|
1614
|
+
}, {
|
|
1615
|
+
base: "aa",
|
|
1616
|
+
letters: "ꜳ"
|
|
1617
|
+
}, {
|
|
1618
|
+
base: "ae",
|
|
1619
|
+
letters: "æǽǣ"
|
|
1620
|
+
}, {
|
|
1621
|
+
base: "ao",
|
|
1622
|
+
letters: "ꜵ"
|
|
1623
|
+
}, {
|
|
1624
|
+
base: "au",
|
|
1625
|
+
letters: "ꜷ"
|
|
1626
|
+
}, {
|
|
1627
|
+
base: "av",
|
|
1628
|
+
letters: "ꜹꜻ"
|
|
1629
|
+
}, {
|
|
1630
|
+
base: "ay",
|
|
1631
|
+
letters: "ꜽ"
|
|
1632
|
+
}, {
|
|
1633
|
+
base: "b",
|
|
1634
|
+
letters: "bⓑbḃḅḇƀƃɓ"
|
|
1635
|
+
}, {
|
|
1636
|
+
base: "c",
|
|
1637
|
+
letters: "cⓒcćĉċčçḉƈȼꜿↄ"
|
|
1638
|
+
}, {
|
|
1639
|
+
base: "d",
|
|
1640
|
+
letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ"
|
|
1641
|
+
}, {
|
|
1642
|
+
base: "dz",
|
|
1643
|
+
letters: "dzdž"
|
|
1644
|
+
}, {
|
|
1645
|
+
base: "e",
|
|
1646
|
+
letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"
|
|
1647
|
+
}, {
|
|
1648
|
+
base: "f",
|
|
1649
|
+
letters: "fⓕfḟƒꝼ"
|
|
1650
|
+
}, {
|
|
1651
|
+
base: "g",
|
|
1652
|
+
letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"
|
|
1653
|
+
}, {
|
|
1654
|
+
base: "h",
|
|
1655
|
+
letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"
|
|
1656
|
+
}, {
|
|
1657
|
+
base: "hv",
|
|
1658
|
+
letters: "ƕ"
|
|
1659
|
+
}, {
|
|
1660
|
+
base: "i",
|
|
1661
|
+
letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"
|
|
1662
|
+
}, {
|
|
1663
|
+
base: "j",
|
|
1664
|
+
letters: "jⓙjĵǰɉ"
|
|
1665
|
+
}, {
|
|
1666
|
+
base: "k",
|
|
1667
|
+
letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"
|
|
1668
|
+
}, {
|
|
1669
|
+
base: "l",
|
|
1670
|
+
letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"
|
|
1671
|
+
}, {
|
|
1672
|
+
base: "lj",
|
|
1673
|
+
letters: "lj"
|
|
1674
|
+
}, {
|
|
1675
|
+
base: "m",
|
|
1676
|
+
letters: "mⓜmḿṁṃɱɯ"
|
|
1677
|
+
}, {
|
|
1678
|
+
base: "n",
|
|
1679
|
+
letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"
|
|
1680
|
+
}, {
|
|
1681
|
+
base: "nj",
|
|
1682
|
+
letters: "nj"
|
|
1683
|
+
}, {
|
|
1684
|
+
base: "o",
|
|
1685
|
+
letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"
|
|
1686
|
+
}, {
|
|
1687
|
+
base: "oi",
|
|
1688
|
+
letters: "ƣ"
|
|
1689
|
+
}, {
|
|
1690
|
+
base: "ou",
|
|
1691
|
+
letters: "ȣ"
|
|
1692
|
+
}, {
|
|
1693
|
+
base: "oo",
|
|
1694
|
+
letters: "ꝏ"
|
|
1695
|
+
}, {
|
|
1696
|
+
base: "p",
|
|
1697
|
+
letters: "pⓟpṕṗƥᵽꝑꝓꝕ"
|
|
1698
|
+
}, {
|
|
1699
|
+
base: "q",
|
|
1700
|
+
letters: "qⓠqɋꝗꝙ"
|
|
1701
|
+
}, {
|
|
1702
|
+
base: "r",
|
|
1703
|
+
letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"
|
|
1704
|
+
}, {
|
|
1705
|
+
base: "s",
|
|
1706
|
+
letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"
|
|
1707
|
+
}, {
|
|
1708
|
+
base: "t",
|
|
1709
|
+
letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"
|
|
1710
|
+
}, {
|
|
1711
|
+
base: "tz",
|
|
1712
|
+
letters: "ꜩ"
|
|
1713
|
+
}, {
|
|
1714
|
+
base: "u",
|
|
1715
|
+
letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"
|
|
1716
|
+
}, {
|
|
1717
|
+
base: "v",
|
|
1718
|
+
letters: "vⓥvṽṿʋꝟʌ"
|
|
1719
|
+
}, {
|
|
1720
|
+
base: "vy",
|
|
1721
|
+
letters: "ꝡ"
|
|
1722
|
+
}, {
|
|
1723
|
+
base: "w",
|
|
1724
|
+
letters: "wⓦwẁẃŵẇẅẘẉⱳ"
|
|
1725
|
+
}, {
|
|
1726
|
+
base: "x",
|
|
1727
|
+
letters: "xⓧxẋẍ"
|
|
1728
|
+
}, {
|
|
1729
|
+
base: "y",
|
|
1730
|
+
letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"
|
|
1731
|
+
}, {
|
|
1732
|
+
base: "z",
|
|
1733
|
+
letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
|
|
1734
|
+
}], ya = new RegExp("[" + Ke.map(function(n) {
|
|
1735
|
+
return n.letters;
|
|
1736
|
+
}).join("") + "]", "g"), ln = {};
|
|
1737
|
+
for (var Le = 0; Le < Ke.length; Le++)
|
|
1738
|
+
for (var Oe = Ke[Le], Me = 0; Me < Oe.letters.length; Me++)
|
|
1739
|
+
ln[Oe.letters[Me]] = Oe.base;
|
|
1740
|
+
var sn = function(e) {
|
|
1741
|
+
return e.replace(ya, function(i) {
|
|
1742
|
+
return ln[i];
|
|
1743
|
+
});
|
|
1744
|
+
}, Ga = ma(sn), Ft = function(e) {
|
|
1745
|
+
return e.replace(/^\s+|\s+$/g, "");
|
|
1746
|
+
}, Ea = function(e) {
|
|
1747
|
+
return "".concat(e.label, " ").concat(e.value);
|
|
1748
|
+
}, Fa = function(e) {
|
|
1749
|
+
return function(i, u) {
|
|
1750
|
+
if (i.data.__isNew__) return !0;
|
|
1751
|
+
var t = y({
|
|
1752
|
+
ignoreCase: !0,
|
|
1753
|
+
ignoreAccents: !0,
|
|
1754
|
+
stringify: Ea,
|
|
1755
|
+
trim: !0,
|
|
1756
|
+
matchFrom: "any"
|
|
1757
|
+
}, e), r = t.ignoreCase, o = t.ignoreAccents, s = t.stringify, a = t.trim, l = t.matchFrom, c = a ? Ft(u) : u, d = a ? Ft(s(i)) : s(i);
|
|
1758
|
+
return r && (c = c.toLowerCase(), d = d.toLowerCase()), o && (c = Ga(c), d = sn(d)), l === "start" ? d.substr(0, c.length) === c : d.indexOf(c) > -1;
|
|
1759
|
+
};
|
|
1760
|
+
}, Ba = ["innerRef"];
|
|
1761
|
+
function Va(n) {
|
|
1762
|
+
var e = n.innerRef, i = ie(n, Ba), u = qi(i, "onExited", "in", "enter", "exit", "appear");
|
|
1763
|
+
return x("input", G({
|
|
1764
|
+
ref: e
|
|
1765
|
+
}, u, {
|
|
1766
|
+
css: /* @__PURE__ */ Dt({
|
|
1767
|
+
label: "dummyInput",
|
|
1768
|
+
// get rid of any default styles
|
|
1769
|
+
background: 0,
|
|
1770
|
+
border: 0,
|
|
1771
|
+
// important! this hides the flashing cursor
|
|
1772
|
+
caretColor: "transparent",
|
|
1773
|
+
fontSize: "inherit",
|
|
1774
|
+
gridArea: "1 / 1 / 2 / 3",
|
|
1775
|
+
outline: 0,
|
|
1776
|
+
padding: 0,
|
|
1777
|
+
// important! without `width` browsers won't allow focus
|
|
1778
|
+
width: 1,
|
|
1779
|
+
// remove cursor on desktop
|
|
1780
|
+
color: "transparent",
|
|
1781
|
+
// remove cursor on mobile whilst maintaining "scroll into view" behaviour
|
|
1782
|
+
left: -100,
|
|
1783
|
+
opacity: 0,
|
|
1784
|
+
position: "relative",
|
|
1785
|
+
transform: "scale(.01)"
|
|
1786
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")
|
|
1787
|
+
}));
|
|
1788
|
+
}
|
|
1789
|
+
var Sa = function(e) {
|
|
1790
|
+
e.cancelable && e.preventDefault(), e.stopPropagation();
|
|
1791
|
+
};
|
|
1792
|
+
function Ta(n) {
|
|
1793
|
+
var e = n.isEnabled, i = n.onBottomArrive, u = n.onBottomLeave, t = n.onTopArrive, r = n.onTopLeave, o = q(!1), s = q(!1), a = q(0), l = q(null), c = D(function(g, m) {
|
|
1794
|
+
if (l.current !== null) {
|
|
1795
|
+
var f = l.current, C = f.scrollTop, E = f.scrollHeight, v = f.clientHeight, V = l.current, S = m > 0, F = E - v - C, W = !1;
|
|
1796
|
+
F > m && o.current && (u && u(g), o.current = !1), S && s.current && (r && r(g), s.current = !1), S && m > F ? (i && !o.current && i(g), V.scrollTop = E, W = !0, o.current = !0) : !S && -m > C && (t && !s.current && t(g), V.scrollTop = 0, W = !0, s.current = !0), W && Sa(g);
|
|
1797
|
+
}
|
|
1798
|
+
}, [i, u, t, r]), d = D(function(g) {
|
|
1799
|
+
c(g, g.deltaY);
|
|
1800
|
+
}, [c]), b = D(function(g) {
|
|
1801
|
+
a.current = g.changedTouches[0].clientY;
|
|
1802
|
+
}, []), I = D(function(g) {
|
|
1803
|
+
var m = a.current - g.changedTouches[0].clientY;
|
|
1804
|
+
c(g, m);
|
|
1805
|
+
}, [c]), h = D(function(g) {
|
|
1806
|
+
if (g) {
|
|
1807
|
+
var m = _i ? {
|
|
1808
|
+
passive: !1
|
|
1809
|
+
} : !1;
|
|
1810
|
+
g.addEventListener("wheel", d, m), g.addEventListener("touchstart", b, m), g.addEventListener("touchmove", I, m);
|
|
1811
|
+
}
|
|
1812
|
+
}, [I, b, d]), p = D(function(g) {
|
|
1813
|
+
g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", b, !1), g.removeEventListener("touchmove", I, !1));
|
|
1814
|
+
}, [I, b, d]);
|
|
1815
|
+
return ee(function() {
|
|
1816
|
+
if (e) {
|
|
1817
|
+
var g = l.current;
|
|
1818
|
+
return h(g), function() {
|
|
1819
|
+
p(g);
|
|
1820
|
+
};
|
|
1821
|
+
}
|
|
1822
|
+
}, [e, h, p]), function(g) {
|
|
1823
|
+
l.current = g;
|
|
1824
|
+
};
|
|
1825
|
+
}
|
|
1826
|
+
var Bt = ["boxSizing", "height", "overflow", "paddingRight", "position"], Vt = {
|
|
1827
|
+
boxSizing: "border-box",
|
|
1828
|
+
// account for possible declaration `width: 100%;` on body
|
|
1829
|
+
overflow: "hidden",
|
|
1830
|
+
position: "relative",
|
|
1831
|
+
height: "100%"
|
|
1832
|
+
};
|
|
1833
|
+
function St(n) {
|
|
1834
|
+
n.preventDefault();
|
|
1835
|
+
}
|
|
1836
|
+
function Tt(n) {
|
|
1837
|
+
n.stopPropagation();
|
|
1838
|
+
}
|
|
1839
|
+
function Wt() {
|
|
1840
|
+
var n = this.scrollTop, e = this.scrollHeight, i = n + this.offsetHeight;
|
|
1841
|
+
n === 0 ? this.scrollTop = 1 : i === e && (this.scrollTop = n - 1);
|
|
1842
|
+
}
|
|
1843
|
+
function Rt() {
|
|
1844
|
+
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
1845
|
+
}
|
|
1846
|
+
var Nt = !!(typeof window < "u" && window.document && window.document.createElement), he = 0, pe = {
|
|
1847
|
+
capture: !1,
|
|
1848
|
+
passive: !1
|
|
1849
|
+
};
|
|
1850
|
+
function Wa(n) {
|
|
1851
|
+
var e = n.isEnabled, i = n.accountForScrollbars, u = i === void 0 ? !0 : i, t = q({}), r = q(null), o = D(function(a) {
|
|
1852
|
+
if (Nt) {
|
|
1853
|
+
var l = document.body, c = l && l.style;
|
|
1854
|
+
if (u && Bt.forEach(function(h) {
|
|
1855
|
+
var p = c && c[h];
|
|
1856
|
+
t.current[h] = p;
|
|
1857
|
+
}), u && he < 1) {
|
|
1858
|
+
var d = parseInt(t.current.paddingRight, 10) || 0, b = document.body ? document.body.clientWidth : 0, I = window.innerWidth - b + d || 0;
|
|
1859
|
+
Object.keys(Vt).forEach(function(h) {
|
|
1860
|
+
var p = Vt[h];
|
|
1861
|
+
c && (c[h] = p);
|
|
1862
|
+
}), c && (c.paddingRight = "".concat(I, "px"));
|
|
1863
|
+
}
|
|
1864
|
+
l && Rt() && (l.addEventListener("touchmove", St, pe), a && (a.addEventListener("touchstart", Wt, pe), a.addEventListener("touchmove", Tt, pe))), he += 1;
|
|
1865
|
+
}
|
|
1866
|
+
}, [u]), s = D(function(a) {
|
|
1867
|
+
if (Nt) {
|
|
1868
|
+
var l = document.body, c = l && l.style;
|
|
1869
|
+
he = Math.max(he - 1, 0), u && he < 1 && Bt.forEach(function(d) {
|
|
1870
|
+
var b = t.current[d];
|
|
1871
|
+
c && (c[d] = b);
|
|
1872
|
+
}), l && Rt() && (l.removeEventListener("touchmove", St, pe), a && (a.removeEventListener("touchstart", Wt, pe), a.removeEventListener("touchmove", Tt, pe)));
|
|
1873
|
+
}
|
|
1874
|
+
}, [u]);
|
|
1875
|
+
return ee(function() {
|
|
1876
|
+
if (e) {
|
|
1877
|
+
var a = r.current;
|
|
1878
|
+
return o(a), function() {
|
|
1879
|
+
s(a);
|
|
1880
|
+
};
|
|
1881
|
+
}
|
|
1882
|
+
}, [e, o, s]), function(a) {
|
|
1883
|
+
r.current = a;
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
function Ra() {
|
|
1887
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1888
|
+
}
|
|
1889
|
+
var Na = function(e) {
|
|
1890
|
+
var i = e.target;
|
|
1891
|
+
return i.ownerDocument.activeElement && i.ownerDocument.activeElement.blur();
|
|
1892
|
+
}, Xa = process.env.NODE_ENV === "production" ? {
|
|
1893
|
+
name: "1kfdb0e",
|
|
1894
|
+
styles: "position:fixed;left:0;bottom:0;right:0;top:0"
|
|
1895
|
+
} : {
|
|
1896
|
+
name: "bp8cua-ScrollManager",
|
|
1897
|
+
styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
|
|
1898
|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NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
|
|
1899
|
+
toString: Ra
|
|
1900
|
+
};
|
|
1901
|
+
function Za(n) {
|
|
1902
|
+
var e = n.children, i = n.lockEnabled, u = n.captureEnabled, t = u === void 0 ? !0 : u, r = n.onBottomArrive, o = n.onBottomLeave, s = n.onTopArrive, a = n.onTopLeave, l = Ta({
|
|
1903
|
+
isEnabled: t,
|
|
1904
|
+
onBottomArrive: r,
|
|
1905
|
+
onBottomLeave: o,
|
|
1906
|
+
onTopArrive: s,
|
|
1907
|
+
onTopLeave: a
|
|
1908
|
+
}), c = Wa({
|
|
1909
|
+
isEnabled: i
|
|
1910
|
+
}), d = function(I) {
|
|
1911
|
+
l(I), c(I);
|
|
1912
|
+
};
|
|
1913
|
+
return x(je, null, i && x("div", {
|
|
1914
|
+
onClick: Na,
|
|
1915
|
+
css: Xa
|
|
1916
|
+
}), e(d));
|
|
1917
|
+
}
|
|
1918
|
+
function wa() {
|
|
1919
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1920
|
+
}
|
|
1921
|
+
var Pa = process.env.NODE_ENV === "production" ? {
|
|
1922
|
+
name: "1a0ro4n-requiredInput",
|
|
1923
|
+
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"
|
|
1924
|
+
} : {
|
|
1925
|
+
name: "5kkxb2-requiredInput-RequiredInput",
|
|
1926
|
+
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",
|
|
1927
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",
|
|
1928
|
+
toString: wa
|
|
1929
|
+
}, Ha = function(e) {
|
|
1930
|
+
var i = e.name, u = e.onFocus;
|
|
1931
|
+
return x("input", {
|
|
1932
|
+
required: !0,
|
|
1933
|
+
name: i,
|
|
1934
|
+
tabIndex: -1,
|
|
1935
|
+
"aria-hidden": "true",
|
|
1936
|
+
onFocus: u,
|
|
1937
|
+
css: Pa,
|
|
1938
|
+
value: "",
|
|
1939
|
+
onChange: function() {
|
|
1940
|
+
}
|
|
1941
|
+
});
|
|
1942
|
+
}, Da = Ha;
|
|
1943
|
+
function ut(n) {
|
|
1944
|
+
var e;
|
|
1945
|
+
return typeof window < "u" && window.navigator != null ? n.test(((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.platform) || window.navigator.platform) : !1;
|
|
1946
|
+
}
|
|
1947
|
+
function La() {
|
|
1948
|
+
return ut(/^iPhone/i);
|
|
1949
|
+
}
|
|
1950
|
+
function cn() {
|
|
1951
|
+
return ut(/^Mac/i);
|
|
1952
|
+
}
|
|
1953
|
+
function Oa() {
|
|
1954
|
+
return ut(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
1955
|
+
cn() && navigator.maxTouchPoints > 1;
|
|
1956
|
+
}
|
|
1957
|
+
function Ma() {
|
|
1958
|
+
return La() || Oa();
|
|
1959
|
+
}
|
|
1960
|
+
function ka() {
|
|
1961
|
+
return cn() || Ma();
|
|
1962
|
+
}
|
|
1963
|
+
var Ja = function(e) {
|
|
1964
|
+
return e.label;
|
|
1965
|
+
}, Ya = function(e) {
|
|
1966
|
+
return e.label;
|
|
1967
|
+
}, ja = function(e) {
|
|
1968
|
+
return e.value;
|
|
1969
|
+
}, za = function(e) {
|
|
1970
|
+
return !!e.isDisabled;
|
|
1971
|
+
}, Ua = {
|
|
1972
|
+
clearIndicator: Vu,
|
|
1973
|
+
container: mu,
|
|
1974
|
+
control: Zu,
|
|
1975
|
+
dropdownIndicator: Fu,
|
|
1976
|
+
group: Du,
|
|
1977
|
+
groupHeading: Ou,
|
|
1978
|
+
indicatorsContainer: vu,
|
|
1979
|
+
indicatorSeparator: Tu,
|
|
1980
|
+
input: Yu,
|
|
1981
|
+
loadingIndicator: Nu,
|
|
1982
|
+
loadingMessage: du,
|
|
1983
|
+
menu: uu,
|
|
1984
|
+
menuList: lu,
|
|
1985
|
+
menuPortal: pu,
|
|
1986
|
+
multiValue: _u,
|
|
1987
|
+
multiValueLabel: Ku,
|
|
1988
|
+
multiValueRemove: $u,
|
|
1989
|
+
noOptionsMessage: cu,
|
|
1990
|
+
option: ua,
|
|
1991
|
+
placeholder: oa,
|
|
1992
|
+
singleValue: ca,
|
|
1993
|
+
valueContainer: hu
|
|
1994
|
+
}, Qa = {
|
|
1995
|
+
primary: "#2684FF",
|
|
1996
|
+
primary75: "#4C9AFF",
|
|
1997
|
+
primary50: "#B2D4FF",
|
|
1998
|
+
primary25: "#DEEBFF",
|
|
1999
|
+
danger: "#DE350B",
|
|
2000
|
+
dangerLight: "#FFBDAD",
|
|
2001
|
+
neutral0: "hsl(0, 0%, 100%)",
|
|
2002
|
+
neutral5: "hsl(0, 0%, 95%)",
|
|
2003
|
+
neutral10: "hsl(0, 0%, 90%)",
|
|
2004
|
+
neutral20: "hsl(0, 0%, 80%)",
|
|
2005
|
+
neutral30: "hsl(0, 0%, 70%)",
|
|
2006
|
+
neutral40: "hsl(0, 0%, 60%)",
|
|
2007
|
+
neutral50: "hsl(0, 0%, 50%)",
|
|
2008
|
+
neutral60: "hsl(0, 0%, 40%)",
|
|
2009
|
+
neutral70: "hsl(0, 0%, 30%)",
|
|
2010
|
+
neutral80: "hsl(0, 0%, 20%)",
|
|
2011
|
+
neutral90: "hsl(0, 0%, 10%)"
|
|
2012
|
+
}, _a = 4, dn = 4, Ka = 38, $a = dn * 2, qa = {
|
|
2013
|
+
baseUnit: dn,
|
|
2014
|
+
controlHeight: Ka,
|
|
2015
|
+
menuGutter: $a
|
|
2016
|
+
}, ke = {
|
|
2017
|
+
borderRadius: _a,
|
|
2018
|
+
colors: Qa,
|
|
2019
|
+
spacing: qa
|
|
2020
|
+
}, er = {
|
|
2021
|
+
"aria-live": "polite",
|
|
2022
|
+
backspaceRemovesValue: !0,
|
|
2023
|
+
blurInputOnSelect: xt(),
|
|
2024
|
+
captureMenuScroll: !xt(),
|
|
2025
|
+
classNames: {},
|
|
2026
|
+
closeMenuOnSelect: !0,
|
|
2027
|
+
closeMenuOnScroll: !1,
|
|
2028
|
+
components: {},
|
|
2029
|
+
controlShouldRenderValue: !0,
|
|
2030
|
+
escapeClearsValue: !1,
|
|
2031
|
+
filterOption: Fa(),
|
|
2032
|
+
formatGroupLabel: Ja,
|
|
2033
|
+
getOptionLabel: Ya,
|
|
2034
|
+
getOptionValue: ja,
|
|
2035
|
+
isDisabled: !1,
|
|
2036
|
+
isLoading: !1,
|
|
2037
|
+
isMulti: !1,
|
|
2038
|
+
isRtl: !1,
|
|
2039
|
+
isSearchable: !0,
|
|
2040
|
+
isOptionDisabled: za,
|
|
2041
|
+
loadingMessage: function() {
|
|
2042
|
+
return "Loading...";
|
|
2043
|
+
},
|
|
2044
|
+
maxMenuHeight: 300,
|
|
2045
|
+
minMenuHeight: 140,
|
|
2046
|
+
menuIsOpen: !1,
|
|
2047
|
+
menuPlacement: "bottom",
|
|
2048
|
+
menuPosition: "absolute",
|
|
2049
|
+
menuShouldBlockScroll: !1,
|
|
2050
|
+
menuShouldScrollIntoView: !Ui(),
|
|
2051
|
+
noOptionsMessage: function() {
|
|
2052
|
+
return "No options";
|
|
2053
|
+
},
|
|
2054
|
+
openMenuOnFocus: !1,
|
|
2055
|
+
openMenuOnClick: !0,
|
|
2056
|
+
options: [],
|
|
2057
|
+
pageSize: 5,
|
|
2058
|
+
placeholder: "Select...",
|
|
2059
|
+
screenReaderStatus: function(e) {
|
|
2060
|
+
var i = e.count;
|
|
2061
|
+
return "".concat(i, " result").concat(i !== 1 ? "s" : "", " available");
|
|
2062
|
+
},
|
|
2063
|
+
styles: {},
|
|
2064
|
+
tabIndex: 0,
|
|
2065
|
+
tabSelectsValue: !0,
|
|
2066
|
+
unstyled: !1
|
|
2067
|
+
};
|
|
2068
|
+
function Xt(n, e, i, u) {
|
|
2069
|
+
var t = pn(n, e, i), r = In(n, e, i), o = bn(n, e), s = Ze(n, e);
|
|
2070
|
+
return {
|
|
2071
|
+
type: "option",
|
|
2072
|
+
data: e,
|
|
2073
|
+
isDisabled: t,
|
|
2074
|
+
isSelected: r,
|
|
2075
|
+
label: o,
|
|
2076
|
+
value: s,
|
|
2077
|
+
index: u
|
|
2078
|
+
};
|
|
2079
|
+
}
|
|
2080
|
+
function Be(n, e) {
|
|
2081
|
+
return n.options.map(function(i, u) {
|
|
2082
|
+
if ("options" in i) {
|
|
2083
|
+
var t = i.options.map(function(o, s) {
|
|
2084
|
+
return Xt(n, o, e, s);
|
|
2085
|
+
}).filter(function(o) {
|
|
2086
|
+
return wt(n, o);
|
|
2087
|
+
});
|
|
2088
|
+
return t.length > 0 ? {
|
|
2089
|
+
type: "group",
|
|
2090
|
+
data: i,
|
|
2091
|
+
options: t,
|
|
2092
|
+
index: u
|
|
2093
|
+
} : void 0;
|
|
2094
|
+
}
|
|
2095
|
+
var r = Xt(n, i, e, u);
|
|
2096
|
+
return wt(n, r) ? r : void 0;
|
|
2097
|
+
}).filter(Ki);
|
|
2098
|
+
}
|
|
2099
|
+
function gn(n) {
|
|
2100
|
+
return n.reduce(function(e, i) {
|
|
2101
|
+
return i.type === "group" ? e.push.apply(e, qe(i.options.map(function(u) {
|
|
2102
|
+
return u.data;
|
|
2103
|
+
}))) : e.push(i.data), e;
|
|
2104
|
+
}, []);
|
|
2105
|
+
}
|
|
2106
|
+
function Zt(n, e) {
|
|
2107
|
+
return n.reduce(function(i, u) {
|
|
2108
|
+
return u.type === "group" ? i.push.apply(i, qe(u.options.map(function(t) {
|
|
2109
|
+
return {
|
|
2110
|
+
data: t.data,
|
|
2111
|
+
id: "".concat(e, "-").concat(u.index, "-").concat(t.index)
|
|
2112
|
+
};
|
|
2113
|
+
}))) : i.push({
|
|
2114
|
+
data: u.data,
|
|
2115
|
+
id: "".concat(e, "-").concat(u.index)
|
|
2116
|
+
}), i;
|
|
2117
|
+
}, []);
|
|
2118
|
+
}
|
|
2119
|
+
function tr(n, e) {
|
|
2120
|
+
return gn(Be(n, e));
|
|
2121
|
+
}
|
|
2122
|
+
function wt(n, e) {
|
|
2123
|
+
var i = n.inputValue, u = i === void 0 ? "" : i, t = e.data, r = e.isSelected, o = e.label, s = e.value;
|
|
2124
|
+
return (!fn(n) || !r) && mn(n, {
|
|
2125
|
+
label: o,
|
|
2126
|
+
value: s,
|
|
2127
|
+
data: t
|
|
2128
|
+
}, u);
|
|
2129
|
+
}
|
|
2130
|
+
function nr(n, e) {
|
|
2131
|
+
var i = n.focusedValue, u = n.selectValue, t = u.indexOf(i);
|
|
2132
|
+
if (t > -1) {
|
|
2133
|
+
var r = e.indexOf(i);
|
|
2134
|
+
if (r > -1)
|
|
2135
|
+
return i;
|
|
2136
|
+
if (t < e.length)
|
|
2137
|
+
return e[t];
|
|
2138
|
+
}
|
|
2139
|
+
return null;
|
|
2140
|
+
}
|
|
2141
|
+
function ir(n, e) {
|
|
2142
|
+
var i = n.focusedOption;
|
|
2143
|
+
return i && e.indexOf(i) > -1 ? i : e[0];
|
|
2144
|
+
}
|
|
2145
|
+
var Je = function(e, i) {
|
|
2146
|
+
var u, t = (u = e.find(function(r) {
|
|
2147
|
+
return r.data === i;
|
|
2148
|
+
})) === null || u === void 0 ? void 0 : u.id;
|
|
2149
|
+
return t || null;
|
|
2150
|
+
}, bn = function(e, i) {
|
|
2151
|
+
return e.getOptionLabel(i);
|
|
2152
|
+
}, Ze = function(e, i) {
|
|
2153
|
+
return e.getOptionValue(i);
|
|
2154
|
+
};
|
|
2155
|
+
function pn(n, e, i) {
|
|
2156
|
+
return typeof n.isOptionDisabled == "function" ? n.isOptionDisabled(e, i) : !1;
|
|
2157
|
+
}
|
|
2158
|
+
function In(n, e, i) {
|
|
2159
|
+
if (i.indexOf(e) > -1) return !0;
|
|
2160
|
+
if (typeof n.isOptionSelected == "function")
|
|
2161
|
+
return n.isOptionSelected(e, i);
|
|
2162
|
+
var u = Ze(n, e);
|
|
2163
|
+
return i.some(function(t) {
|
|
2164
|
+
return Ze(n, t) === u;
|
|
2165
|
+
});
|
|
2166
|
+
}
|
|
2167
|
+
function mn(n, e, i) {
|
|
2168
|
+
return n.filterOption ? n.filterOption(e, i) : !0;
|
|
2169
|
+
}
|
|
2170
|
+
var fn = function(e) {
|
|
2171
|
+
var i = e.hideSelectedOptions, u = e.isMulti;
|
|
2172
|
+
return i === void 0 ? u : i;
|
|
2173
|
+
}, ur = 1, hn = /* @__PURE__ */ function(n) {
|
|
2174
|
+
vi(i, n);
|
|
2175
|
+
var e = yi(i);
|
|
2176
|
+
function i(u) {
|
|
2177
|
+
var t;
|
|
2178
|
+
if (hi(this, i), t = e.call(this, u), t.state = {
|
|
2179
|
+
ariaSelection: null,
|
|
2180
|
+
focusedOption: null,
|
|
2181
|
+
focusedOptionId: null,
|
|
2182
|
+
focusableOptionsWithIds: [],
|
|
2183
|
+
focusedValue: null,
|
|
2184
|
+
inputIsHidden: !1,
|
|
2185
|
+
isFocused: !1,
|
|
2186
|
+
selectValue: [],
|
|
2187
|
+
clearFocusValueOnUpdate: !1,
|
|
2188
|
+
prevWasFocused: !1,
|
|
2189
|
+
inputIsHiddenAfterUpdate: void 0,
|
|
2190
|
+
prevProps: void 0,
|
|
2191
|
+
instancePrefix: ""
|
|
2192
|
+
}, t.blockOptionHover = !1, t.isComposing = !1, t.commonProps = void 0, t.initialTouchX = 0, t.initialTouchY = 0, t.openAfterFocus = !1, t.scrollToFocusedOptionOnUpdate = !1, t.userIsDragging = void 0, t.isAppleDevice = ka(), t.controlRef = null, t.getControlRef = function(a) {
|
|
2193
|
+
t.controlRef = a;
|
|
2194
|
+
}, t.focusedOptionRef = null, t.getFocusedOptionRef = function(a) {
|
|
2195
|
+
t.focusedOptionRef = a;
|
|
2196
|
+
}, t.menuListRef = null, t.getMenuListRef = function(a) {
|
|
2197
|
+
t.menuListRef = a;
|
|
2198
|
+
}, t.inputRef = null, t.getInputRef = function(a) {
|
|
2199
|
+
t.inputRef = a;
|
|
2200
|
+
}, t.focus = t.focusInput, t.blur = t.blurInput, t.onChange = function(a, l) {
|
|
2201
|
+
var c = t.props, d = c.onChange, b = c.name;
|
|
2202
|
+
l.name = b, t.ariaOnChange(a, l), d(a, l);
|
|
2203
|
+
}, t.setValue = function(a, l, c) {
|
|
2204
|
+
var d = t.props, b = d.closeMenuOnSelect, I = d.isMulti, h = d.inputValue;
|
|
2205
|
+
t.onInputChange("", {
|
|
2206
|
+
action: "set-value",
|
|
2207
|
+
prevInputValue: h
|
|
2208
|
+
}), b && (t.setState({
|
|
2209
|
+
inputIsHiddenAfterUpdate: !I
|
|
2210
|
+
}), t.onMenuClose()), t.setState({
|
|
2211
|
+
clearFocusValueOnUpdate: !0
|
|
2212
|
+
}), t.onChange(a, {
|
|
2213
|
+
action: l,
|
|
2214
|
+
option: c
|
|
2215
|
+
});
|
|
2216
|
+
}, t.selectOption = function(a) {
|
|
2217
|
+
var l = t.props, c = l.blurInputOnSelect, d = l.isMulti, b = l.name, I = t.state.selectValue, h = d && t.isOptionSelected(a, I), p = t.isOptionDisabled(a, I);
|
|
2218
|
+
if (h) {
|
|
2219
|
+
var g = t.getOptionValue(a);
|
|
2220
|
+
t.setValue(I.filter(function(m) {
|
|
2221
|
+
return t.getOptionValue(m) !== g;
|
|
2222
|
+
}), "deselect-option", a);
|
|
2223
|
+
} else if (!p)
|
|
2224
|
+
d ? t.setValue([].concat(qe(I), [a]), "select-option", a) : t.setValue(a, "select-option");
|
|
2225
|
+
else {
|
|
2226
|
+
t.ariaOnChange(a, {
|
|
2227
|
+
action: "select-option",
|
|
2228
|
+
option: a,
|
|
2229
|
+
name: b
|
|
2230
|
+
});
|
|
2231
|
+
return;
|
|
2232
|
+
}
|
|
2233
|
+
c && t.blurInput();
|
|
2234
|
+
}, t.removeValue = function(a) {
|
|
2235
|
+
var l = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(a), b = c.filter(function(h) {
|
|
2236
|
+
return t.getOptionValue(h) !== d;
|
|
2237
|
+
}), I = Fe(l, b, b[0] || null);
|
|
2238
|
+
t.onChange(I, {
|
|
2239
|
+
action: "remove-value",
|
|
2240
|
+
removedValue: a
|
|
2241
|
+
}), t.focusInput();
|
|
2242
|
+
}, t.clearValue = function() {
|
|
2243
|
+
var a = t.state.selectValue;
|
|
2244
|
+
t.onChange(Fe(t.props.isMulti, [], null), {
|
|
2245
|
+
action: "clear",
|
|
2246
|
+
removedValues: a
|
|
2247
|
+
});
|
|
2248
|
+
}, t.popValue = function() {
|
|
2249
|
+
var a = t.props.isMulti, l = t.state.selectValue, c = l[l.length - 1], d = l.slice(0, l.length - 1), b = Fe(a, d, d[0] || null);
|
|
2250
|
+
c && t.onChange(b, {
|
|
2251
|
+
action: "pop-value",
|
|
2252
|
+
removedValue: c
|
|
2253
|
+
});
|
|
2254
|
+
}, t.getFocusedOptionId = function(a) {
|
|
2255
|
+
return Je(t.state.focusableOptionsWithIds, a);
|
|
2256
|
+
}, t.getFocusableOptionsWithIds = function() {
|
|
2257
|
+
return Zt(Be(t.props, t.state.selectValue), t.getElementId("option"));
|
|
2258
|
+
}, t.getValue = function() {
|
|
2259
|
+
return t.state.selectValue;
|
|
2260
|
+
}, t.cx = function() {
|
|
2261
|
+
for (var a = arguments.length, l = new Array(a), c = 0; c < a; c++)
|
|
2262
|
+
l[c] = arguments[c];
|
|
2263
|
+
return ki.apply(void 0, [t.props.classNamePrefix].concat(l));
|
|
2264
|
+
}, t.getOptionLabel = function(a) {
|
|
2265
|
+
return bn(t.props, a);
|
|
2266
|
+
}, t.getOptionValue = function(a) {
|
|
2267
|
+
return Ze(t.props, a);
|
|
2268
|
+
}, t.getStyles = function(a, l) {
|
|
2269
|
+
var c = t.props.unstyled, d = Ua[a](l, c);
|
|
2270
|
+
d.boxSizing = "border-box";
|
|
2271
|
+
var b = t.props.styles[a];
|
|
2272
|
+
return b ? b(d, l) : d;
|
|
2273
|
+
}, t.getClassNames = function(a, l) {
|
|
2274
|
+
var c, d;
|
|
2275
|
+
return (c = (d = t.props.classNames)[a]) === null || c === void 0 ? void 0 : c.call(d, l);
|
|
2276
|
+
}, t.getElementId = function(a) {
|
|
2277
|
+
return "".concat(t.state.instancePrefix, "-").concat(a);
|
|
2278
|
+
}, t.getComponents = function() {
|
|
2279
|
+
return ba(t.props);
|
|
2280
|
+
}, t.buildCategorizedOptions = function() {
|
|
2281
|
+
return Be(t.props, t.state.selectValue);
|
|
2282
|
+
}, t.getCategorizedOptions = function() {
|
|
2283
|
+
return t.props.menuIsOpen ? t.buildCategorizedOptions() : [];
|
|
2284
|
+
}, t.buildFocusableOptions = function() {
|
|
2285
|
+
return gn(t.buildCategorizedOptions());
|
|
2286
|
+
}, t.getFocusableOptions = function() {
|
|
2287
|
+
return t.props.menuIsOpen ? t.buildFocusableOptions() : [];
|
|
2288
|
+
}, t.ariaOnChange = function(a, l) {
|
|
2289
|
+
t.setState({
|
|
2290
|
+
ariaSelection: y({
|
|
2291
|
+
value: a
|
|
2292
|
+
}, l)
|
|
2293
|
+
});
|
|
2294
|
+
}, t.onMenuMouseDown = function(a) {
|
|
2295
|
+
a.button === 0 && (a.stopPropagation(), a.preventDefault(), t.focusInput());
|
|
2296
|
+
}, t.onMenuMouseMove = function(a) {
|
|
2297
|
+
t.blockOptionHover = !1;
|
|
2298
|
+
}, t.onControlMouseDown = function(a) {
|
|
2299
|
+
if (!a.defaultPrevented) {
|
|
2300
|
+
var l = t.props.openMenuOnClick;
|
|
2301
|
+
t.state.isFocused ? t.props.menuIsOpen ? a.target.tagName !== "INPUT" && a.target.tagName !== "TEXTAREA" && t.onMenuClose() : l && t.openMenu("first") : (l && (t.openAfterFocus = !0), t.focusInput()), a.target.tagName !== "INPUT" && a.target.tagName !== "TEXTAREA" && a.preventDefault();
|
|
2302
|
+
}
|
|
2303
|
+
}, t.onDropdownIndicatorMouseDown = function(a) {
|
|
2304
|
+
if (!(a && a.type === "mousedown" && a.button !== 0) && !t.props.isDisabled) {
|
|
2305
|
+
var l = t.props, c = l.isMulti, d = l.menuIsOpen;
|
|
2306
|
+
t.focusInput(), d ? (t.setState({
|
|
2307
|
+
inputIsHiddenAfterUpdate: !c
|
|
2308
|
+
}), t.onMenuClose()) : t.openMenu("first"), a.preventDefault();
|
|
2309
|
+
}
|
|
2310
|
+
}, t.onClearIndicatorMouseDown = function(a) {
|
|
2311
|
+
a && a.type === "mousedown" && a.button !== 0 || (t.clearValue(), a.preventDefault(), t.openAfterFocus = !1, a.type === "touchend" ? t.focusInput() : setTimeout(function() {
|
|
2312
|
+
return t.focusInput();
|
|
2313
|
+
}));
|
|
2314
|
+
}, t.onScroll = function(a) {
|
|
2315
|
+
typeof t.props.closeMenuOnScroll == "boolean" ? a.target instanceof HTMLElement && Pe(a.target) && t.props.onMenuClose() : typeof t.props.closeMenuOnScroll == "function" && t.props.closeMenuOnScroll(a) && t.props.onMenuClose();
|
|
2316
|
+
}, t.onCompositionStart = function() {
|
|
2317
|
+
t.isComposing = !0;
|
|
2318
|
+
}, t.onCompositionEnd = function() {
|
|
2319
|
+
t.isComposing = !1;
|
|
2320
|
+
}, t.onTouchStart = function(a) {
|
|
2321
|
+
var l = a.touches, c = l && l.item(0);
|
|
2322
|
+
c && (t.initialTouchX = c.clientX, t.initialTouchY = c.clientY, t.userIsDragging = !1);
|
|
2323
|
+
}, t.onTouchMove = function(a) {
|
|
2324
|
+
var l = a.touches, c = l && l.item(0);
|
|
2325
|
+
if (c) {
|
|
2326
|
+
var d = Math.abs(c.clientX - t.initialTouchX), b = Math.abs(c.clientY - t.initialTouchY), I = 5;
|
|
2327
|
+
t.userIsDragging = d > I || b > I;
|
|
2328
|
+
}
|
|
2329
|
+
}, t.onTouchEnd = function(a) {
|
|
2330
|
+
t.userIsDragging || (t.controlRef && !t.controlRef.contains(a.target) && t.menuListRef && !t.menuListRef.contains(a.target) && t.blurInput(), t.initialTouchX = 0, t.initialTouchY = 0);
|
|
2331
|
+
}, t.onControlTouchEnd = function(a) {
|
|
2332
|
+
t.userIsDragging || t.onControlMouseDown(a);
|
|
2333
|
+
}, t.onClearIndicatorTouchEnd = function(a) {
|
|
2334
|
+
t.userIsDragging || t.onClearIndicatorMouseDown(a);
|
|
2335
|
+
}, t.onDropdownIndicatorTouchEnd = function(a) {
|
|
2336
|
+
t.userIsDragging || t.onDropdownIndicatorMouseDown(a);
|
|
2337
|
+
}, t.handleInputChange = function(a) {
|
|
2338
|
+
var l = t.props.inputValue, c = a.currentTarget.value;
|
|
2339
|
+
t.setState({
|
|
2340
|
+
inputIsHiddenAfterUpdate: !1
|
|
2341
|
+
}), t.onInputChange(c, {
|
|
2342
|
+
action: "input-change",
|
|
2343
|
+
prevInputValue: l
|
|
2344
|
+
}), t.props.menuIsOpen || t.onMenuOpen();
|
|
2345
|
+
}, t.onInputFocus = function(a) {
|
|
2346
|
+
t.props.onFocus && t.props.onFocus(a), t.setState({
|
|
2347
|
+
inputIsHiddenAfterUpdate: !1,
|
|
2348
|
+
isFocused: !0
|
|
2349
|
+
}), (t.openAfterFocus || t.props.openMenuOnFocus) && t.openMenu("first"), t.openAfterFocus = !1;
|
|
2350
|
+
}, t.onInputBlur = function(a) {
|
|
2351
|
+
var l = t.props.inputValue;
|
|
2352
|
+
if (t.menuListRef && t.menuListRef.contains(document.activeElement)) {
|
|
2353
|
+
t.inputRef.focus();
|
|
2354
|
+
return;
|
|
2355
|
+
}
|
|
2356
|
+
t.props.onBlur && t.props.onBlur(a), t.onInputChange("", {
|
|
2357
|
+
action: "input-blur",
|
|
2358
|
+
prevInputValue: l
|
|
2359
|
+
}), t.onMenuClose(), t.setState({
|
|
2360
|
+
focusedValue: null,
|
|
2361
|
+
isFocused: !1
|
|
2362
|
+
});
|
|
2363
|
+
}, t.onOptionHover = function(a) {
|
|
2364
|
+
if (!(t.blockOptionHover || t.state.focusedOption === a)) {
|
|
2365
|
+
var l = t.getFocusableOptions(), c = l.indexOf(a);
|
|
2366
|
+
t.setState({
|
|
2367
|
+
focusedOption: a,
|
|
2368
|
+
focusedOptionId: c > -1 ? t.getFocusedOptionId(a) : null
|
|
2369
|
+
});
|
|
2370
|
+
}
|
|
2371
|
+
}, t.shouldHideSelectedOptions = function() {
|
|
2372
|
+
return fn(t.props);
|
|
2373
|
+
}, t.onValueInputFocus = function(a) {
|
|
2374
|
+
a.preventDefault(), a.stopPropagation(), t.focus();
|
|
2375
|
+
}, t.onKeyDown = function(a) {
|
|
2376
|
+
var l = t.props, c = l.isMulti, d = l.backspaceRemovesValue, b = l.escapeClearsValue, I = l.inputValue, h = l.isClearable, p = l.isDisabled, g = l.menuIsOpen, m = l.onKeyDown, f = l.tabSelectsValue, C = l.openMenuOnFocus, E = t.state, v = E.focusedOption, V = E.focusedValue, S = E.selectValue;
|
|
2377
|
+
if (!p && !(typeof m == "function" && (m(a), a.defaultPrevented))) {
|
|
2378
|
+
switch (t.blockOptionHover = !0, a.key) {
|
|
2379
|
+
case "ArrowLeft":
|
|
2380
|
+
if (!c || I) return;
|
|
2381
|
+
t.focusValue("previous");
|
|
2382
|
+
break;
|
|
2383
|
+
case "ArrowRight":
|
|
2384
|
+
if (!c || I) return;
|
|
2385
|
+
t.focusValue("next");
|
|
2386
|
+
break;
|
|
2387
|
+
case "Delete":
|
|
2388
|
+
case "Backspace":
|
|
2389
|
+
if (I) return;
|
|
2390
|
+
if (V)
|
|
2391
|
+
t.removeValue(V);
|
|
2392
|
+
else {
|
|
2393
|
+
if (!d) return;
|
|
2394
|
+
c ? t.popValue() : h && t.clearValue();
|
|
2395
|
+
}
|
|
2396
|
+
break;
|
|
2397
|
+
case "Tab":
|
|
2398
|
+
if (t.isComposing || a.shiftKey || !g || !f || !v || // don't capture the event if the menu opens on focus and the focused
|
|
2399
|
+
// option is already selected; it breaks the flow of navigation
|
|
2400
|
+
C && t.isOptionSelected(v, S))
|
|
2401
|
+
return;
|
|
2402
|
+
t.selectOption(v);
|
|
2403
|
+
break;
|
|
2404
|
+
case "Enter":
|
|
2405
|
+
if (a.keyCode === 229)
|
|
2406
|
+
break;
|
|
2407
|
+
if (g) {
|
|
2408
|
+
if (!v || t.isComposing) return;
|
|
2409
|
+
t.selectOption(v);
|
|
2410
|
+
break;
|
|
2411
|
+
}
|
|
2412
|
+
return;
|
|
2413
|
+
case "Escape":
|
|
2414
|
+
g ? (t.setState({
|
|
2415
|
+
inputIsHiddenAfterUpdate: !1
|
|
2416
|
+
}), t.onInputChange("", {
|
|
2417
|
+
action: "menu-close",
|
|
2418
|
+
prevInputValue: I
|
|
2419
|
+
}), t.onMenuClose()) : h && b && t.clearValue();
|
|
2420
|
+
break;
|
|
2421
|
+
case " ":
|
|
2422
|
+
if (I)
|
|
2423
|
+
return;
|
|
2424
|
+
if (!g) {
|
|
2425
|
+
t.openMenu("first");
|
|
2426
|
+
break;
|
|
2427
|
+
}
|
|
2428
|
+
if (!v) return;
|
|
2429
|
+
t.selectOption(v);
|
|
2430
|
+
break;
|
|
2431
|
+
case "ArrowUp":
|
|
2432
|
+
g ? t.focusOption("up") : t.openMenu("last");
|
|
2433
|
+
break;
|
|
2434
|
+
case "ArrowDown":
|
|
2435
|
+
g ? t.focusOption("down") : t.openMenu("first");
|
|
2436
|
+
break;
|
|
2437
|
+
case "PageUp":
|
|
2438
|
+
if (!g) return;
|
|
2439
|
+
t.focusOption("pageup");
|
|
2440
|
+
break;
|
|
2441
|
+
case "PageDown":
|
|
2442
|
+
if (!g) return;
|
|
2443
|
+
t.focusOption("pagedown");
|
|
2444
|
+
break;
|
|
2445
|
+
case "Home":
|
|
2446
|
+
if (!g) return;
|
|
2447
|
+
t.focusOption("first");
|
|
2448
|
+
break;
|
|
2449
|
+
case "End":
|
|
2450
|
+
if (!g) return;
|
|
2451
|
+
t.focusOption("last");
|
|
2452
|
+
break;
|
|
2453
|
+
default:
|
|
2454
|
+
return;
|
|
2455
|
+
}
|
|
2456
|
+
a.preventDefault();
|
|
2457
|
+
}
|
|
2458
|
+
}, t.state.instancePrefix = "react-select-" + (t.props.instanceId || ++ur), t.state.selectValue = vt(u.value), u.menuIsOpen && t.state.selectValue.length) {
|
|
2459
|
+
var r = t.getFocusableOptionsWithIds(), o = t.buildFocusableOptions(), s = o.indexOf(t.state.selectValue[0]);
|
|
2460
|
+
t.state.focusableOptionsWithIds = r, t.state.focusedOption = o[s], t.state.focusedOptionId = Je(r, o[s]);
|
|
2461
|
+
}
|
|
2462
|
+
return t;
|
|
2463
|
+
}
|
|
2464
|
+
return Ci(i, [{
|
|
2465
|
+
key: "componentDidMount",
|
|
2466
|
+
value: function() {
|
|
2467
|
+
this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && At(this.menuListRef, this.focusedOptionRef);
|
|
2468
|
+
}
|
|
2469
|
+
}, {
|
|
2470
|
+
key: "componentDidUpdate",
|
|
2471
|
+
value: function(t) {
|
|
2472
|
+
var r = this.props, o = r.isDisabled, s = r.menuIsOpen, a = this.state.isFocused;
|
|
2473
|
+
// ensure focus is restored correctly when the control becomes enabled
|
|
2474
|
+
(a && !o && t.isDisabled || // ensure focus is on the Input when the menu opens
|
|
2475
|
+
a && s && !t.menuIsOpen) && this.focusInput(), a && o && !t.isDisabled ? this.setState({
|
|
2476
|
+
isFocused: !1
|
|
2477
|
+
}, this.onMenuClose) : !a && !o && t.isDisabled && this.inputRef === document.activeElement && this.setState({
|
|
2478
|
+
isFocused: !0
|
|
2479
|
+
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (At(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
|
|
2480
|
+
}
|
|
2481
|
+
}, {
|
|
2482
|
+
key: "componentWillUnmount",
|
|
2483
|
+
value: function() {
|
|
2484
|
+
this.stopListeningComposition(), this.stopListeningToTouch(), document.removeEventListener("scroll", this.onScroll, !0);
|
|
2485
|
+
}
|
|
2486
|
+
// ==============================
|
|
2487
|
+
// Consumer Handlers
|
|
2488
|
+
// ==============================
|
|
2489
|
+
}, {
|
|
2490
|
+
key: "onMenuOpen",
|
|
2491
|
+
value: function() {
|
|
2492
|
+
this.props.onMenuOpen();
|
|
2493
|
+
}
|
|
2494
|
+
}, {
|
|
2495
|
+
key: "onMenuClose",
|
|
2496
|
+
value: function() {
|
|
2497
|
+
this.onInputChange("", {
|
|
2498
|
+
action: "menu-close",
|
|
2499
|
+
prevInputValue: this.props.inputValue
|
|
2500
|
+
}), this.props.onMenuClose();
|
|
2501
|
+
}
|
|
2502
|
+
}, {
|
|
2503
|
+
key: "onInputChange",
|
|
2504
|
+
value: function(t, r) {
|
|
2505
|
+
this.props.onInputChange(t, r);
|
|
2506
|
+
}
|
|
2507
|
+
// ==============================
|
|
2508
|
+
// Methods
|
|
2509
|
+
// ==============================
|
|
2510
|
+
}, {
|
|
2511
|
+
key: "focusInput",
|
|
2512
|
+
value: function() {
|
|
2513
|
+
this.inputRef && this.inputRef.focus();
|
|
2514
|
+
}
|
|
2515
|
+
}, {
|
|
2516
|
+
key: "blurInput",
|
|
2517
|
+
value: function() {
|
|
2518
|
+
this.inputRef && this.inputRef.blur();
|
|
2519
|
+
}
|
|
2520
|
+
// aliased for consumers
|
|
2521
|
+
}, {
|
|
2522
|
+
key: "openMenu",
|
|
2523
|
+
value: function(t) {
|
|
2524
|
+
var r = this, o = this.state, s = o.selectValue, a = o.isFocused, l = this.buildFocusableOptions(), c = t === "first" ? 0 : l.length - 1;
|
|
2525
|
+
if (!this.props.isMulti) {
|
|
2526
|
+
var d = l.indexOf(s[0]);
|
|
2527
|
+
d > -1 && (c = d);
|
|
2528
|
+
}
|
|
2529
|
+
this.scrollToFocusedOptionOnUpdate = !(a && this.menuListRef), this.setState({
|
|
2530
|
+
inputIsHiddenAfterUpdate: !1,
|
|
2531
|
+
focusedValue: null,
|
|
2532
|
+
focusedOption: l[c],
|
|
2533
|
+
focusedOptionId: this.getFocusedOptionId(l[c])
|
|
2534
|
+
}, function() {
|
|
2535
|
+
return r.onMenuOpen();
|
|
2536
|
+
});
|
|
2537
|
+
}
|
|
2538
|
+
}, {
|
|
2539
|
+
key: "focusValue",
|
|
2540
|
+
value: function(t) {
|
|
2541
|
+
var r = this.state, o = r.selectValue, s = r.focusedValue;
|
|
2542
|
+
if (this.props.isMulti) {
|
|
2543
|
+
this.setState({
|
|
2544
|
+
focusedOption: null
|
|
2545
|
+
});
|
|
2546
|
+
var a = o.indexOf(s);
|
|
2547
|
+
s || (a = -1);
|
|
2548
|
+
var l = o.length - 1, c = -1;
|
|
2549
|
+
if (o.length) {
|
|
2550
|
+
switch (t) {
|
|
2551
|
+
case "previous":
|
|
2552
|
+
a === 0 ? c = 0 : a === -1 ? c = l : c = a - 1;
|
|
2553
|
+
break;
|
|
2554
|
+
case "next":
|
|
2555
|
+
a > -1 && a < l && (c = a + 1);
|
|
2556
|
+
break;
|
|
2557
|
+
}
|
|
2558
|
+
this.setState({
|
|
2559
|
+
inputIsHidden: c !== -1,
|
|
2560
|
+
focusedValue: o[c]
|
|
2561
|
+
});
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
}, {
|
|
2566
|
+
key: "focusOption",
|
|
2567
|
+
value: function() {
|
|
2568
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", r = this.props.pageSize, o = this.state.focusedOption, s = this.getFocusableOptions();
|
|
2569
|
+
if (s.length) {
|
|
2570
|
+
var a = 0, l = s.indexOf(o);
|
|
2571
|
+
o || (l = -1), t === "up" ? a = l > 0 ? l - 1 : s.length - 1 : t === "down" ? a = (l + 1) % s.length : t === "pageup" ? (a = l - r, a < 0 && (a = 0)) : t === "pagedown" ? (a = l + r, a > s.length - 1 && (a = s.length - 1)) : t === "last" && (a = s.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
|
|
2572
|
+
focusedOption: s[a],
|
|
2573
|
+
focusedValue: null,
|
|
2574
|
+
focusedOptionId: this.getFocusedOptionId(s[a])
|
|
2575
|
+
});
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
}, {
|
|
2579
|
+
key: "getTheme",
|
|
2580
|
+
value: (
|
|
2581
|
+
// ==============================
|
|
2582
|
+
// Getters
|
|
2583
|
+
// ==============================
|
|
2584
|
+
function() {
|
|
2585
|
+
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(ke) : y(y({}, ke), this.props.theme) : ke;
|
|
2586
|
+
}
|
|
2587
|
+
)
|
|
2588
|
+
}, {
|
|
2589
|
+
key: "getCommonProps",
|
|
2590
|
+
value: function() {
|
|
2591
|
+
var t = this.clearValue, r = this.cx, o = this.getStyles, s = this.getClassNames, a = this.getValue, l = this.selectOption, c = this.setValue, d = this.props, b = d.isMulti, I = d.isRtl, h = d.options, p = this.hasValue();
|
|
2592
|
+
return {
|
|
2593
|
+
clearValue: t,
|
|
2594
|
+
cx: r,
|
|
2595
|
+
getStyles: o,
|
|
2596
|
+
getClassNames: s,
|
|
2597
|
+
getValue: a,
|
|
2598
|
+
hasValue: p,
|
|
2599
|
+
isMulti: b,
|
|
2600
|
+
isRtl: I,
|
|
2601
|
+
options: h,
|
|
2602
|
+
selectOption: l,
|
|
2603
|
+
selectProps: d,
|
|
2604
|
+
setValue: c,
|
|
2605
|
+
theme: this.getTheme()
|
|
2606
|
+
};
|
|
2607
|
+
}
|
|
2608
|
+
}, {
|
|
2609
|
+
key: "hasValue",
|
|
2610
|
+
value: function() {
|
|
2611
|
+
var t = this.state.selectValue;
|
|
2612
|
+
return t.length > 0;
|
|
2613
|
+
}
|
|
2614
|
+
}, {
|
|
2615
|
+
key: "hasOptions",
|
|
2616
|
+
value: function() {
|
|
2617
|
+
return !!this.getFocusableOptions().length;
|
|
2618
|
+
}
|
|
2619
|
+
}, {
|
|
2620
|
+
key: "isClearable",
|
|
2621
|
+
value: function() {
|
|
2622
|
+
var t = this.props, r = t.isClearable, o = t.isMulti;
|
|
2623
|
+
return r === void 0 ? o : r;
|
|
2624
|
+
}
|
|
2625
|
+
}, {
|
|
2626
|
+
key: "isOptionDisabled",
|
|
2627
|
+
value: function(t, r) {
|
|
2628
|
+
return pn(this.props, t, r);
|
|
2629
|
+
}
|
|
2630
|
+
}, {
|
|
2631
|
+
key: "isOptionSelected",
|
|
2632
|
+
value: function(t, r) {
|
|
2633
|
+
return In(this.props, t, r);
|
|
2634
|
+
}
|
|
2635
|
+
}, {
|
|
2636
|
+
key: "filterOption",
|
|
2637
|
+
value: function(t, r) {
|
|
2638
|
+
return mn(this.props, t, r);
|
|
2639
|
+
}
|
|
2640
|
+
}, {
|
|
2641
|
+
key: "formatOptionLabel",
|
|
2642
|
+
value: function(t, r) {
|
|
2643
|
+
if (typeof this.props.formatOptionLabel == "function") {
|
|
2644
|
+
var o = this.props.inputValue, s = this.state.selectValue;
|
|
2645
|
+
return this.props.formatOptionLabel(t, {
|
|
2646
|
+
context: r,
|
|
2647
|
+
inputValue: o,
|
|
2648
|
+
selectValue: s
|
|
2649
|
+
});
|
|
2650
|
+
} else
|
|
2651
|
+
return this.getOptionLabel(t);
|
|
2652
|
+
}
|
|
2653
|
+
}, {
|
|
2654
|
+
key: "formatGroupLabel",
|
|
2655
|
+
value: function(t) {
|
|
2656
|
+
return this.props.formatGroupLabel(t);
|
|
2657
|
+
}
|
|
2658
|
+
// ==============================
|
|
2659
|
+
// Mouse Handlers
|
|
2660
|
+
// ==============================
|
|
2661
|
+
}, {
|
|
2662
|
+
key: "startListeningComposition",
|
|
2663
|
+
value: (
|
|
2664
|
+
// ==============================
|
|
2665
|
+
// Composition Handlers
|
|
2666
|
+
// ==============================
|
|
2667
|
+
function() {
|
|
2668
|
+
document && document.addEventListener && (document.addEventListener("compositionstart", this.onCompositionStart, !1), document.addEventListener("compositionend", this.onCompositionEnd, !1));
|
|
2669
|
+
}
|
|
2670
|
+
)
|
|
2671
|
+
}, {
|
|
2672
|
+
key: "stopListeningComposition",
|
|
2673
|
+
value: function() {
|
|
2674
|
+
document && document.removeEventListener && (document.removeEventListener("compositionstart", this.onCompositionStart), document.removeEventListener("compositionend", this.onCompositionEnd));
|
|
2675
|
+
}
|
|
2676
|
+
}, {
|
|
2677
|
+
key: "startListeningToTouch",
|
|
2678
|
+
value: (
|
|
2679
|
+
// ==============================
|
|
2680
|
+
// Touch Handlers
|
|
2681
|
+
// ==============================
|
|
2682
|
+
function() {
|
|
2683
|
+
document && document.addEventListener && (document.addEventListener("touchstart", this.onTouchStart, !1), document.addEventListener("touchmove", this.onTouchMove, !1), document.addEventListener("touchend", this.onTouchEnd, !1));
|
|
2684
|
+
}
|
|
2685
|
+
)
|
|
2686
|
+
}, {
|
|
2687
|
+
key: "stopListeningToTouch",
|
|
2688
|
+
value: function() {
|
|
2689
|
+
document && document.removeEventListener && (document.removeEventListener("touchstart", this.onTouchStart), document.removeEventListener("touchmove", this.onTouchMove), document.removeEventListener("touchend", this.onTouchEnd));
|
|
2690
|
+
}
|
|
2691
|
+
}, {
|
|
2692
|
+
key: "renderInput",
|
|
2693
|
+
value: (
|
|
2694
|
+
// ==============================
|
|
2695
|
+
// Renderers
|
|
2696
|
+
// ==============================
|
|
2697
|
+
function() {
|
|
2698
|
+
var t = this.props, r = t.isDisabled, o = t.isSearchable, s = t.inputId, a = t.inputValue, l = t.tabIndex, c = t.form, d = t.menuIsOpen, b = t.required, I = this.getComponents(), h = I.Input, p = this.state, g = p.inputIsHidden, m = p.ariaSelection, f = this.commonProps, C = s || this.getElementId("input"), E = y(y(y({
|
|
2699
|
+
"aria-autocomplete": "list",
|
|
2700
|
+
"aria-expanded": d,
|
|
2701
|
+
"aria-haspopup": !0,
|
|
2702
|
+
"aria-errormessage": this.props["aria-errormessage"],
|
|
2703
|
+
"aria-invalid": this.props["aria-invalid"],
|
|
2704
|
+
"aria-label": this.props["aria-label"],
|
|
2705
|
+
"aria-labelledby": this.props["aria-labelledby"],
|
|
2706
|
+
"aria-required": b,
|
|
2707
|
+
role: "combobox",
|
|
2708
|
+
"aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
2709
|
+
}, d && {
|
|
2710
|
+
"aria-controls": this.getElementId("listbox")
|
|
2711
|
+
}), !o && {
|
|
2712
|
+
"aria-readonly": !0
|
|
2713
|
+
}), this.hasValue() ? (m == null ? void 0 : m.action) === "initial-input-focus" && {
|
|
2714
|
+
"aria-describedby": this.getElementId("live-region")
|
|
2715
|
+
} : {
|
|
2716
|
+
"aria-describedby": this.getElementId("placeholder")
|
|
2717
|
+
});
|
|
2718
|
+
return o ? /* @__PURE__ */ T.createElement(h, G({}, f, {
|
|
2719
|
+
autoCapitalize: "none",
|
|
2720
|
+
autoComplete: "off",
|
|
2721
|
+
autoCorrect: "off",
|
|
2722
|
+
id: C,
|
|
2723
|
+
innerRef: this.getInputRef,
|
|
2724
|
+
isDisabled: r,
|
|
2725
|
+
isHidden: g,
|
|
2726
|
+
onBlur: this.onInputBlur,
|
|
2727
|
+
onChange: this.handleInputChange,
|
|
2728
|
+
onFocus: this.onInputFocus,
|
|
2729
|
+
spellCheck: "false",
|
|
2730
|
+
tabIndex: l,
|
|
2731
|
+
form: c,
|
|
2732
|
+
type: "text",
|
|
2733
|
+
value: a
|
|
2734
|
+
}, E)) : /* @__PURE__ */ T.createElement(Va, G({
|
|
2735
|
+
id: C,
|
|
2736
|
+
innerRef: this.getInputRef,
|
|
2737
|
+
onBlur: this.onInputBlur,
|
|
2738
|
+
onChange: Ne,
|
|
2739
|
+
onFocus: this.onInputFocus,
|
|
2740
|
+
disabled: r,
|
|
2741
|
+
tabIndex: l,
|
|
2742
|
+
inputMode: "none",
|
|
2743
|
+
form: c,
|
|
2744
|
+
value: ""
|
|
2745
|
+
}, E));
|
|
2746
|
+
}
|
|
2747
|
+
)
|
|
2748
|
+
}, {
|
|
2749
|
+
key: "renderPlaceholderOrValue",
|
|
2750
|
+
value: function() {
|
|
2751
|
+
var t = this, r = this.getComponents(), o = r.MultiValue, s = r.MultiValueContainer, a = r.MultiValueLabel, l = r.MultiValueRemove, c = r.SingleValue, d = r.Placeholder, b = this.commonProps, I = this.props, h = I.controlShouldRenderValue, p = I.isDisabled, g = I.isMulti, m = I.inputValue, f = I.placeholder, C = this.state, E = C.selectValue, v = C.focusedValue, V = C.isFocused;
|
|
2752
|
+
if (!this.hasValue() || !h)
|
|
2753
|
+
return m ? null : /* @__PURE__ */ T.createElement(d, G({}, b, {
|
|
2754
|
+
key: "placeholder",
|
|
2755
|
+
isDisabled: p,
|
|
2756
|
+
isFocused: V,
|
|
2757
|
+
innerProps: {
|
|
2758
|
+
id: this.getElementId("placeholder")
|
|
2759
|
+
}
|
|
2760
|
+
}), f);
|
|
2761
|
+
if (g)
|
|
2762
|
+
return E.map(function(F, W) {
|
|
2763
|
+
var P = F === v, L = "".concat(t.getOptionLabel(F), "-").concat(t.getOptionValue(F));
|
|
2764
|
+
return /* @__PURE__ */ T.createElement(o, G({}, b, {
|
|
2765
|
+
components: {
|
|
2766
|
+
Container: s,
|
|
2767
|
+
Label: a,
|
|
2768
|
+
Remove: l
|
|
2769
|
+
},
|
|
2770
|
+
isFocused: P,
|
|
2771
|
+
isDisabled: p,
|
|
2772
|
+
key: L,
|
|
2773
|
+
index: W,
|
|
2774
|
+
removeProps: {
|
|
2775
|
+
onClick: function() {
|
|
2776
|
+
return t.removeValue(F);
|
|
2777
|
+
},
|
|
2778
|
+
onTouchEnd: function() {
|
|
2779
|
+
return t.removeValue(F);
|
|
2780
|
+
},
|
|
2781
|
+
onMouseDown: function(z) {
|
|
2782
|
+
z.preventDefault();
|
|
2783
|
+
}
|
|
2784
|
+
},
|
|
2785
|
+
data: F
|
|
2786
|
+
}), t.formatOptionLabel(F, "value"));
|
|
2787
|
+
});
|
|
2788
|
+
if (m)
|
|
2789
|
+
return null;
|
|
2790
|
+
var S = E[0];
|
|
2791
|
+
return /* @__PURE__ */ T.createElement(c, G({}, b, {
|
|
2792
|
+
data: S,
|
|
2793
|
+
isDisabled: p
|
|
2794
|
+
}), this.formatOptionLabel(S, "value"));
|
|
2795
|
+
}
|
|
2796
|
+
}, {
|
|
2797
|
+
key: "renderClearIndicator",
|
|
2798
|
+
value: function() {
|
|
2799
|
+
var t = this.getComponents(), r = t.ClearIndicator, o = this.commonProps, s = this.props, a = s.isDisabled, l = s.isLoading, c = this.state.isFocused;
|
|
2800
|
+
if (!this.isClearable() || !r || a || !this.hasValue() || l)
|
|
2801
|
+
return null;
|
|
2802
|
+
var d = {
|
|
2803
|
+
onMouseDown: this.onClearIndicatorMouseDown,
|
|
2804
|
+
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
2805
|
+
"aria-hidden": "true"
|
|
2806
|
+
};
|
|
2807
|
+
return /* @__PURE__ */ T.createElement(r, G({}, o, {
|
|
2808
|
+
innerProps: d,
|
|
2809
|
+
isFocused: c
|
|
2810
|
+
}));
|
|
2811
|
+
}
|
|
2812
|
+
}, {
|
|
2813
|
+
key: "renderLoadingIndicator",
|
|
2814
|
+
value: function() {
|
|
2815
|
+
var t = this.getComponents(), r = t.LoadingIndicator, o = this.commonProps, s = this.props, a = s.isDisabled, l = s.isLoading, c = this.state.isFocused;
|
|
2816
|
+
if (!r || !l) return null;
|
|
2817
|
+
var d = {
|
|
2818
|
+
"aria-hidden": "true"
|
|
2819
|
+
};
|
|
2820
|
+
return /* @__PURE__ */ T.createElement(r, G({}, o, {
|
|
2821
|
+
innerProps: d,
|
|
2822
|
+
isDisabled: a,
|
|
2823
|
+
isFocused: c
|
|
2824
|
+
}));
|
|
2825
|
+
}
|
|
2826
|
+
}, {
|
|
2827
|
+
key: "renderIndicatorSeparator",
|
|
2828
|
+
value: function() {
|
|
2829
|
+
var t = this.getComponents(), r = t.DropdownIndicator, o = t.IndicatorSeparator;
|
|
2830
|
+
if (!r || !o) return null;
|
|
2831
|
+
var s = this.commonProps, a = this.props.isDisabled, l = this.state.isFocused;
|
|
2832
|
+
return /* @__PURE__ */ T.createElement(o, G({}, s, {
|
|
2833
|
+
isDisabled: a,
|
|
2834
|
+
isFocused: l
|
|
2835
|
+
}));
|
|
2836
|
+
}
|
|
2837
|
+
}, {
|
|
2838
|
+
key: "renderDropdownIndicator",
|
|
2839
|
+
value: function() {
|
|
2840
|
+
var t = this.getComponents(), r = t.DropdownIndicator;
|
|
2841
|
+
if (!r) return null;
|
|
2842
|
+
var o = this.commonProps, s = this.props.isDisabled, a = this.state.isFocused, l = {
|
|
2843
|
+
onMouseDown: this.onDropdownIndicatorMouseDown,
|
|
2844
|
+
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
2845
|
+
"aria-hidden": "true"
|
|
2846
|
+
};
|
|
2847
|
+
return /* @__PURE__ */ T.createElement(r, G({}, o, {
|
|
2848
|
+
innerProps: l,
|
|
2849
|
+
isDisabled: s,
|
|
2850
|
+
isFocused: a
|
|
2851
|
+
}));
|
|
2852
|
+
}
|
|
2853
|
+
}, {
|
|
2854
|
+
key: "renderMenu",
|
|
2855
|
+
value: function() {
|
|
2856
|
+
var t = this, r = this.getComponents(), o = r.Group, s = r.GroupHeading, a = r.Menu, l = r.MenuList, c = r.MenuPortal, d = r.LoadingMessage, b = r.NoOptionsMessage, I = r.Option, h = this.commonProps, p = this.state.focusedOption, g = this.props, m = g.captureMenuScroll, f = g.inputValue, C = g.isLoading, E = g.loadingMessage, v = g.minMenuHeight, V = g.maxMenuHeight, S = g.menuIsOpen, F = g.menuPlacement, W = g.menuPosition, P = g.menuPortalTarget, L = g.menuShouldBlockScroll, H = g.menuShouldScrollIntoView, z = g.noOptionsMessage, U = g.onMenuScrollToTop, w = g.onMenuScrollToBottom;
|
|
2857
|
+
if (!S) return null;
|
|
2858
|
+
var X = function(O, Q) {
|
|
2859
|
+
var re = O.type, J = O.data, oe = O.isDisabled, _ = O.isSelected, xe = O.label, xn = O.value, at = p === J, rt = oe ? void 0 : function() {
|
|
2860
|
+
return t.onOptionHover(J);
|
|
2861
|
+
}, yn = oe ? void 0 : function() {
|
|
2862
|
+
return t.selectOption(J);
|
|
2863
|
+
}, ot = "".concat(t.getElementId("option"), "-").concat(Q), Gn = {
|
|
2864
|
+
id: ot,
|
|
2865
|
+
onClick: yn,
|
|
2866
|
+
onMouseMove: rt,
|
|
2867
|
+
onMouseOver: rt,
|
|
2868
|
+
tabIndex: -1,
|
|
2869
|
+
role: "option",
|
|
2870
|
+
"aria-selected": t.isAppleDevice ? void 0 : _
|
|
2871
|
+
// is not supported on Apple devices
|
|
2872
|
+
};
|
|
2873
|
+
return /* @__PURE__ */ T.createElement(I, G({}, h, {
|
|
2874
|
+
innerProps: Gn,
|
|
2875
|
+
data: J,
|
|
2876
|
+
isDisabled: oe,
|
|
2877
|
+
isSelected: _,
|
|
2878
|
+
key: ot,
|
|
2879
|
+
label: xe,
|
|
2880
|
+
type: re,
|
|
2881
|
+
value: xn,
|
|
2882
|
+
isFocused: at,
|
|
2883
|
+
innerRef: at ? t.getFocusedOptionRef : void 0
|
|
2884
|
+
}), t.formatOptionLabel(O.data, "menu"));
|
|
2885
|
+
}, Y;
|
|
2886
|
+
if (this.hasOptions())
|
|
2887
|
+
Y = this.getCategorizedOptions().map(function(Z) {
|
|
2888
|
+
if (Z.type === "group") {
|
|
2889
|
+
var O = Z.data, Q = Z.options, re = Z.index, J = "".concat(t.getElementId("group"), "-").concat(re), oe = "".concat(J, "-heading");
|
|
2890
|
+
return /* @__PURE__ */ T.createElement(o, G({}, h, {
|
|
2891
|
+
key: J,
|
|
2892
|
+
data: O,
|
|
2893
|
+
options: Q,
|
|
2894
|
+
Heading: s,
|
|
2895
|
+
headingProps: {
|
|
2896
|
+
id: oe,
|
|
2897
|
+
data: Z.data
|
|
2898
|
+
},
|
|
2899
|
+
label: t.formatGroupLabel(Z.data)
|
|
2900
|
+
}), Z.options.map(function(_) {
|
|
2901
|
+
return X(_, "".concat(re, "-").concat(_.index));
|
|
2902
|
+
}));
|
|
2903
|
+
} else if (Z.type === "option")
|
|
2904
|
+
return X(Z, "".concat(Z.index));
|
|
2905
|
+
});
|
|
2906
|
+
else if (C) {
|
|
2907
|
+
var k = E({
|
|
2908
|
+
inputValue: f
|
|
2909
|
+
});
|
|
2910
|
+
if (k === null) return null;
|
|
2911
|
+
Y = /* @__PURE__ */ T.createElement(d, h, k);
|
|
2912
|
+
} else {
|
|
2913
|
+
var ue = z({
|
|
2914
|
+
inputValue: f
|
|
2915
|
+
});
|
|
2916
|
+
if (ue === null) return null;
|
|
2917
|
+
Y = /* @__PURE__ */ T.createElement(b, h, ue);
|
|
2918
|
+
}
|
|
2919
|
+
var ae = {
|
|
2920
|
+
minMenuHeight: v,
|
|
2921
|
+
maxMenuHeight: V,
|
|
2922
|
+
menuPlacement: F,
|
|
2923
|
+
menuPosition: W,
|
|
2924
|
+
menuShouldScrollIntoView: H
|
|
2925
|
+
}, Ae = /* @__PURE__ */ T.createElement(au, G({}, h, ae), function(Z) {
|
|
2926
|
+
var O = Z.ref, Q = Z.placerProps, re = Q.placement, J = Q.maxHeight;
|
|
2927
|
+
return /* @__PURE__ */ T.createElement(a, G({}, h, ae, {
|
|
2928
|
+
innerRef: O,
|
|
2929
|
+
innerProps: {
|
|
2930
|
+
onMouseDown: t.onMenuMouseDown,
|
|
2931
|
+
onMouseMove: t.onMenuMouseMove
|
|
2932
|
+
},
|
|
2933
|
+
isLoading: C,
|
|
2934
|
+
placement: re
|
|
2935
|
+
}), /* @__PURE__ */ T.createElement(Za, {
|
|
2936
|
+
captureEnabled: m,
|
|
2937
|
+
onTopArrive: U,
|
|
2938
|
+
onBottomArrive: w,
|
|
2939
|
+
lockEnabled: L
|
|
2940
|
+
}, function(oe) {
|
|
2941
|
+
return /* @__PURE__ */ T.createElement(l, G({}, h, {
|
|
2942
|
+
innerRef: function(xe) {
|
|
2943
|
+
t.getMenuListRef(xe), oe(xe);
|
|
2944
|
+
},
|
|
2945
|
+
innerProps: {
|
|
2946
|
+
role: "listbox",
|
|
2947
|
+
"aria-multiselectable": h.isMulti,
|
|
2948
|
+
id: t.getElementId("listbox")
|
|
2949
|
+
},
|
|
2950
|
+
isLoading: C,
|
|
2951
|
+
maxHeight: J,
|
|
2952
|
+
focusedOption: p
|
|
2953
|
+
}), Y);
|
|
2954
|
+
}));
|
|
2955
|
+
});
|
|
2956
|
+
return P || W === "fixed" ? /* @__PURE__ */ T.createElement(c, G({}, h, {
|
|
2957
|
+
appendTo: P,
|
|
2958
|
+
controlElement: this.controlRef,
|
|
2959
|
+
menuPlacement: F,
|
|
2960
|
+
menuPosition: W
|
|
2961
|
+
}), Ae) : Ae;
|
|
2962
|
+
}
|
|
2963
|
+
}, {
|
|
2964
|
+
key: "renderFormField",
|
|
2965
|
+
value: function() {
|
|
2966
|
+
var t = this, r = this.props, o = r.delimiter, s = r.isDisabled, a = r.isMulti, l = r.name, c = r.required, d = this.state.selectValue;
|
|
2967
|
+
if (c && !this.hasValue() && !s)
|
|
2968
|
+
return /* @__PURE__ */ T.createElement(Da, {
|
|
2969
|
+
name: l,
|
|
2970
|
+
onFocus: this.onValueInputFocus
|
|
2971
|
+
});
|
|
2972
|
+
if (!(!l || s))
|
|
2973
|
+
if (a)
|
|
2974
|
+
if (o) {
|
|
2975
|
+
var b = d.map(function(p) {
|
|
2976
|
+
return t.getOptionValue(p);
|
|
2977
|
+
}).join(o);
|
|
2978
|
+
return /* @__PURE__ */ T.createElement("input", {
|
|
2979
|
+
name: l,
|
|
2980
|
+
type: "hidden",
|
|
2981
|
+
value: b
|
|
2982
|
+
});
|
|
2983
|
+
} else {
|
|
2984
|
+
var I = d.length > 0 ? d.map(function(p, g) {
|
|
2985
|
+
return /* @__PURE__ */ T.createElement("input", {
|
|
2986
|
+
key: "i-".concat(g),
|
|
2987
|
+
name: l,
|
|
2988
|
+
type: "hidden",
|
|
2989
|
+
value: t.getOptionValue(p)
|
|
2990
|
+
});
|
|
2991
|
+
}) : /* @__PURE__ */ T.createElement("input", {
|
|
2992
|
+
name: l,
|
|
2993
|
+
type: "hidden",
|
|
2994
|
+
value: ""
|
|
2995
|
+
});
|
|
2996
|
+
return /* @__PURE__ */ T.createElement("div", null, I);
|
|
2997
|
+
}
|
|
2998
|
+
else {
|
|
2999
|
+
var h = d[0] ? this.getOptionValue(d[0]) : "";
|
|
3000
|
+
return /* @__PURE__ */ T.createElement("input", {
|
|
3001
|
+
name: l,
|
|
3002
|
+
type: "hidden",
|
|
3003
|
+
value: h
|
|
3004
|
+
});
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
}, {
|
|
3008
|
+
key: "renderLiveRegion",
|
|
3009
|
+
value: function() {
|
|
3010
|
+
var t = this.commonProps, r = this.state, o = r.ariaSelection, s = r.focusedOption, a = r.focusedValue, l = r.isFocused, c = r.selectValue, d = this.getFocusableOptions();
|
|
3011
|
+
return /* @__PURE__ */ T.createElement(xa, G({}, t, {
|
|
3012
|
+
id: this.getElementId("live-region"),
|
|
3013
|
+
ariaSelection: o,
|
|
3014
|
+
focusedOption: s,
|
|
3015
|
+
focusedValue: a,
|
|
3016
|
+
isFocused: l,
|
|
3017
|
+
selectValue: c,
|
|
3018
|
+
focusableOptions: d,
|
|
3019
|
+
isAppleDevice: this.isAppleDevice
|
|
3020
|
+
}));
|
|
3021
|
+
}
|
|
3022
|
+
}, {
|
|
3023
|
+
key: "render",
|
|
3024
|
+
value: function() {
|
|
3025
|
+
var t = this.getComponents(), r = t.Control, o = t.IndicatorsContainer, s = t.SelectContainer, a = t.ValueContainer, l = this.props, c = l.className, d = l.id, b = l.isDisabled, I = l.menuIsOpen, h = this.state.isFocused, p = this.commonProps = this.getCommonProps();
|
|
3026
|
+
return /* @__PURE__ */ T.createElement(s, G({}, p, {
|
|
3027
|
+
className: c,
|
|
3028
|
+
innerProps: {
|
|
3029
|
+
id: d,
|
|
3030
|
+
onKeyDown: this.onKeyDown
|
|
3031
|
+
},
|
|
3032
|
+
isDisabled: b,
|
|
3033
|
+
isFocused: h
|
|
3034
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ T.createElement(r, G({}, p, {
|
|
3035
|
+
innerRef: this.getControlRef,
|
|
3036
|
+
innerProps: {
|
|
3037
|
+
onMouseDown: this.onControlMouseDown,
|
|
3038
|
+
onTouchEnd: this.onControlTouchEnd
|
|
3039
|
+
},
|
|
3040
|
+
isDisabled: b,
|
|
3041
|
+
isFocused: h,
|
|
3042
|
+
menuIsOpen: I
|
|
3043
|
+
}), /* @__PURE__ */ T.createElement(a, G({}, p, {
|
|
3044
|
+
isDisabled: b
|
|
3045
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ T.createElement(o, G({}, p, {
|
|
3046
|
+
isDisabled: b
|
|
3047
|
+
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
3048
|
+
}
|
|
3049
|
+
}], [{
|
|
3050
|
+
key: "getDerivedStateFromProps",
|
|
3051
|
+
value: function(t, r) {
|
|
3052
|
+
var o = r.prevProps, s = r.clearFocusValueOnUpdate, a = r.inputIsHiddenAfterUpdate, l = r.ariaSelection, c = r.isFocused, d = r.prevWasFocused, b = r.instancePrefix, I = t.options, h = t.value, p = t.menuIsOpen, g = t.inputValue, m = t.isMulti, f = vt(h), C = {};
|
|
3053
|
+
if (o && (h !== o.value || I !== o.options || p !== o.menuIsOpen || g !== o.inputValue)) {
|
|
3054
|
+
var E = p ? tr(t, f) : [], v = p ? Zt(Be(t, f), "".concat(b, "-option")) : [], V = s ? nr(r, f) : null, S = ir(r, E), F = Je(v, S);
|
|
3055
|
+
C = {
|
|
3056
|
+
selectValue: f,
|
|
3057
|
+
focusedOption: S,
|
|
3058
|
+
focusedOptionId: F,
|
|
3059
|
+
focusableOptionsWithIds: v,
|
|
3060
|
+
focusedValue: V,
|
|
3061
|
+
clearFocusValueOnUpdate: !1
|
|
3062
|
+
};
|
|
3063
|
+
}
|
|
3064
|
+
var W = a != null && t !== o ? {
|
|
3065
|
+
inputIsHidden: a,
|
|
3066
|
+
inputIsHiddenAfterUpdate: void 0
|
|
3067
|
+
} : {}, P = l, L = c && d;
|
|
3068
|
+
return c && !L && (P = {
|
|
3069
|
+
value: Fe(m, f, f[0] || null),
|
|
3070
|
+
options: f,
|
|
3071
|
+
action: "initial-input-focus"
|
|
3072
|
+
}, L = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (P = null), y(y(y({}, C), W), {}, {
|
|
3073
|
+
prevProps: t,
|
|
3074
|
+
ariaSelection: P,
|
|
3075
|
+
prevWasFocused: L
|
|
3076
|
+
});
|
|
3077
|
+
}
|
|
3078
|
+
}]), i;
|
|
3079
|
+
}(Kn);
|
|
3080
|
+
hn.defaultProps = er;
|
|
3081
|
+
var ar = /* @__PURE__ */ $n(function(n, e) {
|
|
3082
|
+
var i = fi(n);
|
|
3083
|
+
return /* @__PURE__ */ T.createElement(hn, G({
|
|
3084
|
+
ref: e
|
|
3085
|
+
}, i));
|
|
3086
|
+
}), rr = ar;
|
|
3087
|
+
const or = (n) => /* @__PURE__ */ A.jsx(on.DropdownIndicator, { ...n, children: n.selectProps.menuIsOpen ? /* @__PURE__ */ A.jsx(lt.ArrowDropUp, {}) : /* @__PURE__ */ A.jsx(lt.ArrowDropDown, {}) }), lr = (n) => /* @__PURE__ */ A.jsx(rr, { ...n, components: { DropdownIndicator: or, IndicatorSeparator: () => null } }), sr = N(Fn)`
|
|
3088
|
+
& .MuiOutlinedInput-input {
|
|
3089
|
+
padding: 8px 10px;
|
|
3090
|
+
font-size: 13px;
|
|
3091
|
+
font-weight: 400;
|
|
3092
|
+
line-height: 20px;
|
|
3093
|
+
color: #3e4c5a;
|
|
3094
|
+
}
|
|
3095
|
+
`, cr = N(M)`
|
|
3096
|
+
& .formField__select {
|
|
3097
|
+
font-size: 13px;
|
|
3098
|
+
font-weight: 400;
|
|
3099
|
+
line-height: 20px;
|
|
3100
|
+
color: #3e4c5a;
|
|
3101
|
+
}
|
|
3102
|
+
& .hiverFormField__control {
|
|
3103
|
+
height: 34px;
|
|
3104
|
+
min-height: 34px;
|
|
3105
|
+
&.hiverFormField__control--is-focused {
|
|
3106
|
+
border: 2px solid #506dff;
|
|
3107
|
+
box-shadow: none;
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
& .formField__select--error {
|
|
3111
|
+
& .hiverFormField__control {
|
|
3112
|
+
border: 1px solid #cd3746;
|
|
3113
|
+
box-shadow: none;
|
|
3114
|
+
&.hiverFormField__control--is-focused {
|
|
3115
|
+
border-width: 2px;
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
& .hiverFormField__indicators {
|
|
3120
|
+
height: 30px;
|
|
3121
|
+
}
|
|
3122
|
+
& .hiverFormField__value-container {
|
|
3123
|
+
margin-top: -2px;
|
|
3124
|
+
}
|
|
3125
|
+
`, Pt = N(M)`
|
|
3126
|
+
font-size: 12px;
|
|
3127
|
+
font-weight: 400;
|
|
3128
|
+
margin: 2px 14px 0px 14px;
|
|
3129
|
+
text-align: right;
|
|
3130
|
+
position: absolute;
|
|
3131
|
+
width: calc(100% - 28px);
|
|
3132
|
+
&.helper--error {
|
|
3133
|
+
color: #d32f2f;
|
|
3134
|
+
}
|
|
3135
|
+
`, dr = N(M)`
|
|
3136
|
+
width: 100%;
|
|
3137
|
+
position: relative;
|
|
3138
|
+
& .MuiInputBase-root {
|
|
3139
|
+
width: 100%;
|
|
3140
|
+
}
|
|
3141
|
+
`, Cn = (n) => {
|
|
3142
|
+
const {
|
|
3143
|
+
validation: e,
|
|
3144
|
+
helperText: i,
|
|
3145
|
+
id: u,
|
|
3146
|
+
label: t,
|
|
3147
|
+
name: r,
|
|
3148
|
+
validateOnBlur: o = !0,
|
|
3149
|
+
validateOnChange: s = !0,
|
|
3150
|
+
inputChangeHandler: a,
|
|
3151
|
+
selectChangeHandler: l,
|
|
3152
|
+
onValidationError: c
|
|
3153
|
+
} = n, [d, b] = j(!1), [I, h] = j("");
|
|
3154
|
+
ee(() => {
|
|
3155
|
+
d || g(n.value, !1);
|
|
3156
|
+
}, [d, n.value]);
|
|
3157
|
+
const p = (v) => {
|
|
3158
|
+
v && !d && b(!0);
|
|
3159
|
+
};
|
|
3160
|
+
function g(v, V = !0) {
|
|
3161
|
+
let S = "";
|
|
3162
|
+
if (e != null && e.isRequired && (S = v ? "" : Vn), !S && (e != null && e.validate)) {
|
|
3163
|
+
const F = e.validate(v, { id: u, name: r, label: t });
|
|
3164
|
+
typeof F == "boolean" && F === !1 ? S = Bn : typeof F == "string" && (S = F);
|
|
3165
|
+
}
|
|
3166
|
+
V && h(S), c == null || c(r, S);
|
|
3167
|
+
}
|
|
3168
|
+
const m = (v) => {
|
|
3169
|
+
var V;
|
|
3170
|
+
d || b(!0), (V = n.onBlur) == null || V.call(n, v), d && o && g(n.value);
|
|
3171
|
+
}, f = () => n.helperText ? /* @__PURE__ */ A.jsx(Pt, { children: i }) : d && I ? /* @__PURE__ */ A.jsx(Pt, { className: "helper--error", children: I }) : null, C = (v) => {
|
|
3172
|
+
a == null || a(v), v && !d && b(!0), d && s && g(v.target.value);
|
|
3173
|
+
}, E = (v, V) => {
|
|
3174
|
+
l == null || l(v, V), v && !d && b(!0), v && typeof v == "object" && "value" in v && d && s && g(v.value);
|
|
3175
|
+
};
|
|
3176
|
+
return /* @__PURE__ */ A.jsxs(ge, { spacing: 1, useFlexGap: !0, children: [
|
|
3177
|
+
t ? /* @__PURE__ */ A.jsx(be, { variant: "h4", component: "label", htmlFor: u, children: `${t}${e != null && e.isRequired ? "*" : ""}` }) : null,
|
|
3178
|
+
/* @__PURE__ */ A.jsxs(dr, { children: [
|
|
3179
|
+
/* @__PURE__ */ A.jsx(ti, { title: n.toolTipTitle, arrow: !0, placement: "right-end", disableHoverListener: !0, children: n.type === "select" ? /* @__PURE__ */ A.jsx(cr, { children: /* @__PURE__ */ A.jsx(
|
|
3180
|
+
lr,
|
|
3181
|
+
{
|
|
3182
|
+
...n,
|
|
3183
|
+
className: `formField__select ${I && d ? "formField__select--error" : ""} ${n.className || ""}`,
|
|
3184
|
+
classNamePrefix: "hiverFormField",
|
|
3185
|
+
onBlur: m,
|
|
3186
|
+
onChange: E,
|
|
3187
|
+
onFocus: p
|
|
3188
|
+
}
|
|
3189
|
+
) }) : /* @__PURE__ */ A.jsx(
|
|
3190
|
+
sr,
|
|
3191
|
+
{
|
|
3192
|
+
id: u,
|
|
3193
|
+
...n,
|
|
3194
|
+
label: void 0,
|
|
3195
|
+
onBlur: m,
|
|
3196
|
+
onChange: C,
|
|
3197
|
+
onFocus: p,
|
|
3198
|
+
error: !!(I && d)
|
|
3199
|
+
}
|
|
3200
|
+
) }),
|
|
3201
|
+
f()
|
|
3202
|
+
] })
|
|
3203
|
+
] });
|
|
3204
|
+
}, gr = N(ge)`
|
|
3205
|
+
margin-top: 28px;
|
|
3206
|
+
& .authform__section-title {
|
|
3207
|
+
margin-top: 32px;
|
|
3208
|
+
margin-bottom: 12px;
|
|
3209
|
+
}
|
|
3210
|
+
`, br = ({
|
|
3211
|
+
formConfig: n,
|
|
3212
|
+
inputChangeHandler: e,
|
|
3213
|
+
selectChangeHandler: i,
|
|
3214
|
+
predicates: u,
|
|
3215
|
+
values: t,
|
|
3216
|
+
validations: r,
|
|
3217
|
+
onValidationError: o
|
|
3218
|
+
}) => /* @__PURE__ */ A.jsx(gr, { children: n.map(({ id: s, title: a, formFields: l }) => /* @__PURE__ */ A.jsxs(zn.Fragment, { children: [
|
|
3219
|
+
a ? /* @__PURE__ */ A.jsx(be, { variant: "h3", className: "authform__section-title", children: a }) : null,
|
|
3220
|
+
/* @__PURE__ */ A.jsx(ge, { useFlexGap: !0, spacing: 3, children: l.map((c) => u && typeof u == "object" && c.name in u && u[c.name] === !1 ? null : /* @__PURE__ */ A.jsx(
|
|
3221
|
+
Cn,
|
|
3222
|
+
{
|
|
3223
|
+
value: t == null ? void 0 : t[c.name],
|
|
3224
|
+
...c,
|
|
3225
|
+
selectChangeHandler: i,
|
|
3226
|
+
inputChangeHandler: e,
|
|
3227
|
+
validation: r == null ? void 0 : r[c.name],
|
|
3228
|
+
onValidationError: o
|
|
3229
|
+
},
|
|
3230
|
+
c.name
|
|
3231
|
+
)) })
|
|
3232
|
+
] }, s)) }), fe = {
|
|
3233
|
+
baseUrl: "baseUrl",
|
|
3234
|
+
authType: "authType"
|
|
3235
|
+
}, se = {
|
|
3236
|
+
apiKey: "apiKey",
|
|
3237
|
+
apiAddTo: "apiAddTo",
|
|
3238
|
+
apiHeaderPrefix: "apiHeaderPrefix",
|
|
3239
|
+
apiHeaderName: "apiHeaderName",
|
|
3240
|
+
apiParamName: "apiParamName"
|
|
3241
|
+
}, K = {
|
|
3242
|
+
oAuthClientId: "oAuthClientId",
|
|
3243
|
+
oAuthClientSecret: "oAuthClientSecret",
|
|
3244
|
+
oAuthEndUrl: "oAuthEndUrl",
|
|
3245
|
+
oAuthTokenUrl: "oAuthTokenUrl",
|
|
3246
|
+
oAuthRefreshTokenUrl: "oAuthRefreshTokenUrl",
|
|
3247
|
+
oAuthRedirectUrl: "oAuthRedirectUrl",
|
|
3248
|
+
oAuthHeaderName: "oAuthHeaderName",
|
|
3249
|
+
oAuthHeaderPrefix: "oAuthHeaderPrefix",
|
|
3250
|
+
oAuthScopes: "oAuthScopes"
|
|
3251
|
+
}, B = {
|
|
3252
|
+
...fe,
|
|
3253
|
+
...se,
|
|
3254
|
+
...K
|
|
3255
|
+
}, ce = {
|
|
3256
|
+
apiToken: { label: "API Token", value: Sn },
|
|
3257
|
+
oAuth: { label: "OAuth2.0", value: Ve }
|
|
3258
|
+
}, He = {
|
|
3259
|
+
header: { label: "Header", value: "header" },
|
|
3260
|
+
queryParam: { label: "Query Param", value: "queryParam" }
|
|
3261
|
+
}, Ht = [
|
|
3262
|
+
{
|
|
3263
|
+
id: "basicFormInfo",
|
|
3264
|
+
formFields: [
|
|
3265
|
+
{
|
|
3266
|
+
id: B.baseUrl,
|
|
3267
|
+
type: "text",
|
|
3268
|
+
name: B.baseUrl,
|
|
3269
|
+
label: "Base URL",
|
|
3270
|
+
placeholder: "https://example.com",
|
|
3271
|
+
toolTipTitle: "Base Url of the connector which you will be using"
|
|
3272
|
+
},
|
|
3273
|
+
{
|
|
3274
|
+
id: B.authType,
|
|
3275
|
+
type: "select",
|
|
3276
|
+
name: B.authType,
|
|
3277
|
+
label: "Authentication Types",
|
|
3278
|
+
options: Object.values(ce)
|
|
3279
|
+
}
|
|
3280
|
+
]
|
|
3281
|
+
}
|
|
3282
|
+
], pr = [
|
|
3283
|
+
{
|
|
3284
|
+
id: "apiKeyFormInfo",
|
|
3285
|
+
title: "Api Form",
|
|
3286
|
+
formFields: [
|
|
3287
|
+
{
|
|
3288
|
+
id: B.apiKey,
|
|
3289
|
+
type: "password",
|
|
3290
|
+
name: B.apiKey,
|
|
3291
|
+
label: "API Key(Encrypted)",
|
|
3292
|
+
placeholder: "API Key"
|
|
3293
|
+
},
|
|
3294
|
+
{
|
|
3295
|
+
id: B.apiAddTo,
|
|
3296
|
+
type: "select",
|
|
3297
|
+
name: B.apiAddTo,
|
|
3298
|
+
label: "Add To",
|
|
3299
|
+
options: Object.values(He)
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
id: B.apiHeaderName,
|
|
3303
|
+
type: "text",
|
|
3304
|
+
name: B.apiHeaderName,
|
|
3305
|
+
label: "Header Name",
|
|
3306
|
+
placeholder: "eg: X-Custom-Access-Token"
|
|
3307
|
+
},
|
|
3308
|
+
{
|
|
3309
|
+
id: B.apiHeaderPrefix,
|
|
3310
|
+
type: "text",
|
|
3311
|
+
name: B.apiHeaderPrefix,
|
|
3312
|
+
label: "Header Prefix",
|
|
3313
|
+
placeholder: "eg: Bearer"
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
id: B.apiParamName,
|
|
3317
|
+
type: "text",
|
|
3318
|
+
name: B.apiParamName,
|
|
3319
|
+
label: "Param Name",
|
|
3320
|
+
placeholder: "eg: customAccessToken"
|
|
3321
|
+
}
|
|
3322
|
+
]
|
|
3323
|
+
}
|
|
3324
|
+
], Ir = [
|
|
3325
|
+
{
|
|
3326
|
+
title: "CLIENT INFORMATION",
|
|
3327
|
+
id: "clientInfo",
|
|
3328
|
+
formFields: [
|
|
3329
|
+
{
|
|
3330
|
+
id: B.oAuthClientId,
|
|
3331
|
+
type: "text",
|
|
3332
|
+
name: B.oAuthClientId,
|
|
3333
|
+
label: "Client ID",
|
|
3334
|
+
placeholder: "Client ID"
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
id: B.oAuthClientSecret,
|
|
3338
|
+
type: "password",
|
|
3339
|
+
name: B.oAuthClientSecret,
|
|
3340
|
+
label: "Client Secret(Encrypted)",
|
|
3341
|
+
placeholder: "Client Secret"
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
id: B.oAuthScopes,
|
|
3345
|
+
type: "text",
|
|
3346
|
+
name: B.oAuthScopes,
|
|
3347
|
+
label: "Scope(s)",
|
|
3348
|
+
placeholder: "e.g: read, write"
|
|
3349
|
+
}
|
|
3350
|
+
]
|
|
3351
|
+
},
|
|
3352
|
+
{
|
|
3353
|
+
title: "AUTHORIZATION INFORMATION",
|
|
3354
|
+
id: "authInfo",
|
|
3355
|
+
formFields: [
|
|
3356
|
+
{
|
|
3357
|
+
id: B.oAuthEndUrl,
|
|
3358
|
+
type: "text",
|
|
3359
|
+
name: B.oAuthEndUrl,
|
|
3360
|
+
label: "Authorization Endpoint URL",
|
|
3361
|
+
placeholder: "e.g: https://example.com/login/oauth/authorize"
|
|
3362
|
+
},
|
|
3363
|
+
{
|
|
3364
|
+
id: B.oAuthTokenUrl,
|
|
3365
|
+
type: "text",
|
|
3366
|
+
name: B.oAuthTokenUrl,
|
|
3367
|
+
label: "Token Endpoint URL",
|
|
3368
|
+
placeholder: "e.g: https://example.com/login/oauth/token"
|
|
3369
|
+
},
|
|
3370
|
+
{
|
|
3371
|
+
id: B.oAuthRefreshTokenUrl,
|
|
3372
|
+
type: "text",
|
|
3373
|
+
name: B.oAuthRefreshTokenUrl,
|
|
3374
|
+
label: "Refresh Token URL",
|
|
3375
|
+
placeholder: "e.g: https://example.com/login/oauth/refresh/token"
|
|
3376
|
+
},
|
|
3377
|
+
{
|
|
3378
|
+
id: B.oAuthRedirectUrl,
|
|
3379
|
+
type: "text",
|
|
3380
|
+
name: B.oAuthRedirectUrl,
|
|
3381
|
+
label: "Redirect URL",
|
|
3382
|
+
disabled: !0
|
|
3383
|
+
},
|
|
3384
|
+
{
|
|
3385
|
+
id: B.oAuthHeaderName,
|
|
3386
|
+
type: "text",
|
|
3387
|
+
name: B.oAuthHeaderName,
|
|
3388
|
+
label: "Header Name",
|
|
3389
|
+
placeholder: "eg: X-Custom-Access-Token"
|
|
3390
|
+
},
|
|
3391
|
+
{
|
|
3392
|
+
id: B.oAuthHeaderPrefix,
|
|
3393
|
+
type: "text",
|
|
3394
|
+
name: B.oAuthHeaderPrefix,
|
|
3395
|
+
label: "Header Prefix",
|
|
3396
|
+
placeholder: "eg: Bearer"
|
|
3397
|
+
}
|
|
3398
|
+
]
|
|
3399
|
+
}
|
|
3400
|
+
], mr = {
|
|
3401
|
+
[B.baseUrl]: {
|
|
3402
|
+
isRequired: !0
|
|
3403
|
+
},
|
|
3404
|
+
[B.authType]: {
|
|
3405
|
+
isRequired: !0
|
|
3406
|
+
},
|
|
3407
|
+
[B.apiKey]: {
|
|
3408
|
+
isRequired: !0
|
|
3409
|
+
},
|
|
3410
|
+
[B.apiAddTo]: {
|
|
3411
|
+
isRequired: !0
|
|
3412
|
+
},
|
|
3413
|
+
[B.apiParamName]: {
|
|
3414
|
+
isRequired: !0
|
|
3415
|
+
},
|
|
3416
|
+
[B.oAuthClientId]: {
|
|
3417
|
+
isRequired: !0
|
|
3418
|
+
},
|
|
3419
|
+
[B.oAuthClientSecret]: {
|
|
3420
|
+
isRequired: !0
|
|
3421
|
+
},
|
|
3422
|
+
[B.oAuthEndUrl]: {
|
|
3423
|
+
isRequired: !0
|
|
3424
|
+
},
|
|
3425
|
+
[B.oAuthTokenUrl]: {
|
|
3426
|
+
isRequired: !0
|
|
3427
|
+
},
|
|
3428
|
+
[B.oAuthRefreshTokenUrl]: {
|
|
3429
|
+
isRequired: !0
|
|
3430
|
+
},
|
|
3431
|
+
[B.oAuthRedirectUrl]: {
|
|
3432
|
+
isRequired: !0
|
|
3433
|
+
},
|
|
3434
|
+
[B.oAuthHeaderName]: {
|
|
3435
|
+
isRequired: !0
|
|
3436
|
+
}
|
|
3437
|
+
}, vn = {
|
|
3438
|
+
[K.oAuthClientId]: "clientId",
|
|
3439
|
+
[K.oAuthClientSecret]: "clientSecret",
|
|
3440
|
+
[fe.authType]: "authType",
|
|
3441
|
+
[K.oAuthEndUrl]: "authEndpointUrl",
|
|
3442
|
+
[K.oAuthTokenUrl]: "tokenEndpointUrl",
|
|
3443
|
+
[K.oAuthRefreshTokenUrl]: "refreshTokenUrl",
|
|
3444
|
+
[K.oAuthScopes]: "scopes",
|
|
3445
|
+
[K.oAuthHeaderName]: "keyName",
|
|
3446
|
+
[K.oAuthHeaderPrefix]: "prefix"
|
|
3447
|
+
}, An = {
|
|
3448
|
+
[fe.authType]: "authType",
|
|
3449
|
+
[se.apiAddTo]: "location",
|
|
3450
|
+
[se.apiKey]: "keyValue",
|
|
3451
|
+
[se.apiHeaderName]: "keyName",
|
|
3452
|
+
[se.apiHeaderPrefix]: "prefix",
|
|
3453
|
+
[se.apiParamName]: "keyName"
|
|
3454
|
+
}, fr = {
|
|
3455
|
+
values: { authType: ce.apiToken, apiAddTo: He.header },
|
|
3456
|
+
errors: {}
|
|
3457
|
+
}, $ = {
|
|
3458
|
+
SET_FIELD_VALUE: "SET_FIELD_VALUE",
|
|
3459
|
+
CLEAR_FIELD_VALUE: "CLEAR_FIELD",
|
|
3460
|
+
SET_FIELD_ERROR: "SET_FIELD_ERROR",
|
|
3461
|
+
SET_FIELDS: "SET_FIELDS",
|
|
3462
|
+
CLEAR_FIELDS: "CLEAR_FIELDS"
|
|
3463
|
+
}, hr = (n, e) => {
|
|
3464
|
+
const { type: i, payload: u } = e;
|
|
3465
|
+
switch (i) {
|
|
3466
|
+
case $.SET_FIELD_VALUE: {
|
|
3467
|
+
if (!u || !("name" in u)) return n;
|
|
3468
|
+
const { name: t, value: r } = u;
|
|
3469
|
+
return {
|
|
3470
|
+
...n,
|
|
3471
|
+
values: {
|
|
3472
|
+
...n.values,
|
|
3473
|
+
[t]: r
|
|
3474
|
+
}
|
|
3475
|
+
};
|
|
3476
|
+
}
|
|
3477
|
+
case $.SET_FIELD_ERROR: {
|
|
3478
|
+
if (!u || !("name" in u)) return n;
|
|
3479
|
+
const { name: t, value: r } = u;
|
|
3480
|
+
return {
|
|
3481
|
+
...n,
|
|
3482
|
+
errors: {
|
|
3483
|
+
...n.errors,
|
|
3484
|
+
[t]: r
|
|
3485
|
+
}
|
|
3486
|
+
};
|
|
3487
|
+
}
|
|
3488
|
+
case $.CLEAR_FIELD_VALUE: {
|
|
3489
|
+
if (!u || !("name" in u)) return n;
|
|
3490
|
+
const { name: t } = u;
|
|
3491
|
+
return {
|
|
3492
|
+
...n,
|
|
3493
|
+
errors: {
|
|
3494
|
+
...n.errors,
|
|
3495
|
+
[t]: ""
|
|
3496
|
+
}
|
|
3497
|
+
};
|
|
3498
|
+
}
|
|
3499
|
+
case $.SET_FIELDS: {
|
|
3500
|
+
if (!u || "name" in u) return n;
|
|
3501
|
+
const { values: t } = u;
|
|
3502
|
+
return {
|
|
3503
|
+
...n,
|
|
3504
|
+
values: t
|
|
3505
|
+
};
|
|
3506
|
+
}
|
|
3507
|
+
}
|
|
3508
|
+
return n;
|
|
3509
|
+
}, Cr = N(be)`
|
|
3510
|
+
line-height: 32px;
|
|
3511
|
+
margin-bottom: 16px;
|
|
3512
|
+
`, vr = N(be)`
|
|
3513
|
+
color: #6f7c90;
|
|
3514
|
+
`, Ar = N(ge)`
|
|
3515
|
+
margin-top: 28px;
|
|
3516
|
+
max-height: 450px;
|
|
3517
|
+
overflow-y: auto;
|
|
3518
|
+
& .authform__section-title {
|
|
3519
|
+
margin-top: 32px;
|
|
3520
|
+
margin-bottom: 12px;
|
|
3521
|
+
}
|
|
3522
|
+
`, xr = N(M)`
|
|
3523
|
+
width: 472px;
|
|
3524
|
+
`, yr = N(M)`
|
|
3525
|
+
display: flex;
|
|
3526
|
+
margin-top: 32px;
|
|
3527
|
+
gap: 16px;
|
|
3528
|
+
`;
|
|
3529
|
+
function Gr(n, e) {
|
|
3530
|
+
return n in e;
|
|
3531
|
+
}
|
|
3532
|
+
const Er = ({
|
|
3533
|
+
isEdit: n,
|
|
3534
|
+
templateId: e,
|
|
3535
|
+
values: i,
|
|
3536
|
+
formFields: u,
|
|
3537
|
+
predicates: t
|
|
3538
|
+
}) => {
|
|
3539
|
+
const r = {}, o = i.authType && typeof i.authType == "object" && i.authType.value === ce.oAuth.value ? ce.oAuth.value : ce.apiToken.value;
|
|
3540
|
+
r.authType = o, Object.keys(u).forEach((a) => {
|
|
3541
|
+
let l;
|
|
3542
|
+
if (i[a] && typeof i[a] == "object" ? l = i[a].value : l = i[a], !(typeof l > "u") && t[a] !== !1)
|
|
3543
|
+
if (r.authType === Ve) {
|
|
3544
|
+
const c = vn[a];
|
|
3545
|
+
c !== fe.authType && c !== void 0 && (r[c] = l);
|
|
3546
|
+
} else {
|
|
3547
|
+
const c = An[a];
|
|
3548
|
+
c !== fe.authType && c !== void 0 && (r[c] = l);
|
|
3549
|
+
}
|
|
3550
|
+
});
|
|
3551
|
+
const s = i.baseUrl ? String(i.baseUrl) : "";
|
|
3552
|
+
return !n && e ? { templateId: e, authDetails: r, baseUrl: s } : { authDetails: r, baseUrl: s };
|
|
3553
|
+
};
|
|
3554
|
+
function Fr(n) {
|
|
3555
|
+
const e = {}, i = n.authType === Ve ? vn : An;
|
|
3556
|
+
return Object.keys(i).forEach((u) => {
|
|
3557
|
+
if (Gr(u, i)) {
|
|
3558
|
+
const t = i[u];
|
|
3559
|
+
let r;
|
|
3560
|
+
if (n.authType === Ve) {
|
|
3561
|
+
const o = n[t];
|
|
3562
|
+
Array.isArray(o) ? r = o.join(", ") : r = o;
|
|
3563
|
+
} else
|
|
3564
|
+
r = n[t];
|
|
3565
|
+
u === fe.authType && (r = Object.values(ce).filter((o) => o.value === r)[0]), u === se.apiAddTo && (r = Object.values(He).filter((o) => o.value === r)[0]), e[u] = r;
|
|
3566
|
+
}
|
|
3567
|
+
}), e;
|
|
3568
|
+
}
|
|
3569
|
+
const Br = () => /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
3570
|
+
/* @__PURE__ */ A.jsx(bt, { variant: "rounded", width: 180, height: 24, animation: "wave", margin: "12px 0px 10px 0px" }),
|
|
3571
|
+
/* @__PURE__ */ A.jsx(bt, { variant: "rounded", width: 450, height: 40, animation: "wave" })
|
|
3572
|
+
] }), Vr = ({ isEdit: n = !1, connectorId: e, isLoading: i = !1, connectorData: u, authStatus: t }) => {
|
|
3573
|
+
const r = $e(), [o, s] = qn(hr, fr), a = u ? u.name : "", l = u ? u.description : "";
|
|
3574
|
+
console.log("Connector Data+++", { authStatus: t }), ee(() => {
|
|
3575
|
+
var f, C;
|
|
3576
|
+
if (u != null && u.authDetails) {
|
|
3577
|
+
const E = Fr(u.authDetails);
|
|
3578
|
+
s({
|
|
3579
|
+
type: $.SET_FIELDS,
|
|
3580
|
+
payload: {
|
|
3581
|
+
values: E
|
|
3582
|
+
}
|
|
3583
|
+
});
|
|
3584
|
+
}
|
|
3585
|
+
(f = u == null ? void 0 : u.variables) != null && f.baseUrl && s({
|
|
3586
|
+
type: $.SET_FIELD_VALUE,
|
|
3587
|
+
payload: { name: B.baseUrl, value: (C = u == null ? void 0 : u.variables) == null ? void 0 : C.baseUrl }
|
|
3588
|
+
}), u != null && u.redirectUrl && s({
|
|
3589
|
+
type: $.SET_FIELD_VALUE,
|
|
3590
|
+
payload: { name: B.oAuthRedirectUrl, value: u == null ? void 0 : u.redirectUrl }
|
|
3591
|
+
});
|
|
3592
|
+
}, [u]);
|
|
3593
|
+
const c = (f, C) => {
|
|
3594
|
+
s({ type: $.SET_FIELD_VALUE, payload: { value: C, name: f } });
|
|
3595
|
+
}, d = (f) => {
|
|
3596
|
+
c(f.target.name, f.target.value);
|
|
3597
|
+
}, b = (f, C) => {
|
|
3598
|
+
f && typeof f == "object" && "label" in f && typeof f.label == "string" && "value" in f && typeof f.value == "string" && typeof C.name < "u" && c(C.name, { value: f.value, label: f.label });
|
|
3599
|
+
}, I = (f, C) => {
|
|
3600
|
+
s({ type: $.SET_FIELD_ERROR, payload: { name: f, value: C } });
|
|
3601
|
+
}, h = () => {
|
|
3602
|
+
const f = o.values.authType;
|
|
3603
|
+
return typeof f == "object" && f.value === ce.apiToken.value ? [...Ht, ...pr] : [...Ht, ...Ir];
|
|
3604
|
+
}, p = () => {
|
|
3605
|
+
const f = {};
|
|
3606
|
+
return typeof o.values.apiAddTo == "object" && o.values.apiAddTo.value === He.queryParam.value ? (f.apiHeaderPrefix = !1, f.apiHeaderName = !1) : f.apiParamName = !1, f;
|
|
3607
|
+
}, g = () => {
|
|
3608
|
+
const f = p(), C = st(h());
|
|
3609
|
+
return !Object.keys(o.errors).filter((v) => !!o.errors[v]).filter((v) => v in f ? f[v] : !0).filter((v) => v in C).length;
|
|
3610
|
+
}, m = () => {
|
|
3611
|
+
const f = p(), C = st(h()), E = Er({
|
|
3612
|
+
isEdit: n,
|
|
3613
|
+
templateId: e,
|
|
3614
|
+
values: o.values,
|
|
3615
|
+
formFields: C,
|
|
3616
|
+
predicates: f
|
|
3617
|
+
});
|
|
3618
|
+
localStorage.setItem(Tn, e), !n && "templateId" in E ? r(ct({ data: E })) : r(ct({ data: E, connectorId: e }));
|
|
3619
|
+
};
|
|
3620
|
+
return /* @__PURE__ */ A.jsxs(xr, { children: [
|
|
3621
|
+
/* @__PURE__ */ A.jsx(Cr, { variant: "h2", children: "Settings" }),
|
|
3622
|
+
i ? /* @__PURE__ */ A.jsx(Br, {}) : /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
3623
|
+
/* @__PURE__ */ A.jsx(be, { variant: "h3", children: a }),
|
|
3624
|
+
/* @__PURE__ */ A.jsx(vr, { variant: "body2", children: l })
|
|
3625
|
+
] }),
|
|
3626
|
+
/* @__PURE__ */ A.jsx(Ar, { children: /* @__PURE__ */ A.jsx(
|
|
3627
|
+
br,
|
|
3628
|
+
{
|
|
3629
|
+
formConfig: h(),
|
|
3630
|
+
selectChangeHandler: b,
|
|
3631
|
+
inputChangeHandler: d,
|
|
3632
|
+
predicates: p(),
|
|
3633
|
+
values: o.values,
|
|
3634
|
+
validations: mr,
|
|
3635
|
+
onValidationError: I
|
|
3636
|
+
}
|
|
3637
|
+
) }),
|
|
3638
|
+
/* @__PURE__ */ A.jsx(yr, { children: /* @__PURE__ */ A.jsx(
|
|
3639
|
+
Lt,
|
|
3640
|
+
{
|
|
3641
|
+
disabled: !g() || i || t === Ie.PENDING,
|
|
3642
|
+
onClick: m,
|
|
3643
|
+
children: "Save & Authorize"
|
|
3644
|
+
}
|
|
3645
|
+
) })
|
|
3646
|
+
] });
|
|
3647
|
+
}, Sr = N(M)`
|
|
3648
|
+
width: 410px;
|
|
3649
|
+
height: 570px;
|
|
3650
|
+
padding: 38px 36px;
|
|
3651
|
+
border-radius: 10px;
|
|
3652
|
+
background: #fafafa;
|
|
3653
|
+
`, Tr = N(M)`
|
|
3654
|
+
margin-top: 8px;
|
|
3655
|
+
width: 100%;
|
|
3656
|
+
display: flex;
|
|
3657
|
+
gap: 7px;
|
|
3658
|
+
& .MuiStack-root {
|
|
3659
|
+
width: 100%;
|
|
3660
|
+
}
|
|
3661
|
+
& .MuiInputBase-root {
|
|
3662
|
+
background-color: #fff;
|
|
3663
|
+
}
|
|
3664
|
+
`, Wr = N(M)`
|
|
3665
|
+
width: 63px;
|
|
3666
|
+
height: 36px;
|
|
3667
|
+
background-color: #fff;
|
|
3668
|
+
border: 1px solid #d6dde8;
|
|
3669
|
+
border-radius: 4px;
|
|
3670
|
+
text-align: center;
|
|
3671
|
+
line-height: 36px;
|
|
3672
|
+
`, Rr = N(M)`
|
|
3673
|
+
width: 338px;
|
|
3674
|
+
height: 350px;
|
|
3675
|
+
max-height: 350px;
|
|
3676
|
+
overflow-y: auto;
|
|
3677
|
+
border-radius: 5px;
|
|
3678
|
+
border: 1px solid #d6dde8;
|
|
3679
|
+
margin-top: 20px;
|
|
3680
|
+
`, Nr = N(M)`
|
|
3681
|
+
width: 100%;
|
|
3682
|
+
height: 50px;
|
|
3683
|
+
background: #f6f8fc;
|
|
3684
|
+
border-top-left-radius: 5px;
|
|
3685
|
+
border-top-right-radius: 5px;
|
|
3686
|
+
line-height: 50px;
|
|
3687
|
+
padding: 0px 20px;
|
|
3688
|
+
font-weight: 600;
|
|
3689
|
+
color: ${(n) => n.textColor ? n.textColor : "inherit"};
|
|
3690
|
+
`, Xr = N(M)`
|
|
3691
|
+
width: 100%;
|
|
3692
|
+
height: 300px;
|
|
3693
|
+
overflow: auto;
|
|
3694
|
+
background: #ffff;
|
|
3695
|
+
border-bottom-left-radius: 5px;
|
|
3696
|
+
border-bottom-right-radius: 5px;
|
|
3697
|
+
& pre {
|
|
3698
|
+
padding: 20px;
|
|
3699
|
+
white-space: pre-wrap;
|
|
3700
|
+
}
|
|
3701
|
+
`, Zr = N(Lt)`
|
|
3702
|
+
width: 338px;
|
|
3703
|
+
margin-top: 20px;
|
|
3704
|
+
`, wr = ({ url: n, disabled: e = !1, connectorId: i }) => {
|
|
3705
|
+
const [u, t] = j(""), r = le(Wn), o = le(Rn), s = $e(), a = r === Ce.LOADING;
|
|
3706
|
+
ee(() => {
|
|
3707
|
+
n && t(n);
|
|
3708
|
+
}, [n]);
|
|
3709
|
+
const l = (d) => {
|
|
3710
|
+
t(d.target.value);
|
|
3711
|
+
}, c = () => {
|
|
3712
|
+
s(Nn({ data: { testUrl: u }, connectorId: i }));
|
|
3713
|
+
};
|
|
3714
|
+
return /* @__PURE__ */ A.jsxs(Sr, { children: [
|
|
3715
|
+
/* @__PURE__ */ A.jsx(be, { variant: "h4", children: "Test Endpoint URL" }),
|
|
3716
|
+
/* @__PURE__ */ A.jsxs(Tr, { children: [
|
|
3717
|
+
/* @__PURE__ */ A.jsx(Wr, { children: "Get" }),
|
|
3718
|
+
/* @__PURE__ */ A.jsx(Cn, { type: "text", name: "url", inputChangeHandler: l })
|
|
3719
|
+
] }),
|
|
3720
|
+
/* @__PURE__ */ A.jsxs(Rr, { children: [
|
|
3721
|
+
/* @__PURE__ */ A.jsx(Nr, { textColor: o != null && o.statusCode.includes("200") ? "#23B33A" : "#CD3746", children: (o == null ? void 0 : o.statusCode) || "" }),
|
|
3722
|
+
/* @__PURE__ */ A.jsx(Xr, { children: o != null && o.testUrlResponse ? /* @__PURE__ */ A.jsx("pre", { children: JSON.stringify(o.testUrlResponse, null, 2) }) : null })
|
|
3723
|
+
] }),
|
|
3724
|
+
/* @__PURE__ */ A.jsx(Zr, { variant: "outlined", disabled: !u || e || a, onClick: c, children: "Send Test Request" })
|
|
3725
|
+
] });
|
|
3726
|
+
}, Pr = N(M)`
|
|
3727
|
+
margin-left: 177px;
|
|
3728
|
+
padding: 52px;
|
|
3729
|
+
box-sizing: border-box;
|
|
3730
|
+
display: flex;
|
|
3731
|
+
justify-content: space-between;
|
|
3732
|
+
gap: 20px;
|
|
3733
|
+
width: 100%;
|
|
3734
|
+
`;
|
|
3735
|
+
N(M)``;
|
|
3736
|
+
const Mr = () => {
|
|
3737
|
+
const n = le(Xn), e = le(ni), i = le(Zn), u = le(ii), t = le(wn), r = le(Pn), o = Hn(), { id: s = "" } = Dn(), [a] = Ln(), l = a.get("isEdit") === "true", c = $e();
|
|
3738
|
+
ee(
|
|
3739
|
+
() => () => {
|
|
3740
|
+
c(On()), c(Mn.clearSelectedConnector());
|
|
3741
|
+
},
|
|
3742
|
+
[c]
|
|
3743
|
+
), ee(() => {
|
|
3744
|
+
c(l ? kn(s) : Jn(s));
|
|
3745
|
+
}, [l, c, s]), ee(() => {
|
|
3746
|
+
let b, I;
|
|
3747
|
+
const h = (p) => {
|
|
3748
|
+
b && p.origin === window.location.origin && (p.data === jn || p.data === gt) && (clearTimeout(I), b.close(), c(dt(p.data === gt ? Ie.SUCCESS : Ie.FAILED)));
|
|
3749
|
+
};
|
|
3750
|
+
return t && (b = window.open(t, "_blank"), I = setTimeout(() => {
|
|
3751
|
+
b == null || b.close(), c(dt(Ie.FAILED));
|
|
3752
|
+
}, 1e4), window.addEventListener("message", h)), () => {
|
|
3753
|
+
window.removeEventListener("message", h), clearTimeout(I);
|
|
3754
|
+
};
|
|
3755
|
+
}, [t, c]), ee(() => {
|
|
3756
|
+
(r === Ie.SUCCESS || r === Ie.FAILED) && o(Yn.BASEPATH);
|
|
3757
|
+
}, [r, o]);
|
|
3758
|
+
const d = l ? n : e;
|
|
3759
|
+
return /* @__PURE__ */ A.jsxs(Pr, { children: [
|
|
3760
|
+
/* @__PURE__ */ A.jsxs("div", { children: [
|
|
3761
|
+
/* @__PURE__ */ A.jsx(ci, {}),
|
|
3762
|
+
/* @__PURE__ */ A.jsx(
|
|
3763
|
+
Vr,
|
|
3764
|
+
{
|
|
3765
|
+
connectorId: s,
|
|
3766
|
+
isEdit: l,
|
|
3767
|
+
connectorData: d,
|
|
3768
|
+
authStatus: r,
|
|
3769
|
+
isLoading: i === Ce.LOADING || u === Ce.LOADING
|
|
3770
|
+
}
|
|
3771
|
+
)
|
|
3772
|
+
] }),
|
|
3773
|
+
/* @__PURE__ */ A.jsx(
|
|
3774
|
+
wr,
|
|
3775
|
+
{
|
|
3776
|
+
connectorId: s,
|
|
3777
|
+
disabled: i === Ce.LOADING || u === Ce.LOADING || !(d != null && d.authenticated)
|
|
3778
|
+
}
|
|
3779
|
+
)
|
|
3780
|
+
] });
|
|
3781
|
+
};
|
|
3782
|
+
export {
|
|
3783
|
+
Mr as Settings
|
|
3784
|
+
};
|