@hybridcore/ui 1.6.13 → 1.6.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/AccordionSummary-DUtr16g6.js +781 -0
  2. package/dist/Add-Bk8R160M.js +403 -0
  3. package/dist/Button-Cem3nbwc.js +357 -0
  4. package/dist/ButtonBase-DObmf4Q_.js +886 -0
  5. package/dist/Delete-CVJ6FeDn.js +203 -0
  6. package/dist/FormGroup-BRj1o7-E.js +89 -0
  7. package/dist/InputLabel-CjD30ZHz.js +341 -0
  8. package/dist/MenuItem-BKvRGLvM.js +233 -0
  9. package/dist/Modal-BVYydOr5.js +1156 -0
  10. package/dist/Paper-B1HV8GyO.js +582 -0
  11. package/dist/Select-Bfhvigsx.js +3914 -0
  12. package/dist/Source-BSZST_GH.js +4410 -0
  13. package/dist/SwitchBase-BEK49kdS.js +235 -0
  14. package/dist/Text-ChJRuaD8.js +2197 -0
  15. package/dist/TextField-Ca9ykixI.js +696 -0
  16. package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
  17. package/dist/Typography-D3X-Y5fh.js +178 -0
  18. package/dist/Vector-BmuhQO4p.js +3606 -0
  19. package/dist/Vector-DfTqQEln.js +1735 -0
  20. package/dist/WKT-2wsDT-nq.js +2310 -0
  21. package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
  22. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  23. package/dist/assets/index.css +1 -1
  24. package/dist/assets/index2.css +1 -1
  25. package/dist/assets/index3.css +1 -0
  26. package/dist/assets/index4.css +1 -0
  27. package/dist/clsx-OuTLNxxd.js +16 -0
  28. package/dist/components/button/styled.js +1 -1
  29. package/dist/components/charts/_common/format.js +126 -82
  30. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
  31. package/dist/components/collapsible-card/index.js +30 -21
  32. package/dist/components/collapsible-card/styled.js +14 -16
  33. package/dist/components/color-picker/index.js +3358 -2228
  34. package/dist/components/color-picker/styled.js +7 -87
  35. package/dist/components/confirm/dialog.js +7 -89
  36. package/dist/components/confirm/index.js +1 -1
  37. package/dist/components/data-map/index.js +1 -1
  38. package/dist/components/data-map/logic.js +20 -20
  39. package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
  40. package/dist/components/date-range-picker/index.js +454 -466
  41. package/dist/components/document-viewer/components/viewer/index.js +1 -1
  42. package/dist/components/duration-select/index.js +10 -10
  43. package/dist/components/duration-select/styled.js +1 -1
  44. package/dist/components/geometry-picker/coordinate/index.js +14 -14
  45. package/dist/components/geometry-picker/edit/index.js +1 -1
  46. package/dist/components/geometry-picker/geometry/index.js +1 -1
  47. package/dist/components/geometry-picker/kml/index.js +11 -11
  48. package/dist/components/geometry-picker/map/logic.js +3656 -145
  49. package/dist/components/geometry-picker/map/style.js +17 -18
  50. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
  51. package/dist/components/heat-map/index.js +1 -1
  52. package/dist/components/heat-map/logic.js +1924 -77
  53. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
  54. package/dist/components/instance-hierarchy-table/styled.js +16 -18
  55. package/dist/components/map/helpers/mapbox.js +15 -17
  56. package/dist/components/map/helpers/ol.js +27 -386
  57. package/dist/components/map/index.js +10 -11
  58. package/dist/components/map/logic.js +22 -22
  59. package/dist/components/map/styled.js +27 -31
  60. package/dist/components/phone-input/index.js +9 -10
  61. package/dist/components/property-mapping/index.js +1 -1
  62. package/dist/components/prr-map/index.js +1 -1
  63. package/dist/components/prr-map/logic.js +26 -27
  64. package/dist/components/raster-grid-map/index.js +1 -1
  65. package/dist/components/raster-grid-map/logic.js +57 -60
  66. package/dist/components/sortable-list/index.js +1264 -1091
  67. package/dist/components/template-form/components/property-list/index.js +32 -36
  68. package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
  69. package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
  70. package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
  71. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
  72. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
  73. package/dist/components/tree-select/index.js +16 -16
  74. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  75. package/dist/createSvgIcon-BghzB2Y9.js +93 -0
  76. package/dist/createSvgIcon-D7U1nd99.js +185 -0
  77. package/dist/debounce-46wSf_lW.js +15 -0
  78. package/dist/dialog-BtJhjyF5.js +664 -0
  79. package/dist/extends-C3382pL0.js +22 -0
  80. package/dist/formControlState-vgaj2ksH.js +10 -0
  81. package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
  82. package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
  83. package/dist/index-DH6qsPBn.js +153 -0
  84. package/dist/index.esm-DAf19hyR.js +318 -0
  85. package/dist/math-Bvt2Ubuz.js +704 -0
  86. package/dist/ol-yOE-NV0X.js +7465 -0
  87. package/dist/ownerWindow-wg6foiOE.js +10 -0
  88. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  89. package/dist/styled-DD4BkuVf.js +350 -0
  90. package/dist/useControlled-BYdyS7Pn.js +31 -0
  91. package/dist/useFormControl-CatNKXAi.js +10 -0
  92. package/dist/useId-BW-oWmul.js +19 -0
  93. package/dist/useSlot-u4t0X96G.js +42 -0
  94. package/package.json +1 -1
  95. package/dist/index.esm-UfGMjYOL.js +0 -197
