react-align 2.2.2 → 2.3.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,1144 +1,578 @@
1
- (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(".reactalign.wrapper{height:100%;display:flex;justify-content:space-between}.reactalign .section{display:flex;flex-direction:column;justify-content:space-between}.reactalign .area{display:flex;border:0 solid transparent;box-sizing:border-box;border-radius:8px;position:relative}.reactalign .area-transition-in{transition:all .3s ease-in-out,min-height .5s ease-in-out .2s,min-width .5s ease-in-out .2s}.reactalign .area-transition-out{transition:all .3s ease-in-out .4s,min-height .5s ease-in-out .2s,min-width .5s ease-in-out .2s}.reactalign .item{position:relative;border:0 solid transparent;margin:6px;border-radius:6px}.reactalign .stretch{flex:auto}.reactalign .just-centered{justify-content:center}.reactalign .just-end{justify-content:flex-end}.reactalign .middle{align-items:center}.reactalign .bottom{align-items:flex-end}.reactalign .hide{display:none}.reactalign .overlay{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;background:rgba(0,0,0,.6)}.reactalign .overlay-buttons{display:flex;padding:6px;box-sizing:border-box;justify-content:space-between}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- var Rr = Object.defineProperty, br = Object.defineProperties;
3
- var _r = Object.getOwnPropertyDescriptors;
4
- var re = Object.getOwnPropertySymbols;
5
- var Be = Object.prototype.hasOwnProperty, He = Object.prototype.propertyIsEnumerable;
6
- var Ye = (n, c, i) => c in n ? Rr(n, c, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[c] = i, k = (n, c) => {
7
- for (var i in c || (c = {}))
8
- Be.call(c, i) && Ye(n, i, c[i]);
9
- if (re)
10
- for (var i of re(c))
11
- He.call(c, i) && Ye(n, i, c[i]);
12
- return n;
13
- }, te = (n, c) => br(n, _r(c));
14
- var Ue = (n, c) => {
15
- var i = {};
16
- for (var f in n)
17
- Be.call(n, f) && c.indexOf(f) < 0 && (i[f] = n[f]);
18
- if (n != null && re)
19
- for (var f of re(n))
20
- c.indexOf(f) < 0 && He.call(n, f) && (i[f] = n[f]);
21
- return i;
1
+ (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(".reactalign.wrapper{height:100%;display:flex;justify-content:space-between}.reactalign .section{display:flex;flex-direction:column;justify-content:space-between}.reactalign .area{display:flex;border:0 solid transparent;box-sizing:border-box;border-radius:8px;position:relative}.reactalign .area-transition-in{transition:all .3s ease-in-out,min-height .5s ease-in-out .2s,min-width .5s ease-in-out .2s}.reactalign .area-transition-out{transition:all .3s ease-in-out .4s,min-height .5s ease-in-out .2s,min-width .5s ease-in-out .2s}.reactalign .item{position:relative;border:0 solid transparent;margin:6px;border-radius:6px}.reactalign .stretch{flex:auto}.reactalign .just-centered{justify-content:center}.reactalign .just-end{justify-content:flex-end}.reactalign .middle{align-items:center}.reactalign .bottom{align-items:flex-end}.reactalign .hide{display:none}.reactalign .overlay{position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;background:#0009}.reactalign .overlay-buttons{display:flex;padding:6px;box-sizing:border-box;justify-content:space-between}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ var ke = Object.defineProperty, Ee = Object.defineProperties;
3
+ var ge = Object.getOwnPropertyDescriptors;
4
+ var Z = Object.getOwnPropertySymbols;
5
+ var ie = Object.prototype.hasOwnProperty, se = Object.prototype.propertyIsEnumerable;
6
+ var le = (r, n, t) => n in r ? ke(r, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[n] = t, L = (r, n) => {
7
+ for (var t in n || (n = {}))
8
+ ie.call(n, t) && le(r, t, n[t]);
9
+ if (Z)
10
+ for (var t of Z(n))
11
+ se.call(n, t) && le(r, t, n[t]);
12
+ return r;
13
+ }, $ = (r, n) => Ee(r, ge(n));
14
+ var v = (r, n) => {
15
+ var t = {};
16
+ for (var l in r)
17
+ ie.call(r, l) && n.indexOf(l) < 0 && (t[l] = r[l]);
18
+ if (r != null && Z)
19
+ for (var l of Z(r))
20
+ n.indexOf(l) < 0 && se.call(r, l) && (t[l] = r[l]);
21
+ return t;
22
22
  };
23
- import * as o from "react";
24
- import qe, { createContext as xr, useContext as jr, useState as ge, useCallback as q, useEffect as Sr, useMemo as ne, Children as de, cloneElement as Or } from "react";
25
- import { DragDropContext as Mr, Droppable as Tr, Draggable as Pr } from "react-beautiful-dnd";
26
- const Je = xr({
27
- editing: !1,
28
- isDragging: !1
29
- }), Le = () => jr(Je);
30
- var me = { exports: {} }, z = {};
31
- /**
32
- * @license React
33
- * react-jsx-runtime.production.min.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */
40
- var ze;
41
- function Dr() {
42
- if (ze)
43
- return z;
44
- ze = 1;
45
- var n = qe, c = Symbol.for("react.element"), i = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, R = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
46
- function C(g, d, b) {
47
- var y, j = {}, M = null, S = null;
48
- b !== void 0 && (M = "" + b), d.key !== void 0 && (M = "" + d.key), d.ref !== void 0 && (S = d.ref);
49
- for (y in d)
50
- f.call(d, y) && !v.hasOwnProperty(y) && (j[y] = d[y]);
51
- if (g && g.defaultProps)
52
- for (y in d = g.defaultProps, d)
53
- j[y] === void 0 && (j[y] = d[y]);
54
- return { $$typeof: c, type: g, key: M, ref: S, props: j, _owner: R.current };
23
+ import * as a from "react";
24
+ import Ce, { createContext as ve, useContext as we, useState as Q, useCallback as V, forwardRef as b, useEffect as xe, useMemo as H, Children as q, cloneElement as be } from "react";
25
+ import { DragDropContext as Re, Droppable as je, Draggable as ye } from "@hello-pangea/dnd";
26
+ var Y = { exports: {} }, N = {};
27
+ var ce;
28
+ function _e() {
29
+ if (ce) return N;
30
+ ce = 1;
31
+ var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
32
+ function t(l, s, o) {
33
+ var f = null;
34
+ if (o !== void 0 && (f = "" + o), s.key !== void 0 && (f = "" + s.key), "key" in s) {
35
+ o = {};
36
+ for (var u in s)
37
+ u !== "key" && (o[u] = s[u]);
38
+ } else o = s;
39
+ return s = o.ref, {
40
+ $$typeof: r,
41
+ type: l,
42
+ key: f,
43
+ ref: s !== void 0 ? s : null,
44
+ props: o
45
+ };
55
46
  }
56
- return z.Fragment = i, z.jsx = C, z.jsxs = C, z;
47
+ return N.Fragment = n, N.jsx = t, N.jsxs = t, N;
57
48
  }
58
- var G = {};
59
- /**
60
- * @license React
61
- * react-jsx-runtime.development.js
62
- *
63
- * Copyright (c) Facebook, Inc. and its affiliates.
64
- *
65
- * This source code is licensed under the MIT license found in the
66
- * LICENSE file in the root directory of this source tree.
67
- */
68
- var Ge;
69
- function Wr() {
70
- return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && function() {
71
- var n = qe, c = Symbol.for("react.element"), i = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), h = Symbol.iterator, F = "@@iterator";
72
- function P(e) {
73
- if (e === null || typeof e != "object")
74
- return null;
75
- var r = h && e[h] || e[F];
76
- return typeof r == "function" ? r : null;
77
- }
78
- var m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
79
- function L(e) {
80
- {
81
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
82
- t[a - 1] = arguments[a];
83
- N("error", e, t);
84
- }
85
- }
86
- function N(e, r, t) {
87
- {
88
- var a = m.ReactDebugCurrentFrame, u = a.getStackAddendum();
89
- u !== "" && (r += "%s", t = t.concat([u]));
90
- var p = t.map(function(l) {
91
- return String(l);
92
- });
93
- p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
94
- }
95
- }
96
- var $ = !1, Y = !1, V = !1, _ = !1, B = !1, Ce;
97
- Ce = Symbol.for("react.module.reference");
98
- function Ke(e) {
99
- return !!(typeof e == "string" || typeof e == "function" || e === f || e === v || B || e === R || e === b || e === y || _ || e === S || $ || Y || V || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === j || e.$$typeof === C || e.$$typeof === g || e.$$typeof === d || e.$$typeof === Ce || e.getModuleId !== void 0));
100
- }
101
- function Xe(e, r, t) {
102
- var a = e.displayName;
103
- if (a)
104
- return a;
105
- var u = r.displayName || r.name || "";
106
- return u !== "" ? t + "(" + u + ")" : t;
107
- }
108
- function Ee(e) {
109
- return e.displayName || "Context";
110
- }
111
- function D(e) {
112
- if (e == null)
113
- return null;
114
- if (typeof e.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
115
- return e.displayName || e.name || null;
116
- if (typeof e == "string")
117
- return e;
49
+ var D = {};
50
+ var ue;
51
+ function Me() {
52
+ return ue || (ue = 1, process.env.NODE_ENV !== "production" && (function() {
53
+ function r(e) {
54
+ if (e == null) return null;
55
+ if (typeof e == "function")
56
+ return e.$$typeof === pe ? null : e.displayName || e.name || null;
57
+ if (typeof e == "string") return e;
118
58
  switch (e) {
119
- case f:
59
+ case x:
120
60
  return "Fragment";
121
- case i:
122
- return "Portal";
123
- case v:
124
- return "Profiler";
125
61
  case R:
62
+ return "Profiler";
63
+ case k:
126
64
  return "StrictMode";
127
- case b:
65
+ case S:
128
66
  return "Suspense";
129
- case y:
67
+ case E:
130
68
  return "SuspenseList";
69
+ case Le:
70
+ return "Activity";
131
71
  }
132
72
  if (typeof e == "object")
133
- switch (e.$$typeof) {
134
- case g:
135
- var r = e;
136
- return Ee(r) + ".Consumer";
137
- case C:
138
- var t = e;
139
- return Ee(t._context) + ".Provider";
140
- case d:
141
- return Xe(e, e.render, "ForwardRef");
142
- case j:
143
- var a = e.displayName || null;
144
- return a !== null ? a : D(e.type) || "Memo";
145
- case M: {
146
- var u = e, p = u._payload, l = u._init;
73
+ switch (typeof e.tag == "number" && console.error(
74
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
75
+ ), e.$$typeof) {
76
+ case M:
77
+ return "Portal";
78
+ case A:
79
+ return e.displayName || "Context";
80
+ case O:
81
+ return (e._context.displayName || "Context") + ".Consumer";
82
+ case P:
83
+ var i = e.render;
84
+ return e = e.displayName, e || (e = i.displayName || i.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
85
+ case W:
86
+ return i = e.displayName || null, i !== null ? i : r(e.type) || "Memo";
87
+ case I:
88
+ i = e._payload, e = e._init;
147
89
  try {
148
- return D(l(p));
149
- } catch (s) {
150
- return null;
90
+ return r(e(i));
91
+ } catch (d) {
151
92
  }
152
- }
153
93
  }
154
94
  return null;
155
95
  }
156
- var A = Object.assign, H = 0, ke, we, ye, Re, be, _e, xe;
157
- function je() {
158
- }
159
- je.__reactDisabledLog = !0;
160
- function Qe() {
161
- {
162
- if (H === 0) {
163
- ke = console.log, we = console.info, ye = console.warn, Re = console.error, be = console.group, _e = console.groupCollapsed, xe = console.groupEnd;
164
- var e = {
165
- configurable: !0,
166
- enumerable: !0,
167
- value: je,
168
- writable: !0
169
- };
170
- Object.defineProperties(console, {
171
- info: e,
172
- log: e,
173
- warn: e,
174
- error: e,
175
- group: e,
176
- groupCollapsed: e,
177
- groupEnd: e
178
- });
179
- }
180
- H++;
181
- }
182
- }
183
- function er() {
184
- {
185
- if (H--, H === 0) {
186
- var e = {
187
- configurable: !0,
188
- enumerable: !0,
189
- writable: !0
190
- };
191
- Object.defineProperties(console, {
192
- log: A({}, e, {
193
- value: ke
194
- }),
195
- info: A({}, e, {
196
- value: we
197
- }),
198
- warn: A({}, e, {
199
- value: ye
200
- }),
201
- error: A({}, e, {
202
- value: Re
203
- }),
204
- group: A({}, e, {
205
- value: be
206
- }),
207
- groupCollapsed: A({}, e, {
208
- value: _e
209
- }),
210
- groupEnd: A({}, e, {
211
- value: xe
212
- })
213
- });
214
- }
215
- H < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
216
- }
217
- }
218
- var oe = m.ReactCurrentDispatcher, ae;
219
- function J(e, r, t) {
220
- {
221
- if (ae === void 0)
222
- try {
223
- throw Error();
224
- } catch (u) {
225
- var a = u.stack.trim().match(/\n( *(at )?)/);
226
- ae = a && a[1] || "";
227
- }
228
- return `
229
- ` + ae + e;
230
- }
231
- }
232
- var ie = !1, K;
233
- {
234
- var rr = typeof WeakMap == "function" ? WeakMap : Map;
235
- K = new rr();
96
+ function n(e) {
97
+ return "" + e;
236
98
  }
237
- function Se(e, r) {
238
- if (!e || ie)
239
- return "";
240
- {
241
- var t = K.get(e);
242
- if (t !== void 0)
243
- return t;
244
- }
245
- var a;
246
- ie = !0;
247
- var u = Error.prepareStackTrace;
248
- Error.prepareStackTrace = void 0;
249
- var p;
250
- p = oe.current, oe.current = null, Qe();
99
+ function t(e) {
251
100
  try {
252
- if (r) {
253
- var l = function() {
254
- throw Error();
255
- };
256
- if (Object.defineProperty(l.prototype, "props", {
257
- set: function() {
258
- throw Error();
259
- }
260
- }), typeof Reflect == "object" && Reflect.construct) {
261
- try {
262
- Reflect.construct(l, []);
263
- } catch (W) {
264
- a = W;
265
- }
266
- Reflect.construct(e, [], l);
267
- } else {
268
- try {
269
- l.call();
270
- } catch (W) {
271
- a = W;
272
- }
273
- e.call(l.prototype);
274
- }
275
- } else {
276
- try {
277
- throw Error();
278
- } catch (W) {
279
- a = W;
280
- }
281
- e();
282
- }
283
- } catch (W) {
284
- if (W && a && typeof W.stack == "string") {
285
- for (var s = W.stack.split(`
286
- `), O = a.stack.split(`
287
- `), E = s.length - 1, w = O.length - 1; E >= 1 && w >= 0 && s[E] !== O[w]; )
288
- w--;
289
- for (; E >= 1 && w >= 0; E--, w--)
290
- if (s[E] !== O[w]) {
291
- if (E !== 1 || w !== 1)
292
- do
293
- if (E--, w--, w < 0 || s[E] !== O[w]) {
294
- var T = `
295
- ` + s[E].replace(" at new ", " at ");
296
- return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && K.set(e, T), T;
297
- }
298
- while (E >= 1 && w >= 0);
299
- break;
300
- }
301
- }
302
- } finally {
303
- ie = !1, oe.current = p, er(), Error.prepareStackTrace = u;
101
+ n(e);
102
+ var i = !1;
103
+ } catch (F) {
104
+ i = !0;
304
105
  }
305
- var Z = e ? e.displayName || e.name : "", $e = Z ? J(Z) : "";
306
- return typeof e == "function" && K.set(e, $e), $e;
307
- }
308
- function tr(e, r, t) {
309
- return Se(e, !1);
310
- }
311
- function nr(e) {
312
- var r = e.prototype;
313
- return !!(r && r.isReactComponent);
314
- }
315
- function X(e, r, t) {
316
- if (e == null)
317
- return "";
318
- if (typeof e == "function")
319
- return Se(e, nr(e));
320
- if (typeof e == "string")
321
- return J(e);
322
- switch (e) {
323
- case b:
324
- return J("Suspense");
325
- case y:
326
- return J("SuspenseList");
106
+ if (i) {
107
+ i = console;
108
+ var d = i.error, p = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
109
+ return d.call(
110
+ i,
111
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
112
+ p
113
+ ), n(e);
327
114
  }
328
- if (typeof e == "object")
329
- switch (e.$$typeof) {
330
- case d:
331
- return tr(e.render);
332
- case j:
333
- return X(e.type, r, t);
334
- case M: {
335
- var a = e, u = a._payload, p = a._init;
336
- try {
337
- return X(p(u), r, t);
338
- } catch (l) {
339
- }
340
- }
341
- }
342
- return "";
343
115
  }
344
- var Q = Object.prototype.hasOwnProperty, Oe = {}, Me = m.ReactDebugCurrentFrame;
345
- function ee(e) {
346
- if (e) {
347
- var r = e._owner, t = X(e.type, e._source, r ? r.type : null);
348
- Me.setExtraStackFrame(t);
349
- } else
350
- Me.setExtraStackFrame(null);
351
- }
352
- function or(e, r, t, a, u) {
353
- {
354
- var p = Function.call.bind(Q);
355
- for (var l in e)
356
- if (p(e, l)) {
357
- var s = void 0;
358
- try {
359
- if (typeof e[l] != "function") {
360
- var O = Error((a || "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`.");
361
- throw O.name = "Invariant Violation", O;
362
- }
363
- s = e[l](r, l, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
364
- } catch (E) {
365
- s = E;
366
- }
367
- s && !(s instanceof Error) && (ee(u), L("%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).", a || "React class", t, l, typeof s), ee(null)), s instanceof Error && !(s.message in Oe) && (Oe[s.message] = !0, ee(u), L("Failed %s type: %s", t, s.message), ee(null));
368
- }
369
- }
370
- }
371
- var ar = Array.isArray;
372
- function se(e) {
373
- return ar(e);
374
- }
375
- function ir(e) {
376
- {
377
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
378
- return t;
379
- }
380
- }
381
- function sr(e) {
116
+ function l(e) {
117
+ if (e === x) return "<>";
118
+ if (typeof e == "object" && e !== null && e.$$typeof === I)
119
+ return "<...>";
382
120
  try {
383
- return Te(e), !1;
384
- } catch (r) {
385
- return !0;
121
+ var i = r(e);
122
+ return i ? "<" + i + ">" : "<...>";
123
+ } catch (d) {
124
+ return "<...>";
386
125
  }
387
126
  }
388
- function Te(e) {
389
- return "" + e;
390
- }
391
- function Pe(e) {
392
- if (sr(e))
393
- return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(e)), Te(e);
127
+ function s() {
128
+ var e = B.A;
129
+ return e === null ? null : e.getOwner();
394
130
  }
395
- var U = m.ReactCurrentOwner, lr = {
396
- key: !0,
397
- ref: !0,
398
- __self: !0,
399
- __source: !0
400
- }, De, We, le;
401
- le = {};
402
- function cr(e) {
403
- if (Q.call(e, "ref")) {
404
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
405
- if (r && r.isReactWarning)
406
- return !1;
407
- }
408
- return e.ref !== void 0;
131
+ function o() {
132
+ return Error("react-stack-top-frame");
409
133
  }
410
- function ur(e) {
411
- if (Q.call(e, "key")) {
412
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
413
- if (r && r.isReactWarning)
414
- return !1;
134
+ function f(e) {
135
+ if (ee.call(e, "key")) {
136
+ var i = Object.getOwnPropertyDescriptor(e, "key").get;
137
+ if (i && i.isReactWarning) return !1;
415
138
  }
416
139
  return e.key !== void 0;
417
140
  }
418
- function fr(e, r) {
419
- if (typeof e.ref == "string" && U.current && r && U.current.stateNode !== r) {
420
- var t = D(U.current.type);
421
- le[t] || (L('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', D(U.current.type), e.ref), le[t] = !0);
422
- }
423
- }
424
- function dr(e, r) {
425
- {
426
- var t = function() {
427
- De || (De = !0, L("%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));
428
- };
429
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
430
- get: t,
431
- configurable: !0
432
- });
433
- }
434
- }
435
- function pr(e, r) {
436
- {
437
- var t = function() {
438
- We || (We = !0, L("%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));
439
- };
440
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
441
- get: t,
442
- configurable: !0
443
- });
141
+ function u(e, i) {
142
+ function d() {
143
+ re || (re = !0, console.error(
144
+ "%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)",
145
+ i
146
+ ));
444
147
  }
445
- }
446
- var vr = function(e, r, t, a, u, p, l) {
447
- var s = {
148
+ d.isReactWarning = !0, Object.defineProperty(e, "key", {
149
+ get: d,
150
+ configurable: !0
151
+ });
152
+ }
153
+ function C() {
154
+ var e = r(this.type);
155
+ return te[e] || (te[e] = !0, console.error(
156
+ "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."
157
+ )), e = this.props.ref, e !== void 0 ? e : null;
158
+ }
159
+ function w(e, i, d, p, F, G) {
160
+ var m = d.ref;
161
+ return e = {
448
162
  $$typeof: c,
449
163
  type: e,
450
- key: r,
451
- ref: t,
452
- props: l,
164
+ key: i,
165
+ props: d,
453
166
  _owner: p
454
- };
455
- return s._store = {}, Object.defineProperty(s._store, "validated", {
167
+ }, (m !== void 0 ? m : null) !== null ? Object.defineProperty(e, "ref", {
168
+ enumerable: !1,
169
+ get: C
170
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
456
171
  configurable: !1,
457
172
  enumerable: !1,
458
173
  writable: !0,
459
- value: !1
460
- }), Object.defineProperty(s, "_self", {
174
+ value: 0
175
+ }), Object.defineProperty(e, "_debugInfo", {
461
176
  configurable: !1,
462
177
  enumerable: !1,
463
- writable: !1,
464
- value: a
465
- }), Object.defineProperty(s, "_source", {
178
+ writable: !0,
179
+ value: null
180
+ }), Object.defineProperty(e, "_debugStack", {
466
181
  configurable: !1,
467
182
  enumerable: !1,
468
- writable: !1,
469
- value: u
470
- }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
471
- };
472
- function hr(e, r, t, a, u) {
473
- {
474
- var p, l = {}, s = null, O = null;
475
- t !== void 0 && (Pe(t), s = "" + t), ur(r) && (Pe(r.key), s = "" + r.key), cr(r) && (O = r.ref, fr(r, u));
476
- for (p in r)
477
- Q.call(r, p) && !lr.hasOwnProperty(p) && (l[p] = r[p]);
478
- if (e && e.defaultProps) {
479
- var E = e.defaultProps;
480
- for (p in E)
481
- l[p] === void 0 && (l[p] = E[p]);
482
- }
483
- if (s || O) {
484
- var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
485
- s && dr(l, w), O && pr(l, w);
486
- }
487
- return vr(e, s, O, u, a, U.current, l);
183
+ writable: !0,
184
+ value: F
185
+ }), Object.defineProperty(e, "_debugTask", {
186
+ configurable: !1,
187
+ enumerable: !1,
188
+ writable: !0,
189
+ value: G
190
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
191
+ }
192
+ function y(e, i, d, p, F, G) {
193
+ var m = i.children;
194
+ if (m !== void 0)
195
+ if (p)
196
+ if (me(m)) {
197
+ for (p = 0; p < m.length; p++)
198
+ _(m[p]);
199
+ Object.freeze && Object.freeze(m);
200
+ } else
201
+ console.error(
202
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
203
+ );
204
+ else _(m);
205
+ if (ee.call(i, "key")) {
206
+ m = r(e);
207
+ var T = Object.keys(i).filter(function(he) {
208
+ return he !== "key";
209
+ });
210
+ p = 0 < T.length ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}", ae[m + p] || (T = 0 < T.length ? "{" + T.join(": ..., ") + ": ...}" : "{}", console.error(
211
+ `A props object containing a "key" prop is being spread into JSX:
212
+ let props = %s;
213
+ <%s {...props} />
214
+ React keys must be passed directly to JSX without using spread:
215
+ let props = %s;
216
+ <%s key={someKey} {...props} />`,
217
+ p,
218
+ m,
219
+ T,
220
+ m
221
+ ), ae[m + p] = !0);
488
222
  }
489
- }
490
- var ce = m.ReactCurrentOwner, Fe = m.ReactDebugCurrentFrame;
491
- function I(e) {
492
- if (e) {
493
- var r = e._owner, t = X(e.type, e._source, r ? r.type : null);
494
- Fe.setExtraStackFrame(t);
495
- } else
496
- Fe.setExtraStackFrame(null);
497
- }
498
- var ue;
499
- ue = !1;
500
- function fe(e) {
223
+ if (m = null, d !== void 0 && (t(d), m = "" + d), f(i) && (t(i.key), m = "" + i.key), "key" in i) {
224
+ d = {};
225
+ for (var U in i)
226
+ U !== "key" && (d[U] = i[U]);
227
+ } else d = i;
228
+ return m && u(
229
+ d,
230
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
231
+ ), w(
232
+ e,
233
+ m,
234
+ d,
235
+ s(),
236
+ F,
237
+ G
238
+ );
239
+ }
240
+ function _(e) {
241
+ j(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === I && (e._payload.status === "fulfilled" ? j(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
242
+ }
243
+ function j(e) {
501
244
  return typeof e == "object" && e !== null && e.$$typeof === c;
502
245
  }
503
- function Ve() {
504
- {
505
- if (ce.current) {
506
- var e = D(ce.current.type);
507
- if (e)
508
- return `
509
-
510
- Check the render method of \`` + e + "`.";
511
- }
512
- return "";
513
- }
514
- }
515
- function gr(e) {
516
- {
517
- if (e !== void 0) {
518
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
519
- return `
520
-
521
- Check your code at ` + r + ":" + t + ".";
522
- }
523
- return "";
524
- }
525
- }
526
- var Ae = {};
527
- function Lr(e) {
528
- {
529
- var r = Ve();
530
- if (!r) {
531
- var t = typeof e == "string" ? e : e.displayName || e.name;
532
- t && (r = `
533
-
534
- Check the top-level render call using <` + t + ">.");
535
- }
536
- return r;
537
- }
538
- }
539
- function Ie(e, r) {
540
- {
541
- if (!e._store || e._store.validated || e.key != null)
542
- return;
543
- e._store.validated = !0;
544
- var t = Lr(r);
545
- if (Ae[t])
546
- return;
547
- Ae[t] = !0;
548
- var a = "";
549
- e && e._owner && e._owner !== ce.current && (a = " It was passed a child from " + D(e._owner.type) + "."), I(e), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), I(null);
550
- }
551
- }
552
- function Ze(e, r) {
553
- {
554
- if (typeof e != "object")
555
- return;
556
- if (se(e))
557
- for (var t = 0; t < e.length; t++) {
558
- var a = e[t];
559
- fe(a) && Ie(a, r);
560
- }
561
- else if (fe(e))
562
- e._store && (e._store.validated = !0);
563
- else if (e) {
564
- var u = P(e);
565
- if (typeof u == "function" && u !== e.entries)
566
- for (var p = u.call(e), l; !(l = p.next()).done; )
567
- fe(l.value) && Ie(l.value, r);
568
- }
569
- }
570
- }
571
- function mr(e) {
572
- {
573
- var r = e.type;
574
- if (r == null || typeof r == "string")
575
- return;
576
- var t;
577
- if (typeof r == "function")
578
- t = r.propTypes;
579
- else if (typeof r == "object" && (r.$$typeof === d || r.$$typeof === j))
580
- t = r.propTypes;
581
- else
582
- return;
583
- if (t) {
584
- var a = D(r);
585
- or(t, e.props, "prop", a, e);
586
- } else if (r.PropTypes !== void 0 && !ue) {
587
- ue = !0;
588
- var u = D(r);
589
- L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
590
- }
591
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
592
- }
593
- }
594
- function Cr(e) {
595
- {
596
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
597
- var a = r[t];
598
- if (a !== "children" && a !== "key") {
599
- I(e), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), I(null);
600
- break;
601
- }
602
- }
603
- e.ref !== null && (I(e), L("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
604
- }
605
- }
606
- function Ne(e, r, t, a, u, p) {
607
- {
608
- var l = Ke(e);
609
- if (!l) {
610
- var s = "";
611
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
612
- var O = gr(u);
613
- O ? s += O : s += Ve();
614
- var E;
615
- e === null ? E = "null" : se(e) ? E = "array" : e !== void 0 && e.$$typeof === c ? (E = "<" + (D(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, s);
616
- }
617
- var w = hr(e, r, t, u, p);
618
- if (w == null)
619
- return w;
620
- if (l) {
621
- var T = r.children;
622
- if (T !== void 0)
623
- if (a)
624
- if (se(T)) {
625
- for (var Z = 0; Z < T.length; Z++)
626
- Ze(T[Z], e);
627
- Object.freeze && Object.freeze(T);
628
- } else
629
- L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
630
- else
631
- Ze(T, e);
632
- }
633
- return e === f ? Cr(w) : mr(w), w;
246
+ var g = Ce, c = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), A = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), Le = Symbol.for("react.activity"), pe = Symbol.for("react.client.reference"), B = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, me = Array.isArray, z = console.createTask ? console.createTask : function() {
247
+ return null;
248
+ };
249
+ g = {
250
+ react_stack_bottom_frame: function(e) {
251
+ return e();
634
252
  }
635
- }
636
- function Er(e, r, t) {
637
- return Ne(e, r, t, !0);
638
- }
639
- function kr(e, r, t) {
640
- return Ne(e, r, t, !1);
641
- }
642
- var wr = kr, yr = Er;
643
- G.Fragment = f, G.jsx = wr, G.jsxs = yr;
644
- }()), G;
253
+ };
254
+ var re, te = {}, ne = g.react_stack_bottom_frame.bind(
255
+ g,
256
+ o
257
+ )(), oe = z(l(o)), ae = {};
258
+ D.Fragment = x, D.jsx = function(e, i, d) {
259
+ var p = 1e4 > B.recentlyCreatedOwnerStacks++;
260
+ return y(
261
+ e,
262
+ i,
263
+ d,
264
+ !1,
265
+ p ? Error("react-stack-top-frame") : ne,
266
+ p ? z(l(e)) : oe
267
+ );
268
+ }, D.jsxs = function(e, i, d) {
269
+ var p = 1e4 > B.recentlyCreatedOwnerStacks++;
270
+ return y(
271
+ e,
272
+ i,
273
+ d,
274
+ !0,
275
+ p ? Error("react-stack-top-frame") : ne,
276
+ p ? z(l(e)) : oe
277
+ );
278
+ };
279
+ })()), D;
645
280
  }
646
- (function(n) {
647
- process.env.NODE_ENV === "production" ? n.exports = Dr() : n.exports = Wr();
648
- })(me);
649
- const x = me.exports.jsx, ve = me.exports.jsxs, Kr = ({
650
- className: n,
651
- children: c,
652
- editing: i,
653
- vertical: f,
654
- stretch: R,
655
- style: v,
656
- editorStyle: C,
657
- onMove: g,
658
- onAlignChange: d,
659
- onExtend: b
281
+ var de;
282
+ function Se() {
283
+ return de || (de = 1, process.env.NODE_ENV === "production" ? Y.exports = _e() : Y.exports = Me()), Y.exports;
284
+ }
285
+ var h = Se();
286
+ const fe = ve({ editing: !1, isDragging: !1 }), K = () => we(fe), nr = ({
287
+ className: r,
288
+ children: n,
289
+ editing: t,
290
+ vertical: l,
291
+ stretch: s,
292
+ style: o,
293
+ editorStyle: f,
294
+ onMove: u,
295
+ onAlignChange: C,
296
+ onExtend: w
660
297
  }) => {
661
- const [y, j] = ge(!1), M = q(() => {
662
- j(!0);
663
- }, []), S = q((h, F) => {
664
- j(!1), !(!h.destination || h.reason !== "DROP" || h.destination.droppableId === h.source.droppableId && h.destination.index === h.source.index) && (g == null || g(h.draggableId, h.destination.droppableId, h.destination.index, h.source.droppableId, h.source.index));
665
- }, [g]);
666
- return /* @__PURE__ */ x("div", {
667
- className: ["reactalign", "wrapper", n, f && "vertical", R && "stretch"].filter(Boolean).join(" "),
668
- style: i ? C : v,
669
- children: /* @__PURE__ */ x(Mr, {
670
- onDragStart: M,
671
- onDragEnd: S,
672
- children: /* @__PURE__ */ x(Je.Provider, {
673
- value: {
674
- editing: !!i,
675
- onAlignChange: d,
676
- onExtend: b,
677
- isDragging: y
678
- },
679
- children: c
680
- })
681
- })
682
- });
683
- }, Xr = ({
684
- className: n,
685
- children: c,
686
- horizontal: i,
687
- stretch: f,
688
- fixedWidth: R,
689
- fixedHeight: v,
690
- style: C,
691
- editorStyle: g
298
+ const [y, _] = Q(!1), j = V(() => {
299
+ _(!0);
300
+ }, []), g = V(
301
+ (c, M) => {
302
+ _(!1), !(!c.destination || c.reason !== "DROP" || c.destination.droppableId === c.source.droppableId && c.destination.index === c.source.index) && (u == null || u(
303
+ c.draggableId,
304
+ c.destination.droppableId,
305
+ c.destination.index,
306
+ c.source.droppableId,
307
+ c.source.index
308
+ ));
309
+ },
310
+ [u]
311
+ );
312
+ return /* @__PURE__ */ h.jsx(
313
+ "div",
314
+ {
315
+ className: ["reactalign", "wrapper", r, l && "vertical", s && "stretch"].filter(Boolean).join(" "),
316
+ style: t ? f : o,
317
+ children: /* @__PURE__ */ h.jsx(Re, { onDragStart: j, onDragEnd: g, children: /* @__PURE__ */ h.jsx(fe.Provider, { value: { editing: !!t, onAlignChange: C, onExtend: w, isDragging: y }, children: n }) })
318
+ }
319
+ );
320
+ }, or = ({
321
+ className: r,
322
+ children: n,
323
+ horizontal: t,
324
+ stretch: l,
325
+ fixedWidth: s,
326
+ fixedHeight: o,
327
+ style: f,
328
+ editorStyle: u
692
329
  }) => {
693
- const {
694
- editing: d
695
- } = Le();
696
- return /* @__PURE__ */ x("div", {
697
- className: `section ${n} ${i ? "horizontal" : ""} ${f ? "stretch" : ""}`,
698
- style: k(k(k({}, d ? g : C), typeof v == "number" ? {
699
- height: v + "px"
700
- } : {}), typeof R == "number" ? {
701
- width: R + "px"
702
- } : {}),
703
- children: c
704
- });
705
- }, Fr = (n) => /* @__PURE__ */ o.createElement("svg", k({
706
- width: 24,
707
- height: 24,
708
- viewBox: "0 0 24 24",
709
- fill: "none",
710
- xmlns: "http://www.w3.org/2000/svg"
711
- }, n), /* @__PURE__ */ o.createElement("rect", {
712
- width: 24,
713
- height: 24,
714
- rx: 4,
715
- fill: "black",
716
- fillOpacity: 0.5
717
- }), /* @__PURE__ */ o.createElement("path", {
718
- fillRule: "evenodd",
719
- clipRule: "evenodd",
720
- d: "M19 19L5 19L5 5L19 5L19 19ZM20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20ZM16 14C16 14.5523 15.5523 15 15 15C14.4477 15 14 14.5523 14 14L14 10C14 9.44772 14.4477 9 15 9C15.5523 9 16 9.44771 16 10L16 14ZM13 14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14L11 10C11 9.44771 11.4477 9 12 9C12.5523 9 13 9.44771 13 10L13 14ZM9 15C9.55228 15 10 14.5523 10 14L10 10C10 9.44771 9.55228 9 9 9C8.44771 9 8 9.44771 8 10L8 14C8 14.5523 8.44772 15 9 15Z",
721
- fill: "currentColor"
722
- })), Vr = (n) => /* @__PURE__ */ o.createElement("svg", k({
723
- width: 24,
724
- height: 24,
725
- viewBox: "0 0 24 24",
726
- fill: "none",
727
- xmlns: "http://www.w3.org/2000/svg"
728
- }, n), /* @__PURE__ */ o.createElement("rect", {
729
- y: 24,
730
- width: 24,
731
- height: 24,
732
- rx: 4,
733
- transform: "rotate(-90 0 24)",
734
- fill: "black",
735
- fillOpacity: 0.5
736
- }), /* @__PURE__ */ o.createElement("path", {
737
- fillRule: "evenodd",
738
- clipRule: "evenodd",
739
- d: "M19 5L19 19L5 19L5 5L19 5ZM20 4L20 5L20 19L20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4ZM14 8C14.5523 8 15 8.44772 15 9C15 9.55228 14.5523 10 14 10L10 10C9.44772 10 9 9.55229 9 9C9 8.44772 9.44771 8 10 8L14 8ZM14 11C14.5523 11 15 11.4477 15 12C15 12.5523 14.5523 13 14 13L10 13C9.44772 13 9 12.5523 9 12C9 11.4477 9.44771 11 10 11L14 11ZM15 15C15 14.4477 14.5523 14 14 14L10 14C9.44772 14 9 14.4477 9 15C9 15.5523 9.44772 16 10 16L14 16C14.5523 16 15 15.5523 15 15Z",
740
- fill: "currentColor"
741
- })), Ar = (n) => /* @__PURE__ */ o.createElement("svg", k({
742
- width: 24,
743
- height: 24,
744
- viewBox: "0 0 24 24",
745
- fill: "none",
746
- xmlns: "http://www.w3.org/2000/svg"
747
- }, n), /* @__PURE__ */ o.createElement("rect", {
748
- width: 24,
749
- height: 24,
750
- rx: 4,
751
- fill: "black",
752
- fillOpacity: 0.5
753
- }), /* @__PURE__ */ o.createElement("path", {
754
- fillRule: "evenodd",
755
- clipRule: "evenodd",
756
- d: "M19 19L5 19L5 5L19 5L19 19ZM20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20ZM18 14C18 14.5523 17.5523 15 17 15C16.4477 15 16 14.5523 16 14L16 10C16 9.44772 16.4477 9 17 9C17.5523 9 18 9.44771 18 10L18 14ZM15 14C15 14.5523 14.5523 15 14 15C13.4477 15 13 14.5523 13 14L13 10C13 9.44772 13.4477 9 14 9C14.5523 9 15 9.44772 15 10L15 14ZM11 15C11.5523 15 12 14.5523 12 14L12 10C12 9.44772 11.5523 9 11 9C10.4477 9 10 9.44772 10 10L10 14C10 14.5523 10.4477 15 11 15Z",
757
- fill: "currentColor"
758
- })), Ir = (n) => /* @__PURE__ */ o.createElement("svg", k({
759
- width: 24,
760
- height: 24,
761
- viewBox: "0 0 24 24",
762
- fill: "none",
763
- xmlns: "http://www.w3.org/2000/svg"
764
- }, n), /* @__PURE__ */ o.createElement("rect", {
765
- y: 24,
766
- width: 24,
767
- height: 24,
768
- rx: 4,
769
- transform: "rotate(-90 0 24)",
770
- fill: "black",
771
- fillOpacity: 0.5
772
- }), /* @__PURE__ */ o.createElement("path", {
773
- fillRule: "evenodd",
774
- clipRule: "evenodd",
775
- d: "M5 19L5 5L19 5L19 19L5 19ZM4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20L19 20L5 20L4 20ZM10 18C9.44772 18 9 17.5523 9 17C9 16.4477 9.44772 16 10 16L14 16C14.5523 16 15 16.4477 15 17C15 17.5523 14.5523 18 14 18L10 18ZM10 15C9.44772 15 9 14.5523 9 14C9 13.4477 9.44771 13 10 13L14 13C14.5523 13 15 13.4477 15 14C15 14.5523 14.5523 15 14 15L10 15ZM9 11C9 11.5523 9.44771 12 10 12L14 12C14.5523 12 15 11.5523 15 11C15 10.4477 14.5523 10 14 10L10 10C9.44771 10 9 10.4477 9 11Z",
776
- fill: "currentColor"
777
- })), Zr = (n) => /* @__PURE__ */ o.createElement("svg", k({
778
- width: 24,
779
- height: 24,
780
- viewBox: "0 0 24 24",
781
- fill: "none",
782
- xmlns: "http://www.w3.org/2000/svg"
783
- }, n), /* @__PURE__ */ o.createElement("rect", {
784
- width: 24,
785
- height: 24,
786
- rx: 4,
787
- fill: "black",
788
- fillOpacity: 0.5
789
- }), /* @__PURE__ */ o.createElement("path", {
790
- fillRule: "evenodd",
791
- clipRule: "evenodd",
792
- d: "M5 5H19V19H5V5ZM4 4H5H19H20V5V19V20H19H5H4V19V5V4ZM6 10C6 9.44772 6.44772 9 7 9C7.55228 9 8 9.44772 8 10V14C8 14.5523 7.55228 15 7 15C6.44772 15 6 14.5523 6 14V10ZM9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10V14C11 14.5523 10.5523 15 10 15C9.44772 15 9 14.5523 9 14V10ZM13 9C12.4477 9 12 9.44772 12 10V14C12 14.5523 12.4477 15 13 15C13.5523 15 14 14.5523 14 14V10C14 9.44772 13.5523 9 13 9Z",
793
- fill: "currentColor"
794
- })), Nr = (n) => /* @__PURE__ */ o.createElement("svg", k({
795
- width: 24,
796
- height: 24,
797
- viewBox: "0 0 24 24",
798
- fill: "none",
799
- xmlns: "http://www.w3.org/2000/svg"
800
- }, n), /* @__PURE__ */ o.createElement("rect", {
801
- y: 24,
802
- width: 24,
803
- height: 24,
804
- rx: 4,
805
- transform: "rotate(-90 0 24)",
806
- fill: "black",
807
- fillOpacity: 0.5
808
- }), /* @__PURE__ */ o.createElement("path", {
809
- fillRule: "evenodd",
810
- clipRule: "evenodd",
811
- d: "M19 5L19 19L5 19L5 5L19 5ZM20 4L20 5L20 19L20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4ZM14 6C14.5523 6 15 6.44772 15 7C15 7.55229 14.5523 8 14 8L10 8C9.44772 8 9 7.55229 9 7C9 6.44772 9.44772 6 10 6L14 6ZM14 9C14.5523 9 15 9.44772 15 10C15 10.5523 14.5523 11 14 11L10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9L14 9ZM15 13C15 12.4477 14.5523 12 14 12L10 12C9.44772 12 9 12.4477 9 13C9 13.5523 9.44772 14 10 14L14 14C14.5523 14 15 13.5523 15 13Z",
812
- fill: "currentColor"
813
- })), $r = (n) => /* @__PURE__ */ o.createElement("svg", k({
814
- width: 24,
815
- height: 24,
816
- viewBox: "0 0 24 24",
817
- fill: "none",
818
- xmlns: "http://www.w3.org/2000/svg"
819
- }, n), /* @__PURE__ */ o.createElement("path", {
820
- d: "M0.999999 20.25L1 3.75",
821
- stroke: "currentColor",
822
- strokeWidth: 1.5,
823
- strokeLinecap: "round",
824
- strokeLinejoin: "round"
825
- }), /* @__PURE__ */ o.createElement("path", {
826
- d: "M23 20.25L23 3.75",
827
- stroke: "currentColor",
828
- strokeWidth: 1.5,
829
- strokeLinecap: "round",
830
- strokeLinejoin: "round"
831
- }), /* @__PURE__ */ o.createElement("path", {
832
- d: "M12 12L20.5 12",
833
- stroke: "currentColor",
834
- strokeWidth: 1.5,
835
- strokeLinecap: "round",
836
- strokeLinejoin: "round"
837
- }), /* @__PURE__ */ o.createElement("path", {
838
- d: "M17.5 9L20.5 12L17.5 15",
839
- stroke: "currentColor",
840
- strokeWidth: 1.5,
841
- strokeLinecap: "round",
842
- strokeLinejoin: "round"
843
- }), /* @__PURE__ */ o.createElement("path", {
844
- d: "M12 12L4 12",
845
- stroke: "currentColor",
846
- strokeWidth: 1.5,
847
- strokeLinecap: "round",
848
- strokeLinejoin: "round"
849
- }), /* @__PURE__ */ o.createElement("path", {
850
- d: "M7 15L4 12L7 9",
851
- stroke: "currentColor",
852
- strokeWidth: 1.5,
853
- strokeLinecap: "round",
854
- strokeLinejoin: "round"
855
- })), Yr = (n) => /* @__PURE__ */ o.createElement("svg", k({
856
- width: 24,
857
- height: 24,
858
- viewBox: "0 0 24 24",
859
- fill: "none",
860
- xmlns: "http://www.w3.org/2000/svg"
861
- }, n), /* @__PURE__ */ o.createElement("path", {
862
- d: "M1 12L6 12",
863
- stroke: "currentColor",
864
- strokeWidth: 1.5,
865
- strokeLinecap: "round",
866
- strokeLinejoin: "round"
867
- }), /* @__PURE__ */ o.createElement("path", {
868
- d: "M3 9L6 12L3 15",
869
- stroke: "currentColor",
870
- strokeWidth: 1.5,
871
- strokeLinecap: "round",
872
- strokeLinejoin: "round"
873
- }), /* @__PURE__ */ o.createElement("path", {
874
- d: "M23 12L18 12",
875
- stroke: "currentColor",
876
- strokeWidth: 1.5,
877
- strokeLinecap: "round",
878
- strokeLinejoin: "round"
879
- }), /* @__PURE__ */ o.createElement("path", {
880
- d: "M21 15L18 12L21 9",
881
- stroke: "currentColor",
882
- strokeWidth: 1.5,
883
- strokeLinecap: "round",
884
- strokeLinejoin: "round"
885
- }), /* @__PURE__ */ o.createElement("rect", {
886
- x: 8.75,
887
- y: 2.75,
888
- width: 6.5,
889
- height: 18.5,
890
- rx: 1.25,
891
- stroke: "currentColor",
892
- strokeWidth: 1.5
893
- })), Br = (n) => /* @__PURE__ */ o.createElement("svg", k({
894
- width: 24,
895
- height: 24,
896
- viewBox: "0 0 24 24",
897
- fill: "none",
898
- xmlns: "http://www.w3.org/2000/svg"
899
- }, n), /* @__PURE__ */ o.createElement("path", {
900
- d: "M14.6514 19.0977L11.9998 21.7493L9.34814 19.0977",
901
- stroke: "currentColor",
902
- strokeWidth: 1.5,
903
- strokeLinecap: "round",
904
- strokeLinejoin: "round"
905
- }), /* @__PURE__ */ o.createElement("path", {
906
- d: "M12 15V21.75",
907
- stroke: "currentColor",
908
- strokeWidth: 1.5,
909
- strokeLinecap: "round",
910
- strokeLinejoin: "round"
911
- }), /* @__PURE__ */ o.createElement("path", {
912
- d: "M9.34814 4.90163L11.9998 2.25L14.6514 4.90163",
913
- stroke: "currentColor",
914
- strokeWidth: 1.5,
915
- strokeLinecap: "round",
916
- strokeLinejoin: "round"
917
- }), /* @__PURE__ */ o.createElement("path", {
918
- d: "M12 9V2.25",
919
- stroke: "currentColor",
920
- strokeWidth: 1.5,
921
- strokeLinecap: "round",
922
- strokeLinejoin: "round"
923
- }), /* @__PURE__ */ o.createElement("path", {
924
- d: "M4.90163 14.6509L2.25 11.9993L4.90163 9.34766",
925
- stroke: "currentColor",
926
- strokeWidth: 1.5,
927
- strokeLinecap: "round",
928
- strokeLinejoin: "round"
929
- }), /* @__PURE__ */ o.createElement("path", {
930
- d: "M9 12H2.25",
931
- stroke: "currentColor",
932
- strokeWidth: 1.5,
933
- strokeLinecap: "round",
934
- strokeLinejoin: "round"
935
- }), /* @__PURE__ */ o.createElement("path", {
936
- d: "M19.0981 9.34766L21.7498 11.9993L19.0981 14.6509",
937
- stroke: "currentColor",
938
- strokeWidth: 1.5,
939
- strokeLinecap: "round",
940
- strokeLinejoin: "round"
941
- }), /* @__PURE__ */ o.createElement("path", {
942
- d: "M15 12H21.75",
943
- stroke: "currentColor",
944
- strokeWidth: 1.5,
945
- strokeLinecap: "round",
946
- strokeLinejoin: "round"
947
- })), Hr = (n) => /* @__PURE__ */ o.createElement("svg", k({
948
- width: 24,
949
- height: 24,
950
- viewBox: "0 0 24 24",
951
- fill: "none",
952
- xmlns: "http://www.w3.org/2000/svg"
953
- }, n), /* @__PURE__ */ o.createElement("path", {
954
- d: "M3.75 0.999999L20.25 1",
955
- stroke: "currentColor",
956
- strokeWidth: 1.5,
957
- strokeLinecap: "round",
958
- strokeLinejoin: "round"
959
- }), /* @__PURE__ */ o.createElement("path", {
960
- d: "M3.75 23L20.25 23",
961
- stroke: "currentColor",
962
- strokeWidth: 1.5,
963
- strokeLinecap: "round",
964
- strokeLinejoin: "round"
965
- }), /* @__PURE__ */ o.createElement("path", {
966
- d: "M12 12L12 20.5",
967
- stroke: "currentColor",
968
- strokeWidth: 1.5,
969
- strokeLinecap: "round",
970
- strokeLinejoin: "round"
971
- }), /* @__PURE__ */ o.createElement("path", {
972
- d: "M15 17.5L12 20.5L9 17.5",
973
- stroke: "currentColor",
974
- strokeWidth: 1.5,
975
- strokeLinecap: "round",
976
- strokeLinejoin: "round"
977
- }), /* @__PURE__ */ o.createElement("path", {
978
- d: "M12 12L12 4",
979
- stroke: "currentColor",
980
- strokeWidth: 1.5,
981
- strokeLinecap: "round",
982
- strokeLinejoin: "round"
983
- }), /* @__PURE__ */ o.createElement("path", {
984
- d: "M9 7L12 4L15 7",
985
- stroke: "currentColor",
986
- strokeWidth: 1.5,
987
- strokeLinecap: "round",
988
- strokeLinejoin: "round"
989
- })), Ur = (n) => /* @__PURE__ */ o.createElement("svg", k({
990
- width: 24,
991
- height: 24,
992
- viewBox: "0 0 24 24",
993
- fill: "none",
994
- xmlns: "http://www.w3.org/2000/svg"
995
- }, n), /* @__PURE__ */ o.createElement("path", {
996
- d: "M12 1L12 6",
997
- stroke: "currentColor",
998
- strokeWidth: 1.5,
999
- strokeLinecap: "round",
1000
- strokeLinejoin: "round"
1001
- }), /* @__PURE__ */ o.createElement("path", {
1002
- d: "M15 3L12 6L9 3",
1003
- stroke: "currentColor",
1004
- strokeWidth: 1.5,
1005
- strokeLinecap: "round",
1006
- strokeLinejoin: "round"
1007
- }), /* @__PURE__ */ o.createElement("path", {
1008
- d: "M12 23L12 18",
1009
- stroke: "currentColor",
1010
- strokeWidth: 1.5,
1011
- strokeLinecap: "round",
1012
- strokeLinejoin: "round"
1013
- }), /* @__PURE__ */ o.createElement("path", {
1014
- d: "M9 21L12 18L15 21",
1015
- stroke: "currentColor",
1016
- strokeWidth: 1.5,
1017
- strokeLinecap: "round",
1018
- strokeLinejoin: "round"
1019
- }), /* @__PURE__ */ o.createElement("rect", {
1020
- x: 21.25,
1021
- y: 8.75,
1022
- width: 6.5,
1023
- height: 18.5,
1024
- rx: 1.25,
1025
- transform: "rotate(90 21.25 8.75)",
1026
- stroke: "currentColor",
1027
- strokeWidth: 1.5
1028
- })), zr = {
1029
- horizontalExtend: $r,
1030
- horizontalNormal: Yr,
1031
- verticalExtend: Hr,
1032
- verticalNormal: Ur,
1033
- moveArrows: Br,
1034
- alignStart: Zr,
1035
- alignCenter: Fr,
1036
- alignEnd: Ar,
1037
- alignStartV: Nr,
1038
- alignCenterV: Vr,
1039
- alignEndV: Ir
1040
- }, he = ({
330
+ const { editing: C } = K();
331
+ return /* @__PURE__ */ h.jsx(
332
+ "div",
333
+ {
334
+ className: `section ${r} ${t ? "horizontal" : ""} ${l ? "stretch" : ""}`,
335
+ style: L(L(L({}, C ? u : f), typeof o == "number" ? {
336
+ height: o + "px"
337
+ } : {}), typeof s == "number" ? {
338
+ width: s + "px"
339
+ } : {}),
340
+ children: n
341
+ }
342
+ );
343
+ }, Te = (s, l) => {
344
+ var o = s, {
345
+ title: r,
346
+ titleId: n
347
+ } = o, t = v(o, [
348
+ "title",
349
+ "titleId"
350
+ ]);
351
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("rect", { width: 24, height: 24, rx: 4, fill: "black", fillOpacity: 0.5 }), /* @__PURE__ */ a.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19 19L5 19L5 5L19 5L19 19ZM20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20ZM16 14C16 14.5523 15.5523 15 15 15C14.4477 15 14 14.5523 14 14L14 10C14 9.44772 14.4477 9 15 9C15.5523 9 16 9.44771 16 10L16 14ZM13 14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14L11 10C11 9.44771 11.4477 9 12 9C12.5523 9 13 9.44771 13 10L13 14ZM9 15C9.55228 15 10 14.5523 10 14L10 10C10 9.44771 9.55228 9 9 9C8.44771 9 8 9.44771 8 10L8 14C8 14.5523 8.44772 15 9 15Z", fill: "currentColor" }));
352
+ }, Oe = b(Te), Ae = (s, l) => {
353
+ var o = s, {
354
+ title: r,
355
+ titleId: n
356
+ } = o, t = v(o, [
357
+ "title",
358
+ "titleId"
359
+ ]);
360
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("rect", { y: 24, width: 24, height: 24, rx: 4, transform: "rotate(-90 0 24)", fill: "black", fillOpacity: 0.5 }), /* @__PURE__ */ a.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19 5L19 19L5 19L5 5L19 5ZM20 4L20 5L20 19L20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4ZM14 8C14.5523 8 15 8.44772 15 9C15 9.55228 14.5523 10 14 10L10 10C9.44772 10 9 9.55229 9 9C9 8.44772 9.44771 8 10 8L14 8ZM14 11C14.5523 11 15 11.4477 15 12C15 12.5523 14.5523 13 14 13L10 13C9.44772 13 9 12.5523 9 12C9 11.4477 9.44771 11 10 11L14 11ZM15 15C15 14.4477 14.5523 14 14 14L10 14C9.44772 14 9 14.4477 9 15C9 15.5523 9.44772 16 10 16L14 16C14.5523 16 15 15.5523 15 15Z", fill: "currentColor" }));
361
+ }, Pe = b(Ae), We = (s, l) => {
362
+ var o = s, {
363
+ title: r,
364
+ titleId: n
365
+ } = o, t = v(o, [
366
+ "title",
367
+ "titleId"
368
+ ]);
369
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("rect", { width: 24, height: 24, rx: 4, fill: "black", fillOpacity: 0.5 }), /* @__PURE__ */ a.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19 19L5 19L5 5L19 5L19 19ZM20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20ZM18 14C18 14.5523 17.5523 15 17 15C16.4477 15 16 14.5523 16 14L16 10C16 9.44772 16.4477 9 17 9C17.5523 9 18 9.44771 18 10L18 14ZM15 14C15 14.5523 14.5523 15 14 15C13.4477 15 13 14.5523 13 14L13 10C13 9.44772 13.4477 9 14 9C14.5523 9 15 9.44772 15 10L15 14ZM11 15C11.5523 15 12 14.5523 12 14L12 10C12 9.44772 11.5523 9 11 9C10.4477 9 10 9.44772 10 10L10 14C10 14.5523 10.4477 15 11 15Z", fill: "currentColor" }));
370
+ }, Ne = b(We), De = (s, l) => {
371
+ var o = s, {
372
+ title: r,
373
+ titleId: n
374
+ } = o, t = v(o, [
375
+ "title",
376
+ "titleId"
377
+ ]);
378
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("rect", { y: 24, width: 24, height: 24, rx: 4, transform: "rotate(-90 0 24)", fill: "black", fillOpacity: 0.5 }), /* @__PURE__ */ a.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 19L5 5L19 5L19 19L5 19ZM4 20L4 19L4 5L4 4L5 4L19 4L20 4L20 5L20 19L20 20L19 20L5 20L4 20ZM10 18C9.44772 18 9 17.5523 9 17C9 16.4477 9.44772 16 10 16L14 16C14.5523 16 15 16.4477 15 17C15 17.5523 14.5523 18 14 18L10 18ZM10 15C9.44772 15 9 14.5523 9 14C9 13.4477 9.44771 13 10 13L14 13C14.5523 13 15 13.4477 15 14C15 14.5523 14.5523 15 14 15L10 15ZM9 11C9 11.5523 9.44771 12 10 12L14 12C14.5523 12 15 11.5523 15 11C15 10.4477 14.5523 10 14 10L10 10C9.44771 10 9 10.4477 9 11Z", fill: "currentColor" }));
379
+ }, Ve = b(De), Fe = (s, l) => {
380
+ var o = s, {
381
+ title: r,
382
+ titleId: n
383
+ } = o, t = v(o, [
384
+ "title",
385
+ "titleId"
386
+ ]);
387
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("rect", { width: 24, height: 24, rx: 4, fill: "black", fillOpacity: 0.5 }), /* @__PURE__ */ a.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 5H19V19H5V5ZM4 4H5H19H20V5V19V20H19H5H4V19V5V4ZM6 10C6 9.44772 6.44772 9 7 9C7.55228 9 8 9.44772 8 10V14C8 14.5523 7.55228 15 7 15C6.44772 15 6 14.5523 6 14V10ZM9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10V14C11 14.5523 10.5523 15 10 15C9.44772 15 9 14.5523 9 14V10ZM13 9C12.4477 9 12 9.44772 12 10V14C12 14.5523 12.4477 15 13 15C13.5523 15 14 14.5523 14 14V10C14 9.44772 13.5523 9 13 9Z", fill: "currentColor" }));
388
+ }, Ze = b(Fe), $e = (s, l) => {
389
+ var o = s, {
390
+ title: r,
391
+ titleId: n
392
+ } = o, t = v(o, [
393
+ "title",
394
+ "titleId"
395
+ ]);
396
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("rect", { y: 24, width: 24, height: 24, rx: 4, transform: "rotate(-90 0 24)", fill: "black", fillOpacity: 0.5 }), /* @__PURE__ */ a.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19 5L19 19L5 19L5 5L19 5ZM20 4L20 5L20 19L20 20L19 20L5 20L4 20L4 19L4 5L4 4L5 4L19 4L20 4ZM14 6C14.5523 6 15 6.44772 15 7C15 7.55229 14.5523 8 14 8L10 8C9.44772 8 9 7.55229 9 7C9 6.44772 9.44772 6 10 6L14 6ZM14 9C14.5523 9 15 9.44772 15 10C15 10.5523 14.5523 11 14 11L10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9L14 9ZM15 13C15 12.4477 14.5523 12 14 12L10 12C9.44772 12 9 12.4477 9 13C9 13.5523 9.44772 14 10 14L14 14C14.5523 14 15 13.5523 15 13Z", fill: "currentColor" }));
397
+ }, Ye = b($e), He = (s, l) => {
398
+ var o = s, {
399
+ title: r,
400
+ titleId: n
401
+ } = o, t = v(o, [
402
+ "title",
403
+ "titleId"
404
+ ]);
405
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("path", { d: "M0.999999 20.25L1 3.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M23 20.25L23 3.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M12 12L20.5 12", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M17.5 9L20.5 12L17.5 15", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M12 12L4 12", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M7 15L4 12L7 9", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
406
+ }, Ie = b(He), Be = (s, l) => {
407
+ var o = s, {
408
+ title: r,
409
+ titleId: n
410
+ } = o, t = v(o, [
411
+ "title",
412
+ "titleId"
413
+ ]);
414
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("path", { d: "M1 12L6 12", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M3 9L6 12L3 15", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M23 12L18 12", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M21 15L18 12L21 9", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("rect", { x: 8.75, y: 2.75, width: 6.5, height: 18.5, rx: 1.25, stroke: "currentColor", strokeWidth: 1.5 }));
415
+ }, ze = b(Be), Ge = (s, l) => {
416
+ var o = s, {
417
+ title: r,
418
+ titleId: n
419
+ } = o, t = v(o, [
420
+ "title",
421
+ "titleId"
422
+ ]);
423
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("path", { d: "M14.6514 19.0977L11.9998 21.7493L9.34814 19.0977", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M12 15V21.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M9.34814 4.90163L11.9998 2.25L14.6514 4.90163", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M12 9V2.25", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M4.90163 14.6509L2.25 11.9993L4.90163 9.34766", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M9 12H2.25", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M19.0981 9.34766L21.7498 11.9993L19.0981 14.6509", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M15 12H21.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
424
+ }, Ue = b(Ge), qe = (s, l) => {
425
+ var o = s, {
426
+ title: r,
427
+ titleId: n
428
+ } = o, t = v(o, [
429
+ "title",
430
+ "titleId"
431
+ ]);
432
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("path", { d: "M3.75 0.999999L20.25 1", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M3.75 23L20.25 23", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M12 12L12 20.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M15 17.5L12 20.5L9 17.5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M12 12L12 4", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M9 7L12 4L15 7", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
433
+ }, Je = b(qe), Xe = (s, l) => {
434
+ var o = s, {
435
+ title: r,
436
+ titleId: n
437
+ } = o, t = v(o, [
438
+ "title",
439
+ "titleId"
440
+ ]);
441
+ return /* @__PURE__ */ a.createElement("svg", L({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, "aria-labelledby": n }, t), r ? /* @__PURE__ */ a.createElement("title", { id: n }, r) : null, /* @__PURE__ */ a.createElement("path", { d: "M12 1L12 6", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M15 3L12 6L9 3", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M12 23L12 18", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("path", { d: "M9 21L12 18L15 21", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ a.createElement("rect", { x: 21.25, y: 8.75, width: 6.5, height: 18.5, rx: 1.25, transform: "rotate(90 21.25 8.75)", stroke: "currentColor", strokeWidth: 1.5 }));
442
+ }, Qe = b(Xe), Ke = {
443
+ horizontalExtend: Ie,
444
+ horizontalNormal: ze,
445
+ verticalExtend: Je,
446
+ verticalNormal: Qe,
447
+ moveArrows: Ue,
448
+ alignStart: Ze,
449
+ alignCenter: Oe,
450
+ alignEnd: Ne,
451
+ alignStartV: Ye,
452
+ alignCenterV: Pe,
453
+ alignEndV: Ve
454
+ }, X = ({ className: r, name: n, onClick: t }) => {
455
+ const l = Ke[n];
456
+ return /* @__PURE__ */ h.jsx(l, { className: r, onClick: t });
457
+ }, J = ["start", "centered", "end"];
458
+ function ar({
459
+ id: r,
1041
460
  className: n,
1042
- name: c,
1043
- onClick: i
1044
- }) => {
1045
- const f = zr[c];
1046
- return /* @__PURE__ */ x(f, {
1047
- className: n,
1048
- onClick: i
1049
- });
1050
- }, pe = ["start", "centered", "end"];
1051
- function Qr({
1052
- id: n,
1053
- className: c,
1054
- vertical: i,
1055
- stretch: f,
1056
- middle: R,
1057
- bottom: v,
1058
- disabled: C,
1059
- align: g,
1060
- realignable: d,
1061
- children: b,
461
+ vertical: t,
462
+ stretch: l,
463
+ middle: s,
464
+ bottom: o,
465
+ disabled: f,
466
+ align: u,
467
+ realignable: C,
468
+ children: w,
469
+ // Picky stuff
1062
470
  style: y,
1063
- editorStyle: j,
1064
- iconColor: M = "#FFFFFF",
1065
- onAlignChange: S,
1066
- onClick: h
471
+ editorStyle: _,
472
+ iconColor: j = "#FFFFFF",
473
+ onAlignChange: g,
474
+ onClick: c
1067
475
  }) {
1068
- const [F, P] = ge(!1);
1069
- Sr(() => {
1070
- const _ = requestAnimationFrame(() => P(!0));
476
+ const [M, x] = Q(!1);
477
+ xe(() => {
478
+ const E = requestAnimationFrame(() => x(!0));
1071
479
  return () => {
1072
- cancelAnimationFrame(_), P(!1);
480
+ cancelAnimationFrame(E), x(!1);
1073
481
  };
1074
482
  }, []);
1075
- const {
1076
- editing: m,
1077
- onAlignChange: L
1078
- } = Le(), N = q(() => {
1079
- if (!d)
1080
- return;
1081
- const _ = pe[(g ? pe.indexOf(g) + 1 : 0) % pe.length];
1082
- S == null || S(_), L == null || L(n, _);
1083
- }, [g, d, S, L, n]), $ = q(() => {
1084
- !m || h == null || h(n);
1085
- }, [n, m, h]), Y = ne(() => ({
1086
- position: "absolute",
1087
- left: i ? v ? 0 : void 0 : "50%",
1088
- right: i ? v ? void 0 : 0 : "50%",
1089
- bottom: !i && !v ? 0 : i ? "50%" : void 0,
1090
- top: i ? "50%" : v ? 0 : void 0,
1091
- opacity: !C && m && d ? 1 : 0,
1092
- pointerEvents: !C && m && d ? "auto" : "none",
1093
- transition: "all 0.5s ease-in-out"
1094
- }), [i, v, C, m, d]), V = ne(() => de.map(b, (_) => Or(_, {
1095
- bottom: v,
1096
- vertical: i
1097
- })), [b, v, i]);
1098
- return F ? /* @__PURE__ */ x(Tr, {
1099
- droppableId: n,
1100
- direction: i ? "vertical" : "horizontal",
1101
- isDropDisabled: C,
1102
- children: (_, B) => /* @__PURE__ */ ve("div", te(k({
1103
- ref: _.innerRef
1104
- }, _.droppableProps), {
1105
- className: [c, "area", f && "stretch", R && "middle", v && "bottom", g === "centered" ? "just-centered" : g === "end" ? "just-end" : "start", m ? "area-transition-in" : "area-transition-out"].filter(Boolean).join(" "),
1106
- style: k({
1107
- flexDirection: i ? "column" : "row",
1108
- minHeight: !de.count(b) && !m ? "0px" : "26px",
1109
- minWidth: !de.count(b) && !m ? "0px" : "46px",
1110
- opacity: B.isDraggingOver ? 0.8 : 1
1111
- }, m ? j : y),
1112
- onClick: $,
1113
- children: [V, _.placeholder, /* @__PURE__ */ x("div", {
1114
- style: Y,
1115
- children: /* @__PURE__ */ x("div", {
1116
- onClick: N,
1117
- style: {
1118
- cursor: "pointer",
1119
- color: M
1120
- },
1121
- children: /* @__PURE__ */ x(he, {
1122
- name: g === "centered" ? i ? "alignCenterV" : "alignCenter" : g === "end" ? i ? "alignEndV" : "alignEnd" : i ? "alignStartV" : "alignStart"
1123
- })
483
+ const { editing: k, onAlignChange: R } = K(), O = V(() => {
484
+ if (!C) return;
485
+ const E = J[(u ? J.indexOf(u) + 1 : 0) % J.length];
486
+ g == null || g(E), R == null || R(r, E);
487
+ }, [u, C, g, R, r]), A = V(() => {
488
+ k && (c == null || c(r));
489
+ }, [r, k, c]), P = H(
490
+ () => ({
491
+ position: "absolute",
492
+ left: t ? o ? 0 : void 0 : "50%",
493
+ right: t ? o ? void 0 : 0 : "50%",
494
+ bottom: !t && !o ? 0 : t ? "50%" : void 0,
495
+ top: t ? "50%" : o ? 0 : void 0,
496
+ opacity: !f && k && C ? 1 : 0,
497
+ pointerEvents: !f && k && C ? "auto" : "none",
498
+ transition: "all 0.5s ease-in-out"
499
+ }),
500
+ [t, o, f, k, C]
501
+ ), S = H(
502
+ () => q.map(
503
+ w,
504
+ (E) => be(E, {
505
+ bottom: o,
506
+ vertical: t
507
+ })
508
+ ),
509
+ [w, o, t]
510
+ );
511
+ return M ? /* @__PURE__ */ h.jsx(
512
+ je,
513
+ {
514
+ droppableId: r,
515
+ direction: t ? "vertical" : "horizontal",
516
+ isDropDisabled: f,
517
+ children: (E, W) => /* @__PURE__ */ h.jsxs(
518
+ "div",
519
+ $(L({
520
+ ref: E.innerRef
521
+ }, E.droppableProps), {
522
+ className: [
523
+ n,
524
+ "area",
525
+ l && "stretch",
526
+ s && "middle",
527
+ o && "bottom",
528
+ u === "centered" ? "just-centered" : u === "end" ? "just-end" : "start",
529
+ k ? "area-transition-in" : "area-transition-out"
530
+ ].filter(Boolean).join(" "),
531
+ style: L({
532
+ flexDirection: t ? "column" : "row",
533
+ minHeight: !q.count(w) && !k ? "0px" : "26px",
534
+ minWidth: !q.count(w) && !k ? "0px" : "46px",
535
+ opacity: W.isDraggingOver ? 0.8 : 1
536
+ }, k ? _ : y),
537
+ onClick: A,
538
+ children: [
539
+ S,
540
+ E.placeholder,
541
+ /* @__PURE__ */ h.jsx("div", { style: P, children: /* @__PURE__ */ h.jsx(
542
+ "div",
543
+ {
544
+ onClick: O,
545
+ style: {
546
+ cursor: "pointer",
547
+ color: j
548
+ },
549
+ children: /* @__PURE__ */ h.jsx(
550
+ X,
551
+ {
552
+ name: u === "centered" ? t ? "alignCenterV" : "alignCenter" : u === "end" ? t ? "alignEndV" : "alignEnd" : t ? "alignStartV" : "alignStart"
553
+ }
554
+ )
555
+ }
556
+ ) })
557
+ ]
1124
558
  })
1125
- })]
1126
- }))
1127
- }) : null;
559
+ )
560
+ }
561
+ ) : null;
1128
562
  }
1129
- function et(j) {
1130
- var M = j, {
1131
- className: n,
1132
- children: c,
1133
- id: i,
1134
- index: f,
1135
- extendable: R = !1,
1136
- extended: v = !1,
1137
- disabled: C = !1,
1138
- style: g,
1139
- editorStyle: d,
1140
- iconColor: b = "rgb(255, 255, 255)"
1141
- } = M, y = Ue(M, [
563
+ function lr(_) {
564
+ var j = _, {
565
+ className: r,
566
+ children: n,
567
+ id: t,
568
+ index: l,
569
+ extendable: s = !1,
570
+ extended: o = !1,
571
+ disabled: f = !1,
572
+ style: u,
573
+ editorStyle: C,
574
+ iconColor: w = "rgb(255, 255, 255)"
575
+ } = j, y = v(j, [
1142
576
  "className",
1143
577
  "children",
1144
578
  "id",
@@ -1146,90 +580,81 @@ function et(j) {
1146
580
  "extendable",
1147
581
  "extended",
1148
582
  "disabled",
583
+ // Picky stuff.
1149
584
  "style",
1150
585
  "editorStyle",
1151
586
  "iconColor"
1152
587
  ]);
1153
- const {
1154
- vertical: S
1155
- } = y, {
1156
- editing: h,
1157
- isDragging: F,
1158
- onExtend: P
1159
- } = Le(), [m, L] = ge(!1), N = q(() => {
1160
- !R || (L(!1), P == null || P(i, !v));
1161
- }, [R, P, v, i]), $ = ne(() => ({
1162
- alignItems: "start",
1163
- float: "left",
1164
- color: b
1165
- }), [b]), Y = ne(() => ({
1166
- id: i,
1167
- editing: h,
1168
- isDragging: F,
1169
- isHovered: m,
1170
- extended: v,
1171
- extendable: R,
1172
- disabled: C,
1173
- index: f
1174
- }), [C, h, R, v, i, f, F, m]);
1175
- return /* @__PURE__ */ x(Pr, {
1176
- draggableId: i,
1177
- index: f,
1178
- isDragDisabled: C,
1179
- children: (V, _) => /* @__PURE__ */ x("div", te(k({
1180
- ref: V.innerRef
1181
- }, V.draggableProps), {
1182
- className: `${n} item`,
1183
- style: k(k({
1184
- flex: v && !_.isDragging ? "auto" : void 0,
1185
- opacity: _.isDragging ? 0.5 : 1
1186
- }, h ? d : g), V.draggableProps.style),
1187
- children: /* @__PURE__ */ ve("div", {
1188
- style: {
1189
- position: "relative",
1190
- minHeight: m && !C ? "35px" : void 0,
1191
- width: !S && v ? "100%" : void 0,
1192
- minWidth: m && !C ? R ? "70px" : "35px" : void 0,
1193
- height: S && v ? "100%" : void 0
1194
- },
1195
- onMouseEnter: () => h && L(!0),
1196
- onMouseLeave: () => h && L(!1),
1197
- onClick: (B) => B.stopPropagation(),
1198
- children: [typeof c == "function" ? c(Y) : c, /* @__PURE__ */ x("div", {
1199
- className: "overlay",
588
+ const { vertical: g } = y, { editing: c, isDragging: M, onExtend: x } = K(), [k, R] = Q(!1), O = V(() => {
589
+ s && (R(!1), x == null || x(t, !o));
590
+ }, [s, x, o, t]), A = H(
591
+ () => ({
592
+ alignItems: "start",
593
+ float: "left",
594
+ color: w
595
+ }),
596
+ [w]
597
+ ), P = H(
598
+ () => ({
599
+ id: t,
600
+ editing: c,
601
+ isDragging: M,
602
+ isHovered: k,
603
+ extended: o,
604
+ extendable: s,
605
+ disabled: f,
606
+ index: l
607
+ }),
608
+ [f, c, s, o, t, l, M, k]
609
+ );
610
+ return /* @__PURE__ */ h.jsx(ye, { draggableId: t, index: l, isDragDisabled: f, children: (S, E) => /* @__PURE__ */ h.jsx(
611
+ "div",
612
+ $(L({
613
+ ref: S.innerRef
614
+ }, S.draggableProps), {
615
+ className: `${r} item`,
616
+ style: L(L({
617
+ flex: o && !E.isDragging ? "auto" : void 0,
618
+ opacity: E.isDragging ? 0.5 : 1
619
+ }, c ? C : u), S.draggableProps.style),
620
+ children: /* @__PURE__ */ h.jsxs(
621
+ "div",
622
+ {
1200
623
  style: {
1201
- display: !C && h && m && (_.isDragging || !F) ? "block" : "none"
624
+ position: "relative",
625
+ minHeight: k && !f ? "35px" : void 0,
626
+ width: !g && o ? "100%" : void 0,
627
+ minWidth: k && !f ? s ? "70px" : "35px" : void 0,
628
+ height: g && o ? "100%" : void 0
1202
629
  },
1203
- children: /* @__PURE__ */ ve("div", {
1204
- className: "overlay-buttons",
1205
- style: $,
1206
- children: [/* @__PURE__ */ x("div", te(k({}, V.dragHandleProps), {
1207
- style: {
1208
- cursor: "grab"
1209
- },
1210
- children: /* @__PURE__ */ x(he, {
1211
- name: "moveArrows"
1212
- })
1213
- })), R && /* @__PURE__ */ x("div", {
1214
- style: {
1215
- cursor: "pointer",
1216
- marginLeft: "8px"
1217
- },
1218
- onClick: N,
1219
- children: /* @__PURE__ */ x(he, {
1220
- name: S ? "verticalExtend" : "horizontalExtend"
1221
- })
1222
- })]
1223
- })
1224
- })]
1225
- })
1226
- }))
1227
- });
630
+ onMouseEnter: () => c && R(!0),
631
+ onMouseLeave: () => c && R(!1),
632
+ onClick: (W) => W.stopPropagation(),
633
+ children: [
634
+ typeof n == "function" ? n(P) : n,
635
+ /* @__PURE__ */ h.jsx(
636
+ "div",
637
+ {
638
+ className: "overlay",
639
+ style: {
640
+ display: !f && c && k && (E.isDragging || !M) ? "block" : "none"
641
+ },
642
+ children: /* @__PURE__ */ h.jsxs("div", { className: "overlay-buttons", style: A, children: [
643
+ /* @__PURE__ */ h.jsx("div", $(L({}, S.dragHandleProps), { style: { cursor: "grab" }, children: /* @__PURE__ */ h.jsx(X, { name: "moveArrows" }) })),
644
+ s && /* @__PURE__ */ h.jsx("div", { style: { cursor: "pointer", marginLeft: "8px" }, onClick: O, children: /* @__PURE__ */ h.jsx(X, { name: g ? "verticalExtend" : "horizontalExtend" }) })
645
+ ] })
646
+ }
647
+ )
648
+ ]
649
+ }
650
+ )
651
+ })
652
+ ) });
1228
653
  }
1229
654
  export {
1230
- Qr as GridArea,
1231
- et as GridItem,
1232
- Xr as GridSection,
1233
- Kr as GridWrapper,
1234
- he as Icon
655
+ ar as GridArea,
656
+ lr as GridItem,
657
+ or as GridSection,
658
+ nr as GridWrapper,
659
+ X as Icon
1235
660
  };