alex-evo-sh-ui-kit 1.0.0 → 1.0.1
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 +670 -615
- package/dist/alex-evo-sh-ui-kit.umd.js +26 -26
- package/dist/helpers/map.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/ui/SigmentedButton/SigmentedButton.d.ts +12 -0
- package/dist/ui/Slider/Slider.d.ts +13 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
import xe, { useState as
|
|
3
|
-
var
|
|
2
|
+
import xe, { useState as N, useCallback as R, useEffect as A, forwardRef as rn, createElement as Te, useRef as z } from "react";
|
|
3
|
+
var Re = { exports: {} }, re = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,21 +10,21 @@ var Ee = { exports: {} }, re = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
13
|
+
var Ze;
|
|
14
|
+
function Fn() {
|
|
15
|
+
if (Ze)
|
|
16
16
|
return re;
|
|
17
|
-
|
|
18
|
-
var n = xe, r = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty,
|
|
19
|
-
function u(
|
|
20
|
-
var
|
|
21
|
-
h !== void 0 && (
|
|
22
|
-
for (
|
|
23
|
-
a.call(i,
|
|
24
|
-
if (
|
|
25
|
-
for (
|
|
26
|
-
|
|
27
|
-
return { $$typeof: r, type:
|
|
17
|
+
Ze = 1;
|
|
18
|
+
var n = xe, r = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function u(l, i, h) {
|
|
20
|
+
var d, x = {}, j = null, y = null;
|
|
21
|
+
h !== void 0 && (j = "" + h), i.key !== void 0 && (j = "" + i.key), i.ref !== void 0 && (y = i.ref);
|
|
22
|
+
for (d in i)
|
|
23
|
+
a.call(i, d) && !o.hasOwnProperty(d) && (x[d] = i[d]);
|
|
24
|
+
if (l && l.defaultProps)
|
|
25
|
+
for (d in i = l.defaultProps, i)
|
|
26
|
+
x[d] === void 0 && (x[d] = i[d]);
|
|
27
|
+
return { $$typeof: r, type: l, key: j, ref: y, props: x, _owner: c.current };
|
|
28
28
|
}
|
|
29
29
|
return re.Fragment = s, re.jsx = u, re.jsxs = u, re;
|
|
30
30
|
}
|
|
@@ -38,54 +38,54 @@ var se = {};
|
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var n = xe, r = Symbol.for("react.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"),
|
|
41
|
+
var Qe;
|
|
42
|
+
function In() {
|
|
43
|
+
return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var n = xe, r = Symbol.for("react.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), l = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = Symbol.iterator, w = "@@iterator";
|
|
45
45
|
function S(t) {
|
|
46
46
|
if (t === null || typeof t != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var
|
|
49
|
-
return typeof
|
|
48
|
+
var f = g && t[g] || t[w];
|
|
49
|
+
return typeof f == "function" ? f : null;
|
|
50
50
|
}
|
|
51
51
|
var D = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
52
|
function E(t) {
|
|
53
53
|
{
|
|
54
|
-
for (var
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
for (var f = arguments.length, m = new Array(f > 1 ? f - 1 : 0), p = 1; p < f; p++)
|
|
55
|
+
m[p - 1] = arguments[p];
|
|
56
|
+
Y("error", t, m);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Y(t, f, m) {
|
|
60
60
|
{
|
|
61
|
-
var p = D.ReactDebugCurrentFrame,
|
|
62
|
-
|
|
63
|
-
var T =
|
|
64
|
-
return String(
|
|
61
|
+
var p = D.ReactDebugCurrentFrame, C = p.getStackAddendum();
|
|
62
|
+
C !== "" && (f += "%s", m = m.concat([C]));
|
|
63
|
+
var T = m.map(function(k) {
|
|
64
|
+
return String(k);
|
|
65
65
|
});
|
|
66
|
-
T.unshift("Warning: " +
|
|
66
|
+
T.unshift("Warning: " + f), Function.prototype.apply.call(console[t], console, T);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
69
|
+
var v = !1, _ = !1, W = !1, U = !1, Q = !1, H;
|
|
70
|
+
H = Symbol.for("react.module.reference");
|
|
71
71
|
function ie(t) {
|
|
72
|
-
return !!(typeof t == "string" || typeof t == "function" || t === a || t === o || Q || t ===
|
|
72
|
+
return !!(typeof t == "string" || typeof t == "function" || t === a || t === o || Q || t === c || t === h || t === d || U || t === y || v || _ || W || typeof t == "object" && t !== null && (t.$$typeof === j || t.$$typeof === x || t.$$typeof === u || t.$$typeof === l || t.$$typeof === i || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
t.$$typeof ===
|
|
76
|
+
t.$$typeof === H || t.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function K(t,
|
|
78
|
+
function K(t, f, m) {
|
|
79
79
|
var p = t.displayName;
|
|
80
80
|
if (p)
|
|
81
81
|
return p;
|
|
82
|
-
var
|
|
83
|
-
return
|
|
82
|
+
var C = f.displayName || f.name || "";
|
|
83
|
+
return C !== "" ? m + "(" + C + ")" : m;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function _e(t) {
|
|
86
86
|
return t.displayName || "Context";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function V(t) {
|
|
89
89
|
if (t == null)
|
|
90
90
|
return null;
|
|
91
91
|
if (typeof t.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
@@ -99,30 +99,30 @@ function $n() {
|
|
|
99
99
|
return "Portal";
|
|
100
100
|
case o:
|
|
101
101
|
return "Profiler";
|
|
102
|
-
case
|
|
102
|
+
case c:
|
|
103
103
|
return "StrictMode";
|
|
104
104
|
case h:
|
|
105
105
|
return "Suspense";
|
|
106
|
-
case
|
|
106
|
+
case d:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
109
|
if (typeof t == "object")
|
|
110
110
|
switch (t.$$typeof) {
|
|
111
|
-
case
|
|
112
|
-
var
|
|
113
|
-
return
|
|
111
|
+
case l:
|
|
112
|
+
var f = t;
|
|
113
|
+
return _e(f) + ".Consumer";
|
|
114
114
|
case u:
|
|
115
|
-
var
|
|
116
|
-
return
|
|
115
|
+
var m = t;
|
|
116
|
+
return _e(m._context) + ".Provider";
|
|
117
117
|
case i:
|
|
118
118
|
return K(t, t.render, "ForwardRef");
|
|
119
|
-
case
|
|
119
|
+
case x:
|
|
120
120
|
var p = t.displayName || null;
|
|
121
|
-
return p !== null ? p :
|
|
122
|
-
case
|
|
123
|
-
var
|
|
121
|
+
return p !== null ? p : V(t.type) || "Memo";
|
|
122
|
+
case j: {
|
|
123
|
+
var C = t, T = C._payload, k = C._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return V(k(T));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,18 +130,18 @@ function $n() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
133
|
+
var X = Object.assign, ee = 0, Se, Oe, De, Me, Pe, Ae, $e;
|
|
134
|
+
function Fe() {
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
136
|
+
Fe.__reactDisabledLog = !0;
|
|
137
|
+
function un() {
|
|
138
138
|
{
|
|
139
139
|
if (ee === 0) {
|
|
140
|
-
|
|
140
|
+
Se = console.log, Oe = console.info, De = console.warn, Me = console.error, Pe = console.group, Ae = console.groupCollapsed, $e = console.groupEnd;
|
|
141
141
|
var t = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
144
|
-
value:
|
|
144
|
+
value: Fe,
|
|
145
145
|
writable: !0
|
|
146
146
|
};
|
|
147
147
|
Object.defineProperties(console, {
|
|
@@ -157,7 +157,7 @@ function $n() {
|
|
|
157
157
|
ee++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function dn() {
|
|
161
161
|
{
|
|
162
162
|
if (ee--, ee === 0) {
|
|
163
163
|
var t = {
|
|
@@ -166,26 +166,26 @@ function $n() {
|
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value: Re
|
|
171
|
-
}),
|
|
172
|
-
info: q({}, t, {
|
|
173
|
-
value: _e
|
|
174
|
-
}),
|
|
175
|
-
warn: q({}, t, {
|
|
169
|
+
log: X({}, t, {
|
|
176
170
|
value: Se
|
|
177
171
|
}),
|
|
178
|
-
|
|
172
|
+
info: X({}, t, {
|
|
179
173
|
value: Oe
|
|
180
174
|
}),
|
|
181
|
-
|
|
175
|
+
warn: X({}, t, {
|
|
182
176
|
value: De
|
|
183
177
|
}),
|
|
184
|
-
|
|
178
|
+
error: X({}, t, {
|
|
185
179
|
value: Me
|
|
186
180
|
}),
|
|
187
|
-
|
|
181
|
+
group: X({}, t, {
|
|
188
182
|
value: Pe
|
|
183
|
+
}),
|
|
184
|
+
groupCollapsed: X({}, t, {
|
|
185
|
+
value: Ae
|
|
186
|
+
}),
|
|
187
|
+
groupEnd: X({}, t, {
|
|
188
|
+
value: $e
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
@@ -193,61 +193,61 @@ function $n() {
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
var je = D.ReactCurrentDispatcher, ve;
|
|
196
|
-
function
|
|
196
|
+
function oe(t, f, m) {
|
|
197
197
|
{
|
|
198
198
|
if (ve === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var p =
|
|
201
|
+
} catch (C) {
|
|
202
|
+
var p = C.stack.trim().match(/\n( *(at )?)/);
|
|
203
203
|
ve = p && p[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
206
|
` + ve + t;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var pe = !1,
|
|
209
|
+
var pe = !1, ue;
|
|
210
210
|
{
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var fn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
ue = new fn();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Ie(t, f) {
|
|
215
215
|
if (!t || pe)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var
|
|
219
|
-
if (
|
|
220
|
-
return
|
|
218
|
+
var m = ue.get(t);
|
|
219
|
+
if (m !== void 0)
|
|
220
|
+
return m;
|
|
221
221
|
}
|
|
222
222
|
var p;
|
|
223
223
|
pe = !0;
|
|
224
|
-
var
|
|
224
|
+
var C = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
226
|
var T;
|
|
227
|
-
T = je.current, je.current = null,
|
|
227
|
+
T = je.current, je.current = null, un();
|
|
228
228
|
try {
|
|
229
|
-
if (
|
|
230
|
-
var
|
|
229
|
+
if (f) {
|
|
230
|
+
var k = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty(k.prototype, "props", {
|
|
234
234
|
set: function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
}
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
|
-
Reflect.construct(
|
|
239
|
+
Reflect.construct(k, []);
|
|
240
240
|
} catch (F) {
|
|
241
241
|
p = F;
|
|
242
242
|
}
|
|
243
|
-
Reflect.construct(t, [],
|
|
243
|
+
Reflect.construct(t, [], k);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
|
-
|
|
246
|
+
k.call();
|
|
247
247
|
} catch (F) {
|
|
248
248
|
p = F;
|
|
249
249
|
}
|
|
250
|
-
t.call(
|
|
250
|
+
t.call(k.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
@@ -259,231 +259,231 @@ function $n() {
|
|
|
259
259
|
}
|
|
260
260
|
} catch (F) {
|
|
261
261
|
if (F && p && typeof F.stack == "string") {
|
|
262
|
-
for (var
|
|
262
|
+
for (var b = F.stack.split(`
|
|
263
263
|
`), $ = p.stack.split(`
|
|
264
|
-
`), O =
|
|
264
|
+
`), O = b.length - 1, M = $.length - 1; O >= 1 && M >= 0 && b[O] !== $[M]; )
|
|
265
265
|
M--;
|
|
266
266
|
for (; O >= 1 && M >= 0; O--, M--)
|
|
267
|
-
if (
|
|
267
|
+
if (b[O] !== $[M]) {
|
|
268
268
|
if (O !== 1 || M !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (O--, M--, M < 0 ||
|
|
270
|
+
if (O--, M--, M < 0 || b[O] !== $[M]) {
|
|
271
271
|
var I = `
|
|
272
|
-
` +
|
|
273
|
-
return t.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", t.displayName)), typeof t == "function" &&
|
|
272
|
+
` + b[O].replace(" at new ", " at ");
|
|
273
|
+
return t.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", t.displayName)), typeof t == "function" && ue.set(t, I), I;
|
|
274
274
|
}
|
|
275
275
|
while (O >= 1 && M >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
pe = !1, je.current = T,
|
|
280
|
+
pe = !1, je.current = T, dn(), Error.prepareStackTrace = C;
|
|
281
281
|
}
|
|
282
|
-
var Z = t ? t.displayName || t.name : "",
|
|
283
|
-
return typeof t == "function" &&
|
|
282
|
+
var Z = t ? t.displayName || t.name : "", q = Z ? oe(Z) : "";
|
|
283
|
+
return typeof t == "function" && ue.set(t, q), q;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function hn(t, f, m) {
|
|
286
|
+
return Ie(t, !1);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
var
|
|
290
|
-
return !!(
|
|
288
|
+
function xn(t) {
|
|
289
|
+
var f = t.prototype;
|
|
290
|
+
return !!(f && f.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function de(t, f, m) {
|
|
293
293
|
if (t == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof t == "function")
|
|
296
|
-
return
|
|
296
|
+
return Ie(t, xn(t));
|
|
297
297
|
if (typeof t == "string")
|
|
298
|
-
return
|
|
298
|
+
return oe(t);
|
|
299
299
|
switch (t) {
|
|
300
300
|
case h:
|
|
301
|
-
return
|
|
302
|
-
case
|
|
303
|
-
return
|
|
301
|
+
return oe("Suspense");
|
|
302
|
+
case d:
|
|
303
|
+
return oe("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof t == "object")
|
|
306
306
|
switch (t.$$typeof) {
|
|
307
307
|
case i:
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
var p = t,
|
|
308
|
+
return hn(t.render);
|
|
309
|
+
case x:
|
|
310
|
+
return de(t.type, f, m);
|
|
311
|
+
case j: {
|
|
312
|
+
var p = t, C = p._payload, T = p._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return de(T(C), f, m);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var ne = Object.prototype.hasOwnProperty,
|
|
322
|
-
function
|
|
321
|
+
var ne = Object.prototype.hasOwnProperty, Be = {}, Ye = D.ReactDebugCurrentFrame;
|
|
322
|
+
function fe(t) {
|
|
323
323
|
if (t) {
|
|
324
|
-
var
|
|
325
|
-
|
|
324
|
+
var f = t._owner, m = de(t.type, t._source, f ? f.type : null);
|
|
325
|
+
Ye.setExtraStackFrame(m);
|
|
326
326
|
} else
|
|
327
|
-
|
|
327
|
+
Ye.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function mn(t, f, m, p, C) {
|
|
330
330
|
{
|
|
331
331
|
var T = Function.call.bind(ne);
|
|
332
|
-
for (var
|
|
333
|
-
if (T(t,
|
|
334
|
-
var
|
|
332
|
+
for (var k in t)
|
|
333
|
+
if (T(t, k)) {
|
|
334
|
+
var b = void 0;
|
|
335
335
|
try {
|
|
336
|
-
if (typeof t[
|
|
337
|
-
var $ = Error((p || "React class") + ": " +
|
|
336
|
+
if (typeof t[k] != "function") {
|
|
337
|
+
var $ = Error((p || "React class") + ": " + m + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw $.name = "Invariant Violation", $;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
b = t[k](f, k, p, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
341
|
} catch (O) {
|
|
342
|
-
|
|
342
|
+
b = O;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
b && !(b instanceof Error) && (fe(C), E("%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).", p || "React class", m, k, typeof b), fe(null)), b instanceof Error && !(b.message in Be) && (Be[b.message] = !0, fe(C), E("Failed %s type: %s", m, b.message), fe(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
var
|
|
348
|
+
var jn = Array.isArray;
|
|
349
349
|
function ye(t) {
|
|
350
|
-
return
|
|
350
|
+
return jn(t);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function vn(t) {
|
|
353
353
|
{
|
|
354
|
-
var
|
|
355
|
-
return
|
|
354
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, m = f && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
355
|
+
return m;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function pn(t) {
|
|
359
359
|
try {
|
|
360
|
-
return
|
|
360
|
+
return We(t), !1;
|
|
361
361
|
} catch {
|
|
362
362
|
return !0;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function We(t) {
|
|
366
366
|
return "" + t;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
if (
|
|
370
|
-
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
368
|
+
function Ve(t) {
|
|
369
|
+
if (pn(t))
|
|
370
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vn(t)), We(t);
|
|
371
371
|
}
|
|
372
|
-
var te = D.ReactCurrentOwner,
|
|
372
|
+
var te = D.ReactCurrentOwner, yn = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
376
376
|
__source: !0
|
|
377
|
-
},
|
|
377
|
+
}, Le, ze, ge;
|
|
378
378
|
ge = {};
|
|
379
|
-
function
|
|
379
|
+
function gn(t) {
|
|
380
380
|
if (ne.call(t, "ref")) {
|
|
381
|
-
var
|
|
382
|
-
if (
|
|
381
|
+
var f = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
382
|
+
if (f && f.isReactWarning)
|
|
383
383
|
return !1;
|
|
384
384
|
}
|
|
385
385
|
return t.ref !== void 0;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function bn(t) {
|
|
388
388
|
if (ne.call(t, "key")) {
|
|
389
|
-
var
|
|
390
|
-
if (
|
|
389
|
+
var f = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
390
|
+
if (f && f.isReactWarning)
|
|
391
391
|
return !1;
|
|
392
392
|
}
|
|
393
393
|
return t.key !== void 0;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
if (typeof t.ref == "string" && te.current &&
|
|
397
|
-
var
|
|
398
|
-
ge[
|
|
395
|
+
function kn(t, f) {
|
|
396
|
+
if (typeof t.ref == "string" && te.current && f && te.current.stateNode !== f) {
|
|
397
|
+
var m = V(te.current.type);
|
|
398
|
+
ge[m] || (E('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', V(te.current.type), t.ref), ge[m] = !0);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function Nn(t, f) {
|
|
402
402
|
{
|
|
403
|
-
var
|
|
404
|
-
|
|
403
|
+
var m = function() {
|
|
404
|
+
Le || (Le = !0, E("%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)", f));
|
|
405
405
|
};
|
|
406
|
-
|
|
407
|
-
get:
|
|
406
|
+
m.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
407
|
+
get: m,
|
|
408
408
|
configurable: !0
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Cn(t, f) {
|
|
413
413
|
{
|
|
414
|
-
var
|
|
415
|
-
|
|
414
|
+
var m = function() {
|
|
415
|
+
ze || (ze = !0, E("%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)", f));
|
|
416
416
|
};
|
|
417
|
-
|
|
418
|
-
get:
|
|
417
|
+
m.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
418
|
+
get: m,
|
|
419
419
|
configurable: !0
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var
|
|
424
|
-
var
|
|
423
|
+
var wn = function(t, f, m, p, C, T, k) {
|
|
424
|
+
var b = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: r,
|
|
427
427
|
// Built-in properties that belong on the element
|
|
428
428
|
type: t,
|
|
429
|
-
key:
|
|
430
|
-
ref:
|
|
431
|
-
props:
|
|
429
|
+
key: f,
|
|
430
|
+
ref: m,
|
|
431
|
+
props: k,
|
|
432
432
|
// Record the component responsible for creating this element.
|
|
433
433
|
_owner: T
|
|
434
434
|
};
|
|
435
|
-
return
|
|
435
|
+
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
436
436
|
configurable: !1,
|
|
437
437
|
enumerable: !1,
|
|
438
438
|
writable: !0,
|
|
439
439
|
value: !1
|
|
440
|
-
}), Object.defineProperty(
|
|
440
|
+
}), Object.defineProperty(b, "_self", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
444
|
value: p
|
|
445
|
-
}), Object.defineProperty(
|
|
445
|
+
}), Object.defineProperty(b, "_source", {
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
448
448
|
writable: !1,
|
|
449
|
-
value:
|
|
450
|
-
}), Object.freeze && (Object.freeze(
|
|
449
|
+
value: C
|
|
450
|
+
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
451
451
|
};
|
|
452
|
-
function
|
|
452
|
+
function En(t, f, m, p, C) {
|
|
453
453
|
{
|
|
454
|
-
var T,
|
|
455
|
-
|
|
456
|
-
for (T in
|
|
457
|
-
ne.call(
|
|
454
|
+
var T, k = {}, b = null, $ = null;
|
|
455
|
+
m !== void 0 && (Ve(m), b = "" + m), bn(f) && (Ve(f.key), b = "" + f.key), gn(f) && ($ = f.ref, kn(f, C));
|
|
456
|
+
for (T in f)
|
|
457
|
+
ne.call(f, T) && !yn.hasOwnProperty(T) && (k[T] = f[T]);
|
|
458
458
|
if (t && t.defaultProps) {
|
|
459
459
|
var O = t.defaultProps;
|
|
460
460
|
for (T in O)
|
|
461
|
-
|
|
461
|
+
k[T] === void 0 && (k[T] = O[T]);
|
|
462
462
|
}
|
|
463
|
-
if (
|
|
463
|
+
if (b || $) {
|
|
464
464
|
var M = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
465
|
-
|
|
465
|
+
b && Nn(k, M), $ && Cn(k, M);
|
|
466
466
|
}
|
|
467
|
-
return
|
|
467
|
+
return wn(t, b, $, C, p, te.current, k);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
var be = D.ReactCurrentOwner,
|
|
471
|
-
function
|
|
470
|
+
var be = D.ReactCurrentOwner, Ue = D.ReactDebugCurrentFrame;
|
|
471
|
+
function G(t) {
|
|
472
472
|
if (t) {
|
|
473
|
-
var
|
|
474
|
-
|
|
473
|
+
var f = t._owner, m = de(t.type, t._source, f ? f.type : null);
|
|
474
|
+
Ue.setExtraStackFrame(m);
|
|
475
475
|
} else
|
|
476
|
-
|
|
476
|
+
Ue.setExtraStackFrame(null);
|
|
477
477
|
}
|
|
478
478
|
var ke;
|
|
479
479
|
ke = !1;
|
|
480
480
|
function Ne(t) {
|
|
481
481
|
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Ke() {
|
|
484
484
|
{
|
|
485
485
|
if (be.current) {
|
|
486
|
-
var t =
|
|
486
|
+
var t = V(be.current.type);
|
|
487
487
|
if (t)
|
|
488
488
|
return `
|
|
489
489
|
|
|
@@ -492,229 +492,229 @@ Check the render method of \`` + t + "`.";
|
|
|
492
492
|
return "";
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Tn(t) {
|
|
496
496
|
return "";
|
|
497
497
|
}
|
|
498
|
-
var
|
|
499
|
-
function
|
|
498
|
+
var Xe = {};
|
|
499
|
+
function Rn(t) {
|
|
500
500
|
{
|
|
501
|
-
var
|
|
502
|
-
if (!
|
|
503
|
-
var
|
|
504
|
-
|
|
501
|
+
var f = Ke();
|
|
502
|
+
if (!f) {
|
|
503
|
+
var m = typeof t == "string" ? t : t.displayName || t.name;
|
|
504
|
+
m && (f = `
|
|
505
505
|
|
|
506
|
-
Check the top-level render call using <` +
|
|
506
|
+
Check the top-level render call using <` + m + ">.");
|
|
507
507
|
}
|
|
508
|
-
return
|
|
508
|
+
return f;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
function qe(t,
|
|
511
|
+
function qe(t, f) {
|
|
512
512
|
{
|
|
513
513
|
if (!t._store || t._store.validated || t.key != null)
|
|
514
514
|
return;
|
|
515
515
|
t._store.validated = !0;
|
|
516
|
-
var
|
|
517
|
-
if (
|
|
516
|
+
var m = Rn(f);
|
|
517
|
+
if (Xe[m])
|
|
518
518
|
return;
|
|
519
|
-
|
|
519
|
+
Xe[m] = !0;
|
|
520
520
|
var p = "";
|
|
521
|
-
t && t._owner && t._owner !== be.current && (p = " It was passed a child from " +
|
|
521
|
+
t && t._owner && t._owner !== be.current && (p = " It was passed a child from " + V(t._owner.type) + "."), G(t), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, p), G(null);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function Je(t, f) {
|
|
525
525
|
{
|
|
526
526
|
if (typeof t != "object")
|
|
527
527
|
return;
|
|
528
528
|
if (ye(t))
|
|
529
|
-
for (var
|
|
530
|
-
var p = t[
|
|
531
|
-
Ne(p) && qe(p,
|
|
529
|
+
for (var m = 0; m < t.length; m++) {
|
|
530
|
+
var p = t[m];
|
|
531
|
+
Ne(p) && qe(p, f);
|
|
532
532
|
}
|
|
533
533
|
else if (Ne(t))
|
|
534
534
|
t._store && (t._store.validated = !0);
|
|
535
535
|
else if (t) {
|
|
536
|
-
var
|
|
537
|
-
if (typeof
|
|
538
|
-
for (var T =
|
|
539
|
-
Ne(
|
|
536
|
+
var C = S(t);
|
|
537
|
+
if (typeof C == "function" && C !== t.entries)
|
|
538
|
+
for (var T = C.call(t), k; !(k = T.next()).done; )
|
|
539
|
+
Ne(k.value) && qe(k.value, f);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function _n(t) {
|
|
544
544
|
{
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
545
|
+
var f = t.type;
|
|
546
|
+
if (f == null || typeof f == "string")
|
|
547
547
|
return;
|
|
548
|
-
var
|
|
549
|
-
if (typeof
|
|
550
|
-
|
|
551
|
-
else if (typeof
|
|
548
|
+
var m;
|
|
549
|
+
if (typeof f == "function")
|
|
550
|
+
m = f.propTypes;
|
|
551
|
+
else if (typeof f == "object" && (f.$$typeof === i || // Note: Memo only checks outer props here.
|
|
552
552
|
// Inner props are checked in the reconciler.
|
|
553
|
-
|
|
554
|
-
|
|
553
|
+
f.$$typeof === x))
|
|
554
|
+
m = f.propTypes;
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
557
|
-
if (
|
|
558
|
-
var p =
|
|
559
|
-
|
|
560
|
-
} else if (
|
|
557
|
+
if (m) {
|
|
558
|
+
var p = V(f);
|
|
559
|
+
mn(m, t.props, "prop", p, t);
|
|
560
|
+
} else if (f.PropTypes !== void 0 && !ke) {
|
|
561
561
|
ke = !0;
|
|
562
|
-
var
|
|
563
|
-
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
562
|
+
var C = V(f);
|
|
563
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
|
|
564
564
|
}
|
|
565
|
-
typeof
|
|
565
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Sn(t) {
|
|
569
569
|
{
|
|
570
|
-
for (var
|
|
571
|
-
var p =
|
|
570
|
+
for (var f = Object.keys(t.props), m = 0; m < f.length; m++) {
|
|
571
|
+
var p = f[m];
|
|
572
572
|
if (p !== "children" && p !== "key") {
|
|
573
|
-
|
|
573
|
+
G(t), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), G(null);
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
t.ref !== null && (
|
|
577
|
+
t.ref !== null && (G(t), E("Invalid attribute `ref` supplied to `React.Fragment`."), G(null));
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
var
|
|
581
|
-
function
|
|
580
|
+
var He = {};
|
|
581
|
+
function Ge(t, f, m, p, C, T) {
|
|
582
582
|
{
|
|
583
|
-
var
|
|
584
|
-
if (!
|
|
585
|
-
var
|
|
586
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
|
587
|
-
var $ =
|
|
588
|
-
$ ?
|
|
583
|
+
var k = ie(t);
|
|
584
|
+
if (!k) {
|
|
585
|
+
var b = "";
|
|
586
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
587
|
+
var $ = Tn();
|
|
588
|
+
$ ? b += $ : b += Ke();
|
|
589
589
|
var O;
|
|
590
|
-
t === null ? O = "null" : ye(t) ? O = "array" : t !== void 0 && t.$$typeof === r ? (O = "<" + (
|
|
590
|
+
t === null ? O = "null" : ye(t) ? O = "array" : t !== void 0 && t.$$typeof === r ? (O = "<" + (V(t.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : O = typeof t, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, b);
|
|
591
591
|
}
|
|
592
|
-
var M =
|
|
592
|
+
var M = En(t, f, m, C, T);
|
|
593
593
|
if (M == null)
|
|
594
594
|
return M;
|
|
595
|
-
if (
|
|
596
|
-
var I =
|
|
595
|
+
if (k) {
|
|
596
|
+
var I = f.children;
|
|
597
597
|
if (I !== void 0)
|
|
598
598
|
if (p)
|
|
599
599
|
if (ye(I)) {
|
|
600
600
|
for (var Z = 0; Z < I.length; Z++)
|
|
601
|
-
|
|
601
|
+
Je(I[Z], t);
|
|
602
602
|
Object.freeze && Object.freeze(I);
|
|
603
603
|
} else
|
|
604
604
|
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
605
605
|
else
|
|
606
|
-
|
|
606
|
+
Je(I, t);
|
|
607
607
|
}
|
|
608
|
-
if (ne.call(
|
|
609
|
-
var
|
|
610
|
-
return
|
|
608
|
+
if (ne.call(f, "key")) {
|
|
609
|
+
var q = V(t), F = Object.keys(f).filter(function($n) {
|
|
610
|
+
return $n !== "key";
|
|
611
611
|
}), Ce = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
|
-
if (!
|
|
613
|
-
var
|
|
612
|
+
if (!He[q + Ce]) {
|
|
613
|
+
var An = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}";
|
|
614
614
|
E(`A props object containing a "key" prop is being spread into JSX:
|
|
615
615
|
let props = %s;
|
|
616
616
|
<%s {...props} />
|
|
617
617
|
React keys must be passed directly to JSX without using spread:
|
|
618
618
|
let props = %s;
|
|
619
|
-
<%s key={someKey} {...props} />`, Ce,
|
|
619
|
+
<%s key={someKey} {...props} />`, Ce, q, An, q), He[q + Ce] = !0;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
return t === a ?
|
|
622
|
+
return t === a ? Sn(M) : _n(M), M;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
625
|
+
function On(t, f, m) {
|
|
626
|
+
return Ge(t, f, m, !0);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
return
|
|
628
|
+
function Dn(t, f, m) {
|
|
629
|
+
return Ge(t, f, m, !1);
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
se.Fragment = a, se.jsx =
|
|
631
|
+
var Mn = Dn, Pn = On;
|
|
632
|
+
se.Fragment = a, se.jsx = Mn, se.jsxs = Pn;
|
|
633
633
|
}()), se;
|
|
634
634
|
}
|
|
635
|
-
process.env.NODE_ENV === "production" ?
|
|
636
|
-
var e =
|
|
637
|
-
const
|
|
635
|
+
process.env.NODE_ENV === "production" ? Re.exports = Fn() : Re.exports = In();
|
|
636
|
+
var e = Re.exports;
|
|
637
|
+
const Bn = (n) => le({ ...n, className: (n.className ?? "") + " outline-button" }), P = (n) => le({ ...n, className: (n.className ?? "") + " text-button" }), Yn = (n) => le({ ...n, className: (n.className ?? "") + " total-button" }), Wn = (n) => le({ ...n, className: (n.className ?? "") + " filled-button" }), le = (n) => {
|
|
638
638
|
const r = (s) => {
|
|
639
639
|
n.onClick && n.onClick(s);
|
|
640
640
|
let a = document.createElement("span");
|
|
641
641
|
a.classList.add("btn-overlay");
|
|
642
|
-
let
|
|
643
|
-
a.style.left =
|
|
642
|
+
let c = s.pageX - s.currentTarget.offsetLeft, o = s.pageY - s.currentTarget.offsetTop;
|
|
643
|
+
a.style.left = c + "px", a.style.top = o + "px", s.currentTarget.appendChild(a), setTimeout(() => {
|
|
644
644
|
a.remove();
|
|
645
645
|
}, 500);
|
|
646
646
|
};
|
|
647
647
|
return /* @__PURE__ */ e.jsx("button", { ...n, className: (n.className ?? "") + " btn", onClick: r, children: /* @__PURE__ */ e.jsx("span", { children: n.children }) });
|
|
648
|
-
},
|
|
648
|
+
}, Vn = ({ styleType: n = "base", ...r }) => n === "outline" ? Bn({ ...r }) : n === "text" ? P({ ...r }) : n === "filledTotal" ? Yn({ ...r }) : n === "filled" ? Wn({ ...r }) : le({ ...r }), Ln = ({ children: n, className: r, maxHeight: s, scroll: a, transparent: c }) => /* @__PURE__ */ e.jsx("ul", { style: { overflowY: s ? a ? "scroll" : "hidden" : void 0, maxHeight: s, backgroundColor: c ? "transparent" : void 0 }, className: `list-container ${r} ${a ? "scroll" : ""}`, children: n }), zn = ({ icon: n, control: r, text: s, header: a, value: c, onClick: o, hovered: u, className: l }) => {
|
|
649
649
|
const i = (h) => {
|
|
650
650
|
h.target.closest(".control-container") || o && o(h);
|
|
651
651
|
};
|
|
652
|
-
return /* @__PURE__ */ e.jsxs("li", { className: ` ${
|
|
653
|
-
n ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: n }) :
|
|
652
|
+
return /* @__PURE__ */ e.jsxs("li", { className: ` ${l} list-item-container ${u ? "hovered" : ""}`, onClick: i, children: [
|
|
653
|
+
n ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: n }) : c ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: c }) : null,
|
|
654
654
|
s ? /* @__PURE__ */ e.jsxs("div", { className: "text-container", children: [
|
|
655
655
|
/* @__PURE__ */ e.jsx("div", { className: "header", children: a }),
|
|
656
656
|
/* @__PURE__ */ e.jsx("div", { className: "text", children: s })
|
|
657
657
|
] }) : /* @__PURE__ */ e.jsx("div", { className: "text-container", children: /* @__PURE__ */ e.jsx("div", { className: "header", children: a }) }),
|
|
658
658
|
r ? /* @__PURE__ */ e.jsx("div", { className: "control-container", children: r }) : null
|
|
659
659
|
] });
|
|
660
|
-
}, ae = ({ transparent: n, icon: r, className: s, onClick: a, onContextMenu:
|
|
660
|
+
}, ae = ({ transparent: n, icon: r, className: s, onClick: a, onContextMenu: c, disabled: o, classNameContainer: u, style: l }) => {
|
|
661
661
|
const i = (h) => {
|
|
662
662
|
a && a(h);
|
|
663
|
-
let
|
|
664
|
-
|
|
665
|
-
let
|
|
666
|
-
|
|
667
|
-
|
|
663
|
+
let d = document.createElement("span");
|
|
664
|
+
d.classList.add("btn-overlay");
|
|
665
|
+
let x = h.pageX - h.currentTarget.offsetLeft, j = h.pageY - h.currentTarget.offsetTop;
|
|
666
|
+
d.style.left = x + "px", d.style.top = j + "px", h.currentTarget.appendChild(d), setTimeout(() => {
|
|
667
|
+
d.remove();
|
|
668
668
|
}, 500);
|
|
669
669
|
};
|
|
670
|
-
return /* @__PURE__ */ e.jsx("button", { style: { backgroundColor: n ? "transparent" : void 0, ...
|
|
671
|
-
},
|
|
672
|
-
const
|
|
673
|
-
if (h && h(
|
|
670
|
+
return /* @__PURE__ */ e.jsx("button", { style: { backgroundColor: n ? "transparent" : void 0, ...l }, className: `iconbutton ${s}`, onClick: i, onContextMenu: c, disabled: o, children: /* @__PURE__ */ e.jsx("div", { className: `${u} iconbutton-container`, children: r }) });
|
|
671
|
+
}, Rt = ({ className: n, action: r, imgSrc: s, alt: a, header: c, subhead: o, text: u, children: l, iconButtonCell: i, onClick: h }) => {
|
|
672
|
+
const d = (j) => !(j.target.className === "action-container" || j.target.closest(".action-container") || j.target.className === "icon-button-container" || j.target.closest(".icon-button-container")), x = (j) => {
|
|
673
|
+
if (h && h(j), !d(j))
|
|
674
674
|
return;
|
|
675
|
-
let
|
|
676
|
-
if (!
|
|
675
|
+
let y = j.currentTarget.closest(".card-container"), g = y == null ? void 0 : y.querySelector(".blick-container");
|
|
676
|
+
if (!g)
|
|
677
677
|
return;
|
|
678
678
|
let w = document.createElement("span");
|
|
679
679
|
w.classList.add("btn-overlay");
|
|
680
|
-
let S =
|
|
681
|
-
w.style.left = S + "px", w.style.top = D + "px",
|
|
680
|
+
let S = j.pageX - j.currentTarget.offsetLeft, D = j.pageY - j.currentTarget.offsetTop;
|
|
681
|
+
w.style.left = S + "px", w.style.top = D + "px", g.appendChild(w), setTimeout(() => {
|
|
682
682
|
w.remove();
|
|
683
683
|
}, 500);
|
|
684
684
|
};
|
|
685
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `card-container ${n}`, onClick:
|
|
685
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `card-container ${n}`, onClick: x, children: [
|
|
686
686
|
/* @__PURE__ */ e.jsx("div", { className: "blick-container" }),
|
|
687
687
|
s ? /* @__PURE__ */ e.jsx("div", { className: "card-img-container", children: /* @__PURE__ */ e.jsx("img", { src: s, alt: a }) }) : null,
|
|
688
688
|
/* @__PURE__ */ e.jsxs("div", { className: "card-content-container", children: [
|
|
689
689
|
/* @__PURE__ */ e.jsxs("div", { className: "card-Headline-container mb-1 font-bold", children: [
|
|
690
|
-
/* @__PURE__ */ e.jsx("div", { className: "headline", children: /* @__PURE__ */ e.jsx("h2", { className: "text-3xl", children:
|
|
690
|
+
/* @__PURE__ */ e.jsx("div", { className: "headline", children: /* @__PURE__ */ e.jsx("h2", { className: "text-3xl", children: c }) }),
|
|
691
691
|
i ? /* @__PURE__ */ e.jsx("div", { className: "icon-button-container", children: i }) : null
|
|
692
692
|
] }),
|
|
693
693
|
o ? /* @__PURE__ */ e.jsx("div", { className: "card-subhead-container mb-1", children: /* @__PURE__ */ e.jsx("div", { className: "subhead", children: /* @__PURE__ */ e.jsx("h3", { className: "text-xl", children: o }) }) }) : null,
|
|
694
694
|
u ? /* @__PURE__ */ e.jsx("div", { className: "card-text-container mb-1", children: /* @__PURE__ */ e.jsx("div", { className: "text", children: /* @__PURE__ */ e.jsx("p", { className: "text-sm", children: u }) }) }) : null,
|
|
695
|
-
|
|
695
|
+
l ? /* @__PURE__ */ e.jsx("div", { className: "card-child-container mb-2", children: l }) : null,
|
|
696
696
|
/* @__PURE__ */ e.jsx("div", { className: "action-container", children: r })
|
|
697
697
|
] })
|
|
698
698
|
] });
|
|
699
|
-
},
|
|
700
|
-
const [u,
|
|
701
|
-
w.button == 1 && (
|
|
702
|
-
},
|
|
703
|
-
w.button == 1 && (h({ x: w.clientX, y: w.clientY }),
|
|
704
|
-
},
|
|
705
|
-
u && (
|
|
699
|
+
}, Un = ({ children: n, className: r }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${r ?? ""}`, children: n }), _t = ({ children: n, className: r, id: s, height: a, width: c, pozMove: o }) => {
|
|
700
|
+
const [u, l] = N(!1), [i, h] = N(null), [d, x] = N({ x: 0, y: 0 }), j = (w) => {
|
|
701
|
+
w.button == 1 && (l(!1), h(null), document.body.style.cursor = "auto");
|
|
702
|
+
}, y = (w) => {
|
|
703
|
+
w.button == 1 && (h({ x: w.clientX, y: w.clientY }), l(!0), document.body.style.cursor = "move");
|
|
704
|
+
}, g = R((w) => {
|
|
705
|
+
u && (x((S) => {
|
|
706
706
|
if (!i)
|
|
707
707
|
return S;
|
|
708
708
|
const D = w.clientX - i.x, E = w.clientY - i.y;
|
|
709
|
-
let
|
|
710
|
-
return { x:
|
|
709
|
+
let Y = S.x + D, v = S.y + E;
|
|
710
|
+
return { x: Y, y: v };
|
|
711
711
|
}), h({ x: w.clientX, y: w.clientY }));
|
|
712
712
|
}, [u, i]);
|
|
713
713
|
return A(() => {
|
|
714
|
-
o &&
|
|
715
|
-
}, [o]), /* @__PURE__ */ e.jsx("div", { id: s, style: { height: a, width:
|
|
716
|
-
},
|
|
717
|
-
const [r, s] =
|
|
714
|
+
o && x({ ...o });
|
|
715
|
+
}, [o]), /* @__PURE__ */ e.jsx("div", { id: s, style: { height: a, width: c }, className: `big-container ${r}`, onMouseDown: y, onMouseUp: j, onMouseMove: g, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: d.x, top: d.y }, children: n }) });
|
|
716
|
+
}, Kn = (n) => {
|
|
717
|
+
const [r, s] = N(!1), a = R(() => {
|
|
718
718
|
s(!0), setTimeout(() => {
|
|
719
719
|
n.onHide(), s(!1);
|
|
720
720
|
}, 200);
|
|
@@ -728,9 +728,9 @@ const An = (n) => ce({ ...n, className: (n.className ?? "") + " outline-button"
|
|
|
728
728
|
] }),
|
|
729
729
|
/* @__PURE__ */ e.jsx("div", { className: "backplate bottom-sheets-backplate", style: { zIndex: 1101 }, onClick: a })
|
|
730
730
|
] });
|
|
731
|
-
},
|
|
731
|
+
}, St = ({ name: n, checked: r, onChange: s, readOnly: a, checkIcon: c }) => /* @__PURE__ */ e.jsxs("label", { className: "checkbox-container", children: [
|
|
732
732
|
/* @__PURE__ */ e.jsx("input", { className: "checkbox", name: n, type: "checkbox", checked: r, onChange: s, readOnly: a }),
|
|
733
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
733
|
+
/* @__PURE__ */ e.jsx("span", { children: c || /* @__PURE__ */ e.jsx("span", { className: "checkbox-ckeck-icon", children: "✓" }) })
|
|
734
734
|
] });
|
|
735
735
|
/**
|
|
736
736
|
* @license lucide-react v0.378.0 - ISC
|
|
@@ -738,14 +738,14 @@ const An = (n) => ce({ ...n, className: (n.className ?? "") + " outline-button"
|
|
|
738
738
|
* This source code is licensed under the ISC license.
|
|
739
739
|
* See the LICENSE file in the root directory of this source tree.
|
|
740
740
|
*/
|
|
741
|
-
const
|
|
741
|
+
const Xn = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), sn = (...n) => n.filter((r, s, a) => !!r && a.indexOf(r) === s).join(" ");
|
|
742
742
|
/**
|
|
743
743
|
* @license lucide-react v0.378.0 - ISC
|
|
744
744
|
*
|
|
745
745
|
* This source code is licensed under the ISC license.
|
|
746
746
|
* See the LICENSE file in the root directory of this source tree.
|
|
747
747
|
*/
|
|
748
|
-
var
|
|
748
|
+
var qn = {
|
|
749
749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
750
750
|
width: 24,
|
|
751
751
|
height: 24,
|
|
@@ -762,30 +762,30 @@ var Kn = {
|
|
|
762
762
|
* This source code is licensed under the ISC license.
|
|
763
763
|
* See the LICENSE file in the root directory of this source tree.
|
|
764
764
|
*/
|
|
765
|
-
const
|
|
765
|
+
const Jn = rn(
|
|
766
766
|
({
|
|
767
767
|
color: n = "currentColor",
|
|
768
768
|
size: r = 24,
|
|
769
769
|
strokeWidth: s = 2,
|
|
770
770
|
absoluteStrokeWidth: a,
|
|
771
|
-
className:
|
|
771
|
+
className: c = "",
|
|
772
772
|
children: o,
|
|
773
773
|
iconNode: u,
|
|
774
|
-
...
|
|
775
|
-
}, i) =>
|
|
774
|
+
...l
|
|
775
|
+
}, i) => Te(
|
|
776
776
|
"svg",
|
|
777
777
|
{
|
|
778
778
|
ref: i,
|
|
779
|
-
...
|
|
779
|
+
...qn,
|
|
780
780
|
width: r,
|
|
781
781
|
height: r,
|
|
782
782
|
stroke: n,
|
|
783
783
|
strokeWidth: a ? Number(s) * 24 / Number(r) : s,
|
|
784
|
-
className:
|
|
785
|
-
...
|
|
784
|
+
className: sn("lucide", c),
|
|
785
|
+
...l
|
|
786
786
|
},
|
|
787
787
|
[
|
|
788
|
-
...u.map(([h,
|
|
788
|
+
...u.map(([h, d]) => Te(h, d)),
|
|
789
789
|
...Array.isArray(o) ? o : [o]
|
|
790
790
|
]
|
|
791
791
|
)
|
|
@@ -796,13 +796,13 @@ const qn = nn(
|
|
|
796
796
|
* This source code is licensed under the ISC license.
|
|
797
797
|
* See the LICENSE file in the root directory of this source tree.
|
|
798
798
|
*/
|
|
799
|
-
const
|
|
800
|
-
const s =
|
|
801
|
-
({ className: a, ...
|
|
799
|
+
const B = (n, r) => {
|
|
800
|
+
const s = rn(
|
|
801
|
+
({ className: a, ...c }, o) => Te(Jn, {
|
|
802
802
|
ref: o,
|
|
803
803
|
iconNode: r,
|
|
804
|
-
className:
|
|
805
|
-
...
|
|
804
|
+
className: sn(`lucide-${Xn(n)}`, a),
|
|
805
|
+
...c
|
|
806
806
|
})
|
|
807
807
|
);
|
|
808
808
|
return s.displayName = `${n}`, s;
|
|
@@ -813,7 +813,7 @@ const Y = (n, r) => {
|
|
|
813
813
|
* This source code is licensed under the ISC license.
|
|
814
814
|
* See the LICENSE file in the root directory of this source tree.
|
|
815
815
|
*/
|
|
816
|
-
const
|
|
816
|
+
const Hn = B("AlignJustify", [
|
|
817
817
|
["line", { x1: "3", x2: "21", y1: "6", y2: "6", key: "4m8b97" }],
|
|
818
818
|
["line", { x1: "3", x2: "21", y1: "12", y2: "12", key: "10d38w" }],
|
|
819
819
|
["line", { x1: "3", x2: "21", y1: "18", y2: "18", key: "kwyyxn" }]
|
|
@@ -824,7 +824,7 @@ const Xn = Y("AlignJustify", [
|
|
|
824
824
|
* This source code is licensed under the ISC license.
|
|
825
825
|
* See the LICENSE file in the root directory of this source tree.
|
|
826
826
|
*/
|
|
827
|
-
const
|
|
827
|
+
const Gn = B("ArrowLeft", [
|
|
828
828
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
829
829
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
830
830
|
]);
|
|
@@ -834,14 +834,14 @@ const Un = Y("ArrowLeft", [
|
|
|
834
834
|
* This source code is licensed under the ISC license.
|
|
835
835
|
* See the LICENSE file in the root directory of this source tree.
|
|
836
836
|
*/
|
|
837
|
-
const
|
|
837
|
+
const ce = B("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
838
838
|
/**
|
|
839
839
|
* @license lucide-react v0.378.0 - ISC
|
|
840
840
|
*
|
|
841
841
|
* This source code is licensed under the ISC license.
|
|
842
842
|
* See the LICENSE file in the root directory of this source tree.
|
|
843
843
|
*/
|
|
844
|
-
const
|
|
844
|
+
const en = B("ChevronDown", [
|
|
845
845
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
846
846
|
]);
|
|
847
847
|
/**
|
|
@@ -850,7 +850,7 @@ const Ze = Y("ChevronDown", [
|
|
|
850
850
|
* This source code is licensed under the ISC license.
|
|
851
851
|
* See the LICENSE file in the root directory of this source tree.
|
|
852
852
|
*/
|
|
853
|
-
const
|
|
853
|
+
const Zn = B("CircleX", [
|
|
854
854
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
855
855
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
856
856
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -861,7 +861,7 @@ const Jn = Y("CircleX", [
|
|
|
861
861
|
* This source code is licensed under the ISC license.
|
|
862
862
|
* See the LICENSE file in the root directory of this source tree.
|
|
863
863
|
*/
|
|
864
|
-
const
|
|
864
|
+
const Qn = B("Clock3", [
|
|
865
865
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
866
866
|
["polyline", { points: "12 6 12 12 16.5 12", key: "1aq6pp" }]
|
|
867
867
|
]);
|
|
@@ -871,7 +871,7 @@ const Gn = Y("Clock3", [
|
|
|
871
871
|
* This source code is licensed under the ISC license.
|
|
872
872
|
* See the LICENSE file in the root directory of this source tree.
|
|
873
873
|
*/
|
|
874
|
-
const
|
|
874
|
+
const et = B("EllipsisVertical", [
|
|
875
875
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
876
876
|
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
877
877
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
@@ -882,7 +882,7 @@ const Hn = Y("EllipsisVertical", [
|
|
|
882
882
|
* This source code is licensed under the ISC license.
|
|
883
883
|
* See the LICENSE file in the root directory of this source tree.
|
|
884
884
|
*/
|
|
885
|
-
const
|
|
885
|
+
const nt = B("Keyboard", [
|
|
886
886
|
["path", { d: "M10 8h.01", key: "1r9ogq" }],
|
|
887
887
|
["path", { d: "M12 12h.01", key: "1mp3jc" }],
|
|
888
888
|
["path", { d: "M14 8h.01", key: "1primd" }],
|
|
@@ -899,7 +899,7 @@ const Zn = Y("Keyboard", [
|
|
|
899
899
|
* This source code is licensed under the ISC license.
|
|
900
900
|
* See the LICENSE file in the root directory of this source tree.
|
|
901
901
|
*/
|
|
902
|
-
const
|
|
902
|
+
const tt = B("Pen", [
|
|
903
903
|
["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }]
|
|
904
904
|
]);
|
|
905
905
|
/**
|
|
@@ -908,7 +908,7 @@ const Qn = Y("Pen", [
|
|
|
908
908
|
* This source code is licensed under the ISC license.
|
|
909
909
|
* See the LICENSE file in the root directory of this source tree.
|
|
910
910
|
*/
|
|
911
|
-
const
|
|
911
|
+
const rt = B("Search", [
|
|
912
912
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
913
913
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
914
914
|
]);
|
|
@@ -918,7 +918,7 @@ const et = Y("Search", [
|
|
|
918
918
|
* This source code is licensed under the ISC license.
|
|
919
919
|
* See the LICENSE file in the root directory of this source tree.
|
|
920
920
|
*/
|
|
921
|
-
const
|
|
921
|
+
const st = B("Trash2", [
|
|
922
922
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
923
923
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
924
924
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
@@ -931,73 +931,73 @@ const nt = Y("Trash2", [
|
|
|
931
931
|
* This source code is licensed under the ISC license.
|
|
932
932
|
* See the LICENSE file in the root directory of this source tree.
|
|
933
933
|
*/
|
|
934
|
-
const me =
|
|
934
|
+
const me = B("X", [
|
|
935
935
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
936
936
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
937
|
-
]),
|
|
938
|
-
const
|
|
939
|
-
|
|
937
|
+
]), at = ({ text: n, onDelete: r, big: s, onClick: a }) => {
|
|
938
|
+
const c = (u) => !(u.target.className === "alex-evo-ui-kit-chips-btn" || u.target.closest(".alex-evo-ui-kit-chips-btn")), o = (u) => {
|
|
939
|
+
c(u) && a && a(u);
|
|
940
940
|
};
|
|
941
941
|
return /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-chips chips ${s ? "big-chips" : ""} ${a ? "hovered" : ""}`, onClick: o, children: [
|
|
942
942
|
/* @__PURE__ */ e.jsx("p", { children: n }),
|
|
943
943
|
r ? /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-chips-btn chips-btn", onClick: r, children: /* @__PURE__ */ e.jsx(me, { size: 18 }) }) : null
|
|
944
944
|
] });
|
|
945
|
-
},
|
|
946
|
-
const
|
|
945
|
+
}, an = ({ styleContainer: n, type: r = "text", transparent: s, readOnly: a, password: c, border: o, onClear: u, icon: l, onChange: i, name: h, value: d, placeholder: x, className: j, validEmptyValue: y, onFocus: g, onBlur: w, error: S, max: D, min: E }) => {
|
|
946
|
+
const Y = z(null), [v, _] = N(!1), W = R((Q, H) => _(!!(S || Q && (!H || H === ""))), []);
|
|
947
947
|
A(() => {
|
|
948
|
-
W(
|
|
949
|
-
}, [
|
|
950
|
-
const
|
|
951
|
-
|
|
948
|
+
W(y, d);
|
|
949
|
+
}, [d, y, W]);
|
|
950
|
+
const U = () => {
|
|
951
|
+
Y.current && Y.current.focus();
|
|
952
952
|
};
|
|
953
|
-
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `text-field ${o ? "border" : ""} ${s ? "transparent" : ""} ${
|
|
954
|
-
|
|
955
|
-
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick:
|
|
953
|
+
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `text-field ${o ? "border" : ""} ${s ? "transparent" : ""} ${j}`, children: [
|
|
954
|
+
l ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: U, children: l }) : null,
|
|
955
|
+
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: U, children: [
|
|
956
956
|
/* @__PURE__ */ e.jsx(
|
|
957
957
|
"input",
|
|
958
958
|
{
|
|
959
|
-
ref:
|
|
959
|
+
ref: Y,
|
|
960
960
|
max: D,
|
|
961
961
|
min: E,
|
|
962
962
|
readOnly: a,
|
|
963
963
|
required: !0,
|
|
964
|
-
type:
|
|
965
|
-
className: `${
|
|
964
|
+
type: c ? "password" : r,
|
|
965
|
+
className: `${v ? "error" : ""}`,
|
|
966
966
|
name: h,
|
|
967
|
-
value:
|
|
967
|
+
value: d,
|
|
968
968
|
onChange: i,
|
|
969
|
-
onFocus:
|
|
969
|
+
onFocus: g,
|
|
970
970
|
onBlur: w
|
|
971
971
|
}
|
|
972
972
|
),
|
|
973
|
-
/* @__PURE__ */ e.jsx("label", { children:
|
|
973
|
+
/* @__PURE__ */ e.jsx("label", { children: x ? /* @__PURE__ */ e.jsx("span", { children: x }) : null }),
|
|
974
974
|
/* @__PURE__ */ e.jsx("span", { className: "text-field-line" })
|
|
975
975
|
] }),
|
|
976
|
-
u ? /* @__PURE__ */ e.jsx("div", { className: "clear-container", children: /* @__PURE__ */ e.jsx(
|
|
976
|
+
u ? /* @__PURE__ */ e.jsx("div", { className: "clear-container", children: /* @__PURE__ */ e.jsx(Zn, { onClick: u }) }) : null
|
|
977
977
|
] });
|
|
978
|
-
},
|
|
979
|
-
const
|
|
978
|
+
}, Ot = ({ styleContainer: n, transparent: r, readOnly: s, border: a, icon: c, onChange: o, name: u, value: l, placeholder: i, className: h, validEmptyValue: d, onFocus: x, onBlur: j, error: y }) => {
|
|
979
|
+
const g = z(null), [w, S] = N(!1), D = R((Y, v) => S(!!(y || Y && (!v || v === ""))), []);
|
|
980
980
|
A(() => {
|
|
981
|
-
D(
|
|
982
|
-
}, [
|
|
981
|
+
D(d, l);
|
|
982
|
+
}, [l, d, D]);
|
|
983
983
|
const E = () => {
|
|
984
|
-
|
|
984
|
+
g.current && g.current.focus();
|
|
985
985
|
};
|
|
986
986
|
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `text-area ${w ? "error" : ""} ${a ? "border" : ""} ${r ? "transparent" : ""} ${h}`, children: [
|
|
987
|
-
|
|
987
|
+
c ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: E, children: c }) : null,
|
|
988
988
|
/* @__PURE__ */ e.jsx("div", { className: "textarea-container", onClick: E, children: /* @__PURE__ */ e.jsx(
|
|
989
989
|
"textarea",
|
|
990
990
|
{
|
|
991
|
-
ref:
|
|
991
|
+
ref: g,
|
|
992
992
|
readOnly: s,
|
|
993
993
|
required: !0,
|
|
994
994
|
placeholder: i,
|
|
995
995
|
className: `${w ? "error" : ""}`,
|
|
996
996
|
name: u,
|
|
997
|
-
value:
|
|
997
|
+
value: l,
|
|
998
998
|
onChange: o,
|
|
999
|
-
onFocus:
|
|
1000
|
-
onBlur:
|
|
999
|
+
onFocus: x,
|
|
1000
|
+
onBlur: j
|
|
1001
1001
|
}
|
|
1002
1002
|
) })
|
|
1003
1003
|
] });
|
|
@@ -1005,71 +1005,71 @@ const me = Y("X", [
|
|
|
1005
1005
|
/* @__PURE__ */ e.jsx("div", { className: `divider ${r ? "short" : ""}` }),
|
|
1006
1006
|
s,
|
|
1007
1007
|
/* @__PURE__ */ e.jsx("div", { className: `divider ${r ? "short" : ""}` })
|
|
1008
|
-
] }) : /* @__PURE__ */ e.jsx("div", { style: n, className: `divider ${r ? "short" : ""}` }),
|
|
1008
|
+
] }) : /* @__PURE__ */ e.jsx("div", { style: n, className: `divider ${r ? "short" : ""}` }), ct = ({ name: n, checked: r }) => /* @__PURE__ */ e.jsxs("label", { className: "radio-button-container", children: [
|
|
1009
1009
|
/* @__PURE__ */ e.jsx("input", { className: "radio-button", name: n, type: "radio", checked: r, readOnly: !0 }),
|
|
1010
1010
|
/* @__PURE__ */ e.jsx("span", {})
|
|
1011
|
-
] }),
|
|
1012
|
-
/* @__PURE__ */ e.jsx("input", { className: "radio-button", name: n, type: "radio", checked: r === s || o, value: s, onChange: a, readOnly:
|
|
1011
|
+
] }), Dt = ({ name: n, currentValue: r, value: s, onChange: a, readOnly: c, checked: o }) => /* @__PURE__ */ e.jsxs("label", { className: "radio-button-container", children: [
|
|
1012
|
+
/* @__PURE__ */ e.jsx("input", { className: "radio-button", name: n, type: "radio", checked: r === s || o, value: s, onChange: a, readOnly: c }),
|
|
1013
1013
|
/* @__PURE__ */ e.jsx("span", {})
|
|
1014
|
-
] }),
|
|
1014
|
+
] }), Mt = ({ style: n, icon: r, className: s, onClick: a, onContextMenu: c, children: o }) => /* @__PURE__ */ e.jsxs("button", { style: n, className: `${s} extendedFAB`, onClick: a, onContextMenu: c, children: [
|
|
1015
1015
|
r,
|
|
1016
1016
|
o ? /* @__PURE__ */ e.jsx("span", { children: o }) : null
|
|
1017
|
-
] }),
|
|
1017
|
+
] }), Pt = ({ children: n, header: r }) => /* @__PURE__ */ e.jsxs("div", { className: "field-container-ui", children: [
|
|
1018
1018
|
/* @__PURE__ */ e.jsx("h4", { children: r }),
|
|
1019
1019
|
/* @__PURE__ */ e.jsx("div", { className: "field-container-content", children: n })
|
|
1020
|
-
] }),
|
|
1021
|
-
const [
|
|
1020
|
+
] }), lt = (n) => n === "" ? [] : n.split(",").map((r) => r.trim()), nn = (n) => n.join(", "), At = ({ minWidth: n, value: r, onChange: s, border: a }) => {
|
|
1021
|
+
const [c, o] = N([]), [u, l] = N("");
|
|
1022
1022
|
A(() => {
|
|
1023
|
-
console.log("p0"), o(
|
|
1023
|
+
console.log("p0"), o(lt(r));
|
|
1024
1024
|
}, [r]), A(() => {
|
|
1025
|
-
console.log(
|
|
1026
|
-
}, [
|
|
1027
|
-
const i = (
|
|
1028
|
-
|
|
1025
|
+
console.log(c);
|
|
1026
|
+
}, [c]);
|
|
1027
|
+
const i = (x) => {
|
|
1028
|
+
l(x.target.value);
|
|
1029
1029
|
}, h = R(() => {
|
|
1030
|
-
if (u === "" ||
|
|
1030
|
+
if (u === "" || c.includes(u))
|
|
1031
1031
|
return;
|
|
1032
|
-
const
|
|
1033
|
-
o(
|
|
1034
|
-
}, [
|
|
1035
|
-
const
|
|
1036
|
-
o(
|
|
1032
|
+
const x = [...c, u.trim()];
|
|
1033
|
+
o(x), s && s(nn(x)), l("");
|
|
1034
|
+
}, [c, u]), d = (x) => {
|
|
1035
|
+
const j = c.filter((y, g) => g !== x);
|
|
1036
|
+
o(j), s && s(nn(j));
|
|
1037
1037
|
};
|
|
1038
1038
|
return /* @__PURE__ */ e.jsxs("div", { className: "more-text", style: { minWidth: n }, children: [
|
|
1039
1039
|
/* @__PURE__ */ e.jsxs("div", { className: "add value", children: [
|
|
1040
|
-
/* @__PURE__ */ e.jsx(
|
|
1041
|
-
/* @__PURE__ */ e.jsx(
|
|
1040
|
+
/* @__PURE__ */ e.jsx(an, { onChange: i, value: u, border: a }),
|
|
1041
|
+
/* @__PURE__ */ e.jsx(Un, { children: /* @__PURE__ */ e.jsx(Vn, { onClick: h, children: "add" }) })
|
|
1042
1042
|
] }),
|
|
1043
|
-
/* @__PURE__ */ e.jsx("div", { className: "chips-container", children:
|
|
1043
|
+
/* @__PURE__ */ e.jsx("div", { className: "chips-container", children: c.map((x, j) => /* @__PURE__ */ e.jsx(at, { text: x, onDelete: () => d(j) }, j)) })
|
|
1044
1044
|
] });
|
|
1045
|
-
},
|
|
1046
|
-
const o =
|
|
1045
|
+
}, $t = ({ style: n, text: r, className: s, onClick: a, onContextMenu: c }) => {
|
|
1046
|
+
const o = z(null), u = R(() => {
|
|
1047
1047
|
if (!o.current)
|
|
1048
1048
|
return;
|
|
1049
|
-
let
|
|
1050
|
-
|
|
1049
|
+
let l = o.current.getElementsByTagName("p");
|
|
1050
|
+
l[0] && o.current.clientWidth <= l[0].clientWidth ? (l[0].className = "runing", l[0].innerHTML = `| ${r} | ${r}`) : l[0].className = "";
|
|
1051
1051
|
}, [r]);
|
|
1052
1052
|
return A(() => {
|
|
1053
1053
|
u();
|
|
1054
|
-
}, [u]), /* @__PURE__ */ e.jsx("div", { style: n, ref: o, onClick: a, onContextMenu:
|
|
1055
|
-
},
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1058
|
-
},
|
|
1059
|
-
|
|
1060
|
-
},
|
|
1061
|
-
|
|
1062
|
-
},
|
|
1063
|
-
u(
|
|
1064
|
-
},
|
|
1065
|
-
|
|
1054
|
+
}, [u]), /* @__PURE__ */ e.jsx("div", { style: n, ref: o, onClick: a, onContextMenu: c, className: `runing-text ${s}`, children: /* @__PURE__ */ e.jsx("p", { children: r }) });
|
|
1055
|
+
}, Ft = ({ className: n, children: r, height: s }) => /* @__PURE__ */ e.jsx("div", { className: `scroll-container ${n}`, style: { height: s }, children: r }), It = ({ onMenu: n, onSearch: r, placeholder: s, autoChenge: a }) => {
|
|
1056
|
+
const c = z(null), [o, u] = N(""), [l, i] = N(!1), h = () => {
|
|
1057
|
+
c.current && (c.current.focus(), i(!0));
|
|
1058
|
+
}, d = () => {
|
|
1059
|
+
c.current && (c.current.focus(), c.current.value = ""), u(""), i(!0), a && r("");
|
|
1060
|
+
}, x = () => {
|
|
1061
|
+
d(), c.current && (c.current.blur(), i(!1));
|
|
1062
|
+
}, j = (g) => {
|
|
1063
|
+
u(g.target.value), a && r(g.target.value);
|
|
1064
|
+
}, y = (g) => {
|
|
1065
|
+
g.code === "Enter" && r(o);
|
|
1066
1066
|
};
|
|
1067
1067
|
return /* @__PURE__ */ e.jsx("div", { className: "search-container", children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
|
|
1068
|
-
|
|
1069
|
-
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref:
|
|
1070
|
-
|
|
1068
|
+
l ? /* @__PURE__ */ e.jsx("span", { onClick: x, children: /* @__PURE__ */ e.jsx(Gn, { size: 24 }) }) : n ? /* @__PURE__ */ e.jsx("span", { onClick: n, children: /* @__PURE__ */ e.jsx(Hn, { size: 24 }) }) : null,
|
|
1069
|
+
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: c, onChange: j, onKeyDown: y, value: o, onFocus: () => i(!0) }),
|
|
1070
|
+
l ? /* @__PURE__ */ e.jsx("span", { onClick: d, children: /* @__PURE__ */ e.jsx(me, { size: 24 }) }) : /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(rt, { size: 24 }) })
|
|
1071
1071
|
] }) });
|
|
1072
|
-
},
|
|
1072
|
+
}, Bt = ({ visible: n, text: r, option: s }) => {
|
|
1073
1073
|
const a = () => {
|
|
1074
1074
|
s != null && s.onHide && s.onHide();
|
|
1075
1075
|
};
|
|
@@ -1080,9 +1080,72 @@ const me = Y("X", [
|
|
|
1080
1080
|
] }),
|
|
1081
1081
|
s != null && s.closeButton ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-close", children: /* @__PURE__ */ e.jsx("span", { onClick: a, children: /* @__PURE__ */ e.jsx(me, {}) }) }) : null
|
|
1082
1082
|
] }) : null;
|
|
1083
|
-
},
|
|
1083
|
+
}, Yt = ({ name: n, onChange: r, checked: s, className: a }) => /* @__PURE__ */ e.jsx("div", { className: `swich-container ${a}`, children: /* @__PURE__ */ e.jsx("input", { type: "checkbox", name: n, onChange: r, checked: s }) }), it = (n) => n === void 0 ? [] : Array.isArray(n) ? n : [n], Wt = ({ multiple: n, value: r, items: s, className: a, onClick: c, onContextMenu: o, onChange: u }) => {
|
|
1084
|
+
const [l, i] = N(it(r)), h = (d) => {
|
|
1085
|
+
c && c(d);
|
|
1086
|
+
const x = d.currentTarget;
|
|
1087
|
+
if (!n) {
|
|
1088
|
+
if (!x.dataset.el)
|
|
1089
|
+
return;
|
|
1090
|
+
i([x.dataset.el]), u && u([x.dataset.el], d);
|
|
1091
|
+
return;
|
|
1092
|
+
}
|
|
1093
|
+
const j = l.filter((g) => g === x.dataset.el);
|
|
1094
|
+
let y = l.slice();
|
|
1095
|
+
j.length > 0 && x.dataset.el ? y = y.filter((g) => g !== x.dataset.el) : x.dataset.el && y.push(x.dataset.el), i(y), u && u(y, d);
|
|
1096
|
+
};
|
|
1097
|
+
return /* @__PURE__ */ e.jsx("div", { className: `sigmentedbutton-container ${a ?? ""}`, children: s.map((d, x) => /* @__PURE__ */ e.jsx("div", { className: "sigmentedbutton-item-container", children: /* @__PURE__ */ e.jsxs("button", { "data-el": d, onContextMenu: o, onClick: h, className: `sigmentedbutton-item-button ${l.includes(d) ? "active" : ""}`, children: [
|
|
1098
|
+
l.includes(d) ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: /* @__PURE__ */ e.jsx(ce, {}) }) : null,
|
|
1099
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-container", children: d })
|
|
1100
|
+
] }, x) }, x)) });
|
|
1101
|
+
}, cn = (n) => n ? {
|
|
1102
|
+
height: Number(window.getComputedStyle(n).getPropertyValue("height").replace("px", "")),
|
|
1103
|
+
width: Number(window.getComputedStyle(n).getPropertyValue("width").replace("px", "")),
|
|
1104
|
+
left: Number(n.getBoundingClientRect().left),
|
|
1105
|
+
top: Number(n.getBoundingClientRect().top)
|
|
1106
|
+
} : void 0, ln = (n, r, s, a) => {
|
|
1107
|
+
let c = { x: n, y: r };
|
|
1108
|
+
if (!s)
|
|
1109
|
+
return c;
|
|
1110
|
+
let o = Number(window.getComputedStyle(s).getPropertyValue("height").replace("px", "")), u = Number(window.getComputedStyle(s).getPropertyValue("width").replace("px", "")), l = r + o - document.documentElement.scrollHeight, i = n + u - document.documentElement.clientWidth;
|
|
1111
|
+
return l > 0 && (c.y = c.y - l - ((a == null ? void 0 : a.marginBottom) ?? 0)), i > 0 && (c.x = c.x - i - ((a == null ? void 0 : a.marginRight) ?? 0)), c;
|
|
1112
|
+
};
|
|
1113
|
+
function ot(n, r, s, a, c) {
|
|
1114
|
+
return a + (c - a) * ((n - r) / (s - r));
|
|
1115
|
+
}
|
|
1116
|
+
const we = 0, Ee = 100, Vt = (n) => {
|
|
1117
|
+
const [r, s] = N(0), [a, c] = N(!1), o = z(null), u = z(null);
|
|
1118
|
+
A(() => {
|
|
1119
|
+
s(n.value);
|
|
1120
|
+
}, [n.value]);
|
|
1121
|
+
const l = (x) => {
|
|
1122
|
+
s(Number(x.target.value)), n.onChange(x);
|
|
1123
|
+
}, i = (x, j, y) => {
|
|
1124
|
+
if (o.current && u.current) {
|
|
1125
|
+
let g = cn(u.current);
|
|
1126
|
+
if (g)
|
|
1127
|
+
return ot(x, j, y, 0, y - j) * (g.width - 20) / (y - j);
|
|
1128
|
+
}
|
|
1129
|
+
return 0;
|
|
1130
|
+
}, h = R((x) => {
|
|
1131
|
+
c(!0), n.onFocus && n.onFocus(x);
|
|
1132
|
+
}, [n.onFocus]), d = R((x) => {
|
|
1133
|
+
c(!1), n.onBlur && n.onBlur(x);
|
|
1134
|
+
}, [n.onBlur]);
|
|
1135
|
+
return /* @__PURE__ */ e.jsx("div", { className: "range", children: /* @__PURE__ */ e.jsxs("div", { className: "field", children: [
|
|
1136
|
+
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value left", children: n.min ?? we }) : null,
|
|
1137
|
+
/* @__PURE__ */ e.jsxs("div", { className: "field-range-container", children: [
|
|
1138
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-value", ref: o, style: { width: i(r, n.min ?? we, n.max ?? Ee) }, children: /* @__PURE__ */ e.jsxs("div", { className: "slider-tooltip", style: { display: a ? "block" : "none" }, children: [
|
|
1139
|
+
/* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-container" }),
|
|
1140
|
+
/* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-value", children: r })
|
|
1141
|
+
] }) }),
|
|
1142
|
+
/* @__PURE__ */ e.jsx("input", { onMouseUp: n.onMouseUp, ref: u, step: n.step, type: "range", min: n.min ?? we, max: n.max ?? Ee, onChange: l, value: r, onFocus: h, onBlur: d })
|
|
1143
|
+
] }),
|
|
1144
|
+
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: n.max ?? Ee }) : null
|
|
1145
|
+
] }) });
|
|
1146
|
+
}, J = ({ className: n, children: r, header: s, action: a, onHide: c, style: o }) => {
|
|
1084
1147
|
function u() {
|
|
1085
|
-
|
|
1148
|
+
c && c();
|
|
1086
1149
|
}
|
|
1087
1150
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1088
1151
|
/* @__PURE__ */ e.jsx("div", { onClick: u, style: { zIndex: "999" }, className: "backplate" }),
|
|
@@ -1092,12 +1155,12 @@ const me = Y("X", [
|
|
|
1092
1155
|
a ? /* @__PURE__ */ e.jsx("div", { className: "dialog-action", children: a }) : null
|
|
1093
1156
|
] })
|
|
1094
1157
|
] });
|
|
1095
|
-
},
|
|
1158
|
+
}, ut = ({ onHide: n, onSave: r }) => /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1096
1159
|
/* @__PURE__ */ e.jsx(P, { onClick: n, children: "cancel" }),
|
|
1097
1160
|
r ? /* @__PURE__ */ e.jsx(P, { onClick: r, children: "save" }) : null
|
|
1098
|
-
] }),
|
|
1099
|
-
const [u,
|
|
1100
|
-
window.innerWidth < 720 ?
|
|
1161
|
+
] }), Lt = ({ style: n, className: r, header: s, children: a, onSave: c, onHide: o }) => {
|
|
1162
|
+
const [u, l] = N(!1), i = R(() => {
|
|
1163
|
+
window.innerWidth < 720 ? l(!0) : l(!1);
|
|
1101
1164
|
}, [window.innerWidth]);
|
|
1102
1165
|
A(() => {
|
|
1103
1166
|
i();
|
|
@@ -1106,67 +1169,67 @@ const me = Y("X", [
|
|
|
1106
1169
|
}), [i]);
|
|
1107
1170
|
const h = () => {
|
|
1108
1171
|
o && o();
|
|
1109
|
-
},
|
|
1110
|
-
|
|
1172
|
+
}, d = () => {
|
|
1173
|
+
c && c();
|
|
1111
1174
|
};
|
|
1112
1175
|
return u ? /* @__PURE__ */ e.jsxs("div", { style: n, className: `full-screen-dialog-container ${r}`, children: [
|
|
1113
1176
|
/* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog-header", children: [
|
|
1114
1177
|
/* @__PURE__ */ e.jsx("div", { className: "dialog-icon-container", children: /* @__PURE__ */ e.jsx(ae, { transparent: !0, onClick: h, icon: /* @__PURE__ */ e.jsx(me, {}) }) }),
|
|
1115
1178
|
/* @__PURE__ */ e.jsx("div", { className: "header", children: s }),
|
|
1116
|
-
/* @__PURE__ */ e.jsx("div", { className: "save-container", children:
|
|
1179
|
+
/* @__PURE__ */ e.jsx("div", { className: "save-container", children: c ? /* @__PURE__ */ e.jsx(P, { onClick: d, children: "save" }) : null })
|
|
1117
1180
|
] }),
|
|
1118
1181
|
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog-content", style: { overflowY: "auto" }, children: a })
|
|
1119
|
-
] }) : /* @__PURE__ */ e.jsx(
|
|
1120
|
-
},
|
|
1121
|
-
const
|
|
1122
|
-
|
|
1182
|
+
] }) : /* @__PURE__ */ e.jsx(J, { style: n, header: s, className: `full-screen-dialog-base-format ${r}`, onHide: h, children: a, action: /* @__PURE__ */ e.jsx(ut, { onHide: h, onSave: c ? d : void 0 }) });
|
|
1183
|
+
}, zt = ({ styleContainer: n, text: r, header: s, actionText: a, onSuccess: c, onHide: o, onCancel: u }) => {
|
|
1184
|
+
const l = R(() => {
|
|
1185
|
+
c && c(), o && o();
|
|
1123
1186
|
}, []), i = R(() => {
|
|
1124
1187
|
u && u(), o && o();
|
|
1125
1188
|
}, []);
|
|
1126
|
-
return /* @__PURE__ */ e.jsx(
|
|
1189
|
+
return /* @__PURE__ */ e.jsx(J, { style: n, header: s, action: /* @__PURE__ */ e.jsx(dt, { onHide: i, actionText: a, onSuccess: l }), children: /* @__PURE__ */ e.jsx("p", { children: r }) });
|
|
1127
1190
|
};
|
|
1128
|
-
function
|
|
1191
|
+
function dt({ actionText: n, onSuccess: r, onHide: s }) {
|
|
1129
1192
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1130
1193
|
/* @__PURE__ */ e.jsx(P, { onClick: s, children: "cancel" }),
|
|
1131
1194
|
/* @__PURE__ */ e.jsx(P, { onClick: r, children: n ?? "OK" })
|
|
1132
1195
|
] });
|
|
1133
1196
|
}
|
|
1134
|
-
function
|
|
1135
|
-
const [u,
|
|
1136
|
-
n && u && n(u),
|
|
1137
|
-
}, [u]), h = R((
|
|
1138
|
-
|
|
1197
|
+
function Ut({ onSuccess: n, items: r, header: s, onHide: a, noHide: c = !1, name: o = "dailog_name" }) {
|
|
1198
|
+
const [u, l] = N(void 0), i = R(() => {
|
|
1199
|
+
n && u && n(u), l(void 0), !c && a && a();
|
|
1200
|
+
}, [u]), h = R((d) => {
|
|
1201
|
+
l(d);
|
|
1139
1202
|
}, []);
|
|
1140
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1203
|
+
return /* @__PURE__ */ e.jsxs(J, { header: s, action: /* @__PURE__ */ e.jsx(ft, { onHide: a, onSuccess: i, disabled: u === void 0 }), children: [
|
|
1141
1204
|
/* @__PURE__ */ e.jsx(he, { style: { padding: "0px" } }),
|
|
1142
|
-
/* @__PURE__ */ e.jsx(
|
|
1205
|
+
/* @__PURE__ */ e.jsx(Ln, { className: "transparent", scroll: !0, maxHeight: "200px", children: r.map((d, x) => /* @__PURE__ */ e.jsx("label", { children: /* @__PURE__ */ e.jsx(zn, { hovered: !0, header: d.title, onClick: () => h(d.data), control: /* @__PURE__ */ e.jsx(ct, { name: o, checked: d.data === u }) }) }, x)) }),
|
|
1143
1206
|
/* @__PURE__ */ e.jsx(he, { style: { padding: "0px" } })
|
|
1144
1207
|
] });
|
|
1145
1208
|
}
|
|
1146
|
-
function
|
|
1209
|
+
function ft({ onSuccess: n, onHide: r, disabled: s }) {
|
|
1147
1210
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1148
1211
|
/* @__PURE__ */ e.jsx(P, { onClick: r, children: "cancel" }),
|
|
1149
1212
|
/* @__PURE__ */ e.jsx(P, { onClick: n, disabled: s, children: "OK" })
|
|
1150
1213
|
] });
|
|
1151
1214
|
}
|
|
1152
|
-
const
|
|
1153
|
-
const [h,
|
|
1154
|
-
a && a(h),
|
|
1155
|
-
}, [h]),
|
|
1156
|
-
u === "number" && (Number(
|
|
1215
|
+
const Kt = ({ styleContainer: n, text: r, header: s, onSuccess: a, onHide: c, placeholder: o, type: u = "text", min: l = 0, max: i = 100 }) => {
|
|
1216
|
+
const [h, d] = N(""), x = R(() => {
|
|
1217
|
+
a && a(h), c && c();
|
|
1218
|
+
}, [h]), j = (y) => {
|
|
1219
|
+
u === "number" && (Number(y) < l && (y = String(l)), Number(y) > i && (y = String(i))), d(y);
|
|
1157
1220
|
};
|
|
1158
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1221
|
+
return /* @__PURE__ */ e.jsxs(J, { style: n, header: s, action: /* @__PURE__ */ e.jsx(ht, { onHide: c, onSuccess: x }), children: [
|
|
1159
1222
|
/* @__PURE__ */ e.jsx("p", { children: r }),
|
|
1160
|
-
/* @__PURE__ */ e.jsx("div", { className: "dialog-input-container", children: /* @__PURE__ */ e.jsx(
|
|
1223
|
+
/* @__PURE__ */ e.jsx("div", { className: "dialog-input-container", children: /* @__PURE__ */ e.jsx(an, { max: i, min: l, type: u, border: !0, placeholder: o, value: h, onChange: (y) => j(y.target.value) }) })
|
|
1161
1224
|
] });
|
|
1162
1225
|
};
|
|
1163
|
-
function
|
|
1226
|
+
function ht({ onSuccess: n, onHide: r }) {
|
|
1164
1227
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1165
1228
|
/* @__PURE__ */ e.jsx(P, { onClick: r, children: "cancel" }),
|
|
1166
1229
|
/* @__PURE__ */ e.jsx(P, { onClick: n, children: "OK" })
|
|
1167
1230
|
] });
|
|
1168
1231
|
}
|
|
1169
|
-
const
|
|
1232
|
+
const xt = 2050, tn = 1900, L = [
|
|
1170
1233
|
"January",
|
|
1171
1234
|
"February",
|
|
1172
1235
|
"March",
|
|
@@ -1179,58 +1242,58 @@ const ot = 2050, en = 1900, V = [
|
|
|
1179
1242
|
"October",
|
|
1180
1243
|
"November",
|
|
1181
1244
|
"December"
|
|
1182
|
-
],
|
|
1183
|
-
const [s] =
|
|
1245
|
+
], mt = () => Array(xt - tn).fill(0).map((n, r) => tn + r), Xt = ({ onChange: n, onHide: r }) => {
|
|
1246
|
+
const [s] = N(L[(/* @__PURE__ */ new Date()).getMonth()]), [a] = N((/* @__PURE__ */ new Date()).getFullYear()), [c] = N((/* @__PURE__ */ new Date()).getDate()), [o, u] = N(L[(/* @__PURE__ */ new Date()).getMonth()]), [l, i] = N((/* @__PURE__ */ new Date()).getFullYear()), [h, d] = N({
|
|
1184
1247
|
day: (/* @__PURE__ */ new Date()).getDate(),
|
|
1185
1248
|
type: "NOW_MONTH"
|
|
1186
1249
|
/* NOW_MONTH */
|
|
1187
|
-
}), [
|
|
1250
|
+
}), [x, j] = N(
|
|
1188
1251
|
"DAYS"
|
|
1189
1252
|
/* DAYS */
|
|
1190
|
-
),
|
|
1191
|
-
let W = Array(
|
|
1192
|
-
return W = Array(
|
|
1193
|
-
}, S = (
|
|
1194
|
-
|
|
1253
|
+
), y = (v, _) => new Date(v, _ + 1, 0).getDate(), g = (v, _, W) => new Date(v, _, W).getDay(), w = (v, _) => {
|
|
1254
|
+
let W = Array(y(v, _)).fill(0).map((ie, K) => ({ type: "NOW_MONTH", day: K + 1 })), U = g(v, _, y(v, _)), Q = Array(7 - U).fill(0).map((ie, K) => ({ type: "NEXT_MONTH", day: K + 1 }));
|
|
1255
|
+
return W = Array(g(v, _, 0)).fill(0).map((ie, K) => ({ type: "PREV_MONTH", day: y(_ ? v : v - 1, _ ? _ - 1 : 11) - K })).reverse().concat(W).concat(Q), W;
|
|
1256
|
+
}, S = (v) => {
|
|
1257
|
+
j(
|
|
1195
1258
|
"DAYS"
|
|
1196
1259
|
/* DAYS */
|
|
1197
|
-
), i(
|
|
1198
|
-
}, D = (
|
|
1199
|
-
|
|
1260
|
+
), i(v);
|
|
1261
|
+
}, D = (v) => {
|
|
1262
|
+
j(
|
|
1200
1263
|
"DAYS"
|
|
1201
1264
|
/* DAYS */
|
|
1202
|
-
), u(
|
|
1203
|
-
}, E = (
|
|
1204
|
-
|
|
1205
|
-
},
|
|
1206
|
-
let
|
|
1207
|
-
|
|
1208
|
-
}, [o,
|
|
1209
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1265
|
+
), u(v);
|
|
1266
|
+
}, E = (v) => {
|
|
1267
|
+
d(v);
|
|
1268
|
+
}, Y = R(() => {
|
|
1269
|
+
let v = /* @__PURE__ */ new Date();
|
|
1270
|
+
v.setFullYear(l), h.type === "NEXT_MONTH" ? o === L[11] ? (v.setMonth(0), v.setFullYear(l + 1)) : v.setMonth(L.indexOf(o) + 1) : h.type === "PREV_MONTH" ? o === L[0] ? (v.setMonth(11), v.setFullYear(l - 1)) : v.setMonth(L.indexOf(o) - 1) : v.setMonth(L.indexOf(o)), v.setDate(h.day), n && n(v.getFullYear(), v.getMonth(), v.getDate()), r && r();
|
|
1271
|
+
}, [o, l, n, r, h]);
|
|
1272
|
+
return /* @__PURE__ */ e.jsxs(J, { className: "calendar-body-container", style: { maxWidth: "328px" }, children: [
|
|
1210
1273
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-select-container", children: [
|
|
1211
|
-
/* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className:
|
|
1274
|
+
/* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className: x === "MONTHS" ? "active" : "", onClick: () => j(
|
|
1212
1275
|
"MONTHS"
|
|
1213
1276
|
/* MONTHS */
|
|
1214
1277
|
), children: [
|
|
1215
1278
|
o,
|
|
1216
1279
|
" ",
|
|
1217
|
-
/* @__PURE__ */ e.jsx(
|
|
1280
|
+
/* @__PURE__ */ e.jsx(en, {})
|
|
1218
1281
|
] }) }),
|
|
1219
|
-
/* @__PURE__ */ e.jsx("div", { className: "years", children: /* @__PURE__ */ e.jsxs("span", { className:
|
|
1282
|
+
/* @__PURE__ */ e.jsx("div", { className: "years", children: /* @__PURE__ */ e.jsxs("span", { className: x === "YEARS" ? "active" : "", onClick: () => j(
|
|
1220
1283
|
"YEARS"
|
|
1221
1284
|
/* YEARS */
|
|
1222
1285
|
), children: [
|
|
1223
|
-
|
|
1286
|
+
l,
|
|
1224
1287
|
" ",
|
|
1225
|
-
/* @__PURE__ */ e.jsx(
|
|
1288
|
+
/* @__PURE__ */ e.jsx(en, {})
|
|
1226
1289
|
] }) })
|
|
1227
1290
|
] }),
|
|
1228
|
-
|
|
1229
|
-
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: o ===
|
|
1230
|
-
/* @__PURE__ */ e.jsx("div", { className: "content", children:
|
|
1231
|
-
] }, _)) }) :
|
|
1232
|
-
/* @__PURE__ */ e.jsx("div", { className: "status-container", children:
|
|
1233
|
-
/* @__PURE__ */ e.jsx("div", { className: "content", children:
|
|
1291
|
+
x === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: L.map((v, _) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => D(v), children: [
|
|
1292
|
+
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: o === v ? /* @__PURE__ */ e.jsx(ce, {}) : null }),
|
|
1293
|
+
/* @__PURE__ */ e.jsx("div", { className: "content", children: v })
|
|
1294
|
+
] }, _)) }) : x === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: mt().map((v, _) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => S(v), children: [
|
|
1295
|
+
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === v ? /* @__PURE__ */ e.jsx(ce, {}) : null }),
|
|
1296
|
+
/* @__PURE__ */ e.jsx("div", { className: "content", children: v })
|
|
1234
1297
|
] }, _)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1235
1298
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-dayofweek-container", children: [
|
|
1236
1299
|
/* @__PURE__ */ e.jsx("span", { children: "M" }),
|
|
@@ -1241,19 +1304,19 @@ const ot = 2050, en = 1900, V = [
|
|
|
1241
1304
|
/* @__PURE__ */ e.jsx("span", { children: "S" }),
|
|
1242
1305
|
/* @__PURE__ */ e.jsx("span", { children: "S" })
|
|
1243
1306
|
] }),
|
|
1244
|
-
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: w(
|
|
1307
|
+
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: w(l, L.indexOf(o)).map((v, _) => /* @__PURE__ */ e.jsx("div", { className: `day ${v.type !== "NOW_MONTH" ? "other" : ""} ${c === v.day && l === a && o === s ? "now" : ""} ${v.day === h.day && v.type === h.type ? "select" : ""}`, onClick: () => E(v), children: v.day }, _)) })
|
|
1245
1308
|
] }),
|
|
1246
1309
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-action-container", children: [
|
|
1247
1310
|
/* @__PURE__ */ e.jsx(P, { className: "little m-0", onClick: r, children: "Cancel" }),
|
|
1248
|
-
/* @__PURE__ */ e.jsx(P, { className: "little m-0", onClick:
|
|
1311
|
+
/* @__PURE__ */ e.jsx(P, { className: "little m-0", onClick: Y, children: "OK" })
|
|
1249
1312
|
] })
|
|
1250
1313
|
] });
|
|
1251
|
-
},
|
|
1252
|
-
const [
|
|
1253
|
-
n(
|
|
1254
|
-
}, [n]),
|
|
1255
|
-
r(
|
|
1256
|
-
}, [r]),
|
|
1314
|
+
}, jt = ({ setHours: n, setMinutes: r, switchMode: s, hours: a, minutes: c, onCancel: o, onOK: u }) => {
|
|
1315
|
+
const [l, i] = N(!1), h = R((j) => {
|
|
1316
|
+
n(j), i(!0);
|
|
1317
|
+
}, [n]), d = R((j) => {
|
|
1318
|
+
r(j), i(!1);
|
|
1319
|
+
}, [r]), x = R(() => {
|
|
1257
1320
|
i(!1), o();
|
|
1258
1321
|
}, []);
|
|
1259
1322
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -1265,19 +1328,19 @@ const ot = 2050, en = 1900, V = [
|
|
|
1265
1328
|
] }),
|
|
1266
1329
|
/* @__PURE__ */ e.jsx("div", { className: "time-separator", children: ":" }),
|
|
1267
1330
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input minutes", children: [
|
|
1268
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { disabled: !0, type: "number", value:
|
|
1331
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { disabled: !0, type: "number", value: c, min: 0, max: 60 }) }),
|
|
1269
1332
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Minute" })
|
|
1270
1333
|
] })
|
|
1271
1334
|
] }),
|
|
1272
|
-
/* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children:
|
|
1335
|
+
/* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children: l ? /* @__PURE__ */ e.jsx(pt, { setMinutes: d }) : /* @__PURE__ */ e.jsx(vt, { setHours: h }) }),
|
|
1273
1336
|
/* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
|
|
1274
|
-
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => s(), children: /* @__PURE__ */ e.jsx(
|
|
1275
|
-
/* @__PURE__ */ e.jsx(P, { className: "little", onClick:
|
|
1337
|
+
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => s(), children: /* @__PURE__ */ e.jsx(nt, {}) }),
|
|
1338
|
+
/* @__PURE__ */ e.jsx(P, { className: "little", onClick: x, children: "Cancel" }),
|
|
1276
1339
|
/* @__PURE__ */ e.jsx(P, { className: "little", onClick: u, children: "OK" })
|
|
1277
1340
|
] })
|
|
1278
1341
|
] });
|
|
1279
1342
|
};
|
|
1280
|
-
function
|
|
1343
|
+
function vt({ setHours: n }) {
|
|
1281
1344
|
return /* @__PURE__ */ e.jsxs("div", { className: "clock-input", children: [
|
|
1282
1345
|
/* @__PURE__ */ e.jsxs("div", { className: "clock-input-am", children: [
|
|
1283
1346
|
/* @__PURE__ */ e.jsx("span", { onClick: () => n(1), children: "1" }),
|
|
@@ -1310,7 +1373,7 @@ function ft({ setHours: n }) {
|
|
|
1310
1373
|
/* @__PURE__ */ e.jsx("span", { className: "center" })
|
|
1311
1374
|
] });
|
|
1312
1375
|
}
|
|
1313
|
-
function
|
|
1376
|
+
function pt({ setMinutes: n }) {
|
|
1314
1377
|
return /* @__PURE__ */ e.jsxs("div", { className: "clock-input", children: [
|
|
1315
1378
|
/* @__PURE__ */ e.jsxs("div", { className: "clock-input-minute", children: [
|
|
1316
1379
|
/* @__PURE__ */ e.jsx("span", { onClick: () => n(0), children: "00" }),
|
|
@@ -1329,19 +1392,19 @@ function ht({ setMinutes: n }) {
|
|
|
1329
1392
|
/* @__PURE__ */ e.jsx("span", { className: "center" })
|
|
1330
1393
|
] });
|
|
1331
1394
|
}
|
|
1332
|
-
const
|
|
1333
|
-
const
|
|
1334
|
-
let
|
|
1335
|
-
|
|
1395
|
+
const yt = ({ setHours: n, setMinutes: r, switchMode: s, minutes: a, hours: c, onCancel: o, onOK: u }) => {
|
|
1396
|
+
const l = (h) => {
|
|
1397
|
+
let d = Number(h.target.value);
|
|
1398
|
+
d < 0 && (d = 0), d > 23 && (d = 23), n(d);
|
|
1336
1399
|
}, i = (h) => {
|
|
1337
|
-
let
|
|
1338
|
-
|
|
1400
|
+
let d = Number(h.target.value);
|
|
1401
|
+
d < 0 && (d = 0), d > 59 && (d = 59), r(d);
|
|
1339
1402
|
};
|
|
1340
1403
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1341
1404
|
/* @__PURE__ */ e.jsx("div", { className: "time-type", children: /* @__PURE__ */ e.jsx("p", { className: "text-sm", children: "Enter time" }) }),
|
|
1342
1405
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input-container", children: [
|
|
1343
1406
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input hours", children: [
|
|
1344
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", min: 0, max: 23, value:
|
|
1407
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", min: 0, max: 23, value: c, onChange: l }) }),
|
|
1345
1408
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Hour" })
|
|
1346
1409
|
] }),
|
|
1347
1410
|
/* @__PURE__ */ e.jsx("div", { className: "time-separator", children: ":" }),
|
|
@@ -1351,28 +1414,28 @@ const xt = ({ setHours: n, setMinutes: r, switchMode: s, minutes: a, hours: l, o
|
|
|
1351
1414
|
] })
|
|
1352
1415
|
] }),
|
|
1353
1416
|
/* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
|
|
1354
|
-
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => s(), children: /* @__PURE__ */ e.jsx(
|
|
1417
|
+
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => s(), children: /* @__PURE__ */ e.jsx(Qn, {}) }),
|
|
1355
1418
|
/* @__PURE__ */ e.jsx(P, { className: "little", onClick: o, children: "Cancel" }),
|
|
1356
1419
|
/* @__PURE__ */ e.jsx(P, { className: "little", onClick: u, children: "OK" })
|
|
1357
1420
|
] })
|
|
1358
1421
|
] });
|
|
1359
|
-
},
|
|
1360
|
-
const [r, s] =
|
|
1361
|
-
n.onHide && n.onHide(), s(0),
|
|
1362
|
-
}, i = R((
|
|
1363
|
-
s(
|
|
1422
|
+
}, qt = (n) => {
|
|
1423
|
+
const [r, s] = N(n.minutes ?? 0), [a, c] = N(n.hours ?? 0), [o, u] = N(!0), l = () => {
|
|
1424
|
+
n.onHide && n.onHide(), s(0), c(0);
|
|
1425
|
+
}, i = R((d) => {
|
|
1426
|
+
s(d), n.onChange && n.onChange(a, d), n.onHide && n.onHide();
|
|
1364
1427
|
}, [a]), h = R(() => {
|
|
1365
1428
|
n.onChange && n.onChange(a, r), n.onHide && n.onHide();
|
|
1366
1429
|
}, [a, r]);
|
|
1367
|
-
return o ? /* @__PURE__ */ e.jsx(
|
|
1368
|
-
},
|
|
1369
|
-
const [a,
|
|
1370
|
-
if (!
|
|
1430
|
+
return o ? /* @__PURE__ */ e.jsx(J, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(jt, { setMinutes: i, setHours: c, minutes: r, hours: a, switchMode: () => u(!1), onCancel: l, onOK: h }) }) : /* @__PURE__ */ e.jsx(J, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(yt, { setMinutes: s, setHours: c, minutes: r, hours: a, switchMode: () => u(!0), onCancel: l, onOK: h }) });
|
|
1431
|
+
}, Jt = ({ onChange: n, value: r, className: s }) => {
|
|
1432
|
+
const [a, c] = N(r || []), o = R((l) => {
|
|
1433
|
+
if (!l)
|
|
1371
1434
|
return;
|
|
1372
1435
|
let i = a.slice();
|
|
1373
|
-
const h = i.indexOf(
|
|
1374
|
-
h !== -1 && !
|
|
1375
|
-
}, [a]), u = R((
|
|
1436
|
+
const h = i.indexOf(l.target.name);
|
|
1437
|
+
h !== -1 && !l.target.checked ? i = i.filter((d, x) => x !== h) : h === -1 && l.target.checked && i.push(l.target.name), c(i), n && n(i);
|
|
1438
|
+
}, [a]), u = R((l) => a.indexOf(l) !== -1, [a]);
|
|
1376
1439
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: `days-week-field-container ${s}`, children: [
|
|
1377
1440
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
1378
1441
|
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: o, name: "Mon", checked: u("Mon") }),
|
|
@@ -1403,109 +1466,98 @@ const xt = ({ setHours: n, setMinutes: r, switchMode: s, minutes: a, hours: l, o
|
|
|
1403
1466
|
/* @__PURE__ */ e.jsx("span", { children: "Sun" })
|
|
1404
1467
|
] })
|
|
1405
1468
|
] }) });
|
|
1406
|
-
},
|
|
1407
|
-
const i =
|
|
1469
|
+
}, Ht = ({ children: n }) => /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item", children: /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item-container", children: n }) }), Gt = ({ minWith: n, children: r, className: s, gridRowGap: a = "10px", gridColumnGap: c = "5px", itemMinWith: o, itemMaxWith: u, itemWith: l = "400px" }) => {
|
|
1470
|
+
const i = z(null), [h, d] = N([]), x = R(() => {
|
|
1408
1471
|
if (!i.current)
|
|
1409
1472
|
return;
|
|
1410
|
-
i.current.style.display = "grid", i.current.style.gridRowGap = a, i.current.style.gridColumnGap =
|
|
1411
|
-
let
|
|
1412
|
-
i.current.style.gridTemplateColumns = "repeat(auto-fill, minmax(" +
|
|
1473
|
+
i.current.style.display = "grid", i.current.style.gridRowGap = a, i.current.style.gridColumnGap = c;
|
|
1474
|
+
let g = o ?? l, w = u ?? l;
|
|
1475
|
+
i.current.style.gridTemplateColumns = "repeat(auto-fill, minmax(" + g + ", " + w + "))", i.current.style.gridAutoRows = "0", h.forEach((S) => {
|
|
1413
1476
|
S.style.gridAutoRows = "0", S.style.gridAutoColumns = "0";
|
|
1414
1477
|
});
|
|
1415
|
-
}, [i.current]),
|
|
1478
|
+
}, [i.current]), j = R(() => {
|
|
1416
1479
|
if (!i.current)
|
|
1417
1480
|
return;
|
|
1418
|
-
let
|
|
1481
|
+
let g = parseInt(window.getComputedStyle(i.current).getPropertyValue("grid-row-gap")), w = parseInt(window.getComputedStyle(i.current).getPropertyValue("grid-auto-rows"));
|
|
1419
1482
|
h.forEach((S) => {
|
|
1420
1483
|
let D = 0, E = S.querySelector(".adaptiv-grid-item-container");
|
|
1421
|
-
E && (D = Math.ceil((E.getBoundingClientRect().height +
|
|
1484
|
+
E && (D = Math.ceil((E.getBoundingClientRect().height + g) / (w + g))), S.style.gridRowEnd = "span " + D;
|
|
1422
1485
|
});
|
|
1423
|
-
}, [h, i.current]),
|
|
1486
|
+
}, [h, i.current]), y = R(() => {
|
|
1424
1487
|
if (i.current) {
|
|
1425
|
-
let
|
|
1426
|
-
|
|
1488
|
+
let g = i.current.querySelectorAll(".adaptiv-grid-item");
|
|
1489
|
+
d(Array.prototype.slice.call(g, 0));
|
|
1427
1490
|
}
|
|
1428
1491
|
}, [i.current, r]);
|
|
1429
1492
|
return A(() => {
|
|
1430
|
-
|
|
1431
|
-
}, [
|
|
1432
|
-
|
|
1433
|
-
}, [
|
|
1434
|
-
|
|
1435
|
-
}, [
|
|
1436
|
-
window.addEventListener("resize",
|
|
1437
|
-
}), [
|
|
1438
|
-
},
|
|
1493
|
+
y();
|
|
1494
|
+
}, [y]), A(() => {
|
|
1495
|
+
x();
|
|
1496
|
+
}, [x]), A(() => {
|
|
1497
|
+
j();
|
|
1498
|
+
}, [j, r]), A(() => (window.addEventListener("resize", j), () => {
|
|
1499
|
+
window.addEventListener("resize", j);
|
|
1500
|
+
}), [j]), /* @__PURE__ */ e.jsx("div", { style: { minWidth: n }, ref: i, className: `adaptiv-grid-layout ${s}`, children: r });
|
|
1501
|
+
}, gt = ({ item: n, isIcon: r, globalClick: s }) => {
|
|
1439
1502
|
const a = () => {
|
|
1440
1503
|
n.onClick && n.onClick(), s && s();
|
|
1441
1504
|
};
|
|
1442
1505
|
return /* @__PURE__ */ e.jsxs("div", { className: "menu-sub-item", onClick: a, children: [
|
|
1443
1506
|
r ? /* @__PURE__ */ e.jsx("div", { className: "menu-icon-container", children: n.icon }) : null,
|
|
1444
1507
|
/* @__PURE__ */ e.jsx("div", { className: "menu-text-container", children: n.title }),
|
|
1445
|
-
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(
|
|
1508
|
+
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(ce, {}) : null })
|
|
1446
1509
|
] });
|
|
1447
|
-
},
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
left: Number(n.getBoundingClientRect().left),
|
|
1451
|
-
top: Number(n.getBoundingClientRect().top)
|
|
1452
|
-
} : void 0, sn = (n, r, s, a) => {
|
|
1453
|
-
let l = { x: n, y: r };
|
|
1454
|
-
if (!s)
|
|
1455
|
-
return l;
|
|
1456
|
-
let o = Number(window.getComputedStyle(s).getPropertyValue("height").replace("px", "")), u = Number(window.getComputedStyle(s).getPropertyValue("width").replace("px", "")), c = r + o - document.documentElement.scrollHeight, i = n + u - document.documentElement.clientWidth;
|
|
1457
|
-
return c > 0 && (l.y = l.y - c - ((a == null ? void 0 : a.marginBottom) ?? 0)), i > 0 && (l.x = l.x - i - ((a == null ? void 0 : a.marginRight) ?? 0)), l;
|
|
1458
|
-
}, vt = ({ items: n, onHide: r, smallDisplay: s, globalClick: a }) => {
|
|
1459
|
-
const l = J(null), [o, u] = C({ left: "0px", top: "0px" });
|
|
1460
|
-
function c(i) {
|
|
1510
|
+
}, bt = ({ items: n, onHide: r, smallDisplay: s, globalClick: a }) => {
|
|
1511
|
+
const c = z(null), [o, u] = N({ left: "0px", top: "0px" });
|
|
1512
|
+
function l(i) {
|
|
1461
1513
|
for (let h of i)
|
|
1462
1514
|
if (h.icon)
|
|
1463
1515
|
return !0;
|
|
1464
1516
|
return !1;
|
|
1465
1517
|
}
|
|
1466
1518
|
return A(() => {
|
|
1467
|
-
if (!
|
|
1519
|
+
if (!c.current)
|
|
1468
1520
|
return;
|
|
1469
|
-
let i =
|
|
1521
|
+
let i = cn(c.current.parentElement);
|
|
1470
1522
|
if (!i)
|
|
1471
1523
|
return;
|
|
1472
|
-
let h =
|
|
1524
|
+
let h = ln(i.left + i.width, i.top, c.current, { marginRight: i.width });
|
|
1473
1525
|
u({
|
|
1474
1526
|
left: h.x - i.left + "px",
|
|
1475
1527
|
top: h.y - i.top + "px"
|
|
1476
1528
|
});
|
|
1477
1529
|
}, []), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1478
|
-
/* @__PURE__ */ e.jsx("div", { ref:
|
|
1530
|
+
/* @__PURE__ */ e.jsx("div", { ref: c, className: "menu-sub-block", style: { ...o }, children: n.map((i, h) => /* @__PURE__ */ e.jsx(gt, { item: i, isIcon: l(n), globalClick: a }, h)) }),
|
|
1479
1531
|
s ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "backplate", onClick: r })
|
|
1480
1532
|
] });
|
|
1481
|
-
},
|
|
1482
|
-
const [u,
|
|
1483
|
-
a.subItems ?
|
|
1533
|
+
}, kt = ({ onHide: n, autoHide: r, globalClick: s, item: a, isIcon: c, smallDisplay: o }) => {
|
|
1534
|
+
const [u, l] = N(!1), i = R(() => {
|
|
1535
|
+
a.subItems ? l((h) => !h) : a.onClick && a.onClick(), s && s(), r && n && n();
|
|
1484
1536
|
}, [a.onClick]);
|
|
1485
1537
|
return /* @__PURE__ */ e.jsxs("div", { className: "menu-item-conatiner", children: [
|
|
1486
1538
|
/* @__PURE__ */ e.jsxs("div", { className: "menu-item", onClick: i, children: [
|
|
1487
|
-
|
|
1539
|
+
c ? /* @__PURE__ */ e.jsx("div", { className: "menu-icon-container", children: a.icon }) : null,
|
|
1488
1540
|
/* @__PURE__ */ e.jsx("div", { className: "menu-text-container", children: a.title }),
|
|
1489
|
-
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: a.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-status-submenu ${u ? "active" : ""}` }) : a.activated ? /* @__PURE__ */ e.jsx(
|
|
1541
|
+
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: a.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-status-submenu ${u ? "active" : ""}` }) : a.activated ? /* @__PURE__ */ e.jsx(ce, {}) : /* @__PURE__ */ e.jsx("span", { className: "none-status" }) })
|
|
1490
1542
|
] }),
|
|
1491
|
-
u && a.subItems ? /* @__PURE__ */ e.jsx(
|
|
1543
|
+
u && a.subItems ? /* @__PURE__ */ e.jsx(bt, { items: a.subItems, onHide: () => l(!1), smallDisplay: o }) : null
|
|
1492
1544
|
] });
|
|
1493
1545
|
};
|
|
1494
|
-
function
|
|
1546
|
+
function on({ block: n, smallDisplay: r, onHide: s, globalClick: a, autoHide: c }) {
|
|
1495
1547
|
function o(u) {
|
|
1496
|
-
for (let
|
|
1497
|
-
if (
|
|
1548
|
+
for (let l of u.items)
|
|
1549
|
+
if (l.icon)
|
|
1498
1550
|
return !0;
|
|
1499
1551
|
return !1;
|
|
1500
1552
|
}
|
|
1501
|
-
return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((u,
|
|
1553
|
+
return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((u, l) => /* @__PURE__ */ e.jsx(kt, { globalClick: a, autoHide: c, onHide: s, item: u, isIcon: o(n), smallDisplay: r }, l)) });
|
|
1502
1554
|
}
|
|
1503
|
-
const
|
|
1504
|
-
const r =
|
|
1555
|
+
const Nt = 100, Zt = (n) => {
|
|
1556
|
+
const r = z(null), [s, a] = N({ left: "0px", top: "0px" }), c = () => {
|
|
1505
1557
|
n.onHide && n.onHide();
|
|
1506
1558
|
};
|
|
1507
1559
|
return A(() => {
|
|
1508
|
-
let o =
|
|
1560
|
+
let o = ln(n.x, n.y, r.current, { marginBottom: Nt });
|
|
1509
1561
|
a({
|
|
1510
1562
|
left: o.x + "px",
|
|
1511
1563
|
top: o.y + "px"
|
|
@@ -1513,114 +1565,117 @@ const yt = 100, qt = (n) => {
|
|
|
1513
1565
|
}, [n.x, n.y]), n.visible ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1514
1566
|
/* @__PURE__ */ e.jsx("div", { ref: r, className: "menu-container", style: { ...s, opacity: s.top !== "0px" ? "100%" : "0%", width: n.width, maxWidth: n.width ? "100%" : void 0 }, children: n.blocks.map((o, u) => /* @__PURE__ */ e.jsxs(xe.Fragment, { children: [
|
|
1515
1567
|
u !== 0 ? /* @__PURE__ */ e.jsx(he, {}) : null,
|
|
1516
|
-
/* @__PURE__ */ e.jsx(
|
|
1568
|
+
/* @__PURE__ */ e.jsx(on, { block: o, smallDisplay: !1, globalClick: n.onClick, autoHide: n.autoHide, onHide: c })
|
|
1517
1569
|
] }, u)) }),
|
|
1518
|
-
/* @__PURE__ */ e.jsx("div", { style: { zIndex: 1600 }, className: "backplate", onClick:
|
|
1570
|
+
/* @__PURE__ */ e.jsx("div", { style: { zIndex: 1600 }, className: "backplate", onClick: c, onContextMenu: (o) => {
|
|
1519
1571
|
o.preventDefault();
|
|
1520
1572
|
} })
|
|
1521
1573
|
] }) : null;
|
|
1522
|
-
},
|
|
1574
|
+
}, Qt = (n) => {
|
|
1523
1575
|
const r = () => {
|
|
1524
1576
|
};
|
|
1525
|
-
return /* @__PURE__ */ e.jsx(
|
|
1577
|
+
return /* @__PURE__ */ e.jsx(Kn, { onHide: n.onHide || r, visible: n.visible, children: /* @__PURE__ */ e.jsx("div", { className: "bottom-sheets-menu-container", children: n.blocks.map((s, a) => /* @__PURE__ */ e.jsxs(xe.Fragment, { children: [
|
|
1526
1578
|
a !== 0 ? /* @__PURE__ */ e.jsx(he, {}) : null,
|
|
1527
|
-
/* @__PURE__ */ e.jsx(
|
|
1579
|
+
/* @__PURE__ */ e.jsx(on, { block: s, smallDisplay: !0 })
|
|
1528
1580
|
] }, a)) }) });
|
|
1529
1581
|
};
|
|
1530
|
-
function
|
|
1582
|
+
function Ct(n) {
|
|
1531
1583
|
let r = [];
|
|
1532
1584
|
if (n.length > 0)
|
|
1533
1585
|
for (let s of n)
|
|
1534
1586
|
for (let a in s) {
|
|
1535
|
-
let
|
|
1587
|
+
let c = !1;
|
|
1536
1588
|
for (let o of r)
|
|
1537
|
-
o.field === a && (
|
|
1538
|
-
|
|
1589
|
+
o.field === a && (c = !0);
|
|
1590
|
+
c || r.push({
|
|
1539
1591
|
title: a,
|
|
1540
1592
|
field: a
|
|
1541
1593
|
});
|
|
1542
1594
|
}
|
|
1543
1595
|
return r;
|
|
1544
1596
|
}
|
|
1545
|
-
const
|
|
1546
|
-
function l
|
|
1597
|
+
const wt = ({ data: n, column: r, color: s, backgroundColor: a }) => {
|
|
1598
|
+
function c(l, i) {
|
|
1547
1599
|
for (let h in i)
|
|
1548
|
-
if (
|
|
1600
|
+
if (l === h)
|
|
1549
1601
|
return i[h];
|
|
1550
1602
|
}
|
|
1551
|
-
function o(
|
|
1552
|
-
return typeof
|
|
1603
|
+
function o(l) {
|
|
1604
|
+
return typeof l == "number" || typeof l == "string" ? { content: l } : l;
|
|
1553
1605
|
}
|
|
1554
|
-
function u(
|
|
1555
|
-
return
|
|
1606
|
+
function u(l) {
|
|
1607
|
+
return l ? Array.isArray(l) ? l.map((i) => o(i)) : [o(l)] : [];
|
|
1556
1608
|
}
|
|
1557
|
-
return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor: a }, children: u(
|
|
1558
|
-
},
|
|
1559
|
-
const i = (
|
|
1560
|
-
i(
|
|
1609
|
+
return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor: a }, children: u(c(r.field, n)).map((l, i) => /* @__PURE__ */ e.jsx("p", { style: { color: l.color ?? s }, className: l.onClick ? "no-click" : "", onClick: l.onClick, children: typeof l.content == "string" || typeof l.content == "number" ? l.content : /* @__PURE__ */ e.jsx(l.content, {}) }, i)) });
|
|
1610
|
+
}, Et = ({ actions: n, item: r, columns: s, onContextMenu: a, onDelete: c, onEdit: o, onClickRow: u, index: l }) => {
|
|
1611
|
+
const i = (d) => !d.target.closest(".no-click"), h = (d) => {
|
|
1612
|
+
i(d) && u && u(r, l);
|
|
1561
1613
|
};
|
|
1562
1614
|
return /* @__PURE__ */ e.jsxs("tr", { className: "table-row", onClick: h, children: [
|
|
1563
|
-
s.map((
|
|
1564
|
-
n ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((
|
|
1565
|
-
a ||
|
|
1566
|
-
o ? /* @__PURE__ */ e.jsx(ae, { transparent: !0, icon: /* @__PURE__ */ e.jsx(
|
|
1567
|
-
|
|
1568
|
-
a ? /* @__PURE__ */ e.jsx(ae, { transparent: !0, icon: /* @__PURE__ */ e.jsx(
|
|
1615
|
+
s.map((d, x) => /* @__PURE__ */ e.jsx(wt, { color: d.color, backgroundColor: d.backgroundColor, column: d, data: r }, x)),
|
|
1616
|
+
n ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((d, x) => /* @__PURE__ */ e.jsx(ae, { transparent: !0, icon: d.icon, onClick: (j) => d.onClick(j, r, l) }, x)) }) }) : null,
|
|
1617
|
+
a || c || o ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] table-edit-button no-click", children: /* @__PURE__ */ e.jsxs("div", { className: "table-edit-button", children: [
|
|
1618
|
+
o ? /* @__PURE__ */ e.jsx(ae, { transparent: !0, icon: /* @__PURE__ */ e.jsx(tt, {}), onClick: () => o(r, l) }) : null,
|
|
1619
|
+
c ? /* @__PURE__ */ e.jsx(ae, { transparent: !0, icon: /* @__PURE__ */ e.jsx(st, { className: "text-red-500" }), onClick: () => c(r, l) }) : null,
|
|
1620
|
+
a ? /* @__PURE__ */ e.jsx(ae, { transparent: !0, icon: /* @__PURE__ */ e.jsx(et, {}), onClick: (d) => a(d, r, l) }) : null
|
|
1569
1621
|
] }) }) : null
|
|
1570
1622
|
] });
|
|
1571
|
-
},
|
|
1572
|
-
const [i] =
|
|
1573
|
-
return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${u ? "clicked" : ""} ${
|
|
1623
|
+
}, er = ({ data: n, columns: r, onDelete: s, onContextMenu: a, onEdit: c, actions: o, onClickRow: u, adaptive: l }) => {
|
|
1624
|
+
const [i] = N(r ?? Ct(n));
|
|
1625
|
+
return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${u ? "clicked" : ""} ${l ? "auto-rotate" : ""}`, children: /* @__PURE__ */ e.jsxs("table", { children: [
|
|
1574
1626
|
/* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
1575
|
-
i.map((h,
|
|
1627
|
+
i.map((h, d) => /* @__PURE__ */ e.jsx("th", { className: "min-width", children: h.title }, d)),
|
|
1576
1628
|
o ? /* @__PURE__ */ e.jsx("th", { className: "table-actions-header", children: "actions" }) : null,
|
|
1577
|
-
s || a ||
|
|
1629
|
+
s || a || c ? /* @__PURE__ */ e.jsx("th", { className: "table-actions-header" }) : null
|
|
1578
1630
|
] }) }),
|
|
1579
|
-
/* @__PURE__ */ e.jsx("tbody", { children: n.map((h,
|
|
1631
|
+
/* @__PURE__ */ e.jsx("tbody", { children: n.map((h, d) => /* @__PURE__ */ e.jsx(Et, { onClickRow: u, actions: o, index: d, columns: i, item: h, onDelete: s, onContextMenu: a, onEdit: c }, d)) })
|
|
1580
1632
|
] }) });
|
|
1581
1633
|
};
|
|
1582
1634
|
export {
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1635
|
+
Un as BaseActionCard,
|
|
1636
|
+
le as BaseButton,
|
|
1637
|
+
zt as BaseDialog,
|
|
1638
|
+
ct as BaseRadioButton,
|
|
1639
|
+
J as BasicTemplateDialog,
|
|
1640
|
+
_t as BigContainer,
|
|
1641
|
+
Kn as BottomSheetsUi,
|
|
1642
|
+
Vn as Button,
|
|
1643
|
+
Rt as Card,
|
|
1644
|
+
St as Checkbox,
|
|
1645
|
+
at as Chips,
|
|
1646
|
+
Jt as DayOfWeekField,
|
|
1595
1647
|
he as Divider,
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1648
|
+
Mt as FAB,
|
|
1649
|
+
Pt as FieldContainer,
|
|
1650
|
+
Wn as FilledButton,
|
|
1651
|
+
Yn as FilledTotalButton,
|
|
1652
|
+
Lt as FullScrinTemplateDialog,
|
|
1653
|
+
Gt as GridLayout,
|
|
1654
|
+
Ht as GridLayoutItem,
|
|
1603
1655
|
ae as IconButton,
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1656
|
+
Ln as ListContainer,
|
|
1657
|
+
zn as ListItem,
|
|
1658
|
+
Zt as Menu,
|
|
1659
|
+
At as MoreText,
|
|
1660
|
+
Bn as OutlineButton,
|
|
1661
|
+
Dt as RadioButton,
|
|
1662
|
+
$t as RunningLine,
|
|
1663
|
+
Ft as ScrollContainer,
|
|
1664
|
+
It as Search,
|
|
1665
|
+
Ut as SelectionDialog,
|
|
1666
|
+
Wt as SigmentedButton,
|
|
1667
|
+
Vt as Slider,
|
|
1668
|
+
Qt as SmallWindowMenu,
|
|
1669
|
+
Bt as Snackbar,
|
|
1670
|
+
Yt as Switch,
|
|
1671
|
+
er as Table,
|
|
1672
|
+
Ot as TextArea,
|
|
1619
1673
|
P as TextButton,
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1674
|
+
Kt as TextDialog,
|
|
1675
|
+
an as TextField,
|
|
1676
|
+
qt as TimePicker,
|
|
1677
|
+
cn as getContainerData,
|
|
1678
|
+
ln as getModalWindowCord,
|
|
1679
|
+
ot as map,
|
|
1680
|
+
Xt as СalendarPickers
|
|
1626
1681
|
};
|