@topol.io/editor-react 0.1.0 → 0.2.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.
@@ -1,680 +1,494 @@
1
- import Oe, { useEffect as cr } from "react";
2
- var Z = { exports: {} }, F = {};
1
+ import Ae, { useEffect as xe } from "react";
2
+ var A = { exports: {} }, P = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var de;
13
+ function Oe() {
14
+ if (de) return P;
15
+ de = 1;
16
+ var o = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
17
+ function c(r, i, f) {
18
+ var m = null;
19
+ if (f !== void 0 && (m = "" + f), i.key !== void 0 && (m = "" + i.key), "key" in i) {
20
+ f = {};
21
+ for (var y in i)
22
+ y !== "key" && (f[y] = i[y]);
23
+ } else f = i;
24
+ return i = f.ref, {
25
+ $$typeof: o,
26
+ type: r,
27
+ key: m,
28
+ ref: i !== void 0 ? i : null,
29
+ props: f
30
+ };
31
+ }
32
+ return P.Fragment = l, P.jsx = c, P.jsxs = c, P;
33
+ }
34
+ var R = {};
3
35
  /**
4
36
  * @license React
5
37
  * react-jsx-runtime.development.js
6
38
  *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
39
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
40
  *
9
41
  * This source code is licensed under the MIT license found in the
10
42
  * LICENSE file in the root directory of this source tree.
11
43
  */
