@blocknote/mantine 0.13.1 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-mantine.js +660 -605
- package/dist/blocknote-mantine.js.map +1 -1
- package/dist/blocknote-mantine.umd.cjs +9 -9
- package/dist/blocknote-mantine.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +5 -5
- package/src/index.tsx +1 -1
- package/src/panel/Panel.tsx +1 -1
- package/src/panel/PanelButton.tsx +1 -1
- package/src/panel/PanelFileInput.tsx +3 -2
- package/src/panel/PanelTab.tsx +1 -1
- package/src/panel/PanelTextInput.tsx +1 -1
- package/types/src/panel/PanelFileInput.d.ts +1 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import M, { forwardRef as
|
|
2
|
-
import { useBlockNoteContext as Cr, ComponentsContext as
|
|
1
|
+
import M, { forwardRef as T, createContext as wr, useState as Sr, useRef as _r, useCallback as oe, useContext as Pr } from "react";
|
|
2
|
+
import { useBlockNoteContext as Cr, ComponentsContext as Or, BlockNoteViewRaw as Fr } from "@blocknote/react";
|
|
3
3
|
import * as d from "@mantine/core";
|
|
4
|
-
import { MantineProvider as
|
|
5
|
-
import
|
|
4
|
+
import { MantineProvider as Mr } from "@mantine/core";
|
|
5
|
+
import Dr from "use-prefers-color-scheme";
|
|
6
6
|
import { assertEmpty as R, isSafari as ae } from "@blocknote/core";
|
|
7
|
-
import { useFocusWithin as
|
|
8
|
-
var
|
|
7
|
+
import { useFocusWithin as Nr, useFocusTrap as Ir, mergeRefs as Lr } from "@mantine/hooks";
|
|
8
|
+
var ie = { exports: {} }, B = {};
|
|
9
9
|
/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
@@ -15,25 +15,25 @@ var oe = { exports: {} }, $ = {};
|
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
if (
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
var r = M,
|
|
24
|
-
function f(u, b,
|
|
25
|
-
var y,
|
|
26
|
-
|
|
18
|
+
var Fe;
|
|
19
|
+
function Ar() {
|
|
20
|
+
if (Fe)
|
|
21
|
+
return B;
|
|
22
|
+
Fe = 1;
|
|
23
|
+
var r = M, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
24
|
+
function f(u, b, p) {
|
|
25
|
+
var y, w = {}, P = null, W = null;
|
|
26
|
+
p !== void 0 && (P = "" + p), b.key !== void 0 && (P = "" + b.key), b.ref !== void 0 && (W = b.ref);
|
|
27
27
|
for (y in b)
|
|
28
|
-
|
|
28
|
+
o.call(b, y) && !c.hasOwnProperty(y) && (w[y] = b[y]);
|
|
29
29
|
if (u && u.defaultProps)
|
|
30
30
|
for (y in b = u.defaultProps, b)
|
|
31
|
-
|
|
32
|
-
return { $$typeof:
|
|
31
|
+
w[y] === void 0 && (w[y] = b[y]);
|
|
32
|
+
return { $$typeof: t, type: u, key: P, ref: W, props: w, _owner: s.current };
|
|
33
33
|
}
|
|
34
|
-
return
|
|
34
|
+
return B.Fragment = n, B.jsx = f, B.jsxs = f, B;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
36
|
+
var $ = {};
|
|
37
37
|
/**
|
|
38
38
|
* @license React
|
|
39
39
|
* react-jsx-runtime.development.js
|
|
@@ -43,70 +43,70 @@ var W = {};
|
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
var
|
|
47
|
-
function
|
|
48
|
-
return
|
|
49
|
-
var r = M,
|
|
50
|
-
function
|
|
46
|
+
var Me;
|
|
47
|
+
function zr() {
|
|
48
|
+
return Me || (Me = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
+
var r = M, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), u = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), se = Symbol.iterator, Ue = "@@iterator";
|
|
50
|
+
function Ge(e) {
|
|
51
51
|
if (e === null || typeof e != "object")
|
|
52
52
|
return null;
|
|
53
|
-
var
|
|
54
|
-
return typeof
|
|
53
|
+
var a = se && e[se] || e[Ue];
|
|
54
|
+
return typeof a == "function" ? a : null;
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
56
|
+
var N = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
|
+
function S(e) {
|
|
58
58
|
{
|
|
59
|
-
for (var
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
|
|
60
|
+
i[v - 1] = arguments[v];
|
|
61
|
+
He("error", e, i);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function He(e, a, i) {
|
|
65
65
|
{
|
|
66
|
-
var v =
|
|
67
|
-
h !== "" && (
|
|
68
|
-
var
|
|
69
|
-
return String(
|
|
66
|
+
var v = N.ReactDebugCurrentFrame, h = v.getStackAddendum();
|
|
67
|
+
h !== "" && (a += "%s", i = i.concat([h]));
|
|
68
|
+
var j = i.map(function(g) {
|
|
69
|
+
return String(g);
|
|
70
70
|
});
|
|
71
|
-
|
|
71
|
+
j.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, j);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
function
|
|
77
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
74
|
+
var Ke = !1, qe = !1, Je = !1, Xe = !1, Ze = !1, le;
|
|
75
|
+
le = Symbol.for("react.module.reference");
|
|
76
|
+
function Qe(e) {
|
|
77
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === c || Ze || e === s || e === p || e === y || Xe || e === W || Ke || qe || Je || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === w || e.$$typeof === f || e.$$typeof === u || e.$$typeof === b || // This needs to include all possible module reference object
|
|
78
78
|
// types supported by any Flight configuration anywhere since
|
|
79
79
|
// we don't know which Flight build this will end up being used
|
|
80
80
|
// with.
|
|
81
|
-
e.$$typeof ===
|
|
81
|
+
e.$$typeof === le || e.getModuleId !== void 0));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function er(e, a, i) {
|
|
84
84
|
var v = e.displayName;
|
|
85
85
|
if (v)
|
|
86
86
|
return v;
|
|
87
|
-
var h =
|
|
88
|
-
return h !== "" ?
|
|
87
|
+
var h = a.displayName || a.name || "";
|
|
88
|
+
return h !== "" ? i + "(" + h + ")" : i;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function ue(e) {
|
|
91
91
|
return e.displayName || "Context";
|
|
92
92
|
}
|
|
93
93
|
function O(e) {
|
|
94
94
|
if (e == null)
|
|
95
95
|
return null;
|
|
96
|
-
if (typeof e.tag == "number" &&
|
|
96
|
+
if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
97
97
|
return e.displayName || e.name || null;
|
|
98
98
|
if (typeof e == "string")
|
|
99
99
|
return e;
|
|
100
100
|
switch (e) {
|
|
101
|
-
case a:
|
|
102
|
-
return "Fragment";
|
|
103
101
|
case o:
|
|
102
|
+
return "Fragment";
|
|
103
|
+
case n:
|
|
104
104
|
return "Portal";
|
|
105
105
|
case c:
|
|
106
106
|
return "Profiler";
|
|
107
|
-
case
|
|
107
|
+
case s:
|
|
108
108
|
return "StrictMode";
|
|
109
|
-
case
|
|
109
|
+
case p:
|
|
110
110
|
return "Suspense";
|
|
111
111
|
case y:
|
|
112
112
|
return "SuspenseList";
|
|
@@ -114,20 +114,20 @@ function Lr() {
|
|
|
114
114
|
if (typeof e == "object")
|
|
115
115
|
switch (e.$$typeof) {
|
|
116
116
|
case u:
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var a = e;
|
|
118
|
+
return ue(a) + ".Consumer";
|
|
119
119
|
case f:
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var i = e;
|
|
121
|
+
return ue(i._context) + ".Provider";
|
|
122
122
|
case b:
|
|
123
|
-
return
|
|
124
|
-
case
|
|
123
|
+
return er(e, e.render, "ForwardRef");
|
|
124
|
+
case w:
|
|
125
125
|
var v = e.displayName || null;
|
|
126
126
|
return v !== null ? v : O(e.type) || "Memo";
|
|
127
|
-
case
|
|
128
|
-
var h = e,
|
|
127
|
+
case P: {
|
|
128
|
+
var h = e, j = h._payload, g = h._init;
|
|
129
129
|
try {
|
|
130
|
-
return O(
|
|
130
|
+
return O(g(j));
|
|
131
131
|
} catch {
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
@@ -135,18 +135,18 @@ function Lr() {
|
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
138
|
-
var D = Object.assign,
|
|
139
|
-
function
|
|
138
|
+
var D = Object.assign, A = 0, ce, de, fe, ve, be, pe, me;
|
|
139
|
+
function ge() {
|
|
140
140
|
}
|
|
141
|
-
|
|
142
|
-
function
|
|
141
|
+
ge.__reactDisabledLog = !0;
|
|
142
|
+
function rr() {
|
|
143
143
|
{
|
|
144
|
-
if (
|
|
145
|
-
|
|
144
|
+
if (A === 0) {
|
|
145
|
+
ce = console.log, de = console.info, fe = console.warn, ve = console.error, be = console.group, pe = console.groupCollapsed, me = console.groupEnd;
|
|
146
146
|
var e = {
|
|
147
147
|
configurable: !0,
|
|
148
148
|
enumerable: !0,
|
|
149
|
-
value:
|
|
149
|
+
value: ge,
|
|
150
150
|
writable: !0
|
|
151
151
|
};
|
|
152
152
|
Object.defineProperties(console, {
|
|
@@ -159,12 +159,12 @@ function Lr() {
|
|
|
159
159
|
groupEnd: e
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
A++;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function tr() {
|
|
166
166
|
{
|
|
167
|
-
if (
|
|
167
|
+
if (A--, A === 0) {
|
|
168
168
|
var e = {
|
|
169
169
|
configurable: !0,
|
|
170
170
|
enumerable: !0,
|
|
@@ -172,87 +172,87 @@ function Lr() {
|
|
|
172
172
|
};
|
|
173
173
|
Object.defineProperties(console, {
|
|
174
174
|
log: D({}, e, {
|
|
175
|
-
value:
|
|
175
|
+
value: ce
|
|
176
176
|
}),
|
|
177
177
|
info: D({}, e, {
|
|
178
|
-
value:
|
|
178
|
+
value: de
|
|
179
179
|
}),
|
|
180
180
|
warn: D({}, e, {
|
|
181
|
-
value:
|
|
181
|
+
value: fe
|
|
182
182
|
}),
|
|
183
183
|
error: D({}, e, {
|
|
184
|
-
value:
|
|
184
|
+
value: ve
|
|
185
185
|
}),
|
|
186
186
|
group: D({}, e, {
|
|
187
|
-
value:
|
|
187
|
+
value: be
|
|
188
188
|
}),
|
|
189
189
|
groupCollapsed: D({}, e, {
|
|
190
|
-
value:
|
|
190
|
+
value: pe
|
|
191
191
|
}),
|
|
192
192
|
groupEnd: D({}, e, {
|
|
193
|
-
value:
|
|
193
|
+
value: me
|
|
194
194
|
})
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
A < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
200
|
+
var J = N.ReactCurrentDispatcher, X;
|
|
201
|
+
function V(e, a, i) {
|
|
202
202
|
{
|
|
203
|
-
if (
|
|
203
|
+
if (X === void 0)
|
|
204
204
|
try {
|
|
205
205
|
throw Error();
|
|
206
206
|
} catch (h) {
|
|
207
207
|
var v = h.stack.trim().match(/\n( *(at )?)/);
|
|
208
|
-
|
|
208
|
+
X = v && v[1] || "";
|
|
209
209
|
}
|
|
210
210
|
return `
|
|
211
|
-
` +
|
|
211
|
+
` + X + e;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
var
|
|
214
|
+
var Z = !1, Y;
|
|
215
215
|
{
|
|
216
|
-
var
|
|
217
|
-
|
|
216
|
+
var nr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
|
+
Y = new nr();
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
if (!e ||
|
|
219
|
+
function he(e, a) {
|
|
220
|
+
if (!e || Z)
|
|
221
221
|
return "";
|
|
222
222
|
{
|
|
223
|
-
var
|
|
224
|
-
if (
|
|
225
|
-
return
|
|
223
|
+
var i = Y.get(e);
|
|
224
|
+
if (i !== void 0)
|
|
225
|
+
return i;
|
|
226
226
|
}
|
|
227
227
|
var v;
|
|
228
|
-
|
|
228
|
+
Z = !0;
|
|
229
229
|
var h = Error.prepareStackTrace;
|
|
230
230
|
Error.prepareStackTrace = void 0;
|
|
231
|
-
var
|
|
232
|
-
|
|
231
|
+
var j;
|
|
232
|
+
j = J.current, J.current = null, rr();
|
|
233
233
|
try {
|
|
234
|
-
if (
|
|
235
|
-
var
|
|
234
|
+
if (a) {
|
|
235
|
+
var g = function() {
|
|
236
236
|
throw Error();
|
|
237
237
|
};
|
|
238
|
-
if (Object.defineProperty(
|
|
238
|
+
if (Object.defineProperty(g.prototype, "props", {
|
|
239
239
|
set: function() {
|
|
240
240
|
throw Error();
|
|
241
241
|
}
|
|
242
242
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
243
243
|
try {
|
|
244
|
-
Reflect.construct(
|
|
244
|
+
Reflect.construct(g, []);
|
|
245
245
|
} catch (F) {
|
|
246
246
|
v = F;
|
|
247
247
|
}
|
|
248
|
-
Reflect.construct(e, [],
|
|
248
|
+
Reflect.construct(e, [], g);
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
|
-
|
|
251
|
+
g.call();
|
|
252
252
|
} catch (F) {
|
|
253
253
|
v = F;
|
|
254
254
|
}
|
|
255
|
-
e.call(
|
|
255
|
+
e.call(g.prototype);
|
|
256
256
|
}
|
|
257
257
|
} else {
|
|
258
258
|
try {
|
|
@@ -265,177 +265,177 @@ function Lr() {
|
|
|
265
265
|
} catch (F) {
|
|
266
266
|
if (F && v && typeof F.stack == "string") {
|
|
267
267
|
for (var m = F.stack.split(`
|
|
268
|
-
`),
|
|
269
|
-
`),
|
|
270
|
-
|
|
271
|
-
for (;
|
|
272
|
-
if (m[
|
|
273
|
-
if (
|
|
268
|
+
`), _ = v.stack.split(`
|
|
269
|
+
`), E = m.length - 1, k = _.length - 1; E >= 1 && k >= 0 && m[E] !== _[k]; )
|
|
270
|
+
k--;
|
|
271
|
+
for (; E >= 1 && k >= 0; E--, k--)
|
|
272
|
+
if (m[E] !== _[k]) {
|
|
273
|
+
if (E !== 1 || k !== 1)
|
|
274
274
|
do
|
|
275
|
-
if (
|
|
276
|
-
var
|
|
277
|
-
` + m[
|
|
278
|
-
return e.displayName &&
|
|
275
|
+
if (E--, k--, k < 0 || m[E] !== _[k]) {
|
|
276
|
+
var C = `
|
|
277
|
+
` + m[E].replace(" at new ", " at ");
|
|
278
|
+
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, C), C;
|
|
279
279
|
}
|
|
280
|
-
while (
|
|
280
|
+
while (E >= 1 && k >= 0);
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
} finally {
|
|
285
|
-
|
|
285
|
+
Z = !1, J.current = j, tr(), Error.prepareStackTrace = h;
|
|
286
286
|
}
|
|
287
|
-
var
|
|
288
|
-
return typeof e == "function" &&
|
|
287
|
+
var L = e ? e.displayName || e.name : "", Oe = L ? V(L) : "";
|
|
288
|
+
return typeof e == "function" && Y.set(e, Oe), Oe;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
290
|
+
function or(e, a, i) {
|
|
291
|
+
return he(e, !1);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
var
|
|
295
|
-
return !!(
|
|
293
|
+
function ar(e) {
|
|
294
|
+
var a = e.prototype;
|
|
295
|
+
return !!(a && a.isReactComponent);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function U(e, a, i) {
|
|
298
298
|
if (e == null)
|
|
299
299
|
return "";
|
|
300
300
|
if (typeof e == "function")
|
|
301
|
-
return
|
|
301
|
+
return he(e, ar(e));
|
|
302
302
|
if (typeof e == "string")
|
|
303
|
-
return
|
|
303
|
+
return V(e);
|
|
304
304
|
switch (e) {
|
|
305
|
-
case
|
|
306
|
-
return
|
|
305
|
+
case p:
|
|
306
|
+
return V("Suspense");
|
|
307
307
|
case y:
|
|
308
|
-
return
|
|
308
|
+
return V("SuspenseList");
|
|
309
309
|
}
|
|
310
310
|
if (typeof e == "object")
|
|
311
311
|
switch (e.$$typeof) {
|
|
312
312
|
case b:
|
|
313
|
-
return
|
|
314
|
-
case
|
|
315
|
-
return
|
|
316
|
-
case
|
|
317
|
-
var v = e, h = v._payload,
|
|
313
|
+
return or(e.render);
|
|
314
|
+
case w:
|
|
315
|
+
return U(e.type, a, i);
|
|
316
|
+
case P: {
|
|
317
|
+
var v = e, h = v._payload, j = v._init;
|
|
318
318
|
try {
|
|
319
|
-
return
|
|
319
|
+
return U(j(h), a, i);
|
|
320
320
|
} catch {
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
return "";
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
function
|
|
326
|
+
var G = Object.prototype.hasOwnProperty, xe = {}, ye = N.ReactDebugCurrentFrame;
|
|
327
|
+
function H(e) {
|
|
328
328
|
if (e) {
|
|
329
|
-
var
|
|
330
|
-
|
|
329
|
+
var a = e._owner, i = U(e.type, e._source, a ? a.type : null);
|
|
330
|
+
ye.setExtraStackFrame(i);
|
|
331
331
|
} else
|
|
332
|
-
|
|
332
|
+
ye.setExtraStackFrame(null);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function ir(e, a, i, v, h) {
|
|
335
335
|
{
|
|
336
|
-
var
|
|
337
|
-
for (var
|
|
338
|
-
if (
|
|
336
|
+
var j = Function.call.bind(G);
|
|
337
|
+
for (var g in e)
|
|
338
|
+
if (j(e, g)) {
|
|
339
339
|
var m = void 0;
|
|
340
340
|
try {
|
|
341
|
-
if (typeof e[
|
|
342
|
-
var
|
|
343
|
-
throw
|
|
341
|
+
if (typeof e[g] != "function") {
|
|
342
|
+
var _ = Error((v || "React class") + ": " + i + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
343
|
+
throw _.name = "Invariant Violation", _;
|
|
344
344
|
}
|
|
345
|
-
m = e[
|
|
346
|
-
} catch (
|
|
347
|
-
m =
|
|
345
|
+
m = e[g](a, g, v, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
346
|
+
} catch (E) {
|
|
347
|
+
m = E;
|
|
348
348
|
}
|
|
349
|
-
m && !(m instanceof Error) && (
|
|
349
|
+
m && !(m instanceof Error) && (H(h), S("%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).", v || "React class", i, g, typeof m), H(null)), m instanceof Error && !(m.message in xe) && (xe[m.message] = !0, H(h), S("Failed %s type: %s", i, m.message), H(null));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
var
|
|
354
|
-
function
|
|
355
|
-
return
|
|
353
|
+
var sr = Array.isArray;
|
|
354
|
+
function Q(e) {
|
|
355
|
+
return sr(e);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function lr(e) {
|
|
358
358
|
{
|
|
359
|
-
var
|
|
360
|
-
return
|
|
359
|
+
var a = typeof Symbol == "function" && Symbol.toStringTag, i = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
360
|
+
return i;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function ur(e) {
|
|
364
364
|
try {
|
|
365
|
-
return
|
|
365
|
+
return je(e), !1;
|
|
366
366
|
} catch {
|
|
367
367
|
return !0;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function je(e) {
|
|
371
371
|
return "" + e;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
if (
|
|
375
|
-
return
|
|
373
|
+
function Re(e) {
|
|
374
|
+
if (ur(e))
|
|
375
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lr(e)), je(e);
|
|
376
376
|
}
|
|
377
|
-
var
|
|
377
|
+
var z = N.ReactCurrentOwner, cr = {
|
|
378
378
|
key: !0,
|
|
379
379
|
ref: !0,
|
|
380
380
|
__self: !0,
|
|
381
381
|
__source: !0
|
|
382
|
-
},
|
|
383
|
-
|
|
384
|
-
function
|
|
385
|
-
if (
|
|
386
|
-
var
|
|
387
|
-
if (
|
|
382
|
+
}, Te, Ee, ee;
|
|
383
|
+
ee = {};
|
|
384
|
+
function dr(e) {
|
|
385
|
+
if (G.call(e, "ref")) {
|
|
386
|
+
var a = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
387
|
+
if (a && a.isReactWarning)
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
390
|
return e.ref !== void 0;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
if (
|
|
394
|
-
var
|
|
395
|
-
if (
|
|
392
|
+
function fr(e) {
|
|
393
|
+
if (G.call(e, "key")) {
|
|
394
|
+
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
395
|
+
if (a && a.isReactWarning)
|
|
396
396
|
return !1;
|
|
397
397
|
}
|
|
398
398
|
return e.key !== void 0;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
if (typeof e.ref == "string" &&
|
|
402
|
-
var
|
|
403
|
-
|
|
400
|
+
function vr(e, a) {
|
|
401
|
+
if (typeof e.ref == "string" && z.current && a && z.current.stateNode !== a) {
|
|
402
|
+
var i = O(z.current.type);
|
|
403
|
+
ee[i] || (S('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', O(z.current.type), e.ref), ee[i] = !0);
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function br(e, a) {
|
|
407
407
|
{
|
|
408
|
-
var
|
|
409
|
-
|
|
408
|
+
var i = function() {
|
|
409
|
+
Te || (Te = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
|
|
410
410
|
};
|
|
411
|
-
|
|
412
|
-
get:
|
|
411
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
412
|
+
get: i,
|
|
413
413
|
configurable: !0
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function pr(e, a) {
|
|
418
418
|
{
|
|
419
|
-
var
|
|
420
|
-
|
|
419
|
+
var i = function() {
|
|
420
|
+
Ee || (Ee = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
|
|
421
421
|
};
|
|
422
|
-
|
|
423
|
-
get:
|
|
422
|
+
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
423
|
+
get: i,
|
|
424
424
|
configurable: !0
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var
|
|
428
|
+
var mr = function(e, a, i, v, h, j, g) {
|
|
429
429
|
var m = {
|
|
430
430
|
// This tag allows us to uniquely identify this as a React Element
|
|
431
|
-
$$typeof:
|
|
431
|
+
$$typeof: t,
|
|
432
432
|
// Built-in properties that belong on the element
|
|
433
433
|
type: e,
|
|
434
|
-
key:
|
|
435
|
-
ref:
|
|
436
|
-
props:
|
|
434
|
+
key: a,
|
|
435
|
+
ref: i,
|
|
436
|
+
props: g,
|
|
437
437
|
// Record the component responsible for creating this element.
|
|
438
|
-
_owner:
|
|
438
|
+
_owner: j
|
|
439
439
|
};
|
|
440
440
|
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
441
441
|
configurable: !1,
|
|
@@ -454,41 +454,41 @@ function Lr() {
|
|
|
454
454
|
value: h
|
|
455
455
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
456
456
|
};
|
|
457
|
-
function gr(e,
|
|
457
|
+
function gr(e, a, i, v, h) {
|
|
458
458
|
{
|
|
459
|
-
var
|
|
460
|
-
|
|
461
|
-
for (
|
|
462
|
-
|
|
459
|
+
var j, g = {}, m = null, _ = null;
|
|
460
|
+
i !== void 0 && (Re(i), m = "" + i), fr(a) && (Re(a.key), m = "" + a.key), dr(a) && (_ = a.ref, vr(a, h));
|
|
461
|
+
for (j in a)
|
|
462
|
+
G.call(a, j) && !cr.hasOwnProperty(j) && (g[j] = a[j]);
|
|
463
463
|
if (e && e.defaultProps) {
|
|
464
|
-
var
|
|
465
|
-
for (
|
|
466
|
-
|
|
464
|
+
var E = e.defaultProps;
|
|
465
|
+
for (j in E)
|
|
466
|
+
g[j] === void 0 && (g[j] = E[j]);
|
|
467
467
|
}
|
|
468
|
-
if (m ||
|
|
469
|
-
var
|
|
470
|
-
m &&
|
|
468
|
+
if (m || _) {
|
|
469
|
+
var k = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
470
|
+
m && br(g, k), _ && pr(g, k);
|
|
471
471
|
}
|
|
472
|
-
return
|
|
472
|
+
return mr(e, m, _, h, v, z.current, g);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
var
|
|
476
|
-
function
|
|
475
|
+
var re = N.ReactCurrentOwner, ke = N.ReactDebugCurrentFrame;
|
|
476
|
+
function I(e) {
|
|
477
477
|
if (e) {
|
|
478
|
-
var
|
|
479
|
-
|
|
478
|
+
var a = e._owner, i = U(e.type, e._source, a ? a.type : null);
|
|
479
|
+
ke.setExtraStackFrame(i);
|
|
480
480
|
} else
|
|
481
|
-
|
|
481
|
+
ke.setExtraStackFrame(null);
|
|
482
482
|
}
|
|
483
|
-
var
|
|
484
|
-
|
|
485
|
-
function
|
|
486
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
483
|
+
var te;
|
|
484
|
+
te = !1;
|
|
485
|
+
function ne(e) {
|
|
486
|
+
return typeof e == "object" && e !== null && e.$$typeof === t;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function we() {
|
|
489
489
|
{
|
|
490
|
-
if (
|
|
491
|
-
var e = O(
|
|
490
|
+
if (re.current) {
|
|
491
|
+
var e = O(re.current.type);
|
|
492
492
|
if (e)
|
|
493
493
|
return `
|
|
494
494
|
|
|
@@ -497,151 +497,151 @@ Check the render method of \`` + e + "`.";
|
|
|
497
497
|
return "";
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function hr(e) {
|
|
501
501
|
{
|
|
502
502
|
if (e !== void 0) {
|
|
503
|
-
var
|
|
503
|
+
var a = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
|
|
504
504
|
return `
|
|
505
505
|
|
|
506
|
-
Check your code at ` +
|
|
506
|
+
Check your code at ` + a + ":" + i + ".";
|
|
507
507
|
}
|
|
508
508
|
return "";
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
var Se = {};
|
|
512
|
-
function
|
|
512
|
+
function xr(e) {
|
|
513
513
|
{
|
|
514
|
-
var
|
|
515
|
-
if (!
|
|
516
|
-
var
|
|
517
|
-
|
|
514
|
+
var a = we();
|
|
515
|
+
if (!a) {
|
|
516
|
+
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
517
|
+
i && (a = `
|
|
518
518
|
|
|
519
|
-
Check the top-level render call using <` +
|
|
519
|
+
Check the top-level render call using <` + i + ">.");
|
|
520
520
|
}
|
|
521
|
-
return
|
|
521
|
+
return a;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function _e(e,
|
|
524
|
+
function _e(e, a) {
|
|
525
525
|
{
|
|
526
526
|
if (!e._store || e._store.validated || e.key != null)
|
|
527
527
|
return;
|
|
528
528
|
e._store.validated = !0;
|
|
529
|
-
var
|
|
530
|
-
if (Se[
|
|
529
|
+
var i = xr(a);
|
|
530
|
+
if (Se[i])
|
|
531
531
|
return;
|
|
532
|
-
Se[
|
|
532
|
+
Se[i] = !0;
|
|
533
533
|
var v = "";
|
|
534
|
-
e && e._owner && e._owner !==
|
|
534
|
+
e && e._owner && e._owner !== re.current && (v = " It was passed a child from " + O(e._owner.type) + "."), I(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, v), I(null);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Pe(e, a) {
|
|
538
538
|
{
|
|
539
539
|
if (typeof e != "object")
|
|
540
540
|
return;
|
|
541
|
-
if (
|
|
542
|
-
for (var
|
|
543
|
-
var v = e[
|
|
544
|
-
|
|
541
|
+
if (Q(e))
|
|
542
|
+
for (var i = 0; i < e.length; i++) {
|
|
543
|
+
var v = e[i];
|
|
544
|
+
ne(v) && _e(v, a);
|
|
545
545
|
}
|
|
546
|
-
else if (
|
|
546
|
+
else if (ne(e))
|
|
547
547
|
e._store && (e._store.validated = !0);
|
|
548
548
|
else if (e) {
|
|
549
|
-
var h =
|
|
549
|
+
var h = Ge(e);
|
|
550
550
|
if (typeof h == "function" && h !== e.entries)
|
|
551
|
-
for (var
|
|
552
|
-
|
|
551
|
+
for (var j = h.call(e), g; !(g = j.next()).done; )
|
|
552
|
+
ne(g.value) && _e(g.value, a);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function yr(e) {
|
|
557
557
|
{
|
|
558
|
-
var
|
|
559
|
-
if (
|
|
558
|
+
var a = e.type;
|
|
559
|
+
if (a == null || typeof a == "string")
|
|
560
560
|
return;
|
|
561
|
-
var
|
|
562
|
-
if (typeof
|
|
563
|
-
|
|
564
|
-
else if (typeof
|
|
561
|
+
var i;
|
|
562
|
+
if (typeof a == "function")
|
|
563
|
+
i = a.propTypes;
|
|
564
|
+
else if (typeof a == "object" && (a.$$typeof === b || // Note: Memo only checks outer props here.
|
|
565
565
|
// Inner props are checked in the reconciler.
|
|
566
|
-
|
|
567
|
-
|
|
566
|
+
a.$$typeof === w))
|
|
567
|
+
i = a.propTypes;
|
|
568
568
|
else
|
|
569
569
|
return;
|
|
570
|
-
if (
|
|
571
|
-
var v = O(
|
|
572
|
-
|
|
573
|
-
} else if (
|
|
574
|
-
|
|
575
|
-
var h = O(
|
|
576
|
-
|
|
570
|
+
if (i) {
|
|
571
|
+
var v = O(a);
|
|
572
|
+
ir(i, e.props, "prop", v, e);
|
|
573
|
+
} else if (a.PropTypes !== void 0 && !te) {
|
|
574
|
+
te = !0;
|
|
575
|
+
var h = O(a);
|
|
576
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
577
577
|
}
|
|
578
|
-
typeof
|
|
578
|
+
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function jr(e) {
|
|
582
582
|
{
|
|
583
|
-
for (var
|
|
584
|
-
var v =
|
|
583
|
+
for (var a = Object.keys(e.props), i = 0; i < a.length; i++) {
|
|
584
|
+
var v = a[i];
|
|
585
585
|
if (v !== "children" && v !== "key") {
|
|
586
|
-
|
|
586
|
+
I(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), I(null);
|
|
587
587
|
break;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
e.ref !== null && (
|
|
590
|
+
e.ref !== null && (I(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Ce(e, a, i, v, h, j) {
|
|
594
594
|
{
|
|
595
|
-
var
|
|
596
|
-
if (!
|
|
595
|
+
var g = Qe(e);
|
|
596
|
+
if (!g) {
|
|
597
597
|
var m = "";
|
|
598
598
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
599
|
-
var
|
|
600
|
-
|
|
601
|
-
var
|
|
602
|
-
e === null ?
|
|
599
|
+
var _ = hr(h);
|
|
600
|
+
_ ? m += _ : m += we();
|
|
601
|
+
var E;
|
|
602
|
+
e === null ? E = "null" : Q(e) ? E = "array" : e !== void 0 && e.$$typeof === t ? (E = "<" + (O(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, m);
|
|
603
603
|
}
|
|
604
|
-
var
|
|
605
|
-
if (
|
|
606
|
-
return
|
|
607
|
-
if (
|
|
608
|
-
var
|
|
609
|
-
if (
|
|
604
|
+
var k = gr(e, a, i, h, j);
|
|
605
|
+
if (k == null)
|
|
606
|
+
return k;
|
|
607
|
+
if (g) {
|
|
608
|
+
var C = a.children;
|
|
609
|
+
if (C !== void 0)
|
|
610
610
|
if (v)
|
|
611
|
-
if (
|
|
612
|
-
for (var
|
|
613
|
-
|
|
614
|
-
Object.freeze && Object.freeze(
|
|
611
|
+
if (Q(C)) {
|
|
612
|
+
for (var L = 0; L < C.length; L++)
|
|
613
|
+
Pe(C[L], e);
|
|
614
|
+
Object.freeze && Object.freeze(C);
|
|
615
615
|
} else
|
|
616
|
-
|
|
616
|
+
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
617
617
|
else
|
|
618
|
-
|
|
618
|
+
Pe(C, e);
|
|
619
619
|
}
|
|
620
|
-
return e ===
|
|
620
|
+
return e === o ? jr(k) : yr(k), k;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
623
|
+
function Rr(e, a, i) {
|
|
624
|
+
return Ce(e, a, i, !0);
|
|
625
625
|
}
|
|
626
|
-
function Tr(e,
|
|
627
|
-
return
|
|
626
|
+
function Tr(e, a, i) {
|
|
627
|
+
return Ce(e, a, i, !1);
|
|
628
628
|
}
|
|
629
|
-
var
|
|
630
|
-
|
|
631
|
-
}()),
|
|
629
|
+
var Er = Tr, kr = Rr;
|
|
630
|
+
$.Fragment = o, $.jsx = Er, $.jsxs = kr;
|
|
631
|
+
}()), $;
|
|
632
632
|
}
|
|
633
|
-
process.env.NODE_ENV === "production" ?
|
|
634
|
-
var l =
|
|
635
|
-
const
|
|
636
|
-
const
|
|
637
|
-
function
|
|
633
|
+
process.env.NODE_ENV === "production" ? ie.exports = Ar() : ie.exports = zr();
|
|
634
|
+
var l = ie.exports;
|
|
635
|
+
const Be = (r, t, n = !1) => {
|
|
636
|
+
const o = [];
|
|
637
|
+
function s(c, f = "--bn") {
|
|
638
638
|
for (const u in c) {
|
|
639
|
-
const b = u.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
640
|
-
typeof c[u] != "object" ? (typeof c[u] == "number" && (c[u] = `${c[u]}px`),
|
|
639
|
+
const b = u.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), p = `${f}-${b}`;
|
|
640
|
+
typeof c[u] != "object" ? (typeof c[u] == "number" && (c[u] = `${c[u]}px`), n ? t.style.removeProperty(p) : t.style.setProperty(p, c[u].toString())) : s(c[u], p);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
return
|
|
644
|
-
},
|
|
643
|
+
return s(r), o;
|
|
644
|
+
}, De = (r, t) => Be(r, t), Br = {
|
|
645
645
|
colors: {
|
|
646
646
|
editor: {
|
|
647
647
|
text: void 0,
|
|
@@ -711,134 +711,188 @@ const Ae = (r, n, o = !1) => {
|
|
|
711
711
|
},
|
|
712
712
|
borderRadius: void 0,
|
|
713
713
|
fontFamily: void 0
|
|
714
|
-
},
|
|
714
|
+
}, $r = (r) => Be(Br, r, !0), Wr = T((r, t) => {
|
|
715
715
|
const {
|
|
716
|
-
className:
|
|
717
|
-
name:
|
|
718
|
-
label:
|
|
716
|
+
className: n,
|
|
717
|
+
name: o,
|
|
718
|
+
label: s,
|
|
719
719
|
icon: c,
|
|
720
720
|
value: f,
|
|
721
721
|
autoFocus: u,
|
|
722
722
|
placeholder: b,
|
|
723
|
-
onKeyDown:
|
|
723
|
+
onKeyDown: p,
|
|
724
724
|
onChange: y,
|
|
725
|
-
onSubmit:
|
|
726
|
-
...
|
|
725
|
+
onSubmit: w,
|
|
726
|
+
...P
|
|
727
727
|
} = r;
|
|
728
|
-
return R(
|
|
728
|
+
return R(P), /* @__PURE__ */ l.jsx(
|
|
729
729
|
d.TextInput,
|
|
730
730
|
{
|
|
731
731
|
size: "xs",
|
|
732
|
-
className:
|
|
733
|
-
ref:
|
|
734
|
-
name:
|
|
735
|
-
label:
|
|
732
|
+
className: n,
|
|
733
|
+
ref: t,
|
|
734
|
+
name: o,
|
|
735
|
+
label: s,
|
|
736
736
|
leftSection: c,
|
|
737
737
|
value: f,
|
|
738
738
|
autoFocus: u,
|
|
739
739
|
"data-autofocus": u ? "true" : void 0,
|
|
740
740
|
placeholder: b,
|
|
741
|
-
onKeyDown:
|
|
741
|
+
onKeyDown: p,
|
|
742
742
|
onChange: y,
|
|
743
|
-
onSubmit:
|
|
743
|
+
onSubmit: w
|
|
744
744
|
}
|
|
745
745
|
);
|
|
746
746
|
});
|
|
747
|
-
var
|
|
747
|
+
var $e = {
|
|
748
748
|
color: void 0,
|
|
749
749
|
size: void 0,
|
|
750
750
|
className: void 0,
|
|
751
751
|
style: void 0,
|
|
752
752
|
attr: void 0
|
|
753
|
-
}, Ne = M.createContext && M.createContext(
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
753
|
+
}, Ne = M.createContext && /* @__PURE__ */ M.createContext($e), Vr = ["attr", "size", "title"];
|
|
754
|
+
function Yr(r, t) {
|
|
755
|
+
if (r == null)
|
|
756
|
+
return {};
|
|
757
|
+
var n = Ur(r, t), o, s;
|
|
758
|
+
if (Object.getOwnPropertySymbols) {
|
|
759
|
+
var c = Object.getOwnPropertySymbols(r);
|
|
760
|
+
for (s = 0; s < c.length; s++)
|
|
761
|
+
o = c[s], !(t.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(r, o) && (n[o] = r[o]);
|
|
762
|
+
}
|
|
763
|
+
return n;
|
|
764
|
+
}
|
|
765
|
+
function Ur(r, t) {
|
|
766
|
+
if (r == null)
|
|
767
|
+
return {};
|
|
768
|
+
var n = {};
|
|
769
|
+
for (var o in r)
|
|
770
|
+
if (Object.prototype.hasOwnProperty.call(r, o)) {
|
|
771
|
+
if (t.indexOf(o) >= 0)
|
|
772
|
+
continue;
|
|
773
|
+
n[o] = r[o];
|
|
774
|
+
}
|
|
775
|
+
return n;
|
|
776
|
+
}
|
|
777
|
+
function K() {
|
|
778
|
+
return K = Object.assign ? Object.assign.bind() : function(r) {
|
|
779
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
780
|
+
var n = arguments[t];
|
|
781
|
+
for (var o in n)
|
|
782
|
+
Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
|
|
759
783
|
}
|
|
760
784
|
return r;
|
|
761
|
-
},
|
|
762
|
-
}, $r = globalThis && globalThis.__rest || function(r, n) {
|
|
763
|
-
var o = {};
|
|
764
|
-
for (var a in r)
|
|
765
|
-
Object.prototype.hasOwnProperty.call(r, a) && n.indexOf(a) < 0 && (o[a] = r[a]);
|
|
766
|
-
if (r != null && typeof Object.getOwnPropertySymbols == "function")
|
|
767
|
-
for (var i = 0, a = Object.getOwnPropertySymbols(r); i < a.length; i++)
|
|
768
|
-
n.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, a[i]) && (o[a[i]] = r[a[i]]);
|
|
769
|
-
return o;
|
|
770
|
-
};
|
|
771
|
-
function Be(r) {
|
|
772
|
-
return r && r.map(function(n, o) {
|
|
773
|
-
return M.createElement(n.tag, N({
|
|
774
|
-
key: o
|
|
775
|
-
}, n.attr), Be(n.child));
|
|
776
|
-
});
|
|
785
|
+
}, K.apply(this, arguments);
|
|
777
786
|
}
|
|
778
|
-
function
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
787
|
+
function Ie(r, t) {
|
|
788
|
+
var n = Object.keys(r);
|
|
789
|
+
if (Object.getOwnPropertySymbols) {
|
|
790
|
+
var o = Object.getOwnPropertySymbols(r);
|
|
791
|
+
t && (o = o.filter(function(s) {
|
|
792
|
+
return Object.getOwnPropertyDescriptor(r, s).enumerable;
|
|
793
|
+
})), n.push.apply(n, o);
|
|
794
|
+
}
|
|
795
|
+
return n;
|
|
796
|
+
}
|
|
797
|
+
function q(r) {
|
|
798
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
799
|
+
var n = arguments[t] != null ? arguments[t] : {};
|
|
800
|
+
t % 2 ? Ie(Object(n), !0).forEach(function(o) {
|
|
801
|
+
Gr(r, o, n[o]);
|
|
802
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : Ie(Object(n)).forEach(function(o) {
|
|
803
|
+
Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(n, o));
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
return r;
|
|
807
|
+
}
|
|
808
|
+
function Gr(r, t, n) {
|
|
809
|
+
return t = Hr(t), t in r ? Object.defineProperty(r, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = n, r;
|
|
810
|
+
}
|
|
811
|
+
function Hr(r) {
|
|
812
|
+
var t = Kr(r, "string");
|
|
813
|
+
return typeof t == "symbol" ? t : t + "";
|
|
814
|
+
}
|
|
815
|
+
function Kr(r, t) {
|
|
816
|
+
if (typeof r != "object" || !r)
|
|
817
|
+
return r;
|
|
818
|
+
var n = r[Symbol.toPrimitive];
|
|
819
|
+
if (n !== void 0) {
|
|
820
|
+
var o = n.call(r, t || "default");
|
|
821
|
+
if (typeof o != "object")
|
|
822
|
+
return o;
|
|
823
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
824
|
+
}
|
|
825
|
+
return (t === "string" ? String : Number)(r);
|
|
826
|
+
}
|
|
827
|
+
function We(r) {
|
|
828
|
+
return r && r.map((t, n) => /* @__PURE__ */ M.createElement(t.tag, q({
|
|
829
|
+
key: n
|
|
830
|
+
}, t.attr), We(t.child)));
|
|
831
|
+
}
|
|
832
|
+
function Ve(r) {
|
|
833
|
+
return (t) => /* @__PURE__ */ M.createElement(qr, K({
|
|
834
|
+
attr: q({}, r.attr)
|
|
835
|
+
}, t), We(r.child));
|
|
784
836
|
}
|
|
785
|
-
function
|
|
786
|
-
var
|
|
787
|
-
var
|
|
788
|
-
|
|
837
|
+
function qr(r) {
|
|
838
|
+
var t = (n) => {
|
|
839
|
+
var {
|
|
840
|
+
attr: o,
|
|
841
|
+
size: s,
|
|
842
|
+
title: c
|
|
843
|
+
} = r, f = Yr(r, Vr), u = s || n.size || "1em", b;
|
|
844
|
+
return n.className && (b = n.className), r.className && (b = (b ? b + " " : "") + r.className), /* @__PURE__ */ M.createElement("svg", K({
|
|
789
845
|
stroke: "currentColor",
|
|
790
846
|
fill: "currentColor",
|
|
791
847
|
strokeWidth: "0"
|
|
792
|
-
},
|
|
848
|
+
}, n.attr, o, f, {
|
|
793
849
|
className: b,
|
|
794
|
-
style:
|
|
795
|
-
color: r.color ||
|
|
796
|
-
},
|
|
850
|
+
style: q(q({
|
|
851
|
+
color: r.color || n.color
|
|
852
|
+
}, n.style), r.style),
|
|
797
853
|
height: u,
|
|
798
854
|
width: u,
|
|
799
855
|
xmlns: "http://www.w3.org/2000/svg"
|
|
800
|
-
}), c && M.createElement("title", null, c), r.children);
|
|
856
|
+
}), c && /* @__PURE__ */ M.createElement("title", null, c), r.children);
|
|
801
857
|
};
|
|
802
|
-
return Ne !== void 0 ? M.createElement(Ne.Consumer, null,
|
|
803
|
-
return n(o);
|
|
804
|
-
}) : n(ze);
|
|
858
|
+
return Ne !== void 0 ? /* @__PURE__ */ M.createElement(Ne.Consumer, null, (n) => t(n)) : t($e);
|
|
805
859
|
}
|
|
806
|
-
function
|
|
807
|
-
return
|
|
860
|
+
function Jr(r) {
|
|
861
|
+
return Ve({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(r);
|
|
808
862
|
}
|
|
809
|
-
function
|
|
810
|
-
return
|
|
863
|
+
function Xr(r) {
|
|
864
|
+
return Ve({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(r);
|
|
811
865
|
}
|
|
812
|
-
const
|
|
866
|
+
const Ye = wr(void 0), Zr = T((r, t) => {
|
|
813
867
|
const {
|
|
814
|
-
children:
|
|
815
|
-
onOpenChange:
|
|
816
|
-
position:
|
|
868
|
+
children: n,
|
|
869
|
+
onOpenChange: o,
|
|
870
|
+
position: s,
|
|
817
871
|
sub: c,
|
|
818
872
|
// not used
|
|
819
873
|
...f
|
|
820
874
|
} = r;
|
|
821
875
|
R(f);
|
|
822
|
-
const [u, b] =
|
|
823
|
-
|
|
876
|
+
const [u, b] = Sr(!1), p = _r(), y = oe(() => {
|
|
877
|
+
p.current && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
824
878
|
b(!1);
|
|
825
879
|
}, 250);
|
|
826
|
-
}, []),
|
|
827
|
-
|
|
880
|
+
}, []), w = oe(() => {
|
|
881
|
+
p.current && clearTimeout(p.current), b(!0);
|
|
828
882
|
}, []);
|
|
829
883
|
return /* @__PURE__ */ l.jsx(
|
|
830
|
-
|
|
884
|
+
Ye.Provider,
|
|
831
885
|
{
|
|
832
886
|
value: {
|
|
833
|
-
onMenuMouseOver:
|
|
887
|
+
onMenuMouseOver: w,
|
|
834
888
|
onMenuMouseLeave: y
|
|
835
889
|
},
|
|
836
890
|
children: /* @__PURE__ */ l.jsx(
|
|
837
891
|
d.Menu.Item,
|
|
838
892
|
{
|
|
839
893
|
className: "bn-menu-item bn-mt-sub-menu-item",
|
|
840
|
-
ref:
|
|
841
|
-
onMouseOver:
|
|
894
|
+
ref: t,
|
|
895
|
+
onMouseOver: w,
|
|
842
896
|
onMouseLeave: y,
|
|
843
897
|
children: /* @__PURE__ */ l.jsx(
|
|
844
898
|
d.Menu,
|
|
@@ -847,252 +901,253 @@ const We = jr(void 0), Ur = k((r, n) => {
|
|
|
847
901
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
848
902
|
trigger: "hover",
|
|
849
903
|
opened: u,
|
|
850
|
-
onClose: () =>
|
|
851
|
-
onOpen: () =>
|
|
852
|
-
position:
|
|
853
|
-
children:
|
|
904
|
+
onClose: () => o == null ? void 0 : o(!1),
|
|
905
|
+
onOpen: () => o == null ? void 0 : o(!0),
|
|
906
|
+
position: s,
|
|
907
|
+
children: n
|
|
854
908
|
}
|
|
855
909
|
)
|
|
856
910
|
}
|
|
857
911
|
)
|
|
858
912
|
}
|
|
859
913
|
);
|
|
860
|
-
}),
|
|
861
|
-
const { children:
|
|
862
|
-
return R(c),
|
|
914
|
+
}), Qr = (r) => {
|
|
915
|
+
const { children: t, onOpenChange: n, position: o, sub: s, ...c } = r;
|
|
916
|
+
return R(c), s ? /* @__PURE__ */ l.jsx(Zr, { ...r }) : /* @__PURE__ */ l.jsx(
|
|
863
917
|
d.Menu,
|
|
864
918
|
{
|
|
865
919
|
withinPortal: !1,
|
|
866
920
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
867
|
-
onClose: () =>
|
|
868
|
-
onOpen: () =>
|
|
869
|
-
position:
|
|
870
|
-
children:
|
|
921
|
+
onClose: () => n == null ? void 0 : n(!1),
|
|
922
|
+
onOpen: () => n == null ? void 0 : n(!0),
|
|
923
|
+
position: o,
|
|
924
|
+
children: t
|
|
871
925
|
}
|
|
872
926
|
);
|
|
873
|
-
},
|
|
874
|
-
const { className:
|
|
875
|
-
return R(b, !1), f ? /* @__PURE__ */ l.jsxs("div", { ref:
|
|
876
|
-
|
|
877
|
-
/* @__PURE__ */ l.jsx(
|
|
927
|
+
}, et = T((r, t) => {
|
|
928
|
+
const { className: n, children: o, icon: s, checked: c, subTrigger: f, onClick: u, ...b } = r;
|
|
929
|
+
return R(b, !1), f ? /* @__PURE__ */ l.jsxs("div", { ref: t, ...b, children: [
|
|
930
|
+
o,
|
|
931
|
+
/* @__PURE__ */ l.jsx(Xr, { size: 15 })
|
|
878
932
|
] }) : /* @__PURE__ */ l.jsx(
|
|
879
933
|
d.Menu.Item,
|
|
880
934
|
{
|
|
881
|
-
className:
|
|
882
|
-
ref:
|
|
883
|
-
leftSection:
|
|
935
|
+
className: n,
|
|
936
|
+
ref: t,
|
|
937
|
+
leftSection: s,
|
|
884
938
|
rightSection: c ? /* @__PURE__ */ l.jsx(d.CheckIcon, { size: 10 }) : c === !1 ? /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" }) : null,
|
|
885
939
|
onClick: u,
|
|
886
940
|
...b,
|
|
887
|
-
children:
|
|
941
|
+
children: o
|
|
888
942
|
}
|
|
889
943
|
);
|
|
890
|
-
}),
|
|
944
|
+
}), rt = (r) => {
|
|
891
945
|
const {
|
|
892
|
-
children:
|
|
893
|
-
sub:
|
|
946
|
+
children: t,
|
|
947
|
+
sub: n,
|
|
894
948
|
// unused
|
|
895
|
-
...
|
|
949
|
+
...o
|
|
896
950
|
} = r;
|
|
897
|
-
return R(
|
|
898
|
-
},
|
|
951
|
+
return R(o), /* @__PURE__ */ l.jsx(d.Menu.Target, { children: t });
|
|
952
|
+
}, tt = T((r, t) => {
|
|
899
953
|
const {
|
|
900
|
-
className:
|
|
901
|
-
children:
|
|
902
|
-
sub:
|
|
954
|
+
className: n,
|
|
955
|
+
children: o,
|
|
956
|
+
sub: s,
|
|
903
957
|
//unused
|
|
904
958
|
...c
|
|
905
959
|
} = r;
|
|
906
960
|
R(c);
|
|
907
|
-
const f =
|
|
961
|
+
const f = Pr(Ye);
|
|
908
962
|
return /* @__PURE__ */ l.jsx(
|
|
909
963
|
d.Menu.Dropdown,
|
|
910
964
|
{
|
|
911
|
-
className:
|
|
912
|
-
ref:
|
|
965
|
+
className: n,
|
|
966
|
+
ref: t,
|
|
913
967
|
onMouseOver: f == null ? void 0 : f.onMenuMouseOver,
|
|
914
968
|
onMouseLeave: f == null ? void 0 : f.onMenuMouseLeave,
|
|
915
|
-
children:
|
|
969
|
+
children: o
|
|
916
970
|
}
|
|
917
971
|
);
|
|
918
|
-
}),
|
|
919
|
-
const { className:
|
|
920
|
-
return R(
|
|
921
|
-
}),
|
|
922
|
-
const { className:
|
|
923
|
-
return R(
|
|
924
|
-
}),
|
|
972
|
+
}), nt = T((r, t) => {
|
|
973
|
+
const { className: n, ...o } = r;
|
|
974
|
+
return R(o), /* @__PURE__ */ l.jsx(d.Menu.Divider, { className: n, ref: t });
|
|
975
|
+
}), ot = T((r, t) => {
|
|
976
|
+
const { className: n, children: o, ...s } = r;
|
|
977
|
+
return R(s), /* @__PURE__ */ l.jsx(d.Menu.Label, { className: n, ref: t, children: o });
|
|
978
|
+
}), at = T((r, t) => {
|
|
925
979
|
const {
|
|
926
|
-
className:
|
|
927
|
-
tabs:
|
|
928
|
-
defaultOpenTab:
|
|
980
|
+
className: n,
|
|
981
|
+
tabs: o,
|
|
982
|
+
defaultOpenTab: s,
|
|
929
983
|
openTab: c,
|
|
930
984
|
setOpenTab: f,
|
|
931
985
|
loading: u,
|
|
932
986
|
...b
|
|
933
987
|
} = r;
|
|
934
|
-
return R(b), /* @__PURE__ */ l.jsx(d.Group, { className:
|
|
988
|
+
return R(b), /* @__PURE__ */ l.jsx(d.Group, { className: n, ref: t, children: /* @__PURE__ */ l.jsxs(
|
|
935
989
|
d.Tabs,
|
|
936
990
|
{
|
|
937
991
|
value: c,
|
|
938
|
-
defaultValue:
|
|
992
|
+
defaultValue: s,
|
|
939
993
|
onChange: f,
|
|
940
994
|
children: [
|
|
941
995
|
u && /* @__PURE__ */ l.jsx(d.LoadingOverlay, { visible: u }),
|
|
942
|
-
/* @__PURE__ */ l.jsx(d.Tabs.List, { children:
|
|
996
|
+
/* @__PURE__ */ l.jsx(d.Tabs.List, { children: o.map((p) => /* @__PURE__ */ l.jsx(
|
|
943
997
|
d.Tabs.Tab,
|
|
944
998
|
{
|
|
945
|
-
"data-test": `${
|
|
946
|
-
value:
|
|
947
|
-
children:
|
|
999
|
+
"data-test": `${p.name.toLowerCase()}-tab`,
|
|
1000
|
+
value: p.name,
|
|
1001
|
+
children: p.name
|
|
948
1002
|
},
|
|
949
|
-
|
|
1003
|
+
p.name
|
|
950
1004
|
)) }),
|
|
951
|
-
|
|
1005
|
+
o.map((p) => /* @__PURE__ */ l.jsx(d.Tabs.Panel, { value: p.name, children: p.tabPanel }, p.name))
|
|
952
1006
|
]
|
|
953
1007
|
}
|
|
954
1008
|
) });
|
|
955
|
-
}),
|
|
956
|
-
const { className:
|
|
1009
|
+
}), it = T((r, t) => {
|
|
1010
|
+
const { className: n, children: o, onClick: s, label: c, ...f } = r;
|
|
957
1011
|
return R(f), /* @__PURE__ */ l.jsx(
|
|
958
1012
|
d.Button,
|
|
959
1013
|
{
|
|
960
1014
|
size: "xs",
|
|
961
1015
|
"aria-label": c,
|
|
962
|
-
className:
|
|
963
|
-
ref:
|
|
964
|
-
onClick:
|
|
1016
|
+
className: n,
|
|
1017
|
+
ref: t,
|
|
1018
|
+
onClick: s,
|
|
965
1019
|
...f,
|
|
966
|
-
children:
|
|
1020
|
+
children: o
|
|
967
1021
|
}
|
|
968
1022
|
);
|
|
969
|
-
}),
|
|
970
|
-
const { className: o, value:
|
|
971
|
-
return R(
|
|
1023
|
+
}), st = T((r, t) => {
|
|
1024
|
+
const { className: n, accept: o, value: s, placeholder: c, onChange: f, ...u } = r;
|
|
1025
|
+
return R(u), /* @__PURE__ */ l.jsx(
|
|
972
1026
|
d.FileInput,
|
|
973
1027
|
{
|
|
974
1028
|
size: "xs",
|
|
975
|
-
className:
|
|
976
|
-
ref:
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
1029
|
+
className: n,
|
|
1030
|
+
ref: t,
|
|
1031
|
+
accept: o,
|
|
1032
|
+
value: s,
|
|
1033
|
+
placeholder: c,
|
|
1034
|
+
onChange: f,
|
|
1035
|
+
...u
|
|
981
1036
|
}
|
|
982
1037
|
);
|
|
983
|
-
}),
|
|
984
|
-
const { className:
|
|
985
|
-
return R(
|
|
986
|
-
}),
|
|
987
|
-
const { className:
|
|
1038
|
+
}), lt = T((r, t) => {
|
|
1039
|
+
const { className: n, children: o, ...s } = r;
|
|
1040
|
+
return R(s), /* @__PURE__ */ l.jsx("div", { className: n, ref: t, children: o });
|
|
1041
|
+
}), ut = T((r, t) => {
|
|
1042
|
+
const { className: n, value: o, placeholder: s, onKeyDown: c, onChange: f, ...u } = r;
|
|
988
1043
|
return R(u), /* @__PURE__ */ l.jsx(
|
|
989
1044
|
d.TextInput,
|
|
990
1045
|
{
|
|
991
1046
|
size: "xs",
|
|
992
1047
|
"data-test": "embed-input",
|
|
993
|
-
className:
|
|
994
|
-
ref:
|
|
995
|
-
value:
|
|
996
|
-
placeholder:
|
|
1048
|
+
className: n,
|
|
1049
|
+
ref: t,
|
|
1050
|
+
value: o,
|
|
1051
|
+
placeholder: s,
|
|
997
1052
|
onKeyDown: c,
|
|
998
1053
|
onChange: f
|
|
999
1054
|
}
|
|
1000
1055
|
);
|
|
1001
|
-
}),
|
|
1002
|
-
const { children:
|
|
1003
|
-
return R(
|
|
1056
|
+
}), ct = (r) => {
|
|
1057
|
+
const { children: t, opened: n, position: o, ...s } = r;
|
|
1058
|
+
return R(s), /* @__PURE__ */ l.jsx(
|
|
1004
1059
|
d.Popover,
|
|
1005
1060
|
{
|
|
1006
1061
|
withinPortal: !1,
|
|
1007
1062
|
zIndex: 1e4,
|
|
1008
|
-
opened:
|
|
1009
|
-
position:
|
|
1010
|
-
children:
|
|
1063
|
+
opened: n,
|
|
1064
|
+
position: o,
|
|
1065
|
+
children: t
|
|
1011
1066
|
}
|
|
1012
1067
|
);
|
|
1013
|
-
},
|
|
1014
|
-
const { children:
|
|
1015
|
-
return R(
|
|
1016
|
-
},
|
|
1068
|
+
}, dt = (r) => {
|
|
1069
|
+
const { children: t, ...n } = r;
|
|
1070
|
+
return R(n), /* @__PURE__ */ l.jsx(d.PopoverTarget, { children: t });
|
|
1071
|
+
}, ft = T((r, t) => {
|
|
1017
1072
|
const {
|
|
1018
|
-
className:
|
|
1019
|
-
children:
|
|
1020
|
-
variant:
|
|
1073
|
+
className: n,
|
|
1074
|
+
children: o,
|
|
1075
|
+
variant: s,
|
|
1021
1076
|
// unused
|
|
1022
1077
|
...c
|
|
1023
1078
|
} = r;
|
|
1024
|
-
return R(c), /* @__PURE__ */ l.jsx(d.PopoverDropdown, { className:
|
|
1025
|
-
}),
|
|
1026
|
-
const { className:
|
|
1027
|
-
return R(
|
|
1028
|
-
}),
|
|
1079
|
+
return R(c), /* @__PURE__ */ l.jsx(d.PopoverDropdown, { className: n, ref: t, children: o });
|
|
1080
|
+
}), vt = T((r, t) => {
|
|
1081
|
+
const { className: n, children: o, ...s } = r;
|
|
1082
|
+
return R(s), /* @__PURE__ */ l.jsx(d.Group, { align: "center", gap: 0, className: n, ref: t, children: o });
|
|
1083
|
+
}), bt = T((r, t) => {
|
|
1029
1084
|
const {
|
|
1030
|
-
className:
|
|
1031
|
-
children:
|
|
1032
|
-
icon:
|
|
1085
|
+
className: n,
|
|
1086
|
+
children: o,
|
|
1087
|
+
icon: s,
|
|
1033
1088
|
onClick: c,
|
|
1034
1089
|
onDragEnd: f,
|
|
1035
1090
|
onDragStart: u,
|
|
1036
1091
|
draggable: b,
|
|
1037
|
-
label:
|
|
1092
|
+
label: p,
|
|
1038
1093
|
...y
|
|
1039
1094
|
} = r;
|
|
1040
|
-
return R(y, !1),
|
|
1095
|
+
return R(y, !1), s ? /* @__PURE__ */ l.jsx(
|
|
1041
1096
|
d.ActionIcon,
|
|
1042
1097
|
{
|
|
1043
1098
|
size: 24,
|
|
1044
|
-
className:
|
|
1045
|
-
ref:
|
|
1099
|
+
className: n,
|
|
1100
|
+
ref: t,
|
|
1046
1101
|
onClick: c,
|
|
1047
1102
|
onDragEnd: f,
|
|
1048
1103
|
onDragStart: u,
|
|
1049
1104
|
draggable: b,
|
|
1050
|
-
"aria-label":
|
|
1105
|
+
"aria-label": p,
|
|
1051
1106
|
...y,
|
|
1052
|
-
children:
|
|
1107
|
+
children: s
|
|
1053
1108
|
}
|
|
1054
1109
|
) : /* @__PURE__ */ l.jsx(
|
|
1055
1110
|
d.Button,
|
|
1056
1111
|
{
|
|
1057
|
-
className:
|
|
1058
|
-
ref:
|
|
1112
|
+
className: n,
|
|
1113
|
+
ref: t,
|
|
1059
1114
|
onClick: c,
|
|
1060
1115
|
onDragEnd: f,
|
|
1061
1116
|
onDragStart: u,
|
|
1062
1117
|
draggable: b,
|
|
1063
|
-
"aria-label":
|
|
1118
|
+
"aria-label": p,
|
|
1064
1119
|
...y,
|
|
1065
|
-
children:
|
|
1120
|
+
children: o
|
|
1066
1121
|
}
|
|
1067
1122
|
);
|
|
1068
|
-
}),
|
|
1069
|
-
const { className:
|
|
1123
|
+
}), pt = T((r, t) => {
|
|
1124
|
+
const { className: n, children: o, id: s, ...c } = r;
|
|
1070
1125
|
return R(c), /* @__PURE__ */ l.jsx(
|
|
1071
1126
|
d.Stack,
|
|
1072
1127
|
{
|
|
1073
1128
|
gap: 0,
|
|
1074
|
-
className:
|
|
1075
|
-
ref:
|
|
1076
|
-
id:
|
|
1129
|
+
className: n,
|
|
1130
|
+
ref: t,
|
|
1131
|
+
id: s,
|
|
1077
1132
|
role: "listbox",
|
|
1078
|
-
children:
|
|
1133
|
+
children: o
|
|
1079
1134
|
}
|
|
1080
1135
|
);
|
|
1081
|
-
}),
|
|
1082
|
-
const { className:
|
|
1083
|
-
return R(
|
|
1084
|
-
}),
|
|
1085
|
-
const { className:
|
|
1136
|
+
}), mt = T((r, t) => {
|
|
1137
|
+
const { className: n, children: o, ...s } = r;
|
|
1138
|
+
return R(s), /* @__PURE__ */ l.jsx(d.Group, { className: n, ref: t, children: /* @__PURE__ */ l.jsx(d.Group, { className: "bn-mt-suggestion-menu-item-label", children: o }) });
|
|
1139
|
+
}), gt = T((r, t) => {
|
|
1140
|
+
const { className: n, isSelected: o, onClick: s, item: c, id: f, ...u } = r;
|
|
1086
1141
|
return R(u), /* @__PURE__ */ l.jsxs(
|
|
1087
1142
|
d.Group,
|
|
1088
1143
|
{
|
|
1089
1144
|
gap: 0,
|
|
1090
|
-
className:
|
|
1091
|
-
ref:
|
|
1145
|
+
className: n,
|
|
1146
|
+
ref: t,
|
|
1092
1147
|
id: f,
|
|
1093
1148
|
role: "option",
|
|
1094
|
-
onClick:
|
|
1095
|
-
"aria-selected":
|
|
1149
|
+
onClick: s,
|
|
1150
|
+
"aria-selected": o || void 0,
|
|
1096
1151
|
children: [
|
|
1097
1152
|
c.icon && /* @__PURE__ */ l.jsx(
|
|
1098
1153
|
d.Group,
|
|
@@ -1117,131 +1172,131 @@ const We = jr(void 0), Ur = k((r, n) => {
|
|
|
1117
1172
|
]
|
|
1118
1173
|
}
|
|
1119
1174
|
);
|
|
1120
|
-
}),
|
|
1121
|
-
const { className:
|
|
1122
|
-
return R(
|
|
1123
|
-
}),
|
|
1175
|
+
}), ht = T((r, t) => {
|
|
1176
|
+
const { className: n, children: o, ...s } = r;
|
|
1177
|
+
return R(s), /* @__PURE__ */ l.jsx(d.Group, { className: n, ref: t, children: o });
|
|
1178
|
+
}), xt = T((r, t) => {
|
|
1124
1179
|
const {
|
|
1125
|
-
className:
|
|
1126
|
-
children:
|
|
1180
|
+
className: n,
|
|
1181
|
+
children: o,
|
|
1127
1182
|
// unused, using "dots" instead
|
|
1128
|
-
...
|
|
1183
|
+
...s
|
|
1129
1184
|
} = r;
|
|
1130
|
-
return R(
|
|
1131
|
-
}),
|
|
1185
|
+
return R(s), /* @__PURE__ */ l.jsx(d.Loader, { className: n, type: "dots", ref: t });
|
|
1186
|
+
}), yt = T((r, t) => {
|
|
1132
1187
|
const {
|
|
1133
|
-
className:
|
|
1134
|
-
children:
|
|
1135
|
-
draggable:
|
|
1188
|
+
className: n,
|
|
1189
|
+
children: o,
|
|
1190
|
+
draggable: s,
|
|
1136
1191
|
onDragStart: c,
|
|
1137
1192
|
onDragEnd: f,
|
|
1138
1193
|
style: u,
|
|
1139
1194
|
label: b,
|
|
1140
|
-
...
|
|
1195
|
+
...p
|
|
1141
1196
|
} = r;
|
|
1142
|
-
return R(
|
|
1197
|
+
return R(p, !1), /* @__PURE__ */ l.jsx(
|
|
1143
1198
|
"button",
|
|
1144
1199
|
{
|
|
1145
|
-
className:
|
|
1146
|
-
ref:
|
|
1200
|
+
className: n,
|
|
1201
|
+
ref: t,
|
|
1147
1202
|
"aria-label": b,
|
|
1148
|
-
draggable:
|
|
1203
|
+
draggable: s,
|
|
1149
1204
|
onDragStart: c,
|
|
1150
1205
|
onDragEnd: f,
|
|
1151
1206
|
style: u,
|
|
1152
|
-
...
|
|
1153
|
-
children:
|
|
1207
|
+
...p,
|
|
1208
|
+
children: o
|
|
1154
1209
|
}
|
|
1155
1210
|
);
|
|
1156
|
-
}),
|
|
1157
|
-
(r,
|
|
1158
|
-
const { className:
|
|
1211
|
+
}), Le = T(
|
|
1212
|
+
(r, t) => {
|
|
1213
|
+
const { className: n, children: o, onMouseEnter: s, onMouseLeave: c, ...f } = r;
|
|
1159
1214
|
R(f);
|
|
1160
|
-
const { ref: u, focused: b } =
|
|
1215
|
+
const { ref: u, focused: b } = Nr(), p = Ir(b), y = Lr(t, u, p);
|
|
1161
1216
|
return /* @__PURE__ */ l.jsx(
|
|
1162
1217
|
d.Group,
|
|
1163
1218
|
{
|
|
1164
|
-
className:
|
|
1219
|
+
className: n,
|
|
1165
1220
|
ref: y,
|
|
1166
1221
|
role: "toolbar",
|
|
1167
|
-
onMouseEnter:
|
|
1222
|
+
onMouseEnter: s,
|
|
1168
1223
|
onMouseLeave: c,
|
|
1169
|
-
children:
|
|
1224
|
+
children: o
|
|
1170
1225
|
}
|
|
1171
1226
|
);
|
|
1172
1227
|
}
|
|
1173
|
-
),
|
|
1228
|
+
), jt = (r) => /* @__PURE__ */ l.jsxs(d.Stack, { gap: 0, className: "bn-tooltip", children: [
|
|
1174
1229
|
/* @__PURE__ */ l.jsx(d.Text, { size: "sm", children: r.mainTooltip }),
|
|
1175
1230
|
r.secondaryTooltip && /* @__PURE__ */ l.jsx(d.Text, { size: "xs", children: r.secondaryTooltip })
|
|
1176
|
-
] }),
|
|
1177
|
-
(r,
|
|
1231
|
+
] }), Ae = T(
|
|
1232
|
+
(r, t) => {
|
|
1178
1233
|
const {
|
|
1179
|
-
className:
|
|
1180
|
-
children:
|
|
1181
|
-
mainTooltip:
|
|
1234
|
+
className: n,
|
|
1235
|
+
children: o,
|
|
1236
|
+
mainTooltip: s,
|
|
1182
1237
|
secondaryTooltip: c,
|
|
1183
1238
|
icon: f,
|
|
1184
1239
|
isSelected: u,
|
|
1185
1240
|
isDisabled: b,
|
|
1186
|
-
onClick:
|
|
1241
|
+
onClick: p,
|
|
1187
1242
|
label: y,
|
|
1188
|
-
...
|
|
1243
|
+
...w
|
|
1189
1244
|
} = r;
|
|
1190
|
-
return R(
|
|
1245
|
+
return R(w, !1), /* @__PURE__ */ l.jsx(
|
|
1191
1246
|
d.Tooltip,
|
|
1192
1247
|
{
|
|
1193
1248
|
withinPortal: !1,
|
|
1194
1249
|
label: /* @__PURE__ */ l.jsx(
|
|
1195
|
-
|
|
1250
|
+
jt,
|
|
1196
1251
|
{
|
|
1197
|
-
mainTooltip:
|
|
1252
|
+
mainTooltip: s,
|
|
1198
1253
|
secondaryTooltip: c
|
|
1199
1254
|
}
|
|
1200
1255
|
),
|
|
1201
|
-
children:
|
|
1256
|
+
children: o ? /* @__PURE__ */ l.jsx(
|
|
1202
1257
|
d.Button,
|
|
1203
1258
|
{
|
|
1204
1259
|
"aria-label": y,
|
|
1205
|
-
className:
|
|
1206
|
-
onMouseDown: (
|
|
1207
|
-
ae() &&
|
|
1260
|
+
className: n,
|
|
1261
|
+
onMouseDown: (P) => {
|
|
1262
|
+
ae() && P.currentTarget.focus();
|
|
1208
1263
|
},
|
|
1209
|
-
onClick:
|
|
1264
|
+
onClick: p,
|
|
1210
1265
|
"aria-pressed": u,
|
|
1211
1266
|
"data-selected": u || void 0,
|
|
1212
|
-
"data-test":
|
|
1267
|
+
"data-test": s.slice(0, 1).toLowerCase() + s.replace(/\s+/g, "").slice(1),
|
|
1213
1268
|
size: "xs",
|
|
1214
1269
|
disabled: b || !1,
|
|
1215
|
-
ref:
|
|
1216
|
-
...
|
|
1217
|
-
children:
|
|
1270
|
+
ref: t,
|
|
1271
|
+
...w,
|
|
1272
|
+
children: o
|
|
1218
1273
|
}
|
|
1219
1274
|
) : /* @__PURE__ */ l.jsx(
|
|
1220
1275
|
d.ActionIcon,
|
|
1221
1276
|
{
|
|
1222
|
-
className:
|
|
1277
|
+
className: n,
|
|
1223
1278
|
"aria-label": y,
|
|
1224
|
-
onMouseDown: (
|
|
1225
|
-
ae() &&
|
|
1279
|
+
onMouseDown: (P) => {
|
|
1280
|
+
ae() && P.currentTarget.focus();
|
|
1226
1281
|
},
|
|
1227
|
-
onClick:
|
|
1282
|
+
onClick: p,
|
|
1228
1283
|
"aria-pressed": u,
|
|
1229
1284
|
"data-selected": u || void 0,
|
|
1230
|
-
"data-test":
|
|
1285
|
+
"data-test": s.slice(0, 1).toLowerCase() + s.replace(/\s+/g, "").slice(1),
|
|
1231
1286
|
size: 30,
|
|
1232
1287
|
disabled: b || !1,
|
|
1233
|
-
ref:
|
|
1234
|
-
...
|
|
1288
|
+
ref: t,
|
|
1289
|
+
...w,
|
|
1235
1290
|
children: f
|
|
1236
1291
|
}
|
|
1237
1292
|
)
|
|
1238
1293
|
}
|
|
1239
1294
|
);
|
|
1240
1295
|
}
|
|
1241
|
-
),
|
|
1242
|
-
const { className:
|
|
1296
|
+
), Rt = T((r, t) => {
|
|
1297
|
+
const { className: n, items: o, isDisabled: s, ...c } = r;
|
|
1243
1298
|
R(c);
|
|
1244
|
-
const f =
|
|
1299
|
+
const f = o.filter((u) => u.isSelected)[0];
|
|
1245
1300
|
return f ? /* @__PURE__ */ l.jsxs(
|
|
1246
1301
|
d.Menu,
|
|
1247
1302
|
{
|
|
@@ -1249,7 +1304,7 @@ const We = jr(void 0), Ur = k((r, n) => {
|
|
|
1249
1304
|
transitionProps: {
|
|
1250
1305
|
exitDuration: 0
|
|
1251
1306
|
},
|
|
1252
|
-
disabled:
|
|
1307
|
+
disabled: s,
|
|
1253
1308
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
1254
1309
|
children: [
|
|
1255
1310
|
/* @__PURE__ */ l.jsx(d.Menu.Target, { children: /* @__PURE__ */ l.jsx(
|
|
@@ -1259,14 +1314,14 @@ const We = jr(void 0), Ur = k((r, n) => {
|
|
|
1259
1314
|
ae() && u.currentTarget.focus();
|
|
1260
1315
|
},
|
|
1261
1316
|
leftSection: f.icon,
|
|
1262
|
-
rightSection: /* @__PURE__ */ l.jsx(
|
|
1317
|
+
rightSection: /* @__PURE__ */ l.jsx(Jr, {}),
|
|
1263
1318
|
size: "xs",
|
|
1264
1319
|
variant: "subtle",
|
|
1265
|
-
disabled:
|
|
1320
|
+
disabled: s,
|
|
1266
1321
|
children: f.text
|
|
1267
1322
|
}
|
|
1268
1323
|
) }),
|
|
1269
|
-
/* @__PURE__ */ l.jsx(d.Menu.Dropdown, { className:
|
|
1324
|
+
/* @__PURE__ */ l.jsx(d.Menu.Dropdown, { className: n, ref: t, children: o.map((u) => /* @__PURE__ */ l.jsx(
|
|
1270
1325
|
d.Menu.Item,
|
|
1271
1326
|
{
|
|
1272
1327
|
onClick: u.onClick,
|
|
@@ -1295,7 +1350,7 @@ const x = [
|
|
|
1295
1350
|
"#161616",
|
|
1296
1351
|
"#0F0F0F",
|
|
1297
1352
|
"#000000"
|
|
1298
|
-
],
|
|
1353
|
+
], ze = {
|
|
1299
1354
|
colors: {
|
|
1300
1355
|
editor: {
|
|
1301
1356
|
text: x[5],
|
|
@@ -1365,7 +1420,7 @@ const x = [
|
|
|
1365
1420
|
},
|
|
1366
1421
|
borderRadius: 6,
|
|
1367
1422
|
fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
|
|
1368
|
-
},
|
|
1423
|
+
}, Ot = {
|
|
1369
1424
|
colors: {
|
|
1370
1425
|
editor: {
|
|
1371
1426
|
text: x[2],
|
|
@@ -1433,88 +1488,88 @@ const x = [
|
|
|
1433
1488
|
}
|
|
1434
1489
|
}
|
|
1435
1490
|
},
|
|
1436
|
-
borderRadius:
|
|
1437
|
-
fontFamily:
|
|
1438
|
-
},
|
|
1491
|
+
borderRadius: ze.borderRadius,
|
|
1492
|
+
fontFamily: ze.fontFamily
|
|
1493
|
+
}, Tt = {
|
|
1439
1494
|
FormattingToolbar: {
|
|
1440
|
-
Root:
|
|
1441
|
-
Button:
|
|
1442
|
-
Select:
|
|
1495
|
+
Root: Le,
|
|
1496
|
+
Button: Ae,
|
|
1497
|
+
Select: Rt
|
|
1443
1498
|
},
|
|
1444
|
-
|
|
1445
|
-
Root:
|
|
1446
|
-
Button:
|
|
1447
|
-
FileInput:
|
|
1448
|
-
TabPanel:
|
|
1449
|
-
TextInput:
|
|
1499
|
+
FilePanel: {
|
|
1500
|
+
Root: at,
|
|
1501
|
+
Button: it,
|
|
1502
|
+
FileInput: st,
|
|
1503
|
+
TabPanel: lt,
|
|
1504
|
+
TextInput: ut
|
|
1450
1505
|
},
|
|
1451
1506
|
LinkToolbar: {
|
|
1452
|
-
Root:
|
|
1453
|
-
Button:
|
|
1507
|
+
Root: Le,
|
|
1508
|
+
Button: Ae
|
|
1454
1509
|
},
|
|
1455
1510
|
SideMenu: {
|
|
1456
|
-
Root:
|
|
1457
|
-
Button:
|
|
1511
|
+
Root: vt,
|
|
1512
|
+
Button: bt
|
|
1458
1513
|
},
|
|
1459
1514
|
SuggestionMenu: {
|
|
1460
|
-
Root:
|
|
1461
|
-
Item:
|
|
1462
|
-
EmptyItem:
|
|
1463
|
-
Label:
|
|
1464
|
-
Loader:
|
|
1515
|
+
Root: pt,
|
|
1516
|
+
Item: gt,
|
|
1517
|
+
EmptyItem: mt,
|
|
1518
|
+
Label: ht,
|
|
1519
|
+
Loader: xt
|
|
1465
1520
|
},
|
|
1466
1521
|
TableHandle: {
|
|
1467
|
-
Root:
|
|
1522
|
+
Root: yt
|
|
1468
1523
|
},
|
|
1469
1524
|
Generic: {
|
|
1470
1525
|
Form: {
|
|
1471
1526
|
Root: (r) => /* @__PURE__ */ l.jsx("div", { children: r.children }),
|
|
1472
|
-
TextInput:
|
|
1527
|
+
TextInput: Wr
|
|
1473
1528
|
},
|
|
1474
1529
|
Menu: {
|
|
1475
|
-
Root:
|
|
1476
|
-
Trigger:
|
|
1477
|
-
Dropdown:
|
|
1478
|
-
Divider:
|
|
1479
|
-
Label:
|
|
1480
|
-
Item:
|
|
1530
|
+
Root: Qr,
|
|
1531
|
+
Trigger: rt,
|
|
1532
|
+
Dropdown: tt,
|
|
1533
|
+
Divider: nt,
|
|
1534
|
+
Label: ot,
|
|
1535
|
+
Item: et
|
|
1481
1536
|
},
|
|
1482
1537
|
Popover: {
|
|
1483
|
-
Root:
|
|
1484
|
-
Trigger:
|
|
1485
|
-
Content:
|
|
1538
|
+
Root: ct,
|
|
1539
|
+
Trigger: dt,
|
|
1540
|
+
Content: ft
|
|
1486
1541
|
}
|
|
1487
1542
|
}
|
|
1488
|
-
},
|
|
1543
|
+
}, Et = {
|
|
1489
1544
|
// Removes button press effect
|
|
1490
1545
|
activeClassName: ""
|
|
1491
|
-
},
|
|
1492
|
-
const { theme:
|
|
1546
|
+
}, Ft = (r) => {
|
|
1547
|
+
const { theme: t, ...n } = r, o = Cr(), s = Dr(), c = (o == null ? void 0 : o.colorSchemePreference) || s, f = oe(
|
|
1493
1548
|
(u) => {
|
|
1494
|
-
if (u && (
|
|
1495
|
-
if ("light" in
|
|
1496
|
-
|
|
1497
|
-
|
|
1549
|
+
if (u && ($r(u), typeof t == "object")) {
|
|
1550
|
+
if ("light" in t && "dark" in t) {
|
|
1551
|
+
De(
|
|
1552
|
+
t[c === "dark" ? "dark" : "light"],
|
|
1498
1553
|
u
|
|
1499
1554
|
);
|
|
1500
1555
|
return;
|
|
1501
1556
|
}
|
|
1502
|
-
|
|
1557
|
+
De(t, u);
|
|
1503
1558
|
return;
|
|
1504
1559
|
}
|
|
1505
1560
|
},
|
|
1506
|
-
[c,
|
|
1561
|
+
[c, t]
|
|
1507
1562
|
);
|
|
1508
|
-
return /* @__PURE__ */ l.jsx(
|
|
1509
|
-
|
|
1563
|
+
return /* @__PURE__ */ l.jsx(Or.Provider, { value: Tt, children: /* @__PURE__ */ l.jsx(
|
|
1564
|
+
Mr,
|
|
1510
1565
|
{
|
|
1511
|
-
theme:
|
|
1566
|
+
theme: Et,
|
|
1512
1567
|
cssVariablesSelector: ".bn-container",
|
|
1513
1568
|
children: /* @__PURE__ */ l.jsx(
|
|
1514
|
-
|
|
1569
|
+
Fr,
|
|
1515
1570
|
{
|
|
1516
|
-
theme: typeof
|
|
1517
|
-
...
|
|
1571
|
+
theme: typeof t == "object" ? void 0 : t,
|
|
1572
|
+
...n,
|
|
1518
1573
|
ref: f
|
|
1519
1574
|
}
|
|
1520
1575
|
)
|
|
@@ -1522,12 +1577,12 @@ const x = [
|
|
|
1522
1577
|
) });
|
|
1523
1578
|
};
|
|
1524
1579
|
export {
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1580
|
+
Ft as BlockNoteView,
|
|
1581
|
+
De as applyBlockNoteCSSVariablesFromTheme,
|
|
1582
|
+
Tt as components,
|
|
1583
|
+
Ot as darkDefaultTheme,
|
|
1529
1584
|
x as defaultColorScheme,
|
|
1530
|
-
|
|
1531
|
-
|
|
1585
|
+
ze as lightDefaultTheme,
|
|
1586
|
+
$r as removeBlockNoteCSSVariables
|
|
1532
1587
|
};
|
|
1533
1588
|
//# sourceMappingURL=blocknote-mantine.js.map
|