alex-evo-sh-ui-kit 1.1.95 → 1.1.96
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 +865 -860
- package/dist/alex-evo-sh-ui-kit.umd.js +40 -37
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/ui/input/props.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ne, { useEffect as
|
|
2
|
-
import
|
|
1
|
+
import ne, { useEffect as T, useState as g, useRef as Z, useCallback as b, createContext as Pe, useContext as Ce, useMemo as oe, forwardRef as ve, useLayoutEffect as dt, useId as Be, memo as ut, useImperativeHandle as ht } from "react";
|
|
2
|
+
import xt from "react-dom";
|
|
3
3
|
import { NavLink as Qe } from "react-router-dom";
|
|
4
4
|
import './index.css';var Je = { exports: {} }, Se = {};
|
|
5
5
|
/**
|
|
@@ -12,7 +12,7 @@ import './index.css';var Je = { exports: {} }, Se = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var an;
|
|
15
|
-
function
|
|
15
|
+
function mt() {
|
|
16
16
|
if (an) return Se;
|
|
17
17
|
an = 1;
|
|
18
18
|
var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
@@ -54,15 +54,15 @@ function ft() {
|
|
|
54
54
|
switch (C) {
|
|
55
55
|
case p:
|
|
56
56
|
return "Fragment";
|
|
57
|
-
case
|
|
57
|
+
case k:
|
|
58
58
|
return "Profiler";
|
|
59
59
|
case _:
|
|
60
60
|
return "StrictMode";
|
|
61
|
-
case
|
|
61
|
+
case V:
|
|
62
62
|
return "Suspense";
|
|
63
|
-
case
|
|
63
|
+
case W:
|
|
64
64
|
return "SuspenseList";
|
|
65
|
-
case
|
|
65
|
+
case P:
|
|
66
66
|
return "Activity";
|
|
67
67
|
}
|
|
68
68
|
if (typeof C == "object")
|
|
@@ -76,14 +76,14 @@ function ft() {
|
|
|
76
76
|
case y:
|
|
77
77
|
return (C._context.displayName || "Context") + ".Consumer";
|
|
78
78
|
case M:
|
|
79
|
-
var
|
|
80
|
-
return C = C.displayName, C || (C =
|
|
81
|
-
case
|
|
82
|
-
return
|
|
79
|
+
var L = C.render;
|
|
80
|
+
return C = C.displayName, C || (C = L.displayName || L.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
|
|
81
|
+
case z:
|
|
82
|
+
return L = C.displayName || null, L !== null ? L : n(C.type) || "Memo";
|
|
83
83
|
case w:
|
|
84
|
-
|
|
84
|
+
L = C._payload, C = C._init;
|
|
85
85
|
try {
|
|
86
|
-
return n(C(
|
|
86
|
+
return n(C(L));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -95,17 +95,17 @@ function ft() {
|
|
|
95
95
|
function r(C) {
|
|
96
96
|
try {
|
|
97
97
|
t(C);
|
|
98
|
-
var
|
|
98
|
+
var L = !1;
|
|
99
99
|
} catch {
|
|
100
|
-
|
|
100
|
+
L = !0;
|
|
101
101
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
var H =
|
|
102
|
+
if (L) {
|
|
103
|
+
L = console;
|
|
104
|
+
var H = L.error, q = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
105
105
|
return H.call(
|
|
106
|
-
|
|
106
|
+
L,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
|
-
|
|
108
|
+
q
|
|
109
109
|
), t(C);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -114,14 +114,14 @@ function ft() {
|
|
|
114
114
|
if (typeof C == "object" && C !== null && C.$$typeof === w)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var L = n(C);
|
|
118
|
+
return L ? "<" + L + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
function i() {
|
|
124
|
-
var C =
|
|
124
|
+
var C = R.A;
|
|
125
125
|
return C === null ? null : C.getOwner();
|
|
126
126
|
}
|
|
127
127
|
function l() {
|
|
@@ -129,16 +129,16 @@ function ft() {
|
|
|
129
129
|
}
|
|
130
130
|
function o(C) {
|
|
131
131
|
if (N.call(C, "key")) {
|
|
132
|
-
var
|
|
133
|
-
if (
|
|
132
|
+
var L = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
133
|
+
if (L && L.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return C.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function c(C,
|
|
137
|
+
function c(C, L) {
|
|
138
138
|
function H() {
|
|
139
|
-
|
|
139
|
+
E || (E = !0, console.error(
|
|
140
140
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
141
|
-
|
|
141
|
+
L
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
144
|
H.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
@@ -148,18 +148,18 @@ function ft() {
|
|
|
148
148
|
}
|
|
149
149
|
function a() {
|
|
150
150
|
var C = n(this.type);
|
|
151
|
-
return
|
|
151
|
+
return O[C] || (O[C] = !0, console.error(
|
|
152
152
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
153
|
)), C = this.props.ref, C !== void 0 ? C : null;
|
|
154
154
|
}
|
|
155
|
-
function d(C,
|
|
155
|
+
function d(C, L, H, q, J, te) {
|
|
156
156
|
var Q = H.ref;
|
|
157
157
|
return C = {
|
|
158
158
|
$$typeof: j,
|
|
159
159
|
type: C,
|
|
160
|
-
key:
|
|
160
|
+
key: L,
|
|
161
161
|
props: H,
|
|
162
|
-
_owner:
|
|
162
|
+
_owner: q
|
|
163
163
|
}, (Q !== void 0 ? Q : null) !== null ? Object.defineProperty(C, "ref", {
|
|
164
164
|
enumerable: !1,
|
|
165
165
|
get: a
|
|
@@ -185,42 +185,42 @@ function ft() {
|
|
|
185
185
|
value: te
|
|
186
186
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
187
187
|
}
|
|
188
|
-
function u(C,
|
|
189
|
-
var Q =
|
|
188
|
+
function u(C, L, H, q, J, te) {
|
|
189
|
+
var Q = L.children;
|
|
190
190
|
if (Q !== void 0)
|
|
191
|
-
if (
|
|
191
|
+
if (q)
|
|
192
192
|
if (I(Q)) {
|
|
193
|
-
for (
|
|
194
|
-
|
|
193
|
+
for (q = 0; q < Q.length; q++)
|
|
194
|
+
m(Q[q]);
|
|
195
195
|
Object.freeze && Object.freeze(Q);
|
|
196
196
|
} else
|
|
197
197
|
console.error(
|
|
198
198
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
199
199
|
);
|
|
200
|
-
else
|
|
201
|
-
if (N.call(
|
|
200
|
+
else m(Q);
|
|
201
|
+
if (N.call(L, "key")) {
|
|
202
202
|
Q = n(C);
|
|
203
|
-
var ie = Object.keys(
|
|
204
|
-
return
|
|
203
|
+
var ie = Object.keys(L).filter(function(G) {
|
|
204
|
+
return G !== "key";
|
|
205
205
|
});
|
|
206
|
-
|
|
206
|
+
q = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", Y[Q + q] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
207
207
|
`A props object containing a "key" prop is being spread into JSX:
|
|
208
208
|
let props = %s;
|
|
209
209
|
<%s {...props} />
|
|
210
210
|
React keys must be passed directly to JSX without using spread:
|
|
211
211
|
let props = %s;
|
|
212
212
|
<%s key={someKey} {...props} />`,
|
|
213
|
-
|
|
213
|
+
q,
|
|
214
214
|
Q,
|
|
215
215
|
ie,
|
|
216
216
|
Q
|
|
217
|
-
),
|
|
217
|
+
), Y[Q + q] = !0);
|
|
218
218
|
}
|
|
219
|
-
if (Q = null, H !== void 0 && (r(H), Q = "" + H), o(
|
|
219
|
+
if (Q = null, H !== void 0 && (r(H), Q = "" + H), o(L) && (r(L.key), Q = "" + L.key), "key" in L) {
|
|
220
220
|
H = {};
|
|
221
|
-
for (var
|
|
222
|
-
|
|
223
|
-
} else H =
|
|
221
|
+
for (var B in L)
|
|
222
|
+
B !== "key" && (H[B] = L[B]);
|
|
223
|
+
} else H = L;
|
|
224
224
|
return Q && c(
|
|
225
225
|
H,
|
|
226
226
|
typeof C == "function" ? C.displayName || C.name || "Unknown" : C
|
|
@@ -233,48 +233,48 @@ React keys must be passed directly to JSX without using spread:
|
|
|
233
233
|
te
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function m(C) {
|
|
237
237
|
h(C) ? C._store && (C._store.validated = 1) : typeof C == "object" && C !== null && C.$$typeof === w && (C._payload.status === "fulfilled" ? h(C._payload.value) && C._payload.value._store && (C._payload.value._store.validated = 1) : C._store && (C._store.validated = 1));
|
|
238
238
|
}
|
|
239
239
|
function h(C) {
|
|
240
240
|
return typeof C == "object" && C !== null && C.$$typeof === j;
|
|
241
241
|
}
|
|
242
|
-
var
|
|
242
|
+
var x = ne, j = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), v = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), z = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), P = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), R = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, I = Array.isArray, S = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
|
-
|
|
245
|
+
x = {
|
|
246
246
|
react_stack_bottom_frame: function(C) {
|
|
247
247
|
return C();
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
var
|
|
251
|
-
|
|
250
|
+
var E, O = {}, A = x.react_stack_bottom_frame.bind(
|
|
251
|
+
x,
|
|
252
252
|
l
|
|
253
|
-
)(),
|
|
254
|
-
Me.Fragment = p, Me.jsx = function(C,
|
|
255
|
-
var
|
|
253
|
+
)(), K = S(s(l)), Y = {};
|
|
254
|
+
Me.Fragment = p, Me.jsx = function(C, L, H) {
|
|
255
|
+
var q = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return u(
|
|
257
257
|
C,
|
|
258
|
-
|
|
258
|
+
L,
|
|
259
259
|
H,
|
|
260
260
|
!1,
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
q ? Error("react-stack-top-frame") : A,
|
|
262
|
+
q ? S(s(C)) : K
|
|
263
263
|
);
|
|
264
|
-
}, Me.jsxs = function(C,
|
|
265
|
-
var
|
|
264
|
+
}, Me.jsxs = function(C, L, H) {
|
|
265
|
+
var q = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return u(
|
|
267
267
|
C,
|
|
268
|
-
|
|
268
|
+
L,
|
|
269
269
|
H,
|
|
270
270
|
!0,
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
q ? Error("react-stack-top-frame") : A,
|
|
272
|
+
q ? S(s(C)) : K
|
|
273
273
|
);
|
|
274
274
|
};
|
|
275
275
|
}()), Me;
|
|
276
276
|
}
|
|
277
|
-
process.env.NODE_ENV === "production" ? Je.exports =
|
|
277
|
+
process.env.NODE_ENV === "production" ? Je.exports = mt() : Je.exports = ft();
|
|
278
278
|
var e = Je.exports;
|
|
279
279
|
const _n = (n) => /* @__PURE__ */ e.jsx(
|
|
280
280
|
Fe,
|
|
@@ -316,7 +316,7 @@ const _n = (n) => /* @__PURE__ */ e.jsx(
|
|
|
316
316
|
};
|
|
317
317
|
return /* @__PURE__ */ e.jsx("button", { ...t, className: (t.className ?? "") + " btn " + s[n], onClick: r, children: /* @__PURE__ */ e.jsx("span", { children: t.children }) });
|
|
318
318
|
}, ye = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(_n, { ...t }) : n === "text" ? /* @__PURE__ */ e.jsx(ce, { ...t }) : n === "filledTotal" ? /* @__PURE__ */ e.jsx(jt, { ...t }) : n === "filled" ? /* @__PURE__ */ e.jsx(pt, { ...t }) : /* @__PURE__ */ e.jsx(Fe, { ...t }), Cn = (n, t) => {
|
|
319
|
-
|
|
319
|
+
T(() => {
|
|
320
320
|
if (n) {
|
|
321
321
|
const r = window.innerWidth - document.documentElement.clientWidth;
|
|
322
322
|
t.style.overflow = "hidden", t.style.paddingRight = `${r}px`;
|
|
@@ -349,29 +349,29 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
349
349
|
}
|
|
350
350
|
);
|
|
351
351
|
}, vn = ({ bottom: n = 0, ...t }) => {
|
|
352
|
-
const [r, s] = g(!1), [i, l] = g(!0), o =
|
|
352
|
+
const [r, s] = g(!1), [i, l] = g(!0), o = Z(null), c = b(() => {
|
|
353
353
|
s(!0), setTimeout(() => {
|
|
354
354
|
t.onHide(), s(!1), l(!0);
|
|
355
355
|
}, 200);
|
|
356
356
|
}, [t.onHide]);
|
|
357
|
-
|
|
357
|
+
T(() => {
|
|
358
358
|
t.visible && l(!1);
|
|
359
|
-
}, [t.visible]),
|
|
359
|
+
}, [t.visible]), T(() => {
|
|
360
360
|
!t.visible && !i && c();
|
|
361
361
|
}, [t.visible, c, i]);
|
|
362
|
-
const a =
|
|
362
|
+
const a = b((h) => {
|
|
363
363
|
window.innerHeight - h.changedTouches[0].clientY <= 150 && c(), o.current && (o.current.style.height = `${window.innerHeight - h.changedTouches[0].clientY + 20 - n}px`);
|
|
364
364
|
}, [c]), d = (h) => {
|
|
365
365
|
window.innerHeight - h.clientY + 20 <= 150 && c(), o.current && (o.current.style.height = `${window.innerHeight - h.clientY + 20 - n}px`);
|
|
366
366
|
}, u = () => {
|
|
367
367
|
document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
|
|
368
|
-
},
|
|
368
|
+
}, m = () => {
|
|
369
369
|
document.body.addEventListener("mousemove", d), document.body.addEventListener("mouseup", u);
|
|
370
370
|
};
|
|
371
|
-
return
|
|
371
|
+
return T(() => () => {
|
|
372
372
|
document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
|
|
373
373
|
}), i && !r || !t.children ? null : /* @__PURE__ */ e.jsx(We, { onHide: c, children: /* @__PURE__ */ e.jsxs("div", { ref: o, style: { paddingBottom: n }, className: `bottom-sheets ${r ? "bottom-sheets_hide" : "bottom-sheets_show"}`, children: [
|
|
374
|
-
/* @__PURE__ */ e.jsx("div", { role: "presentation", "data-testid": "bottom-sheet-handle", className: "bottom-sheets__handle", onMouseDown:
|
|
374
|
+
/* @__PURE__ */ e.jsx("div", { role: "presentation", "data-testid": "bottom-sheet-handle", className: "bottom-sheets__handle", onMouseDown: m, onTouchMove: a, children: /* @__PURE__ */ e.jsx("span", {}) }),
|
|
375
375
|
/* @__PURE__ */ e.jsx("div", { className: "bottom-sheets__content", children: t.children })
|
|
376
376
|
] }) });
|
|
377
377
|
}, gn = {
|
|
@@ -387,12 +387,12 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
387
387
|
mobileSize: n.mobileSize ?? ge.mobileSize
|
|
388
388
|
};
|
|
389
389
|
t.bigSize <= 100 && (console.error("useScreenSize: invalid option"), t.bigSize = ge.bigSize), t.mobileSize <= 100 && (console.error("useScreenSize: invalid option"), t.mobileSize = ge.mobileSize), t.mobileSize >= t.bigSize && (console.error("useScreenSize: invalid option"), t.mobileSize = ge.mobileSize, t.bigSize = ge.bigSize);
|
|
390
|
-
const [r, s] = g(ee.STANDART), i =
|
|
390
|
+
const [r, s] = g(ee.STANDART), i = b(() => {
|
|
391
391
|
window.innerWidth < t.mobileSize ? s(ee.MOBILE) : window.innerWidth < t.bigSize ? s(ee.STANDART) : s(ee.BIG_SCREEN);
|
|
392
392
|
}, [window.innerWidth]);
|
|
393
|
-
return
|
|
393
|
+
return T(() => {
|
|
394
394
|
i();
|
|
395
|
-
}, [i]),
|
|
395
|
+
}, [i]), T(() => (window.addEventListener("resize", i), () => {
|
|
396
396
|
window.removeEventListener("resize", i);
|
|
397
397
|
}), [i]), { screen: r };
|
|
398
398
|
}, Ct = {
|
|
@@ -410,22 +410,22 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
410
410
|
className: o = "",
|
|
411
411
|
...c
|
|
412
412
|
}) => {
|
|
413
|
-
const a = Ce(we), d = a ? a.screen : t, u = n === "heading" || n === "title" || n === "title-2",
|
|
413
|
+
const a = Ce(we), d = a ? a.screen : t, u = n === "heading" || n === "title" || n === "title-2", m = u ? "h3" : "span", h = {
|
|
414
414
|
fontSize: bn(n, d),
|
|
415
415
|
fontWeight: kn(n, r),
|
|
416
416
|
lineHeight: yn(n, s, d),
|
|
417
417
|
...l
|
|
418
|
-
},
|
|
418
|
+
}, x = u ? "typography-heading" : "typography-text";
|
|
419
419
|
return /* @__PURE__ */ e.jsx(
|
|
420
|
-
|
|
420
|
+
m,
|
|
421
421
|
{
|
|
422
422
|
...c,
|
|
423
423
|
style: h,
|
|
424
|
-
className: `${
|
|
424
|
+
className: `${x} ${o}`,
|
|
425
425
|
children: i
|
|
426
426
|
}
|
|
427
427
|
);
|
|
428
|
-
},
|
|
428
|
+
}, ue = ne.forwardRef(
|
|
429
429
|
({
|
|
430
430
|
icon: n,
|
|
431
431
|
className: t = "",
|
|
@@ -438,16 +438,16 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
438
438
|
style: a,
|
|
439
439
|
rippleDisabled: d = !1,
|
|
440
440
|
shadow: u = 0,
|
|
441
|
-
...
|
|
441
|
+
...m
|
|
442
442
|
}, h) => {
|
|
443
|
-
const
|
|
443
|
+
const x = b(
|
|
444
444
|
(f) => {
|
|
445
445
|
c || (l == null || l(f), !d && j(f));
|
|
446
446
|
},
|
|
447
447
|
[l, c]
|
|
448
448
|
), j = (f) => {
|
|
449
|
-
const p = f.currentTarget, _ = document.createElement("span"),
|
|
450
|
-
_.style.width = _.style.height = `${
|
|
449
|
+
const p = f.currentTarget, _ = document.createElement("span"), k = Math.max(p.clientWidth, p.clientHeight), y = k / 2;
|
|
450
|
+
_.style.width = _.style.height = `${k}px`, _.style.left = `${f.clientX - p.getBoundingClientRect().left - y}px`, _.style.top = `${f.clientY - p.getBoundingClientRect().top - y}px`, _.classList.add("iconbutton-ripple");
|
|
451
451
|
const v = p.getElementsByClassName("iconbutton-ripple")[0];
|
|
452
452
|
v && v.remove(), p.appendChild(_);
|
|
453
453
|
};
|
|
@@ -460,18 +460,18 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
460
460
|
...a
|
|
461
461
|
},
|
|
462
462
|
className: `iconbutton iconbutton--${i} ${t} container_shadow-hover-${u}`,
|
|
463
|
-
onClick:
|
|
463
|
+
onClick: x,
|
|
464
464
|
onContextMenu: o,
|
|
465
465
|
disabled: c,
|
|
466
466
|
"aria-disabled": c,
|
|
467
|
-
...
|
|
467
|
+
...m,
|
|
468
468
|
children: /* @__PURE__ */ e.jsx("div", { className: `iconbutton-container ${r}`, children: n })
|
|
469
469
|
}
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
472
|
);
|
|
473
|
-
|
|
474
|
-
const
|
|
473
|
+
ue.displayName = "IconButton";
|
|
474
|
+
const $ = ne.forwardRef(({ className: n, onClick: t, children: r, dpi: s = "24", size: i, primaryColor: l, secondaryColor: o, tertiaryColor: c, baseColor: a, ...d }, u) => /* @__PURE__ */ e.jsx(
|
|
475
475
|
"svg",
|
|
476
476
|
{
|
|
477
477
|
role: d.role,
|
|
@@ -485,23 +485,23 @@ const R = ne.forwardRef(({ className: n, onClick: t, children: r, dpi: s = "24",
|
|
|
485
485
|
children: r
|
|
486
486
|
}
|
|
487
487
|
));
|
|
488
|
-
function
|
|
488
|
+
function F(n) {
|
|
489
489
|
return {
|
|
490
490
|
primaryColor: n.primaryColor ?? n.baseColor ?? "var(--icon-primary)",
|
|
491
491
|
secondaryColor: n.secondaryColor ?? n.baseColor ?? "var(--icon-secondary)",
|
|
492
492
|
tertiaryColor: n.tertiaryColor ?? n.baseColor ?? "var(--icon-tertiary)"
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
const Nn = (n) => /* @__PURE__ */ e.jsx(
|
|
495
|
+
const Nn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} icon-trash`, children: /* @__PURE__ */ e.jsx("path", { stroke: "var(--Error-color)", fill: "none", d: "M18 6L17.1991 18.0129C17.129 19.065 17.0939 19.5911 16.8667 19.99C16.6666 20.3412 16.3648 20.6235 16.0011 20.7998C15.588 21 15.0607 21 14.0062 21H9.99377C8.93927 21 8.41202 21 7.99889 20.7998C7.63517 20.6235 7.33339 20.3412 7.13332 19.99C6.90607 19.5911 6.871 19.065 6.80086 18.0129L6 6M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), de = (n) => /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ e.jsxs("g", { id: "Close", children: [
|
|
496
496
|
/* @__PURE__ */ e.jsx("rect", { id: "Rectangle", fillRule: "nonzero", x: "0", y: "0", width: "24", height: "24" }),
|
|
497
497
|
/* @__PURE__ */ e.jsx("line", { x1: "16.9999", y1: "7", x2: "7.00001", y2: "16.9999", id: "Path", stroke: "var(--On-surface-color)", strokeWidth: "2", strokeLinecap: "round" }),
|
|
498
498
|
/* @__PURE__ */ e.jsx("line", { x1: "7.00006", y1: "7", x2: "17", y2: "16.9999", id: "Path", stroke: "var(--On-surface-color)", strokeWidth: "2", strokeLinecap: "round" })
|
|
499
499
|
] }) }) }), pe = (n) => {
|
|
500
|
-
const t =
|
|
501
|
-
return /* @__PURE__ */ e.jsx(
|
|
500
|
+
const t = F(n);
|
|
501
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M4 12.6111L8.92308 17.5L20 6.5", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
502
502
|
}, Ie = (n) => {
|
|
503
|
-
const t =
|
|
504
|
-
return /* @__PURE__ */ e.jsxs(
|
|
503
|
+
const t = F(n);
|
|
504
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
505
505
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
506
506
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
507
507
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -511,8 +511,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
511
511
|
] })
|
|
512
512
|
] });
|
|
513
513
|
}, wn = (n) => {
|
|
514
|
-
const t =
|
|
515
|
-
return /* @__PURE__ */ e.jsx(
|
|
514
|
+
const t = F(n);
|
|
515
|
+
return /* @__PURE__ */ e.jsx($, { ...n, dpi: "512", children: /* @__PURE__ */ e.jsxs("g", { style: { width: "100%" }, children: [
|
|
516
516
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: `M133.977,245.743c4.662,1.718,9.756,2.564,15.006,2.315c7.873-0.355,15.159-3.118,21.05-7.512
|
|
517
517
|
c5.9-4.4,10.456-10.425,13.043-17.428c1.73-4.668,2.564-9.759,2.319-15.007c-0.355-7.873-3.119-15.162-7.513-21.05
|
|
518
518
|
c-4.398-5.894-10.432-10.457-17.431-13.052c-4.662-1.718-9.757-2.558-15-2.315c-7.877,0.361-15.162,3.118-21.056,7.513
|
|
@@ -567,8 +567,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
567
567
|
C466.998,391.463,488.499,332.501,486.476,270.708z` })
|
|
568
568
|
] }) });
|
|
569
569
|
}, Sn = (n) => {
|
|
570
|
-
const t =
|
|
571
|
-
return /* @__PURE__ */ e.jsxs(
|
|
570
|
+
const t = F(n);
|
|
571
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
572
572
|
/* @__PURE__ */ e.jsx("path", { stroke: t.primaryColor, fill: "none", d: "M2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12V14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V12Z", strokeWidth: "1.5" }),
|
|
573
573
|
/* @__PURE__ */ e.jsx("path", { fill: "none", d: "M7 4V2.5", stroke: t.primaryColor, strokeWidth: "1.5", strokeLinecap: "round" }),
|
|
574
574
|
/* @__PURE__ */ e.jsx("path", { fill: "none", d: "M17 4V2.5", stroke: t.primaryColor, strokeWidth: "1.5", strokeLinecap: "round" }),
|
|
@@ -580,25 +580,25 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
580
580
|
/* @__PURE__ */ e.jsx("path", { d: "M8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16C7.55228 16 8 16.4477 8 17Z", fill: t.primaryColor }),
|
|
581
581
|
/* @__PURE__ */ e.jsx("path", { d: "M8 13C8 13.5523 7.55228 14 7 14C6.44772 14 6 13.5523 6 13C6 12.4477 6.44772 12 7 12C7.55228 12 8 12.4477 8 13Z", fill: t.primaryColor })
|
|
582
582
|
] });
|
|
583
|
-
}, en = (n) => /* @__PURE__ */ e.jsxs(
|
|
583
|
+
}, en = (n) => /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
584
584
|
/* @__PURE__ */ e.jsx("circle", { stroke: "var(--On-surface-color)", fill: "none", cx: "12", cy: "12", r: "10", strokeWidth: "1.5" }),
|
|
585
585
|
/* @__PURE__ */ e.jsx("path", { stroke: "var(--On-surface-color)", fill: "none", d: "M12 8V12L14.5 14.5", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
586
586
|
] }), He = (n) => {
|
|
587
|
-
const t =
|
|
588
|
-
return /* @__PURE__ */ e.jsx(
|
|
587
|
+
const t = F(n);
|
|
588
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, fillRule: "evenodd", clipRule: "evenodd", d: "M5 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zm14 0a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zM13.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0z" }) });
|
|
589
589
|
}, Mn = (n) => {
|
|
590
|
-
const t =
|
|
591
|
-
return /* @__PURE__ */ e.jsx(
|
|
590
|
+
const t = F(n);
|
|
591
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, fillRule: "evenodd", clipRule: "evenodd", d: "M12 6.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zm0 14a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zM13.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0z" }) });
|
|
592
592
|
}, Ln = (n) => {
|
|
593
|
-
const t =
|
|
594
|
-
return /* @__PURE__ */ e.jsxs(
|
|
593
|
+
const t = F(n);
|
|
594
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, dpi: "52", children: [
|
|
595
595
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M50,12.5H2a2,2,0,0,1,0-4H50a2,2,0,0,1,0,4Z" }),
|
|
596
596
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M50,28H2a2,2,0,0,1,0-4H50a2,2,0,0,1,0,4Z" }),
|
|
597
597
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M50,43.5H2a2,2,0,0,1,0-4H50a2,2,0,0,1,0,4Z" })
|
|
598
598
|
] });
|
|
599
599
|
}, nn = (n) => {
|
|
600
|
-
const t =
|
|
601
|
-
return /* @__PURE__ */ e.jsxs(
|
|
600
|
+
const t = F(n);
|
|
601
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, dpi: "24", children: [
|
|
602
602
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
603
603
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
604
604
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -608,8 +608,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
608
608
|
] })
|
|
609
609
|
] });
|
|
610
610
|
}, vt = (n) => {
|
|
611
|
-
const t =
|
|
612
|
-
return /* @__PURE__ */ e.jsxs(
|
|
611
|
+
const t = F(n);
|
|
612
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, dpi: "24", children: [
|
|
613
613
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
614
614
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
615
615
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -619,8 +619,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
619
619
|
] })
|
|
620
620
|
] });
|
|
621
621
|
}, gt = (n) => {
|
|
622
|
-
const t =
|
|
623
|
-
return /* @__PURE__ */ e.jsxs(
|
|
622
|
+
const t = F(n);
|
|
623
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, dpi: "24", children: [
|
|
624
624
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
625
625
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
626
626
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -629,12 +629,12 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
629
629
|
" "
|
|
630
630
|
] })
|
|
631
631
|
] });
|
|
632
|
-
}, tn = (n) => /* @__PURE__ */ e.jsxs(
|
|
632
|
+
}, tn = (n) => /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
633
633
|
/* @__PURE__ */ e.jsx("path", { fill: "none", stroke: "var(--On-surface-color)", fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 11.1455C5.49956 8.21437 7.56975 5.69108 10.4445 5.11883C13.3193 4.54659 16.198 6.08477 17.32 8.79267C18.4421 11.5006 17.495 14.624 15.058 16.2528C12.621 17.8815 9.37287 17.562 7.3 15.4895C6.14763 14.3376 5.50014 12.775 5.5 11.1455Z", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
634
634
|
/* @__PURE__ */ e.jsx("path", { fill: "none", d: "M15.989 15.4905L19.5 19.0015", stroke: "var(--On-surface-color)", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
635
635
|
] }), bt = (n) => {
|
|
636
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
637
|
-
return /* @__PURE__ */ e.jsxs(
|
|
636
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
637
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
638
638
|
/* @__PURE__ */ e.jsx("g", { stroke: "none", strokeWidth: "0" }),
|
|
639
639
|
/* @__PURE__ */ e.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
640
640
|
/* @__PURE__ */ e.jsxs("g", { children: [
|
|
@@ -705,18 +705,18 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
705
705
|
)
|
|
706
706
|
] })
|
|
707
707
|
] });
|
|
708
|
-
}, rn = (n) => /* @__PURE__ */ e.jsx(
|
|
709
|
-
const t =
|
|
710
|
-
return /* @__PURE__ */ e.jsxs(
|
|
708
|
+
}, rn = (n) => /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("path", { stroke: "var(--On-surface-color)", fill: "none", d: "M8 12H16M12 8V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Ge = (n) => {
|
|
709
|
+
const t = F(n);
|
|
710
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
711
711
|
/* @__PURE__ */ e.jsx("path", { fill: "none", d: "M16 12L12 12L8 12", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round" }),
|
|
712
712
|
/* @__PURE__ */ e.jsx("circle", { fill: "none", cx: "12", cy: "12", r: "10", stroke: t.primaryColor, strokeWidth: "2" })
|
|
713
713
|
] });
|
|
714
714
|
}, $n = (n) => {
|
|
715
|
-
const t =
|
|
716
|
-
return /* @__PURE__ */ e.jsx(
|
|
715
|
+
const t = F(n);
|
|
716
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", stroke: t.primaryColor, d: "M15.4998 5.49994L18.3282 8.32837M3 20.9997L3.04745 20.6675C3.21536 19.4922 3.29932 18.9045 3.49029 18.3558C3.65975 17.8689 3.89124 17.4059 4.17906 16.9783C4.50341 16.4963 4.92319 16.0765 5.76274 15.237L17.4107 3.58896C18.1918 2.80791 19.4581 2.80791 20.2392 3.58896C21.0202 4.37001 21.0202 5.63634 20.2392 6.41739L8.37744 18.2791C7.61579 19.0408 7.23497 19.4216 6.8012 19.7244C6.41618 19.9932 6.00093 20.2159 5.56398 20.3879C5.07171 20.5817 4.54375 20.6882 3.48793 20.9012L3 20.9997Z", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
717
717
|
}, Rn = (n) => {
|
|
718
|
-
const t =
|
|
719
|
-
return /* @__PURE__ */ e.jsxs(
|
|
718
|
+
const t = F(n);
|
|
719
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
720
720
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M7 9C7 9.55229 6.55229 10 6 10C5.44772 10 5 9.55229 5 9C5 8.44772 5.44772 8 6 8C6.55229 8 7 8.44772 7 9Z" }),
|
|
721
721
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M7 12C7 12.5523 6.55229 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55229 11 7 11.4477 7 12Z" }),
|
|
722
722
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M10 12C10 12.5523 9.55229 13 9 13C8.44772 13 8 12.5523 8 12C8 11.4477 8.44772 11 9 11C9.55229 11 10 11.4477 10 12Z" }),
|
|
@@ -730,17 +730,17 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
730
730
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, fillRule: "evenodd", clipRule: "evenodd", d: "M7.94513 4.25H16.0549C17.4225 4.24998 18.5248 4.24996 19.3918 4.36652C20.2919 4.48754 21.0497 4.74643 21.6517 5.34835C22.2536 5.95027 22.5125 6.70814 22.6335 7.60825C22.75 8.47522 22.75 9.57754 22.75 10.9451V13.0549C22.75 14.4225 22.75 15.5248 22.6335 16.3918C22.5125 17.2919 22.2536 18.0497 21.6517 18.6517C21.0497 19.2536 20.2919 19.5125 19.3918 19.6335C18.5248 19.75 17.4225 19.75 16.0549 19.75H7.94513C6.57754 19.75 5.47522 19.75 4.60825 19.6335C3.70814 19.5125 2.95027 19.2536 2.34835 18.6517C1.74643 18.0497 1.48754 17.2919 1.36652 16.3918C1.24996 15.5248 1.24998 14.4225 1.25 13.0549V10.9451C1.24998 9.57754 1.24996 8.47522 1.36652 7.60825C1.48754 6.70814 1.74643 5.95027 2.34835 5.34835C2.95027 4.74643 3.70814 4.48754 4.60825 4.36652C5.47522 4.24996 6.57754 4.24998 7.94513 4.25ZM4.80812 5.85315C4.07435 5.9518 3.68577 6.13225 3.40901 6.40901C3.13225 6.68577 2.9518 7.07435 2.85315 7.80812C2.75159 8.56347 2.75 9.56458 2.75 11V13C2.75 14.4354 2.75159 15.4365 2.85315 16.1919C2.9518 16.9257 3.13225 17.3142 3.40901 17.591C3.68577 17.8678 4.07435 18.0482 4.80812 18.1469C5.56347 18.2484 6.56458 18.25 8 18.25H16C17.4354 18.25 18.4365 18.2484 19.1919 18.1469C19.9257 18.0482 20.3142 17.8678 20.591 17.591C20.8678 17.3142 21.0482 16.9257 21.1469 16.1919C21.2484 15.4365 21.25 14.4354 21.25 13V11C21.25 9.56459 21.2484 8.56347 21.1469 7.80812C21.0482 7.07435 20.8678 6.68577 20.591 6.40901C20.3142 6.13225 19.9257 5.9518 19.1919 5.85315C18.4365 5.75159 17.4354 5.75 16 5.75H8C6.56458 5.75 5.56347 5.75159 4.80812 5.85315ZM6.25 16C6.25 15.5858 6.58579 15.25 7 15.25H17C17.4142 15.25 17.75 15.5858 17.75 16C17.75 16.4142 17.4142 16.75 17 16.75H7C6.58579 16.75 6.25 16.4142 6.25 16Z" })
|
|
731
731
|
] });
|
|
732
732
|
}, En = (n) => {
|
|
733
|
-
const t =
|
|
734
|
-
return /* @__PURE__ */ e.jsx(
|
|
733
|
+
const t = F(n);
|
|
734
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M6 12H18M12 6V18", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
735
735
|
}, Fn = (n) => {
|
|
736
|
-
const t =
|
|
737
|
-
return /* @__PURE__ */ e.jsx(
|
|
736
|
+
const t = F(n);
|
|
737
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("path", { d: "M6 12L18 12", fill: "none", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
738
738
|
}, kt = (n) => {
|
|
739
|
-
const t =
|
|
740
|
-
return /* @__PURE__ */ e.jsx(
|
|
739
|
+
const t = F(n);
|
|
740
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M17 9V12C17 14.7614 14.7614 17 12 17M7 9V12C7 14.7614 9.23858 17 12 17M12 17V21M8 3V6M16 3V6M5 9H19", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
741
741
|
}, yt = (n) => {
|
|
742
|
-
const { primaryColor: t } =
|
|
743
|
-
return /* @__PURE__ */ e.jsxs(
|
|
742
|
+
const { primaryColor: t } = F(n);
|
|
743
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
744
744
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
745
745
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
746
746
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -787,8 +787,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
787
787
|
] })
|
|
788
788
|
] });
|
|
789
789
|
}, Nt = (n) => {
|
|
790
|
-
const { primaryColor: t } =
|
|
791
|
-
return /* @__PURE__ */ e.jsxs(
|
|
790
|
+
const { primaryColor: t } = F(n);
|
|
791
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
792
792
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
793
793
|
/* @__PURE__ */ e.jsx(
|
|
794
794
|
"g",
|
|
@@ -820,8 +820,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
820
820
|
) })
|
|
821
821
|
] });
|
|
822
822
|
}, wt = (n) => {
|
|
823
|
-
const { primaryColor: t } =
|
|
824
|
-
return /* @__PURE__ */ e.jsxs(
|
|
823
|
+
const { primaryColor: t } = F(n);
|
|
824
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
825
825
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
826
826
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
827
827
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -831,8 +831,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
831
831
|
] })
|
|
832
832
|
] });
|
|
833
833
|
}, St = (n) => {
|
|
834
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
835
|
-
return /* @__PURE__ */ e.jsxs(
|
|
834
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
835
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
836
836
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
837
837
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
838
838
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -889,8 +889,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
889
889
|
] })
|
|
890
890
|
] });
|
|
891
891
|
}, Mt = (n) => {
|
|
892
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
893
|
-
return /* @__PURE__ */ e.jsx(
|
|
892
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
893
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
894
894
|
/* @__PURE__ */ e.jsx(
|
|
895
895
|
"path",
|
|
896
896
|
{
|
|
@@ -924,8 +924,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
924
924
|
)
|
|
925
925
|
] }) });
|
|
926
926
|
}, Lt = (n) => {
|
|
927
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
928
|
-
return /* @__PURE__ */ e.jsxs(
|
|
927
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
928
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
929
929
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
930
930
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
931
931
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -976,8 +976,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
976
976
|
] })
|
|
977
977
|
] });
|
|
978
978
|
}, $t = (n) => {
|
|
979
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
980
|
-
return /* @__PURE__ */ e.jsxs(
|
|
979
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
980
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
981
981
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
982
982
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
983
983
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -1040,8 +1040,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1040
1040
|
] })
|
|
1041
1041
|
] });
|
|
1042
1042
|
}, Rt = (n) => {
|
|
1043
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1044
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1043
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
1044
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
1045
1045
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1046
1046
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1047
1047
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -1096,8 +1096,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1096
1096
|
] })
|
|
1097
1097
|
] });
|
|
1098
1098
|
}, Et = (n) => {
|
|
1099
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1100
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1099
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
1100
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
1101
1101
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1102
1102
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1103
1103
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -1166,8 +1166,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1166
1166
|
] })
|
|
1167
1167
|
] });
|
|
1168
1168
|
}, Ft = (n) => {
|
|
1169
|
-
const { primaryColor: t } =
|
|
1170
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1169
|
+
const { primaryColor: t } = F(n);
|
|
1170
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
1171
1171
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1172
1172
|
/* @__PURE__ */ e.jsx(
|
|
1173
1173
|
"g",
|
|
@@ -1213,8 +1213,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1213
1213
|
] })
|
|
1214
1214
|
] });
|
|
1215
1215
|
}, Vt = (n) => {
|
|
1216
|
-
const { primaryColor: t } =
|
|
1217
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1216
|
+
const { primaryColor: t } = F(n);
|
|
1217
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, dpi: "124", children: [
|
|
1218
1218
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1219
1219
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1220
1220
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_iconCarrier", children: /* @__PURE__ */ e.jsx("g", { children: /* @__PURE__ */ e.jsx(
|
|
@@ -1252,8 +1252,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1252
1252
|
) }) })
|
|
1253
1253
|
] });
|
|
1254
1254
|
}, Vn = (n) => {
|
|
1255
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1256
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1255
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
1256
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
1257
1257
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1258
1258
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1259
1259
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_iconCarrier", children: /* @__PURE__ */ e.jsx("g", { id: "style=stroke", children: /* @__PURE__ */ e.jsxs("g", { id: "copy", children: [
|
|
@@ -1290,8 +1290,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1290
1290
|
] }) }) })
|
|
1291
1291
|
] });
|
|
1292
1292
|
}, Tt = (n) => {
|
|
1293
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1294
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1293
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
1294
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
1295
1295
|
/* @__PURE__ */ e.jsx("g", { strokeWidth: "0" }),
|
|
1296
1296
|
/* @__PURE__ */ e.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1297
1297
|
/* @__PURE__ */ e.jsxs("g", { children: [
|
|
@@ -1325,8 +1325,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1325
1325
|
] })
|
|
1326
1326
|
] });
|
|
1327
1327
|
}, Ot = (n) => {
|
|
1328
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1329
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1328
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
1329
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, viewBox: "0 0 512 512", children: [
|
|
1330
1330
|
/* @__PURE__ */ e.jsx(
|
|
1331
1331
|
"path",
|
|
1332
1332
|
{
|
|
@@ -1357,8 +1357,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1357
1357
|
)
|
|
1358
1358
|
] });
|
|
1359
1359
|
}, At = (n) => {
|
|
1360
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1361
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1360
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
1361
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, viewBox: "0 0 24 24", children: [
|
|
1362
1362
|
/* @__PURE__ */ e.jsx(
|
|
1363
1363
|
"path",
|
|
1364
1364
|
{
|
|
@@ -1407,8 +1407,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1407
1407
|
)
|
|
1408
1408
|
] });
|
|
1409
1409
|
}, Dt = (n) => {
|
|
1410
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1411
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1410
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
1411
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, viewBox: "0 0 24 24", children: [
|
|
1412
1412
|
/* @__PURE__ */ e.jsx(
|
|
1413
1413
|
"path",
|
|
1414
1414
|
{
|
|
@@ -1448,8 +1448,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1448
1448
|
)
|
|
1449
1449
|
] });
|
|
1450
1450
|
}, Tn = (n) => {
|
|
1451
|
-
const { primaryColor: t } =
|
|
1452
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1451
|
+
const { primaryColor: t } = F(n);
|
|
1452
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, viewBox: "0 0 24 24", children: [
|
|
1453
1453
|
/* @__PURE__ */ e.jsx(
|
|
1454
1454
|
"path",
|
|
1455
1455
|
{
|
|
@@ -1466,8 +1466,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1466
1466
|
)
|
|
1467
1467
|
] });
|
|
1468
1468
|
}, Ss = Tn, It = (n) => {
|
|
1469
|
-
const { primaryColor: t } =
|
|
1470
|
-
return /* @__PURE__ */ e.jsx(
|
|
1469
|
+
const { primaryColor: t } = F(n);
|
|
1470
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
|
|
1471
1471
|
/* @__PURE__ */ e.jsx(
|
|
1472
1472
|
"path",
|
|
1473
1473
|
{
|
|
@@ -1492,8 +1492,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1492
1492
|
)
|
|
1493
1493
|
] }) });
|
|
1494
1494
|
}, Ht = (n) => {
|
|
1495
|
-
const { primaryColor: t } =
|
|
1496
|
-
return /* @__PURE__ */ e.jsx(
|
|
1495
|
+
const { primaryColor: t } = F(n);
|
|
1496
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
|
|
1497
1497
|
/* @__PURE__ */ e.jsx(
|
|
1498
1498
|
"path",
|
|
1499
1499
|
{
|
|
@@ -1528,8 +1528,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1528
1528
|
)
|
|
1529
1529
|
] }) });
|
|
1530
1530
|
}, zt = (n) => {
|
|
1531
|
-
const { primaryColor: t } =
|
|
1532
|
-
return /* @__PURE__ */ e.jsx(
|
|
1531
|
+
const { primaryColor: t } = F(n);
|
|
1532
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
|
|
1533
1533
|
/* @__PURE__ */ e.jsx(
|
|
1534
1534
|
"path",
|
|
1535
1535
|
{
|
|
@@ -1563,8 +1563,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1563
1563
|
)
|
|
1564
1564
|
] }) });
|
|
1565
1565
|
}, Pt = (n) => {
|
|
1566
|
-
const { primaryColor: t } =
|
|
1567
|
-
return /* @__PURE__ */ e.jsx(
|
|
1566
|
+
const { primaryColor: t } = F(n);
|
|
1567
|
+
return /* @__PURE__ */ e.jsx($, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
|
|
1568
1568
|
/* @__PURE__ */ e.jsx(
|
|
1569
1569
|
"path",
|
|
1570
1570
|
{
|
|
@@ -1611,8 +1611,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1611
1611
|
)
|
|
1612
1612
|
] }) });
|
|
1613
1613
|
}, Bt = (n) => {
|
|
1614
|
-
const { primaryColor: t } =
|
|
1615
|
-
return /* @__PURE__ */ e.jsx(
|
|
1614
|
+
const { primaryColor: t } = F(n);
|
|
1615
|
+
return /* @__PURE__ */ e.jsx($, { ...n, viewBox: "0 0 512 512", fill: "none", children: /* @__PURE__ */ e.jsxs("g", { fill: t, children: [
|
|
1616
1616
|
/* @__PURE__ */ e.jsx("rect", { y: "233.666", width: "68.805", height: "32" }),
|
|
1617
1617
|
/* @__PURE__ */ e.jsx("path", { d: `M378.438,6.556c0,0,2.328,10.203,6.258,26.297h-257.39c3.93-16.094,6.258-26.297,6.258-26.297H0v213.992
|
|
1618
1618
|
h68.805c16.633-31.969,36.039-100.102,49.242-150.953H242v333.039H117.617L64.758,278.915H0v217.883c0,0,24.282,19.453,68.805,0
|
|
@@ -1634,8 +1634,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1634
1634
|
)
|
|
1635
1635
|
] }) });
|
|
1636
1636
|
}, On = (n) => {
|
|
1637
|
-
const { primaryColor: t } =
|
|
1638
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1637
|
+
const { primaryColor: t } = F(n);
|
|
1638
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, viewBox: "0 0 24 24", fill: "none", children: [
|
|
1639
1639
|
/* @__PURE__ */ e.jsx(
|
|
1640
1640
|
"path",
|
|
1641
1641
|
{
|
|
@@ -1661,8 +1661,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1661
1661
|
)
|
|
1662
1662
|
] });
|
|
1663
1663
|
}, Wt = (n) => {
|
|
1664
|
-
const { primaryColor: t } =
|
|
1665
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1664
|
+
const { primaryColor: t } = F(n);
|
|
1665
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, dpi: "24", children: [
|
|
1666
1666
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1667
1667
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1668
1668
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_iconCarrier", children: /* @__PURE__ */ e.jsx(
|
|
@@ -1676,8 +1676,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1676
1676
|
) })
|
|
1677
1677
|
] });
|
|
1678
1678
|
}, Gt = (n) => {
|
|
1679
|
-
const t =
|
|
1680
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1679
|
+
const t = F(n);
|
|
1680
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, dpi: "72", viewBox: "0 -8 72 72", children: [
|
|
1681
1681
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1682
1682
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1683
1683
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -1705,8 +1705,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1705
1705
|
] })
|
|
1706
1706
|
] });
|
|
1707
1707
|
}, Zt = (n) => {
|
|
1708
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1709
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1708
|
+
const { primaryColor: t, secondaryColor: r } = F(n);
|
|
1709
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, children: [
|
|
1710
1710
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1711
1711
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1712
1712
|
/* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
@@ -1753,8 +1753,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1753
1753
|
] })
|
|
1754
1754
|
] });
|
|
1755
1755
|
}, Yt = (n) => {
|
|
1756
|
-
const { primaryColor: t } =
|
|
1757
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1756
|
+
const { primaryColor: t } = F(n);
|
|
1757
|
+
return /* @__PURE__ */ e.jsxs($, { ...n, dpi: "30", children: [
|
|
1758
1758
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1759
1759
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1760
1760
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_iconCarrier", children: /* @__PURE__ */ e.jsx("g", { transform: "translate(-4,-8) scale(1.4)", children: /* @__PURE__ */ e.jsx(
|
|
@@ -1791,11 +1791,11 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1791
1791
|
marginBottom: a,
|
|
1792
1792
|
maxWidth: d = "560px",
|
|
1793
1793
|
showCloseButton: u = !1,
|
|
1794
|
-
ariaLabel:
|
|
1794
|
+
ariaLabel: m
|
|
1795
1795
|
}) => {
|
|
1796
1796
|
const h = () => {
|
|
1797
1797
|
i && i();
|
|
1798
|
-
},
|
|
1798
|
+
}, x = {
|
|
1799
1799
|
...l,
|
|
1800
1800
|
marginBottom: a,
|
|
1801
1801
|
maxWidth: typeof d == "number" ? `${d}px` : d
|
|
@@ -1808,21 +1808,21 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1808
1808
|
children: /* @__PURE__ */ e.jsxs(
|
|
1809
1809
|
"div",
|
|
1810
1810
|
{
|
|
1811
|
-
style:
|
|
1811
|
+
style: x,
|
|
1812
1812
|
className: `${o ? "" : "dialog-template__container dialog-template_base dialog-template_color_surface-container"} dialog-template ${n}`,
|
|
1813
1813
|
role: "dialog",
|
|
1814
1814
|
"aria-modal": "true",
|
|
1815
|
-
"aria-label":
|
|
1815
|
+
"aria-label": m || r,
|
|
1816
1816
|
children: [
|
|
1817
1817
|
r && /* @__PURE__ */ e.jsxs("div", { className: "dialog-template__container__header dialog-template__container__header_color_surface-container", children: [
|
|
1818
1818
|
/* @__PURE__ */ e.jsx(U, { type: "heading", children: r }),
|
|
1819
1819
|
u && /* @__PURE__ */ e.jsx(
|
|
1820
|
-
|
|
1820
|
+
ue,
|
|
1821
1821
|
{
|
|
1822
1822
|
className: "dialog-template__container__header__button dialog-template__container__header__button_color_surface-container",
|
|
1823
1823
|
onClick: h,
|
|
1824
1824
|
"aria-label": "Close dialog",
|
|
1825
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1825
|
+
icon: /* @__PURE__ */ e.jsx(de, {})
|
|
1826
1826
|
}
|
|
1827
1827
|
)
|
|
1828
1828
|
] }),
|
|
@@ -1898,13 +1898,13 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1898
1898
|
children: a,
|
|
1899
1899
|
disableDefaultButtons: d = !1,
|
|
1900
1900
|
customActions: u,
|
|
1901
|
-
btns:
|
|
1901
|
+
btns: m
|
|
1902
1902
|
}) => {
|
|
1903
|
-
const h =
|
|
1903
|
+
const h = b(() => {
|
|
1904
1904
|
l == null || l(), c == null || c();
|
|
1905
|
-
}, [l, c]),
|
|
1905
|
+
}, [l, c]), x = b(() => {
|
|
1906
1906
|
o == null || o(), c == null || c();
|
|
1907
|
-
}, [o, c]), j =
|
|
1907
|
+
}, [o, c]), j = b(() => u || (d ? null : m ? /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: m }) : /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: [
|
|
1908
1908
|
{
|
|
1909
1909
|
text: i,
|
|
1910
1910
|
hide: !0,
|
|
@@ -1914,13 +1914,13 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1914
1914
|
text: s ?? "OK",
|
|
1915
1915
|
success: !0
|
|
1916
1916
|
}
|
|
1917
|
-
] })), [u, d,
|
|
1917
|
+
] })), [u, d, x, h, s, i]);
|
|
1918
1918
|
return /* @__PURE__ */ e.jsxs(
|
|
1919
1919
|
Ee,
|
|
1920
1920
|
{
|
|
1921
1921
|
style: n,
|
|
1922
1922
|
header: r,
|
|
1923
|
-
onHide:
|
|
1923
|
+
onHide: x,
|
|
1924
1924
|
action: j(),
|
|
1925
1925
|
children: [
|
|
1926
1926
|
t && /* @__PURE__ */ e.jsx(U, { type: "body", children: t }),
|
|
@@ -1928,7 +1928,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1928
1928
|
]
|
|
1929
1929
|
}
|
|
1930
1930
|
);
|
|
1931
|
-
}, _e = ({ children: n, container: t = document.body }) => t ?
|
|
1931
|
+
}, _e = ({ children: n, container: t = document.body }) => t ? xt.createPortal(
|
|
1932
1932
|
n,
|
|
1933
1933
|
t
|
|
1934
1934
|
) : /* @__PURE__ */ e.jsx("p", { children: "container not found" }), Xt = ({ container: n, text: t, header: r, onClick: s, styleType: i, ...l }) => {
|
|
@@ -1946,36 +1946,36 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1946
1946
|
disabled: l,
|
|
1947
1947
|
...o
|
|
1948
1948
|
}) => {
|
|
1949
|
-
const [c, a] = g(!1), d =
|
|
1949
|
+
const [c, a] = g(!1), d = b(async (h) => {
|
|
1950
1950
|
if (!l) {
|
|
1951
1951
|
try {
|
|
1952
1952
|
await navigator.clipboard.writeText(n), a(!0), setTimeout(() => a(!1), r);
|
|
1953
|
-
} catch (
|
|
1954
|
-
console.error("Не удалось скопировать текст",
|
|
1953
|
+
} catch (x) {
|
|
1954
|
+
console.error("Не удалось скопировать текст", x);
|
|
1955
1955
|
}
|
|
1956
1956
|
i == null || i(h);
|
|
1957
1957
|
}
|
|
1958
|
-
}, [n, l, r, i]), u = c ? /* @__PURE__ */ e.jsx(pe, { "aria-hidden": "true" }) : /* @__PURE__ */ e.jsx(Vn, { "aria-hidden": "true" }),
|
|
1958
|
+
}, [n, l, r, i]), u = c ? /* @__PURE__ */ e.jsx(pe, { "aria-hidden": "true" }) : /* @__PURE__ */ e.jsx(Vn, { "aria-hidden": "true" }), m = c ? "Скопировано!" : "Копировать";
|
|
1959
1959
|
return t ? /* @__PURE__ */ e.jsxs("div", { className: "copy-button", children: [
|
|
1960
1960
|
/* @__PURE__ */ e.jsx(
|
|
1961
|
-
|
|
1961
|
+
ue,
|
|
1962
1962
|
{
|
|
1963
1963
|
icon: u,
|
|
1964
1964
|
onClick: d,
|
|
1965
1965
|
disabled: l,
|
|
1966
|
-
"aria-label": `${
|
|
1966
|
+
"aria-label": `${m} ${n}`,
|
|
1967
1967
|
className: s,
|
|
1968
1968
|
...o
|
|
1969
1969
|
}
|
|
1970
1970
|
),
|
|
1971
|
-
/* @__PURE__ */ e.jsx(U, { type: "body", "aria-live": "polite", children:
|
|
1971
|
+
/* @__PURE__ */ e.jsx(U, { type: "body", "aria-live": "polite", children: m })
|
|
1972
1972
|
] }) : /* @__PURE__ */ e.jsx(
|
|
1973
|
-
|
|
1973
|
+
ue,
|
|
1974
1974
|
{
|
|
1975
1975
|
icon: u,
|
|
1976
1976
|
onClick: d,
|
|
1977
1977
|
disabled: l,
|
|
1978
|
-
"aria-label": `${
|
|
1978
|
+
"aria-label": `${m} ${n}`,
|
|
1979
1979
|
className: s,
|
|
1980
1980
|
...o
|
|
1981
1981
|
}
|
|
@@ -1986,7 +1986,7 @@ const Kt = ({ valueDisplayDuration: n = 2e3 }) => {
|
|
|
1986
1986
|
const [t, r] = g(
|
|
1987
1987
|
2
|
|
1988
1988
|
/* CLOSE */
|
|
1989
|
-
), s =
|
|
1989
|
+
), s = Z(null), i = Z(null), l = () => {
|
|
1990
1990
|
r(
|
|
1991
1991
|
1
|
|
1992
1992
|
/* HIDING */
|
|
@@ -2004,7 +2004,7 @@ const Kt = ({ valueDisplayDuration: n = 2e3 }) => {
|
|
|
2004
2004
|
l();
|
|
2005
2005
|
}, n));
|
|
2006
2006
|
};
|
|
2007
|
-
return
|
|
2007
|
+
return T(() => () => {
|
|
2008
2008
|
s.current && window.clearTimeout(s.current), i.current && window.clearTimeout(i.current);
|
|
2009
2009
|
}, []), {
|
|
2010
2010
|
showPopup: o,
|
|
@@ -2113,15 +2113,15 @@ const qt = Ne, Jt = (n) => {
|
|
|
2113
2113
|
function Dn(n, t, r) {
|
|
2114
2114
|
if (n === 0) return r ?? "#e0e0e0";
|
|
2115
2115
|
if (n === 1) return t;
|
|
2116
|
-
const s = r ? Ne(r) : null, i = (s == null ? void 0 : s.r) ?? 224, l = (s == null ? void 0 : s.g) ?? 224, o = (s == null ? void 0 : s.b) ?? 224, c = parseInt(t.substring(1, 3), 16), a = parseInt(t.substring(3, 5), 16), d = parseInt(t.substring(5, 7), 16), u = Math.round(i + n * (c - i)),
|
|
2117
|
-
return `rgb(${u}, ${
|
|
2116
|
+
const s = r ? Ne(r) : null, i = (s == null ? void 0 : s.r) ?? 224, l = (s == null ? void 0 : s.g) ?? 224, o = (s == null ? void 0 : s.b) ?? 224, c = parseInt(t.substring(1, 3), 16), a = parseInt(t.substring(3, 5), 16), d = parseInt(t.substring(5, 7), 16), u = Math.round(i + n * (c - i)), m = Math.round(l + n * (a - l)), h = Math.round(o + n * (d - o));
|
|
2117
|
+
return `rgb(${u}, ${m}, ${h})`;
|
|
2118
2118
|
}
|
|
2119
2119
|
const ae = (n, t, r = "", s) => {
|
|
2120
|
-
let i, l, o, c, a, d, u,
|
|
2120
|
+
let i, l, o, c, a, d, u, m = Math.round, h = typeof r == "string";
|
|
2121
2121
|
if (typeof n != "number" || n < -1 || n > 1 || typeof t != "string" || t[0] != "r" && t[0] != "#" || r && !h || (u = t.length > 9, u = h ? typeof r == "string" && r.length > 9 ? !0 : r == "c" ? !u : !1 : u, a = ae.pSBCr(t), c = n < 0, d = r && typeof r == "string" && r != "c" ? ae.pSBCr(r) : c ? { r: 0, g: 0, b: 0, a: -1 } : { r: 255, g: 255, b: 255, a: -1 }, n = c ? n * -1 : n, c = 1 - n, !a || !d)) return null;
|
|
2122
|
-
s ? (i =
|
|
2123
|
-
let
|
|
2124
|
-
return d = d.a ?? 1, a =
|
|
2122
|
+
s ? (i = m(c * (a.r ?? 0) + n * (d.r ?? 0)), l = m(c * (a.g ?? 0) + n * (d.g ?? 0)), o = m(c * (a.b ?? 0) + n * (d.b ?? 0))) : (i = m((c * (a.r ?? 0) ** 2 + n * (d.r ?? 0) ** 2) ** 0.5), l = m((c * (a.g ?? 0) ** 2 + n * (d.g ?? 0) ** 2) ** 0.5), o = m((c * (a.b ?? 0) ** 2 + n * (d.b ?? 0) ** 2) ** 0.5));
|
|
2123
|
+
let x = a.a ?? 1;
|
|
2124
|
+
return d = d.a ?? 1, a = x >= 0 || d >= 0, x = x >= 0 || d >= 0 ? x < 0 ? d : d < 0 ? x : x * c + d * n : 0, u ? "rgb" + (a ? "a(" : "(") + i + "," + l + "," + o + (a ? "," + m(x * 1e3) / 1e3 : "") + ")" : "#" + (4294967296 + i * 16777216 + l * 65536 + o * 256 + (a ? m(x * 255) : 0)).toString(16).slice(1, a ? void 0 : -2);
|
|
2125
2125
|
};
|
|
2126
2126
|
ae.pSBCr = (n) => {
|
|
2127
2127
|
const t = parseInt;
|
|
@@ -2248,13 +2248,13 @@ const In = {
|
|
|
2248
2248
|
})
|
|
2249
2249
|
};
|
|
2250
2250
|
function er(n, t = !1) {
|
|
2251
|
-
const [r, s] = g({ ...In, ...n }), [i, l] = g(t), o =
|
|
2251
|
+
const [r, s] = g({ ...In, ...n }), [i, l] = g(t), o = b(
|
|
2252
2252
|
(a, d) => {
|
|
2253
2253
|
const u = Qt[a];
|
|
2254
2254
|
if (!u) return;
|
|
2255
|
-
const
|
|
2256
|
-
s((h) => ({ ...h, ...
|
|
2257
|
-
document.body.style.setProperty(`--${h.replace(/_/g, "-")}`,
|
|
2255
|
+
const m = u(d, i);
|
|
2256
|
+
s((h) => ({ ...h, ...m })), Object.entries(m).forEach(([h, x]) => {
|
|
2257
|
+
document.body.style.setProperty(`--${h.replace(/_/g, "-")}`, x);
|
|
2258
2258
|
});
|
|
2259
2259
|
},
|
|
2260
2260
|
[i]
|
|
@@ -2308,44 +2308,44 @@ const nr = {
|
|
|
2308
2308
|
function rr(n = "light") {
|
|
2309
2309
|
const [t, r] = g(
|
|
2310
2310
|
Xe
|
|
2311
|
-
), [s, i] = g(n), { colors: l, setColor: o, setReverse: c } = er(t[s].colors, t[s].reverse), a =
|
|
2312
|
-
(
|
|
2313
|
-
const j = t[
|
|
2311
|
+
), [s, i] = g(n), { colors: l, setColor: o, setReverse: c } = er(t[s].colors, t[s].reverse), a = b(
|
|
2312
|
+
(x) => {
|
|
2313
|
+
const j = t[x].colors;
|
|
2314
2314
|
j && (Object.entries(j).forEach(([f, p]) => {
|
|
2315
2315
|
o(f, p);
|
|
2316
|
-
}), c(t[
|
|
2316
|
+
}), c(t[x].reverse ?? !1), i(x));
|
|
2317
2317
|
},
|
|
2318
2318
|
[t, o]
|
|
2319
2319
|
);
|
|
2320
|
-
|
|
2320
|
+
T(() => {
|
|
2321
2321
|
a(s);
|
|
2322
2322
|
}, [s, a]);
|
|
2323
|
-
const d =
|
|
2324
|
-
(
|
|
2323
|
+
const d = b(
|
|
2324
|
+
(x, j, f) => {
|
|
2325
2325
|
r((p) => ({
|
|
2326
2326
|
...p,
|
|
2327
|
-
[
|
|
2328
|
-
colors: { ...p[
|
|
2329
|
-
reverse: p[
|
|
2327
|
+
[x]: {
|
|
2328
|
+
colors: { ...p[x].colors, [j]: f },
|
|
2329
|
+
reverse: p[x].reverse
|
|
2330
2330
|
}
|
|
2331
2331
|
}));
|
|
2332
2332
|
},
|
|
2333
2333
|
[]
|
|
2334
|
-
), u =
|
|
2334
|
+
), u = b((x, j = "light", f) => {
|
|
2335
2335
|
r((p) => ({
|
|
2336
2336
|
...p,
|
|
2337
|
-
[
|
|
2337
|
+
[x]: { colors: p[j].colors, reverse: f === void 0 ? p[j].reverse : f }
|
|
2338
2338
|
}));
|
|
2339
|
-
}, []),
|
|
2339
|
+
}, []), m = b((x) => {
|
|
2340
2340
|
r((j) => {
|
|
2341
2341
|
const f = { ...j };
|
|
2342
|
-
return delete f[
|
|
2343
|
-
}), s ===
|
|
2344
|
-
}, [s]), h =
|
|
2345
|
-
(
|
|
2346
|
-
Xe[
|
|
2342
|
+
return delete f[x], f;
|
|
2343
|
+
}), s === x && i("light");
|
|
2344
|
+
}, [s]), h = b(
|
|
2345
|
+
(x) => {
|
|
2346
|
+
Xe[x] && r((j) => ({
|
|
2347
2347
|
...j,
|
|
2348
|
-
[
|
|
2348
|
+
[x]: { ...Xe[x] }
|
|
2349
2349
|
}));
|
|
2350
2350
|
},
|
|
2351
2351
|
[]
|
|
@@ -2357,7 +2357,7 @@ function rr(n = "light") {
|
|
|
2357
2357
|
setActiveTheme: a,
|
|
2358
2358
|
updateThemeColor: d,
|
|
2359
2359
|
createTheme: u,
|
|
2360
|
-
deleteTheme:
|
|
2360
|
+
deleteTheme: m,
|
|
2361
2361
|
resetTheme: h
|
|
2362
2362
|
};
|
|
2363
2363
|
}
|
|
@@ -2386,41 +2386,41 @@ const $e = () => {
|
|
|
2386
2386
|
orientation: a = "horizontal",
|
|
2387
2387
|
styleTrack: d = "base",
|
|
2388
2388
|
showValue: u = !0,
|
|
2389
|
-
valueDisplayDuration:
|
|
2389
|
+
valueDisplayDuration: m = 2e3,
|
|
2390
2390
|
ariaLabel: h = "Регулятор значения",
|
|
2391
|
-
startColor:
|
|
2391
|
+
startColor: x,
|
|
2392
2392
|
className: j = "",
|
|
2393
2393
|
...f
|
|
2394
2394
|
}) => {
|
|
2395
|
-
const p =
|
|
2396
|
-
|
|
2397
|
-
var
|
|
2398
|
-
if (a === "vertical" && ((
|
|
2399
|
-
const
|
|
2400
|
-
var
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2395
|
+
const p = Z(null), _ = Z(null), [k, y] = g(c ?? s), [v, M] = g("200px"), { colors: V } = Ce(sn), { showPopup: W, popupState: z } = Kt({ valueDisplayDuration: m }), w = n ?? V.Primary_color ?? "#0000ff";
|
|
2396
|
+
T(() => {
|
|
2397
|
+
var E;
|
|
2398
|
+
if (a === "vertical" && ((E = _.current) != null && E.parentElement)) {
|
|
2399
|
+
const O = () => {
|
|
2400
|
+
var Y, C;
|
|
2401
|
+
const K = (C = (Y = _.current) == null ? void 0 : Y.parentElement) == null ? void 0 : C.clientHeight;
|
|
2402
|
+
K && M(`${K}px`);
|
|
2403
2403
|
};
|
|
2404
|
-
|
|
2405
|
-
const
|
|
2406
|
-
return _.current.parentElement &&
|
|
2404
|
+
O();
|
|
2405
|
+
const A = new ResizeObserver(O);
|
|
2406
|
+
return _.current.parentElement && A.observe(_.current.parentElement), () => A.disconnect();
|
|
2407
2407
|
}
|
|
2408
|
-
}, [a]),
|
|
2409
|
-
c !== void 0 && (y(c),
|
|
2408
|
+
}, [a]), T(() => {
|
|
2409
|
+
c !== void 0 && (y(c), P());
|
|
2410
2410
|
}, [c]);
|
|
2411
|
-
const
|
|
2412
|
-
u &&
|
|
2413
|
-
}, [
|
|
2414
|
-
const
|
|
2415
|
-
y(
|
|
2416
|
-
},
|
|
2417
|
-
() => i !== s ? (
|
|
2418
|
-
[
|
|
2411
|
+
const P = b(() => {
|
|
2412
|
+
u && W();
|
|
2413
|
+
}, [W]), D = (E) => {
|
|
2414
|
+
const O = parseFloat(E.target.value);
|
|
2415
|
+
y(O), P(), r == null || r(E);
|
|
2416
|
+
}, R = oe(
|
|
2417
|
+
() => i !== s ? (k - s) / (i - s) * 100 : 0,
|
|
2418
|
+
[k, s, i]
|
|
2419
2419
|
), N = oe(() => ({
|
|
2420
2420
|
...f.style,
|
|
2421
|
-
[a === "vertical" ? "height" : "width"]: `${
|
|
2422
|
-
background: d === "point" ? "transperent" : d === "static-color" ? w : Dn(
|
|
2423
|
-
}), [
|
|
2421
|
+
[a === "vertical" ? "height" : "width"]: `${R}%`,
|
|
2422
|
+
background: d === "point" ? "transperent" : d === "static-color" ? w : Dn(R / 100, w, x)
|
|
2423
|
+
}), [R, w, f.style, a, d]), I = oe(() => a === "vertical" ? {
|
|
2424
2424
|
"--range-width": o,
|
|
2425
2425
|
"--point-width": d === "point" ? o : "6px",
|
|
2426
2426
|
"--point-opacity": d === "point" ? "1" : "0",
|
|
@@ -2450,7 +2450,7 @@ const $e = () => {
|
|
|
2450
2450
|
children: [
|
|
2451
2451
|
/* @__PURE__ */ e.jsxs("div", { className: "track", style: { background: t }, children: [
|
|
2452
2452
|
/* @__PURE__ */ e.jsx("div", { className: "active-track", style: N }),
|
|
2453
|
-
/* @__PURE__ */ e.jsx(An, { text: Math.round(
|
|
2453
|
+
/* @__PURE__ */ e.jsx(An, { text: Math.round(k).toString(), state: z, className: "value-popup" })
|
|
2454
2454
|
] }),
|
|
2455
2455
|
/* @__PURE__ */ e.jsx(
|
|
2456
2456
|
"input",
|
|
@@ -2461,17 +2461,17 @@ const $e = () => {
|
|
|
2461
2461
|
style: S,
|
|
2462
2462
|
max: i,
|
|
2463
2463
|
step: l,
|
|
2464
|
-
value:
|
|
2464
|
+
value: k,
|
|
2465
2465
|
onChange: D,
|
|
2466
2466
|
onFocus: f.onFocus,
|
|
2467
2467
|
onBlur: f.onBlur,
|
|
2468
2468
|
className: "slider-input",
|
|
2469
2469
|
"aria-orientation": a,
|
|
2470
|
-
"aria-valuenow":
|
|
2470
|
+
"aria-valuenow": k,
|
|
2471
2471
|
"aria-valuemin": s,
|
|
2472
2472
|
"aria-valuemax": i,
|
|
2473
2473
|
"aria-label": h,
|
|
2474
|
-
"aria-valuetext": `${
|
|
2474
|
+
"aria-valuetext": `${k} из ${i}`,
|
|
2475
2475
|
...f
|
|
2476
2476
|
}
|
|
2477
2477
|
)
|
|
@@ -2490,23 +2490,23 @@ const $e = () => {
|
|
|
2490
2490
|
strokeWidth: a = 20,
|
|
2491
2491
|
radius: d = 100,
|
|
2492
2492
|
colorBg: u = "var(--Surface-container-color)",
|
|
2493
|
-
colorRange:
|
|
2493
|
+
colorRange: m,
|
|
2494
2494
|
pointColor: h,
|
|
2495
|
-
showBase:
|
|
2495
|
+
showBase: x = !0,
|
|
2496
2496
|
showIndicator: j = !0,
|
|
2497
2497
|
showPoint: f = !1,
|
|
2498
2498
|
rounding: p = !0,
|
|
2499
2499
|
showValue: _ = !0,
|
|
2500
|
-
style:
|
|
2500
|
+
style: k,
|
|
2501
2501
|
children: y,
|
|
2502
2502
|
className: v,
|
|
2503
2503
|
startColor: M
|
|
2504
2504
|
}) => {
|
|
2505
|
-
const
|
|
2506
|
-
|
|
2507
|
-
r !== void 0 &&
|
|
2505
|
+
const V = Z(null), W = Z(!1), z = d * 2, w = d * 2, P = Math.min(z, w), D = z / 2, R = w / 2, N = P / 2 - a / 2, I = c === "point" ? !1 : j, S = c === "point" ? !0 : f, { colors: E } = Ce(sn), O = m ?? E.Primary_color ?? "#0000ff", A = h ?? E.Primary_color ?? "#0000ff", [K, Y] = g(r);
|
|
2506
|
+
T(() => {
|
|
2507
|
+
r !== void 0 && Y(r);
|
|
2508
2508
|
}, [r]);
|
|
2509
|
-
const C =
|
|
2509
|
+
const C = b(() => {
|
|
2510
2510
|
switch (o) {
|
|
2511
2511
|
case "semicircle":
|
|
2512
2512
|
return 180;
|
|
@@ -2515,68 +2515,68 @@ const $e = () => {
|
|
|
2515
2515
|
default:
|
|
2516
2516
|
return 360;
|
|
2517
2517
|
}
|
|
2518
|
-
}, [o]),
|
|
2519
|
-
() => t !== n ? (
|
|
2520
|
-
[
|
|
2521
|
-
),
|
|
2522
|
-
if (!
|
|
2523
|
-
const [
|
|
2524
|
-
if (
|
|
2525
|
-
const X =
|
|
2526
|
-
X && (X.style.stroke = u, X.style.strokeWidth = a.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset =
|
|
2518
|
+
}, [o]), L = b(() => o === "semicircle" ? [N * Math.PI, N * Math.PI] : o === "brokenCircle" ? [N * Math.PI * 1.25, N * Math.PI * 1.5] : [N * Math.PI, N * Math.PI * 2], [o, N]), H = oe(
|
|
2519
|
+
() => t !== n ? (K - n) / (t - n) * 100 : 0,
|
|
2520
|
+
[K, n, t]
|
|
2521
|
+
), q = b(() => {
|
|
2522
|
+
if (!V.current) return;
|
|
2523
|
+
const [G, he] = L(), je = (K - n) * he / (t - n);
|
|
2524
|
+
if (x) {
|
|
2525
|
+
const X = V.current.querySelector('[data-el="base"]');
|
|
2526
|
+
X && (X.style.stroke = u, X.style.strokeWidth = a.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = G.toString(), X.style.strokeDasharray = `${he}, ${N * Math.PI * 2 - he}`);
|
|
2527
2527
|
}
|
|
2528
2528
|
if (I) {
|
|
2529
|
-
const X =
|
|
2529
|
+
const X = V.current.querySelector('[data-el="indicator"]');
|
|
2530
2530
|
if (X) {
|
|
2531
|
-
const
|
|
2532
|
-
|
|
2531
|
+
const xe = parseFloat(X.dataset.percentage ?? "");
|
|
2532
|
+
xe !== null && (xe < H - 2 || xe > H + 2) ? X.style.transition = ".3s" : X.style.transition = W.current ? "none" : ".3s", X.dataset.percentage = H.toString(), X.style.stroke = c === "static-color" ? O : Dn(H / 100, O, M), X.style.strokeWidth = a.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = G.toString(), X.style.strokeDasharray = `${je}, ${N * Math.PI * 2 - je}`;
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
2535
|
if (S) {
|
|
2536
|
-
const X =
|
|
2536
|
+
const X = V.current.querySelector('[data-el="point"]');
|
|
2537
2537
|
if (X) {
|
|
2538
|
-
const
|
|
2539
|
-
|
|
2538
|
+
const xe = parseFloat(X.dataset.percentage ?? "");
|
|
2539
|
+
xe !== null && (xe < H - 2 || xe > H + 2) ? X.style.transition = ".3s" : X.style.transition = W.current ? "none" : ".3s", X.dataset.percentage = H.toString(), X.style.stroke = A, X.style.strokeWidth = a.toString(), X.style.strokeLinecap = "round", K === t && o === "semicircle" ? X.style.strokeDashoffset = "0" : X.style.strokeDashoffset = (G - je).toString(), X.style.strokeDasharray = `0, ${N * Math.PI * 2}`;
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
2542
|
-
}, [
|
|
2543
|
-
|
|
2544
|
-
}, te = (
|
|
2545
|
-
|
|
2542
|
+
}, [K, L, t, n, N, a, u, O, A, x, I, S, p, H, M]), J = (G) => {
|
|
2543
|
+
W.current = !0, document.addEventListener("mousemove", te), document.addEventListener("mouseup", Q), ie(G);
|
|
2544
|
+
}, te = (G) => {
|
|
2545
|
+
G.preventDefault(), W.current && ie(G);
|
|
2546
2546
|
}, Q = () => {
|
|
2547
|
-
|
|
2548
|
-
}, ie =
|
|
2549
|
-
if (!
|
|
2550
|
-
const he = C(), je =
|
|
2547
|
+
W.current = !1, document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", Q);
|
|
2548
|
+
}, ie = b((G) => {
|
|
2549
|
+
if (!V.current) return;
|
|
2550
|
+
const he = C(), je = V.current.getBoundingClientRect(), X = je.left + je.width / 2, xe = je.top + je.height / 2, st = G.clientX, it = G.clientY, lt = xe - it, at = X - st;
|
|
2551
2551
|
let le = Math.atan2(lt, at) * (180 / Math.PI);
|
|
2552
|
-
he === 270 && (le += 45), le < 0 && (le = 360 + le), le < 0 && (le = 0), le > he &&
|
|
2552
|
+
he === 270 && (le += 45), le < 0 && (le = 360 + le), le < 0 && (le = 0), le > he && K > (t - n) / 2 ? le = he : le > he && (le = 0);
|
|
2553
2553
|
const ot = he, ct = t - n, Ue = Math.round(le * ct / ot + n);
|
|
2554
|
-
|
|
2555
|
-
}, [C, s, t, n, D,
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
}, [
|
|
2554
|
+
Y(Ue), Ue !== r && s && s(Ue);
|
|
2555
|
+
}, [C, s, t, n, D, R, K]);
|
|
2556
|
+
T(() => {
|
|
2557
|
+
q();
|
|
2558
|
+
}, [q]), T(() => () => {
|
|
2559
2559
|
document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", Q);
|
|
2560
2560
|
}, []);
|
|
2561
|
-
const
|
|
2561
|
+
const B = {
|
|
2562
2562
|
"--stroke-width": `${a}px`
|
|
2563
2563
|
};
|
|
2564
|
-
return /* @__PURE__ */ e.jsxs("div", { style: { width:
|
|
2564
|
+
return /* @__PURE__ */ e.jsxs("div", { style: { width: z, height: w, ...k }, className: "range-circule-wrapper", onFocus: i, onBlur: l, children: [
|
|
2565
2565
|
/* @__PURE__ */ e.jsxs(
|
|
2566
2566
|
"svg",
|
|
2567
2567
|
{
|
|
2568
|
-
ref:
|
|
2568
|
+
ref: V,
|
|
2569
2569
|
width: "100%",
|
|
2570
2570
|
height: "100%",
|
|
2571
2571
|
onMouseDown: J,
|
|
2572
2572
|
children: [
|
|
2573
|
-
|
|
2573
|
+
x && /* @__PURE__ */ e.jsx(
|
|
2574
2574
|
"circle",
|
|
2575
2575
|
{
|
|
2576
2576
|
"data-el": "base",
|
|
2577
2577
|
fill: "none",
|
|
2578
2578
|
cx: D,
|
|
2579
|
-
cy:
|
|
2579
|
+
cy: R,
|
|
2580
2580
|
r: N
|
|
2581
2581
|
}
|
|
2582
2582
|
),
|
|
@@ -2586,7 +2586,7 @@ const $e = () => {
|
|
|
2586
2586
|
"data-el": "indicator",
|
|
2587
2587
|
fill: "none",
|
|
2588
2588
|
cx: D,
|
|
2589
|
-
cy:
|
|
2589
|
+
cy: R,
|
|
2590
2590
|
r: N
|
|
2591
2591
|
}
|
|
2592
2592
|
),
|
|
@@ -2596,14 +2596,14 @@ const $e = () => {
|
|
|
2596
2596
|
"data-el": "point",
|
|
2597
2597
|
fill: "none",
|
|
2598
2598
|
cx: D,
|
|
2599
|
-
cy:
|
|
2599
|
+
cy: R,
|
|
2600
2600
|
r: N
|
|
2601
2601
|
}
|
|
2602
2602
|
)
|
|
2603
2603
|
]
|
|
2604
2604
|
}
|
|
2605
2605
|
),
|
|
2606
|
-
/* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${v}`, style:
|
|
2606
|
+
/* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${v}`, style: B, children: y ?? (_ && /* @__PURE__ */ e.jsx(An, { className: "", text: Math.floor(K).toString() })) })
|
|
2607
2607
|
] });
|
|
2608
2608
|
}, ir = ve(
|
|
2609
2609
|
({
|
|
@@ -2661,30 +2661,30 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
|
|
|
2661
2661
|
const l = window.getComputedStyle(r), o = parseFloat(l.getPropertyValue("height")), c = parseFloat(l.getPropertyValue("width")), a = t + o - document.documentElement.clientHeight, d = n + c - document.documentElement.clientWidth;
|
|
2662
2662
|
return a > 0 && (i.y = i.y - a - ((s == null ? void 0 : s.marginBottom) ?? 0)), d > 0 && (i.x = i.x - d - ((s == null ? void 0 : s.marginRight) ?? 0)), i;
|
|
2663
2663
|
}, ar = ({ items: n, onHide: t, smallDisplay: r, globalClick: s, autoHide: i, onGlobalHide: l }) => {
|
|
2664
|
-
const o =
|
|
2665
|
-
function
|
|
2666
|
-
for (let
|
|
2667
|
-
if (
|
|
2664
|
+
const o = Z(null), [c, a] = g({ left: "0px", top: "0px" }), [d, u] = g(!1);
|
|
2665
|
+
function m(h) {
|
|
2666
|
+
for (let x of h)
|
|
2667
|
+
if (x.icon)
|
|
2668
2668
|
return !0;
|
|
2669
2669
|
return !1;
|
|
2670
2670
|
}
|
|
2671
|
-
return
|
|
2671
|
+
return T(() => {
|
|
2672
2672
|
if (!o.current)
|
|
2673
2673
|
return;
|
|
2674
2674
|
let h = Ye(o.current.parentElement);
|
|
2675
2675
|
if (!h)
|
|
2676
2676
|
return;
|
|
2677
|
-
let
|
|
2677
|
+
let x = Hn(h.left + h.width, h.top, o.current, { marginRight: h.width });
|
|
2678
2678
|
a({
|
|
2679
|
-
left:
|
|
2680
|
-
top:
|
|
2679
|
+
left: x.x - h.left + "px",
|
|
2680
|
+
top: x.y - h.top + "px"
|
|
2681
2681
|
}), u(!0);
|
|
2682
2682
|
}, []), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2683
|
-
/* @__PURE__ */ e.jsx("div", { ref: o, className: `menu-block menu-block_color_surface-container-highest ${r ? "" : "menu-block_sub"}`, style: { ...c, ...d ? {} : { display: "none" } }, children: n.map((h,
|
|
2683
|
+
/* @__PURE__ */ e.jsx("div", { ref: o, className: `menu-block menu-block_color_surface-container-highest ${r ? "" : "menu-block_sub"}`, style: { ...c, ...d ? {} : { display: "none" } }, children: n.map((h, x) => /* @__PURE__ */ e.jsx(lr, { onHide: l, autoHide: i, item: h, isIcon: m(n), globalClick: s }, x)) }),
|
|
2684
2684
|
r ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "menu-block-backplate", onClick: t })
|
|
2685
2685
|
] });
|
|
2686
2686
|
}, or = ({ onHide: n, autoHide: t, globalClick: r, item: s, isIcon: i, smallDisplay: l }) => {
|
|
2687
|
-
const [o, c] = g(!1), a =
|
|
2687
|
+
const [o, c] = g(!1), a = b(() => {
|
|
2688
2688
|
s.subItems ? c((d) => !d) : (s.onClick && s.onClick(), r && r(), t && n && n());
|
|
2689
2689
|
}, [s.onClick]);
|
|
2690
2690
|
return /* @__PURE__ */ e.jsxs("div", { className: `menu-item ${s.disabled ? "menu-item_disabled" : ""}`, children: [
|
|
@@ -2706,7 +2706,7 @@ function zn({ block: n, smallDisplay: t, onHide: r, globalClick: s, autoHide: i
|
|
|
2706
2706
|
return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((o, c) => /* @__PURE__ */ e.jsx(or, { globalClick: s, autoHide: i, onHide: r, item: o, isIcon: l(n), smallDisplay: t }, c)) });
|
|
2707
2707
|
}
|
|
2708
2708
|
const cr = 100, dr = (n) => {
|
|
2709
|
-
const t =
|
|
2709
|
+
const t = Z(null), [r, s] = g({ left: "0px", top: "0px" }), i = () => {
|
|
2710
2710
|
n.onHide && n.onHide();
|
|
2711
2711
|
};
|
|
2712
2712
|
return dt(() => {
|
|
@@ -2735,17 +2735,17 @@ const cr = 100, dr = (n) => {
|
|
|
2735
2735
|
/* @__PURE__ */ e.jsx(zn, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
|
|
2736
2736
|
] }, s)) }) });
|
|
2737
2737
|
}, Pn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(ur, { ...n }) }) : /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(dr, { ...n }) }), Fs = ne.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...l }, o) => {
|
|
2738
|
-
const [c, a] = g(!1), [d, u] = g(void 0), { screen:
|
|
2738
|
+
const [c, a] = g(!1), [d, u] = g(void 0), { screen: m } = Ce(we), h = () => {
|
|
2739
2739
|
a(!1), u(void 0);
|
|
2740
|
-
},
|
|
2740
|
+
}, x = (f) => {
|
|
2741
2741
|
f.stopPropagation(), a(!0), u({ x: f.clientX, y: f.clientY }), i == null || i(f);
|
|
2742
|
-
}, j = n ??
|
|
2742
|
+
}, j = n ?? m;
|
|
2743
2743
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2744
2744
|
/* @__PURE__ */ e.jsx(
|
|
2745
|
-
|
|
2745
|
+
ue,
|
|
2746
2746
|
{
|
|
2747
2747
|
ref: o,
|
|
2748
|
-
onClick:
|
|
2748
|
+
onClick: x,
|
|
2749
2749
|
...l
|
|
2750
2750
|
}
|
|
2751
2751
|
),
|
|
@@ -2808,8 +2808,8 @@ const cr = 100, dr = (n) => {
|
|
|
2808
2808
|
Bn.displayName = "Checkbox";
|
|
2809
2809
|
const Wn = ne.forwardRef(
|
|
2810
2810
|
({ text: n, onDelete: t, big: r, onClick: s, screenSize: i, className: l, disabled: o, ...c }, a) => {
|
|
2811
|
-
const d = (
|
|
2812
|
-
|
|
2811
|
+
const d = (m) => {
|
|
2812
|
+
m.stopPropagation(), t == null || t(m);
|
|
2813
2813
|
}, u = o ? void 0 : s;
|
|
2814
2814
|
return /* @__PURE__ */ e.jsxs(
|
|
2815
2815
|
"div",
|
|
@@ -2831,7 +2831,7 @@ const Wn = ne.forwardRef(
|
|
|
2831
2831
|
"aria-label": `Remove ${n}`,
|
|
2832
2832
|
disabled: o,
|
|
2833
2833
|
type: "button",
|
|
2834
|
-
children: /* @__PURE__ */ e.jsx(
|
|
2834
|
+
children: /* @__PURE__ */ e.jsx(de, {})
|
|
2835
2835
|
}
|
|
2836
2836
|
)
|
|
2837
2837
|
]
|
|
@@ -2853,15 +2853,15 @@ const Gn = ve(
|
|
|
2853
2853
|
size: a = "medium",
|
|
2854
2854
|
variant: d = "primary",
|
|
2855
2855
|
showLabel: u = !0,
|
|
2856
|
-
className:
|
|
2856
|
+
className: m,
|
|
2857
2857
|
...h
|
|
2858
|
-
},
|
|
2858
|
+
}, x) => {
|
|
2859
2859
|
const j = t !== void 0 ? t === r : l !== void 0 ? l : o;
|
|
2860
|
-
return /* @__PURE__ */ e.jsxs("label", { className: `radio-button-container ${
|
|
2860
|
+
return /* @__PURE__ */ e.jsxs("label", { className: `radio-button-container ${m || ""}`, children: [
|
|
2861
2861
|
/* @__PURE__ */ e.jsx(
|
|
2862
2862
|
"input",
|
|
2863
2863
|
{
|
|
2864
|
-
ref:
|
|
2864
|
+
ref: x,
|
|
2865
2865
|
className: "radio-button",
|
|
2866
2866
|
name: n,
|
|
2867
2867
|
type: "radio",
|
|
@@ -2893,15 +2893,15 @@ const Zn = ve(
|
|
|
2893
2893
|
variant: a = "primary",
|
|
2894
2894
|
...d
|
|
2895
2895
|
}, u) => {
|
|
2896
|
-
const [
|
|
2897
|
-
|
|
2898
|
-
h(
|
|
2896
|
+
const [m, h] = g([]);
|
|
2897
|
+
T(() => {
|
|
2898
|
+
h(x(t));
|
|
2899
2899
|
}, [t]);
|
|
2900
|
-
const
|
|
2900
|
+
const x = (f) => f === void 0 ? [] : Array.isArray(f) ? f : [f], j = (f, p) => {
|
|
2901
2901
|
if (i) return;
|
|
2902
2902
|
f.preventDefault();
|
|
2903
2903
|
let _;
|
|
2904
|
-
r ? _ =
|
|
2904
|
+
r ? _ = m.includes(p) ? m.filter((k) => k !== p) : [...m, p] : _ = m.includes(p) ? [] : [p], h(_), l == null || l(_, f);
|
|
2905
2905
|
};
|
|
2906
2906
|
return /* @__PURE__ */ e.jsx(
|
|
2907
2907
|
"div",
|
|
@@ -2915,13 +2915,13 @@ const Zn = ve(
|
|
|
2915
2915
|
{
|
|
2916
2916
|
type: "button",
|
|
2917
2917
|
role: "radio",
|
|
2918
|
-
"aria-checked":
|
|
2918
|
+
"aria-checked": m.includes(f),
|
|
2919
2919
|
"aria-label": f,
|
|
2920
2920
|
disabled: i,
|
|
2921
|
-
className: `segmented-button__item ${
|
|
2921
|
+
className: `segmented-button__item ${m.includes(f) ? "segmented-button__item--active" : ""}`,
|
|
2922
2922
|
onClick: (p) => j(p, f),
|
|
2923
2923
|
children: [
|
|
2924
|
-
|
|
2924
|
+
m.includes(f) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(pe, {}) }),
|
|
2925
2925
|
/* @__PURE__ */ e.jsx("span", { className: "segmented-button__text", children: f }),
|
|
2926
2926
|
/* @__PURE__ */ e.jsx(
|
|
2927
2927
|
"input",
|
|
@@ -2929,7 +2929,7 @@ const Zn = ve(
|
|
|
2929
2929
|
type: r ? "checkbox" : "radio",
|
|
2930
2930
|
name: s,
|
|
2931
2931
|
value: f,
|
|
2932
|
-
checked:
|
|
2932
|
+
checked: m.includes(f),
|
|
2933
2933
|
readOnly: !0,
|
|
2934
2934
|
className: "segmented-button__input"
|
|
2935
2935
|
}
|
|
@@ -2984,23 +2984,23 @@ function hr({
|
|
|
2984
2984
|
defaultValue: a,
|
|
2985
2985
|
style: d
|
|
2986
2986
|
}) {
|
|
2987
|
-
const [u,
|
|
2988
|
-
u !== void 0 && (n == null || n(u),
|
|
2989
|
-
}, [u, n, i, s]),
|
|
2987
|
+
const [u, m] = g(a), h = b(() => {
|
|
2988
|
+
u !== void 0 && (n == null || n(u), m(void 0), !i && (s == null || s()));
|
|
2989
|
+
}, [u, n, i, s]), x = b(() => {
|
|
2990
2990
|
s == null || s();
|
|
2991
|
-
}, [s]), j =
|
|
2992
|
-
|
|
2991
|
+
}, [s]), j = b((f) => {
|
|
2992
|
+
m(f);
|
|
2993
2993
|
}, []);
|
|
2994
2994
|
return /* @__PURE__ */ e.jsxs(
|
|
2995
2995
|
Ee,
|
|
2996
2996
|
{
|
|
2997
2997
|
header: r,
|
|
2998
2998
|
style: d,
|
|
2999
|
-
onHide:
|
|
2999
|
+
onHide: x,
|
|
3000
3000
|
action: /* @__PURE__ */ e.jsx(
|
|
3001
|
-
|
|
3001
|
+
xr,
|
|
3002
3002
|
{
|
|
3003
|
-
onHide:
|
|
3003
|
+
onHide: x,
|
|
3004
3004
|
onSuccess: h,
|
|
3005
3005
|
disabled: u === void 0,
|
|
3006
3006
|
confirmText: o,
|
|
@@ -3050,7 +3050,7 @@ function hr({
|
|
|
3050
3050
|
}
|
|
3051
3051
|
);
|
|
3052
3052
|
}
|
|
3053
|
-
function
|
|
3053
|
+
function xr({
|
|
3054
3054
|
onSuccess: n,
|
|
3055
3055
|
onHide: t,
|
|
3056
3056
|
disabled: r = !1,
|
|
@@ -3082,39 +3082,39 @@ const Ve = ne.forwardRef(
|
|
|
3082
3082
|
onClear: a,
|
|
3083
3083
|
icon: d,
|
|
3084
3084
|
onChange: u,
|
|
3085
|
-
name:
|
|
3085
|
+
name: m,
|
|
3086
3086
|
value: h,
|
|
3087
|
-
placeholder:
|
|
3087
|
+
placeholder: x,
|
|
3088
3088
|
className: j,
|
|
3089
3089
|
validEmptyValue: f,
|
|
3090
3090
|
onFocus: p,
|
|
3091
3091
|
onBlur: _,
|
|
3092
|
-
error:
|
|
3092
|
+
error: k,
|
|
3093
3093
|
max: y,
|
|
3094
3094
|
min: v,
|
|
3095
3095
|
autoFocus: M,
|
|
3096
|
-
disabled:
|
|
3097
|
-
size:
|
|
3098
|
-
helperText:
|
|
3096
|
+
disabled: V,
|
|
3097
|
+
size: W = "medium",
|
|
3098
|
+
helperText: z,
|
|
3099
3099
|
errorText: w,
|
|
3100
|
-
onKeyDown:
|
|
3100
|
+
onKeyDown: P
|
|
3101
3101
|
}, D) => {
|
|
3102
|
-
const
|
|
3103
|
-
if (!
|
|
3104
|
-
const J =
|
|
3102
|
+
const R = Z(null), [N, I] = g(!1), [S, E] = g(!1), [O, A] = g(!!h), K = Be(), Y = () => {
|
|
3103
|
+
if (!R.current) return;
|
|
3104
|
+
const J = R.current.querySelector("input");
|
|
3105
3105
|
J == null || J.focus();
|
|
3106
3106
|
}, C = (J) => {
|
|
3107
|
-
p == null || p(J),
|
|
3108
|
-
},
|
|
3109
|
-
_ == null || _(J),
|
|
3110
|
-
}, H =
|
|
3111
|
-
(J, te) => I(!!(
|
|
3112
|
-
[
|
|
3107
|
+
p == null || p(J), E(!0);
|
|
3108
|
+
}, L = (J) => {
|
|
3109
|
+
_ == null || _(J), E(!1), A(!!J.target.value);
|
|
3110
|
+
}, H = b(
|
|
3111
|
+
(J, te) => I(!!(k || J && (!te || te === ""))),
|
|
3112
|
+
[k]
|
|
3113
3113
|
);
|
|
3114
|
-
|
|
3115
|
-
H(f, h),
|
|
3114
|
+
T(() => {
|
|
3115
|
+
H(f, h), A(!!h);
|
|
3116
3116
|
}, [h, f, H]);
|
|
3117
|
-
const
|
|
3117
|
+
const q = {
|
|
3118
3118
|
small: "input-field__text-field_small",
|
|
3119
3119
|
medium: "input-field__text-field_medium",
|
|
3120
3120
|
large: "input-field__text-field_large"
|
|
@@ -3128,65 +3128,65 @@ const Ve = ne.forwardRef(
|
|
|
3128
3128
|
className: `
|
|
3129
3129
|
input-field
|
|
3130
3130
|
input-field__text-field
|
|
3131
|
-
${
|
|
3131
|
+
${q[W]}
|
|
3132
3132
|
${c ? "input-field_border" : ""}
|
|
3133
3133
|
${S ? "input-field_active" : ""}
|
|
3134
3134
|
${i ? "input-field_transparent" : ""}
|
|
3135
3135
|
${N ? "input-field_error" : ""}
|
|
3136
|
-
${
|
|
3136
|
+
${V ? "input-field_disabled" : ""}
|
|
3137
3137
|
`,
|
|
3138
|
-
onClick:
|
|
3138
|
+
onClick: Y,
|
|
3139
3139
|
children: [
|
|
3140
3140
|
d && /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", "aria-hidden": "true", children: d }),
|
|
3141
|
-
/* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", ref:
|
|
3141
|
+
/* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", ref: R, children: [
|
|
3142
3142
|
/* @__PURE__ */ e.jsx(
|
|
3143
3143
|
"input",
|
|
3144
3144
|
{
|
|
3145
3145
|
ref: t,
|
|
3146
3146
|
max: y,
|
|
3147
3147
|
min: v,
|
|
3148
|
-
id:
|
|
3148
|
+
id: K,
|
|
3149
3149
|
readOnly: l,
|
|
3150
|
-
disabled:
|
|
3150
|
+
disabled: V,
|
|
3151
3151
|
required: !0,
|
|
3152
3152
|
type: o ? "password" : s,
|
|
3153
3153
|
className: `
|
|
3154
3154
|
input-field__input-container__input
|
|
3155
3155
|
${N ? "input-field__input-container__input_error" : ""}
|
|
3156
3156
|
`,
|
|
3157
|
-
name:
|
|
3157
|
+
name: m,
|
|
3158
3158
|
value: h,
|
|
3159
3159
|
onClick: n,
|
|
3160
3160
|
onChange: (J) => u == null ? void 0 : u(J.target.value, J.target.name, J),
|
|
3161
3161
|
onFocus: C,
|
|
3162
|
-
onBlur:
|
|
3163
|
-
onKeyDown:
|
|
3162
|
+
onBlur: L,
|
|
3163
|
+
onKeyDown: P,
|
|
3164
3164
|
autoFocus: M,
|
|
3165
3165
|
"aria-invalid": N,
|
|
3166
|
-
"aria-describedby": N ? `${
|
|
3166
|
+
"aria-describedby": N ? `${m}-error` : void 0
|
|
3167
3167
|
}
|
|
3168
3168
|
),
|
|
3169
|
-
|
|
3169
|
+
x && /* @__PURE__ */ e.jsx(
|
|
3170
3170
|
"label",
|
|
3171
3171
|
{
|
|
3172
|
-
htmlFor:
|
|
3173
|
-
onClick:
|
|
3172
|
+
htmlFor: K,
|
|
3173
|
+
onClick: Y,
|
|
3174
3174
|
className: `input-field__input-container__label
|
|
3175
|
-
${
|
|
3175
|
+
${O ? "input-field__input-container__label_filled" : ""}
|
|
3176
3176
|
`,
|
|
3177
|
-
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children:
|
|
3177
|
+
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: x })
|
|
3178
3178
|
}
|
|
3179
3179
|
)
|
|
3180
3180
|
] }),
|
|
3181
|
-
a && h && !
|
|
3181
|
+
a && h && !V && /* @__PURE__ */ e.jsx("div", { className: `
|
|
3182
3182
|
input-field__icon-container
|
|
3183
3183
|
input-field__icon-container_clear-btn
|
|
3184
|
-
`, onClick: a, children: /* @__PURE__ */ e.jsx(
|
|
3184
|
+
`, onClick: a, children: /* @__PURE__ */ e.jsx(de, { "aria-label": "Clear input" }) })
|
|
3185
3185
|
]
|
|
3186
3186
|
}
|
|
3187
3187
|
),
|
|
3188
3188
|
N && w && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: w }),
|
|
3189
|
-
|
|
3189
|
+
z && !N && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: z })
|
|
3190
3190
|
] });
|
|
3191
3191
|
}
|
|
3192
3192
|
);
|
|
@@ -3203,22 +3203,22 @@ const Vs = ({
|
|
|
3203
3203
|
max: a = 100,
|
|
3204
3204
|
defaultValue: d = "",
|
|
3205
3205
|
confirmText: u = "OK",
|
|
3206
|
-
cancelText:
|
|
3206
|
+
cancelText: m = "Отмена",
|
|
3207
3207
|
validate: h
|
|
3208
3208
|
}) => {
|
|
3209
|
-
const [
|
|
3210
|
-
|
|
3209
|
+
const [x, j] = g(d), [f, p] = g(!0);
|
|
3210
|
+
T(() => {
|
|
3211
3211
|
if (h)
|
|
3212
|
-
p(h(
|
|
3212
|
+
p(h(x));
|
|
3213
3213
|
else if (o === "number") {
|
|
3214
|
-
const v = Number(
|
|
3214
|
+
const v = Number(x);
|
|
3215
3215
|
p(!isNaN(v) && v >= c && v <= a);
|
|
3216
3216
|
} else
|
|
3217
3217
|
p(!0);
|
|
3218
|
-
}, [
|
|
3219
|
-
const _ =
|
|
3220
|
-
f && (s == null || s(
|
|
3221
|
-
}, [
|
|
3218
|
+
}, [x, h, o, c, a]);
|
|
3219
|
+
const _ = b(() => {
|
|
3220
|
+
f && (s == null || s(x), i == null || i());
|
|
3221
|
+
}, [x, f, s, i]), k = b(() => {
|
|
3222
3222
|
i == null || i();
|
|
3223
3223
|
}, [i]), y = (v) => {
|
|
3224
3224
|
if (o === "number") {
|
|
@@ -3236,14 +3236,14 @@ const Vs = ({
|
|
|
3236
3236
|
{
|
|
3237
3237
|
style: n,
|
|
3238
3238
|
header: r,
|
|
3239
|
-
onHide:
|
|
3239
|
+
onHide: k,
|
|
3240
3240
|
action: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
3241
|
-
/* @__PURE__ */ e.jsx(ce, { onClick:
|
|
3241
|
+
/* @__PURE__ */ e.jsx(ce, { onClick: k, children: m }),
|
|
3242
3242
|
/* @__PURE__ */ e.jsx(
|
|
3243
3243
|
ce,
|
|
3244
3244
|
{
|
|
3245
3245
|
onClick: _,
|
|
3246
|
-
disabled: !f || o === "number" &&
|
|
3246
|
+
disabled: !f || o === "number" && x === "",
|
|
3247
3247
|
children: u
|
|
3248
3248
|
}
|
|
3249
3249
|
)
|
|
@@ -3259,7 +3259,7 @@ const Vs = ({
|
|
|
3259
3259
|
max: a,
|
|
3260
3260
|
border: !0,
|
|
3261
3261
|
placeholder: l,
|
|
3262
|
-
value:
|
|
3262
|
+
value: x,
|
|
3263
3263
|
onChange: y,
|
|
3264
3264
|
error: !f
|
|
3265
3265
|
}
|
|
@@ -3286,11 +3286,11 @@ const Vs = ({
|
|
|
3286
3286
|
saveText: a,
|
|
3287
3287
|
cancelText: d,
|
|
3288
3288
|
forceFullScreen: u,
|
|
3289
|
-
btns:
|
|
3289
|
+
btns: m
|
|
3290
3290
|
}) => {
|
|
3291
3291
|
const { screen: h } = Ce(we);
|
|
3292
3292
|
Cn(!0, document.body);
|
|
3293
|
-
const
|
|
3293
|
+
const x = () => {
|
|
3294
3294
|
l == null || l();
|
|
3295
3295
|
}, j = () => {
|
|
3296
3296
|
i == null || i();
|
|
@@ -3311,11 +3311,11 @@ const Vs = ({
|
|
|
3311
3311
|
children: [
|
|
3312
3312
|
/* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__container__header", children: [
|
|
3313
3313
|
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__button", children: l && /* @__PURE__ */ e.jsx(
|
|
3314
|
-
|
|
3314
|
+
ue,
|
|
3315
3315
|
{
|
|
3316
3316
|
transparent: !0,
|
|
3317
|
-
onClick:
|
|
3318
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
3317
|
+
onClick: x,
|
|
3318
|
+
icon: /* @__PURE__ */ e.jsx(de, {}),
|
|
3319
3319
|
"aria-label": "Закрыть"
|
|
3320
3320
|
}
|
|
3321
3321
|
) }),
|
|
@@ -3324,7 +3324,7 @@ const Vs = ({
|
|
|
3324
3324
|
] }),
|
|
3325
3325
|
/* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__content", children: [
|
|
3326
3326
|
s,
|
|
3327
|
-
|
|
3327
|
+
m && /* @__PURE__ */ e.jsx(ze, { btns: m.filter((p) => !p.hide && !p.success) })
|
|
3328
3328
|
] })
|
|
3329
3329
|
]
|
|
3330
3330
|
}
|
|
@@ -3335,15 +3335,15 @@ const Vs = ({
|
|
|
3335
3335
|
style: n,
|
|
3336
3336
|
header: r,
|
|
3337
3337
|
className: `full-screen-dialog ${t}`,
|
|
3338
|
-
onHide:
|
|
3339
|
-
action:
|
|
3340
|
-
l && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick:
|
|
3338
|
+
onHide: x,
|
|
3339
|
+
action: m === void 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3340
|
+
l && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick: x, children: d ?? "Отмена" }),
|
|
3341
3341
|
l && /* @__PURE__ */ e.jsx(ye, { onClick: j, children: a ?? "Сохранить" })
|
|
3342
|
-
] }) : /* @__PURE__ */ e.jsx(ze, { btns:
|
|
3342
|
+
] }) : /* @__PURE__ */ e.jsx(ze, { btns: m, onHide: l, onSuccess: i }),
|
|
3343
3343
|
children: s
|
|
3344
3344
|
}
|
|
3345
3345
|
);
|
|
3346
|
-
},
|
|
3346
|
+
}, mr = ve(
|
|
3347
3347
|
({
|
|
3348
3348
|
className: n = "",
|
|
3349
3349
|
action: t,
|
|
@@ -3356,37 +3356,37 @@ const Vs = ({
|
|
|
3356
3356
|
iconButtonCell: a,
|
|
3357
3357
|
onClick: d,
|
|
3358
3358
|
screenSize: u,
|
|
3359
|
-
rootApp:
|
|
3359
|
+
rootApp: m = "#root",
|
|
3360
3360
|
variant: h = "elevated",
|
|
3361
|
-
loading:
|
|
3361
|
+
loading: x = !1,
|
|
3362
3362
|
style: j,
|
|
3363
3363
|
elevation: f = 6,
|
|
3364
3364
|
...p
|
|
3365
3365
|
}, _) => {
|
|
3366
|
-
const { screen:
|
|
3367
|
-
|
|
3368
|
-
},
|
|
3369
|
-
const w =
|
|
3370
|
-
return !w.closest(".action-container") && !w.closest(".card-icon-button") && !w.closest(".card-child-container") && !w.closest(".card-children") && !!w.closest(
|
|
3371
|
-
},
|
|
3372
|
-
const w =
|
|
3373
|
-
if (!
|
|
3374
|
-
const D = w.getBoundingClientRect(),
|
|
3375
|
-
S.className = "card-ripple", S.style.width = S.style.height = `${
|
|
3366
|
+
const { screen: k } = Ce(we), y = u ?? k, v = `elevation-${Math.min(24, Math.max(0, f))}`, M = (z) => {
|
|
3367
|
+
V(z) && (d == null || d(z), W(z));
|
|
3368
|
+
}, V = (z) => {
|
|
3369
|
+
const w = z.target;
|
|
3370
|
+
return !w.closest(".action-container") && !w.closest(".card-icon-button") && !w.closest(".card-child-container") && !w.closest(".card-children") && !!w.closest(m);
|
|
3371
|
+
}, W = (z) => {
|
|
3372
|
+
const w = z.currentTarget, P = w.querySelector(".card-ripple-container");
|
|
3373
|
+
if (!P) return;
|
|
3374
|
+
const D = w.getBoundingClientRect(), R = Math.max(D.width, D.height), N = z.clientX - D.left - R / 2, I = z.clientY - D.top - R / 2, S = document.createElement("span");
|
|
3375
|
+
S.className = "card-ripple", S.style.width = S.style.height = `${R}px`, S.style.left = `${N}px`, S.style.top = `${I}px`, P.appendChild(S), setTimeout(() => S.remove(), 600);
|
|
3376
3376
|
};
|
|
3377
3377
|
return /* @__PURE__ */ e.jsxs(
|
|
3378
3378
|
"div",
|
|
3379
3379
|
{
|
|
3380
3380
|
ref: _,
|
|
3381
3381
|
style: j,
|
|
3382
|
-
className: `${n} card card--${h} ${v} ${
|
|
3382
|
+
className: `${n} card card--${h} ${v} ${x ? "card--loading" : ""}`,
|
|
3383
3383
|
onClick: M,
|
|
3384
3384
|
...p,
|
|
3385
3385
|
children: [
|
|
3386
3386
|
/* @__PURE__ */ e.jsx("div", { className: "card-ripple-container" }),
|
|
3387
3387
|
r && /* @__PURE__ */ e.jsxs("div", { className: "card-image-container", children: [
|
|
3388
3388
|
/* @__PURE__ */ e.jsx("img", { src: r, alt: s, loading: "lazy" }),
|
|
3389
|
-
|
|
3389
|
+
x && /* @__PURE__ */ e.jsx("div", { className: "card-image-overlay" })
|
|
3390
3390
|
] }),
|
|
3391
3391
|
/* @__PURE__ */ e.jsxs("div", { className: "card-content", children: [
|
|
3392
3392
|
(i || a) && /* @__PURE__ */ e.jsxs("div", { className: "card-header", children: [
|
|
@@ -3424,30 +3424,30 @@ const Vs = ({
|
|
|
3424
3424
|
c && /* @__PURE__ */ e.jsx("div", { className: "card-children", children: c }),
|
|
3425
3425
|
t && /* @__PURE__ */ e.jsx("div", { className: "card-actions", children: t })
|
|
3426
3426
|
] }),
|
|
3427
|
-
|
|
3427
|
+
x && /* @__PURE__ */ e.jsx("div", { className: "card-loading-indicator" })
|
|
3428
3428
|
]
|
|
3429
3429
|
}
|
|
3430
3430
|
);
|
|
3431
3431
|
}
|
|
3432
3432
|
);
|
|
3433
|
-
|
|
3433
|
+
mr.displayName = "Card";
|
|
3434
3434
|
const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${t ?? ""}`, children: n }), As = ({ children: n, className: t, id: r, height: s, width: i, pozMove: l, draggable: o = !0 }) => {
|
|
3435
|
-
const [c, a] = g(!1), [d, u] = g(null), [
|
|
3435
|
+
const [c, a] = g(!1), [d, u] = g(null), [m, h] = g({ x: 0, y: 0 }), x = (p) => {
|
|
3436
3436
|
p.button == 1 && (a(!1), u(null), document.body.style.cursor = "auto");
|
|
3437
3437
|
}, j = (p) => {
|
|
3438
3438
|
p.button == 1 && o && (u({ x: p.clientX, y: p.clientY }), a(!0), document.body.style.cursor = "move");
|
|
3439
|
-
}, f =
|
|
3439
|
+
}, f = b((p) => {
|
|
3440
3440
|
c && (h((_) => {
|
|
3441
3441
|
if (!d)
|
|
3442
3442
|
return _;
|
|
3443
|
-
const
|
|
3444
|
-
let v = _.x +
|
|
3443
|
+
const k = p.clientX - d.x, y = p.clientY - d.y;
|
|
3444
|
+
let v = _.x + k, M = _.y + y;
|
|
3445
3445
|
return { x: v, y: M };
|
|
3446
3446
|
}), u({ x: p.clientX, y: p.clientY }));
|
|
3447
3447
|
}, [c, d]);
|
|
3448
|
-
return
|
|
3448
|
+
return T(() => {
|
|
3449
3449
|
l && h({ ...l });
|
|
3450
|
-
}, [l]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: i }, className: `big-container ${t}`, onMouseDown: j, onMouseUp:
|
|
3450
|
+
}, [l]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: i }, className: `big-container ${t}`, onMouseDown: j, onMouseUp: x, onMouseMove: f, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: m.x, top: m.y }, children: n }) });
|
|
3451
3451
|
}, Ds = ({
|
|
3452
3452
|
onClick: n,
|
|
3453
3453
|
onContextMenu: t,
|
|
@@ -3460,17 +3460,17 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3460
3460
|
classNameColumn: a,
|
|
3461
3461
|
minColumnWidth: d = "auto"
|
|
3462
3462
|
}) => {
|
|
3463
|
-
const u = ne.useCallback((
|
|
3464
|
-
const f = Array.from({ length:
|
|
3463
|
+
const u = ne.useCallback((x, j) => {
|
|
3464
|
+
const f = Array.from({ length: x }, () => []);
|
|
3465
3465
|
return j.forEach((p) => {
|
|
3466
3466
|
if (p.indexCol >= f.length) {
|
|
3467
|
-
console.error(`Invalid column index. indexCol = ${p.indexCol}, column count = ${
|
|
3467
|
+
console.error(`Invalid column index. indexCol = ${p.indexCol}, column count = ${x}`);
|
|
3468
3468
|
return;
|
|
3469
3469
|
}
|
|
3470
3470
|
f[p.indexCol].push(p.node);
|
|
3471
3471
|
}), f;
|
|
3472
|
-
}, []),
|
|
3473
|
-
c == null || c(
|
|
3472
|
+
}, []), m = ne.useMemo(() => u(l, o), [u, l, o]), h = ne.useCallback((x, j) => {
|
|
3473
|
+
c == null || c(x, j);
|
|
3474
3474
|
}, [c]);
|
|
3475
3475
|
return /* @__PURE__ */ e.jsx(
|
|
3476
3476
|
"div",
|
|
@@ -3484,13 +3484,13 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3484
3484
|
},
|
|
3485
3485
|
className: `${s} alex-evo-sh-ui-kit-column-layout`,
|
|
3486
3486
|
"data-testid": "column-layout-container",
|
|
3487
|
-
children:
|
|
3487
|
+
children: m.map((x, j) => /* @__PURE__ */ e.jsx(
|
|
3488
3488
|
"div",
|
|
3489
3489
|
{
|
|
3490
3490
|
onClick: (f) => h(j, f),
|
|
3491
3491
|
className: `${a} alex-evo-sh-ui-kit-column-layout-coll`,
|
|
3492
3492
|
"data-testid": `column-${j}`,
|
|
3493
|
-
children:
|
|
3493
|
+
children: x.map((f, p) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: f }, `item-${j}-${p}`))
|
|
3494
3494
|
},
|
|
3495
3495
|
`column-${j}`
|
|
3496
3496
|
))
|
|
@@ -3507,12 +3507,12 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3507
3507
|
action: c,
|
|
3508
3508
|
onVisibilityChange: a
|
|
3509
3509
|
}) => {
|
|
3510
|
-
const [d, u] = g(l ? o : !0),
|
|
3510
|
+
const [d, u] = g(l ? o : !0), m = Z(null), h = (p) => {
|
|
3511
3511
|
if (!p) return;
|
|
3512
3512
|
const _ = Ye(p);
|
|
3513
3513
|
if (_)
|
|
3514
3514
|
return _.height + fr;
|
|
3515
|
-
},
|
|
3515
|
+
}, x = (p) => {
|
|
3516
3516
|
const _ = h(p);
|
|
3517
3517
|
return _ ? Math.min(_ * jr, 1) : 0.4;
|
|
3518
3518
|
}, j = (p) => {
|
|
@@ -3522,12 +3522,12 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3522
3522
|
u(y), a == null || a(y);
|
|
3523
3523
|
}
|
|
3524
3524
|
};
|
|
3525
|
-
|
|
3525
|
+
T(() => {
|
|
3526
3526
|
!l && !d && (u(!0), a == null || a(!0));
|
|
3527
3527
|
}, [l, d, a]);
|
|
3528
3528
|
const f = oe(
|
|
3529
|
-
() => m
|
|
3530
|
-
[
|
|
3529
|
+
() => x(m.current),
|
|
3530
|
+
[m.current]
|
|
3531
3531
|
);
|
|
3532
3532
|
return /* @__PURE__ */ e.jsxs(
|
|
3533
3533
|
"div",
|
|
@@ -3581,7 +3581,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3581
3581
|
height: d ? "auto" : "0px"
|
|
3582
3582
|
},
|
|
3583
3583
|
"aria-hidden": !d,
|
|
3584
|
-
children: /* @__PURE__ */ e.jsx("div", { className: "content-box-container", ref:
|
|
3584
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "content-box-container", ref: m, children: n })
|
|
3585
3585
|
}
|
|
3586
3586
|
)
|
|
3587
3587
|
]
|
|
@@ -3604,37 +3604,37 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3604
3604
|
itemMaxWith: o,
|
|
3605
3605
|
itemWith: c = "400px"
|
|
3606
3606
|
}) => {
|
|
3607
|
-
const a =
|
|
3607
|
+
const a = Z(null), [d, u] = g([]), m = Z(null), h = Z(null), x = b(() => {
|
|
3608
3608
|
if (!a.current) return;
|
|
3609
3609
|
a.current.style.display = "grid", a.current.style.gridRowGap = s, a.current.style.gridColumnGap = i;
|
|
3610
|
-
const _ = l ?? c,
|
|
3611
|
-
a.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${_}, ${
|
|
3612
|
-
}, [s, i, l, o, c]), j =
|
|
3610
|
+
const _ = l ?? c, k = o ?? c;
|
|
3611
|
+
a.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${_}, ${k}))`, a.current.style.gridAutoRows = "1px";
|
|
3612
|
+
}, [s, i, l, o, c]), j = b(() => {
|
|
3613
3613
|
if (a.current) {
|
|
3614
3614
|
const _ = a.current.querySelectorAll(".adaptiv-grid-item");
|
|
3615
3615
|
u(Array.from(_));
|
|
3616
3616
|
}
|
|
3617
|
-
}, []), f =
|
|
3617
|
+
}, []), f = b(() => {
|
|
3618
3618
|
if (!a.current) return;
|
|
3619
|
-
const _ = window.getComputedStyle(a.current),
|
|
3619
|
+
const _ = window.getComputedStyle(a.current), k = parseInt(_.getPropertyValue("grid-row-gap")) || 0, y = parseInt(_.getPropertyValue("grid-auto-rows")) || 1;
|
|
3620
3620
|
d.forEach((v) => {
|
|
3621
3621
|
const M = v.querySelector(".adaptiv-grid-item-container");
|
|
3622
3622
|
if (M) {
|
|
3623
|
-
const
|
|
3624
|
-
v.style.gridRowEnd = `span ${
|
|
3623
|
+
const V = M.getBoundingClientRect().height, W = Math.ceil((V + k) / (y + k));
|
|
3624
|
+
v.style.gridRowEnd = `span ${W}`;
|
|
3625
3625
|
}
|
|
3626
3626
|
});
|
|
3627
|
-
}, [d]), p =
|
|
3627
|
+
}, [d]), p = b(() => {
|
|
3628
3628
|
h.current !== null && cancelAnimationFrame(h.current), h.current = requestAnimationFrame(() => {
|
|
3629
3629
|
f(), h.current = null;
|
|
3630
3630
|
});
|
|
3631
3631
|
}, [f]);
|
|
3632
|
-
return
|
|
3633
|
-
|
|
3634
|
-
}, [
|
|
3635
|
-
|
|
3636
|
-
const _ =
|
|
3637
|
-
return d.forEach((
|
|
3632
|
+
return T(() => {
|
|
3633
|
+
x(), j();
|
|
3634
|
+
}, [x, j, t]), T(() => {
|
|
3635
|
+
m.current && m.current.disconnect(), m.current = new ResizeObserver(() => p());
|
|
3636
|
+
const _ = m.current;
|
|
3637
|
+
return d.forEach((k) => _.observe(k)), p(), () => {
|
|
3638
3638
|
_.disconnect(), h.current !== null && cancelAnimationFrame(h.current);
|
|
3639
3639
|
};
|
|
3640
3640
|
}, [d, p]), /* @__PURE__ */ e.jsx(
|
|
@@ -3679,26 +3679,26 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3679
3679
|
activeTabIndex: l,
|
|
3680
3680
|
tabContainerClassName: o = ""
|
|
3681
3681
|
}) => {
|
|
3682
|
-
const [c, a] = g(0), d = l !== void 0 ? l : c, u =
|
|
3682
|
+
const [c, a] = g(0), d = l !== void 0 ? l : c, u = Z(null), m = Z(null), [h, x] = g(!1), j = (_) => {
|
|
3683
3683
|
if (u.current) {
|
|
3684
|
-
const
|
|
3684
|
+
const k = t || u.current.offsetWidth / 2;
|
|
3685
3685
|
u.current.scrollBy({
|
|
3686
|
-
left: _ === "left" ? -
|
|
3686
|
+
left: _ === "left" ? -k : k,
|
|
3687
3687
|
behavior: "smooth"
|
|
3688
3688
|
});
|
|
3689
3689
|
}
|
|
3690
3690
|
};
|
|
3691
|
-
|
|
3691
|
+
T(() => {
|
|
3692
3692
|
const _ = () => {
|
|
3693
|
-
u.current &&
|
|
3693
|
+
u.current && x(
|
|
3694
3694
|
u.current.scrollWidth > u.current.clientWidth
|
|
3695
3695
|
);
|
|
3696
3696
|
};
|
|
3697
3697
|
return _(), window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
|
|
3698
|
-
}, []),
|
|
3699
|
-
if (u.current &&
|
|
3698
|
+
}, []), T(() => {
|
|
3699
|
+
if (u.current && m.current) {
|
|
3700
3700
|
const _ = u.current.children[d];
|
|
3701
|
-
_ && (
|
|
3701
|
+
_ && (m.current.style.width = `${_.offsetWidth}px`, m.current.style.transform = `translateX(${_.offsetLeft}px)`);
|
|
3702
3702
|
}
|
|
3703
3703
|
}, [d]);
|
|
3704
3704
|
const f = (_) => {
|
|
@@ -3717,16 +3717,16 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3717
3717
|
onKeyDown: f,
|
|
3718
3718
|
tabIndex: 0,
|
|
3719
3719
|
children: [
|
|
3720
|
-
n.map((_,
|
|
3720
|
+
n.map((_, k) => /* @__PURE__ */ e.jsx(
|
|
3721
3721
|
"div",
|
|
3722
3722
|
{
|
|
3723
|
-
className: `alex-evo-ui-kit-tab ${r} ${d ===
|
|
3724
|
-
onClick: () => p(
|
|
3723
|
+
className: `alex-evo-ui-kit-tab ${r} ${d === k ? s : ""}`,
|
|
3724
|
+
onClick: () => p(k),
|
|
3725
3725
|
children: _.label
|
|
3726
3726
|
},
|
|
3727
3727
|
_.label
|
|
3728
3728
|
)),
|
|
3729
|
-
/* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-indicator", ref:
|
|
3729
|
+
/* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-indicator", ref: m })
|
|
3730
3730
|
]
|
|
3731
3731
|
}
|
|
3732
3732
|
),
|
|
@@ -3746,9 +3746,9 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3746
3746
|
flex: a,
|
|
3747
3747
|
gap: d = 0,
|
|
3748
3748
|
onObserv: u,
|
|
3749
|
-
...
|
|
3749
|
+
...m
|
|
3750
3750
|
}, h) => {
|
|
3751
|
-
const
|
|
3751
|
+
const x = Z(null), j = {
|
|
3752
3752
|
overflowY: r ? s ? "scroll" : "hidden" : void 0,
|
|
3753
3753
|
maxHeight: r,
|
|
3754
3754
|
backgroundColor: i ? "transparent" : void 0,
|
|
@@ -3756,10 +3756,10 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3756
3756
|
padding: o,
|
|
3757
3757
|
margin: c
|
|
3758
3758
|
};
|
|
3759
|
-
a && (j.display = "flex", j.flexDirection = "column", d > 0 && (j.gap = d)),
|
|
3760
|
-
if (!
|
|
3759
|
+
a && (j.display = "flex", j.flexDirection = "column", d > 0 && (j.gap = d)), T(() => {
|
|
3760
|
+
if (!x.current || !u) return;
|
|
3761
3761
|
const p = new IntersectionObserver(u);
|
|
3762
|
-
return p.observe(
|
|
3762
|
+
return p.observe(x.current), () => p.disconnect();
|
|
3763
3763
|
}, [u]);
|
|
3764
3764
|
const f = [
|
|
3765
3765
|
"list-container",
|
|
@@ -3767,9 +3767,9 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3767
3767
|
s ? "list-container_scroll" : "",
|
|
3768
3768
|
i ? "list-container_transparent" : ""
|
|
3769
3769
|
].filter(Boolean).join(" ");
|
|
3770
|
-
return /* @__PURE__ */ e.jsxs("ul", { ref: h, style: j, className: f, ...
|
|
3770
|
+
return /* @__PURE__ */ e.jsxs("ul", { ref: h, style: j, className: f, ...m, children: [
|
|
3771
3771
|
n,
|
|
3772
|
-
/* @__PURE__ */ e.jsx("div", { ref:
|
|
3772
|
+
/* @__PURE__ */ e.jsx("div", { ref: x })
|
|
3773
3773
|
] });
|
|
3774
3774
|
}), Cr = ve(({
|
|
3775
3775
|
icon: n,
|
|
@@ -3783,22 +3783,22 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3783
3783
|
className: a = "",
|
|
3784
3784
|
disabled: d = !1,
|
|
3785
3785
|
active: u = !1,
|
|
3786
|
-
shadow:
|
|
3786
|
+
shadow: m = 0,
|
|
3787
3787
|
noTransformTransition: h,
|
|
3788
|
-
...
|
|
3788
|
+
...x
|
|
3789
3789
|
}, j) => {
|
|
3790
3790
|
const f = (_) => {
|
|
3791
3791
|
!d && !_.target.closest(".control-container") && (o == null || o(_));
|
|
3792
3792
|
}, p = [
|
|
3793
3793
|
"list-item-container",
|
|
3794
3794
|
a,
|
|
3795
|
-
`container_shadow-hover-${
|
|
3795
|
+
`container_shadow-hover-${m}`,
|
|
3796
3796
|
c && !d ? "list-item-container_hovered" : "",
|
|
3797
3797
|
d ? "list-item-container_disabled" : "",
|
|
3798
3798
|
u ? "list-item-container_active" : "",
|
|
3799
3799
|
h ? "no-transform-transition" : ""
|
|
3800
3800
|
].filter(Boolean).join(" ");
|
|
3801
|
-
return /* @__PURE__ */ e.jsxs("li", { ref: j, className: p, onClick: f, "aria-disabled": d, ...
|
|
3801
|
+
return /* @__PURE__ */ e.jsxs("li", { ref: j, className: p, onClick: f, "aria-disabled": d, ...x, children: [
|
|
3802
3802
|
(n || l) && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__icon-container", children: n || l && /* @__PURE__ */ e.jsx(U, { type: "body", children: l }) }),
|
|
3803
3803
|
(s || r || i) && /* @__PURE__ */ e.jsxs("div", { className: "list-item-container__text-container", children: [
|
|
3804
3804
|
s && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__header", children: /* @__PURE__ */ e.jsx(U, { type: "title", children: s }) }),
|
|
@@ -3852,17 +3852,17 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
|
|
|
3852
3852
|
index: c,
|
|
3853
3853
|
maxH: a
|
|
3854
3854
|
}) => {
|
|
3855
|
-
const d =
|
|
3855
|
+
const d = b(
|
|
3856
3856
|
(u) => {
|
|
3857
3857
|
u.target.closest(".no-click") || o == null || o(t, c);
|
|
3858
3858
|
},
|
|
3859
3859
|
[c, o, t]
|
|
3860
3860
|
);
|
|
3861
3861
|
return /* @__PURE__ */ e.jsxs("tr", { className: "table-row", onClick: d, children: [
|
|
3862
|
-
r.map((u,
|
|
3862
|
+
r.map((u, m) => /* @__PURE__ */ e.jsx(
|
|
3863
3863
|
br,
|
|
3864
3864
|
{
|
|
3865
|
-
H: a == null ? void 0 : a[
|
|
3865
|
+
H: a == null ? void 0 : a[m],
|
|
3866
3866
|
color: u.color,
|
|
3867
3867
|
backgroundColor: u.backgroundColor,
|
|
3868
3868
|
column: u,
|
|
@@ -3870,19 +3870,19 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
|
|
|
3870
3870
|
},
|
|
3871
3871
|
u.field
|
|
3872
3872
|
)),
|
|
3873
|
-
n && /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((u,
|
|
3874
|
-
|
|
3873
|
+
n && /* @__PURE__ */ e.jsx("td", { className: "w-[180px] no-click", children: /* @__PURE__ */ e.jsx("div", { className: "table-edit-button", children: n.map((u, m) => /* @__PURE__ */ e.jsx(
|
|
3874
|
+
ue,
|
|
3875
3875
|
{
|
|
3876
3876
|
transparent: !0,
|
|
3877
3877
|
icon: u.icon,
|
|
3878
3878
|
onClick: (h) => u.onClick(h, t, c)
|
|
3879
3879
|
},
|
|
3880
|
-
|
|
3880
|
+
m
|
|
3881
3881
|
)) }) }),
|
|
3882
3882
|
(s || i || l) && /* @__PURE__ */ e.jsx("td", { className: "w-[180px] table-edit-button no-click", children: /* @__PURE__ */ e.jsxs("div", { className: "table-edit-button", children: [
|
|
3883
|
-
l && /* @__PURE__ */ e.jsx(
|
|
3883
|
+
l && /* @__PURE__ */ e.jsx(ue, { transparent: !0, icon: /* @__PURE__ */ e.jsx($n, {}), onClick: () => l(t, c) }),
|
|
3884
3884
|
i && /* @__PURE__ */ e.jsx(
|
|
3885
|
-
|
|
3885
|
+
ue,
|
|
3886
3886
|
{
|
|
3887
3887
|
transparent: !0,
|
|
3888
3888
|
icon: /* @__PURE__ */ e.jsx(Nn, { className: "text-red-500" }),
|
|
@@ -3890,7 +3890,7 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
),
|
|
3892
3892
|
s && /* @__PURE__ */ e.jsx(
|
|
3893
|
-
|
|
3893
|
+
ue,
|
|
3894
3894
|
{
|
|
3895
3895
|
transparent: !0,
|
|
3896
3896
|
icon: /* @__PURE__ */ e.jsx(Mn, {}),
|
|
@@ -3920,31 +3920,31 @@ const br = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
|
|
|
3920
3920
|
children: j.content
|
|
3921
3921
|
},
|
|
3922
3922
|
f
|
|
3923
|
-
)) : null,
|
|
3924
|
-
return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${c ? "clicked" : ""} ${
|
|
3923
|
+
)) : null, m = `container_shadow-${o}`;
|
|
3924
|
+
return /* @__PURE__ */ e.jsx("div", { className: `table-container mt-3 ${c ? "clicked" : ""} ${m}`, children: /* @__PURE__ */ e.jsxs("table", { children: [
|
|
3925
3925
|
/* @__PURE__ */ e.jsx("thead", { children: /* @__PURE__ */ e.jsxs("tr", { children: [
|
|
3926
3926
|
a.map((h) => /* @__PURE__ */ e.jsx("th", { className: "min-width", children: h.title }, h.field)),
|
|
3927
3927
|
l && /* @__PURE__ */ e.jsx("th", { className: "table-actions-header", children: "actions" }),
|
|
3928
3928
|
(r || s || i) && /* @__PURE__ */ e.jsx("th", { className: "table-actions-header" })
|
|
3929
3929
|
] }) }),
|
|
3930
|
-
/* @__PURE__ */ e.jsx("tbody", { children: n.map((h,
|
|
3930
|
+
/* @__PURE__ */ e.jsx("tbody", { children: n.map((h, x) => {
|
|
3931
3931
|
if ("__all__" in h) {
|
|
3932
3932
|
const j = gr(h.__all__);
|
|
3933
|
-
return /* @__PURE__ */ e.jsx("tr", { className: "table-all-row", children: /* @__PURE__ */ e.jsx("td", { colSpan: d, style: { backgroundColor: j == null ? void 0 : j.backgroundColor, color: j == null ? void 0 : j.color }, children: u(j) }) }, `all-${
|
|
3933
|
+
return /* @__PURE__ */ e.jsx("tr", { className: "table-all-row", children: /* @__PURE__ */ e.jsx("td", { colSpan: d, style: { backgroundColor: j == null ? void 0 : j.backgroundColor, color: j == null ? void 0 : j.color }, children: u(j) }) }, `all-${x}`);
|
|
3934
3934
|
}
|
|
3935
3935
|
return /* @__PURE__ */ e.jsx(
|
|
3936
3936
|
kr,
|
|
3937
3937
|
{
|
|
3938
3938
|
onClickRow: c,
|
|
3939
3939
|
actions: l,
|
|
3940
|
-
index:
|
|
3940
|
+
index: x,
|
|
3941
3941
|
columns: a,
|
|
3942
3942
|
item: h,
|
|
3943
3943
|
onDelete: r,
|
|
3944
3944
|
onContextMenu: s,
|
|
3945
3945
|
onEdit: i
|
|
3946
3946
|
},
|
|
3947
|
-
|
|
3947
|
+
x
|
|
3948
3948
|
);
|
|
3949
3949
|
}) })
|
|
3950
3950
|
] }) });
|
|
@@ -4129,7 +4129,7 @@ function Er(n, t, r, s) {
|
|
|
4129
4129
|
Fr(i, r, t, s);
|
|
4130
4130
|
});
|
|
4131
4131
|
}
|
|
4132
|
-
function
|
|
4132
|
+
function xn(n, t, r, s) {
|
|
4133
4133
|
if (n.preventDefault(), !t) return;
|
|
4134
4134
|
const i = t.getBoundingClientRect();
|
|
4135
4135
|
let l = n.clientY - i.top;
|
|
@@ -4138,8 +4138,8 @@ function mn(n, t, r, s) {
|
|
|
4138
4138
|
s(c), qn(r, l);
|
|
4139
4139
|
}
|
|
4140
4140
|
function Fr(n, t, r, s) {
|
|
4141
|
-
const i = (o) =>
|
|
4142
|
-
|
|
4141
|
+
const i = (o) => xn(o, r, t, s);
|
|
4142
|
+
xn(n, r, t, s), t.classList.add("dragging"), window.addEventListener("mousemove", i), window.addEventListener("mouseup", l);
|
|
4143
4143
|
function l() {
|
|
4144
4144
|
t.classList.remove("dragging"), window.removeEventListener("mousemove", i), window.removeEventListener("mouseup", l);
|
|
4145
4145
|
}
|
|
@@ -4160,11 +4160,11 @@ const Vr = [
|
|
|
4160
4160
|
"#D27AEE",
|
|
4161
4161
|
"#5BA8C4",
|
|
4162
4162
|
"#E64AA9"
|
|
4163
|
-
],
|
|
4163
|
+
], mn = { h: 0, s: 1, v: 0.5 }, Tr = (n) => {
|
|
4164
4164
|
try {
|
|
4165
|
-
return n ? De(Ne(n)) :
|
|
4165
|
+
return n ? De(Ne(n)) : mn;
|
|
4166
4166
|
} catch {
|
|
4167
|
-
return
|
|
4167
|
+
return mn;
|
|
4168
4168
|
}
|
|
4169
4169
|
}, Or = ({
|
|
4170
4170
|
onHide: n,
|
|
@@ -4177,48 +4177,48 @@ const Vr = [
|
|
|
4177
4177
|
width: c = 310,
|
|
4178
4178
|
height: a = "auto"
|
|
4179
4179
|
}) => {
|
|
4180
|
-
const d =
|
|
4181
|
-
`#${ke(Le(
|
|
4182
|
-
), y = oe(() => Le(
|
|
4180
|
+
const d = Z(null), u = Z(null), m = Z(null), h = Z(null), [x, j] = g(Tr(t)), [f, p] = g(!1), [_, k] = g(
|
|
4181
|
+
`#${ke(Le(x))}`
|
|
4182
|
+
), y = oe(() => Le(x), [x]), v = oe(() => `#${ke(y)}`, [y]), M = oe(
|
|
4183
4183
|
() => _[0] !== "#" ? `#${_}` : _,
|
|
4184
4184
|
[_]
|
|
4185
4185
|
);
|
|
4186
|
-
|
|
4187
|
-
!
|
|
4188
|
-
|
|
4186
|
+
T(() => {
|
|
4187
|
+
!m.current || !d.current || !u.current || !h.current || V(
|
|
4188
|
+
m.current,
|
|
4189
4189
|
h.current,
|
|
4190
4190
|
d.current,
|
|
4191
4191
|
u.current,
|
|
4192
|
-
|
|
4192
|
+
x
|
|
4193
4193
|
);
|
|
4194
|
-
}, [
|
|
4195
|
-
if (!
|
|
4196
|
-
const N =
|
|
4194
|
+
}, [x]), T(() => {
|
|
4195
|
+
if (!m.current || !h.current) return;
|
|
4196
|
+
const N = m.current.getContext("2d");
|
|
4197
4197
|
N && (Mr(
|
|
4198
4198
|
N,
|
|
4199
|
-
|
|
4200
|
-
`#${ke(Le(
|
|
4199
|
+
m.current,
|
|
4200
|
+
`#${ke(Le(x.h, 1, 1))}`
|
|
4201
4201
|
), Lr(
|
|
4202
|
-
|
|
4202
|
+
m.current,
|
|
4203
4203
|
N,
|
|
4204
4204
|
h.current,
|
|
4205
4205
|
(I, S) => {
|
|
4206
|
-
j((
|
|
4207
|
-
const
|
|
4208
|
-
return
|
|
4206
|
+
j((E) => {
|
|
4207
|
+
const O = { ...E, s: I / 100, v: S / 100 };
|
|
4208
|
+
return k(ke(Le(O))), O;
|
|
4209
4209
|
});
|
|
4210
4210
|
}
|
|
4211
4211
|
));
|
|
4212
|
-
}, [
|
|
4212
|
+
}, [x.h]), T(() => {
|
|
4213
4213
|
if (!d.current || !u.current) return;
|
|
4214
4214
|
const N = d.current.getContext("2d");
|
|
4215
4215
|
N && (Rr(N, d.current), Er(N, d.current, u.current, (I) => {
|
|
4216
4216
|
j((S) => {
|
|
4217
|
-
const
|
|
4218
|
-
return
|
|
4217
|
+
const E = { ...S, h: I / 360 };
|
|
4218
|
+
return k(ke(Le(E))), E;
|
|
4219
4219
|
});
|
|
4220
4220
|
}));
|
|
4221
|
-
}, []),
|
|
4221
|
+
}, []), T(() => {
|
|
4222
4222
|
if (_.length === 4 || _.length === 7)
|
|
4223
4223
|
try {
|
|
4224
4224
|
j(De(Ne(_)));
|
|
@@ -4226,34 +4226,34 @@ const Vr = [
|
|
|
4226
4226
|
console.warn("Invalid HEX color");
|
|
4227
4227
|
}
|
|
4228
4228
|
}, [_]);
|
|
4229
|
-
const
|
|
4229
|
+
const V = (N, I, S, E, O) => {
|
|
4230
4230
|
try {
|
|
4231
|
-
const
|
|
4232
|
-
Kn(I,
|
|
4233
|
-
} catch (
|
|
4234
|
-
console.error("Error updating cursor positions",
|
|
4231
|
+
const A = N.getBoundingClientRect(), K = S.getBoundingClientRect(), Y = Math.round(O.s * A.width), C = Math.round((1 - O.v) * A.height), L = (360 - O.h * 360) / 360 * K.height;
|
|
4232
|
+
Kn(I, Y, C), qn(E, L);
|
|
4233
|
+
} catch (A) {
|
|
4234
|
+
console.error("Error updating cursor positions", A);
|
|
4235
4235
|
}
|
|
4236
|
-
},
|
|
4236
|
+
}, W = (N) => {
|
|
4237
4237
|
try {
|
|
4238
|
-
j(De(Ne(N))),
|
|
4238
|
+
j(De(Ne(N))), k(N);
|
|
4239
4239
|
} catch {
|
|
4240
4240
|
console.warn("Invalid color format");
|
|
4241
4241
|
}
|
|
4242
|
-
},
|
|
4242
|
+
}, z = b(() => {
|
|
4243
4243
|
s == null || s([...o, v]);
|
|
4244
|
-
}, [s, o, v]), w =
|
|
4244
|
+
}, [s, o, v]), w = b(() => {
|
|
4245
4245
|
r == null || r(v), i && (n == null || n());
|
|
4246
|
-
}, [r, v]),
|
|
4246
|
+
}, [r, v]), P = b(
|
|
4247
4247
|
(N, I) => {
|
|
4248
4248
|
const S = Math.min(255, Math.max(0, I));
|
|
4249
|
-
j(De({ ...y, [N]: S })),
|
|
4249
|
+
j(De({ ...y, [N]: S })), k(ke({ ...y, [N]: S }));
|
|
4250
4250
|
},
|
|
4251
4251
|
[y]
|
|
4252
|
-
), D =
|
|
4253
|
-
|
|
4254
|
-
}, []),
|
|
4255
|
-
l && (r == null || r(l), i && (n == null || n()),
|
|
4256
|
-
}, [l, r,
|
|
4252
|
+
), D = b((N) => {
|
|
4253
|
+
k(N);
|
|
4254
|
+
}, []), R = b(() => {
|
|
4255
|
+
l && (r == null || r(l), i && (n == null || n()), W(l));
|
|
4256
|
+
}, [l, r, W]);
|
|
4257
4257
|
return /* @__PURE__ */ e.jsxs(
|
|
4258
4258
|
Ze,
|
|
4259
4259
|
{
|
|
@@ -4266,7 +4266,7 @@ const Vr = [
|
|
|
4266
4266
|
/* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Vr.map((N, I) => /* @__PURE__ */ e.jsx(
|
|
4267
4267
|
"button",
|
|
4268
4268
|
{
|
|
4269
|
-
onClick: () =>
|
|
4269
|
+
onClick: () => W(N),
|
|
4270
4270
|
className: "swatch",
|
|
4271
4271
|
style: { backgroundColor: N },
|
|
4272
4272
|
"aria-label": `Color ${N}`
|
|
@@ -4296,7 +4296,7 @@ const Vr = [
|
|
|
4296
4296
|
/* @__PURE__ */ e.jsx(
|
|
4297
4297
|
"canvas",
|
|
4298
4298
|
{
|
|
4299
|
-
ref:
|
|
4299
|
+
ref: m,
|
|
4300
4300
|
className: "spectrum-canvas spectrum-canvas-color-picker",
|
|
4301
4301
|
"aria-label": "Color spectrum"
|
|
4302
4302
|
}
|
|
@@ -4334,7 +4334,7 @@ const Vr = [
|
|
|
4334
4334
|
max: "255",
|
|
4335
4335
|
min: "0",
|
|
4336
4336
|
value: y[N],
|
|
4337
|
-
onChange: (I) =>
|
|
4337
|
+
onChange: (I) => P(N, Number(I.target.value)),
|
|
4338
4338
|
className: "field-input rgb-input",
|
|
4339
4339
|
"aria-label": `${N.toUpperCase()} value`
|
|
4340
4340
|
}
|
|
@@ -4368,7 +4368,7 @@ const Vr = [
|
|
|
4368
4368
|
/* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: o.map((N, I) => /* @__PURE__ */ e.jsx(
|
|
4369
4369
|
"button",
|
|
4370
4370
|
{
|
|
4371
|
-
onClick: () =>
|
|
4371
|
+
onClick: () => W(N),
|
|
4372
4372
|
className: "swatch",
|
|
4373
4373
|
style: { backgroundColor: N },
|
|
4374
4374
|
"aria-label": `User color ${N}`
|
|
@@ -4380,7 +4380,7 @@ const Vr = [
|
|
|
4380
4380
|
/* @__PURE__ */ e.jsxs(
|
|
4381
4381
|
"button",
|
|
4382
4382
|
{
|
|
4383
|
-
onClick:
|
|
4383
|
+
onClick: z,
|
|
4384
4384
|
className: "button-color-picker add-swatch",
|
|
4385
4385
|
"aria-label": "Add current color to swatches",
|
|
4386
4386
|
children: [
|
|
@@ -4398,7 +4398,7 @@ const Vr = [
|
|
|
4398
4398
|
l && /* @__PURE__ */ e.jsxs(
|
|
4399
4399
|
"button",
|
|
4400
4400
|
{
|
|
4401
|
-
onClick:
|
|
4401
|
+
onClick: R,
|
|
4402
4402
|
className: "button-color-picker add-swatch",
|
|
4403
4403
|
"aria-label": "Set default color",
|
|
4404
4404
|
children: [
|
|
@@ -4429,19 +4429,19 @@ const Vr = [
|
|
|
4429
4429
|
defaultColor: a,
|
|
4430
4430
|
placeholder: d
|
|
4431
4431
|
}) => {
|
|
4432
|
-
const [u,
|
|
4433
|
-
|
|
4434
|
-
s !== void 0 &&
|
|
4432
|
+
const [u, m] = g(!1), [h, x] = g(s);
|
|
4433
|
+
T(() => {
|
|
4434
|
+
s !== void 0 && x(s);
|
|
4435
4435
|
}, [s]);
|
|
4436
|
-
const j =
|
|
4437
|
-
|
|
4438
|
-
}, []), f =
|
|
4439
|
-
(
|
|
4440
|
-
|
|
4436
|
+
const j = b(() => {
|
|
4437
|
+
m(!0);
|
|
4438
|
+
}, []), f = b(
|
|
4439
|
+
(k) => {
|
|
4440
|
+
x(k), t == null || t(k), m(!1);
|
|
4441
4441
|
},
|
|
4442
4442
|
[t]
|
|
4443
|
-
), p =
|
|
4444
|
-
|
|
4443
|
+
), p = b(() => {
|
|
4444
|
+
m(!1);
|
|
4445
4445
|
}, []), _ = [
|
|
4446
4446
|
"input-field",
|
|
4447
4447
|
"color-field",
|
|
@@ -4486,7 +4486,7 @@ const Vr = [
|
|
|
4486
4486
|
}
|
|
4487
4487
|
) })
|
|
4488
4488
|
] });
|
|
4489
|
-
}, Ar = 2050, fn = 1900,
|
|
4489
|
+
}, Ar = 2050, fn = 1900, me = [
|
|
4490
4490
|
"January",
|
|
4491
4491
|
"February",
|
|
4492
4492
|
"March",
|
|
@@ -4500,16 +4500,16 @@ const Vr = [
|
|
|
4500
4500
|
"November",
|
|
4501
4501
|
"December"
|
|
4502
4502
|
], Dr = () => Array(Ar - fn).fill(0).map((n, t) => fn + t), Ir = ({ onChange: n, onHide: t }) => {
|
|
4503
|
-
const [r] = g(
|
|
4503
|
+
const [r] = g(me[(/* @__PURE__ */ new Date()).getMonth()]), [s] = g((/* @__PURE__ */ new Date()).getFullYear()), [i] = g((/* @__PURE__ */ new Date()).getDate()), [l, o] = g(me[(/* @__PURE__ */ new Date()).getMonth()]), [c, a] = g((/* @__PURE__ */ new Date()).getFullYear()), [d, u] = g({
|
|
4504
4504
|
day: (/* @__PURE__ */ new Date()).getDate(),
|
|
4505
4505
|
type: "NOW_MONTH"
|
|
4506
4506
|
/* NOW_MONTH */
|
|
4507
|
-
}), [
|
|
4507
|
+
}), [m, h] = g(
|
|
4508
4508
|
"DAYS"
|
|
4509
4509
|
/* DAYS */
|
|
4510
|
-
),
|
|
4511
|
-
let
|
|
4512
|
-
return
|
|
4510
|
+
), x = (v, M) => new Date(v, M + 1, 0).getDate(), j = (v, M, V) => new Date(v, M, V).getDay(), f = (v, M) => {
|
|
4511
|
+
let V = Array(x(v, M)).fill(0).map((P, D) => ({ type: "NOW_MONTH", day: D + 1 })), W = j(v, M, x(v, M)), z = Array(7 - W).fill(0).map((P, D) => ({ type: "NEXT_MONTH", day: D + 1 }));
|
|
4512
|
+
return V = Array(j(v, M, 0)).fill(0).map((P, D) => ({ type: "PREV_MONTH", day: x(M ? v : v - 1, M ? M - 1 : 11) - D })).reverse().concat(V).concat(z), V;
|
|
4513
4513
|
}, p = (v) => {
|
|
4514
4514
|
h(
|
|
4515
4515
|
"DAYS"
|
|
@@ -4520,15 +4520,15 @@ const Vr = [
|
|
|
4520
4520
|
"DAYS"
|
|
4521
4521
|
/* DAYS */
|
|
4522
4522
|
), o(v);
|
|
4523
|
-
},
|
|
4523
|
+
}, k = (v) => {
|
|
4524
4524
|
u(v);
|
|
4525
|
-
}, y =
|
|
4525
|
+
}, y = b(() => {
|
|
4526
4526
|
let v = /* @__PURE__ */ new Date();
|
|
4527
|
-
v.setFullYear(c), d.type === "NEXT_MONTH" ? l ===
|
|
4527
|
+
v.setFullYear(c), d.type === "NEXT_MONTH" ? l === me[11] ? (v.setMonth(0), v.setFullYear(c + 1)) : v.setMonth(me.indexOf(l) + 1) : d.type === "PREV_MONTH" ? l === me[0] ? (v.setMonth(11), v.setFullYear(c - 1)) : v.setMonth(me.indexOf(l) - 1) : v.setMonth(me.indexOf(l)), v.setDate(d.day), n && n(v.getFullYear(), v.getMonth(), v.getDate()), t && t();
|
|
4528
4528
|
}, [l, c, n, t, d]);
|
|
4529
4529
|
return /* @__PURE__ */ e.jsxs(Ze, { className: "calendar-body-container", style: { maxWidth: "328px" }, children: [
|
|
4530
4530
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-select-container", children: [
|
|
4531
|
-
/* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className:
|
|
4531
|
+
/* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className: m === "MONTHS" ? "active" : "", onClick: () => h(
|
|
4532
4532
|
"MONTHS"
|
|
4533
4533
|
/* MONTHS */
|
|
4534
4534
|
), children: [
|
|
@@ -4536,7 +4536,7 @@ const Vr = [
|
|
|
4536
4536
|
" ",
|
|
4537
4537
|
/* @__PURE__ */ e.jsx(Ie, {})
|
|
4538
4538
|
] }) }),
|
|
4539
|
-
/* @__PURE__ */ e.jsx("div", { className: "years", children: /* @__PURE__ */ e.jsxs("span", { className:
|
|
4539
|
+
/* @__PURE__ */ e.jsx("div", { className: "years", children: /* @__PURE__ */ e.jsxs("span", { className: m === "YEARS" ? "active" : "", onClick: () => h(
|
|
4540
4540
|
"YEARS"
|
|
4541
4541
|
/* YEARS */
|
|
4542
4542
|
), children: [
|
|
@@ -4545,10 +4545,10 @@ const Vr = [
|
|
|
4545
4545
|
/* @__PURE__ */ e.jsx(Ie, {})
|
|
4546
4546
|
] }) })
|
|
4547
4547
|
] }),
|
|
4548
|
-
|
|
4548
|
+
m === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: me.map((v, M) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => _(v), children: [
|
|
4549
4549
|
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === v ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
|
|
4550
4550
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: v })
|
|
4551
|
-
] }, M)) }) :
|
|
4551
|
+
] }, M)) }) : m === "YEARS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-years-container", children: Dr().map((v, M) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-year-item", onClick: () => p(v), children: [
|
|
4552
4552
|
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: c === v ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
|
|
4553
4553
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: v })
|
|
4554
4554
|
] }, M)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -4561,7 +4561,7 @@ const Vr = [
|
|
|
4561
4561
|
/* @__PURE__ */ e.jsx("span", { children: "S" }),
|
|
4562
4562
|
/* @__PURE__ */ e.jsx("span", { children: "S" })
|
|
4563
4563
|
] }),
|
|
4564
|
-
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: f(c,
|
|
4564
|
+
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: f(c, me.indexOf(l)).map((v, M) => /* @__PURE__ */ e.jsx("div", { className: `day ${v.type !== "NOW_MONTH" ? "other" : ""} ${i === v.day && c === s && l === r ? "now" : ""} ${v.day === d.day && v.type === d.type ? "select" : ""}`, onClick: () => k(v), children: v.day }, M)) })
|
|
4565
4565
|
] }),
|
|
4566
4566
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-action-container", children: [
|
|
4567
4567
|
/* @__PURE__ */ e.jsx(ce, { className: "little m-0", onClick: t, children: "Cancel" }),
|
|
@@ -4580,30 +4580,31 @@ const Vr = [
|
|
|
4580
4580
|
helperText: a,
|
|
4581
4581
|
size: d = "medium",
|
|
4582
4582
|
disabled: u,
|
|
4583
|
-
placeholder:
|
|
4583
|
+
placeholder: m,
|
|
4584
4584
|
onBlur: h,
|
|
4585
|
-
onFocus:
|
|
4586
|
-
|
|
4585
|
+
onFocus: x,
|
|
4586
|
+
onClear: j,
|
|
4587
|
+
...f
|
|
4587
4588
|
}) => {
|
|
4588
|
-
const [
|
|
4589
|
-
|
|
4590
|
-
},
|
|
4591
|
-
let
|
|
4592
|
-
return
|
|
4593
|
-
},
|
|
4594
|
-
let
|
|
4595
|
-
return
|
|
4596
|
-
},
|
|
4597
|
-
|
|
4598
|
-
},
|
|
4599
|
-
h == null || h(
|
|
4589
|
+
const [p, _] = g(s ?? ""), [k, y] = g(!1), [v, M] = g(!1), [V, W] = g(!!s), z = Be(), w = l || c, P = () => {
|
|
4590
|
+
y(!0);
|
|
4591
|
+
}, D = (O) => {
|
|
4592
|
+
let A = String(O + 1);
|
|
4593
|
+
return A.length < 2 && (A = "0" + A), A;
|
|
4594
|
+
}, R = (O) => {
|
|
4595
|
+
let A = String(O);
|
|
4596
|
+
return A.length < 2 && (A = "0" + A), A;
|
|
4597
|
+
}, N = (O) => {
|
|
4598
|
+
x == null || x(O), M(!0);
|
|
4599
|
+
}, I = (O) => {
|
|
4600
|
+
h == null || h(O), M(!1), W(!!O.target.value);
|
|
4600
4601
|
};
|
|
4601
|
-
|
|
4602
|
-
|
|
4602
|
+
T(() => {
|
|
4603
|
+
W(!!s);
|
|
4603
4604
|
}, [s]);
|
|
4604
|
-
const
|
|
4605
|
-
|
|
4606
|
-
}, [t]),
|
|
4605
|
+
const S = b((O, A, K) => {
|
|
4606
|
+
_(`${O}-${D(A)}-${R(K)}`), t && t(`${O}-${D(A)}-${R(K)}`);
|
|
4607
|
+
}, [t]), E = {
|
|
4607
4608
|
small: "input-field__date-field_small",
|
|
4608
4609
|
medium: "input-field__date-field_medium",
|
|
4609
4610
|
large: "input-field__date-field_large"
|
|
@@ -4612,14 +4613,14 @@ const Vr = [
|
|
|
4612
4613
|
/* @__PURE__ */ e.jsxs("div", { className: `
|
|
4613
4614
|
input-field
|
|
4614
4615
|
input-field__date-field
|
|
4615
|
-
${
|
|
4616
|
+
${E[d]}
|
|
4616
4617
|
${n ? "input-field_border" : ""}
|
|
4617
|
-
${
|
|
4618
|
-
${
|
|
4618
|
+
${v ? "input-field_active" : ""}
|
|
4619
|
+
${w ? "input-field_error" : ""}
|
|
4619
4620
|
${u ? "input-field_disabled" : ""}
|
|
4620
4621
|
`, children: [
|
|
4621
|
-
/* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick:
|
|
4622
|
-
/* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick:
|
|
4622
|
+
/* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: P, children: /* @__PURE__ */ e.jsx(Sn, {}) }),
|
|
4623
|
+
/* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick: P, children: [
|
|
4623
4624
|
/* @__PURE__ */ e.jsx(
|
|
4624
4625
|
"input",
|
|
4625
4626
|
{
|
|
@@ -4628,29 +4629,33 @@ const Vr = [
|
|
|
4628
4629
|
type: "date",
|
|
4629
4630
|
role: "textbox",
|
|
4630
4631
|
name: r,
|
|
4631
|
-
value:
|
|
4632
|
-
onBlur:
|
|
4633
|
-
onFocus:
|
|
4632
|
+
value: p,
|
|
4633
|
+
onBlur: I,
|
|
4634
|
+
onFocus: N,
|
|
4634
4635
|
readOnly: !0,
|
|
4635
|
-
id:
|
|
4636
|
-
...
|
|
4636
|
+
id: z,
|
|
4637
|
+
...f
|
|
4637
4638
|
}
|
|
4638
4639
|
),
|
|
4639
|
-
|
|
4640
|
+
m && /* @__PURE__ */ e.jsx(
|
|
4640
4641
|
"label",
|
|
4641
4642
|
{
|
|
4642
|
-
htmlFor:
|
|
4643
|
+
htmlFor: z,
|
|
4643
4644
|
className: `input-field__input-container__label
|
|
4644
|
-
${
|
|
4645
|
+
${V ? "input-field__input-container__label_filled" : ""}
|
|
4645
4646
|
`,
|
|
4646
|
-
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children:
|
|
4647
|
+
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: m })
|
|
4647
4648
|
}
|
|
4648
4649
|
)
|
|
4649
|
-
] })
|
|
4650
|
+
] }),
|
|
4651
|
+
j && s && !u && /* @__PURE__ */ e.jsx("div", { className: `
|
|
4652
|
+
input-field__icon-container
|
|
4653
|
+
input-field__icon-container_clear-btn
|
|
4654
|
+
`, onClick: j, children: /* @__PURE__ */ e.jsx(de, { "aria-label": "Clear input" }) })
|
|
4650
4655
|
] }),
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
a && !
|
|
4656
|
+
k ? /* @__PURE__ */ e.jsx(_e, { container: o, children: /* @__PURE__ */ e.jsx(Ir, { onChange: S, onHide: () => y(!1) }) }) : null,
|
|
4657
|
+
w && c && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: c }),
|
|
4658
|
+
a && !w && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: a })
|
|
4654
4659
|
] });
|
|
4655
4660
|
}, zr = {
|
|
4656
4661
|
Mon: "Mon",
|
|
@@ -4668,15 +4673,15 @@ const Vr = [
|
|
|
4668
4673
|
// Дефолтные значения
|
|
4669
4674
|
}) => {
|
|
4670
4675
|
const [i, l] = g(t ?? []);
|
|
4671
|
-
|
|
4676
|
+
T(() => {
|
|
4672
4677
|
t && l(t);
|
|
4673
4678
|
}, [t]);
|
|
4674
|
-
const o =
|
|
4679
|
+
const o = b((a) => (d) => {
|
|
4675
4680
|
l((u) => {
|
|
4676
|
-
const
|
|
4677
|
-
return n == null || n(
|
|
4681
|
+
const m = d.target.checked ? [...u, a] : u.filter((h) => h !== a);
|
|
4682
|
+
return n == null || n(m), m;
|
|
4678
4683
|
});
|
|
4679
|
-
}, [n]), c =
|
|
4684
|
+
}, [n]), c = b((a) => i.includes(a), [i]);
|
|
4680
4685
|
return /* @__PURE__ */ e.jsx("div", { className: `days-week-field-container ${r}`, children: Pr.map((a) => /* @__PURE__ */ e.jsxs("label", { className: "day-of-week-label", children: [
|
|
4681
4686
|
/* @__PURE__ */ e.jsx(
|
|
4682
4687
|
"input",
|
|
@@ -4704,49 +4709,49 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4704
4709
|
className: a,
|
|
4705
4710
|
ariaLabel: d = "Добавление нового элемента",
|
|
4706
4711
|
chipsAriaLabel: u = "Список элементов",
|
|
4707
|
-
id:
|
|
4712
|
+
id: m,
|
|
4708
4713
|
error: h,
|
|
4709
|
-
errorText:
|
|
4714
|
+
errorText: x,
|
|
4710
4715
|
helperText: j
|
|
4711
4716
|
}) => {
|
|
4712
|
-
const [f, p] = g([]), [_,
|
|
4713
|
-
|
|
4717
|
+
const [f, p] = g([]), [_, k] = g(""), [y, v] = g(null);
|
|
4718
|
+
T(() => {
|
|
4714
4719
|
p(Wr(t, o));
|
|
4715
4720
|
}, [t, o]);
|
|
4716
4721
|
const M = (w) => {
|
|
4717
|
-
|
|
4718
|
-
},
|
|
4719
|
-
w.key === "Enter" && (w.preventDefault(),
|
|
4720
|
-
},
|
|
4722
|
+
k(w);
|
|
4723
|
+
}, V = (w) => {
|
|
4724
|
+
w.key === "Enter" && (w.preventDefault(), W());
|
|
4725
|
+
}, W = b(() => {
|
|
4721
4726
|
if (_.trim() === "" || f.includes(_.trim()))
|
|
4722
4727
|
return;
|
|
4723
4728
|
const w = [...f, _.trim()];
|
|
4724
|
-
p(w), r == null || r(jn(w, o)),
|
|
4725
|
-
}, [f, _, r, o]),
|
|
4726
|
-
const
|
|
4727
|
-
p(
|
|
4729
|
+
p(w), r == null || r(jn(w, o)), k(""), v(w.length - 1);
|
|
4730
|
+
}, [f, _, r, o]), z = (w) => {
|
|
4731
|
+
const P = f.filter((D, R) => R !== w);
|
|
4732
|
+
p(P), r == null || r(jn(P, o)), v(w > 0 ? w - 1 : null);
|
|
4728
4733
|
};
|
|
4729
4734
|
return /* @__PURE__ */ e.jsxs(
|
|
4730
4735
|
"div",
|
|
4731
4736
|
{
|
|
4732
4737
|
className: `more-text ${a ?? ""}`,
|
|
4733
4738
|
style: { minWidth: n },
|
|
4734
|
-
id:
|
|
4739
|
+
id: m,
|
|
4735
4740
|
children: [
|
|
4736
4741
|
/* @__PURE__ */ e.jsx("div", { className: "add-value", children: /* @__PURE__ */ e.jsx(
|
|
4737
4742
|
Ve,
|
|
4738
4743
|
{
|
|
4739
4744
|
onChange: M,
|
|
4740
|
-
onKeyDown:
|
|
4745
|
+
onKeyDown: V,
|
|
4741
4746
|
value: _,
|
|
4742
4747
|
border: s,
|
|
4743
4748
|
placeholder: i,
|
|
4744
4749
|
error: h,
|
|
4745
|
-
errorText:
|
|
4750
|
+
errorText: x,
|
|
4746
4751
|
helperText: j,
|
|
4747
4752
|
disabled: c,
|
|
4748
4753
|
"aria-label": d,
|
|
4749
|
-
"aria-describedby":
|
|
4754
|
+
"aria-describedby": m ? `${m}-help` : void 0
|
|
4750
4755
|
}
|
|
4751
4756
|
) }),
|
|
4752
4757
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -4762,26 +4767,26 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4762
4767
|
role: "listbox",
|
|
4763
4768
|
"aria-label": u,
|
|
4764
4769
|
"aria-multiselectable": "false",
|
|
4765
|
-
children: f.map((w,
|
|
4770
|
+
children: f.map((w, P) => /* @__PURE__ */ e.jsx(
|
|
4766
4771
|
Wn,
|
|
4767
4772
|
{
|
|
4768
4773
|
text: w,
|
|
4769
|
-
onDelete: () =>
|
|
4774
|
+
onDelete: () => z(P),
|
|
4770
4775
|
disabled: c,
|
|
4771
4776
|
"aria-label": `Элемент: ${w}`,
|
|
4772
|
-
"aria-selected": y ===
|
|
4777
|
+
"aria-selected": y === P,
|
|
4773
4778
|
role: "option",
|
|
4774
4779
|
tabIndex: 0,
|
|
4775
|
-
onFocus: () => v(
|
|
4780
|
+
onFocus: () => v(P)
|
|
4776
4781
|
},
|
|
4777
|
-
`${w}-${
|
|
4782
|
+
`${w}-${P}`
|
|
4778
4783
|
))
|
|
4779
4784
|
}
|
|
4780
4785
|
),
|
|
4781
4786
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
|
|
4782
4787
|
ye,
|
|
4783
4788
|
{
|
|
4784
|
-
onClick:
|
|
4789
|
+
onClick: W,
|
|
4785
4790
|
className: "more-text-btn",
|
|
4786
4791
|
disabled: c || !_.trim(),
|
|
4787
4792
|
"aria-label": `${l} элемент`,
|
|
@@ -4791,7 +4796,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4791
4796
|
]
|
|
4792
4797
|
}
|
|
4793
4798
|
),
|
|
4794
|
-
|
|
4799
|
+
m && /* @__PURE__ */ e.jsx("div", { id: `${m}-help`, className: "sr-only", children: 'Добавляйте элементы, вводя текст и нажимая Enter или кнопку "Добавить"' })
|
|
4795
4800
|
]
|
|
4796
4801
|
}
|
|
4797
4802
|
);
|
|
@@ -4807,80 +4812,80 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4807
4812
|
name: a,
|
|
4808
4813
|
value: d,
|
|
4809
4814
|
placeholder: u,
|
|
4810
|
-
className:
|
|
4815
|
+
className: m,
|
|
4811
4816
|
validEmptyValue: h,
|
|
4812
|
-
onFocus:
|
|
4817
|
+
onFocus: x,
|
|
4813
4818
|
onBlur: j,
|
|
4814
4819
|
error: f,
|
|
4815
4820
|
max: p,
|
|
4816
4821
|
min: _,
|
|
4817
|
-
size:
|
|
4822
|
+
size: k = "medium",
|
|
4818
4823
|
disabled: y,
|
|
4819
4824
|
step: v = 1,
|
|
4820
4825
|
helperText: M,
|
|
4821
|
-
errorText:
|
|
4822
|
-
ariaLabel:
|
|
4823
|
-
ariaLabelledby:
|
|
4826
|
+
errorText: V,
|
|
4827
|
+
ariaLabel: W,
|
|
4828
|
+
ariaLabelledby: z,
|
|
4824
4829
|
ariaDescribedby: w
|
|
4825
|
-
},
|
|
4826
|
-
const D =
|
|
4830
|
+
}, P) => {
|
|
4831
|
+
const D = Z(null), R = Z(null), N = Z(null), I = Z(null), [S, E] = g(!1), [O, A] = g(d ?? 0), K = b((B, G) => E(!!(f || B && (!G || G === ""))), [f]), Y = () => {
|
|
4827
4832
|
if (!I.current)
|
|
4828
4833
|
return;
|
|
4829
|
-
const
|
|
4830
|
-
|
|
4831
|
-
}, C =
|
|
4834
|
+
const B = I.current.querySelector("input");
|
|
4835
|
+
B && B.focus();
|
|
4836
|
+
}, C = b((B, G) => {
|
|
4832
4837
|
c && (N.current && (clearTimeout(N.current), N.current = null), N.current = setTimeout(() => {
|
|
4833
|
-
N.current && (clearTimeout(N.current), N.current = null), c(
|
|
4838
|
+
N.current && (clearTimeout(N.current), N.current = null), c(B, G);
|
|
4834
4839
|
}, 100));
|
|
4835
|
-
}, [c]),
|
|
4836
|
-
|
|
4837
|
-
let
|
|
4838
|
-
return typeof p == "number" &&
|
|
4840
|
+
}, [c]), L = b(() => {
|
|
4841
|
+
A((B) => {
|
|
4842
|
+
let G = B ? B + v : v;
|
|
4843
|
+
return typeof p == "number" && G > p && (G = p), C(G, a), G;
|
|
4839
4844
|
});
|
|
4840
|
-
}, [C, a, p, v]), H =
|
|
4841
|
-
|
|
4842
|
-
let
|
|
4843
|
-
return typeof _ == "number" &&
|
|
4845
|
+
}, [C, a, p, v]), H = b(() => {
|
|
4846
|
+
A((B) => {
|
|
4847
|
+
let G = B ? B - v : -v;
|
|
4848
|
+
return typeof _ == "number" && G < _ && (G = _), C(G, a), G;
|
|
4844
4849
|
});
|
|
4845
|
-
}, [C, a, _, v]),
|
|
4846
|
-
if (
|
|
4847
|
-
|
|
4850
|
+
}, [C, a, _, v]), q = b((B) => {
|
|
4851
|
+
if (B.target.value === "") {
|
|
4852
|
+
A("");
|
|
4848
4853
|
return;
|
|
4849
4854
|
}
|
|
4850
|
-
|
|
4851
|
-
let
|
|
4852
|
-
typeof _ == "number" &&
|
|
4853
|
-
}, [a, C,
|
|
4854
|
-
D.current && clearTimeout(D.current),
|
|
4855
|
-
}, []), te =
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4855
|
+
B.target.value.length > 1 && B.target.value[0] === "0" && ![",", "."].includes(B.target.value[1]) && (B.target.value = B.target.value.slice(1));
|
|
4856
|
+
let G = Number(B.target.value);
|
|
4857
|
+
typeof _ == "number" && G < _ && (G = _), typeof p == "number" && G > p && (G = p), A(Number(B.target.value)), C(G, a);
|
|
4858
|
+
}, [a, C, O, p, _]), J = b(() => {
|
|
4859
|
+
D.current && clearTimeout(D.current), R.current && clearInterval(R.current), document.removeEventListener("mouseup", J);
|
|
4860
|
+
}, []), te = b((B) => {
|
|
4861
|
+
B === "p" ? L() : B === "m" && H(), D.current && clearTimeout(D.current), R.current && clearInterval(R.current), document.addEventListener("mouseup", J), D.current = setTimeout(() => {
|
|
4862
|
+
R.current = setInterval(() => {
|
|
4863
|
+
B === "p" ? L() : B === "m" && H();
|
|
4859
4864
|
}, 100);
|
|
4860
4865
|
}, 500);
|
|
4861
|
-
}, [
|
|
4862
|
-
|
|
4866
|
+
}, [L, H]), Q = (B) => {
|
|
4867
|
+
O === "" && (A(0), c == null || c(0)), j == null || j(B);
|
|
4863
4868
|
};
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
}, [d, h,
|
|
4867
|
-
d !== void 0 && !N.current &&
|
|
4869
|
+
T(() => {
|
|
4870
|
+
K(h, d);
|
|
4871
|
+
}, [d, h, K]), T(() => {
|
|
4872
|
+
d !== void 0 && !N.current && A(d);
|
|
4868
4873
|
}, [d]);
|
|
4869
4874
|
const ie = {
|
|
4870
4875
|
small: "input-field__number-field_small",
|
|
4871
4876
|
medium: "input-field__number-field_medium",
|
|
4872
4877
|
large: "input-field__number-field_large"
|
|
4873
4878
|
};
|
|
4874
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${
|
|
4879
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${m}`, children: [
|
|
4875
4880
|
/* @__PURE__ */ e.jsxs(
|
|
4876
4881
|
"div",
|
|
4877
4882
|
{
|
|
4878
|
-
ref:
|
|
4883
|
+
ref: P,
|
|
4879
4884
|
style: t,
|
|
4880
4885
|
className: `
|
|
4881
4886
|
input-field
|
|
4882
4887
|
input-field__number-field
|
|
4883
|
-
${ie[
|
|
4888
|
+
${ie[k]}
|
|
4884
4889
|
${i ? "input-field_border" : ""}
|
|
4885
4890
|
${r ? "input-field_transparent" : ""}
|
|
4886
4891
|
${S ? "input-field_error" : ""}
|
|
@@ -4889,8 +4894,8 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4889
4894
|
"aria-disabled": y,
|
|
4890
4895
|
"aria-invalid": S,
|
|
4891
4896
|
children: [
|
|
4892
|
-
o ? /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick:
|
|
4893
|
-
/* @__PURE__ */ e.jsxs("div", { ref: I, className: "input-field__input-container", onClick:
|
|
4897
|
+
o ? /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: Y, "aria-hidden": "true", children: o }) : null,
|
|
4898
|
+
/* @__PURE__ */ e.jsxs("div", { ref: I, className: "input-field__input-container", onClick: Y, children: [
|
|
4894
4899
|
/* @__PURE__ */ e.jsx(
|
|
4895
4900
|
"input",
|
|
4896
4901
|
{
|
|
@@ -4903,12 +4908,12 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4903
4908
|
type: "number",
|
|
4904
4909
|
className: `input-field__input-container__input ${S ? "input-field__input-container__input_error" : ""}`,
|
|
4905
4910
|
name: a,
|
|
4906
|
-
value:
|
|
4907
|
-
onChange:
|
|
4908
|
-
onFocus:
|
|
4911
|
+
value: O,
|
|
4912
|
+
onChange: q,
|
|
4913
|
+
onFocus: x,
|
|
4909
4914
|
onBlur: Q,
|
|
4910
|
-
"aria-label":
|
|
4911
|
-
"aria-labelledby":
|
|
4915
|
+
"aria-label": W,
|
|
4916
|
+
"aria-labelledby": z,
|
|
4912
4917
|
"aria-describedby": w,
|
|
4913
4918
|
"aria-required": "true",
|
|
4914
4919
|
"aria-invalid": S,
|
|
@@ -4919,13 +4924,13 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4919
4924
|
/* @__PURE__ */ e.jsx("span", { className: "text-field-line" })
|
|
4920
4925
|
] }),
|
|
4921
4926
|
l ? /* @__PURE__ */ e.jsx("div", { className: "clear-container", children: /* @__PURE__ */ e.jsx(
|
|
4922
|
-
|
|
4927
|
+
de,
|
|
4923
4928
|
{
|
|
4924
4929
|
onClick: l,
|
|
4925
4930
|
role: "button",
|
|
4926
4931
|
"aria-label": "Clear input",
|
|
4927
4932
|
tabIndex: 0,
|
|
4928
|
-
onKeyDown: (
|
|
4933
|
+
onKeyDown: (B) => B.key === "Enter" && l()
|
|
4929
4934
|
}
|
|
4930
4935
|
) }) : null,
|
|
4931
4936
|
/* @__PURE__ */ e.jsxs("div", { className: "input-field__number-field__button-block", children: [
|
|
@@ -4937,7 +4942,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4937
4942
|
role: "button",
|
|
4938
4943
|
"aria-label": "Decrease value",
|
|
4939
4944
|
tabIndex: 0,
|
|
4940
|
-
onKeyDown: (
|
|
4945
|
+
onKeyDown: (B) => B.key === "Enter" && H(),
|
|
4941
4946
|
children: /* @__PURE__ */ e.jsx(Fn, {})
|
|
4942
4947
|
}
|
|
4943
4948
|
),
|
|
@@ -4949,7 +4954,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4949
4954
|
role: "button",
|
|
4950
4955
|
"aria-label": "Increase value",
|
|
4951
4956
|
tabIndex: 0,
|
|
4952
|
-
onKeyDown: (
|
|
4957
|
+
onKeyDown: (B) => B.key === "Enter" && L(),
|
|
4953
4958
|
children: /* @__PURE__ */ e.jsx(En, {})
|
|
4954
4959
|
}
|
|
4955
4960
|
)
|
|
@@ -4957,14 +4962,14 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4957
4962
|
]
|
|
4958
4963
|
}
|
|
4959
4964
|
),
|
|
4960
|
-
S &&
|
|
4965
|
+
S && V && /* @__PURE__ */ e.jsx(
|
|
4961
4966
|
U,
|
|
4962
4967
|
{
|
|
4963
4968
|
type: "small",
|
|
4964
4969
|
className: "input-field-container__error-text",
|
|
4965
4970
|
id: w,
|
|
4966
4971
|
role: "alert",
|
|
4967
|
-
children:
|
|
4972
|
+
children: V
|
|
4968
4973
|
}
|
|
4969
4974
|
),
|
|
4970
4975
|
M && !S && /* @__PURE__ */ e.jsx(
|
|
@@ -4992,38 +4997,38 @@ const Qn = ne.forwardRef(
|
|
|
4992
4997
|
onChange: a,
|
|
4993
4998
|
name: d,
|
|
4994
4999
|
value: u,
|
|
4995
|
-
placeholder:
|
|
5000
|
+
placeholder: m,
|
|
4996
5001
|
className: h,
|
|
4997
|
-
validEmptyValue:
|
|
5002
|
+
validEmptyValue: x,
|
|
4998
5003
|
onFocus: j,
|
|
4999
5004
|
onBlur: f,
|
|
5000
5005
|
error: p,
|
|
5001
5006
|
autoFocus: _,
|
|
5002
|
-
disabled:
|
|
5007
|
+
disabled: k,
|
|
5003
5008
|
helperText: y,
|
|
5004
5009
|
errorText: v,
|
|
5005
5010
|
rows: M = 3,
|
|
5006
|
-
onKeyDown:
|
|
5007
|
-
},
|
|
5008
|
-
const
|
|
5011
|
+
onKeyDown: V
|
|
5012
|
+
}, W) => {
|
|
5013
|
+
const z = Z(null), [w, P] = g(!1), [D, R] = g(!1), [N, I] = g(!!u), S = Be(), E = () => {
|
|
5009
5014
|
var C;
|
|
5010
|
-
const
|
|
5011
|
-
|
|
5012
|
-
},
|
|
5013
|
-
j == null || j(
|
|
5014
|
-
},
|
|
5015
|
-
f == null || f(
|
|
5016
|
-
},
|
|
5017
|
-
(
|
|
5015
|
+
const Y = (C = z.current) == null ? void 0 : C.querySelector("textarea");
|
|
5016
|
+
Y == null || Y.focus();
|
|
5017
|
+
}, O = (Y) => {
|
|
5018
|
+
j == null || j(Y), R(!0);
|
|
5019
|
+
}, A = (Y) => {
|
|
5020
|
+
f == null || f(Y), R(!1), I(!!Y.target.value);
|
|
5021
|
+
}, K = b(
|
|
5022
|
+
(Y, C) => P(!!(p || Y && (!C || C === ""))),
|
|
5018
5023
|
[p]
|
|
5019
5024
|
);
|
|
5020
|
-
return
|
|
5021
|
-
|
|
5022
|
-
}, [u,
|
|
5025
|
+
return T(() => {
|
|
5026
|
+
K(x, u), I(!!u);
|
|
5027
|
+
}, [u, x, K]), /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${h || ""}`, children: [
|
|
5023
5028
|
/* @__PURE__ */ e.jsxs(
|
|
5024
5029
|
"div",
|
|
5025
5030
|
{
|
|
5026
|
-
ref:
|
|
5031
|
+
ref: W,
|
|
5027
5032
|
style: r,
|
|
5028
5033
|
className: `
|
|
5029
5034
|
input-field__text-area
|
|
@@ -5032,45 +5037,45 @@ const Qn = ne.forwardRef(
|
|
|
5032
5037
|
${D ? "input-field_active" : ""}
|
|
5033
5038
|
${s ? "input-field_transparent" : ""}
|
|
5034
5039
|
${w ? "input-field_error" : ""}
|
|
5035
|
-
${
|
|
5040
|
+
${k ? "input-field_disabled" : ""}
|
|
5036
5041
|
`,
|
|
5037
|
-
onClick:
|
|
5042
|
+
onClick: E,
|
|
5038
5043
|
children: [
|
|
5039
5044
|
c && /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", "aria-hidden": "true", children: c }),
|
|
5040
|
-
/* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container input-field__text-area__input-container", ref:
|
|
5045
|
+
/* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container input-field__text-area__input-container", ref: z, children: [
|
|
5041
5046
|
/* @__PURE__ */ e.jsx(
|
|
5042
5047
|
"textarea",
|
|
5043
5048
|
{
|
|
5044
5049
|
ref: t,
|
|
5045
5050
|
id: S,
|
|
5046
5051
|
readOnly: i,
|
|
5047
|
-
disabled:
|
|
5052
|
+
disabled: k,
|
|
5048
5053
|
required: !0,
|
|
5049
5054
|
rows: M,
|
|
5050
5055
|
name: d,
|
|
5051
5056
|
value: u,
|
|
5052
5057
|
className: `input-field__input-container__input input-field__text-area__input-container__textarea ${w ? "input-field__input-container__input_error" : ""}`,
|
|
5053
5058
|
onClick: n,
|
|
5054
|
-
onChange: (
|
|
5055
|
-
onFocus:
|
|
5056
|
-
onBlur:
|
|
5057
|
-
onKeyDown:
|
|
5059
|
+
onChange: (Y) => a == null ? void 0 : a(Y.target.value, Y.target.name, Y),
|
|
5060
|
+
onFocus: O,
|
|
5061
|
+
onBlur: A,
|
|
5062
|
+
onKeyDown: V,
|
|
5058
5063
|
autoFocus: _,
|
|
5059
5064
|
"aria-invalid": w,
|
|
5060
5065
|
"aria-describedby": w ? `${d}-error` : void 0
|
|
5061
5066
|
}
|
|
5062
5067
|
),
|
|
5063
|
-
|
|
5068
|
+
m && /* @__PURE__ */ e.jsx(
|
|
5064
5069
|
"label",
|
|
5065
5070
|
{
|
|
5066
5071
|
htmlFor: S,
|
|
5067
|
-
onClick:
|
|
5072
|
+
onClick: E,
|
|
5068
5073
|
className: `input-field__input-container__label input-field__text-area__label ${N ? "input-field__input-container__label_filled" : ""}`,
|
|
5069
|
-
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children:
|
|
5074
|
+
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: m })
|
|
5070
5075
|
}
|
|
5071
5076
|
)
|
|
5072
5077
|
] }),
|
|
5073
|
-
o && u && !
|
|
5078
|
+
o && u && !k && /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container input-field__icon-container__clear-btn", onClick: o, children: /* @__PURE__ */ e.jsx(de, { "aria-label": "Clear textarea" }) })
|
|
5074
5079
|
]
|
|
5075
5080
|
}
|
|
5076
5081
|
),
|
|
@@ -5081,11 +5086,11 @@ const Qn = ne.forwardRef(
|
|
|
5081
5086
|
);
|
|
5082
5087
|
Qn.displayName = "TextArea";
|
|
5083
5088
|
const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, onCancel: l, onOK: o }) => {
|
|
5084
|
-
const [c, a] = g(!1), d =
|
|
5089
|
+
const [c, a] = g(!1), d = b((h) => {
|
|
5085
5090
|
n(h), a(!0);
|
|
5086
|
-
}, [n]), u =
|
|
5091
|
+
}, [n]), u = b((h) => {
|
|
5087
5092
|
t(h), a(!1);
|
|
5088
|
-
}, [t]),
|
|
5093
|
+
}, [t]), m = b(() => {
|
|
5089
5094
|
a(!1), l();
|
|
5090
5095
|
}, []);
|
|
5091
5096
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -5104,7 +5109,7 @@ const Zr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, o
|
|
|
5104
5109
|
/* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children: c ? /* @__PURE__ */ e.jsx(Ur, { setMinutes: u }) : /* @__PURE__ */ e.jsx(Yr, { setHours: d }) }),
|
|
5105
5110
|
/* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
|
|
5106
5111
|
/* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(Rn, {}) }),
|
|
5107
|
-
/* @__PURE__ */ e.jsx(ce, { className: "little", onClick:
|
|
5112
|
+
/* @__PURE__ */ e.jsx(ce, { className: "little", onClick: m, children: "Cancel" }),
|
|
5108
5113
|
/* @__PURE__ */ e.jsx(ce, { className: "little", onClick: o, children: "OK" })
|
|
5109
5114
|
] })
|
|
5110
5115
|
] });
|
|
@@ -5191,9 +5196,9 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5191
5196
|
}, Kr = (n) => {
|
|
5192
5197
|
const [t, r] = g(n.minutes ?? 0), [s, i] = g(n.hours ?? 0), [l, o] = g(!0), c = () => {
|
|
5193
5198
|
n.onHide && n.onHide(), r(0), i(0);
|
|
5194
|
-
}, a =
|
|
5199
|
+
}, a = b((u) => {
|
|
5195
5200
|
r(u), n.onChange && n.onChange(s, u), n.onHide && n.onHide();
|
|
5196
|
-
}, [s]), d =
|
|
5201
|
+
}, [s]), d = b(() => {
|
|
5197
5202
|
n.onChange && n.onChange(s, t), n.onHide && n.onHide();
|
|
5198
5203
|
}, [s, t]);
|
|
5199
5204
|
return l ? /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Zr, { setMinutes: a, setHours: i, minutes: t, hours: s, switchMode: () => o(!1), onCancel: c, onOK: d }) }) : /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Xr, { setMinutes: r, setHours: i, minutes: t, hours: s, switchMode: () => o(!0), onCancel: c, onOK: d }) });
|
|
@@ -5213,33 +5218,33 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5213
5218
|
disabled: a = !1,
|
|
5214
5219
|
errorText: d,
|
|
5215
5220
|
helperText: u,
|
|
5216
|
-
ariaLabel:
|
|
5221
|
+
ariaLabel: m,
|
|
5217
5222
|
size: h = "medium",
|
|
5218
|
-
ariaLabelledby:
|
|
5223
|
+
ariaLabelledby: x,
|
|
5219
5224
|
placeholder: j,
|
|
5220
5225
|
onBlur: f,
|
|
5221
5226
|
onFocus: p,
|
|
5222
5227
|
style: _,
|
|
5223
|
-
...
|
|
5228
|
+
...k
|
|
5224
5229
|
}) => {
|
|
5225
|
-
const [y, v] = g(s), [M,
|
|
5226
|
-
|
|
5230
|
+
const [y, v] = g(s), [M, V] = g(!1), [W, z] = g(!1), [w, P] = g(!!s), D = Be(), R = o || !!d;
|
|
5231
|
+
T(() => {
|
|
5227
5232
|
v(s);
|
|
5228
5233
|
}, [s]);
|
|
5229
|
-
const N =
|
|
5230
|
-
const H = String(C).padStart(2, "0"),
|
|
5234
|
+
const N = b(() => R || l && !y ? "error" : "", [y, R, l]), I = (C, L) => {
|
|
5235
|
+
const H = String(C).padStart(2, "0"), q = String(L).padStart(2, "0"), J = `${H}:${q}`;
|
|
5231
5236
|
v(J), t == null || t(J);
|
|
5232
5237
|
}, S = () => {
|
|
5233
|
-
a ||
|
|
5234
|
-
},
|
|
5235
|
-
p == null || p(C),
|
|
5236
|
-
},
|
|
5237
|
-
f == null || f(C),
|
|
5238
|
+
a || V(!0);
|
|
5239
|
+
}, E = (C) => {
|
|
5240
|
+
p == null || p(C), z(!0);
|
|
5241
|
+
}, O = (C) => {
|
|
5242
|
+
f == null || f(C), z(!1), P(!!C.target.value);
|
|
5238
5243
|
};
|
|
5239
|
-
|
|
5240
|
-
|
|
5244
|
+
T(() => {
|
|
5245
|
+
P(!!s);
|
|
5241
5246
|
}, [s]);
|
|
5242
|
-
const
|
|
5247
|
+
const A = y && parseInt(y.split(":")[0]) || 0, K = y && parseInt(y.split(":")[1]) || 0, Y = oe(() => R && d ? /* @__PURE__ */ e.jsx(
|
|
5243
5248
|
U,
|
|
5244
5249
|
{
|
|
5245
5250
|
type: "small",
|
|
@@ -5248,7 +5253,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5248
5253
|
id: `${r}-error`,
|
|
5249
5254
|
children: d
|
|
5250
5255
|
}
|
|
5251
|
-
) : u && !
|
|
5256
|
+
) : u && !R ? /* @__PURE__ */ e.jsx(
|
|
5252
5257
|
U,
|
|
5253
5258
|
{
|
|
5254
5259
|
type: "small",
|
|
@@ -5256,7 +5261,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5256
5261
|
id: `${r}-helper`,
|
|
5257
5262
|
children: u
|
|
5258
5263
|
}
|
|
5259
|
-
) : null, [
|
|
5264
|
+
) : null, [R, d, u, r]);
|
|
5260
5265
|
return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${i}`, children: [
|
|
5261
5266
|
/* @__PURE__ */ e.jsxs(
|
|
5262
5267
|
"div",
|
|
@@ -5266,8 +5271,8 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5266
5271
|
input-field__time-field
|
|
5267
5272
|
${qr[h]}
|
|
5268
5273
|
${n ? "input-field_border" : ""}
|
|
5269
|
-
${
|
|
5270
|
-
${
|
|
5274
|
+
${W ? "input-field_active" : ""}
|
|
5275
|
+
${R ? "input-field_error" : ""}
|
|
5271
5276
|
${a ? "input-field_disabled" : ""}
|
|
5272
5277
|
`,
|
|
5273
5278
|
"aria-disabled": a,
|
|
@@ -5285,22 +5290,22 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5285
5290
|
children: /* @__PURE__ */ e.jsx(en, {})
|
|
5286
5291
|
}
|
|
5287
5292
|
),
|
|
5288
|
-
/* @__PURE__ */ e.jsxs("div", { "aria-label":
|
|
5293
|
+
/* @__PURE__ */ e.jsxs("div", { "aria-label": m, className: "input-field__input-container", onClick: S, children: [
|
|
5289
5294
|
/* @__PURE__ */ e.jsx(
|
|
5290
5295
|
"input",
|
|
5291
5296
|
{
|
|
5292
|
-
...
|
|
5297
|
+
...k,
|
|
5293
5298
|
type: "time",
|
|
5294
5299
|
className: `input-field__input-container__input ${N()}`,
|
|
5295
5300
|
name: r,
|
|
5296
5301
|
value: y,
|
|
5297
5302
|
readOnly: !0,
|
|
5298
|
-
onBlur:
|
|
5299
|
-
onFocus:
|
|
5303
|
+
onBlur: O,
|
|
5304
|
+
onFocus: E,
|
|
5300
5305
|
disabled: a,
|
|
5301
|
-
"aria-labelledby":
|
|
5302
|
-
"aria-invalid":
|
|
5303
|
-
"aria-describedby":
|
|
5306
|
+
"aria-labelledby": x,
|
|
5307
|
+
"aria-invalid": R,
|
|
5308
|
+
"aria-describedby": R && d ? `${r}-error` : u ? `${r}-helper` : void 0
|
|
5304
5309
|
}
|
|
5305
5310
|
),
|
|
5306
5311
|
j && /* @__PURE__ */ e.jsx(
|
|
@@ -5318,14 +5323,14 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5318
5323
|
]
|
|
5319
5324
|
}
|
|
5320
5325
|
),
|
|
5321
|
-
|
|
5326
|
+
Y,
|
|
5322
5327
|
M && /* @__PURE__ */ e.jsx(_e, { container: c, children: /* @__PURE__ */ e.jsx(
|
|
5323
5328
|
Kr,
|
|
5324
5329
|
{
|
|
5325
|
-
onHide: () =>
|
|
5330
|
+
onHide: () => V(!1),
|
|
5326
5331
|
onChange: I,
|
|
5327
|
-
hours:
|
|
5328
|
-
minutes:
|
|
5332
|
+
hours: A,
|
|
5333
|
+
minutes: K
|
|
5329
5334
|
}
|
|
5330
5335
|
) })
|
|
5331
5336
|
] });
|
|
@@ -5334,22 +5339,22 @@ function Qr(n, t, r, s, i) {
|
|
|
5334
5339
|
return s + (i - s) * ((n - t) / (r - t));
|
|
5335
5340
|
}
|
|
5336
5341
|
const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
5337
|
-
const [r, s] = g(0), [i, l] = g(!1), o =
|
|
5338
|
-
|
|
5342
|
+
const [r, s] = g(0), [i, l] = g(!1), o = Z(null), c = Z(null);
|
|
5343
|
+
T(() => {
|
|
5339
5344
|
t.value ? s(t.value) : s(0);
|
|
5340
5345
|
}, [t.value]);
|
|
5341
5346
|
const a = (h) => {
|
|
5342
5347
|
s(Number(h.target.value)), t.onChange && t.onChange(h);
|
|
5343
|
-
}, d = (h,
|
|
5348
|
+
}, d = (h, x, j) => {
|
|
5344
5349
|
if (o.current && c.current) {
|
|
5345
5350
|
let f = Ye(c.current);
|
|
5346
5351
|
if (f)
|
|
5347
|
-
return Qr(h,
|
|
5352
|
+
return Qr(h, x, j, 0, j - x) * (f.width - 20) / (j - x);
|
|
5348
5353
|
}
|
|
5349
5354
|
return 0;
|
|
5350
|
-
}, u =
|
|
5355
|
+
}, u = b((h) => {
|
|
5351
5356
|
l(!0), t.onFocus && t.onFocus(h);
|
|
5352
|
-
}, [t.onFocus]),
|
|
5357
|
+
}, [t.onFocus]), m = b((h) => {
|
|
5353
5358
|
l(!1), t.onBlur && t.onBlur(h);
|
|
5354
5359
|
}, [t.onBlur]);
|
|
5355
5360
|
return /* @__PURE__ */ e.jsx("div", { className: `range ${t.disabled ? "disabled" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "field", style: t.style, children: [
|
|
@@ -5359,7 +5364,7 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5359
5364
|
/* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-container" }),
|
|
5360
5365
|
/* @__PURE__ */ e.jsx("span", { className: "slider-tooltip-value", children: r })
|
|
5361
5366
|
] }) }) }),
|
|
5362
|
-
/* @__PURE__ */ e.jsx("input", { disabled: t.disabled, onMouseUp: t.onMouseUp, ref: c, step: t.step, type: "range", min: t.min ?? Ke, max: t.max ?? qe, onChange: a, value: r, onFocus: u, onBlur:
|
|
5367
|
+
/* @__PURE__ */ e.jsx("input", { disabled: t.disabled, onMouseUp: t.onMouseUp, ref: c, step: t.step, type: "range", min: t.min ?? Ke, max: t.max ?? qe, onChange: a, value: r, onFocus: u, onBlur: m })
|
|
5363
5368
|
] }),
|
|
5364
5369
|
t.showMinMax ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: t.max ?? qe }) : null
|
|
5365
5370
|
] }) });
|
|
@@ -5368,18 +5373,18 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5368
5373
|
t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
|
|
5369
5374
|
o ? /* @__PURE__ */ e.jsx(ye, { styleType: o.styleType ?? "filled", style: o.style, className: o.className, onClick: o.onClick, children: o.text }) : null
|
|
5370
5375
|
] }), es = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: o }) => {
|
|
5371
|
-
const [c, a] = g(""), [d, u] = g(""), [
|
|
5376
|
+
const [c, a] = g(""), [d, u] = g(""), [m, h] = g(!1), [x, j] = g(!0), f = b((y, v) => {
|
|
5372
5377
|
s({ ...r, [v]: y });
|
|
5373
|
-
}, [s, r]), p =
|
|
5378
|
+
}, [s, r]), p = b(() => {
|
|
5374
5379
|
u(""), a(""), h(!1);
|
|
5375
|
-
}, []), _ =
|
|
5380
|
+
}, []), _ = b(() => {
|
|
5376
5381
|
let y = d;
|
|
5377
5382
|
try {
|
|
5378
5383
|
o || (y = JSON.parse(y));
|
|
5379
5384
|
} catch {
|
|
5380
5385
|
}
|
|
5381
5386
|
p(), s({ ...r, [c]: y });
|
|
5382
|
-
}, [r, s, c, d, p]),
|
|
5387
|
+
}, [r, s, c, d, p]), k = b((y) => {
|
|
5383
5388
|
let v = { ...r };
|
|
5384
5389
|
delete v[y], s(v);
|
|
5385
5390
|
}, [r, s]);
|
|
@@ -5389,14 +5394,14 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5389
5394
|
t,
|
|
5390
5395
|
":",
|
|
5391
5396
|
"{",
|
|
5392
|
-
|
|
5397
|
+
x ? null : /* @__PURE__ */ e.jsx("span", { children: "..." })
|
|
5393
5398
|
] }),
|
|
5394
5399
|
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => h(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
|
|
5395
5400
|
] }),
|
|
5396
|
-
|
|
5397
|
-
(y, v) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () =>
|
|
5401
|
+
x ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r ? Object.keys(r).map(
|
|
5402
|
+
(y, v) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => k(y), onChange: (M) => f(M, y), name: y, data: r[y] }) }, v)
|
|
5398
5403
|
) : null }) : null,
|
|
5399
|
-
|
|
5404
|
+
m && !n ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
|
|
5400
5405
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: c.length || 10, placeholder: "key", onChange: (y) => a(y.target.value), className: "json-base-data-input", type: "text", value: c }) }),
|
|
5401
5406
|
":",
|
|
5402
5407
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (y) => u(y.target.value), className: "json-base-data-input", type: "text", value: d }) }),
|
|
@@ -5409,20 +5414,20 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5409
5414
|
] })
|
|
5410
5415
|
] }) });
|
|
5411
5416
|
}, ns = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: o }) => {
|
|
5412
|
-
const [c, a] = g(""), [d, u] = g(!1), [
|
|
5417
|
+
const [c, a] = g(""), [d, u] = g(!1), [m, h] = g(!0), x = b((_, k) => {
|
|
5413
5418
|
const y = r.slice();
|
|
5414
|
-
y[
|
|
5415
|
-
}, [s, r]), j =
|
|
5419
|
+
y[k] = _, s(y);
|
|
5420
|
+
}, [s, r]), j = b(() => {
|
|
5416
5421
|
a(""), u(!1);
|
|
5417
|
-
}, []), f =
|
|
5422
|
+
}, []), f = b(() => {
|
|
5418
5423
|
let _ = c;
|
|
5419
5424
|
try {
|
|
5420
5425
|
o || (_ = JSON.parse(_));
|
|
5421
5426
|
} catch {
|
|
5422
5427
|
}
|
|
5423
5428
|
j(), s([...r, _]);
|
|
5424
|
-
}, [r, s, c, j]), p =
|
|
5425
|
-
s(r.filter((
|
|
5429
|
+
}, [r, s, c, j]), p = b((_) => {
|
|
5430
|
+
s(r.filter((k, y) => y !== _));
|
|
5426
5431
|
}, [r, s]);
|
|
5427
5432
|
return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
5428
5433
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
|
|
@@ -5430,11 +5435,11 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5430
5435
|
t,
|
|
5431
5436
|
":",
|
|
5432
5437
|
"[",
|
|
5433
|
-
|
|
5438
|
+
m ? null : /* @__PURE__ */ e.jsx("span", { children: "..." })
|
|
5434
5439
|
] }),
|
|
5435
5440
|
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => u(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
|
|
5436
5441
|
] }),
|
|
5437
|
-
|
|
5442
|
+
m ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((_, k) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => p(k), onChange: (y) => x(y, k), name: String(k), data: _ }) }, k)) }) : null,
|
|
5438
5443
|
d ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
|
|
5439
5444
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: c.length || 10, placeholder: "value", onChange: (_) => a(_.target.value), className: "json-base-data-input", type: "text", value: c }) }),
|
|
5440
5445
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: f, children: "save" }),
|
|
@@ -5446,7 +5451,7 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5446
5451
|
] })
|
|
5447
5452
|
] }) });
|
|
5448
5453
|
}, ts = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i }) => {
|
|
5449
|
-
const l =
|
|
5454
|
+
const l = b((o) => {
|
|
5450
5455
|
s(o.target.value);
|
|
5451
5456
|
}, [s]);
|
|
5452
5457
|
return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
@@ -5460,11 +5465,11 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5460
5465
|
};
|
|
5461
5466
|
var et = /* @__PURE__ */ ((n) => (n.NONE = "NONE", n.ARRAY = "ARRAY", n.OBJECT = "OBJECT", n))(et || {});
|
|
5462
5467
|
const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l, onlyStringValue: o }) => typeof r == "boolean" || typeof r == "number" || typeof r == "string" ? /* @__PURE__ */ e.jsx(ts, { readonly: n, onDelete: i, onChange: s, data: r, name: t }) : r ? Array.isArray(r) ? /* @__PURE__ */ e.jsx(ns, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "ARRAY", onlyStringValue: o }) : /* @__PURE__ */ e.jsx(es, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "OBJECT", onlyStringValue: o }) : null, qs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l = et.NONE, onlyStringValue: o }) => {
|
|
5463
|
-
const [c, a] = g(r || void 0), [d, u] = g(""),
|
|
5468
|
+
const [c, a] = g(r || void 0), [d, u] = g(""), m = b((j) => {
|
|
5464
5469
|
n || (a(j), s && s(j));
|
|
5465
|
-
}, [s]), h =
|
|
5470
|
+
}, [s]), h = b(() => {
|
|
5466
5471
|
n || (a(void 0), i && i());
|
|
5467
|
-
}, [i]),
|
|
5472
|
+
}, [i]), x = b(() => {
|
|
5468
5473
|
if (n)
|
|
5469
5474
|
return;
|
|
5470
5475
|
let j = d;
|
|
@@ -5474,22 +5479,22 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5474
5479
|
}
|
|
5475
5480
|
a(j), s && s(j);
|
|
5476
5481
|
}, [s, d]);
|
|
5477
|
-
return
|
|
5482
|
+
return T(() => {
|
|
5478
5483
|
a(r);
|
|
5479
5484
|
}, [r]), !c && n ? /* @__PURE__ */ e.jsx("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: "value" }) }) : c ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
5480
5485
|
/* @__PURE__ */ e.jsx(cn, { transparent: !0, text: JSON.stringify(r) }),
|
|
5481
|
-
/* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: h, onChange:
|
|
5486
|
+
/* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: h, onChange: m, data: c, baseType: l, name: t, onlyStringValue: o })
|
|
5482
5487
|
] }) : /* @__PURE__ */ e.jsxs("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: [
|
|
5483
5488
|
/* @__PURE__ */ e.jsx(cn, { transparent: !0, text: JSON.stringify(r) }),
|
|
5484
5489
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (j) => u(j.target.value), className: "alex-evo-sh-ui-kit-json json-base-data-input", type: "text", value: d }) }),
|
|
5485
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick:
|
|
5490
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: x, children: "save" })
|
|
5486
5491
|
] });
|
|
5487
5492
|
}, Js = ({ btn: n, btnComponent: t, onSearch: r, placeholder: s, autoChenge: i, border: l = !1 }) => {
|
|
5488
|
-
const o =
|
|
5493
|
+
const o = Z(null), [c, a] = g(""), [d, u] = g(!1), m = () => {
|
|
5489
5494
|
o.current && (o.current.focus(), u(!0));
|
|
5490
5495
|
}, h = () => {
|
|
5491
5496
|
o.current && (o.current.focus(), o.current.value = ""), a(""), u(!0), i && r("");
|
|
5492
|
-
},
|
|
5497
|
+
}, x = () => {
|
|
5493
5498
|
h(), o.current && (o.current.blur(), u(!1));
|
|
5494
5499
|
}, j = (p) => {
|
|
5495
5500
|
a(p.target.value), i && r(p.target.value);
|
|
@@ -5497,9 +5502,9 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5497
5502
|
p.code === "Enter" && r(c);
|
|
5498
5503
|
};
|
|
5499
5504
|
return /* @__PURE__ */ e.jsx("div", { className: `search-container ${l ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
|
|
5500
|
-
d ? /* @__PURE__ */ e.jsx("span", { onClick:
|
|
5505
|
+
d ? /* @__PURE__ */ e.jsx("span", { onClick: x, children: /* @__PURE__ */ e.jsx(nn, {}) }) : n ? /* @__PURE__ */ e.jsx("span", { onClick: n.onClick, children: n.icon }) : t || null,
|
|
5501
5506
|
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: o, onChange: j, onKeyDown: f, value: c, onFocus: () => u(!0) }),
|
|
5502
|
-
d ? /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(
|
|
5507
|
+
d ? /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(de, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: m, children: /* @__PURE__ */ e.jsx(tn, {}) })
|
|
5503
5508
|
] }) });
|
|
5504
5509
|
}, rs = ({
|
|
5505
5510
|
filters: n,
|
|
@@ -5509,15 +5514,15 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5509
5514
|
onClose: i,
|
|
5510
5515
|
point: l = { x: 50, y: 50 }
|
|
5511
5516
|
}) => {
|
|
5512
|
-
const o =
|
|
5513
|
-
if (
|
|
5517
|
+
const o = Z(null);
|
|
5518
|
+
if (T(() => {
|
|
5514
5519
|
const d = (u) => {
|
|
5515
5520
|
s && o.current && !o.current.contains(u.target) && i();
|
|
5516
5521
|
};
|
|
5517
5522
|
return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
|
|
5518
5523
|
}, [s, i]), !s) return null;
|
|
5519
5524
|
const c = (d, u) => {
|
|
5520
|
-
const
|
|
5525
|
+
const m = t[d] || [], h = m.includes(u) ? m.filter((x) => x !== u) : [...m, u];
|
|
5521
5526
|
r({
|
|
5522
5527
|
...t,
|
|
5523
5528
|
[d]: h
|
|
@@ -5527,8 +5532,8 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5527
5532
|
left: `${l.x}px`,
|
|
5528
5533
|
zIndex: 1e3
|
|
5529
5534
|
};
|
|
5530
|
-
return /* @__PURE__ */ e.jsx(We, { onHide: i, children: /* @__PURE__ */ e.jsx(pr, { className: "multi-filter", style: a, children: /* @__PURE__ */ e.jsx("div", { ref: o, children: n.map(({ name: d, options: u },
|
|
5531
|
-
|
|
5535
|
+
return /* @__PURE__ */ e.jsx(We, { onHide: i, children: /* @__PURE__ */ e.jsx(pr, { className: "multi-filter", style: a, children: /* @__PURE__ */ e.jsx("div", { ref: o, children: n.map(({ name: d, options: u }, m) => /* @__PURE__ */ e.jsxs("div", { style: { marginBottom: 16 }, children: [
|
|
5536
|
+
m !== 0 && /* @__PURE__ */ e.jsx(se, {}),
|
|
5532
5537
|
/* @__PURE__ */ e.jsx(U, { type: "title-2", weight: "bold", children: d }),
|
|
5533
5538
|
/* @__PURE__ */ e.jsx("div", { className: "filter-block", children: u.map((h) => /* @__PURE__ */ e.jsxs("label", { className: "filter-field", children: [
|
|
5534
5539
|
/* @__PURE__ */ e.jsx(
|
|
@@ -5551,19 +5556,19 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5551
5556
|
onChangeFilter: l,
|
|
5552
5557
|
border: o = !1
|
|
5553
5558
|
}) => {
|
|
5554
|
-
const c =
|
|
5555
|
-
c.current && (c.current.focus(),
|
|
5559
|
+
const c = Z(null), [a, d] = g(""), [u, m] = g(!1), [h, x] = g(null), j = () => {
|
|
5560
|
+
c.current && (c.current.focus(), m(!0));
|
|
5556
5561
|
}, f = () => {
|
|
5557
|
-
c.current && (c.current.focus(), c.current.value = ""), d(""),
|
|
5562
|
+
c.current && (c.current.focus(), c.current.value = ""), d(""), m(!0), r && n("");
|
|
5558
5563
|
}, p = () => {
|
|
5559
|
-
f(), c.current && (c.current.blur(),
|
|
5564
|
+
f(), c.current && (c.current.blur(), m(!1));
|
|
5560
5565
|
}, _ = (v) => {
|
|
5561
5566
|
d(v.target.value), r && n(v.target.value);
|
|
5562
|
-
},
|
|
5567
|
+
}, k = (v) => {
|
|
5563
5568
|
v.code === "Enter" && n(a);
|
|
5564
5569
|
}, y = (v) => {
|
|
5565
5570
|
const M = v.currentTarget.getBoundingClientRect();
|
|
5566
|
-
|
|
5571
|
+
x({
|
|
5567
5572
|
x: M.left,
|
|
5568
5573
|
y: M.bottom
|
|
5569
5574
|
// ниже элемента
|
|
@@ -5572,14 +5577,14 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5572
5577
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
5573
5578
|
/* @__PURE__ */ e.jsx("div", { className: `search-container ${o ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
|
|
5574
5579
|
u ? /* @__PURE__ */ e.jsx("span", { onClick: p, children: /* @__PURE__ */ e.jsx(nn, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: y, children: /* @__PURE__ */ e.jsx(On, {}) }),
|
|
5575
|
-
/* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: c, onChange: _, onKeyDown:
|
|
5576
|
-
u ? /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(
|
|
5580
|
+
/* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: c, onChange: _, onKeyDown: k, value: a, onFocus: () => m(!0) }),
|
|
5581
|
+
u ? /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(de, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(tn, {}) })
|
|
5577
5582
|
] }) }),
|
|
5578
|
-
/* @__PURE__ */ e.jsx(_e, { container: document.body, children: /* @__PURE__ */ e.jsx(rs, { point: h ?? void 0, onClose: () =>
|
|
5583
|
+
/* @__PURE__ */ e.jsx(_e, { container: document.body, children: /* @__PURE__ */ e.jsx(rs, { point: h ?? void 0, onClose: () => x(null), isOpen: !!h, filters: s, selectedFilters: i, onChange: l }) })
|
|
5579
5584
|
] });
|
|
5580
5585
|
}, ss = ({ visible: n, text: t, option: r }) => {
|
|
5581
5586
|
const [s, i] = g(n), [l, o] = g(!1);
|
|
5582
|
-
|
|
5587
|
+
T(() => {
|
|
5583
5588
|
n ? (i(!0), setTimeout(() => o(!0), 10)) : (o(!1), setTimeout(() => i(!1), 300));
|
|
5584
5589
|
}, [n]);
|
|
5585
5590
|
const c = () => {
|
|
@@ -5598,7 +5603,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5598
5603
|
/* @__PURE__ */ e.jsx("div", { className: "snackbar-text", children: t }),
|
|
5599
5604
|
(r == null ? void 0 : r.onClick) && /* @__PURE__ */ e.jsx("div", { className: "snackbar-button-container", children: /* @__PURE__ */ e.jsx(ce, { className: "snackbar-btn", onClick: r.onClick, children: r.buttonText ?? "Action" }) })
|
|
5600
5605
|
] }),
|
|
5601
|
-
(r == null ? void 0 : r.closeButton) && /* @__PURE__ */ e.jsx("div", { className: "snackbar-close", children: /* @__PURE__ */ e.jsx("span", { onClick: c, children: /* @__PURE__ */ e.jsx(
|
|
5606
|
+
(r == null ? void 0 : r.closeButton) && /* @__PURE__ */ e.jsx("div", { className: "snackbar-close", children: /* @__PURE__ */ e.jsx("span", { onClick: c, children: /* @__PURE__ */ e.jsx(de, {}) }) })
|
|
5602
5607
|
]
|
|
5603
5608
|
}
|
|
5604
5609
|
) : null;
|
|
@@ -5614,19 +5619,19 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5614
5619
|
onContextMenu: a,
|
|
5615
5620
|
...d
|
|
5616
5621
|
}) => {
|
|
5617
|
-
const u =
|
|
5622
|
+
const u = Z(null), m = Z(null), [h, x] = g(!1), j = n === "heading" || n === "title" || n === "title-2", f = j ? "h3" : "span", p = {
|
|
5618
5623
|
fontSize: bn(n, t),
|
|
5619
5624
|
fontWeight: kn(n, r),
|
|
5620
5625
|
lineHeight: yn(n, s, t),
|
|
5621
5626
|
...o
|
|
5622
|
-
}, _ = j ? "typography-heading" : "typography-text",
|
|
5623
|
-
if (!u.current || !
|
|
5624
|
-
const y = u.current.clientWidth, v =
|
|
5625
|
-
|
|
5627
|
+
}, _ = j ? "typography-heading" : "typography-text", k = b(() => {
|
|
5628
|
+
if (!u.current || !m.current) return;
|
|
5629
|
+
const y = u.current.clientWidth, v = m.current.scrollWidth;
|
|
5630
|
+
x(y < v);
|
|
5626
5631
|
}, [l]);
|
|
5627
|
-
return
|
|
5628
|
-
window.removeEventListener("resize",
|
|
5629
|
-
}), [
|
|
5632
|
+
return T(() => (k(), window.addEventListener("resize", k), () => {
|
|
5633
|
+
window.removeEventListener("resize", k);
|
|
5634
|
+
}), [k]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
5630
5635
|
/* @__PURE__ */ e.jsx(
|
|
5631
5636
|
"div",
|
|
5632
5637
|
{
|
|
@@ -5648,7 +5653,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5648
5653
|
/* @__PURE__ */ e.jsx(
|
|
5649
5654
|
"div",
|
|
5650
5655
|
{
|
|
5651
|
-
ref:
|
|
5656
|
+
ref: m,
|
|
5652
5657
|
style: {
|
|
5653
5658
|
position: "absolute",
|
|
5654
5659
|
visibility: "hidden",
|
|
@@ -5682,27 +5687,27 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5682
5687
|
border: a,
|
|
5683
5688
|
name: d,
|
|
5684
5689
|
error: u,
|
|
5685
|
-
onBlur:
|
|
5690
|
+
onBlur: m,
|
|
5686
5691
|
onFocus: h,
|
|
5687
|
-
container:
|
|
5692
|
+
container: x = document.body,
|
|
5688
5693
|
size: j = "medium",
|
|
5689
5694
|
transparent: f,
|
|
5690
5695
|
helperText: p,
|
|
5691
5696
|
errorText: _,
|
|
5692
|
-
disabled:
|
|
5697
|
+
disabled: k
|
|
5693
5698
|
}, y) => {
|
|
5694
|
-
const [v, M] = g(""), [
|
|
5695
|
-
|
|
5699
|
+
const [v, M] = g(""), [V, W] = g({ x: 0, y: 0, width: 100 }), [z, w] = g(!1), P = !!(u || _);
|
|
5700
|
+
T(() => {
|
|
5696
5701
|
M(pn(s, l ?? ""));
|
|
5697
5702
|
}, [l, s]);
|
|
5698
|
-
const D =
|
|
5703
|
+
const D = b((S) => {
|
|
5699
5704
|
M(pn(s, S)), i && i(S), w(!1);
|
|
5700
|
-
}, [s, i]),
|
|
5701
|
-
if (
|
|
5705
|
+
}, [s, i]), R = b((S) => typeof S == "string" ? { title: S, onClick: () => D(S) } : { title: S.title, onClick: () => D(S.value), icon: S.icon, disabled: S.disabled }, [D]), N = b((S) => {
|
|
5706
|
+
if (k) return;
|
|
5702
5707
|
S.preventDefault();
|
|
5703
|
-
let
|
|
5704
|
-
|
|
5705
|
-
}, [s,
|
|
5708
|
+
let E = Ye(S.currentTarget), O = (E == null ? void 0 : E.left) ?? S.pageX, A = E != null && E.top ? E.top + E.height : S.pageY;
|
|
5709
|
+
W({ x: O, y: A, width: (E == null ? void 0 : E.width) ?? 150 }), w(!0);
|
|
5710
|
+
}, [s, R, k]), I = {
|
|
5706
5711
|
small: "input-field__text-field_small",
|
|
5707
5712
|
medium: "input-field__text-field_medium",
|
|
5708
5713
|
large: "input-field__text-field_large"
|
|
@@ -5713,31 +5718,31 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5713
5718
|
input-field__text-field
|
|
5714
5719
|
${I[j]}
|
|
5715
5720
|
${a ? "input-field_border" : ""}
|
|
5716
|
-
${
|
|
5721
|
+
${z ? "input-field_active" : ""}
|
|
5717
5722
|
${f ? "input-field_transparent" : ""}
|
|
5718
|
-
${
|
|
5719
|
-
${
|
|
5723
|
+
${P ? "input-field_error" : ""}
|
|
5724
|
+
${k ? "input-field_disabled" : ""}
|
|
5720
5725
|
`, children: /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick: N, children: [
|
|
5721
5726
|
/* @__PURE__ */ e.jsx(
|
|
5722
5727
|
"input",
|
|
5723
5728
|
{
|
|
5724
5729
|
ref: n,
|
|
5725
5730
|
required: !0,
|
|
5726
|
-
disabled:
|
|
5731
|
+
disabled: k,
|
|
5727
5732
|
type: "text",
|
|
5728
5733
|
className: `input-field__input-container__input ${u ? "input-field__input-container__input_error" : ""}`,
|
|
5729
5734
|
name: d,
|
|
5730
5735
|
value: v,
|
|
5731
5736
|
onFocus: h,
|
|
5732
|
-
onBlur:
|
|
5737
|
+
onBlur: m,
|
|
5733
5738
|
readOnly: !0
|
|
5734
5739
|
}
|
|
5735
5740
|
),
|
|
5736
5741
|
/* @__PURE__ */ e.jsx("label", { className: "input-field__input-container__label", children: o ? /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: o }) : null })
|
|
5737
5742
|
] }) }),
|
|
5738
|
-
|
|
5739
|
-
p && !
|
|
5740
|
-
/* @__PURE__ */ e.jsx(Pn, { marginBottom: r === ee.MOBILE ? 80 : 0, width:
|
|
5743
|
+
P && _ && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: _ }),
|
|
5744
|
+
p && !P && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: p }),
|
|
5745
|
+
/* @__PURE__ */ e.jsx(Pn, { marginBottom: r === ee.MOBILE ? 80 : 0, width: V.width, screensize: r, x: V.x, y: V.y, onHide: () => w(!1), container: x, blocks: [{ items: s.map(R) }], visible: z })
|
|
5741
5746
|
] });
|
|
5742
5747
|
}
|
|
5743
5748
|
);
|
|
@@ -5783,7 +5788,7 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
|
|
|
5783
5788
|
LinkIcon: wt,
|
|
5784
5789
|
UnLinkIcon: Nt,
|
|
5785
5790
|
GearIcon: yt,
|
|
5786
|
-
X:
|
|
5791
|
+
X: de,
|
|
5787
5792
|
Trash: Nn,
|
|
5788
5793
|
Pen: $n,
|
|
5789
5794
|
Palette: wn,
|
|
@@ -5835,9 +5840,9 @@ const as = {
|
|
|
5835
5840
|
}
|
|
5836
5841
|
}, os = Pe(as), ri = ({ children: n }) => {
|
|
5837
5842
|
var o;
|
|
5838
|
-
const [t, r] = g({ visible: !1, text: "" }), s =
|
|
5843
|
+
const [t, r] = g({ visible: !1, text: "" }), s = Z(null), i = b((c, a) => {
|
|
5839
5844
|
r({ visible: !0, text: c, option: a }), s.current && clearTimeout(s.current), a != null && a.closeButton || (s.current = setTimeout(() => l(), (a == null ? void 0 : a.delay) ?? 3e3));
|
|
5840
|
-
}, []), l =
|
|
5845
|
+
}, []), l = b(() => {
|
|
5841
5846
|
s.current && (clearTimeout(s.current), s.current = null), r({ visible: !1, text: "" });
|
|
5842
5847
|
}, []);
|
|
5843
5848
|
return /* @__PURE__ */ e.jsxs(os.Provider, { value: { showSnackbar: i, hideSnackbar: l }, children: [
|
|
@@ -5868,14 +5873,14 @@ function hs(n) {
|
|
|
5868
5873
|
return typeof n == "boolean";
|
|
5869
5874
|
}
|
|
5870
5875
|
const fe = (n) => {
|
|
5871
|
-
const { value: t, changeField: r, errors: s } = cs(), i =
|
|
5876
|
+
const { value: t, changeField: r, errors: s } = cs(), i = b((a) => {
|
|
5872
5877
|
r && r(n, a);
|
|
5873
|
-
}, [n]), l =
|
|
5878
|
+
}, [n]), l = b(() => {
|
|
5874
5879
|
const a = t == null ? void 0 : t[n];
|
|
5875
5880
|
return hs(a) ? !!a : us(a) ? Number(a) : ds(a) ? a ?? "" : "";
|
|
5876
|
-
}, [t, n]), o =
|
|
5881
|
+
}, [t, n]), o = b(() => {
|
|
5877
5882
|
r && r(n, "");
|
|
5878
|
-
}, [n]), c =
|
|
5883
|
+
}, [n]), c = b(() => {
|
|
5879
5884
|
if (s && Object.keys(s).includes(n))
|
|
5880
5885
|
return s[n];
|
|
5881
5886
|
}, [s, n]);
|
|
@@ -5885,10 +5890,10 @@ const fe = (n) => {
|
|
|
5885
5890
|
error: c(),
|
|
5886
5891
|
change: i
|
|
5887
5892
|
};
|
|
5888
|
-
},
|
|
5893
|
+
}, xs = (n) => {
|
|
5889
5894
|
const { value: t, change: r, error: s } = fe(n.name);
|
|
5890
5895
|
return /* @__PURE__ */ e.jsx(Gr, { ...n, onChange: r, value: String(t), errorText: s, error: !!s });
|
|
5891
|
-
},
|
|
5896
|
+
}, ms = (n) => {
|
|
5892
5897
|
const { value: t, change: r, error: s } = fe(n.name);
|
|
5893
5898
|
return /* @__PURE__ */ e.jsx(Jn, { ...n, value: Number(t), onChange: r, errorText: s, error: !!s });
|
|
5894
5899
|
}, fs = (n) => {
|
|
@@ -5914,7 +5919,7 @@ const fe = (n) => {
|
|
|
5914
5919
|
if (u.length > 0)
|
|
5915
5920
|
return c && c(!0);
|
|
5916
5921
|
c && c(!1);
|
|
5917
|
-
}, d =
|
|
5922
|
+
}, d = b(() => o ? [n ?? l] : [], [o, l, n]);
|
|
5918
5923
|
return /* @__PURE__ */ e.jsx(
|
|
5919
5924
|
Zn,
|
|
5920
5925
|
{
|
|
@@ -5970,31 +5975,31 @@ const fe = (n) => {
|
|
|
5970
5975
|
);
|
|
5971
5976
|
}, bs = ve(
|
|
5972
5977
|
function({ children: t, value: r, name: s, errors: i, onFinish: l, onChangeValue: o, ...c }, a) {
|
|
5973
|
-
const [d, u] = g(r),
|
|
5974
|
-
|
|
5975
|
-
}, [l, d]), h =
|
|
5978
|
+
const [d, u] = g(r), m = b((x) => {
|
|
5979
|
+
x.preventDefault(), l == null || l(d);
|
|
5980
|
+
}, [l, d]), h = b((x, j) => {
|
|
5976
5981
|
u((f) => ({
|
|
5977
5982
|
...f,
|
|
5978
|
-
[
|
|
5979
|
-
})), o == null || o(
|
|
5983
|
+
[x]: j
|
|
5984
|
+
})), o == null || o(x, j);
|
|
5980
5985
|
}, [o]);
|
|
5981
5986
|
return ht(a, () => ({
|
|
5982
5987
|
submit: () => l == null ? void 0 : l(d),
|
|
5983
|
-
setFieldValue: (
|
|
5984
|
-
u((f) => ({ ...f, [
|
|
5988
|
+
setFieldValue: (x, j) => {
|
|
5989
|
+
u((f) => ({ ...f, [x]: j }));
|
|
5985
5990
|
},
|
|
5986
|
-
setValues: (
|
|
5991
|
+
setValues: (x) => u(x),
|
|
5987
5992
|
getValues: () => d,
|
|
5988
5993
|
reset: () => u(r)
|
|
5989
|
-
}), [l, d, r]), /* @__PURE__ */ e.jsx(rt.Provider, { value: { value: d, changeField: h, errors: i }, children: /* @__PURE__ */ e.jsx("form", { name: s, onSubmit:
|
|
5994
|
+
}), [l, d, r]), /* @__PURE__ */ e.jsx(rt.Provider, { value: { value: d, changeField: h, errors: i }, children: /* @__PURE__ */ e.jsx("form", { name: s, onSubmit: m, noValidate: !0, ...c, children: t }) });
|
|
5990
5995
|
}
|
|
5991
5996
|
), si = Object.assign(bs, {
|
|
5992
5997
|
TextInput: _s,
|
|
5993
|
-
NumberInput:
|
|
5998
|
+
NumberInput: ms,
|
|
5994
5999
|
SelectInput: fs,
|
|
5995
6000
|
SwitchField: js,
|
|
5996
6001
|
SwitchButtonField: ps,
|
|
5997
|
-
MoreTextField:
|
|
6002
|
+
MoreTextField: xs,
|
|
5998
6003
|
TextArea: Cs,
|
|
5999
6004
|
DateField: vs,
|
|
6000
6005
|
TimeField: gs
|
|
@@ -6015,7 +6020,7 @@ export {
|
|
|
6015
6020
|
vn as BottomSheetsUi,
|
|
6016
6021
|
ye as Button,
|
|
6017
6022
|
Sn as Calendar,
|
|
6018
|
-
|
|
6023
|
+
mr as Card,
|
|
6019
6024
|
pe as Check,
|
|
6020
6025
|
Bn as Checkbox,
|
|
6021
6026
|
Ie as ChevronDown,
|
|
@@ -6055,7 +6060,7 @@ export {
|
|
|
6055
6060
|
Ls as HSVtoHSL,
|
|
6056
6061
|
Le as HSVtoRGB,
|
|
6057
6062
|
bt as Home,
|
|
6058
|
-
|
|
6063
|
+
ue as IconButton,
|
|
6059
6064
|
Fs as IconButtonMenu,
|
|
6060
6065
|
is as IconSelectField,
|
|
6061
6066
|
ni as IconsSelect,
|
|
@@ -6132,7 +6137,7 @@ export {
|
|
|
6132
6137
|
U as Typography,
|
|
6133
6138
|
Nt as UnLinkIcon,
|
|
6134
6139
|
Mt as UserIcon,
|
|
6135
|
-
|
|
6140
|
+
de as X,
|
|
6136
6141
|
$t as XUserIcon,
|
|
6137
6142
|
Te as getContainerColor,
|
|
6138
6143
|
Ye as getContainerData,
|