@hiver/connector-admin 1.0.0 → 1.0.1-beta.2
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/pages/connector-view/dashboard/index.d.ts.map +1 -1
- package/app/connectors/router.d.ts.map +1 -1
- package/components/ui/form-fields/index.d.ts.map +1 -1
- package/features/auth/components/auth-form/index.d.ts.map +1 -1
- package/features/auth/constants/form-config.d.ts +1 -0
- package/features/auth/constants/form-config.d.ts.map +1 -1
- package/features/auth/types/request.d.ts +4 -0
- package/features/auth/types/request.d.ts.map +1 -1
- package/features/auth/utils/index.d.ts +6 -0
- package/features/auth/utils/index.d.ts.map +1 -1
- package/features/connector-library/components/connector-library-skeleton/index.d.ts +2 -0
- package/features/connector-library/components/connector-library-skeleton/index.d.ts.map +1 -0
- package/features/connector-library/components/connector-library-skeleton/styles.d.ts +4 -0
- package/features/connector-library/components/connector-library-skeleton/styles.d.ts.map +1 -0
- package/features/connector-library/store/initial-state.d.ts +1 -1
- package/features/connector-library/store/initial-state.d.ts.map +1 -1
- package/features/connector-library/store/selectors.d.ts +1 -1
- package/index.es.js +42523 -5
- package/index.umd.js +1515 -1507
- package/package.json +1 -1
- package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
- package/types/connector.d.ts +3 -4
- package/types/connector.d.ts.map +1 -1
- package/types/form.d.ts +4 -1
- package/types/form.d.ts.map +1 -1
- package/gainsight-7AZqfBvZ.js +0 -25
- package/hooks-CjAK86gy.js +0 -6
- package/index-BAHDqKss.js +0 -29
- package/index-BluFU4Qp.js +0 -81
- package/index-BnVEsSdV.js +0 -3962
- package/index-BqGsuBlL.js +0 -31966
- package/index-DKo2NU-Y.js +0 -104
- package/index-Dt3uzcNe.js +0 -3727
- package/index-iNlSCq_d.js +0 -190
- package/selectors-BZXXKPzK.js +0 -9
- package/showMessage-CQ6TNMXe.js +0 -2648
package/index-BnVEsSdV.js
DELETED
|
@@ -1,3962 +0,0 @@
|
|
|
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)`
|
|
10
|
-
margin-bottom: 36px;
|
|
11
|
-
.arrow {
|
|
12
|
-
border: solid ${Qe.palette.gray.gray3};
|
|
13
|
-
border-width: 0 2px 2px 0;
|
|
14
|
-
display: inline-block;
|
|
15
|
-
padding: 3px;
|
|
16
|
-
transform: rotate(-45deg);
|
|
17
|
-
-webkit-transform: rotate(-45deg);
|
|
18
|
-
height: 5px;
|
|
19
|
-
}
|
|
20
|
-
`, Ci = Z(Ie)`
|
|
21
|
-
margin-right: 4px;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
`, Ai = Z(j)`
|
|
24
|
-
width: 20px;
|
|
25
|
-
height: 20px;
|
|
26
|
-
margin-right: 4px;
|
|
27
|
-
padding-right: 6px;
|
|
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) {
|
|
51
|
-
"@babel/helpers - typeof";
|
|
52
|
-
return pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
53
|
-
return typeof e;
|
|
54
|
-
} : function(e) {
|
|
55
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
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;
|
|
64
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
65
|
-
}
|
|
66
|
-
return (e === "string" ? String : Number)(n);
|
|
67
|
-
}
|
|
68
|
-
function _t(n) {
|
|
69
|
-
var e = yi(n, "string");
|
|
70
|
-
return pe(e) == "symbol" ? e : e + "";
|
|
71
|
-
}
|
|
72
|
-
function xe(n, e, u) {
|
|
73
|
-
return (e = _t(e)) in n ? Object.defineProperty(n, e, {
|
|
74
|
-
value: u,
|
|
75
|
-
enumerable: !0,
|
|
76
|
-
configurable: !0,
|
|
77
|
-
writable: !0
|
|
78
|
-
}) : n[e] = u, n;
|
|
79
|
-
}
|
|
80
|
-
function xt(n, e) {
|
|
81
|
-
var u = Object.keys(n);
|
|
82
|
-
if (Object.getOwnPropertySymbols) {
|
|
83
|
-
var i = Object.getOwnPropertySymbols(n);
|
|
84
|
-
e && (i = i.filter(function(t) {
|
|
85
|
-
return Object.getOwnPropertyDescriptor(n, t).enumerable;
|
|
86
|
-
})), u.push.apply(u, i);
|
|
87
|
-
}
|
|
88
|
-
return u;
|
|
89
|
-
}
|
|
90
|
-
function E(n) {
|
|
91
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
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));
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
return n;
|
|
100
|
-
}
|
|
101
|
-
function Ei(n) {
|
|
102
|
-
if (Array.isArray(n)) return n;
|
|
103
|
-
}
|
|
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;
|
|
108
|
-
try {
|
|
109
|
-
if (r = (u = u.call(n)).next, e === 0) {
|
|
110
|
-
if (Object(u) !== u) return;
|
|
111
|
-
a = !1;
|
|
112
|
-
} else for (; !(a = (i = r.call(u)).done) && (s.push(i.value), s.length !== e); a = !0) ;
|
|
113
|
-
} catch (c) {
|
|
114
|
-
l = !0, t = c;
|
|
115
|
-
} finally {
|
|
116
|
-
try {
|
|
117
|
-
if (!a && u.return != null && (o = u.return(), Object(o) !== o)) return;
|
|
118
|
-
} finally {
|
|
119
|
-
if (l) throw t;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return s;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
function qe(n, e) {
|
|
126
|
-
(e == null || e > n.length) && (e = n.length);
|
|
127
|
-
for (var u = 0, i = Array(e); u < e; u++) i[u] = n[u];
|
|
128
|
-
return i;
|
|
129
|
-
}
|
|
130
|
-
function Kt(n, e) {
|
|
131
|
-
if (n) {
|
|
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;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
function Fi() {
|
|
138
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
139
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
140
|
-
}
|
|
141
|
-
function ie(n, e) {
|
|
142
|
-
return Ei(n) || Gi(n, e) || Kt(n, e) || Fi();
|
|
143
|
-
}
|
|
144
|
-
function Bi(n, e) {
|
|
145
|
-
if (n == null) return {};
|
|
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];
|
|
150
|
-
}
|
|
151
|
-
return u;
|
|
152
|
-
}
|
|
153
|
-
function ae(n, e) {
|
|
154
|
-
if (n == null) return {};
|
|
155
|
-
var u, i, t = Bi(n, e);
|
|
156
|
-
if (Object.getOwnPropertySymbols) {
|
|
157
|
-
var r = Object.getOwnPropertySymbols(n);
|
|
158
|
-
for (i = 0; i < r.length; i++) u = r[i], e.includes(u) || {}.propertyIsEnumerable.call(n, u) && (t[u] = n[u]);
|
|
159
|
-
}
|
|
160
|
-
return t;
|
|
161
|
-
}
|
|
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
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
function G() {
|
|
185
|
-
return G = Object.assign ? Object.assign.bind() : function(n) {
|
|
186
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
187
|
-
var u = arguments[e];
|
|
188
|
-
for (var i in u) ({}).hasOwnProperty.call(u, i) && (n[i] = u[i]);
|
|
189
|
-
}
|
|
190
|
-
return n;
|
|
191
|
-
}, G.apply(null, arguments);
|
|
192
|
-
}
|
|
193
|
-
function Vi(n, e) {
|
|
194
|
-
if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
195
|
-
}
|
|
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);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
function Ri(n, e, u) {
|
|
203
|
-
return e && yt(n.prototype, e), u && yt(n, u), Object.defineProperty(n, "prototype", {
|
|
204
|
-
writable: !1
|
|
205
|
-
}), n;
|
|
206
|
-
}
|
|
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);
|
|
211
|
-
}
|
|
212
|
-
function Wi(n, e) {
|
|
213
|
-
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
214
|
-
n.prototype = Object.create(e && e.prototype, {
|
|
215
|
-
constructor: {
|
|
216
|
-
value: n,
|
|
217
|
-
writable: !0,
|
|
218
|
-
configurable: !0
|
|
219
|
-
}
|
|
220
|
-
}), Object.defineProperty(n, "prototype", {
|
|
221
|
-
writable: !1
|
|
222
|
-
}), e && et(n, e);
|
|
223
|
-
}
|
|
224
|
-
function Re(n) {
|
|
225
|
-
return Re = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
226
|
-
return e.__proto__ || Object.getPrototypeOf(e);
|
|
227
|
-
}, Re(n);
|
|
228
|
-
}
|
|
229
|
-
function $t() {
|
|
230
|
-
try {
|
|
231
|
-
var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
232
|
-
}));
|
|
233
|
-
} catch {
|
|
234
|
-
}
|
|
235
|
-
return ($t = function() {
|
|
236
|
-
return !!n;
|
|
237
|
-
})();
|
|
238
|
-
}
|
|
239
|
-
function Ni(n) {
|
|
240
|
-
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
241
|
-
return n;
|
|
242
|
-
}
|
|
243
|
-
function Xi(n, e) {
|
|
244
|
-
if (e && (pe(e) == "object" || typeof e == "function")) return e;
|
|
245
|
-
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
246
|
-
return Ni(n);
|
|
247
|
-
}
|
|
248
|
-
function Zi(n) {
|
|
249
|
-
var e = $t();
|
|
250
|
-
return function() {
|
|
251
|
-
var u, i = Re(n);
|
|
252
|
-
if (e) {
|
|
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);
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
function wi(n) {
|
|
260
|
-
if (Array.isArray(n)) return qe(n);
|
|
261
|
-
}
|
|
262
|
-
function Pi(n) {
|
|
263
|
-
if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
|
|
264
|
-
}
|
|
265
|
-
function Hi() {
|
|
266
|
-
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
267
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
268
|
-
}
|
|
269
|
-
function rt(n) {
|
|
270
|
-
return wi(n) || Pi(n) || Kt(n) || Hi();
|
|
271
|
-
}
|
|
272
|
-
function Li(n, e) {
|
|
273
|
-
return e || (e = n.slice(0)), Object.freeze(Object.defineProperties(n, {
|
|
274
|
-
raw: {
|
|
275
|
-
value: Object.freeze(e)
|
|
276
|
-
}
|
|
277
|
-
}));
|
|
278
|
-
}
|
|
279
|
-
const Di = Math.min, Oi = Math.max, We = Math.round, Ge = Math.floor, Ne = (n) => ({
|
|
280
|
-
x: n,
|
|
281
|
-
y: n
|
|
282
|
-
});
|
|
283
|
-
function Mi(n) {
|
|
284
|
-
const {
|
|
285
|
-
x: e,
|
|
286
|
-
y: u,
|
|
287
|
-
width: i,
|
|
288
|
-
height: t
|
|
289
|
-
} = n;
|
|
290
|
-
return {
|
|
291
|
-
width: i,
|
|
292
|
-
height: t,
|
|
293
|
-
top: u,
|
|
294
|
-
left: e,
|
|
295
|
-
right: e + i,
|
|
296
|
-
bottom: u + t,
|
|
297
|
-
x: e,
|
|
298
|
-
y: u
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
function He() {
|
|
302
|
-
return typeof window < "u";
|
|
303
|
-
}
|
|
304
|
-
function qt(n) {
|
|
305
|
-
return tn(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
|
306
|
-
}
|
|
307
|
-
function ue(n) {
|
|
308
|
-
var e;
|
|
309
|
-
return (n == null || (e = n.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
310
|
-
}
|
|
311
|
-
function en(n) {
|
|
312
|
-
var e;
|
|
313
|
-
return (e = (tn(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : e.documentElement;
|
|
314
|
-
}
|
|
315
|
-
function tn(n) {
|
|
316
|
-
return He() ? n instanceof Node || n instanceof ue(n).Node : !1;
|
|
317
|
-
}
|
|
318
|
-
function ki(n) {
|
|
319
|
-
return He() ? n instanceof Element || n instanceof ue(n).Element : !1;
|
|
320
|
-
}
|
|
321
|
-
function ot(n) {
|
|
322
|
-
return He() ? n instanceof HTMLElement || n instanceof ue(n).HTMLElement : !1;
|
|
323
|
-
}
|
|
324
|
-
function Et(n) {
|
|
325
|
-
return !He() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof ue(n).ShadowRoot;
|
|
326
|
-
}
|
|
327
|
-
function nn(n) {
|
|
328
|
-
const {
|
|
329
|
-
overflow: e,
|
|
330
|
-
overflowX: u,
|
|
331
|
-
overflowY: i,
|
|
332
|
-
display: t
|
|
333
|
-
} = lt(n);
|
|
334
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + i + u) && !["inline", "contents"].includes(t);
|
|
335
|
-
}
|
|
336
|
-
function Yi() {
|
|
337
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
338
|
-
}
|
|
339
|
-
function Ji(n) {
|
|
340
|
-
return ["html", "body", "#document"].includes(qt(n));
|
|
341
|
-
}
|
|
342
|
-
function lt(n) {
|
|
343
|
-
return ue(n).getComputedStyle(n);
|
|
344
|
-
}
|
|
345
|
-
function ji(n) {
|
|
346
|
-
if (qt(n) === "html")
|
|
347
|
-
return n;
|
|
348
|
-
const e = (
|
|
349
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
350
|
-
n.assignedSlot || // DOM Element detected.
|
|
351
|
-
n.parentNode || // ShadowRoot detected.
|
|
352
|
-
Et(n) && n.host || // Fallback.
|
|
353
|
-
en(n)
|
|
354
|
-
);
|
|
355
|
-
return Et(e) ? e.host : e;
|
|
356
|
-
}
|
|
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);
|
|
360
|
-
}
|
|
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);
|
|
365
|
-
if (r) {
|
|
366
|
-
const s = tt(o);
|
|
367
|
-
return e.concat(o, o.visualViewport || [], nn(t) ? t : [], s && u ? Xe(s) : []);
|
|
368
|
-
}
|
|
369
|
-
return e.concat(t, Xe(t, [], u));
|
|
370
|
-
}
|
|
371
|
-
function tt(n) {
|
|
372
|
-
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
373
|
-
}
|
|
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,
|
|
381
|
-
$: s
|
|
382
|
-
};
|
|
383
|
-
}
|
|
384
|
-
function st(n) {
|
|
385
|
-
return ki(n) ? n : n.contextElement;
|
|
386
|
-
}
|
|
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,
|
|
393
|
-
height: t,
|
|
394
|
-
$: r
|
|
395
|
-
} = zi(e);
|
|
396
|
-
let o = (r ? We(u.width) : u.width) / i, s = (r ? We(u.height) : u.height) / t;
|
|
397
|
-
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
398
|
-
x: o,
|
|
399
|
-
y: s
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
const Ui = /* @__PURE__ */ Ne(0);
|
|
403
|
-
function Qi(n) {
|
|
404
|
-
const e = ue(n);
|
|
405
|
-
return !Yi() || !e.visualViewport ? Ui : {
|
|
406
|
-
x: e.visualViewport.offsetLeft,
|
|
407
|
-
y: e.visualViewport.offsetTop
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
function _i(n, e, u) {
|
|
411
|
-
return !1;
|
|
412
|
-
}
|
|
413
|
-
function Ft(n, e, u, i) {
|
|
414
|
-
e === void 0 && (e = !1);
|
|
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);
|
|
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;
|
|
420
|
-
if (r) {
|
|
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);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
return Mi({
|
|
429
|
-
width: c,
|
|
430
|
-
height: d,
|
|
431
|
-
x: a,
|
|
432
|
-
y: l
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
function Ki(n, e) {
|
|
436
|
-
let u = null, i;
|
|
437
|
-
const t = en(n);
|
|
438
|
-
function r() {
|
|
439
|
-
var s;
|
|
440
|
-
clearTimeout(i), (s = u) == null || s.disconnect(), u = null;
|
|
441
|
-
}
|
|
442
|
-
function o(s, a) {
|
|
443
|
-
s === void 0 && (s = !1), a === void 0 && (a = 1), r();
|
|
444
|
-
const {
|
|
445
|
-
left: l,
|
|
446
|
-
top: c,
|
|
447
|
-
width: d,
|
|
448
|
-
height: g
|
|
449
|
-
} = n.getBoundingClientRect();
|
|
450
|
-
if (s || e(), !d || !g)
|
|
451
|
-
return;
|
|
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
|
|
455
|
-
};
|
|
456
|
-
let C = !0;
|
|
457
|
-
function T(V) {
|
|
458
|
-
const x = V[0].intersectionRatio;
|
|
459
|
-
if (x !== a) {
|
|
460
|
-
if (!C)
|
|
461
|
-
return o();
|
|
462
|
-
x ? o(!1, x) : i = setTimeout(() => {
|
|
463
|
-
o(!1, 1e-7);
|
|
464
|
-
}, 1e3);
|
|
465
|
-
}
|
|
466
|
-
C = !1;
|
|
467
|
-
}
|
|
468
|
-
try {
|
|
469
|
-
u = new IntersectionObserver(T, {
|
|
470
|
-
...A,
|
|
471
|
-
// Handle <iframe>s
|
|
472
|
-
root: t.ownerDocument
|
|
473
|
-
});
|
|
474
|
-
} catch {
|
|
475
|
-
u = new IntersectionObserver(T, A);
|
|
476
|
-
}
|
|
477
|
-
u.observe(n);
|
|
478
|
-
}
|
|
479
|
-
return o(!0), r;
|
|
480
|
-
}
|
|
481
|
-
function $i(n, e, u, i) {
|
|
482
|
-
i === void 0 && (i = {});
|
|
483
|
-
const {
|
|
484
|
-
ancestorScroll: t = !0,
|
|
485
|
-
ancestorResize: r = !0,
|
|
486
|
-
elementResize: o = typeof ResizeObserver == "function",
|
|
487
|
-
layoutShift: s = typeof IntersectionObserver == "function",
|
|
488
|
-
animationFrame: a = !1
|
|
489
|
-
} = i, l = st(n), c = t || r ? [...l ? Xe(l) : [], ...Xe(e)] : [];
|
|
490
|
-
c.forEach((m) => {
|
|
491
|
-
t && m.addEventListener("scroll", u, {
|
|
492
|
-
passive: !0
|
|
493
|
-
}), r && m.addEventListener("resize", u);
|
|
494
|
-
});
|
|
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);
|
|
509
|
-
}
|
|
510
|
-
return u(), () => {
|
|
511
|
-
var 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);
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
var nt = ui, qi = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ze = function() {
|
|
518
|
-
};
|
|
519
|
-
function eu(n, e) {
|
|
520
|
-
return e ? e[0] === "-" ? n + e : n + "__" + e : n;
|
|
521
|
-
}
|
|
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);
|
|
526
|
-
if (e && n)
|
|
527
|
-
for (var o in e)
|
|
528
|
-
e.hasOwnProperty(o) && e[o] && r.push("".concat(eu(n, o)));
|
|
529
|
-
return r.filter(function(s) {
|
|
530
|
-
return s;
|
|
531
|
-
}).map(function(s) {
|
|
532
|
-
return String(s).trim();
|
|
533
|
-
}).join(" ");
|
|
534
|
-
}
|
|
535
|
-
var Bt = function(e) {
|
|
536
|
-
return cu(e) ? e.filter(Boolean) : pe(e) === "object" && e !== null ? [e] : [];
|
|
537
|
-
}, an = function(e) {
|
|
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;
|
|
539
|
-
var u = ae(e, qi);
|
|
540
|
-
return E({}, u);
|
|
541
|
-
}, X = function(e, u, i) {
|
|
542
|
-
var t = e.cx, r = e.getStyles, o = e.getClassNames, s = e.className;
|
|
543
|
-
return {
|
|
544
|
-
css: r(u, e),
|
|
545
|
-
className: t(i ?? {}, o(u, e), s)
|
|
546
|
-
};
|
|
547
|
-
};
|
|
548
|
-
function Le(n) {
|
|
549
|
-
return [document.documentElement, document.body, window].indexOf(n) > -1;
|
|
550
|
-
}
|
|
551
|
-
function nu(n) {
|
|
552
|
-
return Le(n) ? window.innerHeight : n.clientHeight;
|
|
553
|
-
}
|
|
554
|
-
function rn(n) {
|
|
555
|
-
return Le(n) ? window.pageYOffset : n.scrollTop;
|
|
556
|
-
}
|
|
557
|
-
function we(n, e) {
|
|
558
|
-
if (Le(n)) {
|
|
559
|
-
window.scrollTo(0, e);
|
|
560
|
-
return;
|
|
561
|
-
}
|
|
562
|
-
n.scrollTop = e;
|
|
563
|
-
}
|
|
564
|
-
function iu(n) {
|
|
565
|
-
var e = getComputedStyle(n), u = e.position === "absolute", i = /(auto|scroll)/;
|
|
566
|
-
if (e.position === "fixed") return document.documentElement;
|
|
567
|
-
for (var t = n; t = t.parentElement; )
|
|
568
|
-
if (e = getComputedStyle(t), !(u && e.position === "static") && i.test(e.overflow + e.overflowY + e.overflowX))
|
|
569
|
-
return t;
|
|
570
|
-
return document.documentElement;
|
|
571
|
-
}
|
|
572
|
-
function uu(n, e, u, i) {
|
|
573
|
-
return u * ((n = n / i - 1) * n * n + 1) + e;
|
|
574
|
-
}
|
|
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;
|
|
577
|
-
function a() {
|
|
578
|
-
s += o;
|
|
579
|
-
var l = uu(s, t, r, u);
|
|
580
|
-
we(n, l), s < u ? window.requestAnimationFrame(a) : i(n);
|
|
581
|
-
}
|
|
582
|
-
a();
|
|
583
|
-
}
|
|
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));
|
|
587
|
-
}
|
|
588
|
-
function au(n) {
|
|
589
|
-
var e = n.getBoundingClientRect();
|
|
590
|
-
return {
|
|
591
|
-
bottom: e.bottom,
|
|
592
|
-
height: e.height,
|
|
593
|
-
left: e.left,
|
|
594
|
-
right: e.right,
|
|
595
|
-
top: e.top,
|
|
596
|
-
width: e.width
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
function St() {
|
|
600
|
-
try {
|
|
601
|
-
return document.createEvent("TouchEvent"), !0;
|
|
602
|
-
} catch {
|
|
603
|
-
return !1;
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
function ru() {
|
|
607
|
-
try {
|
|
608
|
-
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
609
|
-
} catch {
|
|
610
|
-
return !1;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
var on = !1, ou = {
|
|
614
|
-
get passive() {
|
|
615
|
-
return on = !0;
|
|
616
|
-
}
|
|
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) {
|
|
621
|
-
return n != null;
|
|
622
|
-
}
|
|
623
|
-
function cu(n) {
|
|
624
|
-
return Array.isArray(n);
|
|
625
|
-
}
|
|
626
|
-
function Te(n, e, u) {
|
|
627
|
-
return n ? e : u;
|
|
628
|
-
}
|
|
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];
|
|
632
|
-
var r = Object.entries(e).filter(function(o) {
|
|
633
|
-
var s = ie(o, 1), a = s[0];
|
|
634
|
-
return !i.includes(a);
|
|
635
|
-
});
|
|
636
|
-
return r.reduce(function(o, s) {
|
|
637
|
-
var a = ie(s, 2), l = a[0], c = a[1];
|
|
638
|
-
return o[l] = c, o;
|
|
639
|
-
}, {});
|
|
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 = {
|
|
643
|
-
placement: "bottom",
|
|
644
|
-
maxHeight: e
|
|
645
|
-
};
|
|
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;
|
|
648
|
-
switch (t) {
|
|
649
|
-
case "auto":
|
|
650
|
-
case "bottom":
|
|
651
|
-
if (S >= f)
|
|
652
|
-
return {
|
|
653
|
-
placement: "bottom",
|
|
654
|
-
maxHeight: e
|
|
655
|
-
};
|
|
656
|
-
if (B >= f && !o)
|
|
657
|
-
return r && Fe(a, W, L), {
|
|
658
|
-
placement: "bottom",
|
|
659
|
-
maxHeight: e
|
|
660
|
-
};
|
|
661
|
-
if (!o && B >= i || o && S >= i) {
|
|
662
|
-
r && Fe(a, W, L);
|
|
663
|
-
var Q = o ? S - T : B - T;
|
|
664
|
-
return {
|
|
665
|
-
placement: "bottom",
|
|
666
|
-
maxHeight: Q
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
if (t === "auto" || o) {
|
|
670
|
-
var _ = e, H = o ? x : h;
|
|
671
|
-
return H >= i && (_ = Math.min(H - T - s, e)), {
|
|
672
|
-
placement: "top",
|
|
673
|
-
maxHeight: _
|
|
674
|
-
};
|
|
675
|
-
}
|
|
676
|
-
if (t === "bottom")
|
|
677
|
-
return r && we(a, W), {
|
|
678
|
-
placement: "bottom",
|
|
679
|
-
maxHeight: e
|
|
680
|
-
};
|
|
681
|
-
break;
|
|
682
|
-
case "top":
|
|
683
|
-
if (x >= f)
|
|
684
|
-
return {
|
|
685
|
-
placement: "top",
|
|
686
|
-
maxHeight: e
|
|
687
|
-
};
|
|
688
|
-
if (h >= f && !o)
|
|
689
|
-
return r && Fe(a, N, L), {
|
|
690
|
-
placement: "top",
|
|
691
|
-
maxHeight: e
|
|
692
|
-
};
|
|
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), {
|
|
696
|
-
placement: "top",
|
|
697
|
-
maxHeight: w
|
|
698
|
-
};
|
|
699
|
-
}
|
|
700
|
-
return {
|
|
701
|
-
placement: "bottom",
|
|
702
|
-
maxHeight: e
|
|
703
|
-
};
|
|
704
|
-
default:
|
|
705
|
-
throw new Error('Invalid placement provided "'.concat(t, '".'));
|
|
706
|
-
}
|
|
707
|
-
return l;
|
|
708
|
-
}
|
|
709
|
-
function Iu(n) {
|
|
710
|
-
var e = {
|
|
711
|
-
bottom: "top",
|
|
712
|
-
top: "bottom"
|
|
713
|
-
};
|
|
714
|
-
return n ? e[n] : "bottom";
|
|
715
|
-
}
|
|
716
|
-
var ln = function(e) {
|
|
717
|
-
return e === "auto" ? "bottom" : e;
|
|
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 = {
|
|
721
|
-
label: "menu"
|
|
722
|
-
}, xe(i, Iu(t), "100%"), xe(i, "position", "absolute"), xe(i, "width", "100%"), xe(i, "zIndex", 1), i), u ? {} : {
|
|
723
|
-
backgroundColor: a.neutral0,
|
|
724
|
-
borderRadius: o,
|
|
725
|
-
boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
|
|
726
|
-
marginBottom: s.menuGutter,
|
|
727
|
-
marginTop: s.menuGutter
|
|
728
|
-
});
|
|
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({
|
|
735
|
-
maxHeight: t,
|
|
736
|
-
menuEl: V,
|
|
737
|
-
minHeight: i,
|
|
738
|
-
placement: r,
|
|
739
|
-
shouldScroll: S,
|
|
740
|
-
isFixedPosition: x,
|
|
741
|
-
controlHeight: T
|
|
742
|
-
});
|
|
743
|
-
I(h.maxHeight), C(h.placement), c == null || c(h.placement);
|
|
744
|
-
}
|
|
745
|
-
}, [t, r, o, s, i, c, T]), u({
|
|
746
|
-
ref: d,
|
|
747
|
-
placerProps: E(E({}, e), {}, {
|
|
748
|
-
placement: A || ln(r),
|
|
749
|
-
maxHeight: f
|
|
750
|
-
})
|
|
751
|
-
});
|
|
752
|
-
}, fu = function(e) {
|
|
753
|
-
var u = e.children, i = e.innerRef, t = e.innerProps;
|
|
754
|
-
return y("div", G({}, X(e, "menu", {
|
|
755
|
-
menu: !0
|
|
756
|
-
}), {
|
|
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,
|
|
763
|
-
overflowY: "auto",
|
|
764
|
-
position: "relative",
|
|
765
|
-
// required for offset[Height, Top] > keyboard scroll
|
|
766
|
-
WebkitOverflowScrolling: "touch"
|
|
767
|
-
}, u ? {} : {
|
|
768
|
-
paddingBottom: t,
|
|
769
|
-
paddingTop: t
|
|
770
|
-
});
|
|
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", {
|
|
774
|
-
"menu-list": !0,
|
|
775
|
-
"menu-list--is-multi": r
|
|
776
|
-
}), {
|
|
777
|
-
ref: t
|
|
778
|
-
}, i), u);
|
|
779
|
-
}, cn = function(e, u) {
|
|
780
|
-
var i = e.theme, t = i.spacing.baseUnit, r = i.colors;
|
|
781
|
-
return E({
|
|
782
|
-
textAlign: "center"
|
|
783
|
-
}, u ? {} : {
|
|
784
|
-
color: r.neutral40,
|
|
785
|
-
padding: "".concat(t * 2, "px ").concat(t * 3, "px")
|
|
786
|
-
});
|
|
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,
|
|
791
|
-
innerProps: t
|
|
792
|
-
}), "noOptionsMessage", {
|
|
793
|
-
"menu-notice": !0,
|
|
794
|
-
"menu-notice--no-options": !0
|
|
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,
|
|
800
|
-
innerProps: t
|
|
801
|
-
}), "loadingMessage", {
|
|
802
|
-
"menu-notice": !0,
|
|
803
|
-
"menu-notice--loading": !0
|
|
804
|
-
}), t), i);
|
|
805
|
-
}, Fu = function(e) {
|
|
806
|
-
var u = e.rect, i = e.offset, t = e.position;
|
|
807
|
-
return {
|
|
808
|
-
left: u.left,
|
|
809
|
-
position: t,
|
|
810
|
-
top: i,
|
|
811
|
-
width: u.width,
|
|
812
|
-
zIndex: 1
|
|
813
|
-
};
|
|
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() {
|
|
816
|
-
return {
|
|
817
|
-
setPortalPlacement: b
|
|
818
|
-
};
|
|
819
|
-
}, []), I = J(null), p = ie(I, 2), m = p[0], A = p[1], C = D(function() {
|
|
820
|
-
if (t) {
|
|
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,
|
|
824
|
-
rect: S
|
|
825
|
-
});
|
|
826
|
-
}
|
|
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, {
|
|
833
|
-
elementResize: "ResizeObserver" in window
|
|
834
|
-
}));
|
|
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), {}, {
|
|
846
|
-
offset: m.offset,
|
|
847
|
-
position: s,
|
|
848
|
-
rect: m.rect
|
|
849
|
-
}), "menuPortal", {
|
|
850
|
-
"menu-portal": !0
|
|
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;
|
|
857
|
-
return {
|
|
858
|
-
label: "container",
|
|
859
|
-
direction: i ? "rtl" : void 0,
|
|
860
|
-
pointerEvents: u ? "none" : void 0,
|
|
861
|
-
// cancel mouse events when disabled
|
|
862
|
-
position: "relative"
|
|
863
|
-
};
|
|
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", {
|
|
867
|
-
"--is-disabled": t,
|
|
868
|
-
"--is-rtl": r
|
|
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({
|
|
873
|
-
alignItems: "center",
|
|
874
|
-
display: t && r && o ? "flex" : "grid",
|
|
875
|
-
flex: 1,
|
|
876
|
-
flexWrap: "wrap",
|
|
877
|
-
WebkitOverflowScrolling: "touch",
|
|
878
|
-
position: "relative",
|
|
879
|
-
overflow: "hidden"
|
|
880
|
-
}, u ? {} : {
|
|
881
|
-
padding: "".concat(i.baseUnit / 2, "px ").concat(i.baseUnit * 2, "px")
|
|
882
|
-
});
|
|
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", {
|
|
886
|
-
"value-container": !0,
|
|
887
|
-
"value-container--is-multi": t,
|
|
888
|
-
"value-container--has-value": r
|
|
889
|
-
}), i), u);
|
|
890
|
-
}, Wu = function() {
|
|
891
|
-
return {
|
|
892
|
-
alignItems: "center",
|
|
893
|
-
alignSelf: "stretch",
|
|
894
|
-
display: "flex",
|
|
895
|
-
flexShrink: 0
|
|
896
|
-
};
|
|
897
|
-
}, Nu = function(e) {
|
|
898
|
-
var u = e.children, i = e.innerProps;
|
|
899
|
-
return y("div", G({}, X(e, "indicatorsContainer", {
|
|
900
|
-
indicators: !0
|
|
901
|
-
}), i), u);
|
|
902
|
-
}, Vt, Xu = ["size"], Zu = ["innerProps", "isRtl", "size"];
|
|
903
|
-
function wu() {
|
|
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).";
|
|
905
|
-
}
|
|
906
|
-
var Pu = process.env.NODE_ENV === "production" ? {
|
|
907
|
-
name: "8mmkcg",
|
|
908
|
-
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
|
|
909
|
-
} : {
|
|
910
|
-
name: "tj5bde-Svg",
|
|
911
|
-
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
|
|
912
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxu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AgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",
|
|
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,
|
|
919
|
-
viewBox: "0 0 20 20",
|
|
920
|
-
"aria-hidden": "true",
|
|
921
|
-
focusable: "false",
|
|
922
|
-
css: Pu
|
|
923
|
-
}, i));
|
|
924
|
-
}, ct = function(e) {
|
|
925
|
-
return y(dn, G({
|
|
926
|
-
size: 20
|
|
927
|
-
}, e), y("path", {
|
|
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"
|
|
929
|
-
}));
|
|
930
|
-
}, gn = function(e) {
|
|
931
|
-
return y(dn, G({
|
|
932
|
-
size: 20
|
|
933
|
-
}, e), y("path", {
|
|
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"
|
|
935
|
-
}));
|
|
936
|
-
}, pn = function(e, u) {
|
|
937
|
-
var i = e.isFocused, t = e.theme, r = t.spacing.baseUnit, o = t.colors;
|
|
938
|
-
return E({
|
|
939
|
-
label: "indicatorContainer",
|
|
940
|
-
display: "flex",
|
|
941
|
-
transition: "color 150ms"
|
|
942
|
-
}, u ? {} : {
|
|
943
|
-
color: i ? o.neutral60 : o.neutral20,
|
|
944
|
-
padding: r * 2,
|
|
945
|
-
":hover": {
|
|
946
|
-
color: i ? o.neutral80 : o.neutral40
|
|
947
|
-
}
|
|
948
|
-
});
|
|
949
|
-
}, Hu = pn, Lu = function(e) {
|
|
950
|
-
var u = e.children, i = e.innerProps;
|
|
951
|
-
return y("div", G({}, X(e, "dropdownIndicator", {
|
|
952
|
-
indicator: !0,
|
|
953
|
-
"dropdown-indicator": !0
|
|
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", {
|
|
958
|
-
indicator: !0,
|
|
959
|
-
"clear-indicator": !0
|
|
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({
|
|
964
|
-
label: "indicatorSeparator",
|
|
965
|
-
alignSelf: "stretch",
|
|
966
|
-
width: 1
|
|
967
|
-
}, u ? {} : {
|
|
968
|
-
backgroundColor: i ? o.neutral10 : o.neutral20,
|
|
969
|
-
marginBottom: r * 2,
|
|
970
|
-
marginTop: r * 2
|
|
971
|
-
});
|
|
972
|
-
}, ku = function(e) {
|
|
973
|
-
var u = e.innerProps;
|
|
974
|
-
return y("span", G({}, u, X(e, "indicatorSeparator", {
|
|
975
|
-
"indicator-separator": !0
|
|
976
|
-
})));
|
|
977
|
-
}, Yu = Zn(Vt || (Vt = Li([`
|
|
978
|
-
0%, 80%, 100% { opacity: 0; }
|
|
979
|
-
40% { opacity: 1; }
|
|
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({
|
|
983
|
-
label: "loadingIndicator",
|
|
984
|
-
display: "flex",
|
|
985
|
-
transition: "color 150ms",
|
|
986
|
-
alignSelf: "center",
|
|
987
|
-
fontSize: t,
|
|
988
|
-
lineHeight: 1,
|
|
989
|
-
marginRight: t,
|
|
990
|
-
textAlign: "center",
|
|
991
|
-
verticalAlign: "middle"
|
|
992
|
-
}, u ? {} : {
|
|
993
|
-
color: i ? o.neutral60 : o.neutral20,
|
|
994
|
-
padding: s * 2
|
|
995
|
-
});
|
|
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;"),
|
|
1001
|
-
backgroundColor: "currentColor",
|
|
1002
|
-
borderRadius: "1em",
|
|
1003
|
-
display: "inline-block",
|
|
1004
|
-
marginLeft: i ? "1em" : void 0,
|
|
1005
|
-
height: "1em",
|
|
1006
|
-
verticalAlign: "top",
|
|
1007
|
-
width: "1em"
|
|
1008
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnM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AgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")
|
|
1009
|
-
});
|
|
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,
|
|
1015
|
-
size: r
|
|
1016
|
-
}), "loadingIndicator", {
|
|
1017
|
-
indicator: !0,
|
|
1018
|
-
"loading-indicator": !0
|
|
1019
|
-
}), u), y(ke, {
|
|
1020
|
-
delay: 0,
|
|
1021
|
-
offset: i
|
|
1022
|
-
}), y(ke, {
|
|
1023
|
-
delay: 160,
|
|
1024
|
-
offset: !0
|
|
1025
|
-
}), y(ke, {
|
|
1026
|
-
delay: 320,
|
|
1027
|
-
offset: !i
|
|
1028
|
-
}));
|
|
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({
|
|
1032
|
-
label: "control",
|
|
1033
|
-
alignItems: "center",
|
|
1034
|
-
cursor: "default",
|
|
1035
|
-
display: "flex",
|
|
1036
|
-
flexWrap: "wrap",
|
|
1037
|
-
justifyContent: "space-between",
|
|
1038
|
-
minHeight: a.controlHeight,
|
|
1039
|
-
outline: "0 !important",
|
|
1040
|
-
position: "relative",
|
|
1041
|
-
transition: "all 100ms"
|
|
1042
|
-
}, u ? {} : {
|
|
1043
|
-
backgroundColor: i ? o.neutral5 : o.neutral0,
|
|
1044
|
-
borderColor: i ? o.neutral10 : t ? o.primary : o.neutral20,
|
|
1045
|
-
borderRadius: s,
|
|
1046
|
-
borderStyle: "solid",
|
|
1047
|
-
borderWidth: 1,
|
|
1048
|
-
boxShadow: t ? "0 0 0 1px ".concat(o.primary) : void 0,
|
|
1049
|
-
"&:hover": {
|
|
1050
|
-
borderColor: t ? o.primary : o.neutral30
|
|
1051
|
-
}
|
|
1052
|
-
});
|
|
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({
|
|
1056
|
-
ref: r
|
|
1057
|
-
}, X(e, "control", {
|
|
1058
|
-
control: !0,
|
|
1059
|
-
"control--is-disabled": i,
|
|
1060
|
-
"control--is-focused": t,
|
|
1061
|
-
"control--menu-is-open": s
|
|
1062
|
-
}), o, {
|
|
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
|
|
1070
|
-
};
|
|
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", {
|
|
1074
|
-
group: !0
|
|
1075
|
-
}), a), y(o, G({}, s, {
|
|
1076
|
-
selectProps: d,
|
|
1077
|
-
theme: c,
|
|
1078
|
-
getStyles: t,
|
|
1079
|
-
getClassNames: r,
|
|
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({
|
|
1085
|
-
label: "group",
|
|
1086
|
-
cursor: "default",
|
|
1087
|
-
display: "block"
|
|
1088
|
-
}, u ? {} : {
|
|
1089
|
-
color: t.neutral40,
|
|
1090
|
-
fontSize: "75%",
|
|
1091
|
-
fontWeight: 500,
|
|
1092
|
-
marginBottom: "0.25em",
|
|
1093
|
-
paddingLeft: r.baseUnit * 3,
|
|
1094
|
-
paddingRight: r.baseUnit * 3,
|
|
1095
|
-
textTransform: "uppercase"
|
|
1096
|
-
});
|
|
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", {
|
|
1102
|
-
"group-heading": !0
|
|
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",
|
|
1108
|
-
// force css to recompute when value change due to @emotion bug.
|
|
1109
|
-
// We can remove it whenever the bug is fixed.
|
|
1110
|
-
transform: t ? "translateZ(0)" : ""
|
|
1111
|
-
}, ua), u ? {} : {
|
|
1112
|
-
margin: o.baseUnit / 2,
|
|
1113
|
-
paddingBottom: o.baseUnit / 2,
|
|
1114
|
-
paddingTop: o.baseUnit / 2,
|
|
1115
|
-
color: s.neutral80
|
|
1116
|
-
});
|
|
1117
|
-
}, bn = {
|
|
1118
|
-
gridArea: "1 / 2",
|
|
1119
|
-
font: "inherit",
|
|
1120
|
-
minWidth: "2px",
|
|
1121
|
-
border: 0,
|
|
1122
|
-
margin: 0,
|
|
1123
|
-
outline: 0,
|
|
1124
|
-
padding: 0
|
|
1125
|
-
}, ua = {
|
|
1126
|
-
flex: "1 1 auto",
|
|
1127
|
-
display: "inline-grid",
|
|
1128
|
-
gridArea: "1 / 1 / 2 / 3",
|
|
1129
|
-
gridTemplateColumns: "0 min-content",
|
|
1130
|
-
"&:after": E({
|
|
1131
|
-
content: 'attr(data-value) " "',
|
|
1132
|
-
visibility: "hidden",
|
|
1133
|
-
whiteSpace: "pre"
|
|
1134
|
-
}, bn)
|
|
1135
|
-
}, aa = function(e) {
|
|
1136
|
-
return E({
|
|
1137
|
-
label: "input",
|
|
1138
|
-
color: "inherit",
|
|
1139
|
-
background: 0,
|
|
1140
|
-
opacity: e ? 0 : 1,
|
|
1141
|
-
width: "100%"
|
|
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", {
|
|
1146
|
-
"input-container": !0
|
|
1147
|
-
}), {
|
|
1148
|
-
"data-value": i || ""
|
|
1149
|
-
}), y("input", G({
|
|
1150
|
-
className: u({
|
|
1151
|
-
input: !0
|
|
1152
|
-
}, a),
|
|
1153
|
-
ref: r,
|
|
1154
|
-
style: aa(s),
|
|
1155
|
-
disabled: o
|
|
1156
|
-
}, l)));
|
|
1157
|
-
}, oa = ra, la = function(e, u) {
|
|
1158
|
-
var i = e.theme, t = i.spacing, r = i.borderRadius, o = i.colors;
|
|
1159
|
-
return E({
|
|
1160
|
-
label: "multiValue",
|
|
1161
|
-
display: "flex",
|
|
1162
|
-
minWidth: 0
|
|
1163
|
-
}, u ? {} : {
|
|
1164
|
-
backgroundColor: o.neutral10,
|
|
1165
|
-
borderRadius: r / 2,
|
|
1166
|
-
margin: t.baseUnit / 2
|
|
1167
|
-
});
|
|
1168
|
-
}, sa = function(e, u) {
|
|
1169
|
-
var i = e.theme, t = i.borderRadius, r = i.colors, o = e.cropWithEllipsis;
|
|
1170
|
-
return E({
|
|
1171
|
-
overflow: "hidden",
|
|
1172
|
-
textOverflow: o || o === void 0 ? "ellipsis" : void 0,
|
|
1173
|
-
whiteSpace: "nowrap"
|
|
1174
|
-
}, u ? {} : {
|
|
1175
|
-
borderRadius: t / 2,
|
|
1176
|
-
color: r.neutral80,
|
|
1177
|
-
fontSize: "85%",
|
|
1178
|
-
padding: 3,
|
|
1179
|
-
paddingLeft: 6
|
|
1180
|
-
});
|
|
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({
|
|
1184
|
-
alignItems: "center",
|
|
1185
|
-
display: "flex"
|
|
1186
|
-
}, u ? {} : {
|
|
1187
|
-
borderRadius: r / 2,
|
|
1188
|
-
backgroundColor: s ? o.dangerLight : void 0,
|
|
1189
|
-
paddingLeft: t.baseUnit,
|
|
1190
|
-
paddingRight: t.baseUnit,
|
|
1191
|
-
":hover": {
|
|
1192
|
-
backgroundColor: o.dangerLight,
|
|
1193
|
-
color: o.danger
|
|
1194
|
-
}
|
|
1195
|
-
});
|
|
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({
|
|
1203
|
-
role: "button"
|
|
1204
|
-
}, u), e || y(ct, {
|
|
1205
|
-
size: 14
|
|
1206
|
-
}));
|
|
1207
|
-
}
|
|
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, {
|
|
1211
|
-
data: t,
|
|
1212
|
-
innerProps: E(E({}, X(e, "multiValue", {
|
|
1213
|
-
"multi-value": !0,
|
|
1214
|
-
"multi-value--is-disabled": o
|
|
1215
|
-
})), r),
|
|
1216
|
-
selectProps: a
|
|
1217
|
-
}, y(c, {
|
|
1218
|
-
data: t,
|
|
1219
|
-
innerProps: E({}, X(e, "multiValueLabel", {
|
|
1220
|
-
"multi-value__label": !0
|
|
1221
|
-
})),
|
|
1222
|
-
selectProps: a
|
|
1223
|
-
}, u), y(d, {
|
|
1224
|
-
data: t,
|
|
1225
|
-
innerProps: E(E({}, X(e, "multiValueRemove", {
|
|
1226
|
-
"multi-value__remove": !0
|
|
1227
|
-
})), {}, {
|
|
1228
|
-
"aria-label": "Remove ".concat(u || "option")
|
|
1229
|
-
}, s),
|
|
1230
|
-
selectProps: a
|
|
1231
|
-
}));
|
|
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({
|
|
1235
|
-
label: "option",
|
|
1236
|
-
cursor: "default",
|
|
1237
|
-
display: "block",
|
|
1238
|
-
fontSize: "inherit",
|
|
1239
|
-
width: "100%",
|
|
1240
|
-
userSelect: "none",
|
|
1241
|
-
WebkitTapHighlightColor: "rgba(0, 0, 0, 0)"
|
|
1242
|
-
}, u ? {} : {
|
|
1243
|
-
backgroundColor: r ? a.primary : t ? a.primary25 : "transparent",
|
|
1244
|
-
color: i ? a.neutral20 : r ? a.neutral0 : "inherit",
|
|
1245
|
-
padding: "".concat(s.baseUnit * 2, "px ").concat(s.baseUnit * 3, "px"),
|
|
1246
|
-
// provide some affordance on touch devices
|
|
1247
|
-
":active": {
|
|
1248
|
-
backgroundColor: i ? void 0 : r ? a.primary : a.primary50
|
|
1249
|
-
}
|
|
1250
|
-
});
|
|
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", {
|
|
1254
|
-
option: !0,
|
|
1255
|
-
"option--is-disabled": i,
|
|
1256
|
-
"option--is-focused": t,
|
|
1257
|
-
"option--is-selected": r
|
|
1258
|
-
}), {
|
|
1259
|
-
ref: o,
|
|
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({
|
|
1265
|
-
label: "placeholder",
|
|
1266
|
-
gridArea: "1 / 1 / 2 / 3"
|
|
1267
|
-
}, u ? {} : {
|
|
1268
|
-
color: r.neutral50,
|
|
1269
|
-
marginLeft: t.baseUnit / 2,
|
|
1270
|
-
marginRight: t.baseUnit / 2
|
|
1271
|
-
});
|
|
1272
|
-
}, Ca = function(e) {
|
|
1273
|
-
var u = e.children, i = e.innerProps;
|
|
1274
|
-
return y("div", G({}, X(e, "placeholder", {
|
|
1275
|
-
placeholder: !0
|
|
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({
|
|
1280
|
-
label: "singleValue",
|
|
1281
|
-
gridArea: "1 / 1 / 2 / 3",
|
|
1282
|
-
maxWidth: "100%",
|
|
1283
|
-
overflow: "hidden",
|
|
1284
|
-
textOverflow: "ellipsis",
|
|
1285
|
-
whiteSpace: "nowrap"
|
|
1286
|
-
}, u ? {} : {
|
|
1287
|
-
color: i ? o.neutral40 : o.neutral80,
|
|
1288
|
-
marginLeft: r.baseUnit / 2,
|
|
1289
|
-
marginRight: r.baseUnit / 2
|
|
1290
|
-
});
|
|
1291
|
-
}, ya = function(e) {
|
|
1292
|
-
var u = e.children, i = e.isDisabled, t = e.innerProps;
|
|
1293
|
-
return y("div", G({}, X(e, "singleValue", {
|
|
1294
|
-
"single-value": !0,
|
|
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) {
|
|
1326
|
-
return typeof e == "number" && e !== e;
|
|
1327
|
-
};
|
|
1328
|
-
function Fa(n, e) {
|
|
1329
|
-
return !!(n === e || Rt(n) && Rt(e));
|
|
1330
|
-
}
|
|
1331
|
-
function Ba(n, e) {
|
|
1332
|
-
if (n.length !== e.length)
|
|
1333
|
-
return !1;
|
|
1334
|
-
for (var u = 0; u < n.length; u++)
|
|
1335
|
-
if (!Fa(n[u], e[u]))
|
|
1336
|
-
return !1;
|
|
1337
|
-
return !0;
|
|
1338
|
-
}
|
|
1339
|
-
function Ta(n, e) {
|
|
1340
|
-
e === void 0 && (e = Ba);
|
|
1341
|
-
var u = null;
|
|
1342
|
-
function i() {
|
|
1343
|
-
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1344
|
-
t[r] = arguments[r];
|
|
1345
|
-
if (u && u.lastThis === this && e(t, u.lastArgs))
|
|
1346
|
-
return u.lastResult;
|
|
1347
|
-
var o = n.apply(this, t);
|
|
1348
|
-
return u = {
|
|
1349
|
-
lastResult: o,
|
|
1350
|
-
lastArgs: t,
|
|
1351
|
-
lastThis: this
|
|
1352
|
-
}, o;
|
|
1353
|
-
}
|
|
1354
|
-
return i.clear = function() {
|
|
1355
|
-
u = null;
|
|
1356
|
-
}, i;
|
|
1357
|
-
}
|
|
1358
|
-
function Sa() {
|
|
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).";
|
|
1360
|
-
}
|
|
1361
|
-
var Va = process.env.NODE_ENV === "production" ? {
|
|
1362
|
-
name: "7pg0cj-a11yText",
|
|
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"
|
|
1364
|
-
} : {
|
|
1365
|
-
name: "1f43avz-a11yText-A11yText",
|
|
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;",
|
|
1367
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
1368
|
-
toString: Sa
|
|
1369
|
-
}, Ra = function(e) {
|
|
1370
|
-
return y("span", G({
|
|
1371
|
-
css: Va
|
|
1372
|
-
}, e));
|
|
1373
|
-
}, Wt = Ra, Wa = {
|
|
1374
|
-
guidance: function(e) {
|
|
1375
|
-
var u = e.isSearchable, i = e.isMulti, t = e.tabSelectsValue, r = e.context, o = e.isInitialFocus;
|
|
1376
|
-
switch (r) {
|
|
1377
|
-
case "menu":
|
|
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" : "", ".");
|
|
1379
|
-
case "input":
|
|
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" : "") : "";
|
|
1381
|
-
case "value":
|
|
1382
|
-
return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
|
|
1383
|
-
default:
|
|
1384
|
-
return "";
|
|
1385
|
-
}
|
|
1386
|
-
},
|
|
1387
|
-
onChange: function(e) {
|
|
1388
|
-
var u = e.action, i = e.label, t = i === void 0 ? "" : i, r = e.labels, o = e.isDisabled;
|
|
1389
|
-
switch (u) {
|
|
1390
|
-
case "deselect-option":
|
|
1391
|
-
case "pop-value":
|
|
1392
|
-
case "remove-value":
|
|
1393
|
-
return "option ".concat(t, ", deselected.");
|
|
1394
|
-
case "clear":
|
|
1395
|
-
return "All selected options have been cleared.";
|
|
1396
|
-
case "initial-input-focus":
|
|
1397
|
-
return "option".concat(r.length > 1 ? "s" : "", " ").concat(r.join(","), ", selected.");
|
|
1398
|
-
case "select-option":
|
|
1399
|
-
return o ? "option ".concat(t, " is disabled. Select another option.") : "option ".concat(t, ", selected.");
|
|
1400
|
-
default:
|
|
1401
|
-
return "";
|
|
1402
|
-
}
|
|
1403
|
-
},
|
|
1404
|
-
onFocus: function(e) {
|
|
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) : "";
|
|
1407
|
-
};
|
|
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), ".");
|
|
1413
|
-
}
|
|
1414
|
-
return "";
|
|
1415
|
-
},
|
|
1416
|
-
onFilter: function(e) {
|
|
1417
|
-
var u = e.inputValue, i = e.resultsMessage;
|
|
1418
|
-
return "".concat(i).concat(u ? " for search term " + u : "", ".");
|
|
1419
|
-
}
|
|
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({
|
|
1429
|
-
// multiSelected items are usually items that have already been selected
|
|
1430
|
-
// or set by the user as a default value so we assume they are not disabled
|
|
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) {
|
|
1441
|
-
var k = {
|
|
1442
|
-
focused: w,
|
|
1443
|
-
label: g(w),
|
|
1444
|
-
isDisabled: I(w, s),
|
|
1445
|
-
isSelected: z,
|
|
1446
|
-
options: r,
|
|
1447
|
-
context: w === i ? "menu" : "value",
|
|
1448
|
-
selectValue: s,
|
|
1449
|
-
isAppleDevice: c
|
|
1450
|
-
};
|
|
1451
|
-
H = h.onFocus(k);
|
|
1452
|
-
}
|
|
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({
|
|
1458
|
-
count: r.length
|
|
1459
|
-
});
|
|
1460
|
-
H = h.onFilter({
|
|
1461
|
-
inputValue: b,
|
|
1462
|
-
resultsMessage: w
|
|
1463
|
-
});
|
|
1464
|
-
}
|
|
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
|
|
1478
|
-
});
|
|
1479
|
-
}
|
|
1480
|
-
return H;
|
|
1481
|
-
}, [x, i, t, f, I, p, m, h, s, T, L]), _ = y(Ke, null, y("span", {
|
|
1482
|
-
id: "aria-selection"
|
|
1483
|
-
}, B), y("span", {
|
|
1484
|
-
id: "aria-focused"
|
|
1485
|
-
}, W), y("span", {
|
|
1486
|
-
id: "aria-results"
|
|
1487
|
-
}, N), y("span", {
|
|
1488
|
-
id: "aria-guidance"
|
|
1489
|
-
}, Q));
|
|
1490
|
-
return y(Ke, null, y(Wt, {
|
|
1491
|
-
id: l
|
|
1492
|
-
}, L && _), y(Wt, {
|
|
1493
|
-
"aria-live": S,
|
|
1494
|
-
"aria-atomic": "false",
|
|
1495
|
-
"aria-relevant": "additions text",
|
|
1496
|
-
role: "log"
|
|
1497
|
-
}, o && !L && _));
|
|
1498
|
-
}, Xa = Na, it = [{
|
|
1499
|
-
base: "A",
|
|
1500
|
-
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
1501
|
-
}, {
|
|
1502
|
-
base: "AA",
|
|
1503
|
-
letters: "Ꜳ"
|
|
1504
|
-
}, {
|
|
1505
|
-
base: "AE",
|
|
1506
|
-
letters: "ÆǼǢ"
|
|
1507
|
-
}, {
|
|
1508
|
-
base: "AO",
|
|
1509
|
-
letters: "Ꜵ"
|
|
1510
|
-
}, {
|
|
1511
|
-
base: "AU",
|
|
1512
|
-
letters: "Ꜷ"
|
|
1513
|
-
}, {
|
|
1514
|
-
base: "AV",
|
|
1515
|
-
letters: "ꜸꜺ"
|
|
1516
|
-
}, {
|
|
1517
|
-
base: "AY",
|
|
1518
|
-
letters: "Ꜽ"
|
|
1519
|
-
}, {
|
|
1520
|
-
base: "B",
|
|
1521
|
-
letters: "BⒷBḂḄḆɃƂƁ"
|
|
1522
|
-
}, {
|
|
1523
|
-
base: "C",
|
|
1524
|
-
letters: "CⒸCĆĈĊČÇḈƇȻꜾ"
|
|
1525
|
-
}, {
|
|
1526
|
-
base: "D",
|
|
1527
|
-
letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"
|
|
1528
|
-
}, {
|
|
1529
|
-
base: "DZ",
|
|
1530
|
-
letters: "DZDŽ"
|
|
1531
|
-
}, {
|
|
1532
|
-
base: "Dz",
|
|
1533
|
-
letters: "DzDž"
|
|
1534
|
-
}, {
|
|
1535
|
-
base: "E",
|
|
1536
|
-
letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"
|
|
1537
|
-
}, {
|
|
1538
|
-
base: "F",
|
|
1539
|
-
letters: "FⒻFḞƑꝻ"
|
|
1540
|
-
}, {
|
|
1541
|
-
base: "G",
|
|
1542
|
-
letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"
|
|
1543
|
-
}, {
|
|
1544
|
-
base: "H",
|
|
1545
|
-
letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"
|
|
1546
|
-
}, {
|
|
1547
|
-
base: "I",
|
|
1548
|
-
letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"
|
|
1549
|
-
}, {
|
|
1550
|
-
base: "J",
|
|
1551
|
-
letters: "JⒿJĴɈ"
|
|
1552
|
-
}, {
|
|
1553
|
-
base: "K",
|
|
1554
|
-
letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"
|
|
1555
|
-
}, {
|
|
1556
|
-
base: "L",
|
|
1557
|
-
letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"
|
|
1558
|
-
}, {
|
|
1559
|
-
base: "LJ",
|
|
1560
|
-
letters: "LJ"
|
|
1561
|
-
}, {
|
|
1562
|
-
base: "Lj",
|
|
1563
|
-
letters: "Lj"
|
|
1564
|
-
}, {
|
|
1565
|
-
base: "M",
|
|
1566
|
-
letters: "MⓂMḾṀṂⱮƜ"
|
|
1567
|
-
}, {
|
|
1568
|
-
base: "N",
|
|
1569
|
-
letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"
|
|
1570
|
-
}, {
|
|
1571
|
-
base: "NJ",
|
|
1572
|
-
letters: "NJ"
|
|
1573
|
-
}, {
|
|
1574
|
-
base: "Nj",
|
|
1575
|
-
letters: "Nj"
|
|
1576
|
-
}, {
|
|
1577
|
-
base: "O",
|
|
1578
|
-
letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"
|
|
1579
|
-
}, {
|
|
1580
|
-
base: "OI",
|
|
1581
|
-
letters: "Ƣ"
|
|
1582
|
-
}, {
|
|
1583
|
-
base: "OO",
|
|
1584
|
-
letters: "Ꝏ"
|
|
1585
|
-
}, {
|
|
1586
|
-
base: "OU",
|
|
1587
|
-
letters: "Ȣ"
|
|
1588
|
-
}, {
|
|
1589
|
-
base: "P",
|
|
1590
|
-
letters: "PⓅPṔṖƤⱣꝐꝒꝔ"
|
|
1591
|
-
}, {
|
|
1592
|
-
base: "Q",
|
|
1593
|
-
letters: "QⓆQꝖꝘɊ"
|
|
1594
|
-
}, {
|
|
1595
|
-
base: "R",
|
|
1596
|
-
letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"
|
|
1597
|
-
}, {
|
|
1598
|
-
base: "S",
|
|
1599
|
-
letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"
|
|
1600
|
-
}, {
|
|
1601
|
-
base: "T",
|
|
1602
|
-
letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"
|
|
1603
|
-
}, {
|
|
1604
|
-
base: "TZ",
|
|
1605
|
-
letters: "Ꜩ"
|
|
1606
|
-
}, {
|
|
1607
|
-
base: "U",
|
|
1608
|
-
letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"
|
|
1609
|
-
}, {
|
|
1610
|
-
base: "V",
|
|
1611
|
-
letters: "VⓋVṼṾƲꝞɅ"
|
|
1612
|
-
}, {
|
|
1613
|
-
base: "VY",
|
|
1614
|
-
letters: "Ꝡ"
|
|
1615
|
-
}, {
|
|
1616
|
-
base: "W",
|
|
1617
|
-
letters: "WⓌWẀẂŴẆẄẈⱲ"
|
|
1618
|
-
}, {
|
|
1619
|
-
base: "X",
|
|
1620
|
-
letters: "XⓍXẊẌ"
|
|
1621
|
-
}, {
|
|
1622
|
-
base: "Y",
|
|
1623
|
-
letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"
|
|
1624
|
-
}, {
|
|
1625
|
-
base: "Z",
|
|
1626
|
-
letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"
|
|
1627
|
-
}, {
|
|
1628
|
-
base: "a",
|
|
1629
|
-
letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"
|
|
1630
|
-
}, {
|
|
1631
|
-
base: "aa",
|
|
1632
|
-
letters: "ꜳ"
|
|
1633
|
-
}, {
|
|
1634
|
-
base: "ae",
|
|
1635
|
-
letters: "æǽǣ"
|
|
1636
|
-
}, {
|
|
1637
|
-
base: "ao",
|
|
1638
|
-
letters: "ꜵ"
|
|
1639
|
-
}, {
|
|
1640
|
-
base: "au",
|
|
1641
|
-
letters: "ꜷ"
|
|
1642
|
-
}, {
|
|
1643
|
-
base: "av",
|
|
1644
|
-
letters: "ꜹꜻ"
|
|
1645
|
-
}, {
|
|
1646
|
-
base: "ay",
|
|
1647
|
-
letters: "ꜽ"
|
|
1648
|
-
}, {
|
|
1649
|
-
base: "b",
|
|
1650
|
-
letters: "bⓑbḃḅḇƀƃɓ"
|
|
1651
|
-
}, {
|
|
1652
|
-
base: "c",
|
|
1653
|
-
letters: "cⓒcćĉċčçḉƈȼꜿↄ"
|
|
1654
|
-
}, {
|
|
1655
|
-
base: "d",
|
|
1656
|
-
letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ"
|
|
1657
|
-
}, {
|
|
1658
|
-
base: "dz",
|
|
1659
|
-
letters: "dzdž"
|
|
1660
|
-
}, {
|
|
1661
|
-
base: "e",
|
|
1662
|
-
letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"
|
|
1663
|
-
}, {
|
|
1664
|
-
base: "f",
|
|
1665
|
-
letters: "fⓕfḟƒꝼ"
|
|
1666
|
-
}, {
|
|
1667
|
-
base: "g",
|
|
1668
|
-
letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"
|
|
1669
|
-
}, {
|
|
1670
|
-
base: "h",
|
|
1671
|
-
letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"
|
|
1672
|
-
}, {
|
|
1673
|
-
base: "hv",
|
|
1674
|
-
letters: "ƕ"
|
|
1675
|
-
}, {
|
|
1676
|
-
base: "i",
|
|
1677
|
-
letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"
|
|
1678
|
-
}, {
|
|
1679
|
-
base: "j",
|
|
1680
|
-
letters: "jⓙjĵǰɉ"
|
|
1681
|
-
}, {
|
|
1682
|
-
base: "k",
|
|
1683
|
-
letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"
|
|
1684
|
-
}, {
|
|
1685
|
-
base: "l",
|
|
1686
|
-
letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"
|
|
1687
|
-
}, {
|
|
1688
|
-
base: "lj",
|
|
1689
|
-
letters: "lj"
|
|
1690
|
-
}, {
|
|
1691
|
-
base: "m",
|
|
1692
|
-
letters: "mⓜmḿṁṃɱɯ"
|
|
1693
|
-
}, {
|
|
1694
|
-
base: "n",
|
|
1695
|
-
letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"
|
|
1696
|
-
}, {
|
|
1697
|
-
base: "nj",
|
|
1698
|
-
letters: "nj"
|
|
1699
|
-
}, {
|
|
1700
|
-
base: "o",
|
|
1701
|
-
letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"
|
|
1702
|
-
}, {
|
|
1703
|
-
base: "oi",
|
|
1704
|
-
letters: "ƣ"
|
|
1705
|
-
}, {
|
|
1706
|
-
base: "ou",
|
|
1707
|
-
letters: "ȣ"
|
|
1708
|
-
}, {
|
|
1709
|
-
base: "oo",
|
|
1710
|
-
letters: "ꝏ"
|
|
1711
|
-
}, {
|
|
1712
|
-
base: "p",
|
|
1713
|
-
letters: "pⓟpṕṗƥᵽꝑꝓꝕ"
|
|
1714
|
-
}, {
|
|
1715
|
-
base: "q",
|
|
1716
|
-
letters: "qⓠqɋꝗꝙ"
|
|
1717
|
-
}, {
|
|
1718
|
-
base: "r",
|
|
1719
|
-
letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"
|
|
1720
|
-
}, {
|
|
1721
|
-
base: "s",
|
|
1722
|
-
letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"
|
|
1723
|
-
}, {
|
|
1724
|
-
base: "t",
|
|
1725
|
-
letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"
|
|
1726
|
-
}, {
|
|
1727
|
-
base: "tz",
|
|
1728
|
-
letters: "ꜩ"
|
|
1729
|
-
}, {
|
|
1730
|
-
base: "u",
|
|
1731
|
-
letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"
|
|
1732
|
-
}, {
|
|
1733
|
-
base: "v",
|
|
1734
|
-
letters: "vⓥvṽṿʋꝟʌ"
|
|
1735
|
-
}, {
|
|
1736
|
-
base: "vy",
|
|
1737
|
-
letters: "ꝡ"
|
|
1738
|
-
}, {
|
|
1739
|
-
base: "w",
|
|
1740
|
-
letters: "wⓦwẁẃŵẇẅẘẉⱳ"
|
|
1741
|
-
}, {
|
|
1742
|
-
base: "x",
|
|
1743
|
-
letters: "xⓧxẋẍ"
|
|
1744
|
-
}, {
|
|
1745
|
-
base: "y",
|
|
1746
|
-
letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"
|
|
1747
|
-
}, {
|
|
1748
|
-
base: "z",
|
|
1749
|
-
letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
|
|
1750
|
-
}], Za = new RegExp("[" + it.map(function(n) {
|
|
1751
|
-
return n.letters;
|
|
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];
|
|
1759
|
-
});
|
|
1760
|
-
}, wa = Ta(fn), Nt = function(e) {
|
|
1761
|
-
return e.replace(/^\s+|\s+$/g, "");
|
|
1762
|
-
}, Pa = function(e) {
|
|
1763
|
-
return "".concat(e.label, " ").concat(e.value);
|
|
1764
|
-
}, Ha = function(e) {
|
|
1765
|
-
return function(u, i) {
|
|
1766
|
-
if (u.data.__isNew__) return !0;
|
|
1767
|
-
var t = E({
|
|
1768
|
-
ignoreCase: !0,
|
|
1769
|
-
ignoreAccents: !0,
|
|
1770
|
-
stringify: Pa,
|
|
1771
|
-
trim: !0,
|
|
1772
|
-
matchFrom: "any"
|
|
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;
|
|
1775
|
-
};
|
|
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({
|
|
1780
|
-
ref: e
|
|
1781
|
-
}, i, {
|
|
1782
|
-
css: /* @__PURE__ */ zt({
|
|
1783
|
-
label: "dummyInput",
|
|
1784
|
-
// get rid of any default styles
|
|
1785
|
-
background: 0,
|
|
1786
|
-
border: 0,
|
|
1787
|
-
// important! this hides the flashing cursor
|
|
1788
|
-
caretColor: "transparent",
|
|
1789
|
-
fontSize: "inherit",
|
|
1790
|
-
gridArea: "1 / 1 / 2 / 3",
|
|
1791
|
-
outline: 0,
|
|
1792
|
-
padding: 0,
|
|
1793
|
-
// important! without `width` browsers won't allow focus
|
|
1794
|
-
width: 1,
|
|
1795
|
-
// remove cursor on desktop
|
|
1796
|
-
color: "transparent",
|
|
1797
|
-
// remove cursor on mobile whilst maintaining "scroll into view" behaviour
|
|
1798
|
-
left: -100,
|
|
1799
|
-
opacity: 0,
|
|
1800
|
-
position: "relative",
|
|
1801
|
-
transform: "scale(.01)"
|
|
1802
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")
|
|
1803
|
-
}));
|
|
1804
|
-
}
|
|
1805
|
-
var Oa = function(e) {
|
|
1806
|
-
e.cancelable && e.preventDefault(), e.stopPropagation();
|
|
1807
|
-
};
|
|
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) {
|
|
1810
|
-
if (l.current !== null) {
|
|
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 ? {
|
|
1824
|
-
passive: !1
|
|
1825
|
-
} : !1;
|
|
1826
|
-
p.addEventListener("wheel", d, m), p.addEventListener("touchstart", g, m), p.addEventListener("touchmove", b, m);
|
|
1827
|
-
}
|
|
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() {
|
|
1832
|
-
if (e) {
|
|
1833
|
-
var p = l.current;
|
|
1834
|
-
return f(p), function() {
|
|
1835
|
-
I(p);
|
|
1836
|
-
};
|
|
1837
|
-
}
|
|
1838
|
-
}, [e, f, I]), function(p) {
|
|
1839
|
-
l.current = p;
|
|
1840
|
-
};
|
|
1841
|
-
}
|
|
1842
|
-
var Xt = ["boxSizing", "height", "overflow", "paddingRight", "position"], Zt = {
|
|
1843
|
-
boxSizing: "border-box",
|
|
1844
|
-
// account for possible declaration `width: 100%;` on body
|
|
1845
|
-
overflow: "hidden",
|
|
1846
|
-
position: "relative",
|
|
1847
|
-
height: "100%"
|
|
1848
|
-
};
|
|
1849
|
-
function wt(n) {
|
|
1850
|
-
n.preventDefault();
|
|
1851
|
-
}
|
|
1852
|
-
function Pt(n) {
|
|
1853
|
-
n.stopPropagation();
|
|
1854
|
-
}
|
|
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);
|
|
1858
|
-
}
|
|
1859
|
-
function Lt() {
|
|
1860
|
-
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
1861
|
-
}
|
|
1862
|
-
var Dt = !!(typeof window < "u" && window.document && window.document.createElement), Ae = 0, me = {
|
|
1863
|
-
capture: !1,
|
|
1864
|
-
passive: !1
|
|
1865
|
-
};
|
|
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) {
|
|
1869
|
-
var l = document.body, c = l && l.style;
|
|
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"));
|
|
1879
|
-
}
|
|
1880
|
-
l && Lt() && (l.addEventListener("touchmove", wt, me), a && (a.addEventListener("touchstart", Ht, me), a.addEventListener("touchmove", Pt, me))), Ae += 1;
|
|
1881
|
-
}
|
|
1882
|
-
}, [i]), s = D(function(a) {
|
|
1883
|
-
if (Dt) {
|
|
1884
|
-
var l = document.body, c = l && l.style;
|
|
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)));
|
|
1889
|
-
}
|
|
1890
|
-
}, [i]);
|
|
1891
|
-
return ne(function() {
|
|
1892
|
-
if (e) {
|
|
1893
|
-
var a = r.current;
|
|
1894
|
-
return o(a), function() {
|
|
1895
|
-
s(a);
|
|
1896
|
-
};
|
|
1897
|
-
}
|
|
1898
|
-
}, [e, o, s]), function(a) {
|
|
1899
|
-
r.current = a;
|
|
1900
|
-
};
|
|
1901
|
-
}
|
|
1902
|
-
function Ya() {
|
|
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).";
|
|
1904
|
-
}
|
|
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" ? {
|
|
1909
|
-
name: "1kfdb0e",
|
|
1910
|
-
styles: "position:fixed;left:0;bottom:0;right:0;top:0"
|
|
1911
|
-
} : {
|
|
1912
|
-
name: "bp8cua-ScrollManager",
|
|
1913
|
-
styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
|
|
1914
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJ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9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
|
|
1915
|
-
toString: Ya
|
|
1916
|
-
};
|
|
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({
|
|
1919
|
-
isEnabled: t,
|
|
1920
|
-
onBottomArrive: r,
|
|
1921
|
-
onBottomLeave: o,
|
|
1922
|
-
onTopArrive: s,
|
|
1923
|
-
onTopLeave: a
|
|
1924
|
-
}), c = ka({
|
|
1925
|
-
isEnabled: u
|
|
1926
|
-
}), d = function(b) {
|
|
1927
|
-
l(b), c(b);
|
|
1928
|
-
};
|
|
1929
|
-
return y(Ke, null, u && y("div", {
|
|
1930
|
-
onClick: Ja,
|
|
1931
|
-
css: ja
|
|
1932
|
-
}), e(d));
|
|
1933
|
-
}
|
|
1934
|
-
function Ua() {
|
|
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).";
|
|
1936
|
-
}
|
|
1937
|
-
var Qa = process.env.NODE_ENV === "production" ? {
|
|
1938
|
-
name: "1a0ro4n-requiredInput",
|
|
1939
|
-
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"
|
|
1940
|
-
} : {
|
|
1941
|
-
name: "5kkxb2-requiredInput-RequiredInput",
|
|
1942
|
-
styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",
|
|
1943
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",
|
|
1944
|
-
toString: Ua
|
|
1945
|
-
}, _a = function(e) {
|
|
1946
|
-
var u = e.name, i = e.onFocus;
|
|
1947
|
-
return y("input", {
|
|
1948
|
-
required: !0,
|
|
1949
|
-
name: u,
|
|
1950
|
-
tabIndex: -1,
|
|
1951
|
-
"aria-hidden": "true",
|
|
1952
|
-
onFocus: i,
|
|
1953
|
-
css: Qa,
|
|
1954
|
-
value: "",
|
|
1955
|
-
onChange: function() {
|
|
1956
|
-
}
|
|
1957
|
-
});
|
|
1958
|
-
}, Ka = _a;
|
|
1959
|
-
function dt(n) {
|
|
1960
|
-
var e;
|
|
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;
|
|
1962
|
-
}
|
|
1963
|
-
function $a() {
|
|
1964
|
-
return dt(/^iPhone/i);
|
|
1965
|
-
}
|
|
1966
|
-
function vn() {
|
|
1967
|
-
return dt(/^Mac/i);
|
|
1968
|
-
}
|
|
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;
|
|
1972
|
-
}
|
|
1973
|
-
function er() {
|
|
1974
|
-
return $a() || qa();
|
|
1975
|
-
}
|
|
1976
|
-
function tr() {
|
|
1977
|
-
return vn() || er();
|
|
1978
|
-
}
|
|
1979
|
-
var nr = function(e) {
|
|
1980
|
-
return e.label;
|
|
1981
|
-
}, ir = function(e) {
|
|
1982
|
-
return e.label;
|
|
1983
|
-
}, ur = function(e) {
|
|
1984
|
-
return e.value;
|
|
1985
|
-
}, ar = function(e) {
|
|
1986
|
-
return !!e.isDisabled;
|
|
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 = {
|
|
2011
|
-
primary: "#2684FF",
|
|
2012
|
-
primary75: "#4C9AFF",
|
|
2013
|
-
primary50: "#B2D4FF",
|
|
2014
|
-
primary25: "#DEEBFF",
|
|
2015
|
-
danger: "#DE350B",
|
|
2016
|
-
dangerLight: "#FFBDAD",
|
|
2017
|
-
neutral0: "hsl(0, 0%, 100%)",
|
|
2018
|
-
neutral5: "hsl(0, 0%, 95%)",
|
|
2019
|
-
neutral10: "hsl(0, 0%, 90%)",
|
|
2020
|
-
neutral20: "hsl(0, 0%, 80%)",
|
|
2021
|
-
neutral30: "hsl(0, 0%, 70%)",
|
|
2022
|
-
neutral40: "hsl(0, 0%, 60%)",
|
|
2023
|
-
neutral50: "hsl(0, 0%, 50%)",
|
|
2024
|
-
neutral60: "hsl(0, 0%, 40%)",
|
|
2025
|
-
neutral70: "hsl(0, 0%, 30%)",
|
|
2026
|
-
neutral80: "hsl(0, 0%, 20%)",
|
|
2027
|
-
neutral90: "hsl(0, 0%, 10%)"
|
|
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 = {
|
|
2037
|
-
"aria-live": "polite",
|
|
2038
|
-
backspaceRemovesValue: !0,
|
|
2039
|
-
blurInputOnSelect: St(),
|
|
2040
|
-
captureMenuScroll: !St(),
|
|
2041
|
-
classNames: {},
|
|
2042
|
-
closeMenuOnSelect: !0,
|
|
2043
|
-
closeMenuOnScroll: !1,
|
|
2044
|
-
components: {},
|
|
2045
|
-
controlShouldRenderValue: !0,
|
|
2046
|
-
escapeClearsValue: !1,
|
|
2047
|
-
filterOption: Ha(),
|
|
2048
|
-
formatGroupLabel: nr,
|
|
2049
|
-
getOptionLabel: ir,
|
|
2050
|
-
getOptionValue: ur,
|
|
2051
|
-
isDisabled: !1,
|
|
2052
|
-
isLoading: !1,
|
|
2053
|
-
isMulti: !1,
|
|
2054
|
-
isRtl: !1,
|
|
2055
|
-
isSearchable: !0,
|
|
2056
|
-
isOptionDisabled: ar,
|
|
2057
|
-
loadingMessage: function() {
|
|
2058
|
-
return "Loading...";
|
|
2059
|
-
},
|
|
2060
|
-
maxMenuHeight: 300,
|
|
2061
|
-
minMenuHeight: 140,
|
|
2062
|
-
menuIsOpen: !1,
|
|
2063
|
-
menuPlacement: "bottom",
|
|
2064
|
-
menuPosition: "absolute",
|
|
2065
|
-
menuShouldBlockScroll: !1,
|
|
2066
|
-
menuShouldScrollIntoView: !ru(),
|
|
2067
|
-
noOptionsMessage: function() {
|
|
2068
|
-
return "No options";
|
|
2069
|
-
},
|
|
2070
|
-
openMenuOnFocus: !1,
|
|
2071
|
-
openMenuOnClick: !0,
|
|
2072
|
-
options: [],
|
|
2073
|
-
pageSize: 5,
|
|
2074
|
-
placeholder: "Select...",
|
|
2075
|
-
screenReaderStatus: function(e) {
|
|
2076
|
-
var u = e.count;
|
|
2077
|
-
return "".concat(u, " result").concat(u !== 1 ? "s" : "", " available");
|
|
2078
|
-
},
|
|
2079
|
-
styles: {},
|
|
2080
|
-
tabIndex: 0,
|
|
2081
|
-
tabSelectsValue: !0,
|
|
2082
|
-
unstyled: !1
|
|
2083
|
-
};
|
|
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);
|
|
2086
|
-
return {
|
|
2087
|
-
type: "option",
|
|
2088
|
-
data: e,
|
|
2089
|
-
isDisabled: t,
|
|
2090
|
-
isSelected: r,
|
|
2091
|
-
label: o,
|
|
2092
|
-
value: s,
|
|
2093
|
-
index: i
|
|
2094
|
-
};
|
|
2095
|
-
}
|
|
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);
|
|
2101
|
-
}).filter(function(o) {
|
|
2102
|
-
return kt(n, o);
|
|
2103
|
-
});
|
|
2104
|
-
return t.length > 0 ? {
|
|
2105
|
-
type: "group",
|
|
2106
|
-
data: u,
|
|
2107
|
-
options: t,
|
|
2108
|
-
index: i
|
|
2109
|
-
} : void 0;
|
|
2110
|
-
}
|
|
2111
|
-
var r = Ot(n, u, e, i);
|
|
2112
|
-
return kt(n, r) ? r : void 0;
|
|
2113
|
-
}).filter(su);
|
|
2114
|
-
}
|
|
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;
|
|
2120
|
-
}, []);
|
|
2121
|
-
}
|
|
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) {
|
|
2125
|
-
return {
|
|
2126
|
-
data: t.data,
|
|
2127
|
-
id: "".concat(e, "-").concat(i.index, "-").concat(t.index)
|
|
2128
|
-
};
|
|
2129
|
-
}))) : u.push({
|
|
2130
|
-
data: i.data,
|
|
2131
|
-
id: "".concat(e, "-").concat(i.index)
|
|
2132
|
-
}), u;
|
|
2133
|
-
}, []);
|
|
2134
|
-
}
|
|
2135
|
-
function pr(n, e) {
|
|
2136
|
-
return An(Se(n, e));
|
|
2137
|
-
}
|
|
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, {
|
|
2141
|
-
label: o,
|
|
2142
|
-
value: s,
|
|
2143
|
-
data: t
|
|
2144
|
-
}, i);
|
|
2145
|
-
}
|
|
2146
|
-
function br(n, e) {
|
|
2147
|
-
var u = n.focusedValue, i = n.selectValue, t = i.indexOf(u);
|
|
2148
|
-
if (t > -1) {
|
|
2149
|
-
var r = e.indexOf(u);
|
|
2150
|
-
if (r > -1)
|
|
2151
|
-
return u;
|
|
2152
|
-
if (t < e.length)
|
|
2153
|
-
return e[t];
|
|
2154
|
-
}
|
|
2155
|
-
return null;
|
|
2156
|
-
}
|
|
2157
|
-
function Ir(n, e) {
|
|
2158
|
-
var u = n.focusedOption;
|
|
2159
|
-
return u && e.indexOf(u) > -1 ? u : e[0];
|
|
2160
|
-
}
|
|
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;
|
|
2165
|
-
return t || null;
|
|
2166
|
-
}, xn = function(e, u) {
|
|
2167
|
-
return e.getOptionLabel(u);
|
|
2168
|
-
}, Pe = function(e, u) {
|
|
2169
|
-
return e.getOptionValue(u);
|
|
2170
|
-
};
|
|
2171
|
-
function yn(n, e, u) {
|
|
2172
|
-
return typeof n.isOptionDisabled == "function" ? n.isOptionDisabled(e, u) : !1;
|
|
2173
|
-
}
|
|
2174
|
-
function En(n, e, u) {
|
|
2175
|
-
if (u.indexOf(e) > -1) return !0;
|
|
2176
|
-
if (typeof n.isOptionSelected == "function")
|
|
2177
|
-
return n.isOptionSelected(e, u);
|
|
2178
|
-
var i = Pe(n, e);
|
|
2179
|
-
return u.some(function(t) {
|
|
2180
|
-
return Pe(n, t) === i;
|
|
2181
|
-
});
|
|
2182
|
-
}
|
|
2183
|
-
function Gn(n, e, u) {
|
|
2184
|
-
return n.filterOption ? n.filterOption(e, u) : !0;
|
|
2185
|
-
}
|
|
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) {
|
|
2193
|
-
var t;
|
|
2194
|
-
if (Vi(this, u), t = e.call(this, i), t.state = {
|
|
2195
|
-
ariaSelection: null,
|
|
2196
|
-
focusedOption: null,
|
|
2197
|
-
focusedOptionId: null,
|
|
2198
|
-
focusableOptionsWithIds: [],
|
|
2199
|
-
focusedValue: null,
|
|
2200
|
-
inputIsHidden: !1,
|
|
2201
|
-
isFocused: !1,
|
|
2202
|
-
selectValue: [],
|
|
2203
|
-
clearFocusValueOnUpdate: !1,
|
|
2204
|
-
prevWasFocused: !1,
|
|
2205
|
-
inputIsHiddenAfterUpdate: void 0,
|
|
2206
|
-
prevProps: void 0,
|
|
2207
|
-
instancePrefix: ""
|
|
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) {
|
|
2209
|
-
t.controlRef = a;
|
|
2210
|
-
}, t.focusedOptionRef = null, t.getFocusedOptionRef = function(a) {
|
|
2211
|
-
t.focusedOptionRef = a;
|
|
2212
|
-
}, t.menuListRef = null, t.getMenuListRef = function(a) {
|
|
2213
|
-
t.menuListRef = a;
|
|
2214
|
-
}, t.inputRef = null, t.getInputRef = function(a) {
|
|
2215
|
-
t.inputRef = a;
|
|
2216
|
-
}, t.focus = t.focusInput, t.blur = t.blurInput, t.onChange = function(a, l) {
|
|
2217
|
-
var c = t.props, d = c.onChange, g = c.name;
|
|
2218
|
-
l.name = g, t.ariaOnChange(a, l), d(a, l);
|
|
2219
|
-
}, t.setValue = function(a, l, c) {
|
|
2220
|
-
var d = t.props, g = d.closeMenuOnSelect, b = d.isMulti, f = d.inputValue;
|
|
2221
|
-
t.onInputChange("", {
|
|
2222
|
-
action: "set-value",
|
|
2223
|
-
prevInputValue: f
|
|
2224
|
-
}), g && (t.setState({
|
|
2225
|
-
inputIsHiddenAfterUpdate: !b
|
|
2226
|
-
}), t.onMenuClose()), t.setState({
|
|
2227
|
-
clearFocusValueOnUpdate: !0
|
|
2228
|
-
}), t.onChange(a, {
|
|
2229
|
-
action: l,
|
|
2230
|
-
option: c
|
|
2231
|
-
});
|
|
2232
|
-
}, t.selectOption = function(a) {
|
|
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;
|
|
2238
|
-
}), "deselect-option", a);
|
|
2239
|
-
} else if (!I)
|
|
2240
|
-
d ? t.setValue([].concat(rt(b), [a]), "select-option", a) : t.setValue(a, "select-option");
|
|
2241
|
-
else {
|
|
2242
|
-
t.ariaOnChange(a, {
|
|
2243
|
-
action: "select-option",
|
|
2244
|
-
option: a,
|
|
2245
|
-
name: g
|
|
2246
|
-
});
|
|
2247
|
-
return;
|
|
2248
|
-
}
|
|
2249
|
-
c && t.blurInput();
|
|
2250
|
-
}, t.removeValue = function(a) {
|
|
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, {
|
|
2255
|
-
action: "remove-value",
|
|
2256
|
-
removedValue: a
|
|
2257
|
-
}), t.focusInput();
|
|
2258
|
-
}, t.clearValue = function() {
|
|
2259
|
-
var a = t.state.selectValue;
|
|
2260
|
-
t.onChange(Te(t.props.isMulti, [], null), {
|
|
2261
|
-
action: "clear",
|
|
2262
|
-
removedValues: a
|
|
2263
|
-
});
|
|
2264
|
-
}, t.popValue = function() {
|
|
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, {
|
|
2267
|
-
action: "pop-value",
|
|
2268
|
-
removedValue: c
|
|
2269
|
-
});
|
|
2270
|
-
}, t.getFocusedOptionId = function(a) {
|
|
2271
|
-
return Ue(t.state.focusableOptionsWithIds, a);
|
|
2272
|
-
}, t.getFocusableOptionsWithIds = function() {
|
|
2273
|
-
return Mt(Se(t.props, t.state.selectValue), t.getElementId("option"));
|
|
2274
|
-
}, t.getValue = function() {
|
|
2275
|
-
return t.state.selectValue;
|
|
2276
|
-
}, t.cx = function() {
|
|
2277
|
-
for (var a = arguments.length, l = new Array(a), c = 0; c < a; c++)
|
|
2278
|
-
l[c] = arguments[c];
|
|
2279
|
-
return tu.apply(void 0, [t.props.classNamePrefix].concat(l));
|
|
2280
|
-
}, t.getOptionLabel = function(a) {
|
|
2281
|
-
return xn(t.props, a);
|
|
2282
|
-
}, t.getOptionValue = function(a) {
|
|
2283
|
-
return Pe(t.props, a);
|
|
2284
|
-
}, t.getStyles = function(a, l) {
|
|
2285
|
-
var c = t.props.unstyled, d = rr[a](l, c);
|
|
2286
|
-
d.boxSizing = "border-box";
|
|
2287
|
-
var g = t.props.styles[a];
|
|
2288
|
-
return g ? g(d, l) : d;
|
|
2289
|
-
}, t.getClassNames = function(a, l) {
|
|
2290
|
-
var c, d;
|
|
2291
|
-
return (c = (d = t.props.classNames)[a]) === null || c === void 0 ? void 0 : c.call(d, l);
|
|
2292
|
-
}, t.getElementId = function(a) {
|
|
2293
|
-
return "".concat(t.state.instancePrefix, "-").concat(a);
|
|
2294
|
-
}, t.getComponents = function() {
|
|
2295
|
-
return Ga(t.props);
|
|
2296
|
-
}, t.buildCategorizedOptions = function() {
|
|
2297
|
-
return Se(t.props, t.state.selectValue);
|
|
2298
|
-
}, t.getCategorizedOptions = function() {
|
|
2299
|
-
return t.props.menuIsOpen ? t.buildCategorizedOptions() : [];
|
|
2300
|
-
}, t.buildFocusableOptions = function() {
|
|
2301
|
-
return An(t.buildCategorizedOptions());
|
|
2302
|
-
}, t.getFocusableOptions = function() {
|
|
2303
|
-
return t.props.menuIsOpen ? t.buildFocusableOptions() : [];
|
|
2304
|
-
}, t.ariaOnChange = function(a, l) {
|
|
2305
|
-
t.setState({
|
|
2306
|
-
ariaSelection: E({
|
|
2307
|
-
value: a
|
|
2308
|
-
}, l)
|
|
2309
|
-
});
|
|
2310
|
-
}, t.onMenuMouseDown = function(a) {
|
|
2311
|
-
a.button === 0 && (a.stopPropagation(), a.preventDefault(), t.focusInput());
|
|
2312
|
-
}, t.onMenuMouseMove = function(a) {
|
|
2313
|
-
t.blockOptionHover = !1;
|
|
2314
|
-
}, t.onControlMouseDown = function(a) {
|
|
2315
|
-
if (!a.defaultPrevented) {
|
|
2316
|
-
var l = t.props.openMenuOnClick;
|
|
2317
|
-
t.state.isFocused ? t.props.menuIsOpen ? a.target.tagName !== "INPUT" && a.target.tagName !== "TEXTAREA" && t.onMenuClose() : l && t.openMenu("first") : (l && (t.openAfterFocus = !0), t.focusInput()), a.target.tagName !== "INPUT" && a.target.tagName !== "TEXTAREA" && a.preventDefault();
|
|
2318
|
-
}
|
|
2319
|
-
}, t.onDropdownIndicatorMouseDown = function(a) {
|
|
2320
|
-
if (!(a && a.type === "mousedown" && a.button !== 0) && !t.props.isDisabled) {
|
|
2321
|
-
var l = t.props, c = l.isMulti, d = l.menuIsOpen;
|
|
2322
|
-
t.focusInput(), d ? (t.setState({
|
|
2323
|
-
inputIsHiddenAfterUpdate: !c
|
|
2324
|
-
}), t.onMenuClose()) : t.openMenu("first"), a.preventDefault();
|
|
2325
|
-
}
|
|
2326
|
-
}, t.onClearIndicatorMouseDown = function(a) {
|
|
2327
|
-
a && a.type === "mousedown" && a.button !== 0 || (t.clearValue(), a.preventDefault(), t.openAfterFocus = !1, a.type === "touchend" ? t.focusInput() : setTimeout(function() {
|
|
2328
|
-
return t.focusInput();
|
|
2329
|
-
}));
|
|
2330
|
-
}, t.onScroll = function(a) {
|
|
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();
|
|
2332
|
-
}, t.onCompositionStart = function() {
|
|
2333
|
-
t.isComposing = !0;
|
|
2334
|
-
}, t.onCompositionEnd = function() {
|
|
2335
|
-
t.isComposing = !1;
|
|
2336
|
-
}, t.onTouchStart = function(a) {
|
|
2337
|
-
var l = a.touches, c = l && l.item(0);
|
|
2338
|
-
c && (t.initialTouchX = c.clientX, t.initialTouchY = c.clientY, t.userIsDragging = !1);
|
|
2339
|
-
}, t.onTouchMove = function(a) {
|
|
2340
|
-
var l = a.touches, c = l && l.item(0);
|
|
2341
|
-
if (c) {
|
|
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;
|
|
2344
|
-
}
|
|
2345
|
-
}, t.onTouchEnd = function(a) {
|
|
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);
|
|
2347
|
-
}, t.onControlTouchEnd = function(a) {
|
|
2348
|
-
t.userIsDragging || t.onControlMouseDown(a);
|
|
2349
|
-
}, t.onClearIndicatorTouchEnd = function(a) {
|
|
2350
|
-
t.userIsDragging || t.onClearIndicatorMouseDown(a);
|
|
2351
|
-
}, t.onDropdownIndicatorTouchEnd = function(a) {
|
|
2352
|
-
t.userIsDragging || t.onDropdownIndicatorMouseDown(a);
|
|
2353
|
-
}, t.handleInputChange = function(a) {
|
|
2354
|
-
var l = t.props.inputValue, c = a.currentTarget.value;
|
|
2355
|
-
t.setState({
|
|
2356
|
-
inputIsHiddenAfterUpdate: !1
|
|
2357
|
-
}), t.onInputChange(c, {
|
|
2358
|
-
action: "input-change",
|
|
2359
|
-
prevInputValue: l
|
|
2360
|
-
}), t.props.menuIsOpen || t.onMenuOpen();
|
|
2361
|
-
}, t.onInputFocus = function(a) {
|
|
2362
|
-
t.props.onFocus && t.props.onFocus(a), t.setState({
|
|
2363
|
-
inputIsHiddenAfterUpdate: !1,
|
|
2364
|
-
isFocused: !0
|
|
2365
|
-
}), (t.openAfterFocus || t.props.openMenuOnFocus) && t.openMenu("first"), t.openAfterFocus = !1;
|
|
2366
|
-
}, t.onInputBlur = function(a) {
|
|
2367
|
-
var l = t.props.inputValue;
|
|
2368
|
-
if (t.menuListRef && t.menuListRef.contains(document.activeElement)) {
|
|
2369
|
-
t.inputRef.focus();
|
|
2370
|
-
return;
|
|
2371
|
-
}
|
|
2372
|
-
t.props.onBlur && t.props.onBlur(a), t.onInputChange("", {
|
|
2373
|
-
action: "input-blur",
|
|
2374
|
-
prevInputValue: l
|
|
2375
|
-
}), t.onMenuClose(), t.setState({
|
|
2376
|
-
focusedValue: null,
|
|
2377
|
-
isFocused: !1
|
|
2378
|
-
});
|
|
2379
|
-
}, t.onOptionHover = function(a) {
|
|
2380
|
-
if (!(t.blockOptionHover || t.state.focusedOption === a)) {
|
|
2381
|
-
var l = t.getFocusableOptions(), c = l.indexOf(a);
|
|
2382
|
-
t.setState({
|
|
2383
|
-
focusedOption: a,
|
|
2384
|
-
focusedOptionId: c > -1 ? t.getFocusedOptionId(a) : null
|
|
2385
|
-
});
|
|
2386
|
-
}
|
|
2387
|
-
}, t.shouldHideSelectedOptions = function() {
|
|
2388
|
-
return Fn(t.props);
|
|
2389
|
-
}, t.onValueInputFocus = function(a) {
|
|
2390
|
-
a.preventDefault(), a.stopPropagation(), t.focus();
|
|
2391
|
-
}, t.onKeyDown = function(a) {
|
|
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))) {
|
|
2394
|
-
switch (t.blockOptionHover = !0, a.key) {
|
|
2395
|
-
case "ArrowLeft":
|
|
2396
|
-
if (!c || b) return;
|
|
2397
|
-
t.focusValue("previous");
|
|
2398
|
-
break;
|
|
2399
|
-
case "ArrowRight":
|
|
2400
|
-
if (!c || b) return;
|
|
2401
|
-
t.focusValue("next");
|
|
2402
|
-
break;
|
|
2403
|
-
case "Delete":
|
|
2404
|
-
case "Backspace":
|
|
2405
|
-
if (b) return;
|
|
2406
|
-
if (x)
|
|
2407
|
-
t.removeValue(x);
|
|
2408
|
-
else {
|
|
2409
|
-
if (!d) return;
|
|
2410
|
-
c ? t.popValue() : f && t.clearValue();
|
|
2411
|
-
}
|
|
2412
|
-
break;
|
|
2413
|
-
case "Tab":
|
|
2414
|
-
if (t.isComposing || a.shiftKey || !p || !A || !V || // don't capture the event if the menu opens on focus and the focused
|
|
2415
|
-
// option is already selected; it breaks the flow of navigation
|
|
2416
|
-
C && t.isOptionSelected(V, S))
|
|
2417
|
-
return;
|
|
2418
|
-
t.selectOption(V);
|
|
2419
|
-
break;
|
|
2420
|
-
case "Enter":
|
|
2421
|
-
if (a.keyCode === 229)
|
|
2422
|
-
break;
|
|
2423
|
-
if (p) {
|
|
2424
|
-
if (!V || t.isComposing) return;
|
|
2425
|
-
t.selectOption(V);
|
|
2426
|
-
break;
|
|
2427
|
-
}
|
|
2428
|
-
return;
|
|
2429
|
-
case "Escape":
|
|
2430
|
-
p ? (t.setState({
|
|
2431
|
-
inputIsHiddenAfterUpdate: !1
|
|
2432
|
-
}), t.onInputChange("", {
|
|
2433
|
-
action: "menu-close",
|
|
2434
|
-
prevInputValue: b
|
|
2435
|
-
}), t.onMenuClose()) : f && g && t.clearValue();
|
|
2436
|
-
break;
|
|
2437
|
-
case " ":
|
|
2438
|
-
if (b)
|
|
2439
|
-
return;
|
|
2440
|
-
if (!p) {
|
|
2441
|
-
t.openMenu("first");
|
|
2442
|
-
break;
|
|
2443
|
-
}
|
|
2444
|
-
if (!V) return;
|
|
2445
|
-
t.selectOption(V);
|
|
2446
|
-
break;
|
|
2447
|
-
case "ArrowUp":
|
|
2448
|
-
p ? t.focusOption("up") : t.openMenu("last");
|
|
2449
|
-
break;
|
|
2450
|
-
case "ArrowDown":
|
|
2451
|
-
p ? t.focusOption("down") : t.openMenu("first");
|
|
2452
|
-
break;
|
|
2453
|
-
case "PageUp":
|
|
2454
|
-
if (!p) return;
|
|
2455
|
-
t.focusOption("pageup");
|
|
2456
|
-
break;
|
|
2457
|
-
case "PageDown":
|
|
2458
|
-
if (!p) return;
|
|
2459
|
-
t.focusOption("pagedown");
|
|
2460
|
-
break;
|
|
2461
|
-
case "Home":
|
|
2462
|
-
if (!p) return;
|
|
2463
|
-
t.focusOption("first");
|
|
2464
|
-
break;
|
|
2465
|
-
case "End":
|
|
2466
|
-
if (!p) return;
|
|
2467
|
-
t.focusOption("last");
|
|
2468
|
-
break;
|
|
2469
|
-
default:
|
|
2470
|
-
return;
|
|
2471
|
-
}
|
|
2472
|
-
a.preventDefault();
|
|
2473
|
-
}
|
|
2474
|
-
}, t.state.instancePrefix = "react-select-" + (t.props.instanceId || ++mr), t.state.selectValue = Bt(i.value), i.menuIsOpen && t.state.selectValue.length) {
|
|
2475
|
-
var r = t.getFocusableOptionsWithIds(), o = t.buildFocusableOptions(), s = o.indexOf(t.state.selectValue[0]);
|
|
2476
|
-
t.state.focusableOptionsWithIds = r, t.state.focusedOption = o[s], t.state.focusedOptionId = Ue(r, o[s]);
|
|
2477
|
-
}
|
|
2478
|
-
return t;
|
|
2479
|
-
}
|
|
2480
|
-
return Ri(u, [{
|
|
2481
|
-
key: "componentDidMount",
|
|
2482
|
-
value: function() {
|
|
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);
|
|
2484
|
-
}
|
|
2485
|
-
}, {
|
|
2486
|
-
key: "componentDidUpdate",
|
|
2487
|
-
value: function(t) {
|
|
2488
|
-
var r = this.props, o = r.isDisabled, s = r.menuIsOpen, a = this.state.isFocused;
|
|
2489
|
-
// ensure focus is restored correctly when the control becomes enabled
|
|
2490
|
-
(a && !o && t.isDisabled || // ensure focus is on the Input when the menu opens
|
|
2491
|
-
a && s && !t.menuIsOpen) && this.focusInput(), a && o && !t.isDisabled ? this.setState({
|
|
2492
|
-
isFocused: !1
|
|
2493
|
-
}, this.onMenuClose) : !a && !o && t.isDisabled && this.inputRef === document.activeElement && this.setState({
|
|
2494
|
-
isFocused: !0
|
|
2495
|
-
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (Tt(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
|
|
2496
|
-
}
|
|
2497
|
-
}, {
|
|
2498
|
-
key: "componentWillUnmount",
|
|
2499
|
-
value: function() {
|
|
2500
|
-
this.stopListeningComposition(), this.stopListeningToTouch(), document.removeEventListener("scroll", this.onScroll, !0);
|
|
2501
|
-
}
|
|
2502
|
-
// ==============================
|
|
2503
|
-
// Consumer Handlers
|
|
2504
|
-
// ==============================
|
|
2505
|
-
}, {
|
|
2506
|
-
key: "onMenuOpen",
|
|
2507
|
-
value: function() {
|
|
2508
|
-
this.props.onMenuOpen();
|
|
2509
|
-
}
|
|
2510
|
-
}, {
|
|
2511
|
-
key: "onMenuClose",
|
|
2512
|
-
value: function() {
|
|
2513
|
-
this.onInputChange("", {
|
|
2514
|
-
action: "menu-close",
|
|
2515
|
-
prevInputValue: this.props.inputValue
|
|
2516
|
-
}), this.props.onMenuClose();
|
|
2517
|
-
}
|
|
2518
|
-
}, {
|
|
2519
|
-
key: "onInputChange",
|
|
2520
|
-
value: function(t, r) {
|
|
2521
|
-
this.props.onInputChange(t, r);
|
|
2522
|
-
}
|
|
2523
|
-
// ==============================
|
|
2524
|
-
// Methods
|
|
2525
|
-
// ==============================
|
|
2526
|
-
}, {
|
|
2527
|
-
key: "focusInput",
|
|
2528
|
-
value: function() {
|
|
2529
|
-
this.inputRef && this.inputRef.focus();
|
|
2530
|
-
}
|
|
2531
|
-
}, {
|
|
2532
|
-
key: "blurInput",
|
|
2533
|
-
value: function() {
|
|
2534
|
-
this.inputRef && this.inputRef.blur();
|
|
2535
|
-
}
|
|
2536
|
-
// aliased for consumers
|
|
2537
|
-
}, {
|
|
2538
|
-
key: "openMenu",
|
|
2539
|
-
value: function(t) {
|
|
2540
|
-
var r = this, o = this.state, s = o.selectValue, a = o.isFocused, l = this.buildFocusableOptions(), c = t === "first" ? 0 : l.length - 1;
|
|
2541
|
-
if (!this.props.isMulti) {
|
|
2542
|
-
var d = l.indexOf(s[0]);
|
|
2543
|
-
d > -1 && (c = d);
|
|
2544
|
-
}
|
|
2545
|
-
this.scrollToFocusedOptionOnUpdate = !(a && this.menuListRef), this.setState({
|
|
2546
|
-
inputIsHiddenAfterUpdate: !1,
|
|
2547
|
-
focusedValue: null,
|
|
2548
|
-
focusedOption: l[c],
|
|
2549
|
-
focusedOptionId: this.getFocusedOptionId(l[c])
|
|
2550
|
-
}, function() {
|
|
2551
|
-
return r.onMenuOpen();
|
|
2552
|
-
});
|
|
2553
|
-
}
|
|
2554
|
-
}, {
|
|
2555
|
-
key: "focusValue",
|
|
2556
|
-
value: function(t) {
|
|
2557
|
-
var r = this.state, o = r.selectValue, s = r.focusedValue;
|
|
2558
|
-
if (this.props.isMulti) {
|
|
2559
|
-
this.setState({
|
|
2560
|
-
focusedOption: null
|
|
2561
|
-
});
|
|
2562
|
-
var a = o.indexOf(s);
|
|
2563
|
-
s || (a = -1);
|
|
2564
|
-
var l = o.length - 1, c = -1;
|
|
2565
|
-
if (o.length) {
|
|
2566
|
-
switch (t) {
|
|
2567
|
-
case "previous":
|
|
2568
|
-
a === 0 ? c = 0 : a === -1 ? c = l : c = a - 1;
|
|
2569
|
-
break;
|
|
2570
|
-
case "next":
|
|
2571
|
-
a > -1 && a < l && (c = a + 1);
|
|
2572
|
-
break;
|
|
2573
|
-
}
|
|
2574
|
-
this.setState({
|
|
2575
|
-
inputIsHidden: c !== -1,
|
|
2576
|
-
focusedValue: o[c]
|
|
2577
|
-
});
|
|
2578
|
-
}
|
|
2579
|
-
}
|
|
2580
|
-
}
|
|
2581
|
-
}, {
|
|
2582
|
-
key: "focusOption",
|
|
2583
|
-
value: function() {
|
|
2584
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", r = this.props.pageSize, o = this.state.focusedOption, s = this.getFocusableOptions();
|
|
2585
|
-
if (s.length) {
|
|
2586
|
-
var a = 0, l = s.indexOf(o);
|
|
2587
|
-
o || (l = -1), t === "up" ? a = l > 0 ? l - 1 : s.length - 1 : t === "down" ? a = (l + 1) % s.length : t === "pageup" ? (a = l - r, a < 0 && (a = 0)) : t === "pagedown" ? (a = l + r, a > s.length - 1 && (a = s.length - 1)) : t === "last" && (a = s.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
|
|
2588
|
-
focusedOption: s[a],
|
|
2589
|
-
focusedValue: null,
|
|
2590
|
-
focusedOptionId: this.getFocusedOptionId(s[a])
|
|
2591
|
-
});
|
|
2592
|
-
}
|
|
2593
|
-
}
|
|
2594
|
-
}, {
|
|
2595
|
-
key: "getTheme",
|
|
2596
|
-
value: (
|
|
2597
|
-
// ==============================
|
|
2598
|
-
// Getters
|
|
2599
|
-
// ==============================
|
|
2600
|
-
function() {
|
|
2601
|
-
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(ze) : E(E({}, ze), this.props.theme) : ze;
|
|
2602
|
-
}
|
|
2603
|
-
)
|
|
2604
|
-
}, {
|
|
2605
|
-
key: "getCommonProps",
|
|
2606
|
-
value: function() {
|
|
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();
|
|
2608
|
-
return {
|
|
2609
|
-
clearValue: t,
|
|
2610
|
-
cx: r,
|
|
2611
|
-
getStyles: o,
|
|
2612
|
-
getClassNames: s,
|
|
2613
|
-
getValue: a,
|
|
2614
|
-
hasValue: I,
|
|
2615
|
-
isMulti: g,
|
|
2616
|
-
isRtl: b,
|
|
2617
|
-
options: f,
|
|
2618
|
-
selectOption: l,
|
|
2619
|
-
selectProps: d,
|
|
2620
|
-
setValue: c,
|
|
2621
|
-
theme: this.getTheme()
|
|
2622
|
-
};
|
|
2623
|
-
}
|
|
2624
|
-
}, {
|
|
2625
|
-
key: "hasValue",
|
|
2626
|
-
value: function() {
|
|
2627
|
-
var t = this.state.selectValue;
|
|
2628
|
-
return t.length > 0;
|
|
2629
|
-
}
|
|
2630
|
-
}, {
|
|
2631
|
-
key: "hasOptions",
|
|
2632
|
-
value: function() {
|
|
2633
|
-
return !!this.getFocusableOptions().length;
|
|
2634
|
-
}
|
|
2635
|
-
}, {
|
|
2636
|
-
key: "isClearable",
|
|
2637
|
-
value: function() {
|
|
2638
|
-
var t = this.props, r = t.isClearable, o = t.isMulti;
|
|
2639
|
-
return r === void 0 ? o : r;
|
|
2640
|
-
}
|
|
2641
|
-
}, {
|
|
2642
|
-
key: "isOptionDisabled",
|
|
2643
|
-
value: function(t, r) {
|
|
2644
|
-
return yn(this.props, t, r);
|
|
2645
|
-
}
|
|
2646
|
-
}, {
|
|
2647
|
-
key: "isOptionSelected",
|
|
2648
|
-
value: function(t, r) {
|
|
2649
|
-
return En(this.props, t, r);
|
|
2650
|
-
}
|
|
2651
|
-
}, {
|
|
2652
|
-
key: "filterOption",
|
|
2653
|
-
value: function(t, r) {
|
|
2654
|
-
return Gn(this.props, t, r);
|
|
2655
|
-
}
|
|
2656
|
-
}, {
|
|
2657
|
-
key: "formatOptionLabel",
|
|
2658
|
-
value: function(t, r) {
|
|
2659
|
-
if (typeof this.props.formatOptionLabel == "function") {
|
|
2660
|
-
var o = this.props.inputValue, s = this.state.selectValue;
|
|
2661
|
-
return this.props.formatOptionLabel(t, {
|
|
2662
|
-
context: r,
|
|
2663
|
-
inputValue: o,
|
|
2664
|
-
selectValue: s
|
|
2665
|
-
});
|
|
2666
|
-
} else
|
|
2667
|
-
return this.getOptionLabel(t);
|
|
2668
|
-
}
|
|
2669
|
-
}, {
|
|
2670
|
-
key: "formatGroupLabel",
|
|
2671
|
-
value: function(t) {
|
|
2672
|
-
return this.props.formatGroupLabel(t);
|
|
2673
|
-
}
|
|
2674
|
-
// ==============================
|
|
2675
|
-
// Mouse Handlers
|
|
2676
|
-
// ==============================
|
|
2677
|
-
}, {
|
|
2678
|
-
key: "startListeningComposition",
|
|
2679
|
-
value: (
|
|
2680
|
-
// ==============================
|
|
2681
|
-
// Composition Handlers
|
|
2682
|
-
// ==============================
|
|
2683
|
-
function() {
|
|
2684
|
-
document && document.addEventListener && (document.addEventListener("compositionstart", this.onCompositionStart, !1), document.addEventListener("compositionend", this.onCompositionEnd, !1));
|
|
2685
|
-
}
|
|
2686
|
-
)
|
|
2687
|
-
}, {
|
|
2688
|
-
key: "stopListeningComposition",
|
|
2689
|
-
value: function() {
|
|
2690
|
-
document && document.removeEventListener && (document.removeEventListener("compositionstart", this.onCompositionStart), document.removeEventListener("compositionend", this.onCompositionEnd));
|
|
2691
|
-
}
|
|
2692
|
-
}, {
|
|
2693
|
-
key: "startListeningToTouch",
|
|
2694
|
-
value: (
|
|
2695
|
-
// ==============================
|
|
2696
|
-
// Touch Handlers
|
|
2697
|
-
// ==============================
|
|
2698
|
-
function() {
|
|
2699
|
-
document && document.addEventListener && (document.addEventListener("touchstart", this.onTouchStart, !1), document.addEventListener("touchmove", this.onTouchMove, !1), document.addEventListener("touchend", this.onTouchEnd, !1));
|
|
2700
|
-
}
|
|
2701
|
-
)
|
|
2702
|
-
}, {
|
|
2703
|
-
key: "stopListeningToTouch",
|
|
2704
|
-
value: function() {
|
|
2705
|
-
document && document.removeEventListener && (document.removeEventListener("touchstart", this.onTouchStart), document.removeEventListener("touchmove", this.onTouchMove), document.removeEventListener("touchend", this.onTouchEnd));
|
|
2706
|
-
}
|
|
2707
|
-
}, {
|
|
2708
|
-
key: "renderInput",
|
|
2709
|
-
value: (
|
|
2710
|
-
// ==============================
|
|
2711
|
-
// Renderers
|
|
2712
|
-
// ==============================
|
|
2713
|
-
function() {
|
|
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({
|
|
2715
|
-
"aria-autocomplete": "list",
|
|
2716
|
-
"aria-expanded": d,
|
|
2717
|
-
"aria-haspopup": !0,
|
|
2718
|
-
"aria-errormessage": this.props["aria-errormessage"],
|
|
2719
|
-
"aria-invalid": this.props["aria-invalid"],
|
|
2720
|
-
"aria-label": this.props["aria-label"],
|
|
2721
|
-
"aria-labelledby": this.props["aria-labelledby"],
|
|
2722
|
-
"aria-required": g,
|
|
2723
|
-
role: "combobox",
|
|
2724
|
-
"aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
|
|
2725
|
-
}, d && {
|
|
2726
|
-
"aria-controls": this.getElementId("listbox")
|
|
2727
|
-
}), !o && {
|
|
2728
|
-
"aria-readonly": !0
|
|
2729
|
-
}), this.hasValue() ? (m == null ? void 0 : m.action) === "initial-input-focus" && {
|
|
2730
|
-
"aria-describedby": this.getElementId("live-region")
|
|
2731
|
-
} : {
|
|
2732
|
-
"aria-describedby": this.getElementId("placeholder")
|
|
2733
|
-
});
|
|
2734
|
-
return o ? /* @__PURE__ */ R.createElement(f, G({}, A, {
|
|
2735
|
-
autoCapitalize: "none",
|
|
2736
|
-
autoComplete: "off",
|
|
2737
|
-
autoCorrect: "off",
|
|
2738
|
-
id: C,
|
|
2739
|
-
innerRef: this.getInputRef,
|
|
2740
|
-
isDisabled: r,
|
|
2741
|
-
isHidden: p,
|
|
2742
|
-
onBlur: this.onInputBlur,
|
|
2743
|
-
onChange: this.handleInputChange,
|
|
2744
|
-
onFocus: this.onInputFocus,
|
|
2745
|
-
spellCheck: "false",
|
|
2746
|
-
tabIndex: l,
|
|
2747
|
-
form: c,
|
|
2748
|
-
type: "text",
|
|
2749
|
-
value: a
|
|
2750
|
-
}, T)) : /* @__PURE__ */ R.createElement(Da, G({
|
|
2751
|
-
id: C,
|
|
2752
|
-
innerRef: this.getInputRef,
|
|
2753
|
-
onBlur: this.onInputBlur,
|
|
2754
|
-
onChange: Ze,
|
|
2755
|
-
onFocus: this.onInputFocus,
|
|
2756
|
-
disabled: r,
|
|
2757
|
-
tabIndex: l,
|
|
2758
|
-
inputMode: "none",
|
|
2759
|
-
form: c,
|
|
2760
|
-
value: ""
|
|
2761
|
-
}, T));
|
|
2762
|
-
}
|
|
2763
|
-
)
|
|
2764
|
-
}, {
|
|
2765
|
-
key: "renderPlaceholderOrValue",
|
|
2766
|
-
value: function() {
|
|
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, {
|
|
2770
|
-
key: "placeholder",
|
|
2771
|
-
isDisabled: I,
|
|
2772
|
-
isFocused: x,
|
|
2773
|
-
innerProps: {
|
|
2774
|
-
id: this.getElementId("placeholder")
|
|
2775
|
-
}
|
|
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, {
|
|
2781
|
-
components: {
|
|
2782
|
-
Container: s,
|
|
2783
|
-
Label: a,
|
|
2784
|
-
Remove: l
|
|
2785
|
-
},
|
|
2786
|
-
isFocused: W,
|
|
2787
|
-
isDisabled: I,
|
|
2788
|
-
key: N,
|
|
2789
|
-
index: B,
|
|
2790
|
-
removeProps: {
|
|
2791
|
-
onClick: function() {
|
|
2792
|
-
return t.removeValue(h);
|
|
2793
|
-
},
|
|
2794
|
-
onTouchEnd: function() {
|
|
2795
|
-
return t.removeValue(h);
|
|
2796
|
-
},
|
|
2797
|
-
onMouseDown: function(Q) {
|
|
2798
|
-
Q.preventDefault();
|
|
2799
|
-
}
|
|
2800
|
-
},
|
|
2801
|
-
data: h
|
|
2802
|
-
}), t.formatOptionLabel(h, "value"));
|
|
2803
|
-
});
|
|
2804
|
-
if (m)
|
|
2805
|
-
return null;
|
|
2806
|
-
var S = T[0];
|
|
2807
|
-
return /* @__PURE__ */ R.createElement(c, G({}, g, {
|
|
2808
|
-
data: S,
|
|
2809
|
-
isDisabled: I
|
|
2810
|
-
}), this.formatOptionLabel(S, "value"));
|
|
2811
|
-
}
|
|
2812
|
-
}, {
|
|
2813
|
-
key: "renderClearIndicator",
|
|
2814
|
-
value: function() {
|
|
2815
|
-
var t = this.getComponents(), r = t.ClearIndicator, o = this.commonProps, s = this.props, a = s.isDisabled, l = s.isLoading, c = this.state.isFocused;
|
|
2816
|
-
if (!this.isClearable() || !r || a || !this.hasValue() || l)
|
|
2817
|
-
return null;
|
|
2818
|
-
var d = {
|
|
2819
|
-
onMouseDown: this.onClearIndicatorMouseDown,
|
|
2820
|
-
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
2821
|
-
"aria-hidden": "true"
|
|
2822
|
-
};
|
|
2823
|
-
return /* @__PURE__ */ R.createElement(r, G({}, o, {
|
|
2824
|
-
innerProps: d,
|
|
2825
|
-
isFocused: c
|
|
2826
|
-
}));
|
|
2827
|
-
}
|
|
2828
|
-
}, {
|
|
2829
|
-
key: "renderLoadingIndicator",
|
|
2830
|
-
value: function() {
|
|
2831
|
-
var t = this.getComponents(), r = t.LoadingIndicator, o = this.commonProps, s = this.props, a = s.isDisabled, l = s.isLoading, c = this.state.isFocused;
|
|
2832
|
-
if (!r || !l) return null;
|
|
2833
|
-
var d = {
|
|
2834
|
-
"aria-hidden": "true"
|
|
2835
|
-
};
|
|
2836
|
-
return /* @__PURE__ */ R.createElement(r, G({}, o, {
|
|
2837
|
-
innerProps: d,
|
|
2838
|
-
isDisabled: a,
|
|
2839
|
-
isFocused: c
|
|
2840
|
-
}));
|
|
2841
|
-
}
|
|
2842
|
-
}, {
|
|
2843
|
-
key: "renderIndicatorSeparator",
|
|
2844
|
-
value: function() {
|
|
2845
|
-
var t = this.getComponents(), r = t.DropdownIndicator, o = t.IndicatorSeparator;
|
|
2846
|
-
if (!r || !o) return null;
|
|
2847
|
-
var s = this.commonProps, a = this.props.isDisabled, l = this.state.isFocused;
|
|
2848
|
-
return /* @__PURE__ */ R.createElement(o, G({}, s, {
|
|
2849
|
-
isDisabled: a,
|
|
2850
|
-
isFocused: l
|
|
2851
|
-
}));
|
|
2852
|
-
}
|
|
2853
|
-
}, {
|
|
2854
|
-
key: "renderDropdownIndicator",
|
|
2855
|
-
value: function() {
|
|
2856
|
-
var t = this.getComponents(), r = t.DropdownIndicator;
|
|
2857
|
-
if (!r) return null;
|
|
2858
|
-
var o = this.commonProps, s = this.props.isDisabled, a = this.state.isFocused, l = {
|
|
2859
|
-
onMouseDown: this.onDropdownIndicatorMouseDown,
|
|
2860
|
-
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
2861
|
-
"aria-hidden": "true"
|
|
2862
|
-
};
|
|
2863
|
-
return /* @__PURE__ */ R.createElement(r, G({}, o, {
|
|
2864
|
-
innerProps: l,
|
|
2865
|
-
isDisabled: s,
|
|
2866
|
-
isFocused: a
|
|
2867
|
-
}));
|
|
2868
|
-
}
|
|
2869
|
-
}, {
|
|
2870
|
-
key: "renderMenu",
|
|
2871
|
-
value: function() {
|
|
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;
|
|
2873
|
-
if (!S) return null;
|
|
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,
|
|
2884
|
-
tabIndex: -1,
|
|
2885
|
-
role: "option",
|
|
2886
|
-
"aria-selected": t.isAppleDevice ? void 0 : $
|
|
2887
|
-
// is not supported on Apple devices
|
|
2888
|
-
};
|
|
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;
|
|
2902
|
-
if (this.hasOptions())
|
|
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,
|
|
2910
|
-
Heading: s,
|
|
2911
|
-
headingProps: {
|
|
2912
|
-
id: se,
|
|
2913
|
-
data: P.data
|
|
2914
|
-
},
|
|
2915
|
-
label: t.formatGroupLabel(P.data)
|
|
2916
|
-
}), P.options.map(function($) {
|
|
2917
|
-
return w($, "".concat(le, "-").concat($.index));
|
|
2918
|
-
}));
|
|
2919
|
-
} else if (P.type === "option")
|
|
2920
|
-
return w(P, "".concat(P.index));
|
|
2921
|
-
});
|
|
2922
|
-
else if (C) {
|
|
2923
|
-
var k = T({
|
|
2924
|
-
inputValue: A
|
|
2925
|
-
});
|
|
2926
|
-
if (k === null) return null;
|
|
2927
|
-
z = /* @__PURE__ */ R.createElement(d, f, k);
|
|
2928
|
-
} else {
|
|
2929
|
-
var re = Q({
|
|
2930
|
-
inputValue: A
|
|
2931
|
-
});
|
|
2932
|
-
if (re === null) return null;
|
|
2933
|
-
z = /* @__PURE__ */ R.createElement(g, f, re);
|
|
2934
|
-
}
|
|
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,
|
|
2945
|
-
innerProps: {
|
|
2946
|
-
onMouseDown: t.onMenuMouseDown,
|
|
2947
|
-
onMouseMove: t.onMenuMouseMove
|
|
2948
|
-
},
|
|
2949
|
-
isLoading: C,
|
|
2950
|
-
placement: le
|
|
2951
|
-
}), /* @__PURE__ */ R.createElement(za, {
|
|
2952
|
-
captureEnabled: m,
|
|
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);
|
|
2960
|
-
},
|
|
2961
|
-
innerProps: {
|
|
2962
|
-
role: "listbox",
|
|
2963
|
-
"aria-multiselectable": f.isMulti,
|
|
2964
|
-
id: t.getElementId("listbox")
|
|
2965
|
-
},
|
|
2966
|
-
isLoading: C,
|
|
2967
|
-
maxHeight: Y,
|
|
2968
|
-
focusedOption: I
|
|
2969
|
-
}), z);
|
|
2970
|
-
}));
|
|
2971
|
-
});
|
|
2972
|
-
return W || B === "fixed" ? /* @__PURE__ */ R.createElement(c, G({}, f, {
|
|
2973
|
-
appendTo: W,
|
|
2974
|
-
controlElement: this.controlRef,
|
|
2975
|
-
menuPlacement: h,
|
|
2976
|
-
menuPosition: B
|
|
2977
|
-
}), ye) : ye;
|
|
2978
|
-
}
|
|
2979
|
-
}, {
|
|
2980
|
-
key: "renderFormField",
|
|
2981
|
-
value: function() {
|
|
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;
|
|
2983
|
-
if (c && !this.hasValue() && !s)
|
|
2984
|
-
return /* @__PURE__ */ R.createElement(Ka, {
|
|
2985
|
-
name: l,
|
|
2986
|
-
onFocus: this.onValueInputFocus
|
|
2987
|
-
});
|
|
2988
|
-
if (!(!l || s))
|
|
2989
|
-
if (a)
|
|
2990
|
-
if (o) {
|
|
2991
|
-
var g = d.map(function(I) {
|
|
2992
|
-
return t.getOptionValue(I);
|
|
2993
|
-
}).join(o);
|
|
2994
|
-
return /* @__PURE__ */ R.createElement("input", {
|
|
2995
|
-
name: l,
|
|
2996
|
-
type: "hidden",
|
|
2997
|
-
value: g
|
|
2998
|
-
});
|
|
2999
|
-
} else {
|
|
3000
|
-
var b = d.length > 0 ? d.map(function(I, p) {
|
|
3001
|
-
return /* @__PURE__ */ R.createElement("input", {
|
|
3002
|
-
key: "i-".concat(p),
|
|
3003
|
-
name: l,
|
|
3004
|
-
type: "hidden",
|
|
3005
|
-
value: t.getOptionValue(I)
|
|
3006
|
-
});
|
|
3007
|
-
}) : /* @__PURE__ */ R.createElement("input", {
|
|
3008
|
-
name: l,
|
|
3009
|
-
type: "hidden",
|
|
3010
|
-
value: ""
|
|
3011
|
-
});
|
|
3012
|
-
return /* @__PURE__ */ R.createElement("div", null, b);
|
|
3013
|
-
}
|
|
3014
|
-
else {
|
|
3015
|
-
var f = d[0] ? this.getOptionValue(d[0]) : "";
|
|
3016
|
-
return /* @__PURE__ */ R.createElement("input", {
|
|
3017
|
-
name: l,
|
|
3018
|
-
type: "hidden",
|
|
3019
|
-
value: f
|
|
3020
|
-
});
|
|
3021
|
-
}
|
|
3022
|
-
}
|
|
3023
|
-
}, {
|
|
3024
|
-
key: "renderLiveRegion",
|
|
3025
|
-
value: function() {
|
|
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();
|
|
3027
|
-
return /* @__PURE__ */ R.createElement(Xa, G({}, t, {
|
|
3028
|
-
id: this.getElementId("live-region"),
|
|
3029
|
-
ariaSelection: o,
|
|
3030
|
-
focusedOption: s,
|
|
3031
|
-
focusedValue: a,
|
|
3032
|
-
isFocused: l,
|
|
3033
|
-
selectValue: c,
|
|
3034
|
-
focusableOptions: d,
|
|
3035
|
-
isAppleDevice: this.isAppleDevice
|
|
3036
|
-
}));
|
|
3037
|
-
}
|
|
3038
|
-
}, {
|
|
3039
|
-
key: "render",
|
|
3040
|
-
value: function() {
|
|
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, {
|
|
3043
|
-
className: c,
|
|
3044
|
-
innerProps: {
|
|
3045
|
-
id: d,
|
|
3046
|
-
onKeyDown: this.onKeyDown
|
|
3047
|
-
},
|
|
3048
|
-
isDisabled: g,
|
|
3049
|
-
isFocused: f
|
|
3050
|
-
}), this.renderLiveRegion(), /* @__PURE__ */ R.createElement(r, G({}, I, {
|
|
3051
|
-
innerRef: this.getControlRef,
|
|
3052
|
-
innerProps: {
|
|
3053
|
-
onMouseDown: this.onControlMouseDown,
|
|
3054
|
-
onTouchEnd: this.onControlTouchEnd
|
|
3055
|
-
},
|
|
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
|
|
3063
|
-
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
3064
|
-
}
|
|
3065
|
-
}], [{
|
|
3066
|
-
key: "getDerivedStateFromProps",
|
|
3067
|
-
value: function(t, r) {
|
|
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,
|
|
3073
|
-
focusedOption: S,
|
|
3074
|
-
focusedOptionId: h,
|
|
3075
|
-
focusableOptionsWithIds: V,
|
|
3076
|
-
focusedValue: x,
|
|
3077
|
-
clearFocusValueOnUpdate: !1
|
|
3078
|
-
};
|
|
3079
|
-
}
|
|
3080
|
-
var B = a != null && t !== o ? {
|
|
3081
|
-
inputIsHidden: a,
|
|
3082
|
-
inputIsHiddenAfterUpdate: void 0
|
|
3083
|
-
} : {}, W = l, N = c && d;
|
|
3084
|
-
return c && !N && (W = {
|
|
3085
|
-
value: Te(m, A, A[0] || null),
|
|
3086
|
-
options: A,
|
|
3087
|
-
action: "initial-input-focus"
|
|
3088
|
-
}, N = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (W = null), E(E(E({}, C), B), {}, {
|
|
3089
|
-
prevProps: t,
|
|
3090
|
-
ariaSelection: W,
|
|
3091
|
-
prevWasFocused: N
|
|
3092
|
-
});
|
|
3093
|
-
}
|
|
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({
|
|
3100
|
-
ref: e
|
|
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)`
|
|
3104
|
-
& .MuiOutlinedInput-input {
|
|
3105
|
-
padding: 8px 10px;
|
|
3106
|
-
font-size: 13px;
|
|
3107
|
-
font-weight: 400;
|
|
3108
|
-
line-height: 20px;
|
|
3109
|
-
color: #3e4c5a;
|
|
3110
|
-
}
|
|
3111
|
-
`, xr = Z(U)`
|
|
3112
|
-
& .formField__select {
|
|
3113
|
-
font-size: 13px;
|
|
3114
|
-
font-weight: 400;
|
|
3115
|
-
line-height: 20px;
|
|
3116
|
-
color: #3e4c5a;
|
|
3117
|
-
}
|
|
3118
|
-
& .hiverFormField__control {
|
|
3119
|
-
height: 34px;
|
|
3120
|
-
min-height: 34px;
|
|
3121
|
-
&:hover {
|
|
3122
|
-
border-color: #4d596c;
|
|
3123
|
-
}
|
|
3124
|
-
&.hiverFormField__control--is-focused {
|
|
3125
|
-
border: 2px solid #506dff;
|
|
3126
|
-
box-shadow: none;
|
|
3127
|
-
}
|
|
3128
|
-
}
|
|
3129
|
-
& .formField__select--error {
|
|
3130
|
-
& .hiverFormField__control {
|
|
3131
|
-
border: 1px solid #cd3746;
|
|
3132
|
-
box-shadow: none;
|
|
3133
|
-
&.hiverFormField__control--is-focused {
|
|
3134
|
-
border-width: 2px;
|
|
3135
|
-
}
|
|
3136
|
-
}
|
|
3137
|
-
}
|
|
3138
|
-
& .hiverFormField__indicators {
|
|
3139
|
-
height: 30px;
|
|
3140
|
-
& .hiverFormField__dropdown-indicator {
|
|
3141
|
-
color: rgb(77, 89, 108);
|
|
3142
|
-
}
|
|
3143
|
-
}
|
|
3144
|
-
& .hiverFormField__value-container {
|
|
3145
|
-
margin-top: -2px;
|
|
3146
|
-
}
|
|
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)`
|
|
3173
|
-
font-size: 12px;
|
|
3174
|
-
font-weight: 400;
|
|
3175
|
-
margin: 2px 14px 0px 0px;
|
|
3176
|
-
text-align: left;
|
|
3177
|
-
position: absolute;
|
|
3178
|
-
width: calc(100% - 28px);
|
|
3179
|
-
&.helper--error {
|
|
3180
|
-
color: #d32f2f;
|
|
3181
|
-
}
|
|
3182
|
-
`, yr = Z(U)`
|
|
3183
|
-
width: 100%;
|
|
3184
|
-
position: relative;
|
|
3185
|
-
& .MuiInputBase-root {
|
|
3186
|
-
width: 100%;
|
|
3187
|
-
&.Mui-disabled {
|
|
3188
|
-
background: #0f13160a;
|
|
3189
|
-
color: #3e4c5a;
|
|
3190
|
-
}
|
|
3191
|
-
}
|
|
3192
|
-
& .form--sideIcon {
|
|
3193
|
-
position: absolute;
|
|
3194
|
-
margin-left: 5px;
|
|
3195
|
-
}
|
|
3196
|
-
`, Tn = (n) => {
|
|
3197
|
-
const {
|
|
3198
|
-
validation: e,
|
|
3199
|
-
helperText: u,
|
|
3200
|
-
id: i,
|
|
3201
|
-
label: t,
|
|
3202
|
-
name: r,
|
|
3203
|
-
validateOnBlur: o = !0,
|
|
3204
|
-
validateOnChange: s = !0,
|
|
3205
|
-
inputChangeHandler: a,
|
|
3206
|
-
selectChangeHandler: l,
|
|
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);
|
|
3215
|
-
};
|
|
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);
|
|
3221
|
-
}
|
|
3222
|
-
S && I(h), c == null || c(r, h);
|
|
3223
|
-
}
|
|
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);
|
|
3231
|
-
};
|
|
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,
|
|
3237
|
-
{
|
|
3238
|
-
...n,
|
|
3239
|
-
className: `formField__select ${f && g ? "formField__select--error" : ""} ${n.className || ""}`,
|
|
3240
|
-
classNamePrefix: "hiverFormField",
|
|
3241
|
-
onBlur: A,
|
|
3242
|
-
onChange: V,
|
|
3243
|
-
onFocus: p
|
|
3244
|
-
}
|
|
3245
|
-
) }) : /* @__PURE__ */ v.jsx(
|
|
3246
|
-
Ar,
|
|
3247
|
-
{
|
|
3248
|
-
id: i,
|
|
3249
|
-
...n,
|
|
3250
|
-
label: void 0,
|
|
3251
|
-
onBlur: A,
|
|
3252
|
-
onChange: T,
|
|
3253
|
-
onFocus: p,
|
|
3254
|
-
error: !!(f && g)
|
|
3255
|
-
}
|
|
3256
|
-
) }),
|
|
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()
|
|
3259
|
-
] })
|
|
3260
|
-
] });
|
|
3261
|
-
}, Er = Z(j)`
|
|
3262
|
-
& .authform__section-title {
|
|
3263
|
-
margin-top: 32px;
|
|
3264
|
-
margin-bottom: 12px;
|
|
3265
|
-
}
|
|
3266
|
-
`, Gr = ({
|
|
3267
|
-
formConfig: n,
|
|
3268
|
-
inputChangeHandler: e,
|
|
3269
|
-
icons: u,
|
|
3270
|
-
selectChangeHandler: i,
|
|
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,
|
|
3279
|
-
{
|
|
3280
|
-
value: r == null ? void 0 : r[d.name],
|
|
3281
|
-
...d,
|
|
3282
|
-
selectChangeHandler: i,
|
|
3283
|
-
inputChangeHandler: e,
|
|
3284
|
-
validation: o == null ? void 0 : o[d.name],
|
|
3285
|
-
onValidationError: s,
|
|
3286
|
-
iconData: u == null ? void 0 : u[d.name]
|
|
3287
|
-
},
|
|
3288
|
-
d.name
|
|
3289
|
-
)) })
|
|
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 = {
|
|
3294
|
-
baseUrl: "baseUrl",
|
|
3295
|
-
authType: "authType"
|
|
3296
|
-
}, de = {
|
|
3297
|
-
apiKey: "apiKey",
|
|
3298
|
-
apiAddTo: "apiAddTo",
|
|
3299
|
-
apiHeaderPrefix: "apiHeaderPrefix",
|
|
3300
|
-
apiHeaderName: "apiHeaderName",
|
|
3301
|
-
apiParamName: "apiParamName"
|
|
3302
|
-
}, q = {
|
|
3303
|
-
oAuthClientId: "oAuthClientId",
|
|
3304
|
-
oAuthClientSecret: "oAuthClientSecret",
|
|
3305
|
-
oAuthEndUrl: "oAuthEndUrl",
|
|
3306
|
-
oAuthTokenUrl: "oAuthTokenUrl",
|
|
3307
|
-
oAuthRefreshTokenUrl: "oAuthRefreshTokenUrl",
|
|
3308
|
-
oAuthRedirectUrl: "oAuthRedirectUrl",
|
|
3309
|
-
oAuthHeaderName: "oAuthHeaderName",
|
|
3310
|
-
oAuthHeaderPrefix: "oAuthHeaderPrefix",
|
|
3311
|
-
oAuthScopes: "oAuthScopes"
|
|
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 = {
|
|
3320
|
-
header: { label: "Header", value: "header" },
|
|
3321
|
-
queryParam: { label: "Query Param", value: "queryParam" }
|
|
3322
|
-
}, Jt = [
|
|
3323
|
-
{
|
|
3324
|
-
id: "basicFormInfo",
|
|
3325
|
-
formFields: [
|
|
3326
|
-
{
|
|
3327
|
-
id: F.baseUrl,
|
|
3328
|
-
type: "text",
|
|
3329
|
-
name: F.baseUrl,
|
|
3330
|
-
label: "Base URL",
|
|
3331
|
-
placeholder: "https://example.com",
|
|
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."
|
|
3333
|
-
},
|
|
3334
|
-
{
|
|
3335
|
-
id: F.authType,
|
|
3336
|
-
type: "select",
|
|
3337
|
-
name: F.authType,
|
|
3338
|
-
label: "Authentication Types",
|
|
3339
|
-
options: Object.values(ge),
|
|
3340
|
-
toolTipTitle: "Select the authentication method for API requests."
|
|
3341
|
-
}
|
|
3342
|
-
]
|
|
3343
|
-
}
|
|
3344
|
-
], Br = [
|
|
3345
|
-
{
|
|
3346
|
-
id: "apiKeyFormInfo",
|
|
3347
|
-
title: "API Form",
|
|
3348
|
-
formFields: [
|
|
3349
|
-
{
|
|
3350
|
-
id: F.apiKey,
|
|
3351
|
-
type: "password",
|
|
3352
|
-
name: F.apiKey,
|
|
3353
|
-
label: "API Key(Encrypted)",
|
|
3354
|
-
placeholder: "API Key",
|
|
3355
|
-
toolTipTitle: "Enter the value for the API Key. The value will be encrypted and stored securely."
|
|
3356
|
-
},
|
|
3357
|
-
{
|
|
3358
|
-
id: F.apiAddTo,
|
|
3359
|
-
type: "select",
|
|
3360
|
-
name: F.apiAddTo,
|
|
3361
|
-
label: "Add To",
|
|
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."
|
|
3364
|
-
},
|
|
3365
|
-
{
|
|
3366
|
-
id: F.apiHeaderName,
|
|
3367
|
-
type: "text",
|
|
3368
|
-
name: F.apiHeaderName,
|
|
3369
|
-
label: "Header Name",
|
|
3370
|
-
placeholder: "eg: X-Custom-Access-Token"
|
|
3371
|
-
},
|
|
3372
|
-
{
|
|
3373
|
-
id: F.apiHeaderPrefix,
|
|
3374
|
-
type: "text",
|
|
3375
|
-
name: F.apiHeaderPrefix,
|
|
3376
|
-
label: "Header Prefix",
|
|
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."
|
|
3379
|
-
},
|
|
3380
|
-
{
|
|
3381
|
-
id: F.apiParamName,
|
|
3382
|
-
type: "text",
|
|
3383
|
-
name: F.apiParamName,
|
|
3384
|
-
label: "Param Name",
|
|
3385
|
-
placeholder: "eg: customAccessToken"
|
|
3386
|
-
}
|
|
3387
|
-
]
|
|
3388
|
-
}
|
|
3389
|
-
], Tr = [
|
|
3390
|
-
{
|
|
3391
|
-
title: "CLIENT INFORMATION",
|
|
3392
|
-
id: "clientInfo",
|
|
3393
|
-
formFields: [
|
|
3394
|
-
{
|
|
3395
|
-
id: F.oAuthClientId,
|
|
3396
|
-
type: "text",
|
|
3397
|
-
name: F.oAuthClientId,
|
|
3398
|
-
label: "Client ID",
|
|
3399
|
-
placeholder: "Client ID",
|
|
3400
|
-
toolTipTitle: "Enter the Client ID provided by the external service for OAuth authentication."
|
|
3401
|
-
},
|
|
3402
|
-
{
|
|
3403
|
-
id: F.oAuthClientSecret,
|
|
3404
|
-
type: "password",
|
|
3405
|
-
name: F.oAuthClientSecret,
|
|
3406
|
-
label: "Client Secret(Encrypted)",
|
|
3407
|
-
placeholder: "Client Secret",
|
|
3408
|
-
toolTipTitle: "Enter the Client Secret associated with the Client ID. This is used to authenticate your application."
|
|
3409
|
-
},
|
|
3410
|
-
{
|
|
3411
|
-
id: F.oAuthScopes,
|
|
3412
|
-
type: "text",
|
|
3413
|
-
name: F.oAuthScopes,
|
|
3414
|
-
label: "Scope(s)",
|
|
3415
|
-
placeholder: "e.g: read, write",
|
|
3416
|
-
toolTipTitle: "Specify the scopes required for the API. Scopes define the access level for API resources."
|
|
3417
|
-
}
|
|
3418
|
-
]
|
|
3419
|
-
},
|
|
3420
|
-
{
|
|
3421
|
-
title: "AUTHORIZATION INFORMATION",
|
|
3422
|
-
id: "authInfo",
|
|
3423
|
-
formFields: [
|
|
3424
|
-
{
|
|
3425
|
-
id: F.oAuthEndUrl,
|
|
3426
|
-
type: "text",
|
|
3427
|
-
name: F.oAuthEndUrl,
|
|
3428
|
-
label: "Authorization Endpoint URL",
|
|
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."
|
|
3431
|
-
},
|
|
3432
|
-
{
|
|
3433
|
-
id: F.oAuthTokenUrl,
|
|
3434
|
-
type: "text",
|
|
3435
|
-
name: F.oAuthTokenUrl,
|
|
3436
|
-
label: "Token Endpoint URL",
|
|
3437
|
-
placeholder: "e.g: https://example.com/login/oauth/token",
|
|
3438
|
-
toolTipTitle: "Provide the URL for exchanging the authorization code for an access token."
|
|
3439
|
-
},
|
|
3440
|
-
{
|
|
3441
|
-
id: F.oAuthRefreshTokenUrl,
|
|
3442
|
-
type: "text",
|
|
3443
|
-
name: F.oAuthRefreshTokenUrl,
|
|
3444
|
-
label: "Refresh Token URL",
|
|
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."
|
|
3447
|
-
},
|
|
3448
|
-
{
|
|
3449
|
-
id: F.oAuthRedirectUrl,
|
|
3450
|
-
type: "text",
|
|
3451
|
-
name: F.oAuthRedirectUrl,
|
|
3452
|
-
label: "Redirect URL",
|
|
3453
|
-
disabled: !0
|
|
3454
|
-
},
|
|
3455
|
-
{
|
|
3456
|
-
id: F.oAuthHeaderName,
|
|
3457
|
-
type: "text",
|
|
3458
|
-
name: F.oAuthHeaderName,
|
|
3459
|
-
label: "Header Name",
|
|
3460
|
-
placeholder: "eg: X-Custom-Access-Token"
|
|
3461
|
-
},
|
|
3462
|
-
{
|
|
3463
|
-
id: F.oAuthHeaderPrefix,
|
|
3464
|
-
type: "text",
|
|
3465
|
-
name: F.oAuthHeaderPrefix,
|
|
3466
|
-
label: "Header Prefix",
|
|
3467
|
-
placeholder: "eg: Bearer"
|
|
3468
|
-
}
|
|
3469
|
-
]
|
|
3470
|
-
}
|
|
3471
|
-
], Sr = {
|
|
3472
|
-
[F.baseUrl]: {
|
|
3473
|
-
isRequired: !0
|
|
3474
|
-
},
|
|
3475
|
-
[F.authType]: {
|
|
3476
|
-
isRequired: !0
|
|
3477
|
-
},
|
|
3478
|
-
[F.apiKey]: {
|
|
3479
|
-
isRequired: !0
|
|
3480
|
-
},
|
|
3481
|
-
[F.apiAddTo]: {
|
|
3482
|
-
isRequired: !0
|
|
3483
|
-
},
|
|
3484
|
-
[F.apiParamName]: {
|
|
3485
|
-
isRequired: !0
|
|
3486
|
-
},
|
|
3487
|
-
[F.apiHeaderName]: {
|
|
3488
|
-
isRequired: !0
|
|
3489
|
-
},
|
|
3490
|
-
[F.oAuthClientId]: {
|
|
3491
|
-
isRequired: !0
|
|
3492
|
-
},
|
|
3493
|
-
[F.oAuthClientSecret]: {
|
|
3494
|
-
isRequired: !0
|
|
3495
|
-
},
|
|
3496
|
-
[F.oAuthEndUrl]: {
|
|
3497
|
-
isRequired: !0
|
|
3498
|
-
},
|
|
3499
|
-
[F.oAuthTokenUrl]: {
|
|
3500
|
-
isRequired: !0
|
|
3501
|
-
},
|
|
3502
|
-
[F.oAuthRefreshTokenUrl]: {
|
|
3503
|
-
isRequired: !0
|
|
3504
|
-
},
|
|
3505
|
-
[F.oAuthRedirectUrl]: {
|
|
3506
|
-
isRequired: !0
|
|
3507
|
-
},
|
|
3508
|
-
[F.oAuthHeaderName]: {
|
|
3509
|
-
isRequired: !0
|
|
3510
|
-
}
|
|
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 },
|
|
3530
|
-
errors: {}
|
|
3531
|
-
}, ee = {
|
|
3532
|
-
SET_FIELD_VALUE: "SET_FIELD_VALUE",
|
|
3533
|
-
CLEAR_FIELD_VALUE: "CLEAR_FIELD",
|
|
3534
|
-
SET_FIELD_ERROR: "SET_FIELD_ERROR",
|
|
3535
|
-
SET_FIELDS: "SET_FIELDS",
|
|
3536
|
-
CLEAR_FIELDS: "CLEAR_FIELDS"
|
|
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;
|
|
3543
|
-
return {
|
|
3544
|
-
...n,
|
|
3545
|
-
values: {
|
|
3546
|
-
...n.values,
|
|
3547
|
-
[t]: r
|
|
3548
|
-
}
|
|
3549
|
-
};
|
|
3550
|
-
}
|
|
3551
|
-
case ee.SET_FIELD_ERROR: {
|
|
3552
|
-
if (!i || !("name" in i)) return n;
|
|
3553
|
-
const { name: t, value: r } = i;
|
|
3554
|
-
return {
|
|
3555
|
-
...n,
|
|
3556
|
-
errors: {
|
|
3557
|
-
...n.errors,
|
|
3558
|
-
[t]: r
|
|
3559
|
-
}
|
|
3560
|
-
};
|
|
3561
|
-
}
|
|
3562
|
-
case ee.CLEAR_FIELD_VALUE: {
|
|
3563
|
-
if (!i || !("name" in i)) return n;
|
|
3564
|
-
const { name: t } = i;
|
|
3565
|
-
return {
|
|
3566
|
-
...n,
|
|
3567
|
-
errors: {
|
|
3568
|
-
...n.errors,
|
|
3569
|
-
[t]: ""
|
|
3570
|
-
}
|
|
3571
|
-
};
|
|
3572
|
-
}
|
|
3573
|
-
case ee.SET_FIELDS: {
|
|
3574
|
-
if (!i || "name" in i) return n;
|
|
3575
|
-
const { values: t } = i;
|
|
3576
|
-
return {
|
|
3577
|
-
...n,
|
|
3578
|
-
values: t
|
|
3579
|
-
};
|
|
3580
|
-
}
|
|
3581
|
-
}
|
|
3582
|
-
return n;
|
|
3583
|
-
};
|
|
3584
|
-
function Wr(n, e) {
|
|
3585
|
-
return n in e;
|
|
3586
|
-
}
|
|
3587
|
-
const Nr = ({
|
|
3588
|
-
isEdit: n,
|
|
3589
|
-
templateId: e,
|
|
3590
|
-
values: u,
|
|
3591
|
-
formFields: i,
|
|
3592
|
-
predicates: t
|
|
3593
|
-
}) => {
|
|
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);
|
|
3601
|
-
} else {
|
|
3602
|
-
const c = Vn[a];
|
|
3603
|
-
c !== be.authType && c !== void 0 && (r[c] = l);
|
|
3604
|
-
}
|
|
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 };
|
|
3608
|
-
};
|
|
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];
|
|
3614
|
-
let r;
|
|
3615
|
-
if (n.authType === Ve) {
|
|
3616
|
-
const o = n[t];
|
|
3617
|
-
Array.isArray(o) ? r = o.join(", ") : r = o;
|
|
3618
|
-
} else
|
|
3619
|
-
r = n[t];
|
|
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;
|
|
3621
|
-
}
|
|
3622
|
-
}), e;
|
|
3623
|
-
}
|
|
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,
|
|
3675
|
-
payload: {
|
|
3676
|
-
values: W
|
|
3677
|
-
}
|
|
3678
|
-
});
|
|
3679
|
-
}
|
|
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 }
|
|
3686
|
-
});
|
|
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({
|
|
3713
|
-
isEdit: n,
|
|
3714
|
-
templateId: e,
|
|
3715
|
-
values: s.values,
|
|
3716
|
-
formFields: B,
|
|
3717
|
-
predicates: h
|
|
3718
|
-
});
|
|
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
|
-
}
|
|
3731
|
-
};
|
|
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 })
|
|
3736
|
-
] }),
|
|
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,
|
|
3769
|
-
{
|
|
3770
|
-
message: kn,
|
|
3771
|
-
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
3772
|
-
autoHideDuration: 2e3,
|
|
3773
|
-
onClose: () => c(!1),
|
|
3774
|
-
open: l
|
|
3775
|
-
}
|
|
3776
|
-
)
|
|
3777
|
-
] });
|
|
3778
|
-
}, Jr = Z(U)`
|
|
3779
|
-
width: 410px;
|
|
3780
|
-
height: 570px;
|
|
3781
|
-
padding: 38px 36px;
|
|
3782
|
-
border-radius: 10px;
|
|
3783
|
-
background: #fafafa;
|
|
3784
|
-
`, jr = Z(U)`
|
|
3785
|
-
margin-top: 8px;
|
|
3786
|
-
width: 100%;
|
|
3787
|
-
display: flex;
|
|
3788
|
-
gap: 7px;
|
|
3789
|
-
& .MuiStack-root {
|
|
3790
|
-
width: 100%;
|
|
3791
|
-
}
|
|
3792
|
-
& .MuiInputBase-root {
|
|
3793
|
-
background-color: #fff;
|
|
3794
|
-
}
|
|
3795
|
-
`, zr = Z(U)`
|
|
3796
|
-
width: 63px;
|
|
3797
|
-
height: 36px;
|
|
3798
|
-
background-color: #fff;
|
|
3799
|
-
border: 1px solid #d6dde8;
|
|
3800
|
-
border-radius: 4px;
|
|
3801
|
-
text-align: center;
|
|
3802
|
-
line-height: 36px;
|
|
3803
|
-
`, Ur = Z(U)`
|
|
3804
|
-
width: 338px;
|
|
3805
|
-
height: 350px;
|
|
3806
|
-
max-height: 350px;
|
|
3807
|
-
overflow-y: auto;
|
|
3808
|
-
border-radius: 5px;
|
|
3809
|
-
border: 1px solid #d6dde8;
|
|
3810
|
-
margin-top: 20px;
|
|
3811
|
-
`, Qr = Z(U)`
|
|
3812
|
-
width: 100%;
|
|
3813
|
-
height: 50px;
|
|
3814
|
-
background: #f6f8fc;
|
|
3815
|
-
border-top-left-radius: 5px;
|
|
3816
|
-
border-top-right-radius: 5px;
|
|
3817
|
-
line-height: 50px;
|
|
3818
|
-
padding: 0px 20px;
|
|
3819
|
-
font-weight: 600;
|
|
3820
|
-
color: ${(n) => n.textColor ? n.textColor : "inherit"};
|
|
3821
|
-
`, _r = Z(U)`
|
|
3822
|
-
width: 100%;
|
|
3823
|
-
height: 300px;
|
|
3824
|
-
overflow: auto;
|
|
3825
|
-
background: #ffff;
|
|
3826
|
-
border-bottom-left-radius: 5px;
|
|
3827
|
-
border-bottom-right-radius: 5px;
|
|
3828
|
-
& pre {
|
|
3829
|
-
padding: 20px;
|
|
3830
|
-
white-space: pre-wrap;
|
|
3831
|
-
}
|
|
3832
|
-
`, Kr = Z(Qt)`
|
|
3833
|
-
width: 338px;
|
|
3834
|
-
margin-top: 20px;
|
|
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);
|
|
3839
|
-
}, [n]);
|
|
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 }));
|
|
3849
|
-
};
|
|
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 })
|
|
3855
|
-
] }),
|
|
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 })
|
|
3859
|
-
] }),
|
|
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
|
-
)
|
|
3870
|
-
] });
|
|
3871
|
-
}, qr = Z(j)`
|
|
3872
|
-
padding: 17px 52px 0 0;
|
|
3873
|
-
box-sizing: border-box;
|
|
3874
|
-
display: flex;
|
|
3875
|
-
justify-content: space-between;
|
|
3876
|
-
gap: 20px;
|
|
3877
|
-
width: 100%;
|
|
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(
|
|
3881
|
-
() => () => {
|
|
3882
|
-
d(Qn()), d(_n.clearSelectedTemplate());
|
|
3883
|
-
},
|
|
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)));
|
|
3891
|
-
};
|
|
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);
|
|
3903
|
-
};
|
|
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
|
-
}
|
|
3927
|
-
}, [r, o]);
|
|
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,
|
|
3941
|
-
{
|
|
3942
|
-
connectorId: s,
|
|
3943
|
-
isEdit: l,
|
|
3944
|
-
connectorData: g,
|
|
3945
|
-
authStatus: r,
|
|
3946
|
-
isLoading: b
|
|
3947
|
-
}
|
|
3948
|
-
)
|
|
3949
|
-
] }),
|
|
3950
|
-
/* @__PURE__ */ v.jsx(
|
|
3951
|
-
$r,
|
|
3952
|
-
{
|
|
3953
|
-
connectorData: g,
|
|
3954
|
-
connectorId: s,
|
|
3955
|
-
disabled: b || !(g != null && g.isAuthenticated)
|
|
3956
|
-
}
|
|
3957
|
-
)
|
|
3958
|
-
] });
|
|
3959
|
-
};
|
|
3960
|
-
export {
|
|
3961
|
-
oo as Settings
|
|
3962
|
-
};
|