alex-evo-sh-ui-kit 1.0.77 → 1.0.78
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/alex-evo-sh-ui-kit.es.js +1301 -1287
- package/dist/alex-evo-sh-ui-kit.umd.js +23 -23
- package/dist/helpers/color/interpolateColor.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/ui/Card/Card.d.ts +2 -1
- package/dist/ui/input/Range/Range.d.ts +1 -1
- package/dist/ui/input/Range/RangeCircle.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { NavLink as
|
|
4
|
-
import './index.css';var
|
|
1
|
+
import Qe, { useState as _, useCallback as k, useEffect as $, useRef as Y, useMemo as je, createContext as Dt, useContext as Ge } from "react";
|
|
2
|
+
import Ft from "react-dom";
|
|
3
|
+
import { NavLink as mn } from "react-router-dom";
|
|
4
|
+
import './index.css';var xn = { exports: {} }, Ae = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -11,25 +11,25 @@ import './index.css';var dn = { exports: {} }, De = {};
|
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
var n =
|
|
20
|
-
function a
|
|
21
|
-
var h, f = {}, x = null,
|
|
22
|
-
u !== void 0 && (x = "" + u),
|
|
23
|
-
for (h in
|
|
24
|
-
s.call(
|
|
25
|
-
if (
|
|
26
|
-
for (h in
|
|
27
|
-
f[h] === void 0 && (f[h] =
|
|
28
|
-
return { $$typeof: t, type:
|
|
14
|
+
var Ln;
|
|
15
|
+
function Pt() {
|
|
16
|
+
if (Ln)
|
|
17
|
+
return Ae;
|
|
18
|
+
Ln = 1;
|
|
19
|
+
var n = Qe, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
+
function l(a, o, u) {
|
|
21
|
+
var h, f = {}, x = null, C = null;
|
|
22
|
+
u !== void 0 && (x = "" + u), o.key !== void 0 && (x = "" + o.key), o.ref !== void 0 && (C = o.ref);
|
|
23
|
+
for (h in o)
|
|
24
|
+
s.call(o, h) && !i.hasOwnProperty(h) && (f[h] = o[h]);
|
|
25
|
+
if (a && a.defaultProps)
|
|
26
|
+
for (h in o = a.defaultProps, o)
|
|
27
|
+
f[h] === void 0 && (f[h] = o[h]);
|
|
28
|
+
return { $$typeof: t, type: a, key: x, ref: C, props: f, _owner: c.current };
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return Ae.Fragment = r, Ae.jsx = l, Ae.jsxs = l, Ae;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var Ie = {};
|
|
33
33
|
/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.development.js
|
|
@@ -39,54 +39,54 @@ var Fe = {};
|
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/
|
|
42
|
-
var
|
|
43
|
-
function
|
|
44
|
-
return
|
|
45
|
-
var n =
|
|
42
|
+
var Tn;
|
|
43
|
+
function Ht() {
|
|
44
|
+
return Tn || (Tn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
+
var n = Qe, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), a = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), j = Symbol.iterator, g = "@@iterator";
|
|
46
46
|
function v(d) {
|
|
47
47
|
if (d === null || typeof d != "object")
|
|
48
48
|
return null;
|
|
49
49
|
var b = j && d[j] || d[g];
|
|
50
50
|
return typeof b == "function" ? b : null;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
52
|
+
var m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
53
|
function p(d) {
|
|
54
54
|
{
|
|
55
|
-
for (var b = arguments.length, N = new Array(b > 1 ? b - 1 : 0),
|
|
56
|
-
N[
|
|
55
|
+
for (var b = arguments.length, N = new Array(b > 1 ? b - 1 : 0), E = 1; E < b; E++)
|
|
56
|
+
N[E - 1] = arguments[E];
|
|
57
57
|
w("error", d, N);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function w(d, b, N) {
|
|
61
61
|
{
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
var
|
|
62
|
+
var E = m.ReactDebugCurrentFrame, G = E.getStackAddendum();
|
|
63
|
+
G !== "" && (b += "%s", N = N.concat([G]));
|
|
64
|
+
var W = N.map(function(F) {
|
|
65
65
|
return String(F);
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
W.unshift("Warning: " + b), Function.prototype.apply.call(console[d], console, W);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var y = !1, S = !1,
|
|
70
|
+
var y = !1, S = !1, T = !1, L = !1, H = !1, U;
|
|
71
71
|
U = Symbol.for("react.module.reference");
|
|
72
72
|
function M(d) {
|
|
73
|
-
return !!(typeof d == "string" || typeof d == "function" || d === s || d === i ||
|
|
73
|
+
return !!(typeof d == "string" || typeof d == "function" || d === s || d === i || H || d === c || d === u || d === h || L || d === C || y || S || T || typeof d == "object" && d !== null && (d.$$typeof === x || d.$$typeof === f || d.$$typeof === l || d.$$typeof === a || d.$$typeof === o || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
77
|
d.$$typeof === U || d.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
var
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
83
|
-
var
|
|
84
|
-
return
|
|
79
|
+
function D(d, b, N) {
|
|
80
|
+
var E = d.displayName;
|
|
81
|
+
if (E)
|
|
82
|
+
return E;
|
|
83
|
+
var G = b.displayName || b.name || "";
|
|
84
|
+
return G !== "" ? N + "(" + G + ")" : N;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Z(d) {
|
|
87
87
|
return d.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function R(d) {
|
|
90
90
|
if (d == null)
|
|
91
91
|
return null;
|
|
92
92
|
if (typeof d.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
@@ -109,21 +109,21 @@ function Ft() {
|
|
|
109
109
|
}
|
|
110
110
|
if (typeof d == "object")
|
|
111
111
|
switch (d.$$typeof) {
|
|
112
|
-
case o:
|
|
113
|
-
var b = d;
|
|
114
|
-
return W(b) + ".Consumer";
|
|
115
112
|
case a:
|
|
116
|
-
var
|
|
117
|
-
return
|
|
113
|
+
var b = d;
|
|
114
|
+
return Z(b) + ".Consumer";
|
|
118
115
|
case l:
|
|
119
|
-
|
|
116
|
+
var N = d;
|
|
117
|
+
return Z(N._context) + ".Provider";
|
|
118
|
+
case o:
|
|
119
|
+
return D(d, d.render, "ForwardRef");
|
|
120
120
|
case f:
|
|
121
|
-
var
|
|
122
|
-
return
|
|
121
|
+
var E = d.displayName || null;
|
|
122
|
+
return E !== null ? E : R(d.type) || "Memo";
|
|
123
123
|
case x: {
|
|
124
|
-
var
|
|
124
|
+
var G = d, W = G._payload, F = G._init;
|
|
125
125
|
try {
|
|
126
|
-
return
|
|
126
|
+
return R(F(W));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,18 +131,18 @@ function Ft() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var A = Object.assign,
|
|
135
|
-
function ie() {
|
|
136
|
-
}
|
|
137
|
-
ie.__reactDisabledLog = !0;
|
|
134
|
+
var A = Object.assign, X = 0, te, ie, z, O, ge, De, Fe;
|
|
138
135
|
function de() {
|
|
136
|
+
}
|
|
137
|
+
de.__reactDisabledLog = !0;
|
|
138
|
+
function We() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
141
|
-
|
|
140
|
+
if (X === 0) {
|
|
141
|
+
te = console.log, ie = console.info, z = console.warn, O = console.error, ge = console.group, De = console.groupCollapsed, Fe = console.groupEnd;
|
|
142
142
|
var d = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
145
|
-
value:
|
|
145
|
+
value: de,
|
|
146
146
|
writable: !0
|
|
147
147
|
};
|
|
148
148
|
Object.defineProperties(console, {
|
|
@@ -155,12 +155,12 @@ function Ft() {
|
|
|
155
155
|
groupEnd: d
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
X++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function nn() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
163
|
+
if (X--, X === 0) {
|
|
164
164
|
var d = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
@@ -168,64 +168,64 @@ function Ft() {
|
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
170
|
log: A({}, d, {
|
|
171
|
-
value:
|
|
171
|
+
value: te
|
|
172
172
|
}),
|
|
173
173
|
info: A({}, d, {
|
|
174
|
-
value:
|
|
174
|
+
value: ie
|
|
175
175
|
}),
|
|
176
176
|
warn: A({}, d, {
|
|
177
|
-
value:
|
|
177
|
+
value: z
|
|
178
178
|
}),
|
|
179
179
|
error: A({}, d, {
|
|
180
|
-
value:
|
|
180
|
+
value: O
|
|
181
181
|
}),
|
|
182
182
|
group: A({}, d, {
|
|
183
|
-
value:
|
|
183
|
+
value: ge
|
|
184
184
|
}),
|
|
185
185
|
groupCollapsed: A({}, d, {
|
|
186
|
-
value:
|
|
186
|
+
value: De
|
|
187
187
|
}),
|
|
188
188
|
groupEnd: A({}, d, {
|
|
189
|
-
value:
|
|
189
|
+
value: Fe
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
X < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var
|
|
196
|
+
var be = m.ReactCurrentDispatcher, ye;
|
|
197
197
|
function ke(d, b, N) {
|
|
198
198
|
{
|
|
199
|
-
if (
|
|
199
|
+
if (ye === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
|
-
} catch (
|
|
203
|
-
var
|
|
204
|
-
|
|
202
|
+
} catch (G) {
|
|
203
|
+
var E = G.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
ye = E && E[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
|
-
` +
|
|
207
|
+
` + ye + d;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
var
|
|
210
|
+
var Pe = !1, ee;
|
|
211
211
|
{
|
|
212
|
-
var
|
|
213
|
-
|
|
212
|
+
var ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
+
ee = new ue();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
if (!d ||
|
|
215
|
+
function he(d, b) {
|
|
216
|
+
if (!d || Pe)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var N =
|
|
219
|
+
var N = ee.get(d);
|
|
220
220
|
if (N !== void 0)
|
|
221
221
|
return N;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
224
|
-
|
|
225
|
-
var
|
|
223
|
+
var E;
|
|
224
|
+
Pe = !0;
|
|
225
|
+
var G = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
|
-
var
|
|
228
|
-
|
|
227
|
+
var W;
|
|
228
|
+
W = be.current, be.current = null, We();
|
|
229
229
|
try {
|
|
230
230
|
if (b) {
|
|
231
231
|
var F = function() {
|
|
@@ -238,63 +238,63 @@ function Ft() {
|
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
240
|
Reflect.construct(F, []);
|
|
241
|
-
} catch (
|
|
242
|
-
|
|
241
|
+
} catch (oe) {
|
|
242
|
+
E = oe;
|
|
243
243
|
}
|
|
244
244
|
Reflect.construct(d, [], F);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
247
|
F.call();
|
|
248
|
-
} catch (
|
|
249
|
-
|
|
248
|
+
} catch (oe) {
|
|
249
|
+
E = oe;
|
|
250
250
|
}
|
|
251
251
|
d.call(F.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
|
-
} catch (
|
|
257
|
-
|
|
256
|
+
} catch (oe) {
|
|
257
|
+
E = oe;
|
|
258
258
|
}
|
|
259
259
|
d();
|
|
260
260
|
}
|
|
261
|
-
} catch (
|
|
262
|
-
if (
|
|
263
|
-
for (var
|
|
264
|
-
`), re =
|
|
265
|
-
`), K =
|
|
261
|
+
} catch (oe) {
|
|
262
|
+
if (oe && E && typeof oe.stack == "string") {
|
|
263
|
+
for (var V = oe.stack.split(`
|
|
264
|
+
`), re = E.stack.split(`
|
|
265
|
+
`), K = V.length - 1, q = re.length - 1; K >= 1 && q >= 0 && V[K] !== re[q]; )
|
|
266
266
|
q--;
|
|
267
267
|
for (; K >= 1 && q >= 0; K--, q--)
|
|
268
|
-
if (
|
|
268
|
+
if (V[K] !== re[q]) {
|
|
269
269
|
if (K !== 1 || q !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (K--, q--, q < 0 ||
|
|
272
|
-
var
|
|
273
|
-
` +
|
|
274
|
-
return d.displayName &&
|
|
271
|
+
if (K--, q--, q < 0 || V[K] !== re[q]) {
|
|
272
|
+
var ae = `
|
|
273
|
+
` + V[K].replace(" at new ", " at ");
|
|
274
|
+
return d.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", d.displayName)), typeof d == "function" && ee.set(d, ae), ae;
|
|
275
275
|
}
|
|
276
276
|
while (K >= 1 && q >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
|
|
281
|
+
Pe = !1, be.current = W, nn(), Error.prepareStackTrace = G;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
return typeof d == "function" &&
|
|
283
|
+
var $e = d ? d.displayName || d.name : "", we = $e ? ke($e) : "";
|
|
284
|
+
return typeof d == "function" && ee.set(d, we), we;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
return
|
|
286
|
+
function I(d, b, N) {
|
|
287
|
+
return he(d, !1);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function fe(d) {
|
|
290
290
|
var b = d.prototype;
|
|
291
291
|
return !!(b && b.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Ee(d, b, N) {
|
|
294
294
|
if (d == null)
|
|
295
295
|
return "";
|
|
296
296
|
if (typeof d == "function")
|
|
297
|
-
return
|
|
297
|
+
return he(d, fe(d));
|
|
298
298
|
if (typeof d == "string")
|
|
299
299
|
return ke(d);
|
|
300
300
|
switch (d) {
|
|
@@ -305,104 +305,104 @@ function Ft() {
|
|
|
305
305
|
}
|
|
306
306
|
if (typeof d == "object")
|
|
307
307
|
switch (d.$$typeof) {
|
|
308
|
-
case
|
|
309
|
-
return
|
|
308
|
+
case o:
|
|
309
|
+
return I(d.render);
|
|
310
310
|
case f:
|
|
311
|
-
return
|
|
311
|
+
return Ee(d.type, b, N);
|
|
312
312
|
case x: {
|
|
313
|
-
var
|
|
313
|
+
var E = d, G = E._payload, W = E._init;
|
|
314
314
|
try {
|
|
315
|
-
return
|
|
315
|
+
return Ee(W(G), b, N);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var
|
|
323
|
-
function
|
|
322
|
+
var Ne = Object.prototype.hasOwnProperty, Ze = {}, Xe = m.ReactDebugCurrentFrame;
|
|
323
|
+
function ne(d) {
|
|
324
324
|
if (d) {
|
|
325
|
-
var b = d._owner, N =
|
|
326
|
-
|
|
325
|
+
var b = d._owner, N = Ee(d.type, d._source, b ? b.type : null);
|
|
326
|
+
Xe.setExtraStackFrame(N);
|
|
327
327
|
} else
|
|
328
|
-
|
|
328
|
+
Xe.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function tn(d, b, N, E, G) {
|
|
331
331
|
{
|
|
332
|
-
var
|
|
332
|
+
var W = Function.call.bind(Ne);
|
|
333
333
|
for (var F in d)
|
|
334
|
-
if (
|
|
335
|
-
var
|
|
334
|
+
if (W(d, F)) {
|
|
335
|
+
var V = void 0;
|
|
336
336
|
try {
|
|
337
337
|
if (typeof d[F] != "function") {
|
|
338
|
-
var re = Error((
|
|
338
|
+
var re = Error((E || "React class") + ": " + N + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
339
|
throw re.name = "Invariant Violation", re;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
V = d[F](b, F, E, N, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
342
|
} catch (K) {
|
|
343
|
-
|
|
343
|
+
V = K;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
V && !(V instanceof Error) && (ne(G), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", N, F, typeof V), ne(null)), V instanceof Error && !(V.message in Ze) && (Ze[V.message] = !0, ne(G), p("Failed %s type: %s", N, V.message), ne(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
var
|
|
350
|
-
function
|
|
351
|
-
return
|
|
349
|
+
var rn = Array.isArray;
|
|
350
|
+
function _e(d) {
|
|
351
|
+
return rn(d);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function mt(d) {
|
|
354
354
|
{
|
|
355
355
|
var b = typeof Symbol == "function" && Symbol.toStringTag, N = b && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
356
356
|
return N;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Ct(d) {
|
|
360
360
|
try {
|
|
361
|
-
return
|
|
361
|
+
return bn(d), !1;
|
|
362
362
|
} catch {
|
|
363
363
|
return !0;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function bn(d) {
|
|
367
367
|
return "" + d;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
if (
|
|
371
|
-
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
369
|
+
function yn(d) {
|
|
370
|
+
if (Ct(d))
|
|
371
|
+
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mt(d)), bn(d);
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var He = m.ReactCurrentOwner, vt = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
377
377
|
__source: !0
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
function
|
|
381
|
-
if (
|
|
378
|
+
}, kn, Nn, sn;
|
|
379
|
+
sn = {};
|
|
380
|
+
function gt(d) {
|
|
381
|
+
if (Ne.call(d, "ref")) {
|
|
382
382
|
var b = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
383
383
|
if (b && b.isReactWarning)
|
|
384
384
|
return !1;
|
|
385
385
|
}
|
|
386
386
|
return d.ref !== void 0;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
if (
|
|
388
|
+
function pt(d) {
|
|
389
|
+
if (Ne.call(d, "key")) {
|
|
390
390
|
var b = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
391
391
|
if (b && b.isReactWarning)
|
|
392
392
|
return !1;
|
|
393
393
|
}
|
|
394
394
|
return d.key !== void 0;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
if (typeof d.ref == "string" &&
|
|
398
|
-
var N =
|
|
399
|
-
|
|
396
|
+
function bt(d, b) {
|
|
397
|
+
if (typeof d.ref == "string" && He.current && b && He.current.stateNode !== b) {
|
|
398
|
+
var N = R(He.current.type);
|
|
399
|
+
sn[N] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(He.current.type), d.ref), sn[N] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function yt(d, b) {
|
|
403
403
|
{
|
|
404
404
|
var N = function() {
|
|
405
|
-
|
|
405
|
+
kn || (kn = !0, p("%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://reactjs.org/link/special-props)", b));
|
|
406
406
|
};
|
|
407
407
|
N.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
408
408
|
get: N,
|
|
@@ -410,10 +410,10 @@ function Ft() {
|
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function kt(d, b) {
|
|
414
414
|
{
|
|
415
415
|
var N = function() {
|
|
416
|
-
|
|
416
|
+
Nn || (Nn = !0, p("%s: `ref` 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://reactjs.org/link/special-props)", b));
|
|
417
417
|
};
|
|
418
418
|
N.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
|
419
419
|
get: N,
|
|
@@ -421,8 +421,8 @@ function Ft() {
|
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var
|
|
425
|
-
var
|
|
424
|
+
var Nt = function(d, b, N, E, G, W, F) {
|
|
425
|
+
var V = {
|
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
427
427
|
$$typeof: t,
|
|
428
428
|
// Built-in properties that belong on the element
|
|
@@ -431,60 +431,60 @@ function Ft() {
|
|
|
431
431
|
ref: N,
|
|
432
432
|
props: F,
|
|
433
433
|
// Record the component responsible for creating this element.
|
|
434
|
-
_owner:
|
|
434
|
+
_owner: W
|
|
435
435
|
};
|
|
436
|
-
return
|
|
436
|
+
return V._store = {}, Object.defineProperty(V._store, "validated", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !0,
|
|
440
440
|
value: !1
|
|
441
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty(V, "_self", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
|
-
value:
|
|
446
|
-
}), Object.defineProperty(
|
|
445
|
+
value: E
|
|
446
|
+
}), Object.defineProperty(V, "_source", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
449
449
|
writable: !1,
|
|
450
|
-
value:
|
|
451
|
-
}), Object.freeze && (Object.freeze(
|
|
450
|
+
value: G
|
|
451
|
+
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
452
452
|
};
|
|
453
|
-
function
|
|
453
|
+
function _t(d, b, N, E, G) {
|
|
454
454
|
{
|
|
455
|
-
var
|
|
456
|
-
N !== void 0 && (
|
|
457
|
-
for (
|
|
458
|
-
|
|
455
|
+
var W, F = {}, V = null, re = null;
|
|
456
|
+
N !== void 0 && (yn(N), V = "" + N), pt(b) && (yn(b.key), V = "" + b.key), gt(b) && (re = b.ref, bt(b, G));
|
|
457
|
+
for (W in b)
|
|
458
|
+
Ne.call(b, W) && !vt.hasOwnProperty(W) && (F[W] = b[W]);
|
|
459
459
|
if (d && d.defaultProps) {
|
|
460
460
|
var K = d.defaultProps;
|
|
461
|
-
for (
|
|
462
|
-
F[
|
|
461
|
+
for (W in K)
|
|
462
|
+
F[W] === void 0 && (F[W] = K[W]);
|
|
463
463
|
}
|
|
464
|
-
if (
|
|
464
|
+
if (V || re) {
|
|
465
465
|
var q = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
466
|
-
|
|
466
|
+
V && yt(F, q), re && kt(F, q);
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return Nt(d, V, re, G, E, He.current, F);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
function
|
|
471
|
+
var cn = m.ReactCurrentOwner, _n = m.ReactDebugCurrentFrame;
|
|
472
|
+
function Re(d) {
|
|
473
473
|
if (d) {
|
|
474
|
-
var b = d._owner, N =
|
|
475
|
-
|
|
474
|
+
var b = d._owner, N = Ee(d.type, d._source, b ? b.type : null);
|
|
475
|
+
_n.setExtraStackFrame(N);
|
|
476
476
|
} else
|
|
477
|
-
|
|
477
|
+
_n.setExtraStackFrame(null);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
|
|
481
|
-
function
|
|
479
|
+
var on;
|
|
480
|
+
on = !1;
|
|
481
|
+
function ln(d) {
|
|
482
482
|
return typeof d == "object" && d !== null && d.$$typeof === t;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function wn() {
|
|
485
485
|
{
|
|
486
|
-
if (
|
|
487
|
-
var d =
|
|
486
|
+
if (cn.current) {
|
|
487
|
+
var d = R(cn.current.type);
|
|
488
488
|
if (d)
|
|
489
489
|
return `
|
|
490
490
|
|
|
@@ -493,7 +493,7 @@ Check the render method of \`` + d + "`.";
|
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function wt(d) {
|
|
497
497
|
{
|
|
498
498
|
if (d !== void 0) {
|
|
499
499
|
var b = d.fileName.replace(/^.*[\\\/]/, ""), N = d.lineNumber;
|
|
@@ -504,10 +504,10 @@ Check your code at ` + b + ":" + N + ".";
|
|
|
504
504
|
return "";
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
var
|
|
508
|
-
function
|
|
507
|
+
var Sn = {};
|
|
508
|
+
function St(d) {
|
|
509
509
|
{
|
|
510
|
-
var b =
|
|
510
|
+
var b = wn();
|
|
511
511
|
if (!b) {
|
|
512
512
|
var N = typeof d == "string" ? d : d.displayName || d.name;
|
|
513
513
|
N && (b = `
|
|
@@ -517,39 +517,39 @@ Check the top-level render call using <` + N + ">.");
|
|
|
517
517
|
return b;
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Mn(d, b) {
|
|
521
521
|
{
|
|
522
522
|
if (!d._store || d._store.validated || d.key != null)
|
|
523
523
|
return;
|
|
524
524
|
d._store.validated = !0;
|
|
525
|
-
var N =
|
|
526
|
-
if (
|
|
525
|
+
var N = St(b);
|
|
526
|
+
if (Sn[N])
|
|
527
527
|
return;
|
|
528
|
-
|
|
529
|
-
var
|
|
530
|
-
d && d._owner && d._owner !==
|
|
528
|
+
Sn[N] = !0;
|
|
529
|
+
var E = "";
|
|
530
|
+
d && d._owner && d._owner !== cn.current && (E = " It was passed a child from " + R(d._owner.type) + "."), Re(d), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', N, E), Re(null);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function En(d, b) {
|
|
534
534
|
{
|
|
535
535
|
if (typeof d != "object")
|
|
536
536
|
return;
|
|
537
|
-
if (
|
|
537
|
+
if (_e(d))
|
|
538
538
|
for (var N = 0; N < d.length; N++) {
|
|
539
|
-
var
|
|
540
|
-
|
|
539
|
+
var E = d[N];
|
|
540
|
+
ln(E) && Mn(E, b);
|
|
541
541
|
}
|
|
542
|
-
else if (
|
|
542
|
+
else if (ln(d))
|
|
543
543
|
d._store && (d._store.validated = !0);
|
|
544
544
|
else if (d) {
|
|
545
|
-
var
|
|
546
|
-
if (typeof
|
|
547
|
-
for (var
|
|
548
|
-
|
|
545
|
+
var G = v(d);
|
|
546
|
+
if (typeof G == "function" && G !== d.entries)
|
|
547
|
+
for (var W = G.call(d), F; !(F = W.next()).done; )
|
|
548
|
+
ln(F.value) && Mn(F.value, b);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Mt(d) {
|
|
553
553
|
{
|
|
554
554
|
var b = d.type;
|
|
555
555
|
if (b == null || typeof b == "string")
|
|
@@ -557,93 +557,93 @@ Check the top-level render call using <` + N + ">.");
|
|
|
557
557
|
var N;
|
|
558
558
|
if (typeof b == "function")
|
|
559
559
|
N = b.propTypes;
|
|
560
|
-
else if (typeof b == "object" && (b.$$typeof ===
|
|
560
|
+
else if (typeof b == "object" && (b.$$typeof === o || // Note: Memo only checks outer props here.
|
|
561
561
|
// Inner props are checked in the reconciler.
|
|
562
562
|
b.$$typeof === f))
|
|
563
563
|
N = b.propTypes;
|
|
564
564
|
else
|
|
565
565
|
return;
|
|
566
566
|
if (N) {
|
|
567
|
-
var
|
|
568
|
-
|
|
569
|
-
} else if (b.PropTypes !== void 0 && !
|
|
570
|
-
|
|
571
|
-
var
|
|
572
|
-
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
567
|
+
var E = R(b);
|
|
568
|
+
tn(N, d.props, "prop", E, d);
|
|
569
|
+
} else if (b.PropTypes !== void 0 && !on) {
|
|
570
|
+
on = !0;
|
|
571
|
+
var G = R(b);
|
|
572
|
+
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
|
|
573
573
|
}
|
|
574
574
|
typeof b.getDefaultProps == "function" && !b.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Et(d) {
|
|
578
578
|
{
|
|
579
579
|
for (var b = Object.keys(d.props), N = 0; N < b.length; N++) {
|
|
580
|
-
var
|
|
581
|
-
if (
|
|
582
|
-
|
|
580
|
+
var E = b[N];
|
|
581
|
+
if (E !== "children" && E !== "key") {
|
|
582
|
+
Re(d), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Re(null);
|
|
583
583
|
break;
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
d.ref !== null && (
|
|
586
|
+
d.ref !== null && (Re(d), p("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
var
|
|
590
|
-
function
|
|
589
|
+
var Rn = {};
|
|
590
|
+
function $n(d, b, N, E, G, W) {
|
|
591
591
|
{
|
|
592
592
|
var F = M(d);
|
|
593
593
|
if (!F) {
|
|
594
|
-
var
|
|
595
|
-
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (
|
|
596
|
-
var re =
|
|
597
|
-
re ?
|
|
594
|
+
var V = "";
|
|
595
|
+
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
|
+
var re = wt(G);
|
|
597
|
+
re ? V += re : V += wn();
|
|
598
598
|
var K;
|
|
599
|
-
d === null ? K = "null" :
|
|
599
|
+
d === null ? K = "null" : _e(d) ? K = "array" : d !== void 0 && d.$$typeof === t ? (K = "<" + (R(d.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : K = typeof d, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, V);
|
|
600
600
|
}
|
|
601
|
-
var q =
|
|
601
|
+
var q = _t(d, b, N, G, W);
|
|
602
602
|
if (q == null)
|
|
603
603
|
return q;
|
|
604
604
|
if (F) {
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
607
|
-
if (
|
|
608
|
-
if (
|
|
609
|
-
for (var
|
|
610
|
-
|
|
611
|
-
Object.freeze && Object.freeze(
|
|
605
|
+
var ae = b.children;
|
|
606
|
+
if (ae !== void 0)
|
|
607
|
+
if (E)
|
|
608
|
+
if (_e(ae)) {
|
|
609
|
+
for (var $e = 0; $e < ae.length; $e++)
|
|
610
|
+
En(ae[$e], d);
|
|
611
|
+
Object.freeze && Object.freeze(ae);
|
|
612
612
|
} else
|
|
613
613
|
p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
|
|
615
|
+
En(ae, d);
|
|
616
616
|
}
|
|
617
|
-
if (
|
|
618
|
-
var
|
|
619
|
-
return
|
|
620
|
-
}),
|
|
621
|
-
if (!
|
|
622
|
-
var
|
|
617
|
+
if (Ne.call(b, "key")) {
|
|
618
|
+
var we = R(d), oe = Object.keys(b).filter(function(Vt) {
|
|
619
|
+
return Vt !== "key";
|
|
620
|
+
}), an = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
621
|
+
if (!Rn[we + an]) {
|
|
622
|
+
var Ot = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
|
|
623
623
|
p(`A props object containing a "key" prop is being spread into JSX:
|
|
624
624
|
let props = %s;
|
|
625
625
|
<%s {...props} />
|
|
626
626
|
React keys must be passed directly to JSX without using spread:
|
|
627
627
|
let props = %s;
|
|
628
|
-
<%s key={someKey} {...props} />`,
|
|
628
|
+
<%s key={someKey} {...props} />`, an, we, Ot, we), Rn[we + an] = !0;
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
return d === s ?
|
|
631
|
+
return d === s ? Et(q) : Mt(q), q;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
function Mt(d, b, N) {
|
|
635
|
-
return Rn(d, b, N, !0);
|
|
636
|
-
}
|
|
637
634
|
function Rt(d, b, N) {
|
|
638
|
-
return
|
|
635
|
+
return $n(d, b, N, !0);
|
|
636
|
+
}
|
|
637
|
+
function $t(d, b, N) {
|
|
638
|
+
return $n(d, b, N, !1);
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
|
|
642
|
-
}()),
|
|
640
|
+
var Lt = $t, Tt = Rt;
|
|
641
|
+
Ie.Fragment = s, Ie.jsx = Lt, Ie.jsxs = Tt;
|
|
642
|
+
}()), Ie;
|
|
643
643
|
}
|
|
644
|
-
process.env.NODE_ENV === "production" ?
|
|
645
|
-
var e =
|
|
646
|
-
const
|
|
644
|
+
process.env.NODE_ENV === "production" ? xn.exports = Pt() : xn.exports = Ht();
|
|
645
|
+
var e = xn.exports;
|
|
646
|
+
const At = (n) => Ye({ ...n, className: (n.className ?? "") + " outline-button" }), Q = (n) => Ye({ ...n, className: (n.className ?? "") + " text-button" }), It = (n) => Ye({ ...n, className: (n.className ?? "") + " total-button" }), Bt = (n) => Ye({ ...n, className: (n.className ?? "") + " filled-button" }), Ye = (n) => {
|
|
647
647
|
const t = (r) => {
|
|
648
648
|
n.onClick && n.onClick(r);
|
|
649
649
|
let s = document.createElement("span");
|
|
@@ -654,8 +654,8 @@ const Pt = (n) => Ie({ ...n, className: (n.className ?? "") + " outline-button"
|
|
|
654
654
|
}, 500);
|
|
655
655
|
};
|
|
656
656
|
return /* @__PURE__ */ e.jsx("button", { ...n, className: (n.className ?? "") + " btn", onClick: t, children: /* @__PURE__ */ e.jsx("span", { children: n.children }) });
|
|
657
|
-
},
|
|
658
|
-
function
|
|
657
|
+
}, Jn = ({ styleType: n = "base", ...t }) => n === "outline" ? At({ ...t }) : n === "text" ? Q({ ...t }) : n === "filledTotal" ? It({ ...t }) : n === "filled" ? Bt({ ...t }) : Ye({ ...t });
|
|
658
|
+
function zt(n) {
|
|
659
659
|
let t = n.getBoundingClientRect();
|
|
660
660
|
return {
|
|
661
661
|
top: t.top + window.pageYOffset,
|
|
@@ -664,20 +664,20 @@ function Bt(n) {
|
|
|
664
664
|
left: t.left + window.pageXOffset
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Gt(n) {
|
|
668
668
|
let t = document.createElement("span");
|
|
669
669
|
t.classList.add("btn-overlay");
|
|
670
|
-
const r =
|
|
670
|
+
const r = zt(n.target);
|
|
671
671
|
let s = n.pageX - r.left, c = n.pageY - r.top;
|
|
672
672
|
t.style.left = s + "px", t.style.top = c + "px", n.currentTarget.appendChild(t), setTimeout(() => {
|
|
673
673
|
t.remove();
|
|
674
674
|
}, 500);
|
|
675
675
|
}
|
|
676
|
-
const
|
|
677
|
-
const
|
|
678
|
-
s && s(u),
|
|
676
|
+
const pe = ({ transparent: n, icon: t, className: r, onClick: s, onContextMenu: c, disabled: i, classNameContainer: l, style: a }) => {
|
|
677
|
+
const o = (u) => {
|
|
678
|
+
s && s(u), Gt(u);
|
|
679
679
|
};
|
|
680
|
-
return /* @__PURE__ */ e.jsx("button", { style: { backgroundColor: n ? "transparent" : void 0, ...
|
|
680
|
+
return /* @__PURE__ */ e.jsx("button", { style: { backgroundColor: n ? "transparent" : void 0, ...a }, className: `iconbutton ${r}`, onClick: o, onContextMenu: c, disabled: i, children: /* @__PURE__ */ e.jsx("div", { className: `${l} iconbutton-container`, children: t }) });
|
|
681
681
|
};
|
|
682
682
|
const P = ({ className: n, onClick: t, children: r, dpi: s = "24", size: c }) => /* @__PURE__ */ e.jsx("svg", { style: { width: c, height: c }, onClick: t, className: `${n} icon-base`, viewBox: `0 0 ${s} ${s}`, xmlns: "http://www.w3.org/2000/svg", children: r });
|
|
683
683
|
function J(n) {
|
|
@@ -687,14 +687,14 @@ function J(n) {
|
|
|
687
687
|
tertiaryColor: n.tertiaryColor ?? n.baseColor ?? "var(--On-surface-color)"
|
|
688
688
|
};
|
|
689
689
|
}
|
|
690
|
-
const
|
|
690
|
+
const Yt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} icon-trash`, children: /* @__PURE__ */ e.jsx("path", { stroke: "var(--Error-color)", fill: "none", d: "M18 6L17.1991 18.0129C17.129 19.065 17.0939 19.5911 16.8667 19.99C16.6666 20.3412 16.3648 20.6235 16.0011 20.7998C15.588 21 15.0607 21 14.0062 21H9.99377C8.93927 21 8.41202 21 7.99889 20.7998C7.63517 20.6235 7.33339 20.3412 7.13332 19.99C6.90607 19.5911 6.871 19.065 6.80086 18.0129L6 6M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) }), Oe = (n) => /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsx("g", { id: "Page-1", stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", children: /* @__PURE__ */ e.jsxs("g", { id: "Close", children: [
|
|
691
691
|
/* @__PURE__ */ e.jsx("rect", { id: "Rectangle", "fill-rule": "nonzero", x: "0", y: "0", width: "24", height: "24" }),
|
|
692
692
|
/* @__PURE__ */ e.jsx("line", { x1: "16.9999", y1: "7", x2: "7.00001", y2: "16.9999", id: "Path", stroke: "var(--On-surface-color)", "stroke-width": "2", "stroke-linecap": "round" }),
|
|
693
693
|
/* @__PURE__ */ e.jsx("line", { x1: "7.00006", y1: "7", x2: "17", y2: "16.9999", id: "Path", stroke: "var(--On-surface-color)", "stroke-width": "2", "stroke-linecap": "round" })
|
|
694
|
-
] }) }) }),
|
|
694
|
+
] }) }) }), Se = (n) => {
|
|
695
695
|
const t = J(n);
|
|
696
696
|
return /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M4 12.6111L8.92308 17.5L20 6.5", stroke: t.primaryColor, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
697
|
-
},
|
|
697
|
+
}, On = (n) => {
|
|
698
698
|
const t = J(n);
|
|
699
699
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
700
700
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
|
|
@@ -705,7 +705,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
705
705
|
" "
|
|
706
706
|
] })
|
|
707
707
|
] });
|
|
708
|
-
},
|
|
708
|
+
}, Wt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, dpi: "512", children: /* @__PURE__ */ e.jsxs("g", { style: { width: "100%" }, children: [
|
|
709
709
|
/* @__PURE__ */ e.jsx("path", { d: `M133.977,245.743c4.662,1.718,9.756,2.564,15.006,2.315c7.873-0.355,15.159-3.118,21.05-7.512
|
|
710
710
|
c5.9-4.4,10.456-10.425,13.043-17.428c1.73-4.668,2.564-9.759,2.319-15.007c-0.355-7.873-3.119-15.162-7.513-21.05
|
|
711
711
|
c-4.398-5.894-10.432-10.457-17.431-13.052c-4.662-1.718-9.757-2.558-15-2.315c-7.877,0.361-15.162,3.118-21.056,7.513
|
|
@@ -758,7 +758,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
758
758
|
c2.126,46.158,17.792,90.082,45.309,127.022c26.851,36.013,63.241,63.256,105.229,78.773c25.525,9.43,52.336,14.21,79.685,14.21
|
|
759
759
|
c3.6,0,7.214-0.081,10.848-0.255c31.087-1.438,60.913-8.926,88.644-22.258c26.736-12.846,50.478-30.598,70.567-52.762
|
|
760
760
|
C466.998,391.463,488.499,332.501,486.476,270.708z` })
|
|
761
|
-
] }) }),
|
|
761
|
+
] }) }), Zt = (n) => {
|
|
762
762
|
const t = J(n);
|
|
763
763
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
764
764
|
/* @__PURE__ */ e.jsx("path", { stroke: t.primaryColor, fill: "none", d: "M2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12V14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V12Z", "stroke-width": "1.5" }),
|
|
@@ -772,14 +772,14 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
772
772
|
/* @__PURE__ */ e.jsx("path", { d: "M8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16C7.55228 16 8 16.4477 8 17Z", fill: t.primaryColor }),
|
|
773
773
|
/* @__PURE__ */ e.jsx("path", { d: "M8 13C8 13.5523 7.55228 14 7 14C6.44772 14 6 13.5523 6 13C6 12.4477 6.44772 12 7 12C7.55228 12 8 12.4477 8 13Z", fill: t.primaryColor })
|
|
774
774
|
] });
|
|
775
|
-
},
|
|
775
|
+
}, Kn = (n) => /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
776
776
|
/* @__PURE__ */ e.jsx("circle", { stroke: "var(--On-surface-color)", fill: "none", cx: "12", cy: "12", r: "10", "stroke-width": "1.5" }),
|
|
777
777
|
/* @__PURE__ */ e.jsx("path", { stroke: "var(--On-surface-color)", fill: "none", d: "M12 8V12L14.5 14.5", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
778
|
-
] }),
|
|
778
|
+
] }), jn = (n) => /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zm14 0a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zM13.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0z" }) }), Xt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12 6.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zm0 14a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zM13.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0z" }) }), qn = (n) => /* @__PURE__ */ e.jsxs(P, { ...n, dpi: "52", children: [
|
|
779
779
|
/* @__PURE__ */ e.jsx("path", { d: "M50,12.5H2a2,2,0,0,1,0-4H50a2,2,0,0,1,0,4Z" }),
|
|
780
780
|
/* @__PURE__ */ e.jsx("path", { d: "M50,28H2a2,2,0,0,1,0-4H50a2,2,0,0,1,0,4Z" }),
|
|
781
781
|
/* @__PURE__ */ e.jsx("path", { d: "M50,43.5H2a2,2,0,0,1,0-4H50a2,2,0,0,1,0,4Z" })
|
|
782
|
-
] }),
|
|
782
|
+
] }), Ut = (n) => {
|
|
783
783
|
const t = J(n);
|
|
784
784
|
return /* @__PURE__ */ e.jsxs(P, { ...n, dpi: "24", children: [
|
|
785
785
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
|
|
@@ -790,7 +790,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
790
790
|
" "
|
|
791
791
|
] })
|
|
792
792
|
] });
|
|
793
|
-
},
|
|
793
|
+
}, hs = (n) => {
|
|
794
794
|
const t = J(n);
|
|
795
795
|
return /* @__PURE__ */ e.jsxs(P, { ...n, dpi: "24", children: [
|
|
796
796
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
|
|
@@ -801,7 +801,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
801
801
|
" "
|
|
802
802
|
] })
|
|
803
803
|
] });
|
|
804
|
-
},
|
|
804
|
+
}, fs = (n) => {
|
|
805
805
|
const t = J(n);
|
|
806
806
|
return /* @__PURE__ */ e.jsxs(P, { ...n, dpi: "24", children: [
|
|
807
807
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
|
|
@@ -812,16 +812,16 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
812
812
|
" "
|
|
813
813
|
] })
|
|
814
814
|
] });
|
|
815
|
-
},
|
|
815
|
+
}, Jt = (n) => /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
816
816
|
/* @__PURE__ */ e.jsx("path", { fill: "none", stroke: "var(--On-surface-color)", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.5 11.1455C5.49956 8.21437 7.56975 5.69108 10.4445 5.11883C13.3193 4.54659 16.198 6.08477 17.32 8.79267C18.4421 11.5006 17.495 14.624 15.058 16.2528C12.621 17.8815 9.37287 17.562 7.3 15.4895C6.14763 14.3376 5.50014 12.775 5.5 11.1455Z", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
817
817
|
/* @__PURE__ */ e.jsx("path", { fill: "none", d: "M15.989 15.4905L19.5 19.0015", stroke: "var(--On-surface-color)", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
818
|
-
] }),
|
|
818
|
+
] }), xs = (n) => /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16.25 3.75V5.43953L18.25 7.03953V3.75H16.25ZM19.75 8.23953V3.5C19.75 2.80964 19.1904 2.25 18.5 2.25H16C15.3097 2.25 14.75 2.80964 14.75 3.5V4.23953L14.3426 3.91362C12.9731 2.81796 11.027 2.81796 9.65742 3.91362L1.53151 10.4143C1.20806 10.6731 1.15562 11.1451 1.41438 11.4685C1.67313 11.792 2.1451 11.8444 2.46855 11.5857L3.25003 10.9605V21.25H2.00003C1.58581 21.25 1.25003 21.5858 1.25003 22C1.25003 22.4142 1.58581 22.75 2.00003 22.75H22C22.4142 22.75 22.75 22.4142 22.75 22C22.75 21.5858 22.4142 21.25 22 21.25H20.75V10.9605L21.5315 11.5857C21.855 11.8444 22.3269 11.792 22.5857 11.4685C22.8444 11.1451 22.792 10.6731 22.4685 10.4143L19.75 8.23953ZM19.25 9.76047L13.4056 5.08492C12.5838 4.42753 11.4162 4.42753 10.5945 5.08492L4.75003 9.76047V21.25H8.25003L8.25003 16.9506C8.24999 16.2858 8.24996 15.7129 8.31163 15.2542C8.37773 14.7625 8.52679 14.2913 8.90904 13.909C9.29128 13.5268 9.76255 13.3777 10.2542 13.3116C10.7129 13.2499 11.2858 13.25 11.9507 13.25H12.0494C12.7143 13.25 13.2871 13.2499 13.7459 13.3116C14.2375 13.3777 14.7088 13.5268 15.091 13.909C15.4733 14.2913 15.6223 14.7625 15.6884 15.2542C15.7501 15.7129 15.7501 16.2858 15.75 16.9506L15.75 21.25H19.25V9.76047ZM14.25 21.25V17C14.25 16.2717 14.2484 15.8009 14.2018 15.454C14.1581 15.1287 14.0875 15.0268 14.0304 14.9697C13.9733 14.9126 13.8713 14.842 13.546 14.7982C13.1991 14.7516 12.7283 14.75 12 14.75C11.2717 14.75 10.8009 14.7516 10.4541 14.7982C10.1288 14.842 10.0268 14.9126 9.9697 14.9697C9.9126 15.0268 9.84199 15.1287 9.79826 15.454C9.75162 15.8009 9.75003 16.2717 9.75003 17V21.25H14.25ZM12 8.25C11.3097 8.25 10.75 8.80964 10.75 9.5C10.75 10.1904 11.3097 10.75 12 10.75C12.6904 10.75 13.25 10.1904 13.25 9.5C13.25 8.80964 12.6904 8.25 12 8.25ZM9.25003 9.5C9.25003 7.98122 10.4812 6.75 12 6.75C13.5188 6.75 14.75 7.98122 14.75 9.5C14.75 11.0188 13.5188 12.25 12 12.25C10.4812 12.25 9.25003 11.0188 9.25003 9.5Z" }) }), Qn = (n) => /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsx("path", { stroke: "var(--On-surface-color)", fill: "none", d: "M8 12H16M12 8V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) }), Cn = (n) => /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
819
819
|
/* @__PURE__ */ e.jsx("path", { fill: "none", d: "M16 12L12 12L8 12", stroke: "#000000", "stroke-width": "2", "stroke-linecap": "round" }),
|
|
820
820
|
/* @__PURE__ */ e.jsx("circle", { fill: "none", cx: "12", cy: "12", r: "10", stroke: "#000000", "stroke-width": "2" })
|
|
821
|
-
] }),
|
|
821
|
+
] }), Kt = (n) => {
|
|
822
822
|
const t = J(n);
|
|
823
823
|
return /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", stroke: t.primaryColor, d: "M15.4998 5.49994L18.3282 8.32837M3 20.9997L3.04745 20.6675C3.21536 19.4922 3.29932 18.9045 3.49029 18.3558C3.65975 17.8689 3.89124 17.4059 4.17906 16.9783C4.50341 16.4963 4.92319 16.0765 5.76274 15.237L17.4107 3.58896C18.1918 2.80791 19.4581 2.80791 20.2392 3.58896C21.0202 4.37001 21.0202 5.63634 20.2392 6.41739L8.37744 18.2791C7.61579 19.0408 7.23497 19.4216 6.8012 19.7244C6.41618 19.9932 6.00093 20.2159 5.56398 20.3879C5.07171 20.5817 4.54375 20.6882 3.48793 20.9012L3 20.9997Z", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
824
|
-
},
|
|
824
|
+
}, qt = (n) => /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
825
825
|
/* @__PURE__ */ e.jsx("path", { d: "M7 9C7 9.55229 6.55229 10 6 10C5.44772 10 5 9.55229 5 9C5 8.44772 5.44772 8 6 8C6.55229 8 7 8.44772 7 9Z" }),
|
|
826
826
|
/* @__PURE__ */ e.jsx("path", { d: "M7 12C7 12.5523 6.55229 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55229 11 7 11.4477 7 12Z" }),
|
|
827
827
|
/* @__PURE__ */ e.jsx("path", { d: "M10 12C10 12.5523 9.55229 13 9 13C8.44772 13 8 12.5523 8 12C8 11.4477 8.44772 11 9 11C9.55229 11 10 11.4477 10 12Z" }),
|
|
@@ -833,16 +833,16 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
833
833
|
/* @__PURE__ */ e.jsx("path", { d: "M19 9C19 9.55229 18.5523 10 18 10C17.4477 10 17 9.55229 17 9C17 8.44772 17.4477 8 18 8C18.5523 8 19 8.44772 19 9Z" }),
|
|
834
834
|
/* @__PURE__ */ e.jsx("path", { d: "M19 12C19 12.5523 18.5523 13 18 13C17.4477 13 17 12.5523 17 12C17 11.4477 17.4477 11 18 11C18.5523 11 19 11.4477 19 12Z" }),
|
|
835
835
|
/* @__PURE__ */ e.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.94513 4.25H16.0549C17.4225 4.24998 18.5248 4.24996 19.3918 4.36652C20.2919 4.48754 21.0497 4.74643 21.6517 5.34835C22.2536 5.95027 22.5125 6.70814 22.6335 7.60825C22.75 8.47522 22.75 9.57754 22.75 10.9451V13.0549C22.75 14.4225 22.75 15.5248 22.6335 16.3918C22.5125 17.2919 22.2536 18.0497 21.6517 18.6517C21.0497 19.2536 20.2919 19.5125 19.3918 19.6335C18.5248 19.75 17.4225 19.75 16.0549 19.75H7.94513C6.57754 19.75 5.47522 19.75 4.60825 19.6335C3.70814 19.5125 2.95027 19.2536 2.34835 18.6517C1.74643 18.0497 1.48754 17.2919 1.36652 16.3918C1.24996 15.5248 1.24998 14.4225 1.25 13.0549V10.9451C1.24998 9.57754 1.24996 8.47522 1.36652 7.60825C1.48754 6.70814 1.74643 5.95027 2.34835 5.34835C2.95027 4.74643 3.70814 4.48754 4.60825 4.36652C5.47522 4.24996 6.57754 4.24998 7.94513 4.25ZM4.80812 5.85315C4.07435 5.9518 3.68577 6.13225 3.40901 6.40901C3.13225 6.68577 2.9518 7.07435 2.85315 7.80812C2.75159 8.56347 2.75 9.56458 2.75 11V13C2.75 14.4354 2.75159 15.4365 2.85315 16.1919C2.9518 16.9257 3.13225 17.3142 3.40901 17.591C3.68577 17.8678 4.07435 18.0482 4.80812 18.1469C5.56347 18.2484 6.56458 18.25 8 18.25H16C17.4354 18.25 18.4365 18.2484 19.1919 18.1469C19.9257 18.0482 20.3142 17.8678 20.591 17.591C20.8678 17.3142 21.0482 16.9257 21.1469 16.1919C21.2484 15.4365 21.25 14.4354 21.25 13V11C21.25 9.56459 21.2484 8.56347 21.1469 7.80812C21.0482 7.07435 20.8678 6.68577 20.591 6.40901C20.3142 6.13225 19.9257 5.9518 19.1919 5.85315C18.4365 5.75159 17.4354 5.75 16 5.75H8C6.56458 5.75 5.56347 5.75159 4.80812 5.85315ZM6.25 16C6.25 15.5858 6.58579 15.25 7 15.25H17C17.4142 15.25 17.75 15.5858 17.75 16C17.75 16.4142 17.4142 16.75 17 16.75H7C6.58579 16.75 6.25 16.4142 6.25 16Z" })
|
|
836
|
-
] }),
|
|
836
|
+
] }), Qt = (n) => {
|
|
837
837
|
const t = J(n);
|
|
838
838
|
return /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M6 12H18M12 6V18", stroke: t.primaryColor, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
839
|
-
},
|
|
839
|
+
}, er = (n) => {
|
|
840
840
|
const t = J(n);
|
|
841
841
|
return /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsx("path", { d: "M6 12L18 12", fill: "none", stroke: t.primaryColor, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
842
|
-
},
|
|
842
|
+
}, js = (n) => {
|
|
843
843
|
const t = J(n);
|
|
844
844
|
return /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M17 9V12C17 14.7614 14.7614 17 12 17M7 9V12C7 14.7614 9.23858 17 12 17M12 17V21M8 3V6M16 3V6M5 9H19", stroke: t.primaryColor, "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }) });
|
|
845
|
-
},
|
|
845
|
+
}, ms = (n) => {
|
|
846
846
|
const { primaryColor: t } = J(n);
|
|
847
847
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
848
848
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
@@ -890,7 +890,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
890
890
|
)
|
|
891
891
|
] })
|
|
892
892
|
] });
|
|
893
|
-
},
|
|
893
|
+
}, Cs = (n) => {
|
|
894
894
|
const { primaryColor: t } = J(n);
|
|
895
895
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
896
896
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
@@ -923,7 +923,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
923
923
|
}
|
|
924
924
|
) })
|
|
925
925
|
] });
|
|
926
|
-
},
|
|
926
|
+
}, vs = (n) => {
|
|
927
927
|
const { primaryColor: t } = J(n);
|
|
928
928
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
929
929
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
|
|
@@ -934,7 +934,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
934
934
|
" "
|
|
935
935
|
] })
|
|
936
936
|
] });
|
|
937
|
-
},
|
|
937
|
+
}, gs = (n) => {
|
|
938
938
|
const { primaryColor: t, secondaryColor: r } = J(n);
|
|
939
939
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
940
940
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
@@ -992,7 +992,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
992
992
|
)
|
|
993
993
|
] })
|
|
994
994
|
] });
|
|
995
|
-
},
|
|
995
|
+
}, ps = (n) => {
|
|
996
996
|
const { primaryColor: t, secondaryColor: r } = J(n);
|
|
997
997
|
return /* @__PURE__ */ e.jsx(P, { ...n, children: /* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
998
998
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1027,7 +1027,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
1027
1027
|
}
|
|
1028
1028
|
)
|
|
1029
1029
|
] }) });
|
|
1030
|
-
},
|
|
1030
|
+
}, bs = (n) => {
|
|
1031
1031
|
const { primaryColor: t, secondaryColor: r } = J(n);
|
|
1032
1032
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
1033
1033
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
@@ -1079,7 +1079,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
1079
1079
|
)
|
|
1080
1080
|
] })
|
|
1081
1081
|
] });
|
|
1082
|
-
},
|
|
1082
|
+
}, ys = (n) => {
|
|
1083
1083
|
const { primaryColor: t, secondaryColor: r } = J(n);
|
|
1084
1084
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
1085
1085
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
@@ -1143,7 +1143,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
1143
1143
|
)
|
|
1144
1144
|
] })
|
|
1145
1145
|
] });
|
|
1146
|
-
},
|
|
1146
|
+
}, ks = (n) => {
|
|
1147
1147
|
const { primaryColor: t, secondaryColor: r } = J(n);
|
|
1148
1148
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
1149
1149
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
|
|
@@ -1199,7 +1199,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
1199
1199
|
)
|
|
1200
1200
|
] })
|
|
1201
1201
|
] });
|
|
1202
|
-
},
|
|
1202
|
+
}, Ns = (n) => {
|
|
1203
1203
|
const { primaryColor: t, secondaryColor: r } = J(n);
|
|
1204
1204
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
1205
1205
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
|
|
@@ -1269,7 +1269,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
1269
1269
|
)
|
|
1270
1270
|
] })
|
|
1271
1271
|
] });
|
|
1272
|
-
},
|
|
1272
|
+
}, _s = (n) => {
|
|
1273
1273
|
const { primaryColor: t } = J(n);
|
|
1274
1274
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
1275
1275
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
@@ -1316,7 +1316,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
1316
1316
|
)
|
|
1317
1317
|
] })
|
|
1318
1318
|
] });
|
|
1319
|
-
},
|
|
1319
|
+
}, ws = (n) => {
|
|
1320
1320
|
const { primaryColor: t } = J(n);
|
|
1321
1321
|
return /* @__PURE__ */ e.jsxs(P, { ...n, dpi: "124", children: [
|
|
1322
1322
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
|
|
@@ -1355,7 +1355,7 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
1355
1355
|
}
|
|
1356
1356
|
) }) })
|
|
1357
1357
|
] });
|
|
1358
|
-
},
|
|
1358
|
+
}, Vn = (n) => {
|
|
1359
1359
|
const { primaryColor: t, secondaryColor: r } = J(n);
|
|
1360
1360
|
return /* @__PURE__ */ e.jsxs(P, { ...n, children: [
|
|
1361
1361
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
|
|
@@ -1395,31 +1395,31 @@ const zt = (n) => /* @__PURE__ */ e.jsx(P, { ...n, className: `${n.className} ic
|
|
|
1395
1395
|
] });
|
|
1396
1396
|
};
|
|
1397
1397
|
var ce = /* @__PURE__ */ ((n) => (n.MOBILE = "MOBILE", n.STANDART = "STANDART", n.BIG_SCREEN = "BIG_SCREEN", n))(ce || {});
|
|
1398
|
-
const
|
|
1398
|
+
const et = {
|
|
1399
1399
|
[ce.MOBILE]: "small-screen",
|
|
1400
1400
|
[ce.STANDART]: "standart-screen",
|
|
1401
1401
|
[ce.BIG_SCREEN]: "big-screen"
|
|
1402
1402
|
};
|
|
1403
|
-
function
|
|
1404
|
-
return `var(--${n}-${
|
|
1403
|
+
function Dn(n, t = ce.STANDART) {
|
|
1404
|
+
return `var(--${n}-${et[t]})`;
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function Fn(n, t = "standart") {
|
|
1407
1407
|
return `var(--${n}-${t})`;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1410
|
-
return `var(--${n}-heights-${
|
|
1409
|
+
function Pn(n, t = "normal", r = ce.STANDART) {
|
|
1410
|
+
return `var(--${n}-heights-${et[r]}-${t})`;
|
|
1411
1411
|
}
|
|
1412
|
-
const
|
|
1413
|
-
var t, r, s, c, i,
|
|
1412
|
+
const me = (n) => {
|
|
1413
|
+
var t, r, s, c, i, l;
|
|
1414
1414
|
return n.type === "heading" || n.type === "title" ? /* @__PURE__ */ e.jsx(
|
|
1415
1415
|
"h3",
|
|
1416
1416
|
{
|
|
1417
1417
|
...n,
|
|
1418
1418
|
style: {
|
|
1419
1419
|
...n.style,
|
|
1420
|
-
fontSize: ((t = n.style) == null ? void 0 : t.fontSize) ??
|
|
1421
|
-
fontWeight: ((r = n.style) == null ? void 0 : r.fontWeight) ??
|
|
1422
|
-
lineHeight: ((s = n.style) == null ? void 0 : s.lineHeight) ??
|
|
1420
|
+
fontSize: ((t = n.style) == null ? void 0 : t.fontSize) ?? Dn(n.type, n.screensize),
|
|
1421
|
+
fontWeight: ((r = n.style) == null ? void 0 : r.fontWeight) ?? Fn(n.type, n.weight),
|
|
1422
|
+
lineHeight: ((s = n.style) == null ? void 0 : s.lineHeight) ?? Pn(n.type, n.density, n.screensize)
|
|
1423
1423
|
},
|
|
1424
1424
|
className: `alex-evo-ui-kit alex-evo-ui-kit-heading ${n.className}`
|
|
1425
1425
|
}
|
|
@@ -1429,73 +1429,73 @@ const xe = (n) => {
|
|
|
1429
1429
|
...n,
|
|
1430
1430
|
style: {
|
|
1431
1431
|
...n.style,
|
|
1432
|
-
fontSize: ((c = n.style) == null ? void 0 : c.fontSize) ??
|
|
1433
|
-
fontWeight: ((i = n.style) == null ? void 0 : i.fontWeight) ??
|
|
1434
|
-
lineHeight: ((
|
|
1432
|
+
fontSize: ((c = n.style) == null ? void 0 : c.fontSize) ?? Dn(n.type, n.screensize),
|
|
1433
|
+
fontWeight: ((i = n.style) == null ? void 0 : i.fontWeight) ?? Fn(n.type, n.weight),
|
|
1434
|
+
lineHeight: ((l = n.style) == null ? void 0 : l.lineHeight) ?? Pn(n.type, n.density, n.screensize)
|
|
1435
1435
|
},
|
|
1436
1436
|
className: `alex-evo-ui-kit alex-evo-ui-kit-text ${n.className}`
|
|
1437
1437
|
}
|
|
1438
1438
|
);
|
|
1439
|
-
},
|
|
1439
|
+
}, Hn = ({ transparent: n, className: t, onClick: r, onContextMenu: s, disabled: c, classNameContainer: i, style: l, text: a, supportText: o = !0 }) => {
|
|
1440
1440
|
const [u, h] = _(!1), f = k(async (x) => {
|
|
1441
1441
|
try {
|
|
1442
|
-
await navigator.clipboard.writeText(
|
|
1443
|
-
} catch (
|
|
1444
|
-
console.error("Ошибка копирования",
|
|
1442
|
+
await navigator.clipboard.writeText(a), h(!0), setTimeout(() => h(!1), 2e3);
|
|
1443
|
+
} catch (C) {
|
|
1444
|
+
console.error("Ошибка копирования", C);
|
|
1445
1445
|
}
|
|
1446
1446
|
r && r(x);
|
|
1447
|
-
}, [
|
|
1448
|
-
return
|
|
1447
|
+
}, [a]);
|
|
1448
|
+
return o ? /* @__PURE__ */ e.jsxs("label", { className: "alex-evo-sh-ui-kit-copy-button", children: [
|
|
1449
1449
|
/* @__PURE__ */ e.jsx(
|
|
1450
|
-
|
|
1450
|
+
pe,
|
|
1451
1451
|
{
|
|
1452
|
-
icon: u ? /* @__PURE__ */ e.jsx(
|
|
1452
|
+
icon: u ? /* @__PURE__ */ e.jsx(Se, {}) : /* @__PURE__ */ e.jsx(Vn, {}),
|
|
1453
1453
|
onClick: f,
|
|
1454
1454
|
transparent: n,
|
|
1455
1455
|
className: t,
|
|
1456
1456
|
onContextMenu: s,
|
|
1457
1457
|
disabled: c,
|
|
1458
1458
|
classNameContainer: i,
|
|
1459
|
-
style:
|
|
1459
|
+
style: l
|
|
1460
1460
|
}
|
|
1461
1461
|
),
|
|
1462
|
-
/* @__PURE__ */ e.jsx(
|
|
1462
|
+
/* @__PURE__ */ e.jsx(me, { type: "body", children: u ? "Скопировано!" : "Копировать" })
|
|
1463
1463
|
] }) : /* @__PURE__ */ e.jsx(
|
|
1464
|
-
|
|
1464
|
+
pe,
|
|
1465
1465
|
{
|
|
1466
|
-
icon: u ? /* @__PURE__ */ e.jsx(
|
|
1466
|
+
icon: u ? /* @__PURE__ */ e.jsx(Se, {}) : /* @__PURE__ */ e.jsx(Vn, {}),
|
|
1467
1467
|
onClick: f,
|
|
1468
1468
|
transparent: n,
|
|
1469
1469
|
className: t,
|
|
1470
1470
|
onContextMenu: s,
|
|
1471
1471
|
disabled: c,
|
|
1472
1472
|
classNameContainer: i,
|
|
1473
|
-
style:
|
|
1473
|
+
style: l
|
|
1474
1474
|
}
|
|
1475
1475
|
);
|
|
1476
1476
|
};
|
|
1477
|
-
function
|
|
1477
|
+
function nr(n) {
|
|
1478
1478
|
return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1481
|
-
return n.replace(new RegExp(
|
|
1480
|
+
function nt(n, t, r) {
|
|
1481
|
+
return n.replace(new RegExp(nr(t), "g"), r);
|
|
1482
1482
|
}
|
|
1483
|
-
const
|
|
1484
|
-
let c, i, a, o,
|
|
1485
|
-
if (typeof n != "number" || n < -1 || n > 1 || typeof t != "string" || t[0] != "r" && t[0] != "#" || r && !x || (h = t.length > 9, h = x ? typeof r == "string" && r.length > 9 ? !0 : r == "c" ? !h : !1 : h,
|
|
1483
|
+
const le = (n, t, r = "", s) => {
|
|
1484
|
+
let c, i, l, a, o, u, h, f = Math.round, x = typeof r == "string";
|
|
1485
|
+
if (typeof n != "number" || n < -1 || n > 1 || typeof t != "string" || t[0] != "r" && t[0] != "#" || r && !x || (h = t.length > 9, h = x ? typeof r == "string" && r.length > 9 ? !0 : r == "c" ? !h : !1 : h, o = le.pSBCr(t), a = n < 0, u = r && typeof r == "string" && r != "c" ? le.pSBCr(r) : a ? { r: 0, g: 0, b: 0, a: -1 } : { r: 255, g: 255, b: 255, a: -1 }, n = a ? n * -1 : n, a = 1 - n, !o || !u))
|
|
1486
1486
|
return null;
|
|
1487
|
-
s ? (c = f(
|
|
1488
|
-
let
|
|
1489
|
-
return u = u.a ?? 1,
|
|
1487
|
+
s ? (c = f(a * (o.r ?? 0) + n * (u.r ?? 0)), i = f(a * (o.g ?? 0) + n * (u.g ?? 0)), l = f(a * (o.b ?? 0) + n * (u.b ?? 0))) : (c = f((a * (o.r ?? 0) ** 2 + n * (u.r ?? 0) ** 2) ** 0.5), i = f((a * (o.g ?? 0) ** 2 + n * (u.g ?? 0) ** 2) ** 0.5), l = f((a * (o.b ?? 0) ** 2 + n * (u.b ?? 0) ** 2) ** 0.5));
|
|
1488
|
+
let C = o.a ?? 1;
|
|
1489
|
+
return u = u.a ?? 1, o = C >= 0 || u >= 0, C = C >= 0 || u >= 0 ? C < 0 ? u : u < 0 ? C : C * a + u * n : 0, h ? "rgb" + (o ? "a(" : "(") + c + "," + i + "," + l + (o ? "," + f(C * 1e3) / 1e3 : "") + ")" : "#" + (4294967296 + c * 16777216 + i * 65536 + l * 256 + (o ? f(C * 255) : 0)).toString(16).slice(1, o ? void 0 : -2);
|
|
1490
1490
|
};
|
|
1491
|
-
|
|
1491
|
+
le.pSBCr = (n) => {
|
|
1492
1492
|
const t = parseInt;
|
|
1493
1493
|
let r = n.length, s = {};
|
|
1494
1494
|
if (r > 9) {
|
|
1495
|
-
const c = n.split(","), [i, a, o
|
|
1495
|
+
const c = n.split(","), [i, l, a, o] = c;
|
|
1496
1496
|
if (r = c.length, r < 3 || r > 4)
|
|
1497
1497
|
return null;
|
|
1498
|
-
s.r = t(i[3] == "a" ? i.slice(5) : i.slice(4)), s.g = t(
|
|
1498
|
+
s.r = t(i[3] == "a" ? i.slice(5) : i.slice(4)), s.g = t(l), s.b = t(a), s.a = o ? parseFloat(o) : -1;
|
|
1499
1499
|
} else {
|
|
1500
1500
|
if (r == 8 || r == 6 || r < 4)
|
|
1501
1501
|
return null;
|
|
@@ -1505,7 +1505,7 @@ oe.pSBCr = (n) => {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
return s;
|
|
1507
1507
|
};
|
|
1508
|
-
function
|
|
1508
|
+
function Ss(n, t, r) {
|
|
1509
1509
|
arguments.length === 1 && (t = n.s, r = n.l, n = n.h);
|
|
1510
1510
|
var s = n, c, i;
|
|
1511
1511
|
return r *= 2, t *= r <= 1 ? r : 2 - r, i = (r + t) / 2, c = 2 * t / (r + t), {
|
|
@@ -1514,31 +1514,31 @@ function ws(n, t, r) {
|
|
|
1514
1514
|
v: i
|
|
1515
1515
|
};
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function Ms(n, t, r) {
|
|
1518
1518
|
arguments.length === 1 && (t = n.s, r = n.v, n = n.h);
|
|
1519
1519
|
var s = (2 - t) * r / 2;
|
|
1520
1520
|
return s != 0 && (s == 1 ? t = 0 : s < 0.5 ? t = t * r / (s * 2) : t = t * r / (2 - s * 2)), { h: n, s: t, l: s };
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1523
|
-
var s, c, i, a, o,
|
|
1524
|
-
switch (arguments.length === 1 && (t = n.s, r = n.v, n = n.h),
|
|
1522
|
+
function Be(n, t, r) {
|
|
1523
|
+
var s, c, i, l, a, o, u, h;
|
|
1524
|
+
switch (arguments.length === 1 && (t = n.s, r = n.v, n = n.h), l = Math.floor(n * 6), a = n * 6 - l, o = r * (1 - t), u = r * (1 - a * t), h = r * (1 - (1 - a) * t), l % 6) {
|
|
1525
1525
|
case 0:
|
|
1526
|
-
s = r, c = h, i =
|
|
1526
|
+
s = r, c = h, i = o;
|
|
1527
1527
|
break;
|
|
1528
1528
|
case 1:
|
|
1529
|
-
s = u, c = r, i =
|
|
1529
|
+
s = u, c = r, i = o;
|
|
1530
1530
|
break;
|
|
1531
1531
|
case 2:
|
|
1532
|
-
s =
|
|
1532
|
+
s = o, c = r, i = h;
|
|
1533
1533
|
break;
|
|
1534
1534
|
case 3:
|
|
1535
|
-
s =
|
|
1535
|
+
s = o, c = u, i = r;
|
|
1536
1536
|
break;
|
|
1537
1537
|
case 4:
|
|
1538
|
-
s = h, c =
|
|
1538
|
+
s = h, c = o, i = r;
|
|
1539
1539
|
break;
|
|
1540
1540
|
case 5:
|
|
1541
|
-
s = r, c =
|
|
1541
|
+
s = r, c = o, i = u;
|
|
1542
1542
|
break;
|
|
1543
1543
|
}
|
|
1544
1544
|
return {
|
|
@@ -1547,40 +1547,40 @@ function Pe(n, t, r) {
|
|
|
1547
1547
|
b: Math.round(i * 255)
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function dn(n) {
|
|
1551
1551
|
let t = n.toString(16);
|
|
1552
1552
|
return t.length === 1 && (t = "0" + t), t;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1555
|
-
return
|
|
1554
|
+
function Le(n) {
|
|
1555
|
+
return dn(n.r) + dn(n.g) + dn(n.b);
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function qe(n, t, r) {
|
|
1558
1558
|
arguments.length === 1 && (t = n.g, r = n.b, n = n.r);
|
|
1559
|
-
var s = Math.max(n, t, r), c = Math.min(n, t, r), i = s - c,
|
|
1559
|
+
var s = Math.max(n, t, r), c = Math.min(n, t, r), i = s - c, l, a = s === 0 ? 0 : i / s, o = s / 255;
|
|
1560
1560
|
switch (s) {
|
|
1561
1561
|
case c:
|
|
1562
|
-
|
|
1562
|
+
l = 0;
|
|
1563
1563
|
break;
|
|
1564
1564
|
case n:
|
|
1565
|
-
|
|
1565
|
+
l = t - r + i * (t < r ? 6 : 0), l /= 6 * i;
|
|
1566
1566
|
break;
|
|
1567
1567
|
case t:
|
|
1568
|
-
|
|
1568
|
+
l = r - n + i * 2, l /= 6 * i;
|
|
1569
1569
|
break;
|
|
1570
1570
|
case r:
|
|
1571
|
-
|
|
1571
|
+
l = n - t + i * 4, l /= 6 * i;
|
|
1572
1572
|
break;
|
|
1573
1573
|
}
|
|
1574
1574
|
return {
|
|
1575
|
-
h:
|
|
1576
|
-
s:
|
|
1577
|
-
v:
|
|
1575
|
+
h: l,
|
|
1576
|
+
s: a,
|
|
1577
|
+
v: o
|
|
1578
1578
|
};
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1580
|
+
function Te(n) {
|
|
1581
1581
|
var t = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
|
|
1582
|
-
n = n.replace(t, function(s, c, i,
|
|
1583
|
-
return c + c + i + i +
|
|
1582
|
+
n = n.replace(t, function(s, c, i, l) {
|
|
1583
|
+
return c + c + i + i + l + l;
|
|
1584
1584
|
});
|
|
1585
1585
|
var r = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);
|
|
1586
1586
|
return r ? {
|
|
@@ -1589,20 +1589,20 @@ function He(n) {
|
|
|
1589
1589
|
b: parseInt(r[3], 16)
|
|
1590
1590
|
} : null;
|
|
1591
1591
|
}
|
|
1592
|
-
const
|
|
1592
|
+
const tr = Te, rr = (n) => {
|
|
1593
1593
|
if (!n)
|
|
1594
1594
|
return "linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0))";
|
|
1595
|
-
const t =
|
|
1595
|
+
const t = tr(n);
|
|
1596
1596
|
return t ? `linear-gradient(135deg, rgba(${t.r}, ${t.g}, ${t.b}, 0.1), rgba(${t.r}, ${t.g}, ${t.b}, 0))` : "linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0))";
|
|
1597
1597
|
};
|
|
1598
1598
|
function se(n) {
|
|
1599
|
-
const t =
|
|
1599
|
+
const t = Te(n);
|
|
1600
1600
|
return t ? t.r * 0.299 + t.g * 0.589 + t.b * 0.114 > 186 ? "#000000" : "#FFFFFF" : "#fff";
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1603
|
-
return
|
|
1602
|
+
function ve(n, t = !1) {
|
|
1603
|
+
return le(t ? -0.6 : 0.3, n) ?? n;
|
|
1604
1604
|
}
|
|
1605
|
-
const
|
|
1605
|
+
const sr = (n) => `--${nt(n, "_", "-")}`, cr = (n) => nt(n, "-", "_").slice(2), ir = (n) => ({
|
|
1606
1606
|
Primary_color: n.Primary_color_night,
|
|
1607
1607
|
Secondary_color: n.Secondary_color_night,
|
|
1608
1608
|
Tertiary_color: n.Tertiary_color_night,
|
|
@@ -1611,7 +1611,7 @@ const tr = (n) => `--${Qn(n, "_", "-")}`, rr = (n) => Qn(n, "-", "_").slice(2),
|
|
|
1611
1611
|
Error_color: n.Error_color_night,
|
|
1612
1612
|
Outline_color: n.Outline_color_night,
|
|
1613
1613
|
Shadow_color: n.Shadow_color_night
|
|
1614
|
-
}),
|
|
1614
|
+
}), An = {
|
|
1615
1615
|
Primary_color: {
|
|
1616
1616
|
container: ["Primary_container_color"],
|
|
1617
1617
|
text: ["On_primary_color"]
|
|
@@ -1660,7 +1660,7 @@ const tr = (n) => `--${Qn(n, "_", "-")}`, rr = (n) => Qn(n, "-", "_").slice(2),
|
|
|
1660
1660
|
On_surface_color: {
|
|
1661
1661
|
variant: ["On_surface_variant_color"]
|
|
1662
1662
|
}
|
|
1663
|
-
},
|
|
1663
|
+
}, B = {
|
|
1664
1664
|
Primary_color: "#6750A4",
|
|
1665
1665
|
Secondary_color: "#625B71",
|
|
1666
1666
|
Tertiary_color: "#7D5260",
|
|
@@ -1669,8 +1669,8 @@ const tr = (n) => `--${Qn(n, "_", "-")}`, rr = (n) => Qn(n, "-", "_").slice(2),
|
|
|
1669
1669
|
Error_color: "#B3261E",
|
|
1670
1670
|
Outline_color: "#79747E",
|
|
1671
1671
|
Shadow_color: "#000000"
|
|
1672
|
-
},
|
|
1673
|
-
Primary_color_night:
|
|
1672
|
+
}, Ue = {
|
|
1673
|
+
Primary_color_night: le(0.9, se("#121212"), B.Primary_color) ?? B.Primary_color,
|
|
1674
1674
|
Secondary_color_night: "#625B71",
|
|
1675
1675
|
Tertiary_color_night: "#7D5260",
|
|
1676
1676
|
Surface_container_color_night: "#121212",
|
|
@@ -1678,56 +1678,56 @@ const tr = (n) => `--${Qn(n, "_", "-")}`, rr = (n) => Qn(n, "-", "_").slice(2),
|
|
|
1678
1678
|
Error_color_night: "#B3261E",
|
|
1679
1679
|
Outline_color_night: "#79747E",
|
|
1680
1680
|
Shadow_color_night: "#000000"
|
|
1681
|
-
},
|
|
1682
|
-
...
|
|
1683
|
-
On_primary_color: se(
|
|
1684
|
-
On_secondary_color: se(
|
|
1685
|
-
On_tertiary_color: se(
|
|
1686
|
-
Primary_container_color:
|
|
1687
|
-
Secondary_container_color:
|
|
1688
|
-
Tertiary_container_color:
|
|
1689
|
-
On_primary_container_color: se(
|
|
1690
|
-
On_secondary_container_color: se(
|
|
1691
|
-
On_tertiary_container_color: se(
|
|
1692
|
-
On_background_color: se(
|
|
1693
|
-
Outline_variant_color:
|
|
1694
|
-
Surface_container_high_color:
|
|
1695
|
-
Surface_container_highest_color:
|
|
1696
|
-
Surface_container_low_color:
|
|
1697
|
-
Surface_container_lowest_color:
|
|
1698
|
-
On_surface_color: se(
|
|
1699
|
-
On_error_color: se(
|
|
1700
|
-
Error_container_color:
|
|
1701
|
-
On_error_container_color: se(
|
|
1702
|
-
On_surface_variant_color:
|
|
1703
|
-
},
|
|
1704
|
-
const [n, t] = _(
|
|
1705
|
-
j && document.body.style.setProperty(
|
|
1706
|
-
}, u = (
|
|
1707
|
-
var v,
|
|
1708
|
-
if (t((S) => ({ ...S, [
|
|
1709
|
-
const S =
|
|
1710
|
-
(v = S.container) == null || v.forEach((
|
|
1711
|
-
}
|
|
1712
|
-
}, h = k(async (
|
|
1713
|
-
console.log(
|
|
1714
|
-
for (let j in
|
|
1715
|
-
const g =
|
|
1716
|
-
(v in
|
|
1717
|
-
}
|
|
1718
|
-
}, [r, c]), f = k((
|
|
1719
|
-
const j =
|
|
1681
|
+
}, or = {
|
|
1682
|
+
...B,
|
|
1683
|
+
On_primary_color: se(B.Primary_color),
|
|
1684
|
+
On_secondary_color: se(B.Secondary_color),
|
|
1685
|
+
On_tertiary_color: se(B.Tertiary_color),
|
|
1686
|
+
Primary_container_color: ve(B.Primary_color),
|
|
1687
|
+
Secondary_container_color: ve(B.Secondary_color),
|
|
1688
|
+
Tertiary_container_color: ve(B.Tertiary_color),
|
|
1689
|
+
On_primary_container_color: se(ve(B.Primary_color)),
|
|
1690
|
+
On_secondary_container_color: se(ve(B.Secondary_color)),
|
|
1691
|
+
On_tertiary_container_color: se(ve(B.Tertiary_color)),
|
|
1692
|
+
On_background_color: se(B.Background_color),
|
|
1693
|
+
Outline_variant_color: le(-0.1, B.Outline_color) ?? B.Outline_color,
|
|
1694
|
+
Surface_container_high_color: le(0.1, B.Surface_container_color) ?? B.Surface_container_color,
|
|
1695
|
+
Surface_container_highest_color: le(0.2, B.Surface_container_color) ?? B.Surface_container_color,
|
|
1696
|
+
Surface_container_low_color: le(-0.1, B.Surface_container_color) ?? B.Surface_container_color,
|
|
1697
|
+
Surface_container_lowest_color: le(-0.2, B.Surface_container_color) ?? B.Surface_container_color,
|
|
1698
|
+
On_surface_color: se(B.Surface_container_color),
|
|
1699
|
+
On_error_color: se(B.Error_color),
|
|
1700
|
+
Error_container_color: ve(B.Error_color),
|
|
1701
|
+
On_error_container_color: se(ve(B.Error_color)),
|
|
1702
|
+
On_surface_variant_color: le(-0.1, se(B.Surface_container_color)) ?? se(B.Surface_container_color)
|
|
1703
|
+
}, tt = () => {
|
|
1704
|
+
const [n, t] = _(or), [r, s] = _(B), [c, i] = _(Ue), [l, a] = _(!1), o = (C, j) => {
|
|
1705
|
+
j && document.body.style.setProperty(sr(C), j);
|
|
1706
|
+
}, u = (C, j, g = !1) => {
|
|
1707
|
+
var v, m, p, w, y;
|
|
1708
|
+
if (t((S) => ({ ...S, [C]: j })), o(C, j), C in An) {
|
|
1709
|
+
const S = An[C];
|
|
1710
|
+
(v = S.container) == null || v.forEach((T) => u(T, ve(j, g), g)), (m = S.text) == null || m.forEach((T) => u(T, se(j), g)), (p = S.low) == null || p.forEach((T) => u(T, le(g ? -0.1 : 0.1, j) ?? j, g)), (w = S.high) == null || w.forEach((T) => u(T, le(g ? 0.01 : -0.01, j) ?? j, g)), (y = S.variant) == null || y.forEach((T) => u(T, le(g ? -0.3 : 0.3, j) ?? j, g));
|
|
1711
|
+
}
|
|
1712
|
+
}, h = k(async (C) => {
|
|
1713
|
+
console.log(C);
|
|
1714
|
+
for (let j in C) {
|
|
1715
|
+
const g = C[j], v = cr(j);
|
|
1716
|
+
(v in B || v in Ue) && (j = v), !(!(j in B || j in Ue) || !g) && (j in B ? (c[j + "_night"] === r[j] && i((m) => ({ ...m, [j + "_night"]: g })), s((m) => ({ ...m, [j]: g }))) : j in Ue && i((m) => ({ ...m, [j]: g })));
|
|
1717
|
+
}
|
|
1718
|
+
}, [r, c]), f = k((C) => {
|
|
1719
|
+
const j = C ? ir(c) : r;
|
|
1720
1720
|
for (let g in j)
|
|
1721
|
-
u(g, j[g],
|
|
1722
|
-
}, [c, r]), x = k((
|
|
1723
|
-
|
|
1721
|
+
u(g, j[g], C);
|
|
1722
|
+
}, [c, r]), x = k((C) => {
|
|
1723
|
+
a(C);
|
|
1724
1724
|
}, []);
|
|
1725
1725
|
return $(() => {
|
|
1726
|
-
f(
|
|
1727
|
-
}, [
|
|
1726
|
+
f(l);
|
|
1727
|
+
}, [l, f]), {
|
|
1728
1728
|
colors: n,
|
|
1729
1729
|
setColor: h,
|
|
1730
|
-
nightMode:
|
|
1730
|
+
nightMode: l,
|
|
1731
1731
|
setNightMode: x,
|
|
1732
1732
|
reCalculateColor: f,
|
|
1733
1733
|
lightColor: r,
|
|
@@ -1738,7 +1738,7 @@ const lr = ({ valueDisplayDuration: n = 2e3 }) => {
|
|
|
1738
1738
|
const [t, r] = _(
|
|
1739
1739
|
2
|
|
1740
1740
|
/* CLOSE */
|
|
1741
|
-
), s =
|
|
1741
|
+
), s = Y(), c = Y(), i = () => {
|
|
1742
1742
|
r(
|
|
1743
1743
|
1
|
|
1744
1744
|
/* HIDING */
|
|
@@ -1748,7 +1748,7 @@ const lr = ({ valueDisplayDuration: n = 2e3 }) => {
|
|
|
1748
1748
|
/* CLOSE */
|
|
1749
1749
|
);
|
|
1750
1750
|
}, 500);
|
|
1751
|
-
},
|
|
1751
|
+
}, l = () => {
|
|
1752
1752
|
r(
|
|
1753
1753
|
0
|
|
1754
1754
|
/* OPEN */
|
|
@@ -1759,11 +1759,11 @@ const lr = ({ valueDisplayDuration: n = 2e3 }) => {
|
|
|
1759
1759
|
return $(() => () => {
|
|
1760
1760
|
s.current && window.clearTimeout(s.current), c.current && window.clearTimeout(c.current);
|
|
1761
1761
|
}, []), {
|
|
1762
|
-
showPopup:
|
|
1762
|
+
showPopup: l,
|
|
1763
1763
|
popupState: t,
|
|
1764
1764
|
hidePopup: i
|
|
1765
1765
|
};
|
|
1766
|
-
},
|
|
1766
|
+
}, rt = ({
|
|
1767
1767
|
className: n = "",
|
|
1768
1768
|
text: t,
|
|
1769
1769
|
state: r = 0
|
|
@@ -1776,112 +1776,115 @@ const lr = ({ valueDisplayDuration: n = 2e3 }) => {
|
|
|
1776
1776
|
"aria-atomic": "true",
|
|
1777
1777
|
children: t
|
|
1778
1778
|
}
|
|
1779
|
-
)
|
|
1779
|
+
);
|
|
1780
|
+
function st(n, t, r) {
|
|
1781
|
+
if (n === 0)
|
|
1782
|
+
return r ?? "#e0e0e0";
|
|
1783
|
+
if (n === 1)
|
|
1784
|
+
return t;
|
|
1785
|
+
const s = r ? Te(r) : null, c = (s == null ? void 0 : s.r) ?? 224, i = (s == null ? void 0 : s.g) ?? 224, l = (s == null ? void 0 : s.b) ?? 224, a = parseInt(t.substring(1, 3), 16), o = parseInt(t.substring(3, 5), 16), u = parseInt(t.substring(5, 7), 16), h = Math.round(c + n * (a - c)), f = Math.round(i + n * (o - i)), x = Math.round(l + n * (u - l));
|
|
1786
|
+
return `rgb(${h}, ${f}, ${x})`;
|
|
1787
|
+
}
|
|
1788
|
+
const un = "var(--range-width)", Es = ({
|
|
1780
1789
|
colorRange: n,
|
|
1781
1790
|
colorBg: t = "var(--Surface-container-color)",
|
|
1782
1791
|
onChange: r,
|
|
1783
1792
|
min: s = 0,
|
|
1784
1793
|
max: c = 100,
|
|
1785
1794
|
step: i = 1,
|
|
1786
|
-
strokeWidth:
|
|
1787
|
-
value:
|
|
1788
|
-
orientation:
|
|
1795
|
+
strokeWidth: l = "40px",
|
|
1796
|
+
value: a,
|
|
1797
|
+
orientation: o = "horizontal",
|
|
1789
1798
|
styleTrack: u = "base",
|
|
1790
1799
|
showValue: h = !0,
|
|
1791
1800
|
valueDisplayDuration: f = 2e3,
|
|
1792
1801
|
ariaLabel: x = "Регулятор значения",
|
|
1793
|
-
|
|
1802
|
+
startColor: C,
|
|
1803
|
+
...j
|
|
1794
1804
|
}) => {
|
|
1795
|
-
const
|
|
1805
|
+
const g = Y(null), v = Y(null), [m, p] = _(a ?? s), [w, y] = _("200px"), { colors: S } = tt(), { showPopup: T, popupState: L } = lr({ valueDisplayDuration: f }), H = n ?? S.Primary_color ?? "#0000ff";
|
|
1796
1806
|
$(() => {
|
|
1797
|
-
var
|
|
1798
|
-
if (
|
|
1799
|
-
const
|
|
1800
|
-
var
|
|
1801
|
-
const
|
|
1802
|
-
|
|
1807
|
+
var X;
|
|
1808
|
+
if (o === "vertical" && ((X = v.current) != null && X.parentElement)) {
|
|
1809
|
+
const te = () => {
|
|
1810
|
+
var O, ge;
|
|
1811
|
+
const z = (ge = (O = v.current) == null ? void 0 : O.parentElement) == null ? void 0 : ge.clientHeight;
|
|
1812
|
+
z && y(`${z}px`);
|
|
1803
1813
|
};
|
|
1804
|
-
|
|
1805
|
-
const
|
|
1806
|
-
return
|
|
1807
|
-
}
|
|
1808
|
-
}, [
|
|
1809
|
-
|
|
1810
|
-
}, [
|
|
1811
|
-
const
|
|
1812
|
-
h &&
|
|
1813
|
-
}, [
|
|
1814
|
-
const
|
|
1815
|
-
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
() => c !== s ? (v - s) / (c - s) * 100 : 0,
|
|
1827
|
-
[v, s, c]
|
|
1828
|
-
), W = Ce(() => ({
|
|
1829
|
-
...m.style,
|
|
1830
|
-
[l === "vertical" ? "height" : "width"]: `${L}%`,
|
|
1831
|
-
background: u === "point" ? "transperent" : M(L / 100)
|
|
1832
|
-
}), [L, M, m.style, l, u]), I = Ce(() => l === "vertical" ? {
|
|
1833
|
-
"--range-width": a,
|
|
1834
|
-
"--point-width": u === "point" ? a : "6px",
|
|
1814
|
+
te();
|
|
1815
|
+
const ie = new ResizeObserver(te);
|
|
1816
|
+
return v.current.parentElement && ie.observe(v.current.parentElement), () => ie.disconnect();
|
|
1817
|
+
}
|
|
1818
|
+
}, [o]), $(() => {
|
|
1819
|
+
a !== void 0 && (p(a), U());
|
|
1820
|
+
}, [a]);
|
|
1821
|
+
const U = k(() => {
|
|
1822
|
+
h && T();
|
|
1823
|
+
}, [T]), M = (X) => {
|
|
1824
|
+
const te = parseFloat(X.target.value);
|
|
1825
|
+
p(te), U(), r == null || r(X);
|
|
1826
|
+
}, D = je(
|
|
1827
|
+
() => c !== s ? (m - s) / (c - s) * 100 : 0,
|
|
1828
|
+
[m, s, c]
|
|
1829
|
+
), Z = je(() => ({
|
|
1830
|
+
...j.style,
|
|
1831
|
+
[o === "vertical" ? "height" : "width"]: `${D}%`,
|
|
1832
|
+
background: u === "point" ? "transperent" : u === "static-color" ? H : st(D / 100, H, C)
|
|
1833
|
+
}), [D, H, j.style, o, u]), R = je(() => o === "vertical" ? {
|
|
1834
|
+
"--range-width": l,
|
|
1835
|
+
"--point-width": u === "point" ? l : "6px",
|
|
1835
1836
|
"--point-opacity": u === "point" ? "1" : "0",
|
|
1836
|
-
"--truck-color":
|
|
1837
|
-
width:
|
|
1838
|
-
height:
|
|
1837
|
+
"--truck-color": H,
|
|
1838
|
+
width: un,
|
|
1839
|
+
height: w,
|
|
1839
1840
|
margin: "0 20px",
|
|
1840
|
-
...
|
|
1841
|
+
...j.style
|
|
1841
1842
|
} : {
|
|
1842
|
-
"--range-width":
|
|
1843
|
-
"--point-width": u === "point" ?
|
|
1843
|
+
"--range-width": l,
|
|
1844
|
+
"--point-width": u === "point" ? l : "6px",
|
|
1844
1845
|
"--point-opacity": u === "point" ? "1" : "0",
|
|
1845
|
-
"--truck-color":
|
|
1846
|
+
"--truck-color": H,
|
|
1846
1847
|
width: "100%",
|
|
1847
|
-
height:
|
|
1848
|
-
margin: `${
|
|
1849
|
-
...
|
|
1850
|
-
}, [
|
|
1851
|
-
width:
|
|
1848
|
+
height: un,
|
|
1849
|
+
margin: `${un} 0`,
|
|
1850
|
+
...j.style
|
|
1851
|
+
}, [o, w, j.style, l, u, H]), A = je(() => o === "vertical" ? {
|
|
1852
|
+
width: w
|
|
1852
1853
|
} : {
|
|
1853
1854
|
width: "100%"
|
|
1854
|
-
}, [
|
|
1855
|
+
}, [o, w]);
|
|
1855
1856
|
return /* @__PURE__ */ e.jsxs(
|
|
1856
1857
|
"div",
|
|
1857
1858
|
{
|
|
1858
|
-
ref:
|
|
1859
|
-
className: `range-wrapper ${
|
|
1860
|
-
style:
|
|
1859
|
+
ref: v,
|
|
1860
|
+
className: `range-wrapper ${o}`,
|
|
1861
|
+
style: R,
|
|
1861
1862
|
children: [
|
|
1862
1863
|
/* @__PURE__ */ e.jsxs("div", { className: "track", style: { background: t }, children: [
|
|
1863
|
-
/* @__PURE__ */ e.jsx("div", { className: "active-track", style:
|
|
1864
|
-
/* @__PURE__ */ e.jsx(
|
|
1864
|
+
/* @__PURE__ */ e.jsx("div", { className: "active-track", style: Z }),
|
|
1865
|
+
/* @__PURE__ */ e.jsx(rt, { text: Math.round(m).toString(), state: L, className: "value-popup" })
|
|
1865
1866
|
] }),
|
|
1866
1867
|
/* @__PURE__ */ e.jsx(
|
|
1867
1868
|
"input",
|
|
1868
1869
|
{
|
|
1869
|
-
ref:
|
|
1870
|
+
ref: g,
|
|
1870
1871
|
type: "range",
|
|
1871
1872
|
min: s,
|
|
1872
1873
|
style: A,
|
|
1873
1874
|
max: c,
|
|
1874
1875
|
step: i,
|
|
1875
|
-
value:
|
|
1876
|
-
onChange:
|
|
1876
|
+
value: m,
|
|
1877
|
+
onChange: M,
|
|
1878
|
+
onFocus: j.onFocus,
|
|
1879
|
+
onBlur: j.onBlur,
|
|
1877
1880
|
className: "slider-input",
|
|
1878
|
-
"aria-orientation":
|
|
1879
|
-
"aria-valuenow":
|
|
1881
|
+
"aria-orientation": o,
|
|
1882
|
+
"aria-valuenow": m,
|
|
1880
1883
|
"aria-valuemin": s,
|
|
1881
1884
|
"aria-valuemax": c,
|
|
1882
1885
|
"aria-label": x,
|
|
1883
|
-
"aria-valuetext": `${
|
|
1884
|
-
...
|
|
1886
|
+
"aria-valuetext": `${m} из ${c}`,
|
|
1887
|
+
...j
|
|
1885
1888
|
}
|
|
1886
1889
|
)
|
|
1887
1890
|
]
|
|
@@ -1894,27 +1897,29 @@ const lr = ({ valueDisplayDuration: n = 2e3 }) => {
|
|
|
1894
1897
|
onChange: s,
|
|
1895
1898
|
onFocus: c,
|
|
1896
1899
|
onBlur: i,
|
|
1897
|
-
|
|
1900
|
+
styleRange: l = "circle",
|
|
1901
|
+
styleTrack: a = "base",
|
|
1898
1902
|
strokeWidth: o = 20,
|
|
1899
|
-
radius:
|
|
1900
|
-
colorBg:
|
|
1901
|
-
colorRange:
|
|
1902
|
-
pointColor:
|
|
1903
|
-
showBase:
|
|
1904
|
-
showIndicator:
|
|
1905
|
-
showPoint:
|
|
1906
|
-
rounding:
|
|
1907
|
-
showValue:
|
|
1908
|
-
style:
|
|
1909
|
-
children:
|
|
1910
|
-
className:
|
|
1903
|
+
radius: u = 100,
|
|
1904
|
+
colorBg: h = "var(--Surface-container-color)",
|
|
1905
|
+
colorRange: f,
|
|
1906
|
+
pointColor: x,
|
|
1907
|
+
showBase: C = !0,
|
|
1908
|
+
showIndicator: j = !0,
|
|
1909
|
+
showPoint: g = !1,
|
|
1910
|
+
rounding: v = !0,
|
|
1911
|
+
showValue: m = !0,
|
|
1912
|
+
style: p,
|
|
1913
|
+
children: w,
|
|
1914
|
+
className: y,
|
|
1915
|
+
startColor: S
|
|
1911
1916
|
}) => {
|
|
1912
|
-
const
|
|
1917
|
+
const T = Y(null), L = Y(!1), H = u * 2, U = u * 2, M = Math.min(H, U), D = H / 2, Z = U / 2, R = M / 2 - o / 2, A = a === "point" ? !1 : j, X = a === "point" ? !0 : g, { colors: te } = tt(), ie = f ?? te.Primary_color ?? "#0000ff", z = x ?? te.Primary_color ?? "#0000ff", [O, ge] = _(r);
|
|
1913
1918
|
$(() => {
|
|
1914
|
-
r !== void 0 &&
|
|
1919
|
+
r !== void 0 && ge(r);
|
|
1915
1920
|
}, [r]);
|
|
1916
|
-
const
|
|
1917
|
-
switch (
|
|
1921
|
+
const De = k(() => {
|
|
1922
|
+
switch (l) {
|
|
1918
1923
|
case "semicircle":
|
|
1919
1924
|
return 180;
|
|
1920
1925
|
case "brokenCircle":
|
|
@@ -1922,126 +1927,135 @@ const lr = ({ valueDisplayDuration: n = 2e3 }) => {
|
|
|
1922
1927
|
default:
|
|
1923
1928
|
return 360;
|
|
1924
1929
|
}
|
|
1925
|
-
}, [
|
|
1926
|
-
|
|
1930
|
+
}, [l]), Fe = k(() => l === "semicircle" ? [R * Math.PI, R * Math.PI] : l === "brokenCircle" ? [R * Math.PI * 1.25, R * Math.PI * 1.5] : [R * Math.PI, R * Math.PI * 2], [l, R]), de = je(
|
|
1931
|
+
() => t !== n ? (O - n) / (t - n) * 100 : 0,
|
|
1932
|
+
[O, n, t]
|
|
1933
|
+
), We = k(() => {
|
|
1934
|
+
if (!T.current)
|
|
1927
1935
|
return;
|
|
1928
|
-
const [
|
|
1929
|
-
if (
|
|
1930
|
-
const
|
|
1931
|
-
|
|
1932
|
-
}
|
|
1933
|
-
if (
|
|
1934
|
-
const
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
},
|
|
1948
|
-
|
|
1936
|
+
const [ee, ue] = Fe(), he = (O - n) * ue / (t - n);
|
|
1937
|
+
if (C) {
|
|
1938
|
+
const I = T.current.querySelector('[data-el="base"]');
|
|
1939
|
+
I && (I.style.stroke = h, I.style.strokeWidth = o.toString(), I.style.strokeLinecap = v ? "round" : "", I.style.strokeDashoffset = ee.toString(), I.style.strokeDasharray = `${ue}, ${R * Math.PI * 2 - ue}`);
|
|
1940
|
+
}
|
|
1941
|
+
if (A) {
|
|
1942
|
+
const I = T.current.querySelector('[data-el="indicator"]');
|
|
1943
|
+
if (I) {
|
|
1944
|
+
const fe = parseFloat(I.dataset.percentage ?? "");
|
|
1945
|
+
fe !== null && (fe < de - 2 || fe > de + 2) ? I.style.transition = ".3s" : I.style.transition = L.current ? "none" : ".3s", I.dataset.percentage = de.toString(), I.style.stroke = a === "static-color" ? ie : st(de / 100, ie, S), I.style.strokeWidth = o.toString(), I.style.strokeLinecap = v ? "round" : "", I.style.strokeDashoffset = ee.toString(), I.style.strokeDasharray = `${he}, ${R * Math.PI * 2 - he}`;
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
if (X) {
|
|
1949
|
+
const I = T.current.querySelector('[data-el="point"]');
|
|
1950
|
+
if (I) {
|
|
1951
|
+
const fe = parseFloat(I.dataset.percentage ?? "");
|
|
1952
|
+
fe !== null && (fe < de - 2 || fe > de + 2) ? I.style.transition = ".3s" : I.style.transition = L.current ? "none" : ".3s", I.dataset.percentage = de.toString(), I.style.stroke = z, I.style.strokeWidth = o.toString(), I.style.strokeLinecap = "round", O === t && l === "semicircle" ? I.style.strokeDashoffset = "0" : I.style.strokeDashoffset = (ee - he).toString(), I.style.strokeDasharray = `0, ${R * Math.PI * 2}`;
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
}, [O, Fe, t, n, R, o, h, ie, z, C, A, X, v, de, S]), nn = (ee) => {
|
|
1956
|
+
L.current = !0, document.addEventListener("mousemove", be), document.addEventListener("mouseup", ye), ke(ee);
|
|
1957
|
+
}, be = (ee) => {
|
|
1958
|
+
ee.preventDefault(), L.current && ke(ee);
|
|
1959
|
+
}, ye = () => {
|
|
1960
|
+
L.current = !1, document.removeEventListener("mousemove", be), document.removeEventListener("mouseup", ye);
|
|
1961
|
+
}, ke = k((ee) => {
|
|
1962
|
+
if (!T.current)
|
|
1949
1963
|
return;
|
|
1950
|
-
const
|
|
1951
|
-
let
|
|
1952
|
-
|
|
1953
|
-
const
|
|
1954
|
-
|
|
1955
|
-
}, [
|
|
1964
|
+
const ue = De(), he = T.current.getBoundingClientRect(), I = he.left + he.width / 2, fe = he.top + he.height / 2, Ee = ee.clientX, Ne = ee.clientY, Ze = fe - Ne, Xe = I - Ee;
|
|
1965
|
+
let ne = Math.atan2(Ze, Xe) * (180 / Math.PI);
|
|
1966
|
+
ue === 270 && (ne += 45), ne < 0 && (ne = 360 + ne), ne < 0 && (ne = 0), ne > ue && O > (t - n) / 2 ? ne = ue : ne > ue && (ne = 0);
|
|
1967
|
+
const tn = ue, rn = t - n, _e = Math.round(ne * rn / tn + n);
|
|
1968
|
+
ge(_e), _e !== r && s && s(_e);
|
|
1969
|
+
}, [De, s, t, n, D, Z, O]);
|
|
1956
1970
|
$(() => {
|
|
1957
|
-
|
|
1958
|
-
}, [
|
|
1959
|
-
document.removeEventListener("mousemove",
|
|
1971
|
+
We();
|
|
1972
|
+
}, [We]), $(() => () => {
|
|
1973
|
+
document.removeEventListener("mousemove", be), document.removeEventListener("mouseup", ye);
|
|
1960
1974
|
}, []);
|
|
1961
|
-
const
|
|
1975
|
+
const Pe = {
|
|
1962
1976
|
"--stroke-width": `${o}px`
|
|
1963
1977
|
};
|
|
1964
|
-
return /* @__PURE__ */ e.jsxs("div", { style: { width:
|
|
1978
|
+
return /* @__PURE__ */ e.jsxs("div", { style: { width: H, height: U, ...p }, className: "range-circule-wrapper", onFocus: c, onBlur: i, children: [
|
|
1965
1979
|
/* @__PURE__ */ e.jsxs(
|
|
1966
1980
|
"svg",
|
|
1967
1981
|
{
|
|
1968
|
-
ref:
|
|
1982
|
+
ref: T,
|
|
1969
1983
|
width: "100%",
|
|
1970
1984
|
height: "100%",
|
|
1971
|
-
onMouseDown:
|
|
1985
|
+
onMouseDown: nn,
|
|
1972
1986
|
children: [
|
|
1973
|
-
|
|
1987
|
+
C && /* @__PURE__ */ e.jsx(
|
|
1974
1988
|
"circle",
|
|
1975
1989
|
{
|
|
1976
1990
|
"data-el": "base",
|
|
1977
1991
|
fill: "none",
|
|
1978
|
-
cx:
|
|
1979
|
-
cy:
|
|
1980
|
-
r:
|
|
1992
|
+
cx: D,
|
|
1993
|
+
cy: Z,
|
|
1994
|
+
r: R
|
|
1981
1995
|
}
|
|
1982
1996
|
),
|
|
1983
|
-
|
|
1997
|
+
A && /* @__PURE__ */ e.jsx(
|
|
1984
1998
|
"circle",
|
|
1985
1999
|
{
|
|
1986
2000
|
"data-el": "indicator",
|
|
1987
2001
|
fill: "none",
|
|
1988
|
-
cx:
|
|
1989
|
-
cy:
|
|
1990
|
-
r:
|
|
2002
|
+
cx: D,
|
|
2003
|
+
cy: Z,
|
|
2004
|
+
r: R
|
|
1991
2005
|
}
|
|
1992
2006
|
),
|
|
1993
|
-
|
|
2007
|
+
X && /* @__PURE__ */ e.jsx(
|
|
1994
2008
|
"circle",
|
|
1995
2009
|
{
|
|
1996
2010
|
"data-el": "point",
|
|
1997
2011
|
fill: "none",
|
|
1998
|
-
cx:
|
|
1999
|
-
cy:
|
|
2000
|
-
r:
|
|
2012
|
+
cx: D,
|
|
2013
|
+
cy: Z,
|
|
2014
|
+
r: R
|
|
2001
2015
|
}
|
|
2002
2016
|
)
|
|
2003
2017
|
]
|
|
2004
2018
|
}
|
|
2005
2019
|
),
|
|
2006
|
-
/* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${
|
|
2020
|
+
/* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${y}`, style: Pe, children: w ?? (m && /* @__PURE__ */ e.jsx(rt, { className: "", text: Math.floor(O).toString() })) })
|
|
2007
2021
|
] });
|
|
2008
2022
|
};
|
|
2009
|
-
const
|
|
2023
|
+
const $s = ({ style: n, icon: t, className: r, onClick: s, onContextMenu: c, children: i }) => /* @__PURE__ */ e.jsxs("button", { style: n, className: `${r} extendedFAB`, onClick: s, onContextMenu: c, children: [
|
|
2010
2024
|
t,
|
|
2011
2025
|
i ? /* @__PURE__ */ e.jsx("span", { children: i }) : null
|
|
2012
|
-
] }),
|
|
2026
|
+
] }), ze = ({ children: n, container: t }) => t ? Ft.createPortal(
|
|
2013
2027
|
n,
|
|
2014
2028
|
t
|
|
2015
2029
|
) : /* @__PURE__ */ e.jsx("p", { children: "container not found" });
|
|
2016
|
-
const
|
|
2030
|
+
const xe = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div", { style: n, className: `divider-and-text ${t ? "short" : ""}`, children: [
|
|
2017
2031
|
/* @__PURE__ */ e.jsx("div", { className: `divider ${t ? "short" : ""}` }),
|
|
2018
2032
|
r,
|
|
2019
2033
|
/* @__PURE__ */ e.jsx("div", { className: `divider ${t ? "short" : ""}` })
|
|
2020
2034
|
] }) : /* @__PURE__ */ e.jsx("div", { style: n, className: `divider ${t ? "short" : ""}` });
|
|
2021
|
-
const
|
|
2035
|
+
const ar = ({ item: n, isIcon: t, globalClick: r }) => {
|
|
2022
2036
|
const s = () => {
|
|
2023
2037
|
n.onClick && n.onClick(), r && r();
|
|
2024
2038
|
};
|
|
2025
2039
|
return /* @__PURE__ */ e.jsxs("div", { className: "menu-sub-item", onClick: s, children: [
|
|
2026
2040
|
t ? /* @__PURE__ */ e.jsx("div", { className: "menu-icon-container", children: n.icon }) : null,
|
|
2027
2041
|
/* @__PURE__ */ e.jsx("div", { className: "menu-text-container", children: n.title }),
|
|
2028
|
-
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(
|
|
2042
|
+
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(Se, {}) : null })
|
|
2029
2043
|
] });
|
|
2030
|
-
},
|
|
2044
|
+
}, en = (n) => n ? {
|
|
2031
2045
|
height: Number(window.getComputedStyle(n).getPropertyValue("height").replace("px", "")),
|
|
2032
2046
|
width: Number(window.getComputedStyle(n).getPropertyValue("width").replace("px", "")),
|
|
2033
2047
|
left: Number(n.getBoundingClientRect().left),
|
|
2034
2048
|
top: Number(n.getBoundingClientRect().top)
|
|
2035
|
-
} : void 0,
|
|
2049
|
+
} : void 0, ct = (n, t, r, s) => {
|
|
2036
2050
|
let c = { x: n, y: t };
|
|
2037
2051
|
if (!r)
|
|
2038
2052
|
return c;
|
|
2039
|
-
let i = Number(window.getComputedStyle(r).getPropertyValue("height").replace("px", "")),
|
|
2040
|
-
return
|
|
2041
|
-
},
|
|
2042
|
-
const c =
|
|
2043
|
-
function o
|
|
2044
|
-
for (let u of
|
|
2053
|
+
let i = Number(window.getComputedStyle(r).getPropertyValue("height").replace("px", "")), l = Number(window.getComputedStyle(r).getPropertyValue("width").replace("px", "")), a = t + i - document.documentElement.clientHeight, o = n + l - document.documentElement.clientWidth;
|
|
2054
|
+
return a > 0 && (c.y = c.y - a - ((s == null ? void 0 : s.marginBottom) ?? 0)), o > 0 && (c.x = c.x - o - ((s == null ? void 0 : s.marginRight) ?? 0)), c;
|
|
2055
|
+
}, dr = ({ items: n, onHide: t, smallDisplay: r, globalClick: s }) => {
|
|
2056
|
+
const c = Y(null), [i, l] = _({ left: "0px", top: "0px" });
|
|
2057
|
+
function a(o) {
|
|
2058
|
+
for (let u of o)
|
|
2045
2059
|
if (u.icon)
|
|
2046
2060
|
return !0;
|
|
2047
2061
|
return !1;
|
|
@@ -2049,41 +2063,41 @@ const or = ({ item: n, isIcon: t, globalClick: r }) => {
|
|
|
2049
2063
|
return $(() => {
|
|
2050
2064
|
if (!c.current)
|
|
2051
2065
|
return;
|
|
2052
|
-
let
|
|
2053
|
-
if (!
|
|
2066
|
+
let o = en(c.current.parentElement);
|
|
2067
|
+
if (!o)
|
|
2054
2068
|
return;
|
|
2055
|
-
let u =
|
|
2056
|
-
|
|
2057
|
-
left: u.x -
|
|
2058
|
-
top: u.y -
|
|
2069
|
+
let u = ct(o.left + o.width, o.top, c.current, { marginRight: o.width });
|
|
2070
|
+
l({
|
|
2071
|
+
left: u.x - o.left + "px",
|
|
2072
|
+
top: u.y - o.top + "px"
|
|
2059
2073
|
});
|
|
2060
2074
|
}, []), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2061
|
-
/* @__PURE__ */ e.jsx("div", { ref: c, className: "menu-sub-block", style: { ...i }, children: n.map((
|
|
2075
|
+
/* @__PURE__ */ e.jsx("div", { ref: c, className: "menu-sub-block", style: { ...i }, children: n.map((o, u) => /* @__PURE__ */ e.jsx(ar, { item: o, isIcon: a(n), globalClick: s }, u)) }),
|
|
2062
2076
|
r ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "backplate", onClick: t })
|
|
2063
2077
|
] });
|
|
2064
|
-
},
|
|
2065
|
-
const [
|
|
2066
|
-
s.subItems ?
|
|
2078
|
+
}, ur = ({ onHide: n, autoHide: t, globalClick: r, item: s, isIcon: c, smallDisplay: i }) => {
|
|
2079
|
+
const [l, a] = _(!1), o = k(() => {
|
|
2080
|
+
s.subItems ? a((u) => !u) : s.onClick && s.onClick(), r && r(), t && n && n();
|
|
2067
2081
|
}, [s.onClick]);
|
|
2068
2082
|
return /* @__PURE__ */ e.jsxs("div", { className: "menu-item-conatiner", children: [
|
|
2069
|
-
/* @__PURE__ */ e.jsxs("div", { className: "menu-item", onClick:
|
|
2083
|
+
/* @__PURE__ */ e.jsxs("div", { className: "menu-item", onClick: o, children: [
|
|
2070
2084
|
c ? /* @__PURE__ */ e.jsx("div", { className: "menu-icon-container", children: s.icon }) : null,
|
|
2071
2085
|
/* @__PURE__ */ e.jsx("div", { className: "menu-text-container", children: s.title }),
|
|
2072
|
-
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: s.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-status-submenu ${
|
|
2086
|
+
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: s.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-status-submenu ${l ? "active" : ""}` }) : s.activated ? /* @__PURE__ */ e.jsx(Se, {}) : /* @__PURE__ */ e.jsx("span", { className: "none-status" }) })
|
|
2073
2087
|
] }),
|
|
2074
|
-
|
|
2088
|
+
l && s.subItems ? /* @__PURE__ */ e.jsx(dr, { items: s.subItems, onHide: () => a(!1), smallDisplay: i }) : null
|
|
2075
2089
|
] });
|
|
2076
2090
|
};
|
|
2077
|
-
function
|
|
2078
|
-
function i(
|
|
2079
|
-
for (let
|
|
2080
|
-
if (
|
|
2091
|
+
function it({ block: n, smallDisplay: t, onHide: r, globalClick: s, autoHide: c }) {
|
|
2092
|
+
function i(l) {
|
|
2093
|
+
for (let a of l.items)
|
|
2094
|
+
if (a.icon)
|
|
2081
2095
|
return !0;
|
|
2082
2096
|
return !1;
|
|
2083
2097
|
}
|
|
2084
|
-
return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((
|
|
2098
|
+
return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((l, a) => /* @__PURE__ */ e.jsx(ur, { globalClick: s, autoHide: c, onHide: r, item: l, isIcon: i(n), smallDisplay: t }, a)) });
|
|
2085
2099
|
}
|
|
2086
|
-
const
|
|
2100
|
+
const vn = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
2087
2101
|
function s() {
|
|
2088
2102
|
t && t();
|
|
2089
2103
|
}
|
|
@@ -2091,63 +2105,63 @@ const xn = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
2091
2105
|
/* @__PURE__ */ e.jsx("div", { onClick: s, style: { display: r ? "none" : void 0 }, className: "backplate" }),
|
|
2092
2106
|
n
|
|
2093
2107
|
] });
|
|
2094
|
-
},
|
|
2095
|
-
const t =
|
|
2108
|
+
}, hr = 100, fr = (n) => {
|
|
2109
|
+
const t = Y(null), [r, s] = _({ left: "0px", top: "0px" }), c = () => {
|
|
2096
2110
|
n.onHide && n.onHide();
|
|
2097
2111
|
};
|
|
2098
2112
|
return $(() => {
|
|
2099
|
-
let i =
|
|
2113
|
+
let i = ct(n.x, n.y, t.current, { marginBottom: hr });
|
|
2100
2114
|
s({
|
|
2101
2115
|
left: i.x + "px",
|
|
2102
2116
|
top: i.y + "px"
|
|
2103
2117
|
});
|
|
2104
|
-
}, [n.x, n.y]), n.visible ? /* @__PURE__ */ e.jsx(
|
|
2105
|
-
|
|
2106
|
-
/* @__PURE__ */ e.jsx(
|
|
2107
|
-
] },
|
|
2108
|
-
},
|
|
2118
|
+
}, [n.x, n.y]), n.visible ? /* @__PURE__ */ e.jsx(vn, { onHide: c, children: /* @__PURE__ */ e.jsx("div", { ref: t, className: "menu-container", style: { ...r, opacity: r.top !== "0px" ? "100%" : "0%", width: n.width, maxWidth: n.width ? "100%" : void 0 }, children: n.blocks.map((i, l) => /* @__PURE__ */ e.jsxs(Qe.Fragment, { children: [
|
|
2119
|
+
l !== 0 ? /* @__PURE__ */ e.jsx(xe, {}) : null,
|
|
2120
|
+
/* @__PURE__ */ e.jsx(it, { block: i, smallDisplay: !1, globalClick: n.onClick, autoHide: n.autoHide, onHide: c })
|
|
2121
|
+
] }, l)) }) }) : null;
|
|
2122
|
+
}, xr = (n) => {
|
|
2109
2123
|
const t = () => {
|
|
2110
2124
|
};
|
|
2111
|
-
return /* @__PURE__ */ e.jsx(
|
|
2112
|
-
s !== 0 ? /* @__PURE__ */ e.jsx(
|
|
2113
|
-
/* @__PURE__ */ e.jsx(
|
|
2125
|
+
return /* @__PURE__ */ e.jsx(lt, { onHide: n.onHide || t, visible: n.visible, bottom: n.marginBottom, children: /* @__PURE__ */ e.jsx("div", { className: "bottom-sheets-menu-container", children: n.blocks.map((r, s) => /* @__PURE__ */ e.jsxs(Qe.Fragment, { children: [
|
|
2126
|
+
s !== 0 ? /* @__PURE__ */ e.jsx(xe, {}) : null,
|
|
2127
|
+
/* @__PURE__ */ e.jsx(it, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
|
|
2114
2128
|
] }, s)) }) });
|
|
2115
|
-
},
|
|
2116
|
-
const [h, f] = _(!1), [x,
|
|
2117
|
-
f(!1),
|
|
2129
|
+
}, ot = (n) => n.screensize === ce.MOBILE ? /* @__PURE__ */ e.jsx(ze, { container: n.container, children: /* @__PURE__ */ e.jsx(xr, { ...n }) }) : /* @__PURE__ */ e.jsx(ze, { container: n.container, children: /* @__PURE__ */ e.jsx(fr, { ...n }) }), Ls = ({ icon: n, className: t, classNameContainer: r, disabled: s, style: c, transparent: i, container: l, blocks: a, screensize: o, autoHide: u }) => {
|
|
2130
|
+
const [h, f] = _(!1), [x, C] = _(void 0), j = () => {
|
|
2131
|
+
f(!1), C(void 0);
|
|
2118
2132
|
}, g = (v) => {
|
|
2119
|
-
f(!0),
|
|
2133
|
+
f(!0), C({ x: v.clientX, y: v.clientY });
|
|
2120
2134
|
};
|
|
2121
2135
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2122
|
-
/* @__PURE__ */ e.jsx(
|
|
2123
|
-
/* @__PURE__ */ e.jsx(
|
|
2136
|
+
/* @__PURE__ */ e.jsx(pe, { onClick: g, icon: n, className: t, classNameContainer: r, disabled: s, style: c, transparent: i }),
|
|
2137
|
+
/* @__PURE__ */ e.jsx(ot, { marginBottom: o === ce.MOBILE ? 80 : 0, onHide: j, autoHide: u, screensize: o, visible: h, x: (x == null ? void 0 : x.x) ?? 0, y: (x == null ? void 0 : x.y) ?? 0, blocks: a, container: l })
|
|
2124
2138
|
] });
|
|
2125
2139
|
};
|
|
2126
|
-
const
|
|
2140
|
+
const Ts = ({ name: n, checked: t, onChange: r, readOnly: s, checkIcon: c }) => /* @__PURE__ */ e.jsxs("label", { className: "checkbox-container", children: [
|
|
2127
2141
|
/* @__PURE__ */ e.jsx("input", { className: "checkbox", name: n, type: "checkbox", checked: t, onChange: r, readOnly: s }),
|
|
2128
2142
|
/* @__PURE__ */ e.jsx("span", { className: "checkbox-box", children: c || /* @__PURE__ */ e.jsx("span", { className: "checkbox-ckeck-icon", children: "✓" }) })
|
|
2129
2143
|
] });
|
|
2130
|
-
const
|
|
2131
|
-
const i = (
|
|
2132
|
-
i(
|
|
2144
|
+
const jr = ({ text: n, onDelete: t, big: r, onClick: s, screenSize: c }) => {
|
|
2145
|
+
const i = (a) => !(a.target.className === "alex-evo-ui-kit-chips-btn" || a.target.closest(".alex-evo-ui-kit-chips-btn")), l = (a) => {
|
|
2146
|
+
i(a) && s && s(a);
|
|
2133
2147
|
};
|
|
2134
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-chips chips ${r ? "big-chips" : ""} ${s ? "hovered" : ""}`, onClick:
|
|
2135
|
-
/* @__PURE__ */ e.jsx(
|
|
2136
|
-
t ? /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-chips-btn chips-btn", onClick: t, children: /* @__PURE__ */ e.jsx(
|
|
2148
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-chips chips ${r ? "big-chips" : ""} ${s ? "hovered" : ""}`, onClick: l, children: [
|
|
2149
|
+
/* @__PURE__ */ e.jsx(me, { type: "body", screensize: c, children: n }),
|
|
2150
|
+
t ? /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-chips-btn chips-btn", onClick: t, children: /* @__PURE__ */ e.jsx(Oe, {}) }) : null
|
|
2137
2151
|
] });
|
|
2138
2152
|
};
|
|
2139
|
-
const
|
|
2153
|
+
const mr = ({ name: n, checked: t, onClick: r }) => /* @__PURE__ */ e.jsxs("label", { className: "radio-button-container", children: [
|
|
2140
2154
|
/* @__PURE__ */ e.jsx("input", { className: "radio-button", onClick: r, name: n, type: "radio", checked: t, readOnly: !0 }),
|
|
2141
2155
|
/* @__PURE__ */ e.jsx("span", {})
|
|
2142
|
-
] }),
|
|
2143
|
-
/* @__PURE__ */ e.jsx("input", { defaultChecked: n, className: "radio-button", name: t, type: "radio", checked: r && s && r === s ||
|
|
2156
|
+
] }), Os = ({ defaultChecked: n, name: t, currentValue: r, value: s, onChange: c, readOnly: i, checked: l }) => /* @__PURE__ */ e.jsxs("label", { className: "radio-button-container", children: [
|
|
2157
|
+
/* @__PURE__ */ e.jsx("input", { defaultChecked: n, className: "radio-button", name: t, type: "radio", checked: r && s && r === s || l, value: s, onChange: c, readOnly: i }),
|
|
2144
2158
|
/* @__PURE__ */ e.jsx("span", {})
|
|
2145
2159
|
] });
|
|
2146
|
-
const
|
|
2147
|
-
const [f, x] = _(
|
|
2160
|
+
const In = (n) => n === void 0 ? [] : Array.isArray(n) ? n : [n], Cr = ({ readOnly: n, ref: t, style: r, multiple: s, value: c, items: i, className: l, name: a, onClick: o, onContextMenu: u, onChange: h }) => {
|
|
2161
|
+
const [f, x] = _(In(c)), C = (j) => {
|
|
2148
2162
|
if (n)
|
|
2149
2163
|
return;
|
|
2150
|
-
|
|
2164
|
+
o && o(j);
|
|
2151
2165
|
const g = j.currentTarget;
|
|
2152
2166
|
if (!s) {
|
|
2153
2167
|
if (!g.dataset.el)
|
|
@@ -2156,22 +2170,22 @@ const Hn = (n) => n === void 0 ? [] : Array.isArray(n) ? n : [n], mr = ({ readOn
|
|
|
2156
2170
|
return;
|
|
2157
2171
|
}
|
|
2158
2172
|
const v = f.filter((p) => p === g.dataset.el);
|
|
2159
|
-
let
|
|
2160
|
-
v.length > 0 && g.dataset.el ?
|
|
2173
|
+
let m = f.slice();
|
|
2174
|
+
v.length > 0 && g.dataset.el ? m = m.filter((p) => p !== g.dataset.el) : g.dataset.el && m.push(g.dataset.el), x(m), h && h(m, j);
|
|
2161
2175
|
};
|
|
2162
2176
|
return $(() => {
|
|
2163
|
-
c !== void 0 && x(
|
|
2164
|
-
}, [c]), /* @__PURE__ */ e.jsx("div", { style: r, className: `sigmentedbutton-container ${
|
|
2165
|
-
/* @__PURE__ */ e.jsxs("div", { "data-el": j, onContextMenu: u, onClick:
|
|
2166
|
-
f.includes(j) ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: /* @__PURE__ */ e.jsx(
|
|
2177
|
+
c !== void 0 && x(In(c));
|
|
2178
|
+
}, [c]), /* @__PURE__ */ e.jsx("div", { style: r, className: `sigmentedbutton-container ${l ?? ""}`, children: i.map((j, g) => /* @__PURE__ */ e.jsxs("div", { className: "sigmentedbutton-item-container", children: [
|
|
2179
|
+
/* @__PURE__ */ e.jsxs("div", { "data-el": j, onContextMenu: u, onClick: C, className: `sigmentedbutton-item-button ${f.includes(j) ? "active" : ""}`, children: [
|
|
2180
|
+
f.includes(j) ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: /* @__PURE__ */ e.jsx(Se, {}) }) : null,
|
|
2167
2181
|
/* @__PURE__ */ e.jsx("div", { className: "text-container", children: j })
|
|
2168
2182
|
] }, g),
|
|
2169
|
-
/* @__PURE__ */ e.jsx("input", { ref: t, multiple: !0, readOnly: !0, type: "radio", style: { display: "none" }, name:
|
|
2183
|
+
/* @__PURE__ */ e.jsx("input", { ref: t, multiple: !0, readOnly: !0, type: "radio", style: { display: "none" }, name: a, checked: f.includes(j), value: j })
|
|
2170
2184
|
] }, g)) });
|
|
2171
2185
|
};
|
|
2172
|
-
const
|
|
2173
|
-
const
|
|
2174
|
-
const [r, s] = _(!1), [c, i] = _(!0),
|
|
2186
|
+
const vr = ({ ref: n, style: t, name: r, onChange: s, checked: c, className: i, readOnly: l }) => /* @__PURE__ */ e.jsx("div", { className: `swich-container ${i}`, style: t, children: /* @__PURE__ */ e.jsx("input", { readOnly: l, ref: n, type: "checkbox", name: r, onChange: s, checked: c }) });
|
|
2187
|
+
const lt = ({ bottom: n = 0, ...t }) => {
|
|
2188
|
+
const [r, s] = _(!1), [c, i] = _(!0), l = Y(null), a = k(() => {
|
|
2175
2189
|
s(!0), setTimeout(() => {
|
|
2176
2190
|
t.onHide(), s(!1), i(!0);
|
|
2177
2191
|
}, 200);
|
|
@@ -2179,12 +2193,12 @@ const st = ({ bottom: n = 0, ...t }) => {
|
|
|
2179
2193
|
$(() => {
|
|
2180
2194
|
t.visible && i(!1);
|
|
2181
2195
|
}, [t.visible]), $(() => {
|
|
2182
|
-
!t.visible && !c &&
|
|
2183
|
-
}, [t.visible,
|
|
2184
|
-
const
|
|
2185
|
-
window.innerHeight - x.changedTouches[0].clientY <= 150 &&
|
|
2186
|
-
}, [
|
|
2187
|
-
window.innerHeight - x.clientY + 20 <= 150 &&
|
|
2196
|
+
!t.visible && !c && a();
|
|
2197
|
+
}, [t.visible, a, c]);
|
|
2198
|
+
const o = k((x) => {
|
|
2199
|
+
window.innerHeight - x.changedTouches[0].clientY <= 150 && a(), l.current && (l.current.style.height = `${window.innerHeight - x.changedTouches[0].clientY + 20 - n}px`);
|
|
2200
|
+
}, [a]), u = (x) => {
|
|
2201
|
+
window.innerHeight - x.clientY + 20 <= 150 && a(), l.current && (l.current.style.height = `${window.innerHeight - x.clientY + 20 - n}px`);
|
|
2188
2202
|
}, h = () => {
|
|
2189
2203
|
document.body.removeEventListener("mousemove", u), document.body.removeEventListener("mouseup", h);
|
|
2190
2204
|
}, f = () => {
|
|
@@ -2192,11 +2206,11 @@ const st = ({ bottom: n = 0, ...t }) => {
|
|
|
2192
2206
|
};
|
|
2193
2207
|
return $(() => () => {
|
|
2194
2208
|
document.body.removeEventListener("mousemove", u), document.body.removeEventListener("mouseup", h);
|
|
2195
|
-
}), c && !r || !t.children ? null : /* @__PURE__ */ e.jsx(
|
|
2196
|
-
/* @__PURE__ */ e.jsx("div", { className: "bottom-sheets-handle", onMouseDown: f, onTouchMove:
|
|
2209
|
+
}), c && !r || !t.children ? null : /* @__PURE__ */ e.jsx(vn, { onHide: a, children: /* @__PURE__ */ e.jsxs("div", { ref: l, style: { paddingBottom: n }, className: `bottom-sheets ${r ? "hide" : ""}`, children: [
|
|
2210
|
+
/* @__PURE__ */ e.jsx("div", { className: "bottom-sheets-handle", onMouseDown: f, onTouchMove: o, children: /* @__PURE__ */ e.jsx("span", {}) }),
|
|
2197
2211
|
/* @__PURE__ */ e.jsx("div", { className: "bottom-sheets-content", children: t.children })
|
|
2198
2212
|
] }) });
|
|
2199
|
-
},
|
|
2213
|
+
}, at = (n, t) => {
|
|
2200
2214
|
$(() => {
|
|
2201
2215
|
if (n) {
|
|
2202
2216
|
const r = window.innerWidth - document.documentElement.clientWidth;
|
|
@@ -2207,11 +2221,11 @@ const st = ({ bottom: n = 0, ...t }) => {
|
|
|
2207
2221
|
t.style.overflow = "", t.style.paddingRight = "";
|
|
2208
2222
|
};
|
|
2209
2223
|
}, [n]);
|
|
2210
|
-
},
|
|
2224
|
+
}, Bn = {
|
|
2211
2225
|
mobileSize: 720,
|
|
2212
2226
|
bigSize: 1400
|
|
2213
|
-
},
|
|
2214
|
-
(n.bigSize <= 100 || n.mobileSize <= 100 || n.bigSize <= 100 || n.mobileSize >= n.bigSize) && (console.error("useScreenSize: invalid option"), n =
|
|
2227
|
+
}, dt = (n = Bn) => {
|
|
2228
|
+
(n.bigSize <= 100 || n.mobileSize <= 100 || n.bigSize <= 100 || n.mobileSize >= n.bigSize) && (console.error("useScreenSize: invalid option"), n = Bn);
|
|
2215
2229
|
const [t, r] = _(ce.STANDART), s = k(() => {
|
|
2216
2230
|
window.innerWidth < n.mobileSize ? r(ce.MOBILE) : window.innerWidth < n.bigSize ? r(ce.STANDART) : r(ce.BIG_SCREEN);
|
|
2217
2231
|
}, [window.innerWidth]);
|
|
@@ -2221,86 +2235,86 @@ const st = ({ bottom: n = 0, ...t }) => {
|
|
|
2221
2235
|
window.removeEventListener("resize", s);
|
|
2222
2236
|
}), [s]), { screen: t };
|
|
2223
2237
|
};
|
|
2224
|
-
const
|
|
2225
|
-
function
|
|
2238
|
+
const ut = ({ className: n, children: t, header: r, action: s, onHide: c, style: i, clearStyle: l = !1, disableBackplate: a }) => {
|
|
2239
|
+
function o() {
|
|
2226
2240
|
c && c();
|
|
2227
2241
|
}
|
|
2228
|
-
return /* @__PURE__ */ e.jsx(
|
|
2242
|
+
return /* @__PURE__ */ e.jsx(vn, { onHide: o, disableBackplate: a, children: /* @__PURE__ */ e.jsxs("div", { style: i, className: `${l ? "" : "dialog-container"} dialog-container-base ${n}`, children: [
|
|
2229
2243
|
r ? /* @__PURE__ */ e.jsx("div", { className: "dialog-header", children: /* @__PURE__ */ e.jsx("h2", { className: "text-3xl", children: r }) }) : null,
|
|
2230
2244
|
/* @__PURE__ */ e.jsx("div", { className: "dialog-content", children: t }),
|
|
2231
2245
|
s ? /* @__PURE__ */ e.jsx("div", { className: "dialog-action", children: s }) : null
|
|
2232
2246
|
] }) });
|
|
2233
|
-
},
|
|
2234
|
-
const { screen: r } =
|
|
2235
|
-
|
|
2247
|
+
}, Me = ({ marginBottom: n = 80, ...t }) => {
|
|
2248
|
+
const { screen: r } = dt();
|
|
2249
|
+
at(!0, document.body);
|
|
2236
2250
|
const s = () => {
|
|
2237
2251
|
var c;
|
|
2238
2252
|
(c = t.onHide) == null || c.call(t);
|
|
2239
2253
|
};
|
|
2240
|
-
return r !== ce.MOBILE ? /* @__PURE__ */ e.jsx(
|
|
2254
|
+
return r !== ce.MOBILE ? /* @__PURE__ */ e.jsx(ut, { ...t }) : /* @__PURE__ */ e.jsx(lt, { bottom: n, onHide: s, visible: !0, children: /* @__PURE__ */ e.jsxs("div", { style: t.style, className: `dialog-container-bottom-sheet ${t.className}`, children: [
|
|
2241
2255
|
t.header ? /* @__PURE__ */ e.jsx("div", { className: "dialog-header", children: /* @__PURE__ */ e.jsx("h2", { className: "text-3xl", children: t.header }) }) : null,
|
|
2242
2256
|
/* @__PURE__ */ e.jsx("div", { className: "dialog-content", children: t.children }),
|
|
2243
2257
|
t.action ? /* @__PURE__ */ e.jsx("div", { className: "dialog-action", children: t.action }) : null
|
|
2244
2258
|
] }) });
|
|
2245
|
-
},
|
|
2246
|
-
const
|
|
2259
|
+
}, Vs = ({ styleContainer: n, text: t, header: r, actionText: s, onSuccess: c, onHide: i, onCancel: l }) => {
|
|
2260
|
+
const a = k(() => {
|
|
2247
2261
|
c && c(), i && i();
|
|
2248
|
-
}, [c, i]),
|
|
2249
|
-
|
|
2250
|
-
}, [i,
|
|
2251
|
-
return /* @__PURE__ */ e.jsx(
|
|
2262
|
+
}, [c, i]), o = k(() => {
|
|
2263
|
+
l && l(), i && i();
|
|
2264
|
+
}, [i, l]);
|
|
2265
|
+
return /* @__PURE__ */ e.jsx(Me, { style: n, header: r, action: /* @__PURE__ */ e.jsx(gr, { onHide: o, actionText: s, onSuccess: a }), children: /* @__PURE__ */ e.jsx("p", { children: t }) });
|
|
2252
2266
|
};
|
|
2253
|
-
function
|
|
2267
|
+
function gr({ actionText: n, onSuccess: t, onHide: r }) {
|
|
2254
2268
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
2255
|
-
/* @__PURE__ */ e.jsx(
|
|
2256
|
-
/* @__PURE__ */ e.jsx(
|
|
2269
|
+
/* @__PURE__ */ e.jsx(Q, { onClick: r, children: "cancel" }),
|
|
2270
|
+
/* @__PURE__ */ e.jsx(Q, { onClick: t, children: n ?? "OK" })
|
|
2257
2271
|
] });
|
|
2258
2272
|
}
|
|
2259
|
-
const
|
|
2260
|
-
const
|
|
2273
|
+
const pr = ({ children: n, className: t, maxHeight: r, scroll: s, transparent: c }) => /* @__PURE__ */ e.jsx("ul", { style: { overflowY: r ? s ? "scroll" : "hidden" : void 0, maxHeight: r, backgroundColor: c ? "transparent" : void 0 }, className: `list-container ${t} ${s ? "scroll" : ""}`, children: n }), br = ({ icon: n, control: t, text: r, header: s, value: c, onClick: i, hovered: l, className: a }) => {
|
|
2274
|
+
const o = (u) => {
|
|
2261
2275
|
u.target.closest(".control-container") || i && i(u);
|
|
2262
2276
|
};
|
|
2263
|
-
return /* @__PURE__ */ e.jsxs("li", { className: ` ${
|
|
2277
|
+
return /* @__PURE__ */ e.jsxs("li", { className: ` ${a} list-item-container ${l ? "hovered" : ""}`, onClick: o, children: [
|
|
2264
2278
|
n ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: n }) : c ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: c }) : null,
|
|
2265
2279
|
r ? /* @__PURE__ */ e.jsxs("div", { className: "text-container", children: [
|
|
2266
|
-
/* @__PURE__ */ e.jsx("div", { className: "header", children: /* @__PURE__ */ e.jsx(
|
|
2267
|
-
/* @__PURE__ */ e.jsx("div", { className: "text", children: /* @__PURE__ */ e.jsx(
|
|
2268
|
-
] }) : /* @__PURE__ */ e.jsx("div", { className: "text-container", children: /* @__PURE__ */ e.jsx("div", { className: "header", children: /* @__PURE__ */ e.jsx(
|
|
2280
|
+
/* @__PURE__ */ e.jsx("div", { className: "header", children: /* @__PURE__ */ e.jsx(me, { type: "body", children: s }) }),
|
|
2281
|
+
/* @__PURE__ */ e.jsx("div", { className: "text", children: /* @__PURE__ */ e.jsx(me, { type: "small", children: r }) })
|
|
2282
|
+
] }) : /* @__PURE__ */ e.jsx("div", { className: "text-container", children: /* @__PURE__ */ e.jsx("div", { className: "header", children: /* @__PURE__ */ e.jsx(me, { type: "body", children: s }) }) }),
|
|
2269
2283
|
t ? /* @__PURE__ */ e.jsx("div", { className: "control-container", children: t }) : null
|
|
2270
2284
|
] });
|
|
2271
2285
|
};
|
|
2272
|
-
function
|
|
2273
|
-
const [
|
|
2274
|
-
console.log(
|
|
2275
|
-
}, [
|
|
2276
|
-
|
|
2286
|
+
function Ds({ onSuccess: n, items: t, header: r, onHide: s, noHide: c = !1, name: i = "dailog_name" }) {
|
|
2287
|
+
const [l, a] = _(void 0), o = k(() => {
|
|
2288
|
+
console.log(l), n && l && n(l), a(void 0), !c && s && s();
|
|
2289
|
+
}, [l]), u = k((h) => {
|
|
2290
|
+
a(h);
|
|
2277
2291
|
}, []);
|
|
2278
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2279
|
-
/* @__PURE__ */ e.jsx(
|
|
2280
|
-
/* @__PURE__ */ e.jsx(
|
|
2281
|
-
/* @__PURE__ */ e.jsx(
|
|
2292
|
+
return /* @__PURE__ */ e.jsxs(Me, { header: r, action: /* @__PURE__ */ e.jsx(yr, { onHide: s, onSuccess: o, disabled: l === void 0 }), children: [
|
|
2293
|
+
/* @__PURE__ */ e.jsx(xe, { style: { padding: "0px" } }),
|
|
2294
|
+
/* @__PURE__ */ e.jsx(pr, { className: "transparent", scroll: !0, maxHeight: "200px", children: t.map((h, f) => /* @__PURE__ */ e.jsx("label", { children: /* @__PURE__ */ e.jsx(br, { hovered: !0, header: h.title, onClick: () => u(h.data), control: /* @__PURE__ */ e.jsx(mr, { onClick: () => u(h.data), name: i, checked: h.data === l }) }) }, f)) }),
|
|
2295
|
+
/* @__PURE__ */ e.jsx(xe, { style: { padding: "0px" } })
|
|
2282
2296
|
] });
|
|
2283
2297
|
}
|
|
2284
|
-
function
|
|
2298
|
+
function yr({ onSuccess: n, onHide: t, disabled: r }) {
|
|
2285
2299
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
2286
|
-
/* @__PURE__ */ e.jsx(
|
|
2287
|
-
/* @__PURE__ */ e.jsx(
|
|
2300
|
+
/* @__PURE__ */ e.jsx(Q, { onClick: t, children: "cancel" }),
|
|
2301
|
+
/* @__PURE__ */ e.jsx(Q, { onClick: n, disabled: r, children: "OK" })
|
|
2288
2302
|
] });
|
|
2289
2303
|
}
|
|
2290
|
-
const
|
|
2291
|
-
const S =
|
|
2304
|
+
const gn = ({ onClick: n, ref: t, styleContainer: r, type: s = "text", transparent: c, readOnly: i, password: l, border: a, onClear: o, icon: u, onChange: h, name: f, value: x, placeholder: C, className: j, validEmptyValue: g, onFocus: v, onBlur: m, error: p, max: w, min: y }) => {
|
|
2305
|
+
const S = Y(null), [T, L] = _(!1), [H, U] = _(!1), M = () => {
|
|
2292
2306
|
if (!S.current)
|
|
2293
2307
|
return;
|
|
2294
2308
|
const A = S.current.querySelector("input");
|
|
2295
2309
|
A && A.focus();
|
|
2296
|
-
},
|
|
2310
|
+
}, D = (A) => {
|
|
2297
2311
|
v && v(A), U(!0);
|
|
2298
|
-
},
|
|
2299
|
-
|
|
2300
|
-
},
|
|
2312
|
+
}, Z = (A) => {
|
|
2313
|
+
m && m(A), U(!1);
|
|
2314
|
+
}, R = k((A, X) => L(!!(p || A && (!X || X === ""))), []);
|
|
2301
2315
|
return $(() => {
|
|
2302
|
-
|
|
2303
|
-
}, [x, g,
|
|
2316
|
+
R(g, x);
|
|
2317
|
+
}, [x, g, R]), /* @__PURE__ */ e.jsxs("div", { ref: S, style: r, className: `input-field text-field ${a ? "border" : ""} ${H ? "active" : ""} ${c ? "transparent" : ""} ${T ? "error" : ""} ${j}`, children: [
|
|
2304
2318
|
u ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: M, children: u }) : null,
|
|
2305
2319
|
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: M, children: [
|
|
2306
2320
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2311,43 +2325,43 @@ const jn = ({ onClick: n, ref: t, styleContainer: r, type: s = "text", transpare
|
|
|
2311
2325
|
min: y,
|
|
2312
2326
|
readOnly: i,
|
|
2313
2327
|
required: !0,
|
|
2314
|
-
type:
|
|
2315
|
-
className: `${
|
|
2328
|
+
type: l ? "password" : s,
|
|
2329
|
+
className: `${T ? "error" : ""}`,
|
|
2316
2330
|
name: f,
|
|
2317
2331
|
value: x,
|
|
2318
2332
|
onClick: n,
|
|
2319
2333
|
onChange: h,
|
|
2320
|
-
onFocus:
|
|
2321
|
-
onBlur:
|
|
2334
|
+
onFocus: D,
|
|
2335
|
+
onBlur: Z
|
|
2322
2336
|
}
|
|
2323
2337
|
),
|
|
2324
|
-
/* @__PURE__ */ e.jsx("label", { children:
|
|
2338
|
+
/* @__PURE__ */ e.jsx("label", { children: C ? /* @__PURE__ */ e.jsx("span", { children: C }) : null })
|
|
2325
2339
|
] }),
|
|
2326
|
-
|
|
2340
|
+
o ? /* @__PURE__ */ e.jsx("div", { className: "icon-container clear-btn", children: /* @__PURE__ */ e.jsx(Oe, { onClick: o }) }) : null
|
|
2327
2341
|
] });
|
|
2328
|
-
},
|
|
2342
|
+
}, Fs = ({ styleContainer: n, text: t, header: r, onSuccess: s, onHide: c, placeholder: i, type: l = "text", min: a = 0, max: o = 100 }) => {
|
|
2329
2343
|
const [u, h] = _(""), f = k(() => {
|
|
2330
2344
|
s && s(u), c && c();
|
|
2331
|
-
}, [u]), x = (
|
|
2332
|
-
|
|
2345
|
+
}, [u]), x = (C) => {
|
|
2346
|
+
l === "number" && (Number(C) < a && (C = String(a)), Number(C) > o && (C = String(o))), h(C);
|
|
2333
2347
|
};
|
|
2334
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2348
|
+
return /* @__PURE__ */ e.jsxs(Me, { style: n, header: r, action: /* @__PURE__ */ e.jsx(kr, { onHide: c, onSuccess: f }), children: [
|
|
2335
2349
|
/* @__PURE__ */ e.jsx("p", { children: t }),
|
|
2336
|
-
/* @__PURE__ */ e.jsx("div", { className: "dialog-input-container", children: /* @__PURE__ */ e.jsx(
|
|
2350
|
+
/* @__PURE__ */ e.jsx("div", { className: "dialog-input-container", children: /* @__PURE__ */ e.jsx(gn, { max: o, min: a, type: l, border: !0, placeholder: i, value: u, onChange: (C) => x(C.target.value) }) })
|
|
2337
2351
|
] });
|
|
2338
2352
|
};
|
|
2339
|
-
function
|
|
2353
|
+
function kr({ onSuccess: n, onHide: t }) {
|
|
2340
2354
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
2341
|
-
/* @__PURE__ */ e.jsx(
|
|
2342
|
-
/* @__PURE__ */ e.jsx(
|
|
2355
|
+
/* @__PURE__ */ e.jsx(Q, { onClick: t, children: "cancel" }),
|
|
2356
|
+
/* @__PURE__ */ e.jsx(Q, { onClick: n, children: "OK" })
|
|
2343
2357
|
] });
|
|
2344
2358
|
}
|
|
2345
|
-
const
|
|
2346
|
-
n ? /* @__PURE__ */ e.jsx(
|
|
2347
|
-
t ? /* @__PURE__ */ e.jsx(
|
|
2348
|
-
] }),
|
|
2349
|
-
const [
|
|
2350
|
-
|
|
2359
|
+
const Nr = ({ onHide: n, onSave: t }) => /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
2360
|
+
n ? /* @__PURE__ */ e.jsx(Q, { onClick: n, children: "cancel" }) : null,
|
|
2361
|
+
t ? /* @__PURE__ */ e.jsx(Q, { onClick: t, children: "save" }) : null
|
|
2362
|
+
] }), Ps = ({ style: n, className: t, header: r, children: s, onSave: c, onHide: i, marginBottom: l, disableBackplate: a }) => {
|
|
2363
|
+
const [o, u] = _(!1);
|
|
2364
|
+
at(!0, document.body);
|
|
2351
2365
|
const h = k(() => {
|
|
2352
2366
|
window.innerWidth < 720 ? u(!0) : u(!1);
|
|
2353
2367
|
}, [window.innerWidth]);
|
|
@@ -2361,101 +2375,101 @@ const kr = ({ onHide: n, onSave: t }) => /* @__PURE__ */ e.jsxs("div", { classNa
|
|
|
2361
2375
|
}, x = () => {
|
|
2362
2376
|
c && c();
|
|
2363
2377
|
};
|
|
2364
|
-
return
|
|
2378
|
+
return o ? /* @__PURE__ */ e.jsxs("div", { style: { ...n, height: `calc(100vh - ${l}px` }, className: `full-screen-dialog-container ${t}`, children: [
|
|
2365
2379
|
/* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog-header", children: [
|
|
2366
|
-
/* @__PURE__ */ e.jsx("div", { className: "dialog-icon-container", children: i && /* @__PURE__ */ e.jsx(
|
|
2380
|
+
/* @__PURE__ */ e.jsx("div", { className: "dialog-icon-container", children: i && /* @__PURE__ */ e.jsx(pe, { transparent: !0, onClick: f, icon: /* @__PURE__ */ e.jsx(Oe, {}) }) }),
|
|
2367
2381
|
/* @__PURE__ */ e.jsx("div", { className: "header", children: r }),
|
|
2368
|
-
/* @__PURE__ */ e.jsx("div", { className: "save-container", children: c ? /* @__PURE__ */ e.jsx(
|
|
2382
|
+
/* @__PURE__ */ e.jsx("div", { className: "save-container", children: c ? /* @__PURE__ */ e.jsx(Q, { onClick: x, children: "save" }) : null })
|
|
2369
2383
|
] }),
|
|
2370
2384
|
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog-content", style: { overflowY: "auto" }, children: s })
|
|
2371
|
-
] }) : /* @__PURE__ */ e.jsx(
|
|
2385
|
+
] }) : /* @__PURE__ */ e.jsx(ut, { disableBackplate: a, style: n, header: r, className: `full-screen-dialog-base-format ${t}`, onHide: f, children: s, action: /* @__PURE__ */ e.jsx(Nr, { onHide: i ? f : void 0, onSave: c ? x : void 0 }) });
|
|
2372
2386
|
};
|
|
2373
|
-
const
|
|
2374
|
-
const
|
|
2375
|
-
if (!
|
|
2387
|
+
const Hs = ({ style: n, className: t, action: r, imgSrc: s, alt: c, header: i, subhead: l, text: a, children: o, iconButtonCell: u, onClick: h, screenSize: f, rootApp: x = "#root" }) => {
|
|
2388
|
+
const C = (m) => !(m.target.className === "action-container" || m.target.closest(".action-container") || m.target.className === "icon-button-container" || m.target.closest(".icon-button-container") || m.target.className === "card-child-container" || m.target.closest(".card-child-container") || !m.target.closest(`${x}`)), { screen: j } = dt(), g = f ?? j, v = (m) => {
|
|
2389
|
+
if (!C(m))
|
|
2376
2390
|
return;
|
|
2377
|
-
h && h(
|
|
2378
|
-
let
|
|
2379
|
-
if (!
|
|
2391
|
+
h && h(m);
|
|
2392
|
+
let p = m.currentTarget.closest(".card-container"), w = p == null ? void 0 : p.querySelector(".blick-container");
|
|
2393
|
+
if (!w)
|
|
2380
2394
|
return;
|
|
2381
|
-
let
|
|
2382
|
-
|
|
2383
|
-
const
|
|
2384
|
-
|
|
2385
|
-
|
|
2395
|
+
let y = document.createElement("span");
|
|
2396
|
+
y.classList.add("btn-overlay");
|
|
2397
|
+
const S = m.currentTarget.getBoundingClientRect(), T = m.clientX - S.left, L = m.clientY - S.top;
|
|
2398
|
+
y.style.left = T + "px", y.style.top = L + "px", w.appendChild(y), setTimeout(() => {
|
|
2399
|
+
y.remove();
|
|
2386
2400
|
}, 500);
|
|
2387
2401
|
};
|
|
2388
|
-
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `card-container ${t}`, onClick:
|
|
2402
|
+
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `card-container ${t}`, onClick: v, children: [
|
|
2389
2403
|
/* @__PURE__ */ e.jsx("div", { className: "blick-container" }),
|
|
2390
2404
|
s ? /* @__PURE__ */ e.jsx("div", { className: "card-img-container", children: /* @__PURE__ */ e.jsx("img", { src: s, alt: c }) }) : null,
|
|
2391
2405
|
/* @__PURE__ */ e.jsxs("div", { className: "card-content-container", children: [
|
|
2392
2406
|
/* @__PURE__ */ e.jsxs("div", { className: "card-Headline-container mb-1 font-bold", children: [
|
|
2393
|
-
/* @__PURE__ */ e.jsx("div", { className: "headline", children: /* @__PURE__ */ e.jsx(
|
|
2407
|
+
/* @__PURE__ */ e.jsx("div", { className: "headline", children: /* @__PURE__ */ e.jsx(me, { type: "title", weight: "bold", screensize: g, className: "card-heading", children: i }) }),
|
|
2394
2408
|
u ? /* @__PURE__ */ e.jsx("div", { className: "icon-button-container", children: u }) : null
|
|
2395
2409
|
] }),
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2410
|
+
l ? /* @__PURE__ */ e.jsx("div", { className: "card-subhead-container mb-1", children: /* @__PURE__ */ e.jsx("div", { className: "subhead", children: /* @__PURE__ */ e.jsx(me, { style: { display: "block" }, type: "title-2", weight: "bold", screensize: g, className: "card-subhead", children: l }) }) }) : null,
|
|
2411
|
+
a ? /* @__PURE__ */ e.jsx("div", { className: "card-text-container mb-1", children: /* @__PURE__ */ e.jsx("div", { className: "text", children: /* @__PURE__ */ e.jsx(me, { type: "body", screensize: g, className: "", children: a }) }) }) : null,
|
|
2412
|
+
o ? /* @__PURE__ */ e.jsx("div", { className: "card-child-container mb-2", children: o }) : null,
|
|
2399
2413
|
/* @__PURE__ */ e.jsx("div", { className: "action-container", children: r })
|
|
2400
2414
|
] })
|
|
2401
2415
|
] });
|
|
2402
2416
|
};
|
|
2403
|
-
const
|
|
2404
|
-
const
|
|
2405
|
-
const [
|
|
2406
|
-
g.button == 1 && (
|
|
2407
|
-
},
|
|
2408
|
-
g.button == 1 && (u({ x: g.clientX, y: g.clientY }),
|
|
2417
|
+
const _r = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${t ?? ""}`, children: n });
|
|
2418
|
+
const As = ({ children: n, className: t, id: r, height: s, width: c, pozMove: i }) => {
|
|
2419
|
+
const [l, a] = _(!1), [o, u] = _(null), [h, f] = _({ x: 0, y: 0 }), x = (g) => {
|
|
2420
|
+
g.button == 1 && (a(!1), u(null), document.body.style.cursor = "auto");
|
|
2421
|
+
}, C = (g) => {
|
|
2422
|
+
g.button == 1 && (u({ x: g.clientX, y: g.clientY }), a(!0), document.body.style.cursor = "move");
|
|
2409
2423
|
}, j = k((g) => {
|
|
2410
|
-
|
|
2411
|
-
if (!
|
|
2424
|
+
l && (f((v) => {
|
|
2425
|
+
if (!o)
|
|
2412
2426
|
return v;
|
|
2413
|
-
const
|
|
2414
|
-
let w = v.x +
|
|
2427
|
+
const m = g.clientX - o.x, p = g.clientY - o.y;
|
|
2428
|
+
let w = v.x + m, y = v.y + p;
|
|
2415
2429
|
return { x: w, y };
|
|
2416
2430
|
}), u({ x: g.clientX, y: g.clientY }));
|
|
2417
|
-
}, [
|
|
2431
|
+
}, [l, o]);
|
|
2418
2432
|
return $(() => {
|
|
2419
2433
|
i && f({ ...i });
|
|
2420
|
-
}, [i]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: c }, className: `big-container ${t}`, onMouseDown:
|
|
2434
|
+
}, [i]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: c }, className: `big-container ${t}`, onMouseDown: C, onMouseUp: x, onMouseMove: j, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: h.x, top: h.y }, children: n }) });
|
|
2421
2435
|
};
|
|
2422
|
-
const
|
|
2436
|
+
const Is = ({ onClick: n, onContextMenu: t, gap: r, className: s, style: c, countColumn: i, items: l, onClickColl: a, classNameColumn: o }) => {
|
|
2423
2437
|
const u = (f, x) => {
|
|
2424
|
-
let
|
|
2438
|
+
let C = new Array(f).fill([]).map((j) => new Array());
|
|
2425
2439
|
for (const j of x) {
|
|
2426
|
-
if (j.indexCol >=
|
|
2440
|
+
if (j.indexCol >= C.length) {
|
|
2427
2441
|
console.error(`invalid index count. indexCol = ${j.indexCol}, column count = ${f}`);
|
|
2428
2442
|
continue;
|
|
2429
2443
|
}
|
|
2430
|
-
|
|
2444
|
+
C[j.indexCol].push(j.node);
|
|
2431
2445
|
}
|
|
2432
|
-
return
|
|
2433
|
-
}, h =
|
|
2446
|
+
return C;
|
|
2447
|
+
}, h = a || (() => {
|
|
2434
2448
|
});
|
|
2435
|
-
return /* @__PURE__ */ e.jsx("div", { onClick: n, onContextMenu: t, style: { ...c, gap: r != null ? `${r}px` : "5px", gridTemplateColumns: `repeat(${i}, 1fr)` }, className: `${s} alex-evo-sh-ui-kit-column-layout`, children: u(i,
|
|
2449
|
+
return /* @__PURE__ */ e.jsx("div", { onClick: n, onContextMenu: t, style: { ...c, gap: r != null ? `${r}px` : "5px", gridTemplateColumns: `repeat(${i}, 1fr)` }, className: `${s} alex-evo-sh-ui-kit-column-layout`, children: u(i, l).map((f, x) => /* @__PURE__ */ e.jsx("div", { onClick: (C) => h(x, C), className: `${o} alex-evo-sh-ui-kit-column-layout-coll`, children: f.map((C, j) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: C }, j)) }, x)) });
|
|
2436
2450
|
};
|
|
2437
|
-
const
|
|
2438
|
-
const [
|
|
2451
|
+
const wr = 10, zn = 2e-3, Bs = ({ children: n, label: t, className: r, style: s, border: c, hiding: i, defaultVisible: l = !1, action: a }) => {
|
|
2452
|
+
const [o, u] = _(i ? l : !0), h = Y(null), f = (g) => {
|
|
2439
2453
|
if (!g)
|
|
2440
2454
|
return;
|
|
2441
|
-
const v =
|
|
2455
|
+
const v = en(g);
|
|
2442
2456
|
if (v)
|
|
2443
|
-
return v.height +
|
|
2457
|
+
return v.height + wr;
|
|
2444
2458
|
}, x = (g) => {
|
|
2445
2459
|
const v = f(g);
|
|
2446
|
-
return v ? v *
|
|
2447
|
-
},
|
|
2460
|
+
return v ? v * zn > 1 ? 1 : v * zn : 0.4;
|
|
2461
|
+
}, C = (g) => {
|
|
2448
2462
|
const v = g.target;
|
|
2449
2463
|
v.closest(".action-btn") || v.classList.contains("action-btn") || i && u((p) => !p);
|
|
2450
2464
|
};
|
|
2451
2465
|
$(() => {
|
|
2452
|
-
!i && !
|
|
2453
|
-
}, [i,
|
|
2454
|
-
const j =
|
|
2455
|
-
return console.log(j), /* @__PURE__ */ e.jsxs("div", { style: s, className: `content-box ${c ? "border" : ""} ${
|
|
2456
|
-
/* @__PURE__ */ e.jsxs("div", { className: "content-box-label", onClick:
|
|
2457
|
-
/* @__PURE__ */ e.jsx(
|
|
2458
|
-
/* @__PURE__ */ e.jsx("div", { className: "content-box-action-container", children:
|
|
2466
|
+
!i && !o && u(!0);
|
|
2467
|
+
}, [i, o]);
|
|
2468
|
+
const j = je(() => x(h.current), [h.current]);
|
|
2469
|
+
return console.log(j), /* @__PURE__ */ e.jsxs("div", { style: s, className: `content-box ${c ? "border" : ""} ${o ? "active" : ""} ${r ?? ""}`, children: [
|
|
2470
|
+
/* @__PURE__ */ e.jsxs("div", { className: "content-box-label", onClick: C, children: [
|
|
2471
|
+
/* @__PURE__ */ e.jsx(me, { type: "title", children: t }),
|
|
2472
|
+
/* @__PURE__ */ e.jsx("div", { className: "content-box-action-container", children: a ? /* @__PURE__ */ e.jsx("div", { className: "content-box-status-container action-btn", onClick: a.onClick, children: a.icon }) : i ? /* @__PURE__ */ e.jsx("div", { className: "content-box-status-container", children: /* @__PURE__ */ e.jsx("span", { className: `content-box-status ${o ? "active" : ""}` }) }) : null })
|
|
2459
2473
|
] }),
|
|
2460
2474
|
/* @__PURE__ */ e.jsx(
|
|
2461
2475
|
"div",
|
|
@@ -2463,86 +2477,86 @@ const _r = 10, Bn = 2e-3, Bs = ({ children: n, label: t, className: r, style: s,
|
|
|
2463
2477
|
className: "content-box-container-curtain",
|
|
2464
2478
|
style: {
|
|
2465
2479
|
transition: j + "s",
|
|
2466
|
-
height:
|
|
2480
|
+
height: o ? "auto" : "0px"
|
|
2467
2481
|
},
|
|
2468
2482
|
children: /* @__PURE__ */ e.jsx("div", { className: "content-box-container", ref: h, children: n })
|
|
2469
2483
|
}
|
|
2470
2484
|
)
|
|
2471
2485
|
] });
|
|
2472
2486
|
};
|
|
2473
|
-
const
|
|
2474
|
-
const
|
|
2475
|
-
if (!
|
|
2487
|
+
const zs = ({ children: n }) => /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item", children: /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item-container", children: n }) }), Gs = ({ minWith: n, children: t, className: r, gridRowGap: s = "10px", gridColumnGap: c = "5px", itemMinWith: i, itemMaxWith: l, itemWith: a = "400px" }) => {
|
|
2488
|
+
const o = Y(null), [u, h] = _([]), f = k(() => {
|
|
2489
|
+
if (!o.current)
|
|
2476
2490
|
return;
|
|
2477
|
-
|
|
2478
|
-
let j = i ??
|
|
2479
|
-
|
|
2491
|
+
o.current.style.display = "grid", o.current.style.gridRowGap = s, o.current.style.gridColumnGap = c;
|
|
2492
|
+
let j = i ?? a, g = l ?? a;
|
|
2493
|
+
o.current.style.gridTemplateColumns = "repeat(auto-fill, minmax(" + j + ", " + g + "))", o.current.style.gridAutoRows = "0", u.forEach((v) => {
|
|
2480
2494
|
v.style.gridAutoRows = "0", v.style.gridAutoColumns = "0";
|
|
2481
2495
|
});
|
|
2482
|
-
}, [
|
|
2483
|
-
if (!
|
|
2496
|
+
}, [o.current]), x = k(() => {
|
|
2497
|
+
if (!o.current)
|
|
2484
2498
|
return;
|
|
2485
|
-
let j = parseInt(window.getComputedStyle(
|
|
2499
|
+
let j = parseInt(window.getComputedStyle(o.current).getPropertyValue("grid-row-gap")), g = parseInt(window.getComputedStyle(o.current).getPropertyValue("grid-auto-rows"));
|
|
2486
2500
|
u.forEach((v) => {
|
|
2487
|
-
let
|
|
2488
|
-
p && (
|
|
2501
|
+
let m = 0, p = v.querySelector(".adaptiv-grid-item-container");
|
|
2502
|
+
p && (m = Math.ceil((p.getBoundingClientRect().height + j) / (g + j))), v.style.gridRowEnd = "span " + m;
|
|
2489
2503
|
});
|
|
2490
|
-
}, [u,
|
|
2491
|
-
if (
|
|
2492
|
-
let j =
|
|
2504
|
+
}, [u, o.current]), C = k(() => {
|
|
2505
|
+
if (o.current) {
|
|
2506
|
+
let j = o.current.querySelectorAll(".adaptiv-grid-item");
|
|
2493
2507
|
h(Array.prototype.slice.call(j, 0));
|
|
2494
2508
|
}
|
|
2495
|
-
}, [
|
|
2509
|
+
}, [o.current, t]);
|
|
2496
2510
|
return $(() => {
|
|
2497
|
-
|
|
2498
|
-
}, [
|
|
2511
|
+
C();
|
|
2512
|
+
}, [C]), $(() => {
|
|
2499
2513
|
f();
|
|
2500
2514
|
}, [f]), $(() => {
|
|
2501
2515
|
x();
|
|
2502
2516
|
}, [x, t]), $(() => (window.addEventListener("resize", x), () => {
|
|
2503
2517
|
window.addEventListener("resize", x);
|
|
2504
|
-
}), [x]), /* @__PURE__ */ e.jsx("div", { style: { minWidth: n }, ref:
|
|
2518
|
+
}), [x]), /* @__PURE__ */ e.jsx("div", { style: { minWidth: n }, ref: o, className: `adaptiv-grid-layout ${r}`, children: t });
|
|
2505
2519
|
};
|
|
2506
|
-
const
|
|
2507
|
-
const
|
|
2508
|
-
const
|
|
2520
|
+
const Ys = ({ children: n, className: t, style: r }) => /* @__PURE__ */ e.jsx("div", { style: r, className: `alex-evo-sh-ui-kit alex-evo-sh-ui-kit-panel ${t}`, children: n });
|
|
2521
|
+
const Ws = ({ className: n, children: t, height: r }) => /* @__PURE__ */ e.jsx("div", { className: `scroll-container ${n}`, style: { height: r }, children: t });
|
|
2522
|
+
const Zs = ({
|
|
2509
2523
|
tabs: n,
|
|
2510
2524
|
scrollAmount: t = 150,
|
|
2511
2525
|
tabClassName: r = "",
|
|
2512
2526
|
activeTabClassName: s = "active",
|
|
2513
2527
|
onTabClick: c,
|
|
2514
2528
|
activeTabIndex: i,
|
|
2515
|
-
tabContainerClassName:
|
|
2529
|
+
tabContainerClassName: l = ""
|
|
2516
2530
|
}) => {
|
|
2517
|
-
const [
|
|
2531
|
+
const [a, o] = _(0), u = i !== void 0 ? i : a, h = Y(null), f = Y(null), [x, C] = _(!1), j = (m) => {
|
|
2518
2532
|
if (h.current) {
|
|
2519
2533
|
const p = t || h.current.offsetWidth / 2;
|
|
2520
2534
|
h.current.scrollBy({
|
|
2521
|
-
left:
|
|
2535
|
+
left: m === "left" ? -p : p,
|
|
2522
2536
|
behavior: "smooth"
|
|
2523
2537
|
});
|
|
2524
2538
|
}
|
|
2525
2539
|
};
|
|
2526
2540
|
$(() => {
|
|
2527
|
-
const
|
|
2528
|
-
h.current &&
|
|
2541
|
+
const m = () => {
|
|
2542
|
+
h.current && C(
|
|
2529
2543
|
h.current.scrollWidth > h.current.clientWidth
|
|
2530
2544
|
);
|
|
2531
2545
|
};
|
|
2532
|
-
return
|
|
2546
|
+
return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
|
|
2533
2547
|
}, []), $(() => {
|
|
2534
2548
|
if (h.current && f.current) {
|
|
2535
|
-
const
|
|
2536
|
-
|
|
2549
|
+
const m = h.current.children[u];
|
|
2550
|
+
m && (f.current.style.width = `${m.offsetWidth}px`, f.current.style.transform = `translateX(${m.offsetLeft}px)`);
|
|
2537
2551
|
}
|
|
2538
2552
|
}, [u]);
|
|
2539
|
-
const g = (
|
|
2540
|
-
|
|
2541
|
-
}, v = (
|
|
2542
|
-
i === void 0 &&
|
|
2553
|
+
const g = (m) => {
|
|
2554
|
+
m.key === "ArrowRight" ? v((u + 1) % n.length) : m.key === "ArrowLeft" && v((u - 1 + n.length) % n.length);
|
|
2555
|
+
}, v = (m) => {
|
|
2556
|
+
i === void 0 && o(m), c && c(m);
|
|
2543
2557
|
};
|
|
2544
2558
|
return /* @__PURE__ */ e.jsxs("div", { className: "alex-evo-ui-kit-tabs-container", children: [
|
|
2545
|
-
/* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-scroll-buttons ${
|
|
2559
|
+
/* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-scroll-buttons ${l}`, children: [
|
|
2546
2560
|
x && /* @__PURE__ */ e.jsx("button", { onClick: () => j("left"), className: "alex-evo-ui-kit-scroll-button", children: "◀" }),
|
|
2547
2561
|
/* @__PURE__ */ e.jsxs(
|
|
2548
2562
|
"div",
|
|
@@ -2552,14 +2566,14 @@ const Ws = ({
|
|
|
2552
2566
|
onKeyDown: g,
|
|
2553
2567
|
tabIndex: 0,
|
|
2554
2568
|
children: [
|
|
2555
|
-
n.map((
|
|
2569
|
+
n.map((m, p) => /* @__PURE__ */ e.jsx(
|
|
2556
2570
|
"div",
|
|
2557
2571
|
{
|
|
2558
2572
|
className: `alex-evo-ui-kit-tab ${r} ${u === p ? s : ""}`,
|
|
2559
2573
|
onClick: () => v(p),
|
|
2560
|
-
children:
|
|
2574
|
+
children: m.label
|
|
2561
2575
|
},
|
|
2562
|
-
|
|
2576
|
+
m.label
|
|
2563
2577
|
)),
|
|
2564
2578
|
/* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-indicator", ref: f })
|
|
2565
2579
|
]
|
|
@@ -2570,7 +2584,7 @@ const Ws = ({
|
|
|
2570
2584
|
/* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-tab-content", children: n[u].content })
|
|
2571
2585
|
] });
|
|
2572
2586
|
};
|
|
2573
|
-
function
|
|
2587
|
+
function Sr(n) {
|
|
2574
2588
|
let t = [];
|
|
2575
2589
|
if (n.length > 0)
|
|
2576
2590
|
for (let r of n)
|
|
@@ -2585,41 +2599,41 @@ function wr(n) {
|
|
|
2585
2599
|
}
|
|
2586
2600
|
return t;
|
|
2587
2601
|
}
|
|
2588
|
-
const
|
|
2589
|
-
function i(
|
|
2602
|
+
const Mr = ({ data: n, column: t, color: r, backgroundColor: s, H: c }) => {
|
|
2603
|
+
function i(o, u) {
|
|
2590
2604
|
for (let h in u)
|
|
2591
|
-
if (
|
|
2605
|
+
if (o === h)
|
|
2592
2606
|
return u[h];
|
|
2593
2607
|
}
|
|
2594
|
-
function
|
|
2595
|
-
return typeof
|
|
2608
|
+
function l(o) {
|
|
2609
|
+
return typeof o == "number" || typeof o == "string" ? { content: o } : o;
|
|
2596
2610
|
}
|
|
2597
|
-
function o
|
|
2598
|
-
return
|
|
2611
|
+
function a(o) {
|
|
2612
|
+
return o ? Array.isArray(o) ? o.map((u) => l(u)) : [l(o)] : [];
|
|
2599
2613
|
}
|
|
2600
2614
|
return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor: s, height: c }, children: function() {
|
|
2601
|
-
const
|
|
2602
|
-
return t.template ? t.template(
|
|
2615
|
+
const o = a(i(t.field, n));
|
|
2616
|
+
return t.template ? t.template(o, n) : o.map((u, h) => /* @__PURE__ */ e.jsx("p", { style: { color: u.color ?? r }, className: u.onClick ? "no-click" : "", onClick: u.onClick, children: u.content }, h));
|
|
2603
2617
|
}() });
|
|
2604
|
-
},
|
|
2618
|
+
}, Er = ({ actions: n, item: t, columns: r, onContextMenu: s, onDelete: c, onEdit: i, onClickRow: l, index: a, maxH: o }) => {
|
|
2605
2619
|
const u = (f) => !f.target.closest(".no-click"), h = k((f) => {
|
|
2606
|
-
u(f) &&
|
|
2607
|
-
}, [
|
|
2620
|
+
u(f) && l && l(t, a);
|
|
2621
|
+
}, [a, l]);
|
|
2608
2622
|
return /* @__PURE__ */ e.jsxs("tr", { className: "table-row", onClick: h, children: [
|
|
2609
|
-
r.map((f, x) => /* @__PURE__ */ e.jsx(
|
|
2610
|
-
n ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((f, x) => /* @__PURE__ */ e.jsx(
|
|
2623
|
+
r.map((f, x) => /* @__PURE__ */ e.jsx(Mr, { H: o == null ? void 0 : o[x], color: f.color, backgroundColor: f.backgroundColor, column: f, data: t }, x)),
|
|
2624
|
+
n ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((f, x) => /* @__PURE__ */ e.jsx(pe, { transparent: !0, icon: f.icon, onClick: (C) => f.onClick(C, t, a) }, x)) }) }) : null,
|
|
2611
2625
|
s || c || i ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] table-edit-button no-click", children: /* @__PURE__ */ e.jsxs("div", { className: "table-edit-button", children: [
|
|
2612
|
-
i ? /* @__PURE__ */ e.jsx(
|
|
2613
|
-
c ? /* @__PURE__ */ e.jsx(
|
|
2614
|
-
s ? /* @__PURE__ */ e.jsx(
|
|
2626
|
+
i ? /* @__PURE__ */ e.jsx(pe, { transparent: !0, icon: /* @__PURE__ */ e.jsx(Kt, {}), onClick: () => i(t, a) }) : null,
|
|
2627
|
+
c ? /* @__PURE__ */ e.jsx(pe, { transparent: !0, icon: /* @__PURE__ */ e.jsx(Yt, { className: "text-red-500" }), onClick: () => c(t, a) }) : null,
|
|
2628
|
+
s ? /* @__PURE__ */ e.jsx(pe, { transparent: !0, icon: /* @__PURE__ */ e.jsx(Xt, {}), onClick: (f) => s(f, t, a) }) : null
|
|
2615
2629
|
] }) }) : null
|
|
2616
2630
|
] });
|
|
2617
|
-
},
|
|
2618
|
-
const
|
|
2619
|
-
var v,
|
|
2631
|
+
}, Xs = ({ data: n, columns: t, onDelete: r, onContextMenu: s, onEdit: c, actions: i, onClickRow: l, adaptive: a }) => {
|
|
2632
|
+
const o = je(() => t ?? Sr(n), [n, t]), u = Y(null), h = k(() => {
|
|
2633
|
+
var v, m;
|
|
2620
2634
|
if (!u.current)
|
|
2621
2635
|
return;
|
|
2622
|
-
const f = u.current, x = f.tBodies.item(0),
|
|
2636
|
+
const f = u.current, x = f.tBodies.item(0), C = (m = (v = f.tHead) == null ? void 0 : v.children.item(0)) == null ? void 0 : m.children, j = (C == null ? void 0 : C.length) ?? 1, g = new Array(j).fill(0);
|
|
2623
2637
|
if (x) {
|
|
2624
2638
|
for (const p of x.children)
|
|
2625
2639
|
for (let w = 0; w < p.children.length; w++) {
|
|
@@ -2629,79 +2643,79 @@ const Sr = ({ data: n, column: t, color: r, backgroundColor: s, H: c }) => {
|
|
|
2629
2643
|
return g;
|
|
2630
2644
|
}
|
|
2631
2645
|
}, [u]);
|
|
2632
|
-
return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${
|
|
2646
|
+
return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${l ? "clicked" : ""} ${a ? "auto-rotate" : ""}`, children: /* @__PURE__ */ e.jsxs("table", { ref: u, children: [
|
|
2633
2647
|
/* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
2634
|
-
|
|
2635
|
-
var
|
|
2636
|
-
return /* @__PURE__ */ e.jsx("th", { style: { height: (
|
|
2648
|
+
o.map((f, x) => {
|
|
2649
|
+
var C;
|
|
2650
|
+
return /* @__PURE__ */ e.jsx("th", { style: { height: (C = h()) == null ? void 0 : C[x] }, className: "min-width", children: f.title }, x);
|
|
2637
2651
|
}),
|
|
2638
2652
|
i ? /* @__PURE__ */ e.jsx("th", { className: "table-actions-header", children: "actions" }) : null,
|
|
2639
2653
|
r || s || c ? /* @__PURE__ */ e.jsx("th", { className: "table-actions-header" }) : null
|
|
2640
2654
|
] }) }),
|
|
2641
|
-
/* @__PURE__ */ e.jsx("tbody", { children: n.map((f, x) => /* @__PURE__ */ e.jsx(
|
|
2655
|
+
/* @__PURE__ */ e.jsx("tbody", { children: n.map((f, x) => /* @__PURE__ */ e.jsx(Er, { maxH: h(), onClickRow: l, actions: i, index: x, columns: o, item: f, onDelete: r, onContextMenu: s, onEdit: c }, x)) })
|
|
2642
2656
|
] }) });
|
|
2643
2657
|
};
|
|
2644
|
-
const Rr = ({ icon: n, title: t, to: r }) => /* @__PURE__ */ e.jsxs(
|
|
2658
|
+
const Rr = ({ icon: n, title: t, to: r }) => /* @__PURE__ */ e.jsxs(mn, { to: r, className: "navigation-item", children: [
|
|
2645
2659
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: n }),
|
|
2646
2660
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: t })
|
|
2647
|
-
] }),
|
|
2661
|
+
] }), $r = ({ onClick: n, icon: t, title: r }) => /* @__PURE__ */ e.jsxs("div", { onClick: n, className: "navigation-item", children: [
|
|
2648
2662
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: t }),
|
|
2649
2663
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: r })
|
|
2650
|
-
] }),
|
|
2651
|
-
const
|
|
2664
|
+
] }), Us = ({ btns: n }) => /* @__PURE__ */ e.jsx("div", { className: "navigation-bar-container", children: /* @__PURE__ */ e.jsx("div", { className: "block-content", children: n.map((t, r) => t.type === "button" ? /* @__PURE__ */ e.jsx($r, { icon: t.icon, onClick: t.onClick, title: t.text }, r) : t.type === "link" ? /* @__PURE__ */ e.jsx(Rr, { icon: t.icon, to: t.to, title: t.text }, r) : null) }) });
|
|
2665
|
+
const Gn = ({ onClick: n, icon: t, title: r, to: s }) => /* @__PURE__ */ e.jsxs(mn, { onClick: n, to: s, className: "navigation-item", children: [
|
|
2652
2666
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: t }),
|
|
2653
2667
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: r })
|
|
2654
|
-
] }),
|
|
2668
|
+
] }), Je = ({ onClick: n, icon: t, title: r, active: s = !1 }) => /* @__PURE__ */ e.jsxs("div", { onClick: n, className: `navigation-item ${s ? "active" : ""}`, children: [
|
|
2655
2669
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: t }),
|
|
2656
2670
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: r })
|
|
2657
|
-
] }),
|
|
2658
|
-
/* @__PURE__ */ e.jsxs("div", { className: `navigation-drawer-container ${n ||
|
|
2671
|
+
] }), Js = ({ visible: n, firstBtn: t, mainBtn: r, onHide: s, otherBtn: c, backBtn: i, openAlways: l }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2672
|
+
/* @__PURE__ */ e.jsxs("div", { className: `navigation-drawer-container ${n || l ? "show" : "hide"}`, children: [
|
|
2659
2673
|
t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2660
2674
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-block", children: [
|
|
2661
2675
|
/* @__PURE__ */ e.jsx("div", { className: "block-header" }),
|
|
2662
|
-
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: /* @__PURE__ */ e.jsx(
|
|
2676
|
+
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: /* @__PURE__ */ e.jsx(Je, { active: t.active, onClick: t.onClick, title: t.text, icon: t.icon ?? /* @__PURE__ */ e.jsx(jn, {}) }) })
|
|
2663
2677
|
] }),
|
|
2664
|
-
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(
|
|
2678
|
+
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(xe, {}) })
|
|
2665
2679
|
] }) : null,
|
|
2666
2680
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-block", children: [
|
|
2667
2681
|
/* @__PURE__ */ e.jsx("div", { className: "block-header" }),
|
|
2668
|
-
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: r && r.map((
|
|
2682
|
+
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: r && r.map((a, o) => a.type === "button" ? /* @__PURE__ */ e.jsx(Je, { active: a.active, onClick: a.onClick, title: a.text, icon: a.icon }, o) : a.type === "link" ? /* @__PURE__ */ e.jsx(Gn, { onClick: () => s(), title: a.text, icon: a.icon, to: a.to }, o) : null) })
|
|
2669
2683
|
] }),
|
|
2670
|
-
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(
|
|
2684
|
+
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(xe, {}) }),
|
|
2671
2685
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-block", children: [
|
|
2672
2686
|
/* @__PURE__ */ e.jsx("div", { className: "block-header" }),
|
|
2673
|
-
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: c && c.map((
|
|
2687
|
+
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: c && c.map((a, o) => a.type === "button" ? /* @__PURE__ */ e.jsx(Je, { active: a.active, onClick: a.onClick, title: a.text, icon: a.icon }, o) : a.type === "link" ? /* @__PURE__ */ e.jsx(Gn, { onClick: () => s(), title: a.text, icon: a.icon, to: a.to }, o) : null) })
|
|
2674
2688
|
] }),
|
|
2675
|
-
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(
|
|
2676
|
-
i ? /* @__PURE__ */ e.jsx("div", { className: "navigation-block", children: /* @__PURE__ */ e.jsx(
|
|
2689
|
+
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(xe, {}) }),
|
|
2690
|
+
i ? /* @__PURE__ */ e.jsx("div", { className: "navigation-block", children: /* @__PURE__ */ e.jsx(Je, { active: i.active, onClick: i.onClick, title: i.text, icon: i.icon }) }) : null
|
|
2677
2691
|
] }),
|
|
2678
|
-
n && !
|
|
2692
|
+
n && !l ? /* @__PURE__ */ e.jsx("div", { className: "backplate", style: { zIndex: 1100 }, onClick: () => s() }) : null
|
|
2679
2693
|
] });
|
|
2680
|
-
const Lr = ({ icon: n, title: t, to: r }) => /* @__PURE__ */ e.jsxs(
|
|
2694
|
+
const Lr = ({ icon: n, title: t, to: r }) => /* @__PURE__ */ e.jsxs(mn, { to: r, className: "navigation-item", children: [
|
|
2681
2695
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: n }),
|
|
2682
2696
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: t })
|
|
2683
|
-
] }),
|
|
2697
|
+
] }), Ke = ({ onClick: n, icon: t, title: r, active: s = !1 }) => /* @__PURE__ */ e.jsxs("div", { onClick: n, className: `navigation-item ${s ? "active" : ""}`, children: [
|
|
2684
2698
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: t }),
|
|
2685
2699
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: r })
|
|
2686
|
-
] }),
|
|
2687
|
-
n ? /* @__PURE__ */ e.jsx(
|
|
2700
|
+
] }), Ks = ({ onToggleMenu: n, firstBtn: t, mainBtn: r, backBtn: s }) => /* @__PURE__ */ e.jsx("div", { className: "navigation-rail-container", children: /* @__PURE__ */ e.jsx("div", { className: "navigation-block", children: /* @__PURE__ */ e.jsxs("div", { className: "block-content", children: [
|
|
2701
|
+
n ? /* @__PURE__ */ e.jsx(Ke, { icon: /* @__PURE__ */ e.jsx(qn, {}), onClick: n }) : null,
|
|
2688
2702
|
t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2689
|
-
/* @__PURE__ */ e.jsx(
|
|
2690
|
-
/* @__PURE__ */ e.jsx(
|
|
2703
|
+
/* @__PURE__ */ e.jsx(xe, {}),
|
|
2704
|
+
/* @__PURE__ */ e.jsx(Ke, { active: t.active, title: t.text, icon: t.icon ?? /* @__PURE__ */ e.jsx(jn, {}), onClick: (c) => {
|
|
2691
2705
|
t.onClick && t.onClick(c);
|
|
2692
2706
|
} }),
|
|
2693
|
-
/* @__PURE__ */ e.jsx(
|
|
2707
|
+
/* @__PURE__ */ e.jsx(xe, {})
|
|
2694
2708
|
] }) : null,
|
|
2695
|
-
r && r.map((c, i) => c.type === "button" ? /* @__PURE__ */ e.jsx(
|
|
2709
|
+
r && r.map((c, i) => c.type === "button" ? /* @__PURE__ */ e.jsx(Ke, { active: c.active, onClick: c.onClick, title: c.text, icon: c.icon }, i) : c.type === "link" ? /* @__PURE__ */ e.jsx(Lr, { title: c.text, icon: c.icon, to: c.to }, i) : null),
|
|
2696
2710
|
s ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2697
|
-
/* @__PURE__ */ e.jsx(
|
|
2698
|
-
/* @__PURE__ */ e.jsx(
|
|
2711
|
+
/* @__PURE__ */ e.jsx(xe, {}),
|
|
2712
|
+
/* @__PURE__ */ e.jsx(Ke, { active: s.active, title: s.text, icon: s.icon ?? /* @__PURE__ */ e.jsx(jn, {}), onClick: (c) => {
|
|
2699
2713
|
s.onClick && s.onClick(c);
|
|
2700
2714
|
} }),
|
|
2701
|
-
/* @__PURE__ */ e.jsx(
|
|
2715
|
+
/* @__PURE__ */ e.jsx(xe, {})
|
|
2702
2716
|
] }) : null
|
|
2703
2717
|
] }) }) });
|
|
2704
|
-
function
|
|
2718
|
+
function Tr(n, t, r) {
|
|
2705
2719
|
if (!(!n || !t)) {
|
|
2706
2720
|
n.clearRect(0, 0, t.width, t.height), r || (r = "#ff0000"), n.fillStyle = r, n.fillRect(0, 0, t.width, t.height);
|
|
2707
2721
|
var s = n.createLinearGradient(0, 0, t.width, 0);
|
|
@@ -2710,63 +2724,63 @@ function $r(n, t, r) {
|
|
|
2710
2724
|
c.addColorStop(0, "transparent"), c.addColorStop(1, "#000"), n.fillStyle = c, n.fillRect(0, 0, t.width, t.height);
|
|
2711
2725
|
}
|
|
2712
2726
|
}
|
|
2713
|
-
function
|
|
2727
|
+
function Or(n, t, r, s) {
|
|
2714
2728
|
!t || !n || n.addEventListener("mousedown", function(c) {
|
|
2715
|
-
|
|
2729
|
+
Vr(c, n, r, s);
|
|
2716
2730
|
});
|
|
2717
2731
|
}
|
|
2718
|
-
function
|
|
2732
|
+
function Yn(n, t, r, s) {
|
|
2719
2733
|
if (n.preventDefault(), !t)
|
|
2720
2734
|
return;
|
|
2721
2735
|
const c = t.getBoundingClientRect();
|
|
2722
2736
|
let i = n.clientY - c.top;
|
|
2723
2737
|
i > c.height && (i = c.height), i < 0 && (i = 0);
|
|
2724
|
-
let
|
|
2725
|
-
|
|
2726
|
-
const
|
|
2727
|
-
s(Math.round(h), Math.round(u)),
|
|
2738
|
+
let l = n.clientX - c.left;
|
|
2739
|
+
l > c.width && (l = c.width), l < 0 && (l = 0);
|
|
2740
|
+
const a = i / c.height, o = l / c.width, u = 100 - 100 * a, h = 100 * o;
|
|
2741
|
+
s(Math.round(h), Math.round(u)), ht(r, l, i);
|
|
2728
2742
|
}
|
|
2729
|
-
function
|
|
2730
|
-
const c = (
|
|
2731
|
-
|
|
2743
|
+
function Vr(n, t, r, s) {
|
|
2744
|
+
const c = (l) => Yn(l, t, r, s);
|
|
2745
|
+
Yn(n, t, r, s), r.classList.add("dragging"), window.addEventListener("mousemove", c), window.addEventListener("mouseup", i);
|
|
2732
2746
|
function i() {
|
|
2733
2747
|
r.classList.remove("dragging"), window.removeEventListener("mousemove", c), window.removeEventListener("mouseup", i);
|
|
2734
2748
|
}
|
|
2735
2749
|
}
|
|
2736
|
-
function
|
|
2750
|
+
function ht(n, t, r) {
|
|
2737
2751
|
n.style.top = r + "px", n.style.left = t + "px";
|
|
2738
2752
|
}
|
|
2739
|
-
function
|
|
2753
|
+
function Dr(n, t) {
|
|
2740
2754
|
if (!n || !t)
|
|
2741
2755
|
return;
|
|
2742
2756
|
const r = n.createLinearGradient(0, 0, 0, t.height);
|
|
2743
2757
|
r.addColorStop(0, "hsl(0, 100%, 50%)"), r.addColorStop(0.17, "hsl(298.8, 100%, 50%)"), r.addColorStop(0.33, "hsl(241.2, 100%, 50%)"), r.addColorStop(0.5, "hsl(180, 100%, 50%)"), r.addColorStop(0.67, "hsl(118.8, 100%, 50%)"), r.addColorStop(0.83, "hsl(61.2, 100%, 50%)"), r.addColorStop(1, "hsl(360, 100%, 50%)"), n.fillStyle = r, n.fillRect(0, 0, t.width, t.height);
|
|
2744
2758
|
}
|
|
2745
|
-
function
|
|
2759
|
+
function Fr(n, t, r, s) {
|
|
2746
2760
|
!n || !t || t.addEventListener("mousedown", function(c) {
|
|
2747
|
-
|
|
2761
|
+
Pr(c, r, t, s);
|
|
2748
2762
|
});
|
|
2749
2763
|
}
|
|
2750
|
-
function
|
|
2764
|
+
function Wn(n, t, r, s) {
|
|
2751
2765
|
if (n.preventDefault(), !t)
|
|
2752
2766
|
return;
|
|
2753
2767
|
const c = t.getBoundingClientRect();
|
|
2754
2768
|
let i = n.clientY - c.top;
|
|
2755
2769
|
i > c.height && (i = c.height), i < 0 && (i = 0);
|
|
2756
|
-
const
|
|
2757
|
-
s(
|
|
2770
|
+
const a = 360 - 360 * (i / c.height);
|
|
2771
|
+
s(a), ft(r, i);
|
|
2758
2772
|
}
|
|
2759
|
-
function
|
|
2760
|
-
const c = (
|
|
2761
|
-
|
|
2773
|
+
function Pr(n, t, r, s) {
|
|
2774
|
+
const c = (l) => Wn(l, r, t, s);
|
|
2775
|
+
Wn(n, r, t, s), t.classList.add("dragging"), window.addEventListener("mousemove", c), window.addEventListener("mouseup", i);
|
|
2762
2776
|
function i() {
|
|
2763
2777
|
t.classList.remove("dragging"), window.removeEventListener("mousemove", c), window.removeEventListener("mouseup", i);
|
|
2764
2778
|
}
|
|
2765
2779
|
}
|
|
2766
|
-
function
|
|
2780
|
+
function ft(n, t) {
|
|
2767
2781
|
n.style.top = t + "px";
|
|
2768
2782
|
}
|
|
2769
|
-
const
|
|
2783
|
+
const Hr = [
|
|
2770
2784
|
"#FFFFFF",
|
|
2771
2785
|
"#FFFB0D",
|
|
2772
2786
|
"#0532FF",
|
|
@@ -2779,105 +2793,105 @@ const Pr = [
|
|
|
2779
2793
|
"#D27AEE",
|
|
2780
2794
|
"#5BA8C4",
|
|
2781
2795
|
"#E64AA9"
|
|
2782
|
-
],
|
|
2796
|
+
], xt = { h: 0, s: 1, v: 0.5 }, Ar = (n) => {
|
|
2783
2797
|
try {
|
|
2784
|
-
return
|
|
2798
|
+
return qe(Te(n));
|
|
2785
2799
|
} catch {
|
|
2786
|
-
return
|
|
2800
|
+
return xt;
|
|
2787
2801
|
}
|
|
2788
|
-
},
|
|
2789
|
-
const
|
|
2790
|
-
function w(M,
|
|
2791
|
-
if (!(!M || !
|
|
2802
|
+
}, Ir = ({ onHide: n, beginColor: t, onChange: r, onAddColor: s, def: c, userColor: i = [] }) => {
|
|
2803
|
+
const l = Y(null), a = Y(null), o = Y(null), u = Y(null), [h, f] = _(t ? Ar(t) : xt), x = je(() => Be(h), [h]), C = je(() => "#" + Le(x), [x]), [j, g] = _(!1), [v, m] = _(C), p = je(() => v[0] != "#" ? "#" + v : v, [v]);
|
|
2804
|
+
function w(M, D, Z, R, A) {
|
|
2805
|
+
if (!(!M || !Z))
|
|
2792
2806
|
try {
|
|
2793
|
-
const
|
|
2794
|
-
|
|
2807
|
+
const X = M.getBoundingClientRect(), te = Z.getBoundingClientRect(), ie = Math.round(A.s * X.width), z = Math.round((1 - A.v) * X.height), O = (360 - A.h * 360) / 360 * te.height;
|
|
2808
|
+
ht(D, ie, z), ft(R, O);
|
|
2795
2809
|
} catch {
|
|
2796
2810
|
}
|
|
2797
2811
|
}
|
|
2798
2812
|
const y = (M) => {
|
|
2799
|
-
f(
|
|
2813
|
+
f(qe(Te(M))), m(M);
|
|
2800
2814
|
}, S = k(() => {
|
|
2801
|
-
s && s([...i,
|
|
2802
|
-
}, [s, i,
|
|
2803
|
-
r && r(
|
|
2804
|
-
}, [r,
|
|
2805
|
-
f(
|
|
2806
|
-
}, [x]),
|
|
2807
|
-
|
|
2815
|
+
s && s([...i, C]);
|
|
2816
|
+
}, [s, i, C]), T = k(() => {
|
|
2817
|
+
r && r(C);
|
|
2818
|
+
}, [r, C]), L = k((M, D) => {
|
|
2819
|
+
f(qe({ ...x, [M]: D })), m(Le({ ...x, [M]: D }));
|
|
2820
|
+
}, [x]), H = k((M) => {
|
|
2821
|
+
m(M);
|
|
2808
2822
|
}, []), U = k(() => {
|
|
2809
2823
|
c && r && r(c);
|
|
2810
2824
|
}, [c]);
|
|
2811
2825
|
return $(() => {
|
|
2812
|
-
(v.length === 4 || v.length === 7) && f(
|
|
2826
|
+
(v.length === 4 || v.length === 7) && f(qe(Te(v)));
|
|
2813
2827
|
}, [v]), $(() => {
|
|
2814
|
-
if (!
|
|
2828
|
+
if (!o.current || !l.current || !a.current || !u.current)
|
|
2815
2829
|
return;
|
|
2816
|
-
const M =
|
|
2817
|
-
|
|
2830
|
+
const M = o.current.getContext("2d");
|
|
2831
|
+
Tr(M, o.current, `#${Le(Be(h.h, 1, 1))}`), w(o.current, u.current, l.current, a.current, h);
|
|
2818
2832
|
}, [h]), $(() => {
|
|
2819
|
-
if (!
|
|
2833
|
+
if (!o.current || !u.current)
|
|
2820
2834
|
return;
|
|
2821
|
-
const M =
|
|
2822
|
-
|
|
2823
|
-
f((
|
|
2824
|
-
const A = { ...
|
|
2825
|
-
return
|
|
2835
|
+
const M = o.current.getContext("2d");
|
|
2836
|
+
Or(o.current, M, u.current, (D, Z) => {
|
|
2837
|
+
f((R) => {
|
|
2838
|
+
const A = { ...R, s: D / 100, v: Z / 100 };
|
|
2839
|
+
return m(Le(Be(A))), A;
|
|
2826
2840
|
});
|
|
2827
2841
|
});
|
|
2828
2842
|
}, []), $(() => {
|
|
2829
|
-
if (!
|
|
2843
|
+
if (!l.current || !a.current)
|
|
2830
2844
|
return;
|
|
2831
|
-
const M =
|
|
2832
|
-
|
|
2833
|
-
f((
|
|
2834
|
-
const
|
|
2835
|
-
return
|
|
2845
|
+
const M = l.current.getContext("2d");
|
|
2846
|
+
Dr(M, l.current), Fr(M, l.current, a.current, (D) => {
|
|
2847
|
+
f((Z) => {
|
|
2848
|
+
const R = { ...Z, h: D / 360 };
|
|
2849
|
+
return m(Le(Be(R))), R;
|
|
2836
2850
|
});
|
|
2837
2851
|
});
|
|
2838
2852
|
}, []), $(() => {
|
|
2839
2853
|
console.log(h, x);
|
|
2840
|
-
}, [h]), /* @__PURE__ */ e.jsxs(
|
|
2854
|
+
}, [h]), /* @__PURE__ */ e.jsxs(Me, { className: "color-picker-panel", onHide: n, clearStyle: !0, children: [
|
|
2841
2855
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
2842
|
-
/* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children:
|
|
2843
|
-
/* @__PURE__ */ e.jsx("button", { className: "button-color-picker eyedropper", onClick:
|
|
2856
|
+
/* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Hr.map((M, D) => /* @__PURE__ */ e.jsx("button", { onClick: () => y(M), className: "swatch", style: { backgroundColor: M } }, D)) }),
|
|
2857
|
+
/* @__PURE__ */ e.jsx("button", { className: "button-color-picker eyedropper", onClick: T, children: "Get Color" })
|
|
2844
2858
|
] }),
|
|
2845
2859
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
2846
2860
|
/* @__PURE__ */ e.jsxs("div", { className: "spectrum-map spectrum-cursor", children: [
|
|
2847
2861
|
/* @__PURE__ */ e.jsx("button", { ref: u, className: "color-cursor spectrum-cursor" }),
|
|
2848
|
-
/* @__PURE__ */ e.jsx("canvas", { ref:
|
|
2862
|
+
/* @__PURE__ */ e.jsx("canvas", { ref: o, className: "spectrum-canvas spectrum-canvas-color-picker" })
|
|
2849
2863
|
] }),
|
|
2850
2864
|
/* @__PURE__ */ e.jsxs("div", { className: "hue-map", children: [
|
|
2851
|
-
/* @__PURE__ */ e.jsx("button", { ref:
|
|
2852
|
-
/* @__PURE__ */ e.jsx("canvas", { ref:
|
|
2865
|
+
/* @__PURE__ */ e.jsx("button", { ref: a, className: "color-cursor hue-cursor" }),
|
|
2866
|
+
/* @__PURE__ */ e.jsx("canvas", { ref: l, className: "hue-canvas hue-canvas-color-picker" })
|
|
2853
2867
|
] })
|
|
2854
2868
|
] }),
|
|
2855
2869
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
2856
2870
|
/* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields rgb-fields ${j ? "" : "active"}`, children: [
|
|
2857
2871
|
/* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
2858
2872
|
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "R:" }),
|
|
2859
|
-
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: x.r, onChange: (M) =>
|
|
2873
|
+
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: x.r, onChange: (M) => L("r", Number(M.target.value)), className: "field-input rgb-input" })
|
|
2860
2874
|
] }),
|
|
2861
2875
|
/* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
2862
2876
|
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "G:" }),
|
|
2863
|
-
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: x.g, onChange: (M) =>
|
|
2877
|
+
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: x.g, onChange: (M) => L("g", Number(M.target.value)), className: "field-input rgb-input" })
|
|
2864
2878
|
] }),
|
|
2865
2879
|
/* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
2866
2880
|
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "B:" }),
|
|
2867
|
-
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: x.b, onChange: (M) =>
|
|
2881
|
+
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: x.b, onChange: (M) => L("b", Number(M.target.value)), className: "field-input rgb-input" })
|
|
2868
2882
|
] })
|
|
2869
2883
|
] }),
|
|
2870
2884
|
/* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields hex-field ${j ? "active" : ""}`, children: [
|
|
2871
2885
|
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "Hex:" }),
|
|
2872
|
-
/* @__PURE__ */ e.jsx("input", { type: "text", className: "field-input", value: p, onChange: (M) =>
|
|
2886
|
+
/* @__PURE__ */ e.jsx("input", { type: "text", className: "field-input", value: p, onChange: (M) => H(M.target.value) })
|
|
2873
2887
|
] }),
|
|
2874
2888
|
/* @__PURE__ */ e.jsx("button", { className: "button-color-picker mode-toggle", onClick: () => g((M) => !M), children: "Mode" })
|
|
2875
2889
|
] }),
|
|
2876
2890
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
2877
2891
|
/* @__PURE__ */ e.jsx("h2", { className: "panel-header", children: "User Colors" }),
|
|
2878
|
-
/* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: i ? i.map((M,
|
|
2892
|
+
/* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: i ? i.map((M, D) => /* @__PURE__ */ e.jsx("button", { onClick: () => y(M), className: "swatch", style: { backgroundColor: M } }, D)) : null }),
|
|
2879
2893
|
/* @__PURE__ */ e.jsxs("button", { onClick: S, className: "button-color-picker add-swatch", children: [
|
|
2880
|
-
/* @__PURE__ */ e.jsx("span", { style: { backgroundColor: `#${
|
|
2894
|
+
/* @__PURE__ */ e.jsx("span", { style: { backgroundColor: `#${Le(Be(h))}` }, className: "color-indicator" }),
|
|
2881
2895
|
/* @__PURE__ */ e.jsx("span", { children: "Add to Swatches" })
|
|
2882
2896
|
] }),
|
|
2883
2897
|
c && /* @__PURE__ */ e.jsxs("button", { onClick: () => U(), className: "button-color-picker add-swatch", children: [
|
|
@@ -2886,22 +2900,22 @@ const Pr = [
|
|
|
2886
2900
|
] })
|
|
2887
2901
|
] })
|
|
2888
2902
|
] });
|
|
2889
|
-
},
|
|
2890
|
-
const [h, f] = _(!1), [x,
|
|
2903
|
+
}, qs = ({ border: n, onChange: t, container: r, value: s, className: c, transparent: i, userColor: l, onAddColor: a, def: o, placeholder: u }) => {
|
|
2904
|
+
const [h, f] = _(!1), [x, C] = _(s ?? "#f00"), j = () => {
|
|
2891
2905
|
f(!0);
|
|
2892
2906
|
}, g = k((v) => {
|
|
2893
|
-
console.log(v),
|
|
2907
|
+
console.log(v), C(v), t && t(v), f(!1);
|
|
2894
2908
|
}, [t]);
|
|
2895
2909
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2896
2910
|
/* @__PURE__ */ e.jsxs("div", { className: `input-field color-field ${n ? "border" : ""} ${i ? "transparent" : ""} ${c ?? ""}`, children: [
|
|
2897
2911
|
u && /* @__PURE__ */ e.jsx("div", { className: "color-field-label", onClick: j, children: /* @__PURE__ */ e.jsx("span", { className: "data color-field-placeholder", children: u }) }),
|
|
2898
2912
|
/* @__PURE__ */ e.jsx("div", { className: " color-indicator-field", style: { backgroundColor: x }, onClick: j, children: /* @__PURE__ */ e.jsx("p", { className: "data color-field-data", style: { color: se(x) }, children: x }) }),
|
|
2899
|
-
/* @__PURE__ */ e.jsx("div", { className: "color-icon-container icon-container", style: { marginRight: "12px", marginLeft: "0" }, onClick: j, children: /* @__PURE__ */ e.jsx(
|
|
2913
|
+
/* @__PURE__ */ e.jsx("div", { className: "color-icon-container icon-container", style: { marginRight: "12px", marginLeft: "0" }, onClick: j, children: /* @__PURE__ */ e.jsx(Wt, {}) })
|
|
2900
2914
|
] }),
|
|
2901
|
-
h ? /* @__PURE__ */ e.jsx(
|
|
2915
|
+
h ? /* @__PURE__ */ e.jsx(ze, { container: r, children: /* @__PURE__ */ e.jsx(Ir, { def: o, userColor: l, onAddColor: a, onChange: g, beginColor: x, onHide: () => f(!1) }) }) : null
|
|
2902
2916
|
] });
|
|
2903
2917
|
};
|
|
2904
|
-
const Br = 2050,
|
|
2918
|
+
const Br = 2050, Zn = 1900, Ce = [
|
|
2905
2919
|
"January",
|
|
2906
2920
|
"February",
|
|
2907
2921
|
"March",
|
|
@@ -2914,34 +2928,34 @@ const Br = 2050, Yn = 1900, je = [
|
|
|
2914
2928
|
"October",
|
|
2915
2929
|
"November",
|
|
2916
2930
|
"December"
|
|
2917
|
-
],
|
|
2918
|
-
const [r] = _(
|
|
2931
|
+
], zr = () => Array(Br - Zn).fill(0).map((n, t) => Zn + t), Gr = ({ onChange: n, onHide: t }) => {
|
|
2932
|
+
const [r] = _(Ce[(/* @__PURE__ */ new Date()).getMonth()]), [s] = _((/* @__PURE__ */ new Date()).getFullYear()), [c] = _((/* @__PURE__ */ new Date()).getDate()), [i, l] = _(Ce[(/* @__PURE__ */ new Date()).getMonth()]), [a, o] = _((/* @__PURE__ */ new Date()).getFullYear()), [u, h] = _({
|
|
2919
2933
|
day: (/* @__PURE__ */ new Date()).getDate(),
|
|
2920
2934
|
type: "NOW_MONTH"
|
|
2921
2935
|
/* NOW_MONTH */
|
|
2922
2936
|
}), [f, x] = _(
|
|
2923
2937
|
"DAYS"
|
|
2924
2938
|
/* DAYS */
|
|
2925
|
-
),
|
|
2926
|
-
let
|
|
2927
|
-
return
|
|
2939
|
+
), C = (y, S) => new Date(y, S + 1, 0).getDate(), j = (y, S, T) => new Date(y, S, T).getDay(), g = (y, S) => {
|
|
2940
|
+
let T = Array(C(y, S)).fill(0).map((M, D) => ({ type: "NOW_MONTH", day: D + 1 })), L = j(y, S, C(y, S)), H = Array(7 - L).fill(0).map((M, D) => ({ type: "NEXT_MONTH", day: D + 1 }));
|
|
2941
|
+
return T = Array(j(y, S, 0)).fill(0).map((M, D) => ({ type: "PREV_MONTH", day: C(S ? y : y - 1, S ? S - 1 : 11) - D })).reverse().concat(T).concat(H), T;
|
|
2928
2942
|
}, v = (y) => {
|
|
2929
2943
|
x(
|
|
2930
2944
|
"DAYS"
|
|
2931
2945
|
/* DAYS */
|
|
2932
|
-
),
|
|
2933
|
-
},
|
|
2946
|
+
), o(y);
|
|
2947
|
+
}, m = (y) => {
|
|
2934
2948
|
x(
|
|
2935
2949
|
"DAYS"
|
|
2936
2950
|
/* DAYS */
|
|
2937
|
-
),
|
|
2951
|
+
), l(y);
|
|
2938
2952
|
}, p = (y) => {
|
|
2939
2953
|
h(y);
|
|
2940
2954
|
}, w = k(() => {
|
|
2941
2955
|
let y = /* @__PURE__ */ new Date();
|
|
2942
|
-
y.setFullYear(
|
|
2943
|
-
}, [i,
|
|
2944
|
-
return /* @__PURE__ */ e.jsxs(
|
|
2956
|
+
y.setFullYear(a), u.type === "NEXT_MONTH" ? i === Ce[11] ? (y.setMonth(0), y.setFullYear(a + 1)) : y.setMonth(Ce.indexOf(i) + 1) : u.type === "PREV_MONTH" ? i === Ce[0] ? (y.setMonth(11), y.setFullYear(a - 1)) : y.setMonth(Ce.indexOf(i) - 1) : y.setMonth(Ce.indexOf(i)), y.setDate(u.day), n && n(y.getFullYear(), y.getMonth(), y.getDate()), t && t();
|
|
2957
|
+
}, [i, a, n, t, u]);
|
|
2958
|
+
return /* @__PURE__ */ e.jsxs(Me, { className: "calendar-body-container", style: { maxWidth: "328px" }, children: [
|
|
2945
2959
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-select-container", children: [
|
|
2946
2960
|
/* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className: f === "MONTHS" ? "active" : "", onClick: () => x(
|
|
2947
2961
|
"MONTHS"
|
|
@@ -2949,22 +2963,22 @@ const Br = 2050, Yn = 1900, je = [
|
|
|
2949
2963
|
), children: [
|
|
2950
2964
|
i,
|
|
2951
2965
|
" ",
|
|
2952
|
-
/* @__PURE__ */ e.jsx(
|
|
2966
|
+
/* @__PURE__ */ e.jsx(On, {})
|
|
2953
2967
|
] }) }),
|
|
2954
2968
|
/* @__PURE__ */ e.jsx("div", { className: "years", children: /* @__PURE__ */ e.jsxs("span", { className: f === "YEARS" ? "active" : "", onClick: () => x(
|
|
2955
2969
|
"YEARS"
|
|
2956
2970
|
/* YEARS */
|
|
2957
2971
|
), children: [
|
|
2958
|
-
|
|
2972
|
+
a,
|
|
2959
2973
|
" ",
|
|
2960
|
-
/* @__PURE__ */ e.jsx(
|
|
2974
|
+
/* @__PURE__ */ e.jsx(On, {})
|
|
2961
2975
|
] }) })
|
|
2962
2976
|
] }),
|
|
2963
|
-
f === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children:
|
|
2964
|
-
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: i === y ? /* @__PURE__ */ e.jsx(
|
|
2977
|
+
f === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: Ce.map((y, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => m(y), children: [
|
|
2978
|
+
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: i === y ? /* @__PURE__ */ e.jsx(Se, {}) : null }),
|
|
2965
2979
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: y })
|
|
2966
|
-
] }, S)) }) : f === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children:
|
|
2967
|
-
/* @__PURE__ */ e.jsx("div", { className: "status-container", children:
|
|
2980
|
+
] }, S)) }) : f === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: zr().map((y, S) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => v(y), children: [
|
|
2981
|
+
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: a === y ? /* @__PURE__ */ e.jsx(Se, {}) : null }),
|
|
2968
2982
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: y })
|
|
2969
2983
|
] }, S)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2970
2984
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-dayofweek-container", children: [
|
|
@@ -2976,179 +2990,179 @@ const Br = 2050, Yn = 1900, je = [
|
|
|
2976
2990
|
/* @__PURE__ */ e.jsx("span", { children: "S" }),
|
|
2977
2991
|
/* @__PURE__ */ e.jsx("span", { children: "S" })
|
|
2978
2992
|
] }),
|
|
2979
|
-
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: g(
|
|
2993
|
+
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: g(a, Ce.indexOf(i)).map((y, S) => /* @__PURE__ */ e.jsx("div", { className: `day ${y.type !== "NOW_MONTH" ? "other" : ""} ${c === y.day && a === s && i === r ? "now" : ""} ${y.day === u.day && y.type === u.type ? "select" : ""}`, onClick: () => p(y), children: y.day }, S)) })
|
|
2980
2994
|
] }),
|
|
2981
2995
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-action-container", children: [
|
|
2982
|
-
/* @__PURE__ */ e.jsx(
|
|
2983
|
-
/* @__PURE__ */ e.jsx(
|
|
2996
|
+
/* @__PURE__ */ e.jsx(Q, { className: "little m-0", onClick: t, children: "Cancel" }),
|
|
2997
|
+
/* @__PURE__ */ e.jsx(Q, { className: "little m-0", onClick: w, children: "OK" })
|
|
2984
2998
|
] })
|
|
2985
2999
|
] });
|
|
2986
|
-
},
|
|
2987
|
-
const [
|
|
3000
|
+
}, Qs = ({ border: n, onChange: t, name: r, value: s, className: c, validEmptyValue: i, error: l, container: a }) => {
|
|
3001
|
+
const [o, u] = _(s ?? ""), [h, f] = _(!1), x = k((m) => l || m && (!o || o === "") ? "error" : "", [o]), C = () => {
|
|
2988
3002
|
f(!0);
|
|
2989
|
-
}, j = (
|
|
2990
|
-
let p = String(
|
|
3003
|
+
}, j = (m) => {
|
|
3004
|
+
let p = String(m + 1);
|
|
2991
3005
|
return p.length < 2 && (p = "0" + p), p;
|
|
2992
|
-
}, g = (
|
|
2993
|
-
let p = String(
|
|
3006
|
+
}, g = (m) => {
|
|
3007
|
+
let p = String(m);
|
|
2994
3008
|
return p.length < 2 && (p = "0" + p), p;
|
|
2995
|
-
}, v = k((
|
|
2996
|
-
u(`${
|
|
3009
|
+
}, v = k((m, p, w) => {
|
|
3010
|
+
u(`${m}-${j(p)}-${g(w)}`), t && t(`${m}-${j(p)}-${g(w)}`);
|
|
2997
3011
|
}, [t]);
|
|
2998
3012
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2999
3013
|
/* @__PURE__ */ e.jsxs("div", { className: `input-field date-field ${n ? "border" : ""}`, children: [
|
|
3000
|
-
/* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick:
|
|
3001
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", onClick:
|
|
3014
|
+
/* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: C, children: /* @__PURE__ */ e.jsx(Zt, {}) }),
|
|
3015
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", onClick: C, children: /* @__PURE__ */ e.jsx(
|
|
3002
3016
|
"input",
|
|
3003
3017
|
{
|
|
3004
3018
|
required: !0,
|
|
3005
3019
|
type: "date",
|
|
3006
3020
|
className: `${c} ${x(i)}`,
|
|
3007
3021
|
name: r,
|
|
3008
|
-
value:
|
|
3022
|
+
value: o,
|
|
3009
3023
|
readOnly: !0
|
|
3010
3024
|
}
|
|
3011
3025
|
) })
|
|
3012
3026
|
] }),
|
|
3013
|
-
h ? /* @__PURE__ */ e.jsx(
|
|
3027
|
+
h ? /* @__PURE__ */ e.jsx(ze, { container: a, children: /* @__PURE__ */ e.jsx(Gr, { onChange: v, onHide: () => f(!1) }) }) : null
|
|
3014
3028
|
] });
|
|
3015
3029
|
};
|
|
3016
|
-
const
|
|
3017
|
-
const [s, c] = _(t || []), i = k((
|
|
3018
|
-
if (!
|
|
3030
|
+
const ec = ({ onChange: n, value: t, className: r }) => {
|
|
3031
|
+
const [s, c] = _(t || []), i = k((a) => {
|
|
3032
|
+
if (!a)
|
|
3019
3033
|
return;
|
|
3020
|
-
let
|
|
3021
|
-
const u =
|
|
3022
|
-
u !== -1 && !
|
|
3023
|
-
}, [s]),
|
|
3034
|
+
let o = s.slice();
|
|
3035
|
+
const u = o.indexOf(a.target.name);
|
|
3036
|
+
u !== -1 && !a.target.checked ? o = o.filter((h, f) => f !== u) : u === -1 && a.target.checked && o.push(a.target.name), c(o), n && n(o);
|
|
3037
|
+
}, [s]), l = k((a) => s.indexOf(a) !== -1, [s]);
|
|
3024
3038
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: `days-week-field-container ${r}`, children: [
|
|
3025
3039
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
3026
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Mon", checked:
|
|
3040
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Mon", checked: l("Mon") }),
|
|
3027
3041
|
/* @__PURE__ */ e.jsx("span", { children: "Mon" })
|
|
3028
3042
|
] }),
|
|
3029
3043
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
3030
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Tue", checked:
|
|
3044
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Tue", checked: l("Tue") }),
|
|
3031
3045
|
/* @__PURE__ */ e.jsx("span", { children: "Tue" })
|
|
3032
3046
|
] }),
|
|
3033
3047
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
3034
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Wed", checked:
|
|
3048
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Wed", checked: l("Wed") }),
|
|
3035
3049
|
/* @__PURE__ */ e.jsx("span", { children: "Wed" })
|
|
3036
3050
|
] }),
|
|
3037
3051
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
3038
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Thu", checked:
|
|
3052
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Thu", checked: l("Thu") }),
|
|
3039
3053
|
/* @__PURE__ */ e.jsx("span", { children: "Thu" })
|
|
3040
3054
|
] }),
|
|
3041
3055
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
3042
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Fri", checked:
|
|
3056
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Fri", checked: l("Fri") }),
|
|
3043
3057
|
/* @__PURE__ */ e.jsx("span", { children: "Fri" })
|
|
3044
3058
|
] }),
|
|
3045
3059
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
3046
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Sat", checked:
|
|
3060
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Sat", checked: l("Sat") }),
|
|
3047
3061
|
/* @__PURE__ */ e.jsx("span", { children: "Sat" })
|
|
3048
3062
|
] }),
|
|
3049
3063
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
3050
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Sun", checked:
|
|
3064
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: i, name: "Sun", checked: l("Sun") }),
|
|
3051
3065
|
/* @__PURE__ */ e.jsx("span", { children: "Sun" })
|
|
3052
3066
|
] })
|
|
3053
3067
|
] }) });
|
|
3054
|
-
},
|
|
3055
|
-
const
|
|
3056
|
-
const [c, i] = _([]), [
|
|
3068
|
+
}, Yr = (n) => n === "" ? [] : n.split(",").map((t) => t.trim()), Xn = (n) => n.join(", ");
|
|
3069
|
+
const nc = ({ minWidth: n, value: t, onChange: r, border: s }) => {
|
|
3070
|
+
const [c, i] = _([]), [l, a] = _("");
|
|
3057
3071
|
$(() => {
|
|
3058
|
-
console.log("p0"), i(
|
|
3072
|
+
console.log("p0"), i(Yr(t));
|
|
3059
3073
|
}, [t]), $(() => {
|
|
3060
3074
|
console.log(c);
|
|
3061
3075
|
}, [c]);
|
|
3062
|
-
const
|
|
3063
|
-
|
|
3076
|
+
const o = (f) => {
|
|
3077
|
+
a(f.target.value);
|
|
3064
3078
|
}, u = k(() => {
|
|
3065
|
-
if (
|
|
3079
|
+
if (l === "" || c.includes(l))
|
|
3066
3080
|
return;
|
|
3067
|
-
const f = [...c,
|
|
3068
|
-
i(f), r && r(
|
|
3069
|
-
}, [c,
|
|
3070
|
-
const x = c.filter((
|
|
3071
|
-
i(x), r && r(
|
|
3081
|
+
const f = [...c, l.trim()];
|
|
3082
|
+
i(f), r && r(Xn(f)), a("");
|
|
3083
|
+
}, [c, l]), h = (f) => {
|
|
3084
|
+
const x = c.filter((C, j) => j !== f);
|
|
3085
|
+
i(x), r && r(Xn(x));
|
|
3072
3086
|
};
|
|
3073
3087
|
return /* @__PURE__ */ e.jsxs("div", { className: "more-text", style: { minWidth: n }, children: [
|
|
3074
3088
|
/* @__PURE__ */ e.jsxs("div", { className: "add value", children: [
|
|
3075
|
-
/* @__PURE__ */ e.jsx(
|
|
3076
|
-
/* @__PURE__ */ e.jsx(
|
|
3089
|
+
/* @__PURE__ */ e.jsx(gn, { onChange: o, value: l, border: s }),
|
|
3090
|
+
/* @__PURE__ */ e.jsx(_r, { children: /* @__PURE__ */ e.jsx(Jn, { onClick: u, children: "add" }) })
|
|
3077
3091
|
] }),
|
|
3078
|
-
/* @__PURE__ */ e.jsx("div", { className: "chips-container", children: c.map((f, x) => /* @__PURE__ */ e.jsx(
|
|
3092
|
+
/* @__PURE__ */ e.jsx("div", { className: "chips-container", children: c.map((f, x) => /* @__PURE__ */ e.jsx(jr, { text: f, onDelete: () => h(x) }, x)) })
|
|
3079
3093
|
] });
|
|
3080
3094
|
};
|
|
3081
|
-
const
|
|
3082
|
-
const p =
|
|
3095
|
+
const Wr = ({ ref: n, styleContainer: t, transparent: r, readOnly: s, border: c, onClear: i, icon: l, onChange: a, name: o, value: u, placeholder: h, className: f, validEmptyValue: x, onFocus: C, onBlur: j, error: g, max: v, min: m }) => {
|
|
3096
|
+
const p = Y(null), w = Y(null), y = Y(null), S = Y(null), [T, L] = _(!1), [H, U] = _(u ?? 0), M = k((z, O) => L(!!(g || z && (!O || O === ""))), []), D = () => {
|
|
3083
3097
|
if (!S.current)
|
|
3084
3098
|
return;
|
|
3085
|
-
const
|
|
3086
|
-
|
|
3087
|
-
},
|
|
3088
|
-
|
|
3089
|
-
y.current && (clearTimeout(y.current), y.current = null),
|
|
3099
|
+
const z = S.current.querySelector("input");
|
|
3100
|
+
z && z.focus();
|
|
3101
|
+
}, Z = k((z, O) => {
|
|
3102
|
+
a && (y.current && (clearTimeout(y.current), y.current = null), y.current = setTimeout(() => {
|
|
3103
|
+
y.current && (clearTimeout(y.current), y.current = null), a(z, O);
|
|
3090
3104
|
}, 100));
|
|
3091
|
-
}, [
|
|
3092
|
-
U((
|
|
3093
|
-
let
|
|
3094
|
-
return typeof v == "number" &&
|
|
3105
|
+
}, [a]), R = k(() => {
|
|
3106
|
+
U((z) => {
|
|
3107
|
+
let O = z ? z + 1 : 1;
|
|
3108
|
+
return typeof v == "number" && O > v && (O = v), Z(O, o), O;
|
|
3095
3109
|
});
|
|
3096
|
-
}, [
|
|
3097
|
-
U((
|
|
3098
|
-
let
|
|
3099
|
-
return typeof
|
|
3110
|
+
}, [Z, o, v]), A = k(() => {
|
|
3111
|
+
U((z) => {
|
|
3112
|
+
let O = z ? z - 1 : -1;
|
|
3113
|
+
return typeof m == "number" && O < m && (O = m), Z(O, o), O;
|
|
3100
3114
|
});
|
|
3101
|
-
}, [
|
|
3102
|
-
let
|
|
3103
|
-
typeof
|
|
3104
|
-
}, [
|
|
3105
|
-
p.current && clearTimeout(p.current), w.current && clearInterval(w.current), document.removeEventListener("mouseup",
|
|
3106
|
-
}, []),
|
|
3107
|
-
|
|
3115
|
+
}, [Z, o, m]), X = k((z) => {
|
|
3116
|
+
let O = Number(z.target.value);
|
|
3117
|
+
typeof m == "number" && O < m && (O = m), typeof v == "number" && O > v && (O = v), U(Number(z.target.value)), Z(O, o);
|
|
3118
|
+
}, [o, Z, H, v, m]), te = k(() => {
|
|
3119
|
+
p.current && clearTimeout(p.current), w.current && clearInterval(w.current), document.removeEventListener("mouseup", te);
|
|
3120
|
+
}, []), ie = k((z) => {
|
|
3121
|
+
z === "p" ? R() : z === "m" && A(), p.current && clearTimeout(p.current), w.current && clearInterval(w.current), document.addEventListener("mouseup", te), p.current = setTimeout(() => {
|
|
3108
3122
|
w.current = setInterval(() => {
|
|
3109
|
-
|
|
3123
|
+
z === "p" ? R() : z === "m" && A();
|
|
3110
3124
|
}, 100);
|
|
3111
3125
|
}, 500);
|
|
3112
|
-
}, [
|
|
3126
|
+
}, [R, A]);
|
|
3113
3127
|
return $(() => {
|
|
3114
3128
|
M(x, u);
|
|
3115
3129
|
}, [u, x, M]), $(() => {
|
|
3116
3130
|
console.log("d", y.current), u !== void 0 && !y.current && U(u);
|
|
3117
3131
|
}, [u]), /* @__PURE__ */ e.jsxs("div", { ref: S, style: t, className: `input-field number-field ${c ? "border" : ""} ${r ? "transparent" : ""} ${f}`, children: [
|
|
3118
|
-
|
|
3119
|
-
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick:
|
|
3132
|
+
l ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: D, children: l }) : null,
|
|
3133
|
+
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: D, children: [
|
|
3120
3134
|
/* @__PURE__ */ e.jsx(
|
|
3121
3135
|
"input",
|
|
3122
3136
|
{
|
|
3123
3137
|
ref: n,
|
|
3124
3138
|
max: v,
|
|
3125
|
-
min:
|
|
3139
|
+
min: m,
|
|
3126
3140
|
readOnly: s,
|
|
3127
3141
|
required: !0,
|
|
3128
3142
|
type: "number",
|
|
3129
|
-
className: `alex-evo-number-field ${
|
|
3130
|
-
name:
|
|
3131
|
-
value:
|
|
3132
|
-
onChange:
|
|
3133
|
-
onFocus:
|
|
3143
|
+
className: `alex-evo-number-field ${T ? "error" : ""}`,
|
|
3144
|
+
name: o,
|
|
3145
|
+
value: H,
|
|
3146
|
+
onChange: X,
|
|
3147
|
+
onFocus: C,
|
|
3134
3148
|
onBlur: j
|
|
3135
3149
|
}
|
|
3136
3150
|
),
|
|
3137
3151
|
/* @__PURE__ */ e.jsx("label", { children: h ? /* @__PURE__ */ e.jsx("span", { children: h }) : null }),
|
|
3138
3152
|
/* @__PURE__ */ e.jsx("span", { className: "text-field-line" })
|
|
3139
3153
|
] }),
|
|
3140
|
-
i ? /* @__PURE__ */ e.jsx("div", { className: "clear-container", children: /* @__PURE__ */ e.jsx(
|
|
3154
|
+
i ? /* @__PURE__ */ e.jsx("div", { className: "clear-container", children: /* @__PURE__ */ e.jsx(Oe, { onClick: i }) }) : null,
|
|
3141
3155
|
/* @__PURE__ */ e.jsxs("div", { className: "button-block", children: [
|
|
3142
|
-
/* @__PURE__ */ e.jsx("div", { className: "minus number-field-btn", onMouseDown: () =>
|
|
3143
|
-
/* @__PURE__ */ e.jsx("div", { className: "plus number-field-btn", onMouseDown: () =>
|
|
3156
|
+
/* @__PURE__ */ e.jsx("div", { className: "minus number-field-btn", onMouseDown: () => ie("m"), children: /* @__PURE__ */ e.jsx(er, {}) }),
|
|
3157
|
+
/* @__PURE__ */ e.jsx("div", { className: "plus number-field-btn", onMouseDown: () => ie("p"), children: /* @__PURE__ */ e.jsx(Qt, {}) })
|
|
3144
3158
|
] })
|
|
3145
3159
|
] });
|
|
3146
3160
|
};
|
|
3147
|
-
const
|
|
3148
|
-
const j =
|
|
3161
|
+
const tc = ({ styleContainer: n, transparent: t, readOnly: r, border: s, icon: c, onChange: i, name: l, value: a, placeholder: o, className: u, validEmptyValue: h, onFocus: f, onBlur: x, error: C }) => {
|
|
3162
|
+
const j = Y(null), [g, v] = _(!1), m = k((w, y) => v(!!(C || w && (!y || y === ""))), []);
|
|
3149
3163
|
$(() => {
|
|
3150
|
-
|
|
3151
|
-
}, [
|
|
3164
|
+
m(h, a);
|
|
3165
|
+
}, [a, h, m]);
|
|
3152
3166
|
const p = () => {
|
|
3153
3167
|
j.current && j.current.focus();
|
|
3154
3168
|
};
|
|
@@ -3160,10 +3174,10 @@ const nc = ({ styleContainer: n, transparent: t, readOnly: r, border: s, icon: c
|
|
|
3160
3174
|
ref: j,
|
|
3161
3175
|
readOnly: r,
|
|
3162
3176
|
required: !0,
|
|
3163
|
-
placeholder:
|
|
3177
|
+
placeholder: o,
|
|
3164
3178
|
className: `${g ? "error" : ""}`,
|
|
3165
|
-
name:
|
|
3166
|
-
value:
|
|
3179
|
+
name: l,
|
|
3180
|
+
value: a,
|
|
3167
3181
|
onChange: i,
|
|
3168
3182
|
onFocus: f,
|
|
3169
3183
|
onBlur: x
|
|
@@ -3171,13 +3185,13 @@ const nc = ({ styleContainer: n, transparent: t, readOnly: r, border: s, icon: c
|
|
|
3171
3185
|
) })
|
|
3172
3186
|
] });
|
|
3173
3187
|
};
|
|
3174
|
-
const
|
|
3175
|
-
const [
|
|
3176
|
-
n(x),
|
|
3188
|
+
const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: c, onCancel: i, onOK: l }) => {
|
|
3189
|
+
const [a, o] = _(!1), u = k((x) => {
|
|
3190
|
+
n(x), o(!0);
|
|
3177
3191
|
}, [n]), h = k((x) => {
|
|
3178
|
-
t(x),
|
|
3192
|
+
t(x), o(!1);
|
|
3179
3193
|
}, [t]), f = k(() => {
|
|
3180
|
-
|
|
3194
|
+
o(!1), i();
|
|
3181
3195
|
}, []);
|
|
3182
3196
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3183
3197
|
/* @__PURE__ */ e.jsx("div", { className: "time-type", children: /* @__PURE__ */ e.jsx("p", { className: "text-sm", children: "Select time" }) }),
|
|
@@ -3192,15 +3206,15 @@ const Wr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: c, o
|
|
|
3192
3206
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Minute" })
|
|
3193
3207
|
] })
|
|
3194
3208
|
] }),
|
|
3195
|
-
/* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children:
|
|
3209
|
+
/* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children: a ? /* @__PURE__ */ e.jsx(Ur, { setMinutes: h }) : /* @__PURE__ */ e.jsx(Xr, { setHours: u }) }),
|
|
3196
3210
|
/* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
|
|
3197
|
-
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(
|
|
3198
|
-
/* @__PURE__ */ e.jsx(
|
|
3199
|
-
/* @__PURE__ */ e.jsx(
|
|
3211
|
+
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(qt, {}) }),
|
|
3212
|
+
/* @__PURE__ */ e.jsx(Q, { className: "little", onClick: f, children: "Cancel" }),
|
|
3213
|
+
/* @__PURE__ */ e.jsx(Q, { className: "little", onClick: l, children: "OK" })
|
|
3200
3214
|
] })
|
|
3201
3215
|
] });
|
|
3202
3216
|
};
|
|
3203
|
-
function
|
|
3217
|
+
function Xr({ setHours: n }) {
|
|
3204
3218
|
return /* @__PURE__ */ e.jsxs("div", { className: "clock-input", children: [
|
|
3205
3219
|
/* @__PURE__ */ e.jsxs("div", { className: "clock-input-am", children: [
|
|
3206
3220
|
/* @__PURE__ */ e.jsx("span", { onClick: () => n(1), children: "1" }),
|
|
@@ -3233,7 +3247,7 @@ function Zr({ setHours: n }) {
|
|
|
3233
3247
|
/* @__PURE__ */ e.jsx("span", { className: "center" })
|
|
3234
3248
|
] });
|
|
3235
3249
|
}
|
|
3236
|
-
function
|
|
3250
|
+
function Ur({ setMinutes: n }) {
|
|
3237
3251
|
return /* @__PURE__ */ e.jsxs("div", { className: "clock-input", children: [
|
|
3238
3252
|
/* @__PURE__ */ e.jsxs("div", { className: "clock-input-minute", children: [
|
|
3239
3253
|
/* @__PURE__ */ e.jsx("span", { onClick: () => n(0), children: "00" }),
|
|
@@ -3252,11 +3266,11 @@ function Xr({ setMinutes: n }) {
|
|
|
3252
3266
|
/* @__PURE__ */ e.jsx("span", { className: "center" })
|
|
3253
3267
|
] });
|
|
3254
3268
|
}
|
|
3255
|
-
const
|
|
3256
|
-
const
|
|
3269
|
+
const Jr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: c, onCancel: i, onOK: l }) => {
|
|
3270
|
+
const a = (u) => {
|
|
3257
3271
|
let h = Number(u.target.value);
|
|
3258
3272
|
h < 0 && (h = 0), h > 23 && (h = 23), n(h);
|
|
3259
|
-
},
|
|
3273
|
+
}, o = (u) => {
|
|
3260
3274
|
let h = Number(u.target.value);
|
|
3261
3275
|
h < 0 && (h = 0), h > 59 && (h = 59), t(h);
|
|
3262
3276
|
};
|
|
@@ -3264,40 +3278,40 @@ const Ur = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: c, o
|
|
|
3264
3278
|
/* @__PURE__ */ e.jsx("div", { className: "time-type", children: /* @__PURE__ */ e.jsx("p", { className: "text-sm", children: "Enter time" }) }),
|
|
3265
3279
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input-container", children: [
|
|
3266
3280
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input hours", children: [
|
|
3267
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", min: 0, max: 23, value: c, onChange:
|
|
3281
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", min: 0, max: 23, value: c, onChange: a }) }),
|
|
3268
3282
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Hour" })
|
|
3269
3283
|
] }),
|
|
3270
3284
|
/* @__PURE__ */ e.jsx("div", { className: "time-separator", children: ":" }),
|
|
3271
3285
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input minutes", children: [
|
|
3272
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", value: s, min: 0, max: 59, onChange:
|
|
3286
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", value: s, min: 0, max: 59, onChange: o }) }),
|
|
3273
3287
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Minute" })
|
|
3274
3288
|
] })
|
|
3275
3289
|
] }),
|
|
3276
3290
|
/* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
|
|
3277
|
-
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(
|
|
3278
|
-
/* @__PURE__ */ e.jsx(
|
|
3279
|
-
/* @__PURE__ */ e.jsx(
|
|
3291
|
+
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(Kn, {}) }),
|
|
3292
|
+
/* @__PURE__ */ e.jsx(Q, { className: "little", onClick: i, children: "Cancel" }),
|
|
3293
|
+
/* @__PURE__ */ e.jsx(Q, { className: "little", onClick: l, children: "OK" })
|
|
3280
3294
|
] })
|
|
3281
3295
|
] });
|
|
3282
|
-
},
|
|
3283
|
-
const [t, r] = _(n.minutes ?? 0), [s, c] = _(n.hours ?? 0), [i,
|
|
3296
|
+
}, Kr = (n) => {
|
|
3297
|
+
const [t, r] = _(n.minutes ?? 0), [s, c] = _(n.hours ?? 0), [i, l] = _(!0), a = () => {
|
|
3284
3298
|
n.onHide && n.onHide(), r(0), c(0);
|
|
3285
|
-
},
|
|
3299
|
+
}, o = k((h) => {
|
|
3286
3300
|
r(h), n.onChange && n.onChange(s, h), n.onHide && n.onHide();
|
|
3287
3301
|
}, [s]), u = k(() => {
|
|
3288
3302
|
n.onChange && n.onChange(s, t), n.onHide && n.onHide();
|
|
3289
3303
|
}, [s, t]);
|
|
3290
|
-
return i ? /* @__PURE__ */ e.jsx(
|
|
3291
|
-
},
|
|
3292
|
-
const [
|
|
3293
|
-
let
|
|
3294
|
-
|
|
3304
|
+
return i ? /* @__PURE__ */ e.jsx(Me, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Zr, { setMinutes: o, setHours: c, minutes: t, hours: s, switchMode: () => l(!1), onCancel: a, onOK: u }) }) : /* @__PURE__ */ e.jsx(Me, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Jr, { setMinutes: r, setHours: c, minutes: t, hours: s, switchMode: () => l(!0), onCancel: a, onOK: u }) });
|
|
3305
|
+
}, rc = ({ border: n, onChange: t, name: r, value: s, className: c, validEmptyValue: i, error: l, container: a }) => {
|
|
3306
|
+
const [o, u] = _(s ?? ""), [h, f] = _(!1), x = k((g) => l || g && (!o || o === "") ? "error" : "", [o]), C = (g, v) => {
|
|
3307
|
+
let m = String(g), p = String(v);
|
|
3308
|
+
m.length < 2 && (m = "0" + m), p.length < 2 && (p = "0" + p), u(`${m}:${p}`), t && t(`${m}:${p}`);
|
|
3295
3309
|
}, j = () => {
|
|
3296
3310
|
f(!0);
|
|
3297
3311
|
};
|
|
3298
3312
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3299
3313
|
/* @__PURE__ */ e.jsxs("div", { className: `input-field time-field ${n ? "border" : ""}`, children: [
|
|
3300
|
-
/* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: j, children: /* @__PURE__ */ e.jsx(
|
|
3314
|
+
/* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: j, children: /* @__PURE__ */ e.jsx(Kn, {}) }),
|
|
3301
3315
|
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: j, children: [
|
|
3302
3316
|
/* @__PURE__ */ e.jsx(
|
|
3303
3317
|
"input",
|
|
@@ -3306,39 +3320,39 @@ const Ur = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: c, o
|
|
|
3306
3320
|
type: "time",
|
|
3307
3321
|
className: `${c} ${x(i)}`,
|
|
3308
3322
|
name: r,
|
|
3309
|
-
value:
|
|
3323
|
+
value: o,
|
|
3310
3324
|
readOnly: !0
|
|
3311
3325
|
}
|
|
3312
3326
|
),
|
|
3313
3327
|
/* @__PURE__ */ e.jsx("span", { className: "text-field-line" })
|
|
3314
3328
|
] })
|
|
3315
3329
|
] }),
|
|
3316
|
-
h ? /* @__PURE__ */ e.jsx(
|
|
3317
|
-
|
|
3330
|
+
h ? /* @__PURE__ */ e.jsx(ze, { container: a, children: /* @__PURE__ */ e.jsx(
|
|
3331
|
+
Kr,
|
|
3318
3332
|
{
|
|
3319
3333
|
onHide: () => f(!1),
|
|
3320
|
-
onChange:
|
|
3334
|
+
onChange: C,
|
|
3321
3335
|
hours: 0,
|
|
3322
3336
|
minutes: 0
|
|
3323
3337
|
}
|
|
3324
3338
|
) }) : null
|
|
3325
3339
|
] });
|
|
3326
3340
|
};
|
|
3327
|
-
function
|
|
3341
|
+
function qr(n, t, r, s, c) {
|
|
3328
3342
|
return s + (c - s) * ((n - t) / (r - t));
|
|
3329
3343
|
}
|
|
3330
|
-
const
|
|
3331
|
-
const [t, r] = _(0), [s, c] = _(!1), i =
|
|
3344
|
+
const hn = 0, fn = 100, sc = (n) => {
|
|
3345
|
+
const [t, r] = _(0), [s, c] = _(!1), i = Y(null), l = Y(null);
|
|
3332
3346
|
$(() => {
|
|
3333
3347
|
n.value ? r(n.value) : r(0);
|
|
3334
3348
|
}, [n.value]);
|
|
3335
|
-
const
|
|
3349
|
+
const a = (f) => {
|
|
3336
3350
|
r(Number(f.target.value)), n.onChange && n.onChange(f);
|
|
3337
|
-
},
|
|
3338
|
-
if (i.current &&
|
|
3339
|
-
let j =
|
|
3351
|
+
}, o = (f, x, C) => {
|
|
3352
|
+
if (i.current && l.current) {
|
|
3353
|
+
let j = en(l.current);
|
|
3340
3354
|
if (j)
|
|
3341
|
-
return
|
|
3355
|
+
return qr(f, x, C, 0, C - x) * (j.width - 20) / (C - x);
|
|
3342
3356
|
}
|
|
3343
3357
|
return 0;
|
|
3344
3358
|
}, u = k((f) => {
|
|
@@ -3347,35 +3361,35 @@ const on = 0, an = 100, rc = (n) => {
|
|
|
3347
3361
|
c(!1), n.onBlur && n.onBlur(f);
|
|
3348
3362
|
}, [n.onBlur]);
|
|
3349
3363
|
return /* @__PURE__ */ e.jsx("div", { className: "range", children: /* @__PURE__ */ e.jsxs("div", { className: "field", style: n.style, children: [
|
|
3350
|
-
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value left", children: n.min ??
|
|
3364
|
+
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value left", children: n.min ?? hn }) : null,
|
|
3351
3365
|
/* @__PURE__ */ e.jsxs("div", { className: "field-range-container", children: [
|
|
3352
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-value", ref: i, style: { width:
|
|
3366
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-value", ref: i, style: { width: o(t, n.min ?? hn, n.max ?? fn) }, children: /* @__PURE__ */ e.jsxs("div", { className: "slider-tooltip", style: { display: s ? "block" : "none" }, children: [
|
|
3353
3367
|
/* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-container" }),
|
|
3354
3368
|
/* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-value", children: t })
|
|
3355
3369
|
] }) }),
|
|
3356
|
-
/* @__PURE__ */ e.jsx("input", { onMouseUp: n.onMouseUp, ref:
|
|
3370
|
+
/* @__PURE__ */ e.jsx("input", { onMouseUp: n.onMouseUp, ref: l, step: n.step, type: "range", min: n.min ?? hn, max: n.max ?? fn, onChange: a, value: t, onFocus: u, onBlur: h })
|
|
3357
3371
|
] }),
|
|
3358
|
-
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: n.max ??
|
|
3372
|
+
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: n.max ?? fn }) : null
|
|
3359
3373
|
] }) });
|
|
3360
3374
|
};
|
|
3361
|
-
const
|
|
3375
|
+
const cc = ({ className: n, text: t, title: r, hexColor: s, hexBackground: c, style: i, btn: l }) => /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-sh-ui-kit-empty-page ${n ?? ""}`, style: { background: rr(c), color: s, ...i }, children: [
|
|
3362
3376
|
/* @__PURE__ */ e.jsx("h2", { children: r }),
|
|
3363
3377
|
t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
|
|
3364
|
-
|
|
3378
|
+
l ? /* @__PURE__ */ e.jsx(Jn, { styleType: l.styleType ?? "filled", style: l.style, className: l.className, onClick: l.onClick, children: l.text }) : null
|
|
3365
3379
|
] });
|
|
3366
|
-
const
|
|
3367
|
-
const [
|
|
3380
|
+
const Qr = ({ readonly: n, name: t, data: r, onChange: s, onDelete: c, initComponent: i, onlyStringValue: l }) => {
|
|
3381
|
+
const [a, o] = _(""), [u, h] = _(""), [f, x] = _(!1), [C, j] = _(!0), g = k((w, y) => {
|
|
3368
3382
|
s({ ...r, [y]: w });
|
|
3369
3383
|
}, [s, r]), v = k(() => {
|
|
3370
|
-
h(""),
|
|
3371
|
-
}, []),
|
|
3384
|
+
h(""), o(""), x(!1);
|
|
3385
|
+
}, []), m = k(() => {
|
|
3372
3386
|
let w = u;
|
|
3373
3387
|
try {
|
|
3374
|
-
|
|
3388
|
+
l || (w = JSON.parse(w));
|
|
3375
3389
|
} catch {
|
|
3376
3390
|
}
|
|
3377
|
-
v(), s({ ...r, [
|
|
3378
|
-
}, [r, s,
|
|
3391
|
+
v(), s({ ...r, [a]: w });
|
|
3392
|
+
}, [r, s, a, u, v]), p = k((w) => {
|
|
3379
3393
|
let y = { ...r };
|
|
3380
3394
|
delete y[w], s(y);
|
|
3381
3395
|
}, [r, s]);
|
|
@@ -3385,82 +3399,82 @@ const qr = ({ readonly: n, name: t, data: r, onChange: s, onDelete: c, initCompo
|
|
|
3385
3399
|
t,
|
|
3386
3400
|
":",
|
|
3387
3401
|
"{",
|
|
3388
|
-
|
|
3402
|
+
C ? null : /* @__PURE__ */ e.jsx("span", { children: "..." })
|
|
3389
3403
|
] }),
|
|
3390
|
-
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => x(!0), children: /* @__PURE__ */ e.jsx(
|
|
3404
|
+
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => x(!0), children: /* @__PURE__ */ e.jsx(Qn, {}) })
|
|
3391
3405
|
] }),
|
|
3392
|
-
|
|
3393
|
-
(w, y) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(
|
|
3406
|
+
C ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r ? Object.keys(r).map(
|
|
3407
|
+
(w, y) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(pn, { readonly: n, onDelete: () => p(w), onChange: (S) => g(S, w), name: w, data: r[w] }) }, y)
|
|
3394
3408
|
) : null }) : null,
|
|
3395
3409
|
f && !n ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
|
|
3396
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size:
|
|
3410
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: a.length || 10, placeholder: "key", onChange: (w) => o(w.target.value), className: "json-base-data-input", type: "text", value: a }) }),
|
|
3397
3411
|
":",
|
|
3398
3412
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: u.length || 10, placeholder: "value", onChange: (w) => h(w.target.value), className: "json-base-data-input", type: "text", value: u }) }),
|
|
3399
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick:
|
|
3413
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: m, children: "save" }),
|
|
3400
3414
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: v, children: "cancel" })
|
|
3401
3415
|
] }) : null,
|
|
3402
3416
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
3403
3417
|
"}",
|
|
3404
|
-
!n && !i ? /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: c, children: /* @__PURE__ */ e.jsx(
|
|
3418
|
+
!n && !i ? /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: c, children: /* @__PURE__ */ e.jsx(Cn, {}) }) : null
|
|
3405
3419
|
] })
|
|
3406
3420
|
] }) });
|
|
3407
|
-
},
|
|
3408
|
-
const [
|
|
3421
|
+
}, es = ({ readonly: n, name: t, data: r, onChange: s, onDelete: c, initComponent: i, onlyStringValue: l }) => {
|
|
3422
|
+
const [a, o] = _(""), [u, h] = _(!1), [f, x] = _(!0), C = k((m, p) => {
|
|
3409
3423
|
const w = r.slice();
|
|
3410
|
-
w[p] =
|
|
3424
|
+
w[p] = m, s(w);
|
|
3411
3425
|
}, [s, r]), j = k(() => {
|
|
3412
|
-
|
|
3426
|
+
o(""), h(!1);
|
|
3413
3427
|
}, []), g = k(() => {
|
|
3414
|
-
let
|
|
3428
|
+
let m = a;
|
|
3415
3429
|
try {
|
|
3416
|
-
|
|
3430
|
+
l || (m = JSON.parse(m));
|
|
3417
3431
|
} catch {
|
|
3418
3432
|
}
|
|
3419
|
-
j(), s([...r,
|
|
3420
|
-
}, [r, s,
|
|
3421
|
-
s(r.filter((p, w) => w !==
|
|
3433
|
+
j(), s([...r, m]);
|
|
3434
|
+
}, [r, s, a, j]), v = k((m) => {
|
|
3435
|
+
s(r.filter((p, w) => w !== m));
|
|
3422
3436
|
}, [r, s]);
|
|
3423
3437
|
return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
3424
3438
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
|
|
3425
|
-
/* @__PURE__ */ e.jsxs("span", { className: "json-object-name json-object-header", onClick: () => x((
|
|
3439
|
+
/* @__PURE__ */ e.jsxs("span", { className: "json-object-name json-object-header", onClick: () => x((m) => !m), children: [
|
|
3426
3440
|
t,
|
|
3427
3441
|
":",
|
|
3428
3442
|
"[",
|
|
3429
3443
|
f ? null : /* @__PURE__ */ e.jsx("span", { children: "..." })
|
|
3430
3444
|
] }),
|
|
3431
|
-
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => h(!0), children: /* @__PURE__ */ e.jsx(
|
|
3445
|
+
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => h(!0), children: /* @__PURE__ */ e.jsx(Qn, {}) })
|
|
3432
3446
|
] }),
|
|
3433
|
-
f ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((
|
|
3447
|
+
f ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((m, p) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(pn, { readonly: n, onDelete: () => v(p), onChange: (w) => C(w, p), name: String(p), data: m }) }, p)) }) : null,
|
|
3434
3448
|
u ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
|
|
3435
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size:
|
|
3449
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: a.length || 10, placeholder: "value", onChange: (m) => o(m.target.value), className: "json-base-data-input", type: "text", value: a }) }),
|
|
3436
3450
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: g, children: "save" }),
|
|
3437
3451
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: j, children: "cancel" })
|
|
3438
3452
|
] }) : null,
|
|
3439
3453
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
3440
3454
|
"]",
|
|
3441
|
-
!n && !i ? /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: c, children: /* @__PURE__ */ e.jsx(
|
|
3455
|
+
!n && !i ? /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: c, children: /* @__PURE__ */ e.jsx(Cn, {}) }) : null
|
|
3442
3456
|
] })
|
|
3443
3457
|
] }) });
|
|
3444
|
-
},
|
|
3445
|
-
const i = k((
|
|
3446
|
-
s(
|
|
3458
|
+
}, ns = ({ readonly: n, name: t, data: r, onChange: s, onDelete: c }) => {
|
|
3459
|
+
const i = k((l) => {
|
|
3460
|
+
s(l.target.value);
|
|
3447
3461
|
}, [s]);
|
|
3448
3462
|
return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
3449
3463
|
/* @__PURE__ */ e.jsx("span", { className: "json-object-name", children: t }),
|
|
3450
3464
|
":",
|
|
3451
3465
|
n ? /* @__PURE__ */ e.jsx("span", { className: "json-base-data", children: String(r) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3452
3466
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data", children: /* @__PURE__ */ e.jsx("input", { size: (r == null ? void 0 : r.toString().length) || 10, onChange: i, className: "json-base-data-input", type: "text", value: r !== void 0 ? String(r) : "" }) }),
|
|
3453
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: c, children: /* @__PURE__ */ e.jsx(
|
|
3467
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: c, children: /* @__PURE__ */ e.jsx(Cn, {}) })
|
|
3454
3468
|
] })
|
|
3455
3469
|
] }) }) });
|
|
3456
3470
|
};
|
|
3457
|
-
var
|
|
3458
|
-
const
|
|
3459
|
-
const [
|
|
3460
|
-
n || (
|
|
3471
|
+
var jt = /* @__PURE__ */ ((n) => (n.NONE = "NONE", n.ARRAY = "ARRAY", n.OBJECT = "OBJECT", n))(jt || {});
|
|
3472
|
+
const pn = ({ readonly: n, name: t, data: r, onChange: s, onDelete: c, baseType: i, onlyStringValue: l }) => typeof r == "boolean" || typeof r == "number" || typeof r == "string" ? /* @__PURE__ */ e.jsx(ns, { readonly: n, onDelete: c, onChange: s, data: r, name: t }) : r ? Array.isArray(r) ? /* @__PURE__ */ e.jsx(es, { readonly: n, onDelete: c, onChange: s, data: r, name: t, initComponent: i === "ARRAY", onlyStringValue: l }) : /* @__PURE__ */ e.jsx(Qr, { readonly: n, onDelete: c, onChange: s, data: r, name: t, initComponent: i === "OBJECT", onlyStringValue: l }) : null, ic = ({ readonly: n, name: t, data: r, onChange: s, onDelete: c, baseType: i = jt.NONE, onlyStringValue: l }) => {
|
|
3473
|
+
const [a, o] = _(r || void 0), [u, h] = _(""), f = k((j) => {
|
|
3474
|
+
n || (o(j), s && s(j));
|
|
3461
3475
|
}, [s]), x = k(() => {
|
|
3462
|
-
n || (
|
|
3463
|
-
}, [c]),
|
|
3476
|
+
n || (o(void 0), c && c());
|
|
3477
|
+
}, [c]), C = k(() => {
|
|
3464
3478
|
if (n)
|
|
3465
3479
|
return;
|
|
3466
3480
|
let j = u;
|
|
@@ -3468,35 +3482,35 @@ const mn = ({ readonly: n, name: t, data: r, onChange: s, onDelete: c, baseType:
|
|
|
3468
3482
|
j = JSON.parse(j);
|
|
3469
3483
|
} catch {
|
|
3470
3484
|
}
|
|
3471
|
-
|
|
3485
|
+
o(j), s && s(j);
|
|
3472
3486
|
}, [s, u]);
|
|
3473
3487
|
return $(() => {
|
|
3474
|
-
|
|
3475
|
-
}, [r]), !
|
|
3476
|
-
/* @__PURE__ */ e.jsx(
|
|
3477
|
-
/* @__PURE__ */ e.jsx(
|
|
3488
|
+
o(r);
|
|
3489
|
+
}, [r]), !a && n ? /* @__PURE__ */ e.jsx("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: "value" }) }) : a ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3490
|
+
/* @__PURE__ */ e.jsx(Hn, { transparent: !0, text: JSON.stringify(r) }),
|
|
3491
|
+
/* @__PURE__ */ e.jsx(pn, { readonly: n, onDelete: x, onChange: f, data: a, baseType: i, name: t, onlyStringValue: l })
|
|
3478
3492
|
] }) : /* @__PURE__ */ e.jsxs("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: [
|
|
3479
|
-
/* @__PURE__ */ e.jsx(
|
|
3493
|
+
/* @__PURE__ */ e.jsx(Hn, { transparent: !0, text: JSON.stringify(r) }),
|
|
3480
3494
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: u.length || 10, placeholder: "value", onChange: (j) => h(j.target.value), className: "alex-evo-sh-ui-kit-json json-base-data-input", type: "text", value: u }) }),
|
|
3481
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick:
|
|
3495
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: C, children: "save" })
|
|
3482
3496
|
] });
|
|
3483
3497
|
};
|
|
3484
|
-
const
|
|
3485
|
-
const c =
|
|
3486
|
-
c.current && (c.current.focus(),
|
|
3498
|
+
const oc = ({ onMenu: n, onSearch: t, placeholder: r, autoChenge: s }) => {
|
|
3499
|
+
const c = Y(null), [i, l] = _(""), [a, o] = _(!1), u = () => {
|
|
3500
|
+
c.current && (c.current.focus(), o(!0));
|
|
3487
3501
|
}, h = () => {
|
|
3488
|
-
c.current && (c.current.focus(), c.current.value = ""),
|
|
3502
|
+
c.current && (c.current.focus(), c.current.value = ""), l(""), o(!0), s && t("");
|
|
3489
3503
|
}, f = () => {
|
|
3490
|
-
h(), c.current && (c.current.blur(),
|
|
3504
|
+
h(), c.current && (c.current.blur(), o(!1));
|
|
3491
3505
|
}, x = (j) => {
|
|
3492
|
-
|
|
3493
|
-
},
|
|
3506
|
+
l(j.target.value), s && t(j.target.value);
|
|
3507
|
+
}, C = (j) => {
|
|
3494
3508
|
j.code === "Enter" && t(i);
|
|
3495
3509
|
};
|
|
3496
3510
|
return /* @__PURE__ */ e.jsx("div", { className: "search-container", children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
|
|
3497
|
-
|
|
3498
|
-
/* @__PURE__ */ e.jsx("input", { placeholder: r, type: "text", ref: c, onChange: x, onKeyDown:
|
|
3499
|
-
|
|
3511
|
+
a ? /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(Ut, {}) }) : n ? /* @__PURE__ */ e.jsx("span", { onClick: n, children: /* @__PURE__ */ e.jsx(qn, {}) }) : null,
|
|
3512
|
+
/* @__PURE__ */ e.jsx("input", { placeholder: r, type: "text", ref: c, onChange: x, onKeyDown: C, value: i, onFocus: () => o(!0) }),
|
|
3513
|
+
a ? /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(Oe, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: u, children: /* @__PURE__ */ e.jsx(Jt, {}) })
|
|
3500
3514
|
] }) });
|
|
3501
3515
|
};
|
|
3502
3516
|
const lc = ({ visible: n, text: t, option: r }) => {
|
|
@@ -3506,22 +3520,22 @@ const lc = ({ visible: n, text: t, option: r }) => {
|
|
|
3506
3520
|
return n ? /* @__PURE__ */ e.jsxs("div", { className: `snackbar-container ${r == null ? void 0 : r.className}`, style: { backgroundColor: r == null ? void 0 : r.backgroundColor, color: r == null ? void 0 : r.color }, children: [
|
|
3507
3521
|
/* @__PURE__ */ e.jsxs("div", { className: "snackbar-content-container", children: [
|
|
3508
3522
|
/* @__PURE__ */ e.jsx("div", { className: "snackbar-text", children: t }),
|
|
3509
|
-
r != null && r.onClick ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-button-container", children: /* @__PURE__ */ e.jsx(
|
|
3523
|
+
r != null && r.onClick ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-button-container", children: /* @__PURE__ */ e.jsx(Q, { className: "snackbar-btn", onClick: r.onClick, children: r.buttonText ?? "Action" }) }) : null
|
|
3510
3524
|
] }),
|
|
3511
|
-
r != null && r.closeButton ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-close", children: /* @__PURE__ */ e.jsx("span", { onClick: s, children: /* @__PURE__ */ e.jsx(
|
|
3525
|
+
r != null && r.closeButton ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-close", children: /* @__PURE__ */ e.jsx("span", { onClick: s, children: /* @__PURE__ */ e.jsx(Oe, {}) }) }) : null
|
|
3512
3526
|
] }) : null;
|
|
3513
3527
|
};
|
|
3514
|
-
const
|
|
3515
|
-
const i =
|
|
3528
|
+
const ac = ({ style: n, text: t, className: r, onClick: s, onContextMenu: c }) => {
|
|
3529
|
+
const i = Y(null), l = k(() => {
|
|
3516
3530
|
if (!i.current)
|
|
3517
3531
|
return;
|
|
3518
|
-
let
|
|
3519
|
-
|
|
3532
|
+
let a = i.current.getElementsByTagName("p");
|
|
3533
|
+
a[0] && i.current.clientWidth <= a[0].clientWidth ? (a[0].className = "runing", a[0].innerHTML = `| ${t} | ${t}`) : a[0].className = "";
|
|
3520
3534
|
}, [t]);
|
|
3521
3535
|
return $(() => {
|
|
3522
|
-
|
|
3523
|
-
}, [
|
|
3524
|
-
},
|
|
3536
|
+
l();
|
|
3537
|
+
}, [l]), /* @__PURE__ */ e.jsx("div", { style: n, ref: i, onClick: s, onContextMenu: c, className: `runing-text ${r}`, children: /* @__PURE__ */ e.jsx("p", { children: t }) });
|
|
3538
|
+
}, Un = (n, t) => {
|
|
3525
3539
|
for (let r of n) {
|
|
3526
3540
|
if (typeof r == "string" && r === t)
|
|
3527
3541
|
return r;
|
|
@@ -3529,20 +3543,20 @@ const oc = ({ style: n, text: t, className: r, onClick: s, onContextMenu: c }) =
|
|
|
3529
3543
|
return r.title;
|
|
3530
3544
|
}
|
|
3531
3545
|
return "";
|
|
3532
|
-
},
|
|
3533
|
-
const [j, g] = _(""), [v,
|
|
3546
|
+
}, ts = ({ ref: n, style: t, screensize: r = ce.STANDART, items: s, onChange: c, value: i, placeholder: l, className: a, border: o, name: u, error: h, onBlur: f, onFocus: x, container: C }) => {
|
|
3547
|
+
const [j, g] = _(""), [v, m] = _({ x: 0, y: 0, width: 100 }), [p, w] = _(!1);
|
|
3534
3548
|
$(() => {
|
|
3535
|
-
g(
|
|
3549
|
+
g(Un(s, i ?? ""));
|
|
3536
3550
|
}, [i, s]);
|
|
3537
|
-
const y = k((
|
|
3538
|
-
g(
|
|
3539
|
-
}, [s, c]), S = k((
|
|
3540
|
-
|
|
3541
|
-
let
|
|
3542
|
-
|
|
3551
|
+
const y = k((L) => {
|
|
3552
|
+
g(Un(s, L)), c && c(L), w(!1);
|
|
3553
|
+
}, [s, c]), S = k((L) => typeof L == "string" ? { title: L, onClick: () => y(L) } : { title: L.title, onClick: () => y(L.value) }, [y]), T = k((L) => {
|
|
3554
|
+
L.preventDefault();
|
|
3555
|
+
let H = en(L.currentTarget), U = (H == null ? void 0 : H.left) ?? L.pageX, M = H != null && H.top ? H.top + H.height : L.pageY;
|
|
3556
|
+
m({ x: U, y: M, width: (H == null ? void 0 : H.width) ?? 150 }), w(!0);
|
|
3543
3557
|
}, [s, S]);
|
|
3544
3558
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3545
|
-
/* @__PURE__ */ e.jsx("div", { style: t, className: `input-field select-field ${
|
|
3559
|
+
/* @__PURE__ */ e.jsx("div", { style: t, className: `input-field select-field ${a} ${p ? "active" : ""} ${o ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: T, children: [
|
|
3546
3560
|
/* @__PURE__ */ e.jsx(
|
|
3547
3561
|
"input",
|
|
3548
3562
|
{
|
|
@@ -3557,22 +3571,22 @@ const oc = ({ style: n, text: t, className: r, onClick: s, onContextMenu: c }) =
|
|
|
3557
3571
|
readOnly: !0
|
|
3558
3572
|
}
|
|
3559
3573
|
),
|
|
3560
|
-
/* @__PURE__ */ e.jsx("label", { children:
|
|
3574
|
+
/* @__PURE__ */ e.jsx("label", { children: l ? /* @__PURE__ */ e.jsx("span", { children: l }) : null })
|
|
3561
3575
|
] }) }),
|
|
3562
|
-
/* @__PURE__ */ e.jsx(
|
|
3576
|
+
/* @__PURE__ */ e.jsx(ot, { marginBottom: r === ce.MOBILE ? 80 : 0, width: v.width, screensize: r, x: v.x, y: v.y, onHide: () => w(!1), container: C, blocks: [{ items: s.map(S) }], visible: p })
|
|
3563
3577
|
] });
|
|
3564
3578
|
};
|
|
3565
|
-
const
|
|
3566
|
-
const { value: x, changeField:
|
|
3567
|
-
|
|
3568
|
-
}, v = k(() => Number(x[u]), [x, u]),
|
|
3569
|
-
|
|
3579
|
+
const Ve = Dt({}), rs = ({ ref: n, border: t, readOnly: r, transparent: s, styleContainer: c, icon: i, clear: l, className: a, placeholder: o, name: u, min: h, max: f }) => {
|
|
3580
|
+
const { value: x, changeField: C, errors: j } = Ge(Ve), g = (w) => {
|
|
3581
|
+
C && C(u, w);
|
|
3582
|
+
}, v = k(() => Number(x[u]), [x, u]), m = () => {
|
|
3583
|
+
C && C(u, "");
|
|
3570
3584
|
}, p = k(() => {
|
|
3571
3585
|
if (j && Object.keys(j).includes(u))
|
|
3572
3586
|
return j[u];
|
|
3573
3587
|
}, [j, u]);
|
|
3574
3588
|
return /* @__PURE__ */ e.jsx(
|
|
3575
|
-
|
|
3589
|
+
Wr,
|
|
3576
3590
|
{
|
|
3577
3591
|
ref: n,
|
|
3578
3592
|
border: t,
|
|
@@ -3581,9 +3595,9 @@ const Re = Ot({}), ts = ({ ref: n, border: t, readOnly: r, transparent: s, style
|
|
|
3581
3595
|
styleContainer: c,
|
|
3582
3596
|
error: !!p(),
|
|
3583
3597
|
icon: i,
|
|
3584
|
-
onClear:
|
|
3585
|
-
className:
|
|
3586
|
-
placeholder:
|
|
3598
|
+
onClear: l ? m : void 0,
|
|
3599
|
+
className: a,
|
|
3600
|
+
placeholder: o,
|
|
3587
3601
|
name: u,
|
|
3588
3602
|
onChange: g,
|
|
3589
3603
|
value: v(),
|
|
@@ -3591,12 +3605,12 @@ const Re = Ot({}), ts = ({ ref: n, border: t, readOnly: r, transparent: s, style
|
|
|
3591
3605
|
max: f
|
|
3592
3606
|
}
|
|
3593
3607
|
);
|
|
3594
|
-
},
|
|
3595
|
-
const { value:
|
|
3596
|
-
u && u(
|
|
3597
|
-
}, f = k(() => l
|
|
3608
|
+
}, ss = ({ items: n, ref: t, border: r, error: s, className: c, placeholder: i, name: l, container_id: a }) => {
|
|
3609
|
+
const { value: o, changeField: u } = Ge(Ve), h = (x) => {
|
|
3610
|
+
u && u(l, x);
|
|
3611
|
+
}, f = k(() => o[l], [o, l]);
|
|
3598
3612
|
return /* @__PURE__ */ e.jsx(
|
|
3599
|
-
|
|
3613
|
+
ts,
|
|
3600
3614
|
{
|
|
3601
3615
|
items: n,
|
|
3602
3616
|
ref: t,
|
|
@@ -3604,38 +3618,38 @@ const Re = Ot({}), ts = ({ ref: n, border: t, readOnly: r, transparent: s, style
|
|
|
3604
3618
|
error: s,
|
|
3605
3619
|
className: c,
|
|
3606
3620
|
placeholder: i,
|
|
3607
|
-
name:
|
|
3621
|
+
name: l,
|
|
3608
3622
|
onChange: h,
|
|
3609
3623
|
value: f(),
|
|
3610
|
-
container: document.getElementById(
|
|
3624
|
+
container: document.getElementById(a)
|
|
3611
3625
|
}
|
|
3612
3626
|
);
|
|
3613
|
-
},
|
|
3614
|
-
const { value:
|
|
3615
|
-
|
|
3616
|
-
}, u = k(() => !!
|
|
3627
|
+
}, cs = ({ placeholder: n, ref: t, style: r, readOnly: s, className: c, name: i }) => {
|
|
3628
|
+
const { value: l, changeField: a } = Ge(Ve), o = (h) => {
|
|
3629
|
+
a && a(i, h.target.checked);
|
|
3630
|
+
}, u = k(() => !!l[i], [l, i]);
|
|
3617
3631
|
return /* @__PURE__ */ e.jsxs("div", { className: `input-field form-switch ${c}`, style: r, children: [
|
|
3618
|
-
/* @__PURE__ */ e.jsx(
|
|
3619
|
-
/* @__PURE__ */ e.jsx(
|
|
3632
|
+
/* @__PURE__ */ e.jsx(vr, { readOnly: s, ref: t, name: i, checked: u(), onChange: o }),
|
|
3633
|
+
/* @__PURE__ */ e.jsx(me, { className: "form-switch-placeholder", type: "body", children: n })
|
|
3620
3634
|
] });
|
|
3621
|
-
},
|
|
3622
|
-
const { value:
|
|
3635
|
+
}, is = ({ placeholder: n, ref: t, style: r, readOnly: s, className: c, name: i }) => {
|
|
3636
|
+
const { value: l, changeField: a } = Ge(Ve), o = (h) => {
|
|
3623
3637
|
if (h.length > 0)
|
|
3624
|
-
return
|
|
3625
|
-
|
|
3626
|
-
}, u = k(() =>
|
|
3627
|
-
return /* @__PURE__ */ e.jsx(
|
|
3628
|
-
},
|
|
3629
|
-
const { value: f, changeField: x, errors:
|
|
3638
|
+
return a && a(i, !0);
|
|
3639
|
+
a && a(i, !1);
|
|
3640
|
+
}, u = k(() => l[i] ? [n ?? i] : [], [l, i, n]);
|
|
3641
|
+
return /* @__PURE__ */ e.jsx(Cr, { className: c, style: r, ref: t, readOnly: s, value: u(), multiple: !0, items: [n ?? i], onChange: o });
|
|
3642
|
+
}, os = ({ password: n, ref: t, border: r, readOnly: s, transparent: c, styleContainer: i, icon: l, clear: a, className: o, placeholder: u, name: h }) => {
|
|
3643
|
+
const { value: f, changeField: x, errors: C } = Ge(Ve), j = (p) => {
|
|
3630
3644
|
x && x(h, p.target.value);
|
|
3631
3645
|
}, g = k(() => f[h], [f, h]), v = () => {
|
|
3632
3646
|
x && x(h, "");
|
|
3633
|
-
},
|
|
3634
|
-
if (
|
|
3635
|
-
return
|
|
3636
|
-
}, [
|
|
3647
|
+
}, m = k(() => {
|
|
3648
|
+
if (C && Object.keys(C).includes(h))
|
|
3649
|
+
return C[h];
|
|
3650
|
+
}, [C, h]);
|
|
3637
3651
|
return /* @__PURE__ */ e.jsx(
|
|
3638
|
-
|
|
3652
|
+
gn,
|
|
3639
3653
|
{
|
|
3640
3654
|
ref: t,
|
|
3641
3655
|
password: n,
|
|
@@ -3643,10 +3657,10 @@ const Re = Ot({}), ts = ({ ref: n, border: t, readOnly: r, transparent: s, style
|
|
|
3643
3657
|
readOnly: s,
|
|
3644
3658
|
transparent: c,
|
|
3645
3659
|
styleContainer: i,
|
|
3646
|
-
error: !!
|
|
3647
|
-
icon:
|
|
3648
|
-
onClear:
|
|
3649
|
-
className:
|
|
3660
|
+
error: !!m(),
|
|
3661
|
+
icon: l,
|
|
3662
|
+
onClear: a ? v : void 0,
|
|
3663
|
+
className: o,
|
|
3650
3664
|
placeholder: u,
|
|
3651
3665
|
name: h,
|
|
3652
3666
|
onChange: j,
|
|
@@ -3654,126 +3668,126 @@ const Re = Ot({}), ts = ({ ref: n, border: t, readOnly: r, transparent: s, style
|
|
|
3654
3668
|
}
|
|
3655
3669
|
);
|
|
3656
3670
|
};
|
|
3657
|
-
const ls = ({ children: n, value: t, name: r, changeValue: s, errors: c }) => /* @__PURE__ */ e.jsx(
|
|
3658
|
-
TextInput:
|
|
3659
|
-
NumberInput:
|
|
3660
|
-
SelectInput:
|
|
3661
|
-
SwitchField:
|
|
3662
|
-
SwitchButtonField:
|
|
3671
|
+
const ls = ({ children: n, value: t, name: r, changeValue: s, errors: c }) => /* @__PURE__ */ e.jsx(Ve.Provider, { value: { value: t, changeField: s, errors: c }, children: /* @__PURE__ */ e.jsx("form", { name: r, children: n }) }), dc = Object.assign(ls, {
|
|
3672
|
+
TextInput: os,
|
|
3673
|
+
NumberInput: rs,
|
|
3674
|
+
SelectInput: ss,
|
|
3675
|
+
SwitchField: cs,
|
|
3676
|
+
SwitchButtonField: is
|
|
3663
3677
|
});
|
|
3664
3678
|
export {
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3679
|
+
gs as AddUserIcon,
|
|
3680
|
+
Ut as ArrowLeft,
|
|
3681
|
+
hs as ArrowRight,
|
|
3682
|
+
fs as ArrowUp,
|
|
3683
|
+
_r as BaseActionCard,
|
|
3684
|
+
Ye as BaseButton,
|
|
3685
|
+
Vs as BaseDialog,
|
|
3686
|
+
fr as BaseMenu,
|
|
3687
|
+
mr as BaseRadioButton,
|
|
3688
|
+
jt as BaseType,
|
|
3689
|
+
Me as BasicTemplateDialog,
|
|
3690
|
+
As as BigContainer,
|
|
3691
|
+
lt as BottomSheetsUi,
|
|
3692
|
+
Jn as Button,
|
|
3693
|
+
Zt as Calendar,
|
|
3694
|
+
Hs as Card,
|
|
3695
|
+
Se as Check,
|
|
3696
|
+
Ts as Checkbox,
|
|
3697
|
+
On as ChevronDown,
|
|
3698
|
+
jr as Chips,
|
|
3685
3699
|
Rs as CircleInput,
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3700
|
+
Cn as CircleMinus,
|
|
3701
|
+
Qn as CirclePlus,
|
|
3702
|
+
Kn as Clock,
|
|
3703
|
+
qs as ColorField,
|
|
3704
|
+
Is as ColumnLayout,
|
|
3691
3705
|
Bs as ContentBox,
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3706
|
+
Vn as Copy,
|
|
3707
|
+
Hn as CopyButton,
|
|
3708
|
+
Qs as DateField,
|
|
3709
|
+
ec as DayOfWeekField,
|
|
3710
|
+
ze as DialogModal,
|
|
3711
|
+
xe as Divider,
|
|
3712
|
+
cc as EmptyPage,
|
|
3713
|
+
$s as FAB,
|
|
3714
|
+
Bt as FilledButton,
|
|
3715
|
+
It as FilledTotalButton,
|
|
3716
|
+
dc as Form,
|
|
3717
|
+
Ps as FullScrinTemplateDialog,
|
|
3718
|
+
ms as GearIcon,
|
|
3719
|
+
Gs as GridLayout,
|
|
3720
|
+
zs as GridLayoutItem,
|
|
3721
|
+
Ns as Group,
|
|
3722
|
+
Te as HEXtoRGB,
|
|
3723
|
+
Ss as HSLtoHSV,
|
|
3724
|
+
Ms as HSVtoHSL,
|
|
3725
|
+
Be as HSVtoRGB,
|
|
3726
|
+
xs as Home,
|
|
3727
|
+
pe as IconButton,
|
|
3714
3728
|
Ls as IconButtonMenu,
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3729
|
+
ic as JsonContainer,
|
|
3730
|
+
qt as Keyboard,
|
|
3731
|
+
vs as LinkIcon,
|
|
3732
|
+
pr as ListContainer,
|
|
3733
|
+
br as ListItem,
|
|
3734
|
+
_s as LogoutIcon,
|
|
3735
|
+
ot as Menu,
|
|
3736
|
+
qn as MenuIcon,
|
|
3737
|
+
er as Minus,
|
|
3738
|
+
bs as MinusUserIcon,
|
|
3739
|
+
vn as ModalTemplate,
|
|
3740
|
+
jn as MoreHorizontal,
|
|
3741
|
+
nc as MoreText,
|
|
3742
|
+
Xt as MoreVertical,
|
|
3743
|
+
Us as NavigationBar,
|
|
3744
|
+
Js as NavigationDrawer,
|
|
3745
|
+
Ks as NavigationRail,
|
|
3746
|
+
Wr as NumberField,
|
|
3747
|
+
ks as OkUserIcon,
|
|
3748
|
+
At as OutlineButton,
|
|
3749
|
+
Wt as Palette,
|
|
3750
|
+
Ys as Panel,
|
|
3751
|
+
Kt as Pen,
|
|
3752
|
+
js as Plug,
|
|
3753
|
+
Qt as Plus,
|
|
3754
|
+
qe as RGBtoHSV,
|
|
3755
|
+
Os as RadioButton,
|
|
3756
|
+
Es as Range,
|
|
3757
|
+
ws as Room,
|
|
3758
|
+
ac as RunningLine,
|
|
3745
3759
|
ce as ScreenSize,
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3760
|
+
Ws as ScrollContainer,
|
|
3761
|
+
oc as Search,
|
|
3762
|
+
ts as SelectField,
|
|
3763
|
+
Ds as SelectionDialog,
|
|
3764
|
+
Cr as SigmentedButton,
|
|
3765
|
+
sc as Slider,
|
|
3766
|
+
xr as SmallWindowMenu,
|
|
3753
3767
|
lc as Snackbar,
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3768
|
+
vr as Switch,
|
|
3769
|
+
Xs as Table,
|
|
3770
|
+
Zs as Tabs,
|
|
3771
|
+
tc as TextArea,
|
|
3772
|
+
Q as TextButton,
|
|
3773
|
+
Fs as TextDialog,
|
|
3774
|
+
gn as TextField,
|
|
3775
|
+
rc as TimeField,
|
|
3776
|
+
Kr as TimePicker,
|
|
3777
|
+
Yt as Trash,
|
|
3778
|
+
me as Typography,
|
|
3779
|
+
Cs as UnLinkIcon,
|
|
3780
|
+
ps as UserIcon,
|
|
3781
|
+
Oe as X,
|
|
3782
|
+
ys as XUserIcon,
|
|
3783
|
+
ve as getContainerColor,
|
|
3784
|
+
en as getContainerData,
|
|
3785
|
+
ct as getModalWindowCord,
|
|
3772
3786
|
se as getTextColor,
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3787
|
+
tr as hexToRgb,
|
|
3788
|
+
qr as map,
|
|
3789
|
+
tt as useColor,
|
|
3790
|
+
dt as useScreenSize,
|
|
3791
|
+
at as useScrollLock,
|
|
3792
|
+
Gr as СalendarPickers
|
|
3779
3793
|
};
|