@billgangcom/theme-lib 1.2.0 → 1.3.0
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/align-bottom-B6qXcF_P.js +5 -0
- package/dist/align-bottom-BNcdAnw9.cjs +1 -0
- package/dist/align-top-BGk9vlUd.cjs +1 -0
- package/dist/align-top-CMearyFH.js +5 -0
- package/dist/builder.cjs.js +2 -2
- package/dist/builder.es.js +2 -2
- package/dist/index-YVaQxWXR.cjs +34 -0
- package/dist/{index-SOBckDON.js → index-dSkEANl1.js} +468 -465
- package/dist/shared/ui/Input/index.d.ts +1 -0
- package/dist/text-align-left-BBdqQ7N2.js +5 -0
- package/dist/text-align-left-BLq4Pvg1.cjs +1 -0
- package/dist/text-bold-BqCslwM8.cjs +1 -0
- package/dist/text-bold-CkfsPLSD.js +5 -0
- package/dist/text-code-CdpLXZEo.cjs +1 -0
- package/dist/text-code-Omig8KTZ.js +5 -0
- package/dist/text-italic-B6DlWITY.js +5 -0
- package/dist/text-italic-DgM86CDI.cjs +1 -0
- package/dist/text-strike-through-BPd9vRCE.js +5 -0
- package/dist/text-strike-through-DUrcRZUF.cjs +1 -0
- package/dist/text-underline-BMJdubuO.js +5 -0
- package/dist/text-underline-CwR9adlS.cjs +1 -0
- package/dist/ui/LayoutSettings/index.d.ts +10 -0
- package/dist/ui/TextSettings/index.d.ts +14 -0
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +154 -13
- package/package.json +2 -2
- package/dist/index-3IJeySWj.cjs +0 -34
|
@@ -16,15 +16,15 @@ var Qe;
|
|
|
16
16
|
function At() {
|
|
17
17
|
if (Qe) return ee;
|
|
18
18
|
Qe = 1;
|
|
19
|
-
var r = T, t = Symbol.for("react.element"),
|
|
19
|
+
var r = T, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
20
|
function l(f, u, v) {
|
|
21
|
-
var d, y = {},
|
|
22
|
-
v !== void 0 && (
|
|
23
|
-
for (d in u)
|
|
21
|
+
var d, y = {}, E = null, x = null;
|
|
22
|
+
v !== void 0 && (E = "" + v), u.key !== void 0 && (E = "" + u.key), u.ref !== void 0 && (x = u.ref);
|
|
23
|
+
for (d in u) n.call(u, d) && !o.hasOwnProperty(d) && (y[d] = u[d]);
|
|
24
24
|
if (f && f.defaultProps) for (d in u = f.defaultProps, u) y[d] === void 0 && (y[d] = u[d]);
|
|
25
|
-
return { $$typeof: t, type: f, key:
|
|
25
|
+
return { $$typeof: t, type: f, key: E, ref: x, props: y, _owner: i.current };
|
|
26
26
|
}
|
|
27
|
-
return ee.Fragment =
|
|
27
|
+
return ee.Fragment = s, ee.jsx = l, ee.jsxs = l, ee;
|
|
28
28
|
}
|
|
29
29
|
var te = {};
|
|
30
30
|
/**
|
|
@@ -39,15 +39,15 @@ var te = {};
|
|
|
39
39
|
var et;
|
|
40
40
|
function Nt() {
|
|
41
41
|
return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
|
|
42
|
-
var r = T, t = Symbol.for("react.element"),
|
|
43
|
-
function
|
|
42
|
+
var r = T, t = Symbol.for("react.element"), s = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), R = Symbol.iterator, m = "@@iterator";
|
|
43
|
+
function P(e) {
|
|
44
44
|
if (e === null || typeof e != "object")
|
|
45
45
|
return null;
|
|
46
|
-
var a =
|
|
46
|
+
var a = R && e[R] || e[m];
|
|
47
47
|
return typeof a == "function" ? a : null;
|
|
48
48
|
}
|
|
49
49
|
var w = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
50
|
-
function
|
|
50
|
+
function h(e) {
|
|
51
51
|
{
|
|
52
52
|
for (var a = arguments.length, c = new Array(a > 1 ? a - 1 : 0), p = 1; p < a; p++)
|
|
53
53
|
c[p - 1] = arguments[p];
|
|
@@ -58,20 +58,20 @@ function Nt() {
|
|
|
58
58
|
{
|
|
59
59
|
var p = w.ReactDebugCurrentFrame, k = p.getStackAddendum();
|
|
60
60
|
k !== "" && (a += "%s", c = c.concat([k]));
|
|
61
|
-
var
|
|
61
|
+
var S = c.map(function(_) {
|
|
62
62
|
return String(_);
|
|
63
63
|
});
|
|
64
|
-
|
|
64
|
+
S.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, S);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
var q = !1, K = !1, G = !1, ve = !1, ne = !1,
|
|
68
|
-
|
|
67
|
+
var q = !1, K = !1, G = !1, ve = !1, ne = !1, oe;
|
|
68
|
+
oe = Symbol.for("react.module.reference");
|
|
69
69
|
function $(e) {
|
|
70
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
70
|
+
return !!(typeof e == "string" || typeof e == "function" || e === n || e === o || ne || e === i || e === v || e === d || ve || e === x || q || K || G || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === y || e.$$typeof === l || e.$$typeof === f || e.$$typeof === u || // This needs to include all possible module reference object
|
|
71
71
|
// types supported by any Flight configuration anywhere since
|
|
72
72
|
// we don't know which Flight build this will end up being used
|
|
73
73
|
// with.
|
|
74
|
-
e.$$typeof ===
|
|
74
|
+
e.$$typeof === oe || e.getModuleId !== void 0));
|
|
75
75
|
}
|
|
76
76
|
function D(e, a, c) {
|
|
77
77
|
var p = e.displayName;
|
|
@@ -86,14 +86,14 @@ function Nt() {
|
|
|
86
86
|
function M(e) {
|
|
87
87
|
if (e == null)
|
|
88
88
|
return null;
|
|
89
|
-
if (typeof e.tag == "number" &&
|
|
89
|
+
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
90
90
|
return e.displayName || e.name || null;
|
|
91
91
|
if (typeof e == "string")
|
|
92
92
|
return e;
|
|
93
93
|
switch (e) {
|
|
94
|
-
case s:
|
|
95
|
-
return "Fragment";
|
|
96
94
|
case n:
|
|
95
|
+
return "Fragment";
|
|
96
|
+
case s:
|
|
97
97
|
return "Portal";
|
|
98
98
|
case o:
|
|
99
99
|
return "Profiler";
|
|
@@ -117,10 +117,10 @@ function Nt() {
|
|
|
117
117
|
case y:
|
|
118
118
|
var p = e.displayName || null;
|
|
119
119
|
return p !== null ? p : M(e.type) || "Memo";
|
|
120
|
-
case
|
|
121
|
-
var k = e,
|
|
120
|
+
case E: {
|
|
121
|
+
var k = e, S = k._payload, _ = k._init;
|
|
122
122
|
try {
|
|
123
|
-
return M(_(
|
|
123
|
+
return M(_(S));
|
|
124
124
|
} catch {
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
@@ -187,11 +187,11 @@ function Nt() {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
X < 0 &&
|
|
190
|
+
X < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
var ge = w.ReactCurrentDispatcher, he;
|
|
194
|
-
function
|
|
194
|
+
function ae(e, a, c) {
|
|
195
195
|
{
|
|
196
196
|
if (he === void 0)
|
|
197
197
|
try {
|
|
@@ -204,16 +204,16 @@ function Nt() {
|
|
|
204
204
|
` + he + e;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
var be = !1,
|
|
207
|
+
var be = !1, ie;
|
|
208
208
|
{
|
|
209
209
|
var ct = typeof WeakMap == "function" ? WeakMap : Map;
|
|
210
|
-
|
|
210
|
+
ie = new ct();
|
|
211
211
|
}
|
|
212
212
|
function Me(e, a) {
|
|
213
213
|
if (!e || be)
|
|
214
214
|
return "";
|
|
215
215
|
{
|
|
216
|
-
var c =
|
|
216
|
+
var c = ie.get(e);
|
|
217
217
|
if (c !== void 0)
|
|
218
218
|
return c;
|
|
219
219
|
}
|
|
@@ -221,8 +221,8 @@ function Nt() {
|
|
|
221
221
|
be = !0;
|
|
222
222
|
var k = Error.prepareStackTrace;
|
|
223
223
|
Error.prepareStackTrace = void 0;
|
|
224
|
-
var
|
|
225
|
-
|
|
224
|
+
var S;
|
|
225
|
+
S = ge.current, ge.current = null, at();
|
|
226
226
|
try {
|
|
227
227
|
if (a) {
|
|
228
228
|
var _ = function() {
|
|
@@ -268,17 +268,17 @@ function Nt() {
|
|
|
268
268
|
if (C--, j--, j < 0 || b[C] !== B[j]) {
|
|
269
269
|
var N = `
|
|
270
270
|
` + b[C].replace(" at new ", " at ");
|
|
271
|
-
return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
271
|
+
return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && ie.set(e, N), N;
|
|
272
272
|
}
|
|
273
273
|
while (C >= 1 && j >= 0);
|
|
274
274
|
break;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
} finally {
|
|
278
|
-
be = !1, ge.current =
|
|
278
|
+
be = !1, ge.current = S, it(), Error.prepareStackTrace = k;
|
|
279
279
|
}
|
|
280
|
-
var H = e ? e.displayName || e.name : "", W = H ?
|
|
281
|
-
return typeof e == "function" &&
|
|
280
|
+
var H = e ? e.displayName || e.name : "", W = H ? ae(H) : "";
|
|
281
|
+
return typeof e == "function" && ie.set(e, W), W;
|
|
282
282
|
}
|
|
283
283
|
function lt(e, a, c) {
|
|
284
284
|
return Me(e, !1);
|
|
@@ -287,29 +287,29 @@ function Nt() {
|
|
|
287
287
|
var a = e.prototype;
|
|
288
288
|
return !!(a && a.isReactComponent);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function ce(e, a, c) {
|
|
291
291
|
if (e == null)
|
|
292
292
|
return "";
|
|
293
293
|
if (typeof e == "function")
|
|
294
294
|
return Me(e, ut(e));
|
|
295
295
|
if (typeof e == "string")
|
|
296
|
-
return
|
|
296
|
+
return ae(e);
|
|
297
297
|
switch (e) {
|
|
298
298
|
case v:
|
|
299
|
-
return
|
|
299
|
+
return ae("Suspense");
|
|
300
300
|
case d:
|
|
301
|
-
return
|
|
301
|
+
return ae("SuspenseList");
|
|
302
302
|
}
|
|
303
303
|
if (typeof e == "object")
|
|
304
304
|
switch (e.$$typeof) {
|
|
305
305
|
case u:
|
|
306
306
|
return lt(e.render);
|
|
307
307
|
case y:
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
var p = e, k = p._payload,
|
|
308
|
+
return ce(e.type, a, c);
|
|
309
|
+
case E: {
|
|
310
|
+
var p = e, k = p._payload, S = p._init;
|
|
311
311
|
try {
|
|
312
|
-
return
|
|
312
|
+
return ce(S(k), a, c);
|
|
313
313
|
} catch {
|
|
314
314
|
}
|
|
315
315
|
}
|
|
@@ -317,18 +317,18 @@ function Nt() {
|
|
|
317
317
|
return "";
|
|
318
318
|
}
|
|
319
319
|
var Z = Object.prototype.hasOwnProperty, qe = {}, Le = w.ReactDebugCurrentFrame;
|
|
320
|
-
function
|
|
320
|
+
function le(e) {
|
|
321
321
|
if (e) {
|
|
322
|
-
var a = e._owner, c =
|
|
322
|
+
var a = e._owner, c = ce(e.type, e._source, a ? a.type : null);
|
|
323
323
|
Le.setExtraStackFrame(c);
|
|
324
324
|
} else
|
|
325
325
|
Le.setExtraStackFrame(null);
|
|
326
326
|
}
|
|
327
327
|
function dt(e, a, c, p, k) {
|
|
328
328
|
{
|
|
329
|
-
var
|
|
329
|
+
var S = Function.call.bind(Z);
|
|
330
330
|
for (var _ in e)
|
|
331
|
-
if (
|
|
331
|
+
if (S(e, _)) {
|
|
332
332
|
var b = void 0;
|
|
333
333
|
try {
|
|
334
334
|
if (typeof e[_] != "function") {
|
|
@@ -339,7 +339,7 @@ function Nt() {
|
|
|
339
339
|
} catch (C) {
|
|
340
340
|
b = C;
|
|
341
341
|
}
|
|
342
|
-
b && !(b instanceof Error) && (
|
|
342
|
+
b && !(b instanceof Error) && (le(k), h("%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).", p || "React class", c, _, typeof b), le(null)), b instanceof Error && !(b.message in qe) && (qe[b.message] = !0, le(k), h("Failed %s type: %s", c, b.message), le(null));
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
}
|
|
@@ -365,7 +365,7 @@ function Nt() {
|
|
|
365
365
|
}
|
|
366
366
|
function Ue(e) {
|
|
367
367
|
if (vt(e))
|
|
368
|
-
return
|
|
368
|
+
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pt(e)), Ve(e);
|
|
369
369
|
}
|
|
370
370
|
var Q = w.ReactCurrentOwner, mt = {
|
|
371
371
|
key: !0,
|
|
@@ -393,13 +393,13 @@ function Nt() {
|
|
|
393
393
|
function bt(e, a) {
|
|
394
394
|
if (typeof e.ref == "string" && Q.current && a && Q.current.stateNode !== a) {
|
|
395
395
|
var c = M(Q.current.type);
|
|
396
|
-
ye[c] || (
|
|
396
|
+
ye[c] || (h('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', M(Q.current.type), e.ref), ye[c] = !0);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
function _t(e, a) {
|
|
400
400
|
{
|
|
401
401
|
var c = function() {
|
|
402
|
-
We || (We = !0,
|
|
402
|
+
We || (We = !0, h("%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)", a));
|
|
403
403
|
};
|
|
404
404
|
c.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
405
405
|
get: c,
|
|
@@ -410,7 +410,7 @@ function Nt() {
|
|
|
410
410
|
function yt(e, a) {
|
|
411
411
|
{
|
|
412
412
|
var c = function() {
|
|
413
|
-
ze || (ze = !0,
|
|
413
|
+
ze || (ze = !0, h("%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)", a));
|
|
414
414
|
};
|
|
415
415
|
c.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
416
416
|
get: c,
|
|
@@ -418,7 +418,7 @@ function Nt() {
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
var wt = function(e, a, c, p, k,
|
|
421
|
+
var wt = function(e, a, c, p, k, S, _) {
|
|
422
422
|
var b = {
|
|
423
423
|
// This tag allows us to uniquely identify this as a React Element
|
|
424
424
|
$$typeof: t,
|
|
@@ -428,7 +428,7 @@ function Nt() {
|
|
|
428
428
|
ref: c,
|
|
429
429
|
props: _,
|
|
430
430
|
// Record the component responsible for creating this element.
|
|
431
|
-
_owner:
|
|
431
|
+
_owner: S
|
|
432
432
|
};
|
|
433
433
|
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
434
434
|
configurable: !1,
|
|
@@ -449,14 +449,14 @@ function Nt() {
|
|
|
449
449
|
};
|
|
450
450
|
function kt(e, a, c, p, k) {
|
|
451
451
|
{
|
|
452
|
-
var
|
|
452
|
+
var S, _ = {}, b = null, B = null;
|
|
453
453
|
c !== void 0 && (Ue(c), b = "" + c), ht(a) && (Ue(a.key), b = "" + a.key), gt(a) && (B = a.ref, bt(a, k));
|
|
454
|
-
for (
|
|
455
|
-
Z.call(a,
|
|
454
|
+
for (S in a)
|
|
455
|
+
Z.call(a, S) && !mt.hasOwnProperty(S) && (_[S] = a[S]);
|
|
456
456
|
if (e && e.defaultProps) {
|
|
457
457
|
var C = e.defaultProps;
|
|
458
|
-
for (
|
|
459
|
-
_[
|
|
458
|
+
for (S in C)
|
|
459
|
+
_[S] === void 0 && (_[S] = C[S]);
|
|
460
460
|
}
|
|
461
461
|
if (b || B) {
|
|
462
462
|
var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
@@ -468,7 +468,7 @@ function Nt() {
|
|
|
468
468
|
var we = w.ReactCurrentOwner, Ye = w.ReactDebugCurrentFrame;
|
|
469
469
|
function Y(e) {
|
|
470
470
|
if (e) {
|
|
471
|
-
var a = e._owner, c =
|
|
471
|
+
var a = e._owner, c = ce(e.type, e._source, a ? a.type : null);
|
|
472
472
|
Ye.setExtraStackFrame(c);
|
|
473
473
|
} else
|
|
474
474
|
Ye.setExtraStackFrame(null);
|
|
@@ -516,7 +516,7 @@ Check the top-level render call using <` + c + ">.");
|
|
|
516
516
|
return;
|
|
517
517
|
Je[c] = !0;
|
|
518
518
|
var p = "";
|
|
519
|
-
e && e._owner && e._owner !== we.current && (p = " It was passed a child from " + M(e._owner.type) + "."), Y(e),
|
|
519
|
+
e && e._owner && e._owner !== we.current && (p = " It was passed a child from " + M(e._owner.type) + "."), Y(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, p), Y(null);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
function Ge(e, a) {
|
|
@@ -531,9 +531,9 @@ Check the top-level render call using <` + c + ">.");
|
|
|
531
531
|
else if (Se(e))
|
|
532
532
|
e._store && (e._store.validated = !0);
|
|
533
533
|
else if (e) {
|
|
534
|
-
var k =
|
|
534
|
+
var k = P(e);
|
|
535
535
|
if (typeof k == "function" && k !== e.entries)
|
|
536
|
-
for (var
|
|
536
|
+
for (var S = k.call(e), _; !(_ = S.next()).done; )
|
|
537
537
|
Se(_.value) && Ke(_.value, a);
|
|
538
538
|
}
|
|
539
539
|
}
|
|
@@ -558,9 +558,9 @@ Check the top-level render call using <` + c + ">.");
|
|
|
558
558
|
} else if (a.PropTypes !== void 0 && !ke) {
|
|
559
559
|
ke = !0;
|
|
560
560
|
var k = M(a);
|
|
561
|
-
|
|
561
|
+
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
|
|
562
562
|
}
|
|
563
|
-
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved &&
|
|
563
|
+
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
function Rt(e) {
|
|
@@ -568,15 +568,15 @@ Check the top-level render call using <` + c + ">.");
|
|
|
568
568
|
for (var a = Object.keys(e.props), c = 0; c < a.length; c++) {
|
|
569
569
|
var p = a[c];
|
|
570
570
|
if (p !== "children" && p !== "key") {
|
|
571
|
-
Y(e),
|
|
571
|
+
Y(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), Y(null);
|
|
572
572
|
break;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
e.ref !== null && (Y(e),
|
|
575
|
+
e.ref !== null && (Y(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
var Xe = {};
|
|
579
|
-
function Ze(e, a, c, p, k,
|
|
579
|
+
function Ze(e, a, c, p, k, S) {
|
|
580
580
|
{
|
|
581
581
|
var _ = $(e);
|
|
582
582
|
if (!_) {
|
|
@@ -585,9 +585,9 @@ Check the top-level render call using <` + c + ">.");
|
|
|
585
585
|
var B = St();
|
|
586
586
|
B ? b += B : b += He();
|
|
587
587
|
var C;
|
|
588
|
-
e === null ? C = "null" : _e(e) ? C = "array" : e !== void 0 && e.$$typeof === t ? (C = "<" + (M(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : C = typeof e,
|
|
588
|
+
e === null ? C = "null" : _e(e) ? C = "array" : e !== void 0 && e.$$typeof === t ? (C = "<" + (M(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : C = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, b);
|
|
589
589
|
}
|
|
590
|
-
var j = kt(e, a, c, k,
|
|
590
|
+
var j = kt(e, a, c, k, S);
|
|
591
591
|
if (j == null)
|
|
592
592
|
return j;
|
|
593
593
|
if (_) {
|
|
@@ -599,7 +599,7 @@ Check the top-level render call using <` + c + ">.");
|
|
|
599
599
|
Ge(N[H], e);
|
|
600
600
|
Object.freeze && Object.freeze(N);
|
|
601
601
|
} else
|
|
602
|
-
|
|
602
|
+
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
603
603
|
else
|
|
604
604
|
Ge(N, e);
|
|
605
605
|
}
|
|
@@ -609,7 +609,7 @@ Check the top-level render call using <` + c + ">.");
|
|
|
609
609
|
}), xe = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
610
610
|
if (!Xe[W + xe]) {
|
|
611
611
|
var Tt = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
|
|
612
|
-
|
|
612
|
+
h(`A props object containing a "key" prop is being spread into JSX:
|
|
613
613
|
let props = %s;
|
|
614
614
|
<%s {...props} />
|
|
615
615
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -617,7 +617,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
617
617
|
<%s key={someKey} {...props} />`, xe, W, Tt, W), Xe[W + xe] = !0;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
return e ===
|
|
620
|
+
return e === n ? Rt(j) : Et(j), j;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
function Ct(e, a, c) {
|
|
@@ -627,41 +627,41 @@ React keys must be passed directly to JSX without using spread:
|
|
|
627
627
|
return Ze(e, a, c, !1);
|
|
628
628
|
}
|
|
629
629
|
var Pt = jt, Ot = Ct;
|
|
630
|
-
te.Fragment =
|
|
630
|
+
te.Fragment = n, te.jsx = Pt, te.jsxs = Ot;
|
|
631
631
|
}()), te;
|
|
632
632
|
}
|
|
633
633
|
process.env.NODE_ENV === "production" ? je.exports = At() : je.exports = Nt();
|
|
634
|
-
var
|
|
634
|
+
var g = je.exports;
|
|
635
635
|
const tt = (r) => {
|
|
636
636
|
let t;
|
|
637
|
-
const
|
|
637
|
+
const s = /* @__PURE__ */ new Set(), n = (v, d) => {
|
|
638
638
|
const y = typeof v == "function" ? v(t) : v;
|
|
639
639
|
if (!Object.is(y, t)) {
|
|
640
|
-
const
|
|
641
|
-
t = d ?? (typeof y != "object" || y === null) ? y : Object.assign({}, t, y),
|
|
640
|
+
const E = t;
|
|
641
|
+
t = d ?? (typeof y != "object" || y === null) ? y : Object.assign({}, t, y), s.forEach((x) => x(t, E));
|
|
642
642
|
}
|
|
643
|
-
}, i = () => t, f = { setState:
|
|
643
|
+
}, i = () => t, f = { setState: n, getState: i, getInitialState: () => u, subscribe: (v) => (s.add(v), () => s.delete(v)) }, u = t = r(n, i, f);
|
|
644
644
|
return f;
|
|
645
645
|
}, Ft = (r) => r ? tt(r) : tt, $t = (r) => r;
|
|
646
646
|
function Dt(r, t = $t) {
|
|
647
|
-
const
|
|
647
|
+
const s = T.useSyncExternalStore(
|
|
648
648
|
r.subscribe,
|
|
649
649
|
() => t(r.getState()),
|
|
650
650
|
() => t(r.getInitialState())
|
|
651
651
|
);
|
|
652
|
-
return T.useDebugValue(
|
|
652
|
+
return T.useDebugValue(s), s;
|
|
653
653
|
}
|
|
654
654
|
const rt = (r) => {
|
|
655
|
-
const t = Ft(r),
|
|
656
|
-
return Object.assign(
|
|
657
|
-
}, F = (r) => r ? rt(r) : rt,
|
|
655
|
+
const t = Ft(r), s = (n) => Dt(t, n);
|
|
656
|
+
return Object.assign(s, t), s;
|
|
657
|
+
}, F = (r) => r ? rt(r) : rt, es = F((r) => ({
|
|
658
658
|
blocks: {},
|
|
659
659
|
setBlocks: (t) => r(() => ({ blocks: t })),
|
|
660
660
|
activeBlock: null,
|
|
661
661
|
setActiveBlock: (t) => r(() => ({ activeBlock: t })),
|
|
662
662
|
sourceBlocks: {},
|
|
663
663
|
setSourceBlocks: (t) => r(() => ({ sourceBlocks: t }))
|
|
664
|
-
})),
|
|
664
|
+
})), ts = F((r) => ({
|
|
665
665
|
currentDevice: "desktop",
|
|
666
666
|
setCurrentDevice: (t) => r(() => ({ currentDevice: t }))
|
|
667
667
|
}));
|
|
@@ -686,7 +686,7 @@ const Mt = [
|
|
|
686
686
|
icon: "settings",
|
|
687
687
|
name: "Settings"
|
|
688
688
|
}
|
|
689
|
-
],
|
|
689
|
+
], rs = Array.from({ length: 122 / 2 + 1 }, (r, t) => String(6 + t * 2)), ss = [
|
|
690
690
|
"100",
|
|
691
691
|
"200",
|
|
692
692
|
"300",
|
|
@@ -696,7 +696,7 @@ const Mt = [
|
|
|
696
696
|
"700",
|
|
697
697
|
"800",
|
|
698
698
|
"900"
|
|
699
|
-
],
|
|
699
|
+
], ns = [
|
|
700
700
|
"home",
|
|
701
701
|
"reviews",
|
|
702
702
|
"faqs",
|
|
@@ -775,59 +775,59 @@ const Mt = [
|
|
|
775
775
|
},
|
|
776
776
|
visibility: "public"
|
|
777
777
|
}
|
|
778
|
-
},
|
|
778
|
+
}, os = F((r) => ({
|
|
779
779
|
activeBlock: Mt[0],
|
|
780
780
|
setActiveBlock: (t) => r(() => ({ activeBlock: t }))
|
|
781
781
|
}));
|
|
782
782
|
function Lt(r, t) {
|
|
783
|
-
let
|
|
783
|
+
let s;
|
|
784
784
|
try {
|
|
785
|
-
|
|
785
|
+
s = r();
|
|
786
786
|
} catch {
|
|
787
787
|
return;
|
|
788
788
|
}
|
|
789
789
|
return {
|
|
790
790
|
getItem: (i) => {
|
|
791
791
|
var o;
|
|
792
|
-
const l = (u) => u === null ? null : JSON.parse(u, void 0), f = (o =
|
|
792
|
+
const l = (u) => u === null ? null : JSON.parse(u, void 0), f = (o = s.getItem(i)) != null ? o : null;
|
|
793
793
|
return f instanceof Promise ? f.then(l) : l(f);
|
|
794
794
|
},
|
|
795
|
-
setItem: (i, o) =>
|
|
795
|
+
setItem: (i, o) => s.setItem(
|
|
796
796
|
i,
|
|
797
797
|
JSON.stringify(o, void 0)
|
|
798
798
|
),
|
|
799
|
-
removeItem: (i) =>
|
|
799
|
+
removeItem: (i) => s.removeItem(i)
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
802
|
const Pe = (r) => (t) => {
|
|
803
803
|
try {
|
|
804
|
-
const
|
|
805
|
-
return
|
|
806
|
-
then(
|
|
807
|
-
return Pe(
|
|
804
|
+
const s = r(t);
|
|
805
|
+
return s instanceof Promise ? s : {
|
|
806
|
+
then(n) {
|
|
807
|
+
return Pe(n)(s);
|
|
808
808
|
},
|
|
809
|
-
catch(
|
|
809
|
+
catch(n) {
|
|
810
810
|
return this;
|
|
811
811
|
}
|
|
812
812
|
};
|
|
813
|
-
} catch (
|
|
813
|
+
} catch (s) {
|
|
814
814
|
return {
|
|
815
|
-
then(
|
|
815
|
+
then(n) {
|
|
816
816
|
return this;
|
|
817
817
|
},
|
|
818
|
-
catch(
|
|
819
|
-
return Pe(
|
|
818
|
+
catch(n) {
|
|
819
|
+
return Pe(n)(s);
|
|
820
820
|
}
|
|
821
821
|
};
|
|
822
822
|
}
|
|
823
|
-
}, Vt = (r, t) => (
|
|
823
|
+
}, Vt = (r, t) => (s, n, i) => {
|
|
824
824
|
let o = {
|
|
825
825
|
storage: Lt(() => localStorage),
|
|
826
|
-
partialize: (
|
|
826
|
+
partialize: (m) => m,
|
|
827
827
|
version: 0,
|
|
828
|
-
merge: (
|
|
829
|
-
...
|
|
830
|
-
...
|
|
828
|
+
merge: (m, P) => ({
|
|
829
|
+
...P,
|
|
830
|
+
...m
|
|
831
831
|
}),
|
|
832
832
|
...t
|
|
833
833
|
}, l = !1;
|
|
@@ -835,93 +835,93 @@ const Pe = (r) => (t) => {
|
|
|
835
835
|
let v = o.storage;
|
|
836
836
|
if (!v)
|
|
837
837
|
return r(
|
|
838
|
-
(...
|
|
838
|
+
(...m) => {
|
|
839
839
|
console.warn(
|
|
840
840
|
`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`
|
|
841
|
-
),
|
|
841
|
+
), s(...m);
|
|
842
842
|
},
|
|
843
|
-
|
|
843
|
+
n,
|
|
844
844
|
i
|
|
845
845
|
);
|
|
846
846
|
const d = () => {
|
|
847
|
-
const
|
|
847
|
+
const m = o.partialize({ ...n() });
|
|
848
848
|
return v.setItem(o.name, {
|
|
849
|
-
state:
|
|
849
|
+
state: m,
|
|
850
850
|
version: o.version
|
|
851
851
|
});
|
|
852
852
|
}, y = i.setState;
|
|
853
|
-
i.setState = (
|
|
854
|
-
y(
|
|
853
|
+
i.setState = (m, P) => {
|
|
854
|
+
y(m, P), d();
|
|
855
855
|
};
|
|
856
|
-
const
|
|
857
|
-
(...
|
|
858
|
-
|
|
856
|
+
const E = r(
|
|
857
|
+
(...m) => {
|
|
858
|
+
s(...m), d();
|
|
859
859
|
},
|
|
860
|
-
|
|
860
|
+
n,
|
|
861
861
|
i
|
|
862
862
|
);
|
|
863
|
-
i.getInitialState = () =>
|
|
864
|
-
let
|
|
865
|
-
const
|
|
866
|
-
var
|
|
863
|
+
i.getInitialState = () => E;
|
|
864
|
+
let x;
|
|
865
|
+
const R = () => {
|
|
866
|
+
var m, P;
|
|
867
867
|
if (!v) return;
|
|
868
|
-
l = !1, f.forEach((
|
|
868
|
+
l = !1, f.forEach((h) => {
|
|
869
869
|
var I;
|
|
870
|
-
return
|
|
870
|
+
return h((I = n()) != null ? I : E);
|
|
871
871
|
});
|
|
872
|
-
const w = ((
|
|
873
|
-
return Pe(v.getItem.bind(v))(o.name).then((
|
|
874
|
-
if (
|
|
875
|
-
if (typeof
|
|
872
|
+
const w = ((P = o.onRehydrateStorage) == null ? void 0 : P.call(o, (m = n()) != null ? m : E)) || void 0;
|
|
873
|
+
return Pe(v.getItem.bind(v))(o.name).then((h) => {
|
|
874
|
+
if (h)
|
|
875
|
+
if (typeof h.version == "number" && h.version !== o.version) {
|
|
876
876
|
if (o.migrate)
|
|
877
877
|
return [
|
|
878
878
|
!0,
|
|
879
879
|
o.migrate(
|
|
880
|
-
|
|
881
|
-
|
|
880
|
+
h.state,
|
|
881
|
+
h.version
|
|
882
882
|
)
|
|
883
883
|
];
|
|
884
884
|
console.error(
|
|
885
885
|
"State loaded from storage couldn't be migrated since no migrate function was provided"
|
|
886
886
|
);
|
|
887
887
|
} else
|
|
888
|
-
return [!1,
|
|
888
|
+
return [!1, h.state];
|
|
889
889
|
return [!1, void 0];
|
|
890
|
-
}).then((
|
|
890
|
+
}).then((h) => {
|
|
891
891
|
var I;
|
|
892
|
-
const [q, K] =
|
|
893
|
-
if (
|
|
892
|
+
const [q, K] = h;
|
|
893
|
+
if (x = o.merge(
|
|
894
894
|
K,
|
|
895
|
-
(I =
|
|
896
|
-
),
|
|
895
|
+
(I = n()) != null ? I : E
|
|
896
|
+
), s(x, !0), q)
|
|
897
897
|
return d();
|
|
898
898
|
}).then(() => {
|
|
899
|
-
w == null || w(
|
|
900
|
-
}).catch((
|
|
901
|
-
w == null || w(void 0,
|
|
899
|
+
w == null || w(x, void 0), x = n(), l = !0, u.forEach((h) => h(x));
|
|
900
|
+
}).catch((h) => {
|
|
901
|
+
w == null || w(void 0, h);
|
|
902
902
|
});
|
|
903
903
|
};
|
|
904
904
|
return i.persist = {
|
|
905
|
-
setOptions: (
|
|
905
|
+
setOptions: (m) => {
|
|
906
906
|
o = {
|
|
907
907
|
...o,
|
|
908
|
-
...
|
|
909
|
-
},
|
|
908
|
+
...m
|
|
909
|
+
}, m.storage && (v = m.storage);
|
|
910
910
|
},
|
|
911
911
|
clearStorage: () => {
|
|
912
912
|
v == null || v.removeItem(o.name);
|
|
913
913
|
},
|
|
914
914
|
getOptions: () => o,
|
|
915
|
-
rehydrate: () =>
|
|
915
|
+
rehydrate: () => R(),
|
|
916
916
|
hasHydrated: () => l,
|
|
917
|
-
onHydrate: (
|
|
918
|
-
f.delete(
|
|
917
|
+
onHydrate: (m) => (f.add(m), () => {
|
|
918
|
+
f.delete(m);
|
|
919
919
|
}),
|
|
920
|
-
onFinishHydration: (
|
|
921
|
-
u.delete(
|
|
920
|
+
onFinishHydration: (m) => (u.add(m), () => {
|
|
921
|
+
u.delete(m);
|
|
922
922
|
})
|
|
923
|
-
}, o.skipHydration ||
|
|
924
|
-
}, pe = Vt,
|
|
923
|
+
}, o.skipHydration || R(), x || E;
|
|
924
|
+
}, pe = Vt, as = F(
|
|
925
925
|
pe(
|
|
926
926
|
(r) => ({
|
|
927
927
|
onPreview: !1,
|
|
@@ -938,30 +938,30 @@ const Pe = (r) => (t) => {
|
|
|
938
938
|
}
|
|
939
939
|
)
|
|
940
940
|
);
|
|
941
|
-
var
|
|
941
|
+
var O = [];
|
|
942
942
|
for (var Ee = 0; Ee < 256; ++Ee)
|
|
943
|
-
|
|
943
|
+
O.push((Ee + 256).toString(16).slice(1));
|
|
944
944
|
function Ut(r, t = 0) {
|
|
945
|
-
return (
|
|
945
|
+
return (O[r[t + 0]] + O[r[t + 1]] + O[r[t + 2]] + O[r[t + 3]] + "-" + O[r[t + 4]] + O[r[t + 5]] + "-" + O[r[t + 6]] + O[r[t + 7]] + "-" + O[r[t + 8]] + O[r[t + 9]] + "-" + O[r[t + 10]] + O[r[t + 11]] + O[r[t + 12]] + O[r[t + 13]] + O[r[t + 14]] + O[r[t + 15]]).toLowerCase();
|
|
946
946
|
}
|
|
947
|
-
var
|
|
947
|
+
var ue, Wt = new Uint8Array(16);
|
|
948
948
|
function zt() {
|
|
949
|
-
if (!
|
|
949
|
+
if (!ue && (ue = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ue))
|
|
950
950
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
951
|
-
return
|
|
951
|
+
return ue(Wt);
|
|
952
952
|
}
|
|
953
953
|
var Yt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
954
|
-
const
|
|
954
|
+
const st = {
|
|
955
955
|
randomUUID: Yt
|
|
956
956
|
};
|
|
957
|
-
function Oe(r, t,
|
|
958
|
-
if (
|
|
959
|
-
return
|
|
957
|
+
function Oe(r, t, s) {
|
|
958
|
+
if (st.randomUUID && !t && !r)
|
|
959
|
+
return st.randomUUID();
|
|
960
960
|
r = r || {};
|
|
961
|
-
var
|
|
962
|
-
return
|
|
961
|
+
var n = r.random || (r.rng || zt)();
|
|
962
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Ut(n);
|
|
963
963
|
}
|
|
964
|
-
const
|
|
964
|
+
const is = F(
|
|
965
965
|
pe(
|
|
966
966
|
(r, t) => ({
|
|
967
967
|
blocks: {
|
|
@@ -975,78 +975,78 @@ const an = F(
|
|
|
975
975
|
},
|
|
976
976
|
currentBlock: null,
|
|
977
977
|
positionBlock: null,
|
|
978
|
-
createPage: (
|
|
979
|
-
const
|
|
980
|
-
s
|
|
978
|
+
createPage: (s) => {
|
|
979
|
+
const n = t().blocks;
|
|
980
|
+
n[s] = {}, r({ blocks: n });
|
|
981
981
|
},
|
|
982
|
-
deletePage: (
|
|
983
|
-
const
|
|
984
|
-
delete s
|
|
982
|
+
deletePage: (s) => {
|
|
983
|
+
const n = t().blocks;
|
|
984
|
+
delete n[s], r({ blocks: n });
|
|
985
985
|
},
|
|
986
|
-
updatePage: (
|
|
986
|
+
updatePage: (s, n) => {
|
|
987
987
|
const i = t().blocks;
|
|
988
|
-
if (i[
|
|
989
|
-
const o = i[
|
|
990
|
-
delete i[
|
|
988
|
+
if (i[n]) return;
|
|
989
|
+
const o = i[s];
|
|
990
|
+
delete i[s], i[n] = o, r({ blocks: i });
|
|
991
991
|
},
|
|
992
|
-
setCurrentBlock: (
|
|
993
|
-
r({ currentBlock:
|
|
992
|
+
setCurrentBlock: (s) => {
|
|
993
|
+
r({ currentBlock: s });
|
|
994
994
|
},
|
|
995
|
-
setPositionBlock: (
|
|
996
|
-
r({ positionBlock:
|
|
995
|
+
setPositionBlock: (s) => {
|
|
996
|
+
r({ positionBlock: s });
|
|
997
997
|
},
|
|
998
|
-
addBlock: (
|
|
999
|
-
const i = t().blocks, o = i[
|
|
998
|
+
addBlock: (s, n) => {
|
|
999
|
+
const i = t().blocks, o = i[s] || {}, l = t().positionBlock, f = Oe(), u = Object.keys(o);
|
|
1000
1000
|
if (l === null || l >= u.length)
|
|
1001
1001
|
o[f] = {
|
|
1002
|
-
name:
|
|
1003
|
-
value: { ...
|
|
1002
|
+
name: n.name,
|
|
1003
|
+
value: { ...n.value }
|
|
1004
1004
|
}, r({
|
|
1005
1005
|
blocks: {
|
|
1006
1006
|
...i,
|
|
1007
|
-
[
|
|
1007
|
+
[s]: o
|
|
1008
1008
|
}
|
|
1009
1009
|
});
|
|
1010
1010
|
else {
|
|
1011
1011
|
const v = {
|
|
1012
|
-
name:
|
|
1013
|
-
value: { ...
|
|
1014
|
-
}, d = u.slice(0, l), y = u.slice(l),
|
|
1015
|
-
...d.reduce((
|
|
1012
|
+
name: n.name,
|
|
1013
|
+
value: { ...n.value }
|
|
1014
|
+
}, d = u.slice(0, l), y = u.slice(l), E = {
|
|
1015
|
+
...d.reduce((x, R) => (x[R] = o[R], x), {}),
|
|
1016
1016
|
[f]: v,
|
|
1017
|
-
...y.reduce((
|
|
1017
|
+
...y.reduce((x, R) => (x[R] = o[R], x), {})
|
|
1018
1018
|
};
|
|
1019
1019
|
r({
|
|
1020
1020
|
blocks: {
|
|
1021
1021
|
...i,
|
|
1022
|
-
[
|
|
1022
|
+
[s]: E
|
|
1023
1023
|
}
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
},
|
|
1027
|
-
editBlock: (
|
|
1028
|
-
const o = t().blocks, l = o[
|
|
1029
|
-
l[
|
|
1027
|
+
editBlock: (s, n, i) => {
|
|
1028
|
+
const o = t().blocks, l = o[s] || {};
|
|
1029
|
+
l[n] = {
|
|
1030
1030
|
name: i.name,
|
|
1031
1031
|
value: { ...i.value }
|
|
1032
1032
|
}, r({
|
|
1033
1033
|
blocks: {
|
|
1034
1034
|
...o,
|
|
1035
|
-
[
|
|
1035
|
+
[s]: l
|
|
1036
1036
|
}
|
|
1037
1037
|
});
|
|
1038
1038
|
},
|
|
1039
|
-
removeBlock: (
|
|
1040
|
-
const i = t().blocks, o = i[
|
|
1041
|
-
delete o[
|
|
1039
|
+
removeBlock: (s, n) => {
|
|
1040
|
+
const i = t().blocks, o = i[s] || {};
|
|
1041
|
+
delete o[n], r({
|
|
1042
1042
|
blocks: {
|
|
1043
1043
|
...i,
|
|
1044
|
-
[
|
|
1044
|
+
[s]: o
|
|
1045
1045
|
}
|
|
1046
1046
|
});
|
|
1047
1047
|
},
|
|
1048
|
-
moveBlock: (
|
|
1049
|
-
const l = { ...o.blocks[
|
|
1048
|
+
moveBlock: (s, n, i) => r((o) => {
|
|
1049
|
+
const l = { ...o.blocks[s] }, f = Object.keys(l), [u] = f.splice(n, 1);
|
|
1050
1050
|
f.splice(i, 0, u);
|
|
1051
1051
|
const v = f.reduce(
|
|
1052
1052
|
(d, y) => (d[y] = l[y], d),
|
|
@@ -1055,23 +1055,23 @@ const an = F(
|
|
|
1055
1055
|
return {
|
|
1056
1056
|
blocks: {
|
|
1057
1057
|
...o.blocks,
|
|
1058
|
-
[
|
|
1058
|
+
[s]: v
|
|
1059
1059
|
}
|
|
1060
1060
|
};
|
|
1061
1061
|
}),
|
|
1062
|
-
duplicateBlock: (
|
|
1063
|
-
const { blocks: i } = t(), o = i[
|
|
1062
|
+
duplicateBlock: (s, n) => {
|
|
1063
|
+
const { blocks: i } = t(), o = i[s], l = o[n], f = Oe(), u = {
|
|
1064
1064
|
name: l.name,
|
|
1065
1065
|
value: { ...l.value }
|
|
1066
|
-
}, v = Object.keys(o), d = v.indexOf(
|
|
1067
|
-
...y.reduce((
|
|
1066
|
+
}, v = Object.keys(o), d = v.indexOf(n), y = v.slice(0, d + 1), E = v.slice(d + 1), x = {
|
|
1067
|
+
...y.reduce((R, m) => (R[m] = o[m], R), {}),
|
|
1068
1068
|
[f]: u,
|
|
1069
|
-
...
|
|
1069
|
+
...E.reduce((R, m) => (R[m] = o[m], R), {})
|
|
1070
1070
|
};
|
|
1071
1071
|
r({
|
|
1072
1072
|
blocks: {
|
|
1073
1073
|
...i,
|
|
1074
|
-
[
|
|
1074
|
+
[s]: x
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
1077
1077
|
}
|
|
@@ -1089,35 +1089,35 @@ const an = F(
|
|
|
1089
1089
|
hoverBlockId: null,
|
|
1090
1090
|
isMouseOverModal: !1,
|
|
1091
1091
|
hideTimeout: null,
|
|
1092
|
-
showModal: (
|
|
1093
|
-
t().hideTimeout && clearTimeout(t().hideTimeout), r({ isModalVisible: !0, hoverBlockId:
|
|
1092
|
+
showModal: (s) => {
|
|
1093
|
+
t().hideTimeout && clearTimeout(t().hideTimeout), r({ isModalVisible: !0, hoverBlockId: s });
|
|
1094
1094
|
},
|
|
1095
1095
|
hideModal: () => {
|
|
1096
1096
|
r({ isModalVisible: !1, hoverBlockId: null });
|
|
1097
1097
|
},
|
|
1098
1098
|
startHideTimeout: () => {
|
|
1099
1099
|
if (!t().isMouseOverModal) {
|
|
1100
|
-
const
|
|
1100
|
+
const s = setTimeout(() => {
|
|
1101
1101
|
r({ isModalVisible: !1, hoverBlockId: null });
|
|
1102
1102
|
}, 500);
|
|
1103
|
-
r({ hideTimeout:
|
|
1103
|
+
r({ hideTimeout: s });
|
|
1104
1104
|
}
|
|
1105
1105
|
},
|
|
1106
1106
|
clearHideTimeout: () => {
|
|
1107
1107
|
t().hideTimeout && (clearTimeout(t().hideTimeout), r({ hideTimeout: null }));
|
|
1108
1108
|
},
|
|
1109
|
-
setMouseOverModal: (
|
|
1110
|
-
r({ isMouseOverModal:
|
|
1109
|
+
setMouseOverModal: (s) => {
|
|
1110
|
+
r({ isMouseOverModal: s });
|
|
1111
1111
|
},
|
|
1112
1112
|
isPreviewVisible: !1,
|
|
1113
1113
|
// Изначально превью скрыто
|
|
1114
|
-
showPreview: (
|
|
1115
|
-
r({ isPreviewVisible: !0, hoverBlockId:
|
|
1114
|
+
showPreview: (s) => {
|
|
1115
|
+
r({ isPreviewVisible: !0, hoverBlockId: s });
|
|
1116
1116
|
},
|
|
1117
1117
|
hidePreview: () => {
|
|
1118
1118
|
r({ isPreviewVisible: !1, hoverBlockId: null });
|
|
1119
1119
|
}
|
|
1120
|
-
})),
|
|
1120
|
+
})), cs = F((r) => ({
|
|
1121
1121
|
activeBlock: null,
|
|
1122
1122
|
setActiveBlock: (t) => r(() => ({ activeBlock: t })),
|
|
1123
1123
|
activeFont: null,
|
|
@@ -1225,56 +1225,56 @@ const an = F(
|
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
},
|
|
1228
|
-
updateColor: (t,
|
|
1228
|
+
updateColor: (t, s, n) => r((i) => {
|
|
1229
1229
|
const o = {
|
|
1230
1230
|
...i.themeSettings.colors,
|
|
1231
1231
|
[t]: {
|
|
1232
1232
|
...i.themeSettings.colors[t],
|
|
1233
|
-
[
|
|
1233
|
+
[s]: n
|
|
1234
1234
|
}
|
|
1235
1235
|
};
|
|
1236
1236
|
return { themeSettings: { ...i.themeSettings, colors: o } };
|
|
1237
1237
|
}),
|
|
1238
|
-
updateFont: (t,
|
|
1238
|
+
updateFont: (t, s, n, i) => r((o) => {
|
|
1239
1239
|
const l = {
|
|
1240
1240
|
...o.themeSettings.fonts,
|
|
1241
1241
|
[t]: {
|
|
1242
1242
|
...o.themeSettings.fonts[t],
|
|
1243
|
-
[
|
|
1244
|
-
...o.themeSettings.fonts[t][
|
|
1245
|
-
[
|
|
1243
|
+
[s]: {
|
|
1244
|
+
...o.themeSettings.fonts[t][s],
|
|
1245
|
+
[n]: i
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
1248
|
};
|
|
1249
1249
|
return { themeSettings: { ...o.themeSettings, fonts: l } };
|
|
1250
1250
|
}),
|
|
1251
|
-
updateBorder: (t,
|
|
1251
|
+
updateBorder: (t, s) => r((n) => {
|
|
1252
1252
|
const i = {
|
|
1253
|
-
...
|
|
1254
|
-
[t]:
|
|
1253
|
+
...n.themeSettings.borders,
|
|
1254
|
+
[t]: s
|
|
1255
1255
|
};
|
|
1256
|
-
return { themeSettings: { ...
|
|
1256
|
+
return { themeSettings: { ...n.themeSettings, borders: i } };
|
|
1257
1257
|
}),
|
|
1258
|
-
updateButton: (t,
|
|
1258
|
+
updateButton: (t, s) => r((n) => {
|
|
1259
1259
|
const i = {
|
|
1260
|
-
...
|
|
1261
|
-
[t]:
|
|
1260
|
+
...n.themeSettings.buttons,
|
|
1261
|
+
[t]: s
|
|
1262
1262
|
};
|
|
1263
|
-
return { themeSettings: { ...
|
|
1263
|
+
return { themeSettings: { ...n.themeSettings, buttons: i } };
|
|
1264
1264
|
}),
|
|
1265
|
-
updateInput: (t,
|
|
1265
|
+
updateInput: (t, s, n) => r((i) => ({
|
|
1266
1266
|
themeSettings: {
|
|
1267
1267
|
...i.themeSettings,
|
|
1268
1268
|
inputs: {
|
|
1269
1269
|
...i.themeSettings.inputs,
|
|
1270
1270
|
[t]: {
|
|
1271
1271
|
...i.themeSettings.inputs[t],
|
|
1272
|
-
[
|
|
1272
|
+
[n]: s
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
1276
|
}))
|
|
1277
|
-
})),
|
|
1277
|
+
})), ls = F(
|
|
1278
1278
|
pe(
|
|
1279
1279
|
(r) => ({
|
|
1280
1280
|
fonts: [],
|
|
@@ -1284,7 +1284,7 @@ const an = F(
|
|
|
1284
1284
|
name: "fonts-storage"
|
|
1285
1285
|
}
|
|
1286
1286
|
)
|
|
1287
|
-
),
|
|
1287
|
+
), us = F((r) => ({
|
|
1288
1288
|
settings: null,
|
|
1289
1289
|
setSettings: (t) => r(() => ({ settings: t }))
|
|
1290
1290
|
})), Jt = F()((r) => ({
|
|
@@ -1315,7 +1315,7 @@ const an = F(
|
|
|
1315
1315
|
setColor: (t) => r(() => ({ color: t })),
|
|
1316
1316
|
setUpdate: (t) => r(() => ({ update: t })),
|
|
1317
1317
|
setColorChange: (t) => r(() => ({ colorChange: t }))
|
|
1318
|
-
})),
|
|
1318
|
+
})), ds = F(
|
|
1319
1319
|
pe(
|
|
1320
1320
|
(r, t) => ({
|
|
1321
1321
|
pages: qt,
|
|
@@ -1332,25 +1332,25 @@ const an = F(
|
|
|
1332
1332
|
isOpenSelectModal: !1,
|
|
1333
1333
|
isEdit: !1,
|
|
1334
1334
|
editedPage: null,
|
|
1335
|
-
setEditedPage: (
|
|
1336
|
-
setCurrentPage: (
|
|
1337
|
-
setPageContext: (
|
|
1338
|
-
setIsOpenModal: (
|
|
1339
|
-
setIsOpenSelectModal: (
|
|
1340
|
-
setIsEdit: (
|
|
1341
|
-
createPage: (
|
|
1342
|
-
const
|
|
1343
|
-
|
|
1335
|
+
setEditedPage: (s) => r(() => ({ editedPage: s })),
|
|
1336
|
+
setCurrentPage: (s) => r(() => ({ currentPage: s })),
|
|
1337
|
+
setPageContext: (s) => r(() => ({ pageContext: s })),
|
|
1338
|
+
setIsOpenModal: (s) => r(() => ({ isOpenModal: s })),
|
|
1339
|
+
setIsOpenSelectModal: (s) => r(() => ({ isOpenSelectModal: s })),
|
|
1340
|
+
setIsEdit: (s) => r(() => ({ isEdit: s })),
|
|
1341
|
+
createPage: (s) => {
|
|
1342
|
+
const n = t().pages, i = Oe();
|
|
1343
|
+
n[i] = s, r({ pages: n });
|
|
1344
1344
|
},
|
|
1345
|
-
updatePage: (
|
|
1345
|
+
updatePage: (s, n) => {
|
|
1346
1346
|
const i = t().pages;
|
|
1347
|
-
i[
|
|
1348
|
-
...
|
|
1347
|
+
i[s] = {
|
|
1348
|
+
...n
|
|
1349
1349
|
}, r({ pages: i });
|
|
1350
1350
|
},
|
|
1351
|
-
deletePage: (
|
|
1352
|
-
const
|
|
1353
|
-
delete s
|
|
1351
|
+
deletePage: (s) => {
|
|
1352
|
+
const n = t().pages;
|
|
1353
|
+
delete n[s], r({ pages: n });
|
|
1354
1354
|
}
|
|
1355
1355
|
}),
|
|
1356
1356
|
{
|
|
@@ -1361,19 +1361,19 @@ const an = F(
|
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
)
|
|
1364
|
-
), Kt = (r, t,
|
|
1365
|
-
const
|
|
1366
|
-
return
|
|
1364
|
+
), Kt = (r, t, s) => {
|
|
1365
|
+
const n = r[t];
|
|
1366
|
+
return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((i, o) => {
|
|
1367
1367
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
1368
1368
|
o.bind(
|
|
1369
1369
|
null,
|
|
1370
1370
|
new Error(
|
|
1371
|
-
"Unknown variable dynamic import: " + t + (t.split("/").length !==
|
|
1371
|
+
"Unknown variable dynamic import: " + t + (t.split("/").length !== s ? ". Note that variables only represent file names one level deep." : "")
|
|
1372
1372
|
)
|
|
1373
1373
|
)
|
|
1374
1374
|
);
|
|
1375
1375
|
});
|
|
1376
|
-
}, Gt = "_icon_21b8w_1", Xt = "_hoverable_21b8w_5",
|
|
1376
|
+
}, Gt = "_icon_21b8w_1", Xt = "_hoverable_21b8w_5", nt = {
|
|
1377
1377
|
icon: Gt,
|
|
1378
1378
|
hoverable: Xt
|
|
1379
1379
|
};
|
|
@@ -1386,20 +1386,20 @@ var ot = { exports: {} };
|
|
|
1386
1386
|
(function(r) {
|
|
1387
1387
|
(function() {
|
|
1388
1388
|
var t = {}.hasOwnProperty;
|
|
1389
|
-
function
|
|
1389
|
+
function s() {
|
|
1390
1390
|
for (var o = "", l = 0; l < arguments.length; l++) {
|
|
1391
1391
|
var f = arguments[l];
|
|
1392
|
-
f && (o = i(o,
|
|
1392
|
+
f && (o = i(o, n(f)));
|
|
1393
1393
|
}
|
|
1394
1394
|
return o;
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function n(o) {
|
|
1397
1397
|
if (typeof o == "string" || typeof o == "number")
|
|
1398
1398
|
return o;
|
|
1399
1399
|
if (typeof o != "object")
|
|
1400
1400
|
return "";
|
|
1401
1401
|
if (Array.isArray(o))
|
|
1402
|
-
return
|
|
1402
|
+
return s.apply(null, o);
|
|
1403
1403
|
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
1404
1404
|
return o.toString();
|
|
1405
1405
|
var l = "";
|
|
@@ -1410,15 +1410,15 @@ var ot = { exports: {} };
|
|
|
1410
1410
|
function i(o, l) {
|
|
1411
1411
|
return l ? o ? o + " " + l : o + l : o;
|
|
1412
1412
|
}
|
|
1413
|
-
r.exports ? (
|
|
1413
|
+
r.exports ? (s.default = s, r.exports = s) : window.classNames = s;
|
|
1414
1414
|
})();
|
|
1415
1415
|
})(ot);
|
|
1416
1416
|
var Zt = ot.exports;
|
|
1417
1417
|
const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
1418
1418
|
const {
|
|
1419
1419
|
name: t,
|
|
1420
|
-
fill:
|
|
1421
|
-
hoverable:
|
|
1420
|
+
fill: s = "currentColor",
|
|
1421
|
+
hoverable: n = !1,
|
|
1422
1422
|
onClick: i,
|
|
1423
1423
|
className: o,
|
|
1424
1424
|
width: l,
|
|
@@ -1427,21 +1427,21 @@ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
|
1427
1427
|
return T.useEffect(() => {
|
|
1428
1428
|
(async () => {
|
|
1429
1429
|
try {
|
|
1430
|
-
const { default: y } = await Kt(/* @__PURE__ */ Object.assign({ "../../../assets/icons/align-center.svg": () => import("./align-center-BO84DuTM.js"), "../../../assets/icons/align-left.svg": () => import("./align-left-M0ZgFryb.js"), "../../../assets/icons/align-right.svg": () => import("./align-right-Cgz7UcnI.js"), "../../../assets/icons/arrow-down.svg": () => import("./arrow-down-Be8fhLDw.js"), "../../../assets/icons/arrow-left.svg": () => import("./arrow-left-74wdITOH.js"), "../../../assets/icons/arrow-preview-down.svg": () => import("./arrow-preview-down-DM61uZ0R.js"), "../../../assets/icons/arrow-preview-up.svg": () => import("./arrow-preview-up-tl-dLBGP.js"), "../../../assets/icons/arrow-right.svg": () => import("./arrow-right-Cr3U4dHJ.js"), "../../../assets/icons/arrow-square.svg": () => import("./arrow-square-CYM9usfL.js"), "../../../assets/icons/arrow-up-right.svg": () => import("./arrow-up-right-DjQHCzy_.js"), "../../../assets/icons/border-dashed.svg": () => import("./border-dashed-B0Vn5Ams.js"), "../../../assets/icons/border-solid.svg": () => import("./border-solid-BjJ2NMUc.js"), "../../../assets/icons/cards.svg": () => import("./cards-D_Fs7yzJ.js"), "../../../assets/icons/chat.svg": () => import("./chat-BAur-Hs7.js"), "../../../assets/icons/check.svg": () => import("./check-Dw7aX1Gq.js"), "../../../assets/icons/copy.svg": () => import("./copy-B-BFBPCj.js"), "../../../assets/icons/corners-out.svg": () => import("./corners-out-DoBj8RP9.js"), "../../../assets/icons/desktop.svg": () => import("./desktop-BtX370Ww.js"), "../../../assets/icons/faqs.svg": () => import("./faqs-23Fq6osg.js"), "../../../assets/icons/file.svg": () => import("./file-DyR17xsF.js"), "../../../assets/icons/font.svg": () => import("./font-7p9R-iSH.js"), "../../../assets/icons/globe.svg": () => import("./globe--VWAXBWp.js"), "../../../assets/icons/heading.svg": () => import("./heading-CBG3k-8U.js"), "../../../assets/icons/house.svg": () => import("./house-WXuqDQYP.js"), "../../../assets/icons/info-circle.svg": () => import("./info-circle-eJbOZlg5.js"), "../../../assets/icons/layers.svg": () => import("./layers-Cjkf4Ywz.js"), "../../../assets/icons/lock.svg": () => import("./lock-CjdyZZ0l.js"), "../../../assets/icons/mobile.svg": () => import("./mobile-CmqAt_Mz.js"), "../../../assets/icons/paint.svg": () => import("./paint-BZpZzEUU.js"), "../../../assets/icons/palette.svg": () => import("./palette-C8JiqbcX.js"), "../../../assets/icons/paragraph.svg": () => import("./paragraph-LWVXCR4R.js"), "../../../assets/icons/plus.svg": () => import("./plus-BJbR8W_G.js"), "../../../assets/icons/radius.svg": () => import("./radius-CxeWfnVG.js"), "../../../assets/icons/redo.svg": () => import("./redo-CGWptNGF.js"), "../../../assets/icons/search.svg": () => import("./search-DyJEj9C0.js"), "../../../assets/icons/settings.svg": () => import("./settings-B3DU_KZp.js"), "../../../assets/icons/sign-out.svg": () => import("./sign-out-C7IDLqPn.js"), "../../../assets/icons/squares.svg": () => import("./squares-D_Q5KrSa.js"), "../../../assets/icons/star.svg": () => import("./star-DmVJ8LCU.js"), "../../../assets/icons/tablet.svg": () => import("./tablet-DjgFAzpj.js"), "../../../assets/icons/textbox.svg": () => import("./textbox-VoZOnoQo.js"), "../../../assets/icons/thickness.svg": () => import("./thickness-8ZhgPpus.js"), "../../../assets/icons/ticket.svg": () => import("./ticket-Cp2gw7LG.js"), "../../../assets/icons/trash.svg": () => import("./trash-C46P9ylt.js"), "../../../assets/icons/undo.svg": () => import("./undo-DQ4HRzFE.js"), "../../../assets/icons/user-circle-gear.svg": () => import("./user-circle-gear-GplwFHx0.js"), "../../../assets/icons/x.svg": () => import("./x-Dwea3dAc.js"), "../../../assets/icons/zoom-minus.svg": () => import("./zoom-minus-DlvFV6xy.js") }), `../../../assets/icons/${t}.svg`, 6);
|
|
1430
|
+
const { default: y } = await Kt(/* @__PURE__ */ Object.assign({ "../../../assets/icons/align-bottom.svg": () => import("./align-bottom-B6qXcF_P.js"), "../../../assets/icons/align-center.svg": () => import("./align-center-BO84DuTM.js"), "../../../assets/icons/align-left.svg": () => import("./align-left-M0ZgFryb.js"), "../../../assets/icons/align-right.svg": () => import("./align-right-Cgz7UcnI.js"), "../../../assets/icons/align-top.svg": () => import("./align-top-CMearyFH.js"), "../../../assets/icons/arrow-down.svg": () => import("./arrow-down-Be8fhLDw.js"), "../../../assets/icons/arrow-left.svg": () => import("./arrow-left-74wdITOH.js"), "../../../assets/icons/arrow-preview-down.svg": () => import("./arrow-preview-down-DM61uZ0R.js"), "../../../assets/icons/arrow-preview-up.svg": () => import("./arrow-preview-up-tl-dLBGP.js"), "../../../assets/icons/arrow-right.svg": () => import("./arrow-right-Cr3U4dHJ.js"), "../../../assets/icons/arrow-square.svg": () => import("./arrow-square-CYM9usfL.js"), "../../../assets/icons/arrow-up-right.svg": () => import("./arrow-up-right-DjQHCzy_.js"), "../../../assets/icons/border-dashed.svg": () => import("./border-dashed-B0Vn5Ams.js"), "../../../assets/icons/border-solid.svg": () => import("./border-solid-BjJ2NMUc.js"), "../../../assets/icons/cards.svg": () => import("./cards-D_Fs7yzJ.js"), "../../../assets/icons/chat.svg": () => import("./chat-BAur-Hs7.js"), "../../../assets/icons/check.svg": () => import("./check-Dw7aX1Gq.js"), "../../../assets/icons/copy.svg": () => import("./copy-B-BFBPCj.js"), "../../../assets/icons/corners-out.svg": () => import("./corners-out-DoBj8RP9.js"), "../../../assets/icons/desktop.svg": () => import("./desktop-BtX370Ww.js"), "../../../assets/icons/faqs.svg": () => import("./faqs-23Fq6osg.js"), "../../../assets/icons/file.svg": () => import("./file-DyR17xsF.js"), "../../../assets/icons/font.svg": () => import("./font-7p9R-iSH.js"), "../../../assets/icons/globe.svg": () => import("./globe--VWAXBWp.js"), "../../../assets/icons/heading.svg": () => import("./heading-CBG3k-8U.js"), "../../../assets/icons/house.svg": () => import("./house-WXuqDQYP.js"), "../../../assets/icons/info-circle.svg": () => import("./info-circle-eJbOZlg5.js"), "../../../assets/icons/layers.svg": () => import("./layers-Cjkf4Ywz.js"), "../../../assets/icons/lock.svg": () => import("./lock-CjdyZZ0l.js"), "../../../assets/icons/mobile.svg": () => import("./mobile-CmqAt_Mz.js"), "../../../assets/icons/paint.svg": () => import("./paint-BZpZzEUU.js"), "../../../assets/icons/palette.svg": () => import("./palette-C8JiqbcX.js"), "../../../assets/icons/paragraph.svg": () => import("./paragraph-LWVXCR4R.js"), "../../../assets/icons/plus.svg": () => import("./plus-BJbR8W_G.js"), "../../../assets/icons/radius.svg": () => import("./radius-CxeWfnVG.js"), "../../../assets/icons/redo.svg": () => import("./redo-CGWptNGF.js"), "../../../assets/icons/search.svg": () => import("./search-DyJEj9C0.js"), "../../../assets/icons/settings.svg": () => import("./settings-B3DU_KZp.js"), "../../../assets/icons/sign-out.svg": () => import("./sign-out-C7IDLqPn.js"), "../../../assets/icons/squares.svg": () => import("./squares-D_Q5KrSa.js"), "../../../assets/icons/star.svg": () => import("./star-DmVJ8LCU.js"), "../../../assets/icons/tablet.svg": () => import("./tablet-DjgFAzpj.js"), "../../../assets/icons/text-align-left.svg": () => import("./text-align-left-BBdqQ7N2.js"), "../../../assets/icons/text-bold.svg": () => import("./text-bold-CkfsPLSD.js"), "../../../assets/icons/text-code.svg": () => import("./text-code-Omig8KTZ.js"), "../../../assets/icons/text-italic.svg": () => import("./text-italic-B6DlWITY.js"), "../../../assets/icons/text-strike-through.svg": () => import("./text-strike-through-BPd9vRCE.js"), "../../../assets/icons/text-underline.svg": () => import("./text-underline-BMJdubuO.js"), "../../../assets/icons/textbox.svg": () => import("./textbox-VoZOnoQo.js"), "../../../assets/icons/thickness.svg": () => import("./thickness-8ZhgPpus.js"), "../../../assets/icons/ticket.svg": () => import("./ticket-Cp2gw7LG.js"), "../../../assets/icons/trash.svg": () => import("./trash-C46P9ylt.js"), "../../../assets/icons/undo.svg": () => import("./undo-DQ4HRzFE.js"), "../../../assets/icons/user-circle-gear.svg": () => import("./user-circle-gear-GplwFHx0.js"), "../../../assets/icons/x.svg": () => import("./x-Dwea3dAc.js"), "../../../assets/icons/zoom-minus.svg": () => import("./zoom-minus-DlvFV6xy.js") }), `../../../assets/icons/${t}.svg`, 6);
|
|
1431
1431
|
v(() => y);
|
|
1432
1432
|
} catch {
|
|
1433
1433
|
console.error(`Icon "${t}" not found in assets.`), v(null);
|
|
1434
1434
|
}
|
|
1435
1435
|
})();
|
|
1436
|
-
}, [t]), u ? /* @__PURE__ */
|
|
1436
|
+
}, [t]), u ? /* @__PURE__ */ g.jsx(
|
|
1437
1437
|
u,
|
|
1438
1438
|
{
|
|
1439
|
-
fill:
|
|
1439
|
+
fill: s,
|
|
1440
1440
|
style: {
|
|
1441
|
-
"--icon-fill":
|
|
1441
|
+
"--icon-fill": s
|
|
1442
1442
|
},
|
|
1443
|
-
className: V(
|
|
1444
|
-
[
|
|
1443
|
+
className: V(nt.icon, o, {
|
|
1444
|
+
[nt.hoverable]: n
|
|
1445
1445
|
}),
|
|
1446
1446
|
onClick: i,
|
|
1447
1447
|
width: l || "24",
|
|
@@ -1450,90 +1450,93 @@ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
|
1450
1450
|
) : null;
|
|
1451
1451
|
}, Qt = "_button_rcjso_1", er = {
|
|
1452
1452
|
button: Qt
|
|
1453
|
-
},
|
|
1454
|
-
const { children: t, onClick:
|
|
1455
|
-
return /* @__PURE__ */
|
|
1453
|
+
}, fs = (r) => {
|
|
1454
|
+
const { children: t, onClick: s, style: n, className: i, disabled: o = !1, size: l = "m" } = r;
|
|
1455
|
+
return /* @__PURE__ */ g.jsx(
|
|
1456
1456
|
"button",
|
|
1457
1457
|
{
|
|
1458
1458
|
className: V(er.button, i),
|
|
1459
|
-
onClick:
|
|
1459
|
+
onClick: s,
|
|
1460
1460
|
style: {
|
|
1461
|
-
...
|
|
1461
|
+
...n,
|
|
1462
1462
|
fontSize: l === "m" ? 14 : 16
|
|
1463
1463
|
},
|
|
1464
1464
|
disabled: o,
|
|
1465
1465
|
children: t
|
|
1466
1466
|
}
|
|
1467
1467
|
);
|
|
1468
|
-
}, tr = "
|
|
1468
|
+
}, tr = "_wrapper_1y283_1", rr = "_label_1y283_9", sr = "_input_1y283_17", nr = "_required_1y283_36", or = "_paddingless_1y283_40", re = {
|
|
1469
1469
|
wrapper: tr,
|
|
1470
1470
|
label: rr,
|
|
1471
|
-
input:
|
|
1472
|
-
required:
|
|
1473
|
-
|
|
1471
|
+
input: sr,
|
|
1472
|
+
required: nr,
|
|
1473
|
+
paddingless: or
|
|
1474
|
+
}, ps = (r) => {
|
|
1474
1475
|
const {
|
|
1475
1476
|
onChange: t,
|
|
1476
|
-
label:
|
|
1477
|
-
value:
|
|
1477
|
+
label: s,
|
|
1478
|
+
value: n,
|
|
1478
1479
|
type: i,
|
|
1479
1480
|
min: o,
|
|
1480
1481
|
placeholder: l,
|
|
1481
1482
|
disabled: f = !1,
|
|
1482
1483
|
required: u = !1,
|
|
1483
|
-
regex: v
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1484
|
+
regex: v,
|
|
1485
|
+
paddingless: d = !1
|
|
1486
|
+
} = r, [y, E] = T.useState(!1);
|
|
1487
|
+
function x(m) {
|
|
1488
|
+
return Number(m) < 0 ? "0" : m;
|
|
1487
1489
|
}
|
|
1488
|
-
function
|
|
1489
|
-
return !u || !v ? !0 : new RegExp(v).test(
|
|
1490
|
+
function R(m) {
|
|
1491
|
+
return !u || !v ? !0 : new RegExp(v).test(m);
|
|
1490
1492
|
}
|
|
1491
|
-
return /* @__PURE__ */
|
|
1492
|
-
|
|
1493
|
+
return /* @__PURE__ */ g.jsxs("div", { className: re.wrapper, children: [
|
|
1494
|
+
s && /* @__PURE__ */ g.jsx(
|
|
1493
1495
|
"label",
|
|
1494
1496
|
{
|
|
1495
|
-
className:
|
|
1496
|
-
htmlFor:
|
|
1497
|
-
children:
|
|
1497
|
+
className: re.label,
|
|
1498
|
+
htmlFor: s,
|
|
1499
|
+
children: s
|
|
1498
1500
|
}
|
|
1499
1501
|
),
|
|
1500
|
-
/* @__PURE__ */
|
|
1502
|
+
/* @__PURE__ */ g.jsx(
|
|
1501
1503
|
"input",
|
|
1502
1504
|
{
|
|
1503
|
-
id:
|
|
1505
|
+
id: s,
|
|
1504
1506
|
type: i || "text",
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
if (i === "text") t(S.target.value);
|
|
1507
|
+
onChange: (m) => {
|
|
1508
|
+
if (i === "text") t(m.target.value);
|
|
1508
1509
|
else {
|
|
1509
|
-
const
|
|
1510
|
-
t(
|
|
1510
|
+
const P = x(m.target.value);
|
|
1511
|
+
t(P);
|
|
1511
1512
|
}
|
|
1512
1513
|
},
|
|
1514
|
+
value: n,
|
|
1513
1515
|
autoComplete: "off",
|
|
1514
1516
|
placeholder: l,
|
|
1515
|
-
className: V(
|
|
1516
|
-
[
|
|
1517
|
+
className: V(re.input, {
|
|
1518
|
+
[re.required]: y && u && !R(n),
|
|
1519
|
+
[re.paddingless]: d
|
|
1517
1520
|
}),
|
|
1518
1521
|
min: i === "number" ? o : void 0,
|
|
1519
1522
|
disabled: f,
|
|
1520
|
-
onFocus: () =>
|
|
1523
|
+
onFocus: () => E(!0)
|
|
1521
1524
|
}
|
|
1522
1525
|
)
|
|
1523
1526
|
] });
|
|
1524
|
-
},
|
|
1525
|
-
wrapper:
|
|
1526
|
-
label:
|
|
1527
|
-
select:
|
|
1528
|
-
icon:
|
|
1529
|
-
rotate:
|
|
1530
|
-
content:
|
|
1531
|
-
options:
|
|
1532
|
-
option:
|
|
1533
|
-
},
|
|
1534
|
-
const { leftAddon: t, onChange:
|
|
1527
|
+
}, ar = "_wrapper_dmzhr_1", ir = "_label_dmzhr_9", cr = "_select_dmzhr_17", lr = "_icon_dmzhr_30", ur = "_rotate_dmzhr_34", dr = "_content_dmzhr_38", fr = "_options_dmzhr_42", pr = "_option_dmzhr_42", L = {
|
|
1528
|
+
wrapper: ar,
|
|
1529
|
+
label: ir,
|
|
1530
|
+
select: cr,
|
|
1531
|
+
icon: lr,
|
|
1532
|
+
rotate: ur,
|
|
1533
|
+
content: dr,
|
|
1534
|
+
options: fr,
|
|
1535
|
+
option: pr
|
|
1536
|
+
}, vs = (r) => {
|
|
1537
|
+
const { leftAddon: t, onChange: s, label: n, value: i, options: o, style: l } = r, [f, u] = T.useState(!1);
|
|
1535
1538
|
function v(d) {
|
|
1536
|
-
|
|
1539
|
+
s(d), u(!1);
|
|
1537
1540
|
}
|
|
1538
1541
|
return T.useEffect(() => {
|
|
1539
1542
|
const d = () => {
|
|
@@ -1542,35 +1545,35 @@ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
|
1542
1545
|
return d(), document.body.addEventListener("click", d), () => {
|
|
1543
1546
|
document.body.removeEventListener("click", d);
|
|
1544
1547
|
};
|
|
1545
|
-
}, []), /* @__PURE__ */
|
|
1548
|
+
}, []), /* @__PURE__ */ g.jsxs(
|
|
1546
1549
|
"div",
|
|
1547
1550
|
{
|
|
1548
1551
|
className: L.wrapper,
|
|
1549
1552
|
style: { ...l },
|
|
1550
1553
|
children: [
|
|
1551
|
-
|
|
1554
|
+
n && /* @__PURE__ */ g.jsx(
|
|
1552
1555
|
"label",
|
|
1553
1556
|
{
|
|
1554
1557
|
className: L.label,
|
|
1555
|
-
htmlFor:
|
|
1556
|
-
children:
|
|
1558
|
+
htmlFor: n,
|
|
1559
|
+
children: n
|
|
1557
1560
|
}
|
|
1558
1561
|
),
|
|
1559
|
-
/* @__PURE__ */
|
|
1562
|
+
/* @__PURE__ */ g.jsxs(
|
|
1560
1563
|
"div",
|
|
1561
1564
|
{
|
|
1562
1565
|
className: L.content,
|
|
1563
1566
|
onClick: (d) => d.stopPropagation(),
|
|
1564
1567
|
children: [
|
|
1565
|
-
/* @__PURE__ */
|
|
1568
|
+
/* @__PURE__ */ g.jsxs(
|
|
1566
1569
|
"div",
|
|
1567
1570
|
{
|
|
1568
1571
|
className: L.select,
|
|
1569
1572
|
onClick: () => u((d) => !d),
|
|
1570
1573
|
children: [
|
|
1571
1574
|
t,
|
|
1572
|
-
/* @__PURE__ */
|
|
1573
|
-
/* @__PURE__ */
|
|
1575
|
+
/* @__PURE__ */ g.jsx("span", { children: i }),
|
|
1576
|
+
/* @__PURE__ */ g.jsx(
|
|
1574
1577
|
fe,
|
|
1575
1578
|
{
|
|
1576
1579
|
name: "arrow-down",
|
|
@@ -1582,12 +1585,12 @@ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
|
1582
1585
|
]
|
|
1583
1586
|
}
|
|
1584
1587
|
),
|
|
1585
|
-
f && /* @__PURE__ */
|
|
1588
|
+
f && /* @__PURE__ */ g.jsx(
|
|
1586
1589
|
"div",
|
|
1587
1590
|
{
|
|
1588
1591
|
className: L.options,
|
|
1589
1592
|
onClick: () => u(!1),
|
|
1590
|
-
children: o.filter((d) => d !== i).map((d) => /* @__PURE__ */
|
|
1593
|
+
children: o.filter((d) => d !== i).map((d) => /* @__PURE__ */ g.jsx(
|
|
1591
1594
|
"div",
|
|
1592
1595
|
{
|
|
1593
1596
|
className: L.option,
|
|
@@ -1604,143 +1607,143 @@ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
|
1604
1607
|
]
|
|
1605
1608
|
}
|
|
1606
1609
|
);
|
|
1607
|
-
},
|
|
1610
|
+
}, vr = "_active_1gvxu_12", mr = "_toggle_1gvxu_15", Re = {
|
|
1608
1611
|
switch: "_switch_1gvxu_1",
|
|
1609
|
-
active:
|
|
1610
|
-
toggle:
|
|
1611
|
-
},
|
|
1612
|
-
const [
|
|
1613
|
-
i((l) => !l), r == null || r(!
|
|
1612
|
+
active: vr,
|
|
1613
|
+
toggle: mr
|
|
1614
|
+
}, ms = ({ onChange: r, style: t, current: s }) => {
|
|
1615
|
+
const [n, i] = T.useState(s), o = () => {
|
|
1616
|
+
i((l) => !l), r == null || r(!n);
|
|
1614
1617
|
};
|
|
1615
|
-
return /* @__PURE__ */
|
|
1618
|
+
return /* @__PURE__ */ g.jsx(
|
|
1616
1619
|
"div",
|
|
1617
1620
|
{
|
|
1618
1621
|
className: V(Re.switch, {
|
|
1619
|
-
[Re.active]:
|
|
1622
|
+
[Re.active]: n
|
|
1620
1623
|
}),
|
|
1621
1624
|
onClick: o,
|
|
1622
1625
|
style: t,
|
|
1623
|
-
children: /* @__PURE__ */
|
|
1626
|
+
children: /* @__PURE__ */ g.jsx("div", { className: Re.toggle })
|
|
1624
1627
|
}
|
|
1625
1628
|
);
|
|
1626
|
-
},
|
|
1627
|
-
wrapper:
|
|
1628
|
-
},
|
|
1629
|
-
const { hoverBlockId: t, startHideTimeout:
|
|
1630
|
-
return t ? /* @__PURE__ */
|
|
1629
|
+
}, gr = "_wrapper_1inu5_1", hr = {
|
|
1630
|
+
wrapper: gr
|
|
1631
|
+
}, gs = ({ children: r }) => {
|
|
1632
|
+
const { hoverBlockId: t, startHideTimeout: s, clearHideTimeout: n, setMouseOverModal: i } = Ht();
|
|
1633
|
+
return t ? /* @__PURE__ */ g.jsx(
|
|
1631
1634
|
"div",
|
|
1632
1635
|
{
|
|
1633
|
-
className:
|
|
1636
|
+
className: hr.wrapper,
|
|
1634
1637
|
onMouseEnter: () => {
|
|
1635
|
-
|
|
1638
|
+
n(), i(!0);
|
|
1636
1639
|
},
|
|
1637
1640
|
onMouseLeave: () => {
|
|
1638
|
-
i(!1),
|
|
1641
|
+
i(!1), s();
|
|
1639
1642
|
},
|
|
1640
1643
|
children: r
|
|
1641
1644
|
}
|
|
1642
1645
|
) : null;
|
|
1643
|
-
},
|
|
1644
|
-
blocks:
|
|
1645
|
-
block:
|
|
1646
|
-
active:
|
|
1647
|
-
},
|
|
1648
|
-
const { items: t, selectedItem:
|
|
1649
|
-
return /* @__PURE__ */
|
|
1646
|
+
}, br = "_blocks_1op3c_1", _r = "_block_1op3c_1", yr = "_active_1op3c_18", Ce = {
|
|
1647
|
+
blocks: br,
|
|
1648
|
+
block: _r,
|
|
1649
|
+
active: yr
|
|
1650
|
+
}, hs = (r) => {
|
|
1651
|
+
const { items: t, selectedItem: s, onSelect: n, getIconName: i } = r;
|
|
1652
|
+
return /* @__PURE__ */ g.jsx("div", { className: Ce.blocks, children: t.map((o) => /* @__PURE__ */ g.jsx(
|
|
1650
1653
|
"div",
|
|
1651
1654
|
{
|
|
1652
|
-
className: V(Ce.block, { [Ce.active]:
|
|
1653
|
-
onClick: () =>
|
|
1654
|
-
children: /* @__PURE__ */
|
|
1655
|
+
className: V(Ce.block, { [Ce.active]: s === o }),
|
|
1656
|
+
onClick: () => n(o),
|
|
1657
|
+
children: /* @__PURE__ */ g.jsx(
|
|
1655
1658
|
fe,
|
|
1656
1659
|
{
|
|
1657
1660
|
name: i(o),
|
|
1658
|
-
fill:
|
|
1661
|
+
fill: s === o ? "#252525" : "#757575"
|
|
1659
1662
|
}
|
|
1660
1663
|
)
|
|
1661
1664
|
},
|
|
1662
1665
|
String(o)
|
|
1663
1666
|
)) });
|
|
1664
|
-
},
|
|
1665
|
-
applyButton:
|
|
1666
|
-
cancelButton:
|
|
1667
|
-
content:
|
|
1668
|
-
label:
|
|
1669
|
-
colorValue:
|
|
1670
|
-
modal:
|
|
1671
|
-
colorMap:
|
|
1672
|
-
indicator:
|
|
1673
|
-
hueSlider:
|
|
1674
|
-
slider:
|
|
1675
|
-
buttons:
|
|
1676
|
-
name:
|
|
1677
|
-
secondary:
|
|
1678
|
-
input:
|
|
1679
|
-
},
|
|
1680
|
-
const { initialColor: t, onChange:
|
|
1667
|
+
}, wr = "_applyButton_1cqw4_2", kr = "_cancelButton_1cqw4_7", Sr = "_content_1cqw4_12", xr = "_label_1cqw4_18", Er = "_colorValue_1cqw4_30", Rr = "_modal_1cqw4_37", Cr = "_colorMap_1cqw4_56", jr = "_indicator_1cqw4_64", Pr = "_hueSlider_1cqw4_73", Or = "_slider_1cqw4_102", Tr = "_buttons_1cqw4_107", Ir = "_name_1cqw4_113", Br = "_secondary_1cqw4_118", Ar = "_input_1cqw4_126", J = {
|
|
1668
|
+
applyButton: wr,
|
|
1669
|
+
cancelButton: kr,
|
|
1670
|
+
content: Sr,
|
|
1671
|
+
label: xr,
|
|
1672
|
+
colorValue: Er,
|
|
1673
|
+
modal: Rr,
|
|
1674
|
+
colorMap: Cr,
|
|
1675
|
+
indicator: jr,
|
|
1676
|
+
hueSlider: Pr,
|
|
1677
|
+
slider: Or,
|
|
1678
|
+
buttons: Tr,
|
|
1679
|
+
name: Ir,
|
|
1680
|
+
secondary: Br,
|
|
1681
|
+
input: Ar
|
|
1682
|
+
}, bs = (r) => {
|
|
1683
|
+
const { initialColor: t, onChange: s, title: n, labelStyle: i = "primary" } = r, [o, l] = T.useState(t), {
|
|
1681
1684
|
setActiveLabel: f,
|
|
1682
1685
|
setModalPosition: u,
|
|
1683
1686
|
setInitialColor: v,
|
|
1684
1687
|
setShowModal: d,
|
|
1685
1688
|
setUpdate: y,
|
|
1686
|
-
setColor:
|
|
1687
|
-
setColorChange:
|
|
1688
|
-
colorChange:
|
|
1689
|
+
setColor: E,
|
|
1690
|
+
setColorChange: x,
|
|
1691
|
+
colorChange: R
|
|
1689
1692
|
} = Jt();
|
|
1690
1693
|
T.useEffect(() => {
|
|
1691
|
-
const
|
|
1694
|
+
const P = () => {
|
|
1692
1695
|
d(!1), f(null), v(t), y(() => {
|
|
1693
|
-
}),
|
|
1696
|
+
}), E(t), x(() => {
|
|
1694
1697
|
});
|
|
1695
1698
|
};
|
|
1696
|
-
return document.body.addEventListener("click",
|
|
1697
|
-
document.body.removeEventListener("click",
|
|
1699
|
+
return document.body.addEventListener("click", P), () => {
|
|
1700
|
+
document.body.removeEventListener("click", P);
|
|
1698
1701
|
};
|
|
1699
1702
|
}, []);
|
|
1700
|
-
const
|
|
1701
|
-
|
|
1702
|
-
const w =
|
|
1703
|
+
const m = (P) => {
|
|
1704
|
+
P.stopPropagation(), d(!0), x(l), y(s), v(t), E(o);
|
|
1705
|
+
const w = P.currentTarget.getBoundingClientRect(), h = 400, I = 288, q = 10, K = 20, G = window.innerHeight - w.bottom, ve = w.top, ne = window.innerWidth - w.right, oe = w.left;
|
|
1703
1706
|
let $, D;
|
|
1704
|
-
$ = w.bottom + q + window.scrollY, D = w.left, (G <
|
|
1707
|
+
$ = w.bottom + q + window.scrollY, D = w.left, (G < h || G < K) && (ve >= h ? $ = w.top - h - q + window.scrollY : $ = window.scrollY + (window.innerHeight - h) / 2), ne < I && (oe >= I ? D = w.right - I : D = (window.innerWidth - I) / 2), D < w.right && D + I > w.left && $ < w.bottom && $ + h > w.top && (ne >= I ? D = w.right + q + 100 : G >= h ? $ = w.bottom + q + window.scrollY : ($ = window.scrollY + (window.innerHeight - h) / 2, D = (window.innerWidth - I) / 2)), u({
|
|
1705
1708
|
top: $,
|
|
1706
1709
|
left: D
|
|
1707
1710
|
});
|
|
1708
1711
|
};
|
|
1709
|
-
return /* @__PURE__ */
|
|
1710
|
-
/* @__PURE__ */
|
|
1712
|
+
return /* @__PURE__ */ g.jsxs("div", { className: J.content, children: [
|
|
1713
|
+
/* @__PURE__ */ g.jsx(
|
|
1711
1714
|
"span",
|
|
1712
1715
|
{
|
|
1713
1716
|
className: V(J.name, {
|
|
1714
1717
|
[J.secondary]: i === "secondary"
|
|
1715
1718
|
}),
|
|
1716
|
-
children:
|
|
1719
|
+
children: n
|
|
1717
1720
|
}
|
|
1718
1721
|
),
|
|
1719
|
-
/* @__PURE__ */
|
|
1722
|
+
/* @__PURE__ */ g.jsxs(
|
|
1720
1723
|
"label",
|
|
1721
1724
|
{
|
|
1722
1725
|
htmlFor: "color",
|
|
1723
1726
|
className: J.label,
|
|
1724
1727
|
children: [
|
|
1725
|
-
/* @__PURE__ */
|
|
1728
|
+
/* @__PURE__ */ g.jsx(
|
|
1726
1729
|
"div",
|
|
1727
1730
|
{
|
|
1728
1731
|
className: J.colorValue,
|
|
1729
1732
|
style: {
|
|
1730
1733
|
background: o
|
|
1731
1734
|
},
|
|
1732
|
-
onClick:
|
|
1735
|
+
onClick: m
|
|
1733
1736
|
}
|
|
1734
1737
|
),
|
|
1735
|
-
/* @__PURE__ */
|
|
1738
|
+
/* @__PURE__ */ g.jsx(
|
|
1736
1739
|
"input",
|
|
1737
1740
|
{
|
|
1738
1741
|
type: "text",
|
|
1739
1742
|
defaultValue: o,
|
|
1740
1743
|
value: o,
|
|
1741
|
-
onChange: (
|
|
1742
|
-
const w =
|
|
1743
|
-
|
|
1744
|
+
onChange: (P) => {
|
|
1745
|
+
const w = P.target.value;
|
|
1746
|
+
s(w), E(w), l(w), R(w);
|
|
1744
1747
|
},
|
|
1745
1748
|
className: J.input
|
|
1746
1749
|
}
|
|
@@ -1749,39 +1752,39 @@ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
|
1749
1752
|
}
|
|
1750
1753
|
)
|
|
1751
1754
|
] });
|
|
1752
|
-
},
|
|
1753
|
-
modal:
|
|
1754
|
-
},
|
|
1755
|
-
const { close: t, children:
|
|
1755
|
+
}, Nr = "_modal_1t5at_1", Fr = {
|
|
1756
|
+
modal: Nr
|
|
1757
|
+
}, _s = (r) => {
|
|
1758
|
+
const { close: t, children: s } = r;
|
|
1756
1759
|
return T.useEffect(() => {
|
|
1757
|
-
const
|
|
1760
|
+
const n = () => {
|
|
1758
1761
|
t(!1);
|
|
1759
1762
|
};
|
|
1760
|
-
return document.body.addEventListener("click",
|
|
1761
|
-
document.body.removeEventListener("click",
|
|
1763
|
+
return document.body.addEventListener("click", n), () => {
|
|
1764
|
+
document.body.removeEventListener("click", n);
|
|
1762
1765
|
};
|
|
1763
|
-
}, []), /* @__PURE__ */
|
|
1764
|
-
},
|
|
1765
|
-
wrapper:
|
|
1766
|
-
label:
|
|
1767
|
-
textarea:
|
|
1768
|
-
length:
|
|
1769
|
-
},
|
|
1770
|
-
const { onChange: t, label:
|
|
1771
|
-
return /* @__PURE__ */
|
|
1772
|
-
|
|
1766
|
+
}, []), /* @__PURE__ */ g.jsx("div", { className: Fr.modal, children: s });
|
|
1767
|
+
}, $r = "_wrapper_1qvfi_1", Dr = "_label_1qvfi_10", Mr = "_textarea_1qvfi_18", qr = "_length_1qvfi_33", de = {
|
|
1768
|
+
wrapper: $r,
|
|
1769
|
+
label: Dr,
|
|
1770
|
+
textarea: Mr,
|
|
1771
|
+
length: qr
|
|
1772
|
+
}, ys = (r) => {
|
|
1773
|
+
const { onChange: t, label: s, value: n, maxLength: i, placeholder: o } = r, [l, f] = T.useState(n.length);
|
|
1774
|
+
return /* @__PURE__ */ g.jsxs("div", { className: de.wrapper, children: [
|
|
1775
|
+
s && /* @__PURE__ */ g.jsx(
|
|
1773
1776
|
"label",
|
|
1774
1777
|
{
|
|
1775
1778
|
className: de.label,
|
|
1776
|
-
htmlFor:
|
|
1777
|
-
children:
|
|
1779
|
+
htmlFor: s,
|
|
1780
|
+
children: s
|
|
1778
1781
|
}
|
|
1779
1782
|
),
|
|
1780
|
-
/* @__PURE__ */
|
|
1783
|
+
/* @__PURE__ */ g.jsx(
|
|
1781
1784
|
"textarea",
|
|
1782
1785
|
{
|
|
1783
|
-
id:
|
|
1784
|
-
defaultValue:
|
|
1786
|
+
id: s,
|
|
1787
|
+
defaultValue: n,
|
|
1785
1788
|
onChange: (u) => {
|
|
1786
1789
|
f(u.target.value.length), t(u.target.value);
|
|
1787
1790
|
},
|
|
@@ -1790,33 +1793,33 @@ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
|
1790
1793
|
maxLength: i
|
|
1791
1794
|
}
|
|
1792
1795
|
),
|
|
1793
|
-
i && /* @__PURE__ */
|
|
1796
|
+
i && /* @__PURE__ */ g.jsxs("div", { className: de.length, children: [
|
|
1794
1797
|
l,
|
|
1795
1798
|
"/",
|
|
1796
1799
|
i
|
|
1797
1800
|
] })
|
|
1798
1801
|
] });
|
|
1799
|
-
},
|
|
1800
|
-
wrapper:
|
|
1801
|
-
label:
|
|
1802
|
-
options:
|
|
1803
|
-
radioLabel:
|
|
1804
|
-
radio:
|
|
1805
|
-
custom:
|
|
1806
|
-
option:
|
|
1807
|
-
},
|
|
1808
|
-
const { defaultValue: t, options:
|
|
1802
|
+
}, Lr = "_wrapper_1fcne_2", Vr = "_label_1fcne_10", Ur = "_options_1fcne_18", Wr = "_radioLabel_1fcne_23", zr = "_radio_1fcne_23", Yr = "_custom_1fcne_36", Hr = "_option_1fcne_18", z = {
|
|
1803
|
+
wrapper: Lr,
|
|
1804
|
+
label: Vr,
|
|
1805
|
+
options: Ur,
|
|
1806
|
+
radioLabel: Wr,
|
|
1807
|
+
radio: zr,
|
|
1808
|
+
custom: Yr,
|
|
1809
|
+
option: Hr
|
|
1810
|
+
}, ws = (r) => {
|
|
1811
|
+
const { defaultValue: t, options: s, onChange: n, label: i } = r, [o, l] = T.useState(t), f = (u) => {
|
|
1809
1812
|
const v = u.target.value;
|
|
1810
|
-
l(v),
|
|
1813
|
+
l(v), n(v);
|
|
1811
1814
|
};
|
|
1812
|
-
return /* @__PURE__ */
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1815
|
+
return /* @__PURE__ */ g.jsxs("div", { className: z.wrapper, children: [
|
|
1816
|
+
/* @__PURE__ */ g.jsx("span", { className: z.label, children: i }),
|
|
1817
|
+
/* @__PURE__ */ g.jsx("div", { className: z.options, children: s.map((u) => /* @__PURE__ */ g.jsxs(
|
|
1815
1818
|
"label",
|
|
1816
1819
|
{
|
|
1817
1820
|
className: z.radioLabel,
|
|
1818
1821
|
children: [
|
|
1819
|
-
/* @__PURE__ */
|
|
1822
|
+
/* @__PURE__ */ g.jsx(
|
|
1820
1823
|
"input",
|
|
1821
1824
|
{
|
|
1822
1825
|
type: "radio",
|
|
@@ -1826,32 +1829,32 @@ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
|
1826
1829
|
className: z.radio
|
|
1827
1830
|
}
|
|
1828
1831
|
),
|
|
1829
|
-
/* @__PURE__ */
|
|
1830
|
-
/* @__PURE__ */
|
|
1832
|
+
/* @__PURE__ */ g.jsx("span", { className: z.custom }),
|
|
1833
|
+
/* @__PURE__ */ g.jsx("span", { className: z.option, children: u.label })
|
|
1831
1834
|
]
|
|
1832
1835
|
},
|
|
1833
1836
|
u.value
|
|
1834
1837
|
)) })
|
|
1835
1838
|
] });
|
|
1836
|
-
},
|
|
1837
|
-
tip:
|
|
1838
|
-
text:
|
|
1839
|
-
warning:
|
|
1840
|
-
error:
|
|
1841
|
-
hide:
|
|
1842
|
-
},
|
|
1843
|
-
const { type: t, message:
|
|
1844
|
-
return /* @__PURE__ */
|
|
1839
|
+
}, Jr = "_tip_pl6k0_1", Kr = "_text_pl6k0_9", Gr = "_warning_pl6k0_15", Xr = "_error_pl6k0_20", Zr = "_hide_pl6k0_25", se = {
|
|
1840
|
+
tip: Jr,
|
|
1841
|
+
text: Kr,
|
|
1842
|
+
warning: Gr,
|
|
1843
|
+
error: Xr,
|
|
1844
|
+
hide: Zr
|
|
1845
|
+
}, ks = (r) => {
|
|
1846
|
+
const { type: t, message: s, style: n } = r, [i, o] = T.useState(!1);
|
|
1847
|
+
return /* @__PURE__ */ g.jsxs(
|
|
1845
1848
|
"div",
|
|
1846
1849
|
{
|
|
1847
|
-
className: V(
|
|
1848
|
-
[
|
|
1849
|
-
[
|
|
1850
|
-
[
|
|
1850
|
+
className: V(se.tip, {
|
|
1851
|
+
[se.warning]: t === "warning",
|
|
1852
|
+
[se.error]: t === "error",
|
|
1853
|
+
[se.hide]: i
|
|
1851
1854
|
}),
|
|
1852
|
-
style:
|
|
1855
|
+
style: n,
|
|
1853
1856
|
children: [
|
|
1854
|
-
/* @__PURE__ */
|
|
1857
|
+
/* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsx(
|
|
1855
1858
|
fe,
|
|
1856
1859
|
{
|
|
1857
1860
|
name: "info-circle",
|
|
@@ -1860,8 +1863,8 @@ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
|
1860
1863
|
height: 20
|
|
1861
1864
|
}
|
|
1862
1865
|
) }),
|
|
1863
|
-
/* @__PURE__ */
|
|
1864
|
-
/* @__PURE__ */
|
|
1866
|
+
/* @__PURE__ */ g.jsx("div", { className: se.text, children: s }),
|
|
1867
|
+
/* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsx(
|
|
1865
1868
|
fe,
|
|
1866
1869
|
{
|
|
1867
1870
|
name: "x",
|
|
@@ -1877,35 +1880,35 @@ const V = /* @__PURE__ */ Bt(Zt), fe = (r) => {
|
|
|
1877
1880
|
);
|
|
1878
1881
|
};
|
|
1879
1882
|
export {
|
|
1880
|
-
|
|
1881
|
-
|
|
1883
|
+
fs as B,
|
|
1884
|
+
bs as C,
|
|
1882
1885
|
fe as I,
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1886
|
+
_s as M,
|
|
1887
|
+
hs as P,
|
|
1888
|
+
ws as R,
|
|
1889
|
+
ms as S,
|
|
1890
|
+
ys as T,
|
|
1891
|
+
ps as a,
|
|
1892
|
+
vs as b,
|
|
1893
|
+
V as c,
|
|
1894
|
+
gs as d,
|
|
1895
|
+
ks as e,
|
|
1896
|
+
as as f,
|
|
1897
|
+
ds as g,
|
|
1898
|
+
is as h,
|
|
1899
|
+
ns as i,
|
|
1900
|
+
g as j,
|
|
1901
|
+
cs as k,
|
|
1902
|
+
us as l,
|
|
1903
|
+
os as m,
|
|
1904
|
+
es as n,
|
|
1902
1905
|
Mt as o,
|
|
1903
1906
|
Ht as p,
|
|
1904
1907
|
Jt as q,
|
|
1905
1908
|
Bt as r,
|
|
1906
1909
|
J as s,
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1910
|
+
rs as t,
|
|
1911
|
+
ts as u,
|
|
1912
|
+
ls as v,
|
|
1913
|
+
ss as w
|
|
1911
1914
|
};
|