@cyberskill/cyber-editor 2.0.4 → 3.0.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/cyber-editor.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import _e, { forwardRef as
|
|
2
|
-
import {
|
|
3
|
-
import { ColorPicker as fn, Tooltip as vt, Dropdown as
|
|
1
|
+
import _e, { forwardRef as br, createElement as yt, useState as he, useRef as sn, useEffect as hr } from "react";
|
|
2
|
+
import { NodeViewWrapper as yr, NodeViewContent as ln, ReactNodeViewRenderer as vr, useCurrentEditor as cn, useEditor as un, EditorContent as dn } from "@tiptap/react";
|
|
3
|
+
import { ColorPicker as fn, Tooltip as vt, Dropdown as Ct, Menu as Ft, Modal as mn } from "antd";
|
|
4
4
|
import pn from "@tiptap/extension-list-item";
|
|
5
5
|
import { Color as bn } from "@tiptap/extension-color";
|
|
6
|
-
import
|
|
6
|
+
import Ut from "@tiptap/extension-text-style";
|
|
7
7
|
import hn from "@tiptap/starter-kit";
|
|
8
8
|
import yn from "@tiptap/extension-highlight";
|
|
9
9
|
import vn from "@tiptap/extension-underline";
|
|
@@ -48,10 +48,10 @@ var gt = { exports: {} }, Le = {};
|
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
50
|
*/
|
|
51
|
-
var
|
|
51
|
+
var Bt;
|
|
52
52
|
function Rn() {
|
|
53
|
-
if (
|
|
54
|
-
|
|
53
|
+
if (Bt) return Le;
|
|
54
|
+
Bt = 1;
|
|
55
55
|
var e = Symbol.for("react.fragment");
|
|
56
56
|
return Le.Fragment = e, Le.jsxDEV = void 0, Le;
|
|
57
57
|
}
|
|
@@ -65,10 +65,10 @@ var We = {};
|
|
|
65
65
|
* This source code is licensed under the MIT license found in the
|
|
66
66
|
* LICENSE file in the root directory of this source tree.
|
|
67
67
|
*/
|
|
68
|
-
var
|
|
69
|
-
function
|
|
70
|
-
return
|
|
71
|
-
var e = _e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"),
|
|
68
|
+
var Xt;
|
|
69
|
+
function Tn() {
|
|
70
|
+
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
71
|
+
var e = _e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), A = Symbol.iterator, $ = "@@iterator";
|
|
72
72
|
function B(i) {
|
|
73
73
|
if (i === null || typeof i != "object")
|
|
74
74
|
return null;
|
|
@@ -76,38 +76,38 @@ function Pn() {
|
|
|
76
76
|
return typeof d == "function" ? d : null;
|
|
77
77
|
}
|
|
78
78
|
var W = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
79
|
-
function
|
|
79
|
+
function g(i) {
|
|
80
80
|
{
|
|
81
|
-
for (var d = arguments.length,
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
for (var d = arguments.length, h = new Array(d > 1 ? d - 1 : 0), w = 1; w < d; w++)
|
|
82
|
+
h[w - 1] = arguments[w];
|
|
83
|
+
N("error", i, h);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function N(i, d, h) {
|
|
87
87
|
{
|
|
88
88
|
var w = W.ReactDebugCurrentFrame, q = w.getStackAddendum();
|
|
89
|
-
q !== "" && (d += "%s",
|
|
90
|
-
var X =
|
|
89
|
+
q !== "" && (d += "%s", h = h.concat([q]));
|
|
90
|
+
var X = h.map(function(I) {
|
|
91
91
|
return String(I);
|
|
92
92
|
});
|
|
93
93
|
X.unshift("Warning: " + d), Function.prototype.apply.call(console[i], console, X);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
var E = !1, c = !1, Y = !1,
|
|
96
|
+
var E = !1, c = !1, Y = !1, T = !1, Q = !1, de;
|
|
97
97
|
de = Symbol.for("react.module.reference");
|
|
98
98
|
function fe(i) {
|
|
99
|
-
return !!(typeof i == "string" || typeof i == "function" || i === n || i === a || Q || i === o || i === p || i ===
|
|
99
|
+
return !!(typeof i == "string" || typeof i == "function" || i === n || i === a || Q || i === o || i === p || i === y || T || i === S || E || c || Y || typeof i == "object" && i !== null && (i.$$typeof === O || i.$$typeof === v || i.$$typeof === s || i.$$typeof === u || i.$$typeof === m || // This needs to include all possible module reference object
|
|
100
100
|
// types supported by any Flight configuration anywhere since
|
|
101
101
|
// we don't know which Flight build this will end up being used
|
|
102
102
|
// with.
|
|
103
103
|
i.$$typeof === de || i.getModuleId !== void 0));
|
|
104
104
|
}
|
|
105
|
-
function ye(i, d,
|
|
105
|
+
function ye(i, d, h) {
|
|
106
106
|
var w = i.displayName;
|
|
107
107
|
if (w)
|
|
108
108
|
return w;
|
|
109
109
|
var q = d.displayName || d.name || "";
|
|
110
|
-
return q !== "" ?
|
|
110
|
+
return q !== "" ? h + "(" + q + ")" : h;
|
|
111
111
|
}
|
|
112
112
|
function Ee(i) {
|
|
113
113
|
return i.displayName || "Context";
|
|
@@ -115,7 +115,7 @@ function Pn() {
|
|
|
115
115
|
function ee(i) {
|
|
116
116
|
if (i == null)
|
|
117
117
|
return null;
|
|
118
|
-
if (typeof i.tag == "number" &&
|
|
118
|
+
if (typeof i.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
|
|
119
119
|
return i.displayName || i.name || null;
|
|
120
120
|
if (typeof i == "string")
|
|
121
121
|
return i;
|
|
@@ -130,7 +130,7 @@ function Pn() {
|
|
|
130
130
|
return "StrictMode";
|
|
131
131
|
case p:
|
|
132
132
|
return "Suspense";
|
|
133
|
-
case
|
|
133
|
+
case y:
|
|
134
134
|
return "SuspenseList";
|
|
135
135
|
}
|
|
136
136
|
if (typeof i == "object")
|
|
@@ -139,11 +139,11 @@ function Pn() {
|
|
|
139
139
|
var d = i;
|
|
140
140
|
return Ee(d) + ".Consumer";
|
|
141
141
|
case s:
|
|
142
|
-
var
|
|
143
|
-
return Ee(
|
|
142
|
+
var h = i;
|
|
143
|
+
return Ee(h._context) + ".Provider";
|
|
144
144
|
case m:
|
|
145
145
|
return ye(i, i.render, "ForwardRef");
|
|
146
|
-
case
|
|
146
|
+
case v:
|
|
147
147
|
var w = i.displayName || null;
|
|
148
148
|
return w !== null ? w : ee(i.type) || "Memo";
|
|
149
149
|
case O: {
|
|
@@ -157,14 +157,14 @@ function Pn() {
|
|
|
157
157
|
}
|
|
158
158
|
return null;
|
|
159
159
|
}
|
|
160
|
-
var Z = Object.assign, me = 0, oe, le, ge, Se, f,
|
|
160
|
+
var Z = Object.assign, me = 0, oe, le, ge, Se, f, x, P;
|
|
161
161
|
function R() {
|
|
162
162
|
}
|
|
163
163
|
R.__reactDisabledLog = !0;
|
|
164
164
|
function C() {
|
|
165
165
|
{
|
|
166
166
|
if (me === 0) {
|
|
167
|
-
oe = console.log, le = console.info, ge = console.warn, Se = console.error, f = console.group,
|
|
167
|
+
oe = console.log, le = console.info, ge = console.warn, Se = console.error, f = console.group, x = console.groupCollapsed, P = console.groupEnd;
|
|
168
168
|
var i = {
|
|
169
169
|
configurable: !0,
|
|
170
170
|
enumerable: !0,
|
|
@@ -209,18 +209,18 @@ function Pn() {
|
|
|
209
209
|
value: f
|
|
210
210
|
}),
|
|
211
211
|
groupCollapsed: Z({}, i, {
|
|
212
|
-
value:
|
|
212
|
+
value: x
|
|
213
213
|
}),
|
|
214
214
|
groupEnd: Z({}, i, {
|
|
215
|
-
value:
|
|
215
|
+
value: P
|
|
216
216
|
})
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
me < 0 &&
|
|
219
|
+
me < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
var k = W.ReactCurrentDispatcher, _;
|
|
223
|
-
function j(i, d,
|
|
223
|
+
function j(i, d, h) {
|
|
224
224
|
{
|
|
225
225
|
if (_ === void 0)
|
|
226
226
|
try {
|
|
@@ -238,13 +238,13 @@ function Pn() {
|
|
|
238
238
|
var te = typeof WeakMap == "function" ? WeakMap : Map;
|
|
239
239
|
M = new te();
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function b(i, d) {
|
|
242
242
|
if (!i || H)
|
|
243
243
|
return "";
|
|
244
244
|
{
|
|
245
|
-
var
|
|
246
|
-
if (
|
|
247
|
-
return
|
|
245
|
+
var h = M.get(i);
|
|
246
|
+
if (h !== void 0)
|
|
247
|
+
return h;
|
|
248
248
|
}
|
|
249
249
|
var w;
|
|
250
250
|
H = !0;
|
|
@@ -306,54 +306,54 @@ function Pn() {
|
|
|
306
306
|
} finally {
|
|
307
307
|
H = !1, k.current = X, z(), Error.prepareStackTrace = q;
|
|
308
308
|
}
|
|
309
|
-
var
|
|
309
|
+
var Pe = i ? i.displayName || i.name : "", De = Pe ? j(Pe) : "";
|
|
310
310
|
return typeof i == "function" && M.set(i, De), De;
|
|
311
311
|
}
|
|
312
|
-
function pe(i, d,
|
|
313
|
-
return
|
|
312
|
+
function pe(i, d, h) {
|
|
313
|
+
return b(i, !1);
|
|
314
314
|
}
|
|
315
315
|
function Re(i) {
|
|
316
316
|
var d = i.prototype;
|
|
317
317
|
return !!(d && d.isReactComponent);
|
|
318
318
|
}
|
|
319
|
-
function ke(i, d,
|
|
319
|
+
function ke(i, d, h) {
|
|
320
320
|
if (i == null)
|
|
321
321
|
return "";
|
|
322
322
|
if (typeof i == "function")
|
|
323
|
-
return
|
|
323
|
+
return b(i, Re(i));
|
|
324
324
|
if (typeof i == "string")
|
|
325
325
|
return j(i);
|
|
326
326
|
switch (i) {
|
|
327
327
|
case p:
|
|
328
328
|
return j("Suspense");
|
|
329
|
-
case
|
|
329
|
+
case y:
|
|
330
330
|
return j("SuspenseList");
|
|
331
331
|
}
|
|
332
332
|
if (typeof i == "object")
|
|
333
333
|
switch (i.$$typeof) {
|
|
334
334
|
case m:
|
|
335
335
|
return pe(i.render);
|
|
336
|
-
case
|
|
337
|
-
return ke(i.type, d,
|
|
336
|
+
case v:
|
|
337
|
+
return ke(i.type, d, h);
|
|
338
338
|
case O: {
|
|
339
339
|
var w = i, q = w._payload, X = w._init;
|
|
340
340
|
try {
|
|
341
|
-
return ke(X(q), d,
|
|
341
|
+
return ke(X(q), d, h);
|
|
342
342
|
} catch {
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
return "";
|
|
347
347
|
}
|
|
348
|
-
var Me = Object.prototype.hasOwnProperty,
|
|
348
|
+
var Me = Object.prototype.hasOwnProperty, jt = {}, Mt = W.ReactDebugCurrentFrame;
|
|
349
349
|
function He(i) {
|
|
350
350
|
if (i) {
|
|
351
|
-
var d = i._owner,
|
|
352
|
-
|
|
351
|
+
var d = i._owner, h = ke(i.type, i._source, d ? d.type : null);
|
|
352
|
+
Mt.setExtraStackFrame(h);
|
|
353
353
|
} else
|
|
354
|
-
|
|
354
|
+
Mt.setExtraStackFrame(null);
|
|
355
355
|
}
|
|
356
|
-
function Hr(i, d,
|
|
356
|
+
function Hr(i, d, h, w, q) {
|
|
357
357
|
{
|
|
358
358
|
var X = Function.call.bind(Me);
|
|
359
359
|
for (var I in i)
|
|
@@ -361,14 +361,14 @@ function Pn() {
|
|
|
361
361
|
var V = void 0;
|
|
362
362
|
try {
|
|
363
363
|
if (typeof i[I] != "function") {
|
|
364
|
-
var ne = Error((w || "React class") + ": " +
|
|
364
|
+
var ne = Error((w || "React class") + ": " + h + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
365
365
|
throw ne.name = "Invariant Violation", ne;
|
|
366
366
|
}
|
|
367
|
-
V = i[I](d, I, w,
|
|
367
|
+
V = i[I](d, I, w, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
368
368
|
} catch (G) {
|
|
369
369
|
V = G;
|
|
370
370
|
}
|
|
371
|
-
V && !(V instanceof Error) && (He(q),
|
|
371
|
+
V && !(V instanceof Error) && (He(q), g("%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).", w || "React class", h, I, typeof V), He(null)), V instanceof Error && !(V.message in jt) && (jt[V.message] = !0, He(q), g("Failed %s type: %s", h, V.message), He(null));
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
}
|
|
@@ -378,32 +378,32 @@ function Pn() {
|
|
|
378
378
|
}
|
|
379
379
|
function Wr(i) {
|
|
380
380
|
{
|
|
381
|
-
var d = typeof Symbol == "function" && Symbol.toStringTag,
|
|
382
|
-
return
|
|
381
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, h = d && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
382
|
+
return h;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
function qr(i) {
|
|
386
386
|
try {
|
|
387
|
-
return
|
|
387
|
+
return Vt(i), !1;
|
|
388
388
|
} catch {
|
|
389
389
|
return !0;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Vt(i) {
|
|
393
393
|
return "" + i;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function At(i) {
|
|
396
396
|
if (qr(i))
|
|
397
|
-
return
|
|
397
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wr(i)), Vt(i);
|
|
398
398
|
}
|
|
399
399
|
var Ve = W.ReactCurrentOwner, Yr = {
|
|
400
400
|
key: !0,
|
|
401
401
|
ref: !0,
|
|
402
402
|
__self: !0,
|
|
403
403
|
__source: !0
|
|
404
|
-
},
|
|
404
|
+
}, $t, zt, et;
|
|
405
405
|
et = {};
|
|
406
|
-
function
|
|
406
|
+
function Fr(i) {
|
|
407
407
|
if (Me.call(i, "ref")) {
|
|
408
408
|
var d = Object.getOwnPropertyDescriptor(i, "ref").get;
|
|
409
409
|
if (d && d.isReactWarning)
|
|
@@ -411,7 +411,7 @@ function Pn() {
|
|
|
411
411
|
}
|
|
412
412
|
return i.ref !== void 0;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Ur(i) {
|
|
415
415
|
if (Me.call(i, "key")) {
|
|
416
416
|
var d = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
417
417
|
if (d && d.isReactWarning)
|
|
@@ -421,40 +421,40 @@ function Pn() {
|
|
|
421
421
|
}
|
|
422
422
|
function Br(i, d) {
|
|
423
423
|
if (typeof i.ref == "string" && Ve.current && d && Ve.current.stateNode !== d) {
|
|
424
|
-
var
|
|
425
|
-
et[
|
|
424
|
+
var h = ee(Ve.current.type);
|
|
425
|
+
et[h] || (g('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', ee(Ve.current.type), i.ref), et[h] = !0);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
function Xr(i, d) {
|
|
429
429
|
{
|
|
430
|
-
var
|
|
431
|
-
|
|
430
|
+
var h = function() {
|
|
431
|
+
$t || ($t = !0, g("%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)", d));
|
|
432
432
|
};
|
|
433
|
-
|
|
434
|
-
get:
|
|
433
|
+
h.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
434
|
+
get: h,
|
|
435
435
|
configurable: !0
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
function Kr(i, d) {
|
|
440
440
|
{
|
|
441
|
-
var
|
|
442
|
-
|
|
441
|
+
var h = function() {
|
|
442
|
+
zt || (zt = !0, g("%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)", d));
|
|
443
443
|
};
|
|
444
|
-
|
|
445
|
-
get:
|
|
444
|
+
h.isReactWarning = !0, Object.defineProperty(i, "ref", {
|
|
445
|
+
get: h,
|
|
446
446
|
configurable: !0
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
var Gr = function(i, d,
|
|
450
|
+
var Gr = function(i, d, h, w, q, X, I) {
|
|
451
451
|
var V = {
|
|
452
452
|
// This tag allows us to uniquely identify this as a React Element
|
|
453
453
|
$$typeof: t,
|
|
454
454
|
// Built-in properties that belong on the element
|
|
455
455
|
type: i,
|
|
456
456
|
key: d,
|
|
457
|
-
ref:
|
|
457
|
+
ref: h,
|
|
458
458
|
props: I,
|
|
459
459
|
// Record the component responsible for creating this element.
|
|
460
460
|
_owner: X
|
|
@@ -476,10 +476,10 @@ function Pn() {
|
|
|
476
476
|
value: q
|
|
477
477
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
478
478
|
};
|
|
479
|
-
function Jr(i, d,
|
|
479
|
+
function Jr(i, d, h, w, q) {
|
|
480
480
|
{
|
|
481
481
|
var X, I = {}, V = null, ne = null;
|
|
482
|
-
|
|
482
|
+
h !== void 0 && (At(h), V = "" + h), Ur(d) && (At(d.key), V = "" + d.key), Fr(d) && (ne = d.ref, Br(d, q));
|
|
483
483
|
for (X in d)
|
|
484
484
|
Me.call(d, X) && !Yr.hasOwnProperty(X) && (I[X] = d[X]);
|
|
485
485
|
if (i && i.defaultProps) {
|
|
@@ -494,20 +494,20 @@ function Pn() {
|
|
|
494
494
|
return Gr(i, V, ne, q, w, Ve.current, I);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
var tt = W.ReactCurrentOwner,
|
|
498
|
-
function
|
|
497
|
+
var tt = W.ReactCurrentOwner, It = W.ReactDebugCurrentFrame;
|
|
498
|
+
function Te(i) {
|
|
499
499
|
if (i) {
|
|
500
|
-
var d = i._owner,
|
|
501
|
-
|
|
500
|
+
var d = i._owner, h = ke(i.type, i._source, d ? d.type : null);
|
|
501
|
+
It.setExtraStackFrame(h);
|
|
502
502
|
} else
|
|
503
|
-
|
|
503
|
+
It.setExtraStackFrame(null);
|
|
504
504
|
}
|
|
505
505
|
var rt;
|
|
506
506
|
rt = !1;
|
|
507
507
|
function nt(i) {
|
|
508
508
|
return typeof i == "object" && i !== null && i.$$typeof === t;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Ht() {
|
|
511
511
|
{
|
|
512
512
|
if (tt.current) {
|
|
513
513
|
var i = ee(tt.current.type);
|
|
@@ -522,48 +522,48 @@ Check the render method of \`` + i + "`.";
|
|
|
522
522
|
function Zr(i) {
|
|
523
523
|
{
|
|
524
524
|
if (i !== void 0) {
|
|
525
|
-
var d = i.fileName.replace(/^.*[\\\/]/, ""),
|
|
525
|
+
var d = i.fileName.replace(/^.*[\\\/]/, ""), h = i.lineNumber;
|
|
526
526
|
return `
|
|
527
527
|
|
|
528
|
-
Check your code at ` + d + ":" +
|
|
528
|
+
Check your code at ` + d + ":" + h + ".";
|
|
529
529
|
}
|
|
530
530
|
return "";
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
var
|
|
533
|
+
var Lt = {};
|
|
534
534
|
function Qr(i) {
|
|
535
535
|
{
|
|
536
|
-
var d =
|
|
536
|
+
var d = Ht();
|
|
537
537
|
if (!d) {
|
|
538
|
-
var
|
|
539
|
-
|
|
538
|
+
var h = typeof i == "string" ? i : i.displayName || i.name;
|
|
539
|
+
h && (d = `
|
|
540
540
|
|
|
541
|
-
Check the top-level render call using <` +
|
|
541
|
+
Check the top-level render call using <` + h + ">.");
|
|
542
542
|
}
|
|
543
543
|
return d;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function Wt(i, d) {
|
|
547
547
|
{
|
|
548
548
|
if (!i._store || i._store.validated || i.key != null)
|
|
549
549
|
return;
|
|
550
550
|
i._store.validated = !0;
|
|
551
|
-
var
|
|
552
|
-
if (
|
|
551
|
+
var h = Qr(d);
|
|
552
|
+
if (Lt[h])
|
|
553
553
|
return;
|
|
554
|
-
|
|
554
|
+
Lt[h] = !0;
|
|
555
555
|
var w = "";
|
|
556
|
-
i && i._owner && i._owner !== tt.current && (w = " It was passed a child from " + ee(i._owner.type) + "."),
|
|
556
|
+
i && i._owner && i._owner !== tt.current && (w = " It was passed a child from " + ee(i._owner.type) + "."), Te(i), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, w), Te(null);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function qt(i, d) {
|
|
560
560
|
{
|
|
561
561
|
if (typeof i != "object")
|
|
562
562
|
return;
|
|
563
563
|
if (Qe(i))
|
|
564
|
-
for (var
|
|
565
|
-
var w = i[
|
|
566
|
-
nt(w) &&
|
|
564
|
+
for (var h = 0; h < i.length; h++) {
|
|
565
|
+
var w = i[h];
|
|
566
|
+
nt(w) && Wt(w, d);
|
|
567
567
|
}
|
|
568
568
|
else if (nt(i))
|
|
569
569
|
i._store && (i._store.validated = !0);
|
|
@@ -571,7 +571,7 @@ Check the top-level render call using <` + y + ">.");
|
|
|
571
571
|
var q = B(i);
|
|
572
572
|
if (typeof q == "function" && q !== i.entries)
|
|
573
573
|
for (var X = q.call(i), I; !(I = X.next()).done; )
|
|
574
|
-
nt(I.value) &&
|
|
574
|
+
nt(I.value) && Wt(I.value, d);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
}
|
|
@@ -580,51 +580,51 @@ Check the top-level render call using <` + y + ">.");
|
|
|
580
580
|
var d = i.type;
|
|
581
581
|
if (d == null || typeof d == "string")
|
|
582
582
|
return;
|
|
583
|
-
var
|
|
583
|
+
var h;
|
|
584
584
|
if (typeof d == "function")
|
|
585
|
-
|
|
585
|
+
h = d.propTypes;
|
|
586
586
|
else if (typeof d == "object" && (d.$$typeof === m || // Note: Memo only checks outer props here.
|
|
587
587
|
// Inner props are checked in the reconciler.
|
|
588
|
-
d.$$typeof ===
|
|
589
|
-
|
|
588
|
+
d.$$typeof === v))
|
|
589
|
+
h = d.propTypes;
|
|
590
590
|
else
|
|
591
591
|
return;
|
|
592
|
-
if (
|
|
592
|
+
if (h) {
|
|
593
593
|
var w = ee(d);
|
|
594
|
-
Hr(
|
|
594
|
+
Hr(h, i.props, "prop", w, i);
|
|
595
595
|
} else if (d.PropTypes !== void 0 && !rt) {
|
|
596
596
|
rt = !0;
|
|
597
597
|
var q = ee(d);
|
|
598
|
-
|
|
598
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
|
|
599
599
|
}
|
|
600
|
-
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved &&
|
|
600
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
function tn(i) {
|
|
604
604
|
{
|
|
605
|
-
for (var d = Object.keys(i.props),
|
|
606
|
-
var w = d[
|
|
605
|
+
for (var d = Object.keys(i.props), h = 0; h < d.length; h++) {
|
|
606
|
+
var w = d[h];
|
|
607
607
|
if (w !== "children" && w !== "key") {
|
|
608
|
-
|
|
608
|
+
Te(i), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), Te(null);
|
|
609
609
|
break;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
i.ref !== null && (
|
|
612
|
+
i.ref !== null && (Te(i), g("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
var
|
|
616
|
-
function rn(i, d,
|
|
615
|
+
var Yt = {};
|
|
616
|
+
function rn(i, d, h, w, q, X) {
|
|
617
617
|
{
|
|
618
618
|
var I = fe(i);
|
|
619
619
|
if (!I) {
|
|
620
620
|
var V = "";
|
|
621
621
|
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
622
622
|
var ne = Zr(q);
|
|
623
|
-
ne ? V += ne : V +=
|
|
623
|
+
ne ? V += ne : V += Ht();
|
|
624
624
|
var G;
|
|
625
|
-
i === null ? G = "null" : Qe(i) ? G = "array" : i !== void 0 && i.$$typeof === t ? (G = "<" + (ee(i.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : G = typeof i,
|
|
625
|
+
i === null ? G = "null" : Qe(i) ? G = "array" : i !== void 0 && i.$$typeof === t ? (G = "<" + (ee(i.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : G = typeof i, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, V);
|
|
626
626
|
}
|
|
627
|
-
var J = Jr(i, d,
|
|
627
|
+
var J = Jr(i, d, h, q, X);
|
|
628
628
|
if (J == null)
|
|
629
629
|
return J;
|
|
630
630
|
if (I) {
|
|
@@ -632,26 +632,26 @@ Check the top-level render call using <` + y + ">.");
|
|
|
632
632
|
if (be !== void 0)
|
|
633
633
|
if (w)
|
|
634
634
|
if (Qe(be)) {
|
|
635
|
-
for (var
|
|
636
|
-
|
|
635
|
+
for (var Pe = 0; Pe < be.length; Pe++)
|
|
636
|
+
qt(be[Pe], i);
|
|
637
637
|
Object.freeze && Object.freeze(be);
|
|
638
638
|
} else
|
|
639
|
-
|
|
639
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
640
640
|
else
|
|
641
|
-
|
|
641
|
+
qt(be, i);
|
|
642
642
|
}
|
|
643
643
|
if (Me.call(d, "key")) {
|
|
644
644
|
var De = ee(i), ae = Object.keys(d).filter(function(an) {
|
|
645
645
|
return an !== "key";
|
|
646
646
|
}), it = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
647
|
-
if (!
|
|
647
|
+
if (!Yt[De + it]) {
|
|
648
648
|
var on = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
|
|
649
|
-
|
|
649
|
+
g(`A props object containing a "key" prop is being spread into JSX:
|
|
650
650
|
let props = %s;
|
|
651
651
|
<%s {...props} />
|
|
652
652
|
React keys must be passed directly to JSX without using spread:
|
|
653
653
|
let props = %s;
|
|
654
|
-
<%s key={someKey} {...props} />`, it, De, on, De),
|
|
654
|
+
<%s key={someKey} {...props} />`, it, De, on, De), Yt[De + it] = !0;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
return i === n ? tn(J) : en(J), J;
|
|
@@ -661,7 +661,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
661
661
|
We.Fragment = n, We.jsxDEV = nn;
|
|
662
662
|
}()), We;
|
|
663
663
|
}
|
|
664
|
-
process.env.NODE_ENV === "production" ? gt.exports = Rn() : gt.exports =
|
|
664
|
+
process.env.NODE_ENV === "production" ? gt.exports = Rn() : gt.exports = Tn();
|
|
665
665
|
var l = gt.exports;
|
|
666
666
|
/**
|
|
667
667
|
* @license lucide-react v0.474.0 - ISC
|
|
@@ -669,7 +669,7 @@ var l = gt.exports;
|
|
|
669
669
|
* This source code is licensed under the ISC license.
|
|
670
670
|
* See the LICENSE file in the root directory of this source tree.
|
|
671
671
|
*/
|
|
672
|
-
const
|
|
672
|
+
const Pn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Er = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim();
|
|
673
673
|
/**
|
|
674
674
|
* @license lucide-react v0.474.0 - ISC
|
|
675
675
|
*
|
|
@@ -693,7 +693,7 @@ var jn = {
|
|
|
693
693
|
* This source code is licensed under the ISC license.
|
|
694
694
|
* See the LICENSE file in the root directory of this source tree.
|
|
695
695
|
*/
|
|
696
|
-
const Mn =
|
|
696
|
+
const Mn = br(
|
|
697
697
|
({
|
|
698
698
|
color: e = "currentColor",
|
|
699
699
|
size: t = 24,
|
|
@@ -716,7 +716,7 @@ const Mn = hr(
|
|
|
716
716
|
...u
|
|
717
717
|
},
|
|
718
718
|
[
|
|
719
|
-
...s.map(([p,
|
|
719
|
+
...s.map(([p, y]) => yt(p, y)),
|
|
720
720
|
...Array.isArray(a) ? a : [a]
|
|
721
721
|
]
|
|
722
722
|
)
|
|
@@ -728,11 +728,11 @@ const Mn = hr(
|
|
|
728
728
|
* See the LICENSE file in the root directory of this source tree.
|
|
729
729
|
*/
|
|
730
730
|
const L = (e, t) => {
|
|
731
|
-
const r =
|
|
731
|
+
const r = br(
|
|
732
732
|
({ className: n, ...o }, a) => yt(Mn, {
|
|
733
733
|
ref: a,
|
|
734
734
|
iconNode: t,
|
|
735
|
-
className: Er(`lucide-${
|
|
735
|
+
className: Er(`lucide-${Pn(e)}`, n),
|
|
736
736
|
...o
|
|
737
737
|
})
|
|
738
738
|
);
|
|
@@ -800,7 +800,7 @@ const qn = [
|
|
|
800
800
|
* This source code is licensed under the ISC license.
|
|
801
801
|
* See the LICENSE file in the root directory of this source tree.
|
|
802
802
|
*/
|
|
803
|
-
const
|
|
803
|
+
const Fn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Un = L("ChevronDown", Fn);
|
|
804
804
|
/**
|
|
805
805
|
* @license lucide-react v0.474.0 - ISC
|
|
806
806
|
*
|
|
@@ -844,7 +844,7 @@ const Zn = [
|
|
|
844
844
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
845
845
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
846
846
|
["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
|
|
847
|
-
],
|
|
847
|
+
], Kt = L("Heading2", Zn);
|
|
848
848
|
/**
|
|
849
849
|
* @license lucide-react v0.474.0 - ISC
|
|
850
850
|
*
|
|
@@ -857,7 +857,7 @@ const Qn = [
|
|
|
857
857
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
858
858
|
["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
|
|
859
859
|
["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
|
|
860
|
-
],
|
|
860
|
+
], Gt = L("Heading3", Qn);
|
|
861
861
|
/**
|
|
862
862
|
* @license lucide-react v0.474.0 - ISC
|
|
863
863
|
*
|
|
@@ -870,7 +870,7 @@ const ei = [
|
|
|
870
870
|
["path", { d: "M21 10v8", key: "1kdml4" }],
|
|
871
871
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
872
872
|
["path", { d: "M4 18V6", key: "1rz3zl" }]
|
|
873
|
-
],
|
|
873
|
+
], Jt = L("Heading4", ei);
|
|
874
874
|
/**
|
|
875
875
|
* @license lucide-react v0.474.0 - ISC
|
|
876
876
|
*
|
|
@@ -886,7 +886,7 @@ const ti = [
|
|
|
886
886
|
"path",
|
|
887
887
|
{ d: "M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17", key: "2nebdn" }
|
|
888
888
|
]
|
|
889
|
-
],
|
|
889
|
+
], Zt = L("Heading5", ti);
|
|
890
890
|
/**
|
|
891
891
|
* @license lucide-react v0.474.0 - ISC
|
|
892
892
|
*
|
|
@@ -899,7 +899,7 @@ const ri = [
|
|
|
899
899
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
900
900
|
["circle", { cx: "19", cy: "16", r: "2", key: "15mx69" }],
|
|
901
901
|
["path", { d: "M20 10c-2 2-3 3.5-3 6", key: "f35dl0" }]
|
|
902
|
-
],
|
|
902
|
+
], Qt = L("Heading6", ri);
|
|
903
903
|
/**
|
|
904
904
|
* @license lucide-react v0.474.0 - ISC
|
|
905
905
|
*
|
|
@@ -1104,12 +1104,12 @@ const Oi = [
|
|
|
1104
1104
|
* This source code is licensed under the ISC license.
|
|
1105
1105
|
* See the LICENSE file in the root directory of this source tree.
|
|
1106
1106
|
*/
|
|
1107
|
-
const
|
|
1107
|
+
const Ti = [
|
|
1108
1108
|
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
1109
1109
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
1110
1110
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
1111
1111
|
["path", { d: "M3 15h18", key: "5xshup" }]
|
|
1112
|
-
],
|
|
1112
|
+
], Pi = L("Table", Ti);
|
|
1113
1113
|
/**
|
|
1114
1114
|
* @license lucide-react v0.474.0 - ISC
|
|
1115
1115
|
*
|
|
@@ -1238,7 +1238,7 @@ function Li({ editor: e }) {
|
|
|
1238
1238
|
columnNumber: 9
|
|
1239
1239
|
}, this);
|
|
1240
1240
|
}
|
|
1241
|
-
const
|
|
1241
|
+
const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
1242
1242
|
fn,
|
|
1243
1243
|
{
|
|
1244
1244
|
value: e,
|
|
@@ -1284,7 +1284,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1284
1284
|
lineNumber: 33,
|
|
1285
1285
|
columnNumber: 21
|
|
1286
1286
|
}, void 0),
|
|
1287
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1287
|
+
/* @__PURE__ */ l.jsxDEV(Fe, { value: t, onChange: a }, void 0, !1, {
|
|
1288
1288
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
|
|
1289
1289
|
lineNumber: 34,
|
|
1290
1290
|
columnNumber: 21
|
|
@@ -1304,7 +1304,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1304
1304
|
lineNumber: 41,
|
|
1305
1305
|
columnNumber: 21
|
|
1306
1306
|
}, void 0),
|
|
1307
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1307
|
+
/* @__PURE__ */ l.jsxDEV(Fe, { value: n, onChange: s }, void 0, !1, {
|
|
1308
1308
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
|
|
1309
1309
|
lineNumber: 42,
|
|
1310
1310
|
columnNumber: 21
|
|
@@ -1336,31 +1336,31 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1336
1336
|
columnNumber: 36
|
|
1337
1337
|
}, void 0);
|
|
1338
1338
|
case 2:
|
|
1339
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1339
|
+
return /* @__PURE__ */ l.jsxDEV(Kt, { size: 16 }, void 0, !1, {
|
|
1340
1340
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1341
1341
|
lineNumber: 16,
|
|
1342
1342
|
columnNumber: 36
|
|
1343
1343
|
}, void 0);
|
|
1344
1344
|
case 3:
|
|
1345
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1345
|
+
return /* @__PURE__ */ l.jsxDEV(Gt, { size: 16 }, void 0, !1, {
|
|
1346
1346
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1347
1347
|
lineNumber: 17,
|
|
1348
1348
|
columnNumber: 36
|
|
1349
1349
|
}, void 0);
|
|
1350
1350
|
case 4:
|
|
1351
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1351
|
+
return /* @__PURE__ */ l.jsxDEV(Jt, { size: 16 }, void 0, !1, {
|
|
1352
1352
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1353
1353
|
lineNumber: 18,
|
|
1354
1354
|
columnNumber: 36
|
|
1355
1355
|
}, void 0);
|
|
1356
1356
|
case 5:
|
|
1357
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1357
|
+
return /* @__PURE__ */ l.jsxDEV(Zt, { size: 16 }, void 0, !1, {
|
|
1358
1358
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1359
1359
|
lineNumber: 19,
|
|
1360
1360
|
columnNumber: 36
|
|
1361
1361
|
}, void 0);
|
|
1362
1362
|
case 6:
|
|
1363
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1363
|
+
return /* @__PURE__ */ l.jsxDEV(Qt, { size: 16 }, void 0, !1, {
|
|
1364
1364
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1365
1365
|
lineNumber: 20,
|
|
1366
1366
|
columnNumber: 36
|
|
@@ -1375,7 +1375,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1375
1375
|
...Array.from({ length: 6 }, (n, o) => ({
|
|
1376
1376
|
key: `${o + 1}`,
|
|
1377
1377
|
label: /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-2", onClick: () => e.chain().focus().toggleHeading({ level: o + 1 }).run(), children: [
|
|
1378
|
-
_e.createElement([ot, Gt, Jt, Zt, Qt
|
|
1378
|
+
_e.createElement([ot, Kt, Gt, Jt, Zt, Qt][o], { size: 16 }),
|
|
1379
1379
|
/* @__PURE__ */ l.jsxDEV("span", { children: [
|
|
1380
1380
|
"Heading ",
|
|
1381
1381
|
o + 1
|
|
@@ -1392,7 +1392,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1392
1392
|
className: e.isActive("heading", { level: o + 1 }) ? "ant-dropdown-menu-item-active" : ""
|
|
1393
1393
|
}))
|
|
1394
1394
|
];
|
|
1395
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1395
|
+
return /* @__PURE__ */ l.jsxDEV(Ct, { menu: { items: r }, trigger: ["hover"], placement: "bottomLeft", children: /* @__PURE__ */ l.jsxDEV("button", { className: "flex items-center gap-1 p-2 rounded-md hover:bg-blue-100 hover:text-blue-600", children: t() }, void 0, !1, {
|
|
1396
1396
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1397
1397
|
lineNumber: 42,
|
|
1398
1398
|
columnNumber: 13
|
|
@@ -1401,7 +1401,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1401
1401
|
lineNumber: 41,
|
|
1402
1402
|
columnNumber: 9
|
|
1403
1403
|
}, void 0);
|
|
1404
|
-
}, Yi = 8,
|
|
1404
|
+
}, Yi = 8, Fi = 8, Ui = ({
|
|
1405
1405
|
editor: e,
|
|
1406
1406
|
buttonClass: t,
|
|
1407
1407
|
activeClass: r
|
|
@@ -1410,23 +1410,23 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1410
1410
|
e.chain().focus().insertTable({ rows: m, cols: p, withHeaderRow: !0 }).run(), s(!1);
|
|
1411
1411
|
};
|
|
1412
1412
|
return /* @__PURE__ */ l.jsxDEV(
|
|
1413
|
-
|
|
1413
|
+
Ct,
|
|
1414
1414
|
{
|
|
1415
1415
|
open: a,
|
|
1416
1416
|
onOpenChange: s,
|
|
1417
1417
|
trigger: ["hover"],
|
|
1418
1418
|
overlay: /* @__PURE__ */ l.jsxDEV("div", { className: "w-56 p-4 bg-white border border-gray-300 rounded-lg shadow-xl", children: [
|
|
1419
1419
|
/* @__PURE__ */ l.jsxDEV("div", { className: "grid grid-cols-8 gap-1", children: Array.from({ length: Yi }).map(
|
|
1420
|
-
(m, p) => Array.from({ length:
|
|
1421
|
-
const O = p < n.rows &&
|
|
1420
|
+
(m, p) => Array.from({ length: Fi }).map((y, v) => {
|
|
1421
|
+
const O = p < n.rows && v < n.cols;
|
|
1422
1422
|
return /* @__PURE__ */ l.jsxDEV(
|
|
1423
1423
|
"div",
|
|
1424
1424
|
{
|
|
1425
1425
|
className: `w-5 h-5 border rounded-sm cursor-pointer transition-all duration-200 ${O ? "bg-blue-400 border-white scale-110" : "bg-gray-200 hover:bg-gray-300"}`,
|
|
1426
|
-
onMouseEnter: () => o({ rows: p + 1, cols:
|
|
1427
|
-
onClick: () => u(p + 1,
|
|
1426
|
+
onMouseEnter: () => o({ rows: p + 1, cols: v + 1 }),
|
|
1427
|
+
onClick: () => u(p + 1, v + 1)
|
|
1428
1428
|
},
|
|
1429
|
-
`${p}-${
|
|
1429
|
+
`${p}-${v}`,
|
|
1430
1430
|
!1,
|
|
1431
1431
|
{
|
|
1432
1432
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/table/table-selector.tsx",
|
|
@@ -1455,7 +1455,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1455
1455
|
"button",
|
|
1456
1456
|
{
|
|
1457
1457
|
className: `${t} ${a ? r : ""} transition-all`,
|
|
1458
|
-
children: /* @__PURE__ */ l.jsxDEV(
|
|
1458
|
+
children: /* @__PURE__ */ l.jsxDEV(Pi, { className: "w-5 h-5" }, void 0, !1, {
|
|
1459
1459
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/table/table-selector.tsx",
|
|
1460
1460
|
lineNumber: 65,
|
|
1461
1461
|
columnNumber: 17
|
|
@@ -1481,8 +1481,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1481
1481
|
void 0
|
|
1482
1482
|
);
|
|
1483
1483
|
};
|
|
1484
|
-
function Bi() {
|
|
1485
|
-
const { editor: e } = Ct();
|
|
1484
|
+
function Bi({ editor: e }) {
|
|
1486
1485
|
if (!e) return null;
|
|
1487
1486
|
const t = "p-2 rounded-md transition-all duration-200 hover:bg-blue-100 hover:text-blue-600", r = "bg-blue-100 text-blue-600", n = (o, a, s, u, m) => /* @__PURE__ */ l.jsxDEV(vt, { title: m, children: /* @__PURE__ */ l.jsxDEV(
|
|
1488
1487
|
"button",
|
|
@@ -1501,13 +1500,13 @@ function Bi() {
|
|
|
1501
1500
|
!1,
|
|
1502
1501
|
{
|
|
1503
1502
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1504
|
-
lineNumber:
|
|
1503
|
+
lineNumber: 32,
|
|
1505
1504
|
columnNumber: 13
|
|
1506
1505
|
},
|
|
1507
1506
|
this
|
|
1508
1507
|
) }, void 0, !1, {
|
|
1509
1508
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1510
|
-
lineNumber:
|
|
1509
|
+
lineNumber: 31,
|
|
1511
1510
|
columnNumber: 9
|
|
1512
1511
|
}, this);
|
|
1513
1512
|
return /* @__PURE__ */ l.jsxDEV("div", { className: "flex flex-wrap items-center gap-2 p-2 border-b border-gray-200 rounded-t-lg bg-gray-50", children: [
|
|
@@ -1515,7 +1514,7 @@ function Bi() {
|
|
|
1515
1514
|
n(
|
|
1516
1515
|
/* @__PURE__ */ l.jsxDEV(Yn, { size: 16 }, void 0, !1, {
|
|
1517
1516
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1518
|
-
lineNumber:
|
|
1517
|
+
lineNumber: 52,
|
|
1519
1518
|
columnNumber: 21
|
|
1520
1519
|
}, this),
|
|
1521
1520
|
() => e.chain().focus().toggleBold().run(),
|
|
@@ -1526,7 +1525,7 @@ function Bi() {
|
|
|
1526
1525
|
n(
|
|
1527
1526
|
/* @__PURE__ */ l.jsxDEV(ai, { size: 16 }, void 0, !1, {
|
|
1528
1527
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1529
|
-
lineNumber:
|
|
1528
|
+
lineNumber: 59,
|
|
1530
1529
|
columnNumber: 21
|
|
1531
1530
|
}, this),
|
|
1532
1531
|
() => e.chain().focus().toggleItalic().run(),
|
|
@@ -1537,7 +1536,7 @@ function Bi() {
|
|
|
1537
1536
|
n(
|
|
1538
1537
|
/* @__PURE__ */ l.jsxDEV(Ai, { size: 16 }, void 0, !1, {
|
|
1539
1538
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1540
|
-
lineNumber:
|
|
1539
|
+
lineNumber: 66,
|
|
1541
1540
|
columnNumber: 21
|
|
1542
1541
|
}, this),
|
|
1543
1542
|
() => e.chain().focus().toggleUnderline().run(),
|
|
@@ -1548,7 +1547,7 @@ function Bi() {
|
|
|
1548
1547
|
n(
|
|
1549
1548
|
/* @__PURE__ */ l.jsxDEV(ki, { size: 16 }, void 0, !1, {
|
|
1550
1549
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1551
|
-
lineNumber:
|
|
1550
|
+
lineNumber: 73,
|
|
1552
1551
|
columnNumber: 21
|
|
1553
1552
|
}, this),
|
|
1554
1553
|
() => e.chain().focus().toggleStrike().run(),
|
|
@@ -1559,7 +1558,7 @@ function Bi() {
|
|
|
1559
1558
|
n(
|
|
1560
1559
|
/* @__PURE__ */ l.jsxDEV(Xn, { size: 16 }, void 0, !1, {
|
|
1561
1560
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1562
|
-
lineNumber:
|
|
1561
|
+
lineNumber: 80,
|
|
1563
1562
|
columnNumber: 21
|
|
1564
1563
|
}, this),
|
|
1565
1564
|
() => e.chain().focus().toggleCode().run(),
|
|
@@ -1570,7 +1569,7 @@ function Bi() {
|
|
|
1570
1569
|
n(
|
|
1571
1570
|
/* @__PURE__ */ l.jsxDEV(_i, { size: 16 }, void 0, !1, {
|
|
1572
1571
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1573
|
-
lineNumber:
|
|
1572
|
+
lineNumber: 87,
|
|
1574
1573
|
columnNumber: 21
|
|
1575
1574
|
}, this),
|
|
1576
1575
|
() => e.chain().focus().toggleSubscript().run(),
|
|
@@ -1581,7 +1580,7 @@ function Bi() {
|
|
|
1581
1580
|
n(
|
|
1582
1581
|
/* @__PURE__ */ l.jsxDEV(Ri, { size: 16 }, void 0, !1, {
|
|
1583
1582
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1584
|
-
lineNumber:
|
|
1583
|
+
lineNumber: 94,
|
|
1585
1584
|
columnNumber: 21
|
|
1586
1585
|
}, this),
|
|
1587
1586
|
() => e.chain().focus().toggleSuperscript().run(),
|
|
@@ -1591,29 +1590,29 @@ function Bi() {
|
|
|
1591
1590
|
)
|
|
1592
1591
|
] }, void 0, !0, {
|
|
1593
1592
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1594
|
-
lineNumber:
|
|
1593
|
+
lineNumber: 50,
|
|
1595
1594
|
columnNumber: 13
|
|
1596
1595
|
}, this),
|
|
1597
1596
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1598
1597
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1599
|
-
lineNumber:
|
|
1598
|
+
lineNumber: 102,
|
|
1600
1599
|
columnNumber: 13
|
|
1601
1600
|
}, this),
|
|
1602
1601
|
/* @__PURE__ */ l.jsxDEV(qi, { editor: e }, void 0, !1, {
|
|
1603
1602
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1604
|
-
lineNumber:
|
|
1603
|
+
lineNumber: 105,
|
|
1605
1604
|
columnNumber: 13
|
|
1606
1605
|
}, this),
|
|
1607
1606
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1608
1607
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1609
|
-
lineNumber:
|
|
1608
|
+
lineNumber: 107,
|
|
1610
1609
|
columnNumber: 13
|
|
1611
1610
|
}, this),
|
|
1612
1611
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1613
1612
|
n(
|
|
1614
1613
|
/* @__PURE__ */ l.jsxDEV(Hn, { size: 16 }, void 0, !1, {
|
|
1615
1614
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1616
|
-
lineNumber:
|
|
1615
|
+
lineNumber: 112,
|
|
1617
1616
|
columnNumber: 21
|
|
1618
1617
|
}, this),
|
|
1619
1618
|
() => e.chain().focus().setTextAlign("left").run(),
|
|
@@ -1624,7 +1623,7 @@ function Bi() {
|
|
|
1624
1623
|
n(
|
|
1625
1624
|
/* @__PURE__ */ l.jsxDEV(An, { size: 16 }, void 0, !1, {
|
|
1626
1625
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1627
|
-
lineNumber:
|
|
1626
|
+
lineNumber: 119,
|
|
1628
1627
|
columnNumber: 21
|
|
1629
1628
|
}, this),
|
|
1630
1629
|
() => e.chain().focus().setTextAlign("center").run(),
|
|
@@ -1635,7 +1634,7 @@ function Bi() {
|
|
|
1635
1634
|
n(
|
|
1636
1635
|
/* @__PURE__ */ l.jsxDEV(Wn, { size: 16 }, void 0, !1, {
|
|
1637
1636
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1638
|
-
lineNumber:
|
|
1637
|
+
lineNumber: 124,
|
|
1639
1638
|
columnNumber: 21
|
|
1640
1639
|
}, this),
|
|
1641
1640
|
() => e.chain().focus().setTextAlign("right").run(),
|
|
@@ -1646,7 +1645,7 @@ function Bi() {
|
|
|
1646
1645
|
n(
|
|
1647
1646
|
/* @__PURE__ */ l.jsxDEV(zn, { size: 16 }, void 0, !1, {
|
|
1648
1647
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1649
|
-
lineNumber:
|
|
1648
|
+
lineNumber: 129,
|
|
1650
1649
|
columnNumber: 21
|
|
1651
1650
|
}, this),
|
|
1652
1651
|
() => e.chain().focus().setTextAlign("justify").run(),
|
|
@@ -1656,19 +1655,19 @@ function Bi() {
|
|
|
1656
1655
|
)
|
|
1657
1656
|
] }, void 0, !0, {
|
|
1658
1657
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1659
|
-
lineNumber:
|
|
1658
|
+
lineNumber: 110,
|
|
1660
1659
|
columnNumber: 13
|
|
1661
1660
|
}, this),
|
|
1662
1661
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1663
1662
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1664
|
-
lineNumber:
|
|
1663
|
+
lineNumber: 135,
|
|
1665
1664
|
columnNumber: 13
|
|
1666
1665
|
}, this),
|
|
1667
1666
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1668
1667
|
n(
|
|
1669
1668
|
/* @__PURE__ */ l.jsxDEV(fi, { size: 16 }, void 0, !1, {
|
|
1670
1669
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1671
|
-
lineNumber:
|
|
1670
|
+
lineNumber: 140,
|
|
1672
1671
|
columnNumber: 21
|
|
1673
1672
|
}, this),
|
|
1674
1673
|
() => e.chain().focus().toggleBulletList().run(),
|
|
@@ -1679,7 +1678,7 @@ function Bi() {
|
|
|
1679
1678
|
n(
|
|
1680
1679
|
/* @__PURE__ */ l.jsxDEV(ui, { size: 16 }, void 0, !1, {
|
|
1681
1680
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1682
|
-
lineNumber:
|
|
1681
|
+
lineNumber: 145,
|
|
1683
1682
|
columnNumber: 21
|
|
1684
1683
|
}, this),
|
|
1685
1684
|
() => e.chain().focus().toggleOrderedList().run(),
|
|
@@ -1690,7 +1689,7 @@ function Bi() {
|
|
|
1690
1689
|
n(
|
|
1691
1690
|
/* @__PURE__ */ l.jsxDEV(wi, { size: 16 }, void 0, !1, {
|
|
1692
1691
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1693
|
-
lineNumber:
|
|
1692
|
+
lineNumber: 150,
|
|
1694
1693
|
columnNumber: 21
|
|
1695
1694
|
}, this),
|
|
1696
1695
|
() => e.chain().focus().toggleTaskList().run(),
|
|
@@ -1700,19 +1699,19 @@ function Bi() {
|
|
|
1700
1699
|
)
|
|
1701
1700
|
] }, void 0, !0, {
|
|
1702
1701
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1703
|
-
lineNumber:
|
|
1702
|
+
lineNumber: 138,
|
|
1704
1703
|
columnNumber: 13
|
|
1705
1704
|
}, this),
|
|
1706
1705
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1707
1706
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1708
|
-
lineNumber:
|
|
1707
|
+
lineNumber: 156,
|
|
1709
1708
|
columnNumber: 13
|
|
1710
1709
|
}, this),
|
|
1711
1710
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1712
1711
|
n(
|
|
1713
1712
|
/* @__PURE__ */ l.jsxDEV(xi, { size: 16 }, void 0, !1, {
|
|
1714
1713
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1715
|
-
lineNumber:
|
|
1714
|
+
lineNumber: 161,
|
|
1716
1715
|
columnNumber: 21
|
|
1717
1716
|
}, this),
|
|
1718
1717
|
() => e.chain().focus().toggleBlockquote().run(),
|
|
@@ -1720,15 +1719,15 @@ function Bi() {
|
|
|
1720
1719
|
!1,
|
|
1721
1720
|
"Blockquote"
|
|
1722
1721
|
),
|
|
1723
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1722
|
+
/* @__PURE__ */ l.jsxDEV(Ui, { editor: e, buttonClass: t, activeClass: r }, void 0, !1, {
|
|
1724
1723
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1725
|
-
lineNumber:
|
|
1724
|
+
lineNumber: 165,
|
|
1726
1725
|
columnNumber: 17
|
|
1727
1726
|
}, this),
|
|
1728
1727
|
n(
|
|
1729
1728
|
/* @__PURE__ */ l.jsxDEV(pi, { size: 16 }, void 0, !1, {
|
|
1730
1729
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1731
|
-
lineNumber:
|
|
1730
|
+
lineNumber: 167,
|
|
1732
1731
|
columnNumber: 21
|
|
1733
1732
|
}, this),
|
|
1734
1733
|
() => e.chain().focus().setHorizontalRule().run(),
|
|
@@ -1739,7 +1738,7 @@ function Bi() {
|
|
|
1739
1738
|
n(
|
|
1740
1739
|
/* @__PURE__ */ l.jsxDEV(Gn, { size: 16 }, void 0, !1, {
|
|
1741
1740
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1742
|
-
lineNumber:
|
|
1741
|
+
lineNumber: 171,
|
|
1743
1742
|
columnNumber: 21
|
|
1744
1743
|
}, this),
|
|
1745
1744
|
() => e.chain().focus().setHardBreak().run(),
|
|
@@ -1749,19 +1748,19 @@ function Bi() {
|
|
|
1749
1748
|
)
|
|
1750
1749
|
] }, void 0, !0, {
|
|
1751
1750
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1752
|
-
lineNumber:
|
|
1751
|
+
lineNumber: 159,
|
|
1753
1752
|
columnNumber: 13
|
|
1754
1753
|
}, this),
|
|
1755
1754
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1756
1755
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1757
|
-
lineNumber:
|
|
1756
|
+
lineNumber: 176,
|
|
1758
1757
|
columnNumber: 13
|
|
1759
1758
|
}, this),
|
|
1760
1759
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1761
1760
|
n(
|
|
1762
1761
|
/* @__PURE__ */ l.jsxDEV(zi, { size: 16 }, void 0, !1, {
|
|
1763
1762
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1764
|
-
lineNumber:
|
|
1763
|
+
lineNumber: 181,
|
|
1765
1764
|
columnNumber: 21
|
|
1766
1765
|
}, this),
|
|
1767
1766
|
() => e.chain().focus().undo().run(),
|
|
@@ -1771,7 +1770,7 @@ function Bi() {
|
|
|
1771
1770
|
n(
|
|
1772
1771
|
/* @__PURE__ */ l.jsxDEV(Ei, { size: 16 }, void 0, !1, {
|
|
1773
1772
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1774
|
-
lineNumber:
|
|
1773
|
+
lineNumber: 187,
|
|
1775
1774
|
columnNumber: 21
|
|
1776
1775
|
}, this),
|
|
1777
1776
|
() => e.chain().focus().redo().run(),
|
|
@@ -1780,18 +1779,18 @@ function Bi() {
|
|
|
1780
1779
|
)
|
|
1781
1780
|
] }, void 0, !0, {
|
|
1782
1781
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1783
|
-
lineNumber:
|
|
1782
|
+
lineNumber: 179,
|
|
1784
1783
|
columnNumber: 13
|
|
1785
1784
|
}, this),
|
|
1786
1785
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1787
1786
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1788
|
-
lineNumber:
|
|
1787
|
+
lineNumber: 194,
|
|
1789
1788
|
columnNumber: 13
|
|
1790
1789
|
}, this),
|
|
1791
1790
|
n(
|
|
1792
1791
|
/* @__PURE__ */ l.jsxDEV(ii, { size: 16 }, void 0, !1, {
|
|
1793
1792
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1794
|
-
lineNumber:
|
|
1793
|
+
lineNumber: 197,
|
|
1795
1794
|
columnNumber: 17
|
|
1796
1795
|
}, this),
|
|
1797
1796
|
() => {
|
|
@@ -1811,27 +1810,27 @@ function Bi() {
|
|
|
1811
1810
|
),
|
|
1812
1811
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1813
1812
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1814
|
-
lineNumber:
|
|
1813
|
+
lineNumber: 215,
|
|
1815
1814
|
columnNumber: 13
|
|
1816
1815
|
}, this),
|
|
1817
1816
|
/* @__PURE__ */ l.jsxDEV(Wi, { editor: e }, void 0, !1, {
|
|
1818
1817
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1819
|
-
lineNumber:
|
|
1818
|
+
lineNumber: 218,
|
|
1820
1819
|
columnNumber: 13
|
|
1821
1820
|
}, this),
|
|
1822
1821
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1823
1822
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1824
|
-
lineNumber:
|
|
1823
|
+
lineNumber: 220,
|
|
1825
1824
|
columnNumber: 13
|
|
1826
1825
|
}, this),
|
|
1827
1826
|
/* @__PURE__ */ l.jsxDEV(Li, { editor: e }, void 0, !1, {
|
|
1828
1827
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1829
|
-
lineNumber:
|
|
1828
|
+
lineNumber: 221,
|
|
1830
1829
|
columnNumber: 13
|
|
1831
1830
|
}, this)
|
|
1832
1831
|
] }, void 0, !0, {
|
|
1833
1832
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1834
|
-
lineNumber:
|
|
1833
|
+
lineNumber: 48,
|
|
1835
1834
|
columnNumber: 9
|
|
1836
1835
|
}, this);
|
|
1837
1836
|
}
|
|
@@ -1851,7 +1850,7 @@ const Sr = ({
|
|
|
1851
1850
|
columnNumber: 9
|
|
1852
1851
|
}, void 0) : null;
|
|
1853
1852
|
return /* @__PURE__ */ l.jsxDEV("div", { children: [
|
|
1854
|
-
r && s ? /* @__PURE__ */ l.jsxDEV(
|
|
1853
|
+
r && s ? /* @__PURE__ */ l.jsxDEV(Ct, { overlay: s, trigger: ["contextMenu"], children: t }, void 0, !1, {
|
|
1855
1854
|
fileName: "E:/CyberSkill/cyber-editor/src/components/modal-edit.tsx",
|
|
1856
1855
|
lineNumber: 28,
|
|
1857
1856
|
columnNumber: 17
|
|
@@ -1879,15 +1878,13 @@ const Sr = ({
|
|
|
1879
1878
|
lineNumber: 26,
|
|
1880
1879
|
columnNumber: 9
|
|
1881
1880
|
}, void 0);
|
|
1882
|
-
}, Xi = () => {
|
|
1883
|
-
const [
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
},
|
|
1888
|
-
|
|
1889
|
-
}, p = (b) => {
|
|
1890
|
-
u(b.toHexString());
|
|
1881
|
+
}, Xi = ({ node: e, editor: t }) => {
|
|
1882
|
+
const [r, n] = he(!1), [o, a] = he(e.attrs.bgColor || "#f3f4f6"), [s, u] = he(e.attrs.titleColor || "#000000"), m = (v) => {
|
|
1883
|
+
v.preventDefault();
|
|
1884
|
+
}, p = (v) => {
|
|
1885
|
+
a(v.toHexString());
|
|
1886
|
+
}, y = (v) => {
|
|
1887
|
+
u(v.toHexString());
|
|
1891
1888
|
};
|
|
1892
1889
|
return /* @__PURE__ */ l.jsxDEV(yr, { className: "accordion-wrapper", children: /* @__PURE__ */ l.jsxDEV(
|
|
1893
1890
|
Sr,
|
|
@@ -1897,21 +1894,22 @@ const Sr = ({
|
|
|
1897
1894
|
"div",
|
|
1898
1895
|
{
|
|
1899
1896
|
className: "my-4 transition-all duration-300 border rounded-lg shadow-sm",
|
|
1900
|
-
onContextMenu:
|
|
1897
|
+
onContextMenu: m,
|
|
1901
1898
|
children: [
|
|
1902
1899
|
/* @__PURE__ */ l.jsxDEV(
|
|
1903
1900
|
"div",
|
|
1904
1901
|
{
|
|
1905
1902
|
className: "flex items-center justify-between p-4 transition-colors accordion-header",
|
|
1906
1903
|
style: { backgroundColor: o },
|
|
1907
|
-
onClick: () =>
|
|
1904
|
+
onClick: () => n(!r),
|
|
1908
1905
|
children: [
|
|
1909
1906
|
/* @__PURE__ */ l.jsxDEV(
|
|
1910
1907
|
"input",
|
|
1911
1908
|
{
|
|
1912
1909
|
className: "w-full text-lg font-medium bg-transparent border-none outline-none",
|
|
1913
1910
|
style: { color: s },
|
|
1914
|
-
|
|
1911
|
+
defaultValue: e.attrs.title || "Accordion Title",
|
|
1912
|
+
disabled: !t.isEditable,
|
|
1915
1913
|
suppressContentEditableWarning: !0,
|
|
1916
1914
|
contentEditable: !0,
|
|
1917
1915
|
placeholder: "Accordion title"
|
|
@@ -1920,22 +1918,22 @@ const Sr = ({
|
|
|
1920
1918
|
!1,
|
|
1921
1919
|
{
|
|
1922
1920
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1923
|
-
lineNumber:
|
|
1921
|
+
lineNumber: 38,
|
|
1924
1922
|
columnNumber: 29
|
|
1925
1923
|
},
|
|
1926
1924
|
void 0
|
|
1927
1925
|
),
|
|
1928
1926
|
/* @__PURE__ */ l.jsxDEV(
|
|
1929
|
-
|
|
1927
|
+
Un,
|
|
1930
1928
|
{
|
|
1931
|
-
className: `transition-transform duration-300 ${
|
|
1929
|
+
className: `transition-transform duration-300 ${r ? "rotate-180" : ""}`,
|
|
1932
1930
|
size: 20
|
|
1933
1931
|
},
|
|
1934
1932
|
void 0,
|
|
1935
1933
|
!1,
|
|
1936
1934
|
{
|
|
1937
1935
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1938
|
-
lineNumber:
|
|
1936
|
+
lineNumber: 47,
|
|
1939
1937
|
columnNumber: 29
|
|
1940
1938
|
},
|
|
1941
1939
|
void 0
|
|
@@ -1946,7 +1944,7 @@ const Sr = ({
|
|
|
1946
1944
|
!0,
|
|
1947
1945
|
{
|
|
1948
1946
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1949
|
-
lineNumber:
|
|
1947
|
+
lineNumber: 33,
|
|
1950
1948
|
columnNumber: 25
|
|
1951
1949
|
},
|
|
1952
1950
|
void 0
|
|
@@ -1954,23 +1952,23 @@ const Sr = ({
|
|
|
1954
1952
|
/* @__PURE__ */ l.jsxDEV(
|
|
1955
1953
|
"div",
|
|
1956
1954
|
{
|
|
1957
|
-
className: `overflow-hidden duration-300 ease-in-out ${
|
|
1955
|
+
className: `overflow-hidden duration-300 ease-in-out ${r ? "max-h-96 opacity-100" : "max-h-0 opacity-0"} `,
|
|
1958
1956
|
children: /* @__PURE__ */ l.jsxDEV("div", { className: "p-4 border-t", children: /* @__PURE__ */ l.jsxDEV(
|
|
1959
|
-
|
|
1957
|
+
ln,
|
|
1960
1958
|
{
|
|
1961
|
-
contentEditable:
|
|
1959
|
+
contentEditable: t.isEditable
|
|
1962
1960
|
},
|
|
1963
1961
|
void 0,
|
|
1964
1962
|
!1,
|
|
1965
1963
|
{
|
|
1966
1964
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1967
|
-
lineNumber:
|
|
1965
|
+
lineNumber: 57,
|
|
1968
1966
|
columnNumber: 33
|
|
1969
1967
|
},
|
|
1970
1968
|
void 0
|
|
1971
1969
|
) }, void 0, !1, {
|
|
1972
1970
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1973
|
-
lineNumber:
|
|
1971
|
+
lineNumber: 56,
|
|
1974
1972
|
columnNumber: 29
|
|
1975
1973
|
}, void 0)
|
|
1976
1974
|
},
|
|
@@ -1978,7 +1976,7 @@ const Sr = ({
|
|
|
1978
1976
|
!1,
|
|
1979
1977
|
{
|
|
1980
1978
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1981
|
-
lineNumber:
|
|
1979
|
+
lineNumber: 53,
|
|
1982
1980
|
columnNumber: 25
|
|
1983
1981
|
},
|
|
1984
1982
|
void 0
|
|
@@ -1989,18 +1987,18 @@ const Sr = ({
|
|
|
1989
1987
|
!0,
|
|
1990
1988
|
{
|
|
1991
1989
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1992
|
-
lineNumber:
|
|
1990
|
+
lineNumber: 29,
|
|
1993
1991
|
columnNumber: 21
|
|
1994
1992
|
},
|
|
1995
1993
|
void 0
|
|
1996
1994
|
),
|
|
1997
|
-
editable:
|
|
1995
|
+
editable: t.isEditable,
|
|
1998
1996
|
childrenEdit: /* @__PURE__ */ l.jsxDEV("div", { className: "px-6 py-4 space-y-6 rounded-lg bg-gray-50", children: [
|
|
1999
1997
|
/* @__PURE__ */ l.jsxDEV("div", { className: "grid grid-cols-1 gap-6", children: [
|
|
2000
1998
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex flex-col space-y-2", children: [
|
|
2001
1999
|
/* @__PURE__ */ l.jsxDEV("label", { className: "font-medium text-gray-700", children: "Background Color" }, void 0, !1, {
|
|
2002
2000
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2003
|
-
lineNumber:
|
|
2001
|
+
lineNumber: 69,
|
|
2004
2002
|
columnNumber: 33
|
|
2005
2003
|
}, void 0),
|
|
2006
2004
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center space-x-3", children: [
|
|
@@ -2014,30 +2012,30 @@ const Sr = ({
|
|
|
2014
2012
|
!1,
|
|
2015
2013
|
{
|
|
2016
2014
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2017
|
-
lineNumber:
|
|
2015
|
+
lineNumber: 71,
|
|
2018
2016
|
columnNumber: 37
|
|
2019
2017
|
},
|
|
2020
2018
|
void 0
|
|
2021
2019
|
),
|
|
2022
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
2020
|
+
/* @__PURE__ */ l.jsxDEV(Fe, { value: o, onChange: p }, void 0, !1, {
|
|
2023
2021
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2024
|
-
lineNumber:
|
|
2022
|
+
lineNumber: 75,
|
|
2025
2023
|
columnNumber: 37
|
|
2026
2024
|
}, void 0)
|
|
2027
2025
|
] }, void 0, !0, {
|
|
2028
2026
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2029
|
-
lineNumber:
|
|
2027
|
+
lineNumber: 70,
|
|
2030
2028
|
columnNumber: 33
|
|
2031
2029
|
}, void 0)
|
|
2032
2030
|
] }, void 0, !0, {
|
|
2033
2031
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2034
|
-
lineNumber:
|
|
2032
|
+
lineNumber: 68,
|
|
2035
2033
|
columnNumber: 29
|
|
2036
2034
|
}, void 0),
|
|
2037
2035
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex flex-col space-y-2", children: [
|
|
2038
2036
|
/* @__PURE__ */ l.jsxDEV("label", { className: "font-medium text-gray-700", children: "Title Color" }, void 0, !1, {
|
|
2039
2037
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2040
|
-
lineNumber:
|
|
2038
|
+
lineNumber: 80,
|
|
2041
2039
|
columnNumber: 33
|
|
2042
2040
|
}, void 0),
|
|
2043
2041
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center space-x-3", children: [
|
|
@@ -2051,58 +2049,58 @@ const Sr = ({
|
|
|
2051
2049
|
!1,
|
|
2052
2050
|
{
|
|
2053
2051
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2054
|
-
lineNumber:
|
|
2052
|
+
lineNumber: 82,
|
|
2055
2053
|
columnNumber: 37
|
|
2056
2054
|
},
|
|
2057
2055
|
void 0
|
|
2058
2056
|
),
|
|
2059
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
2057
|
+
/* @__PURE__ */ l.jsxDEV(Fe, { value: s, onChange: y }, void 0, !1, {
|
|
2060
2058
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2061
|
-
lineNumber:
|
|
2059
|
+
lineNumber: 86,
|
|
2062
2060
|
columnNumber: 37
|
|
2063
2061
|
}, void 0)
|
|
2064
2062
|
] }, void 0, !0, {
|
|
2065
2063
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2066
|
-
lineNumber:
|
|
2064
|
+
lineNumber: 81,
|
|
2067
2065
|
columnNumber: 33
|
|
2068
2066
|
}, void 0)
|
|
2069
2067
|
] }, void 0, !0, {
|
|
2070
2068
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2071
|
-
lineNumber:
|
|
2069
|
+
lineNumber: 79,
|
|
2072
2070
|
columnNumber: 29
|
|
2073
2071
|
}, void 0)
|
|
2074
2072
|
] }, void 0, !0, {
|
|
2075
2073
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2076
|
-
lineNumber:
|
|
2074
|
+
lineNumber: 67,
|
|
2077
2075
|
columnNumber: 25
|
|
2078
2076
|
}, void 0),
|
|
2079
2077
|
/* @__PURE__ */ l.jsxDEV("div", { className: "pt-4 border-t border-gray-200", children: /* @__PURE__ */ l.jsxDEV("div", { className: "p-3 bg-white border rounded-md", children: [
|
|
2080
2078
|
/* @__PURE__ */ l.jsxDEV("div", { className: "text-sm text-gray-600", children: "Preview" }, void 0, !1, {
|
|
2081
2079
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2082
|
-
lineNumber:
|
|
2080
|
+
lineNumber: 93,
|
|
2083
2081
|
columnNumber: 33
|
|
2084
2082
|
}, void 0),
|
|
2085
2083
|
/* @__PURE__ */ l.jsxDEV("div", { className: "p-2 mt-2 rounded", style: { backgroundColor: o }, children: /* @__PURE__ */ l.jsxDEV("span", { style: { color: s, fontWeight: 500 }, children: "Accordion Title" }, void 0, !1, {
|
|
2086
2084
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2087
|
-
lineNumber:
|
|
2085
|
+
lineNumber: 95,
|
|
2088
2086
|
columnNumber: 37
|
|
2089
2087
|
}, void 0) }, void 0, !1, {
|
|
2090
2088
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2091
|
-
lineNumber:
|
|
2089
|
+
lineNumber: 94,
|
|
2092
2090
|
columnNumber: 33
|
|
2093
2091
|
}, void 0)
|
|
2094
2092
|
] }, void 0, !0, {
|
|
2095
2093
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2096
|
-
lineNumber:
|
|
2094
|
+
lineNumber: 92,
|
|
2097
2095
|
columnNumber: 29
|
|
2098
2096
|
}, void 0) }, void 0, !1, {
|
|
2099
2097
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2100
|
-
lineNumber:
|
|
2098
|
+
lineNumber: 91,
|
|
2101
2099
|
columnNumber: 25
|
|
2102
2100
|
}, void 0)
|
|
2103
2101
|
] }, void 0, !0, {
|
|
2104
2102
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2105
|
-
lineNumber:
|
|
2103
|
+
lineNumber: 66,
|
|
2106
2104
|
columnNumber: 21
|
|
2107
2105
|
}, void 0)
|
|
2108
2106
|
},
|
|
@@ -2110,13 +2108,13 @@ const Sr = ({
|
|
|
2110
2108
|
!1,
|
|
2111
2109
|
{
|
|
2112
2110
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2113
|
-
lineNumber:
|
|
2111
|
+
lineNumber: 26,
|
|
2114
2112
|
columnNumber: 13
|
|
2115
2113
|
},
|
|
2116
2114
|
void 0
|
|
2117
2115
|
) }, void 0, !1, {
|
|
2118
2116
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2119
|
-
lineNumber:
|
|
2117
|
+
lineNumber: 25,
|
|
2120
2118
|
columnNumber: 9
|
|
2121
2119
|
}, void 0);
|
|
2122
2120
|
}, Ki = gr.create({
|
|
@@ -2128,6 +2126,19 @@ const Sr = ({
|
|
|
2128
2126
|
selectable: !0,
|
|
2129
2127
|
inline: !1,
|
|
2130
2128
|
defining: !0,
|
|
2129
|
+
addAttributes() {
|
|
2130
|
+
return {
|
|
2131
|
+
title: {
|
|
2132
|
+
default: "Accordion Title"
|
|
2133
|
+
},
|
|
2134
|
+
bgColor: {
|
|
2135
|
+
default: "#f3f4f6"
|
|
2136
|
+
},
|
|
2137
|
+
titleColor: {
|
|
2138
|
+
default: "#000000"
|
|
2139
|
+
}
|
|
2140
|
+
};
|
|
2141
|
+
},
|
|
2131
2142
|
parseHTML() {
|
|
2132
2143
|
return [
|
|
2133
2144
|
{
|
|
@@ -2145,12 +2156,18 @@ const Sr = ({
|
|
|
2145
2156
|
return {
|
|
2146
2157
|
setAccordion: (e) => ({ chain: t }) => t().insertContent({
|
|
2147
2158
|
type: "accordion",
|
|
2148
|
-
attrs: e
|
|
2159
|
+
attrs: e,
|
|
2160
|
+
content: [
|
|
2161
|
+
{
|
|
2162
|
+
type: "paragraph",
|
|
2163
|
+
content: [{ type: "text", text: "Accordion content" }]
|
|
2164
|
+
}
|
|
2165
|
+
]
|
|
2149
2166
|
}).run()
|
|
2150
2167
|
};
|
|
2151
2168
|
}
|
|
2152
2169
|
});
|
|
2153
|
-
var
|
|
2170
|
+
var kt = { exports: {} }, ze = {}, Be = { exports: {} }, wr = {}, xt = { exports: {} }, qe = { exports: {} }, F = {};
|
|
2154
2171
|
/** @license React v16.13.1
|
|
2155
2172
|
* react-is.production.min.js
|
|
2156
2173
|
*
|
|
@@ -2159,12 +2176,12 @@ var Dt = { exports: {} }, ze = {}, Be = { exports: {} }, wr = {}, xt = { exports
|
|
|
2159
2176
|
* This source code is licensed under the MIT license found in the
|
|
2160
2177
|
* LICENSE file in the root directory of this source tree.
|
|
2161
2178
|
*/
|
|
2162
|
-
var
|
|
2179
|
+
var er;
|
|
2163
2180
|
function Gi() {
|
|
2164
|
-
if (
|
|
2165
|
-
|
|
2166
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
2167
|
-
function
|
|
2181
|
+
if (er) return F;
|
|
2182
|
+
er = 1;
|
|
2183
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
|
|
2184
|
+
function N(c) {
|
|
2168
2185
|
if (typeof c == "object" && c !== null) {
|
|
2169
2186
|
var Y = c.$$typeof;
|
|
2170
2187
|
switch (Y) {
|
|
@@ -2175,12 +2192,12 @@ function Gi() {
|
|
|
2175
2192
|
case n:
|
|
2176
2193
|
case a:
|
|
2177
2194
|
case o:
|
|
2178
|
-
case
|
|
2195
|
+
case v:
|
|
2179
2196
|
return c;
|
|
2180
2197
|
default:
|
|
2181
2198
|
switch (c = c && c.$$typeof, c) {
|
|
2182
2199
|
case u:
|
|
2183
|
-
case
|
|
2200
|
+
case y:
|
|
2184
2201
|
case A:
|
|
2185
2202
|
case S:
|
|
2186
2203
|
case s:
|
|
@@ -2195,37 +2212,37 @@ function Gi() {
|
|
|
2195
2212
|
}
|
|
2196
2213
|
}
|
|
2197
2214
|
function E(c) {
|
|
2198
|
-
return
|
|
2215
|
+
return N(c) === p;
|
|
2199
2216
|
}
|
|
2200
|
-
return
|
|
2201
|
-
return E(c) ||
|
|
2202
|
-
},
|
|
2203
|
-
return
|
|
2204
|
-
},
|
|
2205
|
-
return
|
|
2206
|
-
},
|
|
2217
|
+
return F.AsyncMode = m, F.ConcurrentMode = p, F.ContextConsumer = u, F.ContextProvider = s, F.Element = t, F.ForwardRef = y, F.Fragment = n, F.Lazy = A, F.Memo = S, F.Portal = r, F.Profiler = a, F.StrictMode = o, F.Suspense = v, F.isAsyncMode = function(c) {
|
|
2218
|
+
return E(c) || N(c) === m;
|
|
2219
|
+
}, F.isConcurrentMode = E, F.isContextConsumer = function(c) {
|
|
2220
|
+
return N(c) === u;
|
|
2221
|
+
}, F.isContextProvider = function(c) {
|
|
2222
|
+
return N(c) === s;
|
|
2223
|
+
}, F.isElement = function(c) {
|
|
2207
2224
|
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
2208
|
-
},
|
|
2209
|
-
return
|
|
2210
|
-
},
|
|
2211
|
-
return
|
|
2212
|
-
},
|
|
2213
|
-
return
|
|
2214
|
-
},
|
|
2215
|
-
return
|
|
2216
|
-
},
|
|
2217
|
-
return
|
|
2218
|
-
},
|
|
2219
|
-
return
|
|
2220
|
-
},
|
|
2221
|
-
return
|
|
2222
|
-
},
|
|
2223
|
-
return
|
|
2224
|
-
},
|
|
2225
|
-
return typeof c == "string" || typeof c == "function" || c === n || c === p || c === a || c === o || c ===
|
|
2226
|
-
},
|
|
2225
|
+
}, F.isForwardRef = function(c) {
|
|
2226
|
+
return N(c) === y;
|
|
2227
|
+
}, F.isFragment = function(c) {
|
|
2228
|
+
return N(c) === n;
|
|
2229
|
+
}, F.isLazy = function(c) {
|
|
2230
|
+
return N(c) === A;
|
|
2231
|
+
}, F.isMemo = function(c) {
|
|
2232
|
+
return N(c) === S;
|
|
2233
|
+
}, F.isPortal = function(c) {
|
|
2234
|
+
return N(c) === r;
|
|
2235
|
+
}, F.isProfiler = function(c) {
|
|
2236
|
+
return N(c) === a;
|
|
2237
|
+
}, F.isStrictMode = function(c) {
|
|
2238
|
+
return N(c) === o;
|
|
2239
|
+
}, F.isSuspense = function(c) {
|
|
2240
|
+
return N(c) === v;
|
|
2241
|
+
}, F.isValidElementType = function(c) {
|
|
2242
|
+
return typeof c == "string" || typeof c == "function" || c === n || c === p || c === a || c === o || c === v || c === O || typeof c == "object" && c !== null && (c.$$typeof === A || c.$$typeof === S || c.$$typeof === s || c.$$typeof === u || c.$$typeof === y || c.$$typeof === B || c.$$typeof === W || c.$$typeof === g || c.$$typeof === $);
|
|
2243
|
+
}, F.typeOf = N, F;
|
|
2227
2244
|
}
|
|
2228
|
-
var
|
|
2245
|
+
var U = {};
|
|
2229
2246
|
/** @license React v16.13.1
|
|
2230
2247
|
* react-is.development.js
|
|
2231
2248
|
*
|
|
@@ -2234,33 +2251,33 @@ var F = {};
|
|
|
2234
2251
|
* This source code is licensed under the MIT license found in the
|
|
2235
2252
|
* LICENSE file in the root directory of this source tree.
|
|
2236
2253
|
*/
|
|
2237
|
-
var
|
|
2254
|
+
var tr;
|
|
2238
2255
|
function Ji() {
|
|
2239
|
-
return
|
|
2240
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
2241
|
-
function
|
|
2242
|
-
return typeof
|
|
2243
|
-
|
|
2256
|
+
return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2257
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
|
|
2258
|
+
function N(b) {
|
|
2259
|
+
return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2260
|
+
b === n || b === p || b === a || b === o || b === v || b === O || typeof b == "object" && b !== null && (b.$$typeof === A || b.$$typeof === S || b.$$typeof === s || b.$$typeof === u || b.$$typeof === y || b.$$typeof === B || b.$$typeof === W || b.$$typeof === g || b.$$typeof === $);
|
|
2244
2261
|
}
|
|
2245
|
-
function E(
|
|
2246
|
-
if (typeof
|
|
2247
|
-
var pe =
|
|
2262
|
+
function E(b) {
|
|
2263
|
+
if (typeof b == "object" && b !== null) {
|
|
2264
|
+
var pe = b.$$typeof;
|
|
2248
2265
|
switch (pe) {
|
|
2249
2266
|
case t:
|
|
2250
|
-
var Re =
|
|
2267
|
+
var Re = b.type;
|
|
2251
2268
|
switch (Re) {
|
|
2252
2269
|
case m:
|
|
2253
2270
|
case p:
|
|
2254
2271
|
case n:
|
|
2255
2272
|
case a:
|
|
2256
2273
|
case o:
|
|
2257
|
-
case
|
|
2274
|
+
case v:
|
|
2258
2275
|
return Re;
|
|
2259
2276
|
default:
|
|
2260
2277
|
var ke = Re && Re.$$typeof;
|
|
2261
2278
|
switch (ke) {
|
|
2262
2279
|
case u:
|
|
2263
|
-
case
|
|
2280
|
+
case y:
|
|
2264
2281
|
case A:
|
|
2265
2282
|
case S:
|
|
2266
2283
|
case s:
|
|
@@ -2274,62 +2291,62 @@ function Ji() {
|
|
|
2274
2291
|
}
|
|
2275
2292
|
}
|
|
2276
2293
|
}
|
|
2277
|
-
var c = m, Y = p,
|
|
2278
|
-
function Se(
|
|
2279
|
-
return ge || (ge = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(
|
|
2294
|
+
var c = m, Y = p, T = u, Q = s, de = t, fe = y, ye = n, Ee = A, ee = S, Z = r, me = a, oe = o, le = v, ge = !1;
|
|
2295
|
+
function Se(b) {
|
|
2296
|
+
return ge || (ge = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(b) || E(b) === m;
|
|
2280
2297
|
}
|
|
2281
|
-
function f(
|
|
2282
|
-
return E(
|
|
2298
|
+
function f(b) {
|
|
2299
|
+
return E(b) === p;
|
|
2283
2300
|
}
|
|
2284
|
-
function
|
|
2285
|
-
return E(
|
|
2301
|
+
function x(b) {
|
|
2302
|
+
return E(b) === u;
|
|
2286
2303
|
}
|
|
2287
|
-
function
|
|
2288
|
-
return E(
|
|
2304
|
+
function P(b) {
|
|
2305
|
+
return E(b) === s;
|
|
2289
2306
|
}
|
|
2290
|
-
function R(
|
|
2291
|
-
return typeof
|
|
2307
|
+
function R(b) {
|
|
2308
|
+
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
2292
2309
|
}
|
|
2293
|
-
function C(
|
|
2294
|
-
return E(
|
|
2310
|
+
function C(b) {
|
|
2311
|
+
return E(b) === y;
|
|
2295
2312
|
}
|
|
2296
|
-
function z(
|
|
2297
|
-
return E(
|
|
2313
|
+
function z(b) {
|
|
2314
|
+
return E(b) === n;
|
|
2298
2315
|
}
|
|
2299
|
-
function k(
|
|
2300
|
-
return E(
|
|
2316
|
+
function k(b) {
|
|
2317
|
+
return E(b) === A;
|
|
2301
2318
|
}
|
|
2302
|
-
function _(
|
|
2303
|
-
return E(
|
|
2319
|
+
function _(b) {
|
|
2320
|
+
return E(b) === S;
|
|
2304
2321
|
}
|
|
2305
|
-
function j(
|
|
2306
|
-
return E(
|
|
2322
|
+
function j(b) {
|
|
2323
|
+
return E(b) === r;
|
|
2307
2324
|
}
|
|
2308
|
-
function H(
|
|
2309
|
-
return E(
|
|
2325
|
+
function H(b) {
|
|
2326
|
+
return E(b) === a;
|
|
2310
2327
|
}
|
|
2311
|
-
function M(
|
|
2312
|
-
return E(
|
|
2328
|
+
function M(b) {
|
|
2329
|
+
return E(b) === o;
|
|
2313
2330
|
}
|
|
2314
|
-
function te(
|
|
2315
|
-
return E(
|
|
2331
|
+
function te(b) {
|
|
2332
|
+
return E(b) === v;
|
|
2316
2333
|
}
|
|
2317
|
-
|
|
2318
|
-
}()),
|
|
2334
|
+
U.AsyncMode = c, U.ConcurrentMode = Y, U.ContextConsumer = T, U.ContextProvider = Q, U.Element = de, U.ForwardRef = fe, U.Fragment = ye, U.Lazy = Ee, U.Memo = ee, U.Portal = Z, U.Profiler = me, U.StrictMode = oe, U.Suspense = le, U.isAsyncMode = Se, U.isConcurrentMode = f, U.isContextConsumer = x, U.isContextProvider = P, U.isElement = R, U.isForwardRef = C, U.isFragment = z, U.isLazy = k, U.isMemo = _, U.isPortal = j, U.isProfiler = H, U.isStrictMode = M, U.isSuspense = te, U.isValidElementType = N, U.typeOf = E;
|
|
2335
|
+
}()), U;
|
|
2319
2336
|
}
|
|
2320
|
-
var
|
|
2337
|
+
var rr;
|
|
2321
2338
|
function Cr() {
|
|
2322
|
-
return
|
|
2339
|
+
return rr || (rr = 1, process.env.NODE_ENV === "production" ? qe.exports = Gi() : qe.exports = Ji()), qe.exports;
|
|
2323
2340
|
}
|
|
2324
2341
|
/*
|
|
2325
2342
|
object-assign
|
|
2326
2343
|
(c) Sindre Sorhus
|
|
2327
2344
|
@license MIT
|
|
2328
2345
|
*/
|
|
2329
|
-
var at,
|
|
2346
|
+
var at, nr;
|
|
2330
2347
|
function Zi() {
|
|
2331
|
-
if (
|
|
2332
|
-
|
|
2348
|
+
if (nr) return at;
|
|
2349
|
+
nr = 1;
|
|
2333
2350
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
2334
2351
|
function n(a) {
|
|
2335
2352
|
if (a == null)
|
|
@@ -2345,24 +2362,24 @@ function Zi() {
|
|
|
2345
2362
|
return !1;
|
|
2346
2363
|
for (var s = {}, u = 0; u < 10; u++)
|
|
2347
2364
|
s["_" + String.fromCharCode(u)] = u;
|
|
2348
|
-
var m = Object.getOwnPropertyNames(s).map(function(
|
|
2349
|
-
return s[
|
|
2365
|
+
var m = Object.getOwnPropertyNames(s).map(function(y) {
|
|
2366
|
+
return s[y];
|
|
2350
2367
|
});
|
|
2351
2368
|
if (m.join("") !== "0123456789")
|
|
2352
2369
|
return !1;
|
|
2353
2370
|
var p = {};
|
|
2354
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
2355
|
-
p[
|
|
2371
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(y) {
|
|
2372
|
+
p[y] = y;
|
|
2356
2373
|
}), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
|
|
2357
2374
|
} catch {
|
|
2358
2375
|
return !1;
|
|
2359
2376
|
}
|
|
2360
2377
|
}
|
|
2361
2378
|
return at = o() ? Object.assign : function(a, s) {
|
|
2362
|
-
for (var u, m = n(a), p,
|
|
2363
|
-
u = Object(arguments[
|
|
2364
|
-
for (var
|
|
2365
|
-
t.call(u,
|
|
2379
|
+
for (var u, m = n(a), p, y = 1; y < arguments.length; y++) {
|
|
2380
|
+
u = Object(arguments[y]);
|
|
2381
|
+
for (var v in u)
|
|
2382
|
+
t.call(u, v) && (m[v] = u[v]);
|
|
2366
2383
|
if (e) {
|
|
2367
2384
|
p = e(u);
|
|
2368
2385
|
for (var O = 0; O < p.length; O++)
|
|
@@ -2372,25 +2389,25 @@ function Zi() {
|
|
|
2372
2389
|
return m;
|
|
2373
2390
|
}, at;
|
|
2374
2391
|
}
|
|
2375
|
-
var st,
|
|
2376
|
-
function
|
|
2377
|
-
if (
|
|
2378
|
-
|
|
2392
|
+
var st, ir;
|
|
2393
|
+
function Dt() {
|
|
2394
|
+
if (ir) return st;
|
|
2395
|
+
ir = 1;
|
|
2379
2396
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2380
2397
|
return st = e, st;
|
|
2381
2398
|
}
|
|
2382
|
-
var lt,
|
|
2399
|
+
var lt, or;
|
|
2383
2400
|
function kr() {
|
|
2384
|
-
return
|
|
2401
|
+
return or || (or = 1, lt = Function.call.bind(Object.prototype.hasOwnProperty)), lt;
|
|
2385
2402
|
}
|
|
2386
|
-
var ct,
|
|
2403
|
+
var ct, ar;
|
|
2387
2404
|
function Qi() {
|
|
2388
|
-
if (
|
|
2389
|
-
|
|
2405
|
+
if (ar) return ct;
|
|
2406
|
+
ar = 1;
|
|
2390
2407
|
var e = function() {
|
|
2391
2408
|
};
|
|
2392
2409
|
if (process.env.NODE_ENV !== "production") {
|
|
2393
|
-
var t =
|
|
2410
|
+
var t = Dt(), r = {}, n = kr();
|
|
2394
2411
|
e = function(a) {
|
|
2395
2412
|
var s = "Warning: " + a;
|
|
2396
2413
|
typeof console < "u" && console.error(s);
|
|
@@ -2402,27 +2419,27 @@ function Qi() {
|
|
|
2402
2419
|
}
|
|
2403
2420
|
function o(a, s, u, m, p) {
|
|
2404
2421
|
if (process.env.NODE_ENV !== "production") {
|
|
2405
|
-
for (var
|
|
2406
|
-
if (n(a,
|
|
2407
|
-
var
|
|
2422
|
+
for (var y in a)
|
|
2423
|
+
if (n(a, y)) {
|
|
2424
|
+
var v;
|
|
2408
2425
|
try {
|
|
2409
|
-
if (typeof a[
|
|
2426
|
+
if (typeof a[y] != "function") {
|
|
2410
2427
|
var O = Error(
|
|
2411
|
-
(m || "React class") + ": " + u + " type `" +
|
|
2428
|
+
(m || "React class") + ": " + u + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
2412
2429
|
);
|
|
2413
2430
|
throw O.name = "Invariant Violation", O;
|
|
2414
2431
|
}
|
|
2415
|
-
|
|
2432
|
+
v = a[y](s, y, m, u, null, t);
|
|
2416
2433
|
} catch (A) {
|
|
2417
|
-
|
|
2434
|
+
v = A;
|
|
2418
2435
|
}
|
|
2419
|
-
if (
|
|
2420
|
-
(m || "React class") + ": type specification of " + u + " `" +
|
|
2421
|
-
),
|
|
2422
|
-
r[
|
|
2436
|
+
if (v && !(v instanceof Error) && e(
|
|
2437
|
+
(m || "React class") + ": type specification of " + u + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
2438
|
+
), v instanceof Error && !(v.message in r)) {
|
|
2439
|
+
r[v.message] = !0;
|
|
2423
2440
|
var S = p ? p() : "";
|
|
2424
2441
|
e(
|
|
2425
|
-
"Failed " + u + " type: " +
|
|
2442
|
+
"Failed " + u + " type: " + v.message + (S ?? "")
|
|
2426
2443
|
);
|
|
2427
2444
|
}
|
|
2428
2445
|
}
|
|
@@ -2432,11 +2449,11 @@ function Qi() {
|
|
|
2432
2449
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
2433
2450
|
}, ct = o, ct;
|
|
2434
2451
|
}
|
|
2435
|
-
var ut,
|
|
2452
|
+
var ut, sr;
|
|
2436
2453
|
function eo() {
|
|
2437
|
-
if (
|
|
2438
|
-
|
|
2439
|
-
var e = Cr(), t = Zi(), r =
|
|
2454
|
+
if (sr) return ut;
|
|
2455
|
+
sr = 1;
|
|
2456
|
+
var e = Cr(), t = Zi(), r = Dt(), n = kr(), o = Qi(), a = function() {
|
|
2440
2457
|
};
|
|
2441
2458
|
process.env.NODE_ENV !== "production" && (a = function(u) {
|
|
2442
2459
|
var m = "Warning: " + u;
|
|
@@ -2450,11 +2467,11 @@ function eo() {
|
|
|
2450
2467
|
return null;
|
|
2451
2468
|
}
|
|
2452
2469
|
return ut = function(u, m) {
|
|
2453
|
-
var p = typeof Symbol == "function" && Symbol.iterator,
|
|
2454
|
-
function
|
|
2455
|
-
var
|
|
2456
|
-
if (typeof
|
|
2457
|
-
return
|
|
2470
|
+
var p = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
|
|
2471
|
+
function v(f) {
|
|
2472
|
+
var x = f && (p && f[p] || f[y]);
|
|
2473
|
+
if (typeof x == "function")
|
|
2474
|
+
return x;
|
|
2458
2475
|
}
|
|
2459
2476
|
var O = "<<anonymous>>", S = {
|
|
2460
2477
|
array: W("array"),
|
|
@@ -2465,41 +2482,41 @@ function eo() {
|
|
|
2465
2482
|
object: W("object"),
|
|
2466
2483
|
string: W("string"),
|
|
2467
2484
|
symbol: W("symbol"),
|
|
2468
|
-
any:
|
|
2469
|
-
arrayOf:
|
|
2485
|
+
any: g(),
|
|
2486
|
+
arrayOf: N,
|
|
2470
2487
|
element: E(),
|
|
2471
2488
|
elementType: c(),
|
|
2472
2489
|
instanceOf: Y,
|
|
2473
2490
|
node: fe(),
|
|
2474
2491
|
objectOf: Q,
|
|
2475
|
-
oneOf:
|
|
2492
|
+
oneOf: T,
|
|
2476
2493
|
oneOfType: de,
|
|
2477
2494
|
shape: Ee,
|
|
2478
2495
|
exact: ee
|
|
2479
2496
|
};
|
|
2480
|
-
function A(f,
|
|
2481
|
-
return f ===
|
|
2497
|
+
function A(f, x) {
|
|
2498
|
+
return f === x ? f !== 0 || 1 / f === 1 / x : f !== f && x !== x;
|
|
2482
2499
|
}
|
|
2483
|
-
function $(f,
|
|
2484
|
-
this.message = f, this.data =
|
|
2500
|
+
function $(f, x) {
|
|
2501
|
+
this.message = f, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
2485
2502
|
}
|
|
2486
2503
|
$.prototype = Error.prototype;
|
|
2487
2504
|
function B(f) {
|
|
2488
2505
|
if (process.env.NODE_ENV !== "production")
|
|
2489
|
-
var
|
|
2506
|
+
var x = {}, P = 0;
|
|
2490
2507
|
function R(z, k, _, j, H, M, te) {
|
|
2491
2508
|
if (j = j || O, M = M || _, te !== r) {
|
|
2492
2509
|
if (m) {
|
|
2493
|
-
var
|
|
2510
|
+
var b = new Error(
|
|
2494
2511
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2495
2512
|
);
|
|
2496
|
-
throw
|
|
2513
|
+
throw b.name = "Invariant Violation", b;
|
|
2497
2514
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2498
2515
|
var pe = j + ":" + _;
|
|
2499
|
-
!
|
|
2500
|
-
|
|
2516
|
+
!x[pe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2517
|
+
P < 3 && (a(
|
|
2501
2518
|
"You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" + j + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
2502
|
-
),
|
|
2519
|
+
), x[pe] = !0, P++);
|
|
2503
2520
|
}
|
|
2504
2521
|
}
|
|
2505
2522
|
return k[_] == null ? z ? k[_] === null ? new $("The " + H + " `" + M + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new $("The " + H + " `" + M + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : f(k, _, j, H, M);
|
|
@@ -2508,8 +2525,8 @@ function eo() {
|
|
|
2508
2525
|
return C.isRequired = R.bind(null, !0), C;
|
|
2509
2526
|
}
|
|
2510
2527
|
function W(f) {
|
|
2511
|
-
function
|
|
2512
|
-
var j =
|
|
2528
|
+
function x(P, R, C, z, k, _) {
|
|
2529
|
+
var j = P[R], H = oe(j);
|
|
2513
2530
|
if (H !== f) {
|
|
2514
2531
|
var M = le(j);
|
|
2515
2532
|
return new $(
|
|
@@ -2519,16 +2536,16 @@ function eo() {
|
|
|
2519
2536
|
}
|
|
2520
2537
|
return null;
|
|
2521
2538
|
}
|
|
2522
|
-
return B(
|
|
2539
|
+
return B(x);
|
|
2523
2540
|
}
|
|
2524
|
-
function
|
|
2541
|
+
function g() {
|
|
2525
2542
|
return B(s);
|
|
2526
2543
|
}
|
|
2527
|
-
function
|
|
2528
|
-
function
|
|
2544
|
+
function N(f) {
|
|
2545
|
+
function x(P, R, C, z, k) {
|
|
2529
2546
|
if (typeof f != "function")
|
|
2530
2547
|
return new $("Property `" + k + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
|
|
2531
|
-
var _ =
|
|
2548
|
+
var _ = P[R];
|
|
2532
2549
|
if (!Array.isArray(_)) {
|
|
2533
2550
|
var j = oe(_);
|
|
2534
2551
|
return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected an array."));
|
|
@@ -2540,11 +2557,11 @@ function eo() {
|
|
|
2540
2557
|
}
|
|
2541
2558
|
return null;
|
|
2542
2559
|
}
|
|
2543
|
-
return B(
|
|
2560
|
+
return B(x);
|
|
2544
2561
|
}
|
|
2545
2562
|
function E() {
|
|
2546
|
-
function f(
|
|
2547
|
-
var k =
|
|
2563
|
+
function f(x, P, R, C, z) {
|
|
2564
|
+
var k = x[P];
|
|
2548
2565
|
if (!u(k)) {
|
|
2549
2566
|
var _ = oe(k);
|
|
2550
2567
|
return new $("Invalid " + C + " `" + z + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
@@ -2554,8 +2571,8 @@ function eo() {
|
|
|
2554
2571
|
return B(f);
|
|
2555
2572
|
}
|
|
2556
2573
|
function c() {
|
|
2557
|
-
function f(
|
|
2558
|
-
var k =
|
|
2574
|
+
function f(x, P, R, C, z) {
|
|
2575
|
+
var k = x[P];
|
|
2559
2576
|
if (!e.isValidElementType(k)) {
|
|
2560
2577
|
var _ = oe(k);
|
|
2561
2578
|
return new $("Invalid " + C + " `" + z + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
@@ -2565,37 +2582,37 @@ function eo() {
|
|
|
2565
2582
|
return B(f);
|
|
2566
2583
|
}
|
|
2567
2584
|
function Y(f) {
|
|
2568
|
-
function
|
|
2569
|
-
if (!(
|
|
2570
|
-
var _ = f.name || O, j = Se(
|
|
2585
|
+
function x(P, R, C, z, k) {
|
|
2586
|
+
if (!(P[R] instanceof f)) {
|
|
2587
|
+
var _ = f.name || O, j = Se(P[R]);
|
|
2571
2588
|
return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected ") + ("instance of `" + _ + "`."));
|
|
2572
2589
|
}
|
|
2573
2590
|
return null;
|
|
2574
2591
|
}
|
|
2575
|
-
return B(
|
|
2592
|
+
return B(x);
|
|
2576
2593
|
}
|
|
2577
|
-
function
|
|
2594
|
+
function T(f) {
|
|
2578
2595
|
if (!Array.isArray(f))
|
|
2579
2596
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
2580
2597
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
2581
2598
|
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
2582
|
-
function
|
|
2583
|
-
for (var _ =
|
|
2599
|
+
function x(P, R, C, z, k) {
|
|
2600
|
+
for (var _ = P[R], j = 0; j < f.length; j++)
|
|
2584
2601
|
if (A(_, f[j]))
|
|
2585
2602
|
return null;
|
|
2586
|
-
var H = JSON.stringify(f, function(te,
|
|
2587
|
-
var pe = le(
|
|
2588
|
-
return pe === "symbol" ? String(
|
|
2603
|
+
var H = JSON.stringify(f, function(te, b) {
|
|
2604
|
+
var pe = le(b);
|
|
2605
|
+
return pe === "symbol" ? String(b) : b;
|
|
2589
2606
|
});
|
|
2590
2607
|
return new $("Invalid " + z + " `" + k + "` of value `" + String(_) + "` " + ("supplied to `" + C + "`, expected one of " + H + "."));
|
|
2591
2608
|
}
|
|
2592
|
-
return B(
|
|
2609
|
+
return B(x);
|
|
2593
2610
|
}
|
|
2594
2611
|
function Q(f) {
|
|
2595
|
-
function
|
|
2612
|
+
function x(P, R, C, z, k) {
|
|
2596
2613
|
if (typeof f != "function")
|
|
2597
2614
|
return new $("Property `" + k + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
|
|
2598
|
-
var _ =
|
|
2615
|
+
var _ = P[R], j = oe(_);
|
|
2599
2616
|
if (j !== "object")
|
|
2600
2617
|
return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected an object."));
|
|
2601
2618
|
for (var H in _)
|
|
@@ -2606,24 +2623,24 @@ function eo() {
|
|
|
2606
2623
|
}
|
|
2607
2624
|
return null;
|
|
2608
2625
|
}
|
|
2609
|
-
return B(
|
|
2626
|
+
return B(x);
|
|
2610
2627
|
}
|
|
2611
2628
|
function de(f) {
|
|
2612
2629
|
if (!Array.isArray(f))
|
|
2613
2630
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
2614
|
-
for (var
|
|
2615
|
-
var
|
|
2616
|
-
if (typeof
|
|
2631
|
+
for (var x = 0; x < f.length; x++) {
|
|
2632
|
+
var P = f[x];
|
|
2633
|
+
if (typeof P != "function")
|
|
2617
2634
|
return a(
|
|
2618
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge(
|
|
2635
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge(P) + " at index " + x + "."
|
|
2619
2636
|
), s;
|
|
2620
2637
|
}
|
|
2621
2638
|
function R(C, z, k, _, j) {
|
|
2622
2639
|
for (var H = [], M = 0; M < f.length; M++) {
|
|
2623
|
-
var te = f[M],
|
|
2624
|
-
if (
|
|
2640
|
+
var te = f[M], b = te(C, z, k, _, j, r);
|
|
2641
|
+
if (b == null)
|
|
2625
2642
|
return null;
|
|
2626
|
-
|
|
2643
|
+
b.data && n(b.data, "expectedType") && H.push(b.data.expectedType);
|
|
2627
2644
|
}
|
|
2628
2645
|
var pe = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
|
|
2629
2646
|
return new $("Invalid " + _ + " `" + j + "` supplied to " + ("`" + k + "`" + pe + "."));
|
|
@@ -2631,19 +2648,19 @@ function eo() {
|
|
|
2631
2648
|
return B(R);
|
|
2632
2649
|
}
|
|
2633
2650
|
function fe() {
|
|
2634
|
-
function f(
|
|
2635
|
-
return Z(
|
|
2651
|
+
function f(x, P, R, C, z) {
|
|
2652
|
+
return Z(x[P]) ? null : new $("Invalid " + C + " `" + z + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
2636
2653
|
}
|
|
2637
2654
|
return B(f);
|
|
2638
2655
|
}
|
|
2639
|
-
function ye(f,
|
|
2656
|
+
function ye(f, x, P, R, C) {
|
|
2640
2657
|
return new $(
|
|
2641
|
-
(f || "React class") + ": " +
|
|
2658
|
+
(f || "React class") + ": " + x + " type `" + P + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
|
|
2642
2659
|
);
|
|
2643
2660
|
}
|
|
2644
2661
|
function Ee(f) {
|
|
2645
|
-
function
|
|
2646
|
-
var _ =
|
|
2662
|
+
function x(P, R, C, z, k) {
|
|
2663
|
+
var _ = P[R], j = oe(_);
|
|
2647
2664
|
if (j !== "object")
|
|
2648
2665
|
return new $("Invalid " + z + " `" + k + "` of type `" + j + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
2649
2666
|
for (var H in f) {
|
|
@@ -2656,30 +2673,30 @@ function eo() {
|
|
|
2656
2673
|
}
|
|
2657
2674
|
return null;
|
|
2658
2675
|
}
|
|
2659
|
-
return B(
|
|
2676
|
+
return B(x);
|
|
2660
2677
|
}
|
|
2661
2678
|
function ee(f) {
|
|
2662
|
-
function
|
|
2663
|
-
var _ =
|
|
2679
|
+
function x(P, R, C, z, k) {
|
|
2680
|
+
var _ = P[R], j = oe(_);
|
|
2664
2681
|
if (j !== "object")
|
|
2665
2682
|
return new $("Invalid " + z + " `" + k + "` of type `" + j + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
2666
|
-
var H = t({},
|
|
2683
|
+
var H = t({}, P[R], f);
|
|
2667
2684
|
for (var M in H) {
|
|
2668
2685
|
var te = f[M];
|
|
2669
2686
|
if (n(f, M) && typeof te != "function")
|
|
2670
2687
|
return ye(C, z, k, M, le(te));
|
|
2671
2688
|
if (!te)
|
|
2672
2689
|
return new $(
|
|
2673
|
-
"Invalid " + z + " `" + k + "` key `" + M + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(
|
|
2690
|
+
"Invalid " + z + " `" + k + "` key `" + M + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(P[R], null, " ") + `
|
|
2674
2691
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
2675
2692
|
);
|
|
2676
|
-
var
|
|
2677
|
-
if (
|
|
2678
|
-
return
|
|
2693
|
+
var b = te(_, M, C, z, k + "." + M, r);
|
|
2694
|
+
if (b)
|
|
2695
|
+
return b;
|
|
2679
2696
|
}
|
|
2680
2697
|
return null;
|
|
2681
2698
|
}
|
|
2682
|
-
return B(
|
|
2699
|
+
return B(x);
|
|
2683
2700
|
}
|
|
2684
2701
|
function Z(f) {
|
|
2685
2702
|
switch (typeof f) {
|
|
@@ -2694,15 +2711,15 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
2694
2711
|
return f.every(Z);
|
|
2695
2712
|
if (f === null || u(f))
|
|
2696
2713
|
return !0;
|
|
2697
|
-
var
|
|
2698
|
-
if (
|
|
2699
|
-
var
|
|
2700
|
-
if (
|
|
2701
|
-
for (; !(R =
|
|
2714
|
+
var x = v(f);
|
|
2715
|
+
if (x) {
|
|
2716
|
+
var P = x.call(f), R;
|
|
2717
|
+
if (x !== f.entries) {
|
|
2718
|
+
for (; !(R = P.next()).done; )
|
|
2702
2719
|
if (!Z(R.value))
|
|
2703
2720
|
return !1;
|
|
2704
2721
|
} else
|
|
2705
|
-
for (; !(R =
|
|
2722
|
+
for (; !(R = P.next()).done; ) {
|
|
2706
2723
|
var C = R.value;
|
|
2707
2724
|
if (C && !Z(C[1]))
|
|
2708
2725
|
return !1;
|
|
@@ -2714,37 +2731,37 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
2714
2731
|
return !1;
|
|
2715
2732
|
}
|
|
2716
2733
|
}
|
|
2717
|
-
function me(f,
|
|
2718
|
-
return f === "symbol" ? !0 :
|
|
2734
|
+
function me(f, x) {
|
|
2735
|
+
return f === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
2719
2736
|
}
|
|
2720
2737
|
function oe(f) {
|
|
2721
|
-
var
|
|
2722
|
-
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : me(
|
|
2738
|
+
var x = typeof f;
|
|
2739
|
+
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : me(x, f) ? "symbol" : x;
|
|
2723
2740
|
}
|
|
2724
2741
|
function le(f) {
|
|
2725
2742
|
if (typeof f > "u" || f === null)
|
|
2726
2743
|
return "" + f;
|
|
2727
|
-
var
|
|
2728
|
-
if (
|
|
2744
|
+
var x = oe(f);
|
|
2745
|
+
if (x === "object") {
|
|
2729
2746
|
if (f instanceof Date)
|
|
2730
2747
|
return "date";
|
|
2731
2748
|
if (f instanceof RegExp)
|
|
2732
2749
|
return "regexp";
|
|
2733
2750
|
}
|
|
2734
|
-
return
|
|
2751
|
+
return x;
|
|
2735
2752
|
}
|
|
2736
2753
|
function ge(f) {
|
|
2737
|
-
var
|
|
2738
|
-
switch (
|
|
2754
|
+
var x = le(f);
|
|
2755
|
+
switch (x) {
|
|
2739
2756
|
case "array":
|
|
2740
2757
|
case "object":
|
|
2741
|
-
return "an " +
|
|
2758
|
+
return "an " + x;
|
|
2742
2759
|
case "boolean":
|
|
2743
2760
|
case "date":
|
|
2744
2761
|
case "regexp":
|
|
2745
|
-
return "a " +
|
|
2762
|
+
return "a " + x;
|
|
2746
2763
|
default:
|
|
2747
|
-
return
|
|
2764
|
+
return x;
|
|
2748
2765
|
}
|
|
2749
2766
|
}
|
|
2750
2767
|
function Se(f) {
|
|
@@ -2753,18 +2770,18 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
2753
2770
|
return S.checkPropTypes = o, S.resetWarningCache = o.resetWarningCache, S.PropTypes = S, S;
|
|
2754
2771
|
}, ut;
|
|
2755
2772
|
}
|
|
2756
|
-
var dt,
|
|
2773
|
+
var dt, lr;
|
|
2757
2774
|
function to() {
|
|
2758
|
-
if (
|
|
2759
|
-
|
|
2760
|
-
var e =
|
|
2775
|
+
if (lr) return dt;
|
|
2776
|
+
lr = 1;
|
|
2777
|
+
var e = Dt();
|
|
2761
2778
|
function t() {
|
|
2762
2779
|
}
|
|
2763
2780
|
function r() {
|
|
2764
2781
|
}
|
|
2765
2782
|
return r.resetWarningCache = t, dt = function() {
|
|
2766
|
-
function n(s, u, m, p,
|
|
2767
|
-
if (
|
|
2783
|
+
function n(s, u, m, p, y, v) {
|
|
2784
|
+
if (v !== e) {
|
|
2768
2785
|
var O = new Error(
|
|
2769
2786
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2770
2787
|
);
|
|
@@ -2814,14 +2831,14 @@ function Dr(e) {
|
|
|
2814
2831
|
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
2815
2832
|
return n;
|
|
2816
2833
|
}
|
|
2817
|
-
function
|
|
2834
|
+
function cr() {
|
|
2818
2835
|
for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t = Dr(e)) && (n && (n += " "), n += t);
|
|
2819
2836
|
return n;
|
|
2820
2837
|
}
|
|
2821
2838
|
const io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2822
2839
|
__proto__: null,
|
|
2823
|
-
clsx:
|
|
2824
|
-
default:
|
|
2840
|
+
clsx: cr,
|
|
2841
|
+
default: cr
|
|
2825
2842
|
}, Symbol.toStringTag, { value: "Module" })), oo = /* @__PURE__ */ On(io);
|
|
2826
2843
|
var K = {}, xe = {};
|
|
2827
2844
|
Object.defineProperty(xe, "__esModule", {
|
|
@@ -2884,17 +2901,17 @@ Oe.default = _r();
|
|
|
2884
2901
|
Object.defineProperty(K, "__esModule", {
|
|
2885
2902
|
value: !0
|
|
2886
2903
|
});
|
|
2887
|
-
K.addClassName =
|
|
2904
|
+
K.addClassName = Pr;
|
|
2888
2905
|
K.addEvent = ho;
|
|
2889
2906
|
K.addUserSelectStyles = Do;
|
|
2890
2907
|
K.createCSSTransform = So;
|
|
2891
2908
|
K.createSVGTransform = wo;
|
|
2892
2909
|
K.getTouch = Co;
|
|
2893
2910
|
K.getTouchIdentifier = ko;
|
|
2894
|
-
K.getTranslation =
|
|
2911
|
+
K.getTranslation = _t;
|
|
2895
2912
|
K.innerHeight = xo;
|
|
2896
2913
|
K.innerWidth = No;
|
|
2897
|
-
K.matchesSelector =
|
|
2914
|
+
K.matchesSelector = Tr;
|
|
2898
2915
|
K.matchesSelectorAndParentsTo = bo;
|
|
2899
2916
|
K.offsetXYFromParent = Eo;
|
|
2900
2917
|
K.outerHeight = vo;
|
|
@@ -2902,7 +2919,7 @@ K.outerWidth = go;
|
|
|
2902
2919
|
K.removeClassName = jr;
|
|
2903
2920
|
K.removeEvent = yo;
|
|
2904
2921
|
K.removeUserSelectStyles = _o;
|
|
2905
|
-
var ue = xe,
|
|
2922
|
+
var ue = xe, ur = po(Oe);
|
|
2906
2923
|
function Rr(e) {
|
|
2907
2924
|
if (typeof WeakMap != "function") return null;
|
|
2908
2925
|
var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
@@ -2927,7 +2944,7 @@ function po(e, t) {
|
|
|
2927
2944
|
return n.default = e, r && r.set(e, n), n;
|
|
2928
2945
|
}
|
|
2929
2946
|
let Ye = "";
|
|
2930
|
-
function
|
|
2947
|
+
function Tr(e, t) {
|
|
2931
2948
|
return Ye || (Ye = (0, ue.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(r) {
|
|
2932
2949
|
return (0, ue.isFunction)(e[r]);
|
|
2933
2950
|
})), (0, ue.isFunction)(e[Ye]) ? e[Ye](t) : !1;
|
|
@@ -2935,7 +2952,7 @@ function Pr(e, t) {
|
|
|
2935
2952
|
function bo(e, t, r) {
|
|
2936
2953
|
let n = e;
|
|
2937
2954
|
do {
|
|
2938
|
-
if (
|
|
2955
|
+
if (Tr(n, t)) return !0;
|
|
2939
2956
|
if (n === r) return !1;
|
|
2940
2957
|
n = n.parentNode;
|
|
2941
2958
|
} while (n);
|
|
@@ -2988,15 +3005,15 @@ function Eo(e, t, r) {
|
|
|
2988
3005
|
};
|
|
2989
3006
|
}
|
|
2990
3007
|
function So(e, t) {
|
|
2991
|
-
const r =
|
|
3008
|
+
const r = _t(e, t, "px");
|
|
2992
3009
|
return {
|
|
2993
|
-
[(0,
|
|
3010
|
+
[(0, ur.browserPrefixToKey)("transform", ur.default)]: r
|
|
2994
3011
|
};
|
|
2995
3012
|
}
|
|
2996
3013
|
function wo(e, t) {
|
|
2997
|
-
return
|
|
3014
|
+
return _t(e, t, "");
|
|
2998
3015
|
}
|
|
2999
|
-
function
|
|
3016
|
+
function _t(e, t, r) {
|
|
3000
3017
|
let {
|
|
3001
3018
|
x: n,
|
|
3002
3019
|
y: o
|
|
@@ -3019,7 +3036,7 @@ function Do(e) {
|
|
|
3019
3036
|
let t = e.getElementById("react-draggable-style-el");
|
|
3020
3037
|
t || (t = e.createElement("style"), t.type = "text/css", t.id = "react-draggable-style-el", t.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
3021
3038
|
`, t.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
3022
|
-
`, e.getElementsByTagName("head")[0].appendChild(t)), e.body &&
|
|
3039
|
+
`, e.getElementsByTagName("head")[0].appendChild(t)), e.body && Pr(e.body, "react-draggable-transparent-selection");
|
|
3023
3040
|
}
|
|
3024
3041
|
function _o(e) {
|
|
3025
3042
|
if (e)
|
|
@@ -3033,7 +3050,7 @@ function _o(e) {
|
|
|
3033
3050
|
} catch {
|
|
3034
3051
|
}
|
|
3035
3052
|
}
|
|
3036
|
-
function
|
|
3053
|
+
function Pr(e, t) {
|
|
3037
3054
|
e.classList ? e.classList.add(t) : e.className.match(new RegExp("(?:^|\\s)".concat(t, "(?!\\S)"))) || (e.className += " ".concat(t));
|
|
3038
3055
|
}
|
|
3039
3056
|
function jr(e, t) {
|
|
@@ -3043,8 +3060,8 @@ var Ne = {};
|
|
|
3043
3060
|
Object.defineProperty(Ne, "__esModule", {
|
|
3044
3061
|
value: !0
|
|
3045
3062
|
});
|
|
3046
|
-
Ne.canDragX =
|
|
3047
|
-
Ne.canDragY =
|
|
3063
|
+
Ne.canDragX = To;
|
|
3064
|
+
Ne.canDragY = Po;
|
|
3048
3065
|
Ne.createCoreData = Mo;
|
|
3049
3066
|
Ne.createDraggableData = Vo;
|
|
3050
3067
|
Ne.getBoundPosition = Oo;
|
|
@@ -3057,7 +3074,7 @@ function Oo(e, t, r) {
|
|
|
3057
3074
|
bounds: n
|
|
3058
3075
|
} = e.props;
|
|
3059
3076
|
n = typeof n == "string" ? n : Ao(n);
|
|
3060
|
-
const o =
|
|
3077
|
+
const o = Ot(e);
|
|
3061
3078
|
if (typeof n == "string") {
|
|
3062
3079
|
const {
|
|
3063
3080
|
ownerDocument: a
|
|
@@ -3065,12 +3082,12 @@ function Oo(e, t, r) {
|
|
|
3065
3082
|
let u;
|
|
3066
3083
|
if (n === "parent" ? u = o.parentNode : u = a.querySelector(n), !(u instanceof s.HTMLElement))
|
|
3067
3084
|
throw new Error('Bounds selector "' + n + '" could not find an element.');
|
|
3068
|
-
const m = u, p = s.getComputedStyle(o),
|
|
3085
|
+
const m = u, p = s.getComputedStyle(o), y = s.getComputedStyle(m);
|
|
3069
3086
|
n = {
|
|
3070
|
-
left: -o.offsetLeft + (0, ce.int)(
|
|
3071
|
-
top: -o.offsetTop + (0, ce.int)(
|
|
3072
|
-
right: (0, je.innerWidth)(m) - (0, je.outerWidth)(o) - o.offsetLeft + (0, ce.int)(
|
|
3073
|
-
bottom: (0, je.innerHeight)(m) - (0, je.outerHeight)(o) - o.offsetTop + (0, ce.int)(
|
|
3087
|
+
left: -o.offsetLeft + (0, ce.int)(y.paddingLeft) + (0, ce.int)(p.marginLeft),
|
|
3088
|
+
top: -o.offsetTop + (0, ce.int)(y.paddingTop) + (0, ce.int)(p.marginTop),
|
|
3089
|
+
right: (0, je.innerWidth)(m) - (0, je.outerWidth)(o) - o.offsetLeft + (0, ce.int)(y.paddingRight) - (0, ce.int)(p.marginRight),
|
|
3090
|
+
bottom: (0, je.innerHeight)(m) - (0, je.outerHeight)(o) - o.offsetTop + (0, ce.int)(y.paddingBottom) - (0, ce.int)(p.marginBottom)
|
|
3074
3091
|
};
|
|
3075
3092
|
}
|
|
3076
3093
|
return (0, ce.isNum)(n.right) && (t = Math.min(t, n.right)), (0, ce.isNum)(n.bottom) && (r = Math.min(r, n.bottom)), (0, ce.isNum)(n.left) && (t = Math.max(t, n.left)), (0, ce.isNum)(n.top) && (r = Math.max(r, n.top)), [t, r];
|
|
@@ -3079,20 +3096,20 @@ function Ro(e, t, r) {
|
|
|
3079
3096
|
const n = Math.round(t / e[0]) * e[0], o = Math.round(r / e[1]) * e[1];
|
|
3080
3097
|
return [n, o];
|
|
3081
3098
|
}
|
|
3082
|
-
function
|
|
3099
|
+
function To(e) {
|
|
3083
3100
|
return e.props.axis === "both" || e.props.axis === "x";
|
|
3084
3101
|
}
|
|
3085
|
-
function
|
|
3102
|
+
function Po(e) {
|
|
3086
3103
|
return e.props.axis === "both" || e.props.axis === "y";
|
|
3087
3104
|
}
|
|
3088
3105
|
function jo(e, t, r) {
|
|
3089
3106
|
const n = typeof t == "number" ? (0, je.getTouch)(e, t) : null;
|
|
3090
3107
|
if (typeof t == "number" && !n) return null;
|
|
3091
|
-
const o =
|
|
3108
|
+
const o = Ot(r), a = r.props.offsetParent || o.offsetParent || o.ownerDocument.body;
|
|
3092
3109
|
return (0, je.offsetXYFromParent)(n || e, a, r.props.scale);
|
|
3093
3110
|
}
|
|
3094
3111
|
function Mo(e, t, r) {
|
|
3095
|
-
const n = !(0, ce.isNum)(e.lastX), o =
|
|
3112
|
+
const n = !(0, ce.isNum)(e.lastX), o = Ot(e);
|
|
3096
3113
|
return n ? {
|
|
3097
3114
|
node: o,
|
|
3098
3115
|
deltaX: 0,
|
|
@@ -3131,7 +3148,7 @@ function Ao(e) {
|
|
|
3131
3148
|
bottom: e.bottom
|
|
3132
3149
|
};
|
|
3133
3150
|
}
|
|
3134
|
-
function
|
|
3151
|
+
function Ot(e) {
|
|
3135
3152
|
const t = e.findDOMNode();
|
|
3136
3153
|
if (!t)
|
|
3137
3154
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
@@ -3148,8 +3165,8 @@ Object.defineProperty(Ke, "__esModule", {
|
|
|
3148
3165
|
value: !0
|
|
3149
3166
|
});
|
|
3150
3167
|
Ke.default = void 0;
|
|
3151
|
-
var mt = Io(_e), se =
|
|
3152
|
-
function
|
|
3168
|
+
var mt = Io(_e), se = Rt(Xe), zo = Rt(Nr), re = K, we = Ne, pt = xe, Ae = Rt(Ge);
|
|
3169
|
+
function Rt(e) {
|
|
3153
3170
|
return e && e.__esModule ? e : { default: e };
|
|
3154
3171
|
}
|
|
3155
3172
|
function Mr(e) {
|
|
@@ -3454,67 +3471,67 @@ ie(Je, "defaultProps", {
|
|
|
3454
3471
|
return m.default;
|
|
3455
3472
|
}
|
|
3456
3473
|
}), e.default = void 0;
|
|
3457
|
-
var t = O(_e), r =
|
|
3458
|
-
function
|
|
3459
|
-
return
|
|
3474
|
+
var t = O(_e), r = y(Xe), n = y(Nr), o = y(oo), a = K, s = Ne, u = xe, m = y(Ke), p = y(Ge);
|
|
3475
|
+
function y(g) {
|
|
3476
|
+
return g && g.__esModule ? g : { default: g };
|
|
3460
3477
|
}
|
|
3461
|
-
function
|
|
3478
|
+
function v(g) {
|
|
3462
3479
|
if (typeof WeakMap != "function") return null;
|
|
3463
|
-
var
|
|
3464
|
-
return (
|
|
3465
|
-
return c ? E :
|
|
3466
|
-
})(
|
|
3480
|
+
var N = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
|
|
3481
|
+
return (v = function(c) {
|
|
3482
|
+
return c ? E : N;
|
|
3483
|
+
})(g);
|
|
3467
3484
|
}
|
|
3468
|
-
function O(
|
|
3469
|
-
if (
|
|
3470
|
-
return
|
|
3471
|
-
if (
|
|
3472
|
-
return { default:
|
|
3473
|
-
var E = N
|
|
3474
|
-
if (E && E.has(
|
|
3475
|
-
return E.get(
|
|
3485
|
+
function O(g, N) {
|
|
3486
|
+
if (g && g.__esModule)
|
|
3487
|
+
return g;
|
|
3488
|
+
if (g === null || typeof g != "object" && typeof g != "function")
|
|
3489
|
+
return { default: g };
|
|
3490
|
+
var E = v(N);
|
|
3491
|
+
if (E && E.has(g))
|
|
3492
|
+
return E.get(g);
|
|
3476
3493
|
var c = {}, Y = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3477
|
-
for (var
|
|
3478
|
-
if (
|
|
3479
|
-
var Q = Y ? Object.getOwnPropertyDescriptor(
|
|
3480
|
-
Q && (Q.get || Q.set) ? Object.defineProperty(c,
|
|
3494
|
+
for (var T in g)
|
|
3495
|
+
if (T !== "default" && Object.prototype.hasOwnProperty.call(g, T)) {
|
|
3496
|
+
var Q = Y ? Object.getOwnPropertyDescriptor(g, T) : null;
|
|
3497
|
+
Q && (Q.get || Q.set) ? Object.defineProperty(c, T, Q) : c[T] = g[T];
|
|
3481
3498
|
}
|
|
3482
|
-
return c.default =
|
|
3499
|
+
return c.default = g, E && E.set(g, c), c;
|
|
3483
3500
|
}
|
|
3484
3501
|
function S() {
|
|
3485
|
-
return S = Object.assign ? Object.assign.bind() : function(
|
|
3486
|
-
for (var
|
|
3487
|
-
var E = arguments[
|
|
3502
|
+
return S = Object.assign ? Object.assign.bind() : function(g) {
|
|
3503
|
+
for (var N = 1; N < arguments.length; N++) {
|
|
3504
|
+
var E = arguments[N];
|
|
3488
3505
|
for (var c in E)
|
|
3489
|
-
Object.prototype.hasOwnProperty.call(E, c) && (
|
|
3506
|
+
Object.prototype.hasOwnProperty.call(E, c) && (g[c] = E[c]);
|
|
3490
3507
|
}
|
|
3491
|
-
return
|
|
3508
|
+
return g;
|
|
3492
3509
|
}, S.apply(this, arguments);
|
|
3493
3510
|
}
|
|
3494
|
-
function A(
|
|
3495
|
-
return
|
|
3511
|
+
function A(g, N, E) {
|
|
3512
|
+
return N = $(N), N in g ? Object.defineProperty(g, N, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : g[N] = E, g;
|
|
3496
3513
|
}
|
|
3497
|
-
function $(
|
|
3498
|
-
var
|
|
3499
|
-
return typeof
|
|
3514
|
+
function $(g) {
|
|
3515
|
+
var N = B(g, "string");
|
|
3516
|
+
return typeof N == "symbol" ? N : String(N);
|
|
3500
3517
|
}
|
|
3501
|
-
function B(
|
|
3502
|
-
if (typeof
|
|
3503
|
-
var E =
|
|
3518
|
+
function B(g, N) {
|
|
3519
|
+
if (typeof g != "object" || g === null) return g;
|
|
3520
|
+
var E = g[Symbol.toPrimitive];
|
|
3504
3521
|
if (E !== void 0) {
|
|
3505
|
-
var c = E.call(
|
|
3522
|
+
var c = E.call(g, N || "default");
|
|
3506
3523
|
if (typeof c != "object") return c;
|
|
3507
3524
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3508
3525
|
}
|
|
3509
|
-
return (
|
|
3526
|
+
return (N === "string" ? String : Number)(g);
|
|
3510
3527
|
}
|
|
3511
3528
|
class W extends t.Component {
|
|
3512
3529
|
// React 16.3+
|
|
3513
3530
|
// Arity (props, state)
|
|
3514
|
-
static getDerivedStateFromProps(
|
|
3531
|
+
static getDerivedStateFromProps(N, E) {
|
|
3515
3532
|
let {
|
|
3516
3533
|
position: c
|
|
3517
|
-
} =
|
|
3534
|
+
} = N, {
|
|
3518
3535
|
prevPropsPosition: Y
|
|
3519
3536
|
} = E;
|
|
3520
3537
|
return c && (!Y || c.x !== Y.x || c.y !== Y.y) ? ((0, p.default)("Draggable: getDerivedStateFromProps %j", {
|
|
@@ -3528,8 +3545,8 @@ ie(Je, "defaultProps", {
|
|
|
3528
3545
|
}
|
|
3529
3546
|
}) : null;
|
|
3530
3547
|
}
|
|
3531
|
-
constructor(
|
|
3532
|
-
super(
|
|
3548
|
+
constructor(N) {
|
|
3549
|
+
super(N), A(this, "onDragStart", (E, c) => {
|
|
3533
3550
|
if ((0, p.default)("Draggable: onDragStart: %j", c), this.props.onStart(E, (0, s.createDraggableData)(this, c)) === !1) return !1;
|
|
3534
3551
|
this.setState({
|
|
3535
3552
|
dragging: !0,
|
|
@@ -3538,7 +3555,7 @@ ie(Je, "defaultProps", {
|
|
|
3538
3555
|
}), A(this, "onDrag", (E, c) => {
|
|
3539
3556
|
if (!this.state.dragging) return !1;
|
|
3540
3557
|
(0, p.default)("Draggable: onDrag: %j", c);
|
|
3541
|
-
const Y = (0, s.createDraggableData)(this, c),
|
|
3558
|
+
const Y = (0, s.createDraggableData)(this, c), T = {
|
|
3542
3559
|
x: Y.x,
|
|
3543
3560
|
y: Y.y,
|
|
3544
3561
|
slackX: 0,
|
|
@@ -3548,17 +3565,17 @@ ie(Je, "defaultProps", {
|
|
|
3548
3565
|
const {
|
|
3549
3566
|
x: de,
|
|
3550
3567
|
y: fe
|
|
3551
|
-
} =
|
|
3552
|
-
|
|
3553
|
-
const [ye, Ee] = (0, s.getBoundPosition)(this,
|
|
3554
|
-
|
|
3568
|
+
} = T;
|
|
3569
|
+
T.x += this.state.slackX, T.y += this.state.slackY;
|
|
3570
|
+
const [ye, Ee] = (0, s.getBoundPosition)(this, T.x, T.y);
|
|
3571
|
+
T.x = ye, T.y = Ee, T.slackX = this.state.slackX + (de - T.x), T.slackY = this.state.slackY + (fe - T.y), Y.x = T.x, Y.y = T.y, Y.deltaX = T.x - this.state.x, Y.deltaY = T.y - this.state.y;
|
|
3555
3572
|
}
|
|
3556
3573
|
if (this.props.onDrag(E, Y) === !1) return !1;
|
|
3557
|
-
this.setState(
|
|
3574
|
+
this.setState(T);
|
|
3558
3575
|
}), A(this, "onDragStop", (E, c) => {
|
|
3559
3576
|
if (!this.state.dragging || this.props.onStop(E, (0, s.createDraggableData)(this, c)) === !1) return !1;
|
|
3560
3577
|
(0, p.default)("Draggable: onDragStop: %j", c);
|
|
3561
|
-
const
|
|
3578
|
+
const T = {
|
|
3562
3579
|
dragging: !1,
|
|
3563
3580
|
slackX: 0,
|
|
3564
3581
|
slackY: 0
|
|
@@ -3568,26 +3585,26 @@ ie(Je, "defaultProps", {
|
|
|
3568
3585
|
x: de,
|
|
3569
3586
|
y: fe
|
|
3570
3587
|
} = this.props.position;
|
|
3571
|
-
|
|
3588
|
+
T.x = de, T.y = fe;
|
|
3572
3589
|
}
|
|
3573
|
-
this.setState(
|
|
3590
|
+
this.setState(T);
|
|
3574
3591
|
}), this.state = {
|
|
3575
3592
|
// Whether or not we are currently dragging.
|
|
3576
3593
|
dragging: !1,
|
|
3577
3594
|
// Whether or not we have been dragged before.
|
|
3578
3595
|
dragged: !1,
|
|
3579
3596
|
// Current transform x and y.
|
|
3580
|
-
x:
|
|
3581
|
-
y:
|
|
3597
|
+
x: N.position ? N.position.x : N.defaultPosition.x,
|
|
3598
|
+
y: N.position ? N.position.y : N.defaultPosition.y,
|
|
3582
3599
|
prevPropsPosition: {
|
|
3583
|
-
...
|
|
3600
|
+
...N.position
|
|
3584
3601
|
},
|
|
3585
3602
|
// Used for compensating for out-of-bounds drags
|
|
3586
3603
|
slackX: 0,
|
|
3587
3604
|
slackY: 0,
|
|
3588
3605
|
// Can only determine if SVG after mounting
|
|
3589
3606
|
isElementSVG: !1
|
|
3590
|
-
},
|
|
3607
|
+
}, N.position && !(N.onDrag || N.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
|
|
3591
3608
|
}
|
|
3592
3609
|
componentDidMount() {
|
|
3593
3610
|
typeof window.SVGElement < "u" && this.findDOMNode() instanceof window.SVGElement && this.setState({
|
|
@@ -3602,16 +3619,16 @@ ie(Je, "defaultProps", {
|
|
|
3602
3619
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
3603
3620
|
// the underlying DOM node ourselves. See the README for more information.
|
|
3604
3621
|
findDOMNode() {
|
|
3605
|
-
var
|
|
3606
|
-
return (
|
|
3622
|
+
var N, E;
|
|
3623
|
+
return (N = (E = this.props) === null || E === void 0 || (E = E.nodeRef) === null || E === void 0 ? void 0 : E.current) !== null && N !== void 0 ? N : n.default.findDOMNode(this);
|
|
3607
3624
|
}
|
|
3608
3625
|
render() {
|
|
3609
3626
|
const {
|
|
3610
|
-
axis:
|
|
3627
|
+
axis: N,
|
|
3611
3628
|
bounds: E,
|
|
3612
3629
|
children: c,
|
|
3613
3630
|
defaultPosition: Y,
|
|
3614
|
-
defaultClassName:
|
|
3631
|
+
defaultClassName: T,
|
|
3615
3632
|
defaultClassNameDragging: Q,
|
|
3616
3633
|
defaultClassNameDragged: de,
|
|
3617
3634
|
position: fe,
|
|
@@ -3627,7 +3644,7 @@ ie(Je, "defaultProps", {
|
|
|
3627
3644
|
y: (0, s.canDragY)(this) && le ? this.state.y : ge.y
|
|
3628
3645
|
};
|
|
3629
3646
|
this.state.isElementSVG ? me = (0, a.createSVGTransform)(Se, ye) : Z = (0, a.createCSSTransform)(Se, ye);
|
|
3630
|
-
const f = (0, o.default)(c.props.className || "",
|
|
3647
|
+
const f = (0, o.default)(c.props.className || "", T, {
|
|
3631
3648
|
[Q]: this.state.dragging,
|
|
3632
3649
|
[de]: this.state.dragged
|
|
3633
3650
|
});
|
|
@@ -3776,11 +3793,11 @@ Be.exports.DraggableCore = Wo;
|
|
|
3776
3793
|
var qo = Be.exports, Tt = {};
|
|
3777
3794
|
Tt.__esModule = !0;
|
|
3778
3795
|
Tt.cloneElement = Ko;
|
|
3779
|
-
var Yo =
|
|
3780
|
-
function
|
|
3796
|
+
var Yo = Fo(_e);
|
|
3797
|
+
function Fo(e) {
|
|
3781
3798
|
return e && e.__esModule ? e : { default: e };
|
|
3782
3799
|
}
|
|
3783
|
-
function
|
|
3800
|
+
function dr(e, t) {
|
|
3784
3801
|
var r = Object.keys(e);
|
|
3785
3802
|
if (Object.getOwnPropertySymbols) {
|
|
3786
3803
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -3790,18 +3807,18 @@ function fr(e, t) {
|
|
|
3790
3807
|
}
|
|
3791
3808
|
return r;
|
|
3792
3809
|
}
|
|
3793
|
-
function
|
|
3810
|
+
function fr(e) {
|
|
3794
3811
|
for (var t = 1; t < arguments.length; t++) {
|
|
3795
3812
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3796
|
-
t % 2 ?
|
|
3797
|
-
|
|
3798
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
3813
|
+
t % 2 ? dr(Object(r), !0).forEach(function(n) {
|
|
3814
|
+
Uo(e, n, r[n]);
|
|
3815
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : dr(Object(r)).forEach(function(n) {
|
|
3799
3816
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
3800
3817
|
});
|
|
3801
3818
|
}
|
|
3802
3819
|
return e;
|
|
3803
3820
|
}
|
|
3804
|
-
function
|
|
3821
|
+
function Uo(e, t, r) {
|
|
3805
3822
|
return t = Bo(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
3806
3823
|
}
|
|
3807
3824
|
function Bo(e) {
|
|
@@ -3819,7 +3836,7 @@ function Xo(e, t) {
|
|
|
3819
3836
|
return (t === "string" ? String : Number)(e);
|
|
3820
3837
|
}
|
|
3821
3838
|
function Ko(e, t) {
|
|
3822
|
-
return t.style && e.props.style && (t.style =
|
|
3839
|
+
return t.style && e.props.style && (t.style = fr(fr({}, e.props.style), t.style)), t.className && e.props.className && (t.className = e.props.className + " " + t.className), /* @__PURE__ */ Yo.default.cloneElement(e, t);
|
|
3823
3840
|
}
|
|
3824
3841
|
var Ie = {};
|
|
3825
3842
|
Ie.__esModule = !0;
|
|
@@ -3977,7 +3994,7 @@ function na(e, t) {
|
|
|
3977
3994
|
o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
3978
3995
|
return r;
|
|
3979
3996
|
}
|
|
3980
|
-
function
|
|
3997
|
+
function mr(e, t) {
|
|
3981
3998
|
var r = Object.keys(e);
|
|
3982
3999
|
if (Object.getOwnPropertySymbols) {
|
|
3983
4000
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -3990,9 +4007,9 @@ function pr(e, t) {
|
|
|
3990
4007
|
function bt(e) {
|
|
3991
4008
|
for (var t = 1; t < arguments.length; t++) {
|
|
3992
4009
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3993
|
-
t % 2 ?
|
|
4010
|
+
t % 2 ? mr(Object(r), !0).forEach(function(n) {
|
|
3994
4011
|
ia(e, n, r[n]);
|
|
3995
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
4012
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : mr(Object(r)).forEach(function(n) {
|
|
3996
4013
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
3997
4014
|
});
|
|
3998
4015
|
}
|
|
@@ -4023,7 +4040,7 @@ function Et(e, t) {
|
|
|
4023
4040
|
return n.__proto__ = o, n;
|
|
4024
4041
|
}, Et(e, t);
|
|
4025
4042
|
}
|
|
4026
|
-
var
|
|
4043
|
+
var Pt = /* @__PURE__ */ function(e) {
|
|
4027
4044
|
sa(t, e);
|
|
4028
4045
|
function t() {
|
|
4029
4046
|
for (var n, o = arguments.length, a = new Array(o), s = 0; s < o; s++)
|
|
@@ -4039,15 +4056,15 @@ var jt = /* @__PURE__ */ function(e) {
|
|
|
4039
4056
|
var s = this.props, u = s.minConstraints, m = s.maxConstraints, p = s.lockAspectRatio;
|
|
4040
4057
|
if (!u && !m && !p) return [o, a];
|
|
4041
4058
|
if (p) {
|
|
4042
|
-
var
|
|
4043
|
-
Math.abs(
|
|
4059
|
+
var y = this.props.width / this.props.height, v = o - this.props.width, O = a - this.props.height;
|
|
4060
|
+
Math.abs(v) > Math.abs(O * y) ? a = o / y : o = a * y;
|
|
4044
4061
|
}
|
|
4045
4062
|
var S = o, A = a, $ = this.slack || [0, 0], B = $[0], W = $[1];
|
|
4046
4063
|
return o += B, a += W, u && (o = Math.max(u[0], o), a = Math.max(u[1], a)), m && (o = Math.min(m[0], o), a = Math.min(m[1], a)), this.slack = [B + (S - o), W + (A - a)], [o, a];
|
|
4047
4064
|
}, r.resizeHandler = function(o, a) {
|
|
4048
4065
|
var s = this;
|
|
4049
4066
|
return function(u, m) {
|
|
4050
|
-
var p = m.node,
|
|
4067
|
+
var p = m.node, y = m.deltaX, v = m.deltaY;
|
|
4051
4068
|
o === "onResizeStart" && s.resetData();
|
|
4052
4069
|
var O = (s.props.axis === "both" || s.props.axis === "x") && a !== "n" && a !== "s", S = (s.props.axis === "both" || s.props.axis === "y") && a !== "e" && a !== "w";
|
|
4053
4070
|
if (!(!O && !S)) {
|
|
@@ -4055,21 +4072,21 @@ var jt = /* @__PURE__ */ function(e) {
|
|
|
4055
4072
|
if (s.lastHandleRect != null) {
|
|
4056
4073
|
if ($ === "w") {
|
|
4057
4074
|
var W = B.left - s.lastHandleRect.left;
|
|
4058
|
-
|
|
4075
|
+
y += W;
|
|
4059
4076
|
}
|
|
4060
4077
|
if (A === "n") {
|
|
4061
|
-
var
|
|
4062
|
-
|
|
4078
|
+
var g = B.top - s.lastHandleRect.top;
|
|
4079
|
+
v += g;
|
|
4063
4080
|
}
|
|
4064
4081
|
}
|
|
4065
|
-
s.lastHandleRect = B, $ === "w" && (
|
|
4066
|
-
var
|
|
4067
|
-
|
|
4068
|
-
var Y =
|
|
4069
|
-
|
|
4082
|
+
s.lastHandleRect = B, $ === "w" && (y = -y), A === "n" && (v = -v);
|
|
4083
|
+
var N = s.props.width + (O ? y / s.props.transformScale : 0), E = s.props.height + (S ? v / s.props.transformScale : 0), c = s.runConstraints(N, E);
|
|
4084
|
+
N = c[0], E = c[1];
|
|
4085
|
+
var Y = N !== s.props.width || E !== s.props.height, T = typeof s.props[o] == "function" ? s.props[o] : null, Q = o === "onResize" && !Y;
|
|
4086
|
+
T && !Q && (u.persist == null || u.persist(), T(u, {
|
|
4070
4087
|
node: p,
|
|
4071
4088
|
size: {
|
|
4072
|
-
width:
|
|
4089
|
+
width: N,
|
|
4073
4090
|
height: E
|
|
4074
4091
|
},
|
|
4075
4092
|
handle: a
|
|
@@ -4096,25 +4113,25 @@ var jt = /* @__PURE__ */ function(e) {
|
|
|
4096
4113
|
a.width, a.height, a.handle, a.handleSize, a.lockAspectRatio, a.axis, a.minConstraints, a.maxConstraints, a.onResize, a.onResizeStop, a.onResizeStart;
|
|
4097
4114
|
var p = a.resizeHandles;
|
|
4098
4115
|
a.transformScale;
|
|
4099
|
-
var
|
|
4100
|
-
return (0, Qo.cloneElement)(s, bt(bt({},
|
|
4116
|
+
var y = na(a, ta);
|
|
4117
|
+
return (0, Qo.cloneElement)(s, bt(bt({}, y), {}, {
|
|
4101
4118
|
className: (u ? u + " " : "") + "react-resizable",
|
|
4102
|
-
children: [].concat(s.props.children, p.map(function(
|
|
4103
|
-
var O, S = (O = o.handleRefs[
|
|
4119
|
+
children: [].concat(s.props.children, p.map(function(v) {
|
|
4120
|
+
var O, S = (O = o.handleRefs[v]) != null ? O : o.handleRefs[v] = /* @__PURE__ */ $e.createRef();
|
|
4104
4121
|
return /* @__PURE__ */ $e.createElement(Zo.DraggableCore, Nt({}, m, {
|
|
4105
4122
|
nodeRef: S,
|
|
4106
|
-
key: "resizableHandle-" +
|
|
4107
|
-
onStop: o.resizeHandler("onResizeStop",
|
|
4108
|
-
onStart: o.resizeHandler("onResizeStart",
|
|
4109
|
-
onDrag: o.resizeHandler("onResize",
|
|
4110
|
-
}), o.renderResizeHandle(
|
|
4123
|
+
key: "resizableHandle-" + v,
|
|
4124
|
+
onStop: o.resizeHandler("onResizeStop", v),
|
|
4125
|
+
onStart: o.resizeHandler("onResizeStart", v),
|
|
4126
|
+
onDrag: o.resizeHandler("onResize", v)
|
|
4127
|
+
}), o.renderResizeHandle(v, S));
|
|
4111
4128
|
}))
|
|
4112
4129
|
}));
|
|
4113
4130
|
}, t;
|
|
4114
4131
|
}($e.Component);
|
|
4115
|
-
ze.default =
|
|
4116
|
-
|
|
4117
|
-
|
|
4132
|
+
ze.default = Pt;
|
|
4133
|
+
Pt.propTypes = ea.resizableProps;
|
|
4134
|
+
Pt.defaultProps = {
|
|
4118
4135
|
axis: "both",
|
|
4119
4136
|
handleSize: [20, 20],
|
|
4120
4137
|
lockAspectRatio: !1,
|
|
@@ -4163,7 +4180,7 @@ function St() {
|
|
|
4163
4180
|
return e;
|
|
4164
4181
|
}, St.apply(this, arguments);
|
|
4165
4182
|
}
|
|
4166
|
-
function
|
|
4183
|
+
function pr(e, t) {
|
|
4167
4184
|
var r = Object.keys(e);
|
|
4168
4185
|
if (Object.getOwnPropertySymbols) {
|
|
4169
4186
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -4173,12 +4190,12 @@ function br(e, t) {
|
|
|
4173
4190
|
}
|
|
4174
4191
|
return r;
|
|
4175
4192
|
}
|
|
4176
|
-
function
|
|
4193
|
+
function Ue(e) {
|
|
4177
4194
|
for (var t = 1; t < arguments.length; t++) {
|
|
4178
4195
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
4179
|
-
t % 2 ?
|
|
4196
|
+
t % 2 ? pr(Object(r), !0).forEach(function(n) {
|
|
4180
4197
|
ma(e, n, r[n]);
|
|
4181
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
4198
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : pr(Object(r)).forEach(function(n) {
|
|
4182
4199
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4183
4200
|
});
|
|
4184
4201
|
}
|
|
@@ -4245,7 +4262,7 @@ var Ir = /* @__PURE__ */ function(e) {
|
|
|
4245
4262
|
return r.render = function() {
|
|
4246
4263
|
var o = this.props, a = o.handle, s = o.handleSize;
|
|
4247
4264
|
o.onResize;
|
|
4248
|
-
var u = o.onResizeStart, m = o.onResizeStop, p = o.draggableOpts,
|
|
4265
|
+
var u = o.onResizeStart, m = o.onResizeStop, p = o.draggableOpts, y = o.minConstraints, v = o.maxConstraints, O = o.lockAspectRatio, S = o.axis;
|
|
4249
4266
|
o.width, o.height;
|
|
4250
4267
|
var A = o.resizeHandles, $ = o.style, B = o.transformScale, W = ha(o, da);
|
|
4251
4268
|
return /* @__PURE__ */ ht.createElement(ca.default, {
|
|
@@ -4255,8 +4272,8 @@ var Ir = /* @__PURE__ */ function(e) {
|
|
|
4255
4272
|
handleSize: s,
|
|
4256
4273
|
height: this.state.height,
|
|
4257
4274
|
lockAspectRatio: O,
|
|
4258
|
-
maxConstraints:
|
|
4259
|
-
minConstraints:
|
|
4275
|
+
maxConstraints: v,
|
|
4276
|
+
minConstraints: y,
|
|
4260
4277
|
onResizeStart: u,
|
|
4261
4278
|
onResize: this.onResize,
|
|
4262
4279
|
onResizeStop: m,
|
|
@@ -4264,7 +4281,7 @@ var Ir = /* @__PURE__ */ function(e) {
|
|
|
4264
4281
|
transformScale: B,
|
|
4265
4282
|
width: this.state.width
|
|
4266
4283
|
}, /* @__PURE__ */ ht.createElement("div", St({}, W, {
|
|
4267
|
-
style:
|
|
4284
|
+
style: Ue(Ue({}, $), {}, {
|
|
4268
4285
|
width: this.state.width + "px",
|
|
4269
4286
|
height: this.state.height + "px"
|
|
4270
4287
|
})
|
|
@@ -4272,16 +4289,16 @@ var Ir = /* @__PURE__ */ function(e) {
|
|
|
4272
4289
|
}, t;
|
|
4273
4290
|
}(ht.Component);
|
|
4274
4291
|
Ze.default = Ir;
|
|
4275
|
-
Ir.propTypes =
|
|
4292
|
+
Ir.propTypes = Ue(Ue({}, ua.resizableProps), {}, {
|
|
4276
4293
|
children: la.default.element
|
|
4277
4294
|
});
|
|
4278
|
-
|
|
4295
|
+
kt.exports = function() {
|
|
4279
4296
|
throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
|
|
4280
4297
|
};
|
|
4281
|
-
|
|
4282
|
-
var va =
|
|
4298
|
+
kt.exports.Resizable = ze.default;
|
|
4299
|
+
var va = kt.exports.ResizableBox = Ze.default;
|
|
4283
4300
|
const ga = (e) => {
|
|
4284
|
-
const { editor: t } =
|
|
4301
|
+
const { editor: t } = cn();
|
|
4285
4302
|
if (!t) return null;
|
|
4286
4303
|
const { node: r, updateAttributes: n } = e, [o, a] = he({
|
|
4287
4304
|
width: r.attrs.width || 300,
|
|
@@ -4289,9 +4306,9 @@ const ga = (e) => {
|
|
|
4289
4306
|
}), [s, u] = he({
|
|
4290
4307
|
left: r.attrs.marginLeft || 0,
|
|
4291
4308
|
right: r.attrs.marginRight || 0
|
|
4292
|
-
}), [m, p] = he(r.attrs.src || ""),
|
|
4293
|
-
|
|
4294
|
-
if (r.attrs.src &&
|
|
4309
|
+
}), [m, p] = he(r.attrs.src || ""), y = sn(null);
|
|
4310
|
+
hr(() => {
|
|
4311
|
+
if (r.attrs.src && y.current) {
|
|
4295
4312
|
const S = new Image();
|
|
4296
4313
|
S.onload = () => {
|
|
4297
4314
|
(!r.attrs.width || !r.attrs.height) && a({
|
|
@@ -4301,7 +4318,7 @@ const ga = (e) => {
|
|
|
4301
4318
|
}, S.src = r.attrs.src;
|
|
4302
4319
|
}
|
|
4303
4320
|
}, [r.attrs.src]);
|
|
4304
|
-
const
|
|
4321
|
+
const v = (S, { size: A }) => {
|
|
4305
4322
|
a({
|
|
4306
4323
|
width: A.width,
|
|
4307
4324
|
height: A.height
|
|
@@ -4335,7 +4352,7 @@ const ga = (e) => {
|
|
|
4335
4352
|
{
|
|
4336
4353
|
width: o.width,
|
|
4337
4354
|
height: o.height,
|
|
4338
|
-
onResize:
|
|
4355
|
+
onResize: v,
|
|
4339
4356
|
minConstraints: [100, 100],
|
|
4340
4357
|
maxConstraints: [800, 800],
|
|
4341
4358
|
lockAspectRatio: !0,
|
|
@@ -4343,7 +4360,7 @@ const ga = (e) => {
|
|
|
4343
4360
|
children: /* @__PURE__ */ l.jsxDEV(
|
|
4344
4361
|
"img",
|
|
4345
4362
|
{
|
|
4346
|
-
ref:
|
|
4363
|
+
ref: y,
|
|
4347
4364
|
src: r.attrs.src,
|
|
4348
4365
|
alt: "Uploaded",
|
|
4349
4366
|
className: "object-contain w-full h-full",
|
|
@@ -4370,7 +4387,7 @@ const ga = (e) => {
|
|
|
4370
4387
|
) : /* @__PURE__ */ l.jsxDEV(
|
|
4371
4388
|
"img",
|
|
4372
4389
|
{
|
|
4373
|
-
ref:
|
|
4390
|
+
ref: y,
|
|
4374
4391
|
src: r.attrs.src,
|
|
4375
4392
|
alt: "Uploaded",
|
|
4376
4393
|
style: {
|
|
@@ -4621,9 +4638,9 @@ const ga = (e) => {
|
|
|
4621
4638
|
}
|
|
4622
4639
|
}), Na = [
|
|
4623
4640
|
bn.configure({
|
|
4624
|
-
types: [
|
|
4641
|
+
types: [Ut.name, pn.name]
|
|
4625
4642
|
}),
|
|
4626
|
-
|
|
4643
|
+
Ut,
|
|
4627
4644
|
yn.configure({ multicolor: !0 }),
|
|
4628
4645
|
hn.configure({
|
|
4629
4646
|
bulletList: {
|
|
@@ -4669,36 +4686,32 @@ const ga = (e) => {
|
|
|
4669
4686
|
editable: o = !0,
|
|
4670
4687
|
onChange: a
|
|
4671
4688
|
}) => {
|
|
4672
|
-
const s =
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
},
|
|
4689
|
-
e,
|
|
4690
|
-
!1,
|
|
4691
|
-
{
|
|
4689
|
+
const s = un({
|
|
4690
|
+
extensions: Na,
|
|
4691
|
+
content: e,
|
|
4692
|
+
editable: o,
|
|
4693
|
+
onUpdate: ({ editor: u }) => {
|
|
4694
|
+
a && a(u.getHTML());
|
|
4695
|
+
}
|
|
4696
|
+
});
|
|
4697
|
+
return hr(() => {
|
|
4698
|
+
s && e !== s.getHTML() && s.commands.setContent(e, !1);
|
|
4699
|
+
}, [s, e]), s ? /* @__PURE__ */ l.jsxDEV("div", { className: `cyber-editor-container ${r}`, children: [
|
|
4700
|
+
t && /* @__PURE__ */ l.jsxDEV(Bi, { editor: s }, void 0, !1, {
|
|
4701
|
+
fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
|
|
4702
|
+
lineNumber: 36,
|
|
4703
|
+
columnNumber: 28
|
|
4704
|
+
}, void 0),
|
|
4705
|
+
/* @__PURE__ */ l.jsxDEV(dn, { editor: s, className: n }, void 0, !1, {
|
|
4692
4706
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
|
|
4693
|
-
lineNumber:
|
|
4707
|
+
lineNumber: 37,
|
|
4694
4708
|
columnNumber: 13
|
|
4695
|
-
},
|
|
4696
|
-
|
|
4697
|
-
) }, void 0, !1, {
|
|
4709
|
+
}, void 0)
|
|
4710
|
+
] }, void 0, !0, {
|
|
4698
4711
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
|
|
4699
|
-
lineNumber:
|
|
4712
|
+
lineNumber: 35,
|
|
4700
4713
|
columnNumber: 9
|
|
4701
|
-
}, void 0);
|
|
4714
|
+
}, void 0) : null;
|
|
4702
4715
|
};
|
|
4703
4716
|
export {
|
|
4704
4717
|
Ya as CyberEditorProvider
|