@springmicro/page 0.7.19 → 0.7.21

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.
Files changed (70) hide show
  1. package/dist/{ArrowDownward-BBFybLel.js → ArrowDownward-BnRDy_XN.js} +25 -25
  2. package/dist/AutoField-Bj2Tndkn.js +6 -0
  3. package/dist/{AutoFields-C68bZIjJ.js → AutoFields-CJ1-dOUd.js} +8 -8
  4. package/dist/{AutoForm-CyisvBU7.js → AutoForm-V3OOPRU5.js} +109 -92
  5. package/dist/{CarouselPlugin-swMZbFLU.js → CarouselPlugin-CKHfCNZs.js} +1 -1
  6. package/dist/{Code-WyZGt6uJ.js → Code-BR8nO_AH.js} +3 -3
  7. package/dist/{CodeSnippet-FdJk-mBV.js → CodeSnippet-CqaOU28k.js} +481 -490
  8. package/dist/{ColorPicker-BCt_07hn.js → ColorPicker-9X0b3Zso.js} +7 -7
  9. package/dist/{ColorPickerField-BkW_vVyz.js → ColorPickerField-CnYhRzSp.js} +4 -4
  10. package/dist/{ContactFormExample-Dmm6SO5g.js → ContactFormExample-DDeNrwaC.js} +1 -1
  11. package/dist/{Controls-ChaYC_F2.js → Controls-9KvRVhx0.js} +9 -9
  12. package/dist/{CropLandscape-C2pqoTvV.js → CropLandscape-Cbtv7MJl.js} +3 -3
  13. package/dist/{DailyMotion-ByRMGcPP.js → DailyMotion-DjJdDKL8.js} +2 -2
  14. package/dist/{Error-Dsr70u_Q.js → Error-CmSLUcbF.js} +3 -3
  15. package/dist/{Facebook-DY4TPgmC.js → Facebook-BlVtRpfs.js} +26 -26
  16. package/dist/{FilePlayer-DgWSZMO9.js → FilePlayer-BqfUb-ez.js} +2 -2
  17. package/dist/{FormatAlignCenter-DwkuzF2q.js → FormatAlignCenter-YRUxB1uR.js} +3 -3
  18. package/dist/{FormatAlignJustify-bqureh8H.js → FormatAlignJustify-0mBurus5.js} +3 -3
  19. package/dist/{FormatAlignLeft-DmHjcrBw.js → FormatAlignLeft-D3umhEh4.js} +3 -3
  20. package/dist/{FormatAlignRight-5IeRHAy_.js → FormatAlignRight-C8aUVdcO.js} +3 -3
  21. package/dist/{FormatBold-C--DiqO6.js → FormatBold-Cwr0KkDu.js} +3 -3
  22. package/dist/{FormatIndentDecrease-BfoGxe6e.js → FormatIndentDecrease-DCoXJAUS.js} +3 -3
  23. package/dist/{FormatIndentIncrease-Dg0zEWbS.js → FormatIndentIncrease-CSBrd8LP.js} +3 -3
  24. package/dist/{FormatItalic-Dr4TA8Gq.js → FormatItalic-SMUhtiRS.js} +3 -3
  25. package/dist/{FormatListBulleted-CVgyjLmg.js → FormatListBulleted-DhQ4rL9v.js} +3 -3
  26. package/dist/{FormatListNumbered-BHgYyWvD.js → FormatListNumbered-tuf8eRiT.js} +3 -3
  27. package/dist/{FormatQuote-BliiLOab.js → FormatQuote-fKgnvpqf.js} +3 -3
  28. package/dist/{FormatUnderlined-CFdmrbsn.js → FormatUnderlined-DBm9l7oC.js} +3 -3
  29. package/dist/{HtmlToSlate-CR02E1J1.js → HtmlToSlate-D6kWoqWJ.js} +3 -3
  30. package/dist/{ImageControls-CHw3IdvT.js → ImageControls-bO-uYWWd.js} +1 -1
  31. package/dist/{ImageUpload-DPNg4z4S.js → ImageUpload-7rfRcqoC.js} +19 -19
  32. package/dist/{Kaltura-CM3qyOON.js → Kaltura-qFuUWco0.js} +2 -2
  33. package/dist/{Landscape-guK6QtVP.js → Landscape-Du3gd8mR.js} +3 -3
  34. package/dist/{Link-BK24pTZa.js → Link-C4T0iHNP.js} +3 -3
  35. package/dist/{LongTextField-BQP1mWax.js → LongTextField-C1VUD6dW.js} +10 -10
  36. package/dist/{Looks3-x-E_Cel-.js → Looks3-nhMJssLL.js} +3 -3
  37. package/dist/{Looks4-CQBNufZ8.js → Looks4-Cq9PmdlL.js} +3 -3
  38. package/dist/{Looks5-Cu6OuOc-.js → Looks5-Bd9jrCuc.js} +3 -3
  39. package/dist/{Looks6-DhMsWwkZ.js → Looks6-BVr3sdCD.js} +3 -3
  40. package/dist/{LooksOne-CHxgmX-s.js → LooksOne-BYmFze2M.js} +3 -3
  41. package/dist/{LooksTwo-hKbmwJ7I.js → LooksTwo-DXo9Y57C.js} +3 -3
  42. package/dist/{Mixcloud-DYKoYs7M.js → Mixcloud-B79eQ1Fe.js} +10 -10
  43. package/dist/{Mux-BcIw0c8s.js → Mux-BFNcghx9.js} +2 -2
  44. package/dist/{Panorama-BhWpHcDd.js → Panorama-BxdkQz0w.js} +3 -3
  45. package/dist/{Preview-CxahswBt.js → Preview-DRmMS4jS.js} +7 -7
  46. package/dist/{Remove-Dj6dIvbk.js → Remove-DBYfX9h_.js} +3 -3
  47. package/dist/{Slider-D8UczuuR.js → Slider-BU95hnz8.js} +62 -62
  48. package/dist/{SoundCloud-WWm5U08w.js → SoundCloud-CbYRMFRI.js} +14 -14
  49. package/dist/SpacerResizable-BlWB6wi5.js +1537 -0
  50. package/dist/{Streamable-jvCj723H.js → Streamable-Decfivez.js} +2 -2
  51. package/dist/{Subject-BjQeSBNr.js → Subject-CIuruH0k.js} +3 -3
  52. package/dist/{TablePlugin-Cm834mDF.js → TablePlugin-DPbe5d0p.js} +1 -1
  53. package/dist/{Twitch-D1qB6Zei.js → Twitch-DdVI_RRp.js} +6 -6
  54. package/dist/{Vidyard-D0RfxYqE.js → Vidyard-oboYO-Il.js} +2 -2
  55. package/dist/{Vimeo-WmVi19ym.js → Vimeo-Bm49A6tp.js} +2 -2
  56. package/dist/{Wistia-C4jsMxVz.js → Wistia-DykYWgBF.js} +4 -4
  57. package/dist/{YouTube-C6mW1rrV.js → YouTube-DKZzbMf_.js} +4 -4
  58. package/dist/forEach-D_oorS9P.js +8 -0
  59. package/dist/{index-CdfOIHyB.js → index-BivlsO2j.js} +16 -16
  60. package/dist/{index-B4fFBBmm.js → index-C5VhRobO.js} +12 -12
  61. package/dist/{index-CahS4ecH.js → index-CcvdOXK9.js} +39197 -39227
  62. package/dist/index.js +1 -1
  63. package/dist/index.umd.cjs +408 -399
  64. package/dist/{listUtils-6dc59Hwz.js → listUtils-DbC_YZRh.js} +10 -10
  65. package/dist/{react-katex-ChGehxId.js → react-katex-Ie-Pnt6_.js} +2427 -2501
  66. package/dist/style.css +1 -1
  67. package/package.json +4 -4
  68. package/dist/AutoField-CahqCCD2.js +0 -6
  69. package/dist/SpacerResizable-DByW7hvQ.js +0 -1507
  70. package/dist/forEach-_623SsSU.js +0 -8
