alex-evo-sh-ui-kit 1.1.85 → 1.1.87
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.
|
@@ -46,146 +46,146 @@ var Me = {};
|
|
|
46
46
|
var on;
|
|
47
47
|
function ft() {
|
|
48
48
|
return on || (on = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
function n(
|
|
50
|
-
if (
|
|
51
|
-
if (typeof
|
|
52
|
-
return
|
|
53
|
-
if (typeof
|
|
54
|
-
switch (
|
|
55
|
-
case
|
|
49
|
+
function n(C) {
|
|
50
|
+
if (C == null) return null;
|
|
51
|
+
if (typeof C == "function")
|
|
52
|
+
return C.$$typeof === D ? null : C.displayName || C.name || null;
|
|
53
|
+
if (typeof C == "string") return C;
|
|
54
|
+
switch (C) {
|
|
55
|
+
case j:
|
|
56
56
|
return "Fragment";
|
|
57
57
|
case b:
|
|
58
58
|
return "Profiler";
|
|
59
59
|
case _:
|
|
60
60
|
return "StrictMode";
|
|
61
|
-
case
|
|
61
|
+
case F:
|
|
62
62
|
return "Suspense";
|
|
63
63
|
case B:
|
|
64
64
|
return "SuspenseList";
|
|
65
65
|
case z:
|
|
66
66
|
return "Activity";
|
|
67
67
|
}
|
|
68
|
-
if (typeof
|
|
69
|
-
switch (typeof
|
|
68
|
+
if (typeof C == "object")
|
|
69
|
+
switch (typeof C.tag == "number" && console.error(
|
|
70
70
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
71
|
-
),
|
|
72
|
-
case
|
|
71
|
+
), C.$$typeof) {
|
|
72
|
+
case f:
|
|
73
73
|
return "Portal";
|
|
74
74
|
case v:
|
|
75
|
-
return
|
|
75
|
+
return C.displayName || "Context";
|
|
76
76
|
case y:
|
|
77
|
-
return (
|
|
77
|
+
return (C._context.displayName || "Context") + ".Consumer";
|
|
78
78
|
case M:
|
|
79
|
-
var $ =
|
|
80
|
-
return
|
|
79
|
+
var $ = C.render;
|
|
80
|
+
return C = C.displayName, C || (C = $.displayName || $.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
|
|
81
81
|
case A:
|
|
82
|
-
return $ =
|
|
82
|
+
return $ = C.displayName || null, $ !== null ? $ : n(C.type) || "Memo";
|
|
83
83
|
case w:
|
|
84
|
-
$ =
|
|
84
|
+
$ = C._payload, C = C._init;
|
|
85
85
|
try {
|
|
86
|
-
return n(
|
|
86
|
+
return n(C($));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
|
-
function t(
|
|
93
|
-
return "" +
|
|
92
|
+
function t(C) {
|
|
93
|
+
return "" + C;
|
|
94
94
|
}
|
|
95
|
-
function r(
|
|
95
|
+
function r(C) {
|
|
96
96
|
try {
|
|
97
|
-
t(
|
|
97
|
+
t(C);
|
|
98
98
|
var $ = !1;
|
|
99
99
|
} catch {
|
|
100
100
|
$ = !0;
|
|
101
101
|
}
|
|
102
102
|
if ($) {
|
|
103
103
|
$ = console;
|
|
104
|
-
var H = $.error, K = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
104
|
+
var H = $.error, K = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
105
105
|
return H.call(
|
|
106
106
|
$,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
108
|
K
|
|
109
|
-
), t(
|
|
109
|
+
), t(C);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
function s(
|
|
113
|
-
if (
|
|
114
|
-
if (typeof
|
|
112
|
+
function s(C) {
|
|
113
|
+
if (C === j) return "<>";
|
|
114
|
+
if (typeof C == "object" && C !== null && C.$$typeof === w)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var $ = n(
|
|
117
|
+
var $ = n(C);
|
|
118
118
|
return $ ? "<" + $ + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
function i() {
|
|
124
|
-
var
|
|
125
|
-
return
|
|
124
|
+
var C = E.A;
|
|
125
|
+
return C === null ? null : C.getOwner();
|
|
126
126
|
}
|
|
127
127
|
function l() {
|
|
128
128
|
return Error("react-stack-top-frame");
|
|
129
129
|
}
|
|
130
|
-
function o(
|
|
131
|
-
if (N.call(
|
|
132
|
-
var $ = Object.getOwnPropertyDescriptor(
|
|
130
|
+
function o(C) {
|
|
131
|
+
if (N.call(C, "key")) {
|
|
132
|
+
var $ = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
133
133
|
if ($ && $.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
|
-
return
|
|
135
|
+
return C.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function c(
|
|
137
|
+
function c(C, $) {
|
|
138
138
|
function H() {
|
|
139
139
|
L || (L = !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
|
$
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
|
-
H.isReactWarning = !0, Object.defineProperty(
|
|
144
|
+
H.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
145
145
|
get: H,
|
|
146
146
|
configurable: !0
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
function a() {
|
|
150
|
-
var
|
|
151
|
-
return T[
|
|
150
|
+
var C = n(this.type);
|
|
151
|
+
return T[C] || (T[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(
|
|
155
|
+
function d(C, $, H, K, J, te) {
|
|
156
156
|
var Q = H.ref;
|
|
157
|
-
return
|
|
158
|
-
$$typeof:
|
|
159
|
-
type:
|
|
157
|
+
return C = {
|
|
158
|
+
$$typeof: p,
|
|
159
|
+
type: C,
|
|
160
160
|
key: $,
|
|
161
161
|
props: H,
|
|
162
162
|
_owner: K
|
|
163
|
-
}, (Q !== void 0 ? Q : null) !== null ? Object.defineProperty(
|
|
163
|
+
}, (Q !== void 0 ? Q : null) !== null ? Object.defineProperty(C, "ref", {
|
|
164
164
|
enumerable: !1,
|
|
165
165
|
get: a
|
|
166
|
-
}) : Object.defineProperty(
|
|
166
|
+
}) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", {
|
|
167
167
|
configurable: !1,
|
|
168
168
|
enumerable: !1,
|
|
169
169
|
writable: !0,
|
|
170
170
|
value: 0
|
|
171
|
-
}), Object.defineProperty(
|
|
171
|
+
}), Object.defineProperty(C, "_debugInfo", {
|
|
172
172
|
configurable: !1,
|
|
173
173
|
enumerable: !1,
|
|
174
174
|
writable: !0,
|
|
175
175
|
value: null
|
|
176
|
-
}), Object.defineProperty(
|
|
176
|
+
}), Object.defineProperty(C, "_debugStack", {
|
|
177
177
|
configurable: !1,
|
|
178
178
|
enumerable: !1,
|
|
179
179
|
writable: !0,
|
|
180
180
|
value: J
|
|
181
|
-
}), Object.defineProperty(
|
|
181
|
+
}), Object.defineProperty(C, "_debugTask", {
|
|
182
182
|
configurable: !1,
|
|
183
183
|
enumerable: !1,
|
|
184
184
|
writable: !0,
|
|
185
185
|
value: te
|
|
186
|
-
}), Object.freeze && (Object.freeze(
|
|
186
|
+
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
187
187
|
}
|
|
188
|
-
function u(
|
|
188
|
+
function u(C, $, H, K, J, te) {
|
|
189
189
|
var Q = $.children;
|
|
190
190
|
if (Q !== void 0)
|
|
191
191
|
if (K)
|
|
@@ -199,7 +199,7 @@ function ft() {
|
|
|
199
199
|
);
|
|
200
200
|
else m(Q);
|
|
201
201
|
if (N.call($, "key")) {
|
|
202
|
-
Q = n(
|
|
202
|
+
Q = n(C);
|
|
203
203
|
var ie = Object.keys($).filter(function(W) {
|
|
204
204
|
return W !== "key";
|
|
205
205
|
});
|
|
@@ -223,9 +223,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
223
223
|
} else H = $;
|
|
224
224
|
return Q && c(
|
|
225
225
|
H,
|
|
226
|
-
typeof
|
|
226
|
+
typeof C == "function" ? C.displayName || C.name || "Unknown" : C
|
|
227
227
|
), d(
|
|
228
|
-
|
|
228
|
+
C,
|
|
229
229
|
Q,
|
|
230
230
|
H,
|
|
231
231
|
i(),
|
|
@@ -233,43 +233,43 @@ React keys must be passed directly to JSX without using spread:
|
|
|
233
233
|
te
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function m(
|
|
237
|
-
h(
|
|
236
|
+
function m(C) {
|
|
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
|
-
function h(
|
|
240
|
-
return typeof
|
|
239
|
+
function h(C) {
|
|
240
|
+
return typeof C == "object" && C !== null && C.$$typeof === p;
|
|
241
241
|
}
|
|
242
|
-
var x = ne,
|
|
242
|
+
var x = ne, p = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), v = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), z = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), E = 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
|
-
react_stack_bottom_frame: function(
|
|
247
|
-
return
|
|
246
|
+
react_stack_bottom_frame: function(C) {
|
|
247
|
+
return C();
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
250
|
var L, T = {}, Y = x.react_stack_bottom_frame.bind(
|
|
251
251
|
x,
|
|
252
252
|
l
|
|
253
253
|
)(), q = S(s(l)), G = {};
|
|
254
|
-
Me.Fragment =
|
|
254
|
+
Me.Fragment = j, Me.jsx = function(C, $, H) {
|
|
255
255
|
var K = 1e4 > E.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return u(
|
|
257
|
-
|
|
257
|
+
C,
|
|
258
258
|
$,
|
|
259
259
|
H,
|
|
260
260
|
!1,
|
|
261
261
|
K ? Error("react-stack-top-frame") : Y,
|
|
262
|
-
K ? S(s(
|
|
262
|
+
K ? S(s(C)) : q
|
|
263
263
|
);
|
|
264
|
-
}, Me.jsxs = function(
|
|
264
|
+
}, Me.jsxs = function(C, $, H) {
|
|
265
265
|
var K = 1e4 > E.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return u(
|
|
267
|
-
|
|
267
|
+
C,
|
|
268
268
|
$,
|
|
269
269
|
H,
|
|
270
270
|
!0,
|
|
271
271
|
K ? Error("react-stack-top-frame") : Y,
|
|
272
|
-
K ? S(s(
|
|
272
|
+
K ? S(s(C)) : q
|
|
273
273
|
);
|
|
274
274
|
};
|
|
275
275
|
}()), Me;
|
|
@@ -277,30 +277,30 @@ React keys must be passed directly to JSX without using spread:
|
|
|
277
277
|
process.env.NODE_ENV === "production" ? Je.exports = xt() : Je.exports = ft();
|
|
278
278
|
var e = Je.exports;
|
|
279
279
|
const Cn = (n) => /* @__PURE__ */ e.jsx(
|
|
280
|
-
|
|
280
|
+
Fe,
|
|
281
281
|
{
|
|
282
282
|
...n,
|
|
283
283
|
className: (n.className ?? "") + " outline-button"
|
|
284
284
|
}
|
|
285
285
|
), ce = (n) => /* @__PURE__ */ e.jsx(
|
|
286
|
-
|
|
286
|
+
Fe,
|
|
287
287
|
{
|
|
288
288
|
...n,
|
|
289
289
|
className: (n.className ?? "") + " text-button"
|
|
290
290
|
}
|
|
291
291
|
), jt = (n) => /* @__PURE__ */ e.jsx(
|
|
292
|
-
|
|
292
|
+
Fe,
|
|
293
293
|
{
|
|
294
294
|
...n,
|
|
295
295
|
className: (n.className ?? "") + " total-button"
|
|
296
296
|
}
|
|
297
297
|
), pt = (n) => /* @__PURE__ */ e.jsx(
|
|
298
|
-
|
|
298
|
+
Fe,
|
|
299
299
|
{
|
|
300
300
|
...n,
|
|
301
301
|
className: (n.className ?? "") + " filled-button"
|
|
302
302
|
}
|
|
303
|
-
),
|
|
303
|
+
), Fe = ({ size: n = "medium", ...t }) => {
|
|
304
304
|
const r = (i) => {
|
|
305
305
|
t.onClick && t.onClick(i);
|
|
306
306
|
let l = document.createElement("span");
|
|
@@ -315,7 +315,7 @@ const Cn = (n) => /* @__PURE__ */ e.jsx(
|
|
|
315
315
|
large: "btn--large"
|
|
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
|
-
}, ye = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(Cn, { ...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(
|
|
318
|
+
}, ye = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(Cn, { ...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 }), _n = (n, t) => {
|
|
319
319
|
O(() => {
|
|
320
320
|
if (n) {
|
|
321
321
|
const r = window.innerWidth - document.documentElement.clientWidth;
|
|
@@ -440,15 +440,15 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
440
440
|
...u
|
|
441
441
|
}, m) => {
|
|
442
442
|
const h = k(
|
|
443
|
-
(
|
|
444
|
-
c || (l == null || l(
|
|
443
|
+
(p) => {
|
|
444
|
+
c || (l == null || l(p), !d && x(p));
|
|
445
445
|
},
|
|
446
446
|
[l, c]
|
|
447
|
-
), x = (
|
|
448
|
-
const
|
|
449
|
-
|
|
450
|
-
const y =
|
|
451
|
-
y && y.remove(),
|
|
447
|
+
), x = (p) => {
|
|
448
|
+
const f = p.currentTarget, j = document.createElement("span"), _ = Math.max(f.clientWidth, f.clientHeight), b = _ / 2;
|
|
449
|
+
j.style.width = j.style.height = `${_}px`, j.style.left = `${p.clientX - f.getBoundingClientRect().left - b}px`, j.style.top = `${p.clientY - f.getBoundingClientRect().top - b}px`, j.classList.add("iconbutton-ripple");
|
|
450
|
+
const y = f.getElementsByClassName("iconbutton-ripple")[0];
|
|
451
|
+
y && y.remove(), f.appendChild(j);
|
|
452
452
|
};
|
|
453
453
|
return /* @__PURE__ */ e.jsx(
|
|
454
454
|
"button",
|
|
@@ -484,7 +484,7 @@ const R = ne.forwardRef(({ className: n, onClick: t, children: r, dpi: s = "24",
|
|
|
484
484
|
children: r
|
|
485
485
|
}
|
|
486
486
|
));
|
|
487
|
-
function
|
|
487
|
+
function V(n) {
|
|
488
488
|
return {
|
|
489
489
|
primaryColor: n.primaryColor ?? n.baseColor ?? "var(--icon-primary)",
|
|
490
490
|
secondaryColor: n.secondaryColor ?? n.baseColor ?? "var(--icon-secondary)",
|
|
@@ -496,10 +496,10 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
496
496
|
/* @__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" }),
|
|
497
497
|
/* @__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" })
|
|
498
498
|
] }) }) }), pe = (n) => {
|
|
499
|
-
const t =
|
|
499
|
+
const t = V(n);
|
|
500
500
|
return /* @__PURE__ */ e.jsx(R, { ...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" }) });
|
|
501
501
|
}, Ie = (n) => {
|
|
502
|
-
const t =
|
|
502
|
+
const t = V(n);
|
|
503
503
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
504
504
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
505
505
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -510,7 +510,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
510
510
|
] })
|
|
511
511
|
] });
|
|
512
512
|
}, wn = (n) => {
|
|
513
|
-
const t =
|
|
513
|
+
const t = V(n);
|
|
514
514
|
return /* @__PURE__ */ e.jsx(R, { ...n, dpi: "512", children: /* @__PURE__ */ e.jsxs("g", { style: { width: "100%" }, children: [
|
|
515
515
|
/* @__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
|
|
516
516
|
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
|
|
@@ -566,7 +566,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
566
566
|
C466.998,391.463,488.499,332.501,486.476,270.708z` })
|
|
567
567
|
] }) });
|
|
568
568
|
}, Sn = (n) => {
|
|
569
|
-
const t =
|
|
569
|
+
const t = V(n);
|
|
570
570
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
571
571
|
/* @__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" }),
|
|
572
572
|
/* @__PURE__ */ e.jsx("path", { fill: "none", d: "M7 4V2.5", stroke: t.primaryColor, strokeWidth: "1.5", strokeLinecap: "round" }),
|
|
@@ -583,20 +583,20 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
583
583
|
/* @__PURE__ */ e.jsx("circle", { stroke: "var(--On-surface-color)", fill: "none", cx: "12", cy: "12", r: "10", strokeWidth: "1.5" }),
|
|
584
584
|
/* @__PURE__ */ e.jsx("path", { stroke: "var(--On-surface-color)", fill: "none", d: "M12 8V12L14.5 14.5", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
585
585
|
] }), He = (n) => {
|
|
586
|
-
const t =
|
|
586
|
+
const t = V(n);
|
|
587
587
|
return /* @__PURE__ */ e.jsx(R, { ...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" }) });
|
|
588
588
|
}, Mn = (n) => {
|
|
589
|
-
const t =
|
|
589
|
+
const t = V(n);
|
|
590
590
|
return /* @__PURE__ */ e.jsx(R, { ...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" }) });
|
|
591
591
|
}, Ln = (n) => {
|
|
592
|
-
const t =
|
|
592
|
+
const t = V(n);
|
|
593
593
|
return /* @__PURE__ */ e.jsxs(R, { ...n, dpi: "52", children: [
|
|
594
594
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M50,12.5H2a2,2,0,0,1,0-4H50a2,2,0,0,1,0,4Z" }),
|
|
595
595
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M50,28H2a2,2,0,0,1,0-4H50a2,2,0,0,1,0,4Z" }),
|
|
596
596
|
/* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M50,43.5H2a2,2,0,0,1,0-4H50a2,2,0,0,1,0,4Z" })
|
|
597
597
|
] });
|
|
598
598
|
}, nn = (n) => {
|
|
599
|
-
const t =
|
|
599
|
+
const t = V(n);
|
|
600
600
|
return /* @__PURE__ */ e.jsxs(R, { ...n, dpi: "24", children: [
|
|
601
601
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
602
602
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -607,7 +607,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
607
607
|
] })
|
|
608
608
|
] });
|
|
609
609
|
}, vt = (n) => {
|
|
610
|
-
const t =
|
|
610
|
+
const t = V(n);
|
|
611
611
|
return /* @__PURE__ */ e.jsxs(R, { ...n, dpi: "24", children: [
|
|
612
612
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
613
613
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -618,7 +618,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
618
618
|
] })
|
|
619
619
|
] });
|
|
620
620
|
}, gt = (n) => {
|
|
621
|
-
const t =
|
|
621
|
+
const t = V(n);
|
|
622
622
|
return /* @__PURE__ */ e.jsxs(R, { ...n, dpi: "24", children: [
|
|
623
623
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
624
624
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -632,7 +632,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
632
632
|
/* @__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" }),
|
|
633
633
|
/* @__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" })
|
|
634
634
|
] }), bt = (n) => {
|
|
635
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
635
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
636
636
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
637
637
|
/* @__PURE__ */ e.jsx("g", { stroke: "none", strokeWidth: "0" }),
|
|
638
638
|
/* @__PURE__ */ e.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -705,16 +705,16 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
705
705
|
] })
|
|
706
706
|
] });
|
|
707
707
|
}, rn = (n) => /* @__PURE__ */ e.jsx(R, { ...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) => {
|
|
708
|
-
const t =
|
|
708
|
+
const t = V(n);
|
|
709
709
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
710
710
|
/* @__PURE__ */ e.jsx("path", { fill: "none", d: "M16 12L12 12L8 12", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round" }),
|
|
711
711
|
/* @__PURE__ */ e.jsx("circle", { fill: "none", cx: "12", cy: "12", r: "10", stroke: t.primaryColor, strokeWidth: "2" })
|
|
712
712
|
] });
|
|
713
713
|
}, $n = (n) => {
|
|
714
|
-
const t =
|
|
714
|
+
const t = V(n);
|
|
715
715
|
return /* @__PURE__ */ e.jsx(R, { ...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" }) });
|
|
716
716
|
}, Rn = (n) => {
|
|
717
|
-
const t =
|
|
717
|
+
const t = V(n);
|
|
718
718
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
719
719
|
/* @__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" }),
|
|
720
720
|
/* @__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" }),
|
|
@@ -729,16 +729,16 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
729
729
|
/* @__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" })
|
|
730
730
|
] });
|
|
731
731
|
}, En = (n) => {
|
|
732
|
-
const t =
|
|
732
|
+
const t = V(n);
|
|
733
733
|
return /* @__PURE__ */ e.jsx(R, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M6 12H18M12 6V18", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
734
|
-
},
|
|
735
|
-
const t =
|
|
734
|
+
}, Fn = (n) => {
|
|
735
|
+
const t = V(n);
|
|
736
736
|
return /* @__PURE__ */ e.jsx(R, { ...n, children: /* @__PURE__ */ e.jsx("path", { d: "M6 12L18 12", fill: "none", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
737
737
|
}, kt = (n) => {
|
|
738
|
-
const t =
|
|
738
|
+
const t = V(n);
|
|
739
739
|
return /* @__PURE__ */ e.jsx(R, { ...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" }) });
|
|
740
740
|
}, yt = (n) => {
|
|
741
|
-
const { primaryColor: t } =
|
|
741
|
+
const { primaryColor: t } = V(n);
|
|
742
742
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
743
743
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
744
744
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -786,7 +786,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
786
786
|
] })
|
|
787
787
|
] });
|
|
788
788
|
}, Nt = (n) => {
|
|
789
|
-
const { primaryColor: t } =
|
|
789
|
+
const { primaryColor: t } = V(n);
|
|
790
790
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
791
791
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
792
792
|
/* @__PURE__ */ e.jsx(
|
|
@@ -819,7 +819,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
819
819
|
) })
|
|
820
820
|
] });
|
|
821
821
|
}, wt = (n) => {
|
|
822
|
-
const { primaryColor: t } =
|
|
822
|
+
const { primaryColor: t } = V(n);
|
|
823
823
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
824
824
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
825
825
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -830,7 +830,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
830
830
|
] })
|
|
831
831
|
] });
|
|
832
832
|
}, St = (n) => {
|
|
833
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
833
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
834
834
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
835
835
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
836
836
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -888,7 +888,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
888
888
|
] })
|
|
889
889
|
] });
|
|
890
890
|
}, Mt = (n) => {
|
|
891
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
891
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
892
892
|
return /* @__PURE__ */ e.jsx(R, { ...n, children: /* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
|
|
893
893
|
/* @__PURE__ */ e.jsx(
|
|
894
894
|
"path",
|
|
@@ -923,7 +923,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
923
923
|
)
|
|
924
924
|
] }) });
|
|
925
925
|
}, Lt = (n) => {
|
|
926
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
926
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
927
927
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
928
928
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
929
929
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -975,7 +975,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
975
975
|
] })
|
|
976
976
|
] });
|
|
977
977
|
}, $t = (n) => {
|
|
978
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
978
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
979
979
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
980
980
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
981
981
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1039,7 +1039,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1039
1039
|
] })
|
|
1040
1040
|
] });
|
|
1041
1041
|
}, Rt = (n) => {
|
|
1042
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1042
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
1043
1043
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
1044
1044
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1045
1045
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1095,7 +1095,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1095
1095
|
] })
|
|
1096
1096
|
] });
|
|
1097
1097
|
}, Et = (n) => {
|
|
1098
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1098
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
1099
1099
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
1100
1100
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1101
1101
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1164,8 +1164,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1164
1164
|
)
|
|
1165
1165
|
] })
|
|
1166
1166
|
] });
|
|
1167
|
-
},
|
|
1168
|
-
const { primaryColor: t } =
|
|
1167
|
+
}, Ft = (n) => {
|
|
1168
|
+
const { primaryColor: t } = V(n);
|
|
1169
1169
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
1170
1170
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1171
1171
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1211,8 +1211,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1211
1211
|
)
|
|
1212
1212
|
] })
|
|
1213
1213
|
] });
|
|
1214
|
-
},
|
|
1215
|
-
const { primaryColor: t } =
|
|
1214
|
+
}, Vt = (n) => {
|
|
1215
|
+
const { primaryColor: t } = V(n);
|
|
1216
1216
|
return /* @__PURE__ */ e.jsxs(R, { ...n, dpi: "124", children: [
|
|
1217
1217
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1218
1218
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1250,8 +1250,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1250
1250
|
}
|
|
1251
1251
|
) }) })
|
|
1252
1252
|
] });
|
|
1253
|
-
},
|
|
1254
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1253
|
+
}, Vn = (n) => {
|
|
1254
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
1255
1255
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
1256
1256
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1257
1257
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1289,7 +1289,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1289
1289
|
] }) }) })
|
|
1290
1290
|
] });
|
|
1291
1291
|
}, Tt = (n) => {
|
|
1292
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1292
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
1293
1293
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
1294
1294
|
/* @__PURE__ */ e.jsx("g", { strokeWidth: "0" }),
|
|
1295
1295
|
/* @__PURE__ */ e.jsx("g", { strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1324,7 +1324,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1324
1324
|
] })
|
|
1325
1325
|
] });
|
|
1326
1326
|
}, Ot = (n) => {
|
|
1327
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1327
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
1328
1328
|
return /* @__PURE__ */ e.jsxs(R, { ...n, viewBox: "0 0 512 512", children: [
|
|
1329
1329
|
/* @__PURE__ */ e.jsx(
|
|
1330
1330
|
"path",
|
|
@@ -1356,7 +1356,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1356
1356
|
)
|
|
1357
1357
|
] });
|
|
1358
1358
|
}, At = (n) => {
|
|
1359
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1359
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
1360
1360
|
return /* @__PURE__ */ e.jsxs(R, { ...n, viewBox: "0 0 24 24", children: [
|
|
1361
1361
|
/* @__PURE__ */ e.jsx(
|
|
1362
1362
|
"path",
|
|
@@ -1406,7 +1406,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1406
1406
|
)
|
|
1407
1407
|
] });
|
|
1408
1408
|
}, Dt = (n) => {
|
|
1409
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1409
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
1410
1410
|
return /* @__PURE__ */ e.jsxs(R, { ...n, viewBox: "0 0 24 24", children: [
|
|
1411
1411
|
/* @__PURE__ */ e.jsx(
|
|
1412
1412
|
"path",
|
|
@@ -1447,7 +1447,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1447
1447
|
)
|
|
1448
1448
|
] });
|
|
1449
1449
|
}, Tn = (n) => {
|
|
1450
|
-
const { primaryColor: t } =
|
|
1450
|
+
const { primaryColor: t } = V(n);
|
|
1451
1451
|
return /* @__PURE__ */ e.jsxs(R, { ...n, viewBox: "0 0 24 24", children: [
|
|
1452
1452
|
/* @__PURE__ */ e.jsx(
|
|
1453
1453
|
"path",
|
|
@@ -1465,7 +1465,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1465
1465
|
)
|
|
1466
1466
|
] });
|
|
1467
1467
|
}, Ss = Tn, It = (n) => {
|
|
1468
|
-
const { primaryColor: t } =
|
|
1468
|
+
const { primaryColor: t } = V(n);
|
|
1469
1469
|
return /* @__PURE__ */ e.jsx(R, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
|
|
1470
1470
|
/* @__PURE__ */ e.jsx(
|
|
1471
1471
|
"path",
|
|
@@ -1491,7 +1491,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1491
1491
|
)
|
|
1492
1492
|
] }) });
|
|
1493
1493
|
}, Ht = (n) => {
|
|
1494
|
-
const { primaryColor: t } =
|
|
1494
|
+
const { primaryColor: t } = V(n);
|
|
1495
1495
|
return /* @__PURE__ */ e.jsx(R, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
|
|
1496
1496
|
/* @__PURE__ */ e.jsx(
|
|
1497
1497
|
"path",
|
|
@@ -1527,7 +1527,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1527
1527
|
)
|
|
1528
1528
|
] }) });
|
|
1529
1529
|
}, zt = (n) => {
|
|
1530
|
-
const { primaryColor: t } =
|
|
1530
|
+
const { primaryColor: t } = V(n);
|
|
1531
1531
|
return /* @__PURE__ */ e.jsx(R, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
|
|
1532
1532
|
/* @__PURE__ */ e.jsx(
|
|
1533
1533
|
"path",
|
|
@@ -1562,7 +1562,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1562
1562
|
)
|
|
1563
1563
|
] }) });
|
|
1564
1564
|
}, Pt = (n) => {
|
|
1565
|
-
const { primaryColor: t } =
|
|
1565
|
+
const { primaryColor: t } = V(n);
|
|
1566
1566
|
return /* @__PURE__ */ e.jsx(R, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
|
|
1567
1567
|
/* @__PURE__ */ e.jsx(
|
|
1568
1568
|
"path",
|
|
@@ -1610,7 +1610,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1610
1610
|
)
|
|
1611
1611
|
] }) });
|
|
1612
1612
|
}, Bt = (n) => {
|
|
1613
|
-
const { primaryColor: t } =
|
|
1613
|
+
const { primaryColor: t } = V(n);
|
|
1614
1614
|
return /* @__PURE__ */ e.jsx(R, { ...n, viewBox: "0 0 512 512", fill: "none", children: /* @__PURE__ */ e.jsxs("g", { fill: t, children: [
|
|
1615
1615
|
/* @__PURE__ */ e.jsx("rect", { y: "233.666", width: "68.805", height: "32" }),
|
|
1616
1616
|
/* @__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
|
|
@@ -1633,7 +1633,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1633
1633
|
)
|
|
1634
1634
|
] }) });
|
|
1635
1635
|
}, On = (n) => {
|
|
1636
|
-
const { primaryColor: t } =
|
|
1636
|
+
const { primaryColor: t } = V(n);
|
|
1637
1637
|
return /* @__PURE__ */ e.jsxs(R, { ...n, viewBox: "0 0 24 24", fill: "none", children: [
|
|
1638
1638
|
/* @__PURE__ */ e.jsx(
|
|
1639
1639
|
"path",
|
|
@@ -1660,7 +1660,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1660
1660
|
)
|
|
1661
1661
|
] });
|
|
1662
1662
|
}, Wt = (n) => {
|
|
1663
|
-
const { primaryColor: t } =
|
|
1663
|
+
const { primaryColor: t } = V(n);
|
|
1664
1664
|
return /* @__PURE__ */ e.jsxs(R, { ...n, dpi: "24", children: [
|
|
1665
1665
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1666
1666
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1675,7 +1675,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1675
1675
|
) })
|
|
1676
1676
|
] });
|
|
1677
1677
|
}, Gt = (n) => {
|
|
1678
|
-
const t =
|
|
1678
|
+
const t = V(n);
|
|
1679
1679
|
return /* @__PURE__ */ e.jsxs(R, { ...n, dpi: "72", viewBox: "0 -8 72 72", children: [
|
|
1680
1680
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1681
1681
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1704,7 +1704,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1704
1704
|
] })
|
|
1705
1705
|
] });
|
|
1706
1706
|
}, Zt = (n) => {
|
|
1707
|
-
const { primaryColor: t, secondaryColor: r } =
|
|
1707
|
+
const { primaryColor: t, secondaryColor: r } = V(n);
|
|
1708
1708
|
return /* @__PURE__ */ e.jsxs(R, { ...n, children: [
|
|
1709
1709
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1710
1710
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1752,7 +1752,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1752
1752
|
] })
|
|
1753
1753
|
] });
|
|
1754
1754
|
}, Yt = (n) => {
|
|
1755
|
-
const { primaryColor: t } =
|
|
1755
|
+
const { primaryColor: t } = V(n);
|
|
1756
1756
|
return /* @__PURE__ */ e.jsxs(R, { ...n, dpi: "30", children: [
|
|
1757
1757
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
1758
1758
|
/* @__PURE__ */ e.jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1903,7 +1903,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1903
1903
|
l == null || l(), c == null || c();
|
|
1904
1904
|
}, [l, c]), x = k(() => {
|
|
1905
1905
|
o == null || o(), c == null || c();
|
|
1906
|
-
}, [o, c]),
|
|
1906
|
+
}, [o, c]), p = k(() => u || (d ? null : m ? /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: m }) : /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: [
|
|
1907
1907
|
{
|
|
1908
1908
|
text: i,
|
|
1909
1909
|
hide: !0,
|
|
@@ -1920,7 +1920,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1920
1920
|
style: n,
|
|
1921
1921
|
header: r,
|
|
1922
1922
|
onHide: x,
|
|
1923
|
-
action:
|
|
1923
|
+
action: p(),
|
|
1924
1924
|
children: [
|
|
1925
1925
|
t && /* @__PURE__ */ e.jsx(U, { type: "body", children: t }),
|
|
1926
1926
|
a
|
|
@@ -1954,7 +1954,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1954
1954
|
}
|
|
1955
1955
|
i == null || i(h);
|
|
1956
1956
|
}
|
|
1957
|
-
}, [n, l, r, i]), u = c ? /* @__PURE__ */ e.jsx(pe, { "aria-hidden": "true" }) : /* @__PURE__ */ e.jsx(
|
|
1957
|
+
}, [n, l, r, i]), u = c ? /* @__PURE__ */ e.jsx(pe, { "aria-hidden": "true" }) : /* @__PURE__ */ e.jsx(Vn, { "aria-hidden": "true" }), m = c ? "Скопировано!" : "Копировать";
|
|
1958
1958
|
return t ? /* @__PURE__ */ e.jsxs("div", { className: "copy-button", children: [
|
|
1959
1959
|
/* @__PURE__ */ e.jsx(
|
|
1960
1960
|
de,
|
|
@@ -2309,9 +2309,9 @@ function rr(n = "light") {
|
|
|
2309
2309
|
Xe
|
|
2310
2310
|
), [s, i] = g(n), { colors: l, setColor: o, setReverse: c } = er(t[s].colors, t[s].reverse), a = k(
|
|
2311
2311
|
(x) => {
|
|
2312
|
-
const
|
|
2313
|
-
|
|
2314
|
-
o(
|
|
2312
|
+
const p = t[x].colors;
|
|
2313
|
+
p && (Object.entries(p).forEach(([f, j]) => {
|
|
2314
|
+
o(f, j);
|
|
2315
2315
|
}), c(t[x].reverse ?? !1), i(x));
|
|
2316
2316
|
},
|
|
2317
2317
|
[t, o]
|
|
@@ -2320,30 +2320,30 @@ function rr(n = "light") {
|
|
|
2320
2320
|
a(s);
|
|
2321
2321
|
}, [s, a]);
|
|
2322
2322
|
const d = k(
|
|
2323
|
-
(x,
|
|
2324
|
-
r((
|
|
2325
|
-
...
|
|
2323
|
+
(x, p, f) => {
|
|
2324
|
+
r((j) => ({
|
|
2325
|
+
...j,
|
|
2326
2326
|
[x]: {
|
|
2327
|
-
colors: { ...
|
|
2328
|
-
reverse:
|
|
2327
|
+
colors: { ...j[x].colors, [p]: f },
|
|
2328
|
+
reverse: j[x].reverse
|
|
2329
2329
|
}
|
|
2330
2330
|
}));
|
|
2331
2331
|
},
|
|
2332
2332
|
[]
|
|
2333
|
-
), u = k((x,
|
|
2334
|
-
r((
|
|
2335
|
-
...
|
|
2336
|
-
[x]: { colors:
|
|
2333
|
+
), u = k((x, p = "light", f) => {
|
|
2334
|
+
r((j) => ({
|
|
2335
|
+
...j,
|
|
2336
|
+
[x]: { colors: j[p].colors, reverse: f === void 0 ? j[p].reverse : f }
|
|
2337
2337
|
}));
|
|
2338
2338
|
}, []), m = k((x) => {
|
|
2339
|
-
r((
|
|
2340
|
-
const
|
|
2341
|
-
return delete
|
|
2339
|
+
r((p) => {
|
|
2340
|
+
const f = { ...p };
|
|
2341
|
+
return delete f[x], f;
|
|
2342
2342
|
}), s === x && i("light");
|
|
2343
2343
|
}, [s]), h = k(
|
|
2344
2344
|
(x) => {
|
|
2345
|
-
Xe[x] && r((
|
|
2346
|
-
...
|
|
2345
|
+
Xe[x] && r((p) => ({
|
|
2346
|
+
...p,
|
|
2347
2347
|
[x]: { ...Xe[x] }
|
|
2348
2348
|
}));
|
|
2349
2349
|
},
|
|
@@ -2388,16 +2388,16 @@ const $e = () => {
|
|
|
2388
2388
|
valueDisplayDuration: m = 2e3,
|
|
2389
2389
|
ariaLabel: h = "Регулятор значения",
|
|
2390
2390
|
startColor: x,
|
|
2391
|
-
className:
|
|
2392
|
-
...
|
|
2391
|
+
className: p = "",
|
|
2392
|
+
...f
|
|
2393
2393
|
}) => {
|
|
2394
|
-
const
|
|
2394
|
+
const j = Z(null), _ = Z(null), [b, y] = g(c ?? s), [v, M] = g("200px"), { colors: F } = _e(sn), { showPopup: B, popupState: A } = Kt({ valueDisplayDuration: m }), w = n ?? F.Primary_color ?? "#0000ff";
|
|
2395
2395
|
O(() => {
|
|
2396
2396
|
var L;
|
|
2397
2397
|
if (a === "vertical" && ((L = _.current) != null && L.parentElement)) {
|
|
2398
2398
|
const T = () => {
|
|
2399
|
-
var G,
|
|
2400
|
-
const q = (
|
|
2399
|
+
var G, C;
|
|
2400
|
+
const q = (C = (G = _.current) == null ? void 0 : G.parentElement) == null ? void 0 : C.clientHeight;
|
|
2401
2401
|
q && M(`${q}px`);
|
|
2402
2402
|
};
|
|
2403
2403
|
T();
|
|
@@ -2416,17 +2416,17 @@ const $e = () => {
|
|
|
2416
2416
|
() => i !== s ? (b - s) / (i - s) * 100 : 0,
|
|
2417
2417
|
[b, s, i]
|
|
2418
2418
|
), N = oe(() => ({
|
|
2419
|
-
...
|
|
2419
|
+
...f.style,
|
|
2420
2420
|
[a === "vertical" ? "height" : "width"]: `${E}%`,
|
|
2421
2421
|
background: d === "point" ? "transperent" : d === "static-color" ? w : Dn(E / 100, w, x)
|
|
2422
|
-
}), [E, w,
|
|
2422
|
+
}), [E, w, f.style, a, d]), I = oe(() => a === "vertical" ? {
|
|
2423
2423
|
"--range-width": o,
|
|
2424
2424
|
"--point-width": d === "point" ? o : "6px",
|
|
2425
2425
|
"--point-opacity": d === "point" ? "1" : "0",
|
|
2426
2426
|
"--truck-color": w,
|
|
2427
2427
|
width: dn,
|
|
2428
2428
|
height: v,
|
|
2429
|
-
...
|
|
2429
|
+
...f.style
|
|
2430
2430
|
} : {
|
|
2431
2431
|
"--range-width": o,
|
|
2432
2432
|
"--point-width": d === "point" ? o : "6px",
|
|
@@ -2434,8 +2434,8 @@ const $e = () => {
|
|
|
2434
2434
|
"--truck-color": w,
|
|
2435
2435
|
width: "100%",
|
|
2436
2436
|
height: dn,
|
|
2437
|
-
...
|
|
2438
|
-
}, [a, v,
|
|
2437
|
+
...f.style
|
|
2438
|
+
}, [a, v, f.style, o, d, w]), S = oe(() => a === "vertical" ? {
|
|
2439
2439
|
width: v
|
|
2440
2440
|
} : {
|
|
2441
2441
|
width: "100%"
|
|
@@ -2444,7 +2444,7 @@ const $e = () => {
|
|
|
2444
2444
|
"div",
|
|
2445
2445
|
{
|
|
2446
2446
|
ref: _,
|
|
2447
|
-
className: `range-wrapper ${a} ${
|
|
2447
|
+
className: `range-wrapper ${a} ${p}`,
|
|
2448
2448
|
style: I,
|
|
2449
2449
|
children: [
|
|
2450
2450
|
/* @__PURE__ */ e.jsxs("div", { className: "track", style: { background: t }, children: [
|
|
@@ -2454,7 +2454,7 @@ const $e = () => {
|
|
|
2454
2454
|
/* @__PURE__ */ e.jsx(
|
|
2455
2455
|
"input",
|
|
2456
2456
|
{
|
|
2457
|
-
ref:
|
|
2457
|
+
ref: j,
|
|
2458
2458
|
type: "range",
|
|
2459
2459
|
min: s,
|
|
2460
2460
|
style: S,
|
|
@@ -2462,8 +2462,8 @@ const $e = () => {
|
|
|
2462
2462
|
step: l,
|
|
2463
2463
|
value: b,
|
|
2464
2464
|
onChange: D,
|
|
2465
|
-
onFocus:
|
|
2466
|
-
onBlur:
|
|
2465
|
+
onFocus: f.onFocus,
|
|
2466
|
+
onBlur: f.onBlur,
|
|
2467
2467
|
className: "slider-input",
|
|
2468
2468
|
"aria-orientation": a,
|
|
2469
2469
|
"aria-valuenow": b,
|
|
@@ -2471,7 +2471,7 @@ const $e = () => {
|
|
|
2471
2471
|
"aria-valuemax": i,
|
|
2472
2472
|
"aria-label": h,
|
|
2473
2473
|
"aria-valuetext": `${b} из ${i}`,
|
|
2474
|
-
...
|
|
2474
|
+
...f
|
|
2475
2475
|
}
|
|
2476
2476
|
)
|
|
2477
2477
|
]
|
|
@@ -2492,20 +2492,20 @@ const $e = () => {
|
|
|
2492
2492
|
colorRange: m,
|
|
2493
2493
|
pointColor: h,
|
|
2494
2494
|
showBase: x = !0,
|
|
2495
|
-
showIndicator:
|
|
2496
|
-
showPoint:
|
|
2497
|
-
rounding:
|
|
2495
|
+
showIndicator: p = !0,
|
|
2496
|
+
showPoint: f = !1,
|
|
2497
|
+
rounding: j = !0,
|
|
2498
2498
|
showValue: _ = !0,
|
|
2499
2499
|
style: b,
|
|
2500
2500
|
children: y,
|
|
2501
2501
|
className: v,
|
|
2502
2502
|
startColor: M
|
|
2503
2503
|
}) => {
|
|
2504
|
-
const
|
|
2504
|
+
const F = Z(null), B = Z(!1), A = d * 2, w = d * 2, z = Math.min(A, w), D = A / 2, E = w / 2, N = z / 2 - a / 2, I = c === "point" ? !1 : p, S = c === "point" ? !0 : f, { colors: L } = _e(sn), T = m ?? L.Primary_color ?? "#0000ff", Y = h ?? L.Primary_color ?? "#0000ff", [q, G] = g(r);
|
|
2505
2505
|
O(() => {
|
|
2506
2506
|
r !== void 0 && G(r);
|
|
2507
2507
|
}, [r]);
|
|
2508
|
-
const
|
|
2508
|
+
const C = k(() => {
|
|
2509
2509
|
switch (o) {
|
|
2510
2510
|
case "semicircle":
|
|
2511
2511
|
return 180;
|
|
@@ -2518,40 +2518,40 @@ const $e = () => {
|
|
|
2518
2518
|
() => t !== n ? (q - n) / (t - n) * 100 : 0,
|
|
2519
2519
|
[q, n, t]
|
|
2520
2520
|
), K = k(() => {
|
|
2521
|
-
if (!
|
|
2521
|
+
if (!F.current) return;
|
|
2522
2522
|
const [W, he] = $(), je = (q - n) * he / (t - n);
|
|
2523
2523
|
if (x) {
|
|
2524
|
-
const X =
|
|
2525
|
-
X && (X.style.stroke = u, X.style.strokeWidth = a.toString(), X.style.strokeLinecap =
|
|
2524
|
+
const X = F.current.querySelector('[data-el="base"]');
|
|
2525
|
+
X && (X.style.stroke = u, X.style.strokeWidth = a.toString(), X.style.strokeLinecap = j ? "round" : "", X.style.strokeDashoffset = W.toString(), X.style.strokeDasharray = `${he}, ${N * Math.PI * 2 - he}`);
|
|
2526
2526
|
}
|
|
2527
2527
|
if (I) {
|
|
2528
|
-
const X =
|
|
2528
|
+
const X = F.current.querySelector('[data-el="indicator"]');
|
|
2529
2529
|
if (X) {
|
|
2530
2530
|
const me = parseFloat(X.dataset.percentage ?? "");
|
|
2531
|
-
me !== null && (me < H - 2 || me > H + 2) ? X.style.transition = ".3s" : X.style.transition = B.current ? "none" : ".3s", X.dataset.percentage = H.toString(), X.style.stroke = c === "static-color" ? T : Dn(H / 100, T, M), X.style.strokeWidth = a.toString(), X.style.strokeLinecap =
|
|
2531
|
+
me !== null && (me < H - 2 || me > H + 2) ? X.style.transition = ".3s" : X.style.transition = B.current ? "none" : ".3s", X.dataset.percentage = H.toString(), X.style.stroke = c === "static-color" ? T : Dn(H / 100, T, M), X.style.strokeWidth = a.toString(), X.style.strokeLinecap = j ? "round" : "", X.style.strokeDashoffset = W.toString(), X.style.strokeDasharray = `${je}, ${N * Math.PI * 2 - je}`;
|
|
2532
2532
|
}
|
|
2533
2533
|
}
|
|
2534
2534
|
if (S) {
|
|
2535
|
-
const X =
|
|
2535
|
+
const X = F.current.querySelector('[data-el="point"]');
|
|
2536
2536
|
if (X) {
|
|
2537
2537
|
const me = parseFloat(X.dataset.percentage ?? "");
|
|
2538
2538
|
me !== null && (me < H - 2 || me > H + 2) ? X.style.transition = ".3s" : X.style.transition = B.current ? "none" : ".3s", X.dataset.percentage = H.toString(), X.style.stroke = Y, X.style.strokeWidth = a.toString(), X.style.strokeLinecap = "round", q === t && o === "semicircle" ? X.style.strokeDashoffset = "0" : X.style.strokeDashoffset = (W - je).toString(), X.style.strokeDasharray = `0, ${N * Math.PI * 2}`;
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
|
-
}, [q, $, t, n, N, a, u, T, Y, x, I, S,
|
|
2541
|
+
}, [q, $, t, n, N, a, u, T, Y, x, I, S, j, H, M]), J = (W) => {
|
|
2542
2542
|
B.current = !0, document.addEventListener("mousemove", te), document.addEventListener("mouseup", Q), ie(W);
|
|
2543
2543
|
}, te = (W) => {
|
|
2544
2544
|
W.preventDefault(), B.current && ie(W);
|
|
2545
2545
|
}, Q = () => {
|
|
2546
2546
|
B.current = !1, document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", Q);
|
|
2547
2547
|
}, ie = k((W) => {
|
|
2548
|
-
if (!
|
|
2549
|
-
const he =
|
|
2548
|
+
if (!F.current) return;
|
|
2549
|
+
const he = C(), je = F.current.getBoundingClientRect(), X = je.left + je.width / 2, me = je.top + je.height / 2, st = W.clientX, it = W.clientY, lt = me - it, at = X - st;
|
|
2550
2550
|
let le = Math.atan2(lt, at) * (180 / Math.PI);
|
|
2551
2551
|
he === 270 && (le += 45), le < 0 && (le = 360 + le), le < 0 && (le = 0), le > he && q > (t - n) / 2 ? le = he : le > he && (le = 0);
|
|
2552
2552
|
const ot = he, ct = t - n, Ue = Math.round(le * ct / ot + n);
|
|
2553
2553
|
G(Ue), Ue !== r && s && s(Ue);
|
|
2554
|
-
}, [
|
|
2554
|
+
}, [C, s, t, n, D, E, q]);
|
|
2555
2555
|
O(() => {
|
|
2556
2556
|
K();
|
|
2557
2557
|
}, [K]), O(() => () => {
|
|
@@ -2564,7 +2564,7 @@ const $e = () => {
|
|
|
2564
2564
|
/* @__PURE__ */ e.jsxs(
|
|
2565
2565
|
"svg",
|
|
2566
2566
|
{
|
|
2567
|
-
ref:
|
|
2567
|
+
ref: F,
|
|
2568
2568
|
width: "100%",
|
|
2569
2569
|
height: "100%",
|
|
2570
2570
|
onMouseDown: J,
|
|
@@ -2733,12 +2733,12 @@ const cr = 100, dr = (n) => {
|
|
|
2733
2733
|
s !== 0 ? /* @__PURE__ */ e.jsx(se, {}) : null,
|
|
2734
2734
|
/* @__PURE__ */ e.jsx(zn, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
|
|
2735
2735
|
] }, s)) }) });
|
|
2736
|
-
}, Pn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(Ce, { container: n.container, children: /* @__PURE__ */ e.jsx(ur, { ...n }) }) : /* @__PURE__ */ e.jsx(Ce, { container: n.container, children: /* @__PURE__ */ e.jsx(dr, { ...n }) }),
|
|
2736
|
+
}, Pn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(Ce, { container: n.container, children: /* @__PURE__ */ e.jsx(ur, { ...n }) }) : /* @__PURE__ */ e.jsx(Ce, { container: n.container, children: /* @__PURE__ */ e.jsx(dr, { ...n }) }), Fs = ne.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...l }, o) => {
|
|
2737
2737
|
const [c, a] = g(!1), [d, u] = g(void 0), { screen: m } = _e(we), h = () => {
|
|
2738
2738
|
a(!1), u(void 0);
|
|
2739
|
-
}, x = (
|
|
2740
|
-
|
|
2741
|
-
},
|
|
2739
|
+
}, x = (f) => {
|
|
2740
|
+
f.stopPropagation(), a(!0), u({ x: f.clientX, y: f.clientY }), i == null || i(f);
|
|
2741
|
+
}, p = n ?? m;
|
|
2742
2742
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2743
2743
|
/* @__PURE__ */ e.jsx(
|
|
2744
2744
|
de,
|
|
@@ -2751,7 +2751,7 @@ const cr = 100, dr = (n) => {
|
|
|
2751
2751
|
/* @__PURE__ */ e.jsx(
|
|
2752
2752
|
Pn,
|
|
2753
2753
|
{
|
|
2754
|
-
marginBottom:
|
|
2754
|
+
marginBottom: p === ee.MOBILE ? 80 : 0,
|
|
2755
2755
|
onHide: h,
|
|
2756
2756
|
autoHide: t,
|
|
2757
2757
|
screensize: n,
|
|
@@ -2855,7 +2855,7 @@ const Gn = ve(
|
|
|
2855
2855
|
className: m,
|
|
2856
2856
|
...h
|
|
2857
2857
|
}, x) => {
|
|
2858
|
-
const
|
|
2858
|
+
const p = t !== void 0 ? t === r : l !== void 0 ? l : o;
|
|
2859
2859
|
return /* @__PURE__ */ e.jsxs("label", { className: `radio-button-container ${m || ""}`, children: [
|
|
2860
2860
|
/* @__PURE__ */ e.jsx(
|
|
2861
2861
|
"input",
|
|
@@ -2864,11 +2864,11 @@ const Gn = ve(
|
|
|
2864
2864
|
className: "radio-button",
|
|
2865
2865
|
name: n,
|
|
2866
2866
|
type: "radio",
|
|
2867
|
-
checked:
|
|
2867
|
+
checked: p,
|
|
2868
2868
|
value: r,
|
|
2869
2869
|
onChange: s,
|
|
2870
2870
|
readOnly: i,
|
|
2871
|
-
"aria-checked":
|
|
2871
|
+
"aria-checked": p,
|
|
2872
2872
|
"aria-label": c || h["aria-label"],
|
|
2873
2873
|
...h
|
|
2874
2874
|
}
|
|
@@ -2896,11 +2896,11 @@ const Zn = ve(
|
|
|
2896
2896
|
O(() => {
|
|
2897
2897
|
h(x(t));
|
|
2898
2898
|
}, [t]);
|
|
2899
|
-
const x = (
|
|
2899
|
+
const x = (f) => f === void 0 ? [] : Array.isArray(f) ? f : [f], p = (f, j) => {
|
|
2900
2900
|
if (i) return;
|
|
2901
|
-
|
|
2901
|
+
f.preventDefault();
|
|
2902
2902
|
let _;
|
|
2903
|
-
r ? _ = m.includes(
|
|
2903
|
+
r ? _ = m.includes(j) ? m.filter((b) => b !== j) : [...m, j] : _ = m.includes(j) ? [] : [j], h(_), l == null || l(_, f);
|
|
2904
2904
|
};
|
|
2905
2905
|
return /* @__PURE__ */ e.jsx(
|
|
2906
2906
|
"div",
|
|
@@ -2909,33 +2909,33 @@ const Zn = ve(
|
|
|
2909
2909
|
className: `segmented-button segmented-button--${c} segmented-button--${a} ${o}`,
|
|
2910
2910
|
role: "group",
|
|
2911
2911
|
...d,
|
|
2912
|
-
children: n.map((
|
|
2912
|
+
children: n.map((f) => /* @__PURE__ */ e.jsxs(
|
|
2913
2913
|
"button",
|
|
2914
2914
|
{
|
|
2915
2915
|
type: "button",
|
|
2916
2916
|
role: "radio",
|
|
2917
|
-
"aria-checked": m.includes(
|
|
2918
|
-
"aria-label":
|
|
2917
|
+
"aria-checked": m.includes(f),
|
|
2918
|
+
"aria-label": f,
|
|
2919
2919
|
disabled: i,
|
|
2920
|
-
className: `segmented-button__item ${m.includes(
|
|
2921
|
-
onClick: (
|
|
2920
|
+
className: `segmented-button__item ${m.includes(f) ? "segmented-button__item--active" : ""}`,
|
|
2921
|
+
onClick: (j) => p(j, f),
|
|
2922
2922
|
children: [
|
|
2923
|
-
m.includes(
|
|
2924
|
-
/* @__PURE__ */ e.jsx("span", { className: "segmented-button__text", children:
|
|
2923
|
+
m.includes(f) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(pe, {}) }),
|
|
2924
|
+
/* @__PURE__ */ e.jsx("span", { className: "segmented-button__text", children: f }),
|
|
2925
2925
|
/* @__PURE__ */ e.jsx(
|
|
2926
2926
|
"input",
|
|
2927
2927
|
{
|
|
2928
2928
|
type: r ? "checkbox" : "radio",
|
|
2929
2929
|
name: s,
|
|
2930
|
-
value:
|
|
2931
|
-
checked: m.includes(
|
|
2930
|
+
value: f,
|
|
2931
|
+
checked: m.includes(f),
|
|
2932
2932
|
readOnly: !0,
|
|
2933
2933
|
className: "segmented-button__input"
|
|
2934
2934
|
}
|
|
2935
2935
|
)
|
|
2936
2936
|
]
|
|
2937
2937
|
},
|
|
2938
|
-
|
|
2938
|
+
f
|
|
2939
2939
|
))
|
|
2940
2940
|
}
|
|
2941
2941
|
);
|
|
@@ -2987,8 +2987,8 @@ function hr({
|
|
|
2987
2987
|
u !== void 0 && (n == null || n(u), m(void 0), !i && (s == null || s()));
|
|
2988
2988
|
}, [u, n, i, s]), x = k(() => {
|
|
2989
2989
|
s == null || s();
|
|
2990
|
-
}, [s]),
|
|
2991
|
-
m(
|
|
2990
|
+
}, [s]), p = k((f) => {
|
|
2991
|
+
m(f);
|
|
2992
2992
|
}, []);
|
|
2993
2993
|
return /* @__PURE__ */ e.jsxs(
|
|
2994
2994
|
Ee,
|
|
@@ -3015,32 +3015,32 @@ function hr({
|
|
|
3015
3015
|
scroll: !0,
|
|
3016
3016
|
maxHeight: "300px",
|
|
3017
3017
|
"aria-label": "Варианты выбора",
|
|
3018
|
-
children: t.map((
|
|
3018
|
+
children: t.map((f, j) => /* @__PURE__ */ e.jsx(
|
|
3019
3019
|
"label",
|
|
3020
3020
|
{
|
|
3021
|
-
"aria-disabled":
|
|
3021
|
+
"aria-disabled": f.disabled,
|
|
3022
3022
|
children: /* @__PURE__ */ e.jsx(
|
|
3023
3023
|
_r,
|
|
3024
3024
|
{
|
|
3025
|
-
hovered: !
|
|
3026
|
-
header:
|
|
3027
|
-
icon:
|
|
3028
|
-
description:
|
|
3029
|
-
onClick:
|
|
3025
|
+
hovered: !f.disabled,
|
|
3026
|
+
header: f.title,
|
|
3027
|
+
icon: f.icon,
|
|
3028
|
+
description: f.description,
|
|
3029
|
+
onClick: f.disabled ? void 0 : () => p(f.data),
|
|
3030
3030
|
control: /* @__PURE__ */ e.jsx(
|
|
3031
3031
|
Gn,
|
|
3032
3032
|
{
|
|
3033
|
-
onClick:
|
|
3033
|
+
onClick: f.disabled ? void 0 : () => p(f.data),
|
|
3034
3034
|
name: l,
|
|
3035
|
-
checked:
|
|
3036
|
-
disabled:
|
|
3037
|
-
"aria-label": `Выбрать ${
|
|
3035
|
+
checked: f.data === u,
|
|
3036
|
+
disabled: f.disabled,
|
|
3037
|
+
"aria-label": `Выбрать ${f.title}`
|
|
3038
3038
|
}
|
|
3039
3039
|
)
|
|
3040
3040
|
}
|
|
3041
3041
|
)
|
|
3042
3042
|
},
|
|
3043
|
-
`${l}_${
|
|
3043
|
+
`${l}_${j}`
|
|
3044
3044
|
))
|
|
3045
3045
|
}
|
|
3046
3046
|
),
|
|
@@ -3068,7 +3068,7 @@ function mr({
|
|
|
3068
3068
|
)
|
|
3069
3069
|
] });
|
|
3070
3070
|
}
|
|
3071
|
-
const
|
|
3071
|
+
const Ve = ne.forwardRef(
|
|
3072
3072
|
({
|
|
3073
3073
|
onClick: n,
|
|
3074
3074
|
inputRef: t,
|
|
@@ -3084,15 +3084,15 @@ const Fe = ne.forwardRef(
|
|
|
3084
3084
|
name: m,
|
|
3085
3085
|
value: h,
|
|
3086
3086
|
placeholder: x,
|
|
3087
|
-
className:
|
|
3088
|
-
validEmptyValue:
|
|
3089
|
-
onFocus:
|
|
3087
|
+
className: p,
|
|
3088
|
+
validEmptyValue: f,
|
|
3089
|
+
onFocus: j,
|
|
3090
3090
|
onBlur: _,
|
|
3091
3091
|
error: b,
|
|
3092
3092
|
max: y,
|
|
3093
3093
|
min: v,
|
|
3094
3094
|
autoFocus: M,
|
|
3095
|
-
disabled:
|
|
3095
|
+
disabled: F,
|
|
3096
3096
|
size: B = "medium",
|
|
3097
3097
|
helperText: A,
|
|
3098
3098
|
errorText: w,
|
|
@@ -3102,8 +3102,8 @@ const Fe = ne.forwardRef(
|
|
|
3102
3102
|
if (!E.current) return;
|
|
3103
3103
|
const J = E.current.querySelector("input");
|
|
3104
3104
|
J == null || J.focus();
|
|
3105
|
-
},
|
|
3106
|
-
|
|
3105
|
+
}, C = (J) => {
|
|
3106
|
+
j == null || j(J), L(!0);
|
|
3107
3107
|
}, $ = (J) => {
|
|
3108
3108
|
_ == null || _(J), L(!1), Y(!!J.target.value);
|
|
3109
3109
|
}, H = k(
|
|
@@ -3111,14 +3111,14 @@ const Fe = ne.forwardRef(
|
|
|
3111
3111
|
[b]
|
|
3112
3112
|
);
|
|
3113
3113
|
O(() => {
|
|
3114
|
-
H(
|
|
3115
|
-
}, [h,
|
|
3114
|
+
H(f, h), Y(!!h);
|
|
3115
|
+
}, [h, f, H]);
|
|
3116
3116
|
const K = {
|
|
3117
3117
|
small: "input-field__text-field_small",
|
|
3118
3118
|
medium: "input-field__text-field_medium",
|
|
3119
3119
|
large: "input-field__text-field_large"
|
|
3120
3120
|
};
|
|
3121
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${
|
|
3121
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${p || ""}`, children: [
|
|
3122
3122
|
/* @__PURE__ */ e.jsxs(
|
|
3123
3123
|
"div",
|
|
3124
3124
|
{
|
|
@@ -3132,7 +3132,7 @@ const Fe = ne.forwardRef(
|
|
|
3132
3132
|
${S ? "input-field_active" : ""}
|
|
3133
3133
|
${i ? "input-field_transparent" : ""}
|
|
3134
3134
|
${N ? "input-field_error" : ""}
|
|
3135
|
-
${
|
|
3135
|
+
${F ? "input-field_disabled" : ""}
|
|
3136
3136
|
`,
|
|
3137
3137
|
onClick: G,
|
|
3138
3138
|
children: [
|
|
@@ -3146,7 +3146,7 @@ const Fe = ne.forwardRef(
|
|
|
3146
3146
|
min: v,
|
|
3147
3147
|
id: q,
|
|
3148
3148
|
readOnly: l,
|
|
3149
|
-
disabled:
|
|
3149
|
+
disabled: F,
|
|
3150
3150
|
required: !0,
|
|
3151
3151
|
type: o ? "password" : s,
|
|
3152
3152
|
className: `
|
|
@@ -3157,7 +3157,7 @@ const Fe = ne.forwardRef(
|
|
|
3157
3157
|
value: h,
|
|
3158
3158
|
onClick: n,
|
|
3159
3159
|
onChange: (J) => u == null ? void 0 : u(J.target.value, J.target.name, J),
|
|
3160
|
-
onFocus:
|
|
3160
|
+
onFocus: C,
|
|
3161
3161
|
onBlur: $,
|
|
3162
3162
|
onKeyDown: z,
|
|
3163
3163
|
autoFocus: M,
|
|
@@ -3177,7 +3177,7 @@ const Fe = ne.forwardRef(
|
|
|
3177
3177
|
}
|
|
3178
3178
|
)
|
|
3179
3179
|
] }),
|
|
3180
|
-
a && h && !
|
|
3180
|
+
a && h && !F && /* @__PURE__ */ e.jsx("div", { className: `
|
|
3181
3181
|
input-field__icon-container
|
|
3182
3182
|
input-field__icon-container_clear-btn
|
|
3183
3183
|
`, onClick: a, children: /* @__PURE__ */ e.jsx(ue, { "aria-label": "Clear input" }) })
|
|
@@ -3189,8 +3189,8 @@ const Fe = ne.forwardRef(
|
|
|
3189
3189
|
] });
|
|
3190
3190
|
}
|
|
3191
3191
|
);
|
|
3192
|
-
|
|
3193
|
-
const
|
|
3192
|
+
Ve.displayName = "TextField";
|
|
3193
|
+
const Vs = ({
|
|
3194
3194
|
styleContainer: n,
|
|
3195
3195
|
text: t,
|
|
3196
3196
|
header: r,
|
|
@@ -3205,30 +3205,30 @@ const Fs = ({
|
|
|
3205
3205
|
cancelText: m = "Отмена",
|
|
3206
3206
|
validate: h
|
|
3207
3207
|
}) => {
|
|
3208
|
-
const [x,
|
|
3208
|
+
const [x, p] = g(d), [f, j] = g(!0);
|
|
3209
3209
|
O(() => {
|
|
3210
3210
|
if (h)
|
|
3211
|
-
|
|
3211
|
+
j(h(x));
|
|
3212
3212
|
else if (o === "number") {
|
|
3213
3213
|
const v = Number(x);
|
|
3214
|
-
|
|
3214
|
+
j(!isNaN(v) && v >= c && v <= a);
|
|
3215
3215
|
} else
|
|
3216
|
-
|
|
3216
|
+
j(!0);
|
|
3217
3217
|
}, [x, h, o, c, a]);
|
|
3218
3218
|
const _ = k(() => {
|
|
3219
|
-
|
|
3220
|
-
}, [x,
|
|
3219
|
+
f && (s == null || s(x), i == null || i());
|
|
3220
|
+
}, [x, f, s, i]), b = k(() => {
|
|
3221
3221
|
i == null || i();
|
|
3222
3222
|
}, [i]), y = (v) => {
|
|
3223
3223
|
if (o === "number") {
|
|
3224
3224
|
if (v === "") {
|
|
3225
|
-
|
|
3225
|
+
p("");
|
|
3226
3226
|
return;
|
|
3227
3227
|
}
|
|
3228
3228
|
const M = Number(v);
|
|
3229
|
-
isNaN(M) || (M < c && (v = String(c)), M > a && (v = String(a)),
|
|
3229
|
+
isNaN(M) || (M < c && (v = String(c)), M > a && (v = String(a)), p(v));
|
|
3230
3230
|
} else
|
|
3231
|
-
|
|
3231
|
+
p(v);
|
|
3232
3232
|
};
|
|
3233
3233
|
return /* @__PURE__ */ e.jsxs(
|
|
3234
3234
|
Ee,
|
|
@@ -3242,7 +3242,7 @@ const Fs = ({
|
|
|
3242
3242
|
ce,
|
|
3243
3243
|
{
|
|
3244
3244
|
onClick: _,
|
|
3245
|
-
disabled: !
|
|
3245
|
+
disabled: !f || o === "number" && x === "",
|
|
3246
3246
|
children: u
|
|
3247
3247
|
}
|
|
3248
3248
|
)
|
|
@@ -3251,7 +3251,7 @@ const Fs = ({
|
|
|
3251
3251
|
t && /* @__PURE__ */ e.jsx(U, { type: "body", children: t }),
|
|
3252
3252
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
3253
3253
|
/* @__PURE__ */ e.jsx(
|
|
3254
|
-
|
|
3254
|
+
Ve,
|
|
3255
3255
|
{
|
|
3256
3256
|
type: o,
|
|
3257
3257
|
min: c,
|
|
@@ -3260,10 +3260,10 @@ const Fs = ({
|
|
|
3260
3260
|
placeholder: l,
|
|
3261
3261
|
value: x,
|
|
3262
3262
|
onChange: y,
|
|
3263
|
-
error: !
|
|
3263
|
+
error: !f
|
|
3264
3264
|
}
|
|
3265
3265
|
),
|
|
3266
|
-
!
|
|
3266
|
+
!f && o === "number" && /* @__PURE__ */ e.jsxs(U, { type: "body", children: [
|
|
3267
3267
|
"Введите число от ",
|
|
3268
3268
|
c,
|
|
3269
3269
|
" до ",
|
|
@@ -3291,7 +3291,7 @@ const Fs = ({
|
|
|
3291
3291
|
_n(!0, document.body);
|
|
3292
3292
|
const x = () => {
|
|
3293
3293
|
l == null || l();
|
|
3294
|
-
},
|
|
3294
|
+
}, p = () => {
|
|
3295
3295
|
i == null || i();
|
|
3296
3296
|
};
|
|
3297
3297
|
return u || h === ee.MOBILE ? /* @__PURE__ */ e.jsxs(
|
|
@@ -3319,11 +3319,11 @@ const Fs = ({
|
|
|
3319
3319
|
}
|
|
3320
3320
|
) }),
|
|
3321
3321
|
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__text", children: r }),
|
|
3322
|
-
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__save", children: i && /* @__PURE__ */ e.jsx("button", { onClick:
|
|
3322
|
+
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__save", children: i && /* @__PURE__ */ e.jsx("button", { onClick: p, className: "full-screen-dialog__container__header__save__button", children: /* @__PURE__ */ e.jsx(U, { type: "body", weight: "bold", children: a || "Сохранить" }) }) })
|
|
3323
3323
|
] }),
|
|
3324
3324
|
/* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__content", children: [
|
|
3325
3325
|
s,
|
|
3326
|
-
m && /* @__PURE__ */ e.jsx(ze, { btns: m.filter((
|
|
3326
|
+
m && /* @__PURE__ */ e.jsx(ze, { btns: m.filter((j) => !j.hide && !j.success) })
|
|
3327
3327
|
] })
|
|
3328
3328
|
]
|
|
3329
3329
|
}
|
|
@@ -3337,7 +3337,7 @@ const Fs = ({
|
|
|
3337
3337
|
onHide: x,
|
|
3338
3338
|
action: m === void 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3339
3339
|
l && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick: x, children: d ?? "Отмена" }),
|
|
3340
|
-
l && /* @__PURE__ */ e.jsx(ye, { onClick:
|
|
3340
|
+
l && /* @__PURE__ */ e.jsx(ye, { onClick: p, children: a ?? "Сохранить" })
|
|
3341
3341
|
] }) : /* @__PURE__ */ e.jsx(ze, { btns: m, onHide: l, onSuccess: i }),
|
|
3342
3342
|
children: s
|
|
3343
3343
|
}
|
|
@@ -3358,13 +3358,13 @@ const Fs = ({
|
|
|
3358
3358
|
rootApp: m = "#root",
|
|
3359
3359
|
variant: h = "elevated",
|
|
3360
3360
|
loading: x = !1,
|
|
3361
|
-
style:
|
|
3362
|
-
elevation:
|
|
3363
|
-
...
|
|
3361
|
+
style: p,
|
|
3362
|
+
elevation: f = 6,
|
|
3363
|
+
...j
|
|
3364
3364
|
}, _) => {
|
|
3365
|
-
const { screen: b } = _e(we), y = u ?? b, v = `elevation-${Math.min(24, Math.max(0,
|
|
3366
|
-
|
|
3367
|
-
},
|
|
3365
|
+
const { screen: b } = _e(we), y = u ?? b, v = `elevation-${Math.min(24, Math.max(0, f))}`, M = (A) => {
|
|
3366
|
+
F(A) && (d == null || d(A), B(A));
|
|
3367
|
+
}, F = (A) => {
|
|
3368
3368
|
const w = A.target;
|
|
3369
3369
|
return !w.closest(".action-container") && !w.closest(".card-icon-button") && !w.closest(".card-child-container") && !w.closest(".card-children") && !!w.closest(m);
|
|
3370
3370
|
}, B = (A) => {
|
|
@@ -3377,10 +3377,10 @@ const Fs = ({
|
|
|
3377
3377
|
"div",
|
|
3378
3378
|
{
|
|
3379
3379
|
ref: _,
|
|
3380
|
-
style:
|
|
3380
|
+
style: p,
|
|
3381
3381
|
className: `${n} card card--${h} ${v} ${x ? "card--loading" : ""}`,
|
|
3382
3382
|
onClick: M,
|
|
3383
|
-
...
|
|
3383
|
+
...j,
|
|
3384
3384
|
children: [
|
|
3385
3385
|
/* @__PURE__ */ e.jsx("div", { className: "card-ripple-container" }),
|
|
3386
3386
|
r && /* @__PURE__ */ e.jsxs("div", { className: "card-image-container", children: [
|
|
@@ -3431,22 +3431,22 @@ const Fs = ({
|
|
|
3431
3431
|
);
|
|
3432
3432
|
xr.displayName = "Card";
|
|
3433
3433
|
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 }) => {
|
|
3434
|
-
const [c, a] = g(!1), [d, u] = g(null), [m, h] = g({ x: 0, y: 0 }), x = (
|
|
3435
|
-
|
|
3436
|
-
},
|
|
3437
|
-
|
|
3438
|
-
},
|
|
3434
|
+
const [c, a] = g(!1), [d, u] = g(null), [m, h] = g({ x: 0, y: 0 }), x = (j) => {
|
|
3435
|
+
j.button == 1 && (a(!1), u(null), document.body.style.cursor = "auto");
|
|
3436
|
+
}, p = (j) => {
|
|
3437
|
+
j.button == 1 && o && (u({ x: j.clientX, y: j.clientY }), a(!0), document.body.style.cursor = "move");
|
|
3438
|
+
}, f = k((j) => {
|
|
3439
3439
|
c && (h((_) => {
|
|
3440
3440
|
if (!d)
|
|
3441
3441
|
return _;
|
|
3442
|
-
const b =
|
|
3442
|
+
const b = j.clientX - d.x, y = j.clientY - d.y;
|
|
3443
3443
|
let v = _.x + b, M = _.y + y;
|
|
3444
3444
|
return { x: v, y: M };
|
|
3445
|
-
}), u({ x:
|
|
3445
|
+
}), u({ x: j.clientX, y: j.clientY }));
|
|
3446
3446
|
}, [c, d]);
|
|
3447
3447
|
return O(() => {
|
|
3448
3448
|
l && h({ ...l });
|
|
3449
|
-
}, [l]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: i }, className: `big-container ${t}`, onMouseDown:
|
|
3449
|
+
}, [l]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: i }, className: `big-container ${t}`, onMouseDown: p, onMouseUp: x, onMouseMove: f, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: m.x, top: m.y }, children: n }) });
|
|
3450
3450
|
}, Ds = ({
|
|
3451
3451
|
onClick: n,
|
|
3452
3452
|
onContextMenu: t,
|
|
@@ -3459,17 +3459,17 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3459
3459
|
classNameColumn: a,
|
|
3460
3460
|
minColumnWidth: d = "auto"
|
|
3461
3461
|
}) => {
|
|
3462
|
-
const u = ne.useCallback((x,
|
|
3463
|
-
const
|
|
3464
|
-
return
|
|
3465
|
-
if (
|
|
3466
|
-
console.error(`Invalid column index. indexCol = ${
|
|
3462
|
+
const u = ne.useCallback((x, p) => {
|
|
3463
|
+
const f = Array.from({ length: x }, () => []);
|
|
3464
|
+
return p.forEach((j) => {
|
|
3465
|
+
if (j.indexCol >= f.length) {
|
|
3466
|
+
console.error(`Invalid column index. indexCol = ${j.indexCol}, column count = ${x}`);
|
|
3467
3467
|
return;
|
|
3468
3468
|
}
|
|
3469
|
-
j
|
|
3470
|
-
}),
|
|
3471
|
-
}, []), m = ne.useMemo(() => u(l, o), [u, l, o]), h = ne.useCallback((x,
|
|
3472
|
-
c == null || c(x,
|
|
3469
|
+
f[j.indexCol].push(j.node);
|
|
3470
|
+
}), f;
|
|
3471
|
+
}, []), m = ne.useMemo(() => u(l, o), [u, l, o]), h = ne.useCallback((x, p) => {
|
|
3472
|
+
c == null || c(x, p);
|
|
3473
3473
|
}, [c]);
|
|
3474
3474
|
return /* @__PURE__ */ e.jsx(
|
|
3475
3475
|
"div",
|
|
@@ -3483,15 +3483,15 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3483
3483
|
},
|
|
3484
3484
|
className: `${s} alex-evo-sh-ui-kit-column-layout`,
|
|
3485
3485
|
"data-testid": "column-layout-container",
|
|
3486
|
-
children: m.map((x,
|
|
3486
|
+
children: m.map((x, p) => /* @__PURE__ */ e.jsx(
|
|
3487
3487
|
"div",
|
|
3488
3488
|
{
|
|
3489
|
-
onClick: (
|
|
3489
|
+
onClick: (f) => h(p, f),
|
|
3490
3490
|
className: `${a} alex-evo-sh-ui-kit-column-layout-coll`,
|
|
3491
|
-
"data-testid": `column-${
|
|
3492
|
-
children: x.map((
|
|
3491
|
+
"data-testid": `column-${p}`,
|
|
3492
|
+
children: x.map((f, j) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: f }, `item-${p}-${j}`))
|
|
3493
3493
|
},
|
|
3494
|
-
`column-${
|
|
3494
|
+
`column-${p}`
|
|
3495
3495
|
))
|
|
3496
3496
|
}
|
|
3497
3497
|
);
|
|
@@ -3506,16 +3506,16 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3506
3506
|
action: c,
|
|
3507
3507
|
onVisibilityChange: a
|
|
3508
3508
|
}) => {
|
|
3509
|
-
const [d, u] = g(l ? o : !0), m = Z(null), h = (
|
|
3510
|
-
if (!
|
|
3511
|
-
const _ = Ye(
|
|
3509
|
+
const [d, u] = g(l ? o : !0), m = Z(null), h = (j) => {
|
|
3510
|
+
if (!j) return;
|
|
3511
|
+
const _ = Ye(j);
|
|
3512
3512
|
if (_)
|
|
3513
3513
|
return _.height + fr;
|
|
3514
|
-
}, x = (
|
|
3515
|
-
const _ = h(
|
|
3514
|
+
}, x = (j) => {
|
|
3515
|
+
const _ = h(j);
|
|
3516
3516
|
return _ ? Math.min(_ * jr, 1) : 0.4;
|
|
3517
|
-
},
|
|
3518
|
-
const _ =
|
|
3517
|
+
}, p = (j) => {
|
|
3518
|
+
const _ = j.target;
|
|
3519
3519
|
if (!(_.closest(".action-btn") || _.classList.contains("action-btn")) && l) {
|
|
3520
3520
|
const y = !d;
|
|
3521
3521
|
u(y), a == null || a(y);
|
|
@@ -3524,7 +3524,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3524
3524
|
O(() => {
|
|
3525
3525
|
!l && !d && (u(!0), a == null || a(!0));
|
|
3526
3526
|
}, [l, d, a]);
|
|
3527
|
-
const
|
|
3527
|
+
const f = oe(
|
|
3528
3528
|
() => x(m.current),
|
|
3529
3529
|
[m.current]
|
|
3530
3530
|
);
|
|
@@ -3539,12 +3539,12 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3539
3539
|
"div",
|
|
3540
3540
|
{
|
|
3541
3541
|
className: "content-box-label",
|
|
3542
|
-
onClick:
|
|
3542
|
+
onClick: p,
|
|
3543
3543
|
role: l ? "button" : void 0,
|
|
3544
3544
|
"aria-label": l ? `${t} - click to ${d ? "collapse" : "expand"}` : t,
|
|
3545
3545
|
tabIndex: l ? 0 : void 0,
|
|
3546
|
-
onKeyDown: (
|
|
3547
|
-
l && (
|
|
3546
|
+
onKeyDown: (j) => {
|
|
3547
|
+
l && (j.key === "Enter" || j.key === " ") && (j.preventDefault(), p(j));
|
|
3548
3548
|
},
|
|
3549
3549
|
children: [
|
|
3550
3550
|
/* @__PURE__ */ e.jsx(U, { type: "title", children: t }),
|
|
@@ -3556,8 +3556,8 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3556
3556
|
"aria-label": c.ariaLabel || "Action",
|
|
3557
3557
|
role: "button",
|
|
3558
3558
|
tabIndex: 0,
|
|
3559
|
-
onKeyDown: (
|
|
3560
|
-
(
|
|
3559
|
+
onKeyDown: (j) => {
|
|
3560
|
+
(j.key === "Enter" || j.key === " ") && (j.preventDefault(), c.onClick());
|
|
3561
3561
|
},
|
|
3562
3562
|
children: c.icon
|
|
3563
3563
|
}
|
|
@@ -3576,7 +3576,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3576
3576
|
{
|
|
3577
3577
|
className: "content-box-container-curtain",
|
|
3578
3578
|
style: {
|
|
3579
|
-
transition: `${
|
|
3579
|
+
transition: `${f}s ease-in-out`,
|
|
3580
3580
|
height: d ? "auto" : "0px"
|
|
3581
3581
|
},
|
|
3582
3582
|
"aria-hidden": !d,
|
|
@@ -3608,35 +3608,35 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3608
3608
|
a.current.style.display = "grid", a.current.style.gridRowGap = s, a.current.style.gridColumnGap = i;
|
|
3609
3609
|
const _ = l ?? c, b = o ?? c;
|
|
3610
3610
|
a.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${_}, ${b}))`, a.current.style.gridAutoRows = "1px";
|
|
3611
|
-
}, [s, i, l, o, c]),
|
|
3611
|
+
}, [s, i, l, o, c]), p = k(() => {
|
|
3612
3612
|
if (a.current) {
|
|
3613
3613
|
const _ = a.current.querySelectorAll(".adaptiv-grid-item");
|
|
3614
3614
|
u(Array.from(_));
|
|
3615
3615
|
}
|
|
3616
|
-
}, []),
|
|
3616
|
+
}, []), f = k(() => {
|
|
3617
3617
|
if (!a.current) return;
|
|
3618
3618
|
const _ = window.getComputedStyle(a.current), b = parseInt(_.getPropertyValue("grid-row-gap")) || 0, y = parseInt(_.getPropertyValue("grid-auto-rows")) || 1;
|
|
3619
3619
|
d.forEach((v) => {
|
|
3620
3620
|
const M = v.querySelector(".adaptiv-grid-item-container");
|
|
3621
3621
|
if (M) {
|
|
3622
|
-
const
|
|
3622
|
+
const F = M.getBoundingClientRect().height, B = Math.ceil((F + b) / (y + b));
|
|
3623
3623
|
v.style.gridRowEnd = `span ${B}`;
|
|
3624
3624
|
}
|
|
3625
3625
|
});
|
|
3626
|
-
}, [d]),
|
|
3626
|
+
}, [d]), j = k(() => {
|
|
3627
3627
|
h.current !== null && cancelAnimationFrame(h.current), h.current = requestAnimationFrame(() => {
|
|
3628
|
-
|
|
3628
|
+
f(), h.current = null;
|
|
3629
3629
|
});
|
|
3630
|
-
}, [
|
|
3630
|
+
}, [f]);
|
|
3631
3631
|
return O(() => {
|
|
3632
|
-
x(),
|
|
3633
|
-
}, [x,
|
|
3634
|
-
m.current && m.current.disconnect(), m.current = new ResizeObserver(() =>
|
|
3632
|
+
x(), p();
|
|
3633
|
+
}, [x, p, t]), O(() => {
|
|
3634
|
+
m.current && m.current.disconnect(), m.current = new ResizeObserver(() => j());
|
|
3635
3635
|
const _ = m.current;
|
|
3636
|
-
return d.forEach((b) => _.observe(b)),
|
|
3636
|
+
return d.forEach((b) => _.observe(b)), j(), () => {
|
|
3637
3637
|
_.disconnect(), h.current !== null && cancelAnimationFrame(h.current);
|
|
3638
3638
|
};
|
|
3639
|
-
}, [d,
|
|
3639
|
+
}, [d, j]), /* @__PURE__ */ e.jsx(
|
|
3640
3640
|
"div",
|
|
3641
3641
|
{
|
|
3642
3642
|
style: { minWidth: n },
|
|
@@ -3678,7 +3678,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3678
3678
|
activeTabIndex: l,
|
|
3679
3679
|
tabContainerClassName: o = ""
|
|
3680
3680
|
}) => {
|
|
3681
|
-
const [c, a] = g(0), d = l !== void 0 ? l : c, u = Z(null), m = Z(null), [h, x] = g(!1),
|
|
3681
|
+
const [c, a] = g(0), d = l !== void 0 ? l : c, u = Z(null), m = Z(null), [h, x] = g(!1), p = (_) => {
|
|
3682
3682
|
if (u.current) {
|
|
3683
3683
|
const b = t || u.current.offsetWidth / 2;
|
|
3684
3684
|
u.current.scrollBy({
|
|
@@ -3700,27 +3700,27 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3700
3700
|
_ && (m.current.style.width = `${_.offsetWidth}px`, m.current.style.transform = `translateX(${_.offsetLeft}px)`);
|
|
3701
3701
|
}
|
|
3702
3702
|
}, [d]);
|
|
3703
|
-
const
|
|
3704
|
-
_.key === "ArrowRight" ?
|
|
3705
|
-
},
|
|
3703
|
+
const f = (_) => {
|
|
3704
|
+
_.key === "ArrowRight" ? j((d + 1) % n.length) : _.key === "ArrowLeft" && j((d - 1 + n.length) % n.length);
|
|
3705
|
+
}, j = (_) => {
|
|
3706
3706
|
l === void 0 && a(_), i && i(_);
|
|
3707
3707
|
};
|
|
3708
3708
|
return /* @__PURE__ */ e.jsxs("div", { className: "alex-evo-ui-kit-tabs-container", children: [
|
|
3709
3709
|
/* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-scroll-buttons ${o}`, children: [
|
|
3710
|
-
h && /* @__PURE__ */ e.jsx("button", { onClick: () =>
|
|
3710
|
+
h && /* @__PURE__ */ e.jsx("button", { onClick: () => p("left"), className: "alex-evo-ui-kit-scroll-button", children: "◀" }),
|
|
3711
3711
|
/* @__PURE__ */ e.jsxs(
|
|
3712
3712
|
"div",
|
|
3713
3713
|
{
|
|
3714
3714
|
className: "alex-evo-ui-kit-tabs-header",
|
|
3715
3715
|
ref: u,
|
|
3716
|
-
onKeyDown:
|
|
3716
|
+
onKeyDown: f,
|
|
3717
3717
|
tabIndex: 0,
|
|
3718
3718
|
children: [
|
|
3719
3719
|
n.map((_, b) => /* @__PURE__ */ e.jsx(
|
|
3720
3720
|
"div",
|
|
3721
3721
|
{
|
|
3722
3722
|
className: `alex-evo-ui-kit-tab ${r} ${d === b ? s : ""}`,
|
|
3723
|
-
onClick: () =>
|
|
3723
|
+
onClick: () => j(b),
|
|
3724
3724
|
children: _.label
|
|
3725
3725
|
},
|
|
3726
3726
|
_.label
|
|
@@ -3729,7 +3729,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3729
3729
|
]
|
|
3730
3730
|
}
|
|
3731
3731
|
),
|
|
3732
|
-
h && /* @__PURE__ */ e.jsx("button", { onClick: () =>
|
|
3732
|
+
h && /* @__PURE__ */ e.jsx("button", { onClick: () => p("right"), className: "alex-evo-ui-kit-scroll-button", children: "▶" })
|
|
3733
3733
|
] }),
|
|
3734
3734
|
/* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-tab-content", children: n[d].content })
|
|
3735
3735
|
] });
|
|
@@ -3773,9 +3773,9 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3773
3773
|
shadow: m = 0,
|
|
3774
3774
|
...h
|
|
3775
3775
|
}, x) => {
|
|
3776
|
-
const
|
|
3777
|
-
!d && !
|
|
3778
|
-
},
|
|
3776
|
+
const p = (j) => {
|
|
3777
|
+
!d && !j.target.closest(".control-container") && (o == null || o(j));
|
|
3778
|
+
}, f = [
|
|
3779
3779
|
"list-item-container",
|
|
3780
3780
|
a,
|
|
3781
3781
|
`list-item-container_shadow-${m}`,
|
|
@@ -3783,15 +3783,15 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3783
3783
|
d ? "list-item-container_disabled" : "",
|
|
3784
3784
|
u ? "list-item-container_active" : ""
|
|
3785
3785
|
].filter(Boolean).join(" ");
|
|
3786
|
-
return /* @__PURE__ */ e.jsxs("li", { ref: x, className:
|
|
3786
|
+
return /* @__PURE__ */ e.jsxs("li", { ref: x, className: f, onClick: p, "aria-disabled": d, ...h, children: [
|
|
3787
3787
|
(n || l) && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__icon-container", children: n || l && /* @__PURE__ */ e.jsx(U, { type: "body", children: l }) }),
|
|
3788
3788
|
(s || r || i) && /* @__PURE__ */ e.jsxs("div", { className: "list-item-container__text-container", children: [
|
|
3789
3789
|
s && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__header", children: /* @__PURE__ */ e.jsx(U, { type: "body", children: s }) }),
|
|
3790
3790
|
r && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__text", children: /* @__PURE__ */ e.jsx(U, { type: "small", children: r }) }),
|
|
3791
3791
|
i && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__description", children: /* @__PURE__ */ e.jsx(U, { type: "small", color: "variant", children: i }) })
|
|
3792
3792
|
] }),
|
|
3793
|
-
t && /* @__PURE__ */ e.jsx("div", { onClick: (
|
|
3794
|
-
|
|
3793
|
+
t && /* @__PURE__ */ e.jsx("div", { onClick: (j) => {
|
|
3794
|
+
j.stopPropagation();
|
|
3795
3795
|
}, className: "list-item-container__control-container", children: t })
|
|
3796
3796
|
] });
|
|
3797
3797
|
});
|
|
@@ -4110,7 +4110,7 @@ function Rr(n, t) {
|
|
|
4110
4110
|
}
|
|
4111
4111
|
function Er(n, t, r, s) {
|
|
4112
4112
|
!n || !t || t.addEventListener("mousedown", function(i) {
|
|
4113
|
-
|
|
4113
|
+
Fr(i, r, t, s);
|
|
4114
4114
|
});
|
|
4115
4115
|
}
|
|
4116
4116
|
function mn(n, t, r, s) {
|
|
@@ -4121,7 +4121,7 @@ function mn(n, t, r, s) {
|
|
|
4121
4121
|
const c = 360 - 360 * (l / i.height);
|
|
4122
4122
|
s(c), qn(r, l);
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4124
|
+
function Fr(n, t, r, s) {
|
|
4125
4125
|
const i = (o) => mn(o, r, t, s);
|
|
4126
4126
|
mn(n, r, t, s), t.classList.add("dragging"), window.addEventListener("mousemove", i), window.addEventListener("mouseup", l);
|
|
4127
4127
|
function l() {
|
|
@@ -4131,7 +4131,7 @@ function Vr(n, t, r, s) {
|
|
|
4131
4131
|
function qn(n, t) {
|
|
4132
4132
|
n.style.top = t + "px";
|
|
4133
4133
|
}
|
|
4134
|
-
const
|
|
4134
|
+
const Vr = [
|
|
4135
4135
|
"#FFFFFF",
|
|
4136
4136
|
"#FFFB0D",
|
|
4137
4137
|
"#0532FF",
|
|
@@ -4161,14 +4161,14 @@ const Fr = [
|
|
|
4161
4161
|
width: c = 310,
|
|
4162
4162
|
height: a = "auto"
|
|
4163
4163
|
}) => {
|
|
4164
|
-
const d = Z(null), u = Z(null), m = Z(null), h = Z(null), [x,
|
|
4164
|
+
const d = Z(null), u = Z(null), m = Z(null), h = Z(null), [x, p] = g(Tr(t)), [f, j] = g(!1), [_, b] = g(
|
|
4165
4165
|
`#${ke(Le(x))}`
|
|
4166
4166
|
), y = oe(() => Le(x), [x]), v = oe(() => `#${ke(y)}`, [y]), M = oe(
|
|
4167
4167
|
() => _[0] !== "#" ? `#${_}` : _,
|
|
4168
4168
|
[_]
|
|
4169
4169
|
);
|
|
4170
4170
|
O(() => {
|
|
4171
|
-
!m.current || !d.current || !u.current || !h.current ||
|
|
4171
|
+
!m.current || !d.current || !u.current || !h.current || F(
|
|
4172
4172
|
m.current,
|
|
4173
4173
|
h.current,
|
|
4174
4174
|
d.current,
|
|
@@ -4187,7 +4187,7 @@ const Fr = [
|
|
|
4187
4187
|
N,
|
|
4188
4188
|
h.current,
|
|
4189
4189
|
(I, S) => {
|
|
4190
|
-
|
|
4190
|
+
p((L) => {
|
|
4191
4191
|
const T = { ...L, s: I / 100, v: S / 100 };
|
|
4192
4192
|
return b(ke(Le(T))), T;
|
|
4193
4193
|
});
|
|
@@ -4197,7 +4197,7 @@ const Fr = [
|
|
|
4197
4197
|
if (!d.current || !u.current) return;
|
|
4198
4198
|
const N = d.current.getContext("2d");
|
|
4199
4199
|
N && (Rr(N, d.current), Er(N, d.current, u.current, (I) => {
|
|
4200
|
-
|
|
4200
|
+
p((S) => {
|
|
4201
4201
|
const L = { ...S, h: I / 360 };
|
|
4202
4202
|
return b(ke(Le(L))), L;
|
|
4203
4203
|
});
|
|
@@ -4205,21 +4205,21 @@ const Fr = [
|
|
|
4205
4205
|
}, []), O(() => {
|
|
4206
4206
|
if (_.length === 4 || _.length === 7)
|
|
4207
4207
|
try {
|
|
4208
|
-
|
|
4208
|
+
p(De(Ne(_)));
|
|
4209
4209
|
} catch {
|
|
4210
4210
|
console.warn("Invalid HEX color");
|
|
4211
4211
|
}
|
|
4212
4212
|
}, [_]);
|
|
4213
|
-
const
|
|
4213
|
+
const F = (N, I, S, L, T) => {
|
|
4214
4214
|
try {
|
|
4215
|
-
const Y = N.getBoundingClientRect(), q = S.getBoundingClientRect(), G = Math.round(T.s * Y.width),
|
|
4216
|
-
Kn(I, G,
|
|
4215
|
+
const Y = N.getBoundingClientRect(), q = S.getBoundingClientRect(), G = Math.round(T.s * Y.width), C = Math.round((1 - T.v) * Y.height), $ = (360 - T.h * 360) / 360 * q.height;
|
|
4216
|
+
Kn(I, G, C), qn(L, $);
|
|
4217
4217
|
} catch (Y) {
|
|
4218
4218
|
console.error("Error updating cursor positions", Y);
|
|
4219
4219
|
}
|
|
4220
4220
|
}, B = (N) => {
|
|
4221
4221
|
try {
|
|
4222
|
-
|
|
4222
|
+
p(De(Ne(N))), b(N);
|
|
4223
4223
|
} catch {
|
|
4224
4224
|
console.warn("Invalid color format");
|
|
4225
4225
|
}
|
|
@@ -4230,7 +4230,7 @@ const Fr = [
|
|
|
4230
4230
|
}, [r, v]), z = k(
|
|
4231
4231
|
(N, I) => {
|
|
4232
4232
|
const S = Math.min(255, Math.max(0, I));
|
|
4233
|
-
|
|
4233
|
+
p(De({ ...y, [N]: S })), b(ke({ ...y, [N]: S }));
|
|
4234
4234
|
},
|
|
4235
4235
|
[y]
|
|
4236
4236
|
), D = k((N) => {
|
|
@@ -4247,7 +4247,7 @@ const Fr = [
|
|
|
4247
4247
|
style: { width: c, height: a },
|
|
4248
4248
|
children: [
|
|
4249
4249
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
4250
|
-
/* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children:
|
|
4250
|
+
/* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Vr.map((N, I) => /* @__PURE__ */ e.jsx(
|
|
4251
4251
|
"button",
|
|
4252
4252
|
{
|
|
4253
4253
|
onClick: () => B(N),
|
|
@@ -4306,7 +4306,7 @@ const Fr = [
|
|
|
4306
4306
|
] })
|
|
4307
4307
|
] }),
|
|
4308
4308
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
4309
|
-
/* @__PURE__ */ e.jsx("div", { className: `field-group value-fields rgb-fields ${
|
|
4309
|
+
/* @__PURE__ */ e.jsx("div", { className: `field-group value-fields rgb-fields ${f ? "" : "active"}`, children: ["r", "g", "b"].map((N) => /* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
4310
4310
|
/* @__PURE__ */ e.jsxs("label", { className: "field-label", children: [
|
|
4311
4311
|
N.toUpperCase(),
|
|
4312
4312
|
":"
|
|
@@ -4324,7 +4324,7 @@ const Fr = [
|
|
|
4324
4324
|
}
|
|
4325
4325
|
)
|
|
4326
4326
|
] }, N)) }),
|
|
4327
|
-
/* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields hex-field ${
|
|
4327
|
+
/* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields hex-field ${f ? "active" : ""}`, children: [
|
|
4328
4328
|
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "Hex:" }),
|
|
4329
4329
|
/* @__PURE__ */ e.jsx(
|
|
4330
4330
|
"input",
|
|
@@ -4341,8 +4341,8 @@ const Fr = [
|
|
|
4341
4341
|
"button",
|
|
4342
4342
|
{
|
|
4343
4343
|
className: "button-color-picker mode-toggle",
|
|
4344
|
-
onClick: () =>
|
|
4345
|
-
"aria-label": `Switch to ${
|
|
4344
|
+
onClick: () => j((N) => !N),
|
|
4345
|
+
"aria-label": `Switch to ${f ? "RGB" : "HEX"} mode`,
|
|
4346
4346
|
children: "Mode"
|
|
4347
4347
|
}
|
|
4348
4348
|
)
|
|
@@ -4417,14 +4417,14 @@ const Fr = [
|
|
|
4417
4417
|
O(() => {
|
|
4418
4418
|
s !== void 0 && x(s);
|
|
4419
4419
|
}, [s]);
|
|
4420
|
-
const
|
|
4420
|
+
const p = k(() => {
|
|
4421
4421
|
m(!0);
|
|
4422
|
-
}, []),
|
|
4422
|
+
}, []), f = k(
|
|
4423
4423
|
(b) => {
|
|
4424
4424
|
x(b), t == null || t(b), m(!1);
|
|
4425
4425
|
},
|
|
4426
4426
|
[t]
|
|
4427
|
-
),
|
|
4427
|
+
), j = k(() => {
|
|
4428
4428
|
m(!1);
|
|
4429
4429
|
}, []), _ = [
|
|
4430
4430
|
"input-field",
|
|
@@ -4441,18 +4441,18 @@ const Fr = [
|
|
|
4441
4441
|
{
|
|
4442
4442
|
className: "color-circle",
|
|
4443
4443
|
style: { backgroundColor: h },
|
|
4444
|
-
onClick:
|
|
4444
|
+
onClick: p,
|
|
4445
4445
|
"aria-label": "Current color"
|
|
4446
4446
|
}
|
|
4447
4447
|
),
|
|
4448
|
-
/* @__PURE__ */ e.jsx("div", { className: "color-indicator-field", onClick:
|
|
4448
|
+
/* @__PURE__ */ e.jsx("div", { className: "color-indicator-field", onClick: p, children: /* @__PURE__ */ e.jsx(U, { type: "body", children: h }) })
|
|
4449
4449
|
] }),
|
|
4450
|
-
d && /* @__PURE__ */ e.jsx("div", { className: "color-field-label", onClick:
|
|
4450
|
+
d && /* @__PURE__ */ e.jsx("div", { className: "color-field-label", onClick: p, children: /* @__PURE__ */ e.jsx(U, { type: "body", className: "data color-field-placeholder", children: d }) }),
|
|
4451
4451
|
/* @__PURE__ */ e.jsx(
|
|
4452
4452
|
"div",
|
|
4453
4453
|
{
|
|
4454
4454
|
className: "color-icon-container icon-container",
|
|
4455
|
-
onClick:
|
|
4455
|
+
onClick: p,
|
|
4456
4456
|
"aria-label": "Open color picker",
|
|
4457
4457
|
children: /* @__PURE__ */ e.jsx(wn, {})
|
|
4458
4458
|
}
|
|
@@ -4464,9 +4464,9 @@ const Fr = [
|
|
|
4464
4464
|
defaultColor: a,
|
|
4465
4465
|
userColors: o,
|
|
4466
4466
|
onAddColor: c,
|
|
4467
|
-
onChange:
|
|
4467
|
+
onChange: f,
|
|
4468
4468
|
beginColor: h,
|
|
4469
|
-
onHide:
|
|
4469
|
+
onHide: j
|
|
4470
4470
|
}
|
|
4471
4471
|
) })
|
|
4472
4472
|
] });
|
|
@@ -4491,10 +4491,10 @@ const Fr = [
|
|
|
4491
4491
|
}), [m, h] = g(
|
|
4492
4492
|
"DAYS"
|
|
4493
4493
|
/* DAYS */
|
|
4494
|
-
), x = (v, M) => new Date(v, M + 1, 0).getDate(),
|
|
4495
|
-
let
|
|
4496
|
-
return
|
|
4497
|
-
},
|
|
4494
|
+
), x = (v, M) => new Date(v, M + 1, 0).getDate(), p = (v, M, F) => new Date(v, M, F).getDay(), f = (v, M) => {
|
|
4495
|
+
let F = Array(x(v, M)).fill(0).map((z, D) => ({ type: "NOW_MONTH", day: D + 1 })), B = p(v, M, x(v, M)), A = Array(7 - B).fill(0).map((z, D) => ({ type: "NEXT_MONTH", day: D + 1 }));
|
|
4496
|
+
return F = Array(p(v, M, 0)).fill(0).map((z, D) => ({ type: "PREV_MONTH", day: x(M ? v : v - 1, M ? M - 1 : 11) - D })).reverse().concat(F).concat(A), F;
|
|
4497
|
+
}, j = (v) => {
|
|
4498
4498
|
h(
|
|
4499
4499
|
"DAYS"
|
|
4500
4500
|
/* DAYS */
|
|
@@ -4532,7 +4532,7 @@ const Fr = [
|
|
|
4532
4532
|
m === "MONTHS" ? /* @__PURE__ */ e.jsx("div", { className: "calendar-body-months-container", children: xe.map((v, M) => /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-months-item", onClick: () => _(v), children: [
|
|
4533
4533
|
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: l === v ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
|
|
4534
4534
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: v })
|
|
4535
|
-
] }, 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: () =>
|
|
4535
|
+
] }, 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: () => j(v), children: [
|
|
4536
4536
|
/* @__PURE__ */ e.jsx("div", { className: "status-container", children: c === v ? /* @__PURE__ */ e.jsx(pe, {}) : null }),
|
|
4537
4537
|
/* @__PURE__ */ e.jsx("div", { className: "content", children: v })
|
|
4538
4538
|
] }, M)) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -4545,7 +4545,7 @@ const Fr = [
|
|
|
4545
4545
|
/* @__PURE__ */ e.jsx("span", { children: "S" }),
|
|
4546
4546
|
/* @__PURE__ */ e.jsx("span", { children: "S" })
|
|
4547
4547
|
] }),
|
|
4548
|
-
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children:
|
|
4548
|
+
/* @__PURE__ */ e.jsx("div", { className: "calendar-body-days-container", children: f(c, xe.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: () => b(v), children: v.day }, M)) })
|
|
4549
4549
|
] }),
|
|
4550
4550
|
/* @__PURE__ */ e.jsxs("div", { className: "calendar-body-action-container", children: [
|
|
4551
4551
|
/* @__PURE__ */ e.jsx(ce, { className: "little m-0", onClick: t, children: "Cancel" }),
|
|
@@ -4567,9 +4567,9 @@ const Fr = [
|
|
|
4567
4567
|
placeholder: m,
|
|
4568
4568
|
onBlur: h,
|
|
4569
4569
|
onFocus: x,
|
|
4570
|
-
...
|
|
4570
|
+
...p
|
|
4571
4571
|
}) => {
|
|
4572
|
-
const [
|
|
4572
|
+
const [f, j] = g(s ?? ""), [_, b] = g(!1), [y, v] = g(!1), [M, F] = g(!!s), B = Be(), A = l || c, w = () => {
|
|
4573
4573
|
b(!0);
|
|
4574
4574
|
}, z = (L) => {
|
|
4575
4575
|
let T = String(L + 1);
|
|
@@ -4580,13 +4580,13 @@ const Fr = [
|
|
|
4580
4580
|
}, E = (L) => {
|
|
4581
4581
|
x == null || x(L), v(!0);
|
|
4582
4582
|
}, N = (L) => {
|
|
4583
|
-
h == null || h(L), v(!1),
|
|
4583
|
+
h == null || h(L), v(!1), F(!!L.target.value);
|
|
4584
4584
|
};
|
|
4585
4585
|
O(() => {
|
|
4586
|
-
|
|
4586
|
+
F(!!s);
|
|
4587
4587
|
}, [s]);
|
|
4588
4588
|
const I = k((L, T, Y) => {
|
|
4589
|
-
|
|
4589
|
+
j(`${L}-${z(T)}-${D(Y)}`), t && t(`${L}-${z(T)}-${D(Y)}`);
|
|
4590
4590
|
}, [t]), S = {
|
|
4591
4591
|
small: "input-field__date-field_small",
|
|
4592
4592
|
medium: "input-field__date-field_medium",
|
|
@@ -4612,12 +4612,12 @@ const Fr = [
|
|
|
4612
4612
|
type: "date",
|
|
4613
4613
|
role: "textbox",
|
|
4614
4614
|
name: r,
|
|
4615
|
-
value:
|
|
4615
|
+
value: f,
|
|
4616
4616
|
onBlur: N,
|
|
4617
4617
|
onFocus: E,
|
|
4618
4618
|
readOnly: !0,
|
|
4619
4619
|
id: B,
|
|
4620
|
-
...
|
|
4620
|
+
...p
|
|
4621
4621
|
}
|
|
4622
4622
|
),
|
|
4623
4623
|
m && /* @__PURE__ */ e.jsx(
|
|
@@ -4691,24 +4691,24 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4691
4691
|
id: m,
|
|
4692
4692
|
error: h,
|
|
4693
4693
|
errorText: x,
|
|
4694
|
-
helperText:
|
|
4694
|
+
helperText: p
|
|
4695
4695
|
}) => {
|
|
4696
|
-
const [
|
|
4696
|
+
const [f, j] = g([]), [_, b] = g(""), [y, v] = g(null);
|
|
4697
4697
|
O(() => {
|
|
4698
|
-
|
|
4698
|
+
j(Wr(t, o));
|
|
4699
4699
|
}, [t, o]);
|
|
4700
4700
|
const M = (w) => {
|
|
4701
4701
|
b(w);
|
|
4702
|
-
},
|
|
4702
|
+
}, F = (w) => {
|
|
4703
4703
|
w.key === "Enter" && (w.preventDefault(), B());
|
|
4704
4704
|
}, B = k(() => {
|
|
4705
|
-
if (_.trim() === "" ||
|
|
4705
|
+
if (_.trim() === "" || f.includes(_.trim()))
|
|
4706
4706
|
return;
|
|
4707
|
-
const w = [...
|
|
4708
|
-
|
|
4709
|
-
}, [
|
|
4710
|
-
const z =
|
|
4711
|
-
|
|
4707
|
+
const w = [...f, _.trim()];
|
|
4708
|
+
j(w), r == null || r(jn(w, o)), b(""), v(w.length - 1);
|
|
4709
|
+
}, [f, _, r, o]), A = (w) => {
|
|
4710
|
+
const z = f.filter((D, E) => E !== w);
|
|
4711
|
+
j(z), r == null || r(jn(z, o)), v(w > 0 ? w - 1 : null);
|
|
4712
4712
|
};
|
|
4713
4713
|
return /* @__PURE__ */ e.jsxs(
|
|
4714
4714
|
"div",
|
|
@@ -4718,16 +4718,16 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4718
4718
|
id: m,
|
|
4719
4719
|
children: [
|
|
4720
4720
|
/* @__PURE__ */ e.jsx("div", { className: "add-value", children: /* @__PURE__ */ e.jsx(
|
|
4721
|
-
|
|
4721
|
+
Ve,
|
|
4722
4722
|
{
|
|
4723
4723
|
onChange: M,
|
|
4724
|
-
onKeyDown:
|
|
4724
|
+
onKeyDown: F,
|
|
4725
4725
|
value: _,
|
|
4726
4726
|
border: s,
|
|
4727
4727
|
placeholder: i,
|
|
4728
4728
|
error: h,
|
|
4729
4729
|
errorText: x,
|
|
4730
|
-
helperText:
|
|
4730
|
+
helperText: p,
|
|
4731
4731
|
disabled: c,
|
|
4732
4732
|
"aria-label": d,
|
|
4733
4733
|
"aria-describedby": m ? `${m}-help` : void 0
|
|
@@ -4746,7 +4746,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4746
4746
|
role: "listbox",
|
|
4747
4747
|
"aria-label": u,
|
|
4748
4748
|
"aria-multiselectable": "false",
|
|
4749
|
-
children:
|
|
4749
|
+
children: f.map((w, z) => /* @__PURE__ */ e.jsx(
|
|
4750
4750
|
Wn,
|
|
4751
4751
|
{
|
|
4752
4752
|
text: w,
|
|
@@ -4794,47 +4794,47 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4794
4794
|
className: m,
|
|
4795
4795
|
validEmptyValue: h,
|
|
4796
4796
|
onFocus: x,
|
|
4797
|
-
onBlur:
|
|
4798
|
-
error:
|
|
4799
|
-
max:
|
|
4797
|
+
onBlur: p,
|
|
4798
|
+
error: f,
|
|
4799
|
+
max: j,
|
|
4800
4800
|
min: _,
|
|
4801
4801
|
size: b = "medium",
|
|
4802
4802
|
disabled: y,
|
|
4803
4803
|
step: v = 1,
|
|
4804
4804
|
helperText: M,
|
|
4805
|
-
errorText:
|
|
4805
|
+
errorText: F,
|
|
4806
4806
|
ariaLabel: B,
|
|
4807
4807
|
ariaLabelledby: A,
|
|
4808
4808
|
ariaDescribedby: w
|
|
4809
4809
|
}, z) => {
|
|
4810
|
-
const D = Z(null), E = Z(null), N = Z(null), I = Z(null), [S, L] = g(!1), [T, Y] = g(d ?? 0), q = k((P, W) => L(!!(
|
|
4810
|
+
const D = Z(null), E = Z(null), N = Z(null), I = Z(null), [S, L] = g(!1), [T, Y] = g(d ?? 0), q = k((P, W) => L(!!(f || P && (!W || W === ""))), [f]), G = () => {
|
|
4811
4811
|
if (!I.current)
|
|
4812
4812
|
return;
|
|
4813
4813
|
const P = I.current.querySelector("input");
|
|
4814
4814
|
P && P.focus();
|
|
4815
|
-
},
|
|
4815
|
+
}, C = k((P, W) => {
|
|
4816
4816
|
c && (N.current && (clearTimeout(N.current), N.current = null), N.current = setTimeout(() => {
|
|
4817
4817
|
N.current && (clearTimeout(N.current), N.current = null), c(P, W);
|
|
4818
4818
|
}, 100));
|
|
4819
4819
|
}, [c]), $ = k(() => {
|
|
4820
4820
|
Y((P) => {
|
|
4821
4821
|
let W = P ? P + v : v;
|
|
4822
|
-
return typeof
|
|
4822
|
+
return typeof j == "number" && W > j && (W = j), C(W, a), W;
|
|
4823
4823
|
});
|
|
4824
|
-
}, [
|
|
4824
|
+
}, [C, a, j, v]), H = k(() => {
|
|
4825
4825
|
Y((P) => {
|
|
4826
4826
|
let W = P ? P - v : -v;
|
|
4827
|
-
return typeof _ == "number" && W < _ && (W = _),
|
|
4827
|
+
return typeof _ == "number" && W < _ && (W = _), C(W, a), W;
|
|
4828
4828
|
});
|
|
4829
|
-
}, [
|
|
4829
|
+
}, [C, a, _, v]), K = k((P) => {
|
|
4830
4830
|
if (P.target.value === "") {
|
|
4831
4831
|
Y("");
|
|
4832
4832
|
return;
|
|
4833
4833
|
}
|
|
4834
4834
|
P.target.value.length > 1 && P.target.value[0] === "0" && ![",", "."].includes(P.target.value[1]) && (P.target.value = P.target.value.slice(1));
|
|
4835
4835
|
let W = Number(P.target.value);
|
|
4836
|
-
typeof _ == "number" && W < _ && (W = _), typeof
|
|
4837
|
-
}, [a,
|
|
4836
|
+
typeof _ == "number" && W < _ && (W = _), typeof j == "number" && W > j && (W = j), Y(Number(P.target.value)), C(W, a);
|
|
4837
|
+
}, [a, C, T, j, _]), J = k(() => {
|
|
4838
4838
|
D.current && clearTimeout(D.current), E.current && clearInterval(E.current), document.removeEventListener("mouseup", J);
|
|
4839
4839
|
}, []), te = k((P) => {
|
|
4840
4840
|
P === "p" ? $() : P === "m" && H(), D.current && clearTimeout(D.current), E.current && clearInterval(E.current), document.addEventListener("mouseup", J), D.current = setTimeout(() => {
|
|
@@ -4843,7 +4843,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4843
4843
|
}, 100);
|
|
4844
4844
|
}, 500);
|
|
4845
4845
|
}, [$, H]), Q = (P) => {
|
|
4846
|
-
T === "" && (Y(0), c == null || c(0)),
|
|
4846
|
+
T === "" && (Y(0), c == null || c(0)), p == null || p(P);
|
|
4847
4847
|
};
|
|
4848
4848
|
O(() => {
|
|
4849
4849
|
q(h, d);
|
|
@@ -4879,7 +4879,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4879
4879
|
"input",
|
|
4880
4880
|
{
|
|
4881
4881
|
ref: n,
|
|
4882
|
-
max:
|
|
4882
|
+
max: j,
|
|
4883
4883
|
step: v,
|
|
4884
4884
|
min: _,
|
|
4885
4885
|
readOnly: s,
|
|
@@ -4922,7 +4922,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4922
4922
|
"aria-label": "Decrease value",
|
|
4923
4923
|
tabIndex: 0,
|
|
4924
4924
|
onKeyDown: (P) => P.key === "Enter" && H(),
|
|
4925
|
-
children: /* @__PURE__ */ e.jsx(
|
|
4925
|
+
children: /* @__PURE__ */ e.jsx(Fn, {})
|
|
4926
4926
|
}
|
|
4927
4927
|
),
|
|
4928
4928
|
/* @__PURE__ */ e.jsx(
|
|
@@ -4941,14 +4941,14 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4941
4941
|
]
|
|
4942
4942
|
}
|
|
4943
4943
|
),
|
|
4944
|
-
S &&
|
|
4944
|
+
S && F && /* @__PURE__ */ e.jsx(
|
|
4945
4945
|
U,
|
|
4946
4946
|
{
|
|
4947
4947
|
type: "small",
|
|
4948
4948
|
className: "input-field-container__error-text",
|
|
4949
4949
|
id: w,
|
|
4950
4950
|
role: "alert",
|
|
4951
|
-
children:
|
|
4951
|
+
children: F
|
|
4952
4952
|
}
|
|
4953
4953
|
),
|
|
4954
4954
|
M && !S && /* @__PURE__ */ e.jsx(
|
|
@@ -4979,27 +4979,27 @@ const Qn = ne.forwardRef(
|
|
|
4979
4979
|
placeholder: m,
|
|
4980
4980
|
className: h,
|
|
4981
4981
|
validEmptyValue: x,
|
|
4982
|
-
onFocus:
|
|
4983
|
-
onBlur:
|
|
4984
|
-
error:
|
|
4982
|
+
onFocus: p,
|
|
4983
|
+
onBlur: f,
|
|
4984
|
+
error: j,
|
|
4985
4985
|
autoFocus: _,
|
|
4986
4986
|
disabled: b,
|
|
4987
4987
|
helperText: y,
|
|
4988
4988
|
errorText: v,
|
|
4989
4989
|
rows: M = 3,
|
|
4990
|
-
onKeyDown:
|
|
4990
|
+
onKeyDown: F
|
|
4991
4991
|
}, B) => {
|
|
4992
4992
|
const A = Z(null), [w, z] = g(!1), [D, E] = g(!1), [N, I] = g(!!u), S = Be(), L = () => {
|
|
4993
|
-
var
|
|
4994
|
-
const G = (
|
|
4993
|
+
var C;
|
|
4994
|
+
const G = (C = A.current) == null ? void 0 : C.querySelector("textarea");
|
|
4995
4995
|
G == null || G.focus();
|
|
4996
4996
|
}, T = (G) => {
|
|
4997
|
-
|
|
4997
|
+
p == null || p(G), E(!0);
|
|
4998
4998
|
}, Y = (G) => {
|
|
4999
|
-
|
|
4999
|
+
f == null || f(G), E(!1), I(!!G.target.value);
|
|
5000
5000
|
}, q = k(
|
|
5001
|
-
(G,
|
|
5002
|
-
[
|
|
5001
|
+
(G, C) => z(!!(j || G && (!C || C === ""))),
|
|
5002
|
+
[j]
|
|
5003
5003
|
);
|
|
5004
5004
|
return O(() => {
|
|
5005
5005
|
q(x, u), I(!!u);
|
|
@@ -5038,7 +5038,7 @@ const Qn = ne.forwardRef(
|
|
|
5038
5038
|
onChange: (G) => a == null ? void 0 : a(G.target.value, G.target.name, G),
|
|
5039
5039
|
onFocus: T,
|
|
5040
5040
|
onBlur: Y,
|
|
5041
|
-
onKeyDown:
|
|
5041
|
+
onKeyDown: F,
|
|
5042
5042
|
autoFocus: _,
|
|
5043
5043
|
"aria-invalid": w,
|
|
5044
5044
|
"aria-describedby": w ? `${d}-error` : void 0
|
|
@@ -5200,25 +5200,25 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5200
5200
|
ariaLabel: m,
|
|
5201
5201
|
size: h = "medium",
|
|
5202
5202
|
ariaLabelledby: x,
|
|
5203
|
-
placeholder:
|
|
5204
|
-
onBlur:
|
|
5205
|
-
onFocus:
|
|
5203
|
+
placeholder: p,
|
|
5204
|
+
onBlur: f,
|
|
5205
|
+
onFocus: j,
|
|
5206
5206
|
style: _,
|
|
5207
5207
|
...b
|
|
5208
5208
|
}) => {
|
|
5209
|
-
const [y, v] = g(s), [M,
|
|
5209
|
+
const [y, v] = g(s), [M, F] = g(!1), [B, A] = g(!1), [w, z] = g(!!s), D = Be(), E = o || !!d;
|
|
5210
5210
|
O(() => {
|
|
5211
5211
|
v(s);
|
|
5212
5212
|
}, [s]);
|
|
5213
|
-
const N = k(() => E || l && !y ? "error" : "", [y, E, l]), I = (
|
|
5214
|
-
const H = String(
|
|
5213
|
+
const N = k(() => E || l && !y ? "error" : "", [y, E, l]), I = (C, $) => {
|
|
5214
|
+
const H = String(C).padStart(2, "0"), K = String($).padStart(2, "0"), J = `${H}:${K}`;
|
|
5215
5215
|
v(J), t == null || t(J);
|
|
5216
5216
|
}, S = () => {
|
|
5217
|
-
a ||
|
|
5218
|
-
}, L = (
|
|
5219
|
-
|
|
5220
|
-
}, T = (
|
|
5221
|
-
|
|
5217
|
+
a || F(!0);
|
|
5218
|
+
}, L = (C) => {
|
|
5219
|
+
j == null || j(C), A(!0);
|
|
5220
|
+
}, T = (C) => {
|
|
5221
|
+
f == null || f(C), A(!1), z(!!C.target.value);
|
|
5222
5222
|
};
|
|
5223
5223
|
O(() => {
|
|
5224
5224
|
z(!!s);
|
|
@@ -5265,7 +5265,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5265
5265
|
"aria-label": "Открыть пикер времени",
|
|
5266
5266
|
role: "button",
|
|
5267
5267
|
tabIndex: a ? -1 : 0,
|
|
5268
|
-
onKeyDown: (
|
|
5268
|
+
onKeyDown: (C) => C.key === "Enter" && S(),
|
|
5269
5269
|
children: /* @__PURE__ */ e.jsx(en, {})
|
|
5270
5270
|
}
|
|
5271
5271
|
),
|
|
@@ -5287,14 +5287,14 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5287
5287
|
"aria-describedby": E && d ? `${r}-error` : u ? `${r}-helper` : void 0
|
|
5288
5288
|
}
|
|
5289
5289
|
),
|
|
5290
|
-
|
|
5290
|
+
p && /* @__PURE__ */ e.jsx(
|
|
5291
5291
|
"label",
|
|
5292
5292
|
{
|
|
5293
5293
|
htmlFor: D,
|
|
5294
5294
|
className: `input-field__input-container__label
|
|
5295
5295
|
${w ? "input-field__input-container__label_filled" : ""}
|
|
5296
5296
|
`,
|
|
5297
|
-
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children:
|
|
5297
|
+
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: p })
|
|
5298
5298
|
}
|
|
5299
5299
|
),
|
|
5300
5300
|
/* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__text-field-line" })
|
|
@@ -5306,7 +5306,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5306
5306
|
M && /* @__PURE__ */ e.jsx(Ce, { container: c, children: /* @__PURE__ */ e.jsx(
|
|
5307
5307
|
Kr,
|
|
5308
5308
|
{
|
|
5309
|
-
onHide: () =>
|
|
5309
|
+
onHide: () => F(!1),
|
|
5310
5310
|
onChange: I,
|
|
5311
5311
|
hours: Y,
|
|
5312
5312
|
minutes: q
|
|
@@ -5324,11 +5324,11 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5324
5324
|
}, [t.value]);
|
|
5325
5325
|
const a = (h) => {
|
|
5326
5326
|
s(Number(h.target.value)), t.onChange && t.onChange(h);
|
|
5327
|
-
}, d = (h, x,
|
|
5327
|
+
}, d = (h, x, p) => {
|
|
5328
5328
|
if (o.current && c.current) {
|
|
5329
|
-
let
|
|
5330
|
-
if (
|
|
5331
|
-
return Qr(h, x,
|
|
5329
|
+
let f = Ye(c.current);
|
|
5330
|
+
if (f)
|
|
5331
|
+
return Qr(h, x, p, 0, p - x) * (f.width - 20) / (p - x);
|
|
5332
5332
|
}
|
|
5333
5333
|
return 0;
|
|
5334
5334
|
}, u = k((h) => {
|
|
@@ -5352,9 +5352,9 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5352
5352
|
t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
|
|
5353
5353
|
o ? /* @__PURE__ */ e.jsx(ye, { styleType: o.styleType ?? "filled", style: o.style, className: o.className, onClick: o.onClick, children: o.text }) : null
|
|
5354
5354
|
] }), es = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: o }) => {
|
|
5355
|
-
const [c, a] = g(""), [d, u] = g(""), [m, h] = g(!1), [x,
|
|
5355
|
+
const [c, a] = g(""), [d, u] = g(""), [m, h] = g(!1), [x, p] = g(!0), f = k((y, v) => {
|
|
5356
5356
|
s({ ...r, [v]: y });
|
|
5357
|
-
}, [s, r]),
|
|
5357
|
+
}, [s, r]), j = k(() => {
|
|
5358
5358
|
u(""), a(""), h(!1);
|
|
5359
5359
|
}, []), _ = k(() => {
|
|
5360
5360
|
let y = d;
|
|
@@ -5362,14 +5362,14 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5362
5362
|
o || (y = JSON.parse(y));
|
|
5363
5363
|
} catch {
|
|
5364
5364
|
}
|
|
5365
|
-
|
|
5366
|
-
}, [r, s, c, d,
|
|
5365
|
+
j(), s({ ...r, [c]: y });
|
|
5366
|
+
}, [r, s, c, d, j]), b = k((y) => {
|
|
5367
5367
|
let v = { ...r };
|
|
5368
5368
|
delete v[y], s(v);
|
|
5369
5369
|
}, [r, s]);
|
|
5370
5370
|
return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
5371
5371
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
|
|
5372
|
-
/* @__PURE__ */ e.jsxs("span", { onClick: () =>
|
|
5372
|
+
/* @__PURE__ */ e.jsxs("span", { onClick: () => p((y) => !y), className: "json-element json-object-name json-object-header", children: [
|
|
5373
5373
|
t,
|
|
5374
5374
|
":",
|
|
5375
5375
|
"{",
|
|
@@ -5378,14 +5378,14 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5378
5378
|
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => h(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
|
|
5379
5379
|
] }),
|
|
5380
5380
|
x ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r ? Object.keys(r).map(
|
|
5381
|
-
(y, v) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => b(y), onChange: (M) =>
|
|
5381
|
+
(y, v) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => b(y), onChange: (M) => f(M, y), name: y, data: r[y] }) }, v)
|
|
5382
5382
|
) : null }) : null,
|
|
5383
5383
|
m && !n ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
|
|
5384
5384
|
/* @__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 }) }),
|
|
5385
5385
|
":",
|
|
5386
5386
|
/* @__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 }) }),
|
|
5387
5387
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: _, children: "save" }),
|
|
5388
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick:
|
|
5388
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: j, children: "cancel" })
|
|
5389
5389
|
] }) : null,
|
|
5390
5390
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
5391
5391
|
"}",
|
|
@@ -5396,16 +5396,16 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5396
5396
|
const [c, a] = g(""), [d, u] = g(!1), [m, h] = g(!0), x = k((_, b) => {
|
|
5397
5397
|
const y = r.slice();
|
|
5398
5398
|
y[b] = _, s(y);
|
|
5399
|
-
}, [s, r]),
|
|
5399
|
+
}, [s, r]), p = k(() => {
|
|
5400
5400
|
a(""), u(!1);
|
|
5401
|
-
}, []),
|
|
5401
|
+
}, []), f = k(() => {
|
|
5402
5402
|
let _ = c;
|
|
5403
5403
|
try {
|
|
5404
5404
|
o || (_ = JSON.parse(_));
|
|
5405
5405
|
} catch {
|
|
5406
5406
|
}
|
|
5407
|
-
|
|
5408
|
-
}, [r, s, c,
|
|
5407
|
+
p(), s([...r, _]);
|
|
5408
|
+
}, [r, s, c, p]), j = k((_) => {
|
|
5409
5409
|
s(r.filter((b, y) => y !== _));
|
|
5410
5410
|
}, [r, s]);
|
|
5411
5411
|
return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
@@ -5418,11 +5418,11 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5418
5418
|
] }),
|
|
5419
5419
|
n ? null : /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: () => u(!0), children: /* @__PURE__ */ e.jsx(rn, {}) })
|
|
5420
5420
|
] }),
|
|
5421
|
-
m ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((_, b) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () =>
|
|
5421
|
+
m ? /* @__PURE__ */ e.jsx("div", { className: "json-object-content", children: r && r.map((_, b) => /* @__PURE__ */ e.jsx("div", { className: "json-line", children: /* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: () => j(b), onChange: (y) => x(y, b), name: String(b), data: _ }) }, b)) }) : null,
|
|
5422
5422
|
d ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
|
|
5423
5423
|
/* @__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 }) }),
|
|
5424
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick:
|
|
5425
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick:
|
|
5424
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: f, children: "save" }),
|
|
5425
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: p, children: "cancel" })
|
|
5426
5426
|
] }) : null,
|
|
5427
5427
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
5428
5428
|
"]",
|
|
@@ -5444,19 +5444,19 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5444
5444
|
};
|
|
5445
5445
|
var et = /* @__PURE__ */ ((n) => (n.NONE = "NONE", n.ARRAY = "ARRAY", n.OBJECT = "OBJECT", n))(et || {});
|
|
5446
5446
|
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 }) => {
|
|
5447
|
-
const [c, a] = g(r || void 0), [d, u] = g(""), m = k((
|
|
5448
|
-
n || (a(
|
|
5447
|
+
const [c, a] = g(r || void 0), [d, u] = g(""), m = k((p) => {
|
|
5448
|
+
n || (a(p), s && s(p));
|
|
5449
5449
|
}, [s]), h = k(() => {
|
|
5450
5450
|
n || (a(void 0), i && i());
|
|
5451
5451
|
}, [i]), x = k(() => {
|
|
5452
5452
|
if (n)
|
|
5453
5453
|
return;
|
|
5454
|
-
let
|
|
5454
|
+
let p = d;
|
|
5455
5455
|
try {
|
|
5456
|
-
|
|
5456
|
+
p = JSON.parse(p);
|
|
5457
5457
|
} catch {
|
|
5458
5458
|
}
|
|
5459
|
-
a(
|
|
5459
|
+
a(p), s && s(p);
|
|
5460
5460
|
}, [s, d]);
|
|
5461
5461
|
return O(() => {
|
|
5462
5462
|
a(r);
|
|
@@ -5465,7 +5465,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5465
5465
|
/* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: h, onChange: m, data: c, baseType: l, name: t, onlyStringValue: o })
|
|
5466
5466
|
] }) : /* @__PURE__ */ e.jsxs("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: [
|
|
5467
5467
|
/* @__PURE__ */ e.jsx(cn, { transparent: !0, text: JSON.stringify(r) }),
|
|
5468
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (
|
|
5468
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (p) => u(p.target.value), className: "alex-evo-sh-ui-kit-json json-base-data-input", type: "text", value: d }) }),
|
|
5469
5469
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: x, children: "save" })
|
|
5470
5470
|
] });
|
|
5471
5471
|
}, Js = ({ btn: n, btnComponent: t, onSearch: r, placeholder: s, autoChenge: i, border: l = !1 }) => {
|
|
@@ -5475,14 +5475,14 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5475
5475
|
o.current && (o.current.focus(), o.current.value = ""), a(""), u(!0), i && r("");
|
|
5476
5476
|
}, x = () => {
|
|
5477
5477
|
h(), o.current && (o.current.blur(), u(!1));
|
|
5478
|
-
},
|
|
5479
|
-
a(
|
|
5480
|
-
},
|
|
5481
|
-
|
|
5478
|
+
}, p = (j) => {
|
|
5479
|
+
a(j.target.value), i && r(j.target.value);
|
|
5480
|
+
}, f = (j) => {
|
|
5481
|
+
j.code === "Enter" && r(c);
|
|
5482
5482
|
};
|
|
5483
5483
|
return /* @__PURE__ */ e.jsx("div", { className: `search-container ${l ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
|
|
5484
5484
|
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,
|
|
5485
|
-
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: o, onChange:
|
|
5485
|
+
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: o, onChange: p, onKeyDown: f, value: c, onFocus: () => u(!0) }),
|
|
5486
5486
|
d ? /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(ue, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: m, children: /* @__PURE__ */ e.jsx(tn, {}) })
|
|
5487
5487
|
] }) });
|
|
5488
5488
|
}, rs = ({
|
|
@@ -5535,12 +5535,12 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5535
5535
|
onChangeFilter: l,
|
|
5536
5536
|
border: o = !1
|
|
5537
5537
|
}) => {
|
|
5538
|
-
const c = Z(null), [a, d] = g(""), [u, m] = g(!1), [h, x] = g(null),
|
|
5538
|
+
const c = Z(null), [a, d] = g(""), [u, m] = g(!1), [h, x] = g(null), p = () => {
|
|
5539
5539
|
c.current && (c.current.focus(), m(!0));
|
|
5540
|
-
}, j = () => {
|
|
5541
|
-
c.current && (c.current.focus(), c.current.value = ""), d(""), m(!0), r && n("");
|
|
5542
5540
|
}, f = () => {
|
|
5543
|
-
|
|
5541
|
+
c.current && (c.current.focus(), c.current.value = ""), d(""), m(!0), r && n("");
|
|
5542
|
+
}, j = () => {
|
|
5543
|
+
f(), c.current && (c.current.blur(), m(!1));
|
|
5544
5544
|
}, _ = (v) => {
|
|
5545
5545
|
d(v.target.value), r && n(v.target.value);
|
|
5546
5546
|
}, b = (v) => {
|
|
@@ -5555,9 +5555,9 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5555
5555
|
};
|
|
5556
5556
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
5557
5557
|
/* @__PURE__ */ e.jsx("div", { className: `search-container ${o ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
|
|
5558
|
-
u ? /* @__PURE__ */ e.jsx("span", { onClick:
|
|
5558
|
+
u ? /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(nn, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: y, children: /* @__PURE__ */ e.jsx(On, {}) }),
|
|
5559
5559
|
/* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: c, onChange: _, onKeyDown: b, value: a, onFocus: () => m(!0) }),
|
|
5560
|
-
u ? /* @__PURE__ */ e.jsx("span", { onClick:
|
|
5560
|
+
u ? /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(ue, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: p, children: /* @__PURE__ */ e.jsx(tn, {}) })
|
|
5561
5561
|
] }) }),
|
|
5562
5562
|
/* @__PURE__ */ e.jsx(Ce, { container: document.body, children: /* @__PURE__ */ e.jsx(rs, { point: h ?? void 0, onClose: () => x(null), isOpen: !!h, filters: s, selectedFilters: i, onChange: l }) })
|
|
5563
5563
|
] });
|
|
@@ -5598,12 +5598,12 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5598
5598
|
onContextMenu: a,
|
|
5599
5599
|
...d
|
|
5600
5600
|
}) => {
|
|
5601
|
-
const u = Z(null), m = Z(null), [h, x] = g(!1),
|
|
5601
|
+
const u = Z(null), m = Z(null), [h, x] = g(!1), p = n === "heading" || n === "title" || n === "title-2", f = p ? "h3" : "span", j = {
|
|
5602
5602
|
fontSize: bn(n, t),
|
|
5603
5603
|
fontWeight: kn(n, r),
|
|
5604
5604
|
lineHeight: yn(n, s, t),
|
|
5605
5605
|
...o
|
|
5606
|
-
}, _ =
|
|
5606
|
+
}, _ = p ? "typography-heading" : "typography-text", b = k(() => {
|
|
5607
5607
|
if (!u.current || !m.current) return;
|
|
5608
5608
|
const y = u.current.clientWidth, v = m.current.scrollWidth;
|
|
5609
5609
|
x(y < v);
|
|
@@ -5619,10 +5619,10 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5619
5619
|
onContextMenu: a,
|
|
5620
5620
|
className: `runing-text ${h ? "runing" : ""}`,
|
|
5621
5621
|
children: /* @__PURE__ */ e.jsx(
|
|
5622
|
-
|
|
5622
|
+
f,
|
|
5623
5623
|
{
|
|
5624
5624
|
...d,
|
|
5625
|
-
style:
|
|
5625
|
+
style: j,
|
|
5626
5626
|
className: `${_} ${i}`,
|
|
5627
5627
|
children: h ? `| ${l} | ${l}` : l
|
|
5628
5628
|
}
|
|
@@ -5638,7 +5638,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5638
5638
|
visibility: "hidden",
|
|
5639
5639
|
height: "auto",
|
|
5640
5640
|
whiteSpace: "nowrap",
|
|
5641
|
-
...
|
|
5641
|
+
...j
|
|
5642
5642
|
},
|
|
5643
5643
|
className: `${_} ${i}`,
|
|
5644
5644
|
children: l
|
|
@@ -5669,13 +5669,13 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5669
5669
|
onBlur: m,
|
|
5670
5670
|
onFocus: h,
|
|
5671
5671
|
container: x = document.body,
|
|
5672
|
-
size:
|
|
5673
|
-
transparent:
|
|
5674
|
-
helperText:
|
|
5672
|
+
size: p = "medium",
|
|
5673
|
+
transparent: f,
|
|
5674
|
+
helperText: j,
|
|
5675
5675
|
errorText: _,
|
|
5676
5676
|
disabled: b
|
|
5677
5677
|
}, y) => {
|
|
5678
|
-
const [v, M] = g(""), [
|
|
5678
|
+
const [v, M] = g(""), [F, B] = g({ x: 0, y: 0, width: 100 }), [A, w] = g(!1), z = !!(u || _);
|
|
5679
5679
|
O(() => {
|
|
5680
5680
|
M(pn(s, l ?? ""));
|
|
5681
5681
|
}, [l, s]);
|
|
@@ -5695,10 +5695,10 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5695
5695
|
/* @__PURE__ */ e.jsx("div", { ref: y, style: t, className: `
|
|
5696
5696
|
input-field
|
|
5697
5697
|
input-field__text-field
|
|
5698
|
-
${I[
|
|
5698
|
+
${I[p]}
|
|
5699
5699
|
${a ? "input-field_border" : ""}
|
|
5700
5700
|
${A ? "input-field_active" : ""}
|
|
5701
|
-
${
|
|
5701
|
+
${f ? "input-field_transparent" : ""}
|
|
5702
5702
|
${z ? "input-field_error" : ""}
|
|
5703
5703
|
${b ? "input-field_disabled" : ""}
|
|
5704
5704
|
`, children: /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick: N, children: [
|
|
@@ -5720,8 +5720,8 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5720
5720
|
/* @__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 })
|
|
5721
5721
|
] }) }),
|
|
5722
5722
|
z && _ && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: _ }),
|
|
5723
|
-
|
|
5724
|
-
/* @__PURE__ */ e.jsx(Pn, { marginBottom: r === ee.MOBILE ? 80 : 0, width:
|
|
5723
|
+
j && !z && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: j }),
|
|
5724
|
+
/* @__PURE__ */ e.jsx(Pn, { marginBottom: r === ee.MOBILE ? 80 : 0, width: F.width, screensize: r, x: F.x, y: F.y, onHide: () => w(!1), container: x, blocks: [{ items: s.map(E) }], visible: A })
|
|
5725
5725
|
] });
|
|
5726
5726
|
}
|
|
5727
5727
|
);
|
|
@@ -5732,7 +5732,7 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
|
|
|
5732
5732
|
};
|
|
5733
5733
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
5734
5734
|
/* @__PURE__ */ e.jsx(
|
|
5735
|
-
|
|
5735
|
+
Ve,
|
|
5736
5736
|
{
|
|
5737
5737
|
border: !0,
|
|
5738
5738
|
icon: (a == null ? void 0 : a.component) ?? void 0,
|
|
@@ -5755,9 +5755,9 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
|
|
|
5755
5755
|
] });
|
|
5756
5756
|
}, tt = {
|
|
5757
5757
|
Dashboard: Zt,
|
|
5758
|
-
Copy:
|
|
5759
|
-
LogoutIcon:
|
|
5760
|
-
Room:
|
|
5758
|
+
Copy: Vn,
|
|
5759
|
+
LogoutIcon: Ft,
|
|
5760
|
+
Room: Vt,
|
|
5761
5761
|
Group: Et,
|
|
5762
5762
|
OkUserIcon: Rt,
|
|
5763
5763
|
XUserIcon: $t,
|
|
@@ -5787,7 +5787,7 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
|
|
|
5787
5787
|
Keyboard: Rn,
|
|
5788
5788
|
Search: tn,
|
|
5789
5789
|
Plus: En,
|
|
5790
|
-
Minus:
|
|
5790
|
+
Minus: Fn,
|
|
5791
5791
|
Plug: kt,
|
|
5792
5792
|
LampIcon: Tt,
|
|
5793
5793
|
SwitchIcon: Ot,
|
|
@@ -5915,7 +5915,7 @@ const fe = (n) => {
|
|
|
5915
5915
|
}, Cs = (n) => {
|
|
5916
5916
|
const { error: t, value: r, change: s, clearHandler: i } = fe(n.name);
|
|
5917
5917
|
return /* @__PURE__ */ e.jsx(
|
|
5918
|
-
|
|
5918
|
+
Ve,
|
|
5919
5919
|
{
|
|
5920
5920
|
...n,
|
|
5921
5921
|
error: !!t,
|
|
@@ -5953,24 +5953,24 @@ const fe = (n) => {
|
|
|
5953
5953
|
}
|
|
5954
5954
|
);
|
|
5955
5955
|
}, bs = ve(
|
|
5956
|
-
function({ children: t, value: r, name: s, errors: i, onFinish: l,
|
|
5957
|
-
const [
|
|
5958
|
-
|
|
5959
|
-
}, [l,
|
|
5960
|
-
|
|
5961
|
-
...
|
|
5962
|
-
[
|
|
5963
|
-
}));
|
|
5964
|
-
}, []);
|
|
5965
|
-
return ht(
|
|
5966
|
-
submit: () => l == null ? void 0 : l(
|
|
5967
|
-
setFieldValue: (
|
|
5968
|
-
|
|
5956
|
+
function({ children: t, value: r, name: s, errors: i, onFinish: l, onChangeValue: o, ...c }, a) {
|
|
5957
|
+
const [d, u] = g(r), m = k((x) => {
|
|
5958
|
+
x.preventDefault(), l == null || l(d);
|
|
5959
|
+
}, [l, d]), h = k((x, p) => {
|
|
5960
|
+
u((f) => ({
|
|
5961
|
+
...f,
|
|
5962
|
+
[x]: p
|
|
5963
|
+
})), o == null || o(x, p);
|
|
5964
|
+
}, [o]);
|
|
5965
|
+
return ht(a, () => ({
|
|
5966
|
+
submit: () => l == null ? void 0 : l(d),
|
|
5967
|
+
setFieldValue: (x, p) => {
|
|
5968
|
+
u((f) => ({ ...f, [x]: p }));
|
|
5969
5969
|
},
|
|
5970
|
-
setValues: (
|
|
5971
|
-
getValues: () =>
|
|
5972
|
-
reset: () =>
|
|
5973
|
-
}), [l,
|
|
5970
|
+
setValues: (x) => u(x),
|
|
5971
|
+
getValues: () => d,
|
|
5972
|
+
reset: () => u(r)
|
|
5973
|
+
}), [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 }) });
|
|
5974
5974
|
}
|
|
5975
5975
|
), s1 = Object.assign(bs, {
|
|
5976
5976
|
TextInput: Cs,
|
|
@@ -5990,7 +5990,7 @@ export {
|
|
|
5990
5990
|
vt as ArrowRight,
|
|
5991
5991
|
gt as ArrowUp,
|
|
5992
5992
|
Os as BaseActionCard,
|
|
5993
|
-
|
|
5993
|
+
Fe as BaseButton,
|
|
5994
5994
|
Ut as BaseDialog,
|
|
5995
5995
|
dr as BaseMenu,
|
|
5996
5996
|
et as BaseType,
|
|
@@ -6015,7 +6015,7 @@ export {
|
|
|
6015
6015
|
Dt as ConditionerIcon,
|
|
6016
6016
|
At as ConditionerIcon2,
|
|
6017
6017
|
Is as ContentBox,
|
|
6018
|
-
|
|
6018
|
+
Vn as Copy,
|
|
6019
6019
|
cn as CopyButton,
|
|
6020
6020
|
Bt as Curtains,
|
|
6021
6021
|
Xt as DangerButton,
|
|
@@ -6040,7 +6040,7 @@ export {
|
|
|
6040
6040
|
Le as HSVtoRGB,
|
|
6041
6041
|
bt as Home,
|
|
6042
6042
|
de as IconButton,
|
|
6043
|
-
|
|
6043
|
+
Fs as IconButtonMenu,
|
|
6044
6044
|
is as IconSelectField,
|
|
6045
6045
|
n1 as IconsSelect,
|
|
6046
6046
|
qs as JsonContainer,
|
|
@@ -6049,10 +6049,10 @@ export {
|
|
|
6049
6049
|
wt as LinkIcon,
|
|
6050
6050
|
Cr as ListContainer,
|
|
6051
6051
|
_r as ListItem,
|
|
6052
|
-
|
|
6052
|
+
Ft as LogoutIcon,
|
|
6053
6053
|
Pn as Menu,
|
|
6054
6054
|
Ln as MenuIcon,
|
|
6055
|
-
|
|
6055
|
+
Fn as Minus,
|
|
6056
6056
|
Lt as MinusUserIcon,
|
|
6057
6057
|
Ze as ModalDialogTemplate,
|
|
6058
6058
|
Ce as ModalPortal,
|
|
@@ -6077,7 +6077,7 @@ export {
|
|
|
6077
6077
|
De as RGBtoHSV,
|
|
6078
6078
|
Gn as RadioButton,
|
|
6079
6079
|
Rs as Range,
|
|
6080
|
-
|
|
6080
|
+
Vt as Room,
|
|
6081
6081
|
e1 as RunningLine,
|
|
6082
6082
|
ee as ScreenSize,
|
|
6083
6083
|
Ps as ScrollContainer,
|
|
@@ -6105,8 +6105,8 @@ export {
|
|
|
6105
6105
|
Tn as TempHighIcon,
|
|
6106
6106
|
Qn as TextArea,
|
|
6107
6107
|
ce as TextButton,
|
|
6108
|
-
|
|
6109
|
-
|
|
6108
|
+
Vs as TextDialog,
|
|
6109
|
+
Ve as TextField,
|
|
6110
6110
|
Jr as TimeField,
|
|
6111
6111
|
Kr as TimePicker,
|
|
6112
6112
|
Gt as ToolsIcon,
|