@hai-dev/ui-kit 1.1.10 → 1.1.12

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.
@@ -1 +1 @@
1
- ._dialog_lyvu5_1 ._dialogErrorText_lyvu5_1{color:#e2402fe0}
1
+ ._dialog_6kik7_1._dark_6kik7_1 .MuiPaper-root{background-color:#191b28;color:#fff}._dialog_6kik7_1._dark_6kik7_1 .MuiPaper-root ._dialogErrorText_6kik7_5::-webkit-scrollbar{height:8px;width:8px}._dialog_6kik7_1._dark_6kik7_1 .MuiPaper-root ._dialogErrorText_6kik7_5::-webkit-scrollbar-track{background:#070e1d;border-radius:16px}._dialog_6kik7_1._dark_6kik7_1 .MuiPaper-root ._dialogErrorText_6kik7_5::-webkit-scrollbar-thumb{background-color:#ffffff24;border-radius:16px}._dialog_6kik7_1 ._dialogErrorText_6kik7_5::-webkit-scrollbar{height:8px;width:8px}._dialog_6kik7_1 ._dialogErrorText_6kik7_5::-webkit-scrollbar-track{background:#f2f3f5;border-radius:16px}._dialog_6kik7_1 ._dialogErrorText_6kik7_5::-webkit-scrollbar-thumb{background-color:#e6e6e6;border-radius:16px}._dialog_6kik7_1 ._dialogErrorText_6kik7_5{color:#e2402fe0}
@@ -1 +1 @@
1
- ._dialog_1h5av_1 .MuiPaper-root{border-radius:24px;padding:48px;min-width:840px;max-width:100%}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7::-webkit-scrollbar{height:8px;width:8px}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7::-webkit-scrollbar-track{background:#f2f3f5;border-radius:16px}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7::-webkit-scrollbar-thumb{background-color:#e6e6e6;border-radius:16px}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7{margin:32px 0 24px}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7 ._errorItem_1h5av_22{font-size:22px;letter-spacing:0%;line-height:150%;font-weight:500;color:#e2402fe0}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7 ._errorItem_1h5av_22 ._fileName_1h5av_29{font-weight:700}._dialog_1h5av_1 .MuiPaper-root ._errorContent_1h5av_7 *+*{margin-top:16px}._dialog_1h5av_1 .MuiPaper-root ._topActions_1h5av_35{position:absolute;right:0;top:0;padding:32px}._dialog_1h5av_1 .MuiPaper-root ._topActions_1h5av_35 ._close_1h5av_41{width:40px;height:40px}._dialog_1h5av_1 .MuiPaper-root ._botActions_1h5av_45{padding:0;display:flex;justify-content:space-between}._dialog_1h5av_1 .MuiPaper-root ._botActions_1h5av_45 ._button_1h5av_50{width:100%;text-transform:none}._dialog_1h5av_1 .MuiPaper-root ._title_1h5av_54{padding:0;font-weight:600;font-size:32px;line-height:100%}._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60{margin:32px 0 24px;padding-bottom:0;display:flex;align-items:center;justify-content:center;overflow:visible}._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60._many_1h5av_68{justify-content:space-between}._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60 ._photoList_1h5av_71{display:flex;flex-direction:column}._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60 ._crop_1h5av_75{max-height:670px}._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60 ._crop_1h5av_75 .ReactCrop__child-wrapper,._dialog_1h5av_1 .MuiPaper-root ._content_1h5av_60 ._crop_1h5av_75 .ReactCrop__crop-mask{border-radius:12px}._dialog_1h5av_1 .MuiPaper-root ._dialogText_1h5av_84{color:#e2402fe0}
1
+ ._dialog_n5vpn_1._dark_n5vpn_1 .MuiPaper-root{background-color:#191b28;color:#fff}._dialog_n5vpn_1._dark_n5vpn_1 .MuiPaper-root ._errorContent_n5vpn_5::-webkit-scrollbar{height:8px;width:8px}._dialog_n5vpn_1._dark_n5vpn_1 .MuiPaper-root ._errorContent_n5vpn_5::-webkit-scrollbar-track{background:#070e1d;border-radius:16px}._dialog_n5vpn_1._dark_n5vpn_1 .MuiPaper-root ._errorContent_n5vpn_5::-webkit-scrollbar-thumb{background-color:#ffffff24;border-radius:16px}._dialog_n5vpn_1 .MuiPaper-root{border-radius:24px;padding:48px;min-width:840px;max-width:100%}._dialog_n5vpn_1 .MuiPaper-root ._errorContent_n5vpn_5::-webkit-scrollbar{height:8px;width:8px}._dialog_n5vpn_1 .MuiPaper-root ._errorContent_n5vpn_5::-webkit-scrollbar-track{background:#f2f3f5;border-radius:16px}._dialog_n5vpn_1 .MuiPaper-root ._errorContent_n5vpn_5::-webkit-scrollbar-thumb{background-color:#e6e6e6;border-radius:16px}._dialog_n5vpn_1 .MuiPaper-root ._errorContent_n5vpn_5{margin:32px 0 24px}._dialog_n5vpn_1 .MuiPaper-root ._errorContent_n5vpn_5 ._errorItem_n5vpn_38{font-size:22px;letter-spacing:0%;line-height:150%;font-weight:500;color:#e2402fe0}._dialog_n5vpn_1 .MuiPaper-root ._errorContent_n5vpn_5 ._errorItem_n5vpn_38 ._fileName_n5vpn_45{font-weight:700}._dialog_n5vpn_1 .MuiPaper-root ._errorContent_n5vpn_5 *+*{margin-top:16px}._dialog_n5vpn_1 .MuiPaper-root ._topActions_n5vpn_51{position:absolute;right:0;top:0;padding:32px}._dialog_n5vpn_1 .MuiPaper-root ._topActions_n5vpn_51 ._close_n5vpn_57{width:40px;height:40px}._dialog_n5vpn_1 .MuiPaper-root ._botActions_n5vpn_61{padding:0;display:flex;justify-content:space-between}._dialog_n5vpn_1 .MuiPaper-root ._botActions_n5vpn_61 ._button_n5vpn_66{width:100%;text-transform:none}._dialog_n5vpn_1 .MuiPaper-root ._title_n5vpn_70{padding:0;font-weight:600;font-size:32px;line-height:100%}._dialog_n5vpn_1 .MuiPaper-root ._content_n5vpn_76{margin:32px 0 24px;padding-bottom:0;display:flex;align-items:center;justify-content:center;overflow:visible}._dialog_n5vpn_1 .MuiPaper-root ._content_n5vpn_76._many_n5vpn_84{justify-content:space-between}._dialog_n5vpn_1 .MuiPaper-root ._content_n5vpn_76 ._photoList_n5vpn_87{display:flex;flex-direction:column}._dialog_n5vpn_1 .MuiPaper-root ._content_n5vpn_76 ._crop_n5vpn_91{max-height:670px}._dialog_n5vpn_1 .MuiPaper-root ._content_n5vpn_76 ._crop_n5vpn_91 .ReactCrop__child-wrapper,._dialog_n5vpn_1 .MuiPaper-root ._content_n5vpn_76 ._crop_n5vpn_91 .ReactCrop__crop-mask{border-radius:12px}._dialog_n5vpn_1 .MuiPaper-root ._dialogText_n5vpn_100{color:#e2402fe0}
@@ -1,19 +1,19 @@
1
1
  import { jsx as e, jsxs as f } from "react/jsx-runtime";
2
- import { c as p } from "../../../../index-YnD2EP-S.js";
2
+ import { c as d } from "../../../../index-YnD2EP-S.js";
3
3
  import { localizedText as m } from "../../locale.js";
4
- import { EN_LOCALE as u } from "../../../../constants.js";
4
+ import { EN_LOCALE as T, DARK_THEME as u } from "../../../../constants.js";
5
5
  import { D as x } from "../../../../Dialog-Cf0d7zi7.js";
6
- import { D as T, a as C, b as D } from "../../../../DialogTitle-BtvmXSZP.js";
7
- import * as y from "react";
8
- import { g as h, a as E, c as N, P as o } from "../../../../createTheme-D8R2Cz2N.js";
9
- import { u as _, c as b, s as P, r as j } from "../../../../chainPropTypes-DiJb1lGa.js";
10
- import { T as v } from "../../../../Typography-Bjd6ZHeX.js";
11
- import { B as w } from "../../../../Button-BN3fv8kr.js";
6
+ import { D as C, a as D, b as y } from "../../../../DialogTitle-BtvmXSZP.js";
7
+ import * as h from "react";
8
+ import { g as E, a as _, c as k, P as o } from "../../../../createTheme-D8R2Cz2N.js";
9
+ import { u as N, c as b, s as P, r as j } from "../../../../chainPropTypes-DiJb1lGa.js";
10
+ import { T as w } from "../../../../Typography-Bjd6ZHeX.js";
11
+ import { B as M } from "../../../../Button-BN3fv8kr.js";
12
12
  import '../../../../assets/error-upload-dialog.css';function O(t) {
13
- return h("MuiDialogContentText", t);
13
+ return E("MuiDialogContentText", t);
14
14
  }
15
- E("MuiDialogContentText", ["root"]);
16
- const U = (t) => {
15
+ _("MuiDialogContentText", ["root"]);
16
+ const R = (t) => {
17
17
  const {
18
18
  classes: r
19
19
  } = t, s = b({
@@ -24,28 +24,28 @@ const U = (t) => {
24
24
  // forward classes to the Typography
25
25
  ...s
26
26
  };
27
- }, M = P(v, {
27
+ }, U = P(w, {
28
28
  shouldForwardProp: (t) => j(t) || t === "classes",
29
29
  name: "MuiDialogContentText",
30
30
  slot: "Root"
31
- })({}), g = /* @__PURE__ */ y.forwardRef(function(r, a) {
32
- const s = _({
31
+ })({}), g = /* @__PURE__ */ h.forwardRef(function(r, a) {
32
+ const s = N({
33
33
  props: r,
34
34
  name: "MuiDialogContentText"
35
35
  }), {
36
- children: n,
37
- className: l,
38
- ...i
39
- } = s, c = U(i);
40
- return /* @__PURE__ */ e(M, {
36
+ children: c,
37
+ className: n,
38
+ ...l
39
+ } = s, p = R(l);
40
+ return /* @__PURE__ */ e(U, {
41
41
  component: "p",
42
42
  variant: "body1",
43
43
  color: "textSecondary",
44
44
  ref: a,
45
- ownerState: i,
46
- className: N(c.root, l),
45
+ ownerState: l,
46
+ className: k(p.root, n),
47
47
  ...s,
48
- classes: c
48
+ classes: p
49
49
  });
50
50
  });
51
51
  process.env.NODE_ENV !== "production" && (g.propTypes = {
@@ -70,31 +70,33 @@ process.env.NODE_ENV !== "production" && (g.propTypes = {
70
70
  */
71
71
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
72
72
  });
73
- const R = "_dialog_lyvu5_1", S = "_dialogErrorText_lyvu5_1", d = {
74
- dialog: R,
75
- dialogErrorText: S
76
- }, I = (t) => {
73
+ const S = "_dialog_6kik7_1", v = "_dark_6kik7_1", A = "_dialogErrorText_6kik7_5", i = {
74
+ dialog: S,
75
+ dark: v,
76
+ dialogErrorText: A
77
+ }, J = (t) => {
77
78
  const {
78
79
  photoError: r,
79
80
  onCloseErrorDialog: a,
80
- locale: s = u,
81
+ locale: s = T,
82
+ theme: c = u,
81
83
  className: n,
82
84
  ...l
83
85
  } = t;
84
86
  return /* @__PURE__ */ f(
85
87
  x,
86
88
  {
87
- className: p(d.dialog, n),
89
+ className: d(i.dialog, n, i[c]),
88
90
  onClose: a,
89
91
  ...l,
90
92
  children: [
91
- /* @__PURE__ */ e(T, { children: m[s].error }),
92
- /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(g, { className: p(d.dialogErrorText), children: r }) }),
93
- /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(w, { onClick: a, children: m[s].back }) })
93
+ /* @__PURE__ */ e(C, { children: m[s].error }),
94
+ /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(g, { className: d(i.dialogErrorText), children: r }) }),
95
+ /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(M, { onClick: a, children: m[s].back }) })
94
96
  ]
95
97
  }
96
98
  );
97
99
  };
98
100
  export {
99
- I as ErrorUploadDialog
101
+ J as ErrorUploadDialog
100
102
  };
@@ -1,9 +1,10 @@
1
1
  import { DialogProps } from '@mui/material';
2
- import { Locale } from '../../../../types';
2
+ import { Locale, Theme } from '../../../../types';
3
3
  type ErrorUploadDialogCustomProps = {
4
4
  onCloseErrorDialog?: () => void;
5
5
  photoError?: string;
6
6
  locale?: Locale;
7
+ theme?: Theme;
7
8
  };
8
9
  export type ErrorUploadDialogProps = ErrorUploadDialogCustomProps & DialogProps;
9
10
  export {};
@@ -1,7 +1,7 @@
1
1
  import { SyntheticEvent } from 'react';
2
2
  import { DialogProps } from '@mui/material';
3
3
  import { Crop, PercentCrop, PixelCrop } from 'react-image-crop';
4
- import { Locale } from '../../../../types';
4
+ import { Locale, Theme } from '../../../../types';
5
5
  import { FileErrorItem, PhotoDataUrl } from '../../types';
6
6
  type OnPhotoLoad = (event: SyntheticEvent<HTMLImageElement, Event>) => void;
7
7
  type OnCropChange = (pixelCrop: PixelCrop, percentCrop: PercentCrop) => void;
@@ -29,6 +29,7 @@ type UploadDialogCustomProps = {
29
29
  photoSourceLoading: boolean;
30
30
  loadingValue?: number;
31
31
  errors?: FileErrorItem[];
32
+ theme?: Theme;
32
33
  };
33
34
  export type UploadDialogProps = UploadDialogCustomProps & DialogProps;
34
35
  export type UploadDialogErrorsProps = {
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "../../../../index-YnD2EP-S.js";
3
3
  import "../../locale.js";
4
4
  import "../../../../constants.js";
5
- import { U as s } from "../../../../upload-dialog-errors-Cyz6_7n4.js";
5
+ import { U as s } from "../../../../upload-dialog-errors-DHl0bh1n.js";
6
6
  import "../../../../DialogTitle-BtvmXSZP.js";
7
7
  import "../../../button/button.js";
8
8
  export {
@@ -1,28 +1,28 @@
1
- import { jsxs as L, jsx as a, Fragment as _ } from "react/jsx-runtime";
2
- import * as k from "react";
3
- import { S as $ } from "../../../../index-CcueJ2sD.js";
1
+ import { jsxs as L, jsx as a, Fragment as $ } from "react/jsx-runtime";
2
+ import * as w from "react";
3
+ import { S as V } from "../../../../index-CcueJ2sD.js";
4
4
  import { c as i } from "../../../../index-YnD2EP-S.js";
5
- import { s as n, U as V } from "../../../../upload-dialog-errors-Cyz6_7n4.js";
6
- import { PhotoList as H } from "../photo-list/photo-list.js";
5
+ import { s as n, U as H } from "../../../../upload-dialog-errors-DHl0bh1n.js";
6
+ import { PhotoList as Z } from "../photo-list/photo-list.js";
7
7
  import { localizedText as p } from "../../locale.js";
8
- import { EN_LOCALE as Z } from "../../../../constants.js";
9
- import { CLOSE_ICON_SIZE as w } from "./constants.js";
10
- import { DEFAULT_MIN_DIMENSION as Y, DEFAULT_ASPECT_RATIO as q } from "../../constants.js";
8
+ import { EN_LOCALE as K, DARK_THEME as Y } from "../../../../constants.js";
9
+ import { CLOSE_ICON_SIZE as D } from "./constants.js";
10
+ import { DEFAULT_MIN_DIMENSION as q, DEFAULT_ASPECT_RATIO as G } from "../../constants.js";
11
11
  import { D as O } from "../../../../Dialog-Cf0d7zi7.js";
12
- import { a as D, b as E, D as G } from "../../../../DialogTitle-BtvmXSZP.js";
13
- import { CircularProgressLoader as J } from "../../../circular-progress-loader/circular-progress-loader.js";
14
- import { g as K, a as Q, c as X, b as m, P as t } from "../../../../createTheme-D8R2Cz2N.js";
15
- import { m as A } from "../../../../memoTheme-D5VCpQCz.js";
16
- import { c as M } from "../../../../createSimplePaletteValueFilter-B7--0ryQ.js";
17
- import { u as oo, c as eo, s as W, b as to } from "../../../../chainPropTypes-DiJb1lGa.js";
18
- import { u as ao } from "../../../../useId-CK6Kn3Tn.js";
19
- import { B as ro } from "../../../../ButtonBase-CSWuFxUv.js";
20
- import { C as no } from "../../../../CircularProgress-sPARyPfh.js";
21
- import { Button as P } from "../../../button/button.js";
22
- import '../../../../assets/upload-dialog.css';function io(o) {
23
- return K("MuiIconButton", o);
12
+ import { a as A, b as P, D as J } from "../../../../DialogTitle-BtvmXSZP.js";
13
+ import { CircularProgressLoader as Q } from "../../../circular-progress-loader/circular-progress-loader.js";
14
+ import { g as X, a as oo, c as eo, b as m, P as t } from "../../../../createTheme-D8R2Cz2N.js";
15
+ import { m as M } from "../../../../memoTheme-D5VCpQCz.js";
16
+ import { c as U } from "../../../../createSimplePaletteValueFilter-B7--0ryQ.js";
17
+ import { u as to, c as ao, s as _, b as ro } from "../../../../chainPropTypes-DiJb1lGa.js";
18
+ import { u as no } from "../../../../useId-CK6Kn3Tn.js";
19
+ import { B as io } from "../../../../ButtonBase-CSWuFxUv.js";
20
+ import { C as lo } from "../../../../CircularProgress-sPARyPfh.js";
21
+ import { Button as k } from "../../../button/button.js";
22
+ import '../../../../assets/upload-dialog.css';function so(o) {
23
+ return X("MuiIconButton", o);
24
24
  }
25
- const U = Q("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), lo = (o) => {
25
+ const W = oo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), co = (o) => {
26
26
  const {
27
27
  classes: e,
28
28
  disabled: r,
@@ -35,8 +35,8 @@ const U = Q("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
35
35
  loadingIndicator: ["loadingIndicator"],
36
36
  loadingWrapper: ["loadingWrapper"]
37
37
  };
38
- return eo(u, io, e);
39
- }, so = W(ro, {
38
+ return ao(u, so, e);
39
+ }, po = _(io, {
40
40
  name: "MuiIconButton",
41
41
  slot: "Root",
42
42
  overridesResolver: (o, e) => {
@@ -45,7 +45,7 @@ const U = Q("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
45
45
  } = o;
46
46
  return [e.root, r.loading && e.loading, r.color !== "default" && e[`color${m(r.color)}`], r.edge && e[`edge${m(r.edge)}`], e[`size${m(r.size)}`]];
47
47
  }
48
- })(A(({
48
+ })(M(({
49
49
  theme: o
50
50
  }) => ({
51
51
  textAlign: "center",
@@ -100,7 +100,7 @@ const U = Q("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
100
100
  marginRight: -3
101
101
  }
102
102
  }]
103
- })), A(({
103
+ })), M(({
104
104
  theme: o
105
105
  }) => ({
106
106
  variants: [{
@@ -110,14 +110,14 @@ const U = Q("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
110
110
  style: {
111
111
  color: "inherit"
112
112
  }
113
- }, ...Object.entries(o.palette).filter(M()).map(([e]) => ({
113
+ }, ...Object.entries(o.palette).filter(U()).map(([e]) => ({
114
114
  props: {
115
115
  color: e
116
116
  },
117
117
  style: {
118
118
  color: (o.vars || o).palette[e].main
119
119
  }
120
- })), ...Object.entries(o.palette).filter(M()).map(([e]) => ({
120
+ })), ...Object.entries(o.palette).filter(U()).map(([e]) => ({
121
121
  props: {
122
122
  color: e
123
123
  },
@@ -141,14 +141,14 @@ const U = Q("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
141
141
  fontSize: o.typography.pxToRem(28)
142
142
  }
143
143
  }],
144
- [`&.${U.disabled}`]: {
144
+ [`&.${W.disabled}`]: {
145
145
  backgroundColor: "transparent",
146
146
  color: (o.vars || o).palette.action.disabled
147
147
  },
148
- [`&.${U.loading}`]: {
148
+ [`&.${W.loading}`]: {
149
149
  color: "transparent"
150
150
  }
151
- }))), co = W("span", {
151
+ }))), go = _("span", {
152
152
  name: "MuiIconButton",
153
153
  slot: "LoadingIndicator"
154
154
  })(({
@@ -169,8 +169,8 @@ const U = Q("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
169
169
  display: "flex"
170
170
  }
171
171
  }]
172
- })), j = /* @__PURE__ */ k.forwardRef(function(e, r) {
173
- const c = oo({
172
+ })), j = /* @__PURE__ */ w.forwardRef(function(e, r) {
173
+ const c = to({
174
174
  props: e,
175
175
  name: "MuiIconButton"
176
176
  }), {
@@ -185,7 +185,7 @@ const U = Q("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
185
185
  loading: s = null,
186
186
  loadingIndicator: R,
187
187
  ...l
188
- } = c, N = ao(v), B = R ?? /* @__PURE__ */ a(no, {
188
+ } = c, N = no(v), B = R ?? /* @__PURE__ */ a(lo, {
189
189
  "aria-labelledby": N,
190
190
  color: "inherit",
191
191
  size: 16
@@ -198,10 +198,10 @@ const U = Q("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
198
198
  loading: s,
199
199
  loadingIndicator: B,
200
200
  size: z
201
- }, d = lo(h);
202
- return /* @__PURE__ */ L(so, {
201
+ }, d = co(h);
202
+ return /* @__PURE__ */ L(po, {
203
203
  id: s ? N : v,
204
- className: X(d.root, b),
204
+ className: eo(d.root, b),
205
205
  centerRipple: !0,
206
206
  focusRipple: !I,
207
207
  disabled: y || s,
@@ -214,7 +214,7 @@ const U = Q("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
214
214
  style: {
215
215
  display: "contents"
216
216
  },
217
- children: /* @__PURE__ */ a(co, {
217
+ children: /* @__PURE__ */ a(go, {
218
218
  className: d.loadingIndicator,
219
219
  ownerState: h,
220
220
  children: s && B
@@ -230,7 +230,7 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
230
230
  /**
231
231
  * The icon to display.
232
232
  */
233
- children: to(t.node, (o) => k.Children.toArray(o.children).some((r) => /* @__PURE__ */ k.isValidElement(r) && r.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(`
233
+ children: ro(t.node, (o) => w.Children.toArray(o.children).some((r) => /* @__PURE__ */ w.isValidElement(r) && r.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(`
234
234
  `)) : null),
235
235
  /**
236
236
  * Override or extend the styles applied to the component.
@@ -301,7 +301,7 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
301
301
  */
302
302
  sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
303
303
  });
304
- const po = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%200%2046%2046'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.3434%2015.4595C16.8227%2014.9388%2015.9785%2014.9388%2015.4578%2015.4595C14.9371%2015.9802%2014.9371%2016.8244%2015.4578%2017.3451L21.1146%2023.002L15.4578%2028.6588C14.9371%2029.1795%2014.9371%2030.0237%2015.4578%2030.5444C15.9785%2031.0651%2016.8227%2031.0651%2017.3434%2030.5444L23.0002%2024.8876L28.6571%2030.5444C29.1778%2031.0651%2030.022%2031.0651%2030.5427%2030.5444C31.0634%2030.0237%2031.0634%2029.1795%2030.5427%2028.6588L24.8858%2023.002L30.5427%2017.3451C31.0634%2016.8244%2031.0634%2015.9802%2030.5427%2015.4595C30.022%2014.9388%2029.1778%2014.9388%2028.6571%2015.4595L23.0002%2021.1163L17.3434%2015.4595Z'%20fill='%233AA8FF'/%3e%3c/svg%3e", Po = (o) => {
304
+ const uo = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%200%2046%2046'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.3434%2015.4595C16.8227%2014.9388%2015.9785%2014.9388%2015.4578%2015.4595C14.9371%2015.9802%2014.9371%2016.8244%2015.4578%2017.3451L21.1146%2023.002L15.4578%2028.6588C14.9371%2029.1795%2014.9371%2030.0237%2015.4578%2030.5444C15.9785%2031.0651%2016.8227%2031.0651%2017.3434%2030.5444L23.0002%2024.8876L28.6571%2030.5444C29.1778%2031.0651%2030.022%2031.0651%2030.5427%2030.5444C31.0634%2030.0237%2031.0634%2029.1795%2030.5427%2028.6588L24.8858%2023.002L30.5427%2017.3451C31.0634%2016.8244%2031.0634%2015.9802%2030.5427%2015.4595C30.022%2014.9388%2029.1778%2014.9388%2028.6571%2015.4595L23.0002%2021.1163L17.3434%2015.4595Z'%20fill='%233AA8FF'/%3e%3c/svg%3e", wo = (o) => {
305
305
  const {
306
306
  onCloseDialogHandler: e,
307
307
  photoSources: r = [],
@@ -315,38 +315,39 @@ const po = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%20
315
315
  onNextPhoto: I,
316
316
  onSkipCrop: z,
317
317
  onClearErrors: v,
318
- minDimension: s = Y,
319
- aspectRatio: R = q,
320
- locale: l = Z,
318
+ minDimension: s = q,
319
+ aspectRatio: R = G,
320
+ locale: l = K,
321
321
  circular: N,
322
322
  keepSelection: B = !0,
323
323
  photoSourceLoading: h,
324
324
  className: d,
325
325
  photoIndex: C,
326
326
  loadingValue: F,
327
- errors: x,
328
- ...T
327
+ errors: T,
328
+ theme: x = Y,
329
+ ...E
329
330
  } = o, S = r.slice(C).length > 1;
330
- return h || !r.length && !x?.length ? /* @__PURE__ */ a(
331
+ return h || !r.length && !T?.length ? /* @__PURE__ */ a(
331
332
  O,
332
333
  {
333
- className: i(n.dialog, d),
334
+ className: i(n.dialog, d, n[x]),
334
335
  onClose: e,
335
- ...T,
336
- children: /* @__PURE__ */ a(D, { className: i(n.content), children: /* @__PURE__ */ a(J, { value: F }) })
336
+ ...E,
337
+ children: /* @__PURE__ */ a(A, { className: i(n.content), children: /* @__PURE__ */ a(Q, { value: F }) })
337
338
  }
338
- ) : x?.length ? /* @__PURE__ */ a(
339
+ ) : T?.length ? /* @__PURE__ */ a(
339
340
  O,
340
341
  {
341
- className: i(n.dialog, d),
342
+ className: i(n.dialog, d, n[x]),
342
343
  onClose: e,
343
- ...T,
344
+ ...E,
344
345
  children: /* @__PURE__ */ a(
345
- V,
346
+ H,
346
347
  {
347
348
  locale: l,
348
349
  photoSources: r,
349
- errors: x,
350
+ errors: T,
350
351
  onCloseDialogHandler: e,
351
352
  onClearErrors: v
352
353
  }
@@ -355,11 +356,11 @@ const po = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%20
355
356
  ) : /* @__PURE__ */ L(
356
357
  O,
357
358
  {
358
- className: i(n.dialog, d),
359
+ className: i(n.dialog, d, n[x]),
359
360
  onClose: e,
360
- ...T,
361
+ ...E,
361
362
  children: [
362
- /* @__PURE__ */ a(E, { className: i(n.topActions), children: /* @__PURE__ */ a(
363
+ /* @__PURE__ */ a(P, { className: i(n.topActions), children: /* @__PURE__ */ a(
363
364
  j,
364
365
  {
365
366
  onClick: e,
@@ -369,19 +370,19 @@ const po = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%20
369
370
  "img",
370
371
  {
371
372
  draggable: !1,
372
- width: w,
373
- height: w,
374
- src: po,
373
+ width: D,
374
+ height: D,
375
+ src: uo,
375
376
  alt: p[l].back
376
377
  }
377
378
  )
378
379
  }
379
380
  ) }),
380
- /* @__PURE__ */ a(G, { className: i(n.title), children: p[l]["photo-crop"] }),
381
- /* @__PURE__ */ L(D, { className: i(n.content, S && n.many), children: [
381
+ /* @__PURE__ */ a(J, { className: i(n.title), children: p[l]["photo-crop"] }),
382
+ /* @__PURE__ */ L(A, { className: i(n.content, S && n.many), children: [
382
383
  S && /* @__PURE__ */ a("span", {}),
383
384
  !!r.length && /* @__PURE__ */ a(
384
- $,
385
+ V,
385
386
  {
386
387
  className: i(n.crop),
387
388
  crop: c[C],
@@ -404,12 +405,12 @@ const po = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%20
404
405
  )
405
406
  }
406
407
  ),
407
- S && /* @__PURE__ */ a(H, { photoSources: r, photoIndex: C })
408
+ S && /* @__PURE__ */ a(Z, { photoSources: r, photoIndex: C })
408
409
  ] }),
409
- u && /* @__PURE__ */ a(E, { className: i(n.dialogText), children: u }),
410
- /* @__PURE__ */ a(E, { className: i(n.botActions), children: S ? /* @__PURE__ */ L(_, { children: [
410
+ u && /* @__PURE__ */ a(P, { className: i(n.dialogText), children: u }),
411
+ /* @__PURE__ */ a(P, { className: i(n.botActions), children: S ? /* @__PURE__ */ L($, { children: [
411
412
  /* @__PURE__ */ a(
412
- P,
413
+ k,
413
414
  {
414
415
  buttonSize: "small",
415
416
  buttonColor: "blue",
@@ -421,7 +422,7 @@ const po = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%20
421
422
  }
422
423
  ),
423
424
  /* @__PURE__ */ a(
424
- P,
425
+ k,
425
426
  {
426
427
  buttonSize: "small",
427
428
  buttonColor: "blue",
@@ -433,7 +434,7 @@ const po = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%20
433
434
  }
434
435
  )
435
436
  ] }) : /* @__PURE__ */ a(
436
- P,
437
+ k,
437
438
  {
438
439
  minWidth: "100%",
439
440
  buttonSize: "small",
@@ -450,5 +451,5 @@ const po = "data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%20
450
451
  );
451
452
  };
452
453
  export {
453
- Po as UploadDialog
454
+ wo as UploadDialog
454
455
  };