@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,664 @@
1
+ import { jsx as l, jsxs as B } from "react/jsx-runtime";
2
+ import { confirmable as to } from "react-confirm";
3
+ import { IconButton as ao } from "@mui/material";
4
+ import { Close as io } from "@mui/icons-material";
5
+ import { a as r, _ as h } from "./extends-C3382pL0.js";
6
+ import * as d from "react";
7
+ import { P as o } from "./index-CblbdqjE.js";
8
+ import { c as g } from "./clsx-OuTLNxxd.js";
9
+ import { g as y, a as C, s as m, b, u as D, c as v } from "./generateUtilityClasses-Cc-owZ4J.js";
10
+ import { P as _, u as no } from "./Paper-B1HV8GyO.js";
11
+ import { B as ro, M as so, F as lo } from "./Modal-BVYydOr5.js";
12
+ import { u as co } from "./useId-BW-oWmul.js";
13
+ import { T as po } from "./Typography-D3X-Y5fh.js";
14
+ import { B as E } from "./Button-Cem3nbwc.js";
15
+ function uo(e) {
16
+ return C("MuiDialog", e);
17
+ }
18
+ const N = y("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), P = /* @__PURE__ */ d.createContext({});
19
+ process.env.NODE_ENV !== "production" && (P.displayName = "DialogContext");
20
+ const mo = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], fo = m(ro, {
21
+ name: "MuiDialog",
22
+ slot: "Backdrop",
23
+ overrides: (e, t) => t.backdrop
24
+ })({
25
+ // Improve scrollable dialog support.
26
+ zIndex: -1
27
+ }), go = (e) => {
28
+ const {
29
+ classes: t,
30
+ scroll: a,
31
+ maxWidth: i,
32
+ fullWidth: n,
33
+ fullScreen: s
34
+ } = e, c = {
35
+ root: ["root"],
36
+ container: ["container", `scroll${b(a)}`],
37
+ paper: ["paper", `paperScroll${b(a)}`, `paperWidth${b(String(i))}`, n && "paperFullWidth", s && "paperFullScreen"]
38
+ };
39
+ return v(c, uo, t);
40
+ }, bo = m(so, {
41
+ name: "MuiDialog",
42
+ slot: "Root",
43
+ overridesResolver: (e, t) => t.root
44
+ })({
45
+ "@media print": {
46
+ // Use !important to override the Modal inline-style.
47
+ position: "absolute !important"
48
+ }
49
+ }), xo = m("div", {
50
+ name: "MuiDialog",
51
+ slot: "Container",
52
+ overridesResolver: (e, t) => {
53
+ const {
54
+ ownerState: a
55
+ } = e;
56
+ return [t.container, t[`scroll${b(a.scroll)}`]];
57
+ }
58
+ })(({
59
+ ownerState: e
60
+ }) => r({
61
+ height: "100%",
62
+ "@media print": {
63
+ height: "auto"
64
+ },
65
+ // We disable the focus ring for mouse, touch and keyboard users.
66
+ outline: 0
67
+ }, e.scroll === "paper" && {
68
+ display: "flex",
69
+ justifyContent: "center",
70
+ alignItems: "center"
71
+ }, e.scroll === "body" && {
72
+ overflowY: "auto",
73
+ overflowX: "hidden",
74
+ textAlign: "center",
75
+ "&::after": {
76
+ content: '""',
77
+ display: "inline-block",
78
+ verticalAlign: "middle",
79
+ height: "100%",
80
+ width: "0"
81
+ }
82
+ })), ho = m(_, {
83
+ name: "MuiDialog",
84
+ slot: "Paper",
85
+ overridesResolver: (e, t) => {
86
+ const {
87
+ ownerState: a
88
+ } = e;
89
+ return [t.paper, t[`scrollPaper${b(a.scroll)}`], t[`paperWidth${b(String(a.maxWidth))}`], a.fullWidth && t.paperFullWidth, a.fullScreen && t.paperFullScreen];
90
+ }
91
+ })(({
92
+ theme: e,
93
+ ownerState: t
94
+ }) => r({
95
+ margin: 32,
96
+ position: "relative",
97
+ overflowY: "auto",
98
+ // Fix IE11 issue, to remove at some point.
99
+ "@media print": {
100
+ overflowY: "visible",
101
+ boxShadow: "none"
102
+ }
103
+ }, t.scroll === "paper" && {
104
+ display: "flex",
105
+ flexDirection: "column",
106
+ maxHeight: "calc(100% - 64px)"
107
+ }, t.scroll === "body" && {
108
+ display: "inline-block",
109
+ verticalAlign: "middle",
110
+ textAlign: "left"
111
+ // 'initial' doesn't work on IE11
112
+ }, !t.maxWidth && {
113
+ maxWidth: "calc(100% - 64px)"
114
+ }, t.maxWidth === "xs" && {
115
+ maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
116
+ [`&.${N.paperScrollBody}`]: {
117
+ [e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: {
118
+ maxWidth: "calc(100% - 64px)"
119
+ }
120
+ }
121
+ }, t.maxWidth && t.maxWidth !== "xs" && {
122
+ maxWidth: `${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,
123
+ [`&.${N.paperScrollBody}`]: {
124
+ [e.breakpoints.down(e.breakpoints.values[t.maxWidth] + 32 * 2)]: {
125
+ maxWidth: "calc(100% - 64px)"
126
+ }
127
+ }
128
+ }, t.fullWidth && {
129
+ width: "calc(100% - 64px)"
130
+ }, t.fullScreen && {
131
+ margin: 0,
132
+ width: "100%",
133
+ maxWidth: "100%",
134
+ height: "100%",
135
+ maxHeight: "none",
136
+ borderRadius: 0,
137
+ [`&.${N.paperScrollBody}`]: {
138
+ margin: 0,
139
+ maxWidth: "100%"
140
+ }
141
+ })), F = /* @__PURE__ */ d.forwardRef(function(t, a) {
142
+ const i = D({
143
+ props: t,
144
+ name: "MuiDialog"
145
+ }), n = no(), s = {
146
+ enter: n.transitions.duration.enteringScreen,
147
+ exit: n.transitions.duration.leavingScreen
148
+ }, {
149
+ "aria-describedby": c,
150
+ "aria-labelledby": p,
151
+ BackdropComponent: u,
152
+ BackdropProps: T,
153
+ children: K,
154
+ className: L,
155
+ disableEscapeKeyDown: w = !1,
156
+ fullScreen: Y = !1,
157
+ fullWidth: z = !1,
158
+ maxWidth: X = "sm",
159
+ onBackdropClick: O,
160
+ onClick: $,
161
+ onClose: k,
162
+ open: R,
163
+ PaperComponent: H = _,
164
+ PaperProps: j = {},
165
+ scroll: q = "paper",
166
+ TransitionComponent: G = lo,
167
+ transitionDuration: A = s,
168
+ TransitionProps: J
169
+ } = i, Q = h(i, mo), x = r({}, i, {
170
+ disableEscapeKeyDown: w,
171
+ fullScreen: Y,
172
+ fullWidth: z,
173
+ maxWidth: X,
174
+ scroll: q
175
+ }), W = go(x), S = d.useRef(), Z = (f) => {
176
+ S.current = f.target === f.currentTarget;
177
+ }, oo = (f) => {
178
+ $ && $(f), S.current && (S.current = null, O && O(f), k && k(f, "backdropClick"));
179
+ }, M = co(p), eo = d.useMemo(() => ({
180
+ titleId: M
181
+ }), [M]);
182
+ return /* @__PURE__ */ l(bo, r({
183
+ className: g(W.root, L),
184
+ closeAfterTransition: !0,
185
+ components: {
186
+ Backdrop: fo
187
+ },
188
+ componentsProps: {
189
+ backdrop: r({
190
+ transitionDuration: A,
191
+ as: u
192
+ }, T)
193
+ },
194
+ disableEscapeKeyDown: w,
195
+ onClose: k,
196
+ open: R,
197
+ ref: a,
198
+ onClick: oo,
199
+ ownerState: x
200
+ }, Q, {
201
+ children: /* @__PURE__ */ l(G, r({
202
+ appear: !0,
203
+ in: R,
204
+ timeout: A,
205
+ role: "presentation"
206
+ }, J, {
207
+ children: /* @__PURE__ */ l(xo, {
208
+ className: g(W.container),
209
+ onMouseDown: Z,
210
+ ownerState: x,
211
+ children: /* @__PURE__ */ l(ho, r({
212
+ as: H,
213
+ elevation: 24,
214
+ role: "dialog",
215
+ "aria-describedby": c,
216
+ "aria-labelledby": M
217
+ }, j, {
218
+ className: g(W.paper, j.className),
219
+ ownerState: x,
220
+ children: /* @__PURE__ */ l(P.Provider, {
221
+ value: eo,
222
+ children: K
223
+ })
224
+ }))
225
+ })
226
+ }))
227
+ }));
228
+ });
229
+ process.env.NODE_ENV !== "production" && (F.propTypes = {
230
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
231
+ // │ These PropTypes are generated from the TypeScript type definitions. │
232
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
233
+ // └─────────────────────────────────────────────────────────────────────┘
234
+ /**
235
+ * The id(s) of the element(s) that describe the dialog.
236
+ */
237
+ "aria-describedby": o.string,
238
+ /**
239
+ * The id(s) of the element(s) that label the dialog.
240
+ */
241
+ "aria-labelledby": o.string,
242
+ /**
243
+ * A backdrop component. This prop enables custom backdrop rendering.
244
+ * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
245
+ * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
246
+ * @default styled(Backdrop, {
247
+ * name: 'MuiModal',
248
+ * slot: 'Backdrop',
249
+ * overridesResolver: (props, styles) => {
250
+ * return styles.backdrop;
251
+ * },
252
+ * })({
253
+ * zIndex: -1,
254
+ * })
255
+ */
256
+ BackdropComponent: o.elementType,
257
+ /**
258
+ * @ignore
259
+ */
260
+ BackdropProps: o.object,
261
+ /**
262
+ * Dialog children, usually the included sub-components.
263
+ */
264
+ children: o.node,
265
+ /**
266
+ * Override or extend the styles applied to the component.
267
+ */
268
+ classes: o.object,
269
+ /**
270
+ * @ignore
271
+ */
272
+ className: o.string,
273
+ /**
274
+ * If `true`, hitting escape will not fire the `onClose` callback.
275
+ * @default false
276
+ */
277
+ disableEscapeKeyDown: o.bool,
278
+ /**
279
+ * If `true`, the dialog is full-screen.
280
+ * @default false
281
+ */
282
+ fullScreen: o.bool,
283
+ /**
284
+ * If `true`, the dialog stretches to `maxWidth`.
285
+ *
286
+ * Notice that the dialog width grow is limited by the default margin.
287
+ * @default false
288
+ */
289
+ fullWidth: o.bool,
290
+ /**
291
+ * Determine the max-width of the dialog.
292
+ * The dialog width grows with the size of the screen.
293
+ * Set to `false` to disable `maxWidth`.
294
+ * @default 'sm'
295
+ */
296
+ maxWidth: o.oneOfType([o.oneOf(["xs", "sm", "md", "lg", "xl", !1]), o.string]),
297
+ /**
298
+ * Callback fired when the backdrop is clicked.
299
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
300
+ */
301
+ onBackdropClick: o.func,
302
+ /**
303
+ * @ignore
304
+ */
305
+ onClick: o.func,
306
+ /**
307
+ * Callback fired when the component requests to be closed.
308
+ *
309
+ * @param {object} event The event source of the callback.
310
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
311
+ */
312
+ onClose: o.func,
313
+ /**
314
+ * If `true`, the component is shown.
315
+ */
316
+ open: o.bool.isRequired,
317
+ /**
318
+ * The component used to render the body of the dialog.
319
+ * @default Paper
320
+ */
321
+ PaperComponent: o.elementType,
322
+ /**
323
+ * Props applied to the [`Paper`](/material-ui/api/paper/) element.
324
+ * @default {}
325
+ */
326
+ PaperProps: o.object,
327
+ /**
328
+ * Determine the container for scrolling the dialog.
329
+ * @default 'paper'
330
+ */
331
+ scroll: o.oneOf(["body", "paper"]),
332
+ /**
333
+ * The system prop that allows defining system overrides as well as additional CSS styles.
334
+ */
335
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
336
+ /**
337
+ * The component used for the transition.
338
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
339
+ * @default Fade
340
+ */
341
+ TransitionComponent: o.elementType,
342
+ /**
343
+ * The duration for the transition, in milliseconds.
344
+ * You may specify a single timeout for all transitions, or individually with an object.
345
+ * @default {
346
+ * enter: theme.transitions.duration.enteringScreen,
347
+ * exit: theme.transitions.duration.leavingScreen,
348
+ * }
349
+ */
350
+ transitionDuration: o.oneOfType([o.number, o.shape({
351
+ appear: o.number,
352
+ enter: o.number,
353
+ exit: o.number
354
+ })]),
355
+ /**
356
+ * Props applied to the transition element.
357
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
358
+ */
359
+ TransitionProps: o.object
360
+ });
361
+ function yo(e) {
362
+ return C("MuiDialogActions", e);
363
+ }
364
+ y("MuiDialogActions", ["root", "spacing"]);
365
+ const Co = ["className", "disableSpacing"], Do = (e) => {
366
+ const {
367
+ classes: t,
368
+ disableSpacing: a
369
+ } = e;
370
+ return v({
371
+ root: ["root", !a && "spacing"]
372
+ }, yo, t);
373
+ }, vo = m("div", {
374
+ name: "MuiDialogActions",
375
+ slot: "Root",
376
+ overridesResolver: (e, t) => {
377
+ const {
378
+ ownerState: a
379
+ } = e;
380
+ return [t.root, !a.disableSpacing && t.spacing];
381
+ }
382
+ })(({
383
+ ownerState: e
384
+ }) => r({
385
+ display: "flex",
386
+ alignItems: "center",
387
+ padding: 8,
388
+ justifyContent: "flex-end",
389
+ flex: "0 0 auto"
390
+ }, !e.disableSpacing && {
391
+ "& > :not(style) ~ :not(style)": {
392
+ marginLeft: 8
393
+ }
394
+ })), U = /* @__PURE__ */ d.forwardRef(function(t, a) {
395
+ const i = D({
396
+ props: t,
397
+ name: "MuiDialogActions"
398
+ }), {
399
+ className: n,
400
+ disableSpacing: s = !1
401
+ } = i, c = h(i, Co), p = r({}, i, {
402
+ disableSpacing: s
403
+ }), u = Do(p);
404
+ return /* @__PURE__ */ l(vo, r({
405
+ className: g(u.root, n),
406
+ ownerState: p,
407
+ ref: a
408
+ }, c));
409
+ });
410
+ process.env.NODE_ENV !== "production" && (U.propTypes = {
411
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
412
+ // │ These PropTypes are generated from the TypeScript type definitions. │
413
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
414
+ // └─────────────────────────────────────────────────────────────────────┘
415
+ /**
416
+ * The content of the component.
417
+ */
418
+ children: o.node,
419
+ /**
420
+ * Override or extend the styles applied to the component.
421
+ */
422
+ classes: o.object,
423
+ /**
424
+ * @ignore
425
+ */
426
+ className: o.string,
427
+ /**
428
+ * If `true`, the actions do not have additional margin.
429
+ * @default false
430
+ */
431
+ disableSpacing: o.bool,
432
+ /**
433
+ * The system prop that allows defining system overrides as well as additional CSS styles.
434
+ */
435
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
436
+ });
437
+ function To(e) {
438
+ return C("MuiDialogContent", e);
439
+ }
440
+ y("MuiDialogContent", ["root", "dividers"]);
441
+ function ko(e) {
442
+ return C("MuiDialogTitle", e);
443
+ }
444
+ const Wo = y("MuiDialogTitle", ["root"]), So = ["className", "dividers"], Mo = (e) => {
445
+ const {
446
+ classes: t,
447
+ dividers: a
448
+ } = e;
449
+ return v({
450
+ root: ["root", a && "dividers"]
451
+ }, To, t);
452
+ }, Bo = m("div", {
453
+ name: "MuiDialogContent",
454
+ slot: "Root",
455
+ overridesResolver: (e, t) => {
456
+ const {
457
+ ownerState: a
458
+ } = e;
459
+ return [t.root, a.dividers && t.dividers];
460
+ }
461
+ })(({
462
+ theme: e,
463
+ ownerState: t
464
+ }) => r({
465
+ flex: "1 1 auto",
466
+ // Add iOS momentum scrolling for iOS < 13.0
467
+ WebkitOverflowScrolling: "touch",
468
+ overflowY: "auto",
469
+ padding: "20px 24px"
470
+ }, t.dividers ? {
471
+ padding: "16px 24px",
472
+ borderTop: `1px solid ${(e.vars || e).palette.divider}`,
473
+ borderBottom: `1px solid ${(e.vars || e).palette.divider}`
474
+ } : {
475
+ [`.${Wo.root} + &`]: {
476
+ paddingTop: 0
477
+ }
478
+ })), I = /* @__PURE__ */ d.forwardRef(function(t, a) {
479
+ const i = D({
480
+ props: t,
481
+ name: "MuiDialogContent"
482
+ }), {
483
+ className: n,
484
+ dividers: s = !1
485
+ } = i, c = h(i, So), p = r({}, i, {
486
+ dividers: s
487
+ }), u = Mo(p);
488
+ return /* @__PURE__ */ l(Bo, r({
489
+ className: g(u.root, n),
490
+ ownerState: p,
491
+ ref: a
492
+ }, c));
493
+ });
494
+ process.env.NODE_ENV !== "production" && (I.propTypes = {
495
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
496
+ // │ These PropTypes are generated from the TypeScript type definitions. │
497
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
498
+ // └─────────────────────────────────────────────────────────────────────┘
499
+ /**
500
+ * The content of the component.
501
+ */
502
+ children: o.node,
503
+ /**
504
+ * Override or extend the styles applied to the component.
505
+ */
506
+ classes: o.object,
507
+ /**
508
+ * @ignore
509
+ */
510
+ className: o.string,
511
+ /**
512
+ * Display the top and bottom dividers.
513
+ * @default false
514
+ */
515
+ dividers: o.bool,
516
+ /**
517
+ * The system prop that allows defining system overrides as well as additional CSS styles.
518
+ */
519
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
520
+ });
521
+ const No = ["className", "id"], Po = (e) => {
522
+ const {
523
+ classes: t
524
+ } = e;
525
+ return v({
526
+ root: ["root"]
527
+ }, ko, t);
528
+ }, wo = m(po, {
529
+ name: "MuiDialogTitle",
530
+ slot: "Root",
531
+ overridesResolver: (e, t) => t.root
532
+ })({
533
+ padding: "16px 24px",
534
+ flex: "0 0 auto"
535
+ }), V = /* @__PURE__ */ d.forwardRef(function(t, a) {
536
+ const i = D({
537
+ props: t,
538
+ name: "MuiDialogTitle"
539
+ }), {
540
+ className: n,
541
+ id: s
542
+ } = i, c = h(i, No), p = i, u = Po(p), {
543
+ titleId: T = s
544
+ } = d.useContext(P);
545
+ return /* @__PURE__ */ l(wo, r({
546
+ component: "h2",
547
+ className: g(u.root, n),
548
+ ownerState: p,
549
+ ref: a,
550
+ variant: "h6",
551
+ id: s ?? T
552
+ }, c));
553
+ });
554
+ process.env.NODE_ENV !== "production" && (V.propTypes = {
555
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
556
+ // │ These PropTypes are generated from the TypeScript type definitions. │
557
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
558
+ // └─────────────────────────────────────────────────────────────────────┘
559
+ /**
560
+ * The content of the component.
561
+ */
562
+ children: o.node,
563
+ /**
564
+ * Override or extend the styles applied to the component.
565
+ */
566
+ classes: o.object,
567
+ /**
568
+ * @ignore
569
+ */
570
+ className: o.string,
571
+ /**
572
+ * @ignore
573
+ */
574
+ id: o.string,
575
+ /**
576
+ * The system prop that allows defining system overrides as well as additional CSS styles.
577
+ */
578
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
579
+ });
580
+ const Oo = {
581
+ confirmButtonText: "OK",
582
+ cancelButtonText: "Cancel",
583
+ disableCancelButton: !1
584
+ }, $o = ({
585
+ show: e = !0,
586
+ proceed: t = () => {
587
+ },
588
+ title: a,
589
+ description: i,
590
+ options: n
591
+ }) => {
592
+ n = { ...Oo, ...n };
593
+ const s = () => {
594
+ t(!1);
595
+ }, c = () => {
596
+ t(!1);
597
+ }, p = () => {
598
+ t(!0);
599
+ };
600
+ return /* @__PURE__ */ B(
601
+ F,
602
+ {
603
+ open: e,
604
+ onClose: s,
605
+ "aria-labelledby": "dialog-title",
606
+ "aria-describedby": "dialog-description",
607
+ sx: {
608
+ zIndex: 9999,
609
+ "& .MuiDialog-paper": {
610
+ borderRadius: 3
611
+ },
612
+ "& .MuiDialogTitle-root": {
613
+ px: 4,
614
+ py: 3
615
+ },
616
+ "& .MuiDialogContent-root": {
617
+ p: 4,
618
+ pt: 0
619
+ },
620
+ "& .MuiDialogActions-root": {
621
+ p: 4,
622
+ background: "#0439910A"
623
+ }
624
+ },
625
+ children: [
626
+ /* @__PURE__ */ B(
627
+ V,
628
+ {
629
+ id: "dialog-title",
630
+ sx: {
631
+ display: "flex",
632
+ justifyContent: "space-between",
633
+ alignItems: "center"
634
+ },
635
+ children: [
636
+ a,
637
+ /* @__PURE__ */ l(ao, { onClick: c, children: /* @__PURE__ */ l(io, {}) })
638
+ ]
639
+ }
640
+ ),
641
+ /* @__PURE__ */ l(I, { sx: { minWidth: 400 }, children: i }),
642
+ /* @__PURE__ */ B(U, { children: [
643
+ !n.disableCancelButton && /* @__PURE__ */ l(E, { color: "inherit", onClick: c, children: n.cancelButtonText }),
644
+ /* @__PURE__ */ l(
645
+ E,
646
+ {
647
+ variant: "contained",
648
+ color: "primary",
649
+ onClick: p,
650
+ autoFocus: !0,
651
+ children: n.confirmButtonText
652
+ }
653
+ )
654
+ ] })
655
+ ]
656
+ }
657
+ );
658
+ }, Xo = to($o);
659
+ export {
660
+ Xo as D,
661
+ F as a,
662
+ V as b,
663
+ I as c
664
+ };
@@ -0,0 +1,22 @@
1
+ function i(r, e) {
2
+ if (r == null) return {};
3
+ var t = {};
4
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5
+ if (e.includes(n)) continue;
6
+ t[n] = r[n];
7
+ }
8
+ return t;
9
+ }
10
+ function a() {
11
+ return a = Object.assign ? Object.assign.bind() : function(r) {
12
+ for (var e = 1; e < arguments.length; e++) {
13
+ var t = arguments[e];
14
+ for (var n in t) ({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
15
+ }
16
+ return r;
17
+ }, a.apply(null, arguments);
18
+ }
19
+ export {
20
+ i as _,
21
+ a
22
+ };
@@ -0,0 +1,10 @@
1
+ function d({
2
+ props: e,
3
+ states: u,
4
+ muiFormControl: r
5
+ }) {
6
+ return u.reduce((n, f) => (n[f] = e[f], r && typeof e[f] > "u" && (n[f] = r[f]), n), {});
7
+ }
8
+ export {
9
+ d as f
10
+ };