@cyberskill/cyber-editor 3.4.1 → 3.5.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/components/modal-edit.d.ts +1 -1
- package/dist/cyber-editor.cjs.js +243 -0
- package/dist/cyber-editor.cjs.js.map +1 -0
- package/dist/cyber-editor.es.js +614 -609
- package/dist/cyber-editor.es.js.map +1 -0
- package/dist/extensions/image/image-view.d.ts +4 -2
- package/dist/extensions/table/table-selector.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/utils/extensions.d.ts +1 -1
- package/package.json +34 -33
- package/dist/cyber-editor.umd.js +0 -243
- /package/dist/{assets/cyber.css → cyber-editor.css} +0 -0
package/dist/cyber-editor.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import _e, { forwardRef as
|
|
1
|
+
import _e, { forwardRef as hr, createElement as yt, useState as ue, useRef as sn, useEffect as vt } from "react";
|
|
2
2
|
import { NodeViewWrapper as yr, NodeViewContent as ln, ReactNodeViewRenderer as vr, useEditor as cn, EditorContent as un } from "@tiptap/react";
|
|
3
|
-
import { ColorPicker as dn, Tooltip as
|
|
3
|
+
import { ColorPicker as dn, Tooltip as gt, Dropdown as kt, Menu as Ut, Modal as fn } from "antd";
|
|
4
4
|
import mn from "@tiptap/extension-list-item";
|
|
5
5
|
import { Color as pn } from "@tiptap/extension-color";
|
|
6
|
-
import
|
|
6
|
+
import Bt from "@tiptap/extension-text-style";
|
|
7
7
|
import bn from "@tiptap/starter-kit";
|
|
8
8
|
import hn from "@tiptap/extension-highlight";
|
|
9
9
|
import yn from "@tiptap/extension-underline";
|
|
@@ -38,7 +38,7 @@ function _n(e) {
|
|
|
38
38
|
});
|
|
39
39
|
}), r;
|
|
40
40
|
}
|
|
41
|
-
var
|
|
41
|
+
var xt = { exports: {} }, Le = {};
|
|
42
42
|
/**
|
|
43
43
|
* @license React
|
|
44
44
|
* react-jsx-dev-runtime.production.min.js
|
|
@@ -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 Xt;
|
|
52
52
|
function On() {
|
|
53
|
-
if (
|
|
54
|
-
|
|
53
|
+
if (Xt) return Le;
|
|
54
|
+
Xt = 1;
|
|
55
55
|
var e = Symbol.for("react.fragment");
|
|
56
56
|
return Le.Fragment = e, Le.jsxDEV = void 0, Le;
|
|
57
57
|
}
|
|
@@ -65,48 +65,48 @@ 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
|
|
68
|
+
var Kt;
|
|
69
69
|
function Rn() {
|
|
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"),
|
|
70
|
+
return Kt || (Kt = 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"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = 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;
|
|
75
|
-
var
|
|
76
|
-
return typeof
|
|
75
|
+
var f = A && i[A] || i[$];
|
|
76
|
+
return typeof f == "function" ? f : null;
|
|
77
77
|
}
|
|
78
78
|
var W = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
79
79
|
function g(i) {
|
|
80
80
|
{
|
|
81
|
-
for (var
|
|
81
|
+
for (var f = arguments.length, h = new Array(f > 1 ? f - 1 : 0), w = 1; w < f; w++)
|
|
82
82
|
h[w - 1] = arguments[w];
|
|
83
83
|
N("error", i, h);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function N(i,
|
|
86
|
+
function N(i, f, h) {
|
|
87
87
|
{
|
|
88
88
|
var w = W.ReactDebugCurrentFrame, q = w.getStackAddendum();
|
|
89
|
-
q !== "" && (
|
|
89
|
+
q !== "" && (f += "%s", h = h.concat([q]));
|
|
90
90
|
var X = h.map(function(I) {
|
|
91
91
|
return String(I);
|
|
92
92
|
});
|
|
93
|
-
X.unshift("Warning: " +
|
|
93
|
+
X.unshift("Warning: " + f), Function.prototype.apply.call(console[i], console, X);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
var E = !1, c = !1, Y = !1, T = !1, Q = !1,
|
|
97
|
-
|
|
98
|
-
function
|
|
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 ===
|
|
96
|
+
var E = !1, c = !1, Y = !1, T = !1, Q = !1, fe;
|
|
97
|
+
fe = Symbol.for("react.module.reference");
|
|
98
|
+
function me(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 === l || i.$$typeof === u || i.$$typeof === d || // 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
|
-
i.$$typeof ===
|
|
103
|
+
i.$$typeof === fe || i.getModuleId !== void 0));
|
|
104
104
|
}
|
|
105
|
-
function ye(i,
|
|
105
|
+
function ye(i, f, h) {
|
|
106
106
|
var w = i.displayName;
|
|
107
107
|
if (w)
|
|
108
108
|
return w;
|
|
109
|
-
var q =
|
|
109
|
+
var q = f.displayName || f.name || "";
|
|
110
110
|
return q !== "" ? h + "(" + q + ")" : h;
|
|
111
111
|
}
|
|
112
112
|
function Ee(i) {
|
|
@@ -136,12 +136,12 @@ function Rn() {
|
|
|
136
136
|
if (typeof i == "object")
|
|
137
137
|
switch (i.$$typeof) {
|
|
138
138
|
case u:
|
|
139
|
-
var
|
|
140
|
-
return Ee(
|
|
141
|
-
case
|
|
139
|
+
var f = i;
|
|
140
|
+
return Ee(f) + ".Consumer";
|
|
141
|
+
case l:
|
|
142
142
|
var h = i;
|
|
143
143
|
return Ee(h._context) + ".Provider";
|
|
144
|
-
case
|
|
144
|
+
case d:
|
|
145
145
|
return ye(i, i.render, "ForwardRef");
|
|
146
146
|
case v:
|
|
147
147
|
var w = i.displayName || null;
|
|
@@ -157,14 +157,14 @@ function Rn() {
|
|
|
157
157
|
}
|
|
158
158
|
return null;
|
|
159
159
|
}
|
|
160
|
-
var Z = Object.assign,
|
|
160
|
+
var Z = Object.assign, pe = 0, oe, le, ge, Se, m, x, P;
|
|
161
161
|
function R() {
|
|
162
162
|
}
|
|
163
163
|
R.__reactDisabledLog = !0;
|
|
164
164
|
function C() {
|
|
165
165
|
{
|
|
166
|
-
if (
|
|
167
|
-
oe = console.log, le = console.info, ge = console.warn, Se = console.error,
|
|
166
|
+
if (pe === 0) {
|
|
167
|
+
oe = console.log, le = console.info, ge = console.warn, Se = console.error, m = console.group, x = console.groupCollapsed, P = console.groupEnd;
|
|
168
168
|
var i = {
|
|
169
169
|
configurable: !0,
|
|
170
170
|
enumerable: !0,
|
|
@@ -181,12 +181,12 @@ function Rn() {
|
|
|
181
181
|
groupEnd: i
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
pe++;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
function z() {
|
|
188
188
|
{
|
|
189
|
-
if (
|
|
189
|
+
if (pe--, pe === 0) {
|
|
190
190
|
var i = {
|
|
191
191
|
configurable: !0,
|
|
192
192
|
enumerable: !0,
|
|
@@ -206,7 +206,7 @@ function Rn() {
|
|
|
206
206
|
value: Se
|
|
207
207
|
}),
|
|
208
208
|
group: Z({}, i, {
|
|
209
|
-
value:
|
|
209
|
+
value: m
|
|
210
210
|
}),
|
|
211
211
|
groupCollapsed: Z({}, i, {
|
|
212
212
|
value: x
|
|
@@ -216,11 +216,11 @@ function Rn() {
|
|
|
216
216
|
})
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
pe < 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,
|
|
223
|
+
function j(i, f, h) {
|
|
224
224
|
{
|
|
225
225
|
if (_ === void 0)
|
|
226
226
|
try {
|
|
@@ -238,7 +238,7 @@ function Rn() {
|
|
|
238
238
|
var te = typeof WeakMap == "function" ? WeakMap : Map;
|
|
239
239
|
M = new te();
|
|
240
240
|
}
|
|
241
|
-
function b(i,
|
|
241
|
+
function b(i, f) {
|
|
242
242
|
if (!i || H)
|
|
243
243
|
return "";
|
|
244
244
|
{
|
|
@@ -253,7 +253,7 @@ function Rn() {
|
|
|
253
253
|
var X;
|
|
254
254
|
X = k.current, k.current = null, C();
|
|
255
255
|
try {
|
|
256
|
-
if (
|
|
256
|
+
if (f) {
|
|
257
257
|
var I = function() {
|
|
258
258
|
throw Error();
|
|
259
259
|
};
|
|
@@ -295,9 +295,9 @@ function Rn() {
|
|
|
295
295
|
if (G !== 1 || J !== 1)
|
|
296
296
|
do
|
|
297
297
|
if (G--, J--, J < 0 || V[G] !== ne[J]) {
|
|
298
|
-
var
|
|
298
|
+
var he = `
|
|
299
299
|
` + V[G].replace(" at new ", " at ");
|
|
300
|
-
return i.displayName &&
|
|
300
|
+
return i.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", i.displayName)), typeof i == "function" && M.set(i, he), he;
|
|
301
301
|
}
|
|
302
302
|
while (G >= 1 && J >= 0);
|
|
303
303
|
break;
|
|
@@ -309,14 +309,14 @@ function Rn() {
|
|
|
309
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
|
|
312
|
+
function be(i, f, h) {
|
|
313
313
|
return b(i, !1);
|
|
314
314
|
}
|
|
315
315
|
function Re(i) {
|
|
316
|
-
var
|
|
317
|
-
return !!(
|
|
316
|
+
var f = i.prototype;
|
|
317
|
+
return !!(f && f.isReactComponent);
|
|
318
318
|
}
|
|
319
|
-
function ke(i,
|
|
319
|
+
function ke(i, f, h) {
|
|
320
320
|
if (i == null)
|
|
321
321
|
return "";
|
|
322
322
|
if (typeof i == "function")
|
|
@@ -331,29 +331,29 @@ function Rn() {
|
|
|
331
331
|
}
|
|
332
332
|
if (typeof i == "object")
|
|
333
333
|
switch (i.$$typeof) {
|
|
334
|
-
case
|
|
335
|
-
return
|
|
334
|
+
case d:
|
|
335
|
+
return be(i.render);
|
|
336
336
|
case v:
|
|
337
|
-
return ke(i.type,
|
|
337
|
+
return ke(i.type, f, h);
|
|
338
338
|
case O: {
|
|
339
339
|
var w = i, q = w._payload, X = w._init;
|
|
340
340
|
try {
|
|
341
|
-
return ke(X(q),
|
|
341
|
+
return ke(X(q), f, 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, Mt = {}, Vt = W.ReactDebugCurrentFrame;
|
|
349
349
|
function He(i) {
|
|
350
350
|
if (i) {
|
|
351
|
-
var
|
|
352
|
-
|
|
351
|
+
var f = i._owner, h = ke(i.type, i._source, f ? f.type : null);
|
|
352
|
+
Vt.setExtraStackFrame(h);
|
|
353
353
|
} else
|
|
354
|
-
|
|
354
|
+
Vt.setExtraStackFrame(null);
|
|
355
355
|
}
|
|
356
|
-
function Hr(i,
|
|
356
|
+
function Hr(i, f, h, w, q) {
|
|
357
357
|
{
|
|
358
358
|
var X = Function.call.bind(Me);
|
|
359
359
|
for (var I in i)
|
|
@@ -364,11 +364,11 @@ function Rn() {
|
|
|
364
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](
|
|
367
|
+
V = i[I](f, 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), 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
|
|
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 Mt) && (Mt[V.message] = !0, He(q), g("Failed %s type: %s", h, V.message), He(null));
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
}
|
|
@@ -378,57 +378,57 @@ function Rn() {
|
|
|
378
378
|
}
|
|
379
379
|
function Wr(i) {
|
|
380
380
|
{
|
|
381
|
-
var
|
|
381
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, h = f && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
382
382
|
return h;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
function qr(i) {
|
|
386
386
|
try {
|
|
387
|
-
return
|
|
387
|
+
return At(i), !1;
|
|
388
388
|
} catch {
|
|
389
389
|
return !0;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function At(i) {
|
|
393
393
|
return "" + i;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function $t(i) {
|
|
396
396
|
if (qr(i))
|
|
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)),
|
|
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)), At(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
|
+
}, zt, It, et;
|
|
405
405
|
et = {};
|
|
406
406
|
function Fr(i) {
|
|
407
407
|
if (Me.call(i, "ref")) {
|
|
408
|
-
var
|
|
409
|
-
if (
|
|
408
|
+
var f = Object.getOwnPropertyDescriptor(i, "ref").get;
|
|
409
|
+
if (f && f.isReactWarning)
|
|
410
410
|
return !1;
|
|
411
411
|
}
|
|
412
412
|
return i.ref !== void 0;
|
|
413
413
|
}
|
|
414
414
|
function Ur(i) {
|
|
415
415
|
if (Me.call(i, "key")) {
|
|
416
|
-
var
|
|
417
|
-
if (
|
|
416
|
+
var f = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
417
|
+
if (f && f.isReactWarning)
|
|
418
418
|
return !1;
|
|
419
419
|
}
|
|
420
420
|
return i.key !== void 0;
|
|
421
421
|
}
|
|
422
|
-
function Br(i,
|
|
423
|
-
if (typeof i.ref == "string" && Ve.current &&
|
|
422
|
+
function Br(i, f) {
|
|
423
|
+
if (typeof i.ref == "string" && Ve.current && f && Ve.current.stateNode !== f) {
|
|
424
424
|
var h = ee(Ve.current.type);
|
|
425
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
|
-
function Xr(i,
|
|
428
|
+
function Xr(i, f) {
|
|
429
429
|
{
|
|
430
430
|
var h = function() {
|
|
431
|
-
|
|
431
|
+
zt || (zt = !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)", f));
|
|
432
432
|
};
|
|
433
433
|
h.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
434
434
|
get: h,
|
|
@@ -436,10 +436,10 @@ function Rn() {
|
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
function Kr(i,
|
|
439
|
+
function Kr(i, f) {
|
|
440
440
|
{
|
|
441
441
|
var h = function() {
|
|
442
|
-
|
|
442
|
+
It || (It = !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)", f));
|
|
443
443
|
};
|
|
444
444
|
h.isReactWarning = !0, Object.defineProperty(i, "ref", {
|
|
445
445
|
get: h,
|
|
@@ -447,13 +447,13 @@ function Rn() {
|
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
var Gr = function(i,
|
|
450
|
+
var Gr = function(i, f, 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
|
-
key:
|
|
456
|
+
key: f,
|
|
457
457
|
ref: h,
|
|
458
458
|
props: I,
|
|
459
459
|
// Record the component responsible for creating this element.
|
|
@@ -476,12 +476,12 @@ function Rn() {
|
|
|
476
476
|
value: q
|
|
477
477
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
478
478
|
};
|
|
479
|
-
function Jr(i,
|
|
479
|
+
function Jr(i, f, h, w, q) {
|
|
480
480
|
{
|
|
481
481
|
var X, I = {}, V = null, ne = null;
|
|
482
|
-
h !== void 0 && (
|
|
483
|
-
for (X in
|
|
484
|
-
Me.call(
|
|
482
|
+
h !== void 0 && ($t(h), V = "" + h), Ur(f) && ($t(f.key), V = "" + f.key), Fr(f) && (ne = f.ref, Br(f, q));
|
|
483
|
+
for (X in f)
|
|
484
|
+
Me.call(f, X) && !Yr.hasOwnProperty(X) && (I[X] = f[X]);
|
|
485
485
|
if (i && i.defaultProps) {
|
|
486
486
|
var G = i.defaultProps;
|
|
487
487
|
for (X in G)
|
|
@@ -494,20 +494,20 @@ function Rn() {
|
|
|
494
494
|
return Gr(i, V, ne, q, w, Ve.current, I);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
var tt = W.ReactCurrentOwner,
|
|
497
|
+
var tt = W.ReactCurrentOwner, Ht = W.ReactDebugCurrentFrame;
|
|
498
498
|
function Te(i) {
|
|
499
499
|
if (i) {
|
|
500
|
-
var
|
|
501
|
-
|
|
500
|
+
var f = i._owner, h = ke(i.type, i._source, f ? f.type : null);
|
|
501
|
+
Ht.setExtraStackFrame(h);
|
|
502
502
|
} else
|
|
503
|
-
|
|
503
|
+
Ht.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 Lt() {
|
|
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
|
|
525
|
+
var f = i.fileName.replace(/^.*[\\\/]/, ""), h = i.lineNumber;
|
|
526
526
|
return `
|
|
527
527
|
|
|
528
|
-
Check your code at ` +
|
|
528
|
+
Check your code at ` + f + ":" + h + ".";
|
|
529
529
|
}
|
|
530
530
|
return "";
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
var
|
|
533
|
+
var Wt = {};
|
|
534
534
|
function Qr(i) {
|
|
535
535
|
{
|
|
536
|
-
var
|
|
537
|
-
if (!
|
|
536
|
+
var f = Lt();
|
|
537
|
+
if (!f) {
|
|
538
538
|
var h = typeof i == "string" ? i : i.displayName || i.name;
|
|
539
|
-
h && (
|
|
539
|
+
h && (f = `
|
|
540
540
|
|
|
541
541
|
Check the top-level render call using <` + h + ">.");
|
|
542
542
|
}
|
|
543
|
-
return
|
|
543
|
+
return f;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function qt(i, f) {
|
|
547
547
|
{
|
|
548
548
|
if (!i._store || i._store.validated || i.key != null)
|
|
549
549
|
return;
|
|
550
550
|
i._store.validated = !0;
|
|
551
|
-
var h = Qr(
|
|
552
|
-
if (
|
|
551
|
+
var h = Qr(f);
|
|
552
|
+
if (Wt[h])
|
|
553
553
|
return;
|
|
554
|
-
|
|
554
|
+
Wt[h] = !0;
|
|
555
555
|
var w = "";
|
|
556
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 Yt(i, f) {
|
|
560
560
|
{
|
|
561
561
|
if (typeof i != "object")
|
|
562
562
|
return;
|
|
563
563
|
if (Qe(i))
|
|
564
564
|
for (var h = 0; h < i.length; h++) {
|
|
565
565
|
var w = i[h];
|
|
566
|
-
nt(w) &&
|
|
566
|
+
nt(w) && qt(w, f);
|
|
567
567
|
}
|
|
568
568
|
else if (nt(i))
|
|
569
569
|
i._store && (i._store.validated = !0);
|
|
@@ -571,39 +571,39 @@ Check the top-level render call using <` + h + ">.");
|
|
|
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) && qt(I.value, f);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
function en(i) {
|
|
579
579
|
{
|
|
580
|
-
var
|
|
581
|
-
if (
|
|
580
|
+
var f = i.type;
|
|
581
|
+
if (f == null || typeof f == "string")
|
|
582
582
|
return;
|
|
583
583
|
var h;
|
|
584
|
-
if (typeof
|
|
585
|
-
h =
|
|
586
|
-
else if (typeof
|
|
584
|
+
if (typeof f == "function")
|
|
585
|
+
h = f.propTypes;
|
|
586
|
+
else if (typeof f == "object" && (f.$$typeof === d || // Note: Memo only checks outer props here.
|
|
587
587
|
// Inner props are checked in the reconciler.
|
|
588
|
-
|
|
589
|
-
h =
|
|
588
|
+
f.$$typeof === v))
|
|
589
|
+
h = f.propTypes;
|
|
590
590
|
else
|
|
591
591
|
return;
|
|
592
592
|
if (h) {
|
|
593
|
-
var w = ee(
|
|
593
|
+
var w = ee(f);
|
|
594
594
|
Hr(h, i.props, "prop", w, i);
|
|
595
|
-
} else if (
|
|
595
|
+
} else if (f.PropTypes !== void 0 && !rt) {
|
|
596
596
|
rt = !0;
|
|
597
|
-
var q = ee(
|
|
597
|
+
var q = ee(f);
|
|
598
598
|
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
|
|
599
599
|
}
|
|
600
|
-
typeof
|
|
600
|
+
typeof f.getDefaultProps == "function" && !f.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
|
|
606
|
-
var w =
|
|
605
|
+
for (var f = Object.keys(i.props), h = 0; h < f.length; h++) {
|
|
606
|
+
var w = f[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;
|
|
@@ -612,46 +612,46 @@ Check the top-level render call using <` + h + ">.");
|
|
|
612
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,
|
|
615
|
+
var Ft = {};
|
|
616
|
+
function rn(i, f, h, w, q, X) {
|
|
617
617
|
{
|
|
618
|
-
var I =
|
|
618
|
+
var I = me(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 += Lt();
|
|
624
624
|
var G;
|
|
625
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,
|
|
627
|
+
var J = Jr(i, f, h, q, X);
|
|
628
628
|
if (J == null)
|
|
629
629
|
return J;
|
|
630
630
|
if (I) {
|
|
631
|
-
var
|
|
632
|
-
if (
|
|
631
|
+
var he = f.children;
|
|
632
|
+
if (he !== void 0)
|
|
633
633
|
if (w)
|
|
634
|
-
if (Qe(
|
|
635
|
-
for (var Pe = 0; Pe <
|
|
636
|
-
|
|
637
|
-
Object.freeze && Object.freeze(
|
|
634
|
+
if (Qe(he)) {
|
|
635
|
+
for (var Pe = 0; Pe < he.length; Pe++)
|
|
636
|
+
Yt(he[Pe], i);
|
|
637
|
+
Object.freeze && Object.freeze(he);
|
|
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
|
+
Yt(he, i);
|
|
642
642
|
}
|
|
643
|
-
if (Me.call(
|
|
644
|
-
var De = ee(i), ae = Object.keys(
|
|
643
|
+
if (Me.call(f, "key")) {
|
|
644
|
+
var De = ee(i), ae = Object.keys(f).filter(function(an) {
|
|
645
645
|
return an !== "key";
|
|
646
646
|
}), it = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
647
|
-
if (!
|
|
647
|
+
if (!Ft[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), Ft[De + it] = !0;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
return i === n ? tn(J) : en(J), J;
|
|
@@ -661,8 +661,8 @@ 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" ?
|
|
665
|
-
var
|
|
664
|
+
process.env.NODE_ENV === "production" ? xt.exports = On() : xt.exports = Rn();
|
|
665
|
+
var s = xt.exports;
|
|
666
666
|
/**
|
|
667
667
|
* @license lucide-react v0.474.0 - ISC
|
|
668
668
|
*
|
|
@@ -693,7 +693,7 @@ var Pn = {
|
|
|
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 jn =
|
|
696
|
+
const jn = hr(
|
|
697
697
|
({
|
|
698
698
|
color: e = "currentColor",
|
|
699
699
|
size: t = 24,
|
|
@@ -701,12 +701,12 @@ const jn = br(
|
|
|
701
701
|
absoluteStrokeWidth: n,
|
|
702
702
|
className: o = "",
|
|
703
703
|
children: a,
|
|
704
|
-
iconNode:
|
|
704
|
+
iconNode: l,
|
|
705
705
|
...u
|
|
706
|
-
},
|
|
706
|
+
}, d) => yt(
|
|
707
707
|
"svg",
|
|
708
708
|
{
|
|
709
|
-
ref:
|
|
709
|
+
ref: d,
|
|
710
710
|
...Pn,
|
|
711
711
|
width: t,
|
|
712
712
|
height: t,
|
|
@@ -716,7 +716,7 @@ const jn = br(
|
|
|
716
716
|
...u
|
|
717
717
|
},
|
|
718
718
|
[
|
|
719
|
-
...
|
|
719
|
+
...l.map(([p, y]) => yt(p, y)),
|
|
720
720
|
...Array.isArray(a) ? a : [a]
|
|
721
721
|
]
|
|
722
722
|
)
|
|
@@ -728,7 +728,7 @@ const jn = br(
|
|
|
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 = hr(
|
|
732
732
|
({ className: n, ...o }, a) => yt(jn, {
|
|
733
733
|
ref: a,
|
|
734
734
|
iconNode: t,
|
|
@@ -844,7 +844,7 @@ const Jn = [
|
|
|
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
|
+
], Gt = L("Heading2", Jn);
|
|
848
848
|
/**
|
|
849
849
|
* @license lucide-react v0.474.0 - ISC
|
|
850
850
|
*
|
|
@@ -857,7 +857,7 @@ const Zn = [
|
|
|
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
|
+
], Jt = L("Heading3", Zn);
|
|
861
861
|
/**
|
|
862
862
|
* @license lucide-react v0.474.0 - ISC
|
|
863
863
|
*
|
|
@@ -870,7 +870,7 @@ const Qn = [
|
|
|
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
|
+
], Zt = L("Heading4", Qn);
|
|
874
874
|
/**
|
|
875
875
|
* @license lucide-react v0.474.0 - ISC
|
|
876
876
|
*
|
|
@@ -886,7 +886,7 @@ const ei = [
|
|
|
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
|
+
], Qt = L("Heading5", ei);
|
|
890
890
|
/**
|
|
891
891
|
* @license lucide-react v0.474.0 - ISC
|
|
892
892
|
*
|
|
@@ -899,7 +899,7 @@ const ti = [
|
|
|
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
|
+
], er = L("Heading6", ti);
|
|
903
903
|
/**
|
|
904
904
|
* @license lucide-react v0.474.0 - ISC
|
|
905
905
|
*
|
|
@@ -1152,9 +1152,9 @@ const zi = [
|
|
|
1152
1152
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
1153
1153
|
], Ii = L("X", zi);
|
|
1154
1154
|
function Hi({ editor: e }) {
|
|
1155
|
-
const [t, r] =
|
|
1156
|
-
return /* @__PURE__ */
|
|
1157
|
-
/* @__PURE__ */
|
|
1155
|
+
const [t, r] = ue(!1);
|
|
1156
|
+
return /* @__PURE__ */ s.jsxDEV("div", { className: "relative", children: [
|
|
1157
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
1158
1158
|
"button",
|
|
1159
1159
|
{
|
|
1160
1160
|
type: "button",
|
|
@@ -1162,11 +1162,11 @@ function Hi({ editor: e }) {
|
|
|
1162
1162
|
onClick: (n) => {
|
|
1163
1163
|
n.preventDefault(), n.stopPropagation(), r(!t);
|
|
1164
1164
|
},
|
|
1165
|
-
children: t ? /* @__PURE__ */
|
|
1165
|
+
children: t ? /* @__PURE__ */ s.jsxDEV(Ii, { size: 24 }, void 0, !1, {
|
|
1166
1166
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
|
|
1167
1167
|
lineNumber: 20,
|
|
1168
1168
|
columnNumber: 25
|
|
1169
|
-
}, this) : /* @__PURE__ */
|
|
1169
|
+
}, this) : /* @__PURE__ */ s.jsxDEV(si, { size: 24 }, void 0, !1, {
|
|
1170
1170
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
|
|
1171
1171
|
lineNumber: 20,
|
|
1172
1172
|
columnNumber: 43
|
|
@@ -1181,13 +1181,13 @@ function Hi({ editor: e }) {
|
|
|
1181
1181
|
},
|
|
1182
1182
|
this
|
|
1183
1183
|
),
|
|
1184
|
-
t && /* @__PURE__ */
|
|
1185
|
-
/* @__PURE__ */
|
|
1184
|
+
t && /* @__PURE__ */ s.jsxDEV("div", { className: "fixed z-40 w-64 p-4 bg-white border border-gray-200 rounded-lg shadow-xl bottom-20 right-4 animate-slide-up", children: /* @__PURE__ */ s.jsxDEV("div", { className: "space-y-2", children: [
|
|
1185
|
+
/* @__PURE__ */ s.jsxDEV("h3", { className: "mb-3 font-bold text-center text-gray-700", children: "Cyber Extensions" }, void 0, !1, {
|
|
1186
1186
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
|
|
1187
1187
|
lineNumber: 26,
|
|
1188
1188
|
columnNumber: 25
|
|
1189
1189
|
}, this),
|
|
1190
|
-
/* @__PURE__ */
|
|
1190
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
1191
1191
|
"button",
|
|
1192
1192
|
{
|
|
1193
1193
|
type: "button",
|
|
@@ -1209,7 +1209,7 @@ function Hi({ editor: e }) {
|
|
|
1209
1209
|
},
|
|
1210
1210
|
className: "flex items-center justify-center w-full gap-2 px-3 py-1 text-blue-600 duration-300 rounded-md bg-blue-50 hover:bg-blue-100 hover:text-blue-700",
|
|
1211
1211
|
children: [
|
|
1212
|
-
/* @__PURE__ */
|
|
1212
|
+
/* @__PURE__ */ s.jsxDEV(yi, { size: 16 }, void 0, !1, {
|
|
1213
1213
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
|
|
1214
1214
|
lineNumber: 54,
|
|
1215
1215
|
columnNumber: 29
|
|
@@ -1241,7 +1241,7 @@ function Hi({ editor: e }) {
|
|
|
1241
1241
|
columnNumber: 9
|
|
1242
1242
|
}, this);
|
|
1243
1243
|
}
|
|
1244
|
-
const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */
|
|
1244
|
+
const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ s.jsxDEV(
|
|
1245
1245
|
dn,
|
|
1246
1246
|
{
|
|
1247
1247
|
value: e,
|
|
@@ -1271,23 +1271,23 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1271
1271
|
},
|
|
1272
1272
|
void 0
|
|
1273
1273
|
), Li = ({ editor: e }) => {
|
|
1274
|
-
const [t, r] =
|
|
1275
|
-
const p =
|
|
1274
|
+
const [t, r] = ue("#1677ff"), [n, o] = ue("#ffffff"), a = (d) => {
|
|
1275
|
+
const p = d.toHexString();
|
|
1276
1276
|
r(p), e.chain().focus().setColor(p).run();
|
|
1277
|
-
},
|
|
1278
|
-
const p =
|
|
1277
|
+
}, l = (d) => {
|
|
1278
|
+
const p = d.toHexString();
|
|
1279
1279
|
o(p), e.chain().focus().setHighlight({ color: p }).run();
|
|
1280
|
-
}, u = (
|
|
1281
|
-
|
|
1280
|
+
}, u = (d) => {
|
|
1281
|
+
d.preventDefault();
|
|
1282
1282
|
};
|
|
1283
|
-
return /* @__PURE__ */
|
|
1284
|
-
/* @__PURE__ */
|
|
1285
|
-
/* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center gap-4", children: [
|
|
1284
|
+
/* @__PURE__ */ s.jsxDEV(gt, { title: "Text Color", children: /* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center gap-2", onMouseDown: u, children: [
|
|
1285
|
+
/* @__PURE__ */ s.jsxDEV(ji, { size: 20, color: "black" }, void 0, !1, {
|
|
1286
1286
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
|
|
1287
1287
|
lineNumber: 33,
|
|
1288
1288
|
columnNumber: 21
|
|
1289
1289
|
}, void 0),
|
|
1290
|
-
/* @__PURE__ */
|
|
1290
|
+
/* @__PURE__ */ s.jsxDEV(Fe, { value: t, onChange: a }, void 0, !1, {
|
|
1291
1291
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
|
|
1292
1292
|
lineNumber: 34,
|
|
1293
1293
|
columnNumber: 21
|
|
@@ -1301,13 +1301,13 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1301
1301
|
lineNumber: 31,
|
|
1302
1302
|
columnNumber: 13
|
|
1303
1303
|
}, void 0),
|
|
1304
|
-
/* @__PURE__ */
|
|
1305
|
-
/* @__PURE__ */
|
|
1304
|
+
/* @__PURE__ */ s.jsxDEV(gt, { title: "Highlight Color", children: /* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center gap-2", onMouseDown: u, children: [
|
|
1305
|
+
/* @__PURE__ */ s.jsxDEV(bi, { size: 20, color: "black" }, void 0, !1, {
|
|
1306
1306
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
|
|
1307
1307
|
lineNumber: 41,
|
|
1308
1308
|
columnNumber: 21
|
|
1309
1309
|
}, void 0),
|
|
1310
|
-
/* @__PURE__ */
|
|
1310
|
+
/* @__PURE__ */ s.jsxDEV(Fe, { value: n, onChange: l }, void 0, !1, {
|
|
1311
1311
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
|
|
1312
1312
|
lineNumber: 42,
|
|
1313
1313
|
columnNumber: 21
|
|
@@ -1333,43 +1333,43 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1333
1333
|
if (e.isActive("heading", { level: n }))
|
|
1334
1334
|
switch (n) {
|
|
1335
1335
|
case 1:
|
|
1336
|
-
return /* @__PURE__ */
|
|
1336
|
+
return /* @__PURE__ */ s.jsxDEV(ot, { size: 16 }, void 0, !1, {
|
|
1337
1337
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1338
1338
|
lineNumber: 15,
|
|
1339
1339
|
columnNumber: 36
|
|
1340
1340
|
}, void 0);
|
|
1341
1341
|
case 2:
|
|
1342
|
-
return /* @__PURE__ */
|
|
1342
|
+
return /* @__PURE__ */ s.jsxDEV(Gt, { size: 16 }, void 0, !1, {
|
|
1343
1343
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1344
1344
|
lineNumber: 16,
|
|
1345
1345
|
columnNumber: 36
|
|
1346
1346
|
}, void 0);
|
|
1347
1347
|
case 3:
|
|
1348
|
-
return /* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ s.jsxDEV(Jt, { size: 16 }, void 0, !1, {
|
|
1349
1349
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1350
1350
|
lineNumber: 17,
|
|
1351
1351
|
columnNumber: 36
|
|
1352
1352
|
}, void 0);
|
|
1353
1353
|
case 4:
|
|
1354
|
-
return /* @__PURE__ */
|
|
1354
|
+
return /* @__PURE__ */ s.jsxDEV(Zt, { size: 16 }, void 0, !1, {
|
|
1355
1355
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1356
1356
|
lineNumber: 18,
|
|
1357
1357
|
columnNumber: 36
|
|
1358
1358
|
}, void 0);
|
|
1359
1359
|
case 5:
|
|
1360
|
-
return /* @__PURE__ */
|
|
1360
|
+
return /* @__PURE__ */ s.jsxDEV(Qt, { size: 16 }, void 0, !1, {
|
|
1361
1361
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1362
1362
|
lineNumber: 19,
|
|
1363
1363
|
columnNumber: 36
|
|
1364
1364
|
}, void 0);
|
|
1365
1365
|
case 6:
|
|
1366
|
-
return /* @__PURE__ */
|
|
1366
|
+
return /* @__PURE__ */ s.jsxDEV(er, { size: 16 }, void 0, !1, {
|
|
1367
1367
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1368
1368
|
lineNumber: 20,
|
|
1369
1369
|
columnNumber: 36
|
|
1370
1370
|
}, void 0);
|
|
1371
1371
|
}
|
|
1372
|
-
return /* @__PURE__ */
|
|
1372
|
+
return /* @__PURE__ */ s.jsxDEV(ot, { size: 16 }, void 0, !1, {
|
|
1373
1373
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1374
1374
|
lineNumber: 24,
|
|
1375
1375
|
columnNumber: 16
|
|
@@ -1377,9 +1377,9 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1377
1377
|
}, r = [
|
|
1378
1378
|
...Array.from({ length: 6 }, (n, o) => ({
|
|
1379
1379
|
key: `${o + 1}`,
|
|
1380
|
-
label: /* @__PURE__ */
|
|
1381
|
-
_e.createElement([ot,
|
|
1382
|
-
/* @__PURE__ */
|
|
1380
|
+
label: /* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center gap-2", onClick: () => e.chain().focus().toggleHeading({ level: o + 1 }).run(), children: [
|
|
1381
|
+
_e.createElement([ot, Gt, Jt, Zt, Qt, er][o], { size: 16 }),
|
|
1382
|
+
/* @__PURE__ */ s.jsxDEV("span", { children: [
|
|
1383
1383
|
"Heading ",
|
|
1384
1384
|
o + 1
|
|
1385
1385
|
] }, void 0, !0, {
|
|
@@ -1395,7 +1395,7 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1395
1395
|
className: e.isActive("heading", { level: o + 1 }) ? "ant-dropdown-menu-item-active" : ""
|
|
1396
1396
|
}))
|
|
1397
1397
|
];
|
|
1398
|
-
return /* @__PURE__ */
|
|
1398
|
+
return /* @__PURE__ */ s.jsxDEV(kt, { menu: { items: r }, trigger: ["hover"], placement: "bottomLeft", children: /* @__PURE__ */ s.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, {
|
|
1399
1399
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1400
1400
|
lineNumber: 42,
|
|
1401
1401
|
columnNumber: 13
|
|
@@ -1409,20 +1409,20 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1409
1409
|
buttonClass: t,
|
|
1410
1410
|
activeClass: r
|
|
1411
1411
|
}) => {
|
|
1412
|
-
const [n, o] =
|
|
1413
|
-
e.chain().focus().insertTable({ rows:
|
|
1412
|
+
const [n, o] = ue({ rows: 0, cols: 0 }), [a, l] = ue(!1), u = (d, p) => {
|
|
1413
|
+
e.chain().focus().insertTable({ rows: d, cols: p, withHeaderRow: !0 }).run(), l(!1);
|
|
1414
1414
|
};
|
|
1415
|
-
return /* @__PURE__ */
|
|
1416
|
-
|
|
1415
|
+
return /* @__PURE__ */ s.jsxDEV(
|
|
1416
|
+
kt,
|
|
1417
1417
|
{
|
|
1418
1418
|
open: a,
|
|
1419
|
-
onOpenChange:
|
|
1419
|
+
onOpenChange: l,
|
|
1420
1420
|
trigger: ["hover"],
|
|
1421
|
-
overlay: /* @__PURE__ */
|
|
1422
|
-
/* @__PURE__ */
|
|
1423
|
-
(
|
|
1421
|
+
overlay: /* @__PURE__ */ s.jsxDEV("div", { className: "w-56 p-4 bg-white border border-gray-300 rounded-lg shadow-xl", children: [
|
|
1422
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "grid grid-cols-8 gap-1", children: Array.from({ length: qi }).map(
|
|
1423
|
+
(d, p) => Array.from({ length: Yi }).map((y, v) => {
|
|
1424
1424
|
const O = p < n.rows && v < n.cols;
|
|
1425
|
-
return /* @__PURE__ */
|
|
1425
|
+
return /* @__PURE__ */ s.jsxDEV(
|
|
1426
1426
|
"div",
|
|
1427
1427
|
{
|
|
1428
1428
|
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"}`,
|
|
@@ -1444,7 +1444,7 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1444
1444
|
lineNumber: 35,
|
|
1445
1445
|
columnNumber: 21
|
|
1446
1446
|
}, void 0),
|
|
1447
|
-
/* @__PURE__ */
|
|
1447
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "mt-3 text-sm font-medium text-center text-gray-700", children: n.rows > 0 && n.cols > 0 ? `${n.rows} × ${n.cols} Table` : "Insert Table" }, void 0, !1, {
|
|
1448
1448
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/table/table-selector.tsx",
|
|
1449
1449
|
lineNumber: 53,
|
|
1450
1450
|
columnNumber: 21
|
|
@@ -1454,11 +1454,11 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1454
1454
|
lineNumber: 34,
|
|
1455
1455
|
columnNumber: 17
|
|
1456
1456
|
}, void 0),
|
|
1457
|
-
children: /* @__PURE__ */
|
|
1457
|
+
children: /* @__PURE__ */ s.jsxDEV(
|
|
1458
1458
|
"button",
|
|
1459
1459
|
{
|
|
1460
1460
|
className: `${t} ${a ? r : ""} transition-all`,
|
|
1461
|
-
children: /* @__PURE__ */
|
|
1461
|
+
children: /* @__PURE__ */ s.jsxDEV(Ti, { className: "w-5 h-5" }, void 0, !1, {
|
|
1462
1462
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/table/table-selector.tsx",
|
|
1463
1463
|
lineNumber: 65,
|
|
1464
1464
|
columnNumber: 17
|
|
@@ -1486,7 +1486,7 @@ const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1486
1486
|
};
|
|
1487
1487
|
function Ui({ editor: e }) {
|
|
1488
1488
|
if (!e) return null;
|
|
1489
|
-
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,
|
|
1489
|
+
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, l, u, d) => /* @__PURE__ */ s.jsxDEV(gt, { title: d, children: /* @__PURE__ */ s.jsxDEV(
|
|
1490
1490
|
"button",
|
|
1491
1491
|
{
|
|
1492
1492
|
type: "button",
|
|
@@ -1494,7 +1494,7 @@ function Ui({ editor: e }) {
|
|
|
1494
1494
|
disabled: u,
|
|
1495
1495
|
className: `
|
|
1496
1496
|
${t}
|
|
1497
|
-
${
|
|
1497
|
+
${l ? r : ""}
|
|
1498
1498
|
${u ? "opacity-50 cursor-not-allowed" : ""}
|
|
1499
1499
|
`,
|
|
1500
1500
|
children: o
|
|
@@ -1512,10 +1512,10 @@ function Ui({ editor: e }) {
|
|
|
1512
1512
|
lineNumber: 31,
|
|
1513
1513
|
columnNumber: 9
|
|
1514
1514
|
}, this);
|
|
1515
|
-
return /* @__PURE__ */
|
|
1516
|
-
/* @__PURE__ */
|
|
1515
|
+
return /* @__PURE__ */ s.jsxDEV("div", { className: "flex flex-wrap items-center gap-2 p-2 border-b border-gray-200 rounded-t-lg bg-gray-50", children: [
|
|
1516
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1517
1517
|
n(
|
|
1518
|
-
/* @__PURE__ */
|
|
1518
|
+
/* @__PURE__ */ s.jsxDEV(qn, { size: 16 }, void 0, !1, {
|
|
1519
1519
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1520
1520
|
lineNumber: 52,
|
|
1521
1521
|
columnNumber: 21
|
|
@@ -1526,7 +1526,7 @@ function Ui({ editor: e }) {
|
|
|
1526
1526
|
"Bold"
|
|
1527
1527
|
),
|
|
1528
1528
|
n(
|
|
1529
|
-
/* @__PURE__ */
|
|
1529
|
+
/* @__PURE__ */ s.jsxDEV(oi, { size: 16 }, void 0, !1, {
|
|
1530
1530
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1531
1531
|
lineNumber: 59,
|
|
1532
1532
|
columnNumber: 21
|
|
@@ -1537,7 +1537,7 @@ function Ui({ editor: e }) {
|
|
|
1537
1537
|
"Italic"
|
|
1538
1538
|
),
|
|
1539
1539
|
n(
|
|
1540
|
-
/* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ s.jsxDEV(Vi, { size: 16 }, void 0, !1, {
|
|
1541
1541
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1542
1542
|
lineNumber: 66,
|
|
1543
1543
|
columnNumber: 21
|
|
@@ -1548,7 +1548,7 @@ function Ui({ editor: e }) {
|
|
|
1548
1548
|
"Underline"
|
|
1549
1549
|
),
|
|
1550
1550
|
n(
|
|
1551
|
-
/* @__PURE__ */
|
|
1551
|
+
/* @__PURE__ */ s.jsxDEV(Ci, { size: 16 }, void 0, !1, {
|
|
1552
1552
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1553
1553
|
lineNumber: 73,
|
|
1554
1554
|
columnNumber: 21
|
|
@@ -1559,7 +1559,7 @@ function Ui({ editor: e }) {
|
|
|
1559
1559
|
"Strikethrough"
|
|
1560
1560
|
),
|
|
1561
1561
|
n(
|
|
1562
|
-
/* @__PURE__ */
|
|
1562
|
+
/* @__PURE__ */ s.jsxDEV(Bn, { size: 16 }, void 0, !1, {
|
|
1563
1563
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1564
1564
|
lineNumber: 80,
|
|
1565
1565
|
columnNumber: 21
|
|
@@ -1570,7 +1570,7 @@ function Ui({ editor: e }) {
|
|
|
1570
1570
|
"Code"
|
|
1571
1571
|
),
|
|
1572
1572
|
n(
|
|
1573
|
-
/* @__PURE__ */
|
|
1573
|
+
/* @__PURE__ */ s.jsxDEV(Di, { size: 16 }, void 0, !1, {
|
|
1574
1574
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1575
1575
|
lineNumber: 87,
|
|
1576
1576
|
columnNumber: 21
|
|
@@ -1581,7 +1581,7 @@ function Ui({ editor: e }) {
|
|
|
1581
1581
|
"Subscript"
|
|
1582
1582
|
),
|
|
1583
1583
|
n(
|
|
1584
|
-
/* @__PURE__ */
|
|
1584
|
+
/* @__PURE__ */ s.jsxDEV(Oi, { size: 16 }, void 0, !1, {
|
|
1585
1585
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1586
1586
|
lineNumber: 94,
|
|
1587
1587
|
columnNumber: 21
|
|
@@ -1596,24 +1596,24 @@ function Ui({ editor: e }) {
|
|
|
1596
1596
|
lineNumber: 50,
|
|
1597
1597
|
columnNumber: 13
|
|
1598
1598
|
}, this),
|
|
1599
|
-
/* @__PURE__ */
|
|
1599
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1600
1600
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1601
1601
|
lineNumber: 102,
|
|
1602
1602
|
columnNumber: 13
|
|
1603
1603
|
}, this),
|
|
1604
|
-
/* @__PURE__ */
|
|
1604
|
+
/* @__PURE__ */ s.jsxDEV(Wi, { editor: e }, void 0, !1, {
|
|
1605
1605
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1606
1606
|
lineNumber: 105,
|
|
1607
1607
|
columnNumber: 13
|
|
1608
1608
|
}, this),
|
|
1609
|
-
/* @__PURE__ */
|
|
1609
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1610
1610
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1611
1611
|
lineNumber: 107,
|
|
1612
1612
|
columnNumber: 13
|
|
1613
1613
|
}, this),
|
|
1614
|
-
/* @__PURE__ */
|
|
1614
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1615
1615
|
n(
|
|
1616
|
-
/* @__PURE__ */
|
|
1616
|
+
/* @__PURE__ */ s.jsxDEV(In, { size: 16 }, void 0, !1, {
|
|
1617
1617
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1618
1618
|
lineNumber: 112,
|
|
1619
1619
|
columnNumber: 21
|
|
@@ -1624,7 +1624,7 @@ function Ui({ editor: e }) {
|
|
|
1624
1624
|
"Align Left"
|
|
1625
1625
|
),
|
|
1626
1626
|
n(
|
|
1627
|
-
/* @__PURE__ */
|
|
1627
|
+
/* @__PURE__ */ s.jsxDEV(Vn, { size: 16 }, void 0, !1, {
|
|
1628
1628
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1629
1629
|
lineNumber: 119,
|
|
1630
1630
|
columnNumber: 21
|
|
@@ -1635,7 +1635,7 @@ function Ui({ editor: e }) {
|
|
|
1635
1635
|
"Align Center"
|
|
1636
1636
|
),
|
|
1637
1637
|
n(
|
|
1638
|
-
/* @__PURE__ */
|
|
1638
|
+
/* @__PURE__ */ s.jsxDEV(Ln, { size: 16 }, void 0, !1, {
|
|
1639
1639
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1640
1640
|
lineNumber: 124,
|
|
1641
1641
|
columnNumber: 21
|
|
@@ -1646,7 +1646,7 @@ function Ui({ editor: e }) {
|
|
|
1646
1646
|
"Align Right"
|
|
1647
1647
|
),
|
|
1648
1648
|
n(
|
|
1649
|
-
/* @__PURE__ */
|
|
1649
|
+
/* @__PURE__ */ s.jsxDEV($n, { size: 16 }, void 0, !1, {
|
|
1650
1650
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1651
1651
|
lineNumber: 129,
|
|
1652
1652
|
columnNumber: 21
|
|
@@ -1661,14 +1661,14 @@ function Ui({ editor: e }) {
|
|
|
1661
1661
|
lineNumber: 110,
|
|
1662
1662
|
columnNumber: 13
|
|
1663
1663
|
}, this),
|
|
1664
|
-
/* @__PURE__ */
|
|
1664
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1665
1665
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1666
1666
|
lineNumber: 135,
|
|
1667
1667
|
columnNumber: 13
|
|
1668
1668
|
}, this),
|
|
1669
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1670
1670
|
n(
|
|
1671
|
-
/* @__PURE__ */
|
|
1671
|
+
/* @__PURE__ */ s.jsxDEV(di, { size: 16 }, void 0, !1, {
|
|
1672
1672
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1673
1673
|
lineNumber: 140,
|
|
1674
1674
|
columnNumber: 21
|
|
@@ -1679,7 +1679,7 @@ function Ui({ editor: e }) {
|
|
|
1679
1679
|
"Bullet List"
|
|
1680
1680
|
),
|
|
1681
1681
|
n(
|
|
1682
|
-
/* @__PURE__ */
|
|
1682
|
+
/* @__PURE__ */ s.jsxDEV(ci, { size: 16 }, void 0, !1, {
|
|
1683
1683
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1684
1684
|
lineNumber: 145,
|
|
1685
1685
|
columnNumber: 21
|
|
@@ -1690,7 +1690,7 @@ function Ui({ editor: e }) {
|
|
|
1690
1690
|
"Ordered List"
|
|
1691
1691
|
),
|
|
1692
1692
|
n(
|
|
1693
|
-
/* @__PURE__ */
|
|
1693
|
+
/* @__PURE__ */ s.jsxDEV(Si, { size: 16 }, void 0, !1, {
|
|
1694
1694
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1695
1695
|
lineNumber: 150,
|
|
1696
1696
|
columnNumber: 21
|
|
@@ -1705,14 +1705,14 @@ function Ui({ editor: e }) {
|
|
|
1705
1705
|
lineNumber: 138,
|
|
1706
1706
|
columnNumber: 13
|
|
1707
1707
|
}, this),
|
|
1708
|
-
/* @__PURE__ */
|
|
1708
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1709
1709
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1710
1710
|
lineNumber: 156,
|
|
1711
1711
|
columnNumber: 13
|
|
1712
1712
|
}, this),
|
|
1713
|
-
/* @__PURE__ */
|
|
1713
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1714
1714
|
n(
|
|
1715
|
-
/* @__PURE__ */
|
|
1715
|
+
/* @__PURE__ */ s.jsxDEV(gi, { size: 16 }, void 0, !1, {
|
|
1716
1716
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1717
1717
|
lineNumber: 161,
|
|
1718
1718
|
columnNumber: 21
|
|
@@ -1722,13 +1722,13 @@ function Ui({ editor: e }) {
|
|
|
1722
1722
|
!1,
|
|
1723
1723
|
"Blockquote"
|
|
1724
1724
|
),
|
|
1725
|
-
/* @__PURE__ */
|
|
1725
|
+
/* @__PURE__ */ s.jsxDEV(Fi, { editor: e, buttonClass: t, activeClass: r }, void 0, !1, {
|
|
1726
1726
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1727
1727
|
lineNumber: 165,
|
|
1728
1728
|
columnNumber: 17
|
|
1729
1729
|
}, this),
|
|
1730
1730
|
n(
|
|
1731
|
-
/* @__PURE__ */
|
|
1731
|
+
/* @__PURE__ */ s.jsxDEV(mi, { size: 16 }, void 0, !1, {
|
|
1732
1732
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1733
1733
|
lineNumber: 167,
|
|
1734
1734
|
columnNumber: 21
|
|
@@ -1739,7 +1739,7 @@ function Ui({ editor: e }) {
|
|
|
1739
1739
|
"Horizontal Rule"
|
|
1740
1740
|
),
|
|
1741
1741
|
n(
|
|
1742
|
-
/* @__PURE__ */
|
|
1742
|
+
/* @__PURE__ */ s.jsxDEV(Kn, { size: 16 }, void 0, !1, {
|
|
1743
1743
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1744
1744
|
lineNumber: 171,
|
|
1745
1745
|
columnNumber: 21
|
|
@@ -1754,14 +1754,14 @@ function Ui({ editor: e }) {
|
|
|
1754
1754
|
lineNumber: 159,
|
|
1755
1755
|
columnNumber: 13
|
|
1756
1756
|
}, this),
|
|
1757
|
-
/* @__PURE__ */
|
|
1757
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1758
1758
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1759
1759
|
lineNumber: 176,
|
|
1760
1760
|
columnNumber: 13
|
|
1761
1761
|
}, this),
|
|
1762
|
-
/* @__PURE__ */
|
|
1762
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1763
1763
|
n(
|
|
1764
|
-
/* @__PURE__ */
|
|
1764
|
+
/* @__PURE__ */ s.jsxDEV($i, { size: 16 }, void 0, !1, {
|
|
1765
1765
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1766
1766
|
lineNumber: 181,
|
|
1767
1767
|
columnNumber: 21
|
|
@@ -1771,7 +1771,7 @@ function Ui({ editor: e }) {
|
|
|
1771
1771
|
!e.can().chain().focus().undo().run()
|
|
1772
1772
|
),
|
|
1773
1773
|
n(
|
|
1774
|
-
/* @__PURE__ */
|
|
1774
|
+
/* @__PURE__ */ s.jsxDEV(Ni, { size: 16 }, void 0, !1, {
|
|
1775
1775
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1776
1776
|
lineNumber: 187,
|
|
1777
1777
|
columnNumber: 21
|
|
@@ -1785,13 +1785,13 @@ function Ui({ editor: e }) {
|
|
|
1785
1785
|
lineNumber: 179,
|
|
1786
1786
|
columnNumber: 13
|
|
1787
1787
|
}, this),
|
|
1788
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1789
1789
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1790
1790
|
lineNumber: 194,
|
|
1791
1791
|
columnNumber: 13
|
|
1792
1792
|
}, this),
|
|
1793
1793
|
n(
|
|
1794
|
-
/* @__PURE__ */
|
|
1794
|
+
/* @__PURE__ */ s.jsxDEV(ni, { size: 16 }, void 0, !1, {
|
|
1795
1795
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1796
1796
|
lineNumber: 197,
|
|
1797
1797
|
columnNumber: 17
|
|
@@ -1813,22 +1813,22 @@ function Ui({ editor: e }) {
|
|
|
1813
1813
|
!1,
|
|
1814
1814
|
"Insert Image"
|
|
1815
1815
|
),
|
|
1816
|
-
/* @__PURE__ */
|
|
1816
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1817
1817
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1818
1818
|
lineNumber: 218,
|
|
1819
1819
|
columnNumber: 13
|
|
1820
1820
|
}, this),
|
|
1821
|
-
/* @__PURE__ */
|
|
1821
|
+
/* @__PURE__ */ s.jsxDEV(Li, { editor: e }, void 0, !1, {
|
|
1822
1822
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1823
1823
|
lineNumber: 221,
|
|
1824
1824
|
columnNumber: 13
|
|
1825
1825
|
}, this),
|
|
1826
|
-
/* @__PURE__ */
|
|
1826
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1827
1827
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1828
1828
|
lineNumber: 223,
|
|
1829
1829
|
columnNumber: 13
|
|
1830
1830
|
}, this),
|
|
1831
|
-
/* @__PURE__ */
|
|
1831
|
+
/* @__PURE__ */ s.jsxDEV(Hi, { editor: e }, void 0, !1, {
|
|
1832
1832
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1833
1833
|
lineNumber: 224,
|
|
1834
1834
|
columnNumber: 13
|
|
@@ -1845,7 +1845,7 @@ const Sr = ({
|
|
|
1845
1845
|
editable: r,
|
|
1846
1846
|
childrenEdit: n
|
|
1847
1847
|
}) => {
|
|
1848
|
-
const [o, a] =
|
|
1848
|
+
const [o, a] = ue(!1), l = r ? /* @__PURE__ */ s.jsxDEV(Ut, { children: /* @__PURE__ */ s.jsxDEV(Ut.Item, { onClick: () => a(!0), children: "Edit" }, "edit", !1, {
|
|
1849
1849
|
fileName: "E:/CyberSkill/cyber-editor/src/components/modal-edit.tsx",
|
|
1850
1850
|
lineNumber: 19,
|
|
1851
1851
|
columnNumber: 13
|
|
@@ -1854,13 +1854,13 @@ const Sr = ({
|
|
|
1854
1854
|
lineNumber: 18,
|
|
1855
1855
|
columnNumber: 9
|
|
1856
1856
|
}, void 0) : null;
|
|
1857
|
-
return /* @__PURE__ */
|
|
1858
|
-
r &&
|
|
1857
|
+
return /* @__PURE__ */ s.jsxDEV("div", { children: [
|
|
1858
|
+
r && l ? /* @__PURE__ */ s.jsxDEV(kt, { overlay: l, trigger: ["contextMenu"], children: t }, void 0, !1, {
|
|
1859
1859
|
fileName: "E:/CyberSkill/cyber-editor/src/components/modal-edit.tsx",
|
|
1860
1860
|
lineNumber: 28,
|
|
1861
1861
|
columnNumber: 17
|
|
1862
1862
|
}, void 0) : t,
|
|
1863
|
-
/* @__PURE__ */
|
|
1863
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
1864
1864
|
fn,
|
|
1865
1865
|
{
|
|
1866
1866
|
title: `Edit ${e}`,
|
|
@@ -1884,35 +1884,35 @@ const Sr = ({
|
|
|
1884
1884
|
columnNumber: 9
|
|
1885
1885
|
}, void 0);
|
|
1886
1886
|
}, Bi = ({ node: e, editor: t }) => {
|
|
1887
|
-
const [r, n] =
|
|
1887
|
+
const [r, n] = ue(!1), [o, a] = ue(e.attrs.bgColor || "#f3f4f6"), [l, u] = ue(e.attrs.titleColor || "#000000"), d = (v) => {
|
|
1888
1888
|
v.preventDefault();
|
|
1889
1889
|
}, p = (v) => {
|
|
1890
1890
|
a(v.toHexString());
|
|
1891
1891
|
}, y = (v) => {
|
|
1892
1892
|
u(v.toHexString());
|
|
1893
1893
|
};
|
|
1894
|
-
return /* @__PURE__ */
|
|
1894
|
+
return /* @__PURE__ */ s.jsxDEV(yr, { className: "accordion-wrapper", children: /* @__PURE__ */ s.jsxDEV(
|
|
1895
1895
|
Sr,
|
|
1896
1896
|
{
|
|
1897
1897
|
title: "Accordion",
|
|
1898
|
-
childrenContent: /* @__PURE__ */
|
|
1898
|
+
childrenContent: /* @__PURE__ */ s.jsxDEV(
|
|
1899
1899
|
"div",
|
|
1900
1900
|
{
|
|
1901
1901
|
className: "my-4 transition-all duration-300 border rounded-lg shadow-sm",
|
|
1902
|
-
onContextMenu:
|
|
1902
|
+
onContextMenu: d,
|
|
1903
1903
|
children: [
|
|
1904
|
-
/* @__PURE__ */
|
|
1904
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
1905
1905
|
"div",
|
|
1906
1906
|
{
|
|
1907
1907
|
className: "flex items-center justify-between p-4 transition-colors accordion-header",
|
|
1908
1908
|
style: { backgroundColor: o },
|
|
1909
1909
|
onClick: () => n(!r),
|
|
1910
1910
|
children: [
|
|
1911
|
-
/* @__PURE__ */
|
|
1911
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
1912
1912
|
"input",
|
|
1913
1913
|
{
|
|
1914
1914
|
className: "w-full text-lg font-medium bg-transparent border-none outline-none",
|
|
1915
|
-
style: { color:
|
|
1915
|
+
style: { color: l },
|
|
1916
1916
|
defaultValue: e.attrs.title || "Accordion Title",
|
|
1917
1917
|
disabled: !t.isEditable,
|
|
1918
1918
|
suppressContentEditableWarning: !0,
|
|
@@ -1928,7 +1928,7 @@ const Sr = ({
|
|
|
1928
1928
|
},
|
|
1929
1929
|
void 0
|
|
1930
1930
|
),
|
|
1931
|
-
/* @__PURE__ */
|
|
1931
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
1932
1932
|
Fn,
|
|
1933
1933
|
{
|
|
1934
1934
|
className: `transition-transform duration-300 ${r ? "rotate-180" : ""}`,
|
|
@@ -1954,11 +1954,11 @@ const Sr = ({
|
|
|
1954
1954
|
},
|
|
1955
1955
|
void 0
|
|
1956
1956
|
),
|
|
1957
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
1958
1958
|
"div",
|
|
1959
1959
|
{
|
|
1960
1960
|
className: `overflow-hidden duration-300 ease-in-out ${r ? "max-h-96 opacity-100" : "max-h-0 opacity-0"} `,
|
|
1961
|
-
children: /* @__PURE__ */
|
|
1961
|
+
children: /* @__PURE__ */ s.jsxDEV("div", { className: "p-4 border-t", children: /* @__PURE__ */ s.jsxDEV(
|
|
1962
1962
|
ln,
|
|
1963
1963
|
{
|
|
1964
1964
|
contentEditable: t.isEditable
|
|
@@ -1998,16 +1998,16 @@ const Sr = ({
|
|
|
1998
1998
|
void 0
|
|
1999
1999
|
),
|
|
2000
2000
|
editable: t.isEditable,
|
|
2001
|
-
childrenEdit: /* @__PURE__ */
|
|
2002
|
-
/* @__PURE__ */
|
|
2003
|
-
/* @__PURE__ */
|
|
2004
|
-
/* @__PURE__ */
|
|
2001
|
+
childrenEdit: /* @__PURE__ */ s.jsxDEV("div", { className: "px-6 py-4 space-y-6 rounded-lg bg-gray-50", children: [
|
|
2002
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "grid grid-cols-1 gap-6", children: [
|
|
2003
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex flex-col space-y-2", children: [
|
|
2004
|
+
/* @__PURE__ */ s.jsxDEV("label", { className: "font-medium text-gray-700", children: "Background Color" }, void 0, !1, {
|
|
2005
2005
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2006
2006
|
lineNumber: 69,
|
|
2007
2007
|
columnNumber: 33
|
|
2008
2008
|
}, void 0),
|
|
2009
|
-
/* @__PURE__ */
|
|
2010
|
-
/* @__PURE__ */
|
|
2009
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center space-x-3", children: [
|
|
2010
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
2011
2011
|
"div",
|
|
2012
2012
|
{
|
|
2013
2013
|
className: "w-8 h-8 border rounded shadow",
|
|
@@ -2022,7 +2022,7 @@ const Sr = ({
|
|
|
2022
2022
|
},
|
|
2023
2023
|
void 0
|
|
2024
2024
|
),
|
|
2025
|
-
/* @__PURE__ */
|
|
2025
|
+
/* @__PURE__ */ s.jsxDEV(Fe, { value: o, onChange: p }, void 0, !1, {
|
|
2026
2026
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2027
2027
|
lineNumber: 75,
|
|
2028
2028
|
columnNumber: 37
|
|
@@ -2037,18 +2037,18 @@ const Sr = ({
|
|
|
2037
2037
|
lineNumber: 68,
|
|
2038
2038
|
columnNumber: 29
|
|
2039
2039
|
}, void 0),
|
|
2040
|
-
/* @__PURE__ */
|
|
2041
|
-
/* @__PURE__ */
|
|
2040
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex flex-col space-y-2", children: [
|
|
2041
|
+
/* @__PURE__ */ s.jsxDEV("label", { className: "font-medium text-gray-700", children: "Title Color" }, void 0, !1, {
|
|
2042
2042
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2043
2043
|
lineNumber: 80,
|
|
2044
2044
|
columnNumber: 33
|
|
2045
2045
|
}, void 0),
|
|
2046
|
-
/* @__PURE__ */
|
|
2047
|
-
/* @__PURE__ */
|
|
2046
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex items-center space-x-3", children: [
|
|
2047
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
2048
2048
|
"div",
|
|
2049
2049
|
{
|
|
2050
2050
|
className: "w-8 h-8 border rounded shadow",
|
|
2051
|
-
style: { backgroundColor:
|
|
2051
|
+
style: { backgroundColor: l }
|
|
2052
2052
|
},
|
|
2053
2053
|
void 0,
|
|
2054
2054
|
!1,
|
|
@@ -2059,7 +2059,7 @@ const Sr = ({
|
|
|
2059
2059
|
},
|
|
2060
2060
|
void 0
|
|
2061
2061
|
),
|
|
2062
|
-
/* @__PURE__ */
|
|
2062
|
+
/* @__PURE__ */ s.jsxDEV(Fe, { value: l, onChange: y }, void 0, !1, {
|
|
2063
2063
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2064
2064
|
lineNumber: 86,
|
|
2065
2065
|
columnNumber: 37
|
|
@@ -2079,13 +2079,13 @@ const Sr = ({
|
|
|
2079
2079
|
lineNumber: 67,
|
|
2080
2080
|
columnNumber: 25
|
|
2081
2081
|
}, void 0),
|
|
2082
|
-
/* @__PURE__ */
|
|
2083
|
-
/* @__PURE__ */
|
|
2082
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "pt-4 border-t border-gray-200", children: /* @__PURE__ */ s.jsxDEV("div", { className: "p-3 bg-white border rounded-md", children: [
|
|
2083
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "text-sm text-gray-600", children: "Preview" }, void 0, !1, {
|
|
2084
2084
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2085
2085
|
lineNumber: 93,
|
|
2086
2086
|
columnNumber: 33
|
|
2087
2087
|
}, void 0),
|
|
2088
|
-
/* @__PURE__ */
|
|
2088
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "p-2 mt-2 rounded", style: { backgroundColor: o }, children: /* @__PURE__ */ s.jsxDEV("span", { style: { color: l, fontWeight: 500 }, children: "Accordion Title" }, void 0, !1, {
|
|
2089
2089
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2090
2090
|
lineNumber: 95,
|
|
2091
2091
|
columnNumber: 37
|
|
@@ -2172,7 +2172,7 @@ const Sr = ({
|
|
|
2172
2172
|
};
|
|
2173
2173
|
}
|
|
2174
2174
|
});
|
|
2175
|
-
var
|
|
2175
|
+
var Dt = { exports: {} }, ze = {}, Be = { exports: {} }, wr = {}, Nt = { exports: {} }, qe = { exports: {} }, F = {};
|
|
2176
2176
|
/** @license React v16.13.1
|
|
2177
2177
|
* react-is.production.min.js
|
|
2178
2178
|
*
|
|
@@ -2181,18 +2181,18 @@ var kt = { exports: {} }, ze = {}, Be = { exports: {} }, wr = {}, xt = { exports
|
|
|
2181
2181
|
* This source code is licensed under the MIT license found in the
|
|
2182
2182
|
* LICENSE file in the root directory of this source tree.
|
|
2183
2183
|
*/
|
|
2184
|
-
var
|
|
2184
|
+
var tr;
|
|
2185
2185
|
function Ki() {
|
|
2186
|
-
if (
|
|
2187
|
-
|
|
2188
|
-
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,
|
|
2186
|
+
if (tr) return F;
|
|
2187
|
+
tr = 1;
|
|
2188
|
+
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, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = 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;
|
|
2189
2189
|
function N(c) {
|
|
2190
2190
|
if (typeof c == "object" && c !== null) {
|
|
2191
2191
|
var Y = c.$$typeof;
|
|
2192
2192
|
switch (Y) {
|
|
2193
2193
|
case t:
|
|
2194
2194
|
switch (c = c.type, c) {
|
|
2195
|
-
case
|
|
2195
|
+
case d:
|
|
2196
2196
|
case p:
|
|
2197
2197
|
case n:
|
|
2198
2198
|
case a:
|
|
@@ -2205,7 +2205,7 @@ function Ki() {
|
|
|
2205
2205
|
case y:
|
|
2206
2206
|
case A:
|
|
2207
2207
|
case S:
|
|
2208
|
-
case
|
|
2208
|
+
case l:
|
|
2209
2209
|
return c;
|
|
2210
2210
|
default:
|
|
2211
2211
|
return Y;
|
|
@@ -2219,12 +2219,12 @@ function Ki() {
|
|
|
2219
2219
|
function E(c) {
|
|
2220
2220
|
return N(c) === p;
|
|
2221
2221
|
}
|
|
2222
|
-
return F.AsyncMode =
|
|
2223
|
-
return E(c) || N(c) ===
|
|
2222
|
+
return F.AsyncMode = d, F.ConcurrentMode = p, F.ContextConsumer = u, F.ContextProvider = l, 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) {
|
|
2223
|
+
return E(c) || N(c) === d;
|
|
2224
2224
|
}, F.isConcurrentMode = E, F.isContextConsumer = function(c) {
|
|
2225
2225
|
return N(c) === u;
|
|
2226
2226
|
}, F.isContextProvider = function(c) {
|
|
2227
|
-
return N(c) ===
|
|
2227
|
+
return N(c) === l;
|
|
2228
2228
|
}, F.isElement = function(c) {
|
|
2229
2229
|
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
2230
2230
|
}, F.isForwardRef = function(c) {
|
|
@@ -2244,7 +2244,7 @@ function Ki() {
|
|
|
2244
2244
|
}, F.isSuspense = function(c) {
|
|
2245
2245
|
return N(c) === v;
|
|
2246
2246
|
}, F.isValidElementType = function(c) {
|
|
2247
|
-
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 ===
|
|
2247
|
+
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 === l || c.$$typeof === u || c.$$typeof === y || c.$$typeof === B || c.$$typeof === W || c.$$typeof === g || c.$$typeof === $);
|
|
2248
2248
|
}, F.typeOf = N, F;
|
|
2249
2249
|
}
|
|
2250
2250
|
var U = {};
|
|
@@ -2256,22 +2256,22 @@ var U = {};
|
|
|
2256
2256
|
* This source code is licensed under the MIT license found in the
|
|
2257
2257
|
* LICENSE file in the root directory of this source tree.
|
|
2258
2258
|
*/
|
|
2259
|
-
var
|
|
2259
|
+
var rr;
|
|
2260
2260
|
function Gi() {
|
|
2261
|
-
return
|
|
2262
|
-
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,
|
|
2261
|
+
return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2262
|
+
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, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = 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;
|
|
2263
2263
|
function N(b) {
|
|
2264
2264
|
return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2265
|
-
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 ===
|
|
2265
|
+
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 === l || b.$$typeof === u || b.$$typeof === y || b.$$typeof === B || b.$$typeof === W || b.$$typeof === g || b.$$typeof === $);
|
|
2266
2266
|
}
|
|
2267
2267
|
function E(b) {
|
|
2268
2268
|
if (typeof b == "object" && b !== null) {
|
|
2269
|
-
var
|
|
2270
|
-
switch (
|
|
2269
|
+
var be = b.$$typeof;
|
|
2270
|
+
switch (be) {
|
|
2271
2271
|
case t:
|
|
2272
2272
|
var Re = b.type;
|
|
2273
2273
|
switch (Re) {
|
|
2274
|
-
case
|
|
2274
|
+
case d:
|
|
2275
2275
|
case p:
|
|
2276
2276
|
case n:
|
|
2277
2277
|
case a:
|
|
@@ -2285,29 +2285,29 @@ function Gi() {
|
|
|
2285
2285
|
case y:
|
|
2286
2286
|
case A:
|
|
2287
2287
|
case S:
|
|
2288
|
-
case
|
|
2288
|
+
case l:
|
|
2289
2289
|
return ke;
|
|
2290
2290
|
default:
|
|
2291
|
-
return
|
|
2291
|
+
return be;
|
|
2292
2292
|
}
|
|
2293
2293
|
}
|
|
2294
2294
|
case r:
|
|
2295
|
-
return
|
|
2295
|
+
return be;
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
2298
2298
|
}
|
|
2299
|
-
var c =
|
|
2299
|
+
var c = d, Y = p, T = u, Q = l, fe = t, me = y, ye = n, Ee = A, ee = S, Z = r, pe = a, oe = o, le = v, ge = !1;
|
|
2300
2300
|
function Se(b) {
|
|
2301
|
-
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.")),
|
|
2301
|
+
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.")), m(b) || E(b) === d;
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2303
|
+
function m(b) {
|
|
2304
2304
|
return E(b) === p;
|
|
2305
2305
|
}
|
|
2306
2306
|
function x(b) {
|
|
2307
2307
|
return E(b) === u;
|
|
2308
2308
|
}
|
|
2309
2309
|
function P(b) {
|
|
2310
|
-
return E(b) ===
|
|
2310
|
+
return E(b) === l;
|
|
2311
2311
|
}
|
|
2312
2312
|
function R(b) {
|
|
2313
2313
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
@@ -2336,22 +2336,22 @@ function Gi() {
|
|
|
2336
2336
|
function te(b) {
|
|
2337
2337
|
return E(b) === v;
|
|
2338
2338
|
}
|
|
2339
|
-
U.AsyncMode = c, U.ConcurrentMode = Y, U.ContextConsumer = T, U.ContextProvider = Q, U.Element =
|
|
2339
|
+
U.AsyncMode = c, U.ConcurrentMode = Y, U.ContextConsumer = T, U.ContextProvider = Q, U.Element = fe, U.ForwardRef = me, U.Fragment = ye, U.Lazy = Ee, U.Memo = ee, U.Portal = Z, U.Profiler = pe, U.StrictMode = oe, U.Suspense = le, U.isAsyncMode = Se, U.isConcurrentMode = m, 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;
|
|
2340
2340
|
}()), U;
|
|
2341
2341
|
}
|
|
2342
|
-
var
|
|
2342
|
+
var nr;
|
|
2343
2343
|
function Cr() {
|
|
2344
|
-
return
|
|
2344
|
+
return nr || (nr = 1, process.env.NODE_ENV === "production" ? qe.exports = Ki() : qe.exports = Gi()), qe.exports;
|
|
2345
2345
|
}
|
|
2346
2346
|
/*
|
|
2347
2347
|
object-assign
|
|
2348
2348
|
(c) Sindre Sorhus
|
|
2349
2349
|
@license MIT
|
|
2350
2350
|
*/
|
|
2351
|
-
var at,
|
|
2351
|
+
var at, ir;
|
|
2352
2352
|
function Ji() {
|
|
2353
|
-
if (
|
|
2354
|
-
|
|
2353
|
+
if (ir) return at;
|
|
2354
|
+
ir = 1;
|
|
2355
2355
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
2356
2356
|
function n(a) {
|
|
2357
2357
|
if (a == null)
|
|
@@ -2365,12 +2365,12 @@ function Ji() {
|
|
|
2365
2365
|
var a = new String("abc");
|
|
2366
2366
|
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
2367
2367
|
return !1;
|
|
2368
|
-
for (var
|
|
2369
|
-
|
|
2370
|
-
var
|
|
2371
|
-
return
|
|
2368
|
+
for (var l = {}, u = 0; u < 10; u++)
|
|
2369
|
+
l["_" + String.fromCharCode(u)] = u;
|
|
2370
|
+
var d = Object.getOwnPropertyNames(l).map(function(y) {
|
|
2371
|
+
return l[y];
|
|
2372
2372
|
});
|
|
2373
|
-
if (
|
|
2373
|
+
if (d.join("") !== "0123456789")
|
|
2374
2374
|
return !1;
|
|
2375
2375
|
var p = {};
|
|
2376
2376
|
return "abcdefghijklmnopqrst".split("").forEach(function(y) {
|
|
@@ -2380,49 +2380,49 @@ function Ji() {
|
|
|
2380
2380
|
return !1;
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
|
-
return at = o() ? Object.assign : function(a,
|
|
2384
|
-
for (var u,
|
|
2383
|
+
return at = o() ? Object.assign : function(a, l) {
|
|
2384
|
+
for (var u, d = n(a), p, y = 1; y < arguments.length; y++) {
|
|
2385
2385
|
u = Object(arguments[y]);
|
|
2386
2386
|
for (var v in u)
|
|
2387
|
-
t.call(u, v) && (
|
|
2387
|
+
t.call(u, v) && (d[v] = u[v]);
|
|
2388
2388
|
if (e) {
|
|
2389
2389
|
p = e(u);
|
|
2390
2390
|
for (var O = 0; O < p.length; O++)
|
|
2391
|
-
r.call(u, p[O]) && (
|
|
2391
|
+
r.call(u, p[O]) && (d[p[O]] = u[p[O]]);
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
|
-
return
|
|
2394
|
+
return d;
|
|
2395
2395
|
}, at;
|
|
2396
2396
|
}
|
|
2397
|
-
var st,
|
|
2398
|
-
function
|
|
2399
|
-
if (
|
|
2400
|
-
|
|
2397
|
+
var st, or;
|
|
2398
|
+
function _t() {
|
|
2399
|
+
if (or) return st;
|
|
2400
|
+
or = 1;
|
|
2401
2401
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2402
2402
|
return st = e, st;
|
|
2403
2403
|
}
|
|
2404
|
-
var lt,
|
|
2404
|
+
var lt, ar;
|
|
2405
2405
|
function kr() {
|
|
2406
|
-
return
|
|
2406
|
+
return ar || (ar = 1, lt = Function.call.bind(Object.prototype.hasOwnProperty)), lt;
|
|
2407
2407
|
}
|
|
2408
|
-
var ct,
|
|
2408
|
+
var ct, sr;
|
|
2409
2409
|
function Zi() {
|
|
2410
|
-
if (
|
|
2411
|
-
|
|
2410
|
+
if (sr) return ct;
|
|
2411
|
+
sr = 1;
|
|
2412
2412
|
var e = function() {
|
|
2413
2413
|
};
|
|
2414
2414
|
if (process.env.NODE_ENV !== "production") {
|
|
2415
|
-
var t =
|
|
2415
|
+
var t = _t(), r = {}, n = kr();
|
|
2416
2416
|
e = function(a) {
|
|
2417
|
-
var
|
|
2418
|
-
typeof console < "u" && console.error(
|
|
2417
|
+
var l = "Warning: " + a;
|
|
2418
|
+
typeof console < "u" && console.error(l);
|
|
2419
2419
|
try {
|
|
2420
|
-
throw new Error(
|
|
2420
|
+
throw new Error(l);
|
|
2421
2421
|
} catch {
|
|
2422
2422
|
}
|
|
2423
2423
|
};
|
|
2424
2424
|
}
|
|
2425
|
-
function o(a,
|
|
2425
|
+
function o(a, l, u, d, p) {
|
|
2426
2426
|
if (process.env.NODE_ENV !== "production") {
|
|
2427
2427
|
for (var y in a)
|
|
2428
2428
|
if (n(a, y)) {
|
|
@@ -2430,16 +2430,16 @@ function Zi() {
|
|
|
2430
2430
|
try {
|
|
2431
2431
|
if (typeof a[y] != "function") {
|
|
2432
2432
|
var O = Error(
|
|
2433
|
-
(
|
|
2433
|
+
(d || "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`."
|
|
2434
2434
|
);
|
|
2435
2435
|
throw O.name = "Invariant Violation", O;
|
|
2436
2436
|
}
|
|
2437
|
-
v = a[y](
|
|
2437
|
+
v = a[y](l, y, d, u, null, t);
|
|
2438
2438
|
} catch (A) {
|
|
2439
2439
|
v = A;
|
|
2440
2440
|
}
|
|
2441
2441
|
if (v && !(v instanceof Error) && e(
|
|
2442
|
-
(
|
|
2442
|
+
(d || "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)."
|
|
2443
2443
|
), v instanceof Error && !(v.message in r)) {
|
|
2444
2444
|
r[v.message] = !0;
|
|
2445
2445
|
var S = p ? p() : "";
|
|
@@ -2454,27 +2454,27 @@ function Zi() {
|
|
|
2454
2454
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
2455
2455
|
}, ct = o, ct;
|
|
2456
2456
|
}
|
|
2457
|
-
var ut,
|
|
2457
|
+
var ut, lr;
|
|
2458
2458
|
function Qi() {
|
|
2459
|
-
if (
|
|
2460
|
-
|
|
2461
|
-
var e = Cr(), t = Ji(), r =
|
|
2459
|
+
if (lr) return ut;
|
|
2460
|
+
lr = 1;
|
|
2461
|
+
var e = Cr(), t = Ji(), r = _t(), n = kr(), o = Zi(), a = function() {
|
|
2462
2462
|
};
|
|
2463
2463
|
process.env.NODE_ENV !== "production" && (a = function(u) {
|
|
2464
|
-
var
|
|
2465
|
-
typeof console < "u" && console.error(
|
|
2464
|
+
var d = "Warning: " + u;
|
|
2465
|
+
typeof console < "u" && console.error(d);
|
|
2466
2466
|
try {
|
|
2467
|
-
throw new Error(
|
|
2467
|
+
throw new Error(d);
|
|
2468
2468
|
} catch {
|
|
2469
2469
|
}
|
|
2470
2470
|
});
|
|
2471
|
-
function
|
|
2471
|
+
function l() {
|
|
2472
2472
|
return null;
|
|
2473
2473
|
}
|
|
2474
|
-
return ut = function(u,
|
|
2474
|
+
return ut = function(u, d) {
|
|
2475
2475
|
var p = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
|
|
2476
|
-
function v(
|
|
2477
|
-
var x =
|
|
2476
|
+
function v(m) {
|
|
2477
|
+
var x = m && (p && m[p] || m[y]);
|
|
2478
2478
|
if (typeof x == "function")
|
|
2479
2479
|
return x;
|
|
2480
2480
|
}
|
|
@@ -2492,51 +2492,51 @@ function Qi() {
|
|
|
2492
2492
|
element: E(),
|
|
2493
2493
|
elementType: c(),
|
|
2494
2494
|
instanceOf: Y,
|
|
2495
|
-
node:
|
|
2495
|
+
node: me(),
|
|
2496
2496
|
objectOf: Q,
|
|
2497
2497
|
oneOf: T,
|
|
2498
|
-
oneOfType:
|
|
2498
|
+
oneOfType: fe,
|
|
2499
2499
|
shape: Ee,
|
|
2500
2500
|
exact: ee
|
|
2501
2501
|
};
|
|
2502
|
-
function A(
|
|
2503
|
-
return
|
|
2502
|
+
function A(m, x) {
|
|
2503
|
+
return m === x ? m !== 0 || 1 / m === 1 / x : m !== m && x !== x;
|
|
2504
2504
|
}
|
|
2505
|
-
function $(
|
|
2506
|
-
this.message =
|
|
2505
|
+
function $(m, x) {
|
|
2506
|
+
this.message = m, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
2507
2507
|
}
|
|
2508
2508
|
$.prototype = Error.prototype;
|
|
2509
|
-
function B(
|
|
2509
|
+
function B(m) {
|
|
2510
2510
|
if (process.env.NODE_ENV !== "production")
|
|
2511
2511
|
var x = {}, P = 0;
|
|
2512
2512
|
function R(z, k, _, j, H, M, te) {
|
|
2513
2513
|
if (j = j || O, M = M || _, te !== r) {
|
|
2514
|
-
if (
|
|
2514
|
+
if (d) {
|
|
2515
2515
|
var b = new Error(
|
|
2516
2516
|
"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"
|
|
2517
2517
|
);
|
|
2518
2518
|
throw b.name = "Invariant Violation", b;
|
|
2519
2519
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2520
|
-
var
|
|
2521
|
-
!x[
|
|
2520
|
+
var be = j + ":" + _;
|
|
2521
|
+
!x[be] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2522
2522
|
P < 3 && (a(
|
|
2523
2523
|
"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."
|
|
2524
|
-
), x[
|
|
2524
|
+
), x[be] = !0, P++);
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
|
-
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 :
|
|
2527
|
+
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 : m(k, _, j, H, M);
|
|
2528
2528
|
}
|
|
2529
2529
|
var C = R.bind(null, !1);
|
|
2530
2530
|
return C.isRequired = R.bind(null, !0), C;
|
|
2531
2531
|
}
|
|
2532
|
-
function W(
|
|
2532
|
+
function W(m) {
|
|
2533
2533
|
function x(P, R, C, z, k, _) {
|
|
2534
2534
|
var j = P[R], H = oe(j);
|
|
2535
|
-
if (H !==
|
|
2535
|
+
if (H !== m) {
|
|
2536
2536
|
var M = le(j);
|
|
2537
2537
|
return new $(
|
|
2538
|
-
"Invalid " + z + " `" + k + "` of type " + ("`" + M + "` supplied to `" + C + "`, expected ") + ("`" +
|
|
2539
|
-
{ expectedType:
|
|
2538
|
+
"Invalid " + z + " `" + k + "` of type " + ("`" + M + "` supplied to `" + C + "`, expected ") + ("`" + m + "`."),
|
|
2539
|
+
{ expectedType: m }
|
|
2540
2540
|
);
|
|
2541
2541
|
}
|
|
2542
2542
|
return null;
|
|
@@ -2544,11 +2544,11 @@ function Qi() {
|
|
|
2544
2544
|
return B(x);
|
|
2545
2545
|
}
|
|
2546
2546
|
function g() {
|
|
2547
|
-
return B(
|
|
2547
|
+
return B(l);
|
|
2548
2548
|
}
|
|
2549
|
-
function N(
|
|
2549
|
+
function N(m) {
|
|
2550
2550
|
function x(P, R, C, z, k) {
|
|
2551
|
-
if (typeof
|
|
2551
|
+
if (typeof m != "function")
|
|
2552
2552
|
return new $("Property `" + k + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
|
|
2553
2553
|
var _ = P[R];
|
|
2554
2554
|
if (!Array.isArray(_)) {
|
|
@@ -2556,7 +2556,7 @@ function Qi() {
|
|
|
2556
2556
|
return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected an array."));
|
|
2557
2557
|
}
|
|
2558
2558
|
for (var H = 0; H < _.length; H++) {
|
|
2559
|
-
var M =
|
|
2559
|
+
var M = m(_, H, C, z, k + "[" + H + "]", r);
|
|
2560
2560
|
if (M instanceof Error)
|
|
2561
2561
|
return M;
|
|
2562
2562
|
}
|
|
@@ -2565,7 +2565,7 @@ function Qi() {
|
|
|
2565
2565
|
return B(x);
|
|
2566
2566
|
}
|
|
2567
2567
|
function E() {
|
|
2568
|
-
function
|
|
2568
|
+
function m(x, P, R, C, z) {
|
|
2569
2569
|
var k = x[P];
|
|
2570
2570
|
if (!u(k)) {
|
|
2571
2571
|
var _ = oe(k);
|
|
@@ -2573,10 +2573,10 @@ function Qi() {
|
|
|
2573
2573
|
}
|
|
2574
2574
|
return null;
|
|
2575
2575
|
}
|
|
2576
|
-
return B(
|
|
2576
|
+
return B(m);
|
|
2577
2577
|
}
|
|
2578
2578
|
function c() {
|
|
2579
|
-
function
|
|
2579
|
+
function m(x, P, R, C, z) {
|
|
2580
2580
|
var k = x[P];
|
|
2581
2581
|
if (!e.isValidElementType(k)) {
|
|
2582
2582
|
var _ = oe(k);
|
|
@@ -2584,45 +2584,45 @@ function Qi() {
|
|
|
2584
2584
|
}
|
|
2585
2585
|
return null;
|
|
2586
2586
|
}
|
|
2587
|
-
return B(
|
|
2587
|
+
return B(m);
|
|
2588
2588
|
}
|
|
2589
|
-
function Y(
|
|
2589
|
+
function Y(m) {
|
|
2590
2590
|
function x(P, R, C, z, k) {
|
|
2591
|
-
if (!(P[R] instanceof
|
|
2592
|
-
var _ =
|
|
2591
|
+
if (!(P[R] instanceof m)) {
|
|
2592
|
+
var _ = m.name || O, j = Se(P[R]);
|
|
2593
2593
|
return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected ") + ("instance of `" + _ + "`."));
|
|
2594
2594
|
}
|
|
2595
2595
|
return null;
|
|
2596
2596
|
}
|
|
2597
2597
|
return B(x);
|
|
2598
2598
|
}
|
|
2599
|
-
function T(
|
|
2600
|
-
if (!Array.isArray(
|
|
2599
|
+
function T(m) {
|
|
2600
|
+
if (!Array.isArray(m))
|
|
2601
2601
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
2602
2602
|
"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])."
|
|
2603
|
-
) : a("Invalid argument supplied to oneOf, expected an array.")),
|
|
2603
|
+
) : a("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
2604
2604
|
function x(P, R, C, z, k) {
|
|
2605
|
-
for (var _ = P[R], j = 0; j <
|
|
2606
|
-
if (A(_,
|
|
2605
|
+
for (var _ = P[R], j = 0; j < m.length; j++)
|
|
2606
|
+
if (A(_, m[j]))
|
|
2607
2607
|
return null;
|
|
2608
|
-
var H = JSON.stringify(
|
|
2609
|
-
var
|
|
2610
|
-
return
|
|
2608
|
+
var H = JSON.stringify(m, function(te, b) {
|
|
2609
|
+
var be = le(b);
|
|
2610
|
+
return be === "symbol" ? String(b) : b;
|
|
2611
2611
|
});
|
|
2612
2612
|
return new $("Invalid " + z + " `" + k + "` of value `" + String(_) + "` " + ("supplied to `" + C + "`, expected one of " + H + "."));
|
|
2613
2613
|
}
|
|
2614
2614
|
return B(x);
|
|
2615
2615
|
}
|
|
2616
|
-
function Q(
|
|
2616
|
+
function Q(m) {
|
|
2617
2617
|
function x(P, R, C, z, k) {
|
|
2618
|
-
if (typeof
|
|
2618
|
+
if (typeof m != "function")
|
|
2619
2619
|
return new $("Property `" + k + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
|
|
2620
2620
|
var _ = P[R], j = oe(_);
|
|
2621
2621
|
if (j !== "object")
|
|
2622
2622
|
return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected an object."));
|
|
2623
2623
|
for (var H in _)
|
|
2624
2624
|
if (n(_, H)) {
|
|
2625
|
-
var M =
|
|
2625
|
+
var M = m(_, H, C, z, k + "." + H, r);
|
|
2626
2626
|
if (M instanceof Error)
|
|
2627
2627
|
return M;
|
|
2628
2628
|
}
|
|
@@ -2630,46 +2630,46 @@ function Qi() {
|
|
|
2630
2630
|
}
|
|
2631
2631
|
return B(x);
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2634
|
-
if (!Array.isArray(
|
|
2635
|
-
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
2636
|
-
for (var x = 0; x <
|
|
2637
|
-
var P =
|
|
2633
|
+
function fe(m) {
|
|
2634
|
+
if (!Array.isArray(m))
|
|
2635
|
+
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
2636
|
+
for (var x = 0; x < m.length; x++) {
|
|
2637
|
+
var P = m[x];
|
|
2638
2638
|
if (typeof P != "function")
|
|
2639
2639
|
return a(
|
|
2640
2640
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge(P) + " at index " + x + "."
|
|
2641
|
-
),
|
|
2641
|
+
), l;
|
|
2642
2642
|
}
|
|
2643
2643
|
function R(C, z, k, _, j) {
|
|
2644
|
-
for (var H = [], M = 0; M <
|
|
2645
|
-
var te =
|
|
2644
|
+
for (var H = [], M = 0; M < m.length; M++) {
|
|
2645
|
+
var te = m[M], b = te(C, z, k, _, j, r);
|
|
2646
2646
|
if (b == null)
|
|
2647
2647
|
return null;
|
|
2648
2648
|
b.data && n(b.data, "expectedType") && H.push(b.data.expectedType);
|
|
2649
2649
|
}
|
|
2650
|
-
var
|
|
2651
|
-
return new $("Invalid " + _ + " `" + j + "` supplied to " + ("`" + k + "`" +
|
|
2650
|
+
var be = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
|
|
2651
|
+
return new $("Invalid " + _ + " `" + j + "` supplied to " + ("`" + k + "`" + be + "."));
|
|
2652
2652
|
}
|
|
2653
2653
|
return B(R);
|
|
2654
2654
|
}
|
|
2655
|
-
function
|
|
2656
|
-
function
|
|
2655
|
+
function me() {
|
|
2656
|
+
function m(x, P, R, C, z) {
|
|
2657
2657
|
return Z(x[P]) ? null : new $("Invalid " + C + " `" + z + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
2658
2658
|
}
|
|
2659
|
-
return B(
|
|
2659
|
+
return B(m);
|
|
2660
2660
|
}
|
|
2661
|
-
function ye(
|
|
2661
|
+
function ye(m, x, P, R, C) {
|
|
2662
2662
|
return new $(
|
|
2663
|
-
(
|
|
2663
|
+
(m || "React class") + ": " + x + " type `" + P + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
|
|
2664
2664
|
);
|
|
2665
2665
|
}
|
|
2666
|
-
function Ee(
|
|
2666
|
+
function Ee(m) {
|
|
2667
2667
|
function x(P, R, C, z, k) {
|
|
2668
2668
|
var _ = P[R], j = oe(_);
|
|
2669
2669
|
if (j !== "object")
|
|
2670
2670
|
return new $("Invalid " + z + " `" + k + "` of type `" + j + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
2671
|
-
for (var H in
|
|
2672
|
-
var M =
|
|
2671
|
+
for (var H in m) {
|
|
2672
|
+
var M = m[H];
|
|
2673
2673
|
if (typeof M != "function")
|
|
2674
2674
|
return ye(C, z, k, H, le(M));
|
|
2675
2675
|
var te = M(_, H, C, z, k + "." + H, r);
|
|
@@ -2680,20 +2680,20 @@ function Qi() {
|
|
|
2680
2680
|
}
|
|
2681
2681
|
return B(x);
|
|
2682
2682
|
}
|
|
2683
|
-
function ee(
|
|
2683
|
+
function ee(m) {
|
|
2684
2684
|
function x(P, R, C, z, k) {
|
|
2685
2685
|
var _ = P[R], j = oe(_);
|
|
2686
2686
|
if (j !== "object")
|
|
2687
2687
|
return new $("Invalid " + z + " `" + k + "` of type `" + j + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
2688
|
-
var H = t({}, P[R],
|
|
2688
|
+
var H = t({}, P[R], m);
|
|
2689
2689
|
for (var M in H) {
|
|
2690
|
-
var te =
|
|
2691
|
-
if (n(
|
|
2690
|
+
var te = m[M];
|
|
2691
|
+
if (n(m, M) && typeof te != "function")
|
|
2692
2692
|
return ye(C, z, k, M, le(te));
|
|
2693
2693
|
if (!te)
|
|
2694
2694
|
return new $(
|
|
2695
2695
|
"Invalid " + z + " `" + k + "` key `" + M + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(P[R], null, " ") + `
|
|
2696
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
2696
|
+
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
2697
2697
|
);
|
|
2698
2698
|
var b = te(_, M, C, z, k + "." + M, r);
|
|
2699
2699
|
if (b)
|
|
@@ -2703,23 +2703,23 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
2703
2703
|
}
|
|
2704
2704
|
return B(x);
|
|
2705
2705
|
}
|
|
2706
|
-
function Z(
|
|
2707
|
-
switch (typeof
|
|
2706
|
+
function Z(m) {
|
|
2707
|
+
switch (typeof m) {
|
|
2708
2708
|
case "number":
|
|
2709
2709
|
case "string":
|
|
2710
2710
|
case "undefined":
|
|
2711
2711
|
return !0;
|
|
2712
2712
|
case "boolean":
|
|
2713
|
-
return !
|
|
2713
|
+
return !m;
|
|
2714
2714
|
case "object":
|
|
2715
|
-
if (Array.isArray(
|
|
2716
|
-
return
|
|
2717
|
-
if (
|
|
2715
|
+
if (Array.isArray(m))
|
|
2716
|
+
return m.every(Z);
|
|
2717
|
+
if (m === null || u(m))
|
|
2718
2718
|
return !0;
|
|
2719
|
-
var x = v(
|
|
2719
|
+
var x = v(m);
|
|
2720
2720
|
if (x) {
|
|
2721
|
-
var P = x.call(
|
|
2722
|
-
if (x !==
|
|
2721
|
+
var P = x.call(m), R;
|
|
2722
|
+
if (x !== m.entries) {
|
|
2723
2723
|
for (; !(R = P.next()).done; )
|
|
2724
2724
|
if (!Z(R.value))
|
|
2725
2725
|
return !1;
|
|
@@ -2736,27 +2736,27 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
2736
2736
|
return !1;
|
|
2737
2737
|
}
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2740
|
-
return
|
|
2739
|
+
function pe(m, x) {
|
|
2740
|
+
return m === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
2741
2741
|
}
|
|
2742
|
-
function oe(
|
|
2743
|
-
var x = typeof
|
|
2744
|
-
return Array.isArray(
|
|
2742
|
+
function oe(m) {
|
|
2743
|
+
var x = typeof m;
|
|
2744
|
+
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : pe(x, m) ? "symbol" : x;
|
|
2745
2745
|
}
|
|
2746
|
-
function le(
|
|
2747
|
-
if (typeof
|
|
2748
|
-
return "" +
|
|
2749
|
-
var x = oe(
|
|
2746
|
+
function le(m) {
|
|
2747
|
+
if (typeof m > "u" || m === null)
|
|
2748
|
+
return "" + m;
|
|
2749
|
+
var x = oe(m);
|
|
2750
2750
|
if (x === "object") {
|
|
2751
|
-
if (
|
|
2751
|
+
if (m instanceof Date)
|
|
2752
2752
|
return "date";
|
|
2753
|
-
if (
|
|
2753
|
+
if (m instanceof RegExp)
|
|
2754
2754
|
return "regexp";
|
|
2755
2755
|
}
|
|
2756
2756
|
return x;
|
|
2757
2757
|
}
|
|
2758
|
-
function ge(
|
|
2759
|
-
var x = le(
|
|
2758
|
+
function ge(m) {
|
|
2759
|
+
var x = le(m);
|
|
2760
2760
|
switch (x) {
|
|
2761
2761
|
case "array":
|
|
2762
2762
|
case "object":
|
|
@@ -2769,23 +2769,23 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
2769
2769
|
return x;
|
|
2770
2770
|
}
|
|
2771
2771
|
}
|
|
2772
|
-
function Se(
|
|
2773
|
-
return !
|
|
2772
|
+
function Se(m) {
|
|
2773
|
+
return !m.constructor || !m.constructor.name ? O : m.constructor.name;
|
|
2774
2774
|
}
|
|
2775
2775
|
return S.checkPropTypes = o, S.resetWarningCache = o.resetWarningCache, S.PropTypes = S, S;
|
|
2776
2776
|
}, ut;
|
|
2777
2777
|
}
|
|
2778
|
-
var dt,
|
|
2778
|
+
var dt, cr;
|
|
2779
2779
|
function eo() {
|
|
2780
|
-
if (
|
|
2781
|
-
|
|
2782
|
-
var e =
|
|
2780
|
+
if (cr) return dt;
|
|
2781
|
+
cr = 1;
|
|
2782
|
+
var e = _t();
|
|
2783
2783
|
function t() {
|
|
2784
2784
|
}
|
|
2785
2785
|
function r() {
|
|
2786
2786
|
}
|
|
2787
2787
|
return r.resetWarningCache = t, dt = function() {
|
|
2788
|
-
function n(
|
|
2788
|
+
function n(l, u, d, p, y, v) {
|
|
2789
2789
|
if (v !== e) {
|
|
2790
2790
|
var O = new Error(
|
|
2791
2791
|
"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"
|
|
@@ -2825,10 +2825,10 @@ function eo() {
|
|
|
2825
2825
|
}
|
|
2826
2826
|
if (process.env.NODE_ENV !== "production") {
|
|
2827
2827
|
var to = Cr(), ro = !0;
|
|
2828
|
-
|
|
2828
|
+
Nt.exports = Qi()(to.isElement, ro);
|
|
2829
2829
|
} else
|
|
2830
|
-
|
|
2831
|
-
var Xe =
|
|
2830
|
+
Nt.exports = eo()();
|
|
2831
|
+
var Xe = Nt.exports;
|
|
2832
2832
|
function Dr(e) {
|
|
2833
2833
|
var t, r, n = "";
|
|
2834
2834
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
@@ -2836,14 +2836,14 @@ function Dr(e) {
|
|
|
2836
2836
|
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
2837
2837
|
return n;
|
|
2838
2838
|
}
|
|
2839
|
-
function
|
|
2839
|
+
function ur() {
|
|
2840
2840
|
for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t = Dr(e)) && (n && (n += " "), n += t);
|
|
2841
2841
|
return n;
|
|
2842
2842
|
}
|
|
2843
2843
|
const no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2844
2844
|
__proto__: null,
|
|
2845
|
-
clsx:
|
|
2846
|
-
default:
|
|
2845
|
+
clsx: ur,
|
|
2846
|
+
default: ur
|
|
2847
2847
|
}, Symbol.toStringTag, { value: "Module" })), io = /* @__PURE__ */ _n(no);
|
|
2848
2848
|
var K = {}, xe = {};
|
|
2849
2849
|
Object.defineProperty(xe, "__esModule", {
|
|
@@ -2913,7 +2913,7 @@ K.createCSSTransform = Eo;
|
|
|
2913
2913
|
K.createSVGTransform = So;
|
|
2914
2914
|
K.getTouch = wo;
|
|
2915
2915
|
K.getTouchIdentifier = Co;
|
|
2916
|
-
K.getTranslation =
|
|
2916
|
+
K.getTranslation = Ot;
|
|
2917
2917
|
K.innerHeight = go;
|
|
2918
2918
|
K.innerWidth = xo;
|
|
2919
2919
|
K.matchesSelector = Tr;
|
|
@@ -2924,7 +2924,7 @@ K.outerWidth = vo;
|
|
|
2924
2924
|
K.removeClassName = jr;
|
|
2925
2925
|
K.removeEvent = ho;
|
|
2926
2926
|
K.removeUserSelectStyles = Do;
|
|
2927
|
-
var
|
|
2927
|
+
var de = xe, dr = mo(Oe);
|
|
2928
2928
|
function Rr(e) {
|
|
2929
2929
|
if (typeof WeakMap != "function") return null;
|
|
2930
2930
|
var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
@@ -2943,16 +2943,16 @@ function mo(e, t) {
|
|
|
2943
2943
|
var n = {}, o = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
2944
2944
|
for (var a in e)
|
|
2945
2945
|
if (a !== "default" && Object.prototype.hasOwnProperty.call(e, a)) {
|
|
2946
|
-
var
|
|
2947
|
-
|
|
2946
|
+
var l = o ? Object.getOwnPropertyDescriptor(e, a) : null;
|
|
2947
|
+
l && (l.get || l.set) ? Object.defineProperty(n, a, l) : n[a] = e[a];
|
|
2948
2948
|
}
|
|
2949
2949
|
return n.default = e, r && r.set(e, n), n;
|
|
2950
2950
|
}
|
|
2951
2951
|
let Ye = "";
|
|
2952
2952
|
function Tr(e, t) {
|
|
2953
|
-
return Ye || (Ye = (0,
|
|
2954
|
-
return (0,
|
|
2955
|
-
})), (0,
|
|
2953
|
+
return Ye || (Ye = (0, de.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(r) {
|
|
2954
|
+
return (0, de.isFunction)(e[r]);
|
|
2955
|
+
})), (0, de.isFunction)(e[Ye]) ? e[Ye](t) : !1;
|
|
2956
2956
|
}
|
|
2957
2957
|
function po(e, t, r) {
|
|
2958
2958
|
let n = e;
|
|
@@ -2982,55 +2982,55 @@ function ho(e, t, r, n) {
|
|
|
2982
2982
|
function yo(e) {
|
|
2983
2983
|
let t = e.clientHeight;
|
|
2984
2984
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
2985
|
-
return t += (0,
|
|
2985
|
+
return t += (0, de.int)(r.borderTopWidth), t += (0, de.int)(r.borderBottomWidth), t;
|
|
2986
2986
|
}
|
|
2987
2987
|
function vo(e) {
|
|
2988
2988
|
let t = e.clientWidth;
|
|
2989
2989
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
2990
|
-
return t += (0,
|
|
2990
|
+
return t += (0, de.int)(r.borderLeftWidth), t += (0, de.int)(r.borderRightWidth), t;
|
|
2991
2991
|
}
|
|
2992
2992
|
function go(e) {
|
|
2993
2993
|
let t = e.clientHeight;
|
|
2994
2994
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
2995
|
-
return t -= (0,
|
|
2995
|
+
return t -= (0, de.int)(r.paddingTop), t -= (0, de.int)(r.paddingBottom), t;
|
|
2996
2996
|
}
|
|
2997
2997
|
function xo(e) {
|
|
2998
2998
|
let t = e.clientWidth;
|
|
2999
2999
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
3000
|
-
return t -= (0,
|
|
3000
|
+
return t -= (0, de.int)(r.paddingLeft), t -= (0, de.int)(r.paddingRight), t;
|
|
3001
3001
|
}
|
|
3002
3002
|
function No(e, t, r) {
|
|
3003
3003
|
const o = t === t.ownerDocument.body ? {
|
|
3004
3004
|
left: 0,
|
|
3005
3005
|
top: 0
|
|
3006
|
-
} : t.getBoundingClientRect(), a = (e.clientX + t.scrollLeft - o.left) / r,
|
|
3006
|
+
} : t.getBoundingClientRect(), a = (e.clientX + t.scrollLeft - o.left) / r, l = (e.clientY + t.scrollTop - o.top) / r;
|
|
3007
3007
|
return {
|
|
3008
3008
|
x: a,
|
|
3009
|
-
y:
|
|
3009
|
+
y: l
|
|
3010
3010
|
};
|
|
3011
3011
|
}
|
|
3012
3012
|
function Eo(e, t) {
|
|
3013
|
-
const r =
|
|
3013
|
+
const r = Ot(e, t, "px");
|
|
3014
3014
|
return {
|
|
3015
|
-
[(0,
|
|
3015
|
+
[(0, dr.browserPrefixToKey)("transform", dr.default)]: r
|
|
3016
3016
|
};
|
|
3017
3017
|
}
|
|
3018
3018
|
function So(e, t) {
|
|
3019
|
-
return
|
|
3019
|
+
return Ot(e, t, "");
|
|
3020
3020
|
}
|
|
3021
|
-
function
|
|
3021
|
+
function Ot(e, t, r) {
|
|
3022
3022
|
let {
|
|
3023
3023
|
x: n,
|
|
3024
3024
|
y: o
|
|
3025
3025
|
} = e, a = "translate(".concat(n).concat(r, ",").concat(o).concat(r, ")");
|
|
3026
3026
|
if (t) {
|
|
3027
|
-
const
|
|
3028
|
-
a = "translate(".concat(
|
|
3027
|
+
const l = "".concat(typeof t.x == "string" ? t.x : t.x + r), u = "".concat(typeof t.y == "string" ? t.y : t.y + r);
|
|
3028
|
+
a = "translate(".concat(l, ", ").concat(u, ")") + a;
|
|
3029
3029
|
}
|
|
3030
3030
|
return a;
|
|
3031
3031
|
}
|
|
3032
3032
|
function wo(e, t) {
|
|
3033
|
-
return e.targetTouches && (0,
|
|
3033
|
+
return e.targetTouches && (0, de.findInArray)(e.targetTouches, (r) => t === r.identifier) || e.changedTouches && (0, de.findInArray)(e.changedTouches, (r) => t === r.identifier);
|
|
3034
3034
|
}
|
|
3035
3035
|
function Co(e) {
|
|
3036
3036
|
if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
|
|
@@ -3079,20 +3079,20 @@ function _o(e, t, r) {
|
|
|
3079
3079
|
bounds: n
|
|
3080
3080
|
} = e.props;
|
|
3081
3081
|
n = typeof n == "string" ? n : Vo(n);
|
|
3082
|
-
const o =
|
|
3082
|
+
const o = Rt(e);
|
|
3083
3083
|
if (typeof n == "string") {
|
|
3084
3084
|
const {
|
|
3085
3085
|
ownerDocument: a
|
|
3086
|
-
} = o,
|
|
3086
|
+
} = o, l = a.defaultView;
|
|
3087
3087
|
let u;
|
|
3088
|
-
if (n === "parent" ? u = o.parentNode : u = a.querySelector(n), !(u instanceof
|
|
3088
|
+
if (n === "parent" ? u = o.parentNode : u = a.querySelector(n), !(u instanceof l.HTMLElement))
|
|
3089
3089
|
throw new Error('Bounds selector "' + n + '" could not find an element.');
|
|
3090
|
-
const
|
|
3090
|
+
const d = u, p = l.getComputedStyle(o), y = l.getComputedStyle(d);
|
|
3091
3091
|
n = {
|
|
3092
3092
|
left: -o.offsetLeft + (0, ce.int)(y.paddingLeft) + (0, ce.int)(p.marginLeft),
|
|
3093
3093
|
top: -o.offsetTop + (0, ce.int)(y.paddingTop) + (0, ce.int)(p.marginTop),
|
|
3094
|
-
right: (0, je.innerWidth)(
|
|
3095
|
-
bottom: (0, je.innerHeight)(
|
|
3094
|
+
right: (0, je.innerWidth)(d) - (0, je.outerWidth)(o) - o.offsetLeft + (0, ce.int)(y.paddingRight) - (0, ce.int)(p.marginRight),
|
|
3095
|
+
bottom: (0, je.innerHeight)(d) - (0, je.outerHeight)(o) - o.offsetTop + (0, ce.int)(y.paddingBottom) - (0, ce.int)(p.marginBottom)
|
|
3096
3096
|
};
|
|
3097
3097
|
}
|
|
3098
3098
|
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];
|
|
@@ -3110,11 +3110,11 @@ function To(e) {
|
|
|
3110
3110
|
function Po(e, t, r) {
|
|
3111
3111
|
const n = typeof t == "number" ? (0, je.getTouch)(e, t) : null;
|
|
3112
3112
|
if (typeof t == "number" && !n) return null;
|
|
3113
|
-
const o =
|
|
3113
|
+
const o = Rt(r), a = r.props.offsetParent || o.offsetParent || o.ownerDocument.body;
|
|
3114
3114
|
return (0, je.offsetXYFromParent)(n || e, a, r.props.scale);
|
|
3115
3115
|
}
|
|
3116
3116
|
function jo(e, t, r) {
|
|
3117
|
-
const n = !(0, ce.isNum)(e.lastX), o =
|
|
3117
|
+
const n = !(0, ce.isNum)(e.lastX), o = Rt(e);
|
|
3118
3118
|
return n ? {
|
|
3119
3119
|
node: o,
|
|
3120
3120
|
deltaX: 0,
|
|
@@ -3153,7 +3153,7 @@ function Vo(e) {
|
|
|
3153
3153
|
bottom: e.bottom
|
|
3154
3154
|
};
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function Rt(e) {
|
|
3157
3157
|
const t = e.findDOMNode();
|
|
3158
3158
|
if (!t)
|
|
3159
3159
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
@@ -3170,8 +3170,8 @@ Object.defineProperty(Ke, "__esModule", {
|
|
|
3170
3170
|
value: !0
|
|
3171
3171
|
});
|
|
3172
3172
|
Ke.default = void 0;
|
|
3173
|
-
var mt = zo(_e), se =
|
|
3174
|
-
function
|
|
3173
|
+
var mt = zo(_e), se = Tt(Xe), $o = Tt(Nr), re = K, we = Ne, pt = xe, Ae = Tt(Ge);
|
|
3174
|
+
function Tt(e) {
|
|
3175
3175
|
return e && e.__esModule ? e : { default: e };
|
|
3176
3176
|
}
|
|
3177
3177
|
function Mr(e) {
|
|
@@ -3192,8 +3192,8 @@ function zo(e, t) {
|
|
|
3192
3192
|
var n = {}, o = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3193
3193
|
for (var a in e)
|
|
3194
3194
|
if (a !== "default" && Object.prototype.hasOwnProperty.call(e, a)) {
|
|
3195
|
-
var
|
|
3196
|
-
|
|
3195
|
+
var l = o ? Object.getOwnPropertyDescriptor(e, a) : null;
|
|
3196
|
+
l && (l.get || l.set) ? Object.defineProperty(n, a, l) : n[a] = e[a];
|
|
3197
3197
|
}
|
|
3198
3198
|
return n.default = e, r && r.set(e, n), n;
|
|
3199
3199
|
}
|
|
@@ -3244,10 +3244,10 @@ let Ce = ve.mouse, Je = class extends mt.Component {
|
|
|
3244
3244
|
const a = (0, we.getControlPosition)(t, o, this);
|
|
3245
3245
|
if (a == null) return;
|
|
3246
3246
|
const {
|
|
3247
|
-
x:
|
|
3247
|
+
x: l,
|
|
3248
3248
|
y: u
|
|
3249
|
-
} = a,
|
|
3250
|
-
(0, Ae.default)("DraggableCore: handleDragStart: %j",
|
|
3249
|
+
} = a, d = (0, we.createCoreData)(this, l, u);
|
|
3250
|
+
(0, Ae.default)("DraggableCore: handleDragStart: %j", d), (0, Ae.default)("calling", this.props.onStart), !(this.props.onStart(t, d) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, re.addUserSelectStyles)(n), this.dragging = !0, this.lastX = l, this.lastY = u, (0, re.addEvent)(n, Ce.move, this.handleDrag), (0, re.addEvent)(n, Ce.stop, this.handleDragStop));
|
|
3251
3251
|
}), ie(this, "handleDrag", (t) => {
|
|
3252
3252
|
const r = (0, we.getControlPosition)(t, this.touchIdentifier, this);
|
|
3253
3253
|
if (r == null) return;
|
|
@@ -3256,17 +3256,17 @@ let Ce = ve.mouse, Je = class extends mt.Component {
|
|
|
3256
3256
|
y: o
|
|
3257
3257
|
} = r;
|
|
3258
3258
|
if (Array.isArray(this.props.grid)) {
|
|
3259
|
-
let u = n - this.lastX,
|
|
3260
|
-
if ([u,
|
|
3261
|
-
n = this.lastX + u, o = this.lastY +
|
|
3259
|
+
let u = n - this.lastX, d = o - this.lastY;
|
|
3260
|
+
if ([u, d] = (0, we.snapToGrid)(this.props.grid, u, d), !u && !d) return;
|
|
3261
|
+
n = this.lastX + u, o = this.lastY + d;
|
|
3262
3262
|
}
|
|
3263
3263
|
const a = (0, we.createCoreData)(this, n, o);
|
|
3264
3264
|
if ((0, Ae.default)("DraggableCore: handleDrag: %j", a), this.props.onDrag(t, a) === !1 || this.mounted === !1) {
|
|
3265
3265
|
try {
|
|
3266
3266
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
3267
3267
|
} catch {
|
|
3268
|
-
const
|
|
3269
|
-
|
|
3268
|
+
const d = document.createEvent("MouseEvents");
|
|
3269
|
+
d.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(d);
|
|
3270
3270
|
}
|
|
3271
3271
|
return;
|
|
3272
3272
|
}
|
|
@@ -3280,8 +3280,8 @@ let Ce = ve.mouse, Je = class extends mt.Component {
|
|
|
3280
3280
|
y: o
|
|
3281
3281
|
} = r;
|
|
3282
3282
|
if (Array.isArray(this.props.grid)) {
|
|
3283
|
-
let
|
|
3284
|
-
[
|
|
3283
|
+
let d = n - this.lastX || 0, p = o - this.lastY || 0;
|
|
3284
|
+
[d, p] = (0, we.snapToGrid)(this.props.grid, d, p), n = this.lastX + d, o = this.lastY + p;
|
|
3285
3285
|
}
|
|
3286
3286
|
const a = (0, we.createCoreData)(this, n, o);
|
|
3287
3287
|
if (this.props.onStop(t, a) === !1 || this.mounted === !1) return !1;
|
|
@@ -3473,10 +3473,10 @@ ie(Je, "defaultProps", {
|
|
|
3473
3473
|
}), Object.defineProperty(e, "DraggableCore", {
|
|
3474
3474
|
enumerable: !0,
|
|
3475
3475
|
get: function() {
|
|
3476
|
-
return
|
|
3476
|
+
return d.default;
|
|
3477
3477
|
}
|
|
3478
3478
|
}), e.default = void 0;
|
|
3479
|
-
var t = O(_e), r = y(Xe), n = y(Nr), o = y(io), a = K,
|
|
3479
|
+
var t = O(_e), r = y(Xe), n = y(Nr), o = y(io), a = K, l = Ne, u = xe, d = y(Ke), p = y(Ge);
|
|
3480
3480
|
function y(g) {
|
|
3481
3481
|
return g && g.__esModule ? g : { default: g };
|
|
3482
3482
|
}
|
|
@@ -3552,7 +3552,7 @@ ie(Je, "defaultProps", {
|
|
|
3552
3552
|
}
|
|
3553
3553
|
constructor(N) {
|
|
3554
3554
|
super(N), A(this, "onDragStart", (E, c) => {
|
|
3555
|
-
if ((0, p.default)("Draggable: onDragStart: %j", c), this.props.onStart(E, (0,
|
|
3555
|
+
if ((0, p.default)("Draggable: onDragStart: %j", c), this.props.onStart(E, (0, l.createDraggableData)(this, c)) === !1) return !1;
|
|
3556
3556
|
this.setState({
|
|
3557
3557
|
dragging: !0,
|
|
3558
3558
|
dragged: !0
|
|
@@ -3560,7 +3560,7 @@ ie(Je, "defaultProps", {
|
|
|
3560
3560
|
}), A(this, "onDrag", (E, c) => {
|
|
3561
3561
|
if (!this.state.dragging) return !1;
|
|
3562
3562
|
(0, p.default)("Draggable: onDrag: %j", c);
|
|
3563
|
-
const Y = (0,
|
|
3563
|
+
const Y = (0, l.createDraggableData)(this, c), T = {
|
|
3564
3564
|
x: Y.x,
|
|
3565
3565
|
y: Y.y,
|
|
3566
3566
|
slackX: 0,
|
|
@@ -3568,17 +3568,17 @@ ie(Je, "defaultProps", {
|
|
|
3568
3568
|
};
|
|
3569
3569
|
if (this.props.bounds) {
|
|
3570
3570
|
const {
|
|
3571
|
-
x:
|
|
3572
|
-
y:
|
|
3571
|
+
x: fe,
|
|
3572
|
+
y: me
|
|
3573
3573
|
} = T;
|
|
3574
3574
|
T.x += this.state.slackX, T.y += this.state.slackY;
|
|
3575
|
-
const [ye, Ee] = (0,
|
|
3576
|
-
T.x = ye, T.y = Ee, T.slackX = this.state.slackX + (
|
|
3575
|
+
const [ye, Ee] = (0, l.getBoundPosition)(this, T.x, T.y);
|
|
3576
|
+
T.x = ye, T.y = Ee, T.slackX = this.state.slackX + (fe - T.x), T.slackY = this.state.slackY + (me - T.y), Y.x = T.x, Y.y = T.y, Y.deltaX = T.x - this.state.x, Y.deltaY = T.y - this.state.y;
|
|
3577
3577
|
}
|
|
3578
3578
|
if (this.props.onDrag(E, Y) === !1) return !1;
|
|
3579
3579
|
this.setState(T);
|
|
3580
3580
|
}), A(this, "onDragStop", (E, c) => {
|
|
3581
|
-
if (!this.state.dragging || this.props.onStop(E, (0,
|
|
3581
|
+
if (!this.state.dragging || this.props.onStop(E, (0, l.createDraggableData)(this, c)) === !1) return !1;
|
|
3582
3582
|
(0, p.default)("Draggable: onDragStop: %j", c);
|
|
3583
3583
|
const T = {
|
|
3584
3584
|
dragging: !1,
|
|
@@ -3587,10 +3587,10 @@ ie(Je, "defaultProps", {
|
|
|
3587
3587
|
};
|
|
3588
3588
|
if (!!this.props.position) {
|
|
3589
3589
|
const {
|
|
3590
|
-
x:
|
|
3591
|
-
y:
|
|
3590
|
+
x: fe,
|
|
3591
|
+
y: me
|
|
3592
3592
|
} = this.props.position;
|
|
3593
|
-
T.x =
|
|
3593
|
+
T.x = fe, T.y = me;
|
|
3594
3594
|
}
|
|
3595
3595
|
this.setState(T);
|
|
3596
3596
|
}), this.state = {
|
|
@@ -3635,41 +3635,41 @@ ie(Je, "defaultProps", {
|
|
|
3635
3635
|
defaultPosition: Y,
|
|
3636
3636
|
defaultClassName: T,
|
|
3637
3637
|
defaultClassNameDragging: Q,
|
|
3638
|
-
defaultClassNameDragged:
|
|
3639
|
-
position:
|
|
3638
|
+
defaultClassNameDragged: fe,
|
|
3639
|
+
position: me,
|
|
3640
3640
|
positionOffset: ye,
|
|
3641
3641
|
scale: Ee,
|
|
3642
3642
|
...ee
|
|
3643
3643
|
} = this.props;
|
|
3644
|
-
let Z = {},
|
|
3645
|
-
const le = !!!
|
|
3644
|
+
let Z = {}, pe = null;
|
|
3645
|
+
const le = !!!me || this.state.dragging, ge = me || Y, Se = {
|
|
3646
3646
|
// Set left if horizontal drag is enabled
|
|
3647
|
-
x: (0,
|
|
3647
|
+
x: (0, l.canDragX)(this) && le ? this.state.x : ge.x,
|
|
3648
3648
|
// Set top if vertical drag is enabled
|
|
3649
|
-
y: (0,
|
|
3649
|
+
y: (0, l.canDragY)(this) && le ? this.state.y : ge.y
|
|
3650
3650
|
};
|
|
3651
|
-
this.state.isElementSVG ?
|
|
3652
|
-
const
|
|
3651
|
+
this.state.isElementSVG ? pe = (0, a.createSVGTransform)(Se, ye) : Z = (0, a.createCSSTransform)(Se, ye);
|
|
3652
|
+
const m = (0, o.default)(c.props.className || "", T, {
|
|
3653
3653
|
[Q]: this.state.dragging,
|
|
3654
|
-
[
|
|
3654
|
+
[fe]: this.state.dragged
|
|
3655
3655
|
});
|
|
3656
|
-
return /* @__PURE__ */ t.createElement(
|
|
3656
|
+
return /* @__PURE__ */ t.createElement(d.default, S({}, ee, {
|
|
3657
3657
|
onStart: this.onDragStart,
|
|
3658
3658
|
onDrag: this.onDrag,
|
|
3659
3659
|
onStop: this.onDragStop
|
|
3660
3660
|
}), /* @__PURE__ */ t.cloneElement(t.Children.only(c), {
|
|
3661
|
-
className:
|
|
3661
|
+
className: m,
|
|
3662
3662
|
style: {
|
|
3663
3663
|
...c.props.style,
|
|
3664
3664
|
...Z
|
|
3665
3665
|
},
|
|
3666
|
-
transform:
|
|
3666
|
+
transform: pe
|
|
3667
3667
|
}));
|
|
3668
3668
|
}
|
|
3669
3669
|
}
|
|
3670
3670
|
e.default = W, A(W, "displayName", "Draggable"), A(W, "propTypes", {
|
|
3671
3671
|
// Accepts all props <DraggableCore> accepts.
|
|
3672
|
-
...
|
|
3672
|
+
...d.default.propTypes,
|
|
3673
3673
|
/**
|
|
3674
3674
|
* `axis` determines which axis the draggable can move.
|
|
3675
3675
|
*
|
|
@@ -3775,7 +3775,7 @@ ie(Je, "defaultProps", {
|
|
|
3775
3775
|
style: u.dontSetMe,
|
|
3776
3776
|
transform: u.dontSetMe
|
|
3777
3777
|
}), A(W, "defaultProps", {
|
|
3778
|
-
...
|
|
3778
|
+
...d.default.defaultProps,
|
|
3779
3779
|
axis: "both",
|
|
3780
3780
|
bounds: !1,
|
|
3781
3781
|
defaultClassName: "react-draggable",
|
|
@@ -3795,14 +3795,14 @@ const {
|
|
|
3795
3795
|
Be.exports = Vr;
|
|
3796
3796
|
Be.exports.default = Vr;
|
|
3797
3797
|
Be.exports.DraggableCore = Lo;
|
|
3798
|
-
var Wo = Be.exports,
|
|
3799
|
-
|
|
3800
|
-
|
|
3798
|
+
var Wo = Be.exports, Pt = {};
|
|
3799
|
+
Pt.__esModule = !0;
|
|
3800
|
+
Pt.cloneElement = Xo;
|
|
3801
3801
|
var qo = Yo(_e);
|
|
3802
3802
|
function Yo(e) {
|
|
3803
3803
|
return e && e.__esModule ? e : { default: e };
|
|
3804
3804
|
}
|
|
3805
|
-
function
|
|
3805
|
+
function fr(e, t) {
|
|
3806
3806
|
var r = Object.keys(e);
|
|
3807
3807
|
if (Object.getOwnPropertySymbols) {
|
|
3808
3808
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -3812,12 +3812,12 @@ function dr(e, t) {
|
|
|
3812
3812
|
}
|
|
3813
3813
|
return r;
|
|
3814
3814
|
}
|
|
3815
|
-
function
|
|
3815
|
+
function mr(e) {
|
|
3816
3816
|
for (var t = 1; t < arguments.length; t++) {
|
|
3817
3817
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3818
|
-
t % 2 ?
|
|
3818
|
+
t % 2 ? fr(Object(r), !0).forEach(function(n) {
|
|
3819
3819
|
Fo(e, n, r[n]);
|
|
3820
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
3820
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : fr(Object(r)).forEach(function(n) {
|
|
3821
3821
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
3822
3822
|
});
|
|
3823
3823
|
}
|
|
@@ -3841,7 +3841,7 @@ function Bo(e, t) {
|
|
|
3841
3841
|
return (t === "string" ? String : Number)(e);
|
|
3842
3842
|
}
|
|
3843
3843
|
function Xo(e, t) {
|
|
3844
|
-
return t.style && e.props.style && (t.style =
|
|
3844
|
+
return t.style && e.props.style && (t.style = mr(mr({}, e.props.style), t.style)), t.className && e.props.className && (t.className = e.props.className + " " + t.className), /* @__PURE__ */ qo.default.cloneElement(e, t);
|
|
3845
3845
|
}
|
|
3846
3846
|
var Ie = {};
|
|
3847
3847
|
Ie.__esModule = !0;
|
|
@@ -3958,7 +3958,7 @@ var Go = {
|
|
|
3958
3958
|
Ie.resizableProps = Go;
|
|
3959
3959
|
ze.__esModule = !0;
|
|
3960
3960
|
ze.default = void 0;
|
|
3961
|
-
var $e = ta(_e), Jo = Wo, Zo =
|
|
3961
|
+
var $e = ta(_e), Jo = Wo, Zo = Pt, Qo = Ie, ea = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
|
|
3962
3962
|
function Ar(e) {
|
|
3963
3963
|
if (typeof WeakMap != "function") return null;
|
|
3964
3964
|
var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
@@ -3977,20 +3977,20 @@ function ta(e, t) {
|
|
|
3977
3977
|
var n = {}, o = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3978
3978
|
for (var a in e)
|
|
3979
3979
|
if (a !== "default" && Object.prototype.hasOwnProperty.call(e, a)) {
|
|
3980
|
-
var
|
|
3981
|
-
|
|
3980
|
+
var l = o ? Object.getOwnPropertyDescriptor(e, a) : null;
|
|
3981
|
+
l && (l.get || l.set) ? Object.defineProperty(n, a, l) : n[a] = e[a];
|
|
3982
3982
|
}
|
|
3983
3983
|
return n.default = e, r && r.set(e, n), n;
|
|
3984
3984
|
}
|
|
3985
|
-
function
|
|
3986
|
-
return
|
|
3985
|
+
function Et() {
|
|
3986
|
+
return Et = Object.assign ? Object.assign.bind() : function(e) {
|
|
3987
3987
|
for (var t = 1; t < arguments.length; t++) {
|
|
3988
3988
|
var r = arguments[t];
|
|
3989
3989
|
for (var n in r)
|
|
3990
3990
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
3991
3991
|
}
|
|
3992
3992
|
return e;
|
|
3993
|
-
},
|
|
3993
|
+
}, Et.apply(this, arguments);
|
|
3994
3994
|
}
|
|
3995
3995
|
function ra(e, t) {
|
|
3996
3996
|
if (e == null) return {};
|
|
@@ -3999,7 +3999,7 @@ function ra(e, t) {
|
|
|
3999
3999
|
o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
4000
4000
|
return r;
|
|
4001
4001
|
}
|
|
4002
|
-
function
|
|
4002
|
+
function pr(e, t) {
|
|
4003
4003
|
var r = Object.keys(e);
|
|
4004
4004
|
if (Object.getOwnPropertySymbols) {
|
|
4005
4005
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -4012,9 +4012,9 @@ function mr(e, t) {
|
|
|
4012
4012
|
function bt(e) {
|
|
4013
4013
|
for (var t = 1; t < arguments.length; t++) {
|
|
4014
4014
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
4015
|
-
t % 2 ?
|
|
4015
|
+
t % 2 ? pr(Object(r), !0).forEach(function(n) {
|
|
4016
4016
|
na(e, n, r[n]);
|
|
4017
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
4017
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : pr(Object(r)).forEach(function(n) {
|
|
4018
4018
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4019
4019
|
});
|
|
4020
4020
|
}
|
|
@@ -4038,18 +4038,18 @@ function oa(e, t) {
|
|
|
4038
4038
|
return (t === "string" ? String : Number)(e);
|
|
4039
4039
|
}
|
|
4040
4040
|
function aa(e, t) {
|
|
4041
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
4041
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, St(e, t);
|
|
4042
4042
|
}
|
|
4043
|
-
function
|
|
4044
|
-
return
|
|
4043
|
+
function St(e, t) {
|
|
4044
|
+
return St = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
|
|
4045
4045
|
return n.__proto__ = o, n;
|
|
4046
|
-
},
|
|
4046
|
+
}, St(e, t);
|
|
4047
4047
|
}
|
|
4048
|
-
var
|
|
4048
|
+
var jt = /* @__PURE__ */ function(e) {
|
|
4049
4049
|
aa(t, e);
|
|
4050
4050
|
function t() {
|
|
4051
|
-
for (var n, o = arguments.length, a = new Array(o),
|
|
4052
|
-
a[
|
|
4051
|
+
for (var n, o = arguments.length, a = new Array(o), l = 0; l < o; l++)
|
|
4052
|
+
a[l] = arguments[l];
|
|
4053
4053
|
return n = e.call.apply(e, [this].concat(a)) || this, n.handleRefs = {}, n.lastHandleRect = null, n.slack = null, n;
|
|
4054
4054
|
}
|
|
4055
4055
|
var r = t.prototype;
|
|
@@ -4058,36 +4058,36 @@ var Pt = /* @__PURE__ */ function(e) {
|
|
|
4058
4058
|
}, r.resetData = function() {
|
|
4059
4059
|
this.lastHandleRect = this.slack = null;
|
|
4060
4060
|
}, r.runConstraints = function(o, a) {
|
|
4061
|
-
var
|
|
4062
|
-
if (!u && !
|
|
4061
|
+
var l = this.props, u = l.minConstraints, d = l.maxConstraints, p = l.lockAspectRatio;
|
|
4062
|
+
if (!u && !d && !p) return [o, a];
|
|
4063
4063
|
if (p) {
|
|
4064
4064
|
var y = this.props.width / this.props.height, v = o - this.props.width, O = a - this.props.height;
|
|
4065
4065
|
Math.abs(v) > Math.abs(O * y) ? a = o / y : o = a * y;
|
|
4066
4066
|
}
|
|
4067
4067
|
var S = o, A = a, $ = this.slack || [0, 0], B = $[0], W = $[1];
|
|
4068
|
-
return o += B, a += W, u && (o = Math.max(u[0], o), a = Math.max(u[1], a)),
|
|
4068
|
+
return o += B, a += W, u && (o = Math.max(u[0], o), a = Math.max(u[1], a)), d && (o = Math.min(d[0], o), a = Math.min(d[1], a)), this.slack = [B + (S - o), W + (A - a)], [o, a];
|
|
4069
4069
|
}, r.resizeHandler = function(o, a) {
|
|
4070
|
-
var
|
|
4071
|
-
return function(u,
|
|
4072
|
-
var p =
|
|
4073
|
-
o === "onResizeStart" &&
|
|
4074
|
-
var O = (
|
|
4070
|
+
var l = this;
|
|
4071
|
+
return function(u, d) {
|
|
4072
|
+
var p = d.node, y = d.deltaX, v = d.deltaY;
|
|
4073
|
+
o === "onResizeStart" && l.resetData();
|
|
4074
|
+
var O = (l.props.axis === "both" || l.props.axis === "x") && a !== "n" && a !== "s", S = (l.props.axis === "both" || l.props.axis === "y") && a !== "e" && a !== "w";
|
|
4075
4075
|
if (!(!O && !S)) {
|
|
4076
4076
|
var A = a[0], $ = a[a.length - 1], B = p.getBoundingClientRect();
|
|
4077
|
-
if (
|
|
4077
|
+
if (l.lastHandleRect != null) {
|
|
4078
4078
|
if ($ === "w") {
|
|
4079
|
-
var W = B.left -
|
|
4079
|
+
var W = B.left - l.lastHandleRect.left;
|
|
4080
4080
|
y += W;
|
|
4081
4081
|
}
|
|
4082
4082
|
if (A === "n") {
|
|
4083
|
-
var g = B.top -
|
|
4083
|
+
var g = B.top - l.lastHandleRect.top;
|
|
4084
4084
|
v += g;
|
|
4085
4085
|
}
|
|
4086
4086
|
}
|
|
4087
|
-
|
|
4088
|
-
var N =
|
|
4087
|
+
l.lastHandleRect = B, $ === "w" && (y = -y), A === "n" && (v = -v);
|
|
4088
|
+
var N = l.props.width + (O ? y / l.props.transformScale : 0), E = l.props.height + (S ? v / l.props.transformScale : 0), c = l.runConstraints(N, E);
|
|
4089
4089
|
N = c[0], E = c[1];
|
|
4090
|
-
var Y = N !==
|
|
4090
|
+
var Y = N !== l.props.width || E !== l.props.height, T = typeof l.props[o] == "function" ? l.props[o] : null, Q = o === "onResize" && !Y;
|
|
4091
4091
|
T && !Q && (u.persist == null || u.persist(), T(u, {
|
|
4092
4092
|
node: p,
|
|
4093
4093
|
size: {
|
|
@@ -4095,35 +4095,35 @@ var Pt = /* @__PURE__ */ function(e) {
|
|
|
4095
4095
|
height: E
|
|
4096
4096
|
},
|
|
4097
4097
|
handle: a
|
|
4098
|
-
})), o === "onResizeStop" &&
|
|
4098
|
+
})), o === "onResizeStop" && l.resetData();
|
|
4099
4099
|
}
|
|
4100
4100
|
};
|
|
4101
4101
|
}, r.renderResizeHandle = function(o, a) {
|
|
4102
|
-
var
|
|
4103
|
-
if (!
|
|
4102
|
+
var l = this.props.handle;
|
|
4103
|
+
if (!l)
|
|
4104
4104
|
return /* @__PURE__ */ $e.createElement("span", {
|
|
4105
4105
|
className: "react-resizable-handle react-resizable-handle-" + o,
|
|
4106
4106
|
ref: a
|
|
4107
4107
|
});
|
|
4108
|
-
if (typeof
|
|
4109
|
-
return
|
|
4110
|
-
var u = typeof
|
|
4108
|
+
if (typeof l == "function")
|
|
4109
|
+
return l(o, a);
|
|
4110
|
+
var u = typeof l.type == "string", d = bt({
|
|
4111
4111
|
ref: a
|
|
4112
4112
|
}, u ? {} : {
|
|
4113
4113
|
handleAxis: o
|
|
4114
4114
|
});
|
|
4115
|
-
return /* @__PURE__ */ $e.cloneElement(
|
|
4115
|
+
return /* @__PURE__ */ $e.cloneElement(l, d);
|
|
4116
4116
|
}, r.render = function() {
|
|
4117
|
-
var o = this, a = this.props,
|
|
4117
|
+
var o = this, a = this.props, l = a.children, u = a.className, d = a.draggableOpts;
|
|
4118
4118
|
a.width, a.height, a.handle, a.handleSize, a.lockAspectRatio, a.axis, a.minConstraints, a.maxConstraints, a.onResize, a.onResizeStop, a.onResizeStart;
|
|
4119
4119
|
var p = a.resizeHandles;
|
|
4120
4120
|
a.transformScale;
|
|
4121
4121
|
var y = ra(a, ea);
|
|
4122
|
-
return (0, Zo.cloneElement)(
|
|
4122
|
+
return (0, Zo.cloneElement)(l, bt(bt({}, y), {}, {
|
|
4123
4123
|
className: (u ? u + " " : "") + "react-resizable",
|
|
4124
|
-
children: [].concat(
|
|
4124
|
+
children: [].concat(l.props.children, p.map(function(v) {
|
|
4125
4125
|
var O, S = (O = o.handleRefs[v]) != null ? O : o.handleRefs[v] = /* @__PURE__ */ $e.createRef();
|
|
4126
|
-
return /* @__PURE__ */ $e.createElement(Jo.DraggableCore,
|
|
4126
|
+
return /* @__PURE__ */ $e.createElement(Jo.DraggableCore, Et({}, d, {
|
|
4127
4127
|
nodeRef: S,
|
|
4128
4128
|
key: "resizableHandle-" + v,
|
|
4129
4129
|
onStop: o.resizeHandler("onResizeStop", v),
|
|
@@ -4134,9 +4134,9 @@ var Pt = /* @__PURE__ */ function(e) {
|
|
|
4134
4134
|
}));
|
|
4135
4135
|
}, t;
|
|
4136
4136
|
}($e.Component);
|
|
4137
|
-
ze.default =
|
|
4138
|
-
|
|
4139
|
-
|
|
4137
|
+
ze.default = jt;
|
|
4138
|
+
jt.propTypes = Qo.resizableProps;
|
|
4139
|
+
jt.defaultProps = {
|
|
4140
4140
|
axis: "both",
|
|
4141
4141
|
handleSize: [20, 20],
|
|
4142
4142
|
lockAspectRatio: !1,
|
|
@@ -4170,22 +4170,22 @@ function da(e, t) {
|
|
|
4170
4170
|
var n = {}, o = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
4171
4171
|
for (var a in e)
|
|
4172
4172
|
if (a !== "default" && Object.prototype.hasOwnProperty.call(e, a)) {
|
|
4173
|
-
var
|
|
4174
|
-
|
|
4173
|
+
var l = o ? Object.getOwnPropertyDescriptor(e, a) : null;
|
|
4174
|
+
l && (l.get || l.set) ? Object.defineProperty(n, a, l) : n[a] = e[a];
|
|
4175
4175
|
}
|
|
4176
4176
|
return n.default = e, r && r.set(e, n), n;
|
|
4177
4177
|
}
|
|
4178
|
-
function
|
|
4179
|
-
return
|
|
4178
|
+
function wt() {
|
|
4179
|
+
return wt = Object.assign ? Object.assign.bind() : function(e) {
|
|
4180
4180
|
for (var t = 1; t < arguments.length; t++) {
|
|
4181
4181
|
var r = arguments[t];
|
|
4182
4182
|
for (var n in r)
|
|
4183
4183
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
4184
4184
|
}
|
|
4185
4185
|
return e;
|
|
4186
|
-
},
|
|
4186
|
+
}, wt.apply(this, arguments);
|
|
4187
4187
|
}
|
|
4188
|
-
function
|
|
4188
|
+
function br(e, t) {
|
|
4189
4189
|
var r = Object.keys(e);
|
|
4190
4190
|
if (Object.getOwnPropertySymbols) {
|
|
4191
4191
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -4198,9 +4198,9 @@ function pr(e, t) {
|
|
|
4198
4198
|
function Ue(e) {
|
|
4199
4199
|
for (var t = 1; t < arguments.length; t++) {
|
|
4200
4200
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
4201
|
-
t % 2 ?
|
|
4201
|
+
t % 2 ? br(Object(r), !0).forEach(function(n) {
|
|
4202
4202
|
fa(e, n, r[n]);
|
|
4203
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
4203
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : br(Object(r)).forEach(function(n) {
|
|
4204
4204
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4205
4205
|
});
|
|
4206
4206
|
}
|
|
@@ -4231,27 +4231,27 @@ function ba(e, t) {
|
|
|
4231
4231
|
return r;
|
|
4232
4232
|
}
|
|
4233
4233
|
function ha(e, t) {
|
|
4234
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
4234
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ct(e, t);
|
|
4235
4235
|
}
|
|
4236
|
-
function
|
|
4237
|
-
return
|
|
4236
|
+
function Ct(e, t) {
|
|
4237
|
+
return Ct = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
|
|
4238
4238
|
return n.__proto__ = o, n;
|
|
4239
|
-
},
|
|
4239
|
+
}, Ct(e, t);
|
|
4240
4240
|
}
|
|
4241
4241
|
var Ir = /* @__PURE__ */ function(e) {
|
|
4242
4242
|
ha(t, e);
|
|
4243
4243
|
function t() {
|
|
4244
|
-
for (var n, o = arguments.length, a = new Array(o),
|
|
4245
|
-
a[
|
|
4244
|
+
for (var n, o = arguments.length, a = new Array(o), l = 0; l < o; l++)
|
|
4245
|
+
a[l] = arguments[l];
|
|
4246
4246
|
return n = e.call.apply(e, [this].concat(a)) || this, n.state = {
|
|
4247
4247
|
width: n.props.width,
|
|
4248
4248
|
height: n.props.height,
|
|
4249
4249
|
propsWidth: n.props.width,
|
|
4250
4250
|
propsHeight: n.props.height
|
|
4251
|
-
}, n.onResize = function(u,
|
|
4252
|
-
var p =
|
|
4251
|
+
}, n.onResize = function(u, d) {
|
|
4252
|
+
var p = d.size;
|
|
4253
4253
|
n.props.onResize ? (u.persist == null || u.persist(), n.setState(p, function() {
|
|
4254
|
-
return n.props.onResize && n.props.onResize(u,
|
|
4254
|
+
return n.props.onResize && n.props.onResize(u, d);
|
|
4255
4255
|
})) : n.setState(p);
|
|
4256
4256
|
}, n;
|
|
4257
4257
|
}
|
|
@@ -4265,27 +4265,27 @@ var Ir = /* @__PURE__ */ function(e) {
|
|
|
4265
4265
|
};
|
|
4266
4266
|
var r = t.prototype;
|
|
4267
4267
|
return r.render = function() {
|
|
4268
|
-
var o = this.props, a = o.handle,
|
|
4268
|
+
var o = this.props, a = o.handle, l = o.handleSize;
|
|
4269
4269
|
o.onResize;
|
|
4270
|
-
var u = o.onResizeStart,
|
|
4270
|
+
var u = o.onResizeStart, d = o.onResizeStop, p = o.draggableOpts, y = o.minConstraints, v = o.maxConstraints, O = o.lockAspectRatio, S = o.axis;
|
|
4271
4271
|
o.width, o.height;
|
|
4272
4272
|
var A = o.resizeHandles, $ = o.style, B = o.transformScale, W = ba(o, ua);
|
|
4273
4273
|
return /* @__PURE__ */ ht.createElement(la.default, {
|
|
4274
4274
|
axis: S,
|
|
4275
4275
|
draggableOpts: p,
|
|
4276
4276
|
handle: a,
|
|
4277
|
-
handleSize:
|
|
4277
|
+
handleSize: l,
|
|
4278
4278
|
height: this.state.height,
|
|
4279
4279
|
lockAspectRatio: O,
|
|
4280
4280
|
maxConstraints: v,
|
|
4281
4281
|
minConstraints: y,
|
|
4282
4282
|
onResizeStart: u,
|
|
4283
4283
|
onResize: this.onResize,
|
|
4284
|
-
onResizeStop:
|
|
4284
|
+
onResizeStop: d,
|
|
4285
4285
|
resizeHandles: A,
|
|
4286
4286
|
transformScale: B,
|
|
4287
4287
|
width: this.state.width
|
|
4288
|
-
}, /* @__PURE__ */ ht.createElement("div",
|
|
4288
|
+
}, /* @__PURE__ */ ht.createElement("div", wt({}, W, {
|
|
4289
4289
|
style: Ue(Ue({}, $), {}, {
|
|
4290
4290
|
width: this.state.width + "px",
|
|
4291
4291
|
height: this.state.height + "px"
|
|
@@ -4297,20 +4297,20 @@ Ze.default = Ir;
|
|
|
4297
4297
|
Ir.propTypes = Ue(Ue({}, ca.resizableProps), {}, {
|
|
4298
4298
|
children: sa.default.element
|
|
4299
4299
|
});
|
|
4300
|
-
|
|
4300
|
+
Dt.exports = function() {
|
|
4301
4301
|
throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
|
|
4302
4302
|
};
|
|
4303
|
-
|
|
4304
|
-
var ya =
|
|
4303
|
+
Dt.exports.Resizable = ze.default;
|
|
4304
|
+
var ya = Dt.exports.ResizableBox = Ze.default;
|
|
4305
4305
|
const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
4306
|
-
const [n, o] =
|
|
4306
|
+
const [n, o] = ue({
|
|
4307
4307
|
width: e.attrs.width || 300,
|
|
4308
4308
|
height: e.attrs.height || 300
|
|
4309
|
-
}), [a,
|
|
4309
|
+
}), [a, l] = ue({
|
|
4310
4310
|
left: e.attrs.marginLeft || 0,
|
|
4311
4311
|
right: e.attrs.marginRight || 0
|
|
4312
|
-
}), [u,
|
|
4313
|
-
|
|
4312
|
+
}), [u, d] = ue(e.attrs.src || ""), p = sn(null);
|
|
4313
|
+
vt(() => {
|
|
4314
4314
|
if (e.attrs.src && p.current) {
|
|
4315
4315
|
const S = new Image();
|
|
4316
4316
|
S.onload = () => {
|
|
@@ -4340,11 +4340,11 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4340
4340
|
}, O = (S) => {
|
|
4341
4341
|
S.preventDefault();
|
|
4342
4342
|
};
|
|
4343
|
-
return /* @__PURE__ */
|
|
4343
|
+
return /* @__PURE__ */ s.jsxDEV(yr, { className: "image-wrapper", children: /* @__PURE__ */ s.jsxDEV(
|
|
4344
4344
|
Sr,
|
|
4345
4345
|
{
|
|
4346
4346
|
title: "Image",
|
|
4347
|
-
childrenContent: /* @__PURE__ */
|
|
4347
|
+
childrenContent: /* @__PURE__ */ s.jsxDEV(
|
|
4348
4348
|
"div",
|
|
4349
4349
|
{
|
|
4350
4350
|
className: "relative",
|
|
@@ -4353,7 +4353,7 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4353
4353
|
marginRight: a.right
|
|
4354
4354
|
},
|
|
4355
4355
|
onContextMenu: O,
|
|
4356
|
-
children: r.isEditable ? /* @__PURE__ */
|
|
4356
|
+
children: r.isEditable ? /* @__PURE__ */ s.jsxDEV(
|
|
4357
4357
|
ya,
|
|
4358
4358
|
{
|
|
4359
4359
|
width: n.width,
|
|
@@ -4363,7 +4363,7 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4363
4363
|
maxConstraints: [800, 800],
|
|
4364
4364
|
lockAspectRatio: !0,
|
|
4365
4365
|
className: "relative",
|
|
4366
|
-
children: /* @__PURE__ */
|
|
4366
|
+
children: /* @__PURE__ */ s.jsxDEV(
|
|
4367
4367
|
"img",
|
|
4368
4368
|
{
|
|
4369
4369
|
ref: p,
|
|
@@ -4390,7 +4390,7 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4390
4390
|
columnNumber: 29
|
|
4391
4391
|
},
|
|
4392
4392
|
void 0
|
|
4393
|
-
) : /* @__PURE__ */
|
|
4393
|
+
) : /* @__PURE__ */ s.jsxDEV(
|
|
4394
4394
|
"img",
|
|
4395
4395
|
{
|
|
4396
4396
|
ref: p,
|
|
@@ -4423,19 +4423,19 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4423
4423
|
void 0
|
|
4424
4424
|
),
|
|
4425
4425
|
editable: r.isEditable,
|
|
4426
|
-
childrenEdit: /* @__PURE__ */
|
|
4427
|
-
/* @__PURE__ */
|
|
4428
|
-
/* @__PURE__ */
|
|
4426
|
+
childrenEdit: /* @__PURE__ */ s.jsxDEV("div", { className: "space-y-4", children: [
|
|
4427
|
+
/* @__PURE__ */ s.jsxDEV("div", { children: [
|
|
4428
|
+
/* @__PURE__ */ s.jsxDEV("label", { className: "block text-sm font-medium", children: "Image URL" }, void 0, !1, {
|
|
4429
4429
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4430
4430
|
lineNumber: 116,
|
|
4431
4431
|
columnNumber: 29
|
|
4432
4432
|
}, void 0),
|
|
4433
|
-
/* @__PURE__ */
|
|
4433
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
4434
4434
|
"input",
|
|
4435
4435
|
{
|
|
4436
4436
|
type: "text",
|
|
4437
4437
|
value: u,
|
|
4438
|
-
onChange: (S) =>
|
|
4438
|
+
onChange: (S) => d(S.target.value),
|
|
4439
4439
|
className: "w-full p-2 border rounded",
|
|
4440
4440
|
disabled: !r.isEditable
|
|
4441
4441
|
},
|
|
@@ -4453,14 +4453,14 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4453
4453
|
lineNumber: 115,
|
|
4454
4454
|
columnNumber: 25
|
|
4455
4455
|
}, void 0),
|
|
4456
|
-
/* @__PURE__ */
|
|
4457
|
-
/* @__PURE__ */
|
|
4458
|
-
/* @__PURE__ */
|
|
4456
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex gap-2", children: [
|
|
4457
|
+
/* @__PURE__ */ s.jsxDEV("div", { children: [
|
|
4458
|
+
/* @__PURE__ */ s.jsxDEV("label", { className: "block text-sm font-medium", children: "Width" }, void 0, !1, {
|
|
4459
4459
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4460
4460
|
lineNumber: 128,
|
|
4461
4461
|
columnNumber: 33
|
|
4462
4462
|
}, void 0),
|
|
4463
|
-
/* @__PURE__ */
|
|
4463
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
4464
4464
|
"input",
|
|
4465
4465
|
{
|
|
4466
4466
|
type: "number",
|
|
@@ -4483,13 +4483,13 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4483
4483
|
lineNumber: 127,
|
|
4484
4484
|
columnNumber: 29
|
|
4485
4485
|
}, void 0),
|
|
4486
|
-
/* @__PURE__ */
|
|
4487
|
-
/* @__PURE__ */
|
|
4486
|
+
/* @__PURE__ */ s.jsxDEV("div", { children: [
|
|
4487
|
+
/* @__PURE__ */ s.jsxDEV("label", { className: "block text-sm font-medium", children: "Height" }, void 0, !1, {
|
|
4488
4488
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4489
4489
|
lineNumber: 138,
|
|
4490
4490
|
columnNumber: 33
|
|
4491
4491
|
}, void 0),
|
|
4492
|
-
/* @__PURE__ */
|
|
4492
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
4493
4493
|
"input",
|
|
4494
4494
|
{
|
|
4495
4495
|
type: "number",
|
|
@@ -4517,19 +4517,19 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4517
4517
|
lineNumber: 126,
|
|
4518
4518
|
columnNumber: 25
|
|
4519
4519
|
}, void 0),
|
|
4520
|
-
/* @__PURE__ */
|
|
4521
|
-
/* @__PURE__ */
|
|
4522
|
-
/* @__PURE__ */
|
|
4520
|
+
/* @__PURE__ */ s.jsxDEV("div", { className: "flex gap-2", children: [
|
|
4521
|
+
/* @__PURE__ */ s.jsxDEV("div", { children: [
|
|
4522
|
+
/* @__PURE__ */ s.jsxDEV("label", { className: "block text-sm font-medium", children: "Margin Left" }, void 0, !1, {
|
|
4523
4523
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4524
4524
|
lineNumber: 151,
|
|
4525
4525
|
columnNumber: 33
|
|
4526
4526
|
}, void 0),
|
|
4527
|
-
/* @__PURE__ */
|
|
4527
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
4528
4528
|
"input",
|
|
4529
4529
|
{
|
|
4530
4530
|
type: "number",
|
|
4531
4531
|
value: a.left,
|
|
4532
|
-
onChange: (S) =>
|
|
4532
|
+
onChange: (S) => l({ ...a, left: Number(S.target.value) }),
|
|
4533
4533
|
className: "w-full p-2 border rounded",
|
|
4534
4534
|
disabled: !r.isEditable
|
|
4535
4535
|
},
|
|
@@ -4547,18 +4547,18 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4547
4547
|
lineNumber: 150,
|
|
4548
4548
|
columnNumber: 29
|
|
4549
4549
|
}, void 0),
|
|
4550
|
-
/* @__PURE__ */
|
|
4551
|
-
/* @__PURE__ */
|
|
4550
|
+
/* @__PURE__ */ s.jsxDEV("div", { children: [
|
|
4551
|
+
/* @__PURE__ */ s.jsxDEV("label", { className: "block text-sm font-medium", children: "Margin Right" }, void 0, !1, {
|
|
4552
4552
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4553
4553
|
lineNumber: 161,
|
|
4554
4554
|
columnNumber: 33
|
|
4555
4555
|
}, void 0),
|
|
4556
|
-
/* @__PURE__ */
|
|
4556
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
4557
4557
|
"input",
|
|
4558
4558
|
{
|
|
4559
4559
|
type: "number",
|
|
4560
4560
|
value: a.right,
|
|
4561
|
-
onChange: (S) =>
|
|
4561
|
+
onChange: (S) => l({ ...a, right: Number(S.target.value) }),
|
|
4562
4562
|
className: "w-full p-2 border rounded",
|
|
4563
4563
|
disabled: !r.isEditable
|
|
4564
4564
|
},
|
|
@@ -4581,7 +4581,7 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4581
4581
|
lineNumber: 149,
|
|
4582
4582
|
columnNumber: 25
|
|
4583
4583
|
}, void 0),
|
|
4584
|
-
/* @__PURE__ */
|
|
4584
|
+
/* @__PURE__ */ s.jsxDEV(
|
|
4585
4585
|
"button",
|
|
4586
4586
|
{
|
|
4587
4587
|
onClick: v,
|
|
@@ -4663,9 +4663,9 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4663
4663
|
}
|
|
4664
4664
|
}), xa = [
|
|
4665
4665
|
pn.configure({
|
|
4666
|
-
types: [
|
|
4666
|
+
types: [Bt.name, mn.name]
|
|
4667
4667
|
}),
|
|
4668
|
-
|
|
4668
|
+
Bt,
|
|
4669
4669
|
hn.configure({ multicolor: !0 }),
|
|
4670
4670
|
bn.configure({
|
|
4671
4671
|
bulletList: {
|
|
@@ -4711,33 +4711,38 @@ const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
|
4711
4711
|
editable: o = !0,
|
|
4712
4712
|
onChange: a
|
|
4713
4713
|
}) => {
|
|
4714
|
-
const
|
|
4714
|
+
const [l, u] = ue(!1);
|
|
4715
|
+
vt(() => {
|
|
4716
|
+
u(!0);
|
|
4717
|
+
}, []);
|
|
4718
|
+
const d = cn({
|
|
4715
4719
|
extensions: xa,
|
|
4716
4720
|
content: e,
|
|
4717
4721
|
editable: o,
|
|
4718
|
-
onUpdate: ({ editor:
|
|
4719
|
-
a && a(
|
|
4722
|
+
onUpdate: ({ editor: p }) => {
|
|
4723
|
+
a && a(p.getHTML());
|
|
4720
4724
|
}
|
|
4721
4725
|
});
|
|
4722
|
-
return
|
|
4723
|
-
|
|
4724
|
-
}, [
|
|
4725
|
-
t && /* @__PURE__ */
|
|
4726
|
+
return vt(() => {
|
|
4727
|
+
d && e !== d.getHTML() && d.commands.setContent(e, !1);
|
|
4728
|
+
}, [d, e]), !l || !d ? null : /* @__PURE__ */ s.jsxDEV("div", { className: `cyber-editor-container ${r}`, children: [
|
|
4729
|
+
t && /* @__PURE__ */ s.jsxDEV(Ui, { editor: d }, void 0, !1, {
|
|
4726
4730
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
|
|
4727
|
-
lineNumber:
|
|
4731
|
+
lineNumber: 42,
|
|
4728
4732
|
columnNumber: 28
|
|
4729
4733
|
}, void 0),
|
|
4730
|
-
/* @__PURE__ */
|
|
4734
|
+
/* @__PURE__ */ s.jsxDEV(un, { editor: d, className: n }, void 0, !1, {
|
|
4731
4735
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
|
|
4732
|
-
lineNumber:
|
|
4736
|
+
lineNumber: 43,
|
|
4733
4737
|
columnNumber: 13
|
|
4734
4738
|
}, void 0)
|
|
4735
4739
|
] }, void 0, !0, {
|
|
4736
4740
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
|
|
4737
|
-
lineNumber:
|
|
4741
|
+
lineNumber: 41,
|
|
4738
4742
|
columnNumber: 9
|
|
4739
|
-
}, void 0)
|
|
4743
|
+
}, void 0);
|
|
4740
4744
|
};
|
|
4741
4745
|
export {
|
|
4742
4746
|
qa as CyberEditorProvider
|
|
4743
4747
|
};
|
|
4748
|
+
//# sourceMappingURL=cyber-editor.es.js.map
|