12
- var _e;
13
- function fr() {
14
- return _e || (_e = 1, process.env.NODE_ENV !== "production" && function() {
15
- var n = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), _ = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
16
- function xe(e) {
17
- if (e === null || typeof e != "object")
18
- return null;
19
- var r = Q && e[Q] || e[ke];
20
- return typeof r == "function" ? r : null;
21
- }
22
- var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
- function m(e) {
24
- {
25
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
26
- t[o - 1] = arguments[o];
27
- je("error", e, t);
28
- }
29
- }
30
- function je(e, r, t) {
31
- {
32
- var o = O.ReactDebugCurrentFrame, s = o.getStackAddendum();
33
- s !== "" && (r += "%s", t = t.concat([s]));
34
- var c = t.map(function(l) {
35
- return String(l);
36
- });
37
- c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
38
- }
39
- }
40
- var Ae = !1, De = !1, Fe = !1, Ie = !1, Be = !1, ee;
41
- ee = Symbol.for("react.module.reference");
42
- function Me(e) {
43
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === b || Be || e === f || e === C || e === E || Ie || e === B || Ae || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === w || e.$$typeof === j || e.$$typeof === _ || e.$$typeof === h || // This needs to include all possible module reference object
44
- // types supported by any Flight configuration anywhere since
45
- // we don't know which Flight build this will end up being used
46
- // with.
47
- e.$$typeof === ee || e.getModuleId !== void 0));
48
- }
49
- function We(e, r, t) {
50
- var o = e.displayName;
51
- if (o)
52
- return o;
53
- var s = r.displayName || r.name || "";
54
- return s !== "" ? t + "(" + s + ")" : t;
55
- }
56
- function re(e) {
57
- return e.displayName || "Context";
58
- }
59
- function T(e) {
60
- if (e == null)
61
- return null;
62
- if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
63
- return e.displayName || e.name || null;
64
- if (typeof e == "string")
65
- return e;
44
+ var ve;
45
+ function je() {
46
+ return ve || (ve = 1, process.env.NODE_ENV !== "production" && function() {
47
+ function o(e) {
48
+ if (e == null) return null;
49
+ if (typeof e == "function")
50
+ return e.$$typeof === Pe ? null : e.displayName || e.name || null;
51
+ if (typeof e == "string") return e;
66
52
  switch (e) {
67
- case a:
53
+ case N:
68
54
  return "Fragment";
69
- case g:
55
+ case Se:
70
56
  return "Portal";
71
- case b:
57
+ case X:
72
58
  return "Profiler";
73
- case f:
59
+ case I:
74
60
  return "StrictMode";
75
- case C:
61
+ case B:
76
62
  return "Suspense";
77
- case E:
63
+ case Y:
78
64
  return "SuspenseList";
79
65
  }
80
66
  if (typeof e == "object")
81
- switch (e.$$typeof) {
82
- case _:
83
- var r = e;
84
- return re(r) + ".Consumer";
85
- case j:
86
- var t = e;
87
- return re(t._context) + ".Provider";
88
- case h:
89
- return We(e, e.render, "ForwardRef");
90
- case w:
91
- var o = e.displayName || null;
92
- return o !== null ? o : T(e.type) || "Memo";
93
- case P: {
94
- var s = e, c = s._payload, l = s._init;
67
+ switch (typeof e.tag == "number" && console.error(
68
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
+ ), e.$$typeof) {
70
+ case Q:
71
+ return (e.displayName || "Context") + ".Provider";
72
+ case Z:
73
+ return (e._context.displayName || "Context") + ".Consumer";
74
+ case M:
75
+ var t = e.render;
76
+ return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
77
+ case W:
78
+ return t = e.displayName || null, t !== null ? t : o(e.type) || "Memo";
79
+ case $:
80
+ t = e._payload, e = e._init;
95
81
  try {
96
- return T(l(c));
82
+ return o(e(t));
97
83
  } catch {
98
- return null;
99
84
  }
100
- }
101
85
  }
102
86
  return null;
103
87
  }
104
- var S = Object.assign, A = 0, ne, te, oe, ae, ie, le, ue;
105
- function se() {
106
- }
107
- se.__reactDisabledLog = !0;
108
- function Le() {
109
- {
110
- if (A === 0) {
111
- ne = console.log, te = console.info, oe = console.warn, ae = console.error, ie = console.group, le = console.groupCollapsed, ue = console.groupEnd;
112
- var e = {
113
- configurable: !0,
114
- enumerable: !0,
115
- value: se,
116
- writable: !0
117
- };
118
- Object.defineProperties(console, {
119
- info: e,
120
- log: e,
121
- warn: e,
122
- error: e,
123
- group: e,
124
- groupCollapsed: e,
125
- groupEnd: e
126
- });
127
- }
128
- A++;
129
- }
88
+ function l(e) {
89
+ return "" + e;
130
90
  }
131
- function $e() {
132
- {
133
- if (A--, A === 0) {
134
- var e = {
135
- configurable: !0,
136
- enumerable: !0,
137
- writable: !0
138
- };
139
- Object.defineProperties(console, {
140
- log: S({}, e, {
141
- value: ne
142
- }),
143
- info: S({}, e, {
144
- value: te
145
- }),
146
- warn: S({}, e, {
147
- value: oe
148
- }),
149
- error: S({}, e, {
150
- value: ae
151
- }),
152
- group: S({}, e, {
153
- value: ie
154
- }),
155
- groupCollapsed: S({}, e, {
156
- value: le
157
- }),
158
- groupEnd: S({}, e, {
159
- value: ue
160
- })
161
- });
162
- }
163
- A < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
91
+ function c(e) {
92
+ try {
93
+ l(e);
94
+ var t = !1;
95
+ } catch {
96
+ t = !0;
164
97
  }
165
- }
166
- var Y = O.ReactCurrentDispatcher, U;
167
- function M(e, r, t) {
168
- {
169
- if (U === void 0)
170
- try {
171
- throw Error();
172
- } catch (s) {
173
- var o = s.stack.trim().match(/\n( *(at )?)/);
174
- U = o && o[1] || "";
175
- }
176
- return `
177
- ` + U + e;
98
+ if (t) {
99
+ t = console;
100
+ var n = t.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
101
+ return n.call(
102
+ t,
103
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
104
+ u
105
+ ), l(e);
178
106
  }
179
107
  }
180
- var V = !1, W;
181
- {
182
- var Ne = typeof WeakMap == "function" ? WeakMap : Map;
183
- W = new Ne();
108
+ function r() {
184
109
  }
185
- function ce(e, r) {
186
- if (!e || V)
187
- return "";
188
- {
189
- var t = W.get(e);
190
- if (t !== void 0)
191
- return t;
110
+ function i() {
111
+ if (S === 0) {
112
+ ee = console.log, oe = console.info, te = console.warn, ne = console.error, re = console.group, ae = console.groupCollapsed, ie = console.groupEnd;
113
+ var e = {
114
+ configurable: !0,
115
+ enumerable: !0,
116
+ value: r,
117
+ writable: !0
118
+ };
119
+ Object.defineProperties(console, {
120
+ info: e,
121
+ log: e,
122
+ warn: e,
123
+ error: e,
124
+ group: e,
125
+ groupCollapsed: e,
126
+ groupEnd: e
127
+ });
192
128
  }
193
- var o;
194
- V = !0;
195
- var s = Error.prepareStackTrace;
196
- Error.prepareStackTrace = void 0;
197
- var c;
198
- c = Y.current, Y.current = null, Le();
129
+ S++;
130
+ }
131
+ function f() {
132
+ if (S--, S === 0) {
133
+ var e = { configurable: !0, enumerable: !0, writable: !0 };
134
+ Object.defineProperties(console, {
135
+ log: b({}, e, { value: ee }),
136
+ info: b({}, e, { value: oe }),
137
+ warn: b({}, e, { value: te }),
138
+ error: b({}, e, { value: ne }),
139
+ group: b({}, e, { value: re }),
140
+ groupCollapsed: b({}, e, { value: ae }),
141
+ groupEnd: b({}, e, { value: ie })
142
+ });
143
+ }
144
+ 0 > S && console.error(
145
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
146
+ );
147
+ }
148
+ function m(e) {
149
+ if (z === void 0)
150
+ try {
151
+ throw Error();
152
+ } catch (n) {
153
+ var t = n.stack.trim().match(/\n( *(at )?)/);
154
+ z = t && t[1] || "", le = -1 < n.stack.indexOf(`
155
+ at`) ? " (<anonymous>)" : -1 < n.stack.indexOf("@") ? "@unknown:0:0" : "";
156
+ }
157
+ return `
158
+ ` + z + e + le;
159
+ }
160
+ function y(e, t) {
161
+ if (!e || H) return "";
162
+ var n = V.get(e);
163
+ if (n !== void 0) return n;
164
+ H = !0, n = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
165
+ var u = null;
166
+ u = T.H, T.H = null, i();
199
167
  try {
200
- if (r) {
201
- var l = function() {
202
- throw Error();
203
- };
204
- if (Object.defineProperty(l.prototype, "props", {
205
- set: function() {
206
- throw Error();
207
- }
208
- }), typeof Reflect == "object" && Reflect.construct) {
168
+ var d = {
169
+ DetermineComponentFrameRoot: function() {
209
170
  try {
210
- Reflect.construct(l, []);
211
- } catch (R) {
212
- o = R;
213
- }
214
- Reflect.construct(e, [], l);
215
- } else {
216
- try {
217
- l.call();
218
- } catch (R) {
219
- o = R;
171
+ if (t) {
172
+ var w = function() {
173
+ throw Error();
174
+ };
175
+ if (Object.defineProperty(w.prototype, "props", {
176
+ set: function() {
177
+ throw Error();
178
+ }
179
+ }), typeof Reflect == "object" && Reflect.construct) {
180
+ try {
181
+ Reflect.construct(w, []);
182
+ } catch (E) {
183
+ var _ = E;
184
+ }
185
+ Reflect.construct(e, [], w);
186
+ } else {
187
+ try {
188
+ w.call();
189
+ } catch (E) {
190
+ _ = E;
191
+ }
192
+ e.call(w.prototype);
193
+ }
194
+ } else {
195
+ try {
196
+ throw Error();
197
+ } catch (E) {
198
+ _ = E;
199
+ }
200
+ (w = e()) && typeof w.catch == "function" && w.catch(function() {
201
+ });
202
+ }
203
+ } catch (E) {
204
+ if (E && _ && typeof E.stack == "string")
205
+ return [E.stack, _.stack];
220
206
  }
221
- e.call(l.prototype);
222
- }
223
- } else {
224
- try {
225
- throw Error();
226
- } catch (R) {
227
- o = R;
207
+ return [null, null];
228
208
  }
229
- e();
230
- }
231
- } catch (R) {
232
- if (R && o && typeof R.stack == "string") {
233
- for (var i = R.stack.split(`
234
- `), p = o.stack.split(`
235
- `), d = i.length - 1, v = p.length - 1; d >= 1 && v >= 0 && i[d] !== p[v]; )
236
- v--;
237
- for (; d >= 1 && v >= 0; d--, v--)
238
- if (i[d] !== p[v]) {
239
- if (d !== 1 || v !== 1)
209
+ };
210
+ d.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
211
+ var s = Object.getOwnPropertyDescriptor(
212
+ d.DetermineComponentFrameRoot,
213
+ "name"
214
+ );
215
+ s && s.configurable && Object.defineProperty(
216
+ d.DetermineComponentFrameRoot,
217
+ "name",
218
+ { value: "DetermineComponentFrameRoot" }
219
+ );
220
+ var a = d.DetermineComponentFrameRoot(), g = a[0], C = a[1];
221
+ if (g && C) {
222
+ var v = g.split(`
223
+ `), h = C.split(`
224
+ `);
225
+ for (a = s = 0; s < v.length && !v[s].includes(
226
+ "DetermineComponentFrameRoot"
227
+ ); )
228
+ s++;
229
+ for (; a < h.length && !h[a].includes(
230
+ "DetermineComponentFrameRoot"
231
+ ); )
232
+ a++;
233
+ if (s === v.length || a === h.length)
234
+ for (s = v.length - 1, a = h.length - 1; 1 <= s && 0 <= a && v[s] !== h[a]; )
235
+ a--;
236
+ for (; 1 <= s && 0 <= a; s--, a--)
237
+ if (v[s] !== h[a]) {
238
+ if (s !== 1 || a !== 1)
240
239
  do
241
- if (d--, v--, v < 0 || i[d] !== p[v]) {
242
- var y = `
243
- ` + i[d].replace(" at new ", " at ");
244
- return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, y), y;
240
+ if (s--, a--, 0 > a || v[s] !== h[a]) {
241
+ var k = `
242
+ ` + v[s].replace(
243
+ " at new ",
244
+ " at "
245
+ );
246
+ return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, k), k;
245
247
  }
246
- while (d >= 1 && v >= 0);
248
+ while (1 <= s && 0 <= a);
247
249
  break;
248
250
  }
249
251
  }
250
252
  } finally {
251
- V = !1, Y.current = c, $e(), Error.prepareStackTrace = s;
253
+ H = !1, T.H = u, f(), Error.prepareStackTrace = n;
252
254
  }
253
- var x = e ? e.displayName || e.name : "", Re = x ? M(x) : "";
254
- return typeof e == "function" && W.set(e, Re), Re;
255
- }
256
- function Ye(e, r, t) {
257
- return ce(e, !1);
258
- }
259
- function Ue(e) {
260
- var r = e.prototype;
261
- return !!(r && r.isReactComponent);
262
- }
263
- function L(e, r, t) {
264
- if (e == null)
265
- return "";
266
- if (typeof e == "function")
267
- return ce(e, Ue(e));
268
- if (typeof e == "string")
269
- return M(e);
255
+ return v = (v = e ? e.displayName || e.name : "") ? m(v) : "", typeof e == "function" && V.set(e, v), v;
256
+ }
257
+ function x(e) {
258
+ if (e == null) return "";
259
+ if (typeof e == "function") {
260
+ var t = e.prototype;
261
+ return y(
262
+ e,
263
+ !(!t || !t.isReactComponent)
264
+ );
265
+ }
266
+ if (typeof e == "string") return m(e);
270
267
  switch (e) {
271
- case C:
272
- return M("Suspense");
273
- case E:
274
- return M("SuspenseList");
268
+ case B:
269
+ return m("Suspense");
270
+ case Y:
271
+ return m("SuspenseList");
275
272
  }
276
273
  if (typeof e == "object")
277
274
  switch (e.$$typeof) {
278
- case h:
279
- return Ye(e.render);
280
- case w:
281
- return L(e.type, r, t);
282
- case P: {
283
- var o = e, s = o._payload, c = o._init;
275
+ case M:
276
+ return e = y(e.render, !1), e;
277
+ case W:
278
+ return x(e.type);
279
+ case $:
280
+ t = e._payload, e = e._init;
284
281
  try {
285
- return L(c(s), r, t);
282
+ return x(e(t));
286
283
  } catch {
287
284
  }
288
- }
289
285
  }
290
286
  return "";
291
287
  }
292
- var $ = Object.prototype.hasOwnProperty, fe = {}, de = O.ReactDebugCurrentFrame;
293
- function N(e) {
294
- if (e) {
295
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
296
- de.setExtraStackFrame(t);
297
- } else
298
- de.setExtraStackFrame(null);
299
- }
300
- function Ve(e, r, t, o, s) {
301
- {
302
- var c = Function.call.bind($);
303
- for (var l in e)
304
- if (c(e, l)) {
305
- var i = void 0;
306
- try {
307
- if (typeof e[l] != "function") {
308
- var p = Error((o || "React class") + ": " + t + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
- throw p.name = "Invariant Violation", p;
310
- }
311
- i = e[l](r, l, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
- } catch (d) {
313
- i = d;
314
- }
315
- i && !(i instanceof Error) && (N(s), m("%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).", o || "React class", t, l, typeof i), N(null)), i instanceof Error && !(i.message in fe) && (fe[i.message] = !0, N(s), m("Failed %s type: %s", t, i.message), N(null));
316
- }
317
- }
318
- }
319
- var ze = Array.isArray;
320
- function z(e) {
321
- return ze(e);
322
- }
323
- function qe(e) {
324
- {
325
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
326
- return t;
327
- }
328
- }
329
- function He(e) {
330
- try {
331
- return ve(e), !1;
332
- } catch {
333
- return !0;
334
- }
335
- }
336
- function ve(e) {
337
- return "" + e;
338
- }
339
- function ge(e) {
340
- if (He(e))
341
- return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ve(e);
342
- }
343
- var D = O.ReactCurrentOwner, Je = {
344
- key: !0,
345
- ref: !0,
346
- __self: !0,
347
- __source: !0
348
- }, he, me, q;
349
- q = {};
350
- function Ge(e) {
351
- if ($.call(e, "ref")) {
352
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
353
- if (r && r.isReactWarning)
354
- return !1;
355
- }
356
- return e.ref !== void 0;
288
+ function O() {
289
+ var e = T.A;
290
+ return e === null ? null : e.getOwner();
357
291
  }
358
- function Ke(e) {
359
- if ($.call(e, "key")) {
360
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
361
- if (r && r.isReactWarning)
362
- return !1;
292
+ function we(e) {
293
+ if (D.call(e, "key")) {
294
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
295
+ if (t && t.isReactWarning) return !1;
363
296
  }
364
297
  return e.key !== void 0;
365
298
  }
366
- function Xe(e, r) {
367
- if (typeof e.ref == "string" && D.current && r && D.current.stateNode !== r) {
368
- var t = T(D.current.type);
369
- q[t] || (m('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', T(D.current.type), e.ref), q[t] = !0);
370
- }
371
- }
372
- function Ze(e, r) {
373
- {
374
- var t = function() {
375
- he || (he = !0, m("%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)", r));
376
- };
377
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
378
- get: t,
379
- configurable: !0
380
- });
381
- }
382
- }
383
- function Qe(e, r) {
384
- {
385
- var t = function() {
386
- me || (me = !0, m("%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)", r));
387
- };
388
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
389
- get: t,
390
- configurable: !0
391
- });
299
+ function Te(e, t) {
300
+ function n() {
301
+ ue || (ue = !0, console.error(
302
+ "%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://react.dev/link/special-props)",
303
+ t
304
+ ));
392
305
  }
393
- }
394
- var er = function(e, r, t, o, s, c, l) {
395
- var i = {
396
- // This tag allows us to uniquely identify this as a React Element
397
- $$typeof: u,
398
- // Built-in properties that belong on the element
306
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
307
+ get: n,
308
+ configurable: !0
309
+ });
310
+ }
311
+ function be() {
312
+ var e = o(this.type);
313
+ return se[e] || (se[e] = !0, console.error(
314
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
315
+ )), e = this.props.ref, e !== void 0 ? e : null;
316
+ }
317
+ function he(e, t, n, u, d, s) {
318
+ return n = s.ref, e = {
319
+ $$typeof: p,
399
320
  type: e,
400
- key: r,
401
- ref: t,
402
- props: l,
403
- // Record the component responsible for creating this element.
404
- _owner: c
405
- };
406
- return i._store = {}, Object.defineProperty(i._store, "validated", {
407
- configurable: !1,
321
+ key: t,
322
+ props: s,
323
+ _owner: d
324
+ }, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
408
325
  enumerable: !1,
409
- writable: !0,
410
- value: !1
411
- }), Object.defineProperty(i, "_self", {
326
+ get: be
327
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
412
328
  configurable: !1,
413
329
  enumerable: !1,
414
- writable: !1,
415
- value: o
416
- }), Object.defineProperty(i, "_source", {
330
+ writable: !0,
331
+ value: 0
332
+ }), Object.defineProperty(e, "_debugInfo", {
417
333
  configurable: !1,
418
334
  enumerable: !1,
419
- writable: !1,
420
- value: s
421
- }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
422
- };
423
- function rr(e, r, t, o, s) {
424
- {
425
- var c, l = {}, i = null, p = null;
426
- t !== void 0 && (ge(t), i = "" + t), Ke(r) && (ge(r.key), i = "" + r.key), Ge(r) && (p = r.ref, Xe(r, s));
427
- for (c in r)
428
- $.call(r, c) && !Je.hasOwnProperty(c) && (l[c] = r[c]);
429
- if (e && e.defaultProps) {
430
- var d = e.defaultProps;
431
- for (c in d)
432
- l[c] === void 0 && (l[c] = d[c]);
433
- }
434
- if (i || p) {
435
- var v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
- i && Ze(l, v), p && Qe(l, v);
437
- }
438
- return er(e, i, p, s, o, D.current, l);
439
- }
440
- }
441
- var H = O.ReactCurrentOwner, pe = O.ReactDebugCurrentFrame;
442
- function k(e) {
443
- if (e) {
444
- var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
445
- pe.setExtraStackFrame(t);
335
+ writable: !0,
336
+ value: null
337
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
338
+ }
339
+ function J(e, t, n, u, d, s) {
340
+ if (typeof e == "string" || typeof e == "function" || e === N || e === X || e === I || e === B || e === Y || e === ke || typeof e == "object" && e !== null && (e.$$typeof === $ || e.$$typeof === W || e.$$typeof === Q || e.$$typeof === Z || e.$$typeof === M || e.$$typeof === Re || e.getModuleId !== void 0)) {
341
+ var a = t.children;
342
+ if (a !== void 0)
343
+ if (u)
344
+ if (U(a)) {
345
+ for (u = 0; u < a.length; u++)
346
+ L(a[u], e);
347
+ Object.freeze && Object.freeze(a);
348
+ } else
349
+ console.error(
350
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
351
+ );
352
+ else L(a, e);
446
353
  } else
447
- pe.setExtraStackFrame(null);
448
- }
449
- var J;
450
- J = !1;
451
- function G(e) {
452
- return typeof e == "object" && e !== null && e.$$typeof === u;
453
- }
454
- function Ee() {
455
- {
456
- if (H.current) {
457
- var e = T(H.current.type);
458
- if (e)
459
- return `
460
-
461
- Check the render method of \`` + e + "`.";
462
- }
463
- return "";
464
- }
465
- }
466
- function nr(e) {
467
- {
468
- if (e !== void 0) {
469
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
470
- return `
471
-
472
- Check your code at ` + r + ":" + t + ".";
473
- }
474
- return "";
475
- }
476
- }
477
- var ye = {};
478
- function tr(e) {
479
- {
480
- var r = Ee();
481
- if (!r) {
482
- var t = typeof e == "string" ? e : e.displayName || e.name;
483
- t && (r = `
484
-
485
- Check the top-level render call using <` + t + ">.");
486
- }
487
- return r;
488
- }
489
- }
490
- function be(e, r) {
491
- {
492
- if (!e._store || e._store.validated || e.key != null)
493
- return;
494
- e._store.validated = !0;
495
- var t = tr(r);
496
- if (ye[t])
497
- return;
498
- ye[t] = !0;
499
- var o = "";
500
- e && e._owner && e._owner !== H.current && (o = " It was passed a child from " + T(e._owner.type) + "."), k(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, o), k(null);
354
+ a = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? u = "null" : U(e) ? u = "array" : e !== void 0 && e.$$typeof === p ? (u = "<" + (o(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, console.error(
355
+ "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
356
+ u,
357
+ a
358
+ );
359
+ if (D.call(t, "key")) {
360
+ a = o(e);
361
+ var g = Object.keys(t).filter(function(v) {
362
+ return v !== "key";
363
+ });
364
+ u = 0 < g.length ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}", ce[a + u] || (g = 0 < g.length ? "{" + g.join(": ..., ") + ": ...}" : "{}", console.error(
365
+ `A props object containing a "key" prop is being spread into JSX:
366
+ let props = %s;
367
+ <%s {...props} />
368
+ React keys must be passed directly to JSX without using spread:
369
+ let props = %s;
370
+ <%s key={someKey} {...props} />`,
371
+ u,
372
+ a,
373
+ g,
374
+ a
375
+ ), ce[a + u] = !0);
501
376
  }
502
- }
503
- function we(e, r) {
504
- {
505
- if (typeof e != "object")
506
- return;
507
- if (z(e))
508
- for (var t = 0; t < e.length; t++) {
509
- var o = e[t];
510
- G(o) && be(o, r);
377
+ if (a = null, n !== void 0 && (c(n), a = "" + n), we(t) && (c(t.key), a = "" + t.key), "key" in t) {
378
+ n = {};
379
+ for (var C in t)
380
+ C !== "key" && (n[C] = t[C]);
381
+ } else n = t;
382
+ return a && Te(
383
+ n,
384
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
385
+ ), he(e, a, s, d, O(), n);
386
+ }
387
+ function L(e, t) {
388
+ if (typeof e == "object" && e && e.$$typeof !== _e) {
389
+ if (U(e))
390
+ for (var n = 0; n < e.length; n++) {
391
+ var u = e[n];
392
+ j(u) && G(u, t);
511
393
  }
512
- else if (G(e))
513
- e._store && (e._store.validated = !0);
514
- else if (e) {
515
- var s = xe(e);
516
- if (typeof s == "function" && s !== e.entries)
517
- for (var c = s.call(e), l; !(l = c.next()).done; )
518
- G(l.value) && be(l.value, r);
519
- }
520
- }
521
- }
522
- function or(e) {
523
- {
524
- var r = e.type;
525
- if (r == null || typeof r == "string")
526
- return;
527
- var t;
528
- if (typeof r == "function")
529
- t = r.propTypes;
530
- else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
531
- // Inner props are checked in the reconciler.
532
- r.$$typeof === w))
533
- t = r.propTypes;
534
- else
535
- return;
536
- if (t) {
537
- var o = T(r);
538
- Ve(t, e.props, "prop", o, e);
539
- } else if (r.PropTypes !== void 0 && !J) {
540
- J = !0;
541
- var s = T(r);
542
- m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
543
- }
544
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
394
+ else if (j(e))
395
+ e._store && (e._store.validated = 1);
396
+ else if (e === null || typeof e != "object" ? n = null : (n = K && e[K] || e["@@iterator"], n = typeof n == "function" ? n : null), typeof n == "function" && n !== e.entries && (n = n.call(e), n !== e))
397
+ for (; !(e = n.next()).done; )
398
+ j(e.value) && G(e.value, t);
545
399
  }
546
400
  }
547
- function ar(e) {
548
- {
549
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
550
- var o = r[t];
551
- if (o !== "children" && o !== "key") {
552
- k(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), k(null);
553
- break;
554
- }
555
- }
556
- e.ref !== null && (k(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
401
+ function j(e) {
402
+ return typeof e == "object" && e !== null && e.$$typeof === p;
403
+ }
404
+ function G(e, t) {
405
+ if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, t = ye(t), !fe[t])) {
406
+ fe[t] = !0;
407
+ var n = "";
408
+ e && e._owner != null && e._owner !== O() && (n = null, typeof e._owner.tag == "number" ? n = o(e._owner.type) : typeof e._owner.name == "string" && (n = e._owner.name), n = " It was passed a child from " + n + ".");
409
+ var u = T.getCurrentStack;
410
+ T.getCurrentStack = function() {
411
+ var d = x(e.type);
412
+ return u && (d += u() || ""), d;
413
+ }, console.error(
414
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
415
+ t,
416
+ n
417
+ ), T.getCurrentStack = u;
557
418
  }
558
419
  }
559
- function Te(e, r, t, o, s, c) {
560
- {
561
- var l = Me(e);
562
- if (!l) {
563
- var i = "";
564
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
565
- var p = nr(s);
566
- p ? i += p : i += Ee();
567
- var d;
568
- e === null ? d = "null" : z(e) ? d = "array" : e !== void 0 && e.$$typeof === u ? (d = "<" + (T(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, i);
569
- }
570
- var v = rr(e, r, t, s, c);
571
- if (v == null)
572
- return v;
573
- if (l) {
574
- var y = r.children;
575
- if (y !== void 0)
576
- if (o)
577
- if (z(y)) {
578
- for (var x = 0; x < y.length; x++)
579
- we(y[x], e);
580
- Object.freeze && Object.freeze(y);
581
- } else
582
- m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
583
- else
584
- we(y, e);
585
- }
586
- return e === a ? ar(v) : or(v), v;
587
- }
588
- }
589
- function ir(e, r, t) {
590
- return Te(e, r, t, !0);
591
- }
592
- function lr(e, r, t) {
593
- return Te(e, r, t, !1);
594
- }
595
- var ur = lr, sr = ir;
596
- F.Fragment = a, F.jsx = ur, F.jsxs = sr;
597
- }()), F;
420
+ function ye(e) {
421
+ var t = "", n = O();
422
+ return n && (n = o(n.type)) && (t = `
423
+
424
+ Check the render method of \`` + n + "`."), t || (e = o(e)) && (t = `
425
+
426
+ Check the top-level render call using <` + e + ">."), t;
427
+ }
428
+ var Ce = Ae, p = Symbol.for("react.transitional.element"), Se = Symbol.for("react.portal"), N = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), X = Symbol.for("react.profiler"), Z = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), Y = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), ke = Symbol.for("react.offscreen"), K = Symbol.iterator, Pe = Symbol.for("react.client.reference"), T = Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, b = Object.assign, Re = Symbol.for("react.client.reference"), U = Array.isArray, S = 0, ee, oe, te, ne, re, ae, ie;
429
+ r.__reactDisabledLog = !0;
430
+ var z, le, H = !1, V = new (typeof WeakMap == "function" ? WeakMap : Map)(), _e = Symbol.for("react.client.reference"), ue, se = {}, ce = {}, fe = {};
431
+ R.Fragment = N, R.jsx = function(e, t, n, u, d) {
432
+ return J(e, t, n, !1, u, d);
433
+ }, R.jsxs = function(e, t, n, u, d) {
434
+ return J(e, t, n, !0, u, d);
435
+ };
436
+ }()), R;
598
437
  }
599
- var I = {};
600
- /**
601
- * @license React
602
- * react-jsx-runtime.production.min.js
603
- *
604
- * Copyright (c) Facebook, Inc. and its affiliates.
605
- *
606
- * This source code is licensed under the MIT license found in the
607
- * LICENSE file in the root directory of this source tree.
608
- */
609
- var Pe;
610
- function dr() {
611
- if (Pe)
612
- return I;
613
- Pe = 1;
614
- var n = Oe, u = Symbol.for("react.element"), g = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, f = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
615
- function j(_, h, C) {
616
- var E, w = {}, P = null, B = null;
617
- C !== void 0 && (P = "" + C), h.key !== void 0 && (P = "" + h.key), h.ref !== void 0 && (B = h.ref);
618
- for (E in h)
619
- a.call(h, E) && !b.hasOwnProperty(E) && (w[E] = h[E]);
620
- if (_ && _.defaultProps)
621
- for (E in h = _.defaultProps, h)
622
- w[E] === void 0 && (w[E] = h[E]);
623
- return { $$typeof: u, type: _, key: P, ref: B, props: w, _owner: f.current };
624
- }
625
- return I.Fragment = g, I.jsx = j, I.jsxs = j, I;
438
+ var ge;
439
+ function pe() {
440
+ return ge || (ge = 1, process.env.NODE_ENV === "production" ? A.exports = Oe() : A.exports = je()), A.exports;
626
441
  }
627
- process.env.NODE_ENV === "production" ? Z.exports = dr() : Z.exports = fr();
628
- var vr = Z.exports;
629
- function gr(n) {
630
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
442
+ var Ne = pe();
443
+ function Me(o) {
444
+ return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
631
445
  }
632
- var hr = function(n, u, g) {
633
- var a = document.head || document.getElementsByTagName("head")[0], f = document.createElement("script");
634
- typeof u == "function" && (g = u, u = {}), u = u || {}, g = g || function() {
635
- }, f.type = u.type || "text/javascript", f.charset = u.charset || "utf8", f.async = "async" in u ? !!u.async : !0, f.src = n, u.attrs && mr(f, u.attrs), u.text && (f.text = "" + u.text);
636
- var b = "onload" in f ? Se : pr;
637
- b(f, g), f.onload || Se(f, g), a.appendChild(f);
446
+ var Be = function(o, l, c) {
447
+ var r = document.head || document.getElementsByTagName("head")[0], i = document.createElement("script");
448
+ typeof l == "function" && (c = l, l = {}), l = l || {}, c = c || function() {
449
+ }, i.type = l.type || "text/javascript", i.charset = l.charset || "utf8", i.async = "async" in l ? !!l.async : !0, i.src = o, l.attrs && Ye(i, l.attrs), l.text && (i.text = "" + l.text);
450
+ var f = "onload" in i ? Ee : We;
451
+ f(i, c), i.onload || Ee(i, c), r.appendChild(i);
638
452
  };
639
- function mr(n, u) {
640
- for (var g in u)
641
- n.setAttribute(g, u[g]);
453
+ function Ye(o, l) {
454
+ for (var c in l)
455
+ o.setAttribute(c, l[c]);
642
456
  }
643
- function Se(n, u) {
644
- n.onload = function() {
645
- this.onerror = this.onload = null, u(null, n);
646
- }, n.onerror = function() {
647
- this.onerror = this.onload = null, u(new Error("Failed to load " + this.src), n);
457
+ function Ee(o, l) {
458
+ o.onload = function() {
459
+ this.onerror = this.onload = null, l(null, o);
460
+ }, o.onerror = function() {
461
+ this.onerror = this.onload = null, l(new Error("Failed to load " + this.src), o);
648
462
  };
649
463
  }
650
- function pr(n, u) {
651
- n.onreadystatechange = function() {
652
- this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, u(null, n));
464
+ function We(o, l) {
465
+ o.onreadystatechange = function() {
466
+ this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, l(null, o));
653
467
  };
654
468
  }
655
- const Er = /* @__PURE__ */ gr(hr), yr = "https://d5aoblv5p04cg.cloudfront.net/editor-3/loader/build.js", br = "https://d5aoblv5p04cg.cloudfront.net/develop/loader/build.js", wr = "https://d5aoblv5p04cg.cloudfront.net/staging/loader/build.js";
656
- function Tr(n = "production") {
657
- switch (n) {
469
+ const $e = /* @__PURE__ */ Me(Be), Ue = "https://d5aoblv5p04cg.cloudfront.net/editor-3/loader/build.js", ze = "https://d5aoblv5p04cg.cloudfront.net/develop/loader/build.js", He = "https://d5aoblv5p04cg.cloudfront.net/staging/loader/build.js";
470
+ function Ve(o = "production") {
471
+ switch (o) {
658
472
  case "dev":
659
- return br;
473
+ return ze;
660
474
  case "staging":
661
- return wr;
475
+ return He;
662
476
  default:
663
- return yr;
477
+ return Ue;
664
478
  }
665
479
  }
666
- const Ce = {
667
- init: (n, u) => new Promise((g, a) => {
668
- const f = Tr(u == null ? void 0 : u.stage);
669
- Er(f, (b) => {
670
- b !== null && a(b), window.TopolPlugin.init(n), g(!0);
480
+ const me = {
481
+ init: (o, l) => new Promise((c, r) => {
482
+ const i = Ve(l == null ? void 0 : l.stage);
483
+ $e(i, (f) => {
484
+ f !== null && r(f), window.TopolPlugin.init(o), c(!0);
671
485
  });
672
486
  }),
673
487
  save: () => {
674
488
  window.TopolPlugin.save();
675
489
  },
676
- load: (n) => {
677
- window.TopolPlugin.load(n);
490
+ load: (o) => {
491
+ window.TopolPlugin.load(o);
678
492
  },
679
493
  togglePreview: () => {
680
494
  window.TopolPlugin.togglePreview();
@@ -682,8 +496,8 @@ const Ce = {
682
496
  togglePreviewSize: () => {
683
497
  window.TopolPlugin.togglePreviewSize();
684
498
  },
685
- chooseFile: (n) => {
686
- window.TopolPlugin.chooseFile(n);
499
+ chooseFile: (o) => {
500
+ window.TopolPlugin.chooseFile(o);
687
501
  },
688
502
  undo: () => {
689
503
  window.TopolPlugin.undo();
@@ -694,17 +508,17 @@ const Ce = {
694
508
  destroy: () => {
695
509
  window.TopolPlugin.destroy();
696
510
  },
697
- setSavedBlocks: (n) => {
698
- window.TopolPlugin.setSavedBlocks(n);
511
+ setSavedBlocks: (o) => {
512
+ window.TopolPlugin.setSavedBlocks(o);
699
513
  },
700
- setPreviewHTML: (n) => {
701
- window.TopolPlugin.setPreviewHTML(n);
514
+ setPreviewHTML: (o) => {
515
+ window.TopolPlugin.setPreviewHTML(o);
702
516
  },
703
- createNotification: (n) => {
704
- window.TopolPlugin.createNotification(n);
517
+ createNotification: (o) => {
518
+ window.TopolPlugin.createNotification(o);
705
519
  },
706
- setActiveMembers: (n) => {
707
- window.TopolPlugin.setActiveMembers(n);
520
+ setActiveMembers: (o) => {
521
+ window.TopolPlugin.setActiveMembers(o);
708
522
  },
709
523
  changeEmailToMobile: () => {
710
524
  window.TopolPlugin.changeEmailToMobile();
@@ -715,11 +529,11 @@ const Ce = {
715
529
  toggleBlocksAndStructuresVisibility: () => {
716
530
  window.TopolPlugin.toggleBlocksAndStructuresVisibility();
717
531
  },
718
- updateCustomBlockContent: (n) => {
719
- window.TopolPlugin.updateCustomBlockContent(n);
532
+ updateCustomBlockContent: (o) => {
533
+ window.TopolPlugin.updateCustomBlockContent(o);
720
534
  },
721
- refreshComments: (n) => {
722
- window.TopolPlugin.refreshComments(n);
535
+ refreshComments: (o) => {
536
+ window.TopolPlugin.refreshComments(o);
723
537
  },
724
538
  refreshSyncedRows: () => {
725
539
  window.TopolPlugin.refreshSyncedRows();
@@ -727,84 +541,84 @@ const Ce = {
727
541
  openPremadeTemplatesSelection: () => {
728
542
  window.TopolPlugin.openPremadeTemplatesSelection();
729
543
  },
730
- updateApiAuthorizationHeader: (n) => {
731
- window.TopolPlugin.updateApiAuthorizationHeader(n);
544
+ updateApiAuthorizationHeader: (o) => {
545
+ window.TopolPlugin.updateApiAuthorizationHeader(o);
732
546
  },
733
- setTemplateName: (n) => {
734
- window.TopolPlugin.setTemplateName(n);
547
+ setTemplateName: (o) => {
548
+ window.TopolPlugin.setTemplateName(o);
735
549
  }
736
- }, Rr = "editor";
737
- let K = !1, X = !1;
738
- function Pr(n) {
739
- const u = () => {
740
- const g = {
741
- onSave(a, f) {
742
- n.onSave !== void 0 && n.onSave(a, f);
550
+ }, qe = "editor";
551
+ let q = !1, F = !1;
552
+ function Je(o) {
553
+ const l = () => {
554
+ const c = {
555
+ onSave(r, i) {
556
+ o.onSave !== void 0 && o.onSave(r, i);
743
557
  },
744
- onSaveAndClose(a, f) {
745
- n.onSaveAndClose !== void 0 && n.onSaveAndClose(a, f);
558
+ onSaveAndClose(r, i) {
559
+ o.onSaveAndClose !== void 0 && o.onSaveAndClose(r, i);
746
560
  },
747
- onTestSend(a, f, b) {
748
- n.onTestSend !== void 0 && n.onTestSend(a, f, b);
561
+ onTestSend(r, i, f) {
562
+ o.onTestSend !== void 0 && o.onTestSend(r, i, f);
749
563
  },
750
564
  onOpenFileManager() {
751
- n.onOpenFileManager !== void 0 && n.onOpenFileManager();
565
+ o.onOpenFileManager !== void 0 && o.onOpenFileManager();
752
566
  },
753
567
  onLoaded() {
754
- n.onLoaded !== void 0 && n.onLoaded();
568
+ o.onLoaded !== void 0 && o.onLoaded();
755
569
  },
756
- onBlockSave(a) {
757
- n.onBlockSave !== void 0 && n.onBlockSave(a);
570
+ onBlockSave(r) {
571
+ o.onBlockSave !== void 0 && o.onBlockSave(r);
758
572
  },
759
- onBlockRemove(a) {
760
- n.onBlockRemove !== void 0 && n.onBlockRemove(a);
573
+ onBlockRemove(r) {
574
+ o.onBlockRemove !== void 0 && o.onBlockRemove(r);
761
575
  },
762
- onBlockEdit(a) {
763
- n.onBlockEdit !== void 0 && n.onBlockEdit(a);
576
+ onBlockEdit(r) {
577
+ o.onBlockEdit !== void 0 && o.onBlockEdit(r);
764
578
  },
765
579
  onInit() {
766
- n.onInit !== void 0 && n.onInit(), K = !1, X = !0;
580
+ o.onInit !== void 0 && o.onInit(), q = !1, F = !0;
767
581
  },
768
- onUndoChange(a) {
769
- n.onUndoChange !== void 0 && n.onUndoChange(a);
582
+ onUndoChange(r) {
583
+ o.onUndoChange !== void 0 && o.onUndoChange(r);
770
584
  },
771
- onRedoChange(a) {
772
- n.onRedoChange !== void 0 && n.onRedoChange(a);
585
+ onRedoChange(r) {
586
+ o.onRedoChange !== void 0 && o.onRedoChange(r);
773
587
  },
774
- onPreview(a) {
775
- n.onPreview !== void 0 && n.onPreview(a);
588
+ onPreview(r) {
589
+ o.onPreview !== void 0 && o.onPreview(r);
776
590
  },
777
- onAlert(a) {
778
- n.onAlert !== void 0 && n.onAlert(a);
591
+ onAlert(r) {
592
+ o.onAlert !== void 0 && o.onAlert(r);
779
593
  },
780
594
  onClose() {
781
- n.onClose !== void 0 && n.onClose();
595
+ o.onClose !== void 0 && o.onClose();
782
596
  },
783
- onEdittedWithoutSaveChanged(a) {
784
- n.onEdittedWithoutSaveChanged !== void 0 && n.onEdittedWithoutSaveChanged(a);
597
+ onEdittedWithoutSaveChanged(r) {
598
+ o.onEdittedWithoutSaveChanged !== void 0 && o.onEdittedWithoutSaveChanged(r);
785
599
  },
786
- onOpenCustomBlockDialog(a) {
787
- n.onOpenCustomBlockDialog !== void 0 && n.onOpenCustomBlockDialog(a);
600
+ onOpenCustomBlockDialog(r) {
601
+ o.onOpenCustomBlockDialog !== void 0 && o.onOpenCustomBlockDialog(r);
788
602
  },
789
- onTemplateRename(a) {
790
- n.onTemplateRename !== void 0 && n.onTemplateRename(a);
603
+ onTemplateRename(r) {
604
+ o.onTemplateRename !== void 0 && o.onTemplateRename(r);
791
605
  },
792
- updateTestingEmailAddresses(a) {
793
- n.updateTestingEmailAddresses !== void 0 && n.updateTestingEmailAddresses(a);
606
+ updateTestingEmailAddresses(r) {
607
+ o.updateTestingEmailAddresses !== void 0 && o.updateTestingEmailAddresses(r);
794
608
  },
795
- onError(a, f) {
796
- n.onError !== void 0 && n.onError(a, f);
609
+ onError(r, i) {
610
+ o.onError !== void 0 && o.onError(r, i);
797
611
  }
798
612
  };
799
- return { id: "#" + Rr, ...n.options, callbacks: { ...g } };
613
+ return { id: "#" + qe, ...o.options, callbacks: { ...c } };
800
614
  };
801
- return cr(() => (K || (async () => {
802
- K = !0;
803
- const a = u();
804
- await Ce.init(a, { stage: n.stage || "production" });
615
+ return xe(() => (q || (async () => {
616
+ q = !0;
617
+ const r = l();
618
+ await me.init(r, { stage: o.stage || "production" });
805
619
  })(), () => {
806
- X && (Ce.destroy(), X = !1);
807
- }), []), /* @__PURE__ */ vr.jsx(
620
+ F && (me.destroy(), F = !1);
621
+ }), []), /* @__PURE__ */ Ne.jsx(
808
622
  "div",
809
623
  {
810
624
  id: "editor",
@@ -813,6 +627,6 @@ function Pr(n) {
813
627
  );
814
628
  }
815
629
  export {
816
- Ce as TopolPlugin,
817
- Pr as default
630
+ me as TopolPlugin,
631
+ Je as default
818
632
  };