@cyberskill/cyber-editor 2.0.4 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cyber-editor.es.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import _e, { forwardRef as
|
|
2
|
-
import {
|
|
3
|
-
import { ColorPicker as
|
|
4
|
-
import
|
|
5
|
-
import { Color as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
1
|
+
import _e, { forwardRef as br, createElement as yt, useState as he, useRef as sn, useEffect as hr } from "react";
|
|
2
|
+
import { NodeViewWrapper as yr, NodeViewContent as ln, ReactNodeViewRenderer as vr, useEditor as cn, EditorContent as un } from "@tiptap/react";
|
|
3
|
+
import { ColorPicker as dn, Tooltip as vt, Dropdown as Ct, Menu as Ft, Modal as fn } from "antd";
|
|
4
|
+
import mn from "@tiptap/extension-list-item";
|
|
5
|
+
import { Color as pn } from "@tiptap/extension-color";
|
|
6
|
+
import Ut from "@tiptap/extension-text-style";
|
|
7
|
+
import bn from "@tiptap/starter-kit";
|
|
8
|
+
import hn from "@tiptap/extension-highlight";
|
|
9
|
+
import yn from "@tiptap/extension-underline";
|
|
10
|
+
import vn from "@tiptap/extension-subscript";
|
|
11
|
+
import gn from "@tiptap/extension-superscript";
|
|
12
|
+
import xn from "@tiptap/extension-text-align";
|
|
13
|
+
import Nn from "@tiptap/extension-task-list";
|
|
14
|
+
import En from "@tiptap/extension-task-item";
|
|
15
|
+
import Sn from "@tiptap/extension-table";
|
|
16
|
+
import wn from "@tiptap/extension-table-row";
|
|
17
|
+
import Cn from "@tiptap/extension-table-header";
|
|
18
|
+
import kn from "@tiptap/extension-table-cell";
|
|
19
19
|
import { Node as gr, mergeAttributes as xr } from "@tiptap/core";
|
|
20
|
-
import
|
|
20
|
+
import Dn from "@tiptap/extension-image";
|
|
21
21
|
import Nr from "react-dom";
|
|
22
|
-
function
|
|
22
|
+
function _n(e) {
|
|
23
23
|
if (e.__esModule) return e;
|
|
24
24
|
var t = e.default;
|
|
25
25
|
if (typeof t == "function") {
|
|
@@ -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
|
|
52
|
-
function
|
|
53
|
-
if (
|
|
54
|
-
|
|
51
|
+
var Bt;
|
|
52
|
+
function On() {
|
|
53
|
+
if (Bt) return Le;
|
|
54
|
+
Bt = 1;
|
|
55
55
|
var e = Symbol.for("react.fragment");
|
|
56
56
|
return Le.Fragment = e, Le.jsxDEV = void 0, Le;
|
|
57
57
|
}
|
|
@@ -65,10 +65,10 @@ var We = {};
|
|
|
65
65
|
* This source code is licensed under the MIT license found in the
|
|
66
66
|
* LICENSE file in the root directory of this source tree.
|
|
67
67
|
*/
|
|
68
|
-
var
|
|
69
|
-
function
|
|
70
|
-
return
|
|
71
|
-
var e = _e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"),
|
|
68
|
+
var Xt;
|
|
69
|
+
function Rn() {
|
|
70
|
+
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
71
|
+
var e = _e, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), A = Symbol.iterator, $ = "@@iterator";
|
|
72
72
|
function B(i) {
|
|
73
73
|
if (i === null || typeof i != "object")
|
|
74
74
|
return null;
|
|
@@ -76,38 +76,38 @@ function Pn() {
|
|
|
76
76
|
return typeof d == "function" ? d : null;
|
|
77
77
|
}
|
|
78
78
|
var W = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
79
|
-
function
|
|
79
|
+
function g(i) {
|
|
80
80
|
{
|
|
81
|
-
for (var d = arguments.length,
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
for (var d = arguments.length, h = new Array(d > 1 ? d - 1 : 0), w = 1; w < d; w++)
|
|
82
|
+
h[w - 1] = arguments[w];
|
|
83
|
+
N("error", i, h);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function N(i, d, h) {
|
|
87
87
|
{
|
|
88
88
|
var w = W.ReactDebugCurrentFrame, q = w.getStackAddendum();
|
|
89
|
-
q !== "" && (d += "%s",
|
|
90
|
-
var X =
|
|
89
|
+
q !== "" && (d += "%s", h = h.concat([q]));
|
|
90
|
+
var X = h.map(function(I) {
|
|
91
91
|
return String(I);
|
|
92
92
|
});
|
|
93
93
|
X.unshift("Warning: " + d), Function.prototype.apply.call(console[i], console, X);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
var E = !1, c = !1, Y = !1,
|
|
96
|
+
var E = !1, c = !1, Y = !1, T = !1, Q = !1, de;
|
|
97
97
|
de = Symbol.for("react.module.reference");
|
|
98
98
|
function fe(i) {
|
|
99
|
-
return !!(typeof i == "string" || typeof i == "function" || i === n || i === a || Q || i === o || i === p || i ===
|
|
99
|
+
return !!(typeof i == "string" || typeof i == "function" || i === n || i === a || Q || i === o || i === p || i === y || T || i === S || E || c || Y || typeof i == "object" && i !== null && (i.$$typeof === O || i.$$typeof === v || i.$$typeof === s || i.$$typeof === u || i.$$typeof === m || // This needs to include all possible module reference object
|
|
100
100
|
// types supported by any Flight configuration anywhere since
|
|
101
101
|
// we don't know which Flight build this will end up being used
|
|
102
102
|
// with.
|
|
103
103
|
i.$$typeof === de || i.getModuleId !== void 0));
|
|
104
104
|
}
|
|
105
|
-
function ye(i, d,
|
|
105
|
+
function ye(i, d, h) {
|
|
106
106
|
var w = i.displayName;
|
|
107
107
|
if (w)
|
|
108
108
|
return w;
|
|
109
109
|
var q = d.displayName || d.name || "";
|
|
110
|
-
return q !== "" ?
|
|
110
|
+
return q !== "" ? h + "(" + q + ")" : h;
|
|
111
111
|
}
|
|
112
112
|
function Ee(i) {
|
|
113
113
|
return i.displayName || "Context";
|
|
@@ -115,7 +115,7 @@ function Pn() {
|
|
|
115
115
|
function ee(i) {
|
|
116
116
|
if (i == null)
|
|
117
117
|
return null;
|
|
118
|
-
if (typeof i.tag == "number" &&
|
|
118
|
+
if (typeof i.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
|
|
119
119
|
return i.displayName || i.name || null;
|
|
120
120
|
if (typeof i == "string")
|
|
121
121
|
return i;
|
|
@@ -130,7 +130,7 @@ function Pn() {
|
|
|
130
130
|
return "StrictMode";
|
|
131
131
|
case p:
|
|
132
132
|
return "Suspense";
|
|
133
|
-
case
|
|
133
|
+
case y:
|
|
134
134
|
return "SuspenseList";
|
|
135
135
|
}
|
|
136
136
|
if (typeof i == "object")
|
|
@@ -139,11 +139,11 @@ function Pn() {
|
|
|
139
139
|
var d = i;
|
|
140
140
|
return Ee(d) + ".Consumer";
|
|
141
141
|
case s:
|
|
142
|
-
var
|
|
143
|
-
return Ee(
|
|
142
|
+
var h = i;
|
|
143
|
+
return Ee(h._context) + ".Provider";
|
|
144
144
|
case m:
|
|
145
145
|
return ye(i, i.render, "ForwardRef");
|
|
146
|
-
case
|
|
146
|
+
case v:
|
|
147
147
|
var w = i.displayName || null;
|
|
148
148
|
return w !== null ? w : ee(i.type) || "Memo";
|
|
149
149
|
case O: {
|
|
@@ -157,14 +157,14 @@ function Pn() {
|
|
|
157
157
|
}
|
|
158
158
|
return null;
|
|
159
159
|
}
|
|
160
|
-
var Z = Object.assign, me = 0, oe, le, ge, Se, f,
|
|
160
|
+
var Z = Object.assign, me = 0, oe, le, ge, Se, f, x, P;
|
|
161
161
|
function R() {
|
|
162
162
|
}
|
|
163
163
|
R.__reactDisabledLog = !0;
|
|
164
164
|
function C() {
|
|
165
165
|
{
|
|
166
166
|
if (me === 0) {
|
|
167
|
-
oe = console.log, le = console.info, ge = console.warn, Se = console.error, f = console.group,
|
|
167
|
+
oe = console.log, le = console.info, ge = console.warn, Se = console.error, f = console.group, x = console.groupCollapsed, P = console.groupEnd;
|
|
168
168
|
var i = {
|
|
169
169
|
configurable: !0,
|
|
170
170
|
enumerable: !0,
|
|
@@ -209,18 +209,18 @@ function Pn() {
|
|
|
209
209
|
value: f
|
|
210
210
|
}),
|
|
211
211
|
groupCollapsed: Z({}, i, {
|
|
212
|
-
value:
|
|
212
|
+
value: x
|
|
213
213
|
}),
|
|
214
214
|
groupEnd: Z({}, i, {
|
|
215
|
-
value:
|
|
215
|
+
value: P
|
|
216
216
|
})
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
me < 0 &&
|
|
219
|
+
me < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
var k = W.ReactCurrentDispatcher, _;
|
|
223
|
-
function j(i, d,
|
|
223
|
+
function j(i, d, h) {
|
|
224
224
|
{
|
|
225
225
|
if (_ === void 0)
|
|
226
226
|
try {
|
|
@@ -238,13 +238,13 @@ function Pn() {
|
|
|
238
238
|
var te = typeof WeakMap == "function" ? WeakMap : Map;
|
|
239
239
|
M = new te();
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function b(i, d) {
|
|
242
242
|
if (!i || H)
|
|
243
243
|
return "";
|
|
244
244
|
{
|
|
245
|
-
var
|
|
246
|
-
if (
|
|
247
|
-
return
|
|
245
|
+
var h = M.get(i);
|
|
246
|
+
if (h !== void 0)
|
|
247
|
+
return h;
|
|
248
248
|
}
|
|
249
249
|
var w;
|
|
250
250
|
H = !0;
|
|
@@ -306,54 +306,54 @@ function Pn() {
|
|
|
306
306
|
} finally {
|
|
307
307
|
H = !1, k.current = X, z(), Error.prepareStackTrace = q;
|
|
308
308
|
}
|
|
309
|
-
var
|
|
309
|
+
var Pe = i ? i.displayName || i.name : "", De = Pe ? j(Pe) : "";
|
|
310
310
|
return typeof i == "function" && M.set(i, De), De;
|
|
311
311
|
}
|
|
312
|
-
function pe(i, d,
|
|
313
|
-
return
|
|
312
|
+
function pe(i, d, h) {
|
|
313
|
+
return b(i, !1);
|
|
314
314
|
}
|
|
315
315
|
function Re(i) {
|
|
316
316
|
var d = i.prototype;
|
|
317
317
|
return !!(d && d.isReactComponent);
|
|
318
318
|
}
|
|
319
|
-
function ke(i, d,
|
|
319
|
+
function ke(i, d, h) {
|
|
320
320
|
if (i == null)
|
|
321
321
|
return "";
|
|
322
322
|
if (typeof i == "function")
|
|
323
|
-
return
|
|
323
|
+
return b(i, Re(i));
|
|
324
324
|
if (typeof i == "string")
|
|
325
325
|
return j(i);
|
|
326
326
|
switch (i) {
|
|
327
327
|
case p:
|
|
328
328
|
return j("Suspense");
|
|
329
|
-
case
|
|
329
|
+
case y:
|
|
330
330
|
return j("SuspenseList");
|
|
331
331
|
}
|
|
332
332
|
if (typeof i == "object")
|
|
333
333
|
switch (i.$$typeof) {
|
|
334
334
|
case m:
|
|
335
335
|
return pe(i.render);
|
|
336
|
-
case
|
|
337
|
-
return ke(i.type, d,
|
|
336
|
+
case v:
|
|
337
|
+
return ke(i.type, d, h);
|
|
338
338
|
case O: {
|
|
339
339
|
var w = i, q = w._payload, X = w._init;
|
|
340
340
|
try {
|
|
341
|
-
return ke(X(q), d,
|
|
341
|
+
return ke(X(q), d, h);
|
|
342
342
|
} catch {
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
return "";
|
|
347
347
|
}
|
|
348
|
-
var Me = Object.prototype.hasOwnProperty,
|
|
348
|
+
var Me = Object.prototype.hasOwnProperty, jt = {}, Mt = W.ReactDebugCurrentFrame;
|
|
349
349
|
function He(i) {
|
|
350
350
|
if (i) {
|
|
351
|
-
var d = i._owner,
|
|
352
|
-
|
|
351
|
+
var d = i._owner, h = ke(i.type, i._source, d ? d.type : null);
|
|
352
|
+
Mt.setExtraStackFrame(h);
|
|
353
353
|
} else
|
|
354
|
-
|
|
354
|
+
Mt.setExtraStackFrame(null);
|
|
355
355
|
}
|
|
356
|
-
function Hr(i, d,
|
|
356
|
+
function Hr(i, d, h, w, q) {
|
|
357
357
|
{
|
|
358
358
|
var X = Function.call.bind(Me);
|
|
359
359
|
for (var I in i)
|
|
@@ -361,14 +361,14 @@ function Pn() {
|
|
|
361
361
|
var V = void 0;
|
|
362
362
|
try {
|
|
363
363
|
if (typeof i[I] != "function") {
|
|
364
|
-
var ne = Error((w || "React class") + ": " +
|
|
364
|
+
var ne = Error((w || "React class") + ": " + h + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
365
365
|
throw ne.name = "Invariant Violation", ne;
|
|
366
366
|
}
|
|
367
|
-
V = i[I](d, I, w,
|
|
367
|
+
V = i[I](d, I, w, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
368
368
|
} catch (G) {
|
|
369
369
|
V = G;
|
|
370
370
|
}
|
|
371
|
-
V && !(V instanceof Error) && (He(q),
|
|
371
|
+
V && !(V instanceof Error) && (He(q), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", h, I, typeof V), He(null)), V instanceof Error && !(V.message in jt) && (jt[V.message] = !0, He(q), g("Failed %s type: %s", h, V.message), He(null));
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
}
|
|
@@ -378,32 +378,32 @@ function Pn() {
|
|
|
378
378
|
}
|
|
379
379
|
function Wr(i) {
|
|
380
380
|
{
|
|
381
|
-
var d = typeof Symbol == "function" && Symbol.toStringTag,
|
|
382
|
-
return
|
|
381
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, h = d && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
382
|
+
return h;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
function qr(i) {
|
|
386
386
|
try {
|
|
387
|
-
return
|
|
387
|
+
return Vt(i), !1;
|
|
388
388
|
} catch {
|
|
389
389
|
return !0;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Vt(i) {
|
|
393
393
|
return "" + i;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function At(i) {
|
|
396
396
|
if (qr(i))
|
|
397
|
-
return
|
|
397
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wr(i)), Vt(i);
|
|
398
398
|
}
|
|
399
399
|
var Ve = W.ReactCurrentOwner, Yr = {
|
|
400
400
|
key: !0,
|
|
401
401
|
ref: !0,
|
|
402
402
|
__self: !0,
|
|
403
403
|
__source: !0
|
|
404
|
-
},
|
|
404
|
+
}, $t, zt, et;
|
|
405
405
|
et = {};
|
|
406
|
-
function
|
|
406
|
+
function Fr(i) {
|
|
407
407
|
if (Me.call(i, "ref")) {
|
|
408
408
|
var d = Object.getOwnPropertyDescriptor(i, "ref").get;
|
|
409
409
|
if (d && d.isReactWarning)
|
|
@@ -411,7 +411,7 @@ function Pn() {
|
|
|
411
411
|
}
|
|
412
412
|
return i.ref !== void 0;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Ur(i) {
|
|
415
415
|
if (Me.call(i, "key")) {
|
|
416
416
|
var d = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
417
417
|
if (d && d.isReactWarning)
|
|
@@ -421,40 +421,40 @@ function Pn() {
|
|
|
421
421
|
}
|
|
422
422
|
function Br(i, d) {
|
|
423
423
|
if (typeof i.ref == "string" && Ve.current && d && Ve.current.stateNode !== d) {
|
|
424
|
-
var
|
|
425
|
-
et[
|
|
424
|
+
var h = ee(Ve.current.type);
|
|
425
|
+
et[h] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ee(Ve.current.type), i.ref), et[h] = !0);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
function Xr(i, d) {
|
|
429
429
|
{
|
|
430
|
-
var
|
|
431
|
-
|
|
430
|
+
var h = function() {
|
|
431
|
+
$t || ($t = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
432
432
|
};
|
|
433
|
-
|
|
434
|
-
get:
|
|
433
|
+
h.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
434
|
+
get: h,
|
|
435
435
|
configurable: !0
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
function Kr(i, d) {
|
|
440
440
|
{
|
|
441
|
-
var
|
|
442
|
-
|
|
441
|
+
var h = function() {
|
|
442
|
+
zt || (zt = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
443
443
|
};
|
|
444
|
-
|
|
445
|
-
get:
|
|
444
|
+
h.isReactWarning = !0, Object.defineProperty(i, "ref", {
|
|
445
|
+
get: h,
|
|
446
446
|
configurable: !0
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
var Gr = function(i, d,
|
|
450
|
+
var Gr = function(i, d, h, w, q, X, I) {
|
|
451
451
|
var V = {
|
|
452
452
|
// This tag allows us to uniquely identify this as a React Element
|
|
453
453
|
$$typeof: t,
|
|
454
454
|
// Built-in properties that belong on the element
|
|
455
455
|
type: i,
|
|
456
456
|
key: d,
|
|
457
|
-
ref:
|
|
457
|
+
ref: h,
|
|
458
458
|
props: I,
|
|
459
459
|
// Record the component responsible for creating this element.
|
|
460
460
|
_owner: X
|
|
@@ -476,10 +476,10 @@ function Pn() {
|
|
|
476
476
|
value: q
|
|
477
477
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
478
478
|
};
|
|
479
|
-
function Jr(i, d,
|
|
479
|
+
function Jr(i, d, h, w, q) {
|
|
480
480
|
{
|
|
481
481
|
var X, I = {}, V = null, ne = null;
|
|
482
|
-
|
|
482
|
+
h !== void 0 && (At(h), V = "" + h), Ur(d) && (At(d.key), V = "" + d.key), Fr(d) && (ne = d.ref, Br(d, q));
|
|
483
483
|
for (X in d)
|
|
484
484
|
Me.call(d, X) && !Yr.hasOwnProperty(X) && (I[X] = d[X]);
|
|
485
485
|
if (i && i.defaultProps) {
|
|
@@ -494,20 +494,20 @@ function Pn() {
|
|
|
494
494
|
return Gr(i, V, ne, q, w, Ve.current, I);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
var tt = W.ReactCurrentOwner,
|
|
498
|
-
function
|
|
497
|
+
var tt = W.ReactCurrentOwner, It = W.ReactDebugCurrentFrame;
|
|
498
|
+
function Te(i) {
|
|
499
499
|
if (i) {
|
|
500
|
-
var d = i._owner,
|
|
501
|
-
|
|
500
|
+
var d = i._owner, h = ke(i.type, i._source, d ? d.type : null);
|
|
501
|
+
It.setExtraStackFrame(h);
|
|
502
502
|
} else
|
|
503
|
-
|
|
503
|
+
It.setExtraStackFrame(null);
|
|
504
504
|
}
|
|
505
505
|
var rt;
|
|
506
506
|
rt = !1;
|
|
507
507
|
function nt(i) {
|
|
508
508
|
return typeof i == "object" && i !== null && i.$$typeof === t;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Ht() {
|
|
511
511
|
{
|
|
512
512
|
if (tt.current) {
|
|
513
513
|
var i = ee(tt.current.type);
|
|
@@ -522,48 +522,48 @@ Check the render method of \`` + i + "`.";
|
|
|
522
522
|
function Zr(i) {
|
|
523
523
|
{
|
|
524
524
|
if (i !== void 0) {
|
|
525
|
-
var d = i.fileName.replace(/^.*[\\\/]/, ""),
|
|
525
|
+
var d = i.fileName.replace(/^.*[\\\/]/, ""), h = i.lineNumber;
|
|
526
526
|
return `
|
|
527
527
|
|
|
528
|
-
Check your code at ` + d + ":" +
|
|
528
|
+
Check your code at ` + d + ":" + h + ".";
|
|
529
529
|
}
|
|
530
530
|
return "";
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
var
|
|
533
|
+
var Lt = {};
|
|
534
534
|
function Qr(i) {
|
|
535
535
|
{
|
|
536
|
-
var d =
|
|
536
|
+
var d = Ht();
|
|
537
537
|
if (!d) {
|
|
538
|
-
var
|
|
539
|
-
|
|
538
|
+
var h = typeof i == "string" ? i : i.displayName || i.name;
|
|
539
|
+
h && (d = `
|
|
540
540
|
|
|
541
|
-
Check the top-level render call using <` +
|
|
541
|
+
Check the top-level render call using <` + h + ">.");
|
|
542
542
|
}
|
|
543
543
|
return d;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function Wt(i, d) {
|
|
547
547
|
{
|
|
548
548
|
if (!i._store || i._store.validated || i.key != null)
|
|
549
549
|
return;
|
|
550
550
|
i._store.validated = !0;
|
|
551
|
-
var
|
|
552
|
-
if (
|
|
551
|
+
var h = Qr(d);
|
|
552
|
+
if (Lt[h])
|
|
553
553
|
return;
|
|
554
|
-
|
|
554
|
+
Lt[h] = !0;
|
|
555
555
|
var w = "";
|
|
556
|
-
i && i._owner && i._owner !== tt.current && (w = " It was passed a child from " + ee(i._owner.type) + "."),
|
|
556
|
+
i && i._owner && i._owner !== tt.current && (w = " It was passed a child from " + ee(i._owner.type) + "."), Te(i), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, w), Te(null);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function qt(i, d) {
|
|
560
560
|
{
|
|
561
561
|
if (typeof i != "object")
|
|
562
562
|
return;
|
|
563
563
|
if (Qe(i))
|
|
564
|
-
for (var
|
|
565
|
-
var w = i[
|
|
566
|
-
nt(w) &&
|
|
564
|
+
for (var h = 0; h < i.length; h++) {
|
|
565
|
+
var w = i[h];
|
|
566
|
+
nt(w) && Wt(w, d);
|
|
567
567
|
}
|
|
568
568
|
else if (nt(i))
|
|
569
569
|
i._store && (i._store.validated = !0);
|
|
@@ -571,7 +571,7 @@ Check the top-level render call using <` + y + ">.");
|
|
|
571
571
|
var q = B(i);
|
|
572
572
|
if (typeof q == "function" && q !== i.entries)
|
|
573
573
|
for (var X = q.call(i), I; !(I = X.next()).done; )
|
|
574
|
-
nt(I.value) &&
|
|
574
|
+
nt(I.value) && Wt(I.value, d);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
}
|
|
@@ -580,51 +580,51 @@ Check the top-level render call using <` + y + ">.");
|
|
|
580
580
|
var d = i.type;
|
|
581
581
|
if (d == null || typeof d == "string")
|
|
582
582
|
return;
|
|
583
|
-
var
|
|
583
|
+
var h;
|
|
584
584
|
if (typeof d == "function")
|
|
585
|
-
|
|
585
|
+
h = d.propTypes;
|
|
586
586
|
else if (typeof d == "object" && (d.$$typeof === m || // Note: Memo only checks outer props here.
|
|
587
587
|
// Inner props are checked in the reconciler.
|
|
588
|
-
d.$$typeof ===
|
|
589
|
-
|
|
588
|
+
d.$$typeof === v))
|
|
589
|
+
h = d.propTypes;
|
|
590
590
|
else
|
|
591
591
|
return;
|
|
592
|
-
if (
|
|
592
|
+
if (h) {
|
|
593
593
|
var w = ee(d);
|
|
594
|
-
Hr(
|
|
594
|
+
Hr(h, i.props, "prop", w, i);
|
|
595
595
|
} else if (d.PropTypes !== void 0 && !rt) {
|
|
596
596
|
rt = !0;
|
|
597
597
|
var q = ee(d);
|
|
598
|
-
|
|
598
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
|
|
599
599
|
}
|
|
600
|
-
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved &&
|
|
600
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
function tn(i) {
|
|
604
604
|
{
|
|
605
|
-
for (var d = Object.keys(i.props),
|
|
606
|
-
var w = d[
|
|
605
|
+
for (var d = Object.keys(i.props), h = 0; h < d.length; h++) {
|
|
606
|
+
var w = d[h];
|
|
607
607
|
if (w !== "children" && w !== "key") {
|
|
608
|
-
|
|
608
|
+
Te(i), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), Te(null);
|
|
609
609
|
break;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
i.ref !== null && (
|
|
612
|
+
i.ref !== null && (Te(i), g("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
var
|
|
616
|
-
function rn(i, d,
|
|
615
|
+
var Yt = {};
|
|
616
|
+
function rn(i, d, h, w, q, X) {
|
|
617
617
|
{
|
|
618
618
|
var I = fe(i);
|
|
619
619
|
if (!I) {
|
|
620
620
|
var V = "";
|
|
621
621
|
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
622
622
|
var ne = Zr(q);
|
|
623
|
-
ne ? V += ne : V +=
|
|
623
|
+
ne ? V += ne : V += Ht();
|
|
624
624
|
var G;
|
|
625
|
-
i === null ? G = "null" : Qe(i) ? G = "array" : i !== void 0 && i.$$typeof === t ? (G = "<" + (ee(i.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : G = typeof i,
|
|
625
|
+
i === null ? G = "null" : Qe(i) ? G = "array" : i !== void 0 && i.$$typeof === t ? (G = "<" + (ee(i.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : G = typeof i, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, V);
|
|
626
626
|
}
|
|
627
|
-
var J = Jr(i, d,
|
|
627
|
+
var J = Jr(i, d, h, q, X);
|
|
628
628
|
if (J == null)
|
|
629
629
|
return J;
|
|
630
630
|
if (I) {
|
|
@@ -632,26 +632,26 @@ Check the top-level render call using <` + y + ">.");
|
|
|
632
632
|
if (be !== void 0)
|
|
633
633
|
if (w)
|
|
634
634
|
if (Qe(be)) {
|
|
635
|
-
for (var
|
|
636
|
-
|
|
635
|
+
for (var Pe = 0; Pe < be.length; Pe++)
|
|
636
|
+
qt(be[Pe], i);
|
|
637
637
|
Object.freeze && Object.freeze(be);
|
|
638
638
|
} else
|
|
639
|
-
|
|
639
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
640
640
|
else
|
|
641
|
-
|
|
641
|
+
qt(be, i);
|
|
642
642
|
}
|
|
643
643
|
if (Me.call(d, "key")) {
|
|
644
644
|
var De = ee(i), ae = Object.keys(d).filter(function(an) {
|
|
645
645
|
return an !== "key";
|
|
646
646
|
}), it = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
647
|
-
if (!
|
|
647
|
+
if (!Yt[De + it]) {
|
|
648
648
|
var on = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
|
|
649
|
-
|
|
649
|
+
g(`A props object containing a "key" prop is being spread into JSX:
|
|
650
650
|
let props = %s;
|
|
651
651
|
<%s {...props} />
|
|
652
652
|
React keys must be passed directly to JSX without using spread:
|
|
653
653
|
let props = %s;
|
|
654
|
-
<%s key={someKey} {...props} />`, it, De, on, De),
|
|
654
|
+
<%s key={someKey} {...props} />`, it, De, on, De), Yt[De + it] = !0;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
return i === n ? tn(J) : en(J), J;
|
|
@@ -661,7 +661,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
661
661
|
We.Fragment = n, We.jsxDEV = nn;
|
|
662
662
|
}()), We;
|
|
663
663
|
}
|
|
664
|
-
process.env.NODE_ENV === "production" ? gt.exports =
|
|
664
|
+
process.env.NODE_ENV === "production" ? gt.exports = On() : gt.exports = Rn();
|
|
665
665
|
var l = gt.exports;
|
|
666
666
|
/**
|
|
667
667
|
* @license lucide-react v0.474.0 - ISC
|
|
@@ -676,7 +676,7 @@ const Tn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Er = (
|
|
|
676
676
|
* This source code is licensed under the ISC license.
|
|
677
677
|
* See the LICENSE file in the root directory of this source tree.
|
|
678
678
|
*/
|
|
679
|
-
var
|
|
679
|
+
var Pn = {
|
|
680
680
|
xmlns: "http://www.w3.org/2000/svg",
|
|
681
681
|
width: 24,
|
|
682
682
|
height: 24,
|
|
@@ -693,7 +693,7 @@ var jn = {
|
|
|
693
693
|
* This source code is licensed under the ISC license.
|
|
694
694
|
* See the LICENSE file in the root directory of this source tree.
|
|
695
695
|
*/
|
|
696
|
-
const
|
|
696
|
+
const jn = br(
|
|
697
697
|
({
|
|
698
698
|
color: e = "currentColor",
|
|
699
699
|
size: t = 24,
|
|
@@ -707,7 +707,7 @@ const Mn = hr(
|
|
|
707
707
|
"svg",
|
|
708
708
|
{
|
|
709
709
|
ref: m,
|
|
710
|
-
...
|
|
710
|
+
...Pn,
|
|
711
711
|
width: t,
|
|
712
712
|
height: t,
|
|
713
713
|
stroke: e,
|
|
@@ -716,7 +716,7 @@ const Mn = hr(
|
|
|
716
716
|
...u
|
|
717
717
|
},
|
|
718
718
|
[
|
|
719
|
-
...s.map(([p,
|
|
719
|
+
...s.map(([p, y]) => yt(p, y)),
|
|
720
720
|
...Array.isArray(a) ? a : [a]
|
|
721
721
|
]
|
|
722
722
|
)
|
|
@@ -728,8 +728,8 @@ const Mn = hr(
|
|
|
728
728
|
* See the LICENSE file in the root directory of this source tree.
|
|
729
729
|
*/
|
|
730
730
|
const L = (e, t) => {
|
|
731
|
-
const r =
|
|
732
|
-
({ className: n, ...o }, a) => yt(
|
|
731
|
+
const r = br(
|
|
732
|
+
({ className: n, ...o }, a) => yt(jn, {
|
|
733
733
|
ref: a,
|
|
734
734
|
iconNode: t,
|
|
735
735
|
className: Er(`lucide-${Tn(e)}`, n),
|
|
@@ -744,140 +744,140 @@ const L = (e, t) => {
|
|
|
744
744
|
* This source code is licensed under the ISC license.
|
|
745
745
|
* See the LICENSE file in the root directory of this source tree.
|
|
746
746
|
*/
|
|
747
|
-
const
|
|
747
|
+
const Mn = [
|
|
748
748
|
["path", { d: "M17 12H7", key: "16if0g" }],
|
|
749
749
|
["path", { d: "M19 18H5", key: "18s9l3" }],
|
|
750
750
|
["path", { d: "M21 6H3", key: "1jwq7v" }]
|
|
751
|
-
],
|
|
751
|
+
], Vn = L("AlignCenter", Mn);
|
|
752
752
|
/**
|
|
753
753
|
* @license lucide-react v0.474.0 - ISC
|
|
754
754
|
*
|
|
755
755
|
* This source code is licensed under the ISC license.
|
|
756
756
|
* See the LICENSE file in the root directory of this source tree.
|
|
757
757
|
*/
|
|
758
|
-
const
|
|
758
|
+
const An = [
|
|
759
759
|
["path", { d: "M3 12h18", key: "1i2n21" }],
|
|
760
760
|
["path", { d: "M3 18h18", key: "1h113x" }],
|
|
761
761
|
["path", { d: "M3 6h18", key: "d0wm0j" }]
|
|
762
|
-
],
|
|
762
|
+
], $n = L("AlignJustify", An);
|
|
763
763
|
/**
|
|
764
764
|
* @license lucide-react v0.474.0 - ISC
|
|
765
765
|
*
|
|
766
766
|
* This source code is licensed under the ISC license.
|
|
767
767
|
* See the LICENSE file in the root directory of this source tree.
|
|
768
768
|
*/
|
|
769
|
-
const
|
|
769
|
+
const zn = [
|
|
770
770
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
771
771
|
["path", { d: "M17 18H3", key: "1amg6g" }],
|
|
772
772
|
["path", { d: "M21 6H3", key: "1jwq7v" }]
|
|
773
|
-
],
|
|
773
|
+
], In = L("AlignLeft", zn);
|
|
774
774
|
/**
|
|
775
775
|
* @license lucide-react v0.474.0 - ISC
|
|
776
776
|
*
|
|
777
777
|
* This source code is licensed under the ISC license.
|
|
778
778
|
* See the LICENSE file in the root directory of this source tree.
|
|
779
779
|
*/
|
|
780
|
-
const
|
|
780
|
+
const Hn = [
|
|
781
781
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
782
782
|
["path", { d: "M21 18H7", key: "1ygte8" }],
|
|
783
783
|
["path", { d: "M21 6H3", key: "1jwq7v" }]
|
|
784
|
-
],
|
|
784
|
+
], Ln = L("AlignRight", Hn);
|
|
785
785
|
/**
|
|
786
786
|
* @license lucide-react v0.474.0 - ISC
|
|
787
787
|
*
|
|
788
788
|
* This source code is licensed under the ISC license.
|
|
789
789
|
* See the LICENSE file in the root directory of this source tree.
|
|
790
790
|
*/
|
|
791
|
-
const
|
|
791
|
+
const Wn = [
|
|
792
792
|
[
|
|
793
793
|
"path",
|
|
794
794
|
{ d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8", key: "mg9rjx" }
|
|
795
795
|
]
|
|
796
|
-
],
|
|
796
|
+
], qn = L("Bold", Wn);
|
|
797
797
|
/**
|
|
798
798
|
* @license lucide-react v0.474.0 - ISC
|
|
799
799
|
*
|
|
800
800
|
* This source code is licensed under the ISC license.
|
|
801
801
|
* See the LICENSE file in the root directory of this source tree.
|
|
802
802
|
*/
|
|
803
|
-
const
|
|
803
|
+
const Yn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Fn = L("ChevronDown", Yn);
|
|
804
804
|
/**
|
|
805
805
|
* @license lucide-react v0.474.0 - ISC
|
|
806
806
|
*
|
|
807
807
|
* This source code is licensed under the ISC license.
|
|
808
808
|
* See the LICENSE file in the root directory of this source tree.
|
|
809
809
|
*/
|
|
810
|
-
const
|
|
810
|
+
const Un = [
|
|
811
811
|
["polyline", { points: "16 18 22 12 16 6", key: "z7tu5w" }],
|
|
812
812
|
["polyline", { points: "8 6 2 12 8 18", key: "1eg1df" }]
|
|
813
|
-
],
|
|
813
|
+
], Bn = L("Code", Un);
|
|
814
814
|
/**
|
|
815
815
|
* @license lucide-react v0.474.0 - ISC
|
|
816
816
|
*
|
|
817
817
|
* This source code is licensed under the ISC license.
|
|
818
818
|
* See the LICENSE file in the root directory of this source tree.
|
|
819
819
|
*/
|
|
820
|
-
const
|
|
820
|
+
const Xn = [
|
|
821
821
|
["polyline", { points: "15 10 20 15 15 20", key: "1q7qjw" }],
|
|
822
822
|
["path", { d: "M4 4v7a4 4 0 0 0 4 4h12", key: "z08zvw" }]
|
|
823
|
-
],
|
|
823
|
+
], Kn = L("CornerDownRight", Xn);
|
|
824
824
|
/**
|
|
825
825
|
* @license lucide-react v0.474.0 - ISC
|
|
826
826
|
*
|
|
827
827
|
* This source code is licensed under the ISC license.
|
|
828
828
|
* See the LICENSE file in the root directory of this source tree.
|
|
829
829
|
*/
|
|
830
|
-
const
|
|
830
|
+
const Gn = [
|
|
831
831
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
832
832
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
833
833
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
834
834
|
["path", { d: "m17 12 3-2v8", key: "1hhhft" }]
|
|
835
|
-
], ot = L("Heading1",
|
|
835
|
+
], ot = L("Heading1", Gn);
|
|
836
836
|
/**
|
|
837
837
|
* @license lucide-react v0.474.0 - ISC
|
|
838
838
|
*
|
|
839
839
|
* This source code is licensed under the ISC license.
|
|
840
840
|
* See the LICENSE file in the root directory of this source tree.
|
|
841
841
|
*/
|
|
842
|
-
const
|
|
842
|
+
const Jn = [
|
|
843
843
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
844
844
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
845
845
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
846
846
|
["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
|
|
847
|
-
],
|
|
847
|
+
], Kt = L("Heading2", Jn);
|
|
848
848
|
/**
|
|
849
849
|
* @license lucide-react v0.474.0 - ISC
|
|
850
850
|
*
|
|
851
851
|
* This source code is licensed under the ISC license.
|
|
852
852
|
* See the LICENSE file in the root directory of this source tree.
|
|
853
853
|
*/
|
|
854
|
-
const
|
|
854
|
+
const Zn = [
|
|
855
855
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
856
856
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
857
857
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
858
858
|
["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
|
|
859
859
|
["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
|
|
860
|
-
],
|
|
860
|
+
], Gt = L("Heading3", Zn);
|
|
861
861
|
/**
|
|
862
862
|
* @license lucide-react v0.474.0 - ISC
|
|
863
863
|
*
|
|
864
864
|
* This source code is licensed under the ISC license.
|
|
865
865
|
* See the LICENSE file in the root directory of this source tree.
|
|
866
866
|
*/
|
|
867
|
-
const
|
|
867
|
+
const Qn = [
|
|
868
868
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
869
869
|
["path", { d: "M17 10v3a1 1 0 0 0 1 1h3", key: "tj5zdr" }],
|
|
870
870
|
["path", { d: "M21 10v8", key: "1kdml4" }],
|
|
871
871
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
872
872
|
["path", { d: "M4 18V6", key: "1rz3zl" }]
|
|
873
|
-
],
|
|
873
|
+
], Jt = L("Heading4", Qn);
|
|
874
874
|
/**
|
|
875
875
|
* @license lucide-react v0.474.0 - ISC
|
|
876
876
|
*
|
|
877
877
|
* This source code is licensed under the ISC license.
|
|
878
878
|
* See the LICENSE file in the root directory of this source tree.
|
|
879
879
|
*/
|
|
880
|
-
const
|
|
880
|
+
const ei = [
|
|
881
881
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
882
882
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
883
883
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
@@ -886,49 +886,49 @@ const ti = [
|
|
|
886
886
|
"path",
|
|
887
887
|
{ d: "M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17", key: "2nebdn" }
|
|
888
888
|
]
|
|
889
|
-
],
|
|
889
|
+
], Zt = L("Heading5", ei);
|
|
890
890
|
/**
|
|
891
891
|
* @license lucide-react v0.474.0 - ISC
|
|
892
892
|
*
|
|
893
893
|
* This source code is licensed under the ISC license.
|
|
894
894
|
* See the LICENSE file in the root directory of this source tree.
|
|
895
895
|
*/
|
|
896
|
-
const
|
|
896
|
+
const ti = [
|
|
897
897
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
898
898
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
899
899
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
900
900
|
["circle", { cx: "19", cy: "16", r: "2", key: "15mx69" }],
|
|
901
901
|
["path", { d: "M20 10c-2 2-3 3.5-3 6", key: "f35dl0" }]
|
|
902
|
-
],
|
|
902
|
+
], Qt = L("Heading6", ti);
|
|
903
903
|
/**
|
|
904
904
|
* @license lucide-react v0.474.0 - ISC
|
|
905
905
|
*
|
|
906
906
|
* This source code is licensed under the ISC license.
|
|
907
907
|
* See the LICENSE file in the root directory of this source tree.
|
|
908
908
|
*/
|
|
909
|
-
const
|
|
909
|
+
const ri = [
|
|
910
910
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
911
911
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
912
912
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
913
|
-
],
|
|
913
|
+
], ni = L("Image", ri);
|
|
914
914
|
/**
|
|
915
915
|
* @license lucide-react v0.474.0 - ISC
|
|
916
916
|
*
|
|
917
917
|
* This source code is licensed under the ISC license.
|
|
918
918
|
* See the LICENSE file in the root directory of this source tree.
|
|
919
919
|
*/
|
|
920
|
-
const
|
|
920
|
+
const ii = [
|
|
921
921
|
["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
|
|
922
922
|
["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
|
|
923
923
|
["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
|
|
924
|
-
],
|
|
924
|
+
], oi = L("Italic", ii);
|
|
925
925
|
/**
|
|
926
926
|
* @license lucide-react v0.474.0 - ISC
|
|
927
927
|
*
|
|
928
928
|
* This source code is licensed under the ISC license.
|
|
929
929
|
* See the LICENSE file in the root directory of this source tree.
|
|
930
930
|
*/
|
|
931
|
-
const
|
|
931
|
+
const ai = [
|
|
932
932
|
[
|
|
933
933
|
"path",
|
|
934
934
|
{
|
|
@@ -950,49 +950,49 @@ const si = [
|
|
|
950
950
|
key: "kqbvx6"
|
|
951
951
|
}
|
|
952
952
|
]
|
|
953
|
-
],
|
|
953
|
+
], si = L("Layers", ai);
|
|
954
954
|
/**
|
|
955
955
|
* @license lucide-react v0.474.0 - ISC
|
|
956
956
|
*
|
|
957
957
|
* This source code is licensed under the ISC license.
|
|
958
958
|
* See the LICENSE file in the root directory of this source tree.
|
|
959
959
|
*/
|
|
960
|
-
const
|
|
960
|
+
const li = [
|
|
961
961
|
["path", { d: "M10 12h11", key: "6m4ad9" }],
|
|
962
962
|
["path", { d: "M10 18h11", key: "11hvi2" }],
|
|
963
963
|
["path", { d: "M10 6h11", key: "c7qv1k" }],
|
|
964
964
|
["path", { d: "M4 10h2", key: "16xx2s" }],
|
|
965
965
|
["path", { d: "M4 6h1v4", key: "cnovpq" }],
|
|
966
966
|
["path", { d: "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1", key: "m9a95d" }]
|
|
967
|
-
],
|
|
967
|
+
], ci = L("ListOrdered", li);
|
|
968
968
|
/**
|
|
969
969
|
* @license lucide-react v0.474.0 - ISC
|
|
970
970
|
*
|
|
971
971
|
* This source code is licensed under the ISC license.
|
|
972
972
|
* See the LICENSE file in the root directory of this source tree.
|
|
973
973
|
*/
|
|
974
|
-
const
|
|
974
|
+
const ui = [
|
|
975
975
|
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
976
976
|
["path", { d: "M3 18h.01", key: "1tta3j" }],
|
|
977
977
|
["path", { d: "M3 6h.01", key: "1rqtza" }],
|
|
978
978
|
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
979
979
|
["path", { d: "M8 18h13", key: "1lx6n3" }],
|
|
980
980
|
["path", { d: "M8 6h13", key: "ik3vkj" }]
|
|
981
|
-
],
|
|
981
|
+
], di = L("List", ui);
|
|
982
982
|
/**
|
|
983
983
|
* @license lucide-react v0.474.0 - ISC
|
|
984
984
|
*
|
|
985
985
|
* This source code is licensed under the ISC license.
|
|
986
986
|
* See the LICENSE file in the root directory of this source tree.
|
|
987
987
|
*/
|
|
988
|
-
const
|
|
988
|
+
const fi = [["path", { d: "M5 12h14", key: "1ays0h" }]], mi = L("Minus", fi);
|
|
989
989
|
/**
|
|
990
990
|
* @license lucide-react v0.474.0 - ISC
|
|
991
991
|
*
|
|
992
992
|
* This source code is licensed under the ISC license.
|
|
993
993
|
* See the LICENSE file in the root directory of this source tree.
|
|
994
994
|
*/
|
|
995
|
-
const
|
|
995
|
+
const pi = [
|
|
996
996
|
[
|
|
997
997
|
"path",
|
|
998
998
|
{ d: "m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z", key: "irua1i" }
|
|
@@ -1000,24 +1000,24 @@ const bi = [
|
|
|
1000
1000
|
["path", { d: "m5 2 5 5", key: "1lls2c" }],
|
|
1001
1001
|
["path", { d: "M2 13h15", key: "1hkzvu" }],
|
|
1002
1002
|
["path", { d: "M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z", key: "xk76lq" }]
|
|
1003
|
-
],
|
|
1003
|
+
], bi = L("PaintBucket", pi);
|
|
1004
1004
|
/**
|
|
1005
1005
|
* @license lucide-react v0.474.0 - ISC
|
|
1006
1006
|
*
|
|
1007
1007
|
* This source code is licensed under the ISC license.
|
|
1008
1008
|
* See the LICENSE file in the root directory of this source tree.
|
|
1009
1009
|
*/
|
|
1010
|
-
const
|
|
1010
|
+
const hi = [
|
|
1011
1011
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
1012
1012
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
1013
|
-
],
|
|
1013
|
+
], yi = L("Plus", hi);
|
|
1014
1014
|
/**
|
|
1015
1015
|
* @license lucide-react v0.474.0 - ISC
|
|
1016
1016
|
*
|
|
1017
1017
|
* This source code is licensed under the ISC license.
|
|
1018
1018
|
* See the LICENSE file in the root directory of this source tree.
|
|
1019
1019
|
*/
|
|
1020
|
-
const
|
|
1020
|
+
const vi = [
|
|
1021
1021
|
[
|
|
1022
1022
|
"path",
|
|
1023
1023
|
{
|
|
@@ -1032,45 +1032,45 @@ const gi = [
|
|
|
1032
1032
|
key: "1ymkrd"
|
|
1033
1033
|
}
|
|
1034
1034
|
]
|
|
1035
|
-
],
|
|
1035
|
+
], gi = L("Quote", vi);
|
|
1036
1036
|
/**
|
|
1037
1037
|
* @license lucide-react v0.474.0 - ISC
|
|
1038
1038
|
*
|
|
1039
1039
|
* This source code is licensed under the ISC license.
|
|
1040
1040
|
* See the LICENSE file in the root directory of this source tree.
|
|
1041
1041
|
*/
|
|
1042
|
-
const
|
|
1042
|
+
const xi = [
|
|
1043
1043
|
["path", { d: "M21 7v6h-6", key: "3ptur4" }],
|
|
1044
1044
|
["path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7", key: "1kgawr" }]
|
|
1045
|
-
],
|
|
1045
|
+
], Ni = L("Redo", xi);
|
|
1046
1046
|
/**
|
|
1047
1047
|
* @license lucide-react v0.474.0 - ISC
|
|
1048
1048
|
*
|
|
1049
1049
|
* This source code is licensed under the ISC license.
|
|
1050
1050
|
* See the LICENSE file in the root directory of this source tree.
|
|
1051
1051
|
*/
|
|
1052
|
-
const
|
|
1052
|
+
const Ei = [
|
|
1053
1053
|
["path", { d: "M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5", key: "1uzm8b" }],
|
|
1054
1054
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
1055
|
-
],
|
|
1055
|
+
], Si = L("SquareCheckBig", Ei);
|
|
1056
1056
|
/**
|
|
1057
1057
|
* @license lucide-react v0.474.0 - ISC
|
|
1058
1058
|
*
|
|
1059
1059
|
* This source code is licensed under the ISC license.
|
|
1060
1060
|
* See the LICENSE file in the root directory of this source tree.
|
|
1061
1061
|
*/
|
|
1062
|
-
const
|
|
1062
|
+
const wi = [
|
|
1063
1063
|
["path", { d: "M16 4H9a3 3 0 0 0-2.83 4", key: "43sutm" }],
|
|
1064
1064
|
["path", { d: "M14 12a4 4 0 0 1 0 8H6", key: "nlfj13" }],
|
|
1065
1065
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
1066
|
-
],
|
|
1066
|
+
], Ci = L("Strikethrough", wi);
|
|
1067
1067
|
/**
|
|
1068
1068
|
* @license lucide-react v0.474.0 - ISC
|
|
1069
1069
|
*
|
|
1070
1070
|
* This source code is licensed under the ISC license.
|
|
1071
1071
|
* See the LICENSE file in the root directory of this source tree.
|
|
1072
1072
|
*/
|
|
1073
|
-
const
|
|
1073
|
+
const ki = [
|
|
1074
1074
|
["path", { d: "m4 5 8 8", key: "1eunvl" }],
|
|
1075
1075
|
["path", { d: "m12 5-8 8", key: "1ah0jp" }],
|
|
1076
1076
|
[
|
|
@@ -1080,14 +1080,14 @@ const Di = [
|
|
|
1080
1080
|
key: "e8ta8j"
|
|
1081
1081
|
}
|
|
1082
1082
|
]
|
|
1083
|
-
],
|
|
1083
|
+
], Di = L("Subscript", ki);
|
|
1084
1084
|
/**
|
|
1085
1085
|
* @license lucide-react v0.474.0 - ISC
|
|
1086
1086
|
*
|
|
1087
1087
|
* This source code is licensed under the ISC license.
|
|
1088
1088
|
* See the LICENSE file in the root directory of this source tree.
|
|
1089
1089
|
*/
|
|
1090
|
-
const
|
|
1090
|
+
const _i = [
|
|
1091
1091
|
["path", { d: "m4 19 8-8", key: "hr47gm" }],
|
|
1092
1092
|
["path", { d: "m12 19-8-8", key: "1dhhmo" }],
|
|
1093
1093
|
[
|
|
@@ -1097,61 +1097,61 @@ const Oi = [
|
|
|
1097
1097
|
key: "1dfcux"
|
|
1098
1098
|
}
|
|
1099
1099
|
]
|
|
1100
|
-
],
|
|
1100
|
+
], Oi = L("Superscript", _i);
|
|
1101
1101
|
/**
|
|
1102
1102
|
* @license lucide-react v0.474.0 - ISC
|
|
1103
1103
|
*
|
|
1104
1104
|
* This source code is licensed under the ISC license.
|
|
1105
1105
|
* See the LICENSE file in the root directory of this source tree.
|
|
1106
1106
|
*/
|
|
1107
|
-
const
|
|
1107
|
+
const Ri = [
|
|
1108
1108
|
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
1109
1109
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
1110
1110
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
1111
1111
|
["path", { d: "M3 15h18", key: "5xshup" }]
|
|
1112
|
-
], Ti = L("Table",
|
|
1112
|
+
], Ti = L("Table", Ri);
|
|
1113
1113
|
/**
|
|
1114
1114
|
* @license lucide-react v0.474.0 - ISC
|
|
1115
1115
|
*
|
|
1116
1116
|
* This source code is licensed under the ISC license.
|
|
1117
1117
|
* See the LICENSE file in the root directory of this source tree.
|
|
1118
1118
|
*/
|
|
1119
|
-
const
|
|
1119
|
+
const Pi = [
|
|
1120
1120
|
["path", { d: "M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1", key: "uvaxm9" }],
|
|
1121
1121
|
["path", { d: "M7 22h1a4 4 0 0 0 4-4v-1", key: "11xy8d" }],
|
|
1122
1122
|
["path", { d: "M7 2h1a4 4 0 0 1 4 4v1", key: "1uw06m" }]
|
|
1123
|
-
],
|
|
1123
|
+
], ji = L("TextCursor", Pi);
|
|
1124
1124
|
/**
|
|
1125
1125
|
* @license lucide-react v0.474.0 - ISC
|
|
1126
1126
|
*
|
|
1127
1127
|
* This source code is licensed under the ISC license.
|
|
1128
1128
|
* See the LICENSE file in the root directory of this source tree.
|
|
1129
1129
|
*/
|
|
1130
|
-
const
|
|
1130
|
+
const Mi = [
|
|
1131
1131
|
["path", { d: "M6 4v6a6 6 0 0 0 12 0V4", key: "9kb039" }],
|
|
1132
1132
|
["line", { x1: "4", x2: "20", y1: "20", y2: "20", key: "nun2al" }]
|
|
1133
|
-
],
|
|
1133
|
+
], Vi = L("Underline", Mi);
|
|
1134
1134
|
/**
|
|
1135
1135
|
* @license lucide-react v0.474.0 - ISC
|
|
1136
1136
|
*
|
|
1137
1137
|
* This source code is licensed under the ISC license.
|
|
1138
1138
|
* See the LICENSE file in the root directory of this source tree.
|
|
1139
1139
|
*/
|
|
1140
|
-
const
|
|
1140
|
+
const Ai = [
|
|
1141
1141
|
["path", { d: "M3 7v6h6", key: "1v2h90" }],
|
|
1142
1142
|
["path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13", key: "1r6uu6" }]
|
|
1143
|
-
],
|
|
1143
|
+
], $i = L("Undo", Ai);
|
|
1144
1144
|
/**
|
|
1145
1145
|
* @license lucide-react v0.474.0 - ISC
|
|
1146
1146
|
*
|
|
1147
1147
|
* This source code is licensed under the ISC license.
|
|
1148
1148
|
* See the LICENSE file in the root directory of this source tree.
|
|
1149
1149
|
*/
|
|
1150
|
-
const
|
|
1150
|
+
const zi = [
|
|
1151
1151
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
1152
1152
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
1153
|
-
],
|
|
1154
|
-
function
|
|
1153
|
+
], Ii = L("X", zi);
|
|
1154
|
+
function Hi({ editor: e }) {
|
|
1155
1155
|
const [t, r] = he(!1);
|
|
1156
1156
|
return /* @__PURE__ */ l.jsxDEV("div", { className: "relative", children: [
|
|
1157
1157
|
/* @__PURE__ */ l.jsxDEV(
|
|
@@ -1159,11 +1159,11 @@ function Li({ editor: e }) {
|
|
|
1159
1159
|
{
|
|
1160
1160
|
className: `p-1 text-black transition-all duration-300 rounded-md shadow-lg hover:bg-blue-100 hover:text-blue-600 ${t ? "bg-blue-100 text-blue-600" : ""}`,
|
|
1161
1161
|
onClick: () => r(!t),
|
|
1162
|
-
children: t ? /* @__PURE__ */ l.jsxDEV(
|
|
1162
|
+
children: t ? /* @__PURE__ */ l.jsxDEV(Ii, { size: 24 }, void 0, !1, {
|
|
1163
1163
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
|
|
1164
1164
|
lineNumber: 13,
|
|
1165
1165
|
columnNumber: 25
|
|
1166
|
-
}, this) : /* @__PURE__ */ l.jsxDEV(
|
|
1166
|
+
}, this) : /* @__PURE__ */ l.jsxDEV(si, { size: 24 }, void 0, !1, {
|
|
1167
1167
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
|
|
1168
1168
|
lineNumber: 13,
|
|
1169
1169
|
columnNumber: 43
|
|
@@ -1200,7 +1200,7 @@ function Li({ editor: e }) {
|
|
|
1200
1200
|
},
|
|
1201
1201
|
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",
|
|
1202
1202
|
children: [
|
|
1203
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1203
|
+
/* @__PURE__ */ l.jsxDEV(yi, { size: 16 }, void 0, !1, {
|
|
1204
1204
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/cyber-extensions.tsx",
|
|
1205
1205
|
lineNumber: 33,
|
|
1206
1206
|
columnNumber: 29
|
|
@@ -1238,8 +1238,8 @@ function Li({ editor: e }) {
|
|
|
1238
1238
|
columnNumber: 9
|
|
1239
1239
|
}, this);
|
|
1240
1240
|
}
|
|
1241
|
-
const
|
|
1242
|
-
|
|
1241
|
+
const Fe = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
1242
|
+
dn,
|
|
1243
1243
|
{
|
|
1244
1244
|
value: e,
|
|
1245
1245
|
onChange: t,
|
|
@@ -1267,7 +1267,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1267
1267
|
columnNumber: 9
|
|
1268
1268
|
},
|
|
1269
1269
|
void 0
|
|
1270
|
-
),
|
|
1270
|
+
), Li = ({ editor: e }) => {
|
|
1271
1271
|
const [t, r] = he("#1677ff"), [n, o] = he("#ffffff"), a = (m) => {
|
|
1272
1272
|
const p = m.toHexString();
|
|
1273
1273
|
r(p), e.chain().focus().setColor(p).run();
|
|
@@ -1279,12 +1279,12 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1279
1279
|
};
|
|
1280
1280
|
return /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-4", children: [
|
|
1281
1281
|
/* @__PURE__ */ l.jsxDEV(vt, { title: "Text Color", children: /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-2", onMouseDown: u, children: [
|
|
1282
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1282
|
+
/* @__PURE__ */ l.jsxDEV(ji, { size: 20, color: "black" }, void 0, !1, {
|
|
1283
1283
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
|
|
1284
1284
|
lineNumber: 33,
|
|
1285
1285
|
columnNumber: 21
|
|
1286
1286
|
}, void 0),
|
|
1287
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1287
|
+
/* @__PURE__ */ l.jsxDEV(Fe, { value: t, onChange: a }, void 0, !1, {
|
|
1288
1288
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
|
|
1289
1289
|
lineNumber: 34,
|
|
1290
1290
|
columnNumber: 21
|
|
@@ -1299,12 +1299,12 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1299
1299
|
columnNumber: 13
|
|
1300
1300
|
}, void 0),
|
|
1301
1301
|
/* @__PURE__ */ l.jsxDEV(vt, { title: "Highlight Color", children: /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-2", onMouseDown: u, children: [
|
|
1302
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1302
|
+
/* @__PURE__ */ l.jsxDEV(bi, { size: 20, color: "black" }, void 0, !1, {
|
|
1303
1303
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
|
|
1304
1304
|
lineNumber: 41,
|
|
1305
1305
|
columnNumber: 21
|
|
1306
1306
|
}, void 0),
|
|
1307
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1307
|
+
/* @__PURE__ */ l.jsxDEV(Fe, { value: n, onChange: s }, void 0, !1, {
|
|
1308
1308
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/color/color-picker.tsx",
|
|
1309
1309
|
lineNumber: 42,
|
|
1310
1310
|
columnNumber: 21
|
|
@@ -1323,7 +1323,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1323
1323
|
lineNumber: 29,
|
|
1324
1324
|
columnNumber: 9
|
|
1325
1325
|
}, void 0);
|
|
1326
|
-
},
|
|
1326
|
+
}, Wi = ({ editor: e }) => {
|
|
1327
1327
|
if (!e) return null;
|
|
1328
1328
|
const t = () => {
|
|
1329
1329
|
for (let n = 1; n <= 6; n++)
|
|
@@ -1336,31 +1336,31 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1336
1336
|
columnNumber: 36
|
|
1337
1337
|
}, void 0);
|
|
1338
1338
|
case 2:
|
|
1339
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1339
|
+
return /* @__PURE__ */ l.jsxDEV(Kt, { size: 16 }, void 0, !1, {
|
|
1340
1340
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1341
1341
|
lineNumber: 16,
|
|
1342
1342
|
columnNumber: 36
|
|
1343
1343
|
}, void 0);
|
|
1344
1344
|
case 3:
|
|
1345
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1345
|
+
return /* @__PURE__ */ l.jsxDEV(Gt, { size: 16 }, void 0, !1, {
|
|
1346
1346
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1347
1347
|
lineNumber: 17,
|
|
1348
1348
|
columnNumber: 36
|
|
1349
1349
|
}, void 0);
|
|
1350
1350
|
case 4:
|
|
1351
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1351
|
+
return /* @__PURE__ */ l.jsxDEV(Jt, { size: 16 }, void 0, !1, {
|
|
1352
1352
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1353
1353
|
lineNumber: 18,
|
|
1354
1354
|
columnNumber: 36
|
|
1355
1355
|
}, void 0);
|
|
1356
1356
|
case 5:
|
|
1357
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1357
|
+
return /* @__PURE__ */ l.jsxDEV(Zt, { size: 16 }, void 0, !1, {
|
|
1358
1358
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1359
1359
|
lineNumber: 19,
|
|
1360
1360
|
columnNumber: 36
|
|
1361
1361
|
}, void 0);
|
|
1362
1362
|
case 6:
|
|
1363
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1363
|
+
return /* @__PURE__ */ l.jsxDEV(Qt, { size: 16 }, void 0, !1, {
|
|
1364
1364
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1365
1365
|
lineNumber: 20,
|
|
1366
1366
|
columnNumber: 36
|
|
@@ -1375,7 +1375,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1375
1375
|
...Array.from({ length: 6 }, (n, o) => ({
|
|
1376
1376
|
key: `${o + 1}`,
|
|
1377
1377
|
label: /* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-2", onClick: () => e.chain().focus().toggleHeading({ level: o + 1 }).run(), children: [
|
|
1378
|
-
_e.createElement([ot, Gt, Jt, Zt, Qt
|
|
1378
|
+
_e.createElement([ot, Kt, Gt, Jt, Zt, Qt][o], { size: 16 }),
|
|
1379
1379
|
/* @__PURE__ */ l.jsxDEV("span", { children: [
|
|
1380
1380
|
"Heading ",
|
|
1381
1381
|
o + 1
|
|
@@ -1392,7 +1392,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1392
1392
|
className: e.isActive("heading", { level: o + 1 }) ? "ant-dropdown-menu-item-active" : ""
|
|
1393
1393
|
}))
|
|
1394
1394
|
];
|
|
1395
|
-
return /* @__PURE__ */ l.jsxDEV(
|
|
1395
|
+
return /* @__PURE__ */ l.jsxDEV(Ct, { menu: { items: r }, trigger: ["hover"], placement: "bottomLeft", children: /* @__PURE__ */ l.jsxDEV("button", { className: "flex items-center gap-1 p-2 rounded-md hover:bg-blue-100 hover:text-blue-600", children: t() }, void 0, !1, {
|
|
1396
1396
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/heading/heading-dropdown.tsx",
|
|
1397
1397
|
lineNumber: 42,
|
|
1398
1398
|
columnNumber: 13
|
|
@@ -1401,7 +1401,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1401
1401
|
lineNumber: 41,
|
|
1402
1402
|
columnNumber: 9
|
|
1403
1403
|
}, void 0);
|
|
1404
|
-
},
|
|
1404
|
+
}, qi = 8, Yi = 8, Fi = ({
|
|
1405
1405
|
editor: e,
|
|
1406
1406
|
buttonClass: t,
|
|
1407
1407
|
activeClass: r
|
|
@@ -1410,23 +1410,23 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1410
1410
|
e.chain().focus().insertTable({ rows: m, cols: p, withHeaderRow: !0 }).run(), s(!1);
|
|
1411
1411
|
};
|
|
1412
1412
|
return /* @__PURE__ */ l.jsxDEV(
|
|
1413
|
-
|
|
1413
|
+
Ct,
|
|
1414
1414
|
{
|
|
1415
1415
|
open: a,
|
|
1416
1416
|
onOpenChange: s,
|
|
1417
1417
|
trigger: ["hover"],
|
|
1418
1418
|
overlay: /* @__PURE__ */ l.jsxDEV("div", { className: "w-56 p-4 bg-white border border-gray-300 rounded-lg shadow-xl", children: [
|
|
1419
|
-
/* @__PURE__ */ l.jsxDEV("div", { className: "grid grid-cols-8 gap-1", children: Array.from({ length:
|
|
1420
|
-
(m, p) => Array.from({ length:
|
|
1421
|
-
const O = p < n.rows &&
|
|
1419
|
+
/* @__PURE__ */ l.jsxDEV("div", { className: "grid grid-cols-8 gap-1", children: Array.from({ length: qi }).map(
|
|
1420
|
+
(m, p) => Array.from({ length: Yi }).map((y, v) => {
|
|
1421
|
+
const O = p < n.rows && v < n.cols;
|
|
1422
1422
|
return /* @__PURE__ */ l.jsxDEV(
|
|
1423
1423
|
"div",
|
|
1424
1424
|
{
|
|
1425
1425
|
className: `w-5 h-5 border rounded-sm cursor-pointer transition-all duration-200 ${O ? "bg-blue-400 border-white scale-110" : "bg-gray-200 hover:bg-gray-300"}`,
|
|
1426
|
-
onMouseEnter: () => o({ rows: p + 1, cols:
|
|
1427
|
-
onClick: () => u(p + 1,
|
|
1426
|
+
onMouseEnter: () => o({ rows: p + 1, cols: v + 1 }),
|
|
1427
|
+
onClick: () => u(p + 1, v + 1)
|
|
1428
1428
|
},
|
|
1429
|
-
`${p}-${
|
|
1429
|
+
`${p}-${v}`,
|
|
1430
1430
|
!1,
|
|
1431
1431
|
{
|
|
1432
1432
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/table/table-selector.tsx",
|
|
@@ -1481,8 +1481,7 @@ const Ue = ({ value: e, onChange: t }) => /* @__PURE__ */ l.jsxDEV(
|
|
|
1481
1481
|
void 0
|
|
1482
1482
|
);
|
|
1483
1483
|
};
|
|
1484
|
-
function
|
|
1485
|
-
const { editor: e } = Ct();
|
|
1484
|
+
function Ui({ editor: e }) {
|
|
1486
1485
|
if (!e) return null;
|
|
1487
1486
|
const t = "p-2 rounded-md transition-all duration-200 hover:bg-blue-100 hover:text-blue-600", r = "bg-blue-100 text-blue-600", n = (o, a, s, u, m) => /* @__PURE__ */ l.jsxDEV(vt, { title: m, children: /* @__PURE__ */ l.jsxDEV(
|
|
1488
1487
|
"button",
|
|
@@ -1501,21 +1500,21 @@ function Bi() {
|
|
|
1501
1500
|
!1,
|
|
1502
1501
|
{
|
|
1503
1502
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1504
|
-
lineNumber:
|
|
1503
|
+
lineNumber: 32,
|
|
1505
1504
|
columnNumber: 13
|
|
1506
1505
|
},
|
|
1507
1506
|
this
|
|
1508
1507
|
) }, void 0, !1, {
|
|
1509
1508
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1510
|
-
lineNumber:
|
|
1509
|
+
lineNumber: 31,
|
|
1511
1510
|
columnNumber: 9
|
|
1512
1511
|
}, this);
|
|
1513
1512
|
return /* @__PURE__ */ l.jsxDEV("div", { className: "flex flex-wrap items-center gap-2 p-2 border-b border-gray-200 rounded-t-lg bg-gray-50", children: [
|
|
1514
1513
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1515
1514
|
n(
|
|
1516
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1515
|
+
/* @__PURE__ */ l.jsxDEV(qn, { size: 16 }, void 0, !1, {
|
|
1517
1516
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1518
|
-
lineNumber:
|
|
1517
|
+
lineNumber: 52,
|
|
1519
1518
|
columnNumber: 21
|
|
1520
1519
|
}, this),
|
|
1521
1520
|
() => e.chain().focus().toggleBold().run(),
|
|
@@ -1524,9 +1523,9 @@ function Bi() {
|
|
|
1524
1523
|
"Bold"
|
|
1525
1524
|
),
|
|
1526
1525
|
n(
|
|
1527
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1526
|
+
/* @__PURE__ */ l.jsxDEV(oi, { size: 16 }, void 0, !1, {
|
|
1528
1527
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1529
|
-
lineNumber:
|
|
1528
|
+
lineNumber: 59,
|
|
1530
1529
|
columnNumber: 21
|
|
1531
1530
|
}, this),
|
|
1532
1531
|
() => e.chain().focus().toggleItalic().run(),
|
|
@@ -1535,9 +1534,9 @@ function Bi() {
|
|
|
1535
1534
|
"Italic"
|
|
1536
1535
|
),
|
|
1537
1536
|
n(
|
|
1538
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1537
|
+
/* @__PURE__ */ l.jsxDEV(Vi, { size: 16 }, void 0, !1, {
|
|
1539
1538
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1540
|
-
lineNumber:
|
|
1539
|
+
lineNumber: 66,
|
|
1541
1540
|
columnNumber: 21
|
|
1542
1541
|
}, this),
|
|
1543
1542
|
() => e.chain().focus().toggleUnderline().run(),
|
|
@@ -1546,9 +1545,9 @@ function Bi() {
|
|
|
1546
1545
|
"Underline"
|
|
1547
1546
|
),
|
|
1548
1547
|
n(
|
|
1549
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1548
|
+
/* @__PURE__ */ l.jsxDEV(Ci, { size: 16 }, void 0, !1, {
|
|
1550
1549
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1551
|
-
lineNumber:
|
|
1550
|
+
lineNumber: 73,
|
|
1552
1551
|
columnNumber: 21
|
|
1553
1552
|
}, this),
|
|
1554
1553
|
() => e.chain().focus().toggleStrike().run(),
|
|
@@ -1557,9 +1556,9 @@ function Bi() {
|
|
|
1557
1556
|
"Strikethrough"
|
|
1558
1557
|
),
|
|
1559
1558
|
n(
|
|
1560
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1559
|
+
/* @__PURE__ */ l.jsxDEV(Bn, { size: 16 }, void 0, !1, {
|
|
1561
1560
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1562
|
-
lineNumber:
|
|
1561
|
+
lineNumber: 80,
|
|
1563
1562
|
columnNumber: 21
|
|
1564
1563
|
}, this),
|
|
1565
1564
|
() => e.chain().focus().toggleCode().run(),
|
|
@@ -1568,9 +1567,9 @@ function Bi() {
|
|
|
1568
1567
|
"Code"
|
|
1569
1568
|
),
|
|
1570
1569
|
n(
|
|
1571
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1570
|
+
/* @__PURE__ */ l.jsxDEV(Di, { size: 16 }, void 0, !1, {
|
|
1572
1571
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1573
|
-
lineNumber:
|
|
1572
|
+
lineNumber: 87,
|
|
1574
1573
|
columnNumber: 21
|
|
1575
1574
|
}, this),
|
|
1576
1575
|
() => e.chain().focus().toggleSubscript().run(),
|
|
@@ -1579,9 +1578,9 @@ function Bi() {
|
|
|
1579
1578
|
"Subscript"
|
|
1580
1579
|
),
|
|
1581
1580
|
n(
|
|
1582
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1581
|
+
/* @__PURE__ */ l.jsxDEV(Oi, { size: 16 }, void 0, !1, {
|
|
1583
1582
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1584
|
-
lineNumber:
|
|
1583
|
+
lineNumber: 94,
|
|
1585
1584
|
columnNumber: 21
|
|
1586
1585
|
}, this),
|
|
1587
1586
|
() => e.chain().focus().toggleSuperscript().run(),
|
|
@@ -1591,29 +1590,29 @@ function Bi() {
|
|
|
1591
1590
|
)
|
|
1592
1591
|
] }, void 0, !0, {
|
|
1593
1592
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1594
|
-
lineNumber:
|
|
1593
|
+
lineNumber: 50,
|
|
1595
1594
|
columnNumber: 13
|
|
1596
1595
|
}, this),
|
|
1597
1596
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1598
1597
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1599
|
-
lineNumber:
|
|
1598
|
+
lineNumber: 102,
|
|
1600
1599
|
columnNumber: 13
|
|
1601
1600
|
}, this),
|
|
1602
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1601
|
+
/* @__PURE__ */ l.jsxDEV(Wi, { editor: e }, void 0, !1, {
|
|
1603
1602
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1604
|
-
lineNumber:
|
|
1603
|
+
lineNumber: 105,
|
|
1605
1604
|
columnNumber: 13
|
|
1606
1605
|
}, this),
|
|
1607
1606
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1608
1607
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1609
|
-
lineNumber:
|
|
1608
|
+
lineNumber: 107,
|
|
1610
1609
|
columnNumber: 13
|
|
1611
1610
|
}, this),
|
|
1612
1611
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1613
1612
|
n(
|
|
1614
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1613
|
+
/* @__PURE__ */ l.jsxDEV(In, { size: 16 }, void 0, !1, {
|
|
1615
1614
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1616
|
-
lineNumber:
|
|
1615
|
+
lineNumber: 112,
|
|
1617
1616
|
columnNumber: 21
|
|
1618
1617
|
}, this),
|
|
1619
1618
|
() => e.chain().focus().setTextAlign("left").run(),
|
|
@@ -1622,9 +1621,9 @@ function Bi() {
|
|
|
1622
1621
|
"Align Left"
|
|
1623
1622
|
),
|
|
1624
1623
|
n(
|
|
1625
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1624
|
+
/* @__PURE__ */ l.jsxDEV(Vn, { size: 16 }, void 0, !1, {
|
|
1626
1625
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1627
|
-
lineNumber:
|
|
1626
|
+
lineNumber: 119,
|
|
1628
1627
|
columnNumber: 21
|
|
1629
1628
|
}, this),
|
|
1630
1629
|
() => e.chain().focus().setTextAlign("center").run(),
|
|
@@ -1633,9 +1632,9 @@ function Bi() {
|
|
|
1633
1632
|
"Align Center"
|
|
1634
1633
|
),
|
|
1635
1634
|
n(
|
|
1636
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1635
|
+
/* @__PURE__ */ l.jsxDEV(Ln, { size: 16 }, void 0, !1, {
|
|
1637
1636
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1638
|
-
lineNumber:
|
|
1637
|
+
lineNumber: 124,
|
|
1639
1638
|
columnNumber: 21
|
|
1640
1639
|
}, this),
|
|
1641
1640
|
() => e.chain().focus().setTextAlign("right").run(),
|
|
@@ -1644,9 +1643,9 @@ function Bi() {
|
|
|
1644
1643
|
"Align Right"
|
|
1645
1644
|
),
|
|
1646
1645
|
n(
|
|
1647
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1646
|
+
/* @__PURE__ */ l.jsxDEV($n, { size: 16 }, void 0, !1, {
|
|
1648
1647
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1649
|
-
lineNumber:
|
|
1648
|
+
lineNumber: 129,
|
|
1650
1649
|
columnNumber: 21
|
|
1651
1650
|
}, this),
|
|
1652
1651
|
() => e.chain().focus().setTextAlign("justify").run(),
|
|
@@ -1656,19 +1655,19 @@ function Bi() {
|
|
|
1656
1655
|
)
|
|
1657
1656
|
] }, void 0, !0, {
|
|
1658
1657
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1659
|
-
lineNumber:
|
|
1658
|
+
lineNumber: 110,
|
|
1660
1659
|
columnNumber: 13
|
|
1661
1660
|
}, this),
|
|
1662
1661
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1663
1662
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1664
|
-
lineNumber:
|
|
1663
|
+
lineNumber: 135,
|
|
1665
1664
|
columnNumber: 13
|
|
1666
1665
|
}, this),
|
|
1667
1666
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1668
1667
|
n(
|
|
1669
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1668
|
+
/* @__PURE__ */ l.jsxDEV(di, { size: 16 }, void 0, !1, {
|
|
1670
1669
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1671
|
-
lineNumber:
|
|
1670
|
+
lineNumber: 140,
|
|
1672
1671
|
columnNumber: 21
|
|
1673
1672
|
}, this),
|
|
1674
1673
|
() => e.chain().focus().toggleBulletList().run(),
|
|
@@ -1677,9 +1676,9 @@ function Bi() {
|
|
|
1677
1676
|
"Bullet List"
|
|
1678
1677
|
),
|
|
1679
1678
|
n(
|
|
1680
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1679
|
+
/* @__PURE__ */ l.jsxDEV(ci, { size: 16 }, void 0, !1, {
|
|
1681
1680
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1682
|
-
lineNumber:
|
|
1681
|
+
lineNumber: 145,
|
|
1683
1682
|
columnNumber: 21
|
|
1684
1683
|
}, this),
|
|
1685
1684
|
() => e.chain().focus().toggleOrderedList().run(),
|
|
@@ -1688,9 +1687,9 @@ function Bi() {
|
|
|
1688
1687
|
"Ordered List"
|
|
1689
1688
|
),
|
|
1690
1689
|
n(
|
|
1691
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1690
|
+
/* @__PURE__ */ l.jsxDEV(Si, { size: 16 }, void 0, !1, {
|
|
1692
1691
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1693
|
-
lineNumber:
|
|
1692
|
+
lineNumber: 150,
|
|
1694
1693
|
columnNumber: 21
|
|
1695
1694
|
}, this),
|
|
1696
1695
|
() => e.chain().focus().toggleTaskList().run(),
|
|
@@ -1700,19 +1699,19 @@ function Bi() {
|
|
|
1700
1699
|
)
|
|
1701
1700
|
] }, void 0, !0, {
|
|
1702
1701
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1703
|
-
lineNumber:
|
|
1702
|
+
lineNumber: 138,
|
|
1704
1703
|
columnNumber: 13
|
|
1705
1704
|
}, this),
|
|
1706
1705
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1707
1706
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1708
|
-
lineNumber:
|
|
1707
|
+
lineNumber: 156,
|
|
1709
1708
|
columnNumber: 13
|
|
1710
1709
|
}, this),
|
|
1711
1710
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1712
1711
|
n(
|
|
1713
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1712
|
+
/* @__PURE__ */ l.jsxDEV(gi, { size: 16 }, void 0, !1, {
|
|
1714
1713
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1715
|
-
lineNumber:
|
|
1714
|
+
lineNumber: 161,
|
|
1716
1715
|
columnNumber: 21
|
|
1717
1716
|
}, this),
|
|
1718
1717
|
() => e.chain().focus().toggleBlockquote().run(),
|
|
@@ -1722,13 +1721,13 @@ function Bi() {
|
|
|
1722
1721
|
),
|
|
1723
1722
|
/* @__PURE__ */ l.jsxDEV(Fi, { editor: e, buttonClass: t, activeClass: r }, void 0, !1, {
|
|
1724
1723
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1725
|
-
lineNumber:
|
|
1724
|
+
lineNumber: 165,
|
|
1726
1725
|
columnNumber: 17
|
|
1727
1726
|
}, this),
|
|
1728
1727
|
n(
|
|
1729
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1728
|
+
/* @__PURE__ */ l.jsxDEV(mi, { size: 16 }, void 0, !1, {
|
|
1730
1729
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1731
|
-
lineNumber:
|
|
1730
|
+
lineNumber: 167,
|
|
1732
1731
|
columnNumber: 21
|
|
1733
1732
|
}, this),
|
|
1734
1733
|
() => e.chain().focus().setHorizontalRule().run(),
|
|
@@ -1737,9 +1736,9 @@ function Bi() {
|
|
|
1737
1736
|
"Horizontal Rule"
|
|
1738
1737
|
),
|
|
1739
1738
|
n(
|
|
1740
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1739
|
+
/* @__PURE__ */ l.jsxDEV(Kn, { size: 16 }, void 0, !1, {
|
|
1741
1740
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1742
|
-
lineNumber:
|
|
1741
|
+
lineNumber: 171,
|
|
1743
1742
|
columnNumber: 21
|
|
1744
1743
|
}, this),
|
|
1745
1744
|
() => e.chain().focus().setHardBreak().run(),
|
|
@@ -1749,19 +1748,19 @@ function Bi() {
|
|
|
1749
1748
|
)
|
|
1750
1749
|
] }, void 0, !0, {
|
|
1751
1750
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1752
|
-
lineNumber:
|
|
1751
|
+
lineNumber: 159,
|
|
1753
1752
|
columnNumber: 13
|
|
1754
1753
|
}, this),
|
|
1755
1754
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1756
1755
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1757
|
-
lineNumber:
|
|
1756
|
+
lineNumber: 176,
|
|
1758
1757
|
columnNumber: 13
|
|
1759
1758
|
}, this),
|
|
1760
1759
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center gap-1", children: [
|
|
1761
1760
|
n(
|
|
1762
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1761
|
+
/* @__PURE__ */ l.jsxDEV($i, { size: 16 }, void 0, !1, {
|
|
1763
1762
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1764
|
-
lineNumber:
|
|
1763
|
+
lineNumber: 181,
|
|
1765
1764
|
columnNumber: 21
|
|
1766
1765
|
}, this),
|
|
1767
1766
|
() => e.chain().focus().undo().run(),
|
|
@@ -1769,9 +1768,9 @@ function Bi() {
|
|
|
1769
1768
|
!e.can().chain().focus().undo().run()
|
|
1770
1769
|
),
|
|
1771
1770
|
n(
|
|
1772
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1771
|
+
/* @__PURE__ */ l.jsxDEV(Ni, { size: 16 }, void 0, !1, {
|
|
1773
1772
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1774
|
-
lineNumber:
|
|
1773
|
+
lineNumber: 187,
|
|
1775
1774
|
columnNumber: 21
|
|
1776
1775
|
}, this),
|
|
1777
1776
|
() => e.chain().focus().redo().run(),
|
|
@@ -1780,28 +1779,30 @@ function Bi() {
|
|
|
1780
1779
|
)
|
|
1781
1780
|
] }, void 0, !0, {
|
|
1782
1781
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1783
|
-
lineNumber:
|
|
1782
|
+
lineNumber: 179,
|
|
1784
1783
|
columnNumber: 13
|
|
1785
1784
|
}, this),
|
|
1786
1785
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1787
1786
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1788
|
-
lineNumber:
|
|
1787
|
+
lineNumber: 194,
|
|
1789
1788
|
columnNumber: 13
|
|
1790
1789
|
}, this),
|
|
1791
1790
|
n(
|
|
1792
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1791
|
+
/* @__PURE__ */ l.jsxDEV(ni, { size: 16 }, void 0, !1, {
|
|
1793
1792
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1794
|
-
lineNumber:
|
|
1793
|
+
lineNumber: 197,
|
|
1795
1794
|
columnNumber: 17
|
|
1796
1795
|
}, this),
|
|
1797
1796
|
() => {
|
|
1798
1797
|
const o = prompt("Enter the image URL");
|
|
1799
|
-
e.chain().focus().insertContent({
|
|
1798
|
+
o && e.chain().focus().insertContent({
|
|
1800
1799
|
type: "image",
|
|
1801
1800
|
attrs: {
|
|
1802
1801
|
src: o,
|
|
1803
1802
|
width: 300,
|
|
1804
|
-
height: 300
|
|
1803
|
+
height: 300,
|
|
1804
|
+
marginLeft: 0,
|
|
1805
|
+
marginRight: 0
|
|
1805
1806
|
}
|
|
1806
1807
|
}).run();
|
|
1807
1808
|
},
|
|
@@ -1811,27 +1812,27 @@ function Bi() {
|
|
|
1811
1812
|
),
|
|
1812
1813
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1813
1814
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1814
|
-
lineNumber:
|
|
1815
|
+
lineNumber: 218,
|
|
1815
1816
|
columnNumber: 13
|
|
1816
1817
|
}, this),
|
|
1817
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1818
|
+
/* @__PURE__ */ l.jsxDEV(Li, { editor: e }, void 0, !1, {
|
|
1818
1819
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1819
|
-
lineNumber:
|
|
1820
|
+
lineNumber: 221,
|
|
1820
1821
|
columnNumber: 13
|
|
1821
1822
|
}, this),
|
|
1822
1823
|
/* @__PURE__ */ l.jsxDEV("div", { className: "h-5 w-[1px] bg-gray-300 mx-2" }, void 0, !1, {
|
|
1823
1824
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1824
|
-
lineNumber:
|
|
1825
|
+
lineNumber: 223,
|
|
1825
1826
|
columnNumber: 13
|
|
1826
1827
|
}, this),
|
|
1827
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
1828
|
+
/* @__PURE__ */ l.jsxDEV(Hi, { editor: e }, void 0, !1, {
|
|
1828
1829
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1829
|
-
lineNumber:
|
|
1830
|
+
lineNumber: 224,
|
|
1830
1831
|
columnNumber: 13
|
|
1831
1832
|
}, this)
|
|
1832
1833
|
] }, void 0, !0, {
|
|
1833
1834
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/tool-bar/tool-bar-tiptap.tsx",
|
|
1834
|
-
lineNumber:
|
|
1835
|
+
lineNumber: 48,
|
|
1835
1836
|
columnNumber: 9
|
|
1836
1837
|
}, this);
|
|
1837
1838
|
}
|
|
@@ -1851,13 +1852,13 @@ const Sr = ({
|
|
|
1851
1852
|
columnNumber: 9
|
|
1852
1853
|
}, void 0) : null;
|
|
1853
1854
|
return /* @__PURE__ */ l.jsxDEV("div", { children: [
|
|
1854
|
-
r && s ? /* @__PURE__ */ l.jsxDEV(
|
|
1855
|
+
r && s ? /* @__PURE__ */ l.jsxDEV(Ct, { overlay: s, trigger: ["contextMenu"], children: t }, void 0, !1, {
|
|
1855
1856
|
fileName: "E:/CyberSkill/cyber-editor/src/components/modal-edit.tsx",
|
|
1856
1857
|
lineNumber: 28,
|
|
1857
1858
|
columnNumber: 17
|
|
1858
1859
|
}, void 0) : t,
|
|
1859
1860
|
/* @__PURE__ */ l.jsxDEV(
|
|
1860
|
-
|
|
1861
|
+
fn,
|
|
1861
1862
|
{
|
|
1862
1863
|
title: `Edit ${e}`,
|
|
1863
1864
|
open: o,
|
|
@@ -1879,15 +1880,13 @@ const Sr = ({
|
|
|
1879
1880
|
lineNumber: 26,
|
|
1880
1881
|
columnNumber: 9
|
|
1881
1882
|
}, void 0);
|
|
1882
|
-
},
|
|
1883
|
-
const [
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
},
|
|
1888
|
-
|
|
1889
|
-
}, p = (b) => {
|
|
1890
|
-
u(b.toHexString());
|
|
1883
|
+
}, Bi = ({ node: e, editor: t }) => {
|
|
1884
|
+
const [r, n] = he(!1), [o, a] = he(e.attrs.bgColor || "#f3f4f6"), [s, u] = he(e.attrs.titleColor || "#000000"), m = (v) => {
|
|
1885
|
+
v.preventDefault();
|
|
1886
|
+
}, p = (v) => {
|
|
1887
|
+
a(v.toHexString());
|
|
1888
|
+
}, y = (v) => {
|
|
1889
|
+
u(v.toHexString());
|
|
1891
1890
|
};
|
|
1892
1891
|
return /* @__PURE__ */ l.jsxDEV(yr, { className: "accordion-wrapper", children: /* @__PURE__ */ l.jsxDEV(
|
|
1893
1892
|
Sr,
|
|
@@ -1897,21 +1896,22 @@ const Sr = ({
|
|
|
1897
1896
|
"div",
|
|
1898
1897
|
{
|
|
1899
1898
|
className: "my-4 transition-all duration-300 border rounded-lg shadow-sm",
|
|
1900
|
-
onContextMenu:
|
|
1899
|
+
onContextMenu: m,
|
|
1901
1900
|
children: [
|
|
1902
1901
|
/* @__PURE__ */ l.jsxDEV(
|
|
1903
1902
|
"div",
|
|
1904
1903
|
{
|
|
1905
1904
|
className: "flex items-center justify-between p-4 transition-colors accordion-header",
|
|
1906
1905
|
style: { backgroundColor: o },
|
|
1907
|
-
onClick: () =>
|
|
1906
|
+
onClick: () => n(!r),
|
|
1908
1907
|
children: [
|
|
1909
1908
|
/* @__PURE__ */ l.jsxDEV(
|
|
1910
1909
|
"input",
|
|
1911
1910
|
{
|
|
1912
1911
|
className: "w-full text-lg font-medium bg-transparent border-none outline-none",
|
|
1913
1912
|
style: { color: s },
|
|
1914
|
-
|
|
1913
|
+
defaultValue: e.attrs.title || "Accordion Title",
|
|
1914
|
+
disabled: !t.isEditable,
|
|
1915
1915
|
suppressContentEditableWarning: !0,
|
|
1916
1916
|
contentEditable: !0,
|
|
1917
1917
|
placeholder: "Accordion title"
|
|
@@ -1920,7 +1920,7 @@ const Sr = ({
|
|
|
1920
1920
|
!1,
|
|
1921
1921
|
{
|
|
1922
1922
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1923
|
-
lineNumber:
|
|
1923
|
+
lineNumber: 38,
|
|
1924
1924
|
columnNumber: 29
|
|
1925
1925
|
},
|
|
1926
1926
|
void 0
|
|
@@ -1928,14 +1928,14 @@ const Sr = ({
|
|
|
1928
1928
|
/* @__PURE__ */ l.jsxDEV(
|
|
1929
1929
|
Fn,
|
|
1930
1930
|
{
|
|
1931
|
-
className: `transition-transform duration-300 ${
|
|
1931
|
+
className: `transition-transform duration-300 ${r ? "rotate-180" : ""}`,
|
|
1932
1932
|
size: 20
|
|
1933
1933
|
},
|
|
1934
1934
|
void 0,
|
|
1935
1935
|
!1,
|
|
1936
1936
|
{
|
|
1937
1937
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1938
|
-
lineNumber:
|
|
1938
|
+
lineNumber: 47,
|
|
1939
1939
|
columnNumber: 29
|
|
1940
1940
|
},
|
|
1941
1941
|
void 0
|
|
@@ -1946,7 +1946,7 @@ const Sr = ({
|
|
|
1946
1946
|
!0,
|
|
1947
1947
|
{
|
|
1948
1948
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1949
|
-
lineNumber:
|
|
1949
|
+
lineNumber: 33,
|
|
1950
1950
|
columnNumber: 25
|
|
1951
1951
|
},
|
|
1952
1952
|
void 0
|
|
@@ -1954,23 +1954,23 @@ const Sr = ({
|
|
|
1954
1954
|
/* @__PURE__ */ l.jsxDEV(
|
|
1955
1955
|
"div",
|
|
1956
1956
|
{
|
|
1957
|
-
className: `overflow-hidden duration-300 ease-in-out ${
|
|
1957
|
+
className: `overflow-hidden duration-300 ease-in-out ${r ? "max-h-96 opacity-100" : "max-h-0 opacity-0"} `,
|
|
1958
1958
|
children: /* @__PURE__ */ l.jsxDEV("div", { className: "p-4 border-t", children: /* @__PURE__ */ l.jsxDEV(
|
|
1959
|
-
|
|
1959
|
+
ln,
|
|
1960
1960
|
{
|
|
1961
|
-
contentEditable:
|
|
1961
|
+
contentEditable: t.isEditable
|
|
1962
1962
|
},
|
|
1963
1963
|
void 0,
|
|
1964
1964
|
!1,
|
|
1965
1965
|
{
|
|
1966
1966
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1967
|
-
lineNumber:
|
|
1967
|
+
lineNumber: 57,
|
|
1968
1968
|
columnNumber: 33
|
|
1969
1969
|
},
|
|
1970
1970
|
void 0
|
|
1971
1971
|
) }, void 0, !1, {
|
|
1972
1972
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1973
|
-
lineNumber:
|
|
1973
|
+
lineNumber: 56,
|
|
1974
1974
|
columnNumber: 29
|
|
1975
1975
|
}, void 0)
|
|
1976
1976
|
},
|
|
@@ -1978,7 +1978,7 @@ const Sr = ({
|
|
|
1978
1978
|
!1,
|
|
1979
1979
|
{
|
|
1980
1980
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1981
|
-
lineNumber:
|
|
1981
|
+
lineNumber: 53,
|
|
1982
1982
|
columnNumber: 25
|
|
1983
1983
|
},
|
|
1984
1984
|
void 0
|
|
@@ -1989,18 +1989,18 @@ const Sr = ({
|
|
|
1989
1989
|
!0,
|
|
1990
1990
|
{
|
|
1991
1991
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
1992
|
-
lineNumber:
|
|
1992
|
+
lineNumber: 29,
|
|
1993
1993
|
columnNumber: 21
|
|
1994
1994
|
},
|
|
1995
1995
|
void 0
|
|
1996
1996
|
),
|
|
1997
|
-
editable:
|
|
1997
|
+
editable: t.isEditable,
|
|
1998
1998
|
childrenEdit: /* @__PURE__ */ l.jsxDEV("div", { className: "px-6 py-4 space-y-6 rounded-lg bg-gray-50", children: [
|
|
1999
1999
|
/* @__PURE__ */ l.jsxDEV("div", { className: "grid grid-cols-1 gap-6", children: [
|
|
2000
2000
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex flex-col space-y-2", children: [
|
|
2001
2001
|
/* @__PURE__ */ l.jsxDEV("label", { className: "font-medium text-gray-700", children: "Background Color" }, void 0, !1, {
|
|
2002
2002
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2003
|
-
lineNumber:
|
|
2003
|
+
lineNumber: 69,
|
|
2004
2004
|
columnNumber: 33
|
|
2005
2005
|
}, void 0),
|
|
2006
2006
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center space-x-3", children: [
|
|
@@ -2014,30 +2014,30 @@ const Sr = ({
|
|
|
2014
2014
|
!1,
|
|
2015
2015
|
{
|
|
2016
2016
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2017
|
-
lineNumber:
|
|
2017
|
+
lineNumber: 71,
|
|
2018
2018
|
columnNumber: 37
|
|
2019
2019
|
},
|
|
2020
2020
|
void 0
|
|
2021
2021
|
),
|
|
2022
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
2022
|
+
/* @__PURE__ */ l.jsxDEV(Fe, { value: o, onChange: p }, void 0, !1, {
|
|
2023
2023
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2024
|
-
lineNumber:
|
|
2024
|
+
lineNumber: 75,
|
|
2025
2025
|
columnNumber: 37
|
|
2026
2026
|
}, void 0)
|
|
2027
2027
|
] }, void 0, !0, {
|
|
2028
2028
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2029
|
-
lineNumber:
|
|
2029
|
+
lineNumber: 70,
|
|
2030
2030
|
columnNumber: 33
|
|
2031
2031
|
}, void 0)
|
|
2032
2032
|
] }, void 0, !0, {
|
|
2033
2033
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2034
|
-
lineNumber:
|
|
2034
|
+
lineNumber: 68,
|
|
2035
2035
|
columnNumber: 29
|
|
2036
2036
|
}, void 0),
|
|
2037
2037
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex flex-col space-y-2", children: [
|
|
2038
2038
|
/* @__PURE__ */ l.jsxDEV("label", { className: "font-medium text-gray-700", children: "Title Color" }, void 0, !1, {
|
|
2039
2039
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2040
|
-
lineNumber:
|
|
2040
|
+
lineNumber: 80,
|
|
2041
2041
|
columnNumber: 33
|
|
2042
2042
|
}, void 0),
|
|
2043
2043
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex items-center space-x-3", children: [
|
|
@@ -2051,58 +2051,58 @@ const Sr = ({
|
|
|
2051
2051
|
!1,
|
|
2052
2052
|
{
|
|
2053
2053
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2054
|
-
lineNumber:
|
|
2054
|
+
lineNumber: 82,
|
|
2055
2055
|
columnNumber: 37
|
|
2056
2056
|
},
|
|
2057
2057
|
void 0
|
|
2058
2058
|
),
|
|
2059
|
-
/* @__PURE__ */ l.jsxDEV(
|
|
2059
|
+
/* @__PURE__ */ l.jsxDEV(Fe, { value: s, onChange: y }, void 0, !1, {
|
|
2060
2060
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2061
|
-
lineNumber:
|
|
2061
|
+
lineNumber: 86,
|
|
2062
2062
|
columnNumber: 37
|
|
2063
2063
|
}, void 0)
|
|
2064
2064
|
] }, void 0, !0, {
|
|
2065
2065
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2066
|
-
lineNumber:
|
|
2066
|
+
lineNumber: 81,
|
|
2067
2067
|
columnNumber: 33
|
|
2068
2068
|
}, void 0)
|
|
2069
2069
|
] }, void 0, !0, {
|
|
2070
2070
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2071
|
-
lineNumber:
|
|
2071
|
+
lineNumber: 79,
|
|
2072
2072
|
columnNumber: 29
|
|
2073
2073
|
}, void 0)
|
|
2074
2074
|
] }, void 0, !0, {
|
|
2075
2075
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2076
|
-
lineNumber:
|
|
2076
|
+
lineNumber: 67,
|
|
2077
2077
|
columnNumber: 25
|
|
2078
2078
|
}, void 0),
|
|
2079
2079
|
/* @__PURE__ */ l.jsxDEV("div", { className: "pt-4 border-t border-gray-200", children: /* @__PURE__ */ l.jsxDEV("div", { className: "p-3 bg-white border rounded-md", children: [
|
|
2080
2080
|
/* @__PURE__ */ l.jsxDEV("div", { className: "text-sm text-gray-600", children: "Preview" }, void 0, !1, {
|
|
2081
2081
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2082
|
-
lineNumber:
|
|
2082
|
+
lineNumber: 93,
|
|
2083
2083
|
columnNumber: 33
|
|
2084
2084
|
}, void 0),
|
|
2085
2085
|
/* @__PURE__ */ l.jsxDEV("div", { className: "p-2 mt-2 rounded", style: { backgroundColor: o }, children: /* @__PURE__ */ l.jsxDEV("span", { style: { color: s, fontWeight: 500 }, children: "Accordion Title" }, void 0, !1, {
|
|
2086
2086
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2087
|
-
lineNumber:
|
|
2087
|
+
lineNumber: 95,
|
|
2088
2088
|
columnNumber: 37
|
|
2089
2089
|
}, void 0) }, void 0, !1, {
|
|
2090
2090
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2091
|
-
lineNumber:
|
|
2091
|
+
lineNumber: 94,
|
|
2092
2092
|
columnNumber: 33
|
|
2093
2093
|
}, void 0)
|
|
2094
2094
|
] }, void 0, !0, {
|
|
2095
2095
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2096
|
-
lineNumber:
|
|
2096
|
+
lineNumber: 92,
|
|
2097
2097
|
columnNumber: 29
|
|
2098
2098
|
}, void 0) }, void 0, !1, {
|
|
2099
2099
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2100
|
-
lineNumber:
|
|
2100
|
+
lineNumber: 91,
|
|
2101
2101
|
columnNumber: 25
|
|
2102
2102
|
}, void 0)
|
|
2103
2103
|
] }, void 0, !0, {
|
|
2104
2104
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2105
|
-
lineNumber:
|
|
2105
|
+
lineNumber: 66,
|
|
2106
2106
|
columnNumber: 21
|
|
2107
2107
|
}, void 0)
|
|
2108
2108
|
},
|
|
@@ -2110,16 +2110,16 @@ const Sr = ({
|
|
|
2110
2110
|
!1,
|
|
2111
2111
|
{
|
|
2112
2112
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2113
|
-
lineNumber:
|
|
2113
|
+
lineNumber: 26,
|
|
2114
2114
|
columnNumber: 13
|
|
2115
2115
|
},
|
|
2116
2116
|
void 0
|
|
2117
2117
|
) }, void 0, !1, {
|
|
2118
2118
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/accordion/accordion-view.tsx",
|
|
2119
|
-
lineNumber:
|
|
2119
|
+
lineNumber: 25,
|
|
2120
2120
|
columnNumber: 9
|
|
2121
2121
|
}, void 0);
|
|
2122
|
-
},
|
|
2122
|
+
}, Xi = gr.create({
|
|
2123
2123
|
name: "accordion",
|
|
2124
2124
|
group: "block",
|
|
2125
2125
|
content: "block+",
|
|
@@ -2128,6 +2128,19 @@ const Sr = ({
|
|
|
2128
2128
|
selectable: !0,
|
|
2129
2129
|
inline: !1,
|
|
2130
2130
|
defining: !0,
|
|
2131
|
+
addAttributes() {
|
|
2132
|
+
return {
|
|
2133
|
+
title: {
|
|
2134
|
+
default: "Accordion Title"
|
|
2135
|
+
},
|
|
2136
|
+
bgColor: {
|
|
2137
|
+
default: "#f3f4f6"
|
|
2138
|
+
},
|
|
2139
|
+
titleColor: {
|
|
2140
|
+
default: "#000000"
|
|
2141
|
+
}
|
|
2142
|
+
};
|
|
2143
|
+
},
|
|
2131
2144
|
parseHTML() {
|
|
2132
2145
|
return [
|
|
2133
2146
|
{
|
|
@@ -2139,18 +2152,24 @@ const Sr = ({
|
|
|
2139
2152
|
return ["accordion", xr(e)];
|
|
2140
2153
|
},
|
|
2141
2154
|
addNodeView() {
|
|
2142
|
-
return vr(
|
|
2155
|
+
return vr(Bi);
|
|
2143
2156
|
},
|
|
2144
2157
|
addCommands() {
|
|
2145
2158
|
return {
|
|
2146
2159
|
setAccordion: (e) => ({ chain: t }) => t().insertContent({
|
|
2147
2160
|
type: "accordion",
|
|
2148
|
-
attrs: e
|
|
2161
|
+
attrs: e,
|
|
2162
|
+
content: [
|
|
2163
|
+
{
|
|
2164
|
+
type: "paragraph",
|
|
2165
|
+
content: [{ type: "text", text: "Accordion content" }]
|
|
2166
|
+
}
|
|
2167
|
+
]
|
|
2149
2168
|
}).run()
|
|
2150
2169
|
};
|
|
2151
2170
|
}
|
|
2152
2171
|
});
|
|
2153
|
-
var
|
|
2172
|
+
var kt = { exports: {} }, ze = {}, Be = { exports: {} }, wr = {}, xt = { exports: {} }, qe = { exports: {} }, F = {};
|
|
2154
2173
|
/** @license React v16.13.1
|
|
2155
2174
|
* react-is.production.min.js
|
|
2156
2175
|
*
|
|
@@ -2159,12 +2178,12 @@ var Dt = { exports: {} }, ze = {}, Be = { exports: {} }, wr = {}, xt = { exports
|
|
|
2159
2178
|
* This source code is licensed under the MIT license found in the
|
|
2160
2179
|
* LICENSE file in the root directory of this source tree.
|
|
2161
2180
|
*/
|
|
2162
|
-
var
|
|
2163
|
-
function
|
|
2164
|
-
if (
|
|
2165
|
-
|
|
2166
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
2167
|
-
function
|
|
2181
|
+
var er;
|
|
2182
|
+
function Ki() {
|
|
2183
|
+
if (er) return F;
|
|
2184
|
+
er = 1;
|
|
2185
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
|
|
2186
|
+
function N(c) {
|
|
2168
2187
|
if (typeof c == "object" && c !== null) {
|
|
2169
2188
|
var Y = c.$$typeof;
|
|
2170
2189
|
switch (Y) {
|
|
@@ -2175,12 +2194,12 @@ function Gi() {
|
|
|
2175
2194
|
case n:
|
|
2176
2195
|
case a:
|
|
2177
2196
|
case o:
|
|
2178
|
-
case
|
|
2197
|
+
case v:
|
|
2179
2198
|
return c;
|
|
2180
2199
|
default:
|
|
2181
2200
|
switch (c = c && c.$$typeof, c) {
|
|
2182
2201
|
case u:
|
|
2183
|
-
case
|
|
2202
|
+
case y:
|
|
2184
2203
|
case A:
|
|
2185
2204
|
case S:
|
|
2186
2205
|
case s:
|
|
@@ -2195,37 +2214,37 @@ function Gi() {
|
|
|
2195
2214
|
}
|
|
2196
2215
|
}
|
|
2197
2216
|
function E(c) {
|
|
2198
|
-
return
|
|
2217
|
+
return N(c) === p;
|
|
2199
2218
|
}
|
|
2200
|
-
return
|
|
2201
|
-
return E(c) ||
|
|
2202
|
-
},
|
|
2203
|
-
return
|
|
2204
|
-
},
|
|
2205
|
-
return
|
|
2206
|
-
},
|
|
2219
|
+
return F.AsyncMode = m, F.ConcurrentMode = p, F.ContextConsumer = u, F.ContextProvider = s, F.Element = t, F.ForwardRef = y, F.Fragment = n, F.Lazy = A, F.Memo = S, F.Portal = r, F.Profiler = a, F.StrictMode = o, F.Suspense = v, F.isAsyncMode = function(c) {
|
|
2220
|
+
return E(c) || N(c) === m;
|
|
2221
|
+
}, F.isConcurrentMode = E, F.isContextConsumer = function(c) {
|
|
2222
|
+
return N(c) === u;
|
|
2223
|
+
}, F.isContextProvider = function(c) {
|
|
2224
|
+
return N(c) === s;
|
|
2225
|
+
}, F.isElement = function(c) {
|
|
2207
2226
|
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
2208
|
-
},
|
|
2209
|
-
return
|
|
2210
|
-
},
|
|
2211
|
-
return
|
|
2212
|
-
},
|
|
2213
|
-
return
|
|
2214
|
-
},
|
|
2215
|
-
return
|
|
2216
|
-
},
|
|
2217
|
-
return
|
|
2218
|
-
},
|
|
2219
|
-
return
|
|
2220
|
-
},
|
|
2221
|
-
return
|
|
2222
|
-
},
|
|
2223
|
-
return
|
|
2224
|
-
},
|
|
2225
|
-
return typeof c == "string" || typeof c == "function" || c === n || c === p || c === a || c === o || c ===
|
|
2226
|
-
},
|
|
2227
|
+
}, F.isForwardRef = function(c) {
|
|
2228
|
+
return N(c) === y;
|
|
2229
|
+
}, F.isFragment = function(c) {
|
|
2230
|
+
return N(c) === n;
|
|
2231
|
+
}, F.isLazy = function(c) {
|
|
2232
|
+
return N(c) === A;
|
|
2233
|
+
}, F.isMemo = function(c) {
|
|
2234
|
+
return N(c) === S;
|
|
2235
|
+
}, F.isPortal = function(c) {
|
|
2236
|
+
return N(c) === r;
|
|
2237
|
+
}, F.isProfiler = function(c) {
|
|
2238
|
+
return N(c) === a;
|
|
2239
|
+
}, F.isStrictMode = function(c) {
|
|
2240
|
+
return N(c) === o;
|
|
2241
|
+
}, F.isSuspense = function(c) {
|
|
2242
|
+
return N(c) === v;
|
|
2243
|
+
}, F.isValidElementType = function(c) {
|
|
2244
|
+
return typeof c == "string" || typeof c == "function" || c === n || c === p || c === a || c === o || c === v || c === O || typeof c == "object" && c !== null && (c.$$typeof === A || c.$$typeof === S || c.$$typeof === s || c.$$typeof === u || c.$$typeof === y || c.$$typeof === B || c.$$typeof === W || c.$$typeof === g || c.$$typeof === $);
|
|
2245
|
+
}, F.typeOf = N, F;
|
|
2227
2246
|
}
|
|
2228
|
-
var
|
|
2247
|
+
var U = {};
|
|
2229
2248
|
/** @license React v16.13.1
|
|
2230
2249
|
* react-is.development.js
|
|
2231
2250
|
*
|
|
@@ -2234,33 +2253,33 @@ var F = {};
|
|
|
2234
2253
|
* This source code is licensed under the MIT license found in the
|
|
2235
2254
|
* LICENSE file in the root directory of this source tree.
|
|
2236
2255
|
*/
|
|
2237
|
-
var
|
|
2238
|
-
function
|
|
2239
|
-
return
|
|
2240
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
2241
|
-
function
|
|
2242
|
-
return typeof
|
|
2243
|
-
|
|
2256
|
+
var tr;
|
|
2257
|
+
function Gi() {
|
|
2258
|
+
return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2259
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, A = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
|
|
2260
|
+
function N(b) {
|
|
2261
|
+
return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2262
|
+
b === n || b === p || b === a || b === o || b === v || b === O || typeof b == "object" && b !== null && (b.$$typeof === A || b.$$typeof === S || b.$$typeof === s || b.$$typeof === u || b.$$typeof === y || b.$$typeof === B || b.$$typeof === W || b.$$typeof === g || b.$$typeof === $);
|
|
2244
2263
|
}
|
|
2245
|
-
function E(
|
|
2246
|
-
if (typeof
|
|
2247
|
-
var pe =
|
|
2264
|
+
function E(b) {
|
|
2265
|
+
if (typeof b == "object" && b !== null) {
|
|
2266
|
+
var pe = b.$$typeof;
|
|
2248
2267
|
switch (pe) {
|
|
2249
2268
|
case t:
|
|
2250
|
-
var Re =
|
|
2269
|
+
var Re = b.type;
|
|
2251
2270
|
switch (Re) {
|
|
2252
2271
|
case m:
|
|
2253
2272
|
case p:
|
|
2254
2273
|
case n:
|
|
2255
2274
|
case a:
|
|
2256
2275
|
case o:
|
|
2257
|
-
case
|
|
2276
|
+
case v:
|
|
2258
2277
|
return Re;
|
|
2259
2278
|
default:
|
|
2260
2279
|
var ke = Re && Re.$$typeof;
|
|
2261
2280
|
switch (ke) {
|
|
2262
2281
|
case u:
|
|
2263
|
-
case
|
|
2282
|
+
case y:
|
|
2264
2283
|
case A:
|
|
2265
2284
|
case S:
|
|
2266
2285
|
case s:
|
|
@@ -2274,62 +2293,62 @@ function Ji() {
|
|
|
2274
2293
|
}
|
|
2275
2294
|
}
|
|
2276
2295
|
}
|
|
2277
|
-
var c = m, Y = p,
|
|
2278
|
-
function Se(
|
|
2279
|
-
return ge || (ge = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(
|
|
2296
|
+
var c = m, Y = p, T = u, Q = s, de = t, fe = y, ye = n, Ee = A, ee = S, Z = r, me = a, oe = o, le = v, ge = !1;
|
|
2297
|
+
function Se(b) {
|
|
2298
|
+
return ge || (ge = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(b) || E(b) === m;
|
|
2280
2299
|
}
|
|
2281
|
-
function f(
|
|
2282
|
-
return E(
|
|
2300
|
+
function f(b) {
|
|
2301
|
+
return E(b) === p;
|
|
2283
2302
|
}
|
|
2284
|
-
function
|
|
2285
|
-
return E(
|
|
2303
|
+
function x(b) {
|
|
2304
|
+
return E(b) === u;
|
|
2286
2305
|
}
|
|
2287
|
-
function
|
|
2288
|
-
return E(
|
|
2306
|
+
function P(b) {
|
|
2307
|
+
return E(b) === s;
|
|
2289
2308
|
}
|
|
2290
|
-
function R(
|
|
2291
|
-
return typeof
|
|
2309
|
+
function R(b) {
|
|
2310
|
+
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
2292
2311
|
}
|
|
2293
|
-
function C(
|
|
2294
|
-
return E(
|
|
2312
|
+
function C(b) {
|
|
2313
|
+
return E(b) === y;
|
|
2295
2314
|
}
|
|
2296
|
-
function z(
|
|
2297
|
-
return E(
|
|
2315
|
+
function z(b) {
|
|
2316
|
+
return E(b) === n;
|
|
2298
2317
|
}
|
|
2299
|
-
function k(
|
|
2300
|
-
return E(
|
|
2318
|
+
function k(b) {
|
|
2319
|
+
return E(b) === A;
|
|
2301
2320
|
}
|
|
2302
|
-
function _(
|
|
2303
|
-
return E(
|
|
2321
|
+
function _(b) {
|
|
2322
|
+
return E(b) === S;
|
|
2304
2323
|
}
|
|
2305
|
-
function j(
|
|
2306
|
-
return E(
|
|
2324
|
+
function j(b) {
|
|
2325
|
+
return E(b) === r;
|
|
2307
2326
|
}
|
|
2308
|
-
function H(
|
|
2309
|
-
return E(
|
|
2327
|
+
function H(b) {
|
|
2328
|
+
return E(b) === a;
|
|
2310
2329
|
}
|
|
2311
|
-
function M(
|
|
2312
|
-
return E(
|
|
2330
|
+
function M(b) {
|
|
2331
|
+
return E(b) === o;
|
|
2313
2332
|
}
|
|
2314
|
-
function te(
|
|
2315
|
-
return E(
|
|
2333
|
+
function te(b) {
|
|
2334
|
+
return E(b) === v;
|
|
2316
2335
|
}
|
|
2317
|
-
|
|
2318
|
-
}()),
|
|
2336
|
+
U.AsyncMode = c, U.ConcurrentMode = Y, U.ContextConsumer = T, U.ContextProvider = Q, U.Element = de, U.ForwardRef = fe, U.Fragment = ye, U.Lazy = Ee, U.Memo = ee, U.Portal = Z, U.Profiler = me, U.StrictMode = oe, U.Suspense = le, U.isAsyncMode = Se, U.isConcurrentMode = f, U.isContextConsumer = x, U.isContextProvider = P, U.isElement = R, U.isForwardRef = C, U.isFragment = z, U.isLazy = k, U.isMemo = _, U.isPortal = j, U.isProfiler = H, U.isStrictMode = M, U.isSuspense = te, U.isValidElementType = N, U.typeOf = E;
|
|
2337
|
+
}()), U;
|
|
2319
2338
|
}
|
|
2320
|
-
var
|
|
2339
|
+
var rr;
|
|
2321
2340
|
function Cr() {
|
|
2322
|
-
return
|
|
2341
|
+
return rr || (rr = 1, process.env.NODE_ENV === "production" ? qe.exports = Ki() : qe.exports = Gi()), qe.exports;
|
|
2323
2342
|
}
|
|
2324
2343
|
/*
|
|
2325
2344
|
object-assign
|
|
2326
2345
|
(c) Sindre Sorhus
|
|
2327
2346
|
@license MIT
|
|
2328
2347
|
*/
|
|
2329
|
-
var at,
|
|
2330
|
-
function
|
|
2331
|
-
if (
|
|
2332
|
-
|
|
2348
|
+
var at, nr;
|
|
2349
|
+
function Ji() {
|
|
2350
|
+
if (nr) return at;
|
|
2351
|
+
nr = 1;
|
|
2333
2352
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
2334
2353
|
function n(a) {
|
|
2335
2354
|
if (a == null)
|
|
@@ -2345,24 +2364,24 @@ function Zi() {
|
|
|
2345
2364
|
return !1;
|
|
2346
2365
|
for (var s = {}, u = 0; u < 10; u++)
|
|
2347
2366
|
s["_" + String.fromCharCode(u)] = u;
|
|
2348
|
-
var m = Object.getOwnPropertyNames(s).map(function(
|
|
2349
|
-
return s[
|
|
2367
|
+
var m = Object.getOwnPropertyNames(s).map(function(y) {
|
|
2368
|
+
return s[y];
|
|
2350
2369
|
});
|
|
2351
2370
|
if (m.join("") !== "0123456789")
|
|
2352
2371
|
return !1;
|
|
2353
2372
|
var p = {};
|
|
2354
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
2355
|
-
p[
|
|
2373
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(y) {
|
|
2374
|
+
p[y] = y;
|
|
2356
2375
|
}), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
|
|
2357
2376
|
} catch {
|
|
2358
2377
|
return !1;
|
|
2359
2378
|
}
|
|
2360
2379
|
}
|
|
2361
2380
|
return at = o() ? Object.assign : function(a, s) {
|
|
2362
|
-
for (var u, m = n(a), p,
|
|
2363
|
-
u = Object(arguments[
|
|
2364
|
-
for (var
|
|
2365
|
-
t.call(u,
|
|
2381
|
+
for (var u, m = n(a), p, y = 1; y < arguments.length; y++) {
|
|
2382
|
+
u = Object(arguments[y]);
|
|
2383
|
+
for (var v in u)
|
|
2384
|
+
t.call(u, v) && (m[v] = u[v]);
|
|
2366
2385
|
if (e) {
|
|
2367
2386
|
p = e(u);
|
|
2368
2387
|
for (var O = 0; O < p.length; O++)
|
|
@@ -2372,25 +2391,25 @@ function Zi() {
|
|
|
2372
2391
|
return m;
|
|
2373
2392
|
}, at;
|
|
2374
2393
|
}
|
|
2375
|
-
var st,
|
|
2376
|
-
function
|
|
2377
|
-
if (
|
|
2378
|
-
|
|
2394
|
+
var st, ir;
|
|
2395
|
+
function Dt() {
|
|
2396
|
+
if (ir) return st;
|
|
2397
|
+
ir = 1;
|
|
2379
2398
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2380
2399
|
return st = e, st;
|
|
2381
2400
|
}
|
|
2382
|
-
var lt,
|
|
2401
|
+
var lt, or;
|
|
2383
2402
|
function kr() {
|
|
2384
|
-
return
|
|
2403
|
+
return or || (or = 1, lt = Function.call.bind(Object.prototype.hasOwnProperty)), lt;
|
|
2385
2404
|
}
|
|
2386
|
-
var ct,
|
|
2387
|
-
function
|
|
2388
|
-
if (
|
|
2389
|
-
|
|
2405
|
+
var ct, ar;
|
|
2406
|
+
function Zi() {
|
|
2407
|
+
if (ar) return ct;
|
|
2408
|
+
ar = 1;
|
|
2390
2409
|
var e = function() {
|
|
2391
2410
|
};
|
|
2392
2411
|
if (process.env.NODE_ENV !== "production") {
|
|
2393
|
-
var t =
|
|
2412
|
+
var t = Dt(), r = {}, n = kr();
|
|
2394
2413
|
e = function(a) {
|
|
2395
2414
|
var s = "Warning: " + a;
|
|
2396
2415
|
typeof console < "u" && console.error(s);
|
|
@@ -2402,27 +2421,27 @@ function Qi() {
|
|
|
2402
2421
|
}
|
|
2403
2422
|
function o(a, s, u, m, p) {
|
|
2404
2423
|
if (process.env.NODE_ENV !== "production") {
|
|
2405
|
-
for (var
|
|
2406
|
-
if (n(a,
|
|
2407
|
-
var
|
|
2424
|
+
for (var y in a)
|
|
2425
|
+
if (n(a, y)) {
|
|
2426
|
+
var v;
|
|
2408
2427
|
try {
|
|
2409
|
-
if (typeof a[
|
|
2428
|
+
if (typeof a[y] != "function") {
|
|
2410
2429
|
var O = Error(
|
|
2411
|
-
(m || "React class") + ": " + u + " type `" +
|
|
2430
|
+
(m || "React class") + ": " + u + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
2412
2431
|
);
|
|
2413
2432
|
throw O.name = "Invariant Violation", O;
|
|
2414
2433
|
}
|
|
2415
|
-
|
|
2434
|
+
v = a[y](s, y, m, u, null, t);
|
|
2416
2435
|
} catch (A) {
|
|
2417
|
-
|
|
2436
|
+
v = A;
|
|
2418
2437
|
}
|
|
2419
|
-
if (
|
|
2420
|
-
(m || "React class") + ": type specification of " + u + " `" +
|
|
2421
|
-
),
|
|
2422
|
-
r[
|
|
2438
|
+
if (v && !(v instanceof Error) && e(
|
|
2439
|
+
(m || "React class") + ": type specification of " + u + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
2440
|
+
), v instanceof Error && !(v.message in r)) {
|
|
2441
|
+
r[v.message] = !0;
|
|
2423
2442
|
var S = p ? p() : "";
|
|
2424
2443
|
e(
|
|
2425
|
-
"Failed " + u + " type: " +
|
|
2444
|
+
"Failed " + u + " type: " + v.message + (S ?? "")
|
|
2426
2445
|
);
|
|
2427
2446
|
}
|
|
2428
2447
|
}
|
|
@@ -2432,11 +2451,11 @@ function Qi() {
|
|
|
2432
2451
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
2433
2452
|
}, ct = o, ct;
|
|
2434
2453
|
}
|
|
2435
|
-
var ut,
|
|
2436
|
-
function
|
|
2437
|
-
if (
|
|
2438
|
-
|
|
2439
|
-
var e = Cr(), t =
|
|
2454
|
+
var ut, sr;
|
|
2455
|
+
function Qi() {
|
|
2456
|
+
if (sr) return ut;
|
|
2457
|
+
sr = 1;
|
|
2458
|
+
var e = Cr(), t = Ji(), r = Dt(), n = kr(), o = Zi(), a = function() {
|
|
2440
2459
|
};
|
|
2441
2460
|
process.env.NODE_ENV !== "production" && (a = function(u) {
|
|
2442
2461
|
var m = "Warning: " + u;
|
|
@@ -2450,11 +2469,11 @@ function eo() {
|
|
|
2450
2469
|
return null;
|
|
2451
2470
|
}
|
|
2452
2471
|
return ut = function(u, m) {
|
|
2453
|
-
var p = typeof Symbol == "function" && Symbol.iterator,
|
|
2454
|
-
function
|
|
2455
|
-
var
|
|
2456
|
-
if (typeof
|
|
2457
|
-
return
|
|
2472
|
+
var p = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
|
|
2473
|
+
function v(f) {
|
|
2474
|
+
var x = f && (p && f[p] || f[y]);
|
|
2475
|
+
if (typeof x == "function")
|
|
2476
|
+
return x;
|
|
2458
2477
|
}
|
|
2459
2478
|
var O = "<<anonymous>>", S = {
|
|
2460
2479
|
array: W("array"),
|
|
@@ -2465,41 +2484,41 @@ function eo() {
|
|
|
2465
2484
|
object: W("object"),
|
|
2466
2485
|
string: W("string"),
|
|
2467
2486
|
symbol: W("symbol"),
|
|
2468
|
-
any:
|
|
2469
|
-
arrayOf:
|
|
2487
|
+
any: g(),
|
|
2488
|
+
arrayOf: N,
|
|
2470
2489
|
element: E(),
|
|
2471
2490
|
elementType: c(),
|
|
2472
2491
|
instanceOf: Y,
|
|
2473
2492
|
node: fe(),
|
|
2474
2493
|
objectOf: Q,
|
|
2475
|
-
oneOf:
|
|
2494
|
+
oneOf: T,
|
|
2476
2495
|
oneOfType: de,
|
|
2477
2496
|
shape: Ee,
|
|
2478
2497
|
exact: ee
|
|
2479
2498
|
};
|
|
2480
|
-
function A(f,
|
|
2481
|
-
return f ===
|
|
2499
|
+
function A(f, x) {
|
|
2500
|
+
return f === x ? f !== 0 || 1 / f === 1 / x : f !== f && x !== x;
|
|
2482
2501
|
}
|
|
2483
|
-
function $(f,
|
|
2484
|
-
this.message = f, this.data =
|
|
2502
|
+
function $(f, x) {
|
|
2503
|
+
this.message = f, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
2485
2504
|
}
|
|
2486
2505
|
$.prototype = Error.prototype;
|
|
2487
2506
|
function B(f) {
|
|
2488
2507
|
if (process.env.NODE_ENV !== "production")
|
|
2489
|
-
var
|
|
2508
|
+
var x = {}, P = 0;
|
|
2490
2509
|
function R(z, k, _, j, H, M, te) {
|
|
2491
2510
|
if (j = j || O, M = M || _, te !== r) {
|
|
2492
2511
|
if (m) {
|
|
2493
|
-
var
|
|
2512
|
+
var b = new Error(
|
|
2494
2513
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2495
2514
|
);
|
|
2496
|
-
throw
|
|
2515
|
+
throw b.name = "Invariant Violation", b;
|
|
2497
2516
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2498
2517
|
var pe = j + ":" + _;
|
|
2499
|
-
!
|
|
2500
|
-
|
|
2518
|
+
!x[pe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2519
|
+
P < 3 && (a(
|
|
2501
2520
|
"You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" + j + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
2502
|
-
),
|
|
2521
|
+
), x[pe] = !0, P++);
|
|
2503
2522
|
}
|
|
2504
2523
|
}
|
|
2505
2524
|
return k[_] == null ? z ? k[_] === null ? new $("The " + H + " `" + M + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new $("The " + H + " `" + M + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : f(k, _, j, H, M);
|
|
@@ -2508,8 +2527,8 @@ function eo() {
|
|
|
2508
2527
|
return C.isRequired = R.bind(null, !0), C;
|
|
2509
2528
|
}
|
|
2510
2529
|
function W(f) {
|
|
2511
|
-
function
|
|
2512
|
-
var j =
|
|
2530
|
+
function x(P, R, C, z, k, _) {
|
|
2531
|
+
var j = P[R], H = oe(j);
|
|
2513
2532
|
if (H !== f) {
|
|
2514
2533
|
var M = le(j);
|
|
2515
2534
|
return new $(
|
|
@@ -2519,16 +2538,16 @@ function eo() {
|
|
|
2519
2538
|
}
|
|
2520
2539
|
return null;
|
|
2521
2540
|
}
|
|
2522
|
-
return B(
|
|
2541
|
+
return B(x);
|
|
2523
2542
|
}
|
|
2524
|
-
function
|
|
2543
|
+
function g() {
|
|
2525
2544
|
return B(s);
|
|
2526
2545
|
}
|
|
2527
|
-
function
|
|
2528
|
-
function
|
|
2546
|
+
function N(f) {
|
|
2547
|
+
function x(P, R, C, z, k) {
|
|
2529
2548
|
if (typeof f != "function")
|
|
2530
2549
|
return new $("Property `" + k + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
|
|
2531
|
-
var _ =
|
|
2550
|
+
var _ = P[R];
|
|
2532
2551
|
if (!Array.isArray(_)) {
|
|
2533
2552
|
var j = oe(_);
|
|
2534
2553
|
return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected an array."));
|
|
@@ -2540,11 +2559,11 @@ function eo() {
|
|
|
2540
2559
|
}
|
|
2541
2560
|
return null;
|
|
2542
2561
|
}
|
|
2543
|
-
return B(
|
|
2562
|
+
return B(x);
|
|
2544
2563
|
}
|
|
2545
2564
|
function E() {
|
|
2546
|
-
function f(
|
|
2547
|
-
var k =
|
|
2565
|
+
function f(x, P, R, C, z) {
|
|
2566
|
+
var k = x[P];
|
|
2548
2567
|
if (!u(k)) {
|
|
2549
2568
|
var _ = oe(k);
|
|
2550
2569
|
return new $("Invalid " + C + " `" + z + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
@@ -2554,8 +2573,8 @@ function eo() {
|
|
|
2554
2573
|
return B(f);
|
|
2555
2574
|
}
|
|
2556
2575
|
function c() {
|
|
2557
|
-
function f(
|
|
2558
|
-
var k =
|
|
2576
|
+
function f(x, P, R, C, z) {
|
|
2577
|
+
var k = x[P];
|
|
2559
2578
|
if (!e.isValidElementType(k)) {
|
|
2560
2579
|
var _ = oe(k);
|
|
2561
2580
|
return new $("Invalid " + C + " `" + z + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
@@ -2565,37 +2584,37 @@ function eo() {
|
|
|
2565
2584
|
return B(f);
|
|
2566
2585
|
}
|
|
2567
2586
|
function Y(f) {
|
|
2568
|
-
function
|
|
2569
|
-
if (!(
|
|
2570
|
-
var _ = f.name || O, j = Se(
|
|
2587
|
+
function x(P, R, C, z, k) {
|
|
2588
|
+
if (!(P[R] instanceof f)) {
|
|
2589
|
+
var _ = f.name || O, j = Se(P[R]);
|
|
2571
2590
|
return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected ") + ("instance of `" + _ + "`."));
|
|
2572
2591
|
}
|
|
2573
2592
|
return null;
|
|
2574
2593
|
}
|
|
2575
|
-
return B(
|
|
2594
|
+
return B(x);
|
|
2576
2595
|
}
|
|
2577
|
-
function
|
|
2596
|
+
function T(f) {
|
|
2578
2597
|
if (!Array.isArray(f))
|
|
2579
2598
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
2580
2599
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
2581
2600
|
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
2582
|
-
function
|
|
2583
|
-
for (var _ =
|
|
2601
|
+
function x(P, R, C, z, k) {
|
|
2602
|
+
for (var _ = P[R], j = 0; j < f.length; j++)
|
|
2584
2603
|
if (A(_, f[j]))
|
|
2585
2604
|
return null;
|
|
2586
|
-
var H = JSON.stringify(f, function(te,
|
|
2587
|
-
var pe = le(
|
|
2588
|
-
return pe === "symbol" ? String(
|
|
2605
|
+
var H = JSON.stringify(f, function(te, b) {
|
|
2606
|
+
var pe = le(b);
|
|
2607
|
+
return pe === "symbol" ? String(b) : b;
|
|
2589
2608
|
});
|
|
2590
2609
|
return new $("Invalid " + z + " `" + k + "` of value `" + String(_) + "` " + ("supplied to `" + C + "`, expected one of " + H + "."));
|
|
2591
2610
|
}
|
|
2592
|
-
return B(
|
|
2611
|
+
return B(x);
|
|
2593
2612
|
}
|
|
2594
2613
|
function Q(f) {
|
|
2595
|
-
function
|
|
2614
|
+
function x(P, R, C, z, k) {
|
|
2596
2615
|
if (typeof f != "function")
|
|
2597
2616
|
return new $("Property `" + k + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
|
|
2598
|
-
var _ =
|
|
2617
|
+
var _ = P[R], j = oe(_);
|
|
2599
2618
|
if (j !== "object")
|
|
2600
2619
|
return new $("Invalid " + z + " `" + k + "` of type " + ("`" + j + "` supplied to `" + C + "`, expected an object."));
|
|
2601
2620
|
for (var H in _)
|
|
@@ -2606,24 +2625,24 @@ function eo() {
|
|
|
2606
2625
|
}
|
|
2607
2626
|
return null;
|
|
2608
2627
|
}
|
|
2609
|
-
return B(
|
|
2628
|
+
return B(x);
|
|
2610
2629
|
}
|
|
2611
2630
|
function de(f) {
|
|
2612
2631
|
if (!Array.isArray(f))
|
|
2613
2632
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
2614
|
-
for (var
|
|
2615
|
-
var
|
|
2616
|
-
if (typeof
|
|
2633
|
+
for (var x = 0; x < f.length; x++) {
|
|
2634
|
+
var P = f[x];
|
|
2635
|
+
if (typeof P != "function")
|
|
2617
2636
|
return a(
|
|
2618
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge(
|
|
2637
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge(P) + " at index " + x + "."
|
|
2619
2638
|
), s;
|
|
2620
2639
|
}
|
|
2621
2640
|
function R(C, z, k, _, j) {
|
|
2622
2641
|
for (var H = [], M = 0; M < f.length; M++) {
|
|
2623
|
-
var te = f[M],
|
|
2624
|
-
if (
|
|
2642
|
+
var te = f[M], b = te(C, z, k, _, j, r);
|
|
2643
|
+
if (b == null)
|
|
2625
2644
|
return null;
|
|
2626
|
-
|
|
2645
|
+
b.data && n(b.data, "expectedType") && H.push(b.data.expectedType);
|
|
2627
2646
|
}
|
|
2628
2647
|
var pe = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
|
|
2629
2648
|
return new $("Invalid " + _ + " `" + j + "` supplied to " + ("`" + k + "`" + pe + "."));
|
|
@@ -2631,19 +2650,19 @@ function eo() {
|
|
|
2631
2650
|
return B(R);
|
|
2632
2651
|
}
|
|
2633
2652
|
function fe() {
|
|
2634
|
-
function f(
|
|
2635
|
-
return Z(
|
|
2653
|
+
function f(x, P, R, C, z) {
|
|
2654
|
+
return Z(x[P]) ? null : new $("Invalid " + C + " `" + z + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
2636
2655
|
}
|
|
2637
2656
|
return B(f);
|
|
2638
2657
|
}
|
|
2639
|
-
function ye(f,
|
|
2658
|
+
function ye(f, x, P, R, C) {
|
|
2640
2659
|
return new $(
|
|
2641
|
-
(f || "React class") + ": " +
|
|
2660
|
+
(f || "React class") + ": " + x + " type `" + P + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
|
|
2642
2661
|
);
|
|
2643
2662
|
}
|
|
2644
2663
|
function Ee(f) {
|
|
2645
|
-
function
|
|
2646
|
-
var _ =
|
|
2664
|
+
function x(P, R, C, z, k) {
|
|
2665
|
+
var _ = P[R], j = oe(_);
|
|
2647
2666
|
if (j !== "object")
|
|
2648
2667
|
return new $("Invalid " + z + " `" + k + "` of type `" + j + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
2649
2668
|
for (var H in f) {
|
|
@@ -2656,30 +2675,30 @@ function eo() {
|
|
|
2656
2675
|
}
|
|
2657
2676
|
return null;
|
|
2658
2677
|
}
|
|
2659
|
-
return B(
|
|
2678
|
+
return B(x);
|
|
2660
2679
|
}
|
|
2661
2680
|
function ee(f) {
|
|
2662
|
-
function
|
|
2663
|
-
var _ =
|
|
2681
|
+
function x(P, R, C, z, k) {
|
|
2682
|
+
var _ = P[R], j = oe(_);
|
|
2664
2683
|
if (j !== "object")
|
|
2665
2684
|
return new $("Invalid " + z + " `" + k + "` of type `" + j + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
2666
|
-
var H = t({},
|
|
2685
|
+
var H = t({}, P[R], f);
|
|
2667
2686
|
for (var M in H) {
|
|
2668
2687
|
var te = f[M];
|
|
2669
2688
|
if (n(f, M) && typeof te != "function")
|
|
2670
2689
|
return ye(C, z, k, M, le(te));
|
|
2671
2690
|
if (!te)
|
|
2672
2691
|
return new $(
|
|
2673
|
-
"Invalid " + z + " `" + k + "` key `" + M + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(
|
|
2692
|
+
"Invalid " + z + " `" + k + "` key `" + M + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(P[R], null, " ") + `
|
|
2674
2693
|
Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
2675
2694
|
);
|
|
2676
|
-
var
|
|
2677
|
-
if (
|
|
2678
|
-
return
|
|
2695
|
+
var b = te(_, M, C, z, k + "." + M, r);
|
|
2696
|
+
if (b)
|
|
2697
|
+
return b;
|
|
2679
2698
|
}
|
|
2680
2699
|
return null;
|
|
2681
2700
|
}
|
|
2682
|
-
return B(
|
|
2701
|
+
return B(x);
|
|
2683
2702
|
}
|
|
2684
2703
|
function Z(f) {
|
|
2685
2704
|
switch (typeof f) {
|
|
@@ -2694,15 +2713,15 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
2694
2713
|
return f.every(Z);
|
|
2695
2714
|
if (f === null || u(f))
|
|
2696
2715
|
return !0;
|
|
2697
|
-
var
|
|
2698
|
-
if (
|
|
2699
|
-
var
|
|
2700
|
-
if (
|
|
2701
|
-
for (; !(R =
|
|
2716
|
+
var x = v(f);
|
|
2717
|
+
if (x) {
|
|
2718
|
+
var P = x.call(f), R;
|
|
2719
|
+
if (x !== f.entries) {
|
|
2720
|
+
for (; !(R = P.next()).done; )
|
|
2702
2721
|
if (!Z(R.value))
|
|
2703
2722
|
return !1;
|
|
2704
2723
|
} else
|
|
2705
|
-
for (; !(R =
|
|
2724
|
+
for (; !(R = P.next()).done; ) {
|
|
2706
2725
|
var C = R.value;
|
|
2707
2726
|
if (C && !Z(C[1]))
|
|
2708
2727
|
return !1;
|
|
@@ -2714,37 +2733,37 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
2714
2733
|
return !1;
|
|
2715
2734
|
}
|
|
2716
2735
|
}
|
|
2717
|
-
function me(f,
|
|
2718
|
-
return f === "symbol" ? !0 :
|
|
2736
|
+
function me(f, x) {
|
|
2737
|
+
return f === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
2719
2738
|
}
|
|
2720
2739
|
function oe(f) {
|
|
2721
|
-
var
|
|
2722
|
-
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : me(
|
|
2740
|
+
var x = typeof f;
|
|
2741
|
+
return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : me(x, f) ? "symbol" : x;
|
|
2723
2742
|
}
|
|
2724
2743
|
function le(f) {
|
|
2725
2744
|
if (typeof f > "u" || f === null)
|
|
2726
2745
|
return "" + f;
|
|
2727
|
-
var
|
|
2728
|
-
if (
|
|
2746
|
+
var x = oe(f);
|
|
2747
|
+
if (x === "object") {
|
|
2729
2748
|
if (f instanceof Date)
|
|
2730
2749
|
return "date";
|
|
2731
2750
|
if (f instanceof RegExp)
|
|
2732
2751
|
return "regexp";
|
|
2733
2752
|
}
|
|
2734
|
-
return
|
|
2753
|
+
return x;
|
|
2735
2754
|
}
|
|
2736
2755
|
function ge(f) {
|
|
2737
|
-
var
|
|
2738
|
-
switch (
|
|
2756
|
+
var x = le(f);
|
|
2757
|
+
switch (x) {
|
|
2739
2758
|
case "array":
|
|
2740
2759
|
case "object":
|
|
2741
|
-
return "an " +
|
|
2760
|
+
return "an " + x;
|
|
2742
2761
|
case "boolean":
|
|
2743
2762
|
case "date":
|
|
2744
2763
|
case "regexp":
|
|
2745
|
-
return "a " +
|
|
2764
|
+
return "a " + x;
|
|
2746
2765
|
default:
|
|
2747
|
-
return
|
|
2766
|
+
return x;
|
|
2748
2767
|
}
|
|
2749
2768
|
}
|
|
2750
2769
|
function Se(f) {
|
|
@@ -2753,18 +2772,18 @@ Valid keys: ` + JSON.stringify(Object.keys(f), null, " ")
|
|
|
2753
2772
|
return S.checkPropTypes = o, S.resetWarningCache = o.resetWarningCache, S.PropTypes = S, S;
|
|
2754
2773
|
}, ut;
|
|
2755
2774
|
}
|
|
2756
|
-
var dt,
|
|
2757
|
-
function
|
|
2758
|
-
if (
|
|
2759
|
-
|
|
2760
|
-
var e =
|
|
2775
|
+
var dt, lr;
|
|
2776
|
+
function eo() {
|
|
2777
|
+
if (lr) return dt;
|
|
2778
|
+
lr = 1;
|
|
2779
|
+
var e = Dt();
|
|
2761
2780
|
function t() {
|
|
2762
2781
|
}
|
|
2763
2782
|
function r() {
|
|
2764
2783
|
}
|
|
2765
2784
|
return r.resetWarningCache = t, dt = function() {
|
|
2766
|
-
function n(s, u, m, p,
|
|
2767
|
-
if (
|
|
2785
|
+
function n(s, u, m, p, y, v) {
|
|
2786
|
+
if (v !== e) {
|
|
2768
2787
|
var O = new Error(
|
|
2769
2788
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2770
2789
|
);
|
|
@@ -2802,10 +2821,10 @@ function to() {
|
|
|
2802
2821
|
}, dt;
|
|
2803
2822
|
}
|
|
2804
2823
|
if (process.env.NODE_ENV !== "production") {
|
|
2805
|
-
var
|
|
2806
|
-
xt.exports =
|
|
2824
|
+
var to = Cr(), ro = !0;
|
|
2825
|
+
xt.exports = Qi()(to.isElement, ro);
|
|
2807
2826
|
} else
|
|
2808
|
-
xt.exports =
|
|
2827
|
+
xt.exports = eo()();
|
|
2809
2828
|
var Xe = xt.exports;
|
|
2810
2829
|
function Dr(e) {
|
|
2811
2830
|
var t, r, n = "";
|
|
@@ -2814,38 +2833,38 @@ function Dr(e) {
|
|
|
2814
2833
|
else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
2815
2834
|
return n;
|
|
2816
2835
|
}
|
|
2817
|
-
function
|
|
2836
|
+
function cr() {
|
|
2818
2837
|
for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t = Dr(e)) && (n && (n += " "), n += t);
|
|
2819
2838
|
return n;
|
|
2820
2839
|
}
|
|
2821
|
-
const
|
|
2840
|
+
const no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2822
2841
|
__proto__: null,
|
|
2823
|
-
clsx:
|
|
2824
|
-
default:
|
|
2825
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2842
|
+
clsx: cr,
|
|
2843
|
+
default: cr
|
|
2844
|
+
}, Symbol.toStringTag, { value: "Module" })), io = /* @__PURE__ */ _n(no);
|
|
2826
2845
|
var K = {}, xe = {};
|
|
2827
2846
|
Object.defineProperty(xe, "__esModule", {
|
|
2828
2847
|
value: !0
|
|
2829
2848
|
});
|
|
2830
|
-
xe.dontSetMe =
|
|
2831
|
-
xe.findInArray =
|
|
2832
|
-
xe.int =
|
|
2833
|
-
xe.isFunction =
|
|
2834
|
-
xe.isNum =
|
|
2835
|
-
function
|
|
2849
|
+
xe.dontSetMe = co;
|
|
2850
|
+
xe.findInArray = oo;
|
|
2851
|
+
xe.int = lo;
|
|
2852
|
+
xe.isFunction = ao;
|
|
2853
|
+
xe.isNum = so;
|
|
2854
|
+
function oo(e, t) {
|
|
2836
2855
|
for (let r = 0, n = e.length; r < n; r++)
|
|
2837
2856
|
if (t.apply(t, [e[r], r, e])) return e[r];
|
|
2838
2857
|
}
|
|
2839
|
-
function
|
|
2858
|
+
function ao(e) {
|
|
2840
2859
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
2841
2860
|
}
|
|
2842
|
-
function
|
|
2861
|
+
function so(e) {
|
|
2843
2862
|
return typeof e == "number" && !isNaN(e);
|
|
2844
2863
|
}
|
|
2845
|
-
function
|
|
2864
|
+
function lo(e) {
|
|
2846
2865
|
return parseInt(e, 10);
|
|
2847
2866
|
}
|
|
2848
|
-
function
|
|
2867
|
+
function co(e, t, r) {
|
|
2849
2868
|
if (e[t])
|
|
2850
2869
|
return new Error("Invalid prop ".concat(t, " passed to ").concat(r, " - do not set this, set it on the child."));
|
|
2851
2870
|
}
|
|
@@ -2854,7 +2873,7 @@ Object.defineProperty(Oe, "__esModule", {
|
|
|
2854
2873
|
value: !0
|
|
2855
2874
|
});
|
|
2856
2875
|
Oe.browserPrefixToKey = Or;
|
|
2857
|
-
Oe.browserPrefixToStyle =
|
|
2876
|
+
Oe.browserPrefixToStyle = uo;
|
|
2858
2877
|
Oe.default = void 0;
|
|
2859
2878
|
Oe.getPrefix = _r;
|
|
2860
2879
|
const ft = ["Moz", "Webkit", "O", "ms"];
|
|
@@ -2869,12 +2888,12 @@ function _r() {
|
|
|
2869
2888
|
return "";
|
|
2870
2889
|
}
|
|
2871
2890
|
function Or(e, t) {
|
|
2872
|
-
return t ? "".concat(t).concat(
|
|
2891
|
+
return t ? "".concat(t).concat(fo(e)) : e;
|
|
2873
2892
|
}
|
|
2874
|
-
function
|
|
2893
|
+
function uo(e, t) {
|
|
2875
2894
|
return t ? "-".concat(t.toLowerCase(), "-").concat(e) : e;
|
|
2876
2895
|
}
|
|
2877
|
-
function
|
|
2896
|
+
function fo(e) {
|
|
2878
2897
|
let t = "", r = !0;
|
|
2879
2898
|
for (let n = 0; n < e.length; n++)
|
|
2880
2899
|
r ? (t += e[n].toUpperCase(), r = !1) : e[n] === "-" ? r = !0 : t += e[n];
|
|
@@ -2884,25 +2903,25 @@ Oe.default = _r();
|
|
|
2884
2903
|
Object.defineProperty(K, "__esModule", {
|
|
2885
2904
|
value: !0
|
|
2886
2905
|
});
|
|
2887
|
-
K.addClassName =
|
|
2888
|
-
K.addEvent =
|
|
2889
|
-
K.addUserSelectStyles =
|
|
2890
|
-
K.createCSSTransform =
|
|
2891
|
-
K.createSVGTransform =
|
|
2892
|
-
K.getTouch =
|
|
2893
|
-
K.getTouchIdentifier =
|
|
2894
|
-
K.getTranslation =
|
|
2895
|
-
K.innerHeight =
|
|
2896
|
-
K.innerWidth =
|
|
2897
|
-
K.matchesSelector =
|
|
2898
|
-
K.matchesSelectorAndParentsTo =
|
|
2899
|
-
K.offsetXYFromParent =
|
|
2900
|
-
K.outerHeight =
|
|
2901
|
-
K.outerWidth =
|
|
2906
|
+
K.addClassName = Pr;
|
|
2907
|
+
K.addEvent = bo;
|
|
2908
|
+
K.addUserSelectStyles = ko;
|
|
2909
|
+
K.createCSSTransform = Eo;
|
|
2910
|
+
K.createSVGTransform = So;
|
|
2911
|
+
K.getTouch = wo;
|
|
2912
|
+
K.getTouchIdentifier = Co;
|
|
2913
|
+
K.getTranslation = _t;
|
|
2914
|
+
K.innerHeight = go;
|
|
2915
|
+
K.innerWidth = xo;
|
|
2916
|
+
K.matchesSelector = Tr;
|
|
2917
|
+
K.matchesSelectorAndParentsTo = po;
|
|
2918
|
+
K.offsetXYFromParent = No;
|
|
2919
|
+
K.outerHeight = yo;
|
|
2920
|
+
K.outerWidth = vo;
|
|
2902
2921
|
K.removeClassName = jr;
|
|
2903
|
-
K.removeEvent =
|
|
2904
|
-
K.removeUserSelectStyles =
|
|
2905
|
-
var ue = xe,
|
|
2922
|
+
K.removeEvent = ho;
|
|
2923
|
+
K.removeUserSelectStyles = Do;
|
|
2924
|
+
var ue = xe, ur = mo(Oe);
|
|
2906
2925
|
function Rr(e) {
|
|
2907
2926
|
if (typeof WeakMap != "function") return null;
|
|
2908
2927
|
var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
@@ -2910,7 +2929,7 @@ function Rr(e) {
|
|
|
2910
2929
|
return n ? r : t;
|
|
2911
2930
|
})(e);
|
|
2912
2931
|
}
|
|
2913
|
-
function
|
|
2932
|
+
function mo(e, t) {
|
|
2914
2933
|
if (e && e.__esModule)
|
|
2915
2934
|
return e;
|
|
2916
2935
|
if (e === null || typeof e != "object" && typeof e != "function")
|
|
@@ -2927,21 +2946,21 @@ function po(e, t) {
|
|
|
2927
2946
|
return n.default = e, r && r.set(e, n), n;
|
|
2928
2947
|
}
|
|
2929
2948
|
let Ye = "";
|
|
2930
|
-
function
|
|
2949
|
+
function Tr(e, t) {
|
|
2931
2950
|
return Ye || (Ye = (0, ue.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(r) {
|
|
2932
2951
|
return (0, ue.isFunction)(e[r]);
|
|
2933
2952
|
})), (0, ue.isFunction)(e[Ye]) ? e[Ye](t) : !1;
|
|
2934
2953
|
}
|
|
2935
|
-
function
|
|
2954
|
+
function po(e, t, r) {
|
|
2936
2955
|
let n = e;
|
|
2937
2956
|
do {
|
|
2938
|
-
if (
|
|
2957
|
+
if (Tr(n, t)) return !0;
|
|
2939
2958
|
if (n === r) return !1;
|
|
2940
2959
|
n = n.parentNode;
|
|
2941
2960
|
} while (n);
|
|
2942
2961
|
return !1;
|
|
2943
2962
|
}
|
|
2944
|
-
function
|
|
2963
|
+
function bo(e, t, r, n) {
|
|
2945
2964
|
if (!e) return;
|
|
2946
2965
|
const o = {
|
|
2947
2966
|
capture: !0,
|
|
@@ -2949,7 +2968,7 @@ function ho(e, t, r, n) {
|
|
|
2949
2968
|
};
|
|
2950
2969
|
e.addEventListener ? e.addEventListener(t, r, o) : e.attachEvent ? e.attachEvent("on" + t, r) : e["on" + t] = r;
|
|
2951
2970
|
}
|
|
2952
|
-
function
|
|
2971
|
+
function ho(e, t, r, n) {
|
|
2953
2972
|
if (!e) return;
|
|
2954
2973
|
const o = {
|
|
2955
2974
|
capture: !0,
|
|
@@ -2957,27 +2976,27 @@ function yo(e, t, r, n) {
|
|
|
2957
2976
|
};
|
|
2958
2977
|
e.removeEventListener ? e.removeEventListener(t, r, o) : e.detachEvent ? e.detachEvent("on" + t, r) : e["on" + t] = null;
|
|
2959
2978
|
}
|
|
2960
|
-
function
|
|
2979
|
+
function yo(e) {
|
|
2961
2980
|
let t = e.clientHeight;
|
|
2962
2981
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
2963
2982
|
return t += (0, ue.int)(r.borderTopWidth), t += (0, ue.int)(r.borderBottomWidth), t;
|
|
2964
2983
|
}
|
|
2965
|
-
function
|
|
2984
|
+
function vo(e) {
|
|
2966
2985
|
let t = e.clientWidth;
|
|
2967
2986
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
2968
2987
|
return t += (0, ue.int)(r.borderLeftWidth), t += (0, ue.int)(r.borderRightWidth), t;
|
|
2969
2988
|
}
|
|
2970
|
-
function
|
|
2989
|
+
function go(e) {
|
|
2971
2990
|
let t = e.clientHeight;
|
|
2972
2991
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
2973
2992
|
return t -= (0, ue.int)(r.paddingTop), t -= (0, ue.int)(r.paddingBottom), t;
|
|
2974
2993
|
}
|
|
2975
|
-
function
|
|
2994
|
+
function xo(e) {
|
|
2976
2995
|
let t = e.clientWidth;
|
|
2977
2996
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
2978
2997
|
return t -= (0, ue.int)(r.paddingLeft), t -= (0, ue.int)(r.paddingRight), t;
|
|
2979
2998
|
}
|
|
2980
|
-
function
|
|
2999
|
+
function No(e, t, r) {
|
|
2981
3000
|
const o = t === t.ownerDocument.body ? {
|
|
2982
3001
|
left: 0,
|
|
2983
3002
|
top: 0
|
|
@@ -2987,16 +3006,16 @@ function Eo(e, t, r) {
|
|
|
2987
3006
|
y: s
|
|
2988
3007
|
};
|
|
2989
3008
|
}
|
|
2990
|
-
function
|
|
2991
|
-
const r =
|
|
3009
|
+
function Eo(e, t) {
|
|
3010
|
+
const r = _t(e, t, "px");
|
|
2992
3011
|
return {
|
|
2993
|
-
[(0,
|
|
3012
|
+
[(0, ur.browserPrefixToKey)("transform", ur.default)]: r
|
|
2994
3013
|
};
|
|
2995
3014
|
}
|
|
2996
|
-
function
|
|
2997
|
-
return
|
|
3015
|
+
function So(e, t) {
|
|
3016
|
+
return _t(e, t, "");
|
|
2998
3017
|
}
|
|
2999
|
-
function
|
|
3018
|
+
function _t(e, t, r) {
|
|
3000
3019
|
let {
|
|
3001
3020
|
x: n,
|
|
3002
3021
|
y: o
|
|
@@ -3007,21 +3026,21 @@ function Ot(e, t, r) {
|
|
|
3007
3026
|
}
|
|
3008
3027
|
return a;
|
|
3009
3028
|
}
|
|
3010
|
-
function
|
|
3029
|
+
function wo(e, t) {
|
|
3011
3030
|
return e.targetTouches && (0, ue.findInArray)(e.targetTouches, (r) => t === r.identifier) || e.changedTouches && (0, ue.findInArray)(e.changedTouches, (r) => t === r.identifier);
|
|
3012
3031
|
}
|
|
3013
|
-
function
|
|
3032
|
+
function Co(e) {
|
|
3014
3033
|
if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
|
|
3015
3034
|
if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
|
|
3016
3035
|
}
|
|
3017
|
-
function
|
|
3036
|
+
function ko(e) {
|
|
3018
3037
|
if (!e) return;
|
|
3019
3038
|
let t = e.getElementById("react-draggable-style-el");
|
|
3020
3039
|
t || (t = e.createElement("style"), t.type = "text/css", t.id = "react-draggable-style-el", t.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
3021
3040
|
`, t.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
3022
|
-
`, e.getElementsByTagName("head")[0].appendChild(t)), e.body &&
|
|
3041
|
+
`, e.getElementsByTagName("head")[0].appendChild(t)), e.body && Pr(e.body, "react-draggable-transparent-selection");
|
|
3023
3042
|
}
|
|
3024
|
-
function
|
|
3043
|
+
function Do(e) {
|
|
3025
3044
|
if (e)
|
|
3026
3045
|
try {
|
|
3027
3046
|
if (e.body && jr(e.body, "react-draggable-transparent-selection"), e.selection)
|
|
@@ -3033,7 +3052,7 @@ function _o(e) {
|
|
|
3033
3052
|
} catch {
|
|
3034
3053
|
}
|
|
3035
3054
|
}
|
|
3036
|
-
function
|
|
3055
|
+
function Pr(e, t) {
|
|
3037
3056
|
e.classList ? e.classList.add(t) : e.className.match(new RegExp("(?:^|\\s)".concat(t, "(?!\\S)"))) || (e.className += " ".concat(t));
|
|
3038
3057
|
}
|
|
3039
3058
|
function jr(e, t) {
|
|
@@ -3043,21 +3062,21 @@ var Ne = {};
|
|
|
3043
3062
|
Object.defineProperty(Ne, "__esModule", {
|
|
3044
3063
|
value: !0
|
|
3045
3064
|
});
|
|
3046
|
-
Ne.canDragX =
|
|
3065
|
+
Ne.canDragX = Ro;
|
|
3047
3066
|
Ne.canDragY = To;
|
|
3048
|
-
Ne.createCoreData =
|
|
3049
|
-
Ne.createDraggableData =
|
|
3050
|
-
Ne.getBoundPosition =
|
|
3051
|
-
Ne.getControlPosition =
|
|
3052
|
-
Ne.snapToGrid =
|
|
3067
|
+
Ne.createCoreData = jo;
|
|
3068
|
+
Ne.createDraggableData = Mo;
|
|
3069
|
+
Ne.getBoundPosition = _o;
|
|
3070
|
+
Ne.getControlPosition = Po;
|
|
3071
|
+
Ne.snapToGrid = Oo;
|
|
3053
3072
|
var ce = xe, je = K;
|
|
3054
|
-
function
|
|
3073
|
+
function _o(e, t, r) {
|
|
3055
3074
|
if (!e.props.bounds) return [t, r];
|
|
3056
3075
|
let {
|
|
3057
3076
|
bounds: n
|
|
3058
3077
|
} = e.props;
|
|
3059
|
-
n = typeof n == "string" ? n :
|
|
3060
|
-
const o =
|
|
3078
|
+
n = typeof n == "string" ? n : Vo(n);
|
|
3079
|
+
const o = Ot(e);
|
|
3061
3080
|
if (typeof n == "string") {
|
|
3062
3081
|
const {
|
|
3063
3082
|
ownerDocument: a
|
|
@@ -3065,34 +3084,34 @@ function Oo(e, t, r) {
|
|
|
3065
3084
|
let u;
|
|
3066
3085
|
if (n === "parent" ? u = o.parentNode : u = a.querySelector(n), !(u instanceof s.HTMLElement))
|
|
3067
3086
|
throw new Error('Bounds selector "' + n + '" could not find an element.');
|
|
3068
|
-
const m = u, p = s.getComputedStyle(o),
|
|
3087
|
+
const m = u, p = s.getComputedStyle(o), y = s.getComputedStyle(m);
|
|
3069
3088
|
n = {
|
|
3070
|
-
left: -o.offsetLeft + (0, ce.int)(
|
|
3071
|
-
top: -o.offsetTop + (0, ce.int)(
|
|
3072
|
-
right: (0, je.innerWidth)(m) - (0, je.outerWidth)(o) - o.offsetLeft + (0, ce.int)(
|
|
3073
|
-
bottom: (0, je.innerHeight)(m) - (0, je.outerHeight)(o) - o.offsetTop + (0, ce.int)(
|
|
3089
|
+
left: -o.offsetLeft + (0, ce.int)(y.paddingLeft) + (0, ce.int)(p.marginLeft),
|
|
3090
|
+
top: -o.offsetTop + (0, ce.int)(y.paddingTop) + (0, ce.int)(p.marginTop),
|
|
3091
|
+
right: (0, je.innerWidth)(m) - (0, je.outerWidth)(o) - o.offsetLeft + (0, ce.int)(y.paddingRight) - (0, ce.int)(p.marginRight),
|
|
3092
|
+
bottom: (0, je.innerHeight)(m) - (0, je.outerHeight)(o) - o.offsetTop + (0, ce.int)(y.paddingBottom) - (0, ce.int)(p.marginBottom)
|
|
3074
3093
|
};
|
|
3075
3094
|
}
|
|
3076
3095
|
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];
|
|
3077
3096
|
}
|
|
3078
|
-
function
|
|
3097
|
+
function Oo(e, t, r) {
|
|
3079
3098
|
const n = Math.round(t / e[0]) * e[0], o = Math.round(r / e[1]) * e[1];
|
|
3080
3099
|
return [n, o];
|
|
3081
3100
|
}
|
|
3082
|
-
function
|
|
3101
|
+
function Ro(e) {
|
|
3083
3102
|
return e.props.axis === "both" || e.props.axis === "x";
|
|
3084
3103
|
}
|
|
3085
3104
|
function To(e) {
|
|
3086
3105
|
return e.props.axis === "both" || e.props.axis === "y";
|
|
3087
3106
|
}
|
|
3088
|
-
function
|
|
3107
|
+
function Po(e, t, r) {
|
|
3089
3108
|
const n = typeof t == "number" ? (0, je.getTouch)(e, t) : null;
|
|
3090
3109
|
if (typeof t == "number" && !n) return null;
|
|
3091
|
-
const o =
|
|
3110
|
+
const o = Ot(r), a = r.props.offsetParent || o.offsetParent || o.ownerDocument.body;
|
|
3092
3111
|
return (0, je.offsetXYFromParent)(n || e, a, r.props.scale);
|
|
3093
3112
|
}
|
|
3094
|
-
function
|
|
3095
|
-
const n = !(0, ce.isNum)(e.lastX), o =
|
|
3113
|
+
function jo(e, t, r) {
|
|
3114
|
+
const n = !(0, ce.isNum)(e.lastX), o = Ot(e);
|
|
3096
3115
|
return n ? {
|
|
3097
3116
|
node: o,
|
|
3098
3117
|
deltaX: 0,
|
|
@@ -3111,7 +3130,7 @@ function Mo(e, t, r) {
|
|
|
3111
3130
|
y: r
|
|
3112
3131
|
};
|
|
3113
3132
|
}
|
|
3114
|
-
function
|
|
3133
|
+
function Mo(e, t) {
|
|
3115
3134
|
const r = e.props.scale;
|
|
3116
3135
|
return {
|
|
3117
3136
|
node: t.node,
|
|
@@ -3123,7 +3142,7 @@ function Vo(e, t) {
|
|
|
3123
3142
|
lastY: e.state.y
|
|
3124
3143
|
};
|
|
3125
3144
|
}
|
|
3126
|
-
function
|
|
3145
|
+
function Vo(e) {
|
|
3127
3146
|
return {
|
|
3128
3147
|
left: e.left,
|
|
3129
3148
|
top: e.top,
|
|
@@ -3131,7 +3150,7 @@ function Ao(e) {
|
|
|
3131
3150
|
bottom: e.bottom
|
|
3132
3151
|
};
|
|
3133
3152
|
}
|
|
3134
|
-
function
|
|
3153
|
+
function Ot(e) {
|
|
3135
3154
|
const t = e.findDOMNode();
|
|
3136
3155
|
if (!t)
|
|
3137
3156
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
@@ -3141,15 +3160,15 @@ var Ke = {}, Ge = {};
|
|
|
3141
3160
|
Object.defineProperty(Ge, "__esModule", {
|
|
3142
3161
|
value: !0
|
|
3143
3162
|
});
|
|
3144
|
-
Ge.default =
|
|
3145
|
-
function
|
|
3163
|
+
Ge.default = Ao;
|
|
3164
|
+
function Ao() {
|
|
3146
3165
|
}
|
|
3147
3166
|
Object.defineProperty(Ke, "__esModule", {
|
|
3148
3167
|
value: !0
|
|
3149
3168
|
});
|
|
3150
3169
|
Ke.default = void 0;
|
|
3151
|
-
var mt =
|
|
3152
|
-
function
|
|
3170
|
+
var mt = zo(_e), se = Rt(Xe), $o = Rt(Nr), re = K, we = Ne, pt = xe, Ae = Rt(Ge);
|
|
3171
|
+
function Rt(e) {
|
|
3153
3172
|
return e && e.__esModule ? e : { default: e };
|
|
3154
3173
|
}
|
|
3155
3174
|
function Mr(e) {
|
|
@@ -3159,7 +3178,7 @@ function Mr(e) {
|
|
|
3159
3178
|
return n ? r : t;
|
|
3160
3179
|
})(e);
|
|
3161
3180
|
}
|
|
3162
|
-
function
|
|
3181
|
+
function zo(e, t) {
|
|
3163
3182
|
if (e && e.__esModule)
|
|
3164
3183
|
return e;
|
|
3165
3184
|
if (e === null || typeof e != "object" && typeof e != "function")
|
|
@@ -3176,13 +3195,13 @@ function Io(e, t) {
|
|
|
3176
3195
|
return n.default = e, r && r.set(e, n), n;
|
|
3177
3196
|
}
|
|
3178
3197
|
function ie(e, t, r) {
|
|
3179
|
-
return t =
|
|
3198
|
+
return t = Io(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
3180
3199
|
}
|
|
3181
|
-
function
|
|
3182
|
-
var t =
|
|
3200
|
+
function Io(e) {
|
|
3201
|
+
var t = Ho(e, "string");
|
|
3183
3202
|
return typeof t == "symbol" ? t : String(t);
|
|
3184
3203
|
}
|
|
3185
|
-
function
|
|
3204
|
+
function Ho(e, t) {
|
|
3186
3205
|
if (typeof e != "object" || e === null) return e;
|
|
3187
3206
|
var r = e[Symbol.toPrimitive];
|
|
3188
3207
|
if (r !== void 0) {
|
|
@@ -3290,7 +3309,7 @@ let Ce = ve.mouse, Je = class extends mt.Component {
|
|
|
3290
3309
|
// the underlying DOM node ourselves. See the README for more information.
|
|
3291
3310
|
findDOMNode() {
|
|
3292
3311
|
var t, r;
|
|
3293
|
-
return (t = this.props) !== null && t !== void 0 && t.nodeRef ? (r = this.props) === null || r === void 0 || (r = r.nodeRef) === null || r === void 0 ? void 0 : r.current :
|
|
3312
|
+
return (t = this.props) !== null && t !== void 0 && t.nodeRef ? (r = this.props) === null || r === void 0 || (r = r.nodeRef) === null || r === void 0 ? void 0 : r.current : $o.default.findDOMNode(this);
|
|
3294
3313
|
}
|
|
3295
3314
|
render() {
|
|
3296
3315
|
return /* @__PURE__ */ mt.cloneElement(mt.Children.only(this.props.children), {
|
|
@@ -3454,67 +3473,67 @@ ie(Je, "defaultProps", {
|
|
|
3454
3473
|
return m.default;
|
|
3455
3474
|
}
|
|
3456
3475
|
}), e.default = void 0;
|
|
3457
|
-
var t = O(_e), r =
|
|
3458
|
-
function
|
|
3459
|
-
return
|
|
3476
|
+
var t = O(_e), r = y(Xe), n = y(Nr), o = y(io), a = K, s = Ne, u = xe, m = y(Ke), p = y(Ge);
|
|
3477
|
+
function y(g) {
|
|
3478
|
+
return g && g.__esModule ? g : { default: g };
|
|
3460
3479
|
}
|
|
3461
|
-
function
|
|
3480
|
+
function v(g) {
|
|
3462
3481
|
if (typeof WeakMap != "function") return null;
|
|
3463
|
-
var
|
|
3464
|
-
return (
|
|
3465
|
-
return c ? E :
|
|
3466
|
-
})(
|
|
3482
|
+
var N = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
|
|
3483
|
+
return (v = function(c) {
|
|
3484
|
+
return c ? E : N;
|
|
3485
|
+
})(g);
|
|
3467
3486
|
}
|
|
3468
|
-
function O(
|
|
3469
|
-
if (
|
|
3470
|
-
return
|
|
3471
|
-
if (
|
|
3472
|
-
return { default:
|
|
3473
|
-
var E = N
|
|
3474
|
-
if (E && E.has(
|
|
3475
|
-
return E.get(
|
|
3487
|
+
function O(g, N) {
|
|
3488
|
+
if (g && g.__esModule)
|
|
3489
|
+
return g;
|
|
3490
|
+
if (g === null || typeof g != "object" && typeof g != "function")
|
|
3491
|
+
return { default: g };
|
|
3492
|
+
var E = v(N);
|
|
3493
|
+
if (E && E.has(g))
|
|
3494
|
+
return E.get(g);
|
|
3476
3495
|
var c = {}, Y = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3477
|
-
for (var
|
|
3478
|
-
if (
|
|
3479
|
-
var Q = Y ? Object.getOwnPropertyDescriptor(
|
|
3480
|
-
Q && (Q.get || Q.set) ? Object.defineProperty(c,
|
|
3496
|
+
for (var T in g)
|
|
3497
|
+
if (T !== "default" && Object.prototype.hasOwnProperty.call(g, T)) {
|
|
3498
|
+
var Q = Y ? Object.getOwnPropertyDescriptor(g, T) : null;
|
|
3499
|
+
Q && (Q.get || Q.set) ? Object.defineProperty(c, T, Q) : c[T] = g[T];
|
|
3481
3500
|
}
|
|
3482
|
-
return c.default =
|
|
3501
|
+
return c.default = g, E && E.set(g, c), c;
|
|
3483
3502
|
}
|
|
3484
3503
|
function S() {
|
|
3485
|
-
return S = Object.assign ? Object.assign.bind() : function(
|
|
3486
|
-
for (var
|
|
3487
|
-
var E = arguments[
|
|
3504
|
+
return S = Object.assign ? Object.assign.bind() : function(g) {
|
|
3505
|
+
for (var N = 1; N < arguments.length; N++) {
|
|
3506
|
+
var E = arguments[N];
|
|
3488
3507
|
for (var c in E)
|
|
3489
|
-
Object.prototype.hasOwnProperty.call(E, c) && (
|
|
3508
|
+
Object.prototype.hasOwnProperty.call(E, c) && (g[c] = E[c]);
|
|
3490
3509
|
}
|
|
3491
|
-
return
|
|
3510
|
+
return g;
|
|
3492
3511
|
}, S.apply(this, arguments);
|
|
3493
3512
|
}
|
|
3494
|
-
function A(
|
|
3495
|
-
return
|
|
3513
|
+
function A(g, N, E) {
|
|
3514
|
+
return N = $(N), N in g ? Object.defineProperty(g, N, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : g[N] = E, g;
|
|
3496
3515
|
}
|
|
3497
|
-
function $(
|
|
3498
|
-
var
|
|
3499
|
-
return typeof
|
|
3516
|
+
function $(g) {
|
|
3517
|
+
var N = B(g, "string");
|
|
3518
|
+
return typeof N == "symbol" ? N : String(N);
|
|
3500
3519
|
}
|
|
3501
|
-
function B(
|
|
3502
|
-
if (typeof
|
|
3503
|
-
var E =
|
|
3520
|
+
function B(g, N) {
|
|
3521
|
+
if (typeof g != "object" || g === null) return g;
|
|
3522
|
+
var E = g[Symbol.toPrimitive];
|
|
3504
3523
|
if (E !== void 0) {
|
|
3505
|
-
var c = E.call(
|
|
3524
|
+
var c = E.call(g, N || "default");
|
|
3506
3525
|
if (typeof c != "object") return c;
|
|
3507
3526
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3508
3527
|
}
|
|
3509
|
-
return (
|
|
3528
|
+
return (N === "string" ? String : Number)(g);
|
|
3510
3529
|
}
|
|
3511
3530
|
class W extends t.Component {
|
|
3512
3531
|
// React 16.3+
|
|
3513
3532
|
// Arity (props, state)
|
|
3514
|
-
static getDerivedStateFromProps(
|
|
3533
|
+
static getDerivedStateFromProps(N, E) {
|
|
3515
3534
|
let {
|
|
3516
3535
|
position: c
|
|
3517
|
-
} =
|
|
3536
|
+
} = N, {
|
|
3518
3537
|
prevPropsPosition: Y
|
|
3519
3538
|
} = E;
|
|
3520
3539
|
return c && (!Y || c.x !== Y.x || c.y !== Y.y) ? ((0, p.default)("Draggable: getDerivedStateFromProps %j", {
|
|
@@ -3528,8 +3547,8 @@ ie(Je, "defaultProps", {
|
|
|
3528
3547
|
}
|
|
3529
3548
|
}) : null;
|
|
3530
3549
|
}
|
|
3531
|
-
constructor(
|
|
3532
|
-
super(
|
|
3550
|
+
constructor(N) {
|
|
3551
|
+
super(N), A(this, "onDragStart", (E, c) => {
|
|
3533
3552
|
if ((0, p.default)("Draggable: onDragStart: %j", c), this.props.onStart(E, (0, s.createDraggableData)(this, c)) === !1) return !1;
|
|
3534
3553
|
this.setState({
|
|
3535
3554
|
dragging: !0,
|
|
@@ -3538,7 +3557,7 @@ ie(Je, "defaultProps", {
|
|
|
3538
3557
|
}), A(this, "onDrag", (E, c) => {
|
|
3539
3558
|
if (!this.state.dragging) return !1;
|
|
3540
3559
|
(0, p.default)("Draggable: onDrag: %j", c);
|
|
3541
|
-
const Y = (0, s.createDraggableData)(this, c),
|
|
3560
|
+
const Y = (0, s.createDraggableData)(this, c), T = {
|
|
3542
3561
|
x: Y.x,
|
|
3543
3562
|
y: Y.y,
|
|
3544
3563
|
slackX: 0,
|
|
@@ -3548,17 +3567,17 @@ ie(Je, "defaultProps", {
|
|
|
3548
3567
|
const {
|
|
3549
3568
|
x: de,
|
|
3550
3569
|
y: fe
|
|
3551
|
-
} =
|
|
3552
|
-
|
|
3553
|
-
const [ye, Ee] = (0, s.getBoundPosition)(this,
|
|
3554
|
-
|
|
3570
|
+
} = T;
|
|
3571
|
+
T.x += this.state.slackX, T.y += this.state.slackY;
|
|
3572
|
+
const [ye, Ee] = (0, s.getBoundPosition)(this, T.x, T.y);
|
|
3573
|
+
T.x = ye, T.y = Ee, T.slackX = this.state.slackX + (de - T.x), T.slackY = this.state.slackY + (fe - T.y), Y.x = T.x, Y.y = T.y, Y.deltaX = T.x - this.state.x, Y.deltaY = T.y - this.state.y;
|
|
3555
3574
|
}
|
|
3556
3575
|
if (this.props.onDrag(E, Y) === !1) return !1;
|
|
3557
|
-
this.setState(
|
|
3576
|
+
this.setState(T);
|
|
3558
3577
|
}), A(this, "onDragStop", (E, c) => {
|
|
3559
3578
|
if (!this.state.dragging || this.props.onStop(E, (0, s.createDraggableData)(this, c)) === !1) return !1;
|
|
3560
3579
|
(0, p.default)("Draggable: onDragStop: %j", c);
|
|
3561
|
-
const
|
|
3580
|
+
const T = {
|
|
3562
3581
|
dragging: !1,
|
|
3563
3582
|
slackX: 0,
|
|
3564
3583
|
slackY: 0
|
|
@@ -3568,26 +3587,26 @@ ie(Je, "defaultProps", {
|
|
|
3568
3587
|
x: de,
|
|
3569
3588
|
y: fe
|
|
3570
3589
|
} = this.props.position;
|
|
3571
|
-
|
|
3590
|
+
T.x = de, T.y = fe;
|
|
3572
3591
|
}
|
|
3573
|
-
this.setState(
|
|
3592
|
+
this.setState(T);
|
|
3574
3593
|
}), this.state = {
|
|
3575
3594
|
// Whether or not we are currently dragging.
|
|
3576
3595
|
dragging: !1,
|
|
3577
3596
|
// Whether or not we have been dragged before.
|
|
3578
3597
|
dragged: !1,
|
|
3579
3598
|
// Current transform x and y.
|
|
3580
|
-
x:
|
|
3581
|
-
y:
|
|
3599
|
+
x: N.position ? N.position.x : N.defaultPosition.x,
|
|
3600
|
+
y: N.position ? N.position.y : N.defaultPosition.y,
|
|
3582
3601
|
prevPropsPosition: {
|
|
3583
|
-
...
|
|
3602
|
+
...N.position
|
|
3584
3603
|
},
|
|
3585
3604
|
// Used for compensating for out-of-bounds drags
|
|
3586
3605
|
slackX: 0,
|
|
3587
3606
|
slackY: 0,
|
|
3588
3607
|
// Can only determine if SVG after mounting
|
|
3589
3608
|
isElementSVG: !1
|
|
3590
|
-
},
|
|
3609
|
+
}, N.position && !(N.onDrag || N.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
|
|
3591
3610
|
}
|
|
3592
3611
|
componentDidMount() {
|
|
3593
3612
|
typeof window.SVGElement < "u" && this.findDOMNode() instanceof window.SVGElement && this.setState({
|
|
@@ -3602,16 +3621,16 @@ ie(Je, "defaultProps", {
|
|
|
3602
3621
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
3603
3622
|
// the underlying DOM node ourselves. See the README for more information.
|
|
3604
3623
|
findDOMNode() {
|
|
3605
|
-
var
|
|
3606
|
-
return (
|
|
3624
|
+
var N, E;
|
|
3625
|
+
return (N = (E = this.props) === null || E === void 0 || (E = E.nodeRef) === null || E === void 0 ? void 0 : E.current) !== null && N !== void 0 ? N : n.default.findDOMNode(this);
|
|
3607
3626
|
}
|
|
3608
3627
|
render() {
|
|
3609
3628
|
const {
|
|
3610
|
-
axis:
|
|
3629
|
+
axis: N,
|
|
3611
3630
|
bounds: E,
|
|
3612
3631
|
children: c,
|
|
3613
3632
|
defaultPosition: Y,
|
|
3614
|
-
defaultClassName:
|
|
3633
|
+
defaultClassName: T,
|
|
3615
3634
|
defaultClassNameDragging: Q,
|
|
3616
3635
|
defaultClassNameDragged: de,
|
|
3617
3636
|
position: fe,
|
|
@@ -3627,7 +3646,7 @@ ie(Je, "defaultProps", {
|
|
|
3627
3646
|
y: (0, s.canDragY)(this) && le ? this.state.y : ge.y
|
|
3628
3647
|
};
|
|
3629
3648
|
this.state.isElementSVG ? me = (0, a.createSVGTransform)(Se, ye) : Z = (0, a.createCSSTransform)(Se, ye);
|
|
3630
|
-
const f = (0, o.default)(c.props.className || "",
|
|
3649
|
+
const f = (0, o.default)(c.props.className || "", T, {
|
|
3631
3650
|
[Q]: this.state.dragging,
|
|
3632
3651
|
[de]: this.state.dragged
|
|
3633
3652
|
});
|
|
@@ -3768,19 +3787,19 @@ ie(Je, "defaultProps", {
|
|
|
3768
3787
|
})(wr);
|
|
3769
3788
|
const {
|
|
3770
3789
|
default: Vr,
|
|
3771
|
-
DraggableCore:
|
|
3790
|
+
DraggableCore: Lo
|
|
3772
3791
|
} = wr;
|
|
3773
3792
|
Be.exports = Vr;
|
|
3774
3793
|
Be.exports.default = Vr;
|
|
3775
|
-
Be.exports.DraggableCore =
|
|
3776
|
-
var
|
|
3794
|
+
Be.exports.DraggableCore = Lo;
|
|
3795
|
+
var Wo = Be.exports, Tt = {};
|
|
3777
3796
|
Tt.__esModule = !0;
|
|
3778
|
-
Tt.cloneElement =
|
|
3779
|
-
var
|
|
3780
|
-
function
|
|
3797
|
+
Tt.cloneElement = Xo;
|
|
3798
|
+
var qo = Yo(_e);
|
|
3799
|
+
function Yo(e) {
|
|
3781
3800
|
return e && e.__esModule ? e : { default: e };
|
|
3782
3801
|
}
|
|
3783
|
-
function
|
|
3802
|
+
function dr(e, t) {
|
|
3784
3803
|
var r = Object.keys(e);
|
|
3785
3804
|
if (Object.getOwnPropertySymbols) {
|
|
3786
3805
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -3790,25 +3809,25 @@ function fr(e, t) {
|
|
|
3790
3809
|
}
|
|
3791
3810
|
return r;
|
|
3792
3811
|
}
|
|
3793
|
-
function
|
|
3812
|
+
function fr(e) {
|
|
3794
3813
|
for (var t = 1; t < arguments.length; t++) {
|
|
3795
3814
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3796
|
-
t % 2 ?
|
|
3815
|
+
t % 2 ? dr(Object(r), !0).forEach(function(n) {
|
|
3797
3816
|
Fo(e, n, r[n]);
|
|
3798
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
3817
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : dr(Object(r)).forEach(function(n) {
|
|
3799
3818
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
3800
3819
|
});
|
|
3801
3820
|
}
|
|
3802
3821
|
return e;
|
|
3803
3822
|
}
|
|
3804
3823
|
function Fo(e, t, r) {
|
|
3805
|
-
return t =
|
|
3824
|
+
return t = Uo(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
3806
3825
|
}
|
|
3807
|
-
function
|
|
3808
|
-
var t =
|
|
3826
|
+
function Uo(e) {
|
|
3827
|
+
var t = Bo(e, "string");
|
|
3809
3828
|
return typeof t == "symbol" ? t : String(t);
|
|
3810
3829
|
}
|
|
3811
|
-
function
|
|
3830
|
+
function Bo(e, t) {
|
|
3812
3831
|
if (typeof e != "object" || e === null) return e;
|
|
3813
3832
|
var r = e[Symbol.toPrimitive];
|
|
3814
3833
|
if (r !== void 0) {
|
|
@@ -3818,17 +3837,17 @@ function Xo(e, t) {
|
|
|
3818
3837
|
}
|
|
3819
3838
|
return (t === "string" ? String : Number)(e);
|
|
3820
3839
|
}
|
|
3821
|
-
function
|
|
3822
|
-
return t.style && e.props.style && (t.style =
|
|
3840
|
+
function Xo(e, t) {
|
|
3841
|
+
return t.style && e.props.style && (t.style = fr(fr({}, e.props.style), t.style)), t.className && e.props.className && (t.className = e.props.className + " " + t.className), /* @__PURE__ */ qo.default.cloneElement(e, t);
|
|
3823
3842
|
}
|
|
3824
3843
|
var Ie = {};
|
|
3825
3844
|
Ie.__esModule = !0;
|
|
3826
3845
|
Ie.resizableProps = void 0;
|
|
3827
|
-
var D =
|
|
3828
|
-
function
|
|
3846
|
+
var D = Ko(Xe);
|
|
3847
|
+
function Ko(e) {
|
|
3829
3848
|
return e && e.__esModule ? e : { default: e };
|
|
3830
3849
|
}
|
|
3831
|
-
var
|
|
3850
|
+
var Go = {
|
|
3832
3851
|
/*
|
|
3833
3852
|
* Restricts resizing to a particular axis (default: 'both')
|
|
3834
3853
|
* 'both' - allows resizing by width or height
|
|
@@ -3933,10 +3952,10 @@ var Jo = {
|
|
|
3933
3952
|
return D.default.number.apply(D.default, r);
|
|
3934
3953
|
}
|
|
3935
3954
|
};
|
|
3936
|
-
Ie.resizableProps =
|
|
3955
|
+
Ie.resizableProps = Go;
|
|
3937
3956
|
ze.__esModule = !0;
|
|
3938
3957
|
ze.default = void 0;
|
|
3939
|
-
var $e =
|
|
3958
|
+
var $e = ta(_e), Jo = Wo, Zo = Tt, Qo = Ie, ea = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
|
|
3940
3959
|
function Ar(e) {
|
|
3941
3960
|
if (typeof WeakMap != "function") return null;
|
|
3942
3961
|
var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
@@ -3944,7 +3963,7 @@ function Ar(e) {
|
|
|
3944
3963
|
return o ? r : t;
|
|
3945
3964
|
})(e);
|
|
3946
3965
|
}
|
|
3947
|
-
function
|
|
3966
|
+
function ta(e, t) {
|
|
3948
3967
|
if (e && e.__esModule)
|
|
3949
3968
|
return e;
|
|
3950
3969
|
if (e === null || typeof e != "object" && typeof e != "function")
|
|
@@ -3970,14 +3989,14 @@ function Nt() {
|
|
|
3970
3989
|
return e;
|
|
3971
3990
|
}, Nt.apply(this, arguments);
|
|
3972
3991
|
}
|
|
3973
|
-
function
|
|
3992
|
+
function ra(e, t) {
|
|
3974
3993
|
if (e == null) return {};
|
|
3975
3994
|
var r = {}, n = Object.keys(e), o, a;
|
|
3976
3995
|
for (a = 0; a < n.length; a++)
|
|
3977
3996
|
o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
3978
3997
|
return r;
|
|
3979
3998
|
}
|
|
3980
|
-
function
|
|
3999
|
+
function mr(e, t) {
|
|
3981
4000
|
var r = Object.keys(e);
|
|
3982
4001
|
if (Object.getOwnPropertySymbols) {
|
|
3983
4002
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -3990,22 +4009,22 @@ function pr(e, t) {
|
|
|
3990
4009
|
function bt(e) {
|
|
3991
4010
|
for (var t = 1; t < arguments.length; t++) {
|
|
3992
4011
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
3993
|
-
t % 2 ?
|
|
3994
|
-
|
|
3995
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
4012
|
+
t % 2 ? mr(Object(r), !0).forEach(function(n) {
|
|
4013
|
+
na(e, n, r[n]);
|
|
4014
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : mr(Object(r)).forEach(function(n) {
|
|
3996
4015
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
3997
4016
|
});
|
|
3998
4017
|
}
|
|
3999
4018
|
return e;
|
|
4000
4019
|
}
|
|
4001
|
-
function
|
|
4002
|
-
return t =
|
|
4020
|
+
function na(e, t, r) {
|
|
4021
|
+
return t = ia(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
4003
4022
|
}
|
|
4004
|
-
function
|
|
4005
|
-
var t =
|
|
4023
|
+
function ia(e) {
|
|
4024
|
+
var t = oa(e, "string");
|
|
4006
4025
|
return typeof t == "symbol" ? t : String(t);
|
|
4007
4026
|
}
|
|
4008
|
-
function
|
|
4027
|
+
function oa(e, t) {
|
|
4009
4028
|
if (typeof e != "object" || e === null) return e;
|
|
4010
4029
|
var r = e[Symbol.toPrimitive];
|
|
4011
4030
|
if (r !== void 0) {
|
|
@@ -4015,7 +4034,7 @@ function aa(e, t) {
|
|
|
4015
4034
|
}
|
|
4016
4035
|
return (t === "string" ? String : Number)(e);
|
|
4017
4036
|
}
|
|
4018
|
-
function
|
|
4037
|
+
function aa(e, t) {
|
|
4019
4038
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Et(e, t);
|
|
4020
4039
|
}
|
|
4021
4040
|
function Et(e, t) {
|
|
@@ -4023,8 +4042,8 @@ function Et(e, t) {
|
|
|
4023
4042
|
return n.__proto__ = o, n;
|
|
4024
4043
|
}, Et(e, t);
|
|
4025
4044
|
}
|
|
4026
|
-
var
|
|
4027
|
-
|
|
4045
|
+
var Pt = /* @__PURE__ */ function(e) {
|
|
4046
|
+
aa(t, e);
|
|
4028
4047
|
function t() {
|
|
4029
4048
|
for (var n, o = arguments.length, a = new Array(o), s = 0; s < o; s++)
|
|
4030
4049
|
a[s] = arguments[s];
|
|
@@ -4039,15 +4058,15 @@ var jt = /* @__PURE__ */ function(e) {
|
|
|
4039
4058
|
var s = this.props, u = s.minConstraints, m = s.maxConstraints, p = s.lockAspectRatio;
|
|
4040
4059
|
if (!u && !m && !p) return [o, a];
|
|
4041
4060
|
if (p) {
|
|
4042
|
-
var
|
|
4043
|
-
Math.abs(
|
|
4061
|
+
var y = this.props.width / this.props.height, v = o - this.props.width, O = a - this.props.height;
|
|
4062
|
+
Math.abs(v) > Math.abs(O * y) ? a = o / y : o = a * y;
|
|
4044
4063
|
}
|
|
4045
4064
|
var S = o, A = a, $ = this.slack || [0, 0], B = $[0], W = $[1];
|
|
4046
4065
|
return o += B, a += W, u && (o = Math.max(u[0], o), a = Math.max(u[1], a)), m && (o = Math.min(m[0], o), a = Math.min(m[1], a)), this.slack = [B + (S - o), W + (A - a)], [o, a];
|
|
4047
4066
|
}, r.resizeHandler = function(o, a) {
|
|
4048
4067
|
var s = this;
|
|
4049
4068
|
return function(u, m) {
|
|
4050
|
-
var p = m.node,
|
|
4069
|
+
var p = m.node, y = m.deltaX, v = m.deltaY;
|
|
4051
4070
|
o === "onResizeStart" && s.resetData();
|
|
4052
4071
|
var O = (s.props.axis === "both" || s.props.axis === "x") && a !== "n" && a !== "s", S = (s.props.axis === "both" || s.props.axis === "y") && a !== "e" && a !== "w";
|
|
4053
4072
|
if (!(!O && !S)) {
|
|
@@ -4055,21 +4074,21 @@ var jt = /* @__PURE__ */ function(e) {
|
|
|
4055
4074
|
if (s.lastHandleRect != null) {
|
|
4056
4075
|
if ($ === "w") {
|
|
4057
4076
|
var W = B.left - s.lastHandleRect.left;
|
|
4058
|
-
|
|
4077
|
+
y += W;
|
|
4059
4078
|
}
|
|
4060
4079
|
if (A === "n") {
|
|
4061
|
-
var
|
|
4062
|
-
|
|
4080
|
+
var g = B.top - s.lastHandleRect.top;
|
|
4081
|
+
v += g;
|
|
4063
4082
|
}
|
|
4064
4083
|
}
|
|
4065
|
-
s.lastHandleRect = B, $ === "w" && (
|
|
4066
|
-
var
|
|
4067
|
-
|
|
4068
|
-
var Y =
|
|
4069
|
-
|
|
4084
|
+
s.lastHandleRect = B, $ === "w" && (y = -y), A === "n" && (v = -v);
|
|
4085
|
+
var N = s.props.width + (O ? y / s.props.transformScale : 0), E = s.props.height + (S ? v / s.props.transformScale : 0), c = s.runConstraints(N, E);
|
|
4086
|
+
N = c[0], E = c[1];
|
|
4087
|
+
var Y = N !== s.props.width || E !== s.props.height, T = typeof s.props[o] == "function" ? s.props[o] : null, Q = o === "onResize" && !Y;
|
|
4088
|
+
T && !Q && (u.persist == null || u.persist(), T(u, {
|
|
4070
4089
|
node: p,
|
|
4071
4090
|
size: {
|
|
4072
|
-
width:
|
|
4091
|
+
width: N,
|
|
4073
4092
|
height: E
|
|
4074
4093
|
},
|
|
4075
4094
|
handle: a
|
|
@@ -4096,25 +4115,25 @@ var jt = /* @__PURE__ */ function(e) {
|
|
|
4096
4115
|
a.width, a.height, a.handle, a.handleSize, a.lockAspectRatio, a.axis, a.minConstraints, a.maxConstraints, a.onResize, a.onResizeStop, a.onResizeStart;
|
|
4097
4116
|
var p = a.resizeHandles;
|
|
4098
4117
|
a.transformScale;
|
|
4099
|
-
var
|
|
4100
|
-
return (0,
|
|
4118
|
+
var y = ra(a, ea);
|
|
4119
|
+
return (0, Zo.cloneElement)(s, bt(bt({}, y), {}, {
|
|
4101
4120
|
className: (u ? u + " " : "") + "react-resizable",
|
|
4102
|
-
children: [].concat(s.props.children, p.map(function(
|
|
4103
|
-
var O, S = (O = o.handleRefs[
|
|
4104
|
-
return /* @__PURE__ */ $e.createElement(
|
|
4121
|
+
children: [].concat(s.props.children, p.map(function(v) {
|
|
4122
|
+
var O, S = (O = o.handleRefs[v]) != null ? O : o.handleRefs[v] = /* @__PURE__ */ $e.createRef();
|
|
4123
|
+
return /* @__PURE__ */ $e.createElement(Jo.DraggableCore, Nt({}, m, {
|
|
4105
4124
|
nodeRef: S,
|
|
4106
|
-
key: "resizableHandle-" +
|
|
4107
|
-
onStop: o.resizeHandler("onResizeStop",
|
|
4108
|
-
onStart: o.resizeHandler("onResizeStart",
|
|
4109
|
-
onDrag: o.resizeHandler("onResize",
|
|
4110
|
-
}), o.renderResizeHandle(
|
|
4125
|
+
key: "resizableHandle-" + v,
|
|
4126
|
+
onStop: o.resizeHandler("onResizeStop", v),
|
|
4127
|
+
onStart: o.resizeHandler("onResizeStart", v),
|
|
4128
|
+
onDrag: o.resizeHandler("onResize", v)
|
|
4129
|
+
}), o.renderResizeHandle(v, S));
|
|
4111
4130
|
}))
|
|
4112
4131
|
}));
|
|
4113
4132
|
}, t;
|
|
4114
4133
|
}($e.Component);
|
|
4115
|
-
ze.default =
|
|
4116
|
-
|
|
4117
|
-
|
|
4134
|
+
ze.default = Pt;
|
|
4135
|
+
Pt.propTypes = Qo.resizableProps;
|
|
4136
|
+
Pt.defaultProps = {
|
|
4118
4137
|
axis: "both",
|
|
4119
4138
|
handleSize: [20, 20],
|
|
4120
4139
|
lockAspectRatio: !1,
|
|
@@ -4126,7 +4145,7 @@ jt.defaultProps = {
|
|
|
4126
4145
|
var Ze = {};
|
|
4127
4146
|
Ze.__esModule = !0;
|
|
4128
4147
|
Ze.default = void 0;
|
|
4129
|
-
var ht =
|
|
4148
|
+
var ht = da(_e), sa = $r(Xe), la = $r(ze), ca = Ie, ua = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
|
|
4130
4149
|
function $r(e) {
|
|
4131
4150
|
return e && e.__esModule ? e : { default: e };
|
|
4132
4151
|
}
|
|
@@ -4137,7 +4156,7 @@ function zr(e) {
|
|
|
4137
4156
|
return o ? r : t;
|
|
4138
4157
|
})(e);
|
|
4139
4158
|
}
|
|
4140
|
-
function
|
|
4159
|
+
function da(e, t) {
|
|
4141
4160
|
if (e && e.__esModule)
|
|
4142
4161
|
return e;
|
|
4143
4162
|
if (e === null || typeof e != "object" && typeof e != "function")
|
|
@@ -4163,7 +4182,7 @@ function St() {
|
|
|
4163
4182
|
return e;
|
|
4164
4183
|
}, St.apply(this, arguments);
|
|
4165
4184
|
}
|
|
4166
|
-
function
|
|
4185
|
+
function pr(e, t) {
|
|
4167
4186
|
var r = Object.keys(e);
|
|
4168
4187
|
if (Object.getOwnPropertySymbols) {
|
|
4169
4188
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -4173,25 +4192,25 @@ function br(e, t) {
|
|
|
4173
4192
|
}
|
|
4174
4193
|
return r;
|
|
4175
4194
|
}
|
|
4176
|
-
function
|
|
4195
|
+
function Ue(e) {
|
|
4177
4196
|
for (var t = 1; t < arguments.length; t++) {
|
|
4178
4197
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
4179
|
-
t % 2 ?
|
|
4180
|
-
|
|
4181
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
4198
|
+
t % 2 ? pr(Object(r), !0).forEach(function(n) {
|
|
4199
|
+
fa(e, n, r[n]);
|
|
4200
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : pr(Object(r)).forEach(function(n) {
|
|
4182
4201
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4183
4202
|
});
|
|
4184
4203
|
}
|
|
4185
4204
|
return e;
|
|
4186
4205
|
}
|
|
4187
|
-
function
|
|
4188
|
-
return t =
|
|
4206
|
+
function fa(e, t, r) {
|
|
4207
|
+
return t = ma(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
4189
4208
|
}
|
|
4190
|
-
function
|
|
4191
|
-
var t =
|
|
4209
|
+
function ma(e) {
|
|
4210
|
+
var t = pa(e, "string");
|
|
4192
4211
|
return typeof t == "symbol" ? t : String(t);
|
|
4193
4212
|
}
|
|
4194
|
-
function
|
|
4213
|
+
function pa(e, t) {
|
|
4195
4214
|
if (typeof e != "object" || e === null) return e;
|
|
4196
4215
|
var r = e[Symbol.toPrimitive];
|
|
4197
4216
|
if (r !== void 0) {
|
|
@@ -4201,14 +4220,14 @@ function ba(e, t) {
|
|
|
4201
4220
|
}
|
|
4202
4221
|
return (t === "string" ? String : Number)(e);
|
|
4203
4222
|
}
|
|
4204
|
-
function
|
|
4223
|
+
function ba(e, t) {
|
|
4205
4224
|
if (e == null) return {};
|
|
4206
4225
|
var r = {}, n = Object.keys(e), o, a;
|
|
4207
4226
|
for (a = 0; a < n.length; a++)
|
|
4208
4227
|
o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
4209
4228
|
return r;
|
|
4210
4229
|
}
|
|
4211
|
-
function
|
|
4230
|
+
function ha(e, t) {
|
|
4212
4231
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, wt(e, t);
|
|
4213
4232
|
}
|
|
4214
4233
|
function wt(e, t) {
|
|
@@ -4217,7 +4236,7 @@ function wt(e, t) {
|
|
|
4217
4236
|
}, wt(e, t);
|
|
4218
4237
|
}
|
|
4219
4238
|
var Ir = /* @__PURE__ */ function(e) {
|
|
4220
|
-
|
|
4239
|
+
ha(t, e);
|
|
4221
4240
|
function t() {
|
|
4222
4241
|
for (var n, o = arguments.length, a = new Array(o), s = 0; s < o; s++)
|
|
4223
4242
|
a[s] = arguments[s];
|
|
@@ -4245,18 +4264,18 @@ var Ir = /* @__PURE__ */ function(e) {
|
|
|
4245
4264
|
return r.render = function() {
|
|
4246
4265
|
var o = this.props, a = o.handle, s = o.handleSize;
|
|
4247
4266
|
o.onResize;
|
|
4248
|
-
var u = o.onResizeStart, m = o.onResizeStop, p = o.draggableOpts,
|
|
4267
|
+
var u = o.onResizeStart, m = o.onResizeStop, p = o.draggableOpts, y = o.minConstraints, v = o.maxConstraints, O = o.lockAspectRatio, S = o.axis;
|
|
4249
4268
|
o.width, o.height;
|
|
4250
|
-
var A = o.resizeHandles, $ = o.style, B = o.transformScale, W =
|
|
4251
|
-
return /* @__PURE__ */ ht.createElement(
|
|
4269
|
+
var A = o.resizeHandles, $ = o.style, B = o.transformScale, W = ba(o, ua);
|
|
4270
|
+
return /* @__PURE__ */ ht.createElement(la.default, {
|
|
4252
4271
|
axis: S,
|
|
4253
4272
|
draggableOpts: p,
|
|
4254
4273
|
handle: a,
|
|
4255
4274
|
handleSize: s,
|
|
4256
4275
|
height: this.state.height,
|
|
4257
4276
|
lockAspectRatio: O,
|
|
4258
|
-
maxConstraints:
|
|
4259
|
-
minConstraints:
|
|
4277
|
+
maxConstraints: v,
|
|
4278
|
+
minConstraints: y,
|
|
4260
4279
|
onResizeStart: u,
|
|
4261
4280
|
onResize: this.onResize,
|
|
4262
4281
|
onResizeStop: m,
|
|
@@ -4264,7 +4283,7 @@ var Ir = /* @__PURE__ */ function(e) {
|
|
|
4264
4283
|
transformScale: B,
|
|
4265
4284
|
width: this.state.width
|
|
4266
4285
|
}, /* @__PURE__ */ ht.createElement("div", St({}, W, {
|
|
4267
|
-
style:
|
|
4286
|
+
style: Ue(Ue({}, $), {}, {
|
|
4268
4287
|
width: this.state.width + "px",
|
|
4269
4288
|
height: this.state.height + "px"
|
|
4270
4289
|
})
|
|
@@ -4272,51 +4291,51 @@ var Ir = /* @__PURE__ */ function(e) {
|
|
|
4272
4291
|
}, t;
|
|
4273
4292
|
}(ht.Component);
|
|
4274
4293
|
Ze.default = Ir;
|
|
4275
|
-
Ir.propTypes =
|
|
4276
|
-
children:
|
|
4294
|
+
Ir.propTypes = Ue(Ue({}, ca.resizableProps), {}, {
|
|
4295
|
+
children: sa.default.element
|
|
4277
4296
|
});
|
|
4278
|
-
|
|
4297
|
+
kt.exports = function() {
|
|
4279
4298
|
throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
|
|
4280
4299
|
};
|
|
4281
|
-
|
|
4282
|
-
var
|
|
4283
|
-
const
|
|
4284
|
-
const
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
ln(() => {
|
|
4294
|
-
if (r.attrs.src && b.current) {
|
|
4300
|
+
kt.exports.Resizable = ze.default;
|
|
4301
|
+
var ya = kt.exports.ResizableBox = Ze.default;
|
|
4302
|
+
const va = ({ node: e, updateAttributes: t, editor: r }) => {
|
|
4303
|
+
const [n, o] = he({
|
|
4304
|
+
width: e.attrs.width || 300,
|
|
4305
|
+
height: e.attrs.height || 300
|
|
4306
|
+
}), [a, s] = he({
|
|
4307
|
+
left: e.attrs.marginLeft || 0,
|
|
4308
|
+
right: e.attrs.marginRight || 0
|
|
4309
|
+
}), [u, m] = he(e.attrs.src || ""), p = sn(null);
|
|
4310
|
+
hr(() => {
|
|
4311
|
+
if (e.attrs.src && p.current) {
|
|
4295
4312
|
const S = new Image();
|
|
4296
4313
|
S.onload = () => {
|
|
4297
|
-
(!
|
|
4314
|
+
(!e.attrs.width || !e.attrs.height) && o({
|
|
4298
4315
|
width: S.width > 600 ? 600 : S.width,
|
|
4299
4316
|
height: S.width > 600 ? 600 / S.width * S.height : S.height
|
|
4300
4317
|
});
|
|
4301
|
-
}, S.src =
|
|
4318
|
+
}, S.src = e.attrs.src;
|
|
4302
4319
|
}
|
|
4303
|
-
}, [
|
|
4304
|
-
const
|
|
4305
|
-
|
|
4320
|
+
}, [e.attrs.src]);
|
|
4321
|
+
const y = (S, { size: A }) => {
|
|
4322
|
+
o({
|
|
4306
4323
|
width: A.width,
|
|
4307
4324
|
height: A.height
|
|
4308
|
-
}),
|
|
4325
|
+
}), t({
|
|
4309
4326
|
width: A.width,
|
|
4310
4327
|
height: A.height
|
|
4311
4328
|
});
|
|
4312
|
-
},
|
|
4313
|
-
|
|
4314
|
-
src:
|
|
4315
|
-
width:
|
|
4316
|
-
height:
|
|
4317
|
-
marginLeft:
|
|
4318
|
-
marginRight:
|
|
4329
|
+
}, v = () => {
|
|
4330
|
+
t({
|
|
4331
|
+
src: u,
|
|
4332
|
+
width: n.width,
|
|
4333
|
+
height: n.height,
|
|
4334
|
+
marginLeft: a.left,
|
|
4335
|
+
marginRight: a.right
|
|
4319
4336
|
});
|
|
4337
|
+
}, O = (S) => {
|
|
4338
|
+
S.preventDefault();
|
|
4320
4339
|
};
|
|
4321
4340
|
return /* @__PURE__ */ l.jsxDEV(yr, { className: "image-wrapper", children: /* @__PURE__ */ l.jsxDEV(
|
|
4322
4341
|
Sr,
|
|
@@ -4327,15 +4346,16 @@ const ga = (e) => {
|
|
|
4327
4346
|
{
|
|
4328
4347
|
className: "relative",
|
|
4329
4348
|
style: {
|
|
4330
|
-
marginLeft:
|
|
4331
|
-
marginRight:
|
|
4349
|
+
marginLeft: a.left,
|
|
4350
|
+
marginRight: a.right
|
|
4332
4351
|
},
|
|
4333
|
-
|
|
4334
|
-
|
|
4352
|
+
onContextMenu: O,
|
|
4353
|
+
children: r.isEditable ? /* @__PURE__ */ l.jsxDEV(
|
|
4354
|
+
ya,
|
|
4335
4355
|
{
|
|
4336
|
-
width:
|
|
4337
|
-
height:
|
|
4338
|
-
onResize:
|
|
4356
|
+
width: n.width,
|
|
4357
|
+
height: n.height,
|
|
4358
|
+
onResize: y,
|
|
4339
4359
|
minConstraints: [100, 100],
|
|
4340
4360
|
maxConstraints: [800, 800],
|
|
4341
4361
|
lockAspectRatio: !0,
|
|
@@ -4343,8 +4363,8 @@ const ga = (e) => {
|
|
|
4343
4363
|
children: /* @__PURE__ */ l.jsxDEV(
|
|
4344
4364
|
"img",
|
|
4345
4365
|
{
|
|
4346
|
-
ref:
|
|
4347
|
-
src:
|
|
4366
|
+
ref: p,
|
|
4367
|
+
src: e.attrs.src,
|
|
4348
4368
|
alt: "Uploaded",
|
|
4349
4369
|
className: "object-contain w-full h-full",
|
|
4350
4370
|
draggable: !1
|
|
@@ -4353,7 +4373,7 @@ const ga = (e) => {
|
|
|
4353
4373
|
!1,
|
|
4354
4374
|
{
|
|
4355
4375
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4356
|
-
lineNumber:
|
|
4376
|
+
lineNumber: 89,
|
|
4357
4377
|
columnNumber: 33
|
|
4358
4378
|
},
|
|
4359
4379
|
void 0
|
|
@@ -4363,19 +4383,19 @@ const ga = (e) => {
|
|
|
4363
4383
|
!1,
|
|
4364
4384
|
{
|
|
4365
4385
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4366
|
-
lineNumber:
|
|
4386
|
+
lineNumber: 80,
|
|
4367
4387
|
columnNumber: 29
|
|
4368
4388
|
},
|
|
4369
4389
|
void 0
|
|
4370
4390
|
) : /* @__PURE__ */ l.jsxDEV(
|
|
4371
4391
|
"img",
|
|
4372
4392
|
{
|
|
4373
|
-
ref:
|
|
4374
|
-
src:
|
|
4393
|
+
ref: p,
|
|
4394
|
+
src: e.attrs.src,
|
|
4375
4395
|
alt: "Uploaded",
|
|
4376
4396
|
style: {
|
|
4377
|
-
width:
|
|
4378
|
-
height:
|
|
4397
|
+
width: n.width,
|
|
4398
|
+
height: n.height
|
|
4379
4399
|
},
|
|
4380
4400
|
className: "object-contain",
|
|
4381
4401
|
draggable: !1
|
|
@@ -4384,7 +4404,7 @@ const ga = (e) => {
|
|
|
4384
4404
|
!1,
|
|
4385
4405
|
{
|
|
4386
4406
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4387
|
-
lineNumber:
|
|
4407
|
+
lineNumber: 98,
|
|
4388
4408
|
columnNumber: 29
|
|
4389
4409
|
},
|
|
4390
4410
|
void 0
|
|
@@ -4394,184 +4414,190 @@ const ga = (e) => {
|
|
|
4394
4414
|
!1,
|
|
4395
4415
|
{
|
|
4396
4416
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4397
|
-
lineNumber:
|
|
4417
|
+
lineNumber: 71,
|
|
4398
4418
|
columnNumber: 21
|
|
4399
4419
|
},
|
|
4400
4420
|
void 0
|
|
4401
4421
|
),
|
|
4402
|
-
editable:
|
|
4422
|
+
editable: r.isEditable,
|
|
4403
4423
|
childrenEdit: /* @__PURE__ */ l.jsxDEV("div", { className: "space-y-4", children: [
|
|
4404
4424
|
/* @__PURE__ */ l.jsxDEV("div", { children: [
|
|
4405
4425
|
/* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Image URL" }, void 0, !1, {
|
|
4406
4426
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4407
|
-
lineNumber:
|
|
4427
|
+
lineNumber: 116,
|
|
4408
4428
|
columnNumber: 29
|
|
4409
4429
|
}, void 0),
|
|
4410
4430
|
/* @__PURE__ */ l.jsxDEV(
|
|
4411
4431
|
"input",
|
|
4412
4432
|
{
|
|
4413
4433
|
type: "text",
|
|
4414
|
-
value:
|
|
4415
|
-
onChange: (S) =>
|
|
4416
|
-
className: "w-full p-2 border rounded"
|
|
4434
|
+
value: u,
|
|
4435
|
+
onChange: (S) => m(S.target.value),
|
|
4436
|
+
className: "w-full p-2 border rounded",
|
|
4437
|
+
disabled: !r.isEditable
|
|
4417
4438
|
},
|
|
4418
4439
|
void 0,
|
|
4419
4440
|
!1,
|
|
4420
4441
|
{
|
|
4421
4442
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4422
|
-
lineNumber:
|
|
4443
|
+
lineNumber: 117,
|
|
4423
4444
|
columnNumber: 29
|
|
4424
4445
|
},
|
|
4425
4446
|
void 0
|
|
4426
4447
|
)
|
|
4427
4448
|
] }, void 0, !0, {
|
|
4428
4449
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4429
|
-
lineNumber:
|
|
4450
|
+
lineNumber: 115,
|
|
4430
4451
|
columnNumber: 25
|
|
4431
4452
|
}, void 0),
|
|
4432
4453
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex gap-2", children: [
|
|
4433
4454
|
/* @__PURE__ */ l.jsxDEV("div", { children: [
|
|
4434
4455
|
/* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Width" }, void 0, !1, {
|
|
4435
4456
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4436
|
-
lineNumber:
|
|
4457
|
+
lineNumber: 128,
|
|
4437
4458
|
columnNumber: 33
|
|
4438
4459
|
}, void 0),
|
|
4439
4460
|
/* @__PURE__ */ l.jsxDEV(
|
|
4440
4461
|
"input",
|
|
4441
4462
|
{
|
|
4442
4463
|
type: "number",
|
|
4443
|
-
value:
|
|
4444
|
-
onChange: (S) =>
|
|
4445
|
-
className: "w-full p-2 border rounded"
|
|
4464
|
+
value: n.width,
|
|
4465
|
+
onChange: (S) => o({ ...n, width: Number(S.target.value) }),
|
|
4466
|
+
className: "w-full p-2 border rounded",
|
|
4467
|
+
disabled: !r.isEditable
|
|
4446
4468
|
},
|
|
4447
4469
|
void 0,
|
|
4448
4470
|
!1,
|
|
4449
4471
|
{
|
|
4450
4472
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4451
|
-
lineNumber:
|
|
4473
|
+
lineNumber: 129,
|
|
4452
4474
|
columnNumber: 33
|
|
4453
4475
|
},
|
|
4454
4476
|
void 0
|
|
4455
4477
|
)
|
|
4456
4478
|
] }, void 0, !0, {
|
|
4457
4479
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4458
|
-
lineNumber:
|
|
4480
|
+
lineNumber: 127,
|
|
4459
4481
|
columnNumber: 29
|
|
4460
4482
|
}, void 0),
|
|
4461
4483
|
/* @__PURE__ */ l.jsxDEV("div", { children: [
|
|
4462
4484
|
/* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Height" }, void 0, !1, {
|
|
4463
4485
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4464
|
-
lineNumber:
|
|
4486
|
+
lineNumber: 138,
|
|
4465
4487
|
columnNumber: 33
|
|
4466
4488
|
}, void 0),
|
|
4467
4489
|
/* @__PURE__ */ l.jsxDEV(
|
|
4468
4490
|
"input",
|
|
4469
4491
|
{
|
|
4470
4492
|
type: "number",
|
|
4471
|
-
value:
|
|
4472
|
-
onChange: (S) =>
|
|
4473
|
-
className: "w-full p-2 border rounded"
|
|
4493
|
+
value: n.height,
|
|
4494
|
+
onChange: (S) => o({ ...n, height: Number(S.target.value) }),
|
|
4495
|
+
className: "w-full p-2 border rounded",
|
|
4496
|
+
disabled: !r.isEditable
|
|
4474
4497
|
},
|
|
4475
4498
|
void 0,
|
|
4476
4499
|
!1,
|
|
4477
4500
|
{
|
|
4478
4501
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4479
|
-
lineNumber:
|
|
4502
|
+
lineNumber: 139,
|
|
4480
4503
|
columnNumber: 33
|
|
4481
4504
|
},
|
|
4482
4505
|
void 0
|
|
4483
4506
|
)
|
|
4484
4507
|
] }, void 0, !0, {
|
|
4485
4508
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4486
|
-
lineNumber:
|
|
4509
|
+
lineNumber: 137,
|
|
4487
4510
|
columnNumber: 29
|
|
4488
4511
|
}, void 0)
|
|
4489
4512
|
] }, void 0, !0, {
|
|
4490
4513
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4491
|
-
lineNumber:
|
|
4514
|
+
lineNumber: 126,
|
|
4492
4515
|
columnNumber: 25
|
|
4493
4516
|
}, void 0),
|
|
4494
4517
|
/* @__PURE__ */ l.jsxDEV("div", { className: "flex gap-2", children: [
|
|
4495
4518
|
/* @__PURE__ */ l.jsxDEV("div", { children: [
|
|
4496
4519
|
/* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Margin Left" }, void 0, !1, {
|
|
4497
4520
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4498
|
-
lineNumber:
|
|
4521
|
+
lineNumber: 151,
|
|
4499
4522
|
columnNumber: 33
|
|
4500
4523
|
}, void 0),
|
|
4501
4524
|
/* @__PURE__ */ l.jsxDEV(
|
|
4502
4525
|
"input",
|
|
4503
4526
|
{
|
|
4504
4527
|
type: "number",
|
|
4505
|
-
value:
|
|
4506
|
-
onChange: (S) =>
|
|
4507
|
-
className: "w-full p-2 border rounded"
|
|
4528
|
+
value: a.left,
|
|
4529
|
+
onChange: (S) => s({ ...a, left: Number(S.target.value) }),
|
|
4530
|
+
className: "w-full p-2 border rounded",
|
|
4531
|
+
disabled: !r.isEditable
|
|
4508
4532
|
},
|
|
4509
4533
|
void 0,
|
|
4510
4534
|
!1,
|
|
4511
4535
|
{
|
|
4512
4536
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4513
|
-
lineNumber:
|
|
4537
|
+
lineNumber: 152,
|
|
4514
4538
|
columnNumber: 33
|
|
4515
4539
|
},
|
|
4516
4540
|
void 0
|
|
4517
4541
|
)
|
|
4518
4542
|
] }, void 0, !0, {
|
|
4519
4543
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4520
|
-
lineNumber:
|
|
4544
|
+
lineNumber: 150,
|
|
4521
4545
|
columnNumber: 29
|
|
4522
4546
|
}, void 0),
|
|
4523
4547
|
/* @__PURE__ */ l.jsxDEV("div", { children: [
|
|
4524
4548
|
/* @__PURE__ */ l.jsxDEV("label", { className: "block text-sm font-medium", children: "Margin Right" }, void 0, !1, {
|
|
4525
4549
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4526
|
-
lineNumber:
|
|
4550
|
+
lineNumber: 161,
|
|
4527
4551
|
columnNumber: 33
|
|
4528
4552
|
}, void 0),
|
|
4529
4553
|
/* @__PURE__ */ l.jsxDEV(
|
|
4530
4554
|
"input",
|
|
4531
4555
|
{
|
|
4532
4556
|
type: "number",
|
|
4533
|
-
value:
|
|
4534
|
-
onChange: (S) =>
|
|
4535
|
-
className: "w-full p-2 border rounded"
|
|
4557
|
+
value: a.right,
|
|
4558
|
+
onChange: (S) => s({ ...a, right: Number(S.target.value) }),
|
|
4559
|
+
className: "w-full p-2 border rounded",
|
|
4560
|
+
disabled: !r.isEditable
|
|
4536
4561
|
},
|
|
4537
4562
|
void 0,
|
|
4538
4563
|
!1,
|
|
4539
4564
|
{
|
|
4540
4565
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4541
|
-
lineNumber:
|
|
4566
|
+
lineNumber: 162,
|
|
4542
4567
|
columnNumber: 33
|
|
4543
4568
|
},
|
|
4544
4569
|
void 0
|
|
4545
4570
|
)
|
|
4546
4571
|
] }, void 0, !0, {
|
|
4547
4572
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4548
|
-
lineNumber:
|
|
4573
|
+
lineNumber: 160,
|
|
4549
4574
|
columnNumber: 29
|
|
4550
4575
|
}, void 0)
|
|
4551
4576
|
] }, void 0, !0, {
|
|
4552
4577
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4553
|
-
lineNumber:
|
|
4578
|
+
lineNumber: 149,
|
|
4554
4579
|
columnNumber: 25
|
|
4555
4580
|
}, void 0),
|
|
4556
4581
|
/* @__PURE__ */ l.jsxDEV(
|
|
4557
4582
|
"button",
|
|
4558
4583
|
{
|
|
4559
|
-
onClick:
|
|
4584
|
+
onClick: v,
|
|
4560
4585
|
className: "w-full p-2 text-white bg-blue-500 rounded hover:bg-blue-600",
|
|
4586
|
+
disabled: !r.isEditable,
|
|
4561
4587
|
children: "Update Image"
|
|
4562
4588
|
},
|
|
4563
4589
|
void 0,
|
|
4564
4590
|
!1,
|
|
4565
4591
|
{
|
|
4566
4592
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4567
|
-
lineNumber:
|
|
4593
|
+
lineNumber: 172,
|
|
4568
4594
|
columnNumber: 25
|
|
4569
4595
|
},
|
|
4570
4596
|
void 0
|
|
4571
4597
|
)
|
|
4572
4598
|
] }, void 0, !0, {
|
|
4573
4599
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4574
|
-
lineNumber:
|
|
4600
|
+
lineNumber: 114,
|
|
4575
4601
|
columnNumber: 21
|
|
4576
4602
|
}, void 0)
|
|
4577
4603
|
},
|
|
@@ -4579,16 +4605,16 @@ const ga = (e) => {
|
|
|
4579
4605
|
!1,
|
|
4580
4606
|
{
|
|
4581
4607
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4582
|
-
lineNumber:
|
|
4608
|
+
lineNumber: 68,
|
|
4583
4609
|
columnNumber: 13
|
|
4584
4610
|
},
|
|
4585
4611
|
void 0
|
|
4586
4612
|
) }, void 0, !1, {
|
|
4587
4613
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/image/image-view.tsx",
|
|
4588
|
-
lineNumber:
|
|
4614
|
+
lineNumber: 67,
|
|
4589
4615
|
columnNumber: 9
|
|
4590
4616
|
}, void 0);
|
|
4591
|
-
},
|
|
4617
|
+
}, ga = gr.create({
|
|
4592
4618
|
name: "image",
|
|
4593
4619
|
group: "block",
|
|
4594
4620
|
content: "inline*",
|
|
@@ -4599,17 +4625,30 @@ const ga = (e) => {
|
|
|
4599
4625
|
return {
|
|
4600
4626
|
src: { default: null },
|
|
4601
4627
|
width: { default: 300 },
|
|
4602
|
-
height: { default: 300 }
|
|
4628
|
+
height: { default: 300 },
|
|
4629
|
+
marginLeft: { default: 0 },
|
|
4630
|
+
marginRight: { default: 0 }
|
|
4603
4631
|
};
|
|
4604
4632
|
},
|
|
4605
4633
|
parseHTML() {
|
|
4606
|
-
return [
|
|
4634
|
+
return [
|
|
4635
|
+
{
|
|
4636
|
+
tag: "img",
|
|
4637
|
+
getAttrs: (e) => e instanceof HTMLElement ? {
|
|
4638
|
+
src: e.getAttribute("src"),
|
|
4639
|
+
width: Number(e.getAttribute("width")) || 300,
|
|
4640
|
+
height: Number(e.getAttribute("height")) || 300,
|
|
4641
|
+
marginLeft: Number(e.getAttribute("marginleft")) || 0,
|
|
4642
|
+
marginRight: Number(e.getAttribute("marginright")) || 0
|
|
4643
|
+
} : null
|
|
4644
|
+
}
|
|
4645
|
+
];
|
|
4607
4646
|
},
|
|
4608
4647
|
renderHTML({ HTMLAttributes: e }) {
|
|
4609
|
-
return ["
|
|
4648
|
+
return ["img", xr(e)];
|
|
4610
4649
|
},
|
|
4611
4650
|
addNodeView() {
|
|
4612
|
-
return vr(
|
|
4651
|
+
return vr(va);
|
|
4613
4652
|
},
|
|
4614
4653
|
addCommands() {
|
|
4615
4654
|
return {
|
|
@@ -4619,13 +4658,13 @@ const ga = (e) => {
|
|
|
4619
4658
|
}).run()
|
|
4620
4659
|
};
|
|
4621
4660
|
}
|
|
4622
|
-
}),
|
|
4623
|
-
|
|
4624
|
-
types: [
|
|
4661
|
+
}), xa = [
|
|
4662
|
+
pn.configure({
|
|
4663
|
+
types: [Ut.name, mn.name]
|
|
4625
4664
|
}),
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4665
|
+
Ut,
|
|
4666
|
+
hn.configure({ multicolor: !0 }),
|
|
4667
|
+
bn.configure({
|
|
4629
4668
|
bulletList: {
|
|
4630
4669
|
keepMarks: !0,
|
|
4631
4670
|
keepAttributes: !1
|
|
@@ -4635,16 +4674,16 @@ const ga = (e) => {
|
|
|
4635
4674
|
keepAttributes: !1
|
|
4636
4675
|
}
|
|
4637
4676
|
}),
|
|
4638
|
-
|
|
4677
|
+
Xi,
|
|
4678
|
+
yn,
|
|
4639
4679
|
vn,
|
|
4640
4680
|
gn,
|
|
4641
|
-
xn
|
|
4642
|
-
Nn.configure({
|
|
4681
|
+
xn.configure({
|
|
4643
4682
|
types: ["heading", "paragraph"]
|
|
4644
4683
|
}),
|
|
4684
|
+
Nn,
|
|
4645
4685
|
En,
|
|
4646
|
-
Sn
|
|
4647
|
-
wn.configure({
|
|
4686
|
+
Sn.configure({
|
|
4648
4687
|
resizable: !0,
|
|
4649
4688
|
lastColumnResizable: !0,
|
|
4650
4689
|
allowTableNodeSelection: !0,
|
|
@@ -4652,16 +4691,16 @@ const ga = (e) => {
|
|
|
4652
4691
|
class: "table-wrapper"
|
|
4653
4692
|
}
|
|
4654
4693
|
}),
|
|
4694
|
+
wn,
|
|
4655
4695
|
Cn,
|
|
4656
|
-
kn
|
|
4657
|
-
Dn.configure({
|
|
4696
|
+
kn.configure({
|
|
4658
4697
|
HTMLAttributes: {
|
|
4659
4698
|
class: "table-cell"
|
|
4660
4699
|
}
|
|
4661
4700
|
}),
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
],
|
|
4701
|
+
Dn,
|
|
4702
|
+
ga
|
|
4703
|
+
], qa = ({
|
|
4665
4704
|
content: e = "",
|
|
4666
4705
|
slotBefore: t = !1,
|
|
4667
4706
|
className: r = "",
|
|
@@ -4669,37 +4708,33 @@ const ga = (e) => {
|
|
|
4669
4708
|
editable: o = !0,
|
|
4670
4709
|
onChange: a
|
|
4671
4710
|
}) => {
|
|
4672
|
-
const s = cn(
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
},
|
|
4689
|
-
e,
|
|
4690
|
-
!1,
|
|
4691
|
-
{
|
|
4711
|
+
const s = cn({
|
|
4712
|
+
extensions: xa,
|
|
4713
|
+
content: e,
|
|
4714
|
+
editable: o,
|
|
4715
|
+
onUpdate: ({ editor: u }) => {
|
|
4716
|
+
a && a(u.getHTML());
|
|
4717
|
+
}
|
|
4718
|
+
});
|
|
4719
|
+
return hr(() => {
|
|
4720
|
+
s && e !== s.getHTML() && s.commands.setContent(e, !1);
|
|
4721
|
+
}, [s, e]), s ? /* @__PURE__ */ l.jsxDEV("div", { className: `cyber-editor-container ${r}`, children: [
|
|
4722
|
+
t && /* @__PURE__ */ l.jsxDEV(Ui, { editor: s }, void 0, !1, {
|
|
4723
|
+
fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
|
|
4724
|
+
lineNumber: 36,
|
|
4725
|
+
columnNumber: 28
|
|
4726
|
+
}, void 0),
|
|
4727
|
+
/* @__PURE__ */ l.jsxDEV(un, { editor: s, className: n }, void 0, !1, {
|
|
4692
4728
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
|
|
4693
|
-
lineNumber:
|
|
4729
|
+
lineNumber: 37,
|
|
4694
4730
|
columnNumber: 13
|
|
4695
|
-
},
|
|
4696
|
-
|
|
4697
|
-
) }, void 0, !1, {
|
|
4731
|
+
}, void 0)
|
|
4732
|
+
] }, void 0, !0, {
|
|
4698
4733
|
fileName: "E:/CyberSkill/cyber-editor/src/extensions/editor-provider.tsx",
|
|
4699
|
-
lineNumber:
|
|
4734
|
+
lineNumber: 35,
|
|
4700
4735
|
columnNumber: 9
|
|
4701
|
-
}, void 0);
|
|
4736
|
+
}, void 0) : null;
|
|
4702
4737
|
};
|
|
4703
4738
|
export {
|
|
4704
|
-
|
|
4739
|
+
qa as CyberEditorProvider
|
|
4705
4740
|
};
|