alex-evo-sh-ui-kit 1.0.8 → 1.0.9
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.
|
@@ -15,16 +15,16 @@ function zn() {
|
|
|
15
15
|
if (tn)
|
|
16
16
|
return se;
|
|
17
17
|
tn = 1;
|
|
18
|
-
var n = ve, r = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty,
|
|
19
|
-
function d(
|
|
20
|
-
var u, f = {}, v = null,
|
|
21
|
-
h !== void 0 && (v = "" + h), o.key !== void 0 && (v = "" + o.key), o.ref !== void 0 && (
|
|
18
|
+
var n = ve, r = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function d(c, o, h) {
|
|
20
|
+
var u, f = {}, v = null, p = null;
|
|
21
|
+
h !== void 0 && (v = "" + h), o.key !== void 0 && (v = "" + o.key), o.ref !== void 0 && (p = o.ref);
|
|
22
22
|
for (u in o)
|
|
23
23
|
a.call(o, u) && !l.hasOwnProperty(u) && (f[u] = o[u]);
|
|
24
|
-
if (
|
|
25
|
-
for (u in o =
|
|
24
|
+
if (c && c.defaultProps)
|
|
25
|
+
for (u in o = c.defaultProps, o)
|
|
26
26
|
f[u] === void 0 && (f[u] = o[u]);
|
|
27
|
-
return { $$typeof: r, type:
|
|
27
|
+
return { $$typeof: r, type: c, key: v, ref: p, props: f, _owner: i.current };
|
|
28
28
|
}
|
|
29
29
|
return se.Fragment = s, se.jsx = d, se.jsxs = d, se;
|
|
30
30
|
}
|
|
@@ -41,7 +41,7 @@ var ae = {};
|
|
|
41
41
|
var rn;
|
|
42
42
|
function Un() {
|
|
43
43
|
return rn || (rn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var n = ve, r = Symbol.for("react.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"),
|
|
44
|
+
var n = ve, r = Symbol.for("react.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), c = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), y = Symbol.iterator, w = "@@iterator";
|
|
45
45
|
function $(t) {
|
|
46
46
|
if (t === null || typeof t != "object")
|
|
47
47
|
return null;
|
|
@@ -51,14 +51,14 @@ function Un() {
|
|
|
51
51
|
var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
52
|
function E(t) {
|
|
53
53
|
{
|
|
54
|
-
for (var x = arguments.length, m = new Array(x > 1 ? x - 1 : 0),
|
|
55
|
-
m[
|
|
54
|
+
for (var x = arguments.length, m = new Array(x > 1 ? x - 1 : 0), g = 1; g < x; g++)
|
|
55
|
+
m[g - 1] = arguments[g];
|
|
56
56
|
L("error", t, m);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
function L(t, x, m) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
61
|
+
var g = O.ReactDebugCurrentFrame, C = g.getStackAddendum();
|
|
62
62
|
C !== "" && (x += "%s", m = m.concat([C]));
|
|
63
63
|
var T = m.map(function(k) {
|
|
64
64
|
return String(k);
|
|
@@ -69,16 +69,16 @@ function Un() {
|
|
|
69
69
|
var j = !1, _ = !1, V = !1, K = !1, ee = !1, H;
|
|
70
70
|
H = Symbol.for("react.module.reference");
|
|
71
71
|
function oe(t) {
|
|
72
|
-
return !!(typeof t == "string" || typeof t == "function" || t === a || t === l || ee || t ===
|
|
72
|
+
return !!(typeof t == "string" || typeof t == "function" || t === a || t === l || ee || t === i || t === h || t === u || K || t === p || j || _ || V || typeof t == "object" && t !== null && (t.$$typeof === v || t.$$typeof === f || t.$$typeof === d || t.$$typeof === c || t.$$typeof === o || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
76
|
t.$$typeof === H || t.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
78
|
function X(t, x, m) {
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
79
|
+
var g = t.displayName;
|
|
80
|
+
if (g)
|
|
81
|
+
return g;
|
|
82
82
|
var C = x.displayName || x.name || "";
|
|
83
83
|
return C !== "" ? m + "(" + C + ")" : m;
|
|
84
84
|
}
|
|
@@ -99,7 +99,7 @@ function Un() {
|
|
|
99
99
|
return "Portal";
|
|
100
100
|
case l:
|
|
101
101
|
return "Profiler";
|
|
102
|
-
case
|
|
102
|
+
case i:
|
|
103
103
|
return "StrictMode";
|
|
104
104
|
case h:
|
|
105
105
|
return "Suspense";
|
|
@@ -108,7 +108,7 @@ function Un() {
|
|
|
108
108
|
}
|
|
109
109
|
if (typeof t == "object")
|
|
110
110
|
switch (t.$$typeof) {
|
|
111
|
-
case
|
|
111
|
+
case c:
|
|
112
112
|
var x = t;
|
|
113
113
|
return De(x) + ".Consumer";
|
|
114
114
|
case d:
|
|
@@ -117,8 +117,8 @@ function Un() {
|
|
|
117
117
|
case o:
|
|
118
118
|
return X(t, t.render, "ForwardRef");
|
|
119
119
|
case f:
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var g = t.displayName || null;
|
|
121
|
+
return g !== null ? g : B(t.type) || "Memo";
|
|
122
122
|
case v: {
|
|
123
123
|
var C = t, T = C._payload, k = C._init;
|
|
124
124
|
try {
|
|
@@ -199,8 +199,8 @@ function Un() {
|
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
201
|
} catch (C) {
|
|
202
|
-
var
|
|
203
|
-
ge =
|
|
202
|
+
var g = C.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
ge = g && g[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
206
|
` + ge + t;
|
|
@@ -219,7 +219,7 @@ function Un() {
|
|
|
219
219
|
if (m !== void 0)
|
|
220
220
|
return m;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var g;
|
|
223
223
|
ye = !0;
|
|
224
224
|
var C = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
@@ -238,14 +238,14 @@ function Un() {
|
|
|
238
238
|
try {
|
|
239
239
|
Reflect.construct(k, []);
|
|
240
240
|
} catch (A) {
|
|
241
|
-
|
|
241
|
+
g = A;
|
|
242
242
|
}
|
|
243
243
|
Reflect.construct(t, [], k);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
246
|
k.call();
|
|
247
247
|
} catch (A) {
|
|
248
|
-
|
|
248
|
+
g = A;
|
|
249
249
|
}
|
|
250
250
|
t.call(k.prototype);
|
|
251
251
|
}
|
|
@@ -253,14 +253,14 @@ function Un() {
|
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
255
|
} catch (A) {
|
|
256
|
-
|
|
256
|
+
g = A;
|
|
257
257
|
}
|
|
258
258
|
t();
|
|
259
259
|
}
|
|
260
260
|
} catch (A) {
|
|
261
|
-
if (A &&
|
|
261
|
+
if (A && g && typeof A.stack == "string") {
|
|
262
262
|
for (var b = A.stack.split(`
|
|
263
|
-
`), P =
|
|
263
|
+
`), P = g.stack.split(`
|
|
264
264
|
`), S = b.length - 1, D = P.length - 1; S >= 1 && D >= 0 && b[S] !== P[D]; )
|
|
265
265
|
D--;
|
|
266
266
|
for (; S >= 1 && D >= 0; S--, D--)
|
|
@@ -309,7 +309,7 @@ function Un() {
|
|
|
309
309
|
case f:
|
|
310
310
|
return xe(t.type, x, m);
|
|
311
311
|
case v: {
|
|
312
|
-
var
|
|
312
|
+
var g = t, C = g._payload, T = g._init;
|
|
313
313
|
try {
|
|
314
314
|
return xe(T(C), x, m);
|
|
315
315
|
} catch {
|
|
@@ -326,7 +326,7 @@ function Un() {
|
|
|
326
326
|
} else
|
|
327
327
|
ze.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function kn(t, x, m,
|
|
329
|
+
function kn(t, x, m, g, C) {
|
|
330
330
|
{
|
|
331
331
|
var T = Function.call.bind(te);
|
|
332
332
|
for (var k in t)
|
|
@@ -334,14 +334,14 @@ function Un() {
|
|
|
334
334
|
var b = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof t[k] != "function") {
|
|
337
|
-
var P = Error((
|
|
337
|
+
var P = Error((g || "React class") + ": " + m + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw P.name = "Invariant Violation", P;
|
|
339
339
|
}
|
|
340
|
-
b = t[k](x, k,
|
|
340
|
+
b = t[k](x, k, g, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
341
|
} catch (S) {
|
|
342
342
|
b = S;
|
|
343
343
|
}
|
|
344
|
-
b && !(b instanceof Error) && (he(C), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
344
|
+
b && !(b instanceof Error) && (he(C), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", m, k, typeof b), he(null)), b instanceof Error && !(b.message in Be) && (Be[b.message] = !0, he(C), E("Failed %s type: %s", m, b.message), he(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
@@ -420,7 +420,7 @@ function Un() {
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var On = function(t, x, m,
|
|
423
|
+
var On = function(t, x, m, g, C, T, k) {
|
|
424
424
|
var b = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: r,
|
|
@@ -441,7 +441,7 @@ function Un() {
|
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
444
|
+
value: g
|
|
445
445
|
}), Object.defineProperty(b, "_source", {
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
@@ -449,7 +449,7 @@ function Un() {
|
|
|
449
449
|
value: C
|
|
450
450
|
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
451
451
|
};
|
|
452
|
-
function Dn(t, x, m,
|
|
452
|
+
function Dn(t, x, m, g, C) {
|
|
453
453
|
{
|
|
454
454
|
var T, k = {}, b = null, P = null;
|
|
455
455
|
m !== void 0 && (Ke(m), b = "" + m), Rn(x) && (Ke(x.key), b = "" + x.key), Tn(x) && (P = x.ref, _n(x, C));
|
|
@@ -464,7 +464,7 @@ function Un() {
|
|
|
464
464
|
var D = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
465
465
|
b && $n(k, D), P && Sn(k, D);
|
|
466
466
|
}
|
|
467
|
-
return On(t, b, P, C,
|
|
467
|
+
return On(t, b, P, C, g, re.current, k);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
var Ne = O.ReactCurrentOwner, Ge = O.ReactDebugCurrentFrame;
|
|
@@ -525,8 +525,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
525
525
|
if (He[m])
|
|
526
526
|
return;
|
|
527
527
|
He[m] = !0;
|
|
528
|
-
var
|
|
529
|
-
t && t._owner && t._owner !== Ne.current && (
|
|
528
|
+
var g = "";
|
|
529
|
+
t && t._owner && t._owner !== Ne.current && (g = " It was passed a child from " + B(t._owner.type) + "."), Z(t), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, g), Z(null);
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
function Qe(t, x) {
|
|
@@ -535,8 +535,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
535
535
|
return;
|
|
536
536
|
if (be(t))
|
|
537
537
|
for (var m = 0; m < t.length; m++) {
|
|
538
|
-
var
|
|
539
|
-
we(
|
|
538
|
+
var g = t[m];
|
|
539
|
+
we(g) && Ze(g, x);
|
|
540
540
|
}
|
|
541
541
|
else if (we(t))
|
|
542
542
|
t._store && (t._store.validated = !0);
|
|
@@ -563,8 +563,8 @@ Check the top-level render call using <` + m + ">.");
|
|
|
563
563
|
else
|
|
564
564
|
return;
|
|
565
565
|
if (m) {
|
|
566
|
-
var
|
|
567
|
-
kn(m, t.props, "prop",
|
|
566
|
+
var g = B(x);
|
|
567
|
+
kn(m, t.props, "prop", g, t);
|
|
568
568
|
} else if (x.PropTypes !== void 0 && !Ce) {
|
|
569
569
|
Ce = !0;
|
|
570
570
|
var C = B(x);
|
|
@@ -576,9 +576,9 @@ Check the top-level render call using <` + m + ">.");
|
|
|
576
576
|
function An(t) {
|
|
577
577
|
{
|
|
578
578
|
for (var x = Object.keys(t.props), m = 0; m < x.length; m++) {
|
|
579
|
-
var
|
|
580
|
-
if (
|
|
581
|
-
Z(t), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
579
|
+
var g = x[m];
|
|
580
|
+
if (g !== "children" && g !== "key") {
|
|
581
|
+
Z(t), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), Z(null);
|
|
582
582
|
break;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
@@ -586,7 +586,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
var en = {};
|
|
589
|
-
function nn(t, x, m,
|
|
589
|
+
function nn(t, x, m, g, C, T) {
|
|
590
590
|
{
|
|
591
591
|
var k = oe(t);
|
|
592
592
|
if (!k) {
|
|
@@ -603,7 +603,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
603
603
|
if (k) {
|
|
604
604
|
var Y = x.children;
|
|
605
605
|
if (Y !== void 0)
|
|
606
|
-
if (
|
|
606
|
+
if (g)
|
|
607
607
|
if (be(Y)) {
|
|
608
608
|
for (var Q = 0; Q < Y.length; Q++)
|
|
609
609
|
Qe(Y[Q], t);
|
|
@@ -647,19 +647,19 @@ const Kn = (n) => le({ ...n, className: (n.className ?? "") + " outline-button"
|
|
|
647
647
|
n.onClick && n.onClick(s);
|
|
648
648
|
let a = document.createElement("span");
|
|
649
649
|
a.classList.add("btn-overlay");
|
|
650
|
-
let
|
|
651
|
-
a.style.left =
|
|
650
|
+
let i = s.pageX - s.currentTarget.offsetLeft, l = s.pageY - s.currentTarget.offsetTop;
|
|
651
|
+
a.style.left = i + "px", a.style.top = l + "px", s.currentTarget.appendChild(a), setTimeout(() => {
|
|
652
652
|
a.remove();
|
|
653
653
|
}, 500);
|
|
654
654
|
};
|
|
655
655
|
return /* @__PURE__ */ e.jsx("button", { ...n, className: (n.className ?? "") + " btn", onClick: r, children: /* @__PURE__ */ e.jsx("span", { children: n.children }) });
|
|
656
656
|
}, dn = ({ styleType: n = "base", ...r }) => n === "outline" ? Kn({ ...r }) : n === "text" ? M({ ...r }) : n === "filledTotal" ? Xn({ ...r }) : n === "filled" ? qn({ ...r }) : le({ ...r });
|
|
657
|
-
const Gn = ({ children: n, className: r, maxHeight: s, scroll: a, transparent:
|
|
657
|
+
const Gn = ({ children: n, className: r, 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 ${r} ${a ? "scroll" : ""}`, children: n }), Jn = ({ icon: n, control: r, text: s, header: a, value: i, onClick: l, hovered: d, className: c }) => {
|
|
658
658
|
const o = (h) => {
|
|
659
659
|
h.target.closest(".control-container") || l && l(h);
|
|
660
660
|
};
|
|
661
|
-
return /* @__PURE__ */ e.jsxs("li", { className: ` ${
|
|
662
|
-
n ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: n }) :
|
|
661
|
+
return /* @__PURE__ */ e.jsxs("li", { className: ` ${c} list-item-container ${d ? "hovered" : ""}`, onClick: o, children: [
|
|
662
|
+
n ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: n }) : i ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: i }) : null,
|
|
663
663
|
s ? /* @__PURE__ */ e.jsxs("div", { className: "text-container", children: [
|
|
664
664
|
/* @__PURE__ */ e.jsx("div", { className: "header", children: a }),
|
|
665
665
|
/* @__PURE__ */ e.jsx("div", { className: "text", children: s })
|
|
@@ -667,7 +667,7 @@ const Gn = ({ children: n, className: r, maxHeight: s, scroll: a, transparent: c
|
|
|
667
667
|
r ? /* @__PURE__ */ e.jsx("div", { className: "control-container", children: r }) : null
|
|
668
668
|
] });
|
|
669
669
|
};
|
|
670
|
-
const ie = ({ transparent: n, icon: r, className: s, onClick: a, onContextMenu:
|
|
670
|
+
const ie = ({ transparent: n, icon: r, className: s, onClick: a, onContextMenu: i, disabled: l, classNameContainer: d, style: c }) => {
|
|
671
671
|
const o = (h) => {
|
|
672
672
|
a && a(h);
|
|
673
673
|
let u = document.createElement("span");
|
|
@@ -677,13 +677,13 @@ const ie = ({ transparent: n, icon: r, className: s, onClick: a, onContextMenu:
|
|
|
677
677
|
u.remove();
|
|
678
678
|
}, 500);
|
|
679
679
|
};
|
|
680
|
-
return /* @__PURE__ */ e.jsx("button", { style: { backgroundColor: n ? "transparent" : void 0, ...
|
|
680
|
+
return /* @__PURE__ */ e.jsx("button", { style: { backgroundColor: n ? "transparent" : void 0, ...c }, className: `iconbutton ${s}`, onClick: o, onContextMenu: i, disabled: l, children: /* @__PURE__ */ e.jsx("div", { className: `${d} iconbutton-container`, children: r }) });
|
|
681
681
|
};
|
|
682
|
-
const Yt = ({ className: n, action: r, imgSrc: s, alt: a, header:
|
|
682
|
+
const Yt = ({ className: n, action: r, imgSrc: s, alt: a, header: i, subhead: l, text: d, children: c, iconButtonCell: o, onClick: h }) => {
|
|
683
683
|
const u = (v) => !(v.target.className === "action-container" || v.target.closest(".action-container") || v.target.className === "icon-button-container" || v.target.closest(".icon-button-container")), f = (v) => {
|
|
684
684
|
if (h && h(v), !u(v))
|
|
685
685
|
return;
|
|
686
|
-
let
|
|
686
|
+
let p = v.currentTarget.closest(".card-container"), y = p == null ? void 0 : p.querySelector(".blick-container");
|
|
687
687
|
if (!y)
|
|
688
688
|
return;
|
|
689
689
|
let w = document.createElement("span");
|
|
@@ -698,22 +698,22 @@ const Yt = ({ className: n, action: r, imgSrc: s, alt: a, header: c, subhead: l,
|
|
|
698
698
|
s ? /* @__PURE__ */ e.jsx("div", { className: "card-img-container", children: /* @__PURE__ */ e.jsx("img", { src: s, alt: a }) }) : null,
|
|
699
699
|
/* @__PURE__ */ e.jsxs("div", { className: "card-content-container", children: [
|
|
700
700
|
/* @__PURE__ */ e.jsxs("div", { className: "card-Headline-container mb-1 font-bold", children: [
|
|
701
|
-
/* @__PURE__ */ e.jsx("div", { className: "headline", children: /* @__PURE__ */ e.jsx("h2", { className: "text-3xl", children:
|
|
701
|
+
/* @__PURE__ */ e.jsx("div", { className: "headline", children: /* @__PURE__ */ e.jsx("h2", { className: "text-3xl", children: i }) }),
|
|
702
702
|
o ? /* @__PURE__ */ e.jsx("div", { className: "icon-button-container", children: o }) : null
|
|
703
703
|
] }),
|
|
704
704
|
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,
|
|
705
705
|
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,
|
|
706
|
-
|
|
706
|
+
c ? /* @__PURE__ */ e.jsx("div", { className: "card-child-container mb-2", children: c }) : null,
|
|
707
707
|
/* @__PURE__ */ e.jsx("div", { className: "action-container", children: r })
|
|
708
708
|
] })
|
|
709
709
|
] });
|
|
710
710
|
};
|
|
711
711
|
const Hn = ({ children: n, className: r }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${r ?? ""}`, children: n });
|
|
712
|
-
const Lt = ({ children: n, className: r, id: s, height: a, width:
|
|
713
|
-
const [d,
|
|
714
|
-
w.button == 1 && (
|
|
715
|
-
},
|
|
716
|
-
w.button == 1 && (h({ x: w.clientX, y: w.clientY }),
|
|
712
|
+
const Lt = ({ children: n, className: r, id: s, height: a, width: i, pozMove: l }) => {
|
|
713
|
+
const [d, c] = N(!1), [o, h] = N(null), [u, f] = N({ x: 0, y: 0 }), v = (w) => {
|
|
714
|
+
w.button == 1 && (c(!1), h(null), document.body.style.cursor = "auto");
|
|
715
|
+
}, p = (w) => {
|
|
716
|
+
w.button == 1 && (h({ x: w.clientX, y: w.clientY }), c(!0), document.body.style.cursor = "move");
|
|
717
717
|
}, y = R((w) => {
|
|
718
718
|
d && (f(($) => {
|
|
719
719
|
if (!o)
|
|
@@ -725,7 +725,7 @@ const Lt = ({ children: n, className: r, id: s, height: a, width: c, pozMove: l
|
|
|
725
725
|
}, [d, o]);
|
|
726
726
|
return F(() => {
|
|
727
727
|
l && f({ ...l });
|
|
728
|
-
}, [l]), /* @__PURE__ */ e.jsx("div", { id: s, style: { height: a, width:
|
|
728
|
+
}, [l]), /* @__PURE__ */ e.jsx("div", { id: s, style: { height: a, width: i }, className: `big-container ${r}`, onMouseDown: p, onMouseUp: v, onMouseMove: y, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: u.x, top: u.y }, children: n }) });
|
|
729
729
|
};
|
|
730
730
|
const Zn = (n) => {
|
|
731
731
|
const [r, s] = N(!1), a = R(() => {
|
|
@@ -743,9 +743,9 @@ const Zn = (n) => {
|
|
|
743
743
|
/* @__PURE__ */ e.jsx("div", { className: "backplate bottom-sheets-backplate", style: { zIndex: 1101 }, onClick: a })
|
|
744
744
|
] });
|
|
745
745
|
};
|
|
746
|
-
const Wt = ({ name: n, checked: r, onChange: s, readOnly: a, checkIcon:
|
|
746
|
+
const Wt = ({ name: n, checked: r, onChange: s, readOnly: a, checkIcon: i }) => /* @__PURE__ */ e.jsxs("label", { className: "checkbox-container", children: [
|
|
747
747
|
/* @__PURE__ */ e.jsx("input", { className: "checkbox", name: n, type: "checkbox", checked: r, onChange: s, readOnly: a }),
|
|
748
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
748
|
+
/* @__PURE__ */ e.jsx("span", { children: i || /* @__PURE__ */ e.jsx("span", { className: "checkbox-ckeck-icon", children: "✓" }) })
|
|
749
749
|
] });
|
|
750
750
|
/**
|
|
751
751
|
* @license lucide-react v0.378.0 - ISC
|
|
@@ -783,10 +783,10 @@ const nt = on(
|
|
|
783
783
|
size: r = 24,
|
|
784
784
|
strokeWidth: s = 2,
|
|
785
785
|
absoluteStrokeWidth: a,
|
|
786
|
-
className:
|
|
786
|
+
className: i = "",
|
|
787
787
|
children: l,
|
|
788
788
|
iconNode: d,
|
|
789
|
-
...
|
|
789
|
+
...c
|
|
790
790
|
}, o) => _e(
|
|
791
791
|
"svg",
|
|
792
792
|
{
|
|
@@ -796,8 +796,8 @@ const nt = on(
|
|
|
796
796
|
height: r,
|
|
797
797
|
stroke: n,
|
|
798
798
|
strokeWidth: a ? Number(s) * 24 / Number(r) : s,
|
|
799
|
-
className: un("lucide",
|
|
800
|
-
...
|
|
799
|
+
className: un("lucide", i),
|
|
800
|
+
...c
|
|
801
801
|
},
|
|
802
802
|
[
|
|
803
803
|
...d.map(([h, u]) => _e(h, u)),
|
|
@@ -813,11 +813,11 @@ const nt = on(
|
|
|
813
813
|
*/
|
|
814
814
|
const I = (n, r) => {
|
|
815
815
|
const s = on(
|
|
816
|
-
({ className: a, ...
|
|
816
|
+
({ className: a, ...i }, l) => _e(nt, {
|
|
817
817
|
ref: l,
|
|
818
818
|
iconNode: r,
|
|
819
819
|
className: un(`lucide-${Qn(n)}`, a),
|
|
820
|
-
...
|
|
820
|
+
...i
|
|
821
821
|
})
|
|
822
822
|
);
|
|
823
823
|
return s.displayName = `${n}`, s;
|
|
@@ -962,24 +962,24 @@ const je = I("X", [
|
|
|
962
962
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
963
963
|
]);
|
|
964
964
|
const dt = ({ text: n, onDelete: r, big: s, onClick: a }) => {
|
|
965
|
-
const
|
|
966
|
-
|
|
965
|
+
const i = (d) => !(d.target.className === "alex-evo-ui-kit-chips-btn" || d.target.closest(".alex-evo-ui-kit-chips-btn")), l = (d) => {
|
|
966
|
+
i(d) && a && a(d);
|
|
967
967
|
};
|
|
968
968
|
return /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-chips chips ${s ? "big-chips" : ""} ${a ? "hovered" : ""}`, onClick: l, children: [
|
|
969
969
|
/* @__PURE__ */ e.jsx("p", { children: n }),
|
|
970
970
|
r ? /* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-chips-btn chips-btn", onClick: r, children: /* @__PURE__ */ e.jsx(je, { size: 18 }) }) : null
|
|
971
971
|
] });
|
|
972
972
|
};
|
|
973
|
-
const hn = ({ styleContainer: n, type: r = "text", transparent: s, readOnly: a, password:
|
|
973
|
+
const hn = ({ styleContainer: n, type: r = "text", transparent: s, readOnly: a, password: i, border: l, onClear: d, icon: c, onChange: o, name: h, value: u, placeholder: f, className: v, validEmptyValue: p, onFocus: y, onBlur: w, error: $, max: O, min: E }) => {
|
|
974
974
|
const L = U(null), [j, _] = N(!1), V = R((ee, H) => _(!!($ || ee && (!H || H === ""))), []);
|
|
975
975
|
F(() => {
|
|
976
|
-
V(
|
|
977
|
-
}, [u,
|
|
976
|
+
V(p, u);
|
|
977
|
+
}, [u, p, V]);
|
|
978
978
|
const K = () => {
|
|
979
979
|
L.current && L.current.focus();
|
|
980
980
|
};
|
|
981
981
|
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `text-field ${l ? "border" : ""} ${s ? "transparent" : ""} ${v}`, children: [
|
|
982
|
-
|
|
982
|
+
c ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: K, children: c }) : null,
|
|
983
983
|
/* @__PURE__ */ e.jsxs("div", { className: "input-container", onClick: K, children: [
|
|
984
984
|
/* @__PURE__ */ e.jsx(
|
|
985
985
|
"input",
|
|
@@ -989,7 +989,7 @@ const hn = ({ styleContainer: n, type: r = "text", transparent: s, readOnly: a,
|
|
|
989
989
|
min: E,
|
|
990
990
|
readOnly: a,
|
|
991
991
|
required: !0,
|
|
992
|
-
type:
|
|
992
|
+
type: i ? "password" : r,
|
|
993
993
|
className: `${j ? "error" : ""}`,
|
|
994
994
|
name: h,
|
|
995
995
|
value: u,
|
|
@@ -1004,16 +1004,16 @@ const hn = ({ styleContainer: n, type: r = "text", transparent: s, readOnly: a,
|
|
|
1004
1004
|
d ? /* @__PURE__ */ e.jsx("div", { className: "clear-container", children: /* @__PURE__ */ e.jsx(rt, { onClick: d }) }) : null
|
|
1005
1005
|
] });
|
|
1006
1006
|
};
|
|
1007
|
-
const Vt = ({ styleContainer: n, transparent: r, readOnly: s, border: a, icon:
|
|
1008
|
-
const y = U(null), [w, $] = N(!1), O = R((L, j) => $(!!(
|
|
1007
|
+
const Vt = ({ styleContainer: n, transparent: r, readOnly: s, border: a, icon: i, onChange: l, name: d, value: c, placeholder: o, className: h, validEmptyValue: u, onFocus: f, onBlur: v, error: p }) => {
|
|
1008
|
+
const y = U(null), [w, $] = N(!1), O = R((L, j) => $(!!(p || L && (!j || j === ""))), []);
|
|
1009
1009
|
F(() => {
|
|
1010
|
-
O(u,
|
|
1011
|
-
}, [
|
|
1010
|
+
O(u, c);
|
|
1011
|
+
}, [c, u, O]);
|
|
1012
1012
|
const E = () => {
|
|
1013
1013
|
y.current && y.current.focus();
|
|
1014
1014
|
};
|
|
1015
1015
|
return /* @__PURE__ */ e.jsxs("div", { style: n, className: `text-area ${w ? "error" : ""} ${a ? "border" : ""} ${r ? "transparent" : ""} ${h}`, children: [
|
|
1016
|
-
|
|
1016
|
+
i ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", onClick: E, children: i }) : null,
|
|
1017
1017
|
/* @__PURE__ */ e.jsx("div", { className: "textarea-container", onClick: E, children: /* @__PURE__ */ e.jsx(
|
|
1018
1018
|
"textarea",
|
|
1019
1019
|
{
|
|
@@ -1023,7 +1023,7 @@ const Vt = ({ styleContainer: n, transparent: r, readOnly: s, border: a, icon: c
|
|
|
1023
1023
|
placeholder: o,
|
|
1024
1024
|
className: `${w ? "error" : ""}`,
|
|
1025
1025
|
name: d,
|
|
1026
|
-
value:
|
|
1026
|
+
value: c,
|
|
1027
1027
|
onChange: l,
|
|
1028
1028
|
onFocus: f,
|
|
1029
1029
|
onBlur: v
|
|
@@ -1039,11 +1039,11 @@ const W = ({ style: n, short: r, text: s }) => s ? /* @__PURE__ */ e.jsxs("div",
|
|
|
1039
1039
|
const ut = ({ name: n, checked: r }) => /* @__PURE__ */ e.jsxs("label", { className: "radio-button-container", children: [
|
|
1040
1040
|
/* @__PURE__ */ e.jsx("input", { className: "radio-button", name: n, type: "radio", checked: r, readOnly: !0 }),
|
|
1041
1041
|
/* @__PURE__ */ e.jsx("span", {})
|
|
1042
|
-
] }), Bt = ({ name: n, currentValue: r, value: s, onChange: a, readOnly:
|
|
1043
|
-
/* @__PURE__ */ e.jsx("input", { className: "radio-button", name: n, type: "radio", checked: r === s || l, value: s, onChange: a, readOnly:
|
|
1042
|
+
] }), Bt = ({ name: n, currentValue: r, value: s, onChange: a, readOnly: i, checked: l }) => /* @__PURE__ */ e.jsxs("label", { className: "radio-button-container", children: [
|
|
1043
|
+
/* @__PURE__ */ e.jsx("input", { className: "radio-button", name: n, type: "radio", checked: r === s || l, value: s, onChange: a, readOnly: i }),
|
|
1044
1044
|
/* @__PURE__ */ e.jsx("span", {})
|
|
1045
1045
|
] });
|
|
1046
|
-
const zt = ({ style: n, icon: r, className: s, onClick: a, onContextMenu:
|
|
1046
|
+
const zt = ({ style: n, icon: r, className: s, onClick: a, onContextMenu: i, children: l }) => /* @__PURE__ */ e.jsxs("button", { style: n, className: `${s} extendedFAB`, onClick: a, onContextMenu: i, children: [
|
|
1047
1047
|
r,
|
|
1048
1048
|
l ? /* @__PURE__ */ e.jsx("span", { children: l }) : null
|
|
1049
1049
|
] });
|
|
@@ -1052,21 +1052,21 @@ const Ut = ({ children: n, header: r }) => /* @__PURE__ */ e.jsxs("div", { class
|
|
|
1052
1052
|
/* @__PURE__ */ e.jsx("div", { className: "field-container-content", children: n })
|
|
1053
1053
|
] }), xt = (n) => n === "" ? [] : n.split(",").map((r) => r.trim()), an = (n) => n.join(", ");
|
|
1054
1054
|
const Kt = ({ minWidth: n, value: r, onChange: s, border: a }) => {
|
|
1055
|
-
const [
|
|
1055
|
+
const [i, l] = N([]), [d, c] = N("");
|
|
1056
1056
|
F(() => {
|
|
1057
1057
|
console.log("p0"), l(xt(r));
|
|
1058
1058
|
}, [r]), F(() => {
|
|
1059
|
-
console.log(
|
|
1060
|
-
}, [
|
|
1059
|
+
console.log(i);
|
|
1060
|
+
}, [i]);
|
|
1061
1061
|
const o = (f) => {
|
|
1062
|
-
|
|
1062
|
+
c(f.target.value);
|
|
1063
1063
|
}, h = R(() => {
|
|
1064
|
-
if (d === "" ||
|
|
1064
|
+
if (d === "" || i.includes(d))
|
|
1065
1065
|
return;
|
|
1066
|
-
const f = [...
|
|
1067
|
-
l(f), s && s(an(f)),
|
|
1068
|
-
}, [
|
|
1069
|
-
const v =
|
|
1066
|
+
const f = [...i, d.trim()];
|
|
1067
|
+
l(f), s && s(an(f)), c("");
|
|
1068
|
+
}, [i, d]), u = (f) => {
|
|
1069
|
+
const v = i.filter((p, y) => y !== f);
|
|
1070
1070
|
l(v), s && s(an(v));
|
|
1071
1071
|
};
|
|
1072
1072
|
return /* @__PURE__ */ e.jsxs("div", { className: "more-text", style: { minWidth: n }, children: [
|
|
@@ -1074,37 +1074,37 @@ const Kt = ({ minWidth: n, value: r, onChange: s, border: a }) => {
|
|
|
1074
1074
|
/* @__PURE__ */ e.jsx(hn, { onChange: o, value: d, border: a }),
|
|
1075
1075
|
/* @__PURE__ */ e.jsx(Hn, { children: /* @__PURE__ */ e.jsx(dn, { onClick: h, children: "add" }) })
|
|
1076
1076
|
] }),
|
|
1077
|
-
/* @__PURE__ */ e.jsx("div", { className: "chips-container", children:
|
|
1077
|
+
/* @__PURE__ */ e.jsx("div", { className: "chips-container", children: i.map((f, v) => /* @__PURE__ */ e.jsx(dt, { text: f, onDelete: () => u(v) }, v)) })
|
|
1078
1078
|
] });
|
|
1079
1079
|
};
|
|
1080
|
-
const Xt = ({ style: n, text: r, className: s, onClick: a, onContextMenu:
|
|
1080
|
+
const Xt = ({ style: n, text: r, className: s, onClick: a, onContextMenu: i }) => {
|
|
1081
1081
|
const l = U(null), d = R(() => {
|
|
1082
1082
|
if (!l.current)
|
|
1083
1083
|
return;
|
|
1084
|
-
let
|
|
1085
|
-
|
|
1084
|
+
let c = l.current.getElementsByTagName("p");
|
|
1085
|
+
c[0] && l.current.clientWidth <= c[0].clientWidth ? (c[0].className = "runing", c[0].innerHTML = `| ${r} | ${r}`) : c[0].className = "";
|
|
1086
1086
|
}, [r]);
|
|
1087
1087
|
return F(() => {
|
|
1088
1088
|
d();
|
|
1089
|
-
}, [d]), /* @__PURE__ */ e.jsx("div", { style: n, ref: l, onClick: a, onContextMenu:
|
|
1089
|
+
}, [d]), /* @__PURE__ */ e.jsx("div", { style: n, ref: l, onClick: a, onContextMenu: i, className: `runing-text ${s}`, children: /* @__PURE__ */ e.jsx("p", { children: r }) });
|
|
1090
1090
|
};
|
|
1091
1091
|
const qt = ({ className: n, children: r, height: s }) => /* @__PURE__ */ e.jsx("div", { className: `scroll-container ${n}`, style: { height: s }, children: r });
|
|
1092
1092
|
const Gt = ({ onMenu: n, onSearch: r, placeholder: s, autoChenge: a }) => {
|
|
1093
|
-
const
|
|
1094
|
-
|
|
1093
|
+
const i = U(null), [l, d] = N(""), [c, o] = N(!1), h = () => {
|
|
1094
|
+
i.current && (i.current.focus(), o(!0));
|
|
1095
1095
|
}, u = () => {
|
|
1096
|
-
|
|
1096
|
+
i.current && (i.current.focus(), i.current.value = ""), d(""), o(!0), a && r("");
|
|
1097
1097
|
}, f = () => {
|
|
1098
|
-
u(),
|
|
1098
|
+
u(), i.current && (i.current.blur(), o(!1));
|
|
1099
1099
|
}, v = (y) => {
|
|
1100
1100
|
d(y.target.value), a && r(y.target.value);
|
|
1101
|
-
},
|
|
1101
|
+
}, p = (y) => {
|
|
1102
1102
|
y.code === "Enter" && r(l);
|
|
1103
1103
|
};
|
|
1104
1104
|
return /* @__PURE__ */ e.jsx("div", { className: "search-container", children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
|
|
1105
|
-
|
|
1106
|
-
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref:
|
|
1107
|
-
|
|
1105
|
+
c ? /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(tt, { size: 24 }) }) : n ? /* @__PURE__ */ e.jsx("span", { onClick: n, children: /* @__PURE__ */ e.jsx(xn, { size: 24 }) }) : null,
|
|
1106
|
+
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: i, onChange: v, onKeyDown: p, value: l, onFocus: () => o(!0) }),
|
|
1107
|
+
c ? /* @__PURE__ */ e.jsx("span", { onClick: u, children: /* @__PURE__ */ e.jsx(je, { size: 24 }) }) : /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(lt, { size: 24 }) })
|
|
1108
1108
|
] }) });
|
|
1109
1109
|
};
|
|
1110
1110
|
const Jt = ({ visible: n, text: r, option: s }) => {
|
|
@@ -1120,9 +1120,9 @@ const Jt = ({ visible: n, text: r, option: s }) => {
|
|
|
1120
1120
|
] }) : null;
|
|
1121
1121
|
};
|
|
1122
1122
|
const Ht = ({ name: n, onChange: r, checked: s, className: a }) => /* @__PURE__ */ e.jsx("div", { className: `swich-container ${a}`, children: /* @__PURE__ */ e.jsx("input", { type: "checkbox", name: n, onChange: r, checked: s }) });
|
|
1123
|
-
const ht = (n) => n === void 0 ? [] : Array.isArray(n) ? n : [n], Zt = ({ multiple: n, value: r, items: s, className: a, onClick:
|
|
1124
|
-
const [
|
|
1125
|
-
|
|
1123
|
+
const ht = (n) => n === void 0 ? [] : Array.isArray(n) ? n : [n], Zt = ({ multiple: n, value: r, items: s, className: a, onClick: i, onContextMenu: l, onChange: d }) => {
|
|
1124
|
+
const [c, o] = N(ht(r)), h = (u) => {
|
|
1125
|
+
i && i(u);
|
|
1126
1126
|
const f = u.currentTarget;
|
|
1127
1127
|
if (!n) {
|
|
1128
1128
|
if (!f.dataset.el)
|
|
@@ -1130,12 +1130,12 @@ const ht = (n) => n === void 0 ? [] : Array.isArray(n) ? n : [n], Zt = ({ multip
|
|
|
1130
1130
|
o([f.dataset.el]), d && d([f.dataset.el], u);
|
|
1131
1131
|
return;
|
|
1132
1132
|
}
|
|
1133
|
-
const v =
|
|
1134
|
-
let
|
|
1135
|
-
v.length > 0 && f.dataset.el ?
|
|
1133
|
+
const v = c.filter((y) => y === f.dataset.el);
|
|
1134
|
+
let p = c.slice();
|
|
1135
|
+
v.length > 0 && f.dataset.el ? p = p.filter((y) => y !== f.dataset.el) : f.dataset.el && p.push(f.dataset.el), o(p), d && d(p, u);
|
|
1136
1136
|
};
|
|
1137
|
-
return /* @__PURE__ */ e.jsx("div", { className: `sigmentedbutton-container ${a ?? ""}`, children: s.map((u, f) => /* @__PURE__ */ e.jsx("div", { className: "sigmentedbutton-item-container", children: /* @__PURE__ */ e.jsxs("button", { "data-el": u, onContextMenu: l, onClick: h, className: `sigmentedbutton-item-button ${
|
|
1138
|
-
|
|
1137
|
+
return /* @__PURE__ */ e.jsx("div", { className: `sigmentedbutton-container ${a ?? ""}`, children: s.map((u, f) => /* @__PURE__ */ e.jsx("div", { className: "sigmentedbutton-item-container", children: /* @__PURE__ */ e.jsxs("button", { "data-el": u, onContextMenu: l, onClick: h, className: `sigmentedbutton-item-button ${c.includes(u) ? "active" : ""}`, children: [
|
|
1138
|
+
c.includes(u) ? /* @__PURE__ */ e.jsx("div", { className: "icon-container", children: /* @__PURE__ */ e.jsx(ce, {}) }) : null,
|
|
1139
1139
|
/* @__PURE__ */ e.jsx("div", { className: "text-container", children: u })
|
|
1140
1140
|
] }, f) }, f)) });
|
|
1141
1141
|
};
|
|
@@ -1145,33 +1145,33 @@ const fn = (n) => n ? {
|
|
|
1145
1145
|
left: Number(n.getBoundingClientRect().left),
|
|
1146
1146
|
top: Number(n.getBoundingClientRect().top)
|
|
1147
1147
|
} : void 0, mn = (n, r, s, a) => {
|
|
1148
|
-
let
|
|
1148
|
+
let i = { x: n, y: r };
|
|
1149
1149
|
if (!s)
|
|
1150
|
-
return
|
|
1151
|
-
let l = Number(window.getComputedStyle(s).getPropertyValue("height").replace("px", "")), d = Number(window.getComputedStyle(s).getPropertyValue("width").replace("px", "")),
|
|
1152
|
-
return
|
|
1150
|
+
return i;
|
|
1151
|
+
let l = Number(window.getComputedStyle(s).getPropertyValue("height").replace("px", "")), d = Number(window.getComputedStyle(s).getPropertyValue("width").replace("px", "")), c = r + l - document.documentElement.scrollHeight, o = n + d - document.documentElement.clientWidth;
|
|
1152
|
+
return c > 0 && (i.y = i.y - c - ((a == null ? void 0 : a.marginBottom) ?? 0)), o > 0 && (i.x = i.x - o - ((a == null ? void 0 : a.marginRight) ?? 0)), i;
|
|
1153
1153
|
};
|
|
1154
|
-
function ft(n, r, s, a,
|
|
1155
|
-
return a + (
|
|
1154
|
+
function ft(n, r, s, a, i) {
|
|
1155
|
+
return a + (i - a) * ((n - r) / (s - r));
|
|
1156
1156
|
}
|
|
1157
1157
|
const Te = 0, Re = 100, Qt = (n) => {
|
|
1158
|
-
const [r, s] = N(0), [a,
|
|
1158
|
+
const [r, s] = N(0), [a, i] = N(!1), l = U(null), d = U(null);
|
|
1159
1159
|
F(() => {
|
|
1160
1160
|
n.value ? s(n.value) : s(0);
|
|
1161
1161
|
}, [n.value]);
|
|
1162
|
-
const
|
|
1162
|
+
const c = (f) => {
|
|
1163
1163
|
s(Number(f.target.value)), n.onChange(f);
|
|
1164
|
-
}, o = (f, v,
|
|
1164
|
+
}, o = (f, v, p) => {
|
|
1165
1165
|
if (l.current && d.current) {
|
|
1166
1166
|
let y = fn(d.current);
|
|
1167
1167
|
if (y)
|
|
1168
|
-
return ft(f, v,
|
|
1168
|
+
return ft(f, v, p, 0, p - v) * (y.width - 20) / (p - v);
|
|
1169
1169
|
}
|
|
1170
1170
|
return 0;
|
|
1171
1171
|
}, h = R((f) => {
|
|
1172
|
-
|
|
1172
|
+
i(!0), n.onFocus && n.onFocus(f);
|
|
1173
1173
|
}, [n.onFocus]), u = R((f) => {
|
|
1174
|
-
|
|
1174
|
+
i(!1), n.onBlur && n.onBlur(f);
|
|
1175
1175
|
}, [n.onBlur]);
|
|
1176
1176
|
return /* @__PURE__ */ e.jsx("div", { className: "range", children: /* @__PURE__ */ e.jsxs("div", { className: "field", children: [
|
|
1177
1177
|
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value left", children: n.min ?? Te }) : null,
|
|
@@ -1180,14 +1180,14 @@ const Te = 0, Re = 100, Qt = (n) => {
|
|
|
1180
1180
|
/* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-container" }),
|
|
1181
1181
|
/* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-value", children: r })
|
|
1182
1182
|
] }) }),
|
|
1183
|
-
/* @__PURE__ */ e.jsx("input", { onMouseUp: n.onMouseUp, ref: d, step: n.step, type: "range", min: n.min ?? Te, max: n.max ?? Re, onChange:
|
|
1183
|
+
/* @__PURE__ */ e.jsx("input", { onMouseUp: n.onMouseUp, ref: d, step: n.step, type: "range", min: n.min ?? Te, max: n.max ?? Re, onChange: c, value: r, onFocus: h, onBlur: u })
|
|
1184
1184
|
] }),
|
|
1185
1185
|
n.maxMinDisplay ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: n.max ?? Re }) : null
|
|
1186
1186
|
] }) });
|
|
1187
1187
|
};
|
|
1188
|
-
const J = ({ className: n, children: r, header: s, action: a, onHide:
|
|
1188
|
+
const J = ({ className: n, children: r, header: s, action: a, onHide: i, style: l }) => {
|
|
1189
1189
|
function d() {
|
|
1190
|
-
|
|
1190
|
+
i && i();
|
|
1191
1191
|
}
|
|
1192
1192
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1193
1193
|
/* @__PURE__ */ e.jsx("div", { onClick: d, style: { zIndex: "999" }, className: "backplate" }),
|
|
@@ -1200,9 +1200,9 @@ const J = ({ className: n, children: r, header: s, action: a, onHide: c, style:
|
|
|
1200
1200
|
}, mt = ({ onHide: n, onSave: r }) => /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
1201
1201
|
/* @__PURE__ */ e.jsx(M, { onClick: n, children: "cancel" }),
|
|
1202
1202
|
r ? /* @__PURE__ */ e.jsx(M, { onClick: r, children: "save" }) : null
|
|
1203
|
-
] }), er = ({ style: n, className: r, header: s, children: a, onSave:
|
|
1204
|
-
const [d,
|
|
1205
|
-
window.innerWidth < 720 ?
|
|
1203
|
+
] }), er = ({ style: n, className: r, header: s, children: a, onSave: i, onHide: l }) => {
|
|
1204
|
+
const [d, c] = N(!1), o = R(() => {
|
|
1205
|
+
window.innerWidth < 720 ? c(!0) : c(!1);
|
|
1206
1206
|
}, [window.innerWidth]);
|
|
1207
1207
|
F(() => {
|
|
1208
1208
|
o();
|
|
@@ -1212,23 +1212,23 @@ const J = ({ className: n, children: r, header: s, action: a, onHide: c, style:
|
|
|
1212
1212
|
const h = () => {
|
|
1213
1213
|
l && l();
|
|
1214
1214
|
}, u = () => {
|
|
1215
|
-
|
|
1215
|
+
i && i();
|
|
1216
1216
|
};
|
|
1217
1217
|
return d ? /* @__PURE__ */ e.jsxs("div", { style: n, className: `full-screen-dialog-container ${r}`, children: [
|
|
1218
1218
|
/* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog-header", children: [
|
|
1219
1219
|
/* @__PURE__ */ e.jsx("div", { className: "dialog-icon-container", children: /* @__PURE__ */ e.jsx(ie, { transparent: !0, onClick: h, icon: /* @__PURE__ */ e.jsx(je, {}) }) }),
|
|
1220
1220
|
/* @__PURE__ */ e.jsx("div", { className: "header", children: s }),
|
|
1221
|
-
/* @__PURE__ */ e.jsx("div", { className: "save-container", children:
|
|
1221
|
+
/* @__PURE__ */ e.jsx("div", { className: "save-container", children: i ? /* @__PURE__ */ e.jsx(M, { onClick: u, children: "save" }) : null })
|
|
1222
1222
|
] }),
|
|
1223
1223
|
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog-content", style: { overflowY: "auto" }, children: a })
|
|
1224
|
-
] }) : /* @__PURE__ */ e.jsx(J, { style: n, header: s, className: `full-screen-dialog-base-format ${r}`, onHide: h, children: a, action: /* @__PURE__ */ e.jsx(mt, { onHide: h, onSave:
|
|
1225
|
-
}, nr = ({ styleContainer: n, text: r, header: s, actionText: a, onSuccess:
|
|
1226
|
-
const
|
|
1227
|
-
|
|
1224
|
+
] }) : /* @__PURE__ */ e.jsx(J, { style: n, header: s, className: `full-screen-dialog-base-format ${r}`, onHide: h, children: a, action: /* @__PURE__ */ e.jsx(mt, { onHide: h, onSave: i ? u : void 0 }) });
|
|
1225
|
+
}, nr = ({ styleContainer: n, text: r, header: s, actionText: a, onSuccess: i, onHide: l, onCancel: d }) => {
|
|
1226
|
+
const c = R(() => {
|
|
1227
|
+
i && i(), l && l();
|
|
1228
1228
|
}, []), o = R(() => {
|
|
1229
1229
|
d && d(), l && l();
|
|
1230
1230
|
}, []);
|
|
1231
|
-
return /* @__PURE__ */ e.jsx(J, { style: n, header: s, action: /* @__PURE__ */ e.jsx(vt, { onHide: o, actionText: a, onSuccess:
|
|
1231
|
+
return /* @__PURE__ */ e.jsx(J, { style: n, header: s, action: /* @__PURE__ */ e.jsx(vt, { onHide: o, actionText: a, onSuccess: c }), children: /* @__PURE__ */ e.jsx("p", { children: r }) });
|
|
1232
1232
|
};
|
|
1233
1233
|
function vt({ actionText: n, onSuccess: r, onHide: s }) {
|
|
1234
1234
|
return /* @__PURE__ */ e.jsxs("div", { className: "dialog-button-container", children: [
|
|
@@ -1236,11 +1236,11 @@ function vt({ actionText: n, onSuccess: r, onHide: s }) {
|
|
|
1236
1236
|
/* @__PURE__ */ e.jsx(M, { onClick: r, children: n ?? "OK" })
|
|
1237
1237
|
] });
|
|
1238
1238
|
}
|
|
1239
|
-
function tr({ onSuccess: n, items: r, header: s, onHide: a, noHide:
|
|
1240
|
-
const [d,
|
|
1241
|
-
n && d && n(d),
|
|
1239
|
+
function tr({ onSuccess: n, items: r, header: s, onHide: a, noHide: i = !1, name: l = "dailog_name" }) {
|
|
1240
|
+
const [d, c] = N(void 0), o = R(() => {
|
|
1241
|
+
n && d && n(d), c(void 0), !i && a && a();
|
|
1242
1242
|
}, [d]), h = R((u) => {
|
|
1243
|
-
|
|
1243
|
+
c(u);
|
|
1244
1244
|
}, []);
|
|
1245
1245
|
return /* @__PURE__ */ e.jsxs(J, { header: s, action: /* @__PURE__ */ e.jsx(jt, { onHide: a, onSuccess: o, disabled: d === void 0 }), children: [
|
|
1246
1246
|
/* @__PURE__ */ e.jsx(W, { style: { padding: "0px" } }),
|
|
@@ -1254,15 +1254,15 @@ function jt({ onSuccess: n, onHide: r, disabled: s }) {
|
|
|
1254
1254
|
/* @__PURE__ */ e.jsx(M, { onClick: n, disabled: s, children: "OK" })
|
|
1255
1255
|
] });
|
|
1256
1256
|
}
|
|
1257
|
-
const rr = ({ styleContainer: n, text: r, header: s, onSuccess: a, onHide:
|
|
1257
|
+
const rr = ({ styleContainer: n, text: r, header: s, onSuccess: a, onHide: i, placeholder: l, type: d = "text", min: c = 0, max: o = 100 }) => {
|
|
1258
1258
|
const [h, u] = N(""), f = R(() => {
|
|
1259
|
-
a && a(h),
|
|
1260
|
-
}, [h]), v = (
|
|
1261
|
-
d === "number" && (Number(
|
|
1259
|
+
a && a(h), i && i();
|
|
1260
|
+
}, [h]), v = (p) => {
|
|
1261
|
+
d === "number" && (Number(p) < c && (p = String(c)), Number(p) > o && (p = String(o))), u(p);
|
|
1262
1262
|
};
|
|
1263
|
-
return /* @__PURE__ */ e.jsxs(J, { style: n, header: s, action: /* @__PURE__ */ e.jsx(pt, { onHide:
|
|
1263
|
+
return /* @__PURE__ */ e.jsxs(J, { style: n, header: s, action: /* @__PURE__ */ e.jsx(pt, { onHide: i, onSuccess: f }), children: [
|
|
1264
1264
|
/* @__PURE__ */ e.jsx("p", { children: r }),
|
|
1265
|
-
/* @__PURE__ */ e.jsx("div", { className: "dialog-input-container", children: /* @__PURE__ */ e.jsx(hn, { max: o, min:
|
|
1265
|
+
/* @__PURE__ */ e.jsx("div", { className: "dialog-input-container", children: /* @__PURE__ */ e.jsx(hn, { max: o, min: c, type: d, border: !0, placeholder: l, value: h, onChange: (p) => v(p.target.value) }) })
|
|
1266
1266
|
] });
|
|
1267
1267
|
};
|
|
1268
1268
|
function pt({ onSuccess: n, onHide: r }) {
|
|
@@ -1285,16 +1285,16 @@ const gt = 2050, cn = 1900, z = [
|
|
|
1285
1285
|
"November",
|
|
1286
1286
|
"December"
|
|
1287
1287
|
], yt = () => Array(gt - cn).fill(0).map((n, r) => cn + r), sr = ({ onChange: n, onHide: r }) => {
|
|
1288
|
-
const [s] = N(z[(/* @__PURE__ */ new Date()).getMonth()]), [a] = N((/* @__PURE__ */ new Date()).getFullYear()), [
|
|
1288
|
+
const [s] = N(z[(/* @__PURE__ */ new Date()).getMonth()]), [a] = N((/* @__PURE__ */ new Date()).getFullYear()), [i] = N((/* @__PURE__ */ new Date()).getDate()), [l, d] = N(z[(/* @__PURE__ */ new Date()).getMonth()]), [c, o] = N((/* @__PURE__ */ new Date()).getFullYear()), [h, u] = N({
|
|
1289
1289
|
day: (/* @__PURE__ */ new Date()).getDate(),
|
|
1290
1290
|
type: "NOW_MONTH"
|
|
1291
1291
|
/* NOW_MONTH */
|
|
1292
1292
|
}), [f, v] = N(
|
|
1293
1293
|
"DAYS"
|
|
1294
1294
|
/* DAYS */
|
|
1295
|
-
),
|
|
1296
|
-
let V = Array(
|
|
1297
|
-
return V = Array(y(j, _, 0)).fill(0).map((oe, X) => ({ type: "PREV_MONTH", day:
|
|
1295
|
+
), p = (j, _) => new Date(j, _ + 1, 0).getDate(), y = (j, _, V) => new Date(j, _, V).getDay(), w = (j, _) => {
|
|
1296
|
+
let V = Array(p(j, _)).fill(0).map((oe, X) => ({ type: "NOW_MONTH", day: X + 1 })), K = y(j, _, p(j, _)), ee = Array(7 - K).fill(0).map((oe, X) => ({ type: "NEXT_MONTH", day: X + 1 }));
|
|
1297
|
+
return V = Array(y(j, _, 0)).fill(0).map((oe, X) => ({ type: "PREV_MONTH", day: p(_ ? j : j - 1, _ ? _ - 1 : 11) - X })).reverse().concat(V).concat(ee), V;
|
|
1298
1298
|
}, $ = (j) => {
|
|
1299
1299
|
v(
|
|
1300
1300
|
"DAYS"
|
|
@@ -1309,8 +1309,8 @@ const gt = 2050, cn = 1900, z = [
|
|
|
1309
1309
|
u(j);
|
|
1310
1310
|
}, L = R(() => {
|
|
1311
1311
|
let j = /* @__PURE__ */ new Date();
|
|
1312
|
-
j.setFullYear(
|
|
1313
|
-
}, [l,
|
|
1312
|
+
j.setFullYear(c), h.type === "NEXT_MONTH" ? l === z[11] ? (j.setMonth(0), j.setFullYear(c + 1)) : j.setMonth(z.indexOf(l) + 1) : h.type === "PREV_MONTH" ? l === z[0] ? (j.setMonth(11), j.setFullYear(c - 1)) : j.setMonth(z.indexOf(l) - 1) : j.setMonth(z.indexOf(l)), j.setDate(h.day), n && n(j.getFullYear(), j.getMonth(), j.getDate()), r && r();
|
|
1313
|
+
}, [l, c, n, r, h]);
|
|
1314
1314
|
return /* @__PURE__ */ e.jsxs(J, { className: "calendar-body-container", style: { maxWidth: "328px" }, children: [
|
|
1315
1315
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-select-container", children: [
|
|
1316
1316
|
/* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className: f === "MONTHS" ? "active" : "", onClick: () => v(
|
|
@@ -1325,7 +1325,7 @@ const gt = 2050, cn = 1900, z = [
|
|
|
1325
1325
|
"YEARS"
|
|
1326
1326
|
/* YEARS */
|
|
1327
1327
|
), children: [
|
|
1328
|
-
|
|
1328
|
+
c,
|
|
1329
1329
|
" ",
|
|
1330
1330
|
/* @__PURE__ */ e.jsx(sn, {})
|
|
1331
1331
|
] }) })
|
|
@@ -1334,7 +1334,7 @@ const gt = 2050, cn = 1900, z = [
|
|
|
1334
1334
|
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === j ? /* @__PURE__ */ e.jsx(ce, {}) : null }),
|
|
1335
1335
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: j })
|
|
1336
1336
|
] }, _)) }) : f === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: yt().map((j, _) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => $(j), children: [
|
|
1337
|
-
/* @__PURE__ */ e.jsx("div", { className: "status-container", children:
|
|
1337
|
+
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: c === j ? /* @__PURE__ */ e.jsx(ce, {}) : null }),
|
|
1338
1338
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: j })
|
|
1339
1339
|
] }, _)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1340
1340
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-dayofweek-container", children: [
|
|
@@ -1346,7 +1346,7 @@ const gt = 2050, cn = 1900, z = [
|
|
|
1346
1346
|
/* @__PURE__ */ e.jsx("span", { children: "S" }),
|
|
1347
1347
|
/* @__PURE__ */ e.jsx("span", { children: "S" })
|
|
1348
1348
|
] }),
|
|
1349
|
-
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: w(
|
|
1349
|
+
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: w(c, z.indexOf(l)).map((j, _) => /* @__PURE__ */ e.jsx("div", { className: `day ${j.type !== "NOW_MONTH" ? "other" : ""} ${i === j.day && c === a && l === s ? "now" : ""} ${j.day === h.day && j.type === h.type ? "select" : ""}`, onClick: () => E(j), children: j.day }, _)) })
|
|
1350
1350
|
] }),
|
|
1351
1351
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-action-container", children: [
|
|
1352
1352
|
/* @__PURE__ */ e.jsx(M, { className: "little m-0", onClick: r, children: "Cancel" }),
|
|
@@ -1354,8 +1354,8 @@ const gt = 2050, cn = 1900, z = [
|
|
|
1354
1354
|
] })
|
|
1355
1355
|
] });
|
|
1356
1356
|
};
|
|
1357
|
-
const bt = ({ setHours: n, setMinutes: r, switchMode: s, hours: a, minutes:
|
|
1358
|
-
const [
|
|
1357
|
+
const bt = ({ setHours: n, setMinutes: r, switchMode: s, hours: a, minutes: i, onCancel: l, onOK: d }) => {
|
|
1358
|
+
const [c, o] = N(!1), h = R((v) => {
|
|
1359
1359
|
n(v), o(!0);
|
|
1360
1360
|
}, [n]), u = R((v) => {
|
|
1361
1361
|
r(v), o(!1);
|
|
@@ -1371,11 +1371,11 @@ const bt = ({ setHours: n, setMinutes: r, switchMode: s, hours: a, minutes: c, o
|
|
|
1371
1371
|
] }),
|
|
1372
1372
|
/* @__PURE__ */ e.jsx("div", { className: "time-separator", children: ":" }),
|
|
1373
1373
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input minutes", children: [
|
|
1374
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { disabled: !0, type: "number", value:
|
|
1374
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { disabled: !0, type: "number", value: i, min: 0, max: 60 }) }),
|
|
1375
1375
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Minute" })
|
|
1376
1376
|
] })
|
|
1377
1377
|
] }),
|
|
1378
|
-
/* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children:
|
|
1378
|
+
/* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children: c ? /* @__PURE__ */ e.jsx(Nt, { setMinutes: u }) : /* @__PURE__ */ e.jsx(kt, { setHours: h }) }),
|
|
1379
1379
|
/* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
|
|
1380
1380
|
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => s(), children: /* @__PURE__ */ e.jsx(it, {}) }),
|
|
1381
1381
|
/* @__PURE__ */ e.jsx(M, { className: "little", onClick: f, children: "Cancel" }),
|
|
@@ -1435,8 +1435,8 @@ function Nt({ setMinutes: n }) {
|
|
|
1435
1435
|
/* @__PURE__ */ e.jsx("span", { className: "center" })
|
|
1436
1436
|
] });
|
|
1437
1437
|
}
|
|
1438
|
-
const Ct = ({ setHours: n, setMinutes: r, switchMode: s, minutes: a, hours:
|
|
1439
|
-
const
|
|
1438
|
+
const Ct = ({ setHours: n, setMinutes: r, switchMode: s, minutes: a, hours: i, onCancel: l, onOK: d }) => {
|
|
1439
|
+
const c = (h) => {
|
|
1440
1440
|
let u = Number(h.target.value);
|
|
1441
1441
|
u < 0 && (u = 0), u > 23 && (u = 23), n(u);
|
|
1442
1442
|
}, o = (h) => {
|
|
@@ -1447,7 +1447,7 @@ const Ct = ({ setHours: n, setMinutes: r, switchMode: s, minutes: a, hours: c, o
|
|
|
1447
1447
|
/* @__PURE__ */ e.jsx("div", { className: "time-type", children: /* @__PURE__ */ e.jsx("p", { className: "text-sm", children: "Enter time" }) }),
|
|
1448
1448
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input-container", children: [
|
|
1449
1449
|
/* @__PURE__ */ e.jsxs("div", { className: "time-input hours", children: [
|
|
1450
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", min: 0, max: 23, value:
|
|
1450
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-container", children: /* @__PURE__ */ e.jsx("input", { type: "number", min: 0, max: 23, value: i, onChange: c }) }),
|
|
1451
1451
|
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: "Hour" })
|
|
1452
1452
|
] }),
|
|
1453
1453
|
/* @__PURE__ */ e.jsx("div", { className: "time-separator", children: ":" }),
|
|
@@ -1463,23 +1463,23 @@ const Ct = ({ setHours: n, setMinutes: r, switchMode: s, minutes: a, hours: c, o
|
|
|
1463
1463
|
] })
|
|
1464
1464
|
] });
|
|
1465
1465
|
}, ar = (n) => {
|
|
1466
|
-
const [r, s] = N(n.minutes ?? 0), [a,
|
|
1467
|
-
n.onHide && n.onHide(), s(0),
|
|
1466
|
+
const [r, s] = N(n.minutes ?? 0), [a, i] = N(n.hours ?? 0), [l, d] = N(!0), c = () => {
|
|
1467
|
+
n.onHide && n.onHide(), s(0), i(0);
|
|
1468
1468
|
}, o = R((u) => {
|
|
1469
1469
|
s(u), n.onChange && n.onChange(a, u), n.onHide && n.onHide();
|
|
1470
1470
|
}, [a]), h = R(() => {
|
|
1471
1471
|
n.onChange && n.onChange(a, r), n.onHide && n.onHide();
|
|
1472
1472
|
}, [a, r]);
|
|
1473
|
-
return l ? /* @__PURE__ */ e.jsx(J, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(bt, { setMinutes: o, setHours:
|
|
1473
|
+
return l ? /* @__PURE__ */ e.jsx(J, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(bt, { setMinutes: o, setHours: i, minutes: r, hours: a, switchMode: () => d(!1), onCancel: c, onOK: h }) }) : /* @__PURE__ */ e.jsx(J, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Ct, { setMinutes: s, setHours: i, minutes: r, hours: a, switchMode: () => d(!0), onCancel: c, onOK: h }) });
|
|
1474
1474
|
};
|
|
1475
1475
|
const ir = ({ onChange: n, value: r, className: s }) => {
|
|
1476
|
-
const [a,
|
|
1477
|
-
if (!
|
|
1476
|
+
const [a, i] = N(r || []), l = R((c) => {
|
|
1477
|
+
if (!c)
|
|
1478
1478
|
return;
|
|
1479
1479
|
let o = a.slice();
|
|
1480
|
-
const h = o.indexOf(
|
|
1481
|
-
h !== -1 && !
|
|
1482
|
-
}, [a]), d = R((
|
|
1480
|
+
const h = o.indexOf(c.target.name);
|
|
1481
|
+
h !== -1 && !c.target.checked ? o = o.filter((u, f) => f !== h) : h === -1 && c.target.checked && o.push(c.target.name), i(o), n && n(o);
|
|
1482
|
+
}, [a]), d = R((c) => a.indexOf(c) !== -1, [a]);
|
|
1483
1483
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: `days-week-field-container ${s}`, children: [
|
|
1484
1484
|
/* @__PURE__ */ e.jsxs("label", { children: [
|
|
1485
1485
|
/* @__PURE__ */ e.jsx("input", { type: "checkbox", onChange: l, name: "Mon", checked: d("Mon") }),
|
|
@@ -1511,12 +1511,12 @@ const ir = ({ onChange: n, value: r, className: s }) => {
|
|
|
1511
1511
|
] })
|
|
1512
1512
|
] }) });
|
|
1513
1513
|
};
|
|
1514
|
-
const cr = ({ children: n }) => /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item", children: /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item-container", children: n }) }), lr = ({ minWith: n, children: r, className: s, gridRowGap: a = "10px", gridColumnGap:
|
|
1514
|
+
const cr = ({ children: n }) => /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item", children: /* @__PURE__ */ e.jsx("div", { className: "adaptiv-grid-item-container", children: n }) }), lr = ({ minWith: n, children: r, className: s, gridRowGap: a = "10px", gridColumnGap: i = "5px", itemMinWith: l, itemMaxWith: d, itemWith: c = "400px" }) => {
|
|
1515
1515
|
const o = U(null), [h, u] = N([]), f = R(() => {
|
|
1516
1516
|
if (!o.current)
|
|
1517
1517
|
return;
|
|
1518
|
-
o.current.style.display = "grid", o.current.style.gridRowGap = a, o.current.style.gridColumnGap =
|
|
1519
|
-
let y = l ??
|
|
1518
|
+
o.current.style.display = "grid", o.current.style.gridRowGap = a, o.current.style.gridColumnGap = i;
|
|
1519
|
+
let y = l ?? c, w = d ?? c;
|
|
1520
1520
|
o.current.style.gridTemplateColumns = "repeat(auto-fill, minmax(" + y + ", " + w + "))", o.current.style.gridAutoRows = "0", h.forEach(($) => {
|
|
1521
1521
|
$.style.gridAutoRows = "0", $.style.gridAutoColumns = "0";
|
|
1522
1522
|
});
|
|
@@ -1528,15 +1528,15 @@ const cr = ({ children: n }) => /* @__PURE__ */ e.jsx("div", { className: "adapt
|
|
|
1528
1528
|
let O = 0, E = $.querySelector(".adaptiv-grid-item-container");
|
|
1529
1529
|
E && (O = Math.ceil((E.getBoundingClientRect().height + y) / (w + y))), $.style.gridRowEnd = "span " + O;
|
|
1530
1530
|
});
|
|
1531
|
-
}, [h, o.current]),
|
|
1531
|
+
}, [h, o.current]), p = R(() => {
|
|
1532
1532
|
if (o.current) {
|
|
1533
1533
|
let y = o.current.querySelectorAll(".adaptiv-grid-item");
|
|
1534
1534
|
u(Array.prototype.slice.call(y, 0));
|
|
1535
1535
|
}
|
|
1536
1536
|
}, [o.current, r]);
|
|
1537
1537
|
return F(() => {
|
|
1538
|
-
|
|
1539
|
-
}, [
|
|
1538
|
+
p();
|
|
1539
|
+
}, [p]), F(() => {
|
|
1540
1540
|
f();
|
|
1541
1541
|
}, [f]), F(() => {
|
|
1542
1542
|
v();
|
|
@@ -1544,20 +1544,20 @@ const cr = ({ children: n }) => /* @__PURE__ */ e.jsx("div", { className: "adapt
|
|
|
1544
1544
|
window.addEventListener("resize", v);
|
|
1545
1545
|
}), [v]), /* @__PURE__ */ e.jsx("div", { style: { minWidth: n }, ref: o, className: `adaptiv-grid-layout ${s}`, children: r });
|
|
1546
1546
|
};
|
|
1547
|
-
const or = ({
|
|
1548
|
-
const
|
|
1549
|
-
let
|
|
1550
|
-
for (const
|
|
1551
|
-
if (
|
|
1552
|
-
console.error(`invalid index count. indexCol = ${
|
|
1547
|
+
const or = ({ onClick: n, onContextMenu: r, className: s, style: a, countColumn: i, items: l, onClickColl: d, classNameColumn: c }) => {
|
|
1548
|
+
const o = (u, f) => {
|
|
1549
|
+
let v = new Array(u).fill([]).map((p) => new Array());
|
|
1550
|
+
for (const p of f) {
|
|
1551
|
+
if (p.indexCol >= v.length) {
|
|
1552
|
+
console.error(`invalid index count. indexCol = ${p.indexCol}, column count = ${u}`);
|
|
1553
1553
|
continue;
|
|
1554
1554
|
}
|
|
1555
|
-
|
|
1555
|
+
v[p.indexCol].push(p.node);
|
|
1556
1556
|
}
|
|
1557
|
-
return
|
|
1558
|
-
},
|
|
1557
|
+
return v;
|
|
1558
|
+
}, h = d || (() => {
|
|
1559
1559
|
});
|
|
1560
|
-
return /* @__PURE__ */ e.jsx("div", {
|
|
1560
|
+
return /* @__PURE__ */ e.jsx("div", { onClick: n, onContextMenu: r, style: { ...a, gridTemplateColumns: `repeat(${i}, 1fr)` }, className: `alex-evo-sh-ui-kit-column-layout ${s}`, children: o(i, l).map((u, f) => /* @__PURE__ */ e.jsx("div", { onClick: (v) => h(f, v), className: `alex-evo-sh-ui-kit-column-layout-coll ${c}`, children: u.map((v, p) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: v }, p)) }, f)) });
|
|
1561
1561
|
};
|
|
1562
1562
|
const wt = ({ item: n, isIcon: r, globalClick: s }) => {
|
|
1563
1563
|
const a = () => {
|
|
@@ -1569,52 +1569,52 @@ const wt = ({ item: n, isIcon: r, globalClick: s }) => {
|
|
|
1569
1569
|
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(ce, {}) : null })
|
|
1570
1570
|
] });
|
|
1571
1571
|
}, Et = ({ items: n, onHide: r, smallDisplay: s, globalClick: a }) => {
|
|
1572
|
-
const
|
|
1573
|
-
function
|
|
1572
|
+
const i = U(null), [l, d] = N({ left: "0px", top: "0px" });
|
|
1573
|
+
function c(o) {
|
|
1574
1574
|
for (let h of o)
|
|
1575
1575
|
if (h.icon)
|
|
1576
1576
|
return !0;
|
|
1577
1577
|
return !1;
|
|
1578
1578
|
}
|
|
1579
1579
|
return F(() => {
|
|
1580
|
-
if (!
|
|
1580
|
+
if (!i.current)
|
|
1581
1581
|
return;
|
|
1582
|
-
let o = fn(
|
|
1582
|
+
let o = fn(i.current.parentElement);
|
|
1583
1583
|
if (!o)
|
|
1584
1584
|
return;
|
|
1585
|
-
let h = mn(o.left + o.width, o.top,
|
|
1585
|
+
let h = mn(o.left + o.width, o.top, i.current, { marginRight: o.width });
|
|
1586
1586
|
d({
|
|
1587
1587
|
left: h.x - o.left + "px",
|
|
1588
1588
|
top: h.y - o.top + "px"
|
|
1589
1589
|
});
|
|
1590
1590
|
}, []), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1591
|
-
/* @__PURE__ */ e.jsx("div", { ref:
|
|
1591
|
+
/* @__PURE__ */ e.jsx("div", { ref: i, className: "menu-sub-block", style: { ...l }, children: n.map((o, h) => /* @__PURE__ */ e.jsx(wt, { item: o, isIcon: c(n), globalClick: a }, h)) }),
|
|
1592
1592
|
s ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "backplate", onClick: r })
|
|
1593
1593
|
] });
|
|
1594
|
-
}, Tt = ({ onHide: n, autoHide: r, globalClick: s, item: a, isIcon:
|
|
1595
|
-
const [d,
|
|
1596
|
-
a.subItems ?
|
|
1594
|
+
}, Tt = ({ onHide: n, autoHide: r, globalClick: s, item: a, isIcon: i, smallDisplay: l }) => {
|
|
1595
|
+
const [d, c] = N(!1), o = R(() => {
|
|
1596
|
+
a.subItems ? c((h) => !h) : a.onClick && a.onClick(), s && s(), r && n && n();
|
|
1597
1597
|
}, [a.onClick]);
|
|
1598
1598
|
return /* @__PURE__ */ e.jsxs("div", { className: "menu-item-conatiner", children: [
|
|
1599
1599
|
/* @__PURE__ */ e.jsxs("div", { className: "menu-item", onClick: o, children: [
|
|
1600
|
-
|
|
1600
|
+
i ? /* @__PURE__ */ e.jsx("div", { className: "menu-icon-container", children: a.icon }) : null,
|
|
1601
1601
|
/* @__PURE__ */ e.jsx("div", { className: "menu-text-container", children: a.title }),
|
|
1602
1602
|
/* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: a.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-status-submenu ${d ? "active" : ""}` }) : a.activated ? /* @__PURE__ */ e.jsx(ce, {}) : /* @__PURE__ */ e.jsx("span", { className: "none-status" }) })
|
|
1603
1603
|
] }),
|
|
1604
|
-
d && a.subItems ? /* @__PURE__ */ e.jsx(Et, { items: a.subItems, onHide: () =>
|
|
1604
|
+
d && a.subItems ? /* @__PURE__ */ e.jsx(Et, { items: a.subItems, onHide: () => c(!1), smallDisplay: l }) : null
|
|
1605
1605
|
] });
|
|
1606
1606
|
};
|
|
1607
|
-
function vn({ block: n, smallDisplay: r, onHide: s, globalClick: a, autoHide:
|
|
1607
|
+
function vn({ block: n, smallDisplay: r, onHide: s, globalClick: a, autoHide: i }) {
|
|
1608
1608
|
function l(d) {
|
|
1609
|
-
for (let
|
|
1610
|
-
if (
|
|
1609
|
+
for (let c of d.items)
|
|
1610
|
+
if (c.icon)
|
|
1611
1611
|
return !0;
|
|
1612
1612
|
return !1;
|
|
1613
1613
|
}
|
|
1614
|
-
return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((d,
|
|
1614
|
+
return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((d, c) => /* @__PURE__ */ e.jsx(Tt, { globalClick: a, autoHide: i, onHide: s, item: d, isIcon: l(n), smallDisplay: r }, c)) });
|
|
1615
1615
|
}
|
|
1616
1616
|
const Rt = 100, dr = (n) => {
|
|
1617
|
-
const r = U(null), [s, a] = N({ left: "0px", top: "0px" }),
|
|
1617
|
+
const r = U(null), [s, a] = N({ left: "0px", top: "0px" }), i = () => {
|
|
1618
1618
|
n.onHide && n.onHide();
|
|
1619
1619
|
};
|
|
1620
1620
|
return F(() => {
|
|
@@ -1626,9 +1626,9 @@ const Rt = 100, dr = (n) => {
|
|
|
1626
1626
|
}, [n.x, n.y]), n.visible ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1627
1627
|
/* @__PURE__ */ e.jsx("div", { ref: r, className: "menu-container", style: { ...s, opacity: s.top !== "0px" ? "100%" : "0%", width: n.width, maxWidth: n.width ? "100%" : void 0 }, children: n.blocks.map((l, d) => /* @__PURE__ */ e.jsxs(ve.Fragment, { children: [
|
|
1628
1628
|
d !== 0 ? /* @__PURE__ */ e.jsx(W, {}) : null,
|
|
1629
|
-
/* @__PURE__ */ e.jsx(vn, { block: l, smallDisplay: !1, globalClick: n.onClick, autoHide: n.autoHide, onHide:
|
|
1629
|
+
/* @__PURE__ */ e.jsx(vn, { block: l, smallDisplay: !1, globalClick: n.onClick, autoHide: n.autoHide, onHide: i })
|
|
1630
1630
|
] }, d)) }),
|
|
1631
|
-
/* @__PURE__ */ e.jsx("div", { style: { zIndex: 1600 }, className: "backplate", onClick:
|
|
1631
|
+
/* @__PURE__ */ e.jsx("div", { style: { zIndex: 1600 }, className: "backplate", onClick: i, onContextMenu: (l) => {
|
|
1632
1632
|
l.preventDefault();
|
|
1633
1633
|
} })
|
|
1634
1634
|
] }) : null;
|
|
@@ -1645,10 +1645,10 @@ function _t(n) {
|
|
|
1645
1645
|
if (n.length > 0)
|
|
1646
1646
|
for (let s of n)
|
|
1647
1647
|
for (let a in s) {
|
|
1648
|
-
let
|
|
1648
|
+
let i = !1;
|
|
1649
1649
|
for (let l of r)
|
|
1650
|
-
l.field === a && (
|
|
1651
|
-
|
|
1650
|
+
l.field === a && (i = !0);
|
|
1651
|
+
i || r.push({
|
|
1652
1652
|
title: a,
|
|
1653
1653
|
field: a
|
|
1654
1654
|
});
|
|
@@ -1656,40 +1656,40 @@ function _t(n) {
|
|
|
1656
1656
|
return r;
|
|
1657
1657
|
}
|
|
1658
1658
|
const $t = ({ data: n, column: r, color: s, backgroundColor: a }) => {
|
|
1659
|
-
function c
|
|
1659
|
+
function i(c, o) {
|
|
1660
1660
|
for (let h in o)
|
|
1661
|
-
if (
|
|
1661
|
+
if (c === h)
|
|
1662
1662
|
return o[h];
|
|
1663
1663
|
}
|
|
1664
|
-
function l(
|
|
1665
|
-
return typeof
|
|
1664
|
+
function l(c) {
|
|
1665
|
+
return typeof c == "number" || typeof c == "string" ? { content: c } : c;
|
|
1666
1666
|
}
|
|
1667
|
-
function d(
|
|
1668
|
-
return
|
|
1667
|
+
function d(c) {
|
|
1668
|
+
return c ? Array.isArray(c) ? c.map((o) => l(o)) : [l(c)] : [];
|
|
1669
1669
|
}
|
|
1670
|
-
return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor: a }, children: d(
|
|
1671
|
-
}, St = ({ actions: n, item: r, columns: s, onContextMenu: a, onDelete:
|
|
1670
|
+
return /* @__PURE__ */ e.jsx("td", { style: { backgroundColor: a }, children: d(i(r.field, n)).map((c, o) => /* @__PURE__ */ e.jsx("p", { style: { color: c.color ?? s }, className: c.onClick ? "no-click" : "", onClick: c.onClick, children: typeof c.content == "string" || typeof c.content == "number" ? c.content : /* @__PURE__ */ e.jsx(c.content, {}) }, o)) });
|
|
1671
|
+
}, St = ({ actions: n, item: r, columns: s, onContextMenu: a, onDelete: i, onEdit: l, onClickRow: d, index: c }) => {
|
|
1672
1672
|
const o = (u) => !u.target.closest(".no-click"), h = (u) => {
|
|
1673
|
-
o(u) && d && d(r,
|
|
1673
|
+
o(u) && d && d(r, c);
|
|
1674
1674
|
};
|
|
1675
1675
|
return /* @__PURE__ */ e.jsxs("tr", { className: "table-row", onClick: h, children: [
|
|
1676
1676
|
s.map((u, f) => /* @__PURE__ */ e.jsx($t, { color: u.color, backgroundColor: u.backgroundColor, column: u, data: r }, f)),
|
|
1677
|
-
n ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((u, f) => /* @__PURE__ */ e.jsx(ie, { transparent: !0, icon: u.icon, onClick: (v) => u.onClick(v, r,
|
|
1678
|
-
a ||
|
|
1679
|
-
l ? /* @__PURE__ */ e.jsx(ie, { transparent: !0, icon: /* @__PURE__ */ e.jsx(ct, {}), onClick: () => l(r,
|
|
1680
|
-
|
|
1681
|
-
a ? /* @__PURE__ */ e.jsx(ie, { transparent: !0, icon: /* @__PURE__ */ e.jsx(at, {}), onClick: (u) => a(u, r,
|
|
1677
|
+
n ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((u, f) => /* @__PURE__ */ e.jsx(ie, { transparent: !0, icon: u.icon, onClick: (v) => u.onClick(v, r, c) }, f)) }) }) : null,
|
|
1678
|
+
a || i || l ? /* @__PURE__ */ e.jsx("td", { className: "w-[180px] table-edit-button no-click", children: /* @__PURE__ */ e.jsxs("div", { className: "table-edit-button", children: [
|
|
1679
|
+
l ? /* @__PURE__ */ e.jsx(ie, { transparent: !0, icon: /* @__PURE__ */ e.jsx(ct, {}), onClick: () => l(r, c) }) : null,
|
|
1680
|
+
i ? /* @__PURE__ */ e.jsx(ie, { transparent: !0, icon: /* @__PURE__ */ e.jsx(ot, { className: "text-red-500" }), onClick: () => i(r, c) }) : null,
|
|
1681
|
+
a ? /* @__PURE__ */ e.jsx(ie, { transparent: !0, icon: /* @__PURE__ */ e.jsx(at, {}), onClick: (u) => a(u, r, c) }) : null
|
|
1682
1682
|
] }) }) : null
|
|
1683
1683
|
] });
|
|
1684
|
-
}, xr = ({ data: n, columns: r, onDelete: s, onContextMenu: a, onEdit:
|
|
1684
|
+
}, xr = ({ data: n, columns: r, onDelete: s, onContextMenu: a, onEdit: i, actions: l, onClickRow: d, adaptive: c }) => {
|
|
1685
1685
|
const [o] = N(r ?? _t(n));
|
|
1686
|
-
return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${d ? "clicked" : ""} ${
|
|
1686
|
+
return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${d ? "clicked" : ""} ${c ? "auto-rotate" : ""}`, children: /* @__PURE__ */ e.jsxs("table", { children: [
|
|
1687
1687
|
/* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
1688
1688
|
o.map((h, u) => /* @__PURE__ */ e.jsx("th", { className: "min-width", children: h.title }, u)),
|
|
1689
1689
|
l ? /* @__PURE__ */ e.jsx("th", { className: "table-actions-header", children: "actions" }) : null,
|
|
1690
|
-
s || a ||
|
|
1690
|
+
s || a || i ? /* @__PURE__ */ e.jsx("th", { className: "table-actions-header" }) : null
|
|
1691
1691
|
] }) }),
|
|
1692
|
-
/* @__PURE__ */ e.jsx("tbody", { children: n.map((h, u) => /* @__PURE__ */ e.jsx(St, { onClickRow: d, actions: l, index: u, columns: o, item: h, onDelete: s, onContextMenu: a, onEdit:
|
|
1692
|
+
/* @__PURE__ */ e.jsx("tbody", { children: n.map((h, u) => /* @__PURE__ */ e.jsx(St, { onClickRow: d, actions: l, index: u, columns: o, item: h, onDelete: s, onContextMenu: a, onEdit: i }, u)) })
|
|
1693
1693
|
] }) });
|
|
1694
1694
|
};
|
|
1695
1695
|
const Ot = ({ icon: n, title: r, to: s }) => /* @__PURE__ */ e.jsxs(Oe, { to: s, className: "navigation-item", children: [
|
|
@@ -1705,7 +1705,7 @@ const ln = ({ onClick: n, icon: r, title: s, to: a }) => /* @__PURE__ */ e.jsxs(
|
|
|
1705
1705
|
] }), fe = ({ onClick: n, icon: r, title: s, active: a = !1 }) => /* @__PURE__ */ e.jsxs("div", { onClick: n, className: `navigation-item ${a ? "active" : ""}`, children: [
|
|
1706
1706
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-icon", children: r }),
|
|
1707
1707
|
/* @__PURE__ */ e.jsx("div", { className: "navigation-item-text", children: s })
|
|
1708
|
-
] }), fr = ({ visible: n, firstBtn: r, mainBtn: s, onHide: a, otherBtn:
|
|
1708
|
+
] }), fr = ({ visible: n, firstBtn: r, mainBtn: s, onHide: a, otherBtn: i, backBtn: l, openAlways: d }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1709
1709
|
/* @__PURE__ */ e.jsxs("div", { className: `navigation-drawer-container ${n || d ? "show" : "hide"}`, children: [
|
|
1710
1710
|
r ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1711
1711
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-block", children: [
|
|
@@ -1716,12 +1716,12 @@ const ln = ({ onClick: n, icon: r, title: s, to: a }) => /* @__PURE__ */ e.jsxs(
|
|
|
1716
1716
|
] }) : null,
|
|
1717
1717
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-block", children: [
|
|
1718
1718
|
/* @__PURE__ */ e.jsx("div", { className: "block-header" }),
|
|
1719
|
-
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: s && s.map((
|
|
1719
|
+
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: s && s.map((c, o) => c.type === "button" ? /* @__PURE__ */ e.jsx(fe, { active: c.active, onClick: c.onClick, title: c.text, icon: c.icon }, o) : c.type === "link" ? /* @__PURE__ */ e.jsx(ln, { onClick: () => a(), title: c.text, icon: c.icon, to: c.to }, o) : null) })
|
|
1720
1720
|
] }),
|
|
1721
1721
|
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(W, {}) }),
|
|
1722
1722
|
/* @__PURE__ */ e.jsxs("div", { className: "navigation-block", children: [
|
|
1723
1723
|
/* @__PURE__ */ e.jsx("div", { className: "block-header" }),
|
|
1724
|
-
/* @__PURE__ */ e.jsx("div", { className: "block-content", children:
|
|
1724
|
+
/* @__PURE__ */ e.jsx("div", { className: "block-content", children: i && i.map((c, o) => c.type === "button" ? /* @__PURE__ */ e.jsx(fe, { active: c.active, onClick: c.onClick, title: c.text, icon: c.icon }, o) : c.type === "link" ? /* @__PURE__ */ e.jsx(ln, { onClick: () => a(), title: c.text, icon: c.icon, to: c.to }, o) : null) })
|
|
1725
1725
|
] }),
|
|
1726
1726
|
/* @__PURE__ */ e.jsx("div", { className: "divider-container", children: /* @__PURE__ */ e.jsx(W, {}) }),
|
|
1727
1727
|
l ? /* @__PURE__ */ e.jsx("div", { className: "navigation-block", children: /* @__PURE__ */ e.jsx(fe, { active: l.active, onClick: l.onClick, title: l.text, icon: l.icon }) }) : null
|
|
@@ -1738,16 +1738,16 @@ const Mt = ({ icon: n, title: r, to: s }) => /* @__PURE__ */ e.jsxs(Oe, { to: s,
|
|
|
1738
1738
|
n ? /* @__PURE__ */ e.jsx(me, { icon: /* @__PURE__ */ e.jsx(xn, {}), onClick: n }) : null,
|
|
1739
1739
|
r ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1740
1740
|
/* @__PURE__ */ e.jsx(W, {}),
|
|
1741
|
-
/* @__PURE__ */ e.jsx(me, { active: r.active, title: r.text, icon: r.icon ?? /* @__PURE__ */ e.jsx(Se, {}), onClick: (
|
|
1742
|
-
r.onClick && r.onClick(
|
|
1741
|
+
/* @__PURE__ */ e.jsx(me, { active: r.active, title: r.text, icon: r.icon ?? /* @__PURE__ */ e.jsx(Se, {}), onClick: (i) => {
|
|
1742
|
+
r.onClick && r.onClick(i);
|
|
1743
1743
|
} }),
|
|
1744
1744
|
/* @__PURE__ */ e.jsx(W, {})
|
|
1745
1745
|
] }) : null,
|
|
1746
|
-
s && s.map((
|
|
1746
|
+
s && s.map((i, l) => i.type === "button" ? /* @__PURE__ */ e.jsx(me, { active: i.active, onClick: i.onClick, title: i.text, icon: i.icon }, l) : i.type === "link" ? /* @__PURE__ */ e.jsx(Mt, { title: i.text, icon: i.icon, to: i.to }, l) : null),
|
|
1747
1747
|
a ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1748
1748
|
/* @__PURE__ */ e.jsx(W, {}),
|
|
1749
|
-
/* @__PURE__ */ e.jsx(me, { active: a.active, title: a.text, icon: a.icon ?? /* @__PURE__ */ e.jsx(Se, {}), onClick: (
|
|
1750
|
-
a.onClick && a.onClick(
|
|
1749
|
+
/* @__PURE__ */ e.jsx(me, { active: a.active, title: a.text, icon: a.icon ?? /* @__PURE__ */ e.jsx(Se, {}), onClick: (i) => {
|
|
1750
|
+
a.onClick && a.onClick(i);
|
|
1751
1751
|
} }),
|
|
1752
1752
|
/* @__PURE__ */ e.jsx(W, {})
|
|
1753
1753
|
] }) : null
|
|
@@ -1766,7 +1766,7 @@ const Pt = (n) => {
|
|
|
1766
1766
|
const r = Ft(n);
|
|
1767
1767
|
return r ? `linear-gradient(135deg, rgba(${r.r}, ${r.g}, ${r.b}, 0.1), rgba(${r.r}, ${r.g}, ${r.b}, 0))` : "linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0))";
|
|
1768
1768
|
};
|
|
1769
|
-
const vr = ({ className: n, text: r, title: s, hexColor: a, hexBackground:
|
|
1769
|
+
const vr = ({ className: n, text: r, 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: Pt(i), color: a, ...l }, children: [
|
|
1770
1770
|
/* @__PURE__ */ e.jsx("h2", { children: s }),
|
|
1771
1771
|
r ? /* @__PURE__ */ e.jsx("p", { children: r }) : null,
|
|
1772
1772
|
d ? /* @__PURE__ */ e.jsx(dn, { styleType: d.styleType ?? "filled", style: d.style, className: d.className, onClick: d.onClick, children: d.text }) : null
|