@hai-dev/ui-kit 1.1.11 → 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.
- package/dist/assets/error-upload-dialog.css +1 -1
- package/dist/assets/upload-dialog-errors.css +1 -1
- package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +34 -32
- package/dist/components/photo-crop-uploader/components/error-upload-dialog/types.d.ts +2 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/types.d.ts +2 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js +1 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +70 -69
- package/dist/components/photo-crop-uploader/photo-crop-uploader.js +131 -128
- package/dist/components/photo-crop-uploader/types.d.ts +2 -1
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +5 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +26 -24
- package/dist/types.d.ts +2 -1
- package/dist/{upload-dialog-errors-Cyz6_7n4.js → upload-dialog-errors-DHl0bh1n.js} +59 -57
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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
|
-
.
|
|
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}
|
package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
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
|
|
7
|
-
import * as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import { T as
|
|
11
|
-
import { B as
|
|
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
|
|
13
|
+
return E("MuiDialogContentText", t);
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
const
|
|
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
|
-
},
|
|
27
|
+
}, U = P(w, {
|
|
28
28
|
shouldForwardProp: (t) => j(t) || t === "classes",
|
|
29
29
|
name: "MuiDialogContentText",
|
|
30
30
|
slot: "Root"
|
|
31
|
-
})({}), g = /* @__PURE__ */
|
|
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:
|
|
37
|
-
className:
|
|
38
|
-
...
|
|
39
|
-
} = s,
|
|
40
|
-
return /* @__PURE__ */ e(
|
|
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:
|
|
46
|
-
className:
|
|
45
|
+
ownerState: l,
|
|
46
|
+
className: k(p.root, n),
|
|
47
47
|
...s,
|
|
48
|
-
classes:
|
|
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
|
|
74
|
-
dialog:
|
|
75
|
-
|
|
76
|
-
|
|
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 =
|
|
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:
|
|
89
|
+
className: d(i.dialog, n, i[c]),
|
|
88
90
|
onClose: a,
|
|
89
91
|
...l,
|
|
90
92
|
children: [
|
|
91
|
-
/* @__PURE__ */ e(
|
|
92
|
-
/* @__PURE__ */ e(
|
|
93
|
-
/* @__PURE__ */ e(
|
|
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
|
-
|
|
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 = {
|
package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js
CHANGED
|
@@ -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-
|
|
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
|
|
2
|
-
import * as
|
|
3
|
-
import { S as
|
|
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
|
|
6
|
-
import { PhotoList as
|
|
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
|
|
9
|
-
import { CLOSE_ICON_SIZE as
|
|
10
|
-
import { DEFAULT_MIN_DIMENSION as
|
|
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
|
|
13
|
-
import { CircularProgressLoader as
|
|
14
|
-
import { g as
|
|
15
|
-
import { m as
|
|
16
|
-
import { c as
|
|
17
|
-
import { u as
|
|
18
|
-
import { u as
|
|
19
|
-
import { B as
|
|
20
|
-
import { C as
|
|
21
|
-
import { Button as
|
|
22
|
-
import '../../../../assets/upload-dialog.css';function
|
|
23
|
-
return
|
|
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
|
|
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
|
|
39
|
-
},
|
|
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
|
-
})(
|
|
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
|
-
})),
|
|
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(
|
|
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(
|
|
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
|
-
[`&.${
|
|
144
|
+
[`&.${W.disabled}`]: {
|
|
145
145
|
backgroundColor: "transparent",
|
|
146
146
|
color: (o.vars || o).palette.action.disabled
|
|
147
147
|
},
|
|
148
|
-
[`&.${
|
|
148
|
+
[`&.${W.loading}`]: {
|
|
149
149
|
color: "transparent"
|
|
150
150
|
}
|
|
151
|
-
}))),
|
|
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__ */
|
|
173
|
-
const c =
|
|
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 =
|
|
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 =
|
|
202
|
-
return /* @__PURE__ */ L(
|
|
201
|
+
}, d = co(h);
|
|
202
|
+
return /* @__PURE__ */ L(po, {
|
|
203
203
|
id: s ? N : v,
|
|
204
|
-
className:
|
|
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(
|
|
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:
|
|
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
|
|
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 =
|
|
319
|
-
aspectRatio: R =
|
|
320
|
-
locale: l =
|
|
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:
|
|
328
|
-
|
|
327
|
+
errors: T,
|
|
328
|
+
theme: x = Y,
|
|
329
|
+
...E
|
|
329
330
|
} = o, S = r.slice(C).length > 1;
|
|
330
|
-
return h || !r.length && !
|
|
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
|
-
...
|
|
336
|
-
children: /* @__PURE__ */ a(
|
|
336
|
+
...E,
|
|
337
|
+
children: /* @__PURE__ */ a(A, { className: i(n.content), children: /* @__PURE__ */ a(Q, { value: F }) })
|
|
337
338
|
}
|
|
338
|
-
) :
|
|
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
|
-
...
|
|
344
|
+
...E,
|
|
344
345
|
children: /* @__PURE__ */ a(
|
|
345
|
-
|
|
346
|
+
H,
|
|
346
347
|
{
|
|
347
348
|
locale: l,
|
|
348
349
|
photoSources: r,
|
|
349
|
-
errors:
|
|
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
|
-
...
|
|
361
|
+
...E,
|
|
361
362
|
children: [
|
|
362
|
-
/* @__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:
|
|
373
|
-
height:
|
|
374
|
-
src:
|
|
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(
|
|
381
|
-
/* @__PURE__ */ L(
|
|
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(
|
|
408
|
+
S && /* @__PURE__ */ a(Z, { photoSources: r, photoIndex: C })
|
|
408
409
|
] }),
|
|
409
|
-
u && /* @__PURE__ */ a(
|
|
410
|
-
/* @__PURE__ */ a(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
454
|
+
wo as UploadDialog
|
|
454
455
|
};
|
|
@@ -1,73 +1,74 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as i, useRef as
|
|
3
|
-
import { v as
|
|
4
|
-
import { c as
|
|
5
|
-
import { localizedText as
|
|
6
|
-
import { EN_LOCALE as
|
|
7
|
-
import { DEFAULT_MIN_DIMENSION as
|
|
8
|
-
import { UploadDialog as
|
|
9
|
-
import { UploadButton as
|
|
10
|
-
import { ErrorUploadDialog as
|
|
11
|
-
import { isVideo as
|
|
12
|
-
import { validateVideoFile as
|
|
13
|
-
import { validatePhotoFile as
|
|
14
|
-
import { readPhoto as
|
|
15
|
-
import { getPhotoCrop as
|
|
16
|
-
import { getCroppedSource as
|
|
17
|
-
import { getDefaultCroppedPhoto as
|
|
18
|
-
import '../../assets/photo-crop-uploader.css';const
|
|
19
|
-
photoCropCanvas:
|
|
1
|
+
import { jsxs as Ho, Fragment as Vo, jsx as A } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useRef as U } from "react";
|
|
3
|
+
import { v as bo, D as ko } from "../../index-CcueJ2sD.js";
|
|
4
|
+
import { c as zo } from "../../index-YnD2EP-S.js";
|
|
5
|
+
import { localizedText as jo } from "./locale.js";
|
|
6
|
+
import { EN_LOCALE as Wo, DARK_THEME as Bo } from "../../constants.js";
|
|
7
|
+
import { DEFAULT_MIN_DIMENSION as Go, DEFAULT_ASPECT_RATIO as Xo, DEFAULT_TIMEOUT as Yo, DEFAULT_FILE_MAX_SIZE as Zo, DEFAULT_VIDEO_FILE_MAX_SIZE as Ko, DEFAULT_BASE_DIMENSION as qo, FULL_PROGRESS_VALUE as oo, PHOTO_LOADING_DELAY as Jo, RESET_DATA_DELAY as d } from "./constants.js";
|
|
8
|
+
import { UploadDialog as Qo } from "./components/upload-dialog/upload-dialog.js";
|
|
9
|
+
import { UploadButton as $o } from "./components/upload-button/upload-button.js";
|
|
10
|
+
import { ErrorUploadDialog as oe } from "./components/error-upload-dialog/error-upload-dialog.js";
|
|
11
|
+
import { isVideo as eo } from "./utils/is-video.js";
|
|
12
|
+
import { validateVideoFile as to } from "./utils/validate-video-file.js";
|
|
13
|
+
import { validatePhotoFile as ro } from "./utils/validate-photo-file.js";
|
|
14
|
+
import { readPhoto as no } from "./utils/read-photo.js";
|
|
15
|
+
import { getPhotoCrop as ee } from "./utils/get-photo-crop.js";
|
|
16
|
+
import { getCroppedSource as te } from "./utils/get-cropped-source.js";
|
|
17
|
+
import { getDefaultCroppedPhoto as so } from "./utils/get-default-cropped-photo.js";
|
|
18
|
+
import '../../assets/photo-crop-uploader.css';const re = "_photoCropCanvas_1i4lr_1", ne = {
|
|
19
|
+
photoCropCanvas: re
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function Te(a) {
|
|
22
22
|
const {
|
|
23
|
-
buttonClassname:
|
|
24
|
-
onStartUpload:
|
|
23
|
+
buttonClassname: ao = "",
|
|
24
|
+
onStartUpload: io = () => {
|
|
25
25
|
},
|
|
26
|
-
onEndUpload:
|
|
26
|
+
onEndUpload: lo = () => {
|
|
27
27
|
},
|
|
28
|
-
onError:
|
|
28
|
+
onError: co = () => {
|
|
29
29
|
},
|
|
30
|
-
onStartCrop:
|
|
30
|
+
onStartCrop: po = () => {
|
|
31
31
|
},
|
|
32
|
-
onDragOver:
|
|
32
|
+
onDragOver: uo = () => {
|
|
33
33
|
},
|
|
34
|
-
onDragLeave:
|
|
34
|
+
onDragLeave: fo = () => {
|
|
35
35
|
},
|
|
36
|
-
onDragDrop:
|
|
36
|
+
onDragDrop: ho = () => {
|
|
37
37
|
},
|
|
38
|
-
showErrorPopup:
|
|
39
|
-
minDimension: l =
|
|
40
|
-
aspectRatio: C =
|
|
41
|
-
locale: n =
|
|
42
|
-
timeout:
|
|
43
|
-
fileMaxSize: N =
|
|
44
|
-
videoFileMaxSize: H =
|
|
38
|
+
showErrorPopup: mo = !1,
|
|
39
|
+
minDimension: l = Go,
|
|
40
|
+
aspectRatio: C = Xo,
|
|
41
|
+
locale: n = Wo,
|
|
42
|
+
timeout: y = Yo,
|
|
43
|
+
fileMaxSize: N = Zo,
|
|
44
|
+
videoFileMaxSize: H = Ko,
|
|
45
45
|
allowedExtensions: w,
|
|
46
46
|
allowedMimeTypes: V,
|
|
47
|
-
circular:
|
|
47
|
+
circular: Co,
|
|
48
48
|
usePercentCrop: b = !0,
|
|
49
|
-
width:
|
|
49
|
+
width: Eo,
|
|
50
50
|
keepSelection: go,
|
|
51
|
-
uploadButton:
|
|
52
|
-
multiple:
|
|
51
|
+
uploadButton: Po,
|
|
52
|
+
multiple: E = !1,
|
|
53
53
|
fromSources: k,
|
|
54
54
|
withVideoUploaded: v = !1,
|
|
55
|
-
returnCropParams:
|
|
55
|
+
returnCropParams: Do = !1,
|
|
56
56
|
dialogClassname: z,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
} = a, {
|
|
60
|
-
onEndCrop: re,
|
|
61
|
-
onClose: ne,
|
|
57
|
+
theme: j = Bo,
|
|
58
|
+
defaultDimension: So = qo,
|
|
62
59
|
...Lo
|
|
63
|
-
} =
|
|
60
|
+
} = a, {
|
|
61
|
+
onEndCrop: se,
|
|
62
|
+
onClose: ae,
|
|
63
|
+
..._o
|
|
64
|
+
} = Lo, [To, g] = i(!1), [P, D] = i([]), [I, x] = i([]), f = U([]), h = U([]), [p, W] = i(0), B = U(null), G = U(null), [c, O] = i(!1), [Ao, X] = i(0), [Y, Z] = i(""), [Uo, S] = i([]), [wo, K] = i(!1), vo = To || c && E, Io = () => {
|
|
64
65
|
S([]);
|
|
65
66
|
}, F = (e = []) => {
|
|
66
67
|
c || (a.returnCropParams === !0 && a.onClose?.(
|
|
67
68
|
e,
|
|
68
69
|
f.current,
|
|
69
70
|
h.current
|
|
70
|
-
),
|
|
71
|
+
), g(!1), setTimeout(() => S([]), d), setTimeout(() => D([]), d), setTimeout(() => {
|
|
71
72
|
f.current = [], h.current = [];
|
|
72
73
|
}, d));
|
|
73
74
|
}, R = (e = []) => {
|
|
@@ -75,32 +76,32 @@ function Le(a) {
|
|
|
75
76
|
e,
|
|
76
77
|
f.current,
|
|
77
78
|
h.current
|
|
78
|
-
),
|
|
79
|
+
), g(!1), setTimeout(() => S([]), d), setTimeout(() => D([]), d), setTimeout(() => {
|
|
79
80
|
f.current = [], h.current = [];
|
|
80
81
|
}, d));
|
|
81
82
|
}, q = () => {
|
|
82
83
|
c || (a.returnCropParams === !0 ? F([]) : R([]));
|
|
83
|
-
},
|
|
84
|
-
|
|
84
|
+
}, xo = () => {
|
|
85
|
+
K(!1);
|
|
85
86
|
}, L = (e, t = e, o = [], r = !1) => {
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
e instanceof Error && (console.warn(e.message),
|
|
89
|
-
},
|
|
87
|
+
lo(e), Z(""), D(e), x(Array(e.length)), W(0), g(!0), f.current = t, h.current = o, !e.length && !r && q();
|
|
88
|
+
}, M = (e) => {
|
|
89
|
+
e instanceof Error && (console.warn(e.message), co(e), Z(e.message), K(!0), D([]), g(!1), f.current = [], h.current = []);
|
|
90
|
+
}, Oo = async (e) => {
|
|
90
91
|
const { files: t } = e.target;
|
|
91
92
|
if (t?.length && !c)
|
|
92
93
|
try {
|
|
93
|
-
if (O(!0),
|
|
94
|
-
const o = Array.from(t), r =
|
|
94
|
+
if (O(!0), io(), E) {
|
|
95
|
+
const o = Array.from(t), r = oo / o.length, _ = [], u = [], Q = [], T = [];
|
|
95
96
|
for (const m of o) {
|
|
96
|
-
const
|
|
97
|
+
const No = eo(m);
|
|
97
98
|
try {
|
|
98
|
-
if (v &&
|
|
99
|
-
|
|
99
|
+
if (v && No) {
|
|
100
|
+
to(m, H, n);
|
|
100
101
|
const s = URL.createObjectURL(m);
|
|
101
|
-
|
|
102
|
+
Q.push(u.length), u.push(s);
|
|
102
103
|
} else {
|
|
103
|
-
|
|
104
|
+
ro(
|
|
104
105
|
m,
|
|
105
106
|
{
|
|
106
107
|
maxSize: N,
|
|
@@ -109,85 +110,85 @@ function Le(a) {
|
|
|
109
110
|
},
|
|
110
111
|
n
|
|
111
112
|
);
|
|
112
|
-
const s = await
|
|
113
|
+
const s = await no(
|
|
113
114
|
m,
|
|
114
115
|
l,
|
|
115
116
|
n,
|
|
116
|
-
|
|
117
|
+
y
|
|
117
118
|
);
|
|
118
119
|
_.push(s), u.push(s);
|
|
119
120
|
}
|
|
120
121
|
} catch (s) {
|
|
121
|
-
let
|
|
122
|
-
s instanceof Error && (
|
|
122
|
+
let $ = "";
|
|
123
|
+
s instanceof Error && ($ = s.message), T.push({
|
|
123
124
|
photoName: m.name,
|
|
124
|
-
errorMessage:
|
|
125
|
+
errorMessage: $
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
-
(s) => Math.min(
|
|
128
|
+
X(
|
|
129
|
+
(s) => Math.min(oo, s + r)
|
|
129
130
|
), await new Promise((s) => setTimeout(s, 0));
|
|
130
131
|
}
|
|
131
132
|
if (k?.length)
|
|
132
133
|
throw new Error(T[0]?.errorMessage);
|
|
133
|
-
S(T), L(_, u,
|
|
134
|
+
S(T), L(_, u, Q, T.length > 0);
|
|
134
135
|
} else {
|
|
135
136
|
const o = t[0];
|
|
136
|
-
if (v &&
|
|
137
|
-
|
|
137
|
+
if (v && eo(o)) {
|
|
138
|
+
to(o, H, n);
|
|
138
139
|
const r = URL.createObjectURL(o);
|
|
139
140
|
L([], [r], [0]);
|
|
140
141
|
} else {
|
|
141
|
-
|
|
142
|
+
ro(
|
|
142
143
|
o,
|
|
143
144
|
{ maxSize: N, allowedExtensions: w, allowedMimeTypes: V },
|
|
144
145
|
n
|
|
145
146
|
);
|
|
146
|
-
const r = await
|
|
147
|
+
const r = await no(o, l, n, y);
|
|
147
148
|
L([r]);
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
151
|
} catch (o) {
|
|
151
|
-
|
|
152
|
+
M(o);
|
|
152
153
|
} finally {
|
|
153
|
-
|
|
154
|
-
e.target.value = "",
|
|
155
|
-
},
|
|
154
|
+
E ? setTimeout(() => {
|
|
155
|
+
e.target.value = "", X(0), O(!1);
|
|
156
|
+
}, Jo) : (e.target.value = "", O(!1));
|
|
156
157
|
}
|
|
157
|
-
},
|
|
158
|
-
const { width: t, height: o } = e.currentTarget, r =
|
|
158
|
+
}, Fo = (e) => {
|
|
159
|
+
const { width: t, height: o } = e.currentTarget, r = ee(
|
|
159
160
|
t,
|
|
160
161
|
o,
|
|
161
162
|
l,
|
|
162
163
|
C,
|
|
163
164
|
!1,
|
|
164
|
-
|
|
165
|
+
So
|
|
165
166
|
);
|
|
166
167
|
x((_) => {
|
|
167
168
|
const u = [..._];
|
|
168
169
|
return u[p] = r, u;
|
|
169
170
|
});
|
|
170
|
-
},
|
|
171
|
+
}, Ro = (e, t) => {
|
|
171
172
|
x((o) => {
|
|
172
173
|
const r = [...o];
|
|
173
174
|
return r[p] = t, r;
|
|
174
175
|
});
|
|
175
176
|
}, J = () => {
|
|
176
|
-
const e =
|
|
177
|
+
const e = G.current, t = B.current;
|
|
177
178
|
if (e && t && I)
|
|
178
179
|
try {
|
|
179
180
|
const o = I[p];
|
|
180
181
|
if (!o) return !1;
|
|
181
|
-
if (
|
|
182
|
+
if (po(), a.returnCropParams === !0) {
|
|
182
183
|
if (b) {
|
|
183
|
-
const r =
|
|
184
|
+
const r = bo(
|
|
184
185
|
o,
|
|
185
186
|
t.naturalWidth,
|
|
186
187
|
t.naturalHeight
|
|
187
188
|
);
|
|
188
189
|
a.onEndCrop?.(r);
|
|
189
190
|
} else {
|
|
190
|
-
const r =
|
|
191
|
+
const r = ko(
|
|
191
192
|
o,
|
|
192
193
|
t.naturalWidth,
|
|
193
194
|
t.naturalHeight
|
|
@@ -196,7 +197,7 @@ function Le(a) {
|
|
|
196
197
|
}
|
|
197
198
|
p >= P.length - 1 && F();
|
|
198
199
|
} else {
|
|
199
|
-
const r =
|
|
200
|
+
const r = te(
|
|
200
201
|
t,
|
|
201
202
|
e,
|
|
202
203
|
o,
|
|
@@ -206,19 +207,19 @@ function Le(a) {
|
|
|
206
207
|
}
|
|
207
208
|
return !0;
|
|
208
209
|
} catch (o) {
|
|
209
|
-
return o instanceof Error && (console.warn(o),
|
|
210
|
+
return o instanceof Error && (console.warn(o), M(o)), !1;
|
|
210
211
|
}
|
|
211
212
|
else
|
|
212
213
|
return !1;
|
|
213
|
-
},
|
|
214
|
-
J() &&
|
|
214
|
+
}, Mo = () => {
|
|
215
|
+
J() && W((t) => t + 1);
|
|
215
216
|
}, yo = async () => {
|
|
216
217
|
const e = P.slice(p);
|
|
217
218
|
try {
|
|
218
|
-
if (
|
|
219
|
+
if (Do) {
|
|
219
220
|
const t = await Promise.all(
|
|
220
221
|
e.map(
|
|
221
|
-
(o) =>
|
|
222
|
+
(o) => so(
|
|
222
223
|
o,
|
|
223
224
|
l,
|
|
224
225
|
C,
|
|
@@ -232,7 +233,7 @@ function Le(a) {
|
|
|
232
233
|
} else {
|
|
233
234
|
const t = await Promise.all(
|
|
234
235
|
e.map(
|
|
235
|
-
(o) =>
|
|
236
|
+
(o) => so(
|
|
236
237
|
o,
|
|
237
238
|
l,
|
|
238
239
|
C,
|
|
@@ -244,80 +245,82 @@ function Le(a) {
|
|
|
244
245
|
R(t);
|
|
245
246
|
}
|
|
246
247
|
} catch (t) {
|
|
247
|
-
|
|
248
|
+
M(t);
|
|
248
249
|
}
|
|
249
250
|
};
|
|
250
|
-
return /* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
|
|
251
|
+
return /* @__PURE__ */ Ho(Vo, { children: [
|
|
252
|
+
/* @__PURE__ */ A(
|
|
253
|
+
$o,
|
|
253
254
|
{
|
|
254
|
-
onChange:
|
|
255
|
+
onChange: Oo,
|
|
255
256
|
onPhotoDataLoaded: L,
|
|
256
|
-
buttonClassname:
|
|
257
|
+
buttonClassname: ao,
|
|
257
258
|
disabled: c,
|
|
258
259
|
buttonDisabled: c,
|
|
259
260
|
locale: n,
|
|
260
|
-
width:
|
|
261
|
+
width: Eo,
|
|
261
262
|
allowedExtensions: w,
|
|
262
|
-
onDragDrop:
|
|
263
|
-
onDragLeave:
|
|
264
|
-
onDragOver:
|
|
265
|
-
button:
|
|
266
|
-
multiple:
|
|
263
|
+
onDragDrop: ho,
|
|
264
|
+
onDragLeave: fo,
|
|
265
|
+
onDragOver: uo,
|
|
266
|
+
button: Po,
|
|
267
|
+
multiple: E,
|
|
267
268
|
fromSources: k,
|
|
268
269
|
withVideoUploaded: v,
|
|
269
|
-
...
|
|
270
|
-
children:
|
|
270
|
+
..._o,
|
|
271
|
+
children: jo[n].upload
|
|
271
272
|
}
|
|
272
273
|
),
|
|
273
|
-
/* @__PURE__ */
|
|
274
|
-
|
|
274
|
+
/* @__PURE__ */ A(
|
|
275
|
+
Qo,
|
|
275
276
|
{
|
|
276
|
-
open:
|
|
277
|
+
open: vo,
|
|
277
278
|
className: z,
|
|
278
279
|
photoSourceLoading: c,
|
|
279
|
-
loadingValue:
|
|
280
|
+
loadingValue: Ao,
|
|
280
281
|
errors: Uo,
|
|
281
282
|
photoCrops: I,
|
|
282
283
|
photoSources: P,
|
|
283
|
-
onNextPhoto:
|
|
284
|
+
onNextPhoto: Mo,
|
|
284
285
|
onSkipCrop: yo,
|
|
285
|
-
onClearErrors:
|
|
286
|
-
photoError:
|
|
286
|
+
onClearErrors: Io,
|
|
287
|
+
photoError: Y,
|
|
287
288
|
onCloseDialogHandler: q,
|
|
288
|
-
onCropChange:
|
|
289
|
+
onCropChange: Ro,
|
|
289
290
|
onPhotoCrop: J,
|
|
290
|
-
onPhotoLoad:
|
|
291
|
-
imageRef:
|
|
291
|
+
onPhotoLoad: Fo,
|
|
292
|
+
imageRef: B,
|
|
292
293
|
minDimension: l,
|
|
293
294
|
aspectRatio: C,
|
|
294
295
|
locale: n,
|
|
295
|
-
circular:
|
|
296
|
+
circular: Co,
|
|
296
297
|
keepSelection: go,
|
|
297
|
-
photoIndex: p
|
|
298
|
+
photoIndex: p,
|
|
299
|
+
theme: j
|
|
298
300
|
}
|
|
299
301
|
),
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
-
|
|
302
|
+
/* @__PURE__ */ A(
|
|
303
|
+
oe,
|
|
302
304
|
{
|
|
303
305
|
className: z,
|
|
304
|
-
open:
|
|
305
|
-
photoError:
|
|
306
|
-
onCloseErrorDialog:
|
|
307
|
-
locale: n
|
|
306
|
+
open: mo && wo,
|
|
307
|
+
photoError: Y,
|
|
308
|
+
onCloseErrorDialog: xo,
|
|
309
|
+
locale: n,
|
|
310
|
+
theme: j
|
|
308
311
|
}
|
|
309
312
|
),
|
|
310
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ A(
|
|
311
314
|
"canvas",
|
|
312
315
|
{
|
|
313
|
-
className:
|
|
316
|
+
className: zo(ne.photoCropCanvas),
|
|
314
317
|
width: l,
|
|
315
318
|
height: l,
|
|
316
|
-
ref:
|
|
319
|
+
ref: G
|
|
317
320
|
}
|
|
318
321
|
)
|
|
319
322
|
] });
|
|
320
323
|
}
|
|
321
324
|
export {
|
|
322
|
-
|
|
325
|
+
Te as PhotoCropUploader
|
|
323
326
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DragEvent, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Crop } from 'react-image-crop';
|
|
3
|
-
import { Locale } from '../../types';
|
|
3
|
+
import { Locale, Theme } from '../../types';
|
|
4
4
|
import { BMP_IMAGE_TYPE, GIF_IMAGE_TYPE, ICO_IMAGE_TYPE, JPEG_IMAGE_TYPE, JPG_IMAGE_TYPE, MICROSOFT_ICO_IMAGE_TYPE, PNG_IMAGE_TYPE, SVG_IMAGE_TYPE, WEBP_IMAGE_TYPE, ICO_IMAGE_EXT, BMP_IMAGE_EXT, GIF_IMAGE_EXT, JPEG_IMAGE_EXT, JPG_IMAGE_EXT, PNG_IMAGE_EXT, SVG_IMAGE_EXT, WEBP_IMAGE_EXT } from './constants';
|
|
5
5
|
export type PhotoDataUrl = string;
|
|
6
6
|
export type PhotoFileSize = number;
|
|
@@ -53,6 +53,7 @@ export type PhotoCropUploaderCustomProps = {
|
|
|
53
53
|
fromSources?: PhotoDataUrl[];
|
|
54
54
|
withVideoUploaded?: boolean;
|
|
55
55
|
dialogClassname?: string;
|
|
56
|
+
theme?: Theme;
|
|
56
57
|
};
|
|
57
58
|
export type PhotoCropUploaderProps = PhotoCropUploaderCustomProps & CropProps & InputHTMLAttributes<HTMLInputElement>;
|
|
58
59
|
export type PhotoCropUploaderLocaleText = Record<Locale, Record<string, string>>;
|
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
const E = "en",
|
|
1
|
+
const E = "en", t = "ru", n = 1024, o = "%", L = "-", _ = "light", c = "dark";
|
|
2
2
|
export {
|
|
3
3
|
n as BYTE_TO_KILOBYTE,
|
|
4
|
-
|
|
4
|
+
c as DARK_THEME,
|
|
5
|
+
L as DASH_SYMBOL,
|
|
5
6
|
E as EN_LOCALE,
|
|
7
|
+
_ as LIGHT_THEME,
|
|
6
8
|
o as PERCENT_SYMBOL,
|
|
7
|
-
|
|
9
|
+
t as RU_LOCALE
|
|
8
10
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { PhotoCropUploader, Button, CircularProgressLoader, CodeInput } from './components';
|
|
1
|
+
export { PhotoCropUploader, Button, CircularProgressLoader, CodeInput, } from './components';
|
|
2
2
|
export { drawCroppedImage } from './components';
|
|
3
3
|
export type { Crop, PercentCrop, PixelCrop } from 'react-image-crop';
|
|
4
4
|
export type { CodeInputProps } from './components';
|
|
5
|
-
export type { Locale } from './types';
|
|
5
|
+
export type { Locale, Theme } from './types';
|
|
6
6
|
export type { PhotoDataUrl, PhotoFileSize, PhotoExtension, PhotoMimeType, PhotoFileOptions, PhotoCropUploaderProps, } from './components/photo-crop-uploader/types';
|
|
7
|
-
export { EN_LOCALE, RU_LOCALE, BYTE_TO_KILOBYTE } from './constants';
|
|
7
|
+
export { EN_LOCALE, RU_LOCALE, BYTE_TO_KILOBYTE, LIGHT_THEME, DARK_THEME, } from './constants';
|
|
8
8
|
export { JPG_IMAGE_EXT, JPEG_IMAGE_EXT, PNG_IMAGE_EXT, SVG_IMAGE_EXT, BMP_IMAGE_EXT, GIF_IMAGE_EXT, WEBP_IMAGE_EXT, ICO_IMAGE_EXT, BMP_IMAGE_TYPE, GIF_IMAGE_TYPE, ICO_IMAGE_TYPE, JPEG_IMAGE_TYPE, JPG_IMAGE_TYPE, MICROSOFT_ICO_IMAGE_TYPE, PNG_IMAGE_TYPE, SVG_IMAGE_TYPE, WEBP_IMAGE_TYPE, } from './components/photo-crop-uploader/constants';
|
package/dist/index.js
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import { BYTE_TO_KILOBYTE as G,
|
|
2
|
-
import { BMP_IMAGE_EXT as P, BMP_IMAGE_TYPE as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { CircularProgressLoader as
|
|
1
|
+
import { BYTE_TO_KILOBYTE as G, DARK_THEME as I, EN_LOCALE as T, LIGHT_THEME as o, RU_LOCALE as r } from "./constants.js";
|
|
2
|
+
import { BMP_IMAGE_EXT as P, BMP_IMAGE_TYPE as A, GIF_IMAGE_EXT as e, GIF_IMAGE_TYPE as p, ICO_IMAGE_EXT as t, ICO_IMAGE_TYPE as Y, JPEG_IMAGE_EXT as C, JPEG_IMAGE_TYPE as O, JPG_IMAGE_EXT as m, JPG_IMAGE_TYPE as X, MICROSOFT_ICO_IMAGE_TYPE as f, PNG_IMAGE_EXT as x, PNG_IMAGE_TYPE as B, SVG_IMAGE_EXT as L, SVG_IMAGE_TYPE as a, WEBP_IMAGE_EXT as d, WEBP_IMAGE_TYPE as J } from "./components/photo-crop-uploader/constants.js";
|
|
3
|
+
import { Button as F } from "./components/button/button.js";
|
|
4
|
+
import { CircularProgressLoader as N } from "./components/circular-progress-loader/circular-progress-loader.js";
|
|
5
5
|
import { CodeInput as S } from "./components/code-input/code-input.js";
|
|
6
6
|
import { PhotoCropUploader as l } from "./components/photo-crop-uploader/photo-crop-uploader.js";
|
|
7
7
|
import { drawCroppedImage as s } from "./components/photo-crop-uploader/utils/draw-cropped-image.js";
|
|
8
8
|
export {
|
|
9
9
|
P as BMP_IMAGE_EXT,
|
|
10
|
-
|
|
10
|
+
A as BMP_IMAGE_TYPE,
|
|
11
11
|
G as BYTE_TO_KILOBYTE,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
F as Button,
|
|
13
|
+
N as CircularProgressLoader,
|
|
14
14
|
S as CodeInput,
|
|
15
|
-
I as
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
f as
|
|
15
|
+
I as DARK_THEME,
|
|
16
|
+
T as EN_LOCALE,
|
|
17
|
+
e as GIF_IMAGE_EXT,
|
|
18
|
+
p as GIF_IMAGE_TYPE,
|
|
19
|
+
t as ICO_IMAGE_EXT,
|
|
20
|
+
Y as ICO_IMAGE_TYPE,
|
|
21
|
+
C as JPEG_IMAGE_EXT,
|
|
22
|
+
O as JPEG_IMAGE_TYPE,
|
|
23
|
+
m as JPG_IMAGE_EXT,
|
|
24
|
+
X as JPG_IMAGE_TYPE,
|
|
25
|
+
o as LIGHT_THEME,
|
|
26
|
+
f as MICROSOFT_ICO_IMAGE_TYPE,
|
|
27
|
+
x as PNG_IMAGE_EXT,
|
|
28
|
+
B as PNG_IMAGE_TYPE,
|
|
27
29
|
l as PhotoCropUploader,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
r as RU_LOCALE,
|
|
31
|
+
L as SVG_IMAGE_EXT,
|
|
32
|
+
a as SVG_IMAGE_TYPE,
|
|
33
|
+
d as WEBP_IMAGE_EXT,
|
|
34
|
+
J as WEBP_IMAGE_TYPE,
|
|
33
35
|
s as drawCroppedImage
|
|
34
36
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { jsx as s, jsxs as g, Fragment as x } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "./index-YnD2EP-S.js";
|
|
3
3
|
import { localizedText as f } from "./components/photo-crop-uploader/locale.js";
|
|
4
|
-
import { EN_LOCALE as
|
|
4
|
+
import { EN_LOCALE as L, DASH_SYMBOL as S } from "./constants.js";
|
|
5
5
|
import { D as I, a as R, b as W } from "./DialogTitle-BtvmXSZP.js";
|
|
6
6
|
import * as O from "react";
|
|
7
|
-
import { g as V, a as
|
|
7
|
+
import { g as V, a as k, c as B, P as r } from "./createTheme-D8R2Cz2N.js";
|
|
8
8
|
import { m as C } from "./memoTheme-D5VCpQCz.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as $, c as z, s as w } from "./chainPropTypes-DiJb1lGa.js";
|
|
10
10
|
import { Button as y } from "./components/button/button.js";
|
|
11
|
-
import './assets/upload-dialog-errors.css';function
|
|
11
|
+
import './assets/upload-dialog-errors.css';function E(e) {
|
|
12
12
|
return V("MuiDivider", e);
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
const
|
|
14
|
+
k("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
|
|
15
|
+
const M = (e) => {
|
|
16
16
|
const {
|
|
17
17
|
absolute: t,
|
|
18
18
|
children: o,
|
|
19
|
-
classes:
|
|
19
|
+
classes: d,
|
|
20
20
|
flexItem: h,
|
|
21
21
|
light: i,
|
|
22
22
|
orientation: n,
|
|
23
|
-
textAlign:
|
|
24
|
-
variant:
|
|
23
|
+
textAlign: l,
|
|
24
|
+
variant: a
|
|
25
25
|
} = e;
|
|
26
|
-
return
|
|
27
|
-
root: ["root", t && "absolute",
|
|
26
|
+
return z({
|
|
27
|
+
root: ["root", t && "absolute", a, i && "light", n === "vertical" && "vertical", h && "flexItem", o && "withChildren", o && n === "vertical" && "withChildrenVertical", l === "right" && n !== "vertical" && "textAlignRight", l === "left" && n !== "vertical" && "textAlignLeft"],
|
|
28
28
|
wrapper: ["wrapper", n === "vertical" && "wrapperVertical"]
|
|
29
|
-
},
|
|
30
|
-
},
|
|
29
|
+
}, E, d);
|
|
30
|
+
}, U = w("div", {
|
|
31
31
|
name: "MuiDivider",
|
|
32
32
|
slot: "Root",
|
|
33
33
|
overridesResolver: (e, t) => {
|
|
@@ -168,7 +168,7 @@ const U = (e) => {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}]
|
|
171
|
-
}))),
|
|
171
|
+
}))), j = w("span", {
|
|
172
172
|
name: "MuiDivider",
|
|
173
173
|
slot: "Wrapper",
|
|
174
174
|
overridesResolver: (e, t) => {
|
|
@@ -194,41 +194,41 @@ const U = (e) => {
|
|
|
194
194
|
}
|
|
195
195
|
}]
|
|
196
196
|
}))), v = /* @__PURE__ */ O.forwardRef(function(t, o) {
|
|
197
|
-
const
|
|
197
|
+
const d = $({
|
|
198
198
|
props: t,
|
|
199
199
|
name: "MuiDivider"
|
|
200
200
|
}), {
|
|
201
201
|
absolute: h = !1,
|
|
202
202
|
children: i,
|
|
203
203
|
className: n,
|
|
204
|
-
orientation:
|
|
205
|
-
component:
|
|
204
|
+
orientation: l = "horizontal",
|
|
205
|
+
component: a = i || l === "vertical" ? "div" : "hr",
|
|
206
206
|
flexItem: b = !1,
|
|
207
207
|
light: A = !1,
|
|
208
|
-
role: m =
|
|
208
|
+
role: m = a !== "hr" ? "separator" : void 0,
|
|
209
209
|
textAlign: D = "center",
|
|
210
210
|
variant: N = "fullWidth",
|
|
211
211
|
...T
|
|
212
|
-
} =
|
|
213
|
-
...
|
|
212
|
+
} = d, u = {
|
|
213
|
+
...d,
|
|
214
214
|
absolute: h,
|
|
215
|
-
component:
|
|
215
|
+
component: a,
|
|
216
216
|
flexItem: b,
|
|
217
217
|
light: A,
|
|
218
|
-
orientation:
|
|
218
|
+
orientation: l,
|
|
219
219
|
role: m,
|
|
220
220
|
textAlign: D,
|
|
221
221
|
variant: N
|
|
222
|
-
}, _ =
|
|
223
|
-
return /* @__PURE__ */ s(
|
|
224
|
-
as:
|
|
225
|
-
className:
|
|
222
|
+
}, _ = M(u);
|
|
223
|
+
return /* @__PURE__ */ s(U, {
|
|
224
|
+
as: a,
|
|
225
|
+
className: B(_.root, n),
|
|
226
226
|
role: m,
|
|
227
227
|
ref: o,
|
|
228
228
|
ownerState: u,
|
|
229
|
-
"aria-orientation": m === "separator" && (
|
|
229
|
+
"aria-orientation": m === "separator" && (a !== "hr" || l === "vertical") ? l : void 0,
|
|
230
230
|
...T,
|
|
231
|
-
children: i ? /* @__PURE__ */ s(
|
|
231
|
+
children: i ? /* @__PURE__ */ s(j, {
|
|
232
232
|
className: _.wrapper,
|
|
233
233
|
ownerState: u,
|
|
234
234
|
children: i
|
|
@@ -299,39 +299,41 @@ process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
|
299
299
|
*/
|
|
300
300
|
variant: r.oneOfType([r.oneOf(["fullWidth", "inset", "middle"]), r.string])
|
|
301
301
|
});
|
|
302
|
-
const H = "
|
|
302
|
+
const H = "_dialog_n5vpn_1", P = "_dark_n5vpn_1", F = "_errorContent_n5vpn_5", Y = "_errorItem_n5vpn_38", q = "_fileName_n5vpn_45", G = "_topActions_n5vpn_51", J = "_close_n5vpn_57", K = "_botActions_n5vpn_61", Q = "_button_n5vpn_66", X = "_title_n5vpn_70", Z = "_content_n5vpn_76", tt = "_many_n5vpn_84", et = "_photoList_n5vpn_87", ot = "_crop_n5vpn_91", rt = "_dialogText_n5vpn_100", p = {
|
|
303
303
|
dialog: H,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
304
|
+
dark: P,
|
|
305
|
+
errorContent: F,
|
|
306
|
+
errorItem: Y,
|
|
307
|
+
fileName: q,
|
|
308
|
+
topActions: G,
|
|
309
|
+
close: J,
|
|
310
|
+
botActions: K,
|
|
311
|
+
button: Q,
|
|
312
|
+
title: X,
|
|
313
|
+
content: Z,
|
|
314
|
+
many: tt,
|
|
315
|
+
photoList: et,
|
|
316
|
+
crop: ot,
|
|
317
|
+
dialogText: rt
|
|
318
|
+
}, gt = (e) => {
|
|
317
319
|
const {
|
|
318
320
|
photoSources: t,
|
|
319
321
|
errors: o = [],
|
|
320
|
-
onCloseDialogHandler:
|
|
322
|
+
onCloseDialogHandler: d,
|
|
321
323
|
onClearErrors: h,
|
|
322
|
-
locale: i =
|
|
324
|
+
locale: i = L
|
|
323
325
|
} = e;
|
|
324
326
|
return /* @__PURE__ */ g(x, { children: [
|
|
325
|
-
/* @__PURE__ */ s(I, { className: c(
|
|
326
|
-
/* @__PURE__ */ s(R, { className: c(
|
|
327
|
-
!!
|
|
328
|
-
/* @__PURE__ */ g("div", { className: c(
|
|
329
|
-
/* @__PURE__ */ s("span", { className: c(
|
|
327
|
+
/* @__PURE__ */ s(I, { className: c(p.title), children: t.length ? f[i]["some-not-uploaded"] : f[i]["not-uploaded"] }),
|
|
328
|
+
/* @__PURE__ */ s(R, { className: c(p.errorContent), children: o.map(({ photoName: n, errorMessage: l }, a) => /* @__PURE__ */ g(x, { children: [
|
|
329
|
+
!!a && /* @__PURE__ */ s(v, {}),
|
|
330
|
+
/* @__PURE__ */ g("div", { className: c(p.errorItem), children: [
|
|
331
|
+
/* @__PURE__ */ s("span", { className: c(p.fileName), children: n }),
|
|
330
332
|
" ",
|
|
331
|
-
` ${
|
|
333
|
+
` ${S} ${l}`
|
|
332
334
|
] })
|
|
333
|
-
] },
|
|
334
|
-
/* @__PURE__ */ g(W, { className: c(
|
|
335
|
+
] }, a)) }),
|
|
336
|
+
/* @__PURE__ */ g(W, { className: c(p.botActions), children: [
|
|
335
337
|
/* @__PURE__ */ s(
|
|
336
338
|
y,
|
|
337
339
|
{
|
|
@@ -339,8 +341,8 @@ const H = "_dialog_1h5av_1", P = "_errorContent_1h5av_7", F = "_errorItem_1h5av_
|
|
|
339
341
|
buttonColor: "blue",
|
|
340
342
|
buttonVariant: "outlined",
|
|
341
343
|
buttonWeight: 500,
|
|
342
|
-
onClick:
|
|
343
|
-
className: c(
|
|
344
|
+
onClick: d,
|
|
345
|
+
className: c(p.button),
|
|
344
346
|
children: f[i].close
|
|
345
347
|
}
|
|
346
348
|
),
|
|
@@ -352,7 +354,7 @@ const H = "_dialog_1h5av_1", P = "_errorContent_1h5av_7", F = "_errorItem_1h5av_
|
|
|
352
354
|
buttonVariant: "filled",
|
|
353
355
|
buttonWeight: 500,
|
|
354
356
|
onClick: h,
|
|
355
|
-
className: c(
|
|
357
|
+
className: c(p.button),
|
|
356
358
|
children: f[i].continue
|
|
357
359
|
}
|
|
358
360
|
)
|
|
@@ -360,6 +362,6 @@ const H = "_dialog_1h5av_1", P = "_errorContent_1h5av_7", F = "_errorItem_1h5av_
|
|
|
360
362
|
] });
|
|
361
363
|
};
|
|
362
364
|
export {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
+
gt as U,
|
|
366
|
+
p as s
|
|
365
367
|
};
|