react-align 2.0.5 → 2.1.0

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