@@ -0,0 +1,1537 @@
1
+ import { v as G, j as A } from "./index-CcvdOXK9.js";
2
+ import F, { useState as Bt, useEffect as qt } from "react";
3
+ import Rt from "react-dom";
4
+ var ut = { exports: {} }, B = {}, K = { exports: {} }, Mt = {}, at = { exports: {} };
5
+ function Ct(t) {
6
+ var e, n, r = "";
7
+ if (typeof t == "string" || typeof t == "number") r += t;
8
+ else if (typeof t == "object") if (Array.isArray(t)) {
9
+ var o = t.length;
10
+ for (e = 0; e < o; e++) t[e] && (n = Ct(t[e])) && (r && (r += " "), r += n);
11
+ } else for (n in t) t[n] && (r && (r += " "), r += n);
12
+ return r;
13
+ }
14
+ function wt() {
15
+ for (var t, e, n = 0, r = "", o = arguments.length; n < o; n++) (t = arguments[n]) && (e = Ct(t)) && (r && (r += " "), r += e);
16
+ return r;
17
+ }
18
+ at.exports = wt, at.exports.clsx = wt;
19
+ var It = at.exports, y = {}, N = {};
20
+ Object.defineProperty(N, "__esModule", {
21
+ value: !0
22
+ });
23
+ N.dontSetMe = Qt;
24
+ N.findInArray = Vt;
25
+ N.int = Jt;
26
+ N.isFunction = Gt;
27
+ N.isNum = Kt;
28
+ function Vt(t, e) {
29
+ for (let n = 0, r = t.length; n < r; n++)
30
+ if (e.apply(e, [t[n], n, t])) return t[n];
31
+ }
32
+ function Gt(t) {
33
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Function]";
34
+ }
35
+ function Kt(t) {
36
+ return typeof t == "number" && !isNaN(t);
37
+ }
38
+ function Jt(t) {
39
+ return parseInt(t, 10);
40
+ }
41
+ function Qt(t, e, n) {
42
+ if (t[e])
43
+ return new Error(`Invalid prop ${e} passed to ${n} - do not set this, set it on the child.`);
44
+ }
45
+ var W = {};
46
+ Object.defineProperty(W, "__esModule", {
47
+ value: !0
48
+ });
49
+ W.browserPrefixToKey = Tt;
50
+ W.browserPrefixToStyle = Zt;
51
+ W.default = void 0;
52
+ W.getPrefix = Et;
53
+ const et = ["Moz", "Webkit", "O", "ms"];
54
+ function Et() {
55
+ var n, r;
56
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
57
+ if (typeof window > "u") return "";
58
+ const e = (r = (n = window.document) == null ? void 0 : n.documentElement) == null ? void 0 : r.style;
59
+ if (!e || t in e) return "";
60
+ for (let o = 0; o < et.length; o++)
61
+ if (Tt(t, et[o]) in e) return et[o];
62
+ return "";
63
+ }
64
+ function Tt(t, e) {
65
+ return e ? `${e}${te(t)}` : t;
66
+ }
67
+ function Zt(t, e) {
68
+ return e ? `-${e.toLowerCase()}-${t}` : t;
69
+ }
70
+ function te(t) {
71
+ let e = "", n = !0;
72
+ for (let r = 0; r < t.length; r++)
73
+ n ? (e += t[r].toUpperCase(), n = !1) : t[r] === "-" ? n = !0 : e += t[r];
74
+ return e;
75
+ }
76
+ W.default = Et();
77
+ Object.defineProperty(y, "__esModule", {
78
+ value: !0
79
+ });
80
+ y.addClassName = $t;
81
+ y.addEvent = ne;
82
+ y.addUserSelectStyles = pe;
83
+ y.createCSSTransform = ue;
84
+ y.createSVGTransform = ce;
85
+ y.getTouch = fe;
86
+ y.getTouchIdentifier = de;
87
+ y.getTranslation = ct;
88
+ y.innerHeight = ae;
89
+ y.innerWidth = ie;
90
+ y.matchesSelector = Nt;
91
+ y.matchesSelectorAndParentsTo = ee;
92
+ y.offsetXYFromParent = le;
93
+ y.outerHeight = oe;
94
+ y.outerWidth = se;
95
+ y.removeClassName = kt;
96
+ y.removeEvent = re;
97
+ y.scheduleRemoveUserSelectStyles = he;
98
+ var P = N, Dt = zt(W);
99
+ function zt(t, e) {
100
+ if (typeof WeakMap == "function") var n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
101
+ return (zt = function(o, l) {
102
+ if (!l && o && o.__esModule) return o;
103
+ var a, s, i = { __proto__: null, default: o };
104
+ if (o === null || typeof o != "object" && typeof o != "function") return i;
105
+ if (a = l ? r : n) {
106
+ if (a.has(o)) return a.get(o);
107
+ a.set(o, i);
108
+ }
109
+ for (const u in o) u !== "default" && {}.hasOwnProperty.call(o, u) && ((s = (a = Object.defineProperty) && Object.getOwnPropertyDescriptor(o, u)) && (s.get || s.set) ? a(i, u, s) : i[u] = o[u]);
110
+ return i;
111
+ })(t, e);
112
+ }
113
+ let I = "";
114
+ function Nt(t, e) {
115
+ return I || (I = (0, P.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(n) {
116
+ return (0, P.isFunction)(t[n]);
117
+ })), (0, P.isFunction)(t[I]) ? t[I](e) : !1;
118
+ }
119
+ function ee(t, e, n) {
120
+ let r = t;
121
+ do {
122
+ if (Nt(r, e)) return !0;
123
+ if (r === n) return !1;
124
+ r = r.parentNode;
125
+ } while (r);
126
+ return !1;
127
+ }
128
+ function ne(t, e, n, r) {
129
+ if (!t) return;
130
+ const o = {
131
+ capture: !0,
132
+ ...r
133
+ };
134
+ t.addEventListener ? t.addEventListener(e, n, o) : t.attachEvent ? t.attachEvent("on" + e, n) : t["on" + e] = n;
135
+ }
136
+ function re(t, e, n, r) {
137
+ if (!t) return;
138
+ const o = {
139
+ capture: !0,
140
+ ...r
141
+ };
142
+ t.removeEventListener ? t.removeEventListener(e, n, o) : t.detachEvent ? t.detachEvent("on" + e, n) : t["on" + e] = null;
143
+ }
144
+ function oe(t) {
145
+ let e = t.clientHeight;
146
+ const n = t.ownerDocument.defaultView.getComputedStyle(t);
147
+ return e += (0, P.int)(n.borderTopWidth), e += (0, P.int)(n.borderBottomWidth), e;
148
+ }
149
+ function se(t) {
150
+ let e = t.clientWidth;
151
+ const n = t.ownerDocument.defaultView.getComputedStyle(t);
152
+ return e += (0, P.int)(n.borderLeftWidth), e += (0, P.int)(n.borderRightWidth), e;
153
+ }
154
+ function ae(t) {
155
+ let e = t.clientHeight;
156
+ const n = t.ownerDocument.defaultView.getComputedStyle(t);
157
+ return e -= (0, P.int)(n.paddingTop), e -= (0, P.int)(n.paddingBottom), e;
158
+ }
159
+ function ie(t) {
160
+ let e = t.clientWidth;
161
+ const n = t.ownerDocument.defaultView.getComputedStyle(t);
162
+ return e -= (0, P.int)(n.paddingLeft), e -= (0, P.int)(n.paddingRight), e;
163
+ }
164
+ function le(t, e, n) {
165
+ const o = e === e.ownerDocument.body ? {
166
+ left: 0,
167
+ top: 0
168
+ } : e.getBoundingClientRect(), l = (t.clientX + e.scrollLeft - o.left) / n, a = (t.clientY + e.scrollTop - o.top) / n;
169
+ return {
170
+ x: l,
171
+ y: a
172
+ };
173
+ }
174
+ function ue(t, e) {
175
+ const n = ct(t, e, "px");
176
+ return {
177
+ [(0, Dt.browserPrefixToKey)("transform", Dt.default)]: n
178
+ };
179
+ }
180
+ function ce(t, e) {
181
+ return ct(t, e, "");
182
+ }
183
+ function ct(t, e, n) {
184
+ let {
185
+ x: r,
186
+ y: o
187
+ } = t, l = `translate(${r}${n},${o}${n})`;
188
+ if (e) {
189
+ const a = `${typeof e.x == "string" ? e.x : e.x + n}`, s = `${typeof e.y == "string" ? e.y : e.y + n}`;
190
+ l = `translate(${a}, ${s})` + l;
191
+ }
192
+ return l;
193
+ }
194
+ function fe(t, e) {
195
+ return t.targetTouches && (0, P.findInArray)(t.targetTouches, (n) => e === n.identifier) || t.changedTouches && (0, P.findInArray)(t.changedTouches, (n) => e === n.identifier);
196
+ }
197
+ function de(t) {
198
+ if (t.targetTouches && t.targetTouches[0]) return t.targetTouches[0].identifier;
199
+ if (t.changedTouches && t.changedTouches[0]) return t.changedTouches[0].identifier;
200
+ }
201
+ function pe(t) {
202
+ if (!t) return;
203
+ let e = t.getElementById("react-draggable-style-el");
204
+ e || (e = t.createElement("style"), e.type = "text/css", e.id = "react-draggable-style-el", e.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
205
+ `, e.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
206
+ `, t.getElementsByTagName("head")[0].appendChild(e)), t.body && $t(t.body, "react-draggable-transparent-selection");
207
+ }
208
+ function he(t) {
209
+ window.requestAnimationFrame ? window.requestAnimationFrame(() => {
210
+ Ot(t);
211
+ }) : Ot(t);
212
+ }
213
+ function Ot(t) {
214
+ if (t)
215
+ try {
216
+ if (t.body && kt(t.body, "react-draggable-transparent-selection"), t.selection)
217
+ t.selection.empty();
218
+ else {
219
+ const e = (t.defaultView || window).getSelection();
220
+ e && e.type !== "Caret" && e.removeAllRanges();
221
+ }
222
+ } catch {
223
+ }
224
+ }
225
+ function $t(t, e) {
226
+ t.classList ? t.classList.add(e) : t.className.match(new RegExp(`(?:^|\\s)${e}(?!\\S)`)) || (t.className += ` ${e}`);
227
+ }
228
+ function kt(t, e) {
229
+ t.classList ? t.classList.remove(e) : t.className = t.className.replace(new RegExp(`(?:^|\\s)${e}(?!\\S)`, "g"), "");
230
+ }
231
+ var $ = {};
232
+ Object.defineProperty($, "__esModule", {
233
+ value: !0
234
+ });
235
+ $.canDragX = ye;
236
+ $.canDragY = be;
237
+ $.createCoreData = Se;
238
+ $.createDraggableData = we;
239
+ $.getBoundPosition = ge;
240
+ $.getControlPosition = ve;
241
+ $.snapToGrid = me;
242
+ var O = N, U = y;
243
+ function ge(t, e, n) {
244
+ if (!t.props.bounds) return [e, n];
245
+ let {
246
+ bounds: r
247
+ } = t.props;
248
+ r = typeof r == "string" ? r : De(r);
249
+ const o = ft(t);
250
+ if (typeof r == "string") {
251
+ const {
252
+ ownerDocument: l
253
+ } = o, a = l.defaultView;
254
+ let s;
255
+ if (r === "parent" ? s = o.parentNode : s = o.getRootNode().querySelector(r), !(s instanceof a.HTMLElement))
256
+ throw new Error('Bounds selector "' + r + '" could not find an element.');
257
+ const i = s, u = a.getComputedStyle(o), b = a.getComputedStyle(i);
258
+ r = {
259
+ left: -o.offsetLeft + (0, O.int)(b.paddingLeft) + (0, O.int)(u.marginLeft),
260
+ top: -o.offsetTop + (0, O.int)(b.paddingTop) + (0, O.int)(u.marginTop),
261
+ right: (0, U.innerWidth)(i) - (0, U.outerWidth)(o) - o.offsetLeft + (0, O.int)(b.paddingRight) - (0, O.int)(u.marginRight),
262
+ bottom: (0, U.innerHeight)(i) - (0, U.outerHeight)(o) - o.offsetTop + (0, O.int)(b.paddingBottom) - (0, O.int)(u.marginBottom)
263
+ };
264
+ }
265
+ return (0, O.isNum)(r.right) && (e = Math.min(e, r.right)), (0, O.isNum)(r.bottom) && (n = Math.min(n, r.bottom)), (0, O.isNum)(r.left) && (e = Math.max(e, r.left)), (0, O.isNum)(r.top) && (n = Math.max(n, r.top)), [e, n];
266
+ }
267
+ function me(t, e, n) {
268
+ const r = Math.round(e / t[0]) * t[0], o = Math.round(n / t[1]) * t[1];
269
+ return [r, o];
270
+ }
271
+ function ye(t) {
272
+ return t.props.axis === "both" || t.props.axis === "x";
273
+ }
274
+ function be(t) {
275
+ return t.props.axis === "both" || t.props.axis === "y";
276
+ }
277
+ function ve(t, e, n) {
278
+ const r = typeof e == "number" ? (0, U.getTouch)(t, e) : null;
279
+ if (typeof e == "number" && !r) return null;
280
+ const o = ft(n), l = n.props.offsetParent || o.offsetParent || o.ownerDocument.body;
281
+ return (0, U.offsetXYFromParent)(r || t, l, n.props.scale);
282
+ }
283
+ function Se(t, e, n) {
284
+ const r = !(0, O.isNum)(t.lastX), o = ft(t);
285
+ return r ? {
286
+ node: o,
287
+ deltaX: 0,
288
+ deltaY: 0,
289
+ lastX: e,
290
+ lastY: n,
291
+ x: e,
292
+ y: n
293
+ } : {
294
+ node: o,
295
+ deltaX: e - t.lastX,
296
+ deltaY: n - t.lastY,
297
+ lastX: t.lastX,
298
+ lastY: t.lastY,
299
+ x: e,
300
+ y: n
301
+ };
302
+ }
303
+ function we(t, e) {
304
+ const n = t.props.scale;
305
+ return {
306
+ node: e.node,
307
+ x: t.state.x + e.deltaX / n,
308
+ y: t.state.y + e.deltaY / n,
309
+ deltaX: e.deltaX / n,
310
+ deltaY: e.deltaY / n,
311
+ lastX: t.state.x,
312
+ lastY: t.state.y
313
+ };
314
+ }
315
+ function De(t) {
316
+ return {
317
+ left: t.left,
318
+ top: t.top,
319
+ right: t.right,
320
+ bottom: t.bottom
321
+ };
322
+ }
323
+ function ft(t) {
324
+ const e = t.findDOMNode();
325
+ if (!e)
326
+ throw new Error("<DraggableCore>: Unmounted during event!");
327
+ return e;
328
+ }
329
+ var J = {}, Q = {};
330
+ Object.defineProperty(Q, "__esModule", {
331
+ value: !0
332
+ });
333
+ Q.default = Oe;
334
+ function Oe() {
335
+ }
336
+ Object.defineProperty(J, "__esModule", {
337
+ value: !0
338
+ });
339
+ J.default = void 0;
340
+ var nt = Ht(F), w = dt(G), Pe = dt(Rt), v = y, k = $, rt = N, L = dt(Q);
341
+ function dt(t) {
342
+ return t && t.__esModule ? t : { default: t };
343
+ }
344
+ function Ht(t, e) {
345
+ if (typeof WeakMap == "function") var n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
346
+ return (Ht = function(o, l) {
347
+ if (!l && o && o.__esModule) return o;
348
+ var a, s, i = { __proto__: null, default: o };
349
+ if (o === null || typeof o != "object" && typeof o != "function") return i;
350
+ if (a = l ? r : n) {
351
+ if (a.has(o)) return a.get(o);
352
+ a.set(o, i);
353
+ }
354
+ for (const u in o) u !== "default" && {}.hasOwnProperty.call(o, u) && ((s = (a = Object.defineProperty) && Object.getOwnPropertyDescriptor(o, u)) && (s.get || s.set) ? a(i, u, s) : i[u] = o[u]);
355
+ return i;
356
+ })(t, e);
357
+ }
358
+ function D(t, e, n) {
359
+ return (e = _e(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
360
+ }
361
+ function _e(t) {
362
+ var e = xe(t, "string");
363
+ return typeof e == "symbol" ? e : e + "";
364
+ }
365
+ function xe(t, e) {
366
+ if (typeof t != "object" || !t) return t;
367
+ var n = t[Symbol.toPrimitive];
368
+ if (n !== void 0) {
369
+ var r = n.call(t, e);
370
+ if (typeof r != "object") return r;
371
+ throw new TypeError("@@toPrimitive must return a primitive value.");
372
+ }
373
+ return (e === "string" ? String : Number)(t);
374
+ }
375
+ const E = {
376
+ touch: {
377
+ start: "touchstart",
378
+ move: "touchmove",
379
+ stop: "touchend"
380
+ },
381
+ mouse: {
382
+ start: "mousedown",
383
+ move: "mousemove",
384
+ stop: "mouseup"
385
+ }
386
+ };
387
+ let H = E.mouse, Z = class extends nt.Component {
388
+ constructor() {
389
+ super(...arguments), D(this, "dragging", !1), D(this, "lastX", NaN), D(this, "lastY", NaN), D(this, "touchIdentifier", null), D(this, "mounted", !1), D(this, "handleDragStart", (e) => {
390
+ if (this.props.onMouseDown(e), !this.props.allowAnyClick && typeof e.button == "number" && e.button !== 0) return !1;
391
+ const n = this.findDOMNode();
392
+ if (!n || !n.ownerDocument || !n.ownerDocument.body)
393
+ throw new Error("<DraggableCore> not mounted on DragStart!");
394
+ const {
395
+ ownerDocument: r
396
+ } = n;
397
+ if (this.props.disabled || !(e.target instanceof r.defaultView.Node) || this.props.handle && !(0, v.matchesSelectorAndParentsTo)(e.target, this.props.handle, n) || this.props.cancel && (0, v.matchesSelectorAndParentsTo)(e.target, this.props.cancel, n))
398
+ return;
399
+ e.type === "touchstart" && !this.props.allowMobileScroll && e.preventDefault();
400
+ const o = (0, v.getTouchIdentifier)(e);
401
+ this.touchIdentifier = o;
402
+ const l = (0, k.getControlPosition)(e, o, this);
403
+ if (l == null) return;
404
+ const {
405
+ x: a,
406
+ y: s
407
+ } = l, i = (0, k.createCoreData)(this, a, s);
408
+ (0, L.default)("DraggableCore: handleDragStart: %j", i), (0, L.default)("calling", this.props.onStart), !(this.props.onStart(e, i) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, v.addUserSelectStyles)(r), this.dragging = !0, this.lastX = a, this.lastY = s, (0, v.addEvent)(r, H.move, this.handleDrag), (0, v.addEvent)(r, H.stop, this.handleDragStop));
409
+ }), D(this, "handleDrag", (e) => {
410
+ const n = (0, k.getControlPosition)(e, this.touchIdentifier, this);
411
+ if (n == null) return;
412
+ let {
413
+ x: r,
414
+ y: o
415
+ } = n;
416
+ if (Array.isArray(this.props.grid)) {
417
+ let s = r - this.lastX, i = o - this.lastY;
418
+ if ([s, i] = (0, k.snapToGrid)(this.props.grid, s, i), !s && !i) return;
419
+ r = this.lastX + s, o = this.lastY + i;
420
+ }
421
+ const l = (0, k.createCoreData)(this, r, o);
422
+ if ((0, L.default)("DraggableCore: handleDrag: %j", l), this.props.onDrag(e, l) === !1 || this.mounted === !1) {
423
+ try {
424
+ this.handleDragStop(new MouseEvent("mouseup"));
425
+ } catch {
426
+ const i = document.createEvent("MouseEvents");
427
+ i.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(i);
428
+ }
429
+ return;
430
+ }
431
+ this.lastX = r, this.lastY = o;
432
+ }), D(this, "handleDragStop", (e) => {
433
+ if (!this.dragging) return;
434
+ const n = (0, k.getControlPosition)(e, this.touchIdentifier, this);
435
+ if (n == null) return;
436
+ let {
437
+ x: r,
438
+ y: o
439
+ } = n;
440
+ if (Array.isArray(this.props.grid)) {
441
+ let i = r - this.lastX || 0, u = o - this.lastY || 0;
442
+ [i, u] = (0, k.snapToGrid)(this.props.grid, i, u), r = this.lastX + i, o = this.lastY + u;
443
+ }
444
+ const l = (0, k.createCoreData)(this, r, o);
445
+ if (this.props.onStop(e, l) === !1 || this.mounted === !1) return !1;
446
+ const s = this.findDOMNode();
447
+ s && this.props.enableUserSelectHack && (0, v.scheduleRemoveUserSelectStyles)(s.ownerDocument), (0, L.default)("DraggableCore: handleDragStop: %j", l), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, s && ((0, L.default)("DraggableCore: Removing handlers"), (0, v.removeEvent)(s.ownerDocument, H.move, this.handleDrag), (0, v.removeEvent)(s.ownerDocument, H.stop, this.handleDragStop));
448
+ }), D(this, "onMouseDown", (e) => (H = E.mouse, this.handleDragStart(e))), D(this, "onMouseUp", (e) => (H = E.mouse, this.handleDragStop(e))), D(this, "onTouchStart", (e) => (H = E.touch, this.handleDragStart(e))), D(this, "onTouchEnd", (e) => (H = E.touch, this.handleDragStop(e)));
449
+ }
450
+ componentDidMount() {
451
+ this.mounted = !0;
452
+ const e = this.findDOMNode();
453
+ e && (0, v.addEvent)(e, E.touch.start, this.onTouchStart, {
454
+ passive: !1
455
+ });
456
+ }
457
+ componentWillUnmount() {
458
+ this.mounted = !1;
459
+ const e = this.findDOMNode();
460
+ if (e) {
461
+ const {
462
+ ownerDocument: n
463
+ } = e;
464
+ (0, v.removeEvent)(n, E.mouse.move, this.handleDrag), (0, v.removeEvent)(n, E.touch.move, this.handleDrag), (0, v.removeEvent)(n, E.mouse.stop, this.handleDragStop), (0, v.removeEvent)(n, E.touch.stop, this.handleDragStop), (0, v.removeEvent)(e, E.touch.start, this.onTouchStart, {
465
+ passive: !1
466
+ }), this.props.enableUserSelectHack && (0, v.scheduleRemoveUserSelectStyles)(n);
467
+ }
468
+ }
469
+ // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
470
+ // the underlying DOM node ourselves. See the README for more information.
471
+ findDOMNode() {
472
+ var e, n, r;
473
+ return (e = this.props) != null && e.nodeRef ? (r = (n = this.props) == null ? void 0 : n.nodeRef) == null ? void 0 : r.current : Pe.default.findDOMNode(this);
474
+ }
475
+ render() {
476
+ return /* @__PURE__ */ nt.cloneElement(nt.Children.only(this.props.children), {
477
+ // Note: mouseMove handler is attached to document so it will still function
478
+ // when the user drags quickly and leaves the bounds of the element.
479
+ onMouseDown: this.onMouseDown,
480
+ onMouseUp: this.onMouseUp,
481
+ // onTouchStart is added on `componentDidMount` so they can be added with
482
+ // {passive: false}, which allows it to cancel. See
483
+ // https://developers.google.com/web/updates/2017/01/scrolling-intervention
484
+ onTouchEnd: this.onTouchEnd
485
+ });
486
+ }
487
+ };
488
+ J.default = Z;
489
+ D(Z, "displayName", "DraggableCore");
490
+ D(Z, "propTypes", {
491
+ /**
492
+ * `allowAnyClick` allows dragging using any mouse button.
493
+ * By default, we only accept the left button.
494
+ *
495
+ * Defaults to `false`.
496
+ */
497
+ allowAnyClick: w.default.bool,
498
+ /**
499
+ * `allowMobileScroll` turns off cancellation of the 'touchstart' event
500
+ * on mobile devices. Only enable this if you are having trouble with click
501
+ * events. Prefer using 'handle' / 'cancel' instead.
502
+ *
503
+ * Defaults to `false`.
504
+ */
505
+ allowMobileScroll: w.default.bool,
506
+ children: w.default.node.isRequired,
507
+ /**
508
+ * `disabled`, if true, stops the <Draggable> from dragging. All handlers,
509
+ * with the exception of `onMouseDown`, will not fire.
510
+ */
511
+ disabled: w.default.bool,
512
+ /**
513
+ * By default, we add 'user-select:none' attributes to the document body
514
+ * to prevent ugly text selection during drag. If this is causing problems
515
+ * for your app, set this to `false`.
516
+ */
517
+ enableUserSelectHack: w.default.bool,
518
+ /**
519
+ * `offsetParent`, if set, uses the passed DOM node to compute drag offsets
520
+ * instead of using the parent node.
521
+ */
522
+ offsetParent: function(t, e) {
523
+ if (t[e] && t[e].nodeType !== 1)
524
+ throw new Error("Draggable's offsetParent must be a DOM Node.");
525
+ },
526
+ /**
527
+ * `grid` specifies the x and y that dragging should snap to.
528
+ */
529
+ grid: w.default.arrayOf(w.default.number),
530
+ /**
531
+ * `handle` specifies a selector to be used as the handle that initiates drag.
532
+ *
533
+ * Example:
534
+ *
535
+ * ```jsx
536
+ * let App = React.createClass({
537
+ * render: function () {
538
+ * return (
539
+ * <Draggable handle=".handle">
540
+ * <div>
541
+ * <div className="handle">Click me to drag</div>
542
+ * <div>This is some other content</div>
543
+ * </div>
544
+ * </Draggable>
545
+ * );
546
+ * }
547
+ * });
548
+ * ```
549
+ */
550
+ handle: w.default.string,
551
+ /**
552
+ * `cancel` specifies a selector to be used to prevent drag initialization.
553
+ *
554
+ * Example:
555
+ *
556
+ * ```jsx
557
+ * let App = React.createClass({
558
+ * render: function () {
559
+ * return(
560
+ * <Draggable cancel=".cancel">
561
+ * <div>
562
+ * <div className="cancel">You can't drag from here</div>
563
+ * <div>Dragging here works fine</div>
564
+ * </div>
565
+ * </Draggable>
566
+ * );
567
+ * }
568
+ * });
569
+ * ```
570
+ */
571
+ cancel: w.default.string,
572
+ /* If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.
573
+ * Unfortunately, in order for <Draggable> to work properly, we need raw access
574
+ * to the underlying DOM node. If you want to avoid the warning, pass a `nodeRef`
575
+ * as in this example:
576
+ *
577
+ * function MyComponent() {
578
+ * const nodeRef = React.useRef(null);
579
+ * return (
580
+ * <Draggable nodeRef={nodeRef}>
581
+ * <div ref={nodeRef}>Example Target</div>
582
+ * </Draggable>
583
+ * );
584
+ * }
585
+ *
586
+ * This can be used for arbitrarily nested components, so long as the ref ends up
587
+ * pointing to the actual child DOM node and not a custom component.
588
+ */
589
+ nodeRef: w.default.object,
590
+ /**
591
+ * Called when dragging starts.
592
+ * If this function returns the boolean false, dragging will be canceled.
593
+ */
594
+ onStart: w.default.func,
595
+ /**
596
+ * Called while dragging.
597
+ * If this function returns the boolean false, dragging will be canceled.
598
+ */
599
+ onDrag: w.default.func,
600
+ /**
601
+ * Called when dragging stops.
602
+ * If this function returns the boolean false, the drag will remain active.
603
+ */
604
+ onStop: w.default.func,
605
+ /**
606
+ * A workaround option which can be passed if onMouseDown needs to be accessed,
607
+ * since it'll always be blocked (as there is internal use of onMouseDown)
608
+ */
609
+ onMouseDown: w.default.func,
610
+ /**
611
+ * `scale`, if set, applies scaling while dragging an element
612
+ */
613
+ scale: w.default.number,
614
+ /**
615
+ * These properties should be defined on the child, not here.
616
+ */
617
+ className: rt.dontSetMe,
618
+ style: rt.dontSetMe,
619
+ transform: rt.dontSetMe
620
+ });
621
+ D(Z, "defaultProps", {
622
+ allowAnyClick: !1,
623
+ // by default only accept left click
624
+ allowMobileScroll: !1,
625
+ disabled: !1,
626
+ enableUserSelectHack: !0,
627
+ onStart: function() {
628
+ },
629
+ onDrag: function() {
630
+ },
631
+ onStop: function() {
632
+ },
633
+ onMouseDown: function() {
634
+ },
635
+ scale: 1
636
+ });
637
+ (function(t) {
638
+ Object.defineProperty(t, "__esModule", {
639
+ value: !0
640
+ }), Object.defineProperty(t, "DraggableCore", {
641
+ enumerable: !0,
642
+ get: function() {
643
+ return i.default;
644
+ }
645
+ }), t.default = void 0;
646
+ var e = x(F), n = b(G), r = b(Rt), o = It, l = y, a = $, s = N, i = b(J), u = b(Q);
647
+ function b(g) {
648
+ return g && g.__esModule ? g : { default: g };
649
+ }
650
+ function x(g, c) {
651
+ if (typeof WeakMap == "function") var d = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap();
652
+ return (x = function(h, m) {
653
+ if (!m && h && h.__esModule) return h;
654
+ var T, z, _ = { __proto__: null, default: h };
655
+ if (h === null || typeof h != "object" && typeof h != "function") return _;
656
+ if (T = m ? p : d) {
657
+ if (T.has(h)) return T.get(h);
658
+ T.set(h, _);
659
+ }
660
+ for (const C in h) C !== "default" && {}.hasOwnProperty.call(h, C) && ((z = (T = Object.defineProperty) && Object.getOwnPropertyDescriptor(h, C)) && (z.get || z.set) ? T(_, C, z) : _[C] = h[C]);
661
+ return _;
662
+ })(g, c);
663
+ }
664
+ function j() {
665
+ return j = Object.assign ? Object.assign.bind() : function(g) {
666
+ for (var c = 1; c < arguments.length; c++) {
667
+ var d = arguments[c];
668
+ for (var p in d) ({}).hasOwnProperty.call(d, p) && (g[p] = d[p]);
669
+ }
670
+ return g;
671
+ }, j.apply(null, arguments);
672
+ }
673
+ function S(g, c, d) {
674
+ return (c = R(c)) in g ? Object.defineProperty(g, c, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : g[c] = d, g;
675
+ }
676
+ function R(g) {
677
+ var c = X(g, "string");
678
+ return typeof c == "symbol" ? c : c + "";
679
+ }
680
+ function X(g, c) {
681
+ if (typeof g != "object" || !g) return g;
682
+ var d = g[Symbol.toPrimitive];
683
+ if (d !== void 0) {
684
+ var p = d.call(g, c);
685
+ if (typeof p != "object") return p;
686
+ throw new TypeError("@@toPrimitive must return a primitive value.");
687
+ }
688
+ return (c === "string" ? String : Number)(g);
689
+ }
690
+ class M extends e.Component {
691
+ // React 16.3+
692
+ // Arity (props, state)
693
+ static getDerivedStateFromProps(c, d) {
694
+ let {
695
+ position: p
696
+ } = c, {
697
+ prevPropsPosition: h
698
+ } = d;
699
+ return p && (!h || p.x !== h.x || p.y !== h.y) ? ((0, u.default)("Draggable: getDerivedStateFromProps %j", {
700
+ position: p,
701
+ prevPropsPosition: h
702
+ }), {
703
+ x: p.x,
704
+ y: p.y,
705
+ prevPropsPosition: {
706
+ ...p
707
+ }
708
+ }) : null;
709
+ }
710
+ constructor(c) {
711
+ super(c), S(this, "onDragStart", (d, p) => {
712
+ if ((0, u.default)("Draggable: onDragStart: %j", p), this.props.onStart(d, (0, a.createDraggableData)(this, p)) === !1) return !1;
713
+ this.setState({
714
+ dragging: !0,
715
+ dragged: !0
716
+ });
717
+ }), S(this, "onDrag", (d, p) => {
718
+ if (!this.state.dragging) return !1;
719
+ (0, u.default)("Draggable: onDrag: %j", p);
720
+ const h = (0, a.createDraggableData)(this, p), m = {
721
+ x: h.x,
722
+ y: h.y,
723
+ slackX: 0,
724
+ slackY: 0
725
+ };
726
+ if (this.props.bounds) {
727
+ const {
728
+ x: z,
729
+ y: _
730
+ } = m;
731
+ m.x += this.state.slackX, m.y += this.state.slackY;
732
+ const [C, gt] = (0, a.getBoundPosition)(this, m.x, m.y);
733
+ m.x = C, m.y = gt, m.slackX = this.state.slackX + (z - m.x), m.slackY = this.state.slackY + (_ - m.y), h.x = m.x, h.y = m.y, h.deltaX = m.x - this.state.x, h.deltaY = m.y - this.state.y;
734
+ }
735
+ if (this.props.onDrag(d, h) === !1) return !1;
736
+ this.setState(m);
737
+ }), S(this, "onDragStop", (d, p) => {
738
+ if (!this.state.dragging || this.props.onStop(d, (0, a.createDraggableData)(this, p)) === !1) return !1;
739
+ (0, u.default)("Draggable: onDragStop: %j", p);
740
+ const m = {
741
+ dragging: !1,
742
+ slackX: 0,
743
+ slackY: 0
744
+ };
745
+ if (!!this.props.position) {
746
+ const {
747
+ x: z,
748
+ y: _
749
+ } = this.props.position;
750
+ m.x = z, m.y = _;
751
+ }
752
+ this.setState(m);
753
+ }), this.state = {
754
+ // Whether or not we are currently dragging.
755
+ dragging: !1,
756
+ // Whether or not we have been dragged before.
757
+ dragged: !1,
758
+ // Current transform x and y.
759
+ x: c.position ? c.position.x : c.defaultPosition.x,
760
+ y: c.position ? c.position.y : c.defaultPosition.y,
761
+ prevPropsPosition: {
762
+ ...c.position
763
+ },
764
+ // Used for compensating for out-of-bounds drags
765
+ slackX: 0,
766
+ slackY: 0,
767
+ // Can only determine if SVG after mounting
768
+ isElementSVG: !1
769
+ }, c.position && !(c.onDrag || c.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
770
+ }
771
+ componentDidMount() {
772
+ typeof window.SVGElement < "u" && this.findDOMNode() instanceof window.SVGElement && this.setState({
773
+ isElementSVG: !0
774
+ });
775
+ }
776
+ componentWillUnmount() {
777
+ this.state.dragging && this.setState({
778
+ dragging: !1
779
+ });
780
+ }
781
+ // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
782
+ // the underlying DOM node ourselves. See the README for more information.
783
+ findDOMNode() {
784
+ var c, d;
785
+ return ((d = (c = this.props) == null ? void 0 : c.nodeRef) == null ? void 0 : d.current) ?? r.default.findDOMNode(this);
786
+ }
787
+ render() {
788
+ const {
789
+ axis: c,
790
+ bounds: d,
791
+ children: p,
792
+ defaultPosition: h,
793
+ defaultClassName: m,
794
+ defaultClassNameDragging: T,
795
+ defaultClassNameDragged: z,
796
+ position: _,
797
+ positionOffset: C,
798
+ scale: gt,
799
+ ...Lt
800
+ } = this.props;
801
+ let mt = {}, yt = null;
802
+ const bt = !!!_ || this.state.dragging, vt = _ || h, St = {
803
+ // Set left if horizontal drag is enabled
804
+ x: (0, a.canDragX)(this) && bt ? this.state.x : vt.x,
805
+ // Set top if vertical drag is enabled
806
+ y: (0, a.canDragY)(this) && bt ? this.state.y : vt.y
807
+ };
808
+ this.state.isElementSVG ? yt = (0, l.createSVGTransform)(St, C) : mt = (0, l.createCSSTransform)(St, C);
809
+ const Ft = (0, o.clsx)(p.props.className || "", m, {
810
+ [T]: this.state.dragging,
811
+ [z]: this.state.dragged
812
+ });
813
+ return /* @__PURE__ */ e.createElement(i.default, j({}, Lt, {
814
+ onStart: this.onDragStart,
815
+ onDrag: this.onDrag,
816
+ onStop: this.onDragStop
817
+ }), /* @__PURE__ */ e.cloneElement(e.Children.only(p), {
818
+ className: Ft,
819
+ style: {
820
+ ...p.props.style,
821
+ ...mt
822
+ },
823
+ transform: yt
824
+ }));
825
+ }
826
+ }
827
+ t.default = M, S(M, "displayName", "Draggable"), S(M, "propTypes", {
828
+ // Accepts all props <DraggableCore> accepts.
829
+ ...i.default.propTypes,
830
+ /**
831
+ * `axis` determines which axis the draggable can move.
832
+ *
833
+ * Note that all callbacks will still return data as normal. This only
834
+ * controls flushing to the DOM.
835
+ *
836
+ * 'both' allows movement horizontally and vertically.
837
+ * 'x' limits movement to horizontal axis.
838
+ * 'y' limits movement to vertical axis.
839
+ * 'none' limits all movement.
840
+ *
841
+ * Defaults to 'both'.
842
+ */
843
+ axis: n.default.oneOf(["both", "x", "y", "none"]),
844
+ /**
845
+ * `bounds` determines the range of movement available to the element.
846
+ * Available values are:
847
+ *
848
+ * 'parent' restricts movement within the Draggable's parent node.
849
+ *
850
+ * Alternatively, pass an object with the following properties, all of which are optional:
851
+ *
852
+ * {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND}
853
+ *
854
+ * All values are in px.
855
+ *
856
+ * Example:
857
+ *
858
+ * ```jsx
859
+ * let App = React.createClass({
860
+ * render: function () {
861
+ * return (
862
+ * <Draggable bounds={{right: 300, bottom: 300}}>
863
+ * <div>Content</div>
864
+ * </Draggable>
865
+ * );
866
+ * }
867
+ * });
868
+ * ```
869
+ */
870
+ bounds: n.default.oneOfType([n.default.shape({
871
+ left: n.default.number,
872
+ right: n.default.number,
873
+ top: n.default.number,
874
+ bottom: n.default.number
875
+ }), n.default.string, n.default.oneOf([!1])]),
876
+ defaultClassName: n.default.string,
877
+ defaultClassNameDragging: n.default.string,
878
+ defaultClassNameDragged: n.default.string,
879
+ /**
880
+ * `defaultPosition` specifies the x and y that the dragged item should start at
881
+ *
882
+ * Example:
883
+ *
884
+ * ```jsx
885
+ * let App = React.createClass({
886
+ * render: function () {
887
+ * return (
888
+ * <Draggable defaultPosition={{x: 25, y: 25}}>
889
+ * <div>I start with transformX: 25px and transformY: 25px;</div>
890
+ * </Draggable>
891
+ * );
892
+ * }
893
+ * });
894
+ * ```
895
+ */
896
+ defaultPosition: n.default.shape({
897
+ x: n.default.number,
898
+ y: n.default.number
899
+ }),
900
+ positionOffset: n.default.shape({
901
+ x: n.default.oneOfType([n.default.number, n.default.string]),
902
+ y: n.default.oneOfType([n.default.number, n.default.string])
903
+ }),
904
+ /**
905
+ * `position`, if present, defines the current position of the element.
906
+ *
907
+ * This is similar to how form elements in React work - if no `position` is supplied, the component
908
+ * is uncontrolled.
909
+ *
910
+ * Example:
911
+ *
912
+ * ```jsx
913
+ * let App = React.createClass({
914
+ * render: function () {
915
+ * return (
916
+ * <Draggable position={{x: 25, y: 25}}>
917
+ * <div>I start with transformX: 25px and transformY: 25px;</div>
918
+ * </Draggable>
919
+ * );
920
+ * }
921
+ * });
922
+ * ```
923
+ */
924
+ position: n.default.shape({
925
+ x: n.default.number,
926
+ y: n.default.number
927
+ }),
928
+ /**
929
+ * These properties should be defined on the child, not here.
930
+ */
931
+ className: s.dontSetMe,
932
+ style: s.dontSetMe,
933
+ transform: s.dontSetMe
934
+ }), S(M, "defaultProps", {
935
+ ...i.default.defaultProps,
936
+ axis: "both",
937
+ bounds: !1,
938
+ defaultClassName: "react-draggable",
939
+ defaultClassNameDragging: "react-draggable-dragging",
940
+ defaultClassNameDragged: "react-draggable-dragged",
941
+ defaultPosition: {
942
+ x: 0,
943
+ y: 0
944
+ },
945
+ scale: 1
946
+ });
947
+ })(Mt);
948
+ const {
949
+ default: Wt,
950
+ DraggableCore: je
951
+ } = Mt;
952
+ K.exports = Wt;
953
+ K.exports.default = Wt;
954
+ K.exports.DraggableCore = je;
955
+ var Re = K.exports, pt = {};
956
+ pt.__esModule = !0;
957
+ pt.cloneElement = Ne;
958
+ var Me = Ce(F);
959
+ function Ce(t) {
960
+ return t && t.__esModule ? t : { default: t };
961
+ }
962
+ function Pt(t, e) {
963
+ var n = Object.keys(t);
964
+ if (Object.getOwnPropertySymbols) {
965
+ var r = Object.getOwnPropertySymbols(t);
966
+ e && (r = r.filter(function(o) {
967
+ return Object.getOwnPropertyDescriptor(t, o).enumerable;
968
+ })), n.push.apply(n, r);
969
+ }
970
+ return n;
971
+ }
972
+ function _t(t) {
973
+ for (var e = 1; e < arguments.length; e++) {
974
+ var n = arguments[e] != null ? arguments[e] : {};
975
+ e % 2 ? Pt(Object(n), !0).forEach(function(r) {
976
+ Ee(t, r, n[r]);
977
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Pt(Object(n)).forEach(function(r) {
978
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
979
+ });
980
+ }
981
+ return t;
982
+ }
983
+ function Ee(t, e, n) {
984
+ return (e = Te(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
985
+ }
986
+ function Te(t) {
987
+ var e = ze(t, "string");
988
+ return typeof e == "symbol" ? e : e + "";
989
+ }
990
+ function ze(t, e) {
991
+ if (typeof t != "object" || !t) return t;
992
+ var n = t[Symbol.toPrimitive];
993
+ if (n !== void 0) {
994
+ var r = n.call(t, e);
995
+ if (typeof r != "object") return r;
996
+ throw new TypeError("@@toPrimitive must return a primitive value.");
997
+ }
998
+ return (e === "string" ? String : Number)(t);
999
+ }
1000
+ function Ne(t, e) {
1001
+ return e.style && t.props.style && (e.style = _t(_t({}, t.props.style), e.style)), e.className && t.props.className && (e.className = `${t.props.className} ${e.className}`), /* @__PURE__ */ Me.default.cloneElement(t, e);
1002
+ }
1003
+ var q = {};
1004
+ q.__esModule = !0;
1005
+ q.resizableProps = void 0;
1006
+ var f = $e(G);
1007
+ function $e(t) {
1008
+ return t && t.__esModule ? t : { default: t };
1009
+ }
1010
+ q.resizableProps = {
1011
+ /*
1012
+ * Restricts resizing to a particular axis (default: 'both')
1013
+ * 'both' - allows resizing by width or height
1014
+ * 'x' - only allows the width to be changed
1015
+ * 'y' - only allows the height to be changed
1016
+ * 'none' - disables resizing altogether
1017
+ * */
1018
+ axis: f.default.oneOf(["both", "x", "y", "none"]),
1019
+ className: f.default.string,
1020
+ /*
1021
+ * Require that one and only one child be present.
1022
+ * */
1023
+ children: f.default.element.isRequired,
1024
+ /*
1025
+ * These will be passed wholesale to react-draggable's DraggableCore
1026
+ * */
1027
+ draggableOpts: f.default.shape({
1028
+ allowAnyClick: f.default.bool,
1029
+ cancel: f.default.string,
1030
+ children: f.default.node,
1031
+ disabled: f.default.bool,
1032
+ enableUserSelectHack: f.default.bool,
1033
+ // #251: Check for Element to support SSR environments where DOM globals don't exist
1034
+ offsetParent: typeof Element < "u" ? f.default.instanceOf(Element) : f.default.any,
1035
+ grid: f.default.arrayOf(f.default.number),
1036
+ handle: f.default.string,
1037
+ nodeRef: f.default.object,
1038
+ onStart: f.default.func,
1039
+ onDrag: f.default.func,
1040
+ onStop: f.default.func,
1041
+ onMouseDown: f.default.func,
1042
+ scale: f.default.number
1043
+ }),
1044
+ /*
1045
+ * Initial height
1046
+ * */
1047
+ height: function() {
1048
+ for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
1049
+ e[n] = arguments[n];
1050
+ const [r] = e;
1051
+ return r.axis === "both" || r.axis === "y" ? f.default.number.isRequired(...e) : f.default.number(...e);
1052
+ },
1053
+ /*
1054
+ * Customize cursor resize handle
1055
+ * */
1056
+ handle: f.default.oneOfType([f.default.node, f.default.func]),
1057
+ /*
1058
+ * If you change this, be sure to update your css
1059
+ * */
1060
+ handleSize: f.default.arrayOf(f.default.number),
1061
+ lockAspectRatio: f.default.bool,
1062
+ /*
1063
+ * Max X & Y measure
1064
+ * */
1065
+ maxConstraints: f.default.arrayOf(f.default.number),
1066
+ /*
1067
+ * Min X & Y measure
1068
+ * */
1069
+ minConstraints: f.default.arrayOf(f.default.number),
1070
+ /*
1071
+ * Called on stop resize event
1072
+ * */
1073
+ onResizeStop: f.default.func,
1074
+ /*
1075
+ * Called on start resize event
1076
+ * */
1077
+ onResizeStart: f.default.func,
1078
+ /*
1079
+ * Called on resize event
1080
+ * */
1081
+ onResize: f.default.func,
1082
+ /*
1083
+ * Defines which resize handles should be rendered (default: 'se')
1084
+ * 's' - South handle (bottom-center)
1085
+ * 'w' - West handle (left-center)
1086
+ * 'e' - East handle (right-center)
1087
+ * 'n' - North handle (top-center)
1088
+ * 'sw' - Southwest handle (bottom-left)
1089
+ * 'nw' - Northwest handle (top-left)
1090
+ * 'se' - Southeast handle (bottom-right)
1091
+ * 'ne' - Northeast handle (top-center)
1092
+ * */
1093
+ resizeHandles: f.default.arrayOf(f.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])),
1094
+ /*
1095
+ * If `transform: scale(n)` is set on the parent, this should be set to `n`.
1096
+ * */
1097
+ transformScale: f.default.number,
1098
+ /*
1099
+ * Initial width
1100
+ */
1101
+ width: function() {
1102
+ for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
1103
+ e[n] = arguments[n];
1104
+ const [r] = e;
1105
+ return r.axis === "both" || r.axis === "x" ? f.default.number.isRequired(...e) : f.default.number(...e);
1106
+ }
1107
+ };
1108
+ B.__esModule = !0;
1109
+ B.default = void 0;
1110
+ var Y = Xt(F), ke = Re, He = pt, We = q;
1111
+ const Xe = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
1112
+ function Xt(t, e) {
1113
+ if (typeof WeakMap == "function") var n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
1114
+ return (Xt = function(o, l) {
1115
+ if (!l && o && o.__esModule) return o;
1116
+ var a, s, i = { __proto__: null, default: o };
1117
+ if (o === null || typeof o != "object" && typeof o != "function") return i;
1118
+ if (a = l ? r : n) {
1119
+ if (a.has(o)) return a.get(o);
1120
+ a.set(o, i);
1121
+ }
1122
+ for (const u in o) u !== "default" && {}.hasOwnProperty.call(o, u) && ((s = (a = Object.defineProperty) && Object.getOwnPropertyDescriptor(o, u)) && (s.get || s.set) ? a(i, u, s) : i[u] = o[u]);
1123
+ return i;
1124
+ })(t, e);
1125
+ }
1126
+ function it() {
1127
+ return it = Object.assign ? Object.assign.bind() : function(t) {
1128
+ for (var e = 1; e < arguments.length; e++) {
1129
+ var n = arguments[e];
1130
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
1131
+ }
1132
+ return t;
1133
+ }, it.apply(null, arguments);
1134
+ }
1135
+ function Ye(t, e) {
1136
+ if (t == null) return {};
1137
+ var n, r, o = Ue(t, e);
1138
+ if (Object.getOwnPropertySymbols) {
1139
+ var l = Object.getOwnPropertySymbols(t);
1140
+ for (r = 0; r < l.length; r++) n = l[r], e.indexOf(n) === -1 && {}.propertyIsEnumerable.call(t, n) && (o[n] = t[n]);
1141
+ }
1142
+ return o;
1143
+ }
1144
+ function Ue(t, e) {
1145
+ if (t == null) return {};
1146
+ var n = {};
1147
+ for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
1148
+ if (e.indexOf(r) !== -1) continue;
1149
+ n[r] = t[r];
1150
+ }
1151
+ return n;
1152
+ }
1153
+ function xt(t, e) {
1154
+ var n = Object.keys(t);
1155
+ if (Object.getOwnPropertySymbols) {
1156
+ var r = Object.getOwnPropertySymbols(t);
1157
+ e && (r = r.filter(function(o) {
1158
+ return Object.getOwnPropertyDescriptor(t, o).enumerable;
1159
+ })), n.push.apply(n, r);
1160
+ }
1161
+ return n;
1162
+ }
1163
+ function ot(t) {
1164
+ for (var e = 1; e < arguments.length; e++) {
1165
+ var n = arguments[e] != null ? arguments[e] : {};
1166
+ e % 2 ? xt(Object(n), !0).forEach(function(r) {
1167
+ Ae(t, r, n[r]);
1168
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : xt(Object(n)).forEach(function(r) {
1169
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
1170
+ });
1171
+ }
1172
+ return t;
1173
+ }
1174
+ function Ae(t, e, n) {
1175
+ return (e = Le(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
1176
+ }
1177
+ function Le(t) {
1178
+ var e = Fe(t, "string");
1179
+ return typeof e == "symbol" ? e : e + "";
1180
+ }
1181
+ function Fe(t, e) {
1182
+ if (typeof t != "object" || !t) return t;
1183
+ var n = t[Symbol.toPrimitive];
1184
+ if (n !== void 0) {
1185
+ var r = n.call(t, e);
1186
+ if (typeof r != "object") return r;
1187
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1188
+ }
1189
+ return (e === "string" ? String : Number)(t);
1190
+ }
1191
+ let ht = class extends Y.Component {
1192
+ constructor() {
1193
+ super(...arguments), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
1194
+ }
1195
+ componentWillUnmount() {
1196
+ this.resetData();
1197
+ }
1198
+ resetData() {
1199
+ this.lastHandleRect = this.slack = this.lastSize = null;
1200
+ }
1201
+ // Clamp width and height within provided constraints
1202
+ runConstraints(e, n) {
1203
+ const {
1204
+ minConstraints: r,
1205
+ maxConstraints: o,
1206
+ lockAspectRatio: l
1207
+ } = this.props;
1208
+ if (!r && !o && !l) return [e, n];
1209
+ if (l) {
1210
+ const b = this.props.width / this.props.height, x = e - this.props.width, j = n - this.props.height;
1211
+ Math.abs(x) > Math.abs(j * b) ? n = e / b : e = n * b;
1212
+ }
1213
+ const [a, s] = [e, n];
1214
+ let [i, u] = this.slack || [0, 0];
1215
+ return e += i, n += u, r && (e = Math.max(r[0], e), n = Math.max(r[1], n)), o && (e = Math.min(o[0], e), n = Math.min(o[1], n)), this.slack = [i + (a - e), u + (s - n)], [e, n];
1216
+ }
1217
+ /**
1218
+ * Wrapper around drag events to provide more useful data.
1219
+ *
1220
+ * @param {String} handlerName Handler name to wrap.
1221
+ * @return {Function} Handler function.
1222
+ */
1223
+ resizeHandler(e, n) {
1224
+ return (r, o) => {
1225
+ var c;
1226
+ let {
1227
+ node: l,
1228
+ deltaX: a,
1229
+ deltaY: s
1230
+ } = o;
1231
+ e === "onResizeStart" && this.resetData();
1232
+ const i = (this.props.axis === "both" || this.props.axis === "x") && n !== "n" && n !== "s", u = (this.props.axis === "both" || this.props.axis === "y") && n !== "e" && n !== "w";
1233
+ if (!i && !u) return;
1234
+ const b = n[0], x = n[n.length - 1], j = l.getBoundingClientRect();
1235
+ if (this.lastHandleRect != null) {
1236
+ if (x === "w") {
1237
+ const d = j.left - this.lastHandleRect.left;
1238
+ a += d;
1239
+ }
1240
+ if (b === "n") {
1241
+ const d = j.top - this.lastHandleRect.top;
1242
+ s += d;
1243
+ }
1244
+ }
1245
+ this.lastHandleRect = j, x === "w" && (a = -a), b === "n" && (s = -s);
1246
+ let S = this.props.width + (i ? a / this.props.transformScale : 0), R = this.props.height + (u ? s / this.props.transformScale : 0);
1247
+ [S, R] = this.runConstraints(S, R), e === "onResizeStop" && this.lastSize && ({
1248
+ width: S,
1249
+ height: R
1250
+ } = this.lastSize);
1251
+ const X = S !== this.props.width || R !== this.props.height;
1252
+ e !== "onResizeStop" && (this.lastSize = {
1253
+ width: S,
1254
+ height: R
1255
+ });
1256
+ const M = typeof this.props[e] == "function" ? this.props[e] : null;
1257
+ M && !(e === "onResize" && !X) && ((c = r.persist) == null || c.call(r), M(r, {
1258
+ node: l,
1259
+ size: {
1260
+ width: S,
1261
+ height: R
1262
+ },
1263
+ handle: n
1264
+ })), e === "onResizeStop" && this.resetData();
1265
+ };
1266
+ }
1267
+ // Render a resize handle given an axis & DOM ref. Ref *must* be attached for
1268
+ // the underlying draggable library to work properly.
1269
+ renderResizeHandle(e, n) {
1270
+ const {
1271
+ handle: r
1272
+ } = this.props;
1273
+ if (!r)
1274
+ return /* @__PURE__ */ Y.createElement("span", {
1275
+ className: `react-resizable-handle react-resizable-handle-${e}`,
1276
+ ref: n
1277
+ });
1278
+ if (typeof r == "function")
1279
+ return r(e, n);
1280
+ const o = typeof r.type == "string", l = ot({
1281
+ ref: n
1282
+ }, o ? {} : {
1283
+ handleAxis: e
1284
+ });
1285
+ return /* @__PURE__ */ Y.cloneElement(r, l);
1286
+ }
1287
+ render() {
1288
+ const e = this.props, {
1289
+ children: n,
1290
+ className: r,
1291
+ draggableOpts: o,
1292
+ width: l,
1293
+ height: a,
1294
+ handle: s,
1295
+ handleSize: i,
1296
+ lockAspectRatio: u,
1297
+ axis: b,
1298
+ minConstraints: x,
1299
+ maxConstraints: j,
1300
+ onResize: S,
1301
+ onResizeStop: R,
1302
+ onResizeStart: X,
1303
+ resizeHandles: M,
1304
+ transformScale: g
1305
+ } = e, c = Ye(e, Xe);
1306
+ return (0, He.cloneElement)(n, ot(ot({}, c), {}, {
1307
+ className: `${r ? `${r} ` : ""}react-resizable`,
1308
+ children: [...Y.Children.toArray(n.props.children), ...M.map((d) => {
1309
+ const p = this.handleRefs[d] ?? (this.handleRefs[d] = /* @__PURE__ */ Y.createRef());
1310
+ return /* @__PURE__ */ Y.createElement(ke.DraggableCore, it({}, o, {
1311
+ nodeRef: p,
1312
+ key: `resizableHandle-${d}`,
1313
+ onStop: this.resizeHandler("onResizeStop", d),
1314
+ onStart: this.resizeHandler("onResizeStart", d),
1315
+ onDrag: this.resizeHandler("onResize", d)
1316
+ }), this.renderResizeHandle(d, p));
1317
+ })]
1318
+ }));
1319
+ }
1320
+ };
1321
+ B.default = ht;
1322
+ ht.propTypes = We.resizableProps;
1323
+ ht.defaultProps = {
1324
+ axis: "both",
1325
+ handleSize: [20, 20],
1326
+ lockAspectRatio: !1,
1327
+ minConstraints: [20, 20],
1328
+ maxConstraints: [1 / 0, 1 / 0],
1329
+ resizeHandles: ["se"],
1330
+ transformScale: 1
1331
+ };
1332
+ var tt = {};
1333
+ tt.__esModule = !0;
1334
+ tt.default = void 0;
1335
+ var st = Ut(F), Be = Yt(G), qe = Yt(B), Ie = q;
1336
+ const Ve = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
1337
+ function Yt(t) {
1338
+ return t && t.__esModule ? t : { default: t };
1339
+ }
1340
+ function Ut(t, e) {
1341
+ if (typeof WeakMap == "function") var n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
1342
+ return (Ut = function(o, l) {
1343
+ if (!l && o && o.__esModule) return o;
1344
+ var a, s, i = { __proto__: null, default: o };
1345
+ if (o === null || typeof o != "object" && typeof o != "function") return i;
1346
+ if (a = l ? r : n) {
1347
+ if (a.has(o)) return a.get(o);
1348
+ a.set(o, i);
1349
+ }
1350
+ for (const u in o) u !== "default" && {}.hasOwnProperty.call(o, u) && ((s = (a = Object.defineProperty) && Object.getOwnPropertyDescriptor(o, u)) && (s.get || s.set) ? a(i, u, s) : i[u] = o[u]);
1351
+ return i;
1352
+ })(t, e);
1353
+ }
1354
+ function lt() {
1355
+ return lt = Object.assign ? Object.assign.bind() : function(t) {
1356
+ for (var e = 1; e < arguments.length; e++) {
1357
+ var n = arguments[e];
1358
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
1359
+ }
1360
+ return t;
1361
+ }, lt.apply(null, arguments);
1362
+ }
1363
+ function jt(t, e) {
1364
+ var n = Object.keys(t);
1365
+ if (Object.getOwnPropertySymbols) {
1366
+ var r = Object.getOwnPropertySymbols(t);
1367
+ e && (r = r.filter(function(o) {
1368
+ return Object.getOwnPropertyDescriptor(t, o).enumerable;
1369
+ })), n.push.apply(n, r);
1370
+ }
1371
+ return n;
1372
+ }
1373
+ function V(t) {
1374
+ for (var e = 1; e < arguments.length; e++) {
1375
+ var n = arguments[e] != null ? arguments[e] : {};
1376
+ e % 2 ? jt(Object(n), !0).forEach(function(r) {
1377
+ Ge(t, r, n[r]);
1378
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : jt(Object(n)).forEach(function(r) {
1379
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
1380
+ });
1381
+ }
1382
+ return t;
1383
+ }
1384
+ function Ge(t, e, n) {
1385
+ return (e = Ke(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
1386
+ }
1387
+ function Ke(t) {
1388
+ var e = Je(t, "string");
1389
+ return typeof e == "symbol" ? e : e + "";
1390
+ }
1391
+ function Je(t, e) {
1392
+ if (typeof t != "object" || !t) return t;
1393
+ var n = t[Symbol.toPrimitive];
1394
+ if (n !== void 0) {
1395
+ var r = n.call(t, e);
1396
+ if (typeof r != "object") return r;
1397
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1398
+ }
1399
+ return (e === "string" ? String : Number)(t);
1400
+ }
1401
+ function Qe(t, e) {
1402
+ if (t == null) return {};
1403
+ var n, r, o = Ze(t, e);
1404
+ if (Object.getOwnPropertySymbols) {
1405
+ var l = Object.getOwnPropertySymbols(t);
1406
+ for (r = 0; r < l.length; r++) n = l[r], e.indexOf(n) === -1 && {}.propertyIsEnumerable.call(t, n) && (o[n] = t[n]);
1407
+ }
1408
+ return o;
1409
+ }
1410
+ function Ze(t, e) {
1411
+ if (t == null) return {};
1412
+ var n = {};
1413
+ for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
1414
+ if (e.indexOf(r) !== -1) continue;
1415
+ n[r] = t[r];
1416
+ }
1417
+ return n;
1418
+ }
1419
+ class At extends st.Component {
1420
+ constructor() {
1421
+ super(...arguments), this.state = {
1422
+ width: this.props.width,
1423
+ height: this.props.height,
1424
+ propsWidth: this.props.width,
1425
+ propsHeight: this.props.height
1426
+ }, this.onResize = (e, n) => {
1427
+ var o;
1428
+ const {
1429
+ size: r
1430
+ } = n;
1431
+ this.props.onResize ? ((o = e.persist) == null || o.call(e), this.setState(r, () => this.props.onResize && this.props.onResize(e, n))) : this.setState(r);
1432
+ };
1433
+ }
1434
+ static getDerivedStateFromProps(e, n) {
1435
+ return n.propsWidth !== e.width || n.propsHeight !== e.height ? {
1436
+ width: e.width,
1437
+ height: e.height,
1438
+ propsWidth: e.width,
1439
+ propsHeight: e.height
1440
+ } : null;
1441
+ }
1442
+ render() {
1443
+ const e = this.props, {
1444
+ handle: n,
1445
+ handleSize: r,
1446
+ onResize: o,
1447
+ onResizeStart: l,
1448
+ onResizeStop: a,
1449
+ draggableOpts: s,
1450
+ minConstraints: i,
1451
+ maxConstraints: u,
1452
+ lockAspectRatio: b,
1453
+ axis: x,
1454
+ width: j,
1455
+ height: S,
1456
+ resizeHandles: R,
1457
+ style: X,
1458
+ transformScale: M
1459
+ } = e, g = Qe(e, Ve);
1460
+ return /* @__PURE__ */ st.createElement(qe.default, {
1461
+ axis: x,
1462
+ draggableOpts: s,
1463
+ handle: n,
1464
+ handleSize: r,
1465
+ height: this.state.height,
1466
+ lockAspectRatio: b,
1467
+ maxConstraints: u,
1468
+ minConstraints: i,
1469
+ onResizeStart: l,
1470
+ onResize: this.onResize,
1471
+ onResizeStop: a,
1472
+ resizeHandles: R,
1473
+ transformScale: M,
1474
+ width: this.state.width
1475
+ }, /* @__PURE__ */ st.createElement("div", lt({}, g, {
1476
+ style: V(V({}, X), {}, {
1477
+ width: this.state.width + "px",
1478
+ height: this.state.height + "px"
1479
+ })
1480
+ })));
1481
+ }
1482
+ }
1483
+ tt.default = At;
1484
+ At.propTypes = V(V({}, Ie.resizableProps), {}, {
1485
+ children: Be.default.element
1486
+ });
1487
+ ut.exports = function() {
1488
+ throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
1489
+ };
1490
+ var tn = ut.exports.Resizable = B.default;
1491
+ ut.exports.ResizableBox = tt.default;
1492
+ const en = "rgba(0, 0, 0, 0.12)", un = (t) => {
1493
+ var o, l;
1494
+ const [e, n] = Bt(((o = t.data) == null ? void 0 : o.height) ?? 24);
1495
+ qt(() => {
1496
+ var a;
1497
+ return n((a = t.data) == null ? void 0 : a.height);
1498
+ }, [(l = t.data) == null ? void 0 : l.height]);
1499
+ const { onChange: r } = t;
1500
+ return /* @__PURE__ */ A.jsx(
1501
+ tn,
1502
+ {
1503
+ onResize: (a, { size: s }) => {
1504
+ n((s == null ? void 0 : s.height) ?? 0);
1505
+ },
1506
+ onResizeStop: (a, { size: s }) => r({
1507
+ height: s == null ? void 0 : s.height
1508
+ }),
1509
+ height: e,
1510
+ width: 0,
1511
+ children: /* @__PURE__ */ A.jsx("div", { style: { height: e, position: "relative" }, children: /* @__PURE__ */ A.jsx(
1512
+ "div",
1513
+ {
1514
+ style: {
1515
+ position: "absolute",
1516
+ bottom: "0",
1517
+ height: "24px",
1518
+ width: "100%",
1519
+ background: en,
1520
+ textAlign: "center"
1521
+ },
1522
+ children: /* @__PURE__ */ A.jsx(
1523
+ "svg",
1524
+ {
1525
+ viewBox: "0 0 24 24",
1526
+ style: { color: "white", width: 24, height: 24 },
1527
+ children: /* @__PURE__ */ A.jsx("path", { d: "M20 9H4v2h16V9zM4 15h16v-2H4v2z" })
1528
+ }
1529
+ )
1530
+ }
1531
+ ) })
1532
+ }
1533
+ );
1534
+ };
1535
+ export {
1536
+ un as default
1537
+ };