@hiver/connector-admin 0.0.10-beta.8 → 1.0.0
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/api-view/__tests__/connector-config.test.d.ts.map +1 -0
- package/app/connectors/pages/api-view/index.d.ts.map +1 -0
- package/app/connectors/pages/api-view/style.d.ts.map +1 -0
- package/app/connectors/pages/auth-success/index.d.ts.map +1 -1
- package/app/connectors/pages/connector-view/agent/styles.d.ts +2 -2
- package/app/connectors/pages/connector-view/agent/styles.d.ts.map +1 -1
- package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
- package/app/connectors/pages/connector-view/dashboard/styles.d.ts +1 -16
- package/app/connectors/pages/connector-view/dashboard/styles.d.ts.map +1 -1
- package/app/connectors/pages/connector-view/index.d.ts.map +1 -1
- package/app/connectors/pages/connector-view/style.d.ts +5 -0
- package/app/connectors/pages/connector-view/style.d.ts.map +1 -0
- package/app/connectors/pages/settings/index.d.ts.map +1 -1
- package/app/connectors/pages/settings/styles.d.ts +2 -3
- package/app/connectors/pages/settings/styles.d.ts.map +1 -1
- package/app/connectors/pages/upgrade-page/index.d.ts +7 -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/provider.d.ts +3 -6
- package/app/connectors/provider.d.ts.map +1 -1
- package/app/connectors/router.d.ts +3 -2
- package/app/connectors/router.d.ts.map +1 -1
- package/app/style.d.ts +5 -0
- package/app/style.d.ts.map +1 -0
- package/components/layouts/sidebar/index.d.ts.map +1 -1
- package/components/layouts/sidebar/styles.d.ts.map +1 -1
- package/components/ui/bread-crumbs/index.d.ts +6 -2
- package/components/ui/bread-crumbs/index.d.ts.map +1 -1
- package/components/ui/bread-crumbs/styles.d.ts.map +1 -1
- package/components/ui/form/index.d.ts +7 -1
- package/components/ui/form/index.d.ts.map +1 -1
- package/components/ui/form/styles.d.ts.map +1 -1
- package/components/ui/form-fields/index.d.ts +4 -0
- package/components/ui/form-fields/index.d.ts.map +1 -1
- package/components/ui/form-fields/styles.d.ts.map +1 -1
- package/constants/bread-crumbs.d.ts +0 -2
- package/constants/bread-crumbs.d.ts.map +1 -1
- package/constants/gainsight.d.ts +23 -0
- package/constants/gainsight.d.ts.map +1 -0
- package/constants/global-constants.d.ts +13 -0
- package/constants/global-constants.d.ts.map +1 -0
- package/constants/modal.d.ts +1 -1
- package/constants/modal.d.ts.map +1 -1
- package/constants/router-paths.d.ts +1 -1
- package/constants/sidebar.d.ts +3 -0
- package/constants/sidebar.d.ts.map +1 -1
- package/context/index.d.ts +5 -2
- package/context/index.d.ts.map +1 -1
- package/context/main-app-provider/index.d.ts +2 -5
- package/context/main-app-provider/index.d.ts.map +1 -1
- package/features/agent/components/agent-landing/index.d.ts +2 -1
- package/features/agent/components/agent-landing/index.d.ts.map +1 -1
- package/features/agent/components/agent-landing/styles.d.ts +4 -4
- package/features/agent/components/agent-landing/styles.d.ts.map +1 -1
- package/features/agent/constants/index.d.ts +2 -0
- package/features/agent/constants/index.d.ts.map +1 -1
- package/features/api-library/components/api-library/index.d.ts +11 -0
- package/features/api-library/components/api-library/index.d.ts.map +1 -0
- package/features/api-library/components/api-library/styles.d.ts +5 -0
- package/features/api-library/components/api-library/styles.d.ts.map +1 -0
- package/features/api-library/components/api-library-skeleton/index.d.ts.map +1 -0
- package/features/{connector-library → api-library}/components/api-library-skeleton/styles.d.ts +3 -1
- package/features/api-library/components/api-library-skeleton/styles.d.ts.map +1 -0
- package/features/api-library/constants/api-library.d.ts +4 -0
- package/features/api-library/constants/api-library.d.ts.map +1 -0
- package/features/auth/api/index.d.ts +0 -1
- package/features/auth/api/index.d.ts.map +1 -1
- package/features/auth/components/api-executor/index.d.ts +3 -1
- package/features/auth/components/api-executor/index.d.ts.map +1 -1
- package/features/auth/components/auth-form/index.d.ts.map +1 -1
- package/features/auth/components/auth-form/styles.d.ts +2 -1
- package/features/auth/components/auth-form/styles.d.ts.map +1 -1
- package/features/auth/components/auth-form-skeleton/index.d.ts +2 -0
- package/features/auth/components/auth-form-skeleton/index.d.ts.map +1 -0
- package/features/auth/constants/api.d.ts +0 -1
- package/features/auth/constants/api.d.ts.map +1 -1
- package/features/auth/constants/form-config.d.ts.map +1 -1
- package/features/auth/constants/index.d.ts +7 -2
- package/features/auth/constants/index.d.ts.map +1 -1
- package/features/auth/store/initial-state.d.ts +0 -3
- package/features/auth/store/initial-state.d.ts.map +1 -1
- package/features/auth/store/selectors.d.ts +0 -3
- package/features/auth/store/selectors.d.ts.map +1 -1
- package/features/auth/store/slice.d.ts +5 -17
- package/features/auth/store/slice.d.ts.map +1 -1
- package/features/auth/types/form.d.ts +2 -1
- package/features/auth/types/form.d.ts.map +1 -1
- package/features/auth/types/request.d.ts +4 -3
- package/features/auth/types/request.d.ts.map +1 -1
- package/features/auth/utils/index.d.ts.map +1 -1
- package/features/connector-library/api/index.d.ts +1 -2
- package/features/connector-library/api/index.d.ts.map +1 -1
- package/features/connector-library/components/custom-connector-card-item/index.d.ts +11 -0
- package/features/connector-library/components/custom-connector-card-item/index.d.ts.map +1 -0
- package/features/connector-library/components/custom-connector-card-item/styles.d.ts +11 -0
- package/features/connector-library/components/custom-connector-card-item/styles.d.ts.map +1 -0
- package/features/connector-library/components/custom-connector-card-list/__tests__/custom-connector-card.test.d.ts.map +1 -0
- package/features/connector-library/components/custom-connector-card-list/index.d.ts +3 -0
- package/features/connector-library/components/custom-connector-card-list/index.d.ts.map +1 -0
- package/features/connector-library/components/custom-connector-card-list/style.d.ts.map +1 -0
- package/features/connector-library/components/custom-connector-enabled-modal/index.d.ts +9 -0
- package/features/connector-library/components/custom-connector-enabled-modal/index.d.ts.map +1 -0
- package/features/connector-library/components/custom-connector-enabled-modal/styles.d.ts +5 -0
- package/features/connector-library/components/custom-connector-enabled-modal/styles.d.ts.map +1 -0
- package/features/connector-library/constants/api.d.ts +1 -2
- package/features/connector-library/constants/api.d.ts.map +1 -1
- package/features/connector-library/store/initial-state.d.ts +4 -10
- package/features/connector-library/store/initial-state.d.ts.map +1 -1
- package/features/connector-library/store/selectors.d.ts +2 -8
- package/features/connector-library/store/selectors.d.ts.map +1 -1
- package/features/connector-library/store/slice.d.ts +10 -36
- package/features/connector-library/store/slice.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-card/index.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-card/styles.d.ts +0 -11
- package/features/request-new-connector/components/request-new-card/styles.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -1
- 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 +1 -0
- package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/styles.d.ts +3 -1
- package/features/request-new-connector/components/request-new-modal/styles.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/submitted-panel.d.ts.map +1 -1
- package/features/request-new-connector/constants/index.d.ts +1 -1
- package/features/request-new-connector/constants/index.d.ts.map +1 -1
- package/features/request-new-connector/types/index.d.ts +2 -2
- package/features/request-new-connector/types/index.d.ts.map +1 -1
- package/features/template-library/api/index.d.ts +7 -0
- package/features/template-library/api/index.d.ts.map +1 -0
- package/features/template-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +1 -0
- package/features/template-library/components/library-card-list/index.d.ts.map +1 -0
- package/features/{connector-library → template-library}/components/library-card-list/styles.d.ts +0 -2
- package/features/template-library/components/library-card-list/styles.d.ts.map +1 -0
- package/features/template-library/components/library-card-skeleton/index.d.ts.map +1 -0
- package/features/template-library/components/library-card-skeleton/styles.d.ts.map +1 -0
- package/features/template-library/components/library-edit-list/index.d.ts.map +1 -0
- package/features/template-library/components/library-edit-list/styles.d.ts.map +1 -0
- package/features/template-library/constants/api.d.ts +3 -0
- package/features/template-library/constants/api.d.ts.map +1 -0
- package/features/template-library/constants/content-page.d.ts.map +1 -0
- package/features/template-library/store/initial-state.d.ts +15 -0
- package/features/template-library/store/initial-state.d.ts.map +1 -0
- package/features/template-library/store/selectors.d.ts +9 -0
- package/features/template-library/store/selectors.d.ts.map +1 -0
- package/features/template-library/store/slice.d.ts +41 -0
- package/features/template-library/store/slice.d.ts.map +1 -0
- package/features/toast-message/constants/toast.d.ts +2 -0
- package/features/toast-message/constants/toast.d.ts.map +1 -1
- package/features/toast-message/showMessage.d.ts.map +1 -1
- package/gainsight-7AZqfBvZ.js +25 -0
- package/hooks-CjAK86gy.js +6 -0
- package/index-BAHDqKss.js +29 -0
- package/index-BluFU4Qp.js +81 -0
- package/{index-m1nx1YPE.js → index-BnVEsSdV.js} +1712 -1532
- package/index-BqGsuBlL.js +31966 -0
- package/index-DKo2NU-Y.js +104 -0
- package/{index-CQYnmtXy.js → index-Dt3uzcNe.js} +1779 -1443
- package/index-iNlSCq_d.js +190 -0
- package/index.es.js +5 -5
- package/index.umd.js +1497 -476
- package/main.d.ts +1 -0
- package/main.d.ts.map +1 -1
- package/package.json +1 -1
- package/selectors-BZXXKPzK.js +9 -0
- package/showMessage-CQ6TNMXe.js +2648 -0
- package/store/hooks.d.ts +2 -0
- package/store/hooks.d.ts.map +1 -1
- package/store/index.d.ts +4 -0
- package/store/index.d.ts.map +1 -1
- package/store/request-connector-api/initial-state.d.ts +1 -1
- package/store/request-connector-api/slice.d.ts +1 -1
- package/testing/mocks/handlers/auth.d.ts.map +1 -1
- package/testing/mocks/handlers/connector-template.d.ts +1 -0
- package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
- package/testing/setup-store.d.ts +2 -0
- package/testing/setup-store.d.ts.map +1 -1
- package/types/common.d.ts +4 -0
- package/types/common.d.ts.map +1 -1
- package/types/connector.d.ts +10 -6
- package/types/connector.d.ts.map +1 -1
- package/types/router.d.ts +18 -0
- package/types/router.d.ts.map +1 -1
- package/utils/index.d.ts +12 -0
- package/utils/index.d.ts.map +1 -1
- package/app/connectors/pages/settings/connector-config/__tests__/connector-config.test.d.ts.map +0 -1
- package/app/connectors/pages/settings/connector-config/index.d.ts.map +0 -1
- package/app/connectors/pages/settings/connector-config/style.d.ts.map +0 -1
- package/features/auth/utils/type-guards.d.ts +0 -8
- package/features/auth/utils/type-guards.d.ts.map +0 -1
- package/features/connector-library/components/api-library/index.d.ts +0 -7
- package/features/connector-library/components/api-library/index.d.ts.map +0 -1
- package/features/connector-library/components/api-library/styles.d.ts +0 -4
- package/features/connector-library/components/api-library/styles.d.ts.map +0 -1
- package/features/connector-library/components/api-library-skeleton/index.d.ts.map +0 -1
- package/features/connector-library/components/api-library-skeleton/styles.d.ts.map +0 -1
- package/features/connector-library/components/connector-enabled-modal/index.d.ts +0 -9
- package/features/connector-library/components/connector-enabled-modal/index.d.ts.map +0 -1
- package/features/connector-library/components/connector-enabled-modal/styles.d.ts +0 -4
- package/features/connector-library/components/connector-enabled-modal/styles.d.ts.map +0 -1
- package/features/connector-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +0 -1
- package/features/connector-library/components/library-card-list/index.d.ts.map +0 -1
- package/features/connector-library/components/library-card-list/styles.d.ts.map +0 -1
- package/features/connector-library/components/library-card-skeleton/index.d.ts.map +0 -1
- package/features/connector-library/components/library-card-skeleton/styles.d.ts.map +0 -1
- package/features/connector-library/components/library-edit-list/index.d.ts.map +0 -1
- package/features/connector-library/components/library-edit-list/styles.d.ts.map +0 -1
- package/features/connector-library/constants/api-library.d.ts +0 -3
- package/features/connector-library/constants/api-library.d.ts.map +0 -1
- package/features/connector-library/constants/content-page.d.ts.map +0 -1
- package/features/connector-library/types/connector.d.ts +0 -13
- package/features/connector-library/types/connector.d.ts.map +0 -1
- package/features/request-new-connector/components/custom-connector-card/__tests__/custom-connector-card.test.d.ts.map +0 -1
- package/features/request-new-connector/components/custom-connector-card/index.d.ts +0 -10
- package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +0 -1
- package/features/request-new-connector/components/custom-connector-card/style.d.ts.map +0 -1
- package/index-B4vTJgTz.js +0 -66
- package/index-BD6d8j8c.js +0 -68
- package/index-EHBDsMzm.js +0 -67
- package/index-X3arshLk.js +0 -711
- package/index-sfSOXkkP.js +0 -30265
- package/styled-ui-components-D4lUYZ75.js +0 -2253
- /package/app/connectors/pages/{settings/connector-config → api-view}/__tests__/connector-config.test.d.ts +0 -0
- /package/app/connectors/pages/{settings/connector-config → api-view}/index.d.ts +0 -0
- /package/app/connectors/pages/{settings/connector-config → api-view}/style.d.ts +0 -0
- /package/features/{connector-library → api-library}/components/api-library-skeleton/index.d.ts +0 -0
- /package/features/{request-new-connector/components/custom-connector-card → connector-library/components/custom-connector-card-list}/__tests__/custom-connector-card.test.d.ts +0 -0
- /package/features/{request-new-connector/components/custom-connector-card → connector-library/components/custom-connector-card-list}/style.d.ts +0 -0
- /package/features/{connector-library → template-library}/components/library-card-list/__tests__/library-card-list.test.d.ts +0 -0
- /package/features/{connector-library → template-library}/components/library-card-list/index.d.ts +0 -0
- /package/features/{connector-library → template-library}/components/library-card-skeleton/index.d.ts +0 -0
- /package/features/{connector-library → template-library}/components/library-card-skeleton/styles.d.ts +0 -0
- /package/features/{connector-library → template-library}/components/library-edit-list/index.d.ts +0 -0
- /package/features/{connector-library → template-library}/components/library-edit-list/styles.d.ts +0 -0
- /package/features/{connector-library → template-library}/constants/content-page.d.ts +0 -0
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { T as
|
|
6
|
-
|
|
1
|
+
import { s as Z, b as j, o as Qe, T as Ie, u as jt, j as v, af as Zn, ag as y, ah as zt, ai as It, aj as wn, B as U, ak as Pn, m as Hn, al as Ln, am as Dn, an as Ve, M as Ut, ao as On, i as Qt, ap as O, aq as Mn, ar as kn, as as mt, at as ht, au as Yn, av as Jn, A as _e, aw as jn, n as zn, p as Un, ax as Qn, ay as _n, q as Kn, r as $n, az as Oe, R as ve, aA as qn, aB as ft, aC as vt, aD as ei, aE as ti, aF as ni } from "./index-BqGsuBlL.js";
|
|
2
|
+
import * as R from "react";
|
|
3
|
+
import ii, { useState as J, useCallback as D, useLayoutEffect as ui, useRef as te, useMemo as he, createContext as ai, useContext as ut, Component as ri, Fragment as Ke, useEffect as ne, forwardRef as oi, useReducer as li } from "react";
|
|
4
|
+
import { createPortal as si } from "react-dom";
|
|
5
|
+
import { T as Ct, C as fe, A as ci, d as di, e as gi, f as pi, g as bi, k as Ce, m as Me, S as At } from "./showMessage-CQ6TNMXe.js";
|
|
6
|
+
import { u as at, a as ce } from "./hooks-CjAK86gy.js";
|
|
7
|
+
import { G as $e } from "./gainsight-7AZqfBvZ.js";
|
|
8
|
+
import { s as Ii, a as mi, b as hi, c as fi } from "./selectors-BZXXKPzK.js";
|
|
9
|
+
const vi = Z(j)`
|
|
7
10
|
margin-bottom: 36px;
|
|
8
11
|
.arrow {
|
|
9
|
-
border: solid ${
|
|
12
|
+
border: solid ${Qe.palette.gray.gray3};
|
|
10
13
|
border-width: 0 2px 2px 0;
|
|
11
14
|
display: inline-block;
|
|
12
15
|
padding: 3px;
|
|
@@ -14,91 +17,104 @@ const ui = "Custom Connectors", ai = "Salesforce API connector", ri = "Settings"
|
|
|
14
17
|
-webkit-transform: rotate(-45deg);
|
|
15
18
|
height: 5px;
|
|
16
19
|
}
|
|
17
|
-
`,
|
|
20
|
+
`, Ci = Z(Ie)`
|
|
18
21
|
margin-right: 4px;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
`, si = N(de)`
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
`, Ai = Z(j)`
|
|
23
24
|
width: 20px;
|
|
24
25
|
height: 20px;
|
|
25
26
|
margin-right: 4px;
|
|
26
27
|
padding-right: 6px;
|
|
27
|
-
`,
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
`, xi = ({ options: n }) => {
|
|
29
|
+
const e = jt(), u = (i) => {
|
|
30
|
+
i && e(i);
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ v.jsx(vi, { direction: "row", alignItems: "center", "data-testid": "breadCrumbs", children: n.map(({ name: i, route: t }, r) => {
|
|
33
|
+
const o = r === n.length - 1, s = o ? Qe.palette.gray.black : Qe.palette.gray.gray4, a = o ? "lastCrumb" : `crumb-${r}`;
|
|
34
|
+
return /* @__PURE__ */ v.jsxs(j, { direction: "row", alignItems: "center", children: [
|
|
35
|
+
/* @__PURE__ */ v.jsx(
|
|
36
|
+
Ci,
|
|
37
|
+
{
|
|
38
|
+
className: `breadcrumb--item ${o ? "last" : ""}`,
|
|
39
|
+
variant: "h3",
|
|
40
|
+
color: s,
|
|
41
|
+
onClick: () => u(t),
|
|
42
|
+
"data-testid": a,
|
|
43
|
+
children: i
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
o ? null : /* @__PURE__ */ v.jsx(Ai, { direction: "row", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ v.jsx("div", { className: "arrow" }) })
|
|
47
|
+
] }, i.replace(/\s/g, ""));
|
|
48
|
+
}) });
|
|
49
|
+
};
|
|
50
|
+
function pe(n) {
|
|
35
51
|
"@babel/helpers - typeof";
|
|
36
|
-
return
|
|
52
|
+
return pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
37
53
|
return typeof e;
|
|
38
54
|
} : function(e) {
|
|
39
55
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
40
|
-
},
|
|
41
|
-
}
|
|
42
|
-
function
|
|
43
|
-
if (
|
|
44
|
-
var
|
|
45
|
-
if (
|
|
46
|
-
var
|
|
47
|
-
if (
|
|
56
|
+
}, pe(n);
|
|
57
|
+
}
|
|
58
|
+
function yi(n, e) {
|
|
59
|
+
if (pe(n) != "object" || !n) return n;
|
|
60
|
+
var u = n[Symbol.toPrimitive];
|
|
61
|
+
if (u !== void 0) {
|
|
62
|
+
var i = u.call(n, e || "default");
|
|
63
|
+
if (pe(i) != "object") return i;
|
|
48
64
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
49
65
|
}
|
|
50
66
|
return (e === "string" ? String : Number)(n);
|
|
51
67
|
}
|
|
52
|
-
function
|
|
53
|
-
var e =
|
|
54
|
-
return
|
|
68
|
+
function _t(n) {
|
|
69
|
+
var e = yi(n, "string");
|
|
70
|
+
return pe(e) == "symbol" ? e : e + "";
|
|
55
71
|
}
|
|
56
|
-
function
|
|
57
|
-
return (e =
|
|
58
|
-
value:
|
|
72
|
+
function xe(n, e, u) {
|
|
73
|
+
return (e = _t(e)) in n ? Object.defineProperty(n, e, {
|
|
74
|
+
value: u,
|
|
59
75
|
enumerable: !0,
|
|
60
76
|
configurable: !0,
|
|
61
77
|
writable: !0
|
|
62
|
-
}) : n[e] =
|
|
78
|
+
}) : n[e] = u, n;
|
|
63
79
|
}
|
|
64
|
-
function
|
|
65
|
-
var
|
|
80
|
+
function xt(n, e) {
|
|
81
|
+
var u = Object.keys(n);
|
|
66
82
|
if (Object.getOwnPropertySymbols) {
|
|
67
|
-
var
|
|
68
|
-
e && (
|
|
83
|
+
var i = Object.getOwnPropertySymbols(n);
|
|
84
|
+
e && (i = i.filter(function(t) {
|
|
69
85
|
return Object.getOwnPropertyDescriptor(n, t).enumerable;
|
|
70
|
-
})),
|
|
86
|
+
})), u.push.apply(u, i);
|
|
71
87
|
}
|
|
72
|
-
return
|
|
88
|
+
return u;
|
|
73
89
|
}
|
|
74
|
-
function
|
|
90
|
+
function E(n) {
|
|
75
91
|
for (var e = 1; e < arguments.length; e++) {
|
|
76
|
-
var
|
|
77
|
-
e % 2 ?
|
|
78
|
-
|
|
79
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(
|
|
80
|
-
Object.defineProperty(n,
|
|
92
|
+
var u = arguments[e] != null ? arguments[e] : {};
|
|
93
|
+
e % 2 ? xt(Object(u), !0).forEach(function(i) {
|
|
94
|
+
xe(n, i, u[i]);
|
|
95
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(u)) : xt(Object(u)).forEach(function(i) {
|
|
96
|
+
Object.defineProperty(n, i, Object.getOwnPropertyDescriptor(u, i));
|
|
81
97
|
});
|
|
82
98
|
}
|
|
83
99
|
return n;
|
|
84
100
|
}
|
|
85
|
-
function
|
|
101
|
+
function Ei(n) {
|
|
86
102
|
if (Array.isArray(n)) return n;
|
|
87
103
|
}
|
|
88
|
-
function
|
|
89
|
-
var
|
|
90
|
-
if (
|
|
91
|
-
var
|
|
104
|
+
function Gi(n, e) {
|
|
105
|
+
var u = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
|
|
106
|
+
if (u != null) {
|
|
107
|
+
var i, t, r, o, s = [], a = !0, l = !1;
|
|
92
108
|
try {
|
|
93
|
-
if (r = (
|
|
94
|
-
if (Object(
|
|
109
|
+
if (r = (u = u.call(n)).next, e === 0) {
|
|
110
|
+
if (Object(u) !== u) return;
|
|
95
111
|
a = !1;
|
|
96
|
-
} else for (; !(a = (
|
|
112
|
+
} else for (; !(a = (i = r.call(u)).done) && (s.push(i.value), s.length !== e); a = !0) ;
|
|
97
113
|
} catch (c) {
|
|
98
114
|
l = !0, t = c;
|
|
99
115
|
} finally {
|
|
100
116
|
try {
|
|
101
|
-
if (!a &&
|
|
117
|
+
if (!a && u.return != null && (o = u.return(), Object(o) !== o)) return;
|
|
102
118
|
} finally {
|
|
103
119
|
if (l) throw t;
|
|
104
120
|
}
|
|
@@ -106,94 +122,94 @@ function bi(n, e) {
|
|
|
106
122
|
return s;
|
|
107
123
|
}
|
|
108
124
|
}
|
|
109
|
-
function
|
|
125
|
+
function qe(n, e) {
|
|
110
126
|
(e == null || e > n.length) && (e = n.length);
|
|
111
|
-
for (var
|
|
112
|
-
return
|
|
127
|
+
for (var u = 0, i = Array(e); u < e; u++) i[u] = n[u];
|
|
128
|
+
return i;
|
|
113
129
|
}
|
|
114
|
-
function
|
|
130
|
+
function Kt(n, e) {
|
|
115
131
|
if (n) {
|
|
116
|
-
if (typeof n == "string") return
|
|
117
|
-
var
|
|
118
|
-
return
|
|
132
|
+
if (typeof n == "string") return qe(n, e);
|
|
133
|
+
var u = {}.toString.call(n).slice(8, -1);
|
|
134
|
+
return u === "Object" && n.constructor && (u = n.constructor.name), u === "Map" || u === "Set" ? Array.from(n) : u === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u) ? qe(n, e) : void 0;
|
|
119
135
|
}
|
|
120
136
|
}
|
|
121
|
-
function
|
|
137
|
+
function Fi() {
|
|
122
138
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
123
139
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
124
140
|
}
|
|
125
|
-
function
|
|
126
|
-
return
|
|
141
|
+
function ie(n, e) {
|
|
142
|
+
return Ei(n) || Gi(n, e) || Kt(n, e) || Fi();
|
|
127
143
|
}
|
|
128
|
-
function
|
|
144
|
+
function Bi(n, e) {
|
|
129
145
|
if (n == null) return {};
|
|
130
|
-
var
|
|
131
|
-
for (var
|
|
132
|
-
if (e.includes(
|
|
133
|
-
i
|
|
146
|
+
var u = {};
|
|
147
|
+
for (var i in n) if ({}.hasOwnProperty.call(n, i)) {
|
|
148
|
+
if (e.includes(i)) continue;
|
|
149
|
+
u[i] = n[i];
|
|
134
150
|
}
|
|
135
|
-
return
|
|
151
|
+
return u;
|
|
136
152
|
}
|
|
137
|
-
function
|
|
153
|
+
function ae(n, e) {
|
|
138
154
|
if (n == null) return {};
|
|
139
|
-
var
|
|
155
|
+
var u, i, t = Bi(n, e);
|
|
140
156
|
if (Object.getOwnPropertySymbols) {
|
|
141
157
|
var r = Object.getOwnPropertySymbols(n);
|
|
142
|
-
for (
|
|
158
|
+
for (i = 0; i < r.length; i++) u = r[i], e.includes(u) || {}.propertyIsEnumerable.call(n, u) && (t[u] = n[u]);
|
|
143
159
|
}
|
|
144
160
|
return t;
|
|
145
161
|
}
|
|
146
|
-
var
|
|
147
|
-
function
|
|
148
|
-
var e = n.defaultInputValue,
|
|
149
|
-
typeof l == "function" && l(k,
|
|
150
|
-
}, [l]),
|
|
151
|
-
var
|
|
152
|
-
typeof c == "function" && (
|
|
153
|
-
}, [c]),
|
|
154
|
-
typeof
|
|
155
|
-
}, [
|
|
156
|
-
typeof d == "function" && d(),
|
|
157
|
-
}, [d]),
|
|
158
|
-
return
|
|
159
|
-
inputValue:
|
|
160
|
-
menuIsOpen:
|
|
161
|
-
onChange:
|
|
162
|
-
onInputChange:
|
|
163
|
-
onMenuClose:
|
|
164
|
-
onMenuOpen:
|
|
165
|
-
value:
|
|
162
|
+
var Ti = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
163
|
+
function Si(n) {
|
|
164
|
+
var e = n.defaultInputValue, u = e === void 0 ? "" : e, i = n.defaultMenuIsOpen, t = i === void 0 ? !1 : i, r = n.defaultValue, o = r === void 0 ? null : r, s = n.inputValue, a = n.menuIsOpen, l = n.onChange, c = n.onInputChange, d = n.onMenuClose, g = n.onMenuOpen, b = n.value, f = ae(n, Ti), I = J(s !== void 0 ? s : u), p = ie(I, 2), m = p[0], A = p[1], C = J(a !== void 0 ? a : t), T = ie(C, 2), V = T[0], x = T[1], S = J(b !== void 0 ? b : o), h = ie(S, 2), B = h[0], W = h[1], N = D(function(k, re) {
|
|
165
|
+
typeof l == "function" && l(k, re), W(k);
|
|
166
|
+
}, [l]), L = D(function(k, re) {
|
|
167
|
+
var oe;
|
|
168
|
+
typeof c == "function" && (oe = c(k, re)), A(oe !== void 0 ? oe : k);
|
|
169
|
+
}, [c]), Q = D(function() {
|
|
170
|
+
typeof g == "function" && g(), x(!0);
|
|
171
|
+
}, [g]), _ = D(function() {
|
|
172
|
+
typeof d == "function" && d(), x(!1);
|
|
173
|
+
}, [d]), H = s !== void 0 ? s : m, w = a !== void 0 ? a : V, z = b !== void 0 ? b : B;
|
|
174
|
+
return E(E({}, f), {}, {
|
|
175
|
+
inputValue: H,
|
|
176
|
+
menuIsOpen: w,
|
|
177
|
+
onChange: N,
|
|
178
|
+
onInputChange: L,
|
|
179
|
+
onMenuClose: _,
|
|
180
|
+
onMenuOpen: Q,
|
|
181
|
+
value: z
|
|
166
182
|
});
|
|
167
183
|
}
|
|
168
184
|
function G() {
|
|
169
185
|
return G = Object.assign ? Object.assign.bind() : function(n) {
|
|
170
186
|
for (var e = 1; e < arguments.length; e++) {
|
|
171
|
-
var
|
|
172
|
-
for (var
|
|
187
|
+
var u = arguments[e];
|
|
188
|
+
for (var i in u) ({}).hasOwnProperty.call(u, i) && (n[i] = u[i]);
|
|
173
189
|
}
|
|
174
190
|
return n;
|
|
175
191
|
}, G.apply(null, arguments);
|
|
176
192
|
}
|
|
177
|
-
function
|
|
193
|
+
function Vi(n, e) {
|
|
178
194
|
if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
179
195
|
}
|
|
180
|
-
function
|
|
181
|
-
for (var
|
|
182
|
-
var
|
|
183
|
-
|
|
196
|
+
function yt(n, e) {
|
|
197
|
+
for (var u = 0; u < e.length; u++) {
|
|
198
|
+
var i = e[u];
|
|
199
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, _t(i.key), i);
|
|
184
200
|
}
|
|
185
201
|
}
|
|
186
|
-
function
|
|
187
|
-
return e &&
|
|
202
|
+
function Ri(n, e, u) {
|
|
203
|
+
return e && yt(n.prototype, e), u && yt(n, u), Object.defineProperty(n, "prototype", {
|
|
188
204
|
writable: !1
|
|
189
205
|
}), n;
|
|
190
206
|
}
|
|
191
|
-
function
|
|
192
|
-
return
|
|
193
|
-
return
|
|
194
|
-
},
|
|
207
|
+
function et(n, e) {
|
|
208
|
+
return et = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(u, i) {
|
|
209
|
+
return u.__proto__ = i, u;
|
|
210
|
+
}, et(n, e);
|
|
195
211
|
}
|
|
196
|
-
function
|
|
212
|
+
function Wi(n, e) {
|
|
197
213
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
198
214
|
n.prototype = Object.create(e && e.prototype, {
|
|
199
215
|
constructor: {
|
|
@@ -203,225 +219,225 @@ function Ci(n, e) {
|
|
|
203
219
|
}
|
|
204
220
|
}), Object.defineProperty(n, "prototype", {
|
|
205
221
|
writable: !1
|
|
206
|
-
}), e &&
|
|
222
|
+
}), e && et(n, e);
|
|
207
223
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
224
|
+
function Re(n) {
|
|
225
|
+
return Re = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
210
226
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
211
|
-
},
|
|
227
|
+
}, Re(n);
|
|
212
228
|
}
|
|
213
|
-
function
|
|
229
|
+
function $t() {
|
|
214
230
|
try {
|
|
215
231
|
var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
216
232
|
}));
|
|
217
233
|
} catch {
|
|
218
234
|
}
|
|
219
|
-
return (
|
|
235
|
+
return ($t = function() {
|
|
220
236
|
return !!n;
|
|
221
237
|
})();
|
|
222
238
|
}
|
|
223
|
-
function
|
|
239
|
+
function Ni(n) {
|
|
224
240
|
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
225
241
|
return n;
|
|
226
242
|
}
|
|
227
|
-
function
|
|
228
|
-
if (e && (
|
|
243
|
+
function Xi(n, e) {
|
|
244
|
+
if (e && (pe(e) == "object" || typeof e == "function")) return e;
|
|
229
245
|
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
230
|
-
return
|
|
246
|
+
return Ni(n);
|
|
231
247
|
}
|
|
232
|
-
function
|
|
233
|
-
var e =
|
|
248
|
+
function Zi(n) {
|
|
249
|
+
var e = $t();
|
|
234
250
|
return function() {
|
|
235
|
-
var
|
|
251
|
+
var u, i = Re(n);
|
|
236
252
|
if (e) {
|
|
237
|
-
var t =
|
|
238
|
-
|
|
239
|
-
} else
|
|
240
|
-
return
|
|
253
|
+
var t = Re(this).constructor;
|
|
254
|
+
u = Reflect.construct(i, arguments, t);
|
|
255
|
+
} else u = i.apply(this, arguments);
|
|
256
|
+
return Xi(this, u);
|
|
241
257
|
};
|
|
242
258
|
}
|
|
243
|
-
function
|
|
244
|
-
if (Array.isArray(n)) return
|
|
259
|
+
function wi(n) {
|
|
260
|
+
if (Array.isArray(n)) return qe(n);
|
|
245
261
|
}
|
|
246
|
-
function
|
|
262
|
+
function Pi(n) {
|
|
247
263
|
if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
|
|
248
264
|
}
|
|
249
|
-
function
|
|
265
|
+
function Hi() {
|
|
250
266
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
251
267
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
252
268
|
}
|
|
253
|
-
function
|
|
254
|
-
return
|
|
269
|
+
function rt(n) {
|
|
270
|
+
return wi(n) || Pi(n) || Kt(n) || Hi();
|
|
255
271
|
}
|
|
256
|
-
function
|
|
272
|
+
function Li(n, e) {
|
|
257
273
|
return e || (e = n.slice(0)), Object.freeze(Object.defineProperties(n, {
|
|
258
274
|
raw: {
|
|
259
275
|
value: Object.freeze(e)
|
|
260
276
|
}
|
|
261
277
|
}));
|
|
262
278
|
}
|
|
263
|
-
const
|
|
279
|
+
const Di = Math.min, Oi = Math.max, We = Math.round, Ge = Math.floor, Ne = (n) => ({
|
|
264
280
|
x: n,
|
|
265
281
|
y: n
|
|
266
282
|
});
|
|
267
|
-
function
|
|
283
|
+
function Mi(n) {
|
|
268
284
|
const {
|
|
269
285
|
x: e,
|
|
270
|
-
y:
|
|
271
|
-
width:
|
|
286
|
+
y: u,
|
|
287
|
+
width: i,
|
|
272
288
|
height: t
|
|
273
289
|
} = n;
|
|
274
290
|
return {
|
|
275
|
-
width:
|
|
291
|
+
width: i,
|
|
276
292
|
height: t,
|
|
277
|
-
top:
|
|
293
|
+
top: u,
|
|
278
294
|
left: e,
|
|
279
|
-
right: e +
|
|
280
|
-
bottom:
|
|
295
|
+
right: e + i,
|
|
296
|
+
bottom: u + t,
|
|
281
297
|
x: e,
|
|
282
|
-
y:
|
|
298
|
+
y: u
|
|
283
299
|
};
|
|
284
300
|
}
|
|
285
|
-
function
|
|
301
|
+
function He() {
|
|
286
302
|
return typeof window < "u";
|
|
287
303
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
304
|
+
function qt(n) {
|
|
305
|
+
return tn(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
|
290
306
|
}
|
|
291
|
-
function
|
|
307
|
+
function ue(n) {
|
|
292
308
|
var e;
|
|
293
309
|
return (n == null || (e = n.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
294
310
|
}
|
|
295
|
-
function
|
|
311
|
+
function en(n) {
|
|
296
312
|
var e;
|
|
297
|
-
return (e = (
|
|
313
|
+
return (e = (tn(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : e.documentElement;
|
|
298
314
|
}
|
|
299
|
-
function
|
|
300
|
-
return
|
|
315
|
+
function tn(n) {
|
|
316
|
+
return He() ? n instanceof Node || n instanceof ue(n).Node : !1;
|
|
301
317
|
}
|
|
302
|
-
function
|
|
303
|
-
return
|
|
318
|
+
function ki(n) {
|
|
319
|
+
return He() ? n instanceof Element || n instanceof ue(n).Element : !1;
|
|
304
320
|
}
|
|
305
|
-
function
|
|
306
|
-
return
|
|
321
|
+
function ot(n) {
|
|
322
|
+
return He() ? n instanceof HTMLElement || n instanceof ue(n).HTMLElement : !1;
|
|
307
323
|
}
|
|
308
|
-
function
|
|
309
|
-
return !
|
|
324
|
+
function Et(n) {
|
|
325
|
+
return !He() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof ue(n).ShadowRoot;
|
|
310
326
|
}
|
|
311
|
-
function
|
|
327
|
+
function nn(n) {
|
|
312
328
|
const {
|
|
313
329
|
overflow: e,
|
|
314
|
-
overflowX:
|
|
315
|
-
overflowY:
|
|
330
|
+
overflowX: u,
|
|
331
|
+
overflowY: i,
|
|
316
332
|
display: t
|
|
317
|
-
} =
|
|
318
|
-
return /auto|scroll|overlay|hidden|clip/.test(e +
|
|
333
|
+
} = lt(n);
|
|
334
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + i + u) && !["inline", "contents"].includes(t);
|
|
319
335
|
}
|
|
320
|
-
function
|
|
336
|
+
function Yi() {
|
|
321
337
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
322
338
|
}
|
|
323
|
-
function
|
|
324
|
-
return ["html", "body", "#document"].includes(
|
|
339
|
+
function Ji(n) {
|
|
340
|
+
return ["html", "body", "#document"].includes(qt(n));
|
|
325
341
|
}
|
|
326
|
-
function
|
|
327
|
-
return
|
|
342
|
+
function lt(n) {
|
|
343
|
+
return ue(n).getComputedStyle(n);
|
|
328
344
|
}
|
|
329
|
-
function
|
|
330
|
-
if (
|
|
345
|
+
function ji(n) {
|
|
346
|
+
if (qt(n) === "html")
|
|
331
347
|
return n;
|
|
332
348
|
const e = (
|
|
333
349
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
334
350
|
n.assignedSlot || // DOM Element detected.
|
|
335
351
|
n.parentNode || // ShadowRoot detected.
|
|
336
|
-
|
|
337
|
-
|
|
352
|
+
Et(n) && n.host || // Fallback.
|
|
353
|
+
en(n)
|
|
338
354
|
);
|
|
339
|
-
return
|
|
355
|
+
return Et(e) ? e.host : e;
|
|
340
356
|
}
|
|
341
|
-
function
|
|
342
|
-
const e =
|
|
343
|
-
return
|
|
357
|
+
function un(n) {
|
|
358
|
+
const e = ji(n);
|
|
359
|
+
return Ji(e) ? n.ownerDocument ? n.ownerDocument.body : n.body : ot(e) && nn(e) ? e : un(e);
|
|
344
360
|
}
|
|
345
|
-
function
|
|
346
|
-
var
|
|
347
|
-
e === void 0 && (e = []),
|
|
348
|
-
const t =
|
|
361
|
+
function Xe(n, e, u) {
|
|
362
|
+
var i;
|
|
363
|
+
e === void 0 && (e = []), u === void 0 && (u = !0);
|
|
364
|
+
const t = un(n), r = t === ((i = n.ownerDocument) == null ? void 0 : i.body), o = ue(t);
|
|
349
365
|
if (r) {
|
|
350
|
-
const s =
|
|
351
|
-
return e.concat(o, o.visualViewport || [],
|
|
366
|
+
const s = tt(o);
|
|
367
|
+
return e.concat(o, o.visualViewport || [], nn(t) ? t : [], s && u ? Xe(s) : []);
|
|
352
368
|
}
|
|
353
|
-
return e.concat(t,
|
|
369
|
+
return e.concat(t, Xe(t, [], u));
|
|
354
370
|
}
|
|
355
|
-
function
|
|
371
|
+
function tt(n) {
|
|
356
372
|
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
357
373
|
}
|
|
358
|
-
function
|
|
359
|
-
const e =
|
|
360
|
-
let
|
|
361
|
-
const t =
|
|
362
|
-
return s && (
|
|
363
|
-
width:
|
|
364
|
-
height:
|
|
374
|
+
function zi(n) {
|
|
375
|
+
const e = lt(n);
|
|
376
|
+
let u = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
377
|
+
const t = ot(n), r = t ? n.offsetWidth : u, o = t ? n.offsetHeight : i, s = We(u) !== r || We(i) !== o;
|
|
378
|
+
return s && (u = r, i = o), {
|
|
379
|
+
width: u,
|
|
380
|
+
height: i,
|
|
365
381
|
$: s
|
|
366
382
|
};
|
|
367
383
|
}
|
|
368
|
-
function
|
|
369
|
-
return
|
|
384
|
+
function st(n) {
|
|
385
|
+
return ki(n) ? n : n.contextElement;
|
|
370
386
|
}
|
|
371
|
-
function
|
|
372
|
-
const e =
|
|
373
|
-
if (!
|
|
374
|
-
return
|
|
375
|
-
const
|
|
376
|
-
width:
|
|
387
|
+
function Gt(n) {
|
|
388
|
+
const e = st(n);
|
|
389
|
+
if (!ot(e))
|
|
390
|
+
return Ne(1);
|
|
391
|
+
const u = e.getBoundingClientRect(), {
|
|
392
|
+
width: i,
|
|
377
393
|
height: t,
|
|
378
394
|
$: r
|
|
379
|
-
} =
|
|
380
|
-
let o = (r ?
|
|
395
|
+
} = zi(e);
|
|
396
|
+
let o = (r ? We(u.width) : u.width) / i, s = (r ? We(u.height) : u.height) / t;
|
|
381
397
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
382
398
|
x: o,
|
|
383
399
|
y: s
|
|
384
400
|
};
|
|
385
401
|
}
|
|
386
|
-
const
|
|
387
|
-
function
|
|
388
|
-
const e =
|
|
389
|
-
return !
|
|
402
|
+
const Ui = /* @__PURE__ */ Ne(0);
|
|
403
|
+
function Qi(n) {
|
|
404
|
+
const e = ue(n);
|
|
405
|
+
return !Yi() || !e.visualViewport ? Ui : {
|
|
390
406
|
x: e.visualViewport.offsetLeft,
|
|
391
407
|
y: e.visualViewport.offsetTop
|
|
392
408
|
};
|
|
393
409
|
}
|
|
394
|
-
function
|
|
410
|
+
function _i(n, e, u) {
|
|
395
411
|
return !1;
|
|
396
412
|
}
|
|
397
|
-
function
|
|
413
|
+
function Ft(n, e, u, i) {
|
|
398
414
|
e === void 0 && (e = !1);
|
|
399
|
-
const t = n.getBoundingClientRect(), r =
|
|
400
|
-
let o =
|
|
401
|
-
e && (o =
|
|
402
|
-
const s =
|
|
415
|
+
const t = n.getBoundingClientRect(), r = st(n);
|
|
416
|
+
let o = Ne(1);
|
|
417
|
+
e && (o = Gt(n));
|
|
418
|
+
const s = _i() ? Qi(r) : Ne(0);
|
|
403
419
|
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
420
|
if (r) {
|
|
405
|
-
const
|
|
406
|
-
let
|
|
407
|
-
for (;
|
|
408
|
-
const
|
|
409
|
-
a *=
|
|
421
|
+
const g = ue(r), b = i;
|
|
422
|
+
let f = g, I = tt(f);
|
|
423
|
+
for (; I && i && b !== f; ) {
|
|
424
|
+
const p = Gt(I), m = I.getBoundingClientRect(), A = lt(I), C = m.left + (I.clientLeft + parseFloat(A.paddingLeft)) * p.x, T = m.top + (I.clientTop + parseFloat(A.paddingTop)) * p.y;
|
|
425
|
+
a *= p.x, l *= p.y, c *= p.x, d *= p.y, a += C, l += T, f = ue(I), I = tt(f);
|
|
410
426
|
}
|
|
411
427
|
}
|
|
412
|
-
return
|
|
428
|
+
return Mi({
|
|
413
429
|
width: c,
|
|
414
430
|
height: d,
|
|
415
431
|
x: a,
|
|
416
432
|
y: l
|
|
417
433
|
});
|
|
418
434
|
}
|
|
419
|
-
function
|
|
420
|
-
let
|
|
421
|
-
const t =
|
|
435
|
+
function Ki(n, e) {
|
|
436
|
+
let u = null, i;
|
|
437
|
+
const t = en(n);
|
|
422
438
|
function r() {
|
|
423
439
|
var s;
|
|
424
|
-
clearTimeout(
|
|
440
|
+
clearTimeout(i), (s = u) == null || s.disconnect(), u = null;
|
|
425
441
|
}
|
|
426
442
|
function o(s, a) {
|
|
427
443
|
s === void 0 && (s = !1), a === void 0 && (a = 1), r();
|
|
@@ -429,147 +445,147 @@ function Li(n, e) {
|
|
|
429
445
|
left: l,
|
|
430
446
|
top: c,
|
|
431
447
|
width: d,
|
|
432
|
-
height:
|
|
448
|
+
height: g
|
|
433
449
|
} = n.getBoundingClientRect();
|
|
434
|
-
if (s || e(), !d || !
|
|
450
|
+
if (s || e(), !d || !g)
|
|
435
451
|
return;
|
|
436
|
-
const
|
|
437
|
-
rootMargin: -
|
|
438
|
-
threshold:
|
|
452
|
+
const b = Ge(c), f = Ge(t.clientWidth - (l + d)), I = Ge(t.clientHeight - (c + g)), p = Ge(l), A = {
|
|
453
|
+
rootMargin: -b + "px " + -f + "px " + -I + "px " + -p + "px",
|
|
454
|
+
threshold: Oi(0, Di(1, a)) || 1
|
|
439
455
|
};
|
|
440
|
-
let
|
|
441
|
-
function
|
|
442
|
-
const
|
|
443
|
-
if (
|
|
444
|
-
if (!
|
|
456
|
+
let C = !0;
|
|
457
|
+
function T(V) {
|
|
458
|
+
const x = V[0].intersectionRatio;
|
|
459
|
+
if (x !== a) {
|
|
460
|
+
if (!C)
|
|
445
461
|
return o();
|
|
446
|
-
|
|
462
|
+
x ? o(!1, x) : i = setTimeout(() => {
|
|
447
463
|
o(!1, 1e-7);
|
|
448
464
|
}, 1e3);
|
|
449
465
|
}
|
|
450
|
-
|
|
466
|
+
C = !1;
|
|
451
467
|
}
|
|
452
468
|
try {
|
|
453
|
-
|
|
454
|
-
...
|
|
469
|
+
u = new IntersectionObserver(T, {
|
|
470
|
+
...A,
|
|
455
471
|
// Handle <iframe>s
|
|
456
472
|
root: t.ownerDocument
|
|
457
473
|
});
|
|
458
474
|
} catch {
|
|
459
|
-
|
|
475
|
+
u = new IntersectionObserver(T, A);
|
|
460
476
|
}
|
|
461
|
-
|
|
477
|
+
u.observe(n);
|
|
462
478
|
}
|
|
463
479
|
return o(!0), r;
|
|
464
480
|
}
|
|
465
|
-
function
|
|
466
|
-
|
|
481
|
+
function $i(n, e, u, i) {
|
|
482
|
+
i === void 0 && (i = {});
|
|
467
483
|
const {
|
|
468
484
|
ancestorScroll: t = !0,
|
|
469
485
|
ancestorResize: r = !0,
|
|
470
486
|
elementResize: o = typeof ResizeObserver == "function",
|
|
471
487
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
472
488
|
animationFrame: a = !1
|
|
473
|
-
} =
|
|
489
|
+
} = i, l = st(n), c = t || r ? [...l ? Xe(l) : [], ...Xe(e)] : [];
|
|
474
490
|
c.forEach((m) => {
|
|
475
|
-
t && m.addEventListener("scroll",
|
|
491
|
+
t && m.addEventListener("scroll", u, {
|
|
476
492
|
passive: !0
|
|
477
|
-
}), r && m.addEventListener("resize",
|
|
493
|
+
}), r && m.addEventListener("resize", u);
|
|
478
494
|
});
|
|
479
|
-
const d = l && s ?
|
|
480
|
-
let
|
|
481
|
-
o && (
|
|
482
|
-
let [
|
|
483
|
-
|
|
484
|
-
var
|
|
485
|
-
(
|
|
486
|
-
})),
|
|
487
|
-
}), l && !a &&
|
|
488
|
-
let
|
|
489
|
-
a &&
|
|
490
|
-
function
|
|
491
|
-
const m =
|
|
492
|
-
|
|
495
|
+
const d = l && s ? Ki(l, u) : null;
|
|
496
|
+
let g = -1, b = null;
|
|
497
|
+
o && (b = new ResizeObserver((m) => {
|
|
498
|
+
let [A] = m;
|
|
499
|
+
A && A.target === l && b && (b.unobserve(e), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
|
|
500
|
+
var C;
|
|
501
|
+
(C = b) == null || C.observe(e);
|
|
502
|
+
})), u();
|
|
503
|
+
}), l && !a && b.observe(l), b.observe(e));
|
|
504
|
+
let f, I = a ? Ft(n) : null;
|
|
505
|
+
a && p();
|
|
506
|
+
function p() {
|
|
507
|
+
const m = Ft(n);
|
|
508
|
+
I && (m.x !== I.x || m.y !== I.y || m.width !== I.width || m.height !== I.height) && u(), I = m, f = requestAnimationFrame(p);
|
|
493
509
|
}
|
|
494
|
-
return
|
|
510
|
+
return u(), () => {
|
|
495
511
|
var m;
|
|
496
|
-
c.forEach((
|
|
497
|
-
t &&
|
|
498
|
-
}), d == null || d(), (m =
|
|
512
|
+
c.forEach((A) => {
|
|
513
|
+
t && A.removeEventListener("scroll", u), r && A.removeEventListener("resize", u);
|
|
514
|
+
}), d == null || d(), (m = b) == null || m.disconnect(), b = null, a && cancelAnimationFrame(f);
|
|
499
515
|
};
|
|
500
516
|
}
|
|
501
|
-
var
|
|
517
|
+
var nt = ui, qi = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ze = function() {
|
|
502
518
|
};
|
|
503
|
-
function
|
|
519
|
+
function eu(n, e) {
|
|
504
520
|
return e ? e[0] === "-" ? n + e : n + "__" + e : n;
|
|
505
521
|
}
|
|
506
|
-
function
|
|
507
|
-
for (var
|
|
508
|
-
|
|
509
|
-
var r = [].concat(
|
|
522
|
+
function tu(n, e) {
|
|
523
|
+
for (var u = arguments.length, i = new Array(u > 2 ? u - 2 : 0), t = 2; t < u; t++)
|
|
524
|
+
i[t - 2] = arguments[t];
|
|
525
|
+
var r = [].concat(i);
|
|
510
526
|
if (e && n)
|
|
511
527
|
for (var o in e)
|
|
512
|
-
e.hasOwnProperty(o) && e[o] && r.push("".concat(
|
|
528
|
+
e.hasOwnProperty(o) && e[o] && r.push("".concat(eu(n, o)));
|
|
513
529
|
return r.filter(function(s) {
|
|
514
530
|
return s;
|
|
515
531
|
}).map(function(s) {
|
|
516
532
|
return String(s).trim();
|
|
517
533
|
}).join(" ");
|
|
518
534
|
}
|
|
519
|
-
var
|
|
520
|
-
return
|
|
521
|
-
},
|
|
535
|
+
var Bt = function(e) {
|
|
536
|
+
return cu(e) ? e.filter(Boolean) : pe(e) === "object" && e !== null ? [e] : [];
|
|
537
|
+
}, an = function(e) {
|
|
522
538
|
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
|
|
524
|
-
return
|
|
525
|
-
},
|
|
539
|
+
var u = ae(e, qi);
|
|
540
|
+
return E({}, u);
|
|
541
|
+
}, X = function(e, u, i) {
|
|
526
542
|
var t = e.cx, r = e.getStyles, o = e.getClassNames, s = e.className;
|
|
527
543
|
return {
|
|
528
|
-
css: r(
|
|
529
|
-
className: t(
|
|
544
|
+
css: r(u, e),
|
|
545
|
+
className: t(i ?? {}, o(u, e), s)
|
|
530
546
|
};
|
|
531
547
|
};
|
|
532
|
-
function
|
|
548
|
+
function Le(n) {
|
|
533
549
|
return [document.documentElement, document.body, window].indexOf(n) > -1;
|
|
534
550
|
}
|
|
535
|
-
function
|
|
536
|
-
return
|
|
551
|
+
function nu(n) {
|
|
552
|
+
return Le(n) ? window.innerHeight : n.clientHeight;
|
|
537
553
|
}
|
|
538
|
-
function
|
|
539
|
-
return
|
|
554
|
+
function rn(n) {
|
|
555
|
+
return Le(n) ? window.pageYOffset : n.scrollTop;
|
|
540
556
|
}
|
|
541
|
-
function
|
|
542
|
-
if (
|
|
557
|
+
function we(n, e) {
|
|
558
|
+
if (Le(n)) {
|
|
543
559
|
window.scrollTo(0, e);
|
|
544
560
|
return;
|
|
545
561
|
}
|
|
546
562
|
n.scrollTop = e;
|
|
547
563
|
}
|
|
548
|
-
function
|
|
549
|
-
var e = getComputedStyle(n),
|
|
564
|
+
function iu(n) {
|
|
565
|
+
var e = getComputedStyle(n), u = e.position === "absolute", i = /(auto|scroll)/;
|
|
550
566
|
if (e.position === "fixed") return document.documentElement;
|
|
551
567
|
for (var t = n; t = t.parentElement; )
|
|
552
|
-
if (e = getComputedStyle(t), !(
|
|
568
|
+
if (e = getComputedStyle(t), !(u && e.position === "static") && i.test(e.overflow + e.overflowY + e.overflowX))
|
|
553
569
|
return t;
|
|
554
570
|
return document.documentElement;
|
|
555
571
|
}
|
|
556
|
-
function
|
|
557
|
-
return
|
|
572
|
+
function uu(n, e, u, i) {
|
|
573
|
+
return u * ((n = n / i - 1) * n * n + 1) + e;
|
|
558
574
|
}
|
|
559
|
-
function
|
|
560
|
-
var
|
|
575
|
+
function Fe(n, e) {
|
|
576
|
+
var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Ze, t = rn(n), r = e - t, o = 10, s = 0;
|
|
561
577
|
function a() {
|
|
562
578
|
s += o;
|
|
563
|
-
var l =
|
|
564
|
-
|
|
579
|
+
var l = uu(s, t, r, u);
|
|
580
|
+
we(n, l), s < u ? window.requestAnimationFrame(a) : i(n);
|
|
565
581
|
}
|
|
566
582
|
a();
|
|
567
583
|
}
|
|
568
|
-
function
|
|
569
|
-
var
|
|
570
|
-
|
|
584
|
+
function Tt(n, e) {
|
|
585
|
+
var u = n.getBoundingClientRect(), i = e.getBoundingClientRect(), t = e.offsetHeight / 3;
|
|
586
|
+
i.bottom + t > u.bottom ? we(n, Math.min(e.offsetTop + e.clientHeight - n.offsetHeight + t, n.scrollHeight)) : i.top - t < u.top && we(n, Math.max(e.offsetTop - t, 0));
|
|
571
587
|
}
|
|
572
|
-
function
|
|
588
|
+
function au(n) {
|
|
573
589
|
var e = n.getBoundingClientRect();
|
|
574
590
|
return {
|
|
575
591
|
bottom: e.bottom,
|
|
@@ -580,105 +596,105 @@ function zi(n) {
|
|
|
580
596
|
width: e.width
|
|
581
597
|
};
|
|
582
598
|
}
|
|
583
|
-
function
|
|
599
|
+
function St() {
|
|
584
600
|
try {
|
|
585
601
|
return document.createEvent("TouchEvent"), !0;
|
|
586
602
|
} catch {
|
|
587
603
|
return !1;
|
|
588
604
|
}
|
|
589
605
|
}
|
|
590
|
-
function
|
|
606
|
+
function ru() {
|
|
591
607
|
try {
|
|
592
608
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
593
609
|
} catch {
|
|
594
610
|
return !1;
|
|
595
611
|
}
|
|
596
612
|
}
|
|
597
|
-
var
|
|
613
|
+
var on = !1, ou = {
|
|
598
614
|
get passive() {
|
|
599
|
-
return
|
|
615
|
+
return on = !0;
|
|
600
616
|
}
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
var
|
|
604
|
-
function
|
|
617
|
+
}, Be = typeof window < "u" ? window : {};
|
|
618
|
+
Be.addEventListener && Be.removeEventListener && (Be.addEventListener("p", Ze, ou), Be.removeEventListener("p", Ze, !1));
|
|
619
|
+
var lu = on;
|
|
620
|
+
function su(n) {
|
|
605
621
|
return n != null;
|
|
606
622
|
}
|
|
607
|
-
function
|
|
623
|
+
function cu(n) {
|
|
608
624
|
return Array.isArray(n);
|
|
609
625
|
}
|
|
610
|
-
function
|
|
611
|
-
return n ? e :
|
|
626
|
+
function Te(n, e, u) {
|
|
627
|
+
return n ? e : u;
|
|
612
628
|
}
|
|
613
|
-
var
|
|
614
|
-
for (var
|
|
615
|
-
|
|
629
|
+
var du = function(e) {
|
|
630
|
+
for (var u = arguments.length, i = new Array(u > 1 ? u - 1 : 0), t = 1; t < u; t++)
|
|
631
|
+
i[t - 1] = arguments[t];
|
|
616
632
|
var r = Object.entries(e).filter(function(o) {
|
|
617
|
-
var s =
|
|
618
|
-
return !
|
|
633
|
+
var s = ie(o, 1), a = s[0];
|
|
634
|
+
return !i.includes(a);
|
|
619
635
|
});
|
|
620
636
|
return r.reduce(function(o, s) {
|
|
621
|
-
var a =
|
|
637
|
+
var a = ie(s, 2), l = a[0], c = a[1];
|
|
622
638
|
return o[l] = c, o;
|
|
623
639
|
}, {});
|
|
624
|
-
},
|
|
625
|
-
function
|
|
626
|
-
var e = n.maxHeight,
|
|
640
|
+
}, gu = ["children", "innerProps"], pu = ["children", "innerProps"];
|
|
641
|
+
function bu(n) {
|
|
642
|
+
var e = n.maxHeight, u = n.menuEl, i = n.minHeight, t = n.placement, r = n.shouldScroll, o = n.isFixedPosition, s = n.controlHeight, a = iu(u), l = {
|
|
627
643
|
placement: "bottom",
|
|
628
644
|
maxHeight: e
|
|
629
645
|
};
|
|
630
|
-
if (!
|
|
631
|
-
var c = a.getBoundingClientRect(), d = c.height,
|
|
646
|
+
if (!u || !u.offsetParent) return l;
|
|
647
|
+
var c = a.getBoundingClientRect(), d = c.height, g = u.getBoundingClientRect(), b = g.bottom, f = g.height, I = g.top, p = u.offsetParent.getBoundingClientRect(), m = p.top, A = o ? window.innerHeight : nu(a), C = rn(a), T = parseInt(getComputedStyle(u).marginBottom, 10), V = parseInt(getComputedStyle(u).marginTop, 10), x = m - V, S = A - I, h = x + C, B = d - C - I, W = b - A + C + T, N = C + I - V, L = 160;
|
|
632
648
|
switch (t) {
|
|
633
649
|
case "auto":
|
|
634
650
|
case "bottom":
|
|
635
|
-
if (S >=
|
|
651
|
+
if (S >= f)
|
|
636
652
|
return {
|
|
637
653
|
placement: "bottom",
|
|
638
654
|
maxHeight: e
|
|
639
655
|
};
|
|
640
|
-
if (
|
|
641
|
-
return r &&
|
|
656
|
+
if (B >= f && !o)
|
|
657
|
+
return r && Fe(a, W, L), {
|
|
642
658
|
placement: "bottom",
|
|
643
659
|
maxHeight: e
|
|
644
660
|
};
|
|
645
|
-
if (!o &&
|
|
646
|
-
r &&
|
|
647
|
-
var
|
|
661
|
+
if (!o && B >= i || o && S >= i) {
|
|
662
|
+
r && Fe(a, W, L);
|
|
663
|
+
var Q = o ? S - T : B - T;
|
|
648
664
|
return {
|
|
649
665
|
placement: "bottom",
|
|
650
|
-
maxHeight:
|
|
666
|
+
maxHeight: Q
|
|
651
667
|
};
|
|
652
668
|
}
|
|
653
669
|
if (t === "auto" || o) {
|
|
654
|
-
var
|
|
655
|
-
return
|
|
670
|
+
var _ = e, H = o ? x : h;
|
|
671
|
+
return H >= i && (_ = Math.min(H - T - s, e)), {
|
|
656
672
|
placement: "top",
|
|
657
|
-
maxHeight:
|
|
673
|
+
maxHeight: _
|
|
658
674
|
};
|
|
659
675
|
}
|
|
660
676
|
if (t === "bottom")
|
|
661
|
-
return r &&
|
|
677
|
+
return r && we(a, W), {
|
|
662
678
|
placement: "bottom",
|
|
663
679
|
maxHeight: e
|
|
664
680
|
};
|
|
665
681
|
break;
|
|
666
682
|
case "top":
|
|
667
|
-
if (
|
|
683
|
+
if (x >= f)
|
|
668
684
|
return {
|
|
669
685
|
placement: "top",
|
|
670
686
|
maxHeight: e
|
|
671
687
|
};
|
|
672
|
-
if (
|
|
673
|
-
return r &&
|
|
688
|
+
if (h >= f && !o)
|
|
689
|
+
return r && Fe(a, N, L), {
|
|
674
690
|
placement: "top",
|
|
675
691
|
maxHeight: e
|
|
676
692
|
};
|
|
677
|
-
if (!o &&
|
|
678
|
-
var
|
|
679
|
-
return (!o &&
|
|
693
|
+
if (!o && h >= i || o && x >= i) {
|
|
694
|
+
var w = e;
|
|
695
|
+
return (!o && h >= i || o && x >= i) && (w = o ? x - V : h - V), r && Fe(a, N, L), {
|
|
680
696
|
placement: "top",
|
|
681
|
-
maxHeight:
|
|
697
|
+
maxHeight: w
|
|
682
698
|
};
|
|
683
699
|
}
|
|
684
700
|
return {
|
|
@@ -690,170 +706,170 @@ function nu(n) {
|
|
|
690
706
|
}
|
|
691
707
|
return l;
|
|
692
708
|
}
|
|
693
|
-
function
|
|
709
|
+
function Iu(n) {
|
|
694
710
|
var e = {
|
|
695
711
|
bottom: "top",
|
|
696
712
|
top: "bottom"
|
|
697
713
|
};
|
|
698
714
|
return n ? e[n] : "bottom";
|
|
699
715
|
}
|
|
700
|
-
var
|
|
716
|
+
var ln = function(e) {
|
|
701
717
|
return e === "auto" ? "bottom" : e;
|
|
702
|
-
},
|
|
703
|
-
var
|
|
704
|
-
return
|
|
718
|
+
}, mu = function(e, u) {
|
|
719
|
+
var i, t = e.placement, r = e.theme, o = r.borderRadius, s = r.spacing, a = r.colors;
|
|
720
|
+
return E((i = {
|
|
705
721
|
label: "menu"
|
|
706
|
-
},
|
|
722
|
+
}, xe(i, Iu(t), "100%"), xe(i, "position", "absolute"), xe(i, "width", "100%"), xe(i, "zIndex", 1), i), u ? {} : {
|
|
707
723
|
backgroundColor: a.neutral0,
|
|
708
724
|
borderRadius: o,
|
|
709
725
|
boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
|
|
710
726
|
marginBottom: s.menuGutter,
|
|
711
727
|
marginTop: s.menuGutter
|
|
712
728
|
});
|
|
713
|
-
},
|
|
714
|
-
var
|
|
715
|
-
return
|
|
716
|
-
var
|
|
717
|
-
if (
|
|
718
|
-
var
|
|
729
|
+
}, sn = /* @__PURE__ */ ai(null), hu = function(e) {
|
|
730
|
+
var u = e.children, i = e.minMenuHeight, t = e.maxMenuHeight, r = e.menuPlacement, o = e.menuPosition, s = e.menuShouldScrollIntoView, a = e.theme, l = ut(sn) || {}, c = l.setPortalPlacement, d = te(null), g = J(t), b = ie(g, 2), f = b[0], I = b[1], p = J(null), m = ie(p, 2), A = m[0], C = m[1], T = a.spacing.controlHeight;
|
|
731
|
+
return nt(function() {
|
|
732
|
+
var V = d.current;
|
|
733
|
+
if (V) {
|
|
734
|
+
var x = o === "fixed", S = s && !x, h = bu({
|
|
719
735
|
maxHeight: t,
|
|
720
|
-
menuEl:
|
|
721
|
-
minHeight:
|
|
736
|
+
menuEl: V,
|
|
737
|
+
minHeight: i,
|
|
722
738
|
placement: r,
|
|
723
739
|
shouldScroll: S,
|
|
724
|
-
isFixedPosition:
|
|
725
|
-
controlHeight:
|
|
740
|
+
isFixedPosition: x,
|
|
741
|
+
controlHeight: T
|
|
726
742
|
});
|
|
727
|
-
|
|
743
|
+
I(h.maxHeight), C(h.placement), c == null || c(h.placement);
|
|
728
744
|
}
|
|
729
|
-
}, [t, r, o, s,
|
|
745
|
+
}, [t, r, o, s, i, c, T]), u({
|
|
730
746
|
ref: d,
|
|
731
|
-
placerProps:
|
|
732
|
-
placement:
|
|
733
|
-
maxHeight:
|
|
747
|
+
placerProps: E(E({}, e), {}, {
|
|
748
|
+
placement: A || ln(r),
|
|
749
|
+
maxHeight: f
|
|
734
750
|
})
|
|
735
751
|
});
|
|
736
|
-
},
|
|
737
|
-
var
|
|
738
|
-
return
|
|
752
|
+
}, fu = function(e) {
|
|
753
|
+
var u = e.children, i = e.innerRef, t = e.innerProps;
|
|
754
|
+
return y("div", G({}, X(e, "menu", {
|
|
739
755
|
menu: !0
|
|
740
756
|
}), {
|
|
741
|
-
ref:
|
|
742
|
-
}, t),
|
|
743
|
-
},
|
|
744
|
-
var
|
|
745
|
-
return
|
|
746
|
-
maxHeight:
|
|
757
|
+
ref: i
|
|
758
|
+
}, t), u);
|
|
759
|
+
}, vu = fu, Cu = function(e, u) {
|
|
760
|
+
var i = e.maxHeight, t = e.theme.spacing.baseUnit;
|
|
761
|
+
return E({
|
|
762
|
+
maxHeight: i,
|
|
747
763
|
overflowY: "auto",
|
|
748
764
|
position: "relative",
|
|
749
765
|
// required for offset[Height, Top] > keyboard scroll
|
|
750
766
|
WebkitOverflowScrolling: "touch"
|
|
751
|
-
},
|
|
767
|
+
}, u ? {} : {
|
|
752
768
|
paddingBottom: t,
|
|
753
769
|
paddingTop: t
|
|
754
770
|
});
|
|
755
|
-
},
|
|
756
|
-
var
|
|
757
|
-
return
|
|
771
|
+
}, Au = function(e) {
|
|
772
|
+
var u = e.children, i = e.innerProps, t = e.innerRef, r = e.isMulti;
|
|
773
|
+
return y("div", G({}, X(e, "menuList", {
|
|
758
774
|
"menu-list": !0,
|
|
759
775
|
"menu-list--is-multi": r
|
|
760
776
|
}), {
|
|
761
777
|
ref: t
|
|
762
|
-
},
|
|
763
|
-
},
|
|
764
|
-
var
|
|
765
|
-
return
|
|
778
|
+
}, i), u);
|
|
779
|
+
}, cn = function(e, u) {
|
|
780
|
+
var i = e.theme, t = i.spacing.baseUnit, r = i.colors;
|
|
781
|
+
return E({
|
|
766
782
|
textAlign: "center"
|
|
767
|
-
},
|
|
783
|
+
}, u ? {} : {
|
|
768
784
|
color: r.neutral40,
|
|
769
785
|
padding: "".concat(t * 2, "px ").concat(t * 3, "px")
|
|
770
786
|
});
|
|
771
|
-
},
|
|
772
|
-
var
|
|
773
|
-
return
|
|
774
|
-
children:
|
|
787
|
+
}, xu = cn, yu = cn, Eu = function(e) {
|
|
788
|
+
var u = e.children, i = u === void 0 ? "No options" : u, t = e.innerProps, r = ae(e, gu);
|
|
789
|
+
return y("div", G({}, X(E(E({}, r), {}, {
|
|
790
|
+
children: i,
|
|
775
791
|
innerProps: t
|
|
776
792
|
}), "noOptionsMessage", {
|
|
777
793
|
"menu-notice": !0,
|
|
778
794
|
"menu-notice--no-options": !0
|
|
779
|
-
}), t),
|
|
780
|
-
},
|
|
781
|
-
var
|
|
782
|
-
return
|
|
783
|
-
children:
|
|
795
|
+
}), t), i);
|
|
796
|
+
}, Gu = function(e) {
|
|
797
|
+
var u = e.children, i = u === void 0 ? "Loading..." : u, t = e.innerProps, r = ae(e, pu);
|
|
798
|
+
return y("div", G({}, X(E(E({}, r), {}, {
|
|
799
|
+
children: i,
|
|
784
800
|
innerProps: t
|
|
785
801
|
}), "loadingMessage", {
|
|
786
802
|
"menu-notice": !0,
|
|
787
803
|
"menu-notice--loading": !0
|
|
788
|
-
}), t),
|
|
789
|
-
},
|
|
790
|
-
var
|
|
804
|
+
}), t), i);
|
|
805
|
+
}, Fu = function(e) {
|
|
806
|
+
var u = e.rect, i = e.offset, t = e.position;
|
|
791
807
|
return {
|
|
792
|
-
left:
|
|
808
|
+
left: u.left,
|
|
793
809
|
position: t,
|
|
794
|
-
top:
|
|
795
|
-
width:
|
|
810
|
+
top: i,
|
|
811
|
+
width: u.width,
|
|
796
812
|
zIndex: 1
|
|
797
813
|
};
|
|
798
|
-
},
|
|
799
|
-
var
|
|
814
|
+
}, Bu = function(e) {
|
|
815
|
+
var u = e.appendTo, i = e.children, t = e.controlElement, r = e.innerProps, o = e.menuPlacement, s = e.menuPosition, a = te(null), l = te(null), c = J(ln(o)), d = ie(c, 2), g = d[0], b = d[1], f = he(function() {
|
|
800
816
|
return {
|
|
801
|
-
setPortalPlacement:
|
|
817
|
+
setPortalPlacement: b
|
|
802
818
|
};
|
|
803
|
-
}, []),
|
|
819
|
+
}, []), I = J(null), p = ie(I, 2), m = p[0], A = p[1], C = D(function() {
|
|
804
820
|
if (t) {
|
|
805
|
-
var S =
|
|
806
|
-
(
|
|
807
|
-
offset:
|
|
821
|
+
var S = au(t), h = s === "fixed" ? 0 : window.pageYOffset, B = S[g] + h;
|
|
822
|
+
(B !== (m == null ? void 0 : m.offset) || S.left !== (m == null ? void 0 : m.rect.left) || S.width !== (m == null ? void 0 : m.rect.width)) && A({
|
|
823
|
+
offset: B,
|
|
808
824
|
rect: S
|
|
809
825
|
});
|
|
810
826
|
}
|
|
811
|
-
}, [t, s,
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}, [
|
|
815
|
-
var
|
|
816
|
-
typeof l.current == "function" && (l.current(), l.current = null), t && a.current && (l.current =
|
|
827
|
+
}, [t, s, g, m == null ? void 0 : m.offset, m == null ? void 0 : m.rect.left, m == null ? void 0 : m.rect.width]);
|
|
828
|
+
nt(function() {
|
|
829
|
+
C();
|
|
830
|
+
}, [C]);
|
|
831
|
+
var T = D(function() {
|
|
832
|
+
typeof l.current == "function" && (l.current(), l.current = null), t && a.current && (l.current = $i(t, a.current, C, {
|
|
817
833
|
elementResize: "ResizeObserver" in window
|
|
818
834
|
}));
|
|
819
|
-
}, [t,
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
}, [
|
|
823
|
-
var
|
|
824
|
-
a.current = S,
|
|
825
|
-
}, [
|
|
826
|
-
if (!
|
|
827
|
-
var
|
|
828
|
-
ref:
|
|
829
|
-
},
|
|
835
|
+
}, [t, C]);
|
|
836
|
+
nt(function() {
|
|
837
|
+
T();
|
|
838
|
+
}, [T]);
|
|
839
|
+
var V = D(function(S) {
|
|
840
|
+
a.current = S, T();
|
|
841
|
+
}, [T]);
|
|
842
|
+
if (!u && s !== "fixed" || !m) return null;
|
|
843
|
+
var x = y("div", G({
|
|
844
|
+
ref: V
|
|
845
|
+
}, X(E(E({}, e), {}, {
|
|
830
846
|
offset: m.offset,
|
|
831
847
|
position: s,
|
|
832
848
|
rect: m.rect
|
|
833
849
|
}), "menuPortal", {
|
|
834
850
|
"menu-portal": !0
|
|
835
|
-
}), r),
|
|
836
|
-
return
|
|
837
|
-
value:
|
|
838
|
-
},
|
|
839
|
-
},
|
|
840
|
-
var
|
|
851
|
+
}), r), i);
|
|
852
|
+
return y(sn.Provider, {
|
|
853
|
+
value: f
|
|
854
|
+
}, u ? /* @__PURE__ */ si(x, u) : x);
|
|
855
|
+
}, Tu = function(e) {
|
|
856
|
+
var u = e.isDisabled, i = e.isRtl;
|
|
841
857
|
return {
|
|
842
858
|
label: "container",
|
|
843
|
-
direction:
|
|
844
|
-
pointerEvents:
|
|
859
|
+
direction: i ? "rtl" : void 0,
|
|
860
|
+
pointerEvents: u ? "none" : void 0,
|
|
845
861
|
// cancel mouse events when disabled
|
|
846
862
|
position: "relative"
|
|
847
863
|
};
|
|
848
|
-
},
|
|
849
|
-
var
|
|
850
|
-
return
|
|
864
|
+
}, Su = function(e) {
|
|
865
|
+
var u = e.children, i = e.innerProps, t = e.isDisabled, r = e.isRtl;
|
|
866
|
+
return y("div", G({}, X(e, "container", {
|
|
851
867
|
"--is-disabled": t,
|
|
852
868
|
"--is-rtl": r
|
|
853
|
-
}),
|
|
854
|
-
},
|
|
855
|
-
var
|
|
856
|
-
return
|
|
869
|
+
}), i), u);
|
|
870
|
+
}, Vu = function(e, u) {
|
|
871
|
+
var i = e.theme.spacing, t = e.isMulti, r = e.hasValue, o = e.selectProps.controlShouldRenderValue;
|
|
872
|
+
return E({
|
|
857
873
|
alignItems: "center",
|
|
858
874
|
display: t && r && o ? "flex" : "grid",
|
|
859
875
|
flex: 1,
|
|
@@ -861,109 +877,109 @@ var $t = function(e) {
|
|
|
861
877
|
WebkitOverflowScrolling: "touch",
|
|
862
878
|
position: "relative",
|
|
863
879
|
overflow: "hidden"
|
|
864
|
-
},
|
|
865
|
-
padding: "".concat(
|
|
880
|
+
}, u ? {} : {
|
|
881
|
+
padding: "".concat(i.baseUnit / 2, "px ").concat(i.baseUnit * 2, "px")
|
|
866
882
|
});
|
|
867
|
-
},
|
|
868
|
-
var
|
|
869
|
-
return
|
|
883
|
+
}, Ru = function(e) {
|
|
884
|
+
var u = e.children, i = e.innerProps, t = e.isMulti, r = e.hasValue;
|
|
885
|
+
return y("div", G({}, X(e, "valueContainer", {
|
|
870
886
|
"value-container": !0,
|
|
871
887
|
"value-container--is-multi": t,
|
|
872
888
|
"value-container--has-value": r
|
|
873
|
-
}),
|
|
874
|
-
},
|
|
889
|
+
}), i), u);
|
|
890
|
+
}, Wu = function() {
|
|
875
891
|
return {
|
|
876
892
|
alignItems: "center",
|
|
877
893
|
alignSelf: "stretch",
|
|
878
894
|
display: "flex",
|
|
879
895
|
flexShrink: 0
|
|
880
896
|
};
|
|
881
|
-
},
|
|
882
|
-
var
|
|
883
|
-
return
|
|
897
|
+
}, Nu = function(e) {
|
|
898
|
+
var u = e.children, i = e.innerProps;
|
|
899
|
+
return y("div", G({}, X(e, "indicatorsContainer", {
|
|
884
900
|
indicators: !0
|
|
885
|
-
}),
|
|
886
|
-
},
|
|
887
|
-
function
|
|
901
|
+
}), i), u);
|
|
902
|
+
}, Vt, Xu = ["size"], Zu = ["innerProps", "isRtl", "size"];
|
|
903
|
+
function wu() {
|
|
888
904
|
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
905
|
}
|
|
890
|
-
var
|
|
906
|
+
var Pu = process.env.NODE_ENV === "production" ? {
|
|
891
907
|
name: "8mmkcg",
|
|
892
908
|
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
|
|
893
909
|
} : {
|
|
894
910
|
name: "tj5bde-Svg",
|
|
895
911
|
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
|
|
896
912
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcm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2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",
|
|
897
|
-
toString:
|
|
898
|
-
},
|
|
899
|
-
var
|
|
900
|
-
return
|
|
901
|
-
height:
|
|
902
|
-
width:
|
|
913
|
+
toString: wu
|
|
914
|
+
}, dn = function(e) {
|
|
915
|
+
var u = e.size, i = ae(e, Xu);
|
|
916
|
+
return y("svg", G({
|
|
917
|
+
height: u,
|
|
918
|
+
width: u,
|
|
903
919
|
viewBox: "0 0 20 20",
|
|
904
920
|
"aria-hidden": "true",
|
|
905
921
|
focusable: "false",
|
|
906
|
-
css:
|
|
907
|
-
},
|
|
908
|
-
},
|
|
909
|
-
return
|
|
922
|
+
css: Pu
|
|
923
|
+
}, i));
|
|
924
|
+
}, ct = function(e) {
|
|
925
|
+
return y(dn, G({
|
|
910
926
|
size: 20
|
|
911
|
-
}, e),
|
|
927
|
+
}, e), y("path", {
|
|
912
928
|
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
929
|
}));
|
|
914
|
-
},
|
|
915
|
-
return
|
|
930
|
+
}, gn = function(e) {
|
|
931
|
+
return y(dn, G({
|
|
916
932
|
size: 20
|
|
917
|
-
}, e),
|
|
933
|
+
}, e), y("path", {
|
|
918
934
|
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
935
|
}));
|
|
920
|
-
},
|
|
921
|
-
var
|
|
922
|
-
return
|
|
936
|
+
}, pn = function(e, u) {
|
|
937
|
+
var i = e.isFocused, t = e.theme, r = t.spacing.baseUnit, o = t.colors;
|
|
938
|
+
return E({
|
|
923
939
|
label: "indicatorContainer",
|
|
924
940
|
display: "flex",
|
|
925
941
|
transition: "color 150ms"
|
|
926
|
-
},
|
|
927
|
-
color:
|
|
942
|
+
}, u ? {} : {
|
|
943
|
+
color: i ? o.neutral60 : o.neutral20,
|
|
928
944
|
padding: r * 2,
|
|
929
945
|
":hover": {
|
|
930
|
-
color:
|
|
946
|
+
color: i ? o.neutral80 : o.neutral40
|
|
931
947
|
}
|
|
932
948
|
});
|
|
933
|
-
},
|
|
934
|
-
var
|
|
935
|
-
return
|
|
949
|
+
}, Hu = pn, Lu = function(e) {
|
|
950
|
+
var u = e.children, i = e.innerProps;
|
|
951
|
+
return y("div", G({}, X(e, "dropdownIndicator", {
|
|
936
952
|
indicator: !0,
|
|
937
953
|
"dropdown-indicator": !0
|
|
938
|
-
}),
|
|
939
|
-
},
|
|
940
|
-
var
|
|
941
|
-
return
|
|
954
|
+
}), i), u || y(gn, null));
|
|
955
|
+
}, Du = pn, Ou = function(e) {
|
|
956
|
+
var u = e.children, i = e.innerProps;
|
|
957
|
+
return y("div", G({}, X(e, "clearIndicator", {
|
|
942
958
|
indicator: !0,
|
|
943
959
|
"clear-indicator": !0
|
|
944
|
-
}),
|
|
945
|
-
},
|
|
946
|
-
var
|
|
947
|
-
return
|
|
960
|
+
}), i), u || y(ct, null));
|
|
961
|
+
}, Mu = function(e, u) {
|
|
962
|
+
var i = e.isDisabled, t = e.theme, r = t.spacing.baseUnit, o = t.colors;
|
|
963
|
+
return E({
|
|
948
964
|
label: "indicatorSeparator",
|
|
949
965
|
alignSelf: "stretch",
|
|
950
966
|
width: 1
|
|
951
|
-
},
|
|
952
|
-
backgroundColor:
|
|
967
|
+
}, u ? {} : {
|
|
968
|
+
backgroundColor: i ? o.neutral10 : o.neutral20,
|
|
953
969
|
marginBottom: r * 2,
|
|
954
970
|
marginTop: r * 2
|
|
955
971
|
});
|
|
956
|
-
},
|
|
957
|
-
var
|
|
958
|
-
return
|
|
972
|
+
}, ku = function(e) {
|
|
973
|
+
var u = e.innerProps;
|
|
974
|
+
return y("span", G({}, u, X(e, "indicatorSeparator", {
|
|
959
975
|
"indicator-separator": !0
|
|
960
976
|
})));
|
|
961
|
-
},
|
|
977
|
+
}, Yu = Zn(Vt || (Vt = Li([`
|
|
962
978
|
0%, 80%, 100% { opacity: 0; }
|
|
963
979
|
40% { opacity: 1; }
|
|
964
|
-
`]))),
|
|
965
|
-
var
|
|
966
|
-
return
|
|
980
|
+
`]))), Ju = function(e, u) {
|
|
981
|
+
var i = e.isFocused, t = e.size, r = e.theme, o = r.colors, s = r.spacing.baseUnit;
|
|
982
|
+
return E({
|
|
967
983
|
label: "loadingIndicator",
|
|
968
984
|
display: "flex",
|
|
969
985
|
transition: "color 150ms",
|
|
@@ -973,46 +989,46 @@ var Eu = process.env.NODE_ENV === "production" ? {
|
|
|
973
989
|
marginRight: t,
|
|
974
990
|
textAlign: "center",
|
|
975
991
|
verticalAlign: "middle"
|
|
976
|
-
},
|
|
977
|
-
color:
|
|
992
|
+
}, u ? {} : {
|
|
993
|
+
color: i ? o.neutral60 : o.neutral20,
|
|
978
994
|
padding: s * 2
|
|
979
995
|
});
|
|
980
|
-
},
|
|
981
|
-
var
|
|
982
|
-
return
|
|
983
|
-
css: /* @__PURE__ */
|
|
984
|
-
animation: "".concat(
|
|
996
|
+
}, ke = function(e) {
|
|
997
|
+
var u = e.delay, i = e.offset;
|
|
998
|
+
return y("span", {
|
|
999
|
+
css: /* @__PURE__ */ zt({
|
|
1000
|
+
animation: "".concat(Yu, " 1s ease-in-out ").concat(u, "ms infinite;"),
|
|
985
1001
|
backgroundColor: "currentColor",
|
|
986
1002
|
borderRadius: "1em",
|
|
987
1003
|
display: "inline-block",
|
|
988
|
-
marginLeft:
|
|
1004
|
+
marginLeft: i ? "1em" : void 0,
|
|
989
1005
|
height: "1em",
|
|
990
1006
|
verticalAlign: "top",
|
|
991
1007
|
width: "1em"
|
|
992
1008
|
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYX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ksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")
|
|
993
1009
|
});
|
|
994
|
-
},
|
|
995
|
-
var
|
|
996
|
-
return
|
|
997
|
-
innerProps:
|
|
998
|
-
isRtl:
|
|
1010
|
+
}, ju = function(e) {
|
|
1011
|
+
var u = e.innerProps, i = e.isRtl, t = e.size, r = t === void 0 ? 4 : t, o = ae(e, Zu);
|
|
1012
|
+
return y("div", G({}, X(E(E({}, o), {}, {
|
|
1013
|
+
innerProps: u,
|
|
1014
|
+
isRtl: i,
|
|
999
1015
|
size: r
|
|
1000
1016
|
}), "loadingIndicator", {
|
|
1001
1017
|
indicator: !0,
|
|
1002
1018
|
"loading-indicator": !0
|
|
1003
|
-
}),
|
|
1019
|
+
}), u), y(ke, {
|
|
1004
1020
|
delay: 0,
|
|
1005
|
-
offset:
|
|
1006
|
-
}),
|
|
1021
|
+
offset: i
|
|
1022
|
+
}), y(ke, {
|
|
1007
1023
|
delay: 160,
|
|
1008
1024
|
offset: !0
|
|
1009
|
-
}),
|
|
1025
|
+
}), y(ke, {
|
|
1010
1026
|
delay: 320,
|
|
1011
|
-
offset: !
|
|
1027
|
+
offset: !i
|
|
1012
1028
|
}));
|
|
1013
|
-
},
|
|
1014
|
-
var
|
|
1015
|
-
return
|
|
1029
|
+
}, zu = function(e, u) {
|
|
1030
|
+
var i = e.isDisabled, t = e.isFocused, r = e.theme, o = r.colors, s = r.borderRadius, a = r.spacing;
|
|
1031
|
+
return E({
|
|
1016
1032
|
label: "control",
|
|
1017
1033
|
alignItems: "center",
|
|
1018
1034
|
cursor: "default",
|
|
@@ -1023,9 +1039,9 @@ var Eu = process.env.NODE_ENV === "production" ? {
|
|
|
1023
1039
|
outline: "0 !important",
|
|
1024
1040
|
position: "relative",
|
|
1025
1041
|
transition: "all 100ms"
|
|
1026
|
-
},
|
|
1027
|
-
backgroundColor:
|
|
1028
|
-
borderColor:
|
|
1042
|
+
}, u ? {} : {
|
|
1043
|
+
backgroundColor: i ? o.neutral5 : o.neutral0,
|
|
1044
|
+
borderColor: i ? o.neutral10 : t ? o.primary : o.neutral20,
|
|
1029
1045
|
borderRadius: s,
|
|
1030
1046
|
borderStyle: "solid",
|
|
1031
1047
|
borderWidth: 1,
|
|
@@ -1034,42 +1050,42 @@ var Eu = process.env.NODE_ENV === "production" ? {
|
|
|
1034
1050
|
borderColor: t ? o.primary : o.neutral30
|
|
1035
1051
|
}
|
|
1036
1052
|
});
|
|
1037
|
-
},
|
|
1038
|
-
var
|
|
1039
|
-
return
|
|
1053
|
+
}, Uu = function(e) {
|
|
1054
|
+
var u = e.children, i = e.isDisabled, t = e.isFocused, r = e.innerRef, o = e.innerProps, s = e.menuIsOpen;
|
|
1055
|
+
return y("div", G({
|
|
1040
1056
|
ref: r
|
|
1041
|
-
},
|
|
1057
|
+
}, X(e, "control", {
|
|
1042
1058
|
control: !0,
|
|
1043
|
-
"control--is-disabled":
|
|
1059
|
+
"control--is-disabled": i,
|
|
1044
1060
|
"control--is-focused": t,
|
|
1045
1061
|
"control--menu-is-open": s
|
|
1046
1062
|
}), o, {
|
|
1047
|
-
"aria-disabled":
|
|
1048
|
-
}),
|
|
1049
|
-
},
|
|
1050
|
-
var
|
|
1051
|
-
return
|
|
1052
|
-
paddingBottom:
|
|
1053
|
-
paddingTop:
|
|
1063
|
+
"aria-disabled": i || void 0
|
|
1064
|
+
}), u);
|
|
1065
|
+
}, Qu = Uu, _u = ["data"], Ku = function(e, u) {
|
|
1066
|
+
var i = e.theme.spacing;
|
|
1067
|
+
return u ? {} : {
|
|
1068
|
+
paddingBottom: i.baseUnit * 2,
|
|
1069
|
+
paddingTop: i.baseUnit * 2
|
|
1054
1070
|
};
|
|
1055
|
-
},
|
|
1056
|
-
var
|
|
1057
|
-
return
|
|
1071
|
+
}, $u = function(e) {
|
|
1072
|
+
var u = e.children, i = 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;
|
|
1073
|
+
return y("div", G({}, X(e, "group", {
|
|
1058
1074
|
group: !0
|
|
1059
|
-
}), a),
|
|
1075
|
+
}), a), y(o, G({}, s, {
|
|
1060
1076
|
selectProps: d,
|
|
1061
1077
|
theme: c,
|
|
1062
1078
|
getStyles: t,
|
|
1063
1079
|
getClassNames: r,
|
|
1064
|
-
cx:
|
|
1065
|
-
}), l),
|
|
1066
|
-
},
|
|
1067
|
-
var
|
|
1068
|
-
return
|
|
1080
|
+
cx: i
|
|
1081
|
+
}), l), y("div", null, u));
|
|
1082
|
+
}, qu = function(e, u) {
|
|
1083
|
+
var i = e.theme, t = i.colors, r = i.spacing;
|
|
1084
|
+
return E({
|
|
1069
1085
|
label: "group",
|
|
1070
1086
|
cursor: "default",
|
|
1071
1087
|
display: "block"
|
|
1072
|
-
},
|
|
1088
|
+
}, u ? {} : {
|
|
1073
1089
|
color: t.neutral40,
|
|
1074
1090
|
fontSize: "75%",
|
|
1075
1091
|
fontWeight: 500,
|
|
@@ -1078,27 +1094,27 @@ var Eu = process.env.NODE_ENV === "production" ? {
|
|
|
1078
1094
|
paddingRight: r.baseUnit * 3,
|
|
1079
1095
|
textTransform: "uppercase"
|
|
1080
1096
|
});
|
|
1081
|
-
},
|
|
1082
|
-
var
|
|
1083
|
-
|
|
1084
|
-
var
|
|
1085
|
-
return
|
|
1097
|
+
}, ea = function(e) {
|
|
1098
|
+
var u = an(e);
|
|
1099
|
+
u.data;
|
|
1100
|
+
var i = ae(u, _u);
|
|
1101
|
+
return y("div", G({}, X(e, "groupHeading", {
|
|
1086
1102
|
"group-heading": !0
|
|
1087
|
-
}),
|
|
1088
|
-
},
|
|
1089
|
-
var
|
|
1090
|
-
return
|
|
1091
|
-
visibility:
|
|
1103
|
+
}), i));
|
|
1104
|
+
}, ta = $u, na = ["innerRef", "isDisabled", "isHidden", "inputClassName"], ia = function(e, u) {
|
|
1105
|
+
var i = e.isDisabled, t = e.value, r = e.theme, o = r.spacing, s = r.colors;
|
|
1106
|
+
return E(E({
|
|
1107
|
+
visibility: i ? "hidden" : "visible",
|
|
1092
1108
|
// force css to recompute when value change due to @emotion bug.
|
|
1093
1109
|
// We can remove it whenever the bug is fixed.
|
|
1094
1110
|
transform: t ? "translateZ(0)" : ""
|
|
1095
|
-
},
|
|
1111
|
+
}, ua), u ? {} : {
|
|
1096
1112
|
margin: o.baseUnit / 2,
|
|
1097
1113
|
paddingBottom: o.baseUnit / 2,
|
|
1098
1114
|
paddingTop: o.baseUnit / 2,
|
|
1099
1115
|
color: s.neutral80
|
|
1100
1116
|
});
|
|
1101
|
-
},
|
|
1117
|
+
}, bn = {
|
|
1102
1118
|
gridArea: "1 / 2",
|
|
1103
1119
|
font: "inherit",
|
|
1104
1120
|
minWidth: "2px",
|
|
@@ -1106,68 +1122,68 @@ var Eu = process.env.NODE_ENV === "production" ? {
|
|
|
1106
1122
|
margin: 0,
|
|
1107
1123
|
outline: 0,
|
|
1108
1124
|
padding: 0
|
|
1109
|
-
},
|
|
1125
|
+
}, ua = {
|
|
1110
1126
|
flex: "1 1 auto",
|
|
1111
1127
|
display: "inline-grid",
|
|
1112
1128
|
gridArea: "1 / 1 / 2 / 3",
|
|
1113
1129
|
gridTemplateColumns: "0 min-content",
|
|
1114
|
-
"&:after":
|
|
1130
|
+
"&:after": E({
|
|
1115
1131
|
content: 'attr(data-value) " "',
|
|
1116
1132
|
visibility: "hidden",
|
|
1117
1133
|
whiteSpace: "pre"
|
|
1118
|
-
},
|
|
1119
|
-
},
|
|
1120
|
-
return
|
|
1134
|
+
}, bn)
|
|
1135
|
+
}, aa = function(e) {
|
|
1136
|
+
return E({
|
|
1121
1137
|
label: "input",
|
|
1122
1138
|
color: "inherit",
|
|
1123
1139
|
background: 0,
|
|
1124
1140
|
opacity: e ? 0 : 1,
|
|
1125
1141
|
width: "100%"
|
|
1126
|
-
},
|
|
1127
|
-
},
|
|
1128
|
-
var
|
|
1129
|
-
return
|
|
1142
|
+
}, bn);
|
|
1143
|
+
}, ra = function(e) {
|
|
1144
|
+
var u = e.cx, i = e.value, t = an(e), r = t.innerRef, o = t.isDisabled, s = t.isHidden, a = t.inputClassName, l = ae(t, na);
|
|
1145
|
+
return y("div", G({}, X(e, "input", {
|
|
1130
1146
|
"input-container": !0
|
|
1131
1147
|
}), {
|
|
1132
|
-
"data-value":
|
|
1133
|
-
}),
|
|
1134
|
-
className:
|
|
1148
|
+
"data-value": i || ""
|
|
1149
|
+
}), y("input", G({
|
|
1150
|
+
className: u({
|
|
1135
1151
|
input: !0
|
|
1136
1152
|
}, a),
|
|
1137
1153
|
ref: r,
|
|
1138
|
-
style:
|
|
1154
|
+
style: aa(s),
|
|
1139
1155
|
disabled: o
|
|
1140
1156
|
}, l)));
|
|
1141
|
-
},
|
|
1142
|
-
var
|
|
1143
|
-
return
|
|
1157
|
+
}, oa = ra, la = function(e, u) {
|
|
1158
|
+
var i = e.theme, t = i.spacing, r = i.borderRadius, o = i.colors;
|
|
1159
|
+
return E({
|
|
1144
1160
|
label: "multiValue",
|
|
1145
1161
|
display: "flex",
|
|
1146
1162
|
minWidth: 0
|
|
1147
|
-
},
|
|
1163
|
+
}, u ? {} : {
|
|
1148
1164
|
backgroundColor: o.neutral10,
|
|
1149
1165
|
borderRadius: r / 2,
|
|
1150
1166
|
margin: t.baseUnit / 2
|
|
1151
1167
|
});
|
|
1152
|
-
},
|
|
1153
|
-
var
|
|
1154
|
-
return
|
|
1168
|
+
}, sa = function(e, u) {
|
|
1169
|
+
var i = e.theme, t = i.borderRadius, r = i.colors, o = e.cropWithEllipsis;
|
|
1170
|
+
return E({
|
|
1155
1171
|
overflow: "hidden",
|
|
1156
1172
|
textOverflow: o || o === void 0 ? "ellipsis" : void 0,
|
|
1157
1173
|
whiteSpace: "nowrap"
|
|
1158
|
-
},
|
|
1174
|
+
}, u ? {} : {
|
|
1159
1175
|
borderRadius: t / 2,
|
|
1160
1176
|
color: r.neutral80,
|
|
1161
1177
|
fontSize: "85%",
|
|
1162
1178
|
padding: 3,
|
|
1163
1179
|
paddingLeft: 6
|
|
1164
1180
|
});
|
|
1165
|
-
},
|
|
1166
|
-
var
|
|
1167
|
-
return
|
|
1181
|
+
}, ca = function(e, u) {
|
|
1182
|
+
var i = e.theme, t = i.spacing, r = i.borderRadius, o = i.colors, s = e.isFocused;
|
|
1183
|
+
return E({
|
|
1168
1184
|
alignItems: "center",
|
|
1169
1185
|
display: "flex"
|
|
1170
|
-
},
|
|
1186
|
+
}, u ? {} : {
|
|
1171
1187
|
borderRadius: r / 2,
|
|
1172
1188
|
backgroundColor: s ? o.dangerLight : void 0,
|
|
1173
1189
|
paddingLeft: t.baseUnit,
|
|
@@ -1177,45 +1193,45 @@ var Eu = process.env.NODE_ENV === "production" ? {
|
|
|
1177
1193
|
color: o.danger
|
|
1178
1194
|
}
|
|
1179
1195
|
});
|
|
1180
|
-
},
|
|
1181
|
-
var
|
|
1182
|
-
return
|
|
1183
|
-
},
|
|
1184
|
-
function
|
|
1185
|
-
var e = n.children,
|
|
1186
|
-
return
|
|
1196
|
+
}, In = function(e) {
|
|
1197
|
+
var u = e.children, i = e.innerProps;
|
|
1198
|
+
return y("div", i, u);
|
|
1199
|
+
}, da = In, ga = In;
|
|
1200
|
+
function pa(n) {
|
|
1201
|
+
var e = n.children, u = n.innerProps;
|
|
1202
|
+
return y("div", G({
|
|
1187
1203
|
role: "button"
|
|
1188
|
-
},
|
|
1204
|
+
}, u), e || y(ct, {
|
|
1189
1205
|
size: 14
|
|
1190
1206
|
}));
|
|
1191
1207
|
}
|
|
1192
|
-
var
|
|
1193
|
-
var
|
|
1194
|
-
return
|
|
1208
|
+
var ba = function(e) {
|
|
1209
|
+
var u = e.children, i = e.components, t = e.data, r = e.innerProps, o = e.isDisabled, s = e.removeProps, a = e.selectProps, l = i.Container, c = i.Label, d = i.Remove;
|
|
1210
|
+
return y(l, {
|
|
1195
1211
|
data: t,
|
|
1196
|
-
innerProps:
|
|
1212
|
+
innerProps: E(E({}, X(e, "multiValue", {
|
|
1197
1213
|
"multi-value": !0,
|
|
1198
1214
|
"multi-value--is-disabled": o
|
|
1199
1215
|
})), r),
|
|
1200
1216
|
selectProps: a
|
|
1201
|
-
},
|
|
1217
|
+
}, y(c, {
|
|
1202
1218
|
data: t,
|
|
1203
|
-
innerProps:
|
|
1219
|
+
innerProps: E({}, X(e, "multiValueLabel", {
|
|
1204
1220
|
"multi-value__label": !0
|
|
1205
1221
|
})),
|
|
1206
1222
|
selectProps: a
|
|
1207
|
-
},
|
|
1223
|
+
}, u), y(d, {
|
|
1208
1224
|
data: t,
|
|
1209
|
-
innerProps:
|
|
1225
|
+
innerProps: E(E({}, X(e, "multiValueRemove", {
|
|
1210
1226
|
"multi-value__remove": !0
|
|
1211
1227
|
})), {}, {
|
|
1212
|
-
"aria-label": "Remove ".concat(
|
|
1228
|
+
"aria-label": "Remove ".concat(u || "option")
|
|
1213
1229
|
}, s),
|
|
1214
1230
|
selectProps: a
|
|
1215
1231
|
}));
|
|
1216
|
-
},
|
|
1217
|
-
var
|
|
1218
|
-
return
|
|
1232
|
+
}, Ia = ba, ma = function(e, u) {
|
|
1233
|
+
var i = e.isDisabled, t = e.isFocused, r = e.isSelected, o = e.theme, s = o.spacing, a = o.colors;
|
|
1234
|
+
return E({
|
|
1219
1235
|
label: "option",
|
|
1220
1236
|
cursor: "default",
|
|
1221
1237
|
display: "block",
|
|
@@ -1223,145 +1239,145 @@ var na = function(e) {
|
|
|
1223
1239
|
width: "100%",
|
|
1224
1240
|
userSelect: "none",
|
|
1225
1241
|
WebkitTapHighlightColor: "rgba(0, 0, 0, 0)"
|
|
1226
|
-
},
|
|
1242
|
+
}, u ? {} : {
|
|
1227
1243
|
backgroundColor: r ? a.primary : t ? a.primary25 : "transparent",
|
|
1228
|
-
color:
|
|
1244
|
+
color: i ? a.neutral20 : r ? a.neutral0 : "inherit",
|
|
1229
1245
|
padding: "".concat(s.baseUnit * 2, "px ").concat(s.baseUnit * 3, "px"),
|
|
1230
1246
|
// provide some affordance on touch devices
|
|
1231
1247
|
":active": {
|
|
1232
|
-
backgroundColor:
|
|
1248
|
+
backgroundColor: i ? void 0 : r ? a.primary : a.primary50
|
|
1233
1249
|
}
|
|
1234
1250
|
});
|
|
1235
|
-
},
|
|
1236
|
-
var
|
|
1237
|
-
return
|
|
1251
|
+
}, ha = function(e) {
|
|
1252
|
+
var u = e.children, i = e.isDisabled, t = e.isFocused, r = e.isSelected, o = e.innerRef, s = e.innerProps;
|
|
1253
|
+
return y("div", G({}, X(e, "option", {
|
|
1238
1254
|
option: !0,
|
|
1239
|
-
"option--is-disabled":
|
|
1255
|
+
"option--is-disabled": i,
|
|
1240
1256
|
"option--is-focused": t,
|
|
1241
1257
|
"option--is-selected": r
|
|
1242
1258
|
}), {
|
|
1243
1259
|
ref: o,
|
|
1244
|
-
"aria-disabled":
|
|
1245
|
-
}, s),
|
|
1246
|
-
},
|
|
1247
|
-
var
|
|
1248
|
-
return
|
|
1260
|
+
"aria-disabled": i
|
|
1261
|
+
}, s), u);
|
|
1262
|
+
}, fa = ha, va = function(e, u) {
|
|
1263
|
+
var i = e.theme, t = i.spacing, r = i.colors;
|
|
1264
|
+
return E({
|
|
1249
1265
|
label: "placeholder",
|
|
1250
1266
|
gridArea: "1 / 1 / 2 / 3"
|
|
1251
|
-
},
|
|
1267
|
+
}, u ? {} : {
|
|
1252
1268
|
color: r.neutral50,
|
|
1253
1269
|
marginLeft: t.baseUnit / 2,
|
|
1254
1270
|
marginRight: t.baseUnit / 2
|
|
1255
1271
|
});
|
|
1256
|
-
},
|
|
1257
|
-
var
|
|
1258
|
-
return
|
|
1272
|
+
}, Ca = function(e) {
|
|
1273
|
+
var u = e.children, i = e.innerProps;
|
|
1274
|
+
return y("div", G({}, X(e, "placeholder", {
|
|
1259
1275
|
placeholder: !0
|
|
1260
|
-
}),
|
|
1261
|
-
},
|
|
1262
|
-
var
|
|
1263
|
-
return
|
|
1276
|
+
}), i), u);
|
|
1277
|
+
}, Aa = Ca, xa = function(e, u) {
|
|
1278
|
+
var i = e.isDisabled, t = e.theme, r = t.spacing, o = t.colors;
|
|
1279
|
+
return E({
|
|
1264
1280
|
label: "singleValue",
|
|
1265
1281
|
gridArea: "1 / 1 / 2 / 3",
|
|
1266
1282
|
maxWidth: "100%",
|
|
1267
1283
|
overflow: "hidden",
|
|
1268
1284
|
textOverflow: "ellipsis",
|
|
1269
1285
|
whiteSpace: "nowrap"
|
|
1270
|
-
},
|
|
1271
|
-
color:
|
|
1286
|
+
}, u ? {} : {
|
|
1287
|
+
color: i ? o.neutral40 : o.neutral80,
|
|
1272
1288
|
marginLeft: r.baseUnit / 2,
|
|
1273
1289
|
marginRight: r.baseUnit / 2
|
|
1274
1290
|
});
|
|
1275
|
-
},
|
|
1276
|
-
var
|
|
1277
|
-
return
|
|
1291
|
+
}, ya = function(e) {
|
|
1292
|
+
var u = e.children, i = e.isDisabled, t = e.innerProps;
|
|
1293
|
+
return y("div", G({}, X(e, "singleValue", {
|
|
1278
1294
|
"single-value": !0,
|
|
1279
|
-
"single-value--is-disabled":
|
|
1280
|
-
}), t),
|
|
1281
|
-
},
|
|
1282
|
-
ClearIndicator:
|
|
1283
|
-
Control:
|
|
1284
|
-
DropdownIndicator:
|
|
1285
|
-
DownChevron:
|
|
1286
|
-
CrossIcon:
|
|
1287
|
-
Group:
|
|
1288
|
-
GroupHeading:
|
|
1289
|
-
IndicatorsContainer:
|
|
1290
|
-
IndicatorSeparator:
|
|
1291
|
-
Input:
|
|
1292
|
-
LoadingIndicator:
|
|
1293
|
-
Menu:
|
|
1294
|
-
MenuList:
|
|
1295
|
-
MenuPortal:
|
|
1296
|
-
LoadingMessage:
|
|
1297
|
-
NoOptionsMessage:
|
|
1298
|
-
MultiValue:
|
|
1299
|
-
MultiValueContainer:
|
|
1300
|
-
MultiValueLabel:
|
|
1301
|
-
MultiValueRemove:
|
|
1302
|
-
Option:
|
|
1303
|
-
Placeholder:
|
|
1304
|
-
SelectContainer:
|
|
1305
|
-
SingleValue:
|
|
1306
|
-
ValueContainer:
|
|
1307
|
-
},
|
|
1308
|
-
return
|
|
1309
|
-
},
|
|
1295
|
+
"single-value--is-disabled": i
|
|
1296
|
+
}), t), u);
|
|
1297
|
+
}, Ea = ya, mn = {
|
|
1298
|
+
ClearIndicator: Ou,
|
|
1299
|
+
Control: Qu,
|
|
1300
|
+
DropdownIndicator: Lu,
|
|
1301
|
+
DownChevron: gn,
|
|
1302
|
+
CrossIcon: ct,
|
|
1303
|
+
Group: ta,
|
|
1304
|
+
GroupHeading: ea,
|
|
1305
|
+
IndicatorsContainer: Nu,
|
|
1306
|
+
IndicatorSeparator: ku,
|
|
1307
|
+
Input: oa,
|
|
1308
|
+
LoadingIndicator: ju,
|
|
1309
|
+
Menu: vu,
|
|
1310
|
+
MenuList: Au,
|
|
1311
|
+
MenuPortal: Bu,
|
|
1312
|
+
LoadingMessage: Gu,
|
|
1313
|
+
NoOptionsMessage: Eu,
|
|
1314
|
+
MultiValue: Ia,
|
|
1315
|
+
MultiValueContainer: da,
|
|
1316
|
+
MultiValueLabel: ga,
|
|
1317
|
+
MultiValueRemove: pa,
|
|
1318
|
+
Option: fa,
|
|
1319
|
+
Placeholder: Aa,
|
|
1320
|
+
SelectContainer: Su,
|
|
1321
|
+
SingleValue: Ea,
|
|
1322
|
+
ValueContainer: Ru
|
|
1323
|
+
}, Ga = function(e) {
|
|
1324
|
+
return E(E({}, mn), e.components);
|
|
1325
|
+
}, Rt = Number.isNaN || function(e) {
|
|
1310
1326
|
return typeof e == "number" && e !== e;
|
|
1311
1327
|
};
|
|
1312
|
-
function
|
|
1313
|
-
return !!(n === e ||
|
|
1328
|
+
function Fa(n, e) {
|
|
1329
|
+
return !!(n === e || Rt(n) && Rt(e));
|
|
1314
1330
|
}
|
|
1315
|
-
function
|
|
1331
|
+
function Ba(n, e) {
|
|
1316
1332
|
if (n.length !== e.length)
|
|
1317
1333
|
return !1;
|
|
1318
|
-
for (var
|
|
1319
|
-
if (!
|
|
1334
|
+
for (var u = 0; u < n.length; u++)
|
|
1335
|
+
if (!Fa(n[u], e[u]))
|
|
1320
1336
|
return !1;
|
|
1321
1337
|
return !0;
|
|
1322
1338
|
}
|
|
1323
|
-
function
|
|
1324
|
-
e === void 0 && (e =
|
|
1325
|
-
var
|
|
1326
|
-
function
|
|
1339
|
+
function Ta(n, e) {
|
|
1340
|
+
e === void 0 && (e = Ba);
|
|
1341
|
+
var u = null;
|
|
1342
|
+
function i() {
|
|
1327
1343
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1328
1344
|
t[r] = arguments[r];
|
|
1329
|
-
if (
|
|
1330
|
-
return
|
|
1345
|
+
if (u && u.lastThis === this && e(t, u.lastArgs))
|
|
1346
|
+
return u.lastResult;
|
|
1331
1347
|
var o = n.apply(this, t);
|
|
1332
|
-
return
|
|
1348
|
+
return u = {
|
|
1333
1349
|
lastResult: o,
|
|
1334
1350
|
lastArgs: t,
|
|
1335
1351
|
lastThis: this
|
|
1336
1352
|
}, o;
|
|
1337
1353
|
}
|
|
1338
|
-
return
|
|
1339
|
-
|
|
1340
|
-
},
|
|
1354
|
+
return i.clear = function() {
|
|
1355
|
+
u = null;
|
|
1356
|
+
}, i;
|
|
1341
1357
|
}
|
|
1342
|
-
function
|
|
1358
|
+
function Sa() {
|
|
1343
1359
|
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
1360
|
}
|
|
1345
|
-
var
|
|
1361
|
+
var Va = process.env.NODE_ENV === "production" ? {
|
|
1346
1362
|
name: "7pg0cj-a11yText",
|
|
1347
1363
|
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
1364
|
} : {
|
|
1349
1365
|
name: "1f43avz-a11yText-A11yText",
|
|
1350
1366
|
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
1367
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
1352
|
-
toString:
|
|
1353
|
-
},
|
|
1354
|
-
return
|
|
1355
|
-
css:
|
|
1368
|
+
toString: Sa
|
|
1369
|
+
}, Ra = function(e) {
|
|
1370
|
+
return y("span", G({
|
|
1371
|
+
css: Va
|
|
1356
1372
|
}, e));
|
|
1357
|
-
},
|
|
1373
|
+
}, Wt = Ra, Wa = {
|
|
1358
1374
|
guidance: function(e) {
|
|
1359
|
-
var
|
|
1375
|
+
var u = e.isSearchable, i = e.isMulti, t = e.tabSelectsValue, r = e.context, o = e.isInitialFocus;
|
|
1360
1376
|
switch (r) {
|
|
1361
1377
|
case "menu":
|
|
1362
1378
|
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
1379
|
case "input":
|
|
1364
|
-
return o ? "".concat(e["aria-label"] || "Select", " is focused ").concat(
|
|
1380
|
+
return o ? "".concat(e["aria-label"] || "Select", " is focused ").concat(u ? ",type to refine list" : "", ", press Down to open the menu, ").concat(i ? " press left to focus selected values" : "") : "";
|
|
1365
1381
|
case "value":
|
|
1366
1382
|
return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
|
|
1367
1383
|
default:
|
|
@@ -1369,8 +1385,8 @@ var ha = process.env.NODE_ENV === "production" ? {
|
|
|
1369
1385
|
}
|
|
1370
1386
|
},
|
|
1371
1387
|
onChange: function(e) {
|
|
1372
|
-
var
|
|
1373
|
-
switch (
|
|
1388
|
+
var u = e.action, i = e.label, t = i === void 0 ? "" : i, r = e.labels, o = e.isDisabled;
|
|
1389
|
+
switch (u) {
|
|
1374
1390
|
case "deselect-option":
|
|
1375
1391
|
case "pop-value":
|
|
1376
1392
|
case "remove-value":
|
|
@@ -1386,100 +1402,100 @@ var ha = process.env.NODE_ENV === "production" ? {
|
|
|
1386
1402
|
}
|
|
1387
1403
|
},
|
|
1388
1404
|
onFocus: function(e) {
|
|
1389
|
-
var
|
|
1390
|
-
return
|
|
1405
|
+
var u = e.context, i = 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(I, p) {
|
|
1406
|
+
return I && I.length ? "".concat(I.indexOf(p) + 1, " of ").concat(I.length) : "";
|
|
1391
1407
|
};
|
|
1392
|
-
if (
|
|
1393
|
-
return "value ".concat(o, " focused, ").concat(d(s,
|
|
1394
|
-
if (
|
|
1395
|
-
var
|
|
1396
|
-
return "".concat(o).concat(
|
|
1408
|
+
if (u === "value" && s)
|
|
1409
|
+
return "value ".concat(o, " focused, ").concat(d(s, i), ".");
|
|
1410
|
+
if (u === "menu" && c) {
|
|
1411
|
+
var g = a ? " disabled" : "", b = "".concat(l ? " selected" : "").concat(g);
|
|
1412
|
+
return "".concat(o).concat(b, ", ").concat(d(t, i), ".");
|
|
1397
1413
|
}
|
|
1398
1414
|
return "";
|
|
1399
1415
|
},
|
|
1400
1416
|
onFilter: function(e) {
|
|
1401
|
-
var
|
|
1402
|
-
return "".concat(
|
|
1417
|
+
var u = e.inputValue, i = e.resultsMessage;
|
|
1418
|
+
return "".concat(i).concat(u ? " for search term " + u : "", ".");
|
|
1403
1419
|
}
|
|
1404
|
-
},
|
|
1405
|
-
var
|
|
1406
|
-
return
|
|
1407
|
-
}, [d]),
|
|
1408
|
-
var
|
|
1409
|
-
if (
|
|
1410
|
-
var
|
|
1411
|
-
return Array.isArray(
|
|
1412
|
-
},
|
|
1420
|
+
}, Na = function(e) {
|
|
1421
|
+
var u = e.ariaSelection, i = 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, g = a.getOptionLabel, b = a.inputValue, f = a.isMulti, I = a.isOptionDisabled, p = a.isSearchable, m = a.menuIsOpen, A = a.options, C = a.screenReaderStatus, T = a.tabSelectsValue, V = a.isLoading, x = a["aria-label"], S = a["aria-live"], h = he(function() {
|
|
1422
|
+
return E(E({}, Wa), d || {});
|
|
1423
|
+
}, [d]), B = he(function() {
|
|
1424
|
+
var H = "";
|
|
1425
|
+
if (u && h.onChange) {
|
|
1426
|
+
var w = u.option, z = u.options, k = u.removedValue, re = u.removedValues, oe = u.value, ye = function($) {
|
|
1427
|
+
return Array.isArray($) ? null : $;
|
|
1428
|
+
}, P = k || w || ye(oe), M = P ? g(P) : "", K = z || re || void 0, le = K ? K.map(g) : [], Y = E({
|
|
1413
1429
|
// multiSelected items are usually items that have already been selected
|
|
1414
1430
|
// or set by the user as a default value so we assume they are not disabled
|
|
1415
|
-
isDisabled:
|
|
1416
|
-
label:
|
|
1417
|
-
labels:
|
|
1418
|
-
},
|
|
1419
|
-
|
|
1420
|
-
}
|
|
1421
|
-
return
|
|
1422
|
-
}, [
|
|
1423
|
-
var
|
|
1424
|
-
if (
|
|
1431
|
+
isDisabled: P && I(P, s),
|
|
1432
|
+
label: M,
|
|
1433
|
+
labels: le
|
|
1434
|
+
}, u);
|
|
1435
|
+
H = h.onChange(Y);
|
|
1436
|
+
}
|
|
1437
|
+
return H;
|
|
1438
|
+
}, [u, h, I, s, g]), W = he(function() {
|
|
1439
|
+
var H = "", w = i || t, z = !!(i && s && s.includes(i));
|
|
1440
|
+
if (w && h.onFocus) {
|
|
1425
1441
|
var k = {
|
|
1426
|
-
focused:
|
|
1427
|
-
label:
|
|
1428
|
-
isDisabled:
|
|
1429
|
-
isSelected:
|
|
1442
|
+
focused: w,
|
|
1443
|
+
label: g(w),
|
|
1444
|
+
isDisabled: I(w, s),
|
|
1445
|
+
isSelected: z,
|
|
1430
1446
|
options: r,
|
|
1431
|
-
context:
|
|
1447
|
+
context: w === i ? "menu" : "value",
|
|
1432
1448
|
selectValue: s,
|
|
1433
1449
|
isAppleDevice: c
|
|
1434
1450
|
};
|
|
1435
|
-
|
|
1451
|
+
H = h.onFocus(k);
|
|
1436
1452
|
}
|
|
1437
|
-
return
|
|
1438
|
-
}, [
|
|
1439
|
-
var
|
|
1440
|
-
if (m &&
|
|
1441
|
-
var
|
|
1453
|
+
return H;
|
|
1454
|
+
}, [i, t, g, I, h, r, s, c]), N = he(function() {
|
|
1455
|
+
var H = "";
|
|
1456
|
+
if (m && A.length && !V && h.onFilter) {
|
|
1457
|
+
var w = C({
|
|
1442
1458
|
count: r.length
|
|
1443
1459
|
});
|
|
1444
|
-
|
|
1445
|
-
inputValue:
|
|
1446
|
-
resultsMessage:
|
|
1460
|
+
H = h.onFilter({
|
|
1461
|
+
inputValue: b,
|
|
1462
|
+
resultsMessage: w
|
|
1447
1463
|
});
|
|
1448
1464
|
}
|
|
1449
|
-
return
|
|
1450
|
-
}, [r,
|
|
1451
|
-
var
|
|
1452
|
-
if (
|
|
1453
|
-
var
|
|
1454
|
-
|
|
1455
|
-
"aria-label":
|
|
1456
|
-
context:
|
|
1457
|
-
isDisabled:
|
|
1458
|
-
isMulti:
|
|
1459
|
-
isSearchable:
|
|
1460
|
-
tabSelectsValue:
|
|
1461
|
-
isInitialFocus:
|
|
1465
|
+
return H;
|
|
1466
|
+
}, [r, b, m, h, A, C, V]), L = (u == null ? void 0 : u.action) === "initial-input-focus", Q = he(function() {
|
|
1467
|
+
var H = "";
|
|
1468
|
+
if (h.guidance) {
|
|
1469
|
+
var w = t ? "value" : m ? "menu" : "input";
|
|
1470
|
+
H = h.guidance({
|
|
1471
|
+
"aria-label": x,
|
|
1472
|
+
context: w,
|
|
1473
|
+
isDisabled: i && I(i, s),
|
|
1474
|
+
isMulti: f,
|
|
1475
|
+
isSearchable: p,
|
|
1476
|
+
tabSelectsValue: T,
|
|
1477
|
+
isInitialFocus: L
|
|
1462
1478
|
});
|
|
1463
1479
|
}
|
|
1464
|
-
return
|
|
1465
|
-
}, [
|
|
1480
|
+
return H;
|
|
1481
|
+
}, [x, i, t, f, I, p, m, h, s, T, L]), _ = y(Ke, null, y("span", {
|
|
1466
1482
|
id: "aria-selection"
|
|
1467
|
-
},
|
|
1483
|
+
}, B), y("span", {
|
|
1468
1484
|
id: "aria-focused"
|
|
1469
|
-
},
|
|
1485
|
+
}, W), y("span", {
|
|
1470
1486
|
id: "aria-results"
|
|
1471
|
-
},
|
|
1487
|
+
}, N), y("span", {
|
|
1472
1488
|
id: "aria-guidance"
|
|
1473
|
-
},
|
|
1474
|
-
return
|
|
1489
|
+
}, Q));
|
|
1490
|
+
return y(Ke, null, y(Wt, {
|
|
1475
1491
|
id: l
|
|
1476
|
-
},
|
|
1492
|
+
}, L && _), y(Wt, {
|
|
1477
1493
|
"aria-live": S,
|
|
1478
1494
|
"aria-atomic": "false",
|
|
1479
1495
|
"aria-relevant": "additions text",
|
|
1480
1496
|
role: "log"
|
|
1481
|
-
}, o && !
|
|
1482
|
-
},
|
|
1497
|
+
}, o && !L && _));
|
|
1498
|
+
}, Xa = Na, it = [{
|
|
1483
1499
|
base: "A",
|
|
1484
1500
|
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
1485
1501
|
}, {
|
|
@@ -1731,39 +1747,39 @@ var ha = process.env.NODE_ENV === "production" ? {
|
|
|
1731
1747
|
}, {
|
|
1732
1748
|
base: "z",
|
|
1733
1749
|
letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
|
|
1734
|
-
}],
|
|
1750
|
+
}], Za = new RegExp("[" + it.map(function(n) {
|
|
1735
1751
|
return n.letters;
|
|
1736
|
-
}).join("") + "]", "g"),
|
|
1737
|
-
for (var
|
|
1738
|
-
for (var
|
|
1739
|
-
|
|
1740
|
-
var
|
|
1741
|
-
return e.replace(
|
|
1742
|
-
return
|
|
1752
|
+
}).join("") + "]", "g"), hn = {};
|
|
1753
|
+
for (var Ye = 0; Ye < it.length; Ye++)
|
|
1754
|
+
for (var Je = it[Ye], je = 0; je < Je.letters.length; je++)
|
|
1755
|
+
hn[Je.letters[je]] = Je.base;
|
|
1756
|
+
var fn = function(e) {
|
|
1757
|
+
return e.replace(Za, function(u) {
|
|
1758
|
+
return hn[u];
|
|
1743
1759
|
});
|
|
1744
|
-
},
|
|
1760
|
+
}, wa = Ta(fn), Nt = function(e) {
|
|
1745
1761
|
return e.replace(/^\s+|\s+$/g, "");
|
|
1746
|
-
},
|
|
1762
|
+
}, Pa = function(e) {
|
|
1747
1763
|
return "".concat(e.label, " ").concat(e.value);
|
|
1748
|
-
},
|
|
1749
|
-
return function(
|
|
1750
|
-
if (
|
|
1751
|
-
var t =
|
|
1764
|
+
}, Ha = function(e) {
|
|
1765
|
+
return function(u, i) {
|
|
1766
|
+
if (u.data.__isNew__) return !0;
|
|
1767
|
+
var t = E({
|
|
1752
1768
|
ignoreCase: !0,
|
|
1753
1769
|
ignoreAccents: !0,
|
|
1754
|
-
stringify:
|
|
1770
|
+
stringify: Pa,
|
|
1755
1771
|
trim: !0,
|
|
1756
1772
|
matchFrom: "any"
|
|
1757
|
-
}, e), r = t.ignoreCase, o = t.ignoreAccents, s = t.stringify, a = t.trim, l = t.matchFrom, c = a ?
|
|
1758
|
-
return r && (c = c.toLowerCase(), d = d.toLowerCase()), o && (c =
|
|
1773
|
+
}, e), r = t.ignoreCase, o = t.ignoreAccents, s = t.stringify, a = t.trim, l = t.matchFrom, c = a ? Nt(i) : i, d = a ? Nt(s(u)) : s(u);
|
|
1774
|
+
return r && (c = c.toLowerCase(), d = d.toLowerCase()), o && (c = wa(c), d = fn(d)), l === "start" ? d.substr(0, c.length) === c : d.indexOf(c) > -1;
|
|
1759
1775
|
};
|
|
1760
|
-
},
|
|
1761
|
-
function
|
|
1762
|
-
var e = n.innerRef,
|
|
1763
|
-
return
|
|
1776
|
+
}, La = ["innerRef"];
|
|
1777
|
+
function Da(n) {
|
|
1778
|
+
var e = n.innerRef, u = ae(n, La), i = du(u, "onExited", "in", "enter", "exit", "appear");
|
|
1779
|
+
return y("input", G({
|
|
1764
1780
|
ref: e
|
|
1765
|
-
},
|
|
1766
|
-
css: /* @__PURE__ */
|
|
1781
|
+
}, i, {
|
|
1782
|
+
css: /* @__PURE__ */ zt({
|
|
1767
1783
|
label: "dummyInput",
|
|
1768
1784
|
// get rid of any default styles
|
|
1769
1785
|
background: 0,
|
|
@@ -1786,93 +1802,93 @@ function Va(n) {
|
|
|
1786
1802
|
}, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9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W5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")
|
|
1787
1803
|
}));
|
|
1788
1804
|
}
|
|
1789
|
-
var
|
|
1805
|
+
var Oa = function(e) {
|
|
1790
1806
|
e.cancelable && e.preventDefault(), e.stopPropagation();
|
|
1791
1807
|
};
|
|
1792
|
-
function
|
|
1793
|
-
var e = n.isEnabled,
|
|
1808
|
+
function Ma(n) {
|
|
1809
|
+
var e = n.isEnabled, u = n.onBottomArrive, i = n.onBottomLeave, t = n.onTopArrive, r = n.onTopLeave, o = te(!1), s = te(!1), a = te(0), l = te(null), c = D(function(p, m) {
|
|
1794
1810
|
if (l.current !== null) {
|
|
1795
|
-
var
|
|
1796
|
-
|
|
1797
|
-
}
|
|
1798
|
-
}, [
|
|
1799
|
-
c(
|
|
1800
|
-
}, [c]),
|
|
1801
|
-
a.current =
|
|
1802
|
-
}, []),
|
|
1803
|
-
var m = a.current -
|
|
1804
|
-
c(
|
|
1805
|
-
}, [c]),
|
|
1806
|
-
if (
|
|
1807
|
-
var m =
|
|
1811
|
+
var A = l.current, C = A.scrollTop, T = A.scrollHeight, V = A.clientHeight, x = l.current, S = m > 0, h = T - V - C, B = !1;
|
|
1812
|
+
h > m && o.current && (i && i(p), o.current = !1), S && s.current && (r && r(p), s.current = !1), S && m > h ? (u && !o.current && u(p), x.scrollTop = T, B = !0, o.current = !0) : !S && -m > C && (t && !s.current && t(p), x.scrollTop = 0, B = !0, s.current = !0), B && Oa(p);
|
|
1813
|
+
}
|
|
1814
|
+
}, [u, i, t, r]), d = D(function(p) {
|
|
1815
|
+
c(p, p.deltaY);
|
|
1816
|
+
}, [c]), g = D(function(p) {
|
|
1817
|
+
a.current = p.changedTouches[0].clientY;
|
|
1818
|
+
}, []), b = D(function(p) {
|
|
1819
|
+
var m = a.current - p.changedTouches[0].clientY;
|
|
1820
|
+
c(p, m);
|
|
1821
|
+
}, [c]), f = D(function(p) {
|
|
1822
|
+
if (p) {
|
|
1823
|
+
var m = lu ? {
|
|
1808
1824
|
passive: !1
|
|
1809
1825
|
} : !1;
|
|
1810
|
-
|
|
1826
|
+
p.addEventListener("wheel", d, m), p.addEventListener("touchstart", g, m), p.addEventListener("touchmove", b, m);
|
|
1811
1827
|
}
|
|
1812
|
-
}, [
|
|
1813
|
-
|
|
1814
|
-
}, [
|
|
1815
|
-
return
|
|
1828
|
+
}, [b, g, d]), I = D(function(p) {
|
|
1829
|
+
p && (p.removeEventListener("wheel", d, !1), p.removeEventListener("touchstart", g, !1), p.removeEventListener("touchmove", b, !1));
|
|
1830
|
+
}, [b, g, d]);
|
|
1831
|
+
return ne(function() {
|
|
1816
1832
|
if (e) {
|
|
1817
|
-
var
|
|
1818
|
-
return
|
|
1819
|
-
p
|
|
1833
|
+
var p = l.current;
|
|
1834
|
+
return f(p), function() {
|
|
1835
|
+
I(p);
|
|
1820
1836
|
};
|
|
1821
1837
|
}
|
|
1822
|
-
}, [e,
|
|
1823
|
-
l.current =
|
|
1838
|
+
}, [e, f, I]), function(p) {
|
|
1839
|
+
l.current = p;
|
|
1824
1840
|
};
|
|
1825
1841
|
}
|
|
1826
|
-
var
|
|
1842
|
+
var Xt = ["boxSizing", "height", "overflow", "paddingRight", "position"], Zt = {
|
|
1827
1843
|
boxSizing: "border-box",
|
|
1828
1844
|
// account for possible declaration `width: 100%;` on body
|
|
1829
1845
|
overflow: "hidden",
|
|
1830
1846
|
position: "relative",
|
|
1831
1847
|
height: "100%"
|
|
1832
1848
|
};
|
|
1833
|
-
function
|
|
1849
|
+
function wt(n) {
|
|
1834
1850
|
n.preventDefault();
|
|
1835
1851
|
}
|
|
1836
|
-
function
|
|
1852
|
+
function Pt(n) {
|
|
1837
1853
|
n.stopPropagation();
|
|
1838
1854
|
}
|
|
1839
|
-
function
|
|
1840
|
-
var n = this.scrollTop, e = this.scrollHeight,
|
|
1841
|
-
n === 0 ? this.scrollTop = 1 :
|
|
1855
|
+
function Ht() {
|
|
1856
|
+
var n = this.scrollTop, e = this.scrollHeight, u = n + this.offsetHeight;
|
|
1857
|
+
n === 0 ? this.scrollTop = 1 : u === e && (this.scrollTop = n - 1);
|
|
1842
1858
|
}
|
|
1843
|
-
function
|
|
1859
|
+
function Lt() {
|
|
1844
1860
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
1845
1861
|
}
|
|
1846
|
-
var
|
|
1862
|
+
var Dt = !!(typeof window < "u" && window.document && window.document.createElement), Ae = 0, me = {
|
|
1847
1863
|
capture: !1,
|
|
1848
1864
|
passive: !1
|
|
1849
1865
|
};
|
|
1850
|
-
function
|
|
1851
|
-
var e = n.isEnabled,
|
|
1852
|
-
if (
|
|
1866
|
+
function ka(n) {
|
|
1867
|
+
var e = n.isEnabled, u = n.accountForScrollbars, i = u === void 0 ? !0 : u, t = te({}), r = te(null), o = D(function(a) {
|
|
1868
|
+
if (Dt) {
|
|
1853
1869
|
var l = document.body, c = l && l.style;
|
|
1854
|
-
if (
|
|
1855
|
-
var
|
|
1856
|
-
t.current[
|
|
1857
|
-
}),
|
|
1858
|
-
var d = parseInt(t.current.paddingRight, 10) || 0,
|
|
1859
|
-
Object.keys(
|
|
1860
|
-
var
|
|
1861
|
-
c && (c[
|
|
1862
|
-
}), c && (c.paddingRight = "".concat(
|
|
1870
|
+
if (i && Xt.forEach(function(f) {
|
|
1871
|
+
var I = c && c[f];
|
|
1872
|
+
t.current[f] = I;
|
|
1873
|
+
}), i && Ae < 1) {
|
|
1874
|
+
var d = parseInt(t.current.paddingRight, 10) || 0, g = document.body ? document.body.clientWidth : 0, b = window.innerWidth - g + d || 0;
|
|
1875
|
+
Object.keys(Zt).forEach(function(f) {
|
|
1876
|
+
var I = Zt[f];
|
|
1877
|
+
c && (c[f] = I);
|
|
1878
|
+
}), c && (c.paddingRight = "".concat(b, "px"));
|
|
1863
1879
|
}
|
|
1864
|
-
l &&
|
|
1880
|
+
l && Lt() && (l.addEventListener("touchmove", wt, me), a && (a.addEventListener("touchstart", Ht, me), a.addEventListener("touchmove", Pt, me))), Ae += 1;
|
|
1865
1881
|
}
|
|
1866
|
-
}, [
|
|
1867
|
-
if (
|
|
1882
|
+
}, [i]), s = D(function(a) {
|
|
1883
|
+
if (Dt) {
|
|
1868
1884
|
var l = document.body, c = l && l.style;
|
|
1869
|
-
|
|
1870
|
-
var
|
|
1871
|
-
c && (c[d] =
|
|
1872
|
-
}), l &&
|
|
1885
|
+
Ae = Math.max(Ae - 1, 0), i && Ae < 1 && Xt.forEach(function(d) {
|
|
1886
|
+
var g = t.current[d];
|
|
1887
|
+
c && (c[d] = g);
|
|
1888
|
+
}), l && Lt() && (l.removeEventListener("touchmove", wt, me), a && (a.removeEventListener("touchstart", Ht, me), a.removeEventListener("touchmove", Pt, me)));
|
|
1873
1889
|
}
|
|
1874
|
-
}, [
|
|
1875
|
-
return
|
|
1890
|
+
}, [i]);
|
|
1891
|
+
return ne(function() {
|
|
1876
1892
|
if (e) {
|
|
1877
1893
|
var a = r.current;
|
|
1878
1894
|
return o(a), function() {
|
|
@@ -1883,115 +1899,115 @@ function Wa(n) {
|
|
|
1883
1899
|
r.current = a;
|
|
1884
1900
|
};
|
|
1885
1901
|
}
|
|
1886
|
-
function
|
|
1902
|
+
function Ya() {
|
|
1887
1903
|
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
1904
|
}
|
|
1889
|
-
var
|
|
1890
|
-
var
|
|
1891
|
-
return
|
|
1892
|
-
},
|
|
1905
|
+
var Ja = function(e) {
|
|
1906
|
+
var u = e.target;
|
|
1907
|
+
return u.ownerDocument.activeElement && u.ownerDocument.activeElement.blur();
|
|
1908
|
+
}, ja = process.env.NODE_ENV === "production" ? {
|
|
1893
1909
|
name: "1kfdb0e",
|
|
1894
1910
|
styles: "position:fixed;left:0;bottom:0;right:0;top:0"
|
|
1895
1911
|
} : {
|
|
1896
1912
|
name: "bp8cua-ScrollManager",
|
|
1897
1913
|
styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
|
|
1898
1914
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZW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QgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
|
|
1899
|
-
toString:
|
|
1915
|
+
toString: Ya
|
|
1900
1916
|
};
|
|
1901
|
-
function
|
|
1902
|
-
var e = n.children,
|
|
1917
|
+
function za(n) {
|
|
1918
|
+
var e = n.children, u = n.lockEnabled, i = n.captureEnabled, t = i === void 0 ? !0 : i, r = n.onBottomArrive, o = n.onBottomLeave, s = n.onTopArrive, a = n.onTopLeave, l = Ma({
|
|
1903
1919
|
isEnabled: t,
|
|
1904
1920
|
onBottomArrive: r,
|
|
1905
1921
|
onBottomLeave: o,
|
|
1906
1922
|
onTopArrive: s,
|
|
1907
1923
|
onTopLeave: a
|
|
1908
|
-
}), c =
|
|
1909
|
-
isEnabled:
|
|
1910
|
-
}), d = function(
|
|
1911
|
-
l(
|
|
1924
|
+
}), c = ka({
|
|
1925
|
+
isEnabled: u
|
|
1926
|
+
}), d = function(b) {
|
|
1927
|
+
l(b), c(b);
|
|
1912
1928
|
};
|
|
1913
|
-
return
|
|
1914
|
-
onClick:
|
|
1915
|
-
css:
|
|
1929
|
+
return y(Ke, null, u && y("div", {
|
|
1930
|
+
onClick: Ja,
|
|
1931
|
+
css: ja
|
|
1916
1932
|
}), e(d));
|
|
1917
1933
|
}
|
|
1918
|
-
function
|
|
1934
|
+
function Ua() {
|
|
1919
1935
|
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
1936
|
}
|
|
1921
|
-
var
|
|
1937
|
+
var Qa = process.env.NODE_ENV === "production" ? {
|
|
1922
1938
|
name: "1a0ro4n-requiredInput",
|
|
1923
1939
|
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"
|
|
1924
1940
|
} : {
|
|
1925
1941
|
name: "5kkxb2-requiredInput-RequiredInput",
|
|
1926
1942
|
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",
|
|
1927
1943
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",
|
|
1928
|
-
toString:
|
|
1929
|
-
},
|
|
1930
|
-
var
|
|
1931
|
-
return
|
|
1944
|
+
toString: Ua
|
|
1945
|
+
}, _a = function(e) {
|
|
1946
|
+
var u = e.name, i = e.onFocus;
|
|
1947
|
+
return y("input", {
|
|
1932
1948
|
required: !0,
|
|
1933
|
-
name:
|
|
1949
|
+
name: u,
|
|
1934
1950
|
tabIndex: -1,
|
|
1935
1951
|
"aria-hidden": "true",
|
|
1936
|
-
onFocus:
|
|
1937
|
-
css:
|
|
1952
|
+
onFocus: i,
|
|
1953
|
+
css: Qa,
|
|
1938
1954
|
value: "",
|
|
1939
1955
|
onChange: function() {
|
|
1940
1956
|
}
|
|
1941
1957
|
});
|
|
1942
|
-
},
|
|
1943
|
-
function
|
|
1958
|
+
}, Ka = _a;
|
|
1959
|
+
function dt(n) {
|
|
1944
1960
|
var e;
|
|
1945
1961
|
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
1962
|
}
|
|
1947
|
-
function
|
|
1948
|
-
return
|
|
1963
|
+
function $a() {
|
|
1964
|
+
return dt(/^iPhone/i);
|
|
1949
1965
|
}
|
|
1950
|
-
function
|
|
1951
|
-
return
|
|
1966
|
+
function vn() {
|
|
1967
|
+
return dt(/^Mac/i);
|
|
1952
1968
|
}
|
|
1953
|
-
function
|
|
1954
|
-
return
|
|
1955
|
-
|
|
1969
|
+
function qa() {
|
|
1970
|
+
return dt(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
1971
|
+
vn() && navigator.maxTouchPoints > 1;
|
|
1956
1972
|
}
|
|
1957
|
-
function
|
|
1958
|
-
return
|
|
1973
|
+
function er() {
|
|
1974
|
+
return $a() || qa();
|
|
1959
1975
|
}
|
|
1960
|
-
function
|
|
1961
|
-
return
|
|
1976
|
+
function tr() {
|
|
1977
|
+
return vn() || er();
|
|
1962
1978
|
}
|
|
1963
|
-
var
|
|
1979
|
+
var nr = function(e) {
|
|
1964
1980
|
return e.label;
|
|
1965
|
-
},
|
|
1981
|
+
}, ir = function(e) {
|
|
1966
1982
|
return e.label;
|
|
1967
|
-
},
|
|
1983
|
+
}, ur = function(e) {
|
|
1968
1984
|
return e.value;
|
|
1969
|
-
},
|
|
1985
|
+
}, ar = function(e) {
|
|
1970
1986
|
return !!e.isDisabled;
|
|
1971
|
-
},
|
|
1972
|
-
clearIndicator:
|
|
1973
|
-
container:
|
|
1974
|
-
control:
|
|
1975
|
-
dropdownIndicator:
|
|
1976
|
-
group:
|
|
1977
|
-
groupHeading:
|
|
1978
|
-
indicatorsContainer:
|
|
1979
|
-
indicatorSeparator:
|
|
1980
|
-
input:
|
|
1981
|
-
loadingIndicator:
|
|
1982
|
-
loadingMessage:
|
|
1983
|
-
menu:
|
|
1984
|
-
menuList:
|
|
1985
|
-
menuPortal:
|
|
1986
|
-
multiValue:
|
|
1987
|
-
multiValueLabel:
|
|
1988
|
-
multiValueRemove:
|
|
1989
|
-
noOptionsMessage:
|
|
1990
|
-
option:
|
|
1991
|
-
placeholder:
|
|
1992
|
-
singleValue:
|
|
1993
|
-
valueContainer:
|
|
1994
|
-
},
|
|
1987
|
+
}, rr = {
|
|
1988
|
+
clearIndicator: Du,
|
|
1989
|
+
container: Tu,
|
|
1990
|
+
control: zu,
|
|
1991
|
+
dropdownIndicator: Hu,
|
|
1992
|
+
group: Ku,
|
|
1993
|
+
groupHeading: qu,
|
|
1994
|
+
indicatorsContainer: Wu,
|
|
1995
|
+
indicatorSeparator: Mu,
|
|
1996
|
+
input: ia,
|
|
1997
|
+
loadingIndicator: Ju,
|
|
1998
|
+
loadingMessage: yu,
|
|
1999
|
+
menu: mu,
|
|
2000
|
+
menuList: Cu,
|
|
2001
|
+
menuPortal: Fu,
|
|
2002
|
+
multiValue: la,
|
|
2003
|
+
multiValueLabel: sa,
|
|
2004
|
+
multiValueRemove: ca,
|
|
2005
|
+
noOptionsMessage: xu,
|
|
2006
|
+
option: ma,
|
|
2007
|
+
placeholder: va,
|
|
2008
|
+
singleValue: xa,
|
|
2009
|
+
valueContainer: Vu
|
|
2010
|
+
}, or = {
|
|
1995
2011
|
primary: "#2684FF",
|
|
1996
2012
|
primary75: "#4C9AFF",
|
|
1997
2013
|
primary50: "#B2D4FF",
|
|
@@ -2009,35 +2025,35 @@ var Ja = function(e) {
|
|
|
2009
2025
|
neutral70: "hsl(0, 0%, 30%)",
|
|
2010
2026
|
neutral80: "hsl(0, 0%, 20%)",
|
|
2011
2027
|
neutral90: "hsl(0, 0%, 10%)"
|
|
2012
|
-
},
|
|
2013
|
-
baseUnit:
|
|
2014
|
-
controlHeight:
|
|
2015
|
-
menuGutter:
|
|
2016
|
-
},
|
|
2017
|
-
borderRadius:
|
|
2018
|
-
colors:
|
|
2019
|
-
spacing:
|
|
2020
|
-
},
|
|
2028
|
+
}, lr = 4, Cn = 4, sr = 38, cr = Cn * 2, dr = {
|
|
2029
|
+
baseUnit: Cn,
|
|
2030
|
+
controlHeight: sr,
|
|
2031
|
+
menuGutter: cr
|
|
2032
|
+
}, ze = {
|
|
2033
|
+
borderRadius: lr,
|
|
2034
|
+
colors: or,
|
|
2035
|
+
spacing: dr
|
|
2036
|
+
}, gr = {
|
|
2021
2037
|
"aria-live": "polite",
|
|
2022
2038
|
backspaceRemovesValue: !0,
|
|
2023
|
-
blurInputOnSelect:
|
|
2024
|
-
captureMenuScroll: !
|
|
2039
|
+
blurInputOnSelect: St(),
|
|
2040
|
+
captureMenuScroll: !St(),
|
|
2025
2041
|
classNames: {},
|
|
2026
2042
|
closeMenuOnSelect: !0,
|
|
2027
2043
|
closeMenuOnScroll: !1,
|
|
2028
2044
|
components: {},
|
|
2029
2045
|
controlShouldRenderValue: !0,
|
|
2030
2046
|
escapeClearsValue: !1,
|
|
2031
|
-
filterOption:
|
|
2032
|
-
formatGroupLabel:
|
|
2033
|
-
getOptionLabel:
|
|
2034
|
-
getOptionValue:
|
|
2047
|
+
filterOption: Ha(),
|
|
2048
|
+
formatGroupLabel: nr,
|
|
2049
|
+
getOptionLabel: ir,
|
|
2050
|
+
getOptionValue: ur,
|
|
2035
2051
|
isDisabled: !1,
|
|
2036
2052
|
isLoading: !1,
|
|
2037
2053
|
isMulti: !1,
|
|
2038
2054
|
isRtl: !1,
|
|
2039
2055
|
isSearchable: !0,
|
|
2040
|
-
isOptionDisabled:
|
|
2056
|
+
isOptionDisabled: ar,
|
|
2041
2057
|
loadingMessage: function() {
|
|
2042
2058
|
return "Loading...";
|
|
2043
2059
|
},
|
|
@@ -2047,7 +2063,7 @@ var Ja = function(e) {
|
|
|
2047
2063
|
menuPlacement: "bottom",
|
|
2048
2064
|
menuPosition: "absolute",
|
|
2049
2065
|
menuShouldBlockScroll: !1,
|
|
2050
|
-
menuShouldScrollIntoView: !
|
|
2066
|
+
menuShouldScrollIntoView: !ru(),
|
|
2051
2067
|
noOptionsMessage: function() {
|
|
2052
2068
|
return "No options";
|
|
2053
2069
|
},
|
|
@@ -2057,16 +2073,16 @@ var Ja = function(e) {
|
|
|
2057
2073
|
pageSize: 5,
|
|
2058
2074
|
placeholder: "Select...",
|
|
2059
2075
|
screenReaderStatus: function(e) {
|
|
2060
|
-
var
|
|
2061
|
-
return "".concat(
|
|
2076
|
+
var u = e.count;
|
|
2077
|
+
return "".concat(u, " result").concat(u !== 1 ? "s" : "", " available");
|
|
2062
2078
|
},
|
|
2063
2079
|
styles: {},
|
|
2064
2080
|
tabIndex: 0,
|
|
2065
2081
|
tabSelectsValue: !0,
|
|
2066
2082
|
unstyled: !1
|
|
2067
2083
|
};
|
|
2068
|
-
function
|
|
2069
|
-
var t =
|
|
2084
|
+
function Ot(n, e, u, i) {
|
|
2085
|
+
var t = yn(n, e, u), r = En(n, e, u), o = xn(n, e), s = Pe(n, e);
|
|
2070
2086
|
return {
|
|
2071
2087
|
type: "option",
|
|
2072
2088
|
data: e,
|
|
@@ -2074,108 +2090,108 @@ function Xt(n, e, i, u) {
|
|
|
2074
2090
|
isSelected: r,
|
|
2075
2091
|
label: o,
|
|
2076
2092
|
value: s,
|
|
2077
|
-
index:
|
|
2093
|
+
index: i
|
|
2078
2094
|
};
|
|
2079
2095
|
}
|
|
2080
|
-
function
|
|
2081
|
-
return n.options.map(function(
|
|
2082
|
-
if ("options" in
|
|
2083
|
-
var t =
|
|
2084
|
-
return
|
|
2096
|
+
function Se(n, e) {
|
|
2097
|
+
return n.options.map(function(u, i) {
|
|
2098
|
+
if ("options" in u) {
|
|
2099
|
+
var t = u.options.map(function(o, s) {
|
|
2100
|
+
return Ot(n, o, e, s);
|
|
2085
2101
|
}).filter(function(o) {
|
|
2086
|
-
return
|
|
2102
|
+
return kt(n, o);
|
|
2087
2103
|
});
|
|
2088
2104
|
return t.length > 0 ? {
|
|
2089
2105
|
type: "group",
|
|
2090
|
-
data:
|
|
2106
|
+
data: u,
|
|
2091
2107
|
options: t,
|
|
2092
|
-
index:
|
|
2108
|
+
index: i
|
|
2093
2109
|
} : void 0;
|
|
2094
2110
|
}
|
|
2095
|
-
var r =
|
|
2096
|
-
return
|
|
2097
|
-
}).filter(
|
|
2111
|
+
var r = Ot(n, u, e, i);
|
|
2112
|
+
return kt(n, r) ? r : void 0;
|
|
2113
|
+
}).filter(su);
|
|
2098
2114
|
}
|
|
2099
|
-
function
|
|
2100
|
-
return n.reduce(function(e,
|
|
2101
|
-
return
|
|
2102
|
-
return
|
|
2103
|
-
}))) : e.push(
|
|
2115
|
+
function An(n) {
|
|
2116
|
+
return n.reduce(function(e, u) {
|
|
2117
|
+
return u.type === "group" ? e.push.apply(e, rt(u.options.map(function(i) {
|
|
2118
|
+
return i.data;
|
|
2119
|
+
}))) : e.push(u.data), e;
|
|
2104
2120
|
}, []);
|
|
2105
2121
|
}
|
|
2106
|
-
function
|
|
2107
|
-
return n.reduce(function(
|
|
2108
|
-
return
|
|
2122
|
+
function Mt(n, e) {
|
|
2123
|
+
return n.reduce(function(u, i) {
|
|
2124
|
+
return i.type === "group" ? u.push.apply(u, rt(i.options.map(function(t) {
|
|
2109
2125
|
return {
|
|
2110
2126
|
data: t.data,
|
|
2111
|
-
id: "".concat(e, "-").concat(
|
|
2127
|
+
id: "".concat(e, "-").concat(i.index, "-").concat(t.index)
|
|
2112
2128
|
};
|
|
2113
|
-
}))) :
|
|
2114
|
-
data:
|
|
2115
|
-
id: "".concat(e, "-").concat(
|
|
2116
|
-
}),
|
|
2129
|
+
}))) : u.push({
|
|
2130
|
+
data: i.data,
|
|
2131
|
+
id: "".concat(e, "-").concat(i.index)
|
|
2132
|
+
}), u;
|
|
2117
2133
|
}, []);
|
|
2118
2134
|
}
|
|
2119
|
-
function
|
|
2120
|
-
return
|
|
2135
|
+
function pr(n, e) {
|
|
2136
|
+
return An(Se(n, e));
|
|
2121
2137
|
}
|
|
2122
|
-
function
|
|
2123
|
-
var
|
|
2124
|
-
return (!
|
|
2138
|
+
function kt(n, e) {
|
|
2139
|
+
var u = n.inputValue, i = u === void 0 ? "" : u, t = e.data, r = e.isSelected, o = e.label, s = e.value;
|
|
2140
|
+
return (!Fn(n) || !r) && Gn(n, {
|
|
2125
2141
|
label: o,
|
|
2126
2142
|
value: s,
|
|
2127
2143
|
data: t
|
|
2128
|
-
},
|
|
2144
|
+
}, i);
|
|
2129
2145
|
}
|
|
2130
|
-
function
|
|
2131
|
-
var
|
|
2146
|
+
function br(n, e) {
|
|
2147
|
+
var u = n.focusedValue, i = n.selectValue, t = i.indexOf(u);
|
|
2132
2148
|
if (t > -1) {
|
|
2133
|
-
var r = e.indexOf(
|
|
2149
|
+
var r = e.indexOf(u);
|
|
2134
2150
|
if (r > -1)
|
|
2135
|
-
return
|
|
2151
|
+
return u;
|
|
2136
2152
|
if (t < e.length)
|
|
2137
2153
|
return e[t];
|
|
2138
2154
|
}
|
|
2139
2155
|
return null;
|
|
2140
2156
|
}
|
|
2141
|
-
function
|
|
2142
|
-
var
|
|
2143
|
-
return
|
|
2157
|
+
function Ir(n, e) {
|
|
2158
|
+
var u = n.focusedOption;
|
|
2159
|
+
return u && e.indexOf(u) > -1 ? u : e[0];
|
|
2144
2160
|
}
|
|
2145
|
-
var
|
|
2146
|
-
var
|
|
2147
|
-
return r.data ===
|
|
2148
|
-
})) === null ||
|
|
2161
|
+
var Ue = function(e, u) {
|
|
2162
|
+
var i, t = (i = e.find(function(r) {
|
|
2163
|
+
return r.data === u;
|
|
2164
|
+
})) === null || i === void 0 ? void 0 : i.id;
|
|
2149
2165
|
return t || null;
|
|
2150
|
-
},
|
|
2151
|
-
return e.getOptionLabel(
|
|
2152
|
-
},
|
|
2153
|
-
return e.getOptionValue(
|
|
2166
|
+
}, xn = function(e, u) {
|
|
2167
|
+
return e.getOptionLabel(u);
|
|
2168
|
+
}, Pe = function(e, u) {
|
|
2169
|
+
return e.getOptionValue(u);
|
|
2154
2170
|
};
|
|
2155
|
-
function
|
|
2156
|
-
return typeof n.isOptionDisabled == "function" ? n.isOptionDisabled(e,
|
|
2171
|
+
function yn(n, e, u) {
|
|
2172
|
+
return typeof n.isOptionDisabled == "function" ? n.isOptionDisabled(e, u) : !1;
|
|
2157
2173
|
}
|
|
2158
|
-
function
|
|
2159
|
-
if (
|
|
2174
|
+
function En(n, e, u) {
|
|
2175
|
+
if (u.indexOf(e) > -1) return !0;
|
|
2160
2176
|
if (typeof n.isOptionSelected == "function")
|
|
2161
|
-
return n.isOptionSelected(e,
|
|
2162
|
-
var
|
|
2163
|
-
return
|
|
2164
|
-
return
|
|
2177
|
+
return n.isOptionSelected(e, u);
|
|
2178
|
+
var i = Pe(n, e);
|
|
2179
|
+
return u.some(function(t) {
|
|
2180
|
+
return Pe(n, t) === i;
|
|
2165
2181
|
});
|
|
2166
2182
|
}
|
|
2167
|
-
function
|
|
2168
|
-
return n.filterOption ? n.filterOption(e,
|
|
2183
|
+
function Gn(n, e, u) {
|
|
2184
|
+
return n.filterOption ? n.filterOption(e, u) : !0;
|
|
2169
2185
|
}
|
|
2170
|
-
var
|
|
2171
|
-
var
|
|
2172
|
-
return
|
|
2173
|
-
},
|
|
2174
|
-
|
|
2175
|
-
var e =
|
|
2176
|
-
function i
|
|
2186
|
+
var Fn = function(e) {
|
|
2187
|
+
var u = e.hideSelectedOptions, i = e.isMulti;
|
|
2188
|
+
return u === void 0 ? i : u;
|
|
2189
|
+
}, mr = 1, Bn = /* @__PURE__ */ function(n) {
|
|
2190
|
+
Wi(u, n);
|
|
2191
|
+
var e = Zi(u);
|
|
2192
|
+
function u(i) {
|
|
2177
2193
|
var t;
|
|
2178
|
-
if (
|
|
2194
|
+
if (Vi(this, u), t = e.call(this, i), t.state = {
|
|
2179
2195
|
ariaSelection: null,
|
|
2180
2196
|
focusedOption: null,
|
|
2181
2197
|
focusedOptionId: null,
|
|
@@ -2189,7 +2205,7 @@ var fn = function(e) {
|
|
|
2189
2205
|
inputIsHiddenAfterUpdate: void 0,
|
|
2190
2206
|
prevProps: void 0,
|
|
2191
2207
|
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 =
|
|
2208
|
+
}, 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 = tr(), t.controlRef = null, t.getControlRef = function(a) {
|
|
2193
2209
|
t.controlRef = a;
|
|
2194
2210
|
}, t.focusedOptionRef = null, t.getFocusedOptionRef = function(a) {
|
|
2195
2211
|
t.focusedOptionRef = a;
|
|
@@ -2198,15 +2214,15 @@ var fn = function(e) {
|
|
|
2198
2214
|
}, t.inputRef = null, t.getInputRef = function(a) {
|
|
2199
2215
|
t.inputRef = a;
|
|
2200
2216
|
}, t.focus = t.focusInput, t.blur = t.blurInput, t.onChange = function(a, l) {
|
|
2201
|
-
var c = t.props, d = c.onChange,
|
|
2202
|
-
l.name =
|
|
2217
|
+
var c = t.props, d = c.onChange, g = c.name;
|
|
2218
|
+
l.name = g, t.ariaOnChange(a, l), d(a, l);
|
|
2203
2219
|
}, t.setValue = function(a, l, c) {
|
|
2204
|
-
var d = t.props,
|
|
2220
|
+
var d = t.props, g = d.closeMenuOnSelect, b = d.isMulti, f = d.inputValue;
|
|
2205
2221
|
t.onInputChange("", {
|
|
2206
2222
|
action: "set-value",
|
|
2207
|
-
prevInputValue:
|
|
2208
|
-
}),
|
|
2209
|
-
inputIsHiddenAfterUpdate: !
|
|
2223
|
+
prevInputValue: f
|
|
2224
|
+
}), g && (t.setState({
|
|
2225
|
+
inputIsHiddenAfterUpdate: !b
|
|
2210
2226
|
}), t.onMenuClose()), t.setState({
|
|
2211
2227
|
clearFocusValueOnUpdate: !0
|
|
2212
2228
|
}), t.onChange(a, {
|
|
@@ -2214,80 +2230,80 @@ var fn = function(e) {
|
|
|
2214
2230
|
option: c
|
|
2215
2231
|
});
|
|
2216
2232
|
}, t.selectOption = function(a) {
|
|
2217
|
-
var l = t.props, c = l.blurInputOnSelect, d = l.isMulti,
|
|
2218
|
-
if (
|
|
2219
|
-
var
|
|
2220
|
-
t.setValue(
|
|
2221
|
-
return t.getOptionValue(m) !==
|
|
2233
|
+
var l = t.props, c = l.blurInputOnSelect, d = l.isMulti, g = l.name, b = t.state.selectValue, f = d && t.isOptionSelected(a, b), I = t.isOptionDisabled(a, b);
|
|
2234
|
+
if (f) {
|
|
2235
|
+
var p = t.getOptionValue(a);
|
|
2236
|
+
t.setValue(b.filter(function(m) {
|
|
2237
|
+
return t.getOptionValue(m) !== p;
|
|
2222
2238
|
}), "deselect-option", a);
|
|
2223
|
-
} else if (!
|
|
2224
|
-
d ? t.setValue([].concat(
|
|
2239
|
+
} else if (!I)
|
|
2240
|
+
d ? t.setValue([].concat(rt(b), [a]), "select-option", a) : t.setValue(a, "select-option");
|
|
2225
2241
|
else {
|
|
2226
2242
|
t.ariaOnChange(a, {
|
|
2227
2243
|
action: "select-option",
|
|
2228
2244
|
option: a,
|
|
2229
|
-
name:
|
|
2245
|
+
name: g
|
|
2230
2246
|
});
|
|
2231
2247
|
return;
|
|
2232
2248
|
}
|
|
2233
2249
|
c && t.blurInput();
|
|
2234
2250
|
}, t.removeValue = function(a) {
|
|
2235
|
-
var l = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(a),
|
|
2236
|
-
return t.getOptionValue(
|
|
2237
|
-
}),
|
|
2238
|
-
t.onChange(
|
|
2251
|
+
var l = t.props.isMulti, c = t.state.selectValue, d = t.getOptionValue(a), g = c.filter(function(f) {
|
|
2252
|
+
return t.getOptionValue(f) !== d;
|
|
2253
|
+
}), b = Te(l, g, g[0] || null);
|
|
2254
|
+
t.onChange(b, {
|
|
2239
2255
|
action: "remove-value",
|
|
2240
2256
|
removedValue: a
|
|
2241
2257
|
}), t.focusInput();
|
|
2242
2258
|
}, t.clearValue = function() {
|
|
2243
2259
|
var a = t.state.selectValue;
|
|
2244
|
-
t.onChange(
|
|
2260
|
+
t.onChange(Te(t.props.isMulti, [], null), {
|
|
2245
2261
|
action: "clear",
|
|
2246
2262
|
removedValues: a
|
|
2247
2263
|
});
|
|
2248
2264
|
}, 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),
|
|
2250
|
-
c && t.onChange(
|
|
2265
|
+
var a = t.props.isMulti, l = t.state.selectValue, c = l[l.length - 1], d = l.slice(0, l.length - 1), g = Te(a, d, d[0] || null);
|
|
2266
|
+
c && t.onChange(g, {
|
|
2251
2267
|
action: "pop-value",
|
|
2252
2268
|
removedValue: c
|
|
2253
2269
|
});
|
|
2254
2270
|
}, t.getFocusedOptionId = function(a) {
|
|
2255
|
-
return
|
|
2271
|
+
return Ue(t.state.focusableOptionsWithIds, a);
|
|
2256
2272
|
}, t.getFocusableOptionsWithIds = function() {
|
|
2257
|
-
return
|
|
2273
|
+
return Mt(Se(t.props, t.state.selectValue), t.getElementId("option"));
|
|
2258
2274
|
}, t.getValue = function() {
|
|
2259
2275
|
return t.state.selectValue;
|
|
2260
2276
|
}, t.cx = function() {
|
|
2261
2277
|
for (var a = arguments.length, l = new Array(a), c = 0; c < a; c++)
|
|
2262
2278
|
l[c] = arguments[c];
|
|
2263
|
-
return
|
|
2279
|
+
return tu.apply(void 0, [t.props.classNamePrefix].concat(l));
|
|
2264
2280
|
}, t.getOptionLabel = function(a) {
|
|
2265
|
-
return
|
|
2281
|
+
return xn(t.props, a);
|
|
2266
2282
|
}, t.getOptionValue = function(a) {
|
|
2267
|
-
return
|
|
2283
|
+
return Pe(t.props, a);
|
|
2268
2284
|
}, t.getStyles = function(a, l) {
|
|
2269
|
-
var c = t.props.unstyled, d =
|
|
2285
|
+
var c = t.props.unstyled, d = rr[a](l, c);
|
|
2270
2286
|
d.boxSizing = "border-box";
|
|
2271
|
-
var
|
|
2272
|
-
return
|
|
2287
|
+
var g = t.props.styles[a];
|
|
2288
|
+
return g ? g(d, l) : d;
|
|
2273
2289
|
}, t.getClassNames = function(a, l) {
|
|
2274
2290
|
var c, d;
|
|
2275
2291
|
return (c = (d = t.props.classNames)[a]) === null || c === void 0 ? void 0 : c.call(d, l);
|
|
2276
2292
|
}, t.getElementId = function(a) {
|
|
2277
2293
|
return "".concat(t.state.instancePrefix, "-").concat(a);
|
|
2278
2294
|
}, t.getComponents = function() {
|
|
2279
|
-
return
|
|
2295
|
+
return Ga(t.props);
|
|
2280
2296
|
}, t.buildCategorizedOptions = function() {
|
|
2281
|
-
return
|
|
2297
|
+
return Se(t.props, t.state.selectValue);
|
|
2282
2298
|
}, t.getCategorizedOptions = function() {
|
|
2283
2299
|
return t.props.menuIsOpen ? t.buildCategorizedOptions() : [];
|
|
2284
2300
|
}, t.buildFocusableOptions = function() {
|
|
2285
|
-
return
|
|
2301
|
+
return An(t.buildCategorizedOptions());
|
|
2286
2302
|
}, t.getFocusableOptions = function() {
|
|
2287
2303
|
return t.props.menuIsOpen ? t.buildFocusableOptions() : [];
|
|
2288
2304
|
}, t.ariaOnChange = function(a, l) {
|
|
2289
2305
|
t.setState({
|
|
2290
|
-
ariaSelection:
|
|
2306
|
+
ariaSelection: E({
|
|
2291
2307
|
value: a
|
|
2292
2308
|
}, l)
|
|
2293
2309
|
});
|
|
@@ -2312,7 +2328,7 @@ var fn = function(e) {
|
|
|
2312
2328
|
return t.focusInput();
|
|
2313
2329
|
}));
|
|
2314
2330
|
}, t.onScroll = function(a) {
|
|
2315
|
-
typeof t.props.closeMenuOnScroll == "boolean" ? a.target instanceof HTMLElement &&
|
|
2331
|
+
typeof t.props.closeMenuOnScroll == "boolean" ? a.target instanceof HTMLElement && Le(a.target) && t.props.onMenuClose() : typeof t.props.closeMenuOnScroll == "function" && t.props.closeMenuOnScroll(a) && t.props.onMenuClose();
|
|
2316
2332
|
}, t.onCompositionStart = function() {
|
|
2317
2333
|
t.isComposing = !0;
|
|
2318
2334
|
}, t.onCompositionEnd = function() {
|
|
@@ -2323,8 +2339,8 @@ var fn = function(e) {
|
|
|
2323
2339
|
}, t.onTouchMove = function(a) {
|
|
2324
2340
|
var l = a.touches, c = l && l.item(0);
|
|
2325
2341
|
if (c) {
|
|
2326
|
-
var d = Math.abs(c.clientX - t.initialTouchX),
|
|
2327
|
-
t.userIsDragging = d >
|
|
2342
|
+
var d = Math.abs(c.clientX - t.initialTouchX), g = Math.abs(c.clientY - t.initialTouchY), b = 5;
|
|
2343
|
+
t.userIsDragging = d > b || g > b;
|
|
2328
2344
|
}
|
|
2329
2345
|
}, t.onTouchEnd = function(a) {
|
|
2330
2346
|
t.userIsDragging || (t.controlRef && !t.controlRef.contains(a.target) && t.menuListRef && !t.menuListRef.contains(a.target) && t.blurInput(), t.initialTouchX = 0, t.initialTouchY = 0);
|
|
@@ -2369,85 +2385,85 @@ var fn = function(e) {
|
|
|
2369
2385
|
});
|
|
2370
2386
|
}
|
|
2371
2387
|
}, t.shouldHideSelectedOptions = function() {
|
|
2372
|
-
return
|
|
2388
|
+
return Fn(t.props);
|
|
2373
2389
|
}, t.onValueInputFocus = function(a) {
|
|
2374
2390
|
a.preventDefault(), a.stopPropagation(), t.focus();
|
|
2375
2391
|
}, t.onKeyDown = function(a) {
|
|
2376
|
-
var l = t.props, c = l.isMulti, d = l.backspaceRemovesValue,
|
|
2377
|
-
if (!
|
|
2392
|
+
var l = t.props, c = l.isMulti, d = l.backspaceRemovesValue, g = l.escapeClearsValue, b = l.inputValue, f = l.isClearable, I = l.isDisabled, p = l.menuIsOpen, m = l.onKeyDown, A = l.tabSelectsValue, C = l.openMenuOnFocus, T = t.state, V = T.focusedOption, x = T.focusedValue, S = T.selectValue;
|
|
2393
|
+
if (!I && !(typeof m == "function" && (m(a), a.defaultPrevented))) {
|
|
2378
2394
|
switch (t.blockOptionHover = !0, a.key) {
|
|
2379
2395
|
case "ArrowLeft":
|
|
2380
|
-
if (!c ||
|
|
2396
|
+
if (!c || b) return;
|
|
2381
2397
|
t.focusValue("previous");
|
|
2382
2398
|
break;
|
|
2383
2399
|
case "ArrowRight":
|
|
2384
|
-
if (!c ||
|
|
2400
|
+
if (!c || b) return;
|
|
2385
2401
|
t.focusValue("next");
|
|
2386
2402
|
break;
|
|
2387
2403
|
case "Delete":
|
|
2388
2404
|
case "Backspace":
|
|
2389
|
-
if (
|
|
2390
|
-
if (
|
|
2391
|
-
t.removeValue(
|
|
2405
|
+
if (b) return;
|
|
2406
|
+
if (x)
|
|
2407
|
+
t.removeValue(x);
|
|
2392
2408
|
else {
|
|
2393
2409
|
if (!d) return;
|
|
2394
|
-
c ? t.popValue() :
|
|
2410
|
+
c ? t.popValue() : f && t.clearValue();
|
|
2395
2411
|
}
|
|
2396
2412
|
break;
|
|
2397
2413
|
case "Tab":
|
|
2398
|
-
if (t.isComposing || a.shiftKey || !
|
|
2414
|
+
if (t.isComposing || a.shiftKey || !p || !A || !V || // don't capture the event if the menu opens on focus and the focused
|
|
2399
2415
|
// option is already selected; it breaks the flow of navigation
|
|
2400
|
-
|
|
2416
|
+
C && t.isOptionSelected(V, S))
|
|
2401
2417
|
return;
|
|
2402
|
-
t.selectOption(
|
|
2418
|
+
t.selectOption(V);
|
|
2403
2419
|
break;
|
|
2404
2420
|
case "Enter":
|
|
2405
2421
|
if (a.keyCode === 229)
|
|
2406
2422
|
break;
|
|
2407
|
-
if (
|
|
2408
|
-
if (!
|
|
2409
|
-
t.selectOption(
|
|
2423
|
+
if (p) {
|
|
2424
|
+
if (!V || t.isComposing) return;
|
|
2425
|
+
t.selectOption(V);
|
|
2410
2426
|
break;
|
|
2411
2427
|
}
|
|
2412
2428
|
return;
|
|
2413
2429
|
case "Escape":
|
|
2414
|
-
|
|
2430
|
+
p ? (t.setState({
|
|
2415
2431
|
inputIsHiddenAfterUpdate: !1
|
|
2416
2432
|
}), t.onInputChange("", {
|
|
2417
2433
|
action: "menu-close",
|
|
2418
|
-
prevInputValue:
|
|
2419
|
-
}), t.onMenuClose()) :
|
|
2434
|
+
prevInputValue: b
|
|
2435
|
+
}), t.onMenuClose()) : f && g && t.clearValue();
|
|
2420
2436
|
break;
|
|
2421
2437
|
case " ":
|
|
2422
|
-
if (
|
|
2438
|
+
if (b)
|
|
2423
2439
|
return;
|
|
2424
|
-
if (!
|
|
2440
|
+
if (!p) {
|
|
2425
2441
|
t.openMenu("first");
|
|
2426
2442
|
break;
|
|
2427
2443
|
}
|
|
2428
|
-
if (!
|
|
2429
|
-
t.selectOption(
|
|
2444
|
+
if (!V) return;
|
|
2445
|
+
t.selectOption(V);
|
|
2430
2446
|
break;
|
|
2431
2447
|
case "ArrowUp":
|
|
2432
|
-
|
|
2448
|
+
p ? t.focusOption("up") : t.openMenu("last");
|
|
2433
2449
|
break;
|
|
2434
2450
|
case "ArrowDown":
|
|
2435
|
-
|
|
2451
|
+
p ? t.focusOption("down") : t.openMenu("first");
|
|
2436
2452
|
break;
|
|
2437
2453
|
case "PageUp":
|
|
2438
|
-
if (!
|
|
2454
|
+
if (!p) return;
|
|
2439
2455
|
t.focusOption("pageup");
|
|
2440
2456
|
break;
|
|
2441
2457
|
case "PageDown":
|
|
2442
|
-
if (!
|
|
2458
|
+
if (!p) return;
|
|
2443
2459
|
t.focusOption("pagedown");
|
|
2444
2460
|
break;
|
|
2445
2461
|
case "Home":
|
|
2446
|
-
if (!
|
|
2462
|
+
if (!p) return;
|
|
2447
2463
|
t.focusOption("first");
|
|
2448
2464
|
break;
|
|
2449
2465
|
case "End":
|
|
2450
|
-
if (!
|
|
2466
|
+
if (!p) return;
|
|
2451
2467
|
t.focusOption("last");
|
|
2452
2468
|
break;
|
|
2453
2469
|
default:
|
|
@@ -2455,16 +2471,16 @@ var fn = function(e) {
|
|
|
2455
2471
|
}
|
|
2456
2472
|
a.preventDefault();
|
|
2457
2473
|
}
|
|
2458
|
-
}, t.state.instancePrefix = "react-select-" + (t.props.instanceId || ++
|
|
2474
|
+
}, t.state.instancePrefix = "react-select-" + (t.props.instanceId || ++mr), t.state.selectValue = Bt(i.value), i.menuIsOpen && t.state.selectValue.length) {
|
|
2459
2475
|
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 =
|
|
2476
|
+
t.state.focusableOptionsWithIds = r, t.state.focusedOption = o[s], t.state.focusedOptionId = Ue(r, o[s]);
|
|
2461
2477
|
}
|
|
2462
2478
|
return t;
|
|
2463
2479
|
}
|
|
2464
|
-
return
|
|
2480
|
+
return Ri(u, [{
|
|
2465
2481
|
key: "componentDidMount",
|
|
2466
2482
|
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 &&
|
|
2483
|
+
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 && Tt(this.menuListRef, this.focusedOptionRef);
|
|
2468
2484
|
}
|
|
2469
2485
|
}, {
|
|
2470
2486
|
key: "componentDidUpdate",
|
|
@@ -2476,7 +2492,7 @@ var fn = function(e) {
|
|
|
2476
2492
|
isFocused: !1
|
|
2477
2493
|
}, this.onMenuClose) : !a && !o && t.isDisabled && this.inputRef === document.activeElement && this.setState({
|
|
2478
2494
|
isFocused: !0
|
|
2479
|
-
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (
|
|
2495
|
+
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (Tt(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
|
|
2480
2496
|
}
|
|
2481
2497
|
}, {
|
|
2482
2498
|
key: "componentWillUnmount",
|
|
@@ -2582,23 +2598,23 @@ var fn = function(e) {
|
|
|
2582
2598
|
// Getters
|
|
2583
2599
|
// ==============================
|
|
2584
2600
|
function() {
|
|
2585
|
-
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(
|
|
2601
|
+
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(ze) : E(E({}, ze), this.props.theme) : ze;
|
|
2586
2602
|
}
|
|
2587
2603
|
)
|
|
2588
2604
|
}, {
|
|
2589
2605
|
key: "getCommonProps",
|
|
2590
2606
|
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,
|
|
2607
|
+
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, g = d.isMulti, b = d.isRtl, f = d.options, I = this.hasValue();
|
|
2592
2608
|
return {
|
|
2593
2609
|
clearValue: t,
|
|
2594
2610
|
cx: r,
|
|
2595
2611
|
getStyles: o,
|
|
2596
2612
|
getClassNames: s,
|
|
2597
2613
|
getValue: a,
|
|
2598
|
-
hasValue:
|
|
2599
|
-
isMulti:
|
|
2600
|
-
isRtl:
|
|
2601
|
-
options:
|
|
2614
|
+
hasValue: I,
|
|
2615
|
+
isMulti: g,
|
|
2616
|
+
isRtl: b,
|
|
2617
|
+
options: f,
|
|
2602
2618
|
selectOption: l,
|
|
2603
2619
|
selectProps: d,
|
|
2604
2620
|
setValue: c,
|
|
@@ -2625,17 +2641,17 @@ var fn = function(e) {
|
|
|
2625
2641
|
}, {
|
|
2626
2642
|
key: "isOptionDisabled",
|
|
2627
2643
|
value: function(t, r) {
|
|
2628
|
-
return
|
|
2644
|
+
return yn(this.props, t, r);
|
|
2629
2645
|
}
|
|
2630
2646
|
}, {
|
|
2631
2647
|
key: "isOptionSelected",
|
|
2632
2648
|
value: function(t, r) {
|
|
2633
|
-
return
|
|
2649
|
+
return En(this.props, t, r);
|
|
2634
2650
|
}
|
|
2635
2651
|
}, {
|
|
2636
2652
|
key: "filterOption",
|
|
2637
2653
|
value: function(t, r) {
|
|
2638
|
-
return
|
|
2654
|
+
return Gn(this.props, t, r);
|
|
2639
2655
|
}
|
|
2640
2656
|
}, {
|
|
2641
2657
|
key: "formatOptionLabel",
|
|
@@ -2695,7 +2711,7 @@ var fn = function(e) {
|
|
|
2695
2711
|
// Renderers
|
|
2696
2712
|
// ==============================
|
|
2697
2713
|
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,
|
|
2714
|
+
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, g = t.required, b = this.getComponents(), f = b.Input, I = this.state, p = I.inputIsHidden, m = I.ariaSelection, A = this.commonProps, C = s || this.getElementId("input"), T = E(E(E({
|
|
2699
2715
|
"aria-autocomplete": "list",
|
|
2700
2716
|
"aria-expanded": d,
|
|
2701
2717
|
"aria-haspopup": !0,
|
|
@@ -2703,7 +2719,7 @@ var fn = function(e) {
|
|
|
2703
2719
|
"aria-invalid": this.props["aria-invalid"],
|
|
2704
2720
|
"aria-label": this.props["aria-label"],
|
|
2705
2721
|
"aria-labelledby": this.props["aria-labelledby"],
|
|
2706
|
-
"aria-required":
|
|
2722
|
+
"aria-required": g,
|
|
2707
2723
|
role: "combobox",
|
|
2708
2724
|
"aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
2709
2725
|
}, d && {
|
|
@@ -2715,14 +2731,14 @@ var fn = function(e) {
|
|
|
2715
2731
|
} : {
|
|
2716
2732
|
"aria-describedby": this.getElementId("placeholder")
|
|
2717
2733
|
});
|
|
2718
|
-
return o ? /* @__PURE__ */
|
|
2734
|
+
return o ? /* @__PURE__ */ R.createElement(f, G({}, A, {
|
|
2719
2735
|
autoCapitalize: "none",
|
|
2720
2736
|
autoComplete: "off",
|
|
2721
2737
|
autoCorrect: "off",
|
|
2722
|
-
id:
|
|
2738
|
+
id: C,
|
|
2723
2739
|
innerRef: this.getInputRef,
|
|
2724
2740
|
isDisabled: r,
|
|
2725
|
-
isHidden:
|
|
2741
|
+
isHidden: p,
|
|
2726
2742
|
onBlur: this.onInputBlur,
|
|
2727
2743
|
onChange: this.handleInputChange,
|
|
2728
2744
|
onFocus: this.onInputFocus,
|
|
@@ -2731,66 +2747,66 @@ var fn = function(e) {
|
|
|
2731
2747
|
form: c,
|
|
2732
2748
|
type: "text",
|
|
2733
2749
|
value: a
|
|
2734
|
-
},
|
|
2735
|
-
id:
|
|
2750
|
+
}, T)) : /* @__PURE__ */ R.createElement(Da, G({
|
|
2751
|
+
id: C,
|
|
2736
2752
|
innerRef: this.getInputRef,
|
|
2737
2753
|
onBlur: this.onInputBlur,
|
|
2738
|
-
onChange:
|
|
2754
|
+
onChange: Ze,
|
|
2739
2755
|
onFocus: this.onInputFocus,
|
|
2740
2756
|
disabled: r,
|
|
2741
2757
|
tabIndex: l,
|
|
2742
2758
|
inputMode: "none",
|
|
2743
2759
|
form: c,
|
|
2744
2760
|
value: ""
|
|
2745
|
-
},
|
|
2761
|
+
}, T));
|
|
2746
2762
|
}
|
|
2747
2763
|
)
|
|
2748
2764
|
}, {
|
|
2749
2765
|
key: "renderPlaceholderOrValue",
|
|
2750
2766
|
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,
|
|
2752
|
-
if (!this.hasValue() || !
|
|
2753
|
-
return m ? null : /* @__PURE__ */
|
|
2767
|
+
var t = this, r = this.getComponents(), o = r.MultiValue, s = r.MultiValueContainer, a = r.MultiValueLabel, l = r.MultiValueRemove, c = r.SingleValue, d = r.Placeholder, g = this.commonProps, b = this.props, f = b.controlShouldRenderValue, I = b.isDisabled, p = b.isMulti, m = b.inputValue, A = b.placeholder, C = this.state, T = C.selectValue, V = C.focusedValue, x = C.isFocused;
|
|
2768
|
+
if (!this.hasValue() || !f)
|
|
2769
|
+
return m ? null : /* @__PURE__ */ R.createElement(d, G({}, g, {
|
|
2754
2770
|
key: "placeholder",
|
|
2755
|
-
isDisabled:
|
|
2756
|
-
isFocused:
|
|
2771
|
+
isDisabled: I,
|
|
2772
|
+
isFocused: x,
|
|
2757
2773
|
innerProps: {
|
|
2758
2774
|
id: this.getElementId("placeholder")
|
|
2759
2775
|
}
|
|
2760
|
-
}),
|
|
2761
|
-
if (
|
|
2762
|
-
return
|
|
2763
|
-
var
|
|
2764
|
-
return /* @__PURE__ */
|
|
2776
|
+
}), A);
|
|
2777
|
+
if (p)
|
|
2778
|
+
return T.map(function(h, B) {
|
|
2779
|
+
var W = h === V, N = "".concat(t.getOptionLabel(h), "-").concat(t.getOptionValue(h));
|
|
2780
|
+
return /* @__PURE__ */ R.createElement(o, G({}, g, {
|
|
2765
2781
|
components: {
|
|
2766
2782
|
Container: s,
|
|
2767
2783
|
Label: a,
|
|
2768
2784
|
Remove: l
|
|
2769
2785
|
},
|
|
2770
|
-
isFocused:
|
|
2771
|
-
isDisabled:
|
|
2772
|
-
key:
|
|
2773
|
-
index:
|
|
2786
|
+
isFocused: W,
|
|
2787
|
+
isDisabled: I,
|
|
2788
|
+
key: N,
|
|
2789
|
+
index: B,
|
|
2774
2790
|
removeProps: {
|
|
2775
2791
|
onClick: function() {
|
|
2776
|
-
return t.removeValue(
|
|
2792
|
+
return t.removeValue(h);
|
|
2777
2793
|
},
|
|
2778
2794
|
onTouchEnd: function() {
|
|
2779
|
-
return t.removeValue(
|
|
2795
|
+
return t.removeValue(h);
|
|
2780
2796
|
},
|
|
2781
|
-
onMouseDown: function(
|
|
2782
|
-
|
|
2797
|
+
onMouseDown: function(Q) {
|
|
2798
|
+
Q.preventDefault();
|
|
2783
2799
|
}
|
|
2784
2800
|
},
|
|
2785
|
-
data:
|
|
2786
|
-
}), t.formatOptionLabel(
|
|
2801
|
+
data: h
|
|
2802
|
+
}), t.formatOptionLabel(h, "value"));
|
|
2787
2803
|
});
|
|
2788
2804
|
if (m)
|
|
2789
2805
|
return null;
|
|
2790
|
-
var S =
|
|
2791
|
-
return /* @__PURE__ */
|
|
2806
|
+
var S = T[0];
|
|
2807
|
+
return /* @__PURE__ */ R.createElement(c, G({}, g, {
|
|
2792
2808
|
data: S,
|
|
2793
|
-
isDisabled:
|
|
2809
|
+
isDisabled: I
|
|
2794
2810
|
}), this.formatOptionLabel(S, "value"));
|
|
2795
2811
|
}
|
|
2796
2812
|
}, {
|
|
@@ -2804,7 +2820,7 @@ var fn = function(e) {
|
|
|
2804
2820
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
2805
2821
|
"aria-hidden": "true"
|
|
2806
2822
|
};
|
|
2807
|
-
return /* @__PURE__ */
|
|
2823
|
+
return /* @__PURE__ */ R.createElement(r, G({}, o, {
|
|
2808
2824
|
innerProps: d,
|
|
2809
2825
|
isFocused: c
|
|
2810
2826
|
}));
|
|
@@ -2817,7 +2833,7 @@ var fn = function(e) {
|
|
|
2817
2833
|
var d = {
|
|
2818
2834
|
"aria-hidden": "true"
|
|
2819
2835
|
};
|
|
2820
|
-
return /* @__PURE__ */
|
|
2836
|
+
return /* @__PURE__ */ R.createElement(r, G({}, o, {
|
|
2821
2837
|
innerProps: d,
|
|
2822
2838
|
isDisabled: a,
|
|
2823
2839
|
isFocused: c
|
|
@@ -2829,7 +2845,7 @@ var fn = function(e) {
|
|
|
2829
2845
|
var t = this.getComponents(), r = t.DropdownIndicator, o = t.IndicatorSeparator;
|
|
2830
2846
|
if (!r || !o) return null;
|
|
2831
2847
|
var s = this.commonProps, a = this.props.isDisabled, l = this.state.isFocused;
|
|
2832
|
-
return /* @__PURE__ */
|
|
2848
|
+
return /* @__PURE__ */ R.createElement(o, G({}, s, {
|
|
2833
2849
|
isDisabled: a,
|
|
2834
2850
|
isFocused: l
|
|
2835
2851
|
}));
|
|
@@ -2844,7 +2860,7 @@ var fn = function(e) {
|
|
|
2844
2860
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
2845
2861
|
"aria-hidden": "true"
|
|
2846
2862
|
};
|
|
2847
|
-
return /* @__PURE__ */
|
|
2863
|
+
return /* @__PURE__ */ R.createElement(r, G({}, o, {
|
|
2848
2864
|
innerProps: l,
|
|
2849
2865
|
isDisabled: s,
|
|
2850
2866
|
isFocused: a
|
|
@@ -2853,154 +2869,154 @@ var fn = function(e) {
|
|
|
2853
2869
|
}, {
|
|
2854
2870
|
key: "renderMenu",
|
|
2855
2871
|
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,
|
|
2872
|
+
var t = this, r = this.getComponents(), o = r.Group, s = r.GroupHeading, a = r.Menu, l = r.MenuList, c = r.MenuPortal, d = r.LoadingMessage, g = r.NoOptionsMessage, b = r.Option, f = this.commonProps, I = this.state.focusedOption, p = this.props, m = p.captureMenuScroll, A = p.inputValue, C = p.isLoading, T = p.loadingMessage, V = p.minMenuHeight, x = p.maxMenuHeight, S = p.menuIsOpen, h = p.menuPlacement, B = p.menuPosition, W = p.menuPortalTarget, N = p.menuShouldBlockScroll, L = p.menuShouldScrollIntoView, Q = p.noOptionsMessage, _ = p.onMenuScrollToTop, H = p.onMenuScrollToBottom;
|
|
2857
2873
|
if (!S) return null;
|
|
2858
|
-
var
|
|
2859
|
-
var
|
|
2860
|
-
return t.onOptionHover(
|
|
2861
|
-
},
|
|
2862
|
-
return t.selectOption(
|
|
2863
|
-
},
|
|
2864
|
-
id:
|
|
2865
|
-
onClick:
|
|
2866
|
-
onMouseMove:
|
|
2867
|
-
onMouseOver:
|
|
2874
|
+
var w = function(M, K) {
|
|
2875
|
+
var le = M.type, Y = M.data, se = M.isDisabled, $ = M.isSelected, Ee = M.label, Wn = M.value, gt = I === Y, pt = se ? void 0 : function() {
|
|
2876
|
+
return t.onOptionHover(Y);
|
|
2877
|
+
}, Nn = se ? void 0 : function() {
|
|
2878
|
+
return t.selectOption(Y);
|
|
2879
|
+
}, bt = "".concat(t.getElementId("option"), "-").concat(K), Xn = {
|
|
2880
|
+
id: bt,
|
|
2881
|
+
onClick: Nn,
|
|
2882
|
+
onMouseMove: pt,
|
|
2883
|
+
onMouseOver: pt,
|
|
2868
2884
|
tabIndex: -1,
|
|
2869
2885
|
role: "option",
|
|
2870
|
-
"aria-selected": t.isAppleDevice ? void 0 :
|
|
2886
|
+
"aria-selected": t.isAppleDevice ? void 0 : $
|
|
2871
2887
|
// is not supported on Apple devices
|
|
2872
2888
|
};
|
|
2873
|
-
return /* @__PURE__ */
|
|
2874
|
-
innerProps:
|
|
2875
|
-
data:
|
|
2876
|
-
isDisabled:
|
|
2877
|
-
isSelected:
|
|
2878
|
-
key:
|
|
2879
|
-
label:
|
|
2880
|
-
type:
|
|
2881
|
-
value:
|
|
2882
|
-
isFocused:
|
|
2883
|
-
innerRef:
|
|
2884
|
-
}), t.formatOptionLabel(
|
|
2885
|
-
},
|
|
2889
|
+
return /* @__PURE__ */ R.createElement(b, G({}, f, {
|
|
2890
|
+
innerProps: Xn,
|
|
2891
|
+
data: Y,
|
|
2892
|
+
isDisabled: se,
|
|
2893
|
+
isSelected: $,
|
|
2894
|
+
key: bt,
|
|
2895
|
+
label: Ee,
|
|
2896
|
+
type: le,
|
|
2897
|
+
value: Wn,
|
|
2898
|
+
isFocused: gt,
|
|
2899
|
+
innerRef: gt ? t.getFocusedOptionRef : void 0
|
|
2900
|
+
}), t.formatOptionLabel(M.data, "menu"));
|
|
2901
|
+
}, z;
|
|
2886
2902
|
if (this.hasOptions())
|
|
2887
|
-
|
|
2888
|
-
if (
|
|
2889
|
-
var
|
|
2890
|
-
return /* @__PURE__ */
|
|
2891
|
-
key:
|
|
2892
|
-
data:
|
|
2893
|
-
options:
|
|
2903
|
+
z = this.getCategorizedOptions().map(function(P) {
|
|
2904
|
+
if (P.type === "group") {
|
|
2905
|
+
var M = P.data, K = P.options, le = P.index, Y = "".concat(t.getElementId("group"), "-").concat(le), se = "".concat(Y, "-heading");
|
|
2906
|
+
return /* @__PURE__ */ R.createElement(o, G({}, f, {
|
|
2907
|
+
key: Y,
|
|
2908
|
+
data: M,
|
|
2909
|
+
options: K,
|
|
2894
2910
|
Heading: s,
|
|
2895
2911
|
headingProps: {
|
|
2896
|
-
id:
|
|
2897
|
-
data:
|
|
2912
|
+
id: se,
|
|
2913
|
+
data: P.data
|
|
2898
2914
|
},
|
|
2899
|
-
label: t.formatGroupLabel(
|
|
2900
|
-
}),
|
|
2901
|
-
return
|
|
2915
|
+
label: t.formatGroupLabel(P.data)
|
|
2916
|
+
}), P.options.map(function($) {
|
|
2917
|
+
return w($, "".concat(le, "-").concat($.index));
|
|
2902
2918
|
}));
|
|
2903
|
-
} else if (
|
|
2904
|
-
return
|
|
2919
|
+
} else if (P.type === "option")
|
|
2920
|
+
return w(P, "".concat(P.index));
|
|
2905
2921
|
});
|
|
2906
|
-
else if (
|
|
2907
|
-
var k =
|
|
2908
|
-
inputValue:
|
|
2922
|
+
else if (C) {
|
|
2923
|
+
var k = T({
|
|
2924
|
+
inputValue: A
|
|
2909
2925
|
});
|
|
2910
2926
|
if (k === null) return null;
|
|
2911
|
-
|
|
2927
|
+
z = /* @__PURE__ */ R.createElement(d, f, k);
|
|
2912
2928
|
} else {
|
|
2913
|
-
var
|
|
2914
|
-
inputValue:
|
|
2929
|
+
var re = Q({
|
|
2930
|
+
inputValue: A
|
|
2915
2931
|
});
|
|
2916
|
-
if (
|
|
2917
|
-
|
|
2932
|
+
if (re === null) return null;
|
|
2933
|
+
z = /* @__PURE__ */ R.createElement(g, f, re);
|
|
2918
2934
|
}
|
|
2919
|
-
var
|
|
2920
|
-
minMenuHeight:
|
|
2921
|
-
maxMenuHeight:
|
|
2922
|
-
menuPlacement:
|
|
2923
|
-
menuPosition:
|
|
2924
|
-
menuShouldScrollIntoView:
|
|
2925
|
-
},
|
|
2926
|
-
var
|
|
2927
|
-
return /* @__PURE__ */
|
|
2928
|
-
innerRef:
|
|
2935
|
+
var oe = {
|
|
2936
|
+
minMenuHeight: V,
|
|
2937
|
+
maxMenuHeight: x,
|
|
2938
|
+
menuPlacement: h,
|
|
2939
|
+
menuPosition: B,
|
|
2940
|
+
menuShouldScrollIntoView: L
|
|
2941
|
+
}, ye = /* @__PURE__ */ R.createElement(hu, G({}, f, oe), function(P) {
|
|
2942
|
+
var M = P.ref, K = P.placerProps, le = K.placement, Y = K.maxHeight;
|
|
2943
|
+
return /* @__PURE__ */ R.createElement(a, G({}, f, oe, {
|
|
2944
|
+
innerRef: M,
|
|
2929
2945
|
innerProps: {
|
|
2930
2946
|
onMouseDown: t.onMenuMouseDown,
|
|
2931
2947
|
onMouseMove: t.onMenuMouseMove
|
|
2932
2948
|
},
|
|
2933
|
-
isLoading:
|
|
2934
|
-
placement:
|
|
2935
|
-
}), /* @__PURE__ */
|
|
2949
|
+
isLoading: C,
|
|
2950
|
+
placement: le
|
|
2951
|
+
}), /* @__PURE__ */ R.createElement(za, {
|
|
2936
2952
|
captureEnabled: m,
|
|
2937
|
-
onTopArrive:
|
|
2938
|
-
onBottomArrive:
|
|
2939
|
-
lockEnabled:
|
|
2940
|
-
}, function(
|
|
2941
|
-
return /* @__PURE__ */
|
|
2942
|
-
innerRef: function(
|
|
2943
|
-
t.getMenuListRef(
|
|
2953
|
+
onTopArrive: _,
|
|
2954
|
+
onBottomArrive: H,
|
|
2955
|
+
lockEnabled: N
|
|
2956
|
+
}, function(se) {
|
|
2957
|
+
return /* @__PURE__ */ R.createElement(l, G({}, f, {
|
|
2958
|
+
innerRef: function(Ee) {
|
|
2959
|
+
t.getMenuListRef(Ee), se(Ee);
|
|
2944
2960
|
},
|
|
2945
2961
|
innerProps: {
|
|
2946
2962
|
role: "listbox",
|
|
2947
|
-
"aria-multiselectable":
|
|
2963
|
+
"aria-multiselectable": f.isMulti,
|
|
2948
2964
|
id: t.getElementId("listbox")
|
|
2949
2965
|
},
|
|
2950
|
-
isLoading:
|
|
2951
|
-
maxHeight:
|
|
2952
|
-
focusedOption:
|
|
2953
|
-
}),
|
|
2966
|
+
isLoading: C,
|
|
2967
|
+
maxHeight: Y,
|
|
2968
|
+
focusedOption: I
|
|
2969
|
+
}), z);
|
|
2954
2970
|
}));
|
|
2955
2971
|
});
|
|
2956
|
-
return
|
|
2957
|
-
appendTo:
|
|
2972
|
+
return W || B === "fixed" ? /* @__PURE__ */ R.createElement(c, G({}, f, {
|
|
2973
|
+
appendTo: W,
|
|
2958
2974
|
controlElement: this.controlRef,
|
|
2959
|
-
menuPlacement:
|
|
2960
|
-
menuPosition:
|
|
2961
|
-
}),
|
|
2975
|
+
menuPlacement: h,
|
|
2976
|
+
menuPosition: B
|
|
2977
|
+
}), ye) : ye;
|
|
2962
2978
|
}
|
|
2963
2979
|
}, {
|
|
2964
2980
|
key: "renderFormField",
|
|
2965
2981
|
value: function() {
|
|
2966
2982
|
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
2983
|
if (c && !this.hasValue() && !s)
|
|
2968
|
-
return /* @__PURE__ */
|
|
2984
|
+
return /* @__PURE__ */ R.createElement(Ka, {
|
|
2969
2985
|
name: l,
|
|
2970
2986
|
onFocus: this.onValueInputFocus
|
|
2971
2987
|
});
|
|
2972
2988
|
if (!(!l || s))
|
|
2973
2989
|
if (a)
|
|
2974
2990
|
if (o) {
|
|
2975
|
-
var
|
|
2976
|
-
return t.getOptionValue(
|
|
2991
|
+
var g = d.map(function(I) {
|
|
2992
|
+
return t.getOptionValue(I);
|
|
2977
2993
|
}).join(o);
|
|
2978
|
-
return /* @__PURE__ */
|
|
2994
|
+
return /* @__PURE__ */ R.createElement("input", {
|
|
2979
2995
|
name: l,
|
|
2980
2996
|
type: "hidden",
|
|
2981
|
-
value:
|
|
2997
|
+
value: g
|
|
2982
2998
|
});
|
|
2983
2999
|
} else {
|
|
2984
|
-
var
|
|
2985
|
-
return /* @__PURE__ */
|
|
2986
|
-
key: "i-".concat(
|
|
3000
|
+
var b = d.length > 0 ? d.map(function(I, p) {
|
|
3001
|
+
return /* @__PURE__ */ R.createElement("input", {
|
|
3002
|
+
key: "i-".concat(p),
|
|
2987
3003
|
name: l,
|
|
2988
3004
|
type: "hidden",
|
|
2989
|
-
value: t.getOptionValue(
|
|
3005
|
+
value: t.getOptionValue(I)
|
|
2990
3006
|
});
|
|
2991
|
-
}) : /* @__PURE__ */
|
|
3007
|
+
}) : /* @__PURE__ */ R.createElement("input", {
|
|
2992
3008
|
name: l,
|
|
2993
3009
|
type: "hidden",
|
|
2994
3010
|
value: ""
|
|
2995
3011
|
});
|
|
2996
|
-
return /* @__PURE__ */
|
|
3012
|
+
return /* @__PURE__ */ R.createElement("div", null, b);
|
|
2997
3013
|
}
|
|
2998
3014
|
else {
|
|
2999
|
-
var
|
|
3000
|
-
return /* @__PURE__ */
|
|
3015
|
+
var f = d[0] ? this.getOptionValue(d[0]) : "";
|
|
3016
|
+
return /* @__PURE__ */ R.createElement("input", {
|
|
3001
3017
|
name: l,
|
|
3002
3018
|
type: "hidden",
|
|
3003
|
-
value:
|
|
3019
|
+
value: f
|
|
3004
3020
|
});
|
|
3005
3021
|
}
|
|
3006
3022
|
}
|
|
@@ -3008,7 +3024,7 @@ var fn = function(e) {
|
|
|
3008
3024
|
key: "renderLiveRegion",
|
|
3009
3025
|
value: function() {
|
|
3010
3026
|
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__ */
|
|
3027
|
+
return /* @__PURE__ */ R.createElement(Xa, G({}, t, {
|
|
3012
3028
|
id: this.getElementId("live-region"),
|
|
3013
3029
|
ariaSelection: o,
|
|
3014
3030
|
focusedOption: s,
|
|
@@ -3022,69 +3038,69 @@ var fn = function(e) {
|
|
|
3022
3038
|
}, {
|
|
3023
3039
|
key: "render",
|
|
3024
3040
|
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,
|
|
3026
|
-
return /* @__PURE__ */
|
|
3041
|
+
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, g = l.isDisabled, b = l.menuIsOpen, f = this.state.isFocused, I = this.commonProps = this.getCommonProps();
|
|
3042
|
+
return /* @__PURE__ */ R.createElement(s, G({}, I, {
|
|
3027
3043
|
className: c,
|
|
3028
3044
|
innerProps: {
|
|
3029
3045
|
id: d,
|
|
3030
3046
|
onKeyDown: this.onKeyDown
|
|
3031
3047
|
},
|
|
3032
|
-
isDisabled:
|
|
3033
|
-
isFocused:
|
|
3034
|
-
}), this.renderLiveRegion(), /* @__PURE__ */
|
|
3048
|
+
isDisabled: g,
|
|
3049
|
+
isFocused: f
|
|
3050
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ R.createElement(r, G({}, I, {
|
|
3035
3051
|
innerRef: this.getControlRef,
|
|
3036
3052
|
innerProps: {
|
|
3037
3053
|
onMouseDown: this.onControlMouseDown,
|
|
3038
3054
|
onTouchEnd: this.onControlTouchEnd
|
|
3039
3055
|
},
|
|
3040
|
-
isDisabled:
|
|
3041
|
-
isFocused:
|
|
3042
|
-
menuIsOpen:
|
|
3043
|
-
}), /* @__PURE__ */
|
|
3044
|
-
isDisabled:
|
|
3045
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */
|
|
3046
|
-
isDisabled:
|
|
3056
|
+
isDisabled: g,
|
|
3057
|
+
isFocused: f,
|
|
3058
|
+
menuIsOpen: b
|
|
3059
|
+
}), /* @__PURE__ */ R.createElement(a, G({}, I, {
|
|
3060
|
+
isDisabled: g
|
|
3061
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ R.createElement(o, G({}, I, {
|
|
3062
|
+
isDisabled: g
|
|
3047
3063
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
3048
3064
|
}
|
|
3049
3065
|
}], [{
|
|
3050
3066
|
key: "getDerivedStateFromProps",
|
|
3051
3067
|
value: function(t, r) {
|
|
3052
|
-
var o = r.prevProps, s = r.clearFocusValueOnUpdate, a = r.inputIsHiddenAfterUpdate, l = r.ariaSelection, c = r.isFocused, d = r.prevWasFocused,
|
|
3053
|
-
if (o && (
|
|
3054
|
-
var
|
|
3055
|
-
|
|
3056
|
-
selectValue:
|
|
3068
|
+
var o = r.prevProps, s = r.clearFocusValueOnUpdate, a = r.inputIsHiddenAfterUpdate, l = r.ariaSelection, c = r.isFocused, d = r.prevWasFocused, g = r.instancePrefix, b = t.options, f = t.value, I = t.menuIsOpen, p = t.inputValue, m = t.isMulti, A = Bt(f), C = {};
|
|
3069
|
+
if (o && (f !== o.value || b !== o.options || I !== o.menuIsOpen || p !== o.inputValue)) {
|
|
3070
|
+
var T = I ? pr(t, A) : [], V = I ? Mt(Se(t, A), "".concat(g, "-option")) : [], x = s ? br(r, A) : null, S = Ir(r, T), h = Ue(V, S);
|
|
3071
|
+
C = {
|
|
3072
|
+
selectValue: A,
|
|
3057
3073
|
focusedOption: S,
|
|
3058
|
-
focusedOptionId:
|
|
3059
|
-
focusableOptionsWithIds:
|
|
3060
|
-
focusedValue:
|
|
3074
|
+
focusedOptionId: h,
|
|
3075
|
+
focusableOptionsWithIds: V,
|
|
3076
|
+
focusedValue: x,
|
|
3061
3077
|
clearFocusValueOnUpdate: !1
|
|
3062
3078
|
};
|
|
3063
3079
|
}
|
|
3064
|
-
var
|
|
3080
|
+
var B = a != null && t !== o ? {
|
|
3065
3081
|
inputIsHidden: a,
|
|
3066
3082
|
inputIsHiddenAfterUpdate: void 0
|
|
3067
|
-
} : {},
|
|
3068
|
-
return c && !
|
|
3069
|
-
value:
|
|
3070
|
-
options:
|
|
3083
|
+
} : {}, W = l, N = c && d;
|
|
3084
|
+
return c && !N && (W = {
|
|
3085
|
+
value: Te(m, A, A[0] || null),
|
|
3086
|
+
options: A,
|
|
3071
3087
|
action: "initial-input-focus"
|
|
3072
|
-
},
|
|
3088
|
+
}, N = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (W = null), E(E(E({}, C), B), {}, {
|
|
3073
3089
|
prevProps: t,
|
|
3074
|
-
ariaSelection:
|
|
3075
|
-
prevWasFocused:
|
|
3090
|
+
ariaSelection: W,
|
|
3091
|
+
prevWasFocused: N
|
|
3076
3092
|
});
|
|
3077
3093
|
}
|
|
3078
|
-
}]),
|
|
3079
|
-
}(
|
|
3080
|
-
|
|
3081
|
-
var
|
|
3082
|
-
var
|
|
3083
|
-
return /* @__PURE__ */
|
|
3094
|
+
}]), u;
|
|
3095
|
+
}(ri);
|
|
3096
|
+
Bn.defaultProps = gr;
|
|
3097
|
+
var hr = /* @__PURE__ */ oi(function(n, e) {
|
|
3098
|
+
var u = Si(n);
|
|
3099
|
+
return /* @__PURE__ */ R.createElement(Bn, G({
|
|
3084
3100
|
ref: e
|
|
3085
|
-
},
|
|
3086
|
-
}),
|
|
3087
|
-
const
|
|
3101
|
+
}, u));
|
|
3102
|
+
}), fr = hr;
|
|
3103
|
+
const vr = (n) => /* @__PURE__ */ v.jsx(mn.DropdownIndicator, { ...n, children: n.selectProps.menuIsOpen ? /* @__PURE__ */ v.jsx(It.ArrowDropUp, {}) : /* @__PURE__ */ v.jsx(It.ArrowDropDown, {}) }), Cr = (n) => /* @__PURE__ */ v.jsx(fr, { ...n, components: { DropdownIndicator: vr, IndicatorSeparator: () => null } }), Ar = Z(wn)`
|
|
3088
3104
|
& .MuiOutlinedInput-input {
|
|
3089
3105
|
padding: 8px 10px;
|
|
3090
3106
|
font-size: 13px;
|
|
@@ -3092,7 +3108,7 @@ const or = (n) => /* @__PURE__ */ A.jsx(on.DropdownIndicator, { ...n, children:
|
|
|
3092
3108
|
line-height: 20px;
|
|
3093
3109
|
color: #3e4c5a;
|
|
3094
3110
|
}
|
|
3095
|
-
`,
|
|
3111
|
+
`, xr = Z(U)`
|
|
3096
3112
|
& .formField__select {
|
|
3097
3113
|
font-size: 13px;
|
|
3098
3114
|
font-weight: 400;
|
|
@@ -3102,6 +3118,9 @@ const or = (n) => /* @__PURE__ */ A.jsx(on.DropdownIndicator, { ...n, children:
|
|
|
3102
3118
|
& .hiverFormField__control {
|
|
3103
3119
|
height: 34px;
|
|
3104
3120
|
min-height: 34px;
|
|
3121
|
+
&:hover {
|
|
3122
|
+
border-color: #4d596c;
|
|
3123
|
+
}
|
|
3105
3124
|
&.hiverFormField__control--is-focused {
|
|
3106
3125
|
border: 2px solid #506dff;
|
|
3107
3126
|
box-shadow: none;
|
|
@@ -3118,127 +3137,169 @@ const or = (n) => /* @__PURE__ */ A.jsx(on.DropdownIndicator, { ...n, children:
|
|
|
3118
3137
|
}
|
|
3119
3138
|
& .hiverFormField__indicators {
|
|
3120
3139
|
height: 30px;
|
|
3140
|
+
& .hiverFormField__dropdown-indicator {
|
|
3141
|
+
color: rgb(77, 89, 108);
|
|
3142
|
+
}
|
|
3121
3143
|
}
|
|
3122
3144
|
& .hiverFormField__value-container {
|
|
3123
3145
|
margin-top: -2px;
|
|
3124
3146
|
}
|
|
3125
|
-
|
|
3147
|
+
& .hiverFormField__option {
|
|
3148
|
+
background-color: #fff;
|
|
3149
|
+
padding: 8px 16px;
|
|
3150
|
+
&:hover {
|
|
3151
|
+
background-color: rgba(0, 0, 0, 0.04);
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
& .hiverFormField__option--is-selected {
|
|
3155
|
+
background-color: rgb(80, 109, 255, 0.12);
|
|
3156
|
+
color: #4d596c;
|
|
3157
|
+
&:hover {
|
|
3158
|
+
background-color: rgb(80, 109, 255, 0.12);
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
3161
|
+
& .hiverFormField__menu {
|
|
3162
|
+
margin-top: 0px;
|
|
3163
|
+
padding-top: 8px;
|
|
3164
|
+
padding-bottom: 8px;
|
|
3165
|
+
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
3166
|
+
box-shadow:
|
|
3167
|
+
0px 2px 1px -1px rgba(0, 0, 0, 0.2),
|
|
3168
|
+
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
|
|
3169
|
+
0px 1px 3px 0px rgba(0, 0, 0, 0.12);
|
|
3170
|
+
border-left: 1px solid #eee;
|
|
3171
|
+
}
|
|
3172
|
+
`, Yt = Z(U)`
|
|
3126
3173
|
font-size: 12px;
|
|
3127
3174
|
font-weight: 400;
|
|
3128
|
-
margin: 2px 14px 0px
|
|
3129
|
-
text-align:
|
|
3175
|
+
margin: 2px 14px 0px 0px;
|
|
3176
|
+
text-align: left;
|
|
3130
3177
|
position: absolute;
|
|
3131
3178
|
width: calc(100% - 28px);
|
|
3132
3179
|
&.helper--error {
|
|
3133
3180
|
color: #d32f2f;
|
|
3134
3181
|
}
|
|
3135
|
-
`,
|
|
3182
|
+
`, yr = Z(U)`
|
|
3136
3183
|
width: 100%;
|
|
3137
3184
|
position: relative;
|
|
3138
3185
|
& .MuiInputBase-root {
|
|
3139
3186
|
width: 100%;
|
|
3187
|
+
&.Mui-disabled {
|
|
3188
|
+
background: #0f13160a;
|
|
3189
|
+
color: #3e4c5a;
|
|
3190
|
+
}
|
|
3140
3191
|
}
|
|
3141
|
-
|
|
3192
|
+
& .form--sideIcon {
|
|
3193
|
+
position: absolute;
|
|
3194
|
+
margin-left: 5px;
|
|
3195
|
+
}
|
|
3196
|
+
`, Tn = (n) => {
|
|
3142
3197
|
const {
|
|
3143
3198
|
validation: e,
|
|
3144
|
-
helperText:
|
|
3145
|
-
id:
|
|
3199
|
+
helperText: u,
|
|
3200
|
+
id: i,
|
|
3146
3201
|
label: t,
|
|
3147
3202
|
name: r,
|
|
3148
3203
|
validateOnBlur: o = !0,
|
|
3149
3204
|
validateOnChange: s = !0,
|
|
3150
3205
|
inputChangeHandler: a,
|
|
3151
3206
|
selectChangeHandler: l,
|
|
3152
|
-
onValidationError: c
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3207
|
+
onValidationError: c,
|
|
3208
|
+
iconData: d
|
|
3209
|
+
} = n, [g, b] = J(!1), [f, I] = J("");
|
|
3210
|
+
ne(() => {
|
|
3211
|
+
g || m(n.value, !1);
|
|
3212
|
+
}, [g, n.value]);
|
|
3213
|
+
const p = (x) => {
|
|
3214
|
+
x && !g && b(!0);
|
|
3159
3215
|
};
|
|
3160
|
-
function
|
|
3161
|
-
let
|
|
3162
|
-
if (e != null && e.isRequired && (
|
|
3163
|
-
const
|
|
3164
|
-
typeof
|
|
3216
|
+
function m(x, S = !0) {
|
|
3217
|
+
let h = "";
|
|
3218
|
+
if (e != null && e.isRequired && (h = x ? "" : Ln), !h && (e != null && e.validate)) {
|
|
3219
|
+
const B = e.validate(x, { id: i, name: r, label: t });
|
|
3220
|
+
typeof B == "boolean" && B === !1 ? h = Pn : typeof B == "string" && (h = B);
|
|
3165
3221
|
}
|
|
3166
|
-
|
|
3222
|
+
S && I(h), c == null || c(r, h);
|
|
3167
3223
|
}
|
|
3168
|
-
const
|
|
3169
|
-
var
|
|
3170
|
-
|
|
3171
|
-
},
|
|
3172
|
-
a == null || a(
|
|
3173
|
-
},
|
|
3174
|
-
l == null || l(
|
|
3224
|
+
const A = (x) => {
|
|
3225
|
+
var S;
|
|
3226
|
+
g || b(!0), (S = n.onBlur) == null || S.call(n, x), g && o && m(n.value);
|
|
3227
|
+
}, C = () => n.helperText ? /* @__PURE__ */ v.jsx(Yt, { children: u }) : g && f ? /* @__PURE__ */ v.jsx(Yt, { className: "helper--error", children: f }) : null, T = (x) => {
|
|
3228
|
+
a == null || a(x), x && !g && b(!0), g && s && m(x.target.value);
|
|
3229
|
+
}, V = (x, S) => {
|
|
3230
|
+
l == null || l(x, S), x && !g && b(!0), x && typeof x == "object" && "value" in x && g && s && m(x.value);
|
|
3175
3231
|
};
|
|
3176
|
-
return /* @__PURE__ */
|
|
3177
|
-
t ? /* @__PURE__ */
|
|
3178
|
-
/* @__PURE__ */
|
|
3179
|
-
/* @__PURE__ */
|
|
3180
|
-
|
|
3232
|
+
return /* @__PURE__ */ v.jsxs(j, { spacing: 1, useFlexGap: !0, children: [
|
|
3233
|
+
t ? /* @__PURE__ */ v.jsx(Ie, { variant: "h4", component: "label", htmlFor: i, children: `${t}${e != null && e.isRequired ? "*" : ""}` }) : null,
|
|
3234
|
+
/* @__PURE__ */ v.jsxs(yr, { children: [
|
|
3235
|
+
/* @__PURE__ */ v.jsx(Ct, { title: n.toolTipTitle, arrow: !0, placement: "right-end", disableHoverListener: !0, children: n.type === "select" ? /* @__PURE__ */ v.jsx(xr, { children: /* @__PURE__ */ v.jsx(
|
|
3236
|
+
Cr,
|
|
3181
3237
|
{
|
|
3182
3238
|
...n,
|
|
3183
|
-
className: `formField__select ${
|
|
3239
|
+
className: `formField__select ${f && g ? "formField__select--error" : ""} ${n.className || ""}`,
|
|
3184
3240
|
classNamePrefix: "hiverFormField",
|
|
3185
|
-
onBlur:
|
|
3186
|
-
onChange:
|
|
3241
|
+
onBlur: A,
|
|
3242
|
+
onChange: V,
|
|
3187
3243
|
onFocus: p
|
|
3188
3244
|
}
|
|
3189
|
-
) }) : /* @__PURE__ */
|
|
3190
|
-
|
|
3245
|
+
) }) : /* @__PURE__ */ v.jsx(
|
|
3246
|
+
Ar,
|
|
3191
3247
|
{
|
|
3192
|
-
id:
|
|
3248
|
+
id: i,
|
|
3193
3249
|
...n,
|
|
3194
3250
|
label: void 0,
|
|
3195
|
-
onBlur:
|
|
3196
|
-
onChange:
|
|
3251
|
+
onBlur: A,
|
|
3252
|
+
onChange: T,
|
|
3197
3253
|
onFocus: p,
|
|
3198
|
-
error: !!(
|
|
3254
|
+
error: !!(f && g)
|
|
3199
3255
|
}
|
|
3200
3256
|
) }),
|
|
3201
|
-
|
|
3257
|
+
d != null && d.icon ? /* @__PURE__ */ v.jsx(Ct, { title: d.toolTipText, placement: "bottom", children: /* @__PURE__ */ v.jsx(Hn, { className: "form--sideIcon", children: d == null ? void 0 : d.icon }) }) : null,
|
|
3258
|
+
C()
|
|
3202
3259
|
] })
|
|
3203
3260
|
] });
|
|
3204
|
-
},
|
|
3205
|
-
margin-top: 28px;
|
|
3261
|
+
}, Er = Z(j)`
|
|
3206
3262
|
& .authform__section-title {
|
|
3207
3263
|
margin-top: 32px;
|
|
3208
3264
|
margin-bottom: 12px;
|
|
3209
3265
|
}
|
|
3210
|
-
`,
|
|
3266
|
+
`, Gr = ({
|
|
3211
3267
|
formConfig: n,
|
|
3212
3268
|
inputChangeHandler: e,
|
|
3269
|
+
icons: u,
|
|
3213
3270
|
selectChangeHandler: i,
|
|
3214
|
-
predicates:
|
|
3215
|
-
values:
|
|
3216
|
-
validations:
|
|
3217
|
-
onValidationError:
|
|
3218
|
-
}) => /* @__PURE__ */
|
|
3219
|
-
|
|
3220
|
-
/* @__PURE__ */
|
|
3221
|
-
|
|
3271
|
+
predicates: t,
|
|
3272
|
+
values: r,
|
|
3273
|
+
validations: o,
|
|
3274
|
+
onValidationError: s
|
|
3275
|
+
}) => /* @__PURE__ */ v.jsx(Er, { children: n.map(({ id: a, title: l, formFields: c }) => /* @__PURE__ */ v.jsxs(ii.Fragment, { children: [
|
|
3276
|
+
l ? /* @__PURE__ */ v.jsx(Ie, { variant: "h3", className: "authform__section-title", children: l }) : null,
|
|
3277
|
+
/* @__PURE__ */ v.jsx(j, { useFlexGap: !0, spacing: 3, children: c.map((d) => t && typeof t == "object" && d.name in t && t[d.name] === !1 ? null : /* @__PURE__ */ v.jsx(
|
|
3278
|
+
Tn,
|
|
3222
3279
|
{
|
|
3223
|
-
value:
|
|
3224
|
-
...
|
|
3280
|
+
value: r == null ? void 0 : r[d.name],
|
|
3281
|
+
...d,
|
|
3225
3282
|
selectChangeHandler: i,
|
|
3226
3283
|
inputChangeHandler: e,
|
|
3227
|
-
validation:
|
|
3228
|
-
onValidationError:
|
|
3284
|
+
validation: o == null ? void 0 : o[d.name],
|
|
3285
|
+
onValidationError: s,
|
|
3286
|
+
iconData: u == null ? void 0 : u[d.name]
|
|
3229
3287
|
},
|
|
3230
|
-
|
|
3288
|
+
d.name
|
|
3231
3289
|
)) })
|
|
3232
|
-
] },
|
|
3290
|
+
] }, a)) }), Fr = () => /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
3291
|
+
/* @__PURE__ */ v.jsx(fe, { variant: "rounded", width: 180, height: 24, animation: "wave", margin: "12px 0px 10px 0px" }),
|
|
3292
|
+
/* @__PURE__ */ v.jsx(fe, { variant: "rounded", width: 450, height: 40, animation: "wave" })
|
|
3293
|
+
] }), be = {
|
|
3233
3294
|
baseUrl: "baseUrl",
|
|
3234
3295
|
authType: "authType"
|
|
3235
|
-
},
|
|
3296
|
+
}, de = {
|
|
3236
3297
|
apiKey: "apiKey",
|
|
3237
3298
|
apiAddTo: "apiAddTo",
|
|
3238
3299
|
apiHeaderPrefix: "apiHeaderPrefix",
|
|
3239
3300
|
apiHeaderName: "apiHeaderName",
|
|
3240
3301
|
apiParamName: "apiParamName"
|
|
3241
|
-
},
|
|
3302
|
+
}, q = {
|
|
3242
3303
|
oAuthClientId: "oAuthClientId",
|
|
3243
3304
|
oAuthClientSecret: "oAuthClientSecret",
|
|
3244
3305
|
oAuthEndUrl: "oAuthEndUrl",
|
|
@@ -3248,104 +3309,111 @@ const or = (n) => /* @__PURE__ */ A.jsx(on.DropdownIndicator, { ...n, children:
|
|
|
3248
3309
|
oAuthHeaderName: "oAuthHeaderName",
|
|
3249
3310
|
oAuthHeaderPrefix: "oAuthHeaderPrefix",
|
|
3250
3311
|
oAuthScopes: "oAuthScopes"
|
|
3251
|
-
},
|
|
3252
|
-
...
|
|
3253
|
-
...
|
|
3254
|
-
...
|
|
3255
|
-
},
|
|
3256
|
-
apiToken: { label: "API Token", value:
|
|
3257
|
-
oAuth: { label: "OAuth2.0", value:
|
|
3258
|
-
},
|
|
3312
|
+
}, F = {
|
|
3313
|
+
...be,
|
|
3314
|
+
...de,
|
|
3315
|
+
...q
|
|
3316
|
+
}, ge = {
|
|
3317
|
+
apiToken: { label: "API Token", value: Dn },
|
|
3318
|
+
oAuth: { label: "OAuth2.0", value: Ve }
|
|
3319
|
+
}, De = {
|
|
3259
3320
|
header: { label: "Header", value: "header" },
|
|
3260
3321
|
queryParam: { label: "Query Param", value: "queryParam" }
|
|
3261
|
-
},
|
|
3322
|
+
}, Jt = [
|
|
3262
3323
|
{
|
|
3263
3324
|
id: "basicFormInfo",
|
|
3264
3325
|
formFields: [
|
|
3265
3326
|
{
|
|
3266
|
-
id:
|
|
3327
|
+
id: F.baseUrl,
|
|
3267
3328
|
type: "text",
|
|
3268
|
-
name:
|
|
3329
|
+
name: F.baseUrl,
|
|
3269
3330
|
label: "Base URL",
|
|
3270
3331
|
placeholder: "https://example.com",
|
|
3271
|
-
toolTipTitle: "
|
|
3332
|
+
toolTipTitle: "Enter the base URL of the API. This will be used as the root URL for all API calls made to the external service."
|
|
3272
3333
|
},
|
|
3273
3334
|
{
|
|
3274
|
-
id:
|
|
3335
|
+
id: F.authType,
|
|
3275
3336
|
type: "select",
|
|
3276
|
-
name:
|
|
3337
|
+
name: F.authType,
|
|
3277
3338
|
label: "Authentication Types",
|
|
3278
|
-
options: Object.values(
|
|
3339
|
+
options: Object.values(ge),
|
|
3340
|
+
toolTipTitle: "Select the authentication method for API requests."
|
|
3279
3341
|
}
|
|
3280
3342
|
]
|
|
3281
3343
|
}
|
|
3282
|
-
],
|
|
3344
|
+
], Br = [
|
|
3283
3345
|
{
|
|
3284
3346
|
id: "apiKeyFormInfo",
|
|
3285
|
-
title: "
|
|
3347
|
+
title: "API Form",
|
|
3286
3348
|
formFields: [
|
|
3287
3349
|
{
|
|
3288
|
-
id:
|
|
3350
|
+
id: F.apiKey,
|
|
3289
3351
|
type: "password",
|
|
3290
|
-
name:
|
|
3352
|
+
name: F.apiKey,
|
|
3291
3353
|
label: "API Key(Encrypted)",
|
|
3292
|
-
placeholder: "API Key"
|
|
3354
|
+
placeholder: "API Key",
|
|
3355
|
+
toolTipTitle: "Enter the value for the API Key. The value will be encrypted and stored securely."
|
|
3293
3356
|
},
|
|
3294
3357
|
{
|
|
3295
|
-
id:
|
|
3358
|
+
id: F.apiAddTo,
|
|
3296
3359
|
type: "select",
|
|
3297
|
-
name:
|
|
3360
|
+
name: F.apiAddTo,
|
|
3298
3361
|
label: "Add To",
|
|
3299
|
-
options: Object.values(
|
|
3362
|
+
options: Object.values(De),
|
|
3363
|
+
toolTipTitle: "Specify how the API key should be added to the API request—either in the request headers or as a query parameter."
|
|
3300
3364
|
},
|
|
3301
3365
|
{
|
|
3302
|
-
id:
|
|
3366
|
+
id: F.apiHeaderName,
|
|
3303
3367
|
type: "text",
|
|
3304
|
-
name:
|
|
3368
|
+
name: F.apiHeaderName,
|
|
3305
3369
|
label: "Header Name",
|
|
3306
3370
|
placeholder: "eg: X-Custom-Access-Token"
|
|
3307
3371
|
},
|
|
3308
3372
|
{
|
|
3309
|
-
id:
|
|
3373
|
+
id: F.apiHeaderPrefix,
|
|
3310
3374
|
type: "text",
|
|
3311
|
-
name:
|
|
3375
|
+
name: F.apiHeaderPrefix,
|
|
3312
3376
|
label: "Header Prefix",
|
|
3313
|
-
placeholder: "eg: Bearer"
|
|
3377
|
+
placeholder: "eg: Bearer",
|
|
3378
|
+
toolTipTitle: "If a prefix is required for the API key (e.g., 'Bearer'), specify it here. This will be added before the API key in the request."
|
|
3314
3379
|
},
|
|
3315
3380
|
{
|
|
3316
|
-
id:
|
|
3381
|
+
id: F.apiParamName,
|
|
3317
3382
|
type: "text",
|
|
3318
|
-
name:
|
|
3383
|
+
name: F.apiParamName,
|
|
3319
3384
|
label: "Param Name",
|
|
3320
3385
|
placeholder: "eg: customAccessToken"
|
|
3321
3386
|
}
|
|
3322
3387
|
]
|
|
3323
3388
|
}
|
|
3324
|
-
],
|
|
3389
|
+
], Tr = [
|
|
3325
3390
|
{
|
|
3326
3391
|
title: "CLIENT INFORMATION",
|
|
3327
3392
|
id: "clientInfo",
|
|
3328
3393
|
formFields: [
|
|
3329
3394
|
{
|
|
3330
|
-
id:
|
|
3395
|
+
id: F.oAuthClientId,
|
|
3331
3396
|
type: "text",
|
|
3332
|
-
name:
|
|
3397
|
+
name: F.oAuthClientId,
|
|
3333
3398
|
label: "Client ID",
|
|
3334
|
-
placeholder: "Client ID"
|
|
3399
|
+
placeholder: "Client ID",
|
|
3400
|
+
toolTipTitle: "Enter the Client ID provided by the external service for OAuth authentication."
|
|
3335
3401
|
},
|
|
3336
3402
|
{
|
|
3337
|
-
id:
|
|
3403
|
+
id: F.oAuthClientSecret,
|
|
3338
3404
|
type: "password",
|
|
3339
|
-
name:
|
|
3405
|
+
name: F.oAuthClientSecret,
|
|
3340
3406
|
label: "Client Secret(Encrypted)",
|
|
3341
|
-
placeholder: "Client Secret"
|
|
3407
|
+
placeholder: "Client Secret",
|
|
3408
|
+
toolTipTitle: "Enter the Client Secret associated with the Client ID. This is used to authenticate your application."
|
|
3342
3409
|
},
|
|
3343
3410
|
{
|
|
3344
|
-
id:
|
|
3411
|
+
id: F.oAuthScopes,
|
|
3345
3412
|
type: "text",
|
|
3346
|
-
name:
|
|
3413
|
+
name: F.oAuthScopes,
|
|
3347
3414
|
label: "Scope(s)",
|
|
3348
|
-
placeholder: "e.g: read, write"
|
|
3415
|
+
placeholder: "e.g: read, write",
|
|
3416
|
+
toolTipTitle: "Specify the scopes required for the API. Scopes define the access level for API resources."
|
|
3349
3417
|
}
|
|
3350
3418
|
]
|
|
3351
3419
|
},
|
|
@@ -3354,118 +3422,124 @@ const or = (n) => /* @__PURE__ */ A.jsx(on.DropdownIndicator, { ...n, children:
|
|
|
3354
3422
|
id: "authInfo",
|
|
3355
3423
|
formFields: [
|
|
3356
3424
|
{
|
|
3357
|
-
id:
|
|
3425
|
+
id: F.oAuthEndUrl,
|
|
3358
3426
|
type: "text",
|
|
3359
|
-
name:
|
|
3427
|
+
name: F.oAuthEndUrl,
|
|
3360
3428
|
label: "Authorization Endpoint URL",
|
|
3361
|
-
placeholder: "e.g: https://example.com/login/oauth/authorize"
|
|
3429
|
+
placeholder: "e.g: https://example.com/login/oauth/authorize",
|
|
3430
|
+
toolTipTitle: "Enter the URL for the authorization endpoint where the user will be redirected to authenticate."
|
|
3362
3431
|
},
|
|
3363
3432
|
{
|
|
3364
|
-
id:
|
|
3433
|
+
id: F.oAuthTokenUrl,
|
|
3365
3434
|
type: "text",
|
|
3366
|
-
name:
|
|
3435
|
+
name: F.oAuthTokenUrl,
|
|
3367
3436
|
label: "Token Endpoint URL",
|
|
3368
|
-
placeholder: "e.g: https://example.com/login/oauth/token"
|
|
3437
|
+
placeholder: "e.g: https://example.com/login/oauth/token",
|
|
3438
|
+
toolTipTitle: "Provide the URL for exchanging the authorization code for an access token."
|
|
3369
3439
|
},
|
|
3370
3440
|
{
|
|
3371
|
-
id:
|
|
3441
|
+
id: F.oAuthRefreshTokenUrl,
|
|
3372
3442
|
type: "text",
|
|
3373
|
-
name:
|
|
3443
|
+
name: F.oAuthRefreshTokenUrl,
|
|
3374
3444
|
label: "Refresh Token URL",
|
|
3375
|
-
placeholder: "e.g: https://example.com/login/oauth/refresh/token"
|
|
3445
|
+
placeholder: "e.g: https://example.com/login/oauth/refresh/token",
|
|
3446
|
+
toolTipTitle: "Enter the URL to refresh the access token, if supported by the API."
|
|
3376
3447
|
},
|
|
3377
3448
|
{
|
|
3378
|
-
id:
|
|
3449
|
+
id: F.oAuthRedirectUrl,
|
|
3379
3450
|
type: "text",
|
|
3380
|
-
name:
|
|
3451
|
+
name: F.oAuthRedirectUrl,
|
|
3381
3452
|
label: "Redirect URL",
|
|
3382
3453
|
disabled: !0
|
|
3383
3454
|
},
|
|
3384
3455
|
{
|
|
3385
|
-
id:
|
|
3456
|
+
id: F.oAuthHeaderName,
|
|
3386
3457
|
type: "text",
|
|
3387
|
-
name:
|
|
3458
|
+
name: F.oAuthHeaderName,
|
|
3388
3459
|
label: "Header Name",
|
|
3389
3460
|
placeholder: "eg: X-Custom-Access-Token"
|
|
3390
3461
|
},
|
|
3391
3462
|
{
|
|
3392
|
-
id:
|
|
3463
|
+
id: F.oAuthHeaderPrefix,
|
|
3393
3464
|
type: "text",
|
|
3394
|
-
name:
|
|
3465
|
+
name: F.oAuthHeaderPrefix,
|
|
3395
3466
|
label: "Header Prefix",
|
|
3396
3467
|
placeholder: "eg: Bearer"
|
|
3397
3468
|
}
|
|
3398
3469
|
]
|
|
3399
3470
|
}
|
|
3400
|
-
],
|
|
3401
|
-
[
|
|
3471
|
+
], Sr = {
|
|
3472
|
+
[F.baseUrl]: {
|
|
3473
|
+
isRequired: !0
|
|
3474
|
+
},
|
|
3475
|
+
[F.authType]: {
|
|
3402
3476
|
isRequired: !0
|
|
3403
3477
|
},
|
|
3404
|
-
[
|
|
3478
|
+
[F.apiKey]: {
|
|
3405
3479
|
isRequired: !0
|
|
3406
3480
|
},
|
|
3407
|
-
[
|
|
3481
|
+
[F.apiAddTo]: {
|
|
3408
3482
|
isRequired: !0
|
|
3409
3483
|
},
|
|
3410
|
-
[
|
|
3484
|
+
[F.apiParamName]: {
|
|
3411
3485
|
isRequired: !0
|
|
3412
3486
|
},
|
|
3413
|
-
[
|
|
3487
|
+
[F.apiHeaderName]: {
|
|
3414
3488
|
isRequired: !0
|
|
3415
3489
|
},
|
|
3416
|
-
[
|
|
3490
|
+
[F.oAuthClientId]: {
|
|
3417
3491
|
isRequired: !0
|
|
3418
3492
|
},
|
|
3419
|
-
[
|
|
3493
|
+
[F.oAuthClientSecret]: {
|
|
3420
3494
|
isRequired: !0
|
|
3421
3495
|
},
|
|
3422
|
-
[
|
|
3496
|
+
[F.oAuthEndUrl]: {
|
|
3423
3497
|
isRequired: !0
|
|
3424
3498
|
},
|
|
3425
|
-
[
|
|
3499
|
+
[F.oAuthTokenUrl]: {
|
|
3426
3500
|
isRequired: !0
|
|
3427
3501
|
},
|
|
3428
|
-
[
|
|
3502
|
+
[F.oAuthRefreshTokenUrl]: {
|
|
3429
3503
|
isRequired: !0
|
|
3430
3504
|
},
|
|
3431
|
-
[
|
|
3505
|
+
[F.oAuthRedirectUrl]: {
|
|
3432
3506
|
isRequired: !0
|
|
3433
3507
|
},
|
|
3434
|
-
[
|
|
3508
|
+
[F.oAuthHeaderName]: {
|
|
3435
3509
|
isRequired: !0
|
|
3436
3510
|
}
|
|
3437
|
-
},
|
|
3438
|
-
[
|
|
3439
|
-
[
|
|
3440
|
-
[
|
|
3441
|
-
[
|
|
3442
|
-
[
|
|
3443
|
-
[
|
|
3444
|
-
[
|
|
3445
|
-
[
|
|
3446
|
-
[
|
|
3447
|
-
},
|
|
3448
|
-
[
|
|
3449
|
-
[
|
|
3450
|
-
[
|
|
3451
|
-
[
|
|
3452
|
-
[
|
|
3453
|
-
[
|
|
3454
|
-
},
|
|
3455
|
-
values: { authType:
|
|
3511
|
+
}, Sn = {
|
|
3512
|
+
[q.oAuthClientId]: "clientId",
|
|
3513
|
+
[q.oAuthClientSecret]: "clientSecret",
|
|
3514
|
+
[be.authType]: "authType",
|
|
3515
|
+
[q.oAuthEndUrl]: "authEndpointUrl",
|
|
3516
|
+
[q.oAuthTokenUrl]: "tokenEndpointUrl",
|
|
3517
|
+
[q.oAuthRefreshTokenUrl]: "refreshTokenUrl",
|
|
3518
|
+
[q.oAuthScopes]: "scopes",
|
|
3519
|
+
[q.oAuthHeaderName]: "keyName",
|
|
3520
|
+
[q.oAuthHeaderPrefix]: "prefix"
|
|
3521
|
+
}, Vn = {
|
|
3522
|
+
[be.authType]: "authType",
|
|
3523
|
+
[de.apiAddTo]: "location",
|
|
3524
|
+
[de.apiKey]: "keyValue",
|
|
3525
|
+
[de.apiHeaderName]: "keyName",
|
|
3526
|
+
[de.apiHeaderPrefix]: "prefix",
|
|
3527
|
+
[de.apiParamName]: "keyName"
|
|
3528
|
+
}, Vr = {
|
|
3529
|
+
values: { authType: ge.apiToken, apiAddTo: De.header },
|
|
3456
3530
|
errors: {}
|
|
3457
|
-
},
|
|
3531
|
+
}, ee = {
|
|
3458
3532
|
SET_FIELD_VALUE: "SET_FIELD_VALUE",
|
|
3459
3533
|
CLEAR_FIELD_VALUE: "CLEAR_FIELD",
|
|
3460
3534
|
SET_FIELD_ERROR: "SET_FIELD_ERROR",
|
|
3461
3535
|
SET_FIELDS: "SET_FIELDS",
|
|
3462
3536
|
CLEAR_FIELDS: "CLEAR_FIELDS"
|
|
3463
|
-
},
|
|
3464
|
-
const { type:
|
|
3465
|
-
switch (
|
|
3466
|
-
case
|
|
3467
|
-
if (!
|
|
3468
|
-
const { name: t, value: r } =
|
|
3537
|
+
}, Rr = (n, e) => {
|
|
3538
|
+
const { type: u, payload: i } = e;
|
|
3539
|
+
switch (u) {
|
|
3540
|
+
case ee.SET_FIELD_VALUE: {
|
|
3541
|
+
if (!i || !("name" in i)) return n;
|
|
3542
|
+
const { name: t, value: r } = i;
|
|
3469
3543
|
return {
|
|
3470
3544
|
...n,
|
|
3471
3545
|
values: {
|
|
@@ -3474,9 +3548,9 @@ const or = (n) => /* @__PURE__ */ A.jsx(on.DropdownIndicator, { ...n, children:
|
|
|
3474
3548
|
}
|
|
3475
3549
|
};
|
|
3476
3550
|
}
|
|
3477
|
-
case
|
|
3478
|
-
if (!
|
|
3479
|
-
const { name: t, value: r } =
|
|
3551
|
+
case ee.SET_FIELD_ERROR: {
|
|
3552
|
+
if (!i || !("name" in i)) return n;
|
|
3553
|
+
const { name: t, value: r } = i;
|
|
3480
3554
|
return {
|
|
3481
3555
|
...n,
|
|
3482
3556
|
errors: {
|
|
@@ -3485,9 +3559,9 @@ const or = (n) => /* @__PURE__ */ A.jsx(on.DropdownIndicator, { ...n, children:
|
|
|
3485
3559
|
}
|
|
3486
3560
|
};
|
|
3487
3561
|
}
|
|
3488
|
-
case
|
|
3489
|
-
if (!
|
|
3490
|
-
const { name: t } =
|
|
3562
|
+
case ee.CLEAR_FIELD_VALUE: {
|
|
3563
|
+
if (!i || !("name" in i)) return n;
|
|
3564
|
+
const { name: t } = i;
|
|
3491
3565
|
return {
|
|
3492
3566
|
...n,
|
|
3493
3567
|
errors: {
|
|
@@ -3496,9 +3570,9 @@ const or = (n) => /* @__PURE__ */ A.jsx(on.DropdownIndicator, { ...n, children:
|
|
|
3496
3570
|
}
|
|
3497
3571
|
};
|
|
3498
3572
|
}
|
|
3499
|
-
case
|
|
3500
|
-
if (!
|
|
3501
|
-
const { values: t } =
|
|
3573
|
+
case ee.SET_FIELDS: {
|
|
3574
|
+
if (!i || "name" in i) return n;
|
|
3575
|
+
const { values: t } = i;
|
|
3502
3576
|
return {
|
|
3503
3577
|
...n,
|
|
3504
3578
|
values: t
|
|
@@ -3506,149 +3580,208 @@ const or = (n) => /* @__PURE__ */ A.jsx(on.DropdownIndicator, { ...n, children:
|
|
|
3506
3580
|
}
|
|
3507
3581
|
}
|
|
3508
3582
|
return n;
|
|
3509
|
-
}
|
|
3510
|
-
|
|
3511
|
-
margin-bottom: 16px;
|
|
3512
|
-
`, Cr = N(ge)`
|
|
3513
|
-
color: #6f7c90;
|
|
3514
|
-
`, Ar = N(de)`
|
|
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) {
|
|
3583
|
+
};
|
|
3584
|
+
function Wr(n, e) {
|
|
3530
3585
|
return n in e;
|
|
3531
3586
|
}
|
|
3532
|
-
const
|
|
3587
|
+
const Nr = ({
|
|
3533
3588
|
isEdit: n,
|
|
3534
3589
|
templateId: e,
|
|
3535
|
-
values:
|
|
3536
|
-
formFields:
|
|
3590
|
+
values: u,
|
|
3591
|
+
formFields: i,
|
|
3537
3592
|
predicates: t
|
|
3538
3593
|
}) => {
|
|
3539
|
-
const r = {}, o =
|
|
3540
|
-
|
|
3541
|
-
let
|
|
3542
|
-
if (typeof
|
|
3543
|
-
if (r.authType ===
|
|
3544
|
-
const
|
|
3545
|
-
|
|
3594
|
+
const r = {}, o = u.authType && typeof u.authType == "object" && u.authType.value === ge.oAuth.value ? ge.oAuth.value : ge.apiToken.value;
|
|
3595
|
+
r.authType = o, Object.keys(i).forEach((a) => {
|
|
3596
|
+
let l;
|
|
3597
|
+
if (u[a] && typeof u[a] == "object" ? l = u[a].value : l = u[a], !(typeof l > "u") && t[a] !== !1)
|
|
3598
|
+
if (r.authType === Ve) {
|
|
3599
|
+
const c = Sn[a];
|
|
3600
|
+
c !== be.authType && c !== void 0 && (r[c] = l);
|
|
3546
3601
|
} else {
|
|
3547
|
-
const
|
|
3548
|
-
|
|
3602
|
+
const c = Vn[a];
|
|
3603
|
+
c !== be.authType && c !== void 0 && (r[c] = l);
|
|
3549
3604
|
}
|
|
3550
|
-
})
|
|
3605
|
+
});
|
|
3606
|
+
const s = u.baseUrl && (typeof t.baseUrl > "u" || t.baseUrl === !0) ? String(u.baseUrl) : void 0;
|
|
3607
|
+
return !n && e ? { templateId: e, authDetails: r, baseUrl: s } : { authDetails: r, baseUrl: s };
|
|
3551
3608
|
};
|
|
3552
|
-
function
|
|
3553
|
-
const e = {},
|
|
3554
|
-
return Object.keys(
|
|
3555
|
-
if (
|
|
3556
|
-
const t = i
|
|
3609
|
+
function Xr(n) {
|
|
3610
|
+
const e = {}, u = n.authType === Ve ? Sn : Vn;
|
|
3611
|
+
return Object.keys(u).forEach((i) => {
|
|
3612
|
+
if (Wr(i, u)) {
|
|
3613
|
+
const t = u[i];
|
|
3557
3614
|
let r;
|
|
3558
|
-
if (n.authType ===
|
|
3615
|
+
if (n.authType === Ve) {
|
|
3559
3616
|
const o = n[t];
|
|
3560
3617
|
Array.isArray(o) ? r = o.join(", ") : r = o;
|
|
3561
3618
|
} else
|
|
3562
3619
|
r = n[t];
|
|
3563
|
-
|
|
3620
|
+
i === be.authType && (r = Object.values(ge).filter((o) => o.value === r)[0]), i === de.apiAddTo && (r = Object.values(De).filter((o) => o.value === r)[0]), e[i] = r;
|
|
3564
3621
|
}
|
|
3565
3622
|
}), e;
|
|
3566
3623
|
}
|
|
3567
|
-
const
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3624
|
+
const Zr = Z(j)`
|
|
3625
|
+
margin-bottom: 16px;
|
|
3626
|
+
& .MuiPaper-elevation {
|
|
3627
|
+
height: 30px;
|
|
3628
|
+
gap: 8px;
|
|
3629
|
+
& svg {
|
|
3630
|
+
height: 18px;
|
|
3631
|
+
}
|
|
3632
|
+
}
|
|
3633
|
+
`, wr = Z(Ie)`
|
|
3634
|
+
line-height: 32px;
|
|
3635
|
+
`, Pr = Z(Ie)`
|
|
3636
|
+
color: #6f7c90;
|
|
3637
|
+
`, Hr = Z(j)`
|
|
3638
|
+
margin-top: 28px;
|
|
3639
|
+
max-height: 450px;
|
|
3640
|
+
padding-right: 65px;
|
|
3641
|
+
overflow-y: auto;
|
|
3642
|
+
& .authform__section-title {
|
|
3643
|
+
margin-top: 32px;
|
|
3644
|
+
margin-bottom: 12px;
|
|
3645
|
+
}
|
|
3646
|
+
& .copy-icon {
|
|
3647
|
+
position: absolute;
|
|
3648
|
+
top: 8px;
|
|
3649
|
+
right: -30px;
|
|
3650
|
+
cursor: pointer;
|
|
3651
|
+
}
|
|
3652
|
+
`, Lr = Z(U)`
|
|
3653
|
+
width: 504px;
|
|
3654
|
+
`, Dr = Z(j)`
|
|
3655
|
+
margin-top: 32px;
|
|
3656
|
+
margin-bottom: 13px;
|
|
3657
|
+
gap: 16px;
|
|
3658
|
+
`, Or = "data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1446_32274)'%3e%3cpath%20d='M14.6663%200.916687H3.66634C2.65801%200.916687%201.83301%201.74169%201.83301%202.75002V15.5834H3.66634V2.75002H14.6663V0.916687ZM17.4163%204.58335H7.33301C6.32467%204.58335%205.49967%205.40835%205.49967%206.41669V19.25C5.49967%2020.2584%206.32467%2021.0834%207.33301%2021.0834H17.4163C18.4247%2021.0834%2019.2497%2020.2584%2019.2497%2019.25V6.41669C19.2497%205.40835%2018.4247%204.58335%2017.4163%204.58335ZM17.4163%2019.25H7.33301V6.41669H17.4163V19.25Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1446_32274'%3e%3crect%20width='22'%20height='22'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Mr = "Custom Connectors", Rn = "Settings", kr = () => /* @__PURE__ */ v.jsxs(j, { gap: "24px", marginTop: "28px", paddingRight: "65px", children: [
|
|
3659
|
+
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
3660
|
+
/* @__PURE__ */ v.jsx(fe, { variant: "rounded", width: 100, height: 24, animation: "wave", margin: "12px 0px 10px 0px" }),
|
|
3661
|
+
/* @__PURE__ */ v.jsx(fe, { variant: "rounded", height: 40, animation: "wave", margin: "12px 0px 10px 0px" })
|
|
3662
|
+
] }),
|
|
3663
|
+
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
3664
|
+
/* @__PURE__ */ v.jsx(fe, { variant: "rounded", width: 100, height: 24, animation: "wave", margin: "12px 0px 10px 0px" }),
|
|
3665
|
+
/* @__PURE__ */ v.jsx(fe, { variant: "rounded", height: 40, animation: "wave", margin: "12px 0px 10px 0px" })
|
|
3666
|
+
] })
|
|
3667
|
+
] }), Yr = ({ isEdit: n = !1, connectorId: e, isLoading: u = !1, connectorData: i, authStatus: t }) => {
|
|
3668
|
+
const { sendTrackingEvent: r } = ut(Ut), o = at(), [s, a] = li(Rr, Vr), [l, c] = J(!1), d = i ? i.name : "", g = i ? i.description : "", b = i ? i.isAuthenticated : !1;
|
|
3669
|
+
ne(() => {
|
|
3670
|
+
var h, B;
|
|
3671
|
+
if (i != null && i.authDetails) {
|
|
3672
|
+
const W = Xr(i.authDetails);
|
|
3673
|
+
a({
|
|
3674
|
+
type: ee.SET_FIELDS,
|
|
3578
3675
|
payload: {
|
|
3579
|
-
values:
|
|
3676
|
+
values: W
|
|
3580
3677
|
}
|
|
3581
3678
|
});
|
|
3582
3679
|
}
|
|
3583
|
-
(
|
|
3584
|
-
type:
|
|
3585
|
-
payload: { name:
|
|
3586
|
-
}),
|
|
3587
|
-
type:
|
|
3588
|
-
payload: { name:
|
|
3680
|
+
(h = i == null ? void 0 : i.variables) != null && h.baseUrl && a({
|
|
3681
|
+
type: ee.SET_FIELD_VALUE,
|
|
3682
|
+
payload: { name: F.baseUrl, value: (B = i == null ? void 0 : i.variables) == null ? void 0 : B.baseUrl }
|
|
3683
|
+
}), i != null && i.redirectUrl && a({
|
|
3684
|
+
type: ee.SET_FIELD_VALUE,
|
|
3685
|
+
payload: { name: F.oAuthRedirectUrl, value: i == null ? void 0 : i.redirectUrl }
|
|
3589
3686
|
});
|
|
3590
|
-
}, [
|
|
3591
|
-
const
|
|
3592
|
-
|
|
3593
|
-
},
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
f
|
|
3597
|
-
},
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3687
|
+
}, [i]);
|
|
3688
|
+
const f = (h, B) => {
|
|
3689
|
+
a({ type: ee.SET_FIELD_VALUE, payload: { value: B, name: h } });
|
|
3690
|
+
}, I = (h) => {
|
|
3691
|
+
h.stopPropagation();
|
|
3692
|
+
const { name: B, value: W } = (h == null ? void 0 : h.target) || {};
|
|
3693
|
+
f(B, W.trim());
|
|
3694
|
+
}, p = (h, B) => {
|
|
3695
|
+
h && typeof h == "object" && "label" in h && typeof h.label == "string" && "value" in h && typeof h.value == "string" && typeof B.name < "u" && (B.name === be.authType && r($e.AUTH_UPDATED, {
|
|
3696
|
+
selected_auth_type: h.label
|
|
3697
|
+
}), f(B.name, { value: h.value, label: h.label }));
|
|
3698
|
+
}, m = (h, B) => {
|
|
3699
|
+
a({ type: ee.SET_FIELD_ERROR, payload: { name: h, value: B } });
|
|
3700
|
+
}, A = () => {
|
|
3701
|
+
const h = s.values.authType;
|
|
3702
|
+
return typeof h == "object" && h.value === ge.apiToken.value ? [...Jt, ...Br] : [...Jt, ...Tr];
|
|
3703
|
+
}, C = () => {
|
|
3704
|
+
var B;
|
|
3705
|
+
const h = {};
|
|
3706
|
+
return typeof s.values.apiAddTo == "object" && s.values.apiAddTo.value === De.queryParam.value ? (h.apiHeaderPrefix = !1, h.apiHeaderName = !1) : h.apiParamName = !1, (n && !((B = i == null ? void 0 : i.variables) != null && B.baseUrl) || !n && (i == null ? void 0 : i.baseUrlRequired) === !1) && (h.baseUrl = !1), h;
|
|
3707
|
+
}, T = () => {
|
|
3708
|
+
const h = C(), B = mt(A());
|
|
3709
|
+
return !Object.keys(s.errors).filter((N) => !!s.errors[N]).filter((N) => N in h ? h[N] : !0).filter((N) => N in B).length;
|
|
3710
|
+
}, V = () => {
|
|
3711
|
+
var N;
|
|
3712
|
+
const h = C(), B = mt(A()), W = Nr({
|
|
3610
3713
|
isEdit: n,
|
|
3611
3714
|
templateId: e,
|
|
3612
|
-
values:
|
|
3613
|
-
formFields:
|
|
3614
|
-
predicates:
|
|
3715
|
+
values: s.values,
|
|
3716
|
+
formFields: B,
|
|
3717
|
+
predicates: h
|
|
3615
3718
|
});
|
|
3616
|
-
|
|
3719
|
+
r($e.SAVE_AUTHORIZE_CLICKED, {
|
|
3720
|
+
connector_name: d,
|
|
3721
|
+
auth_type: ((N = s.values.authType) == null ? void 0 : N.label) ?? s.values.authType,
|
|
3722
|
+
base_url: s.values.baseUrl
|
|
3723
|
+
}), !n && "templateId" in W ? o(ht({ data: W })) : o(ht({ data: W, connectorId: e }));
|
|
3724
|
+
}, x = () => {
|
|
3725
|
+
s.values.oAuthRedirectUrl && Jn(s.values.oAuthRedirectUrl, (h) => c(!h));
|
|
3726
|
+
}, S = {
|
|
3727
|
+
[F.oAuthRedirectUrl]: {
|
|
3728
|
+
icon: /* @__PURE__ */ v.jsx("img", { alt: "copy", src: Or, onClick: x }),
|
|
3729
|
+
toolTipText: Yn
|
|
3730
|
+
}
|
|
3617
3731
|
};
|
|
3618
|
-
return /* @__PURE__ */
|
|
3619
|
-
/* @__PURE__ */
|
|
3620
|
-
|
|
3621
|
-
/* @__PURE__ */
|
|
3622
|
-
/* @__PURE__ */ A.jsx(Cr, { variant: "body2", children: l })
|
|
3732
|
+
return /* @__PURE__ */ v.jsxs(Lr, { children: [
|
|
3733
|
+
/* @__PURE__ */ v.jsxs(Zr, { direction: "column", gap: 1, children: [
|
|
3734
|
+
n && !b ? /* @__PURE__ */ v.jsx(ci, { severity: "error", sx: { width: "fit-content" }, children: On }) : null,
|
|
3735
|
+
/* @__PURE__ */ v.jsx(wr, { variant: "h2", children: Rn })
|
|
3623
3736
|
] }),
|
|
3624
|
-
/* @__PURE__ */
|
|
3625
|
-
|
|
3626
|
-
{
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3737
|
+
u ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
3738
|
+
/* @__PURE__ */ v.jsx(Fr, {}),
|
|
3739
|
+
/* @__PURE__ */ v.jsx(kr, {})
|
|
3740
|
+
] }) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
3741
|
+
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
3742
|
+
/* @__PURE__ */ v.jsx(Ie, { variant: "h3", children: d }),
|
|
3743
|
+
/* @__PURE__ */ v.jsx(Pr, { variant: "body2", children: g })
|
|
3744
|
+
] }),
|
|
3745
|
+
/* @__PURE__ */ v.jsx(Hr, { children: /* @__PURE__ */ v.jsx(
|
|
3746
|
+
Gr,
|
|
3747
|
+
{
|
|
3748
|
+
formConfig: A(),
|
|
3749
|
+
selectChangeHandler: p,
|
|
3750
|
+
inputChangeHandler: I,
|
|
3751
|
+
predicates: C(),
|
|
3752
|
+
values: s.values,
|
|
3753
|
+
validations: Sr,
|
|
3754
|
+
onValidationError: m,
|
|
3755
|
+
icons: S
|
|
3756
|
+
}
|
|
3757
|
+
) }),
|
|
3758
|
+
/* @__PURE__ */ v.jsx(Dr, { direction: "row", children: /* @__PURE__ */ v.jsx(
|
|
3759
|
+
Qt,
|
|
3760
|
+
{
|
|
3761
|
+
disabled: !T() || u || t === O.PENDING,
|
|
3762
|
+
onClick: V,
|
|
3763
|
+
children: "Save & Authorize"
|
|
3764
|
+
}
|
|
3765
|
+
) })
|
|
3766
|
+
] }),
|
|
3767
|
+
/* @__PURE__ */ v.jsx(
|
|
3768
|
+
Mn,
|
|
3638
3769
|
{
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3770
|
+
message: kn,
|
|
3771
|
+
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
3772
|
+
autoHideDuration: 2e3,
|
|
3773
|
+
onClose: () => c(!1),
|
|
3774
|
+
open: l
|
|
3642
3775
|
}
|
|
3643
|
-
)
|
|
3776
|
+
)
|
|
3644
3777
|
] });
|
|
3645
|
-
},
|
|
3778
|
+
}, Jr = Z(U)`
|
|
3646
3779
|
width: 410px;
|
|
3647
3780
|
height: 570px;
|
|
3648
3781
|
padding: 38px 36px;
|
|
3649
3782
|
border-radius: 10px;
|
|
3650
3783
|
background: #fafafa;
|
|
3651
|
-
`,
|
|
3784
|
+
`, jr = Z(U)`
|
|
3652
3785
|
margin-top: 8px;
|
|
3653
3786
|
width: 100%;
|
|
3654
3787
|
display: flex;
|
|
@@ -3659,7 +3792,7 @@ const Br = () => /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
|
3659
3792
|
& .MuiInputBase-root {
|
|
3660
3793
|
background-color: #fff;
|
|
3661
3794
|
}
|
|
3662
|
-
`,
|
|
3795
|
+
`, zr = Z(U)`
|
|
3663
3796
|
width: 63px;
|
|
3664
3797
|
height: 36px;
|
|
3665
3798
|
background-color: #fff;
|
|
@@ -3667,7 +3800,7 @@ const Br = () => /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
|
3667
3800
|
border-radius: 4px;
|
|
3668
3801
|
text-align: center;
|
|
3669
3802
|
line-height: 36px;
|
|
3670
|
-
`,
|
|
3803
|
+
`, Ur = Z(U)`
|
|
3671
3804
|
width: 338px;
|
|
3672
3805
|
height: 350px;
|
|
3673
3806
|
max-height: 350px;
|
|
@@ -3675,7 +3808,7 @@ const Br = () => /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
|
3675
3808
|
border-radius: 5px;
|
|
3676
3809
|
border: 1px solid #d6dde8;
|
|
3677
3810
|
margin-top: 20px;
|
|
3678
|
-
`,
|
|
3811
|
+
`, Qr = Z(U)`
|
|
3679
3812
|
width: 100%;
|
|
3680
3813
|
height: 50px;
|
|
3681
3814
|
background: #f6f8fc;
|
|
@@ -3685,7 +3818,7 @@ const Br = () => /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
|
3685
3818
|
padding: 0px 20px;
|
|
3686
3819
|
font-weight: 600;
|
|
3687
3820
|
color: ${(n) => n.textColor ? n.textColor : "inherit"};
|
|
3688
|
-
`,
|
|
3821
|
+
`, _r = Z(U)`
|
|
3689
3822
|
width: 100%;
|
|
3690
3823
|
height: 300px;
|
|
3691
3824
|
overflow: auto;
|
|
@@ -3696,87 +3829,134 @@ const Br = () => /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
|
3696
3829
|
padding: 20px;
|
|
3697
3830
|
white-space: pre-wrap;
|
|
3698
3831
|
}
|
|
3699
|
-
`,
|
|
3832
|
+
`, Kr = Z(Qt)`
|
|
3700
3833
|
width: 338px;
|
|
3701
3834
|
margin-top: 20px;
|
|
3702
|
-
`,
|
|
3703
|
-
const [
|
|
3704
|
-
|
|
3705
|
-
n &&
|
|
3835
|
+
`, $r = ({ url: n, disabled: e = !1, connectorId: u, connectorData: i }) => {
|
|
3836
|
+
const { sendTrackingEvent: t } = ut(Ut), [r, o] = J(""), s = ce(Ii), a = ce(mi), l = at(), c = s === _e.LOADING;
|
|
3837
|
+
ne(() => {
|
|
3838
|
+
n && o(n);
|
|
3706
3839
|
}, [n]);
|
|
3707
|
-
const
|
|
3708
|
-
|
|
3709
|
-
},
|
|
3710
|
-
|
|
3840
|
+
const d = (b) => {
|
|
3841
|
+
o(b.target.value);
|
|
3842
|
+
}, g = () => {
|
|
3843
|
+
var b;
|
|
3844
|
+
t($e.SEND_TEST_CLICK, {
|
|
3845
|
+
connector_name: i == null ? void 0 : i.name,
|
|
3846
|
+
auth_type: (b = i == null ? void 0 : i.authDetails) == null ? void 0 : b.authType,
|
|
3847
|
+
test_url: r
|
|
3848
|
+
}), l(jn({ data: { testUrl: r }, connectorId: u }));
|
|
3711
3849
|
};
|
|
3712
|
-
return /* @__PURE__ */
|
|
3713
|
-
/* @__PURE__ */
|
|
3714
|
-
/* @__PURE__ */
|
|
3715
|
-
/* @__PURE__ */
|
|
3716
|
-
/* @__PURE__ */
|
|
3850
|
+
return /* @__PURE__ */ v.jsxs(Jr, { children: [
|
|
3851
|
+
/* @__PURE__ */ v.jsx(Ie, { variant: "h4", children: "Test Endpoint URL" }),
|
|
3852
|
+
/* @__PURE__ */ v.jsxs(jr, { children: [
|
|
3853
|
+
/* @__PURE__ */ v.jsx(zr, { children: "GET" }),
|
|
3854
|
+
/* @__PURE__ */ v.jsx(Tn, { type: "text", name: "url", inputChangeHandler: d })
|
|
3717
3855
|
] }),
|
|
3718
|
-
/* @__PURE__ */
|
|
3719
|
-
/* @__PURE__ */
|
|
3720
|
-
/* @__PURE__ */
|
|
3856
|
+
/* @__PURE__ */ v.jsxs(Ur, { children: [
|
|
3857
|
+
/* @__PURE__ */ v.jsx(Qr, { textColor: a != null && a.statusCode.includes("200") ? "#23B33A" : "#CD3746", children: (a == null ? void 0 : a.statusCode) || "" }),
|
|
3858
|
+
/* @__PURE__ */ v.jsx(_r, { children: a != null && a.response ? /* @__PURE__ */ v.jsx("pre", { children: JSON.stringify(a.response, null, 2) }) : null })
|
|
3721
3859
|
] }),
|
|
3722
|
-
/* @__PURE__ */
|
|
3860
|
+
/* @__PURE__ */ v.jsx(
|
|
3861
|
+
Kr,
|
|
3862
|
+
{
|
|
3863
|
+
variant: "outlined",
|
|
3864
|
+
color: "tertiary",
|
|
3865
|
+
disabled: !r || e || c,
|
|
3866
|
+
onClick: g,
|
|
3867
|
+
children: "Send Test Request"
|
|
3868
|
+
}
|
|
3869
|
+
)
|
|
3723
3870
|
] });
|
|
3724
|
-
},
|
|
3725
|
-
|
|
3726
|
-
padding: 52px;
|
|
3871
|
+
}, qr = Z(j)`
|
|
3872
|
+
padding: 17px 52px 0 0;
|
|
3727
3873
|
box-sizing: border-box;
|
|
3728
3874
|
display: flex;
|
|
3729
3875
|
justify-content: space-between;
|
|
3730
3876
|
gap: 20px;
|
|
3731
3877
|
width: 100%;
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
const n = le(Xn), e = le(ni), i = le(Zn), u = le(ii), t = le(wn), r = le(Pn), o = Hn(), { id: s = "" } = Ln(), [a] = Dn(), l = a.get("isEdit") === "true", c = Ke();
|
|
3736
|
-
ee(
|
|
3878
|
+
`, oo = () => {
|
|
3879
|
+
const n = ce(di), e = ce(gi), u = ce(pi), i = ce(bi), t = ce(hi), r = ce(fi), o = jt(), { id: s = "" } = zn(), [a] = Un(), l = a.get("isEdit") === "true", c = n == null ? void 0 : n[s], d = at();
|
|
3880
|
+
ne(
|
|
3737
3881
|
() => () => {
|
|
3738
|
-
|
|
3882
|
+
d(Qn()), d(_n.clearSelectedTemplate());
|
|
3739
3883
|
},
|
|
3740
|
-
[
|
|
3741
|
-
),
|
|
3742
|
-
|
|
3743
|
-
}, [l,
|
|
3744
|
-
let
|
|
3745
|
-
const
|
|
3746
|
-
|
|
3884
|
+
[d]
|
|
3885
|
+
), ne(() => {
|
|
3886
|
+
d(l ? Kn(s) : $n(s));
|
|
3887
|
+
}, [l, d, s]), ne(() => {
|
|
3888
|
+
let I, p, m;
|
|
3889
|
+
const A = (C) => {
|
|
3890
|
+
I && C.origin === window.location.origin && (C.data === qn || C.data === ft) && (clearTimeout(p), I.close(), d(Oe(C.data === ft ? O.OAUTH_SUCCESS : O.OAUTH_FAILED)));
|
|
3747
3891
|
};
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3892
|
+
if (t) {
|
|
3893
|
+
I = window.open(t, "_blank");
|
|
3894
|
+
const C = 5 * 60 * 1e3;
|
|
3895
|
+
p = setTimeout(() => {
|
|
3896
|
+
I == null || I.close(), d(Oe(O.OAUTH_FAILED));
|
|
3897
|
+
}, C), m = setInterval(() => {
|
|
3898
|
+
I && I.closed && (clearInterval(m), I = null, d(Oe(O.OAUTH_FAILED)));
|
|
3899
|
+
}, 500), window.addEventListener("message", A);
|
|
3900
|
+
}
|
|
3901
|
+
return () => {
|
|
3902
|
+
window.removeEventListener("message", A), clearTimeout(p), clearInterval(m);
|
|
3752
3903
|
};
|
|
3753
|
-
}, [t,
|
|
3754
|
-
(r ===
|
|
3904
|
+
}, [t, d]), ne(() => {
|
|
3905
|
+
switch ((r === O.OAUTH_SUCCESS || r === O.OAUTH_FAILED || r === O.API_KEY_SUCCESS || r === O.API_KEY_FAILED) && o(ve.BASEPATH), r) {
|
|
3906
|
+
case O.OAUTH_SUCCESS: {
|
|
3907
|
+
Ce({ message: ni, type: At });
|
|
3908
|
+
break;
|
|
3909
|
+
}
|
|
3910
|
+
case O.OAUTH_FAILED: {
|
|
3911
|
+
Ce({ message: ti, type: Me });
|
|
3912
|
+
break;
|
|
3913
|
+
}
|
|
3914
|
+
case O.REQUEST_FAILED: {
|
|
3915
|
+
Ce({ message: vt, type: Me });
|
|
3916
|
+
break;
|
|
3917
|
+
}
|
|
3918
|
+
case O.API_KEY_SUCCESS: {
|
|
3919
|
+
Ce({ message: ei, type: At });
|
|
3920
|
+
break;
|
|
3921
|
+
}
|
|
3922
|
+
case O.API_KEY_FAILED: {
|
|
3923
|
+
Ce({ message: vt, type: Me });
|
|
3924
|
+
break;
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3755
3927
|
}, [r, o]);
|
|
3756
|
-
const
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3928
|
+
const g = l ? c : e, b = u === _e.LOADING || i === _e.LOADING, f = [
|
|
3929
|
+
{ name: Mr, route: `${ve.BASEPATH}${ve.DASHBOARD}` },
|
|
3930
|
+
{
|
|
3931
|
+
name: (g == null ? void 0 : g.name) || "",
|
|
3932
|
+
route: `${ve.BASEPATH}${ve.API_VIEW}/${s}?isEdit=${String(l)}`
|
|
3933
|
+
},
|
|
3934
|
+
{ name: Rn }
|
|
3935
|
+
];
|
|
3936
|
+
return /* @__PURE__ */ v.jsxs(qr, { direction: "row", children: [
|
|
3937
|
+
/* @__PURE__ */ v.jsxs("div", { children: [
|
|
3938
|
+
/* @__PURE__ */ v.jsx(xi, { options: f }),
|
|
3939
|
+
/* @__PURE__ */ v.jsx(
|
|
3940
|
+
Yr,
|
|
3762
3941
|
{
|
|
3763
3942
|
connectorId: s,
|
|
3764
3943
|
isEdit: l,
|
|
3765
|
-
connectorData:
|
|
3944
|
+
connectorData: g,
|
|
3766
3945
|
authStatus: r,
|
|
3767
|
-
isLoading:
|
|
3946
|
+
isLoading: b
|
|
3768
3947
|
}
|
|
3769
3948
|
)
|
|
3770
3949
|
] }),
|
|
3771
|
-
/* @__PURE__ */
|
|
3772
|
-
|
|
3950
|
+
/* @__PURE__ */ v.jsx(
|
|
3951
|
+
$r,
|
|
3773
3952
|
{
|
|
3953
|
+
connectorData: g,
|
|
3774
3954
|
connectorId: s,
|
|
3775
|
-
disabled:
|
|
3955
|
+
disabled: b || !(g != null && g.isAuthenticated)
|
|
3776
3956
|
}
|
|
3777
3957
|
)
|
|
3778
3958
|
] });
|
|
3779
3959
|
};
|
|
3780
3960
|
export {
|
|
3781
|
-
|
|
3961
|
+
oo as Settings
|
|
3782
3962
|
};
|