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