chop-logic-components 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -0
- package/dist/index.d.ts +40 -8
- package/dist/index.es.js +1680 -1426
- package/dist/index.es.js.map +1 -1
- package/package.json +6 -5
- package/dist/chop-logic-components.css +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var jt = Object.defineProperty,
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
import './index.css';var jt = Object.defineProperty, kt = Object.defineProperties;
|
|
2
|
+
var Ct = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var pe = Object.getOwnPropertySymbols;
|
|
4
4
|
var Pe = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Ne = (e, t,
|
|
6
|
-
for (var
|
|
7
|
-
Pe.call(t,
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
Oe.call(t,
|
|
5
|
+
var Ne = (e, t, s) => t in e ? jt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, f = (e, t) => {
|
|
6
|
+
for (var s in t || (t = {}))
|
|
7
|
+
Pe.call(t, s) && Ne(e, s, t[s]);
|
|
8
|
+
if (pe)
|
|
9
|
+
for (var s of pe(t))
|
|
10
|
+
Oe.call(t, s) && Ne(e, s, t[s]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
for (var
|
|
16
|
-
Pe.call(e,
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var
|
|
19
|
-
t.indexOf(
|
|
20
|
-
return
|
|
12
|
+
}, b = (e, t) => kt(e, Ct(t));
|
|
13
|
+
var v = (e, t) => {
|
|
14
|
+
var s = {};
|
|
15
|
+
for (var n in e)
|
|
16
|
+
Pe.call(e, n) && t.indexOf(n) < 0 && (s[n] = e[n]);
|
|
17
|
+
if (e != null && pe)
|
|
18
|
+
for (var n of pe(e))
|
|
19
|
+
t.indexOf(n) < 0 && Oe.call(e, n) && (s[n] = e[n]);
|
|
20
|
+
return s;
|
|
21
21
|
};
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
var be = { exports: {} },
|
|
22
|
+
import yt, { useCallback as se, useState as I, useEffect as B, useRef as ee, forwardRef as Mt, useId as rt, createContext as ot, useMemo as Et, useContext as ae } from "react";
|
|
23
|
+
import It from "react-dom";
|
|
24
|
+
var be = { exports: {} }, he = {};
|
|
25
25
|
/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-jsx-runtime.production.js
|
|
@@ -32,11 +32,11 @@ var be = { exports: {} }, ae = {};
|
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
33
|
*/
|
|
34
34
|
var Ve;
|
|
35
|
-
function
|
|
36
|
-
if (Ve) return
|
|
35
|
+
function Lt() {
|
|
36
|
+
if (Ve) return he;
|
|
37
37
|
Ve = 1;
|
|
38
38
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
39
|
-
function n
|
|
39
|
+
function s(n, o, l) {
|
|
40
40
|
var c = null;
|
|
41
41
|
if (l !== void 0 && (c = "" + l), o.key !== void 0 && (c = "" + o.key), "key" in o) {
|
|
42
42
|
l = {};
|
|
@@ -45,15 +45,15 @@ function Mt() {
|
|
|
45
45
|
} else l = o;
|
|
46
46
|
return o = l.ref, {
|
|
47
47
|
$$typeof: e,
|
|
48
|
-
type:
|
|
48
|
+
type: n,
|
|
49
49
|
key: c,
|
|
50
50
|
ref: o !== void 0 ? o : null,
|
|
51
51
|
props: l
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
return
|
|
54
|
+
return he.Fragment = t, he.jsx = s, he.jsxs = s, he;
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var _e = {};
|
|
57
57
|
/**
|
|
58
58
|
* @license React
|
|
59
59
|
* react-jsx-runtime.development.js
|
|
@@ -64,47 +64,47 @@ var ie = {};
|
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
65
|
*/
|
|
66
66
|
var We;
|
|
67
|
-
function
|
|
67
|
+
function At() {
|
|
68
68
|
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
|
69
69
|
function e(u) {
|
|
70
70
|
if (u == null) return null;
|
|
71
71
|
if (typeof u == "function")
|
|
72
|
-
return u.$$typeof ===
|
|
72
|
+
return u.$$typeof === te ? null : u.displayName || u.name || null;
|
|
73
73
|
if (typeof u == "string") return u;
|
|
74
74
|
switch (u) {
|
|
75
|
-
case
|
|
75
|
+
case j:
|
|
76
76
|
return "Fragment";
|
|
77
|
-
case C:
|
|
78
|
-
return "Profiler";
|
|
79
77
|
case g:
|
|
78
|
+
return "Profiler";
|
|
79
|
+
case k:
|
|
80
80
|
return "StrictMode";
|
|
81
|
-
case
|
|
81
|
+
case y:
|
|
82
82
|
return "Suspense";
|
|
83
83
|
case $:
|
|
84
84
|
return "SuspenseList";
|
|
85
|
-
case
|
|
85
|
+
case X:
|
|
86
86
|
return "Activity";
|
|
87
87
|
}
|
|
88
88
|
if (typeof u == "object")
|
|
89
89
|
switch (typeof u.tag == "number" && console.error(
|
|
90
90
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
91
91
|
), u.$$typeof) {
|
|
92
|
-
case
|
|
92
|
+
case x:
|
|
93
93
|
return "Portal";
|
|
94
|
-
case
|
|
94
|
+
case L:
|
|
95
95
|
return (u.displayName || "Context") + ".Provider";
|
|
96
|
-
case
|
|
96
|
+
case C:
|
|
97
97
|
return (u._context.displayName || "Context") + ".Consumer";
|
|
98
|
-
case
|
|
99
|
-
var
|
|
100
|
-
return u = u.displayName, u || (u =
|
|
101
|
-
case
|
|
102
|
-
return
|
|
103
|
-
case
|
|
104
|
-
|
|
98
|
+
case A:
|
|
99
|
+
var M = u.render;
|
|
100
|
+
return u = u.displayName, u || (u = M.displayName || M.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
|
|
101
|
+
case z:
|
|
102
|
+
return M = u.displayName || null, M !== null ? M : e(u.type) || "Memo";
|
|
103
|
+
case S:
|
|
104
|
+
M = u._payload, u = u._init;
|
|
105
105
|
try {
|
|
106
|
-
return e(u(
|
|
107
|
-
} catch (
|
|
106
|
+
return e(u(M));
|
|
107
|
+
} catch (T) {
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
return null;
|
|
@@ -112,74 +112,74 @@ function Et() {
|
|
|
112
112
|
function t(u) {
|
|
113
113
|
return "" + u;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function s(u) {
|
|
116
116
|
try {
|
|
117
117
|
t(u);
|
|
118
|
-
var
|
|
119
|
-
} catch (
|
|
120
|
-
|
|
118
|
+
var M = !1;
|
|
119
|
+
} catch (re) {
|
|
120
|
+
M = !0;
|
|
121
121
|
}
|
|
122
|
-
if (
|
|
123
|
-
|
|
124
|
-
var
|
|
125
|
-
return
|
|
126
|
-
|
|
122
|
+
if (M) {
|
|
123
|
+
M = console;
|
|
124
|
+
var T = M.error, N = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
125
|
+
return T.call(
|
|
126
|
+
M,
|
|
127
127
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
128
|
-
|
|
128
|
+
N
|
|
129
129
|
), t(u);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
if (u ===
|
|
134
|
-
if (typeof u == "object" && u !== null && u.$$typeof ===
|
|
132
|
+
function n(u) {
|
|
133
|
+
if (u === j) return "<>";
|
|
134
|
+
if (typeof u == "object" && u !== null && u.$$typeof === S)
|
|
135
135
|
return "<...>";
|
|
136
136
|
try {
|
|
137
|
-
var
|
|
138
|
-
return
|
|
139
|
-
} catch (
|
|
137
|
+
var M = e(u);
|
|
138
|
+
return M ? "<" + M + ">" : "<...>";
|
|
139
|
+
} catch (T) {
|
|
140
140
|
return "<...>";
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
function o() {
|
|
144
|
-
var u =
|
|
144
|
+
var u = O.A;
|
|
145
145
|
return u === null ? null : u.getOwner();
|
|
146
146
|
}
|
|
147
147
|
function l() {
|
|
148
148
|
return Error("react-stack-top-frame");
|
|
149
149
|
}
|
|
150
150
|
function c(u) {
|
|
151
|
-
if (
|
|
152
|
-
var
|
|
153
|
-
if (
|
|
151
|
+
if (G.call(u, "key")) {
|
|
152
|
+
var M = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
153
|
+
if (M && M.isReactWarning) return !1;
|
|
154
154
|
}
|
|
155
155
|
return u.key !== void 0;
|
|
156
156
|
}
|
|
157
|
-
function a(u,
|
|
158
|
-
function
|
|
159
|
-
|
|
157
|
+
function a(u, M) {
|
|
158
|
+
function T() {
|
|
159
|
+
R || (R = !0, console.error(
|
|
160
160
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
161
|
-
|
|
161
|
+
M
|
|
162
162
|
));
|
|
163
163
|
}
|
|
164
|
-
|
|
165
|
-
get:
|
|
164
|
+
T.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
165
|
+
get: T,
|
|
166
166
|
configurable: !0
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
function i() {
|
|
170
170
|
var u = e(this.type);
|
|
171
|
-
return
|
|
171
|
+
return W[u] || (W[u] = !0, console.error(
|
|
172
172
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
173
173
|
)), u = this.props.ref, u !== void 0 ? u : null;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
return
|
|
177
|
-
$$typeof:
|
|
175
|
+
function d(u, M, T, N, re, Z, Le, Ae) {
|
|
176
|
+
return T = Z.ref, u = {
|
|
177
|
+
$$typeof: w,
|
|
178
178
|
type: u,
|
|
179
|
-
key:
|
|
180
|
-
props:
|
|
181
|
-
_owner:
|
|
182
|
-
}, (
|
|
179
|
+
key: M,
|
|
180
|
+
props: Z,
|
|
181
|
+
_owner: re
|
|
182
|
+
}, (T !== void 0 ? T : null) !== null ? Object.defineProperty(u, "ref", {
|
|
183
183
|
enumerable: !1,
|
|
184
184
|
get: i
|
|
185
185
|
}) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", {
|
|
@@ -196,68 +196,68 @@ function Et() {
|
|
|
196
196
|
configurable: !1,
|
|
197
197
|
enumerable: !1,
|
|
198
198
|
writable: !0,
|
|
199
|
-
value:
|
|
199
|
+
value: Le
|
|
200
200
|
}), Object.defineProperty(u, "_debugTask", {
|
|
201
201
|
configurable: !1,
|
|
202
202
|
enumerable: !1,
|
|
203
203
|
writable: !0,
|
|
204
|
-
value:
|
|
204
|
+
value: Ae
|
|
205
205
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
var
|
|
209
|
-
if (
|
|
210
|
-
if (
|
|
211
|
-
if (
|
|
212
|
-
for (
|
|
213
|
-
|
|
214
|
-
Object.freeze && Object.freeze(
|
|
207
|
+
function h(u, M, T, N, re, Z, Le, Ae) {
|
|
208
|
+
var P = M.children;
|
|
209
|
+
if (P !== void 0)
|
|
210
|
+
if (N)
|
|
211
|
+
if (H(P)) {
|
|
212
|
+
for (N = 0; N < P.length; N++)
|
|
213
|
+
p(P[N]);
|
|
214
|
+
Object.freeze && Object.freeze(P);
|
|
215
215
|
} else
|
|
216
216
|
console.error(
|
|
217
217
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
218
218
|
);
|
|
219
|
-
else
|
|
220
|
-
if (
|
|
221
|
-
|
|
222
|
-
var
|
|
223
|
-
return
|
|
219
|
+
else p(P);
|
|
220
|
+
if (G.call(M, "key")) {
|
|
221
|
+
P = e(u);
|
|
222
|
+
var de = Object.keys(M).filter(function(gt) {
|
|
223
|
+
return gt !== "key";
|
|
224
224
|
});
|
|
225
|
-
|
|
225
|
+
N = 0 < de.length ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}", He[P + N] || (de = 0 < de.length ? "{" + de.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
226
226
|
`A props object containing a "key" prop is being spread into JSX:
|
|
227
227
|
let props = %s;
|
|
228
228
|
<%s {...props} />
|
|
229
229
|
React keys must be passed directly to JSX without using spread:
|
|
230
230
|
let props = %s;
|
|
231
231
|
<%s key={someKey} {...props} />`,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
), He[
|
|
232
|
+
N,
|
|
233
|
+
P,
|
|
234
|
+
de,
|
|
235
|
+
P
|
|
236
|
+
), He[P + N] = !0);
|
|
237
237
|
}
|
|
238
|
-
if (
|
|
239
|
-
|
|
240
|
-
for (var
|
|
241
|
-
|
|
242
|
-
} else
|
|
243
|
-
return
|
|
244
|
-
|
|
238
|
+
if (P = null, T !== void 0 && (s(T), P = "" + T), c(M) && (s(M.key), P = "" + M.key), "key" in M) {
|
|
239
|
+
T = {};
|
|
240
|
+
for (var Se in M)
|
|
241
|
+
Se !== "key" && (T[Se] = M[Se]);
|
|
242
|
+
} else T = M;
|
|
243
|
+
return P && a(
|
|
244
|
+
T,
|
|
245
245
|
typeof u == "function" ? u.displayName || u.name || "Unknown" : u
|
|
246
|
-
),
|
|
246
|
+
), d(
|
|
247
247
|
u,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
P,
|
|
249
|
+
Z,
|
|
250
|
+
re,
|
|
251
251
|
o(),
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
T,
|
|
253
|
+
Le,
|
|
254
|
+
Ae
|
|
255
255
|
);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
typeof u == "object" && u !== null && u.$$typeof ===
|
|
257
|
+
function p(u) {
|
|
258
|
+
typeof u == "object" && u !== null && u.$$typeof === w && u._store && (u._store.validated = 1);
|
|
259
259
|
}
|
|
260
|
-
var _ =
|
|
260
|
+
var _ = yt, w = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), C = Symbol.for("react.consumer"), L = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), z = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), te = Symbol.for("react.client.reference"), O = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, H = Array.isArray, V = console.createTask ? console.createTask : function() {
|
|
261
261
|
return null;
|
|
262
262
|
};
|
|
263
263
|
_ = {
|
|
@@ -265,145 +265,145 @@ React keys must be passed directly to JSX without using spread:
|
|
|
265
265
|
return u();
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
|
-
var
|
|
268
|
+
var R, W = {}, U = _["react-stack-bottom-frame"].bind(
|
|
269
269
|
_,
|
|
270
270
|
l
|
|
271
|
-
)(),
|
|
272
|
-
|
|
273
|
-
var
|
|
274
|
-
return
|
|
271
|
+
)(), Q = V(n(l)), He = {};
|
|
272
|
+
_e.Fragment = j, _e.jsx = function(u, M, T, N, re) {
|
|
273
|
+
var Z = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
274
|
+
return h(
|
|
275
275
|
u,
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
M,
|
|
277
|
+
T,
|
|
278
278
|
!1,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
279
|
+
N,
|
|
280
|
+
re,
|
|
281
|
+
Z ? Error("react-stack-top-frame") : U,
|
|
282
|
+
Z ? V(n(u)) : Q
|
|
283
283
|
);
|
|
284
|
-
},
|
|
285
|
-
var
|
|
286
|
-
return
|
|
284
|
+
}, _e.jsxs = function(u, M, T, N, re) {
|
|
285
|
+
var Z = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
286
|
+
return h(
|
|
287
287
|
u,
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
M,
|
|
289
|
+
T,
|
|
290
290
|
!0,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
291
|
+
N,
|
|
292
|
+
re,
|
|
293
|
+
Z ? Error("react-stack-top-frame") : U,
|
|
294
|
+
Z ? V(n(u)) : Q
|
|
295
295
|
);
|
|
296
296
|
};
|
|
297
|
-
}()),
|
|
297
|
+
}()), _e;
|
|
298
298
|
}
|
|
299
299
|
var Ue;
|
|
300
|
-
function
|
|
301
|
-
return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? be.exports =
|
|
300
|
+
function St() {
|
|
301
|
+
return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? be.exports = Lt() : be.exports = At()), be.exports;
|
|
302
302
|
}
|
|
303
|
-
var
|
|
304
|
-
function
|
|
303
|
+
var r = St(), F = /* @__PURE__ */ ((e) => (e.Success = "success", e.Error = "error", e.Warning = "warning", e.Info = "info", e.Help = "help", e))(F || {}), D = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e.Icon = "icon", e.Inner = "inner", e))(D || {}), m = /* @__PURE__ */ ((e) => (e.ArrowDown = "arrow-down", e.ArrowUp = "arrow-up", e.Back = "back", e.Cancel = "cancel", e.CheckboxChecked = "checkbox-checked", e.CheckboxUnchecked = "checkbox-unchecked", e.CheckMark = "check-mark", e.ChevronDown = "chevron-down", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.ChevronUp = "chevron-up", e.Clear = "clear", e.Copy = "copy", e.Cut = "cut", e.Delete = "delete", e.Download = "download", e.Edit = "edit", e.Error = "error", e.Forward = "forward", e.Graduate = "graduate", e.Help = "help", e.Hide = "hide", e.Home = "home", e.Info = "info", e.Login = "login", e.Paste = "paste", e.PlusCircle = "plus-circle", e.Question = "question", e.Save = "save", e.Search = "search", e.Show = "show", e.Upload = "upload", e.Warning = "warning", e.Remove = "remove", e))(m || {}), q = /* @__PURE__ */ ((e) => (e.Dots = "dots", e.Brackets = "brackets", e.Linear = "linear", e.Square = "square", e.Circle = "circle", e.Pulse = "pulse", e.Arrow = "arrow", e.Filler = "filler", e.Rotation = "rotation", e))(q || {}), Y = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(Y || {}), le = /* @__PURE__ */ ((e) => (e.Light = "cl-components-light-theme", e.Dark = "cl-components-dark-theme", e))(le || {}), ct = /* @__PURE__ */ ((e) => (e.Span = "span", e.Div = "div", e.P = "p", e.Strong = "strong", e.Em = "em", e))(ct || {});
|
|
304
|
+
function Rt(e) {
|
|
305
305
|
return (o) => {
|
|
306
|
-
var l = o, { tooltip: t, visibleOn:
|
|
307
|
-
return t != null && t.length ? /* @__PURE__ */
|
|
306
|
+
var l = o, { tooltip: t, visibleOn: s } = l, n = v(l, ["tooltip", "visibleOn"]);
|
|
307
|
+
return t != null && t.length ? /* @__PURE__ */ r.jsx(Cs, { tooltipContent: t, visibleOn: s, children: /* @__PURE__ */ r.jsx(e, f({}, n)) }) : /* @__PURE__ */ r.jsx(e, f({}, n));
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
return e.map((
|
|
312
|
-
if (typeof
|
|
313
|
-
return
|
|
314
|
-
if (typeof
|
|
315
|
-
const
|
|
316
|
-
for (const o in
|
|
317
|
-
|
|
318
|
-
return
|
|
310
|
+
function E(e) {
|
|
311
|
+
return e.map((s) => {
|
|
312
|
+
if (typeof s == "string")
|
|
313
|
+
return s.trim();
|
|
314
|
+
if (typeof s == "object") {
|
|
315
|
+
const n = [];
|
|
316
|
+
for (const o in s)
|
|
317
|
+
s[o] && n.push(o.trim());
|
|
318
|
+
return n.join(" ");
|
|
319
319
|
}
|
|
320
|
-
}).filter((
|
|
320
|
+
}).filter((s) => !!s).join(" ");
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function ye(e) {
|
|
323
323
|
const t = document.getElementById(e);
|
|
324
324
|
t && t.focus();
|
|
325
325
|
}
|
|
326
326
|
function lt({
|
|
327
327
|
e,
|
|
328
328
|
options: t,
|
|
329
|
-
onClose:
|
|
329
|
+
onClose: s
|
|
330
330
|
}) {
|
|
331
|
-
let
|
|
331
|
+
let n = "";
|
|
332
332
|
t.forEach((l) => {
|
|
333
|
-
document.getElementById(l.id) === document.activeElement && (
|
|
333
|
+
document.getElementById(l.id) === document.activeElement && (n = l.id);
|
|
334
334
|
});
|
|
335
|
-
const o = t.findIndex((l) => l.id ===
|
|
335
|
+
const o = t.findIndex((l) => l.id === n);
|
|
336
336
|
switch (e.key) {
|
|
337
337
|
case "Escape":
|
|
338
|
-
e.preventDefault(),
|
|
338
|
+
e.preventDefault(), s();
|
|
339
339
|
break;
|
|
340
340
|
case "ArrowUp": {
|
|
341
341
|
e.preventDefault();
|
|
342
342
|
const l = o - 1 >= 0 ? o - 1 : t.length - 1, c = t[l];
|
|
343
|
-
c &&
|
|
343
|
+
c && ye(c.id);
|
|
344
344
|
break;
|
|
345
345
|
}
|
|
346
346
|
case "ArrowDown":
|
|
347
347
|
case "Tab": {
|
|
348
348
|
e.preventDefault();
|
|
349
349
|
const l = o === t.length - 1 ? 0 : o + 1, c = t[l];
|
|
350
|
-
c &&
|
|
350
|
+
c && ye(c.id);
|
|
351
351
|
break;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
const
|
|
356
|
-
extended:
|
|
357
|
-
},
|
|
358
|
-
button:
|
|
359
|
-
},
|
|
360
|
-
var o =
|
|
361
|
-
return /* @__PURE__ */
|
|
362
|
-
},
|
|
363
|
-
button:
|
|
364
|
-
},
|
|
365
|
-
var a = c, { onClick: e, label: t, icon:
|
|
366
|
-
return /* @__PURE__ */
|
|
355
|
+
const Tt = "_extended_1i1tp_1", zt = {
|
|
356
|
+
extended: Tt
|
|
357
|
+
}, $t = "_button_t94vv_2", Bt = {
|
|
358
|
+
button: $t
|
|
359
|
+
}, Dt = (n) => {
|
|
360
|
+
var o = n, { children: e, className: t } = o, s = v(o, ["children", "className"]);
|
|
361
|
+
return /* @__PURE__ */ r.jsx("button", b(f({}, s), { className: E([Bt.button, t]), children: e }));
|
|
362
|
+
}, Ht = "_button_o1x7s_50", Nt = {
|
|
363
|
+
button: Ht
|
|
364
|
+
}, Pt = (c) => {
|
|
365
|
+
var a = c, { onClick: e, label: t, icon: s, disabled: n, className: o } = a, l = v(a, ["onClick", "label", "icon", "disabled", "className"]);
|
|
366
|
+
return /* @__PURE__ */ r.jsx(
|
|
367
367
|
"button",
|
|
368
|
-
|
|
369
|
-
className:
|
|
368
|
+
b(f({
|
|
369
|
+
className: E([Nt.button, o]),
|
|
370
370
|
onClick: e,
|
|
371
371
|
"aria-label": t,
|
|
372
372
|
type: "button",
|
|
373
|
-
disabled:
|
|
373
|
+
disabled: n
|
|
374
374
|
}, l), {
|
|
375
|
-
children: /* @__PURE__ */
|
|
375
|
+
children: /* @__PURE__ */ r.jsx(J, { name: s })
|
|
376
376
|
})
|
|
377
377
|
);
|
|
378
|
-
},
|
|
379
|
-
button:
|
|
380
|
-
button_shadow:
|
|
381
|
-
button_edge:
|
|
382
|
-
button_front:
|
|
383
|
-
},
|
|
384
|
-
var o =
|
|
385
|
-
return /* @__PURE__ */
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
/* @__PURE__ */
|
|
378
|
+
}, Ot = "_button_1ps5s_2", Vt = "_button_shadow_1ps5s_16", Wt = "_button_edge_1ps5s_28", Ut = "_button_front_1ps5s_37", ve = {
|
|
379
|
+
button: Ot,
|
|
380
|
+
button_shadow: Vt,
|
|
381
|
+
button_edge: Wt,
|
|
382
|
+
button_front: Ut
|
|
383
|
+
}, Kt = (n) => {
|
|
384
|
+
var o = n, { children: e, className: t } = o, s = v(o, ["children", "className"]);
|
|
385
|
+
return /* @__PURE__ */ r.jsxs("button", b(f({}, s), { className: E([ve.button, t]), children: [
|
|
386
|
+
/* @__PURE__ */ r.jsx("span", { className: ve.button_shadow }),
|
|
387
|
+
/* @__PURE__ */ r.jsx("span", { className: ve.button_edge }),
|
|
388
|
+
/* @__PURE__ */ r.jsx("span", { className: ve.button_front, children: e })
|
|
389
389
|
] }));
|
|
390
|
-
},
|
|
391
|
-
button:
|
|
392
|
-
}, qt = (
|
|
393
|
-
var o =
|
|
394
|
-
return /* @__PURE__ */
|
|
395
|
-
},
|
|
396
|
-
var
|
|
390
|
+
}, Ft = "_button_1c4d4_2", Gt = {
|
|
391
|
+
button: Ft
|
|
392
|
+
}, qt = (n) => {
|
|
393
|
+
var o = n, { children: e, className: t } = o, s = v(o, ["children", "className"]);
|
|
394
|
+
return /* @__PURE__ */ r.jsx("button", b(f({}, s), { className: E([Gt.button, t]), children: e }));
|
|
395
|
+
}, Yt = (h) => {
|
|
396
|
+
var p = h, {
|
|
397
397
|
onClick: e,
|
|
398
398
|
text: t,
|
|
399
|
-
icon:
|
|
400
|
-
label:
|
|
399
|
+
icon: s,
|
|
400
|
+
label: n,
|
|
401
401
|
disabled: o = !1,
|
|
402
402
|
extended: l = !1,
|
|
403
403
|
type: c = "button",
|
|
404
|
-
view: a =
|
|
404
|
+
view: a = D.Primary,
|
|
405
405
|
className: i
|
|
406
|
-
} =
|
|
406
|
+
} = p, d = v(p, [
|
|
407
407
|
"onClick",
|
|
408
408
|
"text",
|
|
409
409
|
"icon",
|
|
@@ -414,41 +414,41 @@ const St = "_extended_1i1tp_1", Tt = {
|
|
|
414
414
|
"view",
|
|
415
415
|
"className"
|
|
416
416
|
]);
|
|
417
|
-
const _ =
|
|
417
|
+
const _ = E([i, { [zt.extended]: l }]);
|
|
418
418
|
switch (a) {
|
|
419
|
-
case
|
|
420
|
-
return /* @__PURE__ */
|
|
421
|
-
/* @__PURE__ */
|
|
419
|
+
case D.Primary:
|
|
420
|
+
return /* @__PURE__ */ r.jsxs(Kt, b(f({ "aria-label": n, type: c, onClick: e, disabled: o, className: _ }, d), { children: [
|
|
421
|
+
/* @__PURE__ */ r.jsx(J, { name: s }),
|
|
422
422
|
t
|
|
423
423
|
] }));
|
|
424
|
-
case
|
|
425
|
-
return /* @__PURE__ */
|
|
426
|
-
/* @__PURE__ */
|
|
424
|
+
case D.Secondary:
|
|
425
|
+
return /* @__PURE__ */ r.jsxs(qt, b(f({ "aria-label": n, type: c, onClick: e, disabled: o, className: _ }, d), { children: [
|
|
426
|
+
/* @__PURE__ */ r.jsx(J, { name: s }),
|
|
427
427
|
t
|
|
428
428
|
] }));
|
|
429
|
-
case
|
|
430
|
-
return /* @__PURE__ */
|
|
431
|
-
case
|
|
432
|
-
return /* @__PURE__ */
|
|
429
|
+
case D.Icon:
|
|
430
|
+
return /* @__PURE__ */ r.jsx(Dt, b(f({ "aria-label": n, type: c, onClick: e, disabled: o }, d), { className: i, children: /* @__PURE__ */ r.jsx(J, { name: s }) }));
|
|
431
|
+
case D.Inner:
|
|
432
|
+
return /* @__PURE__ */ r.jsx(Pt, b(f({ label: n, icon: s, onClick: e, disabled: o }, d), { className: i }));
|
|
433
433
|
default:
|
|
434
434
|
return null;
|
|
435
435
|
}
|
|
436
|
-
},
|
|
437
|
-
editableText:
|
|
438
|
-
editableText__editMode:
|
|
439
|
-
editableText__readOnly:
|
|
440
|
-
editableText__empty:
|
|
441
|
-
},
|
|
442
|
-
var
|
|
436
|
+
}, K = Rt(Yt), Jt = "_editableText_i631c_1", Xt = "_editableText__editMode_i631c_17", Qt = "_editableText__readOnly_i631c_23", Zt = "_editableText__empty_i631c_26", me = {
|
|
437
|
+
editableText: Jt,
|
|
438
|
+
editableText__editMode: Xt,
|
|
439
|
+
editableText__readOnly: Qt,
|
|
440
|
+
editableText__empty: Zt
|
|
441
|
+
}, en = (d) => {
|
|
442
|
+
var h = d, {
|
|
443
443
|
multiline: e,
|
|
444
444
|
value: t,
|
|
445
|
-
placeholder:
|
|
446
|
-
onChange:
|
|
445
|
+
placeholder: s,
|
|
446
|
+
onChange: n,
|
|
447
447
|
onBlur: o,
|
|
448
448
|
onKeyDown: l,
|
|
449
449
|
className: c,
|
|
450
450
|
inputRef: a
|
|
451
|
-
} =
|
|
451
|
+
} = h, i = v(h, [
|
|
452
452
|
"multiline",
|
|
453
453
|
"value",
|
|
454
454
|
"placeholder",
|
|
@@ -458,75 +458,75 @@ const St = "_extended_1i1tp_1", Tt = {
|
|
|
458
458
|
"className",
|
|
459
459
|
"inputRef"
|
|
460
460
|
]);
|
|
461
|
-
const
|
|
462
|
-
(
|
|
463
|
-
|
|
461
|
+
const p = e ? "textarea" : "input", _ = se(
|
|
462
|
+
(w) => {
|
|
463
|
+
n(w.target.value);
|
|
464
464
|
},
|
|
465
|
-
[
|
|
465
|
+
[n]
|
|
466
466
|
);
|
|
467
|
-
return /* @__PURE__ */
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
return /* @__PURE__ */ r.jsx(
|
|
468
|
+
p,
|
|
469
|
+
f({
|
|
470
470
|
ref: a,
|
|
471
471
|
value: t,
|
|
472
472
|
onChange: _,
|
|
473
473
|
onBlur: o,
|
|
474
474
|
onKeyDown: l,
|
|
475
|
-
placeholder:
|
|
475
|
+
placeholder: s,
|
|
476
476
|
className: c,
|
|
477
477
|
rows: e ? 3 : void 0
|
|
478
478
|
}, i)
|
|
479
479
|
);
|
|
480
|
-
},
|
|
481
|
-
var c = l, { value: e, placeholder: t, onClick:
|
|
480
|
+
}, tn = (l) => {
|
|
481
|
+
var c = l, { value: e, placeholder: t, onClick: s, className: n } = c, o = v(c, ["value", "placeholder", "onClick", "className"]);
|
|
482
482
|
const a = (i) => {
|
|
483
|
-
(i.key === "Enter" || i.key === " ") && (i.preventDefault(),
|
|
483
|
+
(i.key === "Enter" || i.key === " ") && (i.preventDefault(), s(i));
|
|
484
484
|
};
|
|
485
|
-
return /* @__PURE__ */
|
|
486
|
-
},
|
|
487
|
-
const [
|
|
485
|
+
return /* @__PURE__ */ r.jsx("span", b(f({ onClick: s, className: n, role: "button", tabIndex: 0, onKeyDown: a, "aria-label": "Editable text" }, o), { children: e || t }));
|
|
486
|
+
}, nn = (e, t) => {
|
|
487
|
+
const [s, n] = I(!1), [o] = I(e !== void 0);
|
|
488
488
|
return {
|
|
489
|
-
editMode: o ? !!e :
|
|
489
|
+
editMode: o ? !!e : s,
|
|
490
490
|
enterEditMode: () => {
|
|
491
|
-
!o && !t &&
|
|
491
|
+
!o && !t && n(!0);
|
|
492
492
|
},
|
|
493
493
|
exitEditMode: () => {
|
|
494
|
-
o ||
|
|
494
|
+
o || n(!1);
|
|
495
495
|
},
|
|
496
496
|
isControlled: o
|
|
497
497
|
};
|
|
498
|
-
},
|
|
498
|
+
}, sn = (e, t, s, n) => {
|
|
499
499
|
B(() => {
|
|
500
|
-
t && e.current && !
|
|
501
|
-
}, [t,
|
|
502
|
-
},
|
|
503
|
-
const [
|
|
500
|
+
t && e.current && !n && (e.current.focus(), s && e.current.select());
|
|
501
|
+
}, [t, s, n, e]);
|
|
502
|
+
}, rn = (e, t) => {
|
|
503
|
+
const [s, n] = I(e);
|
|
504
504
|
return B(() => {
|
|
505
|
-
|
|
505
|
+
n(e);
|
|
506
506
|
}, [e]), {
|
|
507
|
-
internalValue:
|
|
507
|
+
internalValue: s,
|
|
508
508
|
updateValue: (a) => {
|
|
509
|
-
|
|
509
|
+
n(a);
|
|
510
510
|
},
|
|
511
511
|
commitValue: () => {
|
|
512
|
-
|
|
512
|
+
s !== e && (t == null || t(s));
|
|
513
513
|
},
|
|
514
514
|
resetValue: () => {
|
|
515
|
-
|
|
515
|
+
n(e);
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
|
-
},
|
|
519
|
-
var
|
|
518
|
+
}, zo = (h) => {
|
|
519
|
+
var p = h, {
|
|
520
520
|
value: e,
|
|
521
521
|
isEditMode: t,
|
|
522
|
-
onChange:
|
|
523
|
-
onClick:
|
|
522
|
+
onChange: s,
|
|
523
|
+
onClick: n,
|
|
524
524
|
className: o,
|
|
525
525
|
autoSelectTextOnEditMode: l = !1,
|
|
526
526
|
multiline: c = !1,
|
|
527
527
|
placeholder: a = "Click to edit...",
|
|
528
528
|
readOnly: i = !1
|
|
529
|
-
} =
|
|
529
|
+
} = p, d = v(p, [
|
|
530
530
|
"value",
|
|
531
531
|
"isEditMode",
|
|
532
532
|
"onChange",
|
|
@@ -537,109 +537,109 @@ const St = "_extended_1i1tp_1", Tt = {
|
|
|
537
537
|
"placeholder",
|
|
538
538
|
"readOnly"
|
|
539
539
|
]);
|
|
540
|
-
const _ =
|
|
541
|
-
|
|
542
|
-
const
|
|
543
|
-
(
|
|
544
|
-
|
|
540
|
+
const _ = ee(null), { editMode: w, enterEditMode: x, exitEditMode: j } = nn(t, i), { internalValue: k, updateValue: g, commitValue: C, resetValue: L } = rn(e, s);
|
|
541
|
+
sn(_, w, l, i);
|
|
542
|
+
const A = se(
|
|
543
|
+
(S) => {
|
|
544
|
+
n == null || n(S), x();
|
|
545
545
|
},
|
|
546
|
-
[
|
|
547
|
-
),
|
|
548
|
-
|
|
549
|
-
}, [
|
|
550
|
-
(
|
|
551
|
-
|
|
546
|
+
[n, x]
|
|
547
|
+
), y = se(() => {
|
|
548
|
+
j(), C();
|
|
549
|
+
}, [j, C]), $ = se(
|
|
550
|
+
(S) => {
|
|
551
|
+
S.key === "Enter" && !c && (S.preventDefault(), y()), S.key === "Escape" && (L(), j());
|
|
552
552
|
},
|
|
553
|
-
[c,
|
|
554
|
-
),
|
|
555
|
-
|
|
553
|
+
[c, y, L, j]
|
|
554
|
+
), z = E([
|
|
555
|
+
me.editableText,
|
|
556
556
|
o,
|
|
557
557
|
{
|
|
558
|
-
[
|
|
559
|
-
[
|
|
560
|
-
[
|
|
558
|
+
[me.editableText__editMode]: w,
|
|
559
|
+
[me.editableText__readOnly]: i,
|
|
560
|
+
[me.editableText__empty]: !k
|
|
561
561
|
}
|
|
562
562
|
]);
|
|
563
|
-
return
|
|
564
|
-
|
|
565
|
-
|
|
563
|
+
return w && !i ? /* @__PURE__ */ r.jsx(
|
|
564
|
+
en,
|
|
565
|
+
f({
|
|
566
566
|
multiline: c,
|
|
567
|
-
value:
|
|
567
|
+
value: k,
|
|
568
568
|
placeholder: a,
|
|
569
|
-
onChange:
|
|
570
|
-
onBlur:
|
|
569
|
+
onChange: g,
|
|
570
|
+
onBlur: y,
|
|
571
571
|
onKeyDown: $,
|
|
572
|
-
className:
|
|
572
|
+
className: z,
|
|
573
573
|
inputRef: _
|
|
574
|
-
},
|
|
575
|
-
) : /* @__PURE__ */
|
|
576
|
-
},
|
|
577
|
-
errorMessage:
|
|
578
|
-
errorMessage__visible:
|
|
579
|
-
}, at = ({ errorId: e, testId: t, message:
|
|
580
|
-
const l =
|
|
581
|
-
return /* @__PURE__ */
|
|
582
|
-
},
|
|
583
|
-
header:
|
|
584
|
-
header_text:
|
|
585
|
-
header__h1:
|
|
586
|
-
header__h2:
|
|
587
|
-
header__h3:
|
|
588
|
-
header__h4:
|
|
589
|
-
header__h5:
|
|
590
|
-
header__h6:
|
|
574
|
+
}, d)
|
|
575
|
+
) : /* @__PURE__ */ r.jsx(tn, f({ value: k, placeholder: a, onClick: A, className: z }, d));
|
|
576
|
+
}, on = "_errorMessage_1shcy_54", cn = "_errorMessage__visible_1shcy_76", Ke = {
|
|
577
|
+
errorMessage: on,
|
|
578
|
+
errorMessage__visible: cn
|
|
579
|
+
}, at = ({ errorId: e, testId: t, message: s = "Error!", visible: n = !1, className: o }) => {
|
|
580
|
+
const l = E([Ke.errorMessage, o, { [Ke.errorMessage__visible]: n }]);
|
|
581
|
+
return /* @__PURE__ */ r.jsx("span", { id: e, className: l, "data-testid": t, "aria-hidden": !n, children: s });
|
|
582
|
+
}, ln = "_header_os2ww_1", an = "_header_text_os2ww_15", dn = "_header__h1_os2ww_20", un = "_header__h2_os2ww_24", hn = "_header__h3_os2ww_29", _n = "_header__h4_os2ww_34", xn = "_header__h5_os2ww_39", fn = "_header__h6_os2ww_44", oe = {
|
|
583
|
+
header: ln,
|
|
584
|
+
header_text: an,
|
|
585
|
+
header__h1: dn,
|
|
586
|
+
header__h2: un,
|
|
587
|
+
header__h3: hn,
|
|
588
|
+
header__h4: _n,
|
|
589
|
+
header__h5: xn,
|
|
590
|
+
header__h6: fn
|
|
591
591
|
}, it = (l) => {
|
|
592
|
-
var c = l, { as: e = "h1", icon: t, children:
|
|
593
|
-
const a = e, i =
|
|
594
|
-
|
|
595
|
-
|
|
592
|
+
var c = l, { as: e = "h1", icon: t, children: s, className: n } = c, o = v(c, ["as", "icon", "children", "className"]);
|
|
593
|
+
const a = e, i = E([
|
|
594
|
+
n,
|
|
595
|
+
oe.header,
|
|
596
596
|
{
|
|
597
|
-
[
|
|
598
|
-
[
|
|
599
|
-
[
|
|
600
|
-
[
|
|
601
|
-
[
|
|
602
|
-
[
|
|
597
|
+
[oe.header__h1]: e === "h1",
|
|
598
|
+
[oe.header__h2]: e === "h2",
|
|
599
|
+
[oe.header__h3]: e === "h3",
|
|
600
|
+
[oe.header__h4]: e === "h4",
|
|
601
|
+
[oe.header__h5]: e === "h5",
|
|
602
|
+
[oe.header__h6]: e === "h6"
|
|
603
603
|
}
|
|
604
604
|
]);
|
|
605
|
-
return /* @__PURE__ */
|
|
606
|
-
t && /* @__PURE__ */
|
|
607
|
-
/* @__PURE__ */
|
|
605
|
+
return /* @__PURE__ */ r.jsxs(a, b(f({ className: i }, o), { children: [
|
|
606
|
+
t && /* @__PURE__ */ r.jsx(J, { name: t }),
|
|
607
|
+
/* @__PURE__ */ r.jsx("span", { className: oe.header_text, children: s })
|
|
608
608
|
] }));
|
|
609
609
|
};
|
|
610
|
-
function
|
|
611
|
-
var
|
|
612
|
-
return /* @__PURE__ */
|
|
613
|
-
e && /* @__PURE__ */
|
|
614
|
-
/* @__PURE__ */
|
|
610
|
+
function $e(s) {
|
|
611
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
612
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
613
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
614
|
+
/* @__PURE__ */ r.jsx("path", { d: "M21.886 5.536A1.002 1.002 0 0021 5H3a1.002 1.002 0 00-.822 1.569l9 13a.998.998 0 001.644 0l9-13a.998.998 0 00.064-1.033zM12 17.243L4.908 7h14.184L12 17.243z" })
|
|
615
615
|
] }));
|
|
616
616
|
}
|
|
617
|
-
function
|
|
618
|
-
var
|
|
619
|
-
return /* @__PURE__ */
|
|
620
|
-
e && /* @__PURE__ */
|
|
621
|
-
/* @__PURE__ */
|
|
617
|
+
function Be(s) {
|
|
618
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
619
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
620
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
621
|
+
/* @__PURE__ */ r.jsx("path", { d: "M3 19h18a1.002 1.002 0 00.823-1.569l-9-13c-.373-.539-1.271-.539-1.645 0l-9 13A.999.999 0 003 19zm9-12.243L19.092 17H4.908L12 6.757z" })
|
|
622
622
|
] }));
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
var
|
|
626
|
-
return /* @__PURE__ */
|
|
627
|
-
e && /* @__PURE__ */
|
|
628
|
-
/* @__PURE__ */
|
|
624
|
+
function wn(s) {
|
|
625
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
626
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
627
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
628
|
+
/* @__PURE__ */ r.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 48, d: "M328 112L184 256l144 144" })
|
|
629
629
|
] }));
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
var
|
|
633
|
-
return /* @__PURE__ */
|
|
634
|
-
e && /* @__PURE__ */
|
|
635
|
-
/* @__PURE__ */
|
|
631
|
+
function pn(s) {
|
|
632
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
633
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 470 1000", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
634
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
635
|
+
/* @__PURE__ */ r.jsx("path", { d: "M452 656c12 12 18 26.333 18 43s-6 31-18 43c-12 10.667-26.333 16-43 16s-31-5.333-43-16L234 590 102 742c-12 10.667-26.333 16-43 16s-31-5.333-43-16C5.333 730 0 715.667 0 699s5.333-31 16-43l138-156L16 342C5.333 330 0 315.667 0 299s5.333-31 16-43c12-10.667 26.333-16 43-16s31 5.333 43 16l132 152 132-152c12-10.667 26.333-16 43-16s31 5.333 43 16c12 12 18 26.333 18 43s-6 31-18 43L314 500l138 156" })
|
|
636
636
|
] }));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
var
|
|
640
|
-
return /* @__PURE__ */
|
|
641
|
-
e && /* @__PURE__ */
|
|
642
|
-
/* @__PURE__ */
|
|
638
|
+
function dt(s) {
|
|
639
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
640
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
641
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
642
|
+
/* @__PURE__ */ r.jsx(
|
|
643
643
|
"path",
|
|
644
644
|
{
|
|
645
645
|
fill: "currentColor",
|
|
@@ -648,25 +648,25 @@ function Ce(n) {
|
|
|
648
648
|
)
|
|
649
649
|
] }));
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
var
|
|
653
|
-
return /* @__PURE__ */
|
|
654
|
-
e && /* @__PURE__ */
|
|
655
|
-
/* @__PURE__ */
|
|
651
|
+
function ut(s) {
|
|
652
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
653
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
654
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
655
|
+
/* @__PURE__ */ r.jsx("path", { fill: "currentColor", d: "M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h12v12z" })
|
|
656
656
|
] }));
|
|
657
657
|
}
|
|
658
|
-
function
|
|
659
|
-
var
|
|
660
|
-
return /* @__PURE__ */
|
|
661
|
-
e && /* @__PURE__ */
|
|
662
|
-
/* @__PURE__ */
|
|
658
|
+
function ht(s) {
|
|
659
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
660
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
661
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
662
|
+
/* @__PURE__ */ r.jsx("path", { d: "M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z" })
|
|
663
663
|
] }));
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
var
|
|
667
|
-
return /* @__PURE__ */
|
|
668
|
-
e && /* @__PURE__ */
|
|
669
|
-
/* @__PURE__ */
|
|
665
|
+
function bn(s) {
|
|
666
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
667
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em" }, t), { children: [
|
|
668
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
669
|
+
/* @__PURE__ */ r.jsx(
|
|
670
670
|
"path",
|
|
671
671
|
{
|
|
672
672
|
fillRule: "evenodd",
|
|
@@ -675,11 +675,11 @@ function fn(n) {
|
|
|
675
675
|
)
|
|
676
676
|
] }));
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
var
|
|
680
|
-
return /* @__PURE__ */
|
|
681
|
-
e && /* @__PURE__ */
|
|
682
|
-
/* @__PURE__ */
|
|
678
|
+
function vn(s) {
|
|
679
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
680
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em" }, t), { children: [
|
|
681
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
682
|
+
/* @__PURE__ */ r.jsx(
|
|
683
683
|
"path",
|
|
684
684
|
{
|
|
685
685
|
fillRule: "evenodd",
|
|
@@ -688,11 +688,11 @@ function bn(n) {
|
|
|
688
688
|
)
|
|
689
689
|
] }));
|
|
690
690
|
}
|
|
691
|
-
function mn(
|
|
692
|
-
var
|
|
693
|
-
return /* @__PURE__ */
|
|
694
|
-
e && /* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */
|
|
691
|
+
function mn(s) {
|
|
692
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
693
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em" }, t), { children: [
|
|
694
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
695
|
+
/* @__PURE__ */ r.jsx(
|
|
696
696
|
"path",
|
|
697
697
|
{
|
|
698
698
|
fillRule: "evenodd",
|
|
@@ -701,26 +701,27 @@ function mn(n) {
|
|
|
701
701
|
)
|
|
702
702
|
] }));
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
var
|
|
706
|
-
return /* @__PURE__ */
|
|
707
|
-
e && /* @__PURE__ */
|
|
708
|
-
/* @__PURE__ */
|
|
704
|
+
function gn(s) {
|
|
705
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
706
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em" }, t), { children: [
|
|
707
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
708
|
+
/* @__PURE__ */ r.jsx("path", { fillRule: "evenodd", d: "M7.776 5.553a.5.5 0 01.448 0l6 3a.5.5 0 11-.448.894L8 6.56 2.224 9.447a.5.5 0 11-.448-.894l6-3z" })
|
|
709
709
|
] }));
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
var
|
|
713
|
-
return /* @__PURE__ */
|
|
714
|
-
e && /* @__PURE__ */
|
|
715
|
-
/* @__PURE__ */
|
|
716
|
-
/* @__PURE__ */
|
|
711
|
+
function jn(s) {
|
|
712
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
713
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
714
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
715
|
+
/* @__PURE__ */ r.jsx("defs", { children: /* @__PURE__ */ r.jsx("style", {}) }),
|
|
716
|
+
/* @__PURE__ */ r.jsx("path", { d: "M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z" })
|
|
717
717
|
] }));
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
var
|
|
721
|
-
return /* @__PURE__ */
|
|
719
|
+
function kn(s) {
|
|
720
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
721
|
+
return /* @__PURE__ */ r.jsxs(
|
|
722
722
|
"svg",
|
|
723
|
-
|
|
723
|
+
b(f({
|
|
724
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
724
725
|
fill: "none",
|
|
725
726
|
stroke: "currentColor",
|
|
726
727
|
strokeLinecap: "round",
|
|
@@ -731,18 +732,19 @@ function jn(n) {
|
|
|
731
732
|
width: "1em"
|
|
732
733
|
}, t), {
|
|
733
734
|
children: [
|
|
734
|
-
e && /* @__PURE__ */
|
|
735
|
-
/* @__PURE__ */
|
|
736
|
-
/* @__PURE__ */
|
|
735
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
736
|
+
/* @__PURE__ */ r.jsx("path", { d: "M11 9 H20 A2 2 0 0 1 22 11 V20 A2 2 0 0 1 20 22 H11 A2 2 0 0 1 9 20 V11 A2 2 0 0 1 11 9 z" }),
|
|
737
|
+
/* @__PURE__ */ r.jsx("path", { d: "M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" })
|
|
737
738
|
]
|
|
738
739
|
})
|
|
739
740
|
);
|
|
740
741
|
}
|
|
741
|
-
function
|
|
742
|
-
var
|
|
743
|
-
return /* @__PURE__ */
|
|
742
|
+
function Cn(s) {
|
|
743
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
744
|
+
return /* @__PURE__ */ r.jsxs(
|
|
744
745
|
"svg",
|
|
745
|
-
|
|
746
|
+
b(f({
|
|
747
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
746
748
|
fill: "none",
|
|
747
749
|
stroke: "currentColor",
|
|
748
750
|
strokeLinecap: "round",
|
|
@@ -750,104 +752,137 @@ function wn(n) {
|
|
|
750
752
|
strokeWidth: 2,
|
|
751
753
|
viewBox: "0 0 24 24",
|
|
752
754
|
height: "1em",
|
|
753
|
-
width: "1em"
|
|
754
|
-
role: "img"
|
|
755
|
+
width: "1em"
|
|
755
756
|
}, t), {
|
|
756
757
|
children: [
|
|
757
|
-
e && /* @__PURE__ */
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
-
/* @__PURE__ */
|
|
761
|
-
/* @__PURE__ */
|
|
758
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
759
|
+
/* @__PURE__ */ r.jsx("path", { stroke: "none", d: "M0 0h24v24H0z" }),
|
|
760
|
+
/* @__PURE__ */ r.jsx("path", { d: "M10 17 A3 3 0 0 1 7 20 A3 3 0 0 1 4 17 A3 3 0 0 1 10 17 z" }),
|
|
761
|
+
/* @__PURE__ */ r.jsx("path", { d: "M20 17 A3 3 0 0 1 17 20 A3 3 0 0 1 14 17 A3 3 0 0 1 20 17 z" }),
|
|
762
|
+
/* @__PURE__ */ r.jsx("path", { d: "M9.15 14.85L18 4M6 4l8.85 10.85" })
|
|
762
763
|
]
|
|
763
764
|
})
|
|
764
765
|
);
|
|
765
766
|
}
|
|
766
|
-
function
|
|
767
|
-
var
|
|
768
|
-
return /* @__PURE__ */
|
|
769
|
-
e && /* @__PURE__ */
|
|
770
|
-
/* @__PURE__ */
|
|
767
|
+
function yn(s) {
|
|
768
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
769
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
770
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
771
|
+
/* @__PURE__ */ r.jsx("path", { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" })
|
|
772
|
+
] }));
|
|
773
|
+
}
|
|
774
|
+
function Mn(s) {
|
|
775
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
776
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
777
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
778
|
+
/* @__PURE__ */ r.jsx("path", { d: "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" })
|
|
771
779
|
] }));
|
|
772
780
|
}
|
|
773
|
-
function
|
|
774
|
-
var
|
|
775
|
-
return /* @__PURE__ */
|
|
776
|
-
e && /* @__PURE__ */
|
|
777
|
-
/* @__PURE__ */
|
|
781
|
+
function En(s) {
|
|
782
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
783
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em" }, t), { children: [
|
|
784
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
785
|
+
/* @__PURE__ */ r.jsx(
|
|
786
|
+
"path",
|
|
787
|
+
{
|
|
788
|
+
fill: "none",
|
|
789
|
+
stroke: "currentColor",
|
|
790
|
+
strokeLinecap: "round",
|
|
791
|
+
strokeLinejoin: "round",
|
|
792
|
+
strokeWidth: "1.5",
|
|
793
|
+
d: "M3 21h18M12.222 5.828L15.05 3L20 7.95l-2.828 2.828m-4.95-4.95l-5.607 5.607a1 1 0 0 0-.293.707v4.536h4.536a1 1 0 0 0 .707-.293l5.607-5.607m-4.95-4.95l4.95 4.95"
|
|
794
|
+
}
|
|
795
|
+
)
|
|
778
796
|
] }));
|
|
779
797
|
}
|
|
780
|
-
function
|
|
781
|
-
var
|
|
782
|
-
return /* @__PURE__ */
|
|
783
|
-
e && /* @__PURE__ */
|
|
784
|
-
/* @__PURE__ */
|
|
785
|
-
/* @__PURE__ */
|
|
798
|
+
function In(s) {
|
|
799
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
800
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
801
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
802
|
+
/* @__PURE__ */ r.jsx("path", { d: "M11 7h2v7h-2zm0 8h2v2h-2z" }),
|
|
803
|
+
/* @__PURE__ */ r.jsx("path", { d: "M21.707 7.293l-5-5A.996.996 0 0016 2H8a.996.996 0 00-.707.293l-5 5A.996.996 0 002 8v8c0 .266.105.52.293.707l5 5A.996.996 0 008 22h8c.266 0 .52-.105.707-.293l5-5A.996.996 0 0022 16V8a.996.996 0 00-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414v7.172z" })
|
|
786
804
|
] }));
|
|
787
805
|
}
|
|
788
|
-
function
|
|
789
|
-
var
|
|
790
|
-
return /* @__PURE__ */
|
|
791
|
-
e && /* @__PURE__ */
|
|
792
|
-
/* @__PURE__ */
|
|
806
|
+
function Ln(s) {
|
|
807
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
808
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
809
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
810
|
+
/* @__PURE__ */ r.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 48, d: "M184 112l144 144-144 144" })
|
|
793
811
|
] }));
|
|
794
812
|
}
|
|
795
|
-
const
|
|
796
|
-
var
|
|
797
|
-
return /* @__PURE__ */
|
|
798
|
-
e && /* @__PURE__ */
|
|
799
|
-
/* @__PURE__ */
|
|
813
|
+
const An = (s) => {
|
|
814
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
815
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 448 512" }, t), { children: [
|
|
816
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
817
|
+
/* @__PURE__ */ r.jsx("path", { d: "M219.3.5c3.1-.6 6.3-.6 9.4 0l200 40C439.9 42.7 448 52.6 448 64s-8.1 21.3-19.3 23.5L352 102.9V160c0 70.7-57.3 128-128 128S96 230.7 96 160v-57.1l-48-9.6v65.1l15.7 78.4c.9 4.7-.3 9.6-3.3 13.3S52.8 256 48 256H16c-4.8 0-9.3-2.1-12.4-5.9s-4.3-8.6-3.3-13.3L16 158.4V86.6C6.5 83.3 0 74.3 0 64c0-11.4 8.1-21.3 19.3-23.5l200-40zM111.9 327.7c10.5-3.4 21.8.4 29.4 8.5l71 75.5c6.3 6.7 17 6.7 23.3 0l71-75.5c7.6-8.1 18.9-11.9 29.4-8.5 65 20.9 112 81.7 112 153.6 0 17-13.8 30.7-30.7 30.7H30.7C13.8 512 0 498.2 0 481.3c0-71.9 47-132.7 111.9-153.6z" })
|
|
800
818
|
] }));
|
|
801
819
|
};
|
|
802
|
-
function
|
|
803
|
-
var
|
|
804
|
-
return /* @__PURE__ */
|
|
805
|
-
e && /* @__PURE__ */
|
|
806
|
-
/* @__PURE__ */
|
|
820
|
+
function Sn(s) {
|
|
821
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
822
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
823
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
824
|
+
/* @__PURE__ */ r.jsx("path", { d: "M414.39 97.61A224 224 0 1097.61 414.39 224 224 0 10414.39 97.61zM192.13 260.18a64 64 0 1159.69 59.69 64.07 64.07 0 01-59.69-59.69zm240-66.64l-96.37 5.84a4.06 4.06 0 01-3.44-1.59 96 96 0 00-18.07-18.07 4.06 4.06 0 01-1.59-3.44l5.84-96.37a4 4 0 015.42-3.51A193 193 0 01435.6 188.12a4 4 0 01-3.51 5.42zM193.54 79.91l5.84 96.37a4.06 4.06 0 01-1.59 3.44 96 96 0 00-18.07 18.07 4.06 4.06 0 01-3.44 1.59l-96.37-5.84a4 4 0 01-3.51-5.42A193 193 0 01188.12 76.4a4 4 0 015.42 3.51zM79.91 318.46l96.37-5.84a4.06 4.06 0 013.44 1.59 96 96 0 0018.07 18.07 4.06 4.06 0 011.59 3.44l-5.84 96.37a4 4 0 01-5.42 3.51A193 193 0 0176.4 323.88a4 4 0 013.51-5.42zm238.55 113.63l-5.84-96.37a4.06 4.06 0 011.59-3.44 96 96 0 0018.07-18.07 4.06 4.06 0 013.44-1.59l96.37 5.84a4 4 0 013.51 5.42A193 193 0 01323.88 435.6a4 4 0 01-5.42-3.51z" })
|
|
807
825
|
] }));
|
|
808
826
|
}
|
|
809
|
-
function
|
|
810
|
-
var
|
|
811
|
-
return /* @__PURE__ */
|
|
812
|
-
e && /* @__PURE__ */
|
|
813
|
-
/* @__PURE__ */
|
|
827
|
+
function Rn(s) {
|
|
828
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
829
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
830
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
831
|
+
/* @__PURE__ */ r.jsx("path", { d: "M12 19c.946 0 1.81-.103 2.598-.281l-1.757-1.757c-.273.021-.55.038-.841.038-5.351 0-7.424-3.846-7.926-5a8.642 8.642 0 011.508-2.297L4.184 8.305c-1.538 1.667-2.121 3.346-2.132 3.379a.994.994 0 000 .633C2.073 12.383 4.367 19 12 19zm0-14c-1.837 0-3.346.396-4.604.981L3.707 2.293 2.293 3.707l18 18 1.414-1.414-3.319-3.319c2.614-1.951 3.547-4.615 3.561-4.657a.994.994 0 000-.633C21.927 11.617 19.633 5 12 5zm4.972 10.558l-2.28-2.28c.19-.39.308-.819.308-1.278 0-1.641-1.359-3-3-3-.459 0-.888.118-1.277.309L8.915 7.501A9.26 9.26 0 0112 7c5.351 0 7.424 3.846 7.926 5-.302.692-1.166 2.342-2.954 3.558z" })
|
|
814
832
|
] }));
|
|
815
833
|
}
|
|
816
|
-
const
|
|
817
|
-
var
|
|
818
|
-
return /* @__PURE__ */
|
|
819
|
-
e && /* @__PURE__ */
|
|
820
|
-
/* @__PURE__ */
|
|
834
|
+
const Tn = (s) => {
|
|
835
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
836
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 1024 1024" }, t), { children: [
|
|
837
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
838
|
+
/* @__PURE__ */ r.jsx("path", { d: "M946.5 505 560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z" })
|
|
821
839
|
] }));
|
|
822
840
|
};
|
|
823
|
-
function
|
|
824
|
-
var
|
|
825
|
-
return /* @__PURE__ */
|
|
826
|
-
e && /* @__PURE__ */
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
/* @__PURE__ */
|
|
841
|
+
function zn(s) {
|
|
842
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
843
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
844
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
845
|
+
/* @__PURE__ */ r.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }),
|
|
846
|
+
/* @__PURE__ */ r.jsx("path", { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" })
|
|
829
847
|
] }));
|
|
830
848
|
}
|
|
831
|
-
const
|
|
832
|
-
var
|
|
833
|
-
return /* @__PURE__ */
|
|
834
|
-
e && /* @__PURE__ */
|
|
835
|
-
/* @__PURE__ */
|
|
849
|
+
const $n = (s) => {
|
|
850
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
851
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 1024 1024" }, t), { children: [
|
|
852
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
853
|
+
/* @__PURE__ */ r.jsx("path", { d: "M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z" })
|
|
836
854
|
] }));
|
|
837
855
|
};
|
|
838
|
-
function
|
|
839
|
-
var
|
|
840
|
-
return /* @__PURE__ */
|
|
841
|
-
e && /* @__PURE__ */
|
|
842
|
-
/* @__PURE__ */
|
|
856
|
+
function Bn(s) {
|
|
857
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
858
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
859
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
860
|
+
/* @__PURE__ */ r.jsx("path", { d: "M20 11V5c0-1.103-.897-2-2-2h-3a1 1 0 00-1-1H8a1 1 0 00-1 1H4c-1.103 0-2 .897-2 2v13c0 1.103.897 2 2 2h7c0 1.103.897 2 2 2h7c1.103 0 2-.897 2-2v-7c0-1.103-.897-2-2-2zm-9 2v5H4V5h3v2h8V5h3v6h-5c-1.103 0-2 .897-2 2zm2 7v-7h7l.001 7H13z" })
|
|
843
861
|
] }));
|
|
844
862
|
}
|
|
845
|
-
function
|
|
846
|
-
var
|
|
847
|
-
return /* @__PURE__ */
|
|
848
|
-
e && /* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */
|
|
850
|
-
|
|
863
|
+
function Dn(s) {
|
|
864
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
865
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em" }, t), { children: [
|
|
866
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
867
|
+
/* @__PURE__ */ r.jsx(
|
|
868
|
+
"path",
|
|
869
|
+
{
|
|
870
|
+
fill: "none",
|
|
871
|
+
stroke: "currentColor",
|
|
872
|
+
strokeLinecap: "round",
|
|
873
|
+
strokeLinejoin: "round",
|
|
874
|
+
strokeWidth: "1.5",
|
|
875
|
+
d: "M12 6.722v10.556M17.278 12H6.722M12 21.5a9.5 9.5 0 1 0 0-19a9.5 9.5 0 0 0 0 19"
|
|
876
|
+
}
|
|
877
|
+
)
|
|
878
|
+
] }));
|
|
879
|
+
}
|
|
880
|
+
function Hn(s) {
|
|
881
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
882
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
883
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
884
|
+
/* @__PURE__ */ r.jsx("path", { fill: "none", stroke: "currentColor", strokeMiterlimit: 10, strokeWidth: 32, d: "M256 80a176 176 0 10176 176A176 176 0 00256 80z" }),
|
|
885
|
+
/* @__PURE__ */ r.jsx(
|
|
851
886
|
"path",
|
|
852
887
|
{
|
|
853
888
|
fill: "none",
|
|
@@ -858,14 +893,14 @@ function Rn(n) {
|
|
|
858
893
|
d: "M200 202.29s.84-17.5 19.57-32.57C230.68 160.77 244 158.18 256 158c10.93-.14 20.69 1.67 26.53 4.45 10 4.76 29.47 16.38 29.47 41.09 0 26-17 37.81-36.37 50.8S251 281.43 251 296"
|
|
859
894
|
}
|
|
860
895
|
),
|
|
861
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ r.jsx("path", { d: "M270 348 A20 20 0 0 1 250 368 A20 20 0 0 1 230 348 A20 20 0 0 1 270 348 z" })
|
|
862
897
|
] }));
|
|
863
898
|
}
|
|
864
|
-
function
|
|
865
|
-
var
|
|
866
|
-
return /* @__PURE__ */
|
|
867
|
-
e && /* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */
|
|
899
|
+
function Nn(s) {
|
|
900
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
901
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
902
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
903
|
+
/* @__PURE__ */ r.jsx(
|
|
869
904
|
"path",
|
|
870
905
|
{
|
|
871
906
|
fill: "none",
|
|
@@ -875,7 +910,7 @@ function zn(n) {
|
|
|
875
910
|
d: "M135.19 390.14a28.79 28.79 0 0021.68 9.86h246.26A29 29 0 00432 371.13V140.87A29 29 0 00403.13 112H156.87a28.84 28.84 0 00-21.67 9.84v0L46.33 256l88.86 134.11z"
|
|
876
911
|
}
|
|
877
912
|
),
|
|
878
|
-
/* @__PURE__ */
|
|
913
|
+
/* @__PURE__ */ r.jsx(
|
|
879
914
|
"path",
|
|
880
915
|
{
|
|
881
916
|
fill: "none",
|
|
@@ -888,200 +923,219 @@ function zn(n) {
|
|
|
888
923
|
)
|
|
889
924
|
] }));
|
|
890
925
|
}
|
|
891
|
-
function
|
|
892
|
-
var
|
|
893
|
-
return /* @__PURE__ */
|
|
894
|
-
e && /* @__PURE__ */
|
|
895
|
-
/* @__PURE__ */
|
|
926
|
+
function Pn(s) {
|
|
927
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
928
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
929
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
930
|
+
/* @__PURE__ */ r.jsx("path", { d: "M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z" })
|
|
931
|
+
] }));
|
|
932
|
+
}
|
|
933
|
+
function On(s) {
|
|
934
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
935
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em" }, t), { children: [
|
|
936
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
937
|
+
/* @__PURE__ */ r.jsx(
|
|
938
|
+
"path",
|
|
939
|
+
{
|
|
940
|
+
fill: "none",
|
|
941
|
+
stroke: "currentColor",
|
|
942
|
+
strokeLinecap: "round",
|
|
943
|
+
strokeLinejoin: "round",
|
|
944
|
+
strokeWidth: "1.5",
|
|
945
|
+
d: "M15.553 15.553a7.06 7.06 0 1 0-9.985-9.985a7.06 7.06 0 0 0 9.985 9.985m0 0L20 20"
|
|
946
|
+
}
|
|
947
|
+
)
|
|
896
948
|
] }));
|
|
897
949
|
}
|
|
898
|
-
function
|
|
899
|
-
var
|
|
900
|
-
return /* @__PURE__ */
|
|
901
|
-
e && /* @__PURE__ */
|
|
902
|
-
/* @__PURE__ */
|
|
903
|
-
/* @__PURE__ */
|
|
950
|
+
function Vn(s) {
|
|
951
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
952
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
953
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
954
|
+
/* @__PURE__ */ r.jsx("path", { d: "M12 9a3.02 3.02 0 00-3 3c0 1.642 1.358 3 3 3 1.641 0 3-1.358 3-3 0-1.641-1.359-3-3-3z" }),
|
|
955
|
+
/* @__PURE__ */ r.jsx("path", { d: "M12 5c-7.633 0-9.927 6.617-9.948 6.684L1.946 12l.105.316C2.073 12.383 4.367 19 12 19s9.927-6.617 9.948-6.684l.106-.316-.105-.316C21.927 11.617 19.633 5 12 5zm0 12c-5.351 0-7.424-3.846-7.926-5C4.578 10.842 6.652 7 12 7c5.351 0 7.424 3.846 7.926 5-.504 1.158-2.578 5-7.926 5z" })
|
|
904
956
|
] }));
|
|
905
957
|
}
|
|
906
|
-
function
|
|
907
|
-
var
|
|
908
|
-
return /* @__PURE__ */
|
|
909
|
-
e && /* @__PURE__ */
|
|
910
|
-
/* @__PURE__ */
|
|
911
|
-
/* @__PURE__ */
|
|
958
|
+
function Wn(s) {
|
|
959
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
960
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em" }, t), { children: [
|
|
961
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
962
|
+
/* @__PURE__ */ r.jsx("path", { d: "M.5 9.9a.5.5 0 01.5.5v2.5a1 1 0 001 1h12a1 1 0 001-1v-2.5a.5.5 0 011 0v2.5a2 2 0 01-2 2H2a2 2 0 01-2-2v-2.5a.5.5 0 01.5-.5z" }),
|
|
963
|
+
/* @__PURE__ */ r.jsx("path", { d: "M7.646 1.146a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L8.5 2.707V11.5a.5.5 0 01-1 0V2.707L5.354 4.854a.5.5 0 11-.708-.708l3-3z" })
|
|
912
964
|
] }));
|
|
913
965
|
}
|
|
914
|
-
function
|
|
915
|
-
var
|
|
916
|
-
return /* @__PURE__ */
|
|
917
|
-
e && /* @__PURE__ */
|
|
918
|
-
/* @__PURE__ */
|
|
919
|
-
/* @__PURE__ */
|
|
966
|
+
function Un(s) {
|
|
967
|
+
var n = s, { title: e } = n, t = v(n, ["title"]);
|
|
968
|
+
return /* @__PURE__ */ r.jsxs("svg", b(f({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em" }, t), { children: [
|
|
969
|
+
e && /* @__PURE__ */ r.jsx("title", { children: e }),
|
|
970
|
+
/* @__PURE__ */ r.jsx("path", { fill: "none", d: "M0 0h24v24H0z" }),
|
|
971
|
+
/* @__PURE__ */ r.jsx("path", { d: "M4 20v-6a8 8 0 1116 0v6h1v2H3v-2h1zm2 0h12v-6a6 6 0 10-12 0v6zm5-18h2v3h-2V2zm8.778 2.808l1.414 1.414-2.12 2.121-1.415-1.414 2.121-2.121zM2.808 6.222l1.414-1.414 2.121 2.12L4.93 8.344 2.808 6.222zM7 14a5 5 0 015-5v2a3 3 0 00-3 3H7z" })
|
|
920
972
|
] }));
|
|
921
973
|
}
|
|
922
|
-
const
|
|
923
|
-
[
|
|
924
|
-
[
|
|
925
|
-
[
|
|
926
|
-
[
|
|
927
|
-
[
|
|
928
|
-
[
|
|
929
|
-
[
|
|
930
|
-
[
|
|
931
|
-
[
|
|
932
|
-
[
|
|
933
|
-
[
|
|
934
|
-
[
|
|
935
|
-
[
|
|
936
|
-
[
|
|
937
|
-
[
|
|
938
|
-
[
|
|
939
|
-
[
|
|
940
|
-
[
|
|
941
|
-
[
|
|
942
|
-
[
|
|
943
|
-
[
|
|
944
|
-
[
|
|
945
|
-
[
|
|
946
|
-
[
|
|
947
|
-
[
|
|
948
|
-
[
|
|
949
|
-
[
|
|
950
|
-
[
|
|
951
|
-
[
|
|
952
|
-
[
|
|
953
|
-
[
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
974
|
+
const Kn = {
|
|
975
|
+
[m.ArrowDown]: $e,
|
|
976
|
+
[m.ArrowUp]: Be,
|
|
977
|
+
[m.Back]: wn,
|
|
978
|
+
[m.Cancel]: pn,
|
|
979
|
+
[m.CheckboxChecked]: dt,
|
|
980
|
+
[m.CheckboxUnchecked]: ut,
|
|
981
|
+
[m.CheckMark]: ht,
|
|
982
|
+
[m.ChevronDown]: bn,
|
|
983
|
+
[m.ChevronUp]: gn,
|
|
984
|
+
[m.ChevronLeft]: vn,
|
|
985
|
+
[m.ChevronRight]: mn,
|
|
986
|
+
[m.Clear]: jn,
|
|
987
|
+
[m.Copy]: kn,
|
|
988
|
+
[m.Cut]: Cn,
|
|
989
|
+
[m.Delete]: yn,
|
|
990
|
+
[m.Download]: Mn,
|
|
991
|
+
[m.Edit]: En,
|
|
992
|
+
[m.Error]: In,
|
|
993
|
+
[m.Forward]: Ln,
|
|
994
|
+
[m.Graduate]: An,
|
|
995
|
+
[m.Help]: Sn,
|
|
996
|
+
[m.Hide]: Rn,
|
|
997
|
+
[m.Home]: Tn,
|
|
998
|
+
[m.Info]: zn,
|
|
999
|
+
[m.Login]: $n,
|
|
1000
|
+
[m.Paste]: Bn,
|
|
1001
|
+
[m.PlusCircle]: Dn,
|
|
1002
|
+
[m.Question]: Hn,
|
|
1003
|
+
[m.Save]: Pn,
|
|
1004
|
+
[m.Search]: On,
|
|
1005
|
+
[m.Show]: Vn,
|
|
1006
|
+
[m.Upload]: Wn,
|
|
1007
|
+
[m.Warning]: Un,
|
|
1008
|
+
[m.Remove]: Nn
|
|
1009
|
+
}, Fn = "_icon_1a3u5_1", Gn = {
|
|
1010
|
+
icon: Fn
|
|
1011
|
+
}, J = (o) => {
|
|
1012
|
+
var l = o, { name: e, testId: t, className: s } = l, n = v(l, ["name", "testId", "className"]);
|
|
958
1013
|
if (!e) return null;
|
|
959
|
-
const c =
|
|
960
|
-
return /* @__PURE__ */
|
|
961
|
-
},
|
|
962
|
-
wrapper:
|
|
963
|
-
input:
|
|
964
|
-
},
|
|
965
|
-
var
|
|
966
|
-
return /* @__PURE__ */
|
|
967
|
-
/* @__PURE__ */
|
|
1014
|
+
const c = Kn[e], a = E([s, Gn.icon]);
|
|
1015
|
+
return /* @__PURE__ */ r.jsx(c, f({ "data-testid": t, className: a }, n));
|
|
1016
|
+
}, qn = "_wrapper_knk6l_2", Yn = "_input_knk6l_28", Fe = {
|
|
1017
|
+
wrapper: qn,
|
|
1018
|
+
input: Yn
|
|
1019
|
+
}, Jn = (n, s) => {
|
|
1020
|
+
var o = n, { children: e } = o, t = v(o, ["children"]);
|
|
1021
|
+
return /* @__PURE__ */ r.jsxs("div", { className: Fe.wrapper, children: [
|
|
1022
|
+
/* @__PURE__ */ r.jsx("input", b(f({}, t), { className: Fe.input, ref: s })),
|
|
968
1023
|
e
|
|
969
1024
|
] });
|
|
970
|
-
},
|
|
971
|
-
label:
|
|
972
|
-
},
|
|
973
|
-
const c = !!
|
|
974
|
-
return /* @__PURE__ */
|
|
975
|
-
c && r,
|
|
976
|
-
!l && /* @__PURE__ */
|
|
1025
|
+
}, _t = Mt(Jn), Xn = "_label_bdijc_1", Qn = {
|
|
1026
|
+
label: Xn
|
|
1027
|
+
}, ue = ({ label: e, required: t, inputId: s, icon: n, iconPosition: o, isTextHidden: l = !1 }) => {
|
|
1028
|
+
const c = !!n && o === "left", a = !!n && o === "right";
|
|
1029
|
+
return /* @__PURE__ */ r.jsxs("label", { className: Qn.label, htmlFor: s, children: [
|
|
1030
|
+
c && /* @__PURE__ */ r.jsx(J, { name: n }),
|
|
1031
|
+
!l && /* @__PURE__ */ r.jsxs("span", { children: [
|
|
977
1032
|
e,
|
|
978
|
-
t && /* @__PURE__ */
|
|
1033
|
+
t && /* @__PURE__ */ r.jsx("abbr", { title: "required", children: "*" })
|
|
979
1034
|
] }),
|
|
980
|
-
a && r
|
|
1035
|
+
a && /* @__PURE__ */ r.jsx(J, { name: n })
|
|
981
1036
|
] });
|
|
982
|
-
},
|
|
983
|
-
loader:
|
|
984
|
-
},
|
|
985
|
-
loader:
|
|
986
|
-
},
|
|
987
|
-
loader:
|
|
988
|
-
},
|
|
989
|
-
loader:
|
|
990
|
-
},
|
|
991
|
-
loader:
|
|
992
|
-
},
|
|
993
|
-
loader:
|
|
994
|
-
},
|
|
995
|
-
loader:
|
|
996
|
-
},
|
|
997
|
-
loader:
|
|
998
|
-
},
|
|
999
|
-
loader:
|
|
1000
|
-
},
|
|
1001
|
-
var
|
|
1002
|
-
const o =
|
|
1037
|
+
}, Zn = "_loader_1dxge_1", es = {
|
|
1038
|
+
loader: Zn
|
|
1039
|
+
}, ts = "_loader_1t1ws_1", ns = {
|
|
1040
|
+
loader: ts
|
|
1041
|
+
}, ss = "_loader_151n3_1", rs = {
|
|
1042
|
+
loader: ss
|
|
1043
|
+
}, os = "_loader_noiz1_1", cs = {
|
|
1044
|
+
loader: os
|
|
1045
|
+
}, ls = "_loader_1hqei_1", as = {
|
|
1046
|
+
loader: ls
|
|
1047
|
+
}, is = "_loader_o5l8l_1", ds = {
|
|
1048
|
+
loader: is
|
|
1049
|
+
}, us = "_loader_pukbl_1", hs = {
|
|
1050
|
+
loader: us
|
|
1051
|
+
}, _s = "_loader_zl0tq_1", xs = {
|
|
1052
|
+
loader: _s
|
|
1053
|
+
}, fs = "_loader_1alvx_1", ws = {
|
|
1054
|
+
loader: fs
|
|
1055
|
+
}, $o = (s) => {
|
|
1056
|
+
var n = s, { view: e = q.Circle } = n, t = v(n, ["view"]);
|
|
1057
|
+
const o = E([
|
|
1003
1058
|
{
|
|
1004
|
-
[
|
|
1005
|
-
[
|
|
1006
|
-
[
|
|
1007
|
-
[
|
|
1008
|
-
[
|
|
1009
|
-
[
|
|
1010
|
-
[
|
|
1011
|
-
[
|
|
1012
|
-
[
|
|
1059
|
+
[es.loader]: e === q.Arrow,
|
|
1060
|
+
[ns.loader]: e === q.Brackets,
|
|
1061
|
+
[rs.loader]: e === q.Circle,
|
|
1062
|
+
[cs.loader]: e === q.Dots,
|
|
1063
|
+
[as.loader]: e === q.Filler,
|
|
1064
|
+
[hs.loader]: e === q.Pulse,
|
|
1065
|
+
[ds.loader]: e === q.Linear,
|
|
1066
|
+
[xs.loader]: e === q.Rotation,
|
|
1067
|
+
[ws.loader]: e === q.Square
|
|
1013
1068
|
}
|
|
1014
1069
|
]);
|
|
1015
|
-
return /* @__PURE__ */
|
|
1070
|
+
return /* @__PURE__ */ r.jsx("span", f({ className: o }, t));
|
|
1016
1071
|
}, De = ({ children: e }) => {
|
|
1017
|
-
const [t] =
|
|
1072
|
+
const [t] = I(() => document.createElement("div"));
|
|
1018
1073
|
return B(() => (document.body.appendChild(t), () => {
|
|
1019
1074
|
document.body.removeChild(t);
|
|
1020
|
-
}), [t]),
|
|
1021
|
-
},
|
|
1075
|
+
}), [t]), It.createPortal(e, t);
|
|
1076
|
+
}, xt = ({
|
|
1022
1077
|
isOpened: e,
|
|
1023
1078
|
onClose: t,
|
|
1024
|
-
autoClose:
|
|
1025
|
-
autoCloseDelay:
|
|
1079
|
+
autoClose: s = !0,
|
|
1080
|
+
autoCloseDelay: n = 3e3
|
|
1026
1081
|
}) => {
|
|
1027
1082
|
B(() => {
|
|
1028
|
-
if (!e || !
|
|
1083
|
+
if (!e || !s) return;
|
|
1029
1084
|
const o = setTimeout(() => {
|
|
1030
1085
|
t();
|
|
1031
|
-
},
|
|
1086
|
+
}, n);
|
|
1032
1087
|
return () => clearTimeout(o);
|
|
1033
|
-
}, [e,
|
|
1034
|
-
},
|
|
1035
|
-
mode: Q.Light,
|
|
1036
|
-
setMode: () => {
|
|
1037
|
-
}
|
|
1038
|
-
}), jo = ({ children: e, injectedMode: t }) => {
|
|
1039
|
-
const [n, r] = M(Q.Light);
|
|
1040
|
-
return B(() => {
|
|
1041
|
-
n && typeof n == "string" && (document.body.classList.remove(Q.Light, Q.Dark), document.body.classList.add(n));
|
|
1042
|
-
}, [n]), B(() => {
|
|
1043
|
-
t && typeof t == "string" && (document.body.classList.remove(Q.Light, Q.Dark), document.body.classList.add(t));
|
|
1044
|
-
}, [t]), /* @__PURE__ */ s.jsx(_t.Provider, { value: { mode: n, setMode: r }, children: e });
|
|
1045
|
-
}, wo = () => Z(_t), Ee = ({ ref: e, onClickOutsideHandler: t, dependentRef: n }) => {
|
|
1088
|
+
}, [e, s, n, t]);
|
|
1089
|
+
}, Ee = ({ ref: e, onClickOutsideHandler: t, dependentRef: s }) => {
|
|
1046
1090
|
B(() => {
|
|
1047
|
-
const
|
|
1048
|
-
const l = (e == null ? void 0 : e.current) && !e.current.contains(o.target), c =
|
|
1091
|
+
const n = (o) => {
|
|
1092
|
+
const l = (e == null ? void 0 : e.current) && !e.current.contains(o.target), c = s != null && s.current ? !s.current.contains(o.target) : !0;
|
|
1049
1093
|
l && c && t();
|
|
1050
1094
|
};
|
|
1051
|
-
return document.addEventListener("mousedown",
|
|
1052
|
-
document.removeEventListener("mousedown",
|
|
1095
|
+
return document.addEventListener("mousedown", n), () => {
|
|
1096
|
+
document.removeEventListener("mousedown", n);
|
|
1053
1097
|
};
|
|
1054
|
-
}, [e,
|
|
1055
|
-
},
|
|
1056
|
-
const [
|
|
1098
|
+
}, [e, s, t]);
|
|
1099
|
+
}, ps = ({ ref: e, isVisible: t }) => {
|
|
1100
|
+
const [s, n] = I({ width: 0, height: 0 });
|
|
1057
1101
|
return B(() => {
|
|
1058
|
-
e != null && e.current && t &&
|
|
1102
|
+
e != null && e.current && t && n({
|
|
1059
1103
|
width: e.current.offsetWidth,
|
|
1060
1104
|
height: e.current.offsetHeight
|
|
1061
1105
|
});
|
|
1062
|
-
}, [e, t]),
|
|
1106
|
+
}, [e, t]), s;
|
|
1107
|
+
}, Bo = (e, t) => {
|
|
1108
|
+
const [s, n] = I(e);
|
|
1109
|
+
return B(() => {
|
|
1110
|
+
const o = setTimeout(() => {
|
|
1111
|
+
n(e);
|
|
1112
|
+
}, t);
|
|
1113
|
+
return () => {
|
|
1114
|
+
clearTimeout(o);
|
|
1115
|
+
};
|
|
1116
|
+
}, [e, t]), s;
|
|
1063
1117
|
};
|
|
1064
|
-
function
|
|
1065
|
-
const t =
|
|
1118
|
+
function ce(e) {
|
|
1119
|
+
const t = rt(), s = e != null ? e : t, n = `${s}_error`, o = `${s}_dropdown`;
|
|
1066
1120
|
return {
|
|
1067
|
-
elementId:
|
|
1068
|
-
errorId:
|
|
1121
|
+
elementId: s,
|
|
1122
|
+
errorId: n,
|
|
1069
1123
|
dropdownId: o
|
|
1070
1124
|
};
|
|
1071
1125
|
}
|
|
1072
|
-
const
|
|
1073
|
-
const [
|
|
1126
|
+
const ft = (e, t = 300) => {
|
|
1127
|
+
const [s, n] = I(!1);
|
|
1074
1128
|
return B(() => {
|
|
1075
|
-
e && !
|
|
1076
|
-
|
|
1129
|
+
e && !s ? n(!0) : !e && s && setTimeout(() => {
|
|
1130
|
+
n(!1);
|
|
1077
1131
|
}, t);
|
|
1078
|
-
}, [e]),
|
|
1079
|
-
},
|
|
1132
|
+
}, [e]), s;
|
|
1133
|
+
}, Do = ({
|
|
1080
1134
|
ref: e,
|
|
1081
1135
|
dimension: t,
|
|
1082
|
-
isMounted:
|
|
1136
|
+
isMounted: s
|
|
1083
1137
|
}) => {
|
|
1084
|
-
const [
|
|
1138
|
+
const [n, o] = I(!1);
|
|
1085
1139
|
return B(() => {
|
|
1086
1140
|
const l = () => {
|
|
1087
1141
|
const { current: c } = e;
|
|
@@ -1096,94 +1150,107 @@ const xt = (e, t = 300) => {
|
|
|
1096
1150
|
}
|
|
1097
1151
|
}
|
|
1098
1152
|
};
|
|
1099
|
-
return
|
|
1100
|
-
}, [e, t,
|
|
1101
|
-
}, Ie = ({ ref: e, keyCode: t, onKeyPress:
|
|
1153
|
+
return s && l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
1154
|
+
}, [e, t, s]), n;
|
|
1155
|
+
}, Ie = ({ ref: e, keyCode: t, onKeyPress: s }) => {
|
|
1102
1156
|
B(() => {
|
|
1103
|
-
const
|
|
1104
|
-
(o == null ? void 0 : o.code) === t && (e != null && e.current) &&
|
|
1157
|
+
const n = (o) => {
|
|
1158
|
+
(o == null ? void 0 : o.code) === t && (e != null && e.current) && s();
|
|
1105
1159
|
};
|
|
1106
|
-
return document.addEventListener("keydown",
|
|
1107
|
-
document.removeEventListener("keydown",
|
|
1160
|
+
return document.addEventListener("keydown", n, !1), () => {
|
|
1161
|
+
document.removeEventListener("keydown", n, !1);
|
|
1108
1162
|
};
|
|
1109
|
-
}, [e, t,
|
|
1110
|
-
},
|
|
1163
|
+
}, [e, t, s]);
|
|
1164
|
+
}, bs = ({ modalRef: e, isOpened: t }) => {
|
|
1111
1165
|
B(() => {
|
|
1112
|
-
const
|
|
1113
|
-
if (!t || !
|
|
1114
|
-
const
|
|
1166
|
+
const s = e.current;
|
|
1167
|
+
if (!t || !s) return;
|
|
1168
|
+
const n = s.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'), o = n[0], l = n[n.length - 1], c = (a) => {
|
|
1115
1169
|
a.key === "Tab" && (a.shiftKey && document.activeElement === o ? (a.preventDefault(), l.focus()) : !a.shiftKey && document.activeElement === l && (a.preventDefault(), o.focus()));
|
|
1116
1170
|
};
|
|
1117
|
-
return
|
|
1118
|
-
|
|
1171
|
+
return s.addEventListener("keydown", c), () => {
|
|
1172
|
+
s.removeEventListener("keydown", c);
|
|
1119
1173
|
};
|
|
1120
1174
|
}, [e, t]);
|
|
1121
|
-
},
|
|
1122
|
-
|
|
1175
|
+
}, ie = ot({}), wt = ot({
|
|
1176
|
+
mode: le.Light,
|
|
1177
|
+
setMode: () => {
|
|
1178
|
+
}
|
|
1179
|
+
}), Ho = ({ children: e, injectedMode: t }) => {
|
|
1180
|
+
const [s, n] = I(le.Light);
|
|
1181
|
+
B(() => {
|
|
1182
|
+
s && typeof s == "string" && (document.body.classList.remove(le.Light, le.Dark), document.body.classList.add(s));
|
|
1183
|
+
}, [s]), B(() => {
|
|
1184
|
+
t && typeof t == "string" && (document.body.classList.remove(le.Light, le.Dark), document.body.classList.add(t));
|
|
1185
|
+
}, [t]);
|
|
1186
|
+
const o = Et(() => ({ mode: s, setMode: n }), [s]);
|
|
1187
|
+
return /* @__PURE__ */ r.jsx(wt.Provider, { value: o, children: e });
|
|
1188
|
+
}, we = (e) => {
|
|
1189
|
+
const { resetSignal: t } = ae(ie);
|
|
1123
1190
|
B(() => {
|
|
1124
1191
|
t && e();
|
|
1125
1192
|
}, [t, e]);
|
|
1126
|
-
};
|
|
1193
|
+
}, No = () => ae(wt);
|
|
1127
1194
|
function Ge() {
|
|
1128
1195
|
const { innerWidth: e, innerHeight: t } = window;
|
|
1129
1196
|
return { width: e, height: t };
|
|
1130
1197
|
}
|
|
1131
|
-
function
|
|
1132
|
-
const [e, t] =
|
|
1198
|
+
function vs() {
|
|
1199
|
+
const [e, t] = I(Ge());
|
|
1133
1200
|
return B(() => {
|
|
1134
|
-
function
|
|
1201
|
+
function s() {
|
|
1135
1202
|
t(Ge());
|
|
1136
1203
|
}
|
|
1137
|
-
return window.addEventListener("resize",
|
|
1204
|
+
return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
1138
1205
|
}, []), e;
|
|
1139
1206
|
}
|
|
1140
|
-
const
|
|
1141
|
-
const [o, l] =
|
|
1207
|
+
const ms = ({ wrapperRef: e, tooltipRef: t, isOpened: s, spacing: n = 4 }) => {
|
|
1208
|
+
const [o, l] = I({ top: 0, left: 0 }), { width: c, height: a } = ps({
|
|
1142
1209
|
ref: t,
|
|
1143
|
-
isVisible:
|
|
1144
|
-
}), { width: i, height:
|
|
1210
|
+
isVisible: s
|
|
1211
|
+
}), { width: i, height: d } = vs();
|
|
1145
1212
|
return B(() => {
|
|
1146
|
-
if (
|
|
1147
|
-
const
|
|
1148
|
-
let
|
|
1149
|
-
|
|
1213
|
+
if (s && (e != null && e.current)) {
|
|
1214
|
+
const h = e == null ? void 0 : e.current.getBoundingClientRect();
|
|
1215
|
+
let p = Math.round(h.bottom + n), _ = Math.round(h.left);
|
|
1216
|
+
p + a > window.innerHeight && (p = Math.round(h.top - a - n)), _ + c > window.innerWidth && (_ = Math.round(window.innerWidth - c - n)), _ < 0 && (_ = n), l({ top: p, left: _ });
|
|
1150
1217
|
}
|
|
1151
|
-
}, [
|
|
1152
|
-
},
|
|
1153
|
-
const [
|
|
1154
|
-
|
|
1218
|
+
}, [s, e, a, c, n, i, d]), o;
|
|
1219
|
+
}, gs = ({ id: e, autoClose: t, autoCloseDelay: s }) => {
|
|
1220
|
+
const [n, o] = I(!1), l = ee(null), c = ee(null), { top: a, left: i } = ms({ wrapperRef: l, tooltipRef: c, isOpened: n }), { elementId: d } = ce(e), h = () => o(!1), p = () => o(!0), _ = () => o(!n), w = (x) => {
|
|
1221
|
+
x.preventDefault(), _();
|
|
1155
1222
|
};
|
|
1156
|
-
return Ie({ keyCode: "Escape", ref: c, onKeyPress:
|
|
1157
|
-
isOpened:
|
|
1158
|
-
onClose:
|
|
1223
|
+
return Ie({ keyCode: "Escape", ref: c, onKeyPress: h }), Ee({ ref: c, onClickOutsideHandler: h, dependentRef: l }), xt({
|
|
1224
|
+
isOpened: n,
|
|
1225
|
+
onClose: h,
|
|
1159
1226
|
autoClose: t,
|
|
1160
|
-
autoCloseDelay:
|
|
1227
|
+
autoCloseDelay: s
|
|
1161
1228
|
}), {
|
|
1162
|
-
elementId:
|
|
1163
|
-
openTooltip:
|
|
1164
|
-
closeTooltip:
|
|
1229
|
+
elementId: d,
|
|
1230
|
+
openTooltip: p,
|
|
1231
|
+
closeTooltip: h,
|
|
1165
1232
|
toggleTooltip: _,
|
|
1166
|
-
handleContextMenu:
|
|
1233
|
+
handleContextMenu: w,
|
|
1167
1234
|
top: a,
|
|
1168
1235
|
left: i,
|
|
1169
|
-
isOpened:
|
|
1236
|
+
isOpened: n,
|
|
1170
1237
|
wrapperRef: l,
|
|
1171
1238
|
tooltipRef: c
|
|
1172
1239
|
};
|
|
1173
|
-
},
|
|
1174
|
-
tooltip:
|
|
1175
|
-
},
|
|
1176
|
-
var
|
|
1240
|
+
}, js = "_tooltip_v7uvz_54", ks = {
|
|
1241
|
+
tooltip: js
|
|
1242
|
+
}, Cs = (h) => {
|
|
1243
|
+
var p = h, {
|
|
1177
1244
|
children: e,
|
|
1178
1245
|
tooltipContent: t,
|
|
1179
|
-
id:
|
|
1180
|
-
style:
|
|
1246
|
+
id: s,
|
|
1247
|
+
style: n,
|
|
1181
1248
|
className: o,
|
|
1182
1249
|
containerTag: l = ct.Span,
|
|
1183
1250
|
visibleOn: c = "hover",
|
|
1184
1251
|
autoClose: a = !1,
|
|
1185
1252
|
autoCloseDelay: i = 3e3
|
|
1186
|
-
} =
|
|
1253
|
+
} = p, d = v(p, [
|
|
1187
1254
|
"children",
|
|
1188
1255
|
"tooltipContent",
|
|
1189
1256
|
"id",
|
|
@@ -1194,67 +1261,150 @@ const _r = ({ wrapperRef: e, tooltipRef: t, isOpened: n, spacing: r = 4 }) => {
|
|
|
1194
1261
|
"autoClose",
|
|
1195
1262
|
"autoCloseDelay"
|
|
1196
1263
|
]);
|
|
1197
|
-
const _ = l, { openTooltip:
|
|
1198
|
-
return /* @__PURE__ */
|
|
1264
|
+
const _ = l, { openTooltip: w, closeTooltip: x, toggleTooltip: j, handleContextMenu: k, elementId: g, top: C, left: L, isOpened: A, wrapperRef: y, tooltipRef: $ } = gs({ id: s, autoClose: a, autoCloseDelay: i }), z = E([ks.tooltip, o]);
|
|
1265
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1199
1266
|
_,
|
|
1200
1267
|
{
|
|
1201
1268
|
style: { position: "relative", cursor: "pointer" },
|
|
1202
|
-
onClick: c === "click" ?
|
|
1203
|
-
onMouseOver: c === "hover" ?
|
|
1204
|
-
onMouseLeave: c === "hover" ?
|
|
1205
|
-
onFocus: c === "focus" ?
|
|
1206
|
-
onBlur: c === "focus" ?
|
|
1207
|
-
onContextMenu: c === "contextmenu" ? (
|
|
1269
|
+
onClick: c === "click" ? j : void 0,
|
|
1270
|
+
onMouseOver: c === "hover" ? w : void 0,
|
|
1271
|
+
onMouseLeave: c === "hover" ? x : void 0,
|
|
1272
|
+
onFocus: c === "focus" ? w : void 0,
|
|
1273
|
+
onBlur: c === "focus" ? x : void 0,
|
|
1274
|
+
onContextMenu: c === "contextmenu" ? (S) => k(S) : void 0,
|
|
1208
1275
|
tabIndex: -1,
|
|
1209
|
-
ref:
|
|
1210
|
-
"aria-describedby":
|
|
1276
|
+
ref: y,
|
|
1277
|
+
"aria-describedby": g,
|
|
1211
1278
|
children: [
|
|
1212
1279
|
e,
|
|
1213
|
-
|
|
1280
|
+
A && /* @__PURE__ */ r.jsx(De, { children: /* @__PURE__ */ r.jsx("div", b(f({ style: b(f({}, n), { top: C, left: L }), ref: $, role: "tooltip", id: g }, d), { className: z, children: t })) })
|
|
1214
1281
|
]
|
|
1215
1282
|
}
|
|
1216
1283
|
);
|
|
1217
1284
|
};
|
|
1218
|
-
function
|
|
1285
|
+
function ys(e, t) {
|
|
1286
|
+
if (t) return t;
|
|
1287
|
+
switch (e) {
|
|
1288
|
+
case F.Info:
|
|
1289
|
+
return "For your information";
|
|
1290
|
+
case F.Warning:
|
|
1291
|
+
return "Please pay attention";
|
|
1292
|
+
case F.Error:
|
|
1293
|
+
return "Something went wrong";
|
|
1294
|
+
case F.Success:
|
|
1295
|
+
return "Everything is okay";
|
|
1296
|
+
case F.Help:
|
|
1297
|
+
return "Useful tip";
|
|
1298
|
+
default:
|
|
1299
|
+
return "Alert";
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
function Ms(e, t) {
|
|
1303
|
+
if (t)
|
|
1304
|
+
return t;
|
|
1305
|
+
switch (e) {
|
|
1306
|
+
case F.Info:
|
|
1307
|
+
return m.Info;
|
|
1308
|
+
case F.Warning:
|
|
1309
|
+
return m.Warning;
|
|
1310
|
+
case F.Error:
|
|
1311
|
+
return m.Error;
|
|
1312
|
+
case F.Success:
|
|
1313
|
+
return m.CheckboxChecked;
|
|
1314
|
+
case F.Help:
|
|
1315
|
+
return m.Help;
|
|
1316
|
+
default:
|
|
1317
|
+
return;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
const Es = "_wrapper_12fi0_54", Is = "_wrapper__closing_12fi0_64", Ls = "_content_12fi0_70", As = "_content_button_12fi0_90", ge = {
|
|
1321
|
+
wrapper: Es,
|
|
1322
|
+
wrapper__closing: Is,
|
|
1323
|
+
content: Ls,
|
|
1324
|
+
content_button: As
|
|
1325
|
+
}, Po = (d) => {
|
|
1326
|
+
var h = d, {
|
|
1327
|
+
isOpened: e,
|
|
1328
|
+
onClose: t,
|
|
1329
|
+
title: s,
|
|
1330
|
+
message: n,
|
|
1331
|
+
mode: o = F.Info,
|
|
1332
|
+
icon: l,
|
|
1333
|
+
autoClose: c = !1,
|
|
1334
|
+
autoCloseDelay: a = 3e3
|
|
1335
|
+
} = h, i = v(h, [
|
|
1336
|
+
"isOpened",
|
|
1337
|
+
"onClose",
|
|
1338
|
+
"title",
|
|
1339
|
+
"message",
|
|
1340
|
+
"mode",
|
|
1341
|
+
"icon",
|
|
1342
|
+
"autoClose",
|
|
1343
|
+
"autoCloseDelay"
|
|
1344
|
+
]);
|
|
1345
|
+
const p = ft(e), _ = p && !e;
|
|
1346
|
+
if (xt({
|
|
1347
|
+
isOpened: e,
|
|
1348
|
+
onClose: t,
|
|
1349
|
+
autoClose: c,
|
|
1350
|
+
autoCloseDelay: a
|
|
1351
|
+
}), !p) return null;
|
|
1352
|
+
const w = ys(o, s), x = Ms(o, l);
|
|
1353
|
+
return /* @__PURE__ */ r.jsx(De, { children: /* @__PURE__ */ r.jsx("div", { className: E([ge.wrapper, { [ge.wrapper__closing]: _ }]), children: /* @__PURE__ */ r.jsxs("div", b(f({}, i), { className: ge.content, children: [
|
|
1354
|
+
/* @__PURE__ */ r.jsx(
|
|
1355
|
+
K,
|
|
1356
|
+
{
|
|
1357
|
+
icon: m.Cancel,
|
|
1358
|
+
view: D.Icon,
|
|
1359
|
+
label: "Close alert popup",
|
|
1360
|
+
onClick: t,
|
|
1361
|
+
className: ge.content_button
|
|
1362
|
+
}
|
|
1363
|
+
),
|
|
1364
|
+
/* @__PURE__ */ r.jsx("header", { children: /* @__PURE__ */ r.jsx(it, { icon: x, as: "h3", children: w }) }),
|
|
1365
|
+
/* @__PURE__ */ r.jsx("p", { children: n })
|
|
1366
|
+
] })) }) });
|
|
1367
|
+
};
|
|
1368
|
+
function Ss({
|
|
1219
1369
|
defaultChecked: e,
|
|
1220
1370
|
initialValues: t,
|
|
1221
|
-
name:
|
|
1371
|
+
name: s
|
|
1222
1372
|
}) {
|
|
1223
|
-
return
|
|
1373
|
+
return (t == null ? void 0 : t[s]) !== void 0 ? !!(t != null && t[s]) : !!e;
|
|
1224
1374
|
}
|
|
1225
|
-
function
|
|
1375
|
+
function Rs({
|
|
1226
1376
|
name: e,
|
|
1227
1377
|
defaultChecked: t,
|
|
1228
|
-
onChange:
|
|
1378
|
+
onChange: s
|
|
1229
1379
|
}) {
|
|
1230
|
-
const { onChangeFormInput:
|
|
1231
|
-
const
|
|
1232
|
-
a(
|
|
1233
|
-
},
|
|
1234
|
-
a(l),
|
|
1380
|
+
const { onChangeFormInput: n, initialValues: o } = ae(ie), l = Ss({ initialValues: o, name: e, defaultChecked: t }), [c, a] = I(l), i = (h) => {
|
|
1381
|
+
const p = h.target.checked;
|
|
1382
|
+
a(p), s == null || s(h), n == null || n({ name: e, value: p });
|
|
1383
|
+
}, d = se(() => {
|
|
1384
|
+
a(l), n == null || n({ name: e, value: l });
|
|
1235
1385
|
}, [e]);
|
|
1236
|
-
return
|
|
1386
|
+
return we(d), {
|
|
1237
1387
|
handleChange: i,
|
|
1238
1388
|
checked: c
|
|
1239
1389
|
};
|
|
1240
1390
|
}
|
|
1241
|
-
const
|
|
1242
|
-
checkbox:
|
|
1243
|
-
checkbox__checked:
|
|
1244
|
-
checkbox__disabled:
|
|
1245
|
-
},
|
|
1246
|
-
var _ =
|
|
1391
|
+
const Ts = "_checkbox_1ff9a_2", zs = "_checkbox__checked_1ff9a_12", $s = "_checkbox__disabled_1ff9a_15", Re = {
|
|
1392
|
+
checkbox: Ts,
|
|
1393
|
+
checkbox__checked: zs,
|
|
1394
|
+
checkbox__disabled: $s
|
|
1395
|
+
}, Oo = (p) => {
|
|
1396
|
+
var _ = p, {
|
|
1247
1397
|
name: e,
|
|
1248
1398
|
label: t,
|
|
1249
|
-
disabled:
|
|
1250
|
-
noLabel:
|
|
1399
|
+
disabled: s,
|
|
1400
|
+
noLabel: n,
|
|
1251
1401
|
required: o = !1,
|
|
1252
1402
|
iconPosition: l = "left",
|
|
1253
1403
|
defaultChecked: c,
|
|
1254
1404
|
onChange: a,
|
|
1255
1405
|
id: i,
|
|
1256
|
-
className:
|
|
1257
|
-
} = _,
|
|
1406
|
+
className: d
|
|
1407
|
+
} = _, h = v(_, [
|
|
1258
1408
|
"name",
|
|
1259
1409
|
"label",
|
|
1260
1410
|
"disabled",
|
|
@@ -1266,123 +1416,123 @@ const jr = "_checkbox_1ff9a_2", wr = "_checkbox__checked_1ff9a_12", gr = "_check
|
|
|
1266
1416
|
"id",
|
|
1267
1417
|
"className"
|
|
1268
1418
|
]);
|
|
1269
|
-
const { handleChange:
|
|
1270
|
-
|
|
1271
|
-
|
|
1419
|
+
const { handleChange: w, checked: x } = Rs({ name: e, defaultChecked: c, onChange: a }), { elementId: j } = ce(i), k = E([
|
|
1420
|
+
Re.checkbox,
|
|
1421
|
+
d,
|
|
1272
1422
|
{
|
|
1273
|
-
[
|
|
1274
|
-
[
|
|
1423
|
+
[Re.checkbox__disabled]: !!s,
|
|
1424
|
+
[Re.checkbox__checked]: x
|
|
1275
1425
|
}
|
|
1276
1426
|
]);
|
|
1277
|
-
return /* @__PURE__ */
|
|
1278
|
-
/* @__PURE__ */
|
|
1427
|
+
return /* @__PURE__ */ r.jsxs("div", b(f({}, h), { className: k, children: [
|
|
1428
|
+
/* @__PURE__ */ r.jsx(
|
|
1279
1429
|
"input",
|
|
1280
1430
|
{
|
|
1281
|
-
id:
|
|
1431
|
+
id: j,
|
|
1282
1432
|
name: e,
|
|
1283
1433
|
type: "checkbox",
|
|
1284
|
-
disabled:
|
|
1434
|
+
disabled: s,
|
|
1285
1435
|
required: o,
|
|
1286
|
-
checked:
|
|
1287
|
-
onChange:
|
|
1288
|
-
"aria-label":
|
|
1436
|
+
checked: x,
|
|
1437
|
+
onChange: w,
|
|
1438
|
+
"aria-label": n ? t : void 0
|
|
1289
1439
|
}
|
|
1290
1440
|
),
|
|
1291
|
-
/* @__PURE__ */
|
|
1292
|
-
|
|
1441
|
+
/* @__PURE__ */ r.jsx(
|
|
1442
|
+
ue,
|
|
1293
1443
|
{
|
|
1294
1444
|
label: t,
|
|
1295
1445
|
required: o,
|
|
1296
|
-
inputId:
|
|
1297
|
-
isTextHidden:
|
|
1298
|
-
icon:
|
|
1446
|
+
inputId: j,
|
|
1447
|
+
isTextHidden: n,
|
|
1448
|
+
icon: x ? m.CheckboxChecked : m.CheckboxUnchecked,
|
|
1299
1449
|
iconPosition: l
|
|
1300
1450
|
}
|
|
1301
1451
|
)
|
|
1302
1452
|
] }));
|
|
1303
|
-
},
|
|
1304
|
-
wrapper:
|
|
1305
|
-
},
|
|
1306
|
-
combobox:
|
|
1307
|
-
},
|
|
1453
|
+
}, Bs = "_wrapper_z3grr_1", pt = {
|
|
1454
|
+
wrapper: Bs
|
|
1455
|
+
}, Ds = "_combobox_1pe6c_2", bt = {
|
|
1456
|
+
combobox: Ds
|
|
1457
|
+
}, Hs = ({
|
|
1308
1458
|
opened: e,
|
|
1309
1459
|
onClick: t,
|
|
1310
|
-
comboboxId:
|
|
1311
|
-
dropdownId:
|
|
1460
|
+
comboboxId: s,
|
|
1461
|
+
dropdownId: n,
|
|
1312
1462
|
name: o,
|
|
1313
1463
|
placeholder: l,
|
|
1314
1464
|
disabled: c,
|
|
1315
1465
|
required: a,
|
|
1316
1466
|
values: i
|
|
1317
1467
|
}) => {
|
|
1318
|
-
const
|
|
1319
|
-
let
|
|
1320
|
-
return
|
|
1468
|
+
const d = i == null ? void 0 : i.filter((_) => _.selected).map((_) => _.label), h = i == null ? void 0 : i.filter((_) => _.selected).map((_) => _.id);
|
|
1469
|
+
let p = /* @__PURE__ */ r.jsx("span", { children: l });
|
|
1470
|
+
return d && d.length === (i == null ? void 0 : i.length) ? p = /* @__PURE__ */ r.jsx("span", { children: "All items selected" }) : d && d.length === 1 ? p = /* @__PURE__ */ r.jsx("span", { children: d[0] }) : d && d.length > 1 && (p = /* @__PURE__ */ r.jsx("span", { children: `${d.length} items selected` })), /* @__PURE__ */ r.jsxs(
|
|
1321
1471
|
"button",
|
|
1322
1472
|
{
|
|
1323
1473
|
type: "button",
|
|
1324
1474
|
name: o,
|
|
1325
|
-
value:
|
|
1475
|
+
value: h,
|
|
1326
1476
|
role: "combobox",
|
|
1327
1477
|
"aria-haspopup": "listbox",
|
|
1328
1478
|
"aria-expanded": e,
|
|
1329
|
-
"aria-controls":
|
|
1330
|
-
id:
|
|
1479
|
+
"aria-controls": n,
|
|
1480
|
+
id: s,
|
|
1331
1481
|
onClick: t,
|
|
1332
1482
|
disabled: c,
|
|
1333
1483
|
"aria-required": a,
|
|
1334
1484
|
className: bt.combobox,
|
|
1335
1485
|
children: [
|
|
1336
|
-
|
|
1337
|
-
e ? /* @__PURE__ */
|
|
1486
|
+
p,
|
|
1487
|
+
e ? /* @__PURE__ */ r.jsx(Be, {}) : /* @__PURE__ */ r.jsx($e, {})
|
|
1338
1488
|
]
|
|
1339
1489
|
}
|
|
1340
1490
|
);
|
|
1341
1491
|
};
|
|
1342
|
-
function
|
|
1492
|
+
function Ns({
|
|
1343
1493
|
name: e,
|
|
1344
1494
|
options: t,
|
|
1345
|
-
initialValues:
|
|
1346
|
-
defaultValue:
|
|
1495
|
+
initialValues: s,
|
|
1496
|
+
defaultValue: n
|
|
1347
1497
|
}) {
|
|
1348
1498
|
return t.map((o) => {
|
|
1349
1499
|
let l = !1;
|
|
1350
|
-
return
|
|
1500
|
+
return s != null && s[e] && Array.isArray(s[e]) && s[e].find((a) => a === o.id || (a == null ? void 0 : a.id) === o.id) && (l = !0), !(s != null && s[e]) && Array.isArray(n) && n.find((a) => a === o.id) && (l = !0), b(f({}, o), { selected: l });
|
|
1351
1501
|
});
|
|
1352
1502
|
}
|
|
1353
|
-
const
|
|
1354
|
-
const
|
|
1355
|
-
return e.map((
|
|
1503
|
+
const qe = (e) => e.filter((t) => t.selected).map((t) => t.id), Ps = (e, t) => {
|
|
1504
|
+
const s = e.find((n) => n.id === t);
|
|
1505
|
+
return e.map((n) => n.id === t ? b(f({}, n), { selected: !(s != null && s.selected) }) : n);
|
|
1356
1506
|
};
|
|
1357
|
-
function
|
|
1507
|
+
function Os({
|
|
1358
1508
|
name: e,
|
|
1359
1509
|
defaultValue: t,
|
|
1360
|
-
onChange:
|
|
1361
|
-
options:
|
|
1510
|
+
onChange: s,
|
|
1511
|
+
options: n
|
|
1362
1512
|
}) {
|
|
1363
|
-
const [o, l] =
|
|
1364
|
-
const
|
|
1365
|
-
|
|
1366
|
-
},
|
|
1367
|
-
l(!1),
|
|
1513
|
+
const [o, l] = I(!1), { onChangeFormInput: c, initialValues: a } = ae(ie), i = Ns({ name: e, options: n, initialValues: a, defaultValue: t }), [d, h] = I(i), p = () => l(!1), _ = () => l(!o), w = (j) => {
|
|
1514
|
+
const k = Ps(d, j);
|
|
1515
|
+
h(k), s == null || s(k), c == null || c({ name: e, value: qe(k) });
|
|
1516
|
+
}, x = se(() => {
|
|
1517
|
+
l(!1), h(i), c == null || c({ name: e, value: qe(i) });
|
|
1368
1518
|
}, [e]);
|
|
1369
|
-
return
|
|
1370
|
-
handleClose:
|
|
1519
|
+
return we(x), {
|
|
1520
|
+
handleClose: p,
|
|
1371
1521
|
handleToggle: _,
|
|
1372
|
-
handleSelect:
|
|
1522
|
+
handleSelect: w,
|
|
1373
1523
|
opened: o,
|
|
1374
|
-
values:
|
|
1524
|
+
values: d
|
|
1375
1525
|
};
|
|
1376
1526
|
}
|
|
1377
|
-
const
|
|
1378
|
-
dropdown:
|
|
1379
|
-
dropdown__opened:
|
|
1380
|
-
},
|
|
1381
|
-
option:
|
|
1382
|
-
option__selected:
|
|
1383
|
-
option__multi:
|
|
1384
|
-
},
|
|
1385
|
-
const { id:
|
|
1527
|
+
const Vs = "_dropdown_1kuhz_6", Ws = "_dropdown__opened_1kuhz_25", Me = {
|
|
1528
|
+
dropdown: Vs,
|
|
1529
|
+
dropdown__opened: Ws
|
|
1530
|
+
}, Us = "_option_17atn_1", Ks = "_option__selected_17atn_29", Fs = "_option__multi_17atn_32", fe = {
|
|
1531
|
+
option: Us,
|
|
1532
|
+
option__selected: Ks,
|
|
1533
|
+
option__multi: Fs
|
|
1534
|
+
}, Gs = ({ value: e, onSelect: t }) => {
|
|
1535
|
+
const { id: s, label: n, selected: o } = e, l = E([fe.option, fe.option__multi, { [fe.option__selected]: o }]), c = (a) => (i) => {
|
|
1386
1536
|
switch (i.key) {
|
|
1387
1537
|
case " ":
|
|
1388
1538
|
case "SpaceBar":
|
|
@@ -1391,48 +1541,48 @@ const Ar = "_dropdown_1kuhz_6", Sr = "_dropdown__opened_1kuhz_25", ye = {
|
|
|
1391
1541
|
break;
|
|
1392
1542
|
}
|
|
1393
1543
|
};
|
|
1394
|
-
return /* @__PURE__ */
|
|
1544
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1395
1545
|
"li",
|
|
1396
1546
|
{
|
|
1397
|
-
id:
|
|
1547
|
+
id: s,
|
|
1398
1548
|
role: "option",
|
|
1399
1549
|
"aria-selected": o,
|
|
1400
1550
|
tabIndex: 0,
|
|
1401
|
-
onKeyDown: c(
|
|
1402
|
-
onClick: () => t(
|
|
1551
|
+
onKeyDown: c(s),
|
|
1552
|
+
onClick: () => t(s),
|
|
1403
1553
|
className: l,
|
|
1404
1554
|
children: [
|
|
1405
|
-
o ? /* @__PURE__ */
|
|
1406
|
-
/* @__PURE__ */
|
|
1555
|
+
o ? /* @__PURE__ */ r.jsx(dt, {}) : /* @__PURE__ */ r.jsx(ut, {}),
|
|
1556
|
+
/* @__PURE__ */ r.jsx("span", { children: n })
|
|
1407
1557
|
]
|
|
1408
1558
|
}
|
|
1409
1559
|
);
|
|
1410
|
-
},
|
|
1411
|
-
const l =
|
|
1412
|
-
return /* @__PURE__ */
|
|
1560
|
+
}, qs = ({ options: e, opened: t, onClose: s, onSelect: n, dropdownId: o }) => {
|
|
1561
|
+
const l = E([Me.dropdown, { [Me.dropdown__opened]: t }]);
|
|
1562
|
+
return /* @__PURE__ */ r.jsx(
|
|
1413
1563
|
"ul",
|
|
1414
1564
|
{
|
|
1415
1565
|
role: "listbox",
|
|
1416
1566
|
id: o,
|
|
1417
1567
|
tabIndex: -1,
|
|
1418
|
-
onKeyDown: (c) => lt({ e: c, options: e, onClose:
|
|
1568
|
+
onKeyDown: (c) => lt({ e: c, options: e, onClose: s }),
|
|
1419
1569
|
className: l,
|
|
1420
|
-
children: e.map((c) => /* @__PURE__ */
|
|
1570
|
+
children: e.map((c) => /* @__PURE__ */ r.jsx(Gs, { value: c, onSelect: () => n(c.id) }, c.id))
|
|
1421
1571
|
}
|
|
1422
1572
|
);
|
|
1423
|
-
},
|
|
1424
|
-
var _ =
|
|
1573
|
+
}, Vo = (p) => {
|
|
1574
|
+
var _ = p, {
|
|
1425
1575
|
options: e,
|
|
1426
1576
|
name: t,
|
|
1427
|
-
label:
|
|
1428
|
-
required:
|
|
1577
|
+
label: s,
|
|
1578
|
+
required: n = !1,
|
|
1429
1579
|
placeholder: o = "Not selected",
|
|
1430
1580
|
disabled: l = !1,
|
|
1431
1581
|
onChange: c,
|
|
1432
1582
|
defaultValue: a,
|
|
1433
1583
|
id: i,
|
|
1434
|
-
className:
|
|
1435
|
-
} = _,
|
|
1584
|
+
className: d
|
|
1585
|
+
} = _, h = v(_, [
|
|
1436
1586
|
"options",
|
|
1437
1587
|
"name",
|
|
1438
1588
|
"label",
|
|
@@ -1444,107 +1594,107 @@ const Ar = "_dropdown_1kuhz_6", Sr = "_dropdown__opened_1kuhz_25", ye = {
|
|
|
1444
1594
|
"id",
|
|
1445
1595
|
"className"
|
|
1446
1596
|
]);
|
|
1447
|
-
const
|
|
1597
|
+
const w = ee(null), { elementId: x, dropdownId: j } = ce(i), { handleClose: k, handleSelect: g, handleToggle: C, opened: L, values: A } = Os({
|
|
1448
1598
|
name: t,
|
|
1449
1599
|
options: e,
|
|
1450
1600
|
defaultValue: a,
|
|
1451
1601
|
onChange: c
|
|
1452
|
-
}),
|
|
1453
|
-
return Ee({ ref:
|
|
1454
|
-
/* @__PURE__ */
|
|
1455
|
-
/* @__PURE__ */
|
|
1456
|
-
|
|
1602
|
+
}), y = E([pt.wrapper, d]);
|
|
1603
|
+
return Ee({ ref: w, onClickOutsideHandler: k }), Ie({ keyCode: "Escape", ref: w, onKeyPress: k }), /* @__PURE__ */ r.jsxs("div", b(f({ ref: w }, h), { className: y, children: [
|
|
1604
|
+
/* @__PURE__ */ r.jsx(ue, { label: s, required: n, inputId: x }),
|
|
1605
|
+
/* @__PURE__ */ r.jsx(
|
|
1606
|
+
Hs,
|
|
1457
1607
|
{
|
|
1458
1608
|
name: t,
|
|
1459
|
-
opened:
|
|
1460
|
-
comboboxId:
|
|
1461
|
-
dropdownId:
|
|
1462
|
-
onClick:
|
|
1463
|
-
values:
|
|
1609
|
+
opened: L,
|
|
1610
|
+
comboboxId: x,
|
|
1611
|
+
dropdownId: j,
|
|
1612
|
+
onClick: C,
|
|
1613
|
+
values: A,
|
|
1464
1614
|
placeholder: o,
|
|
1465
1615
|
disabled: l,
|
|
1466
|
-
required:
|
|
1616
|
+
required: n
|
|
1467
1617
|
}
|
|
1468
1618
|
),
|
|
1469
|
-
/* @__PURE__ */
|
|
1619
|
+
/* @__PURE__ */ r.jsx(qs, { options: A, opened: L, onClose: k, dropdownId: j, onSelect: g })
|
|
1470
1620
|
] }));
|
|
1471
1621
|
};
|
|
1472
|
-
function
|
|
1622
|
+
function Ys({
|
|
1473
1623
|
name: e,
|
|
1474
1624
|
initialValues: t,
|
|
1475
|
-
defaultValue:
|
|
1625
|
+
defaultValue: s
|
|
1476
1626
|
}) {
|
|
1477
|
-
return t && t[e] ? Number(t[e]) :
|
|
1627
|
+
return t != null && t[e] ? Number(t[e]) : s && typeof s == "number" ? s : 0;
|
|
1478
1628
|
}
|
|
1479
|
-
function
|
|
1629
|
+
function Js({
|
|
1480
1630
|
value: e,
|
|
1481
1631
|
required: t,
|
|
1482
|
-
validator:
|
|
1483
|
-
maxValue:
|
|
1632
|
+
validator: s,
|
|
1633
|
+
maxValue: n,
|
|
1484
1634
|
minValue: o
|
|
1485
1635
|
}) {
|
|
1486
|
-
return t && !
|
|
1636
|
+
return t && !s && e === void 0 ? !1 : s && typeof s == "function" ? s(e) : n && o && e && !s ? e <= n && e >= o : !0;
|
|
1487
1637
|
}
|
|
1488
|
-
function
|
|
1638
|
+
function Xs({
|
|
1489
1639
|
name: e,
|
|
1490
1640
|
defaultValue: t,
|
|
1491
|
-
onChange:
|
|
1492
|
-
onSpinButtonClick:
|
|
1641
|
+
onChange: s,
|
|
1642
|
+
onSpinButtonClick: n,
|
|
1493
1643
|
min: o,
|
|
1494
1644
|
max: l,
|
|
1495
1645
|
step: c,
|
|
1496
1646
|
required: a,
|
|
1497
1647
|
validator: i
|
|
1498
1648
|
}) {
|
|
1499
|
-
const { onChangeFormInput:
|
|
1500
|
-
|
|
1501
|
-
const
|
|
1502
|
-
|
|
1503
|
-
},
|
|
1504
|
-
const
|
|
1505
|
-
|
|
1506
|
-
}, T = () => {
|
|
1507
|
-
E(f + c), r == null || r(f + c);
|
|
1649
|
+
const { onChangeFormInput: d, initialValues: h } = ae(ie), p = Ys({ initialValues: h, defaultValue: t, name: e }), _ = l ? Number(l) : Number.MAX_SAFE_INTEGER, w = o ? Number(o) : Number.MIN_SAFE_INTEGER, [x, j] = I(p), [k, g] = I(!0), C = (z) => {
|
|
1650
|
+
j(z);
|
|
1651
|
+
const S = Js({ value: z, required: a, validator: i, maxValue: _, minValue: w });
|
|
1652
|
+
g(S), d == null || d({ name: e, value: z, valid: S });
|
|
1653
|
+
}, L = (z) => {
|
|
1654
|
+
const S = Number(z.target.value);
|
|
1655
|
+
C(S), s == null || s(z);
|
|
1508
1656
|
}, A = () => {
|
|
1509
|
-
|
|
1510
|
-
},
|
|
1511
|
-
|
|
1657
|
+
C(x + c), n == null || n(x + c);
|
|
1658
|
+
}, y = () => {
|
|
1659
|
+
C(x - c), n == null || n(x - c);
|
|
1660
|
+
}, $ = se(() => {
|
|
1661
|
+
j(p), g(!0), d == null || d({ name: e, value: p, valid: !0 });
|
|
1512
1662
|
}, [e]);
|
|
1513
|
-
return
|
|
1514
|
-
handleChange:
|
|
1515
|
-
value:
|
|
1516
|
-
valid:
|
|
1517
|
-
minValue:
|
|
1663
|
+
return we($), {
|
|
1664
|
+
handleChange: L,
|
|
1665
|
+
value: x,
|
|
1666
|
+
valid: k,
|
|
1667
|
+
minValue: w,
|
|
1518
1668
|
maxValue: _,
|
|
1519
|
-
increment:
|
|
1520
|
-
decrement:
|
|
1669
|
+
increment: A,
|
|
1670
|
+
decrement: y
|
|
1521
1671
|
};
|
|
1522
1672
|
}
|
|
1523
|
-
const
|
|
1524
|
-
numeric:
|
|
1525
|
-
errorMessage:
|
|
1526
|
-
},
|
|
1527
|
-
var
|
|
1673
|
+
const Qs = "_numeric_1s7mp_1", Zs = "_errorMessage_1s7mp_7", Ye = {
|
|
1674
|
+
numeric: Qs,
|
|
1675
|
+
errorMessage: Zs
|
|
1676
|
+
}, Wo = (A) => {
|
|
1677
|
+
var y = A, {
|
|
1528
1678
|
name: e,
|
|
1529
1679
|
label: t,
|
|
1530
|
-
errorMessage:
|
|
1531
|
-
onChange:
|
|
1680
|
+
errorMessage: s,
|
|
1681
|
+
onChange: n,
|
|
1532
1682
|
onBlur: o,
|
|
1533
1683
|
onFocus: l,
|
|
1534
1684
|
onSpinButtonClick: c,
|
|
1535
1685
|
validator: a,
|
|
1536
1686
|
min: i,
|
|
1537
|
-
max:
|
|
1538
|
-
id:
|
|
1539
|
-
tabIndex:
|
|
1687
|
+
max: d,
|
|
1688
|
+
id: h,
|
|
1689
|
+
tabIndex: p,
|
|
1540
1690
|
disabled: _ = !1,
|
|
1541
|
-
required:
|
|
1542
|
-
readOnly:
|
|
1543
|
-
hasSpinButtons:
|
|
1544
|
-
defaultValue:
|
|
1545
|
-
step:
|
|
1546
|
-
className:
|
|
1547
|
-
} =
|
|
1691
|
+
required: w = !1,
|
|
1692
|
+
readOnly: x = !1,
|
|
1693
|
+
hasSpinButtons: j = !0,
|
|
1694
|
+
defaultValue: k = 0,
|
|
1695
|
+
step: g = 1,
|
|
1696
|
+
className: C
|
|
1697
|
+
} = y, L = v(y, [
|
|
1548
1698
|
"name",
|
|
1549
1699
|
"label",
|
|
1550
1700
|
"errorMessage",
|
|
@@ -1565,68 +1715,68 @@ const Nr = "_numeric_1s7mp_1", Pr = "_errorMessage_1s7mp_7", Ye = {
|
|
|
1565
1715
|
"step",
|
|
1566
1716
|
"className"
|
|
1567
1717
|
]);
|
|
1568
|
-
const { elementId: $, errorId:
|
|
1718
|
+
const { elementId: $, errorId: z } = ce(h), { value: S, valid: X, handleChange: te, increment: O, decrement: G, minValue: H, maxValue: V } = Xs({
|
|
1569
1719
|
name: e,
|
|
1570
|
-
defaultValue:
|
|
1720
|
+
defaultValue: k,
|
|
1571
1721
|
min: i,
|
|
1572
|
-
max:
|
|
1573
|
-
onChange:
|
|
1574
|
-
required:
|
|
1722
|
+
max: d,
|
|
1723
|
+
onChange: n,
|
|
1724
|
+
required: w,
|
|
1575
1725
|
validator: a,
|
|
1576
|
-
step:
|
|
1726
|
+
step: g,
|
|
1577
1727
|
onSpinButtonClick: c
|
|
1578
|
-
}),
|
|
1579
|
-
return /* @__PURE__ */
|
|
1580
|
-
/* @__PURE__ */
|
|
1581
|
-
/* @__PURE__ */
|
|
1582
|
-
|
|
1728
|
+
}), R = E([Ye.numeric, C]);
|
|
1729
|
+
return /* @__PURE__ */ r.jsxs("div", b(f({}, L), { className: R, children: [
|
|
1730
|
+
/* @__PURE__ */ r.jsx(ue, { label: t, required: w, inputId: $ }),
|
|
1731
|
+
/* @__PURE__ */ r.jsxs(
|
|
1732
|
+
_t,
|
|
1583
1733
|
{
|
|
1584
1734
|
id: $,
|
|
1585
1735
|
name: e,
|
|
1586
1736
|
type: "number",
|
|
1587
1737
|
disabled: _,
|
|
1588
|
-
required:
|
|
1589
|
-
readOnly:
|
|
1738
|
+
required: w,
|
|
1739
|
+
readOnly: x,
|
|
1590
1740
|
placeholder: "0",
|
|
1591
|
-
"aria-invalid": !
|
|
1592
|
-
"aria-errormessage":
|
|
1593
|
-
value:
|
|
1594
|
-
onChange:
|
|
1595
|
-
min:
|
|
1596
|
-
max:
|
|
1597
|
-
step:
|
|
1741
|
+
"aria-invalid": !X,
|
|
1742
|
+
"aria-errormessage": z,
|
|
1743
|
+
value: S.toString(),
|
|
1744
|
+
onChange: te,
|
|
1745
|
+
min: H,
|
|
1746
|
+
max: V,
|
|
1747
|
+
step: g,
|
|
1598
1748
|
onBlur: o,
|
|
1599
1749
|
onFocus: l,
|
|
1600
|
-
tabIndex:
|
|
1750
|
+
tabIndex: p,
|
|
1601
1751
|
children: [
|
|
1602
|
-
|
|
1603
|
-
/* @__PURE__ */
|
|
1604
|
-
|
|
1752
|
+
j && /* @__PURE__ */ r.jsxs("span", { children: [
|
|
1753
|
+
/* @__PURE__ */ r.jsx(
|
|
1754
|
+
K,
|
|
1605
1755
|
{
|
|
1606
|
-
onClick:
|
|
1607
|
-
view:
|
|
1756
|
+
onClick: G,
|
|
1757
|
+
view: D.Inner,
|
|
1608
1758
|
label: `Decrement value for ${t}`,
|
|
1609
|
-
icon:
|
|
1759
|
+
icon: m.ChevronLeft,
|
|
1610
1760
|
disabled: _
|
|
1611
1761
|
}
|
|
1612
1762
|
),
|
|
1613
|
-
/* @__PURE__ */
|
|
1614
|
-
|
|
1763
|
+
/* @__PURE__ */ r.jsx(
|
|
1764
|
+
K,
|
|
1615
1765
|
{
|
|
1616
|
-
onClick:
|
|
1617
|
-
view:
|
|
1766
|
+
onClick: O,
|
|
1767
|
+
view: D.Inner,
|
|
1618
1768
|
label: `Increment value for ${t}`,
|
|
1619
|
-
icon:
|
|
1769
|
+
icon: m.ChevronRight,
|
|
1620
1770
|
disabled: _
|
|
1621
1771
|
}
|
|
1622
1772
|
)
|
|
1623
1773
|
] }),
|
|
1624
|
-
/* @__PURE__ */
|
|
1774
|
+
/* @__PURE__ */ r.jsx(at, { errorId: z, message: s, visible: !X, className: Ye.errorMessage })
|
|
1625
1775
|
]
|
|
1626
1776
|
}
|
|
1627
1777
|
)
|
|
1628
1778
|
] }));
|
|
1629
|
-
},
|
|
1779
|
+
}, er = ({ opened: e, onClick: t, comboboxId: s, dropdownId: n, selected: o, name: l, placeholder: c, disabled: a, required: i }) => /* @__PURE__ */ r.jsxs(
|
|
1630
1780
|
"button",
|
|
1631
1781
|
{
|
|
1632
1782
|
type: "button",
|
|
@@ -1635,30 +1785,30 @@ const Nr = "_numeric_1s7mp_1", Pr = "_errorMessage_1s7mp_7", Ye = {
|
|
|
1635
1785
|
role: "combobox",
|
|
1636
1786
|
"aria-haspopup": "listbox",
|
|
1637
1787
|
"aria-expanded": e,
|
|
1638
|
-
"aria-controls":
|
|
1639
|
-
id:
|
|
1788
|
+
"aria-controls": n,
|
|
1789
|
+
id: s,
|
|
1640
1790
|
onClick: t,
|
|
1641
1791
|
disabled: a,
|
|
1642
1792
|
"aria-required": i,
|
|
1643
1793
|
className: bt.combobox,
|
|
1644
1794
|
children: [
|
|
1645
|
-
o != null && o.label ? /* @__PURE__ */
|
|
1646
|
-
e ? /* @__PURE__ */
|
|
1795
|
+
o != null && o.label ? /* @__PURE__ */ r.jsx("span", { children: o == null ? void 0 : o.label }) : /* @__PURE__ */ r.jsx("span", { children: c }),
|
|
1796
|
+
e ? /* @__PURE__ */ r.jsx(Be, {}) : /* @__PURE__ */ r.jsx($e, {})
|
|
1647
1797
|
]
|
|
1648
1798
|
}
|
|
1649
|
-
),
|
|
1650
|
-
const { id: o, label: l } = e, c =
|
|
1651
|
-
t ?
|
|
1652
|
-
}, i = (
|
|
1653
|
-
switch (
|
|
1799
|
+
), tr = ({ value: e, selected: t, onSelect: s, onClear: n }) => {
|
|
1800
|
+
const { id: o, label: l } = e, c = E([fe.option, { [fe.option__selected]: t }]), a = (d) => {
|
|
1801
|
+
t ? n() : s(d);
|
|
1802
|
+
}, i = (d) => (h) => {
|
|
1803
|
+
switch (h.key) {
|
|
1654
1804
|
case " ":
|
|
1655
1805
|
case "SpaceBar":
|
|
1656
1806
|
case "Enter":
|
|
1657
|
-
|
|
1807
|
+
h.preventDefault(), a(d);
|
|
1658
1808
|
break;
|
|
1659
1809
|
}
|
|
1660
1810
|
};
|
|
1661
|
-
return /* @__PURE__ */
|
|
1811
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1662
1812
|
"li",
|
|
1663
1813
|
{
|
|
1664
1814
|
id: o,
|
|
@@ -1669,82 +1819,86 @@ const Nr = "_numeric_1s7mp_1", Pr = "_errorMessage_1s7mp_7", Ye = {
|
|
|
1669
1819
|
onClick: () => a(o),
|
|
1670
1820
|
className: c,
|
|
1671
1821
|
children: [
|
|
1672
|
-
/* @__PURE__ */
|
|
1673
|
-
t && /* @__PURE__ */
|
|
1822
|
+
/* @__PURE__ */ r.jsx("span", { children: l }),
|
|
1823
|
+
t && /* @__PURE__ */ r.jsx(ht, {})
|
|
1674
1824
|
]
|
|
1675
1825
|
}
|
|
1676
1826
|
);
|
|
1677
|
-
},
|
|
1678
|
-
const i = (
|
|
1679
|
-
|
|
1680
|
-
},
|
|
1681
|
-
return /* @__PURE__ */
|
|
1827
|
+
}, nr = ({ options: e, opened: t, onClose: s, onSelect: n, dropdownId: o, comboboxId: l, selected: c, onClear: a }) => {
|
|
1828
|
+
const i = (h) => {
|
|
1829
|
+
n(h), s(), ye(l);
|
|
1830
|
+
}, d = E([Me.dropdown, { [Me.dropdown__opened]: t }]);
|
|
1831
|
+
return /* @__PURE__ */ r.jsx(
|
|
1682
1832
|
"ul",
|
|
1683
1833
|
{
|
|
1684
1834
|
role: "listbox",
|
|
1685
1835
|
id: o,
|
|
1686
1836
|
tabIndex: -1,
|
|
1687
|
-
onKeyDown: (
|
|
1688
|
-
className:
|
|
1689
|
-
children: e.map((
|
|
1690
|
-
|
|
1837
|
+
onKeyDown: (h) => lt({ e: h, options: e, onClose: s }),
|
|
1838
|
+
className: d,
|
|
1839
|
+
children: e.map((h) => /* @__PURE__ */ r.jsx(
|
|
1840
|
+
tr,
|
|
1691
1841
|
{
|
|
1692
|
-
value:
|
|
1693
|
-
onSelect: () => i(
|
|
1842
|
+
value: h,
|
|
1843
|
+
onSelect: () => i(h.id),
|
|
1694
1844
|
onClear: a,
|
|
1695
|
-
selected:
|
|
1845
|
+
selected: h.id === (c == null ? void 0 : c.id)
|
|
1696
1846
|
},
|
|
1697
|
-
|
|
1847
|
+
h.id
|
|
1698
1848
|
))
|
|
1699
1849
|
}
|
|
1700
1850
|
);
|
|
1701
1851
|
};
|
|
1702
|
-
function
|
|
1852
|
+
function sr({
|
|
1703
1853
|
name: e,
|
|
1704
1854
|
options: t,
|
|
1705
|
-
initialValues:
|
|
1706
|
-
defaultValue:
|
|
1855
|
+
initialValues: s,
|
|
1856
|
+
defaultValue: n
|
|
1707
1857
|
}) {
|
|
1708
|
-
var l
|
|
1858
|
+
var l;
|
|
1709
1859
|
let o;
|
|
1710
|
-
|
|
1860
|
+
if (s && Object.prototype.hasOwnProperty.call(s, e)) {
|
|
1861
|
+
const c = s[e];
|
|
1862
|
+
o = (l = c == null ? void 0 : c.id) != null ? l : c;
|
|
1863
|
+
}
|
|
1864
|
+
return !(s != null && s[e]) && n && typeof n == "string" && (o = n), t.find((c) => c.id === o);
|
|
1711
1865
|
}
|
|
1712
|
-
function
|
|
1866
|
+
function rr({
|
|
1713
1867
|
name: e,
|
|
1714
1868
|
defaultValue: t,
|
|
1715
|
-
onChange:
|
|
1716
|
-
options:
|
|
1869
|
+
onChange: s,
|
|
1870
|
+
options: n
|
|
1717
1871
|
}) {
|
|
1718
|
-
const { onChangeFormInput: o, initialValues: l } =
|
|
1719
|
-
const
|
|
1720
|
-
|
|
1721
|
-
},
|
|
1722
|
-
|
|
1723
|
-
},
|
|
1724
|
-
i(!1),
|
|
1872
|
+
const { onChangeFormInput: o, initialValues: l } = ae(ie), c = sr({ name: e, options: n, defaultValue: t, initialValues: l }), [a, i] = I(!1), [d, h] = I(c), p = () => i(!1), _ = () => i(!a), w = (k) => {
|
|
1873
|
+
const g = n.find((C) => C.id === k);
|
|
1874
|
+
h(g), s == null || s(g), o == null || o({ name: e, value: g == null ? void 0 : g.id });
|
|
1875
|
+
}, x = () => {
|
|
1876
|
+
h(void 0), s == null || s(void 0);
|
|
1877
|
+
}, j = se(() => {
|
|
1878
|
+
i(!1), h(c), o == null || o({ name: e, value: c == null ? void 0 : c.id });
|
|
1725
1879
|
}, [e]);
|
|
1726
|
-
return
|
|
1727
|
-
selected:
|
|
1880
|
+
return we(j), {
|
|
1881
|
+
selected: d,
|
|
1728
1882
|
opened: a,
|
|
1729
|
-
handleClear:
|
|
1730
|
-
handleClose:
|
|
1883
|
+
handleClear: x,
|
|
1884
|
+
handleClose: p,
|
|
1731
1885
|
handleToggle: _,
|
|
1732
|
-
handleSelect:
|
|
1886
|
+
handleSelect: w
|
|
1733
1887
|
};
|
|
1734
1888
|
}
|
|
1735
|
-
const
|
|
1736
|
-
var _ =
|
|
1889
|
+
const Uo = (p) => {
|
|
1890
|
+
var _ = p, {
|
|
1737
1891
|
options: e,
|
|
1738
1892
|
onChange: t,
|
|
1739
|
-
name:
|
|
1740
|
-
label:
|
|
1893
|
+
name: s,
|
|
1894
|
+
label: n,
|
|
1741
1895
|
defaultValue: o,
|
|
1742
1896
|
id: l,
|
|
1743
1897
|
placeholder: c = "Not selected",
|
|
1744
1898
|
required: a = !1,
|
|
1745
1899
|
disabled: i = !1,
|
|
1746
|
-
className:
|
|
1747
|
-
} = _,
|
|
1900
|
+
className: d
|
|
1901
|
+
} = _, h = v(_, [
|
|
1748
1902
|
"options",
|
|
1749
1903
|
"onChange",
|
|
1750
1904
|
"name",
|
|
@@ -1756,110 +1910,110 @@ const Mo = (x) => {
|
|
|
1756
1910
|
"disabled",
|
|
1757
1911
|
"className"
|
|
1758
1912
|
]);
|
|
1759
|
-
const
|
|
1913
|
+
const w = ee(null), { elementId: x, dropdownId: j } = ce(l), { handleClear: k, handleClose: g, handleSelect: C, handleToggle: L, selected: A, opened: y } = rr({
|
|
1760
1914
|
options: e,
|
|
1761
1915
|
onChange: t,
|
|
1762
1916
|
defaultValue: o,
|
|
1763
|
-
name:
|
|
1764
|
-
}), $ =
|
|
1765
|
-
return Ee({ ref:
|
|
1766
|
-
/* @__PURE__ */
|
|
1767
|
-
/* @__PURE__ */
|
|
1768
|
-
|
|
1917
|
+
name: s
|
|
1918
|
+
}), $ = E([pt.wrapper, d]);
|
|
1919
|
+
return Ee({ ref: w, onClickOutsideHandler: g }), Ie({ keyCode: "Escape", ref: w, onKeyPress: g }), /* @__PURE__ */ r.jsxs("div", b(f({ ref: w }, h), { className: $, children: [
|
|
1920
|
+
/* @__PURE__ */ r.jsx(ue, { label: n, required: a, inputId: x }),
|
|
1921
|
+
/* @__PURE__ */ r.jsx(
|
|
1922
|
+
er,
|
|
1769
1923
|
{
|
|
1770
|
-
name:
|
|
1771
|
-
opened:
|
|
1772
|
-
comboboxId:
|
|
1773
|
-
dropdownId:
|
|
1774
|
-
onClick:
|
|
1775
|
-
selected:
|
|
1924
|
+
name: s,
|
|
1925
|
+
opened: y,
|
|
1926
|
+
comboboxId: x,
|
|
1927
|
+
dropdownId: j,
|
|
1928
|
+
onClick: L,
|
|
1929
|
+
selected: A,
|
|
1776
1930
|
placeholder: c,
|
|
1777
1931
|
disabled: i,
|
|
1778
1932
|
required: a
|
|
1779
1933
|
}
|
|
1780
1934
|
),
|
|
1781
|
-
/* @__PURE__ */
|
|
1782
|
-
|
|
1935
|
+
/* @__PURE__ */ r.jsx(
|
|
1936
|
+
nr,
|
|
1783
1937
|
{
|
|
1784
1938
|
options: e,
|
|
1785
|
-
selected:
|
|
1786
|
-
opened:
|
|
1787
|
-
onClose:
|
|
1788
|
-
dropdownId:
|
|
1789
|
-
comboboxId:
|
|
1790
|
-
onSelect:
|
|
1791
|
-
onClear:
|
|
1939
|
+
selected: A,
|
|
1940
|
+
opened: y,
|
|
1941
|
+
onClose: g,
|
|
1942
|
+
dropdownId: j,
|
|
1943
|
+
comboboxId: x,
|
|
1944
|
+
onSelect: C,
|
|
1945
|
+
onClear: k
|
|
1792
1946
|
}
|
|
1793
1947
|
)
|
|
1794
1948
|
] }));
|
|
1795
1949
|
};
|
|
1796
|
-
function
|
|
1950
|
+
function or({
|
|
1797
1951
|
value: e,
|
|
1798
1952
|
required: t,
|
|
1799
|
-
validator:
|
|
1953
|
+
validator: s
|
|
1800
1954
|
}) {
|
|
1801
|
-
return t && !
|
|
1955
|
+
return t && !s && !e.length ? !1 : s && typeof s == "function" ? s(e) : s && typeof s == "object" ? new RegExp(s.regexp, s == null ? void 0 : s.flags).test(e) : !0;
|
|
1802
1956
|
}
|
|
1803
|
-
function
|
|
1957
|
+
function cr({
|
|
1804
1958
|
name: e,
|
|
1805
1959
|
initialValues: t,
|
|
1806
|
-
defaultValue:
|
|
1960
|
+
defaultValue: s
|
|
1807
1961
|
}) {
|
|
1808
|
-
return t
|
|
1962
|
+
return t != null && t[e] ? t[e].toString() : s && typeof s == "string" ? s : "";
|
|
1809
1963
|
}
|
|
1810
|
-
function
|
|
1964
|
+
function lr({
|
|
1811
1965
|
name: e,
|
|
1812
1966
|
defaultValue: t,
|
|
1813
|
-
onChange:
|
|
1814
|
-
onClear:
|
|
1967
|
+
onChange: s,
|
|
1968
|
+
onClear: n,
|
|
1815
1969
|
required: o,
|
|
1816
1970
|
validator: l
|
|
1817
1971
|
}) {
|
|
1818
|
-
const { onChangeFormInput: c, initialValues: a } =
|
|
1819
|
-
const
|
|
1820
|
-
|
|
1821
|
-
},
|
|
1822
|
-
|
|
1823
|
-
},
|
|
1824
|
-
|
|
1825
|
-
}, [e]),
|
|
1826
|
-
|
|
1972
|
+
const { onChangeFormInput: c, initialValues: a } = ae(ie), i = cr({ initialValues: a, defaultValue: t, name: e }), [d, h] = I(i), [p, _] = I(!0), [w, x] = I(!1), j = (L) => {
|
|
1973
|
+
const A = L.target.value, y = or({ value: A, required: o, validator: l });
|
|
1974
|
+
h(A), _(y), c == null || c({ name: e, value: A, valid: y }), s == null || s(L);
|
|
1975
|
+
}, k = () => {
|
|
1976
|
+
h(""), _(!0), c == null || c({ name: e, value: "", valid: !0 }), n == null || n();
|
|
1977
|
+
}, g = se(() => {
|
|
1978
|
+
h(i), _(!0), c == null || c({ name: e, value: i, valid: !0 });
|
|
1979
|
+
}, [e]), C = () => {
|
|
1980
|
+
x(!w);
|
|
1827
1981
|
};
|
|
1828
|
-
return
|
|
1829
|
-
value:
|
|
1830
|
-
valid:
|
|
1831
|
-
passwordShown:
|
|
1832
|
-
handleChange:
|
|
1833
|
-
handleClear:
|
|
1834
|
-
togglePassword:
|
|
1982
|
+
return we(g), {
|
|
1983
|
+
value: d,
|
|
1984
|
+
valid: p,
|
|
1985
|
+
passwordShown: w,
|
|
1986
|
+
handleChange: j,
|
|
1987
|
+
handleClear: k,
|
|
1988
|
+
togglePassword: C
|
|
1835
1989
|
};
|
|
1836
1990
|
}
|
|
1837
|
-
const
|
|
1838
|
-
wrapper:
|
|
1839
|
-
errorMessage:
|
|
1840
|
-
},
|
|
1841
|
-
var $ =
|
|
1991
|
+
const ar = "_wrapper_bu2uu_1", ir = "_errorMessage_bu2uu_7", Je = {
|
|
1992
|
+
wrapper: ar,
|
|
1993
|
+
errorMessage: ir
|
|
1994
|
+
}, Ko = (y) => {
|
|
1995
|
+
var $ = y, {
|
|
1842
1996
|
name: e,
|
|
1843
1997
|
label: t,
|
|
1844
|
-
errorMessage:
|
|
1845
|
-
defaultValue:
|
|
1998
|
+
errorMessage: s,
|
|
1999
|
+
defaultValue: n,
|
|
1846
2000
|
onChange: o,
|
|
1847
2001
|
onBlur: l,
|
|
1848
2002
|
onFocus: c,
|
|
1849
2003
|
onClear: a,
|
|
1850
2004
|
validator: i,
|
|
1851
|
-
maxLength:
|
|
1852
|
-
id:
|
|
1853
|
-
tabIndex:
|
|
2005
|
+
maxLength: d,
|
|
2006
|
+
id: h,
|
|
2007
|
+
tabIndex: p,
|
|
1854
2008
|
placeholder: _ = "Type here...",
|
|
1855
|
-
disabled:
|
|
1856
|
-
required:
|
|
1857
|
-
clearable:
|
|
1858
|
-
readOnly:
|
|
1859
|
-
autoComplete:
|
|
1860
|
-
type:
|
|
1861
|
-
className:
|
|
1862
|
-
} = $,
|
|
2009
|
+
disabled: w = !1,
|
|
2010
|
+
required: x = !1,
|
|
2011
|
+
clearable: j = !0,
|
|
2012
|
+
readOnly: k = !1,
|
|
2013
|
+
autoComplete: g = "off",
|
|
2014
|
+
type: C = "text",
|
|
2015
|
+
className: L
|
|
2016
|
+
} = $, A = v($, [
|
|
1863
2017
|
"name",
|
|
1864
2018
|
"label",
|
|
1865
2019
|
"errorMessage",
|
|
@@ -1881,206 +2035,123 @@ const Yr = "_wrapper_bu2uu_1", Jr = "_errorMessage_bu2uu_7", Je = {
|
|
|
1881
2035
|
"type",
|
|
1882
2036
|
"className"
|
|
1883
2037
|
]);
|
|
1884
|
-
const { value:
|
|
1885
|
-
defaultValue:
|
|
2038
|
+
const { value: z, valid: S, handleChange: X, handleClear: te, passwordShown: O, togglePassword: G } = lr({
|
|
2039
|
+
defaultValue: n,
|
|
1886
2040
|
name: e,
|
|
1887
2041
|
onChange: o,
|
|
1888
2042
|
onClear: a,
|
|
1889
|
-
required:
|
|
2043
|
+
required: x,
|
|
1890
2044
|
validator: i
|
|
1891
|
-
}), { elementId:
|
|
1892
|
-
return /* @__PURE__ */
|
|
1893
|
-
/* @__PURE__ */
|
|
1894
|
-
/* @__PURE__ */
|
|
1895
|
-
|
|
2045
|
+
}), { elementId: H, errorId: V } = ce(h), R = C === "password", W = E([Je.wrapper, L]);
|
|
2046
|
+
return /* @__PURE__ */ r.jsxs("div", b(f({}, A), { className: W, children: [
|
|
2047
|
+
/* @__PURE__ */ r.jsx(ue, { label: t, required: x, inputId: H }),
|
|
2048
|
+
/* @__PURE__ */ r.jsxs(
|
|
2049
|
+
_t,
|
|
1896
2050
|
{
|
|
1897
|
-
id:
|
|
2051
|
+
id: H,
|
|
1898
2052
|
name: e,
|
|
1899
|
-
type:
|
|
1900
|
-
disabled:
|
|
2053
|
+
type: O ? "text" : C,
|
|
2054
|
+
disabled: w,
|
|
1901
2055
|
placeholder: _,
|
|
1902
|
-
required:
|
|
1903
|
-
readOnly:
|
|
1904
|
-
autoComplete:
|
|
1905
|
-
"aria-invalid": !
|
|
1906
|
-
"aria-errormessage":
|
|
1907
|
-
"aria-readonly":
|
|
1908
|
-
value:
|
|
1909
|
-
onChange:
|
|
1910
|
-
maxLength:
|
|
2056
|
+
required: x,
|
|
2057
|
+
readOnly: k,
|
|
2058
|
+
autoComplete: g,
|
|
2059
|
+
"aria-invalid": !S,
|
|
2060
|
+
"aria-errormessage": V,
|
|
2061
|
+
"aria-readonly": k,
|
|
2062
|
+
value: z,
|
|
2063
|
+
onChange: X,
|
|
2064
|
+
maxLength: d,
|
|
1911
2065
|
onBlur: l,
|
|
1912
2066
|
onFocus: c,
|
|
1913
|
-
tabIndex:
|
|
2067
|
+
tabIndex: p,
|
|
1914
2068
|
children: [
|
|
1915
|
-
/* @__PURE__ */
|
|
1916
|
-
|
|
1917
|
-
|
|
2069
|
+
/* @__PURE__ */ r.jsxs("span", { children: [
|
|
2070
|
+
j && /* @__PURE__ */ r.jsx(
|
|
2071
|
+
K,
|
|
1918
2072
|
{
|
|
1919
|
-
view:
|
|
1920
|
-
onClick:
|
|
2073
|
+
view: D.Inner,
|
|
2074
|
+
onClick: te,
|
|
1921
2075
|
label: `Clear input for ${t}`,
|
|
1922
|
-
icon:
|
|
1923
|
-
disabled:
|
|
2076
|
+
icon: m.Remove,
|
|
2077
|
+
disabled: w
|
|
1924
2078
|
}
|
|
1925
2079
|
),
|
|
1926
|
-
|
|
1927
|
-
|
|
2080
|
+
R && /* @__PURE__ */ r.jsx(
|
|
2081
|
+
K,
|
|
1928
2082
|
{
|
|
1929
|
-
onClick:
|
|
1930
|
-
view:
|
|
2083
|
+
onClick: G,
|
|
2084
|
+
view: D.Inner,
|
|
1931
2085
|
label: "Toggle password visibility",
|
|
1932
|
-
icon:
|
|
1933
|
-
disabled:
|
|
2086
|
+
icon: O ? m.Hide : m.Show,
|
|
2087
|
+
disabled: w
|
|
1934
2088
|
}
|
|
1935
2089
|
)
|
|
1936
2090
|
] }),
|
|
1937
|
-
/* @__PURE__ */
|
|
2091
|
+
/* @__PURE__ */ r.jsx(at, { errorId: V, message: s, visible: !S, className: Je.errorMessage })
|
|
1938
2092
|
]
|
|
1939
2093
|
}
|
|
1940
2094
|
)
|
|
1941
2095
|
] }));
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
return "Everything is okay";
|
|
1954
|
-
case P.Help:
|
|
1955
|
-
return "Useful tip";
|
|
1956
|
-
default:
|
|
1957
|
-
return "Alert";
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
|
-
function Qr(e, t) {
|
|
1961
|
-
if (t)
|
|
1962
|
-
return t;
|
|
1963
|
-
switch (e) {
|
|
1964
|
-
case P.Info:
|
|
1965
|
-
return j.Info;
|
|
1966
|
-
case P.Warning:
|
|
1967
|
-
return j.Warning;
|
|
1968
|
-
case P.Error:
|
|
1969
|
-
return j.Error;
|
|
1970
|
-
case P.Success:
|
|
1971
|
-
return j.CheckboxChecked;
|
|
1972
|
-
case P.Help:
|
|
1973
|
-
return j.Help;
|
|
1974
|
-
default:
|
|
1975
|
-
return;
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
const Zr = "_wrapper_12fi0_54", es = "_wrapper__closing_12fi0_64", ts = "_content_12fi0_70", ns = "_content_button_12fi0_90", pe = {
|
|
1979
|
-
wrapper: Zr,
|
|
1980
|
-
wrapper__closing: es,
|
|
1981
|
-
content: ts,
|
|
1982
|
-
content_button: ns
|
|
1983
|
-
}, Io = (h) => {
|
|
1984
|
-
var d = h, {
|
|
1985
|
-
isOpened: e,
|
|
1986
|
-
onClose: t,
|
|
1987
|
-
title: n,
|
|
1988
|
-
message: r,
|
|
1989
|
-
mode: o = P.Info,
|
|
1990
|
-
icon: l,
|
|
1991
|
-
autoClose: c = !1,
|
|
1992
|
-
autoCloseDelay: a = 3e3
|
|
1993
|
-
} = d, i = p(d, [
|
|
1994
|
-
"isOpened",
|
|
1995
|
-
"onClose",
|
|
1996
|
-
"title",
|
|
1997
|
-
"message",
|
|
1998
|
-
"mode",
|
|
1999
|
-
"icon",
|
|
2000
|
-
"autoClose",
|
|
2001
|
-
"autoCloseDelay"
|
|
2002
|
-
]);
|
|
2003
|
-
const x = xt(e), _ = x && !e;
|
|
2004
|
-
if (ht({
|
|
2005
|
-
isOpened: e,
|
|
2006
|
-
onClose: t,
|
|
2007
|
-
autoClose: c,
|
|
2008
|
-
autoCloseDelay: a
|
|
2009
|
-
}), !x) return null;
|
|
2010
|
-
const m = Xr(o, n), f = Qr(o, l);
|
|
2011
|
-
return /* @__PURE__ */ s.jsx(De, { children: /* @__PURE__ */ s.jsx("div", { className: y([pe.wrapper, { [pe.wrapper__closing]: _ }]), children: /* @__PURE__ */ s.jsxs("div", v(b({}, i), { className: pe.content, children: [
|
|
2012
|
-
/* @__PURE__ */ s.jsx(
|
|
2013
|
-
J,
|
|
2014
|
-
{
|
|
2015
|
-
icon: j.Cancel,
|
|
2016
|
-
view: H.Icon,
|
|
2017
|
-
label: "Close alert popup",
|
|
2018
|
-
onClick: t,
|
|
2019
|
-
className: pe.content_button
|
|
2020
|
-
}
|
|
2021
|
-
),
|
|
2022
|
-
/* @__PURE__ */ s.jsx("header", { children: /* @__PURE__ */ s.jsx(it, { icon: f, as: "h3", children: m }) }),
|
|
2023
|
-
/* @__PURE__ */ s.jsx("p", { children: r })
|
|
2024
|
-
] })) }) });
|
|
2025
|
-
}, rs = "_dialog_4mo9j_54", ss = "_dialog__closing_4mo9j_69", os = "_layout_4mo9j_75", cs = "_layout_button_4mo9j_95", je = {
|
|
2026
|
-
dialog: rs,
|
|
2027
|
-
dialog__closing: ss,
|
|
2028
|
-
layout: os,
|
|
2029
|
-
layout_button: cs
|
|
2030
|
-
}, Ao = (c) => {
|
|
2031
|
-
var a = c, { isOpened: e, onClose: t, title: n, children: r, icon: o } = a, l = p(a, ["isOpened", "onClose", "title", "children", "icon"]);
|
|
2032
|
-
const i = xt(e), h = i && !e, d = Y(null);
|
|
2033
|
-
return ur({ modalRef: d, isOpened: e }), Ie({ keyCode: "Escape", ref: d, onKeyPress: t }), i ? /* @__PURE__ */ s.jsx(De, { children: /* @__PURE__ */ s.jsx("div", { className: y([je.dialog, { [je.dialog__closing]: h }]), children: /* @__PURE__ */ s.jsxs("div", v(b({ ref: d, role: "dialog", "aria-modal": "true" }, l), { className: je.layout, children: [
|
|
2034
|
-
/* @__PURE__ */ s.jsx(
|
|
2035
|
-
J,
|
|
2096
|
+
}, dr = "_dialog_4mo9j_54", ur = "_dialog__closing_4mo9j_69", hr = "_layout_4mo9j_75", _r = "_layout_button_4mo9j_95", je = {
|
|
2097
|
+
dialog: dr,
|
|
2098
|
+
dialog__closing: ur,
|
|
2099
|
+
layout: hr,
|
|
2100
|
+
layout_button: _r
|
|
2101
|
+
}, Fo = (c) => {
|
|
2102
|
+
var a = c, { isOpened: e, onClose: t, title: s, children: n, icon: o } = a, l = v(a, ["isOpened", "onClose", "title", "children", "icon"]);
|
|
2103
|
+
const i = ft(e), d = i && !e, h = ee(null);
|
|
2104
|
+
return bs({ modalRef: h, isOpened: e }), Ie({ keyCode: "Escape", ref: h, onKeyPress: t }), i ? /* @__PURE__ */ r.jsx(De, { children: /* @__PURE__ */ r.jsx("div", { className: E([je.dialog, { [je.dialog__closing]: d }]), children: /* @__PURE__ */ r.jsxs("div", b(f({ ref: h, role: "dialog", "aria-modal": "true" }, l), { className: je.layout, children: [
|
|
2105
|
+
/* @__PURE__ */ r.jsx(
|
|
2106
|
+
K,
|
|
2036
2107
|
{
|
|
2037
|
-
icon:
|
|
2038
|
-
view:
|
|
2108
|
+
icon: m.Cancel,
|
|
2109
|
+
view: D.Icon,
|
|
2039
2110
|
label: "Close modal window",
|
|
2040
2111
|
onClick: t,
|
|
2041
2112
|
className: je.layout_button
|
|
2042
2113
|
}
|
|
2043
2114
|
),
|
|
2044
|
-
/* @__PURE__ */
|
|
2045
|
-
/* @__PURE__ */
|
|
2115
|
+
/* @__PURE__ */ r.jsx("header", { children: /* @__PURE__ */ r.jsx(it, { as: "h3", icon: o, children: s }) }),
|
|
2116
|
+
/* @__PURE__ */ r.jsx("div", { children: n })
|
|
2046
2117
|
] })) }) }) : null;
|
|
2047
2118
|
};
|
|
2048
|
-
function
|
|
2119
|
+
function xr(e) {
|
|
2049
2120
|
return e ? Object.keys(e).map((t) => [t, !0]) : [];
|
|
2050
2121
|
}
|
|
2051
|
-
function
|
|
2052
|
-
return (t == null ? void 0 : t.valid) === void 0 ? e : e.map((
|
|
2122
|
+
function fr(e, t) {
|
|
2123
|
+
return (t == null ? void 0 : t.valid) === void 0 ? e : e.map((s) => s[0] !== t.name ? s : [s[0], !!(t != null && t.valid)]);
|
|
2053
2124
|
}
|
|
2054
|
-
function
|
|
2125
|
+
function wr(e) {
|
|
2055
2126
|
return e.every((t) => t[1]);
|
|
2056
2127
|
}
|
|
2057
|
-
function
|
|
2128
|
+
function pr({
|
|
2058
2129
|
initialValues: e,
|
|
2059
2130
|
onReset: t,
|
|
2060
|
-
onSubmit:
|
|
2061
|
-
onClickSubmit:
|
|
2131
|
+
onSubmit: s,
|
|
2132
|
+
onClickSubmit: n
|
|
2062
2133
|
}) {
|
|
2063
|
-
const [o, l] =
|
|
2134
|
+
const [o, l] = I(e), [c, a] = I(xr(e)), [i, d] = I(0);
|
|
2064
2135
|
return {
|
|
2065
|
-
handleInputChange: (
|
|
2066
|
-
const
|
|
2067
|
-
l(
|
|
2136
|
+
handleInputChange: (w) => {
|
|
2137
|
+
const x = b(f({}, o), { [w.name]: w.value });
|
|
2138
|
+
l(x), a(fr(c, w));
|
|
2068
2139
|
},
|
|
2069
|
-
handleSubmit: (
|
|
2070
|
-
|
|
2071
|
-
const
|
|
2072
|
-
|
|
2140
|
+
handleSubmit: (w) => {
|
|
2141
|
+
w.preventDefault();
|
|
2142
|
+
const x = Object.fromEntries(new FormData(w.target)), j = f(f({}, x), o);
|
|
2143
|
+
s == null || s(w), n == null || n(j);
|
|
2073
2144
|
},
|
|
2074
|
-
handleReset: (
|
|
2075
|
-
t == null || t(
|
|
2145
|
+
handleReset: (w) => {
|
|
2146
|
+
t == null || t(w), l(e), d(i + 1);
|
|
2076
2147
|
},
|
|
2077
2148
|
resetSignal: i,
|
|
2078
|
-
valid:
|
|
2149
|
+
valid: wr(c)
|
|
2079
2150
|
};
|
|
2080
2151
|
}
|
|
2081
|
-
const
|
|
2082
|
-
form:
|
|
2083
|
-
buttons:
|
|
2152
|
+
const br = "_form_a5bhb_1", vr = "_buttons_a5bhb_14", ke = {
|
|
2153
|
+
form: br,
|
|
2154
|
+
buttons: vr,
|
|
2084
2155
|
"columns-1": "_columns-1_a5bhb_21",
|
|
2085
2156
|
"buttons-1": "_buttons-1_a5bhb_26",
|
|
2086
2157
|
"columns-2": "_columns-2_a5bhb_30",
|
|
@@ -2093,17 +2164,17 @@ const us = "_form_a5bhb_1", hs = "_buttons_a5bhb_14", we = {
|
|
|
2093
2164
|
"buttons-5": "_buttons-5_a5bhb_62",
|
|
2094
2165
|
"columns-6": "_columns-6_a5bhb_66",
|
|
2095
2166
|
"buttons-6": "_buttons-6_a5bhb_71"
|
|
2096
|
-
},
|
|
2097
|
-
var
|
|
2167
|
+
}, Go = (d) => {
|
|
2168
|
+
var h = d, {
|
|
2098
2169
|
children: e,
|
|
2099
2170
|
initialValues: t,
|
|
2100
|
-
onReset:
|
|
2101
|
-
onSubmit:
|
|
2171
|
+
onReset: s,
|
|
2172
|
+
onSubmit: n,
|
|
2102
2173
|
onClickSubmit: o,
|
|
2103
2174
|
columns: l = 1,
|
|
2104
2175
|
hasReset: c = !0,
|
|
2105
2176
|
className: a
|
|
2106
|
-
} =
|
|
2177
|
+
} = h, i = v(h, [
|
|
2107
2178
|
"children",
|
|
2108
2179
|
"initialValues",
|
|
2109
2180
|
"onReset",
|
|
@@ -2113,105 +2184,105 @@ const us = "_form_a5bhb_1", hs = "_buttons_a5bhb_14", we = {
|
|
|
2113
2184
|
"hasReset",
|
|
2114
2185
|
"className"
|
|
2115
2186
|
]);
|
|
2116
|
-
const { handleInputChange:
|
|
2187
|
+
const { handleInputChange: p, handleSubmit: _, handleReset: w, resetSignal: x, valid: j } = pr({
|
|
2117
2188
|
initialValues: t,
|
|
2118
|
-
onReset:
|
|
2119
|
-
onSubmit:
|
|
2189
|
+
onReset: s,
|
|
2190
|
+
onSubmit: n,
|
|
2120
2191
|
onClickSubmit: o
|
|
2121
|
-
}),
|
|
2122
|
-
return /* @__PURE__ */
|
|
2192
|
+
}), k = l <= 6 && l >= 1 ? l : 1, g = E([ke.form, a]);
|
|
2193
|
+
return /* @__PURE__ */ r.jsx("form", b(f({ onSubmit: _, onReset: w }, i), { className: `${g} ${ke[`columns-${k}`]}`, children: /* @__PURE__ */ r.jsxs(ie.Provider, { value: { onChangeFormInput: p, initialValues: t, resetSignal: x }, children: [
|
|
2123
2194
|
e,
|
|
2124
|
-
/* @__PURE__ */
|
|
2125
|
-
c && /* @__PURE__ */
|
|
2126
|
-
/* @__PURE__ */
|
|
2195
|
+
/* @__PURE__ */ r.jsxs("div", { className: `${ke.buttons} ${ke[`buttons-${k}`]}`, children: [
|
|
2196
|
+
c && /* @__PURE__ */ r.jsx(K, { type: "reset", text: "Reset", icon: m.Clear, view: D.Secondary }),
|
|
2197
|
+
/* @__PURE__ */ r.jsx(K, { type: "submit", text: "Submit", icon: m.Forward, extended: !c, disabled: !j })
|
|
2127
2198
|
] })
|
|
2128
2199
|
] }) }));
|
|
2129
2200
|
};
|
|
2130
|
-
function
|
|
2201
|
+
function mr({
|
|
2131
2202
|
item: e,
|
|
2132
2203
|
columns: t,
|
|
2133
|
-
renderDataItem:
|
|
2204
|
+
renderDataItem: s
|
|
2134
2205
|
}) {
|
|
2135
|
-
const
|
|
2206
|
+
const n = [];
|
|
2136
2207
|
for (const o of t) {
|
|
2137
2208
|
let l;
|
|
2138
|
-
|
|
2209
|
+
s && e[o.field] ? l = s(e, o.field) : e[o.field] ? l = e[o.field].toString() : l = "", n.push(l);
|
|
2139
2210
|
}
|
|
2140
|
-
return
|
|
2211
|
+
return n;
|
|
2141
2212
|
}
|
|
2142
|
-
const
|
|
2143
|
-
cell:
|
|
2144
|
-
},
|
|
2145
|
-
checkbox:
|
|
2146
|
-
checkbox__disabled:
|
|
2147
|
-
checkbox_input:
|
|
2148
|
-
},
|
|
2149
|
-
var i = a, { name: e, label: t, disabled:
|
|
2150
|
-
const { elementId:
|
|
2151
|
-
|
|
2213
|
+
const gr = "_cell_veiud_1", jr = {
|
|
2214
|
+
cell: gr
|
|
2215
|
+
}, kr = ({ value: e }) => /* @__PURE__ */ r.jsx("td", { className: jr.cell, children: e }), Cr = "_checkbox_bpqws_2", yr = "_checkbox__disabled_bpqws_14", Mr = "_checkbox_input_bpqws_26", Ce = {
|
|
2216
|
+
checkbox: Cr,
|
|
2217
|
+
checkbox__disabled: yr,
|
|
2218
|
+
checkbox_input: Mr
|
|
2219
|
+
}, vt = (a) => {
|
|
2220
|
+
var i = a, { name: e, label: t, disabled: s, required: n = !1, onChange: o, checked: l = !1 } = i, c = v(i, ["name", "label", "disabled", "required", "onChange", "checked"]);
|
|
2221
|
+
const { elementId: d } = ce(c == null ? void 0 : c.id), h = E([
|
|
2222
|
+
Ce.checkbox,
|
|
2152
2223
|
{
|
|
2153
|
-
[
|
|
2154
|
-
[
|
|
2224
|
+
[Ce.checkbox__disabled]: !!s,
|
|
2225
|
+
[Ce.checkbox__checked]: l
|
|
2155
2226
|
}
|
|
2156
2227
|
]);
|
|
2157
|
-
return /* @__PURE__ */
|
|
2158
|
-
/* @__PURE__ */
|
|
2228
|
+
return /* @__PURE__ */ r.jsxs("div", { className: h, children: [
|
|
2229
|
+
/* @__PURE__ */ r.jsx(
|
|
2159
2230
|
"input",
|
|
2160
2231
|
{
|
|
2161
|
-
id:
|
|
2232
|
+
id: d,
|
|
2162
2233
|
name: e,
|
|
2163
2234
|
type: "checkbox",
|
|
2164
|
-
disabled:
|
|
2165
|
-
required:
|
|
2235
|
+
disabled: s,
|
|
2236
|
+
required: n,
|
|
2166
2237
|
checked: l,
|
|
2167
2238
|
onChange: o,
|
|
2168
|
-
className:
|
|
2239
|
+
className: Ce.checkbox_input
|
|
2169
2240
|
}
|
|
2170
2241
|
),
|
|
2171
|
-
/* @__PURE__ */
|
|
2172
|
-
|
|
2242
|
+
/* @__PURE__ */ r.jsx(
|
|
2243
|
+
ue,
|
|
2173
2244
|
{
|
|
2174
2245
|
label: t,
|
|
2175
|
-
required:
|
|
2176
|
-
inputId:
|
|
2246
|
+
required: n,
|
|
2247
|
+
inputId: d,
|
|
2177
2248
|
isTextHidden: !0,
|
|
2178
2249
|
iconPosition: "left",
|
|
2179
|
-
icon: l ?
|
|
2250
|
+
icon: l ? m.CheckboxChecked : m.CheckboxUnchecked
|
|
2180
2251
|
}
|
|
2181
2252
|
)
|
|
2182
2253
|
] });
|
|
2183
|
-
},
|
|
2184
|
-
cell:
|
|
2185
|
-
},
|
|
2254
|
+
}, Er = "_cell_veiud_1", Ir = {
|
|
2255
|
+
cell: Er
|
|
2256
|
+
}, Lr = ({ rowId: e, isRowSelected: t, selectRowById: s, deselectRowById: n, disabled: o }) => {
|
|
2186
2257
|
const l = (c) => {
|
|
2187
2258
|
const { checked: a } = c.target;
|
|
2188
|
-
a ?
|
|
2259
|
+
a ? s(e) : n(e);
|
|
2189
2260
|
};
|
|
2190
|
-
return /* @__PURE__ */
|
|
2191
|
-
},
|
|
2192
|
-
row:
|
|
2193
|
-
row__selected:
|
|
2194
|
-
},
|
|
2261
|
+
return /* @__PURE__ */ r.jsx("td", { className: Ir.cell, children: /* @__PURE__ */ r.jsx(vt, { label: "Select row", onChange: l, id: `select_row_${e}`, checked: t, disabled: o }) });
|
|
2262
|
+
}, Ar = "_row_1qhna_1", Sr = "_row__selected_1qhna_5", Xe = {
|
|
2263
|
+
row: Ar,
|
|
2264
|
+
row__selected: Sr
|
|
2265
|
+
}, Rr = ({ rowId: e, selectRowById: t, deselectRowById: s, selectable: n, values: o, selectedIds: l, disabled: c }) => {
|
|
2195
2266
|
const a = l.includes(e);
|
|
2196
|
-
return /* @__PURE__ */
|
|
2197
|
-
|
|
2198
|
-
|
|
2267
|
+
return /* @__PURE__ */ r.jsxs("tr", { className: E([Xe.row, { [Xe.row__selected]: a }]), children: [
|
|
2268
|
+
n && /* @__PURE__ */ r.jsx(
|
|
2269
|
+
Lr,
|
|
2199
2270
|
{
|
|
2200
2271
|
rowId: e,
|
|
2201
2272
|
selectRowById: t,
|
|
2202
|
-
deselectRowById:
|
|
2273
|
+
deselectRowById: s,
|
|
2203
2274
|
isRowSelected: a,
|
|
2204
2275
|
disabled: c
|
|
2205
2276
|
}
|
|
2206
2277
|
),
|
|
2207
|
-
o.map((i,
|
|
2278
|
+
o.map((i, d) => /* @__PURE__ */ r.jsx(kr, { value: i }, `row_${d}`))
|
|
2208
2279
|
] });
|
|
2209
|
-
},
|
|
2210
|
-
body:
|
|
2211
|
-
},
|
|
2212
|
-
const i =
|
|
2213
|
-
return /* @__PURE__ */
|
|
2214
|
-
|
|
2280
|
+
}, Tr = "_body_1gm9g_1", zr = {
|
|
2281
|
+
body: Tr
|
|
2282
|
+
}, $r = ({ selectRowById: e, deselectRowById: t, renderDataItem: s, selectedIds: n, selectable: o, data: l, columns: c }) => /* @__PURE__ */ r.jsx("tbody", { className: zr.body, children: l.map((a) => {
|
|
2283
|
+
const i = mr({ item: a, columns: c, renderDataItem: s });
|
|
2284
|
+
return /* @__PURE__ */ r.jsx(
|
|
2285
|
+
Rr,
|
|
2215
2286
|
{
|
|
2216
2287
|
rowId: a.id,
|
|
2217
2288
|
disabled: a == null ? void 0 : a.disabled,
|
|
@@ -2219,71 +2290,71 @@ const xs = "_cell_veiud_1", fs = {
|
|
|
2219
2290
|
deselectRowById: t,
|
|
2220
2291
|
selectable: o,
|
|
2221
2292
|
values: i,
|
|
2222
|
-
selectedIds:
|
|
2293
|
+
selectedIds: n
|
|
2223
2294
|
},
|
|
2224
2295
|
a.id
|
|
2225
2296
|
);
|
|
2226
|
-
}) }),
|
|
2227
|
-
column:
|
|
2228
|
-
column__first:
|
|
2229
|
-
column__highlighted:
|
|
2230
|
-
},
|
|
2231
|
-
t && /* @__PURE__ */
|
|
2232
|
-
e.map((
|
|
2297
|
+
}) }), Br = "_column_s4wq6_1", Dr = "_column__first_s4wq6_4", Hr = "_column__highlighted_s4wq6_7", xe = {
|
|
2298
|
+
column: Br,
|
|
2299
|
+
column__first: Dr,
|
|
2300
|
+
column__highlighted: Hr
|
|
2301
|
+
}, Nr = ({ columns: e, selectable: t }) => /* @__PURE__ */ r.jsxs("colgroup", { children: [
|
|
2302
|
+
t && /* @__PURE__ */ r.jsx("col", { className: E([xe.column, xe.column__first]) }),
|
|
2303
|
+
e.map((s, n) => /* @__PURE__ */ r.jsx(
|
|
2233
2304
|
"col",
|
|
2234
2305
|
{
|
|
2235
|
-
className:
|
|
2236
|
-
|
|
2237
|
-
|
|
2306
|
+
className: E([
|
|
2307
|
+
xe.column,
|
|
2308
|
+
s == null ? void 0 : s.className,
|
|
2238
2309
|
{
|
|
2239
|
-
[
|
|
2240
|
-
[
|
|
2310
|
+
[xe.column__first]: n === 0 && !t,
|
|
2311
|
+
[xe.column__highlighted]: !!(s != null && s.highlighted)
|
|
2241
2312
|
}
|
|
2242
2313
|
])
|
|
2243
2314
|
},
|
|
2244
|
-
|
|
2315
|
+
s == null ? void 0 : s.title
|
|
2245
2316
|
))
|
|
2246
|
-
] }),
|
|
2247
|
-
const { elementId:
|
|
2248
|
-
l(
|
|
2317
|
+
] }), Pr = ({ data: e, id: t, onSelect: s }) => {
|
|
2318
|
+
const { elementId: n } = ce(t), [o, l] = I([]), c = e.map((x) => x.id), a = c.length === o.length, i = e.some((x) => x == null ? void 0 : x.disabled), d = (x) => {
|
|
2319
|
+
l(x), s == null || s(x);
|
|
2249
2320
|
};
|
|
2250
2321
|
return {
|
|
2251
|
-
elementId:
|
|
2322
|
+
elementId: n,
|
|
2252
2323
|
isAllSelected: a,
|
|
2253
2324
|
isAllCheckboxDisabled: i,
|
|
2254
2325
|
selectedIds: o,
|
|
2255
2326
|
handleSelectAll: () => {
|
|
2256
|
-
|
|
2327
|
+
d(c);
|
|
2257
2328
|
},
|
|
2258
2329
|
handleDeselectAll: () => {
|
|
2259
|
-
|
|
2330
|
+
d([]);
|
|
2260
2331
|
},
|
|
2261
|
-
handleSelectRowById: (
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2332
|
+
handleSelectRowById: (x) => {
|
|
2333
|
+
const j = [...o, x];
|
|
2334
|
+
d(j);
|
|
2264
2335
|
},
|
|
2265
|
-
handleDeselectRowById: (
|
|
2266
|
-
const
|
|
2267
|
-
|
|
2336
|
+
handleDeselectRowById: (x) => {
|
|
2337
|
+
const j = o.filter((k) => k !== x);
|
|
2338
|
+
d(j);
|
|
2268
2339
|
}
|
|
2269
2340
|
};
|
|
2270
|
-
},
|
|
2271
|
-
grid:
|
|
2272
|
-
grid_caption:
|
|
2273
|
-
},
|
|
2274
|
-
headerCell:
|
|
2275
|
-
},
|
|
2276
|
-
var
|
|
2277
|
-
return /* @__PURE__ */
|
|
2278
|
-
},
|
|
2279
|
-
headerCell:
|
|
2280
|
-
},
|
|
2341
|
+
}, Or = "_grid_ion0k_1", Vr = "_grid_caption_ion0k_4", Qe = {
|
|
2342
|
+
grid: Or,
|
|
2343
|
+
grid_caption: Vr
|
|
2344
|
+
}, Wr = "_headerCell_wd2ft_1", Ur = {
|
|
2345
|
+
headerCell: Wr
|
|
2346
|
+
}, Kr = ({ title: e, component: t }) => {
|
|
2347
|
+
var s;
|
|
2348
|
+
return /* @__PURE__ */ r.jsx("th", { className: Ur.headerCell, children: (s = t != null ? t : e) != null ? s : "" });
|
|
2349
|
+
}, Fr = "_headerCell_wd2ft_1", Gr = {
|
|
2350
|
+
headerCell: Fr
|
|
2351
|
+
}, qr = ({ gridId: e, isAllSelected: t, selectAll: s, deselectAll: n, disabled: o }) => {
|
|
2281
2352
|
const l = (c) => {
|
|
2282
2353
|
const { checked: a } = c.target;
|
|
2283
|
-
a ?
|
|
2354
|
+
a ? s() : n();
|
|
2284
2355
|
};
|
|
2285
|
-
return /* @__PURE__ */
|
|
2286
|
-
|
|
2356
|
+
return /* @__PURE__ */ r.jsx("th", { className: Gr.headerCell, children: /* @__PURE__ */ r.jsx(
|
|
2357
|
+
vt,
|
|
2287
2358
|
{
|
|
2288
2359
|
label: "Select all rows",
|
|
2289
2360
|
onChange: l,
|
|
@@ -2292,93 +2363,93 @@ const xs = "_cell_veiud_1", fs = {
|
|
|
2292
2363
|
disabled: o
|
|
2293
2364
|
}
|
|
2294
2365
|
) });
|
|
2295
|
-
},
|
|
2296
|
-
head:
|
|
2297
|
-
head_row:
|
|
2298
|
-
},
|
|
2366
|
+
}, Yr = "_head_1jka0_1", Jr = "_head_row_1jka0_11", Ze = {
|
|
2367
|
+
head: Yr,
|
|
2368
|
+
head_row: Jr
|
|
2369
|
+
}, Xr = ({
|
|
2299
2370
|
columns: e,
|
|
2300
2371
|
gridId: t,
|
|
2301
|
-
selectAll:
|
|
2302
|
-
deselectAll:
|
|
2372
|
+
selectAll: s,
|
|
2373
|
+
deselectAll: n,
|
|
2303
2374
|
selectable: o,
|
|
2304
2375
|
isAllSelected: l,
|
|
2305
2376
|
isAllCheckboxDisabled: c = !1
|
|
2306
|
-
}) => /* @__PURE__ */
|
|
2307
|
-
o && /* @__PURE__ */
|
|
2308
|
-
|
|
2377
|
+
}) => /* @__PURE__ */ r.jsx("thead", { className: Ze.head, children: /* @__PURE__ */ r.jsxs("tr", { className: Ze.head_row, children: [
|
|
2378
|
+
o && /* @__PURE__ */ r.jsx(
|
|
2379
|
+
qr,
|
|
2309
2380
|
{
|
|
2310
2381
|
isAllSelected: l,
|
|
2311
2382
|
disabled: c,
|
|
2312
2383
|
gridId: t,
|
|
2313
|
-
selectAll:
|
|
2314
|
-
deselectAll:
|
|
2384
|
+
selectAll: s,
|
|
2385
|
+
deselectAll: n
|
|
2315
2386
|
}
|
|
2316
2387
|
),
|
|
2317
|
-
e.map((a) => /* @__PURE__ */
|
|
2318
|
-
] }) }),
|
|
2319
|
-
var
|
|
2388
|
+
e.map((a) => /* @__PURE__ */ r.jsx(Kr, { title: a.title, component: a.component }, `${a.title}_${t}`))
|
|
2389
|
+
] }) }), qo = (d) => {
|
|
2390
|
+
var h = d, { columns: e, data: t, id: s, onSelect: n, renderDataItem: o, caption: l, selectable: c = !1, className: a } = h, i = v(h, ["columns", "data", "id", "onSelect", "renderDataItem", "caption", "selectable", "className"]);
|
|
2320
2391
|
const {
|
|
2321
|
-
elementId:
|
|
2392
|
+
elementId: p,
|
|
2322
2393
|
handleSelectAll: _,
|
|
2323
|
-
handleDeselectAll:
|
|
2324
|
-
isAllCheckboxDisabled:
|
|
2325
|
-
isAllSelected:
|
|
2326
|
-
handleDeselectRowById:
|
|
2327
|
-
handleSelectRowById:
|
|
2328
|
-
selectedIds:
|
|
2329
|
-
} =
|
|
2330
|
-
return /* @__PURE__ */
|
|
2331
|
-
l && /* @__PURE__ */
|
|
2332
|
-
/* @__PURE__ */
|
|
2333
|
-
/* @__PURE__ */
|
|
2334
|
-
|
|
2394
|
+
handleDeselectAll: w,
|
|
2395
|
+
isAllCheckboxDisabled: x,
|
|
2396
|
+
isAllSelected: j,
|
|
2397
|
+
handleDeselectRowById: k,
|
|
2398
|
+
handleSelectRowById: g,
|
|
2399
|
+
selectedIds: C
|
|
2400
|
+
} = Pr({ id: s, data: t, onSelect: n });
|
|
2401
|
+
return /* @__PURE__ */ r.jsxs("table", b(f({}, i), { className: E([Qe.grid, a]), children: [
|
|
2402
|
+
l && /* @__PURE__ */ r.jsx("caption", { className: Qe.grid_caption, children: l }),
|
|
2403
|
+
/* @__PURE__ */ r.jsx(Nr, { columns: e, selectable: c }),
|
|
2404
|
+
/* @__PURE__ */ r.jsx(
|
|
2405
|
+
Xr,
|
|
2335
2406
|
{
|
|
2336
|
-
gridId:
|
|
2407
|
+
gridId: p,
|
|
2337
2408
|
columns: e,
|
|
2338
2409
|
selectable: c,
|
|
2339
2410
|
selectAll: _,
|
|
2340
|
-
deselectAll:
|
|
2341
|
-
isAllSelected:
|
|
2342
|
-
isAllCheckboxDisabled:
|
|
2411
|
+
deselectAll: w,
|
|
2412
|
+
isAllSelected: j,
|
|
2413
|
+
isAllCheckboxDisabled: x
|
|
2343
2414
|
}
|
|
2344
2415
|
),
|
|
2345
|
-
/* @__PURE__ */
|
|
2346
|
-
|
|
2416
|
+
/* @__PURE__ */ r.jsx(
|
|
2417
|
+
$r,
|
|
2347
2418
|
{
|
|
2348
2419
|
columns: e,
|
|
2349
2420
|
data: t,
|
|
2350
2421
|
selectable: c,
|
|
2351
|
-
selectRowById:
|
|
2352
|
-
deselectRowById:
|
|
2353
|
-
selectedIds:
|
|
2422
|
+
selectRowById: g,
|
|
2423
|
+
deselectRowById: k,
|
|
2424
|
+
selectedIds: C,
|
|
2354
2425
|
renderDataItem: o
|
|
2355
2426
|
}
|
|
2356
2427
|
)
|
|
2357
2428
|
] }));
|
|
2358
|
-
},
|
|
2359
|
-
menuLeaf:
|
|
2360
|
-
},
|
|
2361
|
-
const { icon: t, link:
|
|
2362
|
-
return /* @__PURE__ */
|
|
2363
|
-
/* @__PURE__ */
|
|
2429
|
+
}, Qr = "_menuLeaf_14bu7_2", Zr = {
|
|
2430
|
+
menuLeaf: Qr
|
|
2431
|
+
}, eo = ({ item: e }) => {
|
|
2432
|
+
const { icon: t, link: s, label: n, onFocus: o, onClick: l, onHover: c } = e, a = s ? /* @__PURE__ */ r.jsx("a", { href: s, target: "_blank", rel: "noreferrer", children: n }) : /* @__PURE__ */ r.jsx("span", { children: n });
|
|
2433
|
+
return /* @__PURE__ */ r.jsxs("li", { className: Zr.menuLeaf, tabIndex: 0, role: "menuitem", onFocus: o, onClick: l, onMouseOver: c, children: [
|
|
2434
|
+
/* @__PURE__ */ r.jsx(J, { name: t }),
|
|
2364
2435
|
a
|
|
2365
2436
|
] });
|
|
2366
|
-
},
|
|
2367
|
-
subMenu:
|
|
2368
|
-
text:
|
|
2369
|
-
},
|
|
2370
|
-
const { icon: i, link:
|
|
2371
|
-
/* @__PURE__ */
|
|
2372
|
-
|
|
2373
|
-
] }) : /* @__PURE__ */
|
|
2374
|
-
/* @__PURE__ */
|
|
2375
|
-
|
|
2376
|
-
] }),
|
|
2377
|
-
|
|
2437
|
+
}, to = "_subMenu_gplve_2", no = "_text_gplve_19", et = {
|
|
2438
|
+
subMenu: to,
|
|
2439
|
+
text: no
|
|
2440
|
+
}, so = ({ item: e, isSubMenuOpened: t, toggleSubMenu: s, closeSubMenu: n, openSubMenu: o, openedOn: l, mode: c, children: a }) => {
|
|
2441
|
+
const { icon: i, link: d, label: h } = e, p = ee(null), _ = ee(null), w = d ? /* @__PURE__ */ r.jsxs("a", { href: d, target: "_blank", rel: "noreferrer", children: [
|
|
2442
|
+
/* @__PURE__ */ r.jsx(J, { name: i }),
|
|
2443
|
+
h
|
|
2444
|
+
] }) : /* @__PURE__ */ r.jsxs("span", { children: [
|
|
2445
|
+
/* @__PURE__ */ r.jsx(J, { name: i }),
|
|
2446
|
+
h
|
|
2447
|
+
] }), x = (k) => {
|
|
2448
|
+
k.stopPropagation(), k.key === " " && s();
|
|
2378
2449
|
};
|
|
2379
|
-
return Ee({ ref:
|
|
2380
|
-
c !==
|
|
2381
|
-
} }), /* @__PURE__ */
|
|
2450
|
+
return Ee({ ref: p, dependentRef: _, onClickOutsideHandler: () => {
|
|
2451
|
+
c !== Y.Vertical && n();
|
|
2452
|
+
} }), /* @__PURE__ */ r.jsxs(
|
|
2382
2453
|
"li",
|
|
2383
2454
|
{
|
|
2384
2455
|
className: et.subMenu,
|
|
@@ -2386,188 +2457,371 @@ const xs = "_cell_veiud_1", fs = {
|
|
|
2386
2457
|
role: "menuitem",
|
|
2387
2458
|
"aria-haspopup": "true",
|
|
2388
2459
|
"aria-expanded": t,
|
|
2389
|
-
onKeyDown:
|
|
2460
|
+
onKeyDown: x,
|
|
2390
2461
|
onMouseEnter: l === "hover" ? o : void 0,
|
|
2391
|
-
onMouseLeave: l === "hover" ?
|
|
2392
|
-
ref:
|
|
2462
|
+
onMouseLeave: l === "hover" ? n : void 0,
|
|
2463
|
+
ref: p,
|
|
2393
2464
|
children: [
|
|
2394
|
-
/* @__PURE__ */
|
|
2395
|
-
|
|
2396
|
-
/* @__PURE__ */
|
|
2465
|
+
/* @__PURE__ */ r.jsxs("span", { className: et.text, ref: _, onClick: s, onKeyDown: x, children: [
|
|
2466
|
+
w,
|
|
2467
|
+
/* @__PURE__ */ r.jsx(J, { name: t ? m.ArrowUp : m.ArrowDown })
|
|
2397
2468
|
] }),
|
|
2398
2469
|
t && a
|
|
2399
2470
|
]
|
|
2400
2471
|
}
|
|
2401
2472
|
);
|
|
2402
|
-
},
|
|
2403
|
-
subMenuBar:
|
|
2404
|
-
subMenuBar__horizontal:
|
|
2405
|
-
},
|
|
2406
|
-
var
|
|
2407
|
-
const
|
|
2408
|
-
if (
|
|
2409
|
-
return /* @__PURE__ */
|
|
2473
|
+
}, ro = "_subMenuBar_1oeh1_55", oo = "_subMenuBar__horizontal_1oeh1_75", tt = {
|
|
2474
|
+
subMenuBar: ro,
|
|
2475
|
+
subMenuBar__horizontal: oo
|
|
2476
|
+
}, mt = ({ item: e, mode: t, openedOn: s }) => {
|
|
2477
|
+
var h, p;
|
|
2478
|
+
const n = !((h = e == null ? void 0 : e.nestedItems) != null && h.length), [o, l] = I(!1), c = E([tt.subMenuBar, { [tt.subMenuBar__horizontal]: t === Y.Horizontal }]);
|
|
2479
|
+
if (n)
|
|
2480
|
+
return /* @__PURE__ */ r.jsx(eo, { item: e });
|
|
2410
2481
|
const a = () => {
|
|
2411
2482
|
l(!o);
|
|
2412
2483
|
}, i = () => {
|
|
2413
2484
|
l(!1);
|
|
2414
|
-
},
|
|
2485
|
+
}, d = () => {
|
|
2415
2486
|
l(!0);
|
|
2416
2487
|
};
|
|
2417
|
-
return /* @__PURE__ */
|
|
2418
|
-
|
|
2488
|
+
return /* @__PURE__ */ r.jsx(
|
|
2489
|
+
so,
|
|
2419
2490
|
{
|
|
2420
2491
|
item: e,
|
|
2421
2492
|
isSubMenuOpened: o,
|
|
2422
2493
|
toggleSubMenu: a,
|
|
2423
2494
|
closeSubMenu: i,
|
|
2424
|
-
openSubMenu:
|
|
2495
|
+
openSubMenu: d,
|
|
2425
2496
|
mode: t,
|
|
2426
|
-
openedOn:
|
|
2427
|
-
children: /* @__PURE__ */
|
|
2497
|
+
openedOn: s,
|
|
2498
|
+
children: /* @__PURE__ */ r.jsx("ul", { className: c, role: "menu", "aria-label": e.label, children: (p = e == null ? void 0 : e.nestedItems) == null ? void 0 : p.map((_) => /* @__PURE__ */ r.jsx(mt, { item: _, mode: t, openedOn: s }, _.id)) })
|
|
2428
2499
|
}
|
|
2429
2500
|
);
|
|
2430
|
-
},
|
|
2431
|
-
menuBar:
|
|
2432
|
-
menuBar__vertical:
|
|
2433
|
-
},
|
|
2434
|
-
var c = l, { items: e = [], mode: t =
|
|
2435
|
-
const a =
|
|
2436
|
-
return /* @__PURE__ */
|
|
2437
|
-
},
|
|
2438
|
-
tabContent:
|
|
2439
|
-
},
|
|
2440
|
-
var
|
|
2441
|
-
const
|
|
2442
|
-
return /* @__PURE__ */
|
|
2443
|
-
},
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2501
|
+
}, co = "_menuBar_8vwv0_2", lo = "_menuBar__vertical_8vwv0_13", nt = {
|
|
2502
|
+
menuBar: co,
|
|
2503
|
+
menuBar__vertical: lo
|
|
2504
|
+
}, Yo = (l) => {
|
|
2505
|
+
var c = l, { items: e = [], mode: t = Y.Vertical, openedOn: s = "click", className: n } = c, o = v(c, ["items", "mode", "openedOn", "className"]);
|
|
2506
|
+
const a = E([nt.menuBar, n, { [nt.menuBar__vertical]: t === Y.Vertical }]);
|
|
2507
|
+
return /* @__PURE__ */ r.jsx("menu", b(f({}, o), { className: a, children: e.map((i) => /* @__PURE__ */ r.jsx(mt, { item: i, mode: t, openedOn: s }, i.id)) }));
|
|
2508
|
+
}, ao = "_tabContent_cko15_1", io = {
|
|
2509
|
+
tabContent: ao
|
|
2510
|
+
}, uo = ({ tabs: e, selectedTabId: t, extendable: s, extendedTabContent: n }) => {
|
|
2511
|
+
var a;
|
|
2512
|
+
const o = (a = e.find((i) => i.id === t)) == null ? void 0 : a.content, l = `tabpanel_${t}`, c = s && !o;
|
|
2513
|
+
return /* @__PURE__ */ r.jsx("div", { role: "tabpanel", "data-testid": "tab-content", "aria-labelledby": t, id: l, className: io.tabContent, children: c ? n : o });
|
|
2514
|
+
}, ho = "_editContainer_17et2_1", _o = "_editContainer_input_17et2_9", xo = "_editContainer_buttons_17et2_28", Te = {
|
|
2515
|
+
editContainer: ho,
|
|
2516
|
+
editContainer_input: _o,
|
|
2517
|
+
editContainer_buttons: xo
|
|
2518
|
+
}, fo = ({
|
|
2519
|
+
tabId: e,
|
|
2520
|
+
isEditMode: t,
|
|
2521
|
+
editValue: s,
|
|
2522
|
+
onInputChange: n,
|
|
2523
|
+
onInputBlur: o,
|
|
2524
|
+
onInputKeyDown: l,
|
|
2525
|
+
onSave: c,
|
|
2526
|
+
onCancel: a,
|
|
2527
|
+
cancelButtonId: i
|
|
2528
|
+
}) => {
|
|
2529
|
+
const d = ee(null);
|
|
2530
|
+
return B(() => {
|
|
2531
|
+
t && d.current && (d.current.focus(), d.current.select());
|
|
2532
|
+
}, [t]), /* @__PURE__ */ r.jsxs("div", { className: Te.editContainer, children: [
|
|
2533
|
+
/* @__PURE__ */ r.jsx(
|
|
2534
|
+
"input",
|
|
2535
|
+
{
|
|
2536
|
+
ref: d,
|
|
2537
|
+
id: e + "-input",
|
|
2538
|
+
type: "text",
|
|
2539
|
+
value: s,
|
|
2540
|
+
onChange: n,
|
|
2541
|
+
onBlur: o,
|
|
2542
|
+
onKeyDown: l,
|
|
2543
|
+
className: Te.editContainer_input,
|
|
2544
|
+
maxLength: 50
|
|
2545
|
+
}
|
|
2546
|
+
),
|
|
2547
|
+
/* @__PURE__ */ r.jsxs("span", { className: Te.editContainer_buttons, children: [
|
|
2548
|
+
/* @__PURE__ */ r.jsx(K, { view: D.Icon, icon: m.CheckMark, onClick: c, label: "Save tab title" }),
|
|
2549
|
+
/* @__PURE__ */ r.jsx(K, { view: D.Icon, icon: m.Cancel, onClick: a, label: "Cancel tab title change", id: i })
|
|
2550
|
+
] })
|
|
2551
|
+
] });
|
|
2552
|
+
}, wo = "_tab_5hucd_2", po = "_tab_wrapper_5hucd_26", bo = "_tab_wrapper__selected_5hucd_36", vo = "_tab_wrapper__vertical_5hucd_41", mo = "_tab_wrapper__stretched_5hucd_45", go = "_tab_wrapper__disabled_5hucd_48", jo = "_tab_wrapper__inactive_5hucd_52", ko = "_tab_buttons_5hucd_58", ne = {
|
|
2553
|
+
tab: wo,
|
|
2554
|
+
tab_wrapper: po,
|
|
2555
|
+
tab_wrapper__selected: bo,
|
|
2556
|
+
tab_wrapper__vertical: vo,
|
|
2557
|
+
tab_wrapper__stretched: mo,
|
|
2558
|
+
tab_wrapper__disabled: go,
|
|
2559
|
+
tab_wrapper__inactive: jo,
|
|
2560
|
+
tab_buttons: ko
|
|
2561
|
+
}, Co = ({
|
|
2562
|
+
title: e,
|
|
2563
|
+
onTabSelect: t,
|
|
2564
|
+
onTabTitleChange: s,
|
|
2565
|
+
onTabDelete: n,
|
|
2566
|
+
tabId: o,
|
|
2567
|
+
isSelected: l,
|
|
2568
|
+
isDisabled: c = !1,
|
|
2569
|
+
stretched: a = !1,
|
|
2570
|
+
editable: i = !1,
|
|
2571
|
+
extendable: d = !1,
|
|
2572
|
+
tabPanelId: h,
|
|
2573
|
+
mode: p
|
|
2574
|
+
}) => {
|
|
2575
|
+
const [_, w] = I(!1), [x, j] = I(e), k = ee(null), g = rt(), C = i && !c && l, L = d && !c && !!n && l, A = C || L, y = E([
|
|
2576
|
+
ne.tab_wrapper,
|
|
2451
2577
|
{
|
|
2452
|
-
[
|
|
2453
|
-
[
|
|
2454
|
-
[
|
|
2578
|
+
[ne.tab_wrapper__disabled]: c,
|
|
2579
|
+
[ne.tab_wrapper__vertical]: p === Y.Vertical,
|
|
2580
|
+
[ne.tab_wrapper__selected]: l,
|
|
2581
|
+
[ne.tab_wrapper__stretched]: a,
|
|
2582
|
+
[ne.tab_wrapper__editable]: i,
|
|
2583
|
+
[ne.tab_wrapper__inactive]: !l
|
|
2455
2584
|
}
|
|
2456
2585
|
]);
|
|
2457
|
-
|
|
2458
|
-
|
|
2586
|
+
B(() => {
|
|
2587
|
+
_ && k.current && (k.current.focus(), k.current.select());
|
|
2588
|
+
}, [_]), B(() => {
|
|
2589
|
+
j(e);
|
|
2590
|
+
}, [e]);
|
|
2591
|
+
const $ = () => {
|
|
2592
|
+
c || w(!_);
|
|
2593
|
+
}, z = () => {
|
|
2594
|
+
_ || t(o);
|
|
2595
|
+
}, S = (H) => {
|
|
2596
|
+
j(H.target.value);
|
|
2597
|
+
}, X = (H) => {
|
|
2598
|
+
const V = H.relatedTarget;
|
|
2599
|
+
(V == null ? void 0 : V.id) === g || O();
|
|
2600
|
+
}, te = (H) => {
|
|
2601
|
+
H.key === "Enter" ? (H.preventDefault(), O()) : H.key === "Escape" && (H.preventDefault(), G());
|
|
2602
|
+
}, O = () => {
|
|
2603
|
+
x.trim() && x !== e ? s == null || s(x.trim()) : j(e), w(!1);
|
|
2604
|
+
}, G = () => {
|
|
2605
|
+
j(e), w(!1);
|
|
2606
|
+
};
|
|
2607
|
+
return /* @__PURE__ */ r.jsx("span", { className: y, children: _ ? /* @__PURE__ */ r.jsx(
|
|
2608
|
+
fo,
|
|
2459
2609
|
{
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2610
|
+
tabId: o,
|
|
2611
|
+
editValue: x,
|
|
2612
|
+
isEditMode: _,
|
|
2613
|
+
onInputChange: S,
|
|
2614
|
+
onInputBlur: X,
|
|
2615
|
+
onInputKeyDown: te,
|
|
2616
|
+
onSave: O,
|
|
2617
|
+
onCancel: G,
|
|
2618
|
+
cancelButtonId: g
|
|
2467
2619
|
}
|
|
2468
|
-
)
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
x && (he(x), t(x));
|
|
2481
|
-
break;
|
|
2620
|
+
) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2621
|
+
/* @__PURE__ */ r.jsx(
|
|
2622
|
+
"button",
|
|
2623
|
+
{
|
|
2624
|
+
role: "tab",
|
|
2625
|
+
id: o,
|
|
2626
|
+
onClick: z,
|
|
2627
|
+
"aria-selected": l,
|
|
2628
|
+
"aria-controls": h,
|
|
2629
|
+
className: ne.tab,
|
|
2630
|
+
disabled: c,
|
|
2631
|
+
children: x
|
|
2482
2632
|
}
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2633
|
+
),
|
|
2634
|
+
A && /* @__PURE__ */ r.jsxs("span", { className: ne.tab_buttons, children: [
|
|
2635
|
+
C && /* @__PURE__ */ r.jsx(K, { view: D.Icon, icon: m.Edit, onClick: $, label: "Edit tab", tooltip: "Edit tab" }),
|
|
2636
|
+
L && /* @__PURE__ */ r.jsx(
|
|
2637
|
+
K,
|
|
2638
|
+
{
|
|
2639
|
+
view: D.Icon,
|
|
2640
|
+
icon: m.Delete,
|
|
2641
|
+
onClick: () => n == null ? void 0 : n(o),
|
|
2642
|
+
label: "Delete tab",
|
|
2643
|
+
tooltip: "Delete tab"
|
|
2644
|
+
}
|
|
2645
|
+
)
|
|
2646
|
+
] })
|
|
2647
|
+
] }) });
|
|
2648
|
+
}, yo = "_tabList_tq8bk_1", Mo = "_tabList__vertical_tq8bk_13", Eo = "_tabList_addButton_tq8bk_23", ze = {
|
|
2649
|
+
tabList: yo,
|
|
2650
|
+
tabList__vertical: Mo,
|
|
2651
|
+
tabList_addButton: Eo
|
|
2652
|
+
}, Io = ({
|
|
2653
|
+
tabs: e,
|
|
2654
|
+
onTabSelect: t,
|
|
2655
|
+
onTabTitleChange: s,
|
|
2656
|
+
selectedTabId: n,
|
|
2657
|
+
tabPanelIds: o,
|
|
2658
|
+
mode: l,
|
|
2659
|
+
tabIds: c,
|
|
2660
|
+
stretched: a,
|
|
2661
|
+
editable: i = !1,
|
|
2662
|
+
extendable: d = !1,
|
|
2663
|
+
onTabAdd: h,
|
|
2664
|
+
onTabDelete: p,
|
|
2665
|
+
initialTabsCount: _
|
|
2666
|
+
}) => {
|
|
2667
|
+
const w = E([ze.tabList, { [ze.tabList__vertical]: l === Y.Vertical }]), x = (g) => {
|
|
2668
|
+
const C = c.findIndex(($) => $ === n);
|
|
2669
|
+
if (!["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown"].includes(g.key) || (g.preventDefault(), g.key === "ArrowUp" && l === Y.Horizontal || g.key === "ArrowLeft" && l === Y.Vertical))
|
|
2670
|
+
return;
|
|
2671
|
+
const A = g.key === "ArrowLeft" || g.key === "ArrowUp" ? j(C, c.length) : k(C, c.length), y = c[A];
|
|
2672
|
+
y && (ye(y), t(y));
|
|
2673
|
+
}, j = (g, C) => g - 1 >= 0 ? g - 1 : C - 1, k = (g, C) => g === C - 1 ? 0 : g + 1;
|
|
2674
|
+
return B(() => {
|
|
2675
|
+
e.length > _ && t(e[e.length - 1].id);
|
|
2676
|
+
}, [e.length]), /* @__PURE__ */ r.jsxs("div", { role: "tablist", "data-testid": "tab-list", tabIndex: 0, onKeyDown: x, className: w, children: [
|
|
2677
|
+
e.map(({ id: g, title: C, disabled: L }, A) => /* @__PURE__ */ r.jsx(
|
|
2678
|
+
Co,
|
|
2679
|
+
{
|
|
2680
|
+
title: C,
|
|
2681
|
+
onTabSelect: t,
|
|
2682
|
+
onTabTitleChange: s ? (y) => s(g, y) : void 0,
|
|
2683
|
+
tabId: g,
|
|
2684
|
+
isSelected: g === n,
|
|
2685
|
+
isDisabled: L,
|
|
2686
|
+
tabPanelId: o[A],
|
|
2687
|
+
mode: l,
|
|
2688
|
+
stretched: a,
|
|
2689
|
+
editable: i,
|
|
2690
|
+
extendable: d,
|
|
2691
|
+
onTabDelete: p
|
|
2692
|
+
},
|
|
2693
|
+
g
|
|
2694
|
+
)),
|
|
2695
|
+
d && /* @__PURE__ */ r.jsx(
|
|
2696
|
+
K,
|
|
2697
|
+
{
|
|
2698
|
+
label: "Add Tab",
|
|
2699
|
+
tooltip: "Add Tab",
|
|
2700
|
+
view: D.Icon,
|
|
2701
|
+
icon: m.PlusCircle,
|
|
2702
|
+
onClick: h,
|
|
2703
|
+
className: ze.tabList_addButton
|
|
2489
2704
|
}
|
|
2705
|
+
)
|
|
2706
|
+
] });
|
|
2707
|
+
}, Lo = "_tabs_13prm_2", Ao = "_tabs__vertical_13prm_7", st = {
|
|
2708
|
+
tabs: Lo,
|
|
2709
|
+
tabs__vertical: Ao
|
|
2710
|
+
}, Jo = (x) => {
|
|
2711
|
+
var j = x, {
|
|
2712
|
+
tabs: e,
|
|
2713
|
+
defaultTabId: t,
|
|
2714
|
+
className: s,
|
|
2715
|
+
mode: n = Y.Horizontal,
|
|
2716
|
+
stretched: o = !1,
|
|
2717
|
+
editable: l = !1,
|
|
2718
|
+
extendable: c = !1,
|
|
2719
|
+
extendedTabLabel: a = "New Tab",
|
|
2720
|
+
extendedTabContent: i,
|
|
2721
|
+
onTabTitleChange: d,
|
|
2722
|
+
onTabAdd: h,
|
|
2723
|
+
onTabSelect: p,
|
|
2724
|
+
onTabDelete: _
|
|
2725
|
+
} = j, w = v(j, [
|
|
2726
|
+
"tabs",
|
|
2727
|
+
"defaultTabId",
|
|
2728
|
+
"className",
|
|
2729
|
+
"mode",
|
|
2730
|
+
"stretched",
|
|
2731
|
+
"editable",
|
|
2732
|
+
"extendable",
|
|
2733
|
+
"extendedTabLabel",
|
|
2734
|
+
"extendedTabContent",
|
|
2735
|
+
"onTabTitleChange",
|
|
2736
|
+
"onTabAdd",
|
|
2737
|
+
"onTabSelect",
|
|
2738
|
+
"onTabDelete"
|
|
2739
|
+
]);
|
|
2740
|
+
const [k, g] = I(e), C = e.length, [L, A] = I(C + 1), y = k.map((R) => R.id), $ = y.map((R) => `tabpanel_${R}`), z = t && y.includes(t) ? t : y[0], [S, X] = I(z), te = E([st.tabs, s, { [st.tabs__vertical]: n === Y.Vertical }]), O = (R) => {
|
|
2741
|
+
X(R), p == null || p(R);
|
|
2742
|
+
}, G = (R, W) => {
|
|
2743
|
+
g((U) => U.map((Q) => Q.id === R ? b(f({}, Q), { title: W }) : Q)), d == null || d(R, W);
|
|
2744
|
+
}, H = () => {
|
|
2745
|
+
const R = `added-tab-${L}`, W = a || `Tab ${L}`, U = {
|
|
2746
|
+
id: R,
|
|
2747
|
+
title: W,
|
|
2748
|
+
content: i || /* @__PURE__ */ r.jsx("div", {})
|
|
2749
|
+
};
|
|
2750
|
+
g((Q) => [...Q, U]), A((Q) => Q + 1), h == null || h();
|
|
2751
|
+
}, V = (R) => {
|
|
2752
|
+
if (g((W) => W.filter((U) => U.id !== R)), S === R) {
|
|
2753
|
+
const W = y.indexOf(R);
|
|
2754
|
+
let U;
|
|
2755
|
+
W > 0 ? U = y[W - 1] : y.length > 1 ? U = y[1] : U = void 0, U && O(U);
|
|
2490
2756
|
}
|
|
2757
|
+
_ == null || _(R);
|
|
2491
2758
|
};
|
|
2492
|
-
return /* @__PURE__ */
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
title: h,
|
|
2496
|
-
onTabSelect: t,
|
|
2497
|
-
tabId: i,
|
|
2498
|
-
isSelected: i === n,
|
|
2499
|
-
isDisabled: d,
|
|
2500
|
-
tabPanelId: r[x],
|
|
2501
|
-
mode: o
|
|
2502
|
-
},
|
|
2503
|
-
i
|
|
2504
|
-
)) });
|
|
2505
|
-
}, _o = "_tabs_13prm_2", xo = "_tabs__vertical_13prm_7", st = {
|
|
2506
|
-
tabs: _o,
|
|
2507
|
-
tabs__vertical: xo
|
|
2508
|
-
}, Ro = (l) => {
|
|
2509
|
-
var c = l, { tabs: e, defaultTabId: t, mode: n = N.Horizontal, className: r } = c, o = p(c, ["tabs", "defaultTabId", "mode", "className"]);
|
|
2510
|
-
const a = e.map((f) => f.id), i = a.map((f) => `tabpanel_${f}`), h = t && a.includes(t) ? t : a[0], [d, x] = M(h), _ = y([st.tabs, r, { [st.tabs__vertical]: n === N.Vertical }]), m = (f) => {
|
|
2511
|
-
x(f);
|
|
2512
|
-
};
|
|
2513
|
-
return /* @__PURE__ */ s.jsxs("div", v(b({}, o), { className: _, children: [
|
|
2514
|
-
/* @__PURE__ */ s.jsx(
|
|
2515
|
-
ho,
|
|
2759
|
+
return /* @__PURE__ */ r.jsxs("div", b(f({}, w), { className: te, children: [
|
|
2760
|
+
/* @__PURE__ */ r.jsx(
|
|
2761
|
+
Io,
|
|
2516
2762
|
{
|
|
2517
|
-
tabs:
|
|
2518
|
-
selectedTabId:
|
|
2519
|
-
tabPanelIds:
|
|
2520
|
-
onTabSelect:
|
|
2763
|
+
tabs: k,
|
|
2764
|
+
selectedTabId: S,
|
|
2765
|
+
tabPanelIds: $,
|
|
2766
|
+
onTabSelect: O,
|
|
2767
|
+
onTabTitleChange: G,
|
|
2521
2768
|
mode: n,
|
|
2522
|
-
tabIds:
|
|
2769
|
+
tabIds: y,
|
|
2770
|
+
stretched: o,
|
|
2771
|
+
editable: l,
|
|
2772
|
+
extendable: c,
|
|
2773
|
+
onTabAdd: H,
|
|
2774
|
+
initialTabsCount: C,
|
|
2775
|
+
onTabDelete: V
|
|
2523
2776
|
}
|
|
2524
2777
|
),
|
|
2525
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ r.jsx(uo, { tabs: k, selectedTabId: S, extendedTabContent: i, extendable: c })
|
|
2526
2779
|
] }));
|
|
2527
2780
|
};
|
|
2528
2781
|
export {
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2782
|
+
Po as Alert,
|
|
2783
|
+
F as AlertMode,
|
|
2784
|
+
K as Button,
|
|
2785
|
+
D as ButtonView,
|
|
2786
|
+
Oo as Checkbox,
|
|
2787
|
+
Fo as Dialog,
|
|
2788
|
+
zo as EditableText,
|
|
2536
2789
|
at as ErrorMessage,
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2790
|
+
Go as Form,
|
|
2791
|
+
ie as FormContext,
|
|
2792
|
+
qo as Grid,
|
|
2540
2793
|
it as Header,
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2794
|
+
J as Icon,
|
|
2795
|
+
m as IconName,
|
|
2796
|
+
_t as Input,
|
|
2797
|
+
ue as Label,
|
|
2798
|
+
$o as Loader,
|
|
2799
|
+
q as LoaderView,
|
|
2800
|
+
Yo as Menu,
|
|
2801
|
+
Vo as MultiSelect,
|
|
2802
|
+
Wo as NumericInput,
|
|
2803
|
+
Y as OrientationMode,
|
|
2551
2804
|
De as Portal,
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2805
|
+
Uo as Select,
|
|
2806
|
+
Jo as Tabs,
|
|
2807
|
+
Ko as TextInput,
|
|
2808
|
+
wt as ThemeContext,
|
|
2809
|
+
le as ThemeMode,
|
|
2810
|
+
Ho as ThemeProvider,
|
|
2811
|
+
Cs as Tooltip,
|
|
2559
2812
|
ct as TooltipContainer,
|
|
2560
|
-
|
|
2561
|
-
wo as useChopLogicTheme,
|
|
2813
|
+
xt as useAutoClose,
|
|
2562
2814
|
Ee as useClickOutside,
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2815
|
+
ps as useContainerDimensions,
|
|
2816
|
+
Bo as useDebounce,
|
|
2817
|
+
ce as useElementIds,
|
|
2818
|
+
ft as useIsMounted,
|
|
2819
|
+
Do as useIsOverflow,
|
|
2567
2820
|
Ie as useKeyPress,
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2821
|
+
bs as useModalFocusTrap,
|
|
2822
|
+
we as useResetFormInput,
|
|
2823
|
+
No as useTheme,
|
|
2824
|
+
ms as useTooltipPosition,
|
|
2825
|
+
vs as useWindowDimensions
|
|
2572
2826
|
};
|
|
2573
2827
|
//# sourceMappingURL=index.es.js.map
|