bitz-react-admin-ui 2.4.6 → 2.4.8

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 (45) hide show
  1. package/dist/_virtual/Draggable.mjs +4 -0
  2. package/dist/_virtual/DraggableCore.mjs +4 -0
  3. package/dist/_virtual/Resizable.mjs +4 -0
  4. package/dist/_virtual/ResizableBox.mjs +4 -0
  5. package/dist/_virtual/_commonjsHelpers.mjs +26 -4
  6. package/dist/_virtual/cjs.mjs +4 -0
  7. package/dist/_virtual/clsx.m.mjs +6 -0
  8. package/dist/_virtual/domFns.mjs +4 -0
  9. package/dist/_virtual/getPrefix.mjs +4 -0
  10. package/dist/_virtual/index6.mjs +4 -0
  11. package/dist/_virtual/log.mjs +4 -0
  12. package/dist/_virtual/positionFns.mjs +4 -0
  13. package/dist/_virtual/propTypes.mjs +4 -0
  14. package/dist/_virtual/shims.mjs +4 -0
  15. package/dist/_virtual/utils.mjs +4 -0
  16. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +67 -0
  17. package/dist/components/BitzTable/Table/index.d.ts +26 -26
  18. package/dist/components/BitzTable/Table/index.mjs +393 -368
  19. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +6 -6
  20. package/dist/components/BitzTable/index.d.ts +3 -0
  21. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +1 -1
  22. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +50 -49
  23. package/dist/components/BitzTableSelect/TextBlock/index.mjs +4 -4
  24. package/dist/components/BitzTableSelect/index.d.ts +0 -1
  25. package/dist/components/BitzTableSelect/index.mjs +17 -19
  26. package/dist/components/BitzTableSelect/utils.d.ts +4 -0
  27. package/dist/components/BitzTableSelect/utils.mjs +5 -0
  28. package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
  29. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -7
  30. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
  31. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
  32. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
  33. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
  34. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
  35. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
  36. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
  37. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
  38. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
  39. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
  40. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
  41. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
  42. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
  43. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  44. package/dist/style.css +1 -1
  45. package/package.json +1 -1
