@loopr-ai/craft 0.6.0 → 0.7.1
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.
- package/dist/Box-8cd400c2.js +58 -0
- package/dist/{ButtonBase-85c9347b.js → ButtonBase-fc1e48eb.js} +3 -3
- package/dist/Form.interfaces-c9b49688.js +6 -0
- package/dist/{createSvgIcon-70f9f72b.js → Grow-a906cda2.js} +3944 -4020
- package/dist/TextField-a534df29.js +5931 -0
- package/dist/{TransitionGroupContext-fe9a562f.js → TransitionGroupContext-ba502e63.js} +3 -3
- package/dist/Typography-65e5f8a8.js +178 -0
- package/dist/{ZoomControllers-7fb8d495.js → ZoomControllers-8a147df0.js} +848 -900
- package/dist/components/cell/AvatarGroup/index.js +3 -3
- package/dist/components/cell/Button/index.js +3 -3
- package/dist/components/cell/Chip/index.js +5 -5
- package/dist/components/cell/ProgressBar/index.js +3 -3
- package/dist/components/cell/Search/index.js +27 -5949
- package/dist/components/cell/Typography/index.js +16 -188
- package/dist/components/organ/Form/FieldInput.d.ts +27 -0
- package/dist/components/organ/Form/FieldInput.js +440 -0
- package/dist/components/organ/Form/Form.interfaces.d.ts +55 -0
- package/dist/components/organ/Form/Form.interfaces.js +1 -0
- package/dist/components/organ/Form/Form.styles.d.ts +5 -0
- package/dist/components/organ/Form/Form.styles.js +10 -0
- package/dist/components/organ/Form/Form.utils.d.ts +2 -0
- package/dist/components/organ/Form/Form.utils.js +27 -0
- package/dist/components/organ/Form/index.d.ts +30 -0
- package/dist/components/organ/Form/index.js +137 -0
- package/dist/components/organ/ZoomControlWithDrag/ZoomControllers.js +3 -2
- package/dist/components/organ/ZoomControlWithDrag/index.js +18 -17
- package/dist/createSvgIcon-8e5d9dc7.js +81 -0
- package/dist/{createSvgIcon-58aa3adf.js → createSvgIcon-bb3d4825.js} +5 -5
- package/dist/{createTheme-a4db2989.js → createTheme-ca1567c6.js} +7 -7
- package/dist/dividerClasses-0233db5a.js +10 -0
- package/dist/{exactProp-d79ccada.js → exactProp-3d9df1ae.js} +1 -1
- package/dist/{extendSxProp-db8b9da5.js → extendSxProp-fc2654e5.js} +1 -1
- package/dist/global/theme.js +1 -1
- package/dist/main.d.ts +5 -3
- package/dist/main.js +20 -16
- package/dist/providers/CraftThemeProvider.js +2 -2
- package/dist/{styled-126c6a62.js → styled-80b57810.js} +49 -49
- package/dist/{useTheme-573c40a2.js → useTheme-16446f25.js} +1 -1
- package/package.json +1 -1
|
@@ -1,42 +1,21 @@
|
|
|
1
|
-
import At, { jsx as _, jsxs as wt, Fragment as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
1
|
+
import At, { jsx as _, jsxs as wt, Fragment as Vr } from "react/jsx-runtime";
|
|
2
|
+
import { r as Rt, i as Dt } from "./createSvgIcon-8e5d9dc7.js";
|
|
3
|
+
import * as D from "react";
|
|
4
|
+
import Re, { useRef as Pt, useImperativeHandle as Hr, useEffect as Gt, useContext as Jt } from "react";
|
|
5
|
+
import { g as It, b as Pe, a as S, f as Ie, _ as je, P as p } from "./createTheme-ca1567c6.js";
|
|
6
|
+
import { g as eo, a as xe, b as xt, c as Be, e as Mt } from "./styled-80b57810.js";
|
|
7
|
+
import { u as Fr } from "./useTheme-16446f25.js";
|
|
8
|
+
import { o as xo, P as Zr, H as Tt, k as Ur, b as qr, u as Kr, G as Mo, l as dt, e as Qr } from "./Grow-a906cda2.js";
|
|
8
9
|
import { c as Jo } from "./chainPropTypes-004bf492.js";
|
|
9
|
-
import { r as Io, u as
|
|
10
|
-
import { c as
|
|
11
|
-
import { B as
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
defaultClassName: r = "MuiBox-root",
|
|
19
|
-
generateClassName: i
|
|
20
|
-
} = e, n = ei("div", {
|
|
21
|
-
shouldForwardProp: (s) => s !== "theme" && s !== "sx" && s !== "as"
|
|
22
|
-
})(Gr);
|
|
23
|
-
return /* @__PURE__ */ R.forwardRef(function(l, d) {
|
|
24
|
-
const p = ti(t), f = li(l), {
|
|
25
|
-
className: c,
|
|
26
|
-
component: v = "div"
|
|
27
|
-
} = f, h = Ne(f, ui);
|
|
28
|
-
return /* @__PURE__ */ _(n, C({
|
|
29
|
-
as: v,
|
|
30
|
-
ref: d,
|
|
31
|
-
className: Ae(c, i ? i(r) : r),
|
|
32
|
-
theme: o && p[o] || p
|
|
33
|
-
}, h));
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function di(e) {
|
|
37
|
-
return Dt("MuiIconButton", e);
|
|
38
|
-
}
|
|
39
|
-
const fi = Nt("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), ci = fi, vi = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], mi = (e) => {
|
|
10
|
+
import { r as Io, u as Zt, a as Yo, b as Gr, c as Jr } from "./TransitionGroupContext-ba502e63.js";
|
|
11
|
+
import { c as Ir } from "./useThemeWithoutDefault-188598a8.js";
|
|
12
|
+
import { B as ei } from "./ButtonBase-fc1e48eb.js";
|
|
13
|
+
import { B as ti } from "./Box-8cd400c2.js";
|
|
14
|
+
import { g as oi } from "./dividerClasses-0233db5a.js";
|
|
15
|
+
function ri(e) {
|
|
16
|
+
return It("MuiIconButton", e);
|
|
17
|
+
}
|
|
18
|
+
const ii = eo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), ni = ii, ai = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], si = (e) => {
|
|
40
19
|
const {
|
|
41
20
|
classes: o,
|
|
42
21
|
disabled: t,
|
|
@@ -46,8 +25,8 @@ const fi = Nt("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
46
25
|
} = e, a = {
|
|
47
26
|
root: ["root", t && "disabled", r !== "default" && `color${Pe(r)}`, i && `edge${Pe(i)}`, `size${Pe(n)}`]
|
|
48
27
|
};
|
|
49
|
-
return
|
|
50
|
-
},
|
|
28
|
+
return Mt(a, ri, o);
|
|
29
|
+
}, li = xe(ei, {
|
|
51
30
|
name: "MuiIconButton",
|
|
52
31
|
slot: "Root",
|
|
53
32
|
overridesResolver: (e, o) => {
|
|
@@ -59,7 +38,7 @@ const fi = Nt("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
59
38
|
})(({
|
|
60
39
|
theme: e,
|
|
61
40
|
ownerState: o
|
|
62
|
-
}) =>
|
|
41
|
+
}) => S({
|
|
63
42
|
textAlign: "center",
|
|
64
43
|
flex: "0 0 auto",
|
|
65
44
|
fontSize: e.typography.pxToRem(24),
|
|
@@ -89,12 +68,12 @@ const fi = Nt("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
89
68
|
}) => {
|
|
90
69
|
var t;
|
|
91
70
|
const r = (t = (e.vars || e).palette) == null ? void 0 : t[o.color];
|
|
92
|
-
return
|
|
71
|
+
return S({}, o.color === "inherit" && {
|
|
93
72
|
color: "inherit"
|
|
94
|
-
}, o.color !== "inherit" && o.color !== "default" &&
|
|
73
|
+
}, o.color !== "inherit" && o.color !== "default" && S({
|
|
95
74
|
color: r == null ? void 0 : r.main
|
|
96
75
|
}, !o.disableRipple && {
|
|
97
|
-
"&:hover":
|
|
76
|
+
"&:hover": S({}, r && {
|
|
98
77
|
backgroundColor: e.vars ? `rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : Ie(r.main, e.palette.action.hoverOpacity)
|
|
99
78
|
}, {
|
|
100
79
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -109,13 +88,13 @@ const fi = Nt("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
109
88
|
padding: 12,
|
|
110
89
|
fontSize: e.typography.pxToRem(28)
|
|
111
90
|
}, {
|
|
112
|
-
[`&.${
|
|
91
|
+
[`&.${ni.disabled}`]: {
|
|
113
92
|
backgroundColor: "transparent",
|
|
114
93
|
color: (e.vars || e).palette.action.disabled
|
|
115
94
|
}
|
|
116
95
|
});
|
|
117
|
-
}), er = /* @__PURE__ */
|
|
118
|
-
const r =
|
|
96
|
+
}), er = /* @__PURE__ */ D.forwardRef(function(o, t) {
|
|
97
|
+
const r = xt({
|
|
119
98
|
props: o,
|
|
120
99
|
name: "MuiIconButton"
|
|
121
100
|
}), {
|
|
@@ -125,16 +104,16 @@ const fi = Nt("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
125
104
|
color: s = "default",
|
|
126
105
|
disabled: l = !1,
|
|
127
106
|
disableFocusRipple: d = !1,
|
|
128
|
-
size:
|
|
129
|
-
} = r, f =
|
|
107
|
+
size: u = "medium"
|
|
108
|
+
} = r, f = je(r, ai), c = S({}, r, {
|
|
130
109
|
edge: i,
|
|
131
110
|
color: s,
|
|
132
111
|
disabled: l,
|
|
133
112
|
disableFocusRipple: d,
|
|
134
|
-
size:
|
|
135
|
-
}), v =
|
|
136
|
-
return /* @__PURE__ */ _(
|
|
137
|
-
className:
|
|
113
|
+
size: u
|
|
114
|
+
}), v = si(c);
|
|
115
|
+
return /* @__PURE__ */ _(li, S({
|
|
116
|
+
className: Be(v.root, a),
|
|
138
117
|
centerRipple: !0,
|
|
139
118
|
focusRipple: !d,
|
|
140
119
|
disabled: l,
|
|
@@ -152,33 +131,33 @@ process.env.NODE_ENV !== "production" && (er.propTypes = {
|
|
|
152
131
|
/**
|
|
153
132
|
* The icon to display.
|
|
154
133
|
*/
|
|
155
|
-
children: Jo(
|
|
134
|
+
children: Jo(p.node, (e) => D.Children.toArray(e.children).some((t) => /* @__PURE__ */ D.isValidElement(t) && t.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
156
135
|
`)) : null),
|
|
157
136
|
/**
|
|
158
137
|
* Override or extend the styles applied to the component.
|
|
159
138
|
*/
|
|
160
|
-
classes:
|
|
139
|
+
classes: p.object,
|
|
161
140
|
/**
|
|
162
141
|
* @ignore
|
|
163
142
|
*/
|
|
164
|
-
className:
|
|
143
|
+
className: p.string,
|
|
165
144
|
/**
|
|
166
145
|
* The color of the component.
|
|
167
146
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
168
147
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
169
148
|
* @default 'default'
|
|
170
149
|
*/
|
|
171
|
-
color:
|
|
150
|
+
color: p.oneOfType([p.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), p.string]),
|
|
172
151
|
/**
|
|
173
152
|
* If `true`, the component is disabled.
|
|
174
153
|
* @default false
|
|
175
154
|
*/
|
|
176
|
-
disabled:
|
|
155
|
+
disabled: p.bool,
|
|
177
156
|
/**
|
|
178
157
|
* If `true`, the keyboard focus ripple is disabled.
|
|
179
158
|
* @default false
|
|
180
159
|
*/
|
|
181
|
-
disableFocusRipple:
|
|
160
|
+
disableFocusRipple: p.bool,
|
|
182
161
|
/**
|
|
183
162
|
* If `true`, the ripple effect is disabled.
|
|
184
163
|
*
|
|
@@ -186,7 +165,7 @@ process.env.NODE_ENV !== "production" && (er.propTypes = {
|
|
|
186
165
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
187
166
|
* @default false
|
|
188
167
|
*/
|
|
189
|
-
disableRipple:
|
|
168
|
+
disableRipple: p.bool,
|
|
190
169
|
/**
|
|
191
170
|
* If given, uses a negative margin to counteract the padding on one
|
|
192
171
|
* side (this is often helpful for aligning the left or right
|
|
@@ -194,32 +173,32 @@ process.env.NODE_ENV !== "production" && (er.propTypes = {
|
|
|
194
173
|
* size and shape).
|
|
195
174
|
* @default false
|
|
196
175
|
*/
|
|
197
|
-
edge:
|
|
176
|
+
edge: p.oneOf(["end", "start", !1]),
|
|
198
177
|
/**
|
|
199
178
|
* The size of the component.
|
|
200
179
|
* `small` is equivalent to the dense button styling.
|
|
201
180
|
* @default 'medium'
|
|
202
181
|
*/
|
|
203
|
-
size:
|
|
182
|
+
size: p.oneOfType([p.oneOf(["small", "medium", "large"]), p.string]),
|
|
204
183
|
/**
|
|
205
184
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
206
185
|
*/
|
|
207
|
-
sx:
|
|
186
|
+
sx: p.oneOfType([p.arrayOf(p.oneOfType([p.func, p.object, p.bool])), p.func, p.object])
|
|
208
187
|
});
|
|
209
|
-
const ft = er,
|
|
188
|
+
const ft = er, pi = {
|
|
210
189
|
disableDefaultClasses: !1
|
|
211
|
-
},
|
|
212
|
-
function
|
|
190
|
+
}, ui = /* @__PURE__ */ D.createContext(pi);
|
|
191
|
+
function di(e) {
|
|
213
192
|
const {
|
|
214
193
|
disableDefaultClasses: o
|
|
215
|
-
} =
|
|
194
|
+
} = D.useContext(ui);
|
|
216
195
|
return (t) => o ? "" : e(t);
|
|
217
196
|
}
|
|
218
|
-
var H = "top", re = "bottom", ie = "right", F = "left", to = "auto", ot = [H, re, ie, F],
|
|
219
|
-
return e.concat([o + "-" +
|
|
197
|
+
var H = "top", re = "bottom", ie = "right", F = "left", to = "auto", ot = [H, re, ie, F], ze = "start", et = "end", fi = "clippingParents", tr = "viewport", qe = "popper", ci = "reference", _o = /* @__PURE__ */ ot.reduce(function(e, o) {
|
|
198
|
+
return e.concat([o + "-" + ze, o + "-" + et]);
|
|
220
199
|
}, []), or = /* @__PURE__ */ [].concat(ot, [to]).reduce(function(e, o) {
|
|
221
|
-
return e.concat([o, o + "-" +
|
|
222
|
-
}, []),
|
|
200
|
+
return e.concat([o, o + "-" + ze, o + "-" + et]);
|
|
201
|
+
}, []), vi = "beforeRead", mi = "read", hi = "afterRead", gi = "beforeMain", bi = "main", yi = "afterMain", wi = "beforeWrite", Pi = "write", Ti = "afterWrite", Ci = [vi, mi, hi, gi, bi, yi, wi, Pi, Ti];
|
|
223
202
|
function ce(e) {
|
|
224
203
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
225
204
|
}
|
|
@@ -246,7 +225,7 @@ function oo(e) {
|
|
|
246
225
|
var o = J(e).ShadowRoot;
|
|
247
226
|
return e instanceof o || e instanceof ShadowRoot;
|
|
248
227
|
}
|
|
249
|
-
function
|
|
228
|
+
function Si(e) {
|
|
250
229
|
var o = e.state;
|
|
251
230
|
Object.keys(o.elements).forEach(function(t) {
|
|
252
231
|
var r = o.styles[t] || {}, i = o.attributes[t] || {}, n = o.elements[t];
|
|
@@ -256,7 +235,7 @@ function Mi(e) {
|
|
|
256
235
|
}));
|
|
257
236
|
});
|
|
258
237
|
}
|
|
259
|
-
function
|
|
238
|
+
function Oi(e) {
|
|
260
239
|
var o = e.state, t = {
|
|
261
240
|
popper: {
|
|
262
241
|
position: o.options.strategy,
|
|
@@ -280,45 +259,45 @@ function _i(e) {
|
|
|
280
259
|
});
|
|
281
260
|
};
|
|
282
261
|
}
|
|
283
|
-
const
|
|
262
|
+
const Ei = {
|
|
284
263
|
name: "applyStyles",
|
|
285
264
|
enabled: !0,
|
|
286
265
|
phase: "write",
|
|
287
|
-
fn:
|
|
288
|
-
effect:
|
|
266
|
+
fn: Si,
|
|
267
|
+
effect: Oi,
|
|
289
268
|
requires: ["computeStyles"]
|
|
290
269
|
};
|
|
291
270
|
function fe(e) {
|
|
292
271
|
return e.split("-")[0];
|
|
293
272
|
}
|
|
294
|
-
var
|
|
295
|
-
function
|
|
273
|
+
var Ae = Math.max, Ct = Math.min, Xe = Math.round;
|
|
274
|
+
function Ut() {
|
|
296
275
|
var e = navigator.userAgentData;
|
|
297
276
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(o) {
|
|
298
277
|
return o.brand + "/" + o.version;
|
|
299
278
|
}).join(" ") : navigator.userAgent;
|
|
300
279
|
}
|
|
301
280
|
function rr() {
|
|
302
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
281
|
+
return !/^((?!chrome|android).)*safari/i.test(Ut());
|
|
303
282
|
}
|
|
304
|
-
function
|
|
283
|
+
function We(e, o, t) {
|
|
305
284
|
o === void 0 && (o = !1), t === void 0 && (t = !1);
|
|
306
285
|
var r = e.getBoundingClientRect(), i = 1, n = 1;
|
|
307
|
-
o && oe(e) && (i = e.offsetWidth > 0 &&
|
|
308
|
-
var a = De(e) ? J(e) : window, s = a.visualViewport, l = !rr() && t, d = (r.left + (l && s ? s.offsetLeft : 0)) / i,
|
|
286
|
+
o && oe(e) && (i = e.offsetWidth > 0 && Xe(r.width) / e.offsetWidth || 1, n = e.offsetHeight > 0 && Xe(r.height) / e.offsetHeight || 1);
|
|
287
|
+
var a = De(e) ? J(e) : window, s = a.visualViewport, l = !rr() && t, d = (r.left + (l && s ? s.offsetLeft : 0)) / i, u = (r.top + (l && s ? s.offsetTop : 0)) / n, f = r.width / i, c = r.height / n;
|
|
309
288
|
return {
|
|
310
289
|
width: f,
|
|
311
290
|
height: c,
|
|
312
|
-
top:
|
|
291
|
+
top: u,
|
|
313
292
|
right: d + f,
|
|
314
|
-
bottom:
|
|
293
|
+
bottom: u + c,
|
|
315
294
|
left: d,
|
|
316
295
|
x: d,
|
|
317
|
-
y:
|
|
296
|
+
y: u
|
|
318
297
|
};
|
|
319
298
|
}
|
|
320
299
|
function ro(e) {
|
|
321
|
-
var o =
|
|
300
|
+
var o = We(e), t = e.offsetWidth, r = e.offsetHeight;
|
|
322
301
|
return Math.abs(o.width - t) <= 1 && (t = o.width), Math.abs(o.height - r) <= 1 && (r = o.height), {
|
|
323
302
|
x: e.offsetLeft,
|
|
324
303
|
y: e.offsetTop,
|
|
@@ -343,7 +322,7 @@ function ir(e, o) {
|
|
|
343
322
|
function ge(e) {
|
|
344
323
|
return J(e).getComputedStyle(e);
|
|
345
324
|
}
|
|
346
|
-
function
|
|
325
|
+
function Ai(e) {
|
|
347
326
|
return ["table", "td", "th"].indexOf(ce(e)) >= 0;
|
|
348
327
|
}
|
|
349
328
|
function Ce(e) {
|
|
@@ -364,12 +343,12 @@ function Yt(e) {
|
|
|
364
343
|
Ce(e)
|
|
365
344
|
);
|
|
366
345
|
}
|
|
367
|
-
function
|
|
346
|
+
function No(e) {
|
|
368
347
|
return !oe(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
369
348
|
ge(e).position === "fixed" ? null : e.offsetParent;
|
|
370
349
|
}
|
|
371
|
-
function
|
|
372
|
-
var o = /firefox/i.test(
|
|
350
|
+
function Ri(e) {
|
|
351
|
+
var o = /firefox/i.test(Ut()), t = /Trident/i.test(Ut());
|
|
373
352
|
if (t && oe(e)) {
|
|
374
353
|
var r = ge(e);
|
|
375
354
|
if (r.position === "fixed")
|
|
@@ -385,17 +364,17 @@ function zi(e) {
|
|
|
385
364
|
return null;
|
|
386
365
|
}
|
|
387
366
|
function rt(e) {
|
|
388
|
-
for (var o = J(e), t =
|
|
389
|
-
t =
|
|
390
|
-
return t && (ce(t) === "html" || ce(t) === "body" && ge(t).position === "static") ? o : t ||
|
|
367
|
+
for (var o = J(e), t = No(e); t && Ai(t) && ge(t).position === "static"; )
|
|
368
|
+
t = No(t);
|
|
369
|
+
return t && (ce(t) === "html" || ce(t) === "body" && ge(t).position === "static") ? o : t || Ri(e) || o;
|
|
391
370
|
}
|
|
392
371
|
function io(e) {
|
|
393
372
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
394
373
|
}
|
|
395
374
|
function Ge(e, o, t) {
|
|
396
|
-
return
|
|
375
|
+
return Ae(e, Ct(o, t));
|
|
397
376
|
}
|
|
398
|
-
function
|
|
377
|
+
function Di(e, o, t) {
|
|
399
378
|
var r = Ge(e, o, t);
|
|
400
379
|
return r > t ? t : r;
|
|
401
380
|
}
|
|
@@ -415,49 +394,49 @@ function sr(e, o) {
|
|
|
415
394
|
return t[r] = e, t;
|
|
416
395
|
}, {});
|
|
417
396
|
}
|
|
418
|
-
var
|
|
397
|
+
var xi = function(o, t) {
|
|
419
398
|
return o = typeof o == "function" ? o(Object.assign({}, t.rects, {
|
|
420
399
|
placement: t.placement
|
|
421
400
|
})) : o, ar(typeof o != "number" ? o : sr(o, ot));
|
|
422
401
|
};
|
|
423
|
-
function
|
|
424
|
-
var o, t = e.state, r = e.name, i = e.options, n = t.elements.arrow, a = t.modifiersData.popperOffsets, s = fe(t.placement), l = io(s), d = [F, ie].indexOf(s) >= 0,
|
|
402
|
+
function Mi(e) {
|
|
403
|
+
var o, t = e.state, r = e.name, i = e.options, n = t.elements.arrow, a = t.modifiersData.popperOffsets, s = fe(t.placement), l = io(s), d = [F, ie].indexOf(s) >= 0, u = d ? "height" : "width";
|
|
425
404
|
if (!(!n || !a)) {
|
|
426
|
-
var f =
|
|
427
|
-
t.modifiersData[r] = (o = {}, o[
|
|
405
|
+
var f = xi(i.padding, t), c = ro(n), v = l === "y" ? H : F, h = l === "y" ? re : ie, m = t.rects.reference[u] + t.rects.reference[l] - a[l] - t.rects.popper[u], g = a[l] - t.rects.reference[l], P = rt(n), C = P ? l === "y" ? P.clientHeight || 0 : P.clientWidth || 0 : 0, y = m / 2 - g / 2, b = f[v], w = C - c[u] - f[h], T = C / 2 - c[u] / 2 + y, O = Ge(b, T, w), x = l;
|
|
406
|
+
t.modifiersData[r] = (o = {}, o[x] = O, o.centerOffset = O - T, o);
|
|
428
407
|
}
|
|
429
408
|
}
|
|
430
|
-
function
|
|
409
|
+
function Yi(e) {
|
|
431
410
|
var o = e.state, t = e.options, r = t.element, i = r === void 0 ? "[data-popper-arrow]" : r;
|
|
432
411
|
i != null && (typeof i == "string" && (i = o.elements.popper.querySelector(i), !i) || ir(o.elements.popper, i) && (o.elements.arrow = i));
|
|
433
412
|
}
|
|
434
|
-
const
|
|
413
|
+
const _i = {
|
|
435
414
|
name: "arrow",
|
|
436
415
|
enabled: !0,
|
|
437
416
|
phase: "main",
|
|
438
|
-
fn:
|
|
439
|
-
effect:
|
|
417
|
+
fn: Mi,
|
|
418
|
+
effect: Yi,
|
|
440
419
|
requires: ["popperOffsets"],
|
|
441
420
|
requiresIfExists: ["preventOverflow"]
|
|
442
421
|
};
|
|
443
|
-
function
|
|
422
|
+
function $e(e) {
|
|
444
423
|
return e.split("-")[1];
|
|
445
424
|
}
|
|
446
|
-
var
|
|
425
|
+
var Ni = {
|
|
447
426
|
top: "auto",
|
|
448
427
|
right: "auto",
|
|
449
428
|
bottom: "auto",
|
|
450
429
|
left: "auto"
|
|
451
430
|
};
|
|
452
|
-
function
|
|
431
|
+
function Bi(e, o) {
|
|
453
432
|
var t = e.x, r = e.y, i = o.devicePixelRatio || 1;
|
|
454
433
|
return {
|
|
455
|
-
x:
|
|
456
|
-
y:
|
|
434
|
+
x: Xe(t * i) / i || 0,
|
|
435
|
+
y: Xe(r * i) / i || 0
|
|
457
436
|
};
|
|
458
437
|
}
|
|
459
438
|
function Bo(e) {
|
|
460
|
-
var o, t = e.popper, r = e.popperRect, i = e.placement, n = e.variation, a = e.offsets, s = e.position, l = e.gpuAcceleration, d = e.adaptive,
|
|
439
|
+
var o, t = e.popper, r = e.popperRect, i = e.placement, n = e.variation, a = e.offsets, s = e.position, l = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = e.isFixed, c = a.x, v = c === void 0 ? 0 : c, h = a.y, m = h === void 0 ? 0 : h, g = typeof u == "function" ? u({
|
|
461
440
|
x: v,
|
|
462
441
|
y: m
|
|
463
442
|
}) : {
|
|
@@ -465,10 +444,10 @@ function Bo(e) {
|
|
|
465
444
|
y: m
|
|
466
445
|
};
|
|
467
446
|
v = g.x, m = g.y;
|
|
468
|
-
var P = a.hasOwnProperty("x"),
|
|
447
|
+
var P = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), y = F, b = H, w = window;
|
|
469
448
|
if (d) {
|
|
470
|
-
var T = rt(t), O = "clientHeight",
|
|
471
|
-
if (T === J(t) && (T = Ce(t), ge(T).position !== "static" && s === "absolute" && (O = "scrollHeight",
|
|
449
|
+
var T = rt(t), O = "clientHeight", x = "clientWidth";
|
|
450
|
+
if (T === J(t) && (T = Ce(t), ge(T).position !== "static" && s === "absolute" && (O = "scrollHeight", x = "scrollWidth")), T = T, i === H || (i === F || i === ie) && n === et) {
|
|
472
451
|
b = re;
|
|
473
452
|
var E = f && T === w && w.visualViewport ? w.visualViewport.height : (
|
|
474
453
|
// $FlowFixMe[prop-missing]
|
|
@@ -480,30 +459,30 @@ function Bo(e) {
|
|
|
480
459
|
y = ie;
|
|
481
460
|
var A = f && T === w && w.visualViewport ? w.visualViewport.width : (
|
|
482
461
|
// $FlowFixMe[prop-missing]
|
|
483
|
-
T[
|
|
462
|
+
T[x]
|
|
484
463
|
);
|
|
485
464
|
v -= A - r.width, v *= l ? 1 : -1;
|
|
486
465
|
}
|
|
487
466
|
}
|
|
488
|
-
var
|
|
467
|
+
var M = Object.assign({
|
|
489
468
|
position: s
|
|
490
|
-
}, d &&
|
|
469
|
+
}, d && Ni), X = u === !0 ? Bi({
|
|
491
470
|
x: v,
|
|
492
471
|
y: m
|
|
493
472
|
}, J(t)) : {
|
|
494
473
|
x: v,
|
|
495
474
|
y: m
|
|
496
475
|
};
|
|
497
|
-
if (v =
|
|
498
|
-
var
|
|
499
|
-
return Object.assign({},
|
|
476
|
+
if (v = X.x, m = X.y, l) {
|
|
477
|
+
var N;
|
|
478
|
+
return Object.assign({}, M, (N = {}, N[b] = C ? "0" : "", N[y] = P ? "0" : "", N.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + m + "px)" : "translate3d(" + v + "px, " + m + "px, 0)", N));
|
|
500
479
|
}
|
|
501
|
-
return Object.assign({},
|
|
480
|
+
return Object.assign({}, M, (o = {}, o[b] = C ? m + "px" : "", o[y] = P ? v + "px" : "", o.transform = "", o));
|
|
502
481
|
}
|
|
503
|
-
function
|
|
482
|
+
function zi(e) {
|
|
504
483
|
var o = e.state, t = e.options, r = t.gpuAcceleration, i = r === void 0 ? !0 : r, n = t.adaptive, a = n === void 0 ? !0 : n, s = t.roundOffsets, l = s === void 0 ? !0 : s, d = {
|
|
505
484
|
placement: fe(o.placement),
|
|
506
|
-
variation:
|
|
485
|
+
variation: $e(o.placement),
|
|
507
486
|
popper: o.elements.popper,
|
|
508
487
|
popperRect: o.rects.popper,
|
|
509
488
|
gpuAcceleration: i,
|
|
@@ -523,36 +502,36 @@ function Hi(e) {
|
|
|
523
502
|
"data-popper-placement": o.placement
|
|
524
503
|
});
|
|
525
504
|
}
|
|
526
|
-
const
|
|
505
|
+
const Xi = {
|
|
527
506
|
name: "computeStyles",
|
|
528
507
|
enabled: !0,
|
|
529
508
|
phase: "beforeWrite",
|
|
530
|
-
fn:
|
|
509
|
+
fn: zi,
|
|
531
510
|
data: {}
|
|
532
511
|
};
|
|
533
512
|
var ct = {
|
|
534
513
|
passive: !0
|
|
535
514
|
};
|
|
536
|
-
function
|
|
515
|
+
function Wi(e) {
|
|
537
516
|
var o = e.state, t = e.instance, r = e.options, i = r.scroll, n = i === void 0 ? !0 : i, a = r.resize, s = a === void 0 ? !0 : a, l = J(o.elements.popper), d = [].concat(o.scrollParents.reference, o.scrollParents.popper);
|
|
538
|
-
return n && d.forEach(function(
|
|
539
|
-
|
|
517
|
+
return n && d.forEach(function(u) {
|
|
518
|
+
u.addEventListener("scroll", t.update, ct);
|
|
540
519
|
}), s && l.addEventListener("resize", t.update, ct), function() {
|
|
541
|
-
n && d.forEach(function(
|
|
542
|
-
|
|
520
|
+
n && d.forEach(function(u) {
|
|
521
|
+
u.removeEventListener("scroll", t.update, ct);
|
|
543
522
|
}), s && l.removeEventListener("resize", t.update, ct);
|
|
544
523
|
};
|
|
545
524
|
}
|
|
546
|
-
const
|
|
525
|
+
const $i = {
|
|
547
526
|
name: "eventListeners",
|
|
548
527
|
enabled: !0,
|
|
549
528
|
phase: "write",
|
|
550
529
|
fn: function() {
|
|
551
530
|
},
|
|
552
|
-
effect:
|
|
531
|
+
effect: Wi,
|
|
553
532
|
data: {}
|
|
554
533
|
};
|
|
555
|
-
var
|
|
534
|
+
var ki = {
|
|
556
535
|
left: "right",
|
|
557
536
|
right: "left",
|
|
558
537
|
bottom: "top",
|
|
@@ -560,16 +539,16 @@ var qi = {
|
|
|
560
539
|
};
|
|
561
540
|
function bt(e) {
|
|
562
541
|
return e.replace(/left|right|bottom|top/g, function(o) {
|
|
563
|
-
return
|
|
542
|
+
return ki[o];
|
|
564
543
|
});
|
|
565
544
|
}
|
|
566
|
-
var
|
|
545
|
+
var ji = {
|
|
567
546
|
start: "end",
|
|
568
547
|
end: "start"
|
|
569
548
|
};
|
|
570
549
|
function zo(e) {
|
|
571
550
|
return e.replace(/start|end/g, function(o) {
|
|
572
|
-
return
|
|
551
|
+
return ji[o];
|
|
573
552
|
});
|
|
574
553
|
}
|
|
575
554
|
function no(e) {
|
|
@@ -580,9 +559,9 @@ function no(e) {
|
|
|
580
559
|
};
|
|
581
560
|
}
|
|
582
561
|
function ao(e) {
|
|
583
|
-
return
|
|
562
|
+
return We(Ce(e)).left + no(e).scrollLeft;
|
|
584
563
|
}
|
|
585
|
-
function
|
|
564
|
+
function Li(e, o) {
|
|
586
565
|
var t = J(e), r = Ce(e), i = t.visualViewport, n = r.clientWidth, a = r.clientHeight, s = 0, l = 0;
|
|
587
566
|
if (i) {
|
|
588
567
|
n = i.width, a = i.height;
|
|
@@ -596,9 +575,9 @@ function Qi(e, o) {
|
|
|
596
575
|
y: l
|
|
597
576
|
};
|
|
598
577
|
}
|
|
599
|
-
function
|
|
600
|
-
var o, t = Ce(e), r = no(e), i = (o = e.ownerDocument) == null ? void 0 : o.body, n =
|
|
601
|
-
return ge(i || t).direction === "rtl" && (s +=
|
|
578
|
+
function Vi(e) {
|
|
579
|
+
var o, t = Ce(e), r = no(e), i = (o = e.ownerDocument) == null ? void 0 : o.body, n = Ae(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = Ae(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + ao(e), l = -r.scrollTop;
|
|
580
|
+
return ge(i || t).direction === "rtl" && (s += Ae(t.clientWidth, i ? i.clientWidth : 0) - n), {
|
|
602
581
|
width: n,
|
|
603
582
|
height: a,
|
|
604
583
|
x: s,
|
|
@@ -621,7 +600,7 @@ function Je(e, o) {
|
|
|
621
600
|
s.concat(Je(Yt(a)))
|
|
622
601
|
);
|
|
623
602
|
}
|
|
624
|
-
function
|
|
603
|
+
function qt(e) {
|
|
625
604
|
return Object.assign({}, e, {
|
|
626
605
|
left: e.x,
|
|
627
606
|
top: e.y,
|
|
@@ -629,28 +608,28 @@ function Qt(e) {
|
|
|
629
608
|
bottom: e.y + e.height
|
|
630
609
|
});
|
|
631
610
|
}
|
|
632
|
-
function
|
|
633
|
-
var t =
|
|
611
|
+
function Hi(e, o) {
|
|
612
|
+
var t = We(e, !1, o === "fixed");
|
|
634
613
|
return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t;
|
|
635
614
|
}
|
|
636
|
-
function
|
|
637
|
-
return o === tr ?
|
|
615
|
+
function Xo(e, o, t) {
|
|
616
|
+
return o === tr ? qt(Li(e, t)) : De(o) ? Hi(o, t) : qt(Vi(Ce(e)));
|
|
638
617
|
}
|
|
639
|
-
function
|
|
618
|
+
function Fi(e) {
|
|
640
619
|
var o = Je(Yt(e)), t = ["absolute", "fixed"].indexOf(ge(e).position) >= 0, r = t && oe(e) ? rt(e) : e;
|
|
641
620
|
return De(r) ? o.filter(function(i) {
|
|
642
621
|
return De(i) && ir(i, r) && ce(i) !== "body";
|
|
643
622
|
}) : [];
|
|
644
623
|
}
|
|
645
|
-
function
|
|
646
|
-
var i = o === "clippingParents" ?
|
|
647
|
-
var
|
|
648
|
-
return l.top =
|
|
649
|
-
},
|
|
624
|
+
function Zi(e, o, t, r) {
|
|
625
|
+
var i = o === "clippingParents" ? Fi(e) : [].concat(o), n = [].concat(i, [t]), a = n[0], s = n.reduce(function(l, d) {
|
|
626
|
+
var u = Xo(e, d, r);
|
|
627
|
+
return l.top = Ae(u.top, l.top), l.right = Ct(u.right, l.right), l.bottom = Ct(u.bottom, l.bottom), l.left = Ae(u.left, l.left), l;
|
|
628
|
+
}, Xo(e, a, r));
|
|
650
629
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
651
630
|
}
|
|
652
|
-
function
|
|
653
|
-
var o = e.reference, t = e.element, r = e.placement, i = r ? fe(r) : null, n = r ?
|
|
631
|
+
function pr(e) {
|
|
632
|
+
var o = e.reference, t = e.element, r = e.placement, i = r ? fe(r) : null, n = r ? $e(r) : null, a = o.x + o.width / 2 - t.width / 2, s = o.y + o.height / 2 - t.height / 2, l;
|
|
654
633
|
switch (i) {
|
|
655
634
|
case H:
|
|
656
635
|
l = {
|
|
@@ -684,13 +663,13 @@ function ur(e) {
|
|
|
684
663
|
}
|
|
685
664
|
var d = i ? io(i) : null;
|
|
686
665
|
if (d != null) {
|
|
687
|
-
var
|
|
666
|
+
var u = d === "y" ? "height" : "width";
|
|
688
667
|
switch (n) {
|
|
689
|
-
case
|
|
690
|
-
l[d] = l[d] - (o[
|
|
668
|
+
case ze:
|
|
669
|
+
l[d] = l[d] - (o[u] / 2 - t[u] / 2);
|
|
691
670
|
break;
|
|
692
671
|
case et:
|
|
693
|
-
l[d] = l[d] + (o[
|
|
672
|
+
l[d] = l[d] + (o[u] / 2 - t[u] / 2);
|
|
694
673
|
break;
|
|
695
674
|
}
|
|
696
675
|
}
|
|
@@ -698,30 +677,30 @@ function ur(e) {
|
|
|
698
677
|
}
|
|
699
678
|
function tt(e, o) {
|
|
700
679
|
o === void 0 && (o = {});
|
|
701
|
-
var t = o, r = t.placement, i = r === void 0 ? e.placement : r, n = t.strategy, a = n === void 0 ? e.strategy : n, s = t.boundary, l = s === void 0 ?
|
|
680
|
+
var t = o, r = t.placement, i = r === void 0 ? e.placement : r, n = t.strategy, a = n === void 0 ? e.strategy : n, s = t.boundary, l = s === void 0 ? fi : s, d = t.rootBoundary, u = d === void 0 ? tr : d, f = t.elementContext, c = f === void 0 ? qe : f, v = t.altBoundary, h = v === void 0 ? !1 : v, m = t.padding, g = m === void 0 ? 0 : m, P = ar(typeof g != "number" ? g : sr(g, ot)), C = c === qe ? ci : qe, y = e.rects.popper, b = e.elements[h ? C : c], w = Zi(De(b) ? b : b.contextElement || Ce(e.elements.popper), l, u, a), T = We(e.elements.reference), O = pr({
|
|
702
681
|
reference: T,
|
|
703
682
|
element: y,
|
|
704
683
|
strategy: "absolute",
|
|
705
684
|
placement: i
|
|
706
|
-
}),
|
|
685
|
+
}), x = qt(Object.assign({}, y, O)), E = c === qe ? x : T, A = {
|
|
707
686
|
top: w.top - E.top + P.top,
|
|
708
687
|
bottom: E.bottom - w.bottom + P.bottom,
|
|
709
688
|
left: w.left - E.left + P.left,
|
|
710
689
|
right: E.right - w.right + P.right
|
|
711
|
-
},
|
|
712
|
-
if (c === qe &&
|
|
713
|
-
var
|
|
714
|
-
Object.keys(A).forEach(function(
|
|
715
|
-
var Z = [ie, re].indexOf(
|
|
716
|
-
A[
|
|
690
|
+
}, M = e.modifiersData.offset;
|
|
691
|
+
if (c === qe && M) {
|
|
692
|
+
var X = M[i];
|
|
693
|
+
Object.keys(A).forEach(function(N) {
|
|
694
|
+
var Z = [ie, re].indexOf(N) >= 0 ? 1 : -1, U = [H, re].indexOf(N) >= 0 ? "y" : "x";
|
|
695
|
+
A[N] += X[U] * Z;
|
|
717
696
|
});
|
|
718
697
|
}
|
|
719
698
|
return A;
|
|
720
699
|
}
|
|
721
|
-
function
|
|
700
|
+
function Ui(e, o) {
|
|
722
701
|
o === void 0 && (o = {});
|
|
723
|
-
var t = o, r = t.placement, i = t.boundary, n = t.rootBoundary, a = t.padding, s = t.flipVariations, l = t.allowedAutoPlacements, d = l === void 0 ? or : l,
|
|
724
|
-
return
|
|
702
|
+
var t = o, r = t.placement, i = t.boundary, n = t.rootBoundary, a = t.padding, s = t.flipVariations, l = t.allowedAutoPlacements, d = l === void 0 ? or : l, u = $e(r), f = u ? s ? _o : _o.filter(function(h) {
|
|
703
|
+
return $e(h) === u;
|
|
725
704
|
}) : ot, c = f.filter(function(h) {
|
|
726
705
|
return d.indexOf(h) >= 0;
|
|
727
706
|
});
|
|
@@ -738,46 +717,46 @@ function tn(e, o) {
|
|
|
738
717
|
return v[h] - v[m];
|
|
739
718
|
});
|
|
740
719
|
}
|
|
741
|
-
function
|
|
720
|
+
function qi(e) {
|
|
742
721
|
if (fe(e) === to)
|
|
743
722
|
return [];
|
|
744
723
|
var o = bt(e);
|
|
745
724
|
return [zo(e), o, zo(o)];
|
|
746
725
|
}
|
|
747
|
-
function
|
|
726
|
+
function Ki(e) {
|
|
748
727
|
var o = e.state, t = e.options, r = e.name;
|
|
749
728
|
if (!o.modifiersData[r]._skip) {
|
|
750
|
-
for (var i = t.mainAxis, n = i === void 0 ? !0 : i, a = t.altAxis, s = a === void 0 ? !0 : a, l = t.fallbackPlacements, d = t.padding,
|
|
751
|
-
return K.concat(fe(Q) === to ?
|
|
729
|
+
for (var i = t.mainAxis, n = i === void 0 ? !0 : i, a = t.altAxis, s = a === void 0 ? !0 : a, l = t.fallbackPlacements, d = t.padding, u = t.boundary, f = t.rootBoundary, c = t.altBoundary, v = t.flipVariations, h = v === void 0 ? !0 : v, m = t.allowedAutoPlacements, g = o.options.placement, P = fe(g), C = P === g, y = l || (C || !h ? [bt(g)] : qi(g)), b = [g].concat(y).reduce(function(K, Q) {
|
|
730
|
+
return K.concat(fe(Q) === to ? Ui(o, {
|
|
752
731
|
placement: Q,
|
|
753
|
-
boundary:
|
|
732
|
+
boundary: u,
|
|
754
733
|
rootBoundary: f,
|
|
755
734
|
padding: d,
|
|
756
735
|
flipVariations: h,
|
|
757
736
|
allowedAutoPlacements: m
|
|
758
737
|
}) : Q);
|
|
759
|
-
}, []), w = o.rects.reference, T = o.rects.popper, O = /* @__PURE__ */ new Map(),
|
|
760
|
-
var
|
|
761
|
-
placement:
|
|
762
|
-
boundary:
|
|
738
|
+
}, []), w = o.rects.reference, T = o.rects.popper, O = /* @__PURE__ */ new Map(), x = !0, E = b[0], A = 0; A < b.length; A++) {
|
|
739
|
+
var M = b[A], X = fe(M), N = $e(M) === ze, Z = [H, re].indexOf(X) >= 0, U = Z ? "width" : "height", B = tt(o, {
|
|
740
|
+
placement: M,
|
|
741
|
+
boundary: u,
|
|
763
742
|
rootBoundary: f,
|
|
764
743
|
altBoundary: c,
|
|
765
744
|
padding: d
|
|
766
|
-
}), W = Z ?
|
|
745
|
+
}), W = Z ? N ? ie : F : N ? re : H;
|
|
767
746
|
w[U] > T[U] && (W = bt(W));
|
|
768
|
-
var
|
|
769
|
-
if (n && q.push(B[
|
|
747
|
+
var $ = bt(W), q = [];
|
|
748
|
+
if (n && q.push(B[X] <= 0), s && q.push(B[W] <= 0, B[$] <= 0), q.every(function(K) {
|
|
770
749
|
return K;
|
|
771
750
|
})) {
|
|
772
|
-
E =
|
|
751
|
+
E = M, x = !1;
|
|
773
752
|
break;
|
|
774
753
|
}
|
|
775
|
-
O.set(
|
|
754
|
+
O.set(M, q);
|
|
776
755
|
}
|
|
777
|
-
if (
|
|
756
|
+
if (x)
|
|
778
757
|
for (var be = h ? 3 : 1, se = function(Q) {
|
|
779
|
-
var le = b.find(function(
|
|
780
|
-
var k = O.get(
|
|
758
|
+
var le = b.find(function(pe) {
|
|
759
|
+
var k = O.get(pe);
|
|
781
760
|
if (k)
|
|
782
761
|
return k.slice(0, Q).every(function(L) {
|
|
783
762
|
return L;
|
|
@@ -793,11 +772,11 @@ function rn(e) {
|
|
|
793
772
|
o.placement !== E && (o.modifiersData[r]._skip = !0, o.placement = E, o.reset = !0);
|
|
794
773
|
}
|
|
795
774
|
}
|
|
796
|
-
const
|
|
775
|
+
const Qi = {
|
|
797
776
|
name: "flip",
|
|
798
777
|
enabled: !0,
|
|
799
778
|
phase: "main",
|
|
800
|
-
fn:
|
|
779
|
+
fn: Ki,
|
|
801
780
|
requiresIfExists: ["offset"],
|
|
802
781
|
data: {
|
|
803
782
|
_skip: !1
|
|
@@ -814,35 +793,35 @@ function Wo(e, o, t) {
|
|
|
814
793
|
left: e.left - o.width - t.x
|
|
815
794
|
};
|
|
816
795
|
}
|
|
817
|
-
function
|
|
796
|
+
function $o(e) {
|
|
818
797
|
return [H, ie, re, F].some(function(o) {
|
|
819
798
|
return e[o] >= 0;
|
|
820
799
|
});
|
|
821
800
|
}
|
|
822
|
-
function
|
|
801
|
+
function Gi(e) {
|
|
823
802
|
var o = e.state, t = e.name, r = o.rects.reference, i = o.rects.popper, n = o.modifiersData.preventOverflow, a = tt(o, {
|
|
824
803
|
elementContext: "reference"
|
|
825
804
|
}), s = tt(o, {
|
|
826
805
|
altBoundary: !0
|
|
827
|
-
}), l = Wo(a, r), d = Wo(s, i, n),
|
|
806
|
+
}), l = Wo(a, r), d = Wo(s, i, n), u = $o(l), f = $o(d);
|
|
828
807
|
o.modifiersData[t] = {
|
|
829
808
|
referenceClippingOffsets: l,
|
|
830
809
|
popperEscapeOffsets: d,
|
|
831
|
-
isReferenceHidden:
|
|
810
|
+
isReferenceHidden: u,
|
|
832
811
|
hasPopperEscaped: f
|
|
833
812
|
}, o.attributes.popper = Object.assign({}, o.attributes.popper, {
|
|
834
|
-
"data-popper-reference-hidden":
|
|
813
|
+
"data-popper-reference-hidden": u,
|
|
835
814
|
"data-popper-escaped": f
|
|
836
815
|
});
|
|
837
816
|
}
|
|
838
|
-
const
|
|
817
|
+
const Ji = {
|
|
839
818
|
name: "hide",
|
|
840
819
|
enabled: !0,
|
|
841
820
|
phase: "main",
|
|
842
821
|
requiresIfExists: ["preventOverflow"],
|
|
843
|
-
fn:
|
|
822
|
+
fn: Gi
|
|
844
823
|
};
|
|
845
|
-
function
|
|
824
|
+
function Ii(e, o, t) {
|
|
846
825
|
var r = fe(e), i = [F, H].indexOf(r) >= 0 ? -1 : 1, n = typeof t == "function" ? t(Object.assign({}, o, {
|
|
847
826
|
placement: e
|
|
848
827
|
})) : t, a = n[0], s = n[1];
|
|
@@ -854,45 +833,45 @@ function ln(e, o, t) {
|
|
|
854
833
|
y: s
|
|
855
834
|
};
|
|
856
835
|
}
|
|
857
|
-
function
|
|
858
|
-
var o = e.state, t = e.options, r = e.name, i = t.offset, n = i === void 0 ? [0, 0] : i, a = or.reduce(function(
|
|
859
|
-
return
|
|
836
|
+
function en(e) {
|
|
837
|
+
var o = e.state, t = e.options, r = e.name, i = t.offset, n = i === void 0 ? [0, 0] : i, a = or.reduce(function(u, f) {
|
|
838
|
+
return u[f] = Ii(f, o.rects, n), u;
|
|
860
839
|
}, {}), s = a[o.placement], l = s.x, d = s.y;
|
|
861
840
|
o.modifiersData.popperOffsets != null && (o.modifiersData.popperOffsets.x += l, o.modifiersData.popperOffsets.y += d), o.modifiersData[r] = a;
|
|
862
841
|
}
|
|
863
|
-
const
|
|
842
|
+
const tn = {
|
|
864
843
|
name: "offset",
|
|
865
844
|
enabled: !0,
|
|
866
845
|
phase: "main",
|
|
867
846
|
requires: ["popperOffsets"],
|
|
868
|
-
fn:
|
|
847
|
+
fn: en
|
|
869
848
|
};
|
|
870
|
-
function
|
|
849
|
+
function on(e) {
|
|
871
850
|
var o = e.state, t = e.name;
|
|
872
|
-
o.modifiersData[t] =
|
|
851
|
+
o.modifiersData[t] = pr({
|
|
873
852
|
reference: o.rects.reference,
|
|
874
853
|
element: o.rects.popper,
|
|
875
854
|
strategy: "absolute",
|
|
876
855
|
placement: o.placement
|
|
877
856
|
});
|
|
878
857
|
}
|
|
879
|
-
const
|
|
858
|
+
const rn = {
|
|
880
859
|
name: "popperOffsets",
|
|
881
860
|
enabled: !0,
|
|
882
861
|
phase: "read",
|
|
883
|
-
fn:
|
|
862
|
+
fn: on,
|
|
884
863
|
data: {}
|
|
885
864
|
};
|
|
886
|
-
function
|
|
865
|
+
function nn(e) {
|
|
887
866
|
return e === "x" ? "y" : "x";
|
|
888
867
|
}
|
|
889
|
-
function
|
|
890
|
-
var o = e.state, t = e.options, r = e.name, i = t.mainAxis, n = i === void 0 ? !0 : i, a = t.altAxis, s = a === void 0 ? !1 : a, l = t.boundary, d = t.rootBoundary,
|
|
868
|
+
function an(e) {
|
|
869
|
+
var o = e.state, t = e.options, r = e.name, i = t.mainAxis, n = i === void 0 ? !0 : i, a = t.altAxis, s = a === void 0 ? !1 : a, l = t.boundary, d = t.rootBoundary, u = t.altBoundary, f = t.padding, c = t.tether, v = c === void 0 ? !0 : c, h = t.tetherOffset, m = h === void 0 ? 0 : h, g = tt(o, {
|
|
891
870
|
boundary: l,
|
|
892
871
|
rootBoundary: d,
|
|
893
872
|
padding: f,
|
|
894
|
-
altBoundary:
|
|
895
|
-
}), P = fe(o.placement),
|
|
873
|
+
altBoundary: u
|
|
874
|
+
}), P = fe(o.placement), C = $e(o.placement), y = !C, b = io(P), w = nn(b), T = o.modifiersData.popperOffsets, O = o.rects.reference, x = o.rects.popper, E = typeof m == "function" ? m(Object.assign({}, o.rects, {
|
|
896
875
|
placement: o.placement
|
|
897
876
|
})) : m, A = typeof E == "number" ? {
|
|
898
877
|
mainAxis: E,
|
|
@@ -900,48 +879,48 @@ function vn(e) {
|
|
|
900
879
|
} : Object.assign({
|
|
901
880
|
mainAxis: 0,
|
|
902
881
|
altAxis: 0
|
|
903
|
-
}, E),
|
|
882
|
+
}, E), M = o.modifiersData.offset ? o.modifiersData.offset[o.placement] : null, X = {
|
|
904
883
|
x: 0,
|
|
905
884
|
y: 0
|
|
906
885
|
};
|
|
907
886
|
if (T) {
|
|
908
887
|
if (n) {
|
|
909
|
-
var
|
|
888
|
+
var N, Z = b === "y" ? H : F, U = b === "y" ? re : ie, B = b === "y" ? "height" : "width", W = T[b], $ = W + g[Z], q = W - g[U], be = v ? -x[B] / 2 : 0, se = C === ze ? O[B] : x[B], ve = C === ze ? -x[B] : -O[B], ne = o.elements.arrow, K = v && ne ? ro(ne) : {
|
|
910
889
|
width: 0,
|
|
911
890
|
height: 0
|
|
912
|
-
}, Q = o.modifiersData["arrow#persistent"] ? o.modifiersData["arrow#persistent"].padding : nr(), le = Q[Z],
|
|
913
|
-
T[b] = Ye,
|
|
891
|
+
}, Q = o.modifiersData["arrow#persistent"] ? o.modifiersData["arrow#persistent"].padding : nr(), le = Q[Z], pe = Q[U], k = Ge(0, O[B], K[B]), L = y ? O[B] / 2 - be - k - le - A.mainAxis : se - k - le - A.mainAxis, me = y ? -O[B] / 2 + be + k + pe + A.mainAxis : ve + k + pe + A.mainAxis, j = o.elements.arrow && rt(o.elements.arrow), Le = j ? b === "y" ? j.clientTop || 0 : j.clientLeft || 0 : 0, Me = (N = M == null ? void 0 : M[b]) != null ? N : 0, nt = W + L - Me - Le, I = W + me - Me, Ye = Ge(v ? Ct($, nt) : $, W, v ? Ae(q, I) : q);
|
|
892
|
+
T[b] = Ye, X[b] = Ye - W;
|
|
914
893
|
}
|
|
915
894
|
if (s) {
|
|
916
|
-
var at, V = b === "x" ? H : F, st = b === "x" ? re : ie, ae = T[w],
|
|
917
|
-
T[w] = lt,
|
|
895
|
+
var at, V = b === "x" ? H : F, st = b === "x" ? re : ie, ae = T[w], _e = w === "y" ? "height" : "width", Oe = ae + g[V], Ne = ae - g[st], ye = [H, F].indexOf(P) !== -1, Ee = (at = M == null ? void 0 : M[w]) != null ? at : 0, ue = ye ? Oe : ae - O[_e] - x[_e] - Ee + A.altAxis, Ve = ye ? ae + O[_e] + x[_e] - Ee - A.altAxis : Ne, lt = v && ye ? Di(ue, ae, Ve) : Ge(v ? ue : Oe, ae, v ? Ve : Ne);
|
|
896
|
+
T[w] = lt, X[w] = lt - ae;
|
|
918
897
|
}
|
|
919
|
-
o.modifiersData[r] =
|
|
898
|
+
o.modifiersData[r] = X;
|
|
920
899
|
}
|
|
921
900
|
}
|
|
922
|
-
const
|
|
901
|
+
const sn = {
|
|
923
902
|
name: "preventOverflow",
|
|
924
903
|
enabled: !0,
|
|
925
904
|
phase: "main",
|
|
926
|
-
fn:
|
|
905
|
+
fn: an,
|
|
927
906
|
requiresIfExists: ["offset"]
|
|
928
907
|
};
|
|
929
|
-
function
|
|
908
|
+
function ln(e) {
|
|
930
909
|
return {
|
|
931
910
|
scrollLeft: e.scrollLeft,
|
|
932
911
|
scrollTop: e.scrollTop
|
|
933
912
|
};
|
|
934
913
|
}
|
|
935
|
-
function
|
|
936
|
-
return e === J(e) || !oe(e) ? no(e) :
|
|
914
|
+
function pn(e) {
|
|
915
|
+
return e === J(e) || !oe(e) ? no(e) : ln(e);
|
|
937
916
|
}
|
|
938
|
-
function
|
|
939
|
-
var o = e.getBoundingClientRect(), t =
|
|
917
|
+
function un(e) {
|
|
918
|
+
var o = e.getBoundingClientRect(), t = Xe(o.width) / e.offsetWidth || 1, r = Xe(o.height) / e.offsetHeight || 1;
|
|
940
919
|
return t !== 1 || r !== 1;
|
|
941
920
|
}
|
|
942
|
-
function
|
|
921
|
+
function dn(e, o, t) {
|
|
943
922
|
t === void 0 && (t = !1);
|
|
944
|
-
var r = oe(o), i = oe(o) &&
|
|
923
|
+
var r = oe(o), i = oe(o) && un(o), n = Ce(o), a = We(e, i, t), s = {
|
|
945
924
|
scrollLeft: 0,
|
|
946
925
|
scrollTop: 0
|
|
947
926
|
}, l = {
|
|
@@ -949,14 +928,14 @@ function yn(e, o, t) {
|
|
|
949
928
|
y: 0
|
|
950
929
|
};
|
|
951
930
|
return (r || !r && !t) && ((ce(o) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
952
|
-
so(n)) && (s =
|
|
931
|
+
so(n)) && (s = pn(o)), oe(o) ? (l = We(o, !0), l.x += o.clientLeft, l.y += o.clientTop) : n && (l.x = ao(n))), {
|
|
953
932
|
x: a.left + s.scrollLeft - l.x,
|
|
954
933
|
y: a.top + s.scrollTop - l.y,
|
|
955
934
|
width: a.width,
|
|
956
935
|
height: a.height
|
|
957
936
|
};
|
|
958
937
|
}
|
|
959
|
-
function
|
|
938
|
+
function fn(e) {
|
|
960
939
|
var o = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), r = [];
|
|
961
940
|
e.forEach(function(n) {
|
|
962
941
|
o.set(n.name, n);
|
|
@@ -975,15 +954,15 @@ function wn(e) {
|
|
|
975
954
|
t.has(n.name) || i(n);
|
|
976
955
|
}), r;
|
|
977
956
|
}
|
|
978
|
-
function
|
|
979
|
-
var o =
|
|
980
|
-
return
|
|
957
|
+
function cn(e) {
|
|
958
|
+
var o = fn(e);
|
|
959
|
+
return Ci.reduce(function(t, r) {
|
|
981
960
|
return t.concat(o.filter(function(i) {
|
|
982
961
|
return i.phase === r;
|
|
983
962
|
}));
|
|
984
963
|
}, []);
|
|
985
964
|
}
|
|
986
|
-
function
|
|
965
|
+
function vn(e) {
|
|
987
966
|
var o;
|
|
988
967
|
return function() {
|
|
989
968
|
return o || (o = new Promise(function(t) {
|
|
@@ -993,7 +972,7 @@ function Tn(e) {
|
|
|
993
972
|
})), o;
|
|
994
973
|
};
|
|
995
974
|
}
|
|
996
|
-
function
|
|
975
|
+
function mn(e) {
|
|
997
976
|
var o = e.reduce(function(t, r) {
|
|
998
977
|
var i = t[r.name];
|
|
999
978
|
return t[r.name] = i ? Object.assign({}, i, r, {
|
|
@@ -1017,12 +996,12 @@ function jo() {
|
|
|
1017
996
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
1018
997
|
});
|
|
1019
998
|
}
|
|
1020
|
-
function
|
|
999
|
+
function hn(e) {
|
|
1021
1000
|
e === void 0 && (e = {});
|
|
1022
1001
|
var o = e, t = o.defaultModifiers, r = t === void 0 ? [] : t, i = o.defaultOptions, n = i === void 0 ? ko : i;
|
|
1023
1002
|
return function(s, l, d) {
|
|
1024
1003
|
d === void 0 && (d = n);
|
|
1025
|
-
var
|
|
1004
|
+
var u = {
|
|
1026
1005
|
placement: "bottom",
|
|
1027
1006
|
orderedModifiers: [],
|
|
1028
1007
|
options: Object.assign({}, ko, n),
|
|
@@ -1034,15 +1013,15 @@ function Sn(e) {
|
|
|
1034
1013
|
attributes: {},
|
|
1035
1014
|
styles: {}
|
|
1036
1015
|
}, f = [], c = !1, v = {
|
|
1037
|
-
state:
|
|
1016
|
+
state: u,
|
|
1038
1017
|
setOptions: function(P) {
|
|
1039
|
-
var
|
|
1040
|
-
m(),
|
|
1018
|
+
var C = typeof P == "function" ? P(u.options) : P;
|
|
1019
|
+
m(), u.options = Object.assign({}, n, u.options, C), u.scrollParents = {
|
|
1041
1020
|
reference: De(s) ? Je(s) : s.contextElement ? Je(s.contextElement) : [],
|
|
1042
1021
|
popper: Je(l)
|
|
1043
1022
|
};
|
|
1044
|
-
var y =
|
|
1045
|
-
return
|
|
1023
|
+
var y = cn(mn([].concat(r, u.options.modifiers)));
|
|
1024
|
+
return u.orderedModifiers = y.filter(function(b) {
|
|
1046
1025
|
return b.enabled;
|
|
1047
1026
|
}), h(), v.update();
|
|
1048
1027
|
},
|
|
@@ -1053,35 +1032,35 @@ function Sn(e) {
|
|
|
1053
1032
|
// prefer the async Popper#update method
|
|
1054
1033
|
forceUpdate: function() {
|
|
1055
1034
|
if (!c) {
|
|
1056
|
-
var P =
|
|
1057
|
-
if (jo(
|
|
1058
|
-
|
|
1059
|
-
reference:
|
|
1035
|
+
var P = u.elements, C = P.reference, y = P.popper;
|
|
1036
|
+
if (jo(C, y)) {
|
|
1037
|
+
u.rects = {
|
|
1038
|
+
reference: dn(C, rt(y), u.options.strategy === "fixed"),
|
|
1060
1039
|
popper: ro(y)
|
|
1061
|
-
},
|
|
1062
|
-
return
|
|
1040
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(A) {
|
|
1041
|
+
return u.modifiersData[A.name] = Object.assign({}, A.data);
|
|
1063
1042
|
});
|
|
1064
|
-
for (var b = 0; b <
|
|
1065
|
-
if (
|
|
1066
|
-
|
|
1043
|
+
for (var b = 0; b < u.orderedModifiers.length; b++) {
|
|
1044
|
+
if (u.reset === !0) {
|
|
1045
|
+
u.reset = !1, b = -1;
|
|
1067
1046
|
continue;
|
|
1068
1047
|
}
|
|
1069
|
-
var w =
|
|
1070
|
-
typeof T == "function" && (
|
|
1071
|
-
state:
|
|
1072
|
-
options:
|
|
1048
|
+
var w = u.orderedModifiers[b], T = w.fn, O = w.options, x = O === void 0 ? {} : O, E = w.name;
|
|
1049
|
+
typeof T == "function" && (u = T({
|
|
1050
|
+
state: u,
|
|
1051
|
+
options: x,
|
|
1073
1052
|
name: E,
|
|
1074
1053
|
instance: v
|
|
1075
|
-
}) ||
|
|
1054
|
+
}) || u);
|
|
1076
1055
|
}
|
|
1077
1056
|
}
|
|
1078
1057
|
}
|
|
1079
1058
|
},
|
|
1080
1059
|
// Async and optimistically optimized update – it will not be executed if
|
|
1081
1060
|
// not necessary (debounced to run at most once-per-tick)
|
|
1082
|
-
update:
|
|
1061
|
+
update: vn(function() {
|
|
1083
1062
|
return new Promise(function(g) {
|
|
1084
|
-
v.forceUpdate(), g(
|
|
1063
|
+
v.forceUpdate(), g(u);
|
|
1085
1064
|
});
|
|
1086
1065
|
}),
|
|
1087
1066
|
destroy: function() {
|
|
@@ -1094,11 +1073,11 @@ function Sn(e) {
|
|
|
1094
1073
|
!c && d.onFirstUpdate && d.onFirstUpdate(g);
|
|
1095
1074
|
});
|
|
1096
1075
|
function h() {
|
|
1097
|
-
|
|
1098
|
-
var P = g.name,
|
|
1076
|
+
u.orderedModifiers.forEach(function(g) {
|
|
1077
|
+
var P = g.name, C = g.options, y = C === void 0 ? {} : C, b = g.effect;
|
|
1099
1078
|
if (typeof b == "function") {
|
|
1100
1079
|
var w = b({
|
|
1101
|
-
state:
|
|
1080
|
+
state: u,
|
|
1102
1081
|
name: P,
|
|
1103
1082
|
instance: v,
|
|
1104
1083
|
options: y
|
|
@@ -1116,15 +1095,15 @@ function Sn(e) {
|
|
|
1116
1095
|
return v;
|
|
1117
1096
|
};
|
|
1118
1097
|
}
|
|
1119
|
-
var
|
|
1120
|
-
defaultModifiers:
|
|
1098
|
+
var gn = [$i, rn, Xi, Ei, tn, Qi, sn, _i, Ji], bn = /* @__PURE__ */ hn({
|
|
1099
|
+
defaultModifiers: gn
|
|
1121
1100
|
});
|
|
1122
|
-
function
|
|
1123
|
-
return
|
|
1101
|
+
function yn(e) {
|
|
1102
|
+
return It("MuiPopper", e);
|
|
1124
1103
|
}
|
|
1125
|
-
|
|
1126
|
-
const
|
|
1127
|
-
function
|
|
1104
|
+
eo("MuiPopper", ["root"]);
|
|
1105
|
+
const wn = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], Pn = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
|
1106
|
+
function Tn(e, o) {
|
|
1128
1107
|
if (o === "ltr")
|
|
1129
1108
|
return e;
|
|
1130
1109
|
switch (e) {
|
|
@@ -1143,15 +1122,15 @@ function Dn(e, o) {
|
|
|
1143
1122
|
function St(e) {
|
|
1144
1123
|
return typeof e == "function" ? e() : e;
|
|
1145
1124
|
}
|
|
1146
|
-
function
|
|
1125
|
+
function _t(e) {
|
|
1147
1126
|
return e.nodeType !== void 0;
|
|
1148
1127
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return !
|
|
1128
|
+
function Cn(e) {
|
|
1129
|
+
return !_t(e);
|
|
1151
1130
|
}
|
|
1152
|
-
const
|
|
1131
|
+
const Sn = () => Mt({
|
|
1153
1132
|
root: ["root"]
|
|
1154
|
-
},
|
|
1133
|
+
}, di(yn)), On = {}, En = /* @__PURE__ */ D.forwardRef(function(o, t) {
|
|
1155
1134
|
var r;
|
|
1156
1135
|
const {
|
|
1157
1136
|
anchorEl: i,
|
|
@@ -1160,7 +1139,7 @@ const Mn = () => _t({
|
|
|
1160
1139
|
disablePortal: s,
|
|
1161
1140
|
modifiers: l,
|
|
1162
1141
|
open: d,
|
|
1163
|
-
placement:
|
|
1142
|
+
placement: u,
|
|
1164
1143
|
popperOptions: f,
|
|
1165
1144
|
popperRef: c,
|
|
1166
1145
|
slotProps: v = {},
|
|
@@ -1168,24 +1147,24 @@ const Mn = () => _t({
|
|
|
1168
1147
|
TransitionProps: m
|
|
1169
1148
|
// @ts-ignore internal logic
|
|
1170
1149
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
1171
|
-
} = o, g =
|
|
1172
|
-
|
|
1150
|
+
} = o, g = je(o, wn), P = D.useRef(null), C = Zt(P, t), y = D.useRef(null), b = Zt(y, c), w = D.useRef(b);
|
|
1151
|
+
Yo(() => {
|
|
1173
1152
|
w.current = b;
|
|
1174
|
-
}, [b]),
|
|
1175
|
-
const T =
|
|
1176
|
-
|
|
1153
|
+
}, [b]), D.useImperativeHandle(c, () => y.current, []);
|
|
1154
|
+
const T = Tn(u, a), [O, x] = D.useState(T), [E, A] = D.useState(St(i));
|
|
1155
|
+
D.useEffect(() => {
|
|
1177
1156
|
y.current && y.current.forceUpdate();
|
|
1178
|
-
}),
|
|
1157
|
+
}), D.useEffect(() => {
|
|
1179
1158
|
i && A(St(i));
|
|
1180
|
-
}, [i]),
|
|
1159
|
+
}, [i]), Yo(() => {
|
|
1181
1160
|
if (!E || !d)
|
|
1182
1161
|
return;
|
|
1183
|
-
const U = (
|
|
1184
|
-
|
|
1162
|
+
const U = ($) => {
|
|
1163
|
+
x($.placement);
|
|
1185
1164
|
};
|
|
1186
|
-
if (process.env.NODE_ENV !== "production" && E &&
|
|
1187
|
-
const
|
|
1188
|
-
process.env.NODE_ENV !== "test" &&
|
|
1165
|
+
if (process.env.NODE_ENV !== "production" && E && _t(E) && E.nodeType === 1) {
|
|
1166
|
+
const $ = E.getBoundingClientRect();
|
|
1167
|
+
process.env.NODE_ENV !== "test" && $.top === 0 && $.left === 0 && $.right === 0 && $.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
1189
1168
|
`));
|
|
1190
1169
|
}
|
|
1191
1170
|
let B = [{
|
|
@@ -1203,13 +1182,13 @@ const Mn = () => _t({
|
|
|
1203
1182
|
enabled: !0,
|
|
1204
1183
|
phase: "afterWrite",
|
|
1205
1184
|
fn: ({
|
|
1206
|
-
state:
|
|
1185
|
+
state: $
|
|
1207
1186
|
}) => {
|
|
1208
|
-
U(
|
|
1187
|
+
U($);
|
|
1209
1188
|
}
|
|
1210
1189
|
}];
|
|
1211
1190
|
l != null && (B = B.concat(l)), f && f.modifiers != null && (B = B.concat(f.modifiers));
|
|
1212
|
-
const W =
|
|
1191
|
+
const W = bn(E, P.current, S({
|
|
1213
1192
|
placement: T
|
|
1214
1193
|
}, f, {
|
|
1215
1194
|
modifiers: B
|
|
@@ -1218,25 +1197,25 @@ const Mn = () => _t({
|
|
|
1218
1197
|
W.destroy(), w.current(null);
|
|
1219
1198
|
};
|
|
1220
1199
|
}, [E, s, l, d, f, T]);
|
|
1221
|
-
const
|
|
1200
|
+
const M = {
|
|
1222
1201
|
placement: O
|
|
1223
1202
|
};
|
|
1224
|
-
m !== null && (
|
|
1225
|
-
const
|
|
1226
|
-
elementType:
|
|
1203
|
+
m !== null && (M.TransitionProps = m);
|
|
1204
|
+
const X = Sn(), N = (r = h.root) != null ? r : "div", Z = Ur({
|
|
1205
|
+
elementType: N,
|
|
1227
1206
|
externalSlotProps: v.root,
|
|
1228
1207
|
externalForwardedProps: g,
|
|
1229
1208
|
additionalProps: {
|
|
1230
1209
|
role: "tooltip",
|
|
1231
|
-
ref:
|
|
1210
|
+
ref: C
|
|
1232
1211
|
},
|
|
1233
1212
|
ownerState: o,
|
|
1234
|
-
className:
|
|
1213
|
+
className: X.root
|
|
1235
1214
|
});
|
|
1236
|
-
return /* @__PURE__ */ _(
|
|
1237
|
-
children: typeof n == "function" ? n(
|
|
1215
|
+
return /* @__PURE__ */ _(N, S({}, Z, {
|
|
1216
|
+
children: typeof n == "function" ? n(M) : n
|
|
1238
1217
|
}));
|
|
1239
|
-
}),
|
|
1218
|
+
}), ur = /* @__PURE__ */ D.forwardRef(function(o, t) {
|
|
1240
1219
|
const {
|
|
1241
1220
|
anchorEl: r,
|
|
1242
1221
|
children: i,
|
|
@@ -1245,63 +1224,63 @@ const Mn = () => _t({
|
|
|
1245
1224
|
disablePortal: s = !1,
|
|
1246
1225
|
keepMounted: l = !1,
|
|
1247
1226
|
modifiers: d,
|
|
1248
|
-
open:
|
|
1227
|
+
open: u,
|
|
1249
1228
|
placement: f = "bottom",
|
|
1250
|
-
popperOptions: c =
|
|
1229
|
+
popperOptions: c = On,
|
|
1251
1230
|
popperRef: v,
|
|
1252
1231
|
style: h,
|
|
1253
1232
|
transition: m = !1,
|
|
1254
1233
|
slotProps: g = {},
|
|
1255
1234
|
slots: P = {}
|
|
1256
|
-
} = o,
|
|
1235
|
+
} = o, C = je(o, Pn), [y, b] = D.useState(!0), w = () => {
|
|
1257
1236
|
b(!1);
|
|
1258
1237
|
}, T = () => {
|
|
1259
1238
|
b(!0);
|
|
1260
1239
|
};
|
|
1261
|
-
if (!l && !
|
|
1240
|
+
if (!l && !u && (!m || y))
|
|
1262
1241
|
return null;
|
|
1263
1242
|
let O;
|
|
1264
1243
|
if (n)
|
|
1265
1244
|
O = n;
|
|
1266
1245
|
else if (r) {
|
|
1267
1246
|
const A = St(r);
|
|
1268
|
-
O = A &&
|
|
1247
|
+
O = A && _t(A) ? xo(A).body : xo(null).body;
|
|
1269
1248
|
}
|
|
1270
|
-
const
|
|
1271
|
-
in:
|
|
1249
|
+
const x = !u && l && (!m || y) ? "none" : void 0, E = m ? {
|
|
1250
|
+
in: u,
|
|
1272
1251
|
onEnter: w,
|
|
1273
1252
|
onExited: T
|
|
1274
1253
|
} : void 0;
|
|
1275
|
-
return /* @__PURE__ */ _(
|
|
1254
|
+
return /* @__PURE__ */ _(Zr, {
|
|
1276
1255
|
disablePortal: s,
|
|
1277
1256
|
container: O,
|
|
1278
|
-
children: /* @__PURE__ */ _(
|
|
1257
|
+
children: /* @__PURE__ */ _(En, S({
|
|
1279
1258
|
anchorEl: r,
|
|
1280
1259
|
direction: a,
|
|
1281
1260
|
disablePortal: s,
|
|
1282
1261
|
modifiers: d,
|
|
1283
1262
|
ref: t,
|
|
1284
|
-
open: m ? !y :
|
|
1263
|
+
open: m ? !y : u,
|
|
1285
1264
|
placement: f,
|
|
1286
1265
|
popperOptions: c,
|
|
1287
1266
|
popperRef: v,
|
|
1288
1267
|
slotProps: g,
|
|
1289
1268
|
slots: P
|
|
1290
|
-
},
|
|
1291
|
-
style:
|
|
1269
|
+
}, C, {
|
|
1270
|
+
style: S({
|
|
1292
1271
|
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
1293
1272
|
position: "fixed",
|
|
1294
1273
|
// Fix Popper.js display issue
|
|
1295
1274
|
top: 0,
|
|
1296
1275
|
left: 0,
|
|
1297
|
-
display:
|
|
1276
|
+
display: x
|
|
1298
1277
|
}, h),
|
|
1299
1278
|
TransitionProps: E,
|
|
1300
1279
|
children: i
|
|
1301
1280
|
}))
|
|
1302
1281
|
});
|
|
1303
1282
|
});
|
|
1304
|
-
process.env.NODE_ENV !== "production" && (
|
|
1283
|
+
process.env.NODE_ENV !== "production" && (ur.propTypes = {
|
|
1305
1284
|
// ----------------------------- Warning --------------------------------
|
|
1306
1285
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1307
1286
|
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
@@ -1312,15 +1291,15 @@ process.env.NODE_ENV !== "production" && (pr.propTypes = {
|
|
|
1312
1291
|
* It's used to set the position of the popper.
|
|
1313
1292
|
* The return value will passed as the reference object of the Popper instance.
|
|
1314
1293
|
*/
|
|
1315
|
-
anchorEl: Jo(
|
|
1294
|
+
anchorEl: Jo(p.oneOfType([Tt, p.object, p.func]), (e) => {
|
|
1316
1295
|
if (e.open) {
|
|
1317
1296
|
const o = St(e.anchorEl);
|
|
1318
|
-
if (o &&
|
|
1297
|
+
if (o && _t(o) && o.nodeType === 1) {
|
|
1319
1298
|
const t = o.getBoundingClientRect();
|
|
1320
1299
|
if (process.env.NODE_ENV !== "test" && t.top === 0 && t.left === 0 && t.right === 0 && t.bottom === 0)
|
|
1321
1300
|
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
1322
1301
|
`));
|
|
1323
|
-
} else if (!o || typeof o.getBoundingClientRect != "function" ||
|
|
1302
|
+
} else if (!o || typeof o.getBoundingClientRect != "function" || Cn(o) && o.contextElement != null && o.contextElement.nodeType !== 1)
|
|
1324
1303
|
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
1325
1304
|
`));
|
|
1326
1305
|
}
|
|
@@ -1329,7 +1308,7 @@ process.env.NODE_ENV !== "production" && (pr.propTypes = {
|
|
|
1329
1308
|
/**
|
|
1330
1309
|
* Popper render function or node.
|
|
1331
1310
|
*/
|
|
1332
|
-
children:
|
|
1311
|
+
children: p.oneOfType([p.node, p.func]),
|
|
1333
1312
|
/**
|
|
1334
1313
|
* An HTML element or function that returns one.
|
|
1335
1314
|
* The `container` will have the portal children appended to it.
|
|
@@ -1337,24 +1316,24 @@ process.env.NODE_ENV !== "production" && (pr.propTypes = {
|
|
|
1337
1316
|
* By default, it uses the body of the top-level document object,
|
|
1338
1317
|
* so it's simply `document.body` most of the time.
|
|
1339
1318
|
*/
|
|
1340
|
-
container:
|
|
1319
|
+
container: p.oneOfType([Tt, p.func]),
|
|
1341
1320
|
/**
|
|
1342
1321
|
* Direction of the text.
|
|
1343
1322
|
* @default 'ltr'
|
|
1344
1323
|
*/
|
|
1345
|
-
direction:
|
|
1324
|
+
direction: p.oneOf(["ltr", "rtl"]),
|
|
1346
1325
|
/**
|
|
1347
1326
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1348
1327
|
* @default false
|
|
1349
1328
|
*/
|
|
1350
|
-
disablePortal:
|
|
1329
|
+
disablePortal: p.bool,
|
|
1351
1330
|
/**
|
|
1352
1331
|
* Always keep the children in the DOM.
|
|
1353
1332
|
* This prop can be useful in SEO situation or
|
|
1354
1333
|
* when you want to maximize the responsiveness of the Popper.
|
|
1355
1334
|
* @default false
|
|
1356
1335
|
*/
|
|
1357
|
-
keepMounted:
|
|
1336
|
+
keepMounted: p.bool,
|
|
1358
1337
|
/**
|
|
1359
1338
|
* Popper.js is based on a "plugin-like" architecture,
|
|
1360
1339
|
* most of its features are fully encapsulated "modifiers".
|
|
@@ -1364,35 +1343,35 @@ process.env.NODE_ENV !== "production" && (pr.propTypes = {
|
|
|
1364
1343
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1365
1344
|
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1366
1345
|
*/
|
|
1367
|
-
modifiers:
|
|
1368
|
-
data:
|
|
1369
|
-
effect:
|
|
1370
|
-
enabled:
|
|
1371
|
-
fn:
|
|
1372
|
-
name:
|
|
1373
|
-
options:
|
|
1374
|
-
phase:
|
|
1375
|
-
requires:
|
|
1376
|
-
requiresIfExists:
|
|
1346
|
+
modifiers: p.arrayOf(p.shape({
|
|
1347
|
+
data: p.object,
|
|
1348
|
+
effect: p.func,
|
|
1349
|
+
enabled: p.bool,
|
|
1350
|
+
fn: p.func,
|
|
1351
|
+
name: p.any,
|
|
1352
|
+
options: p.object,
|
|
1353
|
+
phase: p.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1354
|
+
requires: p.arrayOf(p.string),
|
|
1355
|
+
requiresIfExists: p.arrayOf(p.string)
|
|
1377
1356
|
})),
|
|
1378
1357
|
/**
|
|
1379
1358
|
* If `true`, the component is shown.
|
|
1380
1359
|
*/
|
|
1381
|
-
open:
|
|
1360
|
+
open: p.bool.isRequired,
|
|
1382
1361
|
/**
|
|
1383
1362
|
* Popper placement.
|
|
1384
1363
|
* @default 'bottom'
|
|
1385
1364
|
*/
|
|
1386
|
-
placement:
|
|
1365
|
+
placement: p.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1387
1366
|
/**
|
|
1388
1367
|
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1389
1368
|
* @default {}
|
|
1390
1369
|
*/
|
|
1391
|
-
popperOptions:
|
|
1392
|
-
modifiers:
|
|
1393
|
-
onFirstUpdate:
|
|
1394
|
-
placement:
|
|
1395
|
-
strategy:
|
|
1370
|
+
popperOptions: p.shape({
|
|
1371
|
+
modifiers: p.array,
|
|
1372
|
+
onFirstUpdate: p.func,
|
|
1373
|
+
placement: p.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1374
|
+
strategy: p.oneOf(["absolute", "fixed"])
|
|
1396
1375
|
}),
|
|
1397
1376
|
/**
|
|
1398
1377
|
* A ref that points to the used popper instance.
|
|
@@ -1402,30 +1381,30 @@ process.env.NODE_ENV !== "production" && (pr.propTypes = {
|
|
|
1402
1381
|
* The props used for each slot inside the Popper.
|
|
1403
1382
|
* @default {}
|
|
1404
1383
|
*/
|
|
1405
|
-
slotProps:
|
|
1406
|
-
root:
|
|
1384
|
+
slotProps: p.shape({
|
|
1385
|
+
root: p.oneOfType([p.func, p.object])
|
|
1407
1386
|
}),
|
|
1408
1387
|
/**
|
|
1409
1388
|
* The components used for each slot inside the Popper.
|
|
1410
1389
|
* Either a string to use a HTML element or a component.
|
|
1411
1390
|
* @default {}
|
|
1412
1391
|
*/
|
|
1413
|
-
slots:
|
|
1414
|
-
root:
|
|
1392
|
+
slots: p.shape({
|
|
1393
|
+
root: p.elementType
|
|
1415
1394
|
}),
|
|
1416
1395
|
/**
|
|
1417
1396
|
* Help supporting a react-transition-group/Transition component.
|
|
1418
1397
|
* @default false
|
|
1419
1398
|
*/
|
|
1420
|
-
transition:
|
|
1399
|
+
transition: p.bool
|
|
1421
1400
|
});
|
|
1422
|
-
const
|
|
1401
|
+
const An = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], Rn = xe(ur, {
|
|
1423
1402
|
name: "MuiPopper",
|
|
1424
1403
|
slot: "Root",
|
|
1425
1404
|
overridesResolver: (e, o) => o.root
|
|
1426
|
-
})({}), dr = /* @__PURE__ */
|
|
1405
|
+
})({}), dr = /* @__PURE__ */ D.forwardRef(function(o, t) {
|
|
1427
1406
|
var r;
|
|
1428
|
-
const i =
|
|
1407
|
+
const i = Ir(), n = xt({
|
|
1429
1408
|
props: o,
|
|
1430
1409
|
name: "MuiPopper"
|
|
1431
1410
|
}), {
|
|
@@ -1433,7 +1412,7 @@ const Bn = ["anchorEl", "component", "components", "componentsProps", "container
|
|
|
1433
1412
|
component: s,
|
|
1434
1413
|
components: l,
|
|
1435
1414
|
componentsProps: d,
|
|
1436
|
-
container:
|
|
1415
|
+
container: u,
|
|
1437
1416
|
disablePortal: f,
|
|
1438
1417
|
keepMounted: c,
|
|
1439
1418
|
modifiers: v,
|
|
@@ -1441,12 +1420,12 @@ const Bn = ["anchorEl", "component", "components", "componentsProps", "container
|
|
|
1441
1420
|
placement: m,
|
|
1442
1421
|
popperOptions: g,
|
|
1443
1422
|
popperRef: P,
|
|
1444
|
-
transition:
|
|
1423
|
+
transition: C,
|
|
1445
1424
|
slots: y,
|
|
1446
1425
|
slotProps: b
|
|
1447
|
-
} = n, w =
|
|
1426
|
+
} = n, w = je(n, An), T = (r = y == null ? void 0 : y.root) != null ? r : l == null ? void 0 : l.Root, O = S({
|
|
1448
1427
|
anchorEl: a,
|
|
1449
|
-
container:
|
|
1428
|
+
container: u,
|
|
1450
1429
|
disablePortal: f,
|
|
1451
1430
|
keepMounted: c,
|
|
1452
1431
|
modifiers: v,
|
|
@@ -1454,9 +1433,9 @@ const Bn = ["anchorEl", "component", "components", "componentsProps", "container
|
|
|
1454
1433
|
placement: m,
|
|
1455
1434
|
popperOptions: g,
|
|
1456
1435
|
popperRef: P,
|
|
1457
|
-
transition:
|
|
1436
|
+
transition: C
|
|
1458
1437
|
}, w);
|
|
1459
|
-
return /* @__PURE__ */ _(
|
|
1438
|
+
return /* @__PURE__ */ _(Rn, S({
|
|
1460
1439
|
as: s,
|
|
1461
1440
|
direction: i == null ? void 0 : i.direction,
|
|
1462
1441
|
slots: {
|
|
@@ -1478,30 +1457,30 @@ process.env.NODE_ENV !== "production" && (dr.propTypes = {
|
|
|
1478
1457
|
* It's used to set the position of the popper.
|
|
1479
1458
|
* The return value will passed as the reference object of the Popper instance.
|
|
1480
1459
|
*/
|
|
1481
|
-
anchorEl:
|
|
1460
|
+
anchorEl: p.oneOfType([Tt, p.object, p.func]),
|
|
1482
1461
|
/**
|
|
1483
1462
|
* Popper render function or node.
|
|
1484
1463
|
*/
|
|
1485
|
-
children:
|
|
1464
|
+
children: p.oneOfType([p.node, p.func]),
|
|
1486
1465
|
/**
|
|
1487
1466
|
* The component used for the root node.
|
|
1488
1467
|
* Either a string to use a HTML element or a component.
|
|
1489
1468
|
*/
|
|
1490
|
-
component:
|
|
1469
|
+
component: p.elementType,
|
|
1491
1470
|
/**
|
|
1492
1471
|
* The components used for each slot inside the Popper.
|
|
1493
1472
|
* Either a string to use a HTML element or a component.
|
|
1494
1473
|
* @default {}
|
|
1495
1474
|
*/
|
|
1496
|
-
components:
|
|
1497
|
-
Root:
|
|
1475
|
+
components: p.shape({
|
|
1476
|
+
Root: p.elementType
|
|
1498
1477
|
}),
|
|
1499
1478
|
/**
|
|
1500
1479
|
* The props used for each slot inside the Popper.
|
|
1501
1480
|
* @default {}
|
|
1502
1481
|
*/
|
|
1503
|
-
componentsProps:
|
|
1504
|
-
root:
|
|
1482
|
+
componentsProps: p.shape({
|
|
1483
|
+
root: p.oneOfType([p.func, p.object])
|
|
1505
1484
|
}),
|
|
1506
1485
|
/**
|
|
1507
1486
|
* An HTML element or function that returns one.
|
|
@@ -1510,19 +1489,19 @@ process.env.NODE_ENV !== "production" && (dr.propTypes = {
|
|
|
1510
1489
|
* By default, it uses the body of the top-level document object,
|
|
1511
1490
|
* so it's simply `document.body` most of the time.
|
|
1512
1491
|
*/
|
|
1513
|
-
container:
|
|
1492
|
+
container: p.oneOfType([Tt, p.func]),
|
|
1514
1493
|
/**
|
|
1515
1494
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1516
1495
|
* @default false
|
|
1517
1496
|
*/
|
|
1518
|
-
disablePortal:
|
|
1497
|
+
disablePortal: p.bool,
|
|
1519
1498
|
/**
|
|
1520
1499
|
* Always keep the children in the DOM.
|
|
1521
1500
|
* This prop can be useful in SEO situation or
|
|
1522
1501
|
* when you want to maximize the responsiveness of the Popper.
|
|
1523
1502
|
* @default false
|
|
1524
1503
|
*/
|
|
1525
|
-
keepMounted:
|
|
1504
|
+
keepMounted: p.bool,
|
|
1526
1505
|
/**
|
|
1527
1506
|
* Popper.js is based on a "plugin-like" architecture,
|
|
1528
1507
|
* most of its features are fully encapsulated "modifiers".
|
|
@@ -1532,35 +1511,35 @@ process.env.NODE_ENV !== "production" && (dr.propTypes = {
|
|
|
1532
1511
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
1533
1512
|
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
1534
1513
|
*/
|
|
1535
|
-
modifiers:
|
|
1536
|
-
data:
|
|
1537
|
-
effect:
|
|
1538
|
-
enabled:
|
|
1539
|
-
fn:
|
|
1540
|
-
name:
|
|
1541
|
-
options:
|
|
1542
|
-
phase:
|
|
1543
|
-
requires:
|
|
1544
|
-
requiresIfExists:
|
|
1514
|
+
modifiers: p.arrayOf(p.shape({
|
|
1515
|
+
data: p.object,
|
|
1516
|
+
effect: p.func,
|
|
1517
|
+
enabled: p.bool,
|
|
1518
|
+
fn: p.func,
|
|
1519
|
+
name: p.any,
|
|
1520
|
+
options: p.object,
|
|
1521
|
+
phase: p.oneOf(["afterMain", "afterRead", "afterWrite", "beforeMain", "beforeRead", "beforeWrite", "main", "read", "write"]),
|
|
1522
|
+
requires: p.arrayOf(p.string),
|
|
1523
|
+
requiresIfExists: p.arrayOf(p.string)
|
|
1545
1524
|
})),
|
|
1546
1525
|
/**
|
|
1547
1526
|
* If `true`, the component is shown.
|
|
1548
1527
|
*/
|
|
1549
|
-
open:
|
|
1528
|
+
open: p.bool.isRequired,
|
|
1550
1529
|
/**
|
|
1551
1530
|
* Popper placement.
|
|
1552
1531
|
* @default 'bottom'
|
|
1553
1532
|
*/
|
|
1554
|
-
placement:
|
|
1533
|
+
placement: p.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1555
1534
|
/**
|
|
1556
1535
|
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
1557
1536
|
* @default {}
|
|
1558
1537
|
*/
|
|
1559
|
-
popperOptions:
|
|
1560
|
-
modifiers:
|
|
1561
|
-
onFirstUpdate:
|
|
1562
|
-
placement:
|
|
1563
|
-
strategy:
|
|
1538
|
+
popperOptions: p.shape({
|
|
1539
|
+
modifiers: p.array,
|
|
1540
|
+
onFirstUpdate: p.func,
|
|
1541
|
+
placement: p.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
1542
|
+
strategy: p.oneOf(["absolute", "fixed"])
|
|
1564
1543
|
}),
|
|
1565
1544
|
/**
|
|
1566
1545
|
* A ref that points to the used popper instance.
|
|
@@ -1570,58 +1549,28 @@ process.env.NODE_ENV !== "production" && (dr.propTypes = {
|
|
|
1570
1549
|
* The props used for each slot inside the Popper.
|
|
1571
1550
|
* @default {}
|
|
1572
1551
|
*/
|
|
1573
|
-
slotProps:
|
|
1574
|
-
root:
|
|
1552
|
+
slotProps: p.shape({
|
|
1553
|
+
root: p.oneOfType([p.func, p.object])
|
|
1575
1554
|
}),
|
|
1576
1555
|
/**
|
|
1577
1556
|
* The components used for each slot inside the Popper.
|
|
1578
1557
|
* Either a string to use a HTML element or a component.
|
|
1579
1558
|
* @default {}
|
|
1580
1559
|
*/
|
|
1581
|
-
slots:
|
|
1582
|
-
root:
|
|
1560
|
+
slots: p.shape({
|
|
1561
|
+
root: p.elementType
|
|
1583
1562
|
}),
|
|
1584
1563
|
/**
|
|
1585
1564
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1586
1565
|
*/
|
|
1587
|
-
sx:
|
|
1566
|
+
sx: p.oneOfType([p.arrayOf(p.oneOfType([p.func, p.object, p.bool])), p.func, p.object]),
|
|
1588
1567
|
/**
|
|
1589
1568
|
* Help supporting a react-transition-group/Transition component.
|
|
1590
1569
|
* @default false
|
|
1591
1570
|
*/
|
|
1592
|
-
transition:
|
|
1571
|
+
transition: p.bool
|
|
1593
1572
|
});
|
|
1594
|
-
const fr = dr,
|
|
1595
|
-
themeId: ai,
|
|
1596
|
-
defaultTheme: $n,
|
|
1597
|
-
defaultClassName: "MuiBox-root",
|
|
1598
|
-
generateClassName: Ir.generate
|
|
1599
|
-
});
|
|
1600
|
-
process.env.NODE_ENV !== "production" && (cr.propTypes = {
|
|
1601
|
-
// ----------------------------- Warning --------------------------------
|
|
1602
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1603
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1604
|
-
// ----------------------------------------------------------------------
|
|
1605
|
-
/**
|
|
1606
|
-
* @ignore
|
|
1607
|
-
*/
|
|
1608
|
-
children: u.node,
|
|
1609
|
-
/**
|
|
1610
|
-
* The component used for the root node.
|
|
1611
|
-
* Either a string to use a HTML element or a component.
|
|
1612
|
-
*/
|
|
1613
|
-
component: u.elementType,
|
|
1614
|
-
/**
|
|
1615
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1616
|
-
*/
|
|
1617
|
-
sx: u.oneOfType([u.arrayOf(u.oneOfType([u.func, u.object, u.bool])), u.func, u.object])
|
|
1618
|
-
});
|
|
1619
|
-
const Wn = cr;
|
|
1620
|
-
function Xn(e) {
|
|
1621
|
-
return Dt("MuiDivider", e);
|
|
1622
|
-
}
|
|
1623
|
-
Nt("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
|
|
1624
|
-
const kn = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"], jn = (e) => {
|
|
1573
|
+
const fr = dr, Dn = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"], xn = (e) => {
|
|
1625
1574
|
const {
|
|
1626
1575
|
absolute: o,
|
|
1627
1576
|
children: t,
|
|
@@ -1632,11 +1581,11 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
|
|
|
1632
1581
|
textAlign: s,
|
|
1633
1582
|
variant: l
|
|
1634
1583
|
} = e;
|
|
1635
|
-
return
|
|
1584
|
+
return Mt({
|
|
1636
1585
|
root: ["root", o && "absolute", l, n && "light", a === "vertical" && "vertical", i && "flexItem", t && "withChildren", t && a === "vertical" && "withChildrenVertical", s === "right" && a !== "vertical" && "textAlignRight", s === "left" && a !== "vertical" && "textAlignLeft"],
|
|
1637
1586
|
wrapper: ["wrapper", a === "vertical" && "wrapperVertical"]
|
|
1638
|
-
},
|
|
1639
|
-
},
|
|
1587
|
+
}, oi, r);
|
|
1588
|
+
}, Mn = xe("div", {
|
|
1640
1589
|
name: "MuiDivider",
|
|
1641
1590
|
slot: "Root",
|
|
1642
1591
|
overridesResolver: (e, o) => {
|
|
@@ -1648,7 +1597,7 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
|
|
|
1648
1597
|
})(({
|
|
1649
1598
|
theme: e,
|
|
1650
1599
|
ownerState: o
|
|
1651
|
-
}) =>
|
|
1600
|
+
}) => S({
|
|
1652
1601
|
margin: 0,
|
|
1653
1602
|
// Reset browser default style.
|
|
1654
1603
|
flexShrink: 0,
|
|
@@ -1680,7 +1629,7 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
|
|
|
1680
1629
|
height: "auto"
|
|
1681
1630
|
}), ({
|
|
1682
1631
|
ownerState: e
|
|
1683
|
-
}) =>
|
|
1632
|
+
}) => S({}, e.children && {
|
|
1684
1633
|
display: "flex",
|
|
1685
1634
|
whiteSpace: "nowrap",
|
|
1686
1635
|
textAlign: "center",
|
|
@@ -1692,7 +1641,7 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
|
|
|
1692
1641
|
}), ({
|
|
1693
1642
|
theme: e,
|
|
1694
1643
|
ownerState: o
|
|
1695
|
-
}) =>
|
|
1644
|
+
}) => S({}, o.children && o.orientation !== "vertical" && {
|
|
1696
1645
|
"&::before, &::after": {
|
|
1697
1646
|
width: "100%",
|
|
1698
1647
|
borderTop: `thin solid ${(e.vars || e).palette.divider}`
|
|
@@ -1700,7 +1649,7 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
|
|
|
1700
1649
|
}), ({
|
|
1701
1650
|
theme: e,
|
|
1702
1651
|
ownerState: o
|
|
1703
|
-
}) =>
|
|
1652
|
+
}) => S({}, o.children && o.orientation === "vertical" && {
|
|
1704
1653
|
flexDirection: "column",
|
|
1705
1654
|
"&::before, &::after": {
|
|
1706
1655
|
height: "100%",
|
|
@@ -1708,7 +1657,7 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
|
|
|
1708
1657
|
}
|
|
1709
1658
|
}), ({
|
|
1710
1659
|
ownerState: e
|
|
1711
|
-
}) =>
|
|
1660
|
+
}) => S({}, e.textAlign === "right" && e.orientation !== "vertical" && {
|
|
1712
1661
|
"&::before": {
|
|
1713
1662
|
width: "90%"
|
|
1714
1663
|
},
|
|
@@ -1722,7 +1671,7 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
|
|
|
1722
1671
|
"&::after": {
|
|
1723
1672
|
width: "90%"
|
|
1724
1673
|
}
|
|
1725
|
-
})),
|
|
1674
|
+
})), Yn = xe("span", {
|
|
1726
1675
|
name: "MuiDivider",
|
|
1727
1676
|
slot: "Wrapper",
|
|
1728
1677
|
overridesResolver: (e, o) => {
|
|
@@ -1734,15 +1683,15 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
|
|
|
1734
1683
|
})(({
|
|
1735
1684
|
theme: e,
|
|
1736
1685
|
ownerState: o
|
|
1737
|
-
}) =>
|
|
1686
|
+
}) => S({
|
|
1738
1687
|
display: "inline-block",
|
|
1739
1688
|
paddingLeft: `calc(${e.spacing(1)} * 1.2)`,
|
|
1740
1689
|
paddingRight: `calc(${e.spacing(1)} * 1.2)`
|
|
1741
1690
|
}, o.orientation === "vertical" && {
|
|
1742
1691
|
paddingTop: `calc(${e.spacing(1)} * 1.2)`,
|
|
1743
1692
|
paddingBottom: `calc(${e.spacing(1)} * 1.2)`
|
|
1744
|
-
})), lo = /* @__PURE__ */
|
|
1745
|
-
const r =
|
|
1693
|
+
})), lo = /* @__PURE__ */ D.forwardRef(function(o, t) {
|
|
1694
|
+
const r = xt({
|
|
1746
1695
|
props: o,
|
|
1747
1696
|
name: "MuiDivider"
|
|
1748
1697
|
}), {
|
|
@@ -1752,28 +1701,28 @@ const kn = ["absolute", "children", "className", "component", "flexItem", "light
|
|
|
1752
1701
|
component: s = n ? "div" : "hr",
|
|
1753
1702
|
flexItem: l = !1,
|
|
1754
1703
|
light: d = !1,
|
|
1755
|
-
orientation:
|
|
1704
|
+
orientation: u = "horizontal",
|
|
1756
1705
|
role: f = s !== "hr" ? "separator" : void 0,
|
|
1757
1706
|
textAlign: c = "center",
|
|
1758
1707
|
variant: v = "fullWidth"
|
|
1759
|
-
} = r, h =
|
|
1708
|
+
} = r, h = je(r, Dn), m = S({}, r, {
|
|
1760
1709
|
absolute: i,
|
|
1761
1710
|
component: s,
|
|
1762
1711
|
flexItem: l,
|
|
1763
1712
|
light: d,
|
|
1764
|
-
orientation:
|
|
1713
|
+
orientation: u,
|
|
1765
1714
|
role: f,
|
|
1766
1715
|
textAlign: c,
|
|
1767
1716
|
variant: v
|
|
1768
|
-
}), g =
|
|
1769
|
-
return /* @__PURE__ */ _(
|
|
1717
|
+
}), g = xn(m);
|
|
1718
|
+
return /* @__PURE__ */ _(Mn, S({
|
|
1770
1719
|
as: s,
|
|
1771
|
-
className:
|
|
1720
|
+
className: Be(g.root, a),
|
|
1772
1721
|
role: f,
|
|
1773
1722
|
ref: t,
|
|
1774
1723
|
ownerState: m
|
|
1775
1724
|
}, h, {
|
|
1776
|
-
children: n ? /* @__PURE__ */ _(
|
|
1725
|
+
children: n ? /* @__PURE__ */ _(Yn, {
|
|
1777
1726
|
className: g.wrapper,
|
|
1778
1727
|
ownerState: m,
|
|
1779
1728
|
children: n
|
|
@@ -1790,68 +1739,68 @@ process.env.NODE_ENV !== "production" && (lo.propTypes = {
|
|
|
1790
1739
|
* Absolutely position the element.
|
|
1791
1740
|
* @default false
|
|
1792
1741
|
*/
|
|
1793
|
-
absolute:
|
|
1742
|
+
absolute: p.bool,
|
|
1794
1743
|
/**
|
|
1795
1744
|
* The content of the component.
|
|
1796
1745
|
*/
|
|
1797
|
-
children:
|
|
1746
|
+
children: p.node,
|
|
1798
1747
|
/**
|
|
1799
1748
|
* Override or extend the styles applied to the component.
|
|
1800
1749
|
*/
|
|
1801
|
-
classes:
|
|
1750
|
+
classes: p.object,
|
|
1802
1751
|
/**
|
|
1803
1752
|
* @ignore
|
|
1804
1753
|
*/
|
|
1805
|
-
className:
|
|
1754
|
+
className: p.string,
|
|
1806
1755
|
/**
|
|
1807
1756
|
* The component used for the root node.
|
|
1808
1757
|
* Either a string to use a HTML element or a component.
|
|
1809
1758
|
*/
|
|
1810
|
-
component:
|
|
1759
|
+
component: p.elementType,
|
|
1811
1760
|
/**
|
|
1812
1761
|
* If `true`, a vertical divider will have the correct height when used in flex container.
|
|
1813
1762
|
* (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
|
|
1814
1763
|
* @default false
|
|
1815
1764
|
*/
|
|
1816
|
-
flexItem:
|
|
1765
|
+
flexItem: p.bool,
|
|
1817
1766
|
/**
|
|
1818
1767
|
* If `true`, the divider will have a lighter color.
|
|
1819
1768
|
* @default false
|
|
1820
1769
|
*/
|
|
1821
|
-
light:
|
|
1770
|
+
light: p.bool,
|
|
1822
1771
|
/**
|
|
1823
1772
|
* The component orientation.
|
|
1824
1773
|
* @default 'horizontal'
|
|
1825
1774
|
*/
|
|
1826
|
-
orientation:
|
|
1775
|
+
orientation: p.oneOf(["horizontal", "vertical"]),
|
|
1827
1776
|
/**
|
|
1828
1777
|
* @ignore
|
|
1829
1778
|
*/
|
|
1830
|
-
role:
|
|
1779
|
+
role: p.string,
|
|
1831
1780
|
/**
|
|
1832
1781
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1833
1782
|
*/
|
|
1834
|
-
sx:
|
|
1783
|
+
sx: p.oneOfType([p.arrayOf(p.oneOfType([p.func, p.object, p.bool])), p.func, p.object]),
|
|
1835
1784
|
/**
|
|
1836
1785
|
* The text alignment.
|
|
1837
1786
|
* @default 'center'
|
|
1838
1787
|
*/
|
|
1839
|
-
textAlign:
|
|
1788
|
+
textAlign: p.oneOf(["center", "left", "right"]),
|
|
1840
1789
|
/**
|
|
1841
1790
|
* The variant to use.
|
|
1842
1791
|
* @default 'fullWidth'
|
|
1843
1792
|
*/
|
|
1844
|
-
variant:
|
|
1793
|
+
variant: p.oneOfType([p.oneOf(["fullWidth", "inset", "middle"]), p.string])
|
|
1845
1794
|
});
|
|
1846
1795
|
const Lo = lo;
|
|
1847
|
-
function
|
|
1848
|
-
return
|
|
1796
|
+
function _n(e) {
|
|
1797
|
+
return It("MuiTooltip", e);
|
|
1849
1798
|
}
|
|
1850
|
-
const
|
|
1851
|
-
function
|
|
1799
|
+
const Nn = eo("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), we = Nn, Bn = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
|
|
1800
|
+
function zn(e) {
|
|
1852
1801
|
return Math.round(e * 1e5) / 1e5;
|
|
1853
1802
|
}
|
|
1854
|
-
const
|
|
1803
|
+
const Xn = (e) => {
|
|
1855
1804
|
const {
|
|
1856
1805
|
classes: o,
|
|
1857
1806
|
disableInteractive: t,
|
|
@@ -1863,8 +1812,8 @@ const qn = (e) => {
|
|
|
1863
1812
|
tooltip: ["tooltip", r && "tooltipArrow", i && "touch", `tooltipPlacement${Pe(n.split("-")[0])}`],
|
|
1864
1813
|
arrow: ["arrow"]
|
|
1865
1814
|
};
|
|
1866
|
-
return
|
|
1867
|
-
},
|
|
1815
|
+
return Mt(a, _n, o);
|
|
1816
|
+
}, Wn = xe(fr, {
|
|
1868
1817
|
name: "MuiTooltip",
|
|
1869
1818
|
slot: "Popper",
|
|
1870
1819
|
overridesResolver: (e, o) => {
|
|
@@ -1877,7 +1826,7 @@ const qn = (e) => {
|
|
|
1877
1826
|
theme: e,
|
|
1878
1827
|
ownerState: o,
|
|
1879
1828
|
open: t
|
|
1880
|
-
}) =>
|
|
1829
|
+
}) => S({
|
|
1881
1830
|
zIndex: (e.vars || e).zIndex.tooltip,
|
|
1882
1831
|
pointerEvents: "none"
|
|
1883
1832
|
}, !o.disableInteractive && {
|
|
@@ -1899,7 +1848,7 @@ const qn = (e) => {
|
|
|
1899
1848
|
transformOrigin: "100% 0"
|
|
1900
1849
|
}
|
|
1901
1850
|
},
|
|
1902
|
-
[`&[data-popper-placement*="right"] .${we.arrow}`]:
|
|
1851
|
+
[`&[data-popper-placement*="right"] .${we.arrow}`]: S({}, o.isRtl ? {
|
|
1903
1852
|
right: 0,
|
|
1904
1853
|
marginRight: "-0.71em"
|
|
1905
1854
|
} : {
|
|
@@ -1912,7 +1861,7 @@ const qn = (e) => {
|
|
|
1912
1861
|
transformOrigin: "100% 100%"
|
|
1913
1862
|
}
|
|
1914
1863
|
}),
|
|
1915
|
-
[`&[data-popper-placement*="left"] .${we.arrow}`]:
|
|
1864
|
+
[`&[data-popper-placement*="left"] .${we.arrow}`]: S({}, o.isRtl ? {
|
|
1916
1865
|
left: 0,
|
|
1917
1866
|
marginLeft: "-0.71em"
|
|
1918
1867
|
} : {
|
|
@@ -1925,7 +1874,7 @@ const qn = (e) => {
|
|
|
1925
1874
|
transformOrigin: "0 0"
|
|
1926
1875
|
}
|
|
1927
1876
|
})
|
|
1928
|
-
})),
|
|
1877
|
+
})), $n = xe("div", {
|
|
1929
1878
|
name: "MuiTooltip",
|
|
1930
1879
|
slot: "Tooltip",
|
|
1931
1880
|
overridesResolver: (e, o) => {
|
|
@@ -1937,7 +1886,7 @@ const qn = (e) => {
|
|
|
1937
1886
|
})(({
|
|
1938
1887
|
theme: e,
|
|
1939
1888
|
ownerState: o
|
|
1940
|
-
}) =>
|
|
1889
|
+
}) => S({
|
|
1941
1890
|
backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : Ie(e.palette.grey[700], 0.92),
|
|
1942
1891
|
borderRadius: (e.vars || e).shape.borderRadius,
|
|
1943
1892
|
color: (e.vars || e).palette.common.white,
|
|
@@ -1954,44 +1903,44 @@ const qn = (e) => {
|
|
|
1954
1903
|
}, o.touch && {
|
|
1955
1904
|
padding: "8px 16px",
|
|
1956
1905
|
fontSize: e.typography.pxToRem(14),
|
|
1957
|
-
lineHeight: `${
|
|
1906
|
+
lineHeight: `${zn(16 / 14)}em`,
|
|
1958
1907
|
fontWeight: e.typography.fontWeightRegular
|
|
1959
1908
|
}, {
|
|
1960
|
-
[`.${we.popper}[data-popper-placement*="left"] &`]:
|
|
1909
|
+
[`.${we.popper}[data-popper-placement*="left"] &`]: S({
|
|
1961
1910
|
transformOrigin: "right center"
|
|
1962
|
-
}, o.isRtl ?
|
|
1911
|
+
}, o.isRtl ? S({
|
|
1963
1912
|
marginLeft: "14px"
|
|
1964
1913
|
}, o.touch && {
|
|
1965
1914
|
marginLeft: "24px"
|
|
1966
|
-
}) :
|
|
1915
|
+
}) : S({
|
|
1967
1916
|
marginRight: "14px"
|
|
1968
1917
|
}, o.touch && {
|
|
1969
1918
|
marginRight: "24px"
|
|
1970
1919
|
})),
|
|
1971
|
-
[`.${we.popper}[data-popper-placement*="right"] &`]:
|
|
1920
|
+
[`.${we.popper}[data-popper-placement*="right"] &`]: S({
|
|
1972
1921
|
transformOrigin: "left center"
|
|
1973
|
-
}, o.isRtl ?
|
|
1922
|
+
}, o.isRtl ? S({
|
|
1974
1923
|
marginRight: "14px"
|
|
1975
1924
|
}, o.touch && {
|
|
1976
1925
|
marginRight: "24px"
|
|
1977
|
-
}) :
|
|
1926
|
+
}) : S({
|
|
1978
1927
|
marginLeft: "14px"
|
|
1979
1928
|
}, o.touch && {
|
|
1980
1929
|
marginLeft: "24px"
|
|
1981
1930
|
})),
|
|
1982
|
-
[`.${we.popper}[data-popper-placement*="top"] &`]:
|
|
1931
|
+
[`.${we.popper}[data-popper-placement*="top"] &`]: S({
|
|
1983
1932
|
transformOrigin: "center bottom",
|
|
1984
1933
|
marginBottom: "14px"
|
|
1985
1934
|
}, o.touch && {
|
|
1986
1935
|
marginBottom: "24px"
|
|
1987
1936
|
}),
|
|
1988
|
-
[`.${we.popper}[data-popper-placement*="bottom"] &`]:
|
|
1937
|
+
[`.${we.popper}[data-popper-placement*="bottom"] &`]: S({
|
|
1989
1938
|
transformOrigin: "center top",
|
|
1990
1939
|
marginTop: "14px"
|
|
1991
1940
|
}, o.touch && {
|
|
1992
1941
|
marginTop: "24px"
|
|
1993
1942
|
})
|
|
1994
|
-
})),
|
|
1943
|
+
})), kn = xe("span", {
|
|
1995
1944
|
name: "MuiTooltip",
|
|
1996
1945
|
slot: "Arrow",
|
|
1997
1946
|
overridesResolver: (e, o) => o.arrow
|
|
@@ -2014,7 +1963,7 @@ const qn = (e) => {
|
|
|
2014
1963
|
transform: "rotate(45deg)"
|
|
2015
1964
|
}
|
|
2016
1965
|
}));
|
|
2017
|
-
let vt = !1,
|
|
1966
|
+
let vt = !1, Vt = null, Ke = {
|
|
2018
1967
|
x: 0,
|
|
2019
1968
|
y: 0
|
|
2020
1969
|
};
|
|
@@ -2023,24 +1972,24 @@ function mt(e, o) {
|
|
|
2023
1972
|
o && o(t), e(t);
|
|
2024
1973
|
};
|
|
2025
1974
|
}
|
|
2026
|
-
const
|
|
2027
|
-
var r, i, n, a, s, l, d,
|
|
2028
|
-
const T =
|
|
1975
|
+
const cr = /* @__PURE__ */ D.forwardRef(function(o, t) {
|
|
1976
|
+
var r, i, n, a, s, l, d, u, f, c, v, h, m, g, P, C, y, b, w;
|
|
1977
|
+
const T = xt({
|
|
2029
1978
|
props: o,
|
|
2030
1979
|
name: "MuiTooltip"
|
|
2031
1980
|
}), {
|
|
2032
1981
|
arrow: O = !1,
|
|
2033
|
-
children:
|
|
1982
|
+
children: x,
|
|
2034
1983
|
components: E = {},
|
|
2035
1984
|
componentsProps: A = {},
|
|
2036
|
-
describeChild:
|
|
2037
|
-
disableFocusListener:
|
|
2038
|
-
disableHoverListener:
|
|
1985
|
+
describeChild: M = !1,
|
|
1986
|
+
disableFocusListener: X = !1,
|
|
1987
|
+
disableHoverListener: N = !1,
|
|
2039
1988
|
disableInteractive: Z = !1,
|
|
2040
1989
|
disableTouchListener: U = !1,
|
|
2041
1990
|
enterDelay: B = 100,
|
|
2042
1991
|
enterNextDelay: W = 0,
|
|
2043
|
-
enterTouchDelay:
|
|
1992
|
+
enterTouchDelay: $ = 700,
|
|
2044
1993
|
followCursor: q = !1,
|
|
2045
1994
|
id: be,
|
|
2046
1995
|
leaveDelay: se = 0,
|
|
@@ -2049,16 +1998,16 @@ const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
|
|
|
2049
1998
|
onOpen: K,
|
|
2050
1999
|
open: Q,
|
|
2051
2000
|
placement: le = "bottom",
|
|
2052
|
-
PopperComponent:
|
|
2001
|
+
PopperComponent: pe,
|
|
2053
2002
|
PopperProps: k = {},
|
|
2054
2003
|
slotProps: L = {},
|
|
2055
2004
|
slots: me = {},
|
|
2056
2005
|
title: j,
|
|
2057
|
-
TransitionComponent: Le =
|
|
2058
|
-
TransitionProps:
|
|
2059
|
-
} = T, nt =
|
|
2060
|
-
children:
|
|
2061
|
-
}), Ye =
|
|
2006
|
+
TransitionComponent: Le = Mo,
|
|
2007
|
+
TransitionProps: Me
|
|
2008
|
+
} = T, nt = je(T, Bn), I = /* @__PURE__ */ D.isValidElement(x) ? x : /* @__PURE__ */ _("span", {
|
|
2009
|
+
children: x
|
|
2010
|
+
}), Ye = Fr(), at = Ye.direction === "rtl", [V, st] = D.useState(), [ae, _e] = D.useState(null), Oe = D.useRef(!1), Ne = Z || q, ye = D.useRef(), Ee = D.useRef(), ue = D.useRef(), Ve = D.useRef(), [lt, ho] = qr({
|
|
2062
2011
|
controlled: Q,
|
|
2063
2012
|
default: !1,
|
|
2064
2013
|
name: "Tooltip",
|
|
@@ -2067,98 +2016,98 @@ const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
|
|
|
2067
2016
|
let he = lt;
|
|
2068
2017
|
if (process.env.NODE_ENV !== "production") {
|
|
2069
2018
|
const {
|
|
2070
|
-
current:
|
|
2071
|
-
} =
|
|
2072
|
-
|
|
2073
|
-
V && V.disabled && !
|
|
2019
|
+
current: R
|
|
2020
|
+
} = D.useRef(Q !== void 0);
|
|
2021
|
+
D.useEffect(() => {
|
|
2022
|
+
V && V.disabled && !R && j !== "" && V.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
|
|
2074
2023
|
`));
|
|
2075
|
-
}, [j, V,
|
|
2024
|
+
}, [j, V, R]);
|
|
2076
2025
|
}
|
|
2077
|
-
const
|
|
2026
|
+
const Wt = Kr(be), He = D.useRef(), pt = D.useCallback(() => {
|
|
2078
2027
|
He.current !== void 0 && (document.body.style.WebkitUserSelect = He.current, He.current = void 0), clearTimeout(Ve.current);
|
|
2079
2028
|
}, []);
|
|
2080
|
-
|
|
2081
|
-
clearTimeout(ye.current), clearTimeout(Ee.current), clearTimeout(
|
|
2082
|
-
}, [
|
|
2083
|
-
const go = (
|
|
2084
|
-
clearTimeout(
|
|
2085
|
-
},
|
|
2029
|
+
D.useEffect(() => () => {
|
|
2030
|
+
clearTimeout(ye.current), clearTimeout(Ee.current), clearTimeout(ue.current), pt();
|
|
2031
|
+
}, [pt]);
|
|
2032
|
+
const go = (R) => {
|
|
2033
|
+
clearTimeout(Vt), vt = !0, ho(!0), K && !he && K(R);
|
|
2034
|
+
}, ut = Gr(
|
|
2086
2035
|
/**
|
|
2087
2036
|
* @param {React.SyntheticEvent | Event} event
|
|
2088
2037
|
*/
|
|
2089
|
-
(
|
|
2090
|
-
clearTimeout(
|
|
2038
|
+
(R) => {
|
|
2039
|
+
clearTimeout(Vt), Vt = setTimeout(() => {
|
|
2091
2040
|
vt = !1;
|
|
2092
|
-
}, 800 + se), ho(!1), ne && he && ne(
|
|
2041
|
+
}, 800 + se), ho(!1), ne && he && ne(R), clearTimeout(ye.current), ye.current = setTimeout(() => {
|
|
2093
2042
|
Oe.current = !1;
|
|
2094
2043
|
}, Ye.transitions.duration.shortest);
|
|
2095
2044
|
}
|
|
2096
|
-
),
|
|
2097
|
-
Oe.current &&
|
|
2098
|
-
go(
|
|
2099
|
-
}, vt ? W : B) : go(
|
|
2100
|
-
}, bo = (
|
|
2101
|
-
clearTimeout(Ee.current), clearTimeout(
|
|
2102
|
-
|
|
2045
|
+
), $t = (R) => {
|
|
2046
|
+
Oe.current && R.type !== "touchstart" || (V && V.removeAttribute("title"), clearTimeout(Ee.current), clearTimeout(ue.current), B || vt && W ? Ee.current = setTimeout(() => {
|
|
2047
|
+
go(R);
|
|
2048
|
+
}, vt ? W : B) : go(R));
|
|
2049
|
+
}, bo = (R) => {
|
|
2050
|
+
clearTimeout(Ee.current), clearTimeout(ue.current), ue.current = setTimeout(() => {
|
|
2051
|
+
ut(R);
|
|
2103
2052
|
}, se);
|
|
2104
2053
|
}, {
|
|
2105
2054
|
isFocusVisibleRef: yo,
|
|
2106
2055
|
onBlur: Mr,
|
|
2107
|
-
onFocus:
|
|
2108
|
-
ref:
|
|
2109
|
-
} =
|
|
2110
|
-
Mr(
|
|
2111
|
-
}, To = (
|
|
2112
|
-
V || st(
|
|
2113
|
-
}, Co = (
|
|
2056
|
+
onFocus: Yr,
|
|
2057
|
+
ref: _r
|
|
2058
|
+
} = Jr(), [, wo] = D.useState(!1), Po = (R) => {
|
|
2059
|
+
Mr(R), yo.current === !1 && (wo(!1), bo(R));
|
|
2060
|
+
}, To = (R) => {
|
|
2061
|
+
V || st(R.currentTarget), Yr(R), yo.current === !0 && (wo(!0), $t(R));
|
|
2062
|
+
}, Co = (R) => {
|
|
2114
2063
|
Oe.current = !0;
|
|
2115
2064
|
const G = I.props;
|
|
2116
|
-
G.onTouchStart && G.onTouchStart(
|
|
2117
|
-
}, So =
|
|
2118
|
-
Co(
|
|
2119
|
-
document.body.style.WebkitUserSelect = He.current,
|
|
2120
|
-
},
|
|
2121
|
-
},
|
|
2122
|
-
I.props.onTouchEnd && I.props.onTouchEnd(
|
|
2123
|
-
|
|
2065
|
+
G.onTouchStart && G.onTouchStart(R);
|
|
2066
|
+
}, So = $t, Oo = bo, Nr = (R) => {
|
|
2067
|
+
Co(R), clearTimeout(ue.current), clearTimeout(ye.current), pt(), He.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Ve.current = setTimeout(() => {
|
|
2068
|
+
document.body.style.WebkitUserSelect = He.current, $t(R);
|
|
2069
|
+
}, $);
|
|
2070
|
+
}, Br = (R) => {
|
|
2071
|
+
I.props.onTouchEnd && I.props.onTouchEnd(R), pt(), clearTimeout(ue.current), ue.current = setTimeout(() => {
|
|
2072
|
+
ut(R);
|
|
2124
2073
|
}, ve);
|
|
2125
2074
|
};
|
|
2126
|
-
|
|
2075
|
+
D.useEffect(() => {
|
|
2127
2076
|
if (!he)
|
|
2128
2077
|
return;
|
|
2129
|
-
function
|
|
2130
|
-
(G.key === "Escape" || G.key === "Esc") &&
|
|
2078
|
+
function R(G) {
|
|
2079
|
+
(G.key === "Escape" || G.key === "Esc") && ut(G);
|
|
2131
2080
|
}
|
|
2132
|
-
return document.addEventListener("keydown",
|
|
2133
|
-
document.removeEventListener("keydown",
|
|
2081
|
+
return document.addEventListener("keydown", R), () => {
|
|
2082
|
+
document.removeEventListener("keydown", R);
|
|
2134
2083
|
};
|
|
2135
|
-
}, [
|
|
2136
|
-
const
|
|
2084
|
+
}, [ut, he]);
|
|
2085
|
+
const zr = Zt(I.ref, _r, st, t);
|
|
2137
2086
|
!j && j !== 0 && (he = !1);
|
|
2138
|
-
const
|
|
2087
|
+
const kt = D.useRef(), Xr = (R) => {
|
|
2139
2088
|
const G = I.props;
|
|
2140
|
-
G.onMouseMove && G.onMouseMove(
|
|
2141
|
-
x:
|
|
2142
|
-
y:
|
|
2143
|
-
},
|
|
2144
|
-
}, Fe = {},
|
|
2145
|
-
|
|
2146
|
-
const ee =
|
|
2147
|
-
className:
|
|
2089
|
+
G.onMouseMove && G.onMouseMove(R), Ke = {
|
|
2090
|
+
x: R.clientX,
|
|
2091
|
+
y: R.clientY
|
|
2092
|
+
}, kt.current && kt.current.update();
|
|
2093
|
+
}, Fe = {}, jt = typeof j == "string";
|
|
2094
|
+
M ? (Fe.title = !he && jt && !N ? j : null, Fe["aria-describedby"] = he ? Wt : null) : (Fe["aria-label"] = jt ? j : null, Fe["aria-labelledby"] = he && !jt ? Wt : null);
|
|
2095
|
+
const ee = S({}, Fe, nt, I.props, {
|
|
2096
|
+
className: Be(nt.className, I.props.className),
|
|
2148
2097
|
onTouchStart: Co,
|
|
2149
|
-
ref:
|
|
2098
|
+
ref: zr
|
|
2150
2099
|
}, q ? {
|
|
2151
|
-
onMouseMove:
|
|
2100
|
+
onMouseMove: Xr
|
|
2152
2101
|
} : {});
|
|
2153
|
-
process.env.NODE_ENV !== "production" && (ee["data-mui-internal-clone-element"] = !0,
|
|
2102
|
+
process.env.NODE_ENV !== "production" && (ee["data-mui-internal-clone-element"] = !0, D.useEffect(() => {
|
|
2154
2103
|
V && !V.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
2155
2104
|
`));
|
|
2156
2105
|
}, [V]));
|
|
2157
2106
|
const Ze = {};
|
|
2158
|
-
U || (ee.onTouchStart =
|
|
2107
|
+
U || (ee.onTouchStart = Nr, ee.onTouchEnd = Br), N || (ee.onMouseOver = mt(So, ee.onMouseOver), ee.onMouseLeave = mt(Oo, ee.onMouseLeave), Ne || (Ze.onMouseOver = So, Ze.onMouseLeave = Oo)), X || (ee.onFocus = mt(To, ee.onFocus), ee.onBlur = mt(Po, ee.onBlur), Ne || (Ze.onFocus = To, Ze.onBlur = Po)), process.env.NODE_ENV !== "production" && I.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${I.props.title}\` or the Tooltip component.`].join(`
|
|
2159
2108
|
`));
|
|
2160
|
-
const
|
|
2161
|
-
var
|
|
2109
|
+
const Wr = D.useMemo(() => {
|
|
2110
|
+
var R;
|
|
2162
2111
|
let G = [{
|
|
2163
2112
|
name: "arrow",
|
|
2164
2113
|
enabled: !!ae,
|
|
@@ -2167,26 +2116,26 @@ const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
|
|
|
2167
2116
|
padding: 4
|
|
2168
2117
|
}
|
|
2169
2118
|
}];
|
|
2170
|
-
return (
|
|
2119
|
+
return (R = k.popperOptions) != null && R.modifiers && (G = G.concat(k.popperOptions.modifiers)), S({}, k.popperOptions, {
|
|
2171
2120
|
modifiers: G
|
|
2172
2121
|
});
|
|
2173
|
-
}, [ae, k]), Ue =
|
|
2122
|
+
}, [ae, k]), Ue = S({}, T, {
|
|
2174
2123
|
isRtl: at,
|
|
2175
2124
|
arrow: O,
|
|
2176
|
-
disableInteractive:
|
|
2125
|
+
disableInteractive: Ne,
|
|
2177
2126
|
placement: le,
|
|
2178
|
-
PopperComponentProp:
|
|
2127
|
+
PopperComponentProp: pe,
|
|
2179
2128
|
touch: Oe.current
|
|
2180
|
-
}),
|
|
2181
|
-
className:
|
|
2182
|
-
}), Ue),
|
|
2183
|
-
className:
|
|
2184
|
-
}), Ue),
|
|
2185
|
-
className:
|
|
2129
|
+
}), Lt = Xn(Ue), Eo = (r = (i = me.popper) != null ? i : E.Popper) != null ? r : Wn, Ao = (n = (a = (s = me.transition) != null ? s : E.Transition) != null ? a : Le) != null ? n : Mo, Ro = (l = (d = me.tooltip) != null ? d : E.Tooltip) != null ? l : $n, Do = (u = (f = me.arrow) != null ? f : E.Arrow) != null ? u : kn, $r = dt(Eo, S({}, k, (c = L.popper) != null ? c : A.popper, {
|
|
2130
|
+
className: Be(Lt.popper, k == null ? void 0 : k.className, (v = (h = L.popper) != null ? h : A.popper) == null ? void 0 : v.className)
|
|
2131
|
+
}), Ue), kr = dt(Ao, S({}, Me, (m = L.transition) != null ? m : A.transition), Ue), jr = dt(Ro, S({}, (g = L.tooltip) != null ? g : A.tooltip, {
|
|
2132
|
+
className: Be(Lt.tooltip, (P = (C = L.tooltip) != null ? C : A.tooltip) == null ? void 0 : P.className)
|
|
2133
|
+
}), Ue), Lr = dt(Do, S({}, (y = L.arrow) != null ? y : A.arrow, {
|
|
2134
|
+
className: Be(Lt.arrow, (b = (w = L.arrow) != null ? w : A.arrow) == null ? void 0 : b.className)
|
|
2186
2135
|
}), Ue);
|
|
2187
|
-
return /* @__PURE__ */ wt(
|
|
2188
|
-
children: [/* @__PURE__ */
|
|
2189
|
-
as:
|
|
2136
|
+
return /* @__PURE__ */ wt(D.Fragment, {
|
|
2137
|
+
children: [/* @__PURE__ */ D.cloneElement(I, ee), /* @__PURE__ */ _(Eo, S({
|
|
2138
|
+
as: pe ?? fr,
|
|
2190
2139
|
placement: le,
|
|
2191
2140
|
anchorEl: q ? {
|
|
2192
2141
|
getBoundingClientRect: () => ({
|
|
@@ -2198,27 +2147,27 @@ const vr = /* @__PURE__ */ R.forwardRef(function(o, t) {
|
|
|
2198
2147
|
height: 0
|
|
2199
2148
|
})
|
|
2200
2149
|
} : V,
|
|
2201
|
-
popperRef:
|
|
2150
|
+
popperRef: kt,
|
|
2202
2151
|
open: V ? he : !1,
|
|
2203
|
-
id:
|
|
2152
|
+
id: Wt,
|
|
2204
2153
|
transition: !0
|
|
2205
|
-
}, Ze,
|
|
2206
|
-
popperOptions:
|
|
2154
|
+
}, Ze, $r, {
|
|
2155
|
+
popperOptions: Wr,
|
|
2207
2156
|
children: ({
|
|
2208
|
-
TransitionProps:
|
|
2209
|
-
}) => /* @__PURE__ */ _(Ao,
|
|
2157
|
+
TransitionProps: R
|
|
2158
|
+
}) => /* @__PURE__ */ _(Ao, S({
|
|
2210
2159
|
timeout: Ye.transitions.duration.shorter
|
|
2211
|
-
},
|
|
2212
|
-
children: /* @__PURE__ */ wt(Ro,
|
|
2213
|
-
children: [j, O ? /* @__PURE__ */ _(
|
|
2214
|
-
ref:
|
|
2160
|
+
}, R, kr, {
|
|
2161
|
+
children: /* @__PURE__ */ wt(Ro, S({}, jr, {
|
|
2162
|
+
children: [j, O ? /* @__PURE__ */ _(Do, S({}, Lr, {
|
|
2163
|
+
ref: _e
|
|
2215
2164
|
})) : null]
|
|
2216
2165
|
}))
|
|
2217
2166
|
}))
|
|
2218
2167
|
}))]
|
|
2219
2168
|
});
|
|
2220
2169
|
});
|
|
2221
|
-
process.env.NODE_ENV !== "production" && (
|
|
2170
|
+
process.env.NODE_ENV !== "production" && (cr.propTypes = {
|
|
2222
2171
|
// ----------------------------- Warning --------------------------------
|
|
2223
2172
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
2224
2173
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -2227,19 +2176,19 @@ process.env.NODE_ENV !== "production" && (vr.propTypes = {
|
|
|
2227
2176
|
* If `true`, adds an arrow to the tooltip.
|
|
2228
2177
|
* @default false
|
|
2229
2178
|
*/
|
|
2230
|
-
arrow:
|
|
2179
|
+
arrow: p.bool,
|
|
2231
2180
|
/**
|
|
2232
2181
|
* Tooltip reference element.
|
|
2233
2182
|
*/
|
|
2234
|
-
children:
|
|
2183
|
+
children: Qr.isRequired,
|
|
2235
2184
|
/**
|
|
2236
2185
|
* Override or extend the styles applied to the component.
|
|
2237
2186
|
*/
|
|
2238
|
-
classes:
|
|
2187
|
+
classes: p.object,
|
|
2239
2188
|
/**
|
|
2240
2189
|
* @ignore
|
|
2241
2190
|
*/
|
|
2242
|
-
className:
|
|
2191
|
+
className: p.string,
|
|
2243
2192
|
/**
|
|
2244
2193
|
* The components used for each slot inside.
|
|
2245
2194
|
*
|
|
@@ -2248,11 +2197,11 @@ process.env.NODE_ENV !== "production" && (vr.propTypes = {
|
|
|
2248
2197
|
*
|
|
2249
2198
|
* @default {}
|
|
2250
2199
|
*/
|
|
2251
|
-
components:
|
|
2252
|
-
Arrow:
|
|
2253
|
-
Popper:
|
|
2254
|
-
Tooltip:
|
|
2255
|
-
Transition:
|
|
2200
|
+
components: p.shape({
|
|
2201
|
+
Arrow: p.elementType,
|
|
2202
|
+
Popper: p.elementType,
|
|
2203
|
+
Tooltip: p.elementType,
|
|
2204
|
+
Transition: p.elementType
|
|
2256
2205
|
}),
|
|
2257
2206
|
/**
|
|
2258
2207
|
* The extra props for the slot components.
|
|
@@ -2263,107 +2212,107 @@ process.env.NODE_ENV !== "production" && (vr.propTypes = {
|
|
|
2263
2212
|
*
|
|
2264
2213
|
* @default {}
|
|
2265
2214
|
*/
|
|
2266
|
-
componentsProps:
|
|
2267
|
-
arrow:
|
|
2268
|
-
popper:
|
|
2269
|
-
tooltip:
|
|
2270
|
-
transition:
|
|
2215
|
+
componentsProps: p.shape({
|
|
2216
|
+
arrow: p.object,
|
|
2217
|
+
popper: p.object,
|
|
2218
|
+
tooltip: p.object,
|
|
2219
|
+
transition: p.object
|
|
2271
2220
|
}),
|
|
2272
2221
|
/**
|
|
2273
2222
|
* Set to `true` if the `title` acts as an accessible description.
|
|
2274
2223
|
* By default the `title` acts as an accessible label for the child.
|
|
2275
2224
|
* @default false
|
|
2276
2225
|
*/
|
|
2277
|
-
describeChild:
|
|
2226
|
+
describeChild: p.bool,
|
|
2278
2227
|
/**
|
|
2279
2228
|
* Do not respond to focus-visible events.
|
|
2280
2229
|
* @default false
|
|
2281
2230
|
*/
|
|
2282
|
-
disableFocusListener:
|
|
2231
|
+
disableFocusListener: p.bool,
|
|
2283
2232
|
/**
|
|
2284
2233
|
* Do not respond to hover events.
|
|
2285
2234
|
* @default false
|
|
2286
2235
|
*/
|
|
2287
|
-
disableHoverListener:
|
|
2236
|
+
disableHoverListener: p.bool,
|
|
2288
2237
|
/**
|
|
2289
2238
|
* Makes a tooltip not interactive, i.e. it will close when the user
|
|
2290
2239
|
* hovers over the tooltip before the `leaveDelay` is expired.
|
|
2291
2240
|
* @default false
|
|
2292
2241
|
*/
|
|
2293
|
-
disableInteractive:
|
|
2242
|
+
disableInteractive: p.bool,
|
|
2294
2243
|
/**
|
|
2295
2244
|
* Do not respond to long press touch events.
|
|
2296
2245
|
* @default false
|
|
2297
2246
|
*/
|
|
2298
|
-
disableTouchListener:
|
|
2247
|
+
disableTouchListener: p.bool,
|
|
2299
2248
|
/**
|
|
2300
2249
|
* The number of milliseconds to wait before showing the tooltip.
|
|
2301
2250
|
* This prop won't impact the enter touch delay (`enterTouchDelay`).
|
|
2302
2251
|
* @default 100
|
|
2303
2252
|
*/
|
|
2304
|
-
enterDelay:
|
|
2253
|
+
enterDelay: p.number,
|
|
2305
2254
|
/**
|
|
2306
2255
|
* The number of milliseconds to wait before showing the tooltip when one was already recently opened.
|
|
2307
2256
|
* @default 0
|
|
2308
2257
|
*/
|
|
2309
|
-
enterNextDelay:
|
|
2258
|
+
enterNextDelay: p.number,
|
|
2310
2259
|
/**
|
|
2311
2260
|
* The number of milliseconds a user must touch the element before showing the tooltip.
|
|
2312
2261
|
* @default 700
|
|
2313
2262
|
*/
|
|
2314
|
-
enterTouchDelay:
|
|
2263
|
+
enterTouchDelay: p.number,
|
|
2315
2264
|
/**
|
|
2316
2265
|
* If `true`, the tooltip follow the cursor over the wrapped element.
|
|
2317
2266
|
* @default false
|
|
2318
2267
|
*/
|
|
2319
|
-
followCursor:
|
|
2268
|
+
followCursor: p.bool,
|
|
2320
2269
|
/**
|
|
2321
2270
|
* This prop is used to help implement the accessibility logic.
|
|
2322
2271
|
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
2323
2272
|
*/
|
|
2324
|
-
id:
|
|
2273
|
+
id: p.string,
|
|
2325
2274
|
/**
|
|
2326
2275
|
* The number of milliseconds to wait before hiding the tooltip.
|
|
2327
2276
|
* This prop won't impact the leave touch delay (`leaveTouchDelay`).
|
|
2328
2277
|
* @default 0
|
|
2329
2278
|
*/
|
|
2330
|
-
leaveDelay:
|
|
2279
|
+
leaveDelay: p.number,
|
|
2331
2280
|
/**
|
|
2332
2281
|
* The number of milliseconds after the user stops touching an element before hiding the tooltip.
|
|
2333
2282
|
* @default 1500
|
|
2334
2283
|
*/
|
|
2335
|
-
leaveTouchDelay:
|
|
2284
|
+
leaveTouchDelay: p.number,
|
|
2336
2285
|
/**
|
|
2337
2286
|
* Callback fired when the component requests to be closed.
|
|
2338
2287
|
*
|
|
2339
2288
|
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
2340
2289
|
*/
|
|
2341
|
-
onClose:
|
|
2290
|
+
onClose: p.func,
|
|
2342
2291
|
/**
|
|
2343
2292
|
* Callback fired when the component requests to be open.
|
|
2344
2293
|
*
|
|
2345
2294
|
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
2346
2295
|
*/
|
|
2347
|
-
onOpen:
|
|
2296
|
+
onOpen: p.func,
|
|
2348
2297
|
/**
|
|
2349
2298
|
* If `true`, the component is shown.
|
|
2350
2299
|
*/
|
|
2351
|
-
open:
|
|
2300
|
+
open: p.bool,
|
|
2352
2301
|
/**
|
|
2353
2302
|
* Tooltip placement.
|
|
2354
2303
|
* @default 'bottom'
|
|
2355
2304
|
*/
|
|
2356
|
-
placement:
|
|
2305
|
+
placement: p.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
|
|
2357
2306
|
/**
|
|
2358
2307
|
* The component used for the popper.
|
|
2359
2308
|
* @default Popper
|
|
2360
2309
|
*/
|
|
2361
|
-
PopperComponent:
|
|
2310
|
+
PopperComponent: p.elementType,
|
|
2362
2311
|
/**
|
|
2363
2312
|
* Props applied to the [`Popper`](/material-ui/api/popper/) element.
|
|
2364
2313
|
* @default {}
|
|
2365
2314
|
*/
|
|
2366
|
-
PopperProps:
|
|
2315
|
+
PopperProps: p.object,
|
|
2367
2316
|
/**
|
|
2368
2317
|
* The extra props for the slot components.
|
|
2369
2318
|
* You can override the existing props or add new ones.
|
|
@@ -2372,11 +2321,11 @@ process.env.NODE_ENV !== "production" && (vr.propTypes = {
|
|
|
2372
2321
|
*
|
|
2373
2322
|
* @default {}
|
|
2374
2323
|
*/
|
|
2375
|
-
slotProps:
|
|
2376
|
-
arrow:
|
|
2377
|
-
popper:
|
|
2378
|
-
tooltip:
|
|
2379
|
-
transition:
|
|
2324
|
+
slotProps: p.shape({
|
|
2325
|
+
arrow: p.object,
|
|
2326
|
+
popper: p.object,
|
|
2327
|
+
tooltip: p.object,
|
|
2328
|
+
transition: p.object
|
|
2380
2329
|
}),
|
|
2381
2330
|
/**
|
|
2382
2331
|
* The components used for each slot inside.
|
|
@@ -2385,149 +2334,149 @@ process.env.NODE_ENV !== "production" && (vr.propTypes = {
|
|
|
2385
2334
|
*
|
|
2386
2335
|
* @default {}
|
|
2387
2336
|
*/
|
|
2388
|
-
slots:
|
|
2389
|
-
arrow:
|
|
2390
|
-
popper:
|
|
2391
|
-
tooltip:
|
|
2392
|
-
transition:
|
|
2337
|
+
slots: p.shape({
|
|
2338
|
+
arrow: p.elementType,
|
|
2339
|
+
popper: p.elementType,
|
|
2340
|
+
tooltip: p.elementType,
|
|
2341
|
+
transition: p.elementType
|
|
2393
2342
|
}),
|
|
2394
2343
|
/**
|
|
2395
2344
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2396
2345
|
*/
|
|
2397
|
-
sx:
|
|
2346
|
+
sx: p.oneOfType([p.arrayOf(p.oneOfType([p.func, p.object, p.bool])), p.func, p.object]),
|
|
2398
2347
|
/**
|
|
2399
2348
|
* Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
|
|
2400
2349
|
*/
|
|
2401
|
-
title:
|
|
2350
|
+
title: p.node,
|
|
2402
2351
|
/**
|
|
2403
2352
|
* The component used for the transition.
|
|
2404
2353
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
2405
2354
|
* @default Grow
|
|
2406
2355
|
*/
|
|
2407
|
-
TransitionComponent:
|
|
2356
|
+
TransitionComponent: p.elementType,
|
|
2408
2357
|
/**
|
|
2409
2358
|
* Props applied to the transition element.
|
|
2410
2359
|
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
2411
2360
|
*/
|
|
2412
|
-
TransitionProps:
|
|
2361
|
+
TransitionProps: p.object
|
|
2413
2362
|
});
|
|
2414
|
-
const ht =
|
|
2363
|
+
const ht = cr;
|
|
2415
2364
|
var te = function(e, o) {
|
|
2416
2365
|
return Number(e.toFixed(o));
|
|
2417
|
-
},
|
|
2366
|
+
}, jn = function(e, o) {
|
|
2418
2367
|
return typeof e == "number" ? e : o;
|
|
2419
2368
|
}, z = function(e, o, t) {
|
|
2420
2369
|
t && typeof t == "function" && t(e, o);
|
|
2421
|
-
},
|
|
2370
|
+
}, Ln = function(e) {
|
|
2422
2371
|
return -Math.cos(e * Math.PI) / 2 + 0.5;
|
|
2423
|
-
},
|
|
2372
|
+
}, Vn = function(e) {
|
|
2424
2373
|
return e;
|
|
2425
|
-
},
|
|
2374
|
+
}, Hn = function(e) {
|
|
2426
2375
|
return e * e;
|
|
2427
|
-
},
|
|
2376
|
+
}, Fn = function(e) {
|
|
2428
2377
|
return e * (2 - e);
|
|
2429
|
-
},
|
|
2378
|
+
}, Zn = function(e) {
|
|
2430
2379
|
return e < 0.5 ? 2 * e * e : -1 + (4 - 2 * e) * e;
|
|
2431
|
-
},
|
|
2380
|
+
}, Un = function(e) {
|
|
2432
2381
|
return e * e * e;
|
|
2433
|
-
},
|
|
2382
|
+
}, qn = function(e) {
|
|
2434
2383
|
return --e * e * e + 1;
|
|
2435
|
-
},
|
|
2384
|
+
}, Kn = function(e) {
|
|
2436
2385
|
return e < 0.5 ? 4 * e * e * e : (e - 1) * (2 * e - 2) * (2 * e - 2) + 1;
|
|
2437
|
-
},
|
|
2386
|
+
}, Qn = function(e) {
|
|
2438
2387
|
return e * e * e * e;
|
|
2439
|
-
},
|
|
2388
|
+
}, Gn = function(e) {
|
|
2440
2389
|
return 1 - --e * e * e * e;
|
|
2441
|
-
},
|
|
2390
|
+
}, Jn = function(e) {
|
|
2442
2391
|
return e < 0.5 ? 8 * e * e * e * e : 1 - 8 * --e * e * e * e;
|
|
2443
|
-
},
|
|
2392
|
+
}, In = function(e) {
|
|
2444
2393
|
return e * e * e * e * e;
|
|
2445
|
-
},
|
|
2394
|
+
}, ea = function(e) {
|
|
2446
2395
|
return 1 + --e * e * e * e * e;
|
|
2447
|
-
},
|
|
2396
|
+
}, ta = function(e) {
|
|
2448
2397
|
return e < 0.5 ? 16 * e * e * e * e * e : 1 + 16 * --e * e * e * e * e;
|
|
2449
|
-
},
|
|
2450
|
-
easeOut:
|
|
2451
|
-
linear:
|
|
2452
|
-
easeInQuad:
|
|
2453
|
-
easeOutQuad:
|
|
2454
|
-
easeInOutQuad:
|
|
2455
|
-
easeInCubic:
|
|
2456
|
-
easeOutCubic:
|
|
2457
|
-
easeInOutCubic:
|
|
2458
|
-
easeInQuart:
|
|
2459
|
-
easeOutQuart:
|
|
2460
|
-
easeInOutQuart:
|
|
2461
|
-
easeInQuint:
|
|
2462
|
-
easeOutQuint:
|
|
2463
|
-
easeInOutQuint:
|
|
2464
|
-
},
|
|
2398
|
+
}, vr = {
|
|
2399
|
+
easeOut: Ln,
|
|
2400
|
+
linear: Vn,
|
|
2401
|
+
easeInQuad: Hn,
|
|
2402
|
+
easeOutQuad: Fn,
|
|
2403
|
+
easeInOutQuad: Zn,
|
|
2404
|
+
easeInCubic: Un,
|
|
2405
|
+
easeOutCubic: qn,
|
|
2406
|
+
easeInOutCubic: Kn,
|
|
2407
|
+
easeInQuart: Qn,
|
|
2408
|
+
easeOutQuart: Gn,
|
|
2409
|
+
easeInOutQuart: Jn,
|
|
2410
|
+
easeInQuint: In,
|
|
2411
|
+
easeOutQuint: ea,
|
|
2412
|
+
easeInOutQuint: ta
|
|
2413
|
+
}, mr = function(e) {
|
|
2465
2414
|
typeof e == "number" && cancelAnimationFrame(e);
|
|
2466
2415
|
}, de = function(e) {
|
|
2467
|
-
e.mounted && (
|
|
2416
|
+
e.mounted && (mr(e.animation), e.animate = !1, e.animation = null, e.velocity = null);
|
|
2468
2417
|
};
|
|
2469
|
-
function
|
|
2418
|
+
function hr(e, o, t, r) {
|
|
2470
2419
|
if (e.mounted) {
|
|
2471
2420
|
var i = (/* @__PURE__ */ new Date()).getTime(), n = 1;
|
|
2472
2421
|
de(e), e.animation = function() {
|
|
2473
2422
|
if (!e.mounted)
|
|
2474
|
-
return
|
|
2475
|
-
var a = (/* @__PURE__ */ new Date()).getTime() - i, s = a / t, l =
|
|
2423
|
+
return mr(e.animation);
|
|
2424
|
+
var a = (/* @__PURE__ */ new Date()).getTime() - i, s = a / t, l = vr[o], d = l(s);
|
|
2476
2425
|
a >= t ? (r(n), e.animation = null) : e.animation && (r(d), requestAnimationFrame(e.animation));
|
|
2477
2426
|
}, requestAnimationFrame(e.animation);
|
|
2478
2427
|
}
|
|
2479
2428
|
}
|
|
2480
|
-
function
|
|
2429
|
+
function oa(e) {
|
|
2481
2430
|
var o = e.scale, t = e.positionX, r = e.positionY;
|
|
2482
2431
|
return !(Number.isNaN(o) || Number.isNaN(t) || Number.isNaN(r));
|
|
2483
2432
|
}
|
|
2484
2433
|
function Se(e, o, t, r) {
|
|
2485
|
-
var i =
|
|
2434
|
+
var i = oa(o);
|
|
2486
2435
|
if (!(!e.mounted || !i)) {
|
|
2487
|
-
var n = e.setTransformState, a = e.transformState, s = a.scale, l = a.positionX, d = a.positionY,
|
|
2488
|
-
t === 0 ? n(o.scale, o.positionX, o.positionY) :
|
|
2489
|
-
var h = s +
|
|
2436
|
+
var n = e.setTransformState, a = e.transformState, s = a.scale, l = a.positionX, d = a.positionY, u = o.scale - s, f = o.positionX - l, c = o.positionY - d;
|
|
2437
|
+
t === 0 ? n(o.scale, o.positionX, o.positionY) : hr(e, r, t, function(v) {
|
|
2438
|
+
var h = s + u * v, m = l + f * v, g = d + c * v;
|
|
2490
2439
|
n(h, m, g);
|
|
2491
2440
|
});
|
|
2492
2441
|
}
|
|
2493
2442
|
}
|
|
2494
|
-
function
|
|
2495
|
-
var r = e.offsetWidth, i = e.offsetHeight, n = o.offsetWidth, a = o.offsetHeight, s = n * t, l = a * t, d = r - s,
|
|
2443
|
+
function ra(e, o, t) {
|
|
2444
|
+
var r = e.offsetWidth, i = e.offsetHeight, n = o.offsetWidth, a = o.offsetHeight, s = n * t, l = a * t, d = r - s, u = i - l;
|
|
2496
2445
|
return {
|
|
2497
2446
|
wrapperWidth: r,
|
|
2498
2447
|
wrapperHeight: i,
|
|
2499
2448
|
newContentWidth: s,
|
|
2500
2449
|
newDiffWidth: d,
|
|
2501
2450
|
newContentHeight: l,
|
|
2502
|
-
newDiffHeight:
|
|
2451
|
+
newDiffHeight: u
|
|
2503
2452
|
};
|
|
2504
2453
|
}
|
|
2505
|
-
var
|
|
2506
|
-
var s = e > o ? t * (a ? 1 : 0.5) : 0, l = r > i ? n * (a ? 1 : 0.5) : 0, d = e - o - s,
|
|
2507
|
-
return { minPositionX: d, maxPositionX:
|
|
2508
|
-
},
|
|
2454
|
+
var ia = function(e, o, t, r, i, n, a) {
|
|
2455
|
+
var s = e > o ? t * (a ? 1 : 0.5) : 0, l = r > i ? n * (a ? 1 : 0.5) : 0, d = e - o - s, u = s, f = r - i - l, c = l;
|
|
2456
|
+
return { minPositionX: d, maxPositionX: u, minPositionY: f, maxPositionY: c };
|
|
2457
|
+
}, po = function(e, o) {
|
|
2509
2458
|
var t = e.wrapperComponent, r = e.contentComponent, i = e.setup.centerZoomedOut;
|
|
2510
2459
|
if (!t || !r)
|
|
2511
2460
|
throw new Error("Components are not mounted");
|
|
2512
|
-
var n =
|
|
2461
|
+
var n = ra(t, r, o), a = n.wrapperWidth, s = n.wrapperHeight, l = n.newContentWidth, d = n.newDiffWidth, u = n.newContentHeight, f = n.newDiffHeight, c = ia(a, l, d, s, u, f, !!i);
|
|
2513
2462
|
return c;
|
|
2514
|
-
},
|
|
2463
|
+
}, Kt = function(e, o, t, r) {
|
|
2515
2464
|
return r ? e < o ? te(o, 2) : e > t ? te(t, 2) : te(e, 2) : te(e, 2);
|
|
2516
|
-
},
|
|
2517
|
-
var t =
|
|
2465
|
+
}, ke = function(e, o) {
|
|
2466
|
+
var t = po(e, o);
|
|
2518
2467
|
return e.bounds = t, t;
|
|
2519
2468
|
};
|
|
2520
|
-
function
|
|
2521
|
-
var s = t.minPositionX, l = t.minPositionY, d = t.maxPositionX,
|
|
2469
|
+
function Nt(e, o, t, r, i, n, a) {
|
|
2470
|
+
var s = t.minPositionX, l = t.minPositionY, d = t.maxPositionX, u = t.maxPositionY, f = 0, c = 0;
|
|
2522
2471
|
a && (f = i, c = n);
|
|
2523
|
-
var v =
|
|
2472
|
+
var v = Kt(e, s - f, d + f, r), h = Kt(o, l - c, u + c, r);
|
|
2524
2473
|
return { x: v, y: h };
|
|
2525
2474
|
}
|
|
2526
|
-
function
|
|
2527
|
-
var a = e.transformState, s = a.scale, l = a.positionX, d = a.positionY,
|
|
2475
|
+
function Bt(e, o, t, r, i, n) {
|
|
2476
|
+
var a = e.transformState, s = a.scale, l = a.positionX, d = a.positionY, u = r - s;
|
|
2528
2477
|
if (typeof o != "number" || typeof t != "number")
|
|
2529
2478
|
return console.error("Mouse X and Y position were not provided!"), { x: l, y: d };
|
|
2530
|
-
var f = l - o *
|
|
2479
|
+
var f = l - o * u, c = d - t * u, v = Nt(f, c, i, n, 0, 0, null);
|
|
2531
2480
|
return v;
|
|
2532
2481
|
}
|
|
2533
2482
|
function it(e, o, t, r, i) {
|
|
@@ -2538,17 +2487,17 @@ var Vo = function(e, o) {
|
|
|
2538
2487
|
var t = e.setup.panning.excluded, r = e.isInitialized, i = e.wrapperComponent, n = o.target, a = i == null ? void 0 : i.contains(n), s = r && n && a;
|
|
2539
2488
|
if (!s)
|
|
2540
2489
|
return !1;
|
|
2541
|
-
var l =
|
|
2490
|
+
var l = zt(n, t);
|
|
2542
2491
|
return !l;
|
|
2543
2492
|
}, Ho = function(e) {
|
|
2544
2493
|
var o = e.isInitialized, t = e.isPanning, r = e.setup, i = r.panning.disabled, n = o && t && !i;
|
|
2545
2494
|
return !!n;
|
|
2546
|
-
},
|
|
2495
|
+
}, na = function(e, o) {
|
|
2547
2496
|
var t = e.transformState, r = t.positionX, i = t.positionY;
|
|
2548
2497
|
e.isPanning = !0;
|
|
2549
2498
|
var n = o.clientX, a = o.clientY;
|
|
2550
2499
|
e.startCoords = { x: n - r, y: a - i };
|
|
2551
|
-
},
|
|
2500
|
+
}, aa = function(e, o) {
|
|
2552
2501
|
var t = o.touches, r = e.transformState, i = r.positionX, n = r.positionY;
|
|
2553
2502
|
e.isPanning = !0;
|
|
2554
2503
|
var a = t.length === 1;
|
|
@@ -2557,10 +2506,10 @@ var Vo = function(e, o) {
|
|
|
2557
2506
|
e.startCoords = { x: s - i, y: l - n };
|
|
2558
2507
|
}
|
|
2559
2508
|
};
|
|
2560
|
-
function
|
|
2509
|
+
function sa(e) {
|
|
2561
2510
|
var o = e.transformState, t = o.positionX, r = o.positionY, i = o.scale, n = e.setup, a = n.disabled, s = n.limitToBounds, l = n.centerZoomedOut, d = e.wrapperComponent;
|
|
2562
2511
|
if (!(a || !d || !e.bounds)) {
|
|
2563
|
-
var
|
|
2512
|
+
var u = e.bounds, f = u.maxPositionX, c = u.minPositionX, v = u.maxPositionY, h = u.minPositionY, m = t > f || t < c, g = r > v || r < h, P = t > f ? d.offsetWidth : e.setup.minPositionX || 0, C = r > v ? d.offsetHeight : e.setup.minPositionY || 0, y = Bt(e, P, C, i, e.bounds, s || l), b = y.x, w = y.y;
|
|
2564
2513
|
return {
|
|
2565
2514
|
scale: i,
|
|
2566
2515
|
positionX: m ? b : t,
|
|
@@ -2568,106 +2517,106 @@ function ba(e) {
|
|
|
2568
2517
|
};
|
|
2569
2518
|
}
|
|
2570
2519
|
}
|
|
2571
|
-
function
|
|
2572
|
-
var n = e.setup.limitToBounds, a = e.wrapperComponent, s = e.bounds, l = e.transformState, d = l.scale,
|
|
2573
|
-
if (!(a === null || s === null || o ===
|
|
2574
|
-
var c =
|
|
2520
|
+
function la(e, o, t, r, i) {
|
|
2521
|
+
var n = e.setup.limitToBounds, a = e.wrapperComponent, s = e.bounds, l = e.transformState, d = l.scale, u = l.positionX, f = l.positionY;
|
|
2522
|
+
if (!(a === null || s === null || o === u && t === f)) {
|
|
2523
|
+
var c = Nt(o, t, s, n, r, i, a), v = c.x, h = c.y;
|
|
2575
2524
|
e.setTransformState(d, v, h);
|
|
2576
2525
|
}
|
|
2577
2526
|
}
|
|
2578
|
-
var
|
|
2527
|
+
var pa = function(e, o, t) {
|
|
2579
2528
|
var r = e.startCoords, i = e.transformState, n = e.setup.panning, a = n.lockAxisX, s = n.lockAxisY, l = i.positionX, d = i.positionY;
|
|
2580
2529
|
if (!r)
|
|
2581
2530
|
return { x: l, y: d };
|
|
2582
|
-
var
|
|
2531
|
+
var u = o - r.x, f = t - r.y, c = a ? l : u, v = s ? d : f;
|
|
2583
2532
|
return { x: c, y: v };
|
|
2584
2533
|
}, Ot = function(e, o) {
|
|
2585
2534
|
var t = e.setup, r = e.transformState, i = r.scale, n = t.minScale, a = t.disablePadding;
|
|
2586
2535
|
return o > 0 && i >= n && !a ? o : 0;
|
|
2587
|
-
},
|
|
2536
|
+
}, ua = function(e) {
|
|
2588
2537
|
var o = e.mounted, t = e.setup, r = t.disabled, i = t.velocityAnimation, n = e.transformState.scale, a = i.disabled, s = !a || n > 1 || !r || o;
|
|
2589
2538
|
return !!s;
|
|
2590
|
-
},
|
|
2539
|
+
}, da = function(e) {
|
|
2591
2540
|
var o = e.mounted, t = e.velocity, r = e.bounds, i = e.setup, n = i.disabled, a = i.velocityAnimation, s = e.transformState.scale, l = a.disabled, d = !l || s > 1 || !n || o;
|
|
2592
2541
|
return !(!d || !t || !r);
|
|
2593
2542
|
};
|
|
2594
|
-
function
|
|
2543
|
+
function fa(e, o) {
|
|
2595
2544
|
var t = e.setup.velocityAnimation, r = t.equalToMove, i = t.animationTime, n = t.sensitivity;
|
|
2596
2545
|
return r ? i * o * n : i;
|
|
2597
2546
|
}
|
|
2598
2547
|
function Fo(e, o, t, r, i, n, a, s, l, d) {
|
|
2599
2548
|
if (i) {
|
|
2600
2549
|
if (o > a && t > a) {
|
|
2601
|
-
var
|
|
2602
|
-
return
|
|
2550
|
+
var u = a + (e - a) * d;
|
|
2551
|
+
return u > l ? l : u < a ? a : u;
|
|
2603
2552
|
}
|
|
2604
2553
|
if (o < n && t < n) {
|
|
2605
|
-
var
|
|
2606
|
-
return
|
|
2554
|
+
var u = n + (e - n) * d;
|
|
2555
|
+
return u < s ? s : u > n ? n : u;
|
|
2607
2556
|
}
|
|
2608
2557
|
}
|
|
2609
|
-
return r ? o :
|
|
2558
|
+
return r ? o : Kt(e, n, a, i);
|
|
2610
2559
|
}
|
|
2611
|
-
function
|
|
2560
|
+
function ca(e, o) {
|
|
2612
2561
|
var t = 1;
|
|
2613
2562
|
return o ? Math.min(t, e.offsetWidth / window.innerWidth) : t;
|
|
2614
2563
|
}
|
|
2615
|
-
function
|
|
2616
|
-
var t =
|
|
2564
|
+
function va(e, o) {
|
|
2565
|
+
var t = ua(e);
|
|
2617
2566
|
if (t) {
|
|
2618
2567
|
var r = e.lastMousePosition, i = e.velocityTime, n = e.setup, a = e.wrapperComponent, s = n.velocityAnimation.equalToMove, l = Date.now();
|
|
2619
2568
|
if (r && i && a) {
|
|
2620
|
-
var d =
|
|
2569
|
+
var d = ca(a, s), u = o.x - r.x, f = o.y - r.y, c = u / d, v = f / d, h = l - i, m = u * u + f * f, g = Math.sqrt(m) / h;
|
|
2621
2570
|
e.velocity = { velocityX: c, velocityY: v, total: g };
|
|
2622
2571
|
}
|
|
2623
2572
|
e.lastMousePosition = o, e.velocityTime = l;
|
|
2624
2573
|
}
|
|
2625
2574
|
}
|
|
2626
|
-
function
|
|
2627
|
-
var o = e.velocity, t = e.bounds, r = e.setup, i = e.wrapperComponent, n =
|
|
2575
|
+
function ma(e) {
|
|
2576
|
+
var o = e.velocity, t = e.bounds, r = e.setup, i = e.wrapperComponent, n = da(e);
|
|
2628
2577
|
if (!(!n || !o || !t || !i)) {
|
|
2629
|
-
var a = o.velocityX, s = o.velocityY, l = o.total, d = t.maxPositionX,
|
|
2630
|
-
|
|
2631
|
-
var se = e.transformState, ve = se.scale, ne = se.positionX, K = se.positionY, Q = (/* @__PURE__ */ new Date()).getTime() - q, le = Q / O,
|
|
2632
|
-
(ne !== me || K !== j) && e.setTransformState(ve, Le,
|
|
2578
|
+
var a = o.velocityX, s = o.velocityY, l = o.total, d = t.maxPositionX, u = t.minPositionX, f = t.maxPositionY, c = t.minPositionY, v = r.limitToBounds, h = r.alignmentAnimation, m = r.zoomAnimation, g = r.panning, P = g.lockAxisY, C = g.lockAxisX, y = m.animationType, b = h.sizeX, w = h.sizeY, T = h.velocityAlignmentTime, O = T, x = fa(e, l), E = Math.max(x, O), A = Ot(e, b), M = Ot(e, w), X = A * i.offsetWidth / 100, N = M * i.offsetHeight / 100, Z = d + X, U = u - X, B = f + N, W = c - N, $ = e.transformState, q = (/* @__PURE__ */ new Date()).getTime();
|
|
2579
|
+
hr(e, y, E, function(be) {
|
|
2580
|
+
var se = e.transformState, ve = se.scale, ne = se.positionX, K = se.positionY, Q = (/* @__PURE__ */ new Date()).getTime() - q, le = Q / O, pe = vr[h.animationType], k = 1 - pe(Math.min(1, le)), L = 1 - be, me = ne + a * L, j = K + s * L, Le = Fo(me, $.positionX, ne, C, v, u, d, U, Z, k), Me = Fo(j, $.positionY, K, P, v, c, f, W, B, k);
|
|
2581
|
+
(ne !== me || K !== j) && e.setTransformState(ve, Le, Me);
|
|
2633
2582
|
});
|
|
2634
2583
|
}
|
|
2635
2584
|
}
|
|
2636
2585
|
function Zo(e, o) {
|
|
2637
2586
|
var t = e.transformState.scale;
|
|
2638
|
-
de(e),
|
|
2587
|
+
de(e), ke(e, t), window.TouchEvent !== void 0 && o instanceof TouchEvent ? aa(e, o) : na(e, o);
|
|
2639
2588
|
}
|
|
2640
|
-
function
|
|
2641
|
-
var o = e.transformState.scale, t = e.setup, r = t.minScale, i = t.alignmentAnimation, n = i.disabled, a = i.sizeX, s = i.sizeY, l = i.animationTime, d = i.animationType,
|
|
2642
|
-
if (!
|
|
2643
|
-
var f =
|
|
2589
|
+
function gr(e) {
|
|
2590
|
+
var o = e.transformState.scale, t = e.setup, r = t.minScale, i = t.alignmentAnimation, n = i.disabled, a = i.sizeX, s = i.sizeY, l = i.animationTime, d = i.animationType, u = n || o < r || !a && !s;
|
|
2591
|
+
if (!u) {
|
|
2592
|
+
var f = sa(e);
|
|
2644
2593
|
f && Se(e, f, l, d);
|
|
2645
2594
|
}
|
|
2646
2595
|
}
|
|
2647
2596
|
function Uo(e, o, t) {
|
|
2648
2597
|
var r = e.startCoords, i = e.setup, n = i.alignmentAnimation, a = n.sizeX, s = n.sizeY;
|
|
2649
2598
|
if (r) {
|
|
2650
|
-
var l =
|
|
2651
|
-
|
|
2599
|
+
var l = pa(e, o, t), d = l.x, u = l.y, f = Ot(e, a), c = Ot(e, s);
|
|
2600
|
+
va(e, { x: d, y: u }), la(e, d, u, f, c);
|
|
2652
2601
|
}
|
|
2653
2602
|
}
|
|
2654
|
-
function
|
|
2603
|
+
function ha(e) {
|
|
2655
2604
|
if (e.isPanning) {
|
|
2656
2605
|
var o = e.setup.panning.velocityDisabled, t = e.velocity, r = e.wrapperComponent, i = e.contentComponent;
|
|
2657
2606
|
e.isPanning = !1, e.animate = !1, e.animation = null;
|
|
2658
|
-
var n = r == null ? void 0 : r.getBoundingClientRect(), a = i == null ? void 0 : i.getBoundingClientRect(), s = (n == null ? void 0 : n.width) || 0, l = (n == null ? void 0 : n.height) || 0, d = (a == null ? void 0 : a.width) || 0,
|
|
2659
|
-
c ?
|
|
2607
|
+
var n = r == null ? void 0 : r.getBoundingClientRect(), a = i == null ? void 0 : i.getBoundingClientRect(), s = (n == null ? void 0 : n.width) || 0, l = (n == null ? void 0 : n.height) || 0, d = (a == null ? void 0 : a.width) || 0, u = (a == null ? void 0 : a.height) || 0, f = s < d || l < u, c = !o && t && (t == null ? void 0 : t.total) > 0.1 && f;
|
|
2608
|
+
c ? ma(e) : gr(e);
|
|
2660
2609
|
}
|
|
2661
2610
|
}
|
|
2662
|
-
function
|
|
2663
|
-
var i = e.setup, n = i.minScale, a = i.maxScale, s = i.limitToBounds, l = it(te(o, 2), n, a, 0, !1), d =
|
|
2611
|
+
function uo(e, o, t, r) {
|
|
2612
|
+
var i = e.setup, n = i.minScale, a = i.maxScale, s = i.limitToBounds, l = it(te(o, 2), n, a, 0, !1), d = ke(e, l), u = Bt(e, t, r, l, d, s), f = u.x, c = u.y;
|
|
2664
2613
|
return { scale: l, positionX: f, positionY: c };
|
|
2665
2614
|
}
|
|
2666
|
-
function
|
|
2667
|
-
var r = e.transformState.scale, i = e.wrapperComponent, n = e.setup, a = n.minScale, s = n.limitToBounds, l = n.zoomAnimation, d = l.disabled,
|
|
2668
|
-
if ((r >= 1 || s) &&
|
|
2669
|
-
var v = o || i.offsetWidth / 2, h = t || i.offsetHeight / 2, m =
|
|
2670
|
-
m && Se(e, m,
|
|
2615
|
+
function br(e, o, t) {
|
|
2616
|
+
var r = e.transformState.scale, i = e.wrapperComponent, n = e.setup, a = n.minScale, s = n.limitToBounds, l = n.zoomAnimation, d = l.disabled, u = l.animationTime, f = l.animationType, c = d || r >= a;
|
|
2617
|
+
if ((r >= 1 || s) && gr(e), !(c || !i || !e.mounted)) {
|
|
2618
|
+
var v = o || i.offsetWidth / 2, h = t || i.offsetHeight / 2, m = uo(e, a, v, h);
|
|
2619
|
+
m && Se(e, m, u, f);
|
|
2671
2620
|
}
|
|
2672
2621
|
}
|
|
2673
2622
|
var Te = function() {
|
|
@@ -2755,7 +2704,7 @@ var gt = {
|
|
|
2755
2704
|
animationType: "easeOut",
|
|
2756
2705
|
equalToMove: !0
|
|
2757
2706
|
}
|
|
2758
|
-
},
|
|
2707
|
+
}, yr = function(e) {
|
|
2759
2708
|
var o, t, r, i;
|
|
2760
2709
|
return {
|
|
2761
2710
|
previousScale: (o = e.initialScale) !== null && o !== void 0 ? o : gt.scale,
|
|
@@ -2772,60 +2721,60 @@ var gt = {
|
|
|
2772
2721
|
a ? o[t] = Te(Te({}, Qe[t]), e[t]) : s ? o[t] = qo(qo([], Qe[t], !0), e[t], !0) : o[t] = e[t];
|
|
2773
2722
|
}
|
|
2774
2723
|
}), o;
|
|
2775
|
-
},
|
|
2776
|
-
var r = e.transformState.scale, i = e.wrapperComponent, n = e.setup, a = n.maxScale, s = n.minScale, l = n.zoomAnimation, d = n.smooth,
|
|
2724
|
+
}, wr = function(e, o, t) {
|
|
2725
|
+
var r = e.transformState.scale, i = e.wrapperComponent, n = e.setup, a = n.maxScale, s = n.minScale, l = n.zoomAnimation, d = n.smooth, u = l.size;
|
|
2777
2726
|
if (!i)
|
|
2778
2727
|
throw new Error("Wrapper is not mounted");
|
|
2779
|
-
var f = d ? r * Math.exp(o * t) : r + o * t, c = it(te(f, 3), s, a,
|
|
2728
|
+
var f = d ? r * Math.exp(o * t) : r + o * t, c = it(te(f, 3), s, a, u, !1);
|
|
2780
2729
|
return c;
|
|
2781
2730
|
};
|
|
2782
|
-
function
|
|
2731
|
+
function Pr(e, o, t, r, i) {
|
|
2783
2732
|
var n = e.wrapperComponent, a = e.transformState, s = a.scale, l = a.positionX, d = a.positionY;
|
|
2784
2733
|
if (!n)
|
|
2785
2734
|
return console.error("No WrapperComponent found");
|
|
2786
|
-
var
|
|
2735
|
+
var u = n.offsetWidth, f = n.offsetHeight, c = (u / 2 - l) / s, v = (f / 2 - d) / s, h = wr(e, o, t), m = uo(e, h, c, v);
|
|
2787
2736
|
if (!m)
|
|
2788
2737
|
return console.error("Error during zoom event. New transformation state was not calculated.");
|
|
2789
2738
|
Se(e, m, r, i);
|
|
2790
2739
|
}
|
|
2791
|
-
function
|
|
2792
|
-
var i = e.setup, n = e.wrapperComponent, a = i.limitToBounds, s =
|
|
2740
|
+
function Tr(e, o, t, r) {
|
|
2741
|
+
var i = e.setup, n = e.wrapperComponent, a = i.limitToBounds, s = yr(e.props), l = e.transformState, d = l.scale, u = l.positionX, f = l.positionY;
|
|
2793
2742
|
if (n) {
|
|
2794
|
-
var c =
|
|
2743
|
+
var c = po(e, s.scale), v = Nt(s.positionX, s.positionY, c, a, 0, 0, n), h = {
|
|
2795
2744
|
scale: s.scale,
|
|
2796
2745
|
positionX: v.x,
|
|
2797
2746
|
positionY: v.y
|
|
2798
2747
|
};
|
|
2799
|
-
d === s.scale &&
|
|
2748
|
+
d === s.scale && u === s.positionX && f === s.positionY || (r == null || r(), Se(e, h, o, t));
|
|
2800
2749
|
}
|
|
2801
2750
|
}
|
|
2802
|
-
function
|
|
2751
|
+
function ga(e, o, t, r) {
|
|
2803
2752
|
var i = e.getBoundingClientRect(), n = o.getBoundingClientRect(), a = t.getBoundingClientRect(), s = n.x * r.scale, l = n.y * r.scale;
|
|
2804
2753
|
return {
|
|
2805
2754
|
x: (i.x - a.x + s) / r.scale,
|
|
2806
2755
|
y: (i.y - a.y + l) / r.scale
|
|
2807
2756
|
};
|
|
2808
2757
|
}
|
|
2809
|
-
function
|
|
2758
|
+
function ba(e, o, t) {
|
|
2810
2759
|
var r = e.wrapperComponent, i = e.contentComponent, n = e.transformState, a = e.setup, s = a.limitToBounds, l = a.minScale, d = a.maxScale;
|
|
2811
2760
|
if (!r || !i)
|
|
2812
2761
|
return n;
|
|
2813
|
-
var
|
|
2814
|
-
return { positionX: A, positionY:
|
|
2762
|
+
var u = r.getBoundingClientRect(), f = o.getBoundingClientRect(), c = ga(o, r, i, n), v = c.x, h = c.y, m = f.width / n.scale, g = f.height / n.scale, P = r.offsetWidth / m, C = r.offsetHeight / g, y = it(t || Math.min(P, C), l, d, 0, !1), b = (u.width - m * y) / 2, w = (u.height - g * y) / 2, T = (u.left - v) * y + b, O = (u.top - h) * y + w, x = po(e, y), E = Nt(T, O, x, s, 0, 0, r), A = E.x, M = E.y;
|
|
2763
|
+
return { positionX: A, positionY: M, scale: y };
|
|
2815
2764
|
}
|
|
2816
|
-
var
|
|
2765
|
+
var ya = function(e) {
|
|
2817
2766
|
return function(o, t, r) {
|
|
2818
|
-
o === void 0 && (o = 0.5), t === void 0 && (t = 300), r === void 0 && (r = "easeOut"),
|
|
2767
|
+
o === void 0 && (o = 0.5), t === void 0 && (t = 300), r === void 0 && (r = "easeOut"), Pr(e, 1, o, t, r);
|
|
2819
2768
|
};
|
|
2820
|
-
},
|
|
2769
|
+
}, wa = function(e) {
|
|
2821
2770
|
return function(o, t, r) {
|
|
2822
|
-
o === void 0 && (o = 0.5), t === void 0 && (t = 300), r === void 0 && (r = "easeOut"),
|
|
2771
|
+
o === void 0 && (o = 0.5), t === void 0 && (t = 300), r === void 0 && (r = "easeOut"), Pr(e, -1, o, t, r);
|
|
2823
2772
|
};
|
|
2824
|
-
},
|
|
2773
|
+
}, Pa = function(e) {
|
|
2825
2774
|
return function(o, t, r, i, n) {
|
|
2826
2775
|
i === void 0 && (i = 300), n === void 0 && (n = "easeOut");
|
|
2827
|
-
var a = e.transformState, s = a.positionX, l = a.positionY, d = a.scale,
|
|
2828
|
-
if (!(c || !
|
|
2776
|
+
var a = e.transformState, s = a.positionX, l = a.positionY, d = a.scale, u = e.wrapperComponent, f = e.contentComponent, c = e.setup.disabled;
|
|
2777
|
+
if (!(c || !u || !f)) {
|
|
2829
2778
|
var v = {
|
|
2830
2779
|
positionX: Number.isNaN(o) ? s : o,
|
|
2831
2780
|
positionY: Number.isNaN(t) ? l : t,
|
|
@@ -2834,60 +2783,60 @@ var Da = function(e) {
|
|
|
2834
2783
|
Se(e, v, i, n);
|
|
2835
2784
|
}
|
|
2836
2785
|
};
|
|
2837
|
-
},
|
|
2786
|
+
}, Ta = function(e) {
|
|
2838
2787
|
return function(o, t) {
|
|
2839
|
-
o === void 0 && (o = 200), t === void 0 && (t = "easeOut"),
|
|
2788
|
+
o === void 0 && (o = 200), t === void 0 && (t = "easeOut"), Tr(e, o, t);
|
|
2840
2789
|
};
|
|
2841
|
-
},
|
|
2790
|
+
}, Ca = function(e) {
|
|
2842
2791
|
return function(o, t, r) {
|
|
2843
2792
|
t === void 0 && (t = 200), r === void 0 && (r = "easeOut");
|
|
2844
2793
|
var i = e.transformState, n = e.wrapperComponent, a = e.contentComponent;
|
|
2845
2794
|
if (n && a) {
|
|
2846
|
-
var s =
|
|
2795
|
+
var s = Cr(o || i.scale, n, a);
|
|
2847
2796
|
Se(e, s, t, r);
|
|
2848
2797
|
}
|
|
2849
2798
|
};
|
|
2850
|
-
},
|
|
2799
|
+
}, Sa = function(e) {
|
|
2851
2800
|
return function(o, t, r, i) {
|
|
2852
2801
|
r === void 0 && (r = 600), i === void 0 && (i = "easeOut"), de(e);
|
|
2853
2802
|
var n = e.wrapperComponent, a = typeof o == "string" ? document.getElementById(o) : o;
|
|
2854
2803
|
if (n && a && n.contains(a)) {
|
|
2855
|
-
var s =
|
|
2804
|
+
var s = ba(e, a, t);
|
|
2856
2805
|
Se(e, s, r, i);
|
|
2857
2806
|
}
|
|
2858
2807
|
};
|
|
2859
2808
|
}, Et = function(e) {
|
|
2860
2809
|
return {
|
|
2861
2810
|
instance: e,
|
|
2862
|
-
zoomIn:
|
|
2863
|
-
zoomOut:
|
|
2864
|
-
setTransform:
|
|
2865
|
-
resetTransform:
|
|
2866
|
-
centerView:
|
|
2867
|
-
zoomToElement:
|
|
2811
|
+
zoomIn: ya(e),
|
|
2812
|
+
zoomOut: wa(e),
|
|
2813
|
+
setTransform: Pa(e),
|
|
2814
|
+
resetTransform: Ta(e),
|
|
2815
|
+
centerView: Ca(e),
|
|
2816
|
+
zoomToElement: Sa(e)
|
|
2868
2817
|
};
|
|
2869
|
-
},
|
|
2818
|
+
}, Oa = function(e) {
|
|
2870
2819
|
return {
|
|
2871
2820
|
instance: e,
|
|
2872
2821
|
state: e.transformState
|
|
2873
2822
|
};
|
|
2874
|
-
},
|
|
2823
|
+
}, Y = function(e) {
|
|
2875
2824
|
var o = {};
|
|
2876
|
-
return Object.assign(o,
|
|
2877
|
-
},
|
|
2878
|
-
function
|
|
2825
|
+
return Object.assign(o, Oa(e)), Object.assign(o, Et(e)), o;
|
|
2826
|
+
}, Ht = !1;
|
|
2827
|
+
function Ft() {
|
|
2879
2828
|
try {
|
|
2880
2829
|
var e = {
|
|
2881
2830
|
get passive() {
|
|
2882
|
-
return
|
|
2831
|
+
return Ht = !0, !1;
|
|
2883
2832
|
}
|
|
2884
2833
|
};
|
|
2885
2834
|
return e;
|
|
2886
2835
|
} catch {
|
|
2887
|
-
return
|
|
2836
|
+
return Ht = !1, Ht;
|
|
2888
2837
|
}
|
|
2889
2838
|
}
|
|
2890
|
-
var
|
|
2839
|
+
var zt = function(e, o) {
|
|
2891
2840
|
var t = e.tagName.toUpperCase(), r = o.find(function(n) {
|
|
2892
2841
|
return n.toUpperCase() === t;
|
|
2893
2842
|
});
|
|
@@ -2897,11 +2846,11 @@ var Wt = function(e, o) {
|
|
|
2897
2846
|
return e.classList.contains(n);
|
|
2898
2847
|
});
|
|
2899
2848
|
return !!i;
|
|
2900
|
-
},
|
|
2849
|
+
}, Qt = function(e) {
|
|
2901
2850
|
e && clearTimeout(e);
|
|
2902
|
-
},
|
|
2851
|
+
}, Ea = function(e, o, t) {
|
|
2903
2852
|
return "translate(".concat(e, "px, ").concat(o, "px) scale(").concat(t, ")");
|
|
2904
|
-
},
|
|
2853
|
+
}, Cr = function(e, o, t) {
|
|
2905
2854
|
var r = t.offsetWidth * e, i = t.offsetHeight * e, n = (o.offsetWidth - r) / 2, a = (o.offsetHeight - i) / 2;
|
|
2906
2855
|
return {
|
|
2907
2856
|
scale: e,
|
|
@@ -2909,27 +2858,27 @@ var Wt = function(e, o) {
|
|
|
2909
2858
|
positionY: a
|
|
2910
2859
|
};
|
|
2911
2860
|
};
|
|
2912
|
-
function
|
|
2861
|
+
function Aa(e) {
|
|
2913
2862
|
return function(o) {
|
|
2914
2863
|
e.forEach(function(t) {
|
|
2915
2864
|
typeof t == "function" ? t(o) : t != null && (t.current = o);
|
|
2916
2865
|
});
|
|
2917
2866
|
};
|
|
2918
2867
|
}
|
|
2919
|
-
var
|
|
2920
|
-
var t = e.setup.wheel, r = t.disabled, i = t.wheelDisabled, n = t.touchPadDisabled, a = t.excluded, s = e.isInitialized, l = e.isPanning, d = o.target,
|
|
2921
|
-
if (!
|
|
2868
|
+
var Ra = function(e, o) {
|
|
2869
|
+
var t = e.setup.wheel, r = t.disabled, i = t.wheelDisabled, n = t.touchPadDisabled, a = t.excluded, s = e.isInitialized, l = e.isPanning, d = o.target, u = s && !l && !r && d;
|
|
2870
|
+
if (!u || i && !o.ctrlKey || n && o.ctrlKey)
|
|
2922
2871
|
return !1;
|
|
2923
|
-
var f =
|
|
2872
|
+
var f = zt(d, a);
|
|
2924
2873
|
return !f;
|
|
2925
|
-
},
|
|
2874
|
+
}, Da = function(e) {
|
|
2926
2875
|
return e ? e.deltaY < 0 ? 1 : -1 : 0;
|
|
2927
2876
|
};
|
|
2928
|
-
function
|
|
2929
|
-
var t =
|
|
2877
|
+
function xa(e, o) {
|
|
2878
|
+
var t = Da(e), r = jn(o, t);
|
|
2930
2879
|
return r;
|
|
2931
2880
|
}
|
|
2932
|
-
function
|
|
2881
|
+
function Sr(e, o, t) {
|
|
2933
2882
|
var r = o.getBoundingClientRect(), i = 0, n = 0;
|
|
2934
2883
|
if ("clientX" in e)
|
|
2935
2884
|
i = (e.clientX - r.left) / t, n = (e.clientY - r.top) / t;
|
|
@@ -2942,8 +2891,8 @@ function Or(e, o, t) {
|
|
|
2942
2891
|
y: n
|
|
2943
2892
|
};
|
|
2944
2893
|
}
|
|
2945
|
-
var
|
|
2946
|
-
var n = e.transformState.scale, a = e.wrapperComponent, s = e.setup, l = s.maxScale, d = s.minScale,
|
|
2894
|
+
var Ma = function(e, o, t, r, i) {
|
|
2895
|
+
var n = e.transformState.scale, a = e.wrapperComponent, s = e.setup, l = s.maxScale, d = s.minScale, u = s.zoomAnimation, f = s.disablePadding, c = u.size, v = u.disabled;
|
|
2947
2896
|
if (!a)
|
|
2948
2897
|
throw new Error("Wrapper is not mounted");
|
|
2949
2898
|
var h = n + o * t;
|
|
@@ -2951,109 +2900,109 @@ var La = function(e, o, t, r, i) {
|
|
|
2951
2900
|
return h;
|
|
2952
2901
|
var m = r ? !1 : !v, g = it(te(h, 3), d, l, c, m && !f);
|
|
2953
2902
|
return g;
|
|
2954
|
-
},
|
|
2903
|
+
}, Ya = function(e, o) {
|
|
2955
2904
|
var t = e.previousWheelEvent, r = e.transformState.scale, i = e.setup, n = i.maxScale, a = i.minScale;
|
|
2956
2905
|
return t ? r < n || r > a || Math.sign(t.deltaY) !== Math.sign(o.deltaY) || t.deltaY > 0 && t.deltaY < o.deltaY || t.deltaY < 0 && t.deltaY > o.deltaY || Math.sign(t.deltaY) !== Math.sign(o.deltaY) : !1;
|
|
2957
|
-
},
|
|
2906
|
+
}, _a = function(e, o) {
|
|
2958
2907
|
var t = e.setup.pinch, r = t.disabled, i = t.excluded, n = e.isInitialized, a = o.target, s = n && !r && a;
|
|
2959
2908
|
if (!s)
|
|
2960
2909
|
return !1;
|
|
2961
|
-
var l =
|
|
2910
|
+
var l = zt(a, i);
|
|
2962
2911
|
return !l;
|
|
2963
|
-
},
|
|
2912
|
+
}, Na = function(e) {
|
|
2964
2913
|
var o = e.setup.pinch.disabled, t = e.isInitialized, r = e.pinchStartDistance, i = t && !o && r;
|
|
2965
2914
|
return !!i;
|
|
2966
|
-
},
|
|
2915
|
+
}, Ba = function(e, o, t) {
|
|
2967
2916
|
var r = t.getBoundingClientRect(), i = e.touches, n = te(i[0].clientX - r.left, 5), a = te(i[0].clientY - r.top, 5), s = te(i[1].clientX - r.left, 5), l = te(i[1].clientY - r.top, 5);
|
|
2968
2917
|
return {
|
|
2969
2918
|
x: (n + s) / 2 / o,
|
|
2970
2919
|
y: (a + l) / 2 / o
|
|
2971
2920
|
};
|
|
2972
|
-
},
|
|
2921
|
+
}, Or = function(e) {
|
|
2973
2922
|
return Math.sqrt(Math.pow(e.touches[0].pageX - e.touches[1].pageX, 2) + Math.pow(e.touches[0].pageY - e.touches[1].pageY, 2));
|
|
2974
|
-
},
|
|
2975
|
-
var t = e.pinchStartScale, r = e.pinchStartDistance, i = e.setup, n = i.maxScale, a = i.minScale, s = i.zoomAnimation, l = i.disablePadding, d = s.size,
|
|
2923
|
+
}, za = function(e, o) {
|
|
2924
|
+
var t = e.pinchStartScale, r = e.pinchStartDistance, i = e.setup, n = i.maxScale, a = i.minScale, s = i.zoomAnimation, l = i.disablePadding, d = s.size, u = s.disabled;
|
|
2976
2925
|
if (!t || r === null || !o)
|
|
2977
2926
|
throw new Error("Pinch touches distance was not provided");
|
|
2978
2927
|
if (o < 0)
|
|
2979
2928
|
return e.transformState.scale;
|
|
2980
2929
|
var f = o / r, c = f * t;
|
|
2981
|
-
return it(te(c, 2), a, n, d, !
|
|
2982
|
-
},
|
|
2930
|
+
return it(te(c, 2), a, n, d, !u && !l);
|
|
2931
|
+
}, Xa = 160, Wa = 100, $a = function(e, o) {
|
|
2983
2932
|
var t = e.props, r = t.onWheelStart, i = t.onZoomStart;
|
|
2984
|
-
e.wheelStopEventTimer || (de(e), z(
|
|
2985
|
-
},
|
|
2986
|
-
var t = e.props, r = t.onWheel, i = t.onZoom, n = e.contentComponent, a = e.setup, s = e.transformState, l = s.scale, d = a.limitToBounds,
|
|
2933
|
+
e.wheelStopEventTimer || (de(e), z(Y(e), o, r), z(Y(e), o, i));
|
|
2934
|
+
}, ka = function(e, o) {
|
|
2935
|
+
var t = e.props, r = t.onWheel, i = t.onZoom, n = e.contentComponent, a = e.setup, s = e.transformState, l = s.scale, d = a.limitToBounds, u = a.centerZoomedOut, f = a.zoomAnimation, c = a.wheel, v = a.disablePadding, h = a.smooth, m = f.size, g = f.disabled, P = c.step, C = c.smoothStep;
|
|
2987
2936
|
if (!n)
|
|
2988
2937
|
throw new Error("Component not mounted");
|
|
2989
2938
|
o.preventDefault(), o.stopPropagation();
|
|
2990
|
-
var y =
|
|
2939
|
+
var y = xa(o, null), b = h ? C * Math.abs(o.deltaY) : P, w = Ma(e, y, b, !o.ctrlKey);
|
|
2991
2940
|
if (l !== w) {
|
|
2992
|
-
var T =
|
|
2993
|
-
e.previousWheelEvent = o, e.setTransformState(w,
|
|
2941
|
+
var T = ke(e, w), O = Sr(o, n, l), x = g || m === 0 || u || v, E = d && x, A = Bt(e, O.x, O.y, w, T, E), M = A.x, X = A.y;
|
|
2942
|
+
e.previousWheelEvent = o, e.setTransformState(w, M, X), z(Y(e), o, r), z(Y(e), o, i);
|
|
2994
2943
|
}
|
|
2995
|
-
},
|
|
2944
|
+
}, ja = function(e, o) {
|
|
2996
2945
|
var t = e.props, r = t.onWheelStop, i = t.onZoomStop;
|
|
2997
|
-
|
|
2998
|
-
e.mounted && (
|
|
2999
|
-
},
|
|
3000
|
-
var n =
|
|
3001
|
-
n && (
|
|
3002
|
-
e.mounted && (e.wheelStopEventTimer = null, z(
|
|
3003
|
-
},
|
|
3004
|
-
},
|
|
3005
|
-
var t =
|
|
2946
|
+
Qt(e.wheelAnimationTimer), e.wheelAnimationTimer = setTimeout(function() {
|
|
2947
|
+
e.mounted && (br(e, o.x, o.y), e.wheelAnimationTimer = null);
|
|
2948
|
+
}, Wa);
|
|
2949
|
+
var n = Ya(e, o);
|
|
2950
|
+
n && (Qt(e.wheelStopEventTimer), e.wheelStopEventTimer = setTimeout(function() {
|
|
2951
|
+
e.mounted && (e.wheelStopEventTimer = null, z(Y(e), o, r), z(Y(e), o, i));
|
|
2952
|
+
}, Xa));
|
|
2953
|
+
}, La = function(e, o) {
|
|
2954
|
+
var t = Or(o);
|
|
3006
2955
|
e.pinchStartDistance = t, e.lastDistance = t, e.pinchStartScale = e.transformState.scale, e.isPanning = !1, de(e);
|
|
3007
|
-
},
|
|
3008
|
-
var t = e.contentComponent, r = e.pinchStartDistance, i = e.transformState.scale, n = e.setup, a = n.limitToBounds, s = n.centerZoomedOut, l = n.zoomAnimation, d = l.disabled,
|
|
2956
|
+
}, Va = function(e, o) {
|
|
2957
|
+
var t = e.contentComponent, r = e.pinchStartDistance, i = e.transformState.scale, n = e.setup, a = n.limitToBounds, s = n.centerZoomedOut, l = n.zoomAnimation, d = l.disabled, u = l.size;
|
|
3009
2958
|
if (!(r === null || !t)) {
|
|
3010
|
-
var f =
|
|
2959
|
+
var f = Ba(o, i, t);
|
|
3011
2960
|
if (!(!Number.isFinite(f.x) || !Number.isFinite(f.y))) {
|
|
3012
|
-
var c =
|
|
2961
|
+
var c = Or(o), v = za(e, c);
|
|
3013
2962
|
if (v !== i) {
|
|
3014
|
-
var h =
|
|
3015
|
-
e.pinchMidpoint = f, e.lastDistance = c, e.setTransformState(v,
|
|
2963
|
+
var h = ke(e, v), m = d || u === 0 || s, g = a && m, P = Bt(e, f.x, f.y, v, h, g), C = P.x, y = P.y;
|
|
2964
|
+
e.pinchMidpoint = f, e.lastDistance = c, e.setTransformState(v, C, y);
|
|
3016
2965
|
}
|
|
3017
2966
|
}
|
|
3018
2967
|
}
|
|
3019
|
-
},
|
|
2968
|
+
}, Ha = function(e) {
|
|
3020
2969
|
var o = e.pinchMidpoint;
|
|
3021
|
-
e.velocity = null, e.lastDistance = null, e.pinchMidpoint = null, e.pinchStartScale = null, e.pinchStartDistance = null,
|
|
3022
|
-
},
|
|
2970
|
+
e.velocity = null, e.lastDistance = null, e.pinchMidpoint = null, e.pinchStartScale = null, e.pinchStartDistance = null, br(e, o == null ? void 0 : o.x, o == null ? void 0 : o.y);
|
|
2971
|
+
}, Er = function(e, o) {
|
|
3023
2972
|
var t = e.props.onZoomStop, r = e.setup.doubleClick.animationTime;
|
|
3024
|
-
|
|
3025
|
-
e.doubleClickStopEventTimer = null, z(
|
|
2973
|
+
Qt(e.doubleClickStopEventTimer), e.doubleClickStopEventTimer = setTimeout(function() {
|
|
2974
|
+
e.doubleClickStopEventTimer = null, z(Y(e), o, t);
|
|
3026
2975
|
}, r);
|
|
3027
|
-
},
|
|
2976
|
+
}, Fa = function(e, o) {
|
|
3028
2977
|
var t = e.props, r = t.onZoomStart, i = t.onZoom, n = e.setup.doubleClick, a = n.animationTime, s = n.animationType;
|
|
3029
|
-
z(
|
|
3030
|
-
return z(
|
|
3031
|
-
}),
|
|
2978
|
+
z(Y(e), o, r), Tr(e, a, s, function() {
|
|
2979
|
+
return z(Y(e), o, i);
|
|
2980
|
+
}), Er(e, o);
|
|
3032
2981
|
};
|
|
3033
|
-
function
|
|
3034
|
-
var t = e.setup, r = e.doubleClickStopEventTimer, i = e.transformState, n = e.contentComponent, a = i.scale, s = e.props, l = s.onZoomStart, d = s.onZoom,
|
|
2982
|
+
function Za(e, o) {
|
|
2983
|
+
var t = e.setup, r = e.doubleClickStopEventTimer, i = e.transformState, n = e.contentComponent, a = i.scale, s = e.props, l = s.onZoomStart, d = s.onZoom, u = t.doubleClick, f = u.disabled, c = u.mode, v = u.step, h = u.animationTime, m = u.animationType;
|
|
3035
2984
|
if (!f && !r) {
|
|
3036
2985
|
if (c === "reset")
|
|
3037
|
-
return
|
|
2986
|
+
return Fa(e, o);
|
|
3038
2987
|
if (!n)
|
|
3039
2988
|
return console.error("No ContentComponent found");
|
|
3040
|
-
var g = c === "zoomOut" ? -1 : 1, P =
|
|
2989
|
+
var g = c === "zoomOut" ? -1 : 1, P = wr(e, g, v);
|
|
3041
2990
|
if (a !== P) {
|
|
3042
|
-
z(
|
|
3043
|
-
var
|
|
2991
|
+
z(Y(e), o, l);
|
|
2992
|
+
var C = Sr(o, n, a), y = uo(e, P, C.x, C.y);
|
|
3044
2993
|
if (!y)
|
|
3045
2994
|
return console.error("Error during zoom event. New transformation state was not calculated.");
|
|
3046
|
-
z(
|
|
2995
|
+
z(Y(e), o, d), Se(e, y, h, m), Er(e, o);
|
|
3047
2996
|
}
|
|
3048
2997
|
}
|
|
3049
2998
|
}
|
|
3050
|
-
var
|
|
3051
|
-
var t = e.isInitialized, r = e.setup, i = e.wrapperComponent, n = r.doubleClick, a = n.disabled, s = n.excluded, l = o.target, d = i == null ? void 0 : i.contains(l),
|
|
3052
|
-
if (!
|
|
2999
|
+
var Ua = function(e, o) {
|
|
3000
|
+
var t = e.isInitialized, r = e.setup, i = e.wrapperComponent, n = r.doubleClick, a = n.disabled, s = n.excluded, l = o.target, d = i == null ? void 0 : i.contains(l), u = t && l && d && !a;
|
|
3001
|
+
if (!u)
|
|
3053
3002
|
return !1;
|
|
3054
|
-
var f =
|
|
3003
|
+
var f = zt(l, s);
|
|
3055
3004
|
return !f;
|
|
3056
|
-
},
|
|
3005
|
+
}, qa = (
|
|
3057
3006
|
/** @class */
|
|
3058
3007
|
function() {
|
|
3059
3008
|
function e(o) {
|
|
@@ -3063,33 +3012,33 @@ var is = function(e, o) {
|
|
|
3063
3012
|
}, this.unmount = function() {
|
|
3064
3013
|
t.cleanupWindowEvents();
|
|
3065
3014
|
}, this.update = function(r) {
|
|
3066
|
-
|
|
3015
|
+
ke(t, t.transformState.scale), t.setup = Ko(r);
|
|
3067
3016
|
}, this.initializeWindowEvents = function() {
|
|
3068
|
-
var r, i =
|
|
3017
|
+
var r, i = Ft(), n = (r = t.wrapperComponent) === null || r === void 0 ? void 0 : r.ownerDocument, a = n == null ? void 0 : n.defaultView;
|
|
3069
3018
|
a == null || a.addEventListener("mousedown", t.onPanningStart, i), a == null || a.addEventListener("mousemove", t.onPanning, i), a == null || a.addEventListener("mouseup", t.onPanningStop, i), n == null || n.addEventListener("mouseleave", t.clearPanning, i), a == null || a.addEventListener("keyup", t.setKeyUnPressed, i), a == null || a.addEventListener("keydown", t.setKeyPressed, i);
|
|
3070
3019
|
}, this.cleanupWindowEvents = function() {
|
|
3071
|
-
var r, i, n =
|
|
3020
|
+
var r, i, n = Ft(), a = (r = t.wrapperComponent) === null || r === void 0 ? void 0 : r.ownerDocument, s = a == null ? void 0 : a.defaultView;
|
|
3072
3021
|
s == null || s.removeEventListener("mousedown", t.onPanningStart, n), s == null || s.removeEventListener("mousemove", t.onPanning, n), s == null || s.removeEventListener("mouseup", t.onPanningStop, n), a == null || a.removeEventListener("mouseleave", t.clearPanning, n), s == null || s.removeEventListener("keyup", t.setKeyUnPressed, n), s == null || s.removeEventListener("keydown", t.setKeyPressed, n), document.removeEventListener("mouseleave", t.clearPanning, n), de(t), (i = t.observer) === null || i === void 0 || i.disconnect();
|
|
3073
3022
|
}, this.handleInitializeWrapperEvents = function(r) {
|
|
3074
|
-
var i =
|
|
3023
|
+
var i = Ft();
|
|
3075
3024
|
r.addEventListener("wheel", t.onWheelZoom, i), r.addEventListener("dblclick", t.onDoubleClick, i), r.addEventListener("touchstart", t.onTouchPanningStart, i), r.addEventListener("touchmove", t.onTouchPanning, i), r.addEventListener("touchend", t.onTouchPanningStop, i);
|
|
3076
3025
|
}, this.handleInitialize = function(r) {
|
|
3077
3026
|
var i = t.setup.centerOnInit;
|
|
3078
3027
|
t.applyTransformation(), t.onInitCallbacks.forEach(function(n) {
|
|
3079
|
-
return n(
|
|
3028
|
+
return n(Y(t));
|
|
3080
3029
|
}), i && (t.setCenter(), t.observer = new ResizeObserver(function() {
|
|
3081
3030
|
var n;
|
|
3082
3031
|
t.onInitCallbacks.forEach(function(a) {
|
|
3083
|
-
return a(
|
|
3032
|
+
return a(Y(t));
|
|
3084
3033
|
}), t.setCenter(), (n = t.observer) === null || n === void 0 || n.disconnect();
|
|
3085
3034
|
}), t.observer.observe(r));
|
|
3086
3035
|
}, this.onWheelZoom = function(r) {
|
|
3087
3036
|
var i = t.setup.disabled;
|
|
3088
3037
|
if (!i) {
|
|
3089
|
-
var n =
|
|
3038
|
+
var n = Ra(t, r);
|
|
3090
3039
|
if (n) {
|
|
3091
3040
|
var a = t.isPressingKeys(t.setup.wheel.activationKeys);
|
|
3092
|
-
a && (
|
|
3041
|
+
a && ($a(t, r), ka(t, r), ja(t, r));
|
|
3093
3042
|
}
|
|
3094
3043
|
}
|
|
3095
3044
|
}, this.onPanningStart = function(r) {
|
|
@@ -3098,7 +3047,7 @@ var is = function(e, o) {
|
|
|
3098
3047
|
var a = Vo(t, r);
|
|
3099
3048
|
if (a) {
|
|
3100
3049
|
var s = t.isPressingKeys(t.setup.panning.activationKeys);
|
|
3101
|
-
s && (r.preventDefault(), r.stopPropagation(), de(t), Zo(t, r), z(
|
|
3050
|
+
s && (r.preventDefault(), r.stopPropagation(), de(t), Zo(t, r), z(Y(t), r, n));
|
|
3102
3051
|
}
|
|
3103
3052
|
}
|
|
3104
3053
|
}, this.onPanning = function(r) {
|
|
@@ -3107,27 +3056,27 @@ var is = function(e, o) {
|
|
|
3107
3056
|
var a = Ho(t);
|
|
3108
3057
|
if (a) {
|
|
3109
3058
|
var s = t.isPressingKeys(t.setup.panning.activationKeys);
|
|
3110
|
-
s && (r.preventDefault(), r.stopPropagation(), Uo(t, r.clientX, r.clientY), z(
|
|
3059
|
+
s && (r.preventDefault(), r.stopPropagation(), Uo(t, r.clientX, r.clientY), z(Y(t), r, n));
|
|
3111
3060
|
}
|
|
3112
3061
|
}
|
|
3113
3062
|
}, this.onPanningStop = function(r) {
|
|
3114
3063
|
var i = t.props.onPanningStop;
|
|
3115
|
-
t.isPanning && (
|
|
3064
|
+
t.isPanning && (ha(t), z(Y(t), r, i));
|
|
3116
3065
|
}, this.onPinchStart = function(r) {
|
|
3117
3066
|
var i = t.setup.disabled, n = t.props, a = n.onPinchingStart, s = n.onZoomStart;
|
|
3118
3067
|
if (!i) {
|
|
3119
|
-
var l =
|
|
3120
|
-
l && (
|
|
3068
|
+
var l = _a(t, r);
|
|
3069
|
+
l && (La(t, r), de(t), z(Y(t), r, a), z(Y(t), r, s));
|
|
3121
3070
|
}
|
|
3122
3071
|
}, this.onPinch = function(r) {
|
|
3123
3072
|
var i = t.setup.disabled, n = t.props, a = n.onPinching, s = n.onZoom;
|
|
3124
3073
|
if (!i) {
|
|
3125
|
-
var l =
|
|
3126
|
-
l && (r.preventDefault(), r.stopPropagation(),
|
|
3074
|
+
var l = Na(t);
|
|
3075
|
+
l && (r.preventDefault(), r.stopPropagation(), Va(t, r), z(Y(t), r, a), z(Y(t), r, s));
|
|
3127
3076
|
}
|
|
3128
3077
|
}, this.onPinchStop = function(r) {
|
|
3129
3078
|
var i = t.props, n = i.onPinchingStop, a = i.onZoomStop;
|
|
3130
|
-
t.pinchStartScale && (
|
|
3079
|
+
t.pinchStartScale && (Ha(t), z(Y(t), r, n), z(Y(t), r, a));
|
|
3131
3080
|
}, this.onTouchPanningStart = function(r) {
|
|
3132
3081
|
var i = t.setup.disabled, n = t.props.onPanningStart;
|
|
3133
3082
|
if (!i) {
|
|
@@ -3138,8 +3087,8 @@ var is = function(e, o) {
|
|
|
3138
3087
|
t.onDoubleClick(r);
|
|
3139
3088
|
else {
|
|
3140
3089
|
t.lastTouch = +/* @__PURE__ */ new Date(), de(t);
|
|
3141
|
-
var l = r.touches, d = l.length === 1,
|
|
3142
|
-
d && (de(t), Zo(t, r), z(
|
|
3090
|
+
var l = r.touches, d = l.length === 1, u = l.length === 2;
|
|
3091
|
+
d && (de(t), Zo(t, r), z(Y(t), r, n)), u && t.onPinchStart(r);
|
|
3143
3092
|
}
|
|
3144
3093
|
}
|
|
3145
3094
|
}
|
|
@@ -3153,7 +3102,7 @@ var is = function(e, o) {
|
|
|
3153
3102
|
return;
|
|
3154
3103
|
r.preventDefault(), r.stopPropagation();
|
|
3155
3104
|
var s = r.touches[0];
|
|
3156
|
-
Uo(t, s.clientX, s.clientY), z(
|
|
3105
|
+
Uo(t, s.clientX, s.clientY), z(Y(t), r, n);
|
|
3157
3106
|
} else
|
|
3158
3107
|
r.touches.length > 1 && t.onPinch(r);
|
|
3159
3108
|
}, this.onTouchPanningStop = function(r) {
|
|
@@ -3161,8 +3110,8 @@ var is = function(e, o) {
|
|
|
3161
3110
|
}, this.onDoubleClick = function(r) {
|
|
3162
3111
|
var i = t.setup.disabled;
|
|
3163
3112
|
if (!i) {
|
|
3164
|
-
var n =
|
|
3165
|
-
n &&
|
|
3113
|
+
var n = Ua(t, r);
|
|
3114
|
+
n && Za(t, r);
|
|
3166
3115
|
}
|
|
3167
3116
|
}, this.clearPanning = function(r) {
|
|
3168
3117
|
t.isPanning && t.onPanningStop(r);
|
|
@@ -3178,7 +3127,7 @@ var is = function(e, o) {
|
|
|
3178
3127
|
var a = t.props.onTransformed;
|
|
3179
3128
|
if (!Number.isNaN(r) && !Number.isNaN(i) && !Number.isNaN(n)) {
|
|
3180
3129
|
r !== t.transformState.scale && (t.transformState.previousScale = t.transformState.scale, t.transformState.scale = r), t.transformState.positionX = i, t.transformState.positionY = n, t.applyTransformation();
|
|
3181
|
-
var s =
|
|
3130
|
+
var s = Y(t);
|
|
3182
3131
|
t.onChangeCallbacks.forEach(function(l) {
|
|
3183
3132
|
return l(s);
|
|
3184
3133
|
}), z(s, { scale: r, positionX: i, positionY: n }, a);
|
|
@@ -3186,18 +3135,18 @@ var is = function(e, o) {
|
|
|
3186
3135
|
console.error("Detected NaN set state values");
|
|
3187
3136
|
}, this.setCenter = function() {
|
|
3188
3137
|
if (t.wrapperComponent && t.contentComponent) {
|
|
3189
|
-
var r =
|
|
3138
|
+
var r = Cr(t.transformState.scale, t.wrapperComponent, t.contentComponent);
|
|
3190
3139
|
t.setTransformState(r.scale, r.positionX, r.positionY);
|
|
3191
3140
|
}
|
|
3192
3141
|
}, this.handleTransformStyles = function(r, i, n) {
|
|
3193
|
-
return t.props.customTransform ? t.props.customTransform(r, i, n) :
|
|
3142
|
+
return t.props.customTransform ? t.props.customTransform(r, i, n) : Ea(r, i, n);
|
|
3194
3143
|
}, this.applyTransformation = function() {
|
|
3195
3144
|
if (!(!t.mounted || !t.contentComponent)) {
|
|
3196
3145
|
var r = t.transformState, i = r.scale, n = r.positionX, a = r.positionY, s = t.handleTransformStyles(n, a, i);
|
|
3197
3146
|
t.contentComponent.style.transform = s;
|
|
3198
3147
|
}
|
|
3199
3148
|
}, this.getContext = function() {
|
|
3200
|
-
return
|
|
3149
|
+
return Y(t);
|
|
3201
3150
|
}, this.onChange = function(r) {
|
|
3202
3151
|
return t.onChangeCallbacks.has(r) || t.onChangeCallbacks.add(r), function() {
|
|
3203
3152
|
t.onChangeCallbacks.delete(r);
|
|
@@ -3207,35 +3156,35 @@ var is = function(e, o) {
|
|
|
3207
3156
|
t.onInitCallbacks.delete(r);
|
|
3208
3157
|
};
|
|
3209
3158
|
}, this.init = function(r, i) {
|
|
3210
|
-
t.cleanupWindowEvents(), t.wrapperComponent = r, t.contentComponent = i,
|
|
3211
|
-
var n =
|
|
3159
|
+
t.cleanupWindowEvents(), t.wrapperComponent = r, t.contentComponent = i, ke(t, t.transformState.scale), t.handleInitializeWrapperEvents(r), t.handleInitialize(i), t.initializeWindowEvents(), t.isInitialized = !0;
|
|
3160
|
+
var n = Y(t);
|
|
3212
3161
|
z(n, void 0, t.props.onInit);
|
|
3213
|
-
}, this.props = o, this.setup = Ko(this.props), this.transformState =
|
|
3162
|
+
}, this.props = o, this.setup = Ko(this.props), this.transformState = yr(this.props);
|
|
3214
3163
|
}
|
|
3215
3164
|
return e;
|
|
3216
3165
|
}()
|
|
3217
|
-
), Xt =
|
|
3166
|
+
), Xt = Re.createContext(null), Ka = function(e, o) {
|
|
3218
3167
|
return typeof e == "function" ? e(o) : e;
|
|
3219
|
-
},
|
|
3220
|
-
var t =
|
|
3221
|
-
return
|
|
3168
|
+
}, Ms = Re.forwardRef(function(e, o) {
|
|
3169
|
+
var t = Pt(new qa(e)).current, r = Ka(e.children, Et(t));
|
|
3170
|
+
return Hr(o, function() {
|
|
3222
3171
|
return Et(t);
|
|
3223
|
-
}, [t]),
|
|
3172
|
+
}, [t]), Gt(function() {
|
|
3224
3173
|
t.update(e);
|
|
3225
|
-
}, [t, e]),
|
|
3174
|
+
}, [t, e]), Re.createElement(Xt.Provider, { value: t }, r);
|
|
3226
3175
|
});
|
|
3227
|
-
|
|
3228
|
-
var t =
|
|
3229
|
-
return
|
|
3176
|
+
Re.forwardRef(function(e, o) {
|
|
3177
|
+
var t = Pt(null), r = Jt(Xt);
|
|
3178
|
+
return Gt(function() {
|
|
3230
3179
|
return r.onChange(function(i) {
|
|
3231
3180
|
if (t.current) {
|
|
3232
3181
|
var n = 0, a = 0;
|
|
3233
3182
|
t.current.style.transform = r.handleTransformStyles(n, a, 1 / i.instance.transformState.scale);
|
|
3234
3183
|
}
|
|
3235
3184
|
});
|
|
3236
|
-
}, [r]),
|
|
3185
|
+
}, [r]), Re.createElement("div", Te({}, e, { ref: Aa([t, o]) }));
|
|
3237
3186
|
});
|
|
3238
|
-
function
|
|
3187
|
+
function Qa(e, o) {
|
|
3239
3188
|
o === void 0 && (o = {});
|
|
3240
3189
|
var t = o.insertAt;
|
|
3241
3190
|
if (!(!e || typeof document > "u")) {
|
|
@@ -3243,7 +3192,7 @@ function ss(e, o) {
|
|
|
3243
3192
|
i.type = "text/css", t === "top" && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e));
|
|
3244
3193
|
}
|
|
3245
3194
|
}
|
|
3246
|
-
var
|
|
3195
|
+
var Ga = `.transform-component-module_wrapper__SPB86 {
|
|
3247
3196
|
position: relative;
|
|
3248
3197
|
width: -moz-fit-content;
|
|
3249
3198
|
width: fit-content;
|
|
@@ -3274,58 +3223,58 @@ var ls = `.transform-component-module_wrapper__SPB86 {
|
|
|
3274
3223
|
pointer-events: none;
|
|
3275
3224
|
}
|
|
3276
3225
|
`, Qo = { wrapper: "transform-component-module_wrapper__SPB86", content: "transform-component-module_content__FBWxo" };
|
|
3277
|
-
|
|
3278
|
-
var
|
|
3279
|
-
var o = e.children, t = e.wrapperClass, r = t === void 0 ? "" : t, i = e.contentClass, n = i === void 0 ? "" : i, a = e.wrapperStyle, s = e.contentStyle, l = e.wrapperProps, d = l === void 0 ? {} : l,
|
|
3280
|
-
return
|
|
3226
|
+
Qa(Ga);
|
|
3227
|
+
var Ys = function(e) {
|
|
3228
|
+
var o = e.children, t = e.wrapperClass, r = t === void 0 ? "" : t, i = e.contentClass, n = i === void 0 ? "" : i, a = e.wrapperStyle, s = e.contentStyle, l = e.wrapperProps, d = l === void 0 ? {} : l, u = e.contentProps, f = u === void 0 ? {} : u, c = Jt(Xt).init, v = Pt(null), h = Pt(null);
|
|
3229
|
+
return Gt(function() {
|
|
3281
3230
|
var m = v.current, g = h.current;
|
|
3282
3231
|
m !== null && g !== null && c && c(m, g);
|
|
3283
|
-
}, []),
|
|
3232
|
+
}, []), Re.createElement(
|
|
3284
3233
|
"div",
|
|
3285
3234
|
Te({}, d, { ref: v, className: "react-transform-wrapper ".concat(Qo.wrapper, " ").concat(r), style: a }),
|
|
3286
|
-
|
|
3235
|
+
Re.createElement("div", Te({}, f, { ref: h, className: "react-transform-component ".concat(Qo.content, " ").concat(n), style: s }), o)
|
|
3287
3236
|
);
|
|
3288
|
-
},
|
|
3289
|
-
var e =
|
|
3237
|
+
}, Ja = function() {
|
|
3238
|
+
var e = Jt(Xt);
|
|
3290
3239
|
if (!e)
|
|
3291
3240
|
throw new Error("Transform context must be placed inside TransformWrapper");
|
|
3292
3241
|
return e;
|
|
3293
|
-
},
|
|
3294
|
-
var e =
|
|
3242
|
+
}, Ia = function() {
|
|
3243
|
+
var e = Ja();
|
|
3295
3244
|
return Et(e);
|
|
3296
|
-
}, fo = {},
|
|
3245
|
+
}, fo = {}, es = Dt;
|
|
3297
3246
|
Object.defineProperty(fo, "__esModule", {
|
|
3298
3247
|
value: !0
|
|
3299
3248
|
});
|
|
3300
|
-
var
|
|
3249
|
+
var Ar = fo.default = void 0, ts = es(Rt()), os = At, rs = (0, ts.default)(/* @__PURE__ */ (0, os.jsx)("path", {
|
|
3301
3250
|
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
|
|
3302
3251
|
}), "Add");
|
|
3303
|
-
|
|
3304
|
-
var co = {},
|
|
3252
|
+
Ar = fo.default = rs;
|
|
3253
|
+
var co = {}, is = Dt;
|
|
3305
3254
|
Object.defineProperty(co, "__esModule", {
|
|
3306
3255
|
value: !0
|
|
3307
3256
|
});
|
|
3308
|
-
var
|
|
3257
|
+
var Rr = co.default = void 0, ns = is(Rt()), as = At, ss = (0, ns.default)(/* @__PURE__ */ (0, as.jsx)("path", {
|
|
3309
3258
|
d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
|
|
3310
3259
|
}), "Refresh");
|
|
3311
|
-
|
|
3312
|
-
var vo = {},
|
|
3260
|
+
Rr = co.default = ss;
|
|
3261
|
+
var vo = {}, ls = Dt;
|
|
3313
3262
|
Object.defineProperty(vo, "__esModule", {
|
|
3314
3263
|
value: !0
|
|
3315
3264
|
});
|
|
3316
|
-
var Dr = vo.default = void 0,
|
|
3265
|
+
var Dr = vo.default = void 0, ps = ls(Rt()), us = At, ds = (0, ps.default)(/* @__PURE__ */ (0, us.jsx)("path", {
|
|
3317
3266
|
d: "M19 13H5v-2h14v2z"
|
|
3318
3267
|
}), "Remove");
|
|
3319
|
-
Dr = vo.default =
|
|
3320
|
-
var mo = {},
|
|
3268
|
+
Dr = vo.default = ds;
|
|
3269
|
+
var mo = {}, fs = Dt;
|
|
3321
3270
|
Object.defineProperty(mo, "__esModule", {
|
|
3322
3271
|
value: !0
|
|
3323
3272
|
});
|
|
3324
|
-
var
|
|
3273
|
+
var xr = mo.default = void 0, cs = fs(Rt()), vs = At, ms = (0, cs.default)(/* @__PURE__ */ (0, vs.jsx)("path", {
|
|
3325
3274
|
d: "m4 7.59 5-5c.78-.78 2.05-.78 2.83 0L20.24 11h-2.83L10.4 4 5.41 9H8v2H2V5h2v2.59zM20 19h2v-6h-6v2h2.59l-4.99 5-7.01-7H3.76l8.41 8.41c.78.78 2.05.78 2.83 0l5-5V19z"
|
|
3326
3275
|
}), "ScreenRotationAlt");
|
|
3327
|
-
|
|
3328
|
-
const
|
|
3276
|
+
xr = mo.default = ms;
|
|
3277
|
+
const hs = {
|
|
3329
3278
|
position: "absolute",
|
|
3330
3279
|
zIndex: 1,
|
|
3331
3280
|
right: "2rem",
|
|
@@ -3344,7 +3293,7 @@ const As = {
|
|
|
3344
3293
|
"&:focus": {
|
|
3345
3294
|
outline: "none"
|
|
3346
3295
|
}
|
|
3347
|
-
},
|
|
3296
|
+
}, gs = {
|
|
3348
3297
|
...yt,
|
|
3349
3298
|
position: "absolute",
|
|
3350
3299
|
zIndex: 1,
|
|
@@ -3353,7 +3302,7 @@ const As = {
|
|
|
3353
3302
|
background: "#0F0E0E4D",
|
|
3354
3303
|
color: "white",
|
|
3355
3304
|
padding: "0.55rem"
|
|
3356
|
-
},
|
|
3305
|
+
}, _s = ({
|
|
3357
3306
|
controllerContainerProps: e,
|
|
3358
3307
|
zoomInButtonProps: o,
|
|
3359
3308
|
zoomOutButtonProps: t,
|
|
@@ -3362,8 +3311,8 @@ const As = {
|
|
|
3362
3311
|
handleRotate: n,
|
|
3363
3312
|
rotateButtonProps: a
|
|
3364
3313
|
}) => {
|
|
3365
|
-
const { zoomIn: s, zoomOut: l, resetTransform: d } =
|
|
3366
|
-
function
|
|
3314
|
+
const { zoomIn: s, zoomOut: l, resetTransform: d } = Ia();
|
|
3315
|
+
function u() {
|
|
3367
3316
|
s();
|
|
3368
3317
|
}
|
|
3369
3318
|
function f() {
|
|
@@ -3372,7 +3321,7 @@ const As = {
|
|
|
3372
3321
|
function c() {
|
|
3373
3322
|
d();
|
|
3374
3323
|
}
|
|
3375
|
-
return /* @__PURE__ */ wt(
|
|
3324
|
+
return /* @__PURE__ */ wt(Vr, { children: [
|
|
3376
3325
|
/* @__PURE__ */ _(ht, { title: "Rotate", placement: "left", children: /* @__PURE__ */ _(
|
|
3377
3326
|
ft,
|
|
3378
3327
|
{
|
|
@@ -3380,15 +3329,15 @@ const As = {
|
|
|
3380
3329
|
disableFocusRipple: !0,
|
|
3381
3330
|
"aria-label": "Rotate",
|
|
3382
3331
|
onClick: n,
|
|
3383
|
-
sx:
|
|
3332
|
+
sx: gs,
|
|
3384
3333
|
...a,
|
|
3385
|
-
children: /* @__PURE__ */ _(
|
|
3334
|
+
children: /* @__PURE__ */ _(xr, {})
|
|
3386
3335
|
}
|
|
3387
3336
|
) }),
|
|
3388
3337
|
/* @__PURE__ */ wt(
|
|
3389
|
-
|
|
3338
|
+
ti,
|
|
3390
3339
|
{
|
|
3391
|
-
sx:
|
|
3340
|
+
sx: hs,
|
|
3392
3341
|
...e,
|
|
3393
3342
|
children: [
|
|
3394
3343
|
/* @__PURE__ */ _(ht, { title: "Zoom In", placement: "left", children: /* @__PURE__ */ _(
|
|
@@ -3397,10 +3346,10 @@ const As = {
|
|
|
3397
3346
|
disableRipple: !0,
|
|
3398
3347
|
disableFocusRipple: !0,
|
|
3399
3348
|
"aria-label": "Zoom In",
|
|
3400
|
-
onClick:
|
|
3349
|
+
onClick: u,
|
|
3401
3350
|
sx: yt,
|
|
3402
3351
|
...o,
|
|
3403
|
-
children: /* @__PURE__ */ _(
|
|
3352
|
+
children: /* @__PURE__ */ _(Ar, {})
|
|
3404
3353
|
}
|
|
3405
3354
|
) }),
|
|
3406
3355
|
/* @__PURE__ */ _(Lo, { sx: Go, ...i }),
|
|
@@ -3426,7 +3375,7 @@ const As = {
|
|
|
3426
3375
|
onClick: c,
|
|
3427
3376
|
sx: yt,
|
|
3428
3377
|
...r,
|
|
3429
|
-
children: /* @__PURE__ */ _(
|
|
3378
|
+
children: /* @__PURE__ */ _(Rr, {})
|
|
3430
3379
|
}
|
|
3431
3380
|
) })
|
|
3432
3381
|
]
|
|
@@ -3435,8 +3384,7 @@ const As = {
|
|
|
3435
3384
|
] });
|
|
3436
3385
|
};
|
|
3437
3386
|
export {
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
js as a
|
|
3387
|
+
Ms as T,
|
|
3388
|
+
_s as Z,
|
|
3389
|
+
Ys as a
|
|
3442
3390
|
};
|