@@ -0,0 +1,582 @@
1
+ import { _ as M, a as d } from "./extends-C3382pL0.js";
2
+ import { _ as V, d as w, c as L } from "./TransitionGroupContext-Ja2CgIob.js";
3
+ import { P as a } from "./index-CblbdqjE.js";
4
+ import * as $ from "react";
5
+ import y from "react";
6
+ import N from "react-dom";
7
+ import { c as O } from "./clsx-OuTLNxxd.js";
8
+ import { m as j, T as H, g as A, a as F, s as G, d as P, u as W, c as X } from "./generateUtilityClasses-Cc-owZ4J.js";
9
+ import { useTheme as Z } from "@mui/system";
10
+ import { jsx as B } from "react/jsx-runtime";
11
+ const k = {
12
+ disabled: !1
13
+ };
14
+ var z = process.env.NODE_ENV !== "production" ? a.oneOfType([a.number, a.shape({
15
+ enter: a.number,
16
+ exit: a.number,
17
+ appear: a.number
18
+ }).isRequired]) : null;
19
+ process.env.NODE_ENV !== "production" && a.oneOfType([a.string, a.shape({
20
+ enter: a.string,
21
+ exit: a.string,
22
+ active: a.string
23
+ }), a.shape({
24
+ enter: a.string,
25
+ enterDone: a.string,
26
+ enterActive: a.string,
27
+ exit: a.string,
28
+ exitDone: a.string,
29
+ exitActive: a.string
30
+ })]);
31
+ var J = function(o) {
32
+ return o.scrollTop;
33
+ }, b = "unmounted", m = "exited", E = "entering", g = "entered", S = "exiting", p = /* @__PURE__ */ function(e) {
34
+ V(o, e);
35
+ function o(r, n) {
36
+ var t;
37
+ t = e.call(this, r, n) || this;
38
+ var s = n, l = s && !s.isMounting ? r.enter : r.appear, u;
39
+ return t.appearStatus = null, r.in ? l ? (u = m, t.appearStatus = E) : u = g : r.unmountOnExit || r.mountOnEnter ? u = b : u = m, t.state = {
40
+ status: u
41
+ }, t.nextCallback = null, t;
42
+ }
43
+ o.getDerivedStateFromProps = function(n, t) {
44
+ var s = n.in;
45
+ return s && t.status === b ? {
46
+ status: m
47
+ } : null;
48
+ };
49
+ var i = o.prototype;
50
+ return i.componentDidMount = function() {
51
+ this.updateStatus(!0, this.appearStatus);
52
+ }, i.componentDidUpdate = function(n) {
53
+ var t = null;
54
+ if (n !== this.props) {
55
+ var s = this.state.status;
56
+ this.props.in ? s !== E && s !== g && (t = E) : (s === E || s === g) && (t = S);
57
+ }
58
+ this.updateStatus(!1, t);
59
+ }, i.componentWillUnmount = function() {
60
+ this.cancelNextCallback();
61
+ }, i.getTimeouts = function() {
62
+ var n = this.props.timeout, t, s, l;
63
+ return t = s = l = n, n != null && typeof n != "number" && (t = n.exit, s = n.enter, l = n.appear !== void 0 ? n.appear : s), {
64
+ exit: t,
65
+ enter: s,
66
+ appear: l
67
+ };
68
+ }, i.updateStatus = function(n, t) {
69
+ if (n === void 0 && (n = !1), t !== null)
70
+ if (this.cancelNextCallback(), t === E) {
71
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
72
+ var s = this.props.nodeRef ? this.props.nodeRef.current : N.findDOMNode(this);
73
+ s && J(s);
74
+ }
75
+ this.performEnter(n);
76
+ } else
77
+ this.performExit();
78
+ else this.props.unmountOnExit && this.state.status === m && this.setState({
79
+ status: b
80
+ });
81
+ }, i.performEnter = function(n) {
82
+ var t = this, s = this.props.enter, l = this.context ? this.context.isMounting : n, u = this.props.nodeRef ? [l] : [N.findDOMNode(this), l], c = u[0], f = u[1], v = this.getTimeouts(), h = l ? v.appear : v.enter;
83
+ if (!n && !s || k.disabled) {
84
+ this.safeSetState({
85
+ status: g
86
+ }, function() {
87
+ t.props.onEntered(c);
88
+ });
89
+ return;
90
+ }
91
+ this.props.onEnter(c, f), this.safeSetState({
92
+ status: E
93
+ }, function() {
94
+ t.props.onEntering(c, f), t.onTransitionEnd(h, function() {
95
+ t.safeSetState({
96
+ status: g
97
+ }, function() {
98
+ t.props.onEntered(c, f);
99
+ });
100
+ });
101
+ });
102
+ }, i.performExit = function() {
103
+ var n = this, t = this.props.exit, s = this.getTimeouts(), l = this.props.nodeRef ? void 0 : N.findDOMNode(this);
104
+ if (!t || k.disabled) {
105
+ this.safeSetState({
106
+ status: m
107
+ }, function() {
108
+ n.props.onExited(l);
109
+ });
110
+ return;
111
+ }
112
+ this.props.onExit(l), this.safeSetState({
113
+ status: S
114
+ }, function() {
115
+ n.props.onExiting(l), n.onTransitionEnd(s.exit, function() {
116
+ n.safeSetState({
117
+ status: m
118
+ }, function() {
119
+ n.props.onExited(l);
120
+ });
121
+ });
122
+ });
123
+ }, i.cancelNextCallback = function() {
124
+ this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
125
+ }, i.safeSetState = function(n, t) {
126
+ t = this.setNextCallback(t), this.setState(n, t);
127
+ }, i.setNextCallback = function(n) {
128
+ var t = this, s = !0;
129
+ return this.nextCallback = function(l) {
130
+ s && (s = !1, t.nextCallback = null, n(l));
131
+ }, this.nextCallback.cancel = function() {
132
+ s = !1;
133
+ }, this.nextCallback;
134
+ }, i.onTransitionEnd = function(n, t) {
135
+ this.setNextCallback(t);
136
+ var s = this.props.nodeRef ? this.props.nodeRef.current : N.findDOMNode(this), l = n == null && !this.props.addEndListener;
137
+ if (!s || l) {
138
+ setTimeout(this.nextCallback, 0);
139
+ return;
140
+ }
141
+ if (this.props.addEndListener) {
142
+ var u = this.props.nodeRef ? [this.nextCallback] : [s, this.nextCallback], c = u[0], f = u[1];
143
+ this.props.addEndListener(c, f);
144
+ }
145
+ n != null && setTimeout(this.nextCallback, n);
146
+ }, i.render = function() {
147
+ var n = this.state.status;
148
+ if (n === b)
149
+ return null;
150
+ var t = this.props, s = t.children;
151
+ t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
152
+ var l = M(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
153
+ return (
154
+ // allows for nested Transitions
155
+ /* @__PURE__ */ y.createElement(w.Provider, {
156
+ value: null
157
+ }, typeof s == "function" ? s(n, l) : y.cloneElement(y.Children.only(s), l))
158
+ );
159
+ }, o;
160
+ }(y.Component);
161
+ p.contextType = w;
162
+ p.propTypes = process.env.NODE_ENV !== "production" ? {
163
+ /**
164
+ * A React reference to DOM element that need to transition:
165
+ * https://stackoverflow.com/a/51127130/4671932
166
+ *
167
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
168
+ * (e.g. `onEnter`) because user already has direct access to the node.
169
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
170
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
171
+ * (see
172
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
173
+ */
174
+ nodeRef: a.shape({
175
+ current: typeof Element > "u" ? a.any : function(e, o, i, r, n, t) {
176
+ var s = e[o];
177
+ return a.instanceOf(s && "ownerDocument" in s ? s.ownerDocument.defaultView.Element : Element)(e, o, i, r, n, t);
178
+ }
179
+ }),
180
+ /**
181
+ * A `function` child can be used instead of a React element. This function is
182
+ * called with the current transition status (`'entering'`, `'entered'`,
183
+ * `'exiting'`, `'exited'`), which can be used to apply context
184
+ * specific props to a component.
185
+ *
186
+ * ```jsx
187
+ * <Transition in={this.state.in} timeout={150}>
188
+ * {state => (
189
+ * <MyComponent className={`fade fade-${state}`} />
190
+ * )}
191
+ * </Transition>
192
+ * ```
193
+ */
194
+ children: a.oneOfType([a.func.isRequired, a.element.isRequired]).isRequired,
195
+ /**
196
+ * Show the component; triggers the enter or exit states
197
+ */
198
+ in: a.bool,
199
+ /**
200
+ * By default the child component is mounted immediately along with
201
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
202
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
203
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
204
+ */
205
+ mountOnEnter: a.bool,
206
+ /**
207
+ * By default the child component stays mounted after it reaches the `'exited'` state.
208
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
209
+ */
210
+ unmountOnExit: a.bool,
211
+ /**
212
+ * By default the child component does not perform the enter transition when
213
+ * it first mounts, regardless of the value of `in`. If you want this
214
+ * behavior, set both `appear` and `in` to `true`.
215
+ *
216
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
217
+ * > only adds an additional enter transition. However, in the
218
+ * > `<CSSTransition>` component that first enter transition does result in
219
+ * > additional `.appear-*` classes, that way you can choose to style it
220
+ * > differently.
221
+ */
222
+ appear: a.bool,
223
+ /**
224
+ * Enable or disable enter transitions.
225
+ */
226
+ enter: a.bool,
227
+ /**
228
+ * Enable or disable exit transitions.
229
+ */
230
+ exit: a.bool,
231
+ /**
232
+ * The duration of the transition, in milliseconds.
233
+ * Required unless `addEndListener` is provided.
234
+ *
235
+ * You may specify a single timeout for all transitions:
236
+ *
237
+ * ```jsx
238
+ * timeout={500}
239
+ * ```
240
+ *
241
+ * or individually:
242
+ *
243
+ * ```jsx
244
+ * timeout={{
245
+ * appear: 500,
246
+ * enter: 300,
247
+ * exit: 500,
248
+ * }}
249
+ * ```
250
+ *
251
+ * - `appear` defaults to the value of `enter`
252
+ * - `enter` defaults to `0`
253
+ * - `exit` defaults to `0`
254
+ *
255
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
256
+ */
257
+ timeout: function(o) {
258
+ var i = z;
259
+ o.addEndListener || (i = i.isRequired);
260
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
261
+ n[t - 1] = arguments[t];
262
+ return i.apply(void 0, [o].concat(n));
263
+ },
264
+ /**
265
+ * Add a custom transition end trigger. Called with the transitioning
266
+ * DOM node and a `done` callback. Allows for more fine grained transition end
267
+ * logic. Timeouts are still used as a fallback if provided.
268
+ *
269
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
270
+ *
271
+ * ```jsx
272
+ * addEndListener={(node, done) => {
273
+ * // use the css transitionend event to mark the finish of a transition
274
+ * node.addEventListener('transitionend', done, false);
275
+ * }}
276
+ * ```
277
+ */
278
+ addEndListener: a.func,
279
+ /**
280
+ * Callback fired before the "entering" status is applied. An extra parameter
281
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
282
+ *
283
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
284
+ *
285
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
286
+ */
287
+ onEnter: a.func,
288
+ /**
289
+ * Callback fired after the "entering" status is applied. An extra parameter
290
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
291
+ *
292
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
293
+ *
294
+ * @type Function(node: HtmlElement, isAppearing: bool)
295
+ */
296
+ onEntering: a.func,
297
+ /**
298
+ * Callback fired after the "entered" status is applied. An extra parameter
299
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
300
+ *
301
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
302
+ *
303
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
304
+ */
305
+ onEntered: a.func,
306
+ /**
307
+ * Callback fired before the "exiting" status is applied.
308
+ *
309
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
310
+ *
311
+ * @type Function(node: HtmlElement) -> void
312
+ */
313
+ onExit: a.func,
314
+ /**
315
+ * Callback fired after the "exiting" status is applied.
316
+ *
317
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
318
+ *
319
+ * @type Function(node: HtmlElement) -> void
320
+ */
321
+ onExiting: a.func,
322
+ /**
323
+ * Callback fired after the "exited" status is applied.
324
+ *
325
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
326
+ *
327
+ * @type Function(node: HtmlElement) -> void
328
+ */
329
+ onExited: a.func
330
+ } : {};
331
+ function x() {
332
+ }
333
+ p.defaultProps = {
334
+ in: !1,
335
+ mountOnEnter: !1,
336
+ unmountOnExit: !1,
337
+ appear: !1,
338
+ enter: !0,
339
+ exit: !0,
340
+ onEnter: x,
341
+ onEntering: x,
342
+ onEntered: x,
343
+ onExit: x,
344
+ onExiting: x,
345
+ onExited: x
346
+ };
347
+ p.UNMOUNTED = b;
348
+ p.EXITED = m;
349
+ p.ENTERING = E;
350
+ p.ENTERED = g;
351
+ p.EXITING = S;
352
+ function K(e) {
353
+ const o = typeof e;
354
+ switch (o) {
355
+ case "number":
356
+ return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
357
+ case "object":
358
+ return e === null ? "null" : e.constructor.name;
359
+ default:
360
+ return o;
361
+ }
362
+ }
363
+ function Q(e) {
364
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
365
+ }
366
+ const Y = Number.isInteger || Q;
367
+ function q(e, o, i, r) {
368
+ const n = e[o];
369
+ if (n == null || !Y(n)) {
370
+ const t = K(n);
371
+ return new RangeError(`Invalid ${r} \`${o}\` of type \`${t}\` supplied to \`${i}\`, expected \`integer\`.`);
372
+ }
373
+ return null;
374
+ }
375
+ function U(e, o, ...i) {
376
+ return e[o] === void 0 ? null : q(e, o, ...i);
377
+ }
378
+ function D() {
379
+ return null;
380
+ }
381
+ U.isRequired = q;
382
+ D.isRequired = D;
383
+ const ee = process.env.NODE_ENV === "production" ? D : U;
384
+ function te(e) {
385
+ return typeof e == "string";
386
+ }
387
+ function xe(e, o, i) {
388
+ return e === void 0 || te(e) ? o : d({}, o, {
389
+ ownerState: d({}, o.ownerState, i)
390
+ });
391
+ }
392
+ function ne(e, o = []) {
393
+ if (e === void 0)
394
+ return {};
395
+ const i = {};
396
+ return Object.keys(e).filter((r) => r.match(/^on[A-Z]/) && typeof e[r] == "function" && !o.includes(r)).forEach((r) => {
397
+ i[r] = e[r];
398
+ }), i;
399
+ }
400
+ function _(e) {
401
+ if (e === void 0)
402
+ return {};
403
+ const o = {};
404
+ return Object.keys(e).filter((i) => !(i.match(/^on[A-Z]/) && typeof e[i] == "function")).forEach((i) => {
405
+ o[i] = e[i];
406
+ }), o;
407
+ }
408
+ function ge(e) {
409
+ const {
410
+ getSlotProps: o,
411
+ additionalProps: i,
412
+ externalSlotProps: r,
413
+ externalForwardedProps: n,
414
+ className: t
415
+ } = e;
416
+ if (!o) {
417
+ const R = O(i == null ? void 0 : i.className, t, n == null ? void 0 : n.className, r == null ? void 0 : r.className), C = d({}, i == null ? void 0 : i.style, n == null ? void 0 : n.style, r == null ? void 0 : r.style), T = d({}, i, n, r);
418
+ return R.length > 0 && (T.className = R), Object.keys(C).length > 0 && (T.style = C), {
419
+ props: T,
420
+ internalRef: void 0
421
+ };
422
+ }
423
+ const s = ne(d({}, n, r)), l = _(r), u = _(n), c = o(s), f = O(c == null ? void 0 : c.className, i == null ? void 0 : i.className, t, n == null ? void 0 : n.className, r == null ? void 0 : r.className), v = d({}, c == null ? void 0 : c.style, i == null ? void 0 : i.style, n == null ? void 0 : n.style, r == null ? void 0 : r.style), h = d({}, c, i, u, l);
424
+ return f.length > 0 && (h.className = f), Object.keys(v).length > 0 && (h.style = v), {
425
+ props: h,
426
+ internalRef: c.ref
427
+ };
428
+ }
429
+ function be(e, o, i) {
430
+ return typeof e == "function" ? e(o, i) : e;
431
+ }
432
+ const ye = (e) => e.scrollTop;
433
+ function Ne(e, o) {
434
+ var i, r;
435
+ const {
436
+ timeout: n,
437
+ easing: t,
438
+ style: s = {}
439
+ } = e;
440
+ return {
441
+ duration: (i = s.transitionDuration) != null ? i : typeof n == "number" ? n : n[o.mode] || 0,
442
+ easing: (r = s.transitionTimingFunction) != null ? r : typeof t == "object" ? t[o.mode] : t,
443
+ delay: s.transitionDelay
444
+ };
445
+ }
446
+ function ie() {
447
+ const e = Z(j);
448
+ return process.env.NODE_ENV !== "production" && $.useDebugValue(e), e[H] || e;
449
+ }
450
+ const I = (e) => {
451
+ let o;
452
+ return e < 1 ? o = 5.11916 * e ** 2 : o = 4.5 * Math.log(e + 1) + 2, (o / 100).toFixed(2);
453
+ };
454
+ function oe(e) {
455
+ return F("MuiPaper", e);
456
+ }
457
+ A("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
458
+ const re = ["className", "component", "elevation", "square", "variant"], ae = (e) => {
459
+ const {
460
+ square: o,
461
+ elevation: i,
462
+ variant: r,
463
+ classes: n
464
+ } = e, t = {
465
+ root: ["root", r, !o && "rounded", r === "elevation" && `elevation${i}`]
466
+ };
467
+ return X(t, oe, n);
468
+ }, se = G("div", {
469
+ name: "MuiPaper",
470
+ slot: "Root",
471
+ overridesResolver: (e, o) => {
472
+ const {
473
+ ownerState: i
474
+ } = e;
475
+ return [o.root, o[i.variant], !i.square && o.rounded, i.variant === "elevation" && o[`elevation${i.elevation}`]];
476
+ }
477
+ })(({
478
+ theme: e,
479
+ ownerState: o
480
+ }) => {
481
+ var i;
482
+ return d({
483
+ backgroundColor: (e.vars || e).palette.background.paper,
484
+ color: (e.vars || e).palette.text.primary,
485
+ transition: e.transitions.create("box-shadow")
486
+ }, !o.square && {
487
+ borderRadius: e.shape.borderRadius
488
+ }, o.variant === "outlined" && {
489
+ border: `1px solid ${(e.vars || e).palette.divider}`
490
+ }, o.variant === "elevation" && d({
491
+ boxShadow: (e.vars || e).shadows[o.elevation]
492
+ }, !e.vars && e.palette.mode === "dark" && {
493
+ backgroundImage: `linear-gradient(${P("#fff", I(o.elevation))}, ${P("#fff", I(o.elevation))})`
494
+ }, e.vars && {
495
+ backgroundImage: (i = e.vars.overlays) == null ? void 0 : i[o.elevation]
496
+ }));
497
+ }), le = /* @__PURE__ */ $.forwardRef(function(o, i) {
498
+ const r = W({
499
+ props: o,
500
+ name: "MuiPaper"
501
+ }), {
502
+ className: n,
503
+ component: t = "div",
504
+ elevation: s = 1,
505
+ square: l = !1,
506
+ variant: u = "elevation"
507
+ } = r, c = M(r, re), f = d({}, r, {
508
+ component: t,
509
+ elevation: s,
510
+ square: l,
511
+ variant: u
512
+ }), v = ae(f);
513
+ return process.env.NODE_ENV !== "production" && ie().shadows[s] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
514
+ `)), /* @__PURE__ */ B(se, d({
515
+ as: t,
516
+ ownerState: f,
517
+ className: O(v.root, n),
518
+ ref: i
519
+ }, c));
520
+ });
521
+ process.env.NODE_ENV !== "production" && (le.propTypes = {
522
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
523
+ // │ These PropTypes are generated from the TypeScript type definitions. │
524
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
525
+ // └─────────────────────────────────────────────────────────────────────┘
526
+ /**
527
+ * The content of the component.
528
+ */
529
+ children: a.node,
530
+ /**
531
+ * Override or extend the styles applied to the component.
532
+ */
533
+ classes: a.object,
534
+ /**
535
+ * @ignore
536
+ */
537
+ className: a.string,
538
+ /**
539
+ * The component used for the root node.
540
+ * Either a string to use a HTML element or a component.
541
+ */
542
+ component: a.elementType,
543
+ /**
544
+ * Shadow depth, corresponds to `dp` in the spec.
545
+ * It accepts values between 0 and 24 inclusive.
546
+ * @default 1
547
+ */
548
+ elevation: L(ee, (e) => {
549
+ const {
550
+ elevation: o,
551
+ variant: i
552
+ } = e;
553
+ return o > 0 && i === "outlined" ? new Error(`MUI: Combining \`elevation={${o}}\` with \`variant="${i}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
554
+ }),
555
+ /**
556
+ * If `true`, rounded corners are disabled.
557
+ * @default false
558
+ */
559
+ square: a.bool,
560
+ /**
561
+ * The system prop that allows defining system overrides as well as additional CSS styles.
562
+ */
563
+ sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
564
+ /**
565
+ * The variant to use.
566
+ * @default 'elevation'
567
+ */
568
+ variant: a.oneOfType([a.oneOf(["elevation", "outlined"]), a.string])
569
+ });
570
+ export {
571
+ le as P,
572
+ p as T,
573
+ xe as a,
574
+ ye as b,
575
+ ee as c,
576
+ ne as e,
577
+ Ne as g,
578
+ te as i,
579
+ ge as m,
580
+ be as r,
581
+ ie as u
582
+ };