alex-evo-sh-ui-kit 1.0.13 → 1.0.15
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 +1388 -1119
- package/dist/alex-evo-sh-ui-kit.umd.js +39 -34
- package/dist/helpers/colorConvert.d.ts +24 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/ui/ColorField/ColorField.d.ts +11 -0
- package/dist/ui/ColorField/ColorPicker.d.ts +10 -0
- package/dist/ui/ColorField/helpers/canvasColorPickerHelpers.d.ts +17 -0
- package/dist/ui/Dialog/TemplateDialog/BasicTemplateDialog.d.ts +2 -1
- package/dist/ui/FieldContainer/FieldContainer.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { NavLink as
|
|
4
|
-
import './index.css';var
|
|
1
|
+
import ke, { forwardRef as bn, createElement as Ve, useRef as z, useState as k, useMemo as Oe, useCallback as C, useEffect as F } from "react";
|
|
2
|
+
import lt from "react-dom";
|
|
3
|
+
import { NavLink as Be } from "react-router-dom";
|
|
4
|
+
import './index.css';var Le = { exports: {} }, ie = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -11,25 +11,25 @@ import './index.css';var De = { exports: {} }, ce = {};
|
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
var n =
|
|
20
|
-
function
|
|
21
|
-
var u,
|
|
22
|
-
|
|
23
|
-
for (u in
|
|
24
|
-
|
|
25
|
-
if (
|
|
26
|
-
for (u in
|
|
27
|
-
|
|
28
|
-
return { $$typeof: t, type:
|
|
14
|
+
var hn;
|
|
15
|
+
function ct() {
|
|
16
|
+
if (hn)
|
|
17
|
+
return ie;
|
|
18
|
+
hn = 1;
|
|
19
|
+
var n = ke, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
+
function o(i, d, h) {
|
|
21
|
+
var u, x = {}, m = null, p = null;
|
|
22
|
+
h !== void 0 && (m = "" + h), d.key !== void 0 && (m = "" + d.key), d.ref !== void 0 && (p = d.ref);
|
|
23
|
+
for (u in d)
|
|
24
|
+
r.call(d, u) && !c.hasOwnProperty(u) && (x[u] = d[u]);
|
|
25
|
+
if (i && i.defaultProps)
|
|
26
|
+
for (u in d = i.defaultProps, d)
|
|
27
|
+
x[u] === void 0 && (x[u] = d[u]);
|
|
28
|
+
return { $$typeof: t, type: i, key: m, ref: p, props: x, _owner: l.current };
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return ie.Fragment = s, ie.jsx = o, ie.jsxs = o, ie;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var oe = {};
|
|
33
33
|
/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.development.js
|
|
@@ -39,91 +39,91 @@ var ie = {};
|
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/
|
|
42
|
-
var
|
|
43
|
-
function
|
|
44
|
-
return
|
|
45
|
-
var n =
|
|
46
|
-
function E(
|
|
47
|
-
if (
|
|
42
|
+
var xn;
|
|
43
|
+
function it() {
|
|
44
|
+
return xn || (xn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
45
|
+
var n = ke, t = Symbol.for("react.element"), s = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), i = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), N = Symbol.iterator, g = "@@iterator";
|
|
46
|
+
function E(a) {
|
|
47
|
+
if (a === null || typeof a != "object")
|
|
48
48
|
return null;
|
|
49
|
-
var
|
|
50
|
-
return typeof
|
|
49
|
+
var f = N && a[N] || a[g];
|
|
50
|
+
return typeof f == "function" ? f : null;
|
|
51
51
|
}
|
|
52
52
|
var v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
53
|
-
function
|
|
53
|
+
function y(a) {
|
|
54
54
|
{
|
|
55
|
-
for (var
|
|
55
|
+
for (var f = arguments.length, j = new Array(f > 1 ? f - 1 : 0), w = 1; w < f; w++)
|
|
56
56
|
j[w - 1] = arguments[w];
|
|
57
|
-
|
|
57
|
+
D("error", a, j);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function D(a, f, j) {
|
|
61
61
|
{
|
|
62
|
-
var w = v.ReactDebugCurrentFrame,
|
|
63
|
-
|
|
64
|
-
var _ = j.map(function(
|
|
65
|
-
return String(
|
|
62
|
+
var w = v.ReactDebugCurrentFrame, M = w.getStackAddendum();
|
|
63
|
+
M !== "" && (f += "%s", j = j.concat([M]));
|
|
64
|
+
var _ = j.map(function(R) {
|
|
65
|
+
return String(R);
|
|
66
66
|
});
|
|
67
|
-
_.unshift("Warning: " +
|
|
67
|
+
_.unshift("Warning: " + f), Function.prototype.apply.call(console[a], console, _);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
function
|
|
73
|
-
return !!(typeof
|
|
70
|
+
var b = !1, T = !1, B = !1, X = !1, S = !1, P;
|
|
71
|
+
P = Symbol.for("react.module.reference");
|
|
72
|
+
function H(a) {
|
|
73
|
+
return !!(typeof a == "string" || typeof a == "function" || a === r || a === c || S || a === l || a === h || a === u || X || a === p || b || T || B || typeof a == "object" && a !== null && (a.$$typeof === m || a.$$typeof === x || a.$$typeof === o || a.$$typeof === i || a.$$typeof === d || // This needs to include all possible module reference object
|
|
74
74
|
// types supported by any Flight configuration anywhere since
|
|
75
75
|
// we don't know which Flight build this will end up being used
|
|
76
76
|
// with.
|
|
77
|
-
|
|
77
|
+
a.$$typeof === P || a.getModuleId !== void 0));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
var w =
|
|
79
|
+
function I(a, f, j) {
|
|
80
|
+
var w = a.displayName;
|
|
81
81
|
if (w)
|
|
82
82
|
return w;
|
|
83
|
-
var
|
|
84
|
-
return
|
|
83
|
+
var M = f.displayName || f.name || "";
|
|
84
|
+
return M !== "" ? j + "(" + M + ")" : j;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function Z(a) {
|
|
87
|
+
return a.displayName || "Context";
|
|
88
88
|
}
|
|
89
|
-
function W(
|
|
90
|
-
if (
|
|
89
|
+
function W(a) {
|
|
90
|
+
if (a == null)
|
|
91
91
|
return null;
|
|
92
|
-
if (typeof
|
|
93
|
-
return
|
|
94
|
-
if (typeof
|
|
95
|
-
return
|
|
96
|
-
switch (
|
|
97
|
-
case
|
|
92
|
+
if (typeof a.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
93
|
+
return a.displayName || a.name || null;
|
|
94
|
+
if (typeof a == "string")
|
|
95
|
+
return a;
|
|
96
|
+
switch (a) {
|
|
97
|
+
case r:
|
|
98
98
|
return "Fragment";
|
|
99
99
|
case s:
|
|
100
100
|
return "Portal";
|
|
101
|
-
case
|
|
101
|
+
case c:
|
|
102
102
|
return "Profiler";
|
|
103
|
-
case
|
|
103
|
+
case l:
|
|
104
104
|
return "StrictMode";
|
|
105
|
-
case
|
|
105
|
+
case h:
|
|
106
106
|
return "Suspense";
|
|
107
107
|
case u:
|
|
108
108
|
return "SuspenseList";
|
|
109
109
|
}
|
|
110
|
-
if (typeof
|
|
111
|
-
switch (
|
|
112
|
-
case
|
|
113
|
-
var
|
|
114
|
-
return
|
|
115
|
-
case d:
|
|
116
|
-
var j = r;
|
|
117
|
-
return ue(j._context) + ".Provider";
|
|
110
|
+
if (typeof a == "object")
|
|
111
|
+
switch (a.$$typeof) {
|
|
112
|
+
case i:
|
|
113
|
+
var f = a;
|
|
114
|
+
return Z(f) + ".Consumer";
|
|
118
115
|
case o:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
return
|
|
123
|
-
case
|
|
124
|
-
var
|
|
116
|
+
var j = a;
|
|
117
|
+
return Z(j._context) + ".Provider";
|
|
118
|
+
case d:
|
|
119
|
+
return I(a, a.render, "ForwardRef");
|
|
120
|
+
case x:
|
|
121
|
+
var w = a.displayName || null;
|
|
122
|
+
return w !== null ? w : W(a.type) || "Memo";
|
|
123
|
+
case m: {
|
|
124
|
+
var M = a, _ = M._payload, R = M._init;
|
|
125
125
|
try {
|
|
126
|
-
return W(
|
|
126
|
+
return W(R(_));
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
@@ -131,637 +131,544 @@ function Zn() {
|
|
|
131
131
|
}
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
134
|
+
var J = Object.assign, O = 0, q, me, He, Ge, Xe, Ue, qe;
|
|
135
|
+
function Je() {
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
function
|
|
137
|
+
Je.__reactDisabledLog = !0;
|
|
138
|
+
function Dn() {
|
|
139
139
|
{
|
|
140
|
-
if (
|
|
141
|
-
|
|
142
|
-
var
|
|
140
|
+
if (O === 0) {
|
|
141
|
+
q = console.log, me = console.info, He = console.warn, Ge = console.error, Xe = console.group, Ue = console.groupCollapsed, qe = console.groupEnd;
|
|
142
|
+
var a = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
145
|
-
value:
|
|
145
|
+
value: Je,
|
|
146
146
|
writable: !0
|
|
147
147
|
};
|
|
148
148
|
Object.defineProperties(console, {
|
|
149
|
-
info:
|
|
150
|
-
log:
|
|
151
|
-
warn:
|
|
152
|
-
error:
|
|
153
|
-
group:
|
|
154
|
-
groupCollapsed:
|
|
155
|
-
groupEnd:
|
|
149
|
+
info: a,
|
|
150
|
+
log: a,
|
|
151
|
+
warn: a,
|
|
152
|
+
error: a,
|
|
153
|
+
group: a,
|
|
154
|
+
groupCollapsed: a,
|
|
155
|
+
groupEnd: a
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
O++;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function On() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
164
|
-
var
|
|
163
|
+
if (O--, O === 0) {
|
|
164
|
+
var a = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
167
167
|
writable: !0
|
|
168
168
|
};
|
|
169
169
|
Object.defineProperties(console, {
|
|
170
|
-
log:
|
|
171
|
-
value:
|
|
170
|
+
log: J({}, a, {
|
|
171
|
+
value: q
|
|
172
172
|
}),
|
|
173
|
-
info:
|
|
174
|
-
value:
|
|
173
|
+
info: J({}, a, {
|
|
174
|
+
value: me
|
|
175
175
|
}),
|
|
176
|
-
warn:
|
|
177
|
-
value:
|
|
176
|
+
warn: J({}, a, {
|
|
177
|
+
value: He
|
|
178
178
|
}),
|
|
179
|
-
error:
|
|
180
|
-
value:
|
|
179
|
+
error: J({}, a, {
|
|
180
|
+
value: Ge
|
|
181
181
|
}),
|
|
182
|
-
group:
|
|
183
|
-
value:
|
|
182
|
+
group: J({}, a, {
|
|
183
|
+
value: Xe
|
|
184
184
|
}),
|
|
185
|
-
groupCollapsed:
|
|
186
|
-
value:
|
|
185
|
+
groupCollapsed: J({}, a, {
|
|
186
|
+
value: Ue
|
|
187
187
|
}),
|
|
188
|
-
groupEnd:
|
|
189
|
-
value:
|
|
188
|
+
groupEnd: J({}, a, {
|
|
189
|
+
value: qe
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
O < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
var
|
|
197
|
-
function
|
|
196
|
+
var we = v.ReactCurrentDispatcher, Ee;
|
|
197
|
+
function fe(a, f, j) {
|
|
198
198
|
{
|
|
199
|
-
if (
|
|
199
|
+
if (Ee === void 0)
|
|
200
200
|
try {
|
|
201
201
|
throw Error();
|
|
202
|
-
} catch (
|
|
203
|
-
var w =
|
|
204
|
-
|
|
202
|
+
} catch (M) {
|
|
203
|
+
var w = M.stack.trim().match(/\n( *(at )?)/);
|
|
204
|
+
Ee = w && w[1] || "";
|
|
205
205
|
}
|
|
206
206
|
return `
|
|
207
|
-
` +
|
|
207
|
+
` + Ee + a;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
var
|
|
210
|
+
var Se = !1, je;
|
|
211
211
|
{
|
|
212
|
-
var
|
|
213
|
-
|
|
212
|
+
var Fn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
213
|
+
je = new Fn();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
if (!
|
|
215
|
+
function Ke(a, f) {
|
|
216
|
+
if (!a || Se)
|
|
217
217
|
return "";
|
|
218
218
|
{
|
|
219
|
-
var j =
|
|
219
|
+
var j = je.get(a);
|
|
220
220
|
if (j !== void 0)
|
|
221
221
|
return j;
|
|
222
222
|
}
|
|
223
223
|
var w;
|
|
224
|
-
|
|
225
|
-
var
|
|
224
|
+
Se = !0;
|
|
225
|
+
var M = Error.prepareStackTrace;
|
|
226
226
|
Error.prepareStackTrace = void 0;
|
|
227
227
|
var _;
|
|
228
|
-
_ =
|
|
228
|
+
_ = we.current, we.current = null, Dn();
|
|
229
229
|
try {
|
|
230
|
-
if (
|
|
231
|
-
var
|
|
230
|
+
if (f) {
|
|
231
|
+
var R = function() {
|
|
232
232
|
throw Error();
|
|
233
233
|
};
|
|
234
|
-
if (Object.defineProperty(
|
|
234
|
+
if (Object.defineProperty(R.prototype, "props", {
|
|
235
235
|
set: function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
}
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
239
239
|
try {
|
|
240
|
-
Reflect.construct(
|
|
241
|
-
} catch (
|
|
242
|
-
w =
|
|
240
|
+
Reflect.construct(R, []);
|
|
241
|
+
} catch (U) {
|
|
242
|
+
w = U;
|
|
243
243
|
}
|
|
244
|
-
Reflect.construct(
|
|
244
|
+
Reflect.construct(a, [], R);
|
|
245
245
|
} else {
|
|
246
246
|
try {
|
|
247
|
-
|
|
248
|
-
} catch (
|
|
249
|
-
w =
|
|
247
|
+
R.call();
|
|
248
|
+
} catch (U) {
|
|
249
|
+
w = U;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
a.call(R.prototype);
|
|
252
252
|
}
|
|
253
253
|
} else {
|
|
254
254
|
try {
|
|
255
255
|
throw Error();
|
|
256
|
-
} catch (
|
|
257
|
-
w =
|
|
256
|
+
} catch (U) {
|
|
257
|
+
w = U;
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
a();
|
|
260
260
|
}
|
|
261
|
-
} catch (
|
|
262
|
-
if (
|
|
263
|
-
for (var
|
|
264
|
-
`),
|
|
265
|
-
`),
|
|
266
|
-
|
|
267
|
-
for (;
|
|
268
|
-
if (
|
|
269
|
-
if (
|
|
261
|
+
} catch (U) {
|
|
262
|
+
if (U && w && typeof U.stack == "string") {
|
|
263
|
+
for (var $ = U.stack.split(`
|
|
264
|
+
`), G = w.stack.split(`
|
|
265
|
+
`), A = $.length - 1, V = G.length - 1; A >= 1 && V >= 0 && $[A] !== G[V]; )
|
|
266
|
+
V--;
|
|
267
|
+
for (; A >= 1 && V >= 0; A--, V--)
|
|
268
|
+
if ($[A] !== G[V]) {
|
|
269
|
+
if (A !== 1 || V !== 1)
|
|
270
270
|
do
|
|
271
|
-
if (
|
|
272
|
-
var
|
|
273
|
-
` +
|
|
274
|
-
return
|
|
271
|
+
if (A--, V--, V < 0 || $[A] !== G[V]) {
|
|
272
|
+
var K = `
|
|
273
|
+
` + $[A].replace(" at new ", " at ");
|
|
274
|
+
return a.displayName && K.includes("<anonymous>") && (K = K.replace("<anonymous>", a.displayName)), typeof a == "function" && je.set(a, K), K;
|
|
275
275
|
}
|
|
276
|
-
while (
|
|
276
|
+
while (A >= 1 && V >= 0);
|
|
277
277
|
break;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
} finally {
|
|
281
|
-
|
|
281
|
+
Se = !1, we.current = _, On(), Error.prepareStackTrace = M;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
return typeof
|
|
283
|
+
var re = a ? a.displayName || a.name : "", te = re ? fe(re) : "";
|
|
284
|
+
return typeof a == "function" && je.set(a, te), te;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
return
|
|
286
|
+
function Pn(a, f, j) {
|
|
287
|
+
return Ke(a, !1);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
var
|
|
291
|
-
return !!(
|
|
289
|
+
function An(a) {
|
|
290
|
+
var f = a.prototype;
|
|
291
|
+
return !!(f && f.isReactComponent);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
if (
|
|
293
|
+
function ve(a, f, j) {
|
|
294
|
+
if (a == null)
|
|
295
295
|
return "";
|
|
296
|
-
if (typeof
|
|
297
|
-
return
|
|
298
|
-
if (typeof
|
|
299
|
-
return
|
|
300
|
-
switch (
|
|
301
|
-
case
|
|
302
|
-
return
|
|
296
|
+
if (typeof a == "function")
|
|
297
|
+
return Ke(a, An(a));
|
|
298
|
+
if (typeof a == "string")
|
|
299
|
+
return fe(a);
|
|
300
|
+
switch (a) {
|
|
301
|
+
case h:
|
|
302
|
+
return fe("Suspense");
|
|
303
303
|
case u:
|
|
304
|
-
return
|
|
304
|
+
return fe("SuspenseList");
|
|
305
305
|
}
|
|
306
|
-
if (typeof
|
|
307
|
-
switch (
|
|
308
|
-
case
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
return
|
|
312
|
-
case
|
|
313
|
-
var w =
|
|
306
|
+
if (typeof a == "object")
|
|
307
|
+
switch (a.$$typeof) {
|
|
308
|
+
case d:
|
|
309
|
+
return Pn(a.render);
|
|
310
|
+
case x:
|
|
311
|
+
return ve(a.type, f, j);
|
|
312
|
+
case m: {
|
|
313
|
+
var w = a, M = w._payload, _ = w._init;
|
|
314
314
|
try {
|
|
315
|
-
return
|
|
315
|
+
return ve(_(M), f, j);
|
|
316
316
|
} catch {
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
}
|
|
322
|
-
var
|
|
323
|
-
function
|
|
324
|
-
if (
|
|
325
|
-
var
|
|
326
|
-
|
|
322
|
+
var le = Object.prototype.hasOwnProperty, Ze = {}, Qe = v.ReactDebugCurrentFrame;
|
|
323
|
+
function pe(a) {
|
|
324
|
+
if (a) {
|
|
325
|
+
var f = a._owner, j = ve(a.type, a._source, f ? f.type : null);
|
|
326
|
+
Qe.setExtraStackFrame(j);
|
|
327
327
|
} else
|
|
328
|
-
|
|
328
|
+
Qe.setExtraStackFrame(null);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Vn(a, f, j, w, M) {
|
|
331
331
|
{
|
|
332
|
-
var _ = Function.call.bind(
|
|
333
|
-
for (var
|
|
334
|
-
if (_(
|
|
335
|
-
var
|
|
332
|
+
var _ = Function.call.bind(le);
|
|
333
|
+
for (var R in a)
|
|
334
|
+
if (_(a, R)) {
|
|
335
|
+
var $ = void 0;
|
|
336
336
|
try {
|
|
337
|
-
if (typeof
|
|
338
|
-
var
|
|
339
|
-
throw
|
|
337
|
+
if (typeof a[R] != "function") {
|
|
338
|
+
var G = Error((w || "React class") + ": " + j + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
339
|
+
throw G.name = "Invariant Violation", G;
|
|
340
340
|
}
|
|
341
|
-
|
|
342
|
-
} catch (
|
|
343
|
-
|
|
341
|
+
$ = a[R](f, R, w, j, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
342
|
+
} catch (A) {
|
|
343
|
+
$ = A;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
$ && !($ instanceof Error) && (pe(M), y("%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).", w || "React class", j, R, typeof $), pe(null)), $ instanceof Error && !($.message in Ze) && (Ze[$.message] = !0, pe(M), y("Failed %s type: %s", j, $.message), pe(null));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
var
|
|
350
|
-
function
|
|
351
|
-
return
|
|
349
|
+
var Ln = Array.isArray;
|
|
350
|
+
function $e(a) {
|
|
351
|
+
return Ln(a);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function In(a) {
|
|
354
354
|
{
|
|
355
|
-
var
|
|
355
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, j = f && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
356
356
|
return j;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Bn(a) {
|
|
360
360
|
try {
|
|
361
|
-
return
|
|
361
|
+
return en(a), !1;
|
|
362
362
|
} catch {
|
|
363
363
|
return !0;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
return "" +
|
|
366
|
+
function en(a) {
|
|
367
|
+
return "" + a;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
if (
|
|
371
|
-
return
|
|
369
|
+
function nn(a) {
|
|
370
|
+
if (Bn(a))
|
|
371
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", In(a)), en(a);
|
|
372
372
|
}
|
|
373
|
-
var
|
|
373
|
+
var ce = v.ReactCurrentOwner, Yn = {
|
|
374
374
|
key: !0,
|
|
375
375
|
ref: !0,
|
|
376
376
|
__self: !0,
|
|
377
377
|
__source: !0
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
function
|
|
381
|
-
if (
|
|
382
|
-
var
|
|
383
|
-
if (
|
|
378
|
+
}, tn, sn, Re;
|
|
379
|
+
Re = {};
|
|
380
|
+
function Wn(a) {
|
|
381
|
+
if (le.call(a, "ref")) {
|
|
382
|
+
var f = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
383
|
+
if (f && f.isReactWarning)
|
|
384
384
|
return !1;
|
|
385
385
|
}
|
|
386
|
-
return
|
|
386
|
+
return a.ref !== void 0;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
if (
|
|
390
|
-
var
|
|
391
|
-
if (
|
|
388
|
+
function zn(a) {
|
|
389
|
+
if (le.call(a, "key")) {
|
|
390
|
+
var f = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
391
|
+
if (f && f.isReactWarning)
|
|
392
392
|
return !1;
|
|
393
393
|
}
|
|
394
|
-
return
|
|
394
|
+
return a.key !== void 0;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
if (typeof
|
|
398
|
-
var j = W(
|
|
399
|
-
|
|
396
|
+
function Hn(a, f) {
|
|
397
|
+
if (typeof a.ref == "string" && ce.current && f && ce.current.stateNode !== f) {
|
|
398
|
+
var j = W(ce.current.type);
|
|
399
|
+
Re[j] || (y('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', W(ce.current.type), a.ref), Re[j] = !0);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function Gn(a, f) {
|
|
403
403
|
{
|
|
404
404
|
var j = function() {
|
|
405
|
-
|
|
405
|
+
tn || (tn = !0, y("%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));
|
|
406
406
|
};
|
|
407
|
-
j.isReactWarning = !0, Object.defineProperty(
|
|
407
|
+
j.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
408
408
|
get: j,
|
|
409
409
|
configurable: !0
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Xn(a, f) {
|
|
414
414
|
{
|
|
415
415
|
var j = function() {
|
|
416
|
-
|
|
416
|
+
sn || (sn = !0, y("%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));
|
|
417
417
|
};
|
|
418
|
-
j.isReactWarning = !0, Object.defineProperty(
|
|
418
|
+
j.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
419
419
|
get: j,
|
|
420
420
|
configurable: !0
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
var
|
|
425
|
-
var
|
|
424
|
+
var Un = function(a, f, j, w, M, _, R) {
|
|
425
|
+
var $ = {
|
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
427
427
|
$$typeof: t,
|
|
428
428
|
// Built-in properties that belong on the element
|
|
429
|
-
type:
|
|
430
|
-
key:
|
|
429
|
+
type: a,
|
|
430
|
+
key: f,
|
|
431
431
|
ref: j,
|
|
432
|
-
props:
|
|
432
|
+
props: R,
|
|
433
433
|
// Record the component responsible for creating this element.
|
|
434
434
|
_owner: _
|
|
435
435
|
};
|
|
436
|
-
return
|
|
436
|
+
return $._store = {}, Object.defineProperty($._store, "validated", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !0,
|
|
440
440
|
value: !1
|
|
441
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty($, "_self", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !1,
|
|
445
445
|
value: w
|
|
446
|
-
}), Object.defineProperty(
|
|
446
|
+
}), Object.defineProperty($, "_source", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
449
449
|
writable: !1,
|
|
450
|
-
value:
|
|
451
|
-
}), Object.freeze && (Object.freeze(
|
|
450
|
+
value: M
|
|
451
|
+
}), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
452
452
|
};
|
|
453
|
-
function
|
|
453
|
+
function qn(a, f, j, w, M) {
|
|
454
454
|
{
|
|
455
|
-
var _,
|
|
456
|
-
j !== void 0 && (
|
|
457
|
-
for (_ in
|
|
458
|
-
|
|
459
|
-
if (
|
|
460
|
-
var
|
|
461
|
-
for (_ in
|
|
462
|
-
|
|
455
|
+
var _, R = {}, $ = null, G = null;
|
|
456
|
+
j !== void 0 && (nn(j), $ = "" + j), zn(f) && (nn(f.key), $ = "" + f.key), Wn(f) && (G = f.ref, Hn(f, M));
|
|
457
|
+
for (_ in f)
|
|
458
|
+
le.call(f, _) && !Yn.hasOwnProperty(_) && (R[_] = f[_]);
|
|
459
|
+
if (a && a.defaultProps) {
|
|
460
|
+
var A = a.defaultProps;
|
|
461
|
+
for (_ in A)
|
|
462
|
+
R[_] === void 0 && (R[_] = A[_]);
|
|
463
463
|
}
|
|
464
|
-
if (
|
|
465
|
-
var
|
|
466
|
-
|
|
464
|
+
if ($ || G) {
|
|
465
|
+
var V = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
466
|
+
$ && Gn(R, V), G && Xn(R, V);
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return Un(a, $, G, M, w, ce.current, R);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
function
|
|
473
|
-
if (
|
|
474
|
-
var
|
|
475
|
-
|
|
471
|
+
var Te = v.ReactCurrentOwner, rn = v.ReactDebugCurrentFrame;
|
|
472
|
+
function se(a) {
|
|
473
|
+
if (a) {
|
|
474
|
+
var f = a._owner, j = ve(a.type, a._source, f ? f.type : null);
|
|
475
|
+
rn.setExtraStackFrame(j);
|
|
476
476
|
} else
|
|
477
|
-
|
|
477
|
+
rn.setExtraStackFrame(null);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
|
|
481
|
-
function
|
|
482
|
-
return typeof
|
|
479
|
+
var Me;
|
|
480
|
+
Me = !1;
|
|
481
|
+
function _e(a) {
|
|
482
|
+
return typeof a == "object" && a !== null && a.$$typeof === t;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function an() {
|
|
485
485
|
{
|
|
486
|
-
if (
|
|
487
|
-
var
|
|
488
|
-
if (
|
|
486
|
+
if (Te.current) {
|
|
487
|
+
var a = W(Te.current.type);
|
|
488
|
+
if (a)
|
|
489
489
|
return `
|
|
490
490
|
|
|
491
|
-
Check the render method of \`` +
|
|
491
|
+
Check the render method of \`` + a + "`.";
|
|
492
492
|
}
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Jn(a) {
|
|
497
497
|
{
|
|
498
|
-
if (
|
|
499
|
-
var
|
|
498
|
+
if (a !== void 0) {
|
|
499
|
+
var f = a.fileName.replace(/^.*[\\\/]/, ""), j = a.lineNumber;
|
|
500
500
|
return `
|
|
501
501
|
|
|
502
|
-
Check your code at ` +
|
|
502
|
+
Check your code at ` + f + ":" + j + ".";
|
|
503
503
|
}
|
|
504
504
|
return "";
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
var
|
|
508
|
-
function
|
|
507
|
+
var ln = {};
|
|
508
|
+
function Kn(a) {
|
|
509
509
|
{
|
|
510
|
-
var
|
|
511
|
-
if (!
|
|
512
|
-
var j = typeof
|
|
513
|
-
j && (
|
|
510
|
+
var f = an();
|
|
511
|
+
if (!f) {
|
|
512
|
+
var j = typeof a == "string" ? a : a.displayName || a.name;
|
|
513
|
+
j && (f = `
|
|
514
514
|
|
|
515
515
|
Check the top-level render call using <` + j + ">.");
|
|
516
516
|
}
|
|
517
|
-
return
|
|
517
|
+
return f;
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function cn(a, f) {
|
|
521
521
|
{
|
|
522
|
-
if (!
|
|
522
|
+
if (!a._store || a._store.validated || a.key != null)
|
|
523
523
|
return;
|
|
524
|
-
|
|
525
|
-
var j =
|
|
526
|
-
if (
|
|
524
|
+
a._store.validated = !0;
|
|
525
|
+
var j = Kn(f);
|
|
526
|
+
if (ln[j])
|
|
527
527
|
return;
|
|
528
|
-
|
|
528
|
+
ln[j] = !0;
|
|
529
529
|
var w = "";
|
|
530
|
-
|
|
530
|
+
a && a._owner && a._owner !== Te.current && (w = " It was passed a child from " + W(a._owner.type) + "."), se(a), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', j, w), se(null);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function on(a, f) {
|
|
534
534
|
{
|
|
535
|
-
if (typeof
|
|
535
|
+
if (typeof a != "object")
|
|
536
536
|
return;
|
|
537
|
-
if (
|
|
538
|
-
for (var j = 0; j <
|
|
539
|
-
var w =
|
|
540
|
-
|
|
537
|
+
if ($e(a))
|
|
538
|
+
for (var j = 0; j < a.length; j++) {
|
|
539
|
+
var w = a[j];
|
|
540
|
+
_e(w) && cn(w, f);
|
|
541
541
|
}
|
|
542
|
-
else if (
|
|
543
|
-
|
|
544
|
-
else if (
|
|
545
|
-
var
|
|
546
|
-
if (typeof
|
|
547
|
-
for (var _ =
|
|
548
|
-
|
|
542
|
+
else if (_e(a))
|
|
543
|
+
a._store && (a._store.validated = !0);
|
|
544
|
+
else if (a) {
|
|
545
|
+
var M = E(a);
|
|
546
|
+
if (typeof M == "function" && M !== a.entries)
|
|
547
|
+
for (var _ = M.call(a), R; !(R = _.next()).done; )
|
|
548
|
+
_e(R.value) && cn(R.value, f);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Zn(a) {
|
|
553
553
|
{
|
|
554
|
-
var
|
|
555
|
-
if (
|
|
554
|
+
var f = a.type;
|
|
555
|
+
if (f == null || typeof f == "string")
|
|
556
556
|
return;
|
|
557
557
|
var j;
|
|
558
|
-
if (typeof
|
|
559
|
-
j =
|
|
560
|
-
else if (typeof
|
|
558
|
+
if (typeof f == "function")
|
|
559
|
+
j = f.propTypes;
|
|
560
|
+
else if (typeof f == "object" && (f.$$typeof === d || // Note: Memo only checks outer props here.
|
|
561
561
|
// Inner props are checked in the reconciler.
|
|
562
|
-
|
|
563
|
-
j =
|
|
562
|
+
f.$$typeof === x))
|
|
563
|
+
j = f.propTypes;
|
|
564
564
|
else
|
|
565
565
|
return;
|
|
566
566
|
if (j) {
|
|
567
|
-
var w = W(
|
|
568
|
-
|
|
569
|
-
} else if (
|
|
570
|
-
|
|
571
|
-
var
|
|
572
|
-
|
|
567
|
+
var w = W(f);
|
|
568
|
+
Vn(j, a.props, "prop", w, a);
|
|
569
|
+
} else if (f.PropTypes !== void 0 && !Me) {
|
|
570
|
+
Me = !0;
|
|
571
|
+
var M = W(f);
|
|
572
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
|
|
573
573
|
}
|
|
574
|
-
typeof
|
|
574
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Qn(a) {
|
|
578
578
|
{
|
|
579
|
-
for (var
|
|
580
|
-
var w =
|
|
579
|
+
for (var f = Object.keys(a.props), j = 0; j < f.length; j++) {
|
|
580
|
+
var w = f[j];
|
|
581
581
|
if (w !== "children" && w !== "key") {
|
|
582
|
-
|
|
582
|
+
se(a), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), se(null);
|
|
583
583
|
break;
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
|
|
586
|
+
a.ref !== null && (se(a), y("Invalid attribute `ref` supplied to `React.Fragment`."), se(null));
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
var
|
|
590
|
-
function
|
|
589
|
+
var dn = {};
|
|
590
|
+
function un(a, f, j, w, M, _) {
|
|
591
591
|
{
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
var
|
|
595
|
-
(
|
|
596
|
-
var
|
|
597
|
-
|
|
598
|
-
var
|
|
599
|
-
|
|
592
|
+
var R = H(a);
|
|
593
|
+
if (!R) {
|
|
594
|
+
var $ = "";
|
|
595
|
+
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
|
+
var G = Jn(M);
|
|
597
|
+
G ? $ += G : $ += an();
|
|
598
|
+
var A;
|
|
599
|
+
a === null ? A = "null" : $e(a) ? A = "array" : a !== void 0 && a.$$typeof === t ? (A = "<" + (W(a.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : A = typeof a, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, $);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
601
|
+
var V = qn(a, f, j, M, _);
|
|
602
|
+
if (V == null)
|
|
603
|
+
return V;
|
|
604
|
+
if (R) {
|
|
605
|
+
var K = f.children;
|
|
606
|
+
if (K !== void 0)
|
|
607
607
|
if (w)
|
|
608
|
-
if (
|
|
609
|
-
for (var
|
|
610
|
-
|
|
611
|
-
Object.freeze && Object.freeze(
|
|
608
|
+
if ($e(K)) {
|
|
609
|
+
for (var re = 0; re < K.length; re++)
|
|
610
|
+
on(K[re], a);
|
|
611
|
+
Object.freeze && Object.freeze(K);
|
|
612
612
|
} else
|
|
613
|
-
|
|
613
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
|
|
615
|
+
on(K, a);
|
|
616
616
|
}
|
|
617
|
-
if (
|
|
618
|
-
var
|
|
619
|
-
return
|
|
620
|
-
}),
|
|
621
|
-
if (!
|
|
622
|
-
var
|
|
623
|
-
|
|
617
|
+
if (le.call(f, "key")) {
|
|
618
|
+
var te = W(a), U = Object.keys(f).filter(function(at) {
|
|
619
|
+
return at !== "key";
|
|
620
|
+
}), De = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
621
|
+
if (!dn[te + De]) {
|
|
622
|
+
var rt = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
|
|
623
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
624
624
|
let props = %s;
|
|
625
625
|
<%s {...props} />
|
|
626
626
|
React keys must be passed directly to JSX without using spread:
|
|
627
627
|
let props = %s;
|
|
628
|
-
<%s key={someKey} {...props} />`,
|
|
628
|
+
<%s key={someKey} {...props} />`, De, te, rt, te), dn[te + De] = !0;
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
return
|
|
631
|
+
return a === r ? Qn(V) : Zn(V), V;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
return
|
|
634
|
+
function et(a, f, j) {
|
|
635
|
+
return un(a, f, j, !0);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
return
|
|
637
|
+
function nt(a, f, j) {
|
|
638
|
+
return un(a, f, j, !1);
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
|
|
642
|
-
}()),
|
|
640
|
+
var tt = nt, st = et;
|
|
641
|
+
oe.Fragment = r, oe.jsx = tt, oe.jsxs = st;
|
|
642
|
+
}()), oe;
|
|
643
643
|
}
|
|
644
|
-
process.env.NODE_ENV === "production" ?
|
|
645
|
-
var e =
|
|
646
|
-
const
|
|
644
|
+
process.env.NODE_ENV === "production" ? Le.exports = ct() : Le.exports = it();
|
|
645
|
+
var e = Le.exports;
|
|
646
|
+
const ot = (n) => xe({ ...n, className: (n.className ?? "") + " outline-button" }), Y = (n) => xe({ ...n, className: (n.className ?? "") + " text-button" }), dt = (n) => xe({ ...n, className: (n.className ?? "") + " total-button" }), ut = (n) => xe({ ...n, className: (n.className ?? "") + " filled-button" }), xe = (n) => {
|
|
647
647
|
const t = (s) => {
|
|
648
648
|
n.onClick && n.onClick(s);
|
|
649
|
-
let
|
|
650
|
-
|
|
651
|
-
let
|
|
652
|
-
|
|
653
|
-
|
|
649
|
+
let r = document.createElement("span");
|
|
650
|
+
r.classList.add("btn-overlay");
|
|
651
|
+
let l = s.pageX - s.currentTarget.offsetLeft, c = s.pageY - s.currentTarget.offsetTop;
|
|
652
|
+
r.style.left = l + "px", r.style.top = c + "px", s.currentTarget.appendChild(r), setTimeout(() => {
|
|
653
|
+
r.remove();
|
|
654
654
|
}, 500);
|
|
655
655
|
};
|
|
656
656
|
return /* @__PURE__ */ e.jsx("button", { ...n, className: (n.className ?? "") + " btn", onClick: t, children: /* @__PURE__ */ e.jsx("span", { children: n.children }) });
|
|
657
|
-
},
|
|
658
|
-
const tt = ({ children: n, className: t, maxHeight: s, scroll: a, transparent: i }) => /* @__PURE__ */ e.jsx("ul", { style: { overflowY: s ? a ? "scroll" : "hidden" : void 0, maxHeight: s, backgroundColor: i ? "transparent" : void 0 }, className: `list-container ${t} ${a ? "scroll" : ""}`, children: n }), st = ({ icon: n, control: t, text: s, header: a, value: i, onClick: l, hovered: d, className: c }) => {
|
|
659
|
-
const o = (x) => {
|
|
660
|
-
x.target.closest(".control-container") || l && l(x);
|
|
661
|
-
};
|
|
662
|
-
return /* @__PURE__ */ e.jsxs("li", { className: ` ${c} list-item-container ${d ? "hovered" : ""}`, onClick: o, children: [
|
|
663
|
-
n ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: n }) : i ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: i }) : null,
|
|
664
|
-
s ? /* @__PURE__ */ e.jsxs("div", { className: "text-container", children: [
|
|
665
|
-
/* @__PURE__ */ e.jsx("div", { className: "header", children: a }),
|
|
666
|
-
/* @__PURE__ */ e.jsx("div", { className: "text", children: s })
|
|
667
|
-
] }) : /* @__PURE__ */ e.jsx("div", { className: "text-container", children: /* @__PURE__ */ e.jsx("div", { className: "header", children: a }) }),
|
|
668
|
-
t ? /* @__PURE__ */ e.jsx("div", { className: "control-container", children: t }) : null
|
|
669
|
-
] });
|
|
670
|
-
};
|
|
671
|
-
const le = ({ transparent: n, icon: t, className: s, onClick: a, onContextMenu: i, disabled: l, classNameContainer: d, style: c }) => {
|
|
672
|
-
const o = (x) => {
|
|
673
|
-
a && a(x);
|
|
674
|
-
let u = document.createElement("span");
|
|
675
|
-
u.classList.add("btn-overlay");
|
|
676
|
-
let m = x.pageX - x.currentTarget.offsetLeft, f = x.pageY - x.currentTarget.offsetTop;
|
|
677
|
-
u.style.left = m + "px", u.style.top = f + "px", x.currentTarget.appendChild(u), setTimeout(() => {
|
|
678
|
-
u.remove();
|
|
679
|
-
}, 500);
|
|
680
|
-
};
|
|
681
|
-
return /* @__PURE__ */ e.jsx("button", { style: { backgroundColor: n ? "transparent" : void 0, ...c }, className: `iconbutton ${s}`, onClick: o, onContextMenu: i, disabled: l, children: /* @__PURE__ */ e.jsx("div", { className: `${d} iconbutton-container`, children: t }) });
|
|
682
|
-
};
|
|
683
|
-
const es = ({ className: n, action: t, imgSrc: s, alt: a, header: i, subhead: l, text: d, children: c, iconButtonCell: o, onClick: x }) => {
|
|
684
|
-
const u = (f) => !(f.target.className === "action-container" || f.target.closest(".action-container") || f.target.className === "icon-button-container" || f.target.closest(".icon-button-container")), m = (f) => {
|
|
685
|
-
if (x && x(f), !u(f))
|
|
686
|
-
return;
|
|
687
|
-
let p = f.currentTarget.closest(".card-container"), N = p == null ? void 0 : p.querySelector(".blick-container");
|
|
688
|
-
if (!N)
|
|
689
|
-
return;
|
|
690
|
-
let g = document.createElement("span");
|
|
691
|
-
g.classList.add("btn-overlay");
|
|
692
|
-
let E = f.pageX - f.currentTarget.offsetLeft, v = f.pageY - f.currentTarget.offsetTop;
|
|
693
|
-
g.style.left = E + "px", g.style.top = v + "px", N.appendChild(g), setTimeout(() => {
|
|
694
|
-
g.remove();
|
|
695
|
-
}, 500);
|
|
696
|
-
};
|
|
697
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `card-container ${n}`, onClick: m, children: [
|
|
698
|
-
/* @__PURE__ */ e.jsx("div", { className: "blick-container" }),
|
|
699
|
-
s ? /* @__PURE__ */ e.jsx("div", { className: "card-img-container", children: /* @__PURE__ */ e.jsx("img", { src: s, alt: a }) }) : null,
|
|
700
|
-
/* @__PURE__ */ e.jsxs("div", { className: "card-content-container", children: [
|
|
701
|
-
/* @__PURE__ */ e.jsxs("div", { className: "card-Headline-container mb-1 font-bold", children: [
|
|
702
|
-
/* @__PURE__ */ e.jsx("div", { className: "headline", children: /* @__PURE__ */ e.jsx("h2", { className: "text-3xl", children: i }) }),
|
|
703
|
-
o ? /* @__PURE__ */ e.jsx("div", { className: "icon-button-container", children: o }) : null
|
|
704
|
-
] }),
|
|
705
|
-
l ? /* @__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: l }) }) }) : null,
|
|
706
|
-
d ? /* @__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: d }) }) }) : null,
|
|
707
|
-
c ? /* @__PURE__ */ e.jsx("div", { className: "card-child-container mb-2", children: c }) : null,
|
|
708
|
-
/* @__PURE__ */ e.jsx("div", { className: "action-container", children: t })
|
|
709
|
-
] })
|
|
710
|
-
] });
|
|
711
|
-
};
|
|
712
|
-
const rt = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${t ?? ""}`, children: n });
|
|
713
|
-
const ns = ({ children: n, className: t, id: s, height: a, width: i, pozMove: l }) => {
|
|
714
|
-
const [d, c] = k(!1), [o, x] = k(null), [u, m] = k({ x: 0, y: 0 }), f = (g) => {
|
|
715
|
-
g.button == 1 && (c(!1), x(null), document.body.style.cursor = "auto");
|
|
716
|
-
}, p = (g) => {
|
|
717
|
-
g.button == 1 && (x({ x: g.clientX, y: g.clientY }), c(!0), document.body.style.cursor = "move");
|
|
718
|
-
}, N = C((g) => {
|
|
719
|
-
d && (m((E) => {
|
|
720
|
-
if (!o)
|
|
721
|
-
return E;
|
|
722
|
-
const v = g.clientX - o.x, b = g.clientY - o.y;
|
|
723
|
-
let O = E.x + v, y = E.y + b;
|
|
724
|
-
return { x: O, y };
|
|
725
|
-
}), x({ x: g.clientX, y: g.clientY }));
|
|
726
|
-
}, [d, o]);
|
|
727
|
-
return P(() => {
|
|
728
|
-
l && m({ ...l });
|
|
729
|
-
}, [l]), /* @__PURE__ */ e.jsx("div", { id: s, style: { height: a, width: i }, className: `big-container ${t}`, onMouseDown: p, onMouseUp: f, onMouseMove: N, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: u.x, top: u.y }, children: n }) });
|
|
730
|
-
};
|
|
731
|
-
const at = (n) => {
|
|
732
|
-
const [t, s] = k(!1), a = C(() => {
|
|
733
|
-
s(!0), setTimeout(() => {
|
|
734
|
-
n.onHide(), s(!1);
|
|
735
|
-
}, 200);
|
|
736
|
-
}, [n.onHide]);
|
|
737
|
-
return P(() => {
|
|
738
|
-
n.visible || a();
|
|
739
|
-
}, [n.visible, a]), !n.visible && !t || !n.children ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
740
|
-
/* @__PURE__ */ e.jsxs("div", { className: `bottom-sheets ${t ? "hide" : ""}`, children: [
|
|
741
|
-
/* @__PURE__ */ e.jsx("div", { className: "bottom-sheets-handle", children: /* @__PURE__ */ e.jsx("span", {}) }),
|
|
742
|
-
/* @__PURE__ */ e.jsx("div", { className: "bottom-sheets-content", children: n.children })
|
|
743
|
-
] }),
|
|
744
|
-
/* @__PURE__ */ e.jsx("div", { className: "backplate bottom-sheets-backplate", style: { zIndex: 1101 }, onClick: a })
|
|
745
|
-
] });
|
|
746
|
-
};
|
|
747
|
-
const ts = ({ name: n, checked: t, onChange: s, readOnly: a, checkIcon: i }) => /* @__PURE__ */ e.jsxs("label", { className: "checkbox-container", children: [
|
|
748
|
-
/* @__PURE__ */ e.jsx("input", { className: "checkbox", name: n, type: "checkbox", checked: t, onChange: s, readOnly: a }),
|
|
749
|
-
/* @__PURE__ */ e.jsx("span", { children: i || /* @__PURE__ */ e.jsx("span", { className: "checkbox-ckeck-icon", children: "✓" }) })
|
|
750
|
-
] });
|
|
657
|
+
}, yn = ({ styleType: n = "base", ...t }) => n === "outline" ? ot({ ...t }) : n === "text" ? Y({ ...t }) : n === "filledTotal" ? dt({ ...t }) : n === "filled" ? ut({ ...t }) : xe({ ...t });
|
|
751
658
|
/**
|
|
752
659
|
* @license lucide-react v0.378.0 - ISC
|
|
753
660
|
*
|
|
754
661
|
* This source code is licensed under the ISC license.
|
|
755
662
|
* See the LICENSE file in the root directory of this source tree.
|
|
756
663
|
*/
|
|
757
|
-
const
|
|
664
|
+
const ht = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Nn = (...n) => n.filter((t, s, r) => !!t && r.indexOf(t) === s).join(" ");
|
|
758
665
|
/**
|
|
759
666
|
* @license lucide-react v0.378.0 - ISC
|
|
760
667
|
*
|
|
761
668
|
* This source code is licensed under the ISC license.
|
|
762
669
|
* See the LICENSE file in the root directory of this source tree.
|
|
763
670
|
*/
|
|
764
|
-
var
|
|
671
|
+
var xt = {
|
|
765
672
|
xmlns: "http://www.w3.org/2000/svg",
|
|
766
673
|
width: 24,
|
|
767
674
|
height: 24,
|
|
@@ -778,31 +685,31 @@ var it = {
|
|
|
778
685
|
* This source code is licensed under the ISC license.
|
|
779
686
|
* See the LICENSE file in the root directory of this source tree.
|
|
780
687
|
*/
|
|
781
|
-
const
|
|
688
|
+
const mt = bn(
|
|
782
689
|
({
|
|
783
690
|
color: n = "currentColor",
|
|
784
691
|
size: t = 24,
|
|
785
692
|
strokeWidth: s = 2,
|
|
786
|
-
absoluteStrokeWidth:
|
|
787
|
-
className:
|
|
788
|
-
children:
|
|
789
|
-
iconNode:
|
|
790
|
-
...
|
|
791
|
-
},
|
|
693
|
+
absoluteStrokeWidth: r,
|
|
694
|
+
className: l = "",
|
|
695
|
+
children: c,
|
|
696
|
+
iconNode: o,
|
|
697
|
+
...i
|
|
698
|
+
}, d) => Ve(
|
|
792
699
|
"svg",
|
|
793
700
|
{
|
|
794
|
-
ref:
|
|
795
|
-
...
|
|
701
|
+
ref: d,
|
|
702
|
+
...xt,
|
|
796
703
|
width: t,
|
|
797
704
|
height: t,
|
|
798
705
|
stroke: n,
|
|
799
|
-
strokeWidth:
|
|
800
|
-
className:
|
|
801
|
-
...
|
|
706
|
+
strokeWidth: r ? Number(s) * 24 / Number(t) : s,
|
|
707
|
+
className: Nn("lucide", l),
|
|
708
|
+
...i
|
|
802
709
|
},
|
|
803
710
|
[
|
|
804
|
-
...
|
|
805
|
-
...Array.isArray(
|
|
711
|
+
...o.map(([h, u]) => Ve(h, u)),
|
|
712
|
+
...Array.isArray(c) ? c : [c]
|
|
806
713
|
]
|
|
807
714
|
)
|
|
808
715
|
);
|
|
@@ -812,13 +719,13 @@ const lt = un(
|
|
|
812
719
|
* This source code is licensed under the ISC license.
|
|
813
720
|
* See the LICENSE file in the root directory of this source tree.
|
|
814
721
|
*/
|
|
815
|
-
const
|
|
816
|
-
const s =
|
|
817
|
-
({ className:
|
|
818
|
-
ref:
|
|
722
|
+
const L = (n, t) => {
|
|
723
|
+
const s = bn(
|
|
724
|
+
({ className: r, ...l }, c) => Ve(mt, {
|
|
725
|
+
ref: c,
|
|
819
726
|
iconNode: t,
|
|
820
|
-
className:
|
|
821
|
-
...
|
|
727
|
+
className: Nn(`lucide-${ht(n)}`, r),
|
|
728
|
+
...l
|
|
822
729
|
})
|
|
823
730
|
);
|
|
824
731
|
return s.displayName = `${n}`, s;
|
|
@@ -829,7 +736,7 @@ const A = (n, t) => {
|
|
|
829
736
|
* This source code is licensed under the ISC license.
|
|
830
737
|
* See the LICENSE file in the root directory of this source tree.
|
|
831
738
|
*/
|
|
832
|
-
const
|
|
739
|
+
const kn = L("AlignJustify", [
|
|
833
740
|
["line", { x1: "3", x2: "21", y1: "6", y2: "6", key: "4m8b97" }],
|
|
834
741
|
["line", { x1: "3", x2: "21", y1: "12", y2: "12", key: "10d38w" }],
|
|
835
742
|
["line", { x1: "3", x2: "21", y1: "18", y2: "18", key: "kwyyxn" }]
|
|
@@ -840,7 +747,7 @@ const mn = A("AlignJustify", [
|
|
|
840
747
|
* This source code is licensed under the ISC license.
|
|
841
748
|
* See the LICENSE file in the root directory of this source tree.
|
|
842
749
|
*/
|
|
843
|
-
const
|
|
750
|
+
const ft = L("ArrowLeft", [
|
|
844
751
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
845
752
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
846
753
|
]);
|
|
@@ -850,7 +757,7 @@ const ot = A("ArrowLeft", [
|
|
|
850
757
|
* This source code is licensed under the ISC license.
|
|
851
758
|
* See the LICENSE file in the root directory of this source tree.
|
|
852
759
|
*/
|
|
853
|
-
const
|
|
760
|
+
const jt = L("CalendarDays", [
|
|
854
761
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
855
762
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
856
763
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -868,14 +775,14 @@ const dt = A("CalendarDays", [
|
|
|
868
775
|
* This source code is licensed under the ISC license.
|
|
869
776
|
* See the LICENSE file in the root directory of this source tree.
|
|
870
777
|
*/
|
|
871
|
-
const
|
|
778
|
+
const he = L("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
872
779
|
/**
|
|
873
780
|
* @license lucide-react v0.378.0 - ISC
|
|
874
781
|
*
|
|
875
782
|
* This source code is licensed under the ISC license.
|
|
876
783
|
* See the LICENSE file in the root directory of this source tree.
|
|
877
784
|
*/
|
|
878
|
-
const
|
|
785
|
+
const mn = L("ChevronDown", [
|
|
879
786
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
880
787
|
]);
|
|
881
788
|
/**
|
|
@@ -884,7 +791,7 @@ const cn = A("ChevronDown", [
|
|
|
884
791
|
* This source code is licensed under the ISC license.
|
|
885
792
|
* See the LICENSE file in the root directory of this source tree.
|
|
886
793
|
*/
|
|
887
|
-
const
|
|
794
|
+
const Ye = L("CircleMinus", [
|
|
888
795
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
889
796
|
["path", { d: "M8 12h8", key: "1wcyev" }]
|
|
890
797
|
]);
|
|
@@ -894,7 +801,7 @@ const Fe = A("CircleMinus", [
|
|
|
894
801
|
* This source code is licensed under the ISC license.
|
|
895
802
|
* See the LICENSE file in the root directory of this source tree.
|
|
896
803
|
*/
|
|
897
|
-
const
|
|
804
|
+
const Cn = L("CirclePlus", [
|
|
898
805
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
899
806
|
["path", { d: "M8 12h8", key: "1wcyev" }],
|
|
900
807
|
["path", { d: "M12 8v8", key: "napkw2" }]
|
|
@@ -905,7 +812,7 @@ const fn = A("CirclePlus", [
|
|
|
905
812
|
* This source code is licensed under the ISC license.
|
|
906
813
|
* See the LICENSE file in the root directory of this source tree.
|
|
907
814
|
*/
|
|
908
|
-
const
|
|
815
|
+
const wn = L("CircleX", [
|
|
909
816
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
910
817
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
911
818
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -916,7 +823,7 @@ const jn = A("CircleX", [
|
|
|
916
823
|
* This source code is licensed under the ISC license.
|
|
917
824
|
* See the LICENSE file in the root directory of this source tree.
|
|
918
825
|
*/
|
|
919
|
-
const
|
|
826
|
+
const En = L("Clock3", [
|
|
920
827
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
921
828
|
["polyline", { points: "12 6 12 12 16.5 12", key: "1aq6pp" }]
|
|
922
829
|
]);
|
|
@@ -926,7 +833,7 @@ const vn = A("Clock3", [
|
|
|
926
833
|
* This source code is licensed under the ISC license.
|
|
927
834
|
* See the LICENSE file in the root directory of this source tree.
|
|
928
835
|
*/
|
|
929
|
-
const
|
|
836
|
+
const vt = L("EllipsisVertical", [
|
|
930
837
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
931
838
|
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
932
839
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
@@ -937,7 +844,7 @@ const ut = A("EllipsisVertical", [
|
|
|
937
844
|
* This source code is licensed under the ISC license.
|
|
938
845
|
* See the LICENSE file in the root directory of this source tree.
|
|
939
846
|
*/
|
|
940
|
-
const
|
|
847
|
+
const Ie = L("Ellipsis", [
|
|
941
848
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
942
849
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
943
850
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
@@ -948,7 +855,7 @@ const Me = A("Ellipsis", [
|
|
|
948
855
|
* This source code is licensed under the ISC license.
|
|
949
856
|
* See the LICENSE file in the root directory of this source tree.
|
|
950
857
|
*/
|
|
951
|
-
const
|
|
858
|
+
const pt = L("Keyboard", [
|
|
952
859
|
["path", { d: "M10 8h.01", key: "1r9ogq" }],
|
|
953
860
|
["path", { d: "M12 12h.01", key: "1mp3jc" }],
|
|
954
861
|
["path", { d: "M14 8h.01", key: "1primd" }],
|
|
@@ -965,14 +872,33 @@ const xt = A("Keyboard", [
|
|
|
965
872
|
* This source code is licensed under the ISC license.
|
|
966
873
|
* See the LICENSE file in the root directory of this source tree.
|
|
967
874
|
*/
|
|
968
|
-
const
|
|
875
|
+
const gt = L("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]);
|
|
969
876
|
/**
|
|
970
877
|
* @license lucide-react v0.378.0 - ISC
|
|
971
878
|
*
|
|
972
879
|
* This source code is licensed under the ISC license.
|
|
973
880
|
* See the LICENSE file in the root directory of this source tree.
|
|
974
881
|
*/
|
|
975
|
-
const
|
|
882
|
+
const bt = L("Palette", [
|
|
883
|
+
["circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor", key: "1okk4w" }],
|
|
884
|
+
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
885
|
+
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }],
|
|
886
|
+
["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
|
|
887
|
+
[
|
|
888
|
+
"path",
|
|
889
|
+
{
|
|
890
|
+
d: "M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",
|
|
891
|
+
key: "12rzf8"
|
|
892
|
+
}
|
|
893
|
+
]
|
|
894
|
+
]);
|
|
895
|
+
/**
|
|
896
|
+
* @license lucide-react v0.378.0 - ISC
|
|
897
|
+
*
|
|
898
|
+
* This source code is licensed under the ISC license.
|
|
899
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
900
|
+
*/
|
|
901
|
+
const yt = L("Pen", [
|
|
976
902
|
["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }]
|
|
977
903
|
]);
|
|
978
904
|
/**
|
|
@@ -981,7 +907,7 @@ const mt = A("Pen", [
|
|
|
981
907
|
* This source code is licensed under the ISC license.
|
|
982
908
|
* See the LICENSE file in the root directory of this source tree.
|
|
983
909
|
*/
|
|
984
|
-
const
|
|
910
|
+
const Nt = L("Plus", [
|
|
985
911
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
986
912
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
987
913
|
]);
|
|
@@ -991,7 +917,7 @@ const ft = A("Plus", [
|
|
|
991
917
|
* This source code is licensed under the ISC license.
|
|
992
918
|
* See the LICENSE file in the root directory of this source tree.
|
|
993
919
|
*/
|
|
994
|
-
const
|
|
920
|
+
const kt = L("Search", [
|
|
995
921
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
996
922
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
997
923
|
]);
|
|
@@ -1001,7 +927,7 @@ const jt = A("Search", [
|
|
|
1001
927
|
* This source code is licensed under the ISC license.
|
|
1002
928
|
* See the LICENSE file in the root directory of this source tree.
|
|
1003
929
|
*/
|
|
1004
|
-
const
|
|
930
|
+
const Ct = L("Trash2", [
|
|
1005
931
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
1006
932
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
1007
933
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
@@ -1014,84 +940,462 @@ const vt = A("Trash2", [
|
|
|
1014
940
|
* This source code is licensed under the ISC license.
|
|
1015
941
|
* See the LICENSE file in the root directory of this source tree.
|
|
1016
942
|
*/
|
|
1017
|
-
const
|
|
943
|
+
const Ce = L("X", [
|
|
1018
944
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
1019
945
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
1020
946
|
]);
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1023
|
-
|
|
947
|
+
const We = ({ children: n, container: t }) => t ? lt.createPortal(
|
|
948
|
+
n,
|
|
949
|
+
t
|
|
950
|
+
) : /* @__PURE__ */ e.jsx("p", { children: "container not found" });
|
|
951
|
+
function wt(n, t, s) {
|
|
952
|
+
if (!(!n || !t)) {
|
|
953
|
+
n.clearRect(0, 0, t.width, t.height), s || (s = "#ff0000"), n.fillStyle = s, n.fillRect(0, 0, t.width, t.height);
|
|
954
|
+
var r = n.createLinearGradient(0, 0, t.width, 0);
|
|
955
|
+
r.addColorStop(0, "#fff"), r.addColorStop(1, "transparent"), n.fillStyle = r, n.fillRect(0, 0, t.width, t.height);
|
|
956
|
+
var l = n.createLinearGradient(0, 0, 0, t.height);
|
|
957
|
+
l.addColorStop(0, "transparent"), l.addColorStop(1, "#000"), n.fillStyle = l, n.fillRect(0, 0, t.width, t.height);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
function Et(n, t, s, r) {
|
|
961
|
+
!t || !n || n.addEventListener("mousedown", function(l) {
|
|
962
|
+
St(l, n, s, r);
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
function fn(n, t, s, r) {
|
|
966
|
+
if (n.preventDefault(), !t)
|
|
967
|
+
return;
|
|
968
|
+
const l = t.getBoundingClientRect();
|
|
969
|
+
let c = n.pageY - l.top;
|
|
970
|
+
c > l.height && (c = l.height), c < 0 && (c = 0);
|
|
971
|
+
let o = n.pageX - l.left;
|
|
972
|
+
o > l.width && (o = l.width), o < 0 && (o = 0);
|
|
973
|
+
const i = c / l.height, d = o / l.width, h = 100 - 100 * i, u = 100 * d;
|
|
974
|
+
r(Math.round(u), Math.round(h)), Sn(s, o, c);
|
|
975
|
+
}
|
|
976
|
+
function St(n, t, s, r) {
|
|
977
|
+
const l = (o) => fn(o, t, s, r);
|
|
978
|
+
fn(n, t, s, r), s.classList.add("dragging"), window.addEventListener("mousemove", l), window.addEventListener("mouseup", c);
|
|
979
|
+
function c() {
|
|
980
|
+
s.classList.remove("dragging"), window.removeEventListener("mousemove", l), window.removeEventListener("mouseup", c);
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
function Sn(n, t, s) {
|
|
984
|
+
n.style.top = s + "px", n.style.left = t + "px";
|
|
985
|
+
}
|
|
986
|
+
function $t(n, t) {
|
|
987
|
+
if (!n || !t)
|
|
988
|
+
return;
|
|
989
|
+
const s = n.createLinearGradient(0, 0, 0, t.height);
|
|
990
|
+
s.addColorStop(0, "hsl(0, 100%, 50%)"), s.addColorStop(0.17, "hsl(298.8, 100%, 50%)"), s.addColorStop(0.33, "hsl(241.2, 100%, 50%)"), s.addColorStop(0.5, "hsl(180, 100%, 50%)"), s.addColorStop(0.67, "hsl(118.8, 100%, 50%)"), s.addColorStop(0.83, "hsl(61.2, 100%, 50%)"), s.addColorStop(1, "hsl(360, 100%, 50%)"), n.fillStyle = s, n.fillRect(0, 0, t.width, t.height);
|
|
991
|
+
}
|
|
992
|
+
function Rt(n, t, s, r) {
|
|
993
|
+
!n || !t || t.addEventListener("mousedown", function(l) {
|
|
994
|
+
Tt(l, s, t, r);
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
function jn(n, t, s, r) {
|
|
998
|
+
if (n.preventDefault(), !t)
|
|
999
|
+
return;
|
|
1000
|
+
const l = t.getBoundingClientRect();
|
|
1001
|
+
let c = n.pageY - l.top;
|
|
1002
|
+
c > l.height && (c = l.height), c < 0 && (c = 0);
|
|
1003
|
+
const i = 360 - 360 * (c / l.height);
|
|
1004
|
+
r(i), $n(s, c);
|
|
1005
|
+
}
|
|
1006
|
+
function Tt(n, t, s, r) {
|
|
1007
|
+
const l = (o) => jn(o, s, t, r);
|
|
1008
|
+
jn(n, s, t, r), t.classList.add("dragging"), window.addEventListener("mousemove", l), window.addEventListener("mouseup", c);
|
|
1009
|
+
function c() {
|
|
1010
|
+
t.classList.remove("dragging"), window.removeEventListener("mousemove", l), window.removeEventListener("mouseup", c);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
function $n(n, t) {
|
|
1014
|
+
n.style.top = t + "px";
|
|
1015
|
+
}
|
|
1016
|
+
function de(n, t, s) {
|
|
1017
|
+
var r, l, c, o, i, d, h, u;
|
|
1018
|
+
switch (arguments.length === 1 && (t = n.s, s = n.v, n = n.h), o = Math.floor(n * 6), i = n * 6 - o, d = s * (1 - t), h = s * (1 - i * t), u = s * (1 - (1 - i) * t), o % 6) {
|
|
1019
|
+
case 0:
|
|
1020
|
+
r = s, l = u, c = d;
|
|
1021
|
+
break;
|
|
1022
|
+
case 1:
|
|
1023
|
+
r = h, l = s, c = d;
|
|
1024
|
+
break;
|
|
1025
|
+
case 2:
|
|
1026
|
+
r = d, l = s, c = u;
|
|
1027
|
+
break;
|
|
1028
|
+
case 3:
|
|
1029
|
+
r = d, l = h, c = s;
|
|
1030
|
+
break;
|
|
1031
|
+
case 4:
|
|
1032
|
+
r = u, l = d, c = s;
|
|
1033
|
+
break;
|
|
1034
|
+
case 5:
|
|
1035
|
+
r = s, l = d, c = h;
|
|
1036
|
+
break;
|
|
1037
|
+
}
|
|
1038
|
+
return {
|
|
1039
|
+
r: Math.round(r * 255),
|
|
1040
|
+
g: Math.round(l * 255),
|
|
1041
|
+
b: Math.round(c * 255)
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
function Fe(n) {
|
|
1045
|
+
let t = n.toString(16);
|
|
1046
|
+
return t.length === 1 && (t = "0" + t), t;
|
|
1047
|
+
}
|
|
1048
|
+
function ae(n) {
|
|
1049
|
+
return Fe(n.r) + Fe(n.g) + Fe(n.b);
|
|
1050
|
+
}
|
|
1051
|
+
function ge(n, t, s) {
|
|
1052
|
+
arguments.length === 1 && (t = n.g, s = n.b, n = n.r);
|
|
1053
|
+
var r = Math.max(n, t, s), l = Math.min(n, t, s), c = r - l, o, i = r === 0 ? 0 : c / r, d = r / 255;
|
|
1054
|
+
switch (r) {
|
|
1055
|
+
case l:
|
|
1056
|
+
o = 0;
|
|
1057
|
+
break;
|
|
1058
|
+
case n:
|
|
1059
|
+
o = t - s + c * (t < s ? 6 : 0), o /= 6 * c;
|
|
1060
|
+
break;
|
|
1061
|
+
case t:
|
|
1062
|
+
o = s - n + c * 2, o /= 6 * c;
|
|
1063
|
+
break;
|
|
1064
|
+
case s:
|
|
1065
|
+
o = n - t + c * 4, o /= 6 * c;
|
|
1066
|
+
break;
|
|
1067
|
+
}
|
|
1068
|
+
return {
|
|
1069
|
+
h: o,
|
|
1070
|
+
s: i,
|
|
1071
|
+
v: d
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
function Ne(n) {
|
|
1075
|
+
var t = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
|
|
1076
|
+
n = n.replace(t, function(r, l, c, o) {
|
|
1077
|
+
return l + l + c + c + o + o;
|
|
1078
|
+
});
|
|
1079
|
+
var s = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);
|
|
1080
|
+
return s ? {
|
|
1081
|
+
r: parseInt(s[1], 16),
|
|
1082
|
+
g: parseInt(s[2], 16),
|
|
1083
|
+
b: parseInt(s[3], 16)
|
|
1084
|
+
} : null;
|
|
1085
|
+
}
|
|
1086
|
+
const Mt = Ne, _t = (n) => {
|
|
1087
|
+
if (!n)
|
|
1088
|
+
return "linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0))";
|
|
1089
|
+
const t = Mt(n);
|
|
1090
|
+
return t ? `linear-gradient(135deg, rgba(${t.r}, ${t.g}, ${t.b}, 0.1), rgba(${t.r}, ${t.g}, ${t.b}, 0))` : "linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0))";
|
|
1091
|
+
};
|
|
1092
|
+
const Dt = ({ children: n, onHide: t }) => {
|
|
1093
|
+
function s() {
|
|
1094
|
+
t && t();
|
|
1095
|
+
}
|
|
1096
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "modal-container", children: [
|
|
1097
|
+
/* @__PURE__ */ e.jsx("div", { onClick: s, className: "backplate" }),
|
|
1098
|
+
n
|
|
1099
|
+
] });
|
|
1100
|
+
}, ne = ({ className: n, children: t, header: s, action: r, onHide: l, style: c, clearStyle: o = !1 }) => {
|
|
1101
|
+
function i() {
|
|
1102
|
+
l && l();
|
|
1103
|
+
}
|
|
1104
|
+
return /* @__PURE__ */ e.jsx(Dt, { onHide: i, children: /* @__PURE__ */ e.jsxs("div", { style: c, className: `${o ? "" : "dialog-container"} dialog-container-base ${n}`, children: [
|
|
1105
|
+
s ? /* @__PURE__ */ e.jsx("div", { className: "dialog-header", children: /* @__PURE__ */ e.jsx("h2", { className: "text-3xl", children: s }) }) : null,
|
|
1106
|
+
/* @__PURE__ */ e.jsx("div", { className: "dialog-content", children: t }),
|
|
1107
|
+
r ? /* @__PURE__ */ e.jsx("div", { className: "dialog-action", children: r }) : null
|
|
1108
|
+
] }) });
|
|
1109
|
+
}, Ot = [
|
|
1110
|
+
"#FFFFFF",
|
|
1111
|
+
"#FFFB0D",
|
|
1112
|
+
"#0532FF",
|
|
1113
|
+
"#FF9300",
|
|
1114
|
+
"#00F91A",
|
|
1115
|
+
"#FF2700",
|
|
1116
|
+
"#000000",
|
|
1117
|
+
"#686868",
|
|
1118
|
+
"#EE5464",
|
|
1119
|
+
"#D27AEE",
|
|
1120
|
+
"#5BA8C4",
|
|
1121
|
+
"#E64AA9"
|
|
1122
|
+
], Ft = ({ onHide: n, beginColor: t, onChange: s, onAddColor: r, userColor: l = [] }) => {
|
|
1123
|
+
const c = z(null), o = z(null), i = z(null), d = z(null), [h, u] = k(t ? ge(Ne(t)) : { h: 0, s: 1, v: 0.5 }), x = Oe(() => de(h), [h]), m = Oe(() => "#" + ae(x), [x]), [p, N] = k(!1), [g, E] = k(m), v = Oe(() => g[0] != "#" ? "#" + g : g, [g]);
|
|
1124
|
+
function y(S, P, H, I, Z) {
|
|
1125
|
+
if (!(!S || !H))
|
|
1126
|
+
try {
|
|
1127
|
+
const W = S.getBoundingClientRect(), J = H.getBoundingClientRect(), O = Math.round(Z.s * W.width), q = Math.round((1 - Z.v) * W.height), me = (360 - Z.h * 360) / 360 * J.height;
|
|
1128
|
+
Sn(P, O, q), $n(I, me);
|
|
1129
|
+
} catch {
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
const D = (S) => {
|
|
1133
|
+
u(ge(Ne(S))), E(S);
|
|
1134
|
+
}, b = C(() => {
|
|
1135
|
+
r && r([...l, m]);
|
|
1136
|
+
}, [r, l, m]), T = C(() => {
|
|
1137
|
+
s && s(m);
|
|
1138
|
+
}, [s, m]), B = C((S, P) => {
|
|
1139
|
+
u(ge({ ...x, [S]: P })), E(ae({ ...x, [S]: P }));
|
|
1140
|
+
}, [x]), X = C((S) => {
|
|
1141
|
+
E(S);
|
|
1142
|
+
}, []);
|
|
1143
|
+
return F(() => {
|
|
1144
|
+
(g.length === 4 || g.length === 7) && u(ge(Ne(g)));
|
|
1145
|
+
}, [g]), F(() => {
|
|
1146
|
+
if (!i.current || !c.current || !o.current || !d.current)
|
|
1147
|
+
return;
|
|
1148
|
+
const S = i.current.getContext("2d");
|
|
1149
|
+
wt(S, i.current, `#${ae(de(h.h, 1, 1))}`), y(i.current, d.current, c.current, o.current, h);
|
|
1150
|
+
}, [h]), F(() => {
|
|
1151
|
+
if (!i.current || !d.current)
|
|
1152
|
+
return;
|
|
1153
|
+
const S = i.current.getContext("2d");
|
|
1154
|
+
Et(i.current, S, d.current, (P, H) => {
|
|
1155
|
+
u((I) => {
|
|
1156
|
+
const Z = { ...I, s: P / 100, v: H / 100 };
|
|
1157
|
+
return E(ae(de(Z))), Z;
|
|
1158
|
+
});
|
|
1159
|
+
});
|
|
1160
|
+
}, []), F(() => {
|
|
1161
|
+
if (!c.current || !o.current)
|
|
1162
|
+
return;
|
|
1163
|
+
const S = c.current.getContext("2d");
|
|
1164
|
+
$t(S, c.current), Rt(S, c.current, o.current, (P) => {
|
|
1165
|
+
u((H) => {
|
|
1166
|
+
const I = { ...H, h: P / 360 };
|
|
1167
|
+
return E(ae(de(I))), I;
|
|
1168
|
+
});
|
|
1169
|
+
});
|
|
1170
|
+
}, []), F(() => {
|
|
1171
|
+
console.log(h, x);
|
|
1172
|
+
}, [h]), /* @__PURE__ */ e.jsxs(ne, { className: "color-picker-panel", onHide: n, clearStyle: !0, children: [
|
|
1173
|
+
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
1174
|
+
/* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Ot.map((S, P) => /* @__PURE__ */ e.jsx("button", { onClick: () => D(S), className: "swatch", style: { backgroundColor: S } }, P)) }),
|
|
1175
|
+
/* @__PURE__ */ e.jsx("button", { className: "button-color-picker eyedropper", onClick: T, children: "Get Color" })
|
|
1176
|
+
] }),
|
|
1177
|
+
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
1178
|
+
/* @__PURE__ */ e.jsxs("div", { className: "spectrum-map spectrum-cursor", children: [
|
|
1179
|
+
/* @__PURE__ */ e.jsx("button", { ref: d, className: "color-cursor spectrum-cursor" }),
|
|
1180
|
+
/* @__PURE__ */ e.jsx("canvas", { ref: i, className: "spectrum-canvas spectrum-canvas-color-picker" })
|
|
1181
|
+
] }),
|
|
1182
|
+
/* @__PURE__ */ e.jsxs("div", { className: "hue-map", children: [
|
|
1183
|
+
/* @__PURE__ */ e.jsx("button", { ref: o, className: "color-cursor hue-cursor" }),
|
|
1184
|
+
/* @__PURE__ */ e.jsx("canvas", { ref: c, className: "hue-canvas hue-canvas-color-picker" })
|
|
1185
|
+
] })
|
|
1186
|
+
] }),
|
|
1187
|
+
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
1188
|
+
/* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields rgb-fields ${p ? "" : "active"}`, children: [
|
|
1189
|
+
/* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
1190
|
+
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "R:" }),
|
|
1191
|
+
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: x.r, onChange: (S) => B("r", Number(S.target.value)), className: "field-input rgb-input" })
|
|
1192
|
+
] }),
|
|
1193
|
+
/* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
1194
|
+
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "G:" }),
|
|
1195
|
+
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: x.g, onChange: (S) => B("g", Number(S.target.value)), className: "field-input rgb-input" })
|
|
1196
|
+
] }),
|
|
1197
|
+
/* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
1198
|
+
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "B:" }),
|
|
1199
|
+
/* @__PURE__ */ e.jsx("input", { type: "number", max: "255", min: "0", value: x.b, onChange: (S) => B("b", Number(S.target.value)), className: "field-input rgb-input" })
|
|
1200
|
+
] })
|
|
1201
|
+
] }),
|
|
1202
|
+
/* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields hex-field ${p ? "active" : ""}`, children: [
|
|
1203
|
+
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "Hex:" }),
|
|
1204
|
+
/* @__PURE__ */ e.jsx("input", { type: "text", className: "field-input", value: v, onChange: (S) => X(S.target.value) })
|
|
1205
|
+
] }),
|
|
1206
|
+
/* @__PURE__ */ e.jsx("button", { className: "button-color-picker mode-toggle", onClick: () => N((S) => !S), children: "Mode" })
|
|
1207
|
+
] }),
|
|
1208
|
+
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
1209
|
+
/* @__PURE__ */ e.jsx("h2", { className: "panel-header", children: "User Colors" }),
|
|
1210
|
+
/* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: l ? l.map((S, P) => /* @__PURE__ */ e.jsx("button", { onClick: () => D(S), className: "swatch", style: { backgroundColor: S } }, P)) : null }),
|
|
1211
|
+
/* @__PURE__ */ e.jsxs("button", { onClick: b, className: "button-color-picker add-swatch", children: [
|
|
1212
|
+
/* @__PURE__ */ e.jsx("span", { style: { backgroundColor: `#${ae(de(h))}` }, className: "color-indicator" }),
|
|
1213
|
+
/* @__PURE__ */ e.jsx("span", { children: "Add to Swatches" })
|
|
1214
|
+
] })
|
|
1215
|
+
] })
|
|
1216
|
+
] });
|
|
1217
|
+
}, gs = ({ border: n, onChange: t, container: s, value: r, className: l, transparent: c }) => {
|
|
1218
|
+
const [o, i] = k(!1), [d, h] = k(r ?? "#f00"), u = () => {
|
|
1219
|
+
i(!0);
|
|
1220
|
+
}, x = C((m) => {
|
|
1221
|
+
console.log(m), h(m), t && t(m), i(!1);
|
|
1222
|
+
}, [t]);
|
|
1223
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1224
|
+
/* @__PURE__ */ e.jsxs("div", { className: `date-field color-field ${n ? "border" : ""} ${c ? "transparent" : ""} ${l ?? ""}`, children: [
|
|
1225
|
+
/* @__PURE__ */ e.jsx("div", { className: "color-field-label", onClick: u, children: /* @__PURE__ */ e.jsx("span", { className: "data color-field-data", children: d }) }),
|
|
1226
|
+
/* @__PURE__ */ e.jsx("div", { className: " color-indicator-field", style: { backgroundColor: d }, onClick: u }),
|
|
1227
|
+
/* @__PURE__ */ e.jsx("div", { className: "color-icon-container icon-container", style: { marginRight: "12px", marginLeft: "0" }, onClick: u, children: /* @__PURE__ */ e.jsx(bt, {}) })
|
|
1228
|
+
] }),
|
|
1229
|
+
o ? /* @__PURE__ */ e.jsx(We, { container: s, children: /* @__PURE__ */ e.jsx(Ft, { onChange: x, beginColor: d, onHide: () => i(!1) }) }) : null
|
|
1230
|
+
] });
|
|
1231
|
+
};
|
|
1232
|
+
const Pt = ({ children: n, className: t, maxHeight: s, scroll: r, transparent: l }) => /* @__PURE__ */ e.jsx("ul", { style: { overflowY: s ? r ? "scroll" : "hidden" : void 0, maxHeight: s, backgroundColor: l ? "transparent" : void 0 }, className: `list-container ${t} ${r ? "scroll" : ""}`, children: n }), At = ({ icon: n, control: t, text: s, header: r, value: l, onClick: c, hovered: o, className: i }) => {
|
|
1233
|
+
const d = (h) => {
|
|
1234
|
+
h.target.closest(".control-container") || c && c(h);
|
|
1024
1235
|
};
|
|
1025
|
-
return /* @__PURE__ */ e.jsxs("
|
|
1236
|
+
return /* @__PURE__ */ e.jsxs("li", { className: ` ${i} list-item-container ${o ? "hovered" : ""}`, onClick: d, children: [
|
|
1237
|
+
n ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: n }) : l ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: l }) : null,
|
|
1238
|
+
s ? /* @__PURE__ */ e.jsxs("div", { className: "text-container", children: [
|
|
1239
|
+
/* @__PURE__ */ e.jsx("div", { className: "header", children: r }),
|
|
1240
|
+
/* @__PURE__ */ e.jsx("div", { className: "text", children: s })
|
|
1241
|
+
] }) : /* @__PURE__ */ e.jsx("div", { className: "text-container", children: /* @__PURE__ */ e.jsx("div", { className: "header", children: r }) }),
|
|
1242
|
+
t ? /* @__PURE__ */ e.jsx("div", { className: "control-container", children: t }) : null
|
|
1243
|
+
] });
|
|
1244
|
+
};
|
|
1245
|
+
const ue = ({ transparent: n, icon: t, className: s, onClick: r, onContextMenu: l, disabled: c, classNameContainer: o, style: i }) => {
|
|
1246
|
+
const d = (h) => {
|
|
1247
|
+
r && r(h);
|
|
1248
|
+
let u = document.createElement("span");
|
|
1249
|
+
u.classList.add("btn-overlay");
|
|
1250
|
+
let x = h.pageX - h.currentTarget.offsetLeft, m = h.pageY - h.currentTarget.offsetTop;
|
|
1251
|
+
u.style.left = x + "px", u.style.top = m + "px", h.currentTarget.appendChild(u), setTimeout(() => {
|
|
1252
|
+
u.remove();
|
|
1253
|
+
}, 500);
|
|
1254
|
+
};
|
|
1255
|
+
return /* @__PURE__ */ e.jsx("button", { style: { backgroundColor: n ? "transparent" : void 0, ...i }, className: `iconbutton ${s}`, onClick: d, onContextMenu: l, disabled: c, children: /* @__PURE__ */ e.jsx("div", { className: `${o} iconbutton-container`, children: t }) });
|
|
1256
|
+
};
|
|
1257
|
+
const bs = ({ className: n, action: t, imgSrc: s, alt: r, header: l, subhead: c, text: o, children: i, iconButtonCell: d, onClick: h }) => {
|
|
1258
|
+
const u = (m) => !(m.target.className === "action-container" || m.target.closest(".action-container") || m.target.className === "icon-button-container" || m.target.closest(".icon-button-container")), x = (m) => {
|
|
1259
|
+
if (h && h(m), !u(m))
|
|
1260
|
+
return;
|
|
1261
|
+
let p = m.currentTarget.closest(".card-container"), N = p == null ? void 0 : p.querySelector(".blick-container");
|
|
1262
|
+
if (!N)
|
|
1263
|
+
return;
|
|
1264
|
+
let g = document.createElement("span");
|
|
1265
|
+
g.classList.add("btn-overlay");
|
|
1266
|
+
let E = m.pageX - m.currentTarget.offsetLeft, v = m.pageY - m.currentTarget.offsetTop;
|
|
1267
|
+
g.style.left = E + "px", g.style.top = v + "px", N.appendChild(g), setTimeout(() => {
|
|
1268
|
+
g.remove();
|
|
1269
|
+
}, 500);
|
|
1270
|
+
};
|
|
1271
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `card-container ${n}`, onClick: x, children: [
|
|
1272
|
+
/* @__PURE__ */ e.jsx("div", { className: "blick-container" }),
|
|
1273
|
+
s ? /* @__PURE__ */ e.jsx("div", { className: "card-img-container", children: /* @__PURE__ */ e.jsx("img", { src: s, alt: r }) }) : null,
|
|
1274
|
+
/* @__PURE__ */ e.jsxs("div", { className: "card-content-container", children: [
|
|
1275
|
+
/* @__PURE__ */ e.jsxs("div", { className: "card-Headline-container mb-1 font-bold", children: [
|
|
1276
|
+
/* @__PURE__ */ e.jsx("div", { className: "headline", children: /* @__PURE__ */ e.jsx("h2", { className: "text-3xl", children: l }) }),
|
|
1277
|
+
d ? /* @__PURE__ */ e.jsx("div", { className: "icon-button-container", children: d }) : null
|
|
1278
|
+
] }),
|
|
1279
|
+
c ? /* @__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: c }) }) }) : null,
|
|
1280
|
+
o ? /* @__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: o }) }) }) : null,
|
|
1281
|
+
i ? /* @__PURE__ */ e.jsx("div", { className: "card-child-container mb-2", children: i }) : null,
|
|
1282
|
+
/* @__PURE__ */ e.jsx("div", { className: "action-container", children: t })
|
|
1283
|
+
] })
|
|
1284
|
+
] });
|
|
1285
|
+
};
|
|
1286
|
+
const Vt = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${t ?? ""}`, children: n });
|
|
1287
|
+
const ys = ({ children: n, className: t, id: s, height: r, width: l, pozMove: c }) => {
|
|
1288
|
+
const [o, i] = k(!1), [d, h] = k(null), [u, x] = k({ x: 0, y: 0 }), m = (g) => {
|
|
1289
|
+
g.button == 1 && (i(!1), h(null), document.body.style.cursor = "auto");
|
|
1290
|
+
}, p = (g) => {
|
|
1291
|
+
g.button == 1 && (h({ x: g.clientX, y: g.clientY }), i(!0), document.body.style.cursor = "move");
|
|
1292
|
+
}, N = C((g) => {
|
|
1293
|
+
o && (x((E) => {
|
|
1294
|
+
if (!d)
|
|
1295
|
+
return E;
|
|
1296
|
+
const v = g.clientX - d.x, y = g.clientY - d.y;
|
|
1297
|
+
let D = E.x + v, b = E.y + y;
|
|
1298
|
+
return { x: D, y: b };
|
|
1299
|
+
}), h({ x: g.clientX, y: g.clientY }));
|
|
1300
|
+
}, [o, d]);
|
|
1301
|
+
return F(() => {
|
|
1302
|
+
c && x({ ...c });
|
|
1303
|
+
}, [c]), /* @__PURE__ */ e.jsx("div", { id: s, style: { height: r, width: l }, className: `big-container ${t}`, onMouseDown: p, onMouseUp: m, onMouseMove: N, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: u.x, top: u.y }, children: n }) });
|
|
1304
|
+
};
|
|
1305
|
+
const Lt = (n) => {
|
|
1306
|
+
const [t, s] = k(!1), r = C(() => {
|
|
1307
|
+
s(!0), setTimeout(() => {
|
|
1308
|
+
n.onHide(), s(!1);
|
|
1309
|
+
}, 200);
|
|
1310
|
+
}, [n.onHide]);
|
|
1311
|
+
return F(() => {
|
|
1312
|
+
n.visible || r();
|
|
1313
|
+
}, [n.visible, r]), !n.visible && !t || !n.children ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1314
|
+
/* @__PURE__ */ e.jsxs("div", { className: `bottom-sheets ${t ? "hide" : ""}`, children: [
|
|
1315
|
+
/* @__PURE__ */ e.jsx("div", { className: "bottom-sheets-handle", children: /* @__PURE__ */ e.jsx("span", {}) }),
|
|
1316
|
+
/* @__PURE__ */ e.jsx("div", { className: "bottom-sheets-content", children: n.children })
|
|
1317
|
+
] }),
|
|
1318
|
+
/* @__PURE__ */ e.jsx("div", { className: "backplate bottom-sheets-backplate", style: { zIndex: 1101 }, onClick: r })
|
|
1319
|
+
] });
|
|
1320
|
+
};
|
|
1321
|
+
const Ns = ({ name: n, checked: t, onChange: s, readOnly: r, checkIcon: l }) => /* @__PURE__ */ e.jsxs("label", { className: "checkbox-container", children: [
|
|
1322
|
+
/* @__PURE__ */ e.jsx("input", { className: "checkbox", name: n, type: "checkbox", checked: t, onChange: s, readOnly: r }),
|
|
1323
|
+
/* @__PURE__ */ e.jsx("span", { children: l || /* @__PURE__ */ e.jsx("span", { className: "checkbox-ckeck-icon", children: "✓" }) })
|
|
1324
|
+
] });
|
|
1325
|
+
const It = ({ text: n, onDelete: t, big: s, onClick: r }) => {
|
|
1326
|
+
const l = (o) => !(o.target.className === "alex-evo-ui-kit-chips-btn" || o.target.closest(".alex-evo-ui-kit-chips-btn")), c = (o) => {
|
|
1327
|
+
l(o) && r && r(o);
|
|
1328
|
+
};
|
|
1329
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-chips chips ${s ? "big-chips" : ""} ${r ? "hovered" : ""}`, onClick: c, children: [
|
|
1026
1330
|
/* @__PURE__ */ e.jsx("p", { children: n }),
|
|
1027
|
-
t ? /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-chips-btn chips-btn", onClick: t, children: /* @__PURE__ */ e.jsx(
|
|
1331
|
+
t ? /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-chips-btn chips-btn", onClick: t, children: /* @__PURE__ */ e.jsx(Ce, { size: 18 }) }) : null
|
|
1028
1332
|
] });
|
|
1029
1333
|
};
|
|
1030
|
-
const
|
|
1031
|
-
const
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
}, [u, p,
|
|
1035
|
-
const
|
|
1036
|
-
|
|
1334
|
+
const Rn = ({ styleContainer: n, type: t = "text", transparent: s, readOnly: r, password: l, border: c, onClear: o, icon: i, onChange: d, name: h, value: u, placeholder: x, className: m, validEmptyValue: p, onFocus: N, onBlur: g, error: E, max: v, min: y }) => {
|
|
1335
|
+
const D = z(null), [b, T] = k(!1), B = C((S, P) => T(!!(E || S && (!P || P === ""))), []);
|
|
1336
|
+
F(() => {
|
|
1337
|
+
B(p, u);
|
|
1338
|
+
}, [u, p, B]);
|
|
1339
|
+
const X = () => {
|
|
1340
|
+
D.current && D.current.focus();
|
|
1037
1341
|
};
|
|
1038
|
-
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `text-field ${
|
|
1039
|
-
|
|
1040
|
-
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick:
|
|
1342
|
+
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `text-field ${c ? "border" : ""} ${s ? "transparent" : ""} ${m}`, children: [
|
|
1343
|
+
i ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: X, children: i }) : null,
|
|
1344
|
+
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: X, children: [
|
|
1041
1345
|
/* @__PURE__ */ e.jsx(
|
|
1042
1346
|
"input",
|
|
1043
1347
|
{
|
|
1044
|
-
ref:
|
|
1348
|
+
ref: D,
|
|
1045
1349
|
max: v,
|
|
1046
|
-
min:
|
|
1047
|
-
readOnly:
|
|
1350
|
+
min: y,
|
|
1351
|
+
readOnly: r,
|
|
1048
1352
|
required: !0,
|
|
1049
|
-
type:
|
|
1050
|
-
className: `${
|
|
1051
|
-
name:
|
|
1353
|
+
type: l ? "password" : t,
|
|
1354
|
+
className: `${b ? "error" : ""}`,
|
|
1355
|
+
name: h,
|
|
1052
1356
|
value: u,
|
|
1053
|
-
onChange:
|
|
1357
|
+
onChange: d,
|
|
1054
1358
|
onFocus: N,
|
|
1055
1359
|
onBlur: g
|
|
1056
1360
|
}
|
|
1057
1361
|
),
|
|
1058
|
-
/* @__PURE__ */ e.jsx("label", { children:
|
|
1362
|
+
/* @__PURE__ */ e.jsx("label", { children: x ? /* @__PURE__ */ e.jsx("span", { children: x }) : null }),
|
|
1059
1363
|
/* @__PURE__ */ e.jsx("span", { className: "text-field-line" })
|
|
1060
1364
|
] }),
|
|
1061
|
-
|
|
1365
|
+
o ? /* @__PURE__ */ e.jsx("div", { className: "clear-container", children: /* @__PURE__ */ e.jsx(wn, { onClick: o }) }) : null
|
|
1062
1366
|
] });
|
|
1063
1367
|
};
|
|
1064
|
-
const
|
|
1065
|
-
const v =
|
|
1368
|
+
const ks = ({ styleContainer: n, transparent: t, readOnly: s, border: r, onClear: l, icon: c, onChange: o, name: i, value: d, placeholder: h, className: u, validEmptyValue: x, onFocus: m, onBlur: p, error: N, max: g, min: E }) => {
|
|
1369
|
+
const v = z(null), [y, D] = k(!1), b = z(null), T = z(null), [B, X] = k(d ?? 0), S = C((O, q) => D(!!(N || O && (!q || q === ""))), []), P = () => {
|
|
1066
1370
|
v.current && v.current.focus();
|
|
1067
|
-
},
|
|
1068
|
-
|
|
1069
|
-
const
|
|
1070
|
-
return setTimeout(() =>
|
|
1371
|
+
}, H = C(() => {
|
|
1372
|
+
X((O) => {
|
|
1373
|
+
const q = O ? O + 1 : 1;
|
|
1374
|
+
return setTimeout(() => o && o(q, i), 100), q;
|
|
1071
1375
|
});
|
|
1072
|
-
}, [
|
|
1073
|
-
|
|
1074
|
-
const
|
|
1075
|
-
return setTimeout(() =>
|
|
1376
|
+
}, [o, i]), I = C(() => {
|
|
1377
|
+
X((O) => {
|
|
1378
|
+
const q = O ? O - 1 : -1;
|
|
1379
|
+
return setTimeout(() => o && o(q, i), 100), q;
|
|
1076
1380
|
});
|
|
1077
|
-
}, [
|
|
1078
|
-
|
|
1079
|
-
}, [
|
|
1080
|
-
|
|
1081
|
-
}, []),
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1381
|
+
}, [o, i]), Z = C((O) => {
|
|
1382
|
+
X(Number(O.target.value)), setTimeout(() => o && o(Number(O.target.value), i), 0);
|
|
1383
|
+
}, [i, o, B]), W = C(() => {
|
|
1384
|
+
b.current && clearTimeout(b.current), T.current && clearInterval(T.current), document.removeEventListener("mouseup", W);
|
|
1385
|
+
}, []), J = C((O) => {
|
|
1386
|
+
O === "p" ? H() : O === "m" && I(), b.current && clearTimeout(b.current), T.current && clearInterval(T.current), document.addEventListener("mouseup", W), b.current = setTimeout(() => {
|
|
1387
|
+
T.current = setInterval(() => {
|
|
1388
|
+
O === "p" ? H() : O === "m" && I();
|
|
1085
1389
|
}, 100);
|
|
1086
1390
|
}, 500);
|
|
1087
|
-
}, [
|
|
1088
|
-
return
|
|
1089
|
-
|
|
1090
|
-
}, [
|
|
1091
|
-
|
|
1092
|
-
}, [
|
|
1093
|
-
|
|
1094
|
-
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick:
|
|
1391
|
+
}, [H, I]);
|
|
1392
|
+
return F(() => {
|
|
1393
|
+
S(x, d);
|
|
1394
|
+
}, [d, x, S]), F(() => {
|
|
1395
|
+
d && X(d);
|
|
1396
|
+
}, [d]), /* @__PURE__ */ e.jsxs("div", { style: n, className: `text-field number-field ${r ? "border" : ""} ${t ? "transparent" : ""} ${u}`, children: [
|
|
1397
|
+
c ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: P, children: c }) : null,
|
|
1398
|
+
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: P, children: [
|
|
1095
1399
|
/* @__PURE__ */ e.jsx(
|
|
1096
1400
|
"input",
|
|
1097
1401
|
{
|
|
@@ -1101,330 +1405,308 @@ const ss = ({ styleContainer: n, transparent: t, readOnly: s, border: a, onClear
|
|
|
1101
1405
|
readOnly: s,
|
|
1102
1406
|
required: !0,
|
|
1103
1407
|
type: "number",
|
|
1104
|
-
className: `alex-evo-number-field ${
|
|
1105
|
-
name:
|
|
1106
|
-
value:
|
|
1107
|
-
onChange:
|
|
1108
|
-
onFocus:
|
|
1408
|
+
className: `alex-evo-number-field ${y ? "error" : ""}`,
|
|
1409
|
+
name: i,
|
|
1410
|
+
value: B,
|
|
1411
|
+
onChange: Z,
|
|
1412
|
+
onFocus: m,
|
|
1109
1413
|
onBlur: p
|
|
1110
1414
|
}
|
|
1111
1415
|
),
|
|
1112
|
-
/* @__PURE__ */ e.jsx("label", { children:
|
|
1416
|
+
/* @__PURE__ */ e.jsx("label", { children: h ? /* @__PURE__ */ e.jsx("span", { children: h }) : null }),
|
|
1113
1417
|
/* @__PURE__ */ e.jsx("span", { className: "text-field-line" })
|
|
1114
1418
|
] }),
|
|
1115
|
-
|
|
1419
|
+
l ? /* @__PURE__ */ e.jsx("div", { className: "clear-container", children: /* @__PURE__ */ e.jsx(wn, { onClick: l }) }) : null,
|
|
1116
1420
|
/* @__PURE__ */ e.jsxs("div", { className: "button-block", children: [
|
|
1117
|
-
/* @__PURE__ */ e.jsx("div", { className: "minus number-field-btn", onMouseDown: () =>
|
|
1118
|
-
/* @__PURE__ */ e.jsx("div", { className: "plus number-field-btn", onMouseDown: () =>
|
|
1421
|
+
/* @__PURE__ */ e.jsx("div", { className: "minus number-field-btn", onMouseDown: () => J("m"), children: /* @__PURE__ */ e.jsx(gt, {}) }),
|
|
1422
|
+
/* @__PURE__ */ e.jsx("div", { className: "plus number-field-btn", onMouseDown: () => J("p"), children: /* @__PURE__ */ e.jsx(Nt, {}) })
|
|
1119
1423
|
] })
|
|
1120
1424
|
] });
|
|
1121
1425
|
};
|
|
1122
|
-
const
|
|
1123
|
-
const N =
|
|
1124
|
-
|
|
1125
|
-
v(u,
|
|
1126
|
-
}, [
|
|
1127
|
-
const
|
|
1426
|
+
const Cs = ({ styleContainer: n, transparent: t, readOnly: s, border: r, icon: l, onChange: c, name: o, value: i, placeholder: d, className: h, validEmptyValue: u, onFocus: x, onBlur: m, error: p }) => {
|
|
1427
|
+
const N = z(null), [g, E] = k(!1), v = C((D, b) => E(!!(p || D && (!b || b === ""))), []);
|
|
1428
|
+
F(() => {
|
|
1429
|
+
v(u, i);
|
|
1430
|
+
}, [i, u, v]);
|
|
1431
|
+
const y = () => {
|
|
1128
1432
|
N.current && N.current.focus();
|
|
1129
1433
|
};
|
|
1130
|
-
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `text-area ${g ? "error" : ""} ${
|
|
1131
|
-
|
|
1132
|
-
/* @__PURE__ */ e.jsx("div", { className: "textarea-container", onClick:
|
|
1434
|
+
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `text-area ${g ? "error" : ""} ${r ? "border" : ""} ${t ? "transparent" : ""} ${h}`, children: [
|
|
1435
|
+
l ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: y, children: l }) : null,
|
|
1436
|
+
/* @__PURE__ */ e.jsx("div", { className: "textarea-container", onClick: y, children: /* @__PURE__ */ e.jsx(
|
|
1133
1437
|
"textarea",
|
|
1134
1438
|
{
|
|
1135
1439
|
ref: N,
|
|
1136
1440
|
readOnly: s,
|
|
1137
1441
|
required: !0,
|
|
1138
|
-
placeholder:
|
|
1442
|
+
placeholder: d,
|
|
1139
1443
|
className: `${g ? "error" : ""}`,
|
|
1140
|
-
name:
|
|
1141
|
-
value:
|
|
1142
|
-
onChange:
|
|
1143
|
-
onFocus:
|
|
1144
|
-
onBlur:
|
|
1444
|
+
name: o,
|
|
1445
|
+
value: i,
|
|
1446
|
+
onChange: c,
|
|
1447
|
+
onFocus: x,
|
|
1448
|
+
onBlur: m
|
|
1145
1449
|
}
|
|
1146
1450
|
) })
|
|
1147
1451
|
] });
|
|
1148
1452
|
};
|
|
1149
|
-
const
|
|
1453
|
+
const Q = ({ style: n, short: t, text: s }) => s ? /* @__PURE__ */ e.jsxs("div", { style: n, className: `divider-and-text ${t ? "short" : ""}`, children: [
|
|
1150
1454
|
/* @__PURE__ */ e.jsx("div", { className: `divider ${t ? "short" : ""}` }),
|
|
1151
1455
|
s,
|
|
1152
1456
|
/* @__PURE__ */ e.jsx("div", { className: `divider ${t ? "short" : ""}` })
|
|
1153
1457
|
] }) : /* @__PURE__ */ e.jsx("div", { style: n, className: `divider ${t ? "short" : ""}` });
|
|
1154
|
-
const
|
|
1458
|
+
const Bt = ({ name: n, checked: t }) => /* @__PURE__ */ e.jsxs("label", { className: "radio-button-container", children: [
|
|
1155
1459
|
/* @__PURE__ */ e.jsx("input", { className: "radio-button", name: n, type: "radio", checked: t, readOnly: !0 }),
|
|
1156
1460
|
/* @__PURE__ */ e.jsx("span", {})
|
|
1157
|
-
] }),
|
|
1158
|
-
/* @__PURE__ */ e.jsx("input", { className: "radio-button", name: n, type: "radio", checked: t === s ||
|
|
1461
|
+
] }), ws = ({ name: n, currentValue: t, value: s, onChange: r, readOnly: l, checked: c }) => /* @__PURE__ */ e.jsxs("label", { className: "radio-button-container", children: [
|
|
1462
|
+
/* @__PURE__ */ e.jsx("input", { className: "radio-button", name: n, type: "radio", checked: t === s || c, value: s, onChange: r, readOnly: l }),
|
|
1159
1463
|
/* @__PURE__ */ e.jsx("span", {})
|
|
1160
1464
|
] });
|
|
1161
|
-
const
|
|
1465
|
+
const Es = ({ style: n, icon: t, className: s, onClick: r, onContextMenu: l, children: c }) => /* @__PURE__ */ e.jsxs("button", { style: n, className: `${s} extendedFAB`, onClick: r, onContextMenu: l, children: [
|
|
1162
1466
|
t,
|
|
1163
|
-
|
|
1467
|
+
c ? /* @__PURE__ */ e.jsx("span", { children: c }) : null
|
|
1164
1468
|
] });
|
|
1165
|
-
const
|
|
1469
|
+
const Ss = ({ children: n, header: t, className: s, style: r }) => /* @__PURE__ */ e.jsxs("div", { style: r, className: `field-container-ui ${s ?? ""}`, children: [
|
|
1166
1470
|
/* @__PURE__ */ e.jsx("h4", { children: t }),
|
|
1167
1471
|
/* @__PURE__ */ e.jsx("div", { className: "field-container-content", children: n })
|
|
1168
|
-
] }),
|
|
1169
|
-
const
|
|
1170
|
-
const [
|
|
1171
|
-
|
|
1172
|
-
console.log("p0"),
|
|
1173
|
-
}, [t]),
|
|
1174
|
-
console.log(
|
|
1175
|
-
}, [
|
|
1176
|
-
const
|
|
1177
|
-
|
|
1178
|
-
},
|
|
1179
|
-
if (
|
|
1472
|
+
] }), Yt = (n) => n === "" ? [] : n.split(",").map((t) => t.trim()), vn = (n) => n.join(", ");
|
|
1473
|
+
const $s = ({ minWidth: n, value: t, onChange: s, border: r }) => {
|
|
1474
|
+
const [l, c] = k([]), [o, i] = k("");
|
|
1475
|
+
F(() => {
|
|
1476
|
+
console.log("p0"), c(Yt(t));
|
|
1477
|
+
}, [t]), F(() => {
|
|
1478
|
+
console.log(l);
|
|
1479
|
+
}, [l]);
|
|
1480
|
+
const d = (x) => {
|
|
1481
|
+
i(x.target.value);
|
|
1482
|
+
}, h = C(() => {
|
|
1483
|
+
if (o === "" || l.includes(o))
|
|
1180
1484
|
return;
|
|
1181
|
-
const
|
|
1182
|
-
|
|
1183
|
-
}, [
|
|
1184
|
-
const
|
|
1185
|
-
|
|
1485
|
+
const x = [...l, o.trim()];
|
|
1486
|
+
c(x), s && s(vn(x)), i("");
|
|
1487
|
+
}, [l, o]), u = (x) => {
|
|
1488
|
+
const m = l.filter((p, N) => N !== x);
|
|
1489
|
+
c(m), s && s(vn(m));
|
|
1186
1490
|
};
|
|
1187
1491
|
return /* @__PURE__ */ e.jsxs("div", { className: "more-text", style: { minWidth: n }, children: [
|
|
1188
1492
|
/* @__PURE__ */ e.jsxs("div", { className: "add value", children: [
|
|
1189
|
-
/* @__PURE__ */ e.jsx(
|
|
1190
|
-
/* @__PURE__ */ e.jsx(
|
|
1493
|
+
/* @__PURE__ */ e.jsx(Rn, { onChange: d, value: o, border: r }),
|
|
1494
|
+
/* @__PURE__ */ e.jsx(Vt, { children: /* @__PURE__ */ e.jsx(yn, { onClick: h, children: "add" }) })
|
|
1191
1495
|
] }),
|
|
1192
|
-
/* @__PURE__ */ e.jsx("div", { className: "chips-container", children:
|
|
1496
|
+
/* @__PURE__ */ e.jsx("div", { className: "chips-container", children: l.map((x, m) => /* @__PURE__ */ e.jsx(It, { text: x, onDelete: () => u(m) }, m)) })
|
|
1193
1497
|
] });
|
|
1194
1498
|
};
|
|
1195
|
-
const
|
|
1196
|
-
const
|
|
1197
|
-
if (!
|
|
1499
|
+
const Rs = ({ style: n, text: t, className: s, onClick: r, onContextMenu: l }) => {
|
|
1500
|
+
const c = z(null), o = C(() => {
|
|
1501
|
+
if (!c.current)
|
|
1198
1502
|
return;
|
|
1199
|
-
let
|
|
1200
|
-
|
|
1503
|
+
let i = c.current.getElementsByTagName("p");
|
|
1504
|
+
i[0] && c.current.clientWidth <= i[0].clientWidth ? (i[0].className = "runing", i[0].innerHTML = `| ${t} | ${t}`) : i[0].className = "";
|
|
1201
1505
|
}, [t]);
|
|
1202
|
-
return
|
|
1203
|
-
|
|
1204
|
-
}, [
|
|
1506
|
+
return F(() => {
|
|
1507
|
+
o();
|
|
1508
|
+
}, [o]), /* @__PURE__ */ e.jsx("div", { style: n, ref: c, onClick: r, onContextMenu: l, className: `runing-text ${s}`, children: /* @__PURE__ */ e.jsx("p", { children: t }) });
|
|
1205
1509
|
};
|
|
1206
|
-
const
|
|
1207
|
-
const
|
|
1208
|
-
const
|
|
1209
|
-
|
|
1510
|
+
const Ts = ({ className: n, children: t, height: s }) => /* @__PURE__ */ e.jsx("div", { className: `scroll-container ${n}`, style: { height: s }, children: t });
|
|
1511
|
+
const Ms = ({ onMenu: n, onSearch: t, placeholder: s, autoChenge: r }) => {
|
|
1512
|
+
const l = z(null), [c, o] = k(""), [i, d] = k(!1), h = () => {
|
|
1513
|
+
l.current && (l.current.focus(), d(!0));
|
|
1210
1514
|
}, u = () => {
|
|
1211
|
-
|
|
1212
|
-
},
|
|
1213
|
-
u(),
|
|
1214
|
-
},
|
|
1215
|
-
|
|
1515
|
+
l.current && (l.current.focus(), l.current.value = ""), o(""), d(!0), r && t("");
|
|
1516
|
+
}, x = () => {
|
|
1517
|
+
u(), l.current && (l.current.blur(), d(!1));
|
|
1518
|
+
}, m = (N) => {
|
|
1519
|
+
o(N.target.value), r && t(N.target.value);
|
|
1216
1520
|
}, p = (N) => {
|
|
1217
|
-
N.code === "Enter" && t(
|
|
1521
|
+
N.code === "Enter" && t(c);
|
|
1218
1522
|
};
|
|
1219
1523
|
return /* @__PURE__ */ e.jsx("div", { className: "search-container", children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
|
|
1220
|
-
|
|
1221
|
-
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref:
|
|
1222
|
-
|
|
1524
|
+
i ? /* @__PURE__ */ e.jsx("span", { onClick: x, children: /* @__PURE__ */ e.jsx(ft, { size: 24 }) }) : n ? /* @__PURE__ */ e.jsx("span", { onClick: n, children: /* @__PURE__ */ e.jsx(kn, { size: 24 }) }) : null,
|
|
1525
|
+
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: l, onChange: m, onKeyDown: p, value: c, onFocus: () => d(!0) }),
|
|
1526
|
+
i ? /* @__PURE__ */ e.jsx("span", { onClick: u, children: /* @__PURE__ */ e.jsx(Ce, { size: 24 }) }) : /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(kt, { size: 24 }) })
|
|
1223
1527
|
] }) });
|
|
1224
1528
|
};
|
|
1225
|
-
const
|
|
1226
|
-
const
|
|
1529
|
+
const _s = ({ visible: n, text: t, option: s }) => {
|
|
1530
|
+
const r = () => {
|
|
1227
1531
|
s != null && s.onHide && s.onHide();
|
|
1228
1532
|
};
|
|
1229
1533
|
return n ? /* @__PURE__ */ e.jsxs("div", { className: `snackbar-container ${s == null ? void 0 : s.className}`, style: { backgroundColor: s == null ? void 0 : s.backgroundColor, color: s == null ? void 0 : s.color }, children: [
|
|
1230
1534
|
/* @__PURE__ */ e.jsxs("div", { className: "snackbar-content-container", children: [
|
|
1231
1535
|
/* @__PURE__ */ e.jsx("div", { className: "snackbar-text", children: t }),
|
|
1232
|
-
s != null && s.onClick ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-button-container", children: /* @__PURE__ */ e.jsx(
|
|
1536
|
+
s != null && s.onClick ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-button-container", children: /* @__PURE__ */ e.jsx(Y, { className: "snackbar-btn", onClick: s.onClick, children: s.buttonText ?? "Action" }) }) : null
|
|
1233
1537
|
] }),
|
|
1234
|
-
s != null && s.closeButton ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-close", children: /* @__PURE__ */ e.jsx("span", { onClick:
|
|
1538
|
+
s != null && s.closeButton ? /* @__PURE__ */ e.jsx("div", { className: "snackbar-close", children: /* @__PURE__ */ e.jsx("span", { onClick: r, children: /* @__PURE__ */ e.jsx(Ce, {}) }) }) : null
|
|
1235
1539
|
] }) : null;
|
|
1236
1540
|
};
|
|
1237
|
-
const
|
|
1238
|
-
const
|
|
1239
|
-
const [
|
|
1240
|
-
|
|
1241
|
-
const
|
|
1541
|
+
const Ds = ({ name: n, onChange: t, checked: s, className: r }) => /* @__PURE__ */ e.jsx("div", { className: `swich-container ${r}`, children: /* @__PURE__ */ e.jsx("input", { type: "checkbox", name: n, onChange: t, checked: s }) });
|
|
1542
|
+
const Wt = (n) => n === void 0 ? [] : Array.isArray(n) ? n : [n], Os = ({ multiple: n, value: t, items: s, className: r, onClick: l, onContextMenu: c, onChange: o }) => {
|
|
1543
|
+
const [i, d] = k(Wt(t)), h = (u) => {
|
|
1544
|
+
l && l(u);
|
|
1545
|
+
const x = u.currentTarget;
|
|
1242
1546
|
if (!n) {
|
|
1243
|
-
if (!
|
|
1547
|
+
if (!x.dataset.el)
|
|
1244
1548
|
return;
|
|
1245
|
-
|
|
1549
|
+
d([x.dataset.el]), o && o([x.dataset.el], u);
|
|
1246
1550
|
return;
|
|
1247
1551
|
}
|
|
1248
|
-
const
|
|
1249
|
-
let p =
|
|
1250
|
-
|
|
1552
|
+
const m = i.filter((N) => N === x.dataset.el);
|
|
1553
|
+
let p = i.slice();
|
|
1554
|
+
m.length > 0 && x.dataset.el ? p = p.filter((N) => N !== x.dataset.el) : x.dataset.el && p.push(x.dataset.el), d(p), o && o(p, u);
|
|
1251
1555
|
};
|
|
1252
|
-
return /* @__PURE__ */ e.jsx("div", { className: `sigmentedbutton-container ${
|
|
1253
|
-
|
|
1556
|
+
return /* @__PURE__ */ e.jsx("div", { className: `sigmentedbutton-container ${r ?? ""}`, children: s.map((u, x) => /* @__PURE__ */ e.jsx("div", { className: "sigmentedbutton-item-container", children: /* @__PURE__ */ e.jsxs("button", { "data-el": u, onContextMenu: c, onClick: h, className: `sigmentedbutton-item-button ${i.includes(u) ? "active" : ""}`, children: [
|
|
1557
|
+
i.includes(u) ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: /* @__PURE__ */ e.jsx(he, {}) }) : null,
|
|
1254
1558
|
/* @__PURE__ */ e.jsx("div", { className: "text-container", children: u })
|
|
1255
|
-
] },
|
|
1559
|
+
] }, x) }, x)) });
|
|
1256
1560
|
};
|
|
1257
|
-
const
|
|
1561
|
+
const Tn = (n) => n ? {
|
|
1258
1562
|
height: Number(window.getComputedStyle(n).getPropertyValue("height").replace("px", "")),
|
|
1259
1563
|
width: Number(window.getComputedStyle(n).getPropertyValue("width").replace("px", "")),
|
|
1260
1564
|
left: Number(n.getBoundingClientRect().left),
|
|
1261
1565
|
top: Number(n.getBoundingClientRect().top)
|
|
1262
|
-
} : void 0,
|
|
1263
|
-
let
|
|
1566
|
+
} : void 0, Mn = (n, t, s, r) => {
|
|
1567
|
+
let l = { x: n, y: t };
|
|
1264
1568
|
if (!s)
|
|
1265
|
-
return
|
|
1266
|
-
let
|
|
1267
|
-
return
|
|
1569
|
+
return l;
|
|
1570
|
+
let c = Number(window.getComputedStyle(s).getPropertyValue("height").replace("px", "")), o = Number(window.getComputedStyle(s).getPropertyValue("width").replace("px", "")), i = t + c - document.documentElement.scrollHeight, d = n + o - document.documentElement.clientWidth;
|
|
1571
|
+
return i > 0 && (l.y = l.y - i - ((r == null ? void 0 : r.marginBottom) ?? 0)), d > 0 && (l.x = l.x - d - ((r == null ? void 0 : r.marginRight) ?? 0)), l;
|
|
1268
1572
|
};
|
|
1269
|
-
function
|
|
1270
|
-
return
|
|
1573
|
+
function zt(n, t, s, r, l) {
|
|
1574
|
+
return r + (l - r) * ((n - t) / (s - t));
|
|
1271
1575
|
}
|
|
1272
|
-
const
|
|
1273
|
-
const [t, s] = k(0), [
|
|
1274
|
-
|
|
1576
|
+
const Pe = 0, Ae = 100, Fs = (n) => {
|
|
1577
|
+
const [t, s] = k(0), [r, l] = k(!1), c = z(null), o = z(null);
|
|
1578
|
+
F(() => {
|
|
1275
1579
|
n.value ? s(n.value) : s(0);
|
|
1276
1580
|
}, [n.value]);
|
|
1277
|
-
const
|
|
1278
|
-
s(Number(
|
|
1279
|
-
},
|
|
1280
|
-
if (
|
|
1281
|
-
let N =
|
|
1581
|
+
const i = (x) => {
|
|
1582
|
+
s(Number(x.target.value)), n.onChange(x);
|
|
1583
|
+
}, d = (x, m, p) => {
|
|
1584
|
+
if (c.current && o.current) {
|
|
1585
|
+
let N = Tn(o.current);
|
|
1282
1586
|
if (N)
|
|
1283
|
-
return
|
|
1587
|
+
return zt(x, m, p, 0, p - m) * (N.width - 20) / (p - m);
|
|
1284
1588
|
}
|
|
1285
1589
|
return 0;
|
|
1286
|
-
},
|
|
1287
|
-
|
|
1288
|
-
}, [n.onFocus]), u = C((
|
|
1289
|
-
|
|
1590
|
+
}, h = C((x) => {
|
|
1591
|
+
l(!0), n.onFocus && n.onFocus(x);
|
|
1592
|
+
}, [n.onFocus]), u = C((x) => {
|
|
1593
|
+
l(!1), n.onBlur && n.onBlur(x);
|
|
1290
1594
|
}, [n.onBlur]);
|
|
1291
1595
|
return /* @__PURE__ */ e.jsx("div", { className: "range", children: /* @__PURE__ */ e.jsxs("div", { className: "field", children: [
|
|
1292
|
-
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value left", children: n.min ??
|
|
1596
|
+
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value left", children: n.min ?? Pe }) : null,
|
|
1293
1597
|
/* @__PURE__ */ e.jsxs("div", { className: "field-range-container", children: [
|
|
1294
|
-
/* @__PURE__ */ e.jsx("div", { className: "slider-value", ref:
|
|
1598
|
+
/* @__PURE__ */ e.jsx("div", { className: "slider-value", ref: c, style: { width: d(t, n.min ?? Pe, n.max ?? Ae) }, children: /* @__PURE__ */ e.jsxs("div", { className: "slider-tooltip", style: { display: r ? "block" : "none" }, children: [
|
|
1295
1599
|
/* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-container" }),
|
|
1296
1600
|
/* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-value", children: t })
|
|
1297
1601
|
] }) }),
|
|
1298
|
-
/* @__PURE__ */ e.jsx("input", { onMouseUp: n.onMouseUp, ref:
|
|
1602
|
+
/* @__PURE__ */ e.jsx("input", { onMouseUp: n.onMouseUp, ref: o, step: n.step, type: "range", min: n.min ?? Pe, max: n.max ?? Ae, onChange: i, value: t, onFocus: h, onBlur: u })
|
|
1299
1603
|
] }),
|
|
1300
|
-
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: n.max ??
|
|
1301
|
-
] }) });
|
|
1302
|
-
};
|
|
1303
|
-
const kt = ({ children: n, onHide: t }) => {
|
|
1304
|
-
function s() {
|
|
1305
|
-
t && t();
|
|
1306
|
-
}
|
|
1307
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "modal-container", children: [
|
|
1308
|
-
/* @__PURE__ */ e.jsx("div", { onClick: s, className: "backplate" }),
|
|
1309
|
-
n
|
|
1310
|
-
] });
|
|
1311
|
-
}, ne = ({ className: n, children: t, header: s, action: a, onHide: i, style: l }) => {
|
|
1312
|
-
function d() {
|
|
1313
|
-
i && i();
|
|
1314
|
-
}
|
|
1315
|
-
return /* @__PURE__ */ e.jsx(kt, { onHide: d, children: /* @__PURE__ */ e.jsxs("div", { style: l, className: `dialog-container ${n}`, children: [
|
|
1316
|
-
s ? /* @__PURE__ */ e.jsx("div", { className: "dialog-header", children: /* @__PURE__ */ e.jsx("h2", { className: "text-3xl", children: s }) }) : null,
|
|
1317
|
-
/* @__PURE__ */ e.jsx("div", { className: "dialog-content", children: t }),
|
|
1318
|
-
a ? /* @__PURE__ */ e.jsx("div", { className: "dialog-action", children: a }) : null
|
|
1604
|
+
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: n.max ?? Ae }) : null
|
|
1319
1605
|
] }) });
|
|
1320
|
-
},
|
|
1321
|
-
/* @__PURE__ */ e.jsx(
|
|
1322
|
-
t ? /* @__PURE__ */ e.jsx(
|
|
1323
|
-
] }),
|
|
1324
|
-
const [
|
|
1325
|
-
window.innerWidth < 720 ?
|
|
1606
|
+
}, Ht = ({ onHide: n, onSave: t }) => /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1607
|
+
/* @__PURE__ */ e.jsx(Y, { onClick: n, children: "cancel" }),
|
|
1608
|
+
t ? /* @__PURE__ */ e.jsx(Y, { onClick: t, children: "save" }) : null
|
|
1609
|
+
] }), Ps = ({ style: n, className: t, header: s, children: r, onSave: l, onHide: c, marginBottom: o }) => {
|
|
1610
|
+
const [i, d] = k(!1), h = C(() => {
|
|
1611
|
+
window.innerWidth < 720 ? d(!0) : d(!1);
|
|
1326
1612
|
}, [window.innerWidth]);
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
}, [
|
|
1330
|
-
window.removeEventListener("resize",
|
|
1331
|
-
}), [
|
|
1613
|
+
F(() => {
|
|
1614
|
+
h();
|
|
1615
|
+
}, [h]), F(() => (window.addEventListener("resize", h), () => {
|
|
1616
|
+
window.removeEventListener("resize", h);
|
|
1617
|
+
}), [h]);
|
|
1332
1618
|
const u = () => {
|
|
1619
|
+
c && c();
|
|
1620
|
+
}, x = () => {
|
|
1333
1621
|
l && l();
|
|
1334
|
-
}, m = () => {
|
|
1335
|
-
i && i();
|
|
1336
1622
|
};
|
|
1337
|
-
return
|
|
1623
|
+
return i ? /* @__PURE__ */ e.jsxs("div", { style: { ...n, height: `calc(100vh - ${o}px` }, className: `full-screen-dialog-container ${t}`, children: [
|
|
1338
1624
|
/* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog-header", children: [
|
|
1339
|
-
/* @__PURE__ */ e.jsx("div", { className: "dialog-icon-container", children: /* @__PURE__ */ e.jsx(
|
|
1625
|
+
/* @__PURE__ */ e.jsx("div", { className: "dialog-icon-container", children: /* @__PURE__ */ e.jsx(ue, { transparent: !0, onClick: u, icon: /* @__PURE__ */ e.jsx(Ce, {}) }) }),
|
|
1340
1626
|
/* @__PURE__ */ e.jsx("div", { className: "header", children: s }),
|
|
1341
|
-
/* @__PURE__ */ e.jsx("div", { className: "save-container", children:
|
|
1627
|
+
/* @__PURE__ */ e.jsx("div", { className: "save-container", children: l ? /* @__PURE__ */ e.jsx(Y, { onClick: x, children: "save" }) : null })
|
|
1342
1628
|
] }),
|
|
1343
|
-
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog-content", style: { overflowY: "auto" }, children:
|
|
1344
|
-
] }) : /* @__PURE__ */ e.jsx(ne, { style: n, header: s, className: `full-screen-dialog-base-format ${t}`, onHide: u, children:
|
|
1345
|
-
},
|
|
1346
|
-
const
|
|
1347
|
-
|
|
1348
|
-
}, []),
|
|
1349
|
-
|
|
1629
|
+
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog-content", style: { overflowY: "auto" }, children: r })
|
|
1630
|
+
] }) : /* @__PURE__ */ e.jsx(ne, { style: n, header: s, className: `full-screen-dialog-base-format ${t}`, onHide: u, children: r, action: /* @__PURE__ */ e.jsx(Ht, { onHide: u, onSave: l ? x : void 0 }) });
|
|
1631
|
+
}, As = ({ styleContainer: n, text: t, header: s, actionText: r, onSuccess: l, onHide: c, onCancel: o }) => {
|
|
1632
|
+
const i = C(() => {
|
|
1633
|
+
l && l(), c && c();
|
|
1634
|
+
}, []), d = C(() => {
|
|
1635
|
+
o && o(), c && c();
|
|
1350
1636
|
}, []);
|
|
1351
|
-
return /* @__PURE__ */ e.jsx(ne, { style: n, header: s, action: /* @__PURE__ */ e.jsx(
|
|
1637
|
+
return /* @__PURE__ */ e.jsx(ne, { style: n, header: s, action: /* @__PURE__ */ e.jsx(Gt, { onHide: d, actionText: r, onSuccess: i }), children: /* @__PURE__ */ e.jsx("p", { children: t }) });
|
|
1352
1638
|
};
|
|
1353
|
-
function
|
|
1639
|
+
function Gt({ actionText: n, onSuccess: t, onHide: s }) {
|
|
1354
1640
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1355
|
-
/* @__PURE__ */ e.jsx(
|
|
1356
|
-
/* @__PURE__ */ e.jsx(
|
|
1641
|
+
/* @__PURE__ */ e.jsx(Y, { onClick: s, children: "cancel" }),
|
|
1642
|
+
/* @__PURE__ */ e.jsx(Y, { onClick: t, children: n ?? "OK" })
|
|
1357
1643
|
] });
|
|
1358
1644
|
}
|
|
1359
|
-
function
|
|
1360
|
-
const [
|
|
1361
|
-
n &&
|
|
1362
|
-
}, [
|
|
1363
|
-
|
|
1645
|
+
function Vs({ onSuccess: n, items: t, header: s, onHide: r, noHide: l = !1, name: c = "dailog_name" }) {
|
|
1646
|
+
const [o, i] = k(void 0), d = C(() => {
|
|
1647
|
+
n && o && n(o), i(void 0), !l && r && r();
|
|
1648
|
+
}, [o]), h = C((u) => {
|
|
1649
|
+
i(u);
|
|
1364
1650
|
}, []);
|
|
1365
|
-
return /* @__PURE__ */ e.jsxs(ne, { header: s, action: /* @__PURE__ */ e.jsx(
|
|
1366
|
-
/* @__PURE__ */ e.jsx(
|
|
1367
|
-
/* @__PURE__ */ e.jsx(
|
|
1368
|
-
/* @__PURE__ */ e.jsx(
|
|
1651
|
+
return /* @__PURE__ */ e.jsxs(ne, { header: s, action: /* @__PURE__ */ e.jsx(Xt, { onHide: r, onSuccess: d, disabled: o === void 0 }), children: [
|
|
1652
|
+
/* @__PURE__ */ e.jsx(Q, { style: { padding: "0px" } }),
|
|
1653
|
+
/* @__PURE__ */ e.jsx(Pt, { className: "transparent", scroll: !0, maxHeight: "200px", children: t.map((u, x) => /* @__PURE__ */ e.jsx("label", { children: /* @__PURE__ */ e.jsx(At, { hovered: !0, header: u.title, onClick: () => h(u.data), control: /* @__PURE__ */ e.jsx(Bt, { name: c, checked: u.data === o }) }) }, x)) }),
|
|
1654
|
+
/* @__PURE__ */ e.jsx(Q, { style: { padding: "0px" } })
|
|
1369
1655
|
] });
|
|
1370
1656
|
}
|
|
1371
|
-
function
|
|
1657
|
+
function Xt({ onSuccess: n, onHide: t, disabled: s }) {
|
|
1372
1658
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1373
|
-
/* @__PURE__ */ e.jsx(
|
|
1374
|
-
/* @__PURE__ */ e.jsx(
|
|
1659
|
+
/* @__PURE__ */ e.jsx(Y, { onClick: t, children: "cancel" }),
|
|
1660
|
+
/* @__PURE__ */ e.jsx(Y, { onClick: n, disabled: s, children: "OK" })
|
|
1375
1661
|
] });
|
|
1376
1662
|
}
|
|
1377
|
-
const
|
|
1378
|
-
const [
|
|
1379
|
-
|
|
1380
|
-
}, [
|
|
1381
|
-
|
|
1663
|
+
const Ls = ({ styleContainer: n, text: t, header: s, onSuccess: r, onHide: l, placeholder: c, type: o = "text", min: i = 0, max: d = 100 }) => {
|
|
1664
|
+
const [h, u] = k(""), x = C(() => {
|
|
1665
|
+
r && r(h), l && l();
|
|
1666
|
+
}, [h]), m = (p) => {
|
|
1667
|
+
o === "number" && (Number(p) < i && (p = String(i)), Number(p) > d && (p = String(d))), u(p);
|
|
1382
1668
|
};
|
|
1383
|
-
return /* @__PURE__ */ e.jsxs(ne, { style: n, header: s, action: /* @__PURE__ */ e.jsx(
|
|
1669
|
+
return /* @__PURE__ */ e.jsxs(ne, { style: n, header: s, action: /* @__PURE__ */ e.jsx(Ut, { onHide: l, onSuccess: x }), children: [
|
|
1384
1670
|
/* @__PURE__ */ e.jsx("p", { children: t }),
|
|
1385
|
-
/* @__PURE__ */ e.jsx("div", { className: "dialog-input-container", children: /* @__PURE__ */ e.jsx(
|
|
1671
|
+
/* @__PURE__ */ e.jsx("div", { className: "dialog-input-container", children: /* @__PURE__ */ e.jsx(Rn, { max: d, min: i, type: o, border: !0, placeholder: c, value: h, onChange: (p) => m(p.target.value) }) })
|
|
1386
1672
|
] });
|
|
1387
1673
|
};
|
|
1388
|
-
function
|
|
1674
|
+
function Ut({ onSuccess: n, onHide: t }) {
|
|
1389
1675
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1390
|
-
/* @__PURE__ */ e.jsx(
|
|
1391
|
-
/* @__PURE__ */ e.jsx(
|
|
1676
|
+
/* @__PURE__ */ e.jsx(Y, { onClick: t, children: "cancel" }),
|
|
1677
|
+
/* @__PURE__ */ e.jsx(Y, { onClick: n, children: "OK" })
|
|
1392
1678
|
] });
|
|
1393
1679
|
}
|
|
1394
|
-
const
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
)
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
}, [n]), u = C((f) => {
|
|
1402
|
-
t(f), o(!1);
|
|
1403
|
-
}, [t]), m = C(() => {
|
|
1404
|
-
o(!1), l();
|
|
1680
|
+
const qt = ({ setHours: n, setMinutes: t, switchMode: s, hours: r, minutes: l, onCancel: c, onOK: o }) => {
|
|
1681
|
+
const [i, d] = k(!1), h = C((m) => {
|
|
1682
|
+
n(m), d(!0);
|
|
1683
|
+
}, [n]), u = C((m) => {
|
|
1684
|
+
t(m), d(!1);
|
|
1685
|
+
}, [t]), x = C(() => {
|
|
1686
|
+
d(!1), c();
|
|
1405
1687
|
}, []);
|
|
1406
1688
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1407
1689
|
/* @__PURE__ */ e.jsx("div", { className: "time-type", children: /* @__PURE__ */ e.jsx("p", { className: "text-sm", children: "Select time" }) }),
|
|
1408
1690
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input-container", children: [
|
|
1409
1691
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input hours", children: [
|
|
1410
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { disabled: !0, type: "number", min: 0, max: 23, value:
|
|
1692
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { disabled: !0, type: "number", min: 0, max: 23, value: r }) }),
|
|
1411
1693
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Hour" })
|
|
1412
1694
|
] }),
|
|
1413
1695
|
/* @__PURE__ */ e.jsx("div", { className: "time-separator", children: ":" }),
|
|
1414
1696
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input minutes", children: [
|
|
1415
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { disabled: !0, type: "number", value:
|
|
1697
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { disabled: !0, type: "number", value: l, min: 0, max: 60 }) }),
|
|
1416
1698
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Minute" })
|
|
1417
1699
|
] })
|
|
1418
1700
|
] }),
|
|
1419
|
-
/* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children:
|
|
1701
|
+
/* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children: i ? /* @__PURE__ */ e.jsx(Kt, { setMinutes: u }) : /* @__PURE__ */ e.jsx(Jt, { setHours: h }) }),
|
|
1420
1702
|
/* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
|
|
1421
|
-
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => s(), children: /* @__PURE__ */ e.jsx(
|
|
1422
|
-
/* @__PURE__ */ e.jsx(
|
|
1423
|
-
/* @__PURE__ */ e.jsx(
|
|
1703
|
+
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => s(), children: /* @__PURE__ */ e.jsx(pt, {}) }),
|
|
1704
|
+
/* @__PURE__ */ e.jsx(Y, { className: "little", onClick: x, children: "Cancel" }),
|
|
1705
|
+
/* @__PURE__ */ e.jsx(Y, { className: "little", onClick: o, children: "OK" })
|
|
1424
1706
|
] })
|
|
1425
1707
|
] });
|
|
1426
1708
|
};
|
|
1427
|
-
function
|
|
1709
|
+
function Jt({ setHours: n }) {
|
|
1428
1710
|
return /* @__PURE__ */ e.jsxs("div", { className: "clock-input", children: [
|
|
1429
1711
|
/* @__PURE__ */ e.jsxs("div", { className: "clock-input-am", children: [
|
|
1430
1712
|
/* @__PURE__ */ e.jsx("span", { onClick: () => n(1), children: "1" }),
|
|
@@ -1457,7 +1739,7 @@ function Rt({ setHours: n }) {
|
|
|
1457
1739
|
/* @__PURE__ */ e.jsx("span", { className: "center" })
|
|
1458
1740
|
] });
|
|
1459
1741
|
}
|
|
1460
|
-
function
|
|
1742
|
+
function Kt({ setMinutes: n }) {
|
|
1461
1743
|
return /* @__PURE__ */ e.jsxs("div", { className: "clock-input", children: [
|
|
1462
1744
|
/* @__PURE__ */ e.jsxs("div", { className: "clock-input-minute", children: [
|
|
1463
1745
|
/* @__PURE__ */ e.jsx("span", { onClick: () => n(0), children: "00" }),
|
|
@@ -1476,71 +1758,71 @@ function St({ setMinutes: n }) {
|
|
|
1476
1758
|
/* @__PURE__ */ e.jsx("span", { className: "center" })
|
|
1477
1759
|
] });
|
|
1478
1760
|
}
|
|
1479
|
-
const
|
|
1480
|
-
const
|
|
1481
|
-
let u = Number(
|
|
1761
|
+
const Zt = ({ setHours: n, setMinutes: t, switchMode: s, minutes: r, hours: l, onCancel: c, onOK: o }) => {
|
|
1762
|
+
const i = (h) => {
|
|
1763
|
+
let u = Number(h.target.value);
|
|
1482
1764
|
u < 0 && (u = 0), u > 23 && (u = 23), n(u);
|
|
1483
|
-
},
|
|
1484
|
-
let u = Number(
|
|
1765
|
+
}, d = (h) => {
|
|
1766
|
+
let u = Number(h.target.value);
|
|
1485
1767
|
u < 0 && (u = 0), u > 59 && (u = 59), t(u);
|
|
1486
1768
|
};
|
|
1487
1769
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1488
1770
|
/* @__PURE__ */ e.jsx("div", { className: "time-type", children: /* @__PURE__ */ e.jsx("p", { className: "text-sm", children: "Enter time" }) }),
|
|
1489
1771
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input-container", children: [
|
|
1490
1772
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input hours", children: [
|
|
1491
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", min: 0, max: 23, value:
|
|
1773
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", min: 0, max: 23, value: l, onChange: i }) }),
|
|
1492
1774
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Hour" })
|
|
1493
1775
|
] }),
|
|
1494
1776
|
/* @__PURE__ */ e.jsx("div", { className: "time-separator", children: ":" }),
|
|
1495
1777
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input minutes", children: [
|
|
1496
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", value:
|
|
1778
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", value: r, min: 0, max: 59, onChange: d }) }),
|
|
1497
1779
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Minute" })
|
|
1498
1780
|
] })
|
|
1499
1781
|
] }),
|
|
1500
1782
|
/* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
|
|
1501
|
-
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => s(), children: /* @__PURE__ */ e.jsx(
|
|
1502
|
-
/* @__PURE__ */ e.jsx(
|
|
1503
|
-
/* @__PURE__ */ e.jsx(
|
|
1783
|
+
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => s(), children: /* @__PURE__ */ e.jsx(En, {}) }),
|
|
1784
|
+
/* @__PURE__ */ e.jsx(Y, { className: "little", onClick: c, children: "Cancel" }),
|
|
1785
|
+
/* @__PURE__ */ e.jsx(Y, { className: "little", onClick: o, children: "OK" })
|
|
1504
1786
|
] })
|
|
1505
1787
|
] });
|
|
1506
|
-
},
|
|
1507
|
-
const [t, s] = k(n.minutes ?? 0), [
|
|
1508
|
-
n.onHide && n.onHide(), s(0),
|
|
1509
|
-
},
|
|
1510
|
-
s(u), n.onChange && n.onChange(
|
|
1511
|
-
}, [
|
|
1512
|
-
n.onChange && n.onChange(
|
|
1513
|
-
}, [
|
|
1514
|
-
return
|
|
1515
|
-
},
|
|
1516
|
-
const [
|
|
1517
|
-
let v = String(g),
|
|
1518
|
-
v.length < 2 && (v = "0" + v),
|
|
1788
|
+
}, Qt = (n) => {
|
|
1789
|
+
const [t, s] = k(n.minutes ?? 0), [r, l] = k(n.hours ?? 0), [c, o] = k(!0), i = () => {
|
|
1790
|
+
n.onHide && n.onHide(), s(0), l(0);
|
|
1791
|
+
}, d = C((u) => {
|
|
1792
|
+
s(u), n.onChange && n.onChange(r, u), n.onHide && n.onHide();
|
|
1793
|
+
}, [r]), h = C(() => {
|
|
1794
|
+
n.onChange && n.onChange(r, t), n.onHide && n.onHide();
|
|
1795
|
+
}, [r, t]);
|
|
1796
|
+
return c ? /* @__PURE__ */ e.jsx(ne, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(qt, { setMinutes: d, setHours: l, minutes: t, hours: r, switchMode: () => o(!1), onCancel: i, onOK: h }) }) : /* @__PURE__ */ e.jsx(ne, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Zt, { setMinutes: s, setHours: l, minutes: t, hours: r, switchMode: () => o(!0), onCancel: i, onOK: h }) });
|
|
1797
|
+
}, Is = ({ border: n, onChange: t, name: s, value: r, className: l, validEmptyValue: c, error: o, container: i }) => {
|
|
1798
|
+
const [d, h] = k(r ?? ""), [u, x] = k(!1), m = C((g) => o || g && (!d || d === "") ? "error" : "", [d]), p = (g, E) => {
|
|
1799
|
+
let v = String(g), y = String(E);
|
|
1800
|
+
v.length < 2 && (v = "0" + v), y.length < 2 && (y = "0" + y), h(`${v}:${y}`), t && t(`${v}:${y}`);
|
|
1519
1801
|
}, N = () => {
|
|
1520
|
-
|
|
1802
|
+
x(!0);
|
|
1521
1803
|
};
|
|
1522
1804
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1523
1805
|
/* @__PURE__ */ e.jsxs("div", { className: `time-field ${n ? "border" : ""}`, children: [
|
|
1524
|
-
/* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: N, children: /* @__PURE__ */ e.jsx(
|
|
1806
|
+
/* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: N, children: /* @__PURE__ */ e.jsx(En, {}) }),
|
|
1525
1807
|
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: N, children: [
|
|
1526
1808
|
/* @__PURE__ */ e.jsx(
|
|
1527
1809
|
"input",
|
|
1528
1810
|
{
|
|
1529
1811
|
required: !0,
|
|
1530
1812
|
type: "time",
|
|
1531
|
-
className: `${
|
|
1813
|
+
className: `${l} ${m(c)}`,
|
|
1532
1814
|
name: s,
|
|
1533
|
-
value:
|
|
1815
|
+
value: d,
|
|
1534
1816
|
readOnly: !0
|
|
1535
1817
|
}
|
|
1536
1818
|
),
|
|
1537
1819
|
/* @__PURE__ */ e.jsx("span", { className: "text-field-line" })
|
|
1538
1820
|
] })
|
|
1539
1821
|
] }),
|
|
1540
|
-
u ? /* @__PURE__ */ e.jsx(
|
|
1541
|
-
|
|
1822
|
+
u ? /* @__PURE__ */ e.jsx(We, { container: i, children: /* @__PURE__ */ e.jsx(
|
|
1823
|
+
Qt,
|
|
1542
1824
|
{
|
|
1543
|
-
onHide: () =>
|
|
1825
|
+
onHide: () => x(!1),
|
|
1544
1826
|
onChange: p,
|
|
1545
1827
|
hours: 0,
|
|
1546
1828
|
minutes: 0
|
|
@@ -1548,7 +1830,7 @@ const _t = ({ setHours: n, setMinutes: t, switchMode: s, minutes: a, hours: i, o
|
|
|
1548
1830
|
) }) : null
|
|
1549
1831
|
] });
|
|
1550
1832
|
};
|
|
1551
|
-
const
|
|
1833
|
+
const es = 2050, pn = 1900, ee = [
|
|
1552
1834
|
"January",
|
|
1553
1835
|
"February",
|
|
1554
1836
|
"March",
|
|
@@ -1561,59 +1843,59 @@ const Mt = 2050, on = 1900, H = [
|
|
|
1561
1843
|
"October",
|
|
1562
1844
|
"November",
|
|
1563
1845
|
"December"
|
|
1564
|
-
],
|
|
1565
|
-
const [s] = k(
|
|
1846
|
+
], ns = () => Array(es - pn).fill(0).map((n, t) => pn + t), ts = ({ onChange: n, onHide: t }) => {
|
|
1847
|
+
const [s] = k(ee[(/* @__PURE__ */ new Date()).getMonth()]), [r] = k((/* @__PURE__ */ new Date()).getFullYear()), [l] = k((/* @__PURE__ */ new Date()).getDate()), [c, o] = k(ee[(/* @__PURE__ */ new Date()).getMonth()]), [i, d] = k((/* @__PURE__ */ new Date()).getFullYear()), [h, u] = k({
|
|
1566
1848
|
day: (/* @__PURE__ */ new Date()).getDate(),
|
|
1567
1849
|
type: "NOW_MONTH"
|
|
1568
1850
|
/* NOW_MONTH */
|
|
1569
|
-
}), [
|
|
1851
|
+
}), [x, m] = k(
|
|
1570
1852
|
"DAYS"
|
|
1571
1853
|
/* DAYS */
|
|
1572
|
-
), p = (
|
|
1573
|
-
let
|
|
1574
|
-
return
|
|
1575
|
-
}, E = (
|
|
1576
|
-
|
|
1854
|
+
), p = (b, T) => new Date(b, T + 1, 0).getDate(), N = (b, T, B) => new Date(b, T, B).getDay(), g = (b, T) => {
|
|
1855
|
+
let B = Array(p(b, T)).fill(0).map((H, I) => ({ type: "NOW_MONTH", day: I + 1 })), X = N(b, T, p(b, T)), S = Array(7 - X).fill(0).map((H, I) => ({ type: "NEXT_MONTH", day: I + 1 }));
|
|
1856
|
+
return B = Array(N(b, T, 0)).fill(0).map((H, I) => ({ type: "PREV_MONTH", day: p(T ? b : b - 1, T ? T - 1 : 11) - I })).reverse().concat(B).concat(S), B;
|
|
1857
|
+
}, E = (b) => {
|
|
1858
|
+
m(
|
|
1577
1859
|
"DAYS"
|
|
1578
1860
|
/* DAYS */
|
|
1579
|
-
),
|
|
1580
|
-
}, v = (
|
|
1581
|
-
|
|
1861
|
+
), d(b);
|
|
1862
|
+
}, v = (b) => {
|
|
1863
|
+
m(
|
|
1582
1864
|
"DAYS"
|
|
1583
1865
|
/* DAYS */
|
|
1584
|
-
),
|
|
1585
|
-
},
|
|
1586
|
-
u(
|
|
1587
|
-
},
|
|
1588
|
-
let
|
|
1589
|
-
|
|
1590
|
-
}, [
|
|
1866
|
+
), o(b);
|
|
1867
|
+
}, y = (b) => {
|
|
1868
|
+
u(b);
|
|
1869
|
+
}, D = C(() => {
|
|
1870
|
+
let b = /* @__PURE__ */ new Date();
|
|
1871
|
+
b.setFullYear(i), h.type === "NEXT_MONTH" ? c === ee[11] ? (b.setMonth(0), b.setFullYear(i + 1)) : b.setMonth(ee.indexOf(c) + 1) : h.type === "PREV_MONTH" ? c === ee[0] ? (b.setMonth(11), b.setFullYear(i - 1)) : b.setMonth(ee.indexOf(c) - 1) : b.setMonth(ee.indexOf(c)), b.setDate(h.day), n && n(b.getFullYear(), b.getMonth(), b.getDate()), t && t();
|
|
1872
|
+
}, [c, i, n, t, h]);
|
|
1591
1873
|
return /* @__PURE__ */ e.jsxs(ne, { className: "calendar-body-container", style: { maxWidth: "328px" }, children: [
|
|
1592
1874
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-select-container", children: [
|
|
1593
|
-
/* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className:
|
|
1875
|
+
/* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className: x === "MONTHS" ? "active" : "", onClick: () => m(
|
|
1594
1876
|
"MONTHS"
|
|
1595
1877
|
/* MONTHS */
|
|
1596
1878
|
), children: [
|
|
1597
|
-
|
|
1879
|
+
c,
|
|
1598
1880
|
" ",
|
|
1599
|
-
/* @__PURE__ */ e.jsx(
|
|
1881
|
+
/* @__PURE__ */ e.jsx(mn, {})
|
|
1600
1882
|
] }) }),
|
|
1601
|
-
/* @__PURE__ */ e.jsx("div", { className: "years", children: /* @__PURE__ */ e.jsxs("span", { className:
|
|
1883
|
+
/* @__PURE__ */ e.jsx("div", { className: "years", children: /* @__PURE__ */ e.jsxs("span", { className: x === "YEARS" ? "active" : "", onClick: () => m(
|
|
1602
1884
|
"YEARS"
|
|
1603
1885
|
/* YEARS */
|
|
1604
1886
|
), children: [
|
|
1605
|
-
|
|
1887
|
+
i,
|
|
1606
1888
|
" ",
|
|
1607
|
-
/* @__PURE__ */ e.jsx(
|
|
1889
|
+
/* @__PURE__ */ e.jsx(mn, {})
|
|
1608
1890
|
] }) })
|
|
1609
1891
|
] }),
|
|
1610
|
-
|
|
1611
|
-
/* @__PURE__ */ e.jsx("div", { className: "status-container", children:
|
|
1612
|
-
/* @__PURE__ */ e.jsx("div", { className: "content", children:
|
|
1613
|
-
] },
|
|
1614
|
-
/* @__PURE__ */ e.jsx("div", { className: "status-container", children:
|
|
1615
|
-
/* @__PURE__ */ e.jsx("div", { className: "content", children:
|
|
1616
|
-
] },
|
|
1892
|
+
x === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: ee.map((b, T) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => v(b), children: [
|
|
1893
|
+
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: c === b ? /* @__PURE__ */ e.jsx(he, {}) : null }),
|
|
1894
|
+
/* @__PURE__ */ e.jsx("div", { className: "content", children: b })
|
|
1895
|
+
] }, T)) }) : x === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: ns().map((b, T) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => E(b), children: [
|
|
1896
|
+
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: i === b ? /* @__PURE__ */ e.jsx(he, {}) : null }),
|
|
1897
|
+
/* @__PURE__ */ e.jsx("div", { className: "content", children: b })
|
|
1898
|
+
] }, T)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1617
1899
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-dayofweek-container", children: [
|
|
1618
1900
|
/* @__PURE__ */ e.jsx("span", { children: "M" }),
|
|
1619
1901
|
/* @__PURE__ */ e.jsx("span", { children: "T" }),
|
|
@@ -1623,512 +1905,499 @@ const Mt = 2050, on = 1900, H = [
|
|
|
1623
1905
|
/* @__PURE__ */ e.jsx("span", { children: "S" }),
|
|
1624
1906
|
/* @__PURE__ */ e.jsx("span", { children: "S" })
|
|
1625
1907
|
] }),
|
|
1626
|
-
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: g(
|
|
1908
|
+
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: g(i, ee.indexOf(c)).map((b, T) => /* @__PURE__ */ e.jsx("div", { className: `day ${b.type !== "NOW_MONTH" ? "other" : ""} ${l === b.day && i === r && c === s ? "now" : ""} ${b.day === h.day && b.type === h.type ? "select" : ""}`, onClick: () => y(b), children: b.day }, T)) })
|
|
1627
1909
|
] }),
|
|
1628
1910
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-action-container", children: [
|
|
1629
|
-
/* @__PURE__ */ e.jsx(
|
|
1630
|
-
/* @__PURE__ */ e.jsx(
|
|
1911
|
+
/* @__PURE__ */ e.jsx(Y, { className: "little m-0", onClick: t, children: "Cancel" }),
|
|
1912
|
+
/* @__PURE__ */ e.jsx(Y, { className: "little m-0", onClick: D, children: "OK" })
|
|
1631
1913
|
] })
|
|
1632
1914
|
] });
|
|
1633
|
-
},
|
|
1634
|
-
const [
|
|
1635
|
-
|
|
1915
|
+
}, Bs = ({ border: n, onChange: t, name: s, value: r, className: l, validEmptyValue: c, error: o, container: i }) => {
|
|
1916
|
+
const [d, h] = k(r ?? ""), [u, x] = k(!1), m = C((v) => o || v && (!d || d === "") ? "error" : "", [d]), p = () => {
|
|
1917
|
+
x(!0);
|
|
1636
1918
|
}, N = (v) => {
|
|
1637
|
-
let
|
|
1638
|
-
return
|
|
1919
|
+
let y = String(v + 1);
|
|
1920
|
+
return y.length < 2 && (y = "0" + y), y;
|
|
1639
1921
|
}, g = (v) => {
|
|
1640
|
-
let
|
|
1641
|
-
return
|
|
1642
|
-
}, E = C((v,
|
|
1643
|
-
|
|
1922
|
+
let y = String(v);
|
|
1923
|
+
return y.length < 2 && (y = "0" + y), y;
|
|
1924
|
+
}, E = C((v, y, D) => {
|
|
1925
|
+
h(`${v}-${N(y)}-${g(D)}`), t && t(`${v}-${N(y)}-${g(D)}`);
|
|
1644
1926
|
}, [t]);
|
|
1645
1927
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1646
1928
|
/* @__PURE__ */ e.jsxs("div", { className: `date-field ${n ? "border" : ""}`, children: [
|
|
1647
|
-
/* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: p, children: /* @__PURE__ */ e.jsx(
|
|
1929
|
+
/* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: p, children: /* @__PURE__ */ e.jsx(jt, {}) }),
|
|
1648
1930
|
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: p, children: [
|
|
1649
1931
|
/* @__PURE__ */ e.jsx(
|
|
1650
1932
|
"input",
|
|
1651
1933
|
{
|
|
1652
1934
|
required: !0,
|
|
1653
1935
|
type: "date",
|
|
1654
|
-
className: `${
|
|
1936
|
+
className: `${l} ${m(c)}`,
|
|
1655
1937
|
name: s,
|
|
1656
|
-
value:
|
|
1938
|
+
value: d,
|
|
1657
1939
|
readOnly: !0
|
|
1658
1940
|
}
|
|
1659
1941
|
),
|
|
1660
1942
|
/* @__PURE__ */ e.jsx("span", { className: "text-field-line" })
|
|
1661
1943
|
] })
|
|
1662
1944
|
] }),
|
|
1663
|
-
u ? /* @__PURE__ */ e.jsx(
|
|
1945
|
+
u ? /* @__PURE__ */ e.jsx(We, { container: i, children: /* @__PURE__ */ e.jsx(ts, { onChange: E, onHide: () => x(!1) }) }) : null
|
|
1664
1946
|
] });
|
|
1665
1947
|
};
|
|
1666
|
-
const
|
|
1667
|
-
const [
|
|
1668
|
-
if (!
|
|
1948
|
+
const Ys = ({ onChange: n, value: t, className: s }) => {
|
|
1949
|
+
const [r, l] = k(t || []), c = C((i) => {
|
|
1950
|
+
if (!i)
|
|
1669
1951
|
return;
|
|
1670
|
-
let
|
|
1671
|
-
const
|
|
1672
|
-
|
|
1673
|
-
}, [
|
|
1952
|
+
let d = r.slice();
|
|
1953
|
+
const h = d.indexOf(i.target.name);
|
|
1954
|
+
h !== -1 && !i.target.checked ? d = d.filter((u, x) => x !== h) : h === -1 && i.target.checked && d.push(i.target.name), l(d), n && n(d);
|
|
1955
|
+
}, [r]), o = C((i) => r.indexOf(i) !== -1, [r]);
|
|
1674
1956
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: `days-week-field-container ${s}`, children: [
|
|
1675
1957
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
1676
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange:
|
|
1958
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: c, name: "Mon", checked: o("Mon") }),
|
|
1677
1959
|
/* @__PURE__ */ e.jsx("span", { children: "Mon" })
|
|
1678
1960
|
] }),
|
|
1679
1961
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
1680
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange:
|
|
1962
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: c, name: "Tue", checked: o("Tue") }),
|
|
1681
1963
|
/* @__PURE__ */ e.jsx("span", { children: "Tue" })
|
|
1682
1964
|
] }),
|
|
1683
1965
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
1684
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange:
|
|
1966
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: c, name: "Wed", checked: o("Wed") }),
|
|
1685
1967
|
/* @__PURE__ */ e.jsx("span", { children: "Wed" })
|
|
1686
1968
|
] }),
|
|
1687
1969
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
1688
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange:
|
|
1970
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: c, name: "Thu", checked: o("Thu") }),
|
|
1689
1971
|
/* @__PURE__ */ e.jsx("span", { children: "Thu" })
|
|
1690
1972
|
] }),
|
|
1691
1973
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
1692
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange:
|
|
1974
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: c, name: "Fri", checked: o("Fri") }),
|
|
1693
1975
|
/* @__PURE__ */ e.jsx("span", { children: "Fri" })
|
|
1694
1976
|
] }),
|
|
1695
1977
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
1696
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange:
|
|
1978
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: c, name: "Sat", checked: o("Sat") }),
|
|
1697
1979
|
/* @__PURE__ */ e.jsx("span", { children: "Sat" })
|
|
1698
1980
|
] }),
|
|
1699
1981
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
1700
|
-
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange:
|
|
1982
|
+
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: c, name: "Sun", checked: o("Sun") }),
|
|
1701
1983
|
/* @__PURE__ */ e.jsx("span", { children: "Sun" })
|
|
1702
1984
|
] })
|
|
1703
1985
|
] }) });
|
|
1704
1986
|
};
|
|
1705
|
-
const
|
|
1706
|
-
const
|
|
1707
|
-
if (!
|
|
1987
|
+
const Ws = ({ children: n }) => /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item", children: /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item-container", children: n }) }), zs = ({ minWith: n, children: t, className: s, gridRowGap: r = "10px", gridColumnGap: l = "5px", itemMinWith: c, itemMaxWith: o, itemWith: i = "400px" }) => {
|
|
1988
|
+
const d = z(null), [h, u] = k([]), x = C(() => {
|
|
1989
|
+
if (!d.current)
|
|
1708
1990
|
return;
|
|
1709
|
-
|
|
1710
|
-
let N =
|
|
1711
|
-
|
|
1991
|
+
d.current.style.display = "grid", d.current.style.gridRowGap = r, d.current.style.gridColumnGap = l;
|
|
1992
|
+
let N = c ?? i, g = o ?? i;
|
|
1993
|
+
d.current.style.gridTemplateColumns = "repeat(auto-fill, minmax(" + N + ", " + g + "))", d.current.style.gridAutoRows = "0", h.forEach((E) => {
|
|
1712
1994
|
E.style.gridAutoRows = "0", E.style.gridAutoColumns = "0";
|
|
1713
1995
|
});
|
|
1714
|
-
}, [
|
|
1715
|
-
if (!
|
|
1996
|
+
}, [d.current]), m = C(() => {
|
|
1997
|
+
if (!d.current)
|
|
1716
1998
|
return;
|
|
1717
|
-
let N = parseInt(window.getComputedStyle(
|
|
1718
|
-
|
|
1719
|
-
let v = 0,
|
|
1720
|
-
|
|
1999
|
+
let N = parseInt(window.getComputedStyle(d.current).getPropertyValue("grid-row-gap")), g = parseInt(window.getComputedStyle(d.current).getPropertyValue("grid-auto-rows"));
|
|
2000
|
+
h.forEach((E) => {
|
|
2001
|
+
let v = 0, y = E.querySelector(".adaptiv-grid-item-container");
|
|
2002
|
+
y && (v = Math.ceil((y.getBoundingClientRect().height + N) / (g + N))), E.style.gridRowEnd = "span " + v;
|
|
1721
2003
|
});
|
|
1722
|
-
}, [
|
|
1723
|
-
if (
|
|
1724
|
-
let N =
|
|
2004
|
+
}, [h, d.current]), p = C(() => {
|
|
2005
|
+
if (d.current) {
|
|
2006
|
+
let N = d.current.querySelectorAll(".adaptiv-grid-item");
|
|
1725
2007
|
u(Array.prototype.slice.call(N, 0));
|
|
1726
2008
|
}
|
|
1727
|
-
}, [
|
|
1728
|
-
return
|
|
2009
|
+
}, [d.current, t]);
|
|
2010
|
+
return F(() => {
|
|
1729
2011
|
p();
|
|
1730
|
-
}, [p]),
|
|
2012
|
+
}, [p]), F(() => {
|
|
2013
|
+
x();
|
|
2014
|
+
}, [x]), F(() => {
|
|
1731
2015
|
m();
|
|
1732
|
-
}, [m]),
|
|
1733
|
-
|
|
1734
|
-
}, [
|
|
1735
|
-
window.addEventListener("resize", f);
|
|
1736
|
-
}), [f]), /* @__PURE__ */ e.jsx("div", { style: { minWidth: n }, ref: o, className: `adaptiv-grid-layout ${s}`, children: t });
|
|
2016
|
+
}, [m, t]), F(() => (window.addEventListener("resize", m), () => {
|
|
2017
|
+
window.addEventListener("resize", m);
|
|
2018
|
+
}), [m]), /* @__PURE__ */ e.jsx("div", { style: { minWidth: n }, ref: d, className: `adaptiv-grid-layout ${s}`, children: t });
|
|
1737
2019
|
};
|
|
1738
|
-
const
|
|
1739
|
-
const
|
|
1740
|
-
let
|
|
1741
|
-
for (const p of
|
|
1742
|
-
if (p.indexCol >=
|
|
2020
|
+
const Hs = ({ onClick: n, onContextMenu: t, className: s, style: r, countColumn: l, items: c, onClickColl: o, classNameColumn: i }) => {
|
|
2021
|
+
const d = (u, x) => {
|
|
2022
|
+
let m = new Array(u).fill([]).map((p) => new Array());
|
|
2023
|
+
for (const p of x) {
|
|
2024
|
+
if (p.indexCol >= m.length) {
|
|
1743
2025
|
console.error(`invalid index count. indexCol = ${p.indexCol}, column count = ${u}`);
|
|
1744
2026
|
continue;
|
|
1745
2027
|
}
|
|
1746
|
-
|
|
2028
|
+
m[p.indexCol].push(p.node);
|
|
1747
2029
|
}
|
|
1748
|
-
return
|
|
1749
|
-
},
|
|
2030
|
+
return m;
|
|
2031
|
+
}, h = o || (() => {
|
|
1750
2032
|
});
|
|
1751
|
-
return /* @__PURE__ */ e.jsx("div", { onClick: n, onContextMenu: t, style: { ...
|
|
2033
|
+
return /* @__PURE__ */ e.jsx("div", { onClick: n, onContextMenu: t, style: { ...r, gridTemplateColumns: `repeat(${l}, 1fr)` }, className: `alex-evo-sh-ui-kit-column-layout ${s}`, children: d(l, c).map((u, x) => /* @__PURE__ */ e.jsx("div", { onClick: (m) => h(x, m), className: `alex-evo-sh-ui-kit-column-layout-coll ${i}`, children: u.map((m, p) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: m }, p)) }, x)) });
|
|
1752
2034
|
};
|
|
1753
|
-
const
|
|
1754
|
-
const
|
|
2035
|
+
const ss = ({ item: n, isIcon: t, globalClick: s }) => {
|
|
2036
|
+
const r = () => {
|
|
1755
2037
|
n.onClick && n.onClick(), s && s();
|
|
1756
2038
|
};
|
|
1757
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "menu-sub-item", onClick:
|
|
2039
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "menu-sub-item", onClick: r, children: [
|
|
1758
2040
|
t ? /* @__PURE__ */ e.jsx("div", { className: "menu-icon-container", children: n.icon }) : null,
|
|
1759
2041
|
/* @__PURE__ */ e.jsx("div", { className: "menu-text-container", children: n.title }),
|
|
1760
|
-
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(
|
|
2042
|
+
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(he, {}) : null })
|
|
1761
2043
|
] });
|
|
1762
|
-
},
|
|
1763
|
-
const
|
|
1764
|
-
function
|
|
1765
|
-
for (let
|
|
1766
|
-
if (
|
|
2044
|
+
}, rs = ({ items: n, onHide: t, smallDisplay: s, globalClick: r }) => {
|
|
2045
|
+
const l = z(null), [c, o] = k({ left: "0px", top: "0px" });
|
|
2046
|
+
function i(d) {
|
|
2047
|
+
for (let h of d)
|
|
2048
|
+
if (h.icon)
|
|
1767
2049
|
return !0;
|
|
1768
2050
|
return !1;
|
|
1769
2051
|
}
|
|
1770
|
-
return
|
|
1771
|
-
if (!
|
|
2052
|
+
return F(() => {
|
|
2053
|
+
if (!l.current)
|
|
1772
2054
|
return;
|
|
1773
|
-
let
|
|
1774
|
-
if (!
|
|
2055
|
+
let d = Tn(l.current.parentElement);
|
|
2056
|
+
if (!d)
|
|
1775
2057
|
return;
|
|
1776
|
-
let
|
|
1777
|
-
|
|
1778
|
-
left:
|
|
1779
|
-
top:
|
|
2058
|
+
let h = Mn(d.left + d.width, d.top, l.current, { marginRight: d.width });
|
|
2059
|
+
o({
|
|
2060
|
+
left: h.x - d.left + "px",
|
|
2061
|
+
top: h.y - d.top + "px"
|
|
1780
2062
|
});
|
|
1781
2063
|
}, []), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1782
|
-
/* @__PURE__ */ e.jsx("div", { ref:
|
|
2064
|
+
/* @__PURE__ */ e.jsx("div", { ref: l, className: "menu-sub-block", style: { ...c }, children: n.map((d, h) => /* @__PURE__ */ e.jsx(ss, { item: d, isIcon: i(n), globalClick: r }, h)) }),
|
|
1783
2065
|
s ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "backplate", onClick: t })
|
|
1784
2066
|
] });
|
|
1785
|
-
},
|
|
1786
|
-
const [
|
|
1787
|
-
|
|
1788
|
-
}, [
|
|
2067
|
+
}, as = ({ onHide: n, autoHide: t, globalClick: s, item: r, isIcon: l, smallDisplay: c }) => {
|
|
2068
|
+
const [o, i] = k(!1), d = C(() => {
|
|
2069
|
+
r.subItems ? i((h) => !h) : r.onClick && r.onClick(), s && s(), t && n && n();
|
|
2070
|
+
}, [r.onClick]);
|
|
1789
2071
|
return /* @__PURE__ */ e.jsxs("div", { className: "menu-item-conatiner", children: [
|
|
1790
|
-
/* @__PURE__ */ e.jsxs("div", { className: "menu-item", onClick:
|
|
1791
|
-
|
|
1792
|
-
/* @__PURE__ */ e.jsx("div", { className: "menu-text-container", children:
|
|
1793
|
-
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children:
|
|
2072
|
+
/* @__PURE__ */ e.jsxs("div", { className: "menu-item", onClick: d, children: [
|
|
2073
|
+
l ? /* @__PURE__ */ e.jsx("div", { className: "menu-icon-container", children: r.icon }) : null,
|
|
2074
|
+
/* @__PURE__ */ e.jsx("div", { className: "menu-text-container", children: r.title }),
|
|
2075
|
+
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: r.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-status-submenu ${o ? "active" : ""}` }) : r.activated ? /* @__PURE__ */ e.jsx(he, {}) : /* @__PURE__ */ e.jsx("span", { className: "none-status" }) })
|
|
1794
2076
|
] }),
|
|
1795
|
-
|
|
2077
|
+
o && r.subItems ? /* @__PURE__ */ e.jsx(rs, { items: r.subItems, onHide: () => i(!1), smallDisplay: c }) : null
|
|
1796
2078
|
] });
|
|
1797
2079
|
};
|
|
1798
|
-
function
|
|
1799
|
-
function
|
|
1800
|
-
for (let
|
|
1801
|
-
if (
|
|
2080
|
+
function _n({ block: n, smallDisplay: t, onHide: s, globalClick: r, autoHide: l }) {
|
|
2081
|
+
function c(o) {
|
|
2082
|
+
for (let i of o.items)
|
|
2083
|
+
if (i.icon)
|
|
1802
2084
|
return !0;
|
|
1803
2085
|
return !1;
|
|
1804
2086
|
}
|
|
1805
|
-
return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((
|
|
2087
|
+
return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((o, i) => /* @__PURE__ */ e.jsx(as, { globalClick: r, autoHide: l, onHide: s, item: o, isIcon: c(n), smallDisplay: t }, i)) });
|
|
1806
2088
|
}
|
|
1807
|
-
const
|
|
1808
|
-
const t =
|
|
2089
|
+
const ls = 100, Gs = (n) => {
|
|
2090
|
+
const t = z(null), [s, r] = k({ left: "0px", top: "0px" }), l = () => {
|
|
1809
2091
|
n.onHide && n.onHide();
|
|
1810
2092
|
};
|
|
1811
|
-
return
|
|
1812
|
-
let
|
|
1813
|
-
|
|
1814
|
-
left:
|
|
1815
|
-
top:
|
|
2093
|
+
return F(() => {
|
|
2094
|
+
let c = Mn(n.x, n.y, t.current, { marginBottom: ls });
|
|
2095
|
+
r({
|
|
2096
|
+
left: c.x + "px",
|
|
2097
|
+
top: c.y + "px"
|
|
1816
2098
|
});
|
|
1817
2099
|
}, [n.x, n.y]), n.visible ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1818
|
-
/* @__PURE__ */ e.jsx("div", { ref: t, className: "menu-container", style: { ...s, opacity: s.top !== "0px" ? "100%" : "0%", width: n.width, maxWidth: n.width ? "100%" : void 0 }, children: n.blocks.map((
|
|
1819
|
-
|
|
1820
|
-
/* @__PURE__ */ e.jsx(
|
|
1821
|
-
] },
|
|
1822
|
-
/* @__PURE__ */ e.jsx("div", { style: { zIndex: 1600 }, className: "backplate", onClick:
|
|
1823
|
-
|
|
2100
|
+
/* @__PURE__ */ e.jsx("div", { ref: t, className: "menu-container", style: { ...s, opacity: s.top !== "0px" ? "100%" : "0%", width: n.width, maxWidth: n.width ? "100%" : void 0 }, children: n.blocks.map((c, o) => /* @__PURE__ */ e.jsxs(ke.Fragment, { children: [
|
|
2101
|
+
o !== 0 ? /* @__PURE__ */ e.jsx(Q, {}) : null,
|
|
2102
|
+
/* @__PURE__ */ e.jsx(_n, { block: c, smallDisplay: !1, globalClick: n.onClick, autoHide: n.autoHide, onHide: l })
|
|
2103
|
+
] }, o)) }),
|
|
2104
|
+
/* @__PURE__ */ e.jsx("div", { style: { zIndex: 1600 }, className: "backplate", onClick: l, onContextMenu: (c) => {
|
|
2105
|
+
c.preventDefault();
|
|
1824
2106
|
} })
|
|
1825
2107
|
] }) : null;
|
|
1826
|
-
},
|
|
2108
|
+
}, Xs = (n) => {
|
|
1827
2109
|
const t = () => {
|
|
1828
2110
|
};
|
|
1829
|
-
return /* @__PURE__ */ e.jsx(
|
|
1830
|
-
|
|
1831
|
-
/* @__PURE__ */ e.jsx(
|
|
1832
|
-
] },
|
|
2111
|
+
return /* @__PURE__ */ e.jsx(Lt, { onHide: n.onHide || t, visible: n.visible, children: /* @__PURE__ */ e.jsx("div", { className: "bottom-sheets-menu-container", children: n.blocks.map((s, r) => /* @__PURE__ */ e.jsxs(ke.Fragment, { children: [
|
|
2112
|
+
r !== 0 ? /* @__PURE__ */ e.jsx(Q, {}) : null,
|
|
2113
|
+
/* @__PURE__ */ e.jsx(_n, { block: s, smallDisplay: !0 })
|
|
2114
|
+
] }, r)) }) });
|
|
1833
2115
|
};
|
|
1834
|
-
function
|
|
2116
|
+
function cs(n) {
|
|
1835
2117
|
let t = [];
|
|
1836
2118
|
if (n.length > 0)
|
|
1837
2119
|
for (let s of n)
|
|
1838
|
-
for (let
|
|
1839
|
-
let
|
|
1840
|
-
for (let
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
title:
|
|
1844
|
-
field:
|
|
2120
|
+
for (let r in s) {
|
|
2121
|
+
let l = !1;
|
|
2122
|
+
for (let c of t)
|
|
2123
|
+
c.field === r && (l = !0);
|
|
2124
|
+
l || t.push({
|
|
2125
|
+
title: r,
|
|
2126
|
+
field: r
|
|
1845
2127
|
});
|
|
1846
2128
|
}
|
|
1847
2129
|
return t;
|
|
1848
2130
|
}
|
|
1849
|
-
const
|
|
1850
|
-
function i
|
|
1851
|
-
for (let
|
|
1852
|
-
if (
|
|
1853
|
-
return
|
|
2131
|
+
const is = ({ data: n, column: t, color: s, backgroundColor: r }) => {
|
|
2132
|
+
function l(i, d) {
|
|
2133
|
+
for (let h in d)
|
|
2134
|
+
if (i === h)
|
|
2135
|
+
return d[h];
|
|
1854
2136
|
}
|
|
1855
|
-
function
|
|
1856
|
-
return typeof
|
|
2137
|
+
function c(i) {
|
|
2138
|
+
return typeof i == "number" || typeof i == "string" ? { content: i } : i;
|
|
1857
2139
|
}
|
|
1858
|
-
function
|
|
1859
|
-
return
|
|
2140
|
+
function o(i) {
|
|
2141
|
+
return i ? Array.isArray(i) ? i.map((d) => c(d)) : [c(i)] : [];
|
|
1860
2142
|
}
|
|
1861
|
-
return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor:
|
|
1862
|
-
},
|
|
1863
|
-
const
|
|
1864
|
-
|
|
2143
|
+
return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor: r }, children: o(l(t.field, n)).map((i, d) => /* @__PURE__ */ e.jsx("p", { style: { color: i.color ?? s }, className: i.onClick ? "no-click" : "", onClick: i.onClick, children: typeof i.content == "string" || typeof i.content == "number" ? i.content : /* @__PURE__ */ e.jsx(i.content, {}) }, d)) });
|
|
2144
|
+
}, os = ({ actions: n, item: t, columns: s, onContextMenu: r, onDelete: l, onEdit: c, onClickRow: o, index: i }) => {
|
|
2145
|
+
const d = (u) => !u.target.closest(".no-click"), h = (u) => {
|
|
2146
|
+
d(u) && o && o(t, i);
|
|
1865
2147
|
};
|
|
1866
|
-
return /* @__PURE__ */ e.jsxs("tr", { className: "table-row", onClick:
|
|
1867
|
-
s.map((u,
|
|
1868
|
-
n ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((u,
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
2148
|
+
return /* @__PURE__ */ e.jsxs("tr", { className: "table-row", onClick: h, children: [
|
|
2149
|
+
s.map((u, x) => /* @__PURE__ */ e.jsx(is, { color: u.color, backgroundColor: u.backgroundColor, column: u, data: t }, x)),
|
|
2150
|
+
n ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((u, x) => /* @__PURE__ */ e.jsx(ue, { transparent: !0, icon: u.icon, onClick: (m) => u.onClick(m, t, i) }, x)) }) }) : null,
|
|
2151
|
+
r || l || c ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] table-edit-button no-click", children: /* @__PURE__ */ e.jsxs("div", { className: "table-edit-button", children: [
|
|
2152
|
+
c ? /* @__PURE__ */ e.jsx(ue, { transparent: !0, icon: /* @__PURE__ */ e.jsx(yt, {}), onClick: () => c(t, i) }) : null,
|
|
2153
|
+
l ? /* @__PURE__ */ e.jsx(ue, { transparent: !0, icon: /* @__PURE__ */ e.jsx(Ct, { className: "text-red-500" }), onClick: () => l(t, i) }) : null,
|
|
2154
|
+
r ? /* @__PURE__ */ e.jsx(ue, { transparent: !0, icon: /* @__PURE__ */ e.jsx(vt, {}), onClick: (u) => r(u, t, i) }) : null
|
|
1873
2155
|
] }) }) : null
|
|
1874
2156
|
] });
|
|
1875
|
-
},
|
|
1876
|
-
const [
|
|
1877
|
-
return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${
|
|
2157
|
+
}, Us = ({ data: n, columns: t, onDelete: s, onContextMenu: r, onEdit: l, actions: c, onClickRow: o, adaptive: i }) => {
|
|
2158
|
+
const [d] = k(t ?? cs(n));
|
|
2159
|
+
return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${o ? "clicked" : ""} ${i ? "auto-rotate" : ""}`, children: /* @__PURE__ */ e.jsxs("table", { children: [
|
|
1878
2160
|
/* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
s ||
|
|
2161
|
+
d.map((h, u) => /* @__PURE__ */ e.jsx("th", { className: "min-width", children: h.title }, u)),
|
|
2162
|
+
c ? /* @__PURE__ */ e.jsx("th", { className: "table-actions-header", children: "actions" }) : null,
|
|
2163
|
+
s || r || l ? /* @__PURE__ */ e.jsx("th", { className: "table-actions-header" }) : null
|
|
1882
2164
|
] }) }),
|
|
1883
|
-
/* @__PURE__ */ e.jsx("tbody", { children: n.map((
|
|
2165
|
+
/* @__PURE__ */ e.jsx("tbody", { children: n.map((h, u) => /* @__PURE__ */ e.jsx(os, { onClickRow: o, actions: c, index: u, columns: d, item: h, onDelete: s, onContextMenu: r, onEdit: l }, u)) })
|
|
1884
2166
|
] }) });
|
|
1885
2167
|
};
|
|
1886
|
-
const
|
|
2168
|
+
const ds = ({ icon: n, title: t, to: s }) => /* @__PURE__ */ e.jsxs(Be, { to: s, className: "navigation-item", children: [
|
|
1887
2169
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: n }),
|
|
1888
2170
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: t })
|
|
1889
|
-
] }),
|
|
2171
|
+
] }), us = ({ onClick: n, icon: t, title: s }) => /* @__PURE__ */ e.jsxs("div", { onClick: n, className: "navigation-item", children: [
|
|
1890
2172
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: t }),
|
|
1891
2173
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: s })
|
|
1892
|
-
] }),
|
|
1893
|
-
const
|
|
2174
|
+
] }), qs = ({ btns: n }) => /* @__PURE__ */ e.jsx("div", { className: "navigation-bar-container", children: /* @__PURE__ */ e.jsx("div", { className: "block-content", children: n.map((t, s) => t.type === "button" ? /* @__PURE__ */ e.jsx(us, { icon: t.icon, onClick: t.onClick, title: t.text }, s) : t.type === "link" ? /* @__PURE__ */ e.jsx(ds, { icon: t.icon, to: t.to, title: t.text }, s) : null) }) });
|
|
2175
|
+
const gn = ({ onClick: n, icon: t, title: s, to: r }) => /* @__PURE__ */ e.jsxs(Be, { onClick: n, to: r, className: "navigation-item", children: [
|
|
1894
2176
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: t }),
|
|
1895
2177
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: s })
|
|
1896
|
-
] }),
|
|
2178
|
+
] }), be = ({ onClick: n, icon: t, title: s, active: r = !1 }) => /* @__PURE__ */ e.jsxs("div", { onClick: n, className: `navigation-item ${r ? "active" : ""}`, children: [
|
|
1897
2179
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: t }),
|
|
1898
2180
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: s })
|
|
1899
|
-
] }),
|
|
1900
|
-
/* @__PURE__ */ e.jsxs("div", { className: `navigation-drawer-container ${n ||
|
|
2181
|
+
] }), Js = ({ visible: n, firstBtn: t, mainBtn: s, onHide: r, otherBtn: l, backBtn: c, openAlways: o }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2182
|
+
/* @__PURE__ */ e.jsxs("div", { className: `navigation-drawer-container ${n || o ? "show" : "hide"}`, children: [
|
|
1901
2183
|
t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1902
2184
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-block", children: [
|
|
1903
2185
|
/* @__PURE__ */ e.jsx("div", { className: "block-header" }),
|
|
1904
|
-
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: /* @__PURE__ */ e.jsx(
|
|
2186
|
+
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: /* @__PURE__ */ e.jsx(be, { active: t.active, onClick: t.onClick, title: t.text, icon: t.icon ?? /* @__PURE__ */ e.jsx(Ie, {}) }) })
|
|
1905
2187
|
] }),
|
|
1906
|
-
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(
|
|
2188
|
+
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(Q, {}) })
|
|
1907
2189
|
] }) : null,
|
|
1908
2190
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-block", children: [
|
|
1909
2191
|
/* @__PURE__ */ e.jsx("div", { className: "block-header" }),
|
|
1910
|
-
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: s && s.map((
|
|
2192
|
+
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: s && s.map((i, d) => i.type === "button" ? /* @__PURE__ */ e.jsx(be, { active: i.active, onClick: i.onClick, title: i.text, icon: i.icon }, d) : i.type === "link" ? /* @__PURE__ */ e.jsx(gn, { onClick: () => r(), title: i.text, icon: i.icon, to: i.to }, d) : null) })
|
|
1911
2193
|
] }),
|
|
1912
|
-
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(
|
|
2194
|
+
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(Q, {}) }),
|
|
1913
2195
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-block", children: [
|
|
1914
2196
|
/* @__PURE__ */ e.jsx("div", { className: "block-header" }),
|
|
1915
|
-
/* @__PURE__ */ e.jsx("div", { className: "block-content", children:
|
|
2197
|
+
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: l && l.map((i, d) => i.type === "button" ? /* @__PURE__ */ e.jsx(be, { active: i.active, onClick: i.onClick, title: i.text, icon: i.icon }, d) : i.type === "link" ? /* @__PURE__ */ e.jsx(gn, { onClick: () => r(), title: i.text, icon: i.icon, to: i.to }, d) : null) })
|
|
1916
2198
|
] }),
|
|
1917
|
-
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(
|
|
1918
|
-
|
|
2199
|
+
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(Q, {}) }),
|
|
2200
|
+
c ? /* @__PURE__ */ e.jsx("div", { className: "navigation-block", children: /* @__PURE__ */ e.jsx(be, { active: c.active, onClick: c.onClick, title: c.text, icon: c.icon }) }) : null
|
|
1919
2201
|
] }),
|
|
1920
|
-
n && !
|
|
2202
|
+
n && !o ? /* @__PURE__ */ e.jsx("div", { className: "backplate", style: { zIndex: 1100 }, onClick: () => r() }) : null
|
|
1921
2203
|
] });
|
|
1922
|
-
const
|
|
2204
|
+
const hs = ({ icon: n, title: t, to: s }) => /* @__PURE__ */ e.jsxs(Be, { to: s, className: "navigation-item", children: [
|
|
1923
2205
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: n }),
|
|
1924
2206
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: t })
|
|
1925
|
-
] }),
|
|
2207
|
+
] }), ye = ({ onClick: n, icon: t, title: s, active: r = !1 }) => /* @__PURE__ */ e.jsxs("div", { onClick: n, className: `navigation-item ${r ? "active" : ""}`, children: [
|
|
1926
2208
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: t }),
|
|
1927
2209
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: s })
|
|
1928
|
-
] }),
|
|
1929
|
-
n ? /* @__PURE__ */ e.jsx(
|
|
2210
|
+
] }), Ks = ({ onToggleMenu: n, firstBtn: t, mainBtn: s, backBtn: r }) => /* @__PURE__ */ e.jsx("div", { className: "navigation-rail-container", children: /* @__PURE__ */ e.jsx("div", { className: "navigation-block", children: /* @__PURE__ */ e.jsxs("div", { className: "block-content", children: [
|
|
2211
|
+
n ? /* @__PURE__ */ e.jsx(ye, { icon: /* @__PURE__ */ e.jsx(kn, {}), onClick: n }) : null,
|
|
1930
2212
|
t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1931
|
-
/* @__PURE__ */ e.jsx(
|
|
1932
|
-
/* @__PURE__ */ e.jsx(
|
|
1933
|
-
t.onClick && t.onClick(
|
|
2213
|
+
/* @__PURE__ */ e.jsx(Q, {}),
|
|
2214
|
+
/* @__PURE__ */ e.jsx(ye, { active: t.active, title: t.text, icon: t.icon ?? /* @__PURE__ */ e.jsx(Ie, {}), onClick: (l) => {
|
|
2215
|
+
t.onClick && t.onClick(l);
|
|
1934
2216
|
} }),
|
|
1935
|
-
/* @__PURE__ */ e.jsx(
|
|
2217
|
+
/* @__PURE__ */ e.jsx(Q, {})
|
|
1936
2218
|
] }) : null,
|
|
1937
|
-
s && s.map((
|
|
1938
|
-
|
|
1939
|
-
/* @__PURE__ */ e.jsx(
|
|
1940
|
-
/* @__PURE__ */ e.jsx(
|
|
1941
|
-
|
|
2219
|
+
s && s.map((l, c) => l.type === "button" ? /* @__PURE__ */ e.jsx(ye, { active: l.active, onClick: l.onClick, title: l.text, icon: l.icon }, c) : l.type === "link" ? /* @__PURE__ */ e.jsx(hs, { title: l.text, icon: l.icon, to: l.to }, c) : null),
|
|
2220
|
+
r ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2221
|
+
/* @__PURE__ */ e.jsx(Q, {}),
|
|
2222
|
+
/* @__PURE__ */ e.jsx(ye, { active: r.active, title: r.text, icon: r.icon ?? /* @__PURE__ */ e.jsx(Ie, {}), onClick: (l) => {
|
|
2223
|
+
r.onClick && r.onClick(l);
|
|
1942
2224
|
} }),
|
|
1943
|
-
/* @__PURE__ */ e.jsx(
|
|
2225
|
+
/* @__PURE__ */ e.jsx(Q, {})
|
|
1944
2226
|
] }) : null
|
|
1945
2227
|
] }) }) });
|
|
1946
|
-
|
|
1947
|
-
var t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);
|
|
1948
|
-
return t ? {
|
|
1949
|
-
r: parseInt(t[1], 16),
|
|
1950
|
-
g: parseInt(t[2], 16),
|
|
1951
|
-
b: parseInt(t[3], 16)
|
|
1952
|
-
} : null;
|
|
1953
|
-
}
|
|
1954
|
-
const Jt = (n) => {
|
|
1955
|
-
if (!n)
|
|
1956
|
-
return "linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0))";
|
|
1957
|
-
const t = qt(n);
|
|
1958
|
-
return t ? `linear-gradient(135deg, rgba(${t.r}, ${t.g}, ${t.b}, 0.1), rgba(${t.r}, ${t.g}, ${t.b}, 0))` : "linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0))";
|
|
1959
|
-
};
|
|
1960
|
-
const Ds = ({ className: n, text: t, title: s, hexColor: a, hexBackground: i, style: l, btn: d }) => /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-sh-ui-kit-empty-page ${n ?? ""}`, style: { background: Jt(i), color: a, ...l }, children: [
|
|
2228
|
+
const Zs = ({ className: n, text: t, title: s, hexColor: r, hexBackground: l, style: c, btn: o }) => /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-sh-ui-kit-empty-page ${n ?? ""}`, style: { background: _t(l), color: r, ...c }, children: [
|
|
1961
2229
|
/* @__PURE__ */ e.jsx("h2", { children: s }),
|
|
1962
2230
|
t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
|
|
1963
|
-
|
|
2231
|
+
o ? /* @__PURE__ */ e.jsx(yn, { styleType: o.styleType ?? "filled", style: o.style, className: o.className, onClick: o.onClick, children: o.text }) : null
|
|
1964
2232
|
] });
|
|
1965
|
-
const
|
|
1966
|
-
const [
|
|
1967
|
-
|
|
1968
|
-
}, [
|
|
1969
|
-
|
|
2233
|
+
const xs = ({ readonly: n, name: t, data: s, onChange: r, onDelete: l }) => {
|
|
2234
|
+
const [c, o] = k(""), [i, d] = k(""), [h, u] = k(!1), [x, m] = k(!0), p = C((v, y) => {
|
|
2235
|
+
r({ ...s, [y]: v });
|
|
2236
|
+
}, [r, s]), N = C(() => {
|
|
2237
|
+
d(""), o(""), u(!1);
|
|
1970
2238
|
}, []), g = C(() => {
|
|
1971
|
-
let v =
|
|
2239
|
+
let v = i;
|
|
1972
2240
|
try {
|
|
1973
2241
|
v = JSON.parse(v);
|
|
1974
2242
|
} catch {
|
|
1975
2243
|
}
|
|
1976
|
-
N(),
|
|
1977
|
-
}, [s,
|
|
1978
|
-
let
|
|
1979
|
-
delete
|
|
1980
|
-
}, [s,
|
|
2244
|
+
N(), r({ ...s, [c]: v });
|
|
2245
|
+
}, [s, r, c, i, N]), E = C((v) => {
|
|
2246
|
+
let y = { ...s };
|
|
2247
|
+
delete y[v], r(y);
|
|
2248
|
+
}, [s, r]);
|
|
1981
2249
|
return /* @__PURE__ */ e.jsx("div", { className: "json-card-container", children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1982
2250
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
|
|
1983
|
-
/* @__PURE__ */ e.jsxs("span", { onClick: () =>
|
|
2251
|
+
/* @__PURE__ */ e.jsxs("span", { onClick: () => m((v) => !v), className: "json-element json-object-name json-object-header", children: [
|
|
1984
2252
|
t,
|
|
1985
2253
|
":",
|
|
1986
2254
|
"{",
|
|
1987
|
-
|
|
2255
|
+
x ? null : /* @__PURE__ */ e.jsx("span", { children: "..." })
|
|
1988
2256
|
] }),
|
|
1989
|
-
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => u(!0), children: /* @__PURE__ */ e.jsx(
|
|
2257
|
+
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => u(!0), children: /* @__PURE__ */ e.jsx(Cn, { size: 18 }) })
|
|
1990
2258
|
] }),
|
|
1991
|
-
|
|
1992
|
-
(v,
|
|
2259
|
+
x ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: s ? Object.keys(s).map(
|
|
2260
|
+
(v, y) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ze, { readonly: n, onDelete: () => E(v), onChange: (D) => p(D, v), name: v, data: s[v] }) }, y)
|
|
1993
2261
|
) : null }) : null,
|
|
1994
|
-
|
|
1995
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size:
|
|
2262
|
+
h && !n ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
|
|
2263
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: c.length || 10, placeholder: "key", onChange: (v) => o(v.target.value), className: "json-base-data-input", type: "text", value: c }) }),
|
|
1996
2264
|
":",
|
|
1997
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size:
|
|
2265
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: i.length || 10, placeholder: "value", onChange: (v) => d(v.target.value), className: "json-base-data-input", type: "text", value: i }) }),
|
|
1998
2266
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: g, children: "save" }),
|
|
1999
2267
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: N, children: "cancel" })
|
|
2000
2268
|
] }) : null,
|
|
2001
2269
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
2002
2270
|
"}",
|
|
2003
|
-
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick:
|
|
2271
|
+
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: l, children: /* @__PURE__ */ e.jsx(Ye, { size: 18 }) })
|
|
2004
2272
|
] })
|
|
2005
2273
|
] }) });
|
|
2006
|
-
},
|
|
2007
|
-
const [
|
|
2274
|
+
}, ms = ({ readonly: n, name: t, data: s, onChange: r, onDelete: l }) => {
|
|
2275
|
+
const [c, o] = k(""), [i, d] = k(!1), [h, u] = k(!0), x = C((g, E) => {
|
|
2008
2276
|
const v = s.slice();
|
|
2009
|
-
v[E] = g,
|
|
2010
|
-
}, [
|
|
2011
|
-
|
|
2277
|
+
v[E] = g, r(v);
|
|
2278
|
+
}, [r, s]), m = C(() => {
|
|
2279
|
+
o(""), d(!1);
|
|
2012
2280
|
}, []), p = C(() => {
|
|
2013
|
-
let g =
|
|
2281
|
+
let g = c;
|
|
2014
2282
|
try {
|
|
2015
2283
|
g = JSON.parse(g);
|
|
2016
2284
|
} catch {
|
|
2017
2285
|
}
|
|
2018
|
-
|
|
2019
|
-
}, [s,
|
|
2020
|
-
|
|
2021
|
-
}, [s,
|
|
2286
|
+
m(), r([...s, g]);
|
|
2287
|
+
}, [s, r, c, m]), N = C((g) => {
|
|
2288
|
+
r(s.filter((E, v) => v !== g));
|
|
2289
|
+
}, [s, r]);
|
|
2022
2290
|
return /* @__PURE__ */ e.jsx("div", { className: "json-card-container", children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
2023
2291
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
|
|
2024
2292
|
/* @__PURE__ */ e.jsxs("span", { className: "json-object-name json-object-header", onClick: () => u((g) => !g), children: [
|
|
2025
2293
|
t,
|
|
2026
2294
|
":",
|
|
2027
2295
|
"[",
|
|
2028
|
-
|
|
2296
|
+
h ? null : /* @__PURE__ */ e.jsx("span", { children: "..." })
|
|
2029
2297
|
] }),
|
|
2030
|
-
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () =>
|
|
2298
|
+
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => d(!0), children: /* @__PURE__ */ e.jsx(Cn, { size: 18 }) })
|
|
2031
2299
|
] }),
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size:
|
|
2300
|
+
h ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: s && s.map((g, E) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ze, { readonly: n, onDelete: () => N(E), onChange: (v) => x(v, E), name: String(E), data: g }) }, E)) }) : null,
|
|
2301
|
+
i ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
|
|
2302
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: c.length || 10, placeholder: "value", onChange: (g) => o(g.target.value), className: "json-base-data-input", type: "text", value: c }) }),
|
|
2035
2303
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: p, children: "save" }),
|
|
2036
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick:
|
|
2304
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: m, children: "cancel" })
|
|
2037
2305
|
] }) : null,
|
|
2038
2306
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
2039
2307
|
"]",
|
|
2040
|
-
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick:
|
|
2308
|
+
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: l, children: /* @__PURE__ */ e.jsx(Ye, { size: 18 }) })
|
|
2041
2309
|
] })
|
|
2042
2310
|
] }) });
|
|
2043
|
-
},
|
|
2044
|
-
const
|
|
2045
|
-
|
|
2046
|
-
}, [
|
|
2311
|
+
}, fs = ({ readonly: n, name: t, data: s, onChange: r, onDelete: l }) => {
|
|
2312
|
+
const c = C((o) => {
|
|
2313
|
+
r(o.target.value);
|
|
2314
|
+
}, [r]);
|
|
2047
2315
|
return /* @__PURE__ */ e.jsx("div", { className: "json-card-container", children: /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
2048
2316
|
/* @__PURE__ */ e.jsx("span", { className: "json-object-name", children: t }),
|
|
2049
2317
|
":",
|
|
2050
2318
|
n ? /* @__PURE__ */ e.jsx("span", { className: "json-base-data", children: s }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2051
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data", children: /* @__PURE__ */ e.jsx("input", { size: (s == null ? void 0 : s.toString().length) || 10, onChange:
|
|
2052
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick:
|
|
2319
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data", children: /* @__PURE__ */ e.jsx("input", { size: (s == null ? void 0 : s.toString().length) || 10, onChange: c, className: "json-base-data-input", type: "text", value: s !== void 0 ? String(s) : "" }) }),
|
|
2320
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: l, children: /* @__PURE__ */ e.jsx(Ye, { size: 18 }) })
|
|
2053
2321
|
] })
|
|
2054
2322
|
] }) }) });
|
|
2055
|
-
},
|
|
2056
|
-
const [
|
|
2057
|
-
n || (
|
|
2058
|
-
}, [
|
|
2059
|
-
n || (
|
|
2060
|
-
}, [
|
|
2323
|
+
}, ze = ({ readonly: n, name: t, data: s, onChange: r, onDelete: l }) => typeof s == "boolean" || typeof s == "number" || typeof s == "string" ? /* @__PURE__ */ e.jsx(fs, { readonly: n, onDelete: l, onChange: r, data: s, name: t }) : s ? Array.isArray(s) ? /* @__PURE__ */ e.jsx(ms, { readonly: n, onDelete: l, onChange: r, data: s, name: t }) : /* @__PURE__ */ e.jsx(xs, { readonly: n, onDelete: l, onChange: r, data: s, name: t }) : null, Qs = ({ readonly: n, name: t, data: s, onChange: r, onDelete: l }) => {
|
|
2324
|
+
const [c, o] = k(s || void 0), [i, d] = k(""), h = C((m) => {
|
|
2325
|
+
n || (o(m), r && r(m));
|
|
2326
|
+
}, [r]), u = C(() => {
|
|
2327
|
+
n || (o(void 0), l && l());
|
|
2328
|
+
}, [l]), x = C(() => {
|
|
2061
2329
|
if (n)
|
|
2062
2330
|
return;
|
|
2063
|
-
let
|
|
2331
|
+
let m = i;
|
|
2064
2332
|
try {
|
|
2065
|
-
|
|
2333
|
+
m = JSON.parse(m);
|
|
2066
2334
|
} catch {
|
|
2067
2335
|
}
|
|
2068
|
-
|
|
2069
|
-
}, [
|
|
2070
|
-
return
|
|
2071
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size:
|
|
2072
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick:
|
|
2336
|
+
o(m), r && r(m);
|
|
2337
|
+
}, [r, i]);
|
|
2338
|
+
return c ? /* @__PURE__ */ e.jsx(ze, { readonly: n, onDelete: u, onChange: h, data: c, name: t }) : /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
|
|
2339
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: i.length || 10, placeholder: "value", onChange: (m) => d(m.target.value), className: "alex-evo-sh-ui-kit-json json-base-data-input", type: "text", value: i }) }),
|
|
2340
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: x, children: "save" })
|
|
2073
2341
|
] });
|
|
2074
2342
|
};
|
|
2075
2343
|
export {
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2344
|
+
Vt as BaseActionCard,
|
|
2345
|
+
xe as BaseButton,
|
|
2346
|
+
As as BaseDialog,
|
|
2347
|
+
Bt as BaseRadioButton,
|
|
2080
2348
|
ne as BasicTemplateDialog,
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2349
|
+
ys as BigContainer,
|
|
2350
|
+
Lt as BottomSheetsUi,
|
|
2351
|
+
yn as Button,
|
|
2352
|
+
bs as Card,
|
|
2353
|
+
Ns as Checkbox,
|
|
2354
|
+
It as Chips,
|
|
2355
|
+
gs as ColorField,
|
|
2356
|
+
Hs as ColumnLayout,
|
|
2357
|
+
Bs as DateField,
|
|
2358
|
+
Ys as DayOfWeekField,
|
|
2359
|
+
We as DialogModal,
|
|
2360
|
+
Q as Divider,
|
|
2361
|
+
Zs as EmptyPage,
|
|
2362
|
+
Es as FAB,
|
|
2363
|
+
Ss as FieldContainer,
|
|
2364
|
+
ut as FilledButton,
|
|
2365
|
+
dt as FilledTotalButton,
|
|
2366
|
+
Ps as FullScrinTemplateDialog,
|
|
2367
|
+
zs as GridLayout,
|
|
2368
|
+
Ws as GridLayoutItem,
|
|
2369
|
+
ue as IconButton,
|
|
2370
|
+
Qs as JsonContainer,
|
|
2371
|
+
Pt as ListContainer,
|
|
2372
|
+
At as ListItem,
|
|
2373
|
+
Gs as Menu,
|
|
2374
|
+
Dt as ModalTemplate,
|
|
2375
|
+
$s as MoreText,
|
|
2376
|
+
qs as NavigationBar,
|
|
2377
|
+
Js as NavigationDrawer,
|
|
2378
|
+
Ks as NavigationRail,
|
|
2379
|
+
ks as NumberField,
|
|
2380
|
+
ot as OutlineButton,
|
|
2381
|
+
ws as RadioButton,
|
|
2382
|
+
Rs as RunningLine,
|
|
2383
|
+
Ts as ScrollContainer,
|
|
2384
|
+
Ms as Search,
|
|
2385
|
+
Vs as SelectionDialog,
|
|
2386
|
+
Os as SigmentedButton,
|
|
2387
|
+
Fs as Slider,
|
|
2388
|
+
Xs as SmallWindowMenu,
|
|
2389
|
+
_s as Snackbar,
|
|
2390
|
+
Ds as Switch,
|
|
2391
|
+
Us as Table,
|
|
2392
|
+
Cs as TextArea,
|
|
2393
|
+
Y as TextButton,
|
|
2394
|
+
Ls as TextDialog,
|
|
2395
|
+
Rn as TextField,
|
|
2396
|
+
Is as TimeField,
|
|
2397
|
+
Qt as TimePicker,
|
|
2398
|
+
Tn as getContainerData,
|
|
2399
|
+
Mn as getModalWindowCord,
|
|
2400
|
+
Mt as hexToRgb,
|
|
2401
|
+
zt as map,
|
|
2402
|
+
ts as СalendarPickers
|
|
2134
2403
|
};
|