react-align 2.2.1 → 2.2.3

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