@@ -0,0 +1,174 @@
1
+ import { __exports as a } from "../../../../../../../../_virtual/domFns.mjs";
2
+ import "./shims.mjs";
3
+ import "./getPrefix.mjs";
4
+ import { __exports as y } from "../../../../../../../../_virtual/shims.mjs";
5
+ import { __exports as S } from "../../../../../../../../_virtual/getPrefix.mjs";
6
+ Object.defineProperty(a, "__esModule", {
7
+ value: !0
8
+ });
9
+ a.addClassName = g;
10
+ a.addEvent = w;
11
+ a.addUserSelectStyles = B;
12
+ a.createCSSTransform = b;
13
+ a.createSVGTransform = M;
14
+ a.getTouch = P;
15
+ a.getTouchIdentifier = R;
16
+ a.getTranslation = u;
17
+ a.innerHeight = _;
18
+ a.innerWidth = x;
19
+ a.matchesSelector = h;
20
+ a.matchesSelectorAndParentsTo = v;
21
+ a.offsetXYFromParent = L;
22
+ a.outerHeight = W;
23
+ a.outerWidth = C;
24
+ a.removeClassName = m;
25
+ a.removeEvent = E;
26
+ a.removeUserSelectStyles = D;
27
+ var i = y, d = T(S);
28
+ function f(e) {
29
+ if (typeof WeakMap != "function")
30
+ return null;
31
+ var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
32
+ return (f = function(r) {
33
+ return r ? n : t;
34
+ })(e);
35
+ }
36
+ function T(e, t) {
37
+ if (!t && e && e.__esModule)
38
+ return e;
39
+ if (e === null || typeof e != "object" && typeof e != "function")
40
+ return { default: e };
41
+ var n = f(t);
42
+ if (n && n.has(e))
43
+ return n.get(e);
44
+ var r = {}, o = Object.defineProperty && Object.getOwnPropertyDescriptor;
45
+ for (var c in e)
46
+ if (c !== "default" && Object.prototype.hasOwnProperty.call(e, c)) {
47
+ var s = o ? Object.getOwnPropertyDescriptor(e, c) : null;
48
+ s && (s.get || s.set) ? Object.defineProperty(r, c, s) : r[c] = e[c];
49
+ }
50
+ return r.default = e, n && n.set(e, r), r;
51
+ }
52
+ let l = "";
53
+ function h(e, t) {
54
+ return l || (l = (0, i.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(n) {
55
+ return (0, i.isFunction)(e[n]);
56
+ })), (0, i.isFunction)(e[l]) ? e[l](t) : !1;
57
+ }
58
+ function v(e, t, n) {
59
+ let r = e;
60
+ do {
61
+ if (h(r, t))
62
+ return !0;
63
+ if (r === n)
64
+ return !1;
65
+ r = r.parentNode;
66
+ } while (r);
67
+ return !1;
68
+ }
69
+ function w(e, t, n, r) {
70
+ if (!e)
71
+ return;
72
+ const o = {
73
+ capture: !0,
74
+ ...r
75
+ };
76
+ e.addEventListener ? e.addEventListener(t, n, o) : e.attachEvent ? e.attachEvent("on" + t, n) : e["on" + t] = n;
77
+ }
78
+ function E(e, t, n, r) {
79
+ if (!e)
80
+ return;
81
+ const o = {
82
+ capture: !0,
83
+ ...r
84
+ };
85
+ e.removeEventListener ? e.removeEventListener(t, n, o) : e.detachEvent ? e.detachEvent("on" + t, n) : e["on" + t] = null;
86
+ }
87
+ function W(e) {
88
+ let t = e.clientHeight;
89
+ const n = e.ownerDocument.defaultView.getComputedStyle(e);
90
+ return t += (0, i.int)(n.borderTopWidth), t += (0, i.int)(n.borderBottomWidth), t;
91
+ }
92
+ function C(e) {
93
+ let t = e.clientWidth;
94
+ const n = e.ownerDocument.defaultView.getComputedStyle(e);
95
+ return t += (0, i.int)(n.borderLeftWidth), t += (0, i.int)(n.borderRightWidth), t;
96
+ }
97
+ function _(e) {
98
+ let t = e.clientHeight;
99
+ const n = e.ownerDocument.defaultView.getComputedStyle(e);
100
+ return t -= (0, i.int)(n.paddingTop), t -= (0, i.int)(n.paddingBottom), t;
101
+ }
102
+ function x(e) {
103
+ let t = e.clientWidth;
104
+ const n = e.ownerDocument.defaultView.getComputedStyle(e);
105
+ return t -= (0, i.int)(n.paddingLeft), t -= (0, i.int)(n.paddingRight), t;
106
+ }
107
+ function L(e, t, n) {
108
+ const o = t === t.ownerDocument.body ? {
109
+ left: 0,
110
+ top: 0
111
+ } : t.getBoundingClientRect(), c = (e.clientX + t.scrollLeft - o.left) / n, s = (e.clientY + t.scrollTop - o.top) / n;
112
+ return {
113
+ x: c,
114
+ y: s
115
+ };
116
+ }
117
+ function b(e, t) {
118
+ const n = u(e, t, "px");
119
+ return {
120
+ [(0, d.browserPrefixToKey)("transform", d.default)]: n
121
+ };
122
+ }
123
+ function M(e, t) {
124
+ return u(e, t, "");
125
+ }
126
+ function u(e, t, n) {
127
+ let {
128
+ x: r,
129
+ y: o
130
+ } = e, c = "translate(".concat(r).concat(n, ",").concat(o).concat(n, ")");
131
+ if (t) {
132
+ const s = "".concat(typeof t.x == "string" ? t.x : t.x + n), p = "".concat(typeof t.y == "string" ? t.y : t.y + n);
133
+ c = "translate(".concat(s, ", ").concat(p, ")") + c;
134
+ }
135
+ return c;
136
+ }
137
+ function P(e, t) {
138
+ return e.targetTouches && (0, i.findInArray)(e.targetTouches, (n) => t === n.identifier) || e.changedTouches && (0, i.findInArray)(e.changedTouches, (n) => t === n.identifier);
139
+ }
140
+ function R(e) {
141
+ if (e.targetTouches && e.targetTouches[0])
142
+ return e.targetTouches[0].identifier;
143
+ if (e.changedTouches && e.changedTouches[0])
144
+ return e.changedTouches[0].identifier;
145
+ }
146
+ function B(e) {
147
+ if (!e)
148
+ return;
149
+ let t = e.getElementById("react-draggable-style-el");
150
+ t || (t = e.createElement("style"), t.type = "text/css", t.id = "react-draggable-style-el", t.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
151
+ `, t.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
152
+ `, e.getElementsByTagName("head")[0].appendChild(t)), e.body && g(e.body, "react-draggable-transparent-selection");
153
+ }
154
+ function D(e) {
155
+ if (e)
156
+ try {
157
+ if (e.body && m(e.body, "react-draggable-transparent-selection"), e.selection)
158
+ e.selection.empty();
159
+ else {
160
+ const t = (e.defaultView || window).getSelection();
161
+ t && t.type !== "Caret" && t.removeAllRanges();
162
+ }
163
+ } catch {
164
+ }
165
+ }
166
+ function g(e, t) {
167
+ e.classList ? e.classList.add(t) : e.className.match(new RegExp("(?:^|\\s)".concat(t, "(?!\\S)"))) || (e.className += " ".concat(t));
168
+ }
169
+ function m(e, t) {
170
+ e.classList ? e.classList.remove(t) : e.className = e.className.replace(new RegExp("(?:^|\\s)".concat(t, "(?!\\S)"), "g"), "");
171
+ }
172
+ export {
173
+ a as default
174
+ };
@@ -0,0 +1,35 @@
1
+ import { __exports as o } from "../../../../../../../../_virtual/getPrefix.mjs";
2
+ Object.defineProperty(o, "__esModule", {
3
+ value: !0
4
+ });
5
+ o.browserPrefixToKey = f;
6
+ o.browserPrefixToStyle = l;
7
+ o.default = void 0;
8
+ o.getPrefix = u;
9
+ const i = ["Moz", "Webkit", "O", "ms"];
10
+ function u() {
11
+ var e;
12
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
13
+ if (typeof window > "u")
14
+ return "";
15
+ const r = (e = window.document) === null || e === void 0 || (e = e.documentElement) === null || e === void 0 ? void 0 : e.style;
16
+ if (!r || t in r)
17
+ return "";
18
+ for (let n = 0; n < i.length; n++)
19
+ if (f(t, i[n]) in r)
20
+ return i[n];
21
+ return "";
22
+ }
23
+ function f(e, t) {
24
+ return t ? "".concat(t).concat(s(e)) : e;
25
+ }
26
+ function l(e, t) {
27
+ return t ? "-".concat(t.toLowerCase(), "-").concat(e) : e;
28
+ }
29
+ function s(e) {
30
+ let t = "", r = !0;
31
+ for (let n = 0; n < e.length; n++)
32
+ r ? (t += e[n].toUpperCase(), r = !1) : e[n] === "-" ? r = !0 : t += e[n];
33
+ return t;
34
+ }
35
+ o.default = u();
@@ -0,0 +1,7 @@
1
+ import { __exports as e } from "../../../../../../../../_virtual/log.mjs";
2
+ Object.defineProperty(e, "__esModule", {
3
+ value: !0
4
+ });
5
+ e.default = o;
6
+ function o() {
7
+ }
@@ -0,0 +1,107 @@
1
+ import { __exports as i } from "../../../../../../../../_virtual/positionFns.mjs";
2
+ import "./shims.mjs";
3
+ import "./domFns.mjs";
4
+ import { __exports as h } from "../../../../../../../../_virtual/shims.mjs";
5
+ import { __exports as X } from "../../../../../../../../_virtual/domFns.mjs";
6
+ Object.defineProperty(i, "__esModule", {
7
+ value: !0
8
+ });
9
+ i.canDragX = N;
10
+ i.canDragY = M;
11
+ i.createCoreData = w;
12
+ i.createDraggableData = P;
13
+ i.getBoundPosition = Y;
14
+ i.getControlPosition = _;
15
+ i.snapToGrid = D;
16
+ var r = h, f = X;
17
+ function Y(t, o, e) {
18
+ if (!t.props.bounds)
19
+ return [o, e];
20
+ let {
21
+ bounds: n
22
+ } = t.props;
23
+ n = typeof n == "string" ? n : y(n);
24
+ const s = d(t);
25
+ if (typeof n == "string") {
26
+ const {
27
+ ownerDocument: a
28
+ } = s, m = a.defaultView;
29
+ let u;
30
+ if (n === "parent" ? u = s.parentNode : u = a.querySelector(n), !(u instanceof m.HTMLElement))
31
+ throw new Error('Bounds selector "' + n + '" could not find an element.');
32
+ const c = u, p = m.getComputedStyle(s), l = m.getComputedStyle(c);
33
+ n = {
34
+ left: -s.offsetLeft + (0, r.int)(l.paddingLeft) + (0, r.int)(p.marginLeft),
35
+ top: -s.offsetTop + (0, r.int)(l.paddingTop) + (0, r.int)(p.marginTop),
36
+ right: (0, f.innerWidth)(c) - (0, f.outerWidth)(s) - s.offsetLeft + (0, r.int)(l.paddingRight) - (0, r.int)(p.marginRight),
37
+ bottom: (0, f.innerHeight)(c) - (0, f.outerHeight)(s) - s.offsetTop + (0, r.int)(l.paddingBottom) - (0, r.int)(p.marginBottom)
38
+ };
39
+ }
40
+ return (0, r.isNum)(n.right) && (o = Math.min(o, n.right)), (0, r.isNum)(n.bottom) && (e = Math.min(e, n.bottom)), (0, r.isNum)(n.left) && (o = Math.max(o, n.left)), (0, r.isNum)(n.top) && (e = Math.max(e, n.top)), [o, e];
41
+ }
42
+ function D(t, o, e) {
43
+ const n = Math.round(o / t[0]) * t[0], s = Math.round(e / t[1]) * t[1];
44
+ return [n, s];
45
+ }
46
+ function N(t) {
47
+ return t.props.axis === "both" || t.props.axis === "x";
48
+ }
49
+ function M(t) {
50
+ return t.props.axis === "both" || t.props.axis === "y";
51
+ }
52
+ function _(t, o, e) {
53
+ const n = typeof o == "number" ? (0, f.getTouch)(t, o) : null;
54
+ if (typeof o == "number" && !n)
55
+ return null;
56
+ const s = d(e), a = e.props.offsetParent || s.offsetParent || s.ownerDocument.body;
57
+ return (0, f.offsetXYFromParent)(n || t, a, e.props.scale);
58
+ }
59
+ function w(t, o, e) {
60
+ const n = !(0, r.isNum)(t.lastX), s = d(t);
61
+ return n ? {
62
+ node: s,
63
+ deltaX: 0,
64
+ deltaY: 0,
65
+ lastX: o,
66
+ lastY: e,
67
+ x: o,
68
+ y: e
69
+ } : {
70
+ node: s,
71
+ deltaX: o - t.lastX,
72
+ deltaY: e - t.lastY,
73
+ lastX: t.lastX,
74
+ lastY: t.lastY,
75
+ x: o,
76
+ y: e
77
+ };
78
+ }
79
+ function P(t, o) {
80
+ const e = t.props.scale;
81
+ return {
82
+ node: o.node,
83
+ x: t.state.x + o.deltaX / e,
84
+ y: t.state.y + o.deltaY / e,
85
+ deltaX: o.deltaX / e,
86
+ deltaY: o.deltaY / e,
87
+ lastX: t.state.x,
88
+ lastY: t.state.y
89
+ };
90
+ }
91
+ function y(t) {
92
+ return {
93
+ left: t.left,
94
+ top: t.top,
95
+ right: t.right,
96
+ bottom: t.bottom
97
+ };
98
+ }
99
+ function d(t) {
100
+ const o = t.findDOMNode();
101
+ if (!o)
102
+ throw new Error("<DraggableCore>: Unmounted during event!");
103
+ return o;
104
+ }
105
+ export {
106
+ i as default
107
+ };
@@ -0,0 +1,30 @@
1
+ import { __exports as e } from "../../../../../../../../_virtual/shims.mjs";
2
+ Object.defineProperty(e, "__esModule", {
3
+ value: !0
4
+ });
5
+ e.dontSetMe = f;
6
+ e.findInArray = r;
7
+ e.int = c;
8
+ e.isFunction = u;
9
+ e.isNum = s;
10
+ function r(t, o) {
11
+ for (let n = 0, i = t.length; n < i; n++)
12
+ if (o.apply(o, [t[n], n, t]))
13
+ return t[n];
14
+ }
15
+ function u(t) {
16
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Function]";
17
+ }
18
+ function s(t) {
19
+ return typeof t == "number" && !isNaN(t);
20
+ }
21
+ function c(t) {
22
+ return parseInt(t, 10);
23
+ }
24
+ function f(t, o, n) {
25
+ if (t[o])
26
+ return new Error("Invalid prop ".concat(o, " passed to ").concat(n, " - do not set this, set it on the child."));
27
+ }
28
+ export {
29
+ e as default
30
+ };
@@ -0,0 +1,201 @@
1
+ import { __exports as P } from "../../../../../../_virtual/Resizable.mjs";
2
+ import x from "react";
3
+ import { c as E } from "../../../../react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs";
4
+ import "./utils.mjs";
5
+ import "./propTypes.mjs";
6
+ import { __exports as k } from "../../../../../../_virtual/utils.mjs";
7
+ import { __exports as T } from "../../../../../../_virtual/propTypes.mjs";
8
+ P.__esModule = !0;
9
+ P.default = void 0;
10
+ var h = N(x), $ = E, q = k, I = T, K = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
11
+ function C(e) {
12
+ if (typeof WeakMap != "function")
13
+ return null;
14
+ var o = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap();
15
+ return (C = function(r) {
16
+ return r ? i : o;
17
+ })(e);
18
+ }
19
+ function N(e, o) {
20
+ if (!o && e && e.__esModule)
21
+ return e;
22
+ if (e === null || typeof e != "object" && typeof e != "function")
23
+ return { default: e };
24
+ var i = C(o);
25
+ if (i && i.has(e))
26
+ return i.get(e);
27
+ var a = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor;
28
+ for (var t in e)
29
+ if (t !== "default" && Object.prototype.hasOwnProperty.call(e, t)) {
30
+ var n = r ? Object.getOwnPropertyDescriptor(e, t) : null;
31
+ n && (n.get || n.set) ? Object.defineProperty(a, t, n) : a[t] = e[t];
32
+ }
33
+ return a.default = e, i && i.set(e, a), a;
34
+ }
35
+ function z() {
36
+ return z = Object.assign ? Object.assign.bind() : function(e) {
37
+ for (var o = 1; o < arguments.length; o++) {
38
+ var i = arguments[o];
39
+ for (var a in i)
40
+ Object.prototype.hasOwnProperty.call(i, a) && (e[a] = i[a]);
41
+ }
42
+ return e;
43
+ }, z.apply(this, arguments);
44
+ }
45
+ function X(e, o) {
46
+ if (e == null)
47
+ return {};
48
+ var i = {}, a = Object.keys(e), r, t;
49
+ for (t = 0; t < a.length; t++)
50
+ r = a[t], !(o.indexOf(r) >= 0) && (i[r] = e[r]);
51
+ return i;
52
+ }
53
+ function D(e, o) {
54
+ var i = Object.keys(e);
55
+ if (Object.getOwnPropertySymbols) {
56
+ var a = Object.getOwnPropertySymbols(e);
57
+ o && (a = a.filter(function(r) {
58
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
59
+ })), i.push.apply(i, a);
60
+ }
61
+ return i;
62
+ }
63
+ function b(e) {
64
+ for (var o = 1; o < arguments.length; o++) {
65
+ var i = arguments[o] != null ? arguments[o] : {};
66
+ o % 2 ? D(Object(i), !0).forEach(function(a) {
67
+ Y(e, a, i[a]);
68
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : D(Object(i)).forEach(function(a) {
69
+ Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(i, a));
70
+ });
71
+ }
72
+ return e;
73
+ }
74
+ function Y(e, o, i) {
75
+ return o = B(o), o in e ? Object.defineProperty(e, o, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[o] = i, e;
76
+ }
77
+ function B(e) {
78
+ var o = L(e, "string");
79
+ return typeof o == "symbol" ? o : String(o);
80
+ }
81
+ function L(e, o) {
82
+ if (typeof e != "object" || e === null)
83
+ return e;
84
+ var i = e[Symbol.toPrimitive];
85
+ if (i !== void 0) {
86
+ var a = i.call(e, o || "default");
87
+ if (typeof a != "object")
88
+ return a;
89
+ throw new TypeError("@@toPrimitive must return a primitive value.");
90
+ }
91
+ return (o === "string" ? String : Number)(e);
92
+ }
93
+ function U(e, o) {
94
+ e.prototype = Object.create(o.prototype), e.prototype.constructor = e, _(e, o);
95
+ }
96
+ function _(e, o) {
97
+ return _ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(a, r) {
98
+ return a.__proto__ = r, a;
99
+ }, _(e, o);
100
+ }
101
+ var S = /* @__PURE__ */ function(e) {
102
+ U(o, e);
103
+ function o() {
104
+ for (var a, r = arguments.length, t = new Array(r), n = 0; n < r; n++)
105
+ t[n] = arguments[n];
106
+ return a = e.call.apply(e, [this].concat(t)) || this, a.handleRefs = {}, a.lastHandleRect = null, a.slack = null, a;
107
+ }
108
+ var i = o.prototype;
109
+ return i.componentWillUnmount = function() {
110
+ this.resetData();
111
+ }, i.resetData = function() {
112
+ this.lastHandleRect = this.slack = null;
113
+ }, i.runConstraints = function(r, t) {
114
+ var n = this.props, l = n.minConstraints, p = n.maxConstraints, f = n.lockAspectRatio;
115
+ if (!l && !p && !f)
116
+ return [r, t];
117
+ if (f) {
118
+ var c = this.props.width / this.props.height, s = r - this.props.width, u = t - this.props.height;
119
+ Math.abs(s) > Math.abs(u * c) ? t = r / c : r = t * c;
120
+ }
121
+ var d = r, O = t, m = this.slack || [0, 0], v = m[0], y = m[1];
122
+ return r += v, t += y, l && (r = Math.max(l[0], r), t = Math.max(l[1], t)), p && (r = Math.min(p[0], r), t = Math.min(p[1], t)), this.slack = [v + (d - r), y + (O - t)], [r, t];
123
+ }, i.resizeHandler = function(r, t) {
124
+ var n = this;
125
+ return function(l, p) {
126
+ var f = p.node, c = p.deltaX, s = p.deltaY;
127
+ r === "onResizeStart" && n.resetData();
128
+ var u = (n.props.axis === "both" || n.props.axis === "x") && t !== "n" && t !== "s", d = (n.props.axis === "both" || n.props.axis === "y") && t !== "e" && t !== "w";
129
+ if (!(!u && !d)) {
130
+ var O = t[0], m = t[t.length - 1], v = f.getBoundingClientRect();
131
+ if (n.lastHandleRect != null) {
132
+ if (m === "w") {
133
+ var y = v.left - n.lastHandleRect.left;
134
+ c += y;
135
+ }
136
+ if (O === "n") {
137
+ var j = v.top - n.lastHandleRect.top;
138
+ s += j;
139
+ }
140
+ }
141
+ n.lastHandleRect = v, m === "w" && (c = -c), O === "n" && (s = -s);
142
+ var g = n.props.width + (u ? c / n.props.transformScale : 0), R = n.props.height + (d ? s / n.props.transformScale : 0), H = n.runConstraints(g, R);
143
+ g = H[0], R = H[1];
144
+ var M = g !== n.props.width || R !== n.props.height, w = typeof n.props[r] == "function" ? n.props[r] : null, W = r === "onResize" && !M;
145
+ w && !W && (l.persist == null || l.persist(), w(l, {
146
+ node: f,
147
+ size: {
148
+ width: g,
149
+ height: R
150
+ },
151
+ handle: t
152
+ })), r === "onResizeStop" && n.resetData();
153
+ }
154
+ };
155
+ }, i.renderResizeHandle = function(r, t) {
156
+ var n = this.props.handle;
157
+ if (!n)
158
+ return /* @__PURE__ */ h.createElement("span", {
159
+ className: "react-resizable-handle react-resizable-handle-" + r,
160
+ ref: t
161
+ });
162
+ if (typeof n == "function")
163
+ return n(r, t);
164
+ var l = typeof n.type == "string", p = b({
165
+ ref: t
166
+ }, l ? {} : {
167
+ handleAxis: r
168
+ });
169
+ return /* @__PURE__ */ h.cloneElement(n, p);
170
+ }, i.render = function() {
171
+ var r = this, t = this.props, n = t.children, l = t.className, p = t.draggableOpts;
172
+ t.width, t.height, t.handle, t.handleSize, t.lockAspectRatio, t.axis, t.minConstraints, t.maxConstraints, t.onResize, t.onResizeStop, t.onResizeStart;
173
+ var f = t.resizeHandles;
174
+ t.transformScale;
175
+ var c = X(t, K);
176
+ return (0, q.cloneElement)(n, b(b({}, c), {}, {
177
+ className: (l ? l + " " : "") + "react-resizable",
178
+ children: [].concat(n.props.children, f.map(function(s) {
179
+ var u, d = (u = r.handleRefs[s]) != null ? u : r.handleRefs[s] = /* @__PURE__ */ h.createRef();
180
+ return /* @__PURE__ */ h.createElement($.DraggableCore, z({}, p, {
181
+ nodeRef: d,
182
+ key: "resizableHandle-" + s,
183
+ onStop: r.resizeHandler("onResizeStop", s),
184
+ onStart: r.resizeHandler("onResizeStart", s),
185
+ onDrag: r.resizeHandler("onResize", s)
186
+ }), r.renderResizeHandle(s, d));
187
+ }))
188
+ }));
189
+ }, o;
190
+ }(h.Component);
191
+ P.default = S;
192
+ S.propTypes = I.resizableProps;
193
+ S.defaultProps = {
194
+ axis: "both",
195
+ handleSize: [20, 20],
196
+ lockAspectRatio: !1,
197
+ minConstraints: [20, 20],
198
+ maxConstraints: [1 / 0, 1 / 0],
199
+ resizeHandles: ["se"],
200
+ transformScale: 1
201